sveld 0.35.0 → 0.35.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +46 -4
- package/cli.js +1 -1
- package/lib/ComponentParser.d.ts +164 -398
- package/lib/ast-guards.d.ts +2 -0
- package/lib/browser.d.ts +39 -0
- package/lib/browser.js +268 -0
- package/lib/bundle.d.ts +9 -4
- package/lib/chunk-1p4ka68s.js +2 -0
- package/lib/chunk-72hx9e9w.js +20 -0
- package/lib/chunk-7qz0hzgw.js +217 -0
- package/lib/chunk-8xw75w8t.js +10 -0
- package/lib/chunk-cxrw7gzr.js +2 -0
- package/lib/chunk-jdnsv86e.js +1 -0
- package/lib/chunk-pmj8c3yv.js +6 -0
- package/lib/chunk-s9mzxa4y.js +1 -0
- package/lib/chunk-v4q9vw0y.js +62 -0
- package/lib/chunk-xkrgedm4.js +4 -0
- package/lib/chunk-zva3xjwa.js +13 -0
- package/lib/cli-entry.d.ts +12 -0
- package/lib/cli-entry.js +1 -0
- package/lib/get-svelte-entry.d.ts +0 -1
- package/lib/index.js +1 -484
- package/lib/parse-cache.d.ts +1 -1
- package/lib/parse-entry-exports.d.ts +2 -2
- package/lib/parse-exports.d.ts +5 -1
- package/lib/parsed-component-metadata.d.ts +13 -0
- package/lib/parser/bindings.d.ts +0 -2
- package/lib/parser/context.d.ts +13 -51
- package/lib/parser/events.d.ts +0 -2
- package/lib/parser/jsdoc.d.ts +0 -4
- package/lib/parser/prop-shared.d.ts +84 -0
- package/lib/parser/props.d.ts +6 -2
- package/lib/parser/rest-props.d.ts +0 -2
- package/lib/parser/runes-detection.d.ts +13 -0
- package/lib/parser/scopes.d.ts +23 -7
- package/lib/parser/slots.d.ts +1 -6
- package/lib/parser/source-position.d.ts +0 -4
- package/lib/parser/type-resolution.d.ts +4 -14
- package/lib/parser/typescript-casts.d.ts +1 -0
- package/lib/parser/utils.d.ts +1 -0
- package/lib/parser/variable-jsdoc.d.ts +12 -0
- package/lib/parser-stack.d.ts +20 -0
- package/lib/path.d.ts +0 -1
- package/lib/resolve-types.d.ts +1 -1
- package/lib/svelte-parse.d.ts +4 -0
- package/lib/svelte-version.d.ts +1 -0
- package/lib/writer/Writer.d.ts +7 -29
- package/lib/writer/WriterMarkdown.d.ts +0 -2
- package/lib/writer/markdown-format-utils.d.ts +0 -84
- package/lib/writer/writer-json.d.ts +2 -12
- package/lib/writer/writer-markdown.d.ts +0 -2
- package/lib/writer/writer-ts-definitions-core.d.ts +1 -9
- package/lib/writer/writer-ts-definitions.d.ts +1 -28
- package/package.json +6 -1
package/lib/index.js
CHANGED
|
@@ -1,484 +1 @@
|
|
|
1
|
-
import{
|
|
2
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ys(q,Z){if(q){if(typeof q=="string")return eM(q,Z);var Q={}.toString.call(q).slice(8,-1);return Q==="Object"&&q.constructor&&(Q=q.constructor.name),Q==="Map"||Q==="Set"?Array.from(q):Q==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Q)?eM(q,Z):void 0}}function eM(q,Z){(Z==null||Z>q.length)&&(Z=q.length);for(var Q=0,Y=Array(Z);Q<Z;Q++)Y[Q]=q[Q];return Y}function _s(q,Z){var Q=q==null?null:typeof Symbol<"u"&&q[Symbol.iterator]||q["@@iterator"];if(Q!=null){var Y,J,H,X,G=[],W=!0,R=!1;try{if(H=(Q=Q.call(q)).next,Z===0){if(Object(Q)!==Q)return;W=!1}else for(;!(W=(Y=H.call(Q)).done)&&(G.push(Y.value),G.length!==Z);W=!0);}catch(B){R=!0,J=B}finally{try{if(!W&&Q.return!=null&&(X=Q.return(),Object(X)!==X))return}finally{if(R)throw J}}return G}}function gs(q){if(Array.isArray(q))return q}var C5=[["aria-activedescendant",{type:"id"}],["aria-atomic",{type:"boolean"}],["aria-autocomplete",{type:"token",values:["inline","list","both","none"]}],["aria-braillelabel",{type:"string"}],["aria-brailleroledescription",{type:"string"}],["aria-busy",{type:"boolean"}],["aria-checked",{type:"tristate"}],["aria-colcount",{type:"integer"}],["aria-colindex",{type:"integer"}],["aria-colspan",{type:"integer"}],["aria-controls",{type:"idlist"}],["aria-current",{type:"token",values:["page","step","location","date","time",!0,!1]}],["aria-describedby",{type:"idlist"}],["aria-description",{type:"string"}],["aria-details",{type:"id"}],["aria-disabled",{type:"boolean"}],["aria-dropeffect",{type:"tokenlist",values:["copy","execute","link","move","none","popup"]}],["aria-errormessage",{type:"id"}],["aria-expanded",{type:"boolean",allowundefined:!0}],["aria-flowto",{type:"idlist"}],["aria-grabbed",{type:"boolean",allowundefined:!0}],["aria-haspopup",{type:"token",values:[!1,!0,"menu","listbox","tree","grid","dialog"]}],["aria-hidden",{type:"boolean",allowundefined:!0}],["aria-invalid",{type:"token",values:["grammar",!1,"spelling",!0]}],["aria-keyshortcuts",{type:"string"}],["aria-label",{type:"string"}],["aria-labelledby",{type:"idlist"}],["aria-level",{type:"integer"}],["aria-live",{type:"token",values:["assertive","off","polite"]}],["aria-modal",{type:"boolean"}],["aria-multiline",{type:"boolean"}],["aria-multiselectable",{type:"boolean"}],["aria-orientation",{type:"token",values:["vertical","undefined","horizontal"]}],["aria-owns",{type:"idlist"}],["aria-placeholder",{type:"string"}],["aria-posinset",{type:"integer"}],["aria-pressed",{type:"tristate"}],["aria-readonly",{type:"boolean"}],["aria-relevant",{type:"tokenlist",values:["additions","all","removals","text"]}],["aria-required",{type:"boolean"}],["aria-roledescription",{type:"string"}],["aria-rowcount",{type:"integer"}],["aria-rowindex",{type:"integer"}],["aria-rowspan",{type:"integer"}],["aria-selected",{type:"boolean",allowundefined:!0}],["aria-setsize",{type:"integer"}],["aria-sort",{type:"token",values:["ascending","descending","none","other"]}],["aria-valuemax",{type:"number"}],["aria-valuemin",{type:"number"}],["aria-valuenow",{type:"number"}],["aria-valuetext",{type:"string"}]],xJ={entries:function(){return C5},forEach:function(Z){var Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;for(var Y=0,J=C5;Y<J.length;Y++){var H=lJ(J[Y],2),X=H[0],G=H[1];Z.call(Q,G,X,C5)}},get:function(Z){var Q=C5.find(function(Y){return Y[0]===Z?!0:!1});return Q&&Q[1]},has:function(Z){return!!xJ.get(Z)},keys:function(){return C5.map(function(Z){var Q=lJ(Z,1),Y=Q[0];return Y})},values:function(){return C5.map(function(Z){var Q=lJ(Z,2),Y=Q[1];return Y})}},ZO8=qP.default=(0,us.default)(xJ,xJ.entries())});var XP=k((JP)=>{Object.defineProperty(JP,"__esModule",{value:!0});JP.default=void 0;var ls=xs(D5());function xs(q){return q&&q.__esModule?q:{default:q}}function mJ(q,Z){return rs(q)||cs(q,Z)||ps(q,Z)||ms()}function ms(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
3
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ps(q,Z){if(q){if(typeof q=="string")return YP(q,Z);var Q={}.toString.call(q).slice(8,-1);return Q==="Object"&&q.constructor&&(Q=q.constructor.name),Q==="Map"||Q==="Set"?Array.from(q):Q==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Q)?YP(q,Z):void 0}}function YP(q,Z){(Z==null||Z>q.length)&&(Z=q.length);for(var Q=0,Y=Array(Z);Q<Z;Q++)Y[Q]=q[Q];return Y}function cs(q,Z){var Q=q==null?null:typeof Symbol<"u"&&q[Symbol.iterator]||q["@@iterator"];if(Q!=null){var Y,J,H,X,G=[],W=!0,R=!1;try{if(H=(Q=Q.call(q)).next,Z===0){if(Object(Q)!==Q)return;W=!1}else for(;!(W=(Y=H.call(Q)).done)&&(G.push(Y.value),G.length!==Z);W=!0);}catch(B){R=!0,J=B}finally{try{if(!W&&Q.return!=null&&(X=Q.return(),Object(X)!==X))return}finally{if(R)throw J}}return G}}function rs(q){if(Array.isArray(q))return q}var E5=[["a",{reserved:!1}],["abbr",{reserved:!1}],["acronym",{reserved:!1}],["address",{reserved:!1}],["applet",{reserved:!1}],["area",{reserved:!1}],["article",{reserved:!1}],["aside",{reserved:!1}],["audio",{reserved:!1}],["b",{reserved:!1}],["base",{reserved:!0}],["bdi",{reserved:!1}],["bdo",{reserved:!1}],["big",{reserved:!1}],["blink",{reserved:!1}],["blockquote",{reserved:!1}],["body",{reserved:!1}],["br",{reserved:!1}],["button",{reserved:!1}],["canvas",{reserved:!1}],["caption",{reserved:!1}],["center",{reserved:!1}],["cite",{reserved:!1}],["code",{reserved:!1}],["col",{reserved:!0}],["colgroup",{reserved:!0}],["content",{reserved:!1}],["data",{reserved:!1}],["datalist",{reserved:!1}],["dd",{reserved:!1}],["del",{reserved:!1}],["details",{reserved:!1}],["dfn",{reserved:!1}],["dialog",{reserved:!1}],["dir",{reserved:!1}],["div",{reserved:!1}],["dl",{reserved:!1}],["dt",{reserved:!1}],["em",{reserved:!1}],["embed",{reserved:!1}],["fieldset",{reserved:!1}],["figcaption",{reserved:!1}],["figure",{reserved:!1}],["font",{reserved:!1}],["footer",{reserved:!1}],["form",{reserved:!1}],["frame",{reserved:!1}],["frameset",{reserved:!1}],["h1",{reserved:!1}],["h2",{reserved:!1}],["h3",{reserved:!1}],["h4",{reserved:!1}],["h5",{reserved:!1}],["h6",{reserved:!1}],["head",{reserved:!0}],["header",{reserved:!1}],["hgroup",{reserved:!1}],["hr",{reserved:!1}],["html",{reserved:!0}],["i",{reserved:!1}],["iframe",{reserved:!1}],["img",{reserved:!1}],["input",{reserved:!1}],["ins",{reserved:!1}],["kbd",{reserved:!1}],["keygen",{reserved:!1}],["label",{reserved:!1}],["legend",{reserved:!1}],["li",{reserved:!1}],["link",{reserved:!0}],["main",{reserved:!1}],["map",{reserved:!1}],["mark",{reserved:!1}],["marquee",{reserved:!1}],["menu",{reserved:!1}],["menuitem",{reserved:!1}],["meta",{reserved:!0}],["meter",{reserved:!1}],["nav",{reserved:!1}],["noembed",{reserved:!0}],["noscript",{reserved:!0}],["object",{reserved:!1}],["ol",{reserved:!1}],["optgroup",{reserved:!1}],["option",{reserved:!1}],["output",{reserved:!1}],["p",{reserved:!1}],["param",{reserved:!0}],["picture",{reserved:!0}],["pre",{reserved:!1}],["progress",{reserved:!1}],["q",{reserved:!1}],["rp",{reserved:!1}],["rt",{reserved:!1}],["rtc",{reserved:!1}],["ruby",{reserved:!1}],["s",{reserved:!1}],["samp",{reserved:!1}],["script",{reserved:!0}],["section",{reserved:!1}],["select",{reserved:!1}],["small",{reserved:!1}],["source",{reserved:!0}],["spacer",{reserved:!1}],["span",{reserved:!1}],["strike",{reserved:!1}],["strong",{reserved:!1}],["style",{reserved:!0}],["sub",{reserved:!1}],["summary",{reserved:!1}],["sup",{reserved:!1}],["table",{reserved:!1}],["tbody",{reserved:!1}],["td",{reserved:!1}],["textarea",{reserved:!1}],["tfoot",{reserved:!1}],["th",{reserved:!1}],["thead",{reserved:!1}],["time",{reserved:!1}],["title",{reserved:!0}],["tr",{reserved:!1}],["track",{reserved:!0}],["tt",{reserved:!1}],["u",{reserved:!1}],["ul",{reserved:!1}],["var",{reserved:!1}],["video",{reserved:!1}],["wbr",{reserved:!1}],["xmp",{reserved:!1}]],pJ={entries:function(){return E5},forEach:function(Z){var Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;for(var Y=0,J=E5;Y<J.length;Y++){var H=mJ(J[Y],2),X=H[0],G=H[1];Z.call(Q,G,X,E5)}},get:function(Z){var Q=E5.find(function(Y){return Y[0]===Z?!0:!1});return Q&&Q[1]},has:function(Z){return!!pJ.get(Z)},keys:function(){return E5.map(function(Z){var Q=mJ(Z,1),Y=Q[0];return Y})},values:function(){return E5.map(function(Z){var Q=mJ(Z,2),Y=Q[1];return Y})}},YO8=JP.default=(0,ls.default)(pJ,pJ.entries())});var WP=k((GP)=>{Object.defineProperty(GP,"__esModule",{value:!0});GP.default=void 0;var is={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget"]]},HO8=GP.default=is});var RP=k(($P)=>{Object.defineProperty($P,"__esModule",{value:!0});$P.default=void 0;var ds={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-activedescendant":null,"aria-disabled":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget"]]},GO8=$P.default=ds});var MP=k((zP)=>{Object.defineProperty(zP,"__esModule",{value:!0});zP.default=void 0;var ss={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null},relatedConcepts:[{concept:{name:"input"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget"]]},WO8=zP.default=ss});var OP=k((PP)=>{Object.defineProperty(PP,"__esModule",{value:!0});PP.default=void 0;var as={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},UO8=PP.default=as});var jP=k((wP)=>{Object.defineProperty(wP,"__esModule",{value:!0});wP.default=void 0;var os={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]},zO8=wP.default=os});var CP=k((IP)=>{Object.defineProperty(IP,"__esModule",{value:!0});IP.default=void 0;var ns={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{"aria-atomic":null,"aria-busy":null,"aria-controls":null,"aria-current":null,"aria-describedby":null,"aria-details":null,"aria-dropeffect":null,"aria-flowto":null,"aria-grabbed":null,"aria-hidden":null,"aria-keyshortcuts":null,"aria-label":null,"aria-labelledby":null,"aria-live":null,"aria-owns":null,"aria-relevant":null,"aria-roledescription":null},relatedConcepts:[{concept:{name:"role"},module:"XHTML"},{concept:{name:"type"},module:"Dublin Core"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[]},MO8=IP.default=ns});var TP=k((EP)=>{Object.defineProperty(EP,"__esModule",{value:!0});EP.default=void 0;var ts={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"frontmatter"},module:"DTB"},{concept:{name:"level"},module:"DTB"},{concept:{name:"level"},module:"SMIL"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]},LO8=EP.default=ts});var vP=k((fP)=>{Object.defineProperty(fP,"__esModule",{value:!0});fP.default=void 0;var es={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]},wO8=fP.default=es});var SP=k((NP)=>{Object.defineProperty(NP,"__esModule",{value:!0});NP.default=void 0;var qa={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-orientation":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","composite"],["roletype","structure","section","group"]]},jO8=NP.default=qa});var hP=k((uP)=>{Object.defineProperty(uP,"__esModule",{value:!0});uP.default=void 0;var Za={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype"]]},DO8=uP.default=Za});var gP=k((yP)=>{Object.defineProperty(yP,"__esModule",{value:!0});yP.default=void 0;var Qa={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype"]]},EO8=yP.default=Qa});var mP=k((lP)=>{Object.defineProperty(lP,"__esModule",{value:!0});lP.default=void 0;var Ya={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-modal":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype"]]},TO8=lP.default=Ya});var rP=k((pP)=>{Object.defineProperty(pP,"__esModule",{value:!0});pP.default=void 0;var Ja=d1(WP()),Ha=d1(RP()),Xa=d1(MP()),Ga=d1(OP()),Va=d1(jP()),Wa=d1(CP()),$a=d1(TP()),Ua=d1(vP()),Ra=d1(SP()),za=d1(hP()),Ba=d1(gP()),Ma=d1(mP());function d1(q){return q&&q.__esModule?q:{default:q}}var Pa=[["command",Ja.default],["composite",Ha.default],["input",Xa.default],["landmark",Ga.default],["range",Va.default],["roletype",Wa.default],["section",$a.default],["sectionhead",Ua.default],["select",Ra.default],["structure",za.default],["widget",Ba.default],["window",Ma.default]],KO8=pP.default=Pa});var sP=k((iP)=>{Object.defineProperty(iP,"__esModule",{value:!0});iP.default=void 0;var La={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-atomic":"true","aria-live":"assertive"},relatedConcepts:[{concept:{name:"alert"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},NO8=iP.default=La});var nP=k((aP)=>{Object.defineProperty(aP,"__esModule",{value:!0});aP.default=void 0;var Oa={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"alert"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","alert"],["roletype","window","dialog"]]},SO8=aP.default=Oa});var qL=k((tP)=>{Object.defineProperty(tP,"__esModule",{value:!0});tP.default=void 0;var wa={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-activedescendant":null,"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"Device Independence Delivery Unit"}}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]},bO8=tP.default=wa});var YL=k((ZL)=>{Object.defineProperty(ZL,"__esModule",{value:!0});ZL.default=void 0;var Aa={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-posinset":null,"aria-setsize":null},relatedConcepts:[{concept:{name:"article"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","document"]]},yO8=ZL.default=Aa});var XL=k((JL)=>{Object.defineProperty(JL,"__esModule",{value:!0});JL.default=void 0;var ja={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{constraints:["scoped to the body element"],name:"header"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},gO8=JL.default=ja});var WL=k((GL)=>{Object.defineProperty(GL,"__esModule",{value:!0});GL.default=void 0;var Ia={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"blockquote"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},xO8=GL.default=Ia});var RL=k(($L)=>{Object.defineProperty($L,"__esModule",{value:!0});$L.default=void 0;var Da={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-disabled":null,"aria-expanded":null,"aria-haspopup":null,"aria-pressed":null},relatedConcepts:[{concept:{attributes:[{name:"type",value:"button"}],name:"input"},module:"HTML"},{concept:{attributes:[{name:"type",value:"image"}],name:"input"},module:"HTML"},{concept:{attributes:[{name:"type",value:"reset"}],name:"input"},module:"HTML"},{concept:{attributes:[{name:"type",value:"submit"}],name:"input"},module:"HTML"},{concept:{name:"button"},module:"HTML"},{concept:{name:"trigger"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command"]]},pO8=$L.default=Da});var ML=k((zL)=>{Object.defineProperty(zL,"__esModule",{value:!0});zL.default=void 0;var Ca={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"caption"},module:"HTML"}],requireContextRole:["figure","grid","table"],requiredContextRole:["figure","grid","table"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},rO8=zL.default=Ca});var OL=k((PL)=>{Object.defineProperty(PL,"__esModule",{value:!0});PL.default=void 0;var Ea={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-colindex":null,"aria-colspan":null,"aria-rowindex":null,"aria-rowspan":null},relatedConcepts:[{concept:{constraints:["ancestor table element has table role"],name:"td"},module:"HTML"}],requireContextRole:["row"],requiredContextRole:["row"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},dO8=PL.default=Ea});var jL=k((wL)=>{Object.defineProperty(wL,"__esModule",{value:!0});wL.default=void 0;var Fa={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-checked":null,"aria-errormessage":null,"aria-expanded":null,"aria-invalid":null,"aria-readonly":null,"aria-required":null},relatedConcepts:[{concept:{attributes:[{name:"type",value:"checkbox"}],name:"input"},module:"HTML"},{concept:{name:"option"},module:"ARIA"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-checked":null},superClass:[["roletype","widget","input"]]},aO8=wL.default=Fa});var CL=k((IL)=>{Object.defineProperty(IL,"__esModule",{value:!0});IL.default=void 0;var Ta={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"code"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},nO8=IL.default=Ta});var TL=k((EL)=>{Object.defineProperty(EL,"__esModule",{value:!0});EL.default=void 0;var fa={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-sort":null},relatedConcepts:[{concept:{name:"th"},module:"HTML"},{concept:{attributes:[{name:"scope",value:"col"}],name:"th"},module:"HTML"},{concept:{attributes:[{name:"scope",value:"colgroup"}],name:"th"},module:"HTML"}],requireContextRole:["row"],requiredContextRole:["row"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","cell"],["roletype","structure","section","cell","gridcell"],["roletype","widget","gridcell"],["roletype","structure","sectionhead"]]},eO8=EL.default=fa});var vL=k((fL)=>{Object.defineProperty(fL,"__esModule",{value:!0});fL.default=void 0;var Ka={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-activedescendant":null,"aria-autocomplete":null,"aria-errormessage":null,"aria-invalid":null,"aria-readonly":null,"aria-required":null,"aria-expanded":"false","aria-haspopup":"listbox"},relatedConcepts:[{concept:{attributes:[{constraints:["set"],name:"list"},{name:"type",value:"email"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"list"},{name:"type",value:"search"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"list"},{name:"type",value:"tel"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"list"},{name:"type",value:"text"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"list"},{name:"type",value:"url"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"list"},{name:"type",value:"url"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["undefined"],name:"multiple"},{constraints:["undefined"],name:"size"}],constraints:["the multiple attribute is not set and the size attribute does not have a value greater than 1"],name:"select"},module:"HTML"},{concept:{name:"select"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-controls":null,"aria-expanded":"false"},superClass:[["roletype","widget","input"]]},Zw8=fL.default=Ka});var SL=k((NL)=>{Object.defineProperty(NL,"__esModule",{value:!0});NL.default=void 0;var va={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{constraints:["scoped to the body element","scoped to the main element"],name:"aside"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"aria-label"}],constraints:["scoped to a sectioning content element","scoped to a sectioning root element other than body"],name:"aside"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"aria-labelledby"}],constraints:["scoped to a sectioning content element","scoped to a sectioning root element other than body"],name:"aside"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},Yw8=NL.default=va});var hL=k((uL)=>{Object.defineProperty(uL,"__esModule",{value:!0});uL.default=void 0;var Na={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{constraints:["scoped to the body element"],name:"footer"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},Hw8=uL.default=Na});var gL=k((yL)=>{Object.defineProperty(yL,"__esModule",{value:!0});yL.default=void 0;var ka={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"dd"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},Gw8=yL.default=ka});var mL=k((lL)=>{Object.defineProperty(lL,"__esModule",{value:!0});lL.default=void 0;var Sa={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"del"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},Ww8=lL.default=Sa});var rL=k((pL)=>{Object.defineProperty(pL,"__esModule",{value:!0});pL.default=void 0;var ua={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"dialog"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","window"]]},Uw8=pL.default=ua});var sL=k((iL)=>{Object.defineProperty(iL,"__esModule",{value:!0});iL.default=void 0;var ba={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{module:"DAISY Guide"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","list"]]},zw8=iL.default=ba});var nL=k((aL)=>{Object.defineProperty(aL,"__esModule",{value:!0});aL.default=void 0;var ha={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"Device Independence Delivery Unit"}},{concept:{name:"html"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]},Mw8=aL.default=ha});var qO=k((tL)=>{Object.defineProperty(tL,"__esModule",{value:!0});tL.default=void 0;var ya={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"em"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},Lw8=tL.default=ya});var YO=k((ZO)=>{Object.defineProperty(ZO,"__esModule",{value:!0});ZO.default=void 0;var _a={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["article"]],requiredProps:{},superClass:[["roletype","structure","section","list"]]},ww8=ZO.default=_a});var XO=k((JO)=>{Object.defineProperty(JO,"__esModule",{value:!0});JO.default=void 0;var ga={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"figure"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},jw8=JO.default=ga});var WO=k((GO)=>{Object.defineProperty(GO,"__esModule",{value:!0});GO.default=void 0;var la={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{attributes:[{constraints:["set"],name:"aria-label"}],name:"form"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"aria-labelledby"}],name:"form"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"name"}],name:"form"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},Dw8=GO.default=la});var RO=k(($O)=>{Object.defineProperty($O,"__esModule",{value:!0});$O.default=void 0;var xa={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"a"},module:"HTML"},{concept:{name:"area"},module:"HTML"},{concept:{name:"aside"},module:"HTML"},{concept:{name:"b"},module:"HTML"},{concept:{name:"bdo"},module:"HTML"},{concept:{name:"body"},module:"HTML"},{concept:{name:"data"},module:"HTML"},{concept:{name:"div"},module:"HTML"},{concept:{constraints:["scoped to the main element","scoped to a sectioning content element","scoped to a sectioning root element other than body"],name:"footer"},module:"HTML"},{concept:{constraints:["scoped to the main element","scoped to a sectioning content element","scoped to a sectioning root element other than body"],name:"header"},module:"HTML"},{concept:{name:"hgroup"},module:"HTML"},{concept:{name:"i"},module:"HTML"},{concept:{name:"pre"},module:"HTML"},{concept:{name:"q"},module:"HTML"},{concept:{name:"samp"},module:"HTML"},{concept:{name:"section"},module:"HTML"},{concept:{name:"small"},module:"HTML"},{concept:{name:"span"},module:"HTML"},{concept:{name:"u"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]},Ew8=$O.default=xa});var MO=k((zO)=>{Object.defineProperty(zO,"__esModule",{value:!0});zO.default=void 0;var ma={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-multiselectable":null,"aria-readonly":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["row"],["row","rowgroup"]],requiredProps:{},superClass:[["roletype","widget","composite"],["roletype","structure","section","table"]]},Tw8=zO.default=ma});var OO=k((PO)=>{Object.defineProperty(PO,"__esModule",{value:!0});PO.default=void 0;var pa={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null,"aria-readonly":null,"aria-required":null,"aria-selected":null},relatedConcepts:[{concept:{constraints:["ancestor table element has grid role","ancestor table element has treegrid role"],name:"td"},module:"HTML"}],requireContextRole:["row"],requiredContextRole:["row"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","cell"],["roletype","widget"]]},Kw8=PO.default=pa});var jO=k((wO)=>{Object.defineProperty(wO,"__esModule",{value:!0});wO.default=void 0;var ca={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-activedescendant":null,"aria-disabled":null},relatedConcepts:[{concept:{name:"details"},module:"HTML"},{concept:{name:"fieldset"},module:"HTML"},{concept:{name:"optgroup"},module:"HTML"},{concept:{name:"address"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},Nw8=wO.default=ca});var CO=k((IO)=>{Object.defineProperty(IO,"__esModule",{value:!0});IO.default=void 0;var ra={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-level":"2"},relatedConcepts:[{concept:{name:"h1"},module:"HTML"},{concept:{name:"h2"},module:"HTML"},{concept:{name:"h3"},module:"HTML"},{concept:{name:"h4"},module:"HTML"},{concept:{name:"h5"},module:"HTML"},{concept:{name:"h6"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-level":"2"},superClass:[["roletype","structure","sectionhead"]]},Sw8=IO.default=ra});var TO=k((EO)=>{Object.defineProperty(EO,"__esModule",{value:!0});EO.default=void 0;var ia={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{attributes:[{constraints:["set"],name:"alt"}],name:"img"},module:"HTML"},{concept:{attributes:[{constraints:["undefined"],name:"alt"}],name:"img"},module:"HTML"},{concept:{name:"imggroup"},module:"DTB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},bw8=EO.default=ia});var vO=k((fO)=>{Object.defineProperty(fO,"__esModule",{value:!0});fO.default=void 0;var da={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"ins"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},yw8=fO.default=da});var SO=k((NO)=>{Object.defineProperty(NO,"__esModule",{value:!0});NO.default=void 0;var sa={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-disabled":null,"aria-expanded":null,"aria-haspopup":null},relatedConcepts:[{concept:{attributes:[{constraints:["set"],name:"href"}],name:"a"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"href"}],name:"area"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command"]]},gw8=NO.default=sa});var hO=k((uO)=>{Object.defineProperty(uO,"__esModule",{value:!0});uO.default=void 0;var aa={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"menu"},module:"HTML"},{concept:{name:"ol"},module:"HTML"},{concept:{name:"ul"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["listitem"]],requiredProps:{},superClass:[["roletype","structure","section"]]},xw8=uO.default=aa});var gO=k((yO)=>{Object.defineProperty(yO,"__esModule",{value:!0});yO.default=void 0;var oa={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-expanded":null,"aria-invalid":null,"aria-multiselectable":null,"aria-readonly":null,"aria-required":null,"aria-orientation":"vertical"},relatedConcepts:[{concept:{attributes:[{constraints:[">1"],name:"size"}],constraints:["the size attribute value is greater than 1"],name:"select"},module:"HTML"},{concept:{attributes:[{name:"multiple"}],name:"select"},module:"HTML"},{concept:{name:"datalist"},module:"HTML"},{concept:{name:"list"},module:"ARIA"},{concept:{name:"select"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["option","group"],["option"]],requiredProps:{},superClass:[["roletype","widget","composite","select"],["roletype","structure","section","group","select"]]},pw8=yO.default=oa});var mO=k((lO)=>{Object.defineProperty(lO,"__esModule",{value:!0});lO.default=void 0;var na={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-level":null,"aria-posinset":null,"aria-setsize":null},relatedConcepts:[{concept:{constraints:["direct descendant of ol","direct descendant of ul","direct descendant of menu"],name:"li"},module:"HTML"},{concept:{name:"item"},module:"XForms"}],requireContextRole:["directory","list"],requiredContextRole:["directory","list"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},rw8=lO.default=na});var rO=k((pO)=>{Object.defineProperty(pO,"__esModule",{value:!0});pO.default=void 0;var ta={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-live":"polite"},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},dw8=pO.default=ta});var sO=k((iO)=>{Object.defineProperty(iO,"__esModule",{value:!0});iO.default=void 0;var ea={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"main"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},aw8=iO.default=ea});var nO=k((aO)=>{Object.defineProperty(aO,"__esModule",{value:!0});aO.default=void 0;var qo={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:[],props:{"aria-braillelabel":null,"aria-brailleroledescription":null,"aria-description":null},relatedConcepts:[{concept:{name:"mark"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},nw8=aO.default=qo});var qw=k((tO)=>{Object.defineProperty(tO,"__esModule",{value:!0});tO.default=void 0;var Zo={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},ew8=tO.default=Zo});var Yw=k((Zw)=>{Object.defineProperty(Zw,"__esModule",{value:!0});Zw.default=void 0;var Qo={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"math"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},ZA8=Zw.default=Qo});var Xw=k((Jw)=>{Object.defineProperty(Jw,"__esModule",{value:!0});Jw.default=void 0;var Yo={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-orientation":"vertical"},relatedConcepts:[{concept:{name:"MENU"},module:"JAPI"},{concept:{name:"list"},module:"ARIA"},{concept:{name:"select"},module:"XForms"},{concept:{name:"sidebar"},module:"DTB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["menuitem","group"],["menuitemradio","group"],["menuitemcheckbox","group"],["menuitem"],["menuitemcheckbox"],["menuitemradio"]],requiredProps:{},superClass:[["roletype","widget","composite","select"],["roletype","structure","section","group","select"]]},YA8=Jw.default=Yo});var Ww=k((Gw)=>{Object.defineProperty(Gw,"__esModule",{value:!0});Gw.default=void 0;var Jo={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-orientation":"horizontal"},relatedConcepts:[{concept:{name:"toolbar"},module:"ARIA"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["menuitem","group"],["menuitemradio","group"],["menuitemcheckbox","group"],["menuitem"],["menuitemcheckbox"],["menuitemradio"]],requiredProps:{},superClass:[["roletype","widget","composite","select","menu"],["roletype","structure","section","group","select","menu"]]},HA8=Gw.default=Jo});var Rw=k(($w)=>{Object.defineProperty($w,"__esModule",{value:!0});$w.default=void 0;var Ho={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-disabled":null,"aria-expanded":null,"aria-haspopup":null,"aria-posinset":null,"aria-setsize":null},relatedConcepts:[{concept:{name:"MENU_ITEM"},module:"JAPI"},{concept:{name:"listitem"},module:"ARIA"},{concept:{name:"option"},module:"ARIA"}],requireContextRole:["group","menu","menubar"],requiredContextRole:["group","menu","menubar"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command"]]},GA8=$w.default=Ho});var Mw=k((zw)=>{Object.defineProperty(zw,"__esModule",{value:!0});zw.default=void 0;var Xo={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"menuitem"},module:"ARIA"}],requireContextRole:["group","menu","menubar"],requiredContextRole:["group","menu","menubar"],requiredOwnedElements:[],requiredProps:{"aria-checked":null},superClass:[["roletype","widget","input","checkbox"],["roletype","widget","command","menuitem"]]},WA8=zw.default=Xo});var Ow=k((Pw)=>{Object.defineProperty(Pw,"__esModule",{value:!0});Pw.default=void 0;var Go={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"menuitem"},module:"ARIA"}],requireContextRole:["group","menu","menubar"],requiredContextRole:["group","menu","menubar"],requiredOwnedElements:[],requiredProps:{"aria-checked":null},superClass:[["roletype","widget","input","checkbox","menuitemcheckbox"],["roletype","widget","command","menuitem","menuitemcheckbox"],["roletype","widget","input","radio"]]},UA8=Pw.default=Go});var jw=k((ww)=>{Object.defineProperty(ww,"__esModule",{value:!0});ww.default=void 0;var Vo={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-valuetext":null,"aria-valuemax":"100","aria-valuemin":"0"},relatedConcepts:[{concept:{name:"meter"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-valuenow":null},superClass:[["roletype","structure","range"]]},zA8=ww.default=Vo});var Cw=k((Iw)=>{Object.defineProperty(Iw,"__esModule",{value:!0});Iw.default=void 0;var Wo={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"nav"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},MA8=Iw.default=Wo});var Tw=k((Ew)=>{Object.defineProperty(Ew,"__esModule",{value:!0});Ew.default=void 0;var $o={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[]},LA8=Ew.default=$o});var vw=k((fw)=>{Object.defineProperty(fw,"__esModule",{value:!0});fw.default=void 0;var Uo={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},wA8=fw.default=Uo});var Sw=k((Nw)=>{Object.defineProperty(Nw,"__esModule",{value:!0});Nw.default=void 0;var Ro={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-checked":null,"aria-posinset":null,"aria-setsize":null,"aria-selected":"false"},relatedConcepts:[{concept:{name:"item"},module:"XForms"},{concept:{name:"listitem"},module:"ARIA"},{concept:{name:"option"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-selected":"false"},superClass:[["roletype","widget","input"]]},jA8=Nw.default=Ro});var hw=k((uw)=>{Object.defineProperty(uw,"__esModule",{value:!0});uw.default=void 0;var zo={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"p"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},DA8=uw.default=zo});var gw=k((yw)=>{Object.defineProperty(yw,"__esModule",{value:!0});yw.default=void 0;var Bo={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{attributes:[{name:"alt",value:""}],name:"img"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]},EA8=yw.default=Bo});var mw=k((lw)=>{Object.defineProperty(lw,"__esModule",{value:!0});lw.default=void 0;var Mo={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-valuetext":null},relatedConcepts:[{concept:{name:"progress"},module:"HTML"},{concept:{name:"status"},module:"ARIA"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","range"],["roletype","widget"]]},TA8=lw.default=Mo});var rw=k((pw)=>{Object.defineProperty(pw,"__esModule",{value:!0});pw.default=void 0;var Po={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-checked":null,"aria-posinset":null,"aria-setsize":null},relatedConcepts:[{concept:{attributes:[{name:"type",value:"radio"}],name:"input"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-checked":null},superClass:[["roletype","widget","input"]]},KA8=pw.default=Po});var sw=k((iw)=>{Object.defineProperty(iw,"__esModule",{value:!0});iw.default=void 0;var Lo={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null,"aria-readonly":null,"aria-required":null},relatedConcepts:[{concept:{name:"list"},module:"ARIA"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["radio"]],requiredProps:{},superClass:[["roletype","widget","composite","select"],["roletype","structure","section","group","select"]]},NA8=iw.default=Lo});var nw=k((aw)=>{Object.defineProperty(aw,"__esModule",{value:!0});aw.default=void 0;var Oo={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{attributes:[{constraints:["set"],name:"aria-label"}],name:"section"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"aria-labelledby"}],name:"section"},module:"HTML"},{concept:{name:"Device Independence Glossart perceivable unit"}}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},SA8=aw.default=Oo});var qA=k((tw)=>{Object.defineProperty(tw,"__esModule",{value:!0});tw.default=void 0;var wo={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-colindex":null,"aria-expanded":null,"aria-level":null,"aria-posinset":null,"aria-rowindex":null,"aria-selected":null,"aria-setsize":null},relatedConcepts:[{concept:{name:"tr"},module:"HTML"}],requireContextRole:["grid","rowgroup","table","treegrid"],requiredContextRole:["grid","rowgroup","table","treegrid"],requiredOwnedElements:[["cell"],["columnheader"],["gridcell"],["rowheader"]],requiredProps:{},superClass:[["roletype","structure","section","group"],["roletype","widget"]]},bA8=tw.default=wo});var YA=k((ZA)=>{Object.defineProperty(ZA,"__esModule",{value:!0});ZA.default=void 0;var Ao={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"tbody"},module:"HTML"},{concept:{name:"tfoot"},module:"HTML"},{concept:{name:"thead"},module:"HTML"}],requireContextRole:["grid","table","treegrid"],requiredContextRole:["grid","table","treegrid"],requiredOwnedElements:[["row"]],requiredProps:{},superClass:[["roletype","structure"]]},yA8=ZA.default=Ao});var XA=k((JA)=>{Object.defineProperty(JA,"__esModule",{value:!0});JA.default=void 0;var jo={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-sort":null},relatedConcepts:[{concept:{attributes:[{name:"scope",value:"row"}],name:"th"},module:"HTML"},{concept:{attributes:[{name:"scope",value:"rowgroup"}],name:"th"},module:"HTML"}],requireContextRole:["row","rowgroup"],requiredContextRole:["row","rowgroup"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","cell"],["roletype","structure","section","cell","gridcell"],["roletype","widget","gridcell"],["roletype","structure","sectionhead"]]},gA8=JA.default=jo});var WA=k((GA)=>{Object.defineProperty(GA,"__esModule",{value:!0});GA.default=void 0;var Io={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-valuetext":null,"aria-orientation":"vertical","aria-valuemax":"100","aria-valuemin":"0"},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-controls":null,"aria-valuenow":null},superClass:[["roletype","structure","range"],["roletype","widget"]]},xA8=GA.default=Io});var RA=k(($A)=>{Object.defineProperty($A,"__esModule",{value:!0});$A.default=void 0;var Do={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},pA8=$A.default=Do});var MA=k((zA)=>{Object.defineProperty(zA,"__esModule",{value:!0});zA.default=void 0;var Co={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{attributes:[{constraints:["undefined"],name:"list"},{name:"type",value:"search"}],constraints:["the list attribute is not set"],name:"input"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","input","textbox"]]},rA8=zA.default=Co});var OA=k((PA)=>{Object.defineProperty(PA,"__esModule",{value:!0});PA.default=void 0;var Eo={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-orientation":"horizontal","aria-valuemax":"100","aria-valuemin":"0","aria-valuenow":null,"aria-valuetext":null},relatedConcepts:[{concept:{name:"hr"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]},dA8=PA.default=Eo});var jA=k((wA)=>{Object.defineProperty(wA,"__esModule",{value:!0});wA.default=void 0;var Fo={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-haspopup":null,"aria-invalid":null,"aria-readonly":null,"aria-valuetext":null,"aria-orientation":"horizontal","aria-valuemax":"100","aria-valuemin":"0"},relatedConcepts:[{concept:{attributes:[{name:"type",value:"range"}],name:"input"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-valuenow":null},superClass:[["roletype","widget","input"],["roletype","structure","range"]]},aA8=wA.default=Fo});var CA=k((IA)=>{Object.defineProperty(IA,"__esModule",{value:!0});IA.default=void 0;var To={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null,"aria-readonly":null,"aria-required":null,"aria-valuetext":null,"aria-valuenow":"0"},relatedConcepts:[{concept:{attributes:[{name:"type",value:"number"}],name:"input"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","composite"],["roletype","widget","input"],["roletype","structure","range"]]},nA8=IA.default=To});var TA=k((EA)=>{Object.defineProperty(EA,"__esModule",{value:!0});EA.default=void 0;var fo={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-atomic":"true","aria-live":"polite"},relatedConcepts:[{concept:{name:"output"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},eA8=EA.default=fo});var vA=k((fA)=>{Object.defineProperty(fA,"__esModule",{value:!0});fA.default=void 0;var Ko={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"strong"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},Zj8=fA.default=Ko});var SA=k((NA)=>{Object.defineProperty(NA,"__esModule",{value:!0});NA.default=void 0;var vo={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"sub"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},Yj8=NA.default=vo});var hA=k((uA)=>{Object.defineProperty(uA,"__esModule",{value:!0});uA.default=void 0;var No={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"sup"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},Hj8=uA.default=No});var gA=k((yA)=>{Object.defineProperty(yA,"__esModule",{value:!0});yA.default=void 0;var ko={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"button"},module:"ARIA"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-checked":null},superClass:[["roletype","widget","input","checkbox"]]},Gj8=yA.default=ko});var mA=k((lA)=>{Object.defineProperty(lA,"__esModule",{value:!0});lA.default=void 0;var So={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-disabled":null,"aria-expanded":null,"aria-haspopup":null,"aria-posinset":null,"aria-setsize":null,"aria-selected":"false"},relatedConcepts:[],requireContextRole:["tablist"],requiredContextRole:["tablist"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","sectionhead"],["roletype","widget"]]},Wj8=lA.default=So});var rA=k((pA)=>{Object.defineProperty(pA,"__esModule",{value:!0});pA.default=void 0;var uo={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-colcount":null,"aria-rowcount":null},relatedConcepts:[{concept:{name:"table"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["row"],["row","rowgroup"]],requiredProps:{},superClass:[["roletype","structure","section"]]},Uj8=pA.default=uo});var sA=k((iA)=>{Object.defineProperty(iA,"__esModule",{value:!0});iA.default=void 0;var bo={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-level":null,"aria-multiselectable":null,"aria-orientation":"horizontal"},relatedConcepts:[{module:"DAISY",concept:{name:"guide"}}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["tab"]],requiredProps:{},superClass:[["roletype","widget","composite"]]},zj8=iA.default=bo});var nA=k((aA)=>{Object.defineProperty(aA,"__esModule",{value:!0});aA.default=void 0;var ho={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},Mj8=aA.default=ho});var qj=k((tA)=>{Object.defineProperty(tA,"__esModule",{value:!0});tA.default=void 0;var yo={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"dfn"},module:"HTML"},{concept:{name:"dt"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},Lj8=tA.default=yo});var Yj=k((Zj)=>{Object.defineProperty(Zj,"__esModule",{value:!0});Zj.default=void 0;var _o={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-activedescendant":null,"aria-autocomplete":null,"aria-errormessage":null,"aria-haspopup":null,"aria-invalid":null,"aria-multiline":null,"aria-placeholder":null,"aria-readonly":null,"aria-required":null},relatedConcepts:[{concept:{attributes:[{constraints:["undefined"],name:"type"},{constraints:["undefined"],name:"list"}],constraints:["the list attribute is not set"],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["undefined"],name:"list"},{name:"type",value:"email"}],constraints:["the list attribute is not set"],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["undefined"],name:"list"},{name:"type",value:"tel"}],constraints:["the list attribute is not set"],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["undefined"],name:"list"},{name:"type",value:"text"}],constraints:["the list attribute is not set"],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["undefined"],name:"list"},{name:"type",value:"url"}],constraints:["the list attribute is not set"],name:"input"},module:"HTML"},{concept:{name:"input"},module:"XForms"},{concept:{name:"textarea"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","input"]]},wj8=Zj.default=_o});var Xj=k((Jj)=>{Object.defineProperty(Jj,"__esModule",{value:!0});Jj.default=void 0;var go={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"time"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},jj8=Jj.default=go});var Wj=k((Gj)=>{Object.defineProperty(Gj,"__esModule",{value:!0});Gj.default=void 0;var lo={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","status"]]},Dj8=Gj.default=lo});var Rj=k(($j)=>{Object.defineProperty($j,"__esModule",{value:!0});$j.default=void 0;var xo={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-orientation":"horizontal"},relatedConcepts:[{concept:{name:"menubar"},module:"ARIA"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","group"]]},Ej8=$j.default=xo});var Mj=k((zj)=>{Object.defineProperty(zj,"__esModule",{value:!0});zj.default=void 0;var mo={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},Tj8=zj.default=mo});var Oj=k((Pj)=>{Object.defineProperty(Pj,"__esModule",{value:!0});Pj.default=void 0;var po={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null,"aria-multiselectable":null,"aria-required":null,"aria-orientation":"vertical"},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["treeitem","group"],["treeitem"]],requiredProps:{},superClass:[["roletype","widget","composite","select"],["roletype","structure","section","group","select"]]},Kj8=Pj.default=po});var jj=k((wj)=>{Object.defineProperty(wj,"__esModule",{value:!0});wj.default=void 0;var co={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["row"],["row","rowgroup"]],requiredProps:{},superClass:[["roletype","widget","composite","grid"],["roletype","structure","section","table","grid"],["roletype","widget","composite","select","tree"],["roletype","structure","section","group","select","tree"]]},Nj8=wj.default=co});var Cj=k((Ij)=>{Object.defineProperty(Ij,"__esModule",{value:!0});Ij.default=void 0;var ro={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-expanded":null,"aria-haspopup":null},relatedConcepts:[],requireContextRole:["group","tree"],requiredContextRole:["group","tree"],requiredOwnedElements:[],requiredProps:{"aria-selected":null},superClass:[["roletype","structure","section","listitem"],["roletype","widget","input","option"]]},Sj8=Ij.default=ro});var Tj=k((Ej)=>{Object.defineProperty(Ej,"__esModule",{value:!0});Ej.default=void 0;var io=V8(sP()),so=V8(nP()),ao=V8(qL()),oo=V8(YL()),no=V8(XL()),to=V8(WL()),eo=V8(RL()),qn=V8(ML()),Zn=V8(OL()),Qn=V8(jL()),Yn=V8(CL()),Jn=V8(TL()),Hn=V8(vL()),Xn=V8(SL()),Gn=V8(hL()),Vn=V8(gL()),Wn=V8(mL()),$n=V8(rL()),Un=V8(sL()),Rn=V8(nL()),zn=V8(qO()),Bn=V8(YO()),Mn=V8(XO()),Pn=V8(WO()),Ln=V8(RO()),On=V8(MO()),wn=V8(OO()),An=V8(jO()),jn=V8(CO()),In=V8(TO()),Dn=V8(vO()),Cn=V8(SO()),En=V8(hO()),Fn=V8(gO()),Tn=V8(mO()),fn=V8(rO()),Kn=V8(sO()),vn=V8(nO()),Nn=V8(qw()),kn=V8(Yw()),Sn=V8(Xw()),un=V8(Ww()),bn=V8(Rw()),hn=V8(Mw()),yn=V8(Ow()),_n=V8(jw()),gn=V8(Cw()),ln=V8(Tw()),xn=V8(vw()),mn=V8(Sw()),pn=V8(hw()),cn=V8(gw()),rn=V8(mw()),dn=V8(rw()),sn=V8(sw()),an=V8(nw()),on=V8(qA()),nn=V8(YA()),tn=V8(XA()),en=V8(WA()),qt=V8(RA()),Zt=V8(MA()),Qt=V8(OA()),Yt=V8(jA()),Jt=V8(CA()),Ht=V8(TA()),Xt=V8(vA()),Gt=V8(SA()),Vt=V8(hA()),Wt=V8(gA()),$t=V8(mA()),Ut=V8(rA()),Rt=V8(sA()),zt=V8(nA()),Bt=V8(qj()),Mt=V8(Yj()),Pt=V8(Xj()),Lt=V8(Wj()),Ot=V8(Rj()),wt=V8(Mj()),At=V8(Oj()),jt=V8(jj()),It=V8(Cj());function V8(q){return q&&q.__esModule?q:{default:q}}var Dt=[["alert",io.default],["alertdialog",so.default],["application",ao.default],["article",oo.default],["banner",no.default],["blockquote",to.default],["button",eo.default],["caption",qn.default],["cell",Zn.default],["checkbox",Qn.default],["code",Yn.default],["columnheader",Jn.default],["combobox",Hn.default],["complementary",Xn.default],["contentinfo",Gn.default],["definition",Vn.default],["deletion",Wn.default],["dialog",$n.default],["directory",Un.default],["document",Rn.default],["emphasis",zn.default],["feed",Bn.default],["figure",Mn.default],["form",Pn.default],["generic",Ln.default],["grid",On.default],["gridcell",wn.default],["group",An.default],["heading",jn.default],["img",In.default],["insertion",Dn.default],["link",Cn.default],["list",En.default],["listbox",Fn.default],["listitem",Tn.default],["log",fn.default],["main",Kn.default],["mark",vn.default],["marquee",Nn.default],["math",kn.default],["menu",Sn.default],["menubar",un.default],["menuitem",bn.default],["menuitemcheckbox",hn.default],["menuitemradio",yn.default],["meter",_n.default],["navigation",gn.default],["none",ln.default],["note",xn.default],["option",mn.default],["paragraph",pn.default],["presentation",cn.default],["progressbar",rn.default],["radio",dn.default],["radiogroup",sn.default],["region",an.default],["row",on.default],["rowgroup",nn.default],["rowheader",tn.default],["scrollbar",en.default],["search",qt.default],["searchbox",Zt.default],["separator",Qt.default],["slider",Yt.default],["spinbutton",Jt.default],["status",Ht.default],["strong",Xt.default],["subscript",Gt.default],["superscript",Vt.default],["switch",Wt.default],["tab",$t.default],["table",Ut.default],["tablist",Rt.default],["tabpanel",zt.default],["term",Bt.default],["textbox",Mt.default],["time",Pt.default],["timer",Lt.default],["toolbar",Ot.default],["tooltip",wt.default],["tree",At.default],["treegrid",jt.default],["treeitem",It.default]],bj8=Ej.default=Dt});var vj=k((fj)=>{Object.defineProperty(fj,"__esModule",{value:!0});fj.default=void 0;var Ct={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"abstract [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},yj8=fj.default=Ct});var Sj=k((Nj)=>{Object.defineProperty(Nj,"__esModule",{value:!0});Nj.default=void 0;var Et={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"acknowledgments [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},gj8=Nj.default=Et});var hj=k((uj)=>{Object.defineProperty(uj,"__esModule",{value:!0});uj.default=void 0;var Ft={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"afterword [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},xj8=uj.default=Ft});var gj=k((yj)=>{Object.defineProperty(yj,"__esModule",{value:!0});yj.default=void 0;var Tt={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"appendix [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},pj8=yj.default=Tt});var mj=k((lj)=>{Object.defineProperty(lj,"__esModule",{value:!0});lj.default=void 0;var ft={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"referrer [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command","link"]]},rj8=lj.default=ft});var rj=k((pj)=>{Object.defineProperty(pj,"__esModule",{value:!0});pj.default=void 0;var Kt={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"EPUB biblioentry [EPUB-SSV]"},module:"EPUB"}],requireContextRole:["doc-bibliography"],requiredContextRole:["doc-bibliography"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","listitem"]]},dj8=pj.default=Kt});var sj=k((ij)=>{Object.defineProperty(ij,"__esModule",{value:!0});ij.default=void 0;var vt={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"bibliography [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["doc-biblioentry"]],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},aj8=ij.default=vt});var nj=k((aj)=>{Object.defineProperty(aj,"__esModule",{value:!0});aj.default=void 0;var Nt={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"biblioref [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command","link"]]},nj8=aj.default=Nt});var qI=k((tj)=>{Object.defineProperty(tj,"__esModule",{value:!0});tj.default=void 0;var kt={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"chapter [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},ej8=tj.default=kt});var YI=k((ZI)=>{Object.defineProperty(ZI,"__esModule",{value:!0});ZI.default=void 0;var St={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"colophon [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},ZI8=ZI.default=St});var XI=k((JI)=>{Object.defineProperty(JI,"__esModule",{value:!0});JI.default=void 0;var ut={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"conclusion [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},YI8=JI.default=ut});var WI=k((GI)=>{Object.defineProperty(GI,"__esModule",{value:!0});GI.default=void 0;var bt={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"cover [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","img"]]},HI8=GI.default=bt});var RI=k(($I)=>{Object.defineProperty($I,"__esModule",{value:!0});$I.default=void 0;var ht={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"credit [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},GI8=$I.default=ht});var MI=k((zI)=>{Object.defineProperty(zI,"__esModule",{value:!0});zI.default=void 0;var yt={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"credits [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},WI8=zI.default=yt});var OI=k((PI)=>{Object.defineProperty(PI,"__esModule",{value:!0});PI.default=void 0;var _t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"dedication [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},UI8=PI.default=_t});var jI=k((wI)=>{Object.defineProperty(wI,"__esModule",{value:!0});wI.default=void 0;var gt={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"rearnote [EPUB-SSV]"},module:"EPUB"}],requireContextRole:["doc-endnotes"],requiredContextRole:["doc-endnotes"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","listitem"]]},zI8=wI.default=gt});var CI=k((II)=>{Object.defineProperty(II,"__esModule",{value:!0});II.default=void 0;var lt={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"rearnotes [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["doc-endnote"]],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},MI8=II.default=lt});var TI=k((EI)=>{Object.defineProperty(EI,"__esModule",{value:!0});EI.default=void 0;var xt={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"epigraph [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},LI8=EI.default=xt});var vI=k((fI)=>{Object.defineProperty(fI,"__esModule",{value:!0});fI.default=void 0;var mt={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"epilogue [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},wI8=fI.default=mt});var SI=k((NI)=>{Object.defineProperty(NI,"__esModule",{value:!0});NI.default=void 0;var pt={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"errata [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},jI8=NI.default=pt});var hI=k((uI)=>{Object.defineProperty(uI,"__esModule",{value:!0});uI.default=void 0;var ct={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},DI8=uI.default=ct});var gI=k((yI)=>{Object.defineProperty(yI,"__esModule",{value:!0});yI.default=void 0;var rt={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"footnote [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},EI8=yI.default=rt});var mI=k((lI)=>{Object.defineProperty(lI,"__esModule",{value:!0});lI.default=void 0;var it={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"foreword [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},TI8=lI.default=it});var rI=k((pI)=>{Object.defineProperty(pI,"__esModule",{value:!0});pI.default=void 0;var dt={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"glossary [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["definition"],["term"]],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},KI8=pI.default=dt});var sI=k((iI)=>{Object.defineProperty(iI,"__esModule",{value:!0});iI.default=void 0;var st={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"glossref [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command","link"]]},NI8=iI.default=st});var nI=k((aI)=>{Object.defineProperty(aI,"__esModule",{value:!0});aI.default=void 0;var at={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"index [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark","navigation"]]},SI8=aI.default=at});var qD=k((tI)=>{Object.defineProperty(tI,"__esModule",{value:!0});tI.default=void 0;var ot={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"introduction [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},bI8=tI.default=ot});var YD=k((ZD)=>{Object.defineProperty(ZD,"__esModule",{value:!0});ZD.default=void 0;var nt={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"noteref [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command","link"]]},yI8=ZD.default=nt});var XD=k((JD)=>{Object.defineProperty(JD,"__esModule",{value:!0});JD.default=void 0;var tt={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"notice [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","note"]]},gI8=JD.default=tt});var WD=k((GD)=>{Object.defineProperty(GD,"__esModule",{value:!0});GD.default=void 0;var et={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"pagebreak [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","separator"]]},xI8=GD.default=et});var RD=k(($D)=>{Object.defineProperty($D,"__esModule",{value:!0});$D.default=void 0;var qe={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:[],props:{"aria-braillelabel":null,"aria-brailleroledescription":null,"aria-description":null,"aria-disabled":null,"aria-errormessage":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},pI8=$D.default=qe});var MD=k((zD)=>{Object.defineProperty(zD,"__esModule",{value:!0});zD.default=void 0;var Ze={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:[],props:{"aria-braillelabel":null,"aria-brailleroledescription":null,"aria-description":null,"aria-disabled":null,"aria-errormessage":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},rI8=zD.default=Ze});var OD=k((PD)=>{Object.defineProperty(PD,"__esModule",{value:!0});PD.default=void 0;var Qe={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"page-list [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark","navigation"]]},dI8=PD.default=Qe});var jD=k((wD)=>{Object.defineProperty(wD,"__esModule",{value:!0});wD.default=void 0;var Ye={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"part [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},aI8=wD.default=Ye});var CD=k((ID)=>{Object.defineProperty(ID,"__esModule",{value:!0});ID.default=void 0;var Je={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"preface [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},nI8=ID.default=Je});var TD=k((ED)=>{Object.defineProperty(ED,"__esModule",{value:!0});ED.default=void 0;var He={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"prologue [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},eI8=ED.default=He});var vD=k((fD)=>{Object.defineProperty(fD,"__esModule",{value:!0});fD.default=void 0;var Xe={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"pullquote [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["none"]]},ZD8=fD.default=Xe});var SD=k((ND)=>{Object.defineProperty(ND,"__esModule",{value:!0});ND.default=void 0;var Ge={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"qna [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},YD8=ND.default=Ge});var hD=k((uD)=>{Object.defineProperty(uD,"__esModule",{value:!0});uD.default=void 0;var Ve={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"subtitle [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","sectionhead"]]},HD8=uD.default=Ve});var gD=k((yD)=>{Object.defineProperty(yD,"__esModule",{value:!0});yD.default=void 0;var We={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"help [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","note"]]},GD8=yD.default=We});var mD=k((lD)=>{Object.defineProperty(lD,"__esModule",{value:!0});lD.default=void 0;var $e={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"toc [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark","navigation"]]},WD8=lD.default=$e});var rD=k((pD)=>{Object.defineProperty(pD,"__esModule",{value:!0});pD.default=void 0;var Ue=i8(vj()),Re=i8(Sj()),ze=i8(hj()),Be=i8(gj()),Me=i8(mj()),Pe=i8(rj()),Le=i8(sj()),Oe=i8(nj()),we=i8(qI()),Ae=i8(YI()),je=i8(XI()),Ie=i8(WI()),De=i8(RI()),Ce=i8(MI()),Ee=i8(OI()),Fe=i8(jI()),Te=i8(CI()),fe=i8(TI()),Ke=i8(vI()),ve=i8(SI()),Ne=i8(hI()),ke=i8(gI()),Se=i8(mI()),ue=i8(rI()),be=i8(sI()),he=i8(nI()),ye=i8(qD()),_e=i8(YD()),ge=i8(XD()),le=i8(WD()),xe=i8(RD()),me=i8(MD()),pe=i8(OD()),ce=i8(jD()),re=i8(CD()),ie=i8(TD()),de=i8(vD()),se=i8(SD()),ae=i8(hD()),oe=i8(gD()),ne=i8(mD());function i8(q){return q&&q.__esModule?q:{default:q}}var te=[["doc-abstract",Ue.default],["doc-acknowledgments",Re.default],["doc-afterword",ze.default],["doc-appendix",Be.default],["doc-backlink",Me.default],["doc-biblioentry",Pe.default],["doc-bibliography",Le.default],["doc-biblioref",Oe.default],["doc-chapter",we.default],["doc-colophon",Ae.default],["doc-conclusion",je.default],["doc-cover",Ie.default],["doc-credit",De.default],["doc-credits",Ce.default],["doc-dedication",Ee.default],["doc-endnote",Fe.default],["doc-endnotes",Te.default],["doc-epigraph",fe.default],["doc-epilogue",Ke.default],["doc-errata",ve.default],["doc-example",Ne.default],["doc-footnote",ke.default],["doc-foreword",Se.default],["doc-glossary",ue.default],["doc-glossref",be.default],["doc-index",he.default],["doc-introduction",ye.default],["doc-noteref",_e.default],["doc-notice",ge.default],["doc-pagebreak",le.default],["doc-pagefooter",xe.default],["doc-pageheader",me.default],["doc-pagelist",pe.default],["doc-part",ce.default],["doc-preface",re.default],["doc-prologue",ie.default],["doc-pullquote",de.default],["doc-qna",se.default],["doc-subtitle",ae.default],["doc-tip",oe.default],["doc-toc",ne.default]],UD8=pD.default=te});var sD=k((iD)=>{Object.defineProperty(iD,"__esModule",{value:!0});iD.default=void 0;var ee={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{module:"GRAPHICS",concept:{name:"graphics-object"}},{module:"ARIA",concept:{name:"img"}},{module:"ARIA",concept:{name:"article"}}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","document"]]},zD8=iD.default=ee});var nD=k((aD)=>{Object.defineProperty(aD,"__esModule",{value:!0});aD.default=void 0;var q88={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{module:"GRAPHICS",concept:{name:"graphics-document"}},{module:"ARIA",concept:{name:"group"}},{module:"ARIA",concept:{name:"img"}},{module:"GRAPHICS",concept:{name:"graphics-symbol"}}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","group"]]},MD8=aD.default=q88});var qC=k((tD)=>{Object.defineProperty(tD,"__esModule",{value:!0});tD.default=void 0;var Z88={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","img"]]},LD8=tD.default=Z88});var YC=k((ZC)=>{Object.defineProperty(ZC,"__esModule",{value:!0});ZC.default=void 0;var Q88=cJ(sD()),Y88=cJ(nD()),J88=cJ(qC());function cJ(q){return q&&q.__esModule?q:{default:q}}var H88=[["graphics-document",Q88.default],["graphics-object",Y88.default],["graphics-symbol",J88.default]],wD8=ZC.default=H88});var N3=k((XC)=>{function c2(q){return c2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Z){return typeof Z}:function(Z){return Z&&typeof Symbol=="function"&&Z.constructor===Symbol&&Z!==Symbol.prototype?"symbol":typeof Z},c2(q)}Object.defineProperty(XC,"__esModule",{value:!0});XC.default=void 0;var X88=r2(rP()),G88=r2(Tj()),V88=r2(rD()),W88=r2(YC()),$88=r2(D5());function r2(q){return q&&q.__esModule?q:{default:q}}function U88(q,Z,Q){return(Z=R88(Z))in q?Object.defineProperty(q,Z,{value:Q,enumerable:!0,configurable:!0,writable:!0}):q[Z]=Q,q}function R88(q){var Z=z88(q,"string");return c2(Z)=="symbol"?Z:Z+""}function z88(q,Z){if(c2(q)!="object"||!q)return q;var Q=q[Symbol.toPrimitive];if(Q!==void 0){var Y=Q.call(q,Z||"default");if(c2(Y)!="object")return Y;throw TypeError("@@toPrimitive must return a primitive value.")}return(Z==="string"?String:Number)(q)}function rJ(q,Z){var Q=typeof Symbol<"u"&&q[Symbol.iterator]||q["@@iterator"];if(!Q){if(Array.isArray(q)||(Q=HC(q))||Z&&q&&typeof q.length=="number"){Q&&(q=Q);var Y=0,J=function(){};return{s:J,n:function(){return Y>=q.length?{done:!0}:{done:!1,value:q[Y++]}},e:function(R){throw R},f:J}}throw TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
4
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var H,X=!0,G=!1;return{s:function(){Q=Q.call(q)},n:function(){var R=Q.next();return X=R.done,R},e:function(R){G=!0,H=R},f:function(){try{X||Q.return==null||Q.return()}finally{if(G)throw H}}}}function p2(q,Z){return P88(q)||M88(q,Z)||HC(q,Z)||B88()}function B88(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
5
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function HC(q,Z){if(q){if(typeof q=="string")return JC(q,Z);var Q={}.toString.call(q).slice(8,-1);return Q==="Object"&&q.constructor&&(Q=q.constructor.name),Q==="Map"||Q==="Set"?Array.from(q):Q==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Q)?JC(q,Z):void 0}}function JC(q,Z){(Z==null||Z>q.length)&&(Z=q.length);for(var Q=0,Y=Array(Z);Q<Z;Q++)Y[Q]=q[Q];return Y}function M88(q,Z){var Q=q==null?null:typeof Symbol<"u"&&q[Symbol.iterator]||q["@@iterator"];if(Q!=null){var Y,J,H,X,G=[],W=!0,R=!1;try{if(H=(Q=Q.call(q)).next,Z===0){if(Object(Q)!==Q)return;W=!1}else for(;!(W=(Y=H.call(Q)).done)&&(G.push(Y.value),G.length!==Z);W=!0);}catch(B){R=!0,J=B}finally{try{if(!W&&Q.return!=null&&(X=Q.return(),Object(X)!==X))return}finally{if(R)throw J}}return G}}function P88(q){if(Array.isArray(q))return q}var _6=[].concat(X88.default,G88.default,V88.default,W88.default);_6.forEach(function(q){var Z=p2(q,2),Q=Z[1],Y=rJ(Q.superClass),J;try{for(Y.s();!(J=Y.n()).done;){var H=J.value,X=rJ(H),G;try{var W=function(){var B=G.value,M=_6.find(function(I){var C=p2(I,1),E=C[0];return E===B});if(M){var V=M[1];for(var $=0,O=Object.keys(V.props);$<O.length;$++){var w=O[$];if(!Object.prototype.hasOwnProperty.call(Q.props,w))Object.assign(Q.props,U88({},w,V.props[w]))}}};for(X.s();!(G=X.n()).done;)W()}catch(R){X.e(R)}finally{X.f()}}}catch(R){Y.e(R)}finally{Y.f()}});var iJ={entries:function(){return _6},forEach:function(Z){var Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,Y=rJ(_6),J;try{for(Y.s();!(J=Y.n()).done;){var H=p2(J.value,2),X=H[0],G=H[1];Z.call(Q,G,X,_6)}}catch(W){Y.e(W)}finally{Y.f()}},get:function(Z){var Q=_6.find(function(Y){return Y[0]===Z?!0:!1});return Q&&Q[1]},has:function(Z){return!!iJ.get(Z)},keys:function(){return _6.map(function(Z){var Q=p2(Z,1),Y=Q[0];return Y})},values:function(){return _6.map(function(Z){var Q=p2(Z,2),Y=Q[1];return Y})}},jD8=XC.default=(0,$88.default)(iJ,iJ.entries())});var MC=k((zC)=>{Object.defineProperty(zC,"__esModule",{value:!0});zC.default=void 0;var L88=UC(D5()),$C=UC(N3());function UC(q){return q&&q.__esModule?q:{default:q}}function dJ(q,Z){return j88(q)||A88(q,Z)||w88(q,Z)||O88()}function O88(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
6
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function w88(q,Z){if(q){if(typeof q=="string")return VC(q,Z);var Q={}.toString.call(q).slice(8,-1);return Q==="Object"&&q.constructor&&(Q=q.constructor.name),Q==="Map"||Q==="Set"?Array.from(q):Q==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Q)?VC(q,Z):void 0}}function VC(q,Z){(Z==null||Z>q.length)&&(Z=q.length);for(var Q=0,Y=Array(Z);Q<Z;Q++)Y[Q]=q[Q];return Y}function A88(q,Z){var Q=q==null?null:typeof Symbol<"u"&&q[Symbol.iterator]||q["@@iterator"];if(Q!=null){var Y,J,H,X,G=[],W=!0,R=!1;try{if(H=(Q=Q.call(q)).next,Z===0){if(Object(Q)!==Q)return;W=!1}else for(;!(W=(Y=H.call(Q)).done)&&(G.push(Y.value),G.length!==Z);W=!0);}catch(B){R=!0,J=B}finally{try{if(!W&&Q.return!=null&&(X=Q.return(),Object(X)!==X))return}finally{if(R)throw J}}return G}}function j88(q){if(Array.isArray(q))return q}var g6=[],WC=$C.default.keys();for(i2=0;i2<WC.length;i2++)if(d2=WC[i2],s2=$C.default.get(d2),s2){k3=[].concat(s2.baseConcepts,s2.relatedConcepts);for(a2=0;a2<k3.length;a2++)if(S3=k3[a2],S3.module==="HTML")(function(){var q=S3.concept;if(q){var Z=g6.find(function(H){return I88(H[0],q)}),Q;if(Z)Q=Z[1];else Q=[];var Y=!0;for(var J=0;J<Q.length;J++)if(Q[J]===d2){Y=!1;break}if(Y)Q.push(d2);if(!Z)g6.push([q,Q])}})()}var d2,s2,k3,S3,a2,i2,sJ={entries:function(){return g6},forEach:function(Z){var Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;for(var Y=0,J=g6;Y<J.length;Y++){var H=dJ(J[Y],2),X=H[0],G=H[1];Z.call(Q,G,X,g6)}},get:function(Z){var Q=g6.find(function(Y){return Z.name===Y[0].name&&RC(Z.attributes,Y[0].attributes)});return Q&&Q[1]},has:function(Z){return!!sJ.get(Z)},keys:function(){return g6.map(function(Z){var Q=dJ(Z,1),Y=Q[0];return Y})},values:function(){return g6.map(function(Z){var Q=dJ(Z,2),Y=Q[1];return Y})}};function I88(q,Z){return q.name===Z.name&&D88(q.constraints,Z.constraints)&&RC(q.attributes,Z.attributes)}function D88(q,Z){if(q===void 0&&Z!==void 0)return!1;if(q!==void 0&&Z===void 0)return!1;if(q!==void 0&&Z!==void 0){if(q.length!==Z.length)return!1;for(var Q=0;Q<q.length;Q++)if(q[Q]!==Z[Q])return!1}return!0}function RC(q,Z){if(q===void 0&&Z!==void 0)return!1;if(q!==void 0&&Z===void 0)return!1;if(q!==void 0&&Z!==void 0){if(q.length!==Z.length)return!1;for(var Q=0;Q<q.length;Q++){if(q[Q].name!==Z[Q].name||q[Q].value!==Z[Q].value)return!1;if(q[Q].constraints===void 0&&Z[Q].constraints!==void 0)return!1;if(q[Q].constraints!==void 0&&Z[Q].constraints===void 0)return!1;if(q[Q].constraints!==void 0&&Z[Q].constraints!==void 0){if(q[Q].constraints.length!==Z[Q].constraints.length)return!1;for(var Y=0;Y<q[Q].constraints.length;Y++)if(q[Q].constraints[Y]!==Z[Q].constraints[Y])return!1}}}return!0}var DD8=zC.default=(0,L88.default)(sJ,sJ.entries())});var IC=k((AC)=>{Object.defineProperty(AC,"__esModule",{value:!0});AC.default=void 0;var C88=wC(D5()),OC=wC(N3());function wC(q){return q&&q.__esModule?q:{default:q}}function aJ(q,Z){return f88(q)||T88(q,Z)||F88(q,Z)||E88()}function E88(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
7
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function F88(q,Z){if(q){if(typeof q=="string")return PC(q,Z);var Q={}.toString.call(q).slice(8,-1);return Q==="Object"&&q.constructor&&(Q=q.constructor.name),Q==="Map"||Q==="Set"?Array.from(q):Q==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Q)?PC(q,Z):void 0}}function PC(q,Z){(Z==null||Z>q.length)&&(Z=q.length);for(var Q=0,Y=Array(Z);Q<Z;Q++)Y[Q]=q[Q];return Y}function T88(q,Z){var Q=q==null?null:typeof Symbol<"u"&&q[Symbol.iterator]||q["@@iterator"];if(Q!=null){var Y,J,H,X,G=[],W=!0,R=!1;try{if(H=(Q=Q.call(q)).next,Z===0){if(Object(Q)!==Q)return;W=!1}else for(;!(W=(Y=H.call(Q)).done)&&(G.push(Y.value),G.length!==Z);W=!0);}catch(B){R=!0,J=B}finally{try{if(!W&&Q.return!=null&&(X=Q.return(),Object(X)!==X))return}finally{if(R)throw J}}return G}}function f88(q){if(Array.isArray(q))return q}var j7=[],LC=OC.default.keys();for(o2=0;o2<LC.length;o2++)if(u3=LC[o2],n2=OC.default.get(u3),t2=[],n2){b3=[].concat(n2.baseConcepts,n2.relatedConcepts);for(e2=0;e2<b3.length;e2++)if(h3=b3[e2],h3.module==="HTML"){if(y3=h3.concept,y3!=null)t2.push(y3)}if(t2.length>0)j7.push([u3,t2])}var u3,n2,t2,b3,h3,y3,e2,o2,oJ={entries:function(){return j7},forEach:function(Z){var Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;for(var Y=0,J=j7;Y<J.length;Y++){var H=aJ(J[Y],2),X=H[0],G=H[1];Z.call(Q,G,X,j7)}},get:function(Z){var Q=j7.find(function(Y){return Y[0]===Z?!0:!1});return Q&&Q[1]},has:function(Z){return!!oJ.get(Z)},keys:function(){return j7.map(function(Z){var Q=aJ(Z,1),Y=Q[0];return Y})},values:function(){return j7.map(function(Z){var Q=aJ(Z,2),Y=Q[1];return Y})}},ED8=AC.default=(0,C88.default)(oJ,oJ.entries())});var nJ=k((DC)=>{Object.defineProperty(DC,"__esModule",{value:!0});DC.roles=DC.roleElements=DC.elementRoles=DC.dom=DC.aria=void 0;var K88=qq(QP()),v88=qq(XP()),N88=qq(N3()),k88=qq(MC()),S88=qq(IC());function qq(q){return q&&q.__esModule?q:{default:q}}var TD8=DC.aria=K88.default,fD8=DC.dom=v88.default,KD8=DC.roles=N88.default,vD8=DC.elementRoles=k88.default,ND8=DC.roleElements=S88.default});var TC=k((EC)=>{Object.defineProperty(EC,"__esModule",{value:!0});EC.default=void 0;function _88(){var q=this,Z=0,Q={"@@iterator":function(){return Q},next:function(){if(Z<q.length){var J=q[Z];return Z=Z+1,{done:!1,value:J}}else return{done:!0}}};return Q}var g88=_88;EC.default=g88});var Zq=k((fC)=>{Object.defineProperty(fC,"__esModule",{value:!0});fC.default=m88;var l88=x88(TC());function x88(q){return q&&q.__esModule?q:{default:q}}function tJ(q){return tJ=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Z){return typeof Z}:function(Z){return Z&&typeof Symbol=="function"&&Z.constructor===Symbol&&Z!==Symbol.prototype?"symbol":typeof Z},tJ(q)}function m88(q,Z){if(typeof Symbol==="function"&&tJ(Symbol.iterator)==="symbol")Object.defineProperty(q,Symbol.iterator,{value:l88.default.bind(Z)});return q}});var NC=k((KC)=>{Object.defineProperty(KC,"__esModule",{value:!0});KC.default=void 0;var c88={relatedConcepts:[{module:"HTML",concept:{name:"abbr"}}],type:"structure"},r88=c88;KC.default=r88});var uC=k((kC)=>{Object.defineProperty(kC,"__esModule",{value:!0});kC.default=void 0;var i88={relatedConcepts:[{module:"ARIA",concept:{name:"alertdialog"}}],type:"window"},d88=i88;kC.default=d88});var yC=k((bC)=>{Object.defineProperty(bC,"__esModule",{value:!0});bC.default=void 0;var s88={relatedConcepts:[{module:"ARIA",concept:{name:"alert"}}],type:"structure"},a88=s88;bC.default=a88});var lC=k((_C)=>{Object.defineProperty(_C,"__esModule",{value:!0});_C.default=void 0;var o88={relatedConcepts:[],type:"structure"},n88=o88;_C.default=n88});var pC=k((xC)=>{Object.defineProperty(xC,"__esModule",{value:!0});xC.default=void 0;var t88={relatedConcepts:[{module:"ARIA",concept:{name:"application"}}],type:"window"},e88=t88;xC.default=e88});var iC=k((cC)=>{Object.defineProperty(cC,"__esModule",{value:!0});cC.default=void 0;var q08={relatedConcepts:[{module:"ARIA",concept:{name:"article"}},{module:"HTML",concept:{name:"article"}}],type:"structure"},Z08=q08;cC.default=Z08});var aC=k((dC)=>{Object.defineProperty(dC,"__esModule",{value:!0});dC.default=void 0;var Q08={relatedConcepts:[{module:"HTML",concept:{name:"audio"}}],type:"widget"},Y08=Q08;dC.default=Y08});var tC=k((oC)=>{Object.defineProperty(oC,"__esModule",{value:!0});oC.default=void 0;var J08={relatedConcepts:[{module:"ARIA",concept:{name:"banner"}}],type:"structure"},H08=J08;oC.default=H08});var ZE=k((eC)=>{Object.defineProperty(eC,"__esModule",{value:!0});eC.default=void 0;var X08={relatedConcepts:[{module:"HTML",concept:{name:"blockquote"}}],type:"structure"},G08=X08;eC.default=G08});var JE=k((QE)=>{Object.defineProperty(QE,"__esModule",{value:!0});QE.default=void 0;var V08={relatedConcepts:[{module:"ARIA",concept:{attributes:[{name:"aria-busy",value:"true"}]}}],type:"widget"},W08=V08;QE.default=W08});var GE=k((HE)=>{Object.defineProperty(HE,"__esModule",{value:!0});HE.default=void 0;var $08={relatedConcepts:[{module:"ARIA",concept:{name:"button"}},{module:"HTML",concept:{name:"button"}}],type:"widget"},U08=$08;HE.default=U08});var $E=k((VE)=>{Object.defineProperty(VE,"__esModule",{value:!0});VE.default=void 0;var R08={relatedConcepts:[{module:"HTML",concept:{name:"canvas"}}],type:"widget"},z08=R08;VE.default=z08});var zE=k((UE)=>{Object.defineProperty(UE,"__esModule",{value:!0});UE.default=void 0;var B08={relatedConcepts:[{module:"HTML",concept:{name:"caption"}}],type:"structure"},M08=B08;UE.default=M08});var PE=k((BE)=>{Object.defineProperty(BE,"__esModule",{value:!0});BE.default=void 0;var P08={relatedConcepts:[{module:"ARIA",concept:{name:"cell"}},{module:"ARIA",concept:{name:"gridcell"}},{module:"HTML",concept:{name:"td"}}],type:"widget"},L08=P08;BE.default=L08});var wE=k((LE)=>{Object.defineProperty(LE,"__esModule",{value:!0});LE.default=void 0;var O08={relatedConcepts:[{module:"ARIA",concept:{name:"checkbox"}},{module:"HTML",concept:{name:"input",attributes:[{name:"type",value:"checkbox"}]}}],type:"widget"},w08=O08;LE.default=w08});var IE=k((AE)=>{Object.defineProperty(AE,"__esModule",{value:!0});AE.default=void 0;var A08={relatedConcepts:[{module:"HTML",concept:{name:"input",attributes:[{name:"type",value:"color"}]}}],type:"widget"},j08=A08;AE.default=j08});var EE=k((DE)=>{Object.defineProperty(DE,"__esModule",{value:!0});DE.default=void 0;var I08={relatedConcepts:[{module:"ARIA",concept:{name:"columnheader"}},{module:"HTML",concept:{name:"th"}}],type:"widget"},D08=I08;DE.default=D08});var fE=k((FE)=>{Object.defineProperty(FE,"__esModule",{value:!0});FE.default=void 0;var C08={relatedConcepts:[],type:"structure"},E08=C08;FE.default=E08});var NE=k((KE)=>{Object.defineProperty(KE,"__esModule",{value:!0});KE.default=void 0;var F08={relatedConcepts:[{module:"ARIA",concept:{name:"combobox"}},{module:"HTML",concept:{name:"select"}}],type:"widget"},T08=F08;KE.default=T08});var uE=k((kE)=>{Object.defineProperty(kE,"__esModule",{value:!0});kE.default=void 0;var f08={relatedConcepts:[{module:"ARIA",concept:{name:"complementary"}}],type:"structure"},K08=f08;kE.default=K08});var yE=k((bE)=>{Object.defineProperty(bE,"__esModule",{value:!0});bE.default=void 0;var v08={relatedConcepts:[{module:"ARIA",concept:{name:"structureinfo"}}],type:"structure"},N08=v08;bE.default=N08});var lE=k((_E)=>{Object.defineProperty(_E,"__esModule",{value:!0});_E.default=void 0;var k08={relatedConcepts:[{module:"HTML",concept:{name:"input",attributes:[{name:"type",value:"date"}]}}],type:"widget"},S08=k08;_E.default=S08});var pE=k((xE)=>{Object.defineProperty(xE,"__esModule",{value:!0});xE.default=void 0;var u08={relatedConcepts:[{module:"HTML",concept:{name:"input",attributes:[{name:"type",value:"datetime"}]}}],type:"widget"},b08=u08;xE.default=b08});var iE=k((cE)=>{Object.defineProperty(cE,"__esModule",{value:!0});cE.default=void 0;var h08={relatedConcepts:[{module:"HTML",concept:{name:"dfn"}}],type:"structure"},y08=h08;cE.default=y08});var aE=k((dE)=>{Object.defineProperty(dE,"__esModule",{value:!0});dE.default=void 0;var _08={relatedConcepts:[{module:"HTML",concept:{name:"dd"}}],type:"structure"},g08=_08;dE.default=g08});var tE=k((oE)=>{Object.defineProperty(oE,"__esModule",{value:!0});oE.default=void 0;var l08={relatedConcepts:[{module:"HTML",concept:{name:"dl"}}],type:"structure"},x08=l08;oE.default=x08});var ZF=k((eE)=>{Object.defineProperty(eE,"__esModule",{value:!0});eE.default=void 0;var m08={relatedConcepts:[{module:"HTML",concept:{name:"dt"}}],type:"structure"},p08=m08;eE.default=p08});var JF=k((QF)=>{Object.defineProperty(QF,"__esModule",{value:!0});QF.default=void 0;var c08={relatedConcepts:[{module:"HTML",concept:{name:"details"}}],type:"structure"},r08=c08;QF.default=r08});var GF=k((HF)=>{Object.defineProperty(HF,"__esModule",{value:!0});HF.default=void 0;var i08={relatedConcepts:[{module:"ARIA",concept:{name:"dialog"}},{module:"HTML",concept:{name:"dialog"}}],type:"window"},d08=i08;HF.default=d08});var $F=k((VF)=>{Object.defineProperty(VF,"__esModule",{value:!0});VF.default=void 0;var s08={relatedConcepts:[{module:"ARIA",concept:{name:"directory"}},{module:"HTML",concept:{name:"dir"}}],type:"structure"},a08=s08;VF.default=a08});var zF=k((UF)=>{Object.defineProperty(UF,"__esModule",{value:!0});UF.default=void 0;var o08={relatedConcepts:[{module:"HTML",concept:{constraints:["scoped to a details element"],name:"summary"}}],type:"widget"},n08=o08;UF.default=n08});var PF=k((BF)=>{Object.defineProperty(BF,"__esModule",{value:!0});BF.default=void 0;var t08={relatedConcepts:[{module:"HTML",concept:{name:"div"}}],type:"generic"},e08=t08;BF.default=e08});var wF=k((LF)=>{Object.defineProperty(LF,"__esModule",{value:!0});LF.default=void 0;var q18={relatedConcepts:[{module:"ARIA",concept:{name:"document"}}],type:"structure"},Z18=q18;LF.default=Z18});var IF=k((AF)=>{Object.defineProperty(AF,"__esModule",{value:!0});AF.default=void 0;var Q18={relatedConcepts:[{module:"HTML",concept:{name:"embed"}}],type:"widget"},Y18=Q18;AF.default=Y18});var EF=k((DF)=>{Object.defineProperty(DF,"__esModule",{value:!0});DF.default=void 0;var J18={relatedConcepts:[{module:"ARIA",concept:{name:"feed"}}],type:"structure"},H18=J18;DF.default=H18});var fF=k((FF)=>{Object.defineProperty(FF,"__esModule",{value:!0});FF.default=void 0;var X18={relatedConcepts:[{module:"HTML",concept:{name:"figcaption"}}],type:"structure"},G18=X18;FF.default=G18});var NF=k((KF)=>{Object.defineProperty(KF,"__esModule",{value:!0});KF.default=void 0;var V18={relatedConcepts:[{module:"ARIA",concept:{name:"figure"}},{module:"HTML",concept:{name:"figure"}}],type:"structure"},W18=V18;KF.default=W18});var uF=k((kF)=>{Object.defineProperty(kF,"__esModule",{value:!0});kF.default=void 0;var $18={relatedConcepts:[{module:"HTML",concept:{name:"footer"}}],type:"structure"},U18=$18;kF.default=U18});var yF=k((bF)=>{Object.defineProperty(bF,"__esModule",{value:!0});bF.default=void 0;var R18={relatedConcepts:[{module:"ARIA",concept:{name:"form"}},{module:"HTML",concept:{name:"form"}}],type:"structure"},z18=R18;bF.default=z18});var lF=k((_F)=>{Object.defineProperty(_F,"__esModule",{value:!0});_F.default=void 0;var B18={relatedConcepts:[{module:"ARIA",concept:{name:"grid"}}],type:"widget"},M18=B18;_F.default=M18});var pF=k((xF)=>{Object.defineProperty(xF,"__esModule",{value:!0});xF.default=void 0;var P18={relatedConcepts:[{module:"ARIA",concept:{name:"group"}}],type:"structure"},L18=P18;xF.default=L18});var iF=k((cF)=>{Object.defineProperty(cF,"__esModule",{value:!0});cF.default=void 0;var O18={relatedConcepts:[{module:"ARIA",concept:{name:"heading"}},{module:"HTML",concept:{name:"h1"}},{module:"HTML",concept:{name:"h2"}},{module:"HTML",concept:{name:"h3"}},{module:"HTML",concept:{name:"h4"}},{module:"HTML",concept:{name:"h5"}},{module:"HTML",concept:{name:"h6"}}],type:"structure"},w18=O18;cF.default=w18});var aF=k((dF)=>{Object.defineProperty(dF,"__esModule",{value:!0});dF.default=void 0;var A18={relatedConcepts:[],type:"window"},j18=A18;dF.default=j18});var tF=k((oF)=>{Object.defineProperty(oF,"__esModule",{value:!0});oF.default=void 0;var I18={relatedConcepts:[{module:"HTML",concept:{name:"iframe"}}],type:"window"},D18=I18;oF.default=D18});var ZT=k((eF)=>{Object.defineProperty(eF,"__esModule",{value:!0});eF.default=void 0;var C18={relatedConcepts:[],type:"structure"},E18=C18;eF.default=E18});var JT=k((QT)=>{Object.defineProperty(QT,"__esModule",{value:!0});QT.default=void 0;var F18={relatedConcepts:[],type:"widget"},T18=F18;QT.default=T18});var GT=k((HT)=>{Object.defineProperty(HT,"__esModule",{value:!0});HT.default=void 0;var f18={relatedConcepts:[{module:"HTML",concept:{name:"img",attributes:[{name:"usemap"}]}}],type:"structure"},K18=f18;HT.default=K18});var $T=k((VT)=>{Object.defineProperty(VT,"__esModule",{value:!0});VT.default=void 0;var v18={relatedConcepts:[{module:"ARIA",concept:{name:"img"}},{module:"HTML",concept:{name:"img"}}],type:"structure"},N18=v18;VT.default=N18});var zT=k((UT)=>{Object.defineProperty(UT,"__esModule",{value:!0});UT.default=void 0;var k18={relatedConcepts:[{module:"HTML",concept:{name:"input"}}],type:"widget"},S18=k18;UT.default=S18});var PT=k((BT)=>{Object.defineProperty(BT,"__esModule",{value:!0});BT.default=void 0;var u18={relatedConcepts:[{module:"HTML",concept:{name:"input",attributes:[{name:"type",value:"time"}]}}],type:"widget"},b18=u18;BT.default=b18});var wT=k((LT)=>{Object.defineProperty(LT,"__esModule",{value:!0});LT.default=void 0;var h18={relatedConcepts:[{module:"HTML",concept:{name:"label"}}],type:"structure"},y18=h18;LT.default=y18});var IT=k((AT)=>{Object.defineProperty(AT,"__esModule",{value:!0});AT.default=void 0;var _18={relatedConcepts:[{module:"HTML",concept:{name:"legend"}}],type:"structure"},g18=_18;AT.default=g18});var ET=k((DT)=>{Object.defineProperty(DT,"__esModule",{value:!0});DT.default=void 0;var l18={relatedConcepts:[{module:"HTML",concept:{name:"br"}}],type:"structure"},x18=l18;DT.default=x18});var fT=k((FT)=>{Object.defineProperty(FT,"__esModule",{value:!0});FT.default=void 0;var m18={relatedConcepts:[{module:"ARIA",concept:{name:"link"}},{module:"HTML",concept:{name:"a",attributes:[{name:"href"}]}}],type:"widget"},p18=m18;FT.default=p18});var NT=k((KT)=>{Object.defineProperty(KT,"__esModule",{value:!0});KT.default=void 0;var c18={relatedConcepts:[{module:"ARIA",concept:{name:"option"}},{module:"HTML",concept:{name:"option"}}],type:"widget"},r18=c18;KT.default=r18});var uT=k((kT)=>{Object.defineProperty(kT,"__esModule",{value:!0});kT.default=void 0;var i18={relatedConcepts:[{module:"ARIA",concept:{name:"listbox"}},{module:"HTML",concept:{name:"datalist"}},{module:"HTML",concept:{name:"select"}}],type:"widget"},d18=i18;kT.default=d18});var yT=k((bT)=>{Object.defineProperty(bT,"__esModule",{value:!0});bT.default=void 0;var s18={relatedConcepts:[{module:"ARIA",concept:{name:"listitem"}},{module:"HTML",concept:{name:"li"}}],type:"structure"},a18=s18;bT.default=a18});var lT=k((_T)=>{Object.defineProperty(_T,"__esModule",{value:!0});_T.default=void 0;var o18={relatedConcepts:[],type:"structure"},n18=o18;_T.default=n18});var pT=k((xT)=>{Object.defineProperty(xT,"__esModule",{value:!0});xT.default=void 0;var t18={relatedConcepts:[{module:"ARIA",concept:{name:"list"}},{module:"HTML",concept:{name:"ul"}},{module:"HTML",concept:{name:"ol"}}],type:"structure"},e18=t18;xT.default=e18});var iT=k((cT)=>{Object.defineProperty(cT,"__esModule",{value:!0});cT.default=void 0;var q98={relatedConcepts:[{module:"ARIA",concept:{name:"log"}}],type:"structure"},Z98=q98;cT.default=Z98});var aT=k((dT)=>{Object.defineProperty(dT,"__esModule",{value:!0});dT.default=void 0;var Q98={relatedConcepts:[{module:"ARIA",concept:{name:"main"}},{module:"HTML",concept:{name:"main"}}],type:"structure"},Y98=Q98;dT.default=Y98});var tT=k((oT)=>{Object.defineProperty(oT,"__esModule",{value:!0});oT.default=void 0;var J98={relatedConcepts:[{module:"HTML",concept:{name:"mark"}}],type:"structure"},H98=J98;oT.default=H98});var Zf=k((eT)=>{Object.defineProperty(eT,"__esModule",{value:!0});eT.default=void 0;var X98={relatedConcepts:[{module:"ARIA",concept:{name:"marquee"}},{module:"HTML",concept:{name:"marquee"}}],type:"structure"},G98=X98;eT.default=G98});var Jf=k((Qf)=>{Object.defineProperty(Qf,"__esModule",{value:!0});Qf.default=void 0;var V98={relatedConcepts:[{module:"ARIA",concept:{name:"math"}}],type:"structure"},W98=V98;Qf.default=W98});var Gf=k((Hf)=>{Object.defineProperty(Hf,"__esModule",{value:!0});Hf.default=void 0;var $98={relatedConcepts:[{module:"ARIA",concept:{name:"menubar"}}],type:"structure"},U98=$98;Hf.default=U98});var $f=k((Vf)=>{Object.defineProperty(Vf,"__esModule",{value:!0});Vf.default=void 0;var R98={relatedConcepts:[],type:"widget"},z98=R98;Vf.default=z98});var zf=k((Uf)=>{Object.defineProperty(Uf,"__esModule",{value:!0});Uf.default=void 0;var B98={relatedConcepts:[{module:"ARIA",concept:{name:"menuitem"}},{module:"HTML",concept:{name:"menuitem"}}],type:"widget"},M98=B98;Uf.default=M98});var Pf=k((Bf)=>{Object.defineProperty(Bf,"__esModule",{value:!0});Bf.default=void 0;var P98={relatedConcepts:[{module:"ARIA",concept:{name:"menuitemcheckbox"}}],type:"widget"},L98=P98;Bf.default=L98});var wf=k((Lf)=>{Object.defineProperty(Lf,"__esModule",{value:!0});Lf.default=void 0;var O98={relatedConcepts:[{module:"ARIA",concept:{name:"menuitemradio"}}],type:"widget"},w98=O98;Lf.default=w98});var If=k((Af)=>{Object.defineProperty(Af,"__esModule",{value:!0});Af.default=void 0;var A98={relatedConcepts:[],type:"widget"},j98=A98;Af.default=j98});var Ef=k((Df)=>{Object.defineProperty(Df,"__esModule",{value:!0});Df.default=void 0;var I98={relatedConcepts:[],type:"widget"},D98=I98;Df.default=D98});var ff=k((Ff)=>{Object.defineProperty(Ff,"__esModule",{value:!0});Ff.default=void 0;var C98={relatedConcepts:[{module:"ARIA",concept:{name:"menu"}},{module:"HTML",concept:{name:"menu"}}],type:"structure"},E98=C98;Ff.default=E98});var Nf=k((Kf)=>{Object.defineProperty(Kf,"__esModule",{value:!0});Kf.default=void 0;var F98={relatedConcepts:[{module:"HTML",concept:{name:"meter"}}],type:"structure"},T98=F98;Kf.default=T98});var uf=k((kf)=>{Object.defineProperty(kf,"__esModule",{value:!0});kf.default=void 0;var f98={relatedConcepts:[{module:"ARIA",concept:{name:"navigation"}},{module:"HTML",concept:{name:"nav"}}],type:"structure"},K98=f98;kf.default=K98});var yf=k((bf)=>{Object.defineProperty(bf,"__esModule",{value:!0});bf.default=void 0;var v98={relatedConcepts:[{module:"ARIA",concept:{name:"none"}}],type:"structure"},N98=v98;bf.default=N98});var lf=k((_f)=>{Object.defineProperty(_f,"__esModule",{value:!0});_f.default=void 0;var k98={relatedConcepts:[{module:"ARIA",concept:{name:"note"}}],type:"structure"},S98=k98;_f.default=S98});var pf=k((xf)=>{Object.defineProperty(xf,"__esModule",{value:!0});xf.default=void 0;var u98={relatedConcepts:[],type:"structure"},b98=u98;xf.default=b98});var df=k((cf)=>{Object.defineProperty(cf,"__esModule",{value:!0});cf.default=void 0;var h98={relatedConcepts:[{module:"HTML",concept:{name:"p"}}],type:"structure"},y98=h98;cf.default=y98});var of=k((sf)=>{Object.defineProperty(sf,"__esModule",{value:!0});sf.default=void 0;var _98={relatedConcepts:[],type:"widget"},g98=_98;sf.default=g98});var ef=k((nf)=>{Object.defineProperty(nf,"__esModule",{value:!0});nf.default=void 0;var l98={relatedConcepts:[{module:"HTML",concept:{name:"pre"}}],type:"structure"},x98=l98;nf.default=x98});var QK=k((qK)=>{Object.defineProperty(qK,"__esModule",{value:!0});qK.default=void 0;var m98={relatedConcepts:[{module:"ARIA",concept:{name:"presentation"}}],type:"structure"},p98=m98;qK.default=p98});var HK=k((YK)=>{Object.defineProperty(YK,"__esModule",{value:!0});YK.default=void 0;var c98={relatedConcepts:[{module:"ARIA",concept:{name:"progressbar"}},{module:"HTML",concept:{name:"progress"}}],type:"structure"},r98=c98;YK.default=r98});var VK=k((XK)=>{Object.defineProperty(XK,"__esModule",{value:!0});XK.default=void 0;var i98={relatedConcepts:[{module:"ARIA",concept:{name:"radio"}},{module:"HTML",concept:{name:"input",attributes:[{name:"type",value:"radio"}]}}],type:"widget"},d98=i98;XK.default=d98});var UK=k((WK)=>{Object.defineProperty(WK,"__esModule",{value:!0});WK.default=void 0;var s98={relatedConcepts:[{module:"ARIA",concept:{name:"radiogroup"}}],type:"structure"},a98=s98;WK.default=a98});var BK=k((RK)=>{Object.defineProperty(RK,"__esModule",{value:!0});RK.default=void 0;var o98={relatedConcepts:[{module:"ARIA",concept:{name:"region"}}],type:"structure"},n98=o98;RK.default=n98});var LK=k((MK)=>{Object.defineProperty(MK,"__esModule",{value:!0});MK.default=void 0;var t98={relatedConcepts:[],type:"structure"},e98=t98;MK.default=e98});var AK=k((OK)=>{Object.defineProperty(OK,"__esModule",{value:!0});OK.default=void 0;var q68={relatedConcepts:[{module:"ARIA",concept:{name:"rowheader"}},{module:"HTML",concept:{name:"th",attributes:[{name:"scope",value:"row"}]}}],type:"widget"},Z68=q68;OK.default=Z68});var DK=k((jK)=>{Object.defineProperty(jK,"__esModule",{value:!0});jK.default=void 0;var Q68={relatedConcepts:[{module:"ARIA",concept:{name:"row"}},{module:"HTML",concept:{name:"tr"}}],type:"structure"},Y68=Q68;jK.default=Y68});var FK=k((CK)=>{Object.defineProperty(CK,"__esModule",{value:!0});CK.default=void 0;var J68={relatedConcepts:[{module:"HTML",concept:{name:"ruby"}}],type:"structure"},H68=J68;CK.default=H68});var KK=k((TK)=>{Object.defineProperty(TK,"__esModule",{value:!0});TK.default=void 0;var X68={relatedConcepts:[],type:"structure"},G68=X68;TK.default=G68});var kK=k((vK)=>{Object.defineProperty(vK,"__esModule",{value:!0});vK.default=void 0;var V68={relatedConcepts:[],type:"structure"},W68=V68;vK.default=W68});var bK=k((SK)=>{Object.defineProperty(SK,"__esModule",{value:!0});SK.default=void 0;var $68={relatedConcepts:[{module:"ARIA",concept:{name:"scrollbar"}}],type:"widget"},U68=$68;SK.default=U68});var _K=k((hK)=>{Object.defineProperty(hK,"__esModule",{value:!0});hK.default=void 0;var R68={relatedConcepts:[],type:"structure"},z68=R68;hK.default=z68});var xK=k((gK)=>{Object.defineProperty(gK,"__esModule",{value:!0});gK.default=void 0;var B68={relatedConcepts:[{module:"ARIA",concept:{name:"search"}}],type:"structure"},M68=B68;gK.default=M68});var cK=k((mK)=>{Object.defineProperty(mK,"__esModule",{value:!0});mK.default=void 0;var P68={relatedConcepts:[{module:"ARIA",concept:{name:"searchbox"}},{module:"HTML",concept:{name:"input",attributes:[{name:"type",value:"search"}]}}],type:"widget"},L68=P68;mK.default=L68});var dK=k((rK)=>{Object.defineProperty(rK,"__esModule",{value:!0});rK.default=void 0;var O68={relatedConcepts:[{module:"ARIA",concept:{name:"slider"}},{module:"HTML",concept:{name:"input",attributes:[{name:"type",value:"range"}]}}],type:"widget"},w68=O68;rK.default=w68});var oK=k((sK)=>{Object.defineProperty(sK,"__esModule",{value:!0});sK.default=void 0;var A68={relatedConcepts:[],type:"structure"},j68=A68;sK.default=j68});var eK=k((nK)=>{Object.defineProperty(nK,"__esModule",{value:!0});nK.default=void 0;var I68={relatedConcepts:[{module:"ARIA",concept:{name:"spinbutton"}},{module:"HTML",concept:{name:"input",attributes:[{name:"type",value:"number"}]}}],type:"widget"},D68=I68;nK.default=D68});var Qv=k((qv)=>{Object.defineProperty(qv,"__esModule",{value:!0});qv.default=void 0;var C68={relatedConcepts:[],type:"structure"},E68=C68;qv.default=E68});var Hv=k((Yv)=>{Object.defineProperty(Yv,"__esModule",{value:!0});Yv.default=void 0;var F68={relatedConcepts:[{module:"ARIA",concept:{name:"separator"}}],type:"widget"},T68=F68;Yv.default=T68});var Vv=k((Xv)=>{Object.defineProperty(Xv,"__esModule",{value:!0});Xv.default=void 0;var f68={relatedConcepts:[],type:"structure"},K68=f68;Xv.default=K68});var Uv=k((Wv)=>{Object.defineProperty(Wv,"__esModule",{value:!0});Wv.default=void 0;var v68={relatedConcepts:[{module:"ARIA",concept:{name:"status"}}],type:"structure"},N68=v68;Wv.default=N68});var Bv=k((Rv)=>{Object.defineProperty(Rv,"__esModule",{value:!0});Rv.default=void 0;var k68={relatedConcepts:[],type:"structure"},S68=k68;Rv.default=S68});var Lv=k((Mv)=>{Object.defineProperty(Mv,"__esModule",{value:!0});Mv.default=void 0;var u68={relatedConcepts:[{module:"ARIA",concept:{name:"switch"}},{module:"HTML",concept:{name:"input",attributes:[{name:"type",value:"checkbox"}]}}],type:"widget"},b68=u68;Mv.default=b68});var Av=k((Ov)=>{Object.defineProperty(Ov,"__esModule",{value:!0});Ov.default=void 0;var h68={relatedConcepts:[{module:"ARIA",concept:{name:"tablist"}}],type:"structure"},y68=h68;Ov.default=y68});var Dv=k((jv)=>{Object.defineProperty(jv,"__esModule",{value:!0});jv.default=void 0;var _68={relatedConcepts:[{module:"ARIA",concept:{name:"tab"}}],type:"widget"},g68=_68;jv.default=g68});var Fv=k((Cv)=>{Object.defineProperty(Cv,"__esModule",{value:!0});Cv.default=void 0;var l68={relatedConcepts:[],type:"structure"},x68=l68;Cv.default=x68});var Kv=k((Tv)=>{Object.defineProperty(Tv,"__esModule",{value:!0});Tv.default=void 0;var m68={relatedConcepts:[{module:"ARIA",concept:{name:"table"}},{module:"HTML",concept:{name:"table"}}],type:"structure"},p68=m68;Tv.default=p68});var kv=k((vv)=>{Object.defineProperty(vv,"__esModule",{value:!0});vv.default=void 0;var c68={relatedConcepts:[{module:"ARIA",concept:{name:"tablist"}}],type:"structure"},r68=c68;vv.default=r68});var bv=k((Sv)=>{Object.defineProperty(Sv,"__esModule",{value:!0});Sv.default=void 0;var i68={relatedConcepts:[{module:"ARIA",concept:{name:"tabpanel"}}],type:"structure"},d68=i68;Sv.default=d68});var _v=k((hv)=>{Object.defineProperty(hv,"__esModule",{value:!0});hv.default=void 0;var s68={relatedConcepts:[{module:"ARIA",concept:{name:"term"}}],type:"structure"},a68=s68;hv.default=a68});var xv=k((gv)=>{Object.defineProperty(gv,"__esModule",{value:!0});gv.default=void 0;var o68={relatedConcepts:[{module:"ARIA",concept:{attributes:[{name:"aria-multiline",value:"true"}],name:"textbox"}},{module:"HTML",concept:{name:"textarea"}}],type:"widget"},n68=o68;gv.default=n68});var cv=k((mv)=>{Object.defineProperty(mv,"__esModule",{value:!0});mv.default=void 0;var t68={relatedConcepts:[{module:"ARIA",concept:{name:"textbox"}},{module:"HTML",concept:{name:"input"}},{module:"HTML",concept:{name:"input",attributes:[{name:"type",value:"text"}]}}],type:"widget"},e68=t68;mv.default=e68});var dv=k((rv)=>{Object.defineProperty(rv,"__esModule",{value:!0});rv.default=void 0;var q78={relatedConcepts:[{module:"HTML",concept:{name:"time"}}],type:"structure"},Z78=q78;rv.default=Z78});var ov=k((sv)=>{Object.defineProperty(sv,"__esModule",{value:!0});sv.default=void 0;var Q78={relatedConcepts:[{module:"ARIA",concept:{name:"timer"}}],type:"structure"},Y78=Q78;sv.default=Y78});var ev=k((nv)=>{Object.defineProperty(nv,"__esModule",{value:!0});nv.default=void 0;var J78={relatedConcepts:[{module:"ARIA",concept:{attributes:[{name:"aria-pressed"}]}}],type:"widget"},H78=J78;nv.default=H78});var QN=k((qN)=>{Object.defineProperty(qN,"__esModule",{value:!0});qN.default=void 0;var X78={relatedConcepts:[{module:"ARIA",concept:{name:"toolbar"}}],type:"structure"},G78=X78;qN.default=G78});var HN=k((YN)=>{Object.defineProperty(YN,"__esModule",{value:!0});YN.default=void 0;var V78={relatedConcepts:[{module:"ARIA",concept:{name:"tree"}}],type:"widget"},W78=V78;YN.default=W78});var VN=k((XN)=>{Object.defineProperty(XN,"__esModule",{value:!0});XN.default=void 0;var $78={relatedConcepts:[{module:"ARIA",concept:{name:"treegrid"}}],type:"widget"},U78=$78;XN.default=U78});var UN=k((WN)=>{Object.defineProperty(WN,"__esModule",{value:!0});WN.default=void 0;var R78={relatedConcepts:[{module:"ARIA",concept:{name:"treeitem"}}],type:"widget"},z78=R78;WN.default=z78});var BN=k((RN)=>{Object.defineProperty(RN,"__esModule",{value:!0});RN.default=void 0;var B78={relatedConcepts:[{module:"ARIA",concept:{name:"tooltip"}}],type:"structure"},M78=B78;RN.default=M78});var LN=k((MN)=>{Object.defineProperty(MN,"__esModule",{value:!0});MN.default=void 0;var P78={relatedConcepts:[{module:"HTML",concept:{name:"video"}}],type:"widget"},L78=P78;MN.default=L78});var AN=k((ON)=>{Object.defineProperty(ON,"__esModule",{value:!0});ON.default=void 0;var O78={relatedConcepts:[],type:"structure"},w78=O78;ON.default=w78});var DN=k((jN)=>{Object.defineProperty(jN,"__esModule",{value:!0});jN.default=void 0;var A78={relatedConcepts:[],type:"window"},j78=A78;jN.default=j78});var Qq=k((EN)=>{Object.defineProperty(EN,"__esModule",{value:!0});EN.default=void 0;var I78=t(Zq()),D78=t(NC()),C78=t(uC()),E78=t(yC()),F78=t(lC()),T78=t(pC()),f78=t(iC()),K78=t(aC()),v78=t(tC()),N78=t(ZE()),k78=t(JE()),S78=t(GE()),u78=t($E()),b78=t(zE()),h78=t(PE()),y78=t(wE()),_78=t(IE()),g78=t(EE()),l78=t(fE()),x78=t(NE()),m78=t(uE()),p78=t(yE()),c78=t(lE()),r78=t(pE()),i78=t(iE()),d78=t(aE()),s78=t(tE()),a78=t(ZF()),o78=t(JF()),n78=t(GF()),t78=t($F()),e78=t(zF()),q58=t(PF()),Z58=t(wF()),Q58=t(IF()),Y58=t(EF()),J58=t(fF()),H58=t(NF()),X58=t(uF()),G58=t(yF()),V58=t(lF()),W58=t(pF()),$58=t(iF()),U58=t(aF()),R58=t(tF()),z58=t(ZT()),B58=t(JT()),M58=t(GT()),P58=t($T()),L58=t(zT()),O58=t(PT()),w58=t(wT()),A58=t(IT()),j58=t(ET()),I58=t(fT()),D58=t(NT()),C58=t(uT()),E58=t(yT()),F58=t(lT()),T58=t(pT()),f58=t(iT()),K58=t(aT()),v58=t(tT()),N58=t(Zf()),k58=t(Jf()),S58=t(Gf()),u58=t($f()),b58=t(zf()),h58=t(Pf()),y58=t(wf()),_58=t(If()),g58=t(Ef()),l58=t(ff()),x58=t(Nf()),m58=t(uf()),p58=t(yf()),c58=t(lf()),r58=t(pf()),i58=t(df()),d58=t(of()),s58=t(ef()),a58=t(QK()),o58=t(HK()),n58=t(VK()),t58=t(UK()),e58=t(BK()),q28=t(LK()),Z28=t(AK()),Q28=t(DK()),Y28=t(FK()),J28=t(KK()),H28=t(kK()),X28=t(bK()),G28=t(_K()),V28=t(xK()),W28=t(cK()),$28=t(dK()),U28=t(oK()),R28=t(eK()),z28=t(Qv()),B28=t(Hv()),M28=t(Vv()),P28=t(Uv()),L28=t(Bv()),O28=t(Lv()),w28=t(Av()),A28=t(Dv()),j28=t(Fv()),I28=t(Kv()),D28=t(kv()),C28=t(bv()),E28=t(_v()),F28=t(xv()),T28=t(cv()),f28=t(dv()),K28=t(ov()),v28=t(ev()),N28=t(QN()),k28=t(HN()),S28=t(VN()),u28=t(UN()),b28=t(BN()),h28=t(LN()),y28=t(AN()),_28=t(DN());function t(q){return q&&q.__esModule?q:{default:q}}function eJ(q,Z){return m28(q)||x28(q,Z)||l28(q,Z)||g28()}function g28(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
8
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function l28(q,Z){if(!q)return;if(typeof q==="string")return CN(q,Z);var Q=Object.prototype.toString.call(q).slice(8,-1);if(Q==="Object"&&q.constructor)Q=q.constructor.name;if(Q==="Map"||Q==="Set")return Array.from(q);if(Q==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Q))return CN(q,Z)}function CN(q,Z){if(Z==null||Z>q.length)Z=q.length;for(var Q=0,Y=Array(Z);Q<Z;Q++)Y[Q]=q[Q];return Y}function x28(q,Z){var Q=q==null?null:typeof Symbol<"u"&&q[Symbol.iterator]||q["@@iterator"];if(Q==null)return;var Y=[],J=!0,H=!1,X,G;try{for(Q=Q.call(q);!(J=(X=Q.next()).done);J=!0)if(Y.push(X.value),Z&&Y.length===Z)break}catch(W){H=!0,G=W}finally{try{if(!J&&Q.return!=null)Q.return()}finally{if(H)throw G}}return Y}function m28(q){if(Array.isArray(q))return q}var F5=[["AbbrRole",D78.default],["AlertDialogRole",C78.default],["AlertRole",E78.default],["AnnotationRole",F78.default],["ApplicationRole",T78.default],["ArticleRole",f78.default],["AudioRole",K78.default],["BannerRole",v78.default],["BlockquoteRole",N78.default],["BusyIndicatorRole",k78.default],["ButtonRole",S78.default],["CanvasRole",u78.default],["CaptionRole",b78.default],["CellRole",h78.default],["CheckBoxRole",y78.default],["ColorWellRole",_78.default],["ColumnHeaderRole",g78.default],["ColumnRole",l78.default],["ComboBoxRole",x78.default],["ComplementaryRole",m78.default],["ContentInfoRole",p78.default],["DateRole",c78.default],["DateTimeRole",r78.default],["DefinitionRole",i78.default],["DescriptionListDetailRole",d78.default],["DescriptionListRole",s78.default],["DescriptionListTermRole",a78.default],["DetailsRole",o78.default],["DialogRole",n78.default],["DirectoryRole",t78.default],["DisclosureTriangleRole",e78.default],["DivRole",q58.default],["DocumentRole",Z58.default],["EmbeddedObjectRole",Q58.default],["FeedRole",Y58.default],["FigcaptionRole",J58.default],["FigureRole",H58.default],["FooterRole",X58.default],["FormRole",G58.default],["GridRole",V58.default],["GroupRole",W58.default],["HeadingRole",$58.default],["IframePresentationalRole",U58.default],["IframeRole",R58.default],["IgnoredRole",z58.default],["ImageMapLinkRole",B58.default],["ImageMapRole",M58.default],["ImageRole",P58.default],["InlineTextBoxRole",L58.default],["InputTimeRole",O58.default],["LabelRole",w58.default],["LegendRole",A58.default],["LineBreakRole",j58.default],["LinkRole",I58.default],["ListBoxOptionRole",D58.default],["ListBoxRole",C58.default],["ListItemRole",E58.default],["ListMarkerRole",F58.default],["ListRole",T58.default],["LogRole",f58.default],["MainRole",K58.default],["MarkRole",v58.default],["MarqueeRole",N58.default],["MathRole",k58.default],["MenuBarRole",S58.default],["MenuButtonRole",u58.default],["MenuItemRole",b58.default],["MenuItemCheckBoxRole",h58.default],["MenuItemRadioRole",y58.default],["MenuListOptionRole",_58.default],["MenuListPopupRole",g58.default],["MenuRole",l58.default],["MeterRole",x58.default],["NavigationRole",m58.default],["NoneRole",p58.default],["NoteRole",c58.default],["OutlineRole",r58.default],["ParagraphRole",i58.default],["PopUpButtonRole",d58.default],["PreRole",s58.default],["PresentationalRole",a58.default],["ProgressIndicatorRole",o58.default],["RadioButtonRole",n58.default],["RadioGroupRole",t58.default],["RegionRole",e58.default],["RootWebAreaRole",q28.default],["RowHeaderRole",Z28.default],["RowRole",Q28.default],["RubyRole",Y28.default],["RulerRole",J28.default],["ScrollAreaRole",H28.default],["ScrollBarRole",X28.default],["SeamlessWebAreaRole",G28.default],["SearchRole",V28.default],["SearchBoxRole",W28.default],["SliderRole",$28.default],["SliderThumbRole",U28.default],["SpinButtonRole",R28.default],["SpinButtonPartRole",z28.default],["SplitterRole",B28.default],["StaticTextRole",M28.default],["StatusRole",P28.default],["SVGRootRole",L28.default],["SwitchRole",O28.default],["TabGroupRole",w28.default],["TabRole",A28.default],["TableHeaderContainerRole",j28.default],["TableRole",I28.default],["TabListRole",D28.default],["TabPanelRole",C28.default],["TermRole",E28.default],["TextAreaRole",F28.default],["TextFieldRole",T28.default],["TimeRole",f28.default],["TimerRole",K28.default],["ToggleButtonRole",v28.default],["ToolbarRole",N28.default],["TreeRole",k28.default],["TreeGridRole",S28.default],["TreeItemRole",u28.default],["UserInterfaceTooltipRole",b28.default],["VideoRole",h28.default],["WebAreaRole",y28.default],["WindowRole",_28.default]],qH={entries:function(){return F5},forEach:function(Z){var Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;for(var Y=0,J=F5;Y<J.length;Y++){var H=eJ(J[Y],2),X=H[0],G=H[1];Z.call(Q,G,X,F5)}},get:function(Z){var Q=F5.find(function(Y){return Y[0]===Z?!0:!1});return Q&&Q[1]},has:function(Z){return!!qH.get(Z)},keys:function(){return F5.map(function(Z){var Q=eJ(Z,1),Y=Q[0];return Y})},values:function(){return F5.map(function(Z){var Q=eJ(Z,2),Y=Q[1];return Y})}},p28=(0,I78.default)(qH,qH.entries());EN.default=p28});var SN=k((NN)=>{Object.defineProperty(NN,"__esModule",{value:!0});NN.default=void 0;var c28=KN(Zq()),r28=KN(Qq());function KN(q){return q&&q.__esModule?q:{default:q}}function Yq(q,Z){return s28(q)||d28(q,Z)||vN(q,Z)||i28()}function i28(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
9
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function d28(q,Z){var Q=q==null?null:typeof Symbol<"u"&&q[Symbol.iterator]||q["@@iterator"];if(Q==null)return;var Y=[],J=!0,H=!1,X,G;try{for(Q=Q.call(q);!(J=(X=Q.next()).done);J=!0)if(Y.push(X.value),Z&&Y.length===Z)break}catch(W){H=!0,G=W}finally{try{if(!J&&Q.return!=null)Q.return()}finally{if(H)throw G}}return Y}function s28(q){if(Array.isArray(q))return q}function a28(q,Z){var Q=typeof Symbol<"u"&&q[Symbol.iterator]||q["@@iterator"];if(!Q){if(Array.isArray(q)||(Q=vN(q))||Z&&q&&typeof q.length==="number"){if(Q)q=Q;var Y=0,J=function(){};return{s:J,n:function(){if(Y>=q.length)return{done:!0};return{done:!1,value:q[Y++]}},e:function(R){throw R},f:J}}throw TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
10
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var H=!0,X=!1,G;return{s:function(){Q=Q.call(q)},n:function(){var R=Q.next();return H=R.done,R},e:function(R){X=!0,G=R},f:function(){try{if(!H&&Q.return!=null)Q.return()}finally{if(X)throw G}}}}function vN(q,Z){if(!q)return;if(typeof q==="string")return TN(q,Z);var Q=Object.prototype.toString.call(q).slice(8,-1);if(Q==="Object"&&q.constructor)Q=q.constructor.name;if(Q==="Map"||Q==="Set")return Array.from(q);if(Q==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Q))return TN(q,Z)}function TN(q,Z){if(Z==null||Z>q.length)Z=q.length;for(var Q=0,Y=Array(Z);Q<Z;Q++)Y[Q]=q[Q];return Y}var b9=[],_3=a28(r28.default.entries()),fN;try{ZH=function(){var Z=Yq(fN.value,2),Q=Z[0],Y=Z[1],J=Y.relatedConcepts;if(Array.isArray(J))J.forEach(function(H){if(H.module==="HTML"){var X=H.concept;if(X){var G=b9.findIndex(function(W){var R=Yq(W,1),B=R[0];return B===Q});if(G===-1)b9.push([Q,[]]),G=b9.length-1;b9[G][1].push(X)}}})};for(_3.s();!(fN=_3.n()).done;)ZH()}catch(q){_3.e(q)}finally{_3.f()}var ZH,QH={entries:function(){return b9},forEach:function(Z){var Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;for(var Y=0,J=b9;Y<J.length;Y++){var H=Yq(J[Y],2),X=H[0],G=H[1];Z.call(Q,G,X,b9)}},get:function(Z){var Q=b9.find(function(Y){return Y[0]===Z?!0:!1});return Q&&Q[1]},has:function(Z){return!!QH.get(Z)},keys:function(){return b9.map(function(Z){var Q=Yq(Z,1),Y=Q[0];return Y})},values:function(){return b9.map(function(Z){var Q=Yq(Z,2),Y=Q[1];return Y})}},o28=(0,c28.default)(QH,QH.entries());NN.default=o28});var lN=k((_N)=>{Object.defineProperty(_N,"__esModule",{value:!0});_N.default=void 0;var n28=hN(Zq()),t28=hN(Qq());function hN(q){return q&&q.__esModule?q:{default:q}}function Jq(q,Z){return Zq8(q)||qq8(q,Z)||yN(q,Z)||e28()}function e28(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
11
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function qq8(q,Z){var Q=q==null?null:typeof Symbol<"u"&&q[Symbol.iterator]||q["@@iterator"];if(Q==null)return;var Y=[],J=!0,H=!1,X,G;try{for(Q=Q.call(q);!(J=(X=Q.next()).done);J=!0)if(Y.push(X.value),Z&&Y.length===Z)break}catch(W){H=!0,G=W}finally{try{if(!J&&Q.return!=null)Q.return()}finally{if(H)throw G}}return Y}function Zq8(q){if(Array.isArray(q))return q}function Qq8(q,Z){var Q=typeof Symbol<"u"&&q[Symbol.iterator]||q["@@iterator"];if(!Q){if(Array.isArray(q)||(Q=yN(q))||Z&&q&&typeof q.length==="number"){if(Q)q=Q;var Y=0,J=function(){};return{s:J,n:function(){if(Y>=q.length)return{done:!0};return{done:!1,value:q[Y++]}},e:function(R){throw R},f:J}}throw TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
12
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var H=!0,X=!1,G;return{s:function(){Q=Q.call(q)},n:function(){var R=Q.next();return H=R.done,R},e:function(R){X=!0,G=R},f:function(){try{if(!H&&Q.return!=null)Q.return()}finally{if(X)throw G}}}}function yN(q,Z){if(!q)return;if(typeof q==="string")return uN(q,Z);var Q=Object.prototype.toString.call(q).slice(8,-1);if(Q==="Object"&&q.constructor)Q=q.constructor.name;if(Q==="Map"||Q==="Set")return Array.from(q);if(Q==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Q))return uN(q,Z)}function uN(q,Z){if(Z==null||Z>q.length)Z=q.length;for(var Q=0,Y=Array(Z);Q<Z;Q++)Y[Q]=q[Q];return Y}var h9=[],g3=Qq8(t28.default.entries()),bN;try{YH=function(){var Z=Jq(bN.value,2),Q=Z[0],Y=Z[1],J=Y.relatedConcepts;if(Array.isArray(J))J.forEach(function(H){if(H.module==="ARIA"){var X=H.concept;if(X){var G=h9.findIndex(function(W){var R=Jq(W,1),B=R[0];return B===Q});if(G===-1)h9.push([Q,[]]),G=h9.length-1;h9[G][1].push(X)}}})};for(g3.s();!(bN=g3.n()).done;)YH()}catch(q){g3.e(q)}finally{g3.f()}var YH,JH={entries:function(){return h9},forEach:function(Z){var Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;for(var Y=0,J=h9;Y<J.length;Y++){var H=Jq(J[Y],2),X=H[0],G=H[1];Z.call(Q,G,X,h9)}},get:function(Z){var Q=h9.find(function(Y){return Y[0]===Z?!0:!1});return Q&&Q[1]},has:function(Z){return!!JH.get(Z)},keys:function(){return h9.map(function(Z){var Q=Jq(Z,1),Y=Q[0];return Y})},values:function(){return h9.map(function(Z){var Q=Jq(Z,2),Y=Q[1];return Y})}},Yq8=(0,n28.default)(JH,JH.entries());_N.default=Yq8});var dN=k((rN)=>{Object.defineProperty(rN,"__esModule",{value:!0});rN.default=void 0;var Jq8=pN(Qq()),Hq8=pN(Zq());function pN(q){return q&&q.__esModule?q:{default:q}}function x3(q,Z){return Vq8(q)||Gq8(q,Z)||cN(q,Z)||Xq8()}function Xq8(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
13
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Gq8(q,Z){var Q=q==null?null:typeof Symbol<"u"&&q[Symbol.iterator]||q["@@iterator"];if(Q==null)return;var Y=[],J=!0,H=!1,X,G;try{for(Q=Q.call(q);!(J=(X=Q.next()).done);J=!0)if(Y.push(X.value),Z&&Y.length===Z)break}catch(W){H=!0,G=W}finally{try{if(!J&&Q.return!=null)Q.return()}finally{if(H)throw G}}return Y}function Vq8(q){if(Array.isArray(q))return q}function Wq8(q,Z){var Q=typeof Symbol<"u"&&q[Symbol.iterator]||q["@@iterator"];if(!Q){if(Array.isArray(q)||(Q=cN(q))||Z&&q&&typeof q.length==="number"){if(Q)q=Q;var Y=0,J=function(){};return{s:J,n:function(){if(Y>=q.length)return{done:!0};return{done:!1,value:q[Y++]}},e:function(R){throw R},f:J}}throw TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
14
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var H=!0,X=!1,G;return{s:function(){Q=Q.call(q)},n:function(){var R=Q.next();return H=R.done,R},e:function(R){X=!0,G=R},f:function(){try{if(!H&&Q.return!=null)Q.return()}finally{if(X)throw G}}}}function cN(q,Z){if(!q)return;if(typeof q==="string")return xN(q,Z);var Q=Object.prototype.toString.call(q).slice(8,-1);if(Q==="Object"&&q.constructor)Q=q.constructor.name;if(Q==="Map"||Q==="Set")return Array.from(q);if(Q==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Q))return xN(q,Z)}function xN(q,Z){if(Z==null||Z>q.length)Z=q.length;for(var Q=0,Y=Array(Z);Q<Z;Q++)Y[Q]=q[Q];return Y}var s1=[],l3=Wq8(Jq8.default.entries()),mN;try{HH=function(){var Z=x3(mN.value,2),Q=Z[0],Y=Z[1],J=Y.relatedConcepts;if(Array.isArray(J))J.forEach(function(H){if(H.module==="HTML"){var X=H.concept;if(X!=null){var G=JSON.stringify(X),W,R=0;for(;R<s1.length;R++){var B=s1[R][0];if(JSON.stringify(B)===G){W=s1[R][1];break}}if(!Array.isArray(W))W=[];var M=W.findIndex(function(V){return V===Q});if(M===-1)W.push(Q);if(R<s1.length)s1.splice(R,1,[X,W]);else s1.push([X,W])}}})};for(l3.s();!(mN=l3.n()).done;)HH()}catch(q){l3.e(q)}finally{l3.f()}var HH;function $q8(q,Z){if(q===void 0&&Z!==void 0)return!1;if(q!==void 0&&Z===void 0)return!1;if(q!==void 0&&Z!==void 0){if(q.length!=Z.length)return!1;for(var Q=0;Q<q.length;Q++)if(Z[Q].name!==q[Q].name||Z[Q].value!==q[Q].value)return!1}return!0}var XH={entries:function(){return s1},forEach:function(Z){var Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;for(var Y=0,J=s1;Y<J.length;Y++){var H=x3(J[Y],2),X=H[0],G=H[1];Z.call(Q,G,X,s1)}},get:function(Z){var Q=s1.find(function(Y){return Z.name===Y[0].name&&$q8(Z.attributes,Y[0].attributes)});return Q&&Q[1]},has:function(Z){return!!XH.get(Z)},keys:function(){return s1.map(function(Z){var Q=x3(Z,1),Y=Q[0];return Y})},values:function(){return s1.map(function(Z){var Q=x3(Z,2),Y=Q[1];return Y})}},Uq8=(0,Hq8.default)(XH,XH.entries());rN.default=Uq8});var GH=k((sN)=>{Object.defineProperty(sN,"__esModule",{value:!0});sN.elementAXObjects=sN.AXObjects=sN.AXObjectRoles=sN.AXObjectElements=void 0;var Rq8=m3(SN()),zq8=m3(lN()),Bq8=m3(Qq()),Mq8=m3(dN());function m3(q){return q&&q.__esModule?q:{default:q}}var Pq8=Rq8.default;sN.AXObjectElements=Pq8;var Lq8=zq8.default;sN.AXObjectRoles=Lq8;var Oq8=Bq8.default;sN.AXObjects=Oq8;var wq8=Mq8.default;sN.elementAXObjects=wq8});import{sep as _h}from"node:path";function v0(q){return _h==="/"?q:q.split(_h).join("/")}var U6=()=>{};var Fq=k((Kl8,nh)=>{var oh={DOT_LITERAL:"\\.",PLUS_LITERAL:"\\+",QMARK_LITERAL:"\\?",SLASH_LITERAL:"\\/",ONE_CHAR:"(?=.)",QMARK:"[^/]",END_ANCHOR:"(?:\\/|$)",DOTS_SLASH:"\\.{1,2}(?:\\/|$)",NO_DOT:"(?!\\.)",NO_DOTS:"(?!(?:^|\\/)\\.{1,2}(?:\\/|$))",NO_DOT_SLASH:"(?!\\.{0,1}(?:\\/|$))",NO_DOTS_SLASH:"(?!\\.{1,2}(?:\\/|$))",QMARK_NO_DOT:"[^.\\/]",STAR:"[^/]*?",START_ANCHOR:"(?:^|\\/)",SEP:"/"},yQ8={...oh,SLASH_LITERAL:"[\\\\/]",QMARK:"[^\\\\/]",STAR:"[^\\\\/]*?",DOTS_SLASH:"\\.{1,2}(?:[\\\\/]|$)",NO_DOT:"(?!\\.)",NO_DOTS:"(?!(?:^|[\\\\/])\\.{1,2}(?:[\\\\/]|$))",NO_DOT_SLASH:"(?!\\.{0,1}(?:[\\\\/]|$))",NO_DOTS_SLASH:"(?!\\.{1,2}(?:[\\\\/]|$))",QMARK_NO_DOT:"[^.\\\\/]",START_ANCHOR:"(?:^|[\\\\/])",END_ANCHOR:"(?:[\\\\/]|$)",SEP:"\\"},_Q8={__proto__:null,alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};nh.exports={DEFAULT_MAX_EXTGLOB_RECURSION:0,MAX_LENGTH:65536,POSIX_REGEX_SOURCE:_Q8,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{__proto__:null,"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,extglobChars(q){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${q.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(q){return q===!0?yQ8:oh}}});var Tq=k((pQ8)=>{var{REGEX_BACKSLASH:gQ8,REGEX_REMOVE_BACKSLASH:lQ8,REGEX_SPECIAL_CHARS:xQ8,REGEX_SPECIAL_CHARS_GLOBAL:mQ8}=Fq();pQ8.isObject=(q)=>q!==null&&typeof q==="object"&&!Array.isArray(q);pQ8.hasRegexChars=(q)=>xQ8.test(q);pQ8.isRegexChar=(q)=>q.length===1&&pQ8.hasRegexChars(q);pQ8.escapeRegex=(q)=>q.replace(mQ8,"\\$1");pQ8.toPosixSlashes=(q)=>q.replace(gQ8,"/");pQ8.isWindows=()=>{if(typeof navigator<"u"&&navigator.platform){let q=navigator.platform.toLowerCase();return q==="win32"||q==="windows"}if(typeof process<"u"&&process.platform)return process.platform==="win32";return!1};pQ8.removeBackslashes=(q)=>{return q.replace(lQ8,(Z)=>{return Z==="\\"?"":Z})};pQ8.escapeLast=(q,Z,Q)=>{let Y=q.lastIndexOf(Z,Q);if(Y===-1)return q;if(q[Y-1]==="\\")return pQ8.escapeLast(q,Z,Y-1);return`${q.slice(0,Y)}\\${q.slice(Y)}`};pQ8.removePrefix=(q,Z={})=>{let Q=q;if(Q.startsWith("./"))Q=Q.slice(2),Z.prefix="./";return Q};pQ8.wrapOutput=(q,Z={},Q={})=>{let Y=Q.contains?"":"^",J=Q.contains?"":"$",H=`${Y}(?:${q})${J}`;if(Z.negated===!0)H=`(?:^(?!${H}).*$)`;return H};pQ8.basename=(q,{windows:Z}={})=>{let Q=q.split(Z?/[\\/]/:"/"),Y=Q[Q.length-1];if(Y==="")return Q[Q.length-2];return Y}});var Gy=k((Nl8,Xy)=>{var qy=Tq(),{CHAR_ASTERISK:wX,CHAR_AT:eQ8,CHAR_BACKWARD_SLASH:fq,CHAR_COMMA:qY8,CHAR_DOT:AX,CHAR_EXCLAMATION_MARK:jX,CHAR_FORWARD_SLASH:Hy,CHAR_LEFT_CURLY_BRACE:IX,CHAR_LEFT_PARENTHESES:DX,CHAR_LEFT_SQUARE_BRACKET:ZY8,CHAR_PLUS:QY8,CHAR_QUESTION_MARK:Zy,CHAR_RIGHT_CURLY_BRACE:YY8,CHAR_RIGHT_PARENTHESES:Qy,CHAR_RIGHT_SQUARE_BRACKET:JY8}=Fq(),Yy=(q)=>{return q===Hy||q===fq},Jy=(q)=>{if(q.isPrefix!==!0)q.depth=q.isGlobstar?1/0:1},HY8=(q,Z)=>{let Q=Z||{},Y=q.length-1,J=Q.parts===!0||Q.scanToEnd===!0,H=[],X=[],G=[],W=q,R=-1,B=0,M=0,V=!1,$=!1,O=!1,w=!1,I=!1,C=!1,E=!1,D=!1,f=!1,v=!1,_=0,b,z,P={value:"",depth:0,isGlob:!1},L=()=>R>=Y,A=()=>W.charCodeAt(R+1),T=()=>{return b=z,W.charCodeAt(++R)};while(R<Y){z=T();let m;if(z===fq){if(E=P.backslashes=!0,z=T(),z===IX)C=!0;continue}if(C===!0||z===IX){_++;while(L()!==!0&&(z=T())){if(z===fq){E=P.backslashes=!0,T();continue}if(z===IX){_++;continue}if(C!==!0&&z===AX&&(z=T())===AX){if(V=P.isBrace=!0,O=P.isGlob=!0,v=!0,J===!0)continue;break}if(C!==!0&&z===qY8){if(V=P.isBrace=!0,O=P.isGlob=!0,v=!0,J===!0)continue;break}if(z===YY8){if(_--,_===0){C=!1,V=P.isBrace=!0,v=!0;break}}}if(J===!0)continue;break}if(z===Hy){if(H.push(R),X.push(P),P={value:"",depth:0,isGlob:!1},v===!0)continue;if(b===AX&&R===B+1){B+=2;continue}M=R+1;continue}if(Q.noext!==!0){if((z===QY8||z===eQ8||z===wX||z===Zy||z===jX)===!0&&A()===DX){if(O=P.isGlob=!0,w=P.isExtglob=!0,v=!0,z===jX&&R===B)f=!0;if(J===!0){while(L()!==!0&&(z=T())){if(z===fq){E=P.backslashes=!0,z=T();continue}if(z===Qy){O=P.isGlob=!0,v=!0;break}}continue}break}}if(z===wX){if(b===wX)I=P.isGlobstar=!0;if(O=P.isGlob=!0,v=!0,J===!0)continue;break}if(z===Zy){if(O=P.isGlob=!0,v=!0,J===!0)continue;break}if(z===ZY8){while(L()!==!0&&(m=T())){if(m===fq){E=P.backslashes=!0,T();continue}if(m===JY8){$=P.isBracket=!0,O=P.isGlob=!0,v=!0;break}}if(J===!0)continue;break}if(Q.nonegate!==!0&&z===jX&&R===B){D=P.negated=!0,B++;continue}if(Q.noparen!==!0&&z===DX){if(O=P.isGlob=!0,J===!0){while(L()!==!0&&(z=T())){if(z===DX){E=P.backslashes=!0,z=T();continue}if(z===Qy){v=!0;break}}continue}break}if(O===!0){if(v=!0,J===!0)continue;break}}if(Q.noext===!0)w=!1,O=!1;let h=W,N="",y="";if(B>0)N=W.slice(0,B),W=W.slice(B),M-=B;if(h&&O===!0&&M>0)h=W.slice(0,M),y=W.slice(M);else if(O===!0)h="",y=W;else h=W;if(h&&h!==""&&h!=="/"&&h!==W){if(Yy(h.charCodeAt(h.length-1)))h=h.slice(0,-1)}if(Q.unescape===!0){if(y)y=qy.removeBackslashes(y);if(h&&E===!0)h=qy.removeBackslashes(h)}let r={prefix:N,input:q,start:B,base:h,glob:y,isBrace:V,isBracket:$,isGlob:O,isExtglob:w,isGlobstar:I,negated:D,negatedExtglob:f};if(Q.tokens===!0){if(r.maxDepth=0,!Yy(z))X.push(P);r.tokens=X}if(Q.parts===!0||Q.tokens===!0){let m;for(let Y8=0;Y8<H.length;Y8++){let N8=m?m+1:B,w8=H[Y8],g8=q.slice(N8,w8);if(Q.tokens){if(Y8===0&&B!==0)X[Y8].isPrefix=!0,X[Y8].value=N;else X[Y8].value=g8;Jy(X[Y8]),r.maxDepth+=X[Y8].depth}if(Y8!==0||g8!=="")G.push(g8);m=w8}if(m&&m+1<q.length){let Y8=q.slice(m+1);if(G.push(Y8),Q.tokens)X[X.length-1].value=Y8,Jy(X[X.length-1]),r.maxDepth+=X[X.length-1].depth}r.slashes=H,r.parts=G}return r};Xy.exports=HY8});var Ry=k((kl8,Uy)=>{var Kq=Fq(),k1=Tq(),{MAX_LENGTH:yZ,POSIX_REGEX_SOURCE:XY8,REGEX_NON_SPECIAL_CHARS:GY8,REGEX_SPECIAL_CHARS_BACKREF:VY8,REPLACEMENTS:Vy}=Kq,WY8=(q,Z)=>{if(typeof Z.expandRange==="function")return Z.expandRange(...q,Z);q.sort();let Q=`[${q.join("-")}]`;try{new RegExp(Q)}catch(Y){return q.map((J)=>k1.escapeRegex(J)).join("..")}return Q},l5=(q,Z)=>{return`Missing ${q}: "${Z}" - use "\\\\${Z}" to match literal characters`},Wy=(q)=>{let Z=[],Q=0,Y=0,J=0,H="",X=!1;for(let G of q){if(X===!0){H+=G,X=!1;continue}if(G==="\\"){H+=G,X=!0;continue}if(G==='"'){J=J===1?0:1,H+=G;continue}if(J===0){if(G==="[")Q++;else if(G==="]"&&Q>0)Q--;else if(Q===0){if(G==="(")Y++;else if(G===")"&&Y>0)Y--;else if(G==="|"&&Y===0){Z.push(H),H="";continue}}}H+=G}return Z.push(H),Z},$Y8=(q)=>{let Z=!1;for(let Q of q){if(Z===!0){Z=!1;continue}if(Q==="\\"){Z=!0;continue}if(/[?*+@!()[\]{}]/.test(Q))return!1}return!0},$y=(q)=>{let Z=q.trim(),Q=!0;while(Q===!0)if(Q=!1,/^@\([^\\()[\]{}|]+\)$/.test(Z))Z=Z.slice(2,-1),Q=!0;if(!$Y8(Z))return;return Z.replace(/\\(.)/g,"$1")},UY8=(q)=>{let Z=q.map($y).filter(Boolean);for(let Q=0;Q<Z.length;Q++)for(let Y=Q+1;Y<Z.length;Y++){let J=Z[Q],H=Z[Y],X=J[0];if(!X||J!==X.repeat(J.length)||H!==X.repeat(H.length))continue;if(J===H||J.startsWith(H)||H.startsWith(J))return!0}return!1},CX=(q,Z=!0)=>{if(q[0]!=="+"&&q[0]!=="*"||q[1]!=="(")return;let Q=0,Y=0,J=0,H=!1;for(let X=1;X<q.length;X++){let G=q[X];if(H===!0){H=!1;continue}if(G==="\\"){H=!0;continue}if(G==='"'){J=J===1?0:1;continue}if(J===1)continue;if(G==="["){Q++;continue}if(G==="]"&&Q>0){Q--;continue}if(Q>0)continue;if(G==="("){Y++;continue}if(G===")"){if(Y--,Y===0){if(Z===!0&&X!==q.length-1)return;return{type:q[0],body:q.slice(2,X),end:X}}}}},RY8=(q)=>{let Z=0,Q=[];while(Z<q.length){let J=CX(q.slice(Z),!1);if(!J||J.type!=="*")return;let H=Wy(J.body).map((G)=>G.trim());if(H.length!==1)return;let X=$y(H[0]);if(!X||X.length!==1)return;Q.push(X),Z+=J.end+1}if(Q.length<1)return;return`${Q.length===1?k1.escapeRegex(Q[0]):`[${Q.map((J)=>k1.escapeRegex(J)).join("")}]`}*`},zY8=(q)=>{let Z=0,Q=q.trim(),Y=CX(Q);while(Y)Z++,Q=Y.body.trim(),Y=CX(Q);return Z},BY8=(q,Z)=>{if(Z.maxExtglobRecursion===!1)return{risky:!1};let Q=typeof Z.maxExtglobRecursion==="number"?Z.maxExtglobRecursion:Kq.DEFAULT_MAX_EXTGLOB_RECURSION,Y=Wy(q).map((J)=>J.trim());if(Y.length>1){if(Y.some((J)=>J==="")||Y.some((J)=>/^[*?]+$/.test(J))||UY8(Y))return{risky:!0}}for(let J of Y){let H=RY8(J);if(H)return{risky:!0,safeOutput:H};if(zY8(J)>Q)return{risky:!0}}return{risky:!1}},EX=(q,Z)=>{if(typeof q!=="string")throw TypeError("Expected a string");q=Vy[q]||q;let Q={...Z},Y=typeof Q.maxLength==="number"?Math.min(yZ,Q.maxLength):yZ,J=q.length;if(J>Y)throw SyntaxError(`Input length: ${J}, exceeds maximum allowed length: ${Y}`);let H={type:"bos",value:"",output:Q.prepend||""},X=[H],G=Q.capture?"":"?:",W=Kq.globChars(Q.windows),R=Kq.extglobChars(W),{DOT_LITERAL:B,PLUS_LITERAL:M,SLASH_LITERAL:V,ONE_CHAR:$,DOTS_SLASH:O,NO_DOT:w,NO_DOT_SLASH:I,NO_DOTS_SLASH:C,QMARK:E,QMARK_NO_DOT:D,STAR:f,START_ANCHOR:v}=W,_=(q8)=>{return`(${G}(?:(?!${v}${q8.dot?O:B}).)*?)`},b=Q.dot?"":w,z=Q.dot?E:D,P=Q.bash===!0?_(Q):f;if(Q.capture)P=`(${P})`;if(typeof Q.noext==="boolean")Q.noextglob=Q.noext;let L={input:q,index:-1,start:0,dot:Q.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:X};q=k1.removePrefix(q,L),J=q.length;let A=[],T=[],h=[],N=H,y,r=()=>L.index===J-1,m=L.peek=(q8=1)=>q[L.index+q8],Y8=L.advance=()=>q[++L.index]||"",N8=()=>q.slice(L.index+1),w8=(q8="",f8=0)=>{L.consumed+=q8,L.index+=f8},g8=(q8)=>{L.output+=q8.output!=null?q8.output:q8.value,w8(q8.value)},R8=()=>{let q8=1;while(m()==="!"&&(m(2)!=="("||m(3)==="?"))Y8(),L.start++,q8++;if(q8%2===0)return!1;return L.negated=!0,L.start++,!0},a8=(q8)=>{L[q8]++,h.push(q8)},B8=(q8)=>{L[q8]--,h.pop()},$8=(q8)=>{if(N.type==="globstar"){let f8=L.braces>0&&(q8.type==="comma"||q8.type==="brace"),H8=q8.extglob===!0||A.length&&(q8.type==="pipe"||q8.type==="paren");if(q8.type!=="slash"&&q8.type!=="paren"&&!f8&&!H8)L.output=L.output.slice(0,-N.output.length),N.type="star",N.value="*",N.output=P,L.output+=N.output}if(A.length&&q8.type!=="paren")A[A.length-1].inner+=q8.value;if(q8.value||q8.output)g8(q8);if(N&&N.type==="text"&&q8.type==="text"){N.output=(N.output||N.value)+q8.value,N.value+=q8.value;return}q8.prev=N,X.push(q8),N=q8},c8=(q8,f8)=>{let H8={...R[f8],conditions:1,inner:""};H8.prev=N,H8.parens=L.parens,H8.output=L.output,H8.startIndex=L.index,H8.tokensIndex=X.length;let E8=(Q.capture?"(":"")+H8.open;a8("parens"),$8({type:q8,value:f8,output:L.output?"":$}),$8({type:"paren",extglob:!0,value:Y8(),output:E8}),A.push(H8)},p8=(q8)=>{let f8=q.slice(q8.startIndex,L.index+1),H8=q.slice(q8.startIndex+2,L.index),E8=BY8(H8,Q);if((q8.type==="plus"||q8.type==="star")&&E8.risky){let U0=E8.safeOutput?(q8.output?"":$)+(Q.capture?`(${E8.safeOutput})`:E8.safeOutput):void 0,h1=X[q8.tokensIndex];h1.type="text",h1.value=f8,h1.output=U0||k1.escapeRegex(f8);for(let P1=q8.tokensIndex+1;P1<X.length;P1++)X[P1].value="",X[P1].output="",delete X[P1].suffix;L.output=q8.output+h1.output,L.backtrack=!0,$8({type:"paren",extglob:!0,value:y,output:""}),B8("parens");return}let Q0=q8.close+(Q.capture?")":""),H0;if(q8.type==="negate"){let U0=P;if(q8.inner&&q8.inner.length>1&&q8.inner.includes("/"))U0=_(Q);if(U0!==P||r()||/^\)+$/.test(N8()))Q0=q8.close=`)$))${U0}`;if(q8.inner.includes("*")&&(H0=N8())&&/^\.[^\\/.]+$/.test(H0)){let h1=EX(H0,{...Z,fastpaths:!1}).output;Q0=q8.close=`)${h1})${U0})`}if(q8.prev.type==="bos")L.negatedExtglob=!0}$8({type:"paren",extglob:!0,value:y,output:Q0}),B8("parens")};if(Q.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(q)){let q8=!1,f8=q.replace(VY8,(H8,E8,Q0,H0,U0,h1)=>{if(H0==="\\")return q8=!0,H8;if(H0==="?"){if(E8)return E8+H0+(U0?E.repeat(U0.length):"");if(h1===0)return z+(U0?E.repeat(U0.length):"");return E.repeat(Q0.length)}if(H0===".")return B.repeat(Q0.length);if(H0==="*"){if(E8)return E8+H0+(U0?P:"");return P}return E8?H8:`\\${H8}`});if(q8===!0)if(Q.unescape===!0)f8=f8.replace(/\\/g,"");else f8=f8.replace(/\\+/g,(H8)=>{return H8.length%2===0?"\\\\":H8?"\\":""});if(f8===q&&Q.contains===!0)return L.output=q,L;return L.output=k1.wrapOutput(f8,L,Z),L}while(!r()){if(y=Y8(),y==="\x00")continue;if(y==="\\"){let H8=m();if(H8==="/"&&Q.bash!==!0)continue;if(H8==="."||H8===";")continue;if(!H8){y+="\\",$8({type:"text",value:y});continue}let E8=/^\\+/.exec(N8()),Q0=0;if(E8&&E8[0].length>2){if(Q0=E8[0].length,L.index+=Q0,Q0%2!==0)y+="\\"}if(Q.unescape===!0)y=Y8();else y+=Y8();if(L.brackets===0){$8({type:"text",value:y});continue}}if(L.brackets>0&&(y!=="]"||N.value==="["||N.value==="[^")){if(Q.posix!==!1&&y===":"){let H8=N.value.slice(1);if(H8.includes("[")){if(N.posix=!0,H8.includes(":")){let E8=N.value.lastIndexOf("["),Q0=N.value.slice(0,E8),H0=N.value.slice(E8+2),U0=XY8[H0];if(U0){if(N.value=Q0+U0,L.backtrack=!0,Y8(),!H.output&&X.indexOf(N)===1)H.output=$;continue}}}}if(y==="["&&m()!==":"||y==="-"&&m()==="]")y=`\\${y}`;if(y==="]"&&(N.value==="["||N.value==="[^"))y=`\\${y}`;if(Q.posix===!0&&y==="!"&&N.value==="[")y="^";N.value+=y,g8({value:y});continue}if(L.quotes===1&&y!=='"'){y=k1.escapeRegex(y),N.value+=y,g8({value:y});continue}if(y==='"'){if(L.quotes=L.quotes===1?0:1,Q.keepQuotes===!0)$8({type:"text",value:y});continue}if(y==="("){a8("parens"),$8({type:"paren",value:y});continue}if(y===")"){if(L.parens===0&&Q.strictBrackets===!0)throw SyntaxError(l5("opening","("));let H8=A[A.length-1];if(H8&&L.parens===H8.parens+1){p8(A.pop());continue}$8({type:"paren",value:y,output:L.parens?")":"\\)"}),B8("parens");continue}if(y==="["){if(Q.nobracket===!0||!N8().includes("]")){if(Q.nobracket!==!0&&Q.strictBrackets===!0)throw SyntaxError(l5("closing","]"));y=`\\${y}`}else a8("brackets");$8({type:"bracket",value:y});continue}if(y==="]"){if(Q.nobracket===!0||N&&N.type==="bracket"&&N.value.length===1){$8({type:"text",value:y,output:`\\${y}`});continue}if(L.brackets===0){if(Q.strictBrackets===!0)throw SyntaxError(l5("opening","["));$8({type:"text",value:y,output:`\\${y}`});continue}B8("brackets");let H8=N.value.slice(1);if(N.posix!==!0&&H8[0]==="^"&&!H8.includes("/"))y=`/${y}`;if(N.value+=y,g8({value:y}),Q.literalBrackets===!1||k1.hasRegexChars(H8))continue;let E8=k1.escapeRegex(N.value);if(L.output=L.output.slice(0,-N.value.length),Q.literalBrackets===!0){L.output+=E8,N.value=E8;continue}N.value=`(${G}${E8}|${N.value})`,L.output+=N.value;continue}if(y==="{"&&Q.nobrace!==!0){a8("braces");let H8={type:"brace",value:y,output:"(",outputIndex:L.output.length,tokensIndex:L.tokens.length};T.push(H8),$8(H8);continue}if(y==="}"){let H8=T[T.length-1];if(Q.nobrace===!0||!H8){$8({type:"text",value:y,output:y});continue}let E8=")";if(H8.dots===!0){let Q0=X.slice(),H0=[];for(let U0=Q0.length-1;U0>=0;U0--){if(X.pop(),Q0[U0].type==="brace")break;if(Q0[U0].type!=="dots")H0.unshift(Q0[U0].value)}E8=WY8(H0,Q),L.backtrack=!0}if(H8.comma!==!0&&H8.dots!==!0){let Q0=L.output.slice(0,H8.outputIndex),H0=L.tokens.slice(H8.tokensIndex);H8.value=H8.output="\\{",y=E8="\\}",L.output=Q0;for(let U0 of H0)L.output+=U0.output||U0.value}$8({type:"brace",value:y,output:E8}),B8("braces"),T.pop();continue}if(y==="|"){if(A.length>0)A[A.length-1].conditions++;$8({type:"text",value:y});continue}if(y===","){let H8=y,E8=T[T.length-1];if(E8&&h[h.length-1]==="braces")E8.comma=!0,H8="|";$8({type:"comma",value:y,output:H8});continue}if(y==="/"){if(N.type==="dot"&&L.index===L.start+1){L.start=L.index+1,L.consumed="",L.output="",X.pop(),N=H;continue}$8({type:"slash",value:y,output:V});continue}if(y==="."){if(L.braces>0&&N.type==="dot"){if(N.value===".")N.output=B;let H8=T[T.length-1];N.type="dots",N.output+=y,N.value+=y,H8.dots=!0;continue}if(L.braces+L.parens===0&&N.type!=="bos"&&N.type!=="slash"){$8({type:"text",value:y,output:B});continue}$8({type:"dot",value:y,output:B});continue}if(y==="?"){if(!(N&&N.value==="(")&&Q.noextglob!==!0&&m()==="("&&m(2)!=="?"){c8("qmark",y);continue}if(N&&N.type==="paren"){let E8=m(),Q0=y;if(N.value==="("&&!/[!=<:]/.test(E8)||E8==="<"&&!/<([!=]|\w+>)/.test(N8()))Q0=`\\${y}`;$8({type:"text",value:y,output:Q0});continue}if(Q.dot!==!0&&(N.type==="slash"||N.type==="bos")){$8({type:"qmark",value:y,output:D});continue}$8({type:"qmark",value:y,output:E});continue}if(y==="!"){if(Q.noextglob!==!0&&m()==="("){if(m(2)!=="?"||!/[!=<:]/.test(m(3))){c8("negate",y);continue}}if(Q.nonegate!==!0&&L.index===0){R8();continue}}if(y==="+"){if(Q.noextglob!==!0&&m()==="("&&m(2)!=="?"){c8("plus",y);continue}if(N&&N.value==="("||Q.regex===!1){$8({type:"plus",value:y,output:M});continue}if(N&&(N.type==="bracket"||N.type==="paren"||N.type==="brace")||L.parens>0){$8({type:"plus",value:y});continue}$8({type:"plus",value:M});continue}if(y==="@"){if(Q.noextglob!==!0&&m()==="("&&m(2)!=="?"){$8({type:"at",extglob:!0,value:y,output:""});continue}$8({type:"text",value:y});continue}if(y!=="*"){if(y==="$"||y==="^")y=`\\${y}`;let H8=GY8.exec(N8());if(H8)y+=H8[0],L.index+=H8[0].length;$8({type:"text",value:y});continue}if(N&&(N.type==="globstar"||N.star===!0)){N.type="star",N.star=!0,N.value+=y,N.output=P,L.backtrack=!0,L.globstar=!0,w8(y);continue}let q8=N8();if(Q.noextglob!==!0&&/^\([^?]/.test(q8)){c8("star",y);continue}if(N.type==="star"){if(Q.noglobstar===!0){w8(y);continue}let H8=N.prev,E8=H8.prev,Q0=H8.type==="slash"||H8.type==="bos",H0=E8&&(E8.type==="star"||E8.type==="globstar");if(Q.bash===!0&&(!Q0||q8[0]&&q8[0]!=="/")){$8({type:"star",value:y,output:""});continue}let U0=L.braces>0&&(H8.type==="comma"||H8.type==="brace"),h1=A.length&&(H8.type==="pipe"||H8.type==="paren");if(!Q0&&H8.type!=="paren"&&!U0&&!h1){$8({type:"star",value:y,output:""});continue}while(q8.slice(0,3)==="/**"){let P1=q[L.index+4];if(P1&&P1!=="/")break;q8=q8.slice(3),w8("/**",3)}if(H8.type==="bos"&&r()){N.type="globstar",N.value+=y,N.output=_(Q),L.output=N.output,L.globstar=!0,w8(y);continue}if(H8.type==="slash"&&H8.prev.type!=="bos"&&!H0&&r()){L.output=L.output.slice(0,-(H8.output+N.output).length),H8.output=`(?:${H8.output}`,N.type="globstar",N.output=_(Q)+(Q.strictSlashes?")":"|$)"),N.value+=y,L.globstar=!0,L.output+=H8.output+N.output,w8(y);continue}if(H8.type==="slash"&&H8.prev.type!=="bos"&&q8[0]==="/"){let P1=q8[1]!==void 0?"|$":"";L.output=L.output.slice(0,-(H8.output+N.output).length),H8.output=`(?:${H8.output}`,N.type="globstar",N.output=`${_(Q)}${V}|${V}${P1})`,N.value+=y,L.output+=H8.output+N.output,L.globstar=!0,w8(y+Y8()),$8({type:"slash",value:"/",output:""});continue}if(H8.type==="bos"&&q8[0]==="/"){N.type="globstar",N.value+=y,N.output=`(?:^|${V}|${_(Q)}${V})`,L.output=N.output,L.globstar=!0,w8(y+Y8()),$8({type:"slash",value:"/",output:""});continue}L.output=L.output.slice(0,-N.output.length),N.type="globstar",N.output=_(Q),N.value+=y,L.output+=N.output,L.globstar=!0,w8(y);continue}let f8={type:"star",value:y,output:P};if(Q.bash===!0){if(f8.output=".*?",N.type==="bos"||N.type==="slash")f8.output=b+f8.output;$8(f8);continue}if(N&&(N.type==="bracket"||N.type==="paren")&&Q.regex===!0){f8.output=y,$8(f8);continue}if(L.index===L.start||N.type==="slash"||N.type==="dot"){if(N.type==="dot")L.output+=I,N.output+=I;else if(Q.dot===!0)L.output+=C,N.output+=C;else L.output+=b,N.output+=b;if(m()!=="*")L.output+=$,N.output+=$}$8(f8)}while(L.brackets>0){if(Q.strictBrackets===!0)throw SyntaxError(l5("closing","]"));L.output=k1.escapeLast(L.output,"["),B8("brackets")}while(L.parens>0){if(Q.strictBrackets===!0)throw SyntaxError(l5("closing",")"));L.output=k1.escapeLast(L.output,"("),B8("parens")}while(L.braces>0){if(Q.strictBrackets===!0)throw SyntaxError(l5("closing","}"));L.output=k1.escapeLast(L.output,"{"),B8("braces")}if(Q.strictSlashes!==!0&&(N.type==="star"||N.type==="bracket"))$8({type:"maybe_slash",value:"",output:`${V}?`});if(L.backtrack===!0){L.output="";for(let q8 of L.tokens)if(L.output+=q8.output!=null?q8.output:q8.value,q8.suffix)L.output+=q8.suffix}return L};EX.fastpaths=(q,Z)=>{let Q={...Z},Y=typeof Q.maxLength==="number"?Math.min(yZ,Q.maxLength):yZ,J=q.length;if(J>Y)throw SyntaxError(`Input length: ${J}, exceeds maximum allowed length: ${Y}`);q=Vy[q]||q;let{DOT_LITERAL:H,SLASH_LITERAL:X,ONE_CHAR:G,DOTS_SLASH:W,NO_DOT:R,NO_DOTS:B,NO_DOTS_SLASH:M,STAR:V,START_ANCHOR:$}=Kq.globChars(Q.windows),O=Q.dot?B:R,w=Q.dot?M:R,I=Q.capture?"":"?:",C={negated:!1,prefix:""},E=Q.bash===!0?".*?":V;if(Q.capture)E=`(${E})`;let D=(b)=>{if(b.noglobstar===!0)return E;return`(${I}(?:(?!${$}${b.dot?W:H}).)*?)`},f=(b)=>{switch(b){case"*":return`${O}${G}${E}`;case".*":return`${H}${G}${E}`;case"*.*":return`${O}${E}${H}${G}${E}`;case"*/*":return`${O}${E}${X}${G}${w}${E}`;case"**":return O+D(Q);case"**/*":return`(?:${O}${D(Q)}${X})?${w}${G}${E}`;case"**/*.*":return`(?:${O}${D(Q)}${X})?${w}${E}${H}${G}${E}`;case"**/.*":return`(?:${O}${D(Q)}${X})?${H}${G}${E}`;default:{let z=/^(.*?)\.(\w+)$/.exec(b);if(!z)return;let P=f(z[1]);if(!P)return;return P+H+z[2]}}},v=k1.removePrefix(q,C),_=f(v);if(_&&Q.strictSlashes!==!0)_+=`${X}?`;return _};Uy.exports=EX});var My=k((Sl8,By)=>{var MY8=Gy(),FX=Ry(),zy=Tq(),PY8=Fq(),LY8=(q)=>q&&typeof q==="object"&&!Array.isArray(q),u0=(q,Z,Q=!1)=>{if(Array.isArray(q)){let B=q.map((V)=>u0(V,Z,Q));return(V)=>{for(let $ of B){let O=$(V);if(O)return O}return!1}}let Y=LY8(q)&&q.tokens&&q.input;if(q===""||typeof q!=="string"&&!Y)throw TypeError("Expected pattern to be a non-empty string");let J=Z||{},H=J.windows,X=Y?u0.compileRe(q,Z):u0.makeRe(q,Z,!1,!0),G=X.state;delete X.state;let W=()=>!1;if(J.ignore){let B={...Z,ignore:null,onMatch:null,onResult:null};W=u0(J.ignore,B,Q)}let R=(B,M=!1)=>{let{isMatch:V,match:$,output:O}=u0.test(B,X,Z,{glob:q,posix:H}),w={glob:q,state:G,regex:X,posix:H,input:B,output:O,match:$,isMatch:V};if(typeof J.onResult==="function")J.onResult(w);if(V===!1)return w.isMatch=!1,M?w:!1;if(W(B)){if(typeof J.onIgnore==="function")J.onIgnore(w);return w.isMatch=!1,M?w:!1}if(typeof J.onMatch==="function")J.onMatch(w);return M?w:!0};if(Q)R.state=G;return R};u0.test=(q,Z,Q,{glob:Y,posix:J}={})=>{if(typeof q!=="string")throw TypeError("Expected input to be a string");if(q==="")return{isMatch:!1,output:""};let H=Q||{},X=H.format||(J?zy.toPosixSlashes:null),G=q===Y,W=G&&X?X(q):q;if(G===!1)W=X?X(q):q,G=W===Y;if(G===!1||H.capture===!0)if(H.matchBase===!0||H.basename===!0)G=u0.matchBase(q,Z,Q,J);else G=Z.exec(W);return{isMatch:Boolean(G),match:G,output:W}};u0.matchBase=(q,Z,Q)=>{return(Z instanceof RegExp?Z:u0.makeRe(Z,Q)).test(zy.basename(q))};u0.isMatch=(q,Z,Q)=>u0(Z,Q)(q);u0.parse=(q,Z)=>{if(Array.isArray(q))return q.map((Q)=>u0.parse(Q,Z));return FX(q,{...Z,fastpaths:!1})};u0.scan=(q,Z)=>MY8(q,Z);u0.compileRe=(q,Z,Q=!1,Y=!1)=>{if(Q===!0)return q.output;let J=Z||{},H=J.contains?"":"^",X=J.contains?"":"$",G=`${H}(?:${q.output})${X}`;if(q&&q.negated===!0)G=`^(?!${G}).*$`;let W=u0.toRegex(G,Z);if(Y===!0)W.state=q;return W};u0.makeRe=(q,Z={},Q=!1,Y=!1)=>{if(!q||typeof q!=="string")throw TypeError("Expected a non-empty string");let J={negated:!1,fastpaths:!0};if(Z.fastpaths!==!1&&(q[0]==="."||q[0]==="*"))J.output=FX.fastpaths(q,Z);if(!J.output)J=FX(q,Z);return u0.compileRe(J,Z,Q,Y)};u0.toRegex=(q,Z)=>{try{let Q=Z||{};return new RegExp(q,Q.flags||(Q.nocase?"i":""))}catch(Q){if(Z&&Z.debug===!0)throw Q;return/$^/}};u0.constants=PY8;By.exports=u0});var wy=k((ul8,Oy)=>{var Py=My(),OY8=Tq();function Ly(q,Z,Q=!1){if(Z&&(Z.windows===null||Z.windows===void 0))Z={...Z,windows:OY8.isWindows()};return Py(q,Z,Q)}Object.assign(Ly,Py);Oy.exports=Ly});var rZ;var iy=u8(()=>{(function(q){q[q.Text=1]="Text",q[q.Method=2]="Method",q[q.Function=3]="Function",q[q.Constructor=4]="Constructor",q[q.Field=5]="Field",q[q.Variable=6]="Variable",q[q.Class=7]="Class",q[q.Interface=8]="Interface",q[q.Module=9]="Module",q[q.Property=10]="Property",q[q.Unit=11]="Unit",q[q.Value=12]="Value",q[q.Enum=13]="Enum",q[q.Keyword=14]="Keyword",q[q.Snippet=15]="Snippet",q[q.Color=16]="Color",q[q.File=17]="File",q[q.Reference=18]="Reference",q[q.Folder=19]="Folder",q[q.EnumMember=20]="EnumMember",q[q.Constant=21]="Constant",q[q.Struct=22]="Struct",q[q.Event=23]="Event",q[q.Operator=24]="Operator",q[q.TypeParameter=25]="TypeParameter"})(rZ||(rZ={}))});var iZ;var dy=u8(()=>{(function(q){q[q.Warning=0]="Warning",q[q.Error=1]="Error",q[q.Suggestion=2]="Suggestion",q[q.Message=3]="Message"})(iZ||(iZ={}))});var dZ;var sy=u8(()=>{(function(q){q[q.None=0]="None",q[q.Required=1]="Required",q[q.Optional=2]="Optional",q[q.Rest=4]="Rest",q[q.Variadic=8]="Variadic",q[q.Fixed=3]="Fixed",q[q.Variable=12]="Variable",q[q.NonRequired=14]="NonRequired",q[q.NonRest=11]="NonRest"})(dZ||(dZ={}))});var sZ;var ay=u8(()=>{(function(q){q[q.None=0]="None",q[q.NoTruncation=1]="NoTruncation",q[q.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",q[q.GenerateNamesForShadowedTypeParams=4]="GenerateNamesForShadowedTypeParams",q[q.UseStructuralFallback=8]="UseStructuralFallback",q[q.ForbidIndexedAccessSymbolReferences=16]="ForbidIndexedAccessSymbolReferences",q[q.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",q[q.UseFullyQualifiedType=64]="UseFullyQualifiedType",q[q.UseOnlyExternalAliasing=128]="UseOnlyExternalAliasing",q[q.SuppressAnyReturnType=256]="SuppressAnyReturnType",q[q.WriteTypeParametersInQualifiedName=512]="WriteTypeParametersInQualifiedName",q[q.MultilineObjectLiterals=1024]="MultilineObjectLiterals",q[q.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",q[q.UseTypeOfFunction=4096]="UseTypeOfFunction",q[q.OmitParameterModifiers=8192]="OmitParameterModifiers",q[q.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",q[q.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",q[q.NoTypeReduction=536870912]="NoTypeReduction",q[q.UseInstantiationExpressions=1073741824]="UseInstantiationExpressions",q[q.OmitThisParameter=33554432]="OmitThisParameter",q[q.WriteCallStyleSignature=134217728]="WriteCallStyleSignature",q[q.AllowThisInObjectLiteral=32768]="AllowThisInObjectLiteral",q[q.AllowQualifiedNameInPlaceOfIdentifier=65536]="AllowQualifiedNameInPlaceOfIdentifier",q[q.AllowAnonymousIdentifier=131072]="AllowAnonymousIdentifier",q[q.AllowEmptyUnionOrIntersection=262144]="AllowEmptyUnionOrIntersection",q[q.AllowEmptyTuple=524288]="AllowEmptyTuple",q[q.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",q[q.AllowEmptyIndexInfoType=2097152]="AllowEmptyIndexInfoType",q[q.AllowNodeModulesRelativePaths=67108864]="AllowNodeModulesRelativePaths",q[q.IgnoreErrors=70221824]="IgnoreErrors",q[q.InObjectTypeLiteral=4194304]="InObjectTypeLiteral",q[q.InTypeAlias=8388608]="InTypeAlias",q[q.InInitialEntityName=16777216]="InInitialEntityName"})(sZ||(sZ={}))});var aZ;var oy=u8(()=>{(function(q){q[q.None=0]="None",q[q.Class=1]="Class",q[q.Interface=2]="Interface",q[q.Reference=4]="Reference",q[q.Tuple=8]="Tuple",q[q.Anonymous=16]="Anonymous",q[q.Mapped=32]="Mapped",q[q.Instantiated=64]="Instantiated",q[q.ObjectLiteral=128]="ObjectLiteral",q[q.EvolvingArray=256]="EvolvingArray",q[q.ObjectLiteralPatternWithComputedProperties=512]="ObjectLiteralPatternWithComputedProperties",q[q.ReverseMapped=1024]="ReverseMapped",q[q.JsxAttributes=2048]="JsxAttributes",q[q.JSLiteral=4096]="JSLiteral",q[q.FreshLiteral=8192]="FreshLiteral",q[q.ArrayLiteral=16384]="ArrayLiteral",q[q.PrimitiveUnion=32768]="PrimitiveUnion",q[q.ContainsWideningType=65536]="ContainsWideningType",q[q.ContainsObjectOrArrayLiteral=131072]="ContainsObjectOrArrayLiteral",q[q.NonInferrableType=262144]="NonInferrableType",q[q.CouldContainTypeVariablesComputed=524288]="CouldContainTypeVariablesComputed",q[q.CouldContainTypeVariables=1048576]="CouldContainTypeVariables",q[q.MembersResolved=2097152]="MembersResolved",q[q.ClassOrInterface=3]="ClassOrInterface",q[q.RequiresWidening=196608]="RequiresWidening",q[q.PropagatingFlags=458752]="PropagatingFlags",q[q.InstantiatedMapped=96]="InstantiatedMapped",q[q.InstantiationExpressionType=16777216]="InstantiationExpressionType",q[q.SingleSignatureType=33554432]="SingleSignatureType",q[q.ObjectTypeKindMask=50332991]="ObjectTypeKindMask",q[q.ContainsSpread=4194304]="ContainsSpread",q[q.ObjectRestType=8388608]="ObjectRestType",q[q.IsClassInstanceClone=67108864]="IsClassInstanceClone",q[q.IdenticalBaseTypeCalculated=134217728]="IdenticalBaseTypeCalculated",q[q.IdenticalBaseTypeExists=268435456]="IdenticalBaseTypeExists",q[q.UnresolvedMembers=536870912]="UnresolvedMembers",q[q.FromTypeNode=1073741824]="FromTypeNode",q[q.IsGenericTypeComputed=4194304]="IsGenericTypeComputed",q[q.IsGenericObjectType=8388608]="IsGenericObjectType",q[q.IsGenericIndexType=16777216]="IsGenericIndexType",q[q.IsGenericType=25165824]="IsGenericType",q[q.ContainsIntersections=33554432]="ContainsIntersections",q[q.IsUnknownLikeUnionComputed=67108864]="IsUnknownLikeUnionComputed",q[q.IsUnknownLikeUnion=134217728]="IsUnknownLikeUnion",q[q.IsNeverIntersectionComputed=33554432]="IsNeverIntersectionComputed",q[q.IsNeverIntersection=67108864]="IsNeverIntersection",q[q.IsConstrainedTypeVariable=134217728]="IsConstrainedTypeVariable"})(aZ||(aZ={}))});var S7;var ny=u8(()=>{(function(q){q[q.None=0]="None",q[q.HasRestParameter=1]="HasRestParameter",q[q.HasLiteralTypes=2]="HasLiteralTypes",q[q.Construct=4]="Construct",q[q.Abstract=8]="Abstract",q[q.IsInnerCallChain=16]="IsInnerCallChain",q[q.IsOuterCallChain=32]="IsOuterCallChain",q[q.IsUntypedSignatureInJSFile=64]="IsUntypedSignatureInJSFile",q[q.IsNonInferrable=128]="IsNonInferrable",q[q.IsSignatureCandidateForOverloadFailure=256]="IsSignatureCandidateForOverloadFailure",q[q.PropagatingFlags=335]="PropagatingFlags",q[q.CallChainFlags=48]="CallChainFlags"})(S7||(S7={}))});var oZ;var ty=u8(()=>{(function(q){q[q.Call=0]="Call",q[q.Construct=1]="Construct"})(oZ||(oZ={}))});var p5;var ey=u8(()=>{(function(q){q[q.None=0]="None",q[q.FunctionScopedVariable=1]="FunctionScopedVariable",q[q.BlockScopedVariable=2]="BlockScopedVariable",q[q.Property=4]="Property",q[q.EnumMember=8]="EnumMember",q[q.Function=16]="Function",q[q.Class=32]="Class",q[q.Interface=64]="Interface",q[q.ConstEnum=128]="ConstEnum",q[q.RegularEnum=256]="RegularEnum",q[q.ValueModule=512]="ValueModule",q[q.NamespaceModule=1024]="NamespaceModule",q[q.TypeLiteral=2048]="TypeLiteral",q[q.ObjectLiteral=4096]="ObjectLiteral",q[q.Method=8192]="Method",q[q.Constructor=16384]="Constructor",q[q.GetAccessor=32768]="GetAccessor",q[q.SetAccessor=65536]="SetAccessor",q[q.Signature=131072]="Signature",q[q.TypeParameter=262144]="TypeParameter",q[q.TypeAlias=524288]="TypeAlias",q[q.ExportValue=1048576]="ExportValue",q[q.Alias=2097152]="Alias",q[q.Prototype=4194304]="Prototype",q[q.ExportStar=8388608]="ExportStar",q[q.Optional=16777216]="Optional",q[q.Transient=33554432]="Transient",q[q.Assignment=67108864]="Assignment",q[q.ModuleExports=134217728]="ModuleExports",q[q.ConstEnumOnlyModule=268435456]="ConstEnumOnlyModule",q[q.ReplaceableByMethod=536870912]="ReplaceableByMethod",q[q.GlobalLookup=1073741824]="GlobalLookup",q[q.All=536870912]="All",q[q.Enum=384]="Enum",q[q.Variable=3]="Variable",q[q.Value=111551]="Value",q[q.Type=788968]="Type",q[q.Namespace=1920]="Namespace",q[q.Module=1536]="Module",q[q.Accessor=98304]="Accessor",q[q.FunctionScopedVariableExcludes=111550]="FunctionScopedVariableExcludes",q[q.BlockScopedVariableExcludes=111551]="BlockScopedVariableExcludes",q[q.ParameterExcludes=111551]="ParameterExcludes",q[q.PropertyExcludes=13243]="PropertyExcludes",q[q.EnumMemberExcludes=900095]="EnumMemberExcludes",q[q.FunctionExcludes=110991]="FunctionExcludes",q[q.ClassExcludes=899503]="ClassExcludes",q[q.InterfaceExcludes=788872]="InterfaceExcludes",q[q.RegularEnumExcludes=899327]="RegularEnumExcludes",q[q.ConstEnumExcludes=899967]="ConstEnumExcludes",q[q.ValueModuleExcludes=110735]="ValueModuleExcludes",q[q.NamespaceModuleExcludes=0]="NamespaceModuleExcludes",q[q.MethodExcludes=103359]="MethodExcludes",q[q.GetAccessorExcludes=46011]="GetAccessorExcludes",q[q.SetAccessorExcludes=78779]="SetAccessorExcludes",q[q.AccessorExcludes=111547]="AccessorExcludes",q[q.TypeParameterExcludes=526824]="TypeParameterExcludes",q[q.TypeAliasExcludes=788968]="TypeAliasExcludes",q[q.AliasExcludes=2097152]="AliasExcludes",q[q.ModuleMember=2623475]="ModuleMember",q[q.ExportHasLocal=944]="ExportHasLocal",q[q.BlockScoped=418]="BlockScoped",q[q.PropertyOrAccessor=98308]="PropertyOrAccessor",q[q.ClassMember=106500]="ClassMember",q[q.ExportSupportsDefaultModifier=112]="ExportSupportsDefaultModifier",q[q.ExportDoesNotSupportDefaultModifier=-113]="ExportDoesNotSupportDefaultModifier",q[q.Classifiable=2885600]="Classifiable",q[q.LateBindingContainer=6256]="LateBindingContainer"})(p5||(p5={}))});var nZ;var q_=u8(()=>{(function(q){q[q.None=0]="None",q[q.Any=1]="Any",q[q.Unknown=2]="Unknown",q[q.Undefined=4]="Undefined",q[q.Null=8]="Null",q[q.Void=16]="Void",q[q.String=32]="String",q[q.Number=64]="Number",q[q.BigInt=128]="BigInt",q[q.Boolean=256]="Boolean",q[q.ESSymbol=512]="ESSymbol",q[q.StringLiteral=1024]="StringLiteral",q[q.NumberLiteral=2048]="NumberLiteral",q[q.BigIntLiteral=4096]="BigIntLiteral",q[q.BooleanLiteral=8192]="BooleanLiteral",q[q.UniqueESSymbol=16384]="UniqueESSymbol",q[q.EnumLiteral=32768]="EnumLiteral",q[q.Enum=65536]="Enum",q[q.NonPrimitive=131072]="NonPrimitive",q[q.Never=262144]="Never",q[q.TypeParameter=524288]="TypeParameter",q[q.Object=1048576]="Object",q[q.Index=2097152]="Index",q[q.TemplateLiteral=4194304]="TemplateLiteral",q[q.StringMapping=8388608]="StringMapping",q[q.Substitution=16777216]="Substitution",q[q.IndexedAccess=33554432]="IndexedAccess",q[q.Conditional=67108864]="Conditional",q[q.Union=134217728]="Union",q[q.Intersection=268435456]="Intersection",q[q.Reserved1=536870912]="Reserved1",q[q.Reserved2=1073741824]="Reserved2",q[q.Reserved3=-2147483648]="Reserved3",q[q.AnyOrUnknown=3]="AnyOrUnknown",q[q.Nullable=12]="Nullable",q[q.Literal=15360]="Literal",q[q.Unit=97292]="Unit",q[q.Freshable=80896]="Freshable",q[q.StringOrNumberLiteral=3072]="StringOrNumberLiteral",q[q.StringOrNumberLiteralOrUnique=19456]="StringOrNumberLiteralOrUnique",q[q.DefinitelyFalsy=15388]="DefinitelyFalsy",q[q.PossiblyFalsy=15868]="PossiblyFalsy",q[q.Intrinsic=393983]="Intrinsic",q[q.StringLike=12583968]="StringLike",q[q.NumberLike=67648]="NumberLike",q[q.BigIntLike=4224]="BigIntLike",q[q.BooleanLike=8448]="BooleanLike",q[q.EnumLike=98304]="EnumLike",q[q.ESSymbolLike=16896]="ESSymbolLike",q[q.VoidLike=20]="VoidLike",q[q.Primitive=12713980]="Primitive",q[q.DefinitelyNonNullable=13893600]="DefinitelyNonNullable",q[q.DisjointDomains=12812284]="DisjointDomains",q[q.UnionOrIntersection=402653184]="UnionOrIntersection",q[q.StructuredType=403701760]="StructuredType",q[q.TypeVariable=34078720]="TypeVariable",q[q.InstantiableNonPrimitive=117964800]="InstantiableNonPrimitive",q[q.InstantiablePrimitive=14680064]="InstantiablePrimitive",q[q.Instantiable=132644864]="Instantiable",q[q.StructuredOrInstantiable=536346624]="StructuredOrInstantiable",q[q.ObjectFlagsType=403963917]="ObjectFlagsType",q[q.Simplifiable=102760448]="Simplifiable",q[q.Singleton=394239]="Singleton",q[q.Narrowable=536575971]="Narrowable",q[q.IncludesMask=416808959]="IncludesMask",q[q.IncludesMissingType=524288]="IncludesMissingType",q[q.IncludesNonWideningType=2097152]="IncludesNonWideningType",q[q.IncludesWildcard=33554432]="IncludesWildcard",q[q.IncludesEmptyObject=67108864]="IncludesEmptyObject",q[q.IncludesInstantiable=16777216]="IncludesInstantiable",q[q.IncludesConstrainedTypeVariable=536870912]="IncludesConstrainedTypeVariable",q[q.IncludesError=1073741824]="IncludesError",q[q.NotPrimitiveUnion=286523411]="NotPrimitiveUnion"})(nZ||(nZ={}))});var tZ;var Z_=u8(()=>{(function(q){q[q.This=0]="This",q[q.Identifier=1]="Identifier",q[q.AssertsThis=2]="AssertsThis",q[q.AssertsIdentifier=3]="AssertsIdentifier"})(tZ||(tZ={}))});var e1;var uX=u8(()=>{(function(q){q[q.EOF=-1]="EOF",q[q.nullCharacter=0]="nullCharacter",q[q.maxAsciiCharacter=127]="maxAsciiCharacter",q[q.lineFeed=10]="lineFeed",q[q.carriageReturn=13]="carriageReturn",q[q.lineSeparator=8232]="lineSeparator",q[q.paragraphSeparator=8233]="paragraphSeparator",q[q.nextLine=133]="nextLine",q[q.space=32]="space",q[q.nonBreakingSpace=160]="nonBreakingSpace",q[q.enQuad=8192]="enQuad",q[q.emQuad=8193]="emQuad",q[q.enSpace=8194]="enSpace",q[q.emSpace=8195]="emSpace",q[q.threePerEmSpace=8196]="threePerEmSpace",q[q.fourPerEmSpace=8197]="fourPerEmSpace",q[q.sixPerEmSpace=8198]="sixPerEmSpace",q[q.figureSpace=8199]="figureSpace",q[q.punctuationSpace=8200]="punctuationSpace",q[q.thinSpace=8201]="thinSpace",q[q.hairSpace=8202]="hairSpace",q[q.zeroWidthSpace=8203]="zeroWidthSpace",q[q.narrowNoBreakSpace=8239]="narrowNoBreakSpace",q[q.ideographicSpace=12288]="ideographicSpace",q[q.mathematicalSpace=8287]="mathematicalSpace",q[q.ogham=5765]="ogham",q[q.replacementCharacter=65533]="replacementCharacter",q[q._=95]="_",q[q.$=36]="$",q[q._0=48]="_0",q[q._1=49]="_1",q[q._2=50]="_2",q[q._3=51]="_3",q[q._4=52]="_4",q[q._5=53]="_5",q[q._6=54]="_6",q[q._7=55]="_7",q[q._8=56]="_8",q[q._9=57]="_9",q[q.a=97]="a",q[q.b=98]="b",q[q.c=99]="c",q[q.d=100]="d",q[q.e=101]="e",q[q.f=102]="f",q[q.g=103]="g",q[q.h=104]="h",q[q.i=105]="i",q[q.j=106]="j",q[q.k=107]="k",q[q.l=108]="l",q[q.m=109]="m",q[q.n=110]="n",q[q.o=111]="o",q[q.p=112]="p",q[q.q=113]="q",q[q.r=114]="r",q[q.s=115]="s",q[q.t=116]="t",q[q.u=117]="u",q[q.v=118]="v",q[q.w=119]="w",q[q.x=120]="x",q[q.y=121]="y",q[q.z=122]="z",q[q.A=65]="A",q[q.B=66]="B",q[q.C=67]="C",q[q.D=68]="D",q[q.E=69]="E",q[q.F=70]="F",q[q.G=71]="G",q[q.H=72]="H",q[q.I=73]="I",q[q.J=74]="J",q[q.K=75]="K",q[q.L=76]="L",q[q.M=77]="M",q[q.N=78]="N",q[q.O=79]="O",q[q.P=80]="P",q[q.Q=81]="Q",q[q.R=82]="R",q[q.S=83]="S",q[q.T=84]="T",q[q.U=85]="U",q[q.V=86]="V",q[q.W=87]="W",q[q.X=88]="X",q[q.Y=89]="Y",q[q.Z=90]="Z",q[q.ampersand=38]="ampersand",q[q.asterisk=42]="asterisk",q[q.at=64]="at",q[q.backslash=92]="backslash",q[q.backtick=96]="backtick",q[q.bar=124]="bar",q[q.caret=94]="caret",q[q.closeBrace=125]="closeBrace",q[q.closeBracket=93]="closeBracket",q[q.closeParen=41]="closeParen",q[q.colon=58]="colon",q[q.comma=44]="comma",q[q.dot=46]="dot",q[q.doubleQuote=34]="doubleQuote",q[q.equals=61]="equals",q[q.exclamation=33]="exclamation",q[q.greaterThan=62]="greaterThan",q[q.hash=35]="hash",q[q.lessThan=60]="lessThan",q[q.minus=45]="minus",q[q.openBrace=123]="openBrace",q[q.openBracket=91]="openBracket",q[q.openParen=40]="openParen",q[q.percent=37]="percent",q[q.plus=43]="plus",q[q.question=63]="question",q[q.semicolon=59]="semicolon",q[q.singleQuote=39]="singleQuote",q[q.slash=47]="slash",q[q.tilde=126]="tilde",q[q.backspace=8]="backspace",q[q.formFeed=12]="formFeed",q[q.byteOrderMark=65279]="byteOrderMark",q[q.tab=9]="tab",q[q.verticalTab=11]="verticalTab"})(e1||(e1={}))});var eZ;var bX=u8(()=>{(function(q){q[q.ExpectError=0]="ExpectError",q[q.Ignore=1]="Ignore"})(eZ||(eZ={}))});var qQ;var hX=u8(()=>{(function(q){q[q.Standard=0]="Standard",q[q.JSX=1]="JSX"})(qQ||(qQ={}))});var z0;var Q_=u8(()=>{(function(q){q[q.None=0]="None",q[q.Public=1]="Public",q[q.Private=2]="Private",q[q.Protected=4]="Protected",q[q.Readonly=8]="Readonly",q[q.Override=16]="Override",q[q.Export=32]="Export",q[q.Abstract=64]="Abstract",q[q.Ambient=128]="Ambient",q[q.Static=256]="Static",q[q.Accessor=512]="Accessor",q[q.Async=1024]="Async",q[q.Default=2048]="Default",q[q.Const=4096]="Const",q[q.In=8192]="In",q[q.Out=16384]="Out",q[q.Decorator=32768]="Decorator",q[q.Deprecated=65536]="Deprecated",q[q.JSDocPublic=8388608]="JSDocPublic",q[q.JSDocPrivate=16777216]="JSDocPrivate",q[q.JSDocProtected=33554432]="JSDocProtected",q[q.JSDocReadonly=67108864]="JSDocReadonly",q[q.JSDocOverride=134217728]="JSDocOverride",q[q.HasComputedJSDocModifiers=268435456]="HasComputedJSDocModifiers",q[q.HasComputedFlags=536870912]="HasComputedFlags",q[q.SyntacticOrJSDocModifiers=31]="SyntacticOrJSDocModifiers",q[q.SyntacticOnlyModifiers=65504]="SyntacticOnlyModifiers",q[q.SyntacticModifiers=65535]="SyntacticModifiers",q[q.JSDocCacheOnlyModifiers=260046848]="JSDocCacheOnlyModifiers",q[q.JSDocOnlyModifiers=65536]="JSDocOnlyModifiers",q[q.NonCacheOnlyModifiers=131071]="NonCacheOnlyModifiers",q[q.AccessibilityModifier=7]="AccessibilityModifier",q[q.ParameterPropertyModifier=31]="ParameterPropertyModifier",q[q.NonPublicAccessibilityModifier=6]="NonPublicAccessibilityModifier",q[q.TypeScriptModifier=28895]="TypeScriptModifier",q[q.ExportDefault=2080]="ExportDefault",q[q.All=131071]="All",q[q.Modifier=98303]="Modifier",q[q.JavaScript=3872]="JavaScript"})(z0||(z0={}))});var R6;var bq=u8(()=>{(function(q){q[q.None=0]="None",q[q.Let=1]="Let",q[q.Const=2]="Const",q[q.Using=4]="Using",q[q.Reparsed=8]="Reparsed",q[q.Synthesized=16]="Synthesized",q[q.OptionalChain=32]="OptionalChain",q[q.ExportContext=64]="ExportContext",q[q.ContainsThis=128]="ContainsThis",q[q.HasImplicitReturn=256]="HasImplicitReturn",q[q.HasExplicitReturn=512]="HasExplicitReturn",q[q.DisallowInContext=1024]="DisallowInContext",q[q.YieldContext=2048]="YieldContext",q[q.DecoratorContext=4096]="DecoratorContext",q[q.AwaitContext=8192]="AwaitContext",q[q.DisallowConditionalTypesContext=16384]="DisallowConditionalTypesContext",q[q.ThisNodeHasError=32768]="ThisNodeHasError",q[q.JavaScriptFile=65536]="JavaScriptFile",q[q.ThisNodeOrAnySubNodesHasError=131072]="ThisNodeOrAnySubNodesHasError",q[q.HasAsyncFunctions=262144]="HasAsyncFunctions",q[q.PossiblyContainsDynamicImport=524288]="PossiblyContainsDynamicImport",q[q.PossiblyContainsImportMeta=1048576]="PossiblyContainsImportMeta",q[q.HasJSDoc=2097152]="HasJSDoc",q[q.JSDoc=4194304]="JSDoc",q[q.Ambient=8388608]="Ambient",q[q.InWithStatement=16777216]="InWithStatement",q[q.JsonFile=33554432]="JsonFile",q[q.PossiblyContainsDeprecatedTag=67108864]="PossiblyContainsDeprecatedTag",q[q.Unreachable=134217728]="Unreachable",q[q.ReparserTransformedLiteral=268435456]="ReparserTransformedLiteral",q[q.BlockScoped=7]="BlockScoped",q[q.Constant=6]="Constant",q[q.AwaitUsing=6]="AwaitUsing",q[q.ReachabilityCheckFlags=768]="ReachabilityCheckFlags",q[q.ReachabilityAndEmitFlags=262912]="ReachabilityAndEmitFlags",q[q.ContextFlags=25263104]="ContextFlags",q[q.TypeExcludesFlags=10240]="TypeExcludesFlags",q[q.PermanentlySetIncrementalFlags=1572864]="PermanentlySetIncrementalFlags",q[q.IdentifierHasExtendedUnicodeEscape=128]="IdentifierHasExtendedUnicodeEscape",q[q.IdentifierIsInJSDocNamespace=262144]="IdentifierIsInJSDocNamespace",q[q.NestedNamespace=32]="NestedNamespace"})(R6||(R6={}))});var q9;var yX=u8(()=>{(function(q){q[q.None=0]="None",q[q.HasIndices=1]="HasIndices",q[q.Global=2]="Global",q[q.IgnoreCase=4]="IgnoreCase",q[q.Multiline=8]="Multiline",q[q.DotAll=16]="DotAll",q[q.Unicode=32]="Unicode",q[q.UnicodeSets=64]="UnicodeSets",q[q.Sticky=128]="Sticky",q[q.AnyUnicodeMode=96]="AnyUnicodeMode"})(q9||(q9={}))});var c5;var _X=u8(()=>{(function(q){q[q.Unknown=0]="Unknown",q[q.JS=1]="JS",q[q.JSX=2]="JSX",q[q.TS=3]="TS",q[q.TSX=4]="TSX",q[q.External=5]="External",q[q.JSON=6]="JSON",q[q.Deferred=7]="Deferred"})(c5||(c5={}))});var ZQ;var gX=u8(()=>{(function(q){q[q.ES2015=2]="ES2015",q[q.ES2016=3]="ES2016",q[q.ES2017=4]="ES2017",q[q.ES2018=5]="ES2018",q[q.ES2019=6]="ES2019",q[q.ES2020=7]="ES2020",q[q.ES2021=8]="ES2021",q[q.ES2022=9]="ES2022",q[q.ES2023=10]="ES2023",q[q.ES2024=11]="ES2024",q[q.ES2025=12]="ES2025",q[q.ESNext=99]="ESNext",q[q.JSON=100]="JSON",q[q.Latest=99]="Latest"})(ZQ||(ZQ={}))});var U;var I1=u8(()=>{(function(q){q[q.Unknown=0]="Unknown",q[q.EndOfFile=1]="EndOfFile",q[q.SingleLineCommentTrivia=2]="SingleLineCommentTrivia",q[q.MultiLineCommentTrivia=3]="MultiLineCommentTrivia",q[q.NewLineTrivia=4]="NewLineTrivia",q[q.WhitespaceTrivia=5]="WhitespaceTrivia",q[q.ConflictMarkerTrivia=6]="ConflictMarkerTrivia",q[q.NonTextFileMarkerTrivia=7]="NonTextFileMarkerTrivia",q[q.NumericLiteral=8]="NumericLiteral",q[q.BigIntLiteral=9]="BigIntLiteral",q[q.StringLiteral=10]="StringLiteral",q[q.JsxText=11]="JsxText",q[q.JsxTextAllWhiteSpaces=12]="JsxTextAllWhiteSpaces",q[q.RegularExpressionLiteral=13]="RegularExpressionLiteral",q[q.NoSubstitutionTemplateLiteral=14]="NoSubstitutionTemplateLiteral",q[q.TemplateHead=15]="TemplateHead",q[q.TemplateMiddle=16]="TemplateMiddle",q[q.TemplateTail=17]="TemplateTail",q[q.OpenBraceToken=18]="OpenBraceToken",q[q.CloseBraceToken=19]="CloseBraceToken",q[q.OpenParenToken=20]="OpenParenToken",q[q.CloseParenToken=21]="CloseParenToken",q[q.OpenBracketToken=22]="OpenBracketToken",q[q.CloseBracketToken=23]="CloseBracketToken",q[q.DotToken=24]="DotToken",q[q.DotDotDotToken=25]="DotDotDotToken",q[q.SemicolonToken=26]="SemicolonToken",q[q.CommaToken=27]="CommaToken",q[q.QuestionDotToken=28]="QuestionDotToken",q[q.LessThanToken=29]="LessThanToken",q[q.LessThanSlashToken=30]="LessThanSlashToken",q[q.GreaterThanToken=31]="GreaterThanToken",q[q.LessThanEqualsToken=32]="LessThanEqualsToken",q[q.GreaterThanEqualsToken=33]="GreaterThanEqualsToken",q[q.EqualsEqualsToken=34]="EqualsEqualsToken",q[q.ExclamationEqualsToken=35]="ExclamationEqualsToken",q[q.EqualsEqualsEqualsToken=36]="EqualsEqualsEqualsToken",q[q.ExclamationEqualsEqualsToken=37]="ExclamationEqualsEqualsToken",q[q.EqualsGreaterThanToken=38]="EqualsGreaterThanToken",q[q.PlusToken=39]="PlusToken",q[q.MinusToken=40]="MinusToken",q[q.AsteriskToken=41]="AsteriskToken",q[q.AsteriskAsteriskToken=42]="AsteriskAsteriskToken",q[q.SlashToken=43]="SlashToken",q[q.PercentToken=44]="PercentToken",q[q.PlusPlusToken=45]="PlusPlusToken",q[q.MinusMinusToken=46]="MinusMinusToken",q[q.LessThanLessThanToken=47]="LessThanLessThanToken",q[q.GreaterThanGreaterThanToken=48]="GreaterThanGreaterThanToken",q[q.GreaterThanGreaterThanGreaterThanToken=49]="GreaterThanGreaterThanGreaterThanToken",q[q.AmpersandToken=50]="AmpersandToken",q[q.BarToken=51]="BarToken",q[q.CaretToken=52]="CaretToken",q[q.ExclamationToken=53]="ExclamationToken",q[q.TildeToken=54]="TildeToken",q[q.AmpersandAmpersandToken=55]="AmpersandAmpersandToken",q[q.BarBarToken=56]="BarBarToken",q[q.QuestionToken=57]="QuestionToken",q[q.ColonToken=58]="ColonToken",q[q.AtToken=59]="AtToken",q[q.QuestionQuestionToken=60]="QuestionQuestionToken",q[q.BacktickToken=61]="BacktickToken",q[q.HashToken=62]="HashToken",q[q.EqualsToken=63]="EqualsToken",q[q.PlusEqualsToken=64]="PlusEqualsToken",q[q.MinusEqualsToken=65]="MinusEqualsToken",q[q.AsteriskEqualsToken=66]="AsteriskEqualsToken",q[q.AsteriskAsteriskEqualsToken=67]="AsteriskAsteriskEqualsToken",q[q.SlashEqualsToken=68]="SlashEqualsToken",q[q.PercentEqualsToken=69]="PercentEqualsToken",q[q.LessThanLessThanEqualsToken=70]="LessThanLessThanEqualsToken",q[q.GreaterThanGreaterThanEqualsToken=71]="GreaterThanGreaterThanEqualsToken",q[q.GreaterThanGreaterThanGreaterThanEqualsToken=72]="GreaterThanGreaterThanGreaterThanEqualsToken",q[q.AmpersandEqualsToken=73]="AmpersandEqualsToken",q[q.BarEqualsToken=74]="BarEqualsToken",q[q.BarBarEqualsToken=75]="BarBarEqualsToken",q[q.AmpersandAmpersandEqualsToken=76]="AmpersandAmpersandEqualsToken",q[q.QuestionQuestionEqualsToken=77]="QuestionQuestionEqualsToken",q[q.CaretEqualsToken=78]="CaretEqualsToken",q[q.Identifier=79]="Identifier",q[q.PrivateIdentifier=80]="PrivateIdentifier",q[q.JSDocCommentTextToken=81]="JSDocCommentTextToken",q[q.BreakKeyword=82]="BreakKeyword",q[q.CaseKeyword=83]="CaseKeyword",q[q.CatchKeyword=84]="CatchKeyword",q[q.ClassKeyword=85]="ClassKeyword",q[q.ConstKeyword=86]="ConstKeyword",q[q.ContinueKeyword=87]="ContinueKeyword",q[q.DebuggerKeyword=88]="DebuggerKeyword",q[q.DefaultKeyword=89]="DefaultKeyword",q[q.DeleteKeyword=90]="DeleteKeyword",q[q.DoKeyword=91]="DoKeyword",q[q.ElseKeyword=92]="ElseKeyword",q[q.EnumKeyword=93]="EnumKeyword",q[q.ExportKeyword=94]="ExportKeyword",q[q.ExtendsKeyword=95]="ExtendsKeyword",q[q.FalseKeyword=96]="FalseKeyword",q[q.FinallyKeyword=97]="FinallyKeyword",q[q.ForKeyword=98]="ForKeyword",q[q.FunctionKeyword=99]="FunctionKeyword",q[q.IfKeyword=100]="IfKeyword",q[q.ImportKeyword=101]="ImportKeyword",q[q.InKeyword=102]="InKeyword",q[q.InstanceOfKeyword=103]="InstanceOfKeyword",q[q.NewKeyword=104]="NewKeyword",q[q.NullKeyword=105]="NullKeyword",q[q.ReturnKeyword=106]="ReturnKeyword",q[q.SuperKeyword=107]="SuperKeyword",q[q.SwitchKeyword=108]="SwitchKeyword",q[q.ThisKeyword=109]="ThisKeyword",q[q.ThrowKeyword=110]="ThrowKeyword",q[q.TrueKeyword=111]="TrueKeyword",q[q.TryKeyword=112]="TryKeyword",q[q.TypeOfKeyword=113]="TypeOfKeyword",q[q.VarKeyword=114]="VarKeyword",q[q.VoidKeyword=115]="VoidKeyword",q[q.WhileKeyword=116]="WhileKeyword",q[q.WithKeyword=117]="WithKeyword",q[q.ImplementsKeyword=118]="ImplementsKeyword",q[q.InterfaceKeyword=119]="InterfaceKeyword",q[q.LetKeyword=120]="LetKeyword",q[q.PackageKeyword=121]="PackageKeyword",q[q.PrivateKeyword=122]="PrivateKeyword",q[q.ProtectedKeyword=123]="ProtectedKeyword",q[q.PublicKeyword=124]="PublicKeyword",q[q.StaticKeyword=125]="StaticKeyword",q[q.YieldKeyword=126]="YieldKeyword",q[q.AbstractKeyword=127]="AbstractKeyword",q[q.AccessorKeyword=128]="AccessorKeyword",q[q.AsKeyword=129]="AsKeyword",q[q.AssertsKeyword=130]="AssertsKeyword",q[q.AssertKeyword=131]="AssertKeyword",q[q.AnyKeyword=132]="AnyKeyword",q[q.AsyncKeyword=133]="AsyncKeyword",q[q.AwaitKeyword=134]="AwaitKeyword",q[q.BooleanKeyword=135]="BooleanKeyword",q[q.ConstructorKeyword=136]="ConstructorKeyword",q[q.DeclareKeyword=137]="DeclareKeyword",q[q.GetKeyword=138]="GetKeyword",q[q.ImmediateKeyword=139]="ImmediateKeyword",q[q.InferKeyword=140]="InferKeyword",q[q.IntrinsicKeyword=141]="IntrinsicKeyword",q[q.IsKeyword=142]="IsKeyword",q[q.KeyOfKeyword=143]="KeyOfKeyword",q[q.ModuleKeyword=144]="ModuleKeyword",q[q.NamespaceKeyword=145]="NamespaceKeyword",q[q.NeverKeyword=146]="NeverKeyword",q[q.OutKeyword=147]="OutKeyword",q[q.ReadonlyKeyword=148]="ReadonlyKeyword",q[q.RequireKeyword=149]="RequireKeyword",q[q.NumberKeyword=150]="NumberKeyword",q[q.ObjectKeyword=151]="ObjectKeyword",q[q.SatisfiesKeyword=152]="SatisfiesKeyword",q[q.SetKeyword=153]="SetKeyword",q[q.StringKeyword=154]="StringKeyword",q[q.SymbolKeyword=155]="SymbolKeyword",q[q.TypeKeyword=156]="TypeKeyword",q[q.UndefinedKeyword=157]="UndefinedKeyword",q[q.UniqueKeyword=158]="UniqueKeyword",q[q.UnknownKeyword=159]="UnknownKeyword",q[q.UsingKeyword=160]="UsingKeyword",q[q.FromKeyword=161]="FromKeyword",q[q.GlobalKeyword=162]="GlobalKeyword",q[q.BigIntKeyword=163]="BigIntKeyword",q[q.OverrideKeyword=164]="OverrideKeyword",q[q.OfKeyword=165]="OfKeyword",q[q.DeferKeyword=166]="DeferKeyword",q[q.QualifiedName=167]="QualifiedName",q[q.ComputedPropertyName=168]="ComputedPropertyName",q[q.TypeParameter=169]="TypeParameter",q[q.Parameter=170]="Parameter",q[q.Decorator=171]="Decorator",q[q.PropertySignature=172]="PropertySignature",q[q.PropertyDeclaration=173]="PropertyDeclaration",q[q.MethodSignature=174]="MethodSignature",q[q.MethodDeclaration=175]="MethodDeclaration",q[q.ClassStaticBlockDeclaration=176]="ClassStaticBlockDeclaration",q[q.Constructor=177]="Constructor",q[q.GetAccessor=178]="GetAccessor",q[q.SetAccessor=179]="SetAccessor",q[q.CallSignature=180]="CallSignature",q[q.ConstructSignature=181]="ConstructSignature",q[q.IndexSignature=182]="IndexSignature",q[q.TypePredicate=183]="TypePredicate",q[q.TypeReference=184]="TypeReference",q[q.FunctionType=185]="FunctionType",q[q.ConstructorType=186]="ConstructorType",q[q.TypeQuery=187]="TypeQuery",q[q.TypeLiteral=188]="TypeLiteral",q[q.ArrayType=189]="ArrayType",q[q.TupleType=190]="TupleType",q[q.OptionalType=191]="OptionalType",q[q.RestType=192]="RestType",q[q.UnionType=193]="UnionType",q[q.IntersectionType=194]="IntersectionType",q[q.ConditionalType=195]="ConditionalType",q[q.InferType=196]="InferType",q[q.ParenthesizedType=197]="ParenthesizedType",q[q.ThisType=198]="ThisType",q[q.TypeOperator=199]="TypeOperator",q[q.IndexedAccessType=200]="IndexedAccessType",q[q.MappedType=201]="MappedType",q[q.LiteralType=202]="LiteralType",q[q.NamedTupleMember=203]="NamedTupleMember",q[q.TemplateLiteralType=204]="TemplateLiteralType",q[q.TemplateLiteralTypeSpan=205]="TemplateLiteralTypeSpan",q[q.ImportType=206]="ImportType",q[q.ObjectBindingPattern=207]="ObjectBindingPattern",q[q.ArrayBindingPattern=208]="ArrayBindingPattern",q[q.BindingElement=209]="BindingElement",q[q.ArrayLiteralExpression=210]="ArrayLiteralExpression",q[q.ObjectLiteralExpression=211]="ObjectLiteralExpression",q[q.PropertyAccessExpression=212]="PropertyAccessExpression",q[q.ElementAccessExpression=213]="ElementAccessExpression",q[q.CallExpression=214]="CallExpression",q[q.NewExpression=215]="NewExpression",q[q.TaggedTemplateExpression=216]="TaggedTemplateExpression",q[q.TypeAssertionExpression=217]="TypeAssertionExpression",q[q.ParenthesizedExpression=218]="ParenthesizedExpression",q[q.FunctionExpression=219]="FunctionExpression",q[q.ArrowFunction=220]="ArrowFunction",q[q.DeleteExpression=221]="DeleteExpression",q[q.TypeOfExpression=222]="TypeOfExpression",q[q.VoidExpression=223]="VoidExpression",q[q.AwaitExpression=224]="AwaitExpression",q[q.PrefixUnaryExpression=225]="PrefixUnaryExpression",q[q.PostfixUnaryExpression=226]="PostfixUnaryExpression",q[q.BinaryExpression=227]="BinaryExpression",q[q.ConditionalExpression=228]="ConditionalExpression",q[q.TemplateExpression=229]="TemplateExpression",q[q.YieldExpression=230]="YieldExpression",q[q.SpreadElement=231]="SpreadElement",q[q.ClassExpression=232]="ClassExpression",q[q.OmittedExpression=233]="OmittedExpression",q[q.ExpressionWithTypeArguments=234]="ExpressionWithTypeArguments",q[q.AsExpression=235]="AsExpression",q[q.NonNullExpression=236]="NonNullExpression",q[q.MetaProperty=237]="MetaProperty",q[q.SyntheticExpression=238]="SyntheticExpression",q[q.SatisfiesExpression=239]="SatisfiesExpression",q[q.TemplateSpan=240]="TemplateSpan",q[q.SemicolonClassElement=241]="SemicolonClassElement",q[q.Block=242]="Block",q[q.EmptyStatement=243]="EmptyStatement",q[q.VariableStatement=244]="VariableStatement",q[q.ExpressionStatement=245]="ExpressionStatement",q[q.IfStatement=246]="IfStatement",q[q.DoStatement=247]="DoStatement",q[q.WhileStatement=248]="WhileStatement",q[q.ForStatement=249]="ForStatement",q[q.ForInStatement=250]="ForInStatement",q[q.ForOfStatement=251]="ForOfStatement",q[q.ContinueStatement=252]="ContinueStatement",q[q.BreakStatement=253]="BreakStatement",q[q.ReturnStatement=254]="ReturnStatement",q[q.WithStatement=255]="WithStatement",q[q.SwitchStatement=256]="SwitchStatement",q[q.LabeledStatement=257]="LabeledStatement",q[q.ThrowStatement=258]="ThrowStatement",q[q.TryStatement=259]="TryStatement",q[q.DebuggerStatement=260]="DebuggerStatement",q[q.VariableDeclaration=261]="VariableDeclaration",q[q.VariableDeclarationList=262]="VariableDeclarationList",q[q.FunctionDeclaration=263]="FunctionDeclaration",q[q.ClassDeclaration=264]="ClassDeclaration",q[q.InterfaceDeclaration=265]="InterfaceDeclaration",q[q.TypeAliasDeclaration=266]="TypeAliasDeclaration",q[q.EnumDeclaration=267]="EnumDeclaration",q[q.ModuleDeclaration=268]="ModuleDeclaration",q[q.ModuleBlock=269]="ModuleBlock",q[q.CaseBlock=270]="CaseBlock",q[q.NamespaceExportDeclaration=271]="NamespaceExportDeclaration",q[q.ImportEqualsDeclaration=272]="ImportEqualsDeclaration",q[q.ImportDeclaration=273]="ImportDeclaration",q[q.ImportClause=274]="ImportClause",q[q.NamespaceImport=275]="NamespaceImport",q[q.NamedImports=276]="NamedImports",q[q.ImportSpecifier=277]="ImportSpecifier",q[q.ExportAssignment=278]="ExportAssignment",q[q.ExportDeclaration=279]="ExportDeclaration",q[q.NamedExports=280]="NamedExports",q[q.NamespaceExport=281]="NamespaceExport",q[q.ExportSpecifier=282]="ExportSpecifier",q[q.MissingDeclaration=283]="MissingDeclaration",q[q.ExternalModuleReference=284]="ExternalModuleReference",q[q.JsxElement=285]="JsxElement",q[q.JsxSelfClosingElement=286]="JsxSelfClosingElement",q[q.JsxOpeningElement=287]="JsxOpeningElement",q[q.JsxClosingElement=288]="JsxClosingElement",q[q.JsxFragment=289]="JsxFragment",q[q.JsxOpeningFragment=290]="JsxOpeningFragment",q[q.JsxClosingFragment=291]="JsxClosingFragment",q[q.JsxAttribute=292]="JsxAttribute",q[q.JsxAttributes=293]="JsxAttributes",q[q.JsxSpreadAttribute=294]="JsxSpreadAttribute",q[q.JsxExpression=295]="JsxExpression",q[q.JsxNamespacedName=296]="JsxNamespacedName",q[q.CaseClause=297]="CaseClause",q[q.DefaultClause=298]="DefaultClause",q[q.HeritageClause=299]="HeritageClause",q[q.CatchClause=300]="CatchClause",q[q.ImportAttributes=301]="ImportAttributes",q[q.ImportAttribute=302]="ImportAttribute",q[q.PropertyAssignment=303]="PropertyAssignment",q[q.ShorthandPropertyAssignment=304]="ShorthandPropertyAssignment",q[q.SpreadAssignment=305]="SpreadAssignment",q[q.EnumMember=306]="EnumMember",q[q.SourceFile=307]="SourceFile",q[q.JSDocTypeExpression=308]="JSDocTypeExpression",q[q.JSDocNameReference=309]="JSDocNameReference",q[q.JSDocAllType=310]="JSDocAllType",q[q.JSDocNullableType=311]="JSDocNullableType",q[q.JSDocNonNullableType=312]="JSDocNonNullableType",q[q.JSDocOptionalType=313]="JSDocOptionalType",q[q.JSDocVariadicType=314]="JSDocVariadicType",q[q.JSDoc=315]="JSDoc",q[q.JSDocText=316]="JSDocText",q[q.JSDocTypeLiteral=317]="JSDocTypeLiteral",q[q.JSDocSignature=318]="JSDocSignature",q[q.JSDocLink=319]="JSDocLink",q[q.JSDocLinkCode=320]="JSDocLinkCode",q[q.JSDocLinkPlain=321]="JSDocLinkPlain",q[q.JSDocUnknownTag=322]="JSDocUnknownTag",q[q.JSDocAugmentsTag=323]="JSDocAugmentsTag",q[q.JSDocImplementsTag=324]="JSDocImplementsTag",q[q.JSDocDeprecatedTag=325]="JSDocDeprecatedTag",q[q.JSDocPublicTag=326]="JSDocPublicTag",q[q.JSDocPrivateTag=327]="JSDocPrivateTag",q[q.JSDocProtectedTag=328]="JSDocProtectedTag",q[q.JSDocReadonlyTag=329]="JSDocReadonlyTag",q[q.JSDocOverrideTag=330]="JSDocOverrideTag",q[q.JSDocCallbackTag=331]="JSDocCallbackTag",q[q.JSDocOverloadTag=332]="JSDocOverloadTag",q[q.JSDocParameterTag=333]="JSDocParameterTag",q[q.JSDocReturnTag=334]="JSDocReturnTag",q[q.JSDocThisTag=335]="JSDocThisTag",q[q.JSDocTypeTag=336]="JSDocTypeTag",q[q.JSDocTemplateTag=337]="JSDocTemplateTag",q[q.JSDocTypedefTag=338]="JSDocTypedefTag",q[q.JSDocSeeTag=339]="JSDocSeeTag",q[q.JSDocPropertyTag=340]="JSDocPropertyTag",q[q.JSDocThrowsTag=341]="JSDocThrowsTag",q[q.JSDocSatisfiesTag=342]="JSDocSatisfiesTag",q[q.JSDocImportTag=343]="JSDocImportTag",q[q.SyntaxList=344]="SyntaxList",q[q.JSTypeAliasDeclaration=345]="JSTypeAliasDeclaration",q[q.JSImportDeclaration=346]="JSImportDeclaration",q[q.NotEmittedStatement=347]="NotEmittedStatement",q[q.PartiallyEmittedExpression=348]="PartiallyEmittedExpression",q[q.SyntheticReferenceExpression=349]="SyntheticReferenceExpression",q[q.NotEmittedTypeElement=350]="NotEmittedTypeElement",q[q.Count=351]="Count",q[q.FirstAssignment=63]="FirstAssignment",q[q.LastAssignment=78]="LastAssignment",q[q.FirstCompoundAssignment=64]="FirstCompoundAssignment",q[q.LastCompoundAssignment=78]="LastCompoundAssignment",q[q.FirstReservedWord=82]="FirstReservedWord",q[q.LastReservedWord=117]="LastReservedWord",q[q.FirstKeyword=82]="FirstKeyword",q[q.LastKeyword=166]="LastKeyword",q[q.FirstFutureReservedWord=118]="FirstFutureReservedWord",q[q.LastFutureReservedWord=126]="LastFutureReservedWord",q[q.FirstTypeNode=183]="FirstTypeNode",q[q.LastTypeNode=206]="LastTypeNode",q[q.FirstPunctuation=18]="FirstPunctuation",q[q.LastPunctuation=78]="LastPunctuation",q[q.FirstToken=0]="FirstToken",q[q.LastToken=166]="LastToken",q[q.FirstLiteralToken=8]="FirstLiteralToken",q[q.LastLiteralToken=14]="LastLiteralToken",q[q.FirstTemplateToken=14]="FirstTemplateToken",q[q.LastTemplateToken=17]="LastTemplateToken",q[q.FirstBinaryOperator=29]="FirstBinaryOperator",q[q.LastBinaryOperator=78]="LastBinaryOperator",q[q.FirstStatement=244]="FirstStatement",q[q.LastStatement=260]="LastStatement",q[q.FirstNode=167]="FirstNode",q[q.FirstJSDocNode=308]="FirstJSDocNode",q[q.LastJSDocNode=343]="LastJSDocNode",q[q.FirstJSDocTagNode=322]="FirstJSDocTagNode",q[q.LastJSDocTagNode=343]="LastJSDocTagNode",q[q.FirstContextualKeyword=127]="FirstContextualKeyword",q[q.LastContextualKeyword=166]="LastContextualKeyword",q[q.LastUnaryOperator=54]="LastUnaryOperator",q[q.FirstTriviaToken=2]="FirstTriviaToken",q[q.LastTriviaToken=6]="LastTriviaToken"})(U||(U={}))});var d6;var r5=u8(()=>{(function(q){q[q.None=0]="None",q[q.PrecedingLineBreak=1]="PrecedingLineBreak",q[q.PrecedingJSDocComment=2]="PrecedingJSDocComment",q[q.Unterminated=4]="Unterminated",q[q.ExtendedUnicodeEscape=8]="ExtendedUnicodeEscape",q[q.Scientific=16]="Scientific",q[q.Octal=32]="Octal",q[q.HexSpecifier=64]="HexSpecifier",q[q.BinarySpecifier=128]="BinarySpecifier",q[q.OctalSpecifier=256]="OctalSpecifier",q[q.ContainsSeparator=512]="ContainsSeparator",q[q.UnicodeEscape=1024]="UnicodeEscape",q[q.ContainsInvalidEscape=2048]="ContainsInvalidEscape",q[q.HexEscape=4096]="HexEscape",q[q.ContainsLeadingZero=8192]="ContainsLeadingZero",q[q.ContainsInvalidSeparator=16384]="ContainsInvalidSeparator",q[q.PrecedingJSDocLeadingAsterisks=32768]="PrecedingJSDocLeadingAsterisks",q[q.SingleQuote=65536]="SingleQuote",q[q.PrecedingJSDocWithDeprecated=131072]="PrecedingJSDocWithDeprecated",q[q.PrecedingJSDocWithSeeOrLink=262144]="PrecedingJSDocWithSeeOrLink",q[q.BinaryOrOctalSpecifier=384]="BinaryOrOctalSpecifier",q[q.WithSpecifier=448]="WithSpecifier",q[q.StringLiteralFlags=72716]="StringLiteralFlags",q[q.NumericLiteralFlags=25584]="NumericLiteralFlags",q[q.TemplateLiteralLikeFlags=7180]="TemplateLiteralLikeFlags",q[q.RegularExpressionLiteralFlags=4]="RegularExpressionLiteralFlags",q[q.IsInvalid=26656]="IsInvalid"})(d6||(d6={}))});var Y_=u8(()=>{I1();r5()});var J_=u8(()=>{I1();I1();r5();Y_()});var D1;var H_=u8(()=>{(function(q){q[q.Parentheses=1]="Parentheses",q[q.TypeAssertions=2]="TypeAssertions",q[q.NonNullAssertions=4]="NonNullAssertions",q[q.PartiallyEmittedExpressions=8]="PartiallyEmittedExpressions",q[q.ExpressionsWithTypeArguments=16]="ExpressionsWithTypeArguments",q[q.Satisfies=32]="Satisfies",q[q.ExcludeJSDocTypeAssertion=64]="ExcludeJSDocTypeAssertion",q[q.Assertions=38]="Assertions",q[q.All=63]="All"})(D1||(D1={}))});function x8(q){return q.kind===U.Identifier}function X_(q){return q.kind===U.CaseBlock}function G_(q){return q.kind===U.CatchClause}function hq(q){return q.kind===U.Block}function V_(q){return q.kind===U.VariableDeclaration}function W_(q){return q.kind===U.VariableDeclarationList}function lX(q){return q.kind===U.ExpressionWithTypeArguments}function yq(q){return q.kind===U.ImportAttributes}function xX(q){return q.kind===U.TemplateHead}function mX(q){return q.kind===U.JsxAttributes}function $_(q){return q.kind===U.JsxOpeningElement}function U_(q){return q.kind===U.JsxOpeningFragment}function R_(q){return q.kind===U.JsxClosingFragment}function z_(q){return q.kind===U.JsxClosingElement}function pX(q){return q.kind===U.ImportClause}function cX(q){return q.kind===U.TypeParameter}function B_(q){return q.kind===U.Identifier||q.kind===U.StringLiteral}function _q(q){return q.kind===U.Identifier||q.kind===U.StringLiteral}function O9(q){let Z=q.kind;return Z===U.Identifier||Z===U.StringLiteral||Z===U.NoSubstitutionTemplateLiteral||Z===U.NumericLiteral||Z===U.ComputedPropertyName||Z===U.PrivateIdentifier||Z===U.BigIntLiteral}function M_(q){return q.kind===U.ModuleBlock||q.kind===U.ModuleDeclaration}function rX(q){return q.kind===U.Identifier||q.kind===U.ModuleDeclaration}function P_(q){return q.kind===U.Identifier||q.kind===U.QualifiedName||q.kind===U.ExternalModuleReference}function L_(q){return q.kind===U.NamespaceImport||q.kind===U.NamedImports}function O_(q){return q.kind===U.NamespaceExport||q.kind===U.NamedExports}function w_(q){return q.kind===U.Identifier||q.kind===U.PrivateIdentifier}function w9(q){return q.kind===U.Identifier||q.kind===U.QualifiedName}function QQ(q){return q.kind===U.Identifier||q.kind===U.ObjectBindingPattern||q.kind===U.ArrayBindingPattern}function A_(q){return q.kind===U.Identifier||q.kind===U.JsxNamespacedName}function j_(q){let Z=q.kind;return Z===U.StringLiteral||Z===U.JsxExpression||Z===U.JsxElement||Z===U.JsxSelfClosingElement||Z===U.JsxFragment}function YQ(q){let Z=q.kind;return Z===U.Identifier||Z===U.NullKeyword||Z===U.TrueKeyword||Z===U.FalseKeyword||Z===U.ThisKeyword||Z===U.SuperKeyword||Z===U.ImportKeyword||Z===U.PropertyAccessExpression||Z===U.JsxNamespacedName}function iX(q){return q.kind===U.TemplateMiddle||q.kind===U.TemplateTail}function I_(q){return q.kind===U.TemplateExpression||q.kind===U.NoSubstitutionTemplateLiteral}function D_(q){return q.kind===U.Identifier||q.kind===U.ThisType}function C_(q){return q.kind===U.Identifier||q.kind===U.StringLiteral}function u7(q){return q.kind===U.Block}function bJ8(q){return q===U.EqualsToken||tJ8(q)}function hJ8(q){return eJ8(q)||q===U.CommaToken}function yJ8(q){return q===U.AsteriskAsteriskToken}function _J8(q){return q===U.AsteriskToken||q===U.SlashToken||q===U.PercentToken}function gJ8(q){return yJ8(q)||_J8(q)}function lJ8(q){return q===U.PlusToken||q===U.MinusToken}function xJ8(q){return gJ8(q)||lJ8(q)}function mJ8(q){return q===U.LessThanLessThanToken||q===U.GreaterThanGreaterThanToken||q===U.GreaterThanGreaterThanGreaterThanToken}function pJ8(q){return xJ8(q)||mJ8(q)}function cJ8(q){return q===U.LessThanToken||q===U.LessThanEqualsToken||q===U.GreaterThanToken||q===U.GreaterThanEqualsToken||q===U.InstanceOfKeyword||q===U.InKeyword}function rJ8(q){return pJ8(q)||cJ8(q)}function iJ8(q){return q===U.EqualsEqualsToken||q===U.EqualsEqualsEqualsToken||q===U.ExclamationEqualsEqualsToken||q===U.ExclamationEqualsToken}function dJ8(q){return rJ8(q)||iJ8(q)}function sJ8(q){return q===U.AmpersandToken||q===U.BarToken||q===U.CaretToken}function aJ8(q){return dJ8(q)||sJ8(q)}function oJ8(q){return q===U.AmpersandAmpersandToken||q===U.BarBarToken}function nJ8(q){return aJ8(q)||oJ8(q)}function tJ8(q){return q===U.PlusEqualsToken||q===U.MinusEqualsToken||q===U.AsteriskAsteriskEqualsToken||q===U.AsteriskEqualsToken||q===U.SlashEqualsToken||q===U.PercentEqualsToken||q===U.AmpersandEqualsToken||q===U.BarEqualsToken||q===U.CaretEqualsToken||q===U.LessThanLessThanEqualsToken||q===U.GreaterThanGreaterThanGreaterThanEqualsToken||q===U.GreaterThanGreaterThanEqualsToken||q===U.BarBarEqualsToken||q===U.AmpersandAmpersandEqualsToken||q===U.QuestionQuestionEqualsToken}function eJ8(q){return q===U.QuestionQuestionToken||nJ8(q)||bJ8(q)}function E_(q){return q.kind===U.EndOfFile}function gq(q){return q.kind===U.DotDotDotToken}function JQ(q){return q.kind===U.QuestionToken}function F_(q){return q.kind===U.ExclamationToken}function T_(q){return q.kind===U.ColonToken}function f_(q){return q.kind===U.EqualsToken}function lq(q){return q.kind===U.AsteriskToken}function K_(q){return q.kind===U.EqualsGreaterThanToken}function xq(q){return q.kind===U.QuestionDotToken}function v_(q){return q.kind===U.AssertsKeyword}function dX(q){return q.kind===U.AwaitKeyword}function N_(q){return hJ8(q.kind)}var sX=u8(()=>{I1()});function T8(q){return qH8(q.kind)}function qH8(q){return q>=U.FirstTypeNode&&q<=U.LastTypeNode||q===U.AnyKeyword||q===U.UnknownKeyword||q===U.NumberKeyword||q===U.BigIntKeyword||q===U.ObjectKeyword||q===U.BooleanKeyword||q===U.StringKeyword||q===U.SymbolKeyword||q===U.VoidKeyword||q===U.UndefinedKeyword||q===U.NeverKeyword||q===U.IntrinsicKeyword||q===U.ExpressionWithTypeArguments||q===U.JSDocAllType||q===U.JSDocNullableType||q===U.JSDocNonNullableType||q===U.JSDocOptionalType||q===U.JSDocVariadicType||q===U.JSDocTypeExpression||q===U.JSDocTypeLiteral||q===U.JSDocSignature}function m9(q){let Z=q.kind;return Z===U.VariableStatement||Z===U.EmptyStatement||Z===U.ExpressionStatement||Z===U.IfStatement||Z===U.DoStatement||Z===U.WhileStatement||Z===U.ForStatement||Z===U.ForInStatement||Z===U.ForOfStatement||Z===U.ContinueStatement||Z===U.BreakStatement||Z===U.ReturnStatement||Z===U.WithStatement||Z===U.SwitchStatement||Z===U.LabeledStatement||Z===U.ThrowStatement||Z===U.TryStatement||Z===U.DebuggerStatement||Z===U.InterfaceDeclaration||Z===U.TypeAliasDeclaration||Z===U.EnumDeclaration||Z===U.ModuleDeclaration||Z===U.ImportDeclaration||Z===U.ImportEqualsDeclaration||Z===U.ExportDeclaration||Z===U.ExportAssignment||Z===U.NamespaceExportDeclaration||Z===U.FunctionDeclaration||Z===U.ClassDeclaration||Z===U.MissingDeclaration||Z===U.NotEmittedStatement||Z===U.Block}function O8(q){let Z=q.kind;return Z===U.ConditionalExpression||Z===U.YieldExpression||Z===U.ArrowFunction||Z===U.BinaryExpression||Z===U.SpreadElement||Z===U.AsExpression||Z===U.OmittedExpression||Z===U.SatisfiesExpression||Z===U.PrefixUnaryExpression||Z===U.PostfixUnaryExpression||Z===U.DeleteExpression||Z===U.TypeOfExpression||Z===U.VoidExpression||Z===U.AwaitExpression||Z===U.TypeAssertionExpression||Z===U.CallExpression||Z===U.NewExpression||Z===U.TaggedTemplateExpression||Z===U.NonNullExpression||Z===U.MetaProperty||Z===U.JsxExpression||Z===U.PropertyAccessExpression||Z===U.ElementAccessExpression||Z===U.FunctionExpression||Z===U.ClassExpression||Z===U.ParenthesizedExpression||Z===U.ArrayLiteralExpression||Z===U.ObjectLiteralExpression||Z===U.TemplateExpression||Z===U.Identifier||Z===U.PrivateIdentifier||Z===U.NumericLiteral||Z===U.BigIntLiteral||Z===U.StringLiteral||Z===U.RegularExpressionLiteral||Z===U.NoSubstitutionTemplateLiteral||Z===U.JsxElement||Z===U.JsxSelfClosingElement||Z===U.JsxFragment||Z===U.NullKeyword||Z===U.TrueKeyword||Z===U.FalseKeyword||Z===U.ThisKeyword||Z===U.SuperKeyword||Z===U.ImportKeyword||Z===U.ExpressionWithTypeArguments}function k_(q){return QH8(ZH8(q).kind)}function ZH8(q){return JH8(q,D1.PartiallyEmittedExpressions)}function QH8(q){switch(q){case U.PropertyAccessExpression:case U.ElementAccessExpression:case U.NewExpression:case U.CallExpression:case U.JsxElement:case U.JsxSelfClosingElement:case U.JsxFragment:case U.TaggedTemplateExpression:case U.ArrayLiteralExpression:case U.ParenthesizedExpression:case U.ObjectLiteralExpression:case U.ClassExpression:case U.FunctionExpression:case U.Identifier:case U.PrivateIdentifier:case U.RegularExpressionLiteral:case U.NumericLiteral:case U.BigIntLiteral:case U.StringLiteral:case U.NoSubstitutionTemplateLiteral:case U.TemplateExpression:case U.FalseKeyword:case U.NullKeyword:case U.ThisKeyword:case U.TrueKeyword:case U.SuperKeyword:case U.NonNullExpression:case U.ExpressionWithTypeArguments:case U.MetaProperty:case U.ImportKeyword:case U.MissingDeclaration:return!0;default:return!1}}function YH8(q,Z=D1.All){switch(q.kind){case U.ParenthesizedExpression:if(Z&D1.ExcludeJSDocTypeAssertion&&HH8(q))return!1;return(Z&D1.Parentheses)!==0;case U.TypeAssertionExpression:case U.AsExpression:return(Z&D1.TypeAssertions)!==0;case U.SatisfiesExpression:return(Z&(D1.ExpressionsWithTypeArguments|D1.Satisfies))!==0;case U.ExpressionWithTypeArguments:return(Z&D1.ExpressionsWithTypeArguments)!==0;case U.NonNullExpression:return(Z&D1.NonNullAssertions)!==0;case U.PartiallyEmittedExpression:return(Z&D1.PartiallyEmittedExpressions)!==0}return!1}function JH8(q,Z=D1.All){while(YH8(q,Z))q=q.expression;return q}function HH8(q){let Z=q.getSourceFile();if(Z.scriptKind!==c5.JS&&Z.scriptKind!==c5.JSX)return!1;let Q=q.expression;if(Q.kind!==U.AsExpression)return!1;let Y=Q;return!!Y.type&&(Y.type.flags&R6.Reparsed)!==0}function S_(q){return q.kind===U.Block||O8(q)}function HQ(q){return q.kind===U.VariableDeclarationList||O8(q)}function b7(q){return q.kind===U.QuestionToken||q.kind===U.ExclamationToken}function u_(q){return q.kind===U.ReadonlyKeyword||q.kind===U.PlusToken||q.kind===U.MinusToken}function b_(q){return q.kind===U.QuestionToken||q.kind===U.PlusToken||q.kind===U.MinusToken}var mq=u8(()=>{bq();H_();_X();I1();sX();sX()});function S(q,Z,Q){if(q===void 0)return;let Y=Z(q);if(Y!==void 0&&Q!==void 0&&!Q(Y))throw Error("Visited node failed test assertion.");return Y}function n(q,Z){if(q===void 0)return;let Q=XQ(q,Z);if(Q===q)return q;return s(Q,q.pos,q.end)}function XQ(q,Z){if(q===void 0)return;let Q;for(let Y=0;Y<q.length;Y++){let J=q[Y],H=Z(J);if(Q){if(H)Q.push(H)}else if(H!==J){Q=[];for(let X=0;X<Y;X++)Q.push(q[X]);if(H)Q.push(H)}}return Q??q}var Qm8;var aX=u8(()=>{I1();cq();mq();pq();Qm8={[U.QualifiedName]:(q,Z)=>{let Q=S(q.left,Z,w9),Y=S(q.right,Z,x8);return h_(q,Q,Y)},[U.ComputedPropertyName]:(q,Z)=>{let Q=S(q.expression,Z,O8);return y_(q,Q)},[U.Decorator]:(q,Z)=>{let Q=S(q.expression,Z,k_);return __(q,Q)},[U.IfStatement]:(q,Z)=>{let Q=S(q.expression,Z,O8),Y=S(q.thenStatement,Z,m9),J=S(q.elseStatement,Z,m9);return g_(q,Q,Y,J)},[U.DoStatement]:(q,Z)=>{let Q=S(q.statement,Z,m9),Y=S(q.expression,Z,O8);return l_(q,Q,Y)},[U.WhileStatement]:(q,Z)=>{let Q=S(q.expression,Z,O8),Y=S(q.statement,Z,m9);return x_(q,Q,Y)},[U.ForStatement]:(q,Z)=>{let Q=S(q.initializer,Z,HQ),Y=S(q.condition,Z,O8),J=S(q.incrementor,Z,O8),H=S(q.statement,Z,m9);return m_(q,Q,Y,J,H)},[U.BreakStatement]:(q,Z)=>{let Q=S(q.label,Z,x8);return p_(q,Q)},[U.ContinueStatement]:(q,Z)=>{let Q=S(q.label,Z,x8);return c_(q,Q)},[U.ReturnStatement]:(q,Z)=>{let Q=S(q.expression,Z,O8);return r_(q,Q)},[U.WithStatement]:(q,Z)=>{let Q=S(q.expression,Z,O8),Y=S(q.statement,Z,m9);return i_(q,Q,Y)},[U.SwitchStatement]:(q,Z)=>{let Q=S(q.expression,Z,O8),Y=S(q.caseBlock,Z,X_);return d_(q,Q,Y)},[U.CaseBlock]:(q,Z)=>{let Q=n(q.clauses,Z);return s_(q,Q)},[U.ThrowStatement]:(q,Z)=>{let Q=S(q.expression,Z,O8);return a_(q,Q)},[U.TryStatement]:(q,Z)=>{let Q=S(q.tryBlock,Z,hq),Y=S(q.catchClause,Z,G_),J=S(q.finallyBlock,Z,hq);return o_(q,Q,Y,J)},[U.CatchClause]:(q,Z)=>{let Q=S(q.variableDeclaration,Z,V_),Y=S(q.block,Z,hq);return n_(q,Q,Y)},[U.LabeledStatement]:(q,Z)=>{let Q=S(q.label,Z,x8),Y=S(q.statement,Z,m9);return t_(q,Q,Y)},[U.ExpressionStatement]:(q,Z)=>{let Q=S(q.expression,Z,O8);return e_(q,Q)},[U.Block]:(q,Z)=>{let Q=n(q.statements,Z);return qg(q,Q)},[U.VariableStatement]:(q,Z)=>{let Q=n(q.modifiers,Z),Y=S(q.declarationList,Z,W_);return Zg(q,Q,Y)},[U.VariableDeclaration]:(q,Z)=>{let Q=S(q.name,Z,QQ),Y=S(q.exclamationToken,Z,F_),J=S(q.type,Z,T8),H=S(q.initializer,Z,O8);return Qg(q,Q,Y,J,H)},[U.VariableDeclarationList]:(q,Z)=>{let Q=n(q.declarations,Z);return Yg(q,Q)},[U.Parameter]:(q,Z)=>{let Q=n(q.modifiers,Z),Y=S(q.dotDotDotToken,Z,gq),J=S(q.name,Z,QQ),H=S(q.questionToken,Z,JQ),X=S(q.type,Z,T8),G=S(q.initializer,Z,O8);return Jg(q,Q,Y,J,H,X,G)},[U.BindingElement]:(q,Z)=>{let Q=S(q.dotDotDotToken,Z,gq),Y=S(q.propertyName,Z,O9),J=S(q.name,Z,QQ),H=S(q.initializer,Z,O8);return Hg(q,Q,Y,J,H)},[U.MissingDeclaration]:(q,Z)=>{let Q=n(q.modifiers,Z);return Xg(q,Q)},[U.FunctionDeclaration]:(q,Z)=>{let Q=n(q.modifiers,Z),Y=S(q.asteriskToken,Z,lq),J=S(q.name,Z,x8),H=n(q.typeParameters,Z),X=n(q.parameters,Z),G=S(q.type,Z,T8),W=S(q.body,Z,u7);return Gg(q,Q,Y,J,H,X,G,W)},[U.ClassDeclaration]:(q,Z)=>{let Q=n(q.modifiers,Z),Y=S(q.name,Z,x8),J=n(q.typeParameters,Z),H=n(q.heritageClauses,Z),X=n(q.members,Z);return Vg(q,Q,Y,J,H,X)},[U.ClassExpression]:(q,Z)=>{let Q=n(q.modifiers,Z),Y=S(q.name,Z,x8),J=n(q.typeParameters,Z),H=n(q.heritageClauses,Z),X=n(q.members,Z);return Wg(q,Q,Y,J,H,X)},[U.HeritageClause]:(q,Z)=>{let Q=n(q.types,Z);return $g(q,Q)},[U.InterfaceDeclaration]:(q,Z)=>{let Q=n(q.modifiers,Z),Y=S(q.name,Z,x8),J=n(q.typeParameters,Z),H=n(q.heritageClauses,Z),X=n(q.members,Z);return Ug(q,Q,Y,J,H,X)},[U.TypeAliasDeclaration]:(q,Z)=>{let Q=n(q.modifiers,Z),Y=S(q.name,Z,x8),J=n(q.typeParameters,Z),H=S(q.type,Z,T8);return Rg(q,Q,Y,J,H)},[U.EnumMember]:(q,Z)=>{let Q=S(q.name,Z,O9),Y=S(q.initializer,Z,O8);return zg(q,Q,Y)},[U.EnumDeclaration]:(q,Z)=>{let Q=n(q.modifiers,Z),Y=S(q.name,Z,x8),J=n(q.members,Z);return Bg(q,Q,Y,J)},[U.ModuleBlock]:(q,Z)=>{let Q=n(q.statements,Z);return Mg(q,Q)},[U.ImportDeclaration]:(q,Z)=>{let Q=n(q.modifiers,Z),Y=S(q.importClause,Z,pX),J=S(q.moduleSpecifier,Z,O8),H=S(q.attributes,Z,yq);return Pg(q,Q,Y,J,H)},[U.ExternalModuleReference]:(q,Z)=>{let Q=S(q.expression,Z,O8);return Lg(q,Q)},[U.NamespaceImport]:(q,Z)=>{let Q=S(q.name,Z,x8);return Og(q,Q)},[U.NamedImports]:(q,Z)=>{let Q=n(q.elements,Z);return wg(q,Q)},[U.ExportAssignment]:(q,Z)=>{let Q=n(q.modifiers,Z),Y=S(q.type,Z,T8),J=S(q.expression,Z,O8);return Ag(q,Q,Y,J)},[U.NamespaceExportDeclaration]:(q,Z)=>{let Q=n(q.modifiers,Z),Y=S(q.name,Z,x8);return jg(q,Q,Y)},[U.NamespaceExport]:(q,Z)=>{let Q=S(q.name,Z,_q);return Ig(q,Q)},[U.NamedExports]:(q,Z)=>{let Q=n(q.elements,Z);return Dg(q,Q)},[U.ExportSpecifier]:(q,Z)=>{let Q=S(q.propertyName,Z,_q),Y=S(q.name,Z,_q);return Cg(q,Q,Y)},[U.CallSignature]:(q,Z)=>{let Q=n(q.typeParameters,Z),Y=n(q.parameters,Z),J=S(q.type,Z,T8);return Eg(q,Q,Y,J)},[U.ConstructSignature]:(q,Z)=>{let Q=n(q.typeParameters,Z),Y=n(q.parameters,Z),J=S(q.type,Z,T8);return Fg(q,Q,Y,J)},[U.Constructor]:(q,Z)=>{let Q=n(q.modifiers,Z),Y=n(q.typeParameters,Z),J=n(q.parameters,Z),H=S(q.type,Z,T8),X=S(q.body,Z,u7);return Tg(q,Q,Y,J,H,X)},[U.GetAccessor]:(q,Z)=>{let Q=n(q.modifiers,Z),Y=S(q.name,Z,O9),J=n(q.typeParameters,Z),H=n(q.parameters,Z),X=S(q.type,Z,T8),G=S(q.body,Z,u7);return fg(q,Q,Y,J,H,X,G)},[U.SetAccessor]:(q,Z)=>{let Q=n(q.modifiers,Z),Y=S(q.name,Z,O9),J=n(q.typeParameters,Z),H=n(q.parameters,Z),X=S(q.type,Z,T8),G=S(q.body,Z,u7);return Kg(q,Q,Y,J,H,X,G)},[U.IndexSignature]:(q,Z)=>{let Q=n(q.modifiers,Z),Y=n(q.parameters,Z),J=S(q.type,Z,T8);return vg(q,Q,Y,J)},[U.MethodSignature]:(q,Z)=>{let Q=n(q.modifiers,Z),Y=S(q.name,Z,O9),J=S(q.postfixToken,Z,b7),H=n(q.typeParameters,Z),X=n(q.parameters,Z),G=S(q.type,Z,T8);return Ng(q,Q,Y,J,H,X,G)},[U.MethodDeclaration]:(q,Z)=>{let Q=n(q.modifiers,Z),Y=S(q.asteriskToken,Z,lq),J=S(q.name,Z,O9),H=S(q.postfixToken,Z,b7),X=n(q.typeParameters,Z),G=n(q.parameters,Z),W=S(q.type,Z,T8),R=S(q.body,Z,u7);return kg(q,Q,Y,J,H,X,G,W,R)},[U.PropertySignature]:(q,Z)=>{let Q=n(q.modifiers,Z),Y=S(q.name,Z,O9),J=S(q.postfixToken,Z,b7),H=S(q.type,Z,T8),X=S(q.initializer,Z,O8);return Sg(q,Q,Y,J,H,X)},[U.PropertyDeclaration]:(q,Z)=>{let Q=n(q.modifiers,Z),Y=S(q.name,Z,O9),J=S(q.postfixToken,Z,b7),H=S(q.type,Z,T8),X=S(q.initializer,Z,O8);return ug(q,Q,Y,J,H,X)},[U.ClassStaticBlockDeclaration]:(q,Z)=>{let Q=n(q.modifiers,Z),Y=S(q.body,Z,hq);return bg(q,Q,Y)},[U.BinaryExpression]:(q,Z)=>{let Q=n(q.modifiers,Z),Y=S(q.left,Z,O8),J=S(q.type,Z,T8),H=S(q.operatorToken,Z,N_),X=S(q.right,Z,O8);return hg(q,Q,Y,J,H,X)},[U.PrefixUnaryExpression]:(q,Z)=>{let Q=S(q.operand,Z,O8);return yg(q,Q)},[U.PostfixUnaryExpression]:(q,Z)=>{let Q=S(q.operand,Z,O8);return _g(q,Q)},[U.YieldExpression]:(q,Z)=>{let Q=S(q.asteriskToken,Z,lq),Y=S(q.expression,Z,O8);return gg(q,Q,Y)},[U.ArrowFunction]:(q,Z)=>{let Q=n(q.modifiers,Z),Y=n(q.typeParameters,Z),J=n(q.parameters,Z),H=S(q.type,Z,T8),X=S(q.equalsGreaterThanToken,Z,K_),G=S(q.body,Z,S_);return lg(q,Q,Y,J,H,X,G)},[U.FunctionExpression]:(q,Z)=>{let Q=n(q.modifiers,Z),Y=S(q.asteriskToken,Z,lq),J=S(q.name,Z,x8),H=n(q.typeParameters,Z),X=n(q.parameters,Z),G=S(q.type,Z,T8),W=S(q.body,Z,u7);return xg(q,Q,Y,J,H,X,G,W)},[U.AsExpression]:(q,Z)=>{let Q=S(q.expression,Z,O8),Y=S(q.type,Z,T8);return mg(q,Q,Y)},[U.SatisfiesExpression]:(q,Z)=>{let Q=S(q.expression,Z,O8),Y=S(q.type,Z,T8);return pg(q,Q,Y)},[U.ConditionalExpression]:(q,Z)=>{let Q=S(q.condition,Z,O8),Y=S(q.questionToken,Z,JQ),J=S(q.whenTrue,Z,O8),H=S(q.colonToken,Z,T_),X=S(q.whenFalse,Z,O8);return cg(q,Q,Y,J,H,X)},[U.PropertyAccessExpression]:(q,Z)=>{let Q=S(q.expression,Z,O8),Y=S(q.questionDotToken,Z,xq),J=S(q.name,Z,w_);return rg(q,Q,Y,J)},[U.ElementAccessExpression]:(q,Z)=>{let Q=S(q.expression,Z,O8),Y=S(q.questionDotToken,Z,xq),J=S(q.argumentExpression,Z,O8);return ig(q,Q,Y,J)},[U.CallExpression]:(q,Z)=>{let Q=S(q.expression,Z,O8),Y=S(q.questionDotToken,Z,xq),J=n(q.typeArguments,Z),H=n(q.arguments,Z);return dg(q,Q,Y,J,H)},[U.NewExpression]:(q,Z)=>{let Q=S(q.expression,Z,O8),Y=n(q.typeArguments,Z),J=n(q.arguments,Z);return sg(q,Q,Y,J)},[U.MetaProperty]:(q,Z)=>{let Q=S(q.name,Z,x8);return ag(q,Q)},[U.NonNullExpression]:(q,Z)=>{let Q=S(q.expression,Z,O8);return og(q,Q)},[U.SpreadElement]:(q,Z)=>{let Q=S(q.expression,Z,O8);return ng(q,Q)},[U.TemplateExpression]:(q,Z)=>{let Q=S(q.head,Z,xX),Y=n(q.templateSpans,Z);return tg(q,Q,Y)},[U.TemplateSpan]:(q,Z)=>{let Q=S(q.expression,Z,O8),Y=S(q.literal,Z,iX);return eg(q,Q,Y)},[U.TaggedTemplateExpression]:(q,Z)=>{let Q=S(q.tag,Z,O8),Y=S(q.questionDotToken,Z,xq),J=n(q.typeArguments,Z),H=S(q.template,Z,I_);return ql(q,Q,Y,J,H)},[U.ParenthesizedExpression]:(q,Z)=>{let Q=S(q.expression,Z,O8);return Zl(q,Q)},[U.ArrayLiteralExpression]:(q,Z)=>{let Q=n(q.elements,Z);return Ql(q,Q)},[U.ObjectLiteralExpression]:(q,Z)=>{let Q=n(q.properties,Z);return Yl(q,Q)},[U.SpreadAssignment]:(q,Z)=>{let Q=S(q.expression,Z,O8);return Jl(q,Q)},[U.PropertyAssignment]:(q,Z)=>{let Q=n(q.modifiers,Z),Y=S(q.name,Z,O9),J=S(q.postfixToken,Z,b7),H=S(q.type,Z,T8),X=S(q.initializer,Z,O8);return Hl(q,Q,Y,J,H,X)},[U.ShorthandPropertyAssignment]:(q,Z)=>{let Q=n(q.modifiers,Z),Y=S(q.name,Z,O9),J=S(q.postfixToken,Z,b7),H=S(q.type,Z,T8),X=S(q.equalsToken,Z,f_),G=S(q.objectAssignmentInitializer,Z,O8);return Xl(q,Q,Y,J,H,X,G)},[U.DeleteExpression]:(q,Z)=>{let Q=S(q.expression,Z,O8);return Gl(q,Q)},[U.TypeOfExpression]:(q,Z)=>{let Q=S(q.expression,Z,O8);return Vl(q,Q)},[U.VoidExpression]:(q,Z)=>{let Q=S(q.expression,Z,O8);return Wl(q,Q)},[U.AwaitExpression]:(q,Z)=>{let Q=S(q.expression,Z,O8);return $l(q,Q)},[U.TypeAssertionExpression]:(q,Z)=>{let Q=S(q.type,Z,T8),Y=S(q.expression,Z,O8);return Ul(q,Q,Y)},[U.UnionType]:(q,Z)=>{let Q=n(q.types,Z);return Rl(q,Q)},[U.IntersectionType]:(q,Z)=>{let Q=n(q.types,Z);return zl(q,Q)},[U.ConditionalType]:(q,Z)=>{let Q=S(q.checkType,Z,T8),Y=S(q.extendsType,Z,T8),J=S(q.trueType,Z,T8),H=S(q.falseType,Z,T8);return Bl(q,Q,Y,J,H)},[U.TypeOperator]:(q,Z)=>{let Q=S(q.type,Z,T8);return Ml(q,Q)},[U.InferType]:(q,Z)=>{let Q=S(q.typeParameter,Z,cX);return Pl(q,Q)},[U.ArrayType]:(q,Z)=>{let Q=S(q.elementType,Z,T8);return Ll(q,Q)},[U.IndexedAccessType]:(q,Z)=>{let Q=S(q.objectType,Z,T8),Y=S(q.indexType,Z,T8);return Ol(q,Q,Y)},[U.TypeReference]:(q,Z)=>{let Q=S(q.typeName,Z,w9),Y=n(q.typeArguments,Z);return wl(q,Q,Y)},[U.ExpressionWithTypeArguments]:(q,Z)=>{let Q=S(q.expression,Z,O8),Y=n(q.typeArguments,Z);return Al(q,Q,Y)},[U.LiteralType]:(q,Z)=>{let Q=S(q.literal,Z);return jl(q,Q)},[U.TypePredicate]:(q,Z)=>{let Q=S(q.assertsModifier,Z,v_),Y=S(q.parameterName,Z,D_),J=S(q.type,Z,T8);return Il(q,Q,Y,J)},[U.ImportAttribute]:(q,Z)=>{let Q=S(q.name,Z,C_),Y=S(q.value,Z,O8);return Dl(q,Q,Y)},[U.ImportAttributes]:(q,Z)=>{let Q=n(q.attributes,Z);return Cl(q,Q)},[U.TypeQuery]:(q,Z)=>{let Q=S(q.exprName,Z,w9),Y=n(q.typeArguments,Z);return El(q,Q,Y)},[U.MappedType]:(q,Z)=>{let Q=S(q.readonlyToken,Z,u_),Y=S(q.typeParameter,Z,cX),J=S(q.nameType,Z,T8),H=S(q.questionToken,Z,b_),X=S(q.type,Z,T8),G=n(q.members,Z);return Fl(q,Q,Y,J,H,X,G)},[U.TypeLiteral]:(q,Z)=>{let Q=n(q.members,Z);return Tl(q,Q)},[U.TupleType]:(q,Z)=>{let Q=n(q.elements,Z);return fl(q,Q)},[U.NamedTupleMember]:(q,Z)=>{let Q=S(q.dotDotDotToken,Z,gq),Y=S(q.name,Z,x8),J=S(q.questionToken,Z,JQ),H=S(q.type,Z,T8);return Kl(q,Q,Y,J,H)},[U.OptionalType]:(q,Z)=>{let Q=S(q.type,Z,T8);return vl(q,Q)},[U.RestType]:(q,Z)=>{let Q=S(q.type,Z,T8);return Nl(q,Q)},[U.ParenthesizedType]:(q,Z)=>{let Q=S(q.type,Z,T8);return kl(q,Q)},[U.FunctionType]:(q,Z)=>{let Q=n(q.typeParameters,Z),Y=n(q.parameters,Z),J=S(q.type,Z,T8);return Sl(q,Q,Y,J)},[U.ConstructorType]:(q,Z)=>{let Q=n(q.modifiers,Z),Y=n(q.typeParameters,Z),J=n(q.parameters,Z),H=S(q.type,Z,T8);return ul(q,Q,Y,J,H)},[U.TemplateLiteralType]:(q,Z)=>{let Q=S(q.head,Z,xX),Y=n(q.templateSpans,Z);return bl(q,Q,Y)},[U.TemplateLiteralTypeSpan]:(q,Z)=>{let Q=S(q.type,Z,T8),Y=S(q.literal,Z,iX);return hl(q,Q,Y)},[U.SyntheticExpression]:(q,Z)=>{let Q=S(q.tupleNameSource,Z);return yl(q,Q)},[U.PartiallyEmittedExpression]:(q,Z)=>{let Q=S(q.expression,Z,O8);return _l(q,Q)},[U.JsxElement]:(q,Z)=>{let Q=S(q.openingElement,Z,$_),Y=n(q.children,Z),J=S(q.closingElement,Z,z_);return gl(q,Q,Y,J)},[U.JsxAttributes]:(q,Z)=>{let Q=n(q.properties,Z);return ll(q,Q)},[U.JsxNamespacedName]:(q,Z)=>{let Q=S(q.namespace,Z,x8),Y=S(q.name,Z,x8);return xl(q,Q,Y)},[U.JsxOpeningElement]:(q,Z)=>{let Q=S(q.tagName,Z,YQ),Y=n(q.typeArguments,Z),J=S(q.attributes,Z,mX);return ml(q,Q,Y,J)},[U.JsxSelfClosingElement]:(q,Z)=>{let Q=S(q.tagName,Z,YQ),Y=n(q.typeArguments,Z),J=S(q.attributes,Z,mX);return pl(q,Q,Y,J)},[U.JsxFragment]:(q,Z)=>{let Q=S(q.openingFragment,Z,U_),Y=n(q.children,Z),J=S(q.closingFragment,Z,R_);return cl(q,Q,Y,J)},[U.JsxAttribute]:(q,Z)=>{let Q=S(q.name,Z,A_),Y=S(q.initializer,Z,j_);return rl(q,Q,Y)},[U.JsxSpreadAttribute]:(q,Z)=>{let Q=S(q.expression,Z,O8);return il(q,Q)},[U.JsxClosingElement]:(q,Z)=>{let Q=S(q.tagName,Z,YQ);return dl(q,Q)},[U.JsxExpression]:(q,Z)=>{let Q=S(q.dotDotDotToken,Z,gq),Y=S(q.expression,Z,O8);return sl(q,Q,Y)},[U.SyntaxList]:(q,Z)=>{let Q=XQ(q.children,Z);return al(q,Q)},[U.JSDoc]:(q,Z)=>{let Q=n(q.comment,Z),Y=n(q.tags,Z);return ol(q,Q,Y)},[U.JSDocTypeExpression]:(q,Z)=>{let Q=S(q.type,Z,T8);return nl(q,Q)},[U.JSDocNonNullableType]:(q,Z)=>{let Q=S(q.type,Z,T8);return tl(q,Q)},[U.JSDocNullableType]:(q,Z)=>{let Q=S(q.type,Z,T8);return el(q,Q)},[U.JSDocVariadicType]:(q,Z)=>{let Q=S(q.type,Z,T8);return qx(q,Q)},[U.JSDocOptionalType]:(q,Z)=>{let Q=S(q.type,Z,T8);return Zx(q,Q)},[U.JSDocTypeTag]:(q,Z)=>{let Q=S(q.tagName,Z,x8),Y=S(q.typeExpression,Z),J=n(q.comment,Z);return Qx(q,Q,Y,J)},[U.JSDocUnknownTag]:(q,Z)=>{let Q=S(q.tagName,Z,x8),Y=n(q.comment,Z);return Yx(q,Q,Y)},[U.JSDocTemplateTag]:(q,Z)=>{let Q=S(q.tagName,Z,x8),Y=S(q.constraint,Z),J=n(q.typeParameters,Z),H=n(q.comment,Z);return Jx(q,Q,Y,J,H)},[U.JSDocReturnTag]:(q,Z)=>{let Q=S(q.tagName,Z,x8),Y=S(q.typeExpression,Z,T8),J=n(q.comment,Z);return Hx(q,Q,Y,J)},[U.JSDocPublicTag]:(q,Z)=>{let Q=S(q.tagName,Z,x8),Y=n(q.comment,Z);return Xx(q,Q,Y)},[U.JSDocPrivateTag]:(q,Z)=>{let Q=S(q.tagName,Z,x8),Y=n(q.comment,Z);return Gx(q,Q,Y)},[U.JSDocProtectedTag]:(q,Z)=>{let Q=S(q.tagName,Z,x8),Y=n(q.comment,Z);return Vx(q,Q,Y)},[U.JSDocReadonlyTag]:(q,Z)=>{let Q=S(q.tagName,Z,x8),Y=n(q.comment,Z);return Wx(q,Q,Y)},[U.JSDocOverrideTag]:(q,Z)=>{let Q=S(q.tagName,Z,x8),Y=n(q.comment,Z);return $x(q,Q,Y)},[U.JSDocDeprecatedTag]:(q,Z)=>{let Q=S(q.tagName,Z,x8),Y=n(q.comment,Z);return Ux(q,Q,Y)},[U.JSDocSeeTag]:(q,Z)=>{let Q=S(q.tagName,Z,x8),Y=S(q.nameExpression,Z,T8),J=n(q.comment,Z);return Rx(q,Q,Y,J)},[U.JSDocImplementsTag]:(q,Z)=>{let Q=S(q.tagName,Z,x8),Y=S(q.className,Z,lX),J=n(q.comment,Z);return zx(q,Q,Y,J)},[U.JSDocAugmentsTag]:(q,Z)=>{let Q=S(q.tagName,Z,x8),Y=S(q.className,Z,lX),J=n(q.comment,Z);return Bx(q,Q,Y,J)},[U.JSDocSatisfiesTag]:(q,Z)=>{let Q=S(q.tagName,Z,x8),Y=S(q.typeExpression,Z,T8),J=n(q.comment,Z);return Mx(q,Q,Y,J)},[U.JSDocThrowsTag]:(q,Z)=>{let Q=S(q.tagName,Z,x8),Y=S(q.typeExpression,Z,T8),J=n(q.comment,Z);return Px(q,Q,Y,J)},[U.JSDocThisTag]:(q,Z)=>{let Q=S(q.tagName,Z,x8),Y=S(q.typeExpression,Z,T8),J=n(q.comment,Z);return Lx(q,Q,Y,J)},[U.JSDocImportTag]:(q,Z)=>{let Q=S(q.tagName,Z,x8),Y=S(q.importClause,Z,pX),J=S(q.moduleSpecifier,Z,O8),H=S(q.attributes,Z,yq),X=n(q.comment,Z);return Ox(q,Q,Y,J,H,X)},[U.JSDocCallbackTag]:(q,Z)=>{let Q=S(q.tagName,Z,x8),Y=S(q.typeExpression,Z,T8),J=S(q.name,Z,rX),H=n(q.comment,Z);return wx(q,Q,Y,J,H)},[U.JSDocOverloadTag]:(q,Z)=>{let Q=S(q.tagName,Z,x8),Y=S(q.typeExpression,Z,T8),J=n(q.comment,Z);return Ax(q,Q,Y,J)},[U.JSDocTypedefTag]:(q,Z)=>{let Q=S(q.tagName,Z,x8),Y=S(q.typeExpression,Z),J=S(q.name,Z,rX),H=n(q.comment,Z);return jx(q,Q,Y,J,H)},[U.JSDocSignature]:(q,Z)=>{let Q=n(q.typeParameters,Z),Y=n(q.parameters,Z),J=S(q.type,Z,T8);return Ix(q,Q,Y,J)},[U.JSDocNameReference]:(q,Z)=>{let Q=S(q.name,Z,w9);return Dx(q,Q)},[U.SourceFile]:(q,Z)=>{let Q=n(q.statements,Z),Y=S(q.endOfFileToken,Z,E_);return mx(q,Q,Y)},[U.ModuleDeclaration]:(q,Z)=>{let Q=n(q.modifiers,Z),Y=S(q.name,Z,B_),J=S(q.body,Z,M_);return Cx(q,Q,Y,J)},[U.ImportEqualsDeclaration]:(q,Z)=>{let Q=n(q.modifiers,Z),Y=S(q.name,Z,x8),J=S(q.moduleReference,Z,P_);return Ex(q,Q,Y,J)},[U.ExportDeclaration]:(q,Z)=>{let Q=n(q.modifiers,Z),Y=S(q.exportClause,Z,O_),J=S(q.moduleSpecifier,Z,O8),H=S(q.attributes,Z,yq);return Fx(q,Q,Y,J,H)},[U.ImportType]:(q,Z)=>{let Q=S(q.argument,Z,T8),Y=S(q.attributes,Z,yq),J=S(q.qualifier,Z,w9),H=n(q.typeArguments,Z);return Tx(q,Q,Y,J,H)},[U.ImportClause]:(q,Z)=>{let Q=S(q.name,Z,x8),Y=S(q.namedBindings,Z,L_);return fx(q,Q,Y)},[U.ImportSpecifier]:(q,Z)=>{let Q=S(q.propertyName,Z,_q),Y=S(q.name,Z,x8);return Kx(q,Q,Y)},[U.JSDocLink]:(q,Z)=>{let Q=S(q.name,Z,w9);return vx(q,Q)},[U.JSDocLinkPlain]:(q,Z)=>{let Q=S(q.name,Z,w9);return Nx(q,Q)},[U.JSDocLinkCode]:(q,Z)=>{let Q=S(q.name,Z,w9);return kx(q,Q)},[U.TypeParameter]:(q,Z)=>{let Q=n(q.modifiers,Z),Y=S(q.name,Z,x8),J=S(q.constraint,Z,T8),H=S(q.expression,Z,O8),X=S(q.defaultType,Z,T8);return Sx(q,Q,Y,J,H,X)},[U.SyntheticReferenceExpression]:(q,Z)=>{let Q=S(q.expression,Z,O8),Y=S(q.thisArg,Z,O8);return ux(q,Q,Y)},[U.JSDocTypeLiteral]:(q,Z)=>{let Q=XQ(q.jsdocPropertyTags,Z);return bx(q,Q)},[U.ForInStatement]:(q,Z)=>{let Q=S(q.awaitModifier,Z,dX),Y=S(q.initializer,Z,HQ),J=S(q.expression,Z,O8),H=S(q.statement,Z,m9);return hx(q,Q,Y,J,H)},[U.ForOfStatement]:(q,Z)=>{let Q=S(q.awaitModifier,Z,dX),Y=S(q.initializer,Z,HQ),J=S(q.expression,Z,O8),H=S(q.statement,Z,m9);return yx(q,Q,Y,J,H)},[U.CaseClause]:(q,Z)=>{let Q=S(q.expression,Z,O8),Y=n(q.statements,Z);return _x(q,Q,Y)},[U.DefaultClause]:(q,Z)=>{let Q=S(q.expression,Z,O8),Y=n(q.statements,Z);return gx(q,Q,Y)},[U.ObjectBindingPattern]:(q,Z)=>{let Q=n(q.elements,Z);return lx(q,Q)},[U.ArrayBindingPattern]:(q,Z)=>{let Q=n(q.elements,Z);return xx(q,Q)},[U.JSDocParameterTag]:GQ,[U.JSDocPropertyTag]:GQ}});function rq(q,Z){return Z?q(Z):void 0}function GH8(q,Z,Q){if(!Q)return;if(Z)return Z(Q);for(let Y of Q){let J=q(Y);if(J)return J}return}function VQ(q,Z,Q){return rq(Z,q.tagName)||(q.isNameFirst?rq(Z,q.name)||rq(Z,q.typeExpression):rq(Z,q.typeExpression)||rq(Z,q.name))||GH8(Z,Q,q.comment)}function GQ(q,Z){let Q=S(q.tagName,Z,x8),Y=S(q.name,Z,w9),J=S(q.typeExpression,Z,T8),H=n(q.comment,Z);return q.kind===U.JSDocParameterTag?px(q,Q,Y,J,H):cx(q,Q,Y,J,H)}var pq=u8(()=>{I1();cq();mq();aX();aX()});class c{kind;flags=0;pos=-1;end=-1;parent=void 0;_data;constructor(q,Z){this.kind=q,this._data=Z}get ambientModuleNames(){return this._data?.ambientModuleNames}get argument(){return this._data?.argument}get argumentExpression(){return this._data?.argumentExpression}get arguments(){return this._data?.arguments}get assertsModifier(){return this._data?.assertsModifier}get asteriskToken(){return this._data?.asteriskToken}get attributes(){return this._data?.attributes}get awaitModifier(){return this._data?.awaitModifier}get block(){return this._data?.block}get body(){return this._data?.body}get caseBlock(){return this._data?.caseBlock}get catchClause(){return this._data?.catchClause}get checkType(){return this._data?.checkType}get children(){return this._data?.children}get className(){return this._data?.className}get clauses(){return this._data?.clauses}get closingElement(){return this._data?.closingElement}get closingFragment(){return this._data?.closingFragment}get colonToken(){return this._data?.colonToken}get comment(){return this._data?.comment}get condition(){return this._data?.condition}get constraint(){return this._data?.constraint}get containsOnlyTriviaWhiteSpaces(){return this._data?.containsOnlyTriviaWhiteSpaces}get declarationList(){return this._data?.declarationList}get declarations(){return this._data?.declarations}get defaultType(){return this._data?.defaultType}get dotDotDotToken(){return this._data?.dotDotDotToken}get elementType(){return this._data?.elementType}get elements(){return this._data?.elements}get elseStatement(){return this._data?.elseStatement}get endOfFileToken(){return this._data?.endOfFileToken}get equalsGreaterThanToken(){return this._data?.equalsGreaterThanToken}get equalsToken(){return this._data?.equalsToken}get exclamationToken(){return this._data?.exclamationToken}get exportClause(){return this._data?.exportClause}get exprName(){return this._data?.exprName}get expression(){return this._data?.expression}get extendsType(){return this._data?.extendsType}get externalModuleIndicator(){return this._data?.externalModuleIndicator}get falseType(){return this._data?.falseType}get fileName(){return this._data?.fileName}get finallyBlock(){return this._data?.finallyBlock}get head(){return this._data?.head}get heritageClauses(){return this._data?.heritageClauses}get importClause(){return this._data?.importClause}get imports(){return this._data?.imports}get incrementor(){return this._data?.incrementor}get indexType(){return this._data?.indexType}get initializer(){return this._data?.initializer}get isArrayType(){return this._data?.isArrayType}get isBracketed(){return this._data?.isBracketed}get isDeclarationFile(){return this._data?.isDeclarationFile}get isExportEquals(){return this._data?.isExportEquals}get isNameFirst(){return this._data?.isNameFirst}get isSpread(){return this._data?.isSpread}get isTypeOf(){return this._data?.isTypeOf}get isTypeOnly(){return this._data?.isTypeOnly}get jsdocPropertyTags(){return this._data?.jsdocPropertyTags}get keyword(){return this._data?.keyword}get keywordToken(){return this._data?.keywordToken}get label(){return this._data?.label}get languageVariant(){return this._data?.languageVariant}get left(){return this._data?.left}get libReferenceDirectives(){return this._data?.libReferenceDirectives}get literal(){return this._data?.literal}get members(){return this._data?.members}get modifiers(){return this._data?.modifiers}get moduleAugmentations(){return this._data?.moduleAugmentations}get moduleReference(){return this._data?.moduleReference}get moduleSpecifier(){return this._data?.moduleSpecifier}get multiLine(){return this._data?.multiLine}get name(){return this._data?.name}get nameExpression(){return this._data?.nameExpression}get nameType(){return this._data?.nameType}get namedBindings(){return this._data?.namedBindings}get namespace(){return this._data?.namespace}get objectAssignmentInitializer(){return this._data?.objectAssignmentInitializer}get objectType(){return this._data?.objectType}get openingElement(){return this._data?.openingElement}get openingFragment(){return this._data?.openingFragment}get operand(){return this._data?.operand}get operator(){return this._data?.operator}get operatorToken(){return this._data?.operatorToken}get parameterName(){return this._data?.parameterName}get parameters(){return this._data?.parameters}get path(){return this._data?.path}get phaseModifier(){return this._data?.phaseModifier}get postfixToken(){return this._data?.postfixToken}get properties(){return this._data?.properties}get propertyName(){return this._data?.propertyName}get qualifier(){return this._data?.qualifier}get questionDotToken(){return this._data?.questionDotToken}get questionToken(){return this._data?.questionToken}get rawText(){return this._data?.rawText}get readonlyToken(){return this._data?.readonlyToken}get referencedFiles(){return this._data?.referencedFiles}get right(){return this._data?.right}get scriptKind(){return this._data?.scriptKind}get statement(){return this._data?.statement}get statements(){return this._data?.statements}get tag(){return this._data?.tag}get tagName(){return this._data?.tagName}get tags(){return this._data?.tags}get template(){return this._data?.template}get templateFlags(){return this._data?.templateFlags}get templateSpans(){return this._data?.templateSpans}get text(){return this._data?.text}get thenStatement(){return this._data?.thenStatement}get thisArg(){return this._data?.thisArg}get token(){return this._data?.token}get tokenCache(){return this._data?.tokenCache}get tokenFlags(){return this._data?.tokenFlags}get trueType(){return this._data?.trueType}get tryBlock(){return this._data?.tryBlock}get tupleNameSource(){return this._data?.tupleNameSource}get type(){return this._data?.type}get typeArguments(){return this._data?.typeArguments}get typeExpression(){return this._data?.typeExpression}get typeName(){return this._data?.typeName}get typeParameter(){return this._data?.typeParameter}get typeParameters(){return this._data?.typeParameters}get typeReferenceDirectives(){return this._data?.typeReferenceDirectives}get types(){return this._data?.types}get value(){return this._data?.value}get variableDeclaration(){return this._data?.variableDeclaration}get whenFalse(){return this._data?.whenFalse}get whenTrue(){return this._data?.whenTrue}forEachChild(q,Z){let Q=WH8[this.kind];return Q?Q(this._data,q,Z):void 0}getSourceFile(){let q=this;while(q.parent)q=q.parent;return q}}function VH8(q){return"pos"in q&&"end"in q}function s(q,Z=-1,Q=-1){if(VH8(q))return q;let Y=q.slice();return Y.pos=Z,Y.end=Q,Y}function u(q,Z){return Z?q(Z):void 0}function a(q,Z,Q){if(!Q)return;if(Z)return Z(Q);for(let Y of Q){let J=q(Y);if(J)return J}return}function $H8(q,Z){return new c(U.QualifiedName,{left:q,right:Z})}function UH8(q){return new c(U.ComputedPropertyName,{expression:q})}function RH8(q){return new c(U.Decorator,{expression:q})}function zH8(q,Z,Q){return new c(U.IfStatement,{expression:q,thenStatement:Z,elseStatement:Q})}function BH8(q,Z){return new c(U.DoStatement,{statement:q,expression:Z})}function MH8(q,Z){return new c(U.WhileStatement,{expression:q,statement:Z})}function PH8(q,Z,Q,Y){return new c(U.ForStatement,{initializer:q,condition:Z,incrementor:Q,statement:Y})}function LH8(q){return new c(U.BreakStatement,{label:q})}function OH8(q){return new c(U.ContinueStatement,{label:q})}function wH8(q){return new c(U.ReturnStatement,{expression:q})}function AH8(q,Z){return new c(U.WithStatement,{expression:q,statement:Z})}function jH8(q,Z){return new c(U.SwitchStatement,{expression:q,caseBlock:Z})}function IH8(q){return new c(U.CaseBlock,{clauses:s(q)})}function DH8(q){return new c(U.ThrowStatement,{expression:q})}function CH8(q,Z,Q){return new c(U.TryStatement,{tryBlock:q,catchClause:Z,finallyBlock:Q})}function EH8(q,Z){return new c(U.CatchClause,{variableDeclaration:q,block:Z})}function FH8(q,Z){return new c(U.LabeledStatement,{label:q,statement:Z})}function TH8(q){return new c(U.ExpressionStatement,{expression:q})}function fH8(q,Z){return new c(U.Block,{statements:s(q),multiLine:Z})}function KH8(q,Z){return new c(U.VariableStatement,{modifiers:q?s(q):void 0,declarationList:Z})}function vH8(q,Z,Q,Y){return new c(U.VariableDeclaration,{name:q,exclamationToken:Z,type:Q,initializer:Y})}function NH8(q,Z){let Q=new c(U.VariableDeclarationList,{declarations:s(q)});return Q.flags=Z,Q}function kH8(q,Z,Q,Y,J,H){return new c(U.Parameter,{modifiers:q?s(q):void 0,dotDotDotToken:Z,name:Q,questionToken:Y,type:J,initializer:H})}function SH8(q,Z,Q,Y){return new c(U.BindingElement,{dotDotDotToken:q,propertyName:Z,name:Q,initializer:Y})}function uH8(q){return new c(U.MissingDeclaration,{modifiers:q?s(q):void 0})}function bH8(q,Z,Q,Y,J,H,X){return new c(U.FunctionDeclaration,{modifiers:q?s(q):void 0,asteriskToken:Z,name:Q,typeParameters:Y?s(Y):void 0,parameters:s(J),type:H,body:X})}function hH8(q,Z,Q,Y,J){return new c(U.ClassDeclaration,{modifiers:q?s(q):void 0,name:Z,typeParameters:Q?s(Q):void 0,heritageClauses:Y?s(Y):void 0,members:s(J)})}function yH8(q,Z,Q,Y,J){return new c(U.ClassExpression,{modifiers:q?s(q):void 0,name:Z,typeParameters:Q?s(Q):void 0,heritageClauses:Y?s(Y):void 0,members:s(J)})}function _H8(q,Z){return new c(U.HeritageClause,{token:q,types:s(Z)})}function gH8(q,Z,Q,Y,J){return new c(U.InterfaceDeclaration,{modifiers:q?s(q):void 0,name:Z,typeParameters:Q?s(Q):void 0,heritageClauses:Y?s(Y):void 0,members:s(J)})}function lH8(q,Z,Q,Y){return new c(U.TypeAliasDeclaration,{modifiers:q?s(q):void 0,name:Z,typeParameters:Q?s(Q):void 0,type:Y})}function xH8(q,Z){return new c(U.EnumMember,{name:q,initializer:Z})}function mH8(q,Z,Q){return new c(U.EnumDeclaration,{modifiers:q?s(q):void 0,name:Z,members:s(Q)})}function pH8(q){return new c(U.ModuleBlock,{statements:s(q)})}function cH8(q,Z,Q,Y){return new c(U.ImportDeclaration,{modifiers:q?s(q):void 0,importClause:Z,moduleSpecifier:Q,attributes:Y})}function rH8(q){return new c(U.ExternalModuleReference,{expression:q})}function iH8(q){return new c(U.NamespaceImport,{name:q})}function dH8(q){return new c(U.NamedImports,{elements:s(q)})}function sH8(q,Z=!1,Q,Y){return new c(U.ExportAssignment,{modifiers:q?s(q):void 0,isExportEquals:Z,type:Q,expression:Y})}function aH8(q,Z){return new c(U.NamespaceExportDeclaration,{modifiers:q?s(q):void 0,name:Z})}function oH8(q){return new c(U.NamespaceExport,{name:q})}function nH8(q){return new c(U.NamedExports,{elements:s(q)})}function tH8(q=!1,Z,Q){return new c(U.ExportSpecifier,{isTypeOnly:q,propertyName:Z,name:Q})}function eH8(q,Z,Q){return new c(U.CallSignature,{typeParameters:q?s(q):void 0,parameters:s(Z),type:Q})}function qX8(q,Z,Q){return new c(U.ConstructSignature,{typeParameters:q?s(q):void 0,parameters:s(Z),type:Q})}function ZX8(q,Z,Q,Y,J){return new c(U.Constructor,{modifiers:q?s(q):void 0,typeParameters:Z?s(Z):void 0,parameters:s(Q),type:Y,body:J})}function QX8(q,Z,Q,Y,J,H){return new c(U.GetAccessor,{modifiers:q?s(q):void 0,name:Z,typeParameters:Q?s(Q):void 0,parameters:s(Y),type:J,body:H})}function YX8(q,Z,Q,Y,J,H){return new c(U.SetAccessor,{modifiers:q?s(q):void 0,name:Z,typeParameters:Q?s(Q):void 0,parameters:s(Y),type:J,body:H})}function JX8(q,Z,Q){return new c(U.IndexSignature,{modifiers:q?s(q):void 0,parameters:s(Z),type:Q})}function HX8(q,Z,Q,Y,J,H){return new c(U.MethodSignature,{modifiers:q?s(q):void 0,name:Z,postfixToken:Q,typeParameters:Y?s(Y):void 0,parameters:s(J),type:H})}function XX8(q,Z,Q,Y,J,H,X,G){return new c(U.MethodDeclaration,{modifiers:q?s(q):void 0,asteriskToken:Z,name:Q,postfixToken:Y,typeParameters:J?s(J):void 0,parameters:s(H),type:X,body:G})}function GX8(q,Z,Q,Y,J){return new c(U.PropertySignature,{modifiers:q?s(q):void 0,name:Z,postfixToken:Q,type:Y,initializer:J})}function VX8(q,Z,Q,Y,J){return new c(U.PropertyDeclaration,{modifiers:q?s(q):void 0,name:Z,postfixToken:Q,type:Y,initializer:J})}function WX8(q,Z){return new c(U.ClassStaticBlockDeclaration,{modifiers:q?s(q):void 0,body:Z})}function $X8(q,Z,Q,Y,J){return new c(U.BinaryExpression,{modifiers:q?s(q):void 0,left:Z,type:Q,operatorToken:Y,right:J})}function UX8(q,Z){return new c(U.PrefixUnaryExpression,{operator:q,operand:Z})}function RX8(q,Z){return new c(U.PostfixUnaryExpression,{operand:q,operator:Z})}function zX8(q,Z){return new c(U.YieldExpression,{asteriskToken:q,expression:Z})}function BX8(q,Z,Q,Y,J,H){return new c(U.ArrowFunction,{modifiers:q?s(q):void 0,typeParameters:Z?s(Z):void 0,parameters:s(Q),type:Y,equalsGreaterThanToken:J,body:H})}function MX8(q,Z,Q,Y,J,H,X){return new c(U.FunctionExpression,{modifiers:q?s(q):void 0,asteriskToken:Z,name:Q,typeParameters:Y?s(Y):void 0,parameters:s(J),type:H,body:X})}function PX8(q,Z){return new c(U.AsExpression,{expression:q,type:Z})}function LX8(q,Z){return new c(U.SatisfiesExpression,{expression:q,type:Z})}function OX8(q,Z,Q,Y,J){return new c(U.ConditionalExpression,{condition:q,questionToken:Z,whenTrue:Q,colonToken:Y,whenFalse:J})}function wX8(q,Z,Q,Y){let J=new c(U.PropertyAccessExpression,{expression:q,questionDotToken:Z,name:Q});return J.flags=Y,J}function AX8(q,Z,Q,Y){let J=new c(U.ElementAccessExpression,{expression:q,questionDotToken:Z,argumentExpression:Q});return J.flags=Y,J}function jX8(q,Z,Q,Y,J){let H=new c(U.CallExpression,{expression:q,questionDotToken:Z,typeArguments:Q?s(Q):void 0,arguments:s(Y)});return H.flags=J,H}function IX8(q,Z,Q){return new c(U.NewExpression,{expression:q,typeArguments:Z?s(Z):void 0,arguments:Q?s(Q):void 0})}function DX8(q,Z){return new c(U.MetaProperty,{keywordToken:q,name:Z})}function CX8(q,Z){let Q=new c(U.NonNullExpression,{expression:q});return Q.flags=Z,Q}function EX8(q){return new c(U.SpreadElement,{expression:q})}function FX8(q,Z){return new c(U.TemplateExpression,{head:q,templateSpans:s(Z)})}function TX8(q,Z){return new c(U.TemplateSpan,{expression:q,literal:Z})}function fX8(q,Z,Q,Y,J){let H=new c(U.TaggedTemplateExpression,{tag:q,questionDotToken:Z,typeArguments:Q?s(Q):void 0,template:Y});return H.flags=J,H}function KX8(q){return new c(U.ParenthesizedExpression,{expression:q})}function vX8(q,Z){return new c(U.ArrayLiteralExpression,{elements:s(q),multiLine:Z})}function NX8(q,Z){return new c(U.ObjectLiteralExpression,{properties:s(q),multiLine:Z})}function kX8(q){return new c(U.SpreadAssignment,{expression:q})}function SX8(q,Z,Q,Y,J){return new c(U.PropertyAssignment,{modifiers:q?s(q):void 0,name:Z,postfixToken:Q,type:Y,initializer:J})}function uX8(q,Z,Q,Y,J,H){return new c(U.ShorthandPropertyAssignment,{modifiers:q?s(q):void 0,name:Z,postfixToken:Q,type:Y,equalsToken:J,objectAssignmentInitializer:H})}function bX8(q){return new c(U.DeleteExpression,{expression:q})}function hX8(q){return new c(U.TypeOfExpression,{expression:q})}function yX8(q){return new c(U.VoidExpression,{expression:q})}function _X8(q){return new c(U.AwaitExpression,{expression:q})}function gX8(q,Z){return new c(U.TypeAssertionExpression,{type:q,expression:Z})}function lX8(q){return new c(U.UnionType,{types:s(q)})}function xX8(q){return new c(U.IntersectionType,{types:s(q)})}function mX8(q,Z,Q,Y){return new c(U.ConditionalType,{checkType:q,extendsType:Z,trueType:Q,falseType:Y})}function pX8(q,Z){return new c(U.TypeOperator,{operator:q,type:Z})}function cX8(q){return new c(U.InferType,{typeParameter:q})}function rX8(q){return new c(U.ArrayType,{elementType:q})}function iX8(q,Z){return new c(U.IndexedAccessType,{objectType:q,indexType:Z})}function dX8(q,Z){return new c(U.TypeReference,{typeName:q,typeArguments:Z?s(Z):void 0})}function sX8(q,Z){return new c(U.ExpressionWithTypeArguments,{expression:q,typeArguments:Z?s(Z):void 0})}function aX8(q){return new c(U.LiteralType,{literal:q})}function oX8(q,Z,Q){return new c(U.TypePredicate,{assertsModifier:q,parameterName:Z,type:Q})}function nX8(q,Z){return new c(U.ImportAttribute,{name:q,value:Z})}function tX8(q,Z,Q){return new c(U.ImportAttributes,{token:q,attributes:s(Z),multiLine:Q})}function eX8(q,Z){return new c(U.TypeQuery,{exprName:q,typeArguments:Z?s(Z):void 0})}function qG8(q,Z,Q,Y,J,H){return new c(U.MappedType,{readonlyToken:q,typeParameter:Z,nameType:Q,questionToken:Y,type:J,members:H?s(H):void 0})}function ZG8(q){return new c(U.TypeLiteral,{members:s(q)})}function QG8(q){return new c(U.TupleType,{elements:s(q)})}function YG8(q,Z,Q,Y){return new c(U.NamedTupleMember,{dotDotDotToken:q,name:Z,questionToken:Q,type:Y})}function JG8(q){return new c(U.OptionalType,{type:q})}function HG8(q){return new c(U.RestType,{type:q})}function XG8(q){return new c(U.ParenthesizedType,{type:q})}function GG8(q,Z,Q){return new c(U.FunctionType,{typeParameters:q?s(q):void 0,parameters:s(Z),type:Q})}function VG8(q,Z,Q,Y){return new c(U.ConstructorType,{modifiers:q?s(q):void 0,typeParameters:Z?s(Z):void 0,parameters:s(Q),type:Y})}function WG8(q,Z){return new c(U.TemplateLiteralType,{head:q,templateSpans:s(Z)})}function $G8(q,Z){return new c(U.TemplateLiteralTypeSpan,{type:q,literal:Z})}function UG8(q,Z,Q){return new c(U.SyntheticExpression,{type:q,isSpread:Z,tupleNameSource:Q})}function RG8(q){return new c(U.PartiallyEmittedExpression,{expression:q})}function zG8(q,Z,Q){return new c(U.JsxElement,{openingElement:q,children:s(Z),closingElement:Q})}function BG8(q){return new c(U.JsxAttributes,{properties:s(q)})}function MG8(q,Z){return new c(U.JsxNamespacedName,{namespace:q,name:Z})}function PG8(q,Z,Q){return new c(U.JsxOpeningElement,{tagName:q,typeArguments:Z?s(Z):void 0,attributes:Q})}function LG8(q,Z,Q){return new c(U.JsxSelfClosingElement,{tagName:q,typeArguments:Z?s(Z):void 0,attributes:Q})}function OG8(q,Z,Q){return new c(U.JsxFragment,{openingFragment:q,children:s(Z),closingFragment:Q})}function wG8(q,Z){return new c(U.JsxAttribute,{name:q,initializer:Z})}function AG8(q){return new c(U.JsxSpreadAttribute,{expression:q})}function jG8(q){return new c(U.JsxClosingElement,{tagName:q})}function IG8(q,Z){return new c(U.JsxExpression,{dotDotDotToken:q,expression:Z})}function DG8(q){return new c(U.SyntaxList,{children:q})}function CG8(q,Z){return new c(U.JSDoc,{comment:s(q),tags:Z?s(Z):void 0})}function EG8(q){return new c(U.JSDocTypeExpression,{type:q})}function FG8(q){return new c(U.JSDocNonNullableType,{type:q})}function TG8(q){return new c(U.JSDocNullableType,{type:q})}function fG8(q){return new c(U.JSDocVariadicType,{type:q})}function KG8(q){return new c(U.JSDocOptionalType,{type:q})}function vG8(q,Z,Q){return new c(U.JSDocTypeTag,{tagName:q,typeExpression:Z,comment:Q?s(Q):void 0})}function NG8(q,Z){return new c(U.JSDocUnknownTag,{tagName:q,comment:Z?s(Z):void 0})}function kG8(q,Z,Q,Y){return new c(U.JSDocTemplateTag,{tagName:q,constraint:Z,typeParameters:s(Q),comment:Y?s(Y):void 0})}function SG8(q,Z,Q){return new c(U.JSDocReturnTag,{tagName:q,typeExpression:Z,comment:Q?s(Q):void 0})}function uG8(q,Z){return new c(U.JSDocPublicTag,{tagName:q,comment:Z?s(Z):void 0})}function bG8(q,Z){return new c(U.JSDocPrivateTag,{tagName:q,comment:Z?s(Z):void 0})}function hG8(q,Z){return new c(U.JSDocProtectedTag,{tagName:q,comment:Z?s(Z):void 0})}function yG8(q,Z){return new c(U.JSDocReadonlyTag,{tagName:q,comment:Z?s(Z):void 0})}function _G8(q,Z){return new c(U.JSDocOverrideTag,{tagName:q,comment:Z?s(Z):void 0})}function gG8(q,Z){return new c(U.JSDocDeprecatedTag,{tagName:q,comment:Z?s(Z):void 0})}function lG8(q,Z,Q){return new c(U.JSDocSeeTag,{tagName:q,nameExpression:Z,comment:Q?s(Q):void 0})}function xG8(q,Z,Q){return new c(U.JSDocImplementsTag,{tagName:q,className:Z,comment:Q?s(Q):void 0})}function mG8(q,Z,Q){return new c(U.JSDocAugmentsTag,{tagName:q,className:Z,comment:Q?s(Q):void 0})}function pG8(q,Z,Q){return new c(U.JSDocSatisfiesTag,{tagName:q,typeExpression:Z,comment:Q?s(Q):void 0})}function cG8(q,Z,Q){return new c(U.JSDocThrowsTag,{tagName:q,typeExpression:Z,comment:Q?s(Q):void 0})}function rG8(q,Z,Q){return new c(U.JSDocThisTag,{tagName:q,typeExpression:Z,comment:Q?s(Q):void 0})}function iG8(q,Z,Q,Y,J){return new c(U.JSDocImportTag,{tagName:q,importClause:Z,moduleSpecifier:Q,attributes:Y,comment:J?s(J):void 0})}function dG8(q,Z,Q,Y){return new c(U.JSDocCallbackTag,{tagName:q,typeExpression:Z,name:Q,comment:Y?s(Y):void 0})}function sG8(q,Z,Q){return new c(U.JSDocOverloadTag,{tagName:q,typeExpression:Z,comment:Q?s(Q):void 0})}function aG8(q,Z,Q,Y){return new c(U.JSDocTypedefTag,{tagName:q,typeExpression:Z,name:Q,comment:Y?s(Y):void 0})}function oG8(q,Z,Q){return new c(U.JSDocSignature,{typeParameters:q?s(q):void 0,parameters:s(Z),type:Q})}function nG8(q){return new c(U.JSDocNameReference,{name:q})}function tG8(q,Z,Q,Y){return new c(U.ModuleDeclaration,{modifiers:q?s(q):void 0,keyword:Z,name:Q,body:Y})}function eG8(q,Z=!1,Q,Y){return new c(U.ImportEqualsDeclaration,{modifiers:q?s(q):void 0,isTypeOnly:Z,name:Q,moduleReference:Y})}function qV8(q,Z,Q,Y,J){return new c(U.ExportDeclaration,{modifiers:q?s(q):void 0,isTypeOnly:Z,exportClause:Q,moduleSpecifier:Y,attributes:J})}function ZV8(q=!1,Z,Q,Y,J){return new c(U.ImportType,{isTypeOf:q,argument:Z,attributes:Q,qualifier:Y,typeArguments:J?s(J):void 0})}function QV8(q,Z,Q){return new c(U.ImportClause,{phaseModifier:q,name:Z,namedBindings:Q})}function YV8(q=!1,Z,Q){return new c(U.ImportSpecifier,{isTypeOnly:q,propertyName:Z,name:Q})}function JV8(q,Z){return new c(U.JSDocLink,{name:q,text:Z})}function HV8(q,Z){return new c(U.JSDocLinkPlain,{name:q,text:Z})}function XV8(q,Z){return new c(U.JSDocLinkCode,{name:q,text:Z})}function GV8(q,Z,Q,Y,J){return new c(U.TypeParameter,{modifiers:q?s(q):void 0,name:Z,constraint:Q,expression:Y,defaultType:J})}function VV8(q,Z){return new c(U.SyntheticReferenceExpression,{expression:q,thisArg:Z})}function WV8(q,Z){return new c(U.JSDocTypeLiteral,{jsdocPropertyTags:q,isArrayType:Z})}function $V8(q,Z,Q,Y){return new c(U.ForInStatement,{awaitModifier:q,initializer:Z,expression:Q,statement:Y})}function UV8(q,Z,Q,Y){return new c(U.ForOfStatement,{awaitModifier:q,initializer:Z,expression:Q,statement:Y})}function RV8(q,Z){return new c(U.CaseClause,{expression:q,statements:s(Z)})}function zV8(q,Z){return new c(U.DefaultClause,{expression:q,statements:s(Z)})}function BV8(q){return new c(U.ObjectBindingPattern,{elements:s(q)})}function MV8(q){return new c(U.ArrayBindingPattern,{elements:s(q)})}function PV8(q,Z,Q,Y,J,H){return new c(U.JSDocParameterTag,{tagName:q,name:Z,isBracketed:Q,typeExpression:Y,isNameFirst:J,comment:H?s(H):void 0})}function LV8(q,Z,Q,Y,J,H){return new c(U.JSDocPropertyTag,{tagName:q,name:Z,isBracketed:Q,typeExpression:Y,isNameFirst:J,comment:H?s(H):void 0})}function h_(q,Z,Q){return q.left!==Z||q.right!==Q?$H8(Z,Q):q}function y_(q,Z){return q.expression!==Z?UH8(Z):q}function __(q,Z){return q.expression!==Z?RH8(Z):q}function g_(q,Z,Q,Y){return q.expression!==Z||q.thenStatement!==Q||q.elseStatement!==Y?zH8(Z,Q,Y):q}function l_(q,Z,Q){return q.statement!==Z||q.expression!==Q?BH8(Z,Q):q}function x_(q,Z,Q){return q.expression!==Z||q.statement!==Q?MH8(Z,Q):q}function m_(q,Z,Q,Y,J){return q.initializer!==Z||q.condition!==Q||q.incrementor!==Y||q.statement!==J?PH8(Z,Q,Y,J):q}function p_(q,Z){return q.label!==Z?LH8(Z):q}function c_(q,Z){return q.label!==Z?OH8(Z):q}function r_(q,Z){return q.expression!==Z?wH8(Z):q}function i_(q,Z,Q){return q.expression!==Z||q.statement!==Q?AH8(Z,Q):q}function d_(q,Z,Q){return q.expression!==Z||q.caseBlock!==Q?jH8(Z,Q):q}function s_(q,Z){return q.clauses!==Z?IH8(Z):q}function a_(q,Z){return q.expression!==Z?DH8(Z):q}function o_(q,Z,Q,Y){return q.tryBlock!==Z||q.catchClause!==Q||q.finallyBlock!==Y?CH8(Z,Q,Y):q}function n_(q,Z,Q){return q.variableDeclaration!==Z||q.block!==Q?EH8(Z,Q):q}function t_(q,Z,Q){return q.label!==Z||q.statement!==Q?FH8(Z,Q):q}function e_(q,Z){return q.expression!==Z?TH8(Z):q}function qg(q,Z){return q.statements!==Z?fH8(Z,q.multiLine):q}function Zg(q,Z,Q){return q.modifiers!==Z||q.declarationList!==Q?KH8(Z,Q):q}function Qg(q,Z,Q,Y,J){return q.name!==Z||q.exclamationToken!==Q||q.type!==Y||q.initializer!==J?vH8(Z,Q,Y,J):q}function Yg(q,Z){return q.declarations!==Z?NH8(Z,q.flags):q}function Jg(q,Z,Q,Y,J,H,X){return q.modifiers!==Z||q.dotDotDotToken!==Q||q.name!==Y||q.questionToken!==J||q.type!==H||q.initializer!==X?kH8(Z,Q,Y,J,H,X):q}function Hg(q,Z,Q,Y,J){return q.dotDotDotToken!==Z||q.propertyName!==Q||q.name!==Y||q.initializer!==J?SH8(Z,Q,Y,J):q}function Xg(q,Z){return q.modifiers!==Z?uH8(Z):q}function Gg(q,Z,Q,Y,J,H,X,G){return q.modifiers!==Z||q.asteriskToken!==Q||q.name!==Y||q.typeParameters!==J||q.parameters!==H||q.type!==X||q.body!==G?bH8(Z,Q,Y,J,H,X,G):q}function Vg(q,Z,Q,Y,J,H){return q.modifiers!==Z||q.name!==Q||q.typeParameters!==Y||q.heritageClauses!==J||q.members!==H?hH8(Z,Q,Y,J,H):q}function Wg(q,Z,Q,Y,J,H){return q.modifiers!==Z||q.name!==Q||q.typeParameters!==Y||q.heritageClauses!==J||q.members!==H?yH8(Z,Q,Y,J,H):q}function $g(q,Z){return q.types!==Z?_H8(q.token,Z):q}function Ug(q,Z,Q,Y,J,H){return q.modifiers!==Z||q.name!==Q||q.typeParameters!==Y||q.heritageClauses!==J||q.members!==H?gH8(Z,Q,Y,J,H):q}function Rg(q,Z,Q,Y,J){return q.modifiers!==Z||q.name!==Q||q.typeParameters!==Y||q.type!==J?lH8(Z,Q,Y,J):q}function zg(q,Z,Q){return q.name!==Z||q.initializer!==Q?xH8(Z,Q):q}function Bg(q,Z,Q,Y){return q.modifiers!==Z||q.name!==Q||q.members!==Y?mH8(Z,Q,Y):q}function Mg(q,Z){return q.statements!==Z?pH8(Z):q}function Pg(q,Z,Q,Y,J){return q.modifiers!==Z||q.importClause!==Q||q.moduleSpecifier!==Y||q.attributes!==J?cH8(Z,Q,Y,J):q}function Lg(q,Z){return q.expression!==Z?rH8(Z):q}function Og(q,Z){return q.name!==Z?iH8(Z):q}function wg(q,Z){return q.elements!==Z?dH8(Z):q}function Ag(q,Z,Q,Y){return q.modifiers!==Z||q.type!==Q||q.expression!==Y?sH8(Z,q.isExportEquals,Q,Y):q}function jg(q,Z,Q){return q.modifiers!==Z||q.name!==Q?aH8(Z,Q):q}function Ig(q,Z){return q.name!==Z?oH8(Z):q}function Dg(q,Z){return q.elements!==Z?nH8(Z):q}function Cg(q,Z,Q){return q.propertyName!==Z||q.name!==Q?tH8(q.isTypeOnly,Z,Q):q}function Eg(q,Z,Q,Y){return q.typeParameters!==Z||q.parameters!==Q||q.type!==Y?eH8(Z,Q,Y):q}function Fg(q,Z,Q,Y){return q.typeParameters!==Z||q.parameters!==Q||q.type!==Y?qX8(Z,Q,Y):q}function Tg(q,Z,Q,Y,J,H){return q.modifiers!==Z||q.typeParameters!==Q||q.parameters!==Y||q.type!==J||q.body!==H?ZX8(Z,Q,Y,J,H):q}function fg(q,Z,Q,Y,J,H,X){return q.modifiers!==Z||q.name!==Q||q.typeParameters!==Y||q.parameters!==J||q.type!==H||q.body!==X?QX8(Z,Q,Y,J,H,X):q}function Kg(q,Z,Q,Y,J,H,X){return q.modifiers!==Z||q.name!==Q||q.typeParameters!==Y||q.parameters!==J||q.type!==H||q.body!==X?YX8(Z,Q,Y,J,H,X):q}function vg(q,Z,Q,Y){return q.modifiers!==Z||q.parameters!==Q||q.type!==Y?JX8(Z,Q,Y):q}function Ng(q,Z,Q,Y,J,H,X){return q.modifiers!==Z||q.name!==Q||q.postfixToken!==Y||q.typeParameters!==J||q.parameters!==H||q.type!==X?HX8(Z,Q,Y,J,H,X):q}function kg(q,Z,Q,Y,J,H,X,G,W){return q.modifiers!==Z||q.asteriskToken!==Q||q.name!==Y||q.postfixToken!==J||q.typeParameters!==H||q.parameters!==X||q.type!==G||q.body!==W?XX8(Z,Q,Y,J,H,X,G,W):q}function Sg(q,Z,Q,Y,J,H){return q.modifiers!==Z||q.name!==Q||q.postfixToken!==Y||q.type!==J||q.initializer!==H?GX8(Z,Q,Y,J,H):q}function ug(q,Z,Q,Y,J,H){return q.modifiers!==Z||q.name!==Q||q.postfixToken!==Y||q.type!==J||q.initializer!==H?VX8(Z,Q,Y,J,H):q}function bg(q,Z,Q){return q.modifiers!==Z||q.body!==Q?WX8(Z,Q):q}function hg(q,Z,Q,Y,J,H){return q.modifiers!==Z||q.left!==Q||q.type!==Y||q.operatorToken!==J||q.right!==H?$X8(Z,Q,Y,J,H):q}function yg(q,Z){return q.operand!==Z?UX8(q.operator,Z):q}function _g(q,Z){return q.operand!==Z?RX8(Z,q.operator):q}function gg(q,Z,Q){return q.asteriskToken!==Z||q.expression!==Q?zX8(Z,Q):q}function lg(q,Z,Q,Y,J,H,X){return q.modifiers!==Z||q.typeParameters!==Q||q.parameters!==Y||q.type!==J||q.equalsGreaterThanToken!==H||q.body!==X?BX8(Z,Q,Y,J,H,X):q}function xg(q,Z,Q,Y,J,H,X,G){return q.modifiers!==Z||q.asteriskToken!==Q||q.name!==Y||q.typeParameters!==J||q.parameters!==H||q.type!==X||q.body!==G?MX8(Z,Q,Y,J,H,X,G):q}function mg(q,Z,Q){return q.expression!==Z||q.type!==Q?PX8(Z,Q):q}function pg(q,Z,Q){return q.expression!==Z||q.type!==Q?LX8(Z,Q):q}function cg(q,Z,Q,Y,J,H){return q.condition!==Z||q.questionToken!==Q||q.whenTrue!==Y||q.colonToken!==J||q.whenFalse!==H?OX8(Z,Q,Y,J,H):q}function rg(q,Z,Q,Y){return q.expression!==Z||q.questionDotToken!==Q||q.name!==Y?wX8(Z,Q,Y,q.flags):q}function ig(q,Z,Q,Y){return q.expression!==Z||q.questionDotToken!==Q||q.argumentExpression!==Y?AX8(Z,Q,Y,q.flags):q}function dg(q,Z,Q,Y,J){return q.expression!==Z||q.questionDotToken!==Q||q.typeArguments!==Y||q.arguments!==J?jX8(Z,Q,Y,J,q.flags):q}function sg(q,Z,Q,Y){return q.expression!==Z||q.typeArguments!==Q||q.arguments!==Y?IX8(Z,Q,Y):q}function ag(q,Z){return q.name!==Z?DX8(q.keywordToken,Z):q}function og(q,Z){return q.expression!==Z?CX8(Z,q.flags):q}function ng(q,Z){return q.expression!==Z?EX8(Z):q}function tg(q,Z,Q){return q.head!==Z||q.templateSpans!==Q?FX8(Z,Q):q}function eg(q,Z,Q){return q.expression!==Z||q.literal!==Q?TX8(Z,Q):q}function ql(q,Z,Q,Y,J){return q.tag!==Z||q.questionDotToken!==Q||q.typeArguments!==Y||q.template!==J?fX8(Z,Q,Y,J,q.flags):q}function Zl(q,Z){return q.expression!==Z?KX8(Z):q}function Ql(q,Z){return q.elements!==Z?vX8(Z,q.multiLine):q}function Yl(q,Z){return q.properties!==Z?NX8(Z,q.multiLine):q}function Jl(q,Z){return q.expression!==Z?kX8(Z):q}function Hl(q,Z,Q,Y,J,H){return q.modifiers!==Z||q.name!==Q||q.postfixToken!==Y||q.type!==J||q.initializer!==H?SX8(Z,Q,Y,J,H):q}function Xl(q,Z,Q,Y,J,H,X){return q.modifiers!==Z||q.name!==Q||q.postfixToken!==Y||q.type!==J||q.equalsToken!==H||q.objectAssignmentInitializer!==X?uX8(Z,Q,Y,J,H,X):q}function Gl(q,Z){return q.expression!==Z?bX8(Z):q}function Vl(q,Z){return q.expression!==Z?hX8(Z):q}function Wl(q,Z){return q.expression!==Z?yX8(Z):q}function $l(q,Z){return q.expression!==Z?_X8(Z):q}function Ul(q,Z,Q){return q.type!==Z||q.expression!==Q?gX8(Z,Q):q}function Rl(q,Z){return q.types!==Z?lX8(Z):q}function zl(q,Z){return q.types!==Z?xX8(Z):q}function Bl(q,Z,Q,Y,J){return q.checkType!==Z||q.extendsType!==Q||q.trueType!==Y||q.falseType!==J?mX8(Z,Q,Y,J):q}function Ml(q,Z){return q.type!==Z?pX8(q.operator,Z):q}function Pl(q,Z){return q.typeParameter!==Z?cX8(Z):q}function Ll(q,Z){return q.elementType!==Z?rX8(Z):q}function Ol(q,Z,Q){return q.objectType!==Z||q.indexType!==Q?iX8(Z,Q):q}function wl(q,Z,Q){return q.typeName!==Z||q.typeArguments!==Q?dX8(Z,Q):q}function Al(q,Z,Q){return q.expression!==Z||q.typeArguments!==Q?sX8(Z,Q):q}function jl(q,Z){return q.literal!==Z?aX8(Z):q}function Il(q,Z,Q,Y){return q.assertsModifier!==Z||q.parameterName!==Q||q.type!==Y?oX8(Z,Q,Y):q}function Dl(q,Z,Q){return q.name!==Z||q.value!==Q?nX8(Z,Q):q}function Cl(q,Z){return q.attributes!==Z?tX8(q.token,Z,q.multiLine):q}function El(q,Z,Q){return q.exprName!==Z||q.typeArguments!==Q?eX8(Z,Q):q}function Fl(q,Z,Q,Y,J,H,X){return q.readonlyToken!==Z||q.typeParameter!==Q||q.nameType!==Y||q.questionToken!==J||q.type!==H||q.members!==X?qG8(Z,Q,Y,J,H,X):q}function Tl(q,Z){return q.members!==Z?ZG8(Z):q}function fl(q,Z){return q.elements!==Z?QG8(Z):q}function Kl(q,Z,Q,Y,J){return q.dotDotDotToken!==Z||q.name!==Q||q.questionToken!==Y||q.type!==J?YG8(Z,Q,Y,J):q}function vl(q,Z){return q.type!==Z?JG8(Z):q}function Nl(q,Z){return q.type!==Z?HG8(Z):q}function kl(q,Z){return q.type!==Z?XG8(Z):q}function Sl(q,Z,Q,Y){return q.typeParameters!==Z||q.parameters!==Q||q.type!==Y?GG8(Z,Q,Y):q}function ul(q,Z,Q,Y,J){return q.modifiers!==Z||q.typeParameters!==Q||q.parameters!==Y||q.type!==J?VG8(Z,Q,Y,J):q}function bl(q,Z,Q){return q.head!==Z||q.templateSpans!==Q?WG8(Z,Q):q}function hl(q,Z,Q){return q.type!==Z||q.literal!==Q?$G8(Z,Q):q}function yl(q,Z){return q.tupleNameSource!==Z?UG8(q.type,q.isSpread,Z):q}function _l(q,Z){return q.expression!==Z?RG8(Z):q}function gl(q,Z,Q,Y){return q.openingElement!==Z||q.children!==Q||q.closingElement!==Y?zG8(Z,Q,Y):q}function ll(q,Z){return q.properties!==Z?BG8(Z):q}function xl(q,Z,Q){return q.namespace!==Z||q.name!==Q?MG8(Z,Q):q}function ml(q,Z,Q,Y){return q.tagName!==Z||q.typeArguments!==Q||q.attributes!==Y?PG8(Z,Q,Y):q}function pl(q,Z,Q,Y){return q.tagName!==Z||q.typeArguments!==Q||q.attributes!==Y?LG8(Z,Q,Y):q}function cl(q,Z,Q,Y){return q.openingFragment!==Z||q.children!==Q||q.closingFragment!==Y?OG8(Z,Q,Y):q}function rl(q,Z,Q){return q.name!==Z||q.initializer!==Q?wG8(Z,Q):q}function il(q,Z){return q.expression!==Z?AG8(Z):q}function dl(q,Z){return q.tagName!==Z?jG8(Z):q}function sl(q,Z,Q){return q.dotDotDotToken!==Z||q.expression!==Q?IG8(Z,Q):q}function al(q,Z){return q.children!==Z?DG8(Z):q}function ol(q,Z,Q){return q.comment!==Z||q.tags!==Q?CG8(Z,Q):q}function nl(q,Z){return q.type!==Z?EG8(Z):q}function tl(q,Z){return q.type!==Z?FG8(Z):q}function el(q,Z){return q.type!==Z?TG8(Z):q}function qx(q,Z){return q.type!==Z?fG8(Z):q}function Zx(q,Z){return q.type!==Z?KG8(Z):q}function Qx(q,Z,Q,Y){return q.tagName!==Z||q.typeExpression!==Q||q.comment!==Y?vG8(Z,Q,Y):q}function Yx(q,Z,Q){return q.tagName!==Z||q.comment!==Q?NG8(Z,Q):q}function Jx(q,Z,Q,Y,J){return q.tagName!==Z||q.constraint!==Q||q.typeParameters!==Y||q.comment!==J?kG8(Z,Q,Y,J):q}function Hx(q,Z,Q,Y){return q.tagName!==Z||q.typeExpression!==Q||q.comment!==Y?SG8(Z,Q,Y):q}function Xx(q,Z,Q){return q.tagName!==Z||q.comment!==Q?uG8(Z,Q):q}function Gx(q,Z,Q){return q.tagName!==Z||q.comment!==Q?bG8(Z,Q):q}function Vx(q,Z,Q){return q.tagName!==Z||q.comment!==Q?hG8(Z,Q):q}function Wx(q,Z,Q){return q.tagName!==Z||q.comment!==Q?yG8(Z,Q):q}function $x(q,Z,Q){return q.tagName!==Z||q.comment!==Q?_G8(Z,Q):q}function Ux(q,Z,Q){return q.tagName!==Z||q.comment!==Q?gG8(Z,Q):q}function Rx(q,Z,Q,Y){return q.tagName!==Z||q.nameExpression!==Q||q.comment!==Y?lG8(Z,Q,Y):q}function zx(q,Z,Q,Y){return q.tagName!==Z||q.className!==Q||q.comment!==Y?xG8(Z,Q,Y):q}function Bx(q,Z,Q,Y){return q.tagName!==Z||q.className!==Q||q.comment!==Y?mG8(Z,Q,Y):q}function Mx(q,Z,Q,Y){return q.tagName!==Z||q.typeExpression!==Q||q.comment!==Y?pG8(Z,Q,Y):q}function Px(q,Z,Q,Y){return q.tagName!==Z||q.typeExpression!==Q||q.comment!==Y?cG8(Z,Q,Y):q}function Lx(q,Z,Q,Y){return q.tagName!==Z||q.typeExpression!==Q||q.comment!==Y?rG8(Z,Q,Y):q}function Ox(q,Z,Q,Y,J,H){return q.tagName!==Z||q.importClause!==Q||q.moduleSpecifier!==Y||q.attributes!==J||q.comment!==H?iG8(Z,Q,Y,J,H):q}function wx(q,Z,Q,Y,J){return q.tagName!==Z||q.typeExpression!==Q||q.name!==Y||q.comment!==J?dG8(Z,Q,Y,J):q}function Ax(q,Z,Q,Y){return q.tagName!==Z||q.typeExpression!==Q||q.comment!==Y?sG8(Z,Q,Y):q}function jx(q,Z,Q,Y,J){return q.tagName!==Z||q.typeExpression!==Q||q.name!==Y||q.comment!==J?aG8(Z,Q,Y,J):q}function Ix(q,Z,Q,Y){return q.typeParameters!==Z||q.parameters!==Q||q.type!==Y?oG8(Z,Q,Y):q}function Dx(q,Z){return q.name!==Z?nG8(Z):q}function Cx(q,Z,Q,Y){return q.modifiers!==Z||q.name!==Q||q.body!==Y?tG8(Z,q.keyword,Q,Y):q}function Ex(q,Z,Q,Y){return q.modifiers!==Z||q.name!==Q||q.moduleReference!==Y?eG8(Z,q.isTypeOnly,Q,Y):q}function Fx(q,Z,Q,Y,J){return q.modifiers!==Z||q.exportClause!==Q||q.moduleSpecifier!==Y||q.attributes!==J?qV8(Z,q.isTypeOnly,Q,Y,J):q}function Tx(q,Z,Q,Y,J){return q.argument!==Z||q.attributes!==Q||q.qualifier!==Y||q.typeArguments!==J?ZV8(q.isTypeOf,Z,Q,Y,J):q}function fx(q,Z,Q){return q.name!==Z||q.namedBindings!==Q?QV8(q.phaseModifier,Z,Q):q}function Kx(q,Z,Q){return q.propertyName!==Z||q.name!==Q?YV8(q.isTypeOnly,Z,Q):q}function vx(q,Z){return q.name!==Z?JV8(Z,q.text):q}function Nx(q,Z){return q.name!==Z?HV8(Z,q.text):q}function kx(q,Z){return q.name!==Z?XV8(Z,q.text):q}function Sx(q,Z,Q,Y,J,H){return q.modifiers!==Z||q.name!==Q||q.constraint!==Y||q.expression!==J||q.defaultType!==H?GV8(Z,Q,Y,J,H):q}function ux(q,Z,Q){return q.expression!==Z||q.thisArg!==Q?VV8(Z,Q):q}function bx(q,Z){return q.jsdocPropertyTags!==Z?WV8(Z,q.isArrayType):q}function hx(q,Z,Q,Y,J){return q.awaitModifier!==Z||q.initializer!==Q||q.expression!==Y||q.statement!==J?$V8(Z,Q,Y,J):q}function yx(q,Z,Q,Y,J){return q.awaitModifier!==Z||q.initializer!==Q||q.expression!==Y||q.statement!==J?UV8(Z,Q,Y,J):q}function _x(q,Z,Q){return q.expression!==Z||q.statements!==Q?RV8(Z,Q):q}function gx(q,Z,Q){return q.expression!==Z||q.statements!==Q?zV8(Z,Q):q}function lx(q,Z){return q.elements!==Z?BV8(Z):q}function xx(q,Z){return q.elements!==Z?MV8(Z):q}function px(q,Z,Q,Y,J){return q.tagName!==Z||q.name!==Q||q.typeExpression!==Y||q.comment!==J?PV8(Z,Q,q.isBracketed,Y,q.isNameFirst,J):q}function cx(q,Z,Q,Y,J){return q.tagName!==Z||q.name!==Q||q.typeExpression!==Y||q.comment!==J?LV8(Z,Q,q.isBracketed,Y,q.isNameFirst,J):q}function OV8(q,Z,Q,Y,J){return new c(U.SourceFile,{statements:s(q),endOfFileToken:Z,text:Q,fileName:Y,path:J})}function mx(q,Z,Q){return q.statements!==Z||q.endOfFileToken!==Q?OV8(Z,Q,q.text,q.fileName,q.path):q}var WH8;var cq=u8(()=>{bq();I1();r5();pq();WH8={[U.QualifiedName]:(q,Z,Q)=>u(Z,q.left)||u(Z,q.right),[U.ComputedPropertyName]:(q,Z,Q)=>u(Z,q.expression),[U.Decorator]:(q,Z,Q)=>u(Z,q.expression),[U.IfStatement]:(q,Z,Q)=>u(Z,q.expression)||u(Z,q.thenStatement)||u(Z,q.elseStatement),[U.DoStatement]:(q,Z,Q)=>u(Z,q.statement)||u(Z,q.expression),[U.WhileStatement]:(q,Z,Q)=>u(Z,q.expression)||u(Z,q.statement),[U.ForStatement]:(q,Z,Q)=>u(Z,q.initializer)||u(Z,q.condition)||u(Z,q.incrementor)||u(Z,q.statement),[U.BreakStatement]:(q,Z,Q)=>u(Z,q.label),[U.ContinueStatement]:(q,Z,Q)=>u(Z,q.label),[U.ReturnStatement]:(q,Z,Q)=>u(Z,q.expression),[U.WithStatement]:(q,Z,Q)=>u(Z,q.expression)||u(Z,q.statement),[U.SwitchStatement]:(q,Z,Q)=>u(Z,q.expression)||u(Z,q.caseBlock),[U.CaseBlock]:(q,Z,Q)=>a(Z,Q,q.clauses),[U.ThrowStatement]:(q,Z,Q)=>u(Z,q.expression),[U.TryStatement]:(q,Z,Q)=>u(Z,q.tryBlock)||u(Z,q.catchClause)||u(Z,q.finallyBlock),[U.CatchClause]:(q,Z,Q)=>u(Z,q.variableDeclaration)||u(Z,q.block),[U.LabeledStatement]:(q,Z,Q)=>u(Z,q.label)||u(Z,q.statement),[U.ExpressionStatement]:(q,Z,Q)=>u(Z,q.expression),[U.Block]:(q,Z,Q)=>a(Z,Q,q.statements),[U.VariableStatement]:(q,Z,Q)=>a(Z,Q,q.modifiers)||u(Z,q.declarationList),[U.VariableDeclaration]:(q,Z,Q)=>u(Z,q.name)||u(Z,q.exclamationToken)||u(Z,q.type)||u(Z,q.initializer),[U.VariableDeclarationList]:(q,Z,Q)=>a(Z,Q,q.declarations),[U.Parameter]:(q,Z,Q)=>a(Z,Q,q.modifiers)||u(Z,q.dotDotDotToken)||u(Z,q.name)||u(Z,q.questionToken)||u(Z,q.type)||u(Z,q.initializer),[U.BindingElement]:(q,Z,Q)=>u(Z,q.dotDotDotToken)||u(Z,q.propertyName)||u(Z,q.name)||u(Z,q.initializer),[U.MissingDeclaration]:(q,Z,Q)=>a(Z,Q,q.modifiers),[U.FunctionDeclaration]:(q,Z,Q)=>a(Z,Q,q.modifiers)||u(Z,q.asteriskToken)||u(Z,q.name)||a(Z,Q,q.typeParameters)||a(Z,Q,q.parameters)||u(Z,q.type)||u(Z,q.body),[U.ClassDeclaration]:(q,Z,Q)=>a(Z,Q,q.modifiers)||u(Z,q.name)||a(Z,Q,q.typeParameters)||a(Z,Q,q.heritageClauses)||a(Z,Q,q.members),[U.ClassExpression]:(q,Z,Q)=>a(Z,Q,q.modifiers)||u(Z,q.name)||a(Z,Q,q.typeParameters)||a(Z,Q,q.heritageClauses)||a(Z,Q,q.members),[U.HeritageClause]:(q,Z,Q)=>a(Z,Q,q.types),[U.InterfaceDeclaration]:(q,Z,Q)=>a(Z,Q,q.modifiers)||u(Z,q.name)||a(Z,Q,q.typeParameters)||a(Z,Q,q.heritageClauses)||a(Z,Q,q.members),[U.TypeAliasDeclaration]:(q,Z,Q)=>a(Z,Q,q.modifiers)||u(Z,q.name)||a(Z,Q,q.typeParameters)||u(Z,q.type),[U.JSTypeAliasDeclaration]:(q,Z,Q)=>a(Z,Q,q.modifiers)||u(Z,q.name)||a(Z,Q,q.typeParameters)||u(Z,q.type),[U.EnumMember]:(q,Z,Q)=>u(Z,q.name)||u(Z,q.initializer),[U.EnumDeclaration]:(q,Z,Q)=>a(Z,Q,q.modifiers)||u(Z,q.name)||a(Z,Q,q.members),[U.ModuleBlock]:(q,Z,Q)=>a(Z,Q,q.statements),[U.ImportDeclaration]:(q,Z,Q)=>a(Z,Q,q.modifiers)||u(Z,q.importClause)||u(Z,q.moduleSpecifier)||u(Z,q.attributes),[U.JSImportDeclaration]:(q,Z,Q)=>a(Z,Q,q.modifiers)||u(Z,q.importClause)||u(Z,q.moduleSpecifier)||u(Z,q.attributes),[U.ExternalModuleReference]:(q,Z,Q)=>u(Z,q.expression),[U.NamespaceImport]:(q,Z,Q)=>u(Z,q.name),[U.NamedImports]:(q,Z,Q)=>a(Z,Q,q.elements),[U.ExportAssignment]:(q,Z,Q)=>a(Z,Q,q.modifiers)||u(Z,q.type)||u(Z,q.expression),[U.NamespaceExportDeclaration]:(q,Z,Q)=>a(Z,Q,q.modifiers)||u(Z,q.name),[U.NamespaceExport]:(q,Z,Q)=>u(Z,q.name),[U.NamedExports]:(q,Z,Q)=>a(Z,Q,q.elements),[U.ExportSpecifier]:(q,Z,Q)=>u(Z,q.propertyName)||u(Z,q.name),[U.CallSignature]:(q,Z,Q)=>a(Z,Q,q.typeParameters)||a(Z,Q,q.parameters)||u(Z,q.type),[U.ConstructSignature]:(q,Z,Q)=>a(Z,Q,q.typeParameters)||a(Z,Q,q.parameters)||u(Z,q.type),[U.Constructor]:(q,Z,Q)=>a(Z,Q,q.modifiers)||a(Z,Q,q.typeParameters)||a(Z,Q,q.parameters)||u(Z,q.type)||u(Z,q.body),[U.GetAccessor]:(q,Z,Q)=>a(Z,Q,q.modifiers)||u(Z,q.name)||a(Z,Q,q.typeParameters)||a(Z,Q,q.parameters)||u(Z,q.type)||u(Z,q.body),[U.SetAccessor]:(q,Z,Q)=>a(Z,Q,q.modifiers)||u(Z,q.name)||a(Z,Q,q.typeParameters)||a(Z,Q,q.parameters)||u(Z,q.type)||u(Z,q.body),[U.IndexSignature]:(q,Z,Q)=>a(Z,Q,q.modifiers)||a(Z,Q,q.parameters)||u(Z,q.type),[U.MethodSignature]:(q,Z,Q)=>a(Z,Q,q.modifiers)||u(Z,q.name)||u(Z,q.postfixToken)||a(Z,Q,q.typeParameters)||a(Z,Q,q.parameters)||u(Z,q.type),[U.MethodDeclaration]:(q,Z,Q)=>a(Z,Q,q.modifiers)||u(Z,q.asteriskToken)||u(Z,q.name)||u(Z,q.postfixToken)||a(Z,Q,q.typeParameters)||a(Z,Q,q.parameters)||u(Z,q.type)||u(Z,q.body),[U.PropertySignature]:(q,Z,Q)=>a(Z,Q,q.modifiers)||u(Z,q.name)||u(Z,q.postfixToken)||u(Z,q.type)||u(Z,q.initializer),[U.PropertyDeclaration]:(q,Z,Q)=>a(Z,Q,q.modifiers)||u(Z,q.name)||u(Z,q.postfixToken)||u(Z,q.type)||u(Z,q.initializer),[U.ClassStaticBlockDeclaration]:(q,Z,Q)=>a(Z,Q,q.modifiers)||u(Z,q.body),[U.BinaryExpression]:(q,Z,Q)=>a(Z,Q,q.modifiers)||u(Z,q.left)||u(Z,q.type)||u(Z,q.operatorToken)||u(Z,q.right),[U.PrefixUnaryExpression]:(q,Z,Q)=>u(Z,q.operand),[U.PostfixUnaryExpression]:(q,Z,Q)=>u(Z,q.operand),[U.YieldExpression]:(q,Z,Q)=>u(Z,q.asteriskToken)||u(Z,q.expression),[U.ArrowFunction]:(q,Z,Q)=>a(Z,Q,q.modifiers)||a(Z,Q,q.typeParameters)||a(Z,Q,q.parameters)||u(Z,q.type)||u(Z,q.equalsGreaterThanToken)||u(Z,q.body),[U.FunctionExpression]:(q,Z,Q)=>a(Z,Q,q.modifiers)||u(Z,q.asteriskToken)||u(Z,q.name)||a(Z,Q,q.typeParameters)||a(Z,Q,q.parameters)||u(Z,q.type)||u(Z,q.body),[U.AsExpression]:(q,Z,Q)=>u(Z,q.expression)||u(Z,q.type),[U.SatisfiesExpression]:(q,Z,Q)=>u(Z,q.expression)||u(Z,q.type),[U.ConditionalExpression]:(q,Z,Q)=>u(Z,q.condition)||u(Z,q.questionToken)||u(Z,q.whenTrue)||u(Z,q.colonToken)||u(Z,q.whenFalse),[U.PropertyAccessExpression]:(q,Z,Q)=>u(Z,q.expression)||u(Z,q.questionDotToken)||u(Z,q.name),[U.ElementAccessExpression]:(q,Z,Q)=>u(Z,q.expression)||u(Z,q.questionDotToken)||u(Z,q.argumentExpression),[U.CallExpression]:(q,Z,Q)=>u(Z,q.expression)||u(Z,q.questionDotToken)||a(Z,Q,q.typeArguments)||a(Z,Q,q.arguments),[U.NewExpression]:(q,Z,Q)=>u(Z,q.expression)||a(Z,Q,q.typeArguments)||a(Z,Q,q.arguments),[U.MetaProperty]:(q,Z,Q)=>u(Z,q.name),[U.NonNullExpression]:(q,Z,Q)=>u(Z,q.expression),[U.SpreadElement]:(q,Z,Q)=>u(Z,q.expression),[U.TemplateExpression]:(q,Z,Q)=>u(Z,q.head)||a(Z,Q,q.templateSpans),[U.TemplateSpan]:(q,Z,Q)=>u(Z,q.expression)||u(Z,q.literal),[U.TaggedTemplateExpression]:(q,Z,Q)=>u(Z,q.tag)||u(Z,q.questionDotToken)||a(Z,Q,q.typeArguments)||u(Z,q.template),[U.ParenthesizedExpression]:(q,Z,Q)=>u(Z,q.expression),[U.ArrayLiteralExpression]:(q,Z,Q)=>a(Z,Q,q.elements),[U.ObjectLiteralExpression]:(q,Z,Q)=>a(Z,Q,q.properties),[U.SpreadAssignment]:(q,Z,Q)=>u(Z,q.expression),[U.PropertyAssignment]:(q,Z,Q)=>a(Z,Q,q.modifiers)||u(Z,q.name)||u(Z,q.postfixToken)||u(Z,q.type)||u(Z,q.initializer),[U.ShorthandPropertyAssignment]:(q,Z,Q)=>a(Z,Q,q.modifiers)||u(Z,q.name)||u(Z,q.postfixToken)||u(Z,q.type)||u(Z,q.equalsToken)||u(Z,q.objectAssignmentInitializer),[U.DeleteExpression]:(q,Z,Q)=>u(Z,q.expression),[U.TypeOfExpression]:(q,Z,Q)=>u(Z,q.expression),[U.VoidExpression]:(q,Z,Q)=>u(Z,q.expression),[U.AwaitExpression]:(q,Z,Q)=>u(Z,q.expression),[U.TypeAssertionExpression]:(q,Z,Q)=>u(Z,q.type)||u(Z,q.expression),[U.UnionType]:(q,Z,Q)=>a(Z,Q,q.types),[U.IntersectionType]:(q,Z,Q)=>a(Z,Q,q.types),[U.ConditionalType]:(q,Z,Q)=>u(Z,q.checkType)||u(Z,q.extendsType)||u(Z,q.trueType)||u(Z,q.falseType),[U.TypeOperator]:(q,Z,Q)=>u(Z,q.type),[U.InferType]:(q,Z,Q)=>u(Z,q.typeParameter),[U.ArrayType]:(q,Z,Q)=>u(Z,q.elementType),[U.IndexedAccessType]:(q,Z,Q)=>u(Z,q.objectType)||u(Z,q.indexType),[U.TypeReference]:(q,Z,Q)=>u(Z,q.typeName)||a(Z,Q,q.typeArguments),[U.ExpressionWithTypeArguments]:(q,Z,Q)=>u(Z,q.expression)||a(Z,Q,q.typeArguments),[U.LiteralType]:(q,Z,Q)=>u(Z,q.literal),[U.TypePredicate]:(q,Z,Q)=>u(Z,q.assertsModifier)||u(Z,q.parameterName)||u(Z,q.type),[U.ImportAttribute]:(q,Z,Q)=>u(Z,q.name)||u(Z,q.value),[U.ImportAttributes]:(q,Z,Q)=>a(Z,Q,q.attributes),[U.TypeQuery]:(q,Z,Q)=>u(Z,q.exprName)||a(Z,Q,q.typeArguments),[U.MappedType]:(q,Z,Q)=>u(Z,q.readonlyToken)||u(Z,q.typeParameter)||u(Z,q.nameType)||u(Z,q.questionToken)||u(Z,q.type)||a(Z,Q,q.members),[U.TypeLiteral]:(q,Z,Q)=>a(Z,Q,q.members),[U.TupleType]:(q,Z,Q)=>a(Z,Q,q.elements),[U.NamedTupleMember]:(q,Z,Q)=>u(Z,q.dotDotDotToken)||u(Z,q.name)||u(Z,q.questionToken)||u(Z,q.type),[U.OptionalType]:(q,Z,Q)=>u(Z,q.type),[U.RestType]:(q,Z,Q)=>u(Z,q.type),[U.ParenthesizedType]:(q,Z,Q)=>u(Z,q.type),[U.FunctionType]:(q,Z,Q)=>a(Z,Q,q.typeParameters)||a(Z,Q,q.parameters)||u(Z,q.type),[U.ConstructorType]:(q,Z,Q)=>a(Z,Q,q.modifiers)||a(Z,Q,q.typeParameters)||a(Z,Q,q.parameters)||u(Z,q.type),[U.TemplateLiteralType]:(q,Z,Q)=>u(Z,q.head)||a(Z,Q,q.templateSpans),[U.TemplateLiteralTypeSpan]:(q,Z,Q)=>u(Z,q.type)||u(Z,q.literal),[U.SyntheticExpression]:(q,Z,Q)=>u(Z,q.tupleNameSource),[U.PartiallyEmittedExpression]:(q,Z,Q)=>u(Z,q.expression),[U.JsxElement]:(q,Z,Q)=>u(Z,q.openingElement)||a(Z,Q,q.children)||u(Z,q.closingElement),[U.JsxAttributes]:(q,Z,Q)=>a(Z,Q,q.properties),[U.JsxNamespacedName]:(q,Z,Q)=>u(Z,q.namespace)||u(Z,q.name),[U.JsxOpeningElement]:(q,Z,Q)=>u(Z,q.tagName)||a(Z,Q,q.typeArguments)||u(Z,q.attributes),[U.JsxSelfClosingElement]:(q,Z,Q)=>u(Z,q.tagName)||a(Z,Q,q.typeArguments)||u(Z,q.attributes),[U.JsxFragment]:(q,Z,Q)=>u(Z,q.openingFragment)||a(Z,Q,q.children)||u(Z,q.closingFragment),[U.JsxAttribute]:(q,Z,Q)=>u(Z,q.name)||u(Z,q.initializer),[U.JsxSpreadAttribute]:(q,Z,Q)=>u(Z,q.expression),[U.JsxClosingElement]:(q,Z,Q)=>u(Z,q.tagName),[U.JsxExpression]:(q,Z,Q)=>u(Z,q.dotDotDotToken)||u(Z,q.expression),[U.SyntaxList]:(q,Z,Q)=>a(Z,Q,q.children),[U.JSDoc]:(q,Z,Q)=>a(Z,Q,q.comment)||a(Z,Q,q.tags),[U.JSDocTypeExpression]:(q,Z,Q)=>u(Z,q.type),[U.JSDocNonNullableType]:(q,Z,Q)=>u(Z,q.type),[U.JSDocNullableType]:(q,Z,Q)=>u(Z,q.type),[U.JSDocVariadicType]:(q,Z,Q)=>u(Z,q.type),[U.JSDocOptionalType]:(q,Z,Q)=>u(Z,q.type),[U.JSDocTypeTag]:(q,Z,Q)=>u(Z,q.tagName)||u(Z,q.typeExpression)||a(Z,Q,q.comment),[U.JSDocUnknownTag]:(q,Z,Q)=>u(Z,q.tagName)||a(Z,Q,q.comment),[U.JSDocTemplateTag]:(q,Z,Q)=>u(Z,q.tagName)||u(Z,q.constraint)||a(Z,Q,q.typeParameters)||a(Z,Q,q.comment),[U.JSDocReturnTag]:(q,Z,Q)=>u(Z,q.tagName)||u(Z,q.typeExpression)||a(Z,Q,q.comment),[U.JSDocPublicTag]:(q,Z,Q)=>u(Z,q.tagName)||a(Z,Q,q.comment),[U.JSDocPrivateTag]:(q,Z,Q)=>u(Z,q.tagName)||a(Z,Q,q.comment),[U.JSDocProtectedTag]:(q,Z,Q)=>u(Z,q.tagName)||a(Z,Q,q.comment),[U.JSDocReadonlyTag]:(q,Z,Q)=>u(Z,q.tagName)||a(Z,Q,q.comment),[U.JSDocOverrideTag]:(q,Z,Q)=>u(Z,q.tagName)||a(Z,Q,q.comment),[U.JSDocDeprecatedTag]:(q,Z,Q)=>u(Z,q.tagName)||a(Z,Q,q.comment),[U.JSDocSeeTag]:(q,Z,Q)=>u(Z,q.tagName)||u(Z,q.nameExpression)||a(Z,Q,q.comment),[U.JSDocImplementsTag]:(q,Z,Q)=>u(Z,q.tagName)||u(Z,q.className)||a(Z,Q,q.comment),[U.JSDocAugmentsTag]:(q,Z,Q)=>u(Z,q.tagName)||u(Z,q.className)||a(Z,Q,q.comment),[U.JSDocSatisfiesTag]:(q,Z,Q)=>u(Z,q.tagName)||u(Z,q.typeExpression)||a(Z,Q,q.comment),[U.JSDocThrowsTag]:(q,Z,Q)=>u(Z,q.tagName)||u(Z,q.typeExpression)||a(Z,Q,q.comment),[U.JSDocThisTag]:(q,Z,Q)=>u(Z,q.tagName)||u(Z,q.typeExpression)||a(Z,Q,q.comment),[U.JSDocImportTag]:(q,Z,Q)=>u(Z,q.tagName)||u(Z,q.importClause)||u(Z,q.moduleSpecifier)||u(Z,q.attributes)||a(Z,Q,q.comment),[U.JSDocCallbackTag]:(q,Z,Q)=>u(Z,q.tagName)||u(Z,q.typeExpression)||u(Z,q.name)||a(Z,Q,q.comment),[U.JSDocOverloadTag]:(q,Z,Q)=>u(Z,q.tagName)||u(Z,q.typeExpression)||a(Z,Q,q.comment),[U.JSDocTypedefTag]:(q,Z,Q)=>u(Z,q.tagName)||u(Z,q.typeExpression)||u(Z,q.name)||a(Z,Q,q.comment),[U.JSDocSignature]:(q,Z,Q)=>a(Z,Q,q.typeParameters)||a(Z,Q,q.parameters)||u(Z,q.type),[U.JSDocNameReference]:(q,Z,Q)=>u(Z,q.name),[U.ModuleDeclaration]:(q,Z,Q)=>a(Z,Q,q.modifiers)||u(Z,q.name)||u(Z,q.body),[U.ImportEqualsDeclaration]:(q,Z,Q)=>a(Z,Q,q.modifiers)||u(Z,q.name)||u(Z,q.moduleReference),[U.ExportDeclaration]:(q,Z,Q)=>a(Z,Q,q.modifiers)||u(Z,q.exportClause)||u(Z,q.moduleSpecifier)||u(Z,q.attributes),[U.ImportType]:(q,Z,Q)=>u(Z,q.argument)||u(Z,q.attributes)||u(Z,q.qualifier)||a(Z,Q,q.typeArguments),[U.ImportClause]:(q,Z,Q)=>u(Z,q.name)||u(Z,q.namedBindings),[U.ImportSpecifier]:(q,Z,Q)=>u(Z,q.propertyName)||u(Z,q.name),[U.JSDocLink]:(q,Z,Q)=>u(Z,q.name),[U.JSDocLinkPlain]:(q,Z,Q)=>u(Z,q.name),[U.JSDocLinkCode]:(q,Z,Q)=>u(Z,q.name),[U.TypeParameter]:(q,Z,Q)=>a(Z,Q,q.modifiers)||u(Z,q.name)||u(Z,q.constraint)||u(Z,q.expression)||u(Z,q.defaultType),[U.SyntheticReferenceExpression]:(q,Z,Q)=>u(Z,q.expression)||u(Z,q.thisArg),[U.JSDocTypeLiteral]:(q,Z,Q)=>a(Z,Q,q.jsdocPropertyTags),[U.ForInStatement]:(q,Z,Q)=>u(Z,q.awaitModifier)||u(Z,q.initializer)||u(Z,q.expression)||u(Z,q.statement),[U.ForOfStatement]:(q,Z,Q)=>u(Z,q.awaitModifier)||u(Z,q.initializer)||u(Z,q.expression)||u(Z,q.statement),[U.CaseClause]:(q,Z,Q)=>u(Z,q.expression)||a(Z,Q,q.statements),[U.DefaultClause]:(q,Z,Q)=>u(Z,q.expression)||a(Z,Q,q.statements),[U.ObjectBindingPattern]:(q,Z,Q)=>a(Z,Q,q.elements),[U.ArrayBindingPattern]:(q,Z,Q)=>a(Z,Q,q.elements),[U.JSDocParameterTag]:VQ,[U.JSDocPropertyTag]:VQ,[U.SourceFile]:(q,Z,Q)=>a(Z,Q,q.statements)||u(Z,q.endOfFileToken)}});function AV8(q){let Z=[];return q.forEach((Q,Y)=>{Z[Q]=Y}),Z}var rx,Im8,wV8,Dm8,Cm8;var oX=u8(()=>{uX();bX();hX();yX();gX();I1();r5();rx={abstract:U.AbstractKeyword,accessor:U.AccessorKeyword,any:U.AnyKeyword,as:U.AsKeyword,asserts:U.AssertsKeyword,assert:U.AssertKeyword,bigint:U.BigIntKeyword,boolean:U.BooleanKeyword,break:U.BreakKeyword,case:U.CaseKeyword,catch:U.CatchKeyword,class:U.ClassKeyword,continue:U.ContinueKeyword,const:U.ConstKeyword,["constructor"]:U.ConstructorKeyword,debugger:U.DebuggerKeyword,declare:U.DeclareKeyword,default:U.DefaultKeyword,defer:U.DeferKeyword,delete:U.DeleteKeyword,do:U.DoKeyword,else:U.ElseKeyword,enum:U.EnumKeyword,export:U.ExportKeyword,extends:U.ExtendsKeyword,false:U.FalseKeyword,finally:U.FinallyKeyword,for:U.ForKeyword,from:U.FromKeyword,function:U.FunctionKeyword,get:U.GetKeyword,if:U.IfKeyword,implements:U.ImplementsKeyword,import:U.ImportKeyword,in:U.InKeyword,infer:U.InferKeyword,instanceof:U.InstanceOfKeyword,interface:U.InterfaceKeyword,intrinsic:U.IntrinsicKeyword,is:U.IsKeyword,keyof:U.KeyOfKeyword,let:U.LetKeyword,module:U.ModuleKeyword,namespace:U.NamespaceKeyword,never:U.NeverKeyword,new:U.NewKeyword,null:U.NullKeyword,number:U.NumberKeyword,object:U.ObjectKeyword,package:U.PackageKeyword,private:U.PrivateKeyword,protected:U.ProtectedKeyword,public:U.PublicKeyword,override:U.OverrideKeyword,out:U.OutKeyword,readonly:U.ReadonlyKeyword,require:U.RequireKeyword,global:U.GlobalKeyword,return:U.ReturnKeyword,satisfies:U.SatisfiesKeyword,set:U.SetKeyword,static:U.StaticKeyword,string:U.StringKeyword,super:U.SuperKeyword,switch:U.SwitchKeyword,symbol:U.SymbolKeyword,this:U.ThisKeyword,throw:U.ThrowKeyword,true:U.TrueKeyword,try:U.TryKeyword,type:U.TypeKeyword,typeof:U.TypeOfKeyword,undefined:U.UndefinedKeyword,unique:U.UniqueKeyword,unknown:U.UnknownKeyword,using:U.UsingKeyword,var:U.VarKeyword,void:U.VoidKeyword,while:U.WhileKeyword,with:U.WithKeyword,yield:U.YieldKeyword,async:U.AsyncKeyword,await:U.AwaitKeyword,of:U.OfKeyword},Im8=new Map(Object.entries(rx)),wV8=new Map(Object.entries({...rx,"{":U.OpenBraceToken,"}":U.CloseBraceToken,"(":U.OpenParenToken,")":U.CloseParenToken,"[":U.OpenBracketToken,"]":U.CloseBracketToken,".":U.DotToken,"...":U.DotDotDotToken,";":U.SemicolonToken,",":U.CommaToken,"<":U.LessThanToken,">":U.GreaterThanToken,"<=":U.LessThanEqualsToken,">=":U.GreaterThanEqualsToken,"==":U.EqualsEqualsToken,"!=":U.ExclamationEqualsToken,"===":U.EqualsEqualsEqualsToken,"!==":U.ExclamationEqualsEqualsToken,"=>":U.EqualsGreaterThanToken,"+":U.PlusToken,"-":U.MinusToken,"**":U.AsteriskAsteriskToken,"*":U.AsteriskToken,"/":U.SlashToken,"%":U.PercentToken,"++":U.PlusPlusToken,"--":U.MinusMinusToken,"<<":U.LessThanLessThanToken,"</":U.LessThanSlashToken,">>":U.GreaterThanGreaterThanToken,">>>":U.GreaterThanGreaterThanGreaterThanToken,"&":U.AmpersandToken,"|":U.BarToken,"^":U.CaretToken,"!":U.ExclamationToken,"~":U.TildeToken,"&&":U.AmpersandAmpersandToken,"||":U.BarBarToken,"?":U.QuestionToken,"??":U.QuestionQuestionToken,"?.":U.QuestionDotToken,":":U.ColonToken,"=":U.EqualsToken,"+=":U.PlusEqualsToken,"-=":U.MinusEqualsToken,"*=":U.AsteriskEqualsToken,"**=":U.AsteriskAsteriskEqualsToken,"/=":U.SlashEqualsToken,"%=":U.PercentEqualsToken,"<<=":U.LessThanLessThanEqualsToken,">>=":U.GreaterThanGreaterThanEqualsToken,">>>=":U.GreaterThanGreaterThanGreaterThanEqualsToken,"&=":U.AmpersandEqualsToken,"|=":U.BarEqualsToken,"^=":U.CaretEqualsToken,"||=":U.BarBarEqualsToken,"&&=":U.AmpersandAmpersandEqualsToken,"??=":U.QuestionQuestionEqualsToken,"@":U.AtToken,"#":U.HashToken,"`":U.BacktickToken})),Dm8=new Map([[e1.d,q9.HasIndices],[e1.g,q9.Global],[e1.i,q9.IgnoreCase],[e1.m,q9.Multiline],[e1.s,q9.DotAll],[e1.u,q9.Unicode],[e1.v,q9.UnicodeSets],[e1.y,q9.Sticky]]);Cm8=AV8(wV8)});var ix=u8(()=>{bq();I1();cq();mq();oX()});var dx=u8(()=>{I1();cq();pq()});var sx=u8(()=>{I1()});var s6=u8(()=>{uX();bX();hX();Q_();bq();yX();_X();gX();I1();r5();J_();ix();dx();mq();oX();sx();pq()});var h7,jV8;var ax=u8(()=>{s6();h7={[U.QualifiedName]:["left","right"],[U.ComputedPropertyName]:["expression"],[U.Decorator]:["expression"],[U.IfStatement]:["expression","thenStatement","elseStatement"],[U.DoStatement]:["statement","expression"],[U.WhileStatement]:["expression","statement"],[U.ForStatement]:["initializer","condition","incrementor","statement"],[U.ForInStatement]:["awaitModifier","initializer","expression","statement"],[U.ForOfStatement]:["awaitModifier","initializer","expression","statement"],[U.BreakStatement]:["label"],[U.ContinueStatement]:["label"],[U.ReturnStatement]:["expression"],[U.WithStatement]:["expression","statement"],[U.SwitchStatement]:["expression","caseBlock"],[U.CaseBlock]:["clauses"],[U.CaseClause]:["expression","statements"],[U.DefaultClause]:["expression","statements"],[U.ThrowStatement]:["expression"],[U.TryStatement]:["tryBlock","catchClause","finallyBlock"],[U.CatchClause]:["variableDeclaration","block"],[U.LabeledStatement]:["label","statement"],[U.ExpressionStatement]:["expression"],[U.Block]:["statements"],[U.VariableStatement]:["modifiers","declarationList"],[U.VariableDeclaration]:["name","exclamationToken","type","initializer"],[U.VariableDeclarationList]:["declarations"],[U.ObjectBindingPattern]:["elements"],[U.ArrayBindingPattern]:["elements"],[U.Parameter]:["modifiers","dotDotDotToken","name","questionToken","type","initializer"],[U.BindingElement]:["dotDotDotToken","propertyName","name","initializer"],[U.MissingDeclaration]:["modifiers"],[U.FunctionDeclaration]:["modifiers","asteriskToken","name","typeParameters","parameters","type","body"],[U.ClassDeclaration]:["modifiers","name","typeParameters","heritageClauses","members"],[U.ClassExpression]:["modifiers","name","typeParameters","heritageClauses","members"],[U.HeritageClause]:["types"],[U.InterfaceDeclaration]:["modifiers","name","typeParameters","heritageClauses","members"],[U.TypeAliasDeclaration]:["modifiers","name","typeParameters","type"],[U.JSTypeAliasDeclaration]:["modifiers","name","typeParameters","type"],[U.EnumMember]:["name","initializer"],[U.EnumDeclaration]:["modifiers","name","members"],[U.ModuleBlock]:["statements"],[U.ImportDeclaration]:["modifiers","importClause","moduleSpecifier","attributes"],[U.JSImportDeclaration]:["modifiers","importClause","moduleSpecifier","attributes"],[U.ExternalModuleReference]:["expression"],[U.NamespaceImport]:["name"],[U.NamedImports]:["elements"],[U.ExportAssignment]:["modifiers","type","expression"],[U.NamespaceExportDeclaration]:["modifiers","name"],[U.NamespaceExport]:["name"],[U.NamedExports]:["elements"],[U.ExportSpecifier]:["propertyName","name"],[U.CallSignature]:["typeParameters","parameters","type"],[U.ConstructSignature]:["typeParameters","parameters","type"],[U.Constructor]:["modifiers","typeParameters","parameters","type","body"],[U.GetAccessor]:["modifiers","name","typeParameters","parameters","type","body"],[U.SetAccessor]:["modifiers","name","typeParameters","parameters","type","body"],[U.IndexSignature]:["modifiers","parameters","type"],[U.MethodSignature]:["modifiers","name","postfixToken","typeParameters","parameters","type"],[U.MethodDeclaration]:["modifiers","asteriskToken","name","postfixToken","typeParameters","parameters","type","body"],[U.PropertySignature]:["modifiers","name","postfixToken","type","initializer"],[U.PropertyDeclaration]:["modifiers","name","postfixToken","type","initializer"],[U.ClassStaticBlockDeclaration]:["modifiers","body"],[U.BinaryExpression]:["modifiers","left","type","operatorToken","right"],[U.PrefixUnaryExpression]:["operand"],[U.PostfixUnaryExpression]:["operand"],[U.YieldExpression]:["asteriskToken","expression"],[U.ArrowFunction]:["modifiers","typeParameters","parameters","type","equalsGreaterThanToken","body"],[U.FunctionExpression]:["modifiers","asteriskToken","name","typeParameters","parameters","type","body"],[U.AsExpression]:["expression","type"],[U.SatisfiesExpression]:["expression","type"],[U.ConditionalExpression]:["condition","questionToken","whenTrue","colonToken","whenFalse"],[U.PropertyAccessExpression]:["expression","questionDotToken","name"],[U.ElementAccessExpression]:["expression","questionDotToken","argumentExpression"],[U.CallExpression]:["expression","questionDotToken","typeArguments","arguments"],[U.NewExpression]:["expression","typeArguments","arguments"],[U.MetaProperty]:["name"],[U.NonNullExpression]:["expression"],[U.SpreadElement]:["expression"],[U.TemplateExpression]:["head","templateSpans"],[U.TemplateSpan]:["expression","literal"],[U.TaggedTemplateExpression]:["tag","questionDotToken","typeArguments","template"],[U.ParenthesizedExpression]:["expression"],[U.ArrayLiteralExpression]:["elements"],[U.ObjectLiteralExpression]:["properties"],[U.SpreadAssignment]:["expression"],[U.PropertyAssignment]:["modifiers","name","postfixToken","type","initializer"],[U.ShorthandPropertyAssignment]:["modifiers","name","postfixToken","type","equalsToken","objectAssignmentInitializer"],[U.DeleteExpression]:["expression"],[U.TypeOfExpression]:["expression"],[U.VoidExpression]:["expression"],[U.AwaitExpression]:["expression"],[U.TypeAssertionExpression]:["type","expression"],[U.UnionType]:["types"],[U.IntersectionType]:["types"],[U.ConditionalType]:["checkType","extendsType","trueType","falseType"],[U.TypeOperator]:["type"],[U.InferType]:["typeParameter"],[U.ArrayType]:["elementType"],[U.IndexedAccessType]:["objectType","indexType"],[U.TypeReference]:["typeName","typeArguments"],[U.ExpressionWithTypeArguments]:["expression","typeArguments"],[U.LiteralType]:["literal"],[U.TypePredicate]:["assertsModifier","parameterName","type"],[U.ImportAttribute]:["name","value"],[U.ImportAttributes]:["attributes"],[U.TypeQuery]:["exprName","typeArguments"],[U.MappedType]:["readonlyToken","typeParameter","nameType","questionToken","type","members"],[U.TypeLiteral]:["members"],[U.TupleType]:["elements"],[U.NamedTupleMember]:["dotDotDotToken","name","questionToken","type"],[U.OptionalType]:["type"],[U.RestType]:["type"],[U.ParenthesizedType]:["type"],[U.FunctionType]:["typeParameters","parameters","type"],[U.ConstructorType]:["modifiers","typeParameters","parameters","type"],[U.TemplateLiteralType]:["head","templateSpans"],[U.TemplateLiteralTypeSpan]:["type","literal"],[U.SyntheticExpression]:["tupleNameSource"],[U.PartiallyEmittedExpression]:["expression"],[U.JsxElement]:["openingElement","children","closingElement"],[U.JsxAttributes]:["properties"],[U.JsxNamespacedName]:["namespace","name"],[U.JsxOpeningElement]:["tagName","typeArguments","attributes"],[U.JsxSelfClosingElement]:["tagName","typeArguments","attributes"],[U.JsxFragment]:["openingFragment","children","closingFragment"],[U.JsxAttribute]:["name","initializer"],[U.JsxSpreadAttribute]:["expression"],[U.JsxClosingElement]:["tagName"],[U.JsxExpression]:["dotDotDotToken","expression"],[U.SyntaxList]:["children"],[U.JSDoc]:["comment","tags"],[U.JSDocTypeExpression]:["type"],[U.JSDocNonNullableType]:["type"],[U.JSDocNullableType]:["type"],[U.JSDocVariadicType]:["type"],[U.JSDocOptionalType]:["type"],[U.JSDocTypeTag]:["tagName","typeExpression","comment"],[U.JSDocUnknownTag]:["tagName","comment"],[U.JSDocTemplateTag]:["tagName","constraint","typeParameters","comment"],[U.JSDocReturnTag]:["tagName","typeExpression","comment"],[U.JSDocPublicTag]:["tagName","comment"],[U.JSDocPrivateTag]:["tagName","comment"],[U.JSDocProtectedTag]:["tagName","comment"],[U.JSDocReadonlyTag]:["tagName","comment"],[U.JSDocOverrideTag]:["tagName","comment"],[U.JSDocDeprecatedTag]:["tagName","comment"],[U.JSDocSeeTag]:["tagName","nameExpression","comment"],[U.JSDocImplementsTag]:["tagName","className","comment"],[U.JSDocAugmentsTag]:["tagName","className","comment"],[U.JSDocSatisfiesTag]:["tagName","typeExpression","comment"],[U.JSDocThrowsTag]:["tagName","typeExpression","comment"],[U.JSDocThisTag]:["tagName","typeExpression","comment"],[U.JSDocImportTag]:["tagName","importClause","moduleSpecifier","attributes","comment"],[U.JSDocCallbackTag]:["tagName","typeExpression","name","comment"],[U.JSDocOverloadTag]:["tagName","typeExpression","comment"],[U.JSDocTypedefTag]:["tagName","typeExpression","name","comment"],[U.JSDocSignature]:["typeParameters","parameters","type"],[U.JSDocNameReference]:["name"],[U.SourceFile]:["statements","endOfFileToken"],[U.ModuleDeclaration]:["modifiers","name","body"],[U.ImportEqualsDeclaration]:["modifiers","name","moduleReference"],[U.ExportDeclaration]:["modifiers","exportClause","moduleSpecifier","attributes"],[U.ImportType]:["argument","attributes","qualifier","typeArguments"],[U.ImportClause]:["name","namedBindings"],[U.ImportSpecifier]:["propertyName","name"],[U.JSDocLink]:["name"],[U.JSDocLinkPlain]:["name"],[U.JSDocLinkCode]:["name"],[U.TypeParameter]:["modifiers","name","constraint","expression","defaultType"],[U.SyntheticReferenceExpression]:["expression","thisArg"],[U.JSDocTypeLiteral]:["jsdocPropertyTags"],[U.JSDocParameterTag]:["tagName","name","typeExpression","comment"],[U.JSDocPropertyTag]:["tagName","name","typeExpression","comment"]},jV8={[U.ComputedPropertyName]:"expression",[U.Decorator]:"expression",[U.BreakStatement]:"label",[U.ContinueStatement]:"label",[U.ReturnStatement]:"expression",[U.CaseBlock]:"clauses",[U.ThrowStatement]:"expression",[U.ExpressionStatement]:"expression",[U.Block]:"statements",[U.VariableDeclarationList]:"declarations",[U.ObjectBindingPattern]:"elements",[U.ArrayBindingPattern]:"elements",[U.MissingDeclaration]:"modifiers",[U.HeritageClause]:"types",[U.ModuleBlock]:"statements",[U.ExternalModuleReference]:"expression",[U.NamespaceImport]:"name",[U.NamedImports]:"elements",[U.NamespaceExport]:"name",[U.NamedExports]:"elements",[U.PrefixUnaryExpression]:"operand",[U.PostfixUnaryExpression]:"operand",[U.MetaProperty]:"name",[U.NonNullExpression]:"expression",[U.SpreadElement]:"expression",[U.ParenthesizedExpression]:"expression",[U.ArrayLiteralExpression]:"elements",[U.ObjectLiteralExpression]:"properties",[U.SpreadAssignment]:"expression",[U.DeleteExpression]:"expression",[U.TypeOfExpression]:"expression",[U.VoidExpression]:"expression",[U.AwaitExpression]:"expression",[U.UnionType]:"types",[U.IntersectionType]:"types",[U.TypeOperator]:"type",[U.InferType]:"typeParameter",[U.ArrayType]:"elementType",[U.LiteralType]:"literal",[U.ImportAttributes]:"attributes",[U.TypeLiteral]:"members",[U.TupleType]:"elements",[U.OptionalType]:"type",[U.RestType]:"type",[U.ParenthesizedType]:"type",[U.SyntheticExpression]:"tupleNameSource",[U.PartiallyEmittedExpression]:"expression",[U.JsxAttributes]:"properties",[U.JsxSpreadAttribute]:"expression",[U.JsxClosingElement]:"tagName",[U.SyntaxList]:"children",[U.JSDocTypeExpression]:"type",[U.JSDocNonNullableType]:"type",[U.JSDocNullableType]:"type",[U.JSDocVariadicType]:"type",[U.JSDocOptionalType]:"type",[U.JSDocNameReference]:"name",[U.JSDocLink]:"name",[U.JSDocLinkPlain]:"name",[U.JSDocLinkCode]:"name",[U.JSDocTypeLiteral]:"jsdocPropertyTags"}});var ox=5,nx=0,tx=4,ex=8,qm=12,Zm=16,Qm=20,WQ=24,$Q=28,UQ=32,RQ=36,zQ=40,iq=44,W1=28,y7=0,BQ=4,MQ=8,dq=12,_7=16,PQ=20,Ym=24,g7=4294967295,z6=0,l7=1073741824,i5=2147483648;var d5=u8(()=>{ax()});function Jm(q){switch(q){case U.Identifier:case U.PrivateIdentifier:case U.JsxText:case U.JSDocText:case U.JSDocLink:case U.JSDocLinkPlain:case U.JSDocLinkCode:return l7;case U.StringLiteral:case U.NumericLiteral:case U.BigIntLiteral:case U.RegularExpressionLiteral:case U.NoSubstitutionTemplateLiteral:case U.TemplateHead:case U.TemplateMiddle:case U.TemplateTail:case U.SourceFile:return i5;default:return z6}}function Hm(q){switch(q.kind){case U.Block:return(q.multiLine?1:0)<<24;case U.HeritageClause:return(q.token===U.ImplementsKeyword?1:0)<<24;case U.ExportAssignment:return(q.isExportEquals?1:0)<<24;case U.ExportSpecifier:return(q.isTypeOnly?1:0)<<24;case U.PrefixUnaryExpression:return(q.operator===U.MinusToken?1:q.operator===U.TildeToken?2:q.operator===U.ExclamationToken?3:q.operator===U.PlusPlusToken?4:q.operator===U.MinusMinusToken?5:0)<<24;case U.PostfixUnaryExpression:return(q.operator===U.MinusMinusToken?1:0)<<24;case U.MetaProperty:return(q.keywordToken===U.NewKeyword?1:0)<<24;case U.ArrayLiteralExpression:return(q.multiLine?1:0)<<24;case U.ObjectLiteralExpression:return(q.multiLine?1:0)<<24;case U.TypeOperator:return(q.operator===U.ReadonlyKeyword?1:q.operator===U.UniqueKeyword?2:0)<<24;case U.ImportAttributes:return(q.multiLine?1:0)<<24|(q.token===U.AssertKeyword?1:0)<<25;case U.JsxText:return(q.containsOnlyTriviaWhiteSpaces?1:0)<<24;case U.ModuleDeclaration:return(q.keyword===U.NamespaceKeyword?1:0)<<24;case U.ImportEqualsDeclaration:return(q.isTypeOnly?1:0)<<24;case U.ExportDeclaration:return(q.isTypeOnly?1:0)<<24;case U.ImportType:return(q.isTypeOf?1:0)<<24;case U.ImportClause:return(q.phaseModifier===U.TypeKeyword?1:q.phaseModifier===U.DeferKeyword?2:0)<<24;case U.ImportSpecifier:return(q.isTypeOnly?1:0)<<24;case U.JSDocTypeLiteral:return(q.isArrayType?1:0)<<24;case U.JSDocParameterTag:case U.JSDocPropertyTag:return(q.isBracketed?1:0)<<24|(q.isNameFirst?1:0)<<25}return 0}var Xm=u8(()=>{s6();d5()});class nX{buf;view;pos;constructor(q=256){this.buf=new Uint8Array(q),this.view=new DataView(this.buf.buffer),this.pos=0}ensure(q){if(this.pos+q>this.buf.length){let Z=this.buf.length*2;while(Z<this.pos+q)Z*=2;let Q=new Uint8Array(Z);Q.set(this.buf),this.buf=Q,this.view=new DataView(this.buf.buffer)}}writeArrayHeader(q){if(q<=15)this.ensure(1),this.buf[this.pos++]=144|q;else if(q<=65535)this.ensure(3),this.buf[this.pos++]=220,this.view.setUint16(this.pos,q,!1),this.pos+=2;else this.ensure(5),this.buf[this.pos++]=221,this.view.setUint32(this.pos,q,!1),this.pos+=4}writeUint(q){if(q<=127)this.ensure(1),this.buf[this.pos++]=q;else if(q<=255)this.ensure(2),this.buf[this.pos++]=204,this.buf[this.pos++]=q;else if(q<=65535)this.ensure(3),this.buf[this.pos++]=205,this.view.setUint16(this.pos,q,!1),this.pos+=2;else this.ensure(5),this.buf[this.pos++]=206,this.view.setUint32(this.pos,q,!1),this.pos+=4}writeString(q){let Z=IV8.encode(q),Q=Z.length;if(Q<=31)this.ensure(1+Q),this.buf[this.pos++]=160|Q;else if(Q<=255)this.ensure(2+Q),this.buf[this.pos++]=217,this.buf[this.pos++]=Q;else if(Q<=65535)this.ensure(3+Q),this.buf[this.pos++]=218,this.view.setUint16(this.pos,Q,!1),this.pos+=2;else this.ensure(5+Q),this.buf[this.pos++]=219,this.view.setUint32(this.pos,Q,!1),this.pos+=4;this.buf.set(Z,this.pos),this.pos+=Q}writeBool(q){this.ensure(1),this.buf[this.pos++]=q?195:194}finish(){return this.buf.subarray(0,this.pos)}}class sq{buf;view;pos;constructor(q,Z=0){this.buf=q,this.view=new DataView(q.buffer,q.byteOffset,q.byteLength),this.pos=Z}readArrayHeader(){let q=this.buf[this.pos++];if((q&240)===144)return q&15;if(q===220){let Z=this.view.getUint16(this.pos,!1);return this.pos+=2,Z}if(q===221){let Z=this.view.getUint32(this.pos,!1);return this.pos+=4,Z}throw Error(`Expected array header, got 0x${q.toString(16)}`)}readUint(){let q=this.buf[this.pos++];if(q<=127)return q;if(q===204)return this.buf[this.pos++];if(q===205){let Z=this.view.getUint16(this.pos,!1);return this.pos+=2,Z}if(q===206){let Z=this.view.getUint32(this.pos,!1);return this.pos+=4,Z}throw Error(`Expected uint, got 0x${q.toString(16)}`)}readString(){let q=this.buf[this.pos++],Z;if((q&224)===160)Z=q&31;else if(q===217)Z=this.buf[this.pos++];else if(q===218)Z=this.view.getUint16(this.pos,!1),this.pos+=2;else if(q===219)Z=this.view.getUint32(this.pos,!1),this.pos+=4;else throw Error(`Expected string, got 0x${q.toString(16)}`);let Q=DV8.decode(this.buf.subarray(this.pos,this.pos+Z));return this.pos+=Z,Q}readBool(){let q=this.buf[this.pos++];if(q===195)return!0;if(q===194)return!1;throw Error(`Expected bool, got 0x${q.toString(16)}`)}}var IV8,DV8;var tX=u8(()=>{IV8=new TextEncoder,DV8=new TextDecoder});class Um{parts;byteLen;offsets;constructor(){this.parts=[],this.byteLen=0,this.offsets=[]}add(q){let Z=this.offsets.length,Y=Wm().encode(q).length,J=this.byteLen;return this.parts.push(q),this.byteLen+=Y,this.offsets.push(J,J+Y),Z}encode(){let Z=Wm().encode(this.parts.join("")),Q=new Uint8Array(this.offsets.length*4),Y=new DataView(Q.buffer);for(let H=0;H<this.offsets.length;H++)Y.setUint32(H*4,this.offsets[H],!0);let J=new Uint8Array(Q.length+Z.length);return J.set(Q,0),J.set(Z,Q.length),J}stringByteLength(){return this.byteLen}offsetsCount(){return this.offsets.length}}function Wm(){return CV8??=new TextEncoder}function EV8(q){let Z=q.kind;if(Z===U.JSDocParameterTag||Z===U.JSDocPropertyTag){let H=q;if(H.isNameFirst)return a6(H.tagName)<<0|a6(H.name)<<1|a6(H.typeExpression)<<2|a6(H.comment)<<3;return a6(H.tagName)<<0|a6(H.typeExpression)<<1|a6(H.name)<<2|a6(H.comment)<<3}let Q=h7[Z];if(!Q)return 0;let Y=q,J=0;for(let H=0;H<Q.length;H++){let X=Q[H];if(X!==void 0&&Rm(Y[X]))J|=1<<H}return J}function a6(q){return Rm(q)?1:0}function Rm(q){if(q===void 0||q===null)return!1;return!0}function FV8(q,Z){return Z.add(q.text??"")}function eX(q,Z){if(!q||q.length===0)return LQ;let Q=Z.finish().length;Z.writeArrayHeader(q.length);for(let Y of q)Z.writeArrayHeader(5),Z.writeUint(Y.pos),Z.writeUint(Y.end),Z.writeString(Y.fileName),Z.writeUint(Y.resolutionMode??0),Z.writeBool(Y.preserve??!1);return Q}function TV8(q,Z,Q,Y){let J=Q.length*4;if(q.kind===U.SourceFile){let H=q,X=Z.add(H.text),G=Z.add(H.fileName),W=Z.add(H.path),R=eX(H.referencedFiles,Y),B=eX(H.typeReferenceDirectives,Y),M=eX(H.libReferenceDirectives,Y);Q.push(X,G,W,H.languageVariant,H.scriptKind,R,B,M,LQ,LQ,LQ,0)}else if(q.kind===U.TemplateHead||q.kind===U.TemplateMiddle||q.kind===U.TemplateTail){let H=q,X=H.text??"",G=H.rawText??"",W=H.templateFlags??0,R=Z.add(X),B=Z.add(G);Q.push(R,B,W)}else{let H=q,X=H.text??"",G=H.tokenFlags??0,W=Z.add(X);Q.push(W,G)}return J}function $m(q,Z,Q,Y){let J=Jm(q.kind),H=Hm(q);switch(J){case z6:return J|H|EV8(q);case l7:return J|H|FV8(q,Z);case i5:return J|H|TV8(q,Z,Q,Y);default:throw Error("unreachable")}}function fV8(q){let Z=q.kind;if(Z===U.JSDocParameterTag||Z===U.JSDocPropertyTag)return q.isNameFirst?["tagName","name","typeExpression","comment"]:["tagName","typeExpression","name","comment"];return h7[Z]}function KV8(q){return Array.isArray(q)&&typeof q.pos==="number"&&typeof q.end==="number"}function zm(q){let Z=new Um,Q=[],Y=new nX,J=[];J.push(0,0,0,0,0,0,0);let H=0,X=0,G=0;function W(T){H++;let h=H;if(G!==0)J[G*Gm+Vm]=h;let N=$m(T,Z,Q,Y);J.push(T.kind,T.pos>=0?T.pos:0,T.end>=0?T.end:0,0,X,N,T.flags);let y=X,r=G;X=h,G=0,B(T),G=h,X=y}function R(T){if(!T)return;H++;let h=H;if(G!==0)J[G*Gm+Vm]=h;J.push(g7,T.pos>=0?T.pos:0,T.end>=0?T.end:0,0,X,T.length,0);let N=X;X=h,G=0;for(let y of T)W(y);G=h,X=N}function B(T){let h=fV8(T),N=T;if(h)for(let y of h){if(y===void 0)continue;let r=N[y];if(r===void 0||r===null)continue;if(KV8(r))R(r);else W(r)}}H++,X++;let M=$m(q,Z,Q,Y);J.push(q.kind,q.pos>=0?q.pos:0,q.end>=0?q.end:0,0,0,M,q.flags);let V=X;G=0,X=1,B(q),X=V;let $=new Uint8Array(Q.length*4),O=new DataView($.buffer);for(let T=0;T<Q.length;T++)O.setUint32(T*4,Q[T],!0);let w=Y.finish(),I=Z.encode(),C=new Uint8Array(J.length*4),E=new DataView(C.buffer);for(let T=0;T<J.length;T++)E.setUint32(T*4,J[T]>>>0,!0);let D=iq,f=iq+Z.offsetsCount()*4,v=f+Z.stringByteLength(),_=v+$.length,b=_+w.length,z=new Uint8Array(iq),P=new DataView(z.buffer),L=ox<<24;P.setUint32(nx,L,!0),P.setUint32(WQ,D,!0),P.setUint32($Q,f,!0),P.setUint32(UQ,v,!0),P.setUint32(RQ,_,!0),P.setUint32(zQ,b,!0);let A=new Uint8Array(z.length+I.length+$.length+w.length+C.length);return A.set(z,0),A.set(I,iq),A.set($,v),A.set(w,_),A.set(C,b),A}function Bm(q){return Buffer.from(q).toString("base64")}var Gm,Vm=3,LQ=4294967295,CV8;var Mm=u8(()=>{s6();Xm();tX();d5();Gm=W1/4});function qG(q){let Z=q.getUint32(tx,!0),Q=q.getUint32(ex,!0),Y=q.getUint32(qm,!0),J=q.getUint32(Zm,!0);return OQ(J)+OQ(Y)+OQ(Q)+OQ(Z)}function ZG(q){return q.getUint32(Qm,!0).toString()}function OQ(q){return(q>>>0).toString(16).padStart(8,"0")}function Am(q){switch(q){case U.StaticKeyword:return z0.Static;case U.PublicKeyword:return z0.Public;case U.ProtectedKeyword:return z0.Protected;case U.PrivateKeyword:return z0.Private;case U.AbstractKeyword:return z0.Abstract;case U.AccessorKeyword:return z0.Accessor;case U.ExportKeyword:return z0.Export;case U.DeclareKeyword:return z0.Ambient;case U.ConstKeyword:return z0.Const;case U.DefaultKeyword:return z0.Default;case U.AsyncKeyword:return z0.Async;case U.ReadonlyKeyword:return z0.Readonly;case U.OverrideKeyword:return z0.Override;case U.InKeyword:return z0.In;case U.OutKeyword:return z0.Out;case U.Decorator:return z0.Decorator;default:return z0.None}}class wQ{parent;view;index;_byteIndex;constructor(q,Z,Q,Y){this.view=q,this.index=Z,this.parent=Q,this._byteIndex=Y}get kind(){return this.view.getUint32(this._byteIndex+y7,!0)}get pos(){return this.view.getInt32(this._byteIndex+BQ,!0)}get end(){return this.view.getInt32(this._byteIndex+MQ,!0)}get next(){return this.view.getUint32(this._byteIndex+dq,!0)}get parentIndex(){return this.view.getUint32(this._byteIndex+_7,!0)}get data(){return this.view.getUint32(this._byteIndex+PQ,!0)}get dataType(){return this.data&Lm}get childMask(){if(this.dataType!==z6)return-1;return this.data&Om}getFileText(q,Z){return this.sourceFile._decoder.decode(new Uint8Array(this.view.buffer,this.view.byteOffset+this.sourceFile._offsetStringTable+q,Z-q))}get sourceFile(){throw Error("sourceFile not available on base")}}var Pm,Lm=3221225472,Om=255,wm=16777215,x7=16777215;var AQ=u8(()=>{s6();d5();Pm=[0,1,1,2,1,2,2,3,1,2,2,3,2,3,3,4,1,2,2,3,2,3,3,4,2,3,3,4,3,4,4,5,1,2,2,3,2,3,3,4,2,3,3,4,3,4,4,5,2,3,3,4,3,4,4,5,3,4,4,5,4,5,5,6,1,2,2,3,2,3,3,4,2,3,3,4,3,4,4,5,2,3,3,4,3,4,4,5,3,4,4,5,4,5,5,6,2,3,3,4,3,4,4,5,3,4,4,5,4,5,5,6,3,4,4,5,4,5,5,6,4,5,5,6,5,6,6,7,1,2,2,3,2,3,3,4,2,3,3,4,3,4,4,5,2,3,3,4,3,4,4,5,3,4,4,5,4,5,5,6,2,3,3,4,3,4,4,5,3,4,4,5,4,5,5,6,3,4,4,5,4,5,5,6,4,5,5,6,5,6,6,7,2,3,3,4,3,4,4,5,3,4,4,5,4,5,5,6,3,4,4,5,4,5,5,6,4,5,5,6,5,6,6,7,3,4,4,5,4,5,5,6,4,5,5,6,5,6,6,7,4,5,5,6,5,6,6,7,5,6,6,7,6,7,7,8]});var s5,o6;var QG=u8(()=>{s6();AQ();d5();s5=class s5 extends Array{parent;hasTrailingComma;transformFlags=0;view;index;_byteIndex;get pos(){return this.view.getUint32(this._byteIndex+BQ,!0)}get end(){return this.view.getUint32(this._byteIndex+MQ,!0)}get next(){return this.view.getUint32(this._byteIndex+dq,!0)}get data(){return this.view.getUint32(this._byteIndex+PQ,!0)}sourceFile;constructor(q,Z,Q,Y,J){super();this.view=q,this.index=Z,this.parent=Q,this.sourceFile=Y,this._byteIndex=J+Z*W1,this.length=this.data;let H=this.length;for(let X=16;X<H;X++)Object.defineProperty(this,X,{get(){return this.at(X)}})}get 0(){return this.at(0)}get 1(){return this.at(1)}get 2(){return this.at(2)}get 3(){return this.at(3)}get 4(){return this.at(4)}get 5(){return this.at(5)}get 6(){return this.at(6)}get 7(){return this.at(7)}get 8(){return this.at(8)}get 9(){return this.at(9)}get 10(){return this.at(10)}get 11(){return this.at(11)}get 12(){return this.at(12)}get 13(){return this.at(13)}get 14(){return this.at(14)}get 15(){return this.at(15)}*[Symbol.iterator](){if(!this.length)return;let q=this.index+1;while(q){let Z=this.getOrCreateChildAtNodeIndex(q);q=Z.next,yield Z}}forEachNode(q){if(!this.length)return;let Z=this.index+1;while(Z){let Q=this.getOrCreateChildAtNodeIndex(Z);Z=Q.next;let Y=q(Q);if(Y)return Y}}at(q){if(!Number.isInteger(q))return;if(q>=this.data||q<0&&-q>this.data)return;if(q<0)q=this.length+q;let Z=this.index+1;for(let Q=0;Q<q;Q++)Z=this.getOrCreateChildAtNodeIndex(Z).next;return this.getOrCreateChildAtNodeIndex(Z)}getOrCreateChildAtNodeIndex(q){let Z=this.sourceFile.nodes[q];if(!Z){if(this.view.getUint32(this.sourceFile._offsetNodes+q*W1+y7,!0)===g7)throw Error("NodeList cannot directly contain another NodeList");Z=new o6(this.view,q,this.parent,this.sourceFile,this.sourceFile._offsetNodes),this.sourceFile.nodes[q]=Z}return Z}__print(){let q=[];return q.push("kind: NodeList"),q.push(`index: ${this.index}`),q.push(`byteIndex: ${this._byteIndex}`),q.push(`length: ${this.length}`),q.join(`
|
|
15
|
-
`)}};o6=class o6 extends wQ{static NODE_LEN=W1;get sourceFile(){return this._sourceFile}_sourceFile;get id(){return`${this.index}.${this.kind}.${this.sourceFile.path}`}constructor(q,Z,Q,Y,J){super(q,Z,Q,J+Z*W1);this._sourceFile=Y}forEachChild(q,Z){if(this.hasChildren()){let Q=this.index+1;do{let Y=this.getOrCreateChildAtNodeIndex(Q);if(Y instanceof s5){if(Z){let H=Z(Y);if(H)return H}let J=Y.forEachNode(q);if(J)return J}else if(Y.kind!==U.JSDoc){let J=q(Y);if(J)return J}Q=Y.next}while(Q)}}get jsDoc(){if(!this.hasChildren())return;let q,Z=this.index+1;do{let Q=this.getOrCreateChildAtNodeIndex(Z);if(!(Q instanceof s5)&&Q.kind===U.JSDoc)(q??=[]).push(Q);Z=Q.next}while(Z);return q}getSourceFile(){return this.sourceFile}getString(q){let Z=this.sourceFile._offsetStringTableOffsets,Q=this.view.getUint32(Z+q*4,!0),Y=this.view.getUint32(Z+(q+1)*4,!0),J=this.sourceFile._offsetStringTable,H=new Uint8Array(this.view.buffer,this.view.byteOffset+J+Q,Y-Q);return this.sourceFile._decoder.decode(H)}getOrCreateChildAtNodeIndex(q){let Z=this.sourceFile.nodes[q];if(!Z){let Q=this.sourceFile._offsetNodes,Y=this.view.getUint32(Q+q*W1+y7,!0),J=this.sourceFile;Z=Y===g7?new s5(this.view,q,this,J,Q):new o6(this.view,q,this,J,Q),J.nodes[q]=Z}return Z}hasChildren(){if(this._byteIndex>=this.view.byteLength-W1)return!1;return this.view.getUint32(this.sourceFile._offsetNodes+(this.index+1)*W1+_7,!0)===this.index}getNamedChild(q){let Z=this.kind;if(Z===U.JSDocPropertyTag){let J;switch(q){case"name":J=this.isNameFirst?0:1;break;case"typeExpression":J=this.isNameFirst?1:0;break;default:return}return this.getChildAtOrder(J)}else if(Z===U.JSDocParameterTag){let J;switch(q){case"tagName":J=0;break;case"name":J=this.isNameFirst?1:2;break;case"typeExpression":J=this.isNameFirst?2:1;break;case"comment":J=3;break;default:return}return this.getChildAtOrder(J)}let Q=h7[Z];if(!Q)return;let Y=Q.indexOf(q);if(Y===-1)return;return this.getChildAtOrder(Y)}getChildAtOrder(q){let Z=this.childMask;if(!(Z&1<<q))return;let Q=q-Pm[~(Z|255<<q&255)&255],Y=this.index+1;for(let J=0;J<Q;J++)Y=this.view.getUint32(this.sourceFile._offsetNodes+Y*W1+dq,!0);return this.getOrCreateChildAtNodeIndex(Y)}__print(){let q=[];q.push(`index: ${this.index}`),q.push(`byteIndex: ${this._byteIndex}`),q.push(`kind: ${U[this.kind]}`),q.push(`pos: ${this.pos}`),q.push(`end: ${this.end}`),q.push(`next: ${this.next}`),q.push(`parent: ${this.parentIndex}`),q.push(`data: ${this.data.toString(2).padStart(32,"0")}`);let Z=this.dataType===z6?"children":this.dataType===l7?"string":"extended";if(q.push(`dataType: ${Z}`),this.dataType===z6)q.push(`childMask: ${this.childMask.toString(2).padStart(8,"0")}`),q.push(`childProperties: ${h7[this.kind]?.join(", ")}`);return q.join(`
|
|
16
|
-
`)}__printChildren(){let q=[],Z=this.index+1;while(Z){let Q=this.getOrCreateChildAtNodeIndex(Z);Z=Q.next,q.push(Q.__print())}return q.join(`
|
|
17
|
-
|
|
18
|
-
`)}__printSubtree(){let q=[this.__print()];return this.forEachChild(function Z(Q){q.push(Q.__print()),Q.forEachChild(Z)},(Z)=>{q.push(Z.__print())}),q.join(`
|
|
19
|
-
|
|
20
|
-
`)}get containsOnlyTriviaWhiteSpaces(){return(this.data&16777216)!==0}get isArrayType(){return(this.data&16777216)!==0}get isBracketed(){return(this.data&16777216)!==0}get isExportEquals(){return(this.data&16777216)!==0}get isNameFirst(){return(this.data&33554432)!==0}get isTypeOf(){return(this.data&16777216)!==0}get isTypeOnly(){return(this.data&16777216)!==0}get multiLine(){return(this.data&16777216)!==0}get keyword(){switch(this.kind){case U.ModuleDeclaration:return this.data>>24&1?U.NamespaceKeyword:U.ModuleKeyword}}get keywordToken(){switch(this.kind){case U.MetaProperty:return this.data>>24&1?U.NewKeyword:U.ImportKeyword}}get operator(){switch(this.kind){case U.PrefixUnaryExpression:{let q=this.data>>24&7;if(q===1)return U.MinusToken;if(q===2)return U.TildeToken;if(q===3)return U.ExclamationToken;if(q===4)return U.PlusPlusToken;if(q===5)return U.MinusMinusToken;return U.PlusToken}case U.PostfixUnaryExpression:return this.data>>24&1?U.MinusMinusToken:U.PlusPlusToken;case U.TypeOperator:{let q=this.data>>24&3;if(q===1)return U.ReadonlyKeyword;if(q===2)return U.UniqueKeyword;return U.KeyOfKeyword}}}get phaseModifier(){switch(this.kind){case U.ImportClause:{let q=this.data>>24&3;if(q===0)return;return q===1?U.TypeKeyword:q===2?U.DeferKeyword:void 0}}}get token(){switch(this.kind){case U.HeritageClause:return this.data>>24&1?U.ImplementsKeyword:U.ExtendsKeyword;case U.ImportAttributes:return this.data>>25&1?U.AssertKeyword:U.WithKeyword}}get templateFlags(){switch(this.kind){case U.TemplateHead:case U.TemplateMiddle:case U.TemplateTail:let q=this.sourceFile._offsetExtendedData+(this.data&x7);return this.view.getUint32(q+8,!0)}}get tokenFlags(){switch(this.kind){case U.StringLiteral:case U.NumericLiteral:case U.BigIntLiteral:case U.RegularExpressionLiteral:let q=this.sourceFile._offsetExtendedData+(this.data&x7);return this.view.getUint32(q+4,!0);default:return 0}}get argument(){return this.getNamedChild("argument")}get argumentExpression(){return this.getNamedChild("argumentExpression")}get arguments(){return this.getNamedChild("arguments")}get assertsModifier(){return this.getNamedChild("assertsModifier")}get asteriskToken(){return this.getNamedChild("asteriskToken")}get attributes(){return this.getNamedChild("attributes")}get awaitModifier(){return this.getNamedChild("awaitModifier")}get block(){return this.getNamedChild("block")}get body(){return this.getNamedChild("body")}get caseBlock(){return this.getNamedChild("caseBlock")}get catchClause(){return this.getNamedChild("catchClause")}get checkType(){return this.getNamedChild("checkType")}get children(){return this.getNamedChild("children")}get className(){return this.getNamedChild("className")}get clauses(){return this.getNamedChild("clauses")}get closingElement(){return this.getNamedChild("closingElement")}get closingFragment(){return this.getNamedChild("closingFragment")}get colonToken(){return this.getNamedChild("colonToken")}get comment(){return this.getNamedChild("comment")}get condition(){return this.getNamedChild("condition")}get constraint(){return this.getNamedChild("constraint")}get declarationList(){return this.getNamedChild("declarationList")}get declarations(){return this.getNamedChild("declarations")}get defaultType(){return this.getNamedChild("defaultType")}get dotDotDotToken(){return this.getNamedChild("dotDotDotToken")}get elements(){return this.getNamedChild("elements")}get elementType(){return this.getNamedChild("elementType")}get elseStatement(){return this.getNamedChild("elseStatement")}get endOfFileToken(){return this.getNamedChild("endOfFileToken")}get equalsGreaterThanToken(){return this.getNamedChild("equalsGreaterThanToken")}get equalsToken(){return this.getNamedChild("equalsToken")}get exclamationToken(){return this.getNamedChild("exclamationToken")}get exportClause(){return this.getNamedChild("exportClause")}get expression(){return this.getNamedChild("expression")}get exprName(){return this.getNamedChild("exprName")}get extendsType(){return this.getNamedChild("extendsType")}get falseType(){return this.getNamedChild("falseType")}get finallyBlock(){return this.getNamedChild("finallyBlock")}get head(){return this.getNamedChild("head")}get heritageClauses(){return this.getNamedChild("heritageClauses")}get importClause(){return this.getNamedChild("importClause")}get incrementor(){return this.getNamedChild("incrementor")}get indexType(){return this.getNamedChild("indexType")}get initializer(){return this.getNamedChild("initializer")}get jsdocPropertyTags(){return this.getNamedChild("jsdocPropertyTags")}get label(){return this.getNamedChild("label")}get left(){return this.getNamedChild("left")}get literal(){return this.getNamedChild("literal")}get members(){return this.getNamedChild("members")}get modifiers(){return this.getNamedChild("modifiers")}get moduleReference(){return this.getNamedChild("moduleReference")}get moduleSpecifier(){return this.getNamedChild("moduleSpecifier")}get name(){return this.getNamedChild("name")}get namedBindings(){return this.getNamedChild("namedBindings")}get nameExpression(){return this.getNamedChild("nameExpression")}get namespace(){return this.getNamedChild("namespace")}get nameType(){return this.getNamedChild("nameType")}get objectAssignmentInitializer(){return this.getNamedChild("objectAssignmentInitializer")}get objectType(){return this.getNamedChild("objectType")}get openingElement(){return this.getNamedChild("openingElement")}get openingFragment(){return this.getNamedChild("openingFragment")}get operand(){return this.getNamedChild("operand")}get operatorToken(){return this.getNamedChild("operatorToken")}get parameterName(){return this.getNamedChild("parameterName")}get parameters(){return this.getNamedChild("parameters")}get postfixToken(){return this.getNamedChild("postfixToken")}get properties(){return this.getNamedChild("properties")}get propertyName(){return this.getNamedChild("propertyName")}get qualifier(){return this.getNamedChild("qualifier")}get questionDotToken(){return this.getNamedChild("questionDotToken")}get questionToken(){return this.getNamedChild("questionToken")}get readonlyToken(){return this.getNamedChild("readonlyToken")}get right(){return this.getNamedChild("right")}get statement(){return this.getNamedChild("statement")}get statements(){return this.getNamedChild("statements")}get tag(){return this.getNamedChild("tag")}get tagName(){return this.getNamedChild("tagName")}get tags(){return this.getNamedChild("tags")}get template(){return this.getNamedChild("template")}get templateSpans(){return this.getNamedChild("templateSpans")}get thenStatement(){return this.getNamedChild("thenStatement")}get thisArg(){return this.getNamedChild("thisArg")}get trueType(){return this.getNamedChild("trueType")}get tryBlock(){return this.getNamedChild("tryBlock")}get tupleNameSource(){return this.getNamedChild("tupleNameSource")}get type(){return this.getNamedChild("type")}get typeArguments(){return this.getNamedChild("typeArguments")}get typeExpression(){return this.getNamedChild("typeExpression")}get typeName(){return this.getNamedChild("typeName")}get typeParameter(){return this.getNamedChild("typeParameter")}get typeParameters(){return this.getNamedChild("typeParameters")}get types(){return this.getNamedChild("types")}get value(){return this.getNamedChild("value")}get variableDeclaration(){return this.getNamedChild("variableDeclaration")}get whenFalse(){return this.getNamedChild("whenFalse")}get whenTrue(){return this.getNamedChild("whenTrue")}get text(){switch(this.kind){case U.Identifier:case U.PrivateIdentifier:case U.JsxText:case U.JSDocText:case U.JSDocLink:case U.JSDocLinkPlain:case U.JSDocLinkCode:{let q=this.data&wm;return this.getString(q)}case U.StringLiteral:case U.NumericLiteral:case U.BigIntLiteral:case U.RegularExpressionLiteral:case U.NoSubstitutionTemplateLiteral:case U.TemplateHead:case U.TemplateMiddle:case U.TemplateTail:case U.SourceFile:{let q=this.sourceFile._offsetExtendedData+(this.data&x7),Z=this.view.getUint32(q,!0);return this.getString(Z)}}}get rawText(){switch(this.kind){case U.TemplateHead:case U.TemplateMiddle:case U.TemplateTail:let q=this.sourceFile._offsetExtendedData+(this.data&x7),Z=this.view.getUint32(q+4,!0);return this.getString(Z)}}get flags(){return this.view.getUint32(this._byteIndex+Ym,!0)}get modifierFlags(){let q=this.modifiers;if(!q)return z0.None;let Z=z0.None;for(let Q of q)Z|=Am(Q.kind);return Z}}});function jm(q){let Z=q.indexOf(".");if(Z===-1)throw Error(`Invalid node handle: ${q}`);let Q=q.indexOf(".",Z+1);if(Q===-1)throw Error(`Invalid node handle: ${q}`);return{index:parseInt(q.slice(0,Z),10),kind:parseInt(q.slice(Z+1,Q),10),path:q.slice(Q+1)}}function JG(q){return new jQ(q,new TextDecoder)}function Q1(q){if(!(q instanceof o6))throw Error("getNodeId requires a RemoteNode");return q.id}var YG=4294967295,jQ;var Im=u8(()=>{s6();tX();QG();AQ();d5();QG();AQ();jQ=class jQ extends o6{nodes;_offsetNodes;_offsetStringTableOffsets;_offsetStringTable;_offsetExtendedData;_offsetStructuredData;_decoder;constructor(q,Z){let Q=new DataView(q.buffer,q.byteOffset,q.byteLength),Y=Q.getUint32(zQ,!0);super(Q,1,void 0,void 0,Y);this._sourceFile=this,this._offsetNodes=Y,this._offsetStringTableOffsets=Q.getUint32(WQ,!0),this._offsetStringTable=Q.getUint32($Q,!0),this._offsetExtendedData=Q.getUint32(UQ,!0),this._offsetStructuredData=Q.getUint32(RQ,!0),this._decoder=Z,this.nodes=Array((Q.byteLength-Y)/W1),this.nodes[1]=this}readFileReferences(q){if(q===YG)return[];let Z=new Uint8Array(this.view.buffer,this.view.byteOffset,this.view.byteLength),Q=new sq(Z,this._offsetStructuredData+q),Y=Q.readArrayHeader(),J=[];for(let H=0;H<Y;H++){Q.readArrayHeader();let X=Q.readUint(),G=Q.readUint(),W=Q.readString(),R=Q.readUint(),B=Q.readBool();J.push({pos:X,end:G,fileName:W,resolutionMode:R,preserve:B})}return J}readNodeIndexArray(q){if(q===YG)return[];let Z=new Uint8Array(this.view.buffer,this.view.byteOffset,this.view.byteLength),Q=new sq(Z,this._offsetStructuredData+q),Y=Q.readArrayHeader(),J=[];for(let H=0;H<Y;H++){let X=Q.readUint();J.push(this.getOrCreateNodeAtIndex(X))}return J}readStringArray(q){if(q===YG)return[];let Z=new Uint8Array(this.view.buffer,this.view.byteOffset,this.view.byteLength),Q=new sq(Z,this._offsetStructuredData+q),Y=Q.readArrayHeader(),J=[];for(let H=0;H<Y;H++)J.push(Q.readString());return J}getOrCreateNodeAtIndex(q){let Z=this.nodes[q];if(!Z){let Q=this.view.getUint32(this._offsetNodes+q*W1+_7,!0);while(Q!==q&&this.view.getUint32(this._offsetNodes+Q*W1+y7,!0)===g7)Q=this.view.getUint32(this._offsetNodes+Q*W1+_7,!0);let Y=Q===q?this:this.getOrCreateNodeAtIndex(Q);Z=new o6(this.view,q,Y,this,this._offsetNodes),this.nodes[q]=Z}return Z}get extendedDataOffset(){return this._offsetExtendedData+(this.data&x7)}get fileName(){let q=this.view.getUint32(this.extendedDataOffset+4,!0);return this.getString(q)}get path(){let q=this.view.getUint32(this.extendedDataOffset+8,!0);return this.getString(q)}get languageVariant(){return this.view.getUint32(this.extendedDataOffset+12,!0)}get scriptKind(){return this.view.getUint32(this.extendedDataOffset+16,!0)}get referencedFiles(){let q=this.view.getUint32(this.extendedDataOffset+20,!0);return this.readFileReferences(q)}get typeReferenceDirectives(){let q=this.view.getUint32(this.extendedDataOffset+24,!0);return this.readFileReferences(q)}get libReferenceDirectives(){let q=this.view.getUint32(this.extendedDataOffset+28,!0);return this.readFileReferences(q)}get imports(){let q=this.view.getUint32(this.extendedDataOffset+32,!0);return this.readNodeIndexArray(q)}get moduleAugmentations(){let q=this.view.getUint32(this.extendedDataOffset+36,!0);return this.readNodeIndexArray(q)}get ambientModuleNames(){let q=this.view.getUint32(this.extendedDataOffset+40,!0);return this.readStringArray(q)}get externalModuleIndicator(){let q=this.view.getUint32(this.extendedDataOffset+44,!0);if(q===0)return;if(q===this.index)return!0;return this.getOrCreateNodeAtIndex(q)}get isDeclarationFile(){return(this.flags&R6.Ambient)!==0}}});class XG{symbols=new Map;types=new Map;signatures=new Map;factories;constructor(q){this.factories=q}getOrCreateSymbol(q){let Z=this.symbols.get(q.id);if(Z)return Z;return Z=this.factories.createSymbol(q),this.symbols.set(q.id,Z),Z}getOrCreateType(q){let Z=this.types.get(q.id);if(Z)return Z;return Z=this.factories.createType(q),this.types.set(q.id,Z),Z}getOrCreateSignature(q){let Z=this.signatures.get(q.id);if(Z)return Z;return Z=this.factories.createSignature(q),this.signatures.set(q.id,Z),Z}getType(q){return this.types.get(q)}getSymbol(q){return this.symbols.get(q)}getSignature(q){return this.signatures.get(q)}clear(){this.symbols.clear(),this.types.clear(),this.signatures.clear()}}function NV8(q){return q===47||q===92}function GG(q){return q>=97&&q<=122||q>=65&&q<=90}function kV8(q,Z){let Q=q.charCodeAt(Z);if(Q===58)return Z+1;if(Q===37&&q.charCodeAt(Z+1)===51){let Y=q.charCodeAt(Z+2);if(Y===97||Y===65)return Z+3}return-1}function VG(q){let Z=Fm(q);return Z<0?~Z:Z}function Fm(q){if(!q)return 0;let Z=q.charCodeAt(0);if(Z===47||Z===92){if(q.charCodeAt(1)!==Z)return 1;let Y=q.indexOf(Z===47?"/":"\\",2);if(Y<0)return q.length;return Y+1}if(GG(Z)&&q.charCodeAt(1)===58){let Y=q.charCodeAt(2);if(Y===47||Y===92)return 3;if(q.length===2)return 2}let Q=q.indexOf("://");if(Q!==-1){let Y=Q+3,J=q.indexOf("/",Y);if(J!==-1){let H=q.slice(0,Q),X=q.slice(Y,J);if(H==="file"&&(X===""||X==="localhost")&&GG(q.charCodeAt(J+1))){let G=kV8(q,J+2);if(G!==-1){if(q.charCodeAt(G)===47)return~(G+1);if(G===q.length)return~G}}return~(J+1)}return~q.length}return 0}function WG(q){return q.length>0&&NV8(q.charCodeAt(q.length-1))}function Cm(q){if(WG(q))return q.substr(0,q.length-1);return q}function Tm(q){if(!WG(q))return q+"/";return q}function IQ(q){return q.includes("\\")?q.replace(vV8,"/"):q}function SV8(q,...Z){if(q)q=IQ(q);for(let Q of Z){if(!Q)continue;if(Q=IQ(Q),!q||VG(Q)!==0)q=Q;else q=Tm(q)+Q}return q}function fm(q){if(!Dm.test(q))return q;let Z=q.replace(/\/\.\//g,"/");if(Z.startsWith("./"))Z=Z.slice(2);if(Z!==q){if(q=Z,!Dm.test(q))return q}return}function Km(q,Z){let Q=VG(q);if(Q===0&&Z)q=SV8(Z,q),Q=VG(q);else q=IQ(q);let Y=fm(q);if(Y!==void 0)return Y.length>Q?Cm(Y):Y;let J=q.length,H=q.substring(0,Q),X,G=Q,W=G,R=G,B=Q!==0;while(G<J){W=G;let M=q.charCodeAt(G);while(M===47&&G+1<J)G++,M=q.charCodeAt(G);if(G>W)X??=q.substring(0,W-1),W=G;let V=q.indexOf("/",G+1);if(V===-1)V=J;let $=V-W;if($===1&&q.charCodeAt(G)===46)X??=q.substring(0,R);else if($===2&&q.charCodeAt(G)===46&&q.charCodeAt(G+1)===46)if(!B)if(X!==void 0)X+=X.length===Q?"..":"/..";else R=G+2;else if(X===void 0)if(R-2>=0)X=q.substring(0,Math.max(Q,q.lastIndexOf("/",R-2)));else X=q.substring(0,R);else{let O=X.lastIndexOf("/");if(O!==-1)X=X.substring(0,Math.max(Q,O));else X=H;if(X.length===Q)B=Q!==0}else if(X!==void 0){if(X.length!==Q)X+="/";B=!0,X+=q.substring(W,V)}else B=!0,R=V;G=V+1}return X??(J>Q?Cm(q):q)}function uV8(q){q=IQ(q);let Z=fm(q);if(Z!==void 0)return Z;return Z=Km(q,""),Z&&WG(q)?Tm(Z):Z}function bV8(q){return Fm(q)>0}function vm(q,Z,Q){let Y=bV8(q)?uV8(q):Km(q,Z);return Q(Y)}function Nm(q){return q?hV8:yV8}function hV8(q){return q}function yV8(q){return q.toLowerCase()}function km(q){return q.startsWith(_V8)}function gV8(q){return q.startsWith("^/")}function Sm(q){if(q.length>=2&&GG(q.charCodeAt(0))&&q.charCodeAt(1)===58)return[q.substring(0,2).toLowerCase(),q.substring(2),!0];return["",q,!1]}function Em(q){let Z=q;for(let[Q,Y]of Object.entries(lV8))Z=Z.replaceAll(Q,Y);return Z}function $G(q){if(km(q))return q;if(gV8(q)){let H=q.substring(2),X=H.indexOf("/");if(X===-1)throw Error("invalid file name: "+q);let G=H.substring(0,X),W=H.substring(X+1),R=W.indexOf("/");if(R===-1)throw Error("invalid file name: "+q);let B=W.substring(0,R),M=W.substring(R+1);if(B==="ts-nul-authority")return G+":"+M;return G+"://"+B+"/"+M}let[Z,Q]=Sm(q);if(Z!=="")Z="/"+Em(Z);if(Q.startsWith("//"))Q=Q.substring(2);let J=Q.split("/").map((H)=>Em(encodeURIComponent(H)));return"file://"+Z+J.join("/")}function DQ(q){if(km(q))return q;if(q.startsWith("file://")){let H;try{H=new URL(q)}catch{throw Error("invalid file URI: "+q)}if(H.host!=="")return"//"+H.host+H.pathname;let X=decodeURIComponent(H.pathname);if(X.length>=3&&X.charCodeAt(0)===47){let[G,W,R]=Sm(X.substring(1));if(R)return G+W}return X}let Z=q.indexOf(":");if(Z===-1)throw Error("invalid URI: "+q);let Q=q.substring(0,Z),Y=q.substring(Z+1),J="ts-nul-authority";if(Y.startsWith("//")){let H=Y.substring(2),X=H.indexOf("/");if(X===-1)throw Error("invalid URI: "+q);J=H.substring(0,X),Y=H.substring(X+1)}return"^/"+Q+"/"+J+"/"+Y}var vV8,Dm,_V8="bundled:///",lV8;var aq=u8(()=>{vV8=/\\/g,Dm=/\/\/|(?:^|\/)\.\.?(?:$|\/)/;lV8={":":"%3A","/":"%2F","?":"%3F","#":"%23","[":"%5B","]":"%5D","@":"%40","!":"%21",$:"%24","&":"%26","'":"%27","(":"%28",")":"%29","*":"%2A","+":"%2B",",":"%2C",";":"%3B","=":"%3D"," ":"%20"}});function UG(q){if(typeof q==="string")return q;return DQ(q.uri)}var um=u8(()=>{aq()});function oq(q,Z){return`${q}:${Z}`}class RG{cache=new Map;snapshotProjectPaths=new Map;getRetained(q,Z,Q){let Y=this.cache.get(q);if(!Y)return;let J=oq(Z,Q);return Y.find((X)=>X.refs.has(J))?.file}set(q,Z,Q,Y,J,H){let X=this.cache.get(q);if(!X)X=[],this.cache.set(q,X);let G=oq(J,H),W=X.find((R)=>R.parseOptionsKey===Q&&R.contentHash===Y);if(W)return W.refs.add(G),this.trackPath(J,H,q),W.file;return X.push({file:Z,contentHash:Y,parseOptionsKey:Q,refs:new Set([G])}),this.trackPath(J,H,q),Z}retainForSnapshot(q,Z,Q){let Y=this.snapshotProjectPaths.get(Z);if(!Y)return;let J=new Set(Q?.removedProjects??[]),H=Q?.changedProjects??{};for(let[X,G]of Y){if(J.has(X))continue;let W=H[X],R;if(W){R=new Set;for(let V of W.changedFiles??[])R.add(V);for(let V of W.deletedFiles??[])R.add(V)}let B=oq(Z,X),M=oq(q,X);for(let V of G){if(R?.has(V))continue;let $=this.cache.get(V);if(!$)continue;for(let O of $)if(O.refs.has(B))O.refs.add(M),this.trackPath(q,X,V)}}}releaseSnapshot(q){let Z=this.snapshotProjectPaths.get(q);if(!Z)return;for(let[Q,Y]of Z){let J=oq(q,Q);for(let H of Y){let X=this.cache.get(H);if(!X)continue;for(let G=X.length-1;G>=0;G--)if(X[G].refs.delete(J),X[G].refs.size===0)X.splice(G,1);if(X.length===0)this.cache.delete(H)}}this.snapshotProjectPaths.delete(q)}trackPath(q,Z,Q){let Y=this.snapshotProjectPaths.get(q);if(!Y)Y=new Map,this.snapshotProjectPaths.set(q,Y);let J=Y.get(Z);if(!J)J=new Set,Y.set(Z,J);J.add(Q)}clear(){this.cache.clear(),this.snapshotProjectPaths.clear()}get size(){return this.cache.size}has(q){return this.cache.has(q)}}var a5=k((ym)=>{Object.defineProperty(ym,"__esModule",{value:!0});ym.boolean=xV8;ym.string=bm;ym.number=mV8;ym.error=pV8;ym.func=cV8;ym.array=hm;ym.stringArray=rV8;function xV8(q){return q===!0||q===!1}function bm(q){return typeof q==="string"||q instanceof String}function mV8(q){return typeof q==="number"||q instanceof Number}function pV8(q){return q instanceof Error}function cV8(q){return typeof q==="function"}function hm(q){return Array.isArray(q)}function rV8(q){return hm(q)&&q.every((Z)=>bm(Z))}});var MG=k((C8)=>{var eV8=C8&&C8.__createBinding||(Object.create?function(q,Z,Q,Y){if(Y===void 0)Y=Q;var J=Object.getOwnPropertyDescriptor(Z,Q);if(!J||("get"in J?!Z.__esModule:J.writable||J.configurable))J={enumerable:!0,get:function(){return Z[Q]}};Object.defineProperty(q,Y,J)}:function(q,Z,Q,Y){if(Y===void 0)Y=Q;q[Y]=Z[Q]}),qW8=C8&&C8.__setModuleDefault||(Object.create?function(q,Z){Object.defineProperty(q,"default",{enumerable:!0,value:Z})}:function(q,Z){q.default=Z}),ZW8=C8&&C8.__importStar||function(){var q=function(Z){return q=Object.getOwnPropertyNames||function(Q){var Y=[];for(var J in Q)if(Object.prototype.hasOwnProperty.call(Q,J))Y[Y.length]=J;return Y},q(Z)};return function(Z){if(Z&&Z.__esModule)return Z;var Q={};if(Z!=null){for(var Y=q(Z),J=0;J<Y.length;J++)if(Y[J]!=="default")eV8(Q,Z,Y[J])}return qW8(Q,Z),Q}}();Object.defineProperty(C8,"__esModule",{value:!0});C8.Message=C8.NotificationType9=C8.NotificationType8=C8.NotificationType7=C8.NotificationType6=C8.NotificationType5=C8.NotificationType4=C8.NotificationType3=C8.NotificationType2=C8.NotificationType1=C8.NotificationType0=C8.NotificationType=C8.RequestType9=C8.RequestType8=C8.RequestType7=C8.RequestType6=C8.RequestType5=C8.RequestType4=C8.RequestType3=C8.RequestType2=C8.RequestType1=C8.RequestType=C8.RequestType0=C8.AbstractMessageSignature=C8.ParameterStructures=C8.ResponseError=C8.ErrorCodes=void 0;var m7=ZW8(a5()),zG;(function(q){q.ParseError=-32700,q.InvalidRequest=-32600,q.MethodNotFound=-32601,q.InvalidParams=-32602,q.InternalError=-32603,q.jsonrpcReservedErrorRangeStart=-32099,q.serverErrorStart=-32099,q.MessageWriteError=-32099,q.MessageReadError=-32098,q.PendingResponseRejected=-32097,q.ConnectionInactive=-32096,q.ServerNotInitialized=-32002,q.UnknownErrorCode=-32001,q.jsonrpcReservedErrorRangeEnd=-32000,q.serverErrorEnd=-32000})(zG||(C8.ErrorCodes=zG={}));class BG extends Error{code;data;constructor(q,Z,Q){super(Z);this.code=m7.number(q)?q:zG.UnknownErrorCode,this.data=Q,Object.setPrototypeOf(this,BG.prototype)}toJson(){let q={code:this.code,message:this.message};if(this.data!==void 0)q.data=this.data;return q}}C8.ResponseError=BG;class S1{kind;static auto=new S1("auto");static byPosition=new S1("byPosition");static byName=new S1("byName");constructor(q){this.kind=q}static is(q){return q===S1.auto||q===S1.byName||q===S1.byPosition}toString(){return this.kind}}C8.ParameterStructures=S1;class A0{method;numberOfParams;constructor(q,Z){this.method=q,this.numberOfParams=Z}get parameterStructures(){return S1.auto}}C8.AbstractMessageSignature=A0;class gm extends A0{_;constructor(q){super(q,0)}}C8.RequestType0=gm;class lm extends A0{_parameterStructures;_;constructor(q,Z=S1.auto){super(q,1);this._parameterStructures=Z}get parameterStructures(){return this._parameterStructures}}C8.RequestType=lm;class xm extends A0{_parameterStructures;_;constructor(q,Z=S1.auto){super(q,1);this._parameterStructures=Z}get parameterStructures(){return this._parameterStructures}}C8.RequestType1=xm;class mm extends A0{_;constructor(q){super(q,2)}}C8.RequestType2=mm;class pm extends A0{_;constructor(q){super(q,3)}}C8.RequestType3=pm;class cm extends A0{_;constructor(q){super(q,4)}}C8.RequestType4=cm;class rm extends A0{_;constructor(q){super(q,5)}}C8.RequestType5=rm;class im extends A0{_;constructor(q){super(q,6)}}C8.RequestType6=im;class dm extends A0{_;constructor(q){super(q,7)}}C8.RequestType7=dm;class sm extends A0{_;constructor(q){super(q,8)}}C8.RequestType8=sm;class am extends A0{_;constructor(q){super(q,9)}}C8.RequestType9=am;class om extends A0{_parameterStructures;_;constructor(q,Z=S1.auto){super(q,1);this._parameterStructures=Z}get parameterStructures(){return this._parameterStructures}}C8.NotificationType=om;class nm extends A0{_;constructor(q){super(q,0)}}C8.NotificationType0=nm;class tm extends A0{_parameterStructures;_;constructor(q,Z=S1.auto){super(q,1);this._parameterStructures=Z}get parameterStructures(){return this._parameterStructures}}C8.NotificationType1=tm;class em extends A0{_;constructor(q){super(q,2)}}C8.NotificationType2=em;class qp extends A0{_;constructor(q){super(q,3)}}C8.NotificationType3=qp;class Zp extends A0{_;constructor(q){super(q,4)}}C8.NotificationType4=Zp;class Qp extends A0{_;constructor(q){super(q,5)}}C8.NotificationType5=Qp;class Yp extends A0{_;constructor(q){super(q,6)}}C8.NotificationType6=Yp;class Jp extends A0{_;constructor(q){super(q,7)}}C8.NotificationType7=Jp;class Hp extends A0{_;constructor(q){super(q,8)}}C8.NotificationType8=Hp;class Xp extends A0{_;constructor(q){super(q,9)}}C8.NotificationType9=Xp;var _m;(function(q){function Z(J){let H=J;return H&&m7.string(H.method)&&(m7.string(H.id)||m7.number(H.id))}q.isRequest=Z;function Q(J){let H=J;return H&&m7.string(H.method)&&J.id===void 0}q.isNotification=Q;function Y(J){let H=J;return H&&(H.result!==void 0||!!H.error)&&(m7.string(H.id)||m7.number(H.id)||H.id===null)}q.isResponse=Y})(_m||(C8.Message=_m={}))});var LG=k((Vp)=>{Object.defineProperty(Vp,"__esModule",{value:!0});Vp.LRUCache=Vp.LinkedMap=Vp.Touch=void 0;var $1;(function(q){q.None=0,q.First=1,q.AsOld=q.First,q.Last=2,q.AsNew=q.Last})($1||(Vp.Touch=$1={}));class PG{[Symbol.toStringTag]="LinkedMap";_map;_head;_tail;_size;_state;constructor(){this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){return this._head?.value}get last(){return this._tail?.value}before(q){let Z=this._map.get(q);return Z?Z.previous?.value:void 0}after(q){let Z=this._map.get(q);return Z?Z.next?.value:void 0}has(q){return this._map.has(q)}get(q,Z=$1.None){let Q=this._map.get(q);if(!Q)return;if(Z!==$1.None)this.touch(Q,Z);return Q.value}set(q,Z,Q=$1.None){let Y=this._map.get(q);if(Y){if(Y.value=Z,Q!==$1.None)this.touch(Y,Q)}else{switch(Y={key:q,value:Z,next:void 0,previous:void 0},Q){case $1.None:this.addItemLast(Y);break;case $1.First:this.addItemFirst(Y);break;case $1.Last:this.addItemLast(Y);break;default:this.addItemLast(Y);break}this._map.set(q,Y),this._size++}return this}delete(q){return!!this.remove(q)}remove(q){let Z=this._map.get(q);if(!Z)return;return this._map.delete(q),this.removeItem(Z),this._size--,Z.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw Error("Invalid list");let q=this._head;return this._map.delete(q.key),this.removeItem(q),this._size--,q.value}forEach(q,Z){let Q=this._state,Y=this._head;while(Y){if(Z)q.bind(Z)(Y.value,Y.key,this);else q(Y.value,Y.key,this);if(this._state!==Q)throw Error("LinkedMap got modified during iteration.");Y=Y.next}}keys(){let q=this._state,Z=this._head,Q={[Symbol.iterator]:()=>{return Q},next:()=>{if(this._state!==q)throw Error("LinkedMap got modified during iteration.");if(Z){let Y={value:Z.key,done:!1};return Z=Z.next,Y}else return{value:void 0,done:!0}}};return Q}values(){let q=this._state,Z=this._head,Q={[Symbol.iterator]:()=>{return Q},next:()=>{if(this._state!==q)throw Error("LinkedMap got modified during iteration.");if(Z){let Y={value:Z.value,done:!1};return Z=Z.next,Y}else return{value:void 0,done:!0}}};return Q}entries(){let q=this._state,Z=this._head,Q={[Symbol.iterator]:()=>{return Q},next:()=>{if(this._state!==q)throw Error("LinkedMap got modified during iteration.");if(Z){let Y={value:[Z.key,Z.value],done:!1};return Z=Z.next,Y}else return{value:void 0,done:!0}}};return Q}[Symbol.iterator](){return this.entries()}trimOld(q){if(q>=this.size)return;if(q===0){this.clear();return}let Z=this._head,Q=this.size;while(Z&&Q>q)this._map.delete(Z.key),Z=Z.next,Q--;if(this._head=Z,this._size=Q,Z)Z.previous=void 0;this._state++}addItemFirst(q){if(!this._head&&!this._tail)this._tail=q;else if(!this._head)throw Error("Invalid list");else q.next=this._head,this._head.previous=q;this._head=q,this._state++}addItemLast(q){if(!this._head&&!this._tail)this._head=q;else if(!this._tail)throw Error("Invalid list");else q.previous=this._tail,this._tail.next=q;this._tail=q,this._state++}removeItem(q){if(q===this._head&&q===this._tail)this._head=void 0,this._tail=void 0;else if(q===this._head){if(!q.next)throw Error("Invalid list");q.next.previous=void 0,this._head=q.next}else if(q===this._tail){if(!q.previous)throw Error("Invalid list");q.previous.next=void 0,this._tail=q.previous}else{let{next:Z,previous:Q}=q;if(!Z||!Q)throw Error("Invalid list");Z.previous=Q,Q.next=Z}q.next=void 0,q.previous=void 0,this._state++}touch(q,Z){if(!this._head||!this._tail)throw Error("Invalid list");if(Z!==$1.First&&Z!==$1.Last)return;if(Z===$1.First){if(q===this._head)return;let{next:Q,previous:Y}=q;if(q===this._tail)Y.next=void 0,this._tail=Y;else Q.previous=Y,Y.next=Q;q.previous=void 0,q.next=this._head,this._head.previous=q,this._head=q,this._state++}else if(Z===$1.Last){if(q===this._tail)return;let{next:Q,previous:Y}=q;if(q===this._head)Q.previous=void 0,this._head=Q;else Q.previous=Y,Y.next=Q;q.next=void 0,q.previous=this._tail,this._tail.next=q,this._tail=q,this._state++}}toJSON(){let q=[];return this.forEach((Z,Q)=>{q.push([Q,Z])}),q}fromJSON(q){this.clear();for(let[Z,Q]of q)this.set(Z,Q)}}Vp.LinkedMap=PG;class Gp extends PG{_limit;_ratio;constructor(q,Z=1){super();this._limit=q,this._ratio=Math.min(Math.max(0,Z),1)}get limit(){return this._limit}set limit(q){this._limit=q,this.checkTrim()}get ratio(){return this._ratio}set ratio(q){this._ratio=Math.min(Math.max(0,q),1),this.checkTrim()}get(q,Z=$1.AsNew){return super.get(q,Z)}peek(q){return super.get(q,$1.None)}set(q,Z){return super.set(q,Z,$1.Last),this.checkTrim(),this}checkTrim(){if(this.size>this._limit)this.trimOld(Math.round(this._limit*this._ratio))}}Vp.LRUCache=Gp});var zp=k((Up)=>{Object.defineProperty(Up,"__esModule",{value:!0});Up.Disposable=void 0;var $p;(function(q){function Z(Q){return{dispose:Q}}q.create=Z})($p||(Up.Disposable=$p={}))});var n6=k((Bp)=>{Object.defineProperty(Bp,"__esModule",{value:!0});var OG;function wG(){if(OG===void 0)throw Error("No runtime abstraction layer installed");return OG}(function(q){function Z(Q){if(Q===void 0)throw Error("No runtime abstraction layer provided");OG=Q}q.install=Z})(wG||(wG={}));Bp.default=wG});var o5=k((t6)=>{var HW8=t6&&t6.__importDefault||function(q){return q&&q.__esModule?q:{default:q}};Object.defineProperty(t6,"__esModule",{value:!0});t6.Emitter=t6.Event=void 0;var XW8=HW8(n6()),Mp;(function(q){let Z={dispose(){}};q.None=function(){return Z}})(Mp||(t6.Event=Mp={}));class Pp{_callbacks;_contexts;add(q,Z=null,Q){if(!this._callbacks)this._callbacks=[],this._contexts=[];if(this._callbacks.push(q),this._contexts.push(Z),Array.isArray(Q))Q.push({dispose:()=>this.remove(q,Z)})}remove(q,Z=null){if(!this._callbacks)return;let Q=!1;for(let Y=0,J=this._callbacks.length;Y<J;Y++)if(this._callbacks[Y]===q)if(this._contexts[Y]===Z){this._callbacks.splice(Y,1),this._contexts.splice(Y,1);return}else Q=!0;if(Q)throw Error("When adding a listener with a context, you should remove it with the same context")}invoke(...q){if(!this._callbacks)return[];let Z=[],Q=this._callbacks.slice(0),Y=this._contexts.slice(0);for(let J=0,H=Q.length;J<H;J++)try{Z.push(Q[J].apply(Y[J],q))}catch(X){(0,XW8.default)().console.error(X)}return Z}isEmpty(){return!this._callbacks||this._callbacks.length===0}dispose(){this._callbacks=void 0,this._contexts=void 0}}class AG{_options;static _noop=function(){};_event;_callbacks;constructor(q){this._options=q}get event(){if(!this._event)this._event=(q,Z,Q)=>{if(!this._callbacks)this._callbacks=new Pp;if(this._options&&this._options.onFirstListenerAdd&&this._callbacks.isEmpty())this._options.onFirstListenerAdd(this);this._callbacks.add(q,Z);let Y={dispose:()=>{if(!this._callbacks)return;if(this._callbacks.remove(q,Z),Y.dispose=AG._noop,this._options&&this._options.onLastListenerRemove&&this._callbacks.isEmpty())this._options.onLastListenerRemove(this)}};if(Array.isArray(Q))Q.push(Y);return Y};return this._event}fire(q){if(this._callbacks)this._callbacks.invoke.call(this._callbacks,q)}dispose(){if(this._callbacks)this._callbacks.dispose(),this._callbacks=void 0}}t6.Emitter=AG});var EQ=k((C1)=>{var GW8=C1&&C1.__createBinding||(Object.create?function(q,Z,Q,Y){if(Y===void 0)Y=Q;var J=Object.getOwnPropertyDescriptor(Z,Q);if(!J||("get"in J?!Z.__esModule:J.writable||J.configurable))J={enumerable:!0,get:function(){return Z[Q]}};Object.defineProperty(q,Y,J)}:function(q,Z,Q,Y){if(Y===void 0)Y=Q;q[Y]=Z[Q]}),VW8=C1&&C1.__setModuleDefault||(Object.create?function(q,Z){Object.defineProperty(q,"default",{enumerable:!0,value:Z})}:function(q,Z){q.default=Z}),WW8=C1&&C1.__importStar||function(){var q=function(Z){return q=Object.getOwnPropertyNames||function(Q){var Y=[];for(var J in Q)if(Object.prototype.hasOwnProperty.call(Q,J))Y[Y.length]=J;return Y},q(Z)};return function(Z){if(Z&&Z.__esModule)return Z;var Q={};if(Z!=null){for(var Y=q(Z),J=0;J<Y.length;J++)if(Y[J]!=="default")GW8(Q,Z,Y[J])}return VW8(Q,Z),Q}}(),$W8=C1&&C1.__importDefault||function(q){return q&&q.__esModule?q:{default:q}};Object.defineProperty(C1,"__esModule",{value:!0});C1.CancellationTokenSource=C1.CancellationToken=void 0;var UW8=$W8(n6()),RW8=WW8(a5()),jG=o5(),CQ;(function(q){q.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:jG.Event.None}),q.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:jG.Event.None});function Z(Q){let Y=Q;return Y&&(Y===q.None||Y===q.Cancelled||RW8.boolean(Y.isCancellationRequested)&&!!Y.onCancellationRequested)}q.is=Z})(CQ||(C1.CancellationToken=CQ={}));var zW8=Object.freeze(function(q,Z){let Q=(0,UW8.default)().timer.setTimeout(q.bind(Z),0);return{dispose(){Q.dispose()}}});class IG{_isCancelled=!1;_emitter;cancel(){if(!this._isCancelled){if(this._isCancelled=!0,this._emitter)this._emitter.fire(void 0),this.dispose()}}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){if(this._isCancelled)return zW8;if(!this._emitter)this._emitter=new jG.Emitter;return this._emitter.event}dispose(){if(this._emitter)this._emitter.dispose(),this._emitter=void 0}}class Lp{_token;get token(){if(!this._token)this._token=new IG;return this._token}cancel(){if(!this._token)this._token=CQ.Cancelled;else this._token.cancel()}dispose(){if(!this._token)this._token=CQ.None;else if(this._token instanceof IG)this._token.dispose()}}C1.CancellationTokenSource=Lp});var Cp=k((Ip)=>{Object.defineProperty(Ip,"__esModule",{value:!0});Ip.SharedArrayReceiverStrategy=Ip.SharedArraySenderStrategy=void 0;var BW8=EQ(),nq;(function(q){q.Continue=0,q.Cancelled=1})(nq||(nq={}));class Op{buffers;constructor(){this.buffers=new Map}enableCancellation(q){if(q.id===null)return;let Z=new SharedArrayBuffer(4),Q=new Int32Array(Z,0,1);Q[0]=nq.Continue,this.buffers.set(q.id,Z),q.$cancellationData=Z}async sendCancellation(q,Z){let Q=this.buffers.get(Z);if(Q===void 0)return;let Y=new Int32Array(Q,0,1);Atomics.store(Y,0,nq.Cancelled)}cleanup(q){this.buffers.delete(q)}dispose(){this.buffers.clear()}}Ip.SharedArraySenderStrategy=Op;class wp{data;constructor(q){this.data=new Int32Array(q,0,1)}get isCancellationRequested(){return Atomics.load(this.data,0)===nq.Cancelled}get onCancellationRequested(){throw Error("Cancellation over SharedArrayBuffer doesn't support cancellation events")}}class Ap{token;constructor(q){this.token=new wp(q)}cancel(){}dispose(){}}class jp{kind="request";createCancellationTokenSource(q){let Z=q.$cancellationData;if(Z===void 0)return new BW8.CancellationTokenSource;return new Ap(Z)}}Ip.SharedArrayReceiverStrategy=jp});var DG=k((n5)=>{var PW8=n5&&n5.__importDefault||function(q){return q&&q.__esModule?q:{default:q}};Object.defineProperty(n5,"__esModule",{value:!0});n5.Semaphore=void 0;var LW8=PW8(n6());class Ep{_capacity;_active;_waiting;constructor(q=1){if(q<=0)throw Error("Capacity must be greater than 0");this._capacity=q,this._active=0,this._waiting=[]}lock(q){return new Promise((Z,Q)=>{this._waiting.push({thunk:q,resolve:Z,reject:Q}),this.runNext()})}get active(){return this._active}runNext(){if(this._waiting.length===0||this._active===this._capacity)return;(0,LW8.default)().timer.setImmediate(()=>this.doRunNext())}doRunNext(){if(this._waiting.length===0||this._active===this._capacity)return;let q=this._waiting.shift();if(this._active++,this._active>this._capacity)throw Error("Too many thunks active");try{let Z=q.thunk();if(Z instanceof Promise)Z.then((Q)=>{this._active--,q.resolve(Q),this.runNext()},(Q)=>{this._active--,q.reject(Q),this.runNext()});else this._active--,q.resolve(Z),this.runNext()}catch(Z){this._active--,q.reject(Z),this.runNext()}}}n5.Semaphore=Ep});var fp=k((U1)=>{var OW8=U1&&U1.__createBinding||(Object.create?function(q,Z,Q,Y){if(Y===void 0)Y=Q;var J=Object.getOwnPropertyDescriptor(Z,Q);if(!J||("get"in J?!Z.__esModule:J.writable||J.configurable))J={enumerable:!0,get:function(){return Z[Q]}};Object.defineProperty(q,Y,J)}:function(q,Z,Q,Y){if(Y===void 0)Y=Q;q[Y]=Z[Q]}),wW8=U1&&U1.__setModuleDefault||(Object.create?function(q,Z){Object.defineProperty(q,"default",{enumerable:!0,value:Z})}:function(q,Z){q.default=Z}),AW8=U1&&U1.__importStar||function(){var q=function(Z){return q=Object.getOwnPropertyNames||function(Q){var Y=[];for(var J in Q)if(Object.prototype.hasOwnProperty.call(Q,J))Y[Y.length]=J;return Y},q(Z)};return function(Z){if(Z&&Z.__esModule)return Z;var Q={};if(Z!=null){for(var Y=q(Z),J=0;J<Y.length;J++)if(Y[J]!=="default")OW8(Q,Z,Y[J])}return wW8(Q,Z),Q}}(),jW8=U1&&U1.__importDefault||function(q){return q&&q.__esModule?q:{default:q}};Object.defineProperty(U1,"__esModule",{value:!0});U1.ReadableStreamMessageReader=U1.AbstractMessageReader=U1.MessageReader=void 0;var EG=jW8(n6()),t5=AW8(a5()),CG=o5(),IW8=DG(),Fp;(function(q){function Z(Q){let Y=Q;return Y&&t5.func(Y.listen)&&t5.func(Y.dispose)&&t5.func(Y.onError)&&t5.func(Y.onClose)&&t5.func(Y.onPartialMessage)}q.is=Z})(Fp||(U1.MessageReader=Fp={}));class TG{errorEmitter;closeEmitter;partialMessageEmitter;constructor(){this.errorEmitter=new CG.Emitter,this.closeEmitter=new CG.Emitter,this.partialMessageEmitter=new CG.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose(),this.partialMessageEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(q){this.errorEmitter.fire(this.asError(q))}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}get onPartialMessage(){return this.partialMessageEmitter.event}firePartialMessage(q){this.partialMessageEmitter.fire(q)}asError(q){if(q instanceof Error)return q;else return Error(`Reader received error. Reason: ${t5.string(q.message)?q.message:"unknown"}`)}}U1.AbstractMessageReader=TG;var FG;(function(q){function Z(Q){let Y,J,H,X=new Map,G,W=new Map;if(Q===void 0||typeof Q==="string")Y=Q??"utf-8";else{if(Y=Q.charset??"utf-8",Q.contentDecoder!==void 0)H=Q.contentDecoder,X.set(H.name,H);if(Q.contentDecoders!==void 0)for(let R of Q.contentDecoders)X.set(R.name,R);if(Q.contentTypeDecoder!==void 0)G=Q.contentTypeDecoder,W.set(G.name,G);if(Q.contentTypeDecoders!==void 0)for(let R of Q.contentTypeDecoders)W.set(R.name,R)}if(G===void 0)G=(0,EG.default)().applicationJson.decoder,W.set(G.name,G);return{charset:Y,contentDecoder:H,contentDecoders:X,contentTypeDecoder:G,contentTypeDecoders:W}}q.fromOptions=Z})(FG||(FG={}));class Tp extends TG{readable;options;callback;nextMessageLength;messageToken;buffer;partialMessageTimer;_partialMessageTimeout;readSemaphore;constructor(q,Z){super();this.readable=q,this.options=FG.fromOptions(Z),this.buffer=(0,EG.default)().messageBuffer.create(this.options.charset),this._partialMessageTimeout=1e4,this.nextMessageLength=-1,this.messageToken=0,this.readSemaphore=new IW8.Semaphore(1)}set partialMessageTimeout(q){this._partialMessageTimeout=q}get partialMessageTimeout(){return this._partialMessageTimeout}listen(q){this.nextMessageLength=-1,this.messageToken=0,this.partialMessageTimer=void 0,this.callback=q;let Z=this.readable.onData((Q)=>{this.onData(Q)});return this.readable.onError((Q)=>this.fireError(Q)),this.readable.onClose(()=>this.fireClose()),Z}onData(q){try{this.buffer.append(q);while(!0){if(this.nextMessageLength===-1){let Q=this.buffer.tryReadHeaders(!0);if(!Q)return;let Y=Q.get("content-length");if(!Y){this.fireError(Error(`Header must provide a Content-Length property.
|
|
21
|
-
${JSON.stringify(Object.fromEntries(Q))}`));return}let J=parseInt(Y);if(isNaN(J)){this.fireError(Error(`Content-Length value must be a number. Got ${Y}`));return}this.nextMessageLength=J}let Z=this.buffer.tryReadBody(this.nextMessageLength);if(Z===void 0){this.setPartialMessageTimer();return}this.clearPartialMessageTimer(),this.nextMessageLength=-1,this.readSemaphore.lock(async()=>{let Q=this.options.contentDecoder!==void 0?await this.options.contentDecoder.decode(Z):Z,Y=await this.options.contentTypeDecoder.decode(Q,this.options);this.callback(Y)}).catch((Q)=>{this.fireError(Q)})}}catch(Z){this.fireError(Z)}}clearPartialMessageTimer(){if(this.partialMessageTimer)this.partialMessageTimer.dispose(),this.partialMessageTimer=void 0}setPartialMessageTimer(){if(this.clearPartialMessageTimer(),this._partialMessageTimeout<=0)return;this.partialMessageTimer=(0,EG.default)().timer.setTimeout((q,Z)=>{if(this.partialMessageTimer=void 0,q===this.messageToken)this.firePartialMessage({messageToken:q,waitingTime:Z}),this.setPartialMessageTimer()},this._partialMessageTimeout,this.messageToken,this._partialMessageTimeout)}}U1.ReadableStreamMessageReader=Tp});var up=k((R1)=>{var DW8=R1&&R1.__createBinding||(Object.create?function(q,Z,Q,Y){if(Y===void 0)Y=Q;var J=Object.getOwnPropertyDescriptor(Z,Q);if(!J||("get"in J?!Z.__esModule:J.writable||J.configurable))J={enumerable:!0,get:function(){return Z[Q]}};Object.defineProperty(q,Y,J)}:function(q,Z,Q,Y){if(Y===void 0)Y=Q;q[Y]=Z[Q]}),CW8=R1&&R1.__setModuleDefault||(Object.create?function(q,Z){Object.defineProperty(q,"default",{enumerable:!0,value:Z})}:function(q,Z){q.default=Z}),EW8=R1&&R1.__importStar||function(){var q=function(Z){return q=Object.getOwnPropertyNames||function(Q){var Y=[];for(var J in Q)if(Object.prototype.hasOwnProperty.call(Q,J))Y[Y.length]=J;return Y},q(Z)};return function(Z){if(Z&&Z.__esModule)return Z;var Q={};if(Z!=null){for(var Y=q(Z),J=0;J<Y.length;J++)if(Y[J]!=="default")DW8(Q,Z,Y[J])}return CW8(Q,Z),Q}}(),FW8=R1&&R1.__importDefault||function(q){return q&&q.__esModule?q:{default:q}};Object.defineProperty(R1,"__esModule",{value:!0});R1.WriteableStreamMessageWriter=R1.AbstractMessageWriter=R1.MessageWriter=void 0;var Kp=FW8(n6()),tq=EW8(a5()),TW8=DG(),vp=o5(),fW8="Content-Length: ",Np=`\r
|
|
22
|
-
`,kp;(function(q){function Z(Q){let Y=Q;return Y&&tq.func(Y.dispose)&&tq.func(Y.onClose)&&tq.func(Y.onError)&&tq.func(Y.write)}q.is=Z})(kp||(R1.MessageWriter=kp={}));class KG{errorEmitter;closeEmitter;constructor(){this.errorEmitter=new vp.Emitter,this.closeEmitter=new vp.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(q,Z,Q){this.errorEmitter.fire([this.asError(q),Z,Q])}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}asError(q){if(q instanceof Error)return q;else return Error(`Writer received error. Reason: ${tq.string(q.message)?q.message:"unknown"}`)}}R1.AbstractMessageWriter=KG;var fG;(function(q){function Z(Q){if(Q===void 0||typeof Q==="string")return{charset:Q??"utf-8",contentTypeEncoder:(0,Kp.default)().applicationJson.encoder};else return{charset:Q.charset??"utf-8",contentEncoder:Q.contentEncoder,contentTypeEncoder:Q.contentTypeEncoder??(0,Kp.default)().applicationJson.encoder}}q.fromOptions=Z})(fG||(fG={}));class Sp extends KG{writable;options;errorCount;writeSemaphore;constructor(q,Z){super();this.writable=q,this.options=fG.fromOptions(Z),this.errorCount=0,this.writeSemaphore=new TW8.Semaphore(1),this.writable.onError((Q)=>this.fireError(Q)),this.writable.onClose(()=>this.fireClose())}async write(q){return this.writeSemaphore.lock(async()=>{return this.options.contentTypeEncoder.encode(q,this.options).then((Q)=>{if(this.options.contentEncoder!==void 0)return this.options.contentEncoder.encode(Q);else return Q}).then((Q)=>{let Y=[];return Y.push(fW8,Q.byteLength.toString(),Np),Y.push(Np),this.doWrite(q,Y,Q)},(Q)=>{throw this.fireError(Q),Q})})}async doWrite(q,Z,Q){try{return await this.writable.write(Z.join(""),"ascii"),this.writable.write(Q)}catch(Y){return this.handleError(Y,q),Promise.reject(Y)}}handleError(q,Z){this.errorCount++,this.fireError(q,Z,this.errorCount)}end(){this.writable.end()}}R1.WriteableStreamMessageWriter=Sp});var _p=k((hp)=>{Object.defineProperty(hp,"__esModule",{value:!0});hp.AbstractMessageBuffer=void 0;var KW8=13,vW8=10,NW8=`\r
|
|
23
|
-
`;class bp{_encoding;_chunks;_totalLength;constructor(q="utf-8"){this._encoding=q,this._chunks=[],this._totalLength=0}get encoding(){return this._encoding}append(q){let Z=typeof q==="string"?this.fromString(q,this._encoding):q;this._chunks.push(Z),this._totalLength+=Z.byteLength}tryReadHeaders(q=!1){if(this._chunks.length===0)return;let Z=0,Q=0,Y=0,J=0;q:while(Q<this._chunks.length){let W=this._chunks[Q];Y=0;while(Y<W.length){switch(W[Y]){case KW8:switch(Z){case 0:Z=1;break;case 2:Z=3;break;default:Z=0}break;case vW8:switch(Z){case 1:Z=2;break;case 3:Z=4,Y++;break q;default:Z=0}break;default:Z=0}Y++}J+=W.byteLength,Q++}if(Z!==4)return;let H=this._read(J+Y),X=new Map,G=this.toString(H,"ascii").split(NW8);if(G.length<2)return X;for(let W=0;W<G.length-2;W++){let R=G[W],B=R.indexOf(":");if(B===-1)throw Error(`Message header must separate key and value using ':'
|
|
24
|
-
${R}`);let M=R.substr(0,B),V=R.substr(B+1).trim();X.set(q?M.toLowerCase():M,V)}return X}tryReadBody(q){if(this._totalLength<q)return;return this._read(q)}get numberOfBytes(){return this._totalLength}_read(q){if(q===0)return this.emptyBuffer();if(q>this._totalLength)throw Error("Cannot read so many bytes!");if(this._chunks[0].byteLength===q){let J=this._chunks[0];return this._chunks.shift(),this._totalLength-=q,this.asNative(J)}if(this._chunks[0].byteLength>q){let J=this._chunks[0],H=this.asNative(J,q);return this._chunks[0]=J.slice(q),this._totalLength-=q,H}let Z=this.allocNative(q),Q=0,Y=0;while(q>0){let J=this._chunks[Y];if(J.byteLength>q){let H=J.slice(0,q);Z.set(H,Q),Q+=q,this._chunks[Y]=J.slice(q),this._totalLength-=q,q-=q}else Z.set(J,Q),Q+=J.byteLength,this._chunks.shift(),this._totalLength-=J.byteLength,q-=J.byteLength}return Z}}hp.AbstractMessageBuffer=bp});var pp=k((S8)=>{var kW8=S8&&S8.__createBinding||(Object.create?function(q,Z,Q,Y){if(Y===void 0)Y=Q;var J=Object.getOwnPropertyDescriptor(Z,Q);if(!J||("get"in J?!Z.__esModule:J.writable||J.configurable))J={enumerable:!0,get:function(){return Z[Q]}};Object.defineProperty(q,Y,J)}:function(q,Z,Q,Y){if(Y===void 0)Y=Q;q[Y]=Z[Q]}),SW8=S8&&S8.__setModuleDefault||(Object.create?function(q,Z){Object.defineProperty(q,"default",{enumerable:!0,value:Z})}:function(q,Z){q.default=Z}),uW8=S8&&S8.__importStar||function(){var q=function(Z){return q=Object.getOwnPropertyNames||function(Q){var Y=[];for(var J in Q)if(Object.prototype.hasOwnProperty.call(Q,J))Y[Y.length]=J;return Y},q(Z)};return function(Z){if(Z&&Z.__esModule)return Z;var Q={};if(Z!=null){for(var Y=q(Z),J=0;J<Y.length;J++)if(Y[J]!=="default")kW8(Q,Z,Y[J])}return SW8(Q,Z),Q}}(),bW8=S8&&S8.__importDefault||function(q){return q&&q.__esModule?q:{default:q}};Object.defineProperty(S8,"__esModule",{value:!0});S8.ConnectionOptions=S8.MessageStrategy=S8.CancellationStrategy=S8.CancellationSenderStrategy=S8.CancellationReceiverStrategy=S8.RequestCancellationReceiverStrategy=S8.IdCancellationReceiverStrategy=S8.ConnectionStrategy=S8.ConnectionError=S8.ConnectionErrors=S8.LogTraceNotification=S8.SetTraceNotification=S8.TraceFormat=S8.TraceValues=S8.TraceValue=S8.Trace=S8.NullLogger=S8.ProgressType=S8.ProgressToken=void 0;S8.createMessageConnection=hW8;var gp=bW8(n6()),C0=uW8(a5()),m8=MG(),lp=LG(),eq=o5(),vG=EQ(),Q4;(function(q){q.type=new m8.NotificationType("$/cancelRequest")})(Q4||(Q4={}));var NG;(function(q){function Z(Q){return typeof Q==="string"||typeof Q==="number"}q.is=Z})(NG||(S8.ProgressToken=NG={}));var q4;(function(q){q.type=new m8.NotificationType("$/progress")})(q4||(q4={}));class mp{__;_pr;constructor(){}}S8.ProgressType=mp;var kG;(function(q){function Z(Q){return C0.func(Q)}q.is=Z})(kG||(kG={}));S8.NullLogger=Object.freeze({error:()=>{},warn:()=>{},info:()=>{},log:()=>{}});var W0;(function(q){q[q.Off=0]="Off",q[q.Messages=1]="Messages",q[q.Compact=2]="Compact",q[q.Verbose=3]="Verbose"})(W0||(S8.Trace=W0={}));var SG;(function(q){q.Off="off",q.Messages="messages",q.Compact="compact",q.Verbose="verbose"})(SG||(S8.TraceValue=SG={}));S8.TraceValues=SG;(function(q){function Z(Y){if(!C0.string(Y))return q.Off;switch(Y=Y.toLowerCase(),Y){case"off":return q.Off;case"messages":return q.Messages;case"compact":return q.Compact;case"verbose":return q.Verbose;default:return q.Off}}q.fromString=Z;function Q(Y){switch(Y){case q.Off:return"off";case q.Messages:return"messages";case q.Compact:return"compact";case q.Verbose:return"verbose";default:return"off"}}q.toString=Q})(W0||(S8.Trace=W0={}));var u1;(function(q){q.Text="text",q.JSON="json"})(u1||(S8.TraceFormat=u1={}));(function(q){function Z(Q){if(!C0.string(Q))return q.Text;if(Q=Q.toLowerCase(),Q==="json")return q.JSON;else return q.Text}q.fromString=Z})(u1||(S8.TraceFormat=u1={}));var uG;(function(q){q.type=new m8.NotificationType("$/setTrace")})(uG||(S8.SetTraceNotification=uG={}));var FQ;(function(q){q.type=new m8.NotificationType("$/logTrace")})(FQ||(S8.LogTraceNotification=FQ={}));var Z4;(function(q){q[q.Closed=1]="Closed",q[q.Disposed=2]="Disposed",q[q.AlreadyListening=3]="AlreadyListening"})(Z4||(S8.ConnectionErrors=Z4={}));class e5 extends Error{code;constructor(q,Z){super(Z);this.code=q,Object.setPrototypeOf(this,e5.prototype)}}S8.ConnectionError=e5;var bG;(function(q){function Z(Q){let Y=Q;return Y&&C0.func(Y.cancelUndispatched)}q.is=Z})(bG||(S8.ConnectionStrategy=bG={}));var TQ;(function(q){function Z(Q){let Y=Q;return Y&&(Y.kind===void 0||Y.kind==="id")&&C0.func(Y.createCancellationTokenSource)&&(Y.dispose===void 0||C0.func(Y.dispose))}q.is=Z})(TQ||(S8.IdCancellationReceiverStrategy=TQ={}));var hG;(function(q){function Z(Q){let Y=Q;return Y&&Y.kind==="request"&&C0.func(Y.createCancellationTokenSource)&&(Y.dispose===void 0||C0.func(Y.dispose))}q.is=Z})(hG||(S8.RequestCancellationReceiverStrategy=hG={}));var fQ;(function(q){q.Message=Object.freeze({createCancellationTokenSource(Q){return new vG.CancellationTokenSource}});function Z(Q){return TQ.is(Q)||hG.is(Q)}q.is=Z})(fQ||(S8.CancellationReceiverStrategy=fQ={}));var KQ;(function(q){q.Message=Object.freeze({sendCancellation(Q,Y){return Q.sendNotification(Q4.type,{id:Y})},cleanup(Q){}});function Z(Q){let Y=Q;return Y&&C0.func(Y.sendCancellation)&&C0.func(Y.cleanup)}q.is=Z})(KQ||(S8.CancellationSenderStrategy=KQ={}));var vQ;(function(q){q.Message=Object.freeze({receiver:fQ.Message,sender:KQ.Message});function Z(Q){let Y=Q;return Y&&fQ.is(Y.receiver)&&KQ.is(Y.sender)}q.is=Z})(vQ||(S8.CancellationStrategy=vQ={}));var NQ;(function(q){function Z(Q){let Y=Q;return Y&&C0.func(Y.handleMessage)}q.is=Z})(NQ||(S8.MessageStrategy=NQ={}));var xp;(function(q){function Z(Q){let Y=Q;return Y&&(vQ.is(Y.cancellationStrategy)||bG.is(Y.connectionStrategy)||NQ.is(Y.messageStrategy)||C0.number(Y.maxParallelism))}q.is=Z})(xp||(S8.ConnectionOptions=xp={}));var A9;(function(q){q[q.New=1]="New",q[q.Listening=2]="Listening",q[q.Closed=3]="Closed",q[q.Disposed=4]="Disposed"})(A9||(A9={}));function hW8(q,Z,Q,Y){let J=Q!==void 0?Q:S8.NullLogger,H=0,X=0,G=0,W="2.0",R=Y?.maxParallelism??-1,B=0,M=void 0,V=new Map,$=void 0,O=new Map,w=new Map,I,C=new lp.LinkedMap,E=new Map,D=new Set,f=new Map,v=W0.Off,_=u1.Text,b,z=A9.New,P=new eq.Emitter,L=new eq.Emitter,A=new eq.Emitter,T=new eq.Emitter,h=new eq.Emitter,N=Y&&Y.cancellationStrategy?Y.cancellationStrategy:vQ.Message;function y(x){return}function r(){return z===A9.Listening}function m(){return z===A9.Closed}function Y8(){return z===A9.Disposed}function N8(){if(z===A9.New||z===A9.Listening)z=A9.Closed,L.fire(void 0)}function w8(x){P.fire([x,void 0,void 0])}function g8(x){P.fire(x)}q.onClose(N8),q.onError(w8),Z.onClose(N8),Z.onError(g8);function R8(x){if(x===null)throw Error("Can't send requests with id null since the response can't be correlated.");return"req-"+x.toString()}function a8(x){if(x===null)return"res-unknown-"+(++G).toString();else return"res-"+x.toString()}function B8(){return"not-"+(++X).toString()}function $8(x,e){if(m8.Message.isRequest(e))x.set(R8(e.id),e);else if(m8.Message.isResponse(e))if(R===-1)x.set(a8(e.id),e);else H8(e);else x.set(B8(),e)}function c8(){if(I||C.size===0)return;if(R!==-1&&B>=R)return;I=(0,gp.default)().timer.setImmediate(async()=>{if(I=void 0,C.size===0)return;if(R!==-1&&B>=R)return;let x=C.shift(),e;try{B++;let X8=Y?.messageStrategy;if(NQ.is(X8))e=X8.handleMessage(x,p8);else e=p8(x)}catch(X8){J.error(`Processing message queue failed: ${X8.toString()}`)}finally{if(e instanceof Promise)e.then(()=>{B--,c8()}).catch((X8)=>{J.error(`Processing message queue failed: ${X8.toString()}`)});else B--;c8()}})}async function p8(x){if(m8.Message.isRequest(x))return f8(x);else if(m8.Message.isNotification(x))return E8(x);else if(m8.Message.isResponse(x))return H8(x);else return Q0(x)}let q8=(x)=>{try{if(m8.Message.isNotification(x)&&x.method===Q4.type.method){let e=x.params.id,X8=R8(e),F8=C.get(X8);if(m8.Message.isRequest(F8)){let j0=Y?.connectionStrategy,R0=j0&&j0.cancelUndispatched?j0.cancelUndispatched(F8,y):y(F8);if(R0&&(R0.error!==void 0||R0.result!==void 0)){C.delete(X8),f.delete(e),R0.id=F8.id,P1(R0,x.method,Date.now()),Z.write(R0).catch(()=>J.error("Sending response for canceled message failed."));return}}let X0=f.get(e);if(X0!==void 0){X0.cancel(),dQ(x);return}else D.add(e)}$8(C,x)}finally{c8()}};async function f8(x){if(Y8())return Promise.resolve();function e(p0,Y1,E0){let F0={jsonrpc:W,id:x.id};if(p0 instanceof m8.ResponseError)F0.error=p0.toJson();else F0.result=p0===void 0?null:p0;return P1(F0,Y1,E0),Z.write(F0)}function X8(p0,Y1,E0){let F0={jsonrpc:W,id:x.id,error:p0.toJson()};return P1(F0,Y1,E0),Z.write(F0)}Zr(x);let F8=V.get(x.method),X0,j0;if(F8)X0=F8.type,j0=F8.handler;let R0=Date.now();if(j0||M){let p0=x.id??String(Date.now()),Y1=TQ.is(N.receiver)?N.receiver.createCancellationTokenSource(p0):N.receiver.createCancellationTokenSource(x);if(x.id!==null&&D.has(x.id))Y1.cancel();if(x.id!==null)f.set(p0,Y1);try{let E0;if(j0)if(x.params===void 0){if(X0!==void 0&&X0.numberOfParams!==0)return X8(new m8.ResponseError(m8.ErrorCodes.InvalidParams,`Request ${x.method} defines ${X0.numberOfParams} params but received none.`),x.method,R0);E0=j0(Y1.token)}else if(Array.isArray(x.params)){if(X0!==void 0&&X0.parameterStructures===m8.ParameterStructures.byName)return X8(new m8.ResponseError(m8.ErrorCodes.InvalidParams,`Request ${x.method} defines parameters by name but received parameters by position`),x.method,R0);E0=j0(...x.params,Y1.token)}else{if(X0!==void 0&&X0.parameterStructures===m8.ParameterStructures.byPosition)return X8(new m8.ResponseError(m8.ErrorCodes.InvalidParams,`Request ${x.method} defines parameters by position but received parameters by name`),x.method,R0);E0=j0(x.params,Y1.token)}else if(M)E0=M(x.method,x.params,Y1.token);let F0=await E0;await e(F0,x.method,R0)}catch(E0){if(E0 instanceof m8.ResponseError)await e(E0,x.method,R0);else if(E0&&C0.string(E0.message))await X8(new m8.ResponseError(m8.ErrorCodes.InternalError,`Request ${x.method} failed with message: ${E0.message}`),x.method,R0);else await X8(new m8.ResponseError(m8.ErrorCodes.InternalError,`Request ${x.method} failed unexpectedly without providing any details.`),x.method,R0)}finally{f.delete(p0)}}else await X8(new m8.ResponseError(m8.ErrorCodes.MethodNotFound,`Unhandled method ${x.method}`),x.method,R0)}function H8(x){if(Y8())return;if(x.id===null)if(x.error)J.error(`Received response message without id: Error is:
|
|
25
|
-
${JSON.stringify(x.error,void 0,4)}`);else J.error("Received response message without id. No further error information provided.");else{let e=x.id,X8=E.get(e);if(Qr(x,X8),X8!==void 0){E.delete(e);try{if(x.error){let F8=x.error;X8.reject(new m8.ResponseError(F8.code,F8.message,F8.data))}else if(x.result!==void 0)X8.resolve(x.result);else throw Error("Should never happen.")}catch(F8){if(F8.message)J.error(`Response handler '${X8.method}' failed with message: ${F8.message}`);else J.error(`Response handler '${X8.method}' failed unexpectedly.`)}}}}async function E8(x){if(Y8())return;let e=void 0,X8;if(x.method===Q4.type.method){let F8=x.params.id;D.delete(F8),dQ(x);return}else{let F8=O.get(x.method);if(F8)X8=F8.handler,e=F8.type}if(X8||$)try{if(dQ(x),X8)if(x.params===void 0){if(e!==void 0){if(e.numberOfParams!==0&&e.parameterStructures!==m8.ParameterStructures.byName)J.error(`Notification ${x.method} defines ${e.numberOfParams} params but received none.`)}await X8()}else if(Array.isArray(x.params)){let F8=x.params;if(x.method===q4.type.method&&F8.length===2&&NG.is(F8[0]))await X8({token:F8[0],value:F8[1]});else{if(e!==void 0){if(e.parameterStructures===m8.ParameterStructures.byName)J.error(`Notification ${x.method} defines parameters by name but received parameters by position`);if(e.numberOfParams!==x.params.length)J.error(`Notification ${x.method} defines ${e.numberOfParams} params but received ${F8.length} arguments`)}await X8(...F8)}}else{if(e!==void 0&&e.parameterStructures===m8.ParameterStructures.byPosition)J.error(`Notification ${x.method} defines parameters by position but received parameters by name`);await X8(x.params)}else if($)await $(x.method,x.params)}catch(F8){if(F8.message)J.error(`Notification handler '${x.method}' failed with message: ${F8.message}`);else J.error(`Notification handler '${x.method}' failed unexpectedly.`)}else A.fire(x)}function Q0(x){if(!x){J.error("Received empty message.");return}J.error(`Received message which is neither a response nor a notification message:
|
|
26
|
-
${JSON.stringify(x,null,4)}`);let e=x;if(C0.string(e.id)||C0.number(e.id)){let X8=e.id,F8=E.get(X8);if(F8)F8.reject(Error("The received response has neither a result nor an error property."))}}function H0(x){if(x===void 0||x===null)return;switch(v){case W0.Verbose:return JSON.stringify(x,null,4);case W0.Compact:return JSON.stringify(x);default:return}}function U0(x){if(v===W0.Off||!b)return;if(_===u1.Text){let e=void 0;if((v===W0.Verbose||v===W0.Compact)&&x.params)e=`Params: ${H0(x.params)}`;b.log(`Sending request '${x.method} - (${x.id})'.`,e)}else i7("send-request",x)}function h1(x){if(v===W0.Off||!b)return;if(_===u1.Text){let e=void 0;if(v===W0.Verbose||v===W0.Compact)if(x.params)e=`Params: ${H0(x.params)}`;else e="No parameters provided.";b.log(`Sending notification '${x.method}'.`,e)}else i7("send-notification",x)}function P1(x,e,X8){if(v===W0.Off||!b)return;if(_===u1.Text){let F8=void 0;if(v===W0.Verbose||v===W0.Compact){if(x.error&&x.error.data)F8=`Error data: ${H0(x.error.data)}`;else if(x.result)F8=`Result: ${H0(x.result)}`;else if(x.error===void 0)F8="No result returned."}b.log(`Sending response '${e} - (${x.id})'. Processing request took ${Date.now()-X8}ms`,F8)}else i7("send-response",x)}function Zr(x){if(v===W0.Off||!b)return;if(_===u1.Text){let e=void 0;if((v===W0.Verbose||v===W0.Compact)&&x.params)e=`Params: ${H0(x.params)}`;b.log(`Received request '${x.method} - (${x.id})'.`,e)}else i7("receive-request",x)}function dQ(x){if(v===W0.Off||!b||x.method===FQ.type.method)return;if(_===u1.Text){let e=void 0;if(v===W0.Verbose||v===W0.Compact)if(x.params)e=`Params: ${H0(x.params)}`;else e="No parameters provided.";b.log(`Received notification '${x.method}'.`,e)}else i7("receive-notification",x)}function Qr(x,e){if(v===W0.Off||!b)return;if(_===u1.Text){let X8=void 0;if(v===W0.Verbose||v===W0.Compact){if(x.error&&x.error.data)X8=`Error data: ${H0(x.error.data)}`;else if(x.result)X8=`Result: ${H0(x.result)}`;else if(x.error===void 0)X8="No result returned."}if(e){let F8=x.error?` Request failed: ${x.error.message} (${x.error.code}).`:"";b.log(`Received response '${e.method} - (${x.id})' in ${Date.now()-e.timerStart}ms.${F8}`,X8)}else b.log(`Received response ${x.id} without active response promise.`,X8)}else i7("receive-response",x)}function i7(x,e){if(!b||v===W0.Off)return;let X8={isLSPMessage:!0,type:x,message:e,timestamp:Date.now()};b.log(X8)}function X2(){if(m())throw new e5(Z4.Closed,"Connection is closed.");if(Y8())throw new e5(Z4.Disposed,"Connection is disposed.")}function Yr(){if(r())throw new e5(Z4.AlreadyListening,"Connection is already listening")}function Jr(){if(!r())throw Error("Call listen() first.")}function G2(x){if(x===void 0)return null;else return x}function jV(x){if(x===null)return;else return x}function IV(x){return x!==void 0&&x!==null&&!Array.isArray(x)&&typeof x==="object"}function sQ(x,e){switch(x){case m8.ParameterStructures.auto:if(IV(e))return jV(e);else return[G2(e)];case m8.ParameterStructures.byName:if(!IV(e))throw Error("Received parameters by name but param is not an object literal.");return jV(e);case m8.ParameterStructures.byPosition:return[G2(e)];default:throw Error(`Unknown parameter structure ${x.toString()}`)}}function DV(x,e){let X8,F8=x.numberOfParams;switch(F8){case 0:X8=void 0;break;case 1:X8=sQ(x.parameterStructures,e[0]);break;default:X8=[];for(let X0=0;X0<e.length&&X0<F8;X0++)X8.push(G2(e[X0]));if(e.length<F8)for(let X0=e.length;X0<F8;X0++)X8.push(null);break}return X8}let q7={sendNotification:(x,...e)=>{X2();let X8,F8;if(C0.string(x)){X8=x;let j0=e[0],R0=0,p0=m8.ParameterStructures.auto;if(m8.ParameterStructures.is(j0))R0=1,p0=j0;let Y1=e.length,E0=Y1-R0;switch(E0){case 0:F8=void 0;break;case 1:F8=sQ(p0,e[R0]);break;default:if(p0===m8.ParameterStructures.byName)throw Error(`Received ${E0} parameters for 'by Name' notification parameter structure.`);F8=e.slice(R0,Y1).map((F0)=>G2(F0));break}}else{let j0=e;X8=x.method,F8=DV(x,j0)}let X0={jsonrpc:W,method:X8,params:F8};return h1(X0),Z.write(X0).catch((j0)=>{throw J.error("Sending notification failed."),j0})},onNotification:(x,e)=>{X2();let X8;if(C0.func(x))$=x;else if(e)if(C0.string(x))X8=x,O.set(x,{type:void 0,handler:e});else X8=x.method,O.set(x.method,{type:x,handler:e});return{dispose:()=>{if(X8!==void 0){if(O.get(X8)?.handler===e)O.delete(X8)}else if($===x)$=void 0}}},onProgress:(x,e,X8)=>{if(w.has(e))throw Error(`Progress handler for token ${e} already registered`);return w.set(e,X8),{dispose:()=>{if(w.get(e)===X8)w.delete(e)}}},sendProgress:(x,e,X8)=>{return q7.sendNotification(q4.type,{token:e,value:X8})},onUnhandledProgress:T.event,sendRequest:(x,...e)=>{X2(),Jr();function X8(F0,Y9){let p9=N.sender.sendCancellation(F0,Y9);if(p9===void 0)J.log(`Received no promise from cancellation strategy when cancelling id ${Y9}`);else p9.catch(()=>{J.log(`Sending cancellation messages for id ${Y9} failed.`)})}let F8,X0,j0=void 0;if(C0.string(x)){F8=x;let F0=e[0],Y9=e[e.length-1],p9=0,V2=m8.ParameterStructures.auto;if(m8.ParameterStructures.is(F0))p9=1,V2=F0;let Z7=e.length;if(vG.CancellationToken.is(Y9))Z7=Z7-1,j0=Y9;let D9=Z7-p9;switch(D9){case 0:X0=void 0;break;case 1:X0=sQ(V2,e[p9]);break;default:if(V2===m8.ParameterStructures.byName)throw Error(`Received ${D9} parameters for 'by Name' request parameter structure.`);X0=e.slice(p9,Z7).map((Hr)=>G2(Hr));break}}else{let F0=e;F8=x.method,X0=DV(x,F0);let Y9=x.numberOfParams;j0=vG.CancellationToken.is(F0[Y9])?F0[Y9]:void 0}let R0=H++,p0,Y1=!1;if(j0!==void 0)if(j0.isCancellationRequested)Y1=!0;else p0=j0.onCancellationRequested(()=>{X8(q7,R0)});let E0={jsonrpc:W,id:R0,method:F8,params:X0};if(U0(E0),typeof N.sender.enableCancellation==="function")N.sender.enableCancellation(E0);return new Promise(async(F0,Y9)=>{let p9=(D9)=>{F0(D9),N.sender.cleanup(R0),p0?.dispose()},V2=(D9)=>{Y9(D9),N.sender.cleanup(R0),p0?.dispose()},Z7={method:F8,timerStart:Date.now(),resolve:p9,reject:V2};try{if(E.set(R0,Z7),await Z.write(E0),Y1)X8(q7,R0)}catch(D9){throw E.delete(R0),Z7.reject(new m8.ResponseError(m8.ErrorCodes.MessageWriteError,D9.message?D9.message:"Unknown reason")),J.error("Sending request failed."),D9}})},onRequest:(x,e)=>{X2();let X8=null;if(kG.is(x))X8=void 0,M=x;else if(C0.string(x)){if(X8=null,e!==void 0)X8=x,V.set(x,{handler:e,type:void 0})}else if(e!==void 0)X8=x.method,V.set(x.method,{type:x,handler:e});return{dispose:()=>{if(X8===null)return;if(X8!==void 0){if(V.get(X8)?.handler===e)V.delete(X8)}else if(M===x)M=void 0}}},hasPendingResponse:()=>{return E.size>0},trace:async(x,e,X8)=>{let F8=!1,X0=u1.Text;if(X8!==void 0)if(C0.boolean(X8))F8=X8;else F8=X8.sendNotification||!1,X0=X8.traceFormat||u1.Text;if(v=x,_=X0,v===W0.Off)b=void 0;else b=e;if(F8&&!m()&&!Y8())await q7.sendNotification(uG.type,{value:W0.toString(x)})},onError:P.event,onClose:L.event,onUnhandledNotification:A.event,onDispose:h.event,end:()=>{Z.end()},dispose:()=>{if(Y8())return;z=A9.Disposed,h.fire(void 0);let x=new m8.ResponseError(m8.ErrorCodes.PendingResponseRejected,"Pending response rejected since connection got disposed");for(let e of E.values())e.reject(x);if(E=new Map,f=new Map,D=new Set,C=new lp.LinkedMap,C0.func(Z.dispose))Z.dispose();if(C0.func(q.dispose))q.dispose()},listen:()=>{X2(),Yr(),z=A9.Listening,q.listen(q8)},inspect:()=>{(0,gp.default)().console.log("inspect")}};return q7.onNotification(FQ.type,(x)=>{if(v===W0.Off||!b)return;let e=v===W0.Verbose||v===W0.Compact;b.log(x.message,e?x.verbose:void 0)}),q7.onNotification(q4.type,async(x)=>{let e=w.get(x.token);if(e)await e(x.value);else T.fire(x)}),q7}});var kQ=k((o)=>{var yW8=o&&o.__importDefault||function(q){return q&&q.__esModule?q:{default:q}};Object.defineProperty(o,"__esModule",{value:!0});o.ProgressType=o.ProgressToken=o.createMessageConnection=o.NullLogger=o.ConnectionOptions=o.ConnectionStrategy=o.AbstractMessageBuffer=o.WriteableStreamMessageWriter=o.AbstractMessageWriter=o.MessageWriter=o.ReadableStreamMessageReader=o.AbstractMessageReader=o.MessageReader=o.SharedArrayReceiverStrategy=o.SharedArraySenderStrategy=o.CancellationToken=o.CancellationTokenSource=o.Emitter=o.Event=o.Disposable=o.LRUCache=o.Touch=o.LinkedMap=o.ParameterStructures=o.NotificationType9=o.NotificationType8=o.NotificationType7=o.NotificationType6=o.NotificationType5=o.NotificationType4=o.NotificationType3=o.NotificationType2=o.NotificationType1=o.NotificationType0=o.NotificationType=o.ErrorCodes=o.ResponseError=o.RequestType9=o.RequestType8=o.RequestType7=o.RequestType6=o.RequestType5=o.RequestType4=o.RequestType3=o.RequestType2=o.RequestType1=o.RequestType0=o.RequestType=o.Message=o.RAL=void 0;o.MessageStrategy=o.CancellationStrategy=o.CancellationSenderStrategy=o.RequestCancellationReceiverStrategy=o.IdCancellationReceiverStrategy=o.CancellationReceiverStrategy=o.ConnectionError=o.ConnectionErrors=o.LogTraceNotification=o.SetTraceNotification=o.TraceFormat=o.TraceValues=o.TraceValue=o.Trace=void 0;var B0=MG();Object.defineProperty(o,"Message",{enumerable:!0,get:function(){return B0.Message}});Object.defineProperty(o,"RequestType",{enumerable:!0,get:function(){return B0.RequestType}});Object.defineProperty(o,"RequestType0",{enumerable:!0,get:function(){return B0.RequestType0}});Object.defineProperty(o,"RequestType1",{enumerable:!0,get:function(){return B0.RequestType1}});Object.defineProperty(o,"RequestType2",{enumerable:!0,get:function(){return B0.RequestType2}});Object.defineProperty(o,"RequestType3",{enumerable:!0,get:function(){return B0.RequestType3}});Object.defineProperty(o,"RequestType4",{enumerable:!0,get:function(){return B0.RequestType4}});Object.defineProperty(o,"RequestType5",{enumerable:!0,get:function(){return B0.RequestType5}});Object.defineProperty(o,"RequestType6",{enumerable:!0,get:function(){return B0.RequestType6}});Object.defineProperty(o,"RequestType7",{enumerable:!0,get:function(){return B0.RequestType7}});Object.defineProperty(o,"RequestType8",{enumerable:!0,get:function(){return B0.RequestType8}});Object.defineProperty(o,"RequestType9",{enumerable:!0,get:function(){return B0.RequestType9}});Object.defineProperty(o,"ResponseError",{enumerable:!0,get:function(){return B0.ResponseError}});Object.defineProperty(o,"ErrorCodes",{enumerable:!0,get:function(){return B0.ErrorCodes}});Object.defineProperty(o,"NotificationType",{enumerable:!0,get:function(){return B0.NotificationType}});Object.defineProperty(o,"NotificationType0",{enumerable:!0,get:function(){return B0.NotificationType0}});Object.defineProperty(o,"NotificationType1",{enumerable:!0,get:function(){return B0.NotificationType1}});Object.defineProperty(o,"NotificationType2",{enumerable:!0,get:function(){return B0.NotificationType2}});Object.defineProperty(o,"NotificationType3",{enumerable:!0,get:function(){return B0.NotificationType3}});Object.defineProperty(o,"NotificationType4",{enumerable:!0,get:function(){return B0.NotificationType4}});Object.defineProperty(o,"NotificationType5",{enumerable:!0,get:function(){return B0.NotificationType5}});Object.defineProperty(o,"NotificationType6",{enumerable:!0,get:function(){return B0.NotificationType6}});Object.defineProperty(o,"NotificationType7",{enumerable:!0,get:function(){return B0.NotificationType7}});Object.defineProperty(o,"NotificationType8",{enumerable:!0,get:function(){return B0.NotificationType8}});Object.defineProperty(o,"NotificationType9",{enumerable:!0,get:function(){return B0.NotificationType9}});Object.defineProperty(o,"ParameterStructures",{enumerable:!0,get:function(){return B0.ParameterStructures}});var yG=LG();Object.defineProperty(o,"LinkedMap",{enumerable:!0,get:function(){return yG.LinkedMap}});Object.defineProperty(o,"LRUCache",{enumerable:!0,get:function(){return yG.LRUCache}});Object.defineProperty(o,"Touch",{enumerable:!0,get:function(){return yG.Touch}});var _W8=zp();Object.defineProperty(o,"Disposable",{enumerable:!0,get:function(){return _W8.Disposable}});var cp=o5();Object.defineProperty(o,"Event",{enumerable:!0,get:function(){return cp.Event}});Object.defineProperty(o,"Emitter",{enumerable:!0,get:function(){return cp.Emitter}});var rp=EQ();Object.defineProperty(o,"CancellationTokenSource",{enumerable:!0,get:function(){return rp.CancellationTokenSource}});Object.defineProperty(o,"CancellationToken",{enumerable:!0,get:function(){return rp.CancellationToken}});var ip=Cp();Object.defineProperty(o,"SharedArraySenderStrategy",{enumerable:!0,get:function(){return ip.SharedArraySenderStrategy}});Object.defineProperty(o,"SharedArrayReceiverStrategy",{enumerable:!0,get:function(){return ip.SharedArrayReceiverStrategy}});var _G=fp();Object.defineProperty(o,"MessageReader",{enumerable:!0,get:function(){return _G.MessageReader}});Object.defineProperty(o,"AbstractMessageReader",{enumerable:!0,get:function(){return _G.AbstractMessageReader}});Object.defineProperty(o,"ReadableStreamMessageReader",{enumerable:!0,get:function(){return _G.ReadableStreamMessageReader}});var gG=up();Object.defineProperty(o,"MessageWriter",{enumerable:!0,get:function(){return gG.MessageWriter}});Object.defineProperty(o,"AbstractMessageWriter",{enumerable:!0,get:function(){return gG.AbstractMessageWriter}});Object.defineProperty(o,"WriteableStreamMessageWriter",{enumerable:!0,get:function(){return gG.WriteableStreamMessageWriter}});var gW8=_p();Object.defineProperty(o,"AbstractMessageBuffer",{enumerable:!0,get:function(){return gW8.AbstractMessageBuffer}});var h0=pp();Object.defineProperty(o,"ConnectionStrategy",{enumerable:!0,get:function(){return h0.ConnectionStrategy}});Object.defineProperty(o,"ConnectionOptions",{enumerable:!0,get:function(){return h0.ConnectionOptions}});Object.defineProperty(o,"NullLogger",{enumerable:!0,get:function(){return h0.NullLogger}});Object.defineProperty(o,"createMessageConnection",{enumerable:!0,get:function(){return h0.createMessageConnection}});Object.defineProperty(o,"ProgressToken",{enumerable:!0,get:function(){return h0.ProgressToken}});Object.defineProperty(o,"ProgressType",{enumerable:!0,get:function(){return h0.ProgressType}});Object.defineProperty(o,"Trace",{enumerable:!0,get:function(){return h0.Trace}});Object.defineProperty(o,"TraceValue",{enumerable:!0,get:function(){return h0.TraceValue}});Object.defineProperty(o,"TraceFormat",{enumerable:!0,get:function(){return h0.TraceFormat}});Object.defineProperty(o,"SetTraceNotification",{enumerable:!0,get:function(){return h0.SetTraceNotification}});Object.defineProperty(o,"LogTraceNotification",{enumerable:!0,get:function(){return h0.LogTraceNotification}});Object.defineProperty(o,"ConnectionErrors",{enumerable:!0,get:function(){return h0.ConnectionErrors}});Object.defineProperty(o,"ConnectionError",{enumerable:!0,get:function(){return h0.ConnectionError}});Object.defineProperty(o,"CancellationReceiverStrategy",{enumerable:!0,get:function(){return h0.CancellationReceiverStrategy}});Object.defineProperty(o,"IdCancellationReceiverStrategy",{enumerable:!0,get:function(){return h0.IdCancellationReceiverStrategy}});Object.defineProperty(o,"RequestCancellationReceiverStrategy",{enumerable:!0,get:function(){return h0.RequestCancellationReceiverStrategy}});Object.defineProperty(o,"CancellationSenderStrategy",{enumerable:!0,get:function(){return h0.CancellationSenderStrategy}});Object.defineProperty(o,"CancellationStrategy",{enumerable:!0,get:function(){return h0.CancellationStrategy}});Object.defineProperty(o,"MessageStrategy",{enumerable:!0,get:function(){return h0.MessageStrategy}});Object.defineProperty(o,"TraceValues",{enumerable:!0,get:function(){return h0.TraceValues}});var lW8=yW8(n6());o.RAL=lW8.default});var tp=k((np)=>{Object.defineProperty(np,"__esModule",{value:!0});var dp=L6("util"),B6=kQ();class xG extends B6.AbstractMessageBuffer{static emptyBuffer=Buffer.allocUnsafe(0);constructor(q="utf-8"){super(q)}emptyBuffer(){return xG.emptyBuffer}fromString(q,Z){return Buffer.from(q,Z)}toString(q,Z){if(q instanceof Buffer)return q.toString(Z);else return new dp.TextDecoder(Z).decode(q)}asNative(q,Z){if(Z===void 0)return q instanceof Buffer?q:Buffer.from(q);else return q instanceof Buffer?q.slice(0,Z):Buffer.from(q,0,Z)}allocNative(q){return Buffer.allocUnsafe(q)}}class sp{stream;constructor(q){this.stream=q}onClose(q){return this.stream.on("close",q),B6.Disposable.create(()=>this.stream.off("close",q))}onError(q){return this.stream.on("error",q),B6.Disposable.create(()=>this.stream.off("error",q))}onEnd(q){return this.stream.on("end",q),B6.Disposable.create(()=>this.stream.off("end",q))}onData(q){return this.stream.on("data",q),B6.Disposable.create(()=>this.stream.off("data",q))}}class ap{stream;constructor(q){this.stream=q}onClose(q){return this.stream.on("close",q),B6.Disposable.create(()=>this.stream.off("close",q))}onError(q){return this.stream.on("error",q),B6.Disposable.create(()=>this.stream.off("error",q))}onEnd(q){return this.stream.on("end",q),B6.Disposable.create(()=>this.stream.off("end",q))}write(q,Z){return new Promise((Q,Y)=>{let J=(H)=>{if(H===void 0||H===null)Q();else Y(H)};if(typeof q==="string")this.stream.write(q,Z,J);else this.stream.write(q,J)})}end(){this.stream.end()}}var op=Object.freeze({messageBuffer:Object.freeze({create:(q)=>new xG(q)}),applicationJson:Object.freeze({encoder:Object.freeze({name:"application/json",encode:(q,Z)=>{try{return Promise.resolve(Buffer.from(JSON.stringify(q,void 0,0),Z.charset))}catch(Q){return Promise.reject(Q)}}}),decoder:Object.freeze({name:"application/json",decode:(q,Z)=>{try{if(q instanceof Buffer)return Promise.resolve(JSON.parse(q.toString(Z.charset)));else return Promise.resolve(JSON.parse(new dp.TextDecoder(Z.charset).decode(q)))}catch(Q){return Promise.reject(Q)}}})}),stream:Object.freeze({asReadableStream:(q)=>new sp(q),asWritableStream:(q)=>new ap(q)}),console,timer:Object.freeze({setTimeout(q,Z,...Q){let Y=setTimeout(q,Z,...Q);return{dispose:()=>clearTimeout(Y)}},setImmediate(q,...Z){let Q=setImmediate(q,...Z);return{dispose:()=>clearImmediate(Q)}},setInterval(q,Z,...Q){let Y=setInterval(q,Z,...Q);return{dispose:()=>clearInterval(Y)}}})});function lG(){return op}(function(q){function Z(){B6.RAL.install(op)}q.install=Z})(lG||(lG={}));np.default=lG});var Hc=k((Z0)=>{var qc=Z0&&Z0.__createBinding||(Object.create?function(q,Z,Q,Y){if(Y===void 0)Y=Q;var J=Object.getOwnPropertyDescriptor(Z,Q);if(!J||("get"in J?!Z.__esModule:J.writable||J.configurable))J={enumerable:!0,get:function(){return Z[Q]}};Object.defineProperty(q,Y,J)}:function(q,Z,Q,Y){if(Y===void 0)Y=Q;q[Y]=Z[Q]}),mW8=Z0&&Z0.__setModuleDefault||(Object.create?function(q,Z){Object.defineProperty(q,"default",{enumerable:!0,value:Z})}:function(q,Z){q.default=Z}),mG=Z0&&Z0.__importStar||function(){var q=function(Z){return q=Object.getOwnPropertyNames||function(Q){var Y=[];for(var J in Q)if(Object.prototype.hasOwnProperty.call(Q,J))Y[Y.length]=J;return Y},q(Z)};return function(Z){if(Z&&Z.__esModule)return Z;var Q={};if(Z!=null){for(var Y=q(Z),J=0;J<Y.length;J++)if(Y[J]!=="default")qc(Q,Z,Y[J])}return mW8(Q,Z),Q}}(),pW8=Z0&&Z0.__exportStar||function(q,Z){for(var Q in q)if(Q!=="default"&&!Object.prototype.hasOwnProperty.call(Z,Q))qc(Z,q,Q)},cW8=Z0&&Z0.__importDefault||function(q){return q&&q.__esModule?q:{default:q}};Object.defineProperty(Z0,"__esModule",{value:!0});Z0.StreamMessageWriter=Z0.StreamMessageReader=Z0.SocketMessageWriter=Z0.SocketMessageReader=Z0.PortMessageWriter=Z0.PortMessageReader=Z0.IPCMessageWriter=Z0.IPCMessageReader=void 0;Z0.generateRandomPipeName=oW8;Z0.createClientPipeTransport=nW8;Z0.createServerPipeTransport=tW8;Z0.createClientSocketTransport=eW8;Z0.createServerSocketTransport=q$8;Z0.createMessageConnection=Y$8;var Y4=cW8(tp());Y4.default.install();var rW8=mG(L6("path")),iW8=mG(L6("os")),dW8=mG(L6("fs")),ep=L6("crypto"),SQ=L6("net"),b1=kQ();pW8(kQ(),Z0);class Zc extends b1.AbstractMessageReader{process;constructor(q){super();this.process=q;let Z=this.process;Z.on("error",(Q)=>this.fireError(Q)),Z.on("close",()=>this.fireClose())}listen(q){return this.process.on("message",q),b1.Disposable.create(()=>this.process.off("message",q))}}Z0.IPCMessageReader=Zc;class Qc extends b1.AbstractMessageWriter{process;errorCount;constructor(q){super();this.process=q,this.errorCount=0;let Z=this.process;Z.on("error",(Q)=>this.fireError(Q)),Z.on("close",()=>this.fireClose)}write(q){try{if(typeof this.process.send==="function")this.process.send(q,void 0,void 0,(Z)=>{if(Z)this.errorCount++,this.handleError(Z,q);else this.errorCount=0});return Promise.resolve()}catch(Z){return this.handleError(Z,q),Promise.reject(Z)}}handleError(q,Z){this.errorCount++,this.fireError(q,Z,this.errorCount)}end(){}}Z0.IPCMessageWriter=Qc;class Yc extends b1.AbstractMessageReader{onData;constructor(q){super();this.onData=new b1.Emitter,q.on("close",()=>this.fireClose),q.on("error",(Z)=>this.fireError(Z)),q.on("message",(Z)=>{this.onData.fire(Z)})}listen(q){return this.onData.event(q)}}Z0.PortMessageReader=Yc;class Jc extends b1.AbstractMessageWriter{port;errorCount;constructor(q){super();this.port=q,this.errorCount=0,q.on("close",()=>this.fireClose()),q.on("error",(Z)=>this.fireError(Z))}write(q){try{return this.port.postMessage(q),Promise.resolve()}catch(Z){return this.handleError(Z,q),Promise.reject(Z)}}handleError(q,Z){this.errorCount++,this.fireError(q,Z,this.errorCount)}end(){}}Z0.PortMessageWriter=Jc;class q2 extends b1.ReadableStreamMessageReader{constructor(q,Z="utf-8"){super((0,Y4.default)().stream.asReadableStream(q),Z)}}Z0.SocketMessageReader=q2;class Z2 extends b1.WriteableStreamMessageWriter{socket;constructor(q,Z){super((0,Y4.default)().stream.asWritableStream(q),Z);this.socket=q}dispose(){super.dispose(),this.socket.destroy()}}Z0.SocketMessageWriter=Z2;class pG extends b1.ReadableStreamMessageReader{constructor(q,Z){super((0,Y4.default)().stream.asReadableStream(q),Z)}}Z0.StreamMessageReader=pG;class cG extends b1.WriteableStreamMessageWriter{constructor(q,Z){super((0,Y4.default)().stream.asWritableStream(q),Z)}}Z0.StreamMessageWriter=cG;var sW8=process.env.XDG_RUNTIME_DIR,aW8=new Map([["linux",107],["darwin",103]]);function oW8(){if(process.platform==="win32")return`\\\\.\\pipe\\lsp-${(0,ep.randomBytes)(16).toString("hex")}-sock`;let q=32,Z=10,Q=dW8.realpathSync(sW8??iW8.tmpdir()),Y=aW8.get(process.platform);if(Y!==void 0)q=Math.min(Y-Q.length-Z,q);if(q<16)throw Error(`Unable to generate a random pipe name with ${q} characters.`);let J=(0,ep.randomBytes)(Math.floor(q/2)).toString("hex");return rW8.join(Q,`lsp-${J}.sock`)}function nW8(q,Z="utf-8"){let Q,Y=new Promise((J,H)=>{Q=J});return new Promise((J,H)=>{let X=(0,SQ.createServer)((G)=>{X.close(),Q([new q2(G,Z),new Z2(G,Z)])});X.on("error",H),X.listen(q,()=>{X.removeListener("error",H),J({onConnected:()=>{return Y}})})})}function tW8(q,Z="utf-8"){let Q=(0,SQ.createConnection)(q);return[new q2(Q,Z),new Z2(Q,Z)]}function eW8(q,Z="utf-8"){let Q,Y=new Promise((J,H)=>{Q=J});return new Promise((J,H)=>{let X=(0,SQ.createServer)((G)=>{X.close(),Q([new q2(G,Z),new Z2(G,Z)])});X.on("error",H),X.listen(q,"127.0.0.1",()=>{X.removeListener("error",H),J({onConnected:()=>{return Y}})})})}function q$8(q,Z="utf-8"){let Q=(0,SQ.createConnection)(q,"127.0.0.1");return[new q2(Q,Z),new Z2(Q,Z)]}function Z$8(q){let Z=q;return Z.read!==void 0&&Z.addListener!==void 0}function Q$8(q){let Z=q;return Z.write!==void 0&&Z.addListener!==void 0}function Y$8(q,Z,Q,Y){if(!Q)Q=b1.NullLogger;let J=Z$8(q)?new pG(q):q,H=Q$8(Z)?new cG(Z):Z;if(b1.ConnectionStrategy.is(Y))Y={connectionStrategy:Y};return(0,b1.createMessageConnection)(J,H,Q,Y)}});var rG;var Xc=u8(()=>{aq();rG=["readFile","fileExists","directoryExists","getAccessibleEntries","realpath"]});import Gc from"node:fs";import J$8 from"node:module";import M6 from"node:path";import{fileURLToPath as Vc}from"node:url";function iG(){let q=M6.dirname(Vc(import.meta.url)),Z=q.replace(/\\/g,"/"),Q=JSON.parse(Gc.readFileSync(M6.join(q,"..","package.json"),"utf8")),Y=Q.name,J=Y.startsWith("@")?Y.split("/")[1]:Y,H=Object.keys(Q.bin)[0],X,G=J+"-"+process.platform+"-"+process.arch;if(Z.endsWith("/_packages/"+J+"/lib"))X=M6.resolve(q,"..","..","..","built","local"),H="tsgo";else if(Z.endsWith("/built/npm/"+J+"/lib"))X=M6.resolve(q,"..","..",G,"lib");else{let R="@typescript/"+G;try{if(typeof import.meta.resolve>"u"){let M=J$8.createRequire(import.meta.url).resolve(R+"/package.json");X=M6.join(M6.dirname(M),"lib")}else{let B=import.meta.resolve(R+"/package.json"),M=Vc(B);X=M6.join(M6.dirname(M),"lib")}}catch(B){throw Error("Unable to resolve "+R+". Either your platform is unsupported, or you are missing the package on disk.")}}let W=M6.join(X,H);if(process.platform==="win32"){if(W+=".exe",W.length>=248)W="\\\\?\\"+W}if(!Gc.existsSync(W))throw Error("Executable not found: "+W);return W}var Wc=()=>{};function $c(q){return!("pipe"in q)}function Uc(q){return q.tsserverPath??iG()}var Rc=u8(()=>{Wc()});class dG{socket;process;connection;options;connected=!1;constructor(q){this.options=q}async connect(){if(this.connected)return;if($c(this.options))await this.connectViaSpawn(this.options);else await this.connectViaSocket(this.options)}async connectViaSpawn(q){let{spawn:Z}=await import("node:child_process");return new Promise((Q,Y)=>{let J=["--api","--async","--cwd",q.cwd??process.cwd()],H=[];if(q.fs){for(let W of rG)if(q.fs[W])H.push(W)}if(H.length>0)J.push(`--callbacks=${H.join(",")}`);this.process=Z(Uc(q),J,{stdio:["pipe","pipe","inherit"]}),this.process.once("error",(W)=>{Y(Error(`Failed to start tsgo process: ${W.message}`))}),this.process.once("spawn",()=>{this.connected=!0,Q()});let X=new E1.StreamMessageReader(this.process.stdout),G=new E1.StreamMessageWriter(this.process.stdin);this.connection=E1.createMessageConnection(X,G),this.registerFSCallbacks(this.connection,q.fs),this.connection.listen()})}async connectViaSocket(q){let{createConnection:Z}=await import("node:net");return new Promise((Q,Y)=>{this.socket=Z(q.pipe,()=>{let J=new E1.SocketMessageReader(this.socket),H=new E1.SocketMessageWriter(this.socket);this.connection=E1.createMessageConnection(J,H),this.connection.listen(),this.connected=!0,Q()}),this.socket.once("error",(J)=>{Y(Error(`Socket error: ${J.message}`))})})}registerFSCallbacks(q,Z){if(!Z)return;for(let Q of rG){let Y=Z[Q];if(Y){let J=new E1.RequestType(Q);q.onRequest(J,(H)=>{let X=Y(H);if(Q==="readFile"){if(X===void 0)return null;return{content:X}}return X??null})}}}async apiRequest(q,Z){if(!this.connected)await this.connect();if(!this.connection)throw Error("Connection not established");let Q=new E1.RequestType(q);return this.connection.sendRequest(Q,Z)}async apiRequestBinary(q,Z){let Q=await this.apiRequest(q,Z);if(!Q)return;let Y=Buffer.from(Q.data,"base64");return new Uint8Array(Y.buffer,Y.byteOffset,Y.byteLength)}async close(){if(this.connection)this.connection.dispose(),this.connection=void 0;if(this.socket)this.socket.destroy(),this.socket=void 0;if(this.process)this.process.stdin?.end(),this.process=void 0;this.connected=!1}}var E1;var zc=u8(()=>{Xc();Rc();E1=d7(Hc(),1)});var Pc={};oQ(Pc,{fileNameToDocumentURI:()=>$G,documentURIToFileName:()=>DQ,TypePredicateKind:()=>tZ,TypeFlags:()=>nZ,SymbolFlags:()=>p5,Symbol:()=>ZV,Snapshot:()=>oG,SignatureKind:()=>oZ,SignatureFlags:()=>S7,Signature:()=>QV,Project:()=>nG,Program:()=>tG,ObjectFlags:()=>aZ,NodeHandle:()=>j9,NodeBuilderFlags:()=>sZ,ModifierFlags:()=>z0,InternalAPI:()=>aG,Emitter:()=>qV,ElementFlags:()=>dZ,DiagnosticCategory:()=>iZ,CompletionItemKind:()=>rZ,Checker:()=>eG,API:()=>sG});class sG{client;sourceFileCache;toPath;initialized=!1;activeSnapshots=new Set;latestSnapshot;internal;constructor(q){this.client=new dG(q),this.sourceFileCache=new RG,this.internal=new aG(this.client,()=>this.ensureInitialized())}static async fromLSPConnection(q){let Z=new sG(q);return await Z.ensureInitialized(),Z}async ensureInitialized(){if(!this.initialized){let q=await this.client.apiRequest("initialize",null),Z=Nm(q.useCaseSensitiveFileNames),Q=q.currentDirectory;this.toPath=(Y)=>vm(Y,Q,Z),this.initialized=!0}}async parseConfigFile(q){return await this.ensureInitialized(),this.client.apiRequest("parseConfigFile",{file:q})}async updateSnapshot(q){await this.ensureInitialized();let Z=q??{};if(Z.openProject)Z.openProject=UG(Z.openProject);let Q=await this.client.apiRequest("updateSnapshot",Z);if(this.latestSnapshot){if(this.sourceFileCache.retainForSnapshot(Q.snapshot,this.latestSnapshot.id,Q.changes),this.latestSnapshot.isDisposed())this.sourceFileCache.releaseSnapshot(this.latestSnapshot.id)}let Y=new oG(Q,this.client,this.sourceFileCache,this.toPath,()=>{if(this.activeSnapshots.delete(Y),Y!==this.latestSnapshot)this.sourceFileCache.releaseSnapshot(Y.id)});return this.latestSnapshot=Y,this.activeSnapshots.add(Y),Y}async close(){for(let q of[...this.activeSnapshots])await q.dispose();if(this.latestSnapshot)this.sourceFileCache.releaseSnapshot(this.latestSnapshot.id),this.latestSnapshot=void 0;await this.client.close(),this.sourceFileCache.clear()}clearSourceFileCache(){this.sourceFileCache.clear()}}class aG{client;ensureInitialized;constructor(q,Z){this.client=q,this.ensureInitialized=Z}async startCPUProfile(q){await this.ensureInitialized(),await this.client.apiRequest("startCPUProfile",{dir:q})}async stopCPUProfile(){return await this.ensureInitialized(),(await this.client.apiRequest("stopCPUProfile",null)).file}async saveHeapProfile(q){return await this.ensureInitialized(),(await this.client.apiRequest("saveHeapProfile",{dir:q})).file}}class nG{id;configFileName;compilerOptions;rootFiles;program;checker;emitter;client;constructor(q,Z,Q,Y,J,H){this.id=q.id,this.configFileName=q.configFileName,this.compilerOptions=q.compilerOptions,this.rootFiles=q.rootFiles,this.client=Q,this.program=new tG(Z,this.id,Q,J,H),this.checker=new eG(Z,this.id,Q,Y),this.emitter=new qV(Q)}}class tG{snapshotId;projectId;client;sourceFileCache;toPath;decoder=new TextDecoder;constructor(q,Z,Q,Y,J){this.snapshotId=q,this.projectId=Z,this.client=Q,this.sourceFileCache=Y,this.toPath=J}async getSourceFile(q){let Z=UG(q),Q=this.toPath(Z),Y=this.sourceFileCache.getRetained(Q,this.snapshotId,this.projectId);if(Y)return Y;let J=await this.client.apiRequestBinary("getSourceFile",{snapshot:this.snapshotId,project:this.projectId,file:q});if(!J)return;let H=new DataView(J.buffer,J.byteOffset,J.byteLength),X=qG(H),G=ZG(H),W=new jQ(J,this.decoder);return this.sourceFileCache.set(Q,W,G,X,this.snapshotId,this.projectId)}async getSyntacticDiagnostics(q){return await this.client.apiRequest("getSyntacticDiagnostics",{snapshot:this.snapshotId,project:this.projectId,...q!==void 0?{file:q}:{}})??[]}async getSemanticDiagnostics(q){return await this.client.apiRequest("getSemanticDiagnostics",{snapshot:this.snapshotId,project:this.projectId,...q!==void 0?{file:q}:{}})??[]}async getSuggestionDiagnostics(q){return await this.client.apiRequest("getSuggestionDiagnostics",{snapshot:this.snapshotId,project:this.projectId,...q!==void 0?{file:q}:{}})??[]}async getDeclarationDiagnostics(q){return await this.client.apiRequest("getDeclarationDiagnostics",{snapshot:this.snapshotId,project:this.projectId,...q!==void 0?{file:q}:{}})??[]}async getConfigFileParsingDiagnostics(){return await this.client.apiRequest("getConfigFileParsingDiagnostics",{snapshot:this.snapshotId,project:this.projectId})??[]}}class eG{snapshotId;projectId;client;objectRegistry;constructor(q,Z,Q,Y){this.snapshotId=q,this.projectId=Z,this.client=Q,this.objectRegistry=Y}async getSymbolAtLocation(q){if(Array.isArray(q))return(await this.client.apiRequest("getSymbolsAtLocations",{snapshot:this.snapshotId,project:this.projectId,locations:q.map((Y)=>Q1(Y))})).map((Y)=>Y?this.objectRegistry.getOrCreateSymbol(Y):void 0);let Z=await this.client.apiRequest("getSymbolAtLocation",{snapshot:this.snapshotId,project:this.projectId,location:Q1(q)});return Z?this.objectRegistry.getOrCreateSymbol(Z):void 0}async getSymbolAtPosition(q,Z){if(typeof Z==="number"){let Y=await this.client.apiRequest("getSymbolAtPosition",{snapshot:this.snapshotId,project:this.projectId,file:q,position:Z});return Y?this.objectRegistry.getOrCreateSymbol(Y):void 0}return(await this.client.apiRequest("getSymbolsAtPositions",{snapshot:this.snapshotId,project:this.projectId,file:q,positions:Z})).map((Y)=>Y?this.objectRegistry.getOrCreateSymbol(Y):void 0)}async getTypeOfSymbol(q){if(Array.isArray(q))return(await this.client.apiRequest("getTypesOfSymbols",{snapshot:this.snapshotId,project:this.projectId,symbols:q.map((Y)=>Y.id)})).map((Y)=>Y?this.objectRegistry.getOrCreateType(Y):void 0);let Z=await this.client.apiRequest("getTypeOfSymbol",{snapshot:this.snapshotId,project:this.projectId,symbol:q.id});return Z?this.objectRegistry.getOrCreateType(Z):void 0}async getDeclaredTypeOfSymbol(q){let Z=await this.client.apiRequest("getDeclaredTypeOfSymbol",{snapshot:this.snapshotId,project:this.projectId,symbol:q.id});return Z?this.objectRegistry.getOrCreateType(Z):void 0}async getReferencesToSymbolInFile(q,Z){return(await this.client.apiRequest("getReferencesToSymbolInFile",{snapshot:this.snapshotId,project:this.projectId,file:q,symbol:Z.id})??[]).map((Y)=>new j9(Y))}async getReferencedSymbolsForNode(q,Z){return(await this.client.apiRequest("getReferencedSymbolsForNode",{snapshot:this.snapshotId,project:this.projectId,node:Q1(q),position:Z})??[]).map((Y)=>({definition:new j9(Y.definition),symbol:Y.symbol?this.objectRegistry.getOrCreateSymbol(Y.symbol):void 0,references:(Y.references??[]).map((J)=>new j9(J))}))}async getSignatureUsage(q){return(await this.client.apiRequest("getSignatureUsages",{snapshot:this.snapshotId,project:this.projectId,signatureDecl:Q1(q)})??[]).map((Q)=>({name:new j9(Q.name),call:Q.call?new j9(Q.call):void 0}))}async getCompletionsAtPosition(q,Z,Q){let Y=await this.client.apiRequest("getCompletionsAtPosition",{snapshot:this.snapshotId,project:this.projectId,file:q,position:Z,triggerCharacter:Q?.triggerCharacter,includeSymbol:Q?.includeSymbol});if(!Y)return;return{isIncomplete:Y.isIncomplete,entries:Y.entries.map((J)=>({...J,symbol:J.symbol?this.objectRegistry.getOrCreateSymbol(J.symbol):void 0}))}}async getTypeAtLocation(q){if(Array.isArray(q))return(await this.client.apiRequest("getTypeAtLocations",{snapshot:this.snapshotId,project:this.projectId,locations:q.map((Y)=>Q1(Y))})).map((Y)=>Y?this.objectRegistry.getOrCreateType(Y):void 0);let Z=await this.client.apiRequest("getTypeAtLocation",{snapshot:this.snapshotId,project:this.projectId,location:Q1(q)});return Z?this.objectRegistry.getOrCreateType(Z):void 0}async getSignaturesOfType(q,Z){return(await this.client.apiRequest("getSignaturesOfType",{snapshot:this.snapshotId,project:this.projectId,type:q.id,kind:Z})).map((Y)=>this.objectRegistry.getOrCreateSignature(Y))}async getResolvedSignature(q){let Z=await this.client.apiRequest("getResolvedSignature",{snapshot:this.snapshotId,project:this.projectId,location:Q1(q)});return Z?this.objectRegistry.getOrCreateSignature(Z):void 0}async getTypeAtPosition(q,Z){if(typeof Z==="number"){let Y=await this.client.apiRequest("getTypeAtPosition",{snapshot:this.snapshotId,project:this.projectId,file:q,position:Z});return Y?this.objectRegistry.getOrCreateType(Y):void 0}return(await this.client.apiRequest("getTypesAtPositions",{snapshot:this.snapshotId,project:this.projectId,file:q,positions:Z})).map((Y)=>Y?this.objectRegistry.getOrCreateType(Y):void 0)}async resolveName(q,Z,Q,Y){let J=Q&&"kind"in Q,H=await this.client.apiRequest("resolveName",{snapshot:this.snapshotId,project:this.projectId,name:q,meaning:Z,location:J?Q1(Q):void 0,file:!J&&Q?Q.document:void 0,position:!J&&Q?Q.position:void 0,excludeGlobals:Y});return H?this.objectRegistry.getOrCreateSymbol(H):void 0}async getResolvedSymbol(q){let Z=q.text;if(!Z)return;return this.resolveName(Z,p5.Value|p5.ExportValue,q)}async getContextualType(q){let Z=await this.client.apiRequest("getContextualType",{snapshot:this.snapshotId,project:this.projectId,location:Q1(q)});return Z?this.objectRegistry.getOrCreateType(Z):void 0}async getBaseTypeOfLiteralType(q){let Z=await this.client.apiRequest("getBaseTypeOfLiteralType",{snapshot:this.snapshotId,project:this.projectId,type:q.id});return Z?this.objectRegistry.getOrCreateType(Z):void 0}async getNonNullableType(q){let Z=await this.client.apiRequest("getNonNullableType",{snapshot:this.snapshotId,project:this.projectId,type:q.id});return Z?this.objectRegistry.getOrCreateType(Z):void 0}async getTypeFromTypeNode(q){let Z=await this.client.apiRequest("getTypeFromTypeNode",{snapshot:this.snapshotId,project:this.projectId,location:Q1(q)});return Z?this.objectRegistry.getOrCreateType(Z):void 0}async getWidenedType(q){let Z=await this.client.apiRequest("getWidenedType",{snapshot:this.snapshotId,project:this.projectId,type:q.id});return Z?this.objectRegistry.getOrCreateType(Z):void 0}async getParameterType(q,Z){let Q=await this.client.apiRequest("getParameterType",{snapshot:this.snapshotId,project:this.projectId,signature:q.id,index:Z});return Q?this.objectRegistry.getOrCreateType(Q):void 0}async isArrayLikeType(q){return this.client.apiRequest("isArrayLikeType",{snapshot:this.snapshotId,project:this.projectId,type:q.id})}async isTypeAssignableTo(q,Z){return this.client.apiRequest("isTypeAssignableTo",{snapshot:this.snapshotId,project:this.projectId,source:q.id,target:Z.id})}async getShorthandAssignmentValueSymbol(q){let Z=await this.client.apiRequest("getShorthandAssignmentValueSymbol",{snapshot:this.snapshotId,project:this.projectId,location:Q1(q)});return Z?this.objectRegistry.getOrCreateSymbol(Z):void 0}async getTypeOfSymbolAtLocation(q,Z){let Q=await this.client.apiRequest("getTypeOfSymbolAtLocation",{snapshot:this.snapshotId,project:this.projectId,symbol:q.id,location:Q1(Z)});return Q?this.objectRegistry.getOrCreateType(Q):void 0}async getIntrinsicType(q){let Z=await this.client.apiRequest(q,{snapshot:this.snapshotId,project:this.projectId});return this.objectRegistry.getOrCreateType(Z)}async getAnyType(){return this.getIntrinsicType("getAnyType")}async getStringType(){return this.getIntrinsicType("getStringType")}async getNumberType(){return this.getIntrinsicType("getNumberType")}async getBooleanType(){return this.getIntrinsicType("getBooleanType")}async getVoidType(){return this.getIntrinsicType("getVoidType")}async getUndefinedType(){return this.getIntrinsicType("getUndefinedType")}async getNullType(){return this.getIntrinsicType("getNullType")}async getNeverType(){return this.getIntrinsicType("getNeverType")}async getUnknownType(){return this.getIntrinsicType("getUnknownType")}async getBigIntType(){return this.getIntrinsicType("getBigIntType")}async getESSymbolType(){return this.getIntrinsicType("getESSymbolType")}async typeToTypeNode(q,Z,Q){let Y=await this.client.apiRequestBinary("typeToTypeNode",{snapshot:this.snapshotId,project:this.projectId,type:q.id,location:Z?Q1(Z):void 0,flags:Q});if(!Y)return;return JG(Y)}async signatureToSignatureDeclaration(q,Z,Q,Y){let J=await this.client.apiRequestBinary("signatureToSignatureDeclaration",{snapshot:this.snapshotId,project:this.projectId,signature:q.id,kind:Z,location:Q?Q1(Q):void 0,flags:Y});if(!J)return;return JG(J)}async typeToString(q,Z,Q){return this.client.apiRequest("typeToString",{snapshot:this.snapshotId,project:this.projectId,type:q.id,location:Z?Q1(Z):void 0,flags:Q})}async isContextSensitive(q){return this.client.apiRequest("isContextSensitive",{snapshot:this.snapshotId,project:this.projectId,location:Q1(q)})}async getReturnTypeOfSignature(q){let Z=await this.client.apiRequest("getReturnTypeOfSignature",{snapshot:this.snapshotId,project:this.projectId,signature:q.id});return Z?this.objectRegistry.getOrCreateType(Z):void 0}async getRestTypeOfSignature(q){let Z=await this.client.apiRequest("getRestTypeOfSignature",{snapshot:this.snapshotId,project:this.projectId,signature:q.id});return Z?this.objectRegistry.getOrCreateType(Z):void 0}async getTypePredicateOfSignature(q){let Z=await this.client.apiRequest("getTypePredicateOfSignature",{snapshot:this.snapshotId,project:this.projectId,signature:q.id});if(!Z)return;return{kind:Z.kind,parameterIndex:Z.parameterIndex,parameterName:Z.parameterName,type:Z.type?this.objectRegistry.getOrCreateType(Z.type):void 0}}async getBaseTypes(q){let Z=await this.client.apiRequest("getBaseTypes",{snapshot:this.snapshotId,project:this.projectId,type:q.id});return Z?Z.map((Q)=>this.objectRegistry.getOrCreateType(Q)):[]}async getPropertiesOfType(q){let Z=await this.client.apiRequest("getPropertiesOfType",{snapshot:this.snapshotId,project:this.projectId,type:q.id});return Z?Z.map((Q)=>this.objectRegistry.getOrCreateSymbol(Q)):[]}async getIndexInfosOfType(q){let Z=await this.client.apiRequest("getIndexInfosOfType",{snapshot:this.snapshotId,project:this.projectId,type:q.id});if(!Z)return[];return Z.map((Q)=>({keyType:this.objectRegistry.getOrCreateType(Q.keyType),valueType:this.objectRegistry.getOrCreateType(Q.valueType),isReadonly:Q.isReadonly??!1,declaration:Q.declaration?new j9(Q.declaration):void 0}))}async getConstraintOfTypeParameter(q){let Z=await this.client.apiRequest("getConstraintOfTypeParameter",{snapshot:this.snapshotId,project:this.projectId,type:q.id});return Z?this.objectRegistry.getOrCreateType(Z):void 0}async getTypeArguments(q){let Z=await this.client.apiRequest("getTypeArguments",{snapshot:this.snapshotId,project:this.projectId,type:q.id});return Z?Z.map((Q)=>this.objectRegistry.getOrCreateType(Q)):[]}}class qV{client;constructor(q){this.client=q}async printNode(q,Z={}){let Q=zm(q),Y=Bm(Q);return this.client.apiRequest("printNode",{data:Y,...Z})}}class j9{index;kind;path;constructor(q){let Z=jm(q);this.index=Z.index,this.kind=Z.kind,this.path=Z.path}async resolve(q){let Z=await q.program.getSourceFile(this.path);if(!Z)return;return Z.getOrCreateNodeAtIndex(this.index)}}class ZV{objectRegistry;id;name;flags;checkFlags;declarations;valueDeclaration;parent;exportSymbol;constructor(q,Z){if(this.objectRegistry=Z,this.id=q.id,this.name=q.name,this.flags=q.flags,this.checkFlags=q.checkFlags,this.declarations=(q.declarations??[]).map((Q)=>new j9(Q)),this.valueDeclaration=q.valueDeclaration?new j9(q.valueDeclaration):void 0,q.parent!==void 0)this.parent=q.parent;if(q.exportSymbol!==void 0)this.exportSymbol=q.exportSymbol}async getParent(){return this.objectRegistry.fetchSymbol(this,"getParentOfSymbol",this.parent)}async getMembers(){return this.objectRegistry.fetchSymbols(this,"getMembersOfSymbol")}async getExports(){return this.objectRegistry.fetchSymbols(this,"getExportsOfSymbol")}async getExportSymbol(){if(!this.exportSymbol)return this;return this.objectRegistry.fetchSymbol(this,"getExportSymbolOfSymbol",this.exportSymbol)}}class Mc{objectRegistry;id;flags;objectFlags;symbol;value;intrinsicName;isThisType;freshType;regularType;target;typeParameters;outerTypeParameters;localTypeParameters;aliasTypeArguments;aliasSymbol;elementFlags;fixedLength;readonly;texts;objectType;indexType;checkType;extendsType;baseType;substConstraint;constructor(q,Z){if(this.objectRegistry=Z,this.id=q.id,this.flags=q.flags,q.objectFlags!==void 0)this.objectFlags=q.objectFlags;if(q.symbol!==void 0)this.symbol=q.symbol;if(q.value!==void 0)this.value=q.value;if(q.intrinsicName!==void 0)this.intrinsicName=q.intrinsicName;if(q.isThisType!==void 0)this.isThisType=q.isThisType;if(q.freshType!==void 0)this.freshType=q.freshType;if(q.regularType!==void 0)this.regularType=q.regularType;if(q.target!==void 0)this.target=q.target;if(this.typeParameters=q.typeParameters??[],this.outerTypeParameters=q.outerTypeParameters??[],this.localTypeParameters=q.localTypeParameters??[],this.aliasTypeArguments=q.aliasTypeArguments??[],q.aliasSymbol!==void 0)this.aliasSymbol=q.aliasSymbol;if(q.elementFlags!==void 0)this.elementFlags=q.elementFlags;if(q.fixedLength!==void 0)this.fixedLength=q.fixedLength;if(q.readonly!==void 0)this.readonly=q.readonly;if(q.texts!==void 0)this.texts=q.texts;if(q.objectType!==void 0)this.objectType=q.objectType;if(q.indexType!==void 0)this.indexType=q.indexType;if(q.checkType!==void 0)this.checkType=q.checkType;if(q.extendsType!==void 0)this.extendsType=q.extendsType;if(q.baseType!==void 0)this.baseType=q.baseType;if(q.substConstraint!==void 0)this.substConstraint=q.substConstraint}async getSymbol(){return this.objectRegistry.fetchSymbol(this,"getSymbolOfType",this.symbol)}async getAliasSymbol(){return this.objectRegistry.fetchSymbol(this,"getAliasSymbolOfType",this.aliasSymbol)}async getTarget(){return this.objectRegistry.fetchType(this,"getTargetOfType",this.target)}async getFreshType(){return this.objectRegistry.fetchType(this,"getFreshTypeOfType",this.freshType)}async getRegularType(){return this.objectRegistry.fetchType(this,"getRegularTypeOfType",this.regularType)}async getTypes(){return this.objectRegistry.fetchTypes(this,"getTypesOfType")}async getTypeParameters(){return this.objectRegistry.fetchTypes(this,"getTypeParametersOfType",this.typeParameters)}async getOuterTypeParameters(){return this.objectRegistry.fetchTypes(this,"getOuterTypeParametersOfType",this.outerTypeParameters)}async getLocalTypeParameters(){return this.objectRegistry.fetchTypes(this,"getLocalTypeParametersOfType",this.localTypeParameters)}async getAliasTypeArguments(){return this.objectRegistry.fetchTypes(this,"getAliasTypeArgumentsOfType",this.aliasTypeArguments)}async getObjectType(){return this.objectRegistry.fetchType(this,"getObjectTypeOfType",this.objectType)}async getIndexType(){return this.objectRegistry.fetchType(this,"getIndexTypeOfType",this.indexType)}async getCheckType(){return this.objectRegistry.fetchType(this,"getCheckTypeOfType",this.checkType)}async getExtendsType(){return this.objectRegistry.fetchType(this,"getExtendsTypeOfType",this.extendsType)}async getBaseType(){return this.objectRegistry.fetchType(this,"getBaseTypeOfType",this.baseType)}async getConstraint(){return this.objectRegistry.fetchType(this,"getConstraintOfType",this.substConstraint)}}class QV{flags;objectRegistry;id;declaration;typeParameters;parameters;thisParameter;target;constructor(q,Z){this.id=q.id,this.flags=q.flags,this.objectRegistry=Z,this.declaration=q.declaration?new j9(q.declaration):void 0,this.typeParameters=q.typeParameters??[],this.parameters=q.parameters??[],this.thisParameter=q.thisParameter,this.target=q.target}async getTypeParameters(){return this.objectRegistry.fetchTypes(this,"getTypeParametersOfSignature",this.typeParameters)}async getParameters(){return this.objectRegistry.fetchSymbols(this,"getParametersOfSignature",this.parameters)}async getThisParameter(){return this.objectRegistry.fetchSymbol(this,"getThisParameterOfSignature",this.thisParameter)}async getTarget(){return this.objectRegistry.fetchSignature(this,"getTargetOfSignature",this.target)}get hasRestParameter(){return(this.flags&S7.HasRestParameter)!==0}get isConstruct(){return(this.flags&S7.Construct)!==0}get isAbstract(){return(this.flags&S7.Abstract)!==0}}var oG,Bc;var Lc=u8(()=>{iy();dy();sy();ay();oy();ny();ty();ey();q_();Z_();s6();Mm();Im();aq();um();zc();aq();oG=class oG{id;projectMap;toPath;client;objectRegistry;disposed=!1;onDispose;constructor(q,Z,Q,Y,J){this.id=q.snapshot,this.client=Z,this.toPath=Y,this.onDispose=J,this.objectRegistry=new Bc({createSymbol:(H)=>new ZV(H,this.objectRegistry),createType:(H)=>new Mc(H,this.objectRegistry),createSignature:(H)=>new QV(H,this.objectRegistry)},Z,this.id),this.projectMap=new Map;for(let H of q.projects){let X=new nG(H,this.id,Z,this.objectRegistry,Q,Y);this.projectMap.set(Y(H.configFileName),X)}}getProjects(){return this.ensureNotDisposed(),[...this.projectMap.values()]}getProject(q){return this.ensureNotDisposed(),this.projectMap.get(this.toPath(q))}async getDefaultProjectForFile(q){this.ensureNotDisposed();let Z=await this.client.apiRequest("getDefaultProjectForFile",{snapshot:this.id,file:q});if(!Z)return;return this.projectMap.get(this.toPath(Z.configFileName))}[globalThis.Symbol.dispose](){this.dispose()}async dispose(){if(this.disposed)return;this.disposed=!0,this.objectRegistry.clear(),this.onDispose(),await this.client.apiRequest("release",{snapshot:this.id})}isDisposed(){return this.disposed}ensureNotDisposed(){if(this.disposed)throw Error("Snapshot is disposed")}};Bc=class Bc extends XG{client;snapshotId;constructor(q,Z,Q){super(q);this.client=Z,this.snapshotId=Q}async fetchType(q,Z,Q){if(!Q)return;let Y=this.getType(Q);if(Y)return Y;let J=await this.client.apiRequest(Z,{snapshot:this.snapshotId,objectId:q.id});if(!J)throw Error(`${Z} returned null type for ${q.constructor.name} ${q.id}`);return this.getOrCreateType(J)}async fetchSymbol(q,Z,Q){if(!Q)return;let Y=this.getSymbol(Q);if(Y)return Y;let J=await this.client.apiRequest(Z,{snapshot:this.snapshotId,objectId:q.id});if(!J)throw Error(`${Z} returned null symbol for ${q.constructor.name} ${q.id}`);return this.getOrCreateSymbol(J)}async fetchSignature(q,Z,Q){if(!Q)return;let Y=this.getSignature(Q);if(Y)return Y;let J=await this.client.apiRequest(Z,{snapshot:this.snapshotId,objectId:q.id});if(!J)throw Error(`${Z} returned null signature for ${q.constructor.name} ${q.id}`);return this.getOrCreateSignature(J)}async fetchTypes(q,Z,Q){if(Q){let J=Array(Q.length),H=!0;for(let X=0;X<Q.length;X++){let G=this.getType(Q[X]);if(!G){H=!1;break}J[X]=G}if(H)return J}let Y=await this.client.apiRequest(Z,{snapshot:this.snapshotId,objectId:q.id});if(Y==null)return[];else return Y.map((J)=>this.getOrCreateType(J))}async fetchSymbols(q,Z,Q){if(Q){let J=Array(Q.length),H=!0;for(let X=0;X<Q.length;X++){let G=this.getSymbol(Q[X]);if(!G){H=!1;break}J[X]=G}if(H)return J}let Y=await this.client.apiRequest(Z,{snapshot:this.snapshotId,objectId:q.id});if(Y==null)return[];else return Y.map((J)=>this.getOrCreateSymbol(J))}}});var Ac={};oQ(Ac,{TypeResolver:()=>YV});import{existsSync as H$8,readdirSync as X$8,statSync as G$8}from"node:fs";import Z9 from"node:path";class YV{api;symbolFlags;tsconfigPath;overlay=new Map;constructor(q,Z,Q){this.api=q,this.symbolFlags=Z,this.tsconfigPath=Q}static async create(q=process.cwd()){let Z=O$8(q);if(!Z)return console.warn("Warning: `resolveTypes` could not locate a tsconfig.json. Skipping semantic resolution."),null;let Q;try{Q=await Promise.resolve().then(() => (Lc(),Pc))}catch(H){return console.warn("Warning: `resolveTypes` requires the `typescript` package to be installed. Skipping semantic resolution.",H),null}let Y=new YV(null,Q.SymbolFlags,Z),J=new Q.API({cwd:q,fs:Y.createFileSystem()});return Y.api=J,Y}async expandAll(q){let Z=new Map;if(q.length===0)return Z;let Q=new Map;for(let J of q){if(!J.metadata.canonicalPropsType)continue;let H=this.virtualFileName(J.filePath,J.moduleName);this.overlay.set(H,z$8(J.metadata)),Q.set(H,J)}if(Q.size===0)return Z;let Y=await this.api.updateSnapshot({openProject:this.tsconfigPath,fileChanges:{created:Array.from(Q.keys())}});try{let J=await Promise.all(Array.from(Q,async([H,X])=>[X.moduleName,await this.resolveFile(Y,H)]));for(let[H,X]of J)Z.set(H,X)}finally{await Y.dispose?.()}return Z}async checkExamples(q){let Z=new Map;if(q.length===0)return Z;let Q=[];for(let J of q)for(let H of J.sources){let X=this.exampleFileName(J.filePath,J.moduleName,H.id);this.overlay.set(X,M$8(H)),Q.push({moduleName:J.moduleName,source:H,file:X})}if(Q.length===0)return Z;let Y=await this.api.updateSnapshot({openProject:this.tsconfigPath,fileChanges:{created:Q.map((J)=>J.file)}});try{await Promise.all(Q.map(async({moduleName:J,source:H,file:X})=>{let G=await Y.getDefaultProjectForFile(X);if(!G)return;let[W,R]=await Promise.all([G.program.getSyntacticDiagnostics(X),G.program.getSemanticDiagnostics(X)]),B=[...W,...R];if(B.length===0)return;let M=this.overlay.get(X)??"",V=B.map((O)=>P$8(O,M)).sort((O,w)=>O.line-w.line).map((O)=>`Line ${O.line}: ${O.text}`).join(`
|
|
27
|
-
`),$=Z.get(J)??[];$.push({id:H.id,name:H.name,message:V}),Z.set(J,$)}))}finally{await Y.dispose?.()}return Z}async dispose(){this.overlay.clear(),await this.api?.close?.()}async resolveFile(q,Z){let Q=this.overlay.get(Z);if(!Q)return[];let Y=await q.getDefaultProjectForFile(Z);if(!Y)return[];let J=Y.checker,H=L$8(Q),X=await J.getTypeAtPosition(Z,H);if(!X)return[];let G=await J.getPropertiesOfType(X),W=await Promise.all(G.filter((R)=>R.name&&!R.name.startsWith("__")).map(async(R)=>{let B=await J.getTypeOfSymbol(R),M=(R.flags&this.symbolFlags.Optional)!==0,V=B?await J.typeToString(B):"any";if(M)V=V.replace(V$8,"");return{name:R.name,type:V,isRequired:!M}}));return W.sort((R,B)=>R.name.localeCompare(B.name)),W}createFileSystem(){return{readFile:(q)=>this.overlay.get(v0(q)),fileExists:(q)=>this.overlay.has(v0(q))?!0:void 0,getAccessibleEntries:(q)=>{let Z=v0(q),Q=Array.from(this.overlay.keys()).filter((H)=>v0(Z9.dirname(H))===Z);if(Q.length===0)return;let Y=[],J=[];try{for(let H of X$8(q)){let X=Z9.join(q,H);try{(G$8(X).isDirectory()?J:Y).push(H)}catch{}}}catch{}for(let H of Q){let X=Z9.basename(H);if(!Y.includes(X))Y.push(X)}return{files:Y,directories:J}}}}virtualFileName(q,Z){let Q=Z9.dirname(Z9.resolve(q));return v0(Z9.join(Q,`__sveld_resolved_${Z}.ts`))}exampleFileName(q,Z,Q){let Y=Z9.dirname(Z9.resolve(q)),J=Q.replace(W$8,"_");return v0(Z9.join(Y,`__sveld_example_${Z}_${J}.ts`))}}function z$8(q){return[...q.typeImportStatements,...q.localTypeDeclarations,`type ${Oc} = ${q.canonicalPropsType};`,`declare const ${wc}: ${Oc};`].join(`
|
|
28
|
-
`)}function B$8(q){let Z=q.replace($$8,"_");if(Z===""||U$8.test(Z))return`_${Z}`;return Z}function M$8(q){return`const ${B$8(q.name)} = null as unknown as (${q.type});
|
|
29
|
-
${q.code}
|
|
30
|
-
`}function P$8(q,Z){let Q=q.pos??0,Y=Z.slice(0,Q).split(`
|
|
31
|
-
`).length;return{line:Math.max(1,Y-R$8+1),text:String(q.text??"").trim()}}function L$8(q){let Z=q.lastIndexOf("declare const");return q.indexOf(wc,Z)+2}function O$8(q){let Z=Z9.resolve(q);while(!0){let Q=Z9.join(Z,"tsconfig.json");if(H$8(Q))return Q;let Y=Z9.dirname(Z);if(Y===Z)return null;Z=Y}}var wc="__sveld_resolved_props__",Oc="__SveldResolvedProps__",V$8,W$8,$$8,U$8,R$8=2;var jc=u8(()=>{U6();V$8=/ \| undefined$/,W$8=/[^A-Za-z0-9_-]/g,$$8=/[^A-Za-z0-9_$]/g,U$8=/^[0-9]/});var y1;(function(q){q.start="/**",q.nostart="/***",q.delim="*",q.end="*/"})(y1=y1||(y1={}));function nQ(q){return/^\s+$/.test(q)}function CV(q){let Z=q.match(/\r+$/);return Z==null?["",q]:[q.slice(-Z[0].length),q.slice(0,-Z[0].length)]}function c9(q){let Z=q.match(/^\s+/);return Z==null?["",q]:[q.slice(0,Z[0].length),q.slice(Z[0].length)]}function EV(q){return q.split(/\n/)}function FV(q={}){return Object.assign({tag:"",name:"",type:"",optional:!1,description:"",problems:[],source:[]},q)}function tQ(q={}){return Object.assign({start:"",delimiter:"",postDelimiter:"",tag:"",postTag:"",name:"",postName:"",type:"",postType:"",description:"",end:"",lineEnd:""},q)}var Pr=/^@\S+/;function eQ({fence:q="```"}={}){let Z=Lr(q),Q=(Y,J)=>Z(Y)?!J:J;return function(J){let H=[[]],X=!1;for(let G of J){if(Pr.test(G.tokens.description)&&!X)H.push([G]);else H[H.length-1].push(G);X=Q(G.tokens.description,X)}return H}}function Lr(q){if(typeof q==="string")return(Z)=>Z.split(q).length%2===0;return q}function qY({startLine:q=0,markers:Z=y1}={}){let Q=null,Y=q;return function(H){let X=H,G=tQ();if([G.lineEnd,X]=CV(X),[G.start,X]=c9(X),Q===null&&X.startsWith(Z.start)&&!X.startsWith(Z.nostart))Q=[],G.delimiter=X.slice(0,Z.start.length),X=X.slice(Z.start.length),[G.postDelimiter,X]=c9(X);if(Q===null)return Y++,null;let W=X.trimRight().endsWith(Z.end);if(G.delimiter===""&&X.startsWith(Z.delim)&&!X.startsWith(Z.end))G.delimiter=Z.delim,X=X.slice(Z.delim.length),[G.postDelimiter,X]=c9(X);if(W){let R=X.trimRight();G.end=X.slice(R.length-Z.end.length),X=R.slice(0,-Z.end.length)}if(G.description=X,Q.push({number:Y,source:H,tokens:G}),Y++,W){let R=Q.slice();return Q=null,R}return null}}function ZY({tokenizers:q}){return function(Q){var Y;let J=FV({source:Q});for(let H of q)if(J=H(J),(Y=J.problems[J.problems.length-1])===null||Y===void 0?void 0:Y.critical)break;return J}}function R4(){return(q)=>{let{tokens:Z}=q.source[0],Q=Z.description.match(/\s*(@(\S+))(\s*)/);if(Q===null)return q.problems.push({code:"spec:tag:prefix",message:'tag should start with "@" symbol',line:q.source[0].number,critical:!0}),q;return Z.tag=Q[1],Z.postTag=Q[3],Z.description=Z.description.slice(Q[0].length),q.tag=Q[2],q}}function z4(q="compact"){let Z=wr(q);return(Q)=>{let Y=0,J=[];for(let[G,{tokens:W}]of Q.source.entries()){let R="";if(G===0&&W.description[0]!=="{")return Q;for(let B of W.description){if(B==="{")Y++;if(B==="}")Y--;if(R+=B,Y===0)break}if(J.push([W,R]),Y===0)break}if(Y!==0)return Q.problems.push({code:"spec:type:unpaired-curlies",message:"unpaired curlies",line:Q.source[0].number,critical:!0}),Q;let H=[],X=J[0][0].postDelimiter.length;for(let[G,[W,R]]of J.entries()){if(W.type=R,G>0)W.type=W.postDelimiter.slice(X)+R,W.postDelimiter=W.postDelimiter.slice(0,X);[W.postType,W.description]=c9(W.description.slice(R.length)),H.push(W.type)}return H[0]=H[0].slice(1),H[H.length-1]=H[H.length-1].slice(0,-1),Q.type=Z(H),Q}}var Or=(q)=>q.trim();function wr(q){if(q==="compact")return(Z)=>Z.map(Or).join("");else if(q==="preserve")return(Z)=>Z.join(`
|
|
32
|
-
`);else return q}var Ar=(q)=>q&&q.startsWith('"')&&q.endsWith('"');function B4(){let q=(Z,{tokens:Q},Y)=>Q.type===""?Z:Y;return(Z)=>{let{tokens:Q}=Z.source[Z.source.reduce(q,0)],Y=Q.description.trimLeft(),J=Y.split('"');if(J.length>1&&J[0]===""&&J.length%2===1)return Z.name=J[1],Q.name=`"${J[1]}"`,[Q.postName,Q.description]=c9(Y.slice(Q.name.length)),Z;let H=0,X="",G=!1,W;for(let B of Y){if(H===0&&nQ(B))break;if(B==="[")H++;if(B==="]")H--;X+=B}if(H!==0)return Z.problems.push({code:"spec:name:unpaired-brackets",message:"unpaired brackets",line:Z.source[0].number,critical:!0}),Z;let R=X;if(X[0]==="["&&X[X.length-1]==="]"){G=!0,X=X.slice(1,-1);let B=X.split("=");if(X=B[0].trim(),B[1]!==void 0)W=B.slice(1).join("=").trim();if(X==="")return Z.problems.push({code:"spec:name:empty-name",message:"empty name",line:Z.source[0].number,critical:!0}),Z;if(W==="")return Z.problems.push({code:"spec:name:empty-default",message:"empty default value",line:Z.source[0].number,critical:!0}),Z;if(!Ar(W)&&/=(?!>)/.test(W))return Z.problems.push({code:"spec:name:invalid-default",message:"invalid default value syntax",line:Z.source[0].number,critical:!0}),Z}if(Z.optional=G,Z.name=X,Q.name=R,W!==void 0)Z.default=W;return[Q.postName,Q.description]=c9(Y.slice(Q.name.length)),Z}}function M4(q="compact",Z=y1){let Q=QY(q);return(Y)=>{return Y.description=Q(Y.source,Z),Y}}function QY(q){if(q==="compact")return jr;if(q==="preserve")return Cr;return q}function jr(q,Z=y1){return q.map(({tokens:{description:Q}})=>Q.trim()).filter((Q)=>Q!=="").join(" ")}var Ir=(q,{tokens:Z},Q)=>Z.type===""?q:Q,Dr=({tokens:q})=>(q.delimiter===""?q.start:q.postDelimiter.slice(1))+q.description;function Cr(q,Z=y1){if(q.length===0)return"";if(q[0].tokens.description===""&&q[0].tokens.delimiter===Z.start)q=q.slice(1);let Q=q[q.length-1];if(Q!==void 0&&Q.tokens.description===""&&Q.tokens.end.endsWith(Z.end))q=q.slice(0,-1);return q=q.slice(q.reduce(Ir,0)),q.map(Dr).join(`
|
|
33
|
-
`)}function YY({startLine:q=0,fence:Z="```",spacing:Q="compact",markers:Y=y1,tokenizers:J=[R4(),z4(Q),B4(),M4(Q)]}={}){if(q<0||q%1>0)throw Error("Invalid startLine");let H=qY({startLine:q,markers:Y}),X=eQ({fence:Z}),G=ZY({tokenizers:J}),W=QY(Q);return function(R){let B=[];for(let M of EV(R)){let V=H(M);if(V===null)continue;let $=X(V),O=$.slice(1).map(G);B.push({description:W($[0],Y),tags:O,source:V,problems:O.reduce((w,I)=>w.concat(I.problems),[])})}return B}}function Er(q){return q.start+q.delimiter+q.postDelimiter+q.tag+q.postTag+q.type+q.postType+q.name+q.postName+q.description+q.end+q.lineEnd}function JY(){return(q)=>q.source.map(({tokens:Z})=>Er(Z)).join(`
|
|
34
|
-
`)}var Fr={line:0,start:0,delimiter:0,postDelimiter:0,tag:0,postTag:0,name:0,postName:0,type:0,postType:0,description:0,end:0,lineEnd:0};var _R8=Object.keys(Fr);function s7(q,Z={}){return YY(Z)(q)}var Jz8=JY();class P4{constructor(){this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.context={skip:()=>this.should_skip=!0,remove:()=>this.should_remove=!0,replace:(q)=>this.replacement=q}}replace(q,Z,Q,Y){if(q&&Z)if(Q!=null)q[Z][Q]=Y;else q[Z]=Y}remove(q,Z,Q){if(q&&Z)if(Q!==null&&Q!==void 0)q[Z].splice(Q,1);else delete q[Z]}}class XY extends P4{constructor(q,Z){super();this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.context={skip:()=>this.should_skip=!0,remove:()=>this.should_remove=!0,replace:(Q)=>this.replacement=Q},this.enter=q,this.leave=Z}visit(q,Z,Q,Y){if(q){if(this.enter){let H=this.should_skip,X=this.should_remove,G=this.replacement;if(this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.enter.call(this.context,q,Z,Q,Y),this.replacement)q=this.replacement,this.replace(Z,Q,Y,q);if(this.should_remove)this.remove(Z,Q,Y);let W=this.should_skip,R=this.should_remove;if(this.should_skip=H,this.should_remove=X,this.replacement=G,W)return q;if(R)return null}let J;for(J in q){let H=q[J];if(H&&typeof H==="object"){if(Array.isArray(H)){let X=H;for(let G=0;G<X.length;G+=1){let W=X[G];if(TV(W)){if(!this.visit(W,q,J,G))G--}}}else if(TV(H))this.visit(H,q,J,null)}}if(this.leave){let H=this.replacement,X=this.should_remove;if(this.replacement=null,this.should_remove=!1,this.leave.call(this.context,q,Z,Q,Y),this.replacement)q=this.replacement,this.replace(Z,Q,Y,q);if(this.should_remove)this.remove(Z,Q,Y);let G=this.should_remove;if(this.replacement=H,this.should_remove=X,G)return null}}return q}}function TV(q){return q!==null&&typeof q==="object"&&"type"in q&&typeof q.type==="string"}function Q7(q,{enter:Z,leave:Q}){return new XY(Z,Q).visit(q,null)}function K8(q,Z,Q){let Y=Q._,J=!1;function H(G,{next:W,state:R}){W(R)}function X(G,W,R){if(J)return;if(!G.type)return;let B,M={},V={path:W,state:R,next:(O=R)=>{W.push(G);for(let w in G){if(w==="type")continue;let I=G[w];if(I&&typeof I==="object")if(Array.isArray(I)){let C={},E=I.length,D=!1;for(let f=0;f<E;f++){let v=I[f];if(v&&typeof v==="object"){let _=X(v,W,O);if(_)C[f]=_,D=!0}}if(D)M[w]=I.map((f,v)=>C[v]??f)}else{let C=X(I,W,O);if(C)M[w]=C}}if(W.pop(),Object.keys(M).length>0)return fV(G,M)},stop:()=>{J=!0},visit:(O,w=R)=>{W.push(G);let I=X(O,W,w)??O;return W.pop(),I}},$=Q[G.type]??H;if(Y){let O;if(B=Y(G,{...V,next:(w=R)=>{return R=w,O=$(G,{...V,state:w}),O}}),!B&&O)B=O}else B=$(G,V);if(!B){if(Object.keys(M).length>0)B=fV(G,M)}if(B)return B}return X(q,[],Z)??q}function fV(q,Z){let Q={},Y=Object.getOwnPropertyDescriptors(q);for(let J in Y)Object.defineProperty(Q,J,Y[J]);for(let J in Z)Q[J]=Z[J];return Q}var L4=/\s+/,Y7=/^\r?\n/,KV=/^\s/,J7=/^[ \t\r\n]+/,GY=/\s$/,O6=/[ \t\r\n]+$/,C9=/[^ \t\r\n]/,VY=/[ \t\n\r\f]+/g,vV=/^[ \t\n\r\f]+$/,O4=/[^\n]/g,W2=/^[a-zA-Z_$][a-zA-Z_$0-9]*$/,NV=/(^[^a-zA-Z_$]|[^a-zA-Z0-9_$])/g,kV=/^[aeiou]/,SV=/^h[1-6]$/,uV=/(^[0-9-.])|[\^$@%&#?!|()[\]{}^*+~;]/,H7=/[\u202a\u202b\u202c\u202d\u202e\u2066\u2067\u2068\u2069]+/g,bV=/^\W*javascript:/i,hV=/\b(image|picture|photo)\b/i;var w4=1,$2=2,yV=4,_V=8,gV=16,lV=1,xV=2,mV=4,pV=8,cV=16,rV=1,iV=2,dV=4,A4=1,WY=2,sV=4,aV=8,oV="[",nV="[!";var tV="]";var eV=1,$Y=2,qW=4,wz8=Symbol("uninitialized"),Az8=Symbol("filename"),jz8=Symbol("hmr");var j4="http://www.w3.org/2000/svg",I4="http://www.w3.org/1998/Math/MathML",ZW=["await_waterfall","await_reactivity_loss","state_snapshot_uncloneable","binding_property_non_reactive","hydration_attribute_changed","hydration_html_changed","ownership_invalid_binding","ownership_invalid_mutation"];function w6(q,Z){if(Z.length===0)return null;let Y=new JW(Z).get(q);return Y&&Y[0][0]>0.7?Y[0][1]:null}var UY=2,RY=3;function Tr(q,Z){if(q===null&&Z===null)throw"Trying to compare two null values";if(q===null||Z===null)return 0;return q=String(q),Z=String(Z),1-fr(q,Z)/Math.max(q.length,Z.length)}function fr(q,Z){let Q=[],Y=0;for(let J=0;J<=Z.length;J++)for(let H=0;H<=q.length;H++){let X;if(J&&H)if(q.charAt(H-1)===Z.charAt(J-1))X=Y;else X=Math.min(Q[H],Q[H-1],Y)+1;else X=J+H;Y=Q[H],Q[H]=X}return Q.pop()}var Kr=/[^\w, ]+/;function vr(q,Z=2){let Q="-"+q.toLowerCase().replace(Kr,"")+"-",Y=Z-Q.length,J=[];if(Y>0)for(let H=0;H<Y;++H)q+="-";for(let H=0;H<Q.length-Z+1;++H)J.push(Q.slice(H,H+Z));return J}function QW(q,Z=2){let Q={},Y=vr(q,Z),J=0;for(J;J<Y.length;++J)if(Y[J]in Q)Q[Y[J]]+=1;else Q[Y[J]]=1;return Q}function YW(q,Z){return Z[0]-q[0]}class JW{exact_set={};match_dict={};items={};constructor(q){for(let Z=UY;Z<RY+1;++Z)this.items[Z]=[];for(let Z=0;Z<q.length;++Z)this.add(q[Z])}add(q){if(q.toLowerCase()in this.exact_set)return!1;let Q=UY;for(Q;Q<RY+1;++Q)this._add(q,Q)}_add(q,Z){let Q=q.toLowerCase(),Y=this.items[Z]||[],J=Y.length;Y.push(0);let H=QW(Q,Z),X=0,G,W;for(G in H)if(W=H[G],X+=Math.pow(W,2),G in this.match_dict)this.match_dict[G].push([J,W]);else this.match_dict[G]=[[J,W]];let R=Math.sqrt(X);Y[J]=[R,Q],this.items[Z]=Y,this.exact_set[Q]=q}get(q){let Z=q.toLowerCase(),Q=this.exact_set[Z];if(Q)return[[1,Q]];for(let Y=RY;Y>=UY;--Y){let J=this.__get(q,Y);if(J.length>0)return J}return null}__get(q,Z){let Q=q.toLowerCase(),Y={},J=QW(Q,Z),H=this.items[Z],X=0,G,W,R,B,M;for(G in J)if(W=J[G],X+=Math.pow(W,2),G in this.match_dict)for(R=0;R<this.match_dict[G].length;++R)if(B=this.match_dict[G][R][0],M=this.match_dict[G][R][1],B in Y)Y[B]+=W*M;else Y[B]=W*M;let V=Math.sqrt(X),$=[],O;for(let C in Y)O=Y[C],$.push([O/(V*H[C][0]),H[C][1]]);$.sort(YW);let w=[],I=Math.min(50,$.length);for(let C=0;C<I;++C)w.push([Tr($[C][1],Q),$[C][1]]);$=w,$.sort(YW),w=[];for(let C=0;C<$.length;++C)if($[C][0]===$[0][0])w.push([$[C][0],this.exact_set[$[C][1]]]);return w}}function Nr(q,Z){return q.start<=Z&&Z<q.end}function zY(q,Z={}){let{offsetLine:Q=0,offsetColumn:Y=0}=Z,J=0,H=q.split(`
|
|
35
|
-
`).map((W,R)=>{let B=J+W.length+1,M={start:J,end:B,line:R};return J=B,M}),X=0;function G(W,R){if(typeof W==="string")W=q.indexOf(W,R??0);if(W===-1)return;let B=H[X],M=W>=B.end?1:-1;while(B){if(Nr(B,W))return{line:Q+B.line,column:Y+W-B.start,character:W};X+=M,B=H[X]}}return G}var kr=/\r/g;function a7(q){q=q.replace(kr,"");let Z=5381,Q=q.length;while(Q--)Z=(Z<<5)-Z^q.charCodeAt(Q);return(Z>>>0).toString(36)}var Sr=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"];function J9(q){return Sr.includes(q)||q.toLowerCase()==="!doctype"}var ur=["arguments","await","break","case","catch","class","const","continue","debugger","default","delete","do","else","enum","eval","export","extends","false","finally","for","function","if","implements","import","in","instanceof","interface","let","new","null","package","private","protected","public","return","static","super","switch","this","throw","true","try","typeof","var","void","while","with","yield"];function U2(q){return ur.includes(q)}function HW(q){return q.endsWith("capture")&&q!=="gotpointercapture"&&q!=="lostpointercapture"}var br=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function XW(q){return br.includes(q)}var GW=["allowfullscreen","async","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","indeterminate","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected","webkitdirectory","defer","disablepictureinpicture","disableremoteplayback"];function BY(q){return GW.includes(q)}var hr={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly",defaultvalue:"defaultValue",defaultchecked:"defaultChecked",srcobject:"srcObject",novalidate:"noValidate",allowfullscreen:"allowFullscreen",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback"};function VW(q){return q=q.toLowerCase(),hr[q]??q}var yr=[...GW,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];function WW(q){return yr.includes(q)}var _r=["autofocus","muted","defaultValue","defaultChecked"];function o7(q){return _r.includes(q)}var gr=["touchstart","touchmove"];function $W(q){return gr.includes(q)}var lr=["textContent","innerHTML","innerText"];function n7(q){return lr.includes(q)}var xr=["body","embed","iframe","img","link","object","script","style","track"];function t7(q){return xr.includes(q)}var mr=["altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","discard","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignObject","g","glyph","glyphRef","hatch","hatchpath","hkern","image","line","linearGradient","marker","mask","mesh","meshgradient","meshpatch","meshrow","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","set","solidcolor","stop","svg","switch","symbol","text","textPath","tref","tspan","unknown","use","view","vkern"];function e7(q){return mr.includes(q)}var pr=["annotation","annotation-xml","maction","math","merror","mfrac","mi","mmultiscripts","mn","mo","mover","mpadded","mphantom","mprescripts","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msubsup","msup","mtable","mtd","mtext","mtr","munder","munderover","semantics"];function MY(q){return pr.includes(q)}var UW=["$state","$state.raw","$derived","$derived.by"],cr=[...UW,"$state.eager","$state.snapshot","$props","$props.id","$bindable","$effect","$effect.pre","$effect.tracking","$effect.root","$effect.pending","$inspect","$inspect().with","$inspect.trace","$host"];function E9(q){return cr.includes(q)}function RW(q){return UW.includes(q)}var zW=/^[a-zA-Z][a-zA-Z0-9]*(-[a-zA-Z0-9.\-_\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u{10000}-\u{EFFFF}]*)?$/u;function BW(q){return q?.replace(/\//g,"/")}var Q5=[],T0,r9="(unknown)",j6="<unknown>",q5,D4=[],Q8,C4=!1,J0;function E4(q){q5=q,D4=q5.split(`
|
|
36
|
-
`);let Z=zY(q5,{offsetLine:1});J0=(Q)=>{let Y=Z(Q);if(!Y)throw Error("An impossible situation occurred");return Y}}function X7(q){let Z=J0(q.start);return`${BW(T0)}:${Z?.line}:${Z.column}`}var PY,A6=[],Y5=new Map,Z5=null;function MW(){if(Z5===null)Z5=A6.map((q)=>new Set(q));return Z5}function PW(q){let Z=new Set([...A6.at(-1)||[],...q]);A6.push(Z),Z5=null}function LW(){A6.pop(),Z5=null}function L0(q,Z){return Q8&&!!Y5.get(q)?.some((Q)=>Q.has(Z))}function F4(q){Q8=!1,C4=!1,j6=r9,q5="",D4=[],T0=(q.filename??r9).replace(/\\/g,"/"),PY=q.warning??(()=>!0),Q5=[]}function OW(q){let Z=q.rootDir?.replace(/\\/g,"/");if(Q8=q.dev,C4=q.runes,j6=q.component_name??r9,typeof Z==="string"&&T0.startsWith(Z))T0=T0.replace(Z,"").replace(/^[/\\]/,"");A6=[],Y5.clear(),Z5=null}var rr=/^\t+/;function LY(q){return q.replace(rr,(Z)=>Z.split("\t").join(" "))}function ir(q,Z){let Q=D4,Y=Math.max(0,q-2),J=Math.min(q+3,Q.length),H=String(J+1).length;return Q.slice(Y,J).map((X,G)=>{let W=Y+G===q,R=String(G+Y+1).padStart(H," ");if(W){let B=" ".repeat(H+2+LY(X.slice(0,Z)).length)+"^";return`${R}: ${LY(X)}
|
|
37
|
-
${B}`}return`${R}: ${LY(X)}`}).join(`
|
|
38
|
-
`)}class z2{name="CompileDiagnostic";constructor(q,Z,Q){if(this.code=q,this.message=Z,T0!==r9)this.filename=T0;if(Q){if(this.position=Q,this.start=J0(Q[0]),this.end=J0(Q[1]),this.start&&this.end)this.frame=ir(this.start.line-1,this.end.column)}}toString(){let q=`${this.code}: ${this.message}`;if(this.filename){if(q+=`
|
|
39
|
-
${this.filename}`,this.start)q+=`:${this.start.line}:${this.start.column}`}if(this.frame)q+=`
|
|
40
|
-
${this.frame}`;return q}toJSON(){return{code:this.code,message:this.message,filename:this.filename,start:this.start,end:this.end,position:this.position,frame:this.frame}}}class wW extends z2{name="CompileWarning";constructor(q,Z,Q){super(q,Z,Q)}}function W8(q,Z,Q){let Y=A6;if(q)Y=Y5.get(q)??A6;if(Y&&Y.at(-1)?.has(Z))return;let J=new wW(Z,Q,q&&q.start!==void 0?[q.start,q.end??q.start]:void 0);if(!PY(J))return;Q5.push(J)}var AW=["a11y_accesskey","a11y_aria_activedescendant_has_tabindex","a11y_aria_attributes","a11y_autocomplete_valid","a11y_autofocus","a11y_click_events_have_key_events","a11y_consider_explicit_label","a11y_distracting_elements","a11y_figcaption_index","a11y_figcaption_parent","a11y_hidden","a11y_img_redundant_alt","a11y_incorrect_aria_attribute_type","a11y_incorrect_aria_attribute_type_boolean","a11y_incorrect_aria_attribute_type_id","a11y_incorrect_aria_attribute_type_idlist","a11y_incorrect_aria_attribute_type_integer","a11y_incorrect_aria_attribute_type_token","a11y_incorrect_aria_attribute_type_tokenlist","a11y_incorrect_aria_attribute_type_tristate","a11y_interactive_supports_focus","a11y_invalid_attribute","a11y_label_has_associated_control","a11y_media_has_caption","a11y_misplaced_role","a11y_misplaced_scope","a11y_missing_attribute","a11y_missing_content","a11y_mouse_events_have_key_events","a11y_no_abstract_role","a11y_no_interactive_element_to_noninteractive_role","a11y_no_noninteractive_element_interactions","a11y_no_noninteractive_element_to_interactive_role","a11y_no_noninteractive_tabindex","a11y_no_redundant_roles","a11y_no_static_element_interactions","a11y_positive_tabindex","a11y_role_has_required_aria_props","a11y_role_supports_aria_props","a11y_role_supports_aria_props_implicit","a11y_unknown_aria_attribute","a11y_unknown_role","bidirectional_control_characters","legacy_code","unknown_code","options_deprecated_accessors","options_deprecated_immutable","options_missing_custom_element","options_removed_enable_sourcemap","options_removed_hydratable","options_removed_loop_guard_timeout","options_renamed_ssr_dom","custom_element_props_identifier","export_let_unused","legacy_component_creation","non_reactive_update","perf_avoid_inline_class","perf_avoid_nested_class","reactive_declaration_invalid_placement","reactive_declaration_module_script_dependency","state_referenced_locally","store_rune_conflict","css_unused_selector","attribute_avoid_is","attribute_global_event_reference","attribute_illegal_colon","attribute_invalid_property_name","attribute_quoted","bind_invalid_each_rest","block_empty","component_name_lowercase","element_implicitly_closed","element_invalid_self_closing_tag","event_directive_deprecated","node_invalid_placement_ssr","script_context_deprecated","script_unknown_attribute","slot_element_deprecated","svelte_component_deprecated","svelte_element_invalid_this","svelte_self_deprecated"];function jW(q){W8(q,"a11y_accesskey",`Avoid using accesskey
|
|
41
|
-
https://svelte.dev/e/a11y_accesskey`)}function IW(q){W8(q,"a11y_aria_activedescendant_has_tabindex",`An element with an aria-activedescendant attribute should have a tabindex value
|
|
42
|
-
https://svelte.dev/e/a11y_aria_activedescendant_has_tabindex`)}function DW(q,Z){W8(q,"a11y_aria_attributes",`\`<${Z}>\` should not have aria-* attributes
|
|
43
|
-
https://svelte.dev/e/a11y_aria_attributes`)}function CW(q,Z,Q){W8(q,"a11y_autocomplete_valid",`'${Z}' is an invalid value for 'autocomplete' on \`<input type="${Q}">\`
|
|
44
|
-
https://svelte.dev/e/a11y_autocomplete_valid`)}function EW(q){W8(q,"a11y_autofocus",`Avoid using autofocus
|
|
45
|
-
https://svelte.dev/e/a11y_autofocus`)}function FW(q,Z){W8(q,"a11y_click_events_have_key_events",`Visible, non-interactive element \`<${Z}>\` with a click event must be accompanied by a keyboard event handler. Consider whether an interactive element such as \`<button type="button">\` or \`<a>\` might be more appropriate
|
|
46
|
-
https://svelte.dev/e/a11y_click_events_have_key_events`)}function TW(q){W8(q,"a11y_consider_explicit_label","Buttons and links should either contain text or have an `aria-label`, `aria-labelledby` or `title` attribute\nhttps://svelte.dev/e/a11y_consider_explicit_label")}function fW(q,Z){W8(q,"a11y_distracting_elements",`Avoid \`<${Z}>\` elements
|
|
47
|
-
https://svelte.dev/e/a11y_distracting_elements`)}function KW(q){W8(q,"a11y_figcaption_index","`<figcaption>` must be first or last child of `<figure>`\nhttps://svelte.dev/e/a11y_figcaption_index")}function vW(q){W8(q,"a11y_figcaption_parent","`<figcaption>` must be an immediate child of `<figure>`\nhttps://svelte.dev/e/a11y_figcaption_parent")}function NW(q,Z){W8(q,"a11y_hidden",`\`<${Z}>\` element should not be hidden
|
|
48
|
-
https://svelte.dev/e/a11y_hidden`)}function kW(q){W8(q,"a11y_img_redundant_alt","Screenreaders already announce `<img>` elements as an image\nhttps://svelte.dev/e/a11y_img_redundant_alt")}function OY(q,Z,Q){W8(q,"a11y_incorrect_aria_attribute_type",`The value of '${Z}' must be a ${Q}
|
|
49
|
-
https://svelte.dev/e/a11y_incorrect_aria_attribute_type`)}function SW(q,Z){W8(q,"a11y_incorrect_aria_attribute_type_boolean",`The value of '${Z}' must be either 'true' or 'false'. It cannot be empty
|
|
50
|
-
https://svelte.dev/e/a11y_incorrect_aria_attribute_type_boolean`)}function uW(q,Z){W8(q,"a11y_incorrect_aria_attribute_type_idlist",`The value of '${Z}' must be a space-separated list of strings that represent DOM element IDs
|
|
51
|
-
https://svelte.dev/e/a11y_incorrect_aria_attribute_type_idlist`)}function bW(q,Z){W8(q,"a11y_incorrect_aria_attribute_type_integer",`The value of '${Z}' must be an integer
|
|
52
|
-
https://svelte.dev/e/a11y_incorrect_aria_attribute_type_integer`)}function hW(q,Z,Q){W8(q,"a11y_incorrect_aria_attribute_type_token",`The value of '${Z}' must be exactly one of ${Q}
|
|
53
|
-
https://svelte.dev/e/a11y_incorrect_aria_attribute_type_token`)}function yW(q,Z,Q){W8(q,"a11y_incorrect_aria_attribute_type_tokenlist",`The value of '${Z}' must be a space-separated list of one or more of ${Q}
|
|
54
|
-
https://svelte.dev/e/a11y_incorrect_aria_attribute_type_tokenlist`)}function _W(q,Z){W8(q,"a11y_incorrect_aria_attribute_type_tristate",`The value of '${Z}' must be exactly one of true, false, or mixed
|
|
55
|
-
https://svelte.dev/e/a11y_incorrect_aria_attribute_type_tristate`)}function gW(q,Z){W8(q,"a11y_interactive_supports_focus",`Elements with the '${Z}' interactive role must have a tabindex value
|
|
56
|
-
https://svelte.dev/e/a11y_interactive_supports_focus`)}function lW(q,Z,Q){W8(q,"a11y_invalid_attribute",`'${Z}' is not a valid ${Q} attribute
|
|
57
|
-
https://svelte.dev/e/a11y_invalid_attribute`)}function xW(q){W8(q,"a11y_label_has_associated_control",`A form label must be associated with a control
|
|
58
|
-
https://svelte.dev/e/a11y_label_has_associated_control`)}function mW(q){W8(q,"a11y_media_has_caption",'`<video>` elements must have a `<track kind="captions">`\nhttps://svelte.dev/e/a11y_media_has_caption')}function pW(q,Z){W8(q,"a11y_misplaced_role",`\`<${Z}>\` should not have role attribute
|
|
59
|
-
https://svelte.dev/e/a11y_misplaced_role`)}function cW(q){W8(q,"a11y_misplaced_scope","The scope attribute should only be used with `<th>` elements\nhttps://svelte.dev/e/a11y_misplaced_scope")}function rW(q,Z,Q,Y){W8(q,"a11y_missing_attribute",`\`<${Z}>\` element should have ${Q} ${Y} attribute
|
|
60
|
-
https://svelte.dev/e/a11y_missing_attribute`)}function iW(q,Z){W8(q,"a11y_missing_content",`\`<${Z}>\` element should contain text
|
|
61
|
-
https://svelte.dev/e/a11y_missing_content`)}function wY(q,Z,Q){W8(q,"a11y_mouse_events_have_key_events",`'${Z}' event must be accompanied by '${Q}' event
|
|
62
|
-
https://svelte.dev/e/a11y_mouse_events_have_key_events`)}function dW(q,Z){W8(q,"a11y_no_abstract_role",`Abstract role '${Z}' is forbidden
|
|
63
|
-
https://svelte.dev/e/a11y_no_abstract_role`)}function sW(q,Z,Q){W8(q,"a11y_no_interactive_element_to_noninteractive_role",`\`<${Z}>\` cannot have role '${Q}'
|
|
64
|
-
https://svelte.dev/e/a11y_no_interactive_element_to_noninteractive_role`)}function aW(q,Z){W8(q,"a11y_no_noninteractive_element_interactions",`Non-interactive element \`<${Z}>\` should not be assigned mouse or keyboard event listeners
|
|
65
|
-
https://svelte.dev/e/a11y_no_noninteractive_element_interactions`)}function oW(q,Z,Q){W8(q,"a11y_no_noninteractive_element_to_interactive_role",`Non-interactive element \`<${Z}>\` cannot have interactive role '${Q}'
|
|
66
|
-
https://svelte.dev/e/a11y_no_noninteractive_element_to_interactive_role`)}function nW(q){W8(q,"a11y_no_noninteractive_tabindex",`noninteractive element cannot have nonnegative tabIndex value
|
|
67
|
-
https://svelte.dev/e/a11y_no_noninteractive_tabindex`)}function AY(q,Z){W8(q,"a11y_no_redundant_roles",`Redundant role '${Z}'
|
|
68
|
-
https://svelte.dev/e/a11y_no_redundant_roles`)}function tW(q,Z,Q){W8(q,"a11y_no_static_element_interactions",`\`<${Z}>\` with a ${Q} handler must have an ARIA role
|
|
69
|
-
https://svelte.dev/e/a11y_no_static_element_interactions`)}function eW(q){W8(q,"a11y_positive_tabindex",`Avoid tabindex values above zero
|
|
70
|
-
https://svelte.dev/e/a11y_positive_tabindex`)}function q$(q,Z,Q){W8(q,"a11y_role_has_required_aria_props",`Elements with the ARIA role "${Z}" must have the following attributes defined: ${Q}
|
|
71
|
-
https://svelte.dev/e/a11y_role_has_required_aria_props`)}function Z$(q,Z,Q){W8(q,"a11y_role_supports_aria_props",`The attribute '${Z}' is not supported by the role '${Q}'
|
|
72
|
-
https://svelte.dev/e/a11y_role_supports_aria_props`)}function Q$(q,Z,Q,Y){W8(q,"a11y_role_supports_aria_props_implicit",`The attribute '${Z}' is not supported by the role '${Q}'. This role is implicit on the element \`<${Y}>\`
|
|
73
|
-
https://svelte.dev/e/a11y_role_supports_aria_props_implicit`)}function Y$(q,Z,Q){W8(q,"a11y_unknown_aria_attribute",`${Q?`Unknown aria attribute 'aria-${Z}'. Did you mean '${Q}'?`:`Unknown aria attribute 'aria-${Z}'`}
|
|
74
|
-
https://svelte.dev/e/a11y_unknown_aria_attribute`)}function J$(q,Z,Q){W8(q,"a11y_unknown_role",`${Q?`Unknown role '${Z}'. Did you mean '${Q}'?`:`Unknown role '${Z}'`}
|
|
75
|
-
https://svelte.dev/e/a11y_unknown_role`)}function J5(q){W8(q,"bidirectional_control_characters",`A bidirectional control character was detected in your code. These characters can be used to alter the visual direction of your code and could have unintended consequences
|
|
76
|
-
https://svelte.dev/e/bidirectional_control_characters`)}function H$(q,Z,Q){W8(q,"legacy_code",`\`${Z}\` is no longer valid — please use \`${Q}\` instead
|
|
77
|
-
https://svelte.dev/e/legacy_code`)}function X$(q,Z,Q){W8(q,"unknown_code",`${Q?`\`${Z}\` is not a recognised code (did you mean \`${Q}\`?)`:`\`${Z}\` is not a recognised code`}
|
|
78
|
-
https://svelte.dev/e/unknown_code`)}function T4(q){W8(q,"options_deprecated_accessors","The `accessors` option has been deprecated. It will have no effect in runes mode\nhttps://svelte.dev/e/options_deprecated_accessors")}function f4(q){W8(q,"options_deprecated_immutable","The `immutable` option has been deprecated. It will have no effect in runes mode\nhttps://svelte.dev/e/options_deprecated_immutable")}function G$(q){W8(q,"options_missing_custom_element","The `customElement` option is used when generating a custom element. Did you forget the `customElement: true` compile option?\nhttps://svelte.dev/e/options_missing_custom_element")}function V$(q){W8(q,"options_removed_enable_sourcemap","The `enableSourcemap` option has been removed. Source maps are always generated now, and tooling can choose to ignore them\nhttps://svelte.dev/e/options_removed_enable_sourcemap")}function W$(q){W8(q,"options_removed_hydratable","The `hydratable` option has been removed. Svelte components are always hydratable now\nhttps://svelte.dev/e/options_removed_hydratable")}function $$(q){W8(q,"options_removed_loop_guard_timeout","The `loopGuardTimeout` option has been removed\nhttps://svelte.dev/e/options_removed_loop_guard_timeout")}function U$(q){W8(q,"options_renamed_ssr_dom",'`generate: "dom"` and `generate: "ssr"` options have been renamed to "client" and "server" respectively\nhttps://svelte.dev/e/options_renamed_ssr_dom')}function R$(q){W8(q,"custom_element_props_identifier","Using a rest element or a non-destructured declaration with `$props()` means that Svelte can't infer what properties to expose when creating a custom element. Consider destructuring all the props or explicitly specifying the `customElement.props` option.\nhttps://svelte.dev/e/custom_element_props_identifier")}function z$(q,Z){W8(q,"export_let_unused",`Component has unused export property '${Z}'. If it is for external reference only, please consider using \`export const ${Z}\`
|
|
79
|
-
https://svelte.dev/e/export_let_unused`)}function B$(q){W8(q,"legacy_component_creation","Svelte 5 components are no longer classes. Instantiate them using `mount` or `hydrate` (imported from 'svelte') instead.\nhttps://svelte.dev/e/legacy_component_creation")}function jY(q,Z){W8(q,"non_reactive_update",`\`${Z}\` is updated, but is not declared with \`$state(...)\`. Changing its value will not correctly trigger updates
|
|
80
|
-
https://svelte.dev/e/non_reactive_update`)}function M$(q){W8(q,"perf_avoid_inline_class",`Avoid 'new class' — instead, declare the class at the top level scope
|
|
81
|
-
https://svelte.dev/e/perf_avoid_inline_class`)}function P$(q){W8(q,"perf_avoid_nested_class",`Avoid declaring classes below the top level scope
|
|
82
|
-
https://svelte.dev/e/perf_avoid_nested_class`)}function L$(q){W8(q,"reactive_declaration_invalid_placement",`Reactive declarations only exist at the top level of the instance script
|
|
83
|
-
https://svelte.dev/e/reactive_declaration_invalid_placement`)}function O$(q){W8(q,"reactive_declaration_module_script_dependency",`Reassignments of module-level declarations will not cause reactive statements to update
|
|
84
|
-
https://svelte.dev/e/reactive_declaration_module_script_dependency`)}function w$(q,Z,Q){W8(q,"state_referenced_locally",`This reference only captures the initial value of \`${Z}\`. Did you mean to reference it inside a ${Q} instead?
|
|
85
|
-
https://svelte.dev/e/state_referenced_locally`)}function A$(q,Z){W8(q,"store_rune_conflict",`It looks like you're using the \`$${Z}\` rune, but there is a local binding called \`${Z}\`. Referencing a local variable with a \`$\` prefix will create a store subscription. Please rename \`${Z}\` to avoid the ambiguity
|
|
86
|
-
https://svelte.dev/e/store_rune_conflict`)}function j$(q,Z){W8(q,"css_unused_selector",`Unused CSS selector "${Z}"
|
|
87
|
-
https://svelte.dev/e/css_unused_selector`)}function I$(q){W8(q,"attribute_avoid_is",`The "is" attribute is not supported cross-browser and should be avoided
|
|
88
|
-
https://svelte.dev/e/attribute_avoid_is`)}function D$(q,Z){W8(q,"attribute_global_event_reference",`You are referencing \`globalThis.${Z}\`. Did you forget to declare a variable with that name?
|
|
89
|
-
https://svelte.dev/e/attribute_global_event_reference`)}function C$(q){W8(q,"attribute_illegal_colon",`Attributes should not contain ':' characters to prevent ambiguity with Svelte directives
|
|
90
|
-
https://svelte.dev/e/attribute_illegal_colon`)}function E$(q,Z,Q){W8(q,"attribute_invalid_property_name",`'${Z}' is not a valid HTML attribute. Did you mean '${Q}'?
|
|
91
|
-
https://svelte.dev/e/attribute_invalid_property_name`)}function F$(q){W8(q,"attribute_quoted",`Quoted attributes on components and custom elements will be stringified in a future version of Svelte. If this isn't what you want, remove the quotes
|
|
92
|
-
https://svelte.dev/e/attribute_quoted`)}function T$(q,Z){W8(q,"bind_invalid_each_rest",`The rest operator (...) will create a new object and binding '${Z}' with the original object will not work
|
|
93
|
-
https://svelte.dev/e/bind_invalid_each_rest`)}function f$(q){W8(q,"block_empty",`Empty block
|
|
94
|
-
https://svelte.dev/e/block_empty`)}function K$(q,Z){W8(q,"component_name_lowercase",`\`<${Z}>\` will be treated as an HTML element unless it begins with a capital letter
|
|
95
|
-
https://svelte.dev/e/component_name_lowercase`)}function IY(q,Z,Q){W8(q,"element_implicitly_closed",`This element is implicitly closed by the following \`${Z}\`, which can cause an unexpected DOM structure. Add an explicit \`${Q}\` to avoid surprises.
|
|
96
|
-
https://svelte.dev/e/element_implicitly_closed`)}function v$(q,Z){W8(q,"element_invalid_self_closing_tag",`Self-closing HTML tags for non-void elements are ambiguous — use \`<${Z} ...></${Z}>\` rather than \`<${Z} ... />\`
|
|
97
|
-
https://svelte.dev/e/element_invalid_self_closing_tag`)}function N$(q,Z){W8(q,"event_directive_deprecated",`Using \`on:${Z}\` to listen to the ${Z} event is deprecated. Use the event attribute \`on${Z}\` instead
|
|
98
|
-
https://svelte.dev/e/event_directive_deprecated`)}function DY(q,Z){W8(q,"node_invalid_placement_ssr",`${Z}. When rendering this component on the server, the resulting HTML will be modified by the browser (by moving, removing, or inserting elements), likely resulting in a \`hydration_mismatch\` warning
|
|
99
|
-
https://svelte.dev/e/node_invalid_placement_ssr`)}function k$(q){W8(q,"script_context_deprecated",'`context="module"` is deprecated, use the `module` attribute instead\nhttps://svelte.dev/e/script_context_deprecated')}function S$(q){W8(q,"script_unknown_attribute","Unrecognised attribute — should be one of `generics`, `lang` or `module`. If this exists for a preprocessor, ensure that the preprocessor removes it\nhttps://svelte.dev/e/script_unknown_attribute")}function u$(q){W8(q,"slot_element_deprecated","Using `<slot>` to render parent content is deprecated. Use `{@render ...}` tags instead\nhttps://svelte.dev/e/slot_element_deprecated")}function b$(q){W8(q,"svelte_component_deprecated","`<svelte:component>` is deprecated in runes mode — components are dynamic by default\nhttps://svelte.dev/e/svelte_component_deprecated")}function h$(q){W8(q,"svelte_element_invalid_this","`this` should be an `{expression}`. Using a string attribute value will cause an error in future versions of Svelte\nhttps://svelte.dev/e/svelte_element_invalid_this")}function y$(q,Z,Q){W8(q,"svelte_self_deprecated",`\`<svelte:self>\` is deprecated — use self-imports (e.g. \`import ${Z} from './${Q}'\`) instead
|
|
100
|
-
https://svelte.dev/e/svelte_self_deprecated`)}var dr=/^\s*svelte-ignore\s/,_$={"non-top-level-reactive-declaration":"reactive_declaration_invalid_placement","module-script-reactive-declaration":"reactive_declaration_module_script","empty-block":"block_empty","avoid-is":"attribute_avoid_is","invalid-html-attribute":"attribute_invalid_property_name","a11y-structure":"a11y_figcaption_parent","illegal-attribute-character":"attribute_illegal_colon","invalid-rest-eachblock-binding":"bind_invalid_each_rest","unused-export-let":"export_let_unused"},B2=AW.concat(ZW);function I6(q,Z,Q){let Y=dr.exec(Z);if(!Y)return[];let J=Y[0].length;q+=J;let H=[];if(Q)for(let X of Z.slice(J).matchAll(/([\w$-]+)(,)?/gm)){let G=X[1];if(B2.includes(G))H.push(G);else{let W=_$[G]??G.replace(/-/g,"_"),R=q+X.index,B=R+G.length;if(B2.includes(W))H$({start:R,end:B},G,W);else{let M=w6(G,B2);X$({start:R,end:B},G,M)}}if(!X[2])break}else for(let X of Z.slice(J).matchAll(/[\w$-]+/gm)){let G=X[0];if(H.push(G),!B2.includes(G)){let W=_$[G]??G.replace(/-/g,"_");if(B2.includes(W))H.push(W)}}return H}function G7(q){let Z=q.at(0),Q=q.at(-1);if(Z?.type==="Text")if(!C9.test(Z.data))q.shift();else Z.data=Z.data.replace(J7,"");if(Q?.type==="Text")if(!C9.test(Q.data))q.pop();else Q.data=Q.data.replace(O6,"")}function g$(q,Z){return K8(Z,null,{_(Y,{next:J}){delete Y.metadata,J()},Root(Y,{visit:J}){let{instance:H,module:X,options:G}=Y;if(G?.__raw__){let B=Y.fragment.nodes.findIndex((M)=>G.end<=M.start);if(B===-1)B=Y.fragment.nodes.length;Y.fragment.nodes.splice(B,0,G.__raw__)}let W=null,R=null;if(Y.fragment.nodes.length>0){let B=Y.fragment.nodes.at(0),M=Y.fragment.nodes.at(-1);W=B.start,R=M.end;while(/\s/.test(q[W]))W+=1;while(/\s/.test(q[R-1]))R-=1}if(H)delete H.attributes;if(X)delete X.attributes;return{html:{type:"Fragment",start:W,end:R,children:Y.fragment.nodes.map((B)=>J(B))},instance:H,module:X,css:Z.css?J(Z.css):void 0,_comments:Z.comments?.length>0?Z.comments:void 0}},AnimateDirective(Y){return{...Y,type:"Animation"}},AwaitBlock(Y,{visit:J}){let H={type:"PendingBlock",start:null,end:null,children:Y.pending?.nodes.map((W)=>J(W))??[],skip:!0},X={type:"ThenBlock",start:null,end:null,children:Y.then?.nodes.map((W)=>J(W))??[],skip:!0},G={type:"CatchBlock",start:null,end:null,children:Y.catch?.nodes.map((W)=>J(W))??[],skip:!0};if(Y.pending){let W=Y.pending.nodes.at(0),R=Y.pending.nodes.at(-1);H.start=W?.start??q.indexOf("}",Y.expression.end)+1,H.end=R?.end??H.start,H.skip=!1}if(Y.then){let W=Y.then.nodes.at(0),R=Y.then.nodes.at(-1);X.start=H.end??W?.start??q.indexOf("}",Y.expression.end)+1,X.end=R?.end??q.lastIndexOf("}",H.end??Y.expression.end)+1,X.skip=!1}if(Y.catch){let W=Y.catch.nodes.at(0),R=Y.catch.nodes.at(-1);G.start=X.end??H.end??W?.start??q.indexOf("}",Y.expression.end)+1,G.end=R?.end??q.lastIndexOf("}",X.end??H.end??Y.expression.end)+1,G.skip=!1}return{type:"AwaitBlock",start:Y.start,end:Y.end,expression:Y.expression,value:Y.value,error:Y.error,pending:H,then:X,catch:G}},BindDirective(Y){return{...Y,type:"Binding"}},ClassDirective(Y){return{...Y,type:"Class"}},Comment(Y){return{...Y,ignores:I6(Y.start,Y.data,!1)}},ComplexSelector(Y,{next:J}){J();let H=[];for(let X of Y.children){if(X.combinator)H.push(X.combinator);H.push(...X.selectors)}return{type:"Selector",start:Y.start,end:Y.end,children:H}},Component(Y,{visit:J}){return{type:"InlineComponent",start:Y.start,end:Y.end,name:Y.name,attributes:Y.attributes.map((H)=>J(H)),children:Y.fragment.nodes.map((H)=>J(H))}},ConstTag(Y){if(Y.expression!==void 0)return Y;let J=Y,{id:H}={...J.declaration.declarations[0]};return delete H.typeAnnotation,{type:"ConstTag",start:J.start,end:Y.end,expression:{type:"AssignmentExpression",start:(J.declaration.start??0)+6,end:J.declaration.end??0,operator:"=",left:H,right:J.declaration.declarations[0].init}}},DeclarationTag(Y){return Y},KeyBlock(Y,{visit:J}){return G7(Y.fragment.nodes),{type:"KeyBlock",start:Y.start,end:Y.end,expression:Y.expression,children:Y.fragment.nodes.map((H)=>J(H))}},EachBlock(Y,{visit:J}){let H=void 0;if(Y.fallback){let X=Y.fallback.nodes.at(0),G=q.lastIndexOf("{",Y.end-1),W=X?.start??G;G7(Y.fallback.nodes),H={type:"ElseBlock",start:W,end:G,children:Y.fallback.nodes.map((R)=>J(R))}}return G7(Y.body.nodes),{type:"EachBlock",start:Y.start,end:Y.end,children:Y.body.nodes.map((X)=>J(X)),context:Y.context,expression:Y.expression,index:Y.index,key:Y.key,else:H}},ExpressionTag(Y,{path:J}){let H=J.at(-1);if(H?.type==="Attribute"){if(q[H.start]==="{")return{type:"AttributeShorthand",start:Y.start,end:Y.end,expression:Y.expression}}return{type:"MustacheTag",start:Y.start,end:Y.end,expression:Y.expression}},HtmlTag(Y){return{...Y,type:"RawMustacheTag"}},IfBlock(Y,{visit:J}){let H=void 0;if(Y.alternate){let G=Y.alternate.nodes;if(G.length===1&&G[0].type==="IfBlock"&&G[0].elseif)G=G[0].consequent.nodes;let W=q.lastIndexOf("{",Y.end-1),R=G.at(0)?.start??W;G7(Y.alternate.nodes),H={type:"ElseBlock",start:R,end:W,children:Y.alternate.nodes.map((B)=>J(B))}}let X=Y.elseif?Y.consequent.nodes[0]?.start??q.lastIndexOf("{",Y.end-1):Y.start;return G7(Y.consequent.nodes),{type:"IfBlock",start:X,end:Y.end,expression:Y.test,children:Y.consequent.nodes.map((G)=>J(G)),else:H,elseif:Y.elseif?!0:void 0}},OnDirective(Y){return{...Y,type:"EventHandler"}},SnippetBlock(Y,{visit:J}){return G7(Y.body.nodes),{type:"SnippetBlock",start:Y.start,end:Y.end,expression:Y.expression,parameters:Y.parameters,children:Y.body.nodes.map((H)=>J(H)),typeParams:Y.typeParams}},SvelteBoundary(Y,{visit:J}){return G7(Y.fragment.nodes),{type:"SvelteBoundary",name:"svelte:boundary",start:Y.start,end:Y.end,attributes:Y.attributes.map((H)=>J(H)),children:Y.fragment.nodes.map((H)=>J(H))}},RegularElement(Y,{visit:J}){return{type:"Element",start:Y.start,end:Y.end,name:Y.name,attributes:Y.attributes.map((H)=>J(H)),children:Y.fragment.nodes.map((H)=>J(H))}},SlotElement(Y,{visit:J}){return{type:"Slot",start:Y.start,end:Y.end,name:Y.name,attributes:Y.attributes.map((H)=>J(H)),children:Y.fragment.nodes.map((H)=>J(H))}},Attribute(Y,{visit:J,next:H,path:X}){if(Y.value!==!0&&!Array.isArray(Y.value)){X.push(Y);let G=[J(Y.value)];return X.pop(),{...Y,value:G}}else return H()},StyleDirective(Y,{visit:J,next:H,path:X}){if(Y.value!==!0&&!Array.isArray(Y.value)){X.push(Y);let G=[J(Y.value)];return X.pop(),{...Y,value:G}}else return H()},SpreadAttribute(Y){return{...Y,type:"Spread"}},StyleSheet(Y,J){return{...Y,...J.next(),type:"Style"}},SvelteBody(Y,{visit:J}){return{type:"Body",name:"svelte:body",start:Y.start,end:Y.end,attributes:Y.attributes.map((H)=>J(H)),children:Y.fragment.nodes.map((H)=>J(H))}},SvelteComponent(Y,{visit:J}){return{type:"InlineComponent",name:"svelte:component",start:Y.start,end:Y.end,expression:Y.expression,attributes:Y.attributes.map((H)=>J(H)),children:Y.fragment.nodes.map((H)=>J(H))}},SvelteDocument(Y,{visit:J}){return{type:"Document",name:"svelte:document",start:Y.start,end:Y.end,attributes:Y.attributes.map((H)=>J(H)),children:Y.fragment.nodes.map((H)=>J(H))}},SvelteElement(Y,{visit:J}){let H=Y.tag;if(H.type==="Literal"&&typeof H.value==="string"&&q[Y.tag.start-1]!=="{")H=H.value;return{type:"Element",name:"svelte:element",start:Y.start,end:Y.end,tag:H,attributes:Y.attributes.map((X)=>J(X)),children:Y.fragment.nodes.map((X)=>J(X))}},SvelteFragment(Y,{visit:J}){return{type:"SlotTemplate",name:"svelte:fragment",start:Y.start,end:Y.end,attributes:Y.attributes.map((H)=>J(H)),children:Y.fragment.nodes.map((H)=>J(H))}},SvelteHead(Y,{visit:J}){return{type:"Head",name:"svelte:head",start:Y.start,end:Y.end,attributes:Y.attributes.map((H)=>J(H)),children:Y.fragment.nodes.map((H)=>J(H))}},SvelteOptions(Y,{visit:J}){return{type:"Options",name:"svelte:options",start:Y.start,end:Y.end,attributes:Y.attributes.map((H)=>J(H))}},SvelteSelf(Y,{visit:J}){return{type:"InlineComponent",name:"svelte:self",start:Y.start,end:Y.end,attributes:Y.attributes.map((H)=>J(H)),children:Y.fragment.nodes.map((H)=>J(H))}},SvelteWindow(Y,{visit:J}){return{type:"Window",name:"svelte:window",start:Y.start,end:Y.end,attributes:Y.attributes.map((H)=>J(H)),children:Y.fragment.nodes.map((H)=>J(H))}},Text(Y,{path:J}){let H=J.at(-1);if(H?.type==="RegularElement"&&H.name==="style")return{type:"Text",start:Y.start,end:Y.end,data:Y.data}},TitleElement(Y,{visit:J}){return{type:"Title",name:"title",start:Y.start,end:Y.end,attributes:Y.attributes.map((H)=>J(H)),children:Y.fragment.nodes.map((H)=>J(H))}},TransitionDirective(Y){return{...Y,type:"Transition"}},UseDirective(Y){return{...Y,type:"Action"}},LetDirective(Y){return{...Y,type:"Let"}}})}var x4={};oQ(x4,{version:()=>FU,tokenizer:()=>vi,tokTypes:()=>K,tokContexts:()=>P0,parseExpressionAt:()=>Ki,parse:()=>yY,nonASCIIwhitespace:()=>vY,lineBreakG:()=>d$,lineBreak:()=>z1,keywordTypes:()=>b4,isNewLine:()=>W7,isIdentifierStart:()=>F1,isIdentifierChar:()=>H9,getLineInfo:()=>NY,defaultOptions:()=>v4,TokenType:()=>Y0,Token:()=>l4,TokContext:()=>l1,SourceLocation:()=>L2,Position:()=>H5,Parser:()=>O0,Node:()=>w2});var sr=[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],c$=[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],ar="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ--ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・",r$="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽ-ೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-Ა-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ--ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",CY={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},EY="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",or={5:EY,"5module":EY+" export import",6:EY+" const class extends export import super"},i$=/^in(stanceof)?$/,nr=new RegExp("["+r$+"]"),tr=new RegExp("["+r$+ar+"]");function FY(q,Z){var Q=65536;for(var Y=0;Y<Z.length;Y+=2){if(Q+=Z[Y],Q>q)return!1;if(Q+=Z[Y+1],Q>=q)return!0}return!1}function F1(q,Z){if(q<65)return q===36;if(q<91)return!0;if(q<97)return q===95;if(q<123)return!0;if(q<=65535)return q>=170&&nr.test(String.fromCharCode(q));if(Z===!1)return!1;return FY(q,c$)}function H9(q,Z){if(q<48)return q===36;if(q<58)return!0;if(q<65)return!1;if(q<91)return!0;if(q<97)return q===95;if(q<123)return!0;if(q<=65535)return q>=170&&tr.test(String.fromCharCode(q));if(Z===!1)return!1;return FY(q,c$)||FY(q,sr)}var Y0=function(Z,Q){if(Q===void 0)Q={};this.label=Z,this.keyword=Q.keyword,this.beforeExpr=!!Q.beforeExpr,this.startsExpr=!!Q.startsExpr,this.isLoop=!!Q.isLoop,this.isAssign=!!Q.isAssign,this.prefix=!!Q.prefix,this.postfix=!!Q.postfix,this.binop=Q.binop||null,this.updateContext=null};function _1(q,Z){return new Y0(q,{beforeExpr:!0,binop:Z})}var g1={beforeExpr:!0},L1={startsExpr:!0},b4={};function t8(q,Z){if(Z===void 0)Z={};return Z.keyword=q,b4[q]=new Y0(q,Z)}var K={num:new Y0("num",L1),regexp:new Y0("regexp",L1),string:new Y0("string",L1),name:new Y0("name",L1),privateId:new Y0("privateId",L1),eof:new Y0("eof"),bracketL:new Y0("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new Y0("]"),braceL:new Y0("{",{beforeExpr:!0,startsExpr:!0}),braceR:new Y0("}"),parenL:new Y0("(",{beforeExpr:!0,startsExpr:!0}),parenR:new Y0(")"),comma:new Y0(",",g1),semi:new Y0(";",g1),colon:new Y0(":",g1),dot:new Y0("."),question:new Y0("?",g1),questionDot:new Y0("?."),arrow:new Y0("=>",g1),template:new Y0("template"),invalidTemplate:new Y0("invalidTemplate"),ellipsis:new Y0("...",g1),backQuote:new Y0("`",L1),dollarBraceL:new Y0("${",{beforeExpr:!0,startsExpr:!0}),eq:new Y0("=",{beforeExpr:!0,isAssign:!0}),assign:new Y0("_=",{beforeExpr:!0,isAssign:!0}),incDec:new Y0("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new Y0("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:_1("||",1),logicalAND:_1("&&",2),bitwiseOR:_1("|",3),bitwiseXOR:_1("^",4),bitwiseAND:_1("&",5),equality:_1("==/!=/===/!==",6),relational:_1("</>/<=/>=",7),bitShift:_1("<</>>/>>>",8),plusMin:new Y0("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:_1("%",10),star:_1("*",10),slash:_1("/",10),starstar:new Y0("**",{beforeExpr:!0}),coalesce:_1("??",1),_break:t8("break"),_case:t8("case",g1),_catch:t8("catch"),_continue:t8("continue"),_debugger:t8("debugger"),_default:t8("default",g1),_do:t8("do",{isLoop:!0,beforeExpr:!0}),_else:t8("else",g1),_finally:t8("finally"),_for:t8("for",{isLoop:!0}),_function:t8("function",L1),_if:t8("if"),_return:t8("return",g1),_switch:t8("switch"),_throw:t8("throw",g1),_try:t8("try"),_var:t8("var"),_const:t8("const"),_while:t8("while",{isLoop:!0}),_with:t8("with"),_new:t8("new",{beforeExpr:!0,startsExpr:!0}),_this:t8("this",L1),_super:t8("super",L1),_class:t8("class",L1),_extends:t8("extends",g1),_export:t8("export"),_import:t8("import",L1),_null:t8("null",L1),_true:t8("true",L1),_false:t8("false",L1),_in:t8("in",{beforeExpr:!0,binop:7}),_instanceof:t8("instanceof",{beforeExpr:!0,binop:7}),_typeof:t8("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:t8("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:t8("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},z1=/\r\n?|\n|\u2028|\u2029/,d$=new RegExp(z1.source,"g");function W7(q){return q===10||q===13||q===8232||q===8233}function s$(q,Z,Q){if(Q===void 0)Q=q.length;for(var Y=Z;Y<Q;Y++){var J=q.charCodeAt(Y);if(W7(J))return Y<Q-1&&J===13&&q.charCodeAt(Y+1)===10?Y+2:Y+1}return-1}var vY=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,c0=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,a$=Object.prototype,er=a$.hasOwnProperty,qi=a$.toString,X5=Object.hasOwn||function(q,Z){return er.call(q,Z)},l$=Array.isArray||function(q){return qi.call(q)==="[object Array]"},x$=Object.create(null);function D6(q){return x$[q]||(x$[q]=new RegExp("^(?:"+q.replace(/ /g,"|")+")$"))}function i9(q){if(q<=65535)return String.fromCharCode(q);return q-=65536,String.fromCharCode((q>>10)+55296,(q&1023)+56320)}var Zi=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,H5=function(Z,Q){this.line=Z,this.column=Q};H5.prototype.offset=function(Z){return new H5(this.line,this.column+Z)};var L2=function(Z,Q,Y){if(this.start=Q,this.end=Y,Z.sourceFile!==null)this.source=Z.sourceFile};function NY(q,Z){for(var Q=1,Y=0;;){var J=s$(q,Y,Z);if(J<0)return new H5(Q,Z-Y);++Q,Y=J}}var v4={ecmaVersion:null,sourceType:"script",strict:!1,onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},m$=!1;function Qi(q){var Z={};for(var Q in v4)Z[Q]=q&&X5(q,Q)?q[Q]:v4[Q];if(Z.ecmaVersion==="latest")Z.ecmaVersion=1e8;else if(Z.ecmaVersion==null){if(!m$&&typeof console==="object"&&console.warn)m$=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
|
|
101
|
-
Defaulting to 2020, but this will stop working in the future.`);Z.ecmaVersion=11}else if(Z.ecmaVersion>=2015)Z.ecmaVersion-=2009;if(Z.allowReserved==null)Z.allowReserved=Z.ecmaVersion<5;if(!q||q.allowHashBang==null)Z.allowHashBang=Z.ecmaVersion>=14;if(l$(Z.onToken)){var Y=Z.onToken;Z.onToken=function(J){return Y.push(J)}}if(l$(Z.onComment))Z.onComment=Yi(Z,Z.onComment);if(Z.sourceType==="commonjs"&&Z.allowAwaitOutsideFunction)throw Error("Cannot use allowAwaitOutsideFunction with sourceType: commonjs");return Z}function Yi(q,Z){return function(Q,Y,J,H,X,G){var W={type:Q?"Block":"Line",value:Y,start:J,end:H};if(q.locations)W.loc=new L2(this,X,G);if(q.ranges)W.range=[J,H];Z.push(W)}}var V7=1,$7=2,kY=4,o$=8,SY=16,n$=32,h4=64,t$=128,U7=256,O2=512,e$=1024,y4=V7|$7|U7;function uY(q,Z){return $7|(q?kY:0)|(Z?o$:0)}var N4=0,bY=1,s9=2,qU=3,ZU=4,QU=5,O0=function(Z,Q,Y){this.options=Z=Qi(Z),this.sourceFile=Z.sourceFile,this.keywords=D6(or[Z.ecmaVersion>=6?6:Z.sourceType==="module"?"5module":5]);var J="";if(Z.allowReserved!==!0){if(J=CY[Z.ecmaVersion>=6?6:Z.ecmaVersion===5?5:3],Z.sourceType==="module")J+=" await"}this.reservedWords=D6(J);var H=(J?J+" ":"")+CY.strict;if(this.reservedWordsStrict=D6(H),this.reservedWordsStrictBind=D6(H+" "+CY.strictBind),this.input=String(Q),this.containsEsc=!1,Y)this.pos=Y,this.lineStart=this.input.lastIndexOf(`
|
|
102
|
-
`,Y-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(z1).length;else this.pos=this.lineStart=0,this.curLine=1;if(this.type=K.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule=Z.sourceType==="module",this.strict=this.inModule||Z.strict===!0||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),this.pos===0&&Z.allowHashBang&&this.input.slice(0,2)==="#!")this.skipLineComment(2);this.scopeStack=[],this.enterScope(this.options.sourceType==="commonjs"?$7:V7),this.regexpState=null,this.privateNameStack=[]},m1={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowReturn:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},allowUsing:{configurable:!0},inClassStaticBlock:{configurable:!0}};O0.prototype.parse=function(){var Z=this,Q=this.options.program||this.startNode();return this.nextToken(),this.catchStackOverflow(function(){return Z.parseTopLevel(Q)})};m1.inFunction.get=function(){return(this.currentVarScope().flags&$7)>0};m1.inGenerator.get=function(){return(this.currentVarScope().flags&o$)>0};m1.inAsync.get=function(){return(this.currentVarScope().flags&kY)>0};m1.canAwait.get=function(){for(var q=this.scopeStack.length-1;q>=0;q--){var Z=this.scopeStack[q],Q=Z.flags;if(Q&(U7|O2))return!1;if(Q&$7)return(Q&kY)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction};m1.allowReturn.get=function(){if(this.inFunction)return!0;if(this.options.allowReturnOutsideFunction&&this.currentVarScope().flags&V7)return!0;return!1};m1.allowSuper.get=function(){var q=this.currentThisScope(),Z=q.flags;return(Z&h4)>0||this.options.allowSuperOutsideMethod};m1.allowDirectSuper.get=function(){return(this.currentThisScope().flags&t$)>0};m1.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())};m1.allowNewDotTarget.get=function(){for(var q=this.scopeStack.length-1;q>=0;q--){var Z=this.scopeStack[q],Q=Z.flags;if(Q&(U7|O2)||Q&$7&&!(Q&SY))return!0}return!1};m1.allowUsing.get=function(){var q=this.currentScope(),Z=q.flags;if(Z&e$)return!1;if(!this.inModule&&Z&V7)return!1;return!0};m1.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&U7)>0};O0.extend=function(){var Z=[],Q=arguments.length;while(Q--)Z[Q]=arguments[Q];var Y=this;for(var J=0;J<Z.length;J++)Y=Z[J](Y);return Y};O0.parse=function(Z,Q){return new this(Q,Z).parse()};O0.parseExpressionAt=function(Z,Q,Y){var J=new this(Y,Z,Q);return J.nextToken(),J.parseExpression()};O0.tokenizer=function(Z,Q){return new this(Q,Z)};Object.defineProperties(O0.prototype,m1);var J1=O0.prototype,Ji=/^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;J1.strictDirective=function(q){if(this.options.ecmaVersion<5)return!1;for(;;){c0.lastIndex=q,q+=c0.exec(this.input)[0].length;var Z=Ji.exec(this.input.slice(q));if(!Z)return!1;if((Z[1]||Z[2])==="use strict"){c0.lastIndex=q+Z[0].length;var Q=c0.exec(this.input),Y=Q.index+Q[0].length,J=this.input.charAt(Y);return J===";"||J==="}"||z1.test(Q[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(J)||J==="!"&&this.input.charAt(Y+1)==="=")}if(q+=Z[0].length,c0.lastIndex=q,q+=c0.exec(this.input)[0].length,this.input[q]===";")q++}};J1.eat=function(q){if(this.type===q)return this.next(),!0;else return!1};J1.isContextual=function(q){return this.type===K.name&&this.value===q&&!this.containsEsc};J1.eatContextual=function(q){if(!this.isContextual(q))return!1;return this.next(),!0};J1.catchStackOverflow=function(q){try{return q()}catch(Z){if(Z instanceof Error&&(/\bstack\b.*\b(exceeded|overflow)\b/i.test(Z.message)||/\btoo much recursion\b/i.test(Z.message)))this.raise(this.start,"Not enough stack space to parse input");else throw Z}};J1.expectContextual=function(q){if(!this.eatContextual(q))this.unexpected()};J1.canInsertSemicolon=function(){return this.type===K.eof||this.type===K.braceR||z1.test(this.input.slice(this.lastTokEnd,this.start))};J1.insertSemicolon=function(){if(this.canInsertSemicolon()){if(this.options.onInsertedSemicolon)this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc);return!0}};J1.semicolon=function(){if(!this.eat(K.semi)&&!this.insertSemicolon())this.unexpected()};J1.afterTrailingComma=function(q,Z){if(this.type===q){if(this.options.onTrailingComma)this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc);if(!Z)this.next();return!0}};J1.expect=function(q){this.eat(q)||this.unexpected()};J1.unexpected=function(q){this.raise(q!=null?q:this.start,"Unexpected token")};var _4=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};J1.checkPatternErrors=function(q,Z){if(!q)return;if(q.trailingComma>-1)this.raiseRecoverable(q.trailingComma,"Comma is not permitted after the rest element");var Q=Z?q.parenthesizedAssign:q.parenthesizedBind;if(Q>-1)this.raiseRecoverable(Q,Z?"Assigning to rvalue":"Parenthesized pattern")};J1.checkExpressionErrors=function(q,Z){if(!q)return!1;var{shorthandAssign:Q,doubleProto:Y}=q;if(!Z)return Q>=0||Y>=0;if(Q>=0)this.raise(Q,"Shorthand property assignments are valid only in destructuring patterns");if(Y>=0)this.raiseRecoverable(Y,"Redefinition of __proto__ property")};J1.checkYieldAwaitInDefaultParams=function(){if(this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos))this.raise(this.yieldPos,"Yield expression cannot be a default value");if(this.awaitPos)this.raise(this.awaitPos,"Await expression cannot be a default value")};J1.isSimpleAssignTarget=function(q){if(q.type==="ParenthesizedExpression")return this.isSimpleAssignTarget(q.expression);return q.type==="Identifier"||q.type==="MemberExpression"};var j8=O0.prototype;j8.parseTopLevel=function(q){var Z=Object.create(null);if(!q.body)q.body=[];while(this.type!==K.eof){var Q=this.parseStatement(null,!0,Z);q.body.push(Q)}if(this.inModule)for(var Y=0,J=Object.keys(this.undefinedExports);Y<J.length;Y+=1){var H=J[Y];this.raiseRecoverable(this.undefinedExports[H].start,"Export '"+H+"' is not defined")}return this.adaptDirectivePrologue(q.body),this.next(),q.sourceType=this.options.sourceType==="commonjs"?"script":this.options.sourceType,this.finishNode(q,"Program")};var hY={kind:"loop"},Hi={kind:"switch"};j8.isLet=function(q){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;c0.lastIndex=this.pos;var Z=c0.exec(this.input),Q=this.pos+Z[0].length,Y=this.fullCharCodeAt(Q);if(Y===91||Y===92)return!0;if(q)return!1;if(Y===123)return!0;if(F1(Y)){var J=Q;do Q+=Y<=65535?1:2;while(H9(Y=this.fullCharCodeAt(Q)));if(Y===92)return!0;var H=this.input.slice(J,Q);if(!i$.test(H))return!0}return!1};j8.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;c0.lastIndex=this.pos;var q=c0.exec(this.input),Z=this.pos+q[0].length,Q;return!z1.test(this.input.slice(this.pos,Z))&&this.input.slice(Z,Z+8)==="function"&&(Z+8===this.input.length||!(H9(Q=this.fullCharCodeAt(Z+8))||Q===92))};j8.isUsingKeyword=function(q,Z){if(this.options.ecmaVersion<17||!this.isContextual(q?"await":"using"))return!1;c0.lastIndex=this.pos;var Q=c0.exec(this.input),Y=this.pos+Q[0].length;if(z1.test(this.input.slice(this.pos,Y)))return!1;if(q){var J=Y+5,H;if(this.input.slice(Y,J)!=="using"||J===this.input.length||H9(H=this.fullCharCodeAt(J))||H===92)return!1;c0.lastIndex=J;var X=c0.exec(this.input);if(Y=J+X[0].length,X&&z1.test(this.input.slice(J,Y)))return!1}var G=this.fullCharCodeAt(Y);if(!F1(G)&&G!==92)return!1;var W=Y;do Y+=G<=65535?1:2;while(H9(G=this.fullCharCodeAt(Y)));if(G===92)return!0;var R=this.input.slice(W,Y);if(i$.test(R))return!1;if(Z&&!q&&R==="of"){c0.lastIndex=Y;var B=c0.exec(this.input);if(Y=Y+B[0].length,this.input.charCodeAt(Y)!==61||(G=this.input.charCodeAt(Y+1))===61||G===62)return!1}return!0};j8.isAwaitUsing=function(q){return this.isUsingKeyword(!0,q)};j8.isUsing=function(q){return this.isUsingKeyword(!1,q)};j8.parseStatement=function(q,Z,Q){var Y=this.type,J=this.startNode(),H;if(this.isLet(q))Y=K._var,H="let";switch(Y){case K._break:case K._continue:return this.parseBreakContinueStatement(J,Y.keyword);case K._debugger:return this.parseDebuggerStatement(J);case K._do:return this.parseDoStatement(J);case K._for:return this.parseForStatement(J);case K._function:if(q&&(this.strict||q!=="if"&&q!=="label")&&this.options.ecmaVersion>=6)this.unexpected();return this.parseFunctionStatement(J,!1,!q);case K._class:if(q)this.unexpected();return this.parseClass(J,!0);case K._if:return this.parseIfStatement(J);case K._return:return this.parseReturnStatement(J);case K._switch:return this.parseSwitchStatement(J);case K._throw:return this.parseThrowStatement(J);case K._try:return this.parseTryStatement(J);case K._const:case K._var:if(H=H||this.value,q&&H!=="var")this.unexpected();return this.parseVarStatement(J,H);case K._while:return this.parseWhileStatement(J);case K._with:return this.parseWithStatement(J);case K.braceL:return this.parseBlock(!0,J);case K.semi:return this.parseEmptyStatement(J);case K._export:case K._import:if(this.options.ecmaVersion>10&&Y===K._import){c0.lastIndex=this.pos;var X=c0.exec(this.input),G=this.pos+X[0].length,W=this.input.charCodeAt(G);if(W===40||W===46)return this.parseExpressionStatement(J,this.parseExpression())}if(!this.options.allowImportExportEverywhere){if(!Z)this.raise(this.start,"'import' and 'export' may only appear at the top level");if(!this.inModule)this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")}return Y===K._import?this.parseImport(J):this.parseExport(J,Q);default:if(this.isAsyncFunction()){if(q)this.unexpected();return this.next(),this.parseFunctionStatement(J,!0,!q)}var R=this.isAwaitUsing(!1)?"await using":this.isUsing(!1)?"using":null;if(R){if(!this.allowUsing)this.raise(this.start,"Using declaration cannot appear in the top level when source type is `script` or in the bare case statement");if(q)this.raise(this.start,"Using declaration is not allowed in single-statement positions");if(R==="await using"){if(!this.canAwait)this.raise(this.start,"Await using cannot appear outside of async function");this.next()}return this.next(),this.parseVar(J,!1,R),this.semicolon(),this.finishNode(J,"VariableDeclaration")}var B=this.value,M=this.parseExpression();if(Y===K.name&&M.type==="Identifier"&&this.eat(K.colon))return this.parseLabeledStatement(J,B,M,q);else return this.parseExpressionStatement(J,M)}};j8.parseBreakContinueStatement=function(q,Z){var Q=Z==="break";if(this.next(),this.eat(K.semi)||this.insertSemicolon())q.label=null;else if(this.type!==K.name)this.unexpected();else q.label=this.parseIdent(),this.semicolon();var Y=0;for(;Y<this.labels.length;++Y){var J=this.labels[Y];if(q.label==null||J.name===q.label.name){if(J.kind!=null&&(Q||J.kind==="loop"))break;if(q.label&&Q)break}}if(Y===this.labels.length)this.raise(q.start,"Unsyntactic "+Z);return this.finishNode(q,Q?"BreakStatement":"ContinueStatement")};j8.parseDebuggerStatement=function(q){return this.next(),this.semicolon(),this.finishNode(q,"DebuggerStatement")};j8.parseDoStatement=function(q){if(this.next(),this.labels.push(hY),q.body=this.parseStatement("do"),this.labels.pop(),this.expect(K._while),q.test=this.parseParenExpression(),this.options.ecmaVersion>=6)this.eat(K.semi);else this.semicolon();return this.finishNode(q,"DoWhileStatement")};j8.parseForStatement=function(q){this.next();var Z=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(hY),this.enterScope(0),this.expect(K.parenL),this.type===K.semi){if(Z>-1)this.unexpected(Z);return this.parseFor(q,null)}var Q=this.isLet();if(this.type===K._var||this.type===K._const||Q){var Y=this.startNode(),J=Q?"let":this.value;return this.next(),this.parseVar(Y,!0,J),this.finishNode(Y,"VariableDeclaration"),this.parseForAfterInit(q,Y,Z)}var H=this.isContextual("let"),X=!1,G=this.isUsing(!0)?"using":this.isAwaitUsing(!0)?"await using":null;if(G){var W=this.startNode();if(this.next(),G==="await using"){if(!this.canAwait)this.raise(this.start,"Await using cannot appear outside of async function");this.next()}return this.parseVar(W,!0,G),this.finishNode(W,"VariableDeclaration"),this.parseForAfterInit(q,W,Z)}var R=this.containsEsc,B=new _4,M=this.start,V=Z>-1?this.parseExprSubscripts(B,"await"):this.parseExpression(!0,B);if(this.type===K._in||(X=this.options.ecmaVersion>=6&&this.isContextual("of"))){if(Z>-1){if(this.type===K._in)this.unexpected(Z);q.await=!0}else if(X&&this.options.ecmaVersion>=8){if(V.start===M&&!R&&V.type==="Identifier"&&V.name==="async")this.unexpected();else if(this.options.ecmaVersion>=9)q.await=!1}if(H&&X)this.raise(V.start,"The left-hand side of a for-of loop may not start with 'let'.");return this.toAssignable(V,!1,B),this.checkLValPattern(V),this.parseForIn(q,V)}else this.checkExpressionErrors(B,!0);if(Z>-1)this.unexpected(Z);return this.parseFor(q,V)};j8.parseForAfterInit=function(q,Z,Q){if((this.type===K._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&Z.declarations.length===1){if(this.type===K._in){if((Z.kind==="using"||Z.kind==="await using")&&!Z.declarations[0].init)this.raise(this.start,"Using declaration is not allowed in for-in loops");if(this.options.ecmaVersion>=9&&Q>-1)this.unexpected(Q)}else if(this.options.ecmaVersion>=9)q.await=Q>-1;return this.parseForIn(q,Z)}if(Q>-1)this.unexpected(Q);return this.parseFor(q,Z)};j8.parseFunctionStatement=function(q,Z,Q){return this.next(),this.parseFunction(q,P2|(Q?0:TY),!1,Z)};j8.parseIfStatement=function(q){return this.next(),q.test=this.parseParenExpression(),q.consequent=this.parseStatement("if"),q.alternate=this.eat(K._else)?this.parseStatement("if"):null,this.finishNode(q,"IfStatement")};j8.parseReturnStatement=function(q){if(!this.allowReturn)this.raise(this.start,"'return' outside of function");if(this.next(),this.eat(K.semi)||this.insertSemicolon())q.argument=null;else q.argument=this.parseExpression(),this.semicolon();return this.finishNode(q,"ReturnStatement")};j8.parseSwitchStatement=function(q){this.next(),q.discriminant=this.parseParenExpression(),q.cases=[],this.expect(K.braceL),this.labels.push(Hi),this.enterScope(e$);var Z;for(var Q=!1;this.type!==K.braceR;)if(this.type===K._case||this.type===K._default){var Y=this.type===K._case;if(Z)this.finishNode(Z,"SwitchCase");if(q.cases.push(Z=this.startNode()),Z.consequent=[],this.next(),Y)Z.test=this.parseExpression();else{if(Q)this.raiseRecoverable(this.lastTokStart,"Multiple default clauses");Q=!0,Z.test=null}this.expect(K.colon)}else{if(!Z)this.unexpected();Z.consequent.push(this.parseStatement(null))}if(this.exitScope(),Z)this.finishNode(Z,"SwitchCase");return this.next(),this.labels.pop(),this.finishNode(q,"SwitchStatement")};j8.parseThrowStatement=function(q){if(this.next(),z1.test(this.input.slice(this.lastTokEnd,this.start)))this.raise(this.lastTokEnd,"Illegal newline after throw");return q.argument=this.parseExpression(),this.semicolon(),this.finishNode(q,"ThrowStatement")};var Xi=[];j8.parseCatchClauseParam=function(){var q=this.parseBindingAtom(),Z=q.type==="Identifier";return this.enterScope(Z?n$:0),this.checkLValPattern(q,Z?ZU:s9),this.expect(K.parenR),q};j8.parseTryStatement=function(q){if(this.next(),q.block=this.parseBlock(),q.handler=null,this.type===K._catch){var Z=this.startNode();if(this.next(),this.eat(K.parenL))Z.param=this.parseCatchClauseParam();else{if(this.options.ecmaVersion<10)this.unexpected();Z.param=null,this.enterScope(0)}Z.body=this.parseBlock(!1),this.exitScope(),q.handler=this.finishNode(Z,"CatchClause")}if(q.finalizer=this.eat(K._finally)?this.parseBlock():null,!q.handler&&!q.finalizer)this.raise(q.start,"Missing catch or finally clause");return this.finishNode(q,"TryStatement")};j8.parseVarStatement=function(q,Z,Q){return this.next(),this.parseVar(q,!1,Z,Q),this.semicolon(),this.finishNode(q,"VariableDeclaration")};j8.parseWhileStatement=function(q){return this.next(),q.test=this.parseParenExpression(),this.labels.push(hY),q.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(q,"WhileStatement")};j8.parseWithStatement=function(q){if(this.strict)this.raise(this.start,"'with' in strict mode");return this.next(),q.object=this.parseParenExpression(),q.body=this.parseStatement("with"),this.finishNode(q,"WithStatement")};j8.parseEmptyStatement=function(q){return this.next(),this.finishNode(q,"EmptyStatement")};j8.parseLabeledStatement=function(q,Z,Q,Y){for(var J=0,H=this.labels;J<H.length;J+=1){var X=H[J];if(X.name===Z)this.raise(Q.start,"Label '"+Z+"' is already declared")}var G=this.type.isLoop?"loop":this.type===K._switch?"switch":null;for(var W=this.labels.length-1;W>=0;W--){var R=this.labels[W];if(R.statementStart===q.start)R.statementStart=this.start,R.kind=G;else break}return this.labels.push({name:Z,kind:G,statementStart:this.start}),q.body=this.parseStatement(Y?Y.indexOf("label")===-1?Y+"label":Y:"label"),this.labels.pop(),q.label=Q,this.finishNode(q,"LabeledStatement")};j8.parseExpressionStatement=function(q,Z){return q.expression=Z,this.semicolon(),this.finishNode(q,"ExpressionStatement")};j8.parseBlock=function(q,Z,Q){if(q===void 0)q=!0;if(Z===void 0)Z=this.startNode();if(Z.body=[],this.expect(K.braceL),q)this.enterScope(0);while(this.type!==K.braceR){var Y=this.parseStatement(null);Z.body.push(Y)}if(Q)this.strict=!1;if(this.next(),q)this.exitScope();return this.finishNode(Z,"BlockStatement")};j8.parseFor=function(q,Z){return q.init=Z,this.expect(K.semi),q.test=this.type===K.semi?null:this.parseExpression(),this.expect(K.semi),q.update=this.type===K.parenR?null:this.parseExpression(),this.expect(K.parenR),q.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(q,"ForStatement")};j8.parseForIn=function(q,Z){var Q=this.type===K._in;if(this.next(),Z.type==="VariableDeclaration"&&Z.declarations[0].init!=null&&(!Q||this.options.ecmaVersion<8||this.strict||Z.kind!=="var"||Z.declarations[0].id.type!=="Identifier"))this.raise(Z.start,(Q?"for-in":"for-of")+" loop variable declaration may not have an initializer");return q.left=Z,q.right=Q?this.parseExpression():this.parseMaybeAssign(),this.expect(K.parenR),q.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(q,Q?"ForInStatement":"ForOfStatement")};j8.parseVar=function(q,Z,Q,Y){q.declarations=[],q.kind=Q;for(;;){var J=this.startNode();if(this.parseVarId(J,Q),this.eat(K.eq))J.init=this.parseMaybeAssign(Z);else if(!Y&&Q==="const"&&!(this.type===K._in||this.options.ecmaVersion>=6&&this.isContextual("of")))this.unexpected();else if(!Y&&(Q==="using"||Q==="await using")&&this.options.ecmaVersion>=17&&this.type!==K._in&&!this.isContextual("of"))this.raise(this.lastTokEnd,"Missing initializer in "+Q+" declaration");else if(!Y&&J.id.type!=="Identifier"&&!(Z&&(this.type===K._in||this.isContextual("of"))))this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value");else J.init=null;if(q.declarations.push(this.finishNode(J,"VariableDeclarator")),!this.eat(K.comma))break}return q};j8.parseVarId=function(q,Z){q.id=Z==="using"||Z==="await using"?this.parseIdent():this.parseBindingAtom(),this.checkLValPattern(q.id,Z==="var"?bY:s9,!1)};var P2=1,TY=2,YU=4;j8.parseFunction=function(q,Z,Q,Y,J){if(this.initFunction(q),this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!Y){if(this.type===K.star&&Z&TY)this.unexpected();q.generator=this.eat(K.star)}if(this.options.ecmaVersion>=8)q.async=!!Y;if(Z&P2){if(q.id=Z&YU&&this.type!==K.name?null:this.parseIdent(),q.id&&!(Z&TY))this.checkLValSimple(q.id,this.strict||q.generator||q.async?this.treatFunctionsAsVar?bY:s9:qU)}var H=this.yieldPos,X=this.awaitPos,G=this.awaitIdentPos;if(this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(uY(q.async,q.generator)),!(Z&P2))q.id=this.type===K.name?this.parseIdent():null;return this.parseFunctionParams(q),this.parseFunctionBody(q,Q,!1,J),this.yieldPos=H,this.awaitPos=X,this.awaitIdentPos=G,this.finishNode(q,Z&P2?"FunctionDeclaration":"FunctionExpression")};j8.parseFunctionParams=function(q){this.expect(K.parenL),q.params=this.parseBindingList(K.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()};j8.parseClass=function(q,Z){this.next();var Q=this.strict;this.strict=!0,this.parseClassId(q,Z),this.parseClassSuper(q);var Y=this.enterClassBody(),J=this.startNode(),H=!1;J.body=[],this.expect(K.braceL);while(this.type!==K.braceR){var X=this.parseClassElement(q.superClass!==null);if(X){if(J.body.push(X),X.type==="MethodDefinition"&&X.kind==="constructor"){if(H)this.raiseRecoverable(X.start,"Duplicate constructor in the same class");H=!0}else if(X.key&&X.key.type==="PrivateIdentifier"&&Gi(Y,X))this.raiseRecoverable(X.key.start,"Identifier '#"+X.key.name+"' has already been declared")}}return this.strict=Q,this.next(),q.body=this.finishNode(J,"ClassBody"),this.exitClassBody(),this.finishNode(q,Z?"ClassDeclaration":"ClassExpression")};j8.parseClassElement=function(q){if(this.eat(K.semi))return null;var Z=this.options.ecmaVersion,Q=this.startNode(),Y="",J=!1,H=!1,X="method",G=!1;if(this.eatContextual("static")){if(Z>=13&&this.eat(K.braceL))return this.parseClassStaticBlock(Q),Q;if(this.isClassElementNameStart()||this.type===K.star)G=!0;else Y="static"}if(Q.static=G,!Y&&Z>=8&&this.eatContextual("async"))if((this.isClassElementNameStart()||this.type===K.star)&&!this.canInsertSemicolon())H=!0;else Y="async";if(!Y&&(Z>=9||!H)&&this.eat(K.star))J=!0;if(!Y&&!H&&!J){var W=this.value;if(this.eatContextual("get")||this.eatContextual("set"))if(this.isClassElementNameStart())X=W;else Y=W}if(Y)Q.computed=!1,Q.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),Q.key.name=Y,this.finishNode(Q.key,"Identifier");else this.parseClassElementName(Q);if(Z<13||this.type===K.parenL||X!=="method"||J||H){var R=!Q.static&&k4(Q,"constructor"),B=R&&q;if(R&&X!=="method")this.raise(Q.key.start,"Constructor can't have get/set modifier");Q.kind=R?"constructor":X,this.parseClassMethod(Q,J,H,B)}else this.parseClassField(Q);return Q};j8.isClassElementNameStart=function(){return this.type===K.name||this.type===K.privateId||this.type===K.num||this.type===K.string||this.type===K.bracketL||this.type.keyword};j8.parseClassElementName=function(q){if(this.type===K.privateId){if(this.value==="constructor")this.raise(this.start,"Classes can't have an element named '#constructor'");q.computed=!1,q.key=this.parsePrivateIdent()}else this.parsePropertyName(q)};j8.parseClassMethod=function(q,Z,Q,Y){var J=q.key;if(q.kind==="constructor"){if(Z)this.raise(J.start,"Constructor can't be a generator");if(Q)this.raise(J.start,"Constructor can't be an async method")}else if(q.static&&k4(q,"prototype"))this.raise(J.start,"Classes may not have a static property named prototype");var H=q.value=this.parseMethod(Z,Q,Y);if(q.kind==="get"&&H.params.length!==0)this.raiseRecoverable(H.start,"getter should have no params");if(q.kind==="set"&&H.params.length!==1)this.raiseRecoverable(H.start,"setter should have exactly one param");if(q.kind==="set"&&H.params[0].type==="RestElement")this.raiseRecoverable(H.params[0].start,"Setter cannot use rest params");return this.finishNode(q,"MethodDefinition")};j8.parseClassField=function(q){if(k4(q,"constructor"))this.raise(q.key.start,"Classes can't have a field named 'constructor'");else if(q.static&&k4(q,"prototype"))this.raise(q.key.start,"Classes can't have a static field named 'prototype'");if(this.eat(K.eq))this.enterScope(O2|h4),q.value=this.parseMaybeAssign(),this.exitScope();else q.value=null;return this.semicolon(),this.finishNode(q,"PropertyDefinition")};j8.parseClassStaticBlock=function(q){q.body=[];var Z=this.labels;this.labels=[],this.enterScope(U7|h4);while(this.type!==K.braceR){var Q=this.parseStatement(null);q.body.push(Q)}return this.next(),this.exitScope(),this.labels=Z,this.finishNode(q,"StaticBlock")};j8.parseClassId=function(q,Z){if(this.type===K.name){if(q.id=this.parseIdent(),Z)this.checkLValSimple(q.id,s9,!1)}else{if(Z===!0)this.unexpected();q.id=null}};j8.parseClassSuper=function(q){q.superClass=this.eat(K._extends)?this.parseExprSubscripts(null,!1):null};j8.enterClassBody=function(){var q={declared:Object.create(null),used:[]};return this.privateNameStack.push(q),q.declared};j8.exitClassBody=function(){var q=this.privateNameStack.pop(),Z=q.declared,Q=q.used;if(!this.options.checkPrivateFields)return;var Y=this.privateNameStack.length,J=Y===0?null:this.privateNameStack[Y-1];for(var H=0;H<Q.length;++H){var X=Q[H];if(!X5(Z,X.name))if(J)J.used.push(X);else this.raiseRecoverable(X.start,"Private field '#"+X.name+"' must be declared in an enclosing class")}};function Gi(q,Z){var Q=Z.key.name,Y=q[Q],J="true";if(Z.type==="MethodDefinition"&&(Z.kind==="get"||Z.kind==="set"))J=(Z.static?"s":"i")+Z.kind;if(Y==="iget"&&J==="iset"||Y==="iset"&&J==="iget"||Y==="sget"&&J==="sset"||Y==="sset"&&J==="sget")return q[Q]="true",!1;else if(!Y)return q[Q]=J,!1;else return!0}function k4(q,Z){var{computed:Q,key:Y}=q;return!Q&&(Y.type==="Identifier"&&Y.name===Z||Y.type==="Literal"&&Y.value===Z)}j8.parseExportAllDeclaration=function(q,Z){if(this.options.ecmaVersion>=11)if(this.eatContextual("as"))q.exported=this.parseModuleExportName(),this.checkExport(Z,q.exported,this.lastTokStart);else q.exported=null;if(this.expectContextual("from"),this.type!==K.string)this.unexpected();if(q.source=this.parseExprAtom(),this.options.ecmaVersion>=16)q.attributes=this.parseWithClause();return this.semicolon(),this.finishNode(q,"ExportAllDeclaration")};j8.parseExport=function(q,Z){if(this.next(),this.eat(K.star))return this.parseExportAllDeclaration(q,Z);if(this.eat(K._default))return this.checkExport(Z,"default",this.lastTokStart),q.declaration=this.parseExportDefaultDeclaration(),this.finishNode(q,"ExportDefaultDeclaration");if(this.shouldParseExportStatement()){if(q.declaration=this.parseExportDeclaration(q),q.declaration.type==="VariableDeclaration")this.checkVariableExport(Z,q.declaration.declarations);else this.checkExport(Z,q.declaration.id,q.declaration.id.start);if(q.specifiers=[],q.source=null,this.options.ecmaVersion>=16)q.attributes=[]}else{if(q.declaration=null,q.specifiers=this.parseExportSpecifiers(Z),this.eatContextual("from")){if(this.type!==K.string)this.unexpected();if(q.source=this.parseExprAtom(),this.options.ecmaVersion>=16)q.attributes=this.parseWithClause()}else{for(var Q=0,Y=q.specifiers;Q<Y.length;Q+=1){var J=Y[Q];if(this.checkUnreserved(J.local),this.checkLocalExport(J.local),J.local.type==="Literal")this.raise(J.local.start,"A string literal cannot be used as an exported binding without `from`.")}if(q.source=null,this.options.ecmaVersion>=16)q.attributes=[]}this.semicolon()}return this.finishNode(q,"ExportNamedDeclaration")};j8.parseExportDeclaration=function(q){return this.parseStatement(null)};j8.parseExportDefaultDeclaration=function(){var q;if(this.type===K._function||(q=this.isAsyncFunction())){var Z=this.startNode();if(this.next(),q)this.next();return this.parseFunction(Z,P2|YU,!1,q)}else if(this.type===K._class){var Q=this.startNode();return this.parseClass(Q,"nullableID")}else{var Y=this.parseMaybeAssign();return this.semicolon(),Y}};j8.checkExport=function(q,Z,Q){if(!q)return;if(typeof Z!=="string")Z=Z.type==="Identifier"?Z.name:Z.value;if(X5(q,Z))this.raiseRecoverable(Q,"Duplicate export '"+Z+"'");q[Z]=!0};j8.checkPatternExport=function(q,Z){var Q=Z.type;if(Q==="Identifier")this.checkExport(q,Z,Z.start);else if(Q==="ObjectPattern")for(var Y=0,J=Z.properties;Y<J.length;Y+=1){var H=J[Y];this.checkPatternExport(q,H)}else if(Q==="ArrayPattern")for(var X=0,G=Z.elements;X<G.length;X+=1){var W=G[X];if(W)this.checkPatternExport(q,W)}else if(Q==="Property")this.checkPatternExport(q,Z.value);else if(Q==="AssignmentPattern")this.checkPatternExport(q,Z.left);else if(Q==="RestElement")this.checkPatternExport(q,Z.argument)};j8.checkVariableExport=function(q,Z){if(!q)return;for(var Q=0,Y=Z;Q<Y.length;Q+=1){var J=Y[Q];this.checkPatternExport(q,J.id)}};j8.shouldParseExportStatement=function(){return this.type.keyword==="var"||this.type.keyword==="const"||this.type.keyword==="class"||this.type.keyword==="function"||this.isLet()||this.isAsyncFunction()};j8.parseExportSpecifier=function(q){var Z=this.startNode();return Z.local=this.parseModuleExportName(),Z.exported=this.eatContextual("as")?this.parseModuleExportName():Z.local,this.checkExport(q,Z.exported,Z.exported.start),this.finishNode(Z,"ExportSpecifier")};j8.parseExportSpecifiers=function(q){var Z=[],Q=!0;this.expect(K.braceL);while(!this.eat(K.braceR)){if(!Q){if(this.expect(K.comma),this.afterTrailingComma(K.braceR))break}else Q=!1;Z.push(this.parseExportSpecifier(q))}return Z};j8.parseImport=function(q){if(this.next(),this.type===K.string)q.specifiers=Xi,q.source=this.parseExprAtom();else q.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),q.source=this.type===K.string?this.parseExprAtom():this.unexpected();if(this.options.ecmaVersion>=16)q.attributes=this.parseWithClause();return this.semicolon(),this.finishNode(q,"ImportDeclaration")};j8.parseImportSpecifier=function(){var q=this.startNode();if(q.imported=this.parseModuleExportName(),this.eatContextual("as"))q.local=this.parseIdent();else this.checkUnreserved(q.imported),q.local=q.imported;return this.checkLValSimple(q.local,s9),this.finishNode(q,"ImportSpecifier")};j8.parseImportDefaultSpecifier=function(){var q=this.startNode();return q.local=this.parseIdent(),this.checkLValSimple(q.local,s9),this.finishNode(q,"ImportDefaultSpecifier")};j8.parseImportNamespaceSpecifier=function(){var q=this.startNode();return this.next(),this.expectContextual("as"),q.local=this.parseIdent(),this.checkLValSimple(q.local,s9),this.finishNode(q,"ImportNamespaceSpecifier")};j8.parseImportSpecifiers=function(){var q=[],Z=!0;if(this.type===K.name){if(q.push(this.parseImportDefaultSpecifier()),!this.eat(K.comma))return q}if(this.type===K.star)return q.push(this.parseImportNamespaceSpecifier()),q;this.expect(K.braceL);while(!this.eat(K.braceR)){if(!Z){if(this.expect(K.comma),this.afterTrailingComma(K.braceR))break}else Z=!1;q.push(this.parseImportSpecifier())}return q};j8.parseWithClause=function(){var q=[];if(!this.eat(K._with))return q;this.expect(K.braceL);var Z={},Q=!0;while(!this.eat(K.braceR)){if(!Q){if(this.expect(K.comma),this.afterTrailingComma(K.braceR))break}else Q=!1;var Y=this.parseImportAttribute(),J=Y.key.type==="Identifier"?Y.key.name:Y.key.value;if(X5(Z,J))this.raiseRecoverable(Y.key.start,"Duplicate attribute key '"+J+"'");Z[J]=!0,q.push(Y)}return q};j8.parseImportAttribute=function(){var q=this.startNode();if(q.key=this.type===K.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never"),this.expect(K.colon),this.type!==K.string)this.unexpected();return q.value=this.parseExprAtom(),this.finishNode(q,"ImportAttribute")};j8.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===K.string){var q=this.parseLiteral(this.value);if(Zi.test(q.value))this.raise(q.start,"An export name cannot include a lone surrogate.");return q}return this.parseIdent(!0)};j8.adaptDirectivePrologue=function(q){for(var Z=0;Z<q.length&&this.isDirectiveCandidate(q[Z]);++Z)q[Z].directive=q[Z].expression.raw.slice(1,-1)};j8.isDirectiveCandidate=function(q){return this.options.ecmaVersion>=5&&q.type==="ExpressionStatement"&&q.expression.type==="Literal"&&typeof q.expression.value==="string"&&(this.input[q.start]==='"'||this.input[q.start]==="'")};var p1=O0.prototype;p1.toAssignable=function(q,Z,Q){if(this.options.ecmaVersion>=6&&q)switch(q.type){case"Identifier":if(this.inAsync&&q.name==="await")this.raise(q.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":if(q.type="ObjectPattern",Q)this.checkPatternErrors(Q,!0);for(var Y=0,J=q.properties;Y<J.length;Y+=1){var H=J[Y];if(this.toAssignable(H,Z),H.type==="RestElement"&&(H.argument.type==="ArrayPattern"||H.argument.type==="ObjectPattern"))this.raise(H.argument.start,"Unexpected token")}break;case"Property":if(q.kind!=="init")this.raise(q.key.start,"Object pattern can't contain getter or setter");this.toAssignable(q.value,Z);break;case"ArrayExpression":if(q.type="ArrayPattern",Q)this.checkPatternErrors(Q,!0);this.toAssignableList(q.elements,Z);break;case"SpreadElement":if(q.type="RestElement",this.toAssignable(q.argument,Z),q.argument.type==="AssignmentPattern")this.raise(q.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":if(q.operator!=="=")this.raise(q.left.end,"Only '=' operator can be used for specifying default value.");q.type="AssignmentPattern",delete q.operator,this.toAssignable(q.left,Z);break;case"ParenthesizedExpression":this.toAssignable(q.expression,Z,Q);break;case"ChainExpression":this.raiseRecoverable(q.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!Z)break;default:this.raise(q.start,"Assigning to rvalue")}else if(Q)this.checkPatternErrors(Q,!0);return q};p1.toAssignableList=function(q,Z){var Q=q.length;for(var Y=0;Y<Q;Y++){var J=q[Y];if(J)this.toAssignable(J,Z)}if(Q){var H=q[Q-1];if(this.options.ecmaVersion===6&&Z&&H&&H.type==="RestElement"&&H.argument.type!=="Identifier")this.unexpected(H.argument.start)}return q};p1.parseSpread=function(q){var Z=this.startNode();return this.next(),Z.argument=this.parseMaybeAssign(!1,q),this.finishNode(Z,"SpreadElement")};p1.parseRestBinding=function(){var q=this.startNode();if(this.next(),this.options.ecmaVersion===6&&this.type!==K.name)this.unexpected();return q.argument=this.parseBindingAtom(),this.finishNode(q,"RestElement")};p1.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case K.bracketL:var q=this.startNode();return this.next(),q.elements=this.parseBindingList(K.bracketR,!0,!0),this.finishNode(q,"ArrayPattern");case K.braceL:return this.parseObj(!0)}return this.parseIdent()};p1.parseBindingList=function(q,Z,Q,Y){var J=[],H=!0;while(!this.eat(q)){if(H)H=!1;else this.expect(K.comma);if(Z&&this.type===K.comma)J.push(null);else if(Q&&this.afterTrailingComma(q))break;else if(this.type===K.ellipsis){var X=this.parseRestBinding();if(this.parseBindingListItem(X),J.push(X),this.type===K.comma)this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");this.expect(q);break}else J.push(this.parseAssignableListItem(Y))}return J};p1.parseAssignableListItem=function(q){var Z=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(Z),Z};p1.parseBindingListItem=function(q){return q};p1.parseMaybeDefault=function(q,Z,Q){if(Q=Q||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(K.eq))return Q;var Y=this.startNodeAt(q,Z);return Y.left=Q,Y.right=this.parseMaybeAssign(),this.finishNode(Y,"AssignmentPattern")};p1.checkLValSimple=function(q,Z,Q){if(Z===void 0)Z=N4;var Y=Z!==N4;switch(q.type){case"Identifier":if(this.strict&&this.reservedWordsStrictBind.test(q.name))this.raiseRecoverable(q.start,(Y?"Binding ":"Assigning to ")+q.name+" in strict mode");if(Y){if(Z===s9&&q.name==="let")this.raiseRecoverable(q.start,"let is disallowed as a lexically bound name");if(Q){if(X5(Q,q.name))this.raiseRecoverable(q.start,"Argument name clash");Q[q.name]=!0}if(Z!==QU)this.declareName(q.name,Z,q.start)}break;case"ChainExpression":this.raiseRecoverable(q.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(Y)this.raiseRecoverable(q.start,"Binding member expression");break;case"ParenthesizedExpression":if(Y)this.raiseRecoverable(q.start,"Binding parenthesized expression");return this.checkLValSimple(q.expression,Z,Q);default:this.raise(q.start,(Y?"Binding":"Assigning to")+" rvalue")}};p1.checkLValPattern=function(q,Z,Q){if(Z===void 0)Z=N4;switch(q.type){case"ObjectPattern":for(var Y=0,J=q.properties;Y<J.length;Y+=1){var H=J[Y];this.checkLValInnerPattern(H,Z,Q)}break;case"ArrayPattern":for(var X=0,G=q.elements;X<G.length;X+=1){var W=G[X];if(W)this.checkLValInnerPattern(W,Z,Q)}break;default:this.checkLValSimple(q,Z,Q)}};p1.checkLValInnerPattern=function(q,Z,Q){if(Z===void 0)Z=N4;switch(q.type){case"Property":this.checkLValInnerPattern(q.value,Z,Q);break;case"AssignmentPattern":this.checkLValPattern(q.left,Z,Q);break;case"RestElement":this.checkLValPattern(q.argument,Z,Q);break;default:this.checkLValPattern(q,Z,Q)}};var l1=function(Z,Q,Y,J,H){this.token=Z,this.isExpr=!!Q,this.preserveSpace=!!Y,this.override=J,this.generator=!!H},P0={b_stat:new l1("{",!1),b_expr:new l1("{",!0),b_tmpl:new l1("${",!1),p_stat:new l1("(",!1),p_expr:new l1("(",!0),q_tmpl:new l1("`",!0,!0,function(q){return q.tryReadTemplateToken()}),f_stat:new l1("function",!1),f_expr:new l1("function",!0),f_expr_gen:new l1("function",!0,!1,null,!0),f_gen:new l1("function",!1,!1,null,!0)},G5=O0.prototype;G5.initialContext=function(){return[P0.b_stat]};G5.curContext=function(){return this.context[this.context.length-1]};G5.braceIsBlock=function(q){var Z=this.curContext();if(Z===P0.f_expr||Z===P0.f_stat)return!0;if(q===K.colon&&(Z===P0.b_stat||Z===P0.b_expr))return!Z.isExpr;if(q===K._return||q===K.name&&this.exprAllowed)return z1.test(this.input.slice(this.lastTokEnd,this.start));if(q===K._else||q===K.semi||q===K.eof||q===K.parenR||q===K.arrow)return!0;if(q===K.braceL)return Z===P0.b_stat;if(q===K._var||q===K._const||q===K.name)return!1;return!this.exprAllowed};G5.inGeneratorContext=function(){for(var q=this.context.length-1;q>=1;q--){var Z=this.context[q];if(Z.token==="function")return Z.generator}return!1};G5.updateContext=function(q){var Z,Q=this.type;if(Q.keyword&&q===K.dot)this.exprAllowed=!1;else if(Z=Q.updateContext)Z.call(this,q);else this.exprAllowed=Q.beforeExpr};G5.overrideContext=function(q){if(this.curContext()!==q)this.context[this.context.length-1]=q};K.parenR.updateContext=K.braceR.updateContext=function(){if(this.context.length===1){this.exprAllowed=!0;return}var q=this.context.pop();if(q===P0.b_stat&&this.curContext().token==="function")q=this.context.pop();this.exprAllowed=!q.isExpr};K.braceL.updateContext=function(q){this.context.push(this.braceIsBlock(q)?P0.b_stat:P0.b_expr),this.exprAllowed=!0};K.dollarBraceL.updateContext=function(){this.context.push(P0.b_tmpl),this.exprAllowed=!0};K.parenL.updateContext=function(q){var Z=q===K._if||q===K._for||q===K._with||q===K._while;this.context.push(Z?P0.p_stat:P0.p_expr),this.exprAllowed=!0};K.incDec.updateContext=function(){};K._function.updateContext=K._class.updateContext=function(q){if(q.beforeExpr&&q!==K._else&&!(q===K.semi&&this.curContext()!==P0.p_stat)&&!(q===K._return&&z1.test(this.input.slice(this.lastTokEnd,this.start)))&&!((q===K.colon||q===K.braceL)&&this.curContext()===P0.b_stat))this.context.push(P0.f_expr);else this.context.push(P0.f_stat);this.exprAllowed=!1};K.colon.updateContext=function(){if(this.curContext().token==="function")this.context.pop();this.exprAllowed=!0};K.backQuote.updateContext=function(){if(this.curContext()===P0.q_tmpl)this.context.pop();else this.context.push(P0.q_tmpl);this.exprAllowed=!1};K.star.updateContext=function(q){if(q===K._function){var Z=this.context.length-1;if(this.context[Z]===P0.f_expr)this.context[Z]=P0.f_expr_gen;else this.context[Z]=P0.f_gen}this.exprAllowed=!0};K.name.updateContext=function(q){var Z=!1;if(this.options.ecmaVersion>=6&&q!==K.dot){if(this.value==="of"&&!this.exprAllowed||this.value==="yield"&&this.inGeneratorContext())Z=!0}this.exprAllowed=Z};var y8=O0.prototype;y8.checkPropClash=function(q,Z,Q){if(this.options.ecmaVersion>=9&&q.type==="SpreadElement")return;if(this.options.ecmaVersion>=6&&(q.computed||q.method||q.shorthand))return;var Y=q.key,J;switch(Y.type){case"Identifier":J=Y.name;break;case"Literal":J=String(Y.value);break;default:return}var H=q.kind;if(this.options.ecmaVersion>=6){if(J==="__proto__"&&H==="init"){if(Z.proto)if(Q){if(Q.doubleProto<0)Q.doubleProto=Y.start}else this.raiseRecoverable(Y.start,"Redefinition of __proto__ property");Z.proto=!0}return}J="$"+J;var X=Z[J];if(X){var G;if(H==="init")G=this.strict&&X.init||X.get||X.set;else G=X.init||X[H];if(G)this.raiseRecoverable(Y.start,"Redefinition of property")}else X=Z[J]={init:!1,get:!1,set:!1};X[H]=!0};y8.parseExpression=function(q,Z){var Q=this;return this.catchStackOverflow(function(){var{start:Y,startLoc:J}=Q,H=Q.parseMaybeAssign(q,Z);if(Q.type===K.comma){var X=Q.startNodeAt(Y,J);X.expressions=[H];while(Q.eat(K.comma))X.expressions.push(Q.parseMaybeAssign(q,Z));return Q.finishNode(X,"SequenceExpression")}return H})};y8.parseMaybeAssign=function(q,Z,Q){if(this.isContextual("yield"))if(this.inGenerator)return this.parseYield(q);else this.exprAllowed=!1;var Y=!1,J=-1,H=-1,X=-1;if(Z)J=Z.parenthesizedAssign,H=Z.trailingComma,X=Z.doubleProto,Z.parenthesizedAssign=Z.trailingComma=-1;else Z=new _4,Y=!0;var G=this.start,W=this.startLoc;if(this.type===K.parenL||this.type===K.name)this.potentialArrowAt=this.start,this.potentialArrowInForAwait=q==="await";var R=this.parseMaybeConditional(q,Z);if(Q)R=Q.call(this,R,G,W);if(this.type.isAssign){var B=this.startNodeAt(G,W);if(B.operator=this.value,this.type===K.eq)R=this.toAssignable(R,!1,Z);if(!Y)Z.parenthesizedAssign=Z.trailingComma=Z.doubleProto=-1;if(Z.shorthandAssign>=R.start)Z.shorthandAssign=-1;if(this.type===K.eq)this.checkLValPattern(R);else this.checkLValSimple(R);if(B.left=R,this.next(),B.right=this.parseMaybeAssign(q),X>-1)Z.doubleProto=X;return this.finishNode(B,"AssignmentExpression")}else if(Y)this.checkExpressionErrors(Z,!0);if(J>-1)Z.parenthesizedAssign=J;if(H>-1)Z.trailingComma=H;return R};y8.parseMaybeConditional=function(q,Z){var Q=this.start,Y=this.startLoc,J=this.parseExprOps(q,Z);if(this.checkExpressionErrors(Z))return J;if(!(J.type==="ArrowFunctionExpression"&&J.start===Q)&&this.eat(K.question)){var H=this.startNodeAt(Q,Y);return H.test=J,H.consequent=this.parseMaybeAssign(),this.expect(K.colon),H.alternate=this.parseMaybeAssign(q),this.finishNode(H,"ConditionalExpression")}return J};y8.parseExprOps=function(q,Z){var Q=this.start,Y=this.startLoc,J=this.parseMaybeUnary(Z,!1,!1,q);if(this.checkExpressionErrors(Z))return J;return J.start===Q&&J.type==="ArrowFunctionExpression"?J:this.parseExprOp(J,Q,Y,-1,q)};y8.parseExprOp=function(q,Z,Q,Y,J){var H=this.type.binop;if(H!=null&&(!J||this.type!==K._in)){if(H>Y){var X=this.type===K.logicalOR||this.type===K.logicalAND,G=this.type===K.coalesce;if(G)H=K.logicalAND.binop;var W=this.value;this.next();var R=this.start,B=this.startLoc,M=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,J),R,B,H,J),V=this.buildBinary(Z,Q,q,M,W,X||G);if(X&&this.type===K.coalesce||G&&(this.type===K.logicalOR||this.type===K.logicalAND))this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses");return this.parseExprOp(V,Z,Q,Y,J)}}return q};y8.buildBinary=function(q,Z,Q,Y,J,H){if(Y.type==="PrivateIdentifier")this.raise(Y.start,"Private identifier can only be left side of binary expression");var X=this.startNodeAt(q,Z);return X.left=Q,X.operator=J,X.right=Y,this.finishNode(X,H?"LogicalExpression":"BinaryExpression")};y8.parseMaybeUnary=function(q,Z,Q,Y){var J=this.start,H=this.startLoc,X;if(this.isContextual("await")&&this.canAwait)X=this.parseAwait(Y),Z=!0;else if(this.type.prefix){var G=this.startNode(),W=this.type===K.incDec;if(G.operator=this.value,G.prefix=!0,this.next(),G.argument=this.parseMaybeUnary(null,!0,W,Y),this.checkExpressionErrors(q,!0),W)this.checkLValSimple(G.argument);else if(this.strict&&G.operator==="delete"&&JU(G.argument))this.raiseRecoverable(G.start,"Deleting local variable in strict mode");else if(G.operator==="delete"&&fY(G.argument))this.raiseRecoverable(G.start,"Private fields can not be deleted");else Z=!0;X=this.finishNode(G,W?"UpdateExpression":"UnaryExpression")}else if(!Z&&this.type===K.privateId){if((Y||this.privateNameStack.length===0)&&this.options.checkPrivateFields)this.unexpected();if(X=this.parsePrivateIdent(),this.type!==K._in)this.unexpected()}else{if(X=this.parseExprSubscripts(q,Y),this.checkExpressionErrors(q))return X;while(this.type.postfix&&!this.canInsertSemicolon()){var R=this.startNodeAt(J,H);R.operator=this.value,R.prefix=!1,R.argument=X,this.checkLValSimple(X),this.next(),X=this.finishNode(R,"UpdateExpression")}}if(!Q&&this.eat(K.starstar))if(Z)this.unexpected(this.lastTokStart);else return this.buildBinary(J,H,X,this.parseMaybeUnary(null,!1,!1,Y),"**",!1);else return X};function JU(q){return q.type==="Identifier"||q.type==="ParenthesizedExpression"&&JU(q.expression)}function fY(q){return q.type==="MemberExpression"&&q.property.type==="PrivateIdentifier"||q.type==="ChainExpression"&&fY(q.expression)||q.type==="ParenthesizedExpression"&&fY(q.expression)}y8.parseExprSubscripts=function(q,Z){var Q=this.start,Y=this.startLoc,J=this.parseExprAtom(q,Z);if(J.type==="ArrowFunctionExpression"&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==")")return J;var H=this.parseSubscripts(J,Q,Y,!1,Z);if(q&&H.type==="MemberExpression"){if(q.parenthesizedAssign>=H.start)q.parenthesizedAssign=-1;if(q.parenthesizedBind>=H.start)q.parenthesizedBind=-1;if(q.trailingComma>=H.start)q.trailingComma=-1}return H};y8.parseSubscripts=function(q,Z,Q,Y,J){var H=this.options.ecmaVersion>=8&&q.type==="Identifier"&&q.name==="async"&&this.lastTokEnd===q.end&&!this.canInsertSemicolon()&&q.end-q.start===5&&this.potentialArrowAt===q.start,X=!1;while(!0){var G=this.parseSubscript(q,Z,Q,Y,H,X,J);if(G.optional)X=!0;if(G===q||G.type==="ArrowFunctionExpression"){if(X){var W=this.startNodeAt(Z,Q);W.expression=G,G=this.finishNode(W,"ChainExpression")}return G}q=G}};y8.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(K.arrow)};y8.parseSubscriptAsyncArrow=function(q,Z,Q,Y){return this.parseArrowExpression(this.startNodeAt(q,Z),Q,!0,Y)};y8.parseSubscript=function(q,Z,Q,Y,J,H,X){var G=this.options.ecmaVersion>=11,W=G&&this.eat(K.questionDot);if(Y&&W)this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var R=this.eat(K.bracketL);if(R||W&&this.type!==K.parenL&&this.type!==K.backQuote||this.eat(K.dot)){var B=this.startNodeAt(Z,Q);if(B.object=q,R)B.property=this.parseExpression(),this.expect(K.bracketR);else if(this.type===K.privateId&&q.type!=="Super")B.property=this.parsePrivateIdent();else B.property=this.parseIdent(this.options.allowReserved!=="never");if(B.computed=!!R,G)B.optional=W;q=this.finishNode(B,"MemberExpression")}else if(!Y&&this.eat(K.parenL)){var M=new _4,V=this.yieldPos,$=this.awaitPos,O=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var w=this.parseExprList(K.parenR,this.options.ecmaVersion>=8,!1,M);if(J&&!W&&this.shouldParseAsyncArrow()){if(this.checkPatternErrors(M,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0)this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function");return this.yieldPos=V,this.awaitPos=$,this.awaitIdentPos=O,this.parseSubscriptAsyncArrow(Z,Q,w,X)}this.checkExpressionErrors(M,!0),this.yieldPos=V||this.yieldPos,this.awaitPos=$||this.awaitPos,this.awaitIdentPos=O||this.awaitIdentPos;var I=this.startNodeAt(Z,Q);if(I.callee=q,I.arguments=w,G)I.optional=W;q=this.finishNode(I,"CallExpression")}else if(this.type===K.backQuote){if(W||H)this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var C=this.startNodeAt(Z,Q);C.tag=q,C.quasi=this.parseTemplate({isTagged:!0}),q=this.finishNode(C,"TaggedTemplateExpression")}return q};y8.parseExprAtom=function(q,Z,Q){if(this.type===K.slash)this.readRegexp();var Y,J=this.potentialArrowAt===this.start;switch(this.type){case K._super:if(!this.allowSuper)this.raise(this.start,"'super' keyword outside a method");if(Y=this.startNode(),this.next(),this.type===K.parenL&&!this.allowDirectSuper)this.raise(Y.start,"super() call outside constructor of a subclass");if(this.type!==K.dot&&this.type!==K.bracketL&&this.type!==K.parenL)this.unexpected();return this.finishNode(Y,"Super");case K._this:return Y=this.startNode(),this.next(),this.finishNode(Y,"ThisExpression");case K.name:var H=this.start,X=this.startLoc,G=this.containsEsc,W=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!G&&W.name==="async"&&!this.canInsertSemicolon()&&this.eat(K._function))return this.overrideContext(P0.f_expr),this.parseFunction(this.startNodeAt(H,X),0,!1,!0,Z);if(J&&!this.canInsertSemicolon()){if(this.eat(K.arrow))return this.parseArrowExpression(this.startNodeAt(H,X),[W],!1,Z);if(this.options.ecmaVersion>=8&&W.name==="async"&&this.type===K.name&&!G&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc)){if(W=this.parseIdent(!1),this.canInsertSemicolon()||!this.eat(K.arrow))this.unexpected();return this.parseArrowExpression(this.startNodeAt(H,X),[W],!0,Z)}}return W;case K.regexp:var R=this.value;return Y=this.parseLiteral(R.value),Y.regex={pattern:R.pattern,flags:R.flags},Y;case K.num:case K.string:return this.parseLiteral(this.value);case K._null:case K._true:case K._false:return Y=this.startNode(),Y.value=this.type===K._null?null:this.type===K._true,Y.raw=this.type.keyword,this.next(),this.finishNode(Y,"Literal");case K.parenL:var B=this.start,M=this.parseParenAndDistinguishExpression(J,Z);if(q){if(q.parenthesizedAssign<0&&!this.isSimpleAssignTarget(M))q.parenthesizedAssign=B;if(q.parenthesizedBind<0)q.parenthesizedBind=B}return M;case K.bracketL:return Y=this.startNode(),this.next(),Y.elements=this.parseExprList(K.bracketR,!0,!0,q),this.finishNode(Y,"ArrayExpression");case K.braceL:return this.overrideContext(P0.b_expr),this.parseObj(!1,q);case K._function:return Y=this.startNode(),this.next(),this.parseFunction(Y,0);case K._class:return this.parseClass(this.startNode(),!1);case K._new:return this.parseNew();case K.backQuote:return this.parseTemplate();case K._import:if(this.options.ecmaVersion>=11)return this.parseExprImport(Q);else return this.unexpected();default:return this.parseExprAtomDefault()}};y8.parseExprAtomDefault=function(){this.unexpected()};y8.parseExprImport=function(q){var Z=this.startNode();if(this.containsEsc)this.raiseRecoverable(this.start,"Escape sequence in keyword import");if(this.next(),this.type===K.parenL&&!q)return this.parseDynamicImport(Z);else if(this.type===K.dot){var Q=this.startNodeAt(Z.start,Z.loc&&Z.loc.start);return Q.name="import",Z.meta=this.finishNode(Q,"Identifier"),this.parseImportMeta(Z)}else this.unexpected()};y8.parseDynamicImport=function(q){if(this.next(),q.source=this.parseMaybeAssign(),this.options.ecmaVersion>=16)if(!this.eat(K.parenR))if(this.expect(K.comma),!this.afterTrailingComma(K.parenR)){if(q.options=this.parseMaybeAssign(),!this.eat(K.parenR)){if(this.expect(K.comma),!this.afterTrailingComma(K.parenR))this.unexpected()}}else q.options=null;else q.options=null;else if(!this.eat(K.parenR)){var Z=this.start;if(this.eat(K.comma)&&this.eat(K.parenR))this.raiseRecoverable(Z,"Trailing comma is not allowed in import()");else this.unexpected(Z)}return this.finishNode(q,"ImportExpression")};y8.parseImportMeta=function(q){this.next();var Z=this.containsEsc;if(q.property=this.parseIdent(!0),q.property.name!=="meta")this.raiseRecoverable(q.property.start,"The only valid meta property for import is 'import.meta'");if(Z)this.raiseRecoverable(q.start,"'import.meta' must not contain escaped characters");if(this.options.sourceType!=="module"&&!this.options.allowImportExportEverywhere)this.raiseRecoverable(q.start,"Cannot use 'import.meta' outside a module");return this.finishNode(q,"MetaProperty")};y8.parseLiteral=function(q){var Z=this.startNode();if(Z.value=q,Z.raw=this.input.slice(this.start,this.end),Z.raw.charCodeAt(Z.raw.length-1)===110)Z.bigint=Z.value!=null?Z.value.toString():Z.raw.slice(0,-1).replace(/_/g,"");return this.next(),this.finishNode(Z,"Literal")};y8.parseParenExpression=function(){this.expect(K.parenL);var q=this.parseExpression();return this.expect(K.parenR),q};y8.shouldParseArrow=function(q){return!this.canInsertSemicolon()};y8.parseParenAndDistinguishExpression=function(q,Z){var Q=this.start,Y=this.startLoc,J,H=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var X=this.start,G=this.startLoc,W=[],R=!0,B=!1,M=new _4,V=this.yieldPos,$=this.awaitPos,O;this.yieldPos=0,this.awaitPos=0;while(this.type!==K.parenR)if(R?R=!1:this.expect(K.comma),H&&this.afterTrailingComma(K.parenR,!0)){B=!0;break}else if(this.type===K.ellipsis){if(O=this.start,W.push(this.parseParenItem(this.parseRestBinding())),this.type===K.comma)this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}else W.push(this.parseMaybeAssign(!1,M,this.parseParenItem));var w=this.lastTokEnd,I=this.lastTokEndLoc;if(this.expect(K.parenR),q&&this.shouldParseArrow(W)&&this.eat(K.arrow))return this.checkPatternErrors(M,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=V,this.awaitPos=$,this.parseParenArrowList(Q,Y,W,Z);if(!W.length||B)this.unexpected(this.lastTokStart);if(O)this.unexpected(O);if(this.checkExpressionErrors(M,!0),this.yieldPos=V||this.yieldPos,this.awaitPos=$||this.awaitPos,W.length>1)J=this.startNodeAt(X,G),J.expressions=W,this.finishNodeAt(J,"SequenceExpression",w,I);else J=W[0]}else J=this.parseParenExpression();if(this.options.preserveParens){var C=this.startNodeAt(Q,Y);return C.expression=J,this.finishNode(C,"ParenthesizedExpression")}else return J};y8.parseParenItem=function(q){return q};y8.parseParenArrowList=function(q,Z,Q,Y){return this.parseArrowExpression(this.startNodeAt(q,Z),Q,!1,Y)};var Vi=[];y8.parseNew=function(){if(this.containsEsc)this.raiseRecoverable(this.start,"Escape sequence in keyword new");var q=this.startNode();if(this.next(),this.options.ecmaVersion>=6&&this.type===K.dot){var Z=this.startNodeAt(q.start,q.loc&&q.loc.start);Z.name="new",q.meta=this.finishNode(Z,"Identifier"),this.next();var Q=this.containsEsc;if(q.property=this.parseIdent(!0),q.property.name!=="target")this.raiseRecoverable(q.property.start,"The only valid meta property for new is 'new.target'");if(Q)this.raiseRecoverable(q.start,"'new.target' must not contain escaped characters");if(!this.allowNewDotTarget)this.raiseRecoverable(q.start,"'new.target' can only be used in functions and class static block");return this.finishNode(q,"MetaProperty")}var Y=this.start,J=this.startLoc;if(q.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),Y,J,!0,!1),q.callee.type==="Super")this.raiseRecoverable(Y,"Invalid use of 'super'");if(this.eat(K.parenL))q.arguments=this.parseExprList(K.parenR,this.options.ecmaVersion>=8,!1);else q.arguments=Vi;return this.finishNode(q,"NewExpression")};y8.parseTemplateElement=function(q){var Z=q.isTagged,Q=this.startNode();if(this.type===K.invalidTemplate){if(!Z)this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal");Q.value={raw:this.value.replace(/\r\n?/g,`
|
|
103
|
-
`),cooked:null}}else Q.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,`
|
|
104
|
-
`),cooked:this.value};return this.next(),Q.tail=this.type===K.backQuote,this.finishNode(Q,"TemplateElement")};y8.parseTemplate=function(q){if(q===void 0)q={};var Z=q.isTagged;if(Z===void 0)Z=!1;var Q=this.startNode();this.next(),Q.expressions=[];var Y=this.parseTemplateElement({isTagged:Z});Q.quasis=[Y];while(!Y.tail){if(this.type===K.eof)this.raise(this.pos,"Unterminated template literal");this.expect(K.dollarBraceL),Q.expressions.push(this.parseExpression()),this.expect(K.braceR),Q.quasis.push(Y=this.parseTemplateElement({isTagged:Z}))}return this.next(),this.finishNode(Q,"TemplateLiteral")};y8.isAsyncProp=function(q){return!q.computed&&q.key.type==="Identifier"&&q.key.name==="async"&&(this.type===K.name||this.type===K.num||this.type===K.string||this.type===K.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===K.star)&&!z1.test(this.input.slice(this.lastTokEnd,this.start))};y8.parseObj=function(q,Z){var Q=this.startNode(),Y=!0,J={};Q.properties=[],this.next();while(!this.eat(K.braceR)){if(!Y){if(this.expect(K.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(K.braceR))break}else Y=!1;var H=this.parseProperty(q,Z);if(!q)this.checkPropClash(H,J,Z);Q.properties.push(H)}return this.finishNode(Q,q?"ObjectPattern":"ObjectExpression")};y8.parseProperty=function(q,Z){var Q=this.startNode(),Y,J,H,X;if(this.options.ecmaVersion>=9&&this.eat(K.ellipsis)){if(q){if(Q.argument=this.parseIdent(!1),this.type===K.comma)this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");return this.finishNode(Q,"RestElement")}if(Q.argument=this.parseMaybeAssign(!1,Z),this.type===K.comma&&Z&&Z.trailingComma<0)Z.trailingComma=this.start;return this.finishNode(Q,"SpreadElement")}if(this.options.ecmaVersion>=6){if(Q.method=!1,Q.shorthand=!1,q||Z)H=this.start,X=this.startLoc;if(!q)Y=this.eat(K.star)}var G=this.containsEsc;if(this.parsePropertyName(Q),!q&&!G&&this.options.ecmaVersion>=8&&!Y&&this.isAsyncProp(Q))J=!0,Y=this.options.ecmaVersion>=9&&this.eat(K.star),this.parsePropertyName(Q);else J=!1;return this.parsePropertyValue(Q,q,Y,J,H,X,Z,G),this.finishNode(Q,"Property")};y8.parseGetterSetter=function(q){var Z=q.key.name;this.parsePropertyName(q),q.value=this.parseMethod(!1),q.kind=Z;var Q=q.kind==="get"?0:1;if(q.value.params.length!==Q){var Y=q.value.start;if(q.kind==="get")this.raiseRecoverable(Y,"getter should have no params");else this.raiseRecoverable(Y,"setter should have exactly one param")}else if(q.kind==="set"&&q.value.params[0].type==="RestElement")this.raiseRecoverable(q.value.params[0].start,"Setter cannot use rest params")};y8.parsePropertyValue=function(q,Z,Q,Y,J,H,X,G){if((Q||Y)&&this.type===K.colon)this.unexpected();if(this.eat(K.colon))q.value=Z?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,X),q.kind="init";else if(this.options.ecmaVersion>=6&&this.type===K.parenL){if(Z)this.unexpected();q.method=!0,q.value=this.parseMethod(Q,Y),q.kind="init"}else if(!Z&&!G&&this.options.ecmaVersion>=5&&!q.computed&&q.key.type==="Identifier"&&(q.key.name==="get"||q.key.name==="set")&&(this.type!==K.comma&&this.type!==K.braceR&&this.type!==K.eq)){if(Q||Y)this.unexpected();this.parseGetterSetter(q)}else if(this.options.ecmaVersion>=6&&!q.computed&&q.key.type==="Identifier"){if(Q||Y)this.unexpected();if(this.checkUnreserved(q.key),q.key.name==="await"&&!this.awaitIdentPos)this.awaitIdentPos=J;if(Z)q.value=this.parseMaybeDefault(J,H,this.copyNode(q.key));else if(this.type===K.eq&&X){if(X.shorthandAssign<0)X.shorthandAssign=this.start;q.value=this.parseMaybeDefault(J,H,this.copyNode(q.key))}else q.value=this.copyNode(q.key);q.kind="init",q.shorthand=!0}else this.unexpected()};y8.parsePropertyName=function(q){if(this.options.ecmaVersion>=6)if(this.eat(K.bracketL))return q.computed=!0,q.key=this.parseMaybeAssign(),this.expect(K.bracketR),q.key;else q.computed=!1;return q.key=this.type===K.num||this.type===K.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")};y8.initFunction=function(q){if(q.id=null,this.options.ecmaVersion>=6)q.generator=q.expression=!1;if(this.options.ecmaVersion>=8)q.async=!1};y8.parseMethod=function(q,Z,Q){var Y=this.startNode(),J=this.yieldPos,H=this.awaitPos,X=this.awaitIdentPos;if(this.initFunction(Y),this.options.ecmaVersion>=6)Y.generator=q;if(this.options.ecmaVersion>=8)Y.async=!!Z;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(uY(Z,Y.generator)|h4|(Q?t$:0)),this.expect(K.parenL),Y.params=this.parseBindingList(K.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(Y,!1,!0,!1),this.yieldPos=J,this.awaitPos=H,this.awaitIdentPos=X,this.finishNode(Y,"FunctionExpression")};y8.parseArrowExpression=function(q,Z,Q,Y){var J=this.yieldPos,H=this.awaitPos,X=this.awaitIdentPos;if(this.enterScope(uY(Q,!1)|SY),this.initFunction(q),this.options.ecmaVersion>=8)q.async=!!Q;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,q.params=this.toAssignableList(Z,!0),this.parseFunctionBody(q,!0,!1,Y),this.yieldPos=J,this.awaitPos=H,this.awaitIdentPos=X,this.finishNode(q,"ArrowFunctionExpression")};y8.parseFunctionBody=function(q,Z,Q,Y){var J=Z&&this.type!==K.braceL,H=this.strict,X=!1;if(J)q.body=this.parseMaybeAssign(Y),q.expression=!0,this.checkParams(q,!1);else{var G=this.options.ecmaVersion>=7&&!this.isSimpleParamList(q.params);if(!H||G){if(X=this.strictDirective(this.end),X&&G)this.raiseRecoverable(q.start,"Illegal 'use strict' directive in function with non-simple parameter list")}var W=this.labels;if(this.labels=[],X)this.strict=!0;if(this.checkParams(q,!H&&!X&&!Z&&!Q&&this.isSimpleParamList(q.params)),this.strict&&q.id)this.checkLValSimple(q.id,QU);q.body=this.parseBlock(!1,void 0,X&&!H),q.expression=!1,this.adaptDirectivePrologue(q.body.body),this.labels=W}this.exitScope()};y8.isSimpleParamList=function(q){for(var Z=0,Q=q;Z<Q.length;Z+=1){var Y=Q[Z];if(Y.type!=="Identifier")return!1}return!0};y8.checkParams=function(q,Z){var Q=Object.create(null);for(var Y=0,J=q.params;Y<J.length;Y+=1){var H=J[Y];this.checkLValInnerPattern(H,bY,Z?null:Q)}};y8.parseExprList=function(q,Z,Q,Y){var J=[],H=!0;while(!this.eat(q)){if(!H){if(this.expect(K.comma),Z&&this.afterTrailingComma(q))break}else H=!1;var X=void 0;if(Q&&this.type===K.comma)X=null;else if(this.type===K.ellipsis){if(X=this.parseSpread(Y),Y&&this.type===K.comma&&Y.trailingComma<0)Y.trailingComma=this.start}else X=this.parseMaybeAssign(!1,Y);J.push(X)}return J};y8.checkUnreserved=function(q){var{start:Z,end:Q,name:Y}=q;if(this.inGenerator&&Y==="yield")this.raiseRecoverable(Z,"Cannot use 'yield' as identifier inside a generator");if(this.inAsync&&Y==="await")this.raiseRecoverable(Z,"Cannot use 'await' as identifier inside an async function");if(!(this.currentThisScope().flags&y4)&&Y==="arguments")this.raiseRecoverable(Z,"Cannot use 'arguments' in class field initializer");if(this.inClassStaticBlock&&(Y==="arguments"||Y==="await"))this.raise(Z,"Cannot use "+Y+" in class static initialization block");if(this.keywords.test(Y))this.raise(Z,"Unexpected keyword '"+Y+"'");if(this.options.ecmaVersion<6&&this.input.slice(Z,Q).indexOf("\\")!==-1)return;var J=this.strict?this.reservedWordsStrict:this.reservedWords;if(J.test(Y)){if(!this.inAsync&&Y==="await")this.raiseRecoverable(Z,"Cannot use keyword 'await' outside an async function");this.raiseRecoverable(Z,"The keyword '"+Y+"' is reserved")}};y8.parseIdent=function(q){var Z=this.parseIdentNode();if(this.next(!!q),this.finishNode(Z,"Identifier"),!q){if(this.checkUnreserved(Z),Z.name==="await"&&!this.awaitIdentPos)this.awaitIdentPos=Z.start}return Z};y8.parseIdentNode=function(){var q=this.startNode();if(this.type===K.name)q.name=this.value;else if(this.type.keyword){if(q.name=this.type.keyword,(q.name==="class"||q.name==="function")&&(this.lastTokEnd!==this.lastTokStart+1||this.input.charCodeAt(this.lastTokStart)!==46))this.context.pop();this.type=K.name}else this.unexpected();return q};y8.parsePrivateIdent=function(){var q=this.startNode();if(this.type===K.privateId)q.name=this.value;else this.unexpected();if(this.next(),this.finishNode(q,"PrivateIdentifier"),this.options.checkPrivateFields)if(this.privateNameStack.length===0)this.raise(q.start,"Private field '#"+q.name+"' must be declared in an enclosing class");else this.privateNameStack[this.privateNameStack.length-1].used.push(q);return q};y8.parseYield=function(q){if(!this.yieldPos)this.yieldPos=this.start;var Z=this.startNode();if(this.next(),this.type===K.semi||this.canInsertSemicolon()||this.type!==K.star&&!this.type.startsExpr)Z.delegate=!1,Z.argument=null;else Z.delegate=this.eat(K.star),Z.argument=this.parseMaybeAssign(q);return this.finishNode(Z,"YieldExpression")};y8.parseAwait=function(q){if(!this.awaitPos)this.awaitPos=this.start;var Z=this.startNode();return this.next(),Z.argument=this.parseMaybeUnary(null,!0,!1,q),this.finishNode(Z,"AwaitExpression")};var S4=O0.prototype;S4.raise=function(q,Z){var Q=NY(this.input,q);if(Z+=" ("+Q.line+":"+Q.column+")",this.sourceFile)Z+=" in "+this.sourceFile;var Y=SyntaxError(Z);throw Y.pos=q,Y.loc=Q,Y.raisedAt=this.pos,Y};S4.raiseRecoverable=S4.raise;S4.curPosition=function(){if(this.options.locations)return new H5(this.curLine,this.pos-this.lineStart)};var C6=O0.prototype,Wi=function(Z){this.flags=Z,this.var=[],this.lexical=[],this.functions=[]};C6.enterScope=function(q){this.scopeStack.push(new Wi(q))};C6.exitScope=function(){this.scopeStack.pop()};C6.treatFunctionsAsVarInScope=function(q){return q.flags&$7||!this.inModule&&q.flags&V7};C6.declareName=function(q,Z,Q){var Y=!1;if(Z===s9){var J=this.currentScope();if(Y=J.lexical.indexOf(q)>-1||J.functions.indexOf(q)>-1||J.var.indexOf(q)>-1,J.lexical.push(q),this.inModule&&J.flags&V7)delete this.undefinedExports[q]}else if(Z===ZU){var H=this.currentScope();H.lexical.push(q)}else if(Z===qU){var X=this.currentScope();if(this.treatFunctionsAsVar)Y=X.lexical.indexOf(q)>-1;else Y=X.lexical.indexOf(q)>-1||X.var.indexOf(q)>-1;X.functions.push(q)}else for(var G=this.scopeStack.length-1;G>=0;--G){var W=this.scopeStack[G];if(W.lexical.indexOf(q)>-1&&!(W.flags&n$&&W.lexical[0]===q)||!this.treatFunctionsAsVarInScope(W)&&W.functions.indexOf(q)>-1){Y=!0;break}if(W.var.push(q),this.inModule&&W.flags&V7)delete this.undefinedExports[q];if(W.flags&y4)break}if(Y)this.raiseRecoverable(Q,"Identifier '"+q+"' has already been declared")};C6.checkLocalExport=function(q){if(this.scopeStack[0].lexical.indexOf(q.name)===-1&&this.scopeStack[0].var.indexOf(q.name)===-1)this.undefinedExports[q.name]=q};C6.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]};C6.currentVarScope=function(){for(var q=this.scopeStack.length-1;;q--){var Z=this.scopeStack[q];if(Z.flags&(y4|O2|U7))return Z}};C6.currentThisScope=function(){for(var q=this.scopeStack.length-1;;q--){var Z=this.scopeStack[q];if(Z.flags&(y4|O2|U7)&&!(Z.flags&SY))return Z}};var w2=function(Z,Q,Y){if(this.type="",this.start=Q,this.end=0,Z.options.locations)this.loc=new L2(Z,Y);if(Z.options.directSourceFile)this.sourceFile=Z.options.directSourceFile;if(Z.options.ranges)this.range=[Q,0]},A2=O0.prototype;A2.startNode=function(){return new w2(this,this.start,this.startLoc)};A2.startNodeAt=function(q,Z){return new w2(this,q,Z)};function HU(q,Z,Q,Y){if(q.type=Z,q.end=Q,this.options.locations)q.loc.end=Y;if(this.options.ranges)q.range[1]=Q;return q}A2.finishNode=function(q,Z){return HU.call(this,q,Z,this.lastTokEnd,this.lastTokEndLoc)};A2.finishNodeAt=function(q,Z,Q,Y){return HU.call(this,q,Z,Q,Y)};A2.copyNode=function(q){var Z=new w2(this,q.start,this.startLoc);for(var Q in q)Z[Q]=q[Q];return Z};var $i="Berf Beria_Erfe Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sidetic Sidt Sunu Sunuwar Tai_Yo Tayo Todhri Todr Tolong_Siki Tols Tulu_Tigalari Tutg Unknown Zzzz",XU="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",GU=XU+" Extended_Pictographic",VU=GU,WU=VU+" EBase EComp EMod EPres ExtPict",$U=WU,Ui=$U,Ri={9:XU,10:GU,11:VU,12:WU,13:$U,14:Ui},zi="Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji",Bi={9:"",10:"",11:"",12:"",13:"",14:zi},p$="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",UU="Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",RU=UU+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",zU=RU+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",BU=zU+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",MU=BU+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",Mi=MU+" "+$i,Pi={9:UU,10:RU,11:zU,12:BU,13:MU,14:Mi},PU={};function Li(q){var Z=PU[q]={binary:D6(Ri[q]+" "+p$),binaryOfStrings:D6(Bi[q]),nonBinary:{General_Category:D6(p$),Script:D6(Pi[q])}};Z.nonBinary.Script_Extensions=Z.nonBinary.Script,Z.nonBinary.gc=Z.nonBinary.General_Category,Z.nonBinary.sc=Z.nonBinary.Script,Z.nonBinary.scx=Z.nonBinary.Script_Extensions}for(M2=0,K4=[9,10,11,12,13,14];M2<K4.length;M2+=1)KY=K4[M2],Li(KY);var KY,M2,K4,A8=O0.prototype,u4=function(Z,Q){this.parent=Z,this.base=Q||this};u4.prototype.separatedFrom=function(Z){for(var Q=this;Q;Q=Q.parent)for(var Y=Z;Y;Y=Y.parent)if(Q.base===Y.base&&Q!==Y)return!0;return!1};u4.prototype.sibling=function(){return new u4(this.parent,this.base)};var F9=function(Z){this.parser=Z,this.validFlags="gim"+(Z.options.ecmaVersion>=6?"uy":"")+(Z.options.ecmaVersion>=9?"s":"")+(Z.options.ecmaVersion>=13?"d":"")+(Z.options.ecmaVersion>=15?"v":""),this.unicodeProperties=PU[Z.options.ecmaVersion>=14?14:Z.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchV=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=Object.create(null),this.backReferenceNames=[],this.branchID=null};F9.prototype.reset=function(Z,Q,Y){var J=Y.indexOf("v")!==-1,H=Y.indexOf("u")!==-1;if(this.start=Z|0,this.source=Q+"",this.flags=Y,J&&this.parser.options.ecmaVersion>=15)this.switchU=!0,this.switchV=!0,this.switchN=!0;else this.switchU=H&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=H&&this.parser.options.ecmaVersion>=9};F9.prototype.raise=function(Z){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+Z)};F9.prototype.at=function(Z,Q){if(Q===void 0)Q=!1;var Y=this.source,J=Y.length;if(Z>=J)return-1;var H=Y.charCodeAt(Z);if(!(Q||this.switchU)||H<=55295||H>=57344||Z+1>=J)return H;var X=Y.charCodeAt(Z+1);return X>=56320&&X<=57343?(H<<10)+X-56613888:H};F9.prototype.nextIndex=function(Z,Q){if(Q===void 0)Q=!1;var Y=this.source,J=Y.length;if(Z>=J)return J;var H=Y.charCodeAt(Z),X;if(!(Q||this.switchU)||H<=55295||H>=57344||Z+1>=J||(X=Y.charCodeAt(Z+1))<56320||X>57343)return Z+1;return Z+2};F9.prototype.current=function(Z){if(Z===void 0)Z=!1;return this.at(this.pos,Z)};F9.prototype.lookahead=function(Z){if(Z===void 0)Z=!1;return this.at(this.nextIndex(this.pos,Z),Z)};F9.prototype.advance=function(Z){if(Z===void 0)Z=!1;this.pos=this.nextIndex(this.pos,Z)};F9.prototype.eat=function(Z,Q){if(Q===void 0)Q=!1;if(this.current(Q)===Z)return this.advance(Q),!0;return!1};F9.prototype.eatChars=function(Z,Q){if(Q===void 0)Q=!1;var Y=this.pos;for(var J=0,H=Z;J<H.length;J+=1){var X=H[J],G=this.at(Y,Q);if(G===-1||G!==X)return!1;Y=this.nextIndex(Y,Q)}return this.pos=Y,!0};A8.validateRegExpFlags=function(q){var{validFlags:Z,flags:Q}=q,Y=!1,J=!1;for(var H=0;H<Q.length;H++){var X=Q.charAt(H);if(Z.indexOf(X)===-1)this.raise(q.start,"Invalid regular expression flag");if(Q.indexOf(X,H+1)>-1)this.raise(q.start,"Duplicate regular expression flag");if(X==="u")Y=!0;if(X==="v")J=!0}if(this.options.ecmaVersion>=15&&Y&&J)this.raise(q.start,"Invalid regular expression flag")};function Oi(q){for(var Z in q)return!0;return!1}A8.validateRegExpPattern=function(q){if(this.regexp_pattern(q),!q.switchN&&this.options.ecmaVersion>=9&&Oi(q.groupNames))q.switchN=!0,this.regexp_pattern(q)};A8.regexp_pattern=function(q){if(q.pos=0,q.lastIntValue=0,q.lastStringValue="",q.lastAssertionIsQuantifiable=!1,q.numCapturingParens=0,q.maxBackReference=0,q.groupNames=Object.create(null),q.backReferenceNames.length=0,q.branchID=null,this.regexp_disjunction(q),q.pos!==q.source.length){if(q.eat(41))q.raise("Unmatched ')'");if(q.eat(93)||q.eat(125))q.raise("Lone quantifier brackets")}if(q.maxBackReference>q.numCapturingParens)q.raise("Invalid escape");for(var Z=0,Q=q.backReferenceNames;Z<Q.length;Z+=1){var Y=Q[Z];if(!q.groupNames[Y])q.raise("Invalid named capture referenced")}};A8.regexp_disjunction=function(q){var Z=this.options.ecmaVersion>=16;if(Z)q.branchID=new u4(q.branchID,null);this.regexp_alternative(q);while(q.eat(124)){if(Z)q.branchID=q.branchID.sibling();this.regexp_alternative(q)}if(Z)q.branchID=q.branchID.parent;if(this.regexp_eatQuantifier(q,!0))q.raise("Nothing to repeat");if(q.eat(123))q.raise("Lone quantifier brackets")};A8.regexp_alternative=function(q){while(q.pos<q.source.length&&this.regexp_eatTerm(q));};A8.regexp_eatTerm=function(q){if(this.regexp_eatAssertion(q)){if(q.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(q)){if(q.switchU)q.raise("Invalid quantifier")}return!0}if(q.switchU?this.regexp_eatAtom(q):this.regexp_eatExtendedAtom(q))return this.regexp_eatQuantifier(q),!0;return!1};A8.regexp_eatAssertion=function(q){var Z=q.pos;if(q.lastAssertionIsQuantifiable=!1,q.eat(94)||q.eat(36))return!0;if(q.eat(92)){if(q.eat(66)||q.eat(98))return!0;q.pos=Z}if(q.eat(40)&&q.eat(63)){var Q=!1;if(this.options.ecmaVersion>=9)Q=q.eat(60);if(q.eat(61)||q.eat(33)){if(this.regexp_disjunction(q),!q.eat(41))q.raise("Unterminated group");return q.lastAssertionIsQuantifiable=!Q,!0}}return q.pos=Z,!1};A8.regexp_eatQuantifier=function(q,Z){if(Z===void 0)Z=!1;if(this.regexp_eatQuantifierPrefix(q,Z))return q.eat(63),!0;return!1};A8.regexp_eatQuantifierPrefix=function(q,Z){return q.eat(42)||q.eat(43)||q.eat(63)||this.regexp_eatBracedQuantifier(q,Z)};A8.regexp_eatBracedQuantifier=function(q,Z){var Q=q.pos;if(q.eat(123)){var Y=0,J=-1;if(this.regexp_eatDecimalDigits(q)){if(Y=q.lastIntValue,q.eat(44)&&this.regexp_eatDecimalDigits(q))J=q.lastIntValue;if(q.eat(125)){if(J!==-1&&J<Y&&!Z)q.raise("numbers out of order in {} quantifier");return!0}}if(q.switchU&&!Z)q.raise("Incomplete quantifier");q.pos=Q}return!1};A8.regexp_eatAtom=function(q){return this.regexp_eatPatternCharacters(q)||q.eat(46)||this.regexp_eatReverseSolidusAtomEscape(q)||this.regexp_eatCharacterClass(q)||this.regexp_eatUncapturingGroup(q)||this.regexp_eatCapturingGroup(q)};A8.regexp_eatReverseSolidusAtomEscape=function(q){var Z=q.pos;if(q.eat(92)){if(this.regexp_eatAtomEscape(q))return!0;q.pos=Z}return!1};A8.regexp_eatUncapturingGroup=function(q){var Z=q.pos;if(q.eat(40)){if(q.eat(63)){if(this.options.ecmaVersion>=16){var Q=this.regexp_eatModifiers(q),Y=q.eat(45);if(Q||Y){for(var J=0;J<Q.length;J++){var H=Q.charAt(J);if(Q.indexOf(H,J+1)>-1)q.raise("Duplicate regular expression modifiers")}if(Y){var X=this.regexp_eatModifiers(q);if(!Q&&!X&&q.current()===58)q.raise("Invalid regular expression modifiers");for(var G=0;G<X.length;G++){var W=X.charAt(G);if(X.indexOf(W,G+1)>-1||Q.indexOf(W)>-1)q.raise("Duplicate regular expression modifiers")}}}}if(q.eat(58)){if(this.regexp_disjunction(q),q.eat(41))return!0;q.raise("Unterminated group")}}q.pos=Z}return!1};A8.regexp_eatCapturingGroup=function(q){if(q.eat(40)){if(this.options.ecmaVersion>=9)this.regexp_groupSpecifier(q);else if(q.current()===63)q.raise("Invalid group");if(this.regexp_disjunction(q),q.eat(41))return q.numCapturingParens+=1,!0;q.raise("Unterminated group")}return!1};A8.regexp_eatModifiers=function(q){var Z="",Q=0;while((Q=q.current())!==-1&&wi(Q))Z+=i9(Q),q.advance();return Z};function wi(q){return q===105||q===109||q===115}A8.regexp_eatExtendedAtom=function(q){return q.eat(46)||this.regexp_eatReverseSolidusAtomEscape(q)||this.regexp_eatCharacterClass(q)||this.regexp_eatUncapturingGroup(q)||this.regexp_eatCapturingGroup(q)||this.regexp_eatInvalidBracedQuantifier(q)||this.regexp_eatExtendedPatternCharacter(q)};A8.regexp_eatInvalidBracedQuantifier=function(q){if(this.regexp_eatBracedQuantifier(q,!0))q.raise("Nothing to repeat");return!1};A8.regexp_eatSyntaxCharacter=function(q){var Z=q.current();if(LU(Z))return q.lastIntValue=Z,q.advance(),!0;return!1};function LU(q){return q===36||q>=40&&q<=43||q===46||q===63||q>=91&&q<=94||q>=123&&q<=125}A8.regexp_eatPatternCharacters=function(q){var Z=q.pos,Q=0;while((Q=q.current())!==-1&&!LU(Q))q.advance();return q.pos!==Z};A8.regexp_eatExtendedPatternCharacter=function(q){var Z=q.current();if(Z!==-1&&Z!==36&&!(Z>=40&&Z<=43)&&Z!==46&&Z!==63&&Z!==91&&Z!==94&&Z!==124)return q.advance(),!0;return!1};A8.regexp_groupSpecifier=function(q){if(q.eat(63)){if(!this.regexp_eatGroupName(q))q.raise("Invalid group");var Z=this.options.ecmaVersion>=16,Q=q.groupNames[q.lastStringValue];if(Q)if(Z)for(var Y=0,J=Q;Y<J.length;Y+=1){var H=J[Y];if(!H.separatedFrom(q.branchID))q.raise("Duplicate capture group name")}else q.raise("Duplicate capture group name");if(Z)(Q||(q.groupNames[q.lastStringValue]=[])).push(q.branchID);else q.groupNames[q.lastStringValue]=!0}};A8.regexp_eatGroupName=function(q){if(q.lastStringValue="",q.eat(60)){if(this.regexp_eatRegExpIdentifierName(q)&&q.eat(62))return!0;q.raise("Invalid capture group name")}return!1};A8.regexp_eatRegExpIdentifierName=function(q){if(q.lastStringValue="",this.regexp_eatRegExpIdentifierStart(q)){q.lastStringValue+=i9(q.lastIntValue);while(this.regexp_eatRegExpIdentifierPart(q))q.lastStringValue+=i9(q.lastIntValue);return!0}return!1};A8.regexp_eatRegExpIdentifierStart=function(q){var Z=q.pos,Q=this.options.ecmaVersion>=11,Y=q.current(Q);if(q.advance(Q),Y===92&&this.regexp_eatRegExpUnicodeEscapeSequence(q,Q))Y=q.lastIntValue;if(Ai(Y))return q.lastIntValue=Y,!0;return q.pos=Z,!1};function Ai(q){return F1(q,!0)||q===36||q===95}A8.regexp_eatRegExpIdentifierPart=function(q){var Z=q.pos,Q=this.options.ecmaVersion>=11,Y=q.current(Q);if(q.advance(Q),Y===92&&this.regexp_eatRegExpUnicodeEscapeSequence(q,Q))Y=q.lastIntValue;if(ji(Y))return q.lastIntValue=Y,!0;return q.pos=Z,!1};function ji(q){return H9(q,!0)||q===36||q===95||q===8204||q===8205}A8.regexp_eatAtomEscape=function(q){if(this.regexp_eatBackReference(q)||this.regexp_eatCharacterClassEscape(q)||this.regexp_eatCharacterEscape(q)||q.switchN&&this.regexp_eatKGroupName(q))return!0;if(q.switchU){if(q.current()===99)q.raise("Invalid unicode escape");q.raise("Invalid escape")}return!1};A8.regexp_eatBackReference=function(q){var Z=q.pos;if(this.regexp_eatDecimalEscape(q)){var Q=q.lastIntValue;if(q.switchU){if(Q>q.maxBackReference)q.maxBackReference=Q;return!0}if(Q<=q.numCapturingParens)return!0;q.pos=Z}return!1};A8.regexp_eatKGroupName=function(q){if(q.eat(107)){if(this.regexp_eatGroupName(q))return q.backReferenceNames.push(q.lastStringValue),!0;q.raise("Invalid named reference")}return!1};A8.regexp_eatCharacterEscape=function(q){return this.regexp_eatControlEscape(q)||this.regexp_eatCControlLetter(q)||this.regexp_eatZero(q)||this.regexp_eatHexEscapeSequence(q)||this.regexp_eatRegExpUnicodeEscapeSequence(q,!1)||!q.switchU&&this.regexp_eatLegacyOctalEscapeSequence(q)||this.regexp_eatIdentityEscape(q)};A8.regexp_eatCControlLetter=function(q){var Z=q.pos;if(q.eat(99)){if(this.regexp_eatControlLetter(q))return!0;q.pos=Z}return!1};A8.regexp_eatZero=function(q){if(q.current()===48&&!g4(q.lookahead()))return q.lastIntValue=0,q.advance(),!0;return!1};A8.regexp_eatControlEscape=function(q){var Z=q.current();if(Z===116)return q.lastIntValue=9,q.advance(),!0;if(Z===110)return q.lastIntValue=10,q.advance(),!0;if(Z===118)return q.lastIntValue=11,q.advance(),!0;if(Z===102)return q.lastIntValue=12,q.advance(),!0;if(Z===114)return q.lastIntValue=13,q.advance(),!0;return!1};A8.regexp_eatControlLetter=function(q){var Z=q.current();if(OU(Z))return q.lastIntValue=Z%32,q.advance(),!0;return!1};function OU(q){return q>=65&&q<=90||q>=97&&q<=122}A8.regexp_eatRegExpUnicodeEscapeSequence=function(q,Z){if(Z===void 0)Z=!1;var Q=q.pos,Y=Z||q.switchU;if(q.eat(117)){if(this.regexp_eatFixedHexDigits(q,4)){var J=q.lastIntValue;if(Y&&J>=55296&&J<=56319){var H=q.pos;if(q.eat(92)&&q.eat(117)&&this.regexp_eatFixedHexDigits(q,4)){var X=q.lastIntValue;if(X>=56320&&X<=57343)return q.lastIntValue=(J-55296)*1024+(X-56320)+65536,!0}q.pos=H,q.lastIntValue=J}return!0}if(Y&&q.eat(123)&&this.regexp_eatHexDigits(q)&&q.eat(125)&&Ii(q.lastIntValue))return!0;if(Y)q.raise("Invalid unicode escape");q.pos=Q}return!1};function Ii(q){return q>=0&&q<=1114111}A8.regexp_eatIdentityEscape=function(q){if(q.switchU){if(this.regexp_eatSyntaxCharacter(q))return!0;if(q.eat(47))return q.lastIntValue=47,!0;return!1}var Z=q.current();if(Z!==99&&(!q.switchN||Z!==107))return q.lastIntValue=Z,q.advance(),!0;return!1};A8.regexp_eatDecimalEscape=function(q){q.lastIntValue=0;var Z=q.current();if(Z>=49&&Z<=57){do q.lastIntValue=10*q.lastIntValue+(Z-48),q.advance();while((Z=q.current())>=48&&Z<=57);return!0}return!1};var wU=0,d9=1,x1=2;A8.regexp_eatCharacterClassEscape=function(q){var Z=q.current();if(Di(Z))return q.lastIntValue=-1,q.advance(),d9;var Q=!1;if(q.switchU&&this.options.ecmaVersion>=9&&((Q=Z===80)||Z===112)){q.lastIntValue=-1,q.advance();var Y;if(q.eat(123)&&(Y=this.regexp_eatUnicodePropertyValueExpression(q))&&q.eat(125)){if(Q&&Y===x1)q.raise("Invalid property name");return Y}q.raise("Invalid property name")}return wU};function Di(q){return q===100||q===68||q===115||q===83||q===119||q===87}A8.regexp_eatUnicodePropertyValueExpression=function(q){var Z=q.pos;if(this.regexp_eatUnicodePropertyName(q)&&q.eat(61)){var Q=q.lastStringValue;if(this.regexp_eatUnicodePropertyValue(q)){var Y=q.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(q,Q,Y),d9}}if(q.pos=Z,this.regexp_eatLoneUnicodePropertyNameOrValue(q)){var J=q.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(q,J)}return wU};A8.regexp_validateUnicodePropertyNameAndValue=function(q,Z,Q){if(!X5(q.unicodeProperties.nonBinary,Z))q.raise("Invalid property name");if(!q.unicodeProperties.nonBinary[Z].test(Q))q.raise("Invalid property value")};A8.regexp_validateUnicodePropertyNameOrValue=function(q,Z){if(q.unicodeProperties.binary.test(Z))return d9;if(q.switchV&&q.unicodeProperties.binaryOfStrings.test(Z))return x1;q.raise("Invalid property name")};A8.regexp_eatUnicodePropertyName=function(q){var Z=0;q.lastStringValue="";while(AU(Z=q.current()))q.lastStringValue+=i9(Z),q.advance();return q.lastStringValue!==""};function AU(q){return OU(q)||q===95}A8.regexp_eatUnicodePropertyValue=function(q){var Z=0;q.lastStringValue="";while(Ci(Z=q.current()))q.lastStringValue+=i9(Z),q.advance();return q.lastStringValue!==""};function Ci(q){return AU(q)||g4(q)}A8.regexp_eatLoneUnicodePropertyNameOrValue=function(q){return this.regexp_eatUnicodePropertyValue(q)};A8.regexp_eatCharacterClass=function(q){if(q.eat(91)){var Z=q.eat(94),Q=this.regexp_classContents(q);if(!q.eat(93))q.raise("Unterminated character class");if(Z&&Q===x1)q.raise("Negated character class may contain strings");return!0}return!1};A8.regexp_classContents=function(q){if(q.current()===93)return d9;if(q.switchV)return this.regexp_classSetExpression(q);return this.regexp_nonEmptyClassRanges(q),d9};A8.regexp_nonEmptyClassRanges=function(q){while(this.regexp_eatClassAtom(q)){var Z=q.lastIntValue;if(q.eat(45)&&this.regexp_eatClassAtom(q)){var Q=q.lastIntValue;if(q.switchU&&(Z===-1||Q===-1))q.raise("Invalid character class");if(Z!==-1&&Q!==-1&&Z>Q)q.raise("Range out of order in character class")}}};A8.regexp_eatClassAtom=function(q){var Z=q.pos;if(q.eat(92)){if(this.regexp_eatClassEscape(q))return!0;if(q.switchU){var Q=q.current();if(Q===99||DU(Q))q.raise("Invalid class escape");q.raise("Invalid escape")}q.pos=Z}var Y=q.current();if(Y!==93)return q.lastIntValue=Y,q.advance(),!0;return!1};A8.regexp_eatClassEscape=function(q){var Z=q.pos;if(q.eat(98))return q.lastIntValue=8,!0;if(q.switchU&&q.eat(45))return q.lastIntValue=45,!0;if(!q.switchU&&q.eat(99)){if(this.regexp_eatClassControlLetter(q))return!0;q.pos=Z}return this.regexp_eatCharacterClassEscape(q)||this.regexp_eatCharacterEscape(q)};A8.regexp_classSetExpression=function(q){var Z=d9,Q;if(this.regexp_eatClassSetRange(q));else if(Q=this.regexp_eatClassSetOperand(q)){if(Q===x1)Z=x1;var Y=q.pos;while(q.eatChars([38,38])){if(q.current()!==38&&(Q=this.regexp_eatClassSetOperand(q))){if(Q!==x1)Z=d9;continue}q.raise("Invalid character in character class")}if(Y!==q.pos)return Z;while(q.eatChars([45,45])){if(this.regexp_eatClassSetOperand(q))continue;q.raise("Invalid character in character class")}if(Y!==q.pos)return Z}else q.raise("Invalid character in character class");for(;;){if(this.regexp_eatClassSetRange(q))continue;if(Q=this.regexp_eatClassSetOperand(q),!Q)return Z;if(Q===x1)Z=x1}};A8.regexp_eatClassSetRange=function(q){var Z=q.pos;if(this.regexp_eatClassSetCharacter(q)){var Q=q.lastIntValue;if(q.eat(45)&&this.regexp_eatClassSetCharacter(q)){var Y=q.lastIntValue;if(Q!==-1&&Y!==-1&&Q>Y)q.raise("Range out of order in character class");return!0}q.pos=Z}return!1};A8.regexp_eatClassSetOperand=function(q){if(this.regexp_eatClassSetCharacter(q))return d9;return this.regexp_eatClassStringDisjunction(q)||this.regexp_eatNestedClass(q)};A8.regexp_eatNestedClass=function(q){var Z=q.pos;if(q.eat(91)){var Q=q.eat(94),Y=this.regexp_classContents(q);if(q.eat(93)){if(Q&&Y===x1)q.raise("Negated character class may contain strings");return Y}q.pos=Z}if(q.eat(92)){var J=this.regexp_eatCharacterClassEscape(q);if(J)return J;q.pos=Z}return null};A8.regexp_eatClassStringDisjunction=function(q){var Z=q.pos;if(q.eatChars([92,113])){if(q.eat(123)){var Q=this.regexp_classStringDisjunctionContents(q);if(q.eat(125))return Q}else q.raise("Invalid escape");q.pos=Z}return null};A8.regexp_classStringDisjunctionContents=function(q){var Z=this.regexp_classString(q);while(q.eat(124))if(this.regexp_classString(q)===x1)Z=x1;return Z};A8.regexp_classString=function(q){var Z=0;while(this.regexp_eatClassSetCharacter(q))Z++;return Z===1?d9:x1};A8.regexp_eatClassSetCharacter=function(q){var Z=q.pos;if(q.eat(92)){if(this.regexp_eatCharacterEscape(q)||this.regexp_eatClassSetReservedPunctuator(q))return!0;if(q.eat(98))return q.lastIntValue=8,!0;return q.pos=Z,!1}var Q=q.current();if(Q<0||Q===q.lookahead()&&Ei(Q))return!1;if(Fi(Q))return!1;return q.advance(),q.lastIntValue=Q,!0};function Ei(q){return q===33||q>=35&&q<=38||q>=42&&q<=44||q===46||q>=58&&q<=64||q===94||q===96||q===126}function Fi(q){return q===40||q===41||q===45||q===47||q>=91&&q<=93||q>=123&&q<=125}A8.regexp_eatClassSetReservedPunctuator=function(q){var Z=q.current();if(Ti(Z))return q.lastIntValue=Z,q.advance(),!0;return!1};function Ti(q){return q===33||q===35||q===37||q===38||q===44||q===45||q>=58&&q<=62||q===64||q===96||q===126}A8.regexp_eatClassControlLetter=function(q){var Z=q.current();if(g4(Z)||Z===95)return q.lastIntValue=Z%32,q.advance(),!0;return!1};A8.regexp_eatHexEscapeSequence=function(q){var Z=q.pos;if(q.eat(120)){if(this.regexp_eatFixedHexDigits(q,2))return!0;if(q.switchU)q.raise("Invalid escape");q.pos=Z}return!1};A8.regexp_eatDecimalDigits=function(q){var Z=q.pos,Q=0;q.lastIntValue=0;while(g4(Q=q.current()))q.lastIntValue=10*q.lastIntValue+(Q-48),q.advance();return q.pos!==Z};function g4(q){return q>=48&&q<=57}A8.regexp_eatHexDigits=function(q){var Z=q.pos,Q=0;q.lastIntValue=0;while(jU(Q=q.current()))q.lastIntValue=16*q.lastIntValue+IU(Q),q.advance();return q.pos!==Z};function jU(q){return q>=48&&q<=57||q>=65&&q<=70||q>=97&&q<=102}function IU(q){if(q>=65&&q<=70)return 10+(q-65);if(q>=97&&q<=102)return 10+(q-97);return q-48}A8.regexp_eatLegacyOctalEscapeSequence=function(q){if(this.regexp_eatOctalDigit(q)){var Z=q.lastIntValue;if(this.regexp_eatOctalDigit(q)){var Q=q.lastIntValue;if(Z<=3&&this.regexp_eatOctalDigit(q))q.lastIntValue=Z*64+Q*8+q.lastIntValue;else q.lastIntValue=Z*8+Q}else q.lastIntValue=Z;return!0}return!1};A8.regexp_eatOctalDigit=function(q){var Z=q.current();if(DU(Z))return q.lastIntValue=Z-48,q.advance(),!0;return q.lastIntValue=0,!1};function DU(q){return q>=48&&q<=55}A8.regexp_eatFixedHexDigits=function(q,Z){var Q=q.pos;q.lastIntValue=0;for(var Y=0;Y<Z;++Y){var J=q.current();if(!jU(J))return q.pos=Q,!1;q.lastIntValue=16*q.lastIntValue+IU(J),q.advance()}return!0};var l4=function(Z){if(this.type=Z.type,this.value=Z.value,this.start=Z.start,this.end=Z.end,Z.options.locations)this.loc=new L2(Z,Z.startLoc,Z.endLoc);if(Z.options.ranges)this.range=[Z.start,Z.end]},o8=O0.prototype;o8.next=function(q){if(!q&&this.type.keyword&&this.containsEsc)this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword);if(this.options.onToken)this.options.onToken(new l4(this));this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()};o8.getToken=function(){return this.next(),new l4(this)};if(typeof Symbol<"u")o8[Symbol.iterator]=function(){var q=this;return{next:function(){var Z=q.getToken();return{done:Z.type===K.eof,value:Z}}}};o8.nextToken=function(){var q=this.curContext();if(!q||!q.preserveSpace)this.skipSpace();if(this.start=this.pos,this.options.locations)this.startLoc=this.curPosition();if(this.pos>=this.input.length)return this.finishToken(K.eof);if(q.override)return q.override(this);else this.readToken(this.fullCharCodeAtPos())};o8.readToken=function(q){if(F1(q,this.options.ecmaVersion>=6)||q===92)return this.readWord();return this.getTokenFromCode(q)};o8.fullCharCodeAt=function(q){var Z=this.input.charCodeAt(q);if(Z<=55295||Z>=56320)return Z;var Q=this.input.charCodeAt(q+1);return Q<=56319||Q>=57344?Z:(Z<<10)+Q-56613888};o8.fullCharCodeAtPos=function(){return this.fullCharCodeAt(this.pos)};o8.skipBlockComment=function(){var q=this.options.onComment&&this.curPosition(),Z=this.pos,Q=this.input.indexOf("*/",this.pos+=2);if(Q===-1)this.raise(this.pos-2,"Unterminated comment");if(this.pos=Q+2,this.options.locations)for(var Y=void 0,J=Z;(Y=s$(this.input,J,this.pos))>-1;)++this.curLine,J=this.lineStart=Y;if(this.options.onComment)this.options.onComment(!0,this.input.slice(Z+2,Q),Z,this.pos,q,this.curPosition())};o8.skipLineComment=function(q){var Z=this.pos,Q=this.options.onComment&&this.curPosition(),Y=this.input.charCodeAt(this.pos+=q);while(this.pos<this.input.length&&!W7(Y))Y=this.input.charCodeAt(++this.pos);if(this.options.onComment)this.options.onComment(!1,this.input.slice(Z+q,this.pos),Z,this.pos,Q,this.curPosition())};o8.skipSpace=function(){q:while(this.pos<this.input.length){var q=this.input.charCodeAt(this.pos);switch(q){case 32:case 160:++this.pos;break;case 13:if(this.input.charCodeAt(this.pos+1)===10)++this.pos;case 10:case 8232:case 8233:if(++this.pos,this.options.locations)++this.curLine,this.lineStart=this.pos;break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break q}break;default:if(q>8&&q<14||q>=5760&&vY.test(String.fromCharCode(q)))++this.pos;else break q}}};o8.finishToken=function(q,Z){if(this.end=this.pos,this.options.locations)this.endLoc=this.curPosition();var Q=this.type;this.type=q,this.value=Z,this.updateContext(Q)};o8.readToken_dot=function(){var q=this.input.charCodeAt(this.pos+1);if(q>=48&&q<=57)return this.readNumber(!0);var Z=this.input.charCodeAt(this.pos+2);if(this.options.ecmaVersion>=6&&q===46&&Z===46)return this.pos+=3,this.finishToken(K.ellipsis);else return++this.pos,this.finishToken(K.dot)};o8.readToken_slash=function(){var q=this.input.charCodeAt(this.pos+1);if(this.exprAllowed)return++this.pos,this.readRegexp();if(q===61)return this.finishOp(K.assign,2);return this.finishOp(K.slash,1)};o8.readToken_mult_modulo_exp=function(q){var Z=this.input.charCodeAt(this.pos+1),Q=1,Y=q===42?K.star:K.modulo;if(this.options.ecmaVersion>=7&&q===42&&Z===42)++Q,Y=K.starstar,Z=this.input.charCodeAt(this.pos+2);if(Z===61)return this.finishOp(K.assign,Q+1);return this.finishOp(Y,Q)};o8.readToken_pipe_amp=function(q){var Z=this.input.charCodeAt(this.pos+1);if(Z===q){if(this.options.ecmaVersion>=12){var Q=this.input.charCodeAt(this.pos+2);if(Q===61)return this.finishOp(K.assign,3)}return this.finishOp(q===124?K.logicalOR:K.logicalAND,2)}if(Z===61)return this.finishOp(K.assign,2);return this.finishOp(q===124?K.bitwiseOR:K.bitwiseAND,1)};o8.readToken_caret=function(){var q=this.input.charCodeAt(this.pos+1);if(q===61)return this.finishOp(K.assign,2);return this.finishOp(K.bitwiseXOR,1)};o8.readToken_plus_min=function(q){var Z=this.input.charCodeAt(this.pos+1);if(Z===q){if(Z===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||z1.test(this.input.slice(this.lastTokEnd,this.pos))))return this.skipLineComment(3),this.skipSpace(),this.nextToken();return this.finishOp(K.incDec,2)}if(Z===61)return this.finishOp(K.assign,2);return this.finishOp(K.plusMin,1)};o8.readToken_lt_gt=function(q){var Z=this.input.charCodeAt(this.pos+1),Q=1;if(Z===q){if(Q=q===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+Q)===61)return this.finishOp(K.assign,Q+1);return this.finishOp(K.bitShift,Q)}if(Z===33&&q===60&&!this.inModule&&this.input.charCodeAt(this.pos+2)===45&&this.input.charCodeAt(this.pos+3)===45)return this.skipLineComment(4),this.skipSpace(),this.nextToken();if(Z===61)Q=2;return this.finishOp(K.relational,Q)};o8.readToken_eq_excl=function(q){var Z=this.input.charCodeAt(this.pos+1);if(Z===61)return this.finishOp(K.equality,this.input.charCodeAt(this.pos+2)===61?3:2);if(q===61&&Z===62&&this.options.ecmaVersion>=6)return this.pos+=2,this.finishToken(K.arrow);return this.finishOp(q===61?K.eq:K.prefix,1)};o8.readToken_question=function(){var q=this.options.ecmaVersion;if(q>=11){var Z=this.input.charCodeAt(this.pos+1);if(Z===46){var Q=this.input.charCodeAt(this.pos+2);if(Q<48||Q>57)return this.finishOp(K.questionDot,2)}if(Z===63){if(q>=12){var Y=this.input.charCodeAt(this.pos+2);if(Y===61)return this.finishOp(K.assign,3)}return this.finishOp(K.coalesce,2)}}return this.finishOp(K.question,1)};o8.readToken_numberSign=function(){var q=this.options.ecmaVersion,Z=35;if(q>=13){if(++this.pos,Z=this.fullCharCodeAtPos(),F1(Z,!0)||Z===92)return this.finishToken(K.privateId,this.readWord1())}this.raise(this.pos,"Unexpected character '"+i9(Z)+"'")};o8.getTokenFromCode=function(q){switch(q){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(K.parenL);case 41:return++this.pos,this.finishToken(K.parenR);case 59:return++this.pos,this.finishToken(K.semi);case 44:return++this.pos,this.finishToken(K.comma);case 91:return++this.pos,this.finishToken(K.bracketL);case 93:return++this.pos,this.finishToken(K.bracketR);case 123:return++this.pos,this.finishToken(K.braceL);case 125:return++this.pos,this.finishToken(K.braceR);case 58:return++this.pos,this.finishToken(K.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(K.backQuote);case 48:var Z=this.input.charCodeAt(this.pos+1);if(Z===120||Z===88)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(Z===111||Z===79)return this.readRadixNumber(8);if(Z===98||Z===66)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(q);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(q);case 124:case 38:return this.readToken_pipe_amp(q);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(q);case 60:case 62:return this.readToken_lt_gt(q);case 61:case 33:return this.readToken_eq_excl(q);case 63:return this.readToken_question();case 126:return this.finishOp(K.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+i9(q)+"'")};o8.finishOp=function(q,Z){var Q=this.input.slice(this.pos,this.pos+Z);return this.pos+=Z,this.finishToken(q,Q)};o8.readRegexp=function(){var q,Z,Q=this.pos;for(;;){if(this.pos>=this.input.length)this.raise(Q,"Unterminated regular expression");var Y=this.input.charAt(this.pos);if(z1.test(Y))this.raise(Q,"Unterminated regular expression");if(!q){if(Y==="[")Z=!0;else if(Y==="]"&&Z)Z=!1;else if(Y==="/"&&!Z)break;q=Y==="\\"}else q=!1;++this.pos}var J=this.input.slice(Q,this.pos);++this.pos;var H=this.pos,X=this.readWord1();if(this.containsEsc)this.unexpected(H);var G=this.regexpState||(this.regexpState=new F9(this));G.reset(Q,J,X),this.validateRegExpFlags(G),this.validateRegExpPattern(G);var W=null;try{W=new RegExp(J,X)}catch(R){}return this.finishToken(K.regexp,{pattern:J,flags:X,value:W})};o8.readInt=function(q,Z,Q){var Y=this.options.ecmaVersion>=12&&Z===void 0,J=Q&&this.input.charCodeAt(this.pos)===48,H=this.pos,X=0,G=0;for(var W=0,R=Z==null?1/0:Z;W<R;++W,++this.pos){var B=this.input.charCodeAt(this.pos),M=void 0;if(Y&&B===95){if(J)this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals");if(G===95)this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore");if(W===0)this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits");G=B;continue}if(B>=97)M=B-97+10;else if(B>=65)M=B-65+10;else if(B>=48&&B<=57)M=B-48;else M=1/0;if(M>=q)break;G=B,X=X*q+M}if(Y&&G===95)this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits");if(this.pos===H||Z!=null&&this.pos-H!==Z)return null;return X};function fi(q,Z){if(Z)return parseInt(q,8);return parseFloat(q.replace(/_/g,""))}function CU(q){if(typeof BigInt!=="function")return null;return BigInt(q.replace(/_/g,""))}o8.readRadixNumber=function(q){var Z=this.pos;this.pos+=2;var Q=this.readInt(q);if(Q==null)this.raise(this.start+2,"Expected number in radix "+q);if(this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110)Q=CU(this.input.slice(Z,this.pos)),++this.pos;else if(F1(this.fullCharCodeAtPos()))this.raise(this.pos,"Identifier directly after number");return this.finishToken(K.num,Q)};o8.readNumber=function(q){var Z=this.pos;if(!q&&this.readInt(10,void 0,!0)===null)this.raise(Z,"Invalid number");var Q=this.pos-Z>=2&&this.input.charCodeAt(Z)===48;if(Q&&this.strict)this.raise(Z,"Invalid number");var Y=this.input.charCodeAt(this.pos);if(!Q&&!q&&this.options.ecmaVersion>=11&&Y===110){var J=CU(this.input.slice(Z,this.pos));if(++this.pos,F1(this.fullCharCodeAtPos()))this.raise(this.pos,"Identifier directly after number");return this.finishToken(K.num,J)}if(Q&&/[89]/.test(this.input.slice(Z,this.pos)))Q=!1;if(Y===46&&!Q)++this.pos,this.readInt(10),Y=this.input.charCodeAt(this.pos);if((Y===69||Y===101)&&!Q){if(Y=this.input.charCodeAt(++this.pos),Y===43||Y===45)++this.pos;if(this.readInt(10)===null)this.raise(Z,"Invalid number")}if(F1(this.fullCharCodeAtPos()))this.raise(this.pos,"Identifier directly after number");var H=fi(this.input.slice(Z,this.pos),Q);return this.finishToken(K.num,H)};o8.readCodePoint=function(){var q=this.input.charCodeAt(this.pos),Z;if(q===123){if(this.options.ecmaVersion<6)this.unexpected();var Q=++this.pos;if(Z=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,Z>1114111)this.invalidStringToken(Q,"Code point out of bounds")}else Z=this.readHexChar(4);return Z};o8.readString=function(q){var Z="",Q=++this.pos;for(;;){if(this.pos>=this.input.length)this.raise(this.start,"Unterminated string constant");var Y=this.input.charCodeAt(this.pos);if(Y===q)break;if(Y===92)Z+=this.input.slice(Q,this.pos),Z+=this.readEscapedChar(!1),Q=this.pos;else if(Y===8232||Y===8233){if(this.options.ecmaVersion<10)this.raise(this.start,"Unterminated string constant");if(++this.pos,this.options.locations)this.curLine++,this.lineStart=this.pos}else{if(W7(Y))this.raise(this.start,"Unterminated string constant");++this.pos}}return Z+=this.input.slice(Q,this.pos++),this.finishToken(K.string,Z)};var EU={};o8.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(q){if(q===EU)this.readInvalidTemplateToken();else throw q}this.inTemplateElement=!1};o8.invalidStringToken=function(q,Z){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw EU;else this.raise(q,Z)};o8.readTmplToken=function(){var q="",Z=this.pos;for(;;){if(this.pos>=this.input.length)this.raise(this.start,"Unterminated template");var Q=this.input.charCodeAt(this.pos);if(Q===96||Q===36&&this.input.charCodeAt(this.pos+1)===123){if(this.pos===this.start&&(this.type===K.template||this.type===K.invalidTemplate))if(Q===36)return this.pos+=2,this.finishToken(K.dollarBraceL);else return++this.pos,this.finishToken(K.backQuote);return q+=this.input.slice(Z,this.pos),this.finishToken(K.template,q)}if(Q===92)q+=this.input.slice(Z,this.pos),q+=this.readEscapedChar(!0),Z=this.pos;else if(W7(Q)){switch(q+=this.input.slice(Z,this.pos),++this.pos,Q){case 13:if(this.input.charCodeAt(this.pos)===10)++this.pos;case 10:q+=`
|
|
105
|
-
`;break;default:q+=String.fromCharCode(Q);break}if(this.options.locations)++this.curLine,this.lineStart=this.pos;Z=this.pos}else++this.pos}};o8.readInvalidTemplateToken=function(){for(;this.pos<this.input.length;this.pos++)switch(this.input[this.pos]){case"\\":++this.pos;break;case"$":if(this.input[this.pos+1]!=="{")break;case"`":return this.finishToken(K.invalidTemplate,this.input.slice(this.start,this.pos));case"\r":if(this.input[this.pos+1]===`
|
|
106
|
-
`)++this.pos;case`
|
|
107
|
-
`:case"\u2028":case"\u2029":++this.curLine,this.lineStart=this.pos+1;break}this.raise(this.start,"Unterminated template")};o8.readEscapedChar=function(q){var Z=this.input.charCodeAt(++this.pos);switch(++this.pos,Z){case 110:return`
|
|
108
|
-
`;case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return i9(this.readCodePoint());case 116:return"\t";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:if(this.input.charCodeAt(this.pos)===10)++this.pos;case 10:if(this.options.locations)this.lineStart=this.pos,++this.curLine;return"";case 56:case 57:if(this.strict)this.invalidStringToken(this.pos-1,"Invalid escape sequence");if(q){var Q=this.pos-1;this.invalidStringToken(Q,"Invalid escape sequence in template string")}default:if(Z>=48&&Z<=55){var Y=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],J=parseInt(Y,8);if(J>255)Y=Y.slice(0,-1),J=parseInt(Y,8);if(this.pos+=Y.length-1,Z=this.input.charCodeAt(this.pos),(Y!=="0"||Z===56||Z===57)&&(this.strict||q))this.invalidStringToken(this.pos-1-Y.length,q?"Octal literal in template string":"Octal literal in strict mode");return String.fromCharCode(J)}if(W7(Z)){if(this.options.locations)this.lineStart=this.pos,++this.curLine;return""}return String.fromCharCode(Z)}};o8.readHexChar=function(q){var Z=this.pos,Q=this.readInt(16,q);if(Q===null)this.invalidStringToken(Z,"Bad character escape sequence");return Q};o8.readWord1=function(){this.containsEsc=!1;var q="",Z=!0,Q=this.pos,Y=this.options.ecmaVersion>=6;while(this.pos<this.input.length){var J=this.fullCharCodeAtPos();if(H9(J,Y))this.pos+=J<=65535?1:2;else if(J===92){this.containsEsc=!0,q+=this.input.slice(Q,this.pos);var H=this.pos;if(this.input.charCodeAt(++this.pos)!==117)this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX");++this.pos;var X=this.readCodePoint();if(!(Z?F1:H9)(X,Y))this.invalidStringToken(H,"Invalid Unicode escape");q+=i9(X),Q=this.pos}else break;Z=!1}return q+this.input.slice(Q,this.pos)};o8.readWord=function(){var q=this.readWord1(),Z=K.name;if(this.keywords.test(q))Z=b4[q];return this.finishToken(Z,q)};var FU="8.17.0";O0.acorn={Parser:O0,version:FU,defaultOptions:v4,Position:H5,SourceLocation:L2,getLineInfo:NY,Node:w2,TokenType:Y0,tokTypes:K,keywordTypes:b4,TokContext:l1,tokContexts:P0,isIdentifierChar:H9,isIdentifierStart:F1,Token:l4,isNewLine:W7,lineBreak:z1,lineBreakG:d$,nonASCIIwhitespace:vY};function yY(q,Z){return O0.parse(q,Z)}function Ki(q,Z,Q){return O0.parseExpressionAt(q,Z,Q)}function vi(q,Z){return O0.tokenizer(q,Z)}var T1=!0,Ni=new WeakMap;function ki(q){let Z=q.Parser.acorn||q,Q=Ni.get(Z);if(!Q){let G=function(v){return v===$.name||v===$.string||v===$.num||w.includes(v)||C.includes(v)},W=function(v){return v===$.name||w.includes(v)||C.includes(v)},R=function(v){return v===$.name||C.includes(v)},B=function(v){return v===I.abstract||v===I.declare||v===I.enum||v===I.module||v===I.namespace||v===I.interface||v===I.type},M=function(v){return v===I.keyof||v===I.readonly||v===I.unique},V=function(v){return v===$.invalidTemplate},{tokTypes:$,keywordTypes:O}=Z,w=Object.values(O),I=X(),C=Object.values(I),E=H(),D=J(),f=new RegExp(`^(?:${Object.keys(I).join("|")})$`);E.jsxTagStart.updateContext=function(){this.context.push(D.tc_expr),this.context.push(D.tc_oTag),this.exprAllowed=!1},E.jsxTagEnd.updateContext=function(v){let _=this.context.pop();if(_===D.tc_oTag&&v===$.slash||_===D.tc_cTag)this.context.pop(),this.exprAllowed=this.curContext()===D.tc_expr;else this.exprAllowed=!0},Q={tokTypes:{...I,...E},tokContexts:{...D},keywordsRegExp:f,tokenIsLiteralPropertyName:G,tokenIsKeywordOrIdentifier:W,tokenIsIdentifier:R,tokenIsTSDeclarationStart:B,tokenIsTSTypeOperator:M,tokenIsTemplate:V}}return Q;function Y(G,W={}){return new Z.TokenType("name",W)}function J(){return{tc_oTag:new Z.TokContext("<tag",!1,!1),tc_cTag:new Z.TokContext("</tag",!1,!1),tc_expr:new Z.TokContext("<tag>...</tag>",!0,!0)}}function H(){return{at:new Z.TokenType("@"),jsxName:new Z.TokenType("jsxName"),jsxText:new Z.TokenType("jsxText",{beforeExpr:!0}),jsxTagStart:new Z.TokenType("jsxTagStart",{startsExpr:!0}),jsxTagEnd:new Z.TokenType("jsxTagEnd")}}function X(){return{assert:Y("assert",{startsExpr:T1}),asserts:Y("asserts",{startsExpr:T1}),global:Y("global",{startsExpr:T1}),keyof:Y("keyof",{startsExpr:T1}),readonly:Y("readonly",{startsExpr:T1}),unique:Y("unique",{startsExpr:T1}),abstract:Y("abstract",{startsExpr:T1}),declare:Y("declare",{startsExpr:T1}),enum:Y("enum",{startsExpr:T1}),module:Y("module",{startsExpr:T1}),namespace:Y("namespace",{startsExpr:T1}),interface:Y("interface",{startsExpr:T1}),type:Y("type",{startsExpr:T1})}}}var Si=512,j2=1024,V5=1,c4=2,ui=4,lY=8,bi=16,kU=64,SU=128,hi=256,yi=512,uU=1024,_z8=V5|c4|lY|SU,gz8=V5|0|lY|0,lz8=V5|0|ui|0,xz8=V5|0|bi|0,mz8=0|c4|0|SU,pz8=0|c4|0|0,_i=V5|c4|lY|hi,cz8=0|uU,rz8=0|kU,iz8=V5|0|0|kU,dz8=_i|yi,sz8=0|uU,bU=4,hU=2,yU=1,az8=hU|yU,oz8=hU|bU,nz8=yU|bU,gi=/(?:[^\S\n\r\u2028\u2029]|\/\/.*|\/\*.*?\*\/)*/y,TU=new RegExp("(?=("+gi.source+"))\\1"+/(?=[\n\r\u2028\u2029]|\/\*(?!.*?\*\/)|$)/.source,"y"),I2=class{constructor(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1}};function li(q,Z){let Q=Z.key.name,Y=q[Q],J="true";if(Z.type==="MethodDefinition"&&(Z.kind==="get"||Z.kind==="set"))J=(Z.static?"s":"i")+Z.kind;if(Y==="iget"&&J==="iset"||Y==="iset"&&J==="iget"||Y==="sget"&&J==="sset"||Y==="sset"&&J==="sget")return q[Q]="true",!1;else if(!Y)return q[Q]=J,!1;else return!0}function fU(q,Z){let{computed:Q,key:Y}=q;return!Q&&(Y.type==="Identifier"&&Y.name===Z||Y.type==="Literal"&&Y.value===Z)}var I8={AbstractMethodHasImplementation:({methodName:q})=>`Method '${q}' cannot have an implementation because it is marked abstract.`,AbstractPropertyHasInitializer:({propertyName:q})=>`Property '${q}' cannot have an initializer because it is marked abstract.`,AccesorCannotDeclareThisParameter:"'get' and 'set' accessors cannot declare 'this' parameters.",AccesorCannotHaveTypeParameters:"An accessor cannot have type parameters.",CannotFindName:({name:q})=>`Cannot find name '${q}'.`,ClassMethodHasDeclare:"Class methods cannot have the 'declare' modifier.",ClassMethodHasReadonly:"Class methods cannot have the 'readonly' modifier.",ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference:"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:q})=>`'declare' is not allowed in ${q}ters.`,DeclareClassFieldHasInitializer:"Initializers are not allowed in ambient contexts.",DeclareFunctionHasImplementation:"An implementation cannot be declared in ambient contexts.",DuplicateAccessibilityModifier:()=>"Accessibility modifier already seen.",DuplicateModifier:({modifier:q})=>`Duplicate modifier: '${q}'.`,EmptyHeritageClauseType:({token:q})=>`'${q}' 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'.",IncompatibleModifiers:({modifiers:q})=>`'${q[0]}' modifier cannot be used with '${q[1]}' modifier.`,IndexSignatureHasAbstract:"Index signatures cannot have the 'abstract' modifier.",IndexSignatureHasAccessibility:({modifier:q})=>`Index signatures cannot have an accessibility modifier ('${q}').`,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.",InvalidModifierOnTypeMember:({modifier:q})=>`'${q}' modifier cannot appear on a type member.`,InvalidModifierOnTypeParameter:({modifier:q})=>`'${q}' modifier cannot appear on a type parameter.`,InvalidModifierOnTypeParameterPositions:({modifier:q})=>`'${q}' modifier can only appear on a type parameter of a class, interface or type alias.`,InvalidModifiersOrder:({orderedModifiers:q})=>`'${q[0]}' modifier must precede '${q[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.",NonClassMethodPropertyHasAbstractModifer:"'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:q})=>`Private elements cannot have an accessibility modifier ('${q}').`,PrivateMethodsHasAccessibility:({modifier:q})=>`Private methods cannot have an accessibility modifier ('${q}').`,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 `<T,>() => ...`.",ReservedTypeAssertion:"This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead.",SetAccesorCannotHaveOptionalParameter:"A 'set' accessor cannot have an optional parameter.",SetAccesorCannotHaveRestParameter:"A 'set' accessor cannot have rest parameter.",SetAccesorCannotHaveReturnType:"A 'set' accessor cannot have a return type annotation.",SingleTypeParameterWithoutTrailingComma:({typeParameterName:q})=>`Single type parameter ${q} should have a trailing comma. Example usage: <${q},>.`,StaticBlockCannotHaveModifier:"Static class blocks cannot have any modifier.",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.",GenericsEndWithComma:"Trailing comma is not allowed at the end of generics.",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:q})=>`Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got ${q}.`,LetInLexicalBinding:"'let' is not allowed to be used as a name in 'let' or 'const' declarations."},p4={UnexpectedLeadingDecorator:"Leading decorators must be attached to a class declaration.",DecoratorConstructor:"Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?",TrailingDecorator:"Decorators must be attached to a class element.",SpreadElementDecorator:"Decorators can't be used with SpreadElement"};function xi(q,Z,Q){let{tokTypes:Y}=Q,{tokTypes:J}=Z;return class extends q{takeDecorators(X){let G=this.decoratorStack[this.decoratorStack.length-1];if(G.length)X.decorators=G,this.resetStartLocationFromNode(X,G[0]),this.decoratorStack[this.decoratorStack.length-1]=[]}parseDecorators(X){let G=this.decoratorStack[this.decoratorStack.length-1];while(this.match(J.at)){let W=this.parseDecorator();G.push(W)}if(this.match(Y._export)){if(!X)this.unexpected()}else if(!this.canHaveLeadingDecorator())this.raise(this.start,p4.UnexpectedLeadingDecorator)}parseDecorator(){let X=this.startNode();this.next(),this.decoratorStack.push([]);let G=this.start,W=this.startLoc,R;if(this.match(Y.parenL)){let B=this.start,M=this.startLoc;if(this.next(),R=this.parseExpression(),this.expect(Y.parenR),this.options.preserveParens){let V=this.startNodeAt(B,M);V.expression=R,R=this.finishNode(V,"ParenthesizedExpression")}}else{R=this.parseIdent(!1);while(this.eat(Y.dot)){let B=this.startNodeAt(G,W);B.object=R,B.property=this.parseIdent(!0),B.computed=!1,R=this.finishNode(B,"MemberExpression")}}return X.expression=this.parseMaybeDecoratorArguments(R),this.decoratorStack.pop(),this.finishNode(X,"Decorator")}parseMaybeDecoratorArguments(X){if(this.eat(Y.parenL)){let G=this.startNodeAtNode(X);return G.callee=X,G.arguments=this.parseExprList(Y.parenR,!1),this.finishNode(G,"CallExpression")}return X}}}var mi={quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",ensp:" ",emsp:" ",thinsp:" ",zwnj:"",zwj:"",lrm:"",rlm:"",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",frasl:"⁄",euro:"€",image:"ℑ",weierp:"℘",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦"},pi=/^[\da-fA-F]+$/,ci=/^\d+$/;function D2(q){if(!q)return q;if(q.type==="JSXIdentifier")return q.name;if(q.type==="JSXNamespacedName")return q.namespace.name+":"+q.name.name;if(q.type==="JSXMemberExpression")return D2(q.object)+"."+D2(q.property)}function ri(q,Z,Q,Y){let J=q.tokTypes,H=Z.tokTypes,X=q.isNewLine,G=q.isIdentifierChar,W=Object.assign({allowNamespaces:!0,allowNamespacedObjects:!0},Y||{});return class extends Q{jsx_readToken(){let B="",M=this.pos;for(;;){if(this.pos>=this.input.length)this.raise(this.start,"Unterminated JSX contents");let V=this.input.charCodeAt(this.pos);switch(V){case 60:case 123:if(this.pos===this.start){if(V===60&&this.exprAllowed)return++this.pos,this.finishToken(H.jsxTagStart);return this.getTokenFromCode(V)}return B+=this.input.slice(M,this.pos),this.finishToken(H.jsxText,B);case 38:B+=this.input.slice(M,this.pos),B+=this.jsx_readEntity(),M=this.pos;break;case 62:case 125:this.raise(this.pos,"Unexpected token `"+this.input[this.pos]+"`. Did you mean `"+(V===62?">":"}")+'` or `{"'+this.input[this.pos]+'"}`?');default:if(X(V))B+=this.input.slice(M,this.pos),B+=this.jsx_readNewLine(!0),M=this.pos;else++this.pos}}}jsx_readNewLine(B){let M=this.input.charCodeAt(this.pos),V;if(++this.pos,M===13&&this.input.charCodeAt(this.pos)===10)++this.pos,V=B?`
|
|
109
|
-
`:`\r
|
|
110
|
-
`;else V=String.fromCharCode(M);if(this.options.locations)++this.curLine,this.lineStart=this.pos;return V}jsx_readString(B){let M="",V=++this.pos;for(;;){if(this.pos>=this.input.length)this.raise(this.start,"Unterminated string constant");let $=this.input.charCodeAt(this.pos);if($===B)break;if($===38)M+=this.input.slice(V,this.pos),M+=this.jsx_readEntity(),V=this.pos;else if(X($))M+=this.input.slice(V,this.pos),M+=this.jsx_readNewLine(!1),V=this.pos;else++this.pos}return M+=this.input.slice(V,this.pos++),this.finishToken(J.string,M)}jsx_readEntity(){let B="",M=0,V,$=this.input[this.pos];if($!=="&")this.raise(this.pos,"Entity must start with an ampersand");let O=++this.pos;while(this.pos<this.input.length&&M++<10){if($=this.input[this.pos++],$===";"){if(B[0]==="#"){if(B[1]==="x"){if(B=B.substr(2),pi.test(B))V=String.fromCharCode(parseInt(B,16))}else if(B=B.substr(1),ci.test(B))V=String.fromCharCode(parseInt(B,10))}else V=mi[B];break}B+=$}if(!V)return this.pos=O,"&";return V}jsx_readWord(){let B,M=this.pos;do B=this.input.charCodeAt(++this.pos);while(G(B)||B===45);return this.finishToken(H.jsxName,this.input.slice(M,this.pos))}jsx_parseIdentifier(){let B=this.startNode();if(this.type===H.jsxName)B.name=this.value;else if(this.type.keyword)B.name=this.type.keyword;else this.unexpected();return this.next(),this.finishNode(B,"JSXIdentifier")}jsx_parseNamespacedName(){let B=this.start,M=this.startLoc,V=this.jsx_parseIdentifier();if(!W.allowNamespaces||!this.eat(J.colon))return V;var $=this.startNodeAt(B,M);return $.namespace=V,$.name=this.jsx_parseIdentifier(),this.finishNode($,"JSXNamespacedName")}jsx_parseElementName(){if(this.type===H.jsxTagEnd)return"";let B=this.start,M=this.startLoc,V=this.jsx_parseNamespacedName();if(this.type===J.dot&&V.type==="JSXNamespacedName"&&!W.allowNamespacedObjects)this.unexpected();while(this.eat(J.dot)){let $=this.startNodeAt(B,M);$.object=V,$.property=this.jsx_parseIdentifier(),V=this.finishNode($,"JSXMemberExpression")}return V}jsx_parseAttributeValue(){switch(this.type){case J.braceL:let B=this.jsx_parseExpressionContainer();if(B.expression.type==="JSXEmptyExpression")this.raise(B.start,"JSX attributes must only be assigned a non-empty expression");return B;case H.jsxTagStart:case J.string:return this.parseExprAtom();default:this.raise(this.start,"JSX value should be either an expression or a quoted JSX text")}}jsx_parseEmptyExpression(){let B=this.startNodeAt(this.lastTokEnd,this.lastTokEndLoc);return this.finishNodeAt(B,"JSXEmptyExpression",this.start,this.startLoc)}jsx_parseExpressionContainer(){let B=this.startNode();return this.next(),B.expression=this.type===J.braceR?this.jsx_parseEmptyExpression():this.parseExpression(),this.expect(J.braceR),this.finishNode(B,"JSXExpressionContainer")}jsx_parseAttribute(){let B=this.startNode();if(this.eat(J.braceL))return this.expect(J.ellipsis),B.argument=this.parseMaybeAssign(),this.expect(J.braceR),this.finishNode(B,"JSXSpreadAttribute");return B.name=this.jsx_parseNamespacedName(),B.value=this.eat(J.eq)?this.jsx_parseAttributeValue():null,this.finishNode(B,"JSXAttribute")}jsx_parseOpeningElementAt(B,M){let V=this.startNodeAt(B,M);V.attributes=[];let $=this.jsx_parseElementName();if($)V.name=$;while(this.type!==J.slash&&this.type!==H.jsxTagEnd)V.attributes.push(this.jsx_parseAttribute());return V.selfClosing=this.eat(J.slash),this.expect(H.jsxTagEnd),this.finishNode(V,$?"JSXOpeningElement":"JSXOpeningFragment")}jsx_parseClosingElementAt(B,M){let V=this.startNodeAt(B,M),$=this.jsx_parseElementName();if($)V.name=$;return this.expect(H.jsxTagEnd),this.finishNode(V,$?"JSXClosingElement":"JSXClosingFragment")}jsx_parseElementAt(B,M){let V=this.startNodeAt(B,M),$=[],O=this.jsx_parseOpeningElementAt(B,M),w=null;if(!O.selfClosing){q:for(;;)switch(this.type){case H.jsxTagStart:if(B=this.start,M=this.startLoc,this.next(),this.eat(J.slash)){w=this.jsx_parseClosingElementAt(B,M);break q}$.push(this.jsx_parseElementAt(B,M));break;case H.jsxText:$.push(this.parseExprAtom());break;case J.braceL:$.push(this.jsx_parseExpressionContainer());break;default:this.unexpected()}if(D2(w.name)!==D2(O.name))this.raise(w.start,"Expected corresponding JSX closing tag for <"+D2(O.name)+">")}let I=O.name?"Element":"Fragment";if(V["opening"+I]=O,V["closing"+I]=w,V.children=$,this.type===J.relational&&this.value==="<")this.raise(this.start,"Adjacent JSX elements must be wrapped in an enclosing tag");return this.finishNode(V,"JSX"+I)}jsx_parseText(){let B=this.parseLiteral(this.value);return B.type="JSXText",B}jsx_parseElement(){let B=this.start,M=this.startLoc;return this.next(),this.jsx_parseElementAt(B,M)}}}function ii(q,Z,Q){let{tokTypes:Y}=Z,{tokTypes:J}=Q;return class extends q{parseMaybeImportAttributes(X){if(this.type===J._with||this.type===Y.assert){this.next();let G=this.parseImportAttributes();if(G)X.attributes=G}}parseImportAttributes(){this.expect(J.braceL);let X=this.parseWithEntries();return this.expect(J.braceR),X}parseWithEntries(){let X=[],G=new Set;do{if(this.type===J.braceR)break;let W=this.startNode(),R;if(this.type===J.string)R=this.parseLiteral(this.value);else R=this.parseIdent(!0);if(this.next(),W.key=R,G.has(W.key.name))this.raise(this.pos,"Duplicated key in attributes");if(G.add(W.key.name),this.type!==J.string)this.raise(this.pos,"Only string is supported as an attribute value");W.value=this.parseLiteral(this.value),X.push(this.finishNode(W,"ImportAttribute"))}while(this.eat(J.comma));return X}}}var _Y=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g;function KU(q){if(!q)throw Error("Assert fail")}function di(q){return q==="accessor"}function si(q){return q==="in"||q==="out"}var m4=1,vU=2,ai=4,$0={SCOPE_TOP:1,SCOPE_FUNCTION:2,SCOPE_ASYNC:4,SCOPE_GENERATOR:8,SCOPE_ARROW:16,SCOPE_SIMPLE_CATCH:32,SCOPE_SUPER:64,SCOPE_DIRECT_SUPER:128,SCOPE_CLASS_STATIC_BLOCK:256,SCOPE_VAR:256,BIND_NONE:0,BIND_VAR:1,BIND_LEXICAL:2,BIND_FUNCTION:3,BIND_SIMPLE_CATCH:4,BIND_OUTSIDE:5,BIND_TS_TYPE:6,BIND_TS_INTERFACE:7,BIND_TS_NAMESPACE:1032,BIND_FLAGS_TS_EXPORT_ONLY:1024,BIND_FLAGS_TS_IMPORT:4096,BIND_FLAGS_TS_ENUM:256,BIND_FLAGS_TS_CONST_ENUM:512,BIND_FLAGS_CLASS:128};function gY(q,Z){return $0.SCOPE_FUNCTION|(q?$0.SCOPE_ASYNC:0)|(Z?$0.SCOPE_GENERATOR:0)}function oi(q){if(q.type!=="MemberExpression")return!1;let{computed:Z,property:Q}=q;if(Z&&(Q.type!=="TemplateLiteral"||Q.expressions.length>0))return!1;return _U(q.object)}function _U(q){if(q.type==="Identifier")return!0;if(q.type!=="MemberExpression")return!1;if(q.computed)return!1;return _U(q.object)}function NU(q){return q==="private"||q==="public"||q==="protected"}function ni(q){return Boolean(q.startsExpr)}function ti(q){if(q==null)throw Error(`Unexpected ${q} value.`);return q}function ei(q){switch(q){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 gU(q){let{dts:Z=!1}=q||{},Q=!!q?.jsx;return function(Y){let J=Y.acorn||x4,H=ki(J),X=J.tokTypes,G=J.keywordTypes,W=J.isIdentifierStart,R=J.lineBreak,B=J.isNewLine,M=J.tokContexts,V=J.isIdentifierChar,{tokTypes:$,tokContexts:O,keywordsRegExp:w,tokenIsLiteralPropertyName:I,tokenIsTemplate:C,tokenIsTSDeclarationStart:E,tokenIsIdentifier:D,tokenIsKeywordOrIdentifier:f,tokenIsTSTypeOperator:v}=H;function _(z,P,L=z.length){for(let A=P;A<L;A++){let T=z.charCodeAt(A);if(B(T))return A<L-1&&T===13&&z.charCodeAt(A+1)===10?A+2:A+1}return-1}if(Y=xi(Y,H,J),q?.jsx)Y=ri(J,H,Y,typeof q.jsx==="boolean"?{}:q.jsx);Y=ii(Y,H,J);class b extends Y{constructor(z,P,L){super(z,P,L);this.preValue=null,this.preToken=null,this.isLookahead=!1,this.isAmbientContext=!1,this.inAbstractClass=!1,this.inType=!1,this.inDisallowConditionalTypesContext=!1,this.maybeInArrowParameters=!1,this.shouldParseArrowReturnType=void 0,this.shouldParseAsyncArrowReturnType=void 0,this.decoratorStack=[[]],this.importsStack=[[]],this.importOrExportOuterKind=void 0,this.tsParseConstModifier=(A)=>{this.tsParseModifiers({modified:A,allowedModifiers:["const"],disallowedModifiers:["in","out"],errorTemplate:I8.InvalidModifierOnTypeParameterPositions})},this.ecmaVersion=this.options.ecmaVersion}static get acornTypeScript(){return H}get acornTypeScript(){return H}getTokenFromCodeInType(z){if(z===62)return this.finishOp(X.relational,1);if(z===60)return this.finishOp(X.relational,1);return super.getTokenFromCode(z)}readToken(z){if(!this.inType){let P=this.curContext();if(P===O.tc_expr)return this.jsx_readToken();if(P===O.tc_oTag||P===O.tc_cTag){if(W(z))return this.jsx_readWord();if(z==62)return++this.pos,this.finishToken($.jsxTagEnd);if((z===34||z===39)&&P==O.tc_oTag)return this.jsx_readString(z)}if(z===60&&this.exprAllowed&&this.input.charCodeAt(this.pos+1)!==33)if(++this.pos,q?.jsx)return this.finishToken($.jsxTagStart);else return this.finishToken(X.relational,"<")}return super.readToken(z)}getTokenFromCode(z){if(this.inType)return this.getTokenFromCodeInType(z);if(z===64)return++this.pos,this.finishToken($.at);return super.getTokenFromCode(z)}isAbstractClass(){return this.ts_isContextual($.abstract)&&this.lookahead().type===X._class}finishNode(z,P){if(z.type!==""&&z.end!==0)return z;return super.finishNode(z,P)}tryParse(z,P=this.cloneCurLookaheadState()){let L={node:null};try{return{node:z((T=null)=>{throw L.node=T,L}),error:null,thrown:!1,aborted:!1,failState:null}}catch(A){let T=this.getCurLookaheadState();if(this.setLookaheadState(P),A instanceof SyntaxError)return{node:null,error:A,thrown:!0,aborted:!1,failState:T};if(A===L)return{node:L.node,error:null,thrown:!1,aborted:!0,failState:T};throw A}}setOptionalParametersError(z,P){z.optionalParametersLoc=P?.loc??this.startLoc}reScan_lt_gt(){if(this.type===X.relational)this.pos-=1,this.readToken_lt_gt(this.fullCharCodeAtPos())}reScan_lt(){let{type:z}=this;if(z===X.bitShift)return this.pos-=2,this.finishOp(X.relational,1),X.relational;return z}resetEndLocation(z,P=this.lastTokEnd,L=this.lastTokEndLoc){if(z.end=P,z.loc.end=L,this.options.ranges)z.range[1]=P}startNodeAtNode(z){return super.startNodeAt(z.start,z.loc.start)}nextTokenStart(){return this.nextTokenStartSince(this.pos)}tsHasSomeModifiers(z,P){return P.some((L)=>{if(NU(L))return z.accessibility===L;return!!z[L]})}tsIsStartOfStaticBlocks(){return this.isContextual("static")&&this.lookaheadCharCode()===123}tsCheckForInvalidTypeCasts(z){z.forEach((P)=>{if(P?.type==="TSTypeCastExpression")this.raise(P.typeAnnotation.start,I8.UnexpectedTypeAnnotation)})}atPossibleAsyncArrow(z){return z.type==="Identifier"&&z.name==="async"&&this.lastTokEnd===z.end&&!this.canInsertSemicolon()&&z.end-z.start===5&&z.start===this.potentialArrowAt}tsIsIdentifier(){return D(this.type)}tsTryParseTypeOrTypePredicateAnnotation(){return this.match(X.colon)?this.tsParseTypeOrTypePredicateAnnotation(X.colon):void 0}tsTryParseGenericAsyncArrowFunction(z,P,L){if(!this.tsMatchLeftRelational())return;let A=this.maybeInArrowParameters;this.maybeInArrowParameters=!0;let T=this.tsTryParseAndCatch(()=>{let h=this.startNodeAt(z,P);return h.typeParameters=this.tsParseTypeParameters(this.tsParseConstModifier),super.parseFunctionParams(h),h.returnType=this.tsTryParseTypeOrTypePredicateAnnotation(),this.expect(X.arrow),h});if(this.maybeInArrowParameters=A,!T)return;return super.parseArrowExpression(T,null,!0,L)}tsParseTypeArgumentsInExpression(){if(this.reScan_lt()!==X.relational)return;return this.tsParseTypeArguments()}tsInNoContext(z){let P=this.context;this.context=[P[0]];try{return z()}finally{this.context=P}}tsTryParseTypeAnnotation(){return this.match(X.colon)?this.tsParseTypeAnnotation():void 0}isUnparsedContextual(z,P){let L=z+P.length;if(this.input.slice(z,L)===P){let A=this.input.charCodeAt(L);return!(V(A)||(A&64512)===55296)}return!1}isAbstractConstructorSignature(){return this.ts_isContextual($.abstract)&&this.lookahead().type===X._new}nextTokenStartSince(z){return _Y.lastIndex=z,_Y.test(this.input)?_Y.lastIndex:z}lookaheadCharCode(){return this.input.charCodeAt(this.nextTokenStart())}compareLookaheadState(z,P){for(let L of Object.keys(z))if(z[L]!==P[L])return!1;return!0}createLookaheadState(){this.value=null,this.context=[this.curContext()]}getCurLookaheadState(){return{endLoc:this.endLoc,lastTokEnd:this.lastTokEnd,lastTokStart:this.lastTokStart,lastTokStartLoc:this.lastTokStartLoc,pos:this.pos,value:this.value,type:this.type,start:this.start,end:this.end,context:this.context,startLoc:this.startLoc,lastTokEndLoc:this.lastTokEndLoc,curLine:this.curLine,lineStart:this.lineStart,curPosition:this.curPosition,containsEsc:this.containsEsc}}cloneCurLookaheadState(){return{pos:this.pos,value:this.value,type:this.type,start:this.start,end:this.end,context:this.context&&this.context.slice(),startLoc:this.startLoc,lastTokEndLoc:this.lastTokEndLoc,endLoc:this.endLoc,lastTokEnd:this.lastTokEnd,lastTokStart:this.lastTokStart,lastTokStartLoc:this.lastTokStartLoc,curLine:this.curLine,lineStart:this.lineStart,curPosition:this.curPosition,containsEsc:this.containsEsc}}setLookaheadState(z){this.pos=z.pos,this.value=z.value,this.endLoc=z.endLoc,this.lastTokEnd=z.lastTokEnd,this.lastTokStart=z.lastTokStart,this.lastTokStartLoc=z.lastTokStartLoc,this.type=z.type,this.start=z.start,this.end=z.end,this.context=z.context,this.startLoc=z.startLoc,this.lastTokEndLoc=z.lastTokEndLoc,this.curLine=z.curLine,this.lineStart=z.lineStart,this.curPosition=z.curPosition,this.containsEsc=z.containsEsc}tsLookAhead(z){let P=this.getCurLookaheadState(),L=z();return this.setLookaheadState(P),L}lookahead(z){let P=this.getCurLookaheadState();if(this.createLookaheadState(),this.isLookahead=!0,z!==void 0)for(let A=0;A<z;A++)this.nextToken();else this.nextToken();this.isLookahead=!1;let L=this.getCurLookaheadState();return this.setLookaheadState(P),L}readWord(){let z=this.readWord1(),P=X.name;if(this.keywords.test(z))P=G[z];else if(new RegExp(w).test(z))P=$[z];return this.finishToken(P,z)}skipBlockComment(){let z;if(!this.isLookahead)z=this.options.onComment&&this.curPosition();let P=this.pos,L=this.input.indexOf("*/",this.pos+=2);if(L===-1)this.raise(this.pos-2,"Unterminated comment");if(this.pos=L+2,this.options.locations)for(let A,T=P;(A=_(this.input,T,this.pos))>-1;)++this.curLine,T=this.lineStart=A;if(this.isLookahead)return;if(this.options.onComment)this.options.onComment(!0,this.input.slice(P+2,L),P,this.pos,z,this.curPosition())}skipLineComment(z){let P=this.pos,L;if(!this.isLookahead)L=this.options.onComment&&this.curPosition();let A=this.input.charCodeAt(this.pos+=z);while(this.pos<this.input.length&&!B(A))A=this.input.charCodeAt(++this.pos);if(this.isLookahead)return;if(this.options.onComment)this.options.onComment(!1,this.input.slice(P+z,this.pos),P,this.pos,L,this.curPosition())}finishToken(z,P){if(this.preValue=this.value,this.preToken=this.type,this.end=this.pos,this.options.locations)this.endLoc=this.curPosition();let L=this.type;if(this.type=z,this.value=P,!this.isLookahead)this.updateContext(L)}resetStartLocation(z,P,L){if(z.start=P,z.loc.start=L,this.options.ranges)z.range[0]=P}isLineTerminator(){return this.eat(X.semi)||super.canInsertSemicolon()}hasFollowingLineBreak(){return TU.lastIndex=this.end,TU.test(this.input)}addExtra(z,P,L,A=!0){if(!z)return;let T=z.extra=z.extra||{};if(A)T[P]=L;else Object.defineProperty(T,P,{enumerable:A,value:L})}isLiteralPropertyName(){return I(this.type)}hasPrecedingLineBreak(){return R.test(this.input.slice(this.lastTokEnd,this.start))}createIdentifier(z,P){return z.name=P,this.finishNode(z,"Identifier")}resetStartLocationFromNode(z,P){this.resetStartLocation(z,P.start,P.loc.start)}isThisParam(z){return z.type==="Identifier"&&z.name==="this"}isLookaheadContextual(z){let P=this.nextTokenStart();return this.isUnparsedContextual(P,z)}ts_type_isContextual(z,P){return z===P&&!this.containsEsc}ts_isContextual(z){return this.type===z&&!this.containsEsc}ts_isContextualWithState(z,P){return z.type===P&&!z.containsEsc}isContextualWithState(z,P){return P.type===X.name&&P.value===z&&!P.containsEsc}tsIsStartOfMappedType(){if(this.next(),this.eat(X.plusMin))return this.ts_isContextual($.readonly);if(this.ts_isContextual($.readonly))this.next();if(!this.match(X.bracketL))return!1;if(this.next(),!this.tsIsIdentifier())return!1;return this.next(),this.match(X._in)}tsInDisallowConditionalTypesContext(z){let P=this.inDisallowConditionalTypesContext;this.inDisallowConditionalTypesContext=!0;try{return z()}finally{this.inDisallowConditionalTypesContext=P}}tsTryParseType(){return this.tsEatThenParseType(X.colon)}match(z){return this.type===z}matchJsx(z){return this.type===H.tokTypes[z]}ts_eatWithState(z,P,L){let A=L.type;if(z===A){for(let T=0;T<P;T++)this.next();return!0}else return!1}ts_eatContextualWithState(z,P,L){if(w.test(z)){if(this.ts_isContextualWithState(L,$[z])){for(let A=0;A<P;A++)this.next();return!0}return!1}else{if(!this.isContextualWithState(z,L))return!1;for(let A=0;A<P;A++)this.next();return!0}}canHaveLeadingDecorator(){return this.match(X._class)||this.isAbstractClass()}eatContextual(z){if(w.test(z)){if(this.ts_isContextual($[z]))return this.next(),!0;return!1}else return super.eatContextual(z)}tsIsExternalModuleReference(){return this.isContextual("require")&&this.lookaheadCharCode()===40}tsParseExternalModuleReference(){let z=this.startNode();if(this.expectContextual("require"),this.expect(X.parenL),!this.match(X.string))this.unexpected();return z.expression=this.parseExprAtom(),this.expect(X.parenR),this.finishNode(z,"TSExternalModuleReference")}tsParseEntityName(z=!0){let P=this.parseIdent(z);while(this.eat(X.dot)){let L=this.startNodeAtNode(P);L.left=P,L.right=this.parseIdent(z),P=this.finishNode(L,"TSQualifiedName")}return P}tsParseEnumMember(){let z=this.startNode();if(z.id=this.match(X.string)?this.parseLiteral(this.value):this.parseIdent(!0),this.eat(X.eq))z.initializer=this.parseMaybeAssign();return this.finishNode(z,"TSEnumMember")}tsParseEnumDeclaration(z,P={}){if(P.const)z.const=!0;if(P.declare)z.declare=!0;return this.expectContextual("enum"),z.id=this.parseIdent(),this.checkLValSimple(z.id),this.expect(X.braceL),z.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(X.braceR),this.finishNode(z,"TSEnumDeclaration")}tsParseModuleBlock(){let z=this.startNode();this.enterScope(Si),this.expect(X.braceL),z.body=[];while(this.type!==X.braceR){let P=this.parseStatement(null,!0);z.body.push(P)}return this.next(),super.exitScope(),this.finishNode(z,"TSModuleBlock")}tsParseAmbientExternalModuleDeclaration(z){if(this.ts_isContextual($.global))z.global=!0,z.id=this.parseIdent();else if(this.match(X.string))z.id=this.parseLiteral(this.value);else this.unexpected();if(this.match(X.braceL))this.enterScope(j2),z.body=this.tsParseModuleBlock(),super.exitScope();else super.semicolon();return this.finishNode(z,"TSModuleDeclaration")}tsTryParseDeclare(z){if(this.isLineTerminator())return;let P=this.type,L;if(this.isContextual("let"))P=X._var,L="let";return this.tsInAmbientContext(()=>{if(P===X._function)return z.declare=!0,this.parseFunctionStatement(z,!1,!0);if(P===X._class)return z.declare=!0,this.parseClass(z,!0);if(P===$.enum)return this.tsParseEnumDeclaration(z,{declare:!0});if(P===$.global)return this.tsParseAmbientExternalModuleDeclaration(z);if(P===X._const||P===X._var){if(!this.match(X._const)||!this.isLookaheadContextual("enum"))return z.declare=!0,this.parseVarStatement(z,L||this.value,!0);return this.expect(X._const),this.tsParseEnumDeclaration(z,{const:!0,declare:!0})}if(P===$.interface){let A=this.tsParseInterfaceDeclaration(z,{declare:!0});if(A)return A}if(D(P))return this.tsParseDeclaration(z,this.value,!0)})}tsIsListTerminator(z){switch(z){case"EnumMembers":case"TypeMembers":return this.match(X.braceR);case"HeritageClauseElement":return this.match(X.braceL);case"TupleElementTypes":return this.match(X.bracketR);case"TypeParametersOrArguments":return this.tsMatchRightRelational()}}tsParseDelimitedListWorker(z,P,L,A){let T=[],h=-1;for(;;){if(this.tsIsListTerminator(z))break;h=-1;let N=P();if(N==null)return;if(T.push(N),this.eat(X.comma)){h=this.lastTokStart;continue}if(this.tsIsListTerminator(z))break;if(L)this.expect(X.comma);return}if(A)A.value=h;return T}tsParseDelimitedList(z,P,L){return ti(this.tsParseDelimitedListWorker(z,P,!0,L))}tsParseBracketedList(z,P,L,A,T){if(!A)if(L)this.expect(X.bracketL);else this.expect(X.relational);let h=this.tsParseDelimitedList(z,P,T);if(L)this.expect(X.bracketR);else this.expect(X.relational);return h}tsParseTypeParameterName(){return this.parseIdent().name}tsEatThenParseType(z){return!this.match(z)?void 0:this.tsNextThenParseType()}tsExpectThenParseType(z){return this.tsDoThenParseType(()=>this.expect(z))}tsNextThenParseType(){return this.tsDoThenParseType(()=>this.next())}tsDoThenParseType(z){return this.tsInType(()=>{return z(),this.tsParseType()})}tsSkipParameterStart(){if(D(this.type)||this.match(X._this))return this.next(),!0;if(this.match(X.braceL))try{return this.parseObj(!0),!0}catch{return!1}if(this.match(X.bracketL)){this.next();try{return this.parseBindingList(X.bracketR,!0,!0),!0}catch{return!1}}return!1}tsIsUnambiguouslyStartOfFunctionType(){if(this.next(),this.match(X.parenR)||this.match(X.ellipsis))return!0;if(this.tsSkipParameterStart()){if(this.match(X.colon)||this.match(X.comma)||this.match(X.question)||this.match(X.eq))return!0;if(this.match(X.parenR)){if(this.next(),this.match(X.arrow))return!0}}return!1}tsIsStartOfFunctionType(){if(this.tsMatchLeftRelational())return!0;return this.match(X.parenL)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))}tsInAllowConditionalTypesContext(z){let P=this.inDisallowConditionalTypesContext;this.inDisallowConditionalTypesContext=!1;try{return z()}finally{this.inDisallowConditionalTypesContext=P}}tsParseBindingListForSignature(){return super.parseBindingList(X.parenR,!0,!0).map((z)=>{if(z.type!=="Identifier"&&z.type!=="RestElement"&&z.type!=="ObjectPattern"&&z.type!=="ArrayPattern")this.raise(z.start,I8.UnsupportedSignatureParameterKind({type:z.type}));return z})}tsParseTypePredicateAsserts(){if(this.type!==$.asserts)return!1;let z=this.containsEsc;if(this.next(),!D(this.type)&&!this.match(X._this))return!1;if(z)this.raise(this.lastTokStart,"Escape sequence in keyword asserts");return!0}tsParseThisTypeNode(){let z=this.startNode();return this.next(),this.finishNode(z,"TSThisType")}tsParseTypeAnnotation(z=!0,P=this.startNode()){return this.tsInType(()=>{if(z)this.expect(X.colon);P.typeAnnotation=this.tsParseType()}),this.finishNode(P,"TSTypeAnnotation")}tsParseThisTypePredicate(z){this.next();let P=this.startNodeAtNode(z);return P.parameterName=z,P.typeAnnotation=this.tsParseTypeAnnotation(!1),P.asserts=!1,this.finishNode(P,"TSTypePredicate")}tsParseThisTypeOrThisTypePredicate(){let z=this.tsParseThisTypeNode();if(this.isContextual("is")&&!this.hasPrecedingLineBreak())return this.tsParseThisTypePredicate(z);else return z}tsParseTypePredicatePrefix(){let z=this.parseIdent();if(this.isContextual("is")&&!this.hasPrecedingLineBreak())return this.next(),z}tsParseTypeOrTypePredicateAnnotation(z){return this.tsInType(()=>{let P=this.startNode();this.expect(z);let L=this.startNode(),A=!!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));if(A&&this.match(X._this)){let N=this.tsParseThisTypeOrThisTypePredicate();if(N.type==="TSThisType")L.parameterName=N,L.asserts=!0,L.typeAnnotation=null,N=this.finishNode(L,"TSTypePredicate");else this.resetStartLocationFromNode(N,L),N.asserts=!0;return P.typeAnnotation=N,this.finishNode(P,"TSTypeAnnotation")}let T=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!T){if(!A)return this.tsParseTypeAnnotation(!1,P);return L.parameterName=this.parseIdent(),L.asserts=A,L.typeAnnotation=null,P.typeAnnotation=this.finishNode(L,"TSTypePredicate"),this.finishNode(P,"TSTypeAnnotation")}let h=this.tsParseTypeAnnotation(!1);return L.parameterName=T,L.typeAnnotation=h,L.asserts=A,P.typeAnnotation=this.finishNode(L,"TSTypePredicate"),this.finishNode(P,"TSTypeAnnotation")})}tsFillSignature(z,P){let L=z===X.arrow,A="parameters",T="typeAnnotation";if(P.typeParameters=this.tsTryParseTypeParameters(),this.expect(X.parenL),P.parameters=this.tsParseBindingListForSignature(),L)P.typeAnnotation=this.tsParseTypeOrTypePredicateAnnotation(z);else if(this.match(z))P.typeAnnotation=this.tsParseTypeOrTypePredicateAnnotation(z)}tsTryNextParseConstantContext(){if(this.lookahead().type!==X._const)return null;this.next();let z=this.tsParseTypeReference();if(z.typeParameters||z.typeArguments)this.raise(z.typeName.start,I8.CannotFindName({name:"const"}));return z}tsParseFunctionOrConstructorType(z,P){let L=this.startNode();if(z==="TSConstructorType"){if(L.abstract=!!P,P)this.next();this.next()}return this.tsInAllowConditionalTypesContext(()=>this.tsFillSignature(X.arrow,L)),this.finishNode(L,z)}tsParseUnionOrIntersectionType(z,P,L){let A=this.startNode(),T=this.eat(L),h=[];do h.push(P());while(this.eat(L));if(h.length===1&&!T)return h[0];return A.types=h,this.finishNode(A,z)}tsCheckTypeAnnotationForReadOnly(z){switch(z.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(z.start,I8.UnexpectedReadonly)}}tsParseTypeOperator(){let z=this.startNode(),P=this.value;if(this.next(),z.operator=P,z.typeAnnotation=this.tsParseTypeOperatorOrHigher(),P==="readonly")this.tsCheckTypeAnnotationForReadOnly(z);return this.finishNode(z,"TSTypeOperator")}tsParseConstraintForInferType(){if(this.eat(X._extends)){let z=this.tsInDisallowConditionalTypesContext(()=>this.tsParseType());if(this.inDisallowConditionalTypesContext||!this.match(X.question))return z}}tsParseInferType(){let z=this.startNode();this.expectContextual("infer");let P=this.startNode();return P.name=this.tsParseTypeParameterName(),P.constraint=this.tsTryParse(()=>this.tsParseConstraintForInferType()),z.typeParameter=this.finishNode(P,"TSTypeParameter"),this.finishNode(z,"TSInferType")}tsParseLiteralTypeNode(){let z=this.startNode();return z.literal=(()=>{switch(this.type){case X.num:case X.string:case X._true:case X._false:return this.parseExprAtom();default:this.unexpected()}})(),this.finishNode(z,"TSLiteralType")}tsParseImportType(){let z=this.startNode();if(this.expect(X._import),this.expect(X.parenL),!this.match(X.string))this.raise(this.start,I8.UnsupportedImportTypeArgument);if(z.argument=this.parseExprAtom(),this.expect(X.parenR),this.eat(X.dot))z.qualifier=this.tsParseEntityName();if(this.tsMatchLeftRelational())z.typeArguments=this.tsParseTypeArguments();return this.finishNode(z,"TSImportType")}tsParseTypeQuery(){let z=this.startNode();if(this.expect(X._typeof),this.match(X._import))z.exprName=this.tsParseImportType();else z.exprName=this.tsParseEntityName();if(!this.hasPrecedingLineBreak()&&this.tsMatchLeftRelational())z.typeArguments=this.tsParseTypeArguments();return this.finishNode(z,"TSTypeQuery")}tsParseMappedTypeParameter(){let z=this.startNode();return z.name=this.tsParseTypeParameterName(),z.constraint=this.tsExpectThenParseType(X._in),this.finishNode(z,"TSTypeParameter")}tsParseMappedType(){let z=this.startNode();if(this.expect(X.braceL),this.match(X.plusMin))z.readonly=this.value,this.next(),this.expectContextual("readonly");else if(this.eatContextual("readonly"))z.readonly=!0;if(this.expect(X.bracketL),z.typeParameter=this.tsParseMappedTypeParameter(),z.nameType=this.eatContextual("as")?this.tsParseType():null,this.expect(X.bracketR),this.match(X.plusMin))z.optional=this.value,this.next(),this.expect(X.question);else if(this.eat(X.question))z.optional=!0;return z.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(X.braceR),this.finishNode(z,"TSMappedType")}tsParseTypeLiteral(){let z=this.startNode();return z.members=this.tsParseObjectTypeMembers(),this.finishNode(z,"TSTypeLiteral")}tsParseTupleElementType(){let z=this.startLoc,P=this.start,L=this.eat(X.ellipsis),A=this.tsParseType(),T=this.eat(X.question);if(this.eat(X.colon)){let N=this.startNodeAtNode(A);if(N.optional=T,A.type==="TSTypeReference"&&!A.typeArguments&&A.typeName.type==="Identifier")N.label=A.typeName;else this.raise(A.start,I8.InvalidTupleMemberLabel),N.label=A;N.elementType=this.tsParseType(),A=this.finishNode(N,"TSNamedTupleMember")}else if(T){let N=this.startNodeAtNode(A);N.typeAnnotation=A,A=this.finishNode(N,"TSOptionalType")}if(L){let N=this.startNodeAt(P,z);N.typeAnnotation=A,A=this.finishNode(N,"TSRestType")}return A}tsParseTupleType(){let z=this.startNode();z.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);let P=!1;return z.elementTypes.forEach((L)=>{let{type:A}=L;if(P&&A!=="TSRestType"&&A!=="TSOptionalType"&&!(A==="TSNamedTupleMember"&&L.optional))this.raise(L.start,I8.OptionalTypeBeforeRequired);if(P||=A==="TSNamedTupleMember"&&L.optional||A==="TSOptionalType",A==="TSRestType")L=L.typeAnnotation}),this.finishNode(z,"TSTupleType")}tsParseTemplateLiteralType(){let z=this.startNode();return z.literal=this.parseTemplate({isTagged:!1}),this.finishNode(z,"TSLiteralType")}tsParseTypeReference(){let z=this.startNode();if(z.typeName=this.tsParseEntityName(),!this.hasPrecedingLineBreak()&&this.tsMatchLeftRelational())z.typeArguments=this.tsParseTypeArguments();return this.finishNode(z,"TSTypeReference")}tsMatchLeftRelational(){return this.match(X.relational)&&this.value==="<"}tsMatchRightRelational(){return this.match(X.relational)&&this.value===">"}tsParseParenthesizedType(){let z=this.startNode();return this.expect(X.parenL),z.typeAnnotation=this.tsParseType(),this.expect(X.parenR),this.finishNode(z,"TSParenthesizedType")}tsParseNonArrayType(){switch(this.type){case X.string:case X.num:case X._true:case X._false:return this.tsParseLiteralTypeNode();case X.plusMin:if(this.value==="-"){let z=this.startNode();if(this.lookahead().type!==X.num)this.unexpected();return z.literal=this.parseMaybeUnary(),this.finishNode(z,"TSLiteralType")}break;case X._this:return this.tsParseThisTypeOrThisTypePredicate();case X._typeof:return this.tsParseTypeQuery();case X._import:return this.tsParseImportType();case X.braceL:return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this))?this.tsParseMappedType():this.tsParseTypeLiteral();case X.bracketL:return this.tsParseTupleType();case X.parenL:return this.tsParseParenthesizedType();case X.backQuote:case X.dollarBraceL:return this.tsParseTemplateLiteralType();default:{let{type:z}=this;if(D(z)||z===X._void||z===X._null){let P=z===X._void?"TSVoidKeyword":z===X._null?"TSNullKeyword":ei(this.value);if(P!==void 0&&this.lookaheadCharCode()!==46){let L=this.startNode();return this.next(),this.finishNode(L,P)}return this.tsParseTypeReference()}}}this.unexpected()}tsParseArrayTypeOrHigher(){let z=this.tsParseNonArrayType();while(!this.hasPrecedingLineBreak()&&this.eat(X.bracketL))if(this.match(X.bracketR)){let P=this.startNodeAtNode(z);P.elementType=z,this.expect(X.bracketR),z=this.finishNode(P,"TSArrayType")}else{let P=this.startNodeAtNode(z);P.objectType=z,P.indexType=this.tsParseType(),this.expect(X.bracketR),z=this.finishNode(P,"TSIndexedAccessType")}return z}tsParseTypeOperatorOrHigher(){return v(this.type)&&!this.containsEsc?this.tsParseTypeOperator():this.isContextual("infer")?this.tsParseInferType():this.tsInAllowConditionalTypesContext(()=>this.tsParseArrayTypeOrHigher())}tsParseIntersectionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSIntersectionType",this.tsParseTypeOperatorOrHigher.bind(this),X.bitwiseAND)}tsParseUnionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSUnionType",this.tsParseIntersectionTypeOrHigher.bind(this),X.bitwiseOR)}tsParseNonConditionalType(){if(this.tsIsStartOfFunctionType())return this.tsParseFunctionOrConstructorType("TSFunctionType");if(this.match(X._new))return this.tsParseFunctionOrConstructorType("TSConstructorType");else if(this.isAbstractConstructorSignature())return this.tsParseFunctionOrConstructorType("TSConstructorType",!0);return this.tsParseUnionTypeOrHigher()}tsParseType(){KU(this.inType);let z=this.tsParseNonConditionalType();if(this.inDisallowConditionalTypesContext||this.hasPrecedingLineBreak()||!this.eat(X._extends))return z;let P=this.startNodeAtNode(z);return P.checkType=z,P.extendsType=this.tsInDisallowConditionalTypesContext(()=>this.tsParseNonConditionalType()),this.expect(X.question),P.trueType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.expect(X.colon),P.falseType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.finishNode(P,"TSConditionalType")}tsIsUnambiguouslyIndexSignature(){if(this.next(),D(this.type))return this.next(),this.match(X.colon);return!1}tsInType(z){let P=this.inType;this.inType=!0;try{return z()}finally{this.inType=P}}tsTryParseIndexSignature(z){if(!(this.match(X.bracketL)&&this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this))))return;this.expect(X.bracketL);let P=this.parseIdent();P.typeAnnotation=this.tsParseTypeAnnotation(),this.resetEndLocation(P),this.expect(X.bracketR),z.parameters=[P];let L=this.tsTryParseTypeAnnotation();if(L)z.typeAnnotation=L;return this.tsParseTypeMemberSemicolon(),this.finishNode(z,"TSIndexSignature")}tsParseNoneModifiers(z){this.tsParseModifiers({modified:z,allowedModifiers:[],disallowedModifiers:["in","out"],errorTemplate:I8.InvalidModifierOnTypeParameterPositions})}tsParseTypeParameter(z=this.tsParseNoneModifiers.bind(this)){let P=this.startNode();return z(P),P.name=this.tsParseTypeParameterName(),P.constraint=this.tsEatThenParseType(X._extends),P.default=this.tsEatThenParseType(X.eq),this.finishNode(P,"TSTypeParameter")}tsParseTypeParameters(z){let P=this.startNode();if(this.tsMatchLeftRelational()||this.matchJsx("jsxTagStart"))this.next();else this.unexpected();let L={value:-1};if(P.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this,z),!1,!0,L),P.params.length===0)this.raise(this.start,I8.EmptyTypeParameters);if(L.value!==-1)this.addExtra(P,"trailingComma",L.value);return this.finishNode(P,"TSTypeParameterDeclaration")}tsTryParseTypeParameters(z){if(this.tsMatchLeftRelational())return this.tsParseTypeParameters(z)}tsTryParse(z){let P=this.getCurLookaheadState(),L=z();if(L!==void 0&&L!==!1)return L;else{this.setLookaheadState(P);return}}tsTokenCanFollowModifier(){return(this.match(X.bracketL)||this.match(X.braceL)||this.match(X.star)||this.match(X.ellipsis)||this.match(X.privateId)||this.isLiteralPropertyName())&&!this.hasPrecedingLineBreak()}tsNextTokenCanFollowModifier(){return this.next(!0),this.tsTokenCanFollowModifier()}tsParseModifier(z,P){let L=this.value;if(z.indexOf(L)!==-1&&!this.containsEsc){if(P&&this.tsIsStartOfStaticBlocks())return;if(this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this)))return L}return}tsParseModifiersByMap({modified:z,map:P}){for(let L of Object.keys(P))z[L]=P[L]}tsParseModifiers({modified:z,allowedModifiers:P,disallowedModifiers:L,stopOnStartOfClassStaticBlock:A,errorTemplate:T=I8.InvalidModifierOnTypeMember}){let h={},N=(r,m,Y8,N8)=>{if(m===Y8&&z[N8])this.raise(r.column,I8.InvalidModifiersOrder({orderedModifiers:[Y8,N8]}))},y=(r,m,Y8,N8)=>{if(z[Y8]&&m===N8||z[N8]&&m===Y8)this.raise(r.column,I8.IncompatibleModifiers({modifiers:[Y8,N8]}))};for(;;){let r=this.startLoc,m=this.tsParseModifier(P.concat(L??[]),A);if(!m)break;if(NU(m))if(z.accessibility)this.raise(this.start,I8.DuplicateAccessibilityModifier());else N(r,m,m,"override"),N(r,m,m,"static"),N(r,m,m,"readonly"),N(r,m,m,"accessor"),h.accessibility=m,z.accessibility=m;else if(si(m))if(z[m])this.raise(this.start,I8.DuplicateModifier({modifier:m}));else N(r,m,"in","out"),h[m]=m,z[m]=!0;else if(di(m))if(z[m])this.raise(this.start,I8.DuplicateModifier({modifier:m}));else y(r,m,"accessor","readonly"),y(r,m,"accessor","static"),y(r,m,"accessor","override"),h[m]=m,z[m]=!0;else if(m==="const")if(z[m])this.raise(this.start,I8.DuplicateModifier({modifier:m}));else h[m]=m,z[m]=!0;else if(Object.hasOwnProperty.call(z,m))this.raise(this.start,I8.DuplicateModifier({modifier:m}));else N(r,m,"static","readonly"),N(r,m,"static","override"),N(r,m,"override","readonly"),N(r,m,"abstract","override"),y(r,m,"declare","override"),y(r,m,"static","abstract"),h[m]=m,z[m]=!0;if(L?.includes(m))this.raise(this.start,T)}return h}tsParseInOutModifiers(z){this.tsParseModifiers({modified:z,allowedModifiers:["in","out"],disallowedModifiers:["public","private","protected","readonly","declare","abstract","override"],errorTemplate:I8.InvalidModifierOnTypeParameter})}parseMaybeUnary(z,P,L,A){if(!q?.jsx&&this.tsMatchLeftRelational())return this.tsParseTypeAssertion();else return super.parseMaybeUnary(z,P,L,A)}tsParseTypeAssertion(){if(Q)this.raise(this.start,I8.ReservedTypeAssertion);let z=this.tryParse(()=>{let P=this.startNode(),L=this.tsTryNextParseConstantContext();return P.typeAnnotation=L||this.tsNextThenParseType(),this.expect(X.relational),P.expression=this.parseMaybeUnary(),this.finishNode(P,"TSTypeAssertion")});if(z.error)return this.tsParseTypeParameters(this.tsParseConstModifier);else return z.node}tsParseTypeArguments(){let z=this.startNode();if(z.params=this.tsInType(()=>this.tsInNoContext(()=>{return this.expect(X.relational),this.tsParseDelimitedList("TypeParametersOrArguments",this.tsParseType.bind(this))})),z.params.length===0)this.raise(this.start,I8.EmptyTypeArguments);return this.exprAllowed=!1,this.expect(X.relational),this.finishNode(z,"TSTypeParameterInstantiation")}tsParseHeritageClause(z){let P=this.start,L=this.tsParseDelimitedList("HeritageClauseElement",()=>{let A=this.startNode();if(A.expression=this.tsParseEntityName(),this.tsMatchLeftRelational())A.typeParameters=this.tsParseTypeArguments();return this.finishNode(A,"TSExpressionWithTypeArguments")});if(!L.length)this.raise(P,I8.EmptyHeritageClauseType({token:z}));return L}tsParseTypeMemberSemicolon(){if(!this.eat(X.comma)&&!this.isLineTerminator())this.expect(X.semi)}tsTryParseAndCatch(z){let P=this.tryParse((L)=>z()||L());if(P.aborted||!P.node)return;if(P.error)this.setLookaheadState(P.failState);return P.node}tsParseSignatureMember(z,P){return this.tsFillSignature(X.colon,P),this.tsParseTypeMemberSemicolon(),this.finishNode(P,z)}tsParsePropertyOrMethodSignature(z,P){if(this.eat(X.question))z.optional=!0;let L=z;if(this.match(X.parenL)||this.tsMatchLeftRelational()){if(P)this.raise(z.start,I8.ReadonlyForMethodSignature);let A=L;if(A.kind&&this.tsMatchLeftRelational())this.raise(this.start,I8.AccesorCannotHaveTypeParameters);this.tsFillSignature(X.colon,A),this.tsParseTypeMemberSemicolon();let T="parameters",h="typeAnnotation";if(A.kind==="get"){if(A[T].length>0){if(this.raise(this.start,"A 'get' accesor must not have any formal parameters."),this.isThisParam(A[T][0]))this.raise(this.start,I8.AccesorCannotDeclareThisParameter)}}else if(A.kind==="set"){if(A[T].length!==1)this.raise(this.start,"A 'get' accesor must not have any formal parameters.");else{let N=A[T][0];if(this.isThisParam(N))this.raise(this.start,I8.AccesorCannotDeclareThisParameter);if(N.type==="Identifier"&&N.optional)this.raise(this.start,I8.SetAccesorCannotHaveOptionalParameter);if(N.type==="RestElement")this.raise(this.start,I8.SetAccesorCannotHaveRestParameter)}if(A[h])this.raise(A[h].start,I8.SetAccesorCannotHaveReturnType)}else A.kind="method";return this.finishNode(A,"TSMethodSignature")}else{let A=L;if(P)A.readonly=!0;let T=this.tsTryParseTypeAnnotation();if(T)A.typeAnnotation=T;return this.tsParseTypeMemberSemicolon(),this.finishNode(A,"TSPropertySignature")}}tsParseTypeMember(){let z=this.startNode();if(this.match(X.parenL)||this.tsMatchLeftRelational())return this.tsParseSignatureMember("TSCallSignatureDeclaration",z);if(this.match(X._new)){let L=this.startNode();if(this.next(),this.match(X.parenL)||this.tsMatchLeftRelational())return this.tsParseSignatureMember("TSConstructSignatureDeclaration",z);else return z.key=this.createIdentifier(L,"new"),this.tsParsePropertyOrMethodSignature(z,!1)}this.tsParseModifiers({modified:z,allowedModifiers:["readonly"],disallowedModifiers:["declare","abstract","private","protected","public","static","override"]});let P=this.tsTryParseIndexSignature(z);if(P)return P;if(this.parsePropertyName(z),!z.computed&&z.key.type==="Identifier"&&(z.key.name==="get"||z.key.name==="set")&&this.tsTokenCanFollowModifier())z.kind=z.key.name,this.parsePropertyName(z);return this.tsParsePropertyOrMethodSignature(z,!!z.readonly)}tsParseList(z,P){let L=[];while(!this.tsIsListTerminator(z))L.push(P());return L}tsParseObjectTypeMembers(){this.expect(X.braceL);let z=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(X.braceR),z}tsParseInterfaceDeclaration(z,P={}){if(this.hasFollowingLineBreak())return null;if(this.expectContextual("interface"),P.declare)z.declare=!0;if(D(this.type))z.id=this.parseIdent(),this.checkLValSimple(z.id,$0.BIND_TS_INTERFACE);else z.id=null,this.raise(this.start,I8.MissingInterfaceName);if(z.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers.bind(this)),this.eat(X._extends))z.extends=this.tsParseHeritageClause("extends");let L=this.startNode();return L.body=this.tsParseInterfaceBody(),z.body=this.finishNode(L,"TSInterfaceBody"),this.finishNode(z,"TSInterfaceDeclaration")}tsParseInterfaceBody(){this.expect(X.braceL);let z=this.inType;this.inType=!0;let P=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.inType=z,this.expect(X.braceR),P}tsParseAbstractDeclaration(z){if(this.match(X._class))return z.abstract=!0,this.parseClass(z,!0);else if(this.ts_isContextual($.interface)){if(!this.hasFollowingLineBreak())return z.abstract=!0,this.tsParseInterfaceDeclaration(z)}else this.unexpected(z.start)}tsIsDeclarationStart(){return E(this.type)}tsParseExpressionStatement(z,P){switch(P.name){case"declare":{let L=this.tsTryParseDeclare(z);if(L)return L.declare=!0,L;break}case"global":if(this.match(X.braceL)){this.enterScope(j2);let L=z;return L.global=!0,L.id=P,L.body=this.tsParseModuleBlock(),super.exitScope(),this.finishNode(L,"TSModuleDeclaration")}break;default:return this.tsParseDeclaration(z,P.name,!1)}}tsParseModuleReference(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(!1)}tsIsExportDefaultSpecifier(){let{type:z}=this,P=this.isAsyncFunction(),L=this.isLet();if(D(z)){if(P&&!this.containsEsc||L)return!1;if((z===$.type||z===$.interface)&&!this.containsEsc){let h=this.lookahead();if(D(h.type)&&!this.isContextualWithState("from",h)||h.type===X.braceL)return!1}}else if(!this.match(X._default))return!1;let A=this.nextTokenStart(),T=this.isUnparsedContextual(A,"from");if(this.input.charCodeAt(A)===44||D(this.type)&&T)return!0;if(this.match(X._default)&&T){let h=this.input.charCodeAt(this.nextTokenStartSince(A+4));return h===34||h===39}return!1}tsInAmbientContext(z){let P=this.isAmbientContext;this.isAmbientContext=!0;try{return z()}finally{this.isAmbientContext=P}}tsCheckLineTerminator(z){if(z){if(this.hasFollowingLineBreak())return!1;return this.next(),!0}return!this.isLineTerminator()}tsParseModuleOrNamespaceDeclaration(z,P=!1){if(z.id=this.parseIdent(),!P)this.checkLValSimple(z.id,$0.BIND_TS_NAMESPACE);if(this.eat(X.dot)){let L=this.startNode();this.tsParseModuleOrNamespaceDeclaration(L,!0),z.body=L}else this.enterScope(j2),z.body=this.tsParseModuleBlock(),super.exitScope();return this.finishNode(z,"TSModuleDeclaration")}checkLValSimple(z,P=$0.BIND_NONE,L){if(z.type==="TSNonNullExpression"||z.type==="TSAsExpression")z=z.expression;return super.checkLValSimple(z,P,L)}tsParseTypeAliasDeclaration(z){return z.id=this.parseIdent(),this.checkLValSimple(z.id,$0.BIND_TS_TYPE),z.typeAnnotation=this.tsInType(()=>{if(z.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers.bind(this)),this.expect(X.eq),this.ts_isContextual($.interface)&&this.lookahead().type!==X.dot){let P=this.startNode();return this.next(),this.finishNode(P,"TSIntrinsicKeyword")}return this.tsParseType()}),this.semicolon(),this.finishNode(z,"TSTypeAliasDeclaration")}tsParseDeclaration(z,P,L){switch(P){case"abstract":if(this.tsCheckLineTerminator(L)&&(this.match(X._class)||D(this.type)))return this.tsParseAbstractDeclaration(z);break;case"module":if(this.tsCheckLineTerminator(L)){if(this.match(X.string))return this.tsParseAmbientExternalModuleDeclaration(z);else if(D(this.type))return this.tsParseModuleOrNamespaceDeclaration(z)}break;case"namespace":if(this.tsCheckLineTerminator(L)&&D(this.type))return this.tsParseModuleOrNamespaceDeclaration(z);break;case"type":if(this.tsCheckLineTerminator(L)&&D(this.type))return this.tsParseTypeAliasDeclaration(z);break}}tsTryParseExportDeclaration(){return this.tsParseDeclaration(this.startNode(),this.value,!0)}tsParseImportEqualsDeclaration(z,P){z.isExport=P||!1,z.id=this.parseIdent(),this.checkLValSimple(z.id,$0.BIND_LEXICAL),super.expect(X.eq);let L=this.tsParseModuleReference();if(z.importKind==="type"&&L.type!=="TSExternalModuleReference")this.raise(L.start,I8.ImportAliasHasImportType);return z.moduleReference=L,super.semicolon(),this.finishNode(z,"TSImportEqualsDeclaration")}isExportDefaultSpecifier(){if(this.tsIsDeclarationStart())return!1;let{type:z}=this;if(D(z)){if(this.isContextual("async")||this.isContextual("let"))return!1;if((z===$.type||z===$.interface)&&!this.containsEsc){let A=this.lookahead();if(D(A.type)&&!this.isContextualWithState("from",A)||A.type===X.braceL)return!1}}else if(!this.match(X._default))return!1;let P=this.nextTokenStart(),L=this.isUnparsedContextual(P,"from");if(this.input.charCodeAt(P)===44||D(this.type)&&L)return!0;if(this.match(X._default)&&L){let A=this.input.charCodeAt(this.nextTokenStartSince(P+4));return A===34||A===39}return!1}parseTemplate({isTagged:z=!1}={}){let P=this.startNode();this.next(),P.expressions=[];let L=this.parseTemplateElement({isTagged:z});P.quasis=[L];while(!L.tail){if(this.type===X.eof)this.raise(this.pos,"Unterminated template literal");this.expect(X.dollarBraceL),P.expressions.push(this.inType?this.tsParseType():this.parseExpression()),this.expect(X.braceR),P.quasis.push(L=this.parseTemplateElement({isTagged:z}))}return this.next(),this.finishNode(P,"TemplateLiteral")}parseFunction(z,P,L,A,T){if(this.initFunction(z),this.ecmaVersion>=9||this.ecmaVersion>=6&&!A){if(this.type===X.star&&P&vU)this.unexpected();z.generator=this.eat(X.star)}if(this.ecmaVersion>=8)z.async=!!A;if(P&m4)z.id=P&ai&&this.type!==X.name?null:this.parseIdent();let h=this.yieldPos,N=this.awaitPos,y=this.awaitIdentPos,r=this.maybeInArrowParameters;if(this.maybeInArrowParameters=!1,this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(gY(z.async,z.generator)),!(P&m4))z.id=this.type===X.name?this.parseIdent():null;this.parseFunctionParams(z);let m=P&m4;if(this.parseFunctionBody(z,L,!1,T,{isFunctionDeclaration:m}),this.yieldPos=h,this.awaitPos=N,this.awaitIdentPos=y,P&m4&&z.id&&!(P&vU))if(z.body)this.checkLValSimple(z.id,this.strict||z.generator||z.async?this.treatFunctionsAsVar?$0.BIND_VAR:$0.BIND_LEXICAL:$0.BIND_FUNCTION);else this.checkLValSimple(z.id,$0.BIND_NONE);return this.maybeInArrowParameters=r,this.finishNode(z,m?"FunctionDeclaration":"FunctionExpression")}parseFunctionBody(z,P=!1,L=!1,A=!1,T){if(this.match(X.colon))z.returnType=this.tsParseTypeOrTypePredicateAnnotation(X.colon);let h=T?.isFunctionDeclaration?"TSDeclareFunction":T?.isClassMethod?"TSDeclareMethod":void 0;if(h&&!this.match(X.braceL)&&this.isLineTerminator())return this.exitScope(),this.finishNode(z,h);if(h==="TSDeclareFunction"&&this.isAmbientContext){if(this.raise(z.start,I8.DeclareFunctionHasImplementation),z.declare)return super.parseFunctionBody(z,P,L,!1),this.finishNode(z,h)}return super.parseFunctionBody(z,P,L,A),z}parseNew(){if(this.containsEsc)this.raiseRecoverable(this.start,"Escape sequence in keyword new");let z=this.startNode(),P=this.parseIdent(!0);if(this.ecmaVersion>=6&&this.eat(X.dot)){z.meta=P;let N=this.containsEsc;if(z.property=this.parseIdent(!0),z.property.name!=="target")this.raiseRecoverable(z.property.start,"The only valid meta property for new is 'new.target'");if(N)this.raiseRecoverable(z.start,"'new.target' must not contain escaped characters");if(!this.allowNewDotTarget)this.raiseRecoverable(z.start,"'new.target' can only be used in functions and class static block");return this.finishNode(z,"MetaProperty")}let L=this.start,A=this.startLoc,T=this.type===X._import;if(z.callee=this.parseSubscripts(this.parseExprAtom(),L,A,!0,!1),T&&z.callee.type==="ImportExpression")this.raise(L,"Cannot use new with import()");let{callee:h}=z;if(h.type==="TSInstantiationExpression"&&!h.extra?.parenthesized)z.typeArguments=h.typeArguments,z.callee=h.expression;if(this.eat(X.parenL))z.arguments=this.parseExprList(X.parenR,this.ecmaVersion>=8,!1);else z.arguments=[];return this.finishNode(z,"NewExpression")}parseExprOp(z,P,L,A,T){if(X._in.binop>A&&!this.hasPrecedingLineBreak()){let h;if(this.isContextual("as"))h="TSAsExpression";if(this.isContextual("satisfies"))h="TSSatisfiesExpression";if(h){let N=this.startNodeAt(P,L);N.expression=z;let y=this.tsTryNextParseConstantContext();if(y)N.typeAnnotation=y;else N.typeAnnotation=this.tsNextThenParseType();return this.finishNode(N,h),this.reScan_lt_gt(),this.parseExprOp(N,P,L,A,T)}}return super.parseExprOp(z,P,L,A,T)}parseImportSpecifiers(){let z=[],P=!0;if(H.tokenIsIdentifier(this.type)){if(z.push(this.parseImportDefaultSpecifier()),!this.eat(X.comma))return z}if(this.type===X.star)return z.push(this.parseImportNamespaceSpecifier()),z;this.expect(X.braceL);while(!this.eat(X.braceR)){if(!P){if(this.expect(X.comma),this.afterTrailingComma(X.braceR))break}else P=!1;z.push(this.parseImportSpecifier())}return z}parseImport(z){let P=this.lookahead();if(z.importKind="value",this.importOrExportOuterKind="value",D(P.type)||this.match(X.star)||this.match(X.braceL)){let L=this.lookahead(2);if(L.type!==X.comma&&!this.isContextualWithState("from",L)&&L.type!==X.eq&&this.ts_eatContextualWithState("type",1,P))this.importOrExportOuterKind="type",z.importKind="type",P=this.lookahead(),L=this.lookahead(2);if(D(P.type)&&L.type===X.eq){this.next();let A=this.tsParseImportEqualsDeclaration(z);return this.importOrExportOuterKind="value",A}}if(this.next(),this.type===X.string)z.specifiers=[],z.source=this.parseExprAtom();else z.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),z.source=this.type===X.string?this.parseExprAtom():this.unexpected();if(this.parseMaybeImportAttributes(z),this.semicolon(),this.finishNode(z,"ImportDeclaration"),this.importOrExportOuterKind="value",z.importKind==="type"&&z.specifiers.length>1&&z.specifiers[0].type==="ImportDefaultSpecifier")this.raise(z.start,I8.TypeImportCannotSpecifyDefaultAndNamed);return z}parseExportDefaultDeclaration(){if(this.isAbstractClass()){let z=this.startNode();return this.next(),z.abstract=!0,this.parseClass(z,!0)}if(this.match($.interface)){let z=this.tsParseInterfaceDeclaration(this.startNode());if(z)return z}return super.parseExportDefaultDeclaration()}parseExportAllDeclaration(z,P){if(this.ecmaVersion>=11)if(this.eatContextual("as"))z.exported=this.parseModuleExportName(),this.checkExport(P,z.exported,this.lastTokStart);else z.exported=null;if(this.expectContextual("from"),this.type!==X.string)this.unexpected();return z.source=this.parseExprAtom(),this.parseMaybeImportAttributes(z),this.semicolon(),this.finishNode(z,"ExportAllDeclaration")}parseDynamicImport(z){if(this.next(),z.source=this.parseMaybeAssign(),this.eat(X.comma)){let P=this.parseExpression();z.arguments=[P]}if(!this.eat(X.parenR)){let P=this.start;if(this.eat(X.comma)&&this.eat(X.parenR))this.raiseRecoverable(P,"Trailing comma is not allowed in import()");else this.unexpected(P)}return this.finishNode(z,"ImportExpression")}parseExport(z,P){let L=this.lookahead();if(this.ts_eatWithState(X._import,2,L)){if(this.ts_isContextual($.type)&&this.lookaheadCharCode()!==61)z.importKind="type",this.importOrExportOuterKind="type",this.next();else z.importKind="value",this.importOrExportOuterKind="value";let A=this.tsParseImportEqualsDeclaration(z,!0);return this.importOrExportOuterKind=void 0,A}else if(this.ts_eatWithState(X.eq,2,L)){let A=z;return A.expression=this.parseExpression(),this.semicolon(),this.importOrExportOuterKind=void 0,this.finishNode(A,"TSExportAssignment")}else if(this.ts_eatContextualWithState("as",2,L)){let A=z;return this.expectContextual("namespace"),A.id=this.parseIdent(),this.semicolon(),this.importOrExportOuterKind=void 0,this.finishNode(A,"TSNamespaceExportDeclaration")}else{let A=this.lookahead(2).type;if(this.ts_isContextualWithState(L,$.type)&&(A===X.braceL||A===X.star))this.next(),this.importOrExportOuterKind="type",z.exportKind="type";else this.importOrExportOuterKind="value",z.exportKind="value";if(this.next(),this.eat(X.star))return this.parseExportAllDeclaration(z,P);if(this.eat(X._default))return this.checkExport(P,"default",this.lastTokStart),z.declaration=this.parseExportDefaultDeclaration(),this.finishNode(z,"ExportDefaultDeclaration");if(this.shouldParseExportStatement()){if(z.declaration=this.parseExportDeclaration(z),z.declaration.type==="VariableDeclaration")this.checkVariableExport(P,z.declaration.declarations);else this.checkExport(P,z.declaration.id,z.declaration.id.start);z.specifiers=[],z.source=null}else{if(z.declaration=null,z.specifiers=this.parseExportSpecifiers(P),this.eatContextual("from")){if(this.type!==X.string)this.unexpected();z.source=this.parseExprAtom(),this.parseMaybeImportAttributes(z)}else{for(let T of z.specifiers)if(this.checkUnreserved(T.local),this.checkLocalExport(T.local),T.local.type==="Literal")this.raise(T.local.start,"A string literal cannot be used as an exported binding without `from`.");z.source=null}this.semicolon()}return this.finishNode(z,"ExportNamedDeclaration")}}checkExport(z,P,L){if(!z)return;if(typeof P!=="string")P=P.type==="Identifier"?P.name:P.value;z[P]=!0}parseMaybeDefault(z,P,L){let A=super.parseMaybeDefault(z,P,L);if(A.type==="AssignmentPattern"&&A.typeAnnotation&&A.right.start<A.typeAnnotation.start)this.raise(A.typeAnnotation.start,I8.TypeAnnotationAfterAssign);return A}typeCastToParameter(z){return z.expression.typeAnnotation=z.typeAnnotation,this.resetEndLocation(z.expression,z.typeAnnotation.end,z.typeAnnotation.loc?.end),z.expression}toAssignableList(z,P){if(!z)z=[];for(let L=0;L<z.length;L++){let A=z[L];if(A?.type==="TSTypeCastExpression")z[L]=this.typeCastToParameter(A)}return super.toAssignableList(z,P)}reportReservedArrowTypeParam(z){if(z.params.length===1&&!z.extra?.trailingComma&&Q)this.raise(z.start,I8.ReservedArrowTypeParam)}parseExprAtom(z,P,L){if(this.type===$.jsxText)return this.jsx_parseText();else if(this.type===$.jsxTagStart)return this.jsx_parseElement();else if(this.type===$.at)return this.parseDecorators(),this.parseExprAtom();else if(D(this.type)){let A=this.potentialArrowAt===this.start,T=this.start,h=this.startLoc,N=this.containsEsc,y=this.parseIdent(!1);if(this.ecmaVersion>=8&&!N&&y.name==="async"&&!this.canInsertSemicolon()&&this.eat(X._function))return this.overrideContext(M.f_expr),this.parseFunction(this.startNodeAt(T,h),0,!1,!0,P);if(A&&!this.canInsertSemicolon()){if(this.eat(X.arrow))return this.parseArrowExpression(this.startNodeAt(T,h),[y],!1,P);if(this.ecmaVersion>=8&&y.name==="async"&&this.type===X.name&&!N&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc)){if(y=this.parseIdent(!1),this.canInsertSemicolon()||!this.eat(X.arrow))this.unexpected();return this.parseArrowExpression(this.startNodeAt(T,h),[y],!0,P)}}return y}else return super.parseExprAtom(z,P,L)}parseExprAtomDefault(){if(D(this.type)){let z=this.potentialArrowAt===this.start,P=this.containsEsc,L=this.parseIdent();if(!P&&L.name==="async"&&!this.canInsertSemicolon()){let{type:A}=this;if(A===X._function)return this.next(),this.parseFunction(this.startNodeAtNode(L),void 0,!0,!0);else if(D(A))if(this.lookaheadCharCode()===61){let T=this.parseIdent(!1);if(this.canInsertSemicolon()||!this.eat(X.arrow))this.unexpected();return this.parseArrowExpression(this.startNodeAtNode(L),[T],!0)}else return L}if(z&&this.match(X.arrow)&&!this.canInsertSemicolon())return this.next(),this.parseArrowExpression(this.startNodeAtNode(L),[L],!1);return L}else this.unexpected()}parseIdentNode(){let z=this.startNode();if(f(this.type)&&!((this.type.keyword==="class"||this.type.keyword==="function")&&(this.lastTokEnd!==this.lastTokStart+1||this.input.charCodeAt(this.lastTokStart)!==46)))z.name=this.value;else return super.parseIdentNode();return z}parseVarStatement(z,P,L=!1){let{isAmbientContext:A}=this;this.next(),super.parseVar(z,!1,P,L||A),this.semicolon();let T=this.finishNode(z,"VariableDeclaration");if(!A)return T;for(let{id:h,init:N}of T.declarations){if(!N)continue;if(P!=="const"||!!h.typeAnnotation)this.raise(N.start,I8.InitializerNotAllowedInAmbientContext);else if(N.type!=="StringLiteral"&&N.type!=="BooleanLiteral"&&N.type!=="NumericLiteral"&&N.type!=="BigIntLiteral"&&(N.type!=="TemplateLiteral"||N.expressions.length>0)&&!oi(N))this.raise(N.start,I8.ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference)}return T}parseStatement(z,P,L){if(this.match($.at))this.parseDecorators(!0);if(this.match(X._const)&&this.isLookaheadContextual("enum")){let A=this.startNode();return this.expect(X._const),this.tsParseEnumDeclaration(A,{const:!0})}if(this.ts_isContextual($.enum))return this.tsParseEnumDeclaration(this.startNode());if(this.ts_isContextual($.interface)){let A=this.tsParseInterfaceDeclaration(this.startNode());if(A)return A}return super.parseStatement(z,P,L)}parseAccessModifier(){return this.tsParseModifier(["public","protected","private"])}parsePostMemberNameModifiers(z){if(this.eat(X.question))z.optional=!0;if(z.readonly&&this.match(X.parenL))this.raise(z.start,I8.ClassMethodHasReadonly);if(z.declare&&this.match(X.parenL))this.raise(z.start,I8.ClassMethodHasDeclare)}parseExpressionStatement(z,P){return(P.type==="Identifier"?this.tsParseExpressionStatement(z,P):void 0)||super.parseExpressionStatement(z,P)}shouldParseExportStatement(){if(this.tsIsDeclarationStart())return!0;if(this.match($.at))return!0;return super.shouldParseExportStatement()}parseConditional(z,P,L,A,T){if(this.eat(X.question)){let h=this.startNodeAt(P,L);return h.test=z,h.consequent=this.parseMaybeAssign(),this.expect(X.colon),h.alternate=this.parseMaybeAssign(A),this.finishNode(h,"ConditionalExpression")}return z}parseMaybeConditional(z,P){let L=this.start,A=this.startLoc,T=this.parseExprOps(z,P);if(this.checkExpressionErrors(P))return T;if(!this.maybeInArrowParameters||!this.match(X.question))return this.parseConditional(T,L,A,z,P);let h=this.tryParse(()=>this.parseConditional(T,L,A,z,P));if(!h.node){if(h.error)this.setOptionalParametersError(P,h.error);return T}if(h.error)this.setLookaheadState(h.failState);return h.node}parseParenItem(z){let P=this.start,L=this.startLoc;if(z=super.parseParenItem(z),this.eat(X.question))z.optional=!0,this.resetEndLocation(z);if(this.match(X.colon)){let A=this.startNodeAt(P,L);return A.expression=z,A.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(A,"TSTypeCastExpression")}return z}parseExportDeclaration(z){if(!this.isAmbientContext&&this.ts_isContextual($.declare))return this.tsInAmbientContext(()=>this.parseExportDeclaration(z));let P=this.start,L=this.startLoc,A=this.eatContextual("declare");if(A&&(this.ts_isContextual($.declare)||!this.shouldParseExportStatement()))this.raise(this.start,I8.ExpectedAmbientAfterExportDeclare);let h=D(this.type)&&this.tsTryParseExportDeclaration()||this.parseStatement(null);if(!h)return null;if(h.type==="TSInterfaceDeclaration"||h.type==="TSTypeAliasDeclaration"||A)z.exportKind="type";if(A)this.resetStartLocation(h,P,L),h.declare=!0;return h}parseClassId(z,P){if(!P&&this.isContextual("implements"))return;super.parseClassId(z,P);let L=this.tsTryParseTypeParameters(this.tsParseInOutModifiers.bind(this));if(L)z.typeParameters=L}parseClassPropertyAnnotation(z){if(!z.optional){if(this.value==="!"&&this.eat(X.prefix))z.definite=!0;else if(this.eat(X.question))z.optional=!0}let P=this.tsTryParseTypeAnnotation();if(P)z.typeAnnotation=P}parseClassField(z){if(z.key.type==="PrivateIdentifier"){if(z.abstract)this.raise(z.start,I8.PrivateElementHasAbstract);if(z.accessibility)this.raise(z.start,I8.PrivateElementHasAccessibility({modifier:z.accessibility}));this.parseClassPropertyAnnotation(z)}else{if(this.parseClassPropertyAnnotation(z),this.isAmbientContext&&!(z.readonly&&!z.typeAnnotation)&&this.match(X.eq))this.raise(this.start,I8.DeclareClassFieldHasInitializer);if(z.abstract&&this.match(X.eq)){let{key:L}=z;this.raise(this.start,I8.AbstractPropertyHasInitializer({propertyName:L.type==="Identifier"&&!z.computed?L.name:`[${this.input.slice(L.start,L.end)}]`}))}}return super.parseClassField(z)}parseClassMethod(z,P,L,A){let T=z.kind==="constructor",h=z.key.type==="PrivateIdentifier",N=this.tsTryParseTypeParameters(this.tsParseConstModifier);if(h){if(N)z.typeParameters=N;if(z.accessibility)this.raise(z.start,I8.PrivateMethodsHasAccessibility({modifier:z.accessibility}))}else if(N&&T)this.raise(N.start,I8.ConstructorHasTypeParameters);let{declare:y=!1,kind:r}=z;if(y&&(r==="get"||r==="set"))this.raise(z.start,I8.DeclareAccessor({kind:r}));if(N)z.typeParameters=N;let m=z.key;if(z.kind==="constructor"){if(P)this.raise(m.start,"Constructor can't be a generator");if(L)this.raise(m.start,"Constructor can't be an async method")}else if(z.static&&fU(z,"prototype"))this.raise(m.start,"Classes may not have a static property named prototype");let Y8=z.value=this.parseMethod(P,L,A,!0,z);if(z.kind==="get"&&Y8.params.length!==0)this.raiseRecoverable(Y8.start,"getter should have no params");if(z.kind==="set"&&Y8.params.length!==1)this.raiseRecoverable(Y8.start,"setter should have exactly one param");if(z.kind==="set"&&Y8.params[0].type==="RestElement")this.raiseRecoverable(Y8.params[0].start,"Setter cannot use rest params");return this.finishNode(z,"MethodDefinition")}isClassMethod(){return this.match(X.relational)}parseClassElement(z){if(this.eat(X.semi))return null;let P=this.startNode(),L="",A=!1,T=!1,h="method",N=!1,y=["declare","private","public","protected","accessor","override","abstract","readonly","static"],r=this.tsParseModifiers({modified:P,allowedModifiers:y,disallowedModifiers:["in","out"],stopOnStartOfClassStaticBlock:!0,errorTemplate:I8.InvalidModifierOnTypeParameterPositions});N=Boolean(r.static);let m=()=>{if(this.tsIsStartOfStaticBlocks()){if(this.next(),this.next(),this.tsHasSomeModifiers(P,y))this.raise(this.start,I8.StaticBlockCannotHaveModifier);if(this.ecmaVersion>=13)return super.parseClassStaticBlock(P),P}else{let Y8=this.tsTryParseIndexSignature(P);if(Y8){if(P.abstract)this.raise(P.start,I8.IndexSignatureHasAbstract);if(P.accessibility)this.raise(P.start,I8.IndexSignatureHasAccessibility({modifier:P.accessibility}));if(P.declare)this.raise(P.start,I8.IndexSignatureHasDeclare);if(P.override)this.raise(P.start,I8.IndexSignatureHasOverride);return Y8}if(!this.inAbstractClass&&P.abstract)this.raise(P.start,I8.NonAbstractClassHasAbstractMethod);if(P.override){if(!z)this.raise(P.start,I8.OverrideNotInSubClass)}if(P.static=N,N){if(!(this.isClassElementNameStart()||this.type===X.star))L="static"}if(!L&&this.ecmaVersion>=8&&this.eatContextual("async"))if((this.isClassElementNameStart()||this.type===X.star)&&!this.canInsertSemicolon())T=!0;else L="async";if(!L&&(this.ecmaVersion>=9||!T)&&this.eat(X.star))A=!0;if(!L&&!T&&!A){let N8=this.value;if(this.eatContextual("get")||this.eatContextual("set"))if(this.isClassElementNameStart())h=N8;else L=N8}if(L)P.computed=!1,P.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),P.key.name=L,this.finishNode(P.key,"Identifier");else this.parseClassElementName(P);if(this.parsePostMemberNameModifiers(P),this.isClassMethod()||this.ecmaVersion<13||this.type===X.parenL||h!=="method"||A||T){let N8=!P.static&&fU(P,"constructor"),w8=N8&&z;if(N8&&h!=="method")this.raise(P.key.start,"Constructor can't have get/set modifier");P.kind=N8?"constructor":h,this.parseClassMethod(P,A,T,w8)}else this.parseClassField(P);return P}};if(P.declare)this.tsInAmbientContext(m);else m();return P}isClassElementNameStart(){if(this.tsIsIdentifier())return!0;return super.isClassElementNameStart()}parseClassSuper(z){if(super.parseClassSuper(z),z.superClass&&(this.tsMatchLeftRelational()||this.match(X.bitShift)))z.superTypeParameters=this.tsParseTypeArgumentsInExpression();if(this.eatContextual("implements"))z.implements=this.tsParseHeritageClause("implements")}parseFunctionParams(z){let P=this.tsTryParseTypeParameters(this.tsParseConstModifier);if(P)z.typeParameters=P;super.parseFunctionParams(z)}parseVarId(z,P){if(super.parseVarId(z,P),z.id.type==="Identifier"&&!this.hasPrecedingLineBreak()&&this.value==="!"&&this.eat(X.prefix))z.definite=!0;let L=this.tsTryParseTypeAnnotation();if(L)z.id.typeAnnotation=L,this.resetEndLocation(z.id)}parseArrowExpression(z,P,L,A){if(this.match(X.colon))z.returnType=this.tsParseTypeAnnotation();let T=this.yieldPos,h=this.awaitPos,N=this.awaitIdentPos;this.enterScope(gY(L,!1)|$0.SCOPE_ARROW),this.initFunction(z);let y=this.maybeInArrowParameters;if(this.ecmaVersion>=8)z.async=!!L;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.maybeInArrowParameters=!0,z.params=this.toAssignableList(P,!0),this.maybeInArrowParameters=!1,this.parseFunctionBody(z,!0,!1,A),this.yieldPos=T,this.awaitPos=h,this.awaitIdentPos=N,this.maybeInArrowParameters=y,this.finishNode(z,"ArrowFunctionExpression")}parseMaybeAssignOrigin(z,P,L){if(this.isContextual("yield"))if(this.inGenerator)return this.parseYield(z);else this.exprAllowed=!1;let A=!1,T=-1,h=-1,N=-1;if(P)T=P.parenthesizedAssign,h=P.trailingComma,N=P.doubleProto,P.parenthesizedAssign=P.trailingComma=-1;else P=new I2,A=!0;let y=this.start,r=this.startLoc;if(this.type===X.parenL||D(this.type))this.potentialArrowAt=this.start,this.potentialArrowInForAwait=z==="await";let m=this.parseMaybeConditional(z,P);if(L)m=L.call(this,m,y,r);if(this.type.isAssign){let Y8=this.startNodeAt(y,r);if(Y8.operator=this.value,this.type===X.eq)m=this.toAssignable(m,!0,P);if(!A)P.parenthesizedAssign=P.trailingComma=P.doubleProto=-1;if(P.shorthandAssign>=m.start)P.shorthandAssign=-1;if(!this.maybeInArrowParameters)if(this.type===X.eq)this.checkLValPattern(m);else this.checkLValSimple(m);if(Y8.left=m,this.next(),Y8.right=this.parseMaybeAssign(z),N>-1)P.doubleProto=N;return this.finishNode(Y8,"AssignmentExpression")}else if(A)this.checkExpressionErrors(P,!0);if(T>-1)P.parenthesizedAssign=T;if(h>-1)P.trailingComma=h;return m}parseMaybeAssign(z,P,L){let A,T,h;if(q?.jsx&&(this.matchJsx("jsxTagStart")||this.tsMatchLeftRelational())){if(A=this.cloneCurLookaheadState(),T=this.tryParse(()=>this.parseMaybeAssignOrigin(z,P,L),A),!T.error)return T.node;let r=this.context,m=r[r.length-1],Y8=r[r.length-2];if(m===H.tokContexts.tc_oTag&&Y8===H.tokContexts.tc_expr)r.pop(),r.pop();else if(m===H.tokContexts.tc_oTag||m===H.tokContexts.tc_expr)r.pop()}if(!T?.error&&!this.tsMatchLeftRelational())return this.parseMaybeAssignOrigin(z,P,L);if(!A||this.compareLookaheadState(A,this.getCurLookaheadState()))A=this.cloneCurLookaheadState();let N,y=this.tryParse((r)=>{N=this.tsParseTypeParameters(this.tsParseConstModifier);let m=this.parseMaybeAssignOrigin(z,P,L);if(m.type!=="ArrowFunctionExpression"||m.extra?.parenthesized)r();if(N?.params.length!==0)this.resetStartLocationFromNode(m,N);return m.typeParameters=N,m},A);if(!y.error&&!y.aborted){if(N)this.reportReservedArrowTypeParam(N);return y.node}if(!T){if(KU(!0),h=this.tryParse(()=>this.parseMaybeAssignOrigin(z,P,L),A),!h.error)return h.node}if(T?.node)return this.setLookaheadState(T.failState),T.node;if(y.node){if(this.setLookaheadState(y.failState),N)this.reportReservedArrowTypeParam(N);return y.node}if(h?.node)return this.setLookaheadState(h.failState),h.node;if(T?.thrown)throw T.error;if(y.thrown)throw y.error;if(h?.thrown)throw h.error;throw T?.error||y.error||h?.error}parseAssignableListItem(z){let P=[];while(this.match($.at))P.push(this.parseDecorator());let L=this.start,A=this.startLoc,T,h=!1,N=!1;if(z!==void 0){let m={};if(this.tsParseModifiers({modified:m,allowedModifiers:["public","private","protected","override","readonly"]}),T=m.accessibility,N=m.override,h=m.readonly,z===!1&&(T||h||N))this.raise(A.column,I8.UnexpectedParameterModifier)}let y=this.parseMaybeDefault(L,A);this.parseBindingListItem(y);let r=this.parseMaybeDefault(y.start,y.loc.start,y);if(P.length)r.decorators=P;if(T||h||N){let m=this.startNodeAt(L,A);if(T)m.accessibility=T;if(h)m.readonly=h;if(N)m.override=N;if(r.type!=="Identifier"&&r.type!=="AssignmentPattern")this.raise(m.start,I8.UnsupportedParameterPropertyKind);return m.parameter=r,this.finishNode(m,"TSParameterProperty")}return r}checkLValInnerPattern(z,P=$0.BIND_NONE,L){switch(z.type){case"TSParameterProperty":this.checkLValInnerPattern(z.parameter,P,L);break;default:{super.checkLValInnerPattern(z,P,L);break}}}parseBindingListItem(z){if(this.eat(X.question)){if(z.type!=="Identifier"&&!this.isAmbientContext&&!this.inType)this.raise(z.start,I8.PatternIsOptional);z.optional=!0}let P=this.tsTryParseTypeAnnotation();if(P)z.typeAnnotation=P;return this.resetEndLocation(z),z}isAssignable(z,P){switch(z.type){case"TSTypeCastExpression":return this.isAssignable(z.expression,P);case"TSParameterProperty":return!0;case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":return!0;case"ObjectExpression":{let L=z.properties.length-1;return z.properties.every((A,T)=>{return A.type!=="ObjectMethod"&&(T===L||A.type!=="SpreadElement")&&this.isAssignable(A)})}case"Property":case"ObjectProperty":return this.isAssignable(z.value);case"SpreadElement":return this.isAssignable(z.argument);case"ArrayExpression":return z.elements.every((L)=>L===null||this.isAssignable(L));case"AssignmentExpression":return z.operator==="=";case"ParenthesizedExpression":return this.isAssignable(z.expression);case"MemberExpression":case"OptionalMemberExpression":return!P;default:return!1}}toAssignable(z,P=!1,L=new I2){switch(z.type){case"ParenthesizedExpression":return this.toAssignableParenthesizedExpression(z,P,L);case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":if(P);else this.raise(z.start,I8.UnexpectedTypeCastInParameter);return this.toAssignable(z.expression,P,L);case"MemberExpression":break;case"AssignmentExpression":if(!P&&z.left.type==="TSTypeCastExpression")z.left=this.typeCastToParameter(z.left);return super.toAssignable(z,P,L);case"TSTypeCastExpression":return this.typeCastToParameter(z);default:return super.toAssignable(z,P,L)}return z}toAssignableParenthesizedExpression(z,P,L){switch(z.expression.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":case"ParenthesizedExpression":return this.toAssignable(z.expression,P,L);default:return super.toAssignable(z,P,L)}}parseBindingAtom(){switch(this.type){case X._this:return this.parseIdent(!0);default:return super.parseBindingAtom()}}shouldParseArrow(z){let P;if(this.match(X.colon))P=z.every((L)=>this.isAssignable(L,!0));else P=!this.canInsertSemicolon();if(P){if(this.match(X.colon)){let L=this.tryParse((A)=>{let T=this.tsParseTypeOrTypePredicateAnnotation(X.colon);if(this.canInsertSemicolon()||!this.match(X.arrow))A();return T});if(L.aborted)return this.shouldParseArrowReturnType=void 0,!1;if(!L.thrown){if(L.error)this.setLookaheadState(L.failState);this.shouldParseArrowReturnType=L.node}}if(!this.match(X.arrow))return this.shouldParseArrowReturnType=void 0,!1;return!0}return this.shouldParseArrowReturnType=void 0,P}parseParenArrowList(z,P,L,A){let T=this.startNodeAt(z,P);return T.returnType=this.shouldParseArrowReturnType,this.shouldParseArrowReturnType=void 0,this.parseArrowExpression(T,L,!1,A)}parseParenAndDistinguishExpression(z,P){let L=this.start,A=this.startLoc,T,h=this.ecmaVersion>=8;if(this.ecmaVersion>=6){let N=this.maybeInArrowParameters;this.maybeInArrowParameters=!0,this.next();let y=this.start,r=this.startLoc,m=[],Y8=!0,N8=!1,w8=new I2,g8=this.yieldPos,R8=this.awaitPos,a8;this.yieldPos=0,this.awaitPos=0;while(this.type!==X.parenR)if(Y8?Y8=!1:this.expect(X.comma),h&&this.afterTrailingComma(X.parenR,!0)){N8=!0;break}else if(this.type===X.ellipsis){if(a8=this.start,m.push(this.parseParenItem(this.parseRestBinding())),this.type===X.comma)this.raise(this.start,"Comma is not permitted after the rest element");break}else m.push(this.parseMaybeAssign(P,w8,this.parseParenItem));let B8=this.lastTokEnd,$8=this.lastTokEndLoc;if(this.expect(X.parenR),this.maybeInArrowParameters=N,z&&this.shouldParseArrow(m)&&this.eat(X.arrow))return this.checkPatternErrors(w8,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=g8,this.awaitPos=R8,this.parseParenArrowList(L,A,m,P);if(!m.length||N8)this.unexpected(this.lastTokStart);if(a8)this.unexpected(a8);if(this.checkExpressionErrors(w8,!0),this.yieldPos=g8||this.yieldPos,this.awaitPos=R8||this.awaitPos,m.length>1)T=this.startNodeAt(y,r),T.expressions=m,this.finishNodeAt(T,"SequenceExpression",B8,$8);else T=m[0]}else T=this.parseParenExpression();if(this.options.preserveParens){let N=this.startNodeAt(L,A);return N.expression=T,this.finishNode(N,"ParenthesizedExpression")}else return T}parseTaggedTemplateExpression(z,P,L,A){let T=this.startNodeAt(P,L);if(T.tag=z,T.quasi=this.parseTemplate({isTagged:!0}),A)this.raise(P,"Tagged Template Literals are not allowed in optionalChain.");return this.finishNode(T,"TaggedTemplateExpression")}shouldParseAsyncArrow(){if(this.match(X.colon)){let z=this.tryParse((P)=>{let L=this.tsParseTypeOrTypePredicateAnnotation(X.colon);if(this.canInsertSemicolon()||!this.match(X.arrow))P();return L});if(z.aborted)return this.shouldParseAsyncArrowReturnType=void 0,!1;if(!z.thrown){if(z.error)this.setLookaheadState(z.failState);return this.shouldParseAsyncArrowReturnType=z.node,!this.canInsertSemicolon()&&this.eat(X.arrow)}}else return!this.canInsertSemicolon()&&this.eat(X.arrow)}parseSubscriptAsyncArrow(z,P,L,A){let T=this.startNodeAt(z,P);return T.returnType=this.shouldParseAsyncArrowReturnType,this.shouldParseAsyncArrowReturnType=void 0,this.parseArrowExpression(T,L,!0,A)}parseExprList(z,P,L,A){let T=[],h=!0;while(!this.eat(z)){if(!h){if(this.expect(X.comma),P&&this.afterTrailingComma(z))break}else h=!1;let N;if(L&&this.type===X.comma)N=null;else if(this.type===X.ellipsis){if(N=this.parseSpread(A),this.maybeInArrowParameters&&this.match(X.colon))N.typeAnnotation=this.tsParseTypeAnnotation();if(A&&this.type===X.comma&&A.trailingComma<0)A.trailingComma=this.start}else N=this.parseMaybeAssign(!1,A,this.parseParenItem);T.push(N)}return T}parseSubscript(z,P,L,A,T,h,N){let y=h;if(!this.hasPrecedingLineBreak()&&this.value==="!"&&this.match(X.prefix)){this.exprAllowed=!1,this.next();let w8=this.startNodeAt(P,L);return w8.expression=z,z=this.finishNode(w8,"TSNonNullExpression"),z}let r=!1;if(this.match(X.questionDot)&&this.lookaheadCharCode()===60){if(A)return z;z.optional=!0,y=r=!0,this.next()}if(this.tsMatchLeftRelational()||this.match(X.bitShift)){let w8,g8=this.tsTryParseAndCatch(()=>{if(!A&&this.atPossibleAsyncArrow(z)){let $8=this.tsTryParseGenericAsyncArrowFunction(P,L,N);if($8)return z=$8,z}let R8=this.tsParseTypeArgumentsInExpression();if(!R8)return z;if(r&&!this.match(X.parenL))return w8=this.curPosition(),z;if(C(this.type)||this.type===X.backQuote){let $8=this.parseTaggedTemplateExpression(z,P,L,y);return $8.typeArguments=R8,$8}if(!A&&this.eat(X.parenL)){let $8=new I2,c8=this.startNodeAt(P,L);if(c8.callee=z,c8.arguments=this.parseExprList(X.parenR,this.ecmaVersion>=8,!1,$8),this.tsCheckForInvalidTypeCasts(c8.arguments),c8.typeArguments=R8,y)c8.optional=r;return this.checkExpressionErrors($8,!0),z=this.finishNode(c8,"CallExpression"),z}let a8=this.type;if(this.tsMatchRightRelational()||a8===X.bitShift||a8!==X.parenL&&ni(a8)&&!this.hasPrecedingLineBreak())return;let B8=this.startNodeAt(P,L);return B8.expression=z,B8.typeArguments=R8,this.finishNode(B8,"TSInstantiationExpression")});if(w8)this.unexpected(w8);if(g8){if(g8.type==="TSInstantiationExpression"&&(this.match(X.dot)||this.match(X.questionDot)&&this.lookaheadCharCode()!==40))this.raise(this.start,I8.InvalidPropertyAccessAfterInstantiationExpression);return z=g8,z}}let m=this.ecmaVersion>=11,Y8=m&&this.eat(X.questionDot);if(A&&Y8)this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");let N8=this.eat(X.bracketL);if(N8||Y8&&this.type!==X.parenL&&this.type!==X.backQuote||this.eat(X.dot)){let w8=this.startNodeAt(P,L);if(w8.object=z,N8)w8.property=this.parseExpression(),this.expect(X.bracketR);else if(this.type===X.privateId&&z.type!=="Super")w8.property=this.parsePrivateIdent();else w8.property=this.parseIdent(this.options.allowReserved!=="never");if(w8.computed=!!N8,m)w8.optional=Y8;z=this.finishNode(w8,"MemberExpression")}else if(!A&&this.eat(X.parenL)){let w8=this.maybeInArrowParameters;this.maybeInArrowParameters=!0;let g8=new I2,R8=this.yieldPos,a8=this.awaitPos,B8=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;let $8=this.parseExprList(X.parenR,this.ecmaVersion>=8,!1,g8);if(T&&!Y8&&this.shouldParseAsyncArrow()){if(this.checkPatternErrors(g8,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0)this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function");this.yieldPos=R8,this.awaitPos=a8,this.awaitIdentPos=B8,z=this.parseSubscriptAsyncArrow(P,L,$8,N)}else{this.checkExpressionErrors(g8,!0),this.yieldPos=R8||this.yieldPos,this.awaitPos=a8||this.awaitPos,this.awaitIdentPos=B8||this.awaitIdentPos;let c8=this.startNodeAt(P,L);if(c8.callee=z,c8.arguments=$8,m)c8.optional=Y8;z=this.finishNode(c8,"CallExpression")}this.maybeInArrowParameters=w8}else if(this.type===X.backQuote){if(Y8||y)this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");let w8=this.startNodeAt(P,L);w8.tag=z,w8.quasi=this.parseTemplate({isTagged:!0}),z=this.finishNode(w8,"TaggedTemplateExpression")}return z}parseGetterSetter(z){z.kind=z.key.name,this.parsePropertyName(z);let P=this.tsTryParseTypeParameters(this.tsParseConstModifier);if(z.value=this.parseMethod(!1),P)z.value.typeParameters=P;let L=z.kind==="get"?0:1,A=z.value.params[0];if(L=A&&this.isThisParam(A)?L+1:L,z.value.params.length!==L){let h=z.value.start;if(z.kind==="get")this.raiseRecoverable(h,"getter should have no params");else this.raiseRecoverable(h,"setter should have exactly one param")}else if(z.kind==="set"&&z.value.params[0].type==="RestElement")this.raiseRecoverable(z.value.params[0].start,"Setter cannot use rest params")}parsePropertyValue(z,P,L,A,T,h,N,y){if(this.tsMatchLeftRelational()){if(P)this.unexpected();z.kind="init",z.method=!0;let r=this.tsTryParseTypeParameters(this.tsParseConstModifier);if(z.value=this.parseMethod(L,A),r)z.value.typeParameters=r;return}return super.parsePropertyValue(z,P,L,A,T,h,N,y)}parseProperty(z,P){if(!z){let L=[];if(this.match($.at))while(this.match($.at))L.push(this.parseDecorator());let A=super.parseProperty(z,P);if(A.type==="SpreadElement"){if(L.length)this.raise(A.start,p4.SpreadElementDecorator)}if(L.length)A.decorators=L,L=[];return A}return super.parseProperty(z,P)}parseCatchClauseParam(){let z=this.parseBindingAtom(),P=z.type==="Identifier";this.enterScope(P?$0.SCOPE_SIMPLE_CATCH:0),this.checkLValPattern(z,P?$0.BIND_SIMPLE_CATCH:$0.BIND_LEXICAL);let L=this.tsTryParseTypeAnnotation();if(L)z.typeAnnotation=L,this.resetEndLocation(z);return this.expect(X.parenR),z}parseClass(z,P){let L=this.inAbstractClass;this.inAbstractClass=!!z.abstract;try{this.next(),this.takeDecorators(z);let A=this.strict;this.strict=!0,this.parseClassId(z,P),this.parseClassSuper(z);let T=this.enterClassBody(),h=this.startNode(),N=!1;h.body=[];let y=[];this.expect(X.braceL);while(this.type!==X.braceR){if(this.match($.at)){y.push(this.parseDecorator());continue}let r=this.parseClassElement(z.superClass!==null);if(y.length)r.decorators=y,this.resetStartLocationFromNode(r,y[0]),y=[];if(r){if(h.body.push(r),r.type==="MethodDefinition"&&r.kind==="constructor"&&r.value.type==="FunctionExpression"){if(N)this.raiseRecoverable(r.start,"Duplicate constructor in the same class");if(N=!0,r.decorators&&r.decorators.length>0)this.raise(r.start,p4.DecoratorConstructor)}else if(r.key&&r.key.type==="PrivateIdentifier"&&r.value?.type!=="TSDeclareMethod"&&li(T,r))this.raiseRecoverable(r.key.start,`Identifier '#${r.key.name}' has already been declared`)}}if(this.strict=A,this.next(),y.length)this.raise(this.start,p4.TrailingDecorator);return z.body=this.finishNode(h,"ClassBody"),this.exitClassBody(),this.finishNode(z,P?"ClassDeclaration":"ClassExpression")}finally{this.inAbstractClass=L}}parseClassFunctionParams(){let z=this.tsTryParseTypeParameters(),P=this.parseBindingList(X.parenR,!1,this.ecmaVersion>=8,!0);if(z)P.typeParameters=z;return P}parseMethod(z,P,L,A,T){let h=this.startNode(),N=this.yieldPos,y=this.awaitPos,r=this.awaitIdentPos;if(this.initFunction(h),this.ecmaVersion>=6)h.generator=z;if(this.ecmaVersion>=8)h.async=!!P;if(this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(gY(P,h.generator)|$0.SCOPE_SUPER|(L?$0.SCOPE_DIRECT_SUPER:0)),this.expect(X.parenL),h.params=this.parseClassFunctionParams(),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(h,!1,!0,!1,{isClassMethod:A}),this.yieldPos=N,this.awaitPos=y,this.awaitIdentPos=r,T&&T.abstract){if(!!h.body){let{key:Y8}=T;this.raise(T.start,I8.AbstractMethodHasImplementation({methodName:Y8.type==="Identifier"&&!T.computed?Y8.name:`[${this.input.slice(Y8.start,Y8.end)}]`}))}}return this.finishNode(h,"FunctionExpression")}static parse(z,P){if(P.locations===!1)throw Error("You have to enable options.locations while using acorn-typescript");else P.locations=!0;let L=new this(P,z);if(Z)L.isAmbientContext=!0;return L.parse()}static parseExpressionAt(z,P,L){if(L.locations===!1)throw Error("You have to enable options.locations while using acorn-typescript");else L.locations=!0;let A=new this(L,z,P);if(Z)A.isAmbientContext=!0;return A.nextToken(),A.parseExpression()}parseImportSpecifier(){if(this.ts_isContextual($.type)){let P=this.startNode();return P.imported=this.parseModuleExportName(),this.parseTypeOnlyImportExportSpecifier(P,!0,this.importOrExportOuterKind==="type"),this.finishNode(P,"ImportSpecifier")}else{let P=super.parseImportSpecifier();return P.importKind="value",P}}parseExportSpecifier(z){let P=this.ts_isContextual($.type);if(!this.match(X.string)&&P){let A=this.startNode();return A.local=this.parseModuleExportName(),this.parseTypeOnlyImportExportSpecifier(A,!1,this.importOrExportOuterKind==="type"),this.finishNode(A,"ExportSpecifier"),this.checkExport(z,A.exported,A.exported.start),A}else{let A=super.parseExportSpecifier(z);return A.exportKind="value",A}}parseTypeOnlyImportExportSpecifier(z,P,L){let A=P?"imported":"local",T=P?"local":"exported",h=z[A],N,y=!1,r=!0,m=h.start;if(this.isContextual("as")){let N8=this.parseIdent();if(this.isContextual("as")){let w8=this.parseIdent();if(f(this.type))y=!0,h=N8,N=P?this.parseIdent():this.parseModuleExportName(),r=!1;else N=w8,r=!1}else if(f(this.type))r=!1,N=P?this.parseIdent():this.parseModuleExportName();else y=!0,h=N8}else if(f(this.type))if(y=!0,P){if(h=super.parseIdent(!0),!this.isContextual("as"))this.checkUnreserved(h)}else h=this.parseModuleExportName();if(y&&L)this.raise(m,P?I8.TypeModifierIsUsedInTypeImports:I8.TypeModifierIsUsedInTypeExports);z[A]=h,z[T]=N;let Y8=P?"importKind":"exportKind";if(z[Y8]=y?"type":"value",r&&this.eatContextual("as"))z[T]=P?this.parseIdent():this.parseModuleExportName();if(!z[T])z[T]=this.copyNode(z[A]);if(P)this.checkLValSimple(z[T],$0.BIND_LEXICAL)}raiseCommonCheck(z,P,L){switch(P){case"Comma is not permitted after the rest element":if(this.isAmbientContext&&this.match(X.comma)&&this.lookaheadCharCode()===41){this.next();return}else return super.raise(z,P)}return L?super.raiseRecoverable(z,P):super.raise(z,P)}raiseRecoverable(z,P){return this.raiseCommonCheck(z,P,!0)}raise(z,P){return this.raiseCommonCheck(z,P,!0)}updateContext(z){let{type:P}=this;if(P==X.braceL){var L=this.curContext();if(L==O.tc_oTag)this.context.push(M.b_expr);else if(L==O.tc_expr)this.context.push(M.b_tmpl);else super.updateContext(z);this.exprAllowed=!0}else if(P===X.slash&&z===$.jsxTagStart)this.context.length-=2,this.context.push(O.tc_cTag),this.exprAllowed=!1;else return super.updateContext(z)}jsx_parseOpeningElementAt(z,P){let L=this.startNodeAt(z,P),A=this.jsx_parseElementName();if(A)L.name=A;if(this.match(X.relational)||this.match(X.bitShift)){let T=this.tsTryParseAndCatch(()=>this.tsParseTypeArgumentsInExpression());if(T)L.typeArguments=T}L.attributes=[];while(this.type!==X.slash&&this.type!==$.jsxTagEnd)L.attributes.push(this.jsx_parseAttribute());return L.selfClosing=this.eat(X.slash),this.expect($.jsxTagEnd),this.finishNode(L,A?"JSXOpeningElement":"JSXOpeningFragment")}enterScope(z){if(z===j2)this.importsStack.push([]);super.enterScope(z);let P=super.currentScope();P.types=[],P.enums=[],P.constEnums=[],P.classes=[],P.exportOnlyBindings=[]}exitScope(){if(super.currentScope().flags===j2)this.importsStack.pop();super.exitScope()}hasImport(z,P){let L=this.importsStack.length;if(this.importsStack[L-1].indexOf(z)>-1)return!0;if(!P&&L>1){for(let A=0;A<L-1;A++)if(this.importsStack[A].indexOf(z)>-1)return!0}return!1}maybeExportDefined(z,P){if(this.inModule&&z.flags&$0.SCOPE_TOP)delete this.undefinedExports[P]}declareName(z,P,L){if(P&$0.BIND_FLAGS_TS_IMPORT){if(this.hasImport(z,!0))this.raise(L,`Identifier '${z}' has already been declared.`);this.importsStack[this.importsStack.length-1].push(z);return}let A=this.currentScope();if(P&$0.BIND_FLAGS_TS_EXPORT_ONLY){this.maybeExportDefined(A,z),A.exportOnlyBindings.push(z);return}if(P===$0.BIND_TS_TYPE||P===$0.BIND_TS_INTERFACE){if(P===$0.BIND_TS_TYPE&&A.types.includes(z))this.raise(L,`type '${z}' has already been declared.`);A.types.push(z)}else super.declareName(z,P,L);if(P&$0.BIND_FLAGS_TS_ENUM)A.enums.push(z);if(P&$0.BIND_FLAGS_TS_CONST_ENUM)A.constEnums.push(z);if(P&$0.BIND_FLAGS_CLASS)A.classes.push(z)}checkLocalExport(z){let{name:P}=z;if(this.hasImport(P))return;let L=this.scopeStack.length;for(let A=L-1;A>=0;A--){let T=this.scopeStack[A];if(T.types.indexOf(P)>-1||T.exportOnlyBindings.indexOf(P)>-1)return}super.checkLocalExport(z)}}return b}}class lU extends Error{message="";#q;constructor(q,Z,Q){super(Z);this.stack="",this.#q=new z2(q,Z,Q),Object.assign(this,this.#q),this.name="CompileError"}toString(){return this.#q.toString()}toJSON(){return this.#q.toJSON()}}function p(q,Z,Q){let Y=typeof q==="number"?q:q?.start,J=typeof q==="number"?q:q?.end;throw new lU(Z,Q,Y!==void 0?[Y,J??Y]:void 0)}function xU(q,Z){p(q,"options_invalid_value",`Invalid compiler option: ${Z}
|
|
111
|
-
https://svelte.dev/e/options_invalid_value`)}function mU(q,Z){p(q,"options_removed",`Invalid compiler option: ${Z}
|
|
112
|
-
https://svelte.dev/e/options_removed`)}function pU(q,Z){p(q,"options_unrecognised",`Unrecognised compiler option ${Z}
|
|
113
|
-
https://svelte.dev/e/options_unrecognised`)}function cU(q){p(q,"bindable_invalid_location","`$bindable()` can only be used inside a `$props()` declaration\nhttps://svelte.dev/e/bindable_invalid_location")}function xY(q,Z){p(q,"constant_assignment",`Cannot assign to ${Z}
|
|
114
|
-
https://svelte.dev/e/constant_assignment`)}function rU(q,Z){p(q,"constant_binding",`Cannot bind to ${Z}
|
|
115
|
-
https://svelte.dev/e/constant_binding`)}function W5(q,Z){p(q,"declaration_duplicate",`\`${Z}\` has already been declared
|
|
116
|
-
https://svelte.dev/e/declaration_duplicate`)}function iU(q){p(q,"declaration_duplicate_module_import","Cannot declare a variable with the same name as an import from `<script module>`\nhttps://svelte.dev/e/declaration_duplicate_module_import")}function r4(q){p(q,"derived_invalid_export",`Cannot export derived state from a module. To expose the current derived value, export a function returning its value
|
|
117
|
-
https://svelte.dev/e/derived_invalid_export`)}function dU(q){p(q,"dollar_binding_invalid",`The $ name is reserved, and cannot be used for variables and imports
|
|
118
|
-
https://svelte.dev/e/dollar_binding_invalid`)}function sU(q){p(q,"dollar_prefix_invalid",`The $ prefix is reserved, and cannot be used for variables and imports
|
|
119
|
-
https://svelte.dev/e/dollar_prefix_invalid`)}function C2(q,Z){p(q,"duplicate_class_field",`\`${Z}\` has already been declared
|
|
120
|
-
https://svelte.dev/e/duplicate_class_field`)}function aU(q){p(q,"each_item_invalid_assignment","Cannot reassign or bind to each block argument in runes mode. Use the array and index variables instead (e.g. `array[i] = value` instead of `entry = value`, or `bind:value={array[i]}` instead of `bind:value={entry}`)\nhttps://svelte.dev/e/each_item_invalid_assignment")}function oU(q){p(q,"effect_invalid_placement","`$effect()` can only be used as an expression statement\nhttps://svelte.dev/e/effect_invalid_placement")}function nU(q){p(q,"experimental_async","Cannot use `await` in deriveds and template expressions, or at the top level of a component, unless the `experimental.async` compiler option is `true`\nhttps://svelte.dev/e/experimental_async")}function tU(q,Z){p(q,"export_undefined",`\`${Z}\` is not defined
|
|
121
|
-
https://svelte.dev/e/export_undefined`)}function mY(q,Z){p(q,"global_reference_invalid",`\`${Z}\` is an illegal variable name. To reference a global variable called \`${Z}\`, use \`globalThis.${Z}\`
|
|
122
|
-
https://svelte.dev/e/global_reference_invalid`)}function eU(q){p(q,"host_invalid_placement","`$host()` can only be used inside custom element component instances\nhttps://svelte.dev/e/host_invalid_placement")}function qR(q){p(q,"import_svelte_internal_forbidden","Imports of `svelte/internal/*` are forbidden. It contains private runtime code which is subject to change without notice. If you're importing from `svelte/internal/*` to work around a limitation of Svelte, please open an issue at https://github.com/sveltejs/svelte and explain your use case\nhttps://svelte.dev/e/import_svelte_internal_forbidden")}function ZR(q){p(q,"inspect_trace_generator","`$inspect.trace(...)` cannot be used inside a generator function\nhttps://svelte.dev/e/inspect_trace_generator")}function QR(q){p(q,"inspect_trace_invalid_placement","`$inspect.trace(...)` must be the first statement of a function body\nhttps://svelte.dev/e/inspect_trace_invalid_placement")}function YR(q){p(q,"invalid_arguments_usage",`The arguments keyword cannot be used within the template or at the top level of a component
|
|
123
|
-
https://svelte.dev/e/invalid_arguments_usage`)}function JR(q){p(q,"legacy_await_invalid","Cannot use `await` in deriveds and template expressions, or at the top level of a component, unless in runes mode\nhttps://svelte.dev/e/legacy_await_invalid")}function HR(q){p(q,"legacy_export_invalid","Cannot use `export let` in runes mode — use `$props()` instead\nhttps://svelte.dev/e/legacy_export_invalid")}function XR(q){p(q,"legacy_props_invalid","Cannot use `$$props` in runes mode\nhttps://svelte.dev/e/legacy_props_invalid")}function GR(q){p(q,"legacy_reactive_statement_invalid","`$:` is not allowed in runes mode, use `$derived` or `$effect` instead\nhttps://svelte.dev/e/legacy_reactive_statement_invalid")}function VR(q){p(q,"legacy_rest_props_invalid","Cannot use `$$restProps` in runes mode\nhttps://svelte.dev/e/legacy_rest_props_invalid")}function i4(q){p(q,"module_illegal_default_export",`A component cannot have a default export
|
|
124
|
-
https://svelte.dev/e/module_illegal_default_export`)}function pY(q,Z){p(q,"props_duplicate",`Cannot use \`${Z}()\` more than once
|
|
125
|
-
https://svelte.dev/e/props_duplicate`)}function WR(q){p(q,"props_id_invalid_placement","`$props.id()` can only be used at the top level of components as a variable declaration initializer\nhttps://svelte.dev/e/props_id_invalid_placement")}function d4(q){p(q,"props_illegal_name","Declaring or accessing a prop starting with `$$` is illegal (they are reserved for Svelte internals)\nhttps://svelte.dev/e/props_illegal_name")}function $R(q){p(q,"props_invalid_identifier","`$props()` can only be used with an object destructuring pattern\nhttps://svelte.dev/e/props_invalid_identifier")}function cY(q){p(q,"props_invalid_pattern","`$props()` assignment must not contain nested properties or computed keys\nhttps://svelte.dev/e/props_invalid_pattern")}function UR(q){p(q,"props_invalid_placement","`$props()` can only be used at the top level of components as a variable declaration initializer\nhttps://svelte.dev/e/props_invalid_placement")}function RR(q,Z){p(q,"reactive_declaration_cycle",`Cyclical dependency detected: ${Z}
|
|
126
|
-
https://svelte.dev/e/reactive_declaration_cycle`)}function E2(q,Z){p(q,"rune_invalid_arguments",`\`${Z}\` cannot be called with arguments
|
|
127
|
-
https://svelte.dev/e/rune_invalid_arguments`)}function X9(q,Z,Q){p(q,"rune_invalid_arguments_length",`\`${Z}\` must be called with ${Q}
|
|
128
|
-
https://svelte.dev/e/rune_invalid_arguments_length`)}function zR(q){p(q,"rune_invalid_computed_property",`Cannot access a computed property of a rune
|
|
129
|
-
https://svelte.dev/e/rune_invalid_computed_property`)}function BR(q,Z){p(q,"rune_invalid_name",`\`${Z}\` is not a valid rune
|
|
130
|
-
https://svelte.dev/e/rune_invalid_name`)}function MR(q,Z){p(q,"rune_invalid_spread",`\`${Z}\` cannot be called with a spread argument
|
|
131
|
-
https://svelte.dev/e/rune_invalid_spread`)}function PR(q,Z){p(q,"rune_invalid_usage",`Cannot use \`${Z}\` rune in non-runes mode
|
|
132
|
-
https://svelte.dev/e/rune_invalid_usage`)}function LR(q){p(q,"rune_missing_parentheses",`Cannot use rune without parentheses
|
|
133
|
-
https://svelte.dev/e/rune_missing_parentheses`)}function OR(q,Z){p(q,"rune_removed",`The \`${Z}\` rune has been removed
|
|
134
|
-
https://svelte.dev/e/rune_removed`)}function rY(q,Z,Q){p(q,"rune_renamed",`\`${Z}\` is now \`${Q}\`
|
|
135
|
-
https://svelte.dev/e/rune_renamed`)}function wR(q,Z){p(q,"runes_mode_invalid_import",`${Z} cannot be used in runes mode
|
|
136
|
-
https://svelte.dev/e/runes_mode_invalid_import`)}function AR(q){p(q,"snippet_invalid_export","An exported snippet can only reference things declared in a `<script module>`, or other exportable snippets\nhttps://svelte.dev/e/snippet_invalid_export")}function jR(q){p(q,"snippet_parameter_assignment",`Cannot reassign or bind to snippet parameter
|
|
137
|
-
https://svelte.dev/e/snippet_parameter_assignment`)}function IR(q,Z){p(q,"state_field_duplicate",`\`${Z}\` has already been declared on this class
|
|
138
|
-
https://svelte.dev/e/state_field_duplicate`)}function s4(q){p(q,"state_field_invalid_assignment",`Cannot assign to a state field before its declaration
|
|
139
|
-
https://svelte.dev/e/state_field_invalid_assignment`)}function a4(q){p(q,"state_invalid_export",`Cannot export state from a module if it is reassigned. Either export a function returning the state value or only mutate the state value's properties
|
|
140
|
-
https://svelte.dev/e/state_invalid_export`)}function o4(q,Z){p(q,"state_invalid_placement",`\`${Z}(...)\` can only be used as a variable declaration initializer, a class field declaration, or the first assignment to a class field at the top level of the constructor.
|
|
141
|
-
https://svelte.dev/e/state_invalid_placement`)}function DR(q){p(q,"store_invalid_scoped_subscription",`Cannot subscribe to stores that are not declared at the top level of the component
|
|
142
|
-
https://svelte.dev/e/store_invalid_scoped_subscription`)}function CR(q){p(q,"store_invalid_subscription","Cannot reference store value inside `<script module>`\nhttps://svelte.dev/e/store_invalid_subscription")}function $5(q,Z){p(q,"typescript_invalid_feature",`TypeScript language features like ${Z} are not natively supported, and their use is generally discouraged. Outside of \`<script>\` tags, these features are not supported. For use within \`<script>\` tags, you will need to use a preprocessor to convert it to JavaScript before it gets passed to the Svelte compiler. If you are using \`vitePreprocess\`, make sure to specifically enable preprocessing script tags (\`vitePreprocess({ script: true })\`)
|
|
143
|
-
https://svelte.dev/e/typescript_invalid_feature`)}function ER(q){p(q,"css_empty_declaration",`Declaration cannot be empty
|
|
144
|
-
https://svelte.dev/e/css_empty_declaration`)}function iY(q){p(q,"css_expected_identifier",`Expected a valid CSS identifier
|
|
145
|
-
https://svelte.dev/e/css_expected_identifier`)}function FR(q,Z){p(q,"css_global_block_invalid_combinator",`A \`:global\` selector cannot follow a \`${Z}\` combinator
|
|
146
|
-
https://svelte.dev/e/css_global_block_invalid_combinator`)}function TR(q){p(q,"css_global_block_invalid_declaration","A top-level `:global {...}` block can only contain rules, not declarations\nhttps://svelte.dev/e/css_global_block_invalid_declaration")}function dY(q){p(q,"css_global_block_invalid_list","A `:global` selector cannot be part of a selector list with entries that don't contain `:global`\nhttps://svelte.dev/e/css_global_block_invalid_list")}function fR(q){p(q,"css_global_block_invalid_modifier","A `:global` selector cannot modify an existing selector\nhttps://svelte.dev/e/css_global_block_invalid_modifier")}function sY(q){p(q,"css_global_block_invalid_modifier_start","A `:global` selector can only be modified if it is a descendant of other selectors\nhttps://svelte.dev/e/css_global_block_invalid_modifier_start")}function KR(q){p(q,"css_global_block_invalid_placement","A `:global` selector cannot be inside a pseudoclass\nhttps://svelte.dev/e/css_global_block_invalid_placement")}function vR(q){p(q,"css_global_invalid_placement","`:global(...)` can be at the start or end of a selector sequence, but not in the middle\nhttps://svelte.dev/e/css_global_invalid_placement")}function NR(q){p(q,"css_global_invalid_selector","`:global(...)` must contain exactly one selector\nhttps://svelte.dev/e/css_global_invalid_selector")}function kR(q){p(q,"css_global_invalid_selector_list","`:global(...)` must not contain type or universal selectors when used in a compound selector\nhttps://svelte.dev/e/css_global_invalid_selector_list")}function SR(q){p(q,"css_nesting_selector_invalid_placement","Nesting selectors can only be used inside a rule or as the first selector inside a lone `:global(...)`\nhttps://svelte.dev/e/css_nesting_selector_invalid_placement")}function n4(q){p(q,"css_selector_invalid",`Invalid selector
|
|
147
|
-
https://svelte.dev/e/css_selector_invalid`)}function uR(q){p(q,"css_type_selector_invalid_placement","`:global(...)` must not be followed by a type selector\nhttps://svelte.dev/e/css_type_selector_invalid_placement")}function bR(q){p(q,"animation_duplicate",`An element can only have one 'animate' directive
|
|
148
|
-
https://svelte.dev/e/animation_duplicate`)}function aY(q){p(q,"animation_invalid_placement","An element that uses the `animate:` directive must be the only child of a keyed `{#each ...}` block\nhttps://svelte.dev/e/animation_invalid_placement")}function hR(q){p(q,"animation_missing_key","An element that uses the `animate:` directive must be the only child of a keyed `{#each ...}` block. Did you forget to add a key to your each block?\nhttps://svelte.dev/e/animation_missing_key")}function yR(q){p(q,"attribute_contenteditable_dynamic",`'contenteditable' attribute cannot be dynamic if element uses two-way binding
|
|
149
|
-
https://svelte.dev/e/attribute_contenteditable_dynamic`)}function _R(q){p(q,"attribute_contenteditable_missing",`'contenteditable' attribute is required for textContent, innerHTML and innerText two-way bindings
|
|
150
|
-
https://svelte.dev/e/attribute_contenteditable_missing`)}function gR(q){p(q,"attribute_duplicate",`Attributes need to be unique
|
|
151
|
-
https://svelte.dev/e/attribute_duplicate`)}function lR(q){p(q,"attribute_empty_shorthand",`Attribute shorthand cannot be empty
|
|
152
|
-
https://svelte.dev/e/attribute_empty_shorthand`)}function xR(q){p(q,"attribute_invalid_event_handler",`Event attribute must be a JavaScript expression, not a string
|
|
153
|
-
https://svelte.dev/e/attribute_invalid_event_handler`)}function mR(q){p(q,"attribute_invalid_multiple",`'multiple' attribute must be static if select uses two-way binding
|
|
154
|
-
https://svelte.dev/e/attribute_invalid_multiple`)}function pR(q,Z){p(q,"attribute_invalid_name",`'${Z}' is not a valid attribute name
|
|
155
|
-
https://svelte.dev/e/attribute_invalid_name`)}function t4(q){p(q,"attribute_invalid_sequence_expression",`Comma-separated expressions are not allowed as attribute/directive values in runes mode, unless wrapped in parentheses
|
|
156
|
-
https://svelte.dev/e/attribute_invalid_sequence_expression`)}function cR(q){p(q,"attribute_invalid_type",`'type' attribute must be a static text value if input uses two-way binding
|
|
157
|
-
https://svelte.dev/e/attribute_invalid_type`)}function rR(q){p(q,"attribute_unquoted_sequence","Attribute values containing `{...}` must be enclosed in quote marks, unless the value only contains the expression\nhttps://svelte.dev/e/attribute_unquoted_sequence")}function iR(q){p(q,"bind_group_invalid_expression","`bind:group` can only bind to an Identifier or MemberExpression\nhttps://svelte.dev/e/bind_group_invalid_expression")}function dR(q){p(q,"bind_group_invalid_snippet_parameter","Cannot `bind:group` to a snippet parameter\nhttps://svelte.dev/e/bind_group_invalid_snippet_parameter")}function oY(q){p(q,"bind_invalid_expression","Can only bind to an Identifier or MemberExpression or a `{get, set}` pair\nhttps://svelte.dev/e/bind_invalid_expression")}function e4(q,Z,Q){p(q,"bind_invalid_name",`${Q?`\`bind:${Z}\` is not a valid binding. ${Q}`:`\`bind:${Z}\` is not a valid binding`}
|
|
158
|
-
https://svelte.dev/e/bind_invalid_name`)}function sR(q,Z){p(q,"bind_invalid_parens",`\`bind:${Z}={get, set}\` must not have surrounding parentheses
|
|
159
|
-
https://svelte.dev/e/bind_invalid_parens`)}function F2(q,Z,Q){p(q,"bind_invalid_target",`\`bind:${Z}\` can only be used with ${Q}
|
|
160
|
-
https://svelte.dev/e/bind_invalid_target`)}function aR(q){p(q,"bind_invalid_value",`Can only bind to state or props
|
|
161
|
-
https://svelte.dev/e/bind_invalid_value`)}function nY(q,Z){p(q,"block_duplicate_clause",`${Z} cannot appear more than once within a block
|
|
162
|
-
https://svelte.dev/e/block_duplicate_clause`)}function oR(q){p(q,"block_invalid_continuation_placement",`{:...} block is invalid at this position (did you forget to close the preceding element or block?)
|
|
163
|
-
https://svelte.dev/e/block_invalid_continuation_placement`)}function nR(q){p(q,"block_invalid_elseif",`'elseif' should be 'else if'
|
|
164
|
-
https://svelte.dev/e/block_invalid_elseif`)}function tR(q,Z,Q){p(q,"block_invalid_placement",`{#${Z} ...} block cannot be ${Q}
|
|
165
|
-
https://svelte.dev/e/block_invalid_placement`)}function eR(q){p(q,"block_unclosed",`Block was left open
|
|
166
|
-
https://svelte.dev/e/block_unclosed`)}function T2(q,Z){p(q,"block_unexpected_character",`Expected a \`${Z}\` character immediately following the opening bracket
|
|
167
|
-
https://svelte.dev/e/block_unexpected_character`)}function tY(q){p(q,"block_unexpected_close",`Unexpected block closing tag
|
|
168
|
-
https://svelte.dev/e/block_unexpected_close`)}function qz(q){p(q,"component_invalid_directive",`This type of directive is not valid on components
|
|
169
|
-
https://svelte.dev/e/component_invalid_directive`)}function Zz(q,Z){p(q,"const_tag_cycle",`Cyclical dependency detected: ${Z}
|
|
170
|
-
https://svelte.dev/e/const_tag_cycle`)}function Qz(q){p(q,"const_tag_invalid_expression",`{@const ...} must consist of a single variable declaration
|
|
171
|
-
https://svelte.dev/e/const_tag_invalid_expression`)}function Yz(q){p(q,"const_tag_invalid_placement","`{@const}` must be the immediate child of `{#snippet}`, `{#if}`, `{:else if}`, `{:else}`, `{#each}`, `{:then}`, `{:catch}`, `<svelte:fragment>`, `<svelte:boundary>` or `<Component>`\nhttps://svelte.dev/e/const_tag_invalid_placement")}function Jz(q,Z){p(q,"const_tag_invalid_reference",`The \`{@const ${Z} = ...}\` declaration is not available in this snippet
|
|
172
|
-
https://svelte.dev/e/const_tag_invalid_reference`)}function Hz(q){p(q,"debug_tag_invalid_arguments",`{@debug ...} arguments must be identifiers, not arbitrary expressions
|
|
173
|
-
https://svelte.dev/e/debug_tag_invalid_arguments`)}function q3(q){p(q,"declaration_tag_invalid_type","Declaration tags must be `let` or `const` declarations\nhttps://svelte.dev/e/declaration_tag_invalid_type")}function Xz(q){p(q,"declaration_tag_no_legacy_mode",`Declaration tags cannot be used in legacy mode
|
|
174
|
-
https://svelte.dev/e/declaration_tag_no_legacy_mode`)}function Gz(q){p(q,"directive_invalid_value",`Directive value must be a JavaScript expression enclosed in curly braces
|
|
175
|
-
https://svelte.dev/e/directive_invalid_value`)}function Vz(q,Z){p(q,"directive_missing_name",`\`${Z}\` name cannot be empty
|
|
176
|
-
https://svelte.dev/e/directive_missing_name`)}function Wz(q){p(q,"each_key_without_as","An `{#each ...}` block without an `as` clause cannot have a key\nhttps://svelte.dev/e/each_key_without_as")}function $z(q,Z){p(q,"element_invalid_closing_tag",`\`</${Z}>\` attempted to close an element that was not open
|
|
177
|
-
https://svelte.dev/e/element_invalid_closing_tag`)}function Uz(q,Z,Q){p(q,"element_invalid_closing_tag_autoclosed",`\`</${Z}>\` attempted to close element that was already automatically closed by \`<${Q}>\` (cannot nest \`<${Q}>\` inside \`<${Z}>\`)
|
|
178
|
-
https://svelte.dev/e/element_invalid_closing_tag_autoclosed`)}function Z3(q,Z){p(q,"element_unclosed",`\`<${Z}>\` was left open
|
|
179
|
-
https://svelte.dev/e/element_unclosed`)}function Rz(q){p(q,"event_handler_invalid_component_modifier",`Event modifiers other than 'once' can only be used on DOM elements
|
|
180
|
-
https://svelte.dev/e/event_handler_invalid_component_modifier`)}function zz(q,Z){p(q,"event_handler_invalid_modifier",`Valid event modifiers are ${Z}
|
|
181
|
-
https://svelte.dev/e/event_handler_invalid_modifier`)}function Bz(q,Z,Q){p(q,"event_handler_invalid_modifier_combination",`The '${Z}' and '${Q}' modifiers cannot be used together
|
|
182
|
-
https://svelte.dev/e/event_handler_invalid_modifier_combination`)}function eY(q){p(q,"expected_attribute_value",`Expected attribute value
|
|
183
|
-
https://svelte.dev/e/expected_attribute_value`)}function Mz(q){p(q,"expected_block_type",`Expected 'if', 'each', 'await', 'key' or 'snippet'
|
|
184
|
-
https://svelte.dev/e/expected_block_type`)}function qJ(q){p(q,"expected_identifier",`Expected an identifier
|
|
185
|
-
https://svelte.dev/e/expected_identifier`)}function Pz(q){p(q,"expected_pattern",`Expected identifier or destructure pattern
|
|
186
|
-
https://svelte.dev/e/expected_pattern`)}function Lz(q){p(q,"expected_tag",`Expected 'html', 'render', 'attach', 'const', or 'debug'
|
|
187
|
-
https://svelte.dev/e/expected_tag`)}function c1(q,Z){p(q,"expected_token",`Expected token ${Z}
|
|
188
|
-
https://svelte.dev/e/expected_token`)}function Oz(q){p(q,"expected_whitespace",`Expected whitespace
|
|
189
|
-
https://svelte.dev/e/expected_whitespace`)}function G9(q){p(q,"illegal_await_expression","`use:`, `transition:` and `animate:` directives, attachments and bindings do not support await expressions\nhttps://svelte.dev/e/illegal_await_expression")}function Q3(q,Z){p(q,"illegal_element_attribute",`\`<${Z}>\` does not support non-event attributes or spread attributes
|
|
190
|
-
https://svelte.dev/e/illegal_element_attribute`)}function wz(q,Z){p(q,"js_parse_error",`${Z}
|
|
191
|
-
https://svelte.dev/e/js_parse_error`)}function Az(q){p(q,"let_directive_invalid_placement","`let:` directive at invalid position\nhttps://svelte.dev/e/let_directive_invalid_placement")}function jz(q,Z){p(q,"mixed_event_handler_syntaxes",`Mixing old (on:${Z}) and new syntaxes for event handling is not allowed. Use only the on${Z} syntax
|
|
192
|
-
https://svelte.dev/e/mixed_event_handler_syntaxes`)}function R7(q,Z){p(q,"node_invalid_placement",`${Z}. The browser will 'repair' the HTML (by moving, removing, or inserting elements) which breaks Svelte's assumptions about the structure of your components.
|
|
193
|
-
https://svelte.dev/e/node_invalid_placement`)}function Iz(q){p(q,"render_tag_invalid_call_expression",`Calling a snippet function using apply, bind or call is not allowed
|
|
194
|
-
https://svelte.dev/e/render_tag_invalid_call_expression`)}function Dz(q){p(q,"render_tag_invalid_expression","`{@render ...}` tags can only contain call expressions\nhttps://svelte.dev/e/render_tag_invalid_expression")}function Cz(q){p(q,"render_tag_invalid_spread_argument","cannot use spread arguments in `{@render ...}` tags\nhttps://svelte.dev/e/render_tag_invalid_spread_argument")}function ZJ(q){p(q,"script_duplicate","A component can have a single top-level `<script>` element and/or a single top-level `<script module>` element\nhttps://svelte.dev/e/script_duplicate")}function Ez(q,Z){p(q,"script_invalid_attribute_value",`If the \`${Z}\` attribute is supplied, it must be a boolean attribute
|
|
195
|
-
https://svelte.dev/e/script_invalid_attribute_value`)}function QJ(q){p(q,"script_invalid_context",`If the context attribute is supplied, its value must be "module"
|
|
196
|
-
https://svelte.dev/e/script_invalid_context`)}function Fz(q,Z){p(q,"script_reserved_attribute",`The \`${Z}\` attribute is reserved and cannot be used
|
|
197
|
-
https://svelte.dev/e/script_reserved_attribute`)}function Tz(q,Z,Q){p(q,"slot_attribute_duplicate",`Duplicate slot name '${Z}' in <${Q}>
|
|
198
|
-
https://svelte.dev/e/slot_attribute_duplicate`)}function YJ(q){p(q,"slot_attribute_invalid",`slot attribute must be a static value
|
|
199
|
-
https://svelte.dev/e/slot_attribute_invalid`)}function JJ(q){p(q,"slot_attribute_invalid_placement",`Element with a slot='...' attribute must be a child of a component or a descendant of a custom element
|
|
200
|
-
https://svelte.dev/e/slot_attribute_invalid_placement`)}function fz(q){p(q,"slot_default_duplicate",`Found default slot content alongside an explicit slot="default"
|
|
201
|
-
https://svelte.dev/e/slot_default_duplicate`)}function Kz(q){p(q,"slot_element_invalid_attribute","`<slot>` can only receive attributes and (optionally) let directives\nhttps://svelte.dev/e/slot_element_invalid_attribute")}function vz(q){p(q,"slot_element_invalid_name",`slot attribute must be a static value
|
|
202
|
-
https://svelte.dev/e/slot_element_invalid_name`)}function Nz(q){p(q,"slot_element_invalid_name_default","`default` is a reserved word — it cannot be used as a slot name\nhttps://svelte.dev/e/slot_element_invalid_name_default")}function kz(q){p(q,"slot_snippet_conflict","Cannot use `<slot>` syntax and `{@render ...}` tags in the same component. Migrate towards `{@render ...}` tags completely\nhttps://svelte.dev/e/slot_snippet_conflict")}function Sz(q){p(q,"snippet_conflict",`Cannot use explicit children snippet at the same time as implicit children content. Remove either the non-whitespace content or the children snippet block
|
|
203
|
-
https://svelte.dev/e/snippet_conflict`)}function uz(q){p(q,"snippet_invalid_rest_parameter",`Snippets do not support rest parameters; use an array instead
|
|
204
|
-
https://svelte.dev/e/snippet_invalid_rest_parameter`)}function bz(q,Z){p(q,"snippet_shadowing_prop",`This snippet is shadowing the prop \`${Z}\` with the same name
|
|
205
|
-
https://svelte.dev/e/snippet_shadowing_prop`)}function hz(q){p(q,"style_directive_invalid_modifier","`style:` directive can only use the `important` modifier\nhttps://svelte.dev/e/style_directive_invalid_modifier")}function yz(q){p(q,"style_duplicate","A component can have a single top-level `<style>` element\nhttps://svelte.dev/e/style_duplicate")}function _z(q){p(q,"svelte_body_illegal_attribute","`<svelte:body>` does not support non-event attributes or spread attributes\nhttps://svelte.dev/e/svelte_body_illegal_attribute")}function gz(q){p(q,"svelte_boundary_invalid_attribute","Valid attributes on `<svelte:boundary>` are `onerror` and `failed`\nhttps://svelte.dev/e/svelte_boundary_invalid_attribute")}function lz(q){p(q,"svelte_boundary_invalid_attribute_value",`Attribute value must be a non-string expression
|
|
206
|
-
https://svelte.dev/e/svelte_boundary_invalid_attribute_value`)}function xz(q){p(q,"svelte_component_invalid_this","Invalid component definition — must be an `{expression}`\nhttps://svelte.dev/e/svelte_component_invalid_this")}function mz(q){p(q,"svelte_component_missing_this","`<svelte:component>` must have a 'this' attribute\nhttps://svelte.dev/e/svelte_component_missing_this")}function HJ(q){p(q,"svelte_element_missing_this","`<svelte:element>` must have a 'this' attribute with a value\nhttps://svelte.dev/e/svelte_element_missing_this")}function pz(q){p(q,"svelte_fragment_invalid_attribute","`<svelte:fragment>` can only have a slot attribute and (optionally) a let: directive\nhttps://svelte.dev/e/svelte_fragment_invalid_attribute")}function cz(q){p(q,"svelte_fragment_invalid_placement","`<svelte:fragment>` must be the direct child of a component\nhttps://svelte.dev/e/svelte_fragment_invalid_placement")}function rz(q){p(q,"svelte_head_illegal_attribute","`<svelte:head>` cannot have attributes nor directives\nhttps://svelte.dev/e/svelte_head_illegal_attribute")}function iz(q,Z){p(q,"svelte_meta_duplicate",`A component can only have one \`<${Z}>\` element
|
|
207
|
-
https://svelte.dev/e/svelte_meta_duplicate`)}function dz(q,Z){p(q,"svelte_meta_invalid_content",`<${Z}> cannot have children
|
|
208
|
-
https://svelte.dev/e/svelte_meta_invalid_content`)}function sz(q,Z){p(q,"svelte_meta_invalid_placement",`\`<${Z}>\` tags cannot be inside elements or blocks
|
|
209
|
-
https://svelte.dev/e/svelte_meta_invalid_placement`)}function az(q,Z){p(q,"svelte_meta_invalid_tag",`Valid \`<svelte:...>\` tag names are ${Z}
|
|
210
|
-
https://svelte.dev/e/svelte_meta_invalid_tag`)}function oz(q){p(q,"svelte_options_deprecated_tag",`"tag" option is deprecated — use "customElement" instead
|
|
211
|
-
https://svelte.dev/e/svelte_options_deprecated_tag`)}function nz(q){p(q,"svelte_options_invalid_attribute","`<svelte:options>` can only receive static attributes\nhttps://svelte.dev/e/svelte_options_invalid_attribute")}function Y3(q,Z){p(q,"svelte_options_invalid_attribute_value",`Value must be ${Z}, if specified
|
|
212
|
-
https://svelte.dev/e/svelte_options_invalid_attribute_value`)}function J3(q){p(q,"svelte_options_invalid_customelement",'"customElement" must be a string literal defining a valid custom element name or an object of the form { tag?: string; shadow?: "open" | "none" | `ShadowRootInit`; props?: { [key: string]: { attribute?: string; reflect?: boolean; type: .. } } }\nhttps://svelte.dev/e/svelte_options_invalid_customelement')}function E6(q){p(q,"svelte_options_invalid_customelement_props",`"props" must be a statically analyzable object literal of the form "{ [key: string]: { attribute?: string; reflect?: boolean; type?: "String" | "Boolean" | "Number" | "Array" | "Object" }"
|
|
213
|
-
https://svelte.dev/e/svelte_options_invalid_customelement_props`)}function tz(q){p(q,"svelte_options_invalid_customelement_shadow",'"shadow" must be either "open", "none" or `ShadowRootInit` object.\nhttps://svelte.dev/e/svelte_options_invalid_customelement_shadow')}function XJ(q){p(q,"svelte_options_invalid_tagname",`Tag name must be lowercase and hyphenated
|
|
214
|
-
https://svelte.dev/e/svelte_options_invalid_tagname`)}function ez(q){p(q,"svelte_options_reserved_tagname",`Tag name is reserved
|
|
215
|
-
https://svelte.dev/e/svelte_options_reserved_tagname`)}function qB(q,Z){p(q,"svelte_options_unknown_attribute",`\`<svelte:options>\` unknown attribute '${Z}'
|
|
216
|
-
https://svelte.dev/e/svelte_options_unknown_attribute`)}function ZB(q){p(q,"svelte_self_invalid_placement","`<svelte:self>` components can only exist inside `{#if}` blocks, `{#each}` blocks, `{#snippet}` blocks or slots passed to components\nhttps://svelte.dev/e/svelte_self_invalid_placement")}function QB(q){p(q,"tag_invalid_name",`Expected a valid element or component name. Components must have a valid variable name or dot notation expression
|
|
217
|
-
https://svelte.dev/e/tag_invalid_name`)}function YB(q,Z,Q){p(q,"tag_invalid_placement",`{@${Z} ...} tag cannot be ${Q}
|
|
218
|
-
https://svelte.dev/e/tag_invalid_placement`)}function JB(q){p(q,"textarea_invalid_content","A `<textarea>` can have either a value attribute or (equivalently) child content, but not both\nhttps://svelte.dev/e/textarea_invalid_content")}function HB(q){p(q,"title_illegal_attribute","`<title>` cannot have attributes nor directives\nhttps://svelte.dev/e/title_illegal_attribute")}function XB(q){p(q,"title_invalid_content","`<title>` can only contain text and {tags}\nhttps://svelte.dev/e/title_invalid_content")}function GB(q,Z,Q){p(q,"transition_conflict",`Cannot use \`${Z}:\` alongside existing \`${Q}:\` directive
|
|
219
|
-
https://svelte.dev/e/transition_conflict`)}function VB(q,Z){p(q,"transition_duplicate",`Cannot use multiple \`${Z}:\` directives on a single element
|
|
220
|
-
https://svelte.dev/e/transition_duplicate`)}function O1(q){p(q,"unexpected_eof",`Unexpected end of input
|
|
221
|
-
https://svelte.dev/e/unexpected_eof`)}function WB(q,Z){p(q,"unexpected_reserved_word",`'${Z}' is a reserved word in JavaScript and cannot be used here
|
|
222
|
-
https://svelte.dev/e/unexpected_reserved_word`)}function $B(q){p(q,"unterminated_string_constant",`Unterminated string constant
|
|
223
|
-
https://svelte.dev/e/unterminated_string_constant`)}function UB(q){p(q,"void_element_invalid_content",`Void elements cannot have children or closing tags
|
|
224
|
-
https://svelte.dev/e/void_element_invalid_content`)}var H3=O0,GJ=H3.extend(gU());function VJ(q,Z,Q,Y){let J=Q?GJ:H3,{onComment:H,add_comments:X}=$J(q,Z),G=J.prototype.parseStatement;if(Y)J.prototype.parseStatement=function(...W){let R=G.call(this,...W);return this.undefinedExports={},R};try{let W=J.parse(q,{onComment:H,sourceType:"module",ecmaVersion:16,locations:!0});return X(W),W}catch(W){return WJ(W)}finally{if(Y)J.prototype.parseStatement=G}}function F6(q,Z,Q){let Y=q.ts?GJ:H3,{onComment:J,add_comments:H}=$J(Z,q.root.comments,Q);try{let X=Y.parseExpressionAt(Z,Q,{onComment:J,sourceType:"module",ecmaVersion:16,locations:!0,preserveParens:!0});return H(X),X}catch(X){WJ(X)}}function RB(q,Z,Q){let Y=q.ts?GJ:H3,{onComment:J,add_comments:H}=$J(Z,q.root.comments,Q);try{let X=new Y({onComment:J,sourceType:"module",ecmaVersion:16,locations:!0},Z,Q);X.nextToken();let G=X.parseStatement(null,!0,Object.create(null));return H(G),G}catch(X){if(X.pos===Z.length)O1(Z.length);WJ(X)}}var qd=/ \(\d+:\d+\)$/;function WJ(q){wz(q.pos,q.message.replace(qd,""))}function U5(q){return K8(q,null,{ParenthesizedExpression(Z,Q){return Q.visit(Z.expression)}})}function $J(q,Z,Q=0){return{onComment:(Y,J,H,X,G,W)=>{if(Y&&/\n/.test(J)){let R=H;while(R>0&&q[R-1]!==`
|
|
225
|
-
`)R-=1;let B=R;while(/[ \t]/.test(q[B]))B+=1;let M=q.slice(R,B);J=J.replace(new RegExp(`^${M}`,"gm"),"")}Z.push({type:Y?"Block":"Line",value:J,start:H,end:X,loc:{start:G,end:W}})},add_comments(Y){if(Z.length===0)return;if(Z=Z.filter((J)=>J.start>=Q).map(({type:J,value:H,start:X,end:G})=>({type:J,value:H,start:X,end:G})),K8(Y,null,{_(J,{next:H,path:X}){let G;while(Z[0]&&Z[0].start<J.start)G=Z.shift(),(J.leadingComments||=[]).push(G);if(H(),Z[0]){let W=X.at(-1);if(W===void 0||J.end!==W.end){let R=q.slice(J.end,Z[0].start);if((W?.type==="BlockStatement"||W?.type==="Program")&&W.body.indexOf(J)===W.body.length-1||W?.type==="ArrayExpression"&&W.elements.indexOf(J)===W.elements.length-1||W?.type==="ObjectExpression"&&W.properties.indexOf(J)===W.properties.length-1){let M=J.end;while(Z.length){let V=Z[0];if(W&&V.start>=W.end)break;(J.trailingComments||=[]).push(V),Z.shift(),M=V.end}}else if(J.end<=Z[0].start&&/^[,) \t]*$/.test(R))J.trailingComments=[Z.shift()]}}}}),Z.length>0&&(Z[0].start>=Y.end||Y.type==="Program"))(Y.trailingComments||=[]).push(...Z.splice(0))}}}function UJ(q){if(q<0)return 1/0;return q}function Qd(q,Z,Q){let Y;if(Q==="`")Y=q;else Y=q.slice(0,UJ(q.indexOf(`
|
|
226
|
-
`,Z)));return RJ(Y,Z,Q)}function Yd(q,Z){let Q=RJ(q,Z,"/"),Y=RJ(q,Z,`
|
|
227
|
-
`);return Q<Y?Q:1/0}function RJ(q,Z,Q){let Y=Z;while(!0){let J=q.indexOf(Q,Y);if(J===-1)return 1/0;if(Jd(q,J-1)%2===0)return J;Y=J+1}}function Jd(q,Z){let Q=Z,Y=0;while(q[Q]==="\\")Y++,Q--;return Y}function G3(q,Z,Q){let Y=X3[Q],J=1,H=Z;while(J>0&&H<q.length){let X=q[H];switch(X){case"'":case'"':case"`":H=Qd(q,H+1,X)+1;continue;case"/":{let G=q[H+1];if(!G){H++;continue}if(G==="/"){H=UJ(q.indexOf(`
|
|
228
|
-
`,H+1))+1;continue}if(G==="*"){H=UJ(q.indexOf("*/",H+1))+2;continue}let W=Yd(q,H+1)+1;if(W===1/0)H++;else H=W;continue}default:{let G=q[H];if(G===Q)J++;else if(G===Y)J--;if(J===0)return H;H++}}}return}var X3={"{":"}","(":")","[":"]"},Hd=new Set(Object.values(X3));function f2(q,Z,Q=X3){let Y=Q===X3?Hd:new Set(Object.values(Q)),J=[],H=Z;while(H<q.template.length){let X=q.template[H++];if(X==="'"||X==='"'||X==="`"){H=Xd(q,H,X);continue}if(X in Q)J.push(X);else if(Y.has(X)){let G=J.pop(),W=Q[G];if(X!==W)c1(H-1,W);if(J.length===0)return H}}O1(q.template.length)}function Xd(q,Z,Q){let Y=!1,J=Z;while(J<q.template.length){let H=q.template[J++];if(Y){Y=!1;continue}if(H===Q)return J;if(H==="\\")Y=!0;if(Q==="`"&&H==="$"&&q.template[J]==="{")J=f2(q,J)}$B(Z)}function zJ(q,Z){let Q=G3(q.template,q.index,Z??"{");if(Q){let Y=q.index;return q.index=Q,{type:"Identifier",start:Y,end:Q,name:""}}}function t0(q,Z,Q){try{let Y=F6(q,q.template,q.index),J=Y.end,H=q.root.comments.at(-1);if(H&&H.end>J)J=H.end;return q.index=J,U5(Y)}catch(Y){if(q.loose&&!Q){let J=zJ(q,Z);if(J)return J}throw Y}}function z7(q){return q.replace(/(`|\${|\\)/g,"\\$1")}function G8(q=[]){return{type:"ArrayExpression",elements:q}}function T6(q){return{type:"ArrayPattern",elements:q}}function V3(q,Z){return{type:"AssignmentPattern",left:q,right:Z}}function J8(q,Z,Q=!1){if(Q&&Z.type==="AwaitExpression"){if(!K9(Z.argument))return J8(q,Z.argument)}return{type:"ArrowFunctionExpression",params:q,body:Z,expression:Z.type!=="BlockStatement",generator:!1,async:Q}}function L8(q,Z,Q){return{type:"AssignmentExpression",operator:q,left:Z,right:Q}}function e0(q){return{type:"AwaitExpression",argument:q}}function V9(q,Z,Q){return{type:"BinaryExpression",operator:q,left:Z,right:Q}}function d(q){return{type:"BlockStatement",body:q}}function zB(q,Z){return{type:"LabeledStatement",label:F(q),body:Z}}function j(q,...Z){if(typeof q==="string")q=F(q);Z=Z.slice();let Q=Z.length,Y=!0;while(Q--)if(!Z[Q])if(Y)Z.pop();else Z[Q]=w0;else Y=!1;return{type:"CallExpression",callee:q,arguments:Z,optional:!1}}function T9(q,...Z){let Q=j(q,...Z);return Q.optional=!0,{type:"ChainExpression",expression:Q}}function K2(q,Z){return{type:"UnaryExpression",argument:Z,operator:q,prefix:!0}}var w0=K2("void",g(0));function r1(q,Z,Q){return{type:"LogicalExpression",operator:q,left:Z,right:Q}}function f1(q,Z){return{type:"VariableDeclaration",kind:q,declarations:Z}}function b8(q,Z){if(typeof q==="string")q=F(q);return{type:"VariableDeclarator",id:q,init:Z}}var _8={type:"EmptyStatement"};function B7(q){return{type:"ExportDefaultDeclaration",declaration:q}}function BB(q,Z,Q,Y=!1){return{type:"ForOfStatement",left:q,right:Z,body:Q,await:Y}}function M7(q,Z,Q,Y=!1){return{type:"FunctionDeclaration",id:q,params:Z,body:Q,generator:!1,async:Y}}function B1(q,Z){return e8("get",i0(q),r0(null,[],d(Z)))}function F(q,Z){let Q={type:"Identifier",name:q};if(Z)Q.loc=Z;return Q}function MB(q){return{type:"PrivateIdentifier",name:q}}function Gd(q){return{type:"ImportNamespaceSpecifier",local:F(q)}}function M8(q,Z){return e8("init",i0(q),Z)}function g(q){return{type:"Literal",value:q}}function U8(q,Z,Q=!1,Y=!1){if(typeof Z==="string")Z=F(Z);return{type:"MemberExpression",object:q,property:Z,computed:Q,optional:Y}}function f6(q){let Z=q.split("."),Q=F(Z[0]);for(let Y=1;Y<Z.length;Y+=1)Q=U8(Q,F(Z[Y]));return Q}function z8(q){return{type:"ObjectExpression",properties:q}}function P7(q){return{type:"ObjectPattern",properties:q}}function e8(q,Z,Q,Y=!1){return{type:"Property",kind:q,key:Z,value:Q,method:!1,shorthand:!1,computed:Y}}function L7(q,Z,Q=!1,Y=!1){return{type:"PropertyDefinition",decorators:[],key:q,value:Z,computed:Q,static:Y}}function W9(q,Z=!1){return{type:"TemplateElement",value:{raw:z7(q),cooked:q},tail:Z}}function R5(q){return{type:"RestElement",argument:q}}function y0(q){return{type:"SequenceExpression",expressions:q}}function $9(q,Z){return e8("set",i0(q),r0(null,[F("$$value")],d(Z)))}function i1(q){return{type:"SpreadElement",argument:q}}function l(q){return{type:"ExpressionStatement",expression:q}}function K6(q,Z){return{type:"TemplateLiteral",quasis:q,expressions:Z}}function i(q,Z=!1){return BJ(J8([],q,Z))}function BJ(q){if(q.async===!1&&q.body.type==="CallExpression"&&q.body.callee.type==="Identifier"&&q.params.length===q.body.arguments.length&&q.params.every((Z,Q)=>{let Y=q.body.arguments[Q];return Z.type==="Identifier"&&Y.type==="Identifier"&&Z.name===Y.name}))return q.body.callee;return q}function W3(q,...Z){if(typeof q==="string")q=F(q);return{callee:q,arguments:Z,type:"NewExpression"}}function $3(q,Z,Q=!1){return{type:"UpdateExpression",operator:q,argument:Z,prefix:Q}}function PB(q,Z){return{type:"DoWhileStatement",test:q,body:Z}}var P8=g(!0),a9=g(!1),w1=g(null),U3={type:"DebuggerStatement"},M1={type:"ThisExpression"};function _0(q,Z){return f1("let",[b8(q,Z)])}function q0(q,Z){return f1("const",[b8(q,Z)])}function D8(q,Z){return f1("var",[b8(q,Z)])}function LB(q,Z,Q,Y){return{type:"ForStatement",init:q,test:Z,update:Q,body:Y}}function f9(q,Z,Q,Y,J=!1,H=!1){return{type:"MethodDefinition",decorators:[],key:Z,kind:q,value:r0(null,Q,d(Y)),computed:J,static:H}}function r0(q,Z,Q,Y=!1){return{type:"FunctionExpression",id:q,params:Z,body:Q,generator:!1,async:Y}}function k0(q,Z,Q){return{type:"IfStatement",test:q,consequent:Z,alternate:Q}}function R3(q,Z){return{type:"ImportDeclaration",attributes:[],source:g(Z),specifiers:[Gd(q)]}}function o9(q,Z){return{type:"ImportDeclaration",attributes:[],source:g(Z),specifiers:q.map((Q)=>({type:"ImportSpecifier",imported:F(Q[0]),local:F(Q[1])}))}}function l8(q=null){return{type:"ReturnStatement",argument:q}}function OB(q){return{type:"ThrowStatement",argument:W3("Error",g(q))}}function i0(q){return W2.test(q)?F(q):g(q)}function f0(q){while(q.type==="MemberExpression")q=q.object;if(q.type!=="Identifier")return null;return q}function d8(q){return Array.isArray(q.value)&&q.value.length===1&&q.value[0].type==="Text"}function t9(q){return q.value!==!0&&!Array.isArray(q.value)||Array.isArray(q.value)&&q.value.length===1&&q.value[0].type==="ExpressionTag"}function U9(q){return Array.isArray(q.value)?q.value[0].expression:q.value.expression}function v6(q){return Array.isArray(q)?q:typeof q==="boolean"?[]:[q]}function I0(q){return t9(q)&&q.name.startsWith("on")}function v9(q,Z=[]){switch(q.type){case"Identifier":Z.push(q);break;case"MemberExpression":Z.push(q);break;case"ObjectPattern":for(let Q of q.properties)if(Q.type==="RestElement")v9(Q.argument,Z);else v9(Q.value,Z);break;case"ArrayPattern":for(let Q of q.elements)if(Q)v9(Q,Z);break;case"RestElement":v9(q.argument,Z);break;case"AssignmentPattern":v9(q.left,Z);break}return Z}function r8(q){return v9(q,[]).filter((Z)=>Z.type==="Identifier")}function z3(q){let Z=[],Q=[];return K8(q,{},{Identifier(Y,{path:J}){let H=J.at(-1);if(H?.type!=="MemberExpression"||H.property!==Y||H.computed)Z.push(Y);if(H?.type==="MemberExpression"&&H.computed&&H.property===Y)Q.push(`[${Y.name}]`);else Q.push(Y.name)},Literal(Y,{path:J}){let H=typeof Y.value==="string"?`"${Y.value}"`:String(Y.value),X=J.at(-1);if(X?.type==="MemberExpression"&&X.computed&&X.property===Y)Q.push(`[${H}]`);else Q.push(H)},ThisExpression(Y,{next:J}){Q.push("this"),J()}}),[Q.join("."),Z]}function v2(q,Z=[]){switch(q.type){case"Identifier":Z.push(q);break;case"ObjectExpression":for(let Q of q.properties)if(Q.type==="Property")v2(Q.value,Z);else v2(Q.argument,Z);break;case"ArrayExpression":for(let Q of q.elements)if(Q)v2(Q,Z);break}return Z}function q1(q,Z){let Q=[],Y=[];return z5(Y,Q,q,Z,Z,!1),{inserts:Q,paths:Y}}function z5(q,Z,Q,Y,J,H){switch(Q.type){case"Identifier":case"MemberExpression":q.push({node:Q,is_rest:!1,has_default_value:H,expression:Y,update_expression:J});break;case"ObjectPattern":for(let X of Q.properties)if(X.type==="RestElement"){let G=[];for(let R of Q.properties)if(R.type==="Property"&&R.key.type!=="PrivateIdentifier")if(R.key.type==="Identifier"&&!R.computed)G.push(g(R.key.name));else if(R.key.type==="Literal")G.push(g(String(R.key.value)));else G.push(j("String",R.key));let W=j("$.exclude_from_object",Y,G8(G));if(X.argument.type==="Identifier")q.push({node:X.argument,is_rest:!0,has_default_value:H,expression:W,update_expression:W});else z5(q,Z,X.argument,W,W,H)}else{let G=U8(Y,X.key,X.computed||X.key.type!=="Identifier");z5(q,Z,X.value,G,G,H)}break;case"ArrayPattern":{let X=F("#"),G=j("$.to_array",Y,Q.elements.at(-1)?.type==="RestElement"?void 0:g(Q.elements.length));Z.push({id:X,value:G});for(let W=0;W<Q.elements.length;W+=1){let R=Q.elements[W];if(R)if(R.type==="RestElement"){let B=j(U8(X,"slice"),g(W));if(R.argument.type==="Identifier")q.push({node:R.argument,is_rest:!0,has_default_value:H,expression:B,update_expression:B});else z5(q,Z,R.argument,B,B,H)}else{let B=U8(X,g(W),!0);z5(q,Z,R,B,B,H)}}break}case"AssignmentPattern":{let X=B3(Y,Q.right);if(Q.left.type==="Identifier")q.push({node:Q.left,is_rest:!1,has_default_value:!0,expression:X,update_expression:J});else z5(q,Z,Q.left,X,J,!0);break}}return q}function e9(q,Z){let Q=q.at(Z);if(Q.type==="TSNonNullExpression"||Q.type==="TSAsExpression")return q.at(Z<0?Z-1:Z+1);return Q}function n9(q){if(q.type==="Literal"||q.type==="Identifier"||q.type==="ArrowFunctionExpression"||q.type==="FunctionExpression")return!0;if(q.type==="ConditionalExpression")return n9(q.test)&&n9(q.consequent)&&n9(q.alternate);if(q.type==="BinaryExpression"||q.type==="LogicalExpression")return q.left.type!=="PrivateIdentifier"&&n9(q.left)&&n9(q.right);return!1}function N6(q){return q.type==="ChainExpression"?q.expression:q}function G0(q){switch(q.type){case"AwaitExpression":return!0;case"ArrayPattern":return q.elements.some((Z)=>Z&&G0(Z));case"ArrayExpression":return q.elements.some((Z)=>{if(!Z)return!1;else if(Z.type==="SpreadElement")return G0(Z.argument);else return G0(Z)});case"AssignmentPattern":case"AssignmentExpression":case"BinaryExpression":case"LogicalExpression":return q.left.type!=="PrivateIdentifier"&&G0(q.left)||G0(q.right);case"CallExpression":case"NewExpression":return q.callee.type!=="Super"&&G0(q.callee)||q.arguments.some((Z)=>{if(Z.type==="SpreadElement")return G0(Z.argument);else return G0(Z)});case"ChainExpression":return G0(q.expression);case"ConditionalExpression":return G0(q.test)||G0(q.alternate)||G0(q.consequent);case"ImportExpression":return G0(q.source);case"MemberExpression":return q.object.type!=="Super"&&G0(q.object)||q.property.type!=="PrivateIdentifier"&&G0(q.property);case"ObjectPattern":case"ObjectExpression":return q.properties.some((Z)=>{if(Z.type==="SpreadElement")return G0(Z.argument);else if(Z.type==="Property")return Z.key.type!=="PrivateIdentifier"&&G0(Z.key)||G0(Z.value)});case"RestElement":return G0(q.argument);case"SequenceExpression":case"TemplateLiteral":return q.expressions.some((Z)=>G0(Z));case"TaggedTemplateExpression":return G0(q.tag)||G0(q.quasi);case"UnaryExpression":case"UpdateExpression":return G0(q.argument);case"YieldExpression":return q.argument?G0(q.argument):!1;default:return!1}}function B3(q,Z){if(n9(Z))return j("$.fallback",q,Z);if(Z.type==="AwaitExpression"&&n9(Z.argument))return e0(j("$.fallback",q,Z.argument));return G0(Z)?e0(j("$.fallback",q,i(Z,!0),P8)):j("$.fallback",q,i(Z),P8)}function O7(q,Z,Q){return q==="="?Q:["||=","&&=","??="].includes(q)?r1(q.slice(0,-1),Z,Q):V9(q.slice(0,-1),Z,Q)}function K9(q){let Z=!1;return K8(q,null,{AwaitExpression(Q,Y){Z=!0,Y.stop()},FunctionDeclaration(){},FunctionExpression(){},ArrowFunctionExpression(){}}),Z}function N9(q){return j(e0(j("$.save",q)))}var Vd=/<\/script\s*>/,Wd=/<\/script\s*>/y,$d=["server","client","worker","test","default"],Ud=["context","generics","lang","module"];function wB(q,Z,Q){let Y=q.index,J=q.read_until(Vd);if(q.index>=q.template.length)Z3(q.template.length,"script");let H=q.template.slice(0,Y).replace(O4," ")+J;q.read(Wd);let X=VJ(H,q.root.comments,q.ts,!0);if(X.start=Y,X.loc)({line:X.loc.start.line,column:X.loc.start.column}=J0(Z)),{line:X.loc.end.line,column:X.loc.end.column}=J0(q.index);let G="default";for(let W of Q){if($d.includes(W.name))Fz(W,W.name);if(!Ud.includes(W.name))S$(W);if(W.name==="module"){if(W.value!==!0)Ez(W,W.name);G="module"}if(W.name==="context"){if(W.value===!0||!d8(W))QJ(W);if(W.value[0].data!=="module")QJ(W);G="module"}}return{type:"Script",start:Z,end:q.index,context:G,content:X,attributes:Q}}var Rd=/[~^$*|]?=/y,zd=/[\s\]]/,Bd=/[a-zA-Z]+/y,IB=/(\+|~|>|\|\|)/y,AB=/\d+(\.\d+)?%/y,jB=/(even|odd|\+?(\d+|\d*n(\s*[+-]\s*\d+)?)|-\d*n(\s*\+\s*\d+))((?=\s*[,)])|\s+of\s+)/y,Md=/[\s:]/,Pd=/-?\d/y,Ld=/[a-zA-Z0-9_-]/,Od=/\\[0-9a-fA-F]{1,6}(\r\n|\s)?/y,wd=/\*\//,Ad=/-->/;function PJ(q,Z,Q){let Y=q.index,J=jd(q,(X)=>X.match("</style")||X.index>=X.template.length),H=q.index;return q.eat("</style",!0),q.read(/\s*>/y),{type:"StyleSheet",start:Z,end:q.index,attributes:Q,children:J,content:{start:Y,end:H,styles:q.template.slice(Y,H),comment:null}}}function jd(q,Z){let Q=[];while(B5(q),!Z(q))if(q.match("@"))Q.push(DB(q));else Q.push(CB(q));return Q}function DB(q){let Z=q.index;q.eat("@",!0);let Q=q6(q),Y=LJ(q),J=null;if(q.match("{"))J=EB(q);else q.eat(";",!0);return{type:"Atrule",start:Z,end:q.index,name:Q,prelude:Y,block:J}}function CB(q){let Z=q.index;return{type:"Rule",prelude:MJ(q),block:EB(q),start:Z,end:q.index,metadata:{parent_rule:null,has_local_selectors:!1,has_global_selectors:!1,is_global_block:!1}}}function MJ(q,Z=!1){let Q=[];B5(q);let Y=q.index;while(q.index<q.template.length){Q.push(Id(q,Z));let J=q.index;if(B5(q),Z?q.match(")"):q.match("{"))return{type:"SelectorList",start:Y,end:J,children:Q};else q.eat(",",!0),B5(q)}O1(q.template.length)}function Id(q,Z=!1){let Q=q.index,Y=[];function J(X,G){return{type:"RelativeSelector",combinator:X,selectors:[],start:G,end:-1,metadata:{is_global:!1,is_global_like:!1,scoped:!1}}}let H=J(null,q.index);while(q.index<q.template.length){let X=q.index;if(q.eat("&"))H.selectors.push({type:"NestingSelector",name:"&",start:X,end:q.index});else if(q.eat("*")){let R="*";if(q.eat("|"))R=q6(q);H.selectors.push({type:"TypeSelector",name:R,start:X,end:q.index})}else if(q.eat("#"))H.selectors.push({type:"IdSelector",name:q6(q),start:X,end:q.index});else if(q.eat("."))H.selectors.push({type:"ClassSelector",name:q6(q),start:X,end:q.index});else if(q.eat("::")){if(H.selectors.push({type:"PseudoElementSelector",name:q6(q),start:X,end:q.index}),q.eat("("))MJ(q,!0),q.eat(")",!0)}else if(q.eat(":")){let R=q6(q),B=null;if(q.eat("("))B=MJ(q,!0),q.eat(")",!0);H.selectors.push({type:"PseudoClassSelector",name:R,args:B,start:X,end:q.index})}else if(q.eat("[")){q.allow_whitespace();let R=q6(q);q.allow_whitespace();let B=null,M=q.read(Rd);if(M)q.allow_whitespace(),B=Fd(q);q.allow_whitespace();let V=q.read(Bd);q.allow_whitespace(),q.eat("]",!0),H.selectors.push({type:"AttributeSelector",start:X,end:q.index,name:R,matcher:M,value:B,flags:V})}else if(Z&&q.match_regex(jB))H.selectors.push({type:"Nth",value:q.read(jB),start:X,end:q.index});else if(q.match_regex(AB))H.selectors.push({type:"Percentage",value:q.read(AB),start:X,end:q.index});else if(!q.match_regex(IB)){let R=q6(q);if(q.eat("|"))R=q6(q);H.selectors.push({type:"TypeSelector",name:R,start:X,end:q.index})}let G=q.index;if(B5(q),q.match(",")||(Z?q.match(")"):q.match("{")))return q.index=G,H.end=G,Y.push(H),{type:"ComplexSelector",start:Q,end:G,children:Y,metadata:{rule:null,is_global:!1,used:!1}};q.index=G;let W=Dd(q);if(W){if(H.selectors.length>0)H.end=G,Y.push(H);if(H=J(W,W.start),q.allow_whitespace(),q.match(",")||(Z?q.match(")"):q.match("{")))n4(q.index)}}O1(q.template.length)}function Dd(q){let Z=q.index;q.allow_whitespace();let Q=q.index,Y=q.read(IB);if(Y){let J=q.index;return q.allow_whitespace(),{type:"Combinator",name:Y,start:Q,end:J}}if(q.index!==Z)return{type:"Combinator",name:" ",start:Z,end:q.index};return null}function EB(q){let Z=q.index;q.eat("{",!0);let Q=[];while(q.index<q.template.length)if(B5(q),q.match("}"))break;else Q.push(Cd(q));return q.eat("}",!0),{type:"Block",start:Z,end:q.index,children:Q}}function Cd(q){if(q.match("@"))return DB(q);let Z=q.index;LJ(q);let Q=q.template[q.index];return q.index=Z,Q==="{"?CB(q):Ed(q)}function Ed(q){let Z=q.index,Q=q.read_until(Md);q.allow_whitespace(),q.eat(":");let Y=q.index;q.allow_whitespace();let J=LJ(q);if(!J&&!Q.startsWith("--"))ER({start:Z,end:Y});let H=q.index;if(!q.match("}"))q.eat(";",!0);return{type:"Declaration",start:Z,end:H,property:Q,value:J}}function LJ(q){let Z="",Q=!1,Y=!1,J=null;while(q.index<q.template.length){let H=q.template[q.index];if(Q){Z+="\\"+H,Q=!1,q.index++;continue}else if(H==="\\"){Q=!0,q.index++;continue}else if(H===J)J=null;else if(H===")")Y=!1;else if(J===null&&(H==='"'||H==="'"))J=H;else if(H==="("&&Z.slice(-3)==="url")Y=!0;else if((H===";"||H==="{"||H==="}")&&!Y&&!J)return Z.trim();else if(H==="/"&&!Y&&!J&&q.template[q.index+1]==="*"){q.index+=2;while(q.index<q.template.length){if(q.template[q.index]==="*"&&q.template[q.index+1]==="/"){q.index+=2;break}q.index++}continue}Z+=H,q.index++}O1(q.template.length)}function Fd(q){let Z="",Q=!1,Y=q.eat('"')?'"':q.eat("'")?"'":null;while(q.index<q.template.length){let J=q.template[q.index];if(Q)Z+="\\"+J,Q=!1;else if(J==="\\")Q=!0;else if(Y?J===Y:zd.test(J)){if(Y)q.eat(Y,!0);return Z.trim()}else Z+=J;q.index++}O1(q.template.length)}function q6(q){let Z=q.index,Q="";if(q.match_regex(Pd))iY(Z);while(q.index<q.template.length){let Y=q.template[q.index];if(Y==="\\"){let J=q.match_regex(Od);if(J)Q+=String.fromCodePoint(parseInt(J.slice(1),16)),q.index+=J.length;else Q+="\\"+q.template[q.index+1],q.index+=2}else if(Y.codePointAt(0)>=160||Ld.test(Y))Q+=Y,q.index++;else break}if(Q==="")iY(Z);return Q}function B5(q){q.allow_whitespace();while(q.match("/*")||q.match("<!--")){if(q.eat("/*"))q.read_until(wd),q.eat("*/",!0);if(q.eat("<!--"))q.read_until(Ad),q.eat("-->",!0);q.allow_whitespace()}}var OJ={"CounterClockwiseContourIntegral;":8755,"ClockwiseContourIntegral;":8754,"DoubleLongLeftRightArrow;":10234,"NotNestedGreaterGreater;":10914,"DiacriticalDoubleAcute;":733,"NotSquareSupersetEqual;":8931,"CloseCurlyDoubleQuote;":8221,"DoubleContourIntegral;":8751,"FilledVerySmallSquare;":9642,"NegativeVeryThinSpace;":8203,"NotPrecedesSlantEqual;":8928,"NotRightTriangleEqual;":8941,"NotSucceedsSlantEqual;":8929,"CapitalDifferentialD;":8517,"DoubleLeftRightArrow;":8660,"DoubleLongRightArrow;":10233,"EmptyVerySmallSquare;":9643,"NestedGreaterGreater;":8811,"NotDoubleVerticalBar;":8742,"NotGreaterSlantEqual;":10878,"NotLeftTriangleEqual;":8940,"NotSquareSubsetEqual;":8930,"OpenCurlyDoubleQuote;":8220,"ReverseUpEquilibrium;":10607,"DoubleLongLeftArrow;":10232,"DownLeftRightVector;":10576,"LeftArrowRightArrow;":8646,"NegativeMediumSpace;":8203,"NotGreaterFullEqual;":8807,"NotRightTriangleBar;":10704,"RightArrowLeftArrow;":8644,"SquareSupersetEqual;":8850,"leftrightsquigarrow;":8621,"DownRightTeeVector;":10591,"DownRightVectorBar;":10583,"LongLeftRightArrow;":10231,"Longleftrightarrow;":10234,"NegativeThickSpace;":8203,"NotLeftTriangleBar;":10703,"PrecedesSlantEqual;":8828,"ReverseEquilibrium;":8651,"RightDoubleBracket;":10215,"RightDownTeeVector;":10589,"RightDownVectorBar;":10581,"RightTriangleEqual;":8885,"SquareIntersection;":8851,"SucceedsSlantEqual;":8829,"blacktriangleright;":9656,"longleftrightarrow;":10231,"DoubleUpDownArrow;":8661,"DoubleVerticalBar;":8741,"DownLeftTeeVector;":10590,"DownLeftVectorBar;":10582,"FilledSmallSquare;":9724,"GreaterSlantEqual;":10878,"LeftDoubleBracket;":10214,"LeftDownTeeVector;":10593,"LeftDownVectorBar;":10585,"LeftTriangleEqual;":8884,"NegativeThinSpace;":8203,"NotGreaterGreater;":8811,"NotLessSlantEqual;":10877,"NotNestedLessLess;":10913,"NotReverseElement;":8716,"NotSquareSuperset;":8848,"NotTildeFullEqual;":8775,"RightAngleBracket;":10217,"RightUpDownVector;":10575,"SquareSubsetEqual;":8849,"VerticalSeparator;":10072,"blacktriangledown;":9662,"blacktriangleleft;":9666,"leftrightharpoons;":8651,"rightleftharpoons;":8652,"twoheadrightarrow;":8608,"DiacriticalAcute;":180,"DiacriticalGrave;":96,"DiacriticalTilde;":732,"DoubleRightArrow;":8658,"DownArrowUpArrow;":8693,"EmptySmallSquare;":9723,"GreaterEqualLess;":8923,"GreaterFullEqual;":8807,"LeftAngleBracket;":10216,"LeftUpDownVector;":10577,"LessEqualGreater;":8922,"NonBreakingSpace;":160,"NotPrecedesEqual;":10927,"NotRightTriangle;":8939,"NotSucceedsEqual;":10928,"NotSucceedsTilde;":8831,"NotSupersetEqual;":8841,"RightTriangleBar;":10704,"RightUpTeeVector;":10588,"RightUpVectorBar;":10580,"UnderParenthesis;":9181,"UpArrowDownArrow;":8645,"circlearrowright;":8635,"downharpoonright;":8642,"ntrianglerighteq;":8941,"rightharpoondown;":8641,"rightrightarrows;":8649,"twoheadleftarrow;":8606,"vartriangleright;":8883,"CloseCurlyQuote;":8217,"ContourIntegral;":8750,"DoubleDownArrow;":8659,"DoubleLeftArrow;":8656,"DownRightVector;":8641,"LeftRightVector;":10574,"LeftTriangleBar;":10703,"LeftUpTeeVector;":10592,"LeftUpVectorBar;":10584,"LowerRightArrow;":8600,"NotGreaterEqual;":8817,"NotGreaterTilde;":8821,"NotHumpDownHump;":8782,"NotLeftTriangle;":8938,"NotSquareSubset;":8847,"OverParenthesis;":9180,"RightDownVector;":8642,"ShortRightArrow;":8594,"UpperRightArrow;":8599,"bigtriangledown;":9661,"circlearrowleft;":8634,"curvearrowright;":8631,"downharpoonleft;":8643,"leftharpoondown;":8637,"leftrightarrows;":8646,"nLeftrightarrow;":8654,"nleftrightarrow;":8622,"ntrianglelefteq;":8940,"rightleftarrows;":8644,"rightsquigarrow;":8605,"rightthreetimes;":8908,"straightepsilon;":1013,"trianglerighteq;":8885,"vartriangleleft;":8882,"DiacriticalDot;":729,"DoubleRightTee;":8872,"DownLeftVector;":8637,"GreaterGreater;":10914,"HorizontalLine;":9472,"InvisibleComma;":8291,"InvisibleTimes;":8290,"LeftDownVector;":8643,"LeftRightArrow;":8596,"Leftrightarrow;":8660,"LessSlantEqual;":10877,"LongRightArrow;":10230,"Longrightarrow;":10233,"LowerLeftArrow;":8601,"NestedLessLess;":8810,"NotGreaterLess;":8825,"NotLessGreater;":8824,"NotSubsetEqual;":8840,"NotVerticalBar;":8740,"OpenCurlyQuote;":8216,"ReverseElement;":8715,"RightTeeVector;":10587,"RightVectorBar;":10579,"ShortDownArrow;":8595,"ShortLeftArrow;":8592,"SquareSuperset;":8848,"TildeFullEqual;":8773,"UpperLeftArrow;":8598,"ZeroWidthSpace;":8203,"curvearrowleft;":8630,"doublebarwedge;":8966,"downdownarrows;":8650,"hookrightarrow;":8618,"leftleftarrows;":8647,"leftrightarrow;":8596,"leftthreetimes;":8907,"longrightarrow;":10230,"looparrowright;":8620,"nshortparallel;":8742,"ntriangleright;":8939,"rightarrowtail;":8611,"rightharpoonup;":8640,"trianglelefteq;":8884,"upharpoonright;":8638,"ApplyFunction;":8289,"DifferentialD;":8518,"DoubleLeftTee;":10980,"DoubleUpArrow;":8657,"LeftTeeVector;":10586,"LeftVectorBar;":10578,"LessFullEqual;":8806,"LongLeftArrow;":10229,"Longleftarrow;":10232,"NotEqualTilde;":8770,"NotTildeEqual;":8772,"NotTildeTilde;":8777,"Poincareplane;":8460,"PrecedesEqual;":10927,"PrecedesTilde;":8830,"RightArrowBar;":8677,"RightTeeArrow;":8614,"RightTriangle;":8883,"RightUpVector;":8638,"SucceedsEqual;":10928,"SucceedsTilde;":8831,"SupersetEqual;":8839,"UpEquilibrium;":10606,"VerticalTilde;":8768,"VeryThinSpace;":8202,"bigtriangleup;":9651,"blacktriangle;":9652,"divideontimes;":8903,"fallingdotseq;":8786,"hookleftarrow;":8617,"leftarrowtail;":8610,"leftharpoonup;":8636,"longleftarrow;":10229,"looparrowleft;":8619,"measuredangle;":8737,"ntriangleleft;":8938,"shortparallel;":8741,"smallsetminus;":8726,"triangleright;":9657,"upharpoonleft;":8639,"varsubsetneqq;":10955,"varsupsetneqq;":10956,"DownArrowBar;":10515,"DownTeeArrow;":8615,"ExponentialE;":8519,"GreaterEqual;":8805,"GreaterTilde;":8819,"HilbertSpace;":8459,"HumpDownHump;":8782,"Intersection;":8898,"LeftArrowBar;":8676,"LeftTeeArrow;":8612,"LeftTriangle;":8882,"LeftUpVector;":8639,"NotCongruent;":8802,"NotHumpEqual;":8783,"NotLessEqual;":8816,"NotLessTilde;":8820,"Proportional;":8733,"RightCeiling;":8969,"RoundImplies;":10608,"ShortUpArrow;":8593,"SquareSubset;":8847,"UnderBracket;":9141,"VerticalLine;":124,"blacklozenge;":10731,"exponentiale;":8519,"risingdotseq;":8787,"triangledown;":9663,"triangleleft;":9667,"varsubsetneq;":8842,"varsupsetneq;":8843,"CircleMinus;":8854,"CircleTimes;":8855,"Equilibrium;":8652,"GreaterLess;":8823,"LeftCeiling;":8968,"LessGreater;":8822,"MediumSpace;":8287,"NotLessLess;":8810,"NotPrecedes;":8832,"NotSucceeds;":8833,"NotSuperset;":8835,"OverBracket;":9140,"RightVector;":8640,"Rrightarrow;":8667,"RuleDelayed;":10740,"SmallCircle;":8728,"SquareUnion;":8852,"SubsetEqual;":8838,"UpDownArrow;":8597,"Updownarrow;":8661,"VerticalBar;":8739,"backepsilon;":1014,"blacksquare;":9642,"circledcirc;":8858,"circleddash;":8861,"curlyeqprec;":8926,"curlyeqsucc;":8927,"diamondsuit;":9830,"eqslantless;":10901,"expectation;":8496,"nRightarrow;":8655,"nrightarrow;":8603,"preccurlyeq;":8828,"precnapprox;":10937,"quaternions;":8461,"straightphi;":981,"succcurlyeq;":8829,"succnapprox;":10938,"thickapprox;":8776,"updownarrow;":8597,"Bernoullis;":8492,"CirclePlus;":8853,"EqualTilde;":8770,"Fouriertrf;":8497,"ImaginaryI;":8520,"Laplacetrf;":8466,"LeftVector;":8636,"Lleftarrow;":8666,"NotElement;":8713,"NotGreater;":8815,"Proportion;":8759,"RightArrow;":8594,"RightFloor;":8971,"Rightarrow;":8658,"ThickSpace;":8287,"TildeEqual;":8771,"TildeTilde;":8776,"UnderBrace;":9183,"UpArrowBar;":10514,"UpTeeArrow;":8613,"circledast;":8859,"complement;":8705,"curlywedge;":8911,"eqslantgtr;":10902,"gtreqqless;":10892,"lessapprox;":10885,"lesseqqgtr;":10891,"lmoustache;":9136,"longmapsto;":10236,"mapstodown;":8615,"mapstoleft;":8612,"nLeftarrow;":8653,"nleftarrow;":8602,"nsubseteqq;":10949,"nsupseteqq;":10950,"precapprox;":10935,"rightarrow;":8594,"rmoustache;":9137,"sqsubseteq;":8849,"sqsupseteq;":8850,"subsetneqq;":10955,"succapprox;":10936,"supsetneqq;":10956,"upuparrows;":8648,"varepsilon;":1013,"varnothing;":8709,"Backslash;":8726,"CenterDot;":183,"CircleDot;":8857,"Congruent;":8801,"Coproduct;":8720,"DoubleDot;":168,"DownArrow;":8595,"DownBreve;":785,"Downarrow;":8659,"HumpEqual;":8783,"LeftArrow;":8592,"LeftFloor;":8970,"Leftarrow;":8656,"LessTilde;":8818,"Mellintrf;":8499,"MinusPlus;":8723,"NotCupCap;":8813,"NotExists;":8708,"NotSubset;":8834,"OverBrace;":9182,"PlusMinus;":177,"Therefore;":8756,"ThinSpace;":8201,"TripleDot;":8411,"UnionPlus;":8846,"backprime;":8245,"backsimeq;":8909,"bigotimes;":10754,"centerdot;":183,"checkmark;":10003,"complexes;":8450,"dotsquare;":8865,"downarrow;":8595,"gtrapprox;":10886,"gtreqless;":8923,"gvertneqq;":8809,"heartsuit;":9829,"leftarrow;":8592,"lesseqgtr;":8922,"lvertneqq;":8808,"ngeqslant;":10878,"nleqslant;":10877,"nparallel;":8742,"nshortmid;":8740,"nsubseteq;":8840,"nsupseteq;":8841,"pitchfork;":8916,"rationals;":8474,"spadesuit;":9824,"subseteqq;":10949,"subsetneq;":8842,"supseteqq;":10950,"supsetneq;":8843,"therefore;":8756,"triangleq;":8796,"varpropto;":8733,"DDotrahd;":10513,"DotEqual;":8784,"Integral;":8747,"LessLess;":10913,"NotEqual;":8800,"NotTilde;":8769,"PartialD;":8706,"Precedes;":8826,"RightTee;":8866,"Succeeds;":8827,"SuchThat;":8715,"Superset;":8835,"Uarrocir;":10569,"UnderBar;":95,"andslope;":10840,"angmsdaa;":10664,"angmsdab;":10665,"angmsdac;":10666,"angmsdad;":10667,"angmsdae;":10668,"angmsdaf;":10669,"angmsdag;":10670,"angmsdah;":10671,"angrtvbd;":10653,"approxeq;":8778,"awconint;":8755,"backcong;":8780,"barwedge;":8965,"bbrktbrk;":9142,"bigoplus;":10753,"bigsqcup;":10758,"biguplus;":10756,"bigwedge;":8896,"boxminus;":8863,"boxtimes;":8864,"bsolhsub;":10184,"capbrcup;":10825,"circledR;":174,"circledS;":9416,"cirfnint;":10768,"clubsuit;":9827,"cupbrcap;":10824,"curlyvee;":8910,"cwconint;":8754,"doteqdot;":8785,"dotminus;":8760,"drbkarow;":10512,"dzigrarr;":10239,"elinters;":9191,"emptyset;":8709,"eqvparsl;":10725,"fpartint;":10765,"geqslant;":10878,"gesdotol;":10884,"gnapprox;":10890,"hksearow;":10533,"hkswarow;":10534,"imagline;":8464,"imagpart;":8465,"infintie;":10717,"integers;":8484,"intercal;":8890,"intlarhk;":10775,"laemptyv;":10676,"ldrushar;":10571,"leqslant;":10877,"lesdotor;":10883,"llcorner;":8990,"lnapprox;":10889,"lrcorner;":8991,"lurdshar;":10570,"mapstoup;":8613,"multimap;":8888,"naturals;":8469,"ncongdot;":10861,"notindot;":8949,"otimesas;":10806,"parallel;":8741,"plusacir;":10787,"pointint;":10773,"precneqq;":10933,"precnsim;":8936,"profalar;":9006,"profline;":8978,"profsurf;":8979,"raemptyv;":10675,"realpart;":8476,"rppolint;":10770,"rtriltri;":10702,"scpolint;":10771,"setminus;":8726,"shortmid;":8739,"smeparsl;":10724,"sqsubset;":8847,"sqsupset;":8848,"subseteq;":8838,"succneqq;":10934,"succnsim;":8937,"supseteq;":8839,"thetasym;":977,"thicksim;":8764,"timesbar;":10801,"triangle;":9653,"triminus;":10810,"trpezium;":9186,"ulcorner;":8988,"urcorner;":8989,"varkappa;":1008,"varsigma;":962,"vartheta;":977,"Because;":8757,"Cayleys;":8493,"Cconint;":8752,"Cedilla;":184,"Diamond;":8900,"DownTee;":8868,"Element;":8712,"Epsilon;":917,"Implies;":8658,"LeftTee;":8867,"NewLine;":10,"NoBreak;":8288,"NotLess;":8814,"Omicron;":927,"OverBar;":8254,"Product;":8719,"UpArrow;":8593,"Uparrow;":8657,"Upsilon;":933,"alefsym;":8501,"angrtvb;":8894,"angzarr;":9084,"asympeq;":8781,"backsim;":8765,"because;":8757,"bemptyv;":10672,"between;":8812,"bigcirc;":9711,"bigodot;":10752,"bigstar;":9733,"bnequiv;":8801,"boxplus;":8862,"ccupssm;":10832,"cemptyv;":10674,"cirscir;":10690,"coloneq;":8788,"congdot;":10861,"cudarrl;":10552,"cudarrr;":10549,"cularrp;":10557,"curarrm;":10556,"dbkarow;":10511,"ddagger;":8225,"ddotseq;":10871,"demptyv;":10673,"diamond;":8900,"digamma;":989,"dotplus;":8724,"dwangle;":10662,"epsilon;":949,"eqcolon;":8789,"equivDD;":10872,"gesdoto;":10882,"gtquest;":10876,"gtrless;":8823,"harrcir;":10568,"intprod;":10812,"isindot;":8949,"larrbfs;":10527,"larrsim;":10611,"lbrksld;":10639,"lbrkslu;":10637,"ldrdhar;":10599,"lesdoto;":10881,"lessdot;":8918,"lessgtr;":8822,"lesssim;":8818,"lotimes;":10804,"lozenge;":9674,"ltquest;":10875,"luruhar;":10598,"maltese;":10016,"minusdu;":10794,"napprox;":8777,"natural;":9838,"nearrow;":8599,"nexists;":8708,"notinva;":8713,"notinvb;":8951,"notinvc;":8950,"notniva;":8716,"notnivb;":8958,"notnivc;":8957,"npolint;":10772,"npreceq;":10927,"nsqsube;":8930,"nsqsupe;":8931,"nsubset;":8834,"nsucceq;":10928,"nsupset;":8835,"nvinfin;":10718,"nvltrie;":8884,"nvrtrie;":8885,"nwarrow;":8598,"olcross;":10683,"omicron;":959,"orderof;":8500,"orslope;":10839,"pertenk;":8241,"planckh;":8462,"pluscir;":10786,"plussim;":10790,"plustwo;":10791,"precsim;":8830,"quatint;":10774,"questeq;":8799,"rarrbfs;":10528,"rarrsim;":10612,"rbrksld;":10638,"rbrkslu;":10640,"rdldhar;":10601,"realine;":8475,"rotimes;":10805,"ruluhar;":10600,"searrow;":8600,"simplus;":10788,"simrarr;":10610,"subedot;":10947,"submult;":10945,"subplus;":10943,"subrarr;":10617,"succsim;":8831,"supdsub;":10968,"supedot;":10948,"suphsol;":10185,"suphsub;":10967,"suplarr;":10619,"supmult;":10946,"supplus;":10944,"swarrow;":8601,"topfork;":10970,"triplus;":10809,"tritime;":10811,"uparrow;":8593,"upsilon;":965,"uwangle;":10663,"vzigzag;":10650,"zigrarr;":8669,"Aacute;":193,"Abreve;":258,"Agrave;":192,"Assign;":8788,"Atilde;":195,"Barwed;":8966,"Bumpeq;":8782,"Cacute;":262,"Ccaron;":268,"Ccedil;":199,"Colone;":10868,"Conint;":8751,"CupCap;":8781,"Dagger;":8225,"Dcaron;":270,"DotDot;":8412,"Dstrok;":272,"Eacute;":201,"Ecaron;":282,"Egrave;":200,"Exists;":8707,"ForAll;":8704,"Gammad;":988,"Gbreve;":286,"Gcedil;":290,"HARDcy;":1066,"Hstrok;":294,"Iacute;":205,"Igrave;":204,"Itilde;":296,"Jsercy;":1032,"Kcedil;":310,"Lacute;":313,"Lambda;":923,"Lcaron;":317,"Lcedil;":315,"Lmidot;":319,"Lstrok;":321,"Nacute;":323,"Ncaron;":327,"Ncedil;":325,"Ntilde;":209,"Oacute;":211,"Odblac;":336,"Ograve;":210,"Oslash;":216,"Otilde;":213,"Otimes;":10807,"Racute;":340,"Rarrtl;":10518,"Rcaron;":344,"Rcedil;":342,"SHCHcy;":1065,"SOFTcy;":1068,"Sacute;":346,"Scaron;":352,"Scedil;":350,"Square;":9633,"Subset;":8912,"Supset;":8913,"Tcaron;":356,"Tcedil;":354,"Tstrok;":358,"Uacute;":218,"Ubreve;":364,"Udblac;":368,"Ugrave;":217,"Utilde;":360,"Vdashl;":10982,"Verbar;":8214,"Vvdash;":8874,"Yacute;":221,"Zacute;":377,"Zcaron;":381,"aacute;":225,"abreve;":259,"agrave;":224,"andand;":10837,"angmsd;":8737,"angsph;":8738,"apacir;":10863,"approx;":8776,"atilde;":227,"barvee;":8893,"barwed;":8965,"becaus;":8757,"bernou;":8492,"bigcap;":8898,"bigcup;":8899,"bigvee;":8897,"bkarow;":10509,"bottom;":8869,"bowtie;":8904,"boxbox;":10697,"bprime;":8245,"brvbar;":166,"bullet;":8226,"bumpeq;":8783,"cacute;":263,"capand;":10820,"capcap;":10827,"capcup;":10823,"capdot;":10816,"ccaron;":269,"ccedil;":231,"circeq;":8791,"cirmid;":10991,"colone;":8788,"commat;":64,"compfn;":8728,"conint;":8750,"coprod;":8720,"copysr;":8471,"cularr;":8630,"cupcap;":10822,"cupcup;":10826,"cupdot;":8845,"curarr;":8631,"curren;":164,"cylcty;":9005,"dagger;":8224,"daleth;":8504,"dcaron;":271,"dfisht;":10623,"divide;":247,"divonx;":8903,"dlcorn;":8990,"dlcrop;":8973,"dollar;":36,"drcorn;":8991,"drcrop;":8972,"dstrok;":273,"eacute;":233,"easter;":10862,"ecaron;":283,"ecolon;":8789,"egrave;":232,"egsdot;":10904,"elsdot;":10903,"emptyv;":8709,"emsp13;":8196,"emsp14;":8197,"eparsl;":10723,"eqcirc;":8790,"equals;":61,"equest;":8799,"female;":9792,"ffilig;":64259,"ffllig;":64260,"forall;":8704,"frac12;":189,"frac13;":8531,"frac14;":188,"frac15;":8533,"frac16;":8537,"frac18;":8539,"frac23;":8532,"frac25;":8534,"frac34;":190,"frac35;":8535,"frac38;":8540,"frac45;":8536,"frac56;":8538,"frac58;":8541,"frac78;":8542,"gacute;":501,"gammad;":989,"gbreve;":287,"gesdot;":10880,"gesles;":10900,"gtlPar;":10645,"gtrarr;":10616,"gtrdot;":8919,"gtrsim;":8819,"hairsp;":8202,"hamilt;":8459,"hardcy;":1098,"hearts;":9829,"hellip;":8230,"hercon;":8889,"homtht;":8763,"horbar;":8213,"hslash;":8463,"hstrok;":295,"hybull;":8259,"hyphen;":8208,"iacute;":237,"igrave;":236,"iiiint;":10764,"iinfin;":10716,"incare;":8453,"inodot;":305,"intcal;":8890,"iquest;":191,"isinsv;":8947,"itilde;":297,"jsercy;":1112,"kappav;":1008,"kcedil;":311,"kgreen;":312,"lAtail;":10523,"lacute;":314,"lagran;":8466,"lambda;":955,"langle;":10216,"larrfs;":10525,"larrhk;":8617,"larrlp;":8619,"larrpl;":10553,"larrtl;":8610,"latail;":10521,"lbrace;":123,"lbrack;":91,"lcaron;":318,"lcedil;":316,"ldquor;":8222,"lesdot;":10879,"lesges;":10899,"lfisht;":10620,"lfloor;":8970,"lharul;":10602,"llhard;":10603,"lmidot;":320,"lmoust;":9136,"loplus;":10797,"lowast;":8727,"lowbar;":95,"lparlt;":10643,"lrhard;":10605,"lsaquo;":8249,"lsquor;":8218,"lstrok;":322,"lthree;":8907,"ltimes;":8905,"ltlarr;":10614,"ltrPar;":10646,"mapsto;":8614,"marker;":9646,"mcomma;":10793,"midast;":42,"midcir;":10992,"middot;":183,"minusb;":8863,"minusd;":8760,"mnplus;":8723,"models;":8871,"mstpos;":8766,"nVDash;":8879,"nVdash;":8878,"nacute;":324,"nbumpe;":8783,"ncaron;":328,"ncedil;":326,"nearhk;":10532,"nequiv;":8802,"nesear;":10536,"nexist;":8708,"nltrie;":8940,"notinE;":8953,"nparsl;":11005,"nprcue;":8928,"nrarrc;":10547,"nrarrw;":8605,"nrtrie;":8941,"nsccue;":8929,"nsimeq;":8772,"ntilde;":241,"numero;":8470,"nvDash;":8877,"nvHarr;":10500,"nvdash;":8876,"nvlArr;":10498,"nvrArr;":10499,"nwarhk;":10531,"nwnear;":10535,"oacute;":243,"odblac;":337,"odsold;":10684,"ograve;":242,"ominus;":8854,"origof;":8886,"oslash;":248,"otilde;":245,"otimes;":8855,"parsim;":10995,"percnt;":37,"period;":46,"permil;":8240,"phmmat;":8499,"planck;":8463,"plankv;":8463,"plusdo;":8724,"plusdu;":10789,"plusmn;":177,"preceq;":10927,"primes;":8473,"prnsim;":8936,"propto;":8733,"prurel;":8880,"puncsp;":8200,"qprime;":8279,"rAtail;":10524,"racute;":341,"rangle;":10217,"rarrap;":10613,"rarrfs;":10526,"rarrhk;":8618,"rarrlp;":8620,"rarrpl;":10565,"rarrtl;":8611,"ratail;":10522,"rbrace;":125,"rbrack;":93,"rcaron;":345,"rcedil;":343,"rdquor;":8221,"rfisht;":10621,"rfloor;":8971,"rharul;":10604,"rmoust;":9137,"roplus;":10798,"rpargt;":10644,"rsaquo;":8250,"rsquor;":8217,"rthree;":8908,"rtimes;":8906,"sacute;":347,"scaron;":353,"scedil;":351,"scnsim;":8937,"searhk;":10533,"seswar;":10537,"sfrown;":8994,"shchcy;":1097,"sigmaf;":962,"sigmav;":962,"simdot;":10858,"smashp;":10803,"softcy;":1100,"solbar;":9023,"spades;":9824,"sqcaps;":8851,"sqcups;":8852,"sqsube;":8849,"sqsupe;":8850,"square;":9633,"squarf;":9642,"ssetmn;":8726,"ssmile;":8995,"sstarf;":8902,"subdot;":10941,"subset;":8834,"subsim;":10951,"subsub;":10965,"subsup;":10963,"succeq;":10928,"supdot;":10942,"supset;":8835,"supsim;":10952,"supsub;":10964,"supsup;":10966,"swarhk;":10534,"swnwar;":10538,"target;":8982,"tcaron;":357,"tcedil;":355,"telrec;":8981,"there4;":8756,"thetav;":977,"thinsp;":8201,"thksim;":8764,"timesb;":8864,"timesd;":10800,"topbot;":9014,"topcir;":10993,"tprime;":8244,"tridot;":9708,"tstrok;":359,"uacute;":250,"ubreve;":365,"udblac;":369,"ufisht;":10622,"ugrave;":249,"ulcorn;":8988,"ulcrop;":8975,"urcorn;":8989,"urcrop;":8974,"utilde;":361,"vangrt;":10652,"varphi;":981,"varrho;":1009,"veebar;":8891,"vellip;":8942,"verbar;":124,"vsubnE;":10955,"vsubne;":8842,"vsupnE;":10956,"vsupne;":8843,"wedbar;":10847,"wedgeq;":8793,"weierp;":8472,"wreath;":8768,"xoplus;":10753,"xotime;":10754,"xsqcup;":10758,"xuplus;":10756,"xwedge;":8896,"yacute;":253,"zacute;":378,"zcaron;":382,"zeetrf;":8488,"AElig;":198,Aacute:193,"Acirc;":194,Agrave:192,"Alpha;":913,"Amacr;":256,"Aogon;":260,"Aring;":197,Atilde:195,"Breve;":728,Ccedil:199,"Ccirc;":264,"Colon;":8759,"Cross;":10799,"Dashv;":10980,"Delta;":916,Eacute:201,"Ecirc;":202,Egrave:200,"Emacr;":274,"Eogon;":280,"Equal;":10869,"Gamma;":915,"Gcirc;":284,"Hacek;":711,"Hcirc;":292,"IJlig;":306,Iacute:205,"Icirc;":206,Igrave:204,"Imacr;":298,"Iogon;":302,"Iukcy;":1030,"Jcirc;":308,"Jukcy;":1028,"Kappa;":922,Ntilde:209,"OElig;":338,Oacute:211,"Ocirc;":212,Ograve:210,"Omacr;":332,"Omega;":937,Oslash:216,Otilde:213,"Prime;":8243,"RBarr;":10512,"Scirc;":348,"Sigma;":931,"THORN;":222,"TRADE;":8482,"TSHcy;":1035,"Theta;":920,"Tilde;":8764,Uacute:218,"Ubrcy;":1038,"Ucirc;":219,Ugrave:217,"Umacr;":362,"Union;":8899,"Uogon;":370,"UpTee;":8869,"Uring;":366,"VDash;":8875,"Vdash;":8873,"Wcirc;":372,"Wedge;":8896,Yacute:221,"Ycirc;":374,aacute:225,"acirc;":226,"acute;":180,"aelig;":230,agrave:224,"aleph;":8501,"alpha;":945,"amacr;":257,"amalg;":10815,"angle;":8736,"angrt;":8735,"angst;":197,"aogon;":261,"aring;":229,"asymp;":8776,atilde:227,"awint;":10769,"bcong;":8780,"bdquo;":8222,"bepsi;":1014,"blank;":9251,"blk12;":9618,"blk14;":9617,"blk34;":9619,"block;":9608,"boxDL;":9559,"boxDR;":9556,"boxDl;":9558,"boxDr;":9555,"boxHD;":9574,"boxHU;":9577,"boxHd;":9572,"boxHu;":9575,"boxUL;":9565,"boxUR;":9562,"boxUl;":9564,"boxUr;":9561,"boxVH;":9580,"boxVL;":9571,"boxVR;":9568,"boxVh;":9579,"boxVl;":9570,"boxVr;":9567,"boxdL;":9557,"boxdR;":9554,"boxdl;":9488,"boxdr;":9484,"boxhD;":9573,"boxhU;":9576,"boxhd;":9516,"boxhu;":9524,"boxuL;":9563,"boxuR;":9560,"boxul;":9496,"boxur;":9492,"boxvH;":9578,"boxvL;":9569,"boxvR;":9566,"boxvh;":9532,"boxvl;":9508,"boxvr;":9500,"breve;":728,brvbar:166,"bsemi;":8271,"bsime;":8909,"bsolb;":10693,"bumpE;":10926,"bumpe;":8783,"caret;":8257,"caron;":711,"ccaps;":10829,ccedil:231,"ccirc;":265,"ccups;":10828,"cedil;":184,"check;":10003,"clubs;":9827,"colon;":58,"comma;":44,"crarr;":8629,"cross;":10007,"csube;":10961,"csupe;":10962,"ctdot;":8943,"cuepr;":8926,"cuesc;":8927,"cupor;":10821,curren:164,"cuvee;":8910,"cuwed;":8911,"cwint;":8753,"dashv;":8867,"dblac;":733,"ddarr;":8650,"delta;":948,"dharl;":8643,"dharr;":8642,"diams;":9830,"disin;":8946,divide:247,"doteq;":8784,"dtdot;":8945,"dtrif;":9662,"duarr;":8693,"duhar;":10607,"eDDot;":10871,eacute:233,"ecirc;":234,"efDot;":8786,egrave:232,"emacr;":275,"empty;":8709,"eogon;":281,"eplus;":10865,"epsiv;":1013,"eqsim;":8770,"equiv;":8801,"erDot;":8787,"erarr;":10609,"esdot;":8784,"exist;":8707,"fflig;":64256,"filig;":64257,"fjlig;":102,"fllig;":64258,"fltns;":9649,"forkv;":10969,frac12:189,frac14:188,frac34:190,"frasl;":8260,"frown;":8994,"gamma;":947,"gcirc;":285,"gescc;":10921,"gimel;":8503,"gneqq;":8809,"gnsim;":8935,"grave;":96,"gsime;":10894,"gsiml;":10896,"gtcir;":10874,"gtdot;":8919,"harrw;":8621,"hcirc;":293,"hoarr;":8703,iacute:237,"icirc;":238,"iexcl;":161,igrave:236,"iiint;":8749,"iiota;":8489,"ijlig;":307,"imacr;":299,"image;":8465,"imath;":305,"imped;":437,"infin;":8734,"iogon;":303,"iprod;":10812,iquest:191,"isinE;":8953,"isins;":8948,"isinv;":8712,"iukcy;":1110,"jcirc;":309,"jmath;":567,"jukcy;":1108,"kappa;":954,"lAarr;":8666,"lBarr;":10510,"langd;":10641,"laquo;":171,"larrb;":8676,"lates;":10925,"lbarr;":10508,"lbbrk;":10098,"lbrke;":10635,"lceil;":8968,"ldquo;":8220,"lescc;":10920,"lhard;":8637,"lharu;":8636,"lhblk;":9604,"llarr;":8647,"lltri;":9722,"lneqq;":8808,"lnsim;":8934,"loang;":10220,"loarr;":8701,"lobrk;":10214,"lopar;":10629,"lrarr;":8646,"lrhar;":8651,"lrtri;":8895,"lsime;":10893,"lsimg;":10895,"lsquo;":8216,"ltcir;":10873,"ltdot;":8918,"ltrie;":8884,"ltrif;":9666,"mDDot;":8762,"mdash;":8212,"micro;":181,middot:183,"minus;":8722,"mumap;":8888,"nabla;":8711,"napid;":8779,"napos;":329,"natur;":9838,"nbump;":8782,"ncong;":8775,"ndash;":8211,"neArr;":8663,"nearr;":8599,"nedot;":8784,"nesim;":8770,"ngeqq;":8807,"ngsim;":8821,"nhArr;":8654,"nharr;":8622,"nhpar;":10994,"nlArr;":8653,"nlarr;":8602,"nleqq;":8806,"nless;":8814,"nlsim;":8820,"nltri;":8938,"notin;":8713,"notni;":8716,"npart;":8706,"nprec;":8832,"nrArr;":8655,"nrarr;":8603,"nrtri;":8939,"nsime;":8772,"nsmid;":8740,"nspar;":8742,"nsubE;":10949,"nsube;":8840,"nsucc;":8833,"nsupE;":10950,"nsupe;":8841,ntilde:241,"numsp;":8199,"nvsim;":8764,"nwArr;":8662,"nwarr;":8598,oacute:243,"ocirc;":244,"odash;":8861,"oelig;":339,"ofcir;":10687,ograve:242,"ohbar;":10677,"olarr;":8634,"olcir;":10686,"oline;":8254,"omacr;":333,"omega;":969,"operp;":10681,"oplus;":8853,"orarr;":8635,"order;":8500,oslash:248,otilde:245,"ovbar;":9021,"parsl;":11005,"phone;":9742,"plusb;":8862,"pluse;":10866,plusmn:177,"pound;":163,"prcue;":8828,"prime;":8242,"prnap;":10937,"prsim;":8830,"quest;":63,"rAarr;":8667,"rBarr;":10511,"radic;":8730,"rangd;":10642,"range;":10661,"raquo;":187,"rarrb;":8677,"rarrc;":10547,"rarrw;":8605,"ratio;":8758,"rbarr;":10509,"rbbrk;":10099,"rbrke;":10636,"rceil;":8969,"rdquo;":8221,"reals;":8477,"rhard;":8641,"rharu;":8640,"rlarr;":8644,"rlhar;":8652,"rnmid;":10990,"roang;":10221,"roarr;":8702,"robrk;":10215,"ropar;":10630,"rrarr;":8649,"rsquo;":8217,"rtrie;":8885,"rtrif;":9656,"sbquo;":8218,"sccue;":8829,"scirc;":349,"scnap;":10938,"scsim;":8831,"sdotb;":8865,"sdote;":10854,"seArr;":8664,"searr;":8600,"setmn;":8726,"sharp;":9839,"sigma;":963,"simeq;":8771,"simgE;":10912,"simlE;":10911,"simne;":8774,"slarr;":8592,"smile;":8995,"smtes;":10924,"sqcap;":8851,"sqcup;":8852,"sqsub;":8847,"sqsup;":8848,"srarr;":8594,"starf;":9733,"strns;":175,"subnE;":10955,"subne;":8842,"supnE;":10956,"supne;":8843,"swArr;":8665,"swarr;":8601,"szlig;":223,"theta;":952,"thkap;":8776,"thorn;":254,"tilde;":732,"times;":215,"trade;":8482,"trisb;":10701,"tshcy;":1115,"twixt;":8812,uacute:250,"ubrcy;":1118,"ucirc;":251,"udarr;":8645,"udhar;":10606,ugrave:249,"uharl;":8639,"uharr;":8638,"uhblk;":9600,"ultri;":9720,"umacr;":363,"uogon;":371,"uplus;":8846,"upsih;":978,"uring;":367,"urtri;":9721,"utdot;":8944,"utrif;":9652,"uuarr;":8648,"vBarv;":10985,"vDash;":8872,"varpi;":982,"vdash;":8866,"veeeq;":8794,"vltri;":8882,"vnsub;":8834,"vnsup;":8835,"vprop;":8733,"vrtri;":8883,"wcirc;":373,"wedge;":8743,"xcirc;":9711,"xdtri;":9661,"xhArr;":10234,"xharr;":10231,"xlArr;":10232,"xlarr;":10229,"xodot;":10752,"xrArr;":10233,"xrarr;":10230,"xutri;":9651,yacute:253,"ycirc;":375,AElig:198,Acirc:194,"Aopf;":120120,Aring:197,"Ascr;":119964,"Auml;":196,"Barv;":10983,"Beta;":914,"Bopf;":120121,"Bscr;":8492,"CHcy;":1063,"COPY;":169,"Cdot;":266,"Copf;":8450,"Cscr;":119966,"DJcy;":1026,"DScy;":1029,"DZcy;":1039,"Darr;":8609,"Dopf;":120123,"Dscr;":119967,Ecirc:202,"Edot;":278,"Eopf;":120124,"Escr;":8496,"Esim;":10867,"Euml;":203,"Fopf;":120125,"Fscr;":8497,"GJcy;":1027,"Gdot;":288,"Gopf;":120126,"Gscr;":119970,"Hopf;":8461,"Hscr;":8459,"IEcy;":1045,"IOcy;":1025,Icirc:206,"Idot;":304,"Iopf;":120128,"Iota;":921,"Iscr;":8464,"Iuml;":207,"Jopf;":120129,"Jscr;":119973,"KHcy;":1061,"KJcy;":1036,"Kopf;":120130,"Kscr;":119974,"LJcy;":1033,"Lang;":10218,"Larr;":8606,"Lopf;":120131,"Lscr;":8466,"Mopf;":120132,"Mscr;":8499,"NJcy;":1034,"Nopf;":8469,"Nscr;":119977,Ocirc:212,"Oopf;":120134,"Oscr;":119978,"Ouml;":214,"Popf;":8473,"Pscr;":119979,"QUOT;":34,"Qopf;":8474,"Qscr;":119980,"Rang;":10219,"Rarr;":8608,"Ropf;":8477,"Rscr;":8475,"SHcy;":1064,"Sopf;":120138,"Sqrt;":8730,"Sscr;":119982,"Star;":8902,THORN:222,"TScy;":1062,"Topf;":120139,"Tscr;":119983,"Uarr;":8607,Ucirc:219,"Uopf;":120140,"Upsi;":978,"Uscr;":119984,"Uuml;":220,"Vbar;":10987,"Vert;":8214,"Vopf;":120141,"Vscr;":119985,"Wopf;":120142,"Wscr;":119986,"Xopf;":120143,"Xscr;":119987,"YAcy;":1071,"YIcy;":1031,"YUcy;":1070,"Yopf;":120144,"Yscr;":119988,"Yuml;":376,"ZHcy;":1046,"Zdot;":379,"Zeta;":918,"Zopf;":8484,"Zscr;":119989,acirc:226,acute:180,aelig:230,"andd;":10844,"andv;":10842,"ange;":10660,"aopf;":120146,"apid;":8779,"apos;":39,aring:229,"ascr;":119990,"auml;":228,"bNot;":10989,"bbrk;":9141,"beta;":946,"beth;":8502,"bnot;":8976,"bopf;":120147,"boxH;":9552,"boxV;":9553,"boxh;":9472,"boxv;":9474,"bscr;":119991,"bsim;":8765,"bsol;":92,"bull;":8226,"bump;":8782,"caps;":8745,"cdot;":267,cedil:184,"cent;":162,"chcy;":1095,"cirE;":10691,"circ;":710,"cire;":8791,"comp;":8705,"cong;":8773,"copf;":120148,"copy;":169,"cscr;":119992,"csub;":10959,"csup;":10960,"cups;":8746,"dArr;":8659,"dHar;":10597,"darr;":8595,"dash;":8208,"diam;":8900,"djcy;":1106,"dopf;":120149,"dscr;":119993,"dscy;":1109,"dsol;":10742,"dtri;":9663,"dzcy;":1119,"eDot;":8785,"ecir;":8790,ecirc:234,"edot;":279,"emsp;":8195,"ensp;":8194,"eopf;":120150,"epar;":8917,"epsi;":949,"escr;":8495,"esim;":8770,"euml;":235,"euro;":8364,"excl;":33,"flat;":9837,"fnof;":402,"fopf;":120151,"fork;":8916,"fscr;":119995,"gdot;":289,"geqq;":8807,"gesl;":8923,"gjcy;":1107,"gnap;":10890,"gneq;":10888,"gopf;":120152,"gscr;":8458,"gsim;":8819,"gtcc;":10919,"gvnE;":8809,"hArr;":8660,"half;":189,"harr;":8596,"hbar;":8463,"hopf;":120153,"hscr;":119997,icirc:238,"iecy;":1077,iexcl:161,"imof;":8887,"iocy;":1105,"iopf;":120154,"iota;":953,"iscr;":119998,"isin;":8712,"iuml;":239,"jopf;":120155,"jscr;":119999,"khcy;":1093,"kjcy;":1116,"kopf;":120156,"kscr;":120000,"lArr;":8656,"lHar;":10594,"lang;":10216,laquo:171,"larr;":8592,"late;":10925,"lcub;":123,"ldca;":10550,"ldsh;":8626,"leqq;":8806,"lesg;":8922,"ljcy;":1113,"lnap;":10889,"lneq;":10887,"lopf;":120157,"lozf;":10731,"lpar;":40,"lscr;":120001,"lsim;":8818,"lsqb;":91,"ltcc;":10918,"ltri;":9667,"lvnE;":8808,"macr;":175,"male;":9794,"malt;":10016,micro:181,"mlcp;":10971,"mldr;":8230,"mopf;":120158,"mscr;":120002,"nGtv;":8811,"nLtv;":8810,"nang;":8736,"napE;":10864,"nbsp;":160,"ncap;":10819,"ncup;":10818,"ngeq;":8817,"nges;":10878,"ngtr;":8815,"nisd;":8954,"njcy;":1114,"nldr;":8229,"nleq;":8816,"nles;":10877,"nmid;":8740,"nopf;":120159,"npar;":8742,"npre;":10927,"nsce;":10928,"nscr;":120003,"nsim;":8769,"nsub;":8836,"nsup;":8837,"ntgl;":8825,"ntlg;":8824,"nvap;":8781,"nvge;":8805,"nvgt;":62,"nvle;":8804,"nvlt;":60,"oast;":8859,"ocir;":8858,ocirc:244,"odiv;":10808,"odot;":8857,"ogon;":731,"oint;":8750,"omid;":10678,"oopf;":120160,"opar;":10679,"ordf;":170,"ordm;":186,"oror;":10838,"oscr;":8500,"osol;":8856,"ouml;":246,"para;":182,"part;":8706,"perp;":8869,"phiv;":981,"plus;":43,"popf;":120161,pound:163,"prap;":10935,"prec;":8826,"prnE;":10933,"prod;":8719,"prop;":8733,"pscr;":120005,"qint;":10764,"qopf;":120162,"qscr;":120006,"quot;":34,"rArr;":8658,"rHar;":10596,"race;":8765,"rang;":10217,raquo:187,"rarr;":8594,"rcub;":125,"rdca;":10551,"rdsh;":8627,"real;":8476,"rect;":9645,"rhov;":1009,"ring;":730,"ropf;":120163,"rpar;":41,"rscr;":120007,"rsqb;":93,"rtri;":9657,"scap;":10936,"scnE;":10934,"sdot;":8901,"sect;":167,"semi;":59,"sext;":10038,"shcy;":1096,"sime;":8771,"simg;":10910,"siml;":10909,"smid;":8739,"smte;":10924,"solb;":10692,"sopf;":120164,"spar;":8741,"squf;":9642,"sscr;":120008,"star;":9734,"subE;":10949,"sube;":8838,"succ;":8827,"sung;":9834,"sup1;":185,"sup2;":178,"sup3;":179,"supE;":10950,"supe;":8839,szlig:223,"tbrk;":9140,"tdot;":8411,thorn:254,times:215,"tint;":8749,"toea;":10536,"topf;":120165,"tosa;":10537,"trie;":8796,"tscr;":120009,"tscy;":1094,"uArr;":8657,"uHar;":10595,"uarr;":8593,ucirc:251,"uopf;":120166,"upsi;":965,"uscr;":120010,"utri;":9653,"uuml;":252,"vArr;":8661,"vBar;":10984,"varr;":8597,"vert;":124,"vopf;":120167,"vscr;":120011,"wopf;":120168,"wscr;":120012,"xcap;":8898,"xcup;":8899,"xmap;":10236,"xnis;":8955,"xopf;":120169,"xscr;":120013,"xvee;":8897,"yacy;":1103,"yicy;":1111,"yopf;":120170,"yscr;":120014,"yucy;":1102,"yuml;":255,"zdot;":380,"zeta;":950,"zhcy;":1078,"zopf;":120171,"zscr;":120015,"zwnj;":8204,"AMP;":38,"Acy;":1040,"Afr;":120068,"And;":10835,Auml:196,"Bcy;":1041,"Bfr;":120069,COPY:169,"Cap;":8914,"Cfr;":8493,"Chi;":935,"Cup;":8915,"Dcy;":1044,"Del;":8711,"Dfr;":120071,"Dot;":168,"ENG;":330,"ETH;":208,"Ecy;":1069,"Efr;":120072,"Eta;":919,Euml:203,"Fcy;":1060,"Ffr;":120073,"Gcy;":1043,"Gfr;":120074,"Hat;":94,"Hfr;":8460,"Icy;":1048,"Ifr;":8465,"Int;":8748,Iuml:207,"Jcy;":1049,"Jfr;":120077,"Kcy;":1050,"Kfr;":120078,"Lcy;":1051,"Lfr;":120079,"Lsh;":8624,"Map;":10501,"Mcy;":1052,"Mfr;":120080,"Ncy;":1053,"Nfr;":120081,"Not;":10988,"Ocy;":1054,"Ofr;":120082,Ouml:214,"Pcy;":1055,"Pfr;":120083,"Phi;":934,"Psi;":936,QUOT:34,"Qfr;":120084,"REG;":174,"Rcy;":1056,"Rfr;":8476,"Rho;":929,"Rsh;":8625,"Scy;":1057,"Sfr;":120086,"Sub;":8912,"Sum;":8721,"Sup;":8913,"Tab;":9,"Tau;":932,"Tcy;":1058,"Tfr;":120087,"Ucy;":1059,"Ufr;":120088,Uuml:220,"Vcy;":1042,"Vee;":8897,"Vfr;":120089,"Wfr;":120090,"Xfr;":120091,"Ycy;":1067,"Yfr;":120092,"Zcy;":1047,"Zfr;":8488,"acE;":8766,"acd;":8767,"acy;":1072,"afr;":120094,"amp;":38,"and;":8743,"ang;":8736,"apE;":10864,"ape;":8778,"ast;":42,auml:228,"bcy;":1073,"bfr;":120095,"bne;":61,"bot;":8869,"cap;":8745,cent:162,"cfr;":120096,"chi;":967,"cir;":9675,copy:169,"cup;":8746,"dcy;":1076,"deg;":176,"dfr;":120097,"die;":168,"div;":247,"dot;":729,"ecy;":1101,"efr;":120098,"egs;":10902,"ell;":8467,"els;":10901,"eng;":331,"eta;":951,"eth;":240,euml:235,"fcy;":1092,"ffr;":120099,"gEl;":10892,"gap;":10886,"gcy;":1075,"gel;":8923,"geq;":8805,"ges;":10878,"gfr;":120100,"ggg;":8921,"glE;":10898,"gla;":10917,"glj;":10916,"gnE;":8809,"gne;":10888,"hfr;":120101,"icy;":1080,"iff;":8660,"ifr;":120102,"int;":8747,iuml:239,"jcy;":1081,"jfr;":120103,"kcy;":1082,"kfr;":120104,"lEg;":10891,"lap;":10885,"lat;":10923,"lcy;":1083,"leg;":8922,"leq;":8804,"les;":10877,"lfr;":120105,"lgE;":10897,"lnE;":8808,"lne;":10887,"loz;":9674,"lrm;":8206,"lsh;":8624,macr:175,"map;":8614,"mcy;":1084,"mfr;":120106,"mho;":8487,"mid;":8739,"nGg;":8921,"nGt;":8811,"nLl;":8920,"nLt;":8810,"nap;":8777,nbsp:160,"ncy;":1085,"nfr;":120107,"ngE;":8807,"nge;":8817,"ngt;":8815,"nis;":8956,"niv;":8715,"nlE;":8806,"nle;":8816,"nlt;":8814,"not;":172,"npr;":8832,"nsc;":8833,"num;":35,"ocy;":1086,"ofr;":120108,"ogt;":10689,"ohm;":937,"olt;":10688,"ord;":10845,ordf:170,ordm:186,"orv;":10843,ouml:246,"par;":8741,para:182,"pcy;":1087,"pfr;":120109,"phi;":966,"piv;":982,"prE;":10931,"pre;":10927,"psi;":968,"qfr;":120110,quot:34,"rcy;":1088,"reg;":174,"rfr;":120111,"rho;":961,"rlm;":8207,"rsh;":8625,"scE;":10932,"sce;":10928,"scy;":1089,sect:167,"sfr;":120112,"shy;":173,"sim;":8764,"smt;":10922,"sol;":47,"squ;":9633,"sub;":8834,"sum;":8721,sup1:185,sup2:178,sup3:179,"sup;":8835,"tau;":964,"tcy;":1090,"tfr;":120113,"top;":8868,"ucy;":1091,"ufr;":120114,"uml;":168,uuml:252,"vcy;":1074,"vee;":8744,"vfr;":120115,"wfr;":120116,"xfr;":120117,"ycy;":1099,"yen;":165,"yfr;":120118,yuml:255,"zcy;":1079,"zfr;":120119,"zwj;":8205,AMP:38,"DD;":8517,ETH:208,"GT;":62,"Gg;":8921,"Gt;":8811,"Im;":8465,"LT;":60,"Ll;":8920,"Lt;":8810,"Mu;":924,"Nu;":925,"Or;":10836,"Pi;":928,"Pr;":10939,REG:174,"Re;":8476,"Sc;":10940,"Xi;":926,"ac;":8766,"af;":8289,amp:38,"ap;":8776,"dd;":8518,deg:176,"ee;":8519,"eg;":10906,"el;":10905,eth:240,"gE;":8807,"ge;":8805,"gg;":8811,"gl;":8823,"gt;":62,"ic;":8291,"ii;":8520,"in;":8712,"it;":8290,"lE;":8806,"le;":8804,"lg;":8822,"ll;":8810,"lt;":60,"mp;":8723,"mu;":956,"ne;":8800,"ni;":8715,not:172,"nu;":957,"oS;":9416,"or;":8744,"pi;":960,"pm;":177,"pr;":8826,reg:174,"rx;":8478,"sc;":8827,shy:173,uml:168,"wp;":8472,"wr;":8768,"xi;":958,yen:165,GT:62,LT:60,gt:62,lt:60};var Td=[8364,129,8218,402,8222,8230,8224,8225,710,8240,352,8249,338,141,381,143,144,8216,8217,8220,8221,8226,8211,8212,732,8482,353,8250,339,157,382,376];function fd(q,Z){if(Z&&!q.endsWith(";"))return`${q}\\b(?!=)`;return q}function TB(q){let Q=Object.keys(OJ).map((J)=>fd(J,q));return new RegExp(`&(#(?:x[a-fA-F\\d]+|\\d+)(?:;)?|${Q.join("|")})`,"g")}var Kd=TB(!1),vd=TB(!0);function N2(q,Z){let Q=Z?vd:Kd;return q.replace(Q,(Y,J)=>{let H;if(J[0]!=="#")H=OJ[J];else if(J[1]==="x")H=parseInt(J.substring(2),16);else H=parseInt(J.substring(1),10);if(!H)return Y;return String.fromCodePoint(Nd(H))})}var FB=0;function Nd(q){if(q===10)return 32;if(q<128)return q;if(q<=159)return Td[q-128];if(q<55296)return q;if(q<=57343)return FB;if(q<=65535)return q;if(q>=65536&&q<=131071)return q;if(q>=131072&&q<=196607)return q;if(q>=917504&&q<=917631||q>=917760&&q<=917999)return q;return FB}function d0(q=!1){return{type:"Fragment",nodes:[],metadata:{transparent:q,dynamic:!1}}}var kd=["SvelteElement","RegularElement","SvelteFragment","Component","SvelteComponent","SvelteSelf","SlotElement"];function M5(q){return kd.includes(q.type)}function wJ(q){return["Component","SvelteComponent","SvelteSelf"].includes(q.type)}function K1(q){return q.type==="RegularElement"&&(q.name.includes("-")||q.attributes.some((Z)=>Z.type==="Attribute"&&Z.name==="is"))}function A1(q,Z,Q,Y,J){return{type:"Attribute",start:Q,end:Y,name:q,name_loc:Z,value:J,metadata:{delegated:!1,needs_clsx:!1}}}class n8{has_state=!1;has_call=!1;has_await=!1;has_member_expression=!1;has_assignment=!1;dependencies=new Set;references=new Set;#q=null;#Z(){if(!this.#q){this.#q=new Set;for(let q of this.references)if(q.blocker)this.#q.add(q.blocker)}return this.#q}blockers(){return G8([...this.#Z()])}has_blockers(){return this.#Z().size>0}has_more_blockers_than(q){for(let Z of this.#Z())if(!q.#Z().has(Z))return!0;return!1}is_async(){return this.has_await||this.#Z().size>0}merge(q){this.has_state||=q.has_state,this.has_call||=q.has_call,this.has_await||=q.has_await,this.has_member_expression||=q.has_member_expression,this.has_assignment||=q.has_assignment,this.#q=null;for(let Z of q.references)this.references.add(Z);for(let Z of q.dependencies)this.dependencies.add(Z)}}function H1(q){if(q.type==="Literal")return String(q.value);if(q.type==="PrivateIdentifier")return"#"+q.name;if(q.type==="Identifier")return q.name;return null}function k6(q){if(q.name==="select"||q.name==="optgroup"||q.name==="option")for(let Z of k9(q.fragment))if(Z.type==="RegularElement"){if(q.name==="select"&&Z.name!=="option"&&Z.name!=="optgroup")return!0;if(q.name==="optgroup"&&Z.name!=="option")return!0;if(q.name==="option")return!0}else if(Z.type==="Text"){if(q.name==="select"||q.name==="optgroup")return!0}else return!0;return!1}function*k9(q){if(q===null)return;for(let Z of q.nodes)switch(Z.type){case"SnippetBlock":case"DebugTag":case"ConstTag":case"DeclarationTag":case"Comment":case"ExpressionTag":break;case"Text":if(Z.data.trim()!=="")yield Z;break;case"IfBlock":yield*k9(Z.consequent),yield*k9(Z.alternate);break;case"EachBlock":yield*k9(Z.body),yield*k9(Z.fallback??null);break;case"KeyBlock":yield*k9(Z.fragment);break;case"AwaitBlock":yield*k9(Z.pending),yield*k9(Z.then),yield*k9(Z.catch);break;case"SvelteBoundary":yield*k9(Z.fragment);break;default:yield Z}}var fB={li:{direct:["li"]},dt:{descendant:["dt","dd"],reset_by:["dl"]},dd:{descendant:["dt","dd"],reset_by:["dl"]},p:{descendant:["address","article","aside","blockquote","div","dl","fieldset","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","main","menu","nav","ol","p","pre","section","table","ul"]},rt:{descendant:["rt","rp"]},rp:{descendant:["rt","rp"]},optgroup:{descendant:["optgroup"]},option:{descendant:["option","optgroup"]},thead:{direct:["tbody","tfoot"]},tbody:{direct:["tbody","tfoot"]},tfoot:{direct:["tbody"]},tr:{direct:["tr","tbody"]},td:{direct:["td","th","tr"]},th:{direct:["td","th","tr"]}};function KB(q,Z){let Q=fB[q];if(Q){if(!Z||("direct"in Q?Q.direct:Q.descendant).includes(Z))return!0}return!1}var vB={...fB,form:{descendant:["form"]},a:{descendant:["a"]},button:{descendant:["button"]},h1:{descendant:["h1","h2","h3","h4","h5","h6"]},h2:{descendant:["h1","h2","h3","h4","h5","h6"]},h3:{descendant:["h1","h2","h3","h4","h5","h6"]},h4:{descendant:["h1","h2","h3","h4","h5","h6"]},h5:{descendant:["h1","h2","h3","h4","h5","h6"]},h6:{descendant:["h1","h2","h3","h4","h5","h6"]},tr:{only:["th","td","style","script","template"]},tbody:{only:["tr","style","script","template"]},thead:{only:["tr","style","script","template"]},tfoot:{only:["tr","style","script","template"]},colgroup:{only:["col","template"]},table:{only:["caption","colgroup","tbody","thead","tfoot","style","script","template"]},head:{only:["base","basefont","bgsound","link","meta","title","noscript","noframes","style","script","template"]},html:{only:["head","body","frameset"]},frameset:{only:["frame"]},"#document":{only:["html"]}};function NB(q,Z,Q,Y){if(q.includes("-"))return null;let J=Z[Z.length-1],H=vB[J];if(!H)return null;if("reset_by"in H&&H.reset_by)for(let X=Z.length-2;X>=0;X--){if(Z[X].includes("-"))return null;if(H.reset_by.includes(Z[X]))return null}if("descendant"in H&&H.descendant.includes(q)){let X=Q?`\`<${q}>\` (${Q})`:`\`<${q}>\``,G=Y?`\`<${J}>\` (${Y})`:`\`<${J}>\``;return`${X} cannot be a descendant of ${G}`}return null}function P5(q,Z,Q,Y){if(q.includes("-")||Z?.includes("-"))return null;if(Z==="template")return null;let J=vB[Z],H=Q?`\`<${q}>\` (${Q})`:`\`<${q}>\``,X=Y?`\`<${Z}>\` (${Y})`:`\`<${Z}>\``;if(J){if("direct"in J&&J.direct.includes(q))return`${H} cannot be a direct child of ${X}`;if("descendant"in J&&J.descendant.includes(q))return`${H} cannot be a child of ${X}`;if("only"in J&&J.only)if(J.only.includes(q))return null;else return`${H} cannot be a child of ${X}. \`<${Z}>\` only allows these children: ${J.only.map((G)=>`\`<${G}>\``).join(", ")}`}switch(q){case"body":case"caption":case"col":case"colgroup":case"frameset":case"frame":case"head":case"html":return`${H} cannot be a child of ${X}`;case"thead":case"tbody":case"tfoot":return`${H} must be the child of a \`<table>\`, not a ${X}`;case"td":case"th":return`${H} must be the child of a \`<tr>\`, not a ${X}`;case"tr":return`\`<tr>\` must be the child of a \`<thead>\`, \`<tbody>\`, or \`<tfoot>\`, not a ${X}`}return null}function w7(q,Z="or"){if(q.length===1)return q[0];if(q.length===2)return`${q[0]} ${Z} ${q[1]}`;return`${q.slice(0,-1).join(", ")} ${Z} ${q[q.length-1]}`}var Sd=/(\/>|[\s"'=<>`])/y,AJ=/<\/textarea(\s[^>]*)?>/iy,ud=/-->/,kB=/(\s|\/|>)/,SB=/[\s=/>"']/,uB=/["']/y,bd=/(?:"([^"]*)"|'([^'])*'|([^>\s]+))/y,hd=/^![a-zA-Z]+$/,yd=/^[a-zA-Z][a-zA-Z0-9]*:[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$/;function _d(q){if(hd.test(q))return!0;if(yd.test(q))return!0;return zW.test(q)}var jJ=/^(?:\p{Lu}[$\u200c\u200d\p{ID_Continue}.]*|\p{ID_Start}[$\u200c\u200d\p{ID_Continue}]*(?:\.[$\u200c\u200d\p{ID_Continue}]+)+)$/u,bB=new Map([["svelte:head","SvelteHead"],["svelte:options","SvelteOptions"],["svelte:window","SvelteWindow"],["svelte:document","SvelteDocument"],["svelte:body","SvelteBody"]]),M3=new Map([...bB,["svelte:element","SvelteElement"],["svelte:component","SvelteComponent"],["svelte:self","SvelteSelf"],["svelte:fragment","SvelteFragment"],["svelte:boundary","SvelteBoundary"]]);function IJ(q){let Z=q.index++,Q=q.current();if(q.eat("!--")){let $=q.read_until(ud);q.eat("-->",!0),q.append({type:"Comment",start:Z,end:q.index,data:$});return}if(q.eat("/")){let $=q.read_until(kB);if(q.allow_whitespace(),q.eat(">",!0),J9($))UB(Z);while(Q.name!==$){if(q.loose){if(M5(Q)){let O=Q.attributes.at(-1);if(O?.type==="Attribute"&&O.name===`<${$}`){q.index=O.start,Q.attributes.pop();break}}}if(Q.type==="RegularElement"){if(!q.last_auto_closed_tag||q.last_auto_closed_tag.tag!==$){let O=Q.fragment.nodes[0]?.start??Z;IY({start:Q.start,end:O},`</${$}>`,`</${Q.name}>`)}}else if(!q.loose)if(q.last_auto_closed_tag&&q.last_auto_closed_tag.tag===$)Uz(Z,$,q.last_auto_closed_tag.reason);else $z(Z,$);Q.end=Z,q.pop(),Q=q.current()}if(Q.end=q.index,q.pop(),q.last_auto_closed_tag&&q.stack.length<q.last_auto_closed_tag.depth)q.last_auto_closed_tag=void 0;return}let Y=DJ(q,kB);if(Y.name.startsWith("svelte:")&&!M3.has(Y.name)){let $={start:Z+1,end:Z+1+Y.name.length};az($,w7(Array.from(M3.keys())))}if(!_d(Y.name)&&!jJ.test(Y.name)){if(!q.loose||!Y.name.endsWith(".")){let $={start:Z+1,end:Z+1+Y.name.length};QB($)}}if(bB.has(Y.name)){if(Y.name in q.meta_tags)iz(Z,Y.name);if(Q.type!=="Root")sz(Z,Y.name);q.meta_tags[Y.name]=!0}let J=M3.has(Y.name)?M3.get(Y.name):jJ.test(Y.name)||q.loose&&Y.name.endsWith(".")?"Component":Y.name==="title"&&gd(q.stack)?"TitleElement":Y.name==="slot"&&!ld(q.stack)?"SlotElement":"RegularElement",H=J==="RegularElement"?{type:J,start:Z,end:-1,name:Y.name,name_loc:Y.loc,attributes:[],fragment:d0(!0),metadata:{svg:!1,mathml:!1,scoped:!1,has_spread:!1,path:[],synthetic_value_node:null}}:{type:J,start:Z,end:-1,name:Y.name,name_loc:Y.loc,attributes:[],fragment:d0(!0),metadata:{}};if(q.allow_whitespace(),Q.type==="RegularElement"&&KB(Q.name,Y.name)){let $=Q.fragment.nodes[0]?.start??Z;IY({start:Q.start,end:$},`<${Y.name}>`,`</${Q.name}>`),Q.end=Z,q.pop(),q.last_auto_closed_tag={tag:Q.name,reason:Y.name,depth:q.stack.length}}let X=[],G=q.current(),W=(Y.name==="script"||Y.name==="style")&&G.type==="Root",R=W?xd:md,B;while(B=R(q)){if(B.type==="Attribute"||B.type==="BindDirective"||B.type==="StyleDirective"||B.type==="ClassDirective"){let $=B.type==="BindDirective"?"Attribute":B.type;if(X.includes($+B.name))gR(B);else if(B.name!=="this")X.push($+B.name)}H.attributes.push(B),q.allow_whitespace()}if(H.type==="Component")H.metadata.expression=new n8;if(H.type==="SvelteComponent"){let $=H.attributes.findIndex((w)=>w.type==="Attribute"&&w.name==="this");if($===-1)mz(Z);let O=H.attributes.splice($,1)[0];if(!t9(O))xz(O.start);H.expression=U9(O),H.metadata.expression=new n8}if(H.type==="SvelteElement"){let $=H.attributes.findIndex((w)=>w.type==="Attribute"&&w.name==="this");if($===-1)HJ(Z);let O=H.attributes.splice($,1)[0];if(O.value===!0)HJ(O);if(!t9(O)){h$(O);let w=O.value[0];H.tag=w.type==="Text"?{type:"Literal",value:w.data,raw:`'${w.raw}'`,start:w.start,end:w.end}:w.expression}else H.tag=U9(O);H.metadata.expression=new n8}if(W){q.eat(">",!0);let $=null;for(let O=G.fragment.nodes.length-1;O>=0;O--){let w=G.fragment.nodes[O];if(O===G.fragment.nodes.length-1&&w.end!==Z)break;if(w.type==="Comment"){$=w;break}else if(w.type!=="Text"||w.data.trim())break}if(Y.name==="script"){let O=wB(q,Z,H.attributes);if($)O.content.leadingComments=[{type:"Line",value:$.data}];if(O.context==="module"){if(G.module)ZJ(Z);G.module=O}else{if(G.instance)ZJ(Z);G.instance=O}}else{let O=PJ(q,Z,H.attributes);if(O.content.comment=$,G.css)yz(Z);G.css=O}return}q.append(H);let M=q.eat("/")||J9(Y.name),V=q.eat(">",!0,!1);if(!V){let $=H.attributes.at(-1);if($?.type==="Attribute"&&$.name==="<")q.index=$.start,H.attributes.pop();else{let O=q.template[q.index-1],w=q.template[q.index-2],I=q.template[q.index];if(w==="{"&&O==="/")q.index-=2;else if(O==="{"&&(I==="#"||I==="@"||I===":"))q.index-=1;else q.allow_whitespace()}}if(M||!V)H.end=q.index;else if(Y.name==="textarea")H.fragment.nodes=hB(q,()=>{return AJ.lastIndex=q.index,AJ.test(q.template)},"inside <textarea>"),q.read(AJ),H.end=q.index;else if(Y.name==="script"||Y.name==="style"){let $=q.index,O=`</${Y.name}>`,w=q.template.indexOf(O,q.index),I=q.template.slice(q.index,w===-1?q.template.length:w);q.index=w===-1?q.template.length:w;let C=q.index,E={start:$,end:C,type:"Text",data:I,raw:I};H.fragment.nodes.push(E),q.eat(`</${Y.name}>`,!0),H.end=q.index}else q.stack.push(H),q.fragments.push(H.fragment)}function gd(q){let Z=q.length;while(Z--){let{type:Q}=q[Z];if(Q==="SvelteHead")return!0;if(Q==="RegularElement"||Q==="Component")return!1}return!1}function ld(q){let Z=q.length;while(Z--)if(q[Z].type==="RegularElement"&&q[Z].attributes.some((Q)=>Q.type==="Attribute"&&Q.name==="shadowrootmode"))return!0;return!1}function xd(q){let Z=q.index,Q=DJ(q,SB);if(!Q.name)return null;let Y=!0;if(q.eat("=")){q.allow_whitespace();let J=q.match_regex(bd);if(!J)eY(q.index);q.index+=J.length;let H=J[0]==='"'||J[0]==="'";if(H)J=J.slice(1,-1);Y=[{start:q.index-J.length-(H?1:0),end:H?q.index-1:q.index,type:"Text",raw:J,data:N2(J,!0)}]}if(q.match_regex(uB))c1(q.index,"=");return A1(Q.name,Q.loc,Z,q.index,Y)}function md(q){let Z=null;while(Z=pd(q))q.root.comments.push(Z),q.allow_whitespace();let Q=q.index;if(q.eat("{")){if(q.allow_whitespace(),q.eat("@attach")){q.require_whitespace();let W=t0(q);return q.allow_whitespace(),q.eat("}",!0),{type:"AttachTag",start:Q,end:q.index,expression:W,metadata:{expression:new n8}}}if(q.eat("...")){let W=t0(q);return q.allow_whitespace(),q.eat("}",!0),{type:"SpreadAttribute",start:Q,end:q.index,expression:W,metadata:{expression:new n8}}}else{let W=q.read_identifier();if(W.name==="")if(q.loose&&(q.match("#")||q.match("/")||q.match("@")||q.match(":")))return null;else if(q.loose&&q.match("}"));else lR(Q);q.allow_whitespace(),q.eat("}",!0);let R={type:"ExpressionTag",start:W.start,end:W.end,expression:W,metadata:{expression:new n8}};return A1(W.name,W.loc,Q,q.index,R)}}let Y=DJ(q,SB);if(!Y.name)return null;let J=q.index;q.allow_whitespace();let H=Y.name.indexOf(":"),X=H!==-1&&cd(Y.name.slice(0,H)),G=!0;if(q.eat("="))if(q.allow_whitespace(),q.template[q.index]==="/"&&q.template[q.index+1]===">"){let W=q.index;q.index++,G=[{start:W,end:W+1,type:"Text",raw:"/",data:"/"}],J=q.index}else G=rd(q),J=q.index;else if(q.match_regex(uB))c1(q.index,"=");if(X){let[W,...R]=Y.name.slice(H+1).split("|");if(W==="")Vz({start:Q,end:Q+H+1},Y.name);if(X==="StyleDirective")return{start:Q,end:J,type:X,name:W,name_loc:Y.loc,modifiers:R,value:G,metadata:{expression:new n8}};let B=G===!0?void 0:Array.isArray(G)?G[0]:G,M=null;if(B)if(G.length>1||B.type==="Text")Gz(B.start);else M=B.expression;let V={start:Q,end:J,type:X,name:W,name_loc:Y.loc,expression:M,metadata:{expression:new n8}};if(V.modifiers=R,V.type==="TransitionDirective"){let $=Y.name.slice(0,H);V.intro=$==="in"||$==="transition",V.outro=$==="out"||$==="transition"}if((V.type==="BindDirective"||V.type==="ClassDirective")&&!V.expression)V.expression={start:Q+H+1,end:J,type:"Identifier",name:V.name};return V}return A1(Y.name,Y.loc,Q,J,G)}function pd(q){let Z=q.index;if(q.eat("//")){let Q=q.read_until(/\n/),Y=q.index;return{type:"Line",start:Z,end:Y,value:Q,loc:{start:J0(Z),end:J0(Y)}}}if(q.eat("/*")){let Q=q.read_until(/\*\//);q.eat("*/");let Y=q.index;return{type:"Block",start:Z,end:Y,value:Q,loc:{start:J0(Z),end:J0(Y)}}}return null}function cd(q){if(q==="use")return"UseDirective";if(q==="animate")return"AnimateDirective";if(q==="bind")return"BindDirective";if(q==="class")return"ClassDirective";if(q==="style")return"StyleDirective";if(q==="on")return"OnDirective";if(q==="let")return"LetDirective";if(q==="in"||q==="out"||q==="transition")return"TransitionDirective";return!1}function rd(q){let Z=q.eat("'")?"'":q.eat('"')?'"':null;if(Z&&q.eat(Z))return[{start:q.index-1,end:q.index-1,type:"Text",raw:"",data:""}];let Q;try{Q=hB(q,()=>{if(Z)return q.match(Z);return!!q.match_regex(Sd)},"in attribute value")}catch(Y){if(Y.code==="js_parse_error"){let J=Y.position?.[0];if(J!==void 0&&q.template.slice(J-1,J+1)==="/>")q.index=J,c1(J,Z||"}")}throw Y}if(Q.length===0&&!Z)eY(q.index);if(Z)q.index+=1;if(Z||Q.length>1||Q[0].type==="Text")return Q;else return Q[0]}function hB(q,Z,Q){let Y={start:q.index,end:-1,type:"Text",raw:"",data:""},J=[];function H(X){if(X>Y.start)Y.raw=q.template.slice(Y.start,X),Y.data=N2(Y.raw,!0),Y.end=X,J.push(Y)}while(q.index<q.template.length){let X=q.index;if(Z())return H(q.index),J;else if(q.eat("{")){if(q.match("#")){let R=q.index-1;q.eat("#");let B=q.read_until(/[^a-z]/);tR(R,B,Q)}else if(q.match("@")){let R=q.index-1;q.eat("@");let B=q.read_until(/[^a-z]/);YB(R,B,Q)}H(q.index-1),q.allow_whitespace();let G=t0(q);q.allow_whitespace(),q.eat("}",!0);let W={type:"ExpressionTag",start:X,end:q.index,expression:G,metadata:{expression:new n8}};J.push(W),Y={start:q.index,end:-1,type:"Text",raw:"",data:""}}else q.index++}if(q.loose)return J;else O1(q.template.length)}function DJ(q,Z){let Q=q.index,Y=q.read_until(Z),J=q.index;return{type:"Identifier",name:Y,start:Q,end:J,loc:{start:J0(Q),end:J0(J)}}}function R9(q){let{index:Z,index:Q}=q,Y=q.read_identifier();if(Y.name!==""){let R=yB(q);return{...Y,typeAnnotation:R}}let J=q.template[Q];if(J!=="{"&&J!=="[")Pz(Q);Q=f2(q,Z),q.index=Q;let H=q.template.slice(Z,Q),X=q.template.slice(0,Z).replace(O4," "),G=X.indexOf(" ");X=X.slice(0,G)+X.slice(G+1);let W=U5(F6(q,`${X}(${H} = 1)`,Z-1));if(W=W.left,W.typeAnnotation=yB(q),W.typeAnnotation)W.end=W.typeAnnotation.end;return W}function yB(q){let Z=q.index;if(q.allow_whitespace(),!q.eat(":")){q.index=Z;return}let Q="_ as ",Y=q.index-Q.length,J=q.template.slice(0,Y).replace(/[^\n]/g," ")+Q+q.template.slice(q.index).replace(/\?\s*:/g,":"),H=U5(F6(q,J,Y));if(H.type==="AssignmentExpression"){let X=H.right.start;while(J[X]!=="=")X-=1;H=U5(F6(q,J.slice(0,X),Y))}if(H.type==="SequenceExpression")H=H.expressions[0];return q.index=H.end,{type:"TSTypeAnnotation",start:Z,end:q.index,typeAnnotation:H.typeAnnotation}}var CJ=/\s*}/y,id=/(?:let|const)\b/y,dd=/(?:var|interface|enum)\b/y,sd=/type\b/y,ad={"<":">"};function FJ(q){let Z=q.index;if(q.index+=1,q.allow_whitespace(),q.eat("#"))return nd(q);if(q.eat(":"))return td(q);if(q.eat("@"))return ed(q);if(q.match("/")){if(!q.match("/*")&&!q.match("//"))return q.eat("/"),EJ(q)}let Q=od(q);if(Q){q.append({type:"DeclarationTag",start:Z,end:q.index,declaration:Q,metadata:{expression:new n8}});return}let Y=t0(q);q.allow_whitespace(),q.eat("}",!0),q.append({type:"ExpressionTag",start:Z,end:q.index,expression:Y,metadata:{expression:new n8}})}function od(q){let Z=q.index,Q=q.match_regex(dd);if(Q)q3({start:Z,end:Z+Q.length});if(!q.match_regex(id)&&!q.match_regex(sd))return null;let Y=q.root.comments.length,J;try{J=RB(q,q.template,Z)}catch(H){if(!q.loose)throw H;let X=G3(q.template,Z,"{");if(X===void 0)throw H;q.index=X,J={type:"VariableDeclaration",kind:q.template.startsWith("const",Z)?"const":"let",declarations:[{type:"VariableDeclarator",id:{type:"Identifier",name:"",start:q.index,end:q.index},init:null,start:q.index,end:q.index}],start:Z,end:X}}if(J.type!=="VariableDeclaration")if(J.type==="ExpressionStatement")return q.root.comments.length=Y,null;else q3({start:J.start??Z,end:J.end??q.index});if(J.kind!=="let"&&J.kind!=="const")q3(J);return q.index=J.end,q.allow_whitespace(),q.eat("}",!0),J}function nd(q){let Z=q.index-2;while(q.template[Z]!=="{")Z-=1;if(q.eat("if")){q.require_whitespace();let Q=q.append({type:"IfBlock",elseif:!1,start:Z,end:-1,test:t0(q),consequent:d0(),alternate:null,metadata:{expression:new n8}});q.allow_whitespace(),q.eat("}",!0),q.stack.push(Q),q.fragments.push(Q.consequent);return}if(q.eat("each")){q.require_whitespace();let Q=q.template,Y=q.template.length,J;while(!J)try{J=t0(q,void 0,!0)}catch(B){Y=B.position[0]-2;while(Y>Z&&q.template.slice(Y,Y+2)!=="as")Y-=1;if(Y<=Z){if(q.loose){if(J=zJ(q),J)break}throw B}q.template=Q.slice(0,Y)}if(q.template=Q,q.allow_whitespace(),!q.match("as")){if(J.type==="SequenceExpression")J=J.expressions[0];let B=null,M=J.end;if(J=K8(J,null,{TSAsExpression(V,$){if(V.end===J.end)return B=V,M=V.expression.end,V.expression;$.next()}}),J.end=M,B){let V=B.typeAnnotation.start-2;while(q.template.slice(V,V+2)!=="as")V-=1;q.index=V}}let H=null,X,G;if(q.eat("as"))q.require_whitespace(),H=R9(q);else q.index=J.end;if(q.allow_whitespace(),q.eat(",")){if(q.allow_whitespace(),X=q.read_identifier().name,!X)qJ(q.index);q.allow_whitespace()}if(q.eat("("))q.allow_whitespace(),G=t0(q,"("),q.allow_whitespace(),q.eat(")",!0),q.allow_whitespace();if(!q.eat("}",!0,!1))if(q.template.slice(q.index-4,q.index)===" as "){let B=q.index;H=R9(q),q.eat("}",!0),J={type:"Identifier",name:"",start:J.start,end:B-4}}else q.eat("}",!0);let R=q.append({type:"EachBlock",start:Z,end:-1,expression:J,body:d0(),context:H,index:X,key:G,metadata:null});q.stack.push(R),q.fragments.push(R.body);return}if(q.eat("await")){q.require_whitespace();let Q=t0(q);q.allow_whitespace();let Y=q.append({type:"AwaitBlock",start:Z,end:-1,expression:Q,value:null,error:null,pending:null,then:null,catch:null,metadata:{expression:new n8}});if(q.eat("then")){if(q.match_regex(CJ))q.allow_whitespace();else q.require_whitespace(),Y.value=R9(q),q.allow_whitespace();Y.then=d0(),q.fragments.push(Y.then)}else if(q.eat("catch")){if(q.match_regex(CJ))q.allow_whitespace();else q.require_whitespace(),Y.error=R9(q),q.allow_whitespace();Y.catch=d0(),q.fragments.push(Y.catch)}else Y.pending=d0(),q.fragments.push(Y.pending);if(!q.eat("}",!0,!1))if(q.template.slice(q.index-6,q.index)===" then "){let H=q.index;Y.value=R9(q),q.eat("}",!0),Y.expression={type:"Identifier",name:"",start:Q.start,end:H-6},Y.then=Y.pending,Y.pending=null}else if(q.template.slice(q.index-7,q.index)===" catch "){let H=q.index;Y.error=R9(q),q.eat("}",!0),Y.expression={type:"Identifier",name:"",start:Q.start,end:H-7},Y.catch=Y.pending,Y.pending=null}else q.eat("}",!0);q.stack.push(Y);return}if(q.eat("key")){q.require_whitespace();let Q=t0(q);q.allow_whitespace(),q.eat("}",!0);let Y=q.append({type:"KeyBlock",start:Z,end:-1,expression:Q,fragment:d0(),metadata:{expression:new n8}});q.stack.push(Y),q.fragments.push(Y.fragment);return}if(q.eat("snippet")){q.require_whitespace();let Q=q.read_identifier();if(Q.name===""&&!q.loose)qJ(q.index);q.allow_whitespace();let Y=q.index,J;if(q.ts&&q.match("<")){let B=q.index,M=f2(q,B,ad);J=q.template.slice(B+1,M-1),q.index=M}q.allow_whitespace();let H=q.eat("(",!0,!1);if(H){let B=1;while(q.index<q.template.length&&(!q.match(")")||B!==1)){if(q.match("("))B++;if(q.match(")"))B--;q.index+=1}q.eat(")",!0)}let X=q.template.slice(0,Y).replace(/\S/g," "),G=q.template.slice(Y,q.index),W=H?F6(q,X+`${G} => {}`,Y):{params:[]};q.allow_whitespace(),q.eat("}",!0);let R=q.append({type:"SnippetBlock",start:Z,end:-1,expression:Q,typeParams:J,parameters:W.params,body:d0(),metadata:{can_hoist:!1,sites:new Set}});q.stack.push(R),q.fragments.push(R.body);return}Mz(q.index)}function td(q){let Z=q.index-1,Q=q.current();if(Q.type==="IfBlock"){if(!q.eat("else"))c1(Z,"{:else} or {:else if}");if(q.eat("if"))nR(Z);if(q.allow_whitespace(),q.fragments.pop(),Q.alternate=d0(),q.fragments.push(Q.alternate),q.eat("if")){q.require_whitespace();let Y=t0(q);q.allow_whitespace(),q.eat("}",!0);let J=Z-1;while(q.template[J]!=="{")J-=1;let H=q.append({start:J,end:-1,type:"IfBlock",elseif:!0,test:Y,consequent:d0(),alternate:null,metadata:{expression:new n8}});q.stack.push(H),q.fragments.pop(),q.fragments.push(H.consequent)}else q.allow_whitespace(),q.eat("}",!0);return}if(Q.type==="EachBlock"){if(!q.eat("else"))c1(Z,"{:else}");q.allow_whitespace(),q.eat("}",!0),Q.fallback=d0(),q.fragments.pop(),q.fragments.push(Q.fallback);return}if(Q.type==="AwaitBlock"){if(q.eat("then")){if(Q.then)nY(Z,"{:then}");if(!q.eat("}"))q.require_whitespace(),Q.value=R9(q),q.allow_whitespace(),q.eat("}",!0);Q.then=d0(),q.fragments.pop(),q.fragments.push(Q.then);return}if(q.eat("catch")){if(Q.catch)nY(Z,"{:catch}");if(!q.eat("}"))q.require_whitespace(),Q.error=R9(q),q.allow_whitespace(),q.eat("}",!0);Q.catch=d0(),q.fragments.pop(),q.fragments.push(Q.catch);return}c1(Z,"{:then ...} or {:catch ...}")}oR(Z)}function EJ(q){let Z=q.index-1,Q=q.current(),Y;switch(Q.type){case"IfBlock":if(Y=q.eat("if",!0,!1),!Y){Q.end=Z-1,q.pop(),EJ(q);return}q.allow_whitespace(),q.eat("}",!0);while(Q.elseif)Q.end=q.index,q.stack.pop(),Q=q.current();Q.end=q.index,q.pop();return;case"EachBlock":Y=q.eat("each",!0,!1);break;case"KeyBlock":Y=q.eat("key",!0,!1);break;case"AwaitBlock":Y=q.eat("await",!0,!1);break;case"SnippetBlock":Y=q.eat("snippet",!0,!1);break;case"RegularElement":if(q.loose)Y=!1;else tY(Z);break;default:tY(Z)}if(!Y){Q.end=Z-1,q.pop(),EJ(q);return}q.allow_whitespace(),q.eat("}",!0),Q.end=q.index,q.pop()}function ed(q){let Z=q.index;while(q.template[Z]!=="{")Z-=1;if(q.eat("html")){q.require_whitespace();let Q=t0(q);q.allow_whitespace(),q.eat("}",!0),q.append({type:"HtmlTag",start:Z,end:q.index,expression:Q,metadata:{expression:new n8}});return}if(q.eat("debug")){let Q;if(q.read(CJ))Q=[];else{let Y=t0(q);Q=Y.type==="SequenceExpression"?Y.expressions:[Y],Q.forEach((J)=>{if(J.type!=="Identifier")Hz(J.start)}),q.allow_whitespace(),q.eat("}",!0)}q.append({type:"DebugTag",start:Z,end:q.index,identifiers:Q});return}if(q.eat("const")){q.require_whitespace();let Q=R9(q);q.allow_whitespace(),q.eat("=",!0),q.allow_whitespace();let Y=q.index,J=t0(q);if(J.type==="SequenceExpression"&&!q.template.substring(Y,J.start).includes("("))Qz(J);q.allow_whitespace(),q.eat("}",!0),q.append({type:"ConstTag",start:Z,end:q.index,declaration:{type:"VariableDeclaration",kind:"const",declarations:[{type:"VariableDeclarator",id:Q,init:J,start:Q.start,end:J.end}],start:Z+2,end:q.index-1},metadata:{expression:new n8}});return}if(q.eat("render")){q.require_whitespace();let Q=t0(q);if(Q.type!=="CallExpression"&&(Q.type!=="ChainExpression"||Q.expression.type!=="CallExpression"))Dz(Q);q.allow_whitespace(),q.eat("}",!0),q.append({type:"RenderTag",start:Z,end:q.index,expression:Q,metadata:{expression:new n8,dynamic:!1,arguments:[],path:[],snippets:new Set}});return}Lz(q.index)}function TJ(q){let Z=q.index;while(q.index<q.template.length&&!q.match("<")&&!q.match("{"))q.index++;let Q=q.template.slice(Z,q.index);q.append({type:"Text",start:Z,end:q.index,raw:Q,data:N2(Q,!1)})}function k2(q){if(q.match("<"))return IJ;if(q.match("{"))return FJ;return TJ}function fJ(q){let Z={start:q.start,end:q.end,attributes:q.attributes};if(!q)return Z;for(let Q of q.attributes){if(Q.type!=="Attribute")nz(Q);let{name:Y}=Q;switch(Y){case"runes":{Z.runes=P3(Q);break}case"tag":{oz(Q);break}case"customElement":{let J={},{value:H}=Q,X=H===!0||Array.isArray(H)?H:[H];if(X===!0)J3(Q);else if(X[0].type==="Text"){let V=L3(Q);gB(Q,V),J.tag=V,Z.customElement=J;break}else if(X[0].expression.type!=="ObjectExpression"){if(X[0].expression.type==="Literal"&&X[0].expression.value===null)break;J3(Q)}let G=[];for(let V of X[0].expression.properties){if(V.type!=="Property"||V.computed||V.key.type!=="Identifier")J3(Q);G.push([V.key.name,V.value])}let W=G.find(([V])=>V==="tag");if(W){let V=W[1]?.value;gB(W,V),J.tag=V}let R=G.find(([V])=>V==="props")?.[1];if(R){if(R.type!=="ObjectExpression")E6(Q);J.props={};for(let V of R.properties){if(V.type!=="Property"||V.computed||V.key.type!=="Identifier"||V.value.type!=="ObjectExpression")E6(Q);J.props[V.key.name]={};for(let $ of V.value.properties){if($.type!=="Property"||$.computed||$.key.type!=="Identifier"||$.value.type!=="Literal")E6(Q);if($.key.name==="type"){if(["String","Number","Boolean","Array","Object"].indexOf($.value.value)===-1)E6(Q);J.props[V.key.name].type=$.value.value}else if($.key.name==="reflect"){if(typeof $.value.value!=="boolean")E6(Q);J.props[V.key.name].reflect=$.value.value}else if($.key.name==="attribute"){if(typeof $.value.value!=="string")E6(Q);J.props[V.key.name].attribute=$.value.value}else E6(Q)}}}let B=G.find(([V])=>V==="shadow")?.[1];if(B)if(B.type==="Literal"&&(B.value==="open"||B.value==="none"))J.shadow=B.value;else if(B.type==="ObjectExpression")J.shadow=B;else tz(Q);let M=G.find(([V])=>V==="extend")?.[1];if(M)J.extend=M;Z.customElement=J;break}case"namespace":{let J=L3(Q);if(J===j4)Z.namespace="svg";else if(J===I4)Z.namespace="mathml";else if(J==="html"||J==="mathml"||J==="svg")Z.namespace=J;else Y3(Q,'"html", "mathml" or "svg"');break}case"css":{let J=L3(Q);if(J==="injected")Z.css=J;else Y3(Q,'"injected"');break}case"immutable":{Z.immutable=P3(Q);break}case"preserveWhitespace":{Z.preserveWhitespace=P3(Q);break}case"accessors":{Z.accessors=P3(Q);break}default:qB(Q,Y)}}return Z}function L3(q){let{value:Z}=q;if(Z===!0)return!0;let Q=Array.isArray(Z)?Z[0]:Z;if(!Q)return!0;if(Z.length>1)return null;if(Q.type==="Text")return Q.data;if(Q.expression.type!=="Literal")return null;return Q.expression.value}function P3(q){let Z=L3(q);if(typeof Z!=="boolean")Y3(q,"true or false");return Z}var _B="[a-z0-9_.·À-ÖØ-öø-ͽͿ--‿-⁀⁰-Ⰰ-、-豈-﷏ﷰ-�\uD800\uDC00-\uDB7F\uDFFF-]",qs=new RegExp(`^[a-z]${_B}*-${_B}*$`,"u"),Zs=["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"];function gB(q,Z){if(typeof Z!=="string")XJ(q);if(Z){if(!qs.test(Z))XJ(q);else if(Zs.includes(Z))ez(q)}}function S6(q){let{nodes:Z}=q.fragment;if(Z.length>0){let Q=Z[0],Y=Z[Z.length-1];dz({start:Q.start,end:Y.end},q.name)}}function lB(q){if(q===32||q<=13&&q>=9)return!0;if(q<160)return!1;return q===160||q===5760||q>=8192&&q<=8202||q===8232||q===8233||q===8239||q===8287||q===12288||q===65279}var xB=/<!--[^]*?-->|<script\s+(?:[^>]*|(?:[^=>'"/]+=(?:"[^"]*"|'[^']*'|[^>\s]+)\s+)*)lang=(["'])?([^"' >]+)\1[^>]*>/g;class O3{template;loose;index=0;static forCss(q){let Z=Object.create(O3.prototype);return Z.template=q,Z.index=0,Z.loose=!1,Z}ts=!1;stack=[];fragments=[];root;meta_tags={};last_auto_closed_tag;constructor(q,Z){if(typeof q!=="string")throw TypeError("Template must be a string");this.loose=Z,this.template=q.trimEnd();let Q;do Q=xB.exec(q);while(Q&&Q[0][1]!=="s");xB.lastIndex=0,this.ts=Q?.[2]==="ts",this.root={css:null,js:[],start:null,end:null,type:"Root",fragment:d0(),options:null,comments:[],metadata:{ts:this.ts}},this.stack.push(this.root),this.fragments.push(this.root.fragment);let Y=k2;while(this.index<this.template.length)Y=Y(this)||k2;if(this.stack.length>1){let H=this.current();if(this.loose)H.end=this.template.length;else if(H.type==="RegularElement")H.end=H.start+1,Z3(H,H.name);else H.end=H.start+1,eR(H)}if(Y!==k2)O1(this.index);this.root.start=0,this.root.end=q.length;let J=this.root.fragment.nodes.findIndex((H)=>H.type==="SvelteOptions");if(J!==-1){let H=this.root.fragment.nodes[J];this.root.fragment.nodes.splice(J,1),this.root.options=fJ(H),S6(H),Object.defineProperty(this.root.options,"__raw__",{value:H,enumerable:!1})}}current(){return this.stack[this.stack.length-1]}eat(q,Z=!1,Q=!0){if(this.match(q))return this.index+=q.length,!0;if(Z&&(!this.loose||Q))c1(this.index,q);return!1}match(q){if(q.length===1)return this.template[this.index]===q;return this.template.startsWith(q,this.index)}match_regex(q){q.lastIndex=this.index;let Z=q.exec(this.template);if(!Z||Z.index!==this.index)return null;return Z[0]}allow_whitespace(){while(this.index<this.template.length&&lB(this.template.charCodeAt(this.index)))this.index++}read(q){let Z=this.match_regex(q);if(Z)this.index+=Z.length;return Z}read_identifier(){let q=this.index,Z=q,Q="",Y=this.template.codePointAt(this.index);if(F1(Y,!0)){let J=this.index;Z+=Y<=65535?1:2;while(Z<this.template.length){let H=this.template.codePointAt(Z);if(!H9(H,!0))break;Z+=H<=65535?1:2}if(Q=this.template.slice(q,Z),this.index=Z,U2(Q))WB(q,Q)}return{type:"Identifier",name:Q,start:q,end:Z,loc:{start:J0(q),end:J0(Z)}}}read_until(q){if(this.index>=this.template.length){if(this.loose)return"";O1(this.template.length)}let Z=this.index,Q=q.exec(this.template.slice(Z));if(Q)return this.index=Z+Q.index,this.template.slice(Z,this.index);return this.index=this.template.length,this.template.slice(Z)}require_whitespace(){if(!lB(this.template.charCodeAt(this.index)))Oz(this.index);this.allow_whitespace()}pop(){let q=this.fragments.pop();if(q?.metadata.transparent&&q.nodes.some((Z)=>Z.type==="DeclarationTag"))q.metadata.transparent=!1;return this.stack.pop()}append(q){return this.fragments.at(-1)?.nodes.push(q),q}}function w3(q,Z=!1){return E4(q),new O3(q,Z).root}function mB(q,Z){if(q.params[0]?.type==="Identifier"&&q.params[0].name==="this")q.params.shift();return Z.next()}var Qs={_(q,Z){let Q=Z.next()??q;delete Q.typeAnnotation,delete Q.typeParameters,delete Q.typeArguments,delete Q.returnType,delete Q.accessibility,delete Q.readonly,delete Q.definite,delete Q.override},Decorator(q){$5(q,"decorators (related TSC proposal is not stage 4 yet)")},ImportDeclaration(q){if(q.importKind==="type")return _8;if(q.specifiers?.length>0){let Z=q.specifiers.filter((Q)=>Q.importKind!=="type");if(Z.length===0)return _8;return{...q,specifiers:Z}}return q},ExportNamedDeclaration(q,Z){if(q.exportKind==="type")return _8;if(q.declaration){let Q=Z.next();if(Q?.declaration?.type==="EmptyStatement")return _8;return Q}if(q.specifiers){let Q=q.specifiers.filter((Y)=>Y.exportKind!=="type");if(Q.length===0)return _8;return{...q,specifiers:Q}}return q},ExportDefaultDeclaration(q){if(q.exportKind==="type")return _8;return q},ExportAllDeclaration(q){if(q.exportKind==="type")return _8;return q},PropertyDefinition(q,{next:Z}){if(q.accessor)$5(q,"accessor fields (related TSC proposal is not stage 4 yet)");return Z()},TSAsExpression(q,Z){return Z.visit(q.expression)},TSSatisfiesExpression(q,Z){return Z.visit(q.expression)},TSNonNullExpression(q,Z){return Z.visit(q.expression)},TSInterfaceDeclaration(){return _8},TSTypeAliasDeclaration(){return _8},TSTypeAssertion(q,Z){return Z.visit(q.expression)},TSEnumDeclaration(q){$5(q,"enums")},TSParameterProperty(q,Z){if((q.readonly||q.accessibility)&&Z.path.at(-2)?.kind==="constructor")$5(q,"accessibility modifiers on constructor parameters");return Z.visit(q.parameter)},TSInstantiationExpression(q,Z){return Z.visit(q.expression)},FunctionExpression:mB,FunctionDeclaration:mB,TSDeclareFunction(){return _8},ClassBody(q,Z){let Q=[];for(let Y of q.body){let J=Z.visit(Y);if(J.type!=="PropertyDefinition"||!J.declare)Q.push(J)}return{...q,body:Q}},ClassDeclaration(q,Z){if(q.declare)return _8;return delete q.abstract,delete q.implements,delete q.superTypeArguments,delete q.superTypeParameters,Z.next()},ClassExpression(q,Z){return delete q.implements,delete q.superTypeArguments,delete q.superTypeParameters,Z.next()},MethodDefinition(q,Z){if(q.abstract)return _8;return Z.next()},VariableDeclaration(q,Z){if(q.declare)return _8;return Z.next()},TSModuleDeclaration(q,Z){if(!q.body)return _8;if(q.body.body.map((Y)=>Z.visit(Y)).some((Y)=>Y!==_8))$5(q,"namespaces with non-type nodes");return _8}};function S2(q){return K8(q,null,Qs)}function s0(q,Z){if(q.type==="MemberExpression")return!q.computed&&s0(q.object,q);if(q.type!=="Identifier")return!1;switch(Z?.type){case"MemberExpression":return Z.computed||q===Z.object;case"MethodDefinition":return Z.computed;case"MetaProperty":return Z.meta===q;case"PropertyDefinition":return Z.computed||q===Z.value;case"Property":return Z.computed||q===Z.value;case"ExportSpecifier":case"ImportSpecifier":return q===Z.local;case"LabeledStatement":case"BreakStatement":case"ContinueStatement":return!1;default:return!0}}function Z6(q){if(!M5(q))return null;for(let Z of q.attributes){if(Z.type!=="Attribute")continue;if(Z.name!=="slot")continue;if(!d8(Z))continue;return Z.value[0].data}return null}function L5(q,Z,Q){if(KJ(q,Z,Q.state.scope,q.type==="BindDirective"),Z.type==="Identifier"){let Y=Q.state.scope.get(Z.name);if(Q.state.analysis.runes){if(Q.state.analysis.props_id!=null&&Y?.node===Q.state.analysis.props_id)xY(q,"$props.id()");if(Y?.kind==="each")aU(q)}if(Y?.kind==="snippet")jR(q)}if(Z.type==="MemberExpression"&&Z.object.type==="ThisExpression"){let Y=Z.computed&&Z.property.type!=="Literal"?null:H1(Z.property),J=Y!==null&&Q.state.state_fields?.get(Y);if(J&&J.node.type==="AssignmentExpression"&&q!==J.node){let H=Q.path.length;while(H--){let X=Q.path[H];if(X.type==="FunctionDeclaration"||X.type==="FunctionExpression"||X.type==="ArrowFunctionExpression"){let G=e9(Q.path,H-1);if(G.type==="MethodDefinition"&&G.kind==="constructor"&&q.start<J.node.start)s4(q);break}}}}}function KJ(q,Z,Q,Y){if(Z.type==="ArrayPattern"){for(let J of Z.elements)if(J)KJ(q,J,Q,Y)}else if(Z.type==="ObjectPattern"){for(let J of Z.properties)if(J.type==="Property")KJ(q,J.value,Q,Y)}else if(Z.type==="Identifier"){let J=Q.get(Z.name);if(J?.declaration_kind==="import"||J?.declaration_kind==="const"&&J.kind!=="each"){let H=J.declaration_kind==="import"?"import":"constant";if(Y)rU(q,H);else xY(q,H)}}}function a0(q,Z,Q){if(Z.analysis.source[q.start+1]!==Q)T2({start:q.start,end:q.start+5},Q)}function j1(q,Z){if(!q)return;if(q.nodes.length===1&&q.nodes[0].type==="Text"&&!q.nodes[0].raw.trim())f$(q.nodes[0])}function pB(q,Z){let Q=r8(q.id);for(let Y of Q)if(Z.ast_type==="instance"&&Z.scope===Z.analysis.instance.scope&&Z.analysis.module.scope.get(Y.name)?.declaration_kind==="import")iU(q.id)}function u2(q,Z){let Q=q;while(Q.type==="MemberExpression")Q=Q.object;if(Q.type!=="Identifier")return!1;let Y=Z.get(Q.name);if(!Y)return!0;if(Y.kind==="store_sub")return u2({name:Q.name.slice(1),type:"Identifier"},Z);return Y.declaration_kind!=="import"&&Y.kind!=="prop"&&Y.kind!=="bindable_prop"&&Y.kind!=="rest_prop"}function Q6(q,Z){if(q.type==="Literal")return!0;if(q.type==="CallExpression"){if(!Q6(q.callee,Z))return!1;for(let Y of q.arguments)if(!Q6(Y.type==="SpreadElement"?Y.argument:Y,Z))return!1;return!0}if(q.type!=="Identifier"&&q.type!=="MemberExpression")return!1;if(s8(j(q),Z.state.scope)==="$effect.tracking")return!1;let Q=q;while(Q.type==="MemberExpression")Q=Q.object;if(!Q)return!1;if(Q.type==="Identifier"){if(Z.state.scope.get(Q.name)===null)return!0}else if(Q6(Q,Z))return!0;return!1}function u6(q,Z){if(!q)return;let Q=q.declaration_kind;if(Q!=="synthetic"&&Q!=="param"&&Q!=="rest_param"&&(!Z||Z<=1)){let Y=q.node;if(Y.name==="$")dU(Y);else if(Y.name.startsWith("$")&&!(q.initial?.type==="ImportDeclaration"&&q.initial.importKind==="type"))sU(Y)}}function A3(q,Z,Q){let Y=Z.get(Q);if(!Y)return;if(Y.kind==="derived")r4(q);if((Y.kind==="state"||Y.kind==="raw_state")&&Y.reassigned)a4(q)}var z9=Symbol("unknown"),h8=Symbol("number"),S9=Symbol("string"),cB=Symbol("string"),rB={BigInt:[h8],"Math.min":[h8,Math.min],"Math.max":[h8,Math.max],"Math.random":[h8],"Math.floor":[h8,Math.floor],"Math.f16round":[h8,Math.f16round],"Math.round":[h8,Math.round],"Math.abs":[h8,Math.abs],"Math.acos":[h8,Math.acos],"Math.asin":[h8,Math.asin],"Math.atan":[h8,Math.atan],"Math.atan2":[h8,Math.atan2],"Math.ceil":[h8,Math.ceil],"Math.cos":[h8,Math.cos],"Math.sin":[h8,Math.sin],"Math.tan":[h8,Math.tan],"Math.exp":[h8,Math.exp],"Math.log":[h8,Math.log],"Math.pow":[h8,Math.pow],"Math.sqrt":[h8,Math.sqrt],"Math.clz32":[h8,Math.clz32],"Math.imul":[h8,Math.imul],"Math.sign":[h8,Math.sign],"Math.log10":[h8,Math.log10],"Math.log2":[h8,Math.log2],"Math.log1p":[h8,Math.log1p],"Math.expm1":[h8,Math.expm1],"Math.cosh":[h8,Math.cosh],"Math.sinh":[h8,Math.sinh],"Math.tanh":[h8,Math.tanh],"Math.acosh":[h8,Math.acosh],"Math.asinh":[h8,Math.asinh],"Math.atanh":[h8,Math.atanh],"Math.trunc":[h8,Math.trunc],"Math.fround":[h8,Math.fround],"Math.cbrt":[h8,Math.cbrt],Number:[h8,Number],"Number.isInteger":[h8,Number.isInteger],"Number.isFinite":[h8,Number.isFinite],"Number.isNaN":[h8,Number.isNaN],"Number.isSafeInteger":[h8,Number.isSafeInteger],"Number.parseFloat":[h8,Number.parseFloat],"Number.parseInt":[h8,Number.parseInt],String:[S9,String],"String.fromCharCode":[S9,String.fromCharCode],"String.fromCodePoint":[S9,String.fromCodePoint]},iB={"Math.PI":Math.PI,"Math.E":Math.E,"Math.LN10":Math.LN10,"Math.LN2":Math.LN2,"Math.LOG10E":Math.LOG10E,"Math.LOG2E":Math.LOG2E,"Math.SQRT2":Math.SQRT2,"Math.SQRT1_2":Math.SQRT1_2};class dB{scope;node;kind;declaration_kind;initial=null;references=[];assignments=[];legacy_dependencies=[];legacy_indirect_bindings=new Set;prop_alias=null;metadata=null;mutated=!1;reassigned=!1;blocker=null;constructor(q,Z,Q,Y,J){if(this.scope=q,this.node=Z,this.initial=J,this.kind=Q,this.declaration_kind=Y,J)this.assignments.push({value:J,scope:q})}get updated(){return this.mutated||this.reassigned}is_function(){if(this.updated)return!1;let q=this.initial?.type;return q==="ArrowFunctionExpression"||q==="FunctionExpression"||q==="FunctionDeclaration"}}class sB{values;is_known=!0;has_unknown=!1;is_defined=!0;is_string=!0;is_number=!0;is_primitive=!0;is_function=!0;value=void 0;constructor(q,Z,Q){switch(vJ.set(Z,this),this.values=Q,Z.type){case"Literal":{this.values.add(Z.value);break}case"Identifier":{let Y=q.get(Z.name);if(Y){if(Y.initial?.type==="CallExpression"&&s8(Y.initial,q)==="$props.id"){this.values.add(S9);break}let J=Y.kind==="prop"||Y.kind==="rest_prop"||Y.kind==="bindable_prop";if(Y.initial?.type==="EachBlock"&&Y.initial.index===Z.name){this.values.add(h8);break}if(Y.initial?.type==="SnippetBlock"){this.is_defined=!0,this.is_known=!1,this.values.add(z9);break}if(!Y.updated&&Y.initial!==null&&!J){Y.scope.evaluate(Y.initial,this.values);break}}else if(Z.name==="undefined"){this.values.add(void 0);break}this.values.add(z9);break}case"BinaryExpression":{let Y=q.evaluate(Z.left),J=q.evaluate(Z.right);if(Y.is_known&&J.is_known){this.values.add(Ys[Z.operator](Y.value,J.value));break}switch(Z.operator){case"!=":case"!==":case"<":case"<=":case">":case">=":case"==":case"===":case"in":case"instanceof":this.values.add(!0),this.values.add(!1);break;case"%":case"&":case"*":case"**":case"-":case"/":case"<<":case">>":case">>>":case"^":case"|":this.values.add(h8);break;case"+":if(Y.is_string||J.is_string)this.values.add(S9);else if(Y.is_number&&J.is_number)this.values.add(h8);else this.values.add(S9),this.values.add(h8);break;default:this.values.add(z9)}break}case"ConditionalExpression":{let Y=q.evaluate(Z.test),J=q.evaluate(Z.consequent),H=q.evaluate(Z.alternate);if(Y.is_known)for(let X of(Y.value?J:H).values)this.values.add(X);else{for(let X of J.values)this.values.add(X);for(let X of H.values)this.values.add(X)}break}case"LogicalExpression":{let Y=q.evaluate(Z.left),J=q.evaluate(Z.right);if(Y.is_known){if(J.is_known){this.values.add(Hs[Z.operator](Y.value,J.value));break}if(Z.operator==="&&"&&!Y.value||Z.operator==="||"&&Y.value||Z.operator==="??"&&Y.value!=null)this.values.add(Y.value);else for(let H of J.values)this.values.add(H);break}for(let H of Y.values)this.values.add(H);for(let H of J.values)this.values.add(H);break}case"UnaryExpression":{let Y=q.evaluate(Z.argument);if(Y.is_known){this.values.add(Js[Z.operator](Y.value));break}switch(Z.operator){case"!":case"delete":this.values.add(!1),this.values.add(!0);break;case"+":case"-":case"~":this.values.add(h8);break;case"typeof":this.values.add(S9);break;case"void":this.values.add(void 0);break;default:this.values.add(z9)}break}case"CallExpression":{let Y=NJ(Z.callee,q);if(Y){if(E9(Y)){let J=Z.arguments[0];switch(Y){case"$state":case"$state.raw":case"$derived":if(J)q.evaluate(J,this.values);else this.values.add(void 0);break;case"$props.id":this.values.add(S9);break;case"$effect.tracking":this.values.add(!1),this.values.add(!0);break;case"$derived.by":if(J?.type==="ArrowFunctionExpression"&&J.body.type!=="BlockStatement"){q.evaluate(J.body,this.values);break}this.values.add(z9);break;default:this.values.add(z9)}break}if(Object.hasOwn(rB,Y)&&Z.arguments.every((J)=>J.type!=="SpreadElement")){let[J,H]=rB[Y],X=Z.arguments.map((G)=>q.evaluate(G));if(H&&X.every((G)=>G.is_known))this.values.add(H(...X.map((G)=>G.value)));else this.values.add(J);break}}this.values.add(z9);break}case"TemplateLiteral":{let Y=Z.quasis[0].value.cooked;for(let J=0;J<Z.expressions.length;J+=1){let H=q.evaluate(Z.expressions[J]);if(H.is_known)Y+=H.value+Z.quasis[J+1].value.cooked;else{this.values.add(S9);break}}this.values.add(Y);break}case"MemberExpression":{let Y=NJ(Z,q);if(Y&&Object.hasOwn(iB,Y)){this.values.add(iB[Y]);break}this.values.add(z9);break}case"ArrowFunctionExpression":case"FunctionExpression":case"FunctionDeclaration":{this.values.add(cB);break}default:this.values.add(z9)}for(let Y of this.values){if(this.value=Y,Y!==S9&&typeof Y!=="string")this.is_string=!1;if(Y!==h8&&typeof Y!=="number")this.is_number=!1;if(Y!==cB)this.is_function=!1;if(Y==null||Y===z9)this.is_defined=!1;if(Y===z9)this.has_unknown=!0,this.is_primitive=!1}if(this.values.size>1||typeof this.value==="symbol")this.is_known=!1;vJ.delete(Z)}}class j3{root;parent;#q;declarations=new Map;declarators=new Map;references=new Map;function_depth=0;tracing=null;constructor(q,Z,Q){this.root=q,this.parent=Z,this.#q=Q,this.function_depth=Z?Z.function_depth+(Q?0:1):0}declare(q,Z,Q,Y=null){if(this.parent){if(Q==="var"&&this.#q)return this.parent.declare(q,Z,Q);if(Q==="import")return this.parent.declare(q,Z,Q,Y)}if(this.declarations.has(q.name)){let H=this.declarations.get(q.name);if(H&&H.declaration_kind!=="var"&&Q!=="var")W5(q,q.name)}let J=new dB(this,q,Z,Q,Y);return u6(J,this.function_depth),this.declarations.set(q.name,J),this.root.conflicts.add(q.name),J}child(q=!1){return new j3(this.root,this,q)}generate(q){if(this.#q)return this.parent.generate(q);q=q.replace(/[^a-zA-Z0-9_$]/g,"_").replace(/^[0-9]/,"_");let Z=this.root.next_counter(q),Q;if(Z===0)Q=q,Z=1;else Q=`${q}_${Z}`,Z++;while(this.references.has(Q)||this.declarations.has(Q)||this.root.conflicts.has(Q)||U2(Q))Q=`${q}_${Z++}`;return this.root.set_counter(q,Z),this.references.set(Q,[]),this.root.conflicts.add(Q),Q}get(q){return this.declarations.get(q)??this.parent?.get(q)??null}get_bindings(q){let Z=this.declarators.get(q);if(!Z)throw Error("No binding found for declarator");return Z}owner(q){return this.declarations.has(q)?this:this.parent&&this.parent.owner(q)}reference(q,Z){Z=[...Z];let Q=this.references.get(q.name);if(!Q)this.references.set(q.name,Q=[]);Q.push({node:q,path:Z});let Y=this.declarations.get(q.name);if(Y)Y.references.push({node:q,path:Z});else if(this.parent)this.parent.reference(q,Z);else this.root.conflicts.add(q.name)}evaluate(q,Z=new Set){let Q=vJ.get(q);if(Q)return Q;return new sB(this,q,Z)}}var vJ=new Map,Ys={"!=":(q,Z)=>q!=Z,"!==":(q,Z)=>q!==Z,"<":(q,Z)=>q<Z,"<=":(q,Z)=>q<=Z,">":(q,Z)=>q>Z,">=":(q,Z)=>q>=Z,"==":(q,Z)=>q==Z,"===":(q,Z)=>q===Z,in:(q,Z)=>(q in Z),instanceof:(q,Z)=>q instanceof Z,"%":(q,Z)=>q%Z,"&":(q,Z)=>q&Z,"*":(q,Z)=>q*Z,"**":(q,Z)=>q**Z,"+":(q,Z)=>q+Z,"-":(q,Z)=>q-Z,"/":(q,Z)=>q/Z,"<<":(q,Z)=>q<<Z,">>":(q,Z)=>q>>Z,">>>":(q,Z)=>q>>>Z,"^":(q,Z)=>q^Z,"|":(q,Z)=>q|Z},Js={"-":(q)=>-q,"+":(q)=>+q,"!":(q)=>!q,"~":(q)=>~q,typeof:(q)=>typeof q,void:()=>{return},delete:()=>!0},Hs={"||":(q,Z)=>q||Z,"&&":(q,Z)=>q&&Z,"??":(q,Z)=>q??Z};class kJ{conflicts=new Set;#q=new Map;next_counter(q){return this.#q.get(q)??0}set_counter(q,Z){this.#q.set(q,Z)}unique(q){q=q.replace(/[^a-zA-Z0-9_$]/g,"_");let Z=this.#q.get(q)??0,Q;if(Z===0)Q=q,Z=1;else Q=`${q}_${Z}`,Z++;while(this.conflicts.has(Q))Q=`${q}_${Z++}`;return this.#q.set(q,Z),this.conflicts.add(Q),F(Q)}}function SJ(q,Z,Q,Y){let J=new Map,H=new j3(Z,Y,!1);J.set(q,H);let X={scope:H},G=[],W=[],R=[];function B(I,C){for(let E of C)for(let D of r8(E))I.declare(D,"normal",E.type==="RestElement"?"rest_param":"param")}let M=(I,{state:C,next:E})=>{let D=C.scope.child(!0);J.set(I,D),E({scope:D})},V=(I,{state:C,next:E})=>{let D=C.scope.child();J.set(I,D),E({scope:D})},$=(I,C)=>{if(I.metadata.scopes={default:C.state.scope.child()},I.type==="SvelteComponent")C.visit(I.expression);let E=Z6(I)?C.state:{scope:I.metadata.scopes.default};for(let D of I.attributes)if(D.type==="LetDirective")C.visit(D,E);else C.visit(D);for(let D of I.fragment.nodes){let f=E,v=Z6(D);if(v!==null)I.metadata.scopes[v]=C.state.scope.child(),f={scope:I.metadata.scopes[v]};C.visit(D,f)}},O=(I,{state:C,path:E,visit:D})=>{if(C.scope.reference(F(I.name.split(".")[0]),E),I.expression)D(I.expression)},w=!1;K8(q,X,{AwaitExpression(I,C){w||=C.path.every(({type:E})=>E!=="ArrowFunctionExpression"&&E!=="FunctionExpression"&&E!=="FunctionDeclaration"),C.next()},Identifier(I,{path:C,state:E}){let D=C.at(-1);if(D&&s0(I,D)&&!D.type.startsWith("TS"))G.push([E.scope,{node:I,path:C.slice()}])},LabeledStatement(I,{path:C,next:E}){if(C.length>1||!Q)return E();if(I.label.name!=="$")return E();let D=X.scope.child();if(J.set(I,D),I.body.type==="ExpressionStatement"&&I.body.expression.type==="AssignmentExpression"){for(let f of r8(I.body.expression.left))if(!f.name.startsWith("$"))R.push(f)}E({scope:D})},SvelteFragment:V,SlotElement:V,SvelteElement:V,RegularElement:V,LetDirective(I,C){let E=C.state.scope,D=[];if(E.declarators.set(I,D),I.expression)for(let f of v2(I.expression)){let v=E.declare(f,"template","const");E.reference(f,[C.path[C.path.length-1],I]),D.push(v)}else{let f={name:I.name,type:"Identifier",start:I.start,end:I.end},v=E.declare(f,"template","const");E.reference(f,[C.path[C.path.length-1],I]),D.push(v)}},Component:(I,C)=>{C.state.scope.reference(F(I.name.split(".")[0]),C.path),$(I,C)},SvelteSelf:$,SvelteComponent:$,AssignmentExpression(I,{state:C,next:E}){W.push([C.scope,I.left,I.right]),E()},UpdateExpression(I,{state:C,next:E}){let D=I.argument;W.push([C.scope,D,D]),E()},ImportDeclaration(I,{state:C}){for(let E of I.specifiers)C.scope.declare(E.local,"normal","import",I)},FunctionExpression(I,{state:C,next:E}){let D=C.scope.child(!0);if(J.set(I,D),I.id)D.declare(I.id,"normal","function");B(D,I.params),E({scope:D})},FunctionDeclaration(I,{state:C,next:E}){if(I.id)C.scope.declare(I.id,"normal","function",I);let D=C.scope.child(!0);J.set(I,D),B(D,I.params),E({scope:D})},ArrowFunctionExpression(I,{state:C,next:E}){let D=C.scope.child(!0);J.set(I,D),B(D,I.params),E({scope:D})},ForStatement:M,ForInStatement:M,ForOfStatement:M,SwitchStatement:M,BlockStatement(I,C){let E=C.path.at(-1);if(E?.type==="FunctionDeclaration"||E?.type==="FunctionExpression"||E?.type==="ArrowFunctionExpression"){let D=C.state.scope.child();J.set(I,D),C.next({scope:D})}else M(I,C)},ClassDeclaration(I,{state:C,next:E}){if(I.id)C.scope.declare(I.id,"normal","let",I);E()},VariableDeclaration(I,{state:C,path:E,next:D}){let f=E.at(-1)?.type==="ConstTag";for(let v of I.declarations){let _=[];C.scope.declarators.set(v,_);for(let b of r8(v.id)){let z=C.scope.declare(b,f?"template":"normal",I.kind,v.init);z.metadata={is_template_declaration:!0},_.push(z)}}D()},CatchClause(I,{state:C,next:E}){if(I.param){let D=C.scope.child(!0);J.set(I,D);for(let f of r8(I.param))D.declare(f,"normal","let");E({scope:D})}else E()},EachBlock(I,{state:C,visit:E}){E(I.expression);let D=C.scope.child();if(J.set(I,D),I.context){for(let f of r8(I.context)){let v=D.declare(f,"each","const"),_=!1,b=!1;K8(I.context,null,{Identifier(z){if(_&&z===f)b=!0},RestElement(z,{next:P}){let L=_;_=!0,P(),_=L}}),v.metadata={inside_rest:b}}E(I.context,{scope:D})}if(I.index){let f=I.key&&(I.key.type!=="Identifier"||!I.index||I.key.name!==I.index);D.declare(F(I.index),f?"template":"static","const",I)}if(I.key)E(I.key,{scope:D});for(let f of I.body.nodes)E(f,{scope:D});if(I.fallback)E(I.fallback,{scope:D});I.metadata={expression:new n8,keyed:!1,contains_group_binding:!1,index:D.root.unique("$$index"),declarations:D.declarations,is_controlled:!1,transitive_deps:new Set}},AwaitBlock(I,C){if(C.visit(I.expression),I.pending)C.visit(I.pending);if(I.then){if(C.visit(I.then),I.value){let E=J.get(I.then),D=C.state.scope.child();J.set(I.value,D),C.visit(I.value,{scope:D});for(let f of r8(I.value))E.declare(f,"template","const"),D.declare(f,"normal","const")}}if(I.catch){if(C.visit(I.catch),I.error){let E=J.get(I.catch),D=C.state.scope.child();J.set(I.error,D),C.visit(I.error,{scope:D});for(let f of r8(I.error))E.declare(f,"template","const"),D.declare(f,"normal","const")}}},SnippetBlock(I,C){let E=C.state;E.scope.declare(I.expression,"normal","function",I);let f=E.scope.child();J.set(I,f);for(let v of I.parameters)for(let _ of r8(v))f.declare(_,"snippet","let");C.next({scope:f})},Fragment:(I,C)=>{let E=C.state.scope.child(I.metadata.transparent);J.set(I,E),C.next({scope:E})},BindDirective(I,C){if(I.expression.type!=="SequenceExpression"){let E=I.expression;W.push([C.state.scope,E,E])}C.next()},TransitionDirective:O,AnimateDirective:O,UseDirective:O,StyleDirective(I,{path:C,state:E,next:D}){if(I.value===!0)E.scope.reference(F(I.name),C.concat(I));D()}});for(let I of R){if(H.get(I.name))continue;H.declare(I,"legacy_reactive","let")}for(let[I,{node:C,path:E}]of G)I.reference(C,E);for(let[I,C,E]of W)for(let D of v9(C)){let f=f0(D),v=f&&I.get(f.name);if(v!==null&&f!==v.node)if(f===D)v.reassigned=!0,v.assignments.push({value:E,scope:I});else v.mutated=!0}return{has_await:w,scope:H,scopes:J}}function O5(q,{next:Z,state:Q}){let Y=Q.scopes.get(q);Z(Y!==void 0&&Y!==Q.scope?{...Q,scope:Y}:Q)}function s8(q,Z){if(!q)return null;if(q.type!=="CallExpression")return null;let Q=NJ(q.callee,Z);if(!Q||!E9(Q))return null;return Q}function NJ(q,Z){let Q=q,Y="";while(Q.type==="MemberExpression"){if(Q.computed)return null;if(Q.property.type!=="Identifier")return null;Y="."+Q.property.name+Y,Q=Q.object}if(Q.type==="CallExpression"&&Q.callee.type==="Identifier")Y="()"+Y,Q=Q.callee;if(Q.type!=="Identifier")return null;if(Z.get(Q.name)!==null)return null;return Q.name+Y}function b2(q){let Z=q.reduce((X,G)=>{let[W,R]=G;if(!X.has(W))X.set(W,[]);if(!X.has(R))X.set(R,[]);return X.get(W).push(R),X},new Map),Q=new Set,Y=new Set,J=[];function H(X){Q.add(X),Y.add(X),Z.get(X)?.forEach((G)=>{if(!Q.has(G))H(G);else if(Y.has(G))J.push([...Y,G])}),Y.delete(X)}return Z.forEach((X,G)=>{if(!Q.has(G))H(G)}),J[0]}var Xs=/^-((webkit)|(moz)|(o)|(ms))-/,aB=/^[\s,;}]$/;function uJ(q){return q.replace(Xs,"")}var w5=(q)=>uJ(q.name)==="keyframes";var h2={};function b6(q,Z,Q,Y=!1){if(Q.has(h2))return;if(q.type==="Literal")Q.add(String(q.value));else if(q.type==="ConditionalExpression")b6(q.consequent,Z,Q,Y),b6(q.alternate,Z,Q,Y);else if(q.type==="LogicalExpression")if(q.operator==="&&"){let J=new Set;if(b6(q.left,Z,J,Y),J.has(h2)){if(!Z||!Y)Q.add(""),Q.add(!1),Q.add(NaN),Q.add(0)}else for(let H of J)if(!H&&H!=null&&(!Z||!Y))Q.add(H);b6(q.right,Z,Q,Y)}else b6(q.left,Z,Q,Y),b6(q.right,Z,Q,Y);else if(Z&&q.type==="ArrayExpression"){for(let J of q.elements)if(J)b6(J,Z,Q,!0)}else if(Z&&q.type==="ObjectExpression")for(let J of q.properties)if(J.type==="Property"&&!J.computed&&(J.key.type==="Identifier"||J.key.type==="Literal"))Q.add(J.key.type==="Identifier"?J.key.name:String(J.key.value));else Q.add(h2);else Q.add(h2)}function oB(q,Z){let Q=new Set;if(q.type==="Text")Q.add(q.data);else b6(q.expression,Z,Q);if(Q.has(h2))return null;return[...Q].map((Y)=>String(Y))}function nB(q){let Z=[];while(q)Z.push(q),q=q.metadata.parent_rule;return Z}function y2(q){let Z=q.selectors[0];return Z.type==="PseudoClassSelector"&&Z.name==="global"&&(Z.args===null||q.selectors.every((Q)=>_2(Q)||Q.type==="PseudoElementSelector"))}function _2(q){return q.type==="PseudoClassSelector"&&(q.name!=="has"&&q.name!=="is"&&q.name!=="where"&&(q.name!=="not"||q.args===null||q.args.children.every((Z)=>Z.children.length===1))||q.args===null||q.args.children.every((Z)=>Z.children.every((Q)=>y2(Q))))}function tB(q){let Z=q.selectors[0];return Z.type==="PseudoClassSelector"&&Z.name==="global"&&(Z.args===null||q.selectors.every((Q)=>Q.type==="PseudoClassSelector"||Q.type==="PseudoElementSelector"))}function Gs(q){return q.type==="PseudoClassSelector"&&q.name==="global"&&q.args===null}function eB(q){return q.filter((Z)=>Z.type==="Rule").every((Z)=>Z.metadata.has_global_selectors)}function Vs(q){return q.some((Z)=>Z.type==="Rule"&&Z.metadata.is_global_block)}var Ws={Atrule(q,Z){if(w5(q)){if(!q.prelude.startsWith("-global-")&&!Vs(Z.path))Z.state.keyframes.push(q.prelude);else if(q.prelude.startsWith("-global-"))Z.state.analysis.css.has_global||=eB(Z.path)}Z.next()},ComplexSelector(q,Z){Z.next();{let Q=q.children.find(y2);if(Q){if(Z.path.at(-2)?.type==="PseudoClassSelector"&&!Q.selectors[0].args)KR(Q.selectors[0]);let J=q.children.indexOf(Q);if(Q.selectors[0].args!==null&&J!==0&&J!==q.children.length-1){for(let H=J+1;H<q.children.length;H++)if(!y2(q.children[H]))vR(Q.selectors[0])}}}for(let Q of q.children)for(let Y=0;Y<Q.selectors.length;Y++){let J=Q.selectors[Y];if(J.type==="PseudoClassSelector"&&J.name==="global"){if(J.args?.children[0].children[0]?.selectors[0].type==="TypeSelector"&&Y!==0)kR(J);if(Q.selectors[Y+1]?.type==="TypeSelector")uR(Q.selectors[Y+1]);if(J.args!==null&&J.args.children.length>1&&(q.children.length>1||Q.selectors.length>1))NR(J)}}if(q.metadata.rule=Z.state.rule,q.metadata.is_global=q.children.every(({metadata:Q})=>Q.is_global||Q.is_global_like),q.metadata.used||=q.metadata.is_global,q.metadata.rule?.metadata.parent_rule&&q.children[0]?.selectors[0]?.type==="NestingSelector"){let Q=q.children[0]?.selectors[1],Y=Q?.type!=="PseudoClassSelector"||_2(Q),J=q.metadata.rule.metadata.parent_rule.prelude.children.some((H)=>H.children.length===1&&H.children[0].metadata.is_global);if(Y&&J)q.metadata.used=!0}},RelativeSelector(q,Z){let Q=Z.path.at(-1);if(q.combinator!=null&&!Z.state.rule?.metadata.parent_rule&&Q.children[0]===q&&Z.path.at(-3)?.type!=="PseudoClassSelector")n4(q.combinator);if(q.metadata.is_global=q.selectors.length>=1&&y2(q),q.selectors.length>=1&&q.selectors.every((Y)=>Y.type==="PseudoClassSelector"||Y.type==="PseudoElementSelector")){let Y=q.selectors[0];q.metadata.is_global_like||=Y.type==="PseudoClassSelector"&&Y.name==="host"||Y.type==="PseudoElementSelector"&&["view-transition","view-transition-group","view-transition-old","view-transition-new","view-transition-image-pair"].includes(Y.name)}if(q.metadata.is_global_like||=q.selectors.some((Y)=>Y.type==="PseudoClassSelector"&&Y.name==="root")&&!q.selectors.some((Y)=>Y.type==="PseudoClassSelector"&&Y.name==="has"),q.metadata.is_global_like||q.metadata.is_global)for(let Y of q.selectors)K8(Y,null,{ComplexSelector(J,H){J.metadata.used=!0,H.next()}});Z.next()},Rule(q,Z){q.metadata.parent_rule=Z.state.rule;for(let Y of q.prelude.children){let J=!1;for(let H=0;H<Y.children.length;H++){let X=Y.children[H],G=X.selectors.findIndex(Gs);if(J)X.metadata.is_global_like=!0;if(G===0)if(X.selectors.length>1&&H===0&&q.metadata.parent_rule===null)sY(X.selectors[1]);else{q.metadata.is_global_block=J=!0;for(let B=1;B<X.selectors.length;B++)K8(X.selectors[B],null,{ComplexSelector(M){M.metadata.used=!0}});if(X.combinator&&X.combinator.name!==" ")FR(X,X.combinator.name);let W=q.block.children.find((B)=>B.type==="Declaration"),R=Y.children.length===1&&Y.children[0].selectors.length===1;if(R&&q.prelude.children.length>1)dY(q.prelude);if(W&&q.prelude.children.length===1&&R)TR(W)}else if(G!==-1)fR(X.selectors[G])}if(q.metadata.is_global_block&&!J)dY(q.prelude)}let Q={...Z.state,rule:q};Z.visit(q.prelude,Q);for(let Y of q.prelude.children)q.metadata.has_global_selectors||=Y.metadata.is_global,q.metadata.has_local_selectors||=!Y.metadata.is_global;Z.state.analysis.css.has_global||=q.metadata.has_global_selectors&&q.block.children.filter((Y)=>Y.type==="Declaration").length>0&&eB(Z.path),Z.visit(q.block,Q)},NestingSelector(q,Z){let Q=Z.state.rule,Y=Q.metadata.parent_rule;if(!Y){let J=Q.prelude.children,H=J[0].children[0].selectors;if(J.length>1||H.length>1||H[0].type!=="PseudoClassSelector"||H[0].name!=="global"||H[0].args?.children[0]?.children[0].selectors[0]!==q)SR(q)}else if(Y.metadata.is_global_block&&!Y.metadata.parent_rule&&Y.prelude.children[0].children.length===1&&Y.prelude.children[0].children[0].selectors.length===1)sY(q);Z.next()}};function qM(q,Z){let Q={keyframes:Z.css.keyframes,rule:null,analysis:Z};K8(q,Q,Ws)}var g2=0,yJ=1,B9=0,x2=1,$s=new Map([["details",["open"]],["dialog",["open"]]]),Us=new Set(["accept-charset","autocapitalize","autocomplete","behavior","charset","crossorigin","decoding","dir","direction","draggable","enctype","enterkeyhint","fetchpriority","formenctype","formmethod","formtarget","hidden","http-equiv","inputmode","kind","loading","method","preload","referrerpolicy","rel","rev","role","rules","scope","shape","spellcheck","target","translate","type","valign","wrap"]),YM={type:"Combinator",name:" ",start:-1,end:-1},Rs={type:"RelativeSelector",start:-1,end:-1,combinator:null,selectors:[{type:"NestingSelector",name:"&",start:-1,end:-1}],metadata:{is_global:!1,is_global_like:!1,scoped:!1}},zs={type:"RelativeSelector",start:-1,end:-1,combinator:null,selectors:[{type:"TypeSelector",name:"*",start:-1,end:-1}],metadata:{is_global:!1,is_global_like:!1,scoped:!1}},Bs=new Set;function JM(q,Z){K8(q,null,{Rule(Q,Y){if(Q.metadata.is_global_block)Y.visit(Q.prelude);else Y.next()},ComplexSelector(Q){let Y=HM(Q);for(let J of Z)if(Bs.clear(),h6(Y,Q.metadata.rule,J,x2))Q.metadata.used=!0}})}function HM(q){let Z=I3(q);if(q.metadata.rule?.metadata.parent_rule&&Z.length>0){let Q=!1;for(let Y of Z)if(K8(Y,null,{NestingSelector(){Q=!0}}),Q)break;if(!Q){if(Z[0].combinator===null)Z[0]={...Z[0],combinator:YM};Z.unshift(Rs)}}return Z}function I3(q){let Z=q.children.findLastIndex(({metadata:Q,selectors:Y})=>{let J=Y[0];return!Q.is_global_like&&!(J.type==="PseudoClassSelector"&&J.name==="global"&&J.args===null)&&!Q.is_global});return q.children.slice(0,Z+1).map((Q)=>{if(!Q.selectors.find((J)=>J.type==="PseudoClassSelector"&&J.name==="root")||Q.metadata.is_global_like)return Q;return{...Q,selectors:Q.selectors.filter((J)=>J.type==="PseudoClassSelector"&&J.name==="has")}})}function h6(q,Z,Q,Y,J=0,H=q.length){if(J>=H)return!1;let X=Y===B9?J:H-1,G=q[X],W=Y===B9?J+1:J,R=Y===B9?H:H-1,B=Ls(G,Z,Q,Y)&&Ms(G,q,W,R,Z,Q,Y);if(B){if(!tB(G))G.metadata.scoped=!0;Q.metadata.scoped=!0}return B}function Ms(q,Z,Q,Y,J,H,X){let G=X==B9?Q<Y?Z[Q].combinator:void 0:q.combinator;if(!G)return!0;switch(G.name){case" ":case">":{let W=G.name===">",R=X===B9?ws(H,W):XM(H,W),B=!1;for(let M of R)if(h6(Z,J,M,X,Q,Y))B=!0;return B||X===x2&&(!W||R.length===0)&&ZM(Z,Q,Y,J)}case"+":case"~":{let W=VM(H,X,G.name==="+"),R=!1;for(let B of W.keys())if(B.type==="RenderTag"||B.type==="SlotElement"||B.type==="Component"){if(Y-Q===1&&Z[Q].metadata.is_global)R=!0}else if(h6(Z,J,B,X,Q,Y))R=!0;return R||X===x2&&GM(H)===null&&ZM(Z,Q,Y,J)}default:return!0}}function ZM(q,Z,Q,Y){for(let J=Z;J<Q;J++)if(!D3(q[J],Y))return!1;return!0}function D3(q,Z){if(q.metadata.is_global||q.metadata.is_global_like)return!0;let Q=!1;for(let Y of q.selectors){let J=null,H=!1,X=Z;if(Y.type==="PseudoClassSelector")if((Y.name==="is"||Y.name==="where")&&Y.args)J=Y.args;else H=_2(Y);if(Y.type==="NestingSelector")X=Z.metadata.parent_rule,J=X.prelude;let G=!!J?.children.some((W)=>{return W.children.every((R)=>D3(R,X))});if(Q||=G,!G&&!H)return!1}return Q||q.selectors.length===0}var Ps=/\\(.)/g;function Ls(q,Z,Q,Y){let J;for(let H of q.selectors){if(H.type==="PseudoClassSelector"&&H.name==="has"&&H.args){if(J===void 0){let R=nB(Z);J=R.some((B)=>B.prelude.children.some((M)=>M.children.some((V)=>D3(V,B))))||R[R.length-1].prelude.children.some((B)=>B.children.some((M)=>M.selectors.some((V)=>V.type==="PseudoClassSelector"&&(V.name==="root"||V.name==="global"&&V.args))))}let G=H.args.children,W=!1;for(let R of G){let[B,...M]=I3(R);if(!B){R.metadata.used=!0,W=!0;continue}if(J){let $=[B.combinator?{...B,combinator:null}:B,...M];if(h6($,Z,Q,B9))R.metadata.used=!0,W=!0}let V=[zs,B.combinator?B:{...B,combinator:YM},...M];if(h6(V,Z,Q,B9))R.metadata.used=!0,W=!0}if(!W)return!1;continue}if(H.type==="Percentage"||H.type==="Nth")continue;let X=H.name.includes("\\")?H.name.replace(Ps,"$1"):H.name;switch(H.type){case"PseudoClassSelector":{if(X==="host"||X==="root")return!1;if(X==="global"&&H.args!==null&&q.selectors.length===1){let W=H.args.children[0];return h6(W.children,Z,Q,x2)}if(X==="global"&&H.args===null)return!0;if(X==="not"&&H.args){for(let G of H.args.children){K8(G,null,{ComplexSelector(R,B){R.metadata.used=!0,B.next()}});let W=I3(G);if(G.children.length>1){for(let B of W)B.metadata.scoped=!0;let R=Q;while(R)R.metadata.scoped=!0,R=GM(R)}}break}if((X==="is"||X==="where")&&H.args){let G=!1;for(let W of H.args.children){let R=I3(W);if(R.length===0)W.metadata.used=!0,G=!0;else if(h6(R,Z,Q,x2))W.metadata.used=!0,G=!0;else if(W.children.length>1&&(X=="is"||X=="where")){W.metadata.used=!0,G=!0;for(let M of R)M.metadata.scoped=!0}}if(!G)return!1}break}case"PseudoElementSelector":break;case"AttributeSelector":{if(!$s.get(Q.name.toLowerCase())?.includes(H.name.toLowerCase())&&!bJ(Q,H.name,H.value&&Os(H.value),H.matcher,(H.flags?.includes("i")??!1)||!H.flags?.includes("s")&&Us.has(H.name.toLowerCase())))return!1;break}case"ClassSelector":{if(!bJ(Q,"class",X,"~=",!1))return!1;break}case"IdSelector":{if(!bJ(Q,"id",X,"=",!1))return!1;break}case"TypeSelector":{if(Q.name.toLowerCase()!==X.toLowerCase()&&X!=="*"&&Q.type!=="SvelteElement")return!1;break}case"NestingSelector":{let G=!1,W=Z.metadata.parent_rule;for(let R of W.prelude.children)if(h6(HM(R),W,Q,Y)||R.children.every((B)=>D3(B,W)))R.metadata.used=!0,G=!0;if(!G)return!1;break}}}return!0}function QM(q,Z,Q,Y){if(Q)Z=Z.toLowerCase(),Y=Y.toLowerCase();switch(q){case"=":return Y===Z;case"~=":return Y.split(/\s/).includes(Z);case"|=":return`${Y}-`.startsWith(`${Z}-`);case"^=":return Y.startsWith(Z);case"$=":return Y.endsWith(Z);case"*=":return Y.includes(Z);default:throw Error("this shouldn't happen")}}function bJ(q,Z,Q,Y,J){let H=Z.toLowerCase();for(let X of q.attributes){if(X.type==="SpreadAttribute")return!0;if(X.type==="BindDirective"&&X.name===Z)return!0;if(X.type==="StyleDirective"&&H==="style")return!0;if(X.type==="ClassDirective"&&H==="class")if(Y==="~="){if(X.name===Q)return!0}else return!0;if(X.type!=="Attribute")continue;if(X.name.toLowerCase()!==H)continue;if(X.value===!0)return Y===null;if(Q===null)return!0;if(d8(X)){let B=QM(Y,Q,J,X.value[0].data);if(!B&&(H==="class"||H==="style"))continue;return B}let G=v6(X.value),W=new Set,R=[];for(let B of G){let M=oB(B,H==="class");if(!M)return!0;if(R.length>0){let V=[],$=[];if(M.forEach((O)=>{if(KV.test(O))V.push(O);else $.push(O)}),$.length>0){if(V.length>0)R.forEach((w)=>W.add(w));let O=[];R.forEach((w)=>{$.forEach((I)=>{O.push(w+I)})}),R=O,V.forEach((w)=>{if(GY.test(w))W.add(w);else R.push(w)});continue}else R.forEach((O)=>W.add(O)),R=[]}if(M.forEach((V)=>{if(GY.test(V))W.add(V);else R.push(V)}),R.length<M.length)R.push(" ");if(R.length>20)return!0}R.forEach((B)=>W.add(B));for(let B of W)if(QM(Y,Q,J,B))return!0}return!1}function Os(q){if(q[0]===q[q.length-1]&&q[0]==="'"||q[0]==='"')return q.slice(1,q.length-1);return q}function XM(q,Z,Q=new Set){let Y=[],J=q.metadata.path,H=J.length;while(H--){let X=J[H];if(X.type==="SnippetBlock"){if(!Q.has(X)){Q.add(X);for(let G of X.metadata.sites)Y.push(...XM(G,Z,Q))}break}if(X.type==="RegularElement"||X.type==="SvelteElement"){if(X.type==="RegularElement"&&X.name==="option"){let G=Y.length===0,W=J.findLast((R,B)=>R.type==="RegularElement"&&R.name==="select"&&B<H);if(W&&(!Z||G)){let R=null;if(K8(W,null,{RegularElement(B,M){if(B.name==="selectedcontent"){R=B,M.stop();return}M.next()}}),Z&&G&&R)return[R,X];else if(R)Y.push(R)}}if(Y.push(X),Z)break}}return Y}function ws(q,Z,Q=new Set){let Y=[];function J(H){K8(H,null,{_(X,G){if(X.type==="RegularElement"||X.type==="SvelteElement"){if(Y.push(X),!Z)G.next()}else if(X.type==="RenderTag")for(let W of X.metadata.snippets){if(Q.has(W))continue;Q.add(W),J(W.body)}else G.next()}})}if(J(q.type==="RenderTag"?q:q.fragment),q.type==="RegularElement"&&q.name==="selectedcontent"){let X=q.metadata.path.findLast((G)=>G.type==="RegularElement"&&G.name==="select");if(X)K8(X,{inside_option:!1},{_(G,W){if(G.type==="RegularElement"&&G.name==="option")W.next({inside_option:!0});else if(W.state.inside_option)J(G);else W.next()}})}return Y}function GM(q){let Z=q.metadata.path,Q=Z.length;while(Q--){let Y=Z[Q];if(Y.type==="RegularElement"||Y.type==="SvelteElement")return Y}return null}function VM(q,Z,Q,Y=new Set){let J=new Map,H=q.metadata.path,X=q,G=H.length;while(G--){let W=H[G--],R=W.nodes.indexOf(X)+(Z===B9?1:-1);while(R>=0&&R<W.nodes.length){let B=W.nodes[R];if(B.type==="RegularElement"){if(!B.attributes.some((V)=>V.type==="Attribute"&&V.name.toLowerCase()==="slot")){if(J.set(B,yJ),Q)return J}}else if(hJ(B)||B.type==="Component"){if(B.type==="SlotElement"||B.type==="Component")J.set(B,g2);let M=l2(B,Z,Q);if(A7(M,J),Q&&B.type!=="Component"&&C3(M))return J}else if(B.type==="SvelteElement")J.set(B,g2);else if(B.type==="RenderTag"){J.set(B,g2);for(let M of B.metadata.snippets)A7(l2(M,Z,Q),J)}R=Z===B9?R+1:R-1}if(X=H[G],!X)break;if(X.type==="Component"||X.type==="SvelteComponent"||X.type==="SvelteSelf")continue;if(X.type==="SnippetBlock"){if(Y.has(X))break;Y.add(X);for(let B of X.metadata.sites){let M=VM(B,Z,Q,Y);if(A7(M,J),Q&&X.metadata.sites.size===1&&C3(M))return J}}if(!hJ(X))break;if(X.type==="EachBlock"&&W===X.body)A7(l2(X,Z,Q),J)}return J}function l2(q,Z,Q,Y=new Set){let J=[];switch(q.type){case"EachBlock":J.push(q.body,q.fallback);break;case"IfBlock":J.push(q.consequent,q.alternate);break;case"AwaitBlock":J.push(q.pending,q.then,q.catch);break;case"KeyBlock":case"SlotElement":J.push(q.fragment);break;case"SnippetBlock":if(Y.has(q))return new Map;Y.add(q),J.push(q.body);break;case"Component":J.push(q.fragment,...[...q.metadata.snippets].map((G)=>G.body));break}let H=new Map,X=q.type!=="SlotElement"&&q.type!=="SnippetBlock";for(let G of J){if(G==null){X=!1;continue}let W=js(G.nodes,Z,Q,Y);X&&=C3(W),A7(W,H)}if(!X)for(let G of H.keys())H.set(G,g2);return H}function C3(q){if(q.size===0)return!1;for(let Z of q.values())if(Z===yJ)return!0;return!1}function A7(q,Z){q.forEach((Q,Y)=>{Z.set(Y,As(Q,Z.get(Y)))})}function As(q,Z){if(Z===void 0)return q;return q>Z?q:Z}function js(q,Z,Q,Y){let J=new Map,H=Z===B9?0:q.length-1;while(H>=0&&H<q.length){let X=q[H];if(X.type==="RegularElement"){if(J.set(X,yJ),Q)break}else if(X.type==="SvelteElement")J.set(X,g2);else if(X.type==="RenderTag")for(let G of X.metadata.snippets)A7(l2(G,Z,Q,Y),J);else if(hJ(X)){let G=l2(X,Z,Q,Y);if(A7(G,J),Q&&C3(G))break}H=Z===B9?H+1:H-1}return J}function hJ(q){return q.type==="IfBlock"||q.type==="EachBlock"||q.type==="AwaitBlock"||q.type==="KeyBlock"||q.type==="SlotElement"}function WM(q){K8(q,{stylesheet:q},Is)}var Is={Atrule(q,Z){if(!w5(q))Z.next()},PseudoClassSelector(q,Z){if(q.name==="is"||q.name==="where")Z.next()},ComplexSelector(q,Z){if(!q.metadata.used&&(Z.path.at(-2)?.type!=="PseudoClassSelector"||Z.path.at(-4)?.metadata.used)){let Q=Z.state.stylesheet.content,Y=Q.styles.substring(q.start-Q.start,q.end-Q.start);j$(q,Y)}Z.next()},Rule(q,Z){if(q.metadata.is_global_block)Z.visit(q.prelude);else Z.next()}};function A5(q,Z){if(Z.state.expression)for(let[Q]of Z.state.scope.references){let Y=Z.state.scope.get(Q);if(Y&&Y.scope!==Z.state.scope)Z.state.expression.references.add(Y)}Z.next({...Z.state,function_depth:Z.state.function_depth+1,expression:null})}function $M(q,Z){A5(q,Z)}function UM(q,Z){if(L5(q,q.left,Z),Z.state.reactive_statement){if((q.left.type==="MemberExpression"?f0(q.left):q.left)!==null)for(let Y of r8(q.left)){let J=Z.state.scope.get(Y.name);if(J)Z.state.reactive_statement.assignments.add(J)}}if(Z.state.expression)Z.state.expression.has_assignment=!0;Z.next()}function RM(q,Z){if(Z.next({...Z.state,expression:q.metadata.expression}),q.metadata.expression.has_await)G9(q)}function k8(q){let Z=q.length;while(Z--){let Q=q[Z];if(Q.type==="Fragment"){if(Q.metadata.dynamic)return;Q.metadata.dynamic=!0}}}function zM(q,Z){if(k8(Z.path),Z.next({...Z.state,expression:q.metadata.expression}),q.metadata.expression.has_await)G9(q)}function BM(q,Z){Z.next();let Q=Z.path.at(-1);if(Q.type==="RegularElement"){if(q.name==="value"&&Q.name==="option")k8(Z.path)}if(I0(q))k8(Z.path);if(o7(q.name))k8(Z.path);if(q.name==="class"&&!Array.isArray(q.value)&&q.value!==!0&&q.value.expression.type!=="Literal"&&q.value.expression.type!=="TemplateLiteral"&&q.value.expression.type!=="BinaryExpression")k8(Z.path),q.metadata.needs_clsx=!0;if(q.value!==!0){for(let Y of v6(q.value)){if(Y.type!=="ExpressionTag")continue;if(Y.expression.type==="FunctionExpression"||Y.expression.type==="ArrowFunctionExpression")continue}if(I0(q)){let Y=Z.path.at(-1);if(Y?.type==="RegularElement"||Y?.type==="SvelteElement")Z.state.analysis.uses_event_attributes=!0;q.metadata.delegated=Y?.type==="RegularElement"&&XW(q.name.slice(2))}}}function MM(q,Z){if(j1(q.pending,Z),j1(q.then,Z),j1(q.catch,Z),Z.state.analysis.runes){if(a0(q,Z.state,"#"),q.value){let Q=q.value.start,Y=Z.state.analysis.source.substring(Q-10,Q).match(/{(\s*):then\s+$/);if(Y&&Y[1]!=="")T2({start:Q-10,end:Q},":")}if(q.error){let Q=q.error.start,Y=Z.state.analysis.source.substring(Q-10,Q).match(/{(\s*):catch\s+$/);if(Y&&Y[1]!=="")T2({start:Q-10,end:Q},":")}}if(k8(Z.path),Z.visit(q.expression,{...Z.state,expression:q.metadata.expression}),q.pending)Z.visit(q.pending);if(q.then)Z.visit(q.then);if(q.catch)Z.visit(q.catch)}function PM(q,Z){let Q=Z.state.ast_type==="instance"&&Z.state.function_depth===1;if(Ds(Z.path,Z.state.derived_function_depth===Z.state.function_depth)&&!Cs(Z.path,q))Z.state.analysis.pickled_awaits.add(q);let Y=Q;if(Z.state.expression)Z.state.expression.has_await=!0,Y=!0;if(Y){if(!Z.state.options.experimental.async)nU(q);if(!Z.state.analysis.runes)JR(q)}Z.next()}function Ds(q,Z){if(Z)return!0;let Q=q.length;while(Q--){let Y=q[Q];if(Y.type==="ArrowFunctionExpression"||Y.type==="FunctionExpression"||Y.type==="FunctionDeclaration")return!1;if(Y.metadata)return!0}return!1}function Cs(q,Z){let Q=q.length;while(Q--){let Y=q[Q];if(Y.type==="ConstTag")return!1;if(Y.metadata)return!0;switch(Y.type){case"ArrayExpression":if(Z!==Y.elements.at(-1))return!1;break;case"AssignmentExpression":case"BinaryExpression":case"LogicalExpression":if(Z===Y.left)return!1;break;case"CallExpression":case"NewExpression":if(Z!==Y.arguments.at(-1))return!1;break;case"ConditionalExpression":if(Z===Y.test)return!1;break;case"MemberExpression":return!1;case"ObjectExpression":if(Z!==Y.properties.at(-1))return!1;break;case"Property":if(Z===Y.key)return!1;break;case"SequenceExpression":if(Z!==Y.expressions.at(-1))return!1;break;case"TaggedTemplateExpression":if(Z!==Y.quasi.expressions.at(-1))return!1;break;case"TemplateLiteral":if(Z!==Y.expressions.at(-1))return!1;break;case"VariableDeclarator":return!0;default:return!1}Z=Y}}var u9={currentTime:{valid_elements:["audio","video"],omit_in_ssr:!0,bidirectional:!0},duration:{valid_elements:["audio","video"],event:"durationchange",omit_in_ssr:!0},focused:{},paused:{valid_elements:["audio","video"],omit_in_ssr:!0,bidirectional:!0},buffered:{valid_elements:["audio","video"],omit_in_ssr:!0},seekable:{valid_elements:["audio","video"],omit_in_ssr:!0},played:{valid_elements:["audio","video"],omit_in_ssr:!0},volume:{valid_elements:["audio","video"],omit_in_ssr:!0,bidirectional:!0},muted:{valid_elements:["audio","video"],omit_in_ssr:!0,bidirectional:!0},playbackRate:{valid_elements:["audio","video"],omit_in_ssr:!0,bidirectional:!0},seeking:{valid_elements:["audio","video"],omit_in_ssr:!0},ended:{valid_elements:["audio","video"],omit_in_ssr:!0},readyState:{valid_elements:["audio","video"],omit_in_ssr:!0},videoHeight:{valid_elements:["video"],event:"resize",omit_in_ssr:!0},videoWidth:{valid_elements:["video"],event:"resize",omit_in_ssr:!0},naturalWidth:{valid_elements:["img"],event:"load",omit_in_ssr:!0},naturalHeight:{valid_elements:["img"],event:"load",omit_in_ssr:!0},activeElement:{valid_elements:["svelte:document"],omit_in_ssr:!0},fullscreenElement:{valid_elements:["svelte:document"],event:"fullscreenchange",omit_in_ssr:!0},pointerLockElement:{valid_elements:["svelte:document"],event:"pointerlockchange",omit_in_ssr:!0},visibilityState:{valid_elements:["svelte:document"],event:"visibilitychange",omit_in_ssr:!0},innerWidth:{valid_elements:["svelte:window"],omit_in_ssr:!0},innerHeight:{valid_elements:["svelte:window"],omit_in_ssr:!0},outerWidth:{valid_elements:["svelte:window"],omit_in_ssr:!0},outerHeight:{valid_elements:["svelte:window"],omit_in_ssr:!0},scrollX:{valid_elements:["svelte:window"],omit_in_ssr:!0,bidirectional:!0},scrollY:{valid_elements:["svelte:window"],omit_in_ssr:!0,bidirectional:!0},online:{valid_elements:["svelte:window"],omit_in_ssr:!0},devicePixelRatio:{valid_elements:["svelte:window"],event:"resize",omit_in_ssr:!0},clientWidth:{omit_in_ssr:!0,invalid_elements:["svelte:window","svelte:document"]},clientHeight:{omit_in_ssr:!0,invalid_elements:["svelte:window","svelte:document"]},offsetWidth:{omit_in_ssr:!0,invalid_elements:["svelte:window","svelte:document"]},offsetHeight:{omit_in_ssr:!0,invalid_elements:["svelte:window","svelte:document"]},contentRect:{omit_in_ssr:!0,invalid_elements:["svelte:window","svelte:document"]},contentBoxSize:{omit_in_ssr:!0,invalid_elements:["svelte:window","svelte:document"]},borderBoxSize:{omit_in_ssr:!0,invalid_elements:["svelte:window","svelte:document"]},devicePixelContentBoxSize:{omit_in_ssr:!0,invalid_elements:["svelte:window","svelte:document"]},indeterminate:{event:"change",bidirectional:!0,valid_elements:["input"],omit_in_ssr:!0},checked:{valid_elements:["input"],bidirectional:!0},group:{valid_elements:["input"],bidirectional:!0},this:{omit_in_ssr:!0},innerText:{invalid_elements:["svelte:window","svelte:document"],bidirectional:!0},innerHTML:{invalid_elements:["svelte:window","svelte:document"],bidirectional:!0},textContent:{invalid_elements:["svelte:window","svelte:document"],bidirectional:!0},open:{event:"toggle",bidirectional:!0,valid_elements:["details"]},value:{valid_elements:["input","textarea","select"],bidirectional:!0},files:{valid_elements:["input"],omit_in_ssr:!0,bidirectional:!0}};function LM(q,Z){let Q=Z.path.at(-1);if(Q?.type==="RegularElement"||Q?.type==="SvelteElement"||Q?.type==="SvelteWindow"||Q?.type==="SvelteDocument"||Q?.type==="SvelteBody")if(q.name in u9){let X=u9[q.name];if(X.valid_elements&&!X.valid_elements.includes(Q.name))F2(q,q.name,X.valid_elements.map((G)=>`\`<${G}>\``).join(", "));if(X.invalid_elements&&X.invalid_elements.includes(Q.name)){let G=Object.entries(u9).filter(([W,R])=>{return R.valid_elements?.includes(Q.name)||!R.valid_elements&&!R.invalid_elements?.includes(Q.name)}).map(([W])=>W).sort();e4(q,q.name,`Possible bindings for <${Q.name}> are ${G.join(", ")}`)}if(Q.name==="input"&&q.name!=="this"){let G=Q.attributes.find((W)=>W.type==="Attribute"&&W.name==="type");if(G&&!d8(G)){if(q.name!=="value"||G.value===!0)cR(G)}else{if(q.name==="checked"&&G?.value[0].data!=="checkbox")F2(q,q.name,`\`<input type="checkbox">\`${G?.value[0].data==="radio"?' — for `<input type="radio">`, use `bind:group`':""}`);if(q.name==="files"&&G?.value[0].data!=="file")F2(q,q.name,'`<input type="file">`')}}if(Q.name==="select"&&q.name!=="this"){let G=Q.attributes.find((W)=>W.type==="Attribute"&&W.name==="multiple"&&!d8(W)&&W.value!==!0);if(G)mR(G)}if(q.name==="offsetWidth"&&e7(Q.name))F2(q,q.name,"non-`<svg>` elements. Use `bind:clientWidth` for `<svg>` instead");if(n7(q.name)){let G=Q.attributes.find((W)=>W.type==="Attribute"&&W.name==="contenteditable");if(!G)_R(q);else if(!d8(G)&&G.value!==!0)yR(G)}}else{let X=w6(q.name,Object.keys(u9));if(X){let G=u9[X];if(!G.valid_elements||G.valid_elements.includes(Q.name))e4(q,q.name,`Did you mean '${X}'?`)}e4(q,q.name)}if(q.expression.type==="SequenceExpression"){if(q.name==="group")iR(q);let X=q.expression.start,G=q.expression.leadingComments?.at(0)?.start,W=q.expression.leadingComments?.at(-1)?.end;while(Z.state.analysis.source[--X]!=="{")if(Z.state.analysis.source[X]==="("&&!(G&&W&&X<=W&&X>=G))sR(q,q.name);if(q.expression.expressions.length!==2)oY(q);k8(Z.path);let[R,B]=q.expression.expressions;if(Z.visit(R.type==="ArrowFunctionExpression"?R.body:R,{...Z.state,expression:q.metadata.expression}),Z.visit(B.type==="ArrowFunctionExpression"?B.body:B,{...Z.state,expression:q.metadata.expression}),q.metadata.expression.has_await)G9(q);return}L5(q,q.expression,Z);let Y=q.expression,J=f0(Y);if(J===null)oY(q);let H=Z.state.scope.get(J.name);if(q.metadata.binding=H,Y.type==="Identifier"){if(q.name!=="this"&&(!H||H.kind!=="state"&&H.kind!=="raw_state"&&H.kind!=="prop"&&H.kind!=="bindable_prop"&&H.kind!=="each"&&H.kind!=="store_sub"&&!H.updated))aR(q.expression)}if(q.name==="group"){if(!H)throw Error("Cannot find declaration for bind:group");if(H.kind==="snippet")dR(q);let X=[],[G,W]=z3(q.expression),R=W,B=Z.path.length;while(B--){let $=Z.path[B];if($.type==="EachBlock"){let O=R.filter((w)=>$.metadata.declarations.has(w.name));if(O.length>0)$.metadata.contains_group_binding=!0,X.push($),R=R.filter((w)=>!O.includes(w)),R.push(...z3($.expression)[1])}}let M=W.map(($)=>Z.state.scope.get($.name)),V;q:for(let[[$,O],w]of Z.state.analysis.binding_groups){if(O.length!==M.length||$!==G)continue;for(let I=0;I<M.length;I++)if(M[I]!==O[I])continue q;V=w}if(!V)V=Z.state.scope.root.unique("binding_group"),Z.state.analysis.binding_groups.set([G,M],V);q.metadata={binding_group_name:V,parent_each_blocks:X,expression:q.metadata.expression}}if(H?.kind==="each"&&H.metadata?.inside_rest)T$(H.node,H.node.name);if(Z.next({...Z.state,expression:q.metadata.expression}),q.metadata.expression.has_await)G9(q)}function OM(q,Z){let Q=e9(Z.path,-1),Y=s8(q,Z.state.scope);if(Y&&Y!=="$inspect"){for(let J of q.arguments)if(J.type==="SpreadElement")MR(q,Y)}switch(Y){case null:if(!u2(q.callee,Z.state.scope))Z.state.analysis.needs_context=!0;break;case"$bindable":if(q.arguments.length>1)X9(q,"$bindable","zero or one arguments");if(Q.type!=="AssignmentPattern"||Z.path.at(-3)?.type!=="ObjectPattern"||Z.path.at(-4)?.type!=="VariableDeclarator"||s8(Z.path.at(-4).init,Z.state.scope)!=="$props")cU(q);Z.state.analysis.needs_context=!0;break;case"$host":if(q.arguments.length>0)E2(q,"$host");else if(Z.state.ast_type==="module"||!Z.state.analysis.custom_element)eU(q);break;case"$props":if(Z.state.has_props_rune)pY(q,Y);if(Z.state.has_props_rune=!0,Q.type!=="VariableDeclarator"||Z.state.ast_type!=="instance"||Z.state.scope!==Z.state.analysis.instance.scope)UR(q);if(q.arguments.length>0)E2(q,Y);break;case"$props.id":{let J=e9(Z.path,-2);if(Z.state.analysis.props_id)pY(q,Y);if(Q.type!=="VariableDeclarator"||Q.id.type!=="Identifier"||Z.state.ast_type!=="instance"||Z.state.scope!==Z.state.analysis.instance.scope||J.type!=="VariableDeclaration")WR(q);if(q.arguments.length>0)E2(q,Y);Z.state.analysis.props_id=Q.id;break}case"$state":case"$state.raw":case"$derived":case"$derived.by":{if(!(Fs(Q,Z)||Ts(Q)||fs(Q,Z)))o4(q,Y);if((Y==="$derived"||Y==="$derived.by")&&q.arguments.length!==1)X9(q,Y,"exactly one argument");else if(q.arguments.length>1)X9(q,Y,"zero or one arguments");break}case"$effect":case"$effect.pre":if(Q.type!=="ExpressionStatement")oU(q);if(q.arguments.length!==1)X9(q,Y,"exactly one argument");Z.state.analysis.needs_context=!0;break;case"$effect.tracking":if(q.arguments.length!==0)E2(q,Y);break;case"$effect.root":if(q.arguments.length!==1)X9(q,Y,"exactly one argument");break;case"$effect.pending":if(Z.state.expression)Z.state.expression.has_state=!0;break;case"$inspect":if(q.arguments.length<1)X9(q,Y,"one or more arguments");break;case"$inspect().with":if(q.arguments.length!==1)X9(q,Y,"exactly one argument");break;case"$inspect.trace":{if(q.arguments.length>1)X9(q,Y,"zero or one arguments");let J=Z.path.at(-2),H=Z.path.at(-3);if(Q.type!=="ExpressionStatement"||J?.type!=="BlockStatement"||!(H?.type==="FunctionDeclaration"||H?.type==="FunctionExpression"||H?.type==="ArrowFunctionExpression")||J.body[0]!==Q)QR(q);if(H.generator)ZR(q);if(Q8){if(q.arguments[0])Z.state.scope.tracing=i(q.arguments[0]);else{let X=Es(Z.path.slice(0,-2))??"trace",G=`(${X7(H)})`;Z.state.scope.tracing=i(g(X+" "+G))}Z.state.analysis.tracing=!0}break}case"$state.eager":if(q.arguments.length!==1)X9(q,Y,"exactly one argument");break;case"$state.snapshot":if(q.arguments.length!==1)X9(q,Y,"exactly one argument");break}if(Y==="$derived"){let J=new n8;if(Z.next({...Z.state,function_depth:Z.state.function_depth+1,derived_function_depth:Z.state.function_depth+1,expression:J}),J.has_await)Z.state.analysis.async_deriveds.add(q);if(Z.state.in_declaration_tag)Z.state.expression?.merge(J)}else if(Y==="$inspect")Z.next({...Z.state,function_depth:Z.state.function_depth+1});else Z.next();if(Z.state.expression){if(!Q6(q.callee,Z)||Z.state.expression.dependencies.size>0)Z.state.expression.has_call=!0,Z.state.expression.has_state=!0}}function Es(q){let Z=q.at(-1);if((Z.type==="FunctionDeclaration"||Z.type==="FunctionExpression")&&Z.id!=null)return Z.id.name;let Q=q.at(-2);if(!Q)return;if(Q.type==="CallExpression")return q5.slice(Q.callee.start,Q.callee.end)+"(...)";if(Q.type==="Property"&&!Q.computed)return Q.key.name;if(Q.type==="VariableDeclarator"&&Q.id.type==="Identifier")return Q.id.name}function Fs(q,Z){return q.type==="VariableDeclarator"&&e9(Z.path,-3).type!=="ConstTag"}function Ts(q){return q.type==="PropertyDefinition"&&!q.static&&!q.computed}function fs(q,Z){if(q.type==="AssignmentExpression"&&q.operator==="="&&q.left.type==="MemberExpression"&&q.left.object.type==="ThisExpression"&&(q.left.property.type==="Identifier"&&!q.left.computed||q.left.property.type==="PrivateIdentifier"||q.left.property.type==="Literal")){let Q=e9(Z.path,-5);return Q?.type==="MethodDefinition"&&Q.kind==="constructor"}return!1}function wM(q,Z){if(!Z.state.analysis.runes){Z.next();return}let Q=[];for(let G of q.body)if((G.type==="MethodDefinition"||G.type==="PropertyDefinition")&&G.key.type==="PrivateIdentifier")Q.push(G.key.name);let Y=new Map,J=new Map;Z.state.analysis.classes.set(q,Y);let H=null;function X(G,W,R){let B=H1(W);if(B===null)return;let M=s8(R,Z.state.scope);if(M&&RW(M)){if(Y.has(B))IR(G,B);let V=(G.type==="AssignmentExpression"||!G.static?"":"@")+B,$=J.get(V);if($&&!($.length===1&&$[0]==="prop"))C2(G,V);Y.set(B,{node:G,type:M,key:W.type==="PrivateIdentifier"?W:null,value:R})}}for(let G of q.body){if(G.type==="PropertyDefinition"&&!G.computed&&!G.static){X(G,G.key,G.value);let W=H1(G.key);if(!J.get(W)){J.set(W,[G.value?"assigned_prop":"prop"]);continue}C2(G,W)}if(G.type==="MethodDefinition"){if(G.kind==="constructor")H=G;else if(!G.computed){let W=(G.static?"@":"")+H1(G.key),R=J.get(W);if(!R){J.set(W,[G.kind]);continue}if(R.includes(G.kind)||R.includes("prop")||R.includes("assigned_prop"))C2(G,W);if(G.kind==="get"){if(R.length===1&&R[0]==="set"){R.push("get");continue}}else if(G.kind==="set"){if(R.length===1&&R[0]==="get"){R.push("set");continue}}else{R.push(G.kind);continue}C2(G,W)}}}if(H)for(let G of H.value.body.body){if(G.type!=="ExpressionStatement")continue;if(G.expression.type!=="AssignmentExpression")continue;let{left:W,right:R}=G.expression;if(W.type!=="MemberExpression")continue;if(W.object.type!=="ThisExpression")continue;if(W.computed&&W.property.type!=="Literal")continue;X(G.expression,W.property,R)}for(let[G,W]of Y){if(G[0]==="#")continue;let R=G.replace(NV,"_");while(Q.includes(R))R="_"+R;Q.push(R),W.key=MB(R)}Z.next({...Z.state,state_fields:Y})}function AM(q,Z){if(Z.state.analysis.runes&&q.id!==null)u6(Z.state.scope.get(q.id.name));let Q=Z.state.ast_type==="module"?0:1;if(Z.state.scope.function_depth>Q)P$(q);Z.next()}function jM(q,Z){k8(Z.path),Z.next({...Z.state,expression:q.metadata.expression})}function E3(q){if(q.name.includes(":")&&!q.name.startsWith("xmlns:")&&!q.name.startsWith("xlink:")&&!q.name.startsWith("xml:"))C$(q)}function F3(q,Z){if(Array.isArray(q.value)&&q.value.length===1&&q.value[0].type==="ExpressionTag"&&(Z.type==="Component"||Z.type==="SvelteComponent"||Z.type==="SvelteSelf"||Z.type==="RegularElement"&&K1(Z)))F$(q);if(q.value===!0||!Array.isArray(q.value)||q.value.length===1)return;if(q.value.at(-1)?.end===q.end)rR(q)}function j5(q,Z,Q=!1){let Y=q.path.at(-2),J=void 0;if(Y?.type==="SnippetBlock"){if(!d8(Z))YJ(Z);return}let H=q.path.length;while(H--){let X=q.path[H];if(!J&&(X.type==="Component"||X.type==="SvelteComponent"||X.type==="SvelteSelf"||X.type==="SvelteElement"||X.type==="RegularElement"&&K1(X)))J=X}if(J){if(J.type==="Component"||J.type==="SvelteComponent"||J.type==="SvelteSelf")if(J!==Y){if(!Q)JJ(Z)}else{if(!d8(Z))YJ(Z);let X=Z.value[0].data;if(q.state.component_slots.has(X))Tz(Z,X,J.name);if(q.state.component_slots.add(X),X==="default")for(let G of J.fragment.nodes){if(G.type==="Text"&&vV.test(G.data))continue;if(G.type==="RegularElement"||G.type==="SvelteFragment"){if(G.attributes.some((W)=>W.type==="Attribute"&&W.name==="slot"))continue}fz(G)}}}else if(!Q)JJ(Z)}function T3(q){return!q||q.declaration_kind==="import"||q.kind==="prop"||q.kind==="rest_prop"||q.kind==="bindable_prop"||q?.initial?.type==="SnippetBlock"}function I5(q,Z){q.metadata.path=[...Z.path],q.metadata.snippets=new Set;let Q=!0;for(let G of q.attributes){if(G.type==="SpreadAttribute"||G.type==="BindDirective"){Q=!1;continue}if(G.type!=="Attribute"||!t9(G))continue;let W=U9(G);if(W.type==="Identifier"){let R=Z.state.scope.get(W.name);if(Q&&=T3(R),R?.initial?.type==="SnippetBlock")q.metadata.snippets.add(R.initial)}else if(W.type!=="Literal")Q=!1}if(Q){for(let G of q.fragment.nodes)if(G.type==="SnippetBlock")q.metadata.snippets.add(G)}Z.state.analysis.snippet_renderers.set(q,Q),k8(Z.path);for(let G of q.attributes){if(G.type!=="Attribute"&&G.type!=="SpreadAttribute"&&G.type!=="LetDirective"&&G.type!=="OnDirective"&&G.type!=="BindDirective"&&G.type!=="AttachTag")qz(G);if(G.type==="OnDirective"&&(G.modifiers.length>1||G.modifiers.some((W)=>W!=="once")))Rz(G);if(G.type==="Attribute"){if(Z.state.analysis.runes){if(F3(G,q),t9(G))IM(U9(G),Z.state.analysis.source)}if(E3(G),G.name==="slot")j5(Z,G,!0)}if(G.type==="BindDirective"&&G.name!=="this")Z.state.analysis.uses_component_bindings=!0;if(G.type==="AttachTag")IM(G.expression,Z.state.analysis.source)}let Y=Z6(q)?Z.state:{...Z.state,scope:q.metadata.scopes.default};for(let G of q.attributes)Z.visit(G,G.type==="LetDirective"?Y:Z.state);let J=[],H={default:[]};for(let G of q.fragment.nodes){if(G.type==="Comment"){J.push(G);continue}let W=Z6(G)??"default";if((H[W]??=[]).push(...J,G),W!=="default")J=[]}let X=new Set;for(let G in H){let W={...Z.state,scope:q.metadata.scopes[G],parent_element:null,component_slots:X};Z.visit({...q.fragment,nodes:H[G]},W)}}function IM(q,Z){if(q.type==="SequenceExpression"){let Q=q.start;while(--Q>0){let Y=Z[Q];if(Y==="(")break;if(Y==="{")t4(q)}}}function DM(q,Z){let Q=Z.state.scope.get(q.name.includes(".")?q.name.slice(0,q.name.indexOf(".")):q.name);if(q.metadata.dynamic=Z.state.analysis.runes&&Q!==null&&(Q.kind!=="normal"||q.name.includes(".")),Q)q.metadata.expression.has_state=q.metadata.dynamic,q.metadata.expression.dependencies.add(Q),q.metadata.expression.references.add(Q);I5(q,Z)}function CM(q,Z){if(!Z.state.analysis.runes&&!Z.state.analysis.maybe_runes)Xz(q);if(Z.path.length===1&&Z.path[0].type==="Fragment"){let Y=q.declaration.declarations.flatMap((J)=>r8(J.id)).find((J)=>Z.state.analysis.instance.scope.declarations.has(J.name));if(Y)W5(Y,Y.name)}Z.visit(q.declaration,{...Z.state,in_declaration_tag:!0,function_depth:Z.state.scope.function_depth,expression:q.metadata.expression}),_J(Z,q.metadata,q.declaration.declarations)}function _J(q,Z,Q){let Y=Z.expression.has_await,J=[...Z.expression.dependencies].map((H)=>H.blocker).filter((H)=>H!==null&&H.object!==q.state.async_consts?.id);if(Y||q.state.async_consts||J.length>0){let H=q.state.async_consts??={id:q.state.analysis.root.unique("promises"),declaration_count:0};Z.promises_id=H.id;let X=Q.flatMap((R)=>q.state.scope.get_bindings(R)),G=H.declaration_count+(J.length>0?1:0);H.declaration_count+=J.length>0?2:1;let W=U8(H.id,g(G),!0);for(let R of X)R.blocker=W}}function EM(q,Z){if(Z.state.analysis.runes)a0(q,Z.state,"@");let Q=Z.path.at(-1),Y=Z.path.at(-2);if(Q?.type!=="Fragment"||Y?.type!=="IfBlock"&&Y?.type!=="SvelteFragment"&&Y?.type!=="Component"&&Y?.type!=="SvelteComponent"&&Y?.type!=="EachBlock"&&Y?.type!=="AwaitBlock"&&Y?.type!=="SnippetBlock"&&Y?.type!=="SvelteBoundary"&&Y?.type!=="KeyBlock"&&(Y?.type!=="RegularElement"&&Y?.type!=="SvelteElement"||!Y.attributes.some((H)=>H.type==="Attribute"&&H.name==="slot")))Yz(q);let J=q.declaration.declarations[0];Z.visit(J.id),Z.visit(J.init,{...Z.state,expression:q.metadata.expression,function_depth:Z.state.function_depth+1,derived_function_depth:Z.state.function_depth+1}),_J(Z,q.metadata,[J])}function FM(q,Z){if(Z.state.analysis.runes)a0(q,Z.state,"@");Z.next()}function TM(q,Z){a0(q,Z.state,"#"),j1(q.body,Z),j1(q.fallback,Z);let Q=q.context;if(Q?.type==="Identifier"&&(Q.name==="$state"||Q.name==="$derived"))o4(q,Q.name);if(q.key)q.metadata.keyed=q.key.type!=="Identifier"||!q.index||q.key.name!==q.index;if(q.metadata.keyed&&!q.context)Wz(q.key);if(Z.visit(q.expression,{...Z.state,expression:q.metadata.expression,scope:Z.state.scope.parent}),Z.visit(q.body),q.key)Z.visit(q.key);if(q.fallback)Z.visit(q.fallback);if(!Z.state.analysis.runes){let Y=!!q.context&&r8(q.context).some((J)=>{return!!Z.state.scope.get(J.name)?.mutated});for(let J of q.metadata.expression.dependencies)if(J.declaration_kind!=="function")fM(J,q.metadata.transitive_deps);if(Y){for(let J of q.metadata.transitive_deps)if(J.kind==="normal"&&(J.declaration_kind==="const"||J.declaration_kind==="let"||J.declaration_kind==="var"))J.kind="state"}}k8(Z.path)}function fM(q,Z){if(Z.has(q))return;if(Z.add(q),q.kind==="legacy_reactive")for(let Q of q.legacy_dependencies)fM(Q,Z)}function KM(q,Z){if(!Z.state.ast_type){if(q.declaration.type==="Identifier")A3(q,Z.state.scope,q.declaration.name)}else i4(q);Z.next()}function vM(q,Z){if(Z.next(),Z.state.ast_type&&q.specifiers.some((Q)=>Q.exported.type==="Identifier"?Q.exported.name==="default":Q.exported.value==="default"))i4(q);if(q.declaration?.type==="VariableDeclaration"){if(Z.state.analysis.runes&&Z.state.ast_type==="instance"&&q.declaration.kind==="let")HR(q);for(let Q of q.declaration.declarations)for(let Y of r8(Q.id)){let J=Z.state.scope.get(Y.name);if(!J)continue;if(J.kind==="derived")r4(q);if((J.kind==="state"||J.kind==="raw_state")&&J.reassigned)a4(q)}}if(Z.state.analysis.runes){if(q.declaration&&Z.state.ast_type==="instance"){if(q.declaration.type==="FunctionDeclaration"||q.declaration.type==="ClassDeclaration")Z.state.analysis.exports.push({name:q.declaration.id.name,alias:null});else if(q.declaration.kind==="const")for(let Q of q.declaration.declarations)for(let Y of r8(Q.id))Z.state.analysis.exports.push({name:Y.name,alias:null})}}}function NM(q,Z){let Q=q.local.type==="Identifier"?q.local.name:q.local.value,Y=q.exported.type==="Identifier"?q.exported.name:q.exported.value;if(Z.state.ast_type==="instance"){if(Z.state.analysis.runes){Z.state.analysis.exports.push({name:Q,alias:Y});let J=Z.state.scope.get(Q);if(J)J.reassigned=!0}}else A3(q,Z.state.scope,Q)}function kM(q,Z){if(q.expression.type==="NewExpression"&&q.expression.callee.type==="Identifier"&&q.expression.arguments.length===1&&q.expression.arguments[0].type==="ObjectExpression"&&q.expression.arguments[0].properties.some((Q)=>Q.type==="Property"&&Q.key.type==="Identifier"&&Q.key.name==="target")){let Q=Z.state.scope.get(q.expression.callee.name);if(Q?.kind==="normal"&&Q.declaration_kind==="import"){let Y=Q.initial;if(Y.source.value.endsWith(".svelte")&&Y.specifiers.find((J)=>J.local.name===Q.node.name&&J.type==="ImportDefaultSpecifier"))B$(q.expression)}}Z.next()}function SM(q,Z){if(Z.path.at(-1)?.type==="Fragment"&&Z.state.parent_element){let Y=P5("#text",Z.state.parent_element);if(Y)R7(q,Y)}k8(Z.path),Z.next({...Z.state,expression:q.metadata.expression})}function uM(q,Z){Z.next({...Z.state,fragment:q,async_consts:void 0})}function bM(q,Z){if(Z.state.analysis.runes&&q.id!==null)u6(Z.state.scope.get(q.id.name));A5(q,Z)}function hM(q,Z){A5(q,Z)}function yM(q,Z){if(Z.state.analysis.runes)a0(q,Z.state,"@");k8(Z.path),Z.next({...Z.state,expression:q.metadata.expression})}function m2(q,Z){return(q.kind==="state"||q.kind==="raw_state")&&(!Z.immutable||q.reassigned||Z.accessors)}function X1(q,Z){if(Object.hasOwn(Z.transform,q.name)){let Q=Z.scope.get(q.name);if(q!==Q?.node)return Z.transform[q.name].read(q)}return q}function f3(q,Z,Q,Y){let J=[F("$$props"),g(Q)],H=0;if(q.kind==="bindable_prop")H|=pV;if(Z.analysis.immutable)H|=lV;if(Z.analysis.runes)H|=xV;if(Z.analysis.accessors||(Z.analysis.immutable?q.reassigned||Z.analysis.runes&&q.mutated:q.updated))H|=mV;let X;if(Y)if(n9(Y))X=Y;else{if(Y.type==="CallExpression"&&Y.callee.type==="Identifier"&&Y.arguments.length===0)X=Y.callee;else X=i(Y);H|=cV}if(H||X){if(J.push(g(H)),X)J.push(X)}return j("$.prop",...J)}function K3(q,Z){return(q.kind==="prop"||q.kind==="bindable_prop")&&(!Z.analysis.runes||Z.analysis.accessors||q.reassigned||q.initial||q.updated)}function M9(q,Z){if(!q||q.type==="Literal"||q.type==="TemplateLiteral"||q.type==="ArrowFunctionExpression"||q.type==="FunctionExpression"||q.type==="UnaryExpression"||q.type==="BinaryExpression"||q.type==="Identifier"&&q.name==="undefined")return!1;if(q.type==="Identifier"&&Z!==null){let Q=Z.get(q.name);if(Q!==null&&!Q.reassigned&&Q.initial!==null&&Q.initial.type!=="FunctionDeclaration"&&Q.initial.type!=="ClassDeclaration"&&Q.initial.type!=="ImportDeclaration"&&Q.initial.type!=="EachBlock"&&Q.initial.type!=="SnippetBlock")return M9(Q.initial,null)}return!0}function y6(q,Z,Q=!1){let Y=i(Z,Q);if(Q)return N9(j("$.async_derived",Y));else return j(q.analysis.runes?"$.derived":"$.derived_safe_equal",Y)}function v3(q,Z){let Q={...Z.transform};for(let[Y,J]of q.declarations)if(J.kind==="normal"||J.kind==="state"&&!m2(J,Z.analysis))delete Q[Y];return Q}function _M(q,Z){let Q=Z.path.length,Y=Z.path[--Q];if(!s0(q,Y))return;if(k8(Z.path),q.name==="arguments"&&!Z.path.some((H)=>H.type==="FunctionDeclaration"||H.type==="FunctionExpression"))YR(q);if(q.name==="$$slots")Z.state.analysis.uses_slots=!0;if(Z.state.analysis.runes){if(E9(q.name)&&Z.state.scope.get(q.name)===null&&Z.state.scope.get(q.name.slice(1))?.kind!=="store_sub"){let H=q,X=q.name;while(Y.type==="MemberExpression"){if(Y.computed)zR(Y);if(X+=`.${Y.property.name}`,H=Y,Y=Z.path[--Q],!E9(X)){if(X==="$effect.active")rY(Y,"$effect.active","$effect.tracking");if(X==="$state.frozen")rY(Y,"$state.frozen","$state.raw");if(X==="$state.is")OR(Y,"$state.is");BR(Y,X)}}if(Y.type!=="CallExpression")LR(H)}}let J=Z.state.scope.get(q.name);if(!Z.state.analysis.runes){if(q.name==="$$props")Z.state.analysis.uses_props=!0;if(q.name==="$$restProps")Z.state.analysis.uses_rest_props=!0}if(J){if(Z.state.expression)Z.state.expression.dependencies.add(J),Z.state.expression.references.add(J),Z.state.expression.has_state||=J.kind!=="static"&&(J.kind==="prop"||J.kind==="bindable_prop"||J.kind==="rest_prop"||!J.is_function())&&!Z.state.scope.evaluate(q).is_known;if(Z.state.analysis.runes&&q!==J.node&&Z.state.function_depth===J.scope.function_depth&&(J.kind==="state"&&(J.reassigned||J.initial?.type==="CallExpression"&&J.initial.arguments.length===1&&J.initial.arguments[0].type!=="SpreadElement"&&!M9(J.initial.arguments[0],Z.state.scope))||J.kind==="raw_state"||J.kind==="derived"||J.kind==="prop"||J.kind==="rest_prop")&&(Y.type!=="AssignmentExpression"||Y.left!==q)&&Y.type!=="UpdateExpression"){let H="closure",X=Z.path.length;while(X--){let G=Z.path[X];if(G.type==="ArrowFunctionExpression"||G.type==="FunctionDeclaration"||G.type==="FunctionExpression")break;if(G.type==="CallExpression"&&G.arguments.includes(Z.path[X+1])){let W=s8(G,Z.state.scope);if(W==="$state"||W==="$state.raw"){H="derived";break}}}w$(q,q.name,H)}if(Z.state.reactive_statement&&J.scope===Z.state.analysis.module.scope&&J.reassigned)O$(q);if(J.metadata?.is_template_declaration&&Z.state.options.experimental.async){let H;for(let X=Z.path.length-1;X>=0;X--){let G=Z.path[X],W=Z.path[X-1];if(G.type==="SnippetBlock")H=G.expression.name;else if(H&&W&&G.type==="Fragment"&&(wJ(W)||W.type==="SvelteBoundary"&&(H==="failed"||H==="pending")))if(wJ(W)?W.metadata.scopes.default===J.scope:Z.state.scopes.get(G)===J.scope)Jz(q,q.name);else break}}}}function gM(q,Z){if(j1(q.consequent,Z),j1(q.alternate,Z),Z.state.analysis.runes)a0(q,Z.state,q.elseif?":":"#");if(k8(Z.path),Z.visit(q.test,{...Z.state,expression:q.metadata.expression}),Z.visit(q.consequent),q.alternate)Z.visit(q.alternate);let Q=q.alternate;if(Q&&Q.nodes.length===1&&Q.nodes[0].type==="IfBlock"&&Q.nodes[0].elseif){let Y=Q.nodes[0];if(!Y.metadata.expression.has_await&&!Y.metadata.expression.has_more_blockers_than(q.metadata.expression))q.metadata.flattened=[Y,...Y.metadata.flattened??[]],Y.metadata.flattened=void 0}}function lM(q,Z){if(Z.state.analysis.runes){let Q=q.source.value;if(Q.startsWith("svelte/internal"))qR(q);if(Q==="svelte"){for(let Y of q.specifiers)if(Y.type==="ImportSpecifier"){if(Y.imported.type==="Identifier"&&(Y.imported.name==="beforeUpdate"||Y.imported.name==="afterUpdate"))wR(Y,Y.imported.name)}}}}function xM(q,Z){if(j1(q.fragment,Z),Z.state.analysis.runes)a0(q,Z.state,"#");k8(Z.path),Z.visit(q.expression,{...Z.state,expression:q.metadata.expression}),Z.visit(q.fragment)}function mM(q,Z){if(q.label.name==="$"){let Q=Z.path.at(-1);if(Z.state.ast_type==="instance"&&Q.type==="Program"){if(Z.state.analysis.runes)GR(q);let J={assignments:new Set,dependencies:[]};Z.next({...Z.state,reactive_statement:J,function_depth:Z.state.scope.function_depth+1});for(let[H,X]of Z.state.scope.references){let G=Z.state.scope.get(H);if(G===null)continue;for(let{node:W,path:R}of X){let B=W,M=R.length-1,V=R.at(M);while(V.type==="MemberExpression")B=V,V=R.at(--M);if(V.type==="AssignmentExpression"&&V.operator==="="&&V.left===B)continue;J.dependencies.push(G);break}}if(Z.state.analysis.reactive_statements.set(q,J),q.body.type==="ExpressionStatement"&&q.body.expression.type==="AssignmentExpression"){let H=r8(q.body.expression.left);if(q.body.expression.left.type==="MemberExpression"){let X=f0(q.body.expression.left);if(X!==null)H=[X]}for(let X of H){let G=Z.state.scope.get(X.name);if(G?.kind==="legacy_reactive")G.legacy_dependencies=Array.from(J.dependencies)}}}else if(!Z.state.analysis.runes)L$(q)}Z.next()}function pM(q,Z){let Q=Z.path.at(-1);if(Q===void 0||Q.type!=="Component"&&Q.type!=="RegularElement"&&Q.type!=="SlotElement"&&Q.type!=="SvelteElement"&&Q.type!=="SvelteComponent"&&Q.type!=="SvelteSelf"&&Q.type!=="SvelteFragment")Az(q)}function cM(q){if(typeof q.value==="string"){if(H7.test(q.value))J5(q)}}function rM(q,Z){if(q.object.type==="Identifier"&&q.property.type==="Identifier"){if(Z.state.scope.get(q.object.name)?.kind==="rest_prop"&&q.property.name.startsWith("$$"))d4(q.property)}if(Z.state.expression)Z.state.expression.has_member_expression=!0,Z.state.expression.has_state||=!Q6(q,Z);if(!u2(q,Z.state.scope))Z.state.analysis.needs_context=!0;Z.next()}function iM(q,Z){if(q.callee.type==="ClassExpression"&&Z.state.scope.function_depth>0)M$(q);Z.state.analysis.needs_context=!0,Z.next()}function dM(q,Z){if(Z.state.analysis.runes){let Y=Z.path.at(-1)?.type;if(Y==="RegularElement"||Y==="SvelteElement")N$(q,q.name)}let Q=Z.path.at(-1);if(Q?.type==="SvelteElement"||Q?.type==="RegularElement")Z.state.analysis.event_directive_node??=q;k8(Z.path),Z.next({...Z.state,expression:q.metadata.expression})}function sM(q,Z){let Q=H1(q.key),Y=Q&&Z.state.state_fields.get(Q);if(Y&&q!==Y.node&&q.value){if(q.start<Y.node.start)s4(q)}Z.next()}var T5=d7(nJ(),1),I7=d7(GH(),1),VH="activedescendant atomic autocomplete busy checked colcount colindex colspan controls current describedby description details disabled dropeffect errormessage expanded flowto grabbed haspopup hidden invalid keyshortcuts label labelledby level live modal multiline multiselectable orientation owns placeholder posinset pressed readonly relevant required roledescription rowcount rowindex rowspan selected setsize sort valuemax valuemin valuenow valuetext".split(" "),oN={a:["href"],area:["alt","aria-label","aria-labelledby"],html:["lang"],iframe:["title"],img:["alt"],object:["title","aria-label","aria-labelledby"]},nN=["blink","marquee"],tN=["h1","h2","h3","h4","h5","h6"],eN=["button","input","keygen","meter","output","progress","select","textarea"],WH=["keypress","keydown","keyup","click","contextmenu","dblclick","drag","dragend","dragenter","dragexit","dragleave","dragover","dragstart","drop","mousedown","mouseenter","mouseleave","mousemove","mouseout","mouseover","mouseup","pointerdown","pointerup","pointermove","pointerenter","pointerleave","pointerover","pointerout","pointercancel","touchstart","touchend","touchmove","touchcancel"],qk=["click","mousedown","mouseup","keypress","keydown","keyup"],$H=new Map([["header","banner"],["footer","contentinfo"]]),Zk=new Map([["a","link"],["area","link"],["article","article"],["aside","complementary"],["body","document"],["button","button"],["datalist","listbox"],["dd","definition"],["dfn","term"],["dialog","dialog"],["details","group"],["dt","term"],["fieldset","group"],["figure","figure"],["form","form"],["h1","heading"],["h2","heading"],["h3","heading"],["h4","heading"],["h5","heading"],["h6","heading"],["hr","separator"],["img","img"],["li","listitem"],["link","link"],["main","main"],["menu","list"],["meter","progressbar"],["nav","navigation"],["ol","list"],["option","option"],["optgroup","group"],["output","status"],["progress","progressbar"],["section","region"],["summary","button"],["table","table"],["tbody","rowgroup"],["textarea","textbox"],["tfoot","rowgroup"],["thead","rowgroup"],["tr","row"],["ul","list"]]),Qk=new Map([["command","menuitem"],["checkbox","menuitemcheckbox"],["radio","menuitemradio"]]),Yk=new Map([["button","button"],["image","button"],["reset","button"],["submit","button"],["checkbox","checkbox"],["radio","radio"],["range","slider"],["number","spinbutton"],["email","textbox"],["search","searchbox"],["tel","textbox"],["text","textbox"],["url","textbox"]]),Jk={ul:["listbox","menu","menubar","radiogroup","tablist","tree","treegrid"],ol:["listbox","menu","menubar","radiogroup","tablist","tree","treegrid"],menu:["listbox","menu","menubar","radiogroup","tablist","tree","treegrid"],li:["menuitem","option","row","tab","treeitem"],table:["grid"],td:["gridcell"],fieldset:["radiogroup","presentation"]},UH=["email","search","tel","text","url"],Hk=["shipping","billing"],Xk=["","on","off","name","honorific-prefix","given-name","additional-name","family-name","honorific-suffix","nickname","username","new-password","current-password","one-time-code","organization-title","organization","street-address","address-line1","address-line2","address-line3","address-level4","address-level3","address-level2","address-level1","country","country-name","postal-code","cc-name","cc-given-name","cc-additional-name","cc-family-name","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc","cc-type","transaction-currency","transaction-amount","language","bday","bday-day","bday-month","bday-year","sex","url","photo"],Gk=["home","work","mobile","fax","pager"],Vk=["tel","tel-country-code","tel-national","tel-area-code","tel-local","tel-local-prefix","tel-local-suffix","tel-extension","email","impp"],Y6={Interactive:"interactive",NonInteractive:"non-interactive",Static:"static"},RH=["meta","html","script","style"],Hq=T5.roles.keys(),zH=Hq.filter((q)=>T5.roles.get(q)?.abstract),Wk=Hq.filter((q)=>!zH.includes(q)),p3=Wk.filter((q)=>{let Z=T5.roles.get(q);return!["toolbar","tabpanel","generic","cell"].includes(q)&&!Z?.superClass.some((Q)=>Q.includes("widget")||Q.includes("window"))}).concat("progressbar"),BH=Wk.filter((q)=>!p3.includes(q)&&q!=="generic"),$k=["presentation","none"],MH=[],PH=[];for(let[q,Z]of T5.elementRoles.entries()){if([...Z].every((Q)=>Q!=="generic"&&p3.includes(Q)))MH.push(q);if([...Z].every((Q)=>BH.includes(Q)))PH.push(q)}var Dq8=[...I7.AXObjects.keys()].filter((q)=>I7.AXObjects.get(q).type==="widget"),LH=[],OH=[],Cq8=[...I7.AXObjects.keys()].filter((q)=>["windows","structure"].includes(I7.AXObjects.get(q).type));for(let[q,Z]of I7.elementAXObjects.entries()){if([...Z].every((Q)=>Dq8.includes(Q)))LH.push(q);if([...Z].every((Q)=>Cq8.includes(Q)))OH.push(q)}var D7=d7(nJ(),1),d3=d7(GH(),1);function s3(q,Z){let Q=new Map,Y=new Set,J=[],H=q.type==="SvelteElement",X=!1,G=!1,W=!1;for(let C of q.attributes)switch(C.type){case"Attribute":{if(I0(C))Y.add(C.name.slice(2));else if(J.push(C),Q.set(C.name,C),C.name==="contenteditable")G=!0;break}case"SpreadAttribute":{X=!0;break}case"BindDirective":{if(n7(C.name))W=!0;break}case"OnDirective":{Y.add(C.name);break}}let R=Fq8(q.name,Q),B=R===Y6.Interactive,M=R===Y6.NonInteractive,V=R===Y6.Static;for(let C of q.attributes){if(C.type!=="Attribute")continue;let E=C.name.toLowerCase();if(E.startsWith("aria-")){if(RH.includes(q.name))DW(C,q.name);let D=E.slice(5);if(!VH.includes(D)){let _=w6(D,VH);Y$(C,D,_)}if(E==="aria-hidden"&&SV.test(q.name))NW(C,q.name);let f=o0(C),v=D7.aria.get(E);if(v!==void 0)Nq8(C,E,v,f);if(E==="aria-activedescendant"&&!H&&!B&&!Q.has("tabindex")&&!X)IW(C)}switch(E){case"role":{if(RH.includes(q.name))pW(C,q.name);let D=o0(C);if(typeof D!=="string")break;for(let f of D.split(L4)){let v=f;if(v&&Rk(v))dW(C,v);else if(v&&!Hq.includes(v)){let b=w6(v,Hq);J$(C,v,b)}if(v===Uk(q.name,Q)&&!["ul","ol","li","menu"].includes(q.name)&&!(q.name==="a"&&!Q.has("href")))AY(C,v);if(!AH(Z.path,["section","article"])){if(v===$H.get(q.name))AY(C,v)}if(!H&&!Tq8(v,q.name,Q)){let b=D7.roles.get(v);if(b){let z=Object.keys(b.requiredProps);if(!X&&z.some((L)=>!J.find((A)=>A.name===L)))q$(C,v,w7(z.map((L)=>`"${L}"`),"and"))}}if(!X&&!Eq8(Q)&&!c3(q.name,Q)&&!Xq(v)&&r3(v)&&V&&!Q.get("tabindex")){if([...Y].some((z)=>WH.includes(z)))gW(q,v)}if(!X&&B&&(wH(v)||Xq(v)))sW(q,q.name,v);if(!X&&M&&r3(v)&&!Jk[q.name]?.includes(v))oW(q,q.name,v)}break}case"accesskey":{jW(C);break}case"autofocus":{if(q.name!=="dialog"&&!AH(Z.path,["dialog"]))EW(C);break}case"scope":{if(!H&&q.name!=="th")cW(C);break}case"tabindex":{let D=o0(C);if(!isNaN(D)&&+D>0)eW(C);break}}}let $=Q.get("role"),O=l6($);if(Y.has("click")){let C=O!==null&&!Xq(O);if(!H&&!c3(q.name,Q)&&(!$||C)&&!B&&!X){if(!(Y.has("keydown")||Y.has("keyup")||Y.has("keypress")))FW(q,q.name)}}let w=$?O:Uk(q.name,Q);if(!H&&!B&&!r3(O)){let C=Q.get("tabindex"),E=l6(C);if(C&&(E===null||Number(E)>=0))nW(q)}if(typeof w==="string"&&D7.roles.has(w)){let{props:C}=D7.roles.get(w),E=D7.aria.keys().filter((f)=>!(f in C)),D=w&&$===void 0;for(let f of J)if(E.includes(f.name))if(D)Q$(f,f.name,w,q.name);else Z$(f,f.name,w)}if(!X&&!G&&!c3(q.name,Q)&&!Xq(O)&&(!B&&wH(O)||M&&!$)){if([...Y].some((E)=>qk.includes(E)))aW(q,q.name)}if(!X&&(!$||O!==null)&&!c3(q.name,Q)&&!Xq(O)&&!B&&!r3(O)&&!M&&!wH(O)&&!Rk(O)){let C=[...Y].filter((E)=>WH.includes(E));if(C.length>0)tW(q,q.name,w7(C))}if(!X&&Y.has("mouseover")&&!Y.has("focus"))wY(q,"mouseover","focus");if(!X&&Y.has("mouseout")&&!Y.has("blur"))wY(q,"mouseout","blur");let I=Q.has("aria-label")||Q.has("aria-labelledby")||Q.has("title");switch(q.name){case"a":case"button":{let C=o0(Q.get("aria-hidden"))==="true"||o0(Q.get("inert"))!==null;if(!X&&!C&&!I&&!IH(q))TW(q);if(q.name==="button")break;let E=Q.get("href")||Q.get("xlink:href");if(E){let D=l6(E);if(D!==null){if(D===""||D==="#"||bV.test(D))lW(E,D,E.name)}}else if(!X){let D=o0(Q.get("id")),f=o0(Q.get("name")),v=o0(Q.get("aria-disabled"));if(!D&&!f&&v!=="true")jH(q,["href"])}break}case"input":{let C=Q.get("type"),E=l6(C);if(E==="image"&&!X){let f=["alt","aria-label","aria-labelledby"];if(!f.some((_)=>Q.has(_)))jH(q,f,'input type="image"')}let D=Q.get("autocomplete");if(C&&D){let f=o0(D);if(!fq8(f))CW(D,f,E??"...")}break}case"img":{let C=l6(Q.get("alt")),E=o0(Q.get("aria-hidden"));if(C&&!E&&!X){if(hV.test(C))kW(q)}break}case"label":{let C=(E)=>{let D=!1;return K8(E,{},{_(f,{next:v}){if(f.type==="SvelteElement"||f.type==="SlotElement"||f.type==="Component"||f.type==="RenderTag"||f.type==="RegularElement"&&(eN.includes(f.name)||f.name==="slot"))D=!0;else v()}}),D};if(!X&&!Q.has("for")&&!C(q))xW(q);break}case"video":{let C=Q.get("aria-hidden"),E=C&&o0(C);if(Q.has("muted")||E==="true"||X)return;if(!Q.has("src"))return;let D=!1,f=q.fragment.nodes.find((v)=>v.type==="RegularElement"&&v.name==="track");if(f)D=f.attributes.some((v)=>v.type==="SpreadAttribute"||v.type==="Attribute"&&v.name==="kind"&&o0(v)==="captions");if(!D)mW(q);break}case"figcaption":{if(!AH(Z.path,["figure"]))vW(q);break}case"figure":{let C=q.fragment.nodes.filter((D)=>{if(D.type==="Comment")return!1;if(D.type==="Text")return C9.test(D.data);return!0}),E=C.findIndex((D)=>D.type==="RegularElement"&&D.name==="figcaption");if(E!==-1&&E!==0&&E!==C.length-1)KW(C[E]);break}}if(!X&&q.name!=="a"){let C=oN[q.name];if(C){if(!C.some((D)=>Q.has(D)))jH(q,C)}}if(nN.includes(q.name))fW(q,q.name);if(!X&&!I&&!W&&tN.includes(q.name)&&!IH(q))iW(q,q.name)}function Xq(q){return $k.includes(q)}function c3(q,Z){if(q==="input"){if(o0(Z.get("type"))==="hidden")return!0}let Q=Z.get("aria-hidden");if(!Q)return!1;let Y=o0(Q);if(Y===null)return!0;return Y===!0||Y==="true"}function Eq8(q){if(o0(q.get("disabled")))return!0;let Q=q.get("aria-disabled");if(Q){if(o0(Q)==="true")return!0}return!1}function Fq8(q,Z){if(PH.some((Q)=>i3(Q,q,Z)))return Y6.Interactive;if(q!=="header"&&MH.some((Q)=>i3(Q,q,Z)))return Y6.NonInteractive;if(LH.some((Q)=>i3(Q,q,Z)))return Y6.Interactive;if(OH.some((Q)=>i3(Q,q,Z)))return Y6.NonInteractive;return Y6.Static}function Tq8(q,Z,Q){for(let[Y,J]of d3.elementAXObjects.entries())if(Y.name===Z&&(!Y.attributes||Y.attributes.every((H)=>Q.has(H.name)&&o0(Q.get(H.name))===H.value)))for(let H of J){let X=d3.AXObjectRoles.get(H);if(X){for(let{name:G}of X)if(G===q)return!0}}return!1}function fq8(q){if(q===!0)return!1;else if(!q)return!0;let Z=q.trim().toLowerCase().split(L4);if(typeof Z[0]==="string"&&Z[0].startsWith("section-"))Z.shift();if(Hk.includes(Z[0]))Z.shift();if(Xk.includes(Z[0]))Z.shift();else{if(Gk.includes(Z[0]))Z.shift();if(Vk.includes(Z[0]))Z.shift();else return!1}if(Z[0]==="webauthn")Z.shift();return Z.length===0}function Kq8(q){let Z=q.get("type");if(!Z)return;let Q=l6(Z);if(!Q)return;if(q.has("list")&&UH.includes(Q))return"combobox";return Yk.get(Q)}function vq8(q){let Z=q.get("type");if(!Z)return;let Q=l6(Z);if(!Q)return;return Qk.get(Q)}function Uk(q,Z){if(q==="menuitem")return vq8(Z);else if(q==="input")return Kq8(Z);else return Zk.get(q)}function wH(q){return p3.includes(q)}function r3(q){return BH.includes(q)}function Rk(q){return zH.includes(q)}function l6(q){let Z=o0(q);if(Z===!0)return null;return Z}function o0(q){if(!q)return null;if(q.value===!0)return!0;if(d8(q))return q.value[0].data;return null}function IH(q){for(let Z of q.fragment.nodes){if(Z.type==="Text"){if(Z.data.trim()==="")continue}if(Z.type==="RegularElement"||Z.type==="SvelteElement"){if(Z.attributes.some((Q)=>Q.type==="Attribute"&&Q.name==="popover"))continue;if(Z.name==="img"&&Z.attributes.some((Q)=>Q.type==="Attribute"&&Q.name==="alt"))return!0;if(Z.name==="selectedcontent")return!0;if(!IH(Z))continue}return!0}}function i3(q,Z,Q){if(q.name!==Z)return!1;if(!q.attributes)return!0;return q.attributes.every((Y)=>{let J=Q.get(Y.name);if(!J)return!1;if(Y.value&&Y.value!==l6(J))return!1;return!0})}function AH(q,Z){let Q=q.length;while(Q--){let Y=q[Q];if(Y.type==="SvelteElement")return!0;if(Y.type==="RegularElement")return Z.includes(Y.name)}return!1}function Nq8(q,Z,Q,Y){let J=Q.type;if(Y===null)return;if(Y===!0)Y="";switch(J){case"id":case"string":{if(Y==="")OY(q,Z,"non-empty string");break}case"number":{if(Y===""||isNaN(+Y))OY(q,Z,"number");break}case"boolean":{if(Y!=="true"&&Y!=="false")SW(q,Z);break}case"idlist":{if(Y==="")uW(q,Z);break}case"integer":{if(Y===""||!Number.isInteger(+Y))bW(q,Z);break}case"token":{let H=(Q.values??[]).map((X)=>X.toString());if(!H.includes(Y.toLowerCase()))hW(q,Z,w7(H.map((X)=>`"${X}"`)));break}case"tokenlist":{let H=(Q.values??[]).map((X)=>X.toString());if(Y.toLowerCase().split(L4).some((X)=>!H.includes(X)))yW(q,Z,w7(H.map((X)=>`"${X}"`)));break}case"tristate":{if(Y!=="true"&&Y!=="false"&&Y!=="mixed")_W(q,Z);break}}}function jH(q,Z,Q=q.name){let Y=kV.test(Z[0])||Z[0]==="href"?"an":"a",J=Z.length>1?Z.slice(0,-1).join(", ")+` or ${Z[Z.length-1]}`:Z[0];rW(q,Q,Y,J)}var DH=["preventDefault","stopPropagation","stopImmediatePropagation","capture","once","passive","nonpassive","self","trusted"];function a3(q,Z){let Q=!1,Y=null,J=null;for(let H of q.attributes)if(H.type==="Attribute"){let X=t9(H);if(Z.state.analysis.runes){if(F3(H,q),X){let W=U9(H);if(W.type==="SequenceExpression"){let R=W.start;while(--R>0){let B=Z.state.analysis.source[R];if(B==="(")break;if(B==="{")t4(W)}}}}if(uV.test(H.name))pR(H,H.name);if(H.name.startsWith("on")&&H.name.length>2){if(!X)xR(H);let W=U9(H);if(W.type==="Identifier"&&W.name===H.name&&!Z.state.scope.get(W.name))D$(H,H.name)}if(H.name==="slot")j5(Z,H);if(H.name==="is")I$(H);let G=kq8.get(H.name);if(G)E$(H,H.name,G);E3(H)}else if(H.type==="AnimateDirective"){let X=Z.path.at(-2);if(X?.type!=="EachBlock")aY(H);else if(!X.key)hR(H);else if(X.body.nodes.filter((G)=>G.type!=="Comment"&&G.type!=="ConstTag"&&G.type!=="DeclarationTag"&&(G.type!=="Text"||G.data.trim()!=="")).length>1)aY(H);if(Q)bR(H);else Q=!0}else if(H.type==="TransitionDirective"){let X=H.intro&&Y||H.outro&&J;if(X){let G=X.intro?X.outro?"transition":"in":"out",W=H.intro?H.outro?"transition":"in":"out";if(G===W)VB(H,G);else GB(H,G,W)}if(H.intro)Y=H;if(H.outro)J=H}else if(H.type==="OnDirective"){let X=!1,G="";for(let W of H.modifiers){if(!DH.includes(W)){let R=`${DH.slice(0,-1).join(", ")} or ${DH.at(-1)}`;zz(H,R)}if(W==="passive")X=!0;else if(W==="nonpassive"||W==="preventDefault")G=W;if(X&&G)Bz(H,"passive",G)}}}var kq8=new Map([["className","class"],["htmlFor","for"]]);function zk(q,Z){if(a3(q,Z),s3(q,Z),q.metadata.path=[...Z.path],Z.state.analysis.elements.push(q),q.name==="textarea"&&q.fragment.nodes.length>0){for(let H of q.attributes)if(H.type==="Attribute"&&H.name==="value")JB(q);if(q.fragment.nodes.length>1||q.fragment.nodes[0].type!=="Text"){let H=q.fragment.nodes[0];if(H.type==="Text")H.data=H.data.replace(Y7,""),H.raw=H.raw.replace(Y7,"");q.attributes.push(A1("value",null,-1,-1,q.fragment.nodes)),q.fragment.nodes=[]}}if(q.name==="select"&&!C4){for(let H of q.attributes)if(H.type==="BindDirective"&&H.name==="value"&&H.expression.type!=="SequenceExpression"){let X=f0(H.expression),G=X&&Z.state.scope.get(X.name);if(G)for(let W of Z.state.scope.references.keys()){if(W===G.node.name)continue;let R=Z.state.scope.get(W);if(R)G.legacy_indirect_bindings.add(R)}break}}if(q.name==="option"&&q.fragment.nodes?.length===1&&q.fragment.nodes[0].type==="ExpressionTag"&&!q.attributes.some((H)=>H.type==="Attribute"&&H.name==="value")){let H=q.fragment.nodes[0];q.metadata.synthetic_value_node=H}if(k6(q)||q.name==="selectedcontent")q.fragment.metadata.dynamic=!0,k8(Z.path);let Q=Z.state.scope.get(q.name);if(Q!==null&&Q.declaration_kind==="import"&&Q.references.length===0)K$(q,q.name);q.metadata.has_spread=q.attributes.some((H)=>H.type==="SpreadAttribute");let Y=()=>{if(e7(q.name))return!0;if(q.name==="a"||q.name==="title"){let H=Z.path.length;while(H--){let X=Z.path[H];if(X.type==="RegularElement")return X.metadata.svg}}return!1};if(q.metadata.svg=Y(),q.metadata.mathml=MY(q.name),K1(q)&&q.attributes.length>0)k8(Z.path);if(Z.state.parent_element){let H=!1,X=!1,G=[Z.state.parent_element];for(let W=Z.path.length-1;W>=0;W--){let R=Z.path[W];if(R.type==="IfBlock"||R.type==="EachBlock"||R.type==="AwaitBlock"||R.type==="KeyBlock")X=!0;if(!H){if(R.type==="RegularElement"&&R.name===Z.state.parent_element){let B=P5(q.name,Z.state.parent_element);if(B)if(X)DY(q,B);else R7(q,B);H=!0}}else if(R.type==="RegularElement"){G.push(R.name);let B=NB(q.name,G);if(B)if(X)DY(q,B);else R7(q,B)}else if(R.type==="Component"||R.type==="SvelteComponent"||R.type==="SvelteElement"||R.type==="SvelteSelf"||R.type==="SnippetBlock")break}}let J=q.name.replace(/[a-zA-Z-]*:/g,"");if(Z.state.analysis.source[q.end-2]==="/"&&!J9(J)&&!e7(J)&&!MY(J))v$(q,q.name);if(Z.next({...Z.state,parent_element:q.name}),q.name==="a"&&!Z.state.parent_element){for(let H of q.fragment.nodes)if(H.type==="RegularElement"){if(H.metadata.svg&&H.name!=="svg"){q.metadata.svg=!0;break}}}}function Bk(q,Z){a0(q,Z.state,"@"),q.metadata.path=[...Z.path];let Q=N6(q.expression),Y=Q.callee,J=Y.type==="Identifier"?Z.state.scope.get(Y.name):null;q.metadata.dynamic=J?.kind!=="normal";let H=Y.type==="Identifier"&&T3(J);if(J?.initial?.type==="SnippetBlock")q.metadata.snippets.add(J.initial);Z.state.analysis.snippet_renderers.set(q,H),Z.state.analysis.uses_render_tags=!0;let X=N6(q.expression).arguments;for(let G of X)if(G.type==="SpreadElement")Cz(G);if(Y.type==="MemberExpression"&&Y.property.type==="Identifier"&&["bind","apply","call"].includes(Y.property.name))Iz(q);k8(Z.path),Z.visit(Y,{...Z.state,expression:q.metadata.expression});for(let G of Q.arguments){let W=new n8;q.metadata.arguments.push(W),Z.visit(G,{...Z.state,expression:W})}}function Mk(q,Z){if(Z.state.analysis.runes&&!Z.state.analysis.custom_element)u$(q);k8(Z.path);let Q="default";for(let Y of q.attributes)if(Y.type==="Attribute"){if(Y.name==="name"){if(!d8(Y))vz(Y);if(Q=Y.value[0].data,Q==="default")Nz(Y)}}else if(Y.type!=="SpreadAttribute"&&Y.type!=="LetDirective")Kz(Y);Z.state.analysis.slot_names.set(Q,q),Z.next()}function Pk(q,Z){if(Z.state.analysis.snippets.add(q),j1(q.body,Z),Z.state.analysis.runes)a0(q,Z.state,"#");for(let H of q.parameters)if(H.type==="RestElement")uz(H);Z.next({...Z.state,parent_element:null});let Q=Z.path.length===1&&Z.path[0].type==="Fragment";if(Q){let H=q.expression.name;if(Z.state.analysis.instance.scope.declarations.has(H))W5(q.expression,H);if(q.metadata.can_hoist=Q&&Lk(Z.state.scope,Z.state.scopes),q.metadata.can_hoist){let X=q.expression.name,G=Z.state.scope.get(X);Z.state.analysis.module.scope.declarations.set(X,G)}}let{path:Y}=Z,J=Y.at(-2);if(!J)return;if(J.type==="Component"&&J.attributes.some((H)=>(H.type==="Attribute"||H.type==="BindDirective")&&H.name===q.expression.name))bz(q,q.expression.name);if(q.expression.name!=="children")return;if(J.type==="Component"||J.type==="SvelteComponent"||J.type==="SvelteSelf"){if(J.fragment.nodes.some((H)=>H.type!=="SnippetBlock"&&(H.type!=="Text"||H.data.trim())&&H.type!=="Comment"))Sz(q)}}function Lk(q,Z,Q=new Set){for(let[Y]of q.references){let J=q.get(Y);if(!J)continue;if(J.blocker)return!1;if(J.scope.function_depth===0)continue;if(J.scope.function_depth>=q.function_depth)continue;if(J.initial?.type==="SnippetBlock"){if(Q.has(J))continue;Q.add(J);let H=Z.get(J.initial);if(Lk(H,Z,Q))continue}return!1}return!0}function Ok(q,Z){k8(Z.path),Z.next({...Z.state,expression:q.metadata.expression})}function wk(q,Z){if(Z.state.expression)Z.state.expression.has_call=!0,Z.state.expression.has_state=!0;Z.next()}function Ak(q,Z){if(q.modifiers.length>1||q.modifiers.length&&q.modifiers[0]!=="important")hz(q);if(k8(Z.path),q.value===!0){let Q=Z.state.scope.get(q.name);if(Q){if(Q.kind!=="normal")q.metadata.expression.has_state=!0;if(Q.blocker)q.metadata.expression.dependencies.add(Q)}}else{Z.next();for(let Q of v6(q.value)){if(Q.type!=="ExpressionTag")continue;q.metadata.expression.merge(Q.metadata.expression)}}}function jk(q,Z){S6(q);for(let Q of q.attributes)if(Q.type==="SpreadAttribute"||Q.type==="Attribute"&&!I0(Q))_z(Q);Z.next()}function Ik(q,Z){if(Z.state.analysis.runes)b$(q);Z.visit(q.expression,{...Z.state,expression:q.metadata.expression}),I5(q,Z)}function Dk(q,Z){S6(q);for(let Q of q.attributes)if(Q.type==="SpreadAttribute"||Q.type==="Attribute"&&!I0(Q))Q3(Q,"svelte:document");Z.next()}function Ck(q,Z){a3(q,Z),s3(q,Z),q.metadata.path=[...Z.path],Z.state.analysis.elements.push(q);let Q=q.attributes.find((Y)=>Y.type==="Attribute"&&Y.name==="xmlns"&&d8(Y));if(Q)q.metadata.svg=Q.value[0].data===j4,q.metadata.mathml=Q.value[0].data===I4;else{let Y=Z.path.length;while(Y--){let J=Z.path[Y];if(J.type==="Component"||J.type==="SvelteComponent"||J.type==="SvelteFragment"||J.type==="SnippetBlock"||Y===0){q.metadata.svg=Z.state.options.namespace==="svg",q.metadata.mathml=Z.state.options.namespace==="mathml";break}if(J.type==="SvelteElement"||J.type==="RegularElement"){q.metadata.svg=J.type==="RegularElement"&&J.name==="foreignObject"?!1:J.metadata.svg,q.metadata.mathml=J.type==="RegularElement"&&J.name==="foreignObject"?!1:J.metadata.mathml;break}}}k8(Z.path),Z.visit(q.tag,{...Z.state,expression:q.metadata.expression});for(let Y of q.attributes)Z.visit(Y);Z.visit(q.fragment,{...Z.state,parent_element:null})}function Ek(q,Z){let Q=Z.path.at(-2);if(Q?.type!=="Component"&&Q?.type!=="SvelteComponent")cz(q);for(let Y of q.attributes)if(Y.type==="Attribute"){if(Y.name==="slot")j5(Z,Y)}else if(Y.type!=="LetDirective")pz(Y);Z.next({...Z.state,parent_element:null})}function Fk(q,Z){for(let Q of q.attributes)rz(Q);k8(Z.path),Z.next()}function Tk(q,Z){if(!Z.path.some((Y)=>Y.type==="IfBlock"||Y.type==="EachBlock"||Y.type==="Component"||Y.type==="SnippetBlock"))ZB(q);if(Z.state.analysis.runes){let Y=T0===r9?"Self":Z.state.analysis.name,J=T0===r9?"Self.svelte":T0.split(/[/\\]/).pop();y$(q,Y,J)}I5(q,Z)}function fk(q,Z){S6(q);for(let Q of q.attributes)if(Q.type==="SpreadAttribute"||Q.type==="Attribute"&&!I0(Q))Q3(Q,"svelte:window");Z.next()}var Sq8=["onerror","failed","pending"];function Kk(q,Z){for(let Q of q.attributes){if(Q.type!=="Attribute"||!Sq8.includes(Q.name))gz(Q);if(Q.value===!0||Array.isArray(Q.value)&&(Q.value.length!==1||Q.value[0].type!=="ExpressionTag"))lz(Q)}k8(Z.path),Z.next()}function vk(q,Z){if(Z.state.expression&&!Q6(q.tag,Z))Z.state.expression.has_call=!0,Z.state.expression.has_state=!0;Z.next()}function Nk(q){if(H7.test(q.value.cooked??""))J5(q)}function kk(q,Z){let Q=Z.path.at(-1);if(Q.type==="Fragment"&&Z.state.parent_element&&C9.test(q.data)){let Y=P5("#text",Z.state.parent_element);if(Y)R7(q,Y)}H7.lastIndex=0;for(let Y of q.data.matchAll(H7)){let J=!1;if(Q.type==="Fragment")for(let H of Q.nodes){if(H===q)break;if(H.type==="Comment")J||=I6(H.start+4,H.data,Z.state.analysis.runes).includes("bidirectional_control_characters")}if(!J){let H=Y.index+q.start;J5({start:H,end:H+Y[0].length})}}}function Sk(q,Z){for(let Q of q.attributes)HB(Q);for(let Q of q.fragment.nodes)if(Q.type!=="Text"&&Q.type!=="ExpressionTag")XB(Q);Z.next()}function uk(q,Z){if(k8(Z.path),Z.next({...Z.state,expression:q.metadata.expression}),q.metadata.expression.has_await)G9(q)}function bk(q,Z){if(L5(q,q.argument,Z),Z.state.reactive_statement){let Q=q.argument.type==="MemberExpression"?f0(q.argument):q.argument;if(Q?.type==="Identifier"){let Y=Z.state.scope.get(Q.name);if(Y)Z.state.reactive_statement.assignments.add(Y)}}if(Z.state.expression)Z.state.expression.has_assignment=!0;Z.next()}function hk(q,Z){if(k8(Z.path),Z.next({...Z.state,expression:q.metadata.expression}),q.metadata.expression.has_await)G9(q)}function Gq(q,Z){if(q!==Z)throw Error("Assertion failed")}function yk(q,Z){if(pB(q,Z.state),Z.state.analysis.runes){let Q=q.init,Y=s8(Q,Z.state.scope),{paths:J}=q1(q.id,F("dummy"));for(let H of J)u6(Z.state.scope.get(H.node.name));if(Y==="$state"||Y==="$state.raw"||Y==="$derived"||Y==="$derived.by"||Y==="$props")for(let H of J){let X=Z.state.scope.get(H.node.name);if(X.kind=Y==="$state"?"state":Y==="$state.raw"?"raw_state":Y==="$derived"||Y==="$derived.by"?"derived":H.is_rest?"rest_prop":"prop",Y==="$props"&&X.kind==="rest_prop"&&q.id.type==="ObjectPattern"){let{properties:G}=q.id,W=[];for(let R of G){if(R.type==="RestElement")continue;let B=R.key;W.push(B.type==="Identifier"?B.name:B.value.toString())}(X.metadata??={}).exclude_props=W}}if(Y==="$props"){if(q.id.type!=="ObjectPattern"&&q.id.type!=="Identifier")$R(q);if(Z.state.analysis.custom_element&&Z.state.options.customElementOptions?.props==null){let H;if(q.id.type==="Identifier"||(H=q.id.properties.find((X)=>X.type==="RestElement"))!=null)R$(H??q.id)}if(Z.state.analysis.needs_props=!0,q.id.type==="Identifier"){let H=Z.state.scope.get(q.id.name);H.initial=null,H.kind="rest_prop"}else{Gq(q.id.type,"ObjectPattern");for(let H of q.id.properties){if(H.type!=="Property")continue;if(H.computed)cY(H);if(H.key.type==="Identifier"&&H.key.name.startsWith("$$"))d4(H);let X=H.value.type==="AssignmentPattern"?H.value.left:H.value;if(X.type!=="Identifier")cY(H);let G=H.key.type==="Identifier"?H.key.name:String(H.key.value),W=H.value.type==="AssignmentPattern"?H.value.right:null,R=Z.state.scope.get(X.name);if(R.prop_alias=G,W?.type==="CallExpression"&&W.callee.type==="Identifier"&&W.callee.name==="$bindable")R.initial=W.arguments[0]??null,R.kind="bindable_prop";else R.initial=W}}}}else if(q.init?.type==="CallExpression"){let Q=q.init.callee;if(Q.type==="Identifier"&&(Q.name==="$state"||Q.name==="$derived"||Q.name==="$props")&&Z.state.scope.get(Q.name)?.kind!=="store_sub")PR(q.init,Q.name)}if(q.init&&s8(q.init,Z.state.scope)==="$props")Z.visit(q.id,{...Z.state,function_depth:Z.state.function_depth+1}),Z.visit(q.init);else Z.next()}var _k={_(q,{state:Z,next:Q,path:Y}){let J=Y.at(-1),H=[];if(J?.type==="Fragment"&&q.type!=="Comment"&&q.type!=="Text"){let G=J.nodes.indexOf(q);for(let W=G-1;W>=0;W--){let R=J.nodes[W];if(R.type==="Comment")H.push(...I6(R.start+4,R.data,Z.analysis.runes));else if(R.type!=="Text")break}}else{let G=q.leadingComments;if(G)for(let W of G)H.push(...I6(W.start+2,W.value,Z.analysis.runes))}if(H.length>0)PW(H);Y5.set(q,MW());let X=Z.scopes.get(q);if(Q(X!==void 0&&X!==Z.scope?{...Z,scope:X}:Z),H.length>0)LW()},AnimateDirective:RM,ArrowFunctionExpression:$M,AssignmentExpression:UM,AttachTag:zM,Attribute:BM,AwaitBlock:MM,AwaitExpression:PM,BindDirective:LM,CallExpression:OM,ClassBody:wM,ClassDeclaration:AM,ClassDirective:jM,Component:DM,ConstTag:EM,DeclarationTag:CM,DebugTag:FM,EachBlock:TM,ExportDefaultDeclaration:KM,ExportNamedDeclaration:vM,ExportSpecifier:NM,ExpressionStatement:kM,ExpressionTag:SM,Fragment:uM,FunctionDeclaration:bM,FunctionExpression:hM,HtmlTag:yM,Identifier:_M,IfBlock:gM,ImportDeclaration:lM,KeyBlock:xM,LabeledStatement:mM,LetDirective:pM,Literal:cM,MemberExpression:rM,NewExpression:iM,OnDirective:dM,PropertyDefinition:sM,RegularElement:zk,RenderTag:Bk,SlotElement:Mk,SnippetBlock:Pk,SpreadAttribute:Ok,SpreadElement:wk,StyleDirective:Ak,SvelteBody:jk,SvelteComponent:Ik,SvelteDocument:Dk,SvelteElement:Ck,SvelteFragment:Ek,SvelteHead:Fk,SvelteSelf:Tk,SvelteWindow:fk,SvelteBoundary:Kk,TaggedTemplateExpression:vk,TemplateElement:Nk,Text:kk,TransitionDirective:uk,TitleElement:Sk,UpdateExpression:bk,UseDirective:hk,VariableDeclarator:yk};function gk(q,Z,Q,Y){let J=q?.content??{type:"Program",sourceType:"module",start:-1,end:-1,body:[]},{scope:H,scopes:X,has_await:G}=SJ(J,Z,Q,Y);return{ast:J,scope:H,scopes:X,has_await:G}}function bq8(q){let Z=q.split(/[/\\]/),Q=Z.pop(),Y=Z.at(-1),J=Q.replace(".svelte","");if(J==="index"&&Y&&Y!=="src")J=Y;return J[0].toUpperCase()+J.slice(1)}var hq8=["$$props","$$restProps","$$slots"];function CH(q,Z,Q){let Y=new kJ,J=gk(q.module,Y,!1,null),H=gk(q.instance,Y,!0,J.scope),{scope:X,scopes:G,has_await:W}=SJ(q.fragment,Y,!1,H.scope),R={ast:q.fragment,scope:X,scopes:G},B=[],M=Q.runes?.({filename:Q.filename});for(let[f,v]of J.scope.references){if(f[0]!=="$"||hq8.includes(f))continue;if(f==="$"||f[1]==="$")mY(v[0].node,f);let _=f.slice(1),b=H.scope.get(_),z=b?.initial;if(M===!1||!E9(f)||b!==null&&(s8(z,H.scope)===null||_!=="props"&&s8(z,H.scope)==="$props")&&!(f==="$derived"&&b.initial?.type==="ImportDeclaration"&&b.initial.source.value==="svelte/store")){let P=void 0;q:for(let A of v)for(let T=A.path.length-1;T>=0;T--){let h=G.get(A.path[T])||J.scopes.get(A.path[T])||H.scopes.get(A.path[T]);if(h){let N=h?.owner(_);if(!!N&&N!==J.scope&&N!==H.scope){P=A.node;break q}break}}if(P)DR(P);if(M!==!1){if(b===null&&/[a-z]/.test(_[0]))mY(v[0].node,f);else if(b!==null&&E9(f)){for(let{node:A,path:T}of v)if(T.at(-1)?.type==="CallExpression")A$(A,_)}}if(J.ast){for(let{node:A,path:T}of v)if(A.start>J.ast.start&&A.end<J.ast.end&&s8(T.at(-1),J.scope)===null)CR(A)}B.push(()=>{if(b!==null&&b.kind==="normal"&&b.declaration_kind==="let"&&b.reassigned)b.kind="state"});let L=H.scope.declare(F(f),"store_sub","synthetic");L.references=v,H.scope.references.set(f,v),J.scope.references.delete(f)}}let V=bq8(Q.filename),$=M??(W||H.has_await||Array.from(J.scope.references.keys()).some(E9));if(!$)for(let f of B)f();if($&&q.module){let f=q.module.attributes.find((v)=>v.name==="context");if(f)k$(f)}let O=Q.customElement({filename:Q.filename}),w=Q.css({filename:Q.filename}),I=Q.customElementOptions??O,C=!!Q.customElementOptions||O,E=J.scope.generate(Q.name??V);OW({component_name:E,dev:Q.dev,rootDir:Q.rootDir,runes:$});let D={name:E,root:Y,module:J,instance:H,template:R,comments:q.comments,elements:[],runes:$,maybe_runes:!$&&M!==!1&&![...J.scope.references.keys()].some((f)=>["$$props","$$restProps"].includes(f))&&!H.ast.body.some((f)=>f.type==="LabeledStatement"||f.type==="ExportNamedDeclaration"&&(f.declaration&&f.declaration.type==="VariableDeclaration"&&f.declaration.kind==="let"||f.specifiers.some((v)=>v.local.type==="Identifier"&&H.scope.get(v.local.name)?.declaration_kind==="let"))),tracing:!1,classes:new Map,immutable:$||Q.immutable,exports:[],uses_props:!1,props_id:null,uses_rest_props:!1,uses_slots:!1,uses_component_bindings:!1,uses_render_tags:!1,needs_context:!1,needs_mutation_validation:!1,needs_props:!1,event_directive_node:null,uses_event_attributes:!1,custom_element:I,inject_styles:w==="injected"||C,accessors:C||($?!1:!!Q.accessors)||Q.compatibility?.componentApi===4,reactive_statements:new Map,binding_groups:new Map,slot_names:new Map,css:{ast:q.css,hash:q.css?Q.cssHash({css:q.css.content.styles,filename:T0,name:V,hash:a7}):"",keyframes:[],has_global:!1},source:Z,snippet_renderers:new Map,snippets:new Set,async_deriveds:new Set,pickled_awaits:new Set,instance_body:{sync:[],async:[],declarations:[],hoisted:[]}};if(!$){for(let f of H.ast.body){if(f.type!=="ExportNamedDeclaration")continue;if(D.needs_props=!0,f.declaration){if(f.declaration.type==="FunctionDeclaration"||f.declaration.type==="ClassDeclaration")D.exports.push({name:f.declaration.id.name,alias:null});else if(f.declaration.type==="VariableDeclaration")if(f.declaration.kind==="const")for(let v of f.declaration.declarations)for(let _ of r8(v.id))D.exports.push({name:_.name,alias:null});else for(let v of f.declaration.declarations)for(let _ of r8(v.id)){let b=H.scope.get(_.name);b.kind="bindable_prop"}}else for(let v of f.specifiers){if(v.local.type!=="Identifier"||v.exported.type!=="Identifier")continue;let _=H.scope.get(v.local.name);if(_&&(_.declaration_kind==="var"||_.declaration_kind==="let")){if(_.kind="bindable_prop",v.exported.name!==v.local.name)_.prop_alias=v.exported.name}else D.exports.push({name:v.local.name,alias:v.exported.name})}}for(let f of H.scope.declarations.values()){if(f.kind!=="normal")continue;for(let{node:v,path:_}of f.references){if(v===f.node)continue;if(f.updated){if(_[_.length-1].type==="StyleDirective"||_.some((b)=>b.type==="Fragment")||_[1].type==="LabeledStatement"&&_[1].label.name==="$")f.kind="state"}}}K8(R.ast,null,{EachBlock(f){let v=R.scopes.get(f);for(let _ of v.declarations.values())if(_.updated){let b={scope:v.parent,scopes:R.scopes};K8(f.expression,b,{_:O5,Identifier(z,P){let L=P.path.at(-1);if(s0(z,L)){let A=P.state.scope.get(z.name);if(A&&A.kind==="normal"&&A.declaration_kind!=="import"&&A.declaration_kind!=="function")A.kind="state",A.mutated=!0}}});break}}})}if(q.options)for(let f of q.options.attributes){if(f.name==="accessors"&&D.runes)T4(f);if(f.name==="customElement"&&!O)G$(f);if(f.name==="immutable"&&D.runes)f4(f)}if(yq8(H,D),D.runes){let f=J.scope.references.get("$$props");if(f)XR(f[0].node);let v=J.scope.references.get("$$restProps");if(v)VR(v[0].node);for(let{ast:_,scope:b,scopes:z}of[J,H,R]){let P={scope:b,scopes:z,analysis:D,options:Q,ast_type:_===H.ast?"instance":_===R.ast?"template":"module",fragment:_===R.ast?_:null,parent_element:null,in_declaration_tag:!1,has_props_rune:!1,component_slots:new Set,expression:null,state_fields:new Map,function_depth:b.function_depth,reactive_statement:null,derived_function_depth:-1};K8(_,P,_k)}for(let _ of[J.scope,H.scope])q:for(let[b,z]of _.declarations)if(z.kind==="normal"&&z.reassigned)Z:for(let{path:P}of z.references){if(P[0].type!=="Fragment")continue;for(let L=1;L<P.length;L+=1){let A=P[L].type;if(A==="FunctionDeclaration"||A==="FunctionExpression"||A==="ArrowFunctionExpression")continue Z;if(A==="BindDirective"&&P[L].name==="this"){for(let T=L-1;T>=0;T-=1){let h=P[T].type;if(h==="IfBlock"||h==="EachBlock"||h==="AwaitBlock"||h==="KeyBlock"){jY(z.node,b);continue q}}continue Z}}jY(z.node,b);continue q}}else{H.scope.declare(F("$$props"),"rest_prop","synthetic"),H.scope.declare(F("$$restProps"),"rest_prop","synthetic");for(let{ast:f,scope:v,scopes:_}of[J,H,R]){let b={scope:v,scopes:_,analysis:D,options:Q,fragment:f===R.ast?f:null,parent_element:null,in_declaration_tag:!1,has_props_rune:!1,ast_type:f===H.ast?"instance":f===R.ast?"template":"module",reactive_statement:null,component_slots:new Set,expression:null,state_fields:new Map,function_depth:v.function_depth,derived_function_depth:-1};K8(f,b,_k)}for(let[f,v]of H.scope.declarations)if((v.kind==="prop"||v.kind==="bindable_prop")&&v.node.name!=="$$props"){if(!v.references.filter((b)=>b.node!==v.node&&b.path.at(-1)?.type!=="ExportSpecifier").length&&!H.scope.declarations.has(`$${f}`))z$(v.node,f)}D.reactive_statements=_q8(D.reactive_statements)}for(let f of D.module.ast.body)if(f.type==="ExportNamedDeclaration"&&f.specifiers!==null&&f.source==null)for(let v of f.specifiers){if(v.local.type!=="Identifier")continue;let _=v.local.name;if(!D.module.scope.get(_))if([...D.snippets].find((z)=>z.expression.name===_))AR(v);else tU(v,_)}if(D.event_directive_node&&D.uses_event_attributes)jz(D.event_directive_node,D.event_directive_node.name);for(let[f,v]of D.snippet_renderers){if(!v)f.metadata.snippets=D.snippets;for(let _ of f.metadata.snippets)_.metadata.sites.add(f)}if(D.uses_render_tags&&(D.uses_slots||!D.custom_element&&D.slot_names.size>0)){let f=D.slot_names.values().next().value??D.source.indexOf("$$slot");kz(f)}if(D.css.ast){qM(D.css.ast,D),JM(D.css.ast,D.elements);let{comment:f}=D.css.ast.content;if(!(f&&I6(f.start,f.data,D.runes).includes("css_unused_selector")))WM(D.css.ast)}for(let f of D.elements){if(f.metadata.scoped&&K1(f))k8(f.metadata.path);let v=!1,_=!1,b=!1,z=!1,P=!1;for(let L of f.attributes)if(L.type==="SpreadAttribute"){b=!0;break}else if(L.type==="Attribute")v||=L.name.toLowerCase()==="class",_||=L.name.toLowerCase()==="style";else if(L.type==="ClassDirective")z=!0;else if(L.type==="StyleDirective")P=!0;if(!b&&!v&&(f.metadata.scoped||z))f.attributes.push(A1("class",null,-1,-1,[{type:"Text",data:"",raw:"",start:-1,end:-1}]));if(!b&&!_&&P)f.attributes.push(A1("style",null,-1,-1,[{type:"Text",data:"",raw:"",start:-1,end:-1}]))}return D}function yq8(q,Z){let Q=(B,M,V,$=new Set)=>{if($.has(B))return;$.add(B),K8(B,{scope:M},{_(O,w){let I=q.scopes.get(O);if(I)w.next({scope:I});else w.next()},ImportDeclaration(O){},Identifier(O,w){let I=w.path.at(-1);if(s0(O,I)){let C=w.state.scope.get(O.name);if(C){V.add(C);for(let E of C.assignments)Q(E.value,E.scope,V,$)}}}})},Y=(B,M,V,$)=>{function O(w,I){for(let C of v9(w)){let E=f0(C);if(!E)return;let D=I.get(E.name);if(!D)return;V.add(D)}}K8(B,{scope:$},{_(w,I){let C=q.scopes.get(w);if(C)I.next({scope:C});else I.next()},AssignmentExpression(w,I){O(w.left,I.state.scope)},UpdateExpression(w,I){O(w.argument,I.state.scope)},CallExpression(w,I){if(s8(w,I.state.scope)==="$effect")return;let E=new Set;Q(w,I.state.scope,E);for(let D of E)V.add(D)},Identifier(w,I){let C=I.path.at(-1);if(s0(w,C)){let E=I.state.scope.get(w.name);if(E)M.add(E)}},ReturnStatement(w,I){if(w.argument)Q(w.argument,I.state.scope,M)},ArrowFunctionExpression(w,I){},FunctionDeclaration(w,I){},FunctionExpression(w,I){}})},J=!1,H=[],X=F("$$promises");function G(B,M){Z.instance_body.declarations.push(B);let V=q.scope.get(B.name);V.blocker=M}function W(){if(H.length===0)return;Z.instance_body.async.push({nodes:H,has_await:!1}),H=[]}let R=[];for(let B of q.ast.body){if(B.type==="ImportDeclaration"){Z.instance_body.hoisted.push(B);continue}if(B.type==="ExportDefaultDeclaration"||B.type==="ExportAllDeclaration")continue;if(B.type==="ExportNamedDeclaration")if(B.declaration)B=B.declaration;else continue;let M=K9(B);if(J||=M,B.type==="FunctionDeclaration")Z.instance_body.sync.push(B),R.push(B);else if(B.type==="VariableDeclaration")for(let V of B.declarations){if(s8(V.init,q.scope)==="$props.id")continue;if(V.init?.type==="ArrowFunctionExpression"||V.init?.type==="FunctionExpression")Z.instance_body.sync.push(B.declarations.length===1?B:f1(B.kind,[V])),R.push(V);else if(!J)Z.instance_body.sync.push(B.declarations.length===1?B:f1(B.kind,[V]));else{let $=new Set,O=new Set;if(Y(V,$,O,q.scope),M)W();let w=U8(X,g(Z.instance_body.async.length),!0);for(let I of O)I.blocker=w;for(let I of r8(V.id))G(I,w);if(M)Z.instance_body.async.push({nodes:[V],has_await:!0});else H.push(V)}}else if(J){let V=new Set,$=new Set;if(Y(B,V,$,q.scope),M)W();let O=U8(X,g(Z.instance_body.async.length),!0);for(let w of $)w.blocker=O;if(B.type==="ClassDeclaration")G(B.id,O);if(M)Z.instance_body.async.push({nodes:[B],has_await:!0});else H.push(B)}else Z.instance_body.sync.push(B)}W();for(let B of R){let M=new Set,V=B.type==="VariableDeclarator"?B.init:B;Y(V.body,M,M,q.scopes.get(V));let $=[...M].reduce((I,C)=>{if(C.blocker){let E=C.blocker.property;return Math.max(E.value,I)}return I},-1);if($===-1)continue;let O=U8(X,g($),!0),w=B.type==="FunctionDeclaration"?q.scope.get(B.id.name):q.scope.get(B.id.name);w.blocker=O}}function _q8(q){let Z=new Map;for(let[X,G]of q)for(let W of G.assignments){let R=Z.get(W.node.name)??[];R.push([X,G]),Z.set(W.node.name,R)}let Q=[];for(let[,{assignments:X,dependencies:G}]of q)for(let W of X)for(let R of G)if(!X.has(R))Q.push([W.node.name,R.node.name]);let Y=b2(Q);if(Y?.length){let X=Z.get(Y[0])[0];RR(X[0],Y.join(" → "))}let J=new Map,H=(X,G)=>{if([...J.values()].includes(G))return;for(let W of G.dependencies){if(G.assignments.has(W))continue;for(let[R,B]of Z.get(W.node.name)??[])H(R,B)}J.set(X,G)};for(let[X,G]of q)H(X,G);return J}var ck=44,gq8=59,lk="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",rk=new Uint8Array(64),ik=new Uint8Array(128);for(let q=0;q<lk.length;q++){let Z=lk.charCodeAt(q);rk[q]=Z,ik[Z]=q}function Vq(q,Z){let Q=0,Y=0,J=0;do{let X=q.next();J=ik[X],Q|=(J&31)<<Y,Y+=5}while(J&32);let H=Q&1;if(Q>>>=1,H)Q=-2147483648|-Q;return Z+Q}function Wq(q,Z,Q){let Y=Z-Q;Y=Y<0?-Y<<1|1:Y<<1;do{let J=Y&31;if(Y>>>=5,Y>0)J|=32;q.write(rk[J])}while(Y>0);return Z}function xk(q,Z){if(q.pos>=Z)return!1;return q.peek()!==ck}var mk=16384,pk=typeof TextDecoder<"u"?new TextDecoder:typeof Buffer<"u"?{decode(q){return Buffer.from(q.buffer,q.byteOffset,q.byteLength).toString()}}:{decode(q){let Z="";for(let Q=0;Q<q.length;Q++)Z+=String.fromCharCode(q[Q]);return Z}},lq8=class{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(mk)}write(q){let{buffer:Z}=this;if(Z[this.pos++]=q,this.pos===mk)this.out+=pk.decode(Z),this.pos=0}flush(){let{buffer:q,out:Z,pos:Q}=this;return Q>0?Z+pk.decode(q.subarray(0,Q)):Z}},xq8=class{constructor(q){this.pos=0,this.buffer=q}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(q){let{buffer:Z,pos:Q}=this,Y=Z.indexOf(q,Q);return Y===-1?Z.length:Y}};function EH(q){let{length:Z}=q,Q=new xq8(q),Y=[],J=0,H=0,X=0,G=0,W=0;do{let R=Q.indexOf(";"),B=[],M=!0,V=0;J=0;while(Q.pos<R){let $;if(J=Vq(Q,J),J<V)M=!1;if(V=J,xk(Q,R))if(H=Vq(Q,H),X=Vq(Q,X),G=Vq(Q,G),xk(Q,R))W=Vq(Q,W),$=[J,H,X,G,W];else $=[J,H,X,G];else $=[J];B.push($),Q.pos++}if(!M)mq8(B);Y.push(B),Q.pos=R+1}while(Q.pos<=Z);return Y}function mq8(q){q.sort(pq8)}function pq8(q,Z){return q[0]-Z[0]}function C7(q){let Z=new lq8,Q=0,Y=0,J=0,H=0;for(let X=0;X<q.length;X++){let G=q[X];if(X>0)Z.write(gq8);if(G.length===0)continue;let W=0;for(let R=0;R<G.length;R++){let B=G[R];if(R>0)Z.write(ck);if(W=Wq(Z,B[0],W),B.length===1)continue;if(Q=Wq(Z,B[1],Q),Y=Wq(Z,B[2],Y),J=Wq(Z,B[3],J),B.length===4)continue;H=Wq(Z,B[4],H)}}return Z.flush()}var dk=0,sk=1,ak=2,ok=3,nk=4;class $q{#q;#Z;#Q=!1;multiline=!1;constructor(q,Z=[]){this.#q=q,this.#Z=Z}indent(){this.#Z.push(2)}dedent(){this.#Z.push(3)}margin(){this.#Z.push(0)}newline(){this.#Q=!0,this.#Z.push(1)}space(){this.#Z.push(4)}append(q){if(this.#Z.push(q.#Z),this.#Q||q.multiline)this.multiline=!0}write(q,Z){if(Z?.loc)this.location(Z.loc.start.line,Z.loc.start.column),this.#Z.push(q),this.location(Z.loc.end.line,Z.loc.end.column);else this.#Z.push(q);if(this.#Q)this.multiline=!0}location(q,Z){this.#Z.push({type:"Location",line:q,column:Z})}visit(q){let Z=this.#q[q.type];if(!Z){let Q=`Not implemented: ${q.type}`;if(q.type.includes("TS"))Q+=" (consider using 'esrap/languages/ts')";if(q.type.includes("JSX"))Q+=" (consider using 'esrap/languages/tsx')";throw Error(Q)}if(this.#q._)this.#q._(q,this,(Q)=>Z(Q,this));else Z(q,this)}empty(){return!this.#Z.some(ek)}measure(){return tk(this.#Z)}new(){return new $q(this.#q)}}function tk(q,Z=0,Q=q.length){let Y=0;for(let J=Z;J<Q;J+=1){let H=q[J];if(typeof H==="string")Y+=H.length;else if(Array.isArray(H))Y+=tk(H)}return Y}function ek(q){if(Array.isArray(q))return q.some(ek);if(typeof q==="string")return q.length>0;return!1}var FH=()=>{throw Error("Unsupported environment: `window.btoa` or `Buffer` should be supported.")};if(typeof window<"u"&&typeof window.btoa==="function")FH=(q)=>window.btoa(unescape(encodeURIComponent(q)));else if(typeof Buffer==="function")FH=(q)=>Buffer.from(q,"utf-8").toString("base64");class qS{version=3;names=[];constructor(q,Z){this.sources=[Z.sourceMapSource||null],this.sourcesContent=[Z.sourceMapContent||null],this.mappings=Z.sourceMapEncodeMappings===!1?q:C7(q)}toString(){return JSON.stringify(this)}toUrl(){return"data:application/json;charset=utf-8;base64,"+FH(this.toString())}}function TH(q,Z,Q={}){let Y=[];new $q(Z,Y).visit(q);let H="",X=0,G=[],W=[];function R(C){H+=C;for(let E=0;E<C.length;E+=1)if(C[E]===`
|
|
229
|
-
`)G.push(W),W=[],X=0;else X+=1}let B=`
|
|
230
|
-
`,M=Q.indent??"\t",V=!1,$=!1,O=!1;function w(C){if(Array.isArray(C)){for(let E=0;E<C.length;E+=1)w(C[E]);return}if(typeof C==="number"){if(C===sk)V=!0;else if(C===dk)$=!0;else if(C===nk)O=!0;else if(C===ak)B+=M;else if(C===ok)B=B.slice(0,-M.length);return}if(V)R($?`
|
|
231
|
-
`+B:B);else if(O)R(" ");if($=V=O=!1,typeof C==="string"){R(C);return}if(C.type==="Location")W.push([X,0,C.line-1,C.column])}for(let C=0;C<Y.length;C+=1)w(Y[C]);G.push(W);let I;return{code:H,get map(){return I??=new qS(G,Q)}}}var b0={JSXFragment:20,JSXElement:20,ArrayPattern:20,ObjectPattern:20,ArrayExpression:20,TaggedTemplateExpression:20,ThisExpression:20,Identifier:20,TemplateLiteral:20,Super:20,SequenceExpression:20,MemberExpression:19,MetaProperty:19,CallExpression:19,ChainExpression:19,ImportExpression:19,NewExpression:19,Literal:18,TSInstantiationExpression:18,TSNonNullExpression:18,TSTypeAssertion:18,AwaitExpression:17,ClassExpression:17,FunctionExpression:17,ObjectExpression:17,UpdateExpression:16,UnaryExpression:15,BinaryExpression:14,TSAsExpression:13,TSSatisfiesExpression:13,LogicalExpression:12,ConditionalExpression:4,ArrowFunctionExpression:3,AssignmentExpression:3,YieldExpression:2,RestElement:1},o3={"||":2,"&&":3,"??":4,"|":5,"^":6,"&":7,"==":8,"!=":8,"===":8,"!==":8,"<":9,">":9,"<=":9,">=":9,in:9,instanceof:9,"<<":10,">>":10,">>>":10,"+":11,"-":11,"*":12,"%":12,"/":12,"**":13};function J6(q,Z,Q,Y){q.location(Z,Q),q.write(Y),q.location(Z,Q+Y.length)}function y9(q,Z,Q){let Y=Z.loc&&(!Q||Q(Z))?{line:Z.loc.start.line,col:Z.loc.start.column}:null;return(J)=>{if(Y)J6(q,Y.line,Y.col,J),Y.col+=J.length;else q.write(J)}}function V0(q,Z,Q,Y=""){if(Z.loc)J6(q,Z.loc.start.line,Z.loc.start.column,Q),q.write(Y);else q.write(Q+Y)}function rq8(q){let Z=q.loc?.start.line;if(Z===void 0)return!1;return q.id?.loc?.start.line===Z||q.body?.loc?.start.line===Z}function n3(q){return!!(q.loc&&q.loc.start.line===q.loc.end.line)}function iq8(q){return!!q.loc&&!q.decorators?.length&&(q.id?q.id.loc?.start.line===q.loc.start.line:q.body.loc.start.line===q.loc.start.line)}function dq8(q){return!!(q.loc&&!q.decorators?.length&&q.loc.start.line===q.value.loc?.start.line)}function sq8(q){if(!q.loc||q.decorators?.length)return!1;if(!q.value?.loc)return!0;return q.loc.start.line===q.value.loc.start.line}function fH(q,Z){if(q.type==="Line")Z.write(`//${q.value}`);else{Z.write("/*");let Q=q.value.split(`
|
|
232
|
-
`);for(let Y=0;Y<Q.length;Y+=1){if(Y>0)Z.newline();Z.write(Q[Y])}if(Z.write("*/"),Q.length>1)Z.newline()}}var vH=(q={})=>{let Z=q.quotes==="double"?'"':"'",Q=q.comments??[],Y=0;function J(V,$,O){if(!$)return;for(let w=0;w<$.length;w+=1){let I=$[w];if(O==="trailing"&&w===0)V.write(" ");if(fH(I,V),O==="leading"){if(I.type==="Line")V.newline();else if(I.type==="Block"&&!I.value.includes(`
|
|
233
|
-
`))V.write(" ")}}}function H(V){if(!V.loc){Y=Q.length;return}let $=Q[Y-1],O=Q[Y];if(O&&O.loc&&!f5(O.loc.start,V.loc.start)&&(!$||$.loc&&f5($.loc.start,V.loc.start)))return;if(Y=Q.findIndex((w)=>w.loc&&V.loc&&!f5(w.loc.start,V.loc.start)),Y===-1)Y=Q.length}function X(V,$,O){while(Y<Q.length){let w=Q[Y];if(w&&$&&w.loc.start.line===$.line&&(O===null||f5(w.loc.end,O)))if(V.write(" "),fH(w,V),Y+=1,w.type==="Line")V.newline();else continue;break}}function G(V,$,O,w){let I=!0;while(Y<Q.length){let C=Q[Y];if(C&&C.loc&&O&&f5(C.loc.start,O)){if(I&&$!==null&&C.loc.start.line>$.line)V.margin(),V.newline();if(I=!1,fH(C,V),C.loc.end.line<O.line)V.newline();else if(w)V.write(" ");Y+=1}else break}}function W(V){if(!V||V.type!=="Property")return!1;let $=V.value?.type==="AssignmentPattern"?V.value.left:V.value;return $?.type==="ObjectExpression"||$?.type==="ArrayExpression"}function R(V,$,O,w,I=",",C=!0){let E=!1,D=-1,f=[],v=$.map((b,z)=>{let P=V.new();if(b)P.visit(b);if(f[z]=P.multiline,z<$.length-1||!b)P.write(I);let L=z===$.length-1?O:$[z+1]?.loc?.start||null;return X(P,b?.loc?.end||null,L),D+=P.measure()+1,E||=P.multiline,P});if(E||=D>60,E)V.indent(),V.newline();else if(w&&D>0)V.write(" ");let _=null;for(let b=0;b<$.length;b+=1){let z=v[b];if(_!==null){if(f[b-1]&&f[b]){if(!W($[b-1])||!W($[b]))V.margin()}if($[b])if(E)V.newline();else V.write(" ")}V.append(z),_=z}if(G(V,$[$.length-1]?.loc?.end??null,O,!1),E){if(V.dedent(),C)V.newline()}else if(w&&D>0)V.write(" ")}function B(V,$){H($);let O=null,w=!1;for(let I=0;I<$.body.length;I+=1){let C=$.body[I];if(C.type==="EmptyStatement")continue;let E=V.new();if(E.visit(C),O!==null){if(E.multiline||w||C.type!==O)V.margin();V.newline()}V.append(E),X(V,C.loc?.end||null,$.body[I+1]?.loc?.end??$.loc?.end??null),O=C.type,w=E.multiline}if($.loc)V.newline(),G(V,$.body[$.body.length-1]?.loc?.end??null,$.loc.end,!1)}let M={"ArrayExpression|ArrayPattern":(V,$)=>{$.write("["),R($,V.elements,V.loc?.end??null,!1),$.write("]")},"BinaryExpression|LogicalExpression":(V,$)=>{if(ZS(V.left,V,!1))$.write("("),$.visit(V.left),$.write(")");else $.visit(V.left);if($.write(` ${V.operator} `),ZS(V.right,V,!0))$.write("("),$.visit(V.right),$.write(")");else $.visit(V.right)},"BlockStatement|ClassBody":(V,$)=>{if(V.loc){let{line:w,column:I}=V.loc.start;$.location(w,I),$.write("{"),$.location(w,I+1)}else $.write("{");let O=$.new();if(B(O,V),!O.empty())$.indent(),$.newline(),$.append(O),$.dedent(),$.newline();if(V.loc){let{line:w,column:I}=V.loc.end;$.location(w,I-1),$.write("}"),$.location(w,I)}else $.write("}")},"CallExpression|NewExpression":(V,$)=>{if(V.type==="NewExpression")V0($,V,"new"," ");if(b0[V.callee.type]<b0.CallExpression||V.type==="NewExpression"&&aq8(V.callee))$.write("("),$.visit(V.callee),$.write(")");else $.visit(V.callee);if(V.optional)$.write("?.");if(V.typeArguments)$.visit(V.typeArguments);let w=$.new(),I=$.new();$.write("("),$.append(w);let C=$.new(),E=$.new();$.append(C),$.append(E);for(let D=0;D<V.arguments.length;D+=1){let f=D===V.arguments.length-1,v=f?E:C,_=V.arguments[D];if(f&&_.loc&&Q[Y]&&Q[Y].loc&&Q[Y].loc.start.line<_.loc.start.line)C.multiline=!0;if(v.visit(_),!f)v.write(",");let b=f?V.loc?.end??null:V.arguments[D+1]?.loc?.start??null;if(X(v,_.loc?.end??null,b),!f)v.append(I)}if($.multiline||=C.multiline||E.multiline,C.multiline)w.indent(),w.newline(),I.newline(),$.dedent(),$.newline();else I.write(" ");$.write(")")},"ClassDeclaration|ClassExpression":(V,$)=>{if(V.decorators)for(let I of V.decorators)$.visit(I);let O=y9($,V,iq8);if(V.declare)O("declare ");if(V.abstract)O("abstract ");if(O("class "),V.id)$.visit(V.id),$.write(" ");if(V.superClass){$.write("extends "),$.visit(V.superClass);var w=V.superTypeParameters??V.superTypeArguments;if(w)$.visit(w);$.write(" ")}if(V.implements&&V.implements.length>0)$.write("implements"),R($,V.implements,V.body.loc?.start??null,!0);$.visit(V.body)},"ForInStatement|ForOfStatement":(V,$)=>{let O=y9($,V);if(O("for "),V.type==="ForOfStatement"&&V.await)if(n3(V))O("await ");else $.write("await ");if($.write("("),V.left.type==="VariableDeclaration")KH(V.left,$);else $.visit(V.left);$.write(V.type==="ForInStatement"?" in ":" of "),$.visit(V.right),$.write(") "),$.visit(V.body)},"FunctionDeclaration|FunctionExpression":(V,$)=>{if(!V.loc?.start){if(V.async)$.write("async ");$.write(V.generator?"function* ":"function ")}else{let{line:O,column:w}=V.loc.start;if(V.async)if(rq8(V)){J6($,O,w,"async ");let I=w+6;J6($,O,I,"function"),$.write(V.generator?"* ":" ")}else $.write("async "),$.write(V.generator?"function* ":"function ");else if(V.generator)J6($,O,w,"function"),$.write("* ");else J6($,O,w,"function"),$.write(" ")}if(V.id)$.visit(V.id);if(V.typeParameters)$.visit(V.typeParameters);if($.write("("),R($,V.params,(V.returnType??V.body).loc?.start??null,!1),$.write(")"),V.returnType)$.visit(V.returnType);$.write(" "),$.visit(V.body)},"MethodDefinition|TSAbstractMethodDefinition":(V,$)=>{if(V.decorators)for(let w of V.decorators)$.visit(w);let O=y9($,V,dq8);if(V.abstract||V.type==="TSAbstractMethodDefinition")O("abstract ");if(V.accessibility)O(V.accessibility+" ");if(V.override)O("override ");if(V.static)O("static ");if(V.kind==="get"||V.kind==="set")O(V.kind+" ");if(V.value.async)O("async ");if(V.value.generator)$.write("*");if(V.computed)$.write("[");if($.visit(V.key),V.computed)$.write("]");if($.write("("),R($,V.value.params,(V.value.returnType??V.value.body)?.loc?.start??V.loc?.end??null,!1),$.write(")"),V.value.returnType)$.visit(V.value.returnType);if($.write(" "),V.value.body)$.visit(V.value.body)},"PropertyDefinition|TSAbstractPropertyDefinition|AccessorProperty|TSAbstractAccessorProperty":(V,$)=>{if(V.decorators)for(let w of V.decorators)$.visit(w);let O=y9($,V,sq8);if(V.accessibility)O(V.accessibility+" ");if(V.abstract||V.type==="TSAbstractPropertyDefinition"||V.type==="TSAbstractAccessorProperty")O("abstract ");if(V.static)O("static ");if(V.accessor||V.type==="AccessorProperty"||V.type==="TSAbstractAccessorProperty")O("accessor ");if(V.computed)$.write("["),$.visit(V.key),$.write("]");else $.visit(V.key);if(V.typeAnnotation)if(V.type==="AccessorProperty"||V.type==="TSAbstractAccessorProperty")$.visit(V.typeAnnotation);else $.write(": "),$.visit(V.typeAnnotation.typeAnnotation);if(V.value)$.write(" = "),$.visit(V.value);$.write(";"),X($,(V.value??V.typeAnnotation??V.key).loc?.end??null,null)},"RestElement|SpreadElement":(V,$)=>{if($.write("..."),$.visit(V.argument),V.typeAnnotation)$.visit(V.typeAnnotation)},"TSConstructSignatureDeclaration|TSCallSignatureDeclaration":(V,$)=>{if(V.type==="TSConstructSignatureDeclaration")$.write("new");if(V.typeParameters)$.visit(V.typeParameters);if($.write("("),R($,V.parameters??V.params,(V.typeAnnotation??V.returnType)?.loc?.start??null,!1),$.write(")"),V.typeAnnotation||V.returnType)$.visit(V.typeAnnotation??V.returnType)},"TSFunctionType|TSConstructorType":(V,$)=>{if(V.type==="TSConstructorType")$.write("new ");if(V.typeParameters)$.visit(V.typeParameters);$.write("("),R($,V.parameters??V.params,V.typeAnnotation?.typeAnnotation?.loc?.start??V.returnType?.typeAnnotation?.loc?.start??null,!1),$.write(") => "),$.visit(V.typeAnnotation?.typeAnnotation??V.returnType?.typeAnnotation)}};return{_(V,$,O){if(J($,q.getLeadingComments?.(V),"leading"),V.loc)G($,null,V.loc.start,!0);O(V),J($,q.getTrailingComments?.(V),"trailing")},AccessorProperty:M["PropertyDefinition|TSAbstractPropertyDefinition|AccessorProperty|TSAbstractAccessorProperty"],ArrayExpression:M["ArrayExpression|ArrayPattern"],ArrayPattern:M["ArrayExpression|ArrayPattern"],ArrowFunctionExpression:(V,$)=>{if(V.async)V0($,V,"async"," ");if(V.typeParameters)$.visit(V.typeParameters);if($.write("("),R($,V.params,(V.returnType??V.body).loc?.start??null,!1),$.write(")"),V.returnType)$.visit(V.returnType);if($.write(" => "),QS(V.body))$.write("("),$.visit(V.body),$.write(")");else $.visit(V.body)},AssignmentExpression(V,$){$.visit(V.left),$.write(` ${V.operator} `),$.visit(V.right)},AssignmentPattern(V,$){$.visit(V.left),$.write(" = "),$.visit(V.right)},AwaitExpression(V,$){if(V.argument){let O=b0[V.argument.type];if(O&&O<b0.AwaitExpression)V0($,V,"await"," ("),$.visit(V.argument),$.write(")");else V0($,V,"await"," "),$.visit(V.argument)}else V0($,V,"await","")},BinaryExpression:M["BinaryExpression|LogicalExpression"],BlockStatement:M["BlockStatement|ClassBody"],BreakStatement(V,$){if(V.label)V0($,V,"break"," "),$.visit(V.label),$.write(";");else V0($,V,"break",";")},CallExpression:M["CallExpression|NewExpression"],ChainExpression(V,$){$.visit(V.expression)},ClassBody:M["BlockStatement|ClassBody"],ClassDeclaration:M["ClassDeclaration|ClassExpression"],ClassExpression:M["ClassDeclaration|ClassExpression"],ConditionalExpression(V,$){if(b0[V.test.type]>b0.ConditionalExpression)$.visit(V.test);else $.write("("),$.visit(V.test),$.write(")");let O=$.new(),w=$.new();if(O.visit(V.consequent),w.visit(V.alternate),O.multiline||w.multiline||O.measure()+w.measure()>50)$.indent(),$.newline(),$.write("? "),$.append(O),$.newline(),$.write(": "),$.append(w),$.dedent();else $.write(" ? "),$.append(O),$.write(" : "),$.append(w)},ContinueStatement(V,$){if(V.label)V0($,V,"continue"," "),$.visit(V.label),$.write(";");else V0($,V,"continue",";")},DebuggerStatement(V,$){$.write("debugger",V),$.write(";")},Decorator(V,$){$.write("@"),$.visit(V.expression),$.newline()},DoWhileStatement(V,$){V0($,V,"do"," "),$.visit(V.body);let O=V.test.loc?.start,w=V.body.loc?.end;if(O&&w&&w.line===O.line&&O.column>=6)$.write(" "),J6($,w.line,w.column+1,"while"),$.write(" (");else $.write(" while (");$.visit(V.test),$.write(");")},EmptyStatement(V,$){$.write(";")},ExportAllDeclaration(V,$){if($.write(V.exportKind==="type"?"export type * ":"export * "),V.exported)$.write("as "),$.visit(V.exported);$.write(" from "),$.visit(V.source),$.write(";")},ExportDefaultDeclaration(V,$){let O=y9($,V,n3);if(O("export "),O("default "),$.visit(V.declaration),V.declaration.type!=="FunctionDeclaration")$.write(";")},ExportNamedDeclaration(V,$){if(V.declaration){let w=V.declaration;if(w.decorators&&w.decorators.length>0){for(let C of w.decorators)$.visit(C);V0($,V,"export"," ");let I=w.decorators;w.decorators=[],$.visit(V.declaration),w.decorators=I}else V0($,V,"export"," "),$.visit(V.declaration);return}let O=y9($,V);if(O("export "),V.exportKind==="type")if(n3(V))O("type ");else $.write("type ");if($.write("{"),R($,V.specifiers,V.source?.loc?.start??V.loc?.end??null,!0),$.write("}"),V.source)$.write(" from "),$.visit(V.source);$.write(";")},ExportSpecifier(V,$){if(V.exportKind==="type")$.write("type ");if($.visit(V.local),V.local.type==="Identifier"&&V.exported.type==="Identifier"&&V.local.name!==V.exported.name)$.write(" as "),$.visit(V.exported)},ExpressionStatement(V,$){if(V.expression.type==="ObjectExpression"||V.expression.type==="AssignmentExpression"&&V.expression.left.type==="ObjectPattern"||V.expression.type==="FunctionExpression"){$.write("("),$.visit(V.expression),$.write(");");return}$.visit(V.expression),$.write(";")},ForStatement:(V,$)=>{if(V0($,V,"for"," ("),V.init)if(V.init.type==="VariableDeclaration")KH(V.init,$);else $.visit(V.init);if($.write("; "),V.test)$.visit(V.test);if($.write("; "),V.update)$.visit(V.update);$.write(") "),$.visit(V.body)},ForInStatement:M["ForInStatement|ForOfStatement"],ForOfStatement:M["ForInStatement|ForOfStatement"],FunctionDeclaration:M["FunctionDeclaration|FunctionExpression"],FunctionExpression:M["FunctionDeclaration|FunctionExpression"],Identifier(V,$){let O=V.name;if($.write(O,V),V.typeAnnotation)$.visit(V.typeAnnotation)},IfStatement(V,$){if(V0($,V,"if"," ("),$.visit(V.test),$.write(") "),$.visit(V.consequent),V.alternate){$.space();let O=V.alternate.loc?.start,w=V.consequent.loc?.end;if(O&&w&&w.line===O.line&&O.column>=4)J6($,w.line,w.column+1,"else"),$.write(" ");else $.write("else ");$.visit(V.alternate)}},ImportDeclaration(V,$){if(V.specifiers.length===0){V0($,V,"import"," "),$.visit(V.source),$.write(";");return}let O=null,w=null,I=[];for(let E of V.specifiers)if(E.type==="ImportNamespaceSpecifier")O=E;else if(E.type==="ImportDefaultSpecifier")w=E;else I.push(E);let C=y9($,V);if(C("import "),V.importKind=="type")if(n3(V))C("type ");else $.write("type ");if(w){if($.write(w.local.name,w),O||I.length>0)$.write(", ")}if(O)$.write("* as "+O.local.name,O);if(I.length>0)$.write("{"),R($,I,V.source.loc?.start??null,!0),$.write("}");if($.write(" from "),$.visit(V.source),V.attributes&&V.attributes.length>0){$.write(" with { ");for(let E=0;E<V.attributes.length;E++){let{key:D,value:f}=V.attributes[E];if($.visit(D),$.write(": "),$.visit(f),E+1!==V.attributes.length)$.write(", ")}$.write(" }")}$.write(";")},ImportExpression(V,$){if(V0($,V,"import","("),$.visit(V.source),V.arguments)for(let O=0;O<V.arguments.length;O++)$.write(", "),$.visit(V.arguments[O]);if(V.options)$.write(", "),$.visit(V.options);$.write(")")},ImportSpecifier(V,$){if(V.importKind=="type")$.write("type ");if(V.local.type==="Identifier"&&V.imported.type==="Identifier"&&V.local.name!==V.imported.name)$.visit(V.imported),$.write(" as ");$.visit(V.local)},LabeledStatement(V,$){$.visit(V.label),$.write(": "),$.visit(V.body)},Literal(V,$){let O=V.raw||(typeof V.value==="string"?oq8(V.value,Z):String(V.value));$.write(O,V)},LogicalExpression:M["BinaryExpression|LogicalExpression"],MemberExpression(V,$){if(b0[V.object.type]<b0.MemberExpression)$.write("("),$.visit(V.object),$.write(")");else $.visit(V.object);if(V.computed){if(V.optional)$.write("?.");$.write("["),$.visit(V.property),$.write("]")}else $.write(V.optional?"?.":"."),$.visit(V.property)},MetaProperty(V,$){$.visit(V.meta),$.write("."),$.visit(V.property)},MethodDefinition:M["MethodDefinition|TSAbstractMethodDefinition"],NewExpression:M["CallExpression|NewExpression"],ObjectExpression(V,$){$.write("{"),R($,V.properties,V.loc?.end??null,!0),$.write("}")},ObjectPattern(V,$){if($.write("{"),R($,V.properties,V.loc?.end??null,!0),$.write("}"),V.typeAnnotation)$.visit(V.typeAnnotation)},ParenthesizedExpression(V,$){$.write("("),$.visit(V.expression),$.write(")")},PrivateIdentifier(V,$){$.write("#"),$.write(V.name,V)},Program(V,$){B($,V)},Property(V,$){let O=V.value.type==="AssignmentPattern"?V.value.left:V.value;if(!V.computed&&V.kind==="init"&&V.key.type==="Identifier"&&O.type==="Identifier"&&V.key.name===O.name){$.visit(V.value);return}if(V.value.type==="FunctionExpression"){let I=y9($,V);if(V.kind!=="init")I(V.kind+" ");if(V.value.async)I("async ");if(V.value.generator)$.write("*");if(V.computed)$.write("[");if($.visit(V.key),V.computed)$.write("]");if($.write("("),R($,V.value.params,(V.value.returnType??V.value.body).loc?.start??null,!1),$.write(")"),V.value.returnType)$.visit(V.value.returnType);$.write(" "),$.visit(V.value.body)}else{if(V.computed)$.write("[");if(V.kind==="get"||V.kind==="set")V0($,V,V.kind," ");$.visit(V.key),$.write(V.computed?"]: ":": "),$.visit(V.value)}},PropertyDefinition:M["PropertyDefinition|TSAbstractPropertyDefinition|AccessorProperty|TSAbstractAccessorProperty"],RestElement:M["RestElement|SpreadElement"],ReturnStatement(V,$){if(V.argument){let O=Q[Y]&&Q[Y].loc&&V.argument.loc&&f5(Q[Y].loc.start,V.argument.loc.start);V0($,V,"return",O?" (":" "),$.visit(V.argument),$.write(O?");":";")}else V0($,V,"return",";")},SequenceExpression(V,$){$.write("("),R($,V.expressions,V.loc?.end??null,!1),$.write(")")},SpreadElement:M["RestElement|SpreadElement"],StaticBlock(V,$){V0($,V,"static"," {"),$.indent(),$.newline(),B($,V),$.dedent(),$.newline(),$.write("}")},Super(V,$){$.write("super",V)},SwitchStatement(V,$){V0($,V,"switch"," ("),$.visit(V.discriminant),$.write(") {"),$.indent();let O=!0;for(let w of V.cases){if(!O)$.margin();if(O=!1,w.test)$.newline(),V0($,w,"case"," "),$.visit(w.test),$.write(":");else $.newline(),V0($,w,"default",":");$.indent();for(let I of w.consequent)$.newline(),$.visit(I);$.dedent()}$.dedent(),$.newline(),$.write("}")},TaggedTemplateExpression(V,$){$.visit(V.tag),$.visit(V.quasi)},TemplateLiteral(V,$){$.write("`");let{quasis:O,expressions:w}=V;for(let C=0;C<w.length;C++){let E=O[C].value.raw;if($.write(E+"${"),$.visit(w[C]),$.write("}"),/\n/.test(E))$.multiline=!0}let I=O[O.length-1].value.raw;if($.write(I+"`"),/\n/.test(I))$.multiline=!0},ThisExpression(V,$){$.write("this",V)},ThrowStatement(V,$){if(V0($,V,"throw"," "),V.argument)$.visit(V.argument);$.write(";")},TryStatement(V,$){if(V0($,V,"try"," "),$.visit(V.block),V.handler){if($.write(" "),V.handler.param)V0($,V.handler,"catch","("),$.visit(V.handler.param),$.write(") ");else V0($,V.handler,"catch"," ");$.visit(V.handler.body)}if(V.finalizer){let O=V.finalizer.loc?.start,w=V.handler?V.handler.loc?.end:V.block.loc?.end;if(O&&w&&w.line===O.line&&O.column>=7)$.write(" "),J6($,w.line,w.column+1,"finally"),$.write(" ");else $.write(" finally ");$.visit(V.finalizer)}},UnaryExpression(V,$){if($.write(V.operator),V.operator.length>1)$.write(" ");if(b0[V.argument.type]<b0.UnaryExpression)$.write("("),$.visit(V.argument),$.write(")");else $.visit(V.argument)},UpdateExpression(V,$){if(V.prefix)$.write(V.operator),$.visit(V.argument);else $.visit(V.argument),$.write(V.operator)},VariableDeclaration(V,$){KH(V,$),$.write(";")},VariableDeclarator(V,$){if($.visit(V.id),V.init)$.write(" = "),$.visit(V.init)},WhileStatement(V,$){V0($,V,"while"," ("),$.visit(V.test),$.write(") "),$.visit(V.body)},WithStatement(V,$){V0($,V,"with"," ("),$.visit(V.object),$.write(") "),$.visit(V.body)},YieldExpression(V,$){let O=V.delegate?"yield*":"yield";if(V.argument)V0($,V,O," "),$.visit(V.argument);else V0($,V,O,"")},TSAbstractMethodDefinition:M["MethodDefinition|TSAbstractMethodDefinition"],TSAbstractAccessorProperty:M["PropertyDefinition|TSAbstractPropertyDefinition|AccessorProperty|TSAbstractAccessorProperty"],TSAbstractPropertyDefinition:M["PropertyDefinition|TSAbstractPropertyDefinition|AccessorProperty|TSAbstractAccessorProperty"],TSDeclareFunction(V,$){let O=y9($,V);if(O("declare "),V.async)O("async ");if(O("function"),V.generator)$.write("*");if(V.id)$.write(" "),$.visit(V.id);if(V.typeParameters)$.visit(V.typeParameters);if($.write("("),R($,V.params,V.returnType?.loc?.start??V.loc?.end??null,!1),$.write(")"),V.returnType)$.visit(V.returnType);$.write(";")},TSNumberKeyword(V,$){$.write("number",V)},TSStringKeyword(V,$){$.write("string",V)},TSBooleanKeyword(V,$){$.write("boolean",V)},TSAnyKeyword(V,$){$.write("any",V)},TSVoidKeyword(V,$){$.write("void",V)},TSUnknownKeyword(V,$){$.write("unknown",V)},TSNeverKeyword(V,$){$.write("never",V)},TSSymbolKeyword(V,$){$.write("symbol",V)},TSNullKeyword(V,$){$.write("null",V)},TSUndefinedKeyword(V,$){$.write("undefined",V)},TSObjectKeyword(V,$){$.write("object",V)},TSBigIntKeyword(V,$){$.write("bigint",V)},TSIntrinsicKeyword(V,$){$.write("intrinsic",V)},TSArrayType(V,$){$.visit(V.elementType),$.write("[]")},TSTypeAnnotation(V,$){$.write(": "),$.visit(V.typeAnnotation)},TSTypeLiteral(V,$){$.write("{ "),R($,V.members,V.loc?.end??null,!1,";"),$.write(" }")},TSPropertySignature(V,$){if($.visit(V.key),V.optional)$.write("?");if(V.typeAnnotation)$.visit(V.typeAnnotation)},TSTypeReference(V,$){if($.visit(V.typeName),V.typeArguments)$.visit(V.typeArguments)},TSTypeOperator(V,$){if($.write(V.operator+" "),V.typeAnnotation)$.visit(V.typeAnnotation)},TSTemplateLiteralType(V,$){$.write("`");let{quasis:O,types:w}=V;for(let I=0;I<w.length;I++){let C=O[I].value.raw;if($.write(C+"${"),$.visit(w[I]),$.write("}"),/\n/.test(C))$.multiline=!0}$.write("`")},TSParameterProperty(V,$){if(V.accessibility)$.write(V.accessibility+" ");if(V.readonly)$.write("readonly ");$.visit(V.parameter)},TSExportAssignment(V,$){$.write("export = "),$.visit(V.expression),$.write(";")},TSNamespaceExportDeclaration(V,$){$.write("export as namespace "),$.visit(V.id),$.write(";")},TSExpressionWithTypeArguments(V,$){$.visit(V.expression)},TSTypeAssertion(V,$){if($.write("<"),$.visit(V.typeAnnotation),$.write(">"),b0[V.expression.type]<b0.TSTypeAssertion)$.write("("),$.visit(V.expression),$.write(")");else $.visit(V.expression)},TSTypeParameterInstantiation(V,$){$.write("<");for(let O=0;O<V.params.length;O++)if($.visit(V.params[O]),O!=V.params.length-1)$.write(", ");$.write(">")},TSTypeParameterDeclaration(V,$){$.write("<");for(let O=0;O<V.params.length;O++)if($.visit(V.params[O]),O!=V.params.length-1)$.write(", ");$.write(">")},TSTypeParameter(V,$){if(V.name&&V.name.type)$.visit(V.name);else $.write(V.name,V);if(V.constraint)$.write(" extends "),$.visit(V.constraint);if(V.default)$.write(" = "),$.visit(V.default)},TSTypePredicate(V,$){if(V.parameterName)$.visit(V.parameterName);else if(V.typeAnnotation)$.visit(V.typeAnnotation);if(V.asserts)$.write(" asserts ");else $.write(" is ");if(V.typeAnnotation)$.visit(V.typeAnnotation.typeAnnotation)},TSTypeQuery(V,$){$.write("typeof "),$.visit(V.exprName)},TSClassImplements(V,$){if(V.expression)$.visit(V.expression)},TSEnumMember(V,$){if($.visit(V.id),V.initializer)$.write(" = "),$.visit(V.initializer)},TSFunctionType:M["TSFunctionType|TSConstructorType"],TSIndexSignature(V,$){$.write("["),R($,V.parameters,V.typeAnnotation?.loc?.start??null,!1),$.write("]"),$.visit(V.typeAnnotation)},TSMappedType(V,$){$.write("{[");let O=V.typeParameter,w=V.key??O?.name,I=V.constraint??O?.constraint;if(w&&typeof w==="object")$.visit(w);else $.write(w,V);if(I)$.write(" in "),$.visit(I);if($.write("]"),V.typeAnnotation)$.write(": "),$.visit(V.typeAnnotation);$.write("}")},TSMethodSignature(V,$){if($.visit(V.key),$.write("("),R($,V.parameters??V.params,(V.typeAnnotation??V.returnType)?.loc?.start??null,!1),$.write(")"),V.typeAnnotation||V.returnType)$.visit(V.typeAnnotation??V.returnType)},TSTupleType(V,$){$.write("["),R($,V.elementTypes,V.loc?.end??null,!1),$.write("]")},TSNamedTupleMember(V,$){$.visit(V.label),$.write(": "),$.visit(V.elementType)},TSUnionType(V,$){R($,V.types,V.loc?.end??null,!1," |",!1)},TSIntersectionType(V,$){R($,V.types,V.loc?.end??null,!1," &",!1)},TSInferType(V,$){$.write("infer "),$.visit(V.typeParameter)},TSLiteralType(V,$){$.visit(V.literal)},TSCallSignatureDeclaration:M["TSConstructSignatureDeclaration|TSCallSignatureDeclaration"],TSConditionalType(V,$){$.visit(V.checkType),$.write(" extends "),$.visit(V.extendsType),$.write(" ? "),$.visit(V.trueType),$.write(" : "),$.visit(V.falseType)},TSConstructSignatureDeclaration:M["TSConstructSignatureDeclaration|TSCallSignatureDeclaration"],TSConstructorType:M["TSFunctionType|TSConstructorType"],TSExternalModuleReference(V,$){$.write("require("),$.visit(V.expression),$.write(");")},TSIndexedAccessType(V,$){$.visit(V.objectType),$.write("["),$.visit(V.indexType),$.write("]")},TSImportEqualsDeclaration(V,$){$.write("import "),$.visit(V.id),$.write(" = "),$.visit(V.moduleReference)},TSImportType(V,$){if($.write("import("),$.visit(V.argument),$.write(")"),V.qualifier)$.write("."),$.visit(V.qualifier)},TSOptionalType(V,$){$.visit(V.typeAnnotation),$.write("?")},TSRestType(V,$){$.write("..."),$.visit(V.typeAnnotation)},TSThisType(V,$){$.write("this",V)},TSAsExpression(V,$){if(V.expression)if(b0[V.expression.type]<b0.TSAsExpression)$.write("("),$.visit(V.expression),$.write(")");else $.visit(V.expression);$.write(" as "),$.visit(V.typeAnnotation)},TSEnumDeclaration(V,$){$.write("enum "),$.visit(V.id),$.write(" {"),$.indent(),$.newline(),R($,V.members??V.body.members,V.loc?.end??null,!1),$.dedent(),$.newline(),$.write("}")},TSModuleBlock(V,$){$.write(" {"),$.indent(),$.newline(),B($,V),$.dedent(),$.newline(),$.write("}")},TSModuleDeclaration(V,$){if(V.declare)$.write("declare ");if(V.global)$.write("global",V.id);else{let O=V.kind??(V.id.type==="Literal"?"module":"namespace");$.write(O+" "),$.visit(V.id)}if(!V.body)return;$.visit(V.body)},TSNonNullExpression(V,$){if(b0[V.expression.type]<b0.TSNonNullExpression)$.write("("),$.visit(V.expression),$.write(")");else $.visit(V.expression);$.write("!")},TSInterfaceBody(V,$){R($,V.body,V.loc?.end??null,!0,";")},TSInterfaceDeclaration(V,$){if($.write("interface "),$.visit(V.id),V.typeParameters)$.visit(V.typeParameters);if(V.extends&&V.extends.length>0)$.write(" extends "),R($,V.extends,V.body.loc?.start??null,!1);$.write(" {"),$.visit(V.body),$.write("}")},TSInstantiationExpression(V,$){$.visit(V.expression),$.visit(V.typeArguments)},TSInterfaceHeritage(V,$){if(V.expression)$.visit(V.expression)},TSParenthesizedType(V,$){$.write("("),$.visit(V.typeAnnotation),$.write(")")},TSSatisfiesExpression(V,$){if(V.expression)if(b0[V.expression.type]<b0.TSSatisfiesExpression)$.write("("),$.visit(V.expression),$.write(")");else $.visit(V.expression);$.write(" satisfies "),$.visit(V.typeAnnotation)},TSTypeAliasDeclaration(V,$){if($.write("type "),$.visit(V.id),V.typeParameters)$.visit(V.typeParameters);$.write(" = "),$.visit(V.typeAnnotation),$.write(";")},TSQualifiedName(V,$){$.visit(V.left),$.write("."),$.visit(V.right)}}};function QS(q){if(q.type==="BlockStatement")return!1;switch(q.type){case"ObjectExpression":return!0;case"AssignmentExpression":return q.left.type==="ObjectPattern";case"LogicalExpression":return q.left.type==="ObjectExpression";case"ConditionalExpression":return q.test.type==="ObjectExpression";case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":return q.expression?QS(q.expression):!1;default:return!1}}function ZS(q,Z,Q){if(q.type==="PrivateIdentifier")return!1;if(!Q&&(q.type==="TSAsExpression"||q.type==="TSSatisfiesExpression"))return Z.operator==="**"||Z.operator==="&"||Z.operator==="|";if(q.type==="LogicalExpression"&&Z.type==="LogicalExpression"&&(Z.operator==="??"&&q.operator!=="??"||Z.operator!=="??"&&q.operator==="??"))return!0;let Y=b0[q.type],J=b0[Z.type];if(Y!==J)return!Q&&Y===15&&J===14&&Z.operator==="**"||Y<J;if(Y!==12&&Y!==14)return!1;if(q.operator==="**"&&Z.operator==="**")return!Q;if(Q)return o3[q.operator]<=o3[Z.operator];return o3[q.operator]<o3[Z.operator]}function aq8(q){while(q)if(q.type==="CallExpression")return!0;else if(q.type==="MemberExpression")q=q.object;else return!1}function KH(q,Z){let Q=Z.new(),Y=Z.new(),J=Z.new();Z.append(J);let H=y9(J,q);if(q.declare)H("declare ");H(q.kind+" "),J.append(Q);let X=!0;for(let R of q.declarations){if(!X)J.append(Y);X=!1,J.visit(R)}let G=J.measure()+2*(q.declarations.length-1);if(J.multiline||q.declarations.length>1&&G>50){if(Z.multiline=!0,q.declarations.length>1)Q.indent();if(Y.write(","),Y.newline(),q.declarations.length>1)Z.dedent()}else Y.write(", ")}function oq8(q,Z){let Q=Z;for(let Y of q)if(Y==="\\")Q+="\\\\";else if(Y===Z)Q+="\\"+Y;else if(Y===`
|
|
234
|
-
`)Q+="\\n";else if(Y==="\r")Q+="\\r";else Q+=Y;return Q+Z}function f5(q,Z){if(q.line<Z.line)return!0;if(q.line>Z.line)return!1;return q.column<Z.column}class t3{constructor(q){this.bits=q instanceof t3?q.bits.slice():[]}add(q){this.bits[q>>5]|=1<<(q&31)}has(q){return!!(this.bits[q>>5]&1<<(q&31))}}class Rq{constructor(q,Z,Q){this.start=q,this.end=Z,this.original=Q,this.intro="",this.outro="",this.content=Q,this.storeName=!1,this.edited=!1,this.previous=null,this.next=null}appendLeft(q){this.outro+=q}appendRight(q){this.intro=this.intro+q}clone(){let q=new Rq(this.start,this.end,this.original);return q.intro=this.intro,q.outro=this.outro,q.content=this.content,q.storeName=this.storeName,q.edited=this.edited,q}contains(q){return this.start<q&&q<this.end}eachNext(q){let Z=this;while(Z)q(Z),Z=Z.next}eachPrevious(q){let Z=this;while(Z)q(Z),Z=Z.previous}edit(q,Z,Q){if(this.content=q,!Q)this.intro="",this.outro="";return this.storeName=Z,this.edited=!0,this}prependLeft(q){this.outro=q+this.outro}prependRight(q){this.intro=q+this.intro}reset(){if(this.intro="",this.outro="",this.edited)this.content=this.original,this.storeName=!1,this.edited=!1}split(q){let Z=q-this.start,Q=this.original.slice(0,Z),Y=this.original.slice(Z);this.original=Q;let J=new Rq(q,this.end,Y);if(J.outro=this.outro,this.outro="",this.end=q,this.edited)J.edit("",!1),this.content="";else this.content=Q;if(J.next=this.next,J.next)J.next.previous=J;return J.previous=this,this.next=J,J}toString(){return this.intro+this.content+this.outro}trimEnd(q){if(this.outro=this.outro.replace(q,""),this.outro.length)return!0;let Z=this.content.replace(q,"");if(Z.length){if(Z!==this.content){if(this.split(this.start+Z.length).edit("",void 0,!0),this.edited)this.edit(Z,this.storeName,!0)}return!0}else if(this.edit("",void 0,!0),this.intro=this.intro.replace(q,""),this.intro.length)return!0}trimStart(q){if(this.intro=this.intro.replace(q,""),this.intro.length)return!0;let Z=this.content.replace(q,"");if(Z.length){if(Z!==this.content){let Q=this.split(this.end-Z.length);if(this.edited)Q.edit(Z,this.storeName,!0);this.edit("",void 0,!0)}return!0}else if(this.edit("",void 0,!0),this.outro=this.outro.replace(q,""),this.outro.length)return!0}}function nq8(){if(typeof globalThis<"u"&&typeof globalThis.btoa==="function")return(q)=>globalThis.btoa(unescape(encodeURIComponent(q)));else if(typeof Buffer==="function")return(q)=>Buffer.from(q,"utf-8").toString("base64");else return()=>{throw Error("Unsupported environment: `window.btoa` or `Buffer` should be supported.")}}var tq8=nq8();class JS{constructor(q){if(this.version=3,this.file=q.file,this.sources=q.sources,this.sourcesContent=q.sourcesContent,this.names=q.names,this.mappings=C7(q.mappings),typeof q.x_google_ignoreList<"u")this.x_google_ignoreList=q.x_google_ignoreList;if(typeof q.debugId<"u")this.debugId=q.debugId}toString(){return JSON.stringify(this)}toUrl(){return"data:application/json;charset=utf-8;base64,"+tq8(this.toString())}}function eq8(q){let Z=q.split(`
|
|
235
|
-
`),Q=Z.filter((H)=>/^\t+/.test(H)),Y=Z.filter((H)=>/^ {2,}/.test(H));if(Q.length===0&&Y.length===0)return null;if(Q.length>=Y.length)return"\t";let J=Y.reduce((H,X)=>{let G=/^ +/.exec(X)[0].length;return Math.min(G,H)},1/0);return Array(J+1).join(" ")}function q48(q,Z){let Q=q.split(/[/\\]/),Y=Z.split(/[/\\]/);Q.pop();while(Q[0]===Y[0])Q.shift(),Y.shift();if(Q.length){let J=Q.length;while(J--)Q[J]=".."}return Q.concat(Y).join("/")}var Z48=Object.prototype.toString;function Q48(q){return Z48.call(q)==="[object Object]"}function YS(q){let Z=q.split(`
|
|
236
|
-
`),Q=[];for(let Y=0,J=0;Y<Z.length;Y++)Q.push(J),J+=Z[Y].length+1;return function(J){let H=0,X=Q.length;while(H<X){let R=H+X>>1;if(J<Q[R])X=R;else H=R+1}let G=H-1,W=J-Q[G];return{line:G,column:W}}}var Y48=/\w/;class HS{constructor(q){this.hires=q,this.generatedCodeLine=0,this.generatedCodeColumn=0,this.raw=[],this.rawSegments=this.raw[this.generatedCodeLine]=[],this.pending=null}addEdit(q,Z,Q,Y){if(Z.length){let J=Z.length-1,H=Z.indexOf(`
|
|
237
|
-
`,0),X=-1;while(H>=0&&J>H){let W=[this.generatedCodeColumn,q,Q.line,Q.column];if(Y>=0)W.push(Y);this.rawSegments.push(W),this.generatedCodeLine+=1,this.raw[this.generatedCodeLine]=this.rawSegments=[],this.generatedCodeColumn=0,X=H,H=Z.indexOf(`
|
|
238
|
-
`,H+1)}let G=[this.generatedCodeColumn,q,Q.line,Q.column];if(Y>=0)G.push(Y);this.rawSegments.push(G),this.advance(Z.slice(X+1))}else if(this.pending)this.rawSegments.push(this.pending),this.advance(Z);this.pending=null}addUneditedChunk(q,Z,Q,Y,J){let H=Z.start,X=!0,G=!1;while(H<Z.end){if(Q[H]===`
|
|
239
|
-
`)Y.line+=1,Y.column=0,this.generatedCodeLine+=1,this.raw[this.generatedCodeLine]=this.rawSegments=[],this.generatedCodeColumn=0,X=!0,G=!1;else{if(this.hires||X||J.has(H)){let W=[this.generatedCodeColumn,q,Y.line,Y.column];if(this.hires==="boundary")if(Y48.test(Q[H])){if(!G)this.rawSegments.push(W),G=!0}else this.rawSegments.push(W),G=!1;else this.rawSegments.push(W)}Y.column+=1,this.generatedCodeColumn+=1,X=!1}H+=1}this.pending=null}advance(q){if(!q)return;let Z=q.split(`
|
|
240
|
-
`);if(Z.length>1){for(let Q=0;Q<Z.length-1;Q++)this.generatedCodeLine++,this.raw[this.generatedCodeLine]=this.rawSegments=[];this.generatedCodeColumn=0}this.generatedCodeColumn+=Z[Z.length-1].length}}var Uq=`
|
|
241
|
-
`,K5={insertLeft:!1,insertRight:!1,storeName:!1};class e3{constructor(q,Z={}){let Q=new Rq(0,q.length,q);Object.defineProperties(this,{original:{writable:!0,value:q},outro:{writable:!0,value:""},intro:{writable:!0,value:""},firstChunk:{writable:!0,value:Q},lastChunk:{writable:!0,value:Q},lastSearchedChunk:{writable:!0,value:Q},byStart:{writable:!0,value:{}},byEnd:{writable:!0,value:{}},filename:{writable:!0,value:Z.filename},indentExclusionRanges:{writable:!0,value:Z.indentExclusionRanges},sourcemapLocations:{writable:!0,value:new t3},storedNames:{writable:!0,value:{}},indentStr:{writable:!0,value:void 0},ignoreList:{writable:!0,value:Z.ignoreList},offset:{writable:!0,value:Z.offset||0}}),this.byStart[0]=Q,this.byEnd[q.length]=Q}addSourcemapLocation(q){this.sourcemapLocations.add(q)}append(q){if(typeof q!=="string")throw TypeError("outro content must be a string");return this.outro+=q,this}appendLeft(q,Z){if(q=q+this.offset,typeof Z!=="string")throw TypeError("inserted content must be a string");this._split(q);let Q=this.byEnd[q];if(Q)Q.appendLeft(Z);else this.intro+=Z;return this}appendRight(q,Z){if(q=q+this.offset,typeof Z!=="string")throw TypeError("inserted content must be a string");this._split(q);let Q=this.byStart[q];if(Q)Q.appendRight(Z);else this.outro+=Z;return this}clone(){let q=new e3(this.original,{filename:this.filename,offset:this.offset}),Z=this.firstChunk,Q=q.firstChunk=q.lastSearchedChunk=Z.clone();while(Z){q.byStart[Q.start]=Q,q.byEnd[Q.end]=Q;let Y=Z.next,J=Y&&Y.clone();if(J)Q.next=J,J.previous=Q,Q=J;Z=Y}if(q.lastChunk=Q,this.indentExclusionRanges)q.indentExclusionRanges=this.indentExclusionRanges.slice();return q.sourcemapLocations=new t3(this.sourcemapLocations),q.intro=this.intro,q.outro=this.outro,q}generateDecodedMap(q){q=q||{};let Z=0,Q=Object.keys(this.storedNames),Y=new HS(q.hires),J=YS(this.original);if(this.intro)Y.advance(this.intro);if(this.firstChunk.eachNext((H)=>{let X=J(H.start);if(H.intro.length)Y.advance(H.intro);if(H.edited)Y.addEdit(Z,H.content,X,H.storeName?Q.indexOf(H.original):-1);else Y.addUneditedChunk(Z,H,this.original,X,this.sourcemapLocations);if(H.outro.length)Y.advance(H.outro)}),this.outro)Y.advance(this.outro);return{file:q.file?q.file.split(/[/\\]/).pop():void 0,sources:[q.source?q48(q.file||"",q.source):q.file||""],sourcesContent:q.includeContent?[this.original]:void 0,names:Q,mappings:Y.raw,x_google_ignoreList:this.ignoreList?[Z]:void 0}}generateMap(q){return new JS(this.generateDecodedMap(q))}_ensureindentStr(){if(this.indentStr===void 0)this.indentStr=eq8(this.original)}_getRawIndentString(){return this._ensureindentStr(),this.indentStr}getIndentString(){return this._ensureindentStr(),this.indentStr===null?"\t":this.indentStr}indent(q,Z){let Q=/^[^\r\n]/gm;if(Q48(q))Z=q,q=void 0;if(q===void 0)this._ensureindentStr(),q=this.indentStr||"\t";if(q==="")return this;Z=Z||{};let Y={};if(Z.exclude)(typeof Z.exclude[0]==="number"?[Z.exclude]:Z.exclude).forEach((R)=>{for(let B=R[0];B<R[1];B+=1)Y[B]=!0});let J=Z.indentStart!==!1,H=(W)=>{if(J)return`${q}${W}`;return J=!0,W};this.intro=this.intro.replace(Q,H);let X=0,G=this.firstChunk;while(G){let W=G.end;if(G.edited){if(!Y[X]){if(G.content=G.content.replace(Q,H),G.content.length)J=G.content[G.content.length-1]===`
|
|
242
|
-
`}}else{X=G.start;while(X<W){if(!Y[X]){let R=this.original[X];if(R===`
|
|
243
|
-
`)J=!0;else if(R!=="\r"&&J)if(J=!1,X===G.start)G.prependRight(q);else this._splitChunk(G,X),G=G.next,G.prependRight(q)}X+=1}}X=G.end,G=G.next}return this.outro=this.outro.replace(Q,H),this}insert(){throw Error("magicString.insert(...) is deprecated. Use prependRight(...) or appendLeft(...)")}insertLeft(q,Z){if(!K5.insertLeft)console.warn("magicString.insertLeft(...) is deprecated. Use magicString.appendLeft(...) instead"),K5.insertLeft=!0;return this.appendLeft(q,Z)}insertRight(q,Z){if(!K5.insertRight)console.warn("magicString.insertRight(...) is deprecated. Use magicString.prependRight(...) instead"),K5.insertRight=!0;return this.prependRight(q,Z)}move(q,Z,Q){if(q=q+this.offset,Z=Z+this.offset,Q=Q+this.offset,Q>=q&&Q<=Z)throw Error("Cannot move a selection inside itself");this._split(q),this._split(Z),this._split(Q);let Y=this.byStart[q],J=this.byEnd[Z],H=Y.previous,X=J.next,G=this.byStart[Q];if(!G&&J===this.lastChunk)return this;let W=G?G.previous:this.lastChunk;if(H)H.next=X;if(X)X.previous=H;if(W)W.next=Y;if(G)G.previous=J;if(!Y.previous)this.firstChunk=J.next;if(!J.next)this.lastChunk=Y.previous,this.lastChunk.next=null;if(Y.previous=W,J.next=G||null,!W)this.firstChunk=Y;if(!G)this.lastChunk=J;return this}overwrite(q,Z,Q,Y){return Y=Y||{},this.update(q,Z,Q,{...Y,overwrite:!Y.contentOnly})}update(q,Z,Q,Y){if(q=q+this.offset,Z=Z+this.offset,typeof Q!=="string")throw TypeError("replacement content must be a string");if(this.original.length!==0){while(q<0)q+=this.original.length;while(Z<0)Z+=this.original.length}if(Z>this.original.length)throw Error("end is out of bounds");if(q===Z)throw Error("Cannot overwrite a zero-length range – use appendLeft or prependRight instead");if(this._split(q),this._split(Z),Y===!0){if(!K5.storeName)console.warn("The final argument to magicString.overwrite(...) should be an options object. See https://github.com/rich-harris/magic-string"),K5.storeName=!0;Y={storeName:!0}}let J=Y!==void 0?Y.storeName:!1,H=Y!==void 0?Y.overwrite:!1;if(J){let W=this.original.slice(q,Z);Object.defineProperty(this.storedNames,W,{writable:!0,value:!0,enumerable:!0})}let X=this.byStart[q],G=this.byEnd[Z];if(X){let W=X;while(W!==G){if(W.next!==this.byStart[W.end])throw Error("Cannot overwrite across a split point");W=W.next,W.edit("",!1)}X.edit(Q,J,!H)}else{let W=new Rq(q,Z,"").edit(Q,J);G.next=W,W.previous=G}return this}prepend(q){if(typeof q!=="string")throw TypeError("outro content must be a string");return this.intro=q+this.intro,this}prependLeft(q,Z){if(q=q+this.offset,typeof Z!=="string")throw TypeError("inserted content must be a string");this._split(q);let Q=this.byEnd[q];if(Q)Q.prependLeft(Z);else this.intro=Z+this.intro;return this}prependRight(q,Z){if(q=q+this.offset,typeof Z!=="string")throw TypeError("inserted content must be a string");this._split(q);let Q=this.byStart[q];if(Q)Q.prependRight(Z);else this.outro=Z+this.outro;return this}remove(q,Z){if(q=q+this.offset,Z=Z+this.offset,this.original.length!==0){while(q<0)q+=this.original.length;while(Z<0)Z+=this.original.length}if(q===Z)return this;if(q<0||Z>this.original.length)throw Error("Character is out of bounds");if(q>Z)throw Error("end must be greater than start");this._split(q),this._split(Z);let Q=this.byStart[q];while(Q)Q.intro="",Q.outro="",Q.edit(""),Q=Z>Q.end?this.byStart[Q.end]:null;return this}reset(q,Z){if(q=q+this.offset,Z=Z+this.offset,this.original.length!==0){while(q<0)q+=this.original.length;while(Z<0)Z+=this.original.length}if(q===Z)return this;if(q<0||Z>this.original.length)throw Error("Character is out of bounds");if(q>Z)throw Error("end must be greater than start");this._split(q),this._split(Z);let Q=this.byStart[q];while(Q)Q.reset(),Q=Z>Q.end?this.byStart[Q.end]:null;return this}lastChar(){if(this.outro.length)return this.outro[this.outro.length-1];let q=this.lastChunk;do{if(q.outro.length)return q.outro[q.outro.length-1];if(q.content.length)return q.content[q.content.length-1];if(q.intro.length)return q.intro[q.intro.length-1]}while(q=q.previous);if(this.intro.length)return this.intro[this.intro.length-1];return""}lastLine(){let q=this.outro.lastIndexOf(Uq);if(q!==-1)return this.outro.substr(q+1);let Z=this.outro,Q=this.lastChunk;do{if(Q.outro.length>0){if(q=Q.outro.lastIndexOf(Uq),q!==-1)return Q.outro.substr(q+1)+Z;Z=Q.outro+Z}if(Q.content.length>0){if(q=Q.content.lastIndexOf(Uq),q!==-1)return Q.content.substr(q+1)+Z;Z=Q.content+Z}if(Q.intro.length>0){if(q=Q.intro.lastIndexOf(Uq),q!==-1)return Q.intro.substr(q+1)+Z;Z=Q.intro+Z}}while(Q=Q.previous);if(q=this.intro.lastIndexOf(Uq),q!==-1)return this.intro.substr(q+1)+Z;return this.intro+Z}slice(q=0,Z=this.original.length-this.offset){if(q=q+this.offset,Z=Z+this.offset,this.original.length!==0){while(q<0)q+=this.original.length;while(Z<0)Z+=this.original.length}let Q="",Y=this.firstChunk;while(Y&&(Y.start>q||Y.end<=q)){if(Y.start<Z&&Y.end>=Z)return Q;Y=Y.next}if(Y&&Y.edited&&Y.start!==q)throw Error(`Cannot use replaced character ${q} as slice start anchor.`);let J=Y;while(Y){if(Y.intro&&(J!==Y||Y.start===q))Q+=Y.intro;let H=Y.start<Z&&Y.end>=Z;if(H&&Y.edited&&Y.end!==Z)throw Error(`Cannot use replaced character ${Z} as slice end anchor.`);let X=J===Y?q-Y.start:0,G=H?Y.content.length+Z-Y.end:Y.content.length;if(Q+=Y.content.slice(X,G),Y.outro&&(!H||Y.end===Z))Q+=Y.outro;if(H)break;Y=Y.next}return Q}snip(q,Z){let Q=this.clone();return Q.remove(0,q),Q.remove(Z,Q.original.length),Q}_split(q){if(this.byStart[q]||this.byEnd[q])return;let Z=this.lastSearchedChunk,Q=Z,Y=q>Z.end;while(Z){if(Z.contains(q))return this._splitChunk(Z,q);if(Z=Y?this.byStart[Z.end]:this.byEnd[Z.start],Z===Q)return;Q=Z}}_splitChunk(q,Z){if(q.edited&&q.content.length){let Y=YS(this.original)(Z);throw Error(`Cannot split a chunk that has already been edited (${Y.line}:${Y.column} – "${q.original}")`)}let Q=q.split(Z);if(this.byEnd[Z]=q,this.byStart[Z]=Q,this.byEnd[Q.end]=Q,q===this.lastChunk)this.lastChunk=Q;return this.lastSearchedChunk=q,!0}toString(){let q=this.intro,Z=this.firstChunk;while(Z)q+=Z.toString(),Z=Z.next;return q+this.outro}isEmpty(){let q=this.firstChunk;do if(q.intro.length&&q.intro.trim()||q.content.length&&q.content.trim()||q.outro.length&&q.outro.trim())return!1;while(q=q.next);return!0}length(){let q=this.firstChunk,Z=0;do Z+=q.intro.length+q.content.length+q.outro.length;while(q=q.next);return Z}trimLines(){return this.trim("[\\r\\n]")}trim(q){return this.trimStart(q).trimEnd(q)}trimEndAborted(q){let Z=new RegExp((q||"\\s")+"+$");if(this.outro=this.outro.replace(Z,""),this.outro.length)return!0;let Q=this.lastChunk;do{let Y=Q.end,J=Q.trimEnd(Z);if(Q.end!==Y){if(this.lastChunk===Q)this.lastChunk=Q.next;this.byEnd[Q.end]=Q,this.byStart[Q.next.start]=Q.next,this.byEnd[Q.next.end]=Q.next}if(J)return!0;Q=Q.previous}while(Q);return!1}trimEnd(q){return this.trimEndAborted(q),this}trimStartAborted(q){let Z=new RegExp("^"+(q||"\\s")+"+");if(this.intro=this.intro.replace(Z,""),this.intro.length)return!0;let Q=this.firstChunk;do{let Y=Q.end,J=Q.trimStart(Z);if(Q.end!==Y){if(Q===this.lastChunk)this.lastChunk=Q.next;this.byEnd[Q.end]=Q,this.byStart[Q.next.start]=Q.next,this.byEnd[Q.next.end]=Q.next}if(J)return!0;Q=Q.next}while(Q);return!1}trimStart(q){return this.trimStartAborted(q),this}hasChanged(){return this.original!==this.toString()}_replaceRegexp(q,Z){function Q(J,H){if(typeof Z==="string")return Z.replace(/\$(\$|&|\d+)/g,(X,G)=>{if(G==="$")return"$";if(G==="&")return J[0];if(+G<J.length)return J[+G];return`$${G}`});else return Z(...J,J.index,H,J.groups)}function Y(J,H){let X,G=[];while(X=J.exec(H))G.push(X);return G}if(q.global)Y(q,this.original).forEach((H)=>{if(H.index!=null){let X=Q(H,this.original);if(X!==H[0])this.overwrite(H.index,H.index+H[0].length,X)}});else{let J=this.original.match(q);if(J&&J.index!=null){let H=Q(J,this.original);if(H!==J[0])this.overwrite(J.index,J.index+J[0].length,H)}}return this}_replaceString(q,Z){let{original:Q}=this,Y=Q.indexOf(q);if(Y!==-1){if(typeof Z==="function")Z=Z(q,Y,Q);if(q!==Z)this.overwrite(Y,Y+q.length,Z)}return this}replace(q,Z){if(typeof q==="string")return this._replaceString(q,Z);return this._replaceRegexp(q,Z)}_replaceAllString(q,Z){let{original:Q}=this,Y=q.length;for(let J=Q.indexOf(q);J!==-1;J=Q.indexOf(q,J+Y)){let H=Q.slice(J,J+Y),X=Z;if(typeof Z==="function")X=Z(H,J,Q);if(H!==X)this.overwrite(J,J+Y,X)}return this}replaceAll(q,Z){if(typeof q==="string")return this._replaceAllString(q,Z);if(!q.global)throw TypeError("MagicString.prototype.replaceAll called with a non-global RegExp argument");return this._replaceRegexp(q,Z)}}var J48=/^[\w+.-]+:\/\//,H48=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,X48=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;function G48(q){return J48.test(q)}function V48(q){return q.startsWith("//")}function VS(q){return q.startsWith("/")}function W48(q){return q.startsWith("file:")}function XS(q){return/^[.?#]/.test(q)}function qZ(q){let Z=H48.exec(q);return WS(Z[1],Z[2]||"",Z[3],Z[4]||"",Z[5]||"/",Z[6]||"",Z[7]||"")}function $48(q){let Z=X48.exec(q),Q=Z[2];return WS("file:","",Z[1]||"","",VS(Q)?Q:"/"+Q,Z[3]||"",Z[4]||"")}function WS(q,Z,Q,Y,J,H,X){return{scheme:q,user:Z,host:Q,port:Y,path:J,query:H,hash:X,type:7}}function GS(q){if(V48(q)){let Q=qZ("http:"+q);return Q.scheme="",Q.type=6,Q}if(VS(q)){let Q=qZ("http://foo.com"+q);return Q.scheme="",Q.host="",Q.type=5,Q}if(W48(q))return $48(q);if(G48(q))return qZ(q);let Z=qZ("http://foo.com/"+q);return Z.scheme="",Z.host="",Z.type=q?q.startsWith("?")?3:q.startsWith("#")?2:4:1,Z}function U48(q){if(q.endsWith("/.."))return q;let Z=q.lastIndexOf("/");return q.slice(0,Z+1)}function R48(q,Z){if($S(Z,Z.type),q.path==="/")q.path=Z.path;else q.path=U48(Z.path)+q.path}function $S(q,Z){let Q=Z<=4,Y=q.path.split("/"),J=1,H=0,X=!1;for(let W=1;W<Y.length;W++){let R=Y[W];if(!R){X=!0;continue}if(X=!1,R===".")continue;if(R===".."){if(H)X=!0,H--,J--;else if(Q)Y[J++]=R;continue}Y[J++]=R,H++}let G="";for(let W=1;W<J;W++)G+="/"+Y[W];if(!G||X&&!G.endsWith("/.."))G+="/";q.path=G}function US(q,Z){if(!q&&!Z)return"";let Q=GS(q),Y=Q.type;if(Z&&Y!==7){let H=GS(Z),X=H.type;switch(Y){case 1:Q.hash=H.hash;case 2:Q.query=H.query;case 3:case 4:R48(Q,H);case 5:Q.user=H.user,Q.host=H.host,Q.port=H.port;case 6:Q.scheme=H.scheme}if(X>Y)Y=X}$S(Q,Y);let J=Q.query+Q.hash;switch(Y){case 2:case 3:return J;case 4:{let H=Q.path.slice(1);if(!H)return J||".";if(XS(Z||q)&&!XS(H))return"./"+H+J;return H+J}case 5:return Q.path+J;default:return Q.scheme+"//"+Q.user+Q.host+Q.port+Q.path+J}}function z48(q){if(!q)return"";let Z=q.lastIndexOf("/");return q.slice(0,Z+1)}function B48(q,Z){let Q=z48(q),Y=Z?Z+"/":"";return(J)=>US(Y+(J||""),Q)}var x6=0;function M48(q,Z){let Q=RS(q,0);if(Q===q.length)return q;if(!Z)q=q.slice();for(let Y=Q;Y<q.length;Y=RS(q,Y+1))q[Y]=L48(q[Y],Z);return q}function RS(q,Z){for(let Q=Z;Q<q.length;Q++)if(!P48(q[Q]))return Q;return q.length}function P48(q){for(let Z=1;Z<q.length;Z++)if(q[Z][x6]<q[Z-1][x6])return!1;return!0}function L48(q,Z){if(!Z)q=q.slice();return q.sort(O48)}function O48(q,Z){return q[x6]-Z[x6]}var ZZ=!1;function w48(q,Z,Q,Y){while(Q<=Y){let J=Q+(Y-Q>>1),H=q[J][x6]-Z;if(H===0)return ZZ=!0,J;if(H<0)Q=J+1;else Y=J-1}return ZZ=!1,Q-1}function A48(q,Z,Q){for(let Y=Q+1;Y<q.length;Q=Y++)if(q[Y][x6]!==Z)break;return Q}function j48(q,Z,Q){for(let Y=Q-1;Y>=0;Q=Y--)if(q[Y][x6]!==Z)break;return Q}function I48(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function D48(q,Z,Q,Y){let{lastKey:J,lastNeedle:H,lastIndex:X}=Q,G=0,W=q.length-1;if(Y===J){if(Z===H)return ZZ=X!==-1&&q[X][x6]===Z,X;if(Z>=H)G=X===-1?0:X;else W=X}return Q.lastKey=Y,Q.lastNeedle=Z,Q.lastIndex=w48(q,Z,G,W)}function C48(q){return typeof q==="string"?JSON.parse(q):q}var zS=-1,E48=1,QZ=class{constructor(q,Z){let Q=typeof q==="string";if(!Q&&q._decodedMemo)return q;let Y=C48(q),{version:J,file:H,names:X,sourceRoot:G,sources:W,sourcesContent:R}=Y;this.version=J,this.file=H,this.names=X||[],this.sourceRoot=G,this.sources=W,this.sourcesContent=R,this.ignoreList=Y.ignoreList||Y.x_google_ignoreList||void 0;let B=B48(Z,G);this.resolvedSources=W.map(B);let{mappings:M}=Y;if(typeof M==="string")this._encoded=M,this._decoded=void 0;else if(Array.isArray(M))this._encoded=void 0,this._decoded=M48(M,Q);else if(Y.sections)throw Error("TraceMap passed sectioned source map, please use FlattenMap export instead");else throw Error(`invalid source map: ${JSON.stringify(Y)}`);this._decodedMemo=I48(),this._bySources=void 0,this._bySourceMemos=void 0}};function NH(q){return q}function YZ(q){var Z;return(Z=NH(q))._decoded||(Z._decoded=EH(NH(q)._encoded))}function BS(q,Z,Q){let Y=YZ(q);if(Z>=Y.length)return null;let J=Y[Z],H=F48(J,NH(q)._decodedMemo,Z,Q,E48);return H===-1?null:J[H]}function F48(q,Z,Q,Y,J){let H=D48(q,Y,Z,Q);if(ZZ)H=(J===zS?A48:j48)(q,Y,H);else if(J===zS)H++;if(H===-1||H===q.length)return-1;return H}var kH=class{constructor(){this._indexes={__proto__:null},this.array=[]}};function SH(q){return q}function LS(q,Z){return SH(q)._indexes[Z]}function zq(q,Z){let Q=LS(q,Z);if(Q!==void 0)return Q;let{array:Y,_indexes:J}=SH(q),H=Y.push(Z);return J[Z]=H-1}function T48(q,Z){let Q=LS(q,Z);if(Q===void 0)return;let{array:Y,_indexes:J}=SH(q);for(let H=Q+1;H<Y.length;H++){let X=Y[H];Y[H-1]=X,J[X]--}J[Z]=void 0,Y.pop()}var f48=0,K48=1,v48=2,N48=3,k48=4,OS=-1,wS=class{constructor({file:q,sourceRoot:Z}={}){this._names=new kH,this._sources=new kH,this._sourcesContent=[],this._mappings=[],this.file=q,this.sourceRoot=Z,this._ignoreList=new kH}};function JZ(q){return q}var AS=(q,Z,Q,Y,J,H,X,G)=>{return S48(!0,q,Z,Q,Y,J,H,X,G)};function jS(q,Z,Q){let{_sources:Y,_sourcesContent:J}=JZ(q),H=zq(Y,Z);J[H]=Q}function IS(q,Z,Q=!0){let{_sources:Y,_sourcesContent:J,_ignoreList:H}=JZ(q),X=zq(Y,Z);if(X===J.length)J[X]=null;if(Q)zq(H,X);else T48(H,X)}function uH(q){let{_mappings:Z,_sources:Q,_sourcesContent:Y,_names:J,_ignoreList:H}=JZ(q);return h48(Z),{version:3,file:q.file||void 0,names:J.array,sourceRoot:q.sourceRoot||void 0,sources:Q.array,sourcesContent:Y,mappings:Z,ignoreList:H.array}}function DS(q){let Z=uH(q);return Object.assign({},Z,{mappings:C7(Z.mappings)})}function S48(q,Z,Q,Y,J,H,X,G,W){let{_mappings:R,_sources:B,_sourcesContent:M,_names:V}=JZ(Z),$=u48(R,Q),O=b48($,Y);if(!J){if(q&&y48($,O))return;return PS($,O,[Y])}MS(H),MS(X);let w=zq(B,J),I=G?zq(V,G):OS;if(w===M.length)M[w]=W!=null?W:null;if(q&&_48($,O,w,H,X,I))return;return PS($,O,G?[Y,w,H,X,I]:[Y,w,H,X])}function MS(q){}function u48(q,Z){for(let Q=q.length;Q<=Z;Q++)q[Q]=[];return q[Z]}function b48(q,Z){let Q=q.length;for(let Y=Q-1;Y>=0;Q=Y--){let J=q[Y];if(Z>=J[f48])break}return Q}function PS(q,Z,Q){for(let Y=q.length;Y>Z;Y--)q[Y]=q[Y-1];q[Z]=Q}function h48(q){let{length:Z}=q,Q=Z;for(let Y=Q-1;Y>=0;Q=Y,Y--)if(q[Y].length>0)break;if(Q<Z)q.length=Q}function y48(q,Z){if(Z===0)return!0;return q[Z-1].length===1}function _48(q,Z,Q,Y,J,H){if(Z===0)return!1;let X=q[Z-1];if(X.length===1)return!1;return Q===X[K48]&&Y===X[v48]&&J===X[N48]&&H===(X.length===5?X[k48]:OS)}var CS=ES("",-1,-1,"",null,!1),g48=[];function ES(q,Z,Q,Y,J,H){return{source:q,line:Z,column:Q,name:Y,content:J,ignore:H}}function FS(q,Z,Q,Y,J){return{map:q,sources:Z,source:Q,content:Y,ignore:J}}function TS(q,Z){return FS(q,Z,"",null,!1)}function l48(q,Z,Q){return FS(null,g48,q,Z,Q)}function x48(q){let Z=new wS({file:q.map.file}),{sources:Q,map:Y}=q,J=Y.names,H=YZ(Y);for(let X=0;X<H.length;X++){let G=H[X];for(let W=0;W<G.length;W++){let R=G[W],B=R[0],M=CS;if(R.length!==1){let E=Q[R[1]];if(M=fS(E,R[2],R[3],R.length===5?J[R[4]]:""),M==null)continue}let{column:V,line:$,name:O,content:w,source:I,ignore:C}=M;if(AS(Z,X,B,I,$,V,O),I&&w!=null)jS(Z,I,w);if(C)IS(Z,I,!0)}}return Z}function fS(q,Z,Q,Y){if(!q.map)return ES(q.source,Z,Q,Y,q.content,q.ignore);let J=BS(q.map,Z,Q);if(J==null)return null;if(J.length===1)return CS;return fS(q.sources[J[1]],J[2],J[3],J.length===5?q.map.names[J[4]]:Y)}function m48(q){if(Array.isArray(q))return q;return[q]}function p48(q,Z){let Q=m48(q).map((H)=>new QZ(H,"")),Y=Q.pop();for(let H=0;H<Q.length;H++)if(Q[H].sources.length>1)throw Error(`Transformation map ${H} must have exactly one source file.
|
|
244
|
-
Did you specify these with the most recent transformation maps first?`);let J=KS(Y,Z,"",0);for(let H=Q.length-1;H>=0;H--)J=TS(Q[H],[J]);return J}function KS(q,Z,Q,Y){let{resolvedSources:J,sourcesContent:H,ignoreList:X}=q,G=Y+1,W=J.map((R,B)=>{let M={importer:Q,depth:G,source:R||"",content:void 0,ignore:void 0},V=Z(M.source,M),{source:$,content:O,ignore:w}=M;if(V)return KS(new QZ(V,$),Z,$,G);let I=O!==void 0?O:H?H[B]:null,C=w!==void 0?w:X?X.includes(B):!1;return l48($,I,C)});return TS(q,W)}var c48=class{constructor(q,Z){let Q=Z.decodedMappings?uH(q):DS(q);if(this.version=Q.version,this.file=Q.file,this.mappings=Q.mappings,this.names=Q.names,this.ignoreList=Q.ignoreList,this.sourceRoot=Q.sourceRoot,this.sources=Q.sources,!Z.excludeContent)this.sourcesContent=Q.sourcesContent}toString(){return JSON.stringify(this)}};function bH(q,Z,Q){let Y=typeof Q==="object"?Q:{excludeContent:!!Q,decodedMappings:!1},J=p48(q,Z);return new c48(x48(J),Y)}var r48=typeof window<"u"&&typeof btoa==="function"?(q)=>btoa(unescape(encodeURIComponent(q))):(q)=>Buffer.from(q).toString("base64");function vS(q,Z){if(Z.length==0)return null;let Q=1,Y=Z.slice(0,-1).find((J)=>J.sources.length!==1)===void 0?bH(Z,()=>null,!0):bH(Z[0],(J)=>{if(J===q&&Z[Q])return Z[Q++];else return null},!0);if(!Y.file)delete Y.file;if(!Y.sources.length)Y.sources=[q];return Y}function i48(q,Z,Q){if(!Z||!Q)return Z;let Y=typeof Q==="string"?JSON.parse(Q):Q,J=vS(q,[Z,Y]);return Object.defineProperties(J,{toString:{enumerable:!1,value:function(){return JSON.stringify(this)}},toUrl:{enumerable:!1,value:function(){return"data:application/json;charset=utf-8;base64,"+r48(this.toString())}}}),J}function HZ(q,Z,Q){if(Z.sourcemap){let Y=hH(Z.filename);if(q.map.sources=[Y],Object.assign(q.map,i48(Y,q.map,Z.sourcemap)),Y!==Q)q.map.sources=q.map.sources.map((J)=>NS(Q,J))}}function NS(q,Z){let Q=q.split(/[/\\]/),Y=Z.split(/[/\\]/);Q.pop();while(Q[0]===Y[0])Q.shift(),Y.shift();if(Q.length){let J=Q.length;while(J--)Q[J]=".."}return Q.concat(Y).join("/")}function hH(q){return q.split(/[/\\]/).pop()}function kS(q,Z,Q){return Z?NS(Z,q):hH(q)}function v5(q,Z,Q){let Y=new e3(q),J={code:Y,hash:Z.css.hash,minify:Z.inject_styles&&!Q.dev,selector:`.${Z.css.hash}`,keyframes:Z.css.keyframes,specificity:{bumped:!1}},H=Z.css.ast;if(K8(H,J,d48),Y.remove(0,H.content.start),Y.remove(H.content.end,q.length),J.minify)GZ(H.content.end,J);let X={code:Y.toString(),map:Y.generateMap({includeContent:!0,source:Q.filename,file:Q.cssOutputFilename||Q.filename}),hasGlobal:Z.css.has_global};if(HZ(X,Q,X.map.sources[0]),Q8&&Z.inject_styles&&X.code)X.code+=`
|
|
245
|
-
/*# sourceMappingURL=${X.map.toUrl()} */`;return X}var d48={_:(q,Z)=>{Z.state.code.addSourcemapLocation(q.start),Z.state.code.addSourcemapLocation(q.end),Z.next()},Atrule(q,{state:Z,next:Q,path:Y}){if(w5(q)){let J=q.start+q.name.length+1;while(Z.code.original[J]===" ")J+=1;let H=J;while(Z.code.original[H]!=="{"&&Z.code.original[H]!==" ")H+=1;if(q.prelude.startsWith("-global-"))Z.code.remove(J,J+8);else if(!XZ(Y))Z.code.prependRight(J,`${Z.hash}-`);return}Q()},Declaration(q,{state:Z}){let Q=q.property&&uJ(q.property.toLowerCase());if(Q==="animation"||Q==="animation-name"){let Y=q.start+q.property.length+1,J="";while(Y<Z.code.original.length){let H=Z.code.original[Y];if(aB.test(H)){if(Z.keyframes.includes(J))Z.code.prependRight(Y-J.length,`${Z.hash}-`);if(H===";"||H==="}")break;J=""}else J+=H;Y++}}else if(Z.minify){if(GZ(q.start,Z),!q.property.startsWith("--")){let Y=q.start+q.property.length+1,J=Y;while(/\s/.test(Z.code.original[J]))J++;if(J>Y)Z.code.remove(Y,J)}}},Rule(q,{state:Z,next:Q,visit:Y,path:J}){if(Z.minify)GZ(q.start,Z),GZ(q.block.end-1,Z);if(!Q8&&bS(q,XZ(J))){if(Z.minify)Z.code.remove(q.start,q.end);else Z.code.prependRight(q.start,"/* (empty) "),Z.code.appendLeft(q.end,"*/"),uS(q,Z.code);return}if(!hS(q)&&!XZ(J)){if(Z.minify)Z.code.remove(q.start,q.end);else Z.code.prependRight(q.start,"/* (unused) "),Z.code.appendLeft(q.end,"*/"),uS(q,Z.code);return}if(q.metadata.is_global_block){let H=q.prelude.children[0];if(q.prelude.children.length===1&&H.children.length===1&&H.children[0].selectors.length===1){if(Z.minify)Z.code.remove(q.start,q.block.start+1),Z.code.remove(q.block.end-1,q.end);else Z.code.prependRight(q.start,"/* "),Z.code.appendLeft(q.block.start+1,"*/"),Z.code.prependRight(q.block.end-1,"/*"),Z.code.appendLeft(q.block.end,"*/");Y(q.block);return}}Q()},SelectorList(q,{state:Z,next:Q,path:Y}){let J=Y.at(-1);if((!XZ(Y)||q.children.length>1&&J?.type==="Rule"&&J.metadata.is_global_block)&&!Y.find((X)=>X.type==="ComplexSelector"&&!X.metadata.used)){let X=q.children,G=!1,W=X[0].start,R=W,B=!1;for(let M=0;M<X.length;M+=1){let V=X[M];if(V.metadata.used===G){if(G){let $=V.start;while(Z.code.original[$]!==",")$--;if(Z.minify)Z.code.remove(W,B?$:$+1);else Z.code.appendRight(B?$:$+1,"*/")}else if(M===0)if(Z.minify)W=V.start;else Z.code.prependRight(V.start,"/* (unused) ");else if(Z.minify)W=R;else Z.code.overwrite(R,V.start," /* (unused) ");G=!G}if(!G&&V.metadata.used)B=!0;R=V.end}if(G)if(Z.minify)Z.code.remove(W,R);else Z.code.appendLeft(R,"*/")}let H=Z.specificity;if(J?.type==="Rule"){H={bumped:!1};let X=J.metadata.parent_rule;while(X){if(X.metadata.has_local_selectors){H={bumped:!0};break}X=X.metadata.parent_rule}}Q({...Z,specificity:H})},ComplexSelector(q,Z){let Q=Z.state.specificity.bumped;for(let Y of q.children){if(Y.metadata.is_global){let J=Y.selectors[0];SS(J,Y.combinator,Z.state);let H=q.metadata.rule?.metadata.parent_rule;if(H&&J.args===null){if(Y.combinator===null)Z.state.code.prependRight(J.start,"&");if(H.prelude.children.length>1&&q.children.length===q.children.findIndex((X)=>X===Y)-1){let X=H.prelude.children.find((G)=>G.start>J.end);if(X&&X.metadata.used)Z.state.code.update(J.end,X.start,"")}}continue}else for(let J of Y.selectors)if(J.type==="PseudoClassSelector"&&J.name==="global")SS(J,null,Z.state);if(Y.metadata.scoped){if(Y.selectors.length===1){let X=Y.selectors[0];if(X.type==="PseudoClassSelector"&&(X.name==="is"||X.name==="where"))continue}if(Y.selectors.some((X)=>X.type==="NestingSelector"))continue;let J=Z.state.selector;if(Z.state.specificity.bumped)J=`:where(${J})`;Z.state.specificity.bumped=!0;let H=Y.selectors.length;while(H--){let X=Y.selectors[H];if(X.type==="PseudoElementSelector"||X.type==="PseudoClassSelector"){if(X.name!=="root"&&X.name!=="host"){if(H===0)Z.state.code.prependRight(X.start,J)}continue}if(X.type==="TypeSelector"&&X.name==="*")Z.state.code.update(X.start,X.end,J);else Z.state.code.appendLeft(X.end,J);break}}}Z.next(),Z.state.specificity.bumped=Q},PseudoClassSelector(q,Z){if(q.name==="is"||q.name==="where"||q.name==="has"||q.name==="not")Z.next()}};function XZ(q){return q.some((Z)=>Z.type==="Rule"&&Z.metadata.is_global_block)}function SS(q,Z,Q){if(q.args===null){let Y=q.start;if(Z?.name===" ")while(/\s/.test(Q.code.original[Y-1]))Y--;Q.code.update(Y,q.start+7,"")}else Q.code.remove(q.start,q.start+8).remove(q.end-1,q.end)}function GZ(q,Z){let Q=q;while(/\s/.test(Z.code.original[Q-1]))Q--;if(Q<q)Z.code.remove(Q,q)}function bS(q,Z){if(q.metadata.is_global_block)return q.block.children.length===0;for(let Q of q.block.children){if(Q.type==="Declaration")return!1;if(Q.type==="Rule"){if((hS(Q)||Z)&&!bS(Q,Z))return!1}if(Q.type==="Atrule"){if(Q.block===null||Q.block.children.length>0)return!1}}return!0}function hS(q){return q.prelude.children.some((Z)=>Z.metadata.used)}function uS(q,Z){let Q=!1,Y=!1;for(let J=q.start;J<q.end;J++)if(Q)Q=!1;else{let H=Z.original[J];if(Y){if(H==="*"&&Z.original[J+1]==="/")Z.prependRight(++J,"\\"),Y=!1}else if(H==="\\")Q=!0;else if(H==="/"&&Z.original[++J]==="*")Y=!0}}function VZ(q,Z,Q){if(q.left.type==="ArrayPattern"||q.left.type==="ObjectPattern"||q.left.type==="RestElement"){let Y=Z.visit(q.right),J=Y.type!=="Identifier",H=J?F("$$value"):Y,X=!1,{inserts:G,paths:W}=q1(q.left,H);for(let{id:V}of G)V.name=Z.state.scope.generate("$$array");let R=W.map((V)=>{let $=V.expression,O=Q("=",V.node,$,Z);if(O!==null)X=!0;return O??L8("=",Z.visit(V.node),Z.visit($))});if(!X)return null;let B=Z.path.at(-1).type.endsWith("Statement");if(G.length>0||J){let V=[...G.map(({id:I,value:C})=>D8(I,C)),...R.map(l)];if(!B)V.push(l8(H));let $=G0(Y)||R.some((I)=>G0(I)),O=J8([H],d(V),$),w=j(O,Y);return $?e0(w):w}let M=y0(R);if(!B)M.expressions.push(H);return M}if(q.left.type!=="Identifier"&&q.left.type!=="MemberExpression")throw Error(`Unexpected assignment type ${q.left.type}`);return Q(q.operator,q.left,q.right,Z)}function yS(q,Z){return VZ(q,Z,s48)??Z.next()}function s48(q,Z,Q,Y){if(Y.state.analysis.runes&&Z.type==="MemberExpression"&&Z.object.type==="ThisExpression"&&!Z.computed){let X=H1(Z.property),G=X&&Y.state.state_fields.get(X);if(G&&G.node.type==="AssignmentExpression"&&Z===G.node.left){let W=s8(Q,Y.state.scope);if(W){let R=Z.property.type==="PrivateIdentifier"||W==="$state"||W==="$state.raw"?Z.property:G.key;return L8(q,U8(M1,R,R.type==="Literal"),Y.visit(Q))}}else if(G&&(G.type==="$derived"||G.type==="$derived.by")&&Z.property.type==="PrivateIdentifier"){let W=Y.visit(O7(q,Z,Q));return j(U8(M1,X),W)}}let J=Z;while(J.type==="MemberExpression")J=J.object;if(J.type!=="Identifier")return null;if(a48(J.name)){let X=J.name.slice(1);if(!Y.state.scope.get(X))return null;if(J===Z){let G=Y.visit(O7(q,Z,Q));return j("$.store_set",F(X),G)}return j("$.store_mutate",L8("??=",F("$$store_subs"),z8([])),g(J.name),F(X),L8(q,Y.visit(Z),Y.visit(Q)))}let H=Y.state.scope.get(J.name);if(H?.kind==="derived"&&J===Z){let X=Y.visit(O7(q,Z,Q));return j(H.node,X)}return null}function a48(q){return q[0]==="$"&&/[A-Za-z_]/.test(q[1])}var o48=/[&"<]/g,n48=/[&<]/g;function _9(q,Z){let Q=String(q??""),Y=Z?o48:n48;Y.lastIndex=0;let J="",H=0;while(Y.test(Q)){let X=Y.lastIndex-1,G=Q[X];J+=Q.substring(H,X)+(G==="&"?"&":G==='"'?""":"<"),H=X+1}return J+Q.substring(H)}var _S=`<!--${oV}-->`,gS=`<!--${nV}-->`,lS=`<!--${tV}-->`,xS="<!---->";var a1=g(_S),E7=g(gS),n0=g(lS),H6=g(xS);function X6(q,{visit:Z,state:Q}){let Y=[];function J(){if(Y.length===0)return;let H=W9("",!1),X=[H],G=[];for(let W=0;W<Y.length;W++){let R=Y[W];if(R.type==="Text"||R.type==="Comment")H.value.cooked+=R.type==="Comment"?`<!--${R.data}-->`:_9(R.data);else{let B=Q.scope.evaluate(R.expression);if(B.is_known)H.value.cooked+=_9((B.value??"")+"");else G.push(j("$.escape",Z(R.expression))),H=W9("",W+1===Y.length),X.push(H)}}for(let W of X)W.value.raw=z7(W.value.cooked);Q.template.push(K6(X,G)),Y=[]}for(let H of q)if(H.type==="ExpressionTag"&&H.metadata.expression.is_async()){J();let X=Z(H.expression),G=j("$$renderer.push",i(j("$.escape",X),H.metadata.expression.has_await)),W=H.metadata.expression.blockers();if(W.elements.length>0)G=j("$$renderer.async",W,J8([F("$$renderer")],G));Q.template.push(l(G))}else if(H.type==="Text"||H.type==="Comment"||H.type==="ExpressionTag")Y.push(H);else J(),Z(H,{...Q});J()}function t48(q){return q.type.endsWith("Statement")||q.type.endsWith("Declaration")}function g0(q){let Z=[],Q=[],Y=[],J=()=>{Y.push(l(j(F("$$renderer.push"),K6(Z.map((H,X)=>W9(H,X===Z.length-1)),Q)))),Z=[],Q=[]};for(let H=0;H<q.length;H++){let X=q[H];if(t48(X)){if(Z.length!==0)J();Y.push(X)}else{if(Z.length===0)Z.push("");if(X.type==="Literal")Z[Z.length-1]+=X.value;else if(X.type==="TemplateLiteral")Z[Z.length-1]+=X.quasis[0].value.cooked,Z.push(...X.quasis.slice(1).map((G)=>G.value.cooked)),Q.push(...X.expressions);else Q.push(X),Z.push("")}}if(Z.length!==0)J();return Y}function G1(q,Z,Q,Y=!1,J=!1){if(q===!0)return P8;if(!Array.isArray(q)||q.length===1){let W=Array.isArray(q)?q[0]:q;if(W.type==="Text"){let R=Y?W.data.replace(VY," ").trim():W.data;return g(J?R:_9(R,!0))}return Q(Z.visit(W.expression),W.metadata.expression)}let H=W9("",!1),X=[H],G=[];for(let W=0;W<q.length;W++){let R=q[W];if(R.type==="Text")H.value.cooked+=Y?R.data.replace(VY," "):R.data;else{let B=Z.state.scope.evaluate(R.expression);if(B.is_known)H.value.cooked+=(B.value??"")+"";else{let M=Q(Z.visit(R.expression),R.metadata.expression);G.push(B.is_string&&B.is_defined?M:j("$.stringify",M)),H=W9("",W+1===q.length),X.push(H)}}}for(let W of X)W.value.raw=z7(W.value.cooked);return G.length>0?K6(X,G):g(H.value.cooked)}function yH(q,Z){let Q=Z.scope.get(q.name);if(Q===null||q===Q.node)return q;if(Q.kind==="store_sub"){let Y=F(q.name.slice(1));return j("$.store_get",L8("??=",F("$$store_subs"),z8([])),g(q.name),yH(Y,Z))}if(Q.kind==="derived")return(Q.declaration_kind==="var"?T9:j)(Q.node);return q}function v1(q,Z,Q){if(Z.elements.length===0&&!Q)return q;let Y=J8([F("$$renderer")],d(q),Q);return Z.elements.length>0?[l(j("$$renderer.async_block",Z,Y))]:[l(j("$$renderer.child_block",Y))]}class P9{expressions=[];has_await=!1;#q=new Set;transform=(q,Z)=>{if(this.check_blockers(Z),Z.has_await){this.has_await=!0;let Q=this.expressions.push(q);return F(`$$${Q-1}`)}return q};check_blockers(q){for(let Z of q.references)if(Z.blocker)this.#q.add(Z.blocker)}#Z(){if(this.expressions.length===0)return _8;if(this.expressions.length===1)return q0("$$0",this.expressions[0]);let q=G8(this.expressions.map((Z)=>{return Z.type==="AwaitExpression"&&!K9(Z.argument)?Z.argument:j(i(Z,!0))}));return q0(T6(this.expressions.map((Z,Q)=>F(`$$${Q}`))),N9(j("Promise.all",q)))}blockers(){return G8([...this.#q])}is_async(){return this.expressions.length>0||this.#q.size>0}render(q){if(!this.is_async())return q;let Z=J8([F("$$renderer")],d([this.#Z(),...q]),this.has_await),Q=this.blockers();return Q.elements.length>0?[l(j("$$renderer.async",Q,Z))]:[l(j("$$renderer.child",Z))]}render_block(q){if(!this.is_async())return q;return v1([this.#Z(),...q],this.blockers(),this.has_await)}}function mS(q,Z){let Q=Z.visit(q.expression);if(q.metadata.expression.has_await)Q=j(J8([],Q,!0));let Y=l(j("$.await",F("$$renderer"),Q,i(q.pending?Z.visit(q.pending):d([])),J8(q.value?[Z.visit(q.value)]:[],q.then?Z.visit(q.then):d([]))));Z.state.template.push(...v1([Y],q.metadata.expression.blockers(),q.metadata.expression.has_await),n0)}function pS(q,Z){let Q=Z.visit(q.argument);if(Z.state.analysis.pickled_awaits.has(q))return N9(Q);let Y=Z.path.length;while(Y--){let J=Z.path[Y];if(J.type==="ArrowFunctionExpression"||J.type==="FunctionExpression"||J.type==="FunctionDeclaration")break;if(J.metadata){if(J.type!=="ExpressionTag"&&J.type!=="Fragment")return N9(Q);break}}return Q===q.argument?q:{...q,argument:Q}}function e48(q,Z){let Q=[],Y=new Map;for(let W of q)if(W.type==="ConstTag"){let R=W.declaration.declarations[0],B=r8(R.id).map((V)=>{return Z.scope.get(V.name)}),M=new Set;K8(R.init,Z,{_:O5,Identifier(V,$){let O=$.path.at(-1);if(s0(V,O)){let w=$.state.scope.get(V.name);if(w)M.add(w)}}});for(let V of B)Y.set(V,{node:W,deps:M})}else Q.push(W);if(Y.size===0)return q;let J=[];for(let[W,R]of Y)for(let B of R.deps)if(Y.has(B))J.push([W,B]);let H=b2(J);if(H?.length){let W=Y.get(H[0]);Zz(W.node,H.map((R)=>R.node.name).join(" → "))}let X=[];function G(W){if(X.includes(W.node))return;for(let R of W.deps){let B=Y.get(R);if(B)G(B)}X.push(W.node)}for(let W of Y.values())G(W);return[...X,...Q]}function m6(q,Z,Q,Y="html",J,H,X){if(!J.analysis.runes)Z=e48(Z,J);let G=[],W=[];for(let M of Z){if(M.type==="Comment"&&!X)continue;if(M.type==="ConstTag"||M.type==="DeclarationTag"||M.type==="DebugTag"||M.type==="SvelteBody"||M.type==="SvelteWindow"||M.type==="SvelteDocument"||M.type==="SvelteHead"||M.type==="TitleElement"||M.type==="SnippetBlock")G.push(M);else W.push(M)}let R=W;if(!H){R=[];let M,V;while((M=W[0])&&M.type==="Text"&&!C9.test(M.data))W.shift();if(M?.type==="Text")M.raw=M.raw.replace(J7,""),M.data=M.data.replace(J7,"");while((V=W.at(-1))&&V.type==="Text"&&!C9.test(V.data))W.pop();if(V?.type==="Text")V.raw=V.raw.replace(O6,""),V.data=V.data.replace(O6,"");let $=Y==="svg"&&(q.type!=="RegularElement"||q.name!=="text")&&!Q.some((O)=>O.type==="RegularElement"&&O.name==="text")||q.type==="RegularElement"&&(q.name==="select"||q.name==="tr"||q.name==="table"||q.name==="tbody"||q.name==="thead"||q.name==="tfoot"||q.name==="colgroup"||q.name==="datalist");for(let O=0;O<W.length;O++){let w=W[O-1],I=W[O],C=W[O+1];if(I.type==="Text"){if(w?.type!=="ExpressionTag"){let E=w?.type==="Text"&&O6.test(w.data);I.data=I.data.replace(J7,E?"":" "),I.raw=I.raw.replace(J7,E?"":" ")}if(C?.type!=="ExpressionTag")I.data=I.data.replace(O6," "),I.raw=I.raw.replace(O6," ");if(I.data&&(I.data!==" "||!$))R.push(I)}else R.push(I)}}var B=R[0];if(q.type==="RegularElement"&&q.name==="pre"&&B?.type==="Text"){if(B.data===`
|
|
246
|
-
`||B.data===`\r
|
|
247
|
-
`)R.shift(),B=R[0]}if(R.length===1&&B.type==="RegularElement"&&B.name==="script")R.push({type:"Comment",data:"",start:-1,end:-1});return{hoisted:G,trimmed:R,is_standalone:R.length===1&&(B.type==="RenderTag"&&!B.metadata.dynamic||B.type==="Component"&&!J.options.hmr&&!B.metadata.dynamic&&!B.attributes.some((M)=>M.type==="Attribute"&&M.name.startsWith("--"))),is_text_first:(q.type==="Fragment"||q.type==="SnippetBlock"||q.type==="EachBlock"||q.type==="SvelteComponent"||q.type==="SvelteBoundary"||q.type==="Component"||q.type==="SvelteSelf")&&B&&(B?.type==="Text"||B?.type==="ExpressionTag")}}function WZ(q,Z,Q){if(Z.type==="RegularElement"&&Z.name==="foreignObject")return"html";if(Z.type==="RegularElement"||Z.type==="SvelteElement"){if(Z.metadata.svg)return"svg";return Z.metadata.mathml?"mathml":"html"}if(Z.type==="Fragment"||Z.type==="Root"||Z.type==="Component"||Z.type==="SvelteComponent"||Z.type==="SvelteFragment"||Z.type==="SnippetBlock"||Z.type==="SlotElement"){let J=q38(Q,"keep");if(J!=="keep"&&J!=="maybe_html")return J}let Y=null;for(let J of Q){if(J.type!=="RegularElement")continue;if(J.metadata.mathml)Y=Y===null||Y==="mathml"?"mathml":"html";else if(J.metadata.svg)Y=Y===null||Y==="svg"?"svg":"html";else return"html"}return Y??q}function q38(q,Z){let Q=(Y,{stop:J})=>{if(!Y.metadata.svg&&!Y.metadata.mathml)Z="html",J();else if(Z==="keep")Z=Y.metadata.svg?"svg":"mathml"};for(let Y of q)if(K8(Y,{},{_(J,{next:H}){if(J.type==="EachBlock"||J.type==="IfBlock"||J.type==="AwaitBlock"||J.type==="Fragment"||J.type==="KeyBlock"||J.type==="RegularElement"||J.type==="SvelteElement"||J.type==="Text")H()},SvelteElement:Q,RegularElement:Q,Text(J){if(J.data.trim()!=="")Z="maybe_html"}}),Z==="html")return Z;return Z}function p6(q,Z){if(q.name==="foreignObject")return"html";if(q.metadata.svg)return"svg";return q.metadata.mathml?"mathml":"html"}function $Z(q,Z,Q){return{args:(q==="$inspect"?Z:Z.callee.object).arguments.map((J)=>Q(J)),inspector:q==="$inspect"?"console.log":Q(Z.arguments[0])}}function cS(q,Z){let Q=s8(q,Z.state.scope);if(Q==="$host"||Q==="$effect"||Q==="$effect.pre"||Q==="$inspect.trace")return w0;if(Q==="$effect.tracking")return a9;if(Q==="$effect.root")return J8([],d([]));if(Q==="$effect.pending")return g(0);if(Q==="$state"||Q==="$state.raw")return q.arguments[0]?Z.visit(q.arguments[0]):w0;if(Q==="$derived"||Q==="$derived.by"){let Y=Z.visit(q.arguments[0]);return j("$.derived",Q==="$derived"?i(Y):Y)}if(Q==="$state.eager")return q.arguments[0];if(Q==="$state.snapshot")return j("$.snapshot",Z.visit(q.arguments[0]),L0(q,"state_snapshot_uncloneable")&&P8);if(Q==="$inspect"||Q==="$inspect().with"){if(!Q8)return _8;let{args:Y,inspector:J}=$Z(Q,q,Z.visit);return Q==="$inspect"?j(J,g("$inspect("),...Y,g(")")):j(J,g("init"),...Y)}Z.next()}function rS(q,Z){let Q=Z.state.analysis.classes.get(q);if(!Q){Z.next();return}let Y=[],J={...Z.state,state_fields:Q};for(let[H,X]of Q){if(H[0]==="#")continue;if(X&&X.node.type==="AssignmentExpression"&&(X.type==="$derived"||X.type==="$derived.by")){let G=U8(M1,X.key);Y.push(L7(X.key,null),f9("get",i0(H),[],[l8(j(G))]),f9("set",i0(H),[F("$$value")],[l8(j(G,F("$$value")))]))}}for(let H of q.body){if(H.type!=="PropertyDefinition"){Y.push(Z.visit(H,J));continue}let X=H1(H.key),G=X&&Q.get(X);if(!G){Y.push(Z.visit(H,J));continue}if(X[0]==="#"||G.type==="$state"||G.type==="$state.raw")Y.push(Z.visit(H,J));else if(G.node===H){let W=U8(M1,G.key);Y.push(L7(G.key,Z.visit(G.value,J)),f9("get",H.key,[],[l8(j(W))]),f9("set",i0(X),[F("$$value")],[l8(j(W,F("$$value")))]))}}return{...q,body:Y}}function N5(q,Z,Q){let Y=[],J=[],H=[],X={default:[]},G={...Q.state,scope:q.metadata.scopes.default},W={},R=q.attributes.some((E)=>E.type==="Attribute"&&E.name==="slot"),B=!1;function M(E,D=!1){let f=()=>{let v=Y.at(-1),_=Array.isArray(v),b=_?v:[];if(b.push(E),!_)Y.push(b)};if(D)J.push(f);else f()}let V=new P9;for(let E of q.attributes)if(E.type==="LetDirective"){if(!R)X.default.push(E)}else if(E.type==="SpreadAttribute"){let D=Q.visit(E);Y.push(V.transform(D,E.metadata.expression))}else if(E.type==="Attribute"){let D=G1(E.value,Q,V.transform,!1,!0);if(E.name.startsWith("--")){H.push(M8(E.name,D));continue}if(E.name==="children")B=!0;M(e8("init",i0(E.name),D))}else if(E.type==="BindDirective"){if(V.check_blockers(E.metadata.expression),E.name==="this")continue;if(E.expression.type==="SequenceExpression"){let[D,f]=Q.visit(E.expression).expressions,v=F(Q.state.scope.generate("bind_get")),_=F(Q.state.scope.generate("bind_set"));Q.state.init.push(D8(v,D)),Q.state.init.push(D8(_,f)),M(B1(E.name,[l8(j(v))])),M($9(E.name,[l(j(_,F("$$value")))]))}else M(B1(E.name,[l8(Q.visit(E.expression))]),!0),M($9(E.name,[l(Q.visit(L8("=",E.expression,F("$$value")))),l(L8("=",F("$$settled"),a9))]),!0)}else if(E.type==="AttachTag")V.check_blockers(E.metadata.expression);J.forEach((E)=>E());let $=[],O=[];for(let E of q.fragment.nodes){if(E.type==="SnippetBlock"){Q.visit(E,{...Q.state,init:$}),M(e8("init",E.expression,E.expression)),O.push(M8(E.expression.name==="children"?"default":E.expression.name,P8));continue}let D="default";if(M5(E)){let f=E.attributes.find((v)=>v.type==="Attribute"&&v.name==="slot");if(f!==void 0)D=f.value[0].data,X[D]=E.attributes.filter((v)=>v.type==="LetDirective");else if(E.type==="SvelteFragment")X.default.push(...E.attributes.filter((v)=>v.type==="LetDirective"))}W[D]=W[D]||[],W[D].push(E)}for(let E of Object.keys(W)){let D=Q.visit({...q.fragment,nodes:W[E]},E==="default"?G:{...Q.state,scope:q.metadata.scopes[E]});if(D.body.length===0)continue;let f=[F("$$renderer")];if(X[E].length>0){let _=P7(X[E].map((b)=>{if(b.expression===null)return M8(b.name,F(b.name));if(b.expression.type==="ObjectExpression")return M8(b.name,P7(b.expression.properties));if(b.expression.type==="ArrayExpression")return M8(b.name,T6(b.expression.elements));return M8(b.name,b.expression)}));f.push(_)}let v=J8(f,d(D.body));if(E==="default"&&!B)if(X.default.length===0&&W.default.every((_)=>_.type!=="SvelteFragment"||!_.attributes.some((b)=>b.type==="LetDirective")))M(e8("init",F("children"),Q8?j("$.prevent_snippet_stringification",v):v)),O.push(M8(E,P8));else O.push(M8(E,v)),M(M8("children",F("$.invalid_default_snippet")));else O.push(M8(E,v))}if(O.length>0)M(e8("init",F("$$slots"),z8(O)));let w=Y.length===0||Y.length===1&&Array.isArray(Y[0])?z8(Y[0]||[]):j("$.spread_props",G8(Y.map((E)=>Array.isArray(E)?z8(E):E))),I=q.type==="SvelteComponent"||q.type==="Component"&&q.metadata.dynamic,C=l(j(Z,F("$$renderer"),w));if(I)C=k0(Z,d([l(j("$$renderer.push",a1)),C,l(j("$$renderer.push",n0))]),d([l(j("$$renderer.push",E7)),l(j("$$renderer.push",n0))]));if($.length>0)C=d([...$,C]);if(H.length>0)C=l(j("$.css_props",F("$$renderer"),g(Q.state.namespace==="svg"?!1:!0),z8(H),i(d([C])),I&&P8));if(q.type!=="SvelteSelf")V.check_blockers(q.metadata.expression);if(Q.state.template.push(...V.render_block([C])),!I&&!V.is_async()&&!Q.state.is_standalone&&H.length===0)Q.state.template.push(H6)}function iS(q,Z){N5(q,Z.visit(f6(q.name)),Z)}function dS(q,Z){let Q=Z.visit(q.declaration);if(q.metadata.promises_id&&q.declaration.type==="VariableDeclaration"&&Q.type==="VariableDeclaration"){let{ids:Y,assignments:J}=Z38(Q);_H(Z,q.metadata,Y,J,Q.kind)}else Z.state.init.push(Q)}function Z38(q){let Z=new Map;for(let Y of q.declarations)for(let J of r8(Y.id))Z.set(J.name,J);let Q=q.declarations.filter((Y)=>Y.init!==null).map((Y)=>l(L8("=",Y.id,Y.init)));return{ids:[...Z.values()],assignments:Q}}function _H(q,Z,Q,Y,J="let"){let H=q.state.async_consts??={id:Z.promises_id,thunks:[]};for(let R of Q)q.state.init.push(J==="var"?D8(R.name):_0(R.name));let X=[...Z.expression.dependencies].map((R)=>R.blocker).filter((R)=>R!==null&&R.object!==q.state.async_consts?.id);if(X.length===1)H.thunks.push(i(X[0]));else if(X.length>0)H.thunks.push(i(j("Promise.all",G8(X))));let G=Z.expression.has_await||Y.some((R)=>K9(R)),W=Y.length===1?Y[0].expression:d(Y);H.thunks.push(i(W,G))}function sS(q,Z){let Q=q.declaration.declarations[0],Y=Z.visit(Q.id),J=Z.visit(Q.init);if(q.metadata.promises_id)_H(Z,q.metadata,r8(Y),[l(L8("=",Y,J))],"let");else Z.state.init.push(q0(Y,J))}function aS(q,Z){let Q=q.identifiers.map((Y)=>Z.state.scope.get(Y.name)?.blocker).filter((Y)=>Y!=null);Z.state.template.push(...v1([l(j("console.log",z8(q.identifiers.map((Y)=>e8("init",Y,Z.visit(Y)))))),U3],G8(Q),!1))}function oS(q,Z){let Q=Z.state,Y=q.metadata,J=Z.visit(q.expression),H=Y.contains_group_binding||!q.index?Y.index:F(q.index),X=Q.scope.root.unique("each_array"),G=[q0(X,j("$.ensure_array_like",J))],W=[];if(q.context)W.push(_0(q.context,U8(X,H,!0)));if(H.name!==q.index&&q.index!=null)W.push(_0(q.index,H));let R=Z.visit(q.body).body;if(q.body)W.push(...R);let B=LB(f1("let",[b8(H,g(0)),b8("$$length",U8(X,"length"))]),V9("<",H,F("$$length")),$3("++",H,!1),d(W));if(q.fallback){let M=l(j(F("$$renderer.push"),a1)),V=Z.visit(q.fallback);V.body.unshift(l(j(F("$$renderer.push"),E7))),G.push(k0(V9("!==",U8(X,"length"),g(0)),d([M,B]),V))}else Q.template.push(a1),G.push(B);Q.template.push(...v1(G,q.metadata.expression.blockers(),q.metadata.expression.has_await),n0)}function nS(q,Z){let Q=s8(q.expression,Z.state.scope);if(Q==="$effect"||Q==="$effect.pre"||Q==="$effect.root"||Q==="$inspect.trace")return _8;Z.next()}function tS(q,Z){let Q=Z.path.at(-1)??q,Y=WZ(Z.state.namespace,Q,q.nodes),{hoisted:J,trimmed:H,is_standalone:X,is_text_first:G}=m6(Q,q.nodes,Z.path,Y,Z.state,Z.state.preserve_whitespace,Z.state.options.preserveComments),W={...Z.state,init:[],template:[],namespace:Y,is_standalone:X,async_consts:void 0};for(let R of J)Z.visit(R,W);if(G)W.template.push(H6);if(X6(H,{...Z,state:W}),W.async_consts&&W.async_consts.thunks.length>0)W.init.push(D8(W.async_consts.id,j("$$renderer.run",G8(W.async_consts.thunks))));return d([...W.init,...g0(W.template)])}function eS(q,Z){let Q=j("$.html",Z.visit(q.expression));if(q.metadata.expression.is_async())Z.state.template.push(...v1([l(j("$$renderer.push",Q))],q.metadata.expression.blockers(),q.metadata.expression.has_await));else Z.state.template.push(Q)}function qu(q,Z){if(s0(q,Z.path.at(-1))){if(q.name==="$$props")return F("$$sanitized_props");if(q.name.startsWith("$$derived_array"))return j(q);return yH(q,Z.state)}}function Zu(q,Z){let Q=Z.visit(q.consequent);Q.body.unshift(l(j(F("$$renderer.push"),g("<!--[0-->"))));let Y=k0(Z.visit(q.test),Q),J=1,H=Y,X=q.alternate;for(let W of q.metadata.flattened??[]){let R=Z.visit(W.consequent);R.body.unshift(l(j(F("$$renderer.push"),g(`<!--[${J++}-->`)))),H=H.alternate=k0(Z.visit(W.test),R),X=W.alternate}let G=X?Z.visit(X):d([]);G.body.unshift(l(j(F("$$renderer.push"),g("<!--[-1-->")))),H.alternate=G,Z.state.template.push(...v1([Y],q.metadata.expression.blockers(),q.metadata.expression.has_await),n0)}function Qu(q,Z){let Q=q.metadata.expression.is_async();if(Q)Z.state.template.push(a1);if(Z.state.template.push(H6,Z.visit(q.fragment),H6),Q)Z.state.template.push(n0)}function Yu(q,Z){if(Z.state.analysis.runes||Z.path.length>1||q.label.name!=="$")return;return Z.state.legacy_reactive_statements.set(q,zB("$",Z.visit(q.body))),_8}function Ju(q,Z){if(Z.state.analysis.runes&&q.property.type==="PrivateIdentifier"){let Q=Z.state.state_fields?.get(`#${q.property.name}`);if(Q?.type==="$derived"||Q?.type==="$derived.by")return j(q)}Z.next()}function UZ(q,Z,Q){let Y=q.sync.map((J)=>Q(J));if(q.declarations.length>0)Y.push(f1("var",q.declarations.map((J)=>b8(J))));if(q.async.length>0){let J=q.async.map((H)=>{let X=[];for(let G of H.nodes)X.push(...Q38(G,Q));if(X.length===0)return i(w0,!1);if(X.length===1&&X[0].type==="ExpressionStatement")return i(X[0].expression,H.has_await);return i(d(X),H.has_await)});Y.push(D8("$$promises",j(Z,G8(J))))}return Y}function Q38(q,Z){if(q.type==="VariableDeclarator"){let Y=Z(D8(q.id,q.init));return Y.type==="VariableDeclaration"?Y.declarations.map((J)=>{if(J.id.type==="Identifier"&&(J.id.name.startsWith("$$d")||J.id.name.startsWith("$$array")))return D8(J.id,J.init);return l(L8("=",J.id,J.init??w0))}):[]}if(q.type==="ClassDeclaration")return[l(L8("=",q.id,{...q,type:"ClassExpression"}))];if(q.type==="ExpressionStatement"){let Y=Z(q.expression);if(Y.type==="EmptyStatement")return[];if(Y.type==="AwaitExpression")return[l(Y)];return[l(K2("void",Y))]}let Q=Z(q);return Q.type==="EmptyStatement"?[]:[Q]}function Hu(q,Z){if(Z.state.is_instance){let Q=Z.state;return{...q,body:UZ(Q.analysis.instance_body,F("$$renderer.run"),(Y)=>Z.visit(Y))}}Z.next()}function Xu(q,Z){if(Z.state.analysis.runes&&q.value!=null&&q.value.type==="CallExpression"){let Q=s8(q.value,Z.state.scope);if(Q==="$state"||Q==="$state.raw")return{...q,value:q.value.arguments.length===0?null:Z.visit(q.value.arguments[0])};if(Q==="$derived.by"||Q==="$derived"){let Y=Z.visit(q.value.arguments[0]);return{...q,value:q.value.arguments.length===0?null:j("$.derived",Q==="$derived"?i(Y):Y)}}}Z.next()}var gH=["class","style"];function RZ(q,Z,Q){let Y=[],J=[],H=[],X=null,G=!1,W=new Set;for(let R of q.attributes)if(R.type==="Attribute"){if(R.name==="value"){if(q.name==="textarea"){if(R.value!==!0&&Array.isArray(R.value)&&R.value[0].type==="Text"&&Y7.test(R.value[0].data))R.value[0].data=`
|
|
248
|
-
`+R.value[0].data;X=j("$.escape",G1(R.value,Z,Q))}else if(q.name!=="select")Y.push(R)}else if(I0(R)){if((R.name==="onload"||R.name==="onerror")&&t7(q.name))W.add(R.name)}else if(R.name!=="defaultValue"&&R.name!=="defaultChecked")if(R.name==="class")if(R.metadata.needs_clsx)Y.push({...R,value:{...R.value,expression:j("$.clsx",R.value.expression)}});else Y.push(R);else Y.push(R)}else if(R.type==="BindDirective"){if(R.name==="value"&&q.name==="select")continue;if(R.name==="value"&&Y.some((V)=>V.type==="Attribute"&&V.name==="type"&&d8(V)&&V.value[0].data==="file"))continue;if(R.name==="this")continue;if(u9[R.name]?.omit_in_ssr)continue;let M=Z.visit(R.expression);if(M.type==="SequenceExpression")M=j(M.expressions[0]);if(M=Q(M,R.metadata.expression),R.name==="innerHTML")X=M;else if(n7(R.name)||R.name==="value"&&q.name==="textarea")X=j("$.escape",M);else if(R.name==="group"&&R.expression.type!=="SequenceExpression"){let V=q.attributes.find((O)=>O.type==="Attribute"&&O.name==="value");if(!V)continue;let $=q.attributes.some((O)=>O.type==="Attribute"&&O.name==="type"&&d8(O)&&O.value[0].data==="checkbox");Y.push(A1("checked",null,-1,-1,[{type:"ExpressionTag",start:-1,end:-1,expression:$?j(U8(R.expression,"includes"),G1(V.value,Z,Q)):V9("===",R.expression,G1(V.value,Z,Q)),metadata:{expression:new n8}}]))}else Y.push(A1(R.name,null,-1,-1,[{type:"ExpressionTag",start:-1,end:-1,expression:M,metadata:{expression:new n8}}]))}else if(R.type==="SpreadAttribute"){if(Y.push(R),G=!0,t7(q.name))W.add("onload"),W.add("onerror")}else if(R.type==="UseDirective"){if(t7(q.name))W.add("onload"),W.add("onerror")}else if(R.type==="ClassDirective")J.push(R);else if(R.type==="StyleDirective")H.push(R);else if(R.type==="LetDirective");else Z.visit(R);if(G)J38(q,Y,H,J,Z,Q);else{let R=q.metadata.scoped?Z.state.analysis.css.hash:null;for(let B of Y){let M=lH(q,B),V=(M!=="class"||J.length===0)&&(M!=="style"||H.length===0);if(V&&(B.value===!0||d8(B))){let O=G1(B.value,Z,Q,gH.includes(M)).value;if(M==="class"&&R)O=(String(O)+" "+R).trim();if(M!=="class"||O)Z.state.template.push(g(` ${M}="${O===!0?"":String(O)}"`));continue}let $=G1(B.value,Z,Q,gH.includes(M));if(V&&$.type==="Literal"&&typeof $.value==="string"){if(M==="class"&&R)$.value=($.value+" "+R).trim();Z.state.template.push(g(` ${M}="${_9($.value,!0)}"`))}else if(M==="class")Z.state.template.push(H38(J,$,Z,R,Q));else if(M==="style")Z.state.template.push(X38(H,$,Z,Q));else Z.state.template.push(j("$.attr",g(M),$,BY(M)&&P8))}}if(W.size!==0)for(let R of W)Z.state.template.push(g(` ${R}="this.__e=event"`));return X}function lH(q,Z){let Q=Z.name;if(!q.metadata.svg&&!q.metadata.mathml)Q=Q.toLowerCase();return Q}function Y38(q,Z,Q,Y){return z8(Z.map((H)=>{if(H.type==="Attribute"){let X=lH(q,H),G=G1(H.value,Q,Y,gH.includes(X));return e8("init",i0(X),G)}else if(H.type==="BindDirective"){let X=lH(q,H),G=H.expression.type==="SequenceExpression"?j(H.expression.expressions[0]):Q.visit(H.expression);return e8("init",i0(X),G)}return i1(Y(Q.visit(H),H.metadata.expression))}))}function J38(q,Z,Q,Y,J,H){let X=Gu(q,Z,Q,Y,J,H),G=j("$.attributes",...X);J.state.template.push(G)}function xH(q,Z,Q){let Y=[],J=[],H=[];for(let X of q.attributes)if(X.type==="Attribute"||X.type==="BindDirective"||X.type==="SpreadAttribute")Y.push(X);else if(X.type==="ClassDirective")J.push(X);else if(X.type==="StyleDirective")H.push(X);return Gu(q,Y,H,J,Z,Q)}function Gu(q,Z,Q,Y,J,H){let X,G,W=0;if(Y.length){let M=Y.map((V)=>M8(V.name,V.expression.type==="Identifier"&&V.expression.name===V.name?F(V.name):H(J.visit(V.expression),V.metadata.expression)));X=z8(M)}if(Q.length>0){let M=Q.map((V)=>M8(V.name,V.value===!0?F(V.name):G1(V.value,J,H,!0)));G=z8(M)}if(q.metadata.svg||q.metadata.mathml)W|=eV|$Y;else if(K1(q))W|=$Y;else if(q.type==="RegularElement"&&q.name==="input")W|=qW;let R=Y38(q,Z,J,H),B=q.metadata.scoped&&J.state.analysis.css.hash?g(J.state.analysis.css.hash):void 0;return[R,B,X,G,W?g(W):void 0]}function H38(q,Z,Q,Y,J){let H;if(q.length)H=z8(q.map((G)=>e8("init",g(G.name),J(Q.visit(G.expression,Q.state),G.metadata.expression))));let X;if(Y)if(Z.type==="Literal"&&typeof Z.value==="string")Z.value=(Z.value+" "+Y).trim();else X=g(Y);return j("$.attr_class",Z,X,H)}function X38(q,Z,Q,Y){let J;if(q.length){let H=[],X=[];for(let G of q){let W=G.value===!0?F(G.name):G1(G.value,Q,Y,!0),R=G.name;if(R[0]!=="-"||R[1]!=="-")R=R.toLowerCase();let B=M8(R,W);if(G.modifiers.includes("important"))X.push(B);else H.push(B)}if(X.length)J=G8([z8(H),z8(X)]);else J=z8(H)}return j("$.attr_style",Z,J)}function Vu(q,Z){let Q=Z.state.namespace==="html"?q.name.toLowerCase():q.name,Y=p6(q,Z.state.namespace),J=!q.fragment.metadata.transparent,H={...Z.state,namespace:Y,scope:Z.state.scopes.get(q.fragment),preserve_whitespace:Z.state.preserve_whitespace||q.name==="pre"||q.name==="textarea",init:[],template:[],async_consts:void 0},X={...H,scope:Z.state.scope},G=J9(Q),W=new P9,R=Q==="select"&&q.attributes.some((w)=>(w.type==="Attribute"||w.type==="BindDirective")&&w.name==="value"||w.type==="SpreadAttribute"),B=Q==="option",M=R||B,V=null;if(!M)H.template.push(g(`<${Q}`)),V=RZ(q,{...Z,state:X},W.transform),H.template.push(g(G?"/>":">"));if((Q==="script"||Q==="style")&&q.fragment.nodes.length===1){H.template.push(g(q.fragment.nodes[0].data),g(`</${Q}>`)),Z.state.template.push(...W.render([...H.init,...g0(H.template)]));return}let{hoisted:$,trimmed:O}=m6(q,q.fragment.nodes,Z.path,Y,H,H.preserve_whitespace,H.options.preserveComments);for(let w of $)Z.visit(w,H);if(Q8){let w=J0(q.start);H.template.push(l(j("$.push_element",F("$$renderer"),g(Q),g(w.line),g(w.column))))}if(R){let w={...H,template:[],init:[]};X6(O,{...Z,state:w});let I=J8([F("$$renderer")],d([...H.init,...g0(w.template)])),[C,...E]=xH(q,Z,W.transform);if(k6(q))E.push(P8);let D=l(j("$$renderer.select",C,I,...E));Z.state.template.push(...W.render([...H.init,D]));return}if(B){let w;if(q.metadata.synthetic_value_node)w=W.transform(Z.visit(q.metadata.synthetic_value_node.expression),q.metadata.synthetic_value_node.metadata.expression);else{let D={...H,template:[],init:[]};X6(O,{...Z,state:D});let f=[...H.init,...g0(D.template)];if(Q8){let v=J0(q.start);f.unshift(l(j("$.push_element",F("$$renderer"),g(Q),g(v.line),g(v.column)))),f.push(l(j("$.pop_element")))}w=J8([F("$$renderer")],d(f))}let[I,...C]=xH(q,Z,W.transform);if(k6(q))C.push(P8);let E=l(j("$$renderer.option",I,w,...C));Z.state.template.push(...W.render([...H.init,E]));return}if(V!==null){let w={...H,template:[],init:[]};X6(O,{...Z,state:w});let I=V;if(V.type!=="Identifier")I=F(H.scope.generate("$$body")),H.template.push(q0(I,V));H.template.push(k0(I,d(g0([I])),d([...w.init,...g0(w.template)])))}else if(X6(O,{...Z,state:H}),(Q==="optgroup"||Q==="select")&&k6(q))H.template.push(g("<!>"));if(!G)H.template.push(g(`</${Q}>`));if(Q8)H.template.push(l(j("$.pop_element")));if(J&&H.async_consts&&H.async_consts.thunks.length>0)H.init.push(D8(H.async_consts.id,j("$$renderer.run",G8(H.async_consts.thunks))));if(J)Z.state.template.push(...W.render([d([...H.init,...g0(H.template)])]));else if(W.is_async())Z.state.template.push(...W.render([...H.init,...g0(H.template)]));else Z.state.init.push(...H.init),Z.state.template.push(...H.template)}function Wu(q,Z){let Q=new P9,Y=N6(q.expression).callee,J=N6(q.expression).arguments,H=Q.transform(Z.visit(Y),q.metadata.expression),X=J.map((W,R)=>{return Q.transform(Z.visit(W),q.metadata.arguments[R])}),G=l((q.expression.type==="CallExpression"?j:T9)(H,F("$$renderer"),...X));if(Z.state.template.push(...Q.render_block([G])),!Q.is_async()&&!Z.state.is_standalone)Z.state.template.push(H6)}function $u(q,Z){let Q=[],Y=[],J=new P9,H=g("default");for(let R of q.attributes)if(R.type==="SpreadAttribute"){let B=Z.visit(R);Y.push(J.transform(B,R.metadata.expression))}else if(R.type==="Attribute"){let B=G1(R.value,Z,J.transform,!1,!0);if(R.name==="name")H=B;else if(R.name!=="slot")Q.push(M8(R.name,B))}let X=Y.length===0?z8(Q):j("$.spread_props",G8([z8(Q),...Y])),G=q.fragment.nodes.length===0?w1:i(Z.visit(q.fragment)),W=j("$.slot",F("$$renderer"),F("$$props"),H,X,G);Z.state.template.push(a1,...J.render_block([l(W)]),n0)}function Uu(q,Z){let Q=M7(q.expression,[F("$$renderer"),...q.parameters],Z.visit(q.body));Q.___snippet=!0;let Y=q.metadata.can_hoist?Z.state.hoisted:Z.state.init;if(Q8)Q.body.body.unshift(l(j("$.validate_snippet_args",F("$$renderer")))),Y.push(l(j("$.prevent_snippet_stringification",Q.id)));Y.push(Q)}function Ru(q,Z){return Z.visit(q.expression)}function zu(q,Z){N5(q,Z.visit(q.expression),Z)}function Bu(q,Z){let Q=Z.visit(q.tag);if(Q8){if(Q.type!=="Identifier"){let W=Z.state.scope.generate("$$tag");Z.state.init.push(q0(W,Q)),Q=F(W)}if(Z.state.init.push(l(j("$.validate_dynamic_element_tag",i(Q)))),q.fragment.nodes.length>0)Z.state.init.push(l(j("$.validate_void_dynamic_element",i(Q))))}let Y={...Z.state,namespace:p6(q,Z.state.namespace),template:[],init:[]},J=new P9,H=[];if(RZ(q,{...Z,state:Y},J.transform),Q8){let W=J0(q.start);H.push(l(j("$.push_element",F("$$renderer"),Q,g(W.line),g(W.column))))}let X=d([...Y.init,...g0(Y.template)]),G=Z.visit(q.fragment,Y);if(H.push(...J.render([l(j("$.element",F("$$renderer"),Q,X.body.length>0&&i(X),G.body.length>0&&i(G)))])),Q8)H.push(l(j("$.pop_element")));Z.state.template.push(...v1(H,q.metadata.expression.blockers(),q.metadata.expression.has_await))}function Mu(q,Z){Z.state.template.push(Z.visit(q.fragment))}function Pu(q,Z){let Q=Z.visit(q.fragment);Z.state.template.push(l(j("$.head",g(a7(T0)),F("$$renderer"),J8([F("$$renderer")],Q))))}function Lu(q,Z){N5(q,F(Z.state.analysis.name),Z)}function Ou(q,Z){let Q=[g("<title>")];X6(q.fragment.nodes,{...Z,state:{...Z.state,template:Q}}),Q.push(g("</title>")),Z.state.init.push(l(j("$$renderer.title",J8([F("$$renderer")],d(g0(Q))))))}function wu(q,Z){let Q=q.argument;if(Q.type==="Identifier"){let Y=Z.state.scope.get(Q.name);if(Y?.kind==="store_sub")return j(q.prefix?"$.update_store_pre":"$.update_store",L8("??=",F("$$store_subs"),z8([])),g(Q.name),F(Q.name.slice(1)),q.operator==="--"&&g(-1));if(Y?.kind==="derived")return j(q.prefix?"$.update_derived_pre":"$.update_derived",Y.node,q.operator==="--"&&g(-1))}return Z.next()}function ju(q,Z){let Q=[];if(Z.state.analysis.runes)for(let Y of q.declarations){let J=Y.init,H=s8(J,Z.state.scope);if(!H||H==="$effect.tracking"||H==="$inspect"||H==="$effect.root"){Q.push(Z.visit(Y));continue}if(H==="$props.id")continue;if(H==="$props"){let W=!1,R=K8(Y.id,null,{RestElement(M,V){if(V.path.at(-1)===Y.id)W=!0},AssignmentPattern(M){if(M.right.type==="CallExpression"&&s8(M.right,Z.state.scope)==="$bindable"){let V=M.right.arguments.length?Z.visit(M.right.arguments[0]):w0;return V3(M.left,V)}}}),B=Z.state.analysis.uses_slots?F("$$slots_"):F("$$slots");if(R.type==="ObjectPattern"&&W)R.properties.splice(R.properties.length-1,0,e8("init",F("$$slots"),B),e8("init",F("$$events"),F("$$events")));else if(R.type==="Identifier")R=P7([e8("init",F("$$slots"),B),e8("init",F("$$events"),F("$$events")),R5(F(R.name))]);Q.push(b8(Z.visit(R),F("$$props")));continue}let X=J.arguments,G=X.length>0?Z.visit(X[0]):w0;if(H==="$derived"||H==="$derived.by"){let R=H==="$derived"&&Z.state.analysis.async_deriveds.has(Y.init)?e0(j("$.async_derived",i(G,!0))):j("$.derived",H==="$derived"?i(G):G);if(Y.id.type==="Identifier")Q.push(b8(Z.visit(Y.id),R));else{let B=Y.init,M=G;if(H!=="$derived"||B.arguments[0].type!=="Identifier"){let O=F(Z.state.scope.generate("$$d"));M=j(O),Q.push(b8(O,R))}let{inserts:V,paths:$}=q1(Y.id,M);for(let{id:O,value:w}of V){O.name=Z.state.scope.generate("$$derived_array");let I=Z.visit(i(w)),C=j("$.derived",I);Q.push(b8(O,C))}for(let O of $){let w=Z.visit(O.expression),I=j("$.derived",i(w));Q.push(b8(O.node,I))}}continue}if(Y.id.type==="Identifier"){Q.push(b8(Y.id,G));continue}Q.push(...Au(Y,Z.state.scope,G))}else for(let Y of q.declarations){let J=Z.state.scope.get_bindings(Y),H=J.some((G)=>G.kind==="state"),X=J.some((G)=>G.kind==="bindable_prop");if(!H&&!X){Q.push(Z.visit(Y));continue}if(X){if(Y.id.type!=="Identifier"){let B=F(Z.state.scope.generate("tmp")),{inserts:M,paths:V}=q1(Y.id,B);Q.push(b8(B,Z.visit(Y.init)));for(let{id:$,value:O}of M)$.name=Z.state.scope.generate("$$array"),Q.push(b8($,O));for(let $ of V){let O=$.expression,w=$.node.name,I=Z.state.scope.get(w),C=U8(F("$$props"),g(I.prop_alias??w),!0);Q.push(b8($.node,B3(C,O)))}continue}let G=Z.state.scope.get(Y.id.name),W=U8(F("$$props"),g(G.prop_alias??Y.id.name),!0),R=W;if(Y.init){let B=Z.visit(Y.init);R=B3(W,B)}Q.push(b8(Y.id,R));continue}Q.push(...Au(Y,Z.state.scope,Y.init&&Z.visit(Y.init)))}if(Q.length===0)return _8;return{...q,declarations:Q}}function Au(q,Z,Q){if(q.id.type==="Identifier")return[b8(q.id,Q)];let Y=F(Z.generate("tmp")),{paths:J,inserts:H}=q1(q.id,Y);return[b8(Y,Q),...H.map(({id:X,value:G})=>{return X.name=Z.generate("$$array"),b8(X,G)}),...J.map((X)=>{let G=X.expression;return b8(X.node,G)})]}function Du(q,Z){let Q=q.fragment.nodes.find((V)=>V.type==="SnippetBlock"&&V.expression.name==="failed"),Y=q.attributes.find((V)=>V.type==="Attribute"&&V.name==="failed"),J=q.attributes.find((V)=>V.type==="Attribute"&&V.name==="pending"),H=J&&typeof J.value==="object"&&!Array.isArray(J.value)&&!Z.state.scope.evaluate(J.value.expression).is_defined,X=q.fragment.nodes.find((V)=>V.type==="SnippetBlock"&&V.expression.name==="pending"),G=q.fragment.nodes.filter((V)=>!(V.type==="SnippetBlock"&&["failed","pending"].includes(V.expression.name))),W={...q.fragment,nodes:G},R=Z.visit(W,{...Z.state,scope:Z.state.scopes.get(q.fragment)??Z.state.scope}),B;if(J||X)if(J&&H&&!X){let{callee:V,pending_block:$}=Iu(J,Z);B=d([k0(V,$,d(g0([a1,R,n0])))])}else B=J?Iu(J,Z).pending_block:G38(X,Z);else B=d(g0([a1,R,n0]));if(!Q&&!Y){Z.state.template.push(...B.body);return}let M=z8([]);if(Y&&!Q){let V=G1(Y.value,Z,($)=>$,!1,!0);M.properties.push(M8("failed",V))}else if(Q)Z.visit(Q,Z.state),M.properties.push(M8("failed",Q.expression));Z.state.template.push(l(j("$$renderer.boundary",M,J8([F("$$renderer")],B))))}function Iu(q,Z){let Q=G1(q.value,Z,(J)=>J,!1,!0),Y=j(Q,F("$$renderer"));return{callee:Q,pending_block:d(g0([E7,l(Y),n0]))}}function G38(q,Z){return d(g0([E7,Z.visit(q.body),n0]))}var mH={_:O5,AssignmentExpression:yS,AwaitExpression:pS,CallExpression:cS,ClassBody:rS,ExpressionStatement:nS,Identifier:qu,LabeledStatement:Yu,MemberExpression:Ju,Program:Hu,PropertyDefinition:Xu,UpdateExpression:wu,VariableDeclaration:ju},V38={AwaitBlock:mS,Component:iS,ConstTag:sS,DeclarationTag:dS,DebugTag:aS,EachBlock:oS,Fragment:tS,HtmlTag:eS,IfBlock:Zu,KeyBlock:Qu,RegularElement:Vu,RenderTag:Wu,SlotElement:$u,SnippetBlock:Uu,SpreadAttribute:Ru,SvelteComponent:zu,SvelteElement:Bu,SvelteFragment:Mu,SvelteHead:Pu,SvelteSelf:Lu,TitleElement:Ou,SvelteBoundary:Du};function Cu(q,Z){let Q={analysis:q,options:Z,scope:q.module.scope,scopes:q.module.scopes,hoisted:[R3("$","svelte/internal/server"),...q.instance_body.hoisted],legacy_reactive_statements:new Map,init:null,template:null,namespace:Z.namespace,preserve_whitespace:Z.preserveWhitespace,state_fields:new Map,is_standalone:!1,is_instance:!1},Y=K8(q.module.ast,Q,mH),J=K8(q.instance.ast,{...Q,scopes:q.instance.scopes,is_instance:!0},{...mH,ImportDeclaration($){return Q.hoisted.push($),_8},ExportNamedDeclaration($,O){if($.declaration)return O.visit($.declaration);return _8}}),H=K8(q.template.ast,{...Q,scopes:q.template.scopes},{...mH,...V38}),X=[];for(let[$]of q.reactive_statements){let O=[...Q.legacy_reactive_statements].find(([w])=>w===$);if(O===void 0)throw Error("Could not find reactive statement");if($.body.type==="ExpressionStatement"&&$.body.expression.type==="AssignmentExpression"){for(let w of r8($.body.expression.left))if(q.instance.scope.get(w.name)?.kind==="legacy_reactive")X.push(b8(w))}J.body.push(O[1])}if(X.length>0)J.body.unshift({type:"VariableDeclaration",kind:"let",declarations:X});if(q.uses_component_bindings){let $=H.body.filter((w)=>w.type==="FunctionDeclaration"&&w.___snippet),O=H.body.filter((w)=>w.type!=="FunctionDeclaration"||!w.___snippet);H.body=[...$,_0("$$settled",P8),_0("$$inner_renderer"),M7(F("$$render_inner"),[F("$$renderer")],d(O)),PB(K2("!",F("$$settled")),d([l(L8("=",F("$$settled"),P8)),l(L8("=",F("$$inner_renderer"),j("$$renderer.copy"))),l(j("$$render_inner",F("$$inner_renderer")))])),l(j("$$renderer.subsume",F("$$inner_renderer")))]}if([...q.instance.scope.declarations.values()].some(($)=>$.kind==="store_sub"))J.body.unshift(D8("$$store_subs")),H.body.push(k0(F("$$store_subs"),l(j("$.unsubscribe_stores",F("$$store_subs")))));let G=[];for(let[$,O]of q.instance.scope.declarations)if(O.kind==="bindable_prop"&&!$.startsWith("$$"))G.push(M8(O.prop_alias??$,F($)));for(let{name:$,alias:O}of q.exports)G.push(M8(O??$,F($)));if(G.length>0)H.body.push(l(j("$.bind_props",F("$$props"),z8(G))));let W=d([...J.body,...H.body]);if(W.loc=J.loc,q.props_id)W.body.unshift(q0(q.props_id,j("$.props_id",F("$$renderer"))));let R=Q8||q.needs_context;if(R)W=d([l(j("$$renderer.component",J8([F("$$renderer")],W,!1),Q8&&F(j6)))]);if(q.uses_rest_props){let $=q.exports.map(({name:O,alias:w})=>w??O);for(let[O,w]of q.instance.scope.declarations)if(w.kind==="bindable_prop")$.push(w.prop_alias??O);W.body.unshift(q0("$$restProps",j("$.rest_props",F("$$sanitized_props"),G8($.map((O)=>g(O))))))}if(q.uses_props||q.uses_rest_props)W.body.unshift(q0("$$sanitized_props",j("$.sanitize_props",F("$$props"))));if(q.uses_slots)W.body.unshift(q0("$$slots",j("$.sanitize_slots",F("$$props"))));let B=[...Q.hoisted,...Y.body];if(q.css.ast!==null&&q.inject_styles&&!q.custom_element){let $=g(q.css.hash),O=g(v5(q.source,q,Z).code);B.push(q0("$$css",z8([M8("hash",$),M8("code",O)]))),W.body.unshift(l(j("$$renderer.global.css.add",F("$$css"))))}let M=R||G.length>0||q.needs_props||q.uses_props||q.uses_rest_props||q.uses_slots||q.slot_names.size>0,V=M7(F(q.name),M?[F("$$renderer"),F("$$props")]:[F("$$renderer")],W);if(Z.compatibility.componentApi===4)B.unshift(o9([["render","$$_render"]],"svelte/server")),B.push(V,l(L8("=",f6(`${q.name}.render`),r0(null,[F("$$props"),F("$$opts")],d([l8(j("$$_render",F(q.name),z8([M8("props",F("$$props")),M8("context",U8(F("$$opts"),"context",!1,!0))])))])))),B7(F(q.name)));else if(Q8)B.push(V,l(L8("=",f6(`${q.name}.render`),r0(null,[],d([OB("Component.render(...) is no longer valid in Svelte 5. See https://svelte.dev/docs/svelte/v5-migration-guide#Components-are-no-longer-classes for more information")])))),B7(F(q.name)));else B.push(B7(V));if(Q8)B.unshift(l(L8("=",U8(F(q.name),"$.FILENAME",!0),g(T0))));if(Z.experimental.async)B.unshift(o9([],"svelte/internal/flags/async"));return{type:"Program",sourceType:"module",body:B}}class Z1{#q=[];#Z=[];#Q=new Set;add(q,Z,Q=!1){if(this.check_blockers(Z),!(Z.has_call||Z.has_await||Q&&Z.has_state))return q;let J=F("#");return(Z.has_await?this.#Z:this.#q).push({id:J,expression:q}),J}check_blockers(q){for(let Z of q.references)if(Z.blocker)this.#Q.add(Z.blocker)}apply(){return[...this.#q,...this.#Z].map((q,Z)=>{return q.id.name=`$${Z}`,q.id})}blockers(){return this.#Q.size>0?G8([...this.#Q]):void 0}deriveds(q=!0){return this.#q.map((Z)=>_0(Z.id,j(q?"$.derived":"$.derived_safe_equal",i(Z.expression))))}async_ids(){return this.#Z.map((q)=>q.id)}async_values(){if(this.#Z.length===0)return;return G8(this.#Z.map((q)=>J8([],q.expression,!0)))}sync_values(){if(this.#q.length===0)return;return G8(this.#q.map((q)=>J8([],q.expression)))}}function c6(q,Z,Q=Z.state,Y=(J,H)=>Q.memoizer.add(J,H)){let J=[],H=W9(""),X=[H],G=!1,W=!1;for(let B=0;B<q.length;B++){let M=q[B];if(M.type==="Text")H.value.cooked+=M.data;else if(M.expression.type==="Literal"){if(M.expression.value!=null)H.value.cooked+=M.expression.value+""}else if(M.expression.type!=="Identifier"||M.expression.name!=="undefined"||Q.scope.get("undefined")){let V=Y(K0(Z,M.expression,M.metadata.expression,Q),M.metadata.expression),$=Q.scope.evaluate(V);if(W||=M.metadata.expression.has_await||M.metadata.expression.has_blockers(),G||=W||M.metadata.expression.has_state&&!$.is_known,q.length===1){if($.is_known)V=g(($.value??"")+"");return{value:V,has_state:G}}if(V.type==="LogicalExpression"&&V.right.type==="Literal"&&(V.operator==="??"||V.operator==="||")){if(V.right.value===null)V={...V,right:g("")}}if($.is_known)H.value.cooked+=($.value??"")+"";else{if(!$.is_defined)V=r1("??",V,g(""));J.push(V),H=W9("",B+1===q.length),X.push(H)}}}for(let B of X)B.value.raw=z7(B.value.cooked);return{value:J.length>0?K6(X,J):g(H.value.cooked),has_state:G}}function F7(q){let{memoizer:Z}=q,Q=Z.apply();return l(j("$.template_effect",J8(Q,q.update.length===1&&q.update[0].type==="ExpressionStatement"?q.update[0].expression:d(q.update)),Z.sync_values(),Z.async_values(),Z.blockers()))}function k5(q){let Z=q.split("."),Q=Z.shift(),Y=F(Q);while(Q=Z.shift()){let J=!W2.test(Q);Y=U8(Y,J?g(Q):F(Q),J)}return Y}function zZ(q,Z,{state:Q,visit:Y}){let[J,H]=q.type==="SequenceExpression"?q.expressions:[null,null],X=[],G=[],W=[],R={...Q.transform};K8(J??q,null,{Identifier(O,{path:w}){if(W.includes(O.name))return;W.push(O.name);let I=w.at(-1);if(!s0(O,I))return;let C=Q.scope.get(O.name);if(!C)return;for(let[E,D]of Q.scopes)if(E.type==="EachBlock"&&D===C.scope){if(X.push(O),G.push(Y(O)),R[O.name])R[O.name]={...R[O.name],read:(f)=>f};break}}});let B={...Q,transform:R},M=Y(J??q,B),V=Y(H??L8("=",q,F("$$value")),B),$=M;while($.type==="MemberExpression")$.optional=!0,$=$.object;return M=M.type==="ArrowFunctionExpression"?J8([...X],M.body):M.type==="FunctionExpression"?r0(null,[...X],M.body):J?M:J8([...X],M),V=V.type==="ArrowFunctionExpression"?J8([V.params[0]??F("_"),...X],V.body):V.type==="FunctionExpression"?r0(null,[V.params[0]??F("_"),...X],V.body):H?V:J8([F("$$value"),...X],V),j("$.bind_this",Z,V,M,G.length>0&&i(G8(G)))}function BZ(q,Z,Q){if(Z.expression.type==="SequenceExpression")return;let Y=f0(Z.expression);if((Y&&q.scope.get(Y.name))?.kind==="store_sub")return;let H=J0(Z.start),X=Q.object;q.init.push(l(j("$.validate_binding",g(q.analysis.source.slice(Z.start,Z.end)),Z.metadata.expression.blockers(),i(q.store_to_invalidate?y0([j("$.mark_store_binding"),X]):X),i(Q.computed?Q.property:g(Q.property.name)),g(H.line),g(H.column))))}function MZ(q,Z,Q){let Y=q.type==="AssignmentExpression"?q.left:q.argument;if(!Q8||Y.type!=="MemberExpression"||L0(q,"ownership_invalid_mutation"))return Q;let J=f0(Y);if(!J)return Q;let H=Z.state.scope.get(J.name);if(H?.kind!=="prop"&&H?.kind!=="bindable_prop")return Q;let X=Z.state;X.analysis.needs_mutation_validation=!0;let G=[];while(Y.type==="MemberExpression"){if(Y.property.type==="Literal")G.unshift(Y.property);else if(Y.property.type==="Identifier"){let R=Object.hasOwn(Z.state.transform,Y.property.name)?Z.state.transform[Y.property.name]:null;if(Y.computed)G.unshift(R?.read?R.read(Y.property):Y.property);else G.unshift(g(Y.property.name))}else return Q;Y=Y.object}G.unshift(g(J.name));let W=J0(Y.start);return j("$$ownership_validator.mutation",g(H.prop_alias),G8(G),Q,W&&g(W.line),W&&g(W.column))}function K0(q,Z,Q,Y=q.state){let J=q.visit(Z,Y);if(q.state.analysis.runes||q.state.analysis.maybe_runes)return J;if(!Q.has_call&&!Q.has_member_expression&&!Q.has_assignment)return J;let H=y0([]);for(let G of Q.references){if(G.kind==="normal"&&G.declaration_kind!=="import")continue;var X=X1({...G.node},Y);if(G.kind==="bindable_prop"||G.kind==="template"||G.declaration_kind==="import"||G.node.name==="$$props"||G.node.name==="$$restProps")X=j("$.deep_read_state",X);H.expressions.push(X)}return H.expressions.push(j("$.untrack",i(J))),H}function N1(q,Z,Q,Y){if(!Q8)return l(q);let J=Z.start!==void 0&&J0(Z.start);if(!J)return l(q);return l(j("$.add_svelte_meta",J8([],q),g(Q),F(j6),g(J.line),g(J.column),Y&&z8(Object.entries(Y).map(([H,X])=>M8(H,g(X))))))}function Eu(q,Z){let Q=q.expression===null?w1:i(Z.visit(q.expression)),Y=l(j("$.animation",Z.state.node,i(Z.visit(k5(q.name))),Q));if(q.metadata.expression.is_async())Y=l(j("$.run_after_blockers",q.metadata.expression.blockers(),i(d([Y]))));Z.state.after_update.push(Y)}var PZ=(q,Z)=>{let Q={...Z.state,in_constructor:!1,in_derived:!1};if(q.type==="FunctionExpression"){let Y=Z.path.at(-1);Q.in_constructor=Y.type==="MethodDefinition"&&Y.kind==="constructor"}Z.next(Q)};function Fu(q,Z){return PZ(q,Z)}function Tu(q,Z){let Q=VZ(q,Z,W38)??Z.next();return MZ(q,Z,Q)}function pH(q){return["=","||=","&&=","??="].includes(q)}function W38(q,Z,Q,Y){if(Y.state.analysis.runes&&Z.type==="MemberExpression"){let R=H1(Z.property),B=R&&Y.state.state_fields.get(R);if(B){if(B.node.type==="AssignmentExpression"&&Z===B.node.left){let M=s8(Q,Y.state.scope);if(M){let V={...Y.state,in_constructor:M!=="$derived"&&M!=="$derived.by"},$=Y.visit(Q,V);if(Q8){let O=Y.path.findLast((w)=>w.type==="ClassDeclaration"||w.type==="ClassExpression");$=j("$.tag",$,g(`${O?.id?.name??"[class]"}.${R}`))}return L8(q,U8(M1,B.key),$)}}if(Z.property.type==="PrivateIdentifier"){let M=Y.visit(O7(q,Z,Q)),V=B.type==="$state"&&pH(q)&&M9(M,Y.state.scope);return j("$.set",Z,M,V&&P8)}}}let J=Z;while(J.type==="MemberExpression")J=J.object;if(J.type!=="Identifier")return null;let H=Y.state.scope.get(J.name);if(!H)return null;let X=Object.hasOwn(Y.state.transform,J.name)?Y.state.transform[J.name]:null,G=Y.path.map((R)=>R.type);if(J===Z&&X?.assign){let R=G.at(-1)==="BindDirective"&&G.at(-2)==="RegularElement",B=Y.visit(O7(q,Z,Q));return X.assign(J,B,!R&&H.kind!=="prop"&&H.kind!=="bindable_prop"&&H.kind!=="raw_state"&&H.kind!=="derived"&&H.kind!=="store_sub"&&Y.state.analysis.runes&&M9(Q,Y.state.scope)&&pH(q))}if(X?.mutate){let R=X.mutate(J,L8(q,Y.visit(Z),Y.visit(Q)));if(H.legacy_indirect_bindings.size>0)R=y0([R,j("$.invalidate_inner_signals",J8([],d(Array.from(H.legacy_indirect_bindings).map((B)=>l(X1({...B.node},Y.state))))))]);return R}let W=Q8&&G.at(-1)!=="ExpressionStatement"&&pH(q)&&!Y.state.scope.evaluate(Q).is_primitive;if(G.at(-1)==="ArrowFunctionExpression"&&(G.at(-2)==="RegularElement"||G.at(-2)==="SvelteElement")){if(Y.path.at(-2).attributes.find((M)=>{if(M.type!=="Attribute"||!I0(M))return!1;return U9(M)===Y.path.at(-1)}))W=!1}if(G.at(-1)==="BindDirective"||G.at(-1)==="Component"||G.at(-1)==="SvelteComponent"||G.at(-1)==="ArrowFunctionExpression"&&(G.at(-2)==="BindDirective"||G.at(-2)==="Component"&&G.at(-3)==="Fragment"||G.at(-2)==="SequenceExpression"&&(G.at(-3)==="Component"||G.at(-3)==="SvelteComponent"||G.at(-3)==="BindDirective")))W=!1;if(Z.type==="MemberExpression"&&W){let R=q!=="=",B=R&&G0(Q),M=j(B?"$.assign_async":"$.assign",Z.object,Z.computed?Z.property:g(Z.property.name),g(q),R?J8([],Q,B):Q,g(X7(Z)));if(B)M=e0(M);return Y.visit(M)}return null}function LZ(q,Z){let Q=!1,Y=q.name.slice(2);if(HW(Y))Y=Y.slice(0,-7),Q=!0;let J=Array.isArray(q.value)?q.value[0]:q.value,H=Bq(J.expression,J.metadata.expression,Z);if(q.metadata.delegated)Z.state.events.add(Y);let X=l(cH(Z,Y,H,Q,$W(Y)?!0:void 0,q.metadata.delegated)),G=Z.path.at(-1).type;if(G==="SvelteDocument"||G==="SvelteWindow"||G==="SvelteBody")Z.state.init.push(X);else Z.state.after_update.push(X)}function cH(q,Z,Q,Y,J,H){let X=Q;if(Q8&&Q.type==="ArrowFunctionExpression"){let G=q.state.scope.generate(Z);X=r0(F(G),Q.params,Q.body.type==="BlockStatement"?Q.body:d([l8(Q.body)]),Q.async)}return j(H?"$.delegated":"$.event",g(Z),q.state.node,X,Y&&P8,J===void 0?void 0:g(J))}function Bq(q,Z,Q){if(q===null)return r0(null,[F("$$arg")],d([l(j("$.bubble_event.call",M1,F("$$props"),F("$$arg")))]));let Y=Q.visit(q);if(Y.type==="ArrowFunctionExpression"||Y.type==="FunctionExpression")return Y;if(Y.type==="Identifier"){let H=Q.state.scope.get(Y.name);if(H?.is_function())return Y;if(!Q8&&H?.declaration_kind!=="import")return Y}if(Z.has_call){let H=F(Q.state.scope.generate("event_handler"));Q.state.init.push(D8(H,j("$.derived",i(Y)))),Y=j("$.get",H)}let J=j(U8(Y,"apply",!1,!0),M1,F("$$args"));if(Q8){let H=J0(q.start),X=q.type==="CallExpression"&&q.arguments.length===0&&q.callee.type==="Identifier";J=j("$.apply",i(Y),M1,F("$$args"),F(Q.state.analysis.name),G8([g(H.line),g(H.column)]),fu(q)&&P8,X&&P8)}return r0(null,[R5(F("$$args"))],d([l(J)]))}function fu(q){if(q.type==="CallExpression"||q.type==="NewExpression"||q.type==="AssignmentExpression"||q.type==="UpdateExpression")return!0;if(q.type==="SequenceExpression")return q.expressions.some(fu);return!1}function Ku(q,Z){if(I0(q))LZ(q,Z)}function S0(q){return j("$.get",q)}function S5(q){for(let[Z,Q]of q.state.scope.declarations)if(m2(Q,q.state.analysis)||Q.kind==="derived"||Q.kind==="legacy_reactive")q.state.transform[Z]={read:Q.declaration_kind==="var"?(Y)=>j("$.safe_get",Y):S0,assign:(Y,J,H=!1)=>{let X=j("$.set",Y,J,H&&P8);if(q.state.scope.get(`$${Y.name}`)?.kind==="store_sub")X=j("$.store_unsub",X,g(`$${Y.name}`),F("$$stores"));return X},mutate:(Y,J)=>{if(q.state.analysis.runes)return J;return j("$.mutate",Y,J)},update:(Y)=>{return j(Y.prefix?"$.update_pre":"$.update",Y.argument,Y.operator==="--"&&g(-1))}}}function Nu(q,Z){Z.state.template.push_comment();let Q=i(K0(Z,q.expression,q.metadata.expression),q.metadata.expression.has_await),Y,J;if(q.then){let X={...Z,state:{...Z.state,transform:{...Z.state.transform}}},G=q.value&&vu(q.value,X),W=[F("$$anchor")];if(G)W.push(G.id);let R=G?.declarations??[],B=X.visit(q.then,X.state);Y=J8(W,d([...R,...B.body]))}if(q.catch){let X={...Z,state:{...Z.state}},G=q.error&&vu(q.error,X),W=[F("$$anchor")];if(G)W.push(G.id);let R=G?.declarations??[],B=X.visit(q.catch,X.state);J=J8(W,d([...R,...B.body]))}let H=N1(j("$.await",Z.state.node,Q,q.pending?J8([F("$$anchor")],Z.visit(q.pending)):w1,Y,J),q,"await");if(q.metadata.expression.has_blockers()||q.metadata.expression.has_await)Z.state.init.push(l(j("$.async",Z.state.node,q.metadata.expression.blockers(),G8([]),J8([Z.state.node],d([H])))));else Z.state.init.push(H)}function vu(q,Z){if(q.type==="Identifier")return Z.state.transform[q.name]={read:S0},{id:q,declarations:null};let Q=Z.visit(q),Y=r8(q),J=F("$$source"),H=F("$$value"),X=d([D8(Q,j("$.get",J)),l8(z8(Y.map((W)=>e8("init",W,W))))]),G=[D8(H,y6(Z.state,X))];for(let W of Y)Z.state.transform[W.name]={read:S0},G.push(D8(W,y6(Z.state,U8(j("$.get",H),W))));return{id:J,declarations:G}}function ku(q,Z){let Q=Z.visit(q.argument);if(Z.state.analysis.pickled_awaits.has(q))return N9(Q);else if(Q8&&!L0(q,"await_reactivity_loss"))return j(e0(j("$.track_reactivity_loss",Q)));return Q===q.argument?q:{...q,argument:Q}}function Su(q,Z){if(Q8){let Q=q.operator;if(Q==="==="||Q==="!==")return j("$.strict_equals",Z.visit(q.left),Z.visit(q.right),Q==="!=="&&a9);if(Q==="=="||Q==="!=")return j("$.equals",Z.visit(q.left),Z.visit(q.right),Q==="!="&&a9)}Z.next()}function T7(q,Z,Q,Y){let J=Y.state.metadata.bound_contenteditable,H=Z,X=0,G=[];function W(M){if(X===0)return H(M);return j("$.sibling",H(!1),(M||X!==1)&&g(X),M&&P8)}function R(M,V,$){let O=W(M),w=O;if(w.type!=="Identifier")w=F(Y.state.scope.generate(V),$),Y.state.init.push(D8(w,O));return H=()=>w,X=1,w}function B(M){if(M.every((C)=>C.type==="Text")){X+=1,Y.state.template.push_text(M);return}Y.state.template.push_text([{type:"Text",data:" ",raw:" ",start:-1,end:-1}]);let{has_state:V,value:$}=c6(M,Y),O=M.length===1,w=R(O,"text"),I=l(j("$.set_text",w,$));if(V&&!J)Y.state.update.push(I);else Y.state.init.push(l(L8("=",U8(w,"nodeValue"),$)))}for(let M of q)if(M.type==="Text"||M.type==="ExpressionTag")G.push(M);else{if(G.length>0)B(G),G=[];let V=Y.state;if(rH(M))X+=1;else if((M.type==="EachBlock"||M.type==="HtmlTag")&&q.length===1&&Q&&!M.metadata.expression.is_async())M.metadata.is_controlled=!0;else{let $=R(!1,M.type==="RegularElement"?M.name:"node",M.type==="RegularElement"?M.name_loc:null);V={...Y.state,node:$}}Y.visit(M,V)}if(G.length>0)B(G);if(X>1)X-=1,Y.state.init.push(l(j("$.next",X!==1&&g(X))))}function rH(q){if(q.type!=="RegularElement")return!1;if(q.fragment.metadata.dynamic)return!1;if(K1(q))return!1;for(let Z of q.attributes){if(Z.type!=="Attribute")return!1;if(I0(Z))return!1;if(o7(Z.name))return!1;if(Z.name==="dir")return!1;if(["input","textarea"].includes(q.name)&&["value","checked"].includes(Z.name))return!1;if(q.name==="option"&&Z.name==="value")return!1;if(q.name==="img"&&Z.name==="loading")return!1;if(Z.value!==!0&&!d8(Z))return!1}return!0}var $38="accent-height accumulate additive alignment-baseline allowReorder alphabetic amplitude arabic-form ascent attributeName attributeType autoReverse azimuth baseFrequency baseline-shift baseProfile bbox begin bias by calcMode cap-height class clip clipPathUnits clip-path clip-rule color color-interpolation color-interpolation-filters color-profile color-rendering contentScriptType contentStyleType cursor cx cy d decelerate descent diffuseConstant direction display divisor dominant-baseline dur dx dy edgeMode elevation enable-background end exponent externalResourcesRequired fill fill-opacity fill-rule filter filterRes filterUnits flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight format from fr fx fy g1 g2 glyph-name glyph-orientation-horizontal glyph-orientation-vertical glyphRef gradientTransform gradientUnits hanging height href horiz-adv-x horiz-origin-x id ideographic image-rendering in in2 intercept k k1 k2 k3 k4 kernelMatrix kernelUnitLength kerning keyPoints keySplines keyTimes lang lengthAdjust letter-spacing lighting-color limitingConeAngle local marker-end marker-mid marker-start markerHeight markerUnits markerWidth mask maskContentUnits maskUnits mathematical max media method min mode name numOctaves offset onabort onactivate onbegin onclick onend onerror onfocusin onfocusout onload onmousedown onmousemove onmouseout onmouseover onmouseup onrepeat onresize onscroll onunload opacity operator order orient orientation origin overflow overline-position overline-thickness panose-1 paint-order pathLength patternContentUnits patternTransform patternUnits pointer-events points pointsAtX pointsAtY pointsAtZ preserveAlpha preserveAspectRatio primitiveUnits r radius refX refY rendering-intent repeatCount repeatDur requiredExtensions requiredFeatures restart result rotate rx ry scale seed shape-rendering slope spacing specularConstant specularExponent speed spreadMethod startOffset stdDeviation stemh stemv stitchTiles stop-color stop-opacity strikethrough-position strikethrough-thickness string stroke stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width style surfaceScale systemLanguage tabindex tableValues target targetX targetY text-anchor text-decoration text-rendering textLength to transform type u1 u2 underline-position underline-thickness unicode unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical values version vert-adv-y vert-origin-x vert-origin-y viewBox viewTarget visibility width widths word-spacing writing-mode x x-height x1 x2 xChannelSelector xlink:actuate xlink:arcrole xlink:href xlink:role xlink:show xlink:title xlink:type xml:base xml:lang xml:space y y1 y2 yChannelSelector z zoomAndPan".split(" "),uu=new Map;$38.forEach((q)=>{uu.set(q.toLowerCase(),q)});function iH(q){return q=q.toLowerCase(),uu.get(q)||q}class Mq{contains_script_tag=!1;needs_import_node=!1;nodes=[];#q=[this.nodes];#Z;#Q=this.nodes;push_element(q,Z,Q){this.#Z={type:"element",name:q,attributes:{},children:[],is_html:Q,start:Z},this.#Q.push(this.#Z),this.#Q=this.#Z.children,this.#q.push(this.#Q)}push_comment(q){this.#Q.push({type:"comment",data:q})}push_text(q){this.#Q.push({type:"text",nodes:q})}pop_element(){this.#q.pop(),this.#Q=this.#q.at(-1)}set_prop(q,Z){this.#Z.attributes[q]=Z}as_html(){return K6([W9(this.nodes.map(bu).join(""),!0)],[])}as_tree(){if(this.nodes[0].type==="comment")this.nodes.unshift({type:"comment",data:void 0});return G8(this.nodes.map(hu))}}function bu(q){if(q.type==="text")return q.nodes.map((Q)=>Q.raw).join("");if(q.type==="comment")return q.data?`<!--${q.data}-->`:"<!>";let Z=`<${q.name}`;for(let Q in q.attributes){let Y=q.attributes[Q];if(Z+=` ${q.is_html?Q.toLowerCase():Q}`,Y!==void 0)Z+=`="${_9(Y,!0)}"`}if(J9(q.name))Z+="/>";else Z+=">",Z+=q.children.map(bu).join(""),Z+=`</${q.name}>`;return Z}function hu(q){if(q.type==="text")return g(q.nodes.map((Y)=>Y.data).join(""));if(q.type==="comment")return q.data?G8([g(`// ${q.data}`)]):null;let Z=G8([g(q.name)]),Q=z8([]);for(let Y in q.attributes){let J=q.attributes[Y];Q.properties.push(e8("init",i0(iH(Y)),J===void 0?w0:g(J)))}if(Q.properties.length>0||q.children.length>0)Z.elements.push(Q.properties.length>0?Q:w1);if(q.children.length>0){let Y=q.children.map(hu);if(Z.elements.push(...Y),q.name==="pre"||q.name==="textarea"){let J=Y[0];if(J?.type==="Literal")J.value=J.value.replace(Y7,"")}}return Z}function yu(q){let Z=G8([]);for(let Q of q){if(Q.type!=="element")continue;let{line:Y,column:J}=J0(Q.start),H=G8([g(Y),g(J)]),X=yu(Q.children);if(X.elements.length>0)H.elements.push(X);Z.elements.push(H)}return Z}function Pq(q,Z,Q=0){let Y=q.metadata.namespace,J=q.options.fragments==="tree",H=J?q.template.as_tree():q.template.as_html(),X=J||Q8?null:U38(H,q.metadata.namespace,Q);if(X!==null){let R=q.templates.get(X);if(R!==void 0)return R}if(J){if(Y==="svg")Q|=sV;if(Y==="mathml")Q|=aV}let G=j(J?"$.from_tree":`$.from_${Y}`,H,Q?g(Q):void 0);if(q.template.contains_script_tag)G=j("$.with_script",G);if(Q8)G=j("$.add_locations",G,U8(F(q.analysis.name),"$.FILENAME",!0),yu(q.template.nodes));let W=q.scope.root.unique(Z);if(q.hoisted.push(D8(W,G)),X!==null)q.templates.set(X,W);return W}function U38(q,Z,Q){return`${Z} ${Q} ${q.quasis[0].value.raw}`}function gu(q,Z){let Q=Z.state.metadata.namespace==="html"&&q.name!=="svg",Y=Q?q.name.toLowerCase():q.name;if(Z.state.template.push_element(Y,q.start,Q),Y==="noscript"){Z.state.template.pop_element();return}let J=K1(q);Z.state.template.needs_import_node||=Y==="video"||J,Z.state.template.contains_script_tag||=Y==="script";let H=[],X=[],G=[],W=[],R=[],B=new Map,M=new Map,V=q.metadata.has_spread,$=!1,O=!1;for(let L of q.attributes)switch(L.type){case"AnimateDirective":W.push(L);break;case"Attribute":if(L.name==="is"&&Z.state.metadata.namespace==="html"){let{value:A}=l0(L.value,Z);if(A.type==="Literal"&&typeof A.value==="string"){Z.state.template.set_prop("is",A.value);continue}}H.push(L),B.set(L.name,L);break;case"BindDirective":M.set(L.name,L),W.push(L);break;case"ClassDirective":X.push(L);break;case"LetDirective":Z.visit(L,{...Z.state,let_directives:R});break;case"OnDirective":W.push(L);break;case"SpreadAttribute":H.push(L);break;case"StyleDirective":G.push(L);break;case"TransitionDirective":W.push(L);break;case"UseDirective":$=!0,W.push(L);break;case"AttachTag":W.push(L);break}let w={...Z.state,init:[],after_update:[]};for(let L of W)if(L.type==="OnDirective"){let A=Z.visit(L);if($)w.init.push(l(j("$.effect",i(A))));else w.after_update.push(l(A))}else Z.visit(L,w);if(Y==="input"){let L=H.some((T)=>T.type==="Attribute"&&(T.name==="value"||T.name==="checked")&&!d8(T));if(!H.some((T)=>T.type==="Attribute"&&(T.name==="defaultValue"||T.name==="defaultChecked"))&&(V||M.has("value")||M.has("checked")||M.has("group")||!M.has("group")&&L))if(V)O=!0;else Z.state.init.push(l(j("$.remove_input_defaults",Z.state.node)))}if(Y==="textarea"){let L=B.get("value")??B.get("checked"),A=L&&!d8(L);if(V||M.has("value")||A)Z.state.init.push(l(j("$.remove_textarea_child",Z.state.node)))}Z.state.let_directives.push(...R);let I=Z.state.node,C=Y==="option"||Y==="select"||M.has("group")||M.has("checked");if(V)OZ(H,X,G,Z,q,I,O);else for(let L of H){if(I0(L)){LZ(L,Z);continue}if(C&&L.name==="value")continue;let A=lu(q,L);if(!J&&!o7(L.name)&&(L.value===!0||d8(L))&&(A!=="class"||X.length===0)&&(A!=="style"||G.length===0)){let T=d8(L)?L.value[0].data:!0;if(A==="class"&&q.metadata.scoped&&Z.state.analysis.css.hash)if(T===!0||T==="")T=Z.state.analysis.css.hash;else T+=" "+Z.state.analysis.css.hash;if(A!=="class"||T)Z.state.template.set_prop(L.name,T===!0?"":T)}else if(A==="autofocus"){let{value:T}=l0(L.value,Z);Z.state.init.push(l(j("$.autofocus",I,T)))}else if(A==="class")wZ(q,I,L,X,Z,Q);else if(A==="style")xu(I,L,G,Z);else if(J)z38(I,L,Z);else{let{value:T,has_state:h}=l0(L.value,Z,(y,r)=>Z.state.memoizer.add(y,r)),N=R38(q,I,A,T,H);(h?Z.state.update:Z.state.init).push(l(N))}}if(t7(Y)&&(V||$||B.has("onload")||B.has("onerror")))Z.state.after_update.push(l(j("$.replay_events",I)));let E={...Z.state.metadata,namespace:p6(q,Z.state.metadata.namespace)};if(M.has("innerHTML")||M.has("innerText")||M.has("textContent")){let L=B.get("contenteditable");if(L&&(L.value===!0||d8(L)&&L.value[0].data==="true"))E.bound_contenteditable=!0}let D=Z.state.scopes.get(q.fragment),f={...Z.state,metadata:E,scope:D,transform:v3(D,Z.state),preserve_whitespace:Z.state.preserve_whitespace||Y==="pre"||Y==="textarea"},{hoisted:v,trimmed:_}=m6(q,q.fragment.nodes,Z.path,f.metadata.namespace,f,Y==="script"||f.preserve_whitespace,f.options.preserveComments),b=!q.fragment.metadata.transparent,z={...f,init:[],update:[],after_update:[],snippets:[],consts:b?[]:f.consts,async_consts:b?void 0:f.async_consts,memoizer:b?new Z1:f.memoizer};for(let L of v)Z.visit(L,z);if(_.every((L)=>L.type==="Text"||L.type==="ExpressionTag")&&_.every((L)=>L.type==="Text"||!L.metadata.expression.has_state&&!L.metadata.expression.has_await&&!L.metadata.expression.has_blockers())&&_.some((L)=>L.type==="ExpressionTag")){let{value:L}=c6(_,Z,z);if(!(L.type==="Literal"&&L.value===""))z.init.push(l(L8("=",U8(Z.state.node,"textContent"),L)))}else if(k6(q)){let L=Z.state.node;Z.state.template.push_comment();let A=F(Z.state.scope.generate("fragment")),T=F(Z.state.scope.generate("anchor")),h={...f,init:[],update:[],after_update:[],template:new Mq};T7(_,(r)=>j("$.first_child",A,r&&P8),!1,{...Z,state:h});let N=Pq(h,`${Y}_content`,A4),y=d([D8(T,j("$.child",L)),D8(A,j(N)),...h.init,...h.update.length>0?[F7(h)]:[],...h.after_update,l(j("$.append",T,A))]);z.init.push(l(j("$.customizable_select",L,J8([],y))))}else{let L=Z.state.node,A=_.some((T)=>T.type!=="Text"&&!rH(T));if(Y==="template")A=!0,z.init.push(l(j("$.hydrate_template",L))),L=U8(L,"content");if(T7(_,(T)=>j("$.child",L,T&&P8),!0,{...Z,state:z}),A)z.init.push(l(j("$.reset",Z.state.node)))}if(q.fragment.nodes.some((L)=>L.type==="SnippetBlock")||b){if(z.async_consts&&z.async_consts.thunks.length>0)z.consts.push(D8(z.async_consts.id,j("$.run",G8(z.async_consts.thunks))));Z.state.init.push(d([...z.snippets,...z.consts,...z.init,...w.init,z.update.length>0?F7(z):_8,...z.after_update,...w.after_update]))}else if(q.fragment.metadata.dynamic)Z.state.init.push(...z.init,...w.init),Z.state.update.push(...z.update),Z.state.after_update.push(...z.after_update,...w.after_update);else Z.state.init.push(...w.init),Z.state.after_update.push(...w.after_update);if(Y==="selectedcontent")Z.state.init.push(l(j("$.selectedcontent",Z.state.node,J8([F("$$element")],L8("=",Z.state.node,F("$$element"))))));if(B.has("dir")){let L=U8(I,"dir");Z.state.update.push(l(L8("=",L,L)))}if(!V&&C){if(q.metadata.synthetic_value_node){let L=q.metadata.synthetic_value_node,A=A1("value",null,L.start,L.end,[L]);_u(Y,I,A,Z,!0)}else for(let L of H)if(L.name==="value"){_u(Y,I,L,Z);break}}Z.state.template.pop_element()}function dH(q,Z,Q=Z.state.memoizer){let Y=[],J=new n8;for(let X of q){J.merge(X.metadata.expression);let G=Z.visit(X.expression);Y.push(M8(X.name,G))}let H=z8(Y);return Q.add(H,J)}function sH(q,Z,Q=Z.state.memoizer){let Y=z8([]),J=z8([]),H=new n8;for(let G of q){H.merge(G.metadata.expression);let W=G.value===!0?X1(F(G.name),Z.state):l0(G.value,Z).value;(G.modifiers.includes("important")?J:Y).properties.push(M8(G.name,W))}let X=J.properties.length?G8([Y,J]):Y;return Q.add(X,H)}function R38(q,Z,Q,Y,J){if(Q==="muted")return L8("=",U8(Z,F("muted")),Y);if(Q==="value")return j("$.set_value",Z,Y);if(Q==="checked")return j("$.set_checked",Z,Y);if(Q==="selected")return j("$.set_selected",Z,Y);if(Q==="defaultValue"&&(J.some((H)=>H.type==="Attribute"&&H.name==="value"&&d8(H))||q.name==="textarea"&&q.fragment.nodes.length>0))return j("$.set_default_value",Z,Y);if(Q==="defaultChecked"&&J.some((H)=>H.type==="Attribute"&&H.name==="checked"&&H.value===!0))return j("$.set_default_checked",Z,Y);if(WW(Q))return L8("=",U8(Z,Q),Y);return j(Q.startsWith("xlink")?"$.set_xlink_attribute":"$.set_attribute",Z,g(Q),Y,L0(q,"hydration_attribute_changed")&&P8)}function z38(q,Z,Q){let{value:Y,has_state:J}=l0(Z.value,Q),H=j("$.set_custom_element_data",q,g(Z.name),Y),X=J?j("$.template_effect",i(H)):H;Q.state.init.push(l(X))}function _u(q,Z,Q,Y,J=!1){let H=Y.state,X=q==="select"&&Q.value!==!0&&!d8(Q),{value:G,has_state:W}=l0(Q.value,Y,($,O)=>H.memoizer.add($,O)),R=Y.state.scope.evaluate(G),B=L8("=",U8(Z,"__value"),G),M=L8("=",U8(Z,"value"),R.is_defined?B:r1("??",B,g(""))),V=l(X?y0([M,j("$.select_option",Z,G)]):J?B:M);if(W){let $=F(H.scope.generate(`${Z.name}_value`)),O=q==="option"?z8([]):void 0;H.init.push(D8($,O)),H.update.push(k0(V9("!==",$,L8("=",$,G)),d([V])))}else H.init.push(V);if(X)H.init.push(l(j("$.init_select",Z)))}function OZ(q,Z,Q,Y,J,H,X=!1){let G=[],W=new Z1;for(let B of q)if(B.type==="Attribute"){let{value:M}=l0(B.value,Y,(V,$)=>W.add(V,$));if(I0(B)&&(M.type==="ArrowFunctionExpression"||M.type==="FunctionExpression")){let V=Y.state.scope.generate("event_handler");Y.state.init.push(D8(V,M)),G.push(M8(B.name,F(V)))}else G.push(M8(B.name,M))}else{let M=Y.visit(B);M=W.add(M,B.metadata.expression),G.push(i1(M))}if(Z.length)G.push(e8("init",G8([F("$.CLASS")]),dH(Z,Y,W)));if(Q.length)G.push(e8("init",G8([F("$.STYLE")]),sH(Q,Y,W)));let R=W.apply();Y.state.init.push(l(j("$.attribute_effect",H,J8(R,z8(G)),W.sync_values(),W.async_values(),W.blockers(),J.metadata.scoped&&Y.state.analysis.css.hash!==""&&g(Y.state.analysis.css.hash),X&&P8,L0(J,"hydration_attribute_changed")&&P8)))}function l0(q,Z,Q=(Y)=>Y){if(q===!0)return{value:P8,has_state:!1};if(!Array.isArray(q)||q.length===1){let Y=Array.isArray(q)?q[0]:q;if(Y.type==="Text")return{value:g(Y.data),has_state:!1};let J=K0(Z,Y.expression,Y.metadata.expression);return{value:Q(J,Y.metadata.expression),has_state:Y.metadata.expression.has_state||Y.metadata.expression.is_async()}}return c6(q,Z,Z.state,Q)}function lu(q,Z){if(!q.metadata.svg&&!q.metadata.mathml)return VW(Z.name);return Z.name}function wZ(q,Z,Q,Y,J,H){let{value:X,has_state:G}=l0(Q.value,J,($,O)=>{if(Q.metadata.needs_clsx)$=j("$.clsx",$);return J.state.memoizer.add($,O)}),W,R,B;if(Y.length)if(B=dH(Y,J),G||=Y.some(($)=>$.metadata.expression.has_state||$.metadata.expression.is_async()),G)W=F(J.state.scope.generate("classes")),J.state.init.push(f1("let",[b8(W)])),R=W;else R=z8([]);let M;if(q.metadata.scoped&&J.state.analysis.css.hash)if(X.type==="Literal"&&(X.value===""||X.value===null))X=g(J.state.analysis.css.hash);else if(X.type==="Literal"&&typeof X.value==="string")X=g(_9(X.value,!0)+" "+J.state.analysis.css.hash);else M=g(J.state.analysis.css.hash);if(!M&&B)M=w1;let V=j("$.set_class",Z,H?g(1):g(0),X,M,R,B);if(W)V=L8("=",W,V);(G?J.state.update:J.state.init).push(l(V))}function xu(q,Z,Q,Y){let{value:J,has_state:H}=l0(Z.value,Y,(B,M)=>Y.state.memoizer.add(B,M)),X,G,W;if(Q.length)if(W=sH(Q,Y),H||=Q.some((B)=>B.metadata.expression.has_state||B.metadata.expression.is_async()),H)X=F(Y.state.scope.generate("styles")),Y.state.init.push(f1("let",[b8(X)])),G=X;else G=z8([]);let R=j("$.set_style",q,J,G,W);if(X)R=L8("=",X,R);(H?Y.state.update:Y.state.init).push(l(R))}function mu(q,Z){let Q=Z.visit(q.expression),Y=u9[q.name],J=Z.path.at(-1),H,X;if(Q.type==="SequenceExpression")[H,X]=Q.expressions;else{if(Q8&&Z.state.analysis.runes&&Q.type==="MemberExpression"&&(q.name!=="this"||Z.path.some(({type:M})=>M==="IfBlock"||M==="EachBlock"||M==="AwaitBlock"||M==="KeyBlock"))&&!L0(q,"binding_property_non_reactive"))BZ(Z.state,q,Q);let B=Z.visit(L8("=",q.expression,F("$$value")));if(Q8)H=r0(F("get",q.name_loc),[],d([l8(Q)])),X=r0(F("set",q.name_loc),[F("$$value")],d([l(B)]));else if(H=i(Q),X=BJ(J8([F("$$value")],Z.visit(L8("=",q.expression,F("$$value"))))),H===X)X=void 0}let G;if(Y?.event)G=j("$.bind_property",g(q.name),g(Y.event),Z.state.node,X??H,Y.bidirectional&&H);else switch(q.name){case"online":G=j("$.bind_online",X??H);break;case"scrollX":case"scrollY":G=j("$.bind_window_scroll",g(q.name==="scrollX"?"x":"y"),H,X);break;case"innerWidth":case"innerHeight":case"outerWidth":case"outerHeight":G=j("$.bind_window_size",g(q.name),X??H);break;case"activeElement":G=j("$.bind_active_element",X??H);break;case"muted":G=j("$.bind_muted",Z.state.node,H,X);break;case"paused":G=j("$.bind_paused",Z.state.node,H,X);break;case"volume":G=j("$.bind_volume",Z.state.node,H,X);break;case"playbackRate":G=j("$.bind_playback_rate",Z.state.node,H,X);break;case"currentTime":G=j("$.bind_current_time",Z.state.node,H,X);break;case"buffered":G=j("$.bind_buffered",Z.state.node,X??H);break;case"played":G=j("$.bind_played",Z.state.node,X??H);break;case"seekable":G=j("$.bind_seekable",Z.state.node,X??H);break;case"seeking":G=j("$.bind_seeking",Z.state.node,X??H);break;case"ended":G=j("$.bind_ended",Z.state.node,X??H);break;case"readyState":G=j("$.bind_ready_state",Z.state.node,X??H);break;case"contentRect":case"contentBoxSize":case"borderBoxSize":case"devicePixelContentBoxSize":G=j("$.bind_resize_observer",Z.state.node,g(q.name),X??H);break;case"clientWidth":case"clientHeight":case"offsetWidth":case"offsetHeight":G=j("$.bind_element_size",Z.state.node,g(q.name),X??H);break;case"value":{if(J?.type==="RegularElement"&&J.name==="select")G=j("$.bind_select_value",Z.state.node,H,X);else G=j("$.bind_value",Z.state.node,H,X);break}case"files":G=j("$.bind_files",Z.state.node,H,X);break;case"this":G=zZ(q.expression,Z.state.node,Z);break;case"textContent":case"innerHTML":case"innerText":G=j("$.bind_content_editable",g(q.name),Z.state.node,H,X);break;case"checked":G=j("$.bind_checked",Z.state.node,H,X);break;case"focused":G=j("$.bind_focused",Z.state.node,X??H);break;case"group":{let B=q.metadata.parent_each_blocks.map((V)=>{return V.metadata.keyed&&V.index?j("$.get",V.metadata.index):V.metadata.index}),M=H;if(J?.type==="RegularElement"){let V=J.attributes.find(($)=>$.type==="Attribute"&&$.name==="value"&&!d8($)&&$.value!==!0)?.value;if(V!==void 0)M=i(d([l(l0(V,Z).value),l8(Q)]))}G=j("$.bind_group",q.metadata.binding_group_name,G8(B),Z.state.node,M,X??H);break}default:throw Error("unknown binding "+q.name)}let W=q.name!=="this"&&J.type==="RegularElement"&&J.attributes.find((B)=>B.type==="UseDirective"),R=W?l(j("$.effect",i(G))):l(G);if(q.metadata.expression.is_async())R=l(j("$.run_after_blockers",q.metadata.expression.blockers(),i(d([R]))));if(q.name==="this")Z.state.init.push(R);else if(W)Z.state.init.push(R);else Z.state.after_update.push(R)}function pu(q,Z){S5(Z);let Q=Z.state.scope.tracing;if(Q!==null){let J=Z.path.at(-1).async,H=j("$.trace",Q,i(d(q.body.map((X)=>Z.visit(X))),J));return d([l8(J?e0(H):H)])}Z.next()}function cu(q,Z){if(Z.state.analysis.runes||!q.label||q.label.name!=="$")return;if(Z.path[1].type==="LabeledStatement"&&Z.path[1].label.name==="$")return l8()}function ru(q,Z){let Q=s8(q,Z.state.scope);switch(Q){case"$host":return F("$$props.$$host");case"$effect.tracking":return j("$.effect_tracking");case"$state":case"$state.raw":{let Y=q.arguments[0],J=void 0;if(Y){if(J=Z.visit(q.arguments[0]),Q==="$state"&&M9(Y,Z.state.scope))J=j("$.proxy",J)}let H=F("$.state",q.callee.loc);return j(H,J)}case"$derived":case"$derived.by":{let Y=Z.visit(q.arguments[0]);return j("$.derived",Q==="$derived"?i(Y):Y)}case"$state.eager":return j("$.eager",i(Z.visit(q.arguments[0])));case"$state.snapshot":return j("$.snapshot",Z.visit(q.arguments[0]),L0(q,"state_snapshot_uncloneable")&&P8);case"$effect":case"$effect.pre":{let Y=Q==="$effect"?"$.user_effect":"$.user_pre_effect",J=Z.visit(q.arguments[0]),H=j(Y,J);return H.callee.loc=q.callee.loc,H}case"$effect.root":return j("$.effect_root",...q.arguments.map((Y)=>Z.visit(Y)));case"$effect.pending":return j("$.eager",i(j("$.pending")));case"$inspect":case"$inspect().with":return B38(Q,q,Z)}if(Q8&&q.callee.type==="MemberExpression"&&q.callee.object.type==="Identifier"&&q.callee.object.name==="console"&&Z.state.scope.get("console")===null&&q.callee.property.type==="Identifier"&&["debug","dir","error","group","groupCollapsed","info","log","trace","warn"].includes(q.callee.property.name)&&q.arguments.some((Y)=>Y.type==="SpreadElement"||Z.state.scope.evaluate(Y).has_unknown))return j(q.callee,i1(j("$.log_if_contains_state",g(q.callee.property.name),...q.arguments.map((Y)=>Z.visit(Y)))));Z.next()}function B38(q,Z,Q){if(!Q8)return _8;let{args:Y,inspector:J}=$Z(q,Z,Q.visit),H=F("$$args"),X=J8([R5(H)],j(J,i1(H)));return j("$.inspect",i(G8(Y)),X,q==="$inspect"&&P8)}function iu(q,Z){let Q=Z.state.analysis.classes.get(q);if(!Q){Z.next();return}let Y=[],J={...Z.state,state_fields:Q};for(let[X,G]of Q){if(X[0]==="#")continue;if(G.node.type==="AssignmentExpression"){let W=U8(M1,G.key),R=G.type==="$state"&&!0,B=i0(X);Y.push(L7(G.key,null),f9("get",B,[],[l8(j("$.get",W))]),f9("set",B,[F("value")],[l(j("$.set",W,F("value"),R&&P8))]))}}let H=e9(Z.path,-1);for(let X of q.body){if(X.type!=="PropertyDefinition"){Y.push(Z.visit(X,J));continue}let G=H1(X.key),W=G&&Q.get(G);if(!W){Y.push(Z.visit(X,J));continue}if(G[0]==="#"){let R=X.value?Z.visit(X.value,J):void 0;if(Q8&&W.node===X)R=j("$.tag",R,g(`${H.id?.name??"[class]"}.${G}`));Y.push(L7(X.key,R))}else if(W.node===X){let R=Z.visit(W.value,J);if(Q8)R=j("$.tag",R,g(`${H.id?.name??"[class]"}.${G}`));let B=U8(M1,W.key),M=W.type==="$state"&&!0;Y.push(L7(W.key,R),f9("get",X.key,[],[l8(j("$.get",B))]),f9("set",X.key,[F("value")],[l(j("$.set",B,F("value"),M&&P8))]))}}return{...q,body:Y}}function du(q,Z){Z.state.template.push_comment(q.data)}function u5(q,Z,Q,Y){let J=Y.state.node,H=[],X=[],G=[],W={default:{...Y.state,scope:q.metadata.scopes.default,transform:{...Y.state.transform}}},R={},B={},M=new Z1,V=[],$=null,O=[],w=q.type==="SvelteComponent"||q.type==="Component"&&q.metadata.dynamic,I=q.type==="Component"&&q.metadata.dynamic?Y.state.scope.generate(q.name):"$$component",C=!!Z6(q),E=!1;function D(A,T=!1){let h=()=>{let N=H.at(-1),y=Array.isArray(N),r=y?N:[];if(r.push(A),!y)H.push(r)};if(T)X.push(h);else h()}if(C){for(let A of q.attributes)if(A.type==="LetDirective")Y.visit(A,{...Y.state,let_directives:G})}for(let A of q.attributes)if(A.type==="LetDirective"){if(!C)Y.visit(A,{...W.default,let_directives:G})}else if(A.type==="OnDirective"){if(!A.expression)Y.state.analysis.needs_props=!0;let T=Bq(A.expression,A.metadata.expression,Y);if(A.modifiers.includes("once"))T=j("$.once",T);(B[A.name]||=[]).push(T)}else if(A.type==="SpreadAttribute"){let T=Y.visit(A),h=M.add(T,A.metadata.expression),N=T!==h;if(N||A.metadata.expression.has_state||A.metadata.expression.has_await)H.push(i(N?j("$.get",h):T));else H.push(T)}else if(A.type==="Attribute"){if(A.name.startsWith("--")){V.push(M8(A.name,l0(A.value,Y,(N,y)=>{let r=M.add(N,y);return N!==r?j("$.get",r):N}).value));continue}if(A.name==="slot")C=!0;if(A.name==="children")E=!0;let{value:T,has_state:h}=l0(A.value,Y,(N,y)=>{let r=y.has_await||v6(A.value).some((Y8)=>{return Y8.type==="ExpressionTag"&&Y8.expression.type!=="Identifier"&&Y8.expression.type!=="MemberExpression"}),m=M.add(N,y,r);return N!==m?j("$.get",m):N});if(h)D(B1(A.name,[l8(T)]));else D(M8(A.name,T))}else if(A.type==="BindDirective"){let T=Y.visit(A.expression,{...Y.state,memoizer:M});if(M.check_blockers(A.metadata.expression),Q8&&A.name!=="this"&&!L0(q,"ownership_invalid_binding")&&A.expression.type!=="SequenceExpression"){let h=f0(A.expression),N=h&&Y.state.scope.get(h.name);if(N?.kind==="bindable_prop"||N?.kind==="prop")Y.state.analysis.needs_mutation_validation=!0,O.push(l(j("$$ownership_validator.binding",g(N.node.name),F(w?I:Z),i(T))))}if(T.type==="SequenceExpression")if(A.name==="this")$=A.expression;else{let[h,N]=T.expressions,y=F(Y.state.scope.generate("bind_get")),r=F(Y.state.scope.generate("bind_set"));Y.state.init.push(D8(y,h)),Y.state.init.push(D8(r,N)),D(B1(A.name,[l8(j(y))])),D($9(A.name,[l(j(r,F("$$value")))]))}else{if(Q8&&T.type==="MemberExpression"&&Y.state.analysis.runes&&!L0(q,"binding_property_non_reactive"))BZ(Y.state,A,T);if(A.name==="this")$=A.expression;else{let N=A.expression.type==="Identifier"&&Y.state.scope.get(A.expression.name)?.kind==="store_sub"?B1(A.name,[l(j("$.mark_store_binding")),l8(T)]):B1(A.name,[l8(T)]),y=L8("=",A.expression,F("$$value")),r=$9(A.name,[l(Y.visit(y))]);N.key.loc=A.name_loc,r.key.loc=A.name_loc,D(N,!0),D(r,!0)}}}else if(A.type==="AttachTag"){let T=Y.state.scope.evaluate(A.expression),h=Y.visit(A.expression);if(A.metadata.expression.has_state)h=J8([F("$$node")],j(T.is_function?h:r1("||",h,F("$.noop")),F("$$node")));M.check_blockers(A.metadata.expression),D(e8("init",j("$.attachment"),h,!0))}if(X.forEach((A)=>A()),C)Y.state.init.push(...G);if(Object.keys(B).length>0){let A=z8(Object.keys(B).map((T)=>M8(T,B[T].length>1?G8(B[T]):B[T][0])));D(M8("$$events",A))}let f=[],v=[];for(let A of q.fragment.nodes){if(A.type==="SnippetBlock"){Y.visit(A,{...Y.state,snippets:f}),D(e8("init",A.expression,A.expression)),v.push(M8(A.expression.name==="children"?"default":A.expression.name,P8));continue}let T=Z6(A)??"default";(R[T]||=[]).push(A)}for(let A of Object.keys(R)){let T=Y.visit({...q.fragment,nodes:R[A]},A==="default"?C?Y.state:W.default:{...Y.state,scope:q.metadata.scopes[A],transform:{...Y.state.transform}});if(T.body.length===0)continue;let h=J8([F("$$anchor"),F("$$slotProps")],d([...A==="default"&&!C?G:[],...T.body]));if(A==="default"&&!E)if(G.length===0&&R.default.every((N)=>N.type!=="SvelteFragment"||!N.attributes.some((y)=>y.type==="LetDirective")))D(M8("children",Q8?j("$.wrap_snippet",F(Y.state.analysis.name),h):h)),v.push(M8(A,P8));else v.push(M8(A,h)),D(M8("children",F("$.invalid_default_snippet")));else v.push(M8(A,h))}if(v.length>0)D(M8("$$slots",z8(v)));if(!Y.state.analysis.runes&&q.attributes.some((A)=>A.type==="BindDirective"))D(M8("$$legacy",P8));let _=H.length===0||H.length===1&&Array.isArray(H[0])?z8(H[0]||[]):j("$.spread_props",...H.map((A)=>Array.isArray(A)?z8(A):A)),b=(A)=>{let T=w?F(I):Y.visit(f6(Z));return T.loc=Q,j(T,A,_)};if($!==null){let A=b;b=(T)=>{return zZ($,A(T),Y)}}if(q.type!=="SvelteSelf")M.check_blockers(q.metadata.expression);let z=[...f,...M.deriveds(Y.state.analysis.runes)];if(w){let A=b;b=(T)=>{return j("$.component",T,i(Y.visit(q.type==="Component"?f6(Z):q.expression)),J8([F("$$anchor"),F(I)],d([...O,l(A(F("$$anchor")))])))}}else z.push(...O);if(Object.keys(V).length>0){if(Y.state.metadata.namespace==="svg")Y.state.template.push_element("g",q.start,!1);else Y.state.template.push_element("svelte-css-wrapper",q.start,!1),Y.state.template.set_prop("style","display: contents");Y.state.template.push_comment(),Y.state.template.pop_element(),z.push(l(j("$.css_props",J,i(z8(V)))),l(b(U8(J,"lastChild"))),l(j("$.reset",J)))}else Y.state.template.push_comment(),z.push(N1(b(J),q,"component",{componentTag:q.name}));M.apply();let P=M.async_values(),L=M.blockers();if(P||L){if(z=[l(j("$.async",J,L,P,J8([F("$$anchor"),...M.async_ids()],d(z))))],Y.state.is_standalone)z.push(l(j("$.next")))}return z.length>1?d(z):z[0]}function su(q,Z){let Q=u5(q,q.name,q.name_loc,Z);Z.state.init.push(Q)}function au(q,Z){S5(Z);let Q=Z.visit(q.declaration);if(q.metadata.promises_id&&q.declaration.type==="VariableDeclaration"&&Q?.type==="VariableDeclaration"){let{ids:Y,assignments:J}=M38(Q);aH(Z,q.metadata,Y,J,Q.kind)}else Z.state.consts.push(Q??q.declaration)}function M38(q){let Z=new Map;for(let Y of q.declarations)for(let J of r8(Y.id))Z.set(J.name,J);let Q=q.declarations.filter((Y)=>Y.init!==null).map((Y)=>l(L8("=",Y.id,Y.init)));return{ids:[...Z.values()],assignments:Q}}function aH(q,Z,Q,Y,J="let"){let H=q.state.async_consts??={id:Z.promises_id,thunks:[]};for(let R of Q)q.state.consts.push(J==="var"?D8(R.name):_0(R.name));let X=[...Z.expression.dependencies].map((R)=>R.blocker).filter((R)=>R!==null&&R.object!==q.state.async_consts?.id);if(X.length===1)H.thunks.push(i(U8(X[0],"promise")));else if(X.length>0)H.thunks.push(i(j("$.wait",G8(X))));let G=Z.expression.has_await||Y.some((R)=>K9(R)),W=Y.length===1?Y[0].expression:d(Y);H.thunks.push(i(W,G))}function nu(q,Z){let Q=q.declaration.declarations[0];if(Q.id.type==="Identifier"){let Y=K0(Z,Q.init,q.metadata.expression),J=y6(Z.state,Y,q.metadata.expression.has_await);if(Q8)J=j("$.tag",J,g(Q.id.name));Z.state.transform[Q.id.name]={read:S0},ou(Z,Q.id,J,q.metadata)}else{let Y=r8(Q.id),J=F(Z.state.scope.generate("computed_const")),H={...Z.state.transform};for(let B of Y)delete H[B.name];let X={...Z.state,transform:H},G=K0({...Z,state:X},Q.init,q.metadata.expression),W=d([q0(Z.visit(Q.id,X),G),l8(z8(Y.map((B)=>e8("init",B,B))))]),R=y6(Z.state,W,q.metadata.expression.has_await);if(Q8)R=j("$.tag",R,g("[@const]"));ou(Z,J,R,q.metadata);for(let B of Y)Z.state.transform[B.name]={read:(M)=>U8(j("$.get",J),M)}}}function ou(q,Z,Q,Y){let J=Q8?[l(j("$.get",Z))]:[];if(Y.promises_id)aH(q,Y,[Z],[l(L8("=",Z,Q))],"let");else{let{state:H}=q;H.consts.push(q0(Z,Q)),H.consts.push(...J)}}function tu(q,Z){let Q=q.identifiers.map((H)=>Z.state.scope.get(H.name)?.blocker).filter((H)=>H!=null),Y=z8(q.identifiers.map((H)=>{let X=j("$.snapshot",Z.visit(H));return e8("init",H,Z.state.analysis.runes?X:j("$.untrack",i(X)))})),J=[i(d([l(j("console.log",Y)),U3]))];if(Q.length>0)J.push(G8([]),G8([]),G8(Q));Z.state.init.push(l(j("$.template_effect",...J)))}function eu(q,Z){let Q=q.metadata,Y={...Z.state,scope:Z.state.scope.parent},J=K0({...Z,state:Y},q.expression,q.metadata.expression);if(!Q.is_controlled)Z.state.template.push_comment();let H=0;if(q.metadata.keyed&&q.index)H|=$2;let X=q.key?.type==="Identifier"&&q.context?.type==="Identifier"&&q.context?.name===q.key.name,G;for(let A of q.metadata.expression.dependencies)if(A.kind==="store_sub"){G=!0;break}for(let A of q.metadata.expression.dependencies){if(A.scope.function_depth>=Z.state.scope.function_depth)continue;if(!Z.state.analysis.runes||!X||G){H|=w4;break}}if(Z.state.analysis.runes&&!G)H|=gV;if(q.key&&q.body.nodes.some((A)=>{if(A.type!=="RegularElement"&&A.type!=="SvelteElement")return!1;return A.attributes.some((T)=>T.type==="AnimateDirective")}))H|=_V;if(Q.is_controlled)H|=yV;let W="";for(let A of q.metadata.expression.dependencies)if(A.kind==="store_sub"){W=A.node.name;break}let R=null;for(let[A]of Z.state.scope.declarations)if(Z.state.scope.parent?.get(A)!=null){R=Z.state.scope.root.unique("$$array");break}let B={...Z.state,transform:{...Z.state.transform},store_to_invalidate:W},M={...Z.state,transform:{...Z.state.transform}},V=Q.contains_group_binding||!q.index?Q.index:F(q.index),$=q.context?.type==="Identifier"?q.context:F("$$item"),O=Q.contains_group_binding,w=!1;if(q.index)B.transform[q.index]={read:(A)=>{return O=!0,(H&$2)!==0?S0(A):A}},M.transform[q.index]={read:(A)=>{return w=!0,A}};let I=[],C=W?j("$.invalidate_store",F("$$stores"),g(W)):void 0,E=[];if(!Z.state.analysis.runes){let A=new Set;if(R)A.add(R),B.transform[R.name]={read:j};else for(let T of Q.transitive_deps)A.add(T.node);for(let T of P38(Z))for(let h of T.metadata.transitive_deps)A.add(h.node);if(A.size>0){let T=j("$.invalidate_inner_signals",i(y0([...A].map((h)=>Z.visit({...h},B)))));E.push(T)}}if(C)E.push(C);if(q.context?.type==="Identifier"){let A=Z.state.scope.get(q.context.name);B.transform[q.context.name]={read:(T)=>{if(A.reassigned)return U8(R?j(R):J,(H&$2)!==0?S0(V):V,!0);return(H&w4)!==0?S0(T):T},assign:(T,h)=>{O=!0;let N=U8(R?j(R):J,(H&$2)!==0?S0(V):V,!0);return y0([L8("=",N,h),...E])},mutate:(T,h)=>{return O=!0,y0([h,...E])}},delete M.transform[q.context.name]}else if(q.context){let A=(H&w4)!==0?j("$.get",$):$,{inserts:T,paths:h}=q1(q.context,A);for(let{id:N,value:y}of T){N.name=Z.state.scope.generate("$$array"),B.transform[N.name]={read:S0};let r=Z.visit(i(y),B);I.push(D8(N,j("$.derived",r)))}for(let N of h){let y=N.node.name,r=N.has_default_value,m=i(Z.visit(N.expression,B));I.push(_0(N.node,r?j("$.derived_safe_equal",m):m));let Y8=r?S0:j;if(B.transform[y]={read:Y8,assign:(N8,w8)=>{let g8=N.update_expression;return y0([L8("=",g8,w8),...E])},mutate:(N8,w8)=>{return y0([w8,...E])}},Q8)I.push(l(Y8(F(y))));delete M.transform[y]}}let D=Z.visit(q.body,B),f=F("$.index");if(q.metadata.keyed){let A=q.context,T=Z.visit(q.key,M);f=J8(w?[A,V]:[A],T)}if(q.index&&Q.contains_group_binding)I.push(_0(q.index,V));let v=q.metadata.expression.has_await,_=i(J,v),b=v?i(j("$.get",F("$$collection"))):_,z=[F("$$anchor"),$];if(O||R)z.push(V);if(R)z.push(R);let P=[Z.state.node,g(H),b,f,J8(z,d(I.concat(D.body)))];if(q.fallback)P.push(J8([F("$$anchor")],Z.visit(q.fallback)));let L=[N1(j("$.each",...P),q,"each")];if(q.metadata.expression.is_async())Z.state.init.push(l(j("$.async",Z.state.node,q.metadata.expression.blockers(),v?G8([_]):w0,J8(v?[Z.state.node,F("$$collection")]:[Z.state.node],d(L)))));else Z.state.init.push(...L)}function P38(q){return q.path.filter((Z)=>Z.type==="EachBlock")}function qb(q,Z){if(Z.state.is_instance){if(q.declaration)return Z.visit(q.declaration);return _8}return Z.next()}function Zb(q,Z){if(q.expression.type==="CallExpression"){if(s8(q.expression,Z.state.scope)==="$inspect.trace")return _8}Z.next()}function Qb(q,Z){if(q.await&&Q8&&!L0(q,"await_reactivity_loss")&&Z.state.options.experimental.async){let Q=Z.visit(q.left),Y=Z.visit(q.right),J=Z.visit(q.body),H=j("$.for_await_track_reactivity_loss",Y);return BB(Q,H,J,!0)}Z.next()}function Yb(q,Z){let Q=Z.path.at(-1)??q,Y=WZ(Z.state.metadata.namespace,Q,q.nodes),{hoisted:J,trimmed:H,is_standalone:X,is_text_first:G}=m6(Q,q.nodes,Z.path,Y,Z.state,Z.state.preserve_whitespace,Z.state.options.preserveComments);if(J.length===0&&H.length===0)return d([]);let W=H.length===1&&H[0].type==="RegularElement",R=H.length===1&&(H[0].type==="SvelteFragment"||H[0].type==="TitleElement"||H[0].type==="IfBlock"&&H[0].elseif&&Q.metadata.flattened?.includes(H[0])),B=[],M=void 0,V={...Z.state,is_standalone:X,init:[],snippets:[],consts:[],let_directives:[],update:[],after_update:[],memoizer:new Z1,template:new Mq,transform:{...Z.state.transform},metadata:{namespace:Y,bound_contenteditable:Z.state.metadata.bound_contenteditable},async_consts:void 0};for(let $ of J)Z.visit($,V);if(W){let $=H[0],O=F(Z.state.scope.generate($.name),$.name_loc);Z.visit($,{...V,node:O});let w=V.template.needs_import_node?WY:void 0,I=Pq(V,"root",w);V.init.unshift(D8(O,j(I))),M=l(j("$.append",F("$$anchor"),O))}else if(R)Z.visit(H[0],V);else if(H.length===1&&H[0].type==="Text"){let $=F(Z.state.scope.generate("text"));V.init.unshift(D8($,j("$.text",g(H[0].data)))),M=l(j("$.append",F("$$anchor"),$))}else if(H.length>0){let $=F(Z.state.scope.generate("fragment"));if(H.some((w)=>w.type==="ExpressionTag")&&H.every((w)=>w.type==="Text"||w.type==="ExpressionTag")){let w=F(Z.state.scope.generate("text"));T7(H,()=>w,!1,{...Z,state:V}),V.init.unshift(D8(w,j("$.text"))),M=l(j("$.append",F("$$anchor"),w))}else if(X)T7(H,()=>F("$$anchor"),!1,{...Z,state:V});else{T7(H,(C)=>j("$.first_child",$,C&&P8),!1,{...Z,state:V});let I=A4;if(V.template.needs_import_node)I|=WY;if(V.template.nodes.length===1&&V.template.nodes[0].type==="comment")V.init.unshift(D8($,j("$.comment")));else{let C=Pq(V,"root",I);V.init.unshift(D8($,j(C)))}M=l(j("$.append",F("$$anchor"),$))}}if(B.push(...V.snippets,...V.let_directives,...V.consts),V.async_consts&&V.async_consts.thunks.length>0)B.push(D8(V.async_consts.id,j("$.run",G8(V.async_consts.thunks))));if(G)B.push(l(j("$.next")));if(B.push(...V.init),V.update.length>0)B.push(F7(V));if(B.push(...V.after_update),M!==void 0)B.push(M);return d(B)}function Jb(q,Z){let Q={...Z.state,in_constructor:!1,in_derived:!1};Z.next(Q)}function Hb(q,Z){return PZ(q,Z)}function Xb(q,Z){let Q=q.metadata.is_controlled;if(!Q)Z.state.template.push_comment();let Y=q.metadata.expression.has_await,J=q.metadata.expression.has_blockers(),H=K0(Z,q.expression,q.metadata.expression),X=Y?j("$.get",F("$$html")):H,G=!Q&&Z.state.metadata.namespace==="svg",W=!Q&&Z.state.metadata.namespace==="mathml",R=l(j("$.html",Z.state.node,i(X),Q&&P8,G&&P8,W&&P8,L0(q,"hydration_html_changed")&&P8));if(Y||J)Z.state.init.push(l(j("$.async",Z.state.node,q.metadata.expression.blockers(),Y?G8([i(H,!0)]):w0,J8(Y?[Z.state.node,F("$$html")]:[Z.state.node],d([R])))));else Z.state.init.push(R)}function Gb(q,Z){let Q=Z.path.at(-1);if(s0(q,Q)){if(q.name==="$$props")return F("$$sanitized_props");let Y=Z.state.scope.get(q.name);if(Z.state.analysis.runes&&Y!==null&&q!==Y.node&&Y.kind==="rest_prop"){let J=Z.path.at(-2);if(Q?.type==="MemberExpression"&&!Q.computed&&J?.type!=="AssignmentExpression"&&J?.type!=="UpdateExpression"){let H=Q.property;if(!Y.metadata?.exclude_props?.includes(H.name))return F("$$props")}}return X1(q,Z.state)}}function Vb(q,Z){Z.state.template.push_comment();let Q=[],Y=q.metadata.expression.has_await,J=q.metadata.expression.has_blockers(),H=K0(Z,q.test,q.metadata.expression),X=0,G,W,R;for(let M of[q,...q.metadata.flattened??[]]){let V=Z.visit(M.consequent),$=F(Z.state.scope.generate("consequent"));Q.push(D8($,J8([F("$$anchor")],V)));let O;if(M.metadata.expression.has_await)O=j("$.get",F("$$condition"));else{let C=K0(Z,M.test,M.metadata.expression);if(M.metadata.expression.has_call){let E=F(Z.state.scope.generate("d"));Q.push(D8(E,j("$.derived",J8([],C)))),O=j("$.get",E)}else O=C}let w=l(j("$$render",$,X!==0&&g(X))),I=k0(O,w);if(W)W.alternate=I;else G=I;R=M,W=I,X++}if(W&&R?.alternate){let M=Z.visit(R.alternate),V=F(Z.state.scope.generate("alternate"));Q.push(D8(V,J8([F("$$anchor")],M))),W.alternate=l(j("$$render",V,g(-1)))}let B=[Z.state.node,J8([F("$$render")],G?d([G]):d([]))];if(q.elseif)B.push(P8);if(Q.push(N1(j("$.if",...B),q,"if")),Y||J)Z.state.init.push(l(j("$.async",Z.state.node,q.metadata.expression.blockers(),Y?G8([i(H,!0)]):w0,J8(Y?[Z.state.node,F("$$condition")]:[Z.state.node],d(Q)))));else Z.state.init.push(d(Q))}function Wb(q,Z){Z.state.template.push_comment();let Q=q.metadata.expression.has_await,Y=q.metadata.expression.has_blockers(),J=K0(Z,q.expression,q.metadata.expression),H=i(Q?j("$.get",F("$$key")):J),X=Z.visit(q.fragment),G=N1(j("$.key",Z.state.node,H,J8([F("$$anchor")],X)),q,"key");if(Q||Y)Z.state.init.push(l(j("$.async",Z.state.node,q.metadata.expression.blockers(),Q?G8([i(J,!0)]):w0,J8(Q?[Z.state.node,F("$$key")]:[Z.state.node],d([G])))));else Z.state.init.push(G)}function $b(q,Z){if(Z.state.analysis.runes||Z.path.length>1||q.label.name!=="$"){Z.next();return}let Q=Z.state.analysis.reactive_statements.get(q);if(!Q)return;let Y=Z.visit(q.body);if(Y.type!=="BlockStatement")Y=d([Y]);let J=Y.body,H=[];for(let X of Q.dependencies){if(X.kind==="normal"&&X.declaration_kind!=="import")continue;let G=X.node.name,W=X1(F(G),Z.state);if(G==="$$props"||G==="$$restProps"||X.kind==="bindable_prop")W=j("$.deep_read_state",W);H.push(W)}return Z.state.legacy_reactive_statements.set(q,l(j("$.legacy_pre_effect",H.length>0?i(y0(H)):i(d([])),i(d(J))))),_8}function Ub(q,Z){if(q.expression&&q.expression.type!=="Identifier"){let Q=Z.state.scope.generate(q.name),Y=Z.state.scope.get_bindings(q);for(let J of Y)Z.state.transform[J.node.name]={read:(H)=>U8(j("$.get",F(Q)),H)};Z.state.let_directives.push(q0(Q,j("$.derived",i(d([_0(q.expression.type==="ObjectExpression"?P7(q.expression.properties):T6(q.expression.elements),U8(F("$$slotProps"),q.name)),l8(z8(Y.map((J)=>M8(J.node.name,J.node))))])))))}else{let Q=q.expression===null?q.name:q.expression.name;Z.state.transform[Q]={read:(Y)=>j("$.get",Y)},Z.state.let_directives.push(q0(Q,y6(Z.state,U8(F("$$slotProps"),q.name))))}}function Rb(q,Z){if(q.property.type==="PrivateIdentifier"){let Q=Z.state.state_fields.get("#"+q.property.name);if(Q)return Z.state.in_constructor&&(Q.type==="$state.raw"||Q.type==="$state")?U8(q,"v"):j("$.get",q)}Z.next()}var L38=["stopPropagation","stopImmediatePropagation","preventDefault","self","trusted","once"];function zb(q,Z){if(!q.expression)Z.state.analysis.needs_props=!0;let Q=Bq(q.expression,q.metadata.expression,Z);for(let H of L38)if(q.modifiers.includes(H))Q=j("$."+H,Q);let Y=q.modifiers.includes("capture"),J=q.modifiers.includes("passive")||(q.modifiers.includes("nonpassive")?!1:void 0);return cH(Z,q.name,Q,Y,J,!1)}function Bb(q,Z){if(!Z.state.analysis.runes){Z.state.transform.$$props={read:(Q)=>({...Q,name:"$$sanitized_props"})};for(let[Q,Y]of Z.state.scope.declarations)if(Y.declaration_kind==="import"&&Y.mutated){let{start:J,end:H}=Z.state.analysis.instance.ast,X=Y.initial;if(X.start>J&&X.end<H){let W=F("$$_import_"+Q);Z.state.transform[Q]={read:(R)=>j(W),mutate:(R,B)=>j(W,B)},Z.state.legacy_reactive_imports.push(D8(W,j("$.reactive_import",i(F(Q)))))}}}for(let[Q,Y]of Z.state.scope.declarations){if(Y.kind==="store_sub"){let J,H=()=>{return J??=Z.visit(F(Q.slice(1)))};Z.state.transform[Q]={read:j,assign:(X,G)=>j("$.store_set",H(),G),mutate:(X,G)=>{let W=j("$.untrack",X);function R(B){if(B.type==="MemberExpression")return{...B,object:R(B.object),property:B.property};return W}return j("$.store_mutate",H(),G.type==="AssignmentExpression"?L8(G.operator,R(G.left),G.right):$3(G.operator,R(G.argument),G.prefix),W)},update:(X)=>{return j(X.prefix?"$.update_pre_store":"$.update_store",X1(F(Q.slice(1)),Z.state),j(X.argument),X.operator==="--"&&g(-1))}}}if(Y.kind==="prop"||Y.kind==="bindable_prop")if(K3(Y,Z.state))Z.state.transform[Q]={read:j,assign:(J,H)=>j(J,H),mutate:(J,H)=>{if(Y.kind==="bindable_prop")return j(J,H,P8);return H},update:(J)=>{return j(J.prefix?"$.update_pre_prop":"$.update_prop",J.argument,J.operator==="--"&&g(-1))}};else if(Y.prop_alias){let J=i0(Y.prop_alias);Z.state.transform[Q]={read:(H)=>U8(F("$$props"),J,J.type==="Literal")}}else Z.state.transform[Q]={read:(J)=>U8(F("$$props"),J)}}if(S5(Z),Z.state.is_instance)return{...q,body:UZ(Z.state.analysis.instance_body,F("$.run"),(Q)=>Z.visit(Q))};Z.next()}function Mb(q,Z){Z.state.template.push_comment();let Q=N6(q.expression),Y=[],J=new Z1;for(let R=0;R<Q.arguments.length;R++){let B=Q.arguments[R],M=q.metadata.arguments[R],V=K0(Z,B,M),$=J.add(V,M);if(V!==$)V=j("$.get",$);Y.push(i(V))}J.apply();let H=J.deriveds(Z.state.analysis.runes),X=K0(Z,Q.callee,q.metadata.expression);if(q.metadata.dynamic){if(q.expression.type==="ChainExpression")X=r1("??",X,F("$.noop"));H.push(N1(j("$.snippet",Z.state.node,i(X),...Y),q,"render"))}else H.push(N1((q.expression.type==="CallExpression"?j:T9)(X,Z.state.node,...Y),q,"render"));let G=J.async_values(),W=J.blockers();if(G||W){if(Z.state.init.push(l(j("$.async",Z.state.node,W,J.async_values(),J8([Z.state.node,...J.async_ids()],d(H))))),Z.state.is_standalone)Z.state.init.push(l(j("$.next")))}else Z.state.init.push(H.length===1?H[0]:d(H))}function Pb(q,Z){Z.state.template.push_comment();let Q=[],Y=[],J=[],H=new Z1,X=g("default");for(let V of q.attributes)if(V.type==="SpreadAttribute")Y.push(i(Z.visit(V)));else if(V.type==="Attribute"){let{value:$,has_state:O}=l0(V.value,Z,(w,I)=>I.has_call||I.has_await?j("$.get",H.add(w,I)):w);if(V.name==="name")X=$;else if(V.name!=="slot")if(O)Q.push(B1(V.name,[l8($)]));else Q.push(M8(V.name,$))}else if(V.type==="LetDirective")Z.visit(V,{...Z.state,let_directives:J});H.apply(),Z.state.init.push(...J);let G=H.deriveds(Z.state.analysis.runes),W=Y.length===0?z8(Q):j("$.spread_props",z8(Q),...Y),R=q.fragment.nodes.length===0?w1:J8([F("$$anchor")],Z.visit(q.fragment));G.push(l(j("$.slot",Z.state.node,F("$$props"),X,W,R)));let B=H.async_values(),M=H.blockers();if(B||M)Z.state.init.push(l(j("$.async",Z.state.node,M,B,J8([Z.state.node,...H.async_ids()],d(G)))));else Z.state.init.push(G.length===1?G[0]:d(G))}function Lb(q,Z){let Q=[F("$$anchor")],Y,J=[],H={...Z.state.transform},X={...Z.state,transform:H};for(let B=0;B<q.parameters.length;B++){let M=q.parameters[B];if(!M)continue;if(M.type==="Identifier"){Q.push(V3(M,F("$.noop"))),H[M.name]={read:j};continue}let V=`$$arg${B}`;Q.push(F(V));let{inserts:$,paths:O}=q1(M,T9(F(V)));for(let{id:w,value:I}of $)w.name=Z.state.scope.generate("$$array"),H[w.name]={read:S0},J.push(D8(w,j("$.derived",Z.visit(i(I)))));for(let w of O){let I=w.node.name,C=w.has_default_value,E=i(Z.visit(w.expression,X));if(J.push(_0(w.node,C?j("$.derived_safe_equal",E):E)),H[I]={read:C?S0:j},Q8)J.push(l(H[I].read(F(I))))}}let G=Z.visit(q.body,X).body;Y=d([Q8?l(j("$.validate_snippet_args",i1(F("arguments")))):_8,...J,...G]);let W=Q8?j("$.wrap_snippet",F(Z.state.analysis.name),r0(null,Q,Y)):J8(Q,Y),R=q0(q.expression,W);if(Z.path.length===1&&Z.path[0].type==="Fragment")if(q.metadata.can_hoist)Z.state.module_level_snippets.push(R);else Z.state.instance_level_snippets.push(R);else Z.state.snippets.push(R)}function Ob(q,Z){return Z.visit(q.expression)}function b5(q,Z,Q){let Y={...Q.state,node:F(Z)};for(let J of q.attributes)if(J.type==="OnDirective")Q.state.init.push(l(Q.visit(J,Y)));else Q.visit(J,Y)}function wb(q,Z){b5(q,"$.document.body",Z)}function Ab(q,Z){let Q=u5(q,"$$component",null,Z);Z.state.init.push(Q)}function jb(q,Z){b5(q,"$.document",Z)}function Ib(q,Z){Z.state.template.push_comment();let Q=[],Y=void 0,J=[],H=[],X=[],G=F(Z.state.scope.generate("$$element")),W={...Z,state:{...Z.state,node:G,init:[],update:[],after_update:[],memoizer:new Z1}};for(let w of q.attributes)if(w.type==="Attribute"){if(w.name==="xmlns"&&!d8(w))Y=w.value;Q.push(w)}else if(w.type==="SpreadAttribute")Q.push(w);else if(w.type==="ClassDirective")J.push(w);else if(w.type==="StyleDirective")H.push(w);else if(w.type==="LetDirective")X.push(Z.visit(w));else if(w.type==="OnDirective"){let I=Z.visit(w,W.state);W.state.after_update.push(l(I))}else Z.visit(w,W.state);if(Q.length===1&&Q[0].type==="Attribute"&&Q[0].name.toLowerCase()==="class"&&d8(Q[0]))wZ(q,G,Q[0],J,W,!1);else if(Q.length)OZ(Q,J,H,W,q,G);let R=q.metadata.expression.has_await,B=q.metadata.expression.has_blockers(),M=Z.visit(q.tag),V=i(R?j("$.get",F("$$tag")):M),$=W.state.init;if(W.state.update.length>0)$.push(F7(W.state));if($.push(...W.state.after_update),$.push(...Z.visit(q.fragment,{...Z.state,metadata:{...Z.state.metadata,namespace:p6(q,Z.state.metadata.namespace)}}).body),Q8){if(X.push(l(j("$.validate_dynamic_element_tag",V))),q.fragment.nodes.length>0)X.push(l(j("$.validate_void_dynamic_element",V)))}let O=Q8&&J0(q.start);if(X.push(l(j("$.element",Z.state.node,V,q.metadata.svg||q.metadata.mathml?P8:a9,$.length>0&&J8([G,F("$$anchor")],d($)),Y&&i(l0(Y,Z).value),O&&G8([g(O.line),g(O.column)])))),R||B)Z.state.init.push(l(j("$.async",Z.state.node,q.metadata.expression.blockers(),R?G8([i(M,!0)]):w0,J8(R?[Z.state.node,F("$$tag")]:[Z.state.node],d(X)))));else Z.state.init.push(X.length===1?X[0]:d(X))}function Db(q,Z){for(let Q of q.attributes)if(Q.type==="LetDirective")Z.visit(Q);Z.state.init.push(...Z.visit(q.fragment).body)}function Cb(q,Z){let Q=z8([]);for(let B of q.attributes){if(B.type!=="Attribute"||B.value===!0)continue;let M=Array.isArray(B.value)?B.value[0]:B.value,V=Z.visit(M.expression,Z.state);if(M.metadata.expression.has_state)Q.properties.push(B1(B.name,[l8(V)]));else Q.properties.push(M8(B.name,V))}let Y=[],J=[],H=[],X=!1,G=!1;for(let B of q.fragment.nodes){if(B.type==="ConstTag"){if(X=!0,!Z.state.options.experimental.async)Z.visit(B,{...Z.state,consts:J,scope:Z.state.scopes.get(q.fragment)??Z.state.scope})}if(B.type==="DeclarationTag")G=!0}for(let B of q.fragment.nodes){if(B.type==="ConstTag"){if(Z.state.options.experimental.async)Y.push(B);continue}if(B.type==="SnippetBlock"){if(Z.state.options.experimental.async&&(X||G)&&!["failed","pending"].includes(B.expression.name))Y.push(B);else{let M=[];Z.visit(B,{...Z.state,snippets:M});let V=M[0],$=Q8?V.declarations[0].init.arguments[1]:V.declarations[0].init;if(!Z.state.options.experimental.async)$.body.body.unshift(...J.filter((O)=>O.type==="VariableDeclaration"));if(["failed","pending"].includes(B.expression.name))Q.properties.push(e8("init",B.expression,B.expression));H.push(V)}continue}Y.push(B)}let W=Z.visit({...q.fragment,nodes:Y},{...Z.state,scope:Z.state.scopes.get(q.fragment)??Z.state.scope});if(!Z.state.options.experimental.async)W.body.unshift(...J);let R=l(j("$.boundary",Z.state.node,Q,J8([F("$$anchor")],W)));Z.state.template.push_comment(),Z.state.init.push(H.length>0?d([...H,R]):R)}function Eb(q,Z){Z.state.init.push(l(j(F("$.head",q.name_loc),g(a7(T0)),J8([F("$$anchor")],Z.visit(q.fragment)))))}function Fb(q,Z){let Q=u5(q,j6,q.name_loc,Z);Z.state.init.push(Q)}function Tb(q,Z){b5(q,"$.window",Z)}function fb(q,Z){let Q=new Z1,{has_state:Y,value:J}=c6(q.fragment.nodes,Z,Z.state,(G,W)=>Q.add(G,W)),H=Z.state.scope.evaluate(J),X=l(L8("=",U8(F("$.document"),F("title",q.name_loc)),H.is_known?g(H.value):H.is_defined?J:r1("??",J,g(""))));if(Y)Z.state.after_update.push(l(j("$.deferred_template_effect",J8(Q.apply(),d([X])),Q.sync_values(),Q.async_values(),Q.blockers())));else Z.state.after_update.push(l(j("$.effect",i(d([X])))))}function Kb(q,Z){let Q=q.modifiers.includes("global")?dV:0;if(q.intro)Q|=rV;if(q.outro)Q|=iV;let Y=[g(Q),Z.state.node,i(Z.visit(k5(q.name)))];if(q.expression)Y.push(i(Z.visit(q.expression)));let J=l(j("$.transition",...Y));if(q.metadata.expression.is_async())J=l(j("$.run_after_blockers",q.metadata.expression.blockers(),i(d([J]))));Z.state.after_update.push(J)}function vb(q,Z){let Q=q.argument;if(Q.type==="MemberExpression"&&Q.object.type==="ThisExpression"&&Q.property.type==="PrivateIdentifier"&&Z.state.state_fields.has("#"+Q.property.name)){let X="$.update";if(q.prefix)X+="_pre";let G=[Q];if(q.operator==="--")G.push(g(-1));return j(X,...G)}if(Q.type!=="Identifier"&&Q.type!=="MemberExpression")throw Error("An impossible state was reached");let Y=f0(Q),J=Y&&Z.state.transform[Y.name];if(Y===Q&&J?.update)return J.update(q);let H=Z.next();if(Y&&J?.mutate)H=J.mutate(Y,H);return MZ(q,Z,H)}function Nb(q,Z){let Q=[F("$$node")];if(q.expression)Q.push(F("$$action_arg"));let Y=[Z.state.node,J8(Q,T9(Z.visit(k5(q.name)),...Q))];if(q.expression)Y.push(i(Z.visit(q.expression)));let J=l(j("$.action",...Y));if(q.metadata.expression.is_async())J=l(j("$.run_after_blockers",q.metadata.expression.blockers(),i(d([J]))));Z.state.init.push(J),Z.next()}function kb(q,Z){let Q=K0(Z,q.expression,q.metadata.expression),Y=l(j("$.attach",Z.state.node,i(Q)));if(q.metadata.expression.is_async())Y=l(j("$.run_after_blockers",q.metadata.expression.blockers(),i(d([Y]))));Z.state.init.push(Y),Z.next()}function Sb(q,Z){let Q=[];if(Z.state.analysis.runes)for(let Y of q.declarations){let J=Y.init,H=s8(J,Z.state.scope);if(!H||H==="$effect.tracking"||H==="$effect.root"||H==="$inspect"||H==="$inspect.trace"||H==="$state.snapshot"||H==="$host"){Q.push(Z.visit(Y));continue}if(H==="$props.id")continue;if(H==="$props"){let W=["$$slots","$$events","$$legacy"];if(Z.state.analysis.custom_element)W.push("$$host");if(Y.id.type==="Identifier"){let R=Z.state.scope.root.unique("rest_excludes");Z.state.hoisted.push(D8(R,W3("Set",G8(W.map((M)=>g(M))))));let B=[F("$$props"),R];if(Q8)B.push(g(Y.id.name));Q.push(b8(Y.id,j("$.rest_props",...B)))}else{Gq(Y.id.type,"ObjectPattern");for(let R of Y.id.properties)if(R.type==="Property"){let B=R.key,M=B.type==="Identifier"?B.name:B.value;W.push(M);let V=R.value.type==="AssignmentPattern"?R.value.left:R.value;Gq(V.type,"Identifier");let $=Z.state.scope.get(V.name),O=$.initial&&Z.visit($.initial);if(O&&$.kind==="bindable_prop"&&M9(O,Z.state.scope)){if(O=j("$.proxy",O),Q8)O=j("$.tag_proxy",O,g(V.name))}if(K3($,Z.state))Q.push(b8(V,f3($,Z.state,M,O)))}else{let B=Z.state.scope.root.unique("rest_excludes");Z.state.hoisted.push(D8(B,W3("Set",G8(W.map((V)=>g(V))))));let M=[F("$$props"),B];if(Q8)M.push(g(R.argument.name));Q.push(b8(R.argument,j("$.rest_props",...M)))}}continue}let G=J.arguments[0]??w0;if(H==="$state"||H==="$state.raw"){let W=(R,B)=>{let M=Z.state.scope.get(R.name),V=m2(M,Z.state.analysis),$=M9(B,Z.state.scope);if(H==="$state"&&$){if(B=j("$.proxy",B),Q8&&!V)B=j("$.tag_proxy",B,g(R.name))}if(V){let O=F("$.state",J.callee.loc);if(B=j(O,B),Q8)B=j("$.tag",B,g(R.name))}return B};if(Y.id.type==="Identifier"){let R=Z.visit(G);Q.push(b8(Y.id,W(Y.id,R)))}else{let R=F(Z.state.scope.generate("tmp")),{inserts:B,paths:M}=q1(Y.id,R);Q.push(b8(R,Z.visit(G)),...B.map(({id:V,value:$})=>{V.name=Z.state.scope.generate("$$array"),Z.state.transform[V.name]={read:S0};let O=Z.visit(i($)),w=j("$.derived",O);if(Q8){let I=`[$state ${Y.id.type==="ArrayPattern"?"iterable":"object"}]`;w=j("$.tag",w,g(I))}return b8(V,w)}),...M.map((V)=>{let $=Z.visit(V.expression),O=Z.state.scope.get(V.node.name);return b8(V.node,O?.kind==="state"||O?.kind==="raw_state"?W(O.node,$):$)}))}continue}if(H==="$derived"||H==="$derived.by"){let W=Z.state.analysis.async_deriveds.has(J);if(Y.id.type==="Identifier"){let R=Z.visit(G);if(W){let B=Q8&&!L0(J,"await_waterfall")&&X7(J),M=j("$.async_derived",i(R,!0),Q8&&g(Y.id.name),B?g(B):void 0);Q.push(b8(Y.id,e0(M)))}else{if(H==="$derived")R=i(R);let B=j("$.derived",R);if(Q8)B=j("$.tag",B,g(Y.id.name));Q.push(b8(Y.id,B))}}else{let R=Y.init,B=Z.visit(G),M=G;if(H!=="$derived"||R.arguments[0].type!=="Identifier"){let O=F(Z.state.scope.generate("$$d")),w=j("$.derived",H==="$derived"?i(B):B);if(M=j("$.get",O),W){let I=Q8&&!L0(R,"await_waterfall")&&X7(R);w=j("$.async_derived",i(B,!0),Q8&&g(`[$derived ${Y.id.type==="ArrayPattern"?"iterable":"object"}]`),I?g(I):void 0),w=e0(w)}Q.push(b8(O,w))}let{inserts:V,paths:$}=q1(Y.id,M);for(let{id:O,value:w}of V){O.name=Z.state.scope.generate("$$array"),Z.state.transform[O.name]={read:S0};let I=Z.visit(i(w)),C=j("$.derived",I);if(Q8){let E=`[$derived ${Y.id.type==="ArrayPattern"?"iterable":"object"}]`;C=j("$.tag",C,g(E))}Q.push(b8(O,C))}for(let O of $){let w=Z.visit(O.expression),I=j("$.derived",i(w));Q.push(b8(O.node,Q8?j("$.tag",I,g(O.node.name)):I))}}continue}}else for(let Y of q.declarations){let J=Z.state.scope.get_bindings(Y),H=J.some((G)=>G.kind==="state"),X=J.some((G)=>G.kind==="bindable_prop");if(!H&&!X){Q.push(Z.visit(Y));continue}if(X){if(Y.id.type!=="Identifier"){let W=F(Z.state.scope.generate("tmp")),{inserts:R,paths:B}=q1(Y.id,W);Q.push(b8(W,Z.visit(Y.init)));for(let{id:M,value:V}of R){M.name=Z.state.scope.generate("$$array"),Z.state.transform[M.name]={read:S0};let $=Z.visit(i(V));Q.push(b8(M,j("$.derived",$)))}for(let M of B){let V=M.node.name,$=Z.state.scope.get(V),O=Z.visit(M.expression);Q.push(b8(M.node,$.kind==="bindable_prop"?f3($,Z.state,$.prop_alias??V,O):O))}continue}let G=Z.state.scope.get(Y.id.name);Q.push(b8(Y.id,f3(G,Z.state,G.prop_alias??Y.id.name,Y.init&&Z.visit(Y.init))));continue}Q.push(...O38(Y,Z,Y.init&&Z.visit(Y.init)))}if(Q.length===0)return _8;return{...q,declarations:Q}}function O38(q,Z,Q){let Y=(G,W)=>{let R=j("$.mutable_source",G,Z.state.analysis.immutable&&P8);return Q8?j("$.tag",R,g(W)):R};if(q.id.type==="Identifier")return[b8(q.id,Y(Q,q.id.name))];let J=F(Z.state.scope.generate("tmp")),{inserts:H,paths:X}=q1(q.id,J);return[b8(J,Q),...H.map(({id:G,value:W})=>{G.name=Z.state.scope.generate("$$array"),Z.state.transform[G.name]={read:S0};let R=Z.visit(i(W));return b8(G,j("$.derived",R))}),...X.map((G)=>{let W=Z.visit(G.expression),R=Z.state.scope.get(G.node.name);return b8(G.node,R?.kind==="state"?Y(W,G.node.name):W)})]}var oH={_:function(Z,{next:Q,state:Y}){let J=Y.scopes.get(Z);if(J&&J!==Y.scope)Q({...Y,transform:v3(J,Y),scope:J});else Q()},AnimateDirective:Eu,ArrowFunctionExpression:Fu,AssignmentExpression:Tu,Attribute:Ku,AwaitBlock:Nu,AwaitExpression:ku,BinaryExpression:Su,BindDirective:mu,BlockStatement:pu,BreakStatement:cu,CallExpression:ru,ClassBody:iu,Comment:du,Component:su,ConstTag:nu,DeclarationTag:au,DebugTag:tu,EachBlock:eu,ExportNamedDeclaration:qb,ExpressionStatement:Zb,ForOfStatement:Qb,Fragment:Yb,FunctionDeclaration:Jb,FunctionExpression:Hb,HtmlTag:Xb,Identifier:Gb,IfBlock:Vb,KeyBlock:Wb,LabeledStatement:$b,LetDirective:Ub,MemberExpression:Rb,OnDirective:zb,Program:Bb,RegularElement:gu,RenderTag:Mb,SlotElement:Pb,SnippetBlock:Lb,SpreadAttribute:Ob,SvelteBody:wb,SvelteComponent:Ab,SvelteDocument:jb,SvelteElement:Ib,SvelteFragment:Db,SvelteBoundary:Cb,SvelteHead:Eb,SvelteSelf:Fb,SvelteWindow:Tb,TitleElement:fb,TransitionDirective:Kb,UpdateExpression:vb,UseDirective:Nb,AttachTag:kb,VariableDeclaration:Sb};function ub(q,Z){let Q={analysis:q,options:Z,scope:q.module.scope,scopes:q.module.scopes,is_instance:!1,hoisted:[R3("$","svelte/internal/client"),...q.instance_body.hoisted],templates:new Map,node:null,legacy_reactive_imports:[],legacy_reactive_statements:new Map,metadata:{namespace:Z.namespace,bound_contenteditable:!1},events:new Set,preserve_whitespace:Z.preserveWhitespace,state_fields:new Map,transform:{},in_constructor:!1,instance_level_snippets:[],module_level_snippets:[],is_standalone:!1,init:null,consts:null,snippets:null,let_directives:null,update:null,after_update:null,template:null,memoizer:null},Y=K8(q.module.ast,Q,oH),J={...Q,transform:{...Q.transform},scope:q.instance.scope,scopes:q.instance.scopes,is_instance:!0},H=K8(q.instance.ast,J,oH),X=K8(q.template.ast,{...Q,transform:J.transform,scope:q.instance.scope,scopes:q.template.scopes},oH);Y.body.unshift(...Q.legacy_reactive_imports);let G=[],W=_8,R=[],B=!1;for(let[_,b]of q.instance.scope.declarations){if(b.kind==="legacy_reactive")R.push(q0(_,j("$.mutable_source",void 0,q.immutable?P8:void 0)));if(b.kind==="store_sub"){if(G.length===0)B=!0,W=q0(T6([F("$$stores"),F("$$cleanup")]),j("$.setup_stores"));let z=X1(F(_.slice(1)),J),P=j("$.store_get",z,g(_),F("$$stores"));G.push(q0(b.node,Q8?i(y0([j("$.validate_store",z,g(_.slice(1))),P])):i(P)))}}for(let[_]of q.reactive_statements){let b=[...Q.legacy_reactive_statements].find(([z])=>z===_);if(b===void 0)throw Error("Could not find reactive statement");H.body.push(b[1])}if(q.reactive_statements.size>0)H.body.push(l(j("$.legacy_pre_effect_reset")));let M=[];for(let _ of q.binding_groups.values())M.push(q0(_.name,G8([])));let V=q.exports.flatMap(({name:_,alias:b})=>{let z=J.scope.get(_),P=X1(F(_),J),L=B1(b??_,[l8(P)]);if(P.type==="Identifier"){if(z?.declaration_kind==="let"||z?.declaration_kind==="var")return[L,$9(b??_,[l(L8("=",P,F("$$value")))])];else if(!Q8)return M8(b??_,P)}if(z?.kind==="prop"||z?.kind==="bindable_prop")return[L,$9(b??_,[l(j(_,F("$$value")))])];if(z?.kind==="state"||z?.kind==="raw_state"){let A=z.kind==="state"?j("$.proxy",F("$$value")):F("$$value");return[L,$9(b??_,[l(j("$.set",F(_),A))])]}return L}),$=[...q.instance.scope.declarations].filter(([_,b])=>(b.kind==="prop"||b.kind==="bindable_prop")&&!_.startsWith("$$"));if(q.accessors)for(let[_,b]of $){let z=b.prop_alias??_,P=B1(z,[l8(j(F(_)))]),L=$9(z,[l(j(F(_),F("$$value"))),l(j("$.flush"))]);if(q.runes&&b.initial)L.value.params[0]={type:"AssignmentPattern",left:F("$$value"),right:b.initial};V.push(P,L)}if(Z.compatibility.componentApi===4)V.push(M8("$set",F("$.update_legacy_props")),M8("$on",J8([F("$$event_name"),F("$$event_cb")],j("$.add_legacy_event_listener",F("$$props"),F("$$event_name"),F("$$event_cb")))));else if(Q8)V.unshift(i1(j(F("$.legacy_api"))));let O=[F("$$props"),g(q.runes)];if(Q8)O.push(F(q.name));let w=d([W,...R,...M]),I=Q8||q.needs_context||q.reactive_statements.size>0||V.length>0;if(w.body.push(...Q.instance_level_snippets,...H.body),I&&V.length>0)w.body.push(D8("$$exports",z8(V)));if(w.body.unshift(...G),!q.runes&&q.needs_context)w.body.push(l(j("$.init",q.immutable?P8:void 0)));if(w.body.push(...X.body),q.needs_mutation_validation)w.body.unshift(D8("$$ownership_validator",j("$.create_ownership_validator",F("$$props"))));let C=I||q.needs_props||q.uses_props||q.uses_rest_props||q.uses_slots||q.slot_names.size>0;if(w.loc=H.loc,!q.runes)for(let{name:_,alias:b}of q.exports)w.body.push(l(j("$.bind_prop",F("$$props"),g(b??_),X1(F(_),J))));if(q.css.ast!==null&&q.inject_styles){let _=g(q.css.hash),b=g(v5(q.source,q,Z).code);Q.hoisted.push(q0("$$css",z8([M8("hash",_),M8("code",b)]))),w.body.unshift(l(j("$.append_styles",F("$$anchor"),F("$$css"))))}if(I){w.body.unshift(l(j("$.push",...O)));let _;if(V.length>0){let b=j("$.pop",F("$$exports"));_=B?D8("$$pop",b):l8(b)}else _=l(j("$.pop"));w.body.push(_)}if(B){if(w.body.push(l(j("$$cleanup"))),V.length>0)w.body.push(l8(F("$$pop")))}if(q.uses_rest_props){let _=q.exports.map(({name:b,alias:z})=>z??b);for(let[b,z]of q.instance.scope.declarations)if(z.kind==="bindable_prop")_.push(z.prop_alias??b);w.body.unshift(q0("$$restProps",j("$.legacy_rest_props",F("$$sanitized_props"),G8(_.map((b)=>g(b))))))}if(q.uses_props||q.uses_rest_props){let _=[g("children"),g("$$slots"),g("$$events"),g("$$legacy")];if(q.custom_element)_.push(g("$$host"));w.body.unshift(q0("$$sanitized_props",j("$.legacy_rest_props",F("$$props"),G8(_))))}if(q.uses_slots)w.body.unshift(q0("$$slots",j("$.sanitize_slots",F("$$props"))));let E=[],D=[];for(let _ of[...Y.body,...Q.hoisted])if(_.type==="ImportDeclaration")E.push(_);else D.push(_);D=[...E,...Q.module_level_snippets,...D];let f=M7(F(q.name),C?[F("$$anchor"),F("$$props")]:[F("$$anchor")],w);if(Z.hmr){let _=F(q.name),b=[l(j(U8(U8(_,F("$.HMR"),!0),"update"),F("module.default")))];if(q.css.hash)b.unshift(l(j("$.cleanup_styles",g(q.css.hash))));let z=d([l(L8("=",_,j("$.hmr",_))),l(j("import.meta.hot.accept",J8([F("module")],d(b))))]);D.push(f,k0(F("import.meta.hot"),z),B7(F(q.name)))}else D.push(B7(f));if(Q8)D.unshift(l(L8("=",U8(F(q.name),"$.FILENAME",!0),g(T0))));if(Z.experimental.async)D.unshift(o9([],"svelte/internal/flags/async"));if(!q.runes)D.unshift(o9([],"svelte/internal/flags/legacy"));if(q.tracing)D.unshift(o9([],"svelte/internal/flags/tracing"));if(Z.discloseVersion)D.unshift(o9([],"svelte/internal/disclose-version"));if(Z.compatibility.componentApi===4)D.unshift(o9([["createClassComponent","$$_createClassComponent"]],"svelte/legacy")),w.body.unshift(k0(F("new.target"),l8(j("$$_createClassComponent",z8([M8("component",F(q.name)),i1(F("$$anchor"))])))));else if(Q8)w.body.unshift(l(j("$.check_target",F("new.target"))));if(q.props_id)w.body.unshift(q0(q.props_id,j("$.props_id")));if(Q.events.size>0)D.push(l(j("$.delegate",G8(Array.from(Q.events).map((_)=>g(_))))));let v=q.custom_element;if(v){let _=typeof v==="boolean"?{}:v.props||{},b=[];for(let[T,h]of Object.entries(_)){let N=q.instance.scope.get(T),y=N?.prop_alias??T;if(!h.type&&N?.initial?.type==="Literal"&&typeof N?.initial.value==="boolean")h.type="Boolean";let r=z8([h.attribute?M8("attribute",g(h.attribute)):void 0,h.reflect?M8("reflect",P8):void 0,h.type?M8("type",g(h.type)):void 0].filter(Boolean));b.push(M8(y,r))}for(let[T,h]of $){let N=h.prop_alias??T;if(_[N])continue;b.push(M8(N,z8([])))}let z=G8([...q.slot_names.keys()].map((T)=>g(T))),P=G8(q.exports.map(({name:T,alias:h})=>g(h??T))),L;if(typeof v==="boolean"||v.shadow==="open"||v.shadow===void 0)L=z8([M8("mode",g("open"))]);else if(v.shadow==="none")L=void 0;else L=v.shadow;let A=j("$.create_custom_element",F(q.name),z8(b),z,P,L,typeof v!=="boolean"?v.extend:void 0);if(typeof v!=="boolean"&&typeof v.tag==="string"){let T=l(j("customElements.define",g(v.tag),A));if(Z.hmr)D.push(k0(V9("==",j("customElements.get",g(v.tag)),w1),T));else D.push(T)}else D.push(l(A))}return{type:"Program",sourceType:"module",body:D}}function bb(q,Z,Q){if(Q.generate===!1)return{js:null,css:null,warnings:Q5,metadata:{runes:q.runes},ast:null};let Y=Q.generate==="server"?Cu(q,Q):ub(q,Q),J=kS(Q.filename,Q.outputFilename,"input.svelte"),H=TH(Y,vH({comments:q.comments}),{sourceMapContent:Z,sourceMapSource:J});HZ(H,Q,J);let X=q.css.ast&&!q.inject_styles?v5(Z,q,Q):null;return{js:H,css:X,warnings:Q5,metadata:{runes:q.runes},ast:null}}var _b={filename:Lq("(unknown)"),rootDir:Lq(typeof process<"u"?process.cwd?.():typeof Deno<"u"?Deno.cwd():void 0),dev:G6(!1),generate:f7("client",(q,Z)=>{if(q==="dom"||q==="ssr")return ZX(U$),q==="dom"?"client":"server";if(q!=="client"&&q!=="server"&&q!==!1)L9(`${Z} must be "client", "server" or false`);return q}),warningFilter:lb(()=>!0),experimental:AZ({async:G6(!1)})},gb={accessors:yb(T4,G6(!1)),css:eH(()=>"external",(q)=>{if(q===!0||q===!1)L9('The boolean options have been removed from the css option. Use "external" instead of false and "injected" instead of true');if(q==="none")L9('css: "none" is no longer a valid option. If this was crucial for you, please open an issue on GitHub with your use case.');if(q!=="external"&&q!=="injected")L9('css should be either "external" (default, recommended) or "injected"');return q}),cssHash:lb(({css:q,filename:Z,hash:Q})=>{return`svelte-${Q(Z==="(unknown)"?q:Z??q)}`}),cssOutputFilename:Lq(void 0),customElement:eH(()=>!1,(q,Z)=>{if(typeof q!=="boolean")L9(`${Z} should be true or false`);return q}),discloseVersion:G6(!0),immutable:yb(f4,G6(!1)),legacy:h5("The legacy option has been removed. If you are using this because of legacy.componentApi, use compatibility.componentApi instead"),compatibility:AZ({componentApi:tH([4,5],5)}),loopGuardTimeout:nH($$),name:Lq(void 0),namespace:tH(["html","mathml","svg"]),modernAst:G6(!1),outputFilename:Lq(void 0),preserveComments:G6(!1),fragments:tH(["html","tree"]),preserveWhitespace:G6(!1),runes:eH(()=>{return}),hmr:G6(!1),sourcemap:f7(void 0,(q)=>{return q}),enableSourcemap:nH(V$),hydratable:nH(W$),format:h5('The format option has been removed in Svelte 4, the compiler only outputs ESM now. Remove "format" from your compiler options. If you did not set this yourself, bump the version of your bundler plugin (vite-plugin-svelte/rollup-plugin-svelte/svelte-loader)'),tag:h5('The tag option has been removed in Svelte 5. Use `<svelte:options customElement="tag-name" />` inside the component instead. If that does not solve your use case, please open an issue on GitHub with details.'),sveltePath:h5("The sveltePath option has been removed in Svelte 5. If this option was crucial for you, please open an issue on GitHub with your use case."),errorMode:h5("The errorMode option has been removed. If you are using this through svelte-preprocess with TypeScript, use the https://www.typescriptlang.org/tsconfig#verbatimModuleSyntax setting instead"),varsReport:h5("The vars option has been removed. If you are using this through svelte-preprocess with TypeScript, use the https://www.typescriptlang.org/tsconfig#verbatimModuleSyntax setting instead")},A38=AZ({..._b,...Object.fromEntries(Object.keys(gb).map((q)=>[q,()=>{}]))}),qX=AZ({..._b,...gb});function h5(q){return(Z)=>{if(Z!==void 0)mU(null,q);return}}var hb=new Set;function ZX(q){if(!hb.has(q))hb.add(q),q(null)}function nH(q){return(Z)=>{if(Z!==void 0)ZX(q);return}}function yb(q,Z){return(Q,Y)=>{if(Q!==void 0)ZX(q);return Z(Q,Y)}}function AZ(q,Z=!1){return(Q,Y)=>{let J={};if(Q&&typeof Q!=="object"||Array.isArray(Q))L9(`${Y} should be an object`);for(let H in Q)if(!(H in q))if(Z)J[H]=Q[H];else pU(null,`${Y?`${Y}.${H}`:H}`);for(let H in q){let X=q[H];J[H]=X(Q&&Q[H],Y?`${Y}.${H}`:H)}return J}}function f7(q,Z){return(Q,Y)=>{return Q===void 0?q:Z(Q,Y)}}function Lq(q,Z=!0){return f7(q,(Q,Y)=>{if(typeof Q!=="string")L9(`${Y} should be a string, if specified`);if(!Z&&Q==="")L9(`${Y} cannot be empty`);return Q})}function G6(q){return f7(q,(Z,Q)=>{if(typeof Z!=="boolean")L9(`${Q} should be true or false, if specified`);return Z})}function tH(q,Z=q[0]){return f7(Z,(Q,Y)=>{if(!q.includes(Q)){let J=q.length>2?`${Y} should be one of ${q.slice(0,-1).map((H)=>`"${H}"`).join(", ")} or "${q[q.length-1]}"`:`${Y} should be either "${q[0]}" or "${q[1]}"`;L9(J)}return Q})}function lb(q){return f7(q,(Z,Q)=>{if(typeof Z!=="function")L9(`${Q} should be a function, if specified`);return Z})}function eH(q,Z=(Q)=>Q){return f7(q,(Q,Y)=>{if(typeof Q==="function")return(...X)=>Z(Q(...X),Y);return(...H)=>Z(Q,Y)})}function L9(q){xU(null,q)}function xb(q,Z){q=pb(q),F4({warning:Z.warningFilter,filename:Z.filename});let Q=qX(Z,""),Y=w3(q),{customElement:J,...H}=Y.options||{},X={...Q,...H,customElementOptions:J,css:"css"in H?()=>H.css??"external":Q.css,runes:"runes"in H?()=>H.runes:Q.runes};if(Y.metadata.ts){if(Y={...Y,fragment:Y.fragment&&S2(Y.fragment),instance:Y.instance&&S2(Y.instance),module:Y.module&&S2(Y.module)},X.customElementOptions?.extend)X.customElementOptions.extend=S2(X.customElementOptions?.extend)}let G=CH(Y,q,X),W=bb(G,q,X);return W.ast=mb(q,Y,Z.modernAst),W}function r6(q,{modern:Z,loose:Q}={}){q=pb(q),F4({warning:()=>!1,filename:void 0});let Y=w3(q,Q);return mb(q,Y,Z)}function mb(q,Z,Q){if(Q){let Y=(J)=>{delete J.metadata};return Z.options?.attributes.forEach((J)=>{if(Y(J),Y(J.value),Array.isArray(J.value))J.value.forEach(Y)}),K8(Z,null,{_(J,{next:H}){Y(J),H()}})}return g$(q,Z)}function pb(q){if(q.charCodeAt(0)===65279)return q.slice(1);return q}function V6(q){return typeof q==="object"&&q!==null}function cb(q){return V6(q)&&q.type==="VariableDeclaration"&&Array.isArray(q.declarations)}function K7(q){return V6(q)&&q.type==="Literal"}function g9(q){return V6(q)&&q.type==="Identifier"&&typeof q.name==="string"}function rb(q){return V6(q)&&q.type==="MemberExpression"}function jZ(q){return V6(q)&&q.type==="ObjectExpression"&&Array.isArray(q.properties)}function I38(q){return V6(q)&&q.type==="CallExpression"}function l9(q,Z){if(!I38(q))return!1;return!!q.callee&&V6(q.callee)&&q.callee.type==="Identifier"&&q.callee.name===Z}function D38(q){return V6(q)&&q.type==="NewExpression"}function QX(q,Z){if(!D38(q))return!1;return!!q.callee&&V6(q.callee)&&q.callee.type==="Identifier"&&q.callee.name===Z}var ib={a:"HTMLAnchorElement",abbr:"HTMLElement",address:"HTMLElement",applet:"HTMLUnknownElement",area:"HTMLAreaElement",article:"HTMLElement",aside:"HTMLElement",audio:"HTMLAudioElement",b:"HTMLElement",base:"HTMLBaseElement",basefont:"HTMLElement",bdi:"HTMLElement",bdo:"HTMLElement",blockquote:"HTMLQuoteElement",body:"HTMLBodyElement",br:"HTMLBRElement",button:"HTMLButtonElement",canvas:"HTMLCanvasElement",caption:"HTMLTableCaptionElement",cite:"HTMLElement",code:"HTMLElement",col:"HTMLTableColElement",colgroup:"HTMLTableColElement",data:"HTMLDataElement",datalist:"HTMLDataListElement",dd:"HTMLElement",del:"HTMLModElement",details:"HTMLDetailsElement",dfn:"HTMLElement",dialog:"HTMLDialogElement",dir:"HTMLDirectoryElement",div:"HTMLDivElement",dl:"HTMLDListElement",dt:"HTMLElement",em:"HTMLElement",embed:"HTMLEmbedElement",fieldset:"HTMLFieldSetElement",figcaption:"HTMLElement",figure:"HTMLElement",font:"HTMLFontElement",footer:"HTMLElement",form:"HTMLFormElement",frame:"HTMLFrameElement",frameset:"HTMLFrameSetElement",h1:"HTMLHeadingElement",h2:"HTMLHeadingElement",h3:"HTMLHeadingElement",h4:"HTMLHeadingElement",h5:"HTMLHeadingElement",h6:"HTMLHeadingElement",head:"HTMLHeadElement",header:"HTMLElement",hgroup:"HTMLElement",hr:"HTMLHRElement",html:"HTMLHtmlElement",i:"HTMLElement",iframe:"HTMLIFrameElement",img:"HTMLImageElement",input:"HTMLInputElement",ins:"HTMLModElement",kbd:"HTMLElement",label:"HTMLLabelElement",legend:"HTMLLegendElement",li:"HTMLLIElement",link:"HTMLLinkElement",main:"HTMLElement",map:"HTMLMapElement",mark:"HTMLElement",marquee:"HTMLMarqueeElement",menu:"HTMLMenuElement",meta:"HTMLMetaElement",meter:"HTMLMeterElement",nav:"HTMLElement",noscript:"HTMLElement",object:"HTMLObjectElement",ol:"HTMLOListElement",optgroup:"HTMLOptGroupElement",option:"HTMLOptionElement",output:"HTMLOutputElement",p:"HTMLParagraphElement",param:"HTMLParamElement",picture:"HTMLPictureElement",pre:"HTMLPreElement",progress:"HTMLProgressElement",q:"HTMLQuoteElement",rp:"HTMLElement",rt:"HTMLElement",ruby:"HTMLElement",s:"HTMLElement",samp:"HTMLElement",script:"HTMLScriptElement",search:"HTMLElement",section:"HTMLElement",select:"HTMLSelectElement",slot:"HTMLSlotElement",small:"HTMLElement",source:"HTMLSourceElement",span:"HTMLSpanElement",strong:"HTMLElement",style:"HTMLStyleElement",sub:"HTMLElement",summary:"HTMLElement",sup:"HTMLElement",table:"HTMLTableElement",tbody:"HTMLTableSectionElement",td:"HTMLTableCellElement",template:"HTMLTemplateElement",textarea:"HTMLTextAreaElement",tfoot:"HTMLTableSectionElement",th:"HTMLTableCellElement",thead:"HTMLTableSectionElement",time:"HTMLTimeElement",title:"HTMLTitleElement",tr:"HTMLTableRowElement",track:"HTMLTrackElement",u:"HTMLElement",ul:"HTMLUListElement",var:"HTMLElement",video:"HTMLVideoElement",wbr:"HTMLElement"};function C38(q){return q in ib}function db(q){if(C38(q))return ib[q];return"HTMLElement"}var E38=/\w/;function F38(q,Z){let Q=q.trim();if(!Q.startsWith("{")||!Q.endsWith("}"))return;let Y=Q.slice(1,-1),J=[],H=0,X="";for(let G of Y)if(G==="{"||G==="<"||G==="("||G==="[")H++,X+=G;else if(G==="}"||G===">"||G===")"||G==="]")H--,X+=G;else if((G===";"||G===",")&&H===0)J.push(X.trim()),X="";else X+=G;if(X.trim())J.push(X.trim());for(let G of J){if(!G.startsWith(Z))continue;let W=G.slice(Z.length);if(W.length>0&&E38.test(W[0]))continue;let R=W.trimStart();if(R.startsWith("?"))R=R.slice(1).trimStart();if(R.startsWith(":"))return R.slice(1).trim()}return}function IZ(q,Z,Q){let Y=Q;if(Y.computed||Y.object?.type!=="Identifier"||Y.property?.type!=="Identifier")return;let J=Y.object.name,H=Y.property.name;if(!J||!H)return;if(q.wholePropsLocals.has(J))return Z.getPropTypeByLocalOrPublic(H);let X=Z.getPropTypeByLocalOrPublic(J)??Z.findVariableTypeAndDescription(J)?.type;if(!X)return;return F38(X,H)}function YX(){return{syntaxMode:"legacy",scriptLanguage:void 0,source:void 0,compiled:void 0,parsed:void 0,sourceLinesCache:void 0,sourceLineStartOffsetsCache:void 0,rest_props:void 0,extends:void 0,customElementTag:void 0,componentComment:void 0,componentCommentSource:void 0,generics:null,scriptGenericsAttribute:void 0,diagnosticRecords:[],componentFilePath:"",props:new Map,moduleExports:new Map,propLocalToPublicName:new Map,reactive_vars:new Set,funcDecls:new Map,vars:new Set,runesPropsDeclarationMetadataByDeclaratorStart:new Map,typedRunesPropsDeclarations:[],explicitPropTypesByName:new Map,typeImportBindingsByLocalName:new Map,localTypeDeclarationsByName:new Map,wholePropsLocals:new Set,restPropLocals:new Set,componentScope:new Map,scopeDeclarations:new WeakMap,activeScopes:[],slots:new Map,snippetPropLocals:new Set,deferredSlotBlockGenerics:[],events:new Map,eventDescriptions:new Map,forwardedEvents:new Map,jsDocEventNames:new Set,jsDocEventSources:new Map,bindings:new Map,contexts:new Map,typedefs:new Map,variableInfoCache:new Map}}function W6(q,Z,Q,Y,J){q.diagnosticRecords.push({component:q.componentFilePath,kind:Z,name:Q,message:Y,...J?{source:J}:{}})}var T38=/[\r\n]+/g;function f38(q){if(q.sourceLineStartOffsetsCache)return q.sourceLineStartOffsetsCache;let Z=[0];if(q.source){for(let Q=0;Q<q.source.length;Q++)if(q.source[Q]===`
|
|
249
|
-
`)Z.push(Q+1)}return q.sourceLineStartOffsetsCache=Z,Z}function sb(q,Z){if(!q.source||Z<0||Z>q.source.length)return;let Q=f38(q),Y=0,J=Q.length-1;while(Y<=J){let H=Math.floor((Y+J)/2),X=Q[H],G=Q[H+1]??Number.POSITIVE_INFINITY;if(Z<X)J=H-1;else if(Z>=G)Y=H+1;else return{line:H+1,column:Z-X}}return}function DZ(q,Z,Q){if(Z===void 0||Q===void 0||Q<Z)return;let Y=sb(q,Z),J=sb(q,Q);if(!Y||!J)return;return{start:Y,end:J}}function x0(q,Z){if(!Z||typeof Z!=="object")return;let Q="start"in Z&&typeof Z.start==="number"?Z.start:void 0,Y="end"in Z&&typeof Z.end==="number"?Z.end:void 0;return DZ(q,Q,Y)}function JX(q,Z,Q,Y){if(!Q||Q.length===0||Y===void 0)return;let J=[...Q];while(J.length>1){let V=J[J.length-1];if(V.tokens.tag||!V.source.trim().endsWith("*/"))break;J.pop()}let H=Y;for(let V=0;V<J[0].number-1;V++)H+=Z[V]?.source.length??0,H+=1;let X=J[0],G=X.source.indexOf(X.tokens.tag??""),W=H+Math.max(G,0),R=Y,B=J[J.length-1],M=B.number;for(let V=0;V<M-1;V++)R+=Z[V]?.source.length??0,R+=1;return R+=B.source.length,DZ(q,W,R)}function m0(q,Z,Q){return q.source?.slice(Z,Q)}function ab(q,Z){if(!Z||typeof Z!=="object")return;let Q="start"in Z&&typeof Z.start==="number"?Z.start:void 0,Y="end"in Z&&typeof Z.end==="number"?Z.end:void 0;if(Q===void 0||Y===void 0)return;return m0(q,Q,Y)?.replace(T38," ")}var K38=/[\r\n]+/g;function Oq(q,Z,Q,Y){if(v38(Q)===void 0)return;if(q.trackPropLocalName(Q),Z.props.has(Q)){let J=Z.props.get(Q);Z.props.set(Q,{...J,...Y})}else Z.props.set(Q,Y)}function v38(q){return q===void 0||q===""?void 0:q}function v7(q,Z,Q,Y=0){let J,H,X=!1;if(!Q||typeof Q!=="object"||!("type"in Q))return{value:J,type:H,isFunction:X};let G=y38(q,Z,Q);if(Q.type==="ObjectExpression"||Q.type==="BinaryExpression"||Q.type==="ArrayExpression"||Q.type==="ArrowFunctionExpression"||Q.type==="FunctionExpression"){let W=Q;if("start"in W&&"end"in W&&typeof W.start==="number"&&typeof W.end==="number")J=m0(Z,W.start,W.end)?.replace(K38," ");if(H=J,X=Q.type==="ArrowFunctionExpression"||Q.type==="FunctionExpression",Q.type==="BinaryExpression"){let R=Q;if(R.left&&typeof R.left==="object"&&"type"in R.left&&R.left.type==="Literal"&&"value"in R.left&&typeof R.left.value==="string")H="string"}if(Q.type==="ArrowFunctionExpression"||Q.type==="FunctionExpression")H=nb(Q),J=void 0}else if(Q.type==="UnaryExpression"){let W=Q;if("start"in W&&"end"in W&&typeof W.start==="number"&&typeof W.end==="number")J=m0(Z,W.start,W.end);if(W.argument){if(typeof W.argument==="object"&&"type"in W.argument&&W.argument.type==="UnaryExpression")H=v7(q,Z,W.argument).type;else if(typeof W.argument==="object"&&"value"in W.argument)H=typeof W.argument.value}}else if(Q.type==="NewExpression"){let W=Q;if("start"in W&&"end"in W&&typeof W.start==="number"&&typeof W.end==="number")J=m0(Z,W.start,W.end);if(W.callee&&typeof W.callee==="object"&&"type"in W.callee&&W.callee.type==="Identifier"){let R=W.callee.name;if(R==="Date")H="Date";else if(R==="Map")H="Map<any, any>";else if(R==="Set")H="Set<any>";else if(R==="WeakMap")H="WeakMap<object, any>";else if(R==="WeakSet")H="WeakSet<object>";else if(R==="Array")H="any[]";else if(R==="RegExp"||R==="Regexp")H="RegExp";else if(R==="Error")H="Error";else H=R}}else if(Q.type==="CallExpression"){let W=Q;if("start"in W&&"end"in W&&typeof W.start==="number"&&typeof W.end==="number")J=m0(Z,W.start,W.end)}else if(Q.type==="Identifier"){let W=Q;if(Y<5){let R=N38(Z,W.name);if(R){let B=v7(q,Z,R,Y+1),M=q.resolveLocalVarJSDoc(W.name);return{...B,resolvedType:M?.type??B.resolvedType,resolvedDescription:M?.description??B.resolvedDescription,resolvedParams:M?.params??B.resolvedParams,resolvedReturnType:M?.returnType??B.resolvedReturnType}}if(Z.funcDecls.has(W.name)){let B=q.resolveLocalVarJSDoc(W.name),M=Z.funcDecls.get(W.name);return{value:void 0,type:void 0,isFunction:!0,resolvedType:B?.type??k38(B,M),resolvedDescription:B?.description,resolvedParams:B?.params,resolvedReturnType:B?.returnType}}}if("start"in W&&"end"in W&&typeof W.start==="number"&&typeof W.end==="number")J=m0(Z,W.start,W.end)}else if(Q.type==="MemberExpression"){let W=Q;if("start"in W&&"end"in W&&typeof W.start==="number"&&typeof W.end==="number")J=m0(Z,W.start,W.end);if(q.isNumericConstant(Q))H="number"}else if(Q.type==="TemplateLiteral"){let W=Q;if("start"in W&&"end"in W&&typeof W.start==="number"&&typeof W.end==="number")J=m0(Z,W.start,W.end);H="string"}else if("raw"in Q&&typeof Q.raw==="string"){if(J=Q.raw,"value"in Q)H=Q.value==null?void 0:typeof Q.value}return{value:J,type:H,isFunction:X,defaultValue:G}}function N38(q,Z){for(let Q of q.vars)for(let Y of Q.declarations)if(Y.id&&typeof Y.id==="object"&&"type"in Y.id&&Y.id.type==="Identifier"&&"name"in Y.id&&Y.id.name===Z&&Y.init)return Y.init;return}function ob(q,Z){for(let Q of q.vars){if(Q.kind!=="const")continue;for(let Y of Q.declarations)if(Y.id&&typeof Y.id==="object"&&"type"in Y.id&&Y.id.type==="Identifier"&&"name"in Y.id&&Y.id.name===Z&&Y.init)return Y.init}return}function k38(q,Z){let Q=q?.returnType??"any",Y=q?.params;if(Y&&Y.length>0)return`(${Y.map((H)=>`${H.name}${H.optional?"?":""}: ${H.type}`).join(", ")}) => ${Q}`;if(q?.returnType)return`() => ${Q}`;if(Z)return nb(Z);return"(...args: any[]) => any"}function nb(q){return`(${S38(q)}) => ${u38(q)}`}function S38(q){let Z=q.params;if(!Array.isArray(Z)||Z.length===0)return"...args: any[]";let Q=[];for(let Y of Z)if(Y&&typeof Y==="object"&&"type"in Y&&Y.type==="Identifier"&&"name"in Y&&typeof Y.name==="string")Q.push(`${Y.name}: any`);else return"...args: any[]";return Q.join(", ")}function u38(q){if(q.async||q.generator)return"any";let Z=q.body,Q;if(Z&&typeof Z==="object"&&"type"in Z&&Z.type==="BlockStatement"){if(Q=b38(Z),Q.length===0)return"any"}else Q=[Z];let Y=null;for(let J of Q){let H=h38(J);if(!H)return"any";if(Y===null)Y=H;else if(Y!==H)return"any"}return Y??"any"}function b38(q){let Z=[];return Q7(q,{enter(Q){if(Q.type==="FunctionDeclaration"||Q.type==="FunctionExpression"||Q.type==="ArrowFunctionExpression"){this.skip();return}if(Q.type==="ReturnStatement")Z.push(Q.argument??null)}}),Z}function h38(q){if(!q||typeof q!=="object"||!("type"in q))return null;switch(q.type){case"Literal":{let Z=q.value;if(typeof Z==="string")return"string";if(typeof Z==="number")return"number";if(typeof Z==="boolean")return"boolean";return null}case"TemplateLiteral":return"string";case"CallExpression":{let Z=q.callee;if(Z&&typeof Z==="object"&&"type"in Z&&Z.type==="Identifier"){let Q=Z.name;if(Q==="String")return"string";if(Q==="Number")return"number";if(Q==="Boolean")return"boolean"}return null}default:return null}}function tb(q){if(l9(q,"$bindable"))return{init:q.arguments[0],bindable:!0};return{init:q,bindable:!1}}function y38(q,Z,Q){let Y=ab(Z,Q);if(!Y||!Q||typeof Q!=="object"||!("type"in Q))return;let J="expression";if(Q.type==="Literal"||Q.type==="UnaryExpression")J="literal";else if(Q.type==="TemplateLiteral")J=Q.expressions.length===0?"literal":"expression";else if(Q.type==="ArrayExpression")J="array";else if(Q.type==="ObjectExpression")J="object";else if(Q.type==="ArrowFunctionExpression"||Q.type==="FunctionExpression")J="function";let H={raw:Y,kind:J};if(J==="literal"||J==="array"||J==="object"){let X=HX(q,Q);if(X.ok)H.value=X.value}return H}function HX(q,Z){if(!Z||typeof Z!=="object"||!("type"in Z))return{ok:!1};if(Z.type==="Literal"){let Q=Z.value;return typeof Q==="bigint"?{ok:!1}:{ok:!0,value:Q}}if(Z.type==="UnaryExpression"){let Q=Z,Y=Q.argument;if(!Y||typeof Y!=="object"||!("type"in Y)||Y.type!=="Literal")return{ok:!1};let J=Y.value;if(typeof J==="number"){if(Q.operator==="-")return{ok:!0,value:-J};if(Q.operator==="+")return{ok:!0,value:J}}if(typeof J==="boolean"&&Q.operator==="!")return{ok:!0,value:!J};return{ok:!1}}if(Z.type==="TemplateLiteral"){let Q=Z;if(Q.expressions.length>0||Q.quasis.length!==1)return{ok:!1};return{ok:!0,value:Q.quasis[0].value.cooked??Q.quasis[0].value.raw}}if(Z.type==="ArrayExpression"){let Q=Z,Y=[];for(let J of Q.elements){if(!J)return{ok:!1};let H=HX(q,J);if(!H.ok)return{ok:!1};Y.push(H.value)}return{ok:!0,value:Y}}if(Z.type==="ObjectExpression"){let Q=Z,Y={};for(let J of Q.properties){if(J.type!=="Property"||J.computed)return{ok:!1};let H=q.getPropertyName(J.key);if(!H)return{ok:!1};let X=HX(q,J.value);if(!X.ok)return{ok:!1};Y[H]=X.value}return{ok:!0,value:Y}}return{ok:!1}}var _38=/[-_.:/\s]+/;function XX(q){return`${q.split(_38).map((Y)=>Y.charAt(0).toUpperCase()+Y.slice(1)).join("")}Context`}function g38(q,Z,Q,Y){if(!Q||typeof Q!=="object"||!("type"in Q))return null;if(Q.type==="ObjectExpression"){let J=[];if(!jZ(Q))return null;let H=Q;for(let X of H.properties){if(X.type!=="Property")continue;let G=Z.getPropertyName(X.key);if(!G)continue;let W="any",R;if(g9(X.value)){let B=X.value.name,M=Z.findVariableTypeAndDescription(B);if(M)W=M.type,R=M.description;else W6(q,"context-any-type",G,`Context "${Y}" property "${G}" has no type annotation; defaulted to "any".`,x0(q,X))}else if(X.value&&typeof X.value==="object"&&"type"in X.value&&(X.value.type==="ArrowFunctionExpression"||X.value.type==="FunctionExpression"))W=`(${X.value.params?.map((V)=>{if(g9(V))return`${V.name||"arg"}: any`;return"arg: any"}).join(", ")||""}) => any`;else if(K7(X.value))W=X.value.value==null?"null":typeof X.value.value;J.push({name:G,type:W,description:R,optional:!1})}return{key:Y,typeName:XX(Y),properties:J,description:void 0}}else if(g9(Q)){let J=Q.name,H=Z.findVariableTypeAndDescription(J);if(H)return{key:Y,typeName:XX(Y),properties:[{name:J,type:H.type,description:H.description,optional:!1}]};return W6(q,"context-any-type",J,`Context "${Y}" variable "${J}" has no type annotation; defaulted to "any".`,x0(q,Q)),{key:Y,typeName:XX(Y),properties:[{name:J,type:"any",description:void 0,optional:!1}]}}return null}function eb(q){let Z=q.callee;if(!Z||typeof Z!=="object"||!("type"in Z))return null;let Q=Z.type==="Identifier"&&Z.name==="Symbol",Y=Z.type==="MemberExpression"&&!Z.computed&&Z.object.type==="Identifier"&&Z.object.name==="Symbol"&&Z.property.type==="Identifier"&&Z.property.name==="for";if(!Q&&!Y)return null;let J=q.arguments[0];if(!J||typeof J!=="object"||!("type"in J))return"";if(J.type==="Literal"&&typeof J.value==="string")return J.value;if(J.type==="TemplateLiteral"&&J.quasis?.length===1)return J.quasis[0].value.cooked??"";return""}function qh(q,Z,Q=0){if(!Z||typeof Z!=="object"||!("type"in Z))return null;let Y=Z;if(Y.type==="Literal")return typeof Y.value==="string"?Y.value:Y.value==null?null:String(Y.value);if(Y.type==="TemplateLiteral"){if(Y.quasis?.length===1){let J=Y.quasis[0].value.cooked;return J==null?null:J}return null}if(Y.type==="CallExpression"||Y.type==="NewExpression")return eb(Y);if(Y.type==="Identifier"){if(Q>=5)return null;let J=ob(q,Y.name);if(J&&typeof J==="object"&&"type"in J){let H=J;if((H.type==="CallExpression"||H.type==="NewExpression")&&eb(H)==="")return Y.name;return qh(q,H,Q+1)}return null}return null}function Zh(q,Z,Q,Y){if(!Q||typeof Q!=="object"||!("type"in Q)||Q.type!=="CallExpression")return;let J=Q,H=J.arguments[0];if(!H)return;let X=qh(q,H);if(!X){let R=q.componentFilePath?` in ${q.componentFilePath}`:"";console.warn(`Warning: Could not resolve setContext key${R}. Use a string literal, const-bound string, or Symbol(). Skipping context type generation.`);return}let G=J.arguments[1];if(!G)return;let W=g38(q,Z,G,X);if(W&&!q.contexts.has(X))q.contexts.set(X,W)}function l38(q){return q===void 0||q===""?void 0:q}function GX(q){return typeof q==="string"?JSON.stringify(q):String(q)}function wq(q,{name:Z,detail:Q,has_argument:Y,description:J,deprecated:H,tags:X,source:G}){if(Z===void 0)return;let W=!Y&&!Q?"null":l38(Q),R=J;if(q.events.has(Z)){let B=q.events.get(Z),M=B.tags??X;q.events.set(Z,{...B,detail:B.detail===void 0?W:B.detail,description:B.description||R,deprecated:B.deprecated??H,tags:M,source:G||B.source})}else q.events.set(Z,{type:"dispatched",name:Z,detail:W,description:R,deprecated:H,tags:X,source:G})}function Qh(q,Z){let Q=Z.arguments[0],Y=QX(Q,"CustomEvent");if(!Y&&!QX(Q,"Event"))return;let J=Q.arguments[0],H=K7(J)?J.value:void 0;if(H==null)return;let X=Y?Q.arguments[1]:void 0,G=!1,W;if(jZ(X)){let R=X.properties.find((B)=>B.type==="Property"&&g9(B.key)&&B.key.name==="detail");if(R?.type==="Property")G=!0,W=K7(R.value)?R.value.value:void 0}return wq(q,{name:String(H),detail:W==null?"":GX(W),has_argument:G,source:x0(q,Z)}),String(H)}function VX(q,Z,Q=!1){if(q.length===0)return"null";let Y=q.map(({name:J,type:H,description:X,optional:G,default:W})=>{let R=G?"?":"",B=X||"";if(W&&B)B=`${B} @default ${W}`;else if(W)B=`@default ${W}`;if(B){if(Q)return`/** ${B} */
|
|
250
|
-
${J}${R}: ${H};`;return`/** ${B} */ ${J}${R}: ${H};`}return`${J}${R}: ${H};`}).join(Q?`
|
|
251
|
-
`:" ");return Q?`{
|
|
252
|
-
${Y}
|
|
253
|
-
}`:`{ ${Y} }`}function WX(q,Z){if(Z===void 0)return;return q.runesPropsDeclarationMetadataByDeclaratorStart.get(Z)}function Yh(q,Z,Q){return WX(q,Z)?.props.get(Q)}function Jh(q){if(!q||typeof q!=="object"||!("type"in q))return;if(q.type==="Identifier"&&"name"in q&&typeof q.name==="string")return q.name;if(q.type==="TSQualifiedName"&&"right"in q&&q.right&&typeof q.right==="object"&&"name"in q.right&&typeof q.right.name==="string")return q.right.name;return}function Hh(q){if(!q||typeof q!=="object"||!("type"in q))return;if(q.type==="Identifier"&&"name"in q&&typeof q.name==="string")return q.name;if(q.type==="TSQualifiedName"&&"left"in q&&q.left&&typeof q.left==="object")return Hh(q.left);return}function $X(q,Z){let Q=Z?.start,Y=Z?.end;if(Q===void 0||Y===void 0)return;return m0(q,Q+1,Y)?.trim()}function o1(q,Z,Q,Y,J=new Set){if(!Z?.type)return;switch(Z.type){case"TSInterfaceDeclaration":o1(q,{type:"TSTypeLiteral",members:Z.body?.body},Q,Y,J);return;case"TSTypeAliasDeclaration":case"TSParenthesizedType":case"TSTypeAnnotation":o1(q,Z.typeAnnotation,Q,Y,J);return;case"TSIntersectionType":case"TSUnionType":for(let H of Z.types??[])o1(q,H,Q,Y,J);return;case"TSTypeLiteral":for(let H of Z.members??[]){if(H?.type!=="TSPropertySignature")continue;o1(q,H.typeAnnotation?.typeAnnotation,Q,Y,J)}return;case"TSTypeReference":{let H=Hh(Z.typeName);if(H){if(q.typeImportBindingsByLocalName.has(H))Q.add(H);let X=q.localTypeDeclarationsByName.get(H);if(X&&!J.has(H))Y.add(H),J.add(H),o1(q,X.node,Q,Y,J),J.delete(H)}if("typeParameters"in Z&&Z.typeParameters&&typeof Z.typeParameters==="object"){let X=Z.typeParameters;for(let G of X.params??[])o1(q,G,Q,Y,J)}return}case"TSArrayType":case"TSRestType":case"TSOptionalType":case"TSIndexedAccessType":case"TSTypeOperator":case"TSExpressionWithTypeArguments":case"TSTupleType":case"TSConditionalType":case"TSInferType":case"TSMappedType":case"TSFunctionType":case"TSConstructorType":case"TSTypeQuery":case"TSImportType":case"TSLiteralType":case"TSTypePredicate":case"TSNamedTupleMember":break;default:break}for(let H of Object.values(Z)){if(!H||typeof H!=="object")continue;if(Array.isArray(H)){for(let X of H){if(!X||typeof X!=="object"||!("type"in X))continue;o1(q,X,Q,Y,J)}continue}if("type"in H)o1(q,H,Q,Y,J)}}function x38(q,Z){let Q=new Map;for(let Y of Array.from(Z).sort()){let J=q.typeImportBindingsByLocalName.get(Y);if(!J)continue;let H=Q.get(J.source)??{default:[],named:[],namespace:[]};if(J.specifierType==="default")H.default.push(J.localName);else if(J.specifierType==="namespace")H.namespace.push(J.localName);else H.named.push({imported:J.importedName,local:J.localName});Q.set(J.source,H)}return Array.from(Q.entries()).sort(([Y],[J])=>Y.localeCompare(J)).map(([Y,J])=>{if(J.namespace.length>0)return J.namespace.map((W)=>`import type * as ${W} from "${Y}";`).join(`
|
|
254
|
-
`);let H=J.named.map(({imported:W,local:R})=>{if(!W||W===R)return R;return`${W} as ${R}`}),X=J.default[0],G=H.length>0?`{ ${H.join(", ")} }`:"";if(X&&G)return`import type ${X}, ${G} from "${Y}";`;if(X)return`import type ${X} from "${Y}";`;return`import type ${G} from "${Y}";`})}function Xh(q){if(q.typedRunesPropsDeclarations.length!==1)return;let[Z]=q.typedRunesPropsDeclarations;if(!Z.canonicalType)return;let Q=Array.from(Z.referencedLocalTypes).map((Y)=>q.localTypeDeclarationsByName.get(Y)).filter((Y)=>Y!==void 0).sort((Y,J)=>Y.start-J.start).map((Y)=>Y.code);return{canonicalPropsType:Z.canonicalType,canonicalPropNames:Array.from(Z.props.keys()).sort(),localTypeDeclarations:Q,typeImportStatements:x38(q,Z.referencedImportedTypes)}}var m38=/^[A-Za-z_$][\w$]*/,p38=/[A-Za-z_$][\w$]*/g;function y5(q){let Z=[],Q=0,Y=0;for(let J=0;J<q.length;J++){let H=q[J];if(H==="<"||H==="("||H==="["||H==="{")Q++;else if(H===">"||H===")"||H==="]"||H==="}")Q--;else if(H===","&&Q===0)Z.push(q.slice(Y,J)),Y=J+1}return Z.push(q.slice(Y)),Z}function Gh(q){let Z=y5(q).map((Y)=>Y.trim()).filter((Y)=>Y.length>0);if(Z.length===0)return null;return[Z.map((Y)=>Y.match(m38)?.[0]??Y).join(", "),Z.join(", ")]}function Vh(q,Z,Q){let Y=q.scriptGenericsAttribute?.value;if(!Y)return;for(let[J]of Y.matchAll(p38)){if(q.typeImportBindingsByLocalName.has(J))Z.add(J);if(Q.has(J))continue;let H=q.localTypeDeclarationsByName.get(J);if(!H)continue;Q.add(J),o1(q,H.node,Z,Q)}}var c38=null;function r38(q,Z,Q){let Y={value:void 0,replace:!1};if(!Q||typeof Q!=="object"||!("type"in Q))return Y;if(Q.type==="Identifier")Y.value=Q.name,Y.replace=!0;else if(Q.type==="Literal")Y.value=String(Q.value);else if(Q.type==="MemberExpression")Y.value=IZ(q,Z,Q);else if((Q.type==="ObjectExpression"||Q.type==="TemplateLiteral")&&"start"in Q&&"end"in Q&&typeof Q.start==="number"&&typeof Q.end==="number")Y.value=m0(q,Q.start,Q.end);return Y}function $h(q,Z,Q){let Y={};for(let J of Q.properties){if(J.type!=="Property"||J.computed)continue;let H=Z.getPropertyName(J.key);if(!H)continue;Y[H]=r38(q,Z,J.value)}return Y}function i38(q,Z){if(!Z||typeof Z!=="object"||!("type"in Z))return null;if(Z.type==="Identifier"){let H=Z,X=q.propLocalToPublicName.get(H.name);if(!X)return null;return{publicName:X,trackingName:H.name}}if(Z.type!=="MemberExpression")return null;let Q=Z,Y=Q.object&&typeof Q.object==="object"&&"type"in Q.object&&Q.object.type==="Identifier"?Q.object.name:void 0;if(!Y||!q.wholePropsLocals.has(Y))return null;let J;if(!Q.computed&&Q.property&&typeof Q.property==="object"&&"type"in Q.property){if(Q.property.type==="Identifier")J=Q.property.name;else if(Q.property.type==="Literal"&&Q.property.value!=null)J=String(Q.property.value)}else if(Q.computed&&Q.property&&typeof Q.property==="object"&&"type"in Q.property&&Q.property.type==="Literal"&&"value"in Q.property&&Q.property.value!=null)J=String(Q.property.value);if(!J)return null;return{publicName:J,trackingName:J}}function Uh(q,Z){let Q=Z;if(Q&&typeof Q==="object"&&"type"in Q&&Q.type==="ChainExpression")Q=Q.expression;if(!Q||typeof Q!=="object"||!("type"in Q)||Q.type!=="CallExpression")return null;let Y=Q;if(!Y.callee||typeof Y.callee!=="object"||!("type"in Y.callee))return null;let J=i38(q,Y.callee);if(!J)return null;return{...J,arguments:Y.arguments}}function Wh(q){return q===void 0||q===""?void 0:q}function Aq(q,{slot_name:Z,slot_props:Q,slot_fallback:Y,slot_description:J,slot_deprecated:H,slot_tags:X,source:G}){let W=Z===void 0||Z==="",R=W?c38:Z??"",B=Wh(Y),M=Wh(Q),V=J?.trim()||void 0;if(q.slots.has(R)){let $=q.slots.get(R);if($)q.slots.set(R,{...$,default:$.default??W,fallback:B,slot_props:$.slot_props===void 0?M:$.slot_props,description:$.description||V,deprecated:$.deprecated??H,tags:$.tags||X,source:G||$.source})}else q.slots.set(R,{name:R,default:W,fallback:B,slot_props:Q,description:V,deprecated:H,tags:X,source:G})}var d38=/\s*=\s*/;function Rh(q){let Z=q.indexOf("<");if(Z===-1||!q.endsWith(">"))return q;let Q=q.slice(0,Z),Y=q.slice(Z+1,-1),J=y5(Y).map((H)=>H.trim().replace(d38," = ")).join(", ");return`${Q}<${J}>`}var s38=/^\s*$/,a38=/;$/,o38=/^-\s*/;function N7(q){if(q===void 0)return;let Z=q.replace(o38,"").trim();return Z===""?"":Z}function jq(q){if(!q||q.length===0)return;return q[0].tokens.description}var zh=new Set(["since","example"]);function Bh(q){if(!q||q.length===0)return"";let Z=[];for(let Q of q){let Y=Q.tokens;if((Y.end??"").trim()==="*/")break;if(Y.tag){let J=`${Y.name??""}${Y.postName??""}${Y.description??""}`.trimEnd();if(J)Z.push(J)}else Z.push(`${Y.postDelimiter??""}${Y.description??""}`)}return Z.join(`
|
|
255
|
-
`)}function n38(q){let Z=q.trim();return Z===""?!0:Z}function Mh(q,Z){return n38(`${q??""}${Z?` ${Z}`:""}`)}function t38(q){let Z=q.trim().replace(a38,"").trimEnd();if(!Z.startsWith("{")||!Z.endsWith("}"))return!1;let Q=0,Y=null;for(let J=0;J<Z.length;J++){let H=Z[J];if(Y!==null){if(H==="\\"){J++;continue}if(H===Y)Y=null;continue}if(H==='"'||H==="'"||H==="`"){Y=H;continue}if(H==="{"||H==="["||H==="(")Q++;else if(H==="}"||H==="]"||H===")"){if(Q--,Q===0&&J<Z.length-1)return!1}}return Q===0}function UX(q){return q===void 0||q===""?void 0:q}function e38(q){let Z=q;if(!Z.startsWith("/*"))Z=`/*${Z}`;if(!Z.endsWith("*/"))Z+="*/";return Z}function CZ(q){let Z=q[0]?.tags??[],Q=new Set(["type","param","returns","return","extends","extendProps","restProps","slot","snippet","event","typedef","callback","bindable","deprecated"]),Y,J=[],H,X,G,W=[],R=[];for(let B of Z)if(B.tag==="type")Y=B;else if(B.tag==="param")J.push(B);else if(B.tag==="returns"||B.tag==="return")H=B;else if(B.tag==="deprecated")G??=Mh(B.name,B.description);else if(zh.has(B.tag))R.push(B);else if(B.tag==="bindable"){if(B.type)continue;let M=`${B.name}${B.description?` ${B.description}`:""}`.trim();if(M==="readonly"||M==="writable")X??=M}else if(!Q.has(B.tag))W.push(B);return{type:Y,param:J,returns:H,binding:X,deprecated:G,additional:W,passthrough:R,description:q[0]?.description}}function qZ8(q){if(!q||q.length===0)return;let Z=q[q.length-1];return Z&&typeof Z==="object"&&"value"in Z?Z:void 0}function ZZ8(q,Z,Q){if(!Z||Z.length===0||Q===void 0||!q.source)return;for(let Y=Z.length-1;Y>=0;Y--){let J=Z[Y];if(!J||typeof J!=="object"||!("value"in J)||!("end"in J))continue;if(typeof J.end!=="number")continue;let H=q.source.slice(J.end,Q);if(s38.test(H))return J}return}function i6(q,Z,Q){if(!Q?.leadingComments)return;let Y=ZZ8(q,Q.leadingComments,Q.start);if(!Y)return;return QZ8(Z,[Y])}function Ph(q,Z,Q){if(!Q?.leadingComments)return;return i6(q,Z,Q)}function QZ8(q,Z){if(!Z)return;let Q=qZ8(Z);if(!Q)return;let Y=s7(e38(Q.value),{spacing:"preserve"}),{type:J,param:H,returns:X,binding:G,deprecated:W,additional:R,passthrough:B,description:M}=CZ(Y),V,$,O,w;if(J)V=q.aliasType(J.type);if(H.length>0)$=H.filter((E)=>!E.name.includes(".")).map((E)=>({name:E.name,type:q.aliasType(E.type),description:N7(E.description),optional:E.optional||!1}));if(X)O=q.aliasType(X.type);let I=UX(M?.trim());if(I||R.length>0){let E=[];if(I)E.push(I);for(let D of R){let f=`@${D.tag}${D.name?` ${D.name}`:""}${D.description?` ${D.description}`:""}`;E.push(f)}w=E.join(`
|
|
256
|
-
`)}let C=B.length>0?B.map((E)=>({name:E.tag,body:Bh(E.source)})):void 0;return{type:V,params:$,returnType:O,description:w,binding:G,deprecated:W,tags:C}}function Lh(q,Z){if(!q.source)return;let Q=0;for(let{tags:Y,description:J,source:H}of s7(q.source,{spacing:"preserve"})){let X=H.map((R8)=>R8.source).join(`
|
|
257
|
-
`),G=q.source.indexOf(X,Q),W=G===-1?void 0:G;if(G!==-1)Q=G+X.length;let R,B,M,V,$,O,w=[],I=[],C,E,D,f=[],v,_,b=[],z,P=!1,L=!0,A=[],T,h=new Map,N=new Set,y=new Set;for(let R8 of Y)if(R8.source&&R8.source.length>0)N.add(R8.source[0].number);for(let R8 of H)if(!R8.tokens.tag&&R8.tokens.description&&R8.tokens.description.trim()!=="}")h.set(R8.number,R8.tokens.description);let r=(R8)=>{if(!R8||R8.length===0)return;let a8=R8[0].number,B8=[],$8=[],c8=!1;for(let p8=a8-1;p8>=1;p8--){if(N.has(p8))break;let q8=h.get(p8);if(q8)B8.unshift(q8),$8.unshift(p8),c8=!0;else if(c8){let f8=H.find((E8)=>E8.number===p8);if(!(!f8||!f8.tokens.tag&&(!f8.tokens.description||f8.tokens.description.trim()==="")))break}}if(B8.length===0)return;for(let p8 of $8)y.add(p8);return B8.join(`
|
|
258
|
-
`).trim()},m=()=>{if(R!==void 0){let R8=B&&B!=="object"&&B!=="Object"?B:void 0,a8;if(R8)a8=R8;else if(I.length>0)a8=VX(I,R,!0);else a8=B||"";if(O!==void 0){let B8;for(let p8 of Y){let q8=p8.source?.[0]?.number;if(typeof q8!=="number")continue;if(q8<=O)continue;if(p8.tag==="property"||p8.tag==="type")continue;B8=q8;break}let $8=[],c8=Array.from(h.keys()).sort((p8,q8)=>p8-q8);for(let p8 of c8){if(p8<=O)continue;if(B8!==void 0&&p8>=B8)continue;if(y.has(p8))continue;let f8=h.get(p8)?.trim();if(f8)$8.push(f8),y.add(p8)}if($8.length>0){let p8=$8.join(`
|
|
259
|
-
`);M=M?`${M}
|
|
260
|
-
${p8}`:p8}}wq(q,{name:R,detail:a8,has_argument:!1,description:M,deprecated:V,tags:w.length>0?w:void 0,source:$}),q.eventDescriptions.set(R,M),q.jsDocEventNames.add(R),q.jsDocEventSources.set(R,$),I.length=0,R=void 0,B=void 0,M=void 0,V=void 0,$=void 0,O=void 0,w=[]}},Y8=()=>{if(C!==void 0){let R8,a8;if(f.length>0)R8=VX(f,void 0,!0),a8=`type ${C} = ${R8};`;else if(E)R8=E,a8=t38(R8)?`interface ${C} ${R8}`:`type ${C} = ${R8};`;else R8="{}",a8=`type ${C} = ${R8};`;q.typedefs.set(C,{type:R8,name:C,description:UX(D),ts:a8}),f.length=0,C=void 0,E=void 0,D=void 0}},N8=()=>{if(v!==void 0){let B8=`(${b.map(({name:c8,type:p8,optional:q8})=>{return`${c8}${q8?"?":""}: ${p8}`}).join(", ")}) => ${z||"void"}`,$8=`type ${v} = ${B8};`;q.typedefs.set(v,{type:B8,name:v,description:UX(_),ts:$8}),b.length=0,z=void 0,v=void 0,_=void 0}},w8=Y.some((R8)=>R8.tag==="slot"||R8.tag==="snippet"),g8=Y.some((R8)=>R8.tag==="extends"||R8.tag==="extendProps");for(let{tag:R8,type:a8,name:B8,description:$8,optional:c8,default:p8,source:q8}of Y){let f8=Z.aliasType(a8),H8=r(q8);switch(R8){case"extends":case"extendProps":if(q.extends={interface:B8,import:f8},L)L=!1;break;case"restProps":{let E8=B8?$8?`${B8} ${$8}`:B8:$8,H0=N7(E8)||H8;if(!H0&&L&&!P&&J)H0=J,P=!0;if(q.rest_props={type:"Element",name:f8,description:H0||void 0},L)L=!1;break}case"slot":case"snippet":{let Q0=N7(jq(q8));if(!Q0&&L&&!P&&J)Q0=J,P=!0;if(!Q0&&A.length===0)Q0=H8;if(L)L=!1;Aq(q,{slot_name:B8,slot_props:f8,slot_description:Q0||void 0,slot_deprecated:T,slot_tags:A.length>0?[...A]:void 0,source:JX(q,H,q8,W)}),A.length=0,T=void 0;break}case"event":{if(m(),R=B8,B=f8,O=q8&&q8.length>0?q8[0].number:void 0,M=N7(jq(q8))||H8,!M&&L&&!P&&J)M=J,P=!0;if($=JX(q,H,q8,W),L)L=!1;break}case"type":if(R!==void 0)B=f8;break;case"param":if(v!==void 0)b.push({name:B8,type:f8,optional:c8||!1});break;case"returns":case"return":if(v!==void 0)z=f8;break;case"property":{let E8={name:B8,type:f8,description:N7(jq(q8)),optional:c8||!1,default:p8};if(R!==void 0)I.push(E8);else if(C!==void 0)f.push(E8);break}case"typedef":{if(Y8(),C=Rh(B8),E=f8,D=N7(jq(q8))||H8,!D&&L&&!P&&J)D=J,P=!0;if(L)L=!1;break}case"callback":{if(N8(),v=Rh(B8),_=N7(jq(q8))||H8,!_&&L&&!P&&J)_=J,P=!0;if(L)L=!1;break}case"generics":if(q.generics=[B8,f8],L)L=!1;break;case"template":{let E8=B8;if(f8)E8=`${B8} extends ${f8}`;if(p8)E8+=` = ${p8}`;if(w8&&!g8){q.deferredSlotBlockGenerics.push({name:B8,constraint:E8});break}if(Z.accumulateGeneric(B8,E8),L)L=!1;break}case"deprecated":{let E8=Mh(B8,$8);if(R===void 0)T??=E8;else V??=E8;break}case"enum":case"class":case"implements":case"this":case"namespace":case"memberof":case"module":case"file":case"overview":break;default:{let E8={name:R8,body:Bh(q8)};if(R!==void 0&&zh.has(R8))w.push(E8);else A.push(E8)}break}}m(),Y8(),N8()}}function YZ8(q){if(!q||typeof q!=="object"||!("type"in q))return;let Z=String(q.type);if(Z!=="InlineComponent"&&Z!=="Element")return;let Q="name"in q&&typeof q.name==="string"?q.name:void 0;if(!Q)return;let Y=Z==="InlineComponent"?{type:"InlineComponent",name:Q}:{type:"Element",name:Q};if(Z==="Element"&&Q==="svelte:element"&&"tag"in q&&typeof q.tag==="string")Y.thisValue=q.tag;return Y}function Oh(q,Z){if(q.rest_props!==void 0)return;let Q=YZ8(Z);if(Q)q.rest_props=Q}function Iq(q,Z,Q,Y,J=new Set){let H=new Map;if(!Q?.type)return H;let X=(G)=>{for(let W of G){if(W?.type!=="TSPropertySignature"||W.computed)continue;if(!W.key)continue;let R=q.getPropertyName(W.key);if(!R)continue;let B=W.typeAnnotation?.start,M=W.typeAnnotation?.end;if(B===void 0||M===void 0)continue;let V=m0(Z,B+1,M)?.trim();if(!V)continue;H.set(R,{type:V,optional:W.optional===!0,source:x0(Z,W)})}};switch(Q.type){case"TSTypeLiteral":X(Q.members??[]);break;case"TSInterfaceDeclaration":X(Q.body?.body??[]);break;case"TSTypeAliasDeclaration":{let G=Iq(q,Z,Q.typeAnnotation,Y,J);for(let[W,R]of G)H.set(W,R);break}case"TSTypeReference":{let G=Jh(Q.typeName);if(!G||J.has(G))break;let W=Y.get(G);if(!W)break;J.add(G);let R=Iq(q,Z,W,Y,J);J.delete(G);for(let[B,M]of R)H.set(B,M);break}case"TSIntersectionType":for(let G of Q.types??[]){let W=Iq(q,Z,G,Y,J);for(let[R,B]of W)H.set(R,B)}break;case"TSParenthesizedType":{let G=Iq(q,Z,Q.typeAnnotation,Y,J);for(let[W,R]of G)H.set(W,R);break}}return H}function wh(q,Z){if(Z.runesPropsDeclarationMetadataByDeclaratorStart.clear(),Z.explicitPropTypesByName.clear(),Z.typeImportBindingsByLocalName.clear(),Z.localTypeDeclarationsByName.clear(),Z.typedRunesPropsDeclarations.length=0,!Z.source)return;let Q=r6(Z.source,{modern:!0});Z.scriptLanguage=q.resolveScriptLanguage(Q),Z.customElementTag=Q.options?.customElement?.tag,Z.scriptGenericsAttribute=q.resolveScriptGenericsAttribute(Q);let Y=Q.instance?.content?.body??[];for(let J of Y){if(!J?.type)continue;if(J.type==="ImportDeclaration"&&J.source?.value)for(let H of J.specifiers??[]){let X=H.local?.name;if(!X)continue;if(!(J.importKind==="type"||H.importKind==="type"))continue;let W,R;if(H.type==="ImportSpecifier")W="named",R=H.imported?.type==="Identifier"?H.imported.name:typeof H.imported?.value==="string"?H.imported.value:void 0;else if(H.type==="ImportDefaultSpecifier")W="default";else if(H.type==="ImportNamespaceSpecifier")W="namespace";if(!W)continue;Z.typeImportBindingsByLocalName.set(X,{importedName:R,localName:X,source:String(J.source.value),specifierType:W})}if((J.type==="TSInterfaceDeclaration"||J.type==="TSTypeAliasDeclaration")&&J.id?.name&&J.start!==void 0&&J.end!==void 0)Z.localTypeDeclarationsByName.set(J.id.name,{code:m0(Z,J.start,J.end)?.trim()??"",node:J,start:J.start});if(J.type==="ExportNamedDeclaration"&&J.declaration?.type==="VariableDeclaration")for(let H of J.declaration.declarations??[]){if(H.id?.type!=="Identifier"||!H.id.name)continue;let X=$X(Z,H.id.typeAnnotation);if(X)Z.explicitPropTypesByName.set(H.id.name,X)}}for(let J of Y){if(!J||typeof J!=="object"||!("declarations"in J))continue;for(let H of J.declarations??[]){if(!l9(H.init,"$props"))continue;let X=$X(Z,H.id?.typeAnnotation),G=Iq(q,Z,H.id?.typeAnnotation?.typeAnnotation,new Map(Array.from(Z.localTypeDeclarationsByName.entries(),([B,M])=>[B,M.node]))),W=new Set,R=new Set;if(o1(Z,H.id?.typeAnnotation?.typeAnnotation,W,R),Vh(Z,W,R),H.start!==void 0){let B={canonicalType:X,props:G,referencedImportedTypes:W,referencedLocalTypes:R};if(Z.runesPropsDeclarationMetadataByDeclaratorStart.set(H.start,B),X)Z.typedRunesPropsDeclarations.push(B)}}}}function Ah(q,Z,Q){for(let Y of Q.declarations){if(!l9(Y.init,"$props"))continue;if(Y.id.type==="Identifier"){Z.wholePropsLocals.add(Y.id.name),Z.restPropLocals.add(Y.id.name);let X=WX(Z,Y.start);if(X)for(let[G,W]of X.props)Oq(q,Z,G,{name:G,kind:"let",type:W.type,typeSource:"typescript",isFunction:!1,isFunctionDeclaration:!1,isRequired:!W.optional,constant:!1,reactive:!1,source:W.source});continue}if(Y.id.type!=="ObjectPattern")continue;let J=i6(Z,q,Q),H=Y.id.properties.filter((X)=>{if(X.type!=="Property"||X.computed)return!1;if(!q.getPropertyName(X.key))return!1;if(X.value.type==="Identifier")return!0;return X.value.type==="AssignmentPattern"&&X.value.left.type==="Identifier"}).length;for(let X of Y.id.properties){if(X.type==="RestElement"){if(X.argument.type==="Identifier")Z.restPropLocals.add(X.argument.name);continue}let G=q.getPropertyName(X.key);if(!G)continue;let W,R;if(X.value.type==="Identifier")W=X.value.name;else{let b=X.value;W=b.left.name,R=b.right}if(!W)continue;if(q.trackPropLocalName(G,W),G==="children")Z.snippetPropLocals.add(W);let B=Ph(Z,q,X)??(H===1?J:void 0),M=Yh(Z,Y.start,G),{init:V,bindable:$}=tb(R),O=V==null?{isFunction:!1}:v7(q,Z,V),{value:w,type:I,isFunction:C,defaultValue:E}=O,D=M?.type===void 0&&B?.type===void 0?O.resolvedType:void 0,f=!!B?.params?.length||B?.returnType!==void 0||B?.type?.includes("=>")||!!D?.includes("=>"),v=M?.type??B?.type??D??I,_=q.resolveTypeSource({hasTypeScriptType:M?.type!==void 0,hasJSDocType:B?.type!==void 0||B?.params!==void 0||B?.returnType!==void 0||D!==void 0,inferredType:I,finalType:v});if($)Z.reactive_vars.add(G);Oq(q,Z,G,{name:G,...W===G?{}:{localName:W},kind:"let",description:B?.description??O.resolvedDescription,binding:B?.binding,deprecated:B?.deprecated,tags:B?.tags,...$?{bindable:!0}:{},type:v,typeSource:_,value:w,defaultValue:E,params:B?.params??O.resolvedParams,returnType:B?.returnType??O.resolvedReturnType,isFunction:Boolean(C||f),isFunctionDeclaration:!1,isRequired:V==null&&M?.optional!==!0,constant:!1,reactive:$,source:x0(Z,X)})}}}function jh(q,Z){if(q.syntaxMode!=="runes")return;for(let[Q,Y]of Array.from(q.events.entries())){if(Y.type!=="dispatched")continue;if(Z.has(Q)||q.forwardedEvents.has(Q))continue;let J=`on${Q}`,H=q.props.get(J);if(!H)continue;let X=H.type!==void 0||H.params!==void 0||H.returnType!==void 0,G=Y.detail===void 0||Y.detail==="undefined"||Y.detail==="null"?"() => void":`(detail: ${Y.detail}) => void`;q.props.set(J,{...H,description:H.description??Y.description,type:X?H.type:G,typeSource:X?H.typeSource:"inferred",isFunction:!0}),q.events.delete(Q)}}function V1(q,Z,Q){if(!Z||q.has(Z))return;q.set(Z,Q)}function EZ(q,Z){for(let Q=q.activeScopes.length-1;Q>=0;Q-=1){let Y=q.activeScopes[Q]?.get(Z);if(!Y)continue;return Y.kind==="prop"?Y.publicPropName:void 0}return}function n1(q,Z=new Set){if(!q||typeof q!=="object"||!("type"in q))return Z;switch(q.type){case"Identifier":Z.add(q.name);break;case"AssignmentPattern":n1(q.left,Z);break;case"ArrayPattern":for(let Q of q.elements)n1(Q??void 0,Z);break;case"ObjectPattern":for(let Q of q.properties)if(Q.type==="Property")n1(Q.value,Z);else if(Q.type==="RestElement")n1(Q.argument,Z);break;case"RestElement":n1(q.argument,Z);break}return Z}function zX(q,Z){let Q=n1(Z);if(!Q)return;for(let Y of Q){let J=EZ(q,Y);if(J)q.reactive_vars.add(J)}}function JZ8(q){if(!q||typeof q!=="object"||!("type"in q))return!1;switch(String(q.type)){case"BlockStatement":case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"CatchClause":case"EachBlock":case"ThenBlock":case"CatchBlock":return!0;default:return!1}}function Ih(q){if(!q||typeof q!=="object"||!("type"in q))return!1;let Z=String(q.type);return Z==="FunctionDeclaration"||Z==="FunctionExpression"||Z==="ArrowFunctionExpression"}function HZ8(q,Z){let Q=q.scopeDeclarations.get(Z);if(!Q)Q=new Map,q.scopeDeclarations.set(Z,Q);return Q}function XZ8(q,Z,Q){let Y=[];if(Q.id.type==="Identifier")return Y.push({kind:"local",name:Q.id.name}),Y;if(Q.id.type!=="ObjectPattern")return Y;for(let J of Q.id.properties){if(J.type==="RestElement"){if(J.argument.type==="Identifier")Y.push({kind:"local",name:J.argument.name});continue}if(J.computed)continue;let H=q.getPropertyName(J.key);if(!H)continue;let X;if(J.value.type==="Identifier")X=J.value.name;else if(J.value.type==="AssignmentPattern"&&J.value.left.type==="Identifier")X=J.value.left.name;if(!X)continue;Y.push({kind:"prop",name:X,publicPropName:H})}return Y}function RX(q,Z,Q,Y,J){if(!cb(Z))return;let H=J?.allowRunesProps??!1,X=J?.forceProp??!1,G=Z;for(let W of G.declarations){if(H&&l9(W.init,"$props")){for(let M of XZ8(q,G,W))V1(M.kind==="prop"?Q:Y,M.name,M.kind==="prop"?{kind:"prop",publicPropName:M.publicPropName}:{kind:"local"});continue}let R=G.kind==="var"?Y:Q,B=X?"prop":"local";for(let M of n1(W.id))V1(R,M,B==="prop"?{kind:"prop",publicPropName:M}:{kind:"local"})}}function GZ8(q,Z){if("id"in q&&q.id&&typeof q.id==="object"&&"name"in q.id&&typeof q.id.name==="string")V1(Z,q.id.name,{kind:"local"});for(let Q of q.params)for(let Y of n1(Q))V1(Z,Y,{kind:"local"})}function VZ8(q,Z,Q,Y){if(!Array.isArray(Z))return;for(let J of Z){if(!J||typeof J!=="object"||!("type"in J))continue;switch(J.type){case"VariableDeclaration":RX(q,J,Q,Y);break;case"FunctionDeclaration":if(J.id?.name)V1(Q,J.id.name,{kind:"local"});break;case"ClassDeclaration":if(J.id?.name)V1(Q,J.id.name,{kind:"local"});break}}}function WZ8(q,Z,Q){if(!Q||typeof Q!=="object")return;let Y="content"in Q&&Q.content&&typeof Q.content==="object"&&"body"in Q.content&&Array.isArray(Q.content.body)?Q.content:("body"in Q)&&Array.isArray(Q.body)?Q:void 0;if(!Y||!("body"in Y)||!Array.isArray(Y.body))return;for(let J of Y.body){if(!J||typeof J!=="object"||!("type"in J))continue;switch(J.type){case"ImportDeclaration":for(let H of J.specifiers??[])if(H.local?.name)V1(Z.componentScope,H.local.name,{kind:"local"});break;case"VariableDeclaration":RX(q,J,Z.componentScope,Z.componentScope,{allowRunesProps:!0});break;case"FunctionDeclaration":if(J.id?.name)V1(Z.componentScope,J.id.name,{kind:"local"});break;case"ClassDeclaration":if(J.id?.name)V1(Z.componentScope,J.id.name,{kind:"local"});break;case"ExportNamedDeclaration":if(!J.declaration||typeof J.declaration!=="object"||!("type"in J.declaration))break;if(J.declaration.type==="VariableDeclaration")RX(q,J.declaration,Z.componentScope,Z.componentScope,{forceProp:!0});else if(J.declaration.type==="FunctionDeclaration"&&J.declaration.id?.name)V1(Z.componentScope,J.declaration.id.name,{kind:"prop",publicPropName:J.declaration.id.name});break}}}function $Z8(q,Z,Q){let Y=[Z.componentScope];Q7(Q,{enter:(J)=>{if(!JZ8(J))return;let H=HZ8(Z,J),X=Y[Y.length-1]??Z.componentScope;switch(String(J.type)){case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":GZ8(J,H);break;case"BlockStatement":VZ8(q,J.body,H,X);break;case"CatchClause":if("param"in J)for(let W of n1(J.param))V1(H,W,{kind:"local"});break;case"EachBlock":{let W=J;for(let R of n1(W.context))V1(H,R,{kind:"local"});if(typeof W.index==="string")V1(H,W.index,{kind:"local"});else if(W.index&&"name"in W.index)V1(H,W.index.name,{kind:"local"});break}case"ThenBlock":if("value"in J)for(let W of n1(J.value))V1(H,W,{kind:"local"});break;case"CatchBlock":if("error"in J)for(let W of n1(J.error))V1(H,W,{kind:"local"});break}if(Ih(J))Y.push(H)},leave:(J)=>{if(Ih(J))Y.pop()}})}function Dh(q,Z,Q){Z.componentScope.clear(),Z.scopeDeclarations=new WeakMap,Z.activeScopes.length=0,WZ8(q,Z,Z.parsed?.instance),$Z8(q,Z,Q)}var UZ8=/(?:const|let|function)\s+(\w+)\s*[=(]/;function RZ8(q){return q===void 0||q===""?void 0:q}function Ch(q){if(q==="var")return"let";if(q==="using"||q==="await using")return"const";return q}var Dq=Symbol("sveld.parsedComponentTypeScriptMetadata");function FZ(q){return q[Dq]}function Fh(q,Z){if(Z.length===0)return;let Q=new Set(q.props.map((Y)=>Y.name));for(let Y of Z){if(Q.has(Y.name))continue;Q.add(Y.name),q.props.push({name:Y.name,kind:"let",constant:!1,type:Y.type,typeSource:"typescript",...Y.description?{description:Y.description}:{},isFunction:Y.type.includes("=>"),isFunctionDeclaration:!1,isRequired:Y.isRequired,reactive:!1})}}var zZ8=null,Eh=/^@component/,BZ8=/\r/g;class D0{ctx=YX();static mapToArray(q){return Array.from(q,([Z,Q])=>Q)}static getStaticAttributeValue(q){if(!Array.isArray(q.value))return;return q.value.map((Z)=>Z.data??Z.raw??"").join("").trim()}resolveScriptLanguage(q){let Z=[q.instance,q.module].filter((Y)=>Y!==void 0),Q=!1;for(let Y of Z){let J=Y.attributes?.find((X)=>X.name==="lang");if(!J){Q=!0;continue}if(D0.getStaticAttributeValue(J)?.toLowerCase()==="ts")return"ts"}return Q?"js":void 0}resolveScriptGenericsAttribute(q){let Z=q.instance?.attributes?.find((X)=>X.name==="generics");if(!Z)return;let Q=x0(this.ctx,Z),Y=q.instance?.attributes?.find((X)=>X.name==="lang");if((Y?D0.getStaticAttributeValue(Y)?.toLowerCase():void 0)!=="ts"){W6(this.ctx,"syntax-skipped","generics",'<script generics="..."> requires lang="ts"; the generics attribute was ignored because the script is not TypeScript.',Q);return}let H=D0.getStaticAttributeValue(Z);if(!H)return;return{value:H,source:Q}}static assignValue(q){return RZ8(q)}resolvePublicPropName(q){return this.ctx.propLocalToPublicName.get(q)??q}trackPropLocalName(q,Z=q){this.ctx.propLocalToPublicName.set(Z,q)}getPropByLocalOrPublic(q){return this.ctx.props.get(this.resolvePublicPropName(q))}getPropTypeByLocalOrPublic(q){return this.getPropByLocalOrPublic(q)?.type}getExplicitPropType(q){return this.ctx.explicitPropTypesByName.get(q)}getPropertyName(q){if(!q||typeof q!=="object"||!("type"in q))return;if(g9(q))return q.name;if(K7(q))return q.value==null?void 0:String(q.value);return}isNumericConstant(q){if(!q||typeof q!=="object"||!("type"in q))return!1;if(q.type!=="MemberExpression")return!1;let Z=q,Q=Z.object&&"name"in Z.object?Z.object.name:void 0,Y=Z.property&&"name"in Z.property?Z.property.name:void 0;if(!Q||!Y)return!1;if(Q==="Number")return["POSITIVE_INFINITY","NEGATIVE_INFINITY","MAX_VALUE","MIN_VALUE","MAX_SAFE_INTEGER","MIN_SAFE_INTEGER","EPSILON","NaN"].includes(Y);if(Q==="Math")return["PI","E","LN2","LN10","LOG2E","LOG10E","SQRT2","SQRT1_2"].includes(Y);return!1}resolveTypeSource({hasTypeScriptType:q,hasJSDocType:Z,inferredType:Q,finalType:Y}){if(q)return"typescript";if(Z)return"jsdoc";if(Q!==void 0)return"default";if(Y!==void 0)return"inferred";return"unknown"}resolveLocalVarJSDoc(q){for(let Q of this.ctx.vars)if(Q.declarations.some((J)=>J.id&&typeof J.id==="object"&&("type"in J.id)&&J.id.type==="Identifier"&&("name"in J.id)&&J.id.name===q))return i6(this.ctx,this,Q);let Z=this.ctx.funcDecls.get(q);if(Z)return i6(this.ctx,this,Z);return}addModuleExport(q,Z){if(D0.assignValue(q)===void 0)return;if(this.ctx.moduleExports.has(q)){let Q=this.ctx.moduleExports.get(q);this.ctx.moduleExports.set(q,{...Q,...Z})}else this.ctx.moduleExports.set(q,Z)}aliasType(q){if(q==="*")return"any";return q.trim()}buildVariableInfoCache(){if(!this.ctx.source)return;if(!this.ctx.sourceLinesCache)this.ctx.sourceLinesCache=this.ctx.source.split(`
|
|
261
|
-
`);let q=this.ctx.sourceLinesCache;for(let Z=0;Z<q.length;Z++){let Y=q[Z].trim().match(UZ8);if(Y){let J=Y[1];for(let H=Z-1;H>=0;H--){let X=q[H].trim();if(X&&!X.startsWith("*")&&!X.startsWith("/*")&&!X.startsWith("//"))break;if(X.startsWith("/**")){let G=[];for(let V=H;V<Z;V++)G.push(q[V]);let W=G.join(`
|
|
262
|
-
`),R=s7(W,{spacing:"preserve"}),{type:B,description:M}=CZ(R);if(B)this.ctx.variableInfoCache.set(J,{type:this.aliasType(B.type),description:M||B.description});break}}}}}static VAR_NAME_REGEX_CACHE=new Map;static getVarNameRegexes(q){let Z=D0.VAR_NAME_REGEX_CACHE.get(q);if(!Z){let Q=q.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");Z=[new RegExp(`const\\s+${Q}\\s*=`),new RegExp(`let\\s+${Q}\\s*=`),new RegExp(`function\\s+${Q}\\s*\\(`)],D0.VAR_NAME_REGEX_CACHE.set(q,Z)}return Z}findVariableTypeAndDescription(q){let Z=this.getPropByLocalOrPublic(q);if(Z?.type)return{type:Z.type,description:Z.description};let Q=this.ctx.variableInfoCache.get(q);if(Q)return Q;if(!this.ctx.source)return null;if(!this.ctx.sourceLinesCache)this.ctx.sourceLinesCache=this.ctx.source.split(`
|
|
263
|
-
`);let Y=this.ctx.sourceLinesCache,[J,H,X]=D0.getVarNameRegexes(q);for(let G=0;G<Y.length;G++){let W=Y[G].trim(),R=W.match(J),B=W.match(H),M=W.match(X);if(R||B||M)for(let V=G-1;V>=0;V--){let $=Y[V].trim();if($&&!$.startsWith("*")&&!$.startsWith("/*")&&!$.startsWith("//"))break;if($.startsWith("/**")){let O=[];for(let D=V;D<G;D++)O.push(Y[D]);let w=O.join(`
|
|
264
|
-
`),I=s7(w,{spacing:"preserve"}),{type:C,description:E}=CZ(I);if(C)return{type:this.aliasType(C.type),description:E||C.description};break}}}return null}accumulateGeneric(q,Z){if(this.ctx.generics)this.ctx.generics=[`${this.ctx.generics[0]}, ${q}`,`${this.ctx.generics[1]}, ${Z}`];else this.ctx.generics=[q,Z]}cleanup(){this.ctx=YX()}static SCRIPT_BLOCK_REGEX=/(<script[^>]*>)([\s\S]*?)(<\/script>)/gi;static TS_DIRECTIVE_REGEX=/\/\/\s*@ts-[^\n\r]*/g;static stripTypeScriptDirectivesFromScripts(q){return D0.SCRIPT_BLOCK_REGEX.lastIndex=0,q.replace(D0.SCRIPT_BLOCK_REGEX,(Z,Q,Y,J)=>{D0.TS_DIRECTIVE_REGEX.lastIndex=0;let H=Y.replace(D0.TS_DIRECTIVE_REGEX,"");return Q+H+J})}parseSvelteComponent(q,Z){this.cleanup(),this.ctx.componentFilePath=Z.filePath;let Q=D0.stripTypeScriptDirectivesFromScripts(q);this.ctx.source=Q,wh(this,this.ctx);let Y=xb(Q,{generate:!1,modernAst:!1});if(this.ctx.compiled=Y,this.ctx.syntaxMode=Y.metadata.runes?"runes":"legacy",this.ctx.parsed=Y.ast||r6(Q,{modern:!1}),this.ctx.sourceLinesCache=this.ctx.source.split(`
|
|
265
|
-
`),this.buildVariableInfoCache(),Lh(this.ctx,this),this.ctx.parsed?.module)Q7(this.ctx.parsed?.module,{enter:(D)=>{if(D.type==="ExportNamedDeclaration"){if(D.declaration==null)return;if(!D.declaration||typeof D.declaration!=="object"||!("type"in D.declaration))return;let f,v,_,b=!1,z,P,L,A=!1,T,h,N,y,r;if(D.declaration.type==="FunctionDeclaration"){let N8=D.declaration;if(!N8.id?.name)return;f=N8.id.name,v="function",z=void 0,P="() => any",A=!0,b=!0}else if(D.declaration.type==="VariableDeclaration"){let N8=D.declaration,w8=N8.declarations[0];if(!w8||typeof w8!=="object"||!("id"in w8))return;let{id:g8,init:R8}=w8;if(!g8||typeof g8!=="object"||!("name"in g8))return;let a8=g8.name;f=a8,v=Ch(N8.kind);let B8=R8==null?{isFunction:!1}:v7(this,this.ctx,R8);({value:z,type:y,isFunction:A,defaultValue:N}=B8),r=B8,L=this.getExplicitPropType(a8),P=L??y}else return;let m=i6(this.ctx,this,D);if(m){if(m.type&&L===void 0)P=m.type;if(T=m.params,h=m.returnType,m.description)_=m.description}if(L===void 0&&m?.type===void 0&&r?.resolvedType)P=r.resolvedType;if(_===void 0&&r?.resolvedDescription)_=r.resolvedDescription;if(T===void 0&&r?.resolvedParams)T=r.resolvedParams;if(h===void 0&&r?.resolvedReturnType)h=r.resolvedReturnType;if(b&&P==="() => any"&&h)if(T&&T.length>0)P=`(${T.map((g8)=>{let R8=g8.optional?"?":"";return`${g8.name}${R8}: ${g8.type}`}).join(", ")}) => ${h}`;else P=`() => ${h}`;if(!_&&P&&this.ctx.typedefs.has(P))_=this.ctx.typedefs.get(P)?.description;let Y8=this.resolveTypeSource({hasTypeScriptType:L!==void 0,hasJSDocType:m?.type!==void 0||m?.params!==void 0||m?.returnType!==void 0||r?.resolvedType!==void 0,inferredType:y,finalType:P});this.addModuleExport(f,{name:f,kind:v,description:_,deprecated:m?.deprecated,tags:m?.tags,type:P,typeSource:Y8,value:z,defaultValue:N,params:T,returnType:h,isFunction:A,isFunctionDeclaration:b,isRequired:!1,constant:v==="const",reactive:!1,source:x0(this.ctx,D)})}}});let J,H=new Set,X=new Set,G=[],W={type:"ComponentRoot",instance:this.ctx.parsed.instance,html:this.ctx.parsed.html};if(Dh(this,this.ctx,W),this.ctx.activeScopes.push(this.ctx.componentScope),Q7(W,{enter:(D,f,v)=>{let _=this.ctx.scopeDeclarations.get(D);if(_)this.ctx.activeScopes.push(_);if(D.type==="AssignmentExpression")zX(this.ctx,D.left);if(D.type==="UpdateExpression")zX(this.ctx,D.argument);if(D.type==="CallExpression"){let b=D,z=b.callee&&typeof b.callee==="object"&&"name"in b.callee?b.callee.name:void 0;if(z==="createEventDispatcher"){if(f&&typeof f==="object"&&"id"in f&&f.id&&typeof f.id==="object"&&"name"in f.id)J=f.id.name}if(z==="$host"){if(f&&typeof f==="object"&&"id"in f&&f.id&&typeof f.id==="object"&&"name"in f.id)H.add(f.id.name)}if(z==="setContext")Zh(this.ctx,this,D,f??void 0);if(z)G.push({name:z,arguments:b.arguments,source:x0(this.ctx,b)});if(rb(b.callee)&&g9(b.callee.property)&&b.callee.property.name==="dispatchEvent"&&(l9(b.callee.object,"$host")||g9(b.callee.object)&&H.has(b.callee.object.name))){let P=Qh(this.ctx,b);if(P)X.add(P)}}if(D&&typeof D==="object"&&"type"in D&&String(D.type)==="Spread"){let b=D;if(b.expression?.name==="$$restProps"||this.ctx.restPropLocals.has(b.expression?.name??""))Oh(this.ctx,f)}if(D.type==="FunctionDeclaration"){let b=D;if(b.id?.name)this.ctx.funcDecls.set(b.id.name,b)}if(D.type==="VariableDeclaration"){if(this.ctx.vars.add(D),f&&typeof f==="object"&&"type"in f&&f.type==="Program"&&D.declarations.some((b)=>l9(b.init,"$props")))Ah(this,this.ctx,D)}if(D.type==="ExportNamedDeclaration"){if(D.declaration==null&&D.specifiers.length===0)return;let b;if(D.declaration==null&&D.specifiers[0]?.type==="ExportSpecifier"){let B8=D.specifiers[0],$8=B8.local&&typeof B8.local==="object"&&"name"in B8.local?B8.local.name:void 0,c8=B8.exported&&typeof B8.exported==="object"&&"name"in B8.exported?B8.exported.name:void 0;if(!$8||!c8)return;let p8;for(let q8 of Array.from(this.ctx.vars))if(q8.declarations.some((f8)=>f8.id&&typeof f8.id==="object"&&("type"in f8.id)&&f8.id.type==="Identifier"&&f8.id.name===$8)){p8=q8;break}D.declaration=p8,b=c8}if(D.declaration==null)return;if(!D.declaration||typeof D.declaration!=="object"||!("type"in D.declaration))return;let z,P,L=!1,A,T,h,N=!1,y,r,m=!1,Y8,N8,w8,g8;if(D.declaration.type==="FunctionDeclaration"){let B8=D.declaration;if(!B8.id?.name)return;b??=B8.id.name,Y8=B8.id.name,z="function",A=void 0,T="() => any",N=!0,L=!0,m=!1}else if(D.declaration.type==="VariableDeclaration"){let B8=D.declaration,$8=B8.declarations[0];if(!$8||typeof $8!=="object"||!("id"in $8))return;let{id:c8,init:p8}=$8;if(c8&&typeof c8==="object"&&"name"in c8){let f8=c8.name;Y8=f8,b??=f8,h=this.getExplicitPropType(f8)}else return;z=Ch(B8.kind),m=z==="let"&&p8==null;let q8=p8==null?{isFunction:!1}:v7(this,this.ctx,p8);({value:A,type:w8,isFunction:N,defaultValue:N8}=q8),g8=q8,T=h??w8}else return;let R8=i6(this.ctx,this,D);if(R8){if(R8.type&&h===void 0)T=R8.type;if(y=R8.params,r=R8.returnType,R8.description)P=R8.description}if(h===void 0&&R8?.type===void 0&&g8?.resolvedType)T=g8.resolvedType;if(P===void 0&&g8?.resolvedDescription)P=g8.resolvedDescription;if(y===void 0&&g8?.resolvedParams)y=g8.resolvedParams;if(r===void 0&&g8?.resolvedReturnType)r=g8.resolvedReturnType;if(L&&T==="() => any"&&r)if(y&&y.length>0)T=`(${y.map((c8)=>{let p8=c8.optional?"?":"";return`${c8.name}${p8}: ${c8.type}`}).join(", ")}) => ${r}`;else T=`() => ${r}`;if(!P&&T&&this.ctx.typedefs.has(T))P=this.ctx.typedefs.get(T)?.description;let a8=this.resolveTypeSource({hasTypeScriptType:h!==void 0,hasJSDocType:R8?.type!==void 0||R8?.params!==void 0||R8?.returnType!==void 0||g8?.resolvedType!==void 0,inferredType:w8,finalType:T});Oq(this,this.ctx,b,{name:b,...Y8!==void 0&&Y8!==b?{localName:Y8}:{},kind:z,description:P,binding:R8?.binding,deprecated:R8?.deprecated,tags:R8?.tags,type:T,typeSource:a8,value:A,defaultValue:N8,params:y,returnType:r,isFunction:N,isFunctionDeclaration:L,isRequired:m,constant:z==="const",reactive:this.ctx.reactive_vars.has(b),source:x0(this.ctx,D)})}if(D&&typeof D==="object"&&"type"in D&&String(D.type)==="Comment"){let z=D?.data?.trim()??"";if(Eh.test(z))this.ctx.componentComment=z.replace(Eh,"").replace(BZ8,""),this.ctx.componentCommentSource=x0(this.ctx,D)}if(D&&typeof D==="object"&&"type"in D&&String(D.type)==="Slot"){let b=D,z=b.attributes?.find((A)=>A.name==="name")?.value?.[0]?.data,P=(b.attributes||[]).filter((A)=>A.name!=="name").reduce((A,T)=>{let h={value:void 0,replace:!1},N=T.value;if(N===void 0)return A;if(N[0]){let y=N[0],{type:r,expression:m,raw:Y8,start:N8,end:w8}=y;if(r==="Text"&&Y8!==void 0)h.value=Y8;else if(r==="AttributeShorthand"&&m&&typeof m==="object"&&"name"in m)h.value=m.name,h.replace=!0;if(m&&typeof m==="object"&&"type"in m){if(m.type==="Literal"&&"value"in m)h.value=String(m.value);else if(m.type==="MemberExpression")h.value=IZ(this.ctx,this,m);else if(m.type!=="Identifier"){if(N8!==void 0&&w8!==void 0){if(m.type==="ObjectExpression"||m.type==="TemplateLiteral")h.value=m0(this.ctx,N8+1,w8-1)}}}}if(T.name)A[T.name]=h;return A},{}),L=b.children?.map(({start:A,end:T})=>{if(A===void 0||T===void 0)return"";return m0(this.ctx,A,T)??""}).join("").trim();Aq(this.ctx,{slot_name:z,slot_props:JSON.stringify(P,null,2),slot_fallback:L,source:x0(this.ctx,D)})}if(D&&typeof D==="object"&&"type"in D&&String(D.type)==="RenderTag"){let b=D,z=Uh(this.ctx,b.expression);if(z){let P;if(z.arguments.length===0)P=JSON.stringify({},null,2);else if(z.arguments.length===1&&typeof z.arguments[0]==="object"&&z.arguments[0]&&"type"in z.arguments[0]&&z.arguments[0].type==="ObjectExpression")P=JSON.stringify($h(this.ctx,this,z.arguments[0]),null,2);else if(z.arguments.length===1)W6(this.ctx,"syntax-skipped",z.publicName,`{@render ${z.publicName}(...)} argument is not a plain object literal; the render call was not mapped to slot metadata.`,x0(this.ctx,D));let L=z.publicName==="children"?void 0:z.publicName,A=L===void 0?zZ8:L;if(P!==void 0)Aq(this.ctx,{slot_name:L,slot_props:P,source:x0(this.ctx,D)});if(P!==void 0||this.ctx.slots.has(A))this.ctx.snippetPropLocals.add(z.trackingName)}}if(D&&typeof D==="object"&&"type"in D&&String(D.type)==="EventHandler"){let b=D;if(b.expression==null&&b.name){if(f!=null&&typeof f==="object"&&"name"in f){let z=typeof f.name==="string"?f.name:void 0,P="type"in f?String(f.type):void 0;if(z&&P){let L=P==="InlineComponent"?{type:"InlineComponent",name:z}:{type:"Element",name:z};this.ctx.forwardedEvents.set(b.name,L);let A=this.ctx.events.get(b.name),T=this.ctx.eventDescriptions.get(b.name),h=A?.deprecated;if(!A)this.ctx.events.set(b.name,{type:"forwarded",name:b.name,element:L,description:T,deprecated:h,source:x0(this.ctx,D)});else if(A.type==="forwarded"&&T&&!A.description)this.ctx.events.set(b.name,{...A,description:T,deprecated:A.deprecated??h,source:A.source||x0(this.ctx,D)})}}}}if(f&&typeof f==="object"&&"type"in f&&(String(f.type)==="Element"||String(f.type)==="InlineComponent")&&D&&typeof D==="object"&&"type"in D&&String(D.type)==="Binding"){let b=D;if(b.expression?.name){let z=EZ(this.ctx,b.expression.name);if(z)this.ctx.reactive_vars.add(z)}if(String(f.type)==="Element"&&b.name==="this"&&b.expression?.name&&"name"in f&&typeof f.name==="string"){let z=EZ(this.ctx,b.expression.name);if(!z)return;let P=f.name;if(this.ctx.bindings.has(z)){let L=this.ctx.bindings.get(z);if(L&&!L.elements.includes(P))this.ctx.bindings.set(z,{...L,elements:[...L.elements,P]})}else this.ctx.bindings.set(z,{elements:[P]})}}},leave:(D)=>{if(this.ctx.scopeDeclarations.has(D))this.ctx.activeScopes.pop()}}),J!==void 0){for(let D of G)if(D.name===J){let f=D.arguments[0],v=f&&typeof f==="object"&&"value"in f?f.value:void 0,_=D.arguments[1],b=_&&typeof _==="object"&&"value"in _?_.value:void 0;if(v!=null)wq(this.ctx,{name:String(v),detail:b==null?"":GX(b),has_argument:Boolean(_),source:D.source})}}let R=new Set(X);if(J!==void 0){for(let D of G)if(D.name===J){let f=D.arguments[0],v=f&&typeof f==="object"&&"value"in f?f.value:void 0;if(v!=null)R.add(String(v))}}this.ctx.forwardedEvents.forEach((D,f)=>{let v=this.ctx.events.get(f);if(v&&v.type==="dispatched"&&!R.has(f)){let _=this.ctx.eventDescriptions.get(f),b={type:"forwarded",name:f,element:D,description:_,deprecated:v.deprecated,tags:v.tags,source:v.source};if(v.detail!==void 0&&v.detail!=="undefined")b.detail=v.detail;this.ctx.events.set(f,b)}}),jh(this.ctx,R);let B=this.ctx.syntaxMode==="runes"?new Set(Array.from(this.ctx.snippetPropLocals,(D)=>this.resolvePublicPropName(D))):new Set,M=D0.mapToArray(this.ctx.props).filter((D)=>!B.has(D.name)).map((D)=>{if(this.ctx.bindings.has(D.name)){let f=this.ctx.bindings.get(D.name)?.elements.sort().map((v)=>db(v)).join(" | ");return{...D,type:`null | ${f}`,typeSource:"inferred",reactive:D.reactive||this.ctx.reactive_vars.has(D.name)}}return{...D,reactive:D.reactive||this.ctx.reactive_vars.has(D.name)}});this.ctx.activeScopes.length=0;let V=D0.mapToArray(this.ctx.slots).map((D)=>{try{if(!D.slot_props)return D;let f=JSON.parse(D.slot_props),v=[];for(let b of Object.keys(f)){if(f[b].replace&&f[b].value!==void 0)f[b].value=this.getPropTypeByLocalOrPublic(f[b].value);if(f[b].value===void 0)f[b].value="any";v.push(`${b}: ${f[b].value}`)}let _=v.length===0?"Record<string, never>":v.length===1?`{ ${v[0]} }`:`{
|
|
266
|
-
${v.join(`;
|
|
267
|
-
`)};
|
|
268
|
-
}`;return{...D,slot_props:_}}catch(f){return D}}).sort((D,f)=>{let v=D.name??"",_=f.name??"";if(v<_)return-1;if(v>_)return 1;return 0});if(this.ctx.deferredSlotBlockGenerics.length>0){let D=[...M.map((f)=>f.type??""),...V.map((f)=>f.slot_props??"")].join(`
|
|
269
|
-
`);for(let{name:f,constraint:v}of this.ctx.deferredSlotBlockGenerics){let _=f.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");if(!new RegExp(`\\b${_}\\b`).test(D))continue;this.accumulateGeneric(f,v)}}if(this.ctx.scriptGenericsAttribute){if(this.ctx.generics)W6(this.ctx,"syntax-skipped","generics",'Both the "generics" script attribute and @generics/@template JSDoc tags declare component generics; the script attribute takes precedence and the JSDoc declaration was ignored.',this.ctx.scriptGenericsAttribute.source);this.ctx.generics=Gh(this.ctx.scriptGenericsAttribute.value)}let $=D0.mapToArray(this.ctx.moduleExports),O=D0.mapToArray(this.ctx.events).map((D)=>{switch(D.type){case"forwarded":return{...D,element:D.element.name};case"dispatched":return D;default:return D}}).sort((D,f)=>{let v=D.name.localeCompare(f.name);if(v!==0)return v;let _=D.type.localeCompare(f.type);if(_!==0)return _;if(D.type==="forwarded"&&f.type==="forwarded"){let b=D.element.localeCompare(f.element);if(b!==0)return b}return(D.detail??"").localeCompare(f.detail??"")}),w=D0.mapToArray(this.ctx.typedefs),I=D0.mapToArray(this.ctx.contexts);for(let D of M)if(D.typeSource==="unknown")W6(this.ctx,"prop-unknown-type",D.name,`Prop "${D.name}" type could not be inferred; falling back to "${D.type??"any"}".`,D.source);for(let D of this.ctx.jsDocEventNames){if(R.has(D))continue;if(this.ctx.forwardedEvents.has(D))continue;if(this.ctx.props.has(`on${D}`))continue;W6(this.ctx,"event-no-source",D,`@event "${D}" has no matching dispatch or callback prop.`,this.ctx.jsDocEventSources.get(D))}let C={source:DZ(this.ctx,0,this.ctx.source?.length),syntaxMode:this.ctx.syntaxMode,...this.ctx.scriptLanguage?{scriptLanguage:this.ctx.scriptLanguage}:{},props:M,moduleExports:$,slots:V,events:O,typedefs:w,generics:this.ctx.generics,rest_props:this.ctx.rest_props,extends:this.ctx.extends,componentComment:this.ctx.componentComment,componentCommentSource:this.ctx.componentCommentSource,contexts:I,customElementTag:this.ctx.customElementTag,diagnostics:this.ctx.diagnosticRecords.slice()},E=Xh(this.ctx);if(E)C[Dq]=E;return C}}import{readFile as PZ8}from"node:fs/promises";import LZ8 from"node:path";var TZ="5.56.3";var Th="sveld",fZ="0.35.0";var fh={name:Th,version:fZ,license:"Apache-2.0",description:"Generate TypeScript definitions and component documentation for your Svelte components.",type:"module",main:"./lib/index.js",types:"./lib/index.d.ts",exports:{".":{types:"./lib/index.d.ts",import:"./lib/index.js",default:"./lib/index.js"}},scripts:{test:"bun test --parallel","test:fixtures-types":"tsc --project tsconfig.fixtures.json","test:e2e":"bun tests/test-e2e.ts",format:"biome format --write .",lint:"biome lint .","lint:fix":"biome check --write --unsafe .",build:"bun scripts/build.ts",bench:"bun scripts/bench.ts",typecheck:"tsc --noEmit"},devDependencies:{"@biomejs/biome":"2.5.2","@types/bun":"^1.3.14","@types/jest":"^30.0.0",acorn:"^8.17.0","comment-parser":"^1.4.1",culls:"^0.2.0","estree-walker":"^3.0.3",svelte:"^5.56.3",tinyglobby:"^0.2.17",typescript:"rc"},bin:{sveld:"cli.js"},files:["lib","cli.js"],repository:{type:"git",url:"git+https://github.com/carbon-design-system/sveld.git"},homepage:"https://github.com/carbon-design-system/sveld",bugs:"https://github.com/carbon-design-system/sveld/issues",keywords:["svelte","svelte component","documentation","docgen","typescript","definitions","JSDocs","vite","vite-plugin"],maintainers:["Eric Liu (https://github.com/metonym)"]};var KZ=1;function t1(q,Z={}){let Q=Array.from(q,([,J])=>{let{diagnostics:H,...X}=J;return X}).sort((J,H)=>J.moduleName.localeCompare(H.moduleName)),Y={schemaVersion:KZ,generator:{name:Th,version:fZ,svelteVersion:TZ},total:Q.length,components:Q};if(Z.entryExports&&Z.entryExports.length>0)Y.totalExports=Z.entryExports.length,Y.exports=Z.entryExports;return Y}var Kh={none:0,patch:1,minor:2,major:3};function OZ8(q,Z){return Kh[Z]>Kh[q]?Z:q}function wZ8(q){return q.reduce((Z,Q)=>OZ8(Z,Q.bump),"none")}function vh(q){let Z=[],Q=0,Y="",J=null;for(let H=0;H<q.length;H++){let X=q[H];if(J){if(Y+=X,X==="\\")H++,Y+=q[H]??"";else if(X===J)J=null;continue}if(X==='"'||X==="'"||X==="`"){J=X,Y+=X;continue}if(X==="<"||X==="("||X==="{"||X==="[")Q++;if(X===">"||X===")"||X==="}"||X==="]")Q--;if(X==="|"&&Q===0){Z.push(Y.trim()),Y="";continue}Y+=X}return Z.push(Y.trim()),new Set(Z.filter((H)=>H.length>0))}function MX(q,Z){if(q===Z)return"none";if(q===void 0||Z===void 0)return"major";let Q=vh(q),Y=vh(Z),J=[...Y].some((X)=>!Q.has(X)),H=[...Q].some((X)=>!Y.has(X));if(!J&&!H)return"none";if(J&&!H)return"minor";if(H&&!J)return"major";return"major"}function Nh(q,Z,Q,Y){let J=Z==="prop"?"prop":"export",H=[],X=new Map(Q.map((W)=>[W.name,W])),G=new Map(Y.map((W)=>[W.name,W]));for(let[W,R]of G){if(X.has(W))continue;H.push({component:q,kind:Z,name:W,bump:R.isRequired?"major":"minor",message:`${J} "${W}" added${R.isRequired?" (required)":""}`})}for(let[W]of X){if(G.has(W))continue;H.push({component:q,kind:Z,name:W,bump:"major",message:`${J} "${W}" removed`})}for(let[W,R]of X){let B=G.get(W);if(!B)continue;if(R.isRequired!==B.isRequired)H.push({component:q,kind:Z,name:W,bump:B.isRequired?"major":"minor",message:`${J} "${W}" became ${B.isRequired?"required":"optional"}`});let M=MX(R.type,B.type);if(M!=="none")H.push({component:q,kind:Z,name:W,bump:M,message:`${J} "${W}" type changed from \`${R.type??"unknown"}\` to \`${B.type??"unknown"}\``})}return H}function AZ8(q,Z,Q){let Y=[],J=new Map(Z.map((X)=>[X.name,X])),H=new Map(Q.map((X)=>[X.name,X]));for(let[X]of H){if(J.has(X))continue;Y.push({component:q,kind:"event",name:X,bump:"minor",message:`event "${X}" added`})}for(let[X]of J){if(H.has(X))continue;Y.push({component:q,kind:"event",name:X,bump:"major",message:`event "${X}" removed`})}for(let[X,G]of J){let W=H.get(X);if(!W)continue;if(G.type!==W.type){Y.push({component:q,kind:"event",name:X,bump:"major",message:`event "${X}" changed from ${G.type} to ${W.type}`});continue}let R=G.type==="dispatched"?G.detail:void 0,B=W.type==="dispatched"?W.detail:void 0,M=MX(R,B);if(M!=="none")Y.push({component:q,kind:"event",name:X,bump:M,message:`event "${X}" detail changed from \`${R??"unknown"}\` to \`${B??"unknown"}\``})}return Y}function kh(q){return q.name??"default"}function jZ8(q,Z,Q){let Y=[],J=new Map(Z.map((X)=>[kh(X),X])),H=new Map(Q.map((X)=>[kh(X),X]));for(let[X]of H){if(J.has(X))continue;Y.push({component:q,kind:"slot",name:X,bump:"minor",message:`slot "${X}" added`})}for(let[X]of J){if(H.has(X))continue;Y.push({component:q,kind:"slot",name:X,bump:"major",message:`slot "${X}" removed`})}for(let[X,G]of J){let W=H.get(X);if(!W)continue;let R=MX(G.slot_props,W.slot_props);if(R!=="none")Y.push({component:q,kind:"slot",name:X,bump:R,message:`slot "${X}" props changed from \`${G.slot_props??"none"}\` to \`${W.slot_props??"none"}\``})}return Y}var IZ8=new Set(["description","source","componentCommentSource","tags"]);function vZ(q){if(Array.isArray(q))return q.map(vZ);if(q!==null&&typeof q==="object"){let Z={};for(let[Q,Y]of Object.entries(q)){if(IZ8.has(Q))continue;Z[Q]=vZ(Y)}return Z}return q}var DZ8=["generics","rest_props","extends","contexts","typedefs"];function CZ8(q,Z,Q){let Y=[];for(let J of DZ8){let H=JSON.stringify(vZ(Z[J])),X=JSON.stringify(vZ(Q[J]));if(H!==X)Y.push({component:q,kind:"shape",name:J,bump:"major",message:`"${J}" changed (breaking)`})}return Y}function EZ8(q,Z){let Q=Z.moduleName;return[...Nh(Q,"prop",q.props,Z.props),...Nh(Q,"moduleExport",q.moduleExports,Z.moduleExports),...AZ8(Q,q.events,Z.events),...jZ8(Q,q.slots,Z.slots),...CZ8(Q,q,Z)]}function Sh(q,Z){let Q=[],Y=new Map(q.components.map((H)=>[H.moduleName,H])),J=new Map(Z.components.map((H)=>[H.moduleName,H]));for(let[H]of J){if(Y.has(H))continue;Q.push({component:H,kind:"component",bump:"minor",message:`component "${H}" added`})}for(let[H]of Y){if(J.has(H))continue;Q.push({component:H,kind:"component",bump:"major",message:`component "${H}" removed`})}for(let[H,X]of Y){let G=J.get(H);if(!G)continue;Q.push(...EZ8(X,G))}return Q}async function FZ8(q){let Z;try{Z=await PZ8(LZ8.resolve(q),"utf-8")}catch(Q){if(Q.code==="ENOENT")return null;throw Q}try{return JSON.parse(Z)}catch{throw Error(`sveld: could not parse "${q}" as JSON. Is it a sveld COMPONENT_API.json snapshot?`)}}function NZ(q){if(typeof q.check==="string")return q.check;return q.jsonOptions?.outFile??"COMPONENT_API.json"}async function Cq(q,Z,Q={}){let Y=await FZ8(Z);if(Y===null)return{snapshotExists:!1,snapshotFile:Z,changes:[],bump:"none"};if(Y.schemaVersion!==KZ)return{snapshotExists:!0,snapshotFile:Z,changes:[{component:"*",kind:"shape",bump:"none",message:`snapshot schemaVersion ${Y.schemaVersion} does not match the current schemaVersion ${KZ}; skipping diff`}],bump:"none"};let J=t1(q,{entryExports:Q.entryExports}),H=Sh(Y,J);return{snapshotExists:!0,snapshotFile:Z,changes:H,bump:wZ8(H)}}var TZ8={major:"BREAKING",minor:"additive",patch:"patch",none:"no change"};function PX(q){if(!q.snapshotExists)return`sveld --check: no snapshot found at "${q.snapshotFile}". Run \`sveld --json\` and commit the output first.`;if(q.changes.length===0)return`sveld --check: no API changes detected against "${q.snapshotFile}".`;let Z=[],Q=q.changes.length;Z.push(`sveld --check: ${Q} API change${Q===1?"":"s"} detected against "${q.snapshotFile}".`),Z.push(`Suggested semver bump: ${q.bump}.`);let Y=new Map;for(let J of q.changes){let H=Y.get(J.component)??[];H.push(J),Y.set(J.component,H)}for(let[J,H]of Y){Z.push(""),Z.push(` ${J}`);for(let X of H)Z.push(` [${TZ8[X.bump]}] ${X.message}`)}return Z.join(`
|
|
270
|
-
`)}import{existsSync as dU8}from"node:fs";import{join as sU8}from"node:path";function Eq(q){return q}function $6(q){if(q==="")return q;return q.startsWith(".")?q:`./${q}`}var fZ8={"prop-unknown-type":"Props without inferred types","context-any-type":"Context values typed as `any`","event-no-source":"@event tags with no dispatch or callback","example-compile-error":"@example blocks that failed to compile","syntax-skipped":"Component syntax sveld skipped"},KZ8=["prop-unknown-type","context-any-type","event-no-source","example-compile-error","syntax-skipped"];function kZ(q){let Z=new Set,Q=[];for(let Y of q){let J=`${Y.component}:${Y.kind}:${Y.name}`;if(Z.has(J))continue;Z.add(J),Q.push(Y)}return Q}function SZ(q){if(q.length===0)return"sveld: all types resolved.";let Z=[],Q=q.length;Z.push(`sveld: ${Q} unresolved type${Q===1?"":"s"} found.`);for(let Y of KZ8){let J=q.filter((X)=>X.kind===Y);if(J.length===0)continue;Z.push(""),Z.push(`${fZ8[Y]} (${J.length}):`);let H=new Map;for(let X of J){let G=H.get(X.component)??[];G.push(X),H.set(X.component,G)}for(let[X,G]of H){Z.push(` ${X}`);for(let W of G){let R=W.source?` (${X}:${W.source.start.line}:${W.source.start.column})`:"";Z.push(` - ${W.message}${R}`)}}}return Z.join(`
|
|
271
|
-
`)}import{existsSync as hh,readFileSync as vZ8}from"node:fs";import{join as yh}from"node:path";function _5(q){return typeof q==="object"&&q!==null}function uh(q){if(!_5(q))return{};let Z=q.svelte;return typeof Z==="string"?{svelte:Z}:{}}function bh(q){if(!_5(q))return{};let Z={};if(typeof q.extends==="string")Z.extends=q.extends;if(_5(q.compilerOptions)){let Q={};if(typeof q.compilerOptions.baseUrl==="string")Q.baseUrl=q.compilerOptions.baseUrl;if(_5(q.compilerOptions.paths)){let Y={};for(let[J,H]of Object.entries(q.compilerOptions.paths))if(Array.isArray(H)&&H.every((X)=>typeof X==="string"))Y[J]=H;if(Object.keys(Y).length>0)Q.paths=Y}if(Object.keys(Q).length>0)Z.compilerOptions=Q}return Z}function g5(q){if(q){let Q=yh(process.cwd(),q);if(hh(Q))return Eq(q);return console.error(`Invalid entry point: ${Q}. Pass a valid --entry (or "entry" option), or unset it and`),console.error('set the "svelte" field in your package.json instead.'),null}let Z=yh(process.cwd(),"package.json");if(!hh(Z))return console.error("Could not locate a package.json file."),console.error(`Specify an entry point with --entry (or the "entry" option) instead.
|
|
272
|
-
`),null;try{let Q=uh(JSON.parse(vZ8(Z,"utf-8")));if(Q.svelte?.trim())return Eq(Q.svelte);return console.error(`Could not determine an entry point.
|
|
273
|
-
`),console.error(`Specify an entry point to your Svelte code in the "svelte" field of your package.json, or pass --entry (or the "entry" option).
|
|
274
|
-
`),null}catch(Q){throw console.error("Error reading package.json:",Q),Q}}import{existsSync as NZ8}from"node:fs";import{join as kZ8}from"node:path";import{pathToFileURL as SZ8}from"node:url";var uZ8=["sveld.config.js","sveld.config.mjs","sveld.config.ts"];function bZ8(q){return q}function hZ8(q=process.cwd()){for(let Z of uZ8){let Q=kZ8(q,Z);if(NZ8(Q))return Q}return null}async function yZ8(q){let Z;try{Z=await import(`${SZ8(q).href}?t=${Date.now()}`)}catch(Y){let J=Y instanceof Error?Y.message:String(Y);throw Error(`sveld: failed to load config file "${q}".
|
|
275
|
-
${J}`)}let Q=Z.default;if(!_5(Q)||Array.isArray(Q))throw Error(`sveld: config file "${q}" must export a configuration object as its default export. Did you forget \`export default defineConfig({ ... })\`?`);return Q}async function uZ(q=process.cwd()){let Z=hZ8(q);if(Z===null)return{};return yZ8(Z)}function bZ(...q){return Object.assign({},...q.filter(Boolean))}U6();import{dirname as cU8}from"node:path";import{lstatSync as Ic,readFileSync as w$8}from"node:fs";import{readFile as A$8}from"node:fs/promises";import{dirname as j$8,isAbsolute as I$8,parse as JV,relative as D$8,resolve as J4}from"node:path";import{readdir as wY8,readdirSync as AY8,realpath as jY8,realpathSync as IY8,stat as DY8,statSync as CY8}from"fs";import{isAbsolute as EY8,posix as k7,resolve as FY8}from"path";import{fileURLToPath as TY8}from"url";import{createRequire as _Z8}from"module";import{basename as gZ8,dirname as OX,normalize as lZ8,relative as xZ8,resolve as mZ8,sep as xh}from"path";import*as pZ8 from"fs";var gh=_Z8(import.meta.url);function cZ8(q){let Z=lZ8(q);if(Z.length>1&&Z[Z.length-1]===xh)Z=Z.substring(0,Z.length-1);return Z}var rZ8=/[\\/]/g;function mh(q,Z){return q.replace(rZ8,Z)}var iZ8=/^[a-z]:[\\/]$/i;function dZ8(q){return q==="/"||iZ8.test(q)}function LX(q,Z){let{resolvePaths:Q,normalizePath:Y,pathSeparator:J}=Z,H=process.platform==="win32"&&q.includes("/")||q.startsWith(".");if(Q)q=mZ8(q);if(Y||H)q=cZ8(q);if(q===".")return"";let X=q[q.length-1]!==J;return mh(X?q+J:q,J)}function ph(q,Z){return Z+q}function sZ8(q,Z){return function(Q,Y){if(Y.startsWith(q))return Y.slice(q.length)+Q;else return mh(xZ8(q,Y),Z.pathSeparator)+Z.pathSeparator+Q}}function aZ8(q){return q}function oZ8(q,Z,Q){return Z+q+Q}function nZ8(q,Z){let{relativePaths:Q,includeBasePath:Y}=Z;return Q&&q?sZ8(q,Z):Y?ph:aZ8}function tZ8(q){return function(Z,Q){Q.push(Z.substring(q.length)||".")}}function eZ8(q){return function(Z,Q,Y){let J=Z.substring(q.length)||".";if(Y.every((H)=>H(J,!0)))Q.push(J)}}var qQ8=(q,Z)=>{Z.push(q||".")},ZQ8=(q,Z,Q)=>{let Y=q||".";if(Q.every((J)=>J(Y,!0)))Z.push(Y)},QQ8=()=>{};function YQ8(q,Z){let{includeDirs:Q,filters:Y,relativePaths:J}=Z;if(!Q)return QQ8;if(J)return Y&&Y.length?eZ8(q):tZ8(q);return Y&&Y.length?ZQ8:qQ8}var JQ8=(q,Z,Q,Y)=>{if(Y.every((J)=>J(q,!1)))Q.files++},HQ8=(q,Z,Q,Y)=>{if(Y.every((J)=>J(q,!1)))Z.push(q)},XQ8=(q,Z,Q,Y)=>{Q.files++},GQ8=(q,Z)=>{Z.push(q)},VQ8=()=>{};function WQ8(q){let{excludeFiles:Z,filters:Q,onlyCounts:Y}=q;if(Z)return VQ8;if(Q&&Q.length)return Y?JQ8:HQ8;else if(Y)return XQ8;else return GQ8}var $Q8=(q)=>{return q},UQ8=()=>{return[""].slice(0,0)};function RQ8(q){return q.group?UQ8:$Q8}var zQ8=(q,Z,Q)=>{q.push({directory:Z,files:Q,dir:Z})},BQ8=()=>{};function MQ8(q){return q.group?zQ8:BQ8}var PQ8=function(q,Z,Q){let{queue:Y,fs:J,options:{suppressErrors:H}}=Z;Y.enqueue(),J.realpath(q,(X,G)=>{if(X)return Y.dequeue(H?null:X,Z);J.stat(G,(W,R)=>{if(W)return Y.dequeue(H?null:W,Z);if(R.isDirectory()&&ch(q,G,Z))return Y.dequeue(null,Z);Q(R,G),Y.dequeue(null,Z)})})},LQ8=function(q,Z,Q){let{queue:Y,fs:J,options:{suppressErrors:H}}=Z;Y.enqueue();try{let X=J.realpathSync(q),G=J.statSync(X);if(G.isDirectory()&&ch(q,X,Z))return;Q(G,X)}catch(X){if(!H)throw X}};function OQ8(q,Z){if(!q.resolveSymlinks||q.excludeSymlinks)return null;return Z?LQ8:PQ8}function ch(q,Z,Q){if(Q.options.useRealPaths)return wQ8(Z,Q);let Y=OX(q),J=1;while(Y!==Q.root&&J<2){let H=Q.symlinks.get(Y);if(!!H&&(H===Z||H.startsWith(Z)||Z.startsWith(H)))J++;else Y=OX(Y)}return Q.symlinks.set(q,Z),J>1}function wQ8(q,Z){return Z.visited.includes(q+Z.options.pathSeparator)}var AQ8=(q)=>{return q.counts},jQ8=(q)=>{return q.groups},IQ8=(q)=>{return q.paths},DQ8=(q)=>{return q.paths.slice(0,q.options.maxFiles)},CQ8=(q,Z,Q)=>{return hZ(Z,Q,q.counts,q.options.suppressErrors),null},EQ8=(q,Z,Q)=>{return hZ(Z,Q,q.paths,q.options.suppressErrors),null},FQ8=(q,Z,Q)=>{return hZ(Z,Q,q.paths.slice(0,q.options.maxFiles),q.options.suppressErrors),null},TQ8=(q,Z,Q)=>{return hZ(Z,Q,q.groups,q.options.suppressErrors),null};function hZ(q,Z,Q,Y){if(q&&!Y)Z(q,Q);else Z(null,Q)}function fQ8(q,Z){let{onlyCounts:Q,group:Y,maxFiles:J}=q;if(Q)return Z?AQ8:CQ8;else if(Y)return Z?jQ8:TQ8;else if(J)return Z?DQ8:FQ8;else return Z?IQ8:EQ8}var rh={withFileTypes:!0},KQ8=(q,Z,Q,Y,J)=>{if(q.queue.enqueue(),Y<0)return q.queue.dequeue(null,q);let{fs:H}=q;q.visited.push(Z),q.counts.directories++,H.readdir(Z||".",rh,(X,G=[])=>{J(G,Q,Y),q.queue.dequeue(q.options.suppressErrors?null:X,q)})},vQ8=(q,Z,Q,Y,J)=>{let{fs:H}=q;if(Y<0)return;q.visited.push(Z),q.counts.directories++;let X=[];try{X=H.readdirSync(Z||".",rh)}catch(G){if(!q.options.suppressErrors)throw G}J(X,Q,Y)};function NQ8(q){return q?vQ8:KQ8}var kQ8=class{count=0;constructor(q){this.onQueueEmpty=q}enqueue(){return this.count++,this.count}dequeue(q,Z){if(this.onQueueEmpty&&(--this.count<=0||q)){if(this.onQueueEmpty(q,Z),q)Z.controller.abort(),this.onQueueEmpty=void 0}}},SQ8=class{_files=0;_directories=0;set files(q){this._files=q}get files(){return this._files}set directories(q){this._directories=q}get directories(){return this._directories}get dirs(){return this._directories}},uQ8=class{aborted=!1;abort(){this.aborted=!0}},ih=class{root;isSynchronous;state;joinPath;pushDirectory;pushFile;getArray;groupFiles;resolveSymlink;walkDirectory;callbackInvoker;constructor(q,Z,Q){this.isSynchronous=!Q,this.callbackInvoker=fQ8(Z,this.isSynchronous),this.root=LX(q,Z),this.state={root:dZ8(this.root)?this.root:this.root.slice(0,-1),paths:[""].slice(0,0),groups:[],counts:new SQ8,options:Z,queue:new kQ8((Y,J)=>this.callbackInvoker(J,Y,Q)),symlinks:new Map,visited:[""].slice(0,0),controller:new uQ8,fs:Z.fs||pZ8},this.joinPath=nZ8(this.root,Z),this.pushDirectory=YQ8(this.root,Z),this.pushFile=WQ8(Z),this.getArray=RQ8(Z),this.groupFiles=MQ8(Z),this.resolveSymlink=OQ8(Z,this.isSynchronous),this.walkDirectory=NQ8(this.isSynchronous)}start(){return this.pushDirectory(this.root,this.state.paths,this.state.options.filters),this.walkDirectory(this.state,this.root,this.root,this.state.options.maxDepth,this.walk),this.isSynchronous?this.callbackInvoker(this.state,null):null}walk=(q,Z,Q)=>{let{paths:Y,options:{filters:J,resolveSymlinks:H,excludeSymlinks:X,exclude:G,maxFiles:W,signal:R,useRealPaths:B,pathSeparator:M},controller:V}=this.state;if(V.aborted||R&&R.aborted||W&&Y.length>W)return;let $=this.getArray(this.state.paths);for(let O=0;O<q.length;++O){let w=q[O];if(w.isFile()||w.isSymbolicLink()&&!H&&!X){let I=this.joinPath(w.name,Z);this.pushFile(I,$,this.state.counts,J)}else if(w.isDirectory()){let I=oZ8(w.name,Z,this.state.options.pathSeparator);if(G&&G(w.name,I))continue;this.pushDirectory(I,Y,J),this.walkDirectory(this.state,I,I,Q-1,this.walk)}else if(this.resolveSymlink&&w.isSymbolicLink()){let I=ph(w.name,Z);this.resolveSymlink(I,this.state,(C,E)=>{if(C.isDirectory()){if(E=LX(E,this.state.options),G&&G(w.name,B?E:I+M))return;this.walkDirectory(this.state,E,B?E:I+M,Q-1,this.walk)}else{E=B?E:I;let D=gZ8(E),f=LX(OX(E),this.state.options);E=this.joinPath(D,f),this.pushFile(E,$,this.state.counts,J)}})}}this.groupFiles(this.state.groups,Z,$)}};function bQ8(q,Z){return new Promise((Q,Y)=>{dh(q,Z,(J,H)=>{if(J)return Y(J);Q(H)})})}function dh(q,Z,Q){new ih(q,Z,Q).start()}function hQ8(q,Z){return new ih(q,Z).start()}var lh=class{constructor(q,Z){this.root=q,this.options=Z}withPromise(){return bQ8(this.root,this.options)}withCallback(q){dh(this.root,this.options,q)}sync(){return hQ8(this.root,this.options)}},sh=null;try{gh.resolve("picomatch"),sh=gh("picomatch")}catch{}var ah=class{globCache={};options={maxDepth:1/0,suppressErrors:!0,pathSeparator:xh,filters:[]};globFunction;constructor(q){this.options={...this.options,...q},this.globFunction=this.options.globFunction}group(){return this.options.group=!0,this}withPathSeparator(q){return this.options.pathSeparator=q,this}withBasePath(){return this.options.includeBasePath=!0,this}withRelativePaths(){return this.options.relativePaths=!0,this}withDirs(){return this.options.includeDirs=!0,this}withMaxDepth(q){return this.options.maxDepth=q,this}withMaxFiles(q){return this.options.maxFiles=q,this}withFullPaths(){return this.options.resolvePaths=!0,this.options.includeBasePath=!0,this}withErrors(){return this.options.suppressErrors=!1,this}withSymlinks({resolvePaths:q=!0}={}){return this.options.resolveSymlinks=!0,this.options.useRealPaths=q,this.withFullPaths()}withAbortSignal(q){return this.options.signal=q,this}normalize(){return this.options.normalizePath=!0,this}filter(q){return this.options.filters.push(q),this}onlyDirs(){return this.options.excludeFiles=!0,this.options.includeDirs=!0,this}exclude(q){return this.options.exclude=q,this}onlyCounts(){return this.options.onlyCounts=!0,this}crawl(q){return new lh(q||".",this.options)}withGlobFunction(q){return this.globFunction=q,this}crawlWithOptions(q,Z){return this.options={...this.options,...Z},new lh(q||".",this.options)}glob(...q){if(this.globFunction)return this.globWithOptions(q);return this.globWithOptions(q,...[{dot:!0}])}globWithOptions(q,...Z){let Q=this.globFunction||sh;if(!Q)throw Error("Please specify a glob function to use glob matching.");var Y=this.globCache[q.join("\x00")];if(!Y)Y=Q(q,...Z),this.globCache[q.join("\x00")]=Y;return this.options.filters.push((J)=>Y(J)),this}};var x5=d7(wy(),1),fY8=Array.isArray,Dy=/\\/g,KY8=/^[A-Za-z]:$/,Cy=process.platform==="win32",vY8=/^(\/?\.\.)+$/;function NY8(q,Z={}){let Q=q.length,Y=Array(Q),J=Array(Q),H,X;for(H=0;H<Q;H++){let G=Ey(q[H]);Y[H]=G;let W=G.length,R=Array(W);for(X=0;X<W;X++)R[X]=x5.default(G[X],Z);J[H]=R}return(G)=>{let W=G.split("/");if(W[0]===".."&&vY8.test(G))return!0;for(H=0;H<Q;H++){let R=Y[H],B=J[H],M=W.length,V=Math.min(M,R.length);X=0;while(X<V){let $=R[X];if($.includes("/"))return!0;if(!B[X](W[X]))break;if(!Z.noglobstar&&$==="**")return!0;X++}if(X===M)return!0}return!1}}var kY8=/^[A-Z]:\/$/i,SY8=Cy?(q)=>kY8.test(q):(q)=>q==="/";function Ay(q,Z,Q){if(q===Z||Z.startsWith(`${q}/`)){if(Q){let J=q.length+ +!SY8(q);return(H,X)=>H.slice(J,X?-1:void 0)||"."}let Y=Z.slice(q.length+1);if(Y)return(J,H)=>{if(J===".")return Y;let X=`${Y}/${J}`;return H?X.slice(0,-1):X};return(J,H)=>H&&J!=="."?J.slice(0,-1):J}if(Q)return(Y)=>k7.relative(q,Y)||".";return(Y)=>k7.relative(q,`${Z}/${Y}`)||"."}function uY8(q,Z){if(Z.startsWith(`${q}/`)){let Q=Z.slice(q.length+1);return(Y)=>`${Q}/${Y}`}return(Q)=>{let Y=k7.relative(q,`${Z}/${Q}`);return Q[Q.length-1]==="/"&&Y!==""?`${Y}/`:Y||"."}}function jy(q){return q.replace(KY8,(Z)=>`${Z}/`)}var bY8={parts:!0};function Ey(q){var Z;let Q=x5.default.scan(q,bY8);return((Z=Q.parts)===null||Z===void 0?void 0:Z.length)?Q.parts:[q]}var hY8=/(?<!\\)([()[\]{}*?|]|^!|[!+@](?=\()|\\(?![()[\]{}!*+?@|]))/g,yY8=/(?<!\\)([()[\]{}]|^!|[!+@](?=\())/g,_Y8=(q)=>q.replace(hY8,"\\$&"),gY8=(q)=>q.replace(yY8,"\\$&"),lY8=Cy?gY8:_Y8;function xY8(q,Z){if((Z===null||Z===void 0?void 0:Z.caseSensitiveMatch)===!1)return!0;let Q=x5.default.scan(q);return Q.isGlob||Q.negated}function vq(...q){console.log(`[tinyglobby ${new Date().toLocaleTimeString("es")}]`,...q)}function Fy(q){return typeof q==="string"?[q]:q!==null&&q!==void 0?q:[]}var mY8=/^(\/?\.\.)+/,pY8=/\\(?=[()[\]{}!*+?@|])/g;function TX(q,Z,Q,Y){var J;let H=Z.cwd,X=q;if(q[q.length-1]==="/")X=q.slice(0,-1);if(X[X.length-1]!=="*"&&Z.expandDirectories)X+="/**";let G=lY8(H);X=EY8(X.replace(pY8,""))?k7.relative(G,X):k7.normalize(X);let W=(J=mY8.exec(X))===null||J===void 0?void 0:J[0],R=Ey(X);if(W){let M=(W.length+1)/3,V=0,$=G.split("/");while(V<M&&R[V+M]===$[$.length+V-M])X=X.slice(0,(M-V-1)*3)+X.slice((M-V)*3+R[V+M].length+1)||".",V++;let O=k7.join(H,W.slice(V*3));if(O[0]!=="."&&Q.root.length>O.length)Q.root=jy(O),Q.depthOffset=-M+V}if(!Y&&Q.depthOffset>=0){var B;(B=Q.commonPath)!==null&&B!==void 0||(Q.commonPath=R);let M=[],V=Math.min(Q.commonPath.length,R.length);for(let $=0;$<V;$++){let O=R[$];if(O==="**"&&!R[$+1]){M.pop();break}if($===R.length-1||O!==Q.commonPath[$]||xY8(O))break;M.push(O)}Q.depthOffset=M.length,Q.commonPath=M,Q.root=jy(M.length>0?k7.join(H,...M):H)}return X}function cY8(q,Z,Q){let Y=[],J=[];for(let H of q.ignore){if(!H)continue;if(H[0]!=="!"||H[1]==="(")J.push(TX(H,q,Q,!0))}for(let H of Z){if(!H)continue;if(H[0]!=="!"||H[1]==="(")Y.push(TX(H,q,Q,!1));else if(H[1]!=="!"||H[2]==="(")J.push(TX(H.slice(1),q,Q,!0))}return{match:Y,ignore:J}}function rY8(q,Z){let Q=q.cwd,Y={root:Q,depthOffset:0},J=cY8(q,Z,Y);if(q.debug)vq("internal processing patterns:",J);let{absolute:H,caseSensitiveMatch:X,debug:G,dot:W,followSymbolicLinks:R,onlyDirectories:B}=q,M=Y.root.replace(Dy,""),V={dot:W,nobrace:q.braceExpansion===!1,nocase:!X,noextglob:q.extglob===!1,noglobstar:q.globstar===!1,posix:!0},$=x5.default(J.match,V),O=x5.default(J.ignore,V),w=NY8(J.match,V),I=Ay(Q,M,H),C=H?I:Ay(Q,M,!0),E=(v,_)=>{let b=C(_,!0);return b!=="."&&!w(b)||O(b)},D;if(q.deep!==void 0)D=Math.round(q.deep-Y.depthOffset);let f=new ah({filters:[G?(v,_)=>{let b=I(v,_),z=$(b)&&!O(b);if(z)vq(`matched ${b}`);return z}:(v,_)=>{let b=I(v,_);return $(b)&&!O(b)}],exclude:G?(v,_)=>{let b=E(v,_);return vq(`${b?"skipped":"crawling"} ${_}`),b}:E,fs:q.fs,pathSeparator:"/",relativePaths:!H,resolvePaths:H,includeBasePath:H,resolveSymlinks:R,excludeSymlinks:!R,excludeFiles:B,includeDirs:B||!q.onlyFiles,maxDepth:D,signal:q.signal}).crawl(M);if(q.debug)vq("internal properties:",{...Y,root:M});return[f,Q!==M&&!H&&uY8(Q,M)]}function iY8(q,Z){if(Z)for(let Q=q.length-1;Q>=0;Q--)q[Q]=Z(q[Q]);return q}var Iy={caseSensitiveMatch:!0,debug:!!process.env.TINYGLOBBY_DEBUG,expandDirectories:!0,followSymbolicLinks:!0,onlyFiles:!0};function dY8(q){let Z=Object.assign({},q);for(let Q in Iy)if(Z[Q]===void 0)Object.assign(Z,{[Q]:Iy[Q]});if(Z.cwd=(Z.cwd instanceof URL?TY8(Z.cwd):FY8(Z.cwd||process.cwd())).replace(Dy,"/"),Z.ignore=Fy(Z.ignore),Z.fs&&(Z.fs={readdir:Z.fs.readdir||wY8,readdirSync:Z.fs.readdirSync||AY8,realpath:Z.fs.realpath||jY8,realpathSync:Z.fs.realpathSync||IY8,stat:Z.fs.stat||DY8,statSync:Z.fs.statSync||CY8}),Z.debug)vq("globbing with options:",Z);return Z}function sY8(q,Z={}){var Q;if(q&&(Z===null||Z===void 0?void 0:Z.patterns))throw Error("Cannot pass patterns as both an argument and an option");let Y=fY8(q)||typeof q==="string",J=Fy((Q=Y?q:q.patterns)!==null&&Q!==void 0?Q:"**/*"),H=dY8(Y?Z:q);return J.length>0?rY8(H,J):[]}function Ty(q,Z){let[Q,Y]=sY8(q,Z);return Q?iY8(Q.sync(),Y):[]}import{dirname as aY8,resolve as oY8}from"node:path";var nY8=/\.svelte$/,tY8=/^(['"])(.*)\1$/;function eY8(q,Z){let Q=q.extends?.import;if(Q===void 0)return null;let Y=Q.replace(tY8,"$2");if(!nY8.test(Y))return null;return oY8(aY8(Z),Y)}function Nq(q,Z){let Q=new Map;for(let Y of q.values()){let J=Z(Y.filePath),H=eY8(Y,J);if(H===null)continue;let X=Q.get(H);if(X===void 0)X=new Set,Q.set(H,X);X.add(J)}return Q}function _Z(q,Z){let Q=new Set,Y=[];for(let J of q)if(!Q.has(J))Q.add(J),Y.push(J);while(Y.length>0){let J=Y.shift(),H=Z.get(J);if(H===void 0)continue;for(let X of H)if(!Q.has(X))Q.add(X),Y.push(X)}return Q}var qJ8=/^```([\w-]*)\r?\n([\s\S]*?)\r?\n?```$/,ZJ8=new Set(["","js","jsx","ts","tsx","javascript","typescript"]);function QJ8(q){let Z=q.trim();if(Z==="")return null;let Q=Z.match(qJ8);if(Q){let Y=Q[1].toLowerCase();if(!ZJ8.has(Y))return null;let J=Q[2].trim();return J===""?null:J}if(Z.startsWith("<"))return null;return Z}function fy(q){if(!q.isFunction)return"any";return`(${(q.params??[]).map((Q)=>`${Q.name}${Q.optional?"?":""}: any`).join(", ")}) => any`}function gZ(q,Z,Q,Y,J){let H=(q??[]).filter((G)=>G.name==="example"),X=[];return H.forEach((G,W)=>{let R=QJ8(G.body);if(R===null)return;let B=H.length>1;X.push({id:B?`${Z}#${W}`:Z,name:B?`${Q} (example ${W+1})`:Q,type:Y,code:R,...J?{source:J}:{}})}),X}function Ky(q){return q.name??"default"}function vy(q){let Z=[];for(let Q of q.props)Z.push(...gZ(Q.tags,`prop:${Q.name}`,Q.name,fy(Q),Q.source));for(let Q of q.moduleExports)Z.push(...gZ(Q.tags,`export:${Q.name}`,Q.name,fy(Q),Q.source));for(let Q of q.slots)Z.push(...gZ(Q.tags,`slot:${Ky(Q)}`,Ky(Q),"any",Q.source));for(let Q of q.events)Z.push(...gZ(Q.tags,`event:${Q.name}`,Q.name,"any",Q.source));return Z}import{createHash as YJ8}from"node:crypto";import{mkdirSync as JJ8,readFileSync as HJ8,writeFileSync as XJ8}from"node:fs";import{dirname as GJ8,isAbsolute as VJ8,join as WJ8,resolve as Ny}from"node:path";var fX=1,$J8=WJ8("node_modules",".cache","sveld","parse-cache.json");function KX(){return`${fZ}+svelte@${TZ}`}function Sy(q,Z){if(typeof Z==="string")return VJ8(Z)?Z:Ny(q,Z);return Ny(q,$J8)}function uy(q){return YJ8("sha256").update(q).digest("hex")}function ky(){return{formatVersion:fX,toolchainVersion:KX(),entries:{}}}function UJ8(q){try{let Z=HJ8(q,"utf-8"),Q=JSON.parse(Z);if(Q.formatVersion!==fX||Q.toolchainVersion!==KX())return ky();return Q}catch{return ky()}}class vX{cacheFilePath;file;next=new Map;blocked=new Set;constructor(q){this.cacheFilePath=q,this.file=UJ8(q)}has(q,Z){if(this.blocked.has(q))return!1;let Q=this.file.entries[q];return Q!==void 0&&Q.hash===Z}get(q,Z){if(this.blocked.has(q))return null;let Q=this.file.entries[q];if(Q===void 0||Q.hash!==Z)return null;if(this.next.set(q,Q),Q.typeScriptMetadata!==void 0)Q.parsed[Dq]=Q.typeScriptMetadata;return Q.parsed}set(q,Z,Q){this.next.set(q,{hash:Z,parsed:Q,typeScriptMetadata:Q[Dq]})}invalidate(q){this.blocked.add(q)}save(){JJ8(GJ8(this.cacheFilePath),{recursive:!0});let q={formatVersion:fX,toolchainVersion:KX(),entries:Object.fromEntries(this.next)};XJ8(this.cacheFilePath,JSON.stringify(q))}}import{existsSync as mZ,lstatSync as _y,readFileSync as wJ8}from"node:fs";import{dirname as my,join as AJ8,relative as jJ8,resolve as py}from"node:path";U6();U6();import{existsSync as hy,readFileSync as RJ8}from"node:fs";import{dirname as NX,isAbsolute as zJ8,join as BJ8,relative as MJ8,resolve as xZ}from"node:path";var lZ=new Map,by=new Map,PJ8=/\/\*[\s\S]*?\*\/|\/\/.*/g,LJ8=/[.+?^${}()|[\]\\]/g;function OJ8(q){let Z=q,Q=xZ(Z,"/");while(Z!==Q){for(let Y of["tsconfig.json","jsconfig.json"]){let J=BJ8(Z,Y);if(hy(J))return J}Z=NX(Z)}return null}function yy(q){if(lZ.has(q))return lZ.get(q)??null;try{let Q=RJ8(q,"utf-8").replace(PJ8,""),Y=bh(JSON.parse(Q));if(Y.extends){let J=zJ8(Y.extends)?Y.extends:xZ(NX(q),Y.extends),H=J.endsWith(".json")?J:`${J}.json`;if(hy(H)){let X=yy(H);if(X)Y.compilerOptions={...X.compilerOptions,...Y.compilerOptions,paths:{...X.compilerOptions?.paths,...Y.compilerOptions?.paths}}}}return lZ.set(q,Y),Y}catch{return lZ.set(q,null),null}}function kq(q,Z){if(q.startsWith(".")||q.startsWith("/"))return q;let Q=OJ8(Z);if(!Q)return q;let Y=yy(Q);if(!Y?.compilerOptions?.paths)return q;let{baseUrl:J=".",paths:H}=Y.compilerOptions,X=NX(Q),G=xZ(X,J);for(let[W,R]of Object.entries(H)){let B=by.get(W);if(!B){let V=W.split("*").map(($)=>$.replace(LJ8,"\\$&")).join("(.*)");B=new RegExp(`^${V}$`),by.set(W,B)}let M=q.match(B);if(M){let V=R[0];if(!V)continue;let $=V;for(let w=1;w<M.length;w++)$=$.replace("*",M[w]);return xZ(G,$)}}return q}function Sq(q,Z){if(q.startsWith(".")||q.startsWith("/"))return q;let Q=kq(q,Z);if(Q===q)return q;let Y=MJ8(Z,Q);return Y=v0(Y),Y.startsWith(".")?Y:`./${Y}`}var gy=[".ts",".mts",".cts",".tsx",".js",".mjs",".cjs",".jsx",".d.ts"],IJ8=/\r?\n/,DJ8=/^\s*\*+/;function N0(q){return q&&typeof q==="object"?q:void 0}function uq(q){return Array.isArray(q)?q:[]}function x9(q){if(q&&q.type==="Identifier"&&typeof q.name==="string")return q.name;return}function kX(q,Z){let Q=kq(q,Z),Y=py(Z,Q);if(mZ(Y)&&_y(Y).isFile())return Y;for(let J of gy){let H=Y+J;if(mZ(H))return H}if(mZ(Y)&&_y(Y).isDirectory())for(let J of gy){let H=AJ8(Y,`index${J}`);if(mZ(H))return H}return null}function CJ8(q,Z){let Q=q.slice(0,Z).trimEnd();if(!Q.endsWith("*/"))return;let Y=Q.length-2,J=Q.lastIndexOf("/**",Y);if(J===-1)return;let H=[];for(let X of Q.slice(J+3,Y).split(IJ8)){let G=X.replace(DJ8,"").trim();if(G.startsWith("@"))break;if(G)H.push(G)}return H.join(" ")||void 0}function m5(q,Z){if(!Z)return;return q.text.slice(Z.start,Z.end)}function EJ8(q,Z){let Q=N0(Z?.typeAnnotation);if(Q?.type!=="TSTypeAnnotation")return;return m5(q,N0(Q.typeAnnotation))}function ly(q,Z){let Q=uq(Z.params).map((H)=>m5(q,H)??"").join(", "),Y=N0(Z.returnType),J=Y?.type==="TSTypeAnnotation"?m5(q,N0(Y.typeAnnotation)):void 0;return`(${Q})${J?` => ${J}`:""}`}function FJ8(q){if(q.type==="Literal"){let Z=q.value;if(typeof Z==="string")return"string";if(typeof Z==="number")return"number";if(typeof Z==="boolean")return"boolean"}if(q.type==="TemplateLiteral")return"string";return}function xy(q,Z,Q){let Y=q.filePath,J=CJ8(q.text,Q);if(Z.type==="VariableDeclaration"){let H=Z.kind??"const",X=[];for(let G of uq(Z.declarations)){let W=N0(G.id),R=x9(W);if(!R)continue;let B=EJ8(q,W),M,V=N0(G.init);if(V){if(V.type==="ArrowFunctionExpression"||V.type==="FunctionExpression"){if(!B)B=ly(q,V)}else if(M=m5(q,V),!B)B=FJ8(V)}X.push({name:R,kind:H,type:B,value:M,description:J,declFile:Y,isTypeOnly:!1})}return X}if(Z.type==="FunctionDeclaration"){let H=x9(N0(Z.id));if(!H)return[];return[{name:H,kind:"function",type:ly(q,Z),description:J,declFile:Y,isTypeOnly:!1}]}if(Z.type==="ClassDeclaration"){let H=x9(N0(Z.id));if(!H)return[];return[{name:H,kind:"class",type:H,description:J,declFile:Y,isTypeOnly:!1}]}if(Z.type==="TSTypeAliasDeclaration"){let H=x9(N0(Z.id));if(!H)return[];return[{name:H,kind:"type",type:m5(q,N0(Z.typeAnnotation)),description:J,declFile:Y,isTypeOnly:!0}]}if(Z.type==="TSInterfaceDeclaration"){let H=x9(N0(Z.id));if(!H)return[];return[{name:H,kind:"interface",type:m5(q,N0(Z.body)),description:J,declFile:Y,isTypeOnly:!0}]}if(Z.type==="TSEnumDeclaration"){let H=x9(N0(Z.id));if(!H)return[];return[{name:H,kind:"enum",type:H,description:J,declFile:Y,isTypeOnly:!1}]}return[]}function TJ8(q){let Z;try{Z=wJ8(q,"utf-8")}catch{return null}let Q=`<script lang="ts">
|
|
276
|
-
${Z}
|
|
277
|
-
</script>`;try{let Y=r6(Q,{modern:!0}),J=uq(Y.instance?.content?.body);return{source:{text:Q,filePath:q,dir:my(q)},body:J}}catch{return null}}function fJ8(q,Z){for(let Q of q){if(Q.type!=="ImportDeclaration")continue;let Y=N0(Q.source)?.value;if(typeof Y!=="string")continue;for(let J of uq(Q.specifiers)){if(J.type!=="ImportSpecifier")continue;if(x9(N0(J.local))===Z){let H=x9(N0(J.imported))??Z;return{specifier:Y,importedName:H}}}}return null}function pZ(q,Z){let Q=Z.cache.get(q);if(Q)return Q;if(Z.computing.has(q))return[];Z.computing.add(q);let Y=TJ8(q);if(!Y)return Z.computing.delete(q),Z.cache.set(q,[]),[];let{source:J,body:H}=Y,X=[],G=new Map;for(let R of H){let B=R.type==="ExportNamedDeclaration"?N0(R.declaration):R;if(!B)continue;for(let M of xy(J,B,B.start))G.set(M.name,M)}let W=(R)=>{let B=G.get(R);if(B)return B;let M=fJ8(H,R);if(!M||M.specifier.endsWith(".svelte"))return null;let V=kX(M.specifier,J.dir);if(!V)return null;return pZ(V,Z).find(($)=>$.name===M.importedName)??null};for(let R of H){if(R.type==="ExportAllDeclaration"){let O=N0(R.source)?.value;if(typeof O!=="string"||O.endsWith(".svelte"))continue;let w=kX(O,J.dir);if(!w)continue;let I=R.exportKind==="type";for(let C of pZ(w,Z))X.push(I?{...C,isTypeOnly:!0}:C);continue}if(R.type!=="ExportNamedDeclaration")continue;let B=N0(R.declaration);if(B){X.push(...xy(J,B,R.start));continue}let M=N0(R.source)?.value,V=typeof M==="string"?M:void 0;if(V?.endsWith(".svelte"))continue;let $=R.exportKind==="type";for(let O of uq(R.specifiers)){if(O.type!=="ExportSpecifier")continue;let w=x9(N0(O.exported)),I=x9(N0(O.local));if(!w||!I||I==="default"||w==="default")continue;let C=$||O.exportKind==="type",E=null;if(V){let D=kX(V,J.dir);if(D)E=pZ(D,Z).find((f)=>f.name===I)??null}else E=W(I);if(E?.declFile.endsWith(".svelte"))continue;if(E)X.push({...E,name:w,isTypeOnly:E.isTypeOnly||C});else X.push({name:w,kind:C?"type":"const",declFile:q,isTypeOnly:C})}}return Z.computing.delete(q),Z.cache.set(q,X),X}function cZ(q){let Z=py(q),Q=my(Z),Y=pZ(Z,{cache:new Map,computing:new Set}),J=new Map;for(let H of Y){let{declFile:X,...G}=H,W=v0(`./${jJ8(Q,X)}`);J.set(H.name,{...G,source:W})}return Array.from(J.values()).sort((H,X)=>H.name.localeCompare(X.name))}import{lstatSync as KJ8,readdirSync as vJ8,readFileSync as NJ8}from"node:fs";import{dirname as kJ8,join as cy,resolve as SJ8}from"node:path";U6();var ry=new Map;function uJ8(q){return yY(q,{ecmaVersion:"latest",sourceType:"module"})}function SX(q,Z){let Q=ry.get(q);if(!Q)Q=uJ8(q),ry.set(q,Q);let Y={};for(let J of Q.body)if(J.type==="ExportDefaultDeclaration"){let H=J.declaration.name;if(H in Y)Y[H].default=!0;else Y[H]={source:$6(""),default:!0}}else if(J.type==="ExportAllDeclaration"){if(!J.source)continue;let H=kq(J.source.value,Z),X=SJ8(Z,H);if(!KJ8(X).isFile()){let R=vJ8(X);for(let B of R)if(B.includes("index")){X=cy(X,B);break}}let G=NJ8(X,"utf-8"),W=SX(G,kJ8(X));for(let[R,B]of Object.entries(W)){let M=$6(v0(`./${cy(J.source.value,B.source)}`));Y[R]={...B,source:M}}}else if(J.type==="ExportNamedDeclaration")for(let H of J.specifiers){let X=H.exported.name,G=H.local.name,W=X||G;if(W in Y){if(J.type==="ExportNamedDeclaration")Y[W].mixed=!0;if(!Y[W].source)Y[W].source=$6(Sq(J.source?.value??"",Z))}else Y[W]={source:$6(Sq(J.source?.value??"",Z)),default:G==="default"}}else if(J.type==="ImportDeclaration"){let H=J.specifiers[0].local.name;if(H in Y){if(!Y[H].source)Y[H].source=$6(Sq(J.source?.value??"",Z))}else Y[H]={source:$6(Sq(J.source?.value??"",Z)),default:H==="default"}}return Y}U6();function p7(q){return{failFast:q?.failFast,resolveTypes:q?.resolveTypes===!0,documentExports:q?.documentExports===!0,cache:q?.cache,checkExamples:q?.checkExamples===!0}}var C$8=/<style.+?<\/style>/gims,E$8=/-/g;function F$8(q){if(!q.includes("<style"))return q;try{let Z=r6(q,{modern:!1}),Q=Z.css?.start,Y=Z.css?.end;if(Q===void 0||Y===void 0)return q;return`${q.slice(0,Q)}${q.slice(Y)}`}catch{return q.replace(C$8,"")}}function uQ(q,Z,Q=!1){let Y=Ic(q).isFile(),J=Y?j$8(q):q,H=J4(J),X=(R)=>I$8(R)?J4(R):J4(H,R),G={};if(Y){let R=w$8(q,"utf-8");try{G=SX(R,H)}catch(B){if(!Q)throw B;let M=B instanceof Error?B.message:String(B);console.warn(`Warning: Failed to parse component exports from ${q}: ${M}`)}}let W={...G};if(Z)for(let R of Ty(["**/*.svelte"],{cwd:H,absolute:!0})){let B=J4(R),M=JV(B).name.replace(E$8,""),V=$6(v0(`./${D$8(H,B)}`));if(G[M])G[M].source=V;if(W[M])W[M].source=V;else W[M]={source:V,default:!1}}return{exports:G,allComponents:W,rootDir:H,resolveComponentFilePath:X}}async function H4(q){let Z=await Promise.all(Array.from(q).map(async(Q)=>{try{let Y=await A$8(Q,"utf-8");return{path:Q,content:Y}}catch(Y){return console.warn(`Warning: Failed to read file ${Q}:`,Y),{path:Q,content:null}}}));return new Map(Z.map(({path:Q,content:Y})=>[Q,Y]))}function P6([q,Z],Q,Y,J,H={}){let X=Z.source,{ext:G,name:W}=JV(X),R=q;if(Q.length===1&&q==="default")R=W;if(G===".svelte"){let B=J(X),M=Y.get(B);if(M===null||M===void 0)return null;let V=v0(X),$=H.memo?.get(B),O=H.hashes?.get(B),w=$===void 0?O===void 0?null:H.cache?.get(B,O):null,I;if($!==void 0)I=$;else if(w)I=w;else{let C=new D0;try{I=C.parseSvelteComponent(F$8(M),{moduleName:R,filePath:V})}catch(E){if(H.failFast)throw E;let D=E instanceof Error?E.message:String(E),f=E instanceof Error?E.stack:void 0;return H.onParseError?.({filePath:V,moduleName:R,message:D,stack:f}),null}if(O!==void 0)H.cache?.set(B,O,I);H.memo?.set(B,I)}return{moduleName:R,filePath:V,...I}}return null}function bQ(q,Z){let Q=new Set;for(let Y of q)for(let[,J]of Y)if(JV(J.source).ext===".svelte")Q.add(Z(J.source));return Q}function X4(q){if(q.length===0)return;console.error(`sveld: failed to parse ${q.length} component(s):`);for(let{filePath:Z,message:Q}of q)console.error(` - ${Z}: ${Q}`)}async function c7(q,Z,Q={}){let Y=Q.documentExports===!0,{exports:J,allComponents:H,rootDir:X,resolveComponentFilePath:G}=uQ(q,Z,Y),W=Y&&Ic(q).isFile()?cZ(J4(q)):[],R=Object.entries(J),B=Object.entries(H),M=bQ([R,B],G),V=await H4(M),$=new Map,O=new Map,w=Q.cache===!1?void 0:new vX(Sy(X,Q.cache??!0)),I=new Set,C=new Map;if(w)for(let P of M){let L=V.get(P);if(L===null||L===void 0)continue;let A=uy(L);if(C.set(P,A),!w.has(P,A))I.add(P)}let E=new Map,D=new Map,f={failFast:Q.failFast===!0,onParseError:(P)=>E.set(P.filePath,P),cache:w,hashes:C,memo:D};for(let P of R){let L=P6(P,R,V,G,f);if(L)$.set(L.moduleName,L)}for(let P of B){let L=P6(P,B,V,G,f);if(L)O.set(L.moduleName,L)}if(w&&I.size>0){let P=Nq(O,G),L=_Z(I,P);for(let A of L){if(I.has(A))continue;w.invalidate(A),D.delete(A)}for(let A of R){let T=G(A[1].source);if(!L.has(T)||I.has(T))continue;let h=P6(A,R,V,G,f);if(h)$.set(h.moduleName,h)}for(let A of B){let T=G(A[1].source);if(!L.has(T)||I.has(T))continue;let h=P6(A,B,V,G,f);if(h)O.set(h.moduleName,h)}}let v=Array.from(E.values());X4(v),w?.save();let _=Q.resolveTypes?T$8($):[],b=Q.checkExamples?K$8(O):[];if(_.length>0||b.length>0){let{TypeResolver:P}=await Promise.resolve().then(() => (jc(),Ac)),L=await P.create(X);try{if(_.length>0)await f$8(_,L,G);if(b.length>0)await v$8(b,L,G)}finally{await L?.dispose()}}let z=kZ(Array.from(O.values()).flatMap((P)=>P.diagnostics??[]));return{exports:J,entryExports:W,components:$,allComponentsForTypes:O,errors:v,diagnostics:z}}function T$8(q){let Z=[];for(let Q of q.values()){let Y=FZ(Q);if(!Y?.canonicalPropsType||Q.props.length>0)continue;Z.push({component:Q,metadata:Y})}return Z}async function f$8(q,Z,Q){if(!Z)return;let Y=await Z.expandAll(q.map(({component:J,metadata:H})=>({moduleName:J.moduleName,metadata:H,filePath:Q(J.filePath)})));for(let{component:J}of q){let H=Y.get(J.moduleName);if(H)Fh(J,H)}}function K$8(q){let Z=[];for(let Q of q.values()){let Y=vy(Q);if(Y.length===0)continue;Z.push({component:Q,sources:Y})}return Z}async function v$8(q,Z,Q){if(!Z)return;let Y=await Z.checkExamples(q.map(({component:J,sources:H})=>({moduleName:J.moduleName,filePath:Q(J.filePath),sources:H})));for(let{component:J,sources:H}of q){let X=Y.get(J.moduleName);if(!X||X.length===0)continue;let G=new Map(H.map((R)=>[R.id,R.source])),W=J.diagnostics??[];for(let R of X){let B=G.get(R.id);W.push({component:J.filePath,kind:"example-compile-error",name:R.name,message:R.message,...B?{source:B}:{}})}J.diagnostics=W}}import{lstatSync as N$8}from"node:fs";import{resolve as Dc}from"node:path";var k$8=/\.svelte$/;async function Cc(q,Z,Q=!1){let{exports:Y,allComponents:J,resolveComponentFilePath:H}=uQ(q,Z,Q),X=Q&&N$8(q).isFile()?cZ(Dc(q)):[],G=Object.entries(Y),W=Object.entries(J),R=new Map,B=new Map,M=new Map,V={onParseError:(C)=>M.set(C.filePath,C)},$=()=>({exports:Y,entryExports:X,components:R,allComponentsForTypes:B,errors:Array.from(M.values()),diagnostics:kZ(Array.from(B.values()).flatMap((C)=>C.diagnostics??[]))});{let C=bQ([G,W],H),E=await H4(C);for(let D of G){let f=P6(D,G,E,H,V);if(f)R.set(f.moduleName,f)}for(let D of W){let f=P6(D,W,E,H,V);if(f)B.set(f.moduleName,f)}X4($().errors)}let O=Nq(B,H),w=(C,E,D,f)=>{let v=new Set;for(let _ of E){let b=H(_[1].source);if(!D.has(b))continue;let z=P6(_,E,f,H,V);if(z)C.set(z.moduleName,z),v.add(b);else for(let[P,L]of C)if(H(L.filePath)===b)C.delete(P)}return v};return{get result(){return $()},update:async(C)=>{let E=C.filter((b)=>k$8.test(b)).map((b)=>Dc(b));if(E.length===0)return{result:$(),reparsed:[]};let D=_Z(E,O);for(let[b,z]of M)if(D.has(H(z.filePath)))M.delete(b);let f=await H4(D),v=new Set;for(let b of w(R,G,D,f))v.add(b);for(let b of w(B,W,D,f))v.add(b);O=Nq(B,H);let _=$();return X4(_.errors),{result:_,reparsed:Array.from(v)}}}}var HV=new Map;function Q2(q){HV.set(q.name,q)}function hQ(q){return HV.get(q)}function S$8(){return Array.from(HV.values())}U6();import XV from"node:path";import{mkdir as u$8,writeFile as b$8}from"node:fs/promises";import{parse as h$8}from"node:path";class Y2{async write(q,Z){await u$8(h$8(q).dir,{recursive:!0}),await b$8(q,Z)}}function G4(){return new Y2}function Ec(){return new Y2}var y$8=new Set(["string","number","boolean"]);function _$8(q){return q.map((Z)=>({kind:"field",name:Z.name,...Z.type?{type:{text:Z.type}}:{},...Z.value===void 0?{}:{default:Z.value},...Z.description?{description:Z.description}:{},...Z.deprecated===void 0?{}:{deprecated:Z.deprecated}}))}function g$8(q){let Z=new Map;for(let Y of q){if(!Y.type||!y$8.has(Y.type.trim()))continue;let J=Y.name.toLowerCase(),H=Z.get(J);if(H)H.push(Y);else Z.set(J,[Y])}let Q=[];for(let[Y,J]of Z){if(J.length!==1)continue;let H=J[0];Q.push({name:Y,fieldName:H.name,type:{text:H.type},...H.value===void 0?{}:{default:H.value},...H.description?{description:H.description}:{}})}return Q}function l$8(q){return q.filter((Z)=>Z.type==="dispatched").map((Z)=>({name:Z.name,type:{text:`CustomEvent<${Z.detail??"unknown"}>`},...Z.description?{description:Z.description}:{},...Z.deprecated===void 0?{}:{deprecated:Z.deprecated}}))}function x$8(q){return q.map((Z)=>({name:Z.default?"":Z.name??"",...Z.description?{description:Z.description}:{},...Z.deprecated===void 0?{}:{deprecated:Z.deprecated}}))}function m$8(q){let Z={kind:"class",name:q.moduleName,...q.componentComment?{description:q.componentComment}:{},members:_$8(q.props),attributes:g$8(q.props),events:l$8(q.events),slots:x$8(q.slots)};if(q.customElementTag)Z.tagName=q.customElementTag,Z.customElement=!0;return Z}function p$8(q,Z){let Q=[{kind:"js",name:q.moduleName,declaration:{name:q.moduleName,module:Z}}];if(q.customElementTag)Q.push({kind:"custom-element-definition",name:q.customElementTag,declaration:{name:q.moduleName,module:Z}});return Q}function Fc(q,Z={}){let Q=t1(q),Y=Z.resolveModulePath??((H)=>H.filePath);return{schemaVersion:"1.0.0",modules:Q.components.map((H)=>{let X=Y(H);return{kind:"javascript-module",path:X,declarations:[m$8(H)],exports:p$8(H,X)}})}}function c$8(q,Z){return v0(XV.join(Z,XV.normalize(q.filePath)))}async function GV(q,Z){let Q=Fc(q,{resolveModulePath:(H)=>c$8(H,Z.inputDir)}),Y=XV.join(process.cwd(),Z.outFile);await G4().write(Y,`${JSON.stringify(Q,null,2)}
|
|
278
|
-
`),console.log(`created "${Z.outFile}".`)}U6();import V4 from"node:path";function Tc(q,Z){return q.map((Q)=>({...Q,filePath:v0(V4.join(Z,V4.normalize(Q.filePath)))}))}async function r$8(q,Z){let Q=t1(q),Y=Tc(Q.components,Z.inputDir);await Promise.all(Y.map((J)=>{let H=V4.resolve(V4.join(Z.outDir||"",`${J.moduleName}.api.json`)),X=G4();return console.log(`created "${H}".`),X.write(H,`${JSON.stringify(J,null,2)}
|
|
279
|
-
`)}))}async function i$8(q,Z){let Q=t1(q,{entryExports:Z.entryExports}),Y={...Q,components:Tc(Q.components,Z.inputDir)},J=V4.join(process.cwd(),Z.outFile);await G4().write(J,`${JSON.stringify(Y,null,2)}
|
|
280
|
-
`),console.log(`created "${Z.outFile}".`)}async function VV(q,Z){if(Z.outDir)await r$8(q,Z);else await i$8(q,Z)}import{join as pU8}from"node:path";var fc=/^[}\])>]/,d$8=new Set(["{","(","["]),s$8=new Set(["}",")","]"]);var a$8=/\binterface\s+[A-Za-z_$][\w$]*(\s*<[^{};]*>)?\s*$/,Kc=/[ \t]+$/,o$8=/\s+$/,n$8=/[{([]$/,t$8=/\s/;function e$8(q){return a$8.test(q.slice(-200))}function qU8(q){let Z="",Q=null,Y=!1;for(let J=0;J<q.length;J++){let H=q[J],X=q[J-1];if(Q){if(Z+=H,Q==="double"&&H==='"'&&X!=="\\"||Q==="single"&&H==="'"&&X!=="\\"||Q==="template"&&H==="`"&&X!=="\\")Q=null;Y=!1;continue}if(H==='"'||H==="'"||H==="`"){Q=H==='"'?"double":H==="'"?"single":"template",Z+=H,Y=!1;continue}if(t$8.test(H)){if(!Y&&Z.length>0)Z+=" ",Y=!0;continue}Z+=H,Y=!1}return Z.trimEnd()}function ZU8(q,Z){let Q=0,Y="normal";for(let J=Z;J<q.length;J++){let H=q[J],X=q[J-1];if(Y==="blockComment"){if(X==="*"&&H==="/")Y="normal";continue}if(Y==="double"||Y==="single"){if(H===(Y==="double"?'"':"'")&&X!=="\\")Y="normal";continue}if(Y==="template"){if(H==="`"&&X!=="\\")Y="normal";continue}if(H==="/"&&q[J+1]==="*")Y="blockComment";else if(H==='"')Y="double";else if(H==="'")Y="single";else if(H==="`")Y="template";else if(H==="{")Q++;else if(H==="}"){if(Q--,Q===0)return J}}return-1}function vc(q){let Z="",Q="normal";for(let Y=0;Y<q.length;Y++){let J=q[Y],H=q[Y-1];if(Q==="blockComment"){if(Z+=J,H==="*"&&J==="/")Q="normal";continue}if(Q==="double"||Q==="single"){if(Z+=J,J===(Q==="double"?'"':"'")&&H!=="\\")Q="normal";continue}if(Q==="template"){if(Z+=J,J==="`"&&H!=="\\")Q="normal";continue}if(J==="/"&&q[Y+1]==="*"){Q="blockComment",Z+=J;continue}if(J==='"'){Q="double",Z+=J;continue}if(J==="'"){Q="single",Z+=J;continue}if(J==="`"){Q="template",Z+=J;continue}if(J==="{"){let X=ZU8(q,Y);if(X===-1){Z+=J;continue}let G=q.slice(Y+1,X);if(G.trim()===""){Z+="{}",Y=X;continue}if(!G.includes("/*")&&q[Y+1]!==`
|
|
281
|
-
`&&!e$8(Z)){let W=vc(G).trim();if(!W.includes(`
|
|
282
|
-
`)){let R=W.endsWith(";")?W.slice(0,-1):W,B=`{ ${qU8(R)} }`;if(B.length<=120){Z+=B,Y=X;continue}}}if(Z+=J,q[Y+1]!==`
|
|
283
|
-
`)Z+=`
|
|
284
|
-
`;continue}if(J==="}"){if(Z=Z.replace(Kc,""),!Z.endsWith(`
|
|
285
|
-
`))Z+=`
|
|
286
|
-
`;Z+=J;continue}if(J===";"){if(Z=Z.replace(o$8,""),Z+=";",q[Y+1]!==`
|
|
287
|
-
`)Z+=`
|
|
288
|
-
`;continue}Z+=J}return Z}function QU8(q){let Z="",Q=null;for(let Y=0;Y<q.length;Y++){let J=q[Y],H=q[Y-1];if(Q){if(Z+=J,Q==="double"&&J==='"'&&H!=="\\"||Q==="single"&&J==="'"&&H!=="\\"||Q==="template"&&J==="`"&&H!=="\\")Q=null;continue}if(J==='"'||J==="'"||J==="`"){Q=J==='"'?"double":J==="'"?"single":"template",Z+=J;continue}if(J===" "&&Z.endsWith(" "))continue;Z+=J}return Z}function YU8(q){let Z=q.split(`
|
|
289
|
-
`),Q=[],Y=0,J=!1,H=0;for(let X of Z){let G=X.trim();if(G===""){Q.push("");continue}if(J){if(Q.push(`${" ".repeat(H)} ${G}`),G.includes("*/"))J=!1;continue}if(G.startsWith("/**")&&!G.includes("*/")){Q.push(" ".repeat(Y)+G),J=!0,H=Y;continue}let W=QU8(G),R=fc.test(W),B=Math.max(0,Y-(R?1:0));if(Q.push(" ".repeat(B)+W),W.startsWith("/**")&&W.includes("*/"))continue;let M=null;for(let V=0;V<W.length;V++){let $=W[V],O=W[V-1];if(M){if(M==="double"&&$==='"'&&O!=="\\"||M==="single"&&$==="'"&&O!=="\\"||M==="template"&&$==="`"&&O!=="\\")M=null;continue}if($==='"')M="double";else if($==="'")M="single";else if($==="`")M="template";else if(d$8.has($))Y++;else if(s$8.has($))Y=Math.max(0,Y-1);else if($==="<")Y++;else if($===">"&&O!=="=")Y=Math.max(0,Y-1)}}return Q.join(`
|
|
290
|
-
`)}function JU8(q){let Z=q.split(`
|
|
291
|
-
`).map((Y)=>Y.replace(Kc,"")),Q=[];for(let Y of Z){let J=Y==="",H=Q.length>0&&Q[Q.length-1]==="",X=Q.length>0&&n$8.test(Q[Q.length-1]);if(J){if(Q.length===0||H||X)continue;Q.push(Y);continue}if(fc.test(Y)&&H)Q.pop();Q.push(Y)}while(Q.length>0&&Q[Q.length-1]==="")Q.pop();return Q.join(`
|
|
292
|
-
`)}function Nc(q){let Z=vc(q),Q=YU8(Z);return`${JU8(Q)}
|
|
293
|
-
`}var e6="any",Q9="",HU8="Record<string, any>",$V="Record<string, never>",XU8=/(-|\s+|:)/,GU8=/("|')/,VU8=/CustomEvent/,WU8=/^[A-Z]/,$U8=/\n/,kc=/=>/,UU8=/(?:^|\n)@default\b/,UV=/\n/g,RU8=/\s+/g,zU8=/(^|[^.\w])Snippet(?:\s*<|\b)/,BU8=/import\s+type\s+[^;]*\bSnippet\b[^;]*from\s+"svelte";/,MU8=/[.*+?^${}()|[\]\\]/g;function PU8(q){if(!q)return;return q.replace(UV,`
|
|
294
|
-
* `)}function yQ(q){if(!q)return"";return`/** ${q} */`}function _Q(q){if(!q)return"";return`/**
|
|
295
|
-
* ${q.replace(UV,`
|
|
296
|
-
* `)}
|
|
297
|
-
*/`}function Sc(q){if(q===void 0)return;return q===!0?"@deprecated":`@deprecated ${q}`}function LU8(q){let Z=Sc(q);if(Z===void 0)return;return`* ${Z.replace(UV,`
|
|
298
|
-
* `)}
|
|
299
|
-
`}function OU8(q,Z){if(!Z)return[`@${q}`];if(!Z.includes(`
|
|
300
|
-
`))return[`@${q} ${Z}`];return[`@${q}`,...Z.split(`
|
|
301
|
-
`)]}function uc(q){let Z=[];for(let{name:Q,body:Y}of q??[])Z.push(...OU8(Q,Y));return Z}function W4(q,Z,Q){let Y=Sc(Q),J=uc(Z),H=J.length>0;if(!q&&!H&&!Y)return"";if(!H&&!Y)return q?.includes(`
|
|
302
|
-
`)?_Q(q):yQ(q);let X=[];if(q)X.push(...q.split(`
|
|
303
|
-
`));if(X.push(...J),Y)X.push(...Y.split(`
|
|
304
|
-
`));return`/**
|
|
305
|
-
* ${X.join(`
|
|
306
|
-
* `)}
|
|
307
|
-
*/`}function wU8(q){let Z=uc(q);if(Z.length===0)return"";return Z.map((Q)=>`* ${Q}
|
|
308
|
-
`).join("")}function gQ(q){if(q===void 0)return e6;return`${q}
|
|
309
|
-
`}function lQ(q){if(q.typedefs.length===0)return Q9;return q.typedefs.map((Z)=>{return`${Z.description?`${_Q(Z.description)}
|
|
310
|
-
`:""}export ${Z.ts}`}).join(`
|
|
311
|
-
|
|
312
|
-
`)}function bc(q,Z){let Q=Z.replace(MU8,"\\$&");return new RegExp(`\\b${Q}\\b`).test(q)}function AU8(q){if(q===null)return[];return q[0].split(",").map((Z,Q)=>({name:Z.trim(),constraint:(y5(q[1]??"")[Q]??Z).trim()}))}function jU8(q,Z){let Q=AU8(q).filter(({name:Y})=>bc(Z,Y));if(Q.length===0)return{declSuffix:Q9,refSuffix:Q9};return{declSuffix:`<${Q.map(({constraint:Y})=>Y).join(", ")}>`,refSuffix:`<${Q.map(({name:Y})=>Y).join(", ")}>`}}function hc(q){if(!q.contexts||q.contexts.length===0)return Q9;let Z=q.generics===null?[]:q.generics[0].split(",").map((Q,Y)=>({name:Q.trim(),constraint:(y5(q.generics?.[1]??"")[Y]??Q).trim()}));return q.contexts.map((Q)=>{let Y=Q.properties.map((G)=>{let W=G.description?`${yQ(G.description)}
|
|
313
|
-
`:"",R=G.optional?"?":"";return`${W}${G.name}${R}: ${G.type};`}).join(`
|
|
314
|
-
`),J=Q.description?`${_Q(Q.description)}
|
|
315
|
-
`:"",H=Z.filter(({name:G})=>Q.properties.some((W)=>bc(W.type,G))).map(({constraint:G})=>G),X=H.length>0?`<${H.join(", ")}>`:"";if(Q.properties.length===0)return`${J}export type ${Q.typeName} = Record<string, never>;`;return`${J}export type ${Q.typeName}${X} = {
|
|
316
|
-
${Y}
|
|
317
|
-
};`}).join(`
|
|
318
|
-
|
|
319
|
-
`)}function $4(q){if(XU8.test(q))return GU8.test(q)?q:`"${q}"`;return q}function yc(q,Z){if(!q)return;return`* ${Z||q}
|
|
320
|
-
`}function RV(q,Z,Q){return[yc(PU8(q)),LU8(Z),wU8(Q)].filter(Boolean).join("")}function zV(q){return q.length>0?`/**
|
|
321
|
-
${q}*/`:Q9}function IU8(q){let Z=new Set([...q.props.filter((w)=>!w.isFunctionDeclaration&&w.kind!=="const").map((w)=>w.name),...Array.from(q.canonicalPropNames??[])]),Q=q.props.filter((w)=>!w.isFunctionDeclaration&&w.kind!=="const").map((w)=>{let I=w.value;if(typeof w.value==="string")I=w.value.replace(RU8," ");if(w.value===void 0)I="undefined";let C=UU8.test(w.description??""),E=[RV(w.description,w.deprecated,w.tags),yc(w.constant,"@constant"),w.isFunction||C?null:`* @default ${I}
|
|
322
|
-
`].filter(Boolean).join(""),D=w.constant&&!w.isFunction?w.value:w.type;return`
|
|
323
|
-
${zV(E)}
|
|
324
|
-
${w.name}${w.isRequired?"":"?"}: ${D};`}),Y=q.canonicalPropsType?Q.filter((w,I)=>{let C=q.props.filter((E)=>!E.isFunctionDeclaration&&E.kind!=="const")[I];return C?!(q.canonicalPropNames?.has(C.name)??!1):!0}):Q,J=(q.slots||[]).filter((w)=>!w.default&&w.name!=null&&!Z.has(w.name)).map((w)=>{let I=w.name,C=$4(I),E=W4(w.description,w.tags,w.deprecated),D=E?`${E}
|
|
325
|
-
`:"",v=w.slot_props&&w.slot_props!=="Record<string, never>"?`(this: void, ...args: [${w.slot_props}]) => void`:"(this: void) => void";return`
|
|
326
|
-
${D}${C}?: ${v};`}),H=(q.slots||[]).find((w)=>w.default||w.name===null),X=H&&!Z.has("children")?(()=>{let w=W4(H.description,H.tags,H.deprecated),I=w?`${w}
|
|
327
|
-
`:"",E=H.slot_props&&H.slot_props!=="Record<string, never>"?`(this: void, ...args: [${H.slot_props}]) => void`:"(this: void) => void";return`
|
|
328
|
-
${I}children?: ${E};`})():"",G=q.events?fU8({events:q.events},Z):[],W=[...J,X,...G].filter(Boolean),R=[...Y,...W].join(`
|
|
329
|
-
`),B=`${q.moduleName}Props`,M=Q9,V=q.generics?`<${q.generics[1]}>`:"",$=q.generics?`<${q.generics[0]}>`:"",O=q.canonicalPropsType?`
|
|
330
|
-
type $Props${V} = ${q.canonicalPropsType}${R.trim()===""?"":` & {${R}
|
|
331
|
-
}`};
|
|
332
|
-
`:`
|
|
333
|
-
type $Props${V} = {
|
|
334
|
-
${R}
|
|
335
|
-
};
|
|
336
|
-
`;if(q.rest_props?.type==="Element"){let w;if(q.rest_props.name==="svelte:element")if(q.rest_props.thisValue)w=`SvelteHTMLElements["${q.rest_props.thisValue}"]`;else w="HTMLAttributes<HTMLElement>";else w=q.rest_props.name.split("|").map((E)=>{return`SvelteHTMLElements["${E.trim()}"]`}).join(" & ");let I="[key: `data-${string}`]: unknown;",C=q.rest_props.description?q.rest_props.description.includes(`
|
|
337
|
-
`)?`${_Q(q.rest_props.description)}
|
|
338
|
-
`:`${yQ(q.rest_props.description)}
|
|
339
|
-
`:"";if(q.extends===void 0)M=`
|
|
340
|
-
${C}${w?`type $RestProps = ${w};
|
|
341
|
-
`:""}
|
|
342
|
-
${q.canonicalPropsType?`type $Props${V} = (${q.canonicalPropsType}) & {${R}
|
|
343
|
-
|
|
344
|
-
${I}
|
|
345
|
-
};`:`type $Props${V} = {
|
|
346
|
-
${R}
|
|
347
|
-
|
|
348
|
-
${I}
|
|
349
|
-
};`}
|
|
350
|
-
|
|
351
|
-
export type ${B}${V} = Omit<$RestProps, keyof $Props${$}> & $Props${$};
|
|
352
|
-
`;else M=`
|
|
353
|
-
${C}${w?`type $RestProps = ${w};
|
|
354
|
-
`:""}
|
|
355
|
-
${q.canonicalPropsType?`type $Props${V} = (${q.canonicalPropsType}) & {${R}
|
|
356
|
-
|
|
357
|
-
${I}
|
|
358
|
-
};`:`type $Props${V} = {
|
|
359
|
-
${R}
|
|
360
|
-
|
|
361
|
-
${I}
|
|
362
|
-
};`}
|
|
363
|
-
|
|
364
|
-
export type ${B}${V} = Omit<$RestProps, keyof ($Props${$} & ${q.extends.interface})> & $Props${$} & ${q.extends.interface};
|
|
365
|
-
`}else if(R.trim()===""&&q.extends===void 0&&!q.canonicalPropsType)M=`
|
|
366
|
-
export type ${B}${V} = ${$V};
|
|
367
|
-
`;else if(q.canonicalPropsType)M=`
|
|
368
|
-
${O}
|
|
369
|
-
export type ${B}${V} = ${q.extends===void 0?"":`${q.extends.interface} & `}$Props${$};
|
|
370
|
-
`;else M=`
|
|
371
|
-
export type ${B}${V} = ${q.extends===void 0?"":`${q.extends.interface} & `} {
|
|
372
|
-
${R}
|
|
373
|
-
};
|
|
374
|
-
`;return{props_name:B,prop_def:M}}function DU8(q){if(q.slots.length===0)return $V;let Z=q.slots.map(({name:Q,slot_props:Y,...J})=>{let H=J.default||Q===null?"default":$4(Q??""),X=W4(J.description,J.tags,J.deprecated);return`${X?`${X}
|
|
375
|
-
`:""}${$4(H)}: ${gQ(Y)};`}).join(`
|
|
376
|
-
`);return q.slots.length===1?`{${Z}}`:`{
|
|
377
|
-
${Z}
|
|
378
|
-
}`}var CU8=()=>{return"WindowEventMap"},EU8=new Set(["click","dblclick","mousedown","mouseup","mousemove","mouseover","mouseout","mouseenter","mouseleave","contextmenu","wheel","keydown","keyup","keypress","submit","change","input","focus","blur","focusin","focusout","reset","select","touchstart","touchend","touchmove","touchcancel","drag","dragstart","dragend","dragover","dragenter","dragleave","drop","pointerdown","pointerup","pointermove","pointerover","pointerout","pointerenter","pointerleave","pointercancel","gotpointercapture","lostpointercapture","play","pause","ended","volumechange","timeupdate","loadeddata","loadedmetadata","canplay","canplaythrough","seeking","seeked","playing","waiting","stalled","suspend","abort","error","emptied","ratechange","durationchange","loadstart","progress","loadend","animationstart","animationend","animationiteration","animationcancel","transitionstart","transitionend","transitionrun","transitioncancel","scroll","resize","load","unload","beforeunload","cut","copy","paste","compositionstart","compositionupdate","compositionend"]);function WV(q=e6){if(VU8.test(q))return q;return`CustomEvent<${q}>`}function FU8(q){return EU8.has(q)}function _c(q){switch(q.type){case"dispatched":return WV(q.detail);case"forwarded":{let Z=q.element,Y=!(Z&&WU8.test(Z))||FU8(q.name),J=q.detail!==void 0&&q.detail!=="undefined"&&!(q.detail==="null"&&Y),H=q.detail==="null"&&!Y;if(J||H)return WV(q.detail);else if(Y)return`${CU8()}["${q.name}"]`;else return WV()}default:return q}}function TU8(q){if(q.events.length===0)return HU8;let Z=q.events.map((Q)=>{let Y="",J=W4(Q.description,Q.tags,Q.deprecated);if(J)Y=`${J}
|
|
379
|
-
`;return`${Y}${$4(Q.name)}: ${_c(Q)};
|
|
380
|
-
`}).join("");return q.events.length===1?`{${Z}}`:`{
|
|
381
|
-
${Z}}`}function fU8(q,Z){return q.events.map((Q)=>{let Y=`on${Q.name}`;if(Z.has(Y))return;let J="",H=W4(Q.description,Q.tags,Q.deprecated);if(H)J=`${H}
|
|
382
|
-
`;return`
|
|
383
|
-
${J}${$4(Y)}?: (event: ${_c(Q)}) => void;`}).filter((Q)=>Q!==void 0)}function KU8(q){let Z=q.type==="() => any";if(q.type&&kc.test(q.type)&&!Z)return q.type;else if(q.params&&q.params.length>0){let Y=q.params.map((H)=>{let X=H.optional?"?":"";return`${H.name}${X}: ${H.type}`}).join(", "),J=q.returnType||e6;return`(${Y}) => ${J}`}else if(q.returnType)return`() => ${q.returnType}`;else return q.type||e6}function gc(q){return q.props.filter((Z)=>Z.isFunctionDeclaration||Z.kind==="const").map((Z)=>{let Q=RV(Z.description,Z.deprecated,Z.tags),Y=KU8(Z);return`
|
|
384
|
-
${zV(Q)}
|
|
385
|
-
${Z.name}: ${Y};`}).join(`
|
|
386
|
-
`)}function vU8(q){let Z=`${q.moduleName}Exports`,Q=gc({props:q.props});if(Q.trim()==="")return{exports_name:Z,exports_ref:Z,exports_def:`export type ${Z} = ${$V};`};let{declSuffix:Y,refSuffix:J}=jU8(q.generics,Q);return{exports_name:Z,exports_ref:`${Z}${J}`,exports_def:`export type ${Z}${Y} = {${Q}
|
|
387
|
-
};`}}function NU8(q){let Z=q.props.filter((Q)=>Q.bindable===!0||Q.binding==="writable").map((Q)=>`"${Q.name}"`);return Z.length===0?Q9:Z.join(" | ")}function kU8(q){let Z=q.moduleName==="default"?"$$Component":q.moduleName,Q=q.bindings===Q9?'""':q.bindings;return`declare const ${Z}: Component<
|
|
388
|
-
${q.propsRef},
|
|
389
|
-
${q.exportsRef},
|
|
390
|
-
${Q}
|
|
391
|
-
>;
|
|
392
|
-
export default ${Z};`}function SU8(q){let Z=q.moduleName==="default"?"$$Component":q.moduleName,Q=`${Z}Component`,Y=q.bindings===Q9?'""':q.bindings;return`interface ${Q} {
|
|
393
|
-
new ${q.generic}(
|
|
394
|
-
options: ComponentConstructorOptions<${q.propsRef}>
|
|
395
|
-
): SvelteComponent<${q.propsRef}> & ${q.exportsRef};
|
|
396
|
-
${q.generic}(
|
|
397
|
-
this: void,
|
|
398
|
-
internals: ComponentInternals,
|
|
399
|
-
props: ${q.propsRef}
|
|
400
|
-
): {
|
|
401
|
-
$on?(type: string, callback: (e: any) => void): () => void;
|
|
402
|
-
$set?(props: Partial<${q.propsRef}>): void;
|
|
403
|
-
} & ${q.exportsRef};
|
|
404
|
-
element?: typeof HTMLElement;
|
|
405
|
-
z_$$bindings?: ${Y};
|
|
406
|
-
}
|
|
407
|
-
declare const ${Z}: ${Q};
|
|
408
|
-
export default ${Z};`}function uU8(q){if(q.extends===void 0)return"";return`import type { ${q.extends.interface} } from ${q.extends.import};`}function bU8(q){if(!q.componentComment)return"";if(!$U8.test(q.componentComment))return yQ(q.componentComment.trim());return`/*${q.componentComment.split(`
|
|
409
|
-
`).map((Z)=>`* ${Z}`).join(`
|
|
410
|
-
`)}
|
|
411
|
-
*/`}function hU8(q){return q.moduleExports.map((Z)=>{let Q=RV(Z.description,Z.deprecated,Z.tags),Y,J=Z.type&&kc.test(Z.type),H=Z.type==="() => any";if(Z.kind==="const"&&!J)Y=`export declare const ${Z.name}: ${Z.type||e6};
|
|
412
|
-
`;else if(Z.params&&Z.params.length>0){let G=Z.params.map((R)=>{let B=R.optional?"?":"";return`${R.name}${B}: ${R.type}`}).join(", "),W=Z.returnType||e6;Y=`export declare function ${Z.name}(${G}): ${W};`}else if(Z.returnType)Y=`export declare function ${Z.name}(): ${Z.returnType};`;else if(J&&Z.type&&!H){let[X,G,...W]=Z.type.split("=>"),R=W.map((B)=>` => ${B.trim()}`).join("");Y=`export declare function ${Z.name}${X.trimEnd()}: ${G.trim()}${R};`}else if(J&&Z.type){let[X,G,...W]=Z.type.split("=>"),R=W.map((B)=>` => ${B.trim()}`).join("");Y=`export declare function ${Z.name}${X.trimEnd()}: ${G.trim()}${R};`}else if(Z.kind==="const")Y=`export declare const ${Z.name}: ${Z.type||e6};
|
|
413
|
-
`;else Y=`export type ${Z.name} = ${Z.type||e6};`;return`
|
|
414
|
-
${zV(Q)}
|
|
415
|
-
${Y}`}).join(`
|
|
416
|
-
`)}var yU8=120;function _U8(q){let Q=`export default class ${q.moduleName==="default"?"":q.moduleName}${q.generic} extends SvelteComponentTyped<`,Y=[q.genericProps,q.events,q.slots];if(q.accessors.trim()===""&&Y.every((J)=>!J.includes(`
|
|
417
|
-
`))){let J=`${Q}${Y.join(", ")}> {}`;if(J.length<=yU8)return J}return`${Q}
|
|
418
|
-
${q.genericProps},
|
|
419
|
-
${q.events},
|
|
420
|
-
${q.slots}
|
|
421
|
-
> {
|
|
422
|
-
${q.accessors}
|
|
423
|
-
}`}function BV(q,Z){let Q=FZ(q),{moduleName:Y,typedefs:J,generics:H,props:X,moduleExports:G,slots:W,events:R,rest_props:B,extends:M,componentComment:V,contexts:$,syntaxMode:O}=q,w=Z?.format==="component",I=H!==null,{props_name:C,prop_def:E}=IU8({moduleName:Y,props:X,rest_props:B,extends:M,generics:H,slots:W,canonicalPropNames:new Set(Q?.canonicalPropNames??[]),canonicalPropsType:Q?.canonicalPropsType,events:w&&O==="legacy"?R:void 0}),D=H?`<${H[1]}>`:"",f=H?`${C}<${H[0]}>`:C,v=hU8({moduleExports:G}),_=lQ({typedefs:J}),b=hc({contexts:$,generics:H}),z=(Q?.typeImportStatements??[]).join(`
|
|
424
|
-
`),P=(Q?.localTypeDeclarations??[]).join(`
|
|
425
|
-
|
|
426
|
-
`),{exports_ref:L,exports_def:A}=w?vU8({props:X,moduleName:Y,generics:H}):{exports_ref:Q9,exports_def:Q9},T=w?NU8({props:X}):Q9,h=!BU8.test(z)&&zU8.test(`${E}
|
|
427
|
-
${v}
|
|
428
|
-
${_}
|
|
429
|
-
${b}
|
|
430
|
-
${P}
|
|
431
|
-
${A}`),N=B?.type==="Element"&&(B.name!=="svelte:element"||B.name==="svelte:element"&&B.thisValue),y=B?.type==="Element"&&B.name==="svelte:element"&&!B.thisValue,m=[w?I?`import type { SvelteComponent, ComponentConstructorOptions, ComponentInternals${h?", Snippet":""} } from "svelte";`:`import type { Component${h?", Snippet":""} } from "svelte";`:`import { SvelteComponentTyped${h?", type Snippet":""} } from "svelte";`,N?'import type { SvelteHTMLElements } from "svelte/elements";':"",y?'import type { HTMLAttributes } from "svelte/elements";':"",z,uU8({extends:M})].filter(Boolean).join(`
|
|
432
|
-
`),Y8=w?I?SU8({moduleName:Y,generic:D,propsRef:f,exportsRef:L,bindings:T}):kU8({moduleName:Y,propsRef:f,exportsRef:L,bindings:T}):_U8({moduleName:Y,generic:D,genericProps:f,events:TU8({events:R}),slots:DU8({slots:W}),accessors:gc({props:X})}),N8=[v,_,P,b,E,A,[bU8({componentComment:V}),Y8].filter(Boolean).join(`
|
|
433
|
-
`)].map((w8)=>w8.trim()).filter(Boolean).join(`
|
|
434
|
-
|
|
435
|
-
`);return Nc([m,N8].filter(Boolean).join(`
|
|
436
|
-
|
|
437
|
-
`))}var MV=/`/g,xQ=/\s+/g,I9="--",lc=`| Prop name | Required | Kind | Reactive | Binding | Type | Default value | Description |
|
|
438
|
-
| :- | :- | :- | :- | :- | :- | :- | :- |
|
|
439
|
-
`,xc=`| Slot name | Default | Props | Fallback | Description |
|
|
440
|
-
| :- | :- | :- | :- | :- |
|
|
441
|
-
`,mc=`| Event name | Type | Detail | Description |
|
|
442
|
-
| :- | :- | :- | :- |
|
|
443
|
-
`,pc=`| Name | Kind | Type | Description |
|
|
444
|
-
| :- | :- | :- | :- |
|
|
445
|
-
`,mQ=/\|/g,gU8=/</g,lU8=/>/g,J2=/\n/g;function H2(q){if(q===void 0)return I9;return`<code>${q.replace(mQ,"|")}</code>`}function U4(q){return q.replace(gU8,"<").replace(lU8,">")}function cc(q){if(q===void 0)return I9;return`<code>${q.replace(MV,"\\`").replace(mQ,"|")}</code>`}function pQ(q,Z){if(Z===void 0)return q;let Q=typeof Z==="string"&&Z.trim().length>0?`: ${U4(Z).replace(J2," ").replace(mQ,"|")}`:"";return`<s>${q}</s><br />**Deprecated**${Q}`}function cQ(q){if(q===void 0||q.trim().length===0)return I9;return U4(q).replace(J2,"<br />")}function rc(q){if(q===void 0||q==="{}")return I9;return H2(gQ(q).replace(J2," "))}function ic(q){if(q===void 0)return I9;return H2(U4(q).replace(J2,"<br />"))}function dc(q,Z){let Q=[];if(q!==void 0&&q.trim().length>0)Q.push(U4(q));for(let{name:Y,body:J}of Z??[]){let H=J?.trim();Q.push(H?`@${Y} ${U4(H)}`:`@${Y}`)}if(Q.length===0)return I9;return Q.join(`
|
|
446
|
-
`).replace(mQ,"|").replace(J2,"<br />")}function sc(q){if(q===void 0)return I9;return H2(q.replace(J2," "))}function ac(q,Z,Q){if(q.append("h1","Component Index"),q.append("h2","Components").tableOfContents(),q.append("divider"),Q&&Q.length>0)xU8(q,Q);let Y=t1(Z);for(let J of Y.components)mU8(q,J)}function xU8(q,Z){q.append("h2","Exports"),q.append("raw",pc);for(let Q of Z){let Y=(Q.type??Q.value)?.replace(xQ," ").trim();q.append("raw",`| ${Q.name} | ${`<code>${Q.kind}</code>`} | ${H2(Y)} | ${cQ(Q.description)} |
|
|
447
|
-
`)}q.append("raw",`
|
|
448
|
-
`),q.append("divider")}function PV(q,Z,Q,Y){if(Z.length>0)Q(),q.append("raw",`
|
|
449
|
-
`);else q.append("p",Y??"None.")}function mU8(q,Z){if(q.append("h2",`\`${Z.moduleName}\``),Z.typedefs.length>0)q.append("h3","Types").append("raw",`\`\`\`ts
|
|
450
|
-
${lQ({typedefs:Z.typedefs})}
|
|
451
|
-
\`\`\`
|
|
452
|
-
|
|
453
|
-
`);q.append("h3","Props"),PV(q,Z.props,()=>{q.append("raw",lc);let Q=[...Z.props].sort((Y)=>{if(Y.reactive)return-1;if(Y.constant)return 1;return 0});for(let Y of Q)q.append("raw",`| ${pQ(Y.name,Y.deprecated)} | ${Y.isRequired?"Yes":"No"} | ${`<code>${Y.kind}</code>`} | ${Y.reactive?"Yes":"No"} | ${Y.binding??"--"} | ${H2(Y.type)} | ${cc(Y.value)} | ${cQ(Y.description)} |
|
|
454
|
-
`)}),q.append("h3","Slots"),PV(q,Z.slots,()=>{q.append("raw",xc);for(let Q of Z.slots)q.append("raw",`| ${pQ(Q.default?I9:Q.name??I9,Q.deprecated)} | ${Q.default?"Yes":"No"} | ${rc(Q.slot_props)} | ${ic(Q.fallback)} | ${dc(Q.description,Q.tags)} |
|
|
455
|
-
`)}),q.append("h3","Events"),PV(q,Z.events,()=>{q.append("raw",mc);for(let Q of Z.events)q.append("raw",`| ${pQ(Q.name,Q.deprecated)} | ${Q.type} | ${Q.type==="dispatched"?sc(Q.detail):I9} | ${cQ(Q.description)} |
|
|
456
|
-
`)})}class LV{sourceParts=[];hasToC=!1;toc=[];get source(){return this.sourceParts.join("")}appendLineBreaks(){return this.sourceParts.push(`
|
|
457
|
-
|
|
458
|
-
`),this}append(q,Z){switch(q){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":{let Q=Number(q.slice(-1));if(this.sourceParts.push(`${"#".repeat(Q)} ${Z}`),this.hasToC&&q==="h2")this.toc.push({indent:0,raw:Z??""});break}case"quote":this.sourceParts.push(`> ${Z}`);break;case"p":this.sourceParts.push(Z??"");break;case"divider":this.sourceParts.push("---");break;case"raw":this.sourceParts.push(Z??"");break}if(q!=="raw")this.appendLineBreaks();return this}tableOfContents(){return this.sourceParts.push("<!-- __TOC__ -->"),this.hasToC=!0,this.appendLineBreaks(),this}end(){return this.sourceParts.join("").replace("<!-- __TOC__ -->",this.toc.map(({indent:Z,raw:Q})=>{return`${" ".repeat(Z)}- [${Q}](#${Q.toLowerCase().replace(MV,"").replace(xQ,"-")})`}).join(`
|
|
459
|
-
`))}}class rQ extends Y2{onAppend;markdownBase;constructor(q){super();this.onAppend=q.onAppend,this.markdownBase=new LV}get source(){return this.markdownBase.source}get hasToC(){return this.markdownBase.hasToC}get toc(){return this.markdownBase.toc}appendLineBreaks(){return this.markdownBase.appendLineBreaks(),this}append(q,Z){return this.markdownBase.append(q,Z),this.onAppend?.call(this,q,this),this}tableOfContents(){return this.markdownBase.tableOfContents(),this}end(){return this.markdownBase.end()}}async function OV(q,Z){let Q=Z?.write!==!1,Y=new rQ({onAppend:(J,H)=>{Z.onAppend?.call(null,J,H,q)}});if(ac(Y,q,Z.entryExports),Q){let J=pU8(process.cwd(),Z.outFile);await Y.write(J,Y.end()),console.log(`created "${Z.outFile}".`)}return Y.end()}import{join as ec}from"node:path";var oc=/\.svelte$/;function nc(q){let Z=new Map;for(let[Y,J]of Object.entries(q)){let H=Z.get(J.source)||[];H.push({id:Y,exportee:J}),Z.set(J.source,H)}let Q=[];for(let[Y,J]of Z){let H=oc.test(Y),X=J.some(({id:V,exportee:$})=>V!=="default"&&$.default),G=J.some(({exportee:V})=>!V.default),W=H&&X&&G,R=[],B=[],M=[];for(let{id:V,exportee:$}of J){if(V==="default"){B.push(`export { default } from "${Y}";`);continue}if($.default)if($.mixed)B.push(`export { default as ${V} } from "${Y}";`),B.push(`export { default } from "${Y}";`);else M.push(`default as ${V}`);else if(H&&!W)M.push(`default as ${V}`);else R.push(V)}if(M.length>0&&R.length>0)Q.push(`export { ${[...M,...R].join(", ")} } from "${Y}";`);else{if(R.length>0)Q.push(`export { ${R.join(", ")} } from "${Y}";`);if(M.length>0)Q.push(`export { ${M.join(", ")} } from "${Y}";`)}Q.push(...B)}return Q.join(`
|
|
460
|
-
`)}function tc(q){return q.replace(oc,".svelte.d.ts")}async function wV(q,Z){let Q=ec(process.cwd(),Z.outDir,"index.d.ts"),Y=Ec(),J=Z.preamble+nc(Z.exports),X=t1(q).components.map(async(G)=>{let W=tc(ec(Z.outDir,G.filePath));await Y.write(W,BV(G,{format:Z.format}))});await Promise.all([...X,Y.write(Q,`${J}
|
|
461
|
-
`)]),console.log("created TypeScript definitions.")}Q2({name:"json",componentSet:"exported",write:VV});Q2({name:"markdown",componentSet:"exported",write:OV});Q2({name:"types",componentSet:"all",write:wV});Q2({name:"custom-elements",componentSet:"exported",write:GV});var rU8=50,iU8=/\.svelte$/;function qr(q){let Z=q?.watch===!0,Q,Y,J=null,H,X=new Set,G=async()=>{if(J==null||Y==null||X.size===0)return;let R=Array.from(X);X.clear();try{let{result:B}=await J.update(R);await r7(B,q||{},Y)}catch(B){console.error("sveld: failed to regenerate types in watch mode:",B)}},W=(R)=>{if(!Z||J==null||!iU8.test(R))return;X.add(R),clearTimeout(H),H=setTimeout(G,rU8)};return{name:"vite-plugin-sveld",apply:Z?void 0:"build",enforce:"post",async buildStart(){if(Y=g5(q?.entry),Z&&Y!=null)J=await Cc(Y,q?.glob===!0,q?.documentExports===!0),await r7(J.result,q||{},Y)},async generateBundle(){if(Z)return;if(Y!=null)Q=await c7(Y,q?.glob===!0,p7(q))},async writeBundle(){if(Z)return;if(Y!=null)await r7(Q,q||{},Y)},handleHotUpdate(R){W(R.file)},watchChange(R){W(R)}}}function iQ(q,Z,Q){let Y=hQ(q);if(!Y)throw Error(`sveld: built-in writer "${q}" is not registered.`);return Y.write(Z,Q)}async function r7(q,Z,Q){let Y=cU8(Q);if(Z?.types!==!1)await iQ("types",q.allComponentsForTypes,{outDir:"types",preamble:"",...Z?.typesOptions,exports:q.exports,inputDir:Y});if(Z?.json)await iQ("json",q.components,{outFile:"COMPONENT_API.json",...Z?.jsonOptions,input:Q,inputDir:Y,entryExports:q.entryExports});if(Z?.markdown)await iQ("markdown",q.components,{outFile:"COMPONENT_INDEX.md",...Z?.markdownOptions,entryExports:q.entryExports});if(Z?.customElements)await iQ("custom-elements",q.components,{outFile:"custom-elements.json",...Z?.customElementsOptions,inputDir:Y});let J=Object.entries(Z?.additionalWriters??{}).map(([H,X])=>{let G=hQ(H);if(!G){console.warn(`sveld: no writer registered with name "${H}"; skipping.`);return}let W=G.componentSet==="all"?q.allComponentsForTypes:q.components;return G.write(W,X)});await Promise.all(J)}var AV="src/index.js",aU8=`Usage: sveld [options]
|
|
462
|
-
|
|
463
|
-
Generate TypeScript definitions and component documentation for a Svelte
|
|
464
|
-
library. With no flags, only TypeScript definitions are generated for the
|
|
465
|
-
entry resolved from package.json#svelte.
|
|
466
|
-
|
|
467
|
-
Options:
|
|
468
|
-
--entry=<path> Entry point to uncompiled Svelte source (default: package.json "svelte" field)
|
|
469
|
-
--glob Analyze all *.svelte files instead of the entry barrel
|
|
470
|
-
--types Generate TypeScript definitions (default: true)
|
|
471
|
-
--json Generate component documentation in JSON format
|
|
472
|
-
--markdown Generate component documentation in Markdown format
|
|
473
|
-
--custom-elements Generate a Custom Elements Manifest (custom-elements.json)
|
|
474
|
-
--fail-fast Abort the run when a single component fails to parse
|
|
475
|
-
--cache[=<path>] Persist parsed output and skip re-parsing unchanged files (on by default, default path: node_modules/.cache/sveld/parse-cache.json; pass --cache=false to disable)
|
|
476
|
-
--resolve-types Expand opaque imported $props() types into JSON (alias: --resolveTypes, deprecated)
|
|
477
|
-
--check-examples Compile-check @example blocks against the TypeScript program (alias: --checkExamples, deprecated)
|
|
478
|
-
--report-diagnostics Print unresolved-type diagnostics to stderr
|
|
479
|
-
--strict Exit with code 1 when diagnostics exist (implies --report-diagnostics)
|
|
480
|
-
--types-format=<format> ".d.ts" output format: "class" (default) or "component" (Svelte 5 Component<...>)
|
|
481
|
-
--check[=<path>] Diff the parsed API against a committed snapshot; exit 1 on a breaking change (default path: COMPONENT_API.json)
|
|
482
|
-
--help Print this help message and exit
|
|
483
|
-
--version Print the installed sveld version and exit
|
|
484
|
-
`,oU8={resolveTypes:"resolve-types",checkExamples:"check-examples"};function nU8(q){if(!q.startsWith("--"))return{kind:"unknown",arg:q};let Z=q.indexOf("="),Q=Z===-1?q.slice(2):q.slice(2,Z),Y=Z===-1?!0:q.slice(Z+1),J=oU8[Q]??Q;switch(J){case"help":return{kind:"help"};case"version":return{kind:"version"};case"glob":case"types":case"json":case"markdown":return{kind:"option",option:{[J]:Y===!0||Y==="true"}};case"custom-elements":return{kind:"option",option:{customElements:Y===!0||Y==="true"}};case"strict":return{kind:"option",option:{strict:Y===!0||Y==="true"}};case"report-diagnostics":return{kind:"option",option:{reportDiagnostics:Y===!0||Y==="true"}};case"resolve-types":return{kind:"option",option:{resolveTypes:Y===!0||Y==="true"}};case"check-examples":return{kind:"option",option:{checkExamples:Y===!0||Y==="true"}};case"fail-fast":return{kind:"option",option:{failFast:Y===!0||Y==="true"}};case"entry":return typeof Y==="string"?{kind:"option",option:{entry:Y}}:{kind:"option",option:{}};case"cache":if(Y==="false")return{kind:"option",option:{cache:!1}};return{kind:"option",option:{cache:typeof Y==="string"?Y:!0}};case"check":if(Y==="false")return{kind:"option",option:{check:!1}};return{kind:"option",option:{check:typeof Y==="string"?Y:!0}};case"types-format":return typeof Y==="string"?{kind:"option",option:{typesOptions:{format:Y}}}:{kind:"option",option:{}};default:return{kind:"unknown",arg:q}}}function tU8(q){let Z={};for(let Q of q){let Y=nU8(Q);if(Y.kind!=="option")return Y;Object.assign(Z,Y.option)}return{kind:"options",options:Z}}async function eU8(q){let Z=tU8(q.argv.slice(2));if(Z.kind==="help"){console.log(aU8);return}if(Z.kind==="version"){console.log(fh.version);return}if(Z.kind==="unknown"){console.error(`Unknown flag: ${Z.arg}`),console.error("Run sveld --help for a list of available flags."),q.exitCode=1;return}let Q=Z.options,Y=await uZ(),J=bZ(Y,Q);if(Y.typesOptions||Q.typesOptions)J.typesOptions={...Y.typesOptions,...Q.typesOptions};let H=g5(J.entry),X;if(H!==null)X=H;else if(dU8(sU8(q.cwd(),AV)))console.error(`sveld: could not resolve an entry point; falling back to "${AV}". Set package.json#svelte (or pass --entry) to avoid relying on this fallback.`),X=Eq(v0(AV));else{q.exitCode=1;return}let G=await c7(X,J.glob===!0,p7(J)),W;if(J.check)W=await Cq(G.components,NZ(J),{entryExports:G.entryExports});await r7(G,J,X);let{diagnostics:R}=G;if((J.reportDiagnostics||J.strict)&&R.length>0)console.error(SZ(R));if(W){if(console.log(PX(W)),W.bump==="major")q.exitCode=1}if(J.strict&&R.length>0)q.exitCode=1}async function qR8(q){if(q&&"input"in q)throw Error("sveld: the `input` option was renamed to `entry`.");let{entry:Z,...Q}=q??{},Y=await uZ(),J=g5(Z??Y.entry);if(J===null)throw Error('sveld: could not resolve a Svelte entry point. Set package.json#svelte, or pass the "entry" option.');let H=bZ(Y,Q,{entry:J}),X=await c7(J,H.glob===!0,p7(H)),G;if(H.check)G=await Cq(X.components,NZ(H),{entryExports:X.entryExports});await r7(X,H,J);let{diagnostics:W}=X;if((H.reportDiagnostics||H.strict)&&W.length>0)console.error(SZ(W));if(H.strict&&W.length>0)process.exitCode=1;return{diagnostics:W,check:G}}export{qR8 as sveld,Cq as runCheck,Q2 as registerWriter,S$8 as listWriters,hQ as getWriter,PX as formatCheckReport,Sh as diffApiDocuments,bZ8 as defineConfig,qr as default,eU8 as cli,t1 as buildComponentApiDocument,D0 as ComponentParser};
|
|
1
|
+
import{a as q,b as H,c as C,d as y,e as I,f as D,g as W,h as J,i as v,j as S,k as P,l as t,m as L,n as M,o as N,p as Q,q as z,r as T}from"./chunk-7qz0hzgw.js";import{t as j}from"./chunk-72hx9e9w.js";import"./chunk-xkrgedm4.js";import"./chunk-v4q9vw0y.js";import"./chunk-8xw75w8t.js";import"./chunk-cxrw7gzr.js";import"./chunk-1p4ka68s.js";async function b(r){if(r&&"input"in r)throw Error("sveld: the `input` option was renamed to `entry`.");let{entry:E,...K}=r??{},m=await v(),o=W(E??m.entry);if(o===null)throw Error('sveld: could not resolve a Svelte entry point. Set package.json#svelte, or pass the "entry" option.');let p=S(m,K,{entry:o}),x=await t(o,p.glob===!0,P(p)),A;if(p.check)A=await y(x.components,C(p),{entryExports:x.entryExports});await z(x,p,o);let{diagnostics:f}=x;if((p.reportDiagnostics||p.strict)&&f.length>0)console.error(D(f));if(p.strict&&f.length>0)process.exitCode=1;return{diagnostics:f,check:A}}export{b as sveld,y as runCheck,L as registerWriter,N as listWriters,M as getWriter,I as formatCheckReport,H as diffApiDocuments,J as defineConfig,Q as default,T as cli,q as buildComponentApiDocument,j as ComponentParser};
|