sveld 0.35.1 → 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 +0 -4
- package/cli.js +1 -1
- package/lib/ComponentParser.d.ts +139 -401
- package/lib/ast-guards.d.ts +0 -2
- package/lib/browser.js +203 -225
- package/lib/bundle.d.ts +1 -3
- 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 -343
- package/lib/parse-cache.d.ts +1 -1
- package/lib/parse-entry-exports.d.ts +2 -2
- package/lib/parsed-component-metadata.d.ts +13 -0
- package/lib/parser/bindings.d.ts +0 -2
- package/lib/parser/context.d.ts +7 -49
- 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 +0 -2
- package/lib/parser/rest-props.d.ts +0 -2
- package/lib/parser/runes-detection.d.ts +1 -4
- package/lib/parser/scopes.d.ts +0 -2
- package/lib/parser/slots.d.ts +0 -5
- package/lib/parser/source-position.d.ts +0 -4
- package/lib/parser/type-resolution.d.ts +0 -15
- package/lib/parser/typescript-casts.d.ts +0 -1
- 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/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 +1 -1
package/lib/index.js
CHANGED
|
@@ -1,343 +1 @@
|
|
|
1
|
-
import{
|
|
2
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function d_(q,Z){if(q){if(typeof q=="string")return iV(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)?iV(q,Z):void 0}}function iV(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,H,J,X,W=[],$=!0,R=!1;try{if(J=(Q=Q.call(q)).next,Z===0){if(Object(Q)!==Q)return;$=!1}else for(;!($=(Y=J.call(Q)).done)&&(W.push(Y.value),W.length!==Z);$=!0);}catch(z){R=!0,H=z}finally{try{if(!$&&Q.return!=null&&(X=Q.return(),Object(X)!==X))return}finally{if(R)throw H}}return W}}function a_(q){if(Array.isArray(q))return q}var f6=[["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"}]],CZ={entries:function(){return f6},forEach:function(Z){var Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;for(var Y=0,H=f6;Y<H.length;Y++){var J=DZ(H[Y],2),X=J[0],W=J[1];Z.call(Q,W,X,f6)}},get:function(Z){var Q=f6.find(function(Y){return Y[0]===Z?!0:!1});return Q&&Q[1]},has:function(Z){return!!CZ.get(Z)},keys:function(){return f6.map(function(Z){var Q=DZ(Z,1),Y=Q[0];return Y})},values:function(){return f6.map(function(Z){var Q=DZ(Z,2),Y=Q[1];return Y})}},uG8=dV.default=(0,c_.default)(CZ,CZ.entries())});var eV=A((nV)=>{Object.defineProperty(nV,"__esModule",{value:!0});nV.default=void 0;var o_=n_(T6());function n_(q){return q&&q.__esModule?q:{default:q}}function EZ(q,Z){return Zy(q)||qy(q,Z)||e_(q,Z)||t_()}function t_(){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 e_(q,Z){if(q){if(typeof q=="string")return oV(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)?oV(q,Z):void 0}}function oV(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 qy(q,Z){var Q=q==null?null:typeof Symbol<"u"&&q[Symbol.iterator]||q["@@iterator"];if(Q!=null){var Y,H,J,X,W=[],$=!0,R=!1;try{if(J=(Q=Q.call(q)).next,Z===0){if(Object(Q)!==Q)return;$=!1}else for(;!($=(Y=J.call(Q)).done)&&(W.push(Y.value),W.length!==Z);$=!0);}catch(z){R=!0,H=z}finally{try{if(!$&&Q.return!=null&&(X=Q.return(),Object(X)!==X))return}finally{if(R)throw H}}return W}}function Zy(q){if(Array.isArray(q))return q}var K6=[["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}]],FZ={entries:function(){return K6},forEach:function(Z){var Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;for(var Y=0,H=K6;Y<H.length;Y++){var J=EZ(H[Y],2),X=J[0],W=J[1];Z.call(Q,W,X,K6)}},get:function(Z){var Q=K6.find(function(Y){return Y[0]===Z?!0:!1});return Q&&Q[1]},has:function(Z){return!!FZ.get(Z)},keys:function(){return K6.map(function(Z){var Q=EZ(Z,1),Y=Q[0];return Y})},values:function(){return K6.map(function(Z){var Q=EZ(Z,2),Y=Q[1];return Y})}},hG8=nV.default=(0,o_.default)(FZ,FZ.entries())});var QG=A((qG)=>{Object.defineProperty(qG,"__esModule",{value:!0});qG.default=void 0;var Qy={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget"]]},yG8=qG.default=Qy});var JG=A((YG)=>{Object.defineProperty(YG,"__esModule",{value:!0});YG.default=void 0;var Yy={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"]]},xG8=YG.default=Yy});var GG=A((XG)=>{Object.defineProperty(XG,"__esModule",{value:!0});XG.default=void 0;var Hy={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"]]},mG8=XG.default=Hy});var UG=A((WG)=>{Object.defineProperty(WG,"__esModule",{value:!0});WG.default=void 0;var Jy={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},cG8=WG.default=Jy});var BG=A((RG)=>{Object.defineProperty(RG,"__esModule",{value:!0});RG.default=void 0;var Xy={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"]]},iG8=RG.default=Xy});var PG=A((MG)=>{Object.defineProperty(MG,"__esModule",{value:!0});MG.default=void 0;var Vy={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:[]},sG8=MG.default=Vy});var AG=A((OG)=>{Object.defineProperty(OG,"__esModule",{value:!0});OG.default=void 0;var Gy={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"]]},oG8=OG.default=Gy});var DG=A((IG)=>{Object.defineProperty(IG,"__esModule",{value:!0});IG.default=void 0;var Wy={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]},tG8=IG.default=Wy});var FG=A((CG)=>{Object.defineProperty(CG,"__esModule",{value:!0});CG.default=void 0;var $y={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"]]},qW8=CG.default=$y});var KG=A((TG)=>{Object.defineProperty(TG,"__esModule",{value:!0});TG.default=void 0;var Uy={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype"]]},QW8=TG.default=Uy});var NG=A((vG)=>{Object.defineProperty(vG,"__esModule",{value:!0});vG.default=void 0;var Ry={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype"]]},HW8=vG.default=Ry});var bG=A((SG)=>{Object.defineProperty(SG,"__esModule",{value:!0});SG.default=void 0;var zy={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-modal":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype"]]},XW8=SG.default=zy});var yG=A((hG)=>{Object.defineProperty(hG,"__esModule",{value:!0});hG.default=void 0;var By=$1(QG()),My=$1(JG()),Ly=$1(GG()),Py=$1(UG()),Oy=$1(BG()),wy=$1(PG()),Ay=$1(AG()),Iy=$1(DG()),jy=$1(FG()),Dy=$1(KG()),Cy=$1(NG()),Ey=$1(bG());function $1(q){return q&&q.__esModule?q:{default:q}}var Fy=[["command",By.default],["composite",My.default],["input",Ly.default],["landmark",Py.default],["range",Oy.default],["roletype",wy.default],["section",Ay.default],["sectionhead",Iy.default],["select",jy.default],["structure",Dy.default],["widget",Cy.default],["window",Ey.default]],GW8=hG.default=Fy});var lG=A((gG)=>{Object.defineProperty(gG,"__esModule",{value:!0});gG.default=void 0;var Ty={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"]]},$W8=gG.default=Ty});var cG=A((mG)=>{Object.defineProperty(mG,"__esModule",{value:!0});mG.default=void 0;var fy={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"]]},RW8=mG.default=fy});var dG=A((rG)=>{Object.defineProperty(rG,"__esModule",{value:!0});rG.default=void 0;var Ky={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"]]},BW8=rG.default=Ky});var oG=A((sG)=>{Object.defineProperty(sG,"__esModule",{value:!0});sG.default=void 0;var vy={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"]]},LW8=sG.default=vy});var eG=A((nG)=>{Object.defineProperty(nG,"__esModule",{value:!0});nG.default=void 0;var ky={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"]]},OW8=nG.default=ky});var QW=A((qW)=>{Object.defineProperty(qW,"__esModule",{value:!0});qW.default=void 0;var Ny={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"]]},AW8=qW.default=Ny});var JW=A((YW)=>{Object.defineProperty(YW,"__esModule",{value:!0});YW.default=void 0;var Sy={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"]]},jW8=YW.default=Sy});var GW=A((XW)=>{Object.defineProperty(XW,"__esModule",{value:!0});XW.default=void 0;var uy={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"]]},CW8=XW.default=uy});var UW=A((WW)=>{Object.defineProperty(WW,"__esModule",{value:!0});WW.default=void 0;var by={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"]]},FW8=WW.default=by});var BW=A((RW)=>{Object.defineProperty(RW,"__esModule",{value:!0});RW.default=void 0;var hy={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"]]},fW8=RW.default=hy});var PW=A((MW)=>{Object.defineProperty(MW,"__esModule",{value:!0});MW.default=void 0;var _y={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"]]},vW8=MW.default=_y});var AW=A((OW)=>{Object.defineProperty(OW,"__esModule",{value:!0});OW.default=void 0;var yy={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"]]},NW8=OW.default=yy});var DW=A((IW)=>{Object.defineProperty(IW,"__esModule",{value:!0});IW.default=void 0;var gy={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"]]},uW8=IW.default=gy});var FW=A((CW)=>{Object.defineProperty(CW,"__esModule",{value:!0});CW.default=void 0;var xy={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"]]},hW8=CW.default=xy});var KW=A((TW)=>{Object.defineProperty(TW,"__esModule",{value:!0});TW.default=void 0;var ly={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"]]},yW8=TW.default=ly});var NW=A((vW)=>{Object.defineProperty(vW,"__esModule",{value:!0});vW.default=void 0;var my={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"]]},xW8=vW.default=my});var bW=A((SW)=>{Object.defineProperty(SW,"__esModule",{value:!0});SW.default=void 0;var py={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"]]},mW8=SW.default=py});var yW=A((hW)=>{Object.defineProperty(hW,"__esModule",{value:!0});hW.default=void 0;var cy={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"dialog"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","window"]]},cW8=hW.default=cy});var lW=A((gW)=>{Object.defineProperty(gW,"__esModule",{value:!0});gW.default=void 0;var ry={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{module:"DAISY Guide"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","list"]]},iW8=gW.default=ry});var cW=A((mW)=>{Object.defineProperty(mW,"__esModule",{value:!0});mW.default=void 0;var iy={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"]]},sW8=mW.default=iy});var dW=A((rW)=>{Object.defineProperty(rW,"__esModule",{value:!0});rW.default=void 0;var dy={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"]]},oW8=rW.default=dy});var oW=A((sW)=>{Object.defineProperty(sW,"__esModule",{value:!0});sW.default=void 0;var sy={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["article"]],requiredProps:{},superClass:[["roletype","structure","section","list"]]},tW8=sW.default=sy});var eW=A((nW)=>{Object.defineProperty(nW,"__esModule",{value:!0});nW.default=void 0;var ay={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"]]},q$8=nW.default=ay});var Q$=A((q$)=>{Object.defineProperty(q$,"__esModule",{value:!0});q$.default=void 0;var oy={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"]]},Q$8=q$.default=oy});var J$=A((Y$)=>{Object.defineProperty(Y$,"__esModule",{value:!0});Y$.default=void 0;var ny={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"]]},H$8=Y$.default=ny});var G$=A((X$)=>{Object.defineProperty(X$,"__esModule",{value:!0});X$.default=void 0;var ty={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"]]},X$8=X$.default=ty});var U$=A((W$)=>{Object.defineProperty(W$,"__esModule",{value:!0});W$.default=void 0;var ey={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"]]},G$8=W$.default=ey});var B$=A((R$)=>{Object.defineProperty(R$,"__esModule",{value:!0});R$.default=void 0;var qg={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"]]},$$8=R$.default=qg});var P$=A((M$)=>{Object.defineProperty(M$,"__esModule",{value:!0});M$.default=void 0;var Zg={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"]]},R$8=M$.default=Zg});var A$=A((O$)=>{Object.defineProperty(O$,"__esModule",{value:!0});O$.default=void 0;var Qg={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"]]},B$8=O$.default=Qg});var D$=A((I$)=>{Object.defineProperty(I$,"__esModule",{value:!0});I$.default=void 0;var Yg={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"]]},L$8=I$.default=Yg});var F$=A((C$)=>{Object.defineProperty(C$,"__esModule",{value:!0});C$.default=void 0;var Hg={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"]]},O$8=C$.default=Hg});var K$=A((T$)=>{Object.defineProperty(T$,"__esModule",{value:!0});T$.default=void 0;var Jg={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"]]},A$8=T$.default=Jg});var N$=A((v$)=>{Object.defineProperty(v$,"__esModule",{value:!0});v$.default=void 0;var Xg={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"]]},j$8=v$.default=Xg});var b$=A((S$)=>{Object.defineProperty(S$,"__esModule",{value:!0});S$.default=void 0;var Vg={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"]]},C$8=S$.default=Vg});var y$=A((h$)=>{Object.defineProperty(h$,"__esModule",{value:!0});h$.default=void 0;var Gg={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-live":"polite"},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},F$8=h$.default=Gg});var l$=A((g$)=>{Object.defineProperty(g$,"__esModule",{value:!0});g$.default=void 0;var Wg={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"]]},f$8=g$.default=Wg});var c$=A((m$)=>{Object.defineProperty(m$,"__esModule",{value:!0});m$.default=void 0;var $g={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"]]},v$8=m$.default=$g});var d$=A((r$)=>{Object.defineProperty(r$,"__esModule",{value:!0});r$.default=void 0;var Ug={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},N$8=r$.default=Ug});var o$=A((s$)=>{Object.defineProperty(s$,"__esModule",{value:!0});s$.default=void 0;var Rg={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"]]},u$8=s$.default=Rg});var e$=A((n$)=>{Object.defineProperty(n$,"__esModule",{value:!0});n$.default=void 0;var zg={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"]]},h$8=n$.default=zg});var QU=A((qU)=>{Object.defineProperty(qU,"__esModule",{value:!0});qU.default=void 0;var Bg={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"]]},y$8=qU.default=Bg});var JU=A((YU)=>{Object.defineProperty(YU,"__esModule",{value:!0});YU.default=void 0;var Mg={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"]]},x$8=YU.default=Mg});var GU=A((XU)=>{Object.defineProperty(XU,"__esModule",{value:!0});XU.default=void 0;var Lg={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"]]},m$8=XU.default=Lg});var UU=A((WU)=>{Object.defineProperty(WU,"__esModule",{value:!0});WU.default=void 0;var Pg={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"]]},c$8=WU.default=Pg});var BU=A((RU)=>{Object.defineProperty(RU,"__esModule",{value:!0});RU.default=void 0;var Og={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"]]},i$8=RU.default=Og});var PU=A((MU)=>{Object.defineProperty(MU,"__esModule",{value:!0});MU.default=void 0;var wg={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"]]},s$8=MU.default=wg});var AU=A((OU)=>{Object.defineProperty(OU,"__esModule",{value:!0});OU.default=void 0;var Ag={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[]},o$8=OU.default=Ag});var DU=A((IU)=>{Object.defineProperty(IU,"__esModule",{value:!0});IU.default=void 0;var Ig={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},t$8=IU.default=Ig});var FU=A((CU)=>{Object.defineProperty(CU,"__esModule",{value:!0});CU.default=void 0;var jg={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"]]},qU8=CU.default=jg});var KU=A((TU)=>{Object.defineProperty(TU,"__esModule",{value:!0});TU.default=void 0;var Dg={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"]]},QU8=TU.default=Dg});var NU=A((vU)=>{Object.defineProperty(vU,"__esModule",{value:!0});vU.default=void 0;var Cg={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"]]},HU8=vU.default=Cg});var bU=A((SU)=>{Object.defineProperty(SU,"__esModule",{value:!0});SU.default=void 0;var Eg={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"]]},XU8=SU.default=Eg});var yU=A((hU)=>{Object.defineProperty(hU,"__esModule",{value:!0});hU.default=void 0;var Fg={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"]]},GU8=hU.default=Fg});var lU=A((gU)=>{Object.defineProperty(gU,"__esModule",{value:!0});gU.default=void 0;var Tg={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"]]},$U8=gU.default=Tg});var cU=A((mU)=>{Object.defineProperty(mU,"__esModule",{value:!0});mU.default=void 0;var fg={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"]]},RU8=mU.default=fg});var dU=A((rU)=>{Object.defineProperty(rU,"__esModule",{value:!0});rU.default=void 0;var Kg={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"]]},BU8=rU.default=Kg});var oU=A((sU)=>{Object.defineProperty(sU,"__esModule",{value:!0});sU.default=void 0;var vg={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"]]},LU8=sU.default=vg});var eU=A((nU)=>{Object.defineProperty(nU,"__esModule",{value:!0});nU.default=void 0;var kg={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"]]},OU8=nU.default=kg});var QR=A((qR)=>{Object.defineProperty(qR,"__esModule",{value:!0});qR.default=void 0;var Ng={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"]]},AU8=qR.default=Ng});var JR=A((YR)=>{Object.defineProperty(YR,"__esModule",{value:!0});YR.default=void 0;var Sg={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},jU8=YR.default=Sg});var GR=A((XR)=>{Object.defineProperty(XR,"__esModule",{value:!0});XR.default=void 0;var ug={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"]]},CU8=XR.default=ug});var UR=A((WR)=>{Object.defineProperty(WR,"__esModule",{value:!0});WR.default=void 0;var bg={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"]]},FU8=WR.default=bg});var BR=A((RR)=>{Object.defineProperty(RR,"__esModule",{value:!0});RR.default=void 0;var hg={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"]]},fU8=RR.default=hg});var PR=A((MR)=>{Object.defineProperty(MR,"__esModule",{value:!0});MR.default=void 0;var _g={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"]]},vU8=MR.default=_g});var AR=A((OR)=>{Object.defineProperty(OR,"__esModule",{value:!0});OR.default=void 0;var yg={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"]]},NU8=OR.default=yg});var DR=A((IR)=>{Object.defineProperty(IR,"__esModule",{value:!0});IR.default=void 0;var gg={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"]]},uU8=IR.default=gg});var FR=A((CR)=>{Object.defineProperty(CR,"__esModule",{value:!0});CR.default=void 0;var xg={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"]]},hU8=CR.default=xg});var KR=A((TR)=>{Object.defineProperty(TR,"__esModule",{value:!0});TR.default=void 0;var lg={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"]]},yU8=TR.default=lg});var NR=A((vR)=>{Object.defineProperty(vR,"__esModule",{value:!0});vR.default=void 0;var mg={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"]]},xU8=vR.default=mg});var bR=A((SR)=>{Object.defineProperty(SR,"__esModule",{value:!0});SR.default=void 0;var pg={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"]]},mU8=SR.default=pg});var yR=A((hR)=>{Object.defineProperty(hR,"__esModule",{value:!0});hR.default=void 0;var cg={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"]]},cU8=hR.default=cg});var lR=A((gR)=>{Object.defineProperty(gR,"__esModule",{value:!0});gR.default=void 0;var rg={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"]]},iU8=gR.default=rg});var cR=A((mR)=>{Object.defineProperty(mR,"__esModule",{value:!0});mR.default=void 0;var ig={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},sU8=mR.default=ig});var dR=A((rR)=>{Object.defineProperty(rR,"__esModule",{value:!0});rR.default=void 0;var dg={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"]]},oU8=rR.default=dg});var oR=A((sR)=>{Object.defineProperty(sR,"__esModule",{value:!0});sR.default=void 0;var sg={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"]]},tU8=sR.default=sg});var eR=A((nR)=>{Object.defineProperty(nR,"__esModule",{value:!0});nR.default=void 0;var ag={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"]]},qR8=nR.default=ag});var Qz=A((qz)=>{Object.defineProperty(qz,"__esModule",{value:!0});qz.default=void 0;var og={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","status"]]},QR8=qz.default=og});var Jz=A((Yz)=>{Object.defineProperty(Yz,"__esModule",{value:!0});Yz.default=void 0;var ng={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"]]},HR8=Yz.default=ng});var Gz=A((Xz)=>{Object.defineProperty(Xz,"__esModule",{value:!0});Xz.default=void 0;var tg={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},XR8=Xz.default=tg});var Uz=A((Wz)=>{Object.defineProperty(Wz,"__esModule",{value:!0});Wz.default=void 0;var eg={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"]]},GR8=Wz.default=eg});var Bz=A((Rz)=>{Object.defineProperty(Rz,"__esModule",{value:!0});Rz.default=void 0;var qx={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"]]},$R8=Rz.default=qx});var Pz=A((Mz)=>{Object.defineProperty(Mz,"__esModule",{value:!0});Mz.default=void 0;var Zx={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"]]},RR8=Mz.default=Zx});var Az=A((Oz)=>{Object.defineProperty(Oz,"__esModule",{value:!0});Oz.default=void 0;var Qx=e(lG()),Yx=e(cG()),Hx=e(dG()),Jx=e(oG()),Xx=e(eG()),Vx=e(QW()),Gx=e(JW()),Wx=e(GW()),$x=e(UW()),Ux=e(BW()),Rx=e(PW()),zx=e(AW()),Bx=e(DW()),Mx=e(FW()),Lx=e(KW()),Px=e(NW()),Ox=e(bW()),wx=e(yW()),Ax=e(lW()),Ix=e(cW()),jx=e(dW()),Dx=e(oW()),Cx=e(eW()),Ex=e(Q$()),Fx=e(J$()),Tx=e(G$()),fx=e(U$()),Kx=e(B$()),vx=e(P$()),kx=e(A$()),Nx=e(D$()),Sx=e(F$()),ux=e(K$()),bx=e(N$()),hx=e(b$()),_x=e(y$()),yx=e(l$()),gx=e(c$()),xx=e(d$()),lx=e(o$()),mx=e(e$()),px=e(QU()),cx=e(JU()),rx=e(GU()),ix=e(UU()),dx=e(BU()),sx=e(PU()),ax=e(AU()),ox=e(DU()),nx=e(FU()),tx=e(KU()),ex=e(NU()),ql=e(bU()),Zl=e(yU()),Ql=e(lU()),Yl=e(cU()),Hl=e(dU()),Jl=e(oU()),Xl=e(eU()),Vl=e(QR()),Gl=e(JR()),Wl=e(GR()),$l=e(UR()),Ul=e(BR()),Rl=e(PR()),zl=e(AR()),Bl=e(DR()),Ml=e(FR()),Ll=e(KR()),Pl=e(NR()),Ol=e(bR()),wl=e(yR()),Al=e(lR()),Il=e(cR()),jl=e(dR()),Dl=e(oR()),Cl=e(eR()),El=e(Qz()),Fl=e(Jz()),Tl=e(Gz()),fl=e(Uz()),Kl=e(Bz()),vl=e(Pz());function e(q){return q&&q.__esModule?q:{default:q}}var kl=[["alert",Qx.default],["alertdialog",Yx.default],["application",Hx.default],["article",Jx.default],["banner",Xx.default],["blockquote",Vx.default],["button",Gx.default],["caption",Wx.default],["cell",$x.default],["checkbox",Ux.default],["code",Rx.default],["columnheader",zx.default],["combobox",Bx.default],["complementary",Mx.default],["contentinfo",Lx.default],["definition",Px.default],["deletion",Ox.default],["dialog",wx.default],["directory",Ax.default],["document",Ix.default],["emphasis",jx.default],["feed",Dx.default],["figure",Cx.default],["form",Ex.default],["generic",Fx.default],["grid",Tx.default],["gridcell",fx.default],["group",Kx.default],["heading",vx.default],["img",kx.default],["insertion",Nx.default],["link",Sx.default],["list",ux.default],["listbox",bx.default],["listitem",hx.default],["log",_x.default],["main",yx.default],["mark",gx.default],["marquee",xx.default],["math",lx.default],["menu",mx.default],["menubar",px.default],["menuitem",cx.default],["menuitemcheckbox",rx.default],["menuitemradio",ix.default],["meter",dx.default],["navigation",sx.default],["none",ax.default],["note",ox.default],["option",nx.default],["paragraph",tx.default],["presentation",ex.default],["progressbar",ql.default],["radio",Zl.default],["radiogroup",Ql.default],["region",Yl.default],["row",Hl.default],["rowgroup",Jl.default],["rowheader",Xl.default],["scrollbar",Vl.default],["search",Gl.default],["searchbox",Wl.default],["separator",$l.default],["slider",Ul.default],["spinbutton",Rl.default],["status",zl.default],["strong",Bl.default],["subscript",Ml.default],["superscript",Ll.default],["switch",Pl.default],["tab",Ol.default],["table",wl.default],["tablist",Al.default],["tabpanel",Il.default],["term",jl.default],["textbox",Dl.default],["time",Cl.default],["timer",El.default],["toolbar",Fl.default],["tooltip",Tl.default],["tree",fl.default],["treegrid",Kl.default],["treeitem",vl.default]],BR8=Oz.default=kl});var Dz=A((Iz)=>{Object.defineProperty(Iz,"__esModule",{value:!0});Iz.default=void 0;var Nl={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"]]},LR8=Iz.default=Nl});var Fz=A((Cz)=>{Object.defineProperty(Cz,"__esModule",{value:!0});Cz.default=void 0;var Sl={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"]]},OR8=Cz.default=Sl});var Kz=A((Tz)=>{Object.defineProperty(Tz,"__esModule",{value:!0});Tz.default=void 0;var ul={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"]]},AR8=Tz.default=ul});var Nz=A((vz)=>{Object.defineProperty(vz,"__esModule",{value:!0});vz.default=void 0;var bl={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"]]},jR8=vz.default=bl});var bz=A((Sz)=>{Object.defineProperty(Sz,"__esModule",{value:!0});Sz.default=void 0;var hl={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"]]},CR8=Sz.default=hl});var yz=A((hz)=>{Object.defineProperty(hz,"__esModule",{value:!0});hz.default=void 0;var _l={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"]]},FR8=hz.default=_l});var lz=A((gz)=>{Object.defineProperty(gz,"__esModule",{value:!0});gz.default=void 0;var yl={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"]]},fR8=gz.default=yl});var cz=A((mz)=>{Object.defineProperty(mz,"__esModule",{value:!0});mz.default=void 0;var gl={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"]]},vR8=mz.default=gl});var dz=A((rz)=>{Object.defineProperty(rz,"__esModule",{value:!0});rz.default=void 0;var xl={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"]]},NR8=rz.default=xl});var oz=A((sz)=>{Object.defineProperty(sz,"__esModule",{value:!0});sz.default=void 0;var ll={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"]]},uR8=sz.default=ll});var ez=A((nz)=>{Object.defineProperty(nz,"__esModule",{value:!0});nz.default=void 0;var ml={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"]]},hR8=nz.default=ml});var QB=A((qB)=>{Object.defineProperty(qB,"__esModule",{value:!0});qB.default=void 0;var pl={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"]]},yR8=qB.default=pl});var JB=A((YB)=>{Object.defineProperty(YB,"__esModule",{value:!0});YB.default=void 0;var cl={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"]]},xR8=YB.default=cl});var GB=A((XB)=>{Object.defineProperty(XB,"__esModule",{value:!0});XB.default=void 0;var rl={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"]]},mR8=XB.default=rl});var UB=A((WB)=>{Object.defineProperty(WB,"__esModule",{value:!0});WB.default=void 0;var il={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"]]},cR8=WB.default=il});var BB=A((RB)=>{Object.defineProperty(RB,"__esModule",{value:!0});RB.default=void 0;var dl={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"]]},iR8=RB.default=dl});var PB=A((MB)=>{Object.defineProperty(MB,"__esModule",{value:!0});MB.default=void 0;var sl={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"]]},sR8=MB.default=sl});var AB=A((OB)=>{Object.defineProperty(OB,"__esModule",{value:!0});OB.default=void 0;var al={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"]]},oR8=OB.default=al});var DB=A((IB)=>{Object.defineProperty(IB,"__esModule",{value:!0});IB.default=void 0;var ol={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"]]},tR8=IB.default=ol});var FB=A((CB)=>{Object.defineProperty(CB,"__esModule",{value:!0});CB.default=void 0;var nl={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"]]},qz8=CB.default=nl});var KB=A((TB)=>{Object.defineProperty(TB,"__esModule",{value:!0});TB.default=void 0;var tl={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"]]},Qz8=TB.default=tl});var NB=A((vB)=>{Object.defineProperty(vB,"__esModule",{value:!0});vB.default=void 0;var el={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"]]},Hz8=vB.default=el});var bB=A((SB)=>{Object.defineProperty(SB,"__esModule",{value:!0});SB.default=void 0;var qm={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"]]},Xz8=SB.default=qm});var yB=A((hB)=>{Object.defineProperty(hB,"__esModule",{value:!0});hB.default=void 0;var Zm={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"]]},Gz8=hB.default=Zm});var lB=A((gB)=>{Object.defineProperty(gB,"__esModule",{value:!0});gB.default=void 0;var Qm={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"]]},$z8=gB.default=Qm});var cB=A((mB)=>{Object.defineProperty(mB,"__esModule",{value:!0});mB.default=void 0;var Ym={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"]]},Rz8=mB.default=Ym});var dB=A((rB)=>{Object.defineProperty(rB,"__esModule",{value:!0});rB.default=void 0;var Hm={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"]]},Bz8=rB.default=Hm});var oB=A((sB)=>{Object.defineProperty(sB,"__esModule",{value:!0});sB.default=void 0;var Jm={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"]]},Lz8=sB.default=Jm});var eB=A((nB)=>{Object.defineProperty(nB,"__esModule",{value:!0});nB.default=void 0;var Xm={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"]]},Oz8=nB.default=Xm});var QM=A((qM)=>{Object.defineProperty(qM,"__esModule",{value:!0});qM.default=void 0;var Vm={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"]]},Az8=qM.default=Vm});var JM=A((YM)=>{Object.defineProperty(YM,"__esModule",{value:!0});YM.default=void 0;var Gm={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"]]},jz8=YM.default=Gm});var GM=A((XM)=>{Object.defineProperty(XM,"__esModule",{value:!0});XM.default=void 0;var Wm={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"]]},Cz8=XM.default=Wm});var UM=A((WM)=>{Object.defineProperty(WM,"__esModule",{value:!0});WM.default=void 0;var $m={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"]]},Fz8=WM.default=$m});var BM=A((RM)=>{Object.defineProperty(RM,"__esModule",{value:!0});RM.default=void 0;var Um={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"]]},fz8=RM.default=Um});var PM=A((MM)=>{Object.defineProperty(MM,"__esModule",{value:!0});MM.default=void 0;var Rm={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"]]},vz8=MM.default=Rm});var AM=A((OM)=>{Object.defineProperty(OM,"__esModule",{value:!0});OM.default=void 0;var zm={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"]]},Nz8=OM.default=zm});var DM=A((IM)=>{Object.defineProperty(IM,"__esModule",{value:!0});IM.default=void 0;var Bm={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"]]},uz8=IM.default=Bm});var FM=A((CM)=>{Object.defineProperty(CM,"__esModule",{value:!0});CM.default=void 0;var Mm={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"]]},hz8=CM.default=Mm});var KM=A((TM)=>{Object.defineProperty(TM,"__esModule",{value:!0});TM.default=void 0;var Lm={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"]]},yz8=TM.default=Lm});var NM=A((vM)=>{Object.defineProperty(vM,"__esModule",{value:!0});vM.default=void 0;var Pm={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"]]},xz8=vM.default=Pm});var bM=A((SM)=>{Object.defineProperty(SM,"__esModule",{value:!0});SM.default=void 0;var Om={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"]]},mz8=SM.default=Om});var yM=A((hM)=>{Object.defineProperty(hM,"__esModule",{value:!0});hM.default=void 0;var wm=N8(Dz()),Am=N8(Fz()),Im=N8(Kz()),jm=N8(Nz()),Dm=N8(bz()),Cm=N8(yz()),Em=N8(lz()),Fm=N8(cz()),Tm=N8(dz()),fm=N8(oz()),Km=N8(ez()),vm=N8(QB()),km=N8(JB()),Nm=N8(GB()),Sm=N8(UB()),um=N8(BB()),bm=N8(PB()),hm=N8(AB()),_m=N8(DB()),ym=N8(FB()),gm=N8(KB()),xm=N8(NB()),lm=N8(bB()),mm=N8(yB()),pm=N8(lB()),cm=N8(cB()),rm=N8(dB()),im=N8(oB()),dm=N8(eB()),sm=N8(QM()),am=N8(JM()),om=N8(GM()),nm=N8(UM()),tm=N8(BM()),em=N8(PM()),qp=N8(AM()),Zp=N8(DM()),Qp=N8(FM()),Yp=N8(KM()),Hp=N8(NM()),Jp=N8(bM());function N8(q){return q&&q.__esModule?q:{default:q}}var Xp=[["doc-abstract",wm.default],["doc-acknowledgments",Am.default],["doc-afterword",Im.default],["doc-appendix",jm.default],["doc-backlink",Dm.default],["doc-biblioentry",Cm.default],["doc-bibliography",Em.default],["doc-biblioref",Fm.default],["doc-chapter",Tm.default],["doc-colophon",fm.default],["doc-conclusion",Km.default],["doc-cover",vm.default],["doc-credit",km.default],["doc-credits",Nm.default],["doc-dedication",Sm.default],["doc-endnote",um.default],["doc-endnotes",bm.default],["doc-epigraph",hm.default],["doc-epilogue",_m.default],["doc-errata",ym.default],["doc-example",gm.default],["doc-footnote",xm.default],["doc-foreword",lm.default],["doc-glossary",mm.default],["doc-glossref",pm.default],["doc-index",cm.default],["doc-introduction",rm.default],["doc-noteref",im.default],["doc-notice",dm.default],["doc-pagebreak",sm.default],["doc-pagefooter",am.default],["doc-pageheader",om.default],["doc-pagelist",nm.default],["doc-part",tm.default],["doc-preface",em.default],["doc-prologue",qp.default],["doc-pullquote",Zp.default],["doc-qna",Qp.default],["doc-subtitle",Yp.default],["doc-tip",Hp.default],["doc-toc",Jp.default]],cz8=hM.default=Xp});var lM=A((gM)=>{Object.defineProperty(gM,"__esModule",{value:!0});gM.default=void 0;var Vp={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"]]},iz8=gM.default=Vp});var cM=A((mM)=>{Object.defineProperty(mM,"__esModule",{value:!0});mM.default=void 0;var Gp={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"]]},sz8=mM.default=Gp});var dM=A((rM)=>{Object.defineProperty(rM,"__esModule",{value:!0});rM.default=void 0;var Wp={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"]]},oz8=rM.default=Wp});var oM=A((sM)=>{Object.defineProperty(sM,"__esModule",{value:!0});sM.default=void 0;var $p=TZ(lM()),Up=TZ(cM()),Rp=TZ(dM());function TZ(q){return q&&q.__esModule?q:{default:q}}var zp=[["graphics-document",$p.default],["graphics-object",Up.default],["graphics-symbol",Rp.default]],tz8=sM.default=zp});var i2=A((eM)=>{function _7(q){return _7=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},_7(q)}Object.defineProperty(eM,"__esModule",{value:!0});eM.default=void 0;var Bp=y7(yG()),Mp=y7(Az()),Lp=y7(yM()),Pp=y7(oM()),Op=y7(T6());function y7(q){return q&&q.__esModule?q:{default:q}}function wp(q,Z,Q){return(Z=Ap(Z))in q?Object.defineProperty(q,Z,{value:Q,enumerable:!0,configurable:!0,writable:!0}):q[Z]=Q,q}function Ap(q){var Z=Ip(q,"string");return _7(Z)=="symbol"?Z:Z+""}function Ip(q,Z){if(_7(q)!="object"||!q)return q;var Q=q[Symbol.toPrimitive];if(Q!==void 0){var Y=Q.call(q,Z||"default");if(_7(Y)!="object")return Y;throw TypeError("@@toPrimitive must return a primitive value.")}return(Z==="string"?String:Number)(q)}function fZ(q,Z){var Q=typeof Symbol<"u"&&q[Symbol.iterator]||q["@@iterator"];if(!Q){if(Array.isArray(q)||(Q=tM(q))||Z&&q&&typeof q.length=="number"){Q&&(q=Q);var Y=0,H=function(){};return{s:H,n:function(){return Y>=q.length?{done:!0}:{done:!1,value:q[Y++]}},e:function(R){throw R},f:H}}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 J,X=!0,W=!1;return{s:function(){Q=Q.call(q)},n:function(){var R=Q.next();return X=R.done,R},e:function(R){W=!0,J=R},f:function(){try{X||Q.return==null||Q.return()}finally{if(W)throw J}}}}function h7(q,Z){return Cp(q)||Dp(q,Z)||tM(q,Z)||jp()}function jp(){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 tM(q,Z){if(q){if(typeof q=="string")return nM(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)?nM(q,Z):void 0}}function nM(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 Dp(q,Z){var Q=q==null?null:typeof Symbol<"u"&&q[Symbol.iterator]||q["@@iterator"];if(Q!=null){var Y,H,J,X,W=[],$=!0,R=!1;try{if(J=(Q=Q.call(q)).next,Z===0){if(Object(Q)!==Q)return;$=!1}else for(;!($=(Y=J.call(Q)).done)&&(W.push(Y.value),W.length!==Z);$=!0);}catch(z){R=!0,H=z}finally{try{if(!$&&Q.return!=null&&(X=Q.return(),Object(X)!==X))return}finally{if(R)throw H}}return W}}function Cp(q){if(Array.isArray(q))return q}var O9=[].concat(Bp.default,Mp.default,Lp.default,Pp.default);O9.forEach(function(q){var Z=h7(q,2),Q=Z[1],Y=fZ(Q.superClass),H;try{for(Y.s();!(H=Y.n()).done;){var J=H.value,X=fZ(J),W;try{var $=function(){var z=W.value,O=O9.find(function(h){var m=h7(h,1),_=m[0];return _===z});if(O){var P=O[1];for(var w=0,v=Object.keys(P.props);w<v.length;w++){var F=v[w];if(!Object.prototype.hasOwnProperty.call(Q.props,F))Object.assign(Q.props,wp({},F,P.props[F]))}}};for(X.s();!(W=X.n()).done;)$()}catch(R){X.e(R)}finally{X.f()}}}catch(R){Y.e(R)}finally{Y.f()}});var KZ={entries:function(){return O9},forEach:function(Z){var Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,Y=fZ(O9),H;try{for(Y.s();!(H=Y.n()).done;){var J=h7(H.value,2),X=J[0],W=J[1];Z.call(Q,W,X,O9)}}catch($){Y.e($)}finally{Y.f()}},get:function(Z){var Q=O9.find(function(Y){return Y[0]===Z?!0:!1});return Q&&Q[1]},has:function(Z){return!!KZ.get(Z)},keys:function(){return O9.map(function(Z){var Q=h7(Z,1),Y=Q[0];return Y})},values:function(){return O9.map(function(Z){var Q=h7(Z,2),Y=Q[1];return Y})}},qB8=eM.default=(0,Op.default)(KZ,KZ.entries())});var GL=A((XL)=>{Object.defineProperty(XL,"__esModule",{value:!0});XL.default=void 0;var Ep=HL(T6()),YL=HL(i2());function HL(q){return q&&q.__esModule?q:{default:q}}function vZ(q,Z){return Kp(q)||fp(q,Z)||Tp(q,Z)||Fp()}function Fp(){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 Tp(q,Z){if(q){if(typeof q=="string")return ZL(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)?ZL(q,Z):void 0}}function ZL(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 fp(q,Z){var Q=q==null?null:typeof Symbol<"u"&&q[Symbol.iterator]||q["@@iterator"];if(Q!=null){var Y,H,J,X,W=[],$=!0,R=!1;try{if(J=(Q=Q.call(q)).next,Z===0){if(Object(Q)!==Q)return;$=!1}else for(;!($=(Y=J.call(Q)).done)&&(W.push(Y.value),W.length!==Z);$=!0);}catch(z){R=!0,H=z}finally{try{if(!$&&Q.return!=null&&(X=Q.return(),Object(X)!==X))return}finally{if(R)throw H}}return W}}function Kp(q){if(Array.isArray(q))return q}var w9=[],QL=YL.default.keys();for(g7=0;g7<QL.length;g7++)if(x7=QL[g7],l7=YL.default.get(x7),l7){d2=[].concat(l7.baseConcepts,l7.relatedConcepts);for(m7=0;m7<d2.length;m7++)if(s2=d2[m7],s2.module==="HTML")(function(){var q=s2.concept;if(q){var Z=w9.find(function(J){return vp(J[0],q)}),Q;if(Z)Q=Z[1];else Q=[];var Y=!0;for(var H=0;H<Q.length;H++)if(Q[H]===x7){Y=!1;break}if(Y)Q.push(x7);if(!Z)w9.push([q,Q])}})()}var x7,l7,d2,s2,m7,g7,kZ={entries:function(){return w9},forEach:function(Z){var Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;for(var Y=0,H=w9;Y<H.length;Y++){var J=vZ(H[Y],2),X=J[0],W=J[1];Z.call(Q,W,X,w9)}},get:function(Z){var Q=w9.find(function(Y){return Z.name===Y[0].name&&JL(Z.attributes,Y[0].attributes)});return Q&&Q[1]},has:function(Z){return!!kZ.get(Z)},keys:function(){return w9.map(function(Z){var Q=vZ(Z,1),Y=Q[0];return Y})},values:function(){return w9.map(function(Z){var Q=vZ(Z,2),Y=Q[1];return Y})}};function vp(q,Z){return q.name===Z.name&&kp(q.constraints,Z.constraints)&&JL(q.attributes,Z.attributes)}function kp(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 JL(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 QB8=XL.default=(0,Ep.default)(kZ,kZ.entries())});var ML=A((zL)=>{Object.defineProperty(zL,"__esModule",{value:!0});zL.default=void 0;var Np=RL(T6()),UL=RL(i2());function RL(q){return q&&q.__esModule?q:{default:q}}function NZ(q,Z){return hp(q)||bp(q,Z)||up(q,Z)||Sp()}function Sp(){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 up(q,Z){if(q){if(typeof q=="string")return WL(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)?WL(q,Z):void 0}}function WL(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 bp(q,Z){var Q=q==null?null:typeof Symbol<"u"&&q[Symbol.iterator]||q["@@iterator"];if(Q!=null){var Y,H,J,X,W=[],$=!0,R=!1;try{if(J=(Q=Q.call(q)).next,Z===0){if(Object(Q)!==Q)return;$=!1}else for(;!($=(Y=J.call(Q)).done)&&(W.push(Y.value),W.length!==Z);$=!0);}catch(z){R=!0,H=z}finally{try{if(!$&&Q.return!=null&&(X=Q.return(),Object(X)!==X))return}finally{if(R)throw H}}return W}}function hp(q){if(Array.isArray(q))return q}var x9=[],$L=UL.default.keys();for(p7=0;p7<$L.length;p7++)if(a2=$L[p7],c7=UL.default.get(a2),r7=[],c7){o2=[].concat(c7.baseConcepts,c7.relatedConcepts);for(i7=0;i7<o2.length;i7++)if(n2=o2[i7],n2.module==="HTML"){if(t2=n2.concept,t2!=null)r7.push(t2)}if(r7.length>0)x9.push([a2,r7])}var a2,c7,r7,o2,n2,t2,i7,p7,SZ={entries:function(){return x9},forEach:function(Z){var Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;for(var Y=0,H=x9;Y<H.length;Y++){var J=NZ(H[Y],2),X=J[0],W=J[1];Z.call(Q,W,X,x9)}},get:function(Z){var Q=x9.find(function(Y){return Y[0]===Z?!0:!1});return Q&&Q[1]},has:function(Z){return!!SZ.get(Z)},keys:function(){return x9.map(function(Z){var Q=NZ(Z,1),Y=Q[0];return Y})},values:function(){return x9.map(function(Z){var Q=NZ(Z,2),Y=Q[1];return Y})}},HB8=zL.default=(0,Np.default)(SZ,SZ.entries())});var uZ=A((LL)=>{Object.defineProperty(LL,"__esModule",{value:!0});LL.roles=LL.roleElements=LL.elementRoles=LL.dom=LL.aria=void 0;var _p=d7(aV()),yp=d7(eV()),gp=d7(i2()),xp=d7(GL()),lp=d7(ML());function d7(q){return q&&q.__esModule?q:{default:q}}var XB8=LL.aria=_p.default,VB8=LL.dom=yp.default,GB8=LL.roles=gp.default,WB8=LL.elementRoles=xp.default,$B8=LL.roleElements=lp.default});var AL=A((OL)=>{Object.defineProperty(OL,"__esModule",{value:!0});OL.default=void 0;function ip(){var q=this,Z=0,Q={"@@iterator":function(){return Q},next:function(){if(Z<q.length){var H=q[Z];return Z=Z+1,{done:!1,value:H}}else return{done:!0}}};return Q}var dp=ip;OL.default=dp});var s7=A((IL)=>{Object.defineProperty(IL,"__esModule",{value:!0});IL.default=op;var sp=ap(AL());function ap(q){return q&&q.__esModule?q:{default:q}}function bZ(q){return bZ=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},bZ(q)}function op(q,Z){if(typeof Symbol==="function"&&bZ(Symbol.iterator)==="symbol")Object.defineProperty(q,Symbol.iterator,{value:sp.default.bind(Z)});return q}});var CL=A((jL)=>{Object.defineProperty(jL,"__esModule",{value:!0});jL.default=void 0;var tp={relatedConcepts:[{module:"HTML",concept:{name:"abbr"}}],type:"structure"},ep=tp;jL.default=ep});var TL=A((EL)=>{Object.defineProperty(EL,"__esModule",{value:!0});EL.default=void 0;var qc={relatedConcepts:[{module:"ARIA",concept:{name:"alertdialog"}}],type:"window"},Zc=qc;EL.default=Zc});var vL=A((fL)=>{Object.defineProperty(fL,"__esModule",{value:!0});fL.default=void 0;var Qc={relatedConcepts:[{module:"ARIA",concept:{name:"alert"}}],type:"structure"},Yc=Qc;fL.default=Yc});var SL=A((kL)=>{Object.defineProperty(kL,"__esModule",{value:!0});kL.default=void 0;var Hc={relatedConcepts:[],type:"structure"},Jc=Hc;kL.default=Jc});var hL=A((uL)=>{Object.defineProperty(uL,"__esModule",{value:!0});uL.default=void 0;var Xc={relatedConcepts:[{module:"ARIA",concept:{name:"application"}}],type:"window"},Vc=Xc;uL.default=Vc});var gL=A((_L)=>{Object.defineProperty(_L,"__esModule",{value:!0});_L.default=void 0;var Gc={relatedConcepts:[{module:"ARIA",concept:{name:"article"}},{module:"HTML",concept:{name:"article"}}],type:"structure"},Wc=Gc;_L.default=Wc});var mL=A((xL)=>{Object.defineProperty(xL,"__esModule",{value:!0});xL.default=void 0;var $c={relatedConcepts:[{module:"HTML",concept:{name:"audio"}}],type:"widget"},Uc=$c;xL.default=Uc});var rL=A((pL)=>{Object.defineProperty(pL,"__esModule",{value:!0});pL.default=void 0;var Rc={relatedConcepts:[{module:"ARIA",concept:{name:"banner"}}],type:"structure"},zc=Rc;pL.default=zc});var sL=A((iL)=>{Object.defineProperty(iL,"__esModule",{value:!0});iL.default=void 0;var Bc={relatedConcepts:[{module:"HTML",concept:{name:"blockquote"}}],type:"structure"},Mc=Bc;iL.default=Mc});var nL=A((aL)=>{Object.defineProperty(aL,"__esModule",{value:!0});aL.default=void 0;var Lc={relatedConcepts:[{module:"ARIA",concept:{attributes:[{name:"aria-busy",value:"true"}]}}],type:"widget"},Pc=Lc;aL.default=Pc});var qP=A((tL)=>{Object.defineProperty(tL,"__esModule",{value:!0});tL.default=void 0;var Oc={relatedConcepts:[{module:"ARIA",concept:{name:"button"}},{module:"HTML",concept:{name:"button"}}],type:"widget"},wc=Oc;tL.default=wc});var YP=A((ZP)=>{Object.defineProperty(ZP,"__esModule",{value:!0});ZP.default=void 0;var Ac={relatedConcepts:[{module:"HTML",concept:{name:"canvas"}}],type:"widget"},Ic=Ac;ZP.default=Ic});var XP=A((HP)=>{Object.defineProperty(HP,"__esModule",{value:!0});HP.default=void 0;var jc={relatedConcepts:[{module:"HTML",concept:{name:"caption"}}],type:"structure"},Dc=jc;HP.default=Dc});var WP=A((VP)=>{Object.defineProperty(VP,"__esModule",{value:!0});VP.default=void 0;var Cc={relatedConcepts:[{module:"ARIA",concept:{name:"cell"}},{module:"ARIA",concept:{name:"gridcell"}},{module:"HTML",concept:{name:"td"}}],type:"widget"},Ec=Cc;VP.default=Ec});var RP=A(($P)=>{Object.defineProperty($P,"__esModule",{value:!0});$P.default=void 0;var Fc={relatedConcepts:[{module:"ARIA",concept:{name:"checkbox"}},{module:"HTML",concept:{name:"input",attributes:[{name:"type",value:"checkbox"}]}}],type:"widget"},Tc=Fc;$P.default=Tc});var MP=A((zP)=>{Object.defineProperty(zP,"__esModule",{value:!0});zP.default=void 0;var fc={relatedConcepts:[{module:"HTML",concept:{name:"input",attributes:[{name:"type",value:"color"}]}}],type:"widget"},Kc=fc;zP.default=Kc});var OP=A((LP)=>{Object.defineProperty(LP,"__esModule",{value:!0});LP.default=void 0;var vc={relatedConcepts:[{module:"ARIA",concept:{name:"columnheader"}},{module:"HTML",concept:{name:"th"}}],type:"widget"},kc=vc;LP.default=kc});var IP=A((wP)=>{Object.defineProperty(wP,"__esModule",{value:!0});wP.default=void 0;var Nc={relatedConcepts:[],type:"structure"},Sc=Nc;wP.default=Sc});var CP=A((jP)=>{Object.defineProperty(jP,"__esModule",{value:!0});jP.default=void 0;var uc={relatedConcepts:[{module:"ARIA",concept:{name:"combobox"}},{module:"HTML",concept:{name:"select"}}],type:"widget"},bc=uc;jP.default=bc});var TP=A((EP)=>{Object.defineProperty(EP,"__esModule",{value:!0});EP.default=void 0;var hc={relatedConcepts:[{module:"ARIA",concept:{name:"complementary"}}],type:"structure"},_c=hc;EP.default=_c});var vP=A((fP)=>{Object.defineProperty(fP,"__esModule",{value:!0});fP.default=void 0;var yc={relatedConcepts:[{module:"ARIA",concept:{name:"structureinfo"}}],type:"structure"},gc=yc;fP.default=gc});var SP=A((kP)=>{Object.defineProperty(kP,"__esModule",{value:!0});kP.default=void 0;var xc={relatedConcepts:[{module:"HTML",concept:{name:"input",attributes:[{name:"type",value:"date"}]}}],type:"widget"},lc=xc;kP.default=lc});var hP=A((uP)=>{Object.defineProperty(uP,"__esModule",{value:!0});uP.default=void 0;var mc={relatedConcepts:[{module:"HTML",concept:{name:"input",attributes:[{name:"type",value:"datetime"}]}}],type:"widget"},pc=mc;uP.default=pc});var gP=A((_P)=>{Object.defineProperty(_P,"__esModule",{value:!0});_P.default=void 0;var cc={relatedConcepts:[{module:"HTML",concept:{name:"dfn"}}],type:"structure"},rc=cc;_P.default=rc});var mP=A((xP)=>{Object.defineProperty(xP,"__esModule",{value:!0});xP.default=void 0;var ic={relatedConcepts:[{module:"HTML",concept:{name:"dd"}}],type:"structure"},dc=ic;xP.default=dc});var rP=A((pP)=>{Object.defineProperty(pP,"__esModule",{value:!0});pP.default=void 0;var sc={relatedConcepts:[{module:"HTML",concept:{name:"dl"}}],type:"structure"},ac=sc;pP.default=ac});var sP=A((iP)=>{Object.defineProperty(iP,"__esModule",{value:!0});iP.default=void 0;var oc={relatedConcepts:[{module:"HTML",concept:{name:"dt"}}],type:"structure"},nc=oc;iP.default=nc});var nP=A((aP)=>{Object.defineProperty(aP,"__esModule",{value:!0});aP.default=void 0;var tc={relatedConcepts:[{module:"HTML",concept:{name:"details"}}],type:"structure"},ec=tc;aP.default=ec});var qO=A((tP)=>{Object.defineProperty(tP,"__esModule",{value:!0});tP.default=void 0;var qr={relatedConcepts:[{module:"ARIA",concept:{name:"dialog"}},{module:"HTML",concept:{name:"dialog"}}],type:"window"},Zr=qr;tP.default=Zr});var YO=A((ZO)=>{Object.defineProperty(ZO,"__esModule",{value:!0});ZO.default=void 0;var Qr={relatedConcepts:[{module:"ARIA",concept:{name:"directory"}},{module:"HTML",concept:{name:"dir"}}],type:"structure"},Yr=Qr;ZO.default=Yr});var XO=A((HO)=>{Object.defineProperty(HO,"__esModule",{value:!0});HO.default=void 0;var Hr={relatedConcepts:[{module:"HTML",concept:{constraints:["scoped to a details element"],name:"summary"}}],type:"widget"},Jr=Hr;HO.default=Jr});var WO=A((VO)=>{Object.defineProperty(VO,"__esModule",{value:!0});VO.default=void 0;var Xr={relatedConcepts:[{module:"HTML",concept:{name:"div"}}],type:"generic"},Vr=Xr;VO.default=Vr});var RO=A(($O)=>{Object.defineProperty($O,"__esModule",{value:!0});$O.default=void 0;var Gr={relatedConcepts:[{module:"ARIA",concept:{name:"document"}}],type:"structure"},Wr=Gr;$O.default=Wr});var MO=A((zO)=>{Object.defineProperty(zO,"__esModule",{value:!0});zO.default=void 0;var $r={relatedConcepts:[{module:"HTML",concept:{name:"embed"}}],type:"widget"},Ur=$r;zO.default=Ur});var OO=A((LO)=>{Object.defineProperty(LO,"__esModule",{value:!0});LO.default=void 0;var Rr={relatedConcepts:[{module:"ARIA",concept:{name:"feed"}}],type:"structure"},zr=Rr;LO.default=zr});var IO=A((wO)=>{Object.defineProperty(wO,"__esModule",{value:!0});wO.default=void 0;var Br={relatedConcepts:[{module:"HTML",concept:{name:"figcaption"}}],type:"structure"},Mr=Br;wO.default=Mr});var CO=A((jO)=>{Object.defineProperty(jO,"__esModule",{value:!0});jO.default=void 0;var Lr={relatedConcepts:[{module:"ARIA",concept:{name:"figure"}},{module:"HTML",concept:{name:"figure"}}],type:"structure"},Pr=Lr;jO.default=Pr});var TO=A((EO)=>{Object.defineProperty(EO,"__esModule",{value:!0});EO.default=void 0;var Or={relatedConcepts:[{module:"HTML",concept:{name:"footer"}}],type:"structure"},wr=Or;EO.default=wr});var vO=A((fO)=>{Object.defineProperty(fO,"__esModule",{value:!0});fO.default=void 0;var Ar={relatedConcepts:[{module:"ARIA",concept:{name:"form"}},{module:"HTML",concept:{name:"form"}}],type:"structure"},Ir=Ar;fO.default=Ir});var SO=A((kO)=>{Object.defineProperty(kO,"__esModule",{value:!0});kO.default=void 0;var jr={relatedConcepts:[{module:"ARIA",concept:{name:"grid"}}],type:"widget"},Dr=jr;kO.default=Dr});var hO=A((uO)=>{Object.defineProperty(uO,"__esModule",{value:!0});uO.default=void 0;var Cr={relatedConcepts:[{module:"ARIA",concept:{name:"group"}}],type:"structure"},Er=Cr;uO.default=Er});var gO=A((_O)=>{Object.defineProperty(_O,"__esModule",{value:!0});_O.default=void 0;var Fr={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"},Tr=Fr;_O.default=Tr});var mO=A((xO)=>{Object.defineProperty(xO,"__esModule",{value:!0});xO.default=void 0;var fr={relatedConcepts:[],type:"window"},Kr=fr;xO.default=Kr});var rO=A((pO)=>{Object.defineProperty(pO,"__esModule",{value:!0});pO.default=void 0;var vr={relatedConcepts:[{module:"HTML",concept:{name:"iframe"}}],type:"window"},kr=vr;pO.default=kr});var sO=A((iO)=>{Object.defineProperty(iO,"__esModule",{value:!0});iO.default=void 0;var Nr={relatedConcepts:[],type:"structure"},Sr=Nr;iO.default=Sr});var nO=A((aO)=>{Object.defineProperty(aO,"__esModule",{value:!0});aO.default=void 0;var ur={relatedConcepts:[],type:"widget"},br=ur;aO.default=br});var qw=A((tO)=>{Object.defineProperty(tO,"__esModule",{value:!0});tO.default=void 0;var hr={relatedConcepts:[{module:"HTML",concept:{name:"img",attributes:[{name:"usemap"}]}}],type:"structure"},_r=hr;tO.default=_r});var Yw=A((Zw)=>{Object.defineProperty(Zw,"__esModule",{value:!0});Zw.default=void 0;var yr={relatedConcepts:[{module:"ARIA",concept:{name:"img"}},{module:"HTML",concept:{name:"img"}}],type:"structure"},gr=yr;Zw.default=gr});var Xw=A((Hw)=>{Object.defineProperty(Hw,"__esModule",{value:!0});Hw.default=void 0;var xr={relatedConcepts:[{module:"HTML",concept:{name:"input"}}],type:"widget"},lr=xr;Hw.default=lr});var Ww=A((Vw)=>{Object.defineProperty(Vw,"__esModule",{value:!0});Vw.default=void 0;var mr={relatedConcepts:[{module:"HTML",concept:{name:"input",attributes:[{name:"type",value:"time"}]}}],type:"widget"},pr=mr;Vw.default=pr});var Rw=A(($w)=>{Object.defineProperty($w,"__esModule",{value:!0});$w.default=void 0;var cr={relatedConcepts:[{module:"HTML",concept:{name:"label"}}],type:"structure"},rr=cr;$w.default=rr});var Mw=A((zw)=>{Object.defineProperty(zw,"__esModule",{value:!0});zw.default=void 0;var ir={relatedConcepts:[{module:"HTML",concept:{name:"legend"}}],type:"structure"},dr=ir;zw.default=dr});var Ow=A((Lw)=>{Object.defineProperty(Lw,"__esModule",{value:!0});Lw.default=void 0;var sr={relatedConcepts:[{module:"HTML",concept:{name:"br"}}],type:"structure"},ar=sr;Lw.default=ar});var Iw=A((ww)=>{Object.defineProperty(ww,"__esModule",{value:!0});ww.default=void 0;var or={relatedConcepts:[{module:"ARIA",concept:{name:"link"}},{module:"HTML",concept:{name:"a",attributes:[{name:"href"}]}}],type:"widget"},nr=or;ww.default=nr});var Cw=A((jw)=>{Object.defineProperty(jw,"__esModule",{value:!0});jw.default=void 0;var tr={relatedConcepts:[{module:"ARIA",concept:{name:"option"}},{module:"HTML",concept:{name:"option"}}],type:"widget"},er=tr;jw.default=er});var Tw=A((Ew)=>{Object.defineProperty(Ew,"__esModule",{value:!0});Ew.default=void 0;var qi={relatedConcepts:[{module:"ARIA",concept:{name:"listbox"}},{module:"HTML",concept:{name:"datalist"}},{module:"HTML",concept:{name:"select"}}],type:"widget"},Zi=qi;Ew.default=Zi});var vw=A((fw)=>{Object.defineProperty(fw,"__esModule",{value:!0});fw.default=void 0;var Qi={relatedConcepts:[{module:"ARIA",concept:{name:"listitem"}},{module:"HTML",concept:{name:"li"}}],type:"structure"},Yi=Qi;fw.default=Yi});var Sw=A((kw)=>{Object.defineProperty(kw,"__esModule",{value:!0});kw.default=void 0;var Hi={relatedConcepts:[],type:"structure"},Ji=Hi;kw.default=Ji});var hw=A((uw)=>{Object.defineProperty(uw,"__esModule",{value:!0});uw.default=void 0;var Xi={relatedConcepts:[{module:"ARIA",concept:{name:"list"}},{module:"HTML",concept:{name:"ul"}},{module:"HTML",concept:{name:"ol"}}],type:"structure"},Vi=Xi;uw.default=Vi});var gw=A((_w)=>{Object.defineProperty(_w,"__esModule",{value:!0});_w.default=void 0;var Gi={relatedConcepts:[{module:"ARIA",concept:{name:"log"}}],type:"structure"},Wi=Gi;_w.default=Wi});var mw=A((xw)=>{Object.defineProperty(xw,"__esModule",{value:!0});xw.default=void 0;var $i={relatedConcepts:[{module:"ARIA",concept:{name:"main"}},{module:"HTML",concept:{name:"main"}}],type:"structure"},Ui=$i;xw.default=Ui});var rw=A((pw)=>{Object.defineProperty(pw,"__esModule",{value:!0});pw.default=void 0;var Ri={relatedConcepts:[{module:"HTML",concept:{name:"mark"}}],type:"structure"},zi=Ri;pw.default=zi});var sw=A((iw)=>{Object.defineProperty(iw,"__esModule",{value:!0});iw.default=void 0;var Bi={relatedConcepts:[{module:"ARIA",concept:{name:"marquee"}},{module:"HTML",concept:{name:"marquee"}}],type:"structure"},Mi=Bi;iw.default=Mi});var nw=A((aw)=>{Object.defineProperty(aw,"__esModule",{value:!0});aw.default=void 0;var Li={relatedConcepts:[{module:"ARIA",concept:{name:"math"}}],type:"structure"},Pi=Li;aw.default=Pi});var qA=A((tw)=>{Object.defineProperty(tw,"__esModule",{value:!0});tw.default=void 0;var Oi={relatedConcepts:[{module:"ARIA",concept:{name:"menubar"}}],type:"structure"},wi=Oi;tw.default=wi});var YA=A((ZA)=>{Object.defineProperty(ZA,"__esModule",{value:!0});ZA.default=void 0;var Ai={relatedConcepts:[],type:"widget"},Ii=Ai;ZA.default=Ii});var XA=A((HA)=>{Object.defineProperty(HA,"__esModule",{value:!0});HA.default=void 0;var ji={relatedConcepts:[{module:"ARIA",concept:{name:"menuitem"}},{module:"HTML",concept:{name:"menuitem"}}],type:"widget"},Di=ji;HA.default=Di});var WA=A((VA)=>{Object.defineProperty(VA,"__esModule",{value:!0});VA.default=void 0;var Ci={relatedConcepts:[{module:"ARIA",concept:{name:"menuitemcheckbox"}}],type:"widget"},Ei=Ci;VA.default=Ei});var RA=A(($A)=>{Object.defineProperty($A,"__esModule",{value:!0});$A.default=void 0;var Fi={relatedConcepts:[{module:"ARIA",concept:{name:"menuitemradio"}}],type:"widget"},Ti=Fi;$A.default=Ti});var MA=A((zA)=>{Object.defineProperty(zA,"__esModule",{value:!0});zA.default=void 0;var fi={relatedConcepts:[],type:"widget"},Ki=fi;zA.default=Ki});var OA=A((LA)=>{Object.defineProperty(LA,"__esModule",{value:!0});LA.default=void 0;var vi={relatedConcepts:[],type:"widget"},ki=vi;LA.default=ki});var IA=A((wA)=>{Object.defineProperty(wA,"__esModule",{value:!0});wA.default=void 0;var Ni={relatedConcepts:[{module:"ARIA",concept:{name:"menu"}},{module:"HTML",concept:{name:"menu"}}],type:"structure"},Si=Ni;wA.default=Si});var CA=A((jA)=>{Object.defineProperty(jA,"__esModule",{value:!0});jA.default=void 0;var ui={relatedConcepts:[{module:"HTML",concept:{name:"meter"}}],type:"structure"},bi=ui;jA.default=bi});var TA=A((EA)=>{Object.defineProperty(EA,"__esModule",{value:!0});EA.default=void 0;var hi={relatedConcepts:[{module:"ARIA",concept:{name:"navigation"}},{module:"HTML",concept:{name:"nav"}}],type:"structure"},_i=hi;EA.default=_i});var vA=A((fA)=>{Object.defineProperty(fA,"__esModule",{value:!0});fA.default=void 0;var yi={relatedConcepts:[{module:"ARIA",concept:{name:"none"}}],type:"structure"},gi=yi;fA.default=gi});var SA=A((kA)=>{Object.defineProperty(kA,"__esModule",{value:!0});kA.default=void 0;var xi={relatedConcepts:[{module:"ARIA",concept:{name:"note"}}],type:"structure"},li=xi;kA.default=li});var hA=A((uA)=>{Object.defineProperty(uA,"__esModule",{value:!0});uA.default=void 0;var mi={relatedConcepts:[],type:"structure"},pi=mi;uA.default=pi});var gA=A((_A)=>{Object.defineProperty(_A,"__esModule",{value:!0});_A.default=void 0;var ci={relatedConcepts:[{module:"HTML",concept:{name:"p"}}],type:"structure"},ri=ci;_A.default=ri});var mA=A((xA)=>{Object.defineProperty(xA,"__esModule",{value:!0});xA.default=void 0;var ii={relatedConcepts:[],type:"widget"},di=ii;xA.default=di});var rA=A((pA)=>{Object.defineProperty(pA,"__esModule",{value:!0});pA.default=void 0;var si={relatedConcepts:[{module:"HTML",concept:{name:"pre"}}],type:"structure"},ai=si;pA.default=ai});var sA=A((iA)=>{Object.defineProperty(iA,"__esModule",{value:!0});iA.default=void 0;var oi={relatedConcepts:[{module:"ARIA",concept:{name:"presentation"}}],type:"structure"},ni=oi;iA.default=ni});var nA=A((aA)=>{Object.defineProperty(aA,"__esModule",{value:!0});aA.default=void 0;var ti={relatedConcepts:[{module:"ARIA",concept:{name:"progressbar"}},{module:"HTML",concept:{name:"progress"}}],type:"structure"},ei=ti;aA.default=ei});var qI=A((tA)=>{Object.defineProperty(tA,"__esModule",{value:!0});tA.default=void 0;var qd={relatedConcepts:[{module:"ARIA",concept:{name:"radio"}},{module:"HTML",concept:{name:"input",attributes:[{name:"type",value:"radio"}]}}],type:"widget"},Zd=qd;tA.default=Zd});var YI=A((ZI)=>{Object.defineProperty(ZI,"__esModule",{value:!0});ZI.default=void 0;var Qd={relatedConcepts:[{module:"ARIA",concept:{name:"radiogroup"}}],type:"structure"},Yd=Qd;ZI.default=Yd});var XI=A((HI)=>{Object.defineProperty(HI,"__esModule",{value:!0});HI.default=void 0;var Hd={relatedConcepts:[{module:"ARIA",concept:{name:"region"}}],type:"structure"},Jd=Hd;HI.default=Jd});var WI=A((VI)=>{Object.defineProperty(VI,"__esModule",{value:!0});VI.default=void 0;var Xd={relatedConcepts:[],type:"structure"},Vd=Xd;VI.default=Vd});var RI=A(($I)=>{Object.defineProperty($I,"__esModule",{value:!0});$I.default=void 0;var Gd={relatedConcepts:[{module:"ARIA",concept:{name:"rowheader"}},{module:"HTML",concept:{name:"th",attributes:[{name:"scope",value:"row"}]}}],type:"widget"},Wd=Gd;$I.default=Wd});var MI=A((zI)=>{Object.defineProperty(zI,"__esModule",{value:!0});zI.default=void 0;var $d={relatedConcepts:[{module:"ARIA",concept:{name:"row"}},{module:"HTML",concept:{name:"tr"}}],type:"structure"},Ud=$d;zI.default=Ud});var OI=A((LI)=>{Object.defineProperty(LI,"__esModule",{value:!0});LI.default=void 0;var Rd={relatedConcepts:[{module:"HTML",concept:{name:"ruby"}}],type:"structure"},zd=Rd;LI.default=zd});var II=A((wI)=>{Object.defineProperty(wI,"__esModule",{value:!0});wI.default=void 0;var Bd={relatedConcepts:[],type:"structure"},Md=Bd;wI.default=Md});var CI=A((jI)=>{Object.defineProperty(jI,"__esModule",{value:!0});jI.default=void 0;var Ld={relatedConcepts:[],type:"structure"},Pd=Ld;jI.default=Pd});var TI=A((EI)=>{Object.defineProperty(EI,"__esModule",{value:!0});EI.default=void 0;var Od={relatedConcepts:[{module:"ARIA",concept:{name:"scrollbar"}}],type:"widget"},wd=Od;EI.default=wd});var vI=A((fI)=>{Object.defineProperty(fI,"__esModule",{value:!0});fI.default=void 0;var Ad={relatedConcepts:[],type:"structure"},Id=Ad;fI.default=Id});var SI=A((kI)=>{Object.defineProperty(kI,"__esModule",{value:!0});kI.default=void 0;var jd={relatedConcepts:[{module:"ARIA",concept:{name:"search"}}],type:"structure"},Dd=jd;kI.default=Dd});var hI=A((uI)=>{Object.defineProperty(uI,"__esModule",{value:!0});uI.default=void 0;var Cd={relatedConcepts:[{module:"ARIA",concept:{name:"searchbox"}},{module:"HTML",concept:{name:"input",attributes:[{name:"type",value:"search"}]}}],type:"widget"},Ed=Cd;uI.default=Ed});var gI=A((_I)=>{Object.defineProperty(_I,"__esModule",{value:!0});_I.default=void 0;var Fd={relatedConcepts:[{module:"ARIA",concept:{name:"slider"}},{module:"HTML",concept:{name:"input",attributes:[{name:"type",value:"range"}]}}],type:"widget"},Td=Fd;_I.default=Td});var mI=A((xI)=>{Object.defineProperty(xI,"__esModule",{value:!0});xI.default=void 0;var fd={relatedConcepts:[],type:"structure"},Kd=fd;xI.default=Kd});var rI=A((pI)=>{Object.defineProperty(pI,"__esModule",{value:!0});pI.default=void 0;var vd={relatedConcepts:[{module:"ARIA",concept:{name:"spinbutton"}},{module:"HTML",concept:{name:"input",attributes:[{name:"type",value:"number"}]}}],type:"widget"},kd=vd;pI.default=kd});var sI=A((iI)=>{Object.defineProperty(iI,"__esModule",{value:!0});iI.default=void 0;var Nd={relatedConcepts:[],type:"structure"},Sd=Nd;iI.default=Sd});var nI=A((aI)=>{Object.defineProperty(aI,"__esModule",{value:!0});aI.default=void 0;var ud={relatedConcepts:[{module:"ARIA",concept:{name:"separator"}}],type:"widget"},bd=ud;aI.default=bd});var qj=A((tI)=>{Object.defineProperty(tI,"__esModule",{value:!0});tI.default=void 0;var hd={relatedConcepts:[],type:"structure"},_d=hd;tI.default=_d});var Yj=A((Zj)=>{Object.defineProperty(Zj,"__esModule",{value:!0});Zj.default=void 0;var yd={relatedConcepts:[{module:"ARIA",concept:{name:"status"}}],type:"structure"},gd=yd;Zj.default=gd});var Xj=A((Hj)=>{Object.defineProperty(Hj,"__esModule",{value:!0});Hj.default=void 0;var xd={relatedConcepts:[],type:"structure"},ld=xd;Hj.default=ld});var Wj=A((Vj)=>{Object.defineProperty(Vj,"__esModule",{value:!0});Vj.default=void 0;var md={relatedConcepts:[{module:"ARIA",concept:{name:"switch"}},{module:"HTML",concept:{name:"input",attributes:[{name:"type",value:"checkbox"}]}}],type:"widget"},pd=md;Vj.default=pd});var Rj=A(($j)=>{Object.defineProperty($j,"__esModule",{value:!0});$j.default=void 0;var cd={relatedConcepts:[{module:"ARIA",concept:{name:"tablist"}}],type:"structure"},rd=cd;$j.default=rd});var Mj=A((zj)=>{Object.defineProperty(zj,"__esModule",{value:!0});zj.default=void 0;var id={relatedConcepts:[{module:"ARIA",concept:{name:"tab"}}],type:"widget"},dd=id;zj.default=dd});var Oj=A((Lj)=>{Object.defineProperty(Lj,"__esModule",{value:!0});Lj.default=void 0;var sd={relatedConcepts:[],type:"structure"},ad=sd;Lj.default=ad});var Ij=A((wj)=>{Object.defineProperty(wj,"__esModule",{value:!0});wj.default=void 0;var od={relatedConcepts:[{module:"ARIA",concept:{name:"table"}},{module:"HTML",concept:{name:"table"}}],type:"structure"},nd=od;wj.default=nd});var Cj=A((jj)=>{Object.defineProperty(jj,"__esModule",{value:!0});jj.default=void 0;var td={relatedConcepts:[{module:"ARIA",concept:{name:"tablist"}}],type:"structure"},ed=td;jj.default=ed});var Tj=A((Ej)=>{Object.defineProperty(Ej,"__esModule",{value:!0});Ej.default=void 0;var qs={relatedConcepts:[{module:"ARIA",concept:{name:"tabpanel"}}],type:"structure"},Zs=qs;Ej.default=Zs});var vj=A((fj)=>{Object.defineProperty(fj,"__esModule",{value:!0});fj.default=void 0;var Qs={relatedConcepts:[{module:"ARIA",concept:{name:"term"}}],type:"structure"},Ys=Qs;fj.default=Ys});var Sj=A((kj)=>{Object.defineProperty(kj,"__esModule",{value:!0});kj.default=void 0;var Hs={relatedConcepts:[{module:"ARIA",concept:{attributes:[{name:"aria-multiline",value:"true"}],name:"textbox"}},{module:"HTML",concept:{name:"textarea"}}],type:"widget"},Js=Hs;kj.default=Js});var hj=A((uj)=>{Object.defineProperty(uj,"__esModule",{value:!0});uj.default=void 0;var Xs={relatedConcepts:[{module:"ARIA",concept:{name:"textbox"}},{module:"HTML",concept:{name:"input"}},{module:"HTML",concept:{name:"input",attributes:[{name:"type",value:"text"}]}}],type:"widget"},Vs=Xs;uj.default=Vs});var gj=A((_j)=>{Object.defineProperty(_j,"__esModule",{value:!0});_j.default=void 0;var Gs={relatedConcepts:[{module:"HTML",concept:{name:"time"}}],type:"structure"},Ws=Gs;_j.default=Ws});var mj=A((xj)=>{Object.defineProperty(xj,"__esModule",{value:!0});xj.default=void 0;var $s={relatedConcepts:[{module:"ARIA",concept:{name:"timer"}}],type:"structure"},Us=$s;xj.default=Us});var rj=A((pj)=>{Object.defineProperty(pj,"__esModule",{value:!0});pj.default=void 0;var Rs={relatedConcepts:[{module:"ARIA",concept:{attributes:[{name:"aria-pressed"}]}}],type:"widget"},zs=Rs;pj.default=zs});var sj=A((ij)=>{Object.defineProperty(ij,"__esModule",{value:!0});ij.default=void 0;var Bs={relatedConcepts:[{module:"ARIA",concept:{name:"toolbar"}}],type:"structure"},Ms=Bs;ij.default=Ms});var nj=A((aj)=>{Object.defineProperty(aj,"__esModule",{value:!0});aj.default=void 0;var Ls={relatedConcepts:[{module:"ARIA",concept:{name:"tree"}}],type:"widget"},Ps=Ls;aj.default=Ps});var qD=A((tj)=>{Object.defineProperty(tj,"__esModule",{value:!0});tj.default=void 0;var Os={relatedConcepts:[{module:"ARIA",concept:{name:"treegrid"}}],type:"widget"},ws=Os;tj.default=ws});var YD=A((ZD)=>{Object.defineProperty(ZD,"__esModule",{value:!0});ZD.default=void 0;var As={relatedConcepts:[{module:"ARIA",concept:{name:"treeitem"}}],type:"widget"},Is=As;ZD.default=Is});var XD=A((HD)=>{Object.defineProperty(HD,"__esModule",{value:!0});HD.default=void 0;var js={relatedConcepts:[{module:"ARIA",concept:{name:"tooltip"}}],type:"structure"},Ds=js;HD.default=Ds});var WD=A((VD)=>{Object.defineProperty(VD,"__esModule",{value:!0});VD.default=void 0;var Cs={relatedConcepts:[{module:"HTML",concept:{name:"video"}}],type:"widget"},Es=Cs;VD.default=Es});var RD=A(($D)=>{Object.defineProperty($D,"__esModule",{value:!0});$D.default=void 0;var Fs={relatedConcepts:[],type:"structure"},Ts=Fs;$D.default=Ts});var MD=A((zD)=>{Object.defineProperty(zD,"__esModule",{value:!0});zD.default=void 0;var fs={relatedConcepts:[],type:"window"},Ks=fs;zD.default=Ks});var a7=A((PD)=>{Object.defineProperty(PD,"__esModule",{value:!0});PD.default=void 0;var vs=c(s7()),ks=c(CL()),Ns=c(TL()),Ss=c(vL()),us=c(SL()),bs=c(hL()),hs=c(gL()),_s=c(mL()),ys=c(rL()),gs=c(sL()),xs=c(nL()),ls=c(qP()),ms=c(YP()),ps=c(XP()),cs=c(WP()),rs=c(RP()),is=c(MP()),ds=c(OP()),ss=c(IP()),as=c(CP()),os=c(TP()),ns=c(vP()),ts=c(SP()),es=c(hP()),qa=c(gP()),Za=c(mP()),Qa=c(rP()),Ya=c(sP()),Ha=c(nP()),Ja=c(qO()),Xa=c(YO()),Va=c(XO()),Ga=c(WO()),Wa=c(RO()),$a=c(MO()),Ua=c(OO()),Ra=c(IO()),za=c(CO()),Ba=c(TO()),Ma=c(vO()),La=c(SO()),Pa=c(hO()),Oa=c(gO()),wa=c(mO()),Aa=c(rO()),Ia=c(sO()),ja=c(nO()),Da=c(qw()),Ca=c(Yw()),Ea=c(Xw()),Fa=c(Ww()),Ta=c(Rw()),fa=c(Mw()),Ka=c(Ow()),va=c(Iw()),ka=c(Cw()),Na=c(Tw()),Sa=c(vw()),ua=c(Sw()),ba=c(hw()),ha=c(gw()),_a=c(mw()),ya=c(rw()),ga=c(sw()),xa=c(nw()),la=c(qA()),ma=c(YA()),pa=c(XA()),ca=c(WA()),ra=c(RA()),ia=c(MA()),da=c(OA()),sa=c(IA()),aa=c(CA()),oa=c(TA()),na=c(vA()),ta=c(SA()),ea=c(hA()),qo=c(gA()),Zo=c(mA()),Qo=c(rA()),Yo=c(sA()),Ho=c(nA()),Jo=c(qI()),Xo=c(YI()),Vo=c(XI()),Go=c(WI()),Wo=c(RI()),$o=c(MI()),Uo=c(OI()),Ro=c(II()),zo=c(CI()),Bo=c(TI()),Mo=c(vI()),Lo=c(SI()),Po=c(hI()),Oo=c(gI()),wo=c(mI()),Ao=c(rI()),Io=c(sI()),jo=c(nI()),Do=c(qj()),Co=c(Yj()),Eo=c(Xj()),Fo=c(Wj()),To=c(Rj()),fo=c(Mj()),Ko=c(Oj()),vo=c(Ij()),ko=c(Cj()),No=c(Tj()),So=c(vj()),uo=c(Sj()),bo=c(hj()),ho=c(gj()),_o=c(mj()),yo=c(rj()),go=c(sj()),xo=c(nj()),lo=c(qD()),mo=c(YD()),po=c(XD()),co=c(WD()),ro=c(RD()),io=c(MD());function c(q){return q&&q.__esModule?q:{default:q}}function hZ(q,Z){return no(q)||oo(q,Z)||ao(q,Z)||so()}function so(){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 ao(q,Z){if(!q)return;if(typeof q==="string")return LD(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 LD(q,Z)}function LD(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 oo(q,Z){var Q=q==null?null:typeof Symbol<"u"&&q[Symbol.iterator]||q["@@iterator"];if(Q==null)return;var Y=[],H=!0,J=!1,X,W;try{for(Q=Q.call(q);!(H=(X=Q.next()).done);H=!0)if(Y.push(X.value),Z&&Y.length===Z)break}catch($){J=!0,W=$}finally{try{if(!H&&Q.return!=null)Q.return()}finally{if(J)throw W}}return Y}function no(q){if(Array.isArray(q))return q}var v6=[["AbbrRole",ks.default],["AlertDialogRole",Ns.default],["AlertRole",Ss.default],["AnnotationRole",us.default],["ApplicationRole",bs.default],["ArticleRole",hs.default],["AudioRole",_s.default],["BannerRole",ys.default],["BlockquoteRole",gs.default],["BusyIndicatorRole",xs.default],["ButtonRole",ls.default],["CanvasRole",ms.default],["CaptionRole",ps.default],["CellRole",cs.default],["CheckBoxRole",rs.default],["ColorWellRole",is.default],["ColumnHeaderRole",ds.default],["ColumnRole",ss.default],["ComboBoxRole",as.default],["ComplementaryRole",os.default],["ContentInfoRole",ns.default],["DateRole",ts.default],["DateTimeRole",es.default],["DefinitionRole",qa.default],["DescriptionListDetailRole",Za.default],["DescriptionListRole",Qa.default],["DescriptionListTermRole",Ya.default],["DetailsRole",Ha.default],["DialogRole",Ja.default],["DirectoryRole",Xa.default],["DisclosureTriangleRole",Va.default],["DivRole",Ga.default],["DocumentRole",Wa.default],["EmbeddedObjectRole",$a.default],["FeedRole",Ua.default],["FigcaptionRole",Ra.default],["FigureRole",za.default],["FooterRole",Ba.default],["FormRole",Ma.default],["GridRole",La.default],["GroupRole",Pa.default],["HeadingRole",Oa.default],["IframePresentationalRole",wa.default],["IframeRole",Aa.default],["IgnoredRole",Ia.default],["ImageMapLinkRole",ja.default],["ImageMapRole",Da.default],["ImageRole",Ca.default],["InlineTextBoxRole",Ea.default],["InputTimeRole",Fa.default],["LabelRole",Ta.default],["LegendRole",fa.default],["LineBreakRole",Ka.default],["LinkRole",va.default],["ListBoxOptionRole",ka.default],["ListBoxRole",Na.default],["ListItemRole",Sa.default],["ListMarkerRole",ua.default],["ListRole",ba.default],["LogRole",ha.default],["MainRole",_a.default],["MarkRole",ya.default],["MarqueeRole",ga.default],["MathRole",xa.default],["MenuBarRole",la.default],["MenuButtonRole",ma.default],["MenuItemRole",pa.default],["MenuItemCheckBoxRole",ca.default],["MenuItemRadioRole",ra.default],["MenuListOptionRole",ia.default],["MenuListPopupRole",da.default],["MenuRole",sa.default],["MeterRole",aa.default],["NavigationRole",oa.default],["NoneRole",na.default],["NoteRole",ta.default],["OutlineRole",ea.default],["ParagraphRole",qo.default],["PopUpButtonRole",Zo.default],["PreRole",Qo.default],["PresentationalRole",Yo.default],["ProgressIndicatorRole",Ho.default],["RadioButtonRole",Jo.default],["RadioGroupRole",Xo.default],["RegionRole",Vo.default],["RootWebAreaRole",Go.default],["RowHeaderRole",Wo.default],["RowRole",$o.default],["RubyRole",Uo.default],["RulerRole",Ro.default],["ScrollAreaRole",zo.default],["ScrollBarRole",Bo.default],["SeamlessWebAreaRole",Mo.default],["SearchRole",Lo.default],["SearchBoxRole",Po.default],["SliderRole",Oo.default],["SliderThumbRole",wo.default],["SpinButtonRole",Ao.default],["SpinButtonPartRole",Io.default],["SplitterRole",jo.default],["StaticTextRole",Do.default],["StatusRole",Co.default],["SVGRootRole",Eo.default],["SwitchRole",Fo.default],["TabGroupRole",To.default],["TabRole",fo.default],["TableHeaderContainerRole",Ko.default],["TableRole",vo.default],["TabListRole",ko.default],["TabPanelRole",No.default],["TermRole",So.default],["TextAreaRole",uo.default],["TextFieldRole",bo.default],["TimeRole",ho.default],["TimerRole",_o.default],["ToggleButtonRole",yo.default],["ToolbarRole",go.default],["TreeRole",xo.default],["TreeGridRole",lo.default],["TreeItemRole",mo.default],["UserInterfaceTooltipRole",po.default],["VideoRole",co.default],["WebAreaRole",ro.default],["WindowRole",io.default]],_Z={entries:function(){return v6},forEach:function(Z){var Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;for(var Y=0,H=v6;Y<H.length;Y++){var J=hZ(H[Y],2),X=J[0],W=J[1];Z.call(Q,W,X,v6)}},get:function(Z){var Q=v6.find(function(Y){return Y[0]===Z?!0:!1});return Q&&Q[1]},has:function(Z){return!!_Z.get(Z)},keys:function(){return v6.map(function(Z){var Q=hZ(Z,1),Y=Q[0];return Y})},values:function(){return v6.map(function(Z){var Q=hZ(Z,2),Y=Q[1];return Y})}},to=(0,vs.default)(_Z,_Z.entries());PD.default=to});var ED=A((DD)=>{Object.defineProperty(DD,"__esModule",{value:!0});DD.default=void 0;var eo=ID(s7()),qn=ID(a7());function ID(q){return q&&q.__esModule?q:{default:q}}function o7(q,Z){return Yn(q)||Qn(q,Z)||jD(q,Z)||Zn()}function Zn(){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 Qn(q,Z){var Q=q==null?null:typeof Symbol<"u"&&q[Symbol.iterator]||q["@@iterator"];if(Q==null)return;var Y=[],H=!0,J=!1,X,W;try{for(Q=Q.call(q);!(H=(X=Q.next()).done);H=!0)if(Y.push(X.value),Z&&Y.length===Z)break}catch($){J=!0,W=$}finally{try{if(!H&&Q.return!=null)Q.return()}finally{if(J)throw W}}return Y}function Yn(q){if(Array.isArray(q))return q}function Hn(q,Z){var Q=typeof Symbol<"u"&&q[Symbol.iterator]||q["@@iterator"];if(!Q){if(Array.isArray(q)||(Q=jD(q))||Z&&q&&typeof q.length==="number"){if(Q)q=Q;var Y=0,H=function(){};return{s:H,n:function(){if(Y>=q.length)return{done:!0};return{done:!1,value:q[Y++]}},e:function(R){throw R},f:H}}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 J=!0,X=!1,W;return{s:function(){Q=Q.call(q)},n:function(){var R=Q.next();return J=R.done,R},e:function(R){X=!0,W=R},f:function(){try{if(!J&&Q.return!=null)Q.return()}finally{if(X)throw W}}}}function jD(q,Z){if(!q)return;if(typeof q==="string")return wD(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 wD(q,Z)}function wD(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 h1=[],e2=Hn(qn.default.entries()),AD;try{yZ=function(){var Z=o7(AD.value,2),Q=Z[0],Y=Z[1],H=Y.relatedConcepts;if(Array.isArray(H))H.forEach(function(J){if(J.module==="HTML"){var X=J.concept;if(X){var W=h1.findIndex(function($){var R=o7($,1),z=R[0];return z===Q});if(W===-1)h1.push([Q,[]]),W=h1.length-1;h1[W][1].push(X)}}})};for(e2.s();!(AD=e2.n()).done;)yZ()}catch(q){e2.e(q)}finally{e2.f()}var yZ,gZ={entries:function(){return h1},forEach:function(Z){var Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;for(var Y=0,H=h1;Y<H.length;Y++){var J=o7(H[Y],2),X=J[0],W=J[1];Z.call(Q,W,X,h1)}},get:function(Z){var Q=h1.find(function(Y){return Y[0]===Z?!0:!1});return Q&&Q[1]},has:function(Z){return!!gZ.get(Z)},keys:function(){return h1.map(function(Z){var Q=o7(Z,1),Y=Q[0];return Y})},values:function(){return h1.map(function(Z){var Q=o7(Z,2),Y=Q[1];return Y})}},Jn=(0,eo.default)(gZ,gZ.entries());DD.default=Jn});var ND=A((vD)=>{Object.defineProperty(vD,"__esModule",{value:!0});vD.default=void 0;var Xn=fD(s7()),Vn=fD(a7());function fD(q){return q&&q.__esModule?q:{default:q}}function n7(q,Z){return $n(q)||Wn(q,Z)||KD(q,Z)||Gn()}function Gn(){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 Wn(q,Z){var Q=q==null?null:typeof Symbol<"u"&&q[Symbol.iterator]||q["@@iterator"];if(Q==null)return;var Y=[],H=!0,J=!1,X,W;try{for(Q=Q.call(q);!(H=(X=Q.next()).done);H=!0)if(Y.push(X.value),Z&&Y.length===Z)break}catch($){J=!0,W=$}finally{try{if(!H&&Q.return!=null)Q.return()}finally{if(J)throw W}}return Y}function $n(q){if(Array.isArray(q))return q}function Un(q,Z){var Q=typeof Symbol<"u"&&q[Symbol.iterator]||q["@@iterator"];if(!Q){if(Array.isArray(q)||(Q=KD(q))||Z&&q&&typeof q.length==="number"){if(Q)q=Q;var Y=0,H=function(){};return{s:H,n:function(){if(Y>=q.length)return{done:!0};return{done:!1,value:q[Y++]}},e:function(R){throw R},f:H}}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 J=!0,X=!1,W;return{s:function(){Q=Q.call(q)},n:function(){var R=Q.next();return J=R.done,R},e:function(R){X=!0,W=R},f:function(){try{if(!J&&Q.return!=null)Q.return()}finally{if(X)throw W}}}}function KD(q,Z){if(!q)return;if(typeof q==="string")return FD(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 FD(q,Z)}function FD(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 _1=[],qq=Un(Vn.default.entries()),TD;try{xZ=function(){var Z=n7(TD.value,2),Q=Z[0],Y=Z[1],H=Y.relatedConcepts;if(Array.isArray(H))H.forEach(function(J){if(J.module==="ARIA"){var X=J.concept;if(X){var W=_1.findIndex(function($){var R=n7($,1),z=R[0];return z===Q});if(W===-1)_1.push([Q,[]]),W=_1.length-1;_1[W][1].push(X)}}})};for(qq.s();!(TD=qq.n()).done;)xZ()}catch(q){qq.e(q)}finally{qq.f()}var xZ,lZ={entries:function(){return _1},forEach:function(Z){var Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;for(var Y=0,H=_1;Y<H.length;Y++){var J=n7(H[Y],2),X=J[0],W=J[1];Z.call(Q,W,X,_1)}},get:function(Z){var Q=_1.find(function(Y){return Y[0]===Z?!0:!1});return Q&&Q[1]},has:function(Z){return!!lZ.get(Z)},keys:function(){return _1.map(function(Z){var Q=n7(Z,1),Y=Q[0];return Y})},values:function(){return _1.map(function(Z){var Q=n7(Z,2),Y=Q[1];return Y})}},Rn=(0,Xn.default)(lZ,lZ.entries());vD.default=Rn});var gD=A((_D)=>{Object.defineProperty(_D,"__esModule",{value:!0});_D.default=void 0;var zn=bD(a7()),Bn=bD(s7());function bD(q){return q&&q.__esModule?q:{default:q}}function Qq(q,Z){return Pn(q)||Ln(q,Z)||hD(q,Z)||Mn()}function Mn(){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 Ln(q,Z){var Q=q==null?null:typeof Symbol<"u"&&q[Symbol.iterator]||q["@@iterator"];if(Q==null)return;var Y=[],H=!0,J=!1,X,W;try{for(Q=Q.call(q);!(H=(X=Q.next()).done);H=!0)if(Y.push(X.value),Z&&Y.length===Z)break}catch($){J=!0,W=$}finally{try{if(!H&&Q.return!=null)Q.return()}finally{if(J)throw W}}return Y}function Pn(q){if(Array.isArray(q))return q}function On(q,Z){var Q=typeof Symbol<"u"&&q[Symbol.iterator]||q["@@iterator"];if(!Q){if(Array.isArray(q)||(Q=hD(q))||Z&&q&&typeof q.length==="number"){if(Q)q=Q;var Y=0,H=function(){};return{s:H,n:function(){if(Y>=q.length)return{done:!0};return{done:!1,value:q[Y++]}},e:function(R){throw R},f:H}}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 J=!0,X=!1,W;return{s:function(){Q=Q.call(q)},n:function(){var R=Q.next();return J=R.done,R},e:function(R){X=!0,W=R},f:function(){try{if(!J&&Q.return!=null)Q.return()}finally{if(X)throw W}}}}function hD(q,Z){if(!q)return;if(typeof q==="string")return SD(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 SD(q,Z)}function SD(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 U1=[],Zq=On(zn.default.entries()),uD;try{mZ=function(){var Z=Qq(uD.value,2),Q=Z[0],Y=Z[1],H=Y.relatedConcepts;if(Array.isArray(H))H.forEach(function(J){if(J.module==="HTML"){var X=J.concept;if(X!=null){var W=JSON.stringify(X),$,R=0;for(;R<U1.length;R++){var z=U1[R][0];if(JSON.stringify(z)===W){$=U1[R][1];break}}if(!Array.isArray($))$=[];var O=$.findIndex(function(P){return P===Q});if(O===-1)$.push(Q);if(R<U1.length)U1.splice(R,1,[X,$]);else U1.push([X,$])}}})};for(Zq.s();!(uD=Zq.n()).done;)mZ()}catch(q){Zq.e(q)}finally{Zq.f()}var mZ;function wn(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 pZ={entries:function(){return U1},forEach:function(Z){var Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;for(var Y=0,H=U1;Y<H.length;Y++){var J=Qq(H[Y],2),X=J[0],W=J[1];Z.call(Q,W,X,U1)}},get:function(Z){var Q=U1.find(function(Y){return Z.name===Y[0].name&&wn(Z.attributes,Y[0].attributes)});return Q&&Q[1]},has:function(Z){return!!pZ.get(Z)},keys:function(){return U1.map(function(Z){var Q=Qq(Z,1),Y=Q[0];return Y})},values:function(){return U1.map(function(Z){var Q=Qq(Z,2),Y=Q[1];return Y})}},An=(0,Bn.default)(pZ,pZ.entries());_D.default=An});var cZ=A((xD)=>{Object.defineProperty(xD,"__esModule",{value:!0});xD.elementAXObjects=xD.AXObjects=xD.AXObjectRoles=xD.AXObjectElements=void 0;var In=Yq(ED()),jn=Yq(ND()),Dn=Yq(a7()),Cn=Yq(gD());function Yq(q){return q&&q.__esModule?q:{default:q}}var En=In.default;xD.AXObjectElements=En;var Fn=jn.default;xD.AXObjectRoles=Fn;var Tn=Dn.default;xD.AXObjects=Tn;var fn=Cn.default;xD.elementAXObjects=fn});import{sep as hE}from"node:path";function R0(q){return hE==="/"?q:q.split(hE).join("/")}var Y9=()=>{};var U5=A((j_8,aE)=>{var sE={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:"/"},J08={...sE,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:"\\"},X08={__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"};aE.exports={DEFAULT_MAX_EXTGLOB_RECURSION:0,MAX_LENGTH:65536,POSIX_REGEX_SOURCE:X08,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?J08:sE}}});var R5=A((U08)=>{var{REGEX_BACKSLASH:V08,REGEX_REMOVE_BACKSLASH:G08,REGEX_SPECIAL_CHARS:W08,REGEX_SPECIAL_CHARS_GLOBAL:$08}=U5();U08.isObject=(q)=>q!==null&&typeof q==="object"&&!Array.isArray(q);U08.hasRegexChars=(q)=>W08.test(q);U08.isRegexChar=(q)=>q.length===1&&U08.hasRegexChars(q);U08.escapeRegex=(q)=>q.replace($08,"\\$1");U08.toPosixSlashes=(q)=>q.replace(V08,"/");U08.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};U08.removeBackslashes=(q)=>{return q.replace(G08,(Z)=>{return Z==="\\"?"":Z})};U08.escapeLast=(q,Z,Q)=>{let Y=q.lastIndexOf(Z,Q);if(Y===-1)return q;if(q[Y-1]==="\\")return U08.escapeLast(q,Z,Y-1);return`${q.slice(0,Y)}\\${q.slice(Y)}`};U08.removePrefix=(q,Z={})=>{let Q=q;if(Q.startsWith("./"))Q=Q.slice(2),Z.prefix="./";return Q};U08.wrapOutput=(q,Z={},Q={})=>{let Y=Q.contains?"":"^",H=Q.contains?"":"$",J=`${Y}(?:${q})${H}`;if(Z.negated===!0)J=`(?:^(?!${J}).*$)`;return J};U08.basename=(q,{windows:Z}={})=>{let Q=q.split(Z?/[\\/]/:"/"),Y=Q[Q.length-1];if(Y==="")return Q[Q.length-2];return Y}});var JF=A((C_8,HF)=>{var tE=R5(),{CHAR_ASTERISK:jQ,CHAR_AT:I08,CHAR_BACKWARD_SLASH:z5,CHAR_COMMA:j08,CHAR_DOT:DQ,CHAR_EXCLAMATION_MARK:CQ,CHAR_FORWARD_SLASH:YF,CHAR_LEFT_CURLY_BRACE:EQ,CHAR_LEFT_PARENTHESES:FQ,CHAR_LEFT_SQUARE_BRACKET:D08,CHAR_PLUS:C08,CHAR_QUESTION_MARK:eE,CHAR_RIGHT_CURLY_BRACE:E08,CHAR_RIGHT_PARENTHESES:qF,CHAR_RIGHT_SQUARE_BRACKET:F08}=U5(),ZF=(q)=>{return q===YF||q===z5},QF=(q)=>{if(q.isPrefix!==!0)q.depth=q.isGlobstar?1/0:1},T08=(q,Z)=>{let Q=Z||{},Y=q.length-1,H=Q.parts===!0||Q.scanToEnd===!0,J=[],X=[],W=[],$=q,R=-1,z=0,O=0,P=!1,w=!1,v=!1,F=!1,h=!1,m=!1,_=!1,E=!1,u=!1,S=!1,s=0,b,G,U={value:"",depth:0,isGlob:!1},B=()=>R>=Y,M=()=>$.charCodeAt(R+1),C=()=>{return b=G,$.charCodeAt(++R)};while(R<Y){G=C();let k;if(G===z5){if(_=U.backslashes=!0,G=C(),G===EQ)m=!0;continue}if(m===!0||G===EQ){s++;while(B()!==!0&&(G=C())){if(G===z5){_=U.backslashes=!0,C();continue}if(G===EQ){s++;continue}if(m!==!0&&G===DQ&&(G=C())===DQ){if(P=U.isBrace=!0,v=U.isGlob=!0,S=!0,H===!0)continue;break}if(m!==!0&&G===j08){if(P=U.isBrace=!0,v=U.isGlob=!0,S=!0,H===!0)continue;break}if(G===E08){if(s--,s===0){m=!1,P=U.isBrace=!0,S=!0;break}}}if(H===!0)continue;break}if(G===YF){if(J.push(R),X.push(U),U={value:"",depth:0,isGlob:!1},S===!0)continue;if(b===DQ&&R===z+1){z+=2;continue}O=R+1;continue}if(Q.noext!==!0){if((G===C08||G===I08||G===jQ||G===eE||G===CQ)===!0&&M()===FQ){if(v=U.isGlob=!0,F=U.isExtglob=!0,S=!0,G===CQ&&R===z)u=!0;if(H===!0){while(B()!==!0&&(G=C())){if(G===z5){_=U.backslashes=!0,G=C();continue}if(G===qF){v=U.isGlob=!0,S=!0;break}}continue}break}}if(G===jQ){if(b===jQ)h=U.isGlobstar=!0;if(v=U.isGlob=!0,S=!0,H===!0)continue;break}if(G===eE){if(v=U.isGlob=!0,S=!0,H===!0)continue;break}if(G===D08){while(B()!==!0&&(k=C())){if(k===z5){_=U.backslashes=!0,C();continue}if(k===F08){w=U.isBracket=!0,v=U.isGlob=!0,S=!0;break}}if(H===!0)continue;break}if(Q.nonegate!==!0&&G===CQ&&R===z){E=U.negated=!0,z++;continue}if(Q.noparen!==!0&&G===FQ){if(v=U.isGlob=!0,H===!0){while(B()!==!0&&(G=C())){if(G===FQ){_=U.backslashes=!0,G=C();continue}if(G===qF){S=!0;break}}continue}break}if(v===!0){if(S=!0,H===!0)continue;break}}if(Q.noext===!0)F=!1,v=!1;let T=$,D="",f="";if(z>0)D=$.slice(0,z),$=$.slice(z),O-=z;if(T&&v===!0&&O>0)T=$.slice(0,O),f=$.slice(O);else if(v===!0)T="",f=$;else T=$;if(T&&T!==""&&T!=="/"&&T!==$){if(ZF(T.charCodeAt(T.length-1)))T=T.slice(0,-1)}if(Q.unescape===!0){if(f)f=tE.removeBackslashes(f);if(T&&_===!0)T=tE.removeBackslashes(T)}let p={prefix:D,input:q,start:z,base:T,glob:f,isBrace:P,isBracket:w,isGlob:v,isExtglob:F,isGlobstar:h,negated:E,negatedExtglob:u};if(Q.tokens===!0){if(p.maxDepth=0,!ZF(G))X.push(U);p.tokens=X}if(Q.parts===!0||Q.tokens===!0){let k;for(let o=0;o<J.length;o++){let A8=k?k+1:z,z8=J[o],D8=q.slice(A8,z8);if(Q.tokens){if(o===0&&z!==0)X[o].isPrefix=!0,X[o].value=D;else X[o].value=D8;QF(X[o]),p.maxDepth+=X[o].depth}if(o!==0||D8!=="")W.push(D8);k=z8}if(k&&k+1<q.length){let o=q.slice(k+1);if(W.push(o),Q.tokens)X[X.length-1].value=o,QF(X[X.length-1]),p.maxDepth+=X[X.length-1].depth}p.slashes=J,p.parts=W}return p};HF.exports=T08});var $F=A((E_8,WF)=>{var B5=U5(),s0=R5(),{MAX_LENGTH:Sq,POSIX_REGEX_SOURCE:f08,REGEX_NON_SPECIAL_CHARS:K08,REGEX_SPECIAL_CHARS_BACKREF:v08,REPLACEMENTS:XF}=B5,k08=(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((H)=>s0.escapeRegex(H)).join("..")}return Q},g6=(q,Z)=>{return`Missing ${q}: "${Z}" - use "\\\\${Z}" to match literal characters`},VF=(q)=>{let Z=[],Q=0,Y=0,H=0,J="",X=!1;for(let W of q){if(X===!0){J+=W,X=!1;continue}if(W==="\\"){J+=W,X=!0;continue}if(W==='"'){H=H===1?0:1,J+=W;continue}if(H===0){if(W==="[")Q++;else if(W==="]"&&Q>0)Q--;else if(Q===0){if(W==="(")Y++;else if(W===")"&&Y>0)Y--;else if(W==="|"&&Y===0){Z.push(J),J="";continue}}}J+=W}return Z.push(J),Z},N08=(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},GF=(q)=>{let Z=q.trim(),Q=!0;while(Q===!0)if(Q=!1,/^@\([^\\()[\]{}|]+\)$/.test(Z))Z=Z.slice(2,-1),Q=!0;if(!N08(Z))return;return Z.replace(/\\(.)/g,"$1")},S08=(q)=>{let Z=q.map(GF).filter(Boolean);for(let Q=0;Q<Z.length;Q++)for(let Y=Q+1;Y<Z.length;Y++){let H=Z[Q],J=Z[Y],X=H[0];if(!X||H!==X.repeat(H.length)||J!==X.repeat(J.length))continue;if(H===J||H.startsWith(J)||J.startsWith(H))return!0}return!1},TQ=(q,Z=!0)=>{if(q[0]!=="+"&&q[0]!=="*"||q[1]!=="(")return;let Q=0,Y=0,H=0,J=!1;for(let X=1;X<q.length;X++){let W=q[X];if(J===!0){J=!1;continue}if(W==="\\"){J=!0;continue}if(W==='"'){H=H===1?0:1;continue}if(H===1)continue;if(W==="["){Q++;continue}if(W==="]"&&Q>0){Q--;continue}if(Q>0)continue;if(W==="("){Y++;continue}if(W===")"){if(Y--,Y===0){if(Z===!0&&X!==q.length-1)return;return{type:q[0],body:q.slice(2,X),end:X}}}}},u08=(q)=>{let Z=0,Q=[];while(Z<q.length){let H=TQ(q.slice(Z),!1);if(!H||H.type!=="*")return;let J=VF(H.body).map((W)=>W.trim());if(J.length!==1)return;let X=GF(J[0]);if(!X||X.length!==1)return;Q.push(X),Z+=H.end+1}if(Q.length<1)return;return`${Q.length===1?s0.escapeRegex(Q[0]):`[${Q.map((H)=>s0.escapeRegex(H)).join("")}]`}*`},b08=(q)=>{let Z=0,Q=q.trim(),Y=TQ(Q);while(Y)Z++,Q=Y.body.trim(),Y=TQ(Q);return Z},h08=(q,Z)=>{if(Z.maxExtglobRecursion===!1)return{risky:!1};let Q=typeof Z.maxExtglobRecursion==="number"?Z.maxExtglobRecursion:B5.DEFAULT_MAX_EXTGLOB_RECURSION,Y=VF(q).map((H)=>H.trim());if(Y.length>1){if(Y.some((H)=>H==="")||Y.some((H)=>/^[*?]+$/.test(H))||S08(Y))return{risky:!0}}for(let H of Y){let J=u08(H);if(J)return{risky:!0,safeOutput:J};if(b08(H)>Q)return{risky:!0}}return{risky:!1}},fQ=(q,Z)=>{if(typeof q!=="string")throw TypeError("Expected a string");q=XF[q]||q;let Q={...Z},Y=typeof Q.maxLength==="number"?Math.min(Sq,Q.maxLength):Sq,H=q.length;if(H>Y)throw SyntaxError(`Input length: ${H}, exceeds maximum allowed length: ${Y}`);let J={type:"bos",value:"",output:Q.prepend||""},X=[J],W=Q.capture?"":"?:",$=B5.globChars(Q.windows),R=B5.extglobChars($),{DOT_LITERAL:z,PLUS_LITERAL:O,SLASH_LITERAL:P,ONE_CHAR:w,DOTS_SLASH:v,NO_DOT:F,NO_DOT_SLASH:h,NO_DOTS_SLASH:m,QMARK:_,QMARK_NO_DOT:E,STAR:u,START_ANCHOR:S}=$,s=(i)=>{return`(${W}(?:(?!${S}${i.dot?v:z}).)*?)`},b=Q.dot?"":F,G=Q.dot?_:E,U=Q.bash===!0?s(Q):u;if(Q.capture)U=`(${U})`;if(typeof Q.noext==="boolean")Q.noextglob=Q.noext;let B={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=s0.removePrefix(q,B),H=q.length;let M=[],C=[],T=[],D=J,f,p=()=>B.index===H-1,k=B.peek=(i=1)=>q[B.index+i],o=B.advance=()=>q[++B.index]||"",A8=()=>q.slice(B.index+1),z8=(i="",L8=0)=>{B.consumed+=i,B.index+=L8},D8=(i)=>{B.output+=i.output!=null?i.output:i.value,z8(i.value)},Z8=()=>{let i=1;while(k()==="!"&&(k(2)!=="("||k(3)==="?"))o(),B.start++,i++;if(i%2===0)return!1;return B.negated=!0,B.start++,!0},S8=(i)=>{B[i]++,T.push(i)},H8=(i)=>{B[i]--,T.pop()},q8=(i)=>{if(D.type==="globstar"){let L8=B.braces>0&&(i.type==="comma"||i.type==="brace"),a=i.extglob===!0||M.length&&(i.type==="pipe"||i.type==="paren");if(i.type!=="slash"&&i.type!=="paren"&&!L8&&!a)B.output=B.output.slice(0,-D.output.length),D.type="star",D.value="*",D.output=U,B.output+=D.output}if(M.length&&i.type!=="paren")M[M.length-1].inner+=i.value;if(i.value||i.output)D8(i);if(D&&D.type==="text"&&i.type==="text"){D.output=(D.output||D.value)+i.value,D.value+=i.value;return}i.prev=D,X.push(i),D=i},v8=(i,L8)=>{let a={...R[L8],conditions:1,inner:""};a.prev=D,a.parens=B.parens,a.output=B.output,a.startIndex=B.index,a.tokensIndex=X.length;let $8=(Q.capture?"(":"")+a.open;S8("parens"),q8({type:i,value:L8,output:B.output?"":w}),q8({type:"paren",extglob:!0,value:o(),output:$8}),M.push(a)},f8=(i)=>{let L8=q.slice(i.startIndex,B.index+1),a=q.slice(i.startIndex+2,B.index),$8=h08(a,Q);if((i.type==="plus"||i.type==="star")&&$8.risky){let r8=$8.safeOutput?(i.output?"":w)+(Q.capture?`(${$8.safeOutput})`:$8.safeOutput):void 0,t0=X[i.tokensIndex];t0.type="text",t0.value=L8,t0.output=r8||s0.escapeRegex(L8);for(let x0=i.tokensIndex+1;x0<X.length;x0++)X[x0].value="",X[x0].output="",delete X[x0].suffix;B.output=i.output+t0.output,B.backtrack=!0,q8({type:"paren",extglob:!0,value:f,output:""}),H8("parens");return}let y8=i.close+(Q.capture?")":""),x8;if(i.type==="negate"){let r8=U;if(i.inner&&i.inner.length>1&&i.inner.includes("/"))r8=s(Q);if(r8!==U||p()||/^\)+$/.test(A8()))y8=i.close=`)$))${r8}`;if(i.inner.includes("*")&&(x8=A8())&&/^\.[^\\/.]+$/.test(x8)){let t0=fQ(x8,{...Z,fastpaths:!1}).output;y8=i.close=`)${t0})${r8})`}if(i.prev.type==="bos")B.negatedExtglob=!0}q8({type:"paren",extglob:!0,value:f,output:y8}),H8("parens")};if(Q.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(q)){let i=!1,L8=q.replace(v08,(a,$8,y8,x8,r8,t0)=>{if(x8==="\\")return i=!0,a;if(x8==="?"){if($8)return $8+x8+(r8?_.repeat(r8.length):"");if(t0===0)return G+(r8?_.repeat(r8.length):"");return _.repeat(y8.length)}if(x8===".")return z.repeat(y8.length);if(x8==="*"){if($8)return $8+x8+(r8?U:"");return U}return $8?a:`\\${a}`});if(i===!0)if(Q.unescape===!0)L8=L8.replace(/\\/g,"");else L8=L8.replace(/\\+/g,(a)=>{return a.length%2===0?"\\\\":a?"\\":""});if(L8===q&&Q.contains===!0)return B.output=q,B;return B.output=s0.wrapOutput(L8,B,Z),B}while(!p()){if(f=o(),f==="\x00")continue;if(f==="\\"){let a=k();if(a==="/"&&Q.bash!==!0)continue;if(a==="."||a===";")continue;if(!a){f+="\\",q8({type:"text",value:f});continue}let $8=/^\\+/.exec(A8()),y8=0;if($8&&$8[0].length>2){if(y8=$8[0].length,B.index+=y8,y8%2!==0)f+="\\"}if(Q.unescape===!0)f=o();else f+=o();if(B.brackets===0){q8({type:"text",value:f});continue}}if(B.brackets>0&&(f!=="]"||D.value==="["||D.value==="[^")){if(Q.posix!==!1&&f===":"){let a=D.value.slice(1);if(a.includes("[")){if(D.posix=!0,a.includes(":")){let $8=D.value.lastIndexOf("["),y8=D.value.slice(0,$8),x8=D.value.slice($8+2),r8=f08[x8];if(r8){if(D.value=y8+r8,B.backtrack=!0,o(),!J.output&&X.indexOf(D)===1)J.output=w;continue}}}}if(f==="["&&k()!==":"||f==="-"&&k()==="]")f=`\\${f}`;if(f==="]"&&(D.value==="["||D.value==="[^"))f=`\\${f}`;if(Q.posix===!0&&f==="!"&&D.value==="[")f="^";D.value+=f,D8({value:f});continue}if(B.quotes===1&&f!=='"'){f=s0.escapeRegex(f),D.value+=f,D8({value:f});continue}if(f==='"'){if(B.quotes=B.quotes===1?0:1,Q.keepQuotes===!0)q8({type:"text",value:f});continue}if(f==="("){S8("parens"),q8({type:"paren",value:f});continue}if(f===")"){if(B.parens===0&&Q.strictBrackets===!0)throw SyntaxError(g6("opening","("));let a=M[M.length-1];if(a&&B.parens===a.parens+1){f8(M.pop());continue}q8({type:"paren",value:f,output:B.parens?")":"\\)"}),H8("parens");continue}if(f==="["){if(Q.nobracket===!0||!A8().includes("]")){if(Q.nobracket!==!0&&Q.strictBrackets===!0)throw SyntaxError(g6("closing","]"));f=`\\${f}`}else S8("brackets");q8({type:"bracket",value:f});continue}if(f==="]"){if(Q.nobracket===!0||D&&D.type==="bracket"&&D.value.length===1){q8({type:"text",value:f,output:`\\${f}`});continue}if(B.brackets===0){if(Q.strictBrackets===!0)throw SyntaxError(g6("opening","["));q8({type:"text",value:f,output:`\\${f}`});continue}H8("brackets");let a=D.value.slice(1);if(D.posix!==!0&&a[0]==="^"&&!a.includes("/"))f=`/${f}`;if(D.value+=f,D8({value:f}),Q.literalBrackets===!1||s0.hasRegexChars(a))continue;let $8=s0.escapeRegex(D.value);if(B.output=B.output.slice(0,-D.value.length),Q.literalBrackets===!0){B.output+=$8,D.value=$8;continue}D.value=`(${W}${$8}|${D.value})`,B.output+=D.value;continue}if(f==="{"&&Q.nobrace!==!0){S8("braces");let a={type:"brace",value:f,output:"(",outputIndex:B.output.length,tokensIndex:B.tokens.length};C.push(a),q8(a);continue}if(f==="}"){let a=C[C.length-1];if(Q.nobrace===!0||!a){q8({type:"text",value:f,output:f});continue}let $8=")";if(a.dots===!0){let y8=X.slice(),x8=[];for(let r8=y8.length-1;r8>=0;r8--){if(X.pop(),y8[r8].type==="brace")break;if(y8[r8].type!=="dots")x8.unshift(y8[r8].value)}$8=k08(x8,Q),B.backtrack=!0}if(a.comma!==!0&&a.dots!==!0){let y8=B.output.slice(0,a.outputIndex),x8=B.tokens.slice(a.tokensIndex);a.value=a.output="\\{",f=$8="\\}",B.output=y8;for(let r8 of x8)B.output+=r8.output||r8.value}q8({type:"brace",value:f,output:$8}),H8("braces"),C.pop();continue}if(f==="|"){if(M.length>0)M[M.length-1].conditions++;q8({type:"text",value:f});continue}if(f===","){let a=f,$8=C[C.length-1];if($8&&T[T.length-1]==="braces")$8.comma=!0,a="|";q8({type:"comma",value:f,output:a});continue}if(f==="/"){if(D.type==="dot"&&B.index===B.start+1){B.start=B.index+1,B.consumed="",B.output="",X.pop(),D=J;continue}q8({type:"slash",value:f,output:P});continue}if(f==="."){if(B.braces>0&&D.type==="dot"){if(D.value===".")D.output=z;let a=C[C.length-1];D.type="dots",D.output+=f,D.value+=f,a.dots=!0;continue}if(B.braces+B.parens===0&&D.type!=="bos"&&D.type!=="slash"){q8({type:"text",value:f,output:z});continue}q8({type:"dot",value:f,output:z});continue}if(f==="?"){if(!(D&&D.value==="(")&&Q.noextglob!==!0&&k()==="("&&k(2)!=="?"){v8("qmark",f);continue}if(D&&D.type==="paren"){let $8=k(),y8=f;if(D.value==="("&&!/[!=<:]/.test($8)||$8==="<"&&!/<([!=]|\w+>)/.test(A8()))y8=`\\${f}`;q8({type:"text",value:f,output:y8});continue}if(Q.dot!==!0&&(D.type==="slash"||D.type==="bos")){q8({type:"qmark",value:f,output:E});continue}q8({type:"qmark",value:f,output:_});continue}if(f==="!"){if(Q.noextglob!==!0&&k()==="("){if(k(2)!=="?"||!/[!=<:]/.test(k(3))){v8("negate",f);continue}}if(Q.nonegate!==!0&&B.index===0){Z8();continue}}if(f==="+"){if(Q.noextglob!==!0&&k()==="("&&k(2)!=="?"){v8("plus",f);continue}if(D&&D.value==="("||Q.regex===!1){q8({type:"plus",value:f,output:O});continue}if(D&&(D.type==="bracket"||D.type==="paren"||D.type==="brace")||B.parens>0){q8({type:"plus",value:f});continue}q8({type:"plus",value:O});continue}if(f==="@"){if(Q.noextglob!==!0&&k()==="("&&k(2)!=="?"){q8({type:"at",extglob:!0,value:f,output:""});continue}q8({type:"text",value:f});continue}if(f!=="*"){if(f==="$"||f==="^")f=`\\${f}`;let a=K08.exec(A8());if(a)f+=a[0],B.index+=a[0].length;q8({type:"text",value:f});continue}if(D&&(D.type==="globstar"||D.star===!0)){D.type="star",D.star=!0,D.value+=f,D.output=U,B.backtrack=!0,B.globstar=!0,z8(f);continue}let i=A8();if(Q.noextglob!==!0&&/^\([^?]/.test(i)){v8("star",f);continue}if(D.type==="star"){if(Q.noglobstar===!0){z8(f);continue}let a=D.prev,$8=a.prev,y8=a.type==="slash"||a.type==="bos",x8=$8&&($8.type==="star"||$8.type==="globstar");if(Q.bash===!0&&(!y8||i[0]&&i[0]!=="/")){q8({type:"star",value:f,output:""});continue}let r8=B.braces>0&&(a.type==="comma"||a.type==="brace"),t0=M.length&&(a.type==="pipe"||a.type==="paren");if(!y8&&a.type!=="paren"&&!r8&&!t0){q8({type:"star",value:f,output:""});continue}while(i.slice(0,3)==="/**"){let x0=q[B.index+4];if(x0&&x0!=="/")break;i=i.slice(3),z8("/**",3)}if(a.type==="bos"&&p()){D.type="globstar",D.value+=f,D.output=s(Q),B.output=D.output,B.globstar=!0,z8(f);continue}if(a.type==="slash"&&a.prev.type!=="bos"&&!x8&&p()){B.output=B.output.slice(0,-(a.output+D.output).length),a.output=`(?:${a.output}`,D.type="globstar",D.output=s(Q)+(Q.strictSlashes?")":"|$)"),D.value+=f,B.globstar=!0,B.output+=a.output+D.output,z8(f);continue}if(a.type==="slash"&&a.prev.type!=="bos"&&i[0]==="/"){let x0=i[1]!==void 0?"|$":"";B.output=B.output.slice(0,-(a.output+D.output).length),a.output=`(?:${a.output}`,D.type="globstar",D.output=`${s(Q)}${P}|${P}${x0})`,D.value+=f,B.output+=a.output+D.output,B.globstar=!0,z8(f+o()),q8({type:"slash",value:"/",output:""});continue}if(a.type==="bos"&&i[0]==="/"){D.type="globstar",D.value+=f,D.output=`(?:^|${P}|${s(Q)}${P})`,B.output=D.output,B.globstar=!0,z8(f+o()),q8({type:"slash",value:"/",output:""});continue}B.output=B.output.slice(0,-D.output.length),D.type="globstar",D.output=s(Q),D.value+=f,B.output+=D.output,B.globstar=!0,z8(f);continue}let L8={type:"star",value:f,output:U};if(Q.bash===!0){if(L8.output=".*?",D.type==="bos"||D.type==="slash")L8.output=b+L8.output;q8(L8);continue}if(D&&(D.type==="bracket"||D.type==="paren")&&Q.regex===!0){L8.output=f,q8(L8);continue}if(B.index===B.start||D.type==="slash"||D.type==="dot"){if(D.type==="dot")B.output+=h,D.output+=h;else if(Q.dot===!0)B.output+=m,D.output+=m;else B.output+=b,D.output+=b;if(k()!=="*")B.output+=w,D.output+=w}q8(L8)}while(B.brackets>0){if(Q.strictBrackets===!0)throw SyntaxError(g6("closing","]"));B.output=s0.escapeLast(B.output,"["),H8("brackets")}while(B.parens>0){if(Q.strictBrackets===!0)throw SyntaxError(g6("closing",")"));B.output=s0.escapeLast(B.output,"("),H8("parens")}while(B.braces>0){if(Q.strictBrackets===!0)throw SyntaxError(g6("closing","}"));B.output=s0.escapeLast(B.output,"{"),H8("braces")}if(Q.strictSlashes!==!0&&(D.type==="star"||D.type==="bracket"))q8({type:"maybe_slash",value:"",output:`${P}?`});if(B.backtrack===!0){B.output="";for(let i of B.tokens)if(B.output+=i.output!=null?i.output:i.value,i.suffix)B.output+=i.suffix}return B};fQ.fastpaths=(q,Z)=>{let Q={...Z},Y=typeof Q.maxLength==="number"?Math.min(Sq,Q.maxLength):Sq,H=q.length;if(H>Y)throw SyntaxError(`Input length: ${H}, exceeds maximum allowed length: ${Y}`);q=XF[q]||q;let{DOT_LITERAL:J,SLASH_LITERAL:X,ONE_CHAR:W,DOTS_SLASH:$,NO_DOT:R,NO_DOTS:z,NO_DOTS_SLASH:O,STAR:P,START_ANCHOR:w}=B5.globChars(Q.windows),v=Q.dot?z:R,F=Q.dot?O:R,h=Q.capture?"":"?:",m={negated:!1,prefix:""},_=Q.bash===!0?".*?":P;if(Q.capture)_=`(${_})`;let E=(b)=>{if(b.noglobstar===!0)return _;return`(${h}(?:(?!${w}${b.dot?$:J}).)*?)`},u=(b)=>{switch(b){case"*":return`${v}${W}${_}`;case".*":return`${J}${W}${_}`;case"*.*":return`${v}${_}${J}${W}${_}`;case"*/*":return`${v}${_}${X}${W}${F}${_}`;case"**":return v+E(Q);case"**/*":return`(?:${v}${E(Q)}${X})?${F}${W}${_}`;case"**/*.*":return`(?:${v}${E(Q)}${X})?${F}${_}${J}${W}${_}`;case"**/.*":return`(?:${v}${E(Q)}${X})?${J}${W}${_}`;default:{let G=/^(.*?)\.(\w+)$/.exec(b);if(!G)return;let U=u(G[1]);if(!U)return;return U+J+G[2]}}},S=s0.removePrefix(q,m),s=u(S);if(s&&Q.strictSlashes!==!0)s+=`${X}?`;return s};WF.exports=fQ});var zF=A((F_8,RF)=>{var _08=JF(),KQ=$F(),UF=R5(),y08=U5(),g08=(q)=>q&&typeof q==="object"&&!Array.isArray(q),P0=(q,Z,Q=!1)=>{if(Array.isArray(q)){let z=q.map((P)=>P0(P,Z,Q));return(P)=>{for(let w of z){let v=w(P);if(v)return v}return!1}}let Y=g08(q)&&q.tokens&&q.input;if(q===""||typeof q!=="string"&&!Y)throw TypeError("Expected pattern to be a non-empty string");let H=Z||{},J=H.windows,X=Y?P0.compileRe(q,Z):P0.makeRe(q,Z,!1,!0),W=X.state;delete X.state;let $=()=>!1;if(H.ignore){let z={...Z,ignore:null,onMatch:null,onResult:null};$=P0(H.ignore,z,Q)}let R=(z,O=!1)=>{let{isMatch:P,match:w,output:v}=P0.test(z,X,Z,{glob:q,posix:J}),F={glob:q,state:W,regex:X,posix:J,input:z,output:v,match:w,isMatch:P};if(typeof H.onResult==="function")H.onResult(F);if(P===!1)return F.isMatch=!1,O?F:!1;if($(z)){if(typeof H.onIgnore==="function")H.onIgnore(F);return F.isMatch=!1,O?F:!1}if(typeof H.onMatch==="function")H.onMatch(F);return O?F:!0};if(Q)R.state=W;return R};P0.test=(q,Z,Q,{glob:Y,posix:H}={})=>{if(typeof q!=="string")throw TypeError("Expected input to be a string");if(q==="")return{isMatch:!1,output:""};let J=Q||{},X=J.format||(H?UF.toPosixSlashes:null),W=q===Y,$=W&&X?X(q):q;if(W===!1)$=X?X(q):q,W=$===Y;if(W===!1||J.capture===!0)if(J.matchBase===!0||J.basename===!0)W=P0.matchBase(q,Z,Q,H);else W=Z.exec($);return{isMatch:Boolean(W),match:W,output:$}};P0.matchBase=(q,Z,Q)=>{return(Z instanceof RegExp?Z:P0.makeRe(Z,Q)).test(UF.basename(q))};P0.isMatch=(q,Z,Q)=>P0(Z,Q)(q);P0.parse=(q,Z)=>{if(Array.isArray(q))return q.map((Q)=>P0.parse(Q,Z));return KQ(q,{...Z,fastpaths:!1})};P0.scan=(q,Z)=>_08(q,Z);P0.compileRe=(q,Z,Q=!1,Y=!1)=>{if(Q===!0)return q.output;let H=Z||{},J=H.contains?"":"^",X=H.contains?"":"$",W=`${J}(?:${q.output})${X}`;if(q&&q.negated===!0)W=`^(?!${W}).*$`;let $=P0.toRegex(W,Z);if(Y===!0)$.state=q;return $};P0.makeRe=(q,Z={},Q=!1,Y=!1)=>{if(!q||typeof q!=="string")throw TypeError("Expected a non-empty string");let H={negated:!1,fastpaths:!0};if(Z.fastpaths!==!1&&(q[0]==="."||q[0]==="*"))H.output=KQ.fastpaths(q,Z);if(!H.output)H=KQ(q,Z);return P0.compileRe(H,Z,Q,Y)};P0.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/$^/}};P0.constants=y08;RF.exports=P0});var PF=A((T_8,LF)=>{var BF=zF(),x08=R5();function MF(q,Z,Q=!1){if(Z&&(Z.windows===null||Z.windows===void 0))Z={...Z,windows:x08.isWindows()};return BF(q,Z,Q)}Object.assign(MF,BF);LF.exports=MF});var lq;var cF=w8(()=>{(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"})(lq||(lq={}))});var mq;var rF=w8(()=>{(function(q){q[q.Warning=0]="Warning",q[q.Error=1]="Error",q[q.Suggestion=2]="Suggestion",q[q.Message=3]="Message"})(mq||(mq={}))});var pq;var iF=w8(()=>{(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"})(pq||(pq={}))});var cq;var dF=w8(()=>{(function(q){q[q.None=0]="None",q[q.CommonJS=1]="CommonJS",q[q.AMD=2]="AMD",q[q.UMD=3]="UMD",q[q.System=4]="System",q[q.ES2015=5]="ES2015",q[q.ES2020=6]="ES2020",q[q.ES2022=7]="ES2022",q[q.ESNext=99]="ESNext",q[q.Node16=100]="Node16",q[q.Node18=101]="Node18",q[q.Node20=102]="Node20",q[q.NodeNext=199]="NodeNext",q[q.Preserve=200]="Preserve"})(cq||(cq={}))});var rq;var sF=w8(()=>{(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"})(rq||(rq={}))});var o9;var aF=w8(()=>{(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"})(o9||(o9={}))});var n9;var oF=w8(()=>{(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"})(n9||(n9={}))});var iq;var nF=w8(()=>{(function(q){q[q.Call=0]="Call",q[q.Construct=1]="Construct"})(iq||(iq={}))});var m6;var tF=w8(()=>{(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"})(m6||(m6={}))});var V0;var eF=w8(()=>{(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"})(V0||(V0={}))});var dq;var qT=w8(()=>{(function(q){q[q.This=0]="This",q[q.Identifier=1]="Identifier",q[q.AssertsThis=2]="AssertsThis",q[q.AssertsIdentifier=3]="AssertsIdentifier"})(dq||(dq={}))});var Y8;var sq=w8(()=>{(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"})(Y8||(Y8={}))});var aq;var _Q=w8(()=>{(function(q){q[q.ExpectError=0]="ExpectError",q[q.Ignore=1]="Ignore"})(aq||(aq={}))});var yQ;var ZT=w8(()=>{(function(q){q.Call="__call",q.Constructor="__constructor",q.New="__new",q.Index="__index",q.ExportStar="__export",q.Global="__global",q.Missing="__missing",q.Type="__type",q.Object="__object",q.JSXAttributes="__jsxAttributes",q.Class="__class",q.Function="__function",q.Computed="__computed",q.AssignmentDeclaration="__assignment",q.InstantiationExpression="__instantiationExpression",q.ImportAttributes="__importAttributes",q.ExportEquals="export=",q.Default="default",q.This="this",q.ModuleExports="module.exports"})(yQ||(yQ={}))});var oq;var gQ=w8(()=>{(function(q){q[q.Standard=0]="Standard",q[q.JSX=1]="JSX"})(oq||(oq={}))});var a8;var QT=w8(()=>{(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"})(a8||(a8={}))});var m1;var A5=w8(()=>{(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"})(m1||(m1={}))});var M1;var xQ=w8(()=>{(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"})(M1||(M1={}))});var p6;var lQ=w8(()=>{(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"})(p6||(p6={}))});var nq;var mQ=w8(()=>{(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"})(nq||(nq={}))});var V;var p0=w8(()=>{(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"})(V||(V={}))});var E9;var c6=w8(()=>{(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"})(E9||(E9={}))});var YT=w8(()=>{p0();c6()});var pQ=w8(()=>{p0();p0();c6();YT()});function HT(q){let Z=q;return Z.length>=3&&Z.charCodeAt(0)===Y8._&&Z.charCodeAt(1)===Y8._&&Z.charCodeAt(2)===Y8._?Z.slice(1):Z}function JT(q){return{statements:q.statements,endOfFileToken:q.endOfFileToken,text:q.text,fileName:q.fileName,path:q.path,languageVariant:q.languageVariant,scriptKind:q.scriptKind,isDeclarationFile:q.isDeclarationFile,referencedFiles:q.referencedFiles,typeReferenceDirectives:q.typeReferenceDirectives,libReferenceDirectives:q.libReferenceDirectives,imports:q.imports,moduleAugmentations:q.moduleAugmentations,ambientModuleNames:q.ambientModuleNames,externalModuleIndicator:q.externalModuleIndicator,tokenCache:void 0}}var tq=w8(()=>{sq();p0()});var c0;var XT=w8(()=>{(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.Assignments=128]="Assignments",q[q.Comma=256]="Comma",q[q.Assertions=38]="Assertions",q[q.All=63]="All",q[q.AllExceptAssertionsOrExpressionsWithTypeArguments=9]="AllExceptAssertionsOrExpressionsWithTypeArguments",q[q.ExpressionTypePassthrough=385]="ExpressionTypePassthrough"})(c0||(c0={}))});function F8(q){return q.kind===V.Identifier}function VT(q){return q.kind===V.CaseBlock}function GT(q){return q.kind===V.CatchClause}function I5(q){return q.kind===V.Block}function WT(q){return q.kind===V.VariableDeclaration}function $T(q){return q.kind===V.VariableDeclarationList}function cQ(q){return q.kind===V.ExpressionWithTypeArguments}function j5(q){return q.kind===V.ImportAttributes}function rQ(q){return q.kind===V.TemplateHead}function iQ(q){return q.kind===V.JsxAttributes}function UT(q){return q.kind===V.JsxOpeningElement}function RT(q){return q.kind===V.JsxOpeningFragment}function zT(q){return q.kind===V.JsxClosingFragment}function BT(q){return q.kind===V.JsxClosingElement}function dQ(q){return q.kind===V.ImportClause}function sQ(q){return q.kind===V.TypeParameter}function MT(q){return q.kind===V.Identifier||q.kind===V.StringLiteral}function D5(q){return q.kind===V.Identifier||q.kind===V.StringLiteral}function E1(q){let Z=q.kind;return Z===V.Identifier||Z===V.StringLiteral||Z===V.NoSubstitutionTemplateLiteral||Z===V.NumericLiteral||Z===V.ComputedPropertyName||Z===V.PrivateIdentifier||Z===V.BigIntLiteral}function LT(q){return q.kind===V.ModuleBlock||q.kind===V.ModuleDeclaration}function aQ(q){return q.kind===V.Identifier||q.kind===V.ModuleDeclaration}function PT(q){return q.kind===V.Identifier||q.kind===V.QualifiedName||q.kind===V.ExternalModuleReference}function OT(q){return q.kind===V.NamespaceImport||q.kind===V.NamedImports}function wT(q){return q.kind===V.NamespaceExport||q.kind===V.NamedExports}function AT(q){return q.kind===V.Identifier||q.kind===V.PrivateIdentifier}function F1(q){return q.kind===V.Identifier||q.kind===V.QualifiedName}function eq(q){return q.kind===V.Identifier||q.kind===V.ObjectBindingPattern||q.kind===V.ArrayBindingPattern}function IT(q){return q.kind===V.Identifier||q.kind===V.JsxNamespacedName}function jT(q){let Z=q.kind;return Z===V.StringLiteral||Z===V.JsxExpression||Z===V.JsxElement||Z===V.JsxSelfClosingElement||Z===V.JsxFragment}function oQ(q){return q.kind===V.TemplateMiddle||q.kind===V.TemplateTail}function DT(q){return q.kind===V.TemplateExpression||q.kind===V.NoSubstitutionTemplateLiteral}function CT(q){return q.kind===V.Identifier||q.kind===V.ThisType}function ET(q){return q.kind===V.Identifier||q.kind===V.StringLiteral}function t9(q){return q.kind===V.Block}function Y98(q){return q===V.EqualsToken||A98(q)}function H98(q){return I98(q)||q===V.CommaToken}function J98(q){return q===V.AsteriskAsteriskToken}function X98(q){return q===V.AsteriskToken||q===V.SlashToken||q===V.PercentToken}function V98(q){return J98(q)||X98(q)}function G98(q){return q===V.PlusToken||q===V.MinusToken}function W98(q){return V98(q)||G98(q)}function $98(q){return q===V.LessThanLessThanToken||q===V.GreaterThanGreaterThanToken||q===V.GreaterThanGreaterThanGreaterThanToken}function U98(q){return W98(q)||$98(q)}function R98(q){return q===V.LessThanToken||q===V.LessThanEqualsToken||q===V.GreaterThanToken||q===V.GreaterThanEqualsToken||q===V.InstanceOfKeyword||q===V.InKeyword}function z98(q){return U98(q)||R98(q)}function B98(q){return q===V.EqualsEqualsToken||q===V.EqualsEqualsEqualsToken||q===V.ExclamationEqualsEqualsToken||q===V.ExclamationEqualsToken}function M98(q){return z98(q)||B98(q)}function L98(q){return q===V.AmpersandToken||q===V.BarToken||q===V.CaretToken}function P98(q){return M98(q)||L98(q)}function O98(q){return q===V.AmpersandAmpersandToken||q===V.BarBarToken}function w98(q){return P98(q)||O98(q)}function A98(q){return q===V.PlusEqualsToken||q===V.MinusEqualsToken||q===V.AsteriskAsteriskEqualsToken||q===V.AsteriskEqualsToken||q===V.SlashEqualsToken||q===V.PercentEqualsToken||q===V.AmpersandEqualsToken||q===V.BarEqualsToken||q===V.CaretEqualsToken||q===V.LessThanLessThanEqualsToken||q===V.GreaterThanGreaterThanGreaterThanEqualsToken||q===V.GreaterThanGreaterThanEqualsToken||q===V.BarBarEqualsToken||q===V.AmpersandAmpersandEqualsToken||q===V.QuestionQuestionEqualsToken}function I98(q){return q===V.QuestionQuestionToken||w98(q)||Y98(q)}function FT(q){return q>=V.FirstJSDocNode&&q<=V.LastJSDocNode}function TT(q){return q.kind===V.EndOfFile}function C5(q){return q.kind===V.DotDotDotToken}function q4(q){return q.kind===V.QuestionToken}function fT(q){return q.kind===V.ExclamationToken}function KT(q){return q.kind===V.ColonToken}function vT(q){return q.kind===V.EqualsToken}function E5(q){return q.kind===V.AsteriskToken}function kT(q){return q.kind===V.EqualsGreaterThanToken}function F5(q){return q.kind===V.QuestionDotToken}function NT(q){return q.kind===V.AssertsKeyword}function nQ(q){return q.kind===V.AwaitKeyword}function ST(q){return H98(q.kind)}var Z4=w8(()=>{p0()});function B8(q){return j98(q.kind)}function j98(q){return q>=V.FirstTypeNode&&q<=V.LastTypeNode||q===V.AnyKeyword||q===V.UnknownKeyword||q===V.NumberKeyword||q===V.BigIntKeyword||q===V.ObjectKeyword||q===V.BooleanKeyword||q===V.StringKeyword||q===V.SymbolKeyword||q===V.VoidKeyword||q===V.UndefinedKeyword||q===V.NeverKeyword||q===V.IntrinsicKeyword||q===V.ExpressionWithTypeArguments||q===V.JSDocAllType||q===V.JSDocNullableType||q===V.JSDocNonNullableType||q===V.JSDocOptionalType||q===V.JSDocVariadicType||q===V.JSDocTypeExpression||q===V.JSDocTypeLiteral||q===V.JSDocSignature}function p1(q){let Z=q.kind;return Z===V.VariableStatement||Z===V.EmptyStatement||Z===V.ExpressionStatement||Z===V.IfStatement||Z===V.DoStatement||Z===V.WhileStatement||Z===V.ForStatement||Z===V.ForInStatement||Z===V.ForOfStatement||Z===V.ContinueStatement||Z===V.BreakStatement||Z===V.ReturnStatement||Z===V.WithStatement||Z===V.SwitchStatement||Z===V.LabeledStatement||Z===V.ThrowStatement||Z===V.TryStatement||Z===V.DebuggerStatement||Z===V.InterfaceDeclaration||Z===V.TypeAliasDeclaration||Z===V.EnumDeclaration||Z===V.ModuleDeclaration||Z===V.ImportDeclaration||Z===V.ImportEqualsDeclaration||Z===V.ExportDeclaration||Z===V.ExportAssignment||Z===V.NamespaceExportDeclaration||Z===V.FunctionDeclaration||Z===V.ClassDeclaration||Z===V.MissingDeclaration||Z===V.NotEmittedStatement||Z===V.Block}function J8(q){let Z=q.kind;return Z===V.ConditionalExpression||Z===V.YieldExpression||Z===V.ArrowFunction||Z===V.BinaryExpression||Z===V.SpreadElement||Z===V.AsExpression||Z===V.OmittedExpression||Z===V.SatisfiesExpression||Z===V.PrefixUnaryExpression||Z===V.PostfixUnaryExpression||Z===V.DeleteExpression||Z===V.TypeOfExpression||Z===V.VoidExpression||Z===V.AwaitExpression||Z===V.TypeAssertionExpression||Z===V.CallExpression||Z===V.NewExpression||Z===V.TaggedTemplateExpression||Z===V.NonNullExpression||Z===V.MetaProperty||Z===V.JsxExpression||Z===V.PropertyAccessExpression||Z===V.ElementAccessExpression||Z===V.FunctionExpression||Z===V.ClassExpression||Z===V.ParenthesizedExpression||Z===V.ArrayLiteralExpression||Z===V.ObjectLiteralExpression||Z===V.TemplateExpression||Z===V.Identifier||Z===V.PrivateIdentifier||Z===V.NumericLiteral||Z===V.BigIntLiteral||Z===V.StringLiteral||Z===V.RegularExpressionLiteral||Z===V.NoSubstitutionTemplateLiteral||Z===V.JsxElement||Z===V.JsxSelfClosingElement||Z===V.JsxFragment||Z===V.NullKeyword||Z===V.TrueKeyword||Z===V.FalseKeyword||Z===V.ThisKeyword||Z===V.SuperKeyword||Z===V.ImportKeyword||Z===V.ExpressionWithTypeArguments}function uT(q){return C98(D98(q).kind)}function D98(q){return F98(q,c0.PartiallyEmittedExpressions)}function C98(q){switch(q){case V.PropertyAccessExpression:case V.ElementAccessExpression:case V.NewExpression:case V.CallExpression:case V.JsxElement:case V.JsxSelfClosingElement:case V.JsxFragment:case V.TaggedTemplateExpression:case V.ArrayLiteralExpression:case V.ParenthesizedExpression:case V.ObjectLiteralExpression:case V.ClassExpression:case V.FunctionExpression:case V.Identifier:case V.PrivateIdentifier:case V.RegularExpressionLiteral:case V.NumericLiteral:case V.BigIntLiteral:case V.StringLiteral:case V.NoSubstitutionTemplateLiteral:case V.TemplateExpression:case V.FalseKeyword:case V.NullKeyword:case V.ThisKeyword:case V.TrueKeyword:case V.SuperKeyword:case V.NonNullExpression:case V.ExpressionWithTypeArguments:case V.MetaProperty:case V.ImportKeyword:case V.MissingDeclaration:return!0;default:return!1}}function E98(q,Z=c0.All){switch(q.kind){case V.ParenthesizedExpression:if(Z&c0.ExcludeJSDocTypeAssertion&&T98(q))return!1;return(Z&c0.Parentheses)!==0;case V.TypeAssertionExpression:case V.AsExpression:return(Z&c0.TypeAssertions)!==0;case V.SatisfiesExpression:return(Z&(c0.ExpressionsWithTypeArguments|c0.Satisfies))!==0;case V.ExpressionWithTypeArguments:return(Z&c0.ExpressionsWithTypeArguments)!==0;case V.NonNullExpression:return(Z&c0.NonNullAssertions)!==0;case V.PartiallyEmittedExpression:return(Z&c0.PartiallyEmittedExpressions)!==0}return!1}function F98(q,Z=c0.All){while(E98(q,Z))q=q.expression;return q}function T98(q){let Z=q.getSourceFile();if(Z.scriptKind!==p6.JS&&Z.scriptKind!==p6.JSX)return!1;let Q=q.expression;if(Q.kind!==V.AsExpression)return!1;let Y=Q;return!!Y.type&&(Y.type.flags&m1.Reparsed)!==0}function bT(q){return q.kind===V.Block||J8(q)}function Q4(q){return q.kind===V.VariableDeclarationList||J8(q)}function e9(q){return q.kind===V.QuestionToken||q.kind===V.ExclamationToken}function hT(q){return q.kind===V.ReadonlyKeyword||q.kind===V.PlusToken||q.kind===V.MinusToken}function _T(q){return q.kind===V.QuestionToken||q.kind===V.PlusToken||q.kind===V.MinusToken}function Y4(q){let Z=q.kind;return Z===V.ThisKeyword||Z===V.Identifier||Z===V.PropertyAccessExpression||Z===V.JsxNamespacedName}var T5=w8(()=>{A5();XT();lQ();p0();Z4();Z4()});function I(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 l(q,Z){if(q===void 0)return;let Q=H4(q,Z);if(Q===q)return q;return y(Q,q.pos,q.end)}function H4(q,Z){if(q===void 0)return;let Q;for(let Y=0;Y<q.length;Y++){let H=q[Y],J=Z(H);if(Q){if(J)Q.push(J)}else if(J!==H){Q=[];for(let X=0;X<Y;X++)Q.push(q[X]);if(J)Q.push(J)}}return Q??q}var qg8;var tQ=w8(()=>{p0();K5();T5();f5();qg8={[V.QualifiedName]:(q,Z)=>{let Q=I(q.left,Z,F1),Y=I(q.right,Z,F8);return yT(q,Q,Y)},[V.ComputedPropertyName]:(q,Z)=>{let Q=I(q.expression,Z,J8);return gT(q,Q)},[V.Decorator]:(q,Z)=>{let Q=I(q.expression,Z,uT);return xT(q,Q)},[V.IfStatement]:(q,Z)=>{let Q=I(q.expression,Z,J8),Y=I(q.thenStatement,Z,p1),H=I(q.elseStatement,Z,p1);return lT(q,Q,Y,H)},[V.DoStatement]:(q,Z)=>{let Q=I(q.statement,Z,p1),Y=I(q.expression,Z,J8);return mT(q,Q,Y)},[V.WhileStatement]:(q,Z)=>{let Q=I(q.expression,Z,J8),Y=I(q.statement,Z,p1);return pT(q,Q,Y)},[V.ForStatement]:(q,Z)=>{let Q=I(q.initializer,Z,Q4),Y=I(q.condition,Z,J8),H=I(q.incrementor,Z,J8),J=I(q.statement,Z,p1);return cT(q,Q,Y,H,J)},[V.BreakStatement]:(q,Z)=>{let Q=I(q.label,Z,F8);return rT(q,Q)},[V.ContinueStatement]:(q,Z)=>{let Q=I(q.label,Z,F8);return iT(q,Q)},[V.ReturnStatement]:(q,Z)=>{let Q=I(q.expression,Z,J8);return dT(q,Q)},[V.WithStatement]:(q,Z)=>{let Q=I(q.expression,Z,J8),Y=I(q.statement,Z,p1);return sT(q,Q,Y)},[V.SwitchStatement]:(q,Z)=>{let Q=I(q.expression,Z,J8),Y=I(q.caseBlock,Z,VT);return aT(q,Q,Y)},[V.CaseBlock]:(q,Z)=>{let Q=l(q.clauses,Z);return oT(q,Q)},[V.ThrowStatement]:(q,Z)=>{let Q=I(q.expression,Z,J8);return nT(q,Q)},[V.TryStatement]:(q,Z)=>{let Q=I(q.tryBlock,Z,I5),Y=I(q.catchClause,Z,GT),H=I(q.finallyBlock,Z,I5);return tT(q,Q,Y,H)},[V.CatchClause]:(q,Z)=>{let Q=I(q.variableDeclaration,Z,WT),Y=I(q.block,Z,I5);return eT(q,Q,Y)},[V.LabeledStatement]:(q,Z)=>{let Q=I(q.label,Z,F8),Y=I(q.statement,Z,p1);return qf(q,Q,Y)},[V.ExpressionStatement]:(q,Z)=>{let Q=I(q.expression,Z,J8);return Zf(q,Q)},[V.Block]:(q,Z)=>{let Q=l(q.statements,Z);return Qf(q,Q)},[V.VariableStatement]:(q,Z)=>{let Q=l(q.modifiers,Z),Y=I(q.declarationList,Z,$T);return Yf(q,Q,Y)},[V.VariableDeclaration]:(q,Z)=>{let Q=I(q.name,Z,eq),Y=I(q.exclamationToken,Z,fT),H=I(q.type,Z,B8),J=I(q.initializer,Z,J8);return Hf(q,Q,Y,H,J)},[V.VariableDeclarationList]:(q,Z)=>{let Q=l(q.declarations,Z);return Jf(q,Q)},[V.Parameter]:(q,Z)=>{let Q=l(q.modifiers,Z),Y=I(q.dotDotDotToken,Z,C5),H=I(q.name,Z,eq),J=I(q.questionToken,Z,q4),X=I(q.type,Z,B8),W=I(q.initializer,Z,J8);return Xf(q,Q,Y,H,J,X,W)},[V.BindingElement]:(q,Z)=>{let Q=I(q.dotDotDotToken,Z,C5),Y=I(q.propertyName,Z,E1),H=I(q.name,Z,eq),J=I(q.initializer,Z,J8);return Vf(q,Q,Y,H,J)},[V.MissingDeclaration]:(q,Z)=>{let Q=l(q.modifiers,Z);return Gf(q,Q)},[V.FunctionDeclaration]:(q,Z)=>{let Q=l(q.modifiers,Z),Y=I(q.asteriskToken,Z,E5),H=I(q.name,Z,F8),J=l(q.typeParameters,Z),X=l(q.parameters,Z),W=I(q.type,Z,B8),$=I(q.body,Z,t9);return Wf(q,Q,Y,H,J,X,W,$)},[V.ClassDeclaration]:(q,Z)=>{let Q=l(q.modifiers,Z),Y=I(q.name,Z,F8),H=l(q.typeParameters,Z),J=l(q.heritageClauses,Z),X=l(q.members,Z);return $f(q,Q,Y,H,J,X)},[V.ClassExpression]:(q,Z)=>{let Q=l(q.modifiers,Z),Y=I(q.name,Z,F8),H=l(q.typeParameters,Z),J=l(q.heritageClauses,Z),X=l(q.members,Z);return Uf(q,Q,Y,H,J,X)},[V.HeritageClause]:(q,Z)=>{let Q=l(q.types,Z);return Rf(q,Q)},[V.InterfaceDeclaration]:(q,Z)=>{let Q=l(q.modifiers,Z),Y=I(q.name,Z,F8),H=l(q.typeParameters,Z),J=l(q.heritageClauses,Z),X=l(q.members,Z);return zf(q,Q,Y,H,J,X)},[V.TypeAliasDeclaration]:(q,Z)=>{let Q=l(q.modifiers,Z),Y=I(q.name,Z,F8),H=l(q.typeParameters,Z),J=I(q.type,Z,B8);return Bf(q,Q,Y,H,J)},[V.EnumMember]:(q,Z)=>{let Q=I(q.name,Z,E1),Y=I(q.initializer,Z,J8);return Mf(q,Q,Y)},[V.EnumDeclaration]:(q,Z)=>{let Q=l(q.modifiers,Z),Y=I(q.name,Z,F8),H=l(q.members,Z);return Lf(q,Q,Y,H)},[V.ModuleBlock]:(q,Z)=>{let Q=l(q.statements,Z);return Pf(q,Q)},[V.ImportDeclaration]:(q,Z)=>{let Q=l(q.modifiers,Z),Y=I(q.importClause,Z,dQ),H=I(q.moduleSpecifier,Z,J8),J=I(q.attributes,Z,j5);return Of(q,Q,Y,H,J)},[V.ExternalModuleReference]:(q,Z)=>{let Q=I(q.expression,Z,J8);return wf(q,Q)},[V.NamespaceImport]:(q,Z)=>{let Q=I(q.name,Z,F8);return Af(q,Q)},[V.NamedImports]:(q,Z)=>{let Q=l(q.elements,Z);return If(q,Q)},[V.ExportAssignment]:(q,Z)=>{let Q=l(q.modifiers,Z),Y=I(q.type,Z,B8),H=I(q.expression,Z,J8);return jf(q,Q,Y,H)},[V.NamespaceExportDeclaration]:(q,Z)=>{let Q=l(q.modifiers,Z),Y=I(q.name,Z,F8);return Df(q,Q,Y)},[V.NamespaceExport]:(q,Z)=>{let Q=I(q.name,Z,D5);return Cf(q,Q)},[V.NamedExports]:(q,Z)=>{let Q=l(q.elements,Z);return Ef(q,Q)},[V.ExportSpecifier]:(q,Z)=>{let Q=I(q.propertyName,Z,D5),Y=I(q.name,Z,D5);return Ff(q,Q,Y)},[V.CallSignature]:(q,Z)=>{let Q=l(q.typeParameters,Z),Y=l(q.parameters,Z),H=I(q.type,Z,B8);return Tf(q,Q,Y,H)},[V.ConstructSignature]:(q,Z)=>{let Q=l(q.typeParameters,Z),Y=l(q.parameters,Z),H=I(q.type,Z,B8);return ff(q,Q,Y,H)},[V.Constructor]:(q,Z)=>{let Q=l(q.modifiers,Z),Y=l(q.typeParameters,Z),H=l(q.parameters,Z),J=I(q.type,Z,B8),X=I(q.body,Z,t9);return Kf(q,Q,Y,H,J,X)},[V.GetAccessor]:(q,Z)=>{let Q=l(q.modifiers,Z),Y=I(q.name,Z,E1),H=l(q.typeParameters,Z),J=l(q.parameters,Z),X=I(q.type,Z,B8),W=I(q.body,Z,t9);return vf(q,Q,Y,H,J,X,W)},[V.SetAccessor]:(q,Z)=>{let Q=l(q.modifiers,Z),Y=I(q.name,Z,E1),H=l(q.typeParameters,Z),J=l(q.parameters,Z),X=I(q.type,Z,B8),W=I(q.body,Z,t9);return kf(q,Q,Y,H,J,X,W)},[V.IndexSignature]:(q,Z)=>{let Q=l(q.modifiers,Z),Y=l(q.parameters,Z),H=I(q.type,Z,B8);return Nf(q,Q,Y,H)},[V.MethodSignature]:(q,Z)=>{let Q=l(q.modifiers,Z),Y=I(q.name,Z,E1),H=I(q.postfixToken,Z,e9),J=l(q.typeParameters,Z),X=l(q.parameters,Z),W=I(q.type,Z,B8);return Sf(q,Q,Y,H,J,X,W)},[V.MethodDeclaration]:(q,Z)=>{let Q=l(q.modifiers,Z),Y=I(q.asteriskToken,Z,E5),H=I(q.name,Z,E1),J=I(q.postfixToken,Z,e9),X=l(q.typeParameters,Z),W=l(q.parameters,Z),$=I(q.type,Z,B8),R=I(q.body,Z,t9);return uf(q,Q,Y,H,J,X,W,$,R)},[V.PropertySignature]:(q,Z)=>{let Q=l(q.modifiers,Z),Y=I(q.name,Z,E1),H=I(q.postfixToken,Z,e9),J=I(q.type,Z,B8),X=I(q.initializer,Z,J8);return bf(q,Q,Y,H,J,X)},[V.PropertyDeclaration]:(q,Z)=>{let Q=l(q.modifiers,Z),Y=I(q.name,Z,E1),H=I(q.postfixToken,Z,e9),J=I(q.type,Z,B8),X=I(q.initializer,Z,J8);return hf(q,Q,Y,H,J,X)},[V.ClassStaticBlockDeclaration]:(q,Z)=>{let Q=l(q.modifiers,Z),Y=I(q.body,Z,I5);return _f(q,Q,Y)},[V.BinaryExpression]:(q,Z)=>{let Q=l(q.modifiers,Z),Y=I(q.left,Z,J8),H=I(q.type,Z,B8),J=I(q.operatorToken,Z,ST),X=I(q.right,Z,J8);return yf(q,Q,Y,H,J,X)},[V.PrefixUnaryExpression]:(q,Z)=>{let Q=I(q.operand,Z,J8);return gf(q,Q)},[V.PostfixUnaryExpression]:(q,Z)=>{let Q=I(q.operand,Z,J8);return xf(q,Q)},[V.YieldExpression]:(q,Z)=>{let Q=I(q.asteriskToken,Z,E5),Y=I(q.expression,Z,J8);return lf(q,Q,Y)},[V.ArrowFunction]:(q,Z)=>{let Q=l(q.modifiers,Z),Y=l(q.typeParameters,Z),H=l(q.parameters,Z),J=I(q.type,Z,B8),X=I(q.equalsGreaterThanToken,Z,kT),W=I(q.body,Z,bT);return mf(q,Q,Y,H,J,X,W)},[V.FunctionExpression]:(q,Z)=>{let Q=l(q.modifiers,Z),Y=I(q.asteriskToken,Z,E5),H=I(q.name,Z,F8),J=l(q.typeParameters,Z),X=l(q.parameters,Z),W=I(q.type,Z,B8),$=I(q.body,Z,t9);return pf(q,Q,Y,H,J,X,W,$)},[V.AsExpression]:(q,Z)=>{let Q=I(q.expression,Z,J8),Y=I(q.type,Z,B8);return cf(q,Q,Y)},[V.SatisfiesExpression]:(q,Z)=>{let Q=I(q.expression,Z,J8),Y=I(q.type,Z,B8);return rf(q,Q,Y)},[V.ConditionalExpression]:(q,Z)=>{let Q=I(q.condition,Z,J8),Y=I(q.questionToken,Z,q4),H=I(q.whenTrue,Z,J8),J=I(q.colonToken,Z,KT),X=I(q.whenFalse,Z,J8);return df(q,Q,Y,H,J,X)},[V.PropertyAccessExpression]:(q,Z)=>{let Q=I(q.expression,Z,J8),Y=I(q.questionDotToken,Z,F5),H=I(q.name,Z,AT);return sf(q,Q,Y,H)},[V.ElementAccessExpression]:(q,Z)=>{let Q=I(q.expression,Z,J8),Y=I(q.questionDotToken,Z,F5),H=I(q.argumentExpression,Z,J8);return af(q,Q,Y,H)},[V.CallExpression]:(q,Z)=>{let Q=I(q.expression,Z,J8),Y=I(q.questionDotToken,Z,F5),H=l(q.typeArguments,Z),J=l(q.arguments,Z);return of(q,Q,Y,H,J)},[V.NewExpression]:(q,Z)=>{let Q=I(q.expression,Z,J8),Y=l(q.typeArguments,Z),H=l(q.arguments,Z);return nf(q,Q,Y,H)},[V.MetaProperty]:(q,Z)=>{let Q=I(q.name,Z,F8);return tf(q,Q)},[V.NonNullExpression]:(q,Z)=>{let Q=I(q.expression,Z,J8);return ef(q,Q)},[V.SpreadElement]:(q,Z)=>{let Q=I(q.expression,Z,J8);return qK(q,Q)},[V.TemplateExpression]:(q,Z)=>{let Q=I(q.head,Z,rQ),Y=l(q.templateSpans,Z);return ZK(q,Q,Y)},[V.TemplateSpan]:(q,Z)=>{let Q=I(q.expression,Z,J8),Y=I(q.literal,Z,oQ);return QK(q,Q,Y)},[V.TaggedTemplateExpression]:(q,Z)=>{let Q=I(q.tag,Z,J8),Y=I(q.questionDotToken,Z,F5),H=l(q.typeArguments,Z),J=I(q.template,Z,DT);return YK(q,Q,Y,H,J)},[V.ParenthesizedExpression]:(q,Z)=>{let Q=I(q.expression,Z,J8);return HK(q,Q)},[V.ArrayLiteralExpression]:(q,Z)=>{let Q=l(q.elements,Z);return JK(q,Q)},[V.ObjectLiteralExpression]:(q,Z)=>{let Q=l(q.properties,Z);return XK(q,Q)},[V.SpreadAssignment]:(q,Z)=>{let Q=I(q.expression,Z,J8);return VK(q,Q)},[V.PropertyAssignment]:(q,Z)=>{let Q=l(q.modifiers,Z),Y=I(q.name,Z,E1),H=I(q.postfixToken,Z,e9),J=I(q.type,Z,B8),X=I(q.initializer,Z,J8);return GK(q,Q,Y,H,J,X)},[V.ShorthandPropertyAssignment]:(q,Z)=>{let Q=l(q.modifiers,Z),Y=I(q.name,Z,E1),H=I(q.postfixToken,Z,e9),J=I(q.type,Z,B8),X=I(q.equalsToken,Z,vT),W=I(q.objectAssignmentInitializer,Z,J8);return WK(q,Q,Y,H,J,X,W)},[V.DeleteExpression]:(q,Z)=>{let Q=I(q.expression,Z,J8);return $K(q,Q)},[V.TypeOfExpression]:(q,Z)=>{let Q=I(q.expression,Z,J8);return UK(q,Q)},[V.VoidExpression]:(q,Z)=>{let Q=I(q.expression,Z,J8);return RK(q,Q)},[V.AwaitExpression]:(q,Z)=>{let Q=I(q.expression,Z,J8);return zK(q,Q)},[V.TypeAssertionExpression]:(q,Z)=>{let Q=I(q.type,Z,B8),Y=I(q.expression,Z,J8);return BK(q,Q,Y)},[V.UnionType]:(q,Z)=>{let Q=l(q.types,Z);return MK(q,Q)},[V.IntersectionType]:(q,Z)=>{let Q=l(q.types,Z);return LK(q,Q)},[V.ConditionalType]:(q,Z)=>{let Q=I(q.checkType,Z,B8),Y=I(q.extendsType,Z,B8),H=I(q.trueType,Z,B8),J=I(q.falseType,Z,B8);return PK(q,Q,Y,H,J)},[V.TypeOperator]:(q,Z)=>{let Q=I(q.type,Z,B8);return OK(q,Q)},[V.InferType]:(q,Z)=>{let Q=I(q.typeParameter,Z,sQ);return wK(q,Q)},[V.ArrayType]:(q,Z)=>{let Q=I(q.elementType,Z,B8);return AK(q,Q)},[V.IndexedAccessType]:(q,Z)=>{let Q=I(q.objectType,Z,B8),Y=I(q.indexType,Z,B8);return IK(q,Q,Y)},[V.TypeReference]:(q,Z)=>{let Q=I(q.typeName,Z,F1),Y=l(q.typeArguments,Z);return jK(q,Q,Y)},[V.ExpressionWithTypeArguments]:(q,Z)=>{let Q=I(q.expression,Z,J8),Y=l(q.typeArguments,Z);return DK(q,Q,Y)},[V.LiteralType]:(q,Z)=>{let Q=I(q.literal,Z);return CK(q,Q)},[V.TypePredicate]:(q,Z)=>{let Q=I(q.assertsModifier,Z,NT),Y=I(q.parameterName,Z,CT),H=I(q.type,Z,B8);return EK(q,Q,Y,H)},[V.ImportAttribute]:(q,Z)=>{let Q=I(q.name,Z,ET),Y=I(q.value,Z,J8);return FK(q,Q,Y)},[V.ImportAttributes]:(q,Z)=>{let Q=l(q.attributes,Z);return TK(q,Q)},[V.TypeQuery]:(q,Z)=>{let Q=I(q.exprName,Z,F1),Y=l(q.typeArguments,Z);return fK(q,Q,Y)},[V.MappedType]:(q,Z)=>{let Q=I(q.readonlyToken,Z,hT),Y=I(q.typeParameter,Z,sQ),H=I(q.nameType,Z,B8),J=I(q.questionToken,Z,_T),X=I(q.type,Z,B8),W=l(q.members,Z);return KK(q,Q,Y,H,J,X,W)},[V.TypeLiteral]:(q,Z)=>{let Q=l(q.members,Z);return vK(q,Q)},[V.TupleType]:(q,Z)=>{let Q=l(q.elements,Z);return kK(q,Q)},[V.NamedTupleMember]:(q,Z)=>{let Q=I(q.dotDotDotToken,Z,C5),Y=I(q.name,Z,F8),H=I(q.questionToken,Z,q4),J=I(q.type,Z,B8);return NK(q,Q,Y,H,J)},[V.OptionalType]:(q,Z)=>{let Q=I(q.type,Z,B8);return SK(q,Q)},[V.RestType]:(q,Z)=>{let Q=I(q.type,Z,B8);return uK(q,Q)},[V.ParenthesizedType]:(q,Z)=>{let Q=I(q.type,Z,B8);return bK(q,Q)},[V.FunctionType]:(q,Z)=>{let Q=l(q.typeParameters,Z),Y=l(q.parameters,Z),H=I(q.type,Z,B8);return hK(q,Q,Y,H)},[V.ConstructorType]:(q,Z)=>{let Q=l(q.modifiers,Z),Y=l(q.typeParameters,Z),H=l(q.parameters,Z),J=I(q.type,Z,B8);return _K(q,Q,Y,H,J)},[V.TemplateLiteralType]:(q,Z)=>{let Q=I(q.head,Z,rQ),Y=l(q.templateSpans,Z);return yK(q,Q,Y)},[V.TemplateLiteralTypeSpan]:(q,Z)=>{let Q=I(q.type,Z,B8),Y=I(q.literal,Z,oQ);return gK(q,Q,Y)},[V.SyntheticExpression]:(q,Z)=>{let Q=I(q.tupleNameSource,Z);return xK(q,Q)},[V.PartiallyEmittedExpression]:(q,Z)=>{let Q=I(q.expression,Z,J8);return lK(q,Q)},[V.JsxElement]:(q,Z)=>{let Q=I(q.openingElement,Z,UT),Y=l(q.children,Z),H=I(q.closingElement,Z,BT);return mK(q,Q,Y,H)},[V.JsxAttributes]:(q,Z)=>{let Q=l(q.properties,Z);return pK(q,Q)},[V.JsxNamespacedName]:(q,Z)=>{let Q=I(q.namespace,Z,F8),Y=I(q.name,Z,F8);return cK(q,Q,Y)},[V.JsxOpeningElement]:(q,Z)=>{let Q=I(q.tagName,Z,Y4),Y=l(q.typeArguments,Z),H=I(q.attributes,Z,iQ);return rK(q,Q,Y,H)},[V.JsxSelfClosingElement]:(q,Z)=>{let Q=I(q.tagName,Z,Y4),Y=l(q.typeArguments,Z),H=I(q.attributes,Z,iQ);return iK(q,Q,Y,H)},[V.JsxFragment]:(q,Z)=>{let Q=I(q.openingFragment,Z,RT),Y=l(q.children,Z),H=I(q.closingFragment,Z,zT);return dK(q,Q,Y,H)},[V.JsxAttribute]:(q,Z)=>{let Q=I(q.name,Z,IT),Y=I(q.initializer,Z,jT);return sK(q,Q,Y)},[V.JsxSpreadAttribute]:(q,Z)=>{let Q=I(q.expression,Z,J8);return aK(q,Q)},[V.JsxClosingElement]:(q,Z)=>{let Q=I(q.tagName,Z,Y4);return oK(q,Q)},[V.JsxExpression]:(q,Z)=>{let Q=I(q.dotDotDotToken,Z,C5),Y=I(q.expression,Z,J8);return nK(q,Q,Y)},[V.SyntaxList]:(q,Z)=>{let Q=H4(q.children,Z);return tK(q,Q)},[V.JSDoc]:(q,Z)=>{let Q=l(q.comment,Z),Y=l(q.tags,Z);return eK(q,Q,Y)},[V.JSDocTypeExpression]:(q,Z)=>{let Q=I(q.type,Z,B8);return qv(q,Q)},[V.JSDocNonNullableType]:(q,Z)=>{let Q=I(q.type,Z,B8);return Zv(q,Q)},[V.JSDocNullableType]:(q,Z)=>{let Q=I(q.type,Z,B8);return Qv(q,Q)},[V.JSDocVariadicType]:(q,Z)=>{let Q=I(q.type,Z,B8);return Yv(q,Q)},[V.JSDocOptionalType]:(q,Z)=>{let Q=I(q.type,Z,B8);return Hv(q,Q)},[V.JSDocTypeTag]:(q,Z)=>{let Q=I(q.tagName,Z,F8),Y=I(q.typeExpression,Z),H=l(q.comment,Z);return Jv(q,Q,Y,H)},[V.JSDocUnknownTag]:(q,Z)=>{let Q=I(q.tagName,Z,F8),Y=l(q.comment,Z);return Xv(q,Q,Y)},[V.JSDocTemplateTag]:(q,Z)=>{let Q=I(q.tagName,Z,F8),Y=I(q.constraint,Z),H=l(q.typeParameters,Z),J=l(q.comment,Z);return Vv(q,Q,Y,H,J)},[V.JSDocReturnTag]:(q,Z)=>{let Q=I(q.tagName,Z,F8),Y=I(q.typeExpression,Z,B8),H=l(q.comment,Z);return Gv(q,Q,Y,H)},[V.JSDocPublicTag]:(q,Z)=>{let Q=I(q.tagName,Z,F8),Y=l(q.comment,Z);return Wv(q,Q,Y)},[V.JSDocPrivateTag]:(q,Z)=>{let Q=I(q.tagName,Z,F8),Y=l(q.comment,Z);return $v(q,Q,Y)},[V.JSDocProtectedTag]:(q,Z)=>{let Q=I(q.tagName,Z,F8),Y=l(q.comment,Z);return Uv(q,Q,Y)},[V.JSDocReadonlyTag]:(q,Z)=>{let Q=I(q.tagName,Z,F8),Y=l(q.comment,Z);return Rv(q,Q,Y)},[V.JSDocOverrideTag]:(q,Z)=>{let Q=I(q.tagName,Z,F8),Y=l(q.comment,Z);return zv(q,Q,Y)},[V.JSDocDeprecatedTag]:(q,Z)=>{let Q=I(q.tagName,Z,F8),Y=l(q.comment,Z);return Bv(q,Q,Y)},[V.JSDocSeeTag]:(q,Z)=>{let Q=I(q.tagName,Z,F8),Y=I(q.nameExpression,Z,B8),H=l(q.comment,Z);return Mv(q,Q,Y,H)},[V.JSDocImplementsTag]:(q,Z)=>{let Q=I(q.tagName,Z,F8),Y=I(q.className,Z,cQ),H=l(q.comment,Z);return Lv(q,Q,Y,H)},[V.JSDocAugmentsTag]:(q,Z)=>{let Q=I(q.tagName,Z,F8),Y=I(q.className,Z,cQ),H=l(q.comment,Z);return Pv(q,Q,Y,H)},[V.JSDocSatisfiesTag]:(q,Z)=>{let Q=I(q.tagName,Z,F8),Y=I(q.typeExpression,Z,B8),H=l(q.comment,Z);return Ov(q,Q,Y,H)},[V.JSDocThrowsTag]:(q,Z)=>{let Q=I(q.tagName,Z,F8),Y=I(q.typeExpression,Z,B8),H=l(q.comment,Z);return wv(q,Q,Y,H)},[V.JSDocThisTag]:(q,Z)=>{let Q=I(q.tagName,Z,F8),Y=I(q.typeExpression,Z,B8),H=l(q.comment,Z);return Av(q,Q,Y,H)},[V.JSDocImportTag]:(q,Z)=>{let Q=I(q.tagName,Z,F8),Y=I(q.importClause,Z,dQ),H=I(q.moduleSpecifier,Z,J8),J=I(q.attributes,Z,j5),X=l(q.comment,Z);return Iv(q,Q,Y,H,J,X)},[V.JSDocCallbackTag]:(q,Z)=>{let Q=I(q.tagName,Z,F8),Y=I(q.typeExpression,Z,B8),H=I(q.name,Z,aQ),J=l(q.comment,Z);return jv(q,Q,Y,H,J)},[V.JSDocOverloadTag]:(q,Z)=>{let Q=I(q.tagName,Z,F8),Y=I(q.typeExpression,Z,B8),H=l(q.comment,Z);return Dv(q,Q,Y,H)},[V.JSDocTypedefTag]:(q,Z)=>{let Q=I(q.tagName,Z,F8),Y=I(q.typeExpression,Z),H=I(q.name,Z,aQ),J=l(q.comment,Z);return Cv(q,Q,Y,H,J)},[V.JSDocSignature]:(q,Z)=>{let Q=l(q.typeParameters,Z),Y=l(q.parameters,Z),H=I(q.type,Z,B8);return Ev(q,Q,Y,H)},[V.JSDocNameReference]:(q,Z)=>{let Q=I(q.name,Z,F1);return Fv(q,Q)},[V.SourceFile]:(q,Z)=>{let Q=l(q.statements,Z),Y=I(q.endOfFileToken,Z,TT);return rv(q,Q,Y)},[V.ModuleDeclaration]:(q,Z)=>{let Q=l(q.modifiers,Z),Y=I(q.name,Z,MT),H=I(q.body,Z,LT);return Tv(q,Q,Y,H)},[V.ImportEqualsDeclaration]:(q,Z)=>{let Q=l(q.modifiers,Z),Y=I(q.name,Z,F8),H=I(q.moduleReference,Z,PT);return fv(q,Q,Y,H)},[V.ExportDeclaration]:(q,Z)=>{let Q=l(q.modifiers,Z),Y=I(q.exportClause,Z,wT),H=I(q.moduleSpecifier,Z,J8),J=I(q.attributes,Z,j5);return Kv(q,Q,Y,H,J)},[V.ImportType]:(q,Z)=>{let Q=I(q.argument,Z,B8),Y=I(q.attributes,Z,j5),H=I(q.qualifier,Z,F1),J=l(q.typeArguments,Z);return vv(q,Q,Y,H,J)},[V.ImportClause]:(q,Z)=>{let Q=I(q.name,Z,F8),Y=I(q.namedBindings,Z,OT);return kv(q,Q,Y)},[V.ImportSpecifier]:(q,Z)=>{let Q=I(q.propertyName,Z,D5),Y=I(q.name,Z,F8);return Nv(q,Q,Y)},[V.JSDocLink]:(q,Z)=>{let Q=I(q.name,Z,F1);return Sv(q,Q)},[V.JSDocLinkPlain]:(q,Z)=>{let Q=I(q.name,Z,F1);return uv(q,Q)},[V.JSDocLinkCode]:(q,Z)=>{let Q=I(q.name,Z,F1);return bv(q,Q)},[V.TypeParameter]:(q,Z)=>{let Q=l(q.modifiers,Z),Y=I(q.name,Z,F8),H=I(q.constraint,Z,B8),J=I(q.expression,Z,J8),X=I(q.defaultType,Z,B8);return hv(q,Q,Y,H,J,X)},[V.SyntheticReferenceExpression]:(q,Z)=>{let Q=I(q.expression,Z,J8),Y=I(q.thisArg,Z,J8);return _v(q,Q,Y)},[V.JSDocTypeLiteral]:(q,Z)=>{let Q=H4(q.jsdocPropertyTags,Z);return yv(q,Q)},[V.ForInStatement]:(q,Z)=>{let Q=I(q.awaitModifier,Z,nQ),Y=I(q.initializer,Z,Q4),H=I(q.expression,Z,J8),J=I(q.statement,Z,p1);return gv(q,Q,Y,H,J)},[V.ForOfStatement]:(q,Z)=>{let Q=I(q.awaitModifier,Z,nQ),Y=I(q.initializer,Z,Q4),H=I(q.expression,Z,J8),J=I(q.statement,Z,p1);return xv(q,Q,Y,H,J)},[V.CaseClause]:(q,Z)=>{let Q=I(q.expression,Z,J8),Y=l(q.statements,Z);return lv(q,Q,Y)},[V.DefaultClause]:(q,Z)=>{let Q=I(q.expression,Z,J8),Y=l(q.statements,Z);return mv(q,Q,Y)},[V.ObjectBindingPattern]:(q,Z)=>{let Q=l(q.elements,Z);return pv(q,Q)},[V.ArrayBindingPattern]:(q,Z)=>{let Q=l(q.elements,Z);return cv(q,Q)},[V.JSDocParameterTag]:J4,[V.JSDocPropertyTag]:J4}});function v5(q,Z){return Z?q(Z):void 0}function K98(q,Z,Q){if(!Q)return;if(Z)return Z(Q);for(let Y of Q){let H=q(Y);if(H)return H}return}function X4(q,Z,Q){return v5(Z,q.tagName)||(q.isNameFirst?v5(Z,q.name)||v5(Z,q.typeExpression):v5(Z,q.typeExpression)||v5(Z,q.name))||K98(Z,Q,q.comment)}function J4(q,Z){let Q=I(q.tagName,Z,F8),Y=I(q.name,Z,F1),H=I(q.typeExpression,Z,B8),J=l(q.comment,Z);return q.kind===V.JSDocParameterTag?iv(q,Q,Y,H,J):dv(q,Q,Y,H,J)}var f5=w8(()=>{p0();K5();T5();tQ();tQ()});class N{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=k98[this.kind];return Q?Q(this._data,q,Z):void 0}getSourceFile(){let q=this;while(q.parent)q=q.parent;return q}getStart(q,Z){return k5(this,q??this.getSourceFile(),Z)}getFullStart(){return this.pos}getEnd(){return this.end}getWidth(q){return this.getEnd()-this.getStart(q)}getFullWidth(){return this.end-this.pos}getLeadingTriviaWidth(q){return this.getStart(q)-this.pos}getFullText(q){return(q??this.getSourceFile()).text.substring(this.pos,this.end)}getText(q){return q??=this.getSourceFile(),q.text.substring(this.getStart(q),this.end)}}function v98(q){return"pos"in q&&"end"in q}function y(q,Z=-1,Q=-1){if(v98(q))return q;let Y=q.slice();return Y.pos=Z,Y.end=Q,Y}function j(q,Z){return Z?q(Z):void 0}function g(q,Z,Q){if(!Q)return;if(Z)return Z(Q);for(let Y of Q){let H=q(Y);if(H)return H}return}function N98(q,Z){return new N(V.QualifiedName,{left:q,right:Z})}function S98(q){return new N(V.ComputedPropertyName,{expression:q})}function u98(q){return new N(V.Decorator,{expression:q})}function b98(q,Z,Q){return new N(V.IfStatement,{expression:q,thenStatement:Z,elseStatement:Q})}function h98(q,Z){return new N(V.DoStatement,{statement:q,expression:Z})}function _98(q,Z){return new N(V.WhileStatement,{expression:q,statement:Z})}function y98(q,Z,Q,Y){return new N(V.ForStatement,{initializer:q,condition:Z,incrementor:Q,statement:Y})}function g98(q){return new N(V.BreakStatement,{label:q})}function x98(q){return new N(V.ContinueStatement,{label:q})}function l98(q){return new N(V.ReturnStatement,{expression:q})}function m98(q,Z){return new N(V.WithStatement,{expression:q,statement:Z})}function p98(q,Z){return new N(V.SwitchStatement,{expression:q,caseBlock:Z})}function c98(q){return new N(V.CaseBlock,{clauses:y(q)})}function r98(q){return new N(V.ThrowStatement,{expression:q})}function i98(q,Z,Q){return new N(V.TryStatement,{tryBlock:q,catchClause:Z,finallyBlock:Q})}function d98(q,Z){return new N(V.CatchClause,{variableDeclaration:q,block:Z})}function s98(q,Z){return new N(V.LabeledStatement,{label:q,statement:Z})}function a98(q){return new N(V.ExpressionStatement,{expression:q})}function o98(q,Z){return new N(V.Block,{statements:y(q),multiLine:Z})}function n98(q,Z){return new N(V.VariableStatement,{modifiers:q?y(q):void 0,declarationList:Z})}function t98(q,Z,Q,Y){return new N(V.VariableDeclaration,{name:q,exclamationToken:Z,type:Q,initializer:Y})}function e98(q,Z){let Q=new N(V.VariableDeclarationList,{declarations:y(q)});return Q.flags=Z,Q}function q68(q,Z,Q,Y,H,J){return new N(V.Parameter,{modifiers:q?y(q):void 0,dotDotDotToken:Z,name:Q,questionToken:Y,type:H,initializer:J})}function Z68(q,Z,Q,Y){return new N(V.BindingElement,{dotDotDotToken:q,propertyName:Z,name:Q,initializer:Y})}function Q68(q){return new N(V.MissingDeclaration,{modifiers:q?y(q):void 0})}function Y68(q,Z,Q,Y,H,J,X){return new N(V.FunctionDeclaration,{modifiers:q?y(q):void 0,asteriskToken:Z,name:Q,typeParameters:Y?y(Y):void 0,parameters:y(H),type:J,body:X})}function H68(q,Z,Q,Y,H){return new N(V.ClassDeclaration,{modifiers:q?y(q):void 0,name:Z,typeParameters:Q?y(Q):void 0,heritageClauses:Y?y(Y):void 0,members:y(H)})}function J68(q,Z,Q,Y,H){return new N(V.ClassExpression,{modifiers:q?y(q):void 0,name:Z,typeParameters:Q?y(Q):void 0,heritageClauses:Y?y(Y):void 0,members:y(H)})}function X68(q,Z){return new N(V.HeritageClause,{token:q,types:y(Z)})}function V68(q,Z,Q,Y,H){return new N(V.InterfaceDeclaration,{modifiers:q?y(q):void 0,name:Z,typeParameters:Q?y(Q):void 0,heritageClauses:Y?y(Y):void 0,members:y(H)})}function G68(q,Z,Q,Y){return new N(V.TypeAliasDeclaration,{modifiers:q?y(q):void 0,name:Z,typeParameters:Q?y(Q):void 0,type:Y})}function W68(q,Z){return new N(V.EnumMember,{name:q,initializer:Z})}function $68(q,Z,Q){return new N(V.EnumDeclaration,{modifiers:q?y(q):void 0,name:Z,members:y(Q)})}function U68(q){return new N(V.ModuleBlock,{statements:y(q)})}function R68(q,Z,Q,Y){return new N(V.ImportDeclaration,{modifiers:q?y(q):void 0,importClause:Z,moduleSpecifier:Q,attributes:Y})}function z68(q){return new N(V.ExternalModuleReference,{expression:q})}function B68(q){return new N(V.NamespaceImport,{name:q})}function M68(q){return new N(V.NamedImports,{elements:y(q)})}function L68(q,Z=!1,Q,Y){return new N(V.ExportAssignment,{modifiers:q?y(q):void 0,isExportEquals:Z,type:Q,expression:Y})}function P68(q,Z){return new N(V.NamespaceExportDeclaration,{modifiers:q?y(q):void 0,name:Z})}function O68(q){return new N(V.NamespaceExport,{name:q})}function w68(q){return new N(V.NamedExports,{elements:y(q)})}function A68(q=!1,Z,Q){return new N(V.ExportSpecifier,{isTypeOnly:q,propertyName:Z,name:Q})}function I68(q,Z,Q){return new N(V.CallSignature,{typeParameters:q?y(q):void 0,parameters:y(Z),type:Q})}function j68(q,Z,Q){return new N(V.ConstructSignature,{typeParameters:q?y(q):void 0,parameters:y(Z),type:Q})}function D68(q,Z,Q,Y,H){return new N(V.Constructor,{modifiers:q?y(q):void 0,typeParameters:Z?y(Z):void 0,parameters:y(Q),type:Y,body:H})}function C68(q,Z,Q,Y,H,J){return new N(V.GetAccessor,{modifiers:q?y(q):void 0,name:Z,typeParameters:Q?y(Q):void 0,parameters:y(Y),type:H,body:J})}function E68(q,Z,Q,Y,H,J){return new N(V.SetAccessor,{modifiers:q?y(q):void 0,name:Z,typeParameters:Q?y(Q):void 0,parameters:y(Y),type:H,body:J})}function F68(q,Z,Q){return new N(V.IndexSignature,{modifiers:q?y(q):void 0,parameters:y(Z),type:Q})}function T68(q,Z,Q,Y,H,J){return new N(V.MethodSignature,{modifiers:q?y(q):void 0,name:Z,postfixToken:Q,typeParameters:Y?y(Y):void 0,parameters:y(H),type:J})}function f68(q,Z,Q,Y,H,J,X,W){return new N(V.MethodDeclaration,{modifiers:q?y(q):void 0,asteriskToken:Z,name:Q,postfixToken:Y,typeParameters:H?y(H):void 0,parameters:y(J),type:X,body:W})}function K68(q,Z,Q,Y,H){return new N(V.PropertySignature,{modifiers:q?y(q):void 0,name:Z,postfixToken:Q,type:Y,initializer:H})}function v68(q,Z,Q,Y,H){return new N(V.PropertyDeclaration,{modifiers:q?y(q):void 0,name:Z,postfixToken:Q,type:Y,initializer:H})}function k68(q,Z){return new N(V.ClassStaticBlockDeclaration,{modifiers:q?y(q):void 0,body:Z})}function N68(q,Z,Q,Y,H){return new N(V.BinaryExpression,{modifiers:q?y(q):void 0,left:Z,type:Q,operatorToken:Y,right:H})}function S68(q,Z){return new N(V.PrefixUnaryExpression,{operator:q,operand:Z})}function u68(q,Z){return new N(V.PostfixUnaryExpression,{operand:q,operator:Z})}function b68(q,Z){return new N(V.YieldExpression,{asteriskToken:q,expression:Z})}function h68(q,Z,Q,Y,H,J){return new N(V.ArrowFunction,{modifiers:q?y(q):void 0,typeParameters:Z?y(Z):void 0,parameters:y(Q),type:Y,equalsGreaterThanToken:H,body:J})}function _68(q,Z,Q,Y,H,J,X){return new N(V.FunctionExpression,{modifiers:q?y(q):void 0,asteriskToken:Z,name:Q,typeParameters:Y?y(Y):void 0,parameters:y(H),type:J,body:X})}function y68(q,Z){return new N(V.AsExpression,{expression:q,type:Z})}function g68(q,Z){return new N(V.SatisfiesExpression,{expression:q,type:Z})}function x68(q,Z,Q,Y,H){return new N(V.ConditionalExpression,{condition:q,questionToken:Z,whenTrue:Q,colonToken:Y,whenFalse:H})}function l68(q,Z,Q,Y){let H=new N(V.PropertyAccessExpression,{expression:q,questionDotToken:Z,name:Q});return H.flags=Y,H}function m68(q,Z,Q,Y){let H=new N(V.ElementAccessExpression,{expression:q,questionDotToken:Z,argumentExpression:Q});return H.flags=Y,H}function p68(q,Z,Q,Y,H){let J=new N(V.CallExpression,{expression:q,questionDotToken:Z,typeArguments:Q?y(Q):void 0,arguments:y(Y)});return J.flags=H,J}function c68(q,Z,Q){return new N(V.NewExpression,{expression:q,typeArguments:Z?y(Z):void 0,arguments:Q?y(Q):void 0})}function r68(q,Z){return new N(V.MetaProperty,{keywordToken:q,name:Z})}function i68(q,Z){let Q=new N(V.NonNullExpression,{expression:q});return Q.flags=Z,Q}function d68(q){return new N(V.SpreadElement,{expression:q})}function s68(q,Z){return new N(V.TemplateExpression,{head:q,templateSpans:y(Z)})}function a68(q,Z){return new N(V.TemplateSpan,{expression:q,literal:Z})}function o68(q,Z,Q,Y,H){let J=new N(V.TaggedTemplateExpression,{tag:q,questionDotToken:Z,typeArguments:Q?y(Q):void 0,template:Y});return J.flags=H,J}function n68(q){return new N(V.ParenthesizedExpression,{expression:q})}function t68(q,Z){return new N(V.ArrayLiteralExpression,{elements:y(q),multiLine:Z})}function e68(q,Z){return new N(V.ObjectLiteralExpression,{properties:y(q),multiLine:Z})}function q78(q){return new N(V.SpreadAssignment,{expression:q})}function Z78(q,Z,Q,Y,H){return new N(V.PropertyAssignment,{modifiers:q?y(q):void 0,name:Z,postfixToken:Q,type:Y,initializer:H})}function Q78(q,Z,Q,Y,H,J){return new N(V.ShorthandPropertyAssignment,{modifiers:q?y(q):void 0,name:Z,postfixToken:Q,type:Y,equalsToken:H,objectAssignmentInitializer:J})}function Y78(q){return new N(V.DeleteExpression,{expression:q})}function H78(q){return new N(V.TypeOfExpression,{expression:q})}function J78(q){return new N(V.VoidExpression,{expression:q})}function X78(q){return new N(V.AwaitExpression,{expression:q})}function V78(q,Z){return new N(V.TypeAssertionExpression,{type:q,expression:Z})}function G78(q){return new N(V.UnionType,{types:y(q)})}function W78(q){return new N(V.IntersectionType,{types:y(q)})}function $78(q,Z,Q,Y){return new N(V.ConditionalType,{checkType:q,extendsType:Z,trueType:Q,falseType:Y})}function U78(q,Z){return new N(V.TypeOperator,{operator:q,type:Z})}function R78(q){return new N(V.InferType,{typeParameter:q})}function z78(q){return new N(V.ArrayType,{elementType:q})}function B78(q,Z){return new N(V.IndexedAccessType,{objectType:q,indexType:Z})}function M78(q,Z){return new N(V.TypeReference,{typeName:q,typeArguments:Z?y(Z):void 0})}function L78(q,Z){return new N(V.ExpressionWithTypeArguments,{expression:q,typeArguments:Z?y(Z):void 0})}function P78(q){return new N(V.LiteralType,{literal:q})}function O78(q,Z,Q){return new N(V.TypePredicate,{assertsModifier:q,parameterName:Z,type:Q})}function w78(q,Z){return new N(V.ImportAttribute,{name:q,value:Z})}function A78(q,Z,Q){return new N(V.ImportAttributes,{token:q,attributes:y(Z),multiLine:Q})}function I78(q,Z){return new N(V.TypeQuery,{exprName:q,typeArguments:Z?y(Z):void 0})}function j78(q,Z,Q,Y,H,J){return new N(V.MappedType,{readonlyToken:q,typeParameter:Z,nameType:Q,questionToken:Y,type:H,members:J?y(J):void 0})}function D78(q){return new N(V.TypeLiteral,{members:y(q)})}function C78(q){return new N(V.TupleType,{elements:y(q)})}function E78(q,Z,Q,Y){return new N(V.NamedTupleMember,{dotDotDotToken:q,name:Z,questionToken:Q,type:Y})}function F78(q){return new N(V.OptionalType,{type:q})}function T78(q){return new N(V.RestType,{type:q})}function f78(q){return new N(V.ParenthesizedType,{type:q})}function K78(q,Z,Q){return new N(V.FunctionType,{typeParameters:q?y(q):void 0,parameters:y(Z),type:Q})}function v78(q,Z,Q,Y){return new N(V.ConstructorType,{modifiers:q?y(q):void 0,typeParameters:Z?y(Z):void 0,parameters:y(Q),type:Y})}function k78(q,Z){return new N(V.TemplateLiteralType,{head:q,templateSpans:y(Z)})}function N78(q,Z){return new N(V.TemplateLiteralTypeSpan,{type:q,literal:Z})}function S78(q,Z,Q){return new N(V.SyntheticExpression,{type:q,isSpread:Z,tupleNameSource:Q})}function u78(q){return new N(V.PartiallyEmittedExpression,{expression:q})}function b78(q,Z,Q){return new N(V.JsxElement,{openingElement:q,children:y(Z),closingElement:Q})}function h78(q){return new N(V.JsxAttributes,{properties:y(q)})}function _78(q,Z){return new N(V.JsxNamespacedName,{namespace:q,name:Z})}function y78(q,Z,Q){return new N(V.JsxOpeningElement,{tagName:q,typeArguments:Z?y(Z):void 0,attributes:Q})}function g78(q,Z,Q){return new N(V.JsxSelfClosingElement,{tagName:q,typeArguments:Z?y(Z):void 0,attributes:Q})}function x78(q,Z,Q){return new N(V.JsxFragment,{openingFragment:q,children:y(Z),closingFragment:Q})}function l78(q,Z){return new N(V.JsxAttribute,{name:q,initializer:Z})}function m78(q){return new N(V.JsxSpreadAttribute,{expression:q})}function p78(q){return new N(V.JsxClosingElement,{tagName:q})}function c78(q,Z){return new N(V.JsxExpression,{dotDotDotToken:q,expression:Z})}function r78(q){return new N(V.SyntaxList,{children:q})}function i78(q,Z){return new N(V.JSDoc,{comment:y(q),tags:Z?y(Z):void 0})}function d78(q){return new N(V.JSDocTypeExpression,{type:q})}function s78(q){return new N(V.JSDocNonNullableType,{type:q})}function a78(q){return new N(V.JSDocNullableType,{type:q})}function o78(q){return new N(V.JSDocVariadicType,{type:q})}function n78(q){return new N(V.JSDocOptionalType,{type:q})}function t78(q,Z,Q){return new N(V.JSDocTypeTag,{tagName:q,typeExpression:Z,comment:Q?y(Q):void 0})}function e78(q,Z){return new N(V.JSDocUnknownTag,{tagName:q,comment:Z?y(Z):void 0})}function q58(q,Z,Q,Y){return new N(V.JSDocTemplateTag,{tagName:q,constraint:Z,typeParameters:y(Q),comment:Y?y(Y):void 0})}function Z58(q,Z,Q){return new N(V.JSDocReturnTag,{tagName:q,typeExpression:Z,comment:Q?y(Q):void 0})}function Q58(q,Z){return new N(V.JSDocPublicTag,{tagName:q,comment:Z?y(Z):void 0})}function Y58(q,Z){return new N(V.JSDocPrivateTag,{tagName:q,comment:Z?y(Z):void 0})}function H58(q,Z){return new N(V.JSDocProtectedTag,{tagName:q,comment:Z?y(Z):void 0})}function J58(q,Z){return new N(V.JSDocReadonlyTag,{tagName:q,comment:Z?y(Z):void 0})}function X58(q,Z){return new N(V.JSDocOverrideTag,{tagName:q,comment:Z?y(Z):void 0})}function V58(q,Z){return new N(V.JSDocDeprecatedTag,{tagName:q,comment:Z?y(Z):void 0})}function G58(q,Z,Q){return new N(V.JSDocSeeTag,{tagName:q,nameExpression:Z,comment:Q?y(Q):void 0})}function W58(q,Z,Q){return new N(V.JSDocImplementsTag,{tagName:q,className:Z,comment:Q?y(Q):void 0})}function $58(q,Z,Q){return new N(V.JSDocAugmentsTag,{tagName:q,className:Z,comment:Q?y(Q):void 0})}function U58(q,Z,Q){return new N(V.JSDocSatisfiesTag,{tagName:q,typeExpression:Z,comment:Q?y(Q):void 0})}function R58(q,Z,Q){return new N(V.JSDocThrowsTag,{tagName:q,typeExpression:Z,comment:Q?y(Q):void 0})}function z58(q,Z,Q){return new N(V.JSDocThisTag,{tagName:q,typeExpression:Z,comment:Q?y(Q):void 0})}function B58(q,Z,Q,Y,H){return new N(V.JSDocImportTag,{tagName:q,importClause:Z,moduleSpecifier:Q,attributes:Y,comment:H?y(H):void 0})}function M58(q,Z,Q,Y){return new N(V.JSDocCallbackTag,{tagName:q,typeExpression:Z,name:Q,comment:Y?y(Y):void 0})}function L58(q,Z,Q){return new N(V.JSDocOverloadTag,{tagName:q,typeExpression:Z,comment:Q?y(Q):void 0})}function P58(q,Z,Q,Y){return new N(V.JSDocTypedefTag,{tagName:q,typeExpression:Z,name:Q,comment:Y?y(Y):void 0})}function O58(q,Z,Q){return new N(V.JSDocSignature,{typeParameters:q?y(q):void 0,parameters:y(Z),type:Q})}function w58(q){return new N(V.JSDocNameReference,{name:q})}function A58(q,Z,Q,Y){return new N(V.ModuleDeclaration,{modifiers:q?y(q):void 0,keyword:Z,name:Q,body:Y})}function I58(q,Z=!1,Q,Y){return new N(V.ImportEqualsDeclaration,{modifiers:q?y(q):void 0,isTypeOnly:Z,name:Q,moduleReference:Y})}function j58(q,Z,Q,Y,H){return new N(V.ExportDeclaration,{modifiers:q?y(q):void 0,isTypeOnly:Z,exportClause:Q,moduleSpecifier:Y,attributes:H})}function D58(q=!1,Z,Q,Y,H){return new N(V.ImportType,{isTypeOf:q,argument:Z,attributes:Q,qualifier:Y,typeArguments:H?y(H):void 0})}function C58(q,Z,Q){return new N(V.ImportClause,{phaseModifier:q,name:Z,namedBindings:Q})}function E58(q=!1,Z,Q){return new N(V.ImportSpecifier,{isTypeOnly:q,propertyName:Z,name:Q})}function F58(q,Z){return new N(V.JSDocLink,{name:q,text:Z})}function T58(q,Z){return new N(V.JSDocLinkPlain,{name:q,text:Z})}function f58(q,Z){return new N(V.JSDocLinkCode,{name:q,text:Z})}function K58(q,Z,Q,Y,H){return new N(V.TypeParameter,{modifiers:q?y(q):void 0,name:Z,constraint:Q,expression:Y,defaultType:H})}function v58(q,Z){return new N(V.SyntheticReferenceExpression,{expression:q,thisArg:Z})}function k58(q,Z){return new N(V.JSDocTypeLiteral,{jsdocPropertyTags:q,isArrayType:Z})}function N58(q,Z,Q,Y){return new N(V.ForInStatement,{awaitModifier:q,initializer:Z,expression:Q,statement:Y})}function S58(q,Z,Q,Y){return new N(V.ForOfStatement,{awaitModifier:q,initializer:Z,expression:Q,statement:Y})}function u58(q,Z){return new N(V.CaseClause,{expression:q,statements:y(Z)})}function b58(q,Z){return new N(V.DefaultClause,{expression:q,statements:y(Z)})}function h58(q){return new N(V.ObjectBindingPattern,{elements:y(q)})}function _58(q){return new N(V.ArrayBindingPattern,{elements:y(q)})}function y58(q,Z,Q,Y,H,J){return new N(V.JSDocParameterTag,{tagName:q,name:Z,isBracketed:Q,typeExpression:Y,isNameFirst:H,comment:J?y(J):void 0})}function g58(q,Z,Q,Y,H,J){return new N(V.JSDocPropertyTag,{tagName:q,name:Z,isBracketed:Q,typeExpression:Y,isNameFirst:H,comment:J?y(J):void 0})}function yT(q,Z,Q){return q.left!==Z||q.right!==Q?N98(Z,Q):q}function gT(q,Z){return q.expression!==Z?S98(Z):q}function xT(q,Z){return q.expression!==Z?u98(Z):q}function lT(q,Z,Q,Y){return q.expression!==Z||q.thenStatement!==Q||q.elseStatement!==Y?b98(Z,Q,Y):q}function mT(q,Z,Q){return q.statement!==Z||q.expression!==Q?h98(Z,Q):q}function pT(q,Z,Q){return q.expression!==Z||q.statement!==Q?_98(Z,Q):q}function cT(q,Z,Q,Y,H){return q.initializer!==Z||q.condition!==Q||q.incrementor!==Y||q.statement!==H?y98(Z,Q,Y,H):q}function rT(q,Z){return q.label!==Z?g98(Z):q}function iT(q,Z){return q.label!==Z?x98(Z):q}function dT(q,Z){return q.expression!==Z?l98(Z):q}function sT(q,Z,Q){return q.expression!==Z||q.statement!==Q?m98(Z,Q):q}function aT(q,Z,Q){return q.expression!==Z||q.caseBlock!==Q?p98(Z,Q):q}function oT(q,Z){return q.clauses!==Z?c98(Z):q}function nT(q,Z){return q.expression!==Z?r98(Z):q}function tT(q,Z,Q,Y){return q.tryBlock!==Z||q.catchClause!==Q||q.finallyBlock!==Y?i98(Z,Q,Y):q}function eT(q,Z,Q){return q.variableDeclaration!==Z||q.block!==Q?d98(Z,Q):q}function qf(q,Z,Q){return q.label!==Z||q.statement!==Q?s98(Z,Q):q}function Zf(q,Z){return q.expression!==Z?a98(Z):q}function Qf(q,Z){return q.statements!==Z?o98(Z,q.multiLine):q}function Yf(q,Z,Q){return q.modifiers!==Z||q.declarationList!==Q?n98(Z,Q):q}function Hf(q,Z,Q,Y,H){return q.name!==Z||q.exclamationToken!==Q||q.type!==Y||q.initializer!==H?t98(Z,Q,Y,H):q}function Jf(q,Z){return q.declarations!==Z?e98(Z,q.flags):q}function Xf(q,Z,Q,Y,H,J,X){return q.modifiers!==Z||q.dotDotDotToken!==Q||q.name!==Y||q.questionToken!==H||q.type!==J||q.initializer!==X?q68(Z,Q,Y,H,J,X):q}function Vf(q,Z,Q,Y,H){return q.dotDotDotToken!==Z||q.propertyName!==Q||q.name!==Y||q.initializer!==H?Z68(Z,Q,Y,H):q}function Gf(q,Z){return q.modifiers!==Z?Q68(Z):q}function Wf(q,Z,Q,Y,H,J,X,W){return q.modifiers!==Z||q.asteriskToken!==Q||q.name!==Y||q.typeParameters!==H||q.parameters!==J||q.type!==X||q.body!==W?Y68(Z,Q,Y,H,J,X,W):q}function $f(q,Z,Q,Y,H,J){return q.modifiers!==Z||q.name!==Q||q.typeParameters!==Y||q.heritageClauses!==H||q.members!==J?H68(Z,Q,Y,H,J):q}function Uf(q,Z,Q,Y,H,J){return q.modifiers!==Z||q.name!==Q||q.typeParameters!==Y||q.heritageClauses!==H||q.members!==J?J68(Z,Q,Y,H,J):q}function Rf(q,Z){return q.types!==Z?X68(q.token,Z):q}function zf(q,Z,Q,Y,H,J){return q.modifiers!==Z||q.name!==Q||q.typeParameters!==Y||q.heritageClauses!==H||q.members!==J?V68(Z,Q,Y,H,J):q}function Bf(q,Z,Q,Y,H){return q.modifiers!==Z||q.name!==Q||q.typeParameters!==Y||q.type!==H?G68(Z,Q,Y,H):q}function Mf(q,Z,Q){return q.name!==Z||q.initializer!==Q?W68(Z,Q):q}function Lf(q,Z,Q,Y){return q.modifiers!==Z||q.name!==Q||q.members!==Y?$68(Z,Q,Y):q}function Pf(q,Z){return q.statements!==Z?U68(Z):q}function Of(q,Z,Q,Y,H){return q.modifiers!==Z||q.importClause!==Q||q.moduleSpecifier!==Y||q.attributes!==H?R68(Z,Q,Y,H):q}function wf(q,Z){return q.expression!==Z?z68(Z):q}function Af(q,Z){return q.name!==Z?B68(Z):q}function If(q,Z){return q.elements!==Z?M68(Z):q}function jf(q,Z,Q,Y){return q.modifiers!==Z||q.type!==Q||q.expression!==Y?L68(Z,q.isExportEquals,Q,Y):q}function Df(q,Z,Q){return q.modifiers!==Z||q.name!==Q?P68(Z,Q):q}function Cf(q,Z){return q.name!==Z?O68(Z):q}function Ef(q,Z){return q.elements!==Z?w68(Z):q}function Ff(q,Z,Q){return q.propertyName!==Z||q.name!==Q?A68(q.isTypeOnly,Z,Q):q}function Tf(q,Z,Q,Y){return q.typeParameters!==Z||q.parameters!==Q||q.type!==Y?I68(Z,Q,Y):q}function ff(q,Z,Q,Y){return q.typeParameters!==Z||q.parameters!==Q||q.type!==Y?j68(Z,Q,Y):q}function Kf(q,Z,Q,Y,H,J){return q.modifiers!==Z||q.typeParameters!==Q||q.parameters!==Y||q.type!==H||q.body!==J?D68(Z,Q,Y,H,J):q}function vf(q,Z,Q,Y,H,J,X){return q.modifiers!==Z||q.name!==Q||q.typeParameters!==Y||q.parameters!==H||q.type!==J||q.body!==X?C68(Z,Q,Y,H,J,X):q}function kf(q,Z,Q,Y,H,J,X){return q.modifiers!==Z||q.name!==Q||q.typeParameters!==Y||q.parameters!==H||q.type!==J||q.body!==X?E68(Z,Q,Y,H,J,X):q}function Nf(q,Z,Q,Y){return q.modifiers!==Z||q.parameters!==Q||q.type!==Y?F68(Z,Q,Y):q}function Sf(q,Z,Q,Y,H,J,X){return q.modifiers!==Z||q.name!==Q||q.postfixToken!==Y||q.typeParameters!==H||q.parameters!==J||q.type!==X?T68(Z,Q,Y,H,J,X):q}function uf(q,Z,Q,Y,H,J,X,W,$){return q.modifiers!==Z||q.asteriskToken!==Q||q.name!==Y||q.postfixToken!==H||q.typeParameters!==J||q.parameters!==X||q.type!==W||q.body!==$?f68(Z,Q,Y,H,J,X,W,$):q}function bf(q,Z,Q,Y,H,J){return q.modifiers!==Z||q.name!==Q||q.postfixToken!==Y||q.type!==H||q.initializer!==J?K68(Z,Q,Y,H,J):q}function hf(q,Z,Q,Y,H,J){return q.modifiers!==Z||q.name!==Q||q.postfixToken!==Y||q.type!==H||q.initializer!==J?v68(Z,Q,Y,H,J):q}function _f(q,Z,Q){return q.modifiers!==Z||q.body!==Q?k68(Z,Q):q}function yf(q,Z,Q,Y,H,J){return q.modifiers!==Z||q.left!==Q||q.type!==Y||q.operatorToken!==H||q.right!==J?N68(Z,Q,Y,H,J):q}function gf(q,Z){return q.operand!==Z?S68(q.operator,Z):q}function xf(q,Z){return q.operand!==Z?u68(Z,q.operator):q}function lf(q,Z,Q){return q.asteriskToken!==Z||q.expression!==Q?b68(Z,Q):q}function mf(q,Z,Q,Y,H,J,X){return q.modifiers!==Z||q.typeParameters!==Q||q.parameters!==Y||q.type!==H||q.equalsGreaterThanToken!==J||q.body!==X?h68(Z,Q,Y,H,J,X):q}function pf(q,Z,Q,Y,H,J,X,W){return q.modifiers!==Z||q.asteriskToken!==Q||q.name!==Y||q.typeParameters!==H||q.parameters!==J||q.type!==X||q.body!==W?_68(Z,Q,Y,H,J,X,W):q}function cf(q,Z,Q){return q.expression!==Z||q.type!==Q?y68(Z,Q):q}function rf(q,Z,Q){return q.expression!==Z||q.type!==Q?g68(Z,Q):q}function df(q,Z,Q,Y,H,J){return q.condition!==Z||q.questionToken!==Q||q.whenTrue!==Y||q.colonToken!==H||q.whenFalse!==J?x68(Z,Q,Y,H,J):q}function sf(q,Z,Q,Y){return q.expression!==Z||q.questionDotToken!==Q||q.name!==Y?l68(Z,Q,Y,q.flags):q}function af(q,Z,Q,Y){return q.expression!==Z||q.questionDotToken!==Q||q.argumentExpression!==Y?m68(Z,Q,Y,q.flags):q}function of(q,Z,Q,Y,H){return q.expression!==Z||q.questionDotToken!==Q||q.typeArguments!==Y||q.arguments!==H?p68(Z,Q,Y,H,q.flags):q}function nf(q,Z,Q,Y){return q.expression!==Z||q.typeArguments!==Q||q.arguments!==Y?c68(Z,Q,Y):q}function tf(q,Z){return q.name!==Z?r68(q.keywordToken,Z):q}function ef(q,Z){return q.expression!==Z?i68(Z,q.flags):q}function qK(q,Z){return q.expression!==Z?d68(Z):q}function ZK(q,Z,Q){return q.head!==Z||q.templateSpans!==Q?s68(Z,Q):q}function QK(q,Z,Q){return q.expression!==Z||q.literal!==Q?a68(Z,Q):q}function YK(q,Z,Q,Y,H){return q.tag!==Z||q.questionDotToken!==Q||q.typeArguments!==Y||q.template!==H?o68(Z,Q,Y,H,q.flags):q}function HK(q,Z){return q.expression!==Z?n68(Z):q}function JK(q,Z){return q.elements!==Z?t68(Z,q.multiLine):q}function XK(q,Z){return q.properties!==Z?e68(Z,q.multiLine):q}function VK(q,Z){return q.expression!==Z?q78(Z):q}function GK(q,Z,Q,Y,H,J){return q.modifiers!==Z||q.name!==Q||q.postfixToken!==Y||q.type!==H||q.initializer!==J?Z78(Z,Q,Y,H,J):q}function WK(q,Z,Q,Y,H,J,X){return q.modifiers!==Z||q.name!==Q||q.postfixToken!==Y||q.type!==H||q.equalsToken!==J||q.objectAssignmentInitializer!==X?Q78(Z,Q,Y,H,J,X):q}function $K(q,Z){return q.expression!==Z?Y78(Z):q}function UK(q,Z){return q.expression!==Z?H78(Z):q}function RK(q,Z){return q.expression!==Z?J78(Z):q}function zK(q,Z){return q.expression!==Z?X78(Z):q}function BK(q,Z,Q){return q.type!==Z||q.expression!==Q?V78(Z,Q):q}function MK(q,Z){return q.types!==Z?G78(Z):q}function LK(q,Z){return q.types!==Z?W78(Z):q}function PK(q,Z,Q,Y,H){return q.checkType!==Z||q.extendsType!==Q||q.trueType!==Y||q.falseType!==H?$78(Z,Q,Y,H):q}function OK(q,Z){return q.type!==Z?U78(q.operator,Z):q}function wK(q,Z){return q.typeParameter!==Z?R78(Z):q}function AK(q,Z){return q.elementType!==Z?z78(Z):q}function IK(q,Z,Q){return q.objectType!==Z||q.indexType!==Q?B78(Z,Q):q}function jK(q,Z,Q){return q.typeName!==Z||q.typeArguments!==Q?M78(Z,Q):q}function DK(q,Z,Q){return q.expression!==Z||q.typeArguments!==Q?L78(Z,Q):q}function CK(q,Z){return q.literal!==Z?P78(Z):q}function EK(q,Z,Q,Y){return q.assertsModifier!==Z||q.parameterName!==Q||q.type!==Y?O78(Z,Q,Y):q}function FK(q,Z,Q){return q.name!==Z||q.value!==Q?w78(Z,Q):q}function TK(q,Z){return q.attributes!==Z?A78(q.token,Z,q.multiLine):q}function fK(q,Z,Q){return q.exprName!==Z||q.typeArguments!==Q?I78(Z,Q):q}function KK(q,Z,Q,Y,H,J,X){return q.readonlyToken!==Z||q.typeParameter!==Q||q.nameType!==Y||q.questionToken!==H||q.type!==J||q.members!==X?j78(Z,Q,Y,H,J,X):q}function vK(q,Z){return q.members!==Z?D78(Z):q}function kK(q,Z){return q.elements!==Z?C78(Z):q}function NK(q,Z,Q,Y,H){return q.dotDotDotToken!==Z||q.name!==Q||q.questionToken!==Y||q.type!==H?E78(Z,Q,Y,H):q}function SK(q,Z){return q.type!==Z?F78(Z):q}function uK(q,Z){return q.type!==Z?T78(Z):q}function bK(q,Z){return q.type!==Z?f78(Z):q}function hK(q,Z,Q,Y){return q.typeParameters!==Z||q.parameters!==Q||q.type!==Y?K78(Z,Q,Y):q}function _K(q,Z,Q,Y,H){return q.modifiers!==Z||q.typeParameters!==Q||q.parameters!==Y||q.type!==H?v78(Z,Q,Y,H):q}function yK(q,Z,Q){return q.head!==Z||q.templateSpans!==Q?k78(Z,Q):q}function gK(q,Z,Q){return q.type!==Z||q.literal!==Q?N78(Z,Q):q}function xK(q,Z){return q.tupleNameSource!==Z?S78(q.type,q.isSpread,Z):q}function lK(q,Z){return q.expression!==Z?u78(Z):q}function mK(q,Z,Q,Y){return q.openingElement!==Z||q.children!==Q||q.closingElement!==Y?b78(Z,Q,Y):q}function pK(q,Z){return q.properties!==Z?h78(Z):q}function cK(q,Z,Q){return q.namespace!==Z||q.name!==Q?_78(Z,Q):q}function rK(q,Z,Q,Y){return q.tagName!==Z||q.typeArguments!==Q||q.attributes!==Y?y78(Z,Q,Y):q}function iK(q,Z,Q,Y){return q.tagName!==Z||q.typeArguments!==Q||q.attributes!==Y?g78(Z,Q,Y):q}function dK(q,Z,Q,Y){return q.openingFragment!==Z||q.children!==Q||q.closingFragment!==Y?x78(Z,Q,Y):q}function sK(q,Z,Q){return q.name!==Z||q.initializer!==Q?l78(Z,Q):q}function aK(q,Z){return q.expression!==Z?m78(Z):q}function oK(q,Z){return q.tagName!==Z?p78(Z):q}function nK(q,Z,Q){return q.dotDotDotToken!==Z||q.expression!==Q?c78(Z,Q):q}function tK(q,Z){return q.children!==Z?r78(Z):q}function eK(q,Z,Q){return q.comment!==Z||q.tags!==Q?i78(Z,Q):q}function qv(q,Z){return q.type!==Z?d78(Z):q}function Zv(q,Z){return q.type!==Z?s78(Z):q}function Qv(q,Z){return q.type!==Z?a78(Z):q}function Yv(q,Z){return q.type!==Z?o78(Z):q}function Hv(q,Z){return q.type!==Z?n78(Z):q}function Jv(q,Z,Q,Y){return q.tagName!==Z||q.typeExpression!==Q||q.comment!==Y?t78(Z,Q,Y):q}function Xv(q,Z,Q){return q.tagName!==Z||q.comment!==Q?e78(Z,Q):q}function Vv(q,Z,Q,Y,H){return q.tagName!==Z||q.constraint!==Q||q.typeParameters!==Y||q.comment!==H?q58(Z,Q,Y,H):q}function Gv(q,Z,Q,Y){return q.tagName!==Z||q.typeExpression!==Q||q.comment!==Y?Z58(Z,Q,Y):q}function Wv(q,Z,Q){return q.tagName!==Z||q.comment!==Q?Q58(Z,Q):q}function $v(q,Z,Q){return q.tagName!==Z||q.comment!==Q?Y58(Z,Q):q}function Uv(q,Z,Q){return q.tagName!==Z||q.comment!==Q?H58(Z,Q):q}function Rv(q,Z,Q){return q.tagName!==Z||q.comment!==Q?J58(Z,Q):q}function zv(q,Z,Q){return q.tagName!==Z||q.comment!==Q?X58(Z,Q):q}function Bv(q,Z,Q){return q.tagName!==Z||q.comment!==Q?V58(Z,Q):q}function Mv(q,Z,Q,Y){return q.tagName!==Z||q.nameExpression!==Q||q.comment!==Y?G58(Z,Q,Y):q}function Lv(q,Z,Q,Y){return q.tagName!==Z||q.className!==Q||q.comment!==Y?W58(Z,Q,Y):q}function Pv(q,Z,Q,Y){return q.tagName!==Z||q.className!==Q||q.comment!==Y?$58(Z,Q,Y):q}function Ov(q,Z,Q,Y){return q.tagName!==Z||q.typeExpression!==Q||q.comment!==Y?U58(Z,Q,Y):q}function wv(q,Z,Q,Y){return q.tagName!==Z||q.typeExpression!==Q||q.comment!==Y?R58(Z,Q,Y):q}function Av(q,Z,Q,Y){return q.tagName!==Z||q.typeExpression!==Q||q.comment!==Y?z58(Z,Q,Y):q}function Iv(q,Z,Q,Y,H,J){return q.tagName!==Z||q.importClause!==Q||q.moduleSpecifier!==Y||q.attributes!==H||q.comment!==J?B58(Z,Q,Y,H,J):q}function jv(q,Z,Q,Y,H){return q.tagName!==Z||q.typeExpression!==Q||q.name!==Y||q.comment!==H?M58(Z,Q,Y,H):q}function Dv(q,Z,Q,Y){return q.tagName!==Z||q.typeExpression!==Q||q.comment!==Y?L58(Z,Q,Y):q}function Cv(q,Z,Q,Y,H){return q.tagName!==Z||q.typeExpression!==Q||q.name!==Y||q.comment!==H?P58(Z,Q,Y,H):q}function Ev(q,Z,Q,Y){return q.typeParameters!==Z||q.parameters!==Q||q.type!==Y?O58(Z,Q,Y):q}function Fv(q,Z){return q.name!==Z?w58(Z):q}function Tv(q,Z,Q,Y){return q.modifiers!==Z||q.name!==Q||q.body!==Y?A58(Z,q.keyword,Q,Y):q}function fv(q,Z,Q,Y){return q.modifiers!==Z||q.name!==Q||q.moduleReference!==Y?I58(Z,q.isTypeOnly,Q,Y):q}function Kv(q,Z,Q,Y,H){return q.modifiers!==Z||q.exportClause!==Q||q.moduleSpecifier!==Y||q.attributes!==H?j58(Z,q.isTypeOnly,Q,Y,H):q}function vv(q,Z,Q,Y,H){return q.argument!==Z||q.attributes!==Q||q.qualifier!==Y||q.typeArguments!==H?D58(q.isTypeOf,Z,Q,Y,H):q}function kv(q,Z,Q){return q.name!==Z||q.namedBindings!==Q?C58(q.phaseModifier,Z,Q):q}function Nv(q,Z,Q){return q.propertyName!==Z||q.name!==Q?E58(q.isTypeOnly,Z,Q):q}function Sv(q,Z){return q.name!==Z?F58(Z,q.text):q}function uv(q,Z){return q.name!==Z?T58(Z,q.text):q}function bv(q,Z){return q.name!==Z?f58(Z,q.text):q}function hv(q,Z,Q,Y,H,J){return q.modifiers!==Z||q.name!==Q||q.constraint!==Y||q.expression!==H||q.defaultType!==J?K58(Z,Q,Y,H,J):q}function _v(q,Z,Q){return q.expression!==Z||q.thisArg!==Q?v58(Z,Q):q}function yv(q,Z){return q.jsdocPropertyTags!==Z?k58(Z,q.isArrayType):q}function gv(q,Z,Q,Y,H){return q.awaitModifier!==Z||q.initializer!==Q||q.expression!==Y||q.statement!==H?N58(Z,Q,Y,H):q}function xv(q,Z,Q,Y,H){return q.awaitModifier!==Z||q.initializer!==Q||q.expression!==Y||q.statement!==H?S58(Z,Q,Y,H):q}function lv(q,Z,Q){return q.expression!==Z||q.statements!==Q?u58(Z,Q):q}function mv(q,Z,Q){return q.expression!==Z||q.statements!==Q?b58(Z,Q):q}function pv(q,Z){return q.elements!==Z?h58(Z):q}function cv(q,Z){return q.elements!==Z?_58(Z):q}function iv(q,Z,Q,Y,H){return q.tagName!==Z||q.name!==Q||q.typeExpression!==Y||q.comment!==H?y58(Z,Q,q.isBracketed,Y,q.isNameFirst,H):q}function dv(q,Z,Q,Y,H){return q.tagName!==Z||q.name!==Q||q.typeExpression!==Y||q.comment!==H?g58(Z,Q,q.isBracketed,Y,q.isNameFirst,H):q}function x58(q,Z,Q){return new N(V.SourceFile,{...JT(q),statements:y(Z),endOfFileToken:Q})}function rv(q,Z,Q){return q.statements!==Z||q.endOfFileToken!==Q?x58(q,Z,Q):q}var k98;var K5=w8(()=>{A5();p0();c6();eQ();tq();f5();k98={[V.QualifiedName]:(q,Z,Q)=>j(Z,q.left)||j(Z,q.right),[V.ComputedPropertyName]:(q,Z,Q)=>j(Z,q.expression),[V.Decorator]:(q,Z,Q)=>j(Z,q.expression),[V.IfStatement]:(q,Z,Q)=>j(Z,q.expression)||j(Z,q.thenStatement)||j(Z,q.elseStatement),[V.DoStatement]:(q,Z,Q)=>j(Z,q.statement)||j(Z,q.expression),[V.WhileStatement]:(q,Z,Q)=>j(Z,q.expression)||j(Z,q.statement),[V.ForStatement]:(q,Z,Q)=>j(Z,q.initializer)||j(Z,q.condition)||j(Z,q.incrementor)||j(Z,q.statement),[V.BreakStatement]:(q,Z,Q)=>j(Z,q.label),[V.ContinueStatement]:(q,Z,Q)=>j(Z,q.label),[V.ReturnStatement]:(q,Z,Q)=>j(Z,q.expression),[V.WithStatement]:(q,Z,Q)=>j(Z,q.expression)||j(Z,q.statement),[V.SwitchStatement]:(q,Z,Q)=>j(Z,q.expression)||j(Z,q.caseBlock),[V.CaseBlock]:(q,Z,Q)=>g(Z,Q,q.clauses),[V.ThrowStatement]:(q,Z,Q)=>j(Z,q.expression),[V.TryStatement]:(q,Z,Q)=>j(Z,q.tryBlock)||j(Z,q.catchClause)||j(Z,q.finallyBlock),[V.CatchClause]:(q,Z,Q)=>j(Z,q.variableDeclaration)||j(Z,q.block),[V.LabeledStatement]:(q,Z,Q)=>j(Z,q.label)||j(Z,q.statement),[V.ExpressionStatement]:(q,Z,Q)=>j(Z,q.expression),[V.Block]:(q,Z,Q)=>g(Z,Q,q.statements),[V.VariableStatement]:(q,Z,Q)=>g(Z,Q,q.modifiers)||j(Z,q.declarationList),[V.VariableDeclaration]:(q,Z,Q)=>j(Z,q.name)||j(Z,q.exclamationToken)||j(Z,q.type)||j(Z,q.initializer),[V.VariableDeclarationList]:(q,Z,Q)=>g(Z,Q,q.declarations),[V.Parameter]:(q,Z,Q)=>g(Z,Q,q.modifiers)||j(Z,q.dotDotDotToken)||j(Z,q.name)||j(Z,q.questionToken)||j(Z,q.type)||j(Z,q.initializer),[V.BindingElement]:(q,Z,Q)=>j(Z,q.dotDotDotToken)||j(Z,q.propertyName)||j(Z,q.name)||j(Z,q.initializer),[V.MissingDeclaration]:(q,Z,Q)=>g(Z,Q,q.modifiers),[V.FunctionDeclaration]:(q,Z,Q)=>g(Z,Q,q.modifiers)||j(Z,q.asteriskToken)||j(Z,q.name)||g(Z,Q,q.typeParameters)||g(Z,Q,q.parameters)||j(Z,q.type)||j(Z,q.body),[V.ClassDeclaration]:(q,Z,Q)=>g(Z,Q,q.modifiers)||j(Z,q.name)||g(Z,Q,q.typeParameters)||g(Z,Q,q.heritageClauses)||g(Z,Q,q.members),[V.ClassExpression]:(q,Z,Q)=>g(Z,Q,q.modifiers)||j(Z,q.name)||g(Z,Q,q.typeParameters)||g(Z,Q,q.heritageClauses)||g(Z,Q,q.members),[V.HeritageClause]:(q,Z,Q)=>g(Z,Q,q.types),[V.InterfaceDeclaration]:(q,Z,Q)=>g(Z,Q,q.modifiers)||j(Z,q.name)||g(Z,Q,q.typeParameters)||g(Z,Q,q.heritageClauses)||g(Z,Q,q.members),[V.TypeAliasDeclaration]:(q,Z,Q)=>g(Z,Q,q.modifiers)||j(Z,q.name)||g(Z,Q,q.typeParameters)||j(Z,q.type),[V.JSTypeAliasDeclaration]:(q,Z,Q)=>g(Z,Q,q.modifiers)||j(Z,q.name)||g(Z,Q,q.typeParameters)||j(Z,q.type),[V.EnumMember]:(q,Z,Q)=>j(Z,q.name)||j(Z,q.initializer),[V.EnumDeclaration]:(q,Z,Q)=>g(Z,Q,q.modifiers)||j(Z,q.name)||g(Z,Q,q.members),[V.ModuleBlock]:(q,Z,Q)=>g(Z,Q,q.statements),[V.ImportDeclaration]:(q,Z,Q)=>g(Z,Q,q.modifiers)||j(Z,q.importClause)||j(Z,q.moduleSpecifier)||j(Z,q.attributes),[V.JSImportDeclaration]:(q,Z,Q)=>g(Z,Q,q.modifiers)||j(Z,q.importClause)||j(Z,q.moduleSpecifier)||j(Z,q.attributes),[V.ExternalModuleReference]:(q,Z,Q)=>j(Z,q.expression),[V.NamespaceImport]:(q,Z,Q)=>j(Z,q.name),[V.NamedImports]:(q,Z,Q)=>g(Z,Q,q.elements),[V.ExportAssignment]:(q,Z,Q)=>g(Z,Q,q.modifiers)||j(Z,q.type)||j(Z,q.expression),[V.NamespaceExportDeclaration]:(q,Z,Q)=>g(Z,Q,q.modifiers)||j(Z,q.name),[V.NamespaceExport]:(q,Z,Q)=>j(Z,q.name),[V.NamedExports]:(q,Z,Q)=>g(Z,Q,q.elements),[V.ExportSpecifier]:(q,Z,Q)=>j(Z,q.propertyName)||j(Z,q.name),[V.CallSignature]:(q,Z,Q)=>g(Z,Q,q.typeParameters)||g(Z,Q,q.parameters)||j(Z,q.type),[V.ConstructSignature]:(q,Z,Q)=>g(Z,Q,q.typeParameters)||g(Z,Q,q.parameters)||j(Z,q.type),[V.Constructor]:(q,Z,Q)=>g(Z,Q,q.modifiers)||g(Z,Q,q.typeParameters)||g(Z,Q,q.parameters)||j(Z,q.type)||j(Z,q.body),[V.GetAccessor]:(q,Z,Q)=>g(Z,Q,q.modifiers)||j(Z,q.name)||g(Z,Q,q.typeParameters)||g(Z,Q,q.parameters)||j(Z,q.type)||j(Z,q.body),[V.SetAccessor]:(q,Z,Q)=>g(Z,Q,q.modifiers)||j(Z,q.name)||g(Z,Q,q.typeParameters)||g(Z,Q,q.parameters)||j(Z,q.type)||j(Z,q.body),[V.IndexSignature]:(q,Z,Q)=>g(Z,Q,q.modifiers)||g(Z,Q,q.parameters)||j(Z,q.type),[V.MethodSignature]:(q,Z,Q)=>g(Z,Q,q.modifiers)||j(Z,q.name)||j(Z,q.postfixToken)||g(Z,Q,q.typeParameters)||g(Z,Q,q.parameters)||j(Z,q.type),[V.MethodDeclaration]:(q,Z,Q)=>g(Z,Q,q.modifiers)||j(Z,q.asteriskToken)||j(Z,q.name)||j(Z,q.postfixToken)||g(Z,Q,q.typeParameters)||g(Z,Q,q.parameters)||j(Z,q.type)||j(Z,q.body),[V.PropertySignature]:(q,Z,Q)=>g(Z,Q,q.modifiers)||j(Z,q.name)||j(Z,q.postfixToken)||j(Z,q.type)||j(Z,q.initializer),[V.PropertyDeclaration]:(q,Z,Q)=>g(Z,Q,q.modifiers)||j(Z,q.name)||j(Z,q.postfixToken)||j(Z,q.type)||j(Z,q.initializer),[V.ClassStaticBlockDeclaration]:(q,Z,Q)=>g(Z,Q,q.modifiers)||j(Z,q.body),[V.BinaryExpression]:(q,Z,Q)=>g(Z,Q,q.modifiers)||j(Z,q.left)||j(Z,q.type)||j(Z,q.operatorToken)||j(Z,q.right),[V.PrefixUnaryExpression]:(q,Z,Q)=>j(Z,q.operand),[V.PostfixUnaryExpression]:(q,Z,Q)=>j(Z,q.operand),[V.YieldExpression]:(q,Z,Q)=>j(Z,q.asteriskToken)||j(Z,q.expression),[V.ArrowFunction]:(q,Z,Q)=>g(Z,Q,q.modifiers)||g(Z,Q,q.typeParameters)||g(Z,Q,q.parameters)||j(Z,q.type)||j(Z,q.equalsGreaterThanToken)||j(Z,q.body),[V.FunctionExpression]:(q,Z,Q)=>g(Z,Q,q.modifiers)||j(Z,q.asteriskToken)||j(Z,q.name)||g(Z,Q,q.typeParameters)||g(Z,Q,q.parameters)||j(Z,q.type)||j(Z,q.body),[V.AsExpression]:(q,Z,Q)=>j(Z,q.expression)||j(Z,q.type),[V.SatisfiesExpression]:(q,Z,Q)=>j(Z,q.expression)||j(Z,q.type),[V.ConditionalExpression]:(q,Z,Q)=>j(Z,q.condition)||j(Z,q.questionToken)||j(Z,q.whenTrue)||j(Z,q.colonToken)||j(Z,q.whenFalse),[V.PropertyAccessExpression]:(q,Z,Q)=>j(Z,q.expression)||j(Z,q.questionDotToken)||j(Z,q.name),[V.ElementAccessExpression]:(q,Z,Q)=>j(Z,q.expression)||j(Z,q.questionDotToken)||j(Z,q.argumentExpression),[V.CallExpression]:(q,Z,Q)=>j(Z,q.expression)||j(Z,q.questionDotToken)||g(Z,Q,q.typeArguments)||g(Z,Q,q.arguments),[V.NewExpression]:(q,Z,Q)=>j(Z,q.expression)||g(Z,Q,q.typeArguments)||g(Z,Q,q.arguments),[V.MetaProperty]:(q,Z,Q)=>j(Z,q.name),[V.NonNullExpression]:(q,Z,Q)=>j(Z,q.expression),[V.SpreadElement]:(q,Z,Q)=>j(Z,q.expression),[V.TemplateExpression]:(q,Z,Q)=>j(Z,q.head)||g(Z,Q,q.templateSpans),[V.TemplateSpan]:(q,Z,Q)=>j(Z,q.expression)||j(Z,q.literal),[V.TaggedTemplateExpression]:(q,Z,Q)=>j(Z,q.tag)||j(Z,q.questionDotToken)||g(Z,Q,q.typeArguments)||j(Z,q.template),[V.ParenthesizedExpression]:(q,Z,Q)=>j(Z,q.expression),[V.ArrayLiteralExpression]:(q,Z,Q)=>g(Z,Q,q.elements),[V.ObjectLiteralExpression]:(q,Z,Q)=>g(Z,Q,q.properties),[V.SpreadAssignment]:(q,Z,Q)=>j(Z,q.expression),[V.PropertyAssignment]:(q,Z,Q)=>g(Z,Q,q.modifiers)||j(Z,q.name)||j(Z,q.postfixToken)||j(Z,q.type)||j(Z,q.initializer),[V.ShorthandPropertyAssignment]:(q,Z,Q)=>g(Z,Q,q.modifiers)||j(Z,q.name)||j(Z,q.postfixToken)||j(Z,q.type)||j(Z,q.equalsToken)||j(Z,q.objectAssignmentInitializer),[V.DeleteExpression]:(q,Z,Q)=>j(Z,q.expression),[V.TypeOfExpression]:(q,Z,Q)=>j(Z,q.expression),[V.VoidExpression]:(q,Z,Q)=>j(Z,q.expression),[V.AwaitExpression]:(q,Z,Q)=>j(Z,q.expression),[V.TypeAssertionExpression]:(q,Z,Q)=>j(Z,q.type)||j(Z,q.expression),[V.UnionType]:(q,Z,Q)=>g(Z,Q,q.types),[V.IntersectionType]:(q,Z,Q)=>g(Z,Q,q.types),[V.ConditionalType]:(q,Z,Q)=>j(Z,q.checkType)||j(Z,q.extendsType)||j(Z,q.trueType)||j(Z,q.falseType),[V.TypeOperator]:(q,Z,Q)=>j(Z,q.type),[V.InferType]:(q,Z,Q)=>j(Z,q.typeParameter),[V.ArrayType]:(q,Z,Q)=>j(Z,q.elementType),[V.IndexedAccessType]:(q,Z,Q)=>j(Z,q.objectType)||j(Z,q.indexType),[V.TypeReference]:(q,Z,Q)=>j(Z,q.typeName)||g(Z,Q,q.typeArguments),[V.ExpressionWithTypeArguments]:(q,Z,Q)=>j(Z,q.expression)||g(Z,Q,q.typeArguments),[V.LiteralType]:(q,Z,Q)=>j(Z,q.literal),[V.TypePredicate]:(q,Z,Q)=>j(Z,q.assertsModifier)||j(Z,q.parameterName)||j(Z,q.type),[V.ImportAttribute]:(q,Z,Q)=>j(Z,q.name)||j(Z,q.value),[V.ImportAttributes]:(q,Z,Q)=>g(Z,Q,q.attributes),[V.TypeQuery]:(q,Z,Q)=>j(Z,q.exprName)||g(Z,Q,q.typeArguments),[V.MappedType]:(q,Z,Q)=>j(Z,q.readonlyToken)||j(Z,q.typeParameter)||j(Z,q.nameType)||j(Z,q.questionToken)||j(Z,q.type)||g(Z,Q,q.members),[V.TypeLiteral]:(q,Z,Q)=>g(Z,Q,q.members),[V.TupleType]:(q,Z,Q)=>g(Z,Q,q.elements),[V.NamedTupleMember]:(q,Z,Q)=>j(Z,q.dotDotDotToken)||j(Z,q.name)||j(Z,q.questionToken)||j(Z,q.type),[V.OptionalType]:(q,Z,Q)=>j(Z,q.type),[V.RestType]:(q,Z,Q)=>j(Z,q.type),[V.ParenthesizedType]:(q,Z,Q)=>j(Z,q.type),[V.FunctionType]:(q,Z,Q)=>g(Z,Q,q.typeParameters)||g(Z,Q,q.parameters)||j(Z,q.type),[V.ConstructorType]:(q,Z,Q)=>g(Z,Q,q.modifiers)||g(Z,Q,q.typeParameters)||g(Z,Q,q.parameters)||j(Z,q.type),[V.TemplateLiteralType]:(q,Z,Q)=>j(Z,q.head)||g(Z,Q,q.templateSpans),[V.TemplateLiteralTypeSpan]:(q,Z,Q)=>j(Z,q.type)||j(Z,q.literal),[V.SyntheticExpression]:(q,Z,Q)=>j(Z,q.tupleNameSource),[V.PartiallyEmittedExpression]:(q,Z,Q)=>j(Z,q.expression),[V.JsxElement]:(q,Z,Q)=>j(Z,q.openingElement)||g(Z,Q,q.children)||j(Z,q.closingElement),[V.JsxAttributes]:(q,Z,Q)=>g(Z,Q,q.properties),[V.JsxNamespacedName]:(q,Z,Q)=>j(Z,q.namespace)||j(Z,q.name),[V.JsxOpeningElement]:(q,Z,Q)=>j(Z,q.tagName)||g(Z,Q,q.typeArguments)||j(Z,q.attributes),[V.JsxSelfClosingElement]:(q,Z,Q)=>j(Z,q.tagName)||g(Z,Q,q.typeArguments)||j(Z,q.attributes),[V.JsxFragment]:(q,Z,Q)=>j(Z,q.openingFragment)||g(Z,Q,q.children)||j(Z,q.closingFragment),[V.JsxAttribute]:(q,Z,Q)=>j(Z,q.name)||j(Z,q.initializer),[V.JsxSpreadAttribute]:(q,Z,Q)=>j(Z,q.expression),[V.JsxClosingElement]:(q,Z,Q)=>j(Z,q.tagName),[V.JsxExpression]:(q,Z,Q)=>j(Z,q.dotDotDotToken)||j(Z,q.expression),[V.SyntaxList]:(q,Z,Q)=>g(Z,Q,q.children),[V.JSDoc]:(q,Z,Q)=>g(Z,Q,q.comment)||g(Z,Q,q.tags),[V.JSDocTypeExpression]:(q,Z,Q)=>j(Z,q.type),[V.JSDocNonNullableType]:(q,Z,Q)=>j(Z,q.type),[V.JSDocNullableType]:(q,Z,Q)=>j(Z,q.type),[V.JSDocVariadicType]:(q,Z,Q)=>j(Z,q.type),[V.JSDocOptionalType]:(q,Z,Q)=>j(Z,q.type),[V.JSDocTypeTag]:(q,Z,Q)=>j(Z,q.tagName)||j(Z,q.typeExpression)||g(Z,Q,q.comment),[V.JSDocUnknownTag]:(q,Z,Q)=>j(Z,q.tagName)||g(Z,Q,q.comment),[V.JSDocTemplateTag]:(q,Z,Q)=>j(Z,q.tagName)||j(Z,q.constraint)||g(Z,Q,q.typeParameters)||g(Z,Q,q.comment),[V.JSDocReturnTag]:(q,Z,Q)=>j(Z,q.tagName)||j(Z,q.typeExpression)||g(Z,Q,q.comment),[V.JSDocPublicTag]:(q,Z,Q)=>j(Z,q.tagName)||g(Z,Q,q.comment),[V.JSDocPrivateTag]:(q,Z,Q)=>j(Z,q.tagName)||g(Z,Q,q.comment),[V.JSDocProtectedTag]:(q,Z,Q)=>j(Z,q.tagName)||g(Z,Q,q.comment),[V.JSDocReadonlyTag]:(q,Z,Q)=>j(Z,q.tagName)||g(Z,Q,q.comment),[V.JSDocOverrideTag]:(q,Z,Q)=>j(Z,q.tagName)||g(Z,Q,q.comment),[V.JSDocDeprecatedTag]:(q,Z,Q)=>j(Z,q.tagName)||g(Z,Q,q.comment),[V.JSDocSeeTag]:(q,Z,Q)=>j(Z,q.tagName)||j(Z,q.nameExpression)||g(Z,Q,q.comment),[V.JSDocImplementsTag]:(q,Z,Q)=>j(Z,q.tagName)||j(Z,q.className)||g(Z,Q,q.comment),[V.JSDocAugmentsTag]:(q,Z,Q)=>j(Z,q.tagName)||j(Z,q.className)||g(Z,Q,q.comment),[V.JSDocSatisfiesTag]:(q,Z,Q)=>j(Z,q.tagName)||j(Z,q.typeExpression)||g(Z,Q,q.comment),[V.JSDocThrowsTag]:(q,Z,Q)=>j(Z,q.tagName)||j(Z,q.typeExpression)||g(Z,Q,q.comment),[V.JSDocThisTag]:(q,Z,Q)=>j(Z,q.tagName)||j(Z,q.typeExpression)||g(Z,Q,q.comment),[V.JSDocImportTag]:(q,Z,Q)=>j(Z,q.tagName)||j(Z,q.importClause)||j(Z,q.moduleSpecifier)||j(Z,q.attributes)||g(Z,Q,q.comment),[V.JSDocCallbackTag]:(q,Z,Q)=>j(Z,q.tagName)||j(Z,q.typeExpression)||j(Z,q.name)||g(Z,Q,q.comment),[V.JSDocOverloadTag]:(q,Z,Q)=>j(Z,q.tagName)||j(Z,q.typeExpression)||g(Z,Q,q.comment),[V.JSDocTypedefTag]:(q,Z,Q)=>j(Z,q.tagName)||j(Z,q.typeExpression)||j(Z,q.name)||g(Z,Q,q.comment),[V.JSDocSignature]:(q,Z,Q)=>g(Z,Q,q.typeParameters)||g(Z,Q,q.parameters)||j(Z,q.type),[V.JSDocNameReference]:(q,Z,Q)=>j(Z,q.name),[V.ModuleDeclaration]:(q,Z,Q)=>g(Z,Q,q.modifiers)||j(Z,q.name)||j(Z,q.body),[V.ImportEqualsDeclaration]:(q,Z,Q)=>g(Z,Q,q.modifiers)||j(Z,q.name)||j(Z,q.moduleReference),[V.ExportDeclaration]:(q,Z,Q)=>g(Z,Q,q.modifiers)||j(Z,q.exportClause)||j(Z,q.moduleSpecifier)||j(Z,q.attributes),[V.ImportType]:(q,Z,Q)=>j(Z,q.argument)||j(Z,q.attributes)||j(Z,q.qualifier)||g(Z,Q,q.typeArguments),[V.ImportClause]:(q,Z,Q)=>j(Z,q.name)||j(Z,q.namedBindings),[V.ImportSpecifier]:(q,Z,Q)=>j(Z,q.propertyName)||j(Z,q.name),[V.JSDocLink]:(q,Z,Q)=>j(Z,q.name),[V.JSDocLinkPlain]:(q,Z,Q)=>j(Z,q.name),[V.JSDocLinkCode]:(q,Z,Q)=>j(Z,q.name),[V.TypeParameter]:(q,Z,Q)=>g(Z,Q,q.modifiers)||j(Z,q.name)||j(Z,q.constraint)||j(Z,q.expression)||j(Z,q.defaultType),[V.SyntheticReferenceExpression]:(q,Z,Q)=>j(Z,q.expression)||j(Z,q.thisArg),[V.JSDocTypeLiteral]:(q,Z,Q)=>g(Z,Q,q.jsdocPropertyTags),[V.ForInStatement]:(q,Z,Q)=>j(Z,q.awaitModifier)||j(Z,q.initializer)||j(Z,q.expression)||j(Z,q.statement),[V.ForOfStatement]:(q,Z,Q)=>j(Z,q.awaitModifier)||j(Z,q.initializer)||j(Z,q.expression)||j(Z,q.statement),[V.CaseClause]:(q,Z,Q)=>j(Z,q.expression)||g(Z,Q,q.statements),[V.DefaultClause]:(q,Z,Q)=>j(Z,q.expression)||g(Z,Q,q.statements),[V.ObjectBindingPattern]:(q,Z,Q)=>g(Z,Q,q.elements),[V.ArrayBindingPattern]:(q,Z,Q)=>g(Z,Q,q.elements),[V.JSDocParameterTag]:X4,[V.JSDocPropertyTag]:X4,[V.SourceFile]:(q,Z,Q)=>g(Z,Q,q.statements)||j(Z,q.endOfFileToken)}});function m58(q){let Z=[];return q.forEach((Q,Y)=>{Z[Q]=Y}),Z}function av(q){let Z=[],Q=0,Y=0;while(Q<q.length){let H=q.charCodeAt(Q);switch(Q++,H){case Y8.carriageReturn:if(q.charCodeAt(Q)===Y8.lineFeed)Q++;case Y8.lineFeed:Z.push(Y),Y=Q;break;default:if(H>Y8.maxAsciiCharacter&&r6(H))Z.push(Y),Y=Q;break}}return Z.push(Y),Z}function p58(q){return c58(q)||r6(q)}function c58(q){return q===Y8.space||q===Y8.tab||q===Y8.verticalTab||q===Y8.formFeed||q===Y8.nonBreakingSpace||q===Y8.nextLine||q===Y8.ogham||q>=Y8.enQuad&&q<=Y8.zeroWidthSpace||q===Y8.narrowNoBreakSpace||q===Y8.mathematicalSpace||q===Y8.ideographicSpace||q===Y8.byteOrderMark}function r6(q){return q===Y8.lineFeed||q===Y8.carriageReturn||q===Y8.lineSeparator||q===Y8.paragraphSeparator}function qY(q,Z,Q,Y,H){if(Z<0)return Z;let J=!1;while(!0){let X=q.charCodeAt(Z);switch(X){case Y8.carriageReturn:if(q.charCodeAt(Z+1)===Y8.lineFeed)Z++;case Y8.lineFeed:if(Z++,Q)return Z;J=!!H;continue;case Y8.tab:case Y8.verticalTab:case Y8.formFeed:case Y8.space:Z++;continue;case Y8.slash:if(Y)break;if(q.charCodeAt(Z+1)===Y8.slash){Z+=2;while(Z<q.length){if(r6(q.charCodeAt(Z)))break;Z++}J=!1;continue}if(q.charCodeAt(Z+1)===Y8.asterisk){Z+=2;while(Z<q.length){if(q.charCodeAt(Z)===Y8.asterisk&&q.charCodeAt(Z+1)===Y8.slash){Z+=2;break}Z++}J=!1;continue}break;case Y8.lessThan:case Y8.bar:case Y8.equals:case Y8.greaterThan:if(ov(q,Z)){Z=r58(q,Z),J=!1;continue}break;case Y8.hash:if(Z===0&&i58(q,Z)){Z=d58(q,Z);continue}break;case Y8.asterisk:if(J){Z++,J=!1;continue}break;default:if(X>Y8.maxAsciiCharacter&&p58(X)){Z++;continue}break}return Z}}function ov(q,Z){if(Z>=q.length)return!1;let Q=q.charCodeAt(Z);if(Z===0||r6(q.charCodeAt(Z-1))){if(Q===Y8.lessThan||Q===Y8.greaterThan||Q===Y8.equals){if(Z+6<q.length&&q.charCodeAt(Z+1)===Q&&q.charCodeAt(Z+2)===Q&&q.charCodeAt(Z+3)===Q&&q.charCodeAt(Z+4)===Q&&q.charCodeAt(Z+5)===Q&&q.charCodeAt(Z+6)===Q)return Q===Y8.equals||q.charCodeAt(Z+7)===Y8.space}if(Q===Y8.bar&&Z+6<q.length&&q.charCodeAt(Z+1)===Q&&q.charCodeAt(Z+2)===Q&&q.charCodeAt(Z+3)===Q&&q.charCodeAt(Z+4)===Q&&q.charCodeAt(Z+5)===Q&&q.charCodeAt(Z+6)===Q)return!0}return!1}function r58(q,Z){let Q=q.charCodeAt(Z),Y=q.length;if(Q===Y8.lessThan||Q===Y8.greaterThan)while(Z<Y&&!r6(q.charCodeAt(Z)))Z++;else{Z+=7;while(Z<Y){let H=q.charCodeAt(Z);if((H===Y8.equals||H===Y8.greaterThan)&&ov(q,Z))break;Z++}}return Z}function i58(q,Z){return Z===0&&q.charCodeAt(0)===Y8.hash&&q.charCodeAt(1)===Y8.exclamation}function d58(q,Z){Z+=2;while(Z<q.length){if(r6(q.charCodeAt(Z)))break;Z++}return Z}var sv,jg8,l58,Dg8,Cg8;var ZY=w8(()=>{sq();_Q();gQ();xQ();mQ();p0();c6();sv={abstract:V.AbstractKeyword,accessor:V.AccessorKeyword,any:V.AnyKeyword,as:V.AsKeyword,asserts:V.AssertsKeyword,assert:V.AssertKeyword,bigint:V.BigIntKeyword,boolean:V.BooleanKeyword,break:V.BreakKeyword,case:V.CaseKeyword,catch:V.CatchKeyword,class:V.ClassKeyword,continue:V.ContinueKeyword,const:V.ConstKeyword,["constructor"]:V.ConstructorKeyword,debugger:V.DebuggerKeyword,declare:V.DeclareKeyword,default:V.DefaultKeyword,defer:V.DeferKeyword,delete:V.DeleteKeyword,do:V.DoKeyword,else:V.ElseKeyword,enum:V.EnumKeyword,export:V.ExportKeyword,extends:V.ExtendsKeyword,false:V.FalseKeyword,finally:V.FinallyKeyword,for:V.ForKeyword,from:V.FromKeyword,function:V.FunctionKeyword,get:V.GetKeyword,if:V.IfKeyword,implements:V.ImplementsKeyword,import:V.ImportKeyword,in:V.InKeyword,infer:V.InferKeyword,instanceof:V.InstanceOfKeyword,interface:V.InterfaceKeyword,intrinsic:V.IntrinsicKeyword,is:V.IsKeyword,keyof:V.KeyOfKeyword,let:V.LetKeyword,module:V.ModuleKeyword,namespace:V.NamespaceKeyword,never:V.NeverKeyword,new:V.NewKeyword,null:V.NullKeyword,number:V.NumberKeyword,object:V.ObjectKeyword,package:V.PackageKeyword,private:V.PrivateKeyword,protected:V.ProtectedKeyword,public:V.PublicKeyword,override:V.OverrideKeyword,out:V.OutKeyword,readonly:V.ReadonlyKeyword,require:V.RequireKeyword,global:V.GlobalKeyword,return:V.ReturnKeyword,satisfies:V.SatisfiesKeyword,set:V.SetKeyword,static:V.StaticKeyword,string:V.StringKeyword,super:V.SuperKeyword,switch:V.SwitchKeyword,symbol:V.SymbolKeyword,this:V.ThisKeyword,throw:V.ThrowKeyword,true:V.TrueKeyword,try:V.TryKeyword,type:V.TypeKeyword,typeof:V.TypeOfKeyword,undefined:V.UndefinedKeyword,unique:V.UniqueKeyword,unknown:V.UnknownKeyword,using:V.UsingKeyword,var:V.VarKeyword,void:V.VoidKeyword,while:V.WhileKeyword,with:V.WithKeyword,yield:V.YieldKeyword,async:V.AsyncKeyword,await:V.AwaitKeyword,of:V.OfKeyword},jg8=new Map(Object.entries(sv)),l58=new Map(Object.entries({...sv,"{":V.OpenBraceToken,"}":V.CloseBraceToken,"(":V.OpenParenToken,")":V.CloseParenToken,"[":V.OpenBracketToken,"]":V.CloseBracketToken,".":V.DotToken,"...":V.DotDotDotToken,";":V.SemicolonToken,",":V.CommaToken,"<":V.LessThanToken,">":V.GreaterThanToken,"<=":V.LessThanEqualsToken,">=":V.GreaterThanEqualsToken,"==":V.EqualsEqualsToken,"!=":V.ExclamationEqualsToken,"===":V.EqualsEqualsEqualsToken,"!==":V.ExclamationEqualsEqualsToken,"=>":V.EqualsGreaterThanToken,"+":V.PlusToken,"-":V.MinusToken,"**":V.AsteriskAsteriskToken,"*":V.AsteriskToken,"/":V.SlashToken,"%":V.PercentToken,"++":V.PlusPlusToken,"--":V.MinusMinusToken,"<<":V.LessThanLessThanToken,"</":V.LessThanSlashToken,">>":V.GreaterThanGreaterThanToken,">>>":V.GreaterThanGreaterThanGreaterThanToken,"&":V.AmpersandToken,"|":V.BarToken,"^":V.CaretToken,"!":V.ExclamationToken,"~":V.TildeToken,"&&":V.AmpersandAmpersandToken,"||":V.BarBarToken,"?":V.QuestionToken,"??":V.QuestionQuestionToken,"?.":V.QuestionDotToken,":":V.ColonToken,"=":V.EqualsToken,"+=":V.PlusEqualsToken,"-=":V.MinusEqualsToken,"*=":V.AsteriskEqualsToken,"**=":V.AsteriskAsteriskEqualsToken,"/=":V.SlashEqualsToken,"%=":V.PercentEqualsToken,"<<=":V.LessThanLessThanEqualsToken,">>=":V.GreaterThanGreaterThanEqualsToken,">>>=":V.GreaterThanGreaterThanGreaterThanEqualsToken,"&=":V.AmpersandEqualsToken,"|=":V.BarEqualsToken,"^=":V.CaretEqualsToken,"||=":V.BarBarEqualsToken,"&&=":V.AmpersandAmpersandEqualsToken,"??=":V.QuestionQuestionEqualsToken,"@":V.AtToken,"#":V.HashToken,"`":V.BacktickToken})),Dg8=new Map([[Y8.d,M1.HasIndices],[Y8.g,M1.Global],[Y8.i,M1.IgnoreCase],[Y8.m,M1.Multiline],[Y8.s,M1.DotAll],[Y8.u,M1.Unicode],[Y8.v,M1.UnicodeSets],[Y8.y,M1.Sticky]]);Cg8=m58(l58)});function k5(q,Z,Q){if(a58(q))return q.pos;if(FT(q.kind)||q.kind===V.JsxText)return qY(Z.text,q.pos,!1,!0);if(Q&&q.jsDoc&&q.jsDoc.length>0)return k5(q.jsDoc[0],Z,!1);return qY(Z.text,q.pos,!1,!1,!!(q.flags&m1.JSDoc))}function a58(q){return q.pos===q.end&&q.pos>=0&&q.kind!==V.EndOfFile}var eQ=w8(()=>{A5();p0();K5();T5();ZY()});var nv=w8(()=>{p0();K5();f5()});var tv=w8(()=>{tq()});var ev=w8(()=>{tv();pQ();Z4()});var F9=w8(()=>{sq();_Q();ZT();gQ();QT();A5();xQ();lQ();mQ();p0();c6();pQ();eQ();nv();T5();ev();ZY();tq();f5()});var q6,o58;var qk=w8(()=>{F9();q6={[V.QualifiedName]:["left","right"],[V.ComputedPropertyName]:["expression"],[V.Decorator]:["expression"],[V.IfStatement]:["expression","thenStatement","elseStatement"],[V.DoStatement]:["statement","expression"],[V.WhileStatement]:["expression","statement"],[V.ForStatement]:["initializer","condition","incrementor","statement"],[V.ForInStatement]:["awaitModifier","initializer","expression","statement"],[V.ForOfStatement]:["awaitModifier","initializer","expression","statement"],[V.BreakStatement]:["label"],[V.ContinueStatement]:["label"],[V.ReturnStatement]:["expression"],[V.WithStatement]:["expression","statement"],[V.SwitchStatement]:["expression","caseBlock"],[V.CaseBlock]:["clauses"],[V.CaseClause]:["expression","statements"],[V.DefaultClause]:["expression","statements"],[V.ThrowStatement]:["expression"],[V.TryStatement]:["tryBlock","catchClause","finallyBlock"],[V.CatchClause]:["variableDeclaration","block"],[V.LabeledStatement]:["label","statement"],[V.ExpressionStatement]:["expression"],[V.Block]:["statements"],[V.VariableStatement]:["modifiers","declarationList"],[V.VariableDeclaration]:["name","exclamationToken","type","initializer"],[V.VariableDeclarationList]:["declarations"],[V.ObjectBindingPattern]:["elements"],[V.ArrayBindingPattern]:["elements"],[V.Parameter]:["modifiers","dotDotDotToken","name","questionToken","type","initializer"],[V.BindingElement]:["dotDotDotToken","propertyName","name","initializer"],[V.MissingDeclaration]:["modifiers"],[V.FunctionDeclaration]:["modifiers","asteriskToken","name","typeParameters","parameters","type","body"],[V.ClassDeclaration]:["modifiers","name","typeParameters","heritageClauses","members"],[V.ClassExpression]:["modifiers","name","typeParameters","heritageClauses","members"],[V.HeritageClause]:["types"],[V.InterfaceDeclaration]:["modifiers","name","typeParameters","heritageClauses","members"],[V.TypeAliasDeclaration]:["modifiers","name","typeParameters","type"],[V.JSTypeAliasDeclaration]:["modifiers","name","typeParameters","type"],[V.EnumMember]:["name","initializer"],[V.EnumDeclaration]:["modifiers","name","members"],[V.ModuleBlock]:["statements"],[V.ImportDeclaration]:["modifiers","importClause","moduleSpecifier","attributes"],[V.JSImportDeclaration]:["modifiers","importClause","moduleSpecifier","attributes"],[V.ExternalModuleReference]:["expression"],[V.NamespaceImport]:["name"],[V.NamedImports]:["elements"],[V.ExportAssignment]:["modifiers","type","expression"],[V.NamespaceExportDeclaration]:["modifiers","name"],[V.NamespaceExport]:["name"],[V.NamedExports]:["elements"],[V.ExportSpecifier]:["propertyName","name"],[V.CallSignature]:["typeParameters","parameters","type"],[V.ConstructSignature]:["typeParameters","parameters","type"],[V.Constructor]:["modifiers","typeParameters","parameters","type","body"],[V.GetAccessor]:["modifiers","name","typeParameters","parameters","type","body"],[V.SetAccessor]:["modifiers","name","typeParameters","parameters","type","body"],[V.IndexSignature]:["modifiers","parameters","type"],[V.MethodSignature]:["modifiers","name","postfixToken","typeParameters","parameters","type"],[V.MethodDeclaration]:["modifiers","asteriskToken","name","postfixToken","typeParameters","parameters","type","body"],[V.PropertySignature]:["modifiers","name","postfixToken","type","initializer"],[V.PropertyDeclaration]:["modifiers","name","postfixToken","type","initializer"],[V.ClassStaticBlockDeclaration]:["modifiers","body"],[V.BinaryExpression]:["modifiers","left","type","operatorToken","right"],[V.PrefixUnaryExpression]:["operand"],[V.PostfixUnaryExpression]:["operand"],[V.YieldExpression]:["asteriskToken","expression"],[V.ArrowFunction]:["modifiers","typeParameters","parameters","type","equalsGreaterThanToken","body"],[V.FunctionExpression]:["modifiers","asteriskToken","name","typeParameters","parameters","type","body"],[V.AsExpression]:["expression","type"],[V.SatisfiesExpression]:["expression","type"],[V.ConditionalExpression]:["condition","questionToken","whenTrue","colonToken","whenFalse"],[V.PropertyAccessExpression]:["expression","questionDotToken","name"],[V.ElementAccessExpression]:["expression","questionDotToken","argumentExpression"],[V.CallExpression]:["expression","questionDotToken","typeArguments","arguments"],[V.NewExpression]:["expression","typeArguments","arguments"],[V.MetaProperty]:["name"],[V.NonNullExpression]:["expression"],[V.SpreadElement]:["expression"],[V.TemplateExpression]:["head","templateSpans"],[V.TemplateSpan]:["expression","literal"],[V.TaggedTemplateExpression]:["tag","questionDotToken","typeArguments","template"],[V.ParenthesizedExpression]:["expression"],[V.ArrayLiteralExpression]:["elements"],[V.ObjectLiteralExpression]:["properties"],[V.SpreadAssignment]:["expression"],[V.PropertyAssignment]:["modifiers","name","postfixToken","type","initializer"],[V.ShorthandPropertyAssignment]:["modifiers","name","postfixToken","type","equalsToken","objectAssignmentInitializer"],[V.DeleteExpression]:["expression"],[V.TypeOfExpression]:["expression"],[V.VoidExpression]:["expression"],[V.AwaitExpression]:["expression"],[V.TypeAssertionExpression]:["type","expression"],[V.UnionType]:["types"],[V.IntersectionType]:["types"],[V.ConditionalType]:["checkType","extendsType","trueType","falseType"],[V.TypeOperator]:["type"],[V.InferType]:["typeParameter"],[V.ArrayType]:["elementType"],[V.IndexedAccessType]:["objectType","indexType"],[V.TypeReference]:["typeName","typeArguments"],[V.ExpressionWithTypeArguments]:["expression","typeArguments"],[V.LiteralType]:["literal"],[V.TypePredicate]:["assertsModifier","parameterName","type"],[V.ImportAttribute]:["name","value"],[V.ImportAttributes]:["attributes"],[V.TypeQuery]:["exprName","typeArguments"],[V.MappedType]:["readonlyToken","typeParameter","nameType","questionToken","type","members"],[V.TypeLiteral]:["members"],[V.TupleType]:["elements"],[V.NamedTupleMember]:["dotDotDotToken","name","questionToken","type"],[V.OptionalType]:["type"],[V.RestType]:["type"],[V.ParenthesizedType]:["type"],[V.FunctionType]:["typeParameters","parameters","type"],[V.ConstructorType]:["modifiers","typeParameters","parameters","type"],[V.TemplateLiteralType]:["head","templateSpans"],[V.TemplateLiteralTypeSpan]:["type","literal"],[V.SyntheticExpression]:["tupleNameSource"],[V.PartiallyEmittedExpression]:["expression"],[V.JsxElement]:["openingElement","children","closingElement"],[V.JsxAttributes]:["properties"],[V.JsxNamespacedName]:["namespace","name"],[V.JsxOpeningElement]:["tagName","typeArguments","attributes"],[V.JsxSelfClosingElement]:["tagName","typeArguments","attributes"],[V.JsxFragment]:["openingFragment","children","closingFragment"],[V.JsxAttribute]:["name","initializer"],[V.JsxSpreadAttribute]:["expression"],[V.JsxClosingElement]:["tagName"],[V.JsxExpression]:["dotDotDotToken","expression"],[V.SyntaxList]:["children"],[V.JSDoc]:["comment","tags"],[V.JSDocTypeExpression]:["type"],[V.JSDocNonNullableType]:["type"],[V.JSDocNullableType]:["type"],[V.JSDocVariadicType]:["type"],[V.JSDocOptionalType]:["type"],[V.JSDocTypeTag]:["tagName","typeExpression","comment"],[V.JSDocUnknownTag]:["tagName","comment"],[V.JSDocTemplateTag]:["tagName","constraint","typeParameters","comment"],[V.JSDocReturnTag]:["tagName","typeExpression","comment"],[V.JSDocPublicTag]:["tagName","comment"],[V.JSDocPrivateTag]:["tagName","comment"],[V.JSDocProtectedTag]:["tagName","comment"],[V.JSDocReadonlyTag]:["tagName","comment"],[V.JSDocOverrideTag]:["tagName","comment"],[V.JSDocDeprecatedTag]:["tagName","comment"],[V.JSDocSeeTag]:["tagName","nameExpression","comment"],[V.JSDocImplementsTag]:["tagName","className","comment"],[V.JSDocAugmentsTag]:["tagName","className","comment"],[V.JSDocSatisfiesTag]:["tagName","typeExpression","comment"],[V.JSDocThrowsTag]:["tagName","typeExpression","comment"],[V.JSDocThisTag]:["tagName","typeExpression","comment"],[V.JSDocImportTag]:["tagName","importClause","moduleSpecifier","attributes","comment"],[V.JSDocCallbackTag]:["tagName","typeExpression","name","comment"],[V.JSDocOverloadTag]:["tagName","typeExpression","comment"],[V.JSDocTypedefTag]:["tagName","typeExpression","name","comment"],[V.JSDocSignature]:["typeParameters","parameters","type"],[V.JSDocNameReference]:["name"],[V.SourceFile]:["statements","endOfFileToken"],[V.ModuleDeclaration]:["modifiers","name","body"],[V.ImportEqualsDeclaration]:["modifiers","name","moduleReference"],[V.ExportDeclaration]:["modifiers","exportClause","moduleSpecifier","attributes"],[V.ImportType]:["argument","attributes","qualifier","typeArguments"],[V.ImportClause]:["name","namedBindings"],[V.ImportSpecifier]:["propertyName","name"],[V.JSDocLink]:["name"],[V.JSDocLinkPlain]:["name"],[V.JSDocLinkCode]:["name"],[V.TypeParameter]:["modifiers","name","constraint","expression","defaultType"],[V.SyntheticReferenceExpression]:["expression","thisArg"],[V.JSDocTypeLiteral]:["jsdocPropertyTags"],[V.JSDocParameterTag]:["tagName","name","typeExpression","comment"],[V.JSDocPropertyTag]:["tagName","name","typeExpression","comment"]},o58={[V.ComputedPropertyName]:"expression",[V.Decorator]:"expression",[V.BreakStatement]:"label",[V.ContinueStatement]:"label",[V.ReturnStatement]:"expression",[V.CaseBlock]:"clauses",[V.ThrowStatement]:"expression",[V.ExpressionStatement]:"expression",[V.Block]:"statements",[V.VariableDeclarationList]:"declarations",[V.ObjectBindingPattern]:"elements",[V.ArrayBindingPattern]:"elements",[V.MissingDeclaration]:"modifiers",[V.HeritageClause]:"types",[V.ModuleBlock]:"statements",[V.ExternalModuleReference]:"expression",[V.NamespaceImport]:"name",[V.NamedImports]:"elements",[V.NamespaceExport]:"name",[V.NamedExports]:"elements",[V.PrefixUnaryExpression]:"operand",[V.PostfixUnaryExpression]:"operand",[V.MetaProperty]:"name",[V.NonNullExpression]:"expression",[V.SpreadElement]:"expression",[V.ParenthesizedExpression]:"expression",[V.ArrayLiteralExpression]:"elements",[V.ObjectLiteralExpression]:"properties",[V.SpreadAssignment]:"expression",[V.DeleteExpression]:"expression",[V.TypeOfExpression]:"expression",[V.VoidExpression]:"expression",[V.AwaitExpression]:"expression",[V.UnionType]:"types",[V.IntersectionType]:"types",[V.TypeOperator]:"type",[V.InferType]:"typeParameter",[V.ArrayType]:"elementType",[V.LiteralType]:"literal",[V.ImportAttributes]:"attributes",[V.TypeLiteral]:"members",[V.TupleType]:"elements",[V.OptionalType]:"type",[V.RestType]:"type",[V.ParenthesizedType]:"type",[V.SyntheticExpression]:"tupleNameSource",[V.PartiallyEmittedExpression]:"expression",[V.JsxAttributes]:"properties",[V.JsxSpreadAttribute]:"expression",[V.JsxClosingElement]:"tagName",[V.SyntaxList]:"children",[V.JSDocTypeExpression]:"type",[V.JSDocNonNullableType]:"type",[V.JSDocNullableType]:"type",[V.JSDocVariadicType]:"type",[V.JSDocOptionalType]:"type",[V.JSDocNameReference]:"name",[V.JSDocLink]:"name",[V.JSDocLinkPlain]:"name",[V.JSDocLinkCode]:"name",[V.JSDocTypeLiteral]:"jsdocPropertyTags"}});var Zk=5,Qk=0,Yk=4,Hk=8,Jk=12,Xk=16,Vk=20,V4=24,G4=28,W4=32,$4=36,U4=40,N5=44,T0=28,Z6=0,R4=4,z4=8,i6=12,Q6=16,B4=20,Gk=24,Y6=4294967295,H9=0,H6=1073741824,d6=2147483648;var s6=w8(()=>{qk()});function Wk(q){switch(q){case V.Identifier:case V.PrivateIdentifier:case V.JsxText:case V.JSDocText:case V.JSDocLink:case V.JSDocLinkPlain:case V.JSDocLinkCode:return H6;case V.StringLiteral:case V.NumericLiteral:case V.BigIntLiteral:case V.RegularExpressionLiteral:case V.NoSubstitutionTemplateLiteral:case V.TemplateHead:case V.TemplateMiddle:case V.TemplateTail:case V.SourceFile:return d6;default:return H9}}function $k(q){switch(q.kind){case V.Block:return(q.multiLine?1:0)<<24;case V.HeritageClause:return(q.token===V.ImplementsKeyword?1:0)<<24;case V.ExportAssignment:return(q.isExportEquals?1:0)<<24;case V.ExportSpecifier:return(q.isTypeOnly?1:0)<<24;case V.PrefixUnaryExpression:return(q.operator===V.MinusToken?1:q.operator===V.TildeToken?2:q.operator===V.ExclamationToken?3:q.operator===V.PlusPlusToken?4:q.operator===V.MinusMinusToken?5:0)<<24;case V.PostfixUnaryExpression:return(q.operator===V.MinusMinusToken?1:0)<<24;case V.MetaProperty:return(q.keywordToken===V.NewKeyword?1:0)<<24;case V.ArrayLiteralExpression:return(q.multiLine?1:0)<<24;case V.ObjectLiteralExpression:return(q.multiLine?1:0)<<24;case V.TypeOperator:return(q.operator===V.ReadonlyKeyword?1:q.operator===V.UniqueKeyword?2:0)<<24;case V.ImportAttributes:return(q.multiLine?1:0)<<24|(q.token===V.AssertKeyword?1:0)<<25;case V.JsxText:return(q.containsOnlyTriviaWhiteSpaces?1:0)<<24;case V.ModuleDeclaration:return(q.keyword===V.NamespaceKeyword?1:0)<<24;case V.ImportEqualsDeclaration:return(q.isTypeOnly?1:0)<<24;case V.ExportDeclaration:return(q.isTypeOnly?1:0)<<24;case V.ImportType:return(q.isTypeOf?1:0)<<24;case V.ImportClause:return(q.phaseModifier===V.TypeKeyword?1:q.phaseModifier===V.DeferKeyword?2:0)<<24;case V.ImportSpecifier:return(q.isTypeOnly?1:0)<<24;case V.JSDocTypeLiteral:return(q.isArrayType?1:0)<<24;case V.JSDocParameterTag:case V.JSDocPropertyTag:return(q.isBracketed?1:0)<<24|(q.isNameFirst?1:0)<<25}return 0}var Uk=w8(()=>{F9();s6()});import{Buffer as n58}from"node:buffer";function Q28(q,Z){return Z+2<q.length&&q[Z]===Rk&&q[Z+1]>=t58&&q[Z+1]<=e58&&q[Z+2]>=q28&&q[Z+2]<=Z28}function Y28(q,Z){return 53248|(q[Z+1]&63)<<6|q[Z+2]&63}function H28(q){return n58.from(q.buffer,q.byteOffset,q.byteLength).indexOf(Rk)>=0}function J28(q){if(q instanceof Uint8Array)return q;if(ArrayBuffer.isView(q))return new Uint8Array(q.buffer,q.byteOffset,q.byteLength);return new Uint8Array(q)}var Rk=237,t58=160,e58=191,q28=128,Z28=191,J6;var M4=w8(()=>{J6=class J6 extends TextDecoder{decode(q,Z){if(q===void 0)return super.decode(q,Z);let Q=J28(q);if(!H28(Q))return super.decode(Q,Z);let Y=[],H=0;for(let J=0;J<Q.length;J++){if(!Q28(Q,J))continue;if(H<J)Y.push(super.decode(Q.subarray(H,J),Z));Y.push(String.fromCharCode(Y28(Q,J))),J+=2,H=J+1}if(H===0)return super.decode(Q,Z);if(H<Q.length)Y.push(super.decode(Q.subarray(H),Z));return Y.join("")}}});class QY{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=X28.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 S5{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=V28.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 X28,V28;var YY=w8(()=>{M4();X28=new TextEncoder,V28=new J6});class Pk{parts;byteLen;offsets;constructor(){this.parts=[],this.byteLen=0,this.offsets=[]}add(q){let Z=this.offsets.length,Y=Mk().encode(q).length,H=this.byteLen;return this.parts.push(q),this.byteLen+=Y,this.offsets.push(H,H+Y),Z}encode(){let Z=Mk().encode(this.parts.join("")),Q=new Uint8Array(this.offsets.length*4),Y=new DataView(Q.buffer);for(let J=0;J<this.offsets.length;J++)Y.setUint32(J*4,this.offsets[J],!0);let H=new Uint8Array(Q.length+Z.length);return H.set(Q,0),H.set(Z,Q.length),H}stringByteLength(){return this.byteLen}offsetsCount(){return this.offsets.length}}function Mk(){return G28??=new TextEncoder}function W28(q){let Z=q.kind,Q=q6[Z];if(!Q)return 0;let Y=q,H=0;for(let J=0;J<Q.length;J++){let X=Q[J];if(X!==void 0&&$28(Y[X]))H|=1<<J}return H}function $28(q){if(q===void 0||q===null)return!1;return!0}function U28(q,Z){return Z.add(q.text??"")}function HY(q,Z){if(!q||q.length===0)return L4;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 R28(q,Z,Q,Y){let H=Q.length*4;if(q.kind===V.SourceFile){let J=q,X=Z.add(J.text),W=Z.add(J.fileName),$=Z.add(J.path),R=HY(J.referencedFiles,Y),z=HY(J.typeReferenceDirectives,Y),O=HY(J.libReferenceDirectives,Y);Q.push(X,W,$,J.languageVariant,J.scriptKind,R,z,O,L4,L4,L4,0)}else if(q.kind===V.TemplateHead||q.kind===V.TemplateMiddle||q.kind===V.TemplateTail){let J=q,X=J.text??"",W=J.rawText??"",$=J.templateFlags??0,R=Z.add(X),z=Z.add(W);Q.push(R,z,$)}else{let J=q,X=J.text??"",W=J.tokenFlags??0,$=Z.add(X);Q.push($,W)}return H}function Lk(q,Z,Q,Y){let H=Wk(q.kind),J=$k(q);switch(H){case H9:return H|J|W28(q);case H6:return H|J|U28(q,Z);case d6:return H|J|R28(q,Z,Q,Y);default:throw Error("unreachable")}}function z28(q){return q6[q.kind]}function B28(q){return Array.isArray(q)&&typeof q.pos==="number"&&typeof q.end==="number"}function Ok(q){let Z=new Pk,Q=[],Y=new QY,H=[];H.push(0,0,0,0,0,0,0);let J=0,X=0,W=0;function $(C){J++;let T=J;if(W!==0)H[W*zk+Bk]=T;let D=Lk(C,Z,Q,Y);H.push(C.kind,C.pos>=0?C.pos:0,C.end>=0?C.end:0,0,X,D,C.flags);let f=X,p=W;X=T,W=0,z(C),W=T,X=f}function R(C){if(!C)return;J++;let T=J;if(W!==0)H[W*zk+Bk]=T;H.push(Y6,C.pos>=0?C.pos:0,C.end>=0?C.end:0,0,X,C.length,0);let D=X;X=T,W=0;for(let f of C)$(f);W=T,X=D}function z(C){let T=z28(C),D=C;if(T)for(let f of T){if(f===void 0)continue;let p=D[f];if(p===void 0||p===null)continue;if(B28(p))R(p);else $(p)}}J++,X++;let O=Lk(q,Z,Q,Y);H.push(q.kind,q.pos>=0?q.pos:0,q.end>=0?q.end:0,0,0,O,q.flags);let P=X;W=0,X=1,z(q),X=P;let w=new Uint8Array(Q.length*4),v=new DataView(w.buffer);for(let C=0;C<Q.length;C++)v.setUint32(C*4,Q[C],!0);let F=Y.finish(),h=Z.encode(),m=new Uint8Array(H.length*4),_=new DataView(m.buffer);for(let C=0;C<H.length;C++)_.setUint32(C*4,H[C]>>>0,!0);let E=N5,u=N5+Z.offsetsCount()*4,S=u+Z.stringByteLength(),s=S+w.length,b=s+F.length,G=new Uint8Array(N5),U=new DataView(G.buffer),B=Zk<<24;U.setUint32(Qk,B,!0),U.setUint32(V4,E,!0),U.setUint32(G4,u,!0),U.setUint32(W4,S,!0),U.setUint32($4,s,!0),U.setUint32(U4,b,!0);let M=new Uint8Array(G.length+h.length+w.length+F.length+m.length);return M.set(G,0),M.set(h,N5),M.set(w,S),M.set(F,s),M.set(m,b),M}function wk(q){return Buffer.from(q).toString("base64")}var zk,Bk=3,L4=4294967295,G28;var Ak=w8(()=>{F9();Uk();YY();s6();zk=T0/4});function JY(q){let Z=q.getUint32(Yk,!0),Q=q.getUint32(Hk,!0),Y=q.getUint32(Jk,!0),H=q.getUint32(Xk,!0);return P4(H)+P4(Y)+P4(Q)+P4(Z)}function XY(q){return q.getUint32(Vk,!0).toString()}function P4(q){return(q>>>0).toString(16).padStart(8,"0")}function Ek(q){switch(q){case V.StaticKeyword:return a8.Static;case V.PublicKeyword:return a8.Public;case V.ProtectedKeyword:return a8.Protected;case V.PrivateKeyword:return a8.Private;case V.AbstractKeyword:return a8.Abstract;case V.AccessorKeyword:return a8.Accessor;case V.ExportKeyword:return a8.Export;case V.DeclareKeyword:return a8.Ambient;case V.ConstKeyword:return a8.Const;case V.DefaultKeyword:return a8.Default;case V.AsyncKeyword:return a8.Async;case V.ReadonlyKeyword:return a8.Readonly;case V.OverrideKeyword:return a8.Override;case V.InKeyword:return a8.In;case V.OutKeyword:return a8.Out;case V.Decorator:return a8.Decorator;default:return a8.None}}class O4{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+Z6,!0)}get pos(){return this.view.getInt32(this._byteIndex+R4,!0)}get end(){return this.view.getInt32(this._byteIndex+z4,!0)}get next(){return this.view.getUint32(this._byteIndex+i6,!0)}get parentIndex(){return this.view.getUint32(this._byteIndex+Q6,!0)}get data(){return this.view.getUint32(this._byteIndex+B4,!0)}get dataType(){return this.data&jk}get childMask(){if(this.dataType!==H9)return-1;return this.data&Dk}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 Ik,jk=3221225472,Dk=255,Ck=16777215,X6=16777215;var w4=w8(()=>{F9();s6();Ik=[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 a6,T9;var VY=w8(()=>{F9();w4();s6();a6=class a6 extends Array{static get[Symbol.species](){return Array}parent;hasTrailingComma;transformFlags=0;view;index;_byteIndex;_cursorIndex=0;_cursorNodeIndex=0;get pos(){return this.view.getUint32(this._byteIndex+R4,!0)}get end(){return this.view.getUint32(this._byteIndex+z4,!0)}get next(){return this.view.getUint32(this._byteIndex+i6,!0)}get data(){return this.view.getUint32(this._byteIndex+B4,!0)}sourceFile;constructor(q,Z,Q,Y,H){super();this.view=q,this.index=Z,this.parent=Q,this.sourceFile=Y,this._byteIndex=H+Z*T0,this.length=this.data,this._cursorNodeIndex=Z+1;let J=this.length;for(let X=16;X<J;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.sourceFile._offsetNodes,Q,Y;if(q>=this._cursorIndex)Q=this._cursorIndex,Y=this._cursorNodeIndex;else Q=0,Y=this.index+1;for(;Q<q;Q++)Y=this.view.getUint32(Z+Y*T0+i6,!0);return this._cursorIndex=q,this._cursorNodeIndex=Y,this.getOrCreateChildAtNodeIndex(Y)}getOrCreateChildAtNodeIndex(q){let Z=this.sourceFile.nodes[q];if(!Z){if(this.view.getUint32(this.sourceFile._offsetNodes+q*T0+Z6,!0)===Y6)throw Error("NodeList cannot directly contain another NodeList");let Y=this.sourceFile;Z=new T9(this.view,q,this.parent,Y,Y._offsetNodes),Y.nodes[q]=Z,Y._timing?.recordMaterialization()}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
|
-
`)}};T9=class T9 extends O4{static NODE_LEN=T0;get sourceFile(){return this._sourceFile}_sourceFile;get id(){return`${this.index}.${this.kind}.${this.sourceFile.path}`}constructor(q,Z,Q,Y,H){super(q,Z,Q,H+Z*T0);this._sourceFile=Y}forEachChild(q,Z){if(this.hasChildren()){let Q=this.index+1;do{let Y=this.getOrCreateChildAtNodeIndex(Q);if(Y instanceof a6)if(Z){let H=Z(Y);if(H)return H}else{let H=Y.forEachNode(q);if(H)return H}else if(Y.kind!==V.JSDoc){let H=q(Y);if(H)return H}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 a6)&&Q.kind===V.JSDoc)(q??=[]).push(Q);Z=Q.next}while(Z);return q}getSourceFile(){return this.sourceFile}getStart(q,Z){return k5(this,q??this.getSourceFile(),Z)}getFullStart(){return this.pos}getEnd(){return this.end}getWidth(q){return this.getEnd()-this.getStart(q)}getFullWidth(){return this.end-this.pos}getLeadingTriviaWidth(q){return this.getStart(q)-this.pos}getFullText(q){return(q??this.getSourceFile()).text.substring(this.pos,this.end)}getText(q){return q??=this.getSourceFile(),q.text.substring(this.getStart(q),this.end)}getString(q){let Z=this.sourceFile._offsetStringTableOffsets,Q=this.view.getUint32(Z+q*4,!0),Y=this.view.getUint32(Z+(q+1)*4,!0),H=this.sourceFile._offsetStringTable,J=new Uint8Array(this.view.buffer,this.view.byteOffset+H+Q,Y-Q);return this.sourceFile._decoder.decode(J)}getOrCreateChildAtNodeIndex(q){let Z=this.sourceFile.nodes[q];if(!Z){let Q=this.sourceFile,Y=Q._offsetNodes;Z=this.view.getUint32(Y+q*T0+Z6,!0)===Y6?new a6(this.view,q,this,Q,Y):new T9(this.view,q,this,Q,Y),Q.nodes[q]=Z,Q._timing?.recordMaterialization()}return Z}hasChildren(){if(this._byteIndex>=this.view.byteLength-T0)return!1;return this.view.getUint32(this.sourceFile._offsetNodes+(this.index+1)*T0+Q6,!0)===this.index}getNamedChild(q){let Z=this.kind,Q=q6[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-Ik[~(Z|255<<q&255)&255],Y=this.index+1;for(let H=0;H<Q;H++)Y=this.view.getUint32(this.sourceFile._offsetNodes+Y*T0+i6,!0);return this.getOrCreateChildAtNodeIndex(Y)}__print(){let q=[];q.push(`index: ${this.index}`),q.push(`byteIndex: ${this._byteIndex}`),q.push(`kind: ${V[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===H9?"children":this.dataType===H6?"string":"extended";if(q.push(`dataType: ${Z}`),this.dataType===H9)q.push(`childMask: ${this.childMask.toString(2).padStart(8,"0")}`),q.push(`childProperties: ${q6[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 V.ModuleDeclaration:return this.data>>24&1?V.NamespaceKeyword:V.ModuleKeyword}}get keywordToken(){switch(this.kind){case V.MetaProperty:return this.data>>24&1?V.NewKeyword:V.ImportKeyword}}get operator(){switch(this.kind){case V.PrefixUnaryExpression:{let q=this.data>>24&7;if(q===1)return V.MinusToken;if(q===2)return V.TildeToken;if(q===3)return V.ExclamationToken;if(q===4)return V.PlusPlusToken;if(q===5)return V.MinusMinusToken;return V.PlusToken}case V.PostfixUnaryExpression:return this.data>>24&1?V.MinusMinusToken:V.PlusPlusToken;case V.TypeOperator:{let q=this.data>>24&3;if(q===1)return V.ReadonlyKeyword;if(q===2)return V.UniqueKeyword;return V.KeyOfKeyword}}}get phaseModifier(){switch(this.kind){case V.ImportClause:{let q=this.data>>24&3;if(q===0)return;return q===1?V.TypeKeyword:q===2?V.DeferKeyword:void 0}}}get token(){switch(this.kind){case V.HeritageClause:return this.data>>24&1?V.ImplementsKeyword:V.ExtendsKeyword;case V.ImportAttributes:return this.data>>25&1?V.AssertKeyword:V.WithKeyword}}get templateFlags(){switch(this.kind){case V.TemplateHead:case V.TemplateMiddle:case V.TemplateTail:let q=this.sourceFile._offsetExtendedData+(this.data&X6);return this.view.getUint32(q+8,!0)}}get tokenFlags(){switch(this.kind){case V.StringLiteral:case V.NumericLiteral:case V.BigIntLiteral:case V.RegularExpressionLiteral:let q=this.sourceFile._offsetExtendedData+(this.data&X6);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 V.Identifier:case V.PrivateIdentifier:case V.JsxText:case V.JSDocText:case V.JSDocLink:case V.JSDocLinkPlain:case V.JSDocLinkCode:{let q=this.data&Ck;return this.getString(q)}case V.StringLiteral:case V.NumericLiteral:case V.BigIntLiteral:case V.RegularExpressionLiteral:case V.NoSubstitutionTemplateLiteral:case V.TemplateHead:case V.TemplateMiddle:case V.TemplateTail:case V.SourceFile:{let q=this.sourceFile._offsetExtendedData+(this.data&X6),Z=this.view.getUint32(q,!0);return this.getString(Z)}}}get rawText(){switch(this.kind){case V.TemplateHead:case V.TemplateMiddle:case V.TemplateTail:let q=this.sourceFile._offsetExtendedData+(this.data&X6),Z=this.view.getUint32(q+4,!0);return this.getString(Z)}}get flags(){return this.view.getUint32(this._byteIndex+Gk,!0)}get modifierFlags(){let q=this.modifiers;if(!q)return a8.None;let Z=a8.None;for(let Q of q)Z|=Ek(Q.kind);return Z}}});function M28(q,Z){let Q=0,Y=q.length-1;while(Q<=Y){let H=Q+(Y-Q>>1),J=q[H];if(J<Z)Q=H+1;else if(J>Z)Y=H-1;else return H}return Q-1}function Fk(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 WY(q){return new A4(q,new J6)}function O0(q){if(!(q instanceof T9))throw Error("getNodeId requires a RemoteNode");return q.id}var GY=4294967295,A4;var Tk=w8(()=>{F9();YY();VY();w4();s6();M4();VY();w4();A4=class A4 extends T9{nodes;_offsetNodes;_offsetStringTableOffsets;_offsetStringTable;_offsetExtendedData;_offsetStructuredData;_decoder;_timing;_lineStarts;_cachedText;_cachedReferencedFiles;_cachedTypeReferenceDirectives;_cachedLibReferenceDirectives;_cachedImports;_cachedModuleAugmentations;_cachedAmbientModuleNames;constructor(q,Z,Q){let Y=new DataView(q.buffer,q.byteOffset,q.byteLength),H=Y.getUint32(U4,!0);super(Y,1,void 0,void 0,H);this._sourceFile=this,this._offsetNodes=H,this._offsetStringTableOffsets=Y.getUint32(V4,!0),this._offsetStringTable=Y.getUint32(G4,!0),this._offsetExtendedData=Y.getUint32(W4,!0),this._offsetStructuredData=Y.getUint32($4,!0),this._decoder=Z,this._timing=Q,this.nodes=Array((Y.byteLength-H)/T0),this.nodes[1]=this,Q?.recordSourceFileFetched(Math.max(0,this.nodes.length-2))}readFileReferences(q){if(q===GY)return[];let Z=new Uint8Array(this.view.buffer,this.view.byteOffset,this.view.byteLength),Q=new S5(Z,this._offsetStructuredData+q),Y=Q.readArrayHeader(),H=[];for(let J=0;J<Y;J++){Q.readArrayHeader();let X=Q.readUint(),W=Q.readUint(),$=Q.readString(),R=Q.readUint(),z=Q.readBool();H.push({pos:X,end:W,fileName:$,resolutionMode:R,preserve:z})}return H}readNodeIndexArray(q){if(q===GY)return[];let Z=new Uint8Array(this.view.buffer,this.view.byteOffset,this.view.byteLength),Q=new S5(Z,this._offsetStructuredData+q),Y=Q.readArrayHeader(),H=[];for(let J=0;J<Y;J++){let X=Q.readUint();H.push(this.getOrCreateNodeAtIndex(X))}return H}readStringArray(q){if(q===GY)return[];let Z=new Uint8Array(this.view.buffer,this.view.byteOffset,this.view.byteLength),Q=new S5(Z,this._offsetStructuredData+q),Y=Q.readArrayHeader(),H=[];for(let J=0;J<Y;J++)H.push(Q.readString());return H}getOrCreateNodeAtIndex(q){let Z=this.nodes[q];if(!Z){let Q=this.view.getUint32(this._offsetNodes+q*T0+Q6,!0);while(Q!==q&&this.view.getUint32(this._offsetNodes+Q*T0+Z6,!0)===Y6)Q=this.view.getUint32(this._offsetNodes+Q*T0+Q6,!0);let Y=Q===q?this:this.getOrCreateNodeAtIndex(Q);Z=new T9(this.view,q,Y,this,this._offsetNodes),this.nodes[q]=Z,this._timing?.recordMaterialization()}return Z}get extendedDataOffset(){return this._offsetExtendedData+(this.data&X6)}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(){if(this._cachedReferencedFiles!==void 0)return this._cachedReferencedFiles;let q=this.view.getUint32(this.extendedDataOffset+20,!0),Z=this.readFileReferences(q);return this._cachedReferencedFiles=Z,Z}get typeReferenceDirectives(){if(this._cachedTypeReferenceDirectives!==void 0)return this._cachedTypeReferenceDirectives;let q=this.view.getUint32(this.extendedDataOffset+24,!0),Z=this.readFileReferences(q);return this._cachedTypeReferenceDirectives=Z,Z}get libReferenceDirectives(){if(this._cachedLibReferenceDirectives!==void 0)return this._cachedLibReferenceDirectives;let q=this.view.getUint32(this.extendedDataOffset+28,!0),Z=this.readFileReferences(q);return this._cachedLibReferenceDirectives=Z,Z}get imports(){if(this._cachedImports!==void 0)return this._cachedImports;let q=this.view.getUint32(this.extendedDataOffset+32,!0),Z=this.readNodeIndexArray(q);return this._cachedImports=Z,Z}get moduleAugmentations(){if(this._cachedModuleAugmentations!==void 0)return this._cachedModuleAugmentations;let q=this.view.getUint32(this.extendedDataOffset+36,!0),Z=this.readNodeIndexArray(q);return this._cachedModuleAugmentations=Z,Z}get ambientModuleNames(){if(this._cachedAmbientModuleNames!==void 0)return this._cachedAmbientModuleNames;let q=this.view.getUint32(this.extendedDataOffset+40,!0),Z=this.readStringArray(q);return this._cachedAmbientModuleNames=Z,Z}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&m1.Ambient)!==0}get text(){if(this._cachedText!==void 0)return this._cachedText;let q=super.text;return this._cachedText=q,q}getLineStarts(){return this._lineStarts??=av(this.text??"")}getLineAndCharacterOfPosition(q){let Z=this.getLineStarts(),Q=M28(Z,q);return{line:Q,character:q-Z[Q]}}getPositionOfLineAndCharacter(q,Z){let Q=this.getLineStarts();if(q<0||q>=Q.length)throw Error(`Bad line number. Line: ${q}, lineStarts.length: ${Q.length}`);return Q[q]+Z}}});function P28(q){return q===47||q===92}function $Y(q){return q>=97&&q<=122||q>=65&&q<=90}function O28(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 UY(q){let Z=kk(q);return Z<0?~Z:Z}function kk(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($Y(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,H=q.indexOf("/",Y);if(H!==-1){let J=q.slice(0,Q),X=q.slice(Y,H);if(J==="file"&&(X===""||X==="localhost")&&$Y(q.charCodeAt(H+1))){let W=O28(q,H+2);if(W!==-1){if(q.charCodeAt(W)===47)return~(W+1);if(W===q.length)return~W}}return~(H+1)}return~q.length}return 0}function RY(q){return q.length>0&&P28(q.charCodeAt(q.length-1))}function Kk(q){if(RY(q))return q.substr(0,q.length-1);return q}function Nk(q){if(!RY(q))return q+"/";return q}function I4(q){return q.includes("\\")?q.replace(L28,"/"):q}function w28(q,...Z){if(q)q=I4(q);for(let Q of Z){if(!Q)continue;if(Q=I4(Q),!q||UY(Q)!==0)q=Q;else q=Nk(q)+Q}return q}function Sk(q){if(!fk.test(q))return q;let Z=q.replace(/\/\.\//g,"/");if(Z.startsWith("./"))Z=Z.slice(2);if(Z!==q){if(q=Z,!fk.test(q))return q}return}function uk(q,Z){let Q=UY(q);if(Q===0&&Z)q=w28(Z,q),Q=UY(q);else q=I4(q);let Y=Sk(q);if(Y!==void 0)return Y.length>Q?Kk(Y):Y;let H=q.length,J=q.substring(0,Q),X,W=Q,$=W,R=W,z=Q!==0;while(W<H){$=W;let O=q.charCodeAt(W);while(O===47&&W+1<H)W++,O=q.charCodeAt(W);if(W>$)X??=q.substring(0,$-1),$=W;let P=q.indexOf("/",W+1);if(P===-1)P=H;let w=P-$;if(w===1&&q.charCodeAt(W)===46)X??=q.substring(0,R);else if(w===2&&q.charCodeAt(W)===46&&q.charCodeAt(W+1)===46)if(!z)if(X!==void 0)X+=X.length===Q?"..":"/..";else R=W+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 v=X.lastIndexOf("/");if(v!==-1)X=X.substring(0,Math.max(Q,v));else X=J;if(X.length===Q)z=Q!==0}else if(X!==void 0){if(X.length!==Q)X+="/";z=!0,X+=q.substring($,P)}else z=!0,R=P;W=P+1}return X??(H>Q?Kk(q):q)}function A28(q){q=I4(q);let Z=Sk(q);if(Z!==void 0)return Z;return Z=uk(q,""),Z&&RY(q)?Nk(Z):Z}function I28(q){return kk(q)>0}function bk(q,Z,Q){let Y=I28(q)?A28(q):uk(q,Z);return Q(Y)}function hk(q){return q?j28:D28}function j28(q){return q}function D28(q){return q.toLowerCase()}function _k(q){return q.startsWith(C28)}function E28(q){return q.startsWith("^/")}function yk(q){if(q.length>=2&&$Y(q.charCodeAt(0))&&q.charCodeAt(1)===58)return[q.substring(0,2).toLowerCase(),q.substring(2),!0];return["",q,!1]}function vk(q){let Z=q;for(let[Q,Y]of Object.entries(F28))Z=Z.replaceAll(Q,Y);return Z}function zY(q){if(_k(q))return q;if(E28(q)){let J=q.substring(2),X=J.indexOf("/");if(X===-1)throw Error("invalid file name: "+q);let W=J.substring(0,X),$=J.substring(X+1),R=$.indexOf("/");if(R===-1)throw Error("invalid file name: "+q);let z=$.substring(0,R),O=$.substring(R+1);if(z==="ts-nul-authority")return W+":"+O;return W+"://"+z+"/"+O}let[Z,Q]=yk(q);if(Z!=="")Z="/"+vk(Z);if(Q.startsWith("//"))Q=Q.substring(2);let H=Q.split("/").map((J)=>vk(encodeURIComponent(J)));return"file://"+Z+H.join("/")}function j4(q){if(_k(q))return q;if(q.startsWith("file://")){let J;try{J=new URL(q)}catch{throw Error("invalid file URI: "+q)}if(J.host!=="")return"//"+J.host+J.pathname;let X=decodeURIComponent(J.pathname);if(X.length>=3&&X.charCodeAt(0)===47){let[W,$,R]=yk(X.substring(1));if(R)return 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),H="ts-nul-authority";if(Y.startsWith("//")){let J=Y.substring(2),X=J.indexOf("/");if(X===-1)throw Error("invalid URI: "+q);H=J.substring(0,X),Y=J.substring(X+1)}return"^/"+Q+"/"+H+"/"+Y}var L28,fk,C28="bundled:///",F28;var u5=w8(()=>{L28=/\\/g,fk=/\/\/|(?:^|\/)\.\.?(?:$|\/)/;F28={":":"%3A","/":"%2F","?":"%3F","#":"%23","[":"%5B","]":"%5D","@":"%40","!":"%21",$:"%24","&":"%26","'":"%27","(":"%28",")":"%29","*":"%2A","+":"%2B",",":"%2C",";":"%3B","=":"%3D"," ":"%20"}});function BY(q){if(typeof q==="string")return q;return j4(q.uri)}function gk(q){let{openProject:Z,openProjects:Q,...Y}=q??{},H=Z!==void 0?[BY(Z),...Q??[]]:Q;return{...Y,...H!==void 0?{openProjects:H}:{}}}var xk=w8(()=>{u5()});function b5(q,Z){return`${q}:${Z}`}class LY{cache=new Map;snapshotProjectPaths=new Map;getRetained(q,Z,Q){let Y=this.cache.get(q);if(!Y)return;let H=b5(Z,Q);return Y.find((X)=>X.refs.has(H))?.file}set(q,Z,Q,Y,H,J){let X=this.cache.get(q);if(!X)X=[],this.cache.set(q,X);let W=b5(H,J),$=X.find((R)=>R.parseOptionsKey===Q&&R.contentHash===Y);if($)return $.refs.add(W),this.trackPath(H,J,q),$.file;return X.push({file:Z,contentHash:Y,parseOptionsKey:Q,refs:new Set([W])}),this.trackPath(H,J,q),Z}retainForSnapshot(q,Z,Q){let Y=this.snapshotProjectPaths.get(Z);if(!Y)return;let H=new Set(Q?.removedProjects??[]),J=Q?.changedProjects??{};for(let[X,W]of Y){if(H.has(X))continue;let $=J[X],R;if($){R=new Set;for(let P of $.changedFiles??[])R.add(P);for(let P of $.deletedFiles??[])R.add(P)}let z=b5(Z,X),O=b5(q,X);for(let P of W){if(R?.has(P))continue;let w=this.cache.get(P);if(!w)continue;for(let v of w)if(v.refs.has(z))v.refs.add(O),this.trackPath(q,X,P)}}}releaseSnapshot(q){let Z=this.snapshotProjectPaths.get(q);if(!Z)return;for(let[Q,Y]of Z){let H=b5(q,Q);for(let J of Y){let X=this.cache.get(J);if(!X)continue;for(let W=X.length-1;W>=0;W--)if(X[W].refs.delete(H),X[W].refs.size===0)X.splice(W,1);if(X.length===0)this.cache.delete(J)}}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 H=Y.get(Z);if(!H)H=new Set,Y.set(Z,H);H.add(Q)}clear(){this.cache.clear(),this.snapshotProjectPaths.clear()}get size(){return this.cache.size}has(q){return this.cache.has(q)}}var o6=A((pk)=>{Object.defineProperty(pk,"__esModule",{value:!0});pk.boolean=T28;pk.string=lk;pk.number=f28;pk.error=K28;pk.func=v28;pk.array=mk;pk.stringArray=k28;function T28(q){return q===!0||q===!1}function lk(q){return typeof q==="string"||q instanceof String}function f28(q){return typeof q==="number"||q instanceof Number}function K28(q){return q instanceof Error}function v28(q){return typeof q==="function"}function mk(q){return Array.isArray(q)}function k28(q){return mk(q)&&q.every((Z)=>lk(Z))}});var wY=A((W8)=>{var g28=W8&&W8.__createBinding||(Object.create?function(q,Z,Q,Y){if(Y===void 0)Y=Q;var H=Object.getOwnPropertyDescriptor(Z,Q);if(!H||("get"in H?!Z.__esModule:H.writable||H.configurable))H={enumerable:!0,get:function(){return Z[Q]}};Object.defineProperty(q,Y,H)}:function(q,Z,Q,Y){if(Y===void 0)Y=Q;q[Y]=Z[Q]}),x28=W8&&W8.__setModuleDefault||(Object.create?function(q,Z){Object.defineProperty(q,"default",{enumerable:!0,value:Z})}:function(q,Z){q.default=Z}),l28=W8&&W8.__importStar||function(){var q=function(Z){return q=Object.getOwnPropertyNames||function(Q){var Y=[];for(var H in Q)if(Object.prototype.hasOwnProperty.call(Q,H))Y[Y.length]=H;return Y},q(Z)};return function(Z){if(Z&&Z.__esModule)return Z;var Q={};if(Z!=null){for(var Y=q(Z),H=0;H<Y.length;H++)if(Y[H]!=="default")g28(Q,Z,Y[H])}return x28(Q,Z),Q}}();Object.defineProperty(W8,"__esModule",{value:!0});W8.Message=W8.NotificationType9=W8.NotificationType8=W8.NotificationType7=W8.NotificationType6=W8.NotificationType5=W8.NotificationType4=W8.NotificationType3=W8.NotificationType2=W8.NotificationType1=W8.NotificationType0=W8.NotificationType=W8.RequestType9=W8.RequestType8=W8.RequestType7=W8.RequestType6=W8.RequestType5=W8.RequestType4=W8.RequestType3=W8.RequestType2=W8.RequestType1=W8.RequestType=W8.RequestType0=W8.AbstractMessageSignature=W8.ParameterStructures=W8.ResponseError=W8.ErrorCodes=void 0;var V6=l28(o6()),PY;(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})(PY||(W8.ErrorCodes=PY={}));class OY extends Error{code;data;constructor(q,Z,Q){super(Z);this.code=V6.number(q)?q:PY.UnknownErrorCode,this.data=Q,Object.setPrototypeOf(this,OY.prototype)}toJson(){let q={code:this.code,message:this.message};if(this.data!==void 0)q.data=this.data;return q}}W8.ResponseError=OY;class a0{kind;static auto=new a0("auto");static byPosition=new a0("byPosition");static byName=new a0("byName");constructor(q){this.kind=q}static is(q){return q===a0.auto||q===a0.byName||q===a0.byPosition}toString(){return this.kind}}W8.ParameterStructures=a0;class Z0{method;numberOfParams;constructor(q,Z){this.method=q,this.numberOfParams=Z}get parameterStructures(){return a0.auto}}W8.AbstractMessageSignature=Z0;class rk extends Z0{_;constructor(q){super(q,0)}}W8.RequestType0=rk;class ik extends Z0{_parameterStructures;_;constructor(q,Z=a0.auto){super(q,1);this._parameterStructures=Z}get parameterStructures(){return this._parameterStructures}}W8.RequestType=ik;class dk extends Z0{_parameterStructures;_;constructor(q,Z=a0.auto){super(q,1);this._parameterStructures=Z}get parameterStructures(){return this._parameterStructures}}W8.RequestType1=dk;class sk extends Z0{_;constructor(q){super(q,2)}}W8.RequestType2=sk;class ak extends Z0{_;constructor(q){super(q,3)}}W8.RequestType3=ak;class ok extends Z0{_;constructor(q){super(q,4)}}W8.RequestType4=ok;class nk extends Z0{_;constructor(q){super(q,5)}}W8.RequestType5=nk;class tk extends Z0{_;constructor(q){super(q,6)}}W8.RequestType6=tk;class ek extends Z0{_;constructor(q){super(q,7)}}W8.RequestType7=ek;class qN extends Z0{_;constructor(q){super(q,8)}}W8.RequestType8=qN;class ZN extends Z0{_;constructor(q){super(q,9)}}W8.RequestType9=ZN;class QN extends Z0{_parameterStructures;_;constructor(q,Z=a0.auto){super(q,1);this._parameterStructures=Z}get parameterStructures(){return this._parameterStructures}}W8.NotificationType=QN;class YN extends Z0{_;constructor(q){super(q,0)}}W8.NotificationType0=YN;class HN extends Z0{_parameterStructures;_;constructor(q,Z=a0.auto){super(q,1);this._parameterStructures=Z}get parameterStructures(){return this._parameterStructures}}W8.NotificationType1=HN;class JN extends Z0{_;constructor(q){super(q,2)}}W8.NotificationType2=JN;class XN extends Z0{_;constructor(q){super(q,3)}}W8.NotificationType3=XN;class VN extends Z0{_;constructor(q){super(q,4)}}W8.NotificationType4=VN;class GN extends Z0{_;constructor(q){super(q,5)}}W8.NotificationType5=GN;class WN extends Z0{_;constructor(q){super(q,6)}}W8.NotificationType6=WN;class $N extends Z0{_;constructor(q){super(q,7)}}W8.NotificationType7=$N;class UN extends Z0{_;constructor(q){super(q,8)}}W8.NotificationType8=UN;class RN extends Z0{_;constructor(q){super(q,9)}}W8.NotificationType9=RN;var ck;(function(q){function Z(H){let J=H;return J&&V6.string(J.method)&&(V6.string(J.id)||V6.number(J.id))}q.isRequest=Z;function Q(H){let J=H;return J&&V6.string(J.method)&&H.id===void 0}q.isNotification=Q;function Y(H){let J=H;return J&&(J.result!==void 0||!!J.error)&&(V6.string(J.id)||V6.number(J.id)||J.id===null)}q.isResponse=Y})(ck||(W8.Message=ck={}))});var IY=A((BN)=>{Object.defineProperty(BN,"__esModule",{value:!0});BN.LRUCache=BN.LinkedMap=BN.Touch=void 0;var N0;(function(q){q.None=0,q.First=1,q.AsOld=q.First,q.Last=2,q.AsNew=q.Last})(N0||(BN.Touch=N0={}));class AY{[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=N0.None){let Q=this._map.get(q);if(!Q)return;if(Z!==N0.None)this.touch(Q,Z);return Q.value}set(q,Z,Q=N0.None){let Y=this._map.get(q);if(Y){if(Y.value=Z,Q!==N0.None)this.touch(Y,Q)}else{switch(Y={key:q,value:Z,next:void 0,previous:void 0},Q){case N0.None:this.addItemLast(Y);break;case N0.First:this.addItemFirst(Y);break;case N0.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!==N0.First&&Z!==N0.Last)return;if(Z===N0.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===N0.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)}}BN.LinkedMap=AY;class zN extends AY{_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=N0.AsNew){return super.get(q,Z)}peek(q){return super.get(q,N0.None)}set(q,Z){return super.set(q,Z,N0.Last),this.checkTrim(),this}checkTrim(){if(this.size>this._limit)this.trimOld(Math.round(this._limit*this._ratio))}}BN.LRUCache=zN});var wN=A((PN)=>{Object.defineProperty(PN,"__esModule",{value:!0});PN.Disposable=void 0;var LN;(function(q){function Z(Q){return{dispose:Q}}q.create=Z})(LN||(PN.Disposable=LN={}))});var f9=A((AN)=>{Object.defineProperty(AN,"__esModule",{value:!0});var jY;function DY(){if(jY===void 0)throw Error("No runtime abstraction layer installed");return jY}(function(q){function Z(Q){if(Q===void 0)throw Error("No runtime abstraction layer provided");jY=Q}q.install=Z})(DY||(DY={}));AN.default=DY});var n6=A((K9)=>{var r28=K9&&K9.__importDefault||function(q){return q&&q.__esModule?q:{default:q}};Object.defineProperty(K9,"__esModule",{value:!0});K9.Emitter=K9.Event=void 0;var i28=r28(f9()),IN;(function(q){let Z={dispose(){}};q.None=function(){return Z}})(IN||(K9.Event=IN={}));class jN{_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,H=this._callbacks.length;Y<H;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 H=0,J=Q.length;H<J;H++)try{Z.push(Q[H].apply(Y[H],q))}catch(X){(0,i28.default)().console.error(X)}return Z}isEmpty(){return!this._callbacks||this._callbacks.length===0}dispose(){this._callbacks=void 0,this._contexts=void 0}}class CY{_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 jN;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=CY._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}}K9.Emitter=CY});var C4=A((r0)=>{var d28=r0&&r0.__createBinding||(Object.create?function(q,Z,Q,Y){if(Y===void 0)Y=Q;var H=Object.getOwnPropertyDescriptor(Z,Q);if(!H||("get"in H?!Z.__esModule:H.writable||H.configurable))H={enumerable:!0,get:function(){return Z[Q]}};Object.defineProperty(q,Y,H)}:function(q,Z,Q,Y){if(Y===void 0)Y=Q;q[Y]=Z[Q]}),s28=r0&&r0.__setModuleDefault||(Object.create?function(q,Z){Object.defineProperty(q,"default",{enumerable:!0,value:Z})}:function(q,Z){q.default=Z}),a28=r0&&r0.__importStar||function(){var q=function(Z){return q=Object.getOwnPropertyNames||function(Q){var Y=[];for(var H in Q)if(Object.prototype.hasOwnProperty.call(Q,H))Y[Y.length]=H;return Y},q(Z)};return function(Z){if(Z&&Z.__esModule)return Z;var Q={};if(Z!=null){for(var Y=q(Z),H=0;H<Y.length;H++)if(Y[H]!=="default")d28(Q,Z,Y[H])}return s28(Q,Z),Q}}(),o28=r0&&r0.__importDefault||function(q){return q&&q.__esModule?q:{default:q}};Object.defineProperty(r0,"__esModule",{value:!0});r0.CancellationTokenSource=r0.CancellationToken=void 0;var n28=o28(f9()),t28=a28(o6()),EY=n6(),D4;(function(q){q.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:EY.Event.None}),q.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:EY.Event.None});function Z(Q){let Y=Q;return Y&&(Y===q.None||Y===q.Cancelled||t28.boolean(Y.isCancellationRequested)&&!!Y.onCancellationRequested)}q.is=Z})(D4||(r0.CancellationToken=D4={}));var e28=Object.freeze(function(q,Z){let Q=(0,n28.default)().timer.setTimeout(q.bind(Z),0);return{dispose(){Q.dispose()}}});class FY{_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 e28;if(!this._emitter)this._emitter=new EY.Emitter;return this._emitter.event}dispose(){if(this._emitter)this._emitter.dispose(),this._emitter=void 0}}class DN{_token;get token(){if(!this._token)this._token=new FY;return this._token}cancel(){if(!this._token)this._token=D4.Cancelled;else this._token.cancel()}dispose(){if(!this._token)this._token=D4.None;else if(this._token instanceof FY)this._token.dispose()}}r0.CancellationTokenSource=DN});var vN=A((fN)=>{Object.defineProperty(fN,"__esModule",{value:!0});fN.SharedArrayReceiverStrategy=fN.SharedArraySenderStrategy=void 0;var qq8=C4(),h5;(function(q){q.Continue=0,q.Cancelled=1})(h5||(h5={}));class CN{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]=h5.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,h5.Cancelled)}cleanup(q){this.buffers.delete(q)}dispose(){this.buffers.clear()}}fN.SharedArraySenderStrategy=CN;class EN{data;constructor(q){this.data=new Int32Array(q,0,1)}get isCancellationRequested(){return Atomics.load(this.data,0)===h5.Cancelled}get onCancellationRequested(){throw Error("Cancellation over SharedArrayBuffer doesn't support cancellation events")}}class FN{token;constructor(q){this.token=new EN(q)}cancel(){}dispose(){}}class TN{kind="request";createCancellationTokenSource(q){let Z=q.$cancellationData;if(Z===void 0)return new qq8.CancellationTokenSource;return new FN(Z)}}fN.SharedArrayReceiverStrategy=TN});var TY=A((t6)=>{var Qq8=t6&&t6.__importDefault||function(q){return q&&q.__esModule?q:{default:q}};Object.defineProperty(t6,"__esModule",{value:!0});t6.Semaphore=void 0;var Yq8=Qq8(f9());class kN{_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,Yq8.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()}}}t6.Semaphore=kN});var uN=A((S0)=>{var Hq8=S0&&S0.__createBinding||(Object.create?function(q,Z,Q,Y){if(Y===void 0)Y=Q;var H=Object.getOwnPropertyDescriptor(Z,Q);if(!H||("get"in H?!Z.__esModule:H.writable||H.configurable))H={enumerable:!0,get:function(){return Z[Q]}};Object.defineProperty(q,Y,H)}:function(q,Z,Q,Y){if(Y===void 0)Y=Q;q[Y]=Z[Q]}),Jq8=S0&&S0.__setModuleDefault||(Object.create?function(q,Z){Object.defineProperty(q,"default",{enumerable:!0,value:Z})}:function(q,Z){q.default=Z}),Xq8=S0&&S0.__importStar||function(){var q=function(Z){return q=Object.getOwnPropertyNames||function(Q){var Y=[];for(var H in Q)if(Object.prototype.hasOwnProperty.call(Q,H))Y[Y.length]=H;return Y},q(Z)};return function(Z){if(Z&&Z.__esModule)return Z;var Q={};if(Z!=null){for(var Y=q(Z),H=0;H<Y.length;H++)if(Y[H]!=="default")Hq8(Q,Z,Y[H])}return Jq8(Q,Z),Q}}(),Vq8=S0&&S0.__importDefault||function(q){return q&&q.__esModule?q:{default:q}};Object.defineProperty(S0,"__esModule",{value:!0});S0.ReadableStreamMessageReader=S0.AbstractMessageReader=S0.MessageReader=void 0;var KY=Vq8(f9()),e6=Xq8(o6()),fY=n6(),Gq8=TY(),NN;(function(q){function Z(Q){let Y=Q;return Y&&e6.func(Y.listen)&&e6.func(Y.dispose)&&e6.func(Y.onError)&&e6.func(Y.onClose)&&e6.func(Y.onPartialMessage)}q.is=Z})(NN||(S0.MessageReader=NN={}));class kY{errorEmitter;closeEmitter;partialMessageEmitter;constructor(){this.errorEmitter=new fY.Emitter,this.closeEmitter=new fY.Emitter,this.partialMessageEmitter=new fY.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: ${e6.string(q.message)?q.message:"unknown"}`)}}S0.AbstractMessageReader=kY;var vY;(function(q){function Z(Q){let Y,H,J,X=new Map,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)J=Q.contentDecoder,X.set(J.name,J);if(Q.contentDecoders!==void 0)for(let R of Q.contentDecoders)X.set(R.name,R);if(Q.contentTypeDecoder!==void 0)W=Q.contentTypeDecoder,$.set(W.name,W);if(Q.contentTypeDecoders!==void 0)for(let R of Q.contentTypeDecoders)$.set(R.name,R)}if(W===void 0)W=(0,KY.default)().applicationJson.decoder,$.set(W.name,W);return{charset:Y,contentDecoder:J,contentDecoders:X,contentTypeDecoder:W,contentTypeDecoders:$}}q.fromOptions=Z})(vY||(vY={}));class SN extends kY{readable;options;callback;nextMessageLength;messageToken;buffer;partialMessageTimer;_partialMessageTimeout;readSemaphore;constructor(q,Z){super();this.readable=q,this.options=vY.fromOptions(Z),this.buffer=(0,KY.default)().messageBuffer.create(this.options.charset),this._partialMessageTimeout=1e4,this.nextMessageLength=-1,this.messageToken=0,this.readSemaphore=new Gq8.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 H=parseInt(Y);if(isNaN(H)){this.fireError(Error(`Content-Length value must be a number. Got ${Y}`));return}this.nextMessageLength=H}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,KY.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)}}S0.ReadableStreamMessageReader=SN});var xN=A((u0)=>{var Wq8=u0&&u0.__createBinding||(Object.create?function(q,Z,Q,Y){if(Y===void 0)Y=Q;var H=Object.getOwnPropertyDescriptor(Z,Q);if(!H||("get"in H?!Z.__esModule:H.writable||H.configurable))H={enumerable:!0,get:function(){return Z[Q]}};Object.defineProperty(q,Y,H)}:function(q,Z,Q,Y){if(Y===void 0)Y=Q;q[Y]=Z[Q]}),$q8=u0&&u0.__setModuleDefault||(Object.create?function(q,Z){Object.defineProperty(q,"default",{enumerable:!0,value:Z})}:function(q,Z){q.default=Z}),Uq8=u0&&u0.__importStar||function(){var q=function(Z){return q=Object.getOwnPropertyNames||function(Q){var Y=[];for(var H in Q)if(Object.prototype.hasOwnProperty.call(Q,H))Y[Y.length]=H;return Y},q(Z)};return function(Z){if(Z&&Z.__esModule)return Z;var Q={};if(Z!=null){for(var Y=q(Z),H=0;H<Y.length;H++)if(Y[H]!=="default")Wq8(Q,Z,Y[H])}return $q8(Q,Z),Q}}(),Rq8=u0&&u0.__importDefault||function(q){return q&&q.__esModule?q:{default:q}};Object.defineProperty(u0,"__esModule",{value:!0});u0.WriteableStreamMessageWriter=u0.AbstractMessageWriter=u0.MessageWriter=void 0;var bN=Rq8(f9()),_5=Uq8(o6()),zq8=TY(),hN=n6(),Bq8="Content-Length: ",_N=`\r
|
|
22
|
-
`,yN;(function(q){function Z(Q){let Y=Q;return Y&&_5.func(Y.dispose)&&_5.func(Y.onClose)&&_5.func(Y.onError)&&_5.func(Y.write)}q.is=Z})(yN||(u0.MessageWriter=yN={}));class SY{errorEmitter;closeEmitter;constructor(){this.errorEmitter=new hN.Emitter,this.closeEmitter=new hN.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: ${_5.string(q.message)?q.message:"unknown"}`)}}u0.AbstractMessageWriter=SY;var NY;(function(q){function Z(Q){if(Q===void 0||typeof Q==="string")return{charset:Q??"utf-8",contentTypeEncoder:(0,bN.default)().applicationJson.encoder};else return{charset:Q.charset??"utf-8",contentEncoder:Q.contentEncoder,contentTypeEncoder:Q.contentTypeEncoder??(0,bN.default)().applicationJson.encoder}}q.fromOptions=Z})(NY||(NY={}));class gN extends SY{writable;options;errorCount;writeSemaphore;constructor(q,Z){super();this.writable=q,this.options=NY.fromOptions(Z),this.errorCount=0,this.writeSemaphore=new zq8.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(Bq8,Q.byteLength.toString(),_N),Y.push(_N),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()}}u0.WriteableStreamMessageWriter=gN});var cN=A((mN)=>{Object.defineProperty(mN,"__esModule",{value:!0});mN.AbstractMessageBuffer=void 0;var Mq8=13,Lq8=10,Pq8=`\r
|
|
23
|
-
`;class lN{_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,H=0;q:while(Q<this._chunks.length){let $=this._chunks[Q];Y=0;while(Y<$.length){switch($[Y]){case Mq8:switch(Z){case 0:Z=1;break;case 2:Z=3;break;default:Z=0}break;case Lq8:switch(Z){case 1:Z=2;break;case 3:Z=4,Y++;break q;default:Z=0}break;default:Z=0}Y++}H+=$.byteLength,Q++}if(Z!==4)return;let J=this._read(H+Y),X=new Map,W=this.toString(J,"ascii").split(Pq8);if(W.length<2)return X;for(let $=0;$<W.length-2;$++){let R=W[$],z=R.indexOf(":");if(z===-1)throw Error(`Message header must separate key and value using ':'
|
|
24
|
-
${R}`);let O=R.substr(0,z),P=R.substr(z+1).trim();X.set(q?O.toLowerCase():O,P)}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 H=this._chunks[0];return this._chunks.shift(),this._totalLength-=q,this.asNative(H)}if(this._chunks[0].byteLength>q){let H=this._chunks[0],J=this.asNative(H,q);return this._chunks[0]=H.slice(q),this._totalLength-=q,J}let Z=this.allocNative(q),Q=0,Y=0;while(q>0){let H=this._chunks[Y];if(H.byteLength>q){let J=H.slice(0,q);Z.set(J,Q),Q+=q,this._chunks[Y]=H.slice(q),this._totalLength-=q,q-=q}else Z.set(H,Q),Q+=H.byteLength,this._chunks.shift(),this._totalLength-=H.byteLength,q-=H.byteLength}return Z}}mN.AbstractMessageBuffer=lN});var aN=A((I8)=>{var Oq8=I8&&I8.__createBinding||(Object.create?function(q,Z,Q,Y){if(Y===void 0)Y=Q;var H=Object.getOwnPropertyDescriptor(Z,Q);if(!H||("get"in H?!Z.__esModule:H.writable||H.configurable))H={enumerable:!0,get:function(){return Z[Q]}};Object.defineProperty(q,Y,H)}:function(q,Z,Q,Y){if(Y===void 0)Y=Q;q[Y]=Z[Q]}),wq8=I8&&I8.__setModuleDefault||(Object.create?function(q,Z){Object.defineProperty(q,"default",{enumerable:!0,value:Z})}:function(q,Z){q.default=Z}),Aq8=I8&&I8.__importStar||function(){var q=function(Z){return q=Object.getOwnPropertyNames||function(Q){var Y=[];for(var H in Q)if(Object.prototype.hasOwnProperty.call(Q,H))Y[Y.length]=H;return Y},q(Z)};return function(Z){if(Z&&Z.__esModule)return Z;var Q={};if(Z!=null){for(var Y=q(Z),H=0;H<Y.length;H++)if(Y[H]!=="default")Oq8(Q,Z,Y[H])}return wq8(Q,Z),Q}}(),Iq8=I8&&I8.__importDefault||function(q){return q&&q.__esModule?q:{default:q}};Object.defineProperty(I8,"__esModule",{value:!0});I8.ConnectionOptions=I8.MessageStrategy=I8.CancellationStrategy=I8.CancellationSenderStrategy=I8.CancellationReceiverStrategy=I8.RequestCancellationReceiverStrategy=I8.IdCancellationReceiverStrategy=I8.ConnectionStrategy=I8.ConnectionError=I8.ConnectionErrors=I8.LogTraceNotification=I8.SetTraceNotification=I8.TraceFormat=I8.TraceValues=I8.TraceValue=I8.Trace=I8.NullLogger=I8.ProgressType=I8.ProgressToken=void 0;I8.createMessageConnection=jq8;var rN=Iq8(f9()),G0=Aq8(o6()),T8=wY(),iN=IY(),y5=n6(),uY=C4(),l5;(function(q){q.type=new T8.NotificationType("$/cancelRequest")})(l5||(l5={}));var bY;(function(q){function Z(Q){return typeof Q==="string"||typeof Q==="number"}q.is=Z})(bY||(I8.ProgressToken=bY={}));var g5;(function(q){q.type=new T8.NotificationType("$/progress")})(g5||(g5={}));class sN{__;_pr;constructor(){}}I8.ProgressType=sN;var hY;(function(q){function Z(Q){return G0.func(Q)}q.is=Z})(hY||(hY={}));I8.NullLogger=Object.freeze({error:()=>{},warn:()=>{},info:()=>{},log:()=>{}});var m8;(function(q){q[q.Off=0]="Off",q[q.Messages=1]="Messages",q[q.Compact=2]="Compact",q[q.Verbose=3]="Verbose"})(m8||(I8.Trace=m8={}));var _Y;(function(q){q.Off="off",q.Messages="messages",q.Compact="compact",q.Verbose="verbose"})(_Y||(I8.TraceValue=_Y={}));I8.TraceValues=_Y;(function(q){function Z(Y){if(!G0.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})(m8||(I8.Trace=m8={}));var o0;(function(q){q.Text="text",q.JSON="json"})(o0||(I8.TraceFormat=o0={}));(function(q){function Z(Q){if(!G0.string(Q))return q.Text;if(Q=Q.toLowerCase(),Q==="json")return q.JSON;else return q.Text}q.fromString=Z})(o0||(I8.TraceFormat=o0={}));var yY;(function(q){q.type=new T8.NotificationType("$/setTrace")})(yY||(I8.SetTraceNotification=yY={}));var E4;(function(q){q.type=new T8.NotificationType("$/logTrace")})(E4||(I8.LogTraceNotification=E4={}));var x5;(function(q){q[q.Closed=1]="Closed",q[q.Disposed=2]="Disposed",q[q.AlreadyListening=3]="AlreadyListening"})(x5||(I8.ConnectionErrors=x5={}));class q7 extends Error{code;constructor(q,Z){super(Z);this.code=q,Object.setPrototypeOf(this,q7.prototype)}}I8.ConnectionError=q7;var gY;(function(q){function Z(Q){let Y=Q;return Y&&G0.func(Y.cancelUndispatched)}q.is=Z})(gY||(I8.ConnectionStrategy=gY={}));var F4;(function(q){function Z(Q){let Y=Q;return Y&&(Y.kind===void 0||Y.kind==="id")&&G0.func(Y.createCancellationTokenSource)&&(Y.dispose===void 0||G0.func(Y.dispose))}q.is=Z})(F4||(I8.IdCancellationReceiverStrategy=F4={}));var xY;(function(q){function Z(Q){let Y=Q;return Y&&Y.kind==="request"&&G0.func(Y.createCancellationTokenSource)&&(Y.dispose===void 0||G0.func(Y.dispose))}q.is=Z})(xY||(I8.RequestCancellationReceiverStrategy=xY={}));var T4;(function(q){q.Message=Object.freeze({createCancellationTokenSource(Q){return new uY.CancellationTokenSource}});function Z(Q){return F4.is(Q)||xY.is(Q)}q.is=Z})(T4||(I8.CancellationReceiverStrategy=T4={}));var f4;(function(q){q.Message=Object.freeze({sendCancellation(Q,Y){return Q.sendNotification(l5.type,{id:Y})},cleanup(Q){}});function Z(Q){let Y=Q;return Y&&G0.func(Y.sendCancellation)&&G0.func(Y.cleanup)}q.is=Z})(f4||(I8.CancellationSenderStrategy=f4={}));var K4;(function(q){q.Message=Object.freeze({receiver:T4.Message,sender:f4.Message});function Z(Q){let Y=Q;return Y&&T4.is(Y.receiver)&&f4.is(Y.sender)}q.is=Z})(K4||(I8.CancellationStrategy=K4={}));var v4;(function(q){function Z(Q){let Y=Q;return Y&&G0.func(Y.handleMessage)}q.is=Z})(v4||(I8.MessageStrategy=v4={}));var dN;(function(q){function Z(Q){let Y=Q;return Y&&(K4.is(Y.cancellationStrategy)||gY.is(Y.connectionStrategy)||v4.is(Y.messageStrategy)||G0.number(Y.maxParallelism))}q.is=Z})(dN||(I8.ConnectionOptions=dN={}));var T1;(function(q){q[q.New=1]="New",q[q.Listening=2]="Listening",q[q.Closed=3]="Closed",q[q.Disposed=4]="Disposed"})(T1||(T1={}));function jq8(q,Z,Q,Y){let H=Q!==void 0?Q:I8.NullLogger,J=0,X=0,W=0,$="2.0",R=Y?.maxParallelism??-1,z=0,O=void 0,P=new Map,w=void 0,v=new Map,F=new Map,h,m=new iN.LinkedMap,_=new Map,E=new Set,u=new Map,S=m8.Off,s=o0.Text,b,G=T1.New,U=new y5.Emitter,B=new y5.Emitter,M=new y5.Emitter,C=new y5.Emitter,T=new y5.Emitter,D=Y&&Y.cancellationStrategy?Y.cancellationStrategy:K4.Message;function f(K){return}function p(){return G===T1.Listening}function k(){return G===T1.Closed}function o(){return G===T1.Disposed}function A8(){if(G===T1.New||G===T1.Listening)G=T1.Closed,B.fire(void 0)}function z8(K){U.fire([K,void 0,void 0])}function D8(K){U.fire(K)}q.onClose(A8),q.onError(z8),Z.onClose(A8),Z.onError(D8);function Z8(K){if(K===null)throw Error("Can't send requests with id null since the response can't be correlated.");return"req-"+K.toString()}function S8(K){if(K===null)return"res-unknown-"+(++W).toString();else return"res-"+K.toString()}function H8(){return"not-"+(++X).toString()}function q8(K,r){if(T8.Message.isRequest(r))K.set(Z8(r.id),r);else if(T8.Message.isResponse(r))if(R===-1)K.set(S8(r.id),r);else a(r);else K.set(H8(),r)}function v8(){if(h||m.size===0)return;if(R!==-1&&z>=R)return;h=(0,rN.default)().timer.setImmediate(async()=>{if(h=void 0,m.size===0)return;if(R!==-1&&z>=R)return;let K=m.shift(),r;try{z++;let t=Y?.messageStrategy;if(v4.is(t))r=t.handleMessage(K,f8);else r=f8(K)}catch(t){H.error(`Processing message queue failed: ${t.toString()}`)}finally{if(r instanceof Promise)r.then(()=>{z--,v8()}).catch((t)=>{H.error(`Processing message queue failed: ${t.toString()}`)});else z--;v8()}})}async function f8(K){if(T8.Message.isRequest(K))return L8(K);else if(T8.Message.isNotification(K))return $8(K);else if(T8.Message.isResponse(K))return a(K);else return y8(K)}let i=(K)=>{try{if(T8.Message.isNotification(K)&&K.method===l5.type.method){let r=K.params.id,t=Z8(r),U8=m.get(t);if(T8.Message.isRequest(U8)){let Q0=Y?.connectionStrategy,i8=Q0&&Q0.cancelUndispatched?Q0.cancelUndispatched(U8,f):f(U8);if(i8&&(i8.error!==void 0||i8.result!==void 0)){m.delete(t),u.delete(r),i8.id=U8.id,x0(i8,K.method,Date.now()),Z.write(i8).catch(()=>H.error("Sending response for canceled message failed."));return}}let l8=u.get(r);if(l8!==void 0){l8.cancel(),i4(K);return}else E.add(r)}q8(m,K)}finally{v8()}};async function L8(K){if(o())return Promise.resolve();function r(j0,f0,W0){let $0={jsonrpc:$,id:K.id};if(j0 instanceof T8.ResponseError)$0.error=j0.toJson();else $0.result=j0===void 0?null:j0;return x0($0,f0,W0),Z.write($0)}function t(j0,f0,W0){let $0={jsonrpc:$,id:K.id,error:j0.toJson()};return x0($0,f0,W0),Z.write($0)}fu(K);let U8=P.get(K.method),l8,Q0;if(U8)l8=U8.type,Q0=U8.handler;let i8=Date.now();if(Q0||O){let j0=K.id??String(Date.now()),f0=F4.is(D.receiver)?D.receiver.createCancellationTokenSource(j0):D.receiver.createCancellationTokenSource(K);if(K.id!==null&&E.has(K.id))f0.cancel();if(K.id!==null)u.set(j0,f0);try{let W0;if(Q0)if(K.params===void 0){if(l8!==void 0&&l8.numberOfParams!==0)return t(new T8.ResponseError(T8.ErrorCodes.InvalidParams,`Request ${K.method} defines ${l8.numberOfParams} params but received none.`),K.method,i8);W0=Q0(f0.token)}else if(Array.isArray(K.params)){if(l8!==void 0&&l8.parameterStructures===T8.ParameterStructures.byName)return t(new T8.ResponseError(T8.ErrorCodes.InvalidParams,`Request ${K.method} defines parameters by name but received parameters by position`),K.method,i8);W0=Q0(...K.params,f0.token)}else{if(l8!==void 0&&l8.parameterStructures===T8.ParameterStructures.byPosition)return t(new T8.ResponseError(T8.ErrorCodes.InvalidParams,`Request ${K.method} defines parameters by position but received parameters by name`),K.method,i8);W0=Q0(K.params,f0.token)}else if(O)W0=O(K.method,K.params,f0.token);let $0=await W0;await r($0,K.method,i8)}catch(W0){if(W0 instanceof T8.ResponseError)await r(W0,K.method,i8);else if(W0&&G0.string(W0.message))await t(new T8.ResponseError(T8.ErrorCodes.InternalError,`Request ${K.method} failed with message: ${W0.message}`),K.method,i8);else await t(new T8.ResponseError(T8.ErrorCodes.InternalError,`Request ${K.method} failed unexpectedly without providing any details.`),K.method,i8)}finally{u.delete(j0)}}else await t(new T8.ResponseError(T8.ErrorCodes.MethodNotFound,`Unhandled method ${K.method}`),K.method,i8)}function a(K){if(o())return;if(K.id===null)if(K.error)H.error(`Received response message without id: Error is:
|
|
25
|
-
${JSON.stringify(K.error,void 0,4)}`);else H.error("Received response message without id. No further error information provided.");else{let r=K.id,t=_.get(r);if(Ku(K,t),t!==void 0){_.delete(r);try{if(K.error){let U8=K.error;t.reject(new T8.ResponseError(U8.code,U8.message,U8.data))}else if(K.result!==void 0)t.resolve(K.result);else throw Error("Should never happen.")}catch(U8){if(U8.message)H.error(`Response handler '${t.method}' failed with message: ${U8.message}`);else H.error(`Response handler '${t.method}' failed unexpectedly.`)}}}}async function $8(K){if(o())return;let r=void 0,t;if(K.method===l5.type.method){let U8=K.params.id;E.delete(U8),i4(K);return}else{let U8=v.get(K.method);if(U8)t=U8.handler,r=U8.type}if(t||w)try{if(i4(K),t)if(K.params===void 0){if(r!==void 0){if(r.numberOfParams!==0&&r.parameterStructures!==T8.ParameterStructures.byName)H.error(`Notification ${K.method} defines ${r.numberOfParams} params but received none.`)}await t()}else if(Array.isArray(K.params)){let U8=K.params;if(K.method===g5.type.method&&U8.length===2&&bY.is(U8[0]))await t({token:U8[0],value:U8[1]});else{if(r!==void 0){if(r.parameterStructures===T8.ParameterStructures.byName)H.error(`Notification ${K.method} defines parameters by name but received parameters by position`);if(r.numberOfParams!==K.params.length)H.error(`Notification ${K.method} defines ${r.numberOfParams} params but received ${U8.length} arguments`)}await t(...U8)}}else{if(r!==void 0&&r.parameterStructures===T8.ParameterStructures.byPosition)H.error(`Notification ${K.method} defines parameters by position but received parameters by name`);await t(K.params)}else if(w)await w(K.method,K.params)}catch(U8){if(U8.message)H.error(`Notification handler '${K.method}' failed with message: ${U8.message}`);else H.error(`Notification handler '${K.method}' failed unexpectedly.`)}else M.fire(K)}function y8(K){if(!K){H.error("Received empty message.");return}H.error(`Received message which is neither a response nor a notification message:
|
|
26
|
-
${JSON.stringify(K,null,4)}`);let r=K;if(G0.string(r.id)||G0.number(r.id)){let t=r.id,U8=_.get(t);if(U8)U8.reject(Error("The received response has neither a result nor an error property."))}}function x8(K){if(K===void 0||K===null)return;switch(S){case m8.Verbose:return JSON.stringify(K,null,4);case m8.Compact:return JSON.stringify(K);default:return}}function r8(K){if(S===m8.Off||!b)return;if(s===o0.Text){let r=void 0;if((S===m8.Verbose||S===m8.Compact)&&K.params)r=`Params: ${x8(K.params)}`;b.log(`Sending request '${K.method} - (${K.id})'.`,r)}else U6("send-request",K)}function t0(K){if(S===m8.Off||!b)return;if(s===o0.Text){let r=void 0;if(S===m8.Verbose||S===m8.Compact)if(K.params)r=`Params: ${x8(K.params)}`;else r="No parameters provided.";b.log(`Sending notification '${K.method}'.`,r)}else U6("send-notification",K)}function x0(K,r,t){if(S===m8.Off||!b)return;if(s===o0.Text){let U8=void 0;if(S===m8.Verbose||S===m8.Compact){if(K.error&&K.error.data)U8=`Error data: ${x8(K.error.data)}`;else if(K.result)U8=`Result: ${x8(K.result)}`;else if(K.error===void 0)U8="No result returned."}b.log(`Sending response '${r} - (${K.id})'. Processing request took ${Date.now()-t}ms`,U8)}else U6("send-response",K)}function fu(K){if(S===m8.Off||!b)return;if(s===o0.Text){let r=void 0;if((S===m8.Verbose||S===m8.Compact)&&K.params)r=`Params: ${x8(K.params)}`;b.log(`Received request '${K.method} - (${K.id})'.`,r)}else U6("receive-request",K)}function i4(K){if(S===m8.Off||!b||K.method===E4.type.method)return;if(s===o0.Text){let r=void 0;if(S===m8.Verbose||S===m8.Compact)if(K.params)r=`Params: ${x8(K.params)}`;else r="No parameters provided.";b.log(`Received notification '${K.method}'.`,r)}else U6("receive-notification",K)}function Ku(K,r){if(S===m8.Off||!b)return;if(s===o0.Text){let t=void 0;if(S===m8.Verbose||S===m8.Compact){if(K.error&&K.error.data)t=`Error data: ${x8(K.error.data)}`;else if(K.result)t=`Result: ${x8(K.result)}`;else if(K.error===void 0)t="No result returned."}if(r){let U8=K.error?` Request failed: ${K.error.message} (${K.error.code}).`:"";b.log(`Received response '${r.method} - (${K.id})' in ${Date.now()-r.timerStart}ms.${U8}`,t)}else b.log(`Received response ${K.id} without active response promise.`,t)}else U6("receive-response",K)}function U6(K,r){if(!b||S===m8.Off)return;let t={isLSPMessage:!0,type:K,message:r,timestamp:Date.now()};b.log(t)}function G7(){if(k())throw new q7(x5.Closed,"Connection is closed.");if(o())throw new q7(x5.Disposed,"Connection is disposed.")}function vu(){if(p())throw new q7(x5.AlreadyListening,"Connection is already listening")}function ku(){if(!p())throw Error("Call listen() first.")}function W7(K){if(K===void 0)return null;else return K}function kH(K){if(K===null)return;else return K}function NH(K){return K!==void 0&&K!==null&&!Array.isArray(K)&&typeof K==="object"}function d4(K,r){switch(K){case T8.ParameterStructures.auto:if(NH(r))return kH(r);else return[W7(r)];case T8.ParameterStructures.byName:if(!NH(r))throw Error("Received parameters by name but param is not an object literal.");return kH(r);case T8.ParameterStructures.byPosition:return[W7(r)];default:throw Error(`Unknown parameter structure ${K.toString()}`)}}function SH(K,r){let t,U8=K.numberOfParams;switch(U8){case 0:t=void 0;break;case 1:t=d4(K.parameterStructures,r[0]);break;default:t=[];for(let l8=0;l8<r.length&&l8<U8;l8++)t.push(W7(r[l8]));if(r.length<U8)for(let l8=r.length;l8<U8;l8++)t.push(null);break}return t}let k9={sendNotification:(K,...r)=>{G7();let t,U8;if(G0.string(K)){t=K;let Q0=r[0],i8=0,j0=T8.ParameterStructures.auto;if(T8.ParameterStructures.is(Q0))i8=1,j0=Q0;let f0=r.length,W0=f0-i8;switch(W0){case 0:U8=void 0;break;case 1:U8=d4(j0,r[i8]);break;default:if(j0===T8.ParameterStructures.byName)throw Error(`Received ${W0} parameters for 'by Name' notification parameter structure.`);U8=r.slice(i8,f0).map(($0)=>W7($0));break}}else{let Q0=r;t=K.method,U8=SH(K,Q0)}let l8={jsonrpc:$,method:t,params:U8};return t0(l8),Z.write(l8).catch((Q0)=>{throw H.error("Sending notification failed."),Q0})},onNotification:(K,r)=>{G7();let t;if(G0.func(K))w=K;else if(r)if(G0.string(K))t=K,v.set(K,{type:void 0,handler:r});else t=K.method,v.set(K.method,{type:K,handler:r});return{dispose:()=>{if(t!==void 0){if(v.get(t)?.handler===r)v.delete(t)}else if(w===K)w=void 0}}},onProgress:(K,r,t)=>{if(F.has(r))throw Error(`Progress handler for token ${r} already registered`);return F.set(r,t),{dispose:()=>{if(F.get(r)===t)F.delete(r)}}},sendProgress:(K,r,t)=>{return k9.sendNotification(g5.type,{token:r,value:t})},onUnhandledProgress:C.event,sendRequest:(K,...r)=>{G7(),ku();function t($0,O1){let c1=D.sender.sendCancellation($0,O1);if(c1===void 0)H.log(`Received no promise from cancellation strategy when cancelling id ${O1}`);else c1.catch(()=>{H.log(`Sending cancellation messages for id ${O1} failed.`)})}let U8,l8,Q0=void 0;if(G0.string(K)){U8=K;let $0=r[0],O1=r[r.length-1],c1=0,$7=T8.ParameterStructures.auto;if(T8.ParameterStructures.is($0))c1=1,$7=$0;let N9=r.length;if(uY.CancellationToken.is(O1))N9=N9-1,Q0=O1;let v1=N9-c1;switch(v1){case 0:l8=void 0;break;case 1:l8=d4($7,r[c1]);break;default:if($7===T8.ParameterStructures.byName)throw Error(`Received ${v1} parameters for 'by Name' request parameter structure.`);l8=r.slice(c1,N9).map((Nu)=>W7(Nu));break}}else{let $0=r;U8=K.method,l8=SH(K,$0);let O1=K.numberOfParams;Q0=uY.CancellationToken.is($0[O1])?$0[O1]:void 0}let i8=J++,j0,f0=!1;if(Q0!==void 0)if(Q0.isCancellationRequested)f0=!0;else j0=Q0.onCancellationRequested(()=>{t(k9,i8)});let W0={jsonrpc:$,id:i8,method:U8,params:l8};if(r8(W0),typeof D.sender.enableCancellation==="function")D.sender.enableCancellation(W0);return new Promise(async($0,O1)=>{let c1=(v1)=>{$0(v1),D.sender.cleanup(i8),j0?.dispose()},$7=(v1)=>{O1(v1),D.sender.cleanup(i8),j0?.dispose()},N9={method:U8,timerStart:Date.now(),resolve:c1,reject:$7};try{if(_.set(i8,N9),await Z.write(W0),f0)t(k9,i8)}catch(v1){throw _.delete(i8),N9.reject(new T8.ResponseError(T8.ErrorCodes.MessageWriteError,v1.message?v1.message:"Unknown reason")),H.error("Sending request failed."),v1}})},onRequest:(K,r)=>{G7();let t=null;if(hY.is(K))t=void 0,O=K;else if(G0.string(K)){if(t=null,r!==void 0)t=K,P.set(K,{handler:r,type:void 0})}else if(r!==void 0)t=K.method,P.set(K.method,{type:K,handler:r});return{dispose:()=>{if(t===null)return;if(t!==void 0){if(P.get(t)?.handler===r)P.delete(t)}else if(O===K)O=void 0}}},hasPendingResponse:()=>{return _.size>0},trace:async(K,r,t)=>{let U8=!1,l8=o0.Text;if(t!==void 0)if(G0.boolean(t))U8=t;else U8=t.sendNotification||!1,l8=t.traceFormat||o0.Text;if(S=K,s=l8,S===m8.Off)b=void 0;else b=r;if(U8&&!k()&&!o())await k9.sendNotification(yY.type,{value:m8.toString(K)})},onError:U.event,onClose:B.event,onUnhandledNotification:M.event,onDispose:T.event,end:()=>{Z.end()},dispose:()=>{if(o())return;G=T1.Disposed,T.fire(void 0);let K=new T8.ResponseError(T8.ErrorCodes.PendingResponseRejected,"Pending response rejected since connection got disposed");for(let r of _.values())r.reject(K);if(_=new Map,u=new Map,E=new Set,m=new iN.LinkedMap,G0.func(Z.dispose))Z.dispose();if(G0.func(q.dispose))q.dispose()},listen:()=>{G7(),vu(),G=T1.Listening,q.listen(i)},inspect:()=>{(0,rN.default)().console.log("inspect")}};return k9.onNotification(E4.type,(K)=>{if(S===m8.Off||!b)return;let r=S===m8.Verbose||S===m8.Compact;b.log(K.message,r?K.verbose:void 0)}),k9.onNotification(g5.type,async(K)=>{let r=F.get(K.token);if(r)await r(K.value);else C.fire(K)}),k9}});var k4=A((x)=>{var Dq8=x&&x.__importDefault||function(q){return q&&q.__esModule?q:{default:q}};Object.defineProperty(x,"__esModule",{value:!0});x.ProgressType=x.ProgressToken=x.createMessageConnection=x.NullLogger=x.ConnectionOptions=x.ConnectionStrategy=x.AbstractMessageBuffer=x.WriteableStreamMessageWriter=x.AbstractMessageWriter=x.MessageWriter=x.ReadableStreamMessageReader=x.AbstractMessageReader=x.MessageReader=x.SharedArrayReceiverStrategy=x.SharedArraySenderStrategy=x.CancellationToken=x.CancellationTokenSource=x.Emitter=x.Event=x.Disposable=x.LRUCache=x.Touch=x.LinkedMap=x.ParameterStructures=x.NotificationType9=x.NotificationType8=x.NotificationType7=x.NotificationType6=x.NotificationType5=x.NotificationType4=x.NotificationType3=x.NotificationType2=x.NotificationType1=x.NotificationType0=x.NotificationType=x.ErrorCodes=x.ResponseError=x.RequestType9=x.RequestType8=x.RequestType7=x.RequestType6=x.RequestType5=x.RequestType4=x.RequestType3=x.RequestType2=x.RequestType1=x.RequestType0=x.RequestType=x.Message=x.RAL=void 0;x.MessageStrategy=x.CancellationStrategy=x.CancellationSenderStrategy=x.RequestCancellationReceiverStrategy=x.IdCancellationReceiverStrategy=x.CancellationReceiverStrategy=x.ConnectionError=x.ConnectionErrors=x.LogTraceNotification=x.SetTraceNotification=x.TraceFormat=x.TraceValues=x.TraceValue=x.Trace=void 0;var o8=wY();Object.defineProperty(x,"Message",{enumerable:!0,get:function(){return o8.Message}});Object.defineProperty(x,"RequestType",{enumerable:!0,get:function(){return o8.RequestType}});Object.defineProperty(x,"RequestType0",{enumerable:!0,get:function(){return o8.RequestType0}});Object.defineProperty(x,"RequestType1",{enumerable:!0,get:function(){return o8.RequestType1}});Object.defineProperty(x,"RequestType2",{enumerable:!0,get:function(){return o8.RequestType2}});Object.defineProperty(x,"RequestType3",{enumerable:!0,get:function(){return o8.RequestType3}});Object.defineProperty(x,"RequestType4",{enumerable:!0,get:function(){return o8.RequestType4}});Object.defineProperty(x,"RequestType5",{enumerable:!0,get:function(){return o8.RequestType5}});Object.defineProperty(x,"RequestType6",{enumerable:!0,get:function(){return o8.RequestType6}});Object.defineProperty(x,"RequestType7",{enumerable:!0,get:function(){return o8.RequestType7}});Object.defineProperty(x,"RequestType8",{enumerable:!0,get:function(){return o8.RequestType8}});Object.defineProperty(x,"RequestType9",{enumerable:!0,get:function(){return o8.RequestType9}});Object.defineProperty(x,"ResponseError",{enumerable:!0,get:function(){return o8.ResponseError}});Object.defineProperty(x,"ErrorCodes",{enumerable:!0,get:function(){return o8.ErrorCodes}});Object.defineProperty(x,"NotificationType",{enumerable:!0,get:function(){return o8.NotificationType}});Object.defineProperty(x,"NotificationType0",{enumerable:!0,get:function(){return o8.NotificationType0}});Object.defineProperty(x,"NotificationType1",{enumerable:!0,get:function(){return o8.NotificationType1}});Object.defineProperty(x,"NotificationType2",{enumerable:!0,get:function(){return o8.NotificationType2}});Object.defineProperty(x,"NotificationType3",{enumerable:!0,get:function(){return o8.NotificationType3}});Object.defineProperty(x,"NotificationType4",{enumerable:!0,get:function(){return o8.NotificationType4}});Object.defineProperty(x,"NotificationType5",{enumerable:!0,get:function(){return o8.NotificationType5}});Object.defineProperty(x,"NotificationType6",{enumerable:!0,get:function(){return o8.NotificationType6}});Object.defineProperty(x,"NotificationType7",{enumerable:!0,get:function(){return o8.NotificationType7}});Object.defineProperty(x,"NotificationType8",{enumerable:!0,get:function(){return o8.NotificationType8}});Object.defineProperty(x,"NotificationType9",{enumerable:!0,get:function(){return o8.NotificationType9}});Object.defineProperty(x,"ParameterStructures",{enumerable:!0,get:function(){return o8.ParameterStructures}});var lY=IY();Object.defineProperty(x,"LinkedMap",{enumerable:!0,get:function(){return lY.LinkedMap}});Object.defineProperty(x,"LRUCache",{enumerable:!0,get:function(){return lY.LRUCache}});Object.defineProperty(x,"Touch",{enumerable:!0,get:function(){return lY.Touch}});var Cq8=wN();Object.defineProperty(x,"Disposable",{enumerable:!0,get:function(){return Cq8.Disposable}});var oN=n6();Object.defineProperty(x,"Event",{enumerable:!0,get:function(){return oN.Event}});Object.defineProperty(x,"Emitter",{enumerable:!0,get:function(){return oN.Emitter}});var nN=C4();Object.defineProperty(x,"CancellationTokenSource",{enumerable:!0,get:function(){return nN.CancellationTokenSource}});Object.defineProperty(x,"CancellationToken",{enumerable:!0,get:function(){return nN.CancellationToken}});var tN=vN();Object.defineProperty(x,"SharedArraySenderStrategy",{enumerable:!0,get:function(){return tN.SharedArraySenderStrategy}});Object.defineProperty(x,"SharedArrayReceiverStrategy",{enumerable:!0,get:function(){return tN.SharedArrayReceiverStrategy}});var mY=uN();Object.defineProperty(x,"MessageReader",{enumerable:!0,get:function(){return mY.MessageReader}});Object.defineProperty(x,"AbstractMessageReader",{enumerable:!0,get:function(){return mY.AbstractMessageReader}});Object.defineProperty(x,"ReadableStreamMessageReader",{enumerable:!0,get:function(){return mY.ReadableStreamMessageReader}});var pY=xN();Object.defineProperty(x,"MessageWriter",{enumerable:!0,get:function(){return pY.MessageWriter}});Object.defineProperty(x,"AbstractMessageWriter",{enumerable:!0,get:function(){return pY.AbstractMessageWriter}});Object.defineProperty(x,"WriteableStreamMessageWriter",{enumerable:!0,get:function(){return pY.WriteableStreamMessageWriter}});var Eq8=cN();Object.defineProperty(x,"AbstractMessageBuffer",{enumerable:!0,get:function(){return Eq8.AbstractMessageBuffer}});var w0=aN();Object.defineProperty(x,"ConnectionStrategy",{enumerable:!0,get:function(){return w0.ConnectionStrategy}});Object.defineProperty(x,"ConnectionOptions",{enumerable:!0,get:function(){return w0.ConnectionOptions}});Object.defineProperty(x,"NullLogger",{enumerable:!0,get:function(){return w0.NullLogger}});Object.defineProperty(x,"createMessageConnection",{enumerable:!0,get:function(){return w0.createMessageConnection}});Object.defineProperty(x,"ProgressToken",{enumerable:!0,get:function(){return w0.ProgressToken}});Object.defineProperty(x,"ProgressType",{enumerable:!0,get:function(){return w0.ProgressType}});Object.defineProperty(x,"Trace",{enumerable:!0,get:function(){return w0.Trace}});Object.defineProperty(x,"TraceValue",{enumerable:!0,get:function(){return w0.TraceValue}});Object.defineProperty(x,"TraceFormat",{enumerable:!0,get:function(){return w0.TraceFormat}});Object.defineProperty(x,"SetTraceNotification",{enumerable:!0,get:function(){return w0.SetTraceNotification}});Object.defineProperty(x,"LogTraceNotification",{enumerable:!0,get:function(){return w0.LogTraceNotification}});Object.defineProperty(x,"ConnectionErrors",{enumerable:!0,get:function(){return w0.ConnectionErrors}});Object.defineProperty(x,"ConnectionError",{enumerable:!0,get:function(){return w0.ConnectionError}});Object.defineProperty(x,"CancellationReceiverStrategy",{enumerable:!0,get:function(){return w0.CancellationReceiverStrategy}});Object.defineProperty(x,"IdCancellationReceiverStrategy",{enumerable:!0,get:function(){return w0.IdCancellationReceiverStrategy}});Object.defineProperty(x,"RequestCancellationReceiverStrategy",{enumerable:!0,get:function(){return w0.RequestCancellationReceiverStrategy}});Object.defineProperty(x,"CancellationSenderStrategy",{enumerable:!0,get:function(){return w0.CancellationSenderStrategy}});Object.defineProperty(x,"CancellationStrategy",{enumerable:!0,get:function(){return w0.CancellationStrategy}});Object.defineProperty(x,"MessageStrategy",{enumerable:!0,get:function(){return w0.MessageStrategy}});Object.defineProperty(x,"TraceValues",{enumerable:!0,get:function(){return w0.TraceValues}});var Fq8=Dq8(f9());x.RAL=Fq8.default});var HS=A((YS)=>{Object.defineProperty(YS,"__esModule",{value:!0});var eN=G9("util"),J9=k4();class rY extends J9.AbstractMessageBuffer{static emptyBuffer=Buffer.allocUnsafe(0);constructor(q="utf-8"){super(q)}emptyBuffer(){return rY.emptyBuffer}fromString(q,Z){return Buffer.from(q,Z)}toString(q,Z){if(q instanceof Buffer)return q.toString(Z);else return new eN.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 qS{stream;constructor(q){this.stream=q}onClose(q){return this.stream.on("close",q),J9.Disposable.create(()=>this.stream.off("close",q))}onError(q){return this.stream.on("error",q),J9.Disposable.create(()=>this.stream.off("error",q))}onEnd(q){return this.stream.on("end",q),J9.Disposable.create(()=>this.stream.off("end",q))}onData(q){return this.stream.on("data",q),J9.Disposable.create(()=>this.stream.off("data",q))}}class ZS{stream;constructor(q){this.stream=q}onClose(q){return this.stream.on("close",q),J9.Disposable.create(()=>this.stream.off("close",q))}onError(q){return this.stream.on("error",q),J9.Disposable.create(()=>this.stream.off("error",q))}onEnd(q){return this.stream.on("end",q),J9.Disposable.create(()=>this.stream.off("end",q))}write(q,Z){return new Promise((Q,Y)=>{let H=(J)=>{if(J===void 0||J===null)Q();else Y(J)};if(typeof q==="string")this.stream.write(q,Z,H);else this.stream.write(q,H)})}end(){this.stream.end()}}var QS=Object.freeze({messageBuffer:Object.freeze({create:(q)=>new rY(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 eN.TextDecoder(Z.charset).decode(q)))}catch(Q){return Promise.reject(Q)}}})}),stream:Object.freeze({asReadableStream:(q)=>new qS(q),asWritableStream:(q)=>new ZS(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 cY(){return QS}(function(q){function Z(){J9.RAL.install(QS)}q.install=Z})(cY||(cY={}));YS.default=cY});var US=A((_8)=>{var XS=_8&&_8.__createBinding||(Object.create?function(q,Z,Q,Y){if(Y===void 0)Y=Q;var H=Object.getOwnPropertyDescriptor(Z,Q);if(!H||("get"in H?!Z.__esModule:H.writable||H.configurable))H={enumerable:!0,get:function(){return Z[Q]}};Object.defineProperty(q,Y,H)}:function(q,Z,Q,Y){if(Y===void 0)Y=Q;q[Y]=Z[Q]}),fq8=_8&&_8.__setModuleDefault||(Object.create?function(q,Z){Object.defineProperty(q,"default",{enumerable:!0,value:Z})}:function(q,Z){q.default=Z}),iY=_8&&_8.__importStar||function(){var q=function(Z){return q=Object.getOwnPropertyNames||function(Q){var Y=[];for(var H in Q)if(Object.prototype.hasOwnProperty.call(Q,H))Y[Y.length]=H;return Y},q(Z)};return function(Z){if(Z&&Z.__esModule)return Z;var Q={};if(Z!=null){for(var Y=q(Z),H=0;H<Y.length;H++)if(Y[H]!=="default")XS(Q,Z,Y[H])}return fq8(Q,Z),Q}}(),Kq8=_8&&_8.__exportStar||function(q,Z){for(var Q in q)if(Q!=="default"&&!Object.prototype.hasOwnProperty.call(Z,Q))XS(Z,q,Q)},vq8=_8&&_8.__importDefault||function(q){return q&&q.__esModule?q:{default:q}};Object.defineProperty(_8,"__esModule",{value:!0});_8.StreamMessageWriter=_8.StreamMessageReader=_8.SocketMessageWriter=_8.SocketMessageReader=_8.PortMessageWriter=_8.PortMessageReader=_8.IPCMessageWriter=_8.IPCMessageReader=void 0;_8.generateRandomPipeName=hq8;_8.createClientPipeTransport=_q8;_8.createServerPipeTransport=yq8;_8.createClientSocketTransport=gq8;_8.createServerSocketTransport=xq8;_8.createMessageConnection=pq8;var m5=vq8(HS());m5.default.install();var kq8=iY(G9("path")),Nq8=iY(G9("os")),Sq8=iY(G9("fs")),JS=G9("crypto"),N4=G9("net"),n0=k4();Kq8(k4(),_8);class VS extends n0.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),n0.Disposable.create(()=>this.process.off("message",q))}}_8.IPCMessageReader=VS;class GS extends n0.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(){}}_8.IPCMessageWriter=GS;class WS extends n0.AbstractMessageReader{onData;constructor(q){super();this.onData=new n0.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)}}_8.PortMessageReader=WS;class $S extends n0.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(){}}_8.PortMessageWriter=$S;class Z7 extends n0.ReadableStreamMessageReader{constructor(q,Z="utf-8"){super((0,m5.default)().stream.asReadableStream(q),Z)}}_8.SocketMessageReader=Z7;class Q7 extends n0.WriteableStreamMessageWriter{socket;constructor(q,Z){super((0,m5.default)().stream.asWritableStream(q),Z);this.socket=q}dispose(){super.dispose(),this.socket.destroy()}}_8.SocketMessageWriter=Q7;class dY extends n0.ReadableStreamMessageReader{constructor(q,Z){super((0,m5.default)().stream.asReadableStream(q),Z)}}_8.StreamMessageReader=dY;class sY extends n0.WriteableStreamMessageWriter{constructor(q,Z){super((0,m5.default)().stream.asWritableStream(q),Z)}}_8.StreamMessageWriter=sY;var uq8=process.env.XDG_RUNTIME_DIR,bq8=new Map([["linux",107],["darwin",103]]);function hq8(){if(process.platform==="win32")return`\\\\.\\pipe\\lsp-${(0,JS.randomBytes)(16).toString("hex")}-sock`;let q=32,Z=10,Q=Sq8.realpathSync(uq8??Nq8.tmpdir()),Y=bq8.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 H=(0,JS.randomBytes)(Math.floor(q/2)).toString("hex");return kq8.join(Q,`lsp-${H}.sock`)}function _q8(q,Z="utf-8"){let Q,Y=new Promise((H,J)=>{Q=H});return new Promise((H,J)=>{let X=(0,N4.createServer)((W)=>{X.close(),Q([new Z7(W,Z),new Q7(W,Z)])});X.on("error",J),X.listen(q,()=>{X.removeListener("error",J),H({onConnected:()=>{return Y}})})})}function yq8(q,Z="utf-8"){let Q=(0,N4.createConnection)(q);return[new Z7(Q,Z),new Q7(Q,Z)]}function gq8(q,Z="utf-8"){let Q,Y=new Promise((H,J)=>{Q=H});return new Promise((H,J)=>{let X=(0,N4.createServer)((W)=>{X.close(),Q([new Z7(W,Z),new Q7(W,Z)])});X.on("error",J),X.listen(q,"127.0.0.1",()=>{X.removeListener("error",J),H({onConnected:()=>{return Y}})})})}function xq8(q,Z="utf-8"){let Q=(0,N4.createConnection)(q,"127.0.0.1");return[new Z7(Q,Z),new Q7(Q,Z)]}function lq8(q){let Z=q;return Z.read!==void 0&&Z.addListener!==void 0}function mq8(q){let Z=q;return Z.write!==void 0&&Z.addListener!==void 0}function pq8(q,Z,Q,Y){if(!Q)Q=n0.NullLogger;let H=lq8(q)?new dY(q):q,J=mq8(Z)?new sY(Z):Z;if(n0.ConnectionStrategy.is(Y))Y={connectionStrategy:Y};return(0,n0.createMessageConnection)(H,J,Q,Y)}});var aY;var RS=w8(()=>{u5();aY=["readFile","fileExists","directoryExists","getAccessibleEntries","realpath"]});import zS from"node:fs";import cq8 from"node:module";import X9 from"node:path";import{fileURLToPath as BS}from"node:url";function oY(){let q=X9.dirname(BS(import.meta.url)),Z=q.replace(/\\/g,"/"),Q=JSON.parse(zS.readFileSync(X9.join(q,"..","package.json"),"utf8")),Y=Q.name,H=Y.startsWith("@")?Y.split("/")[1]:Y,J=H==="typescript"?"tsc":"tsgo",X=Q.bin&&typeof Q.bin==="object"?Object.keys(Q.bin):[];if(X.length!==1||X[0]!==J)throw Error(`Expected ${Y} to declare exactly one bin entry named ${J}.`);let W=J,$,R=H+"-"+process.platform+"-"+process.arch;if(Z.endsWith("/_packages/"+H+"/lib"))$=X9.resolve(q,"..","..","..","built","local"),W="tsgo";else if(Z.endsWith("/built/npm/"+H+"/lib"))$=X9.resolve(q,"..","..",R,"lib");else{let O="@typescript/"+R;try{if(typeof import.meta.resolve>"u"){let w=cq8.createRequire(import.meta.url).resolve(O+"/package.json");$=X9.join(X9.dirname(w),"lib")}else{let P=import.meta.resolve(O+"/package.json"),w=BS(P);$=X9.join(X9.dirname(w),"lib")}}catch(P){throw Error("Unable to resolve "+O+". Either your platform is unsupported, or you are missing the package on disk.")}}let z=X9.join($,W);if(process.platform==="win32"){if(z+=".exe",z.length>=248)z="\\\\?\\"+z}if(!zS.existsSync(z))throw Error("Executable not found: "+z);return z}var MS=()=>{};function nY(q){return!("pipe"in q)}function LS(q){return q.tsserverPath??oY()}var PS=w8(()=>{MS()});function tY(){return{requestCount:0,roundTripMs:0,bytesSent:0,bytesReceived:0,serverTimeMs:0,transportOverheadMs:0,nodesMaterialized:0,sourceFilesFetched:0,nodesFetched:0}}function OS(){return{enabled:!1,totals:tY(),recentRequests:[]}}function wS(){return{enabled:!1,totals:{requestCount:0,totalProcessingTimeMs:0},recentRequests:[]}}function AS(q,Z){if(!q.enabled)return q;let Q=Z.totals.totalProcessingTimeMs,Y={...q.totals,serverTimeMs:Q,transportOverheadMs:Math.max(0,q.totals.roundTripMs-Q)},H=q.recentRequests.map((W)=>({...W})),J=Z.recentRequests,X=Math.min(H.length,J.length);for(let W=1;W<=X;W++){let $=H[H.length-W],R=J[J.length-W];if($.method===R.method)$.serverTimeMs=R.processingTimeMs,$.transportOverheadMs=Math.max(0,$.roundTripMs-R.processingTimeMs)}return{enabled:!0,totals:Y,recentRequests:H}}class eY{totals=tY();ring=[];head=0;record(q){this.totals.requestCount++,this.totals.roundTripMs+=q.roundTripMs,this.totals.bytesSent+=q.bytesSent,this.totals.bytesReceived+=q.bytesReceived;let Z={method:q.method,roundTripMs:q.roundTripMs,bytesSent:q.bytesSent,bytesReceived:q.bytesReceived,timestamp:Date.now()};if(this.ring.length<5)this.ring.push(Z);else this.ring[this.head]=Z,this.head=(this.head+1)%5}recordMaterialization(){this.totals.nodesMaterialized++}recordSourceFileFetched(q){this.totals.sourceFilesFetched++,this.totals.nodesFetched+=q}getInfo(){let q=[];for(let Z=0;Z<this.ring.length;Z++)q.push(this.ring[(this.head+Z)%this.ring.length]);return{enabled:!0,totals:{...this.totals},recentRequests:q}}reset(){this.totals=tY(),this.ring=[],this.head=0}}class qH{socket;process;connection;options;connected=!1;timing;constructor(q){if(this.options=q,nY(q)&&q.collectTiming)this.timing=new eY}async connect(){if(this.connected)return;if(nY(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 H=["--api","--async","--cwd",q.cwd??process.cwd()];if(q.collectTiming)H.push("--timing");let J=[];if(q.fs){for(let $ of aY)if(q.fs[$])J.push($)}if(J.length>0)H.push(`--callbacks=${J.join(",")}`);this.process=Z(LS(q),H,{stdio:["pipe","pipe","inherit"]}),this.process.once("error",($)=>{Y(Error(`Failed to start tsgo process: ${$.message}`))}),this.process.once("spawn",()=>{this.connected=!0,Q()});let X=new b0.StreamMessageReader(this.process.stdout),W=new b0.StreamMessageWriter(this.process.stdin);this.connection=b0.createMessageConnection(X,W),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 H=new b0.SocketMessageReader(this.socket),J=new b0.SocketMessageWriter(this.socket);this.connection=b0.createMessageConnection(H,J),this.connection.listen(),this.connected=!0,Q()}),this.socket.once("error",(H)=>{Y(Error(`Socket error: ${H.message}`))})})}registerFSCallbacks(q,Z){if(!Z)return;for(let Q of aY){let Y=Z[Q];if(Y){let H=new b0.RequestType(Q);q.onRequest(H,(J)=>{let X=Y(J);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 b0.RequestType(q);if(!this.timing)return this.connection.sendRequest(Q,Z);let Y=Z===void 0?0:Buffer.byteLength(JSON.stringify(Z),"utf-8"),H=performance.now(),J=await this.connection.sendRequest(Q,Z),X=performance.now()-H;return this.timing.record({method:q,roundTripMs:X,bytesSent:Y,bytesReceived:J===void 0||J===null?0:Buffer.byteLength(JSON.stringify(J),"utf-8")}),J}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)}getTimingCollector(){return this.timing}async getTimingInfo(){if(!this.timing)return OS();let q=this.timing.getInfo();if(!this.connected||!this.connection)return q;return AS(q,await this.fetchServerTiming())}async resetTimingInfo(){if(!this.timing)return;if(this.timing.reset(),this.connected&&this.connection){let q=new b0.RequestType("resetServerTiming");await this.connection.sendRequest(q,void 0)}}async fetchServerTiming(){if(!this.connection)return wS();let q=new b0.RequestType("getServerTiming");return this.connection.sendRequest(q,void 0)}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 b0;var IS=w8(()=>{RS();PS();b0=R6(US(),1)});var pS={};a4(pS,{isUnionType:()=>ES,isTypeReference:()=>uS,isTypeParameter:()=>mS,isTupleType:()=>bS,isTemplateLiteralType:()=>xS,isSubstitutionType:()=>gS,isStringMappingType:()=>lS,isStringLiteralType:()=>vS,isObjectType:()=>p5,isNumberLiteralType:()=>kS,isLiteralType:()=>KS,isIntrinsicType:()=>WH,isIntersectionType:()=>FS,isIndexedAccessType:()=>_S,isIndexType:()=>hS,isErrorType:()=>fS,isConditionalType:()=>yS,isClassOrInterfaceType:()=>TS,isBooleanLiteralType:()=>SS,isBigIntLiteralType:()=>NS,fileNameToDocumentURI:()=>zY,documentURIToFileName:()=>j4,TypePredicateKind:()=>dq,TypeFlags:()=>V0,SymbolFlags:()=>m6,Symbol:()=>GH,Snapshot:()=>YH,SignatureKind:()=>iq,SignatureFlags:()=>n9,Signature:()=>$H,Project:()=>HH,Program:()=>JH,ObjectFlags:()=>o9,NodeHandle:()=>f1,NodeBuilderFlags:()=>rq,ModuleKind:()=>cq,ModifierFlags:()=>a8,InternalAPI:()=>QH,Emitter:()=>VH,ElementFlags:()=>pq,DiagnosticCategory:()=>mq,CompletionItemKind:()=>lq,Checker:()=>XH,API:()=>ZH});class ZH{client;sourceFileCache;toPath;initialized=!1;activeSnapshots=new Set;latestSnapshot;internal;constructor(q={}){this.client=new qH(q),this.sourceFileCache=new LY,this.internal=new QH(this.client,()=>this.ensureInitialized())}static async fromLSPConnection(q){let Z=new ZH(q);return await Z.ensureInitialized(),Z}async ensureInitialized(){if(!this.initialized){let q=await this.client.apiRequest("initialize",null),Z=hk(q.useCaseSensitiveFileNames),Q=q.currentDirectory;this.toPath=(Y)=>bk(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=gk(q),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 YH(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()}getTimingInfo(){return this.client.getTimingInfo()}resetTimingInfo(){return this.client.resetTimingInfo()}}class QH{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 jS{symbols=new Map;client;snapshotId;resolveProject;constructor(q,Z,Q){this.client=q,this.snapshotId=Z,this.resolveProject=Q}getProject(q){return this.resolveProject(q)}getOrCreateSymbol(q){let Z=this.symbols.get(q.id);if(!Z)Z=new GH(q,this),this.symbols.set(q.id,Z);return Z}getSymbol(q){return this.symbols.get(q)}clear(){this.symbols.clear()}async fetchSymbol(q,Z,Q,Y){if(!Q)return;let H=this.getSymbol(Q);if(H)return H;let J=await this.client.apiRequest(Z,{snapshot:this.snapshotId,project:Y,objectId:q.id});if(!J)throw Error(`${Z} returned null symbol for ${q.constructor.name} ${q.id}`);return this.getOrCreateSymbol(J)}async fetchSymbols(q,Z,Q,Y){if(Q){let J=Array(Q.length),X=!0;for(let W=0;W<Q.length;W++){let $=this.getSymbol(Q[W]);if(!$){X=!1;break}J[W]=$}if(X)return J}let H=await this.client.apiRequest(Z,{snapshot:this.snapshotId,project:Y,objectId:q.id});if(H==null)return[];else return H.map((J)=>this.getOrCreateSymbol(J))}}class DS{client;snapshotId;project;snapshotRegistry;types=new Map;signatures=new Map;constructor(q,Z,Q,Y){this.client=q,this.snapshotId=Z,this.project=Q,this.snapshotRegistry=Y}getOrCreateSymbol(q){return this.snapshotRegistry.getOrCreateSymbol(q)}getSymbol(q){return this.snapshotRegistry.getSymbol(q)}getOrCreateType(q){let Z=this.types.get(q.id);if(!Z)Z=new CS(q,this),this.types.set(q.id,Z);return Z}getType(q){return this.types.get(q)}getOrCreateSignature(q){let Z=this.signatures.get(q.id);if(!Z)Z=new $H(q,this.project,this),this.signatures.set(q.id,Z);return Z}getSignature(q){return this.signatures.get(q)}clear(){this.types.clear(),this.signatures.clear()}async fetchType(q,Z,Q){if(Q!==!1){if(!Q)return;let H=this.getType(Q);if(H)return H}let Y=await this.client.apiRequest(Z,{snapshot:this.snapshotId,project:this.project.id,objectId:q.id});if(!Y)throw Error(`${Z} returned null type for ${q.constructor.name} ${q.id}`);return this.getOrCreateType(Y)}async fetchSymbol(q,Z,Q){return this.snapshotRegistry.fetchSymbol(q,Z,Q,this.project.id)}async fetchSignature(q,Z,Q){if(!Q)return;let Y=this.getSignature(Q);if(Y)return Y;let H=await this.client.apiRequest(Z,{snapshot:this.snapshotId,project:this.project.id,objectId:q.id});if(!H)throw Error(`${Z} returned null signature for ${q.constructor.name} ${q.id}`);return this.getOrCreateSignature(H)}async fetchTypes(q,Z,Q){if(Q){let H=Array(Q.length),J=!0;for(let X=0;X<Q.length;X++){let W=this.getType(Q[X]);if(!W){J=!1;break}H[X]=W}if(J)return H}let Y=await this.client.apiRequest(Z,{snapshot:this.snapshotId,project:this.project.id,objectId:q.id});if(Y==null)return[];else return Y.map((H)=>this.getOrCreateType(H))}async fetchSymbols(q,Z,Q){return this.snapshotRegistry.fetchSymbols(q,Z,Q,this.project.id)}async fetchBaseTypes(q){let Z=await this.client.apiRequest("getBaseTypes",{snapshot:this.snapshotId,project:this.project.id,type:q.id});if(Z==null)return[];return Z.map((Q)=>this.getOrCreateType(Q))}}class HH{id;configFileName;compilerOptions;rootFiles;program;checker;emitter;client;constructor(q,Z,Q,Y,H,J){this.id=q.id,this.configFileName=q.configFileName,this.compilerOptions=q.compilerOptions,this.rootFiles=q.rootFiles,this.client=Q,this.program=new JH(Z,this,Q,Y,H);let X=new DS(Q,Z,this,J);this.checker=new XH(Z,this,Q,X),this.emitter=new VH(Q)}dispose(){this.checker.dispose()}}class JH{snapshotId;project;client;sourceFileCache;toPath;decoder=new J6;sourceFileMetadataCache=new Map;constructor(q,Z,Q,Y,H){this.snapshotId=q,this.project=Z,this.client=Q,this.sourceFileCache=Y,this.toPath=H}getCompilerOptions(){return this.project.compilerOptions}async getSourceFile(q){let Z=BY(q),Q=this.toPath(Z),Y=this.sourceFileCache.getRetained(Q,this.snapshotId,this.project.id);if(Y)return Y;let H=await this.client.apiRequestBinary("getSourceFile",{snapshot:this.snapshotId,project:this.project.id,file:q});if(!H)return;let J=new DataView(H.buffer,H.byteOffset,H.byteLength),X=JY(J),W=XY(J),$=new A4(H,this.decoder,this.client.getTimingCollector());return this.sourceFileCache.set(Q,$,W,X,this.snapshotId,this.project.id)}async getSourceFileNames(){return await this.client.apiRequest("getSourceFileNames",{snapshot:this.snapshotId,project:this.project.id})??[]}getSourceFileMetadata(q){return this.getSourceFileMetadataByPath(this.toPath(q))}getSourceFileMetadataByPath(q){let Z=this.sourceFileMetadataCache.get(q);if(Z===void 0)Z=this.fetchSourceFileMetadata(q),this.sourceFileMetadataCache.set(q,Z);return Z}async fetchSourceFileMetadata(q){return await this.client.apiRequest("getSourceFileMetadata",{snapshot:this.snapshotId,project:this.project.id,file:q})??void 0}async isSourceFileFromExternalLibrary(q){return(await this.getSourceFileMetadataByPath(q.path))?.isFromExternalLibrary??!1}async isSourceFileDefaultLibrary(q){return(await this.getSourceFileMetadataByPath(q.path))?.isDefaultLibrary??!1}async getSyntacticDiagnostics(q){return await this.client.apiRequest("getSyntacticDiagnostics",{snapshot:this.snapshotId,project:this.project.id,...q!==void 0?{file:q}:{}})??[]}async getBindDiagnostics(q){return await this.client.apiRequest("getBindDiagnostics",{snapshot:this.snapshotId,project:this.project.id,...q!==void 0?{file:q}:{}})??[]}async getSemanticDiagnostics(q){return await this.client.apiRequest("getSemanticDiagnostics",{snapshot:this.snapshotId,project:this.project.id,...q!==void 0?{file:q}:{}})??[]}async getSuggestionDiagnostics(q){return await this.client.apiRequest("getSuggestionDiagnostics",{snapshot:this.snapshotId,project:this.project.id,...q!==void 0?{file:q}:{}})??[]}async getDeclarationDiagnostics(q){return await this.client.apiRequest("getDeclarationDiagnostics",{snapshot:this.snapshotId,project:this.project.id,...q!==void 0?{file:q}:{}})??[]}async getProgramDiagnostics(){return await this.client.apiRequest("getProgramDiagnostics",{snapshot:this.snapshotId,project:this.project.id})??[]}async getGlobalDiagnostics(){return await this.client.apiRequest("getGlobalDiagnostics",{snapshot:this.snapshotId,project:this.project.id})??[]}async getConfigFileParsingDiagnostics(){return await this.client.apiRequest("getConfigFileParsingDiagnostics",{snapshot:this.snapshotId,project:this.project.id})??[]}}class XH{snapshotId;project;client;objectRegistry;wellKnownSymbols;constructor(q,Z,Q,Y){this.snapshotId=q,this.project=Z,this.client=Q,this.objectRegistry=Y}dispose(){this.objectRegistry.clear()}async getSymbolAtLocation(q){if(Array.isArray(q))return(await this.client.apiRequest("getSymbolsAtLocations",{snapshot:this.snapshotId,project:this.project.id,locations:q.map((Y)=>O0(Y))})).map((Y)=>Y?this.objectRegistry.getOrCreateSymbol(Y):void 0);let Z=await this.client.apiRequest("getSymbolAtLocation",{snapshot:this.snapshotId,project:this.project.id,location:O0(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.project.id,file:q,position:Z});return Y?this.objectRegistry.getOrCreateSymbol(Y):void 0}return(await this.client.apiRequest("getSymbolsAtPositions",{snapshot:this.snapshotId,project:this.project.id,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.project.id,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.project.id,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.project.id,symbol:q.id});if(!Z)throw Error(`getDeclaredTypeOfSymbol returned no type for symbol ${q.id}`);return this.objectRegistry.getOrCreateType(Z)}async getReferencesToSymbolInFile(q,Z){return(await this.client.apiRequest("getReferencesToSymbolInFile",{snapshot:this.snapshotId,project:this.project.id,file:q,symbol:Z.id})??[]).map((Y)=>new f1(Y,this.project))}async getReferencedSymbolsForNode(q,Z){return(await this.client.apiRequest("getReferencedSymbolsForNode",{snapshot:this.snapshotId,project:this.project.id,node:O0(q),position:Z})??[]).map((Y)=>({definition:new f1(Y.definition,this.project),symbol:Y.symbol?this.objectRegistry.getOrCreateSymbol(Y.symbol):void 0,references:(Y.references??[]).map((H)=>new f1(H,this.project))}))}async getSignatureUsage(q){return(await this.client.apiRequest("getSignatureUsages",{snapshot:this.snapshotId,project:this.project.id,signatureDecl:O0(q)})??[]).map((Q)=>({name:new f1(Q.name,this.project),call:Q.call?new f1(Q.call,this.project):void 0}))}async getCompletionsAtPosition(q,Z,Q){let Y=await this.client.apiRequest("getCompletionsAtPosition",{snapshot:this.snapshotId,project:this.project.id,file:q,position:Z,triggerCharacter:Q?.triggerCharacter,includeSymbol:Q?.includeSymbol});if(!Y)return;return{isIncomplete:Y.isIncomplete,entries:Y.entries.map((H)=>({...H,symbol:H.symbol?this.objectRegistry.getOrCreateSymbol(H.symbol):void 0}))}}async getTypeAtLocation(q){if(Array.isArray(q))return(await this.client.apiRequest("getTypeAtLocations",{snapshot:this.snapshotId,project:this.project.id,locations:q.map((Y)=>O0(Y))})).map((Y)=>Y?this.objectRegistry.getOrCreateType(Y):void 0);let Z=await this.client.apiRequest("getTypeAtLocation",{snapshot:this.snapshotId,project:this.project.id,location:O0(q)});return Z?this.objectRegistry.getOrCreateType(Z):void 0}async getSignaturesOfType(q,Z){return(await this.client.apiRequest("getSignaturesOfType",{snapshot:this.snapshotId,project:this.project.id,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.project.id,location:O0(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.project.id,file:q,position:Z});return Y?this.objectRegistry.getOrCreateType(Y):void 0}return(await this.client.apiRequest("getTypesAtPositions",{snapshot:this.snapshotId,project:this.project.id,file:q,positions:Z})).map((Y)=>Y?this.objectRegistry.getOrCreateType(Y):void 0)}async resolveName(q,Z,Q,Y){let H=Q&&"kind"in Q,J=await this.client.apiRequest("resolveName",{snapshot:this.snapshotId,project:this.project.id,name:q,meaning:Z,location:H?O0(Q):void 0,file:!H&&Q?Q.document:void 0,position:!H&&Q?Q.position:void 0,excludeGlobals:Y});return J?this.objectRegistry.getOrCreateSymbol(J):void 0}async getResolvedSymbol(q){let Z=q.text;if(!Z)return;return this.resolveName(Z,m6.Value|m6.ExportValue,q)}async getContextualType(q){let Z=await this.client.apiRequest("getContextualType",{snapshot:this.snapshotId,project:this.project.id,location:O0(q)});return Z?this.objectRegistry.getOrCreateType(Z):void 0}async getBaseTypeOfLiteralType(q){let Z=await this.client.apiRequest("getBaseTypeOfLiteralType",{snapshot:this.snapshotId,project:this.project.id,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.project.id,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.project.id,location:O0(q)});return Z?this.objectRegistry.getOrCreateType(Z):void 0}async getWidenedType(q){let Z=await this.client.apiRequest("getWidenedType",{snapshot:this.snapshotId,project:this.project.id,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.project.id,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.project.id,type:q.id})}async isTypeAssignableTo(q,Z){return this.client.apiRequest("isTypeAssignableTo",{snapshot:this.snapshotId,project:this.project.id,source:q.id,target:Z.id})}async getShorthandAssignmentValueSymbol(q){let Z=await this.client.apiRequest("getShorthandAssignmentValueSymbol",{snapshot:this.snapshotId,project:this.project.id,location:O0(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.project.id,symbol:q.id,location:O0(Z)});if(!Q)throw Error(`getTypeOfSymbolAtLocation returned no type for symbol ${q.id}`);return this.objectRegistry.getOrCreateType(Q)}async getIntrinsicType(q){let Z=await this.client.apiRequest(q,{snapshot:this.snapshotId,project:this.project.id});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.project.id,type:q.id,location:Z?O0(Z):void 0,flags:Q});if(!Y)return;return WY(Y)}async signatureToSignatureDeclaration(q,Z,Q,Y){let H=await this.client.apiRequestBinary("signatureToSignatureDeclaration",{snapshot:this.snapshotId,project:this.project.id,signature:q.id,kind:Z,location:Q?O0(Q):void 0,flags:Y});if(!H)return;return WY(H)}async typeToString(q,Z,Q){return this.client.apiRequest("typeToString",{snapshot:this.snapshotId,project:this.project.id,type:q.id,location:Z?O0(Z):void 0,flags:Q})}async isContextSensitive(q){return this.client.apiRequest("isContextSensitive",{snapshot:this.snapshotId,project:this.project.id,location:O0(q)})}async isArrayType(q){return this.client.apiRequest("isArrayType",{snapshot:this.snapshotId,project:this.project.id,type:q.id})}async isTupleType(q){return this.client.apiRequest("isTupleType",{snapshot:this.snapshotId,project:this.project.id,type:q.id})}async getReturnTypeOfSignature(q){let Z=await this.client.apiRequest("getReturnTypeOfSignature",{snapshot:this.snapshotId,project:this.project.id,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.project.id,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.project.id,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.project.id,type:q.id});return Z?Z.map((Q)=>this.objectRegistry.getOrCreateType(Q)):[]}async getApparentType(q){let Z=await this.client.apiRequest("getApparentType",{snapshot:this.snapshotId,project:this.project.id,type:q.id});return Z?this.objectRegistry.getOrCreateType(Z):void 0}async getPropertiesOfType(q){let Z=await this.client.apiRequest("getPropertiesOfType",{snapshot:this.snapshotId,project:this.project.id,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.project.id,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 f1(Q.declaration,this.project):void 0}))}async getConstraintOfTypeParameter(q){let Z=await this.client.apiRequest("getConstraintOfTypeParameter",{snapshot:this.snapshotId,project:this.project.id,type:q.id});return Z?this.objectRegistry.getOrCreateType(Z):void 0}async getBaseConstraintOfType(q){let Z=await this.client.apiRequest("getBaseConstraintOfType",{snapshot:this.snapshotId,project:this.project.id,type:q.id});return Z?this.objectRegistry.getOrCreateType(Z):void 0}async getPropertyOfType(q,Z){let Q=await this.client.apiRequest("getPropertyOfType",{snapshot:this.snapshotId,project:this.project.id,type:q.id,name:Z});return Q?this.objectRegistry.getOrCreateSymbol(Q):void 0}async getConstantValue(q){return await this.client.apiRequest("getConstantValue",{snapshot:this.snapshotId,project:this.project.id,location:O0(q)})??void 0}async getSignatureFromDeclaration(q){let Z=await this.client.apiRequest("getSignatureFromDeclaration",{snapshot:this.snapshotId,project:this.project.id,location:O0(q)});return Z?this.objectRegistry.getOrCreateSignature(Z):void 0}async getExportSpecifierLocalTargetSymbol(q){let Z=await this.client.apiRequest("getExportSpecifierLocalTargetSymbol",{snapshot:this.snapshotId,project:this.project.id,location:O0(q)});return Z?this.objectRegistry.getOrCreateSymbol(Z):void 0}async getAliasedSymbol(q){let Z=await this.client.apiRequest("getAliasedSymbol",{snapshot:this.snapshotId,project:this.project.id,symbol:q.id});if(!Z)throw Error(`getAliasedSymbol returned no symbol for symbol ${q.id}`);return this.objectRegistry.getOrCreateSymbol(Z)}async getImmediateAliasedSymbol(q){let Z=await this.client.apiRequest("getImmediateAliasedSymbol",{snapshot:this.snapshotId,project:this.project.id,symbol:q.id});return Z?this.objectRegistry.getOrCreateSymbol(Z):void 0}getWellKnownSymbols(){return this.wellKnownSymbols??=this.client.apiRequest("getWellKnownSymbols",{snapshot:this.snapshotId,project:this.project.id})}async isUnknownSymbol(q){return q.id===(await this.getWellKnownSymbols()).unknown}async isUndefinedSymbol(q){return q.id===(await this.getWellKnownSymbols()).undefined}async isArgumentsSymbol(q){return q.id===(await this.getWellKnownSymbols()).arguments}async getExportsOfModule(q){let Z=await this.client.apiRequest("getExportsOfModule",{snapshot:this.snapshotId,project:this.project.id,symbol:q.id});return Z?Z.map((Q)=>this.objectRegistry.getOrCreateSymbol(Q)):[]}async getMemberInModuleExports(q,Z){let Q=await this.client.apiRequest("getMemberInModuleExports",{snapshot:this.snapshotId,project:this.project.id,symbol:q.id,name:Z});return Q?this.objectRegistry.getOrCreateSymbol(Q):void 0}async getJsDocTagsOfSymbol(q){return await this.client.apiRequest("getJsDocTags",{snapshot:this.snapshotId,project:this.project.id,symbol:q.id})??[]}async getDocumentationCommentOfSymbol(q){return this.client.apiRequest("getDocumentationComment",{snapshot:this.snapshotId,project:this.project.id,symbol:q.id})}async getTypeArguments(q){let Z=await this.client.apiRequest("getTypeArguments",{snapshot:this.snapshotId,project:this.project.id,type:q.id});return Z?Z.map((Q)=>this.objectRegistry.getOrCreateType(Q)):[]}}class VH{client;constructor(q){this.client=q}async printNode(q,Z={}){let Q=Ok(q),Y=wk(Q);return this.client.apiRequest("printNode",{data:Y,...Z})}}class f1{canonicalProject;index;kind;path;constructor(q,Z){let Q=Fk(q);this.index=Q.index,this.kind=Q.kind,this.path=Q.path,this.canonicalProject=Z}async resolve(q=this.canonicalProject){let Z=await q.program.getSourceFile(this.path);if(!Z)return;return Z.getOrCreateNodeAtIndex(this.index)}}class GH{objectRegistry;canonicalProject;id;escapedName;name;flags;checkFlags;declarations;valueDeclaration;parent;exportSymbol;membersCache;exportsCache;constructor(q,Z){this.objectRegistry=Z,this.id=q.id,this.escapedName=q.name,this.name=HT(q.name),this.flags=q.flags,this.checkFlags=q.checkFlags;let Q=Z.getProject(q.project);if(!Q)throw Error(`Symbol ${q.id} references unknown canonical project '${q.project}'`);if(this.canonicalProject=Q,this.declarations=(q.declarations??[]).map((Y)=>new f1(Y,Q)),this.valueDeclaration=q.valueDeclaration?new f1(q.valueDeclaration,Q):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,this.canonicalProject.id)}getMembers(){return this.membersCache??=this.fetchSymbolTable("getMembersOfSymbol")}getExports(){return this.exportsCache??=this.fetchSymbolTable("getExportsOfSymbol")}async fetchSymbolTable(q){let Z=await this.objectRegistry.fetchSymbols(this,q,void 0,this.canonicalProject.id),Q=new Map;for(let Y of Z)Q.set(Y.escapedName,Y);return Q}async getExportSymbol(){if(!this.exportSymbol)return this;return this.objectRegistry.fetchSymbol(this,"getExportSymbolOfSymbol",this.exportSymbol,this.canonicalProject.id)}async getJsDocTags(q){return q.getJsDocTagsOfSymbol(this)}async getDocumentationComment(q){return q.getDocumentationCommentOfSymbol(this)}}class CS{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;trueType;falseType;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!=null)this.value=q.flags&V0.BigIntLiteral?BigInt(q.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;this.trueType=!1,this.falseType=!1}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(){if(!(this.flags&(V0.UnionOrIntersection|V0.TemplateLiteral)))return;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)}async getTrueType(){let q=await this.objectRegistry.fetchType(this,"getTrueTypeOfConditionalType",this.trueType);return this.trueType=q.id,q}async getFalseType(){let q=await this.objectRegistry.fetchType(this,"getFalseTypeOfConditionalType",this.falseType);return this.falseType=q.id,q}async getBaseTypes(){if(!this.isClassOrInterface())return;return this.objectRegistry.fetchBaseTypes(this)}isClassOrInterface(){return TS(this)}isUnionType(){return ES(this)}isIntersectionType(){return FS(this)}isObjectType(){return p5(this)}isIntrinsicType(){return WH(this)}isErrorType(){return fS(this)}isLiteralType(){return KS(this)}isStringLiteralType(){return vS(this)}isNumberLiteralType(){return kS(this)}isBigIntLiteralType(){return NS(this)}isBooleanLiteralType(){return SS(this)}isTypeReference(){return uS(this)}isTupleType(){return bS(this)}isIndexType(){return hS(this)}isIndexedAccessType(){return _S(this)}isConditionalType(){return yS(this)}isSubstitutionType(){return gS(this)}isTemplateLiteralType(){return xS(this)}isStringMappingType(){return lS(this)}isTypeParameter(){return mS(this)}}function ES(q){return(q.flags&V0.Union)!==0}function FS(q){return(q.flags&V0.Intersection)!==0}function p5(q){return(q.flags&V0.Object)!==0}function TS(q){return p5(q)&&(q.objectFlags&o9.ClassOrInterface)!==0}function WH(q){return(q.flags&V0.Intrinsic)!==0}function fS(q){return WH(q)&&q.intrinsicName==="error"}function KS(q){return(q.flags&V0.Literal)!==0}function vS(q){return(q.flags&V0.StringLiteral)!==0}function kS(q){return(q.flags&V0.NumberLiteral)!==0}function NS(q){return(q.flags&V0.BigIntLiteral)!==0}function SS(q){return(q.flags&V0.BooleanLiteral)!==0}function uS(q){return p5(q)&&(q.objectFlags&o9.Reference)!==0}function bS(q){return p5(q)&&(q.objectFlags&o9.Tuple)!==0}function hS(q){return(q.flags&V0.Index)!==0}function _S(q){return(q.flags&V0.IndexedAccess)!==0}function yS(q){return(q.flags&V0.Conditional)!==0}function gS(q){return(q.flags&V0.Substitution)!==0}function xS(q){return(q.flags&V0.TemplateLiteral)!==0}function lS(q){return(q.flags&V0.StringMapping)!==0}function mS(q){return(q.flags&V0.TypeParameter)!==0}class $H{flags;objectRegistry;id;declaration;typeParameters;parameters;thisParameter;target;constructor(q,Z,Q){this.id=q.id,this.flags=q.flags,this.objectRegistry=Q,this.declaration=q.declaration?new f1(q.declaration,Z):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&n9.HasRestParameter)!==0}get isConstruct(){return(this.flags&n9.Construct)!==0}get isAbstract(){return(this.flags&n9.Abstract)!==0}}var YH;var cS=w8(()=>{cF();rF();iF();dF();sF();aF();oF();nF();tF();eF();qT();F9();Ak();Tk();M4();u5();xk();IS();u5();YH=class YH{id;projectMap;toPath;client;disposed=!1;onDispose;snapshotRegistry;constructor(q,Z,Q,Y,H){this.id=q.snapshot,this.client=Z,this.toPath=Y,this.onDispose=H,this.projectMap=new Map,this.snapshotRegistry=new jS(Z,this.id,(J)=>this.projectMap.get(J));for(let J of q.projects){let X=new HH(J,this.id,Z,Q,Y,this.snapshotRegistry);this.projectMap.set(Y(J.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;for(let q of this.projectMap.values())q.dispose();this.projectMap.clear(),this.snapshotRegistry.clear(),this.onDispose(),await this.client.apiRequest("release",{snapshot:this.id})}isDisposed(){return this.disposed}ensureNotDisposed(){if(this.disposed)throw Error("Snapshot is disposed")}}});var dS={};a4(dS,{TypeResolver:()=>UH});import{existsSync as rq8,readdirSync as iq8,statSync as dq8}from"node:fs";import L1 from"node:path";class UH{api;symbolFlags;typeFlags;tsconfigPath;overlay=new Map;constructor(q,Z,Q,Y){this.api=q,this.symbolFlags=Z,this.typeFlags=Q,this.tsconfigPath=Y}static async create(q=process.cwd()){let Z=H48(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(() => (cS(),pS))}catch(J){return console.warn("Warning: `resolveTypes` requires the `typescript` package to be installed. Skipping semantic resolution.",J),null}let Y=new UH(null,Q.SymbolFlags,Q.TypeFlags,Z),H=new Q.API({cwd:q,fs:Y.createFileSystem()});return Y.api=H,Y}async expandAll(q){let Z=new Map;if(q.length===0)return Z;let Q=new Map;for(let H of q){if(!H.metadata.canonicalPropsType)continue;if(H.metadata.referencesComponentGenerics)continue;let J=this.virtualFileName(H.filePath,H.moduleName);this.overlay.set(J,eq8(H.metadata)),Q.set(J,H)}if(Q.size===0)return Z;let Y=await this.api.updateSnapshot({openProject:this.tsconfigPath,fileChanges:{created:Array.from(Q.keys())}});try{let[H]=Q.keys(),J=await Y.getDefaultProjectForFile(H);if(!J)return Z;let X=J.checker,W=await Promise.all(Array.from(Q,async([w,v])=>{let F=this.overlay.get(w);if(!F)return null;let h=Y48(F),m=await X.getTypeAtPosition(w,h);if(!m)return null;let _=new Map,E=await X.getPropertiesOfType(m);for(let S of E){if(!S.name||S.name.startsWith("__"))continue;_.set(S.name,{name:S.name,symbols:[S],forceOptional:!1})}if((m.flags&this.typeFlags.Union)!==0){let S=await m.getTypes(),s=await Promise.all(S.map((b)=>X.getPropertiesOfType(b)));for(let b of s)for(let G of b){if(!G.name||G.name.startsWith("__")||_.has(G.name))continue;let U=_.get(G.name);if(U)U.symbols.push(G);else _.set(G.name,{name:G.name,symbols:[G],forceOptional:!0})}}return{moduleName:v.moduleName,groups:Array.from(_.values())}})),$=[],R=[];W.forEach((w,v)=>{if(!w)return;w.groups.forEach((F,h)=>{for(let m of F.symbols)$.push(m),R.push({fileIndex:v,groupIndex:h})})});let z=$.length>0?await X.getTypeOfSymbol($):[],O=await Promise.all(z.map((w)=>w?X.typeToString(w):Promise.resolve("any"))),P=new Map;$.forEach((w,v)=>{let{fileIndex:F,groupIndex:h}=R[v],m=(w.flags&this.symbolFlags.Optional)!==0,_=O[v];if(m)_=_.replace(sq8,"");let E=P.get(F)??new Map,u=E.get(h)??[];u.push(_),E.set(h,u),P.set(F,E)}),W.forEach((w,v)=>{if(!w)return;let F=P.get(v),h=w.groups.map((m,_)=>{let E=F?.get(_)??[],u=!(m.forceOptional||m.symbols.some((S)=>(S.flags&this.symbolFlags.Optional)!==0));return{name:m.name,type:Array.from(new Set(E)).join(" | "),isRequired:u}});h.sort((m,_)=>m.name.localeCompare(_.name)),Z.set(w.moduleName,h)})}finally{await Y.dispose?.()}return Z}async checkExamples(q){let Z=new Map;if(q.length===0)return Z;let Q=[];for(let H of q)for(let J of H.sources){let X=this.exampleFileName(H.filePath,H.moduleName,J.id);this.overlay.set(X,Z48(J)),Q.push({moduleName:H.moduleName,source:J,file:X})}if(Q.length===0)return Z;let Y=await this.api.updateSnapshot({openProject:this.tsconfigPath,fileChanges:{created:Q.map((H)=>H.file)}});try{let[H]=Q,J=await Y.getDefaultProjectForFile(H.file);if(!J)return Z;await Promise.all(Q.map(async({moduleName:X,source:W,file:$})=>{let[R,z]=await Promise.all([J.program.getSyntacticDiagnostics($),J.program.getSemanticDiagnostics($)]),O=[...R,...z];if(O.length===0)return;let P=this.overlay.get($)??"",w=O.map((F)=>Q48(F,P)).sort((F,h)=>F.line-h.line).map((F)=>`Line ${F.line}: ${F.text}`).join(`
|
|
27
|
-
`),v=Z.get(X)??[];v.push({id:W.id,name:W.name,message:w}),Z.set(X,v)}))}finally{await Y.dispose?.()}return Z}async dispose(){this.overlay.clear(),await this.api?.close?.()}createFileSystem(){return{readFile:(q)=>this.overlay.get(R0(q)),fileExists:(q)=>this.overlay.has(R0(q))?!0:void 0,getAccessibleEntries:(q)=>{let Z=R0(q),Q=Array.from(this.overlay.keys()).filter((J)=>R0(L1.dirname(J))===Z);if(Q.length===0)return;let Y=[],H=[];try{for(let J of iq8(q)){let X=L1.join(q,J);try{(dq8(X).isDirectory()?H:Y).push(J)}catch{}}}catch{}for(let J of Q){let X=L1.basename(J);if(!Y.includes(X))Y.push(X)}return{files:Y,directories:H}}}}virtualFileName(q,Z){let Q=L1.dirname(L1.resolve(q));return R0(L1.join(Q,`__sveld_resolved_${Z}.ts`))}exampleFileName(q,Z,Q){let Y=L1.dirname(L1.resolve(q)),H=Q.replace(aq8,"_");return R0(L1.join(Y,`__sveld_example_${Z}_${H}.ts`))}}function eq8(q){return[...q.typeImportStatements,...q.localTypeDeclarations,`type ${rS} = ${q.canonicalPropsType};`,`declare const ${iS}: ${rS};`].join(`
|
|
28
|
-
`)}function q48(q){let Z=q.replace(oq8,"_");if(Z===""||nq8.test(Z))return`_${Z}`;return Z}function Z48(q){return`const ${q48(q.name)} = null as unknown as (${q.type});
|
|
29
|
-
${q.code}
|
|
30
|
-
`}function Q48(q,Z){let Q=q.pos??0,Y=Z.slice(0,Q).split(`
|
|
31
|
-
`).length;return{line:Math.max(1,Y-tq8+1),text:String(q.text??"").trim()}}function Y48(q){let Z=q.lastIndexOf("declare const");return q.indexOf(iS,Z)+2}function H48(q){let Z=L1.resolve(q);while(!0){let Q=L1.join(Z,"tsconfig.json");if(rq8(Q))return Q;let Y=L1.dirname(Z);if(Y===Z)return null;Z=Y}}var iS="__sveld_resolved_props__",rS="__SveldResolvedProps__",sq8,aq8,oq8,nq8,tq8=2;var sS=w8(()=>{Y9();sq8=/ \| undefined$/,aq8=/[^A-Za-z0-9_-]/g,oq8=/[^A-Za-z0-9_$]/g,nq8=/^[0-9]/});var e0;(function(q){q.start="/**",q.nostart="/***",q.delim="*",q.end="*/"})(e0=e0||(e0={}));function o4(q){return/^\s+$/.test(q)}function uH(q){let Z=q.match(/\r+$/);return Z==null?["",q]:[q.slice(-Z[0].length),q.slice(0,-Z[0].length)]}function r1(q){let Z=q.match(/^\s+/);return Z==null?["",q]:[q.slice(0,Z[0].length),q.slice(Z[0].length)]}function bH(q){return q.split(/\n/)}function hH(q={}){return Object.assign({tag:"",name:"",type:"",optional:!1,description:"",problems:[],source:[]},q)}function n4(q={}){return Object.assign({start:"",delimiter:"",postDelimiter:"",tag:"",postTag:"",name:"",postName:"",type:"",postType:"",description:"",end:"",lineEnd:""},q)}var pu=/^@\S+/;function t4({fence:q="```"}={}){let Z=cu(q),Q=(Y,H)=>Z(Y)?!H:H;return function(H){let J=[[]],X=!1;for(let W of H){if(pu.test(W.tokens.description)&&!X)J.push([W]);else J[J.length-1].push(W);X=Q(W.tokens.description,X)}return J}}function cu(q){if(typeof q==="string")return(Z)=>Z.split(q).length%2===0;return q}function e4({startLine:q=0,markers:Z=e0}={}){let Q=null,Y=q;return function(J){let X=J,W=n4();if([W.lineEnd,X]=uH(X),[W.start,X]=r1(X),Q===null&&X.startsWith(Z.start)&&!X.startsWith(Z.nostart))Q=[],W.delimiter=X.slice(0,Z.start.length),X=X.slice(Z.start.length),[W.postDelimiter,X]=r1(X);if(Q===null)return Y++,null;let $=X.trimRight().endsWith(Z.end);if(W.delimiter===""&&X.startsWith(Z.delim)&&!X.startsWith(Z.end))W.delimiter=Z.delim,X=X.slice(Z.delim.length),[W.postDelimiter,X]=r1(X);if($){let R=X.trimRight();W.end=X.slice(R.length-Z.end.length),X=R.slice(0,-Z.end.length)}if(W.description=X,Q.push({number:Y,source:J,tokens:W}),Y++,$){let R=Q.slice();return Q=null,R}return null}}function q3({tokenizers:q}){return function(Q){var Y;let H=hH({source:Q});for(let J of q)if(H=J(H),(Y=H.problems[H.problems.length-1])===null||Y===void 0?void 0:Y.critical)break;return H}}function n5(){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 t5(q="compact"){let Z=iu(q);return(Q)=>{let Y=0,H=[];for(let[W,{tokens:$}]of Q.source.entries()){let R="";if(W===0&&$.description[0]!=="{")return Q;for(let z of $.description){if(z==="{")Y++;if(z==="}")Y--;if(R+=z,Y===0)break}if(H.push([$,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 J=[],X=H[0][0].postDelimiter.length;for(let[W,[$,R]]of H.entries()){if($.type=R,W>0)$.type=$.postDelimiter.slice(X)+R,$.postDelimiter=$.postDelimiter.slice(0,X);[$.postType,$.description]=r1($.description.slice(R.length)),J.push($.type)}return J[0]=J[0].slice(1),J[J.length-1]=J[J.length-1].slice(0,-1),Q.type=Z(J),Q}}var ru=(q)=>q.trim();function iu(q){if(q==="compact")return(Z)=>Z.map(ru).join("");else if(q==="preserve")return(Z)=>Z.join(`
|
|
32
|
-
`);else return q}var du=(q)=>q&&q.startsWith('"')&&q.endsWith('"');function e5(){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(),H=Y.split('"');if(H.length>1&&H[0]===""&&H.length%2===1)return Z.name=H[1],Q.name=`"${H[1]}"`,[Q.postName,Q.description]=r1(Y.slice(Q.name.length)),Z;let J=0,X="",W=!1,$;for(let z of Y){if(J===0&&o4(z))break;if(z==="[")J++;if(z==="]")J--;X+=z}if(J!==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]==="]"){W=!0,X=X.slice(1,-1);let z=X.split("=");if(X=z[0].trim(),z[1]!==void 0)$=z.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($==="")return Z.problems.push({code:"spec:name:empty-default",message:"empty default value",line:Z.source[0].number,critical:!0}),Z;if(!du($)&&/=(?!>)/.test($))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=W,Z.name=X,Q.name=R,$!==void 0)Z.default=$;return[Q.postName,Q.description]=r1(Y.slice(Q.name.length)),Z}}function q2(q="compact",Z=e0){let Q=Z3(q);return(Y)=>{return Y.description=Q(Y.source,Z),Y}}function Z3(q){if(q==="compact")return su;if(q==="preserve")return nu;return q}function su(q,Z=e0){return q.map(({tokens:{description:Q}})=>Q.trim()).filter((Q)=>Q!=="").join(" ")}var au=(q,{tokens:Z},Q)=>Z.type===""?q:Q,ou=({tokens:q})=>(q.delimiter===""?q.start:q.postDelimiter.slice(1))+q.description;function nu(q,Z=e0){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(au,0)),q.map(ou).join(`
|
|
33
|
-
`)}function Q3({startLine:q=0,fence:Z="```",spacing:Q="compact",markers:Y=e0,tokenizers:H=[n5(),t5(Q),e5(),q2(Q)]}={}){if(q<0||q%1>0)throw Error("Invalid startLine");let J=e4({startLine:q,markers:Y}),X=t4({fence:Z}),W=q3({tokenizers:H}),$=Z3(Q);return function(R){let z=[];for(let O of bH(R)){let P=J(O);if(P===null)continue;let w=X(P),v=w.slice(1).map(W);z.push({description:$(w[0],Y),tags:v,source:P,problems:v.reduce((F,h)=>F.concat(h.problems),[])})}return z}}function tu(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 Y3(){return(q)=>q.source.map(({tokens:Z})=>tu(Z)).join(`
|
|
34
|
-
`)}var eu={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 EZ8=Object.keys(eu);function z6(q,Z={}){return Q3(Z)(q)}var rZ8=Y3();class Z2{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 J3 extends Z2{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 J=this.should_skip,X=this.should_remove,W=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 $=this.should_skip,R=this.should_remove;if(this.should_skip=J,this.should_remove=X,this.replacement=W,$)return q;if(R)return null}let H;for(H in q){let J=q[H];if(J&&typeof J==="object"){if(Array.isArray(J)){let X=J;for(let W=0;W<X.length;W+=1){let $=X[W];if(_H($)){if(!this.visit($,q,H,W))W--}}}else if(_H(J))this.visit(J,q,H,null)}}if(this.leave){let J=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 W=this.should_remove;if(this.replacement=J,this.should_remove=X,W)return null}}return q}}function _H(q){return q!==null&&typeof q==="object"&&"type"in q&&typeof q.type==="string"}function i1(q,{enter:Z,leave:Q}){return new J3(Z,Q).visit(q,null)}function s8(q,Z,Q){let Y=Q._,H=!1;function J(W,{next:$,state:R}){$(R)}function X(W,$,R){if(H)return;if(!W.type)return;let z,O={},P={path:$,state:R,next:(v=R)=>{$.push(W);for(let F in W){if(F==="type")continue;let h=W[F];if(h&&typeof h==="object")if(Array.isArray(h)){let m={},_=h.length,E=!1;for(let u=0;u<_;u++){let S=h[u];if(S&&typeof S==="object"){let s=X(S,$,v);if(s)m[u]=s,E=!0}}if(E)O[F]=h.map((u,S)=>m[S]??u)}else{let m=X(h,$,v);if(m)O[F]=m}}if($.pop(),Object.keys(O).length>0)return yH(W,O)},stop:()=>{H=!0},visit:(v,F=R)=>{$.push(W);let h=X(v,$,F)??v;return $.pop(),h}},w=Q[W.type]??J;if(Y){let v;if(z=Y(W,{...P,next:(F=R)=>{return R=F,v=w(W,{...P,state:F}),v}}),!z&&v)z=v}else z=w(W,P);if(!z){if(Object.keys(O).length>0)z=yH(W,O)}if(z)return z}return X(q,[],Z)??q}function yH(q,Z){let Q={},Y=Object.getOwnPropertyDescriptors(q);for(let H in Y)Object.defineProperty(Q,H,Y[H]);for(let H in Z)Q[H]=Z[H];return Q}var Q2=/^\r?\n/;var X3=/^[ \t\r\n]+/;var V3=/[ \t\r\n]+$/,B6=/[^ \t\r\n]/;var Y2=/[^\n]/g,H2=/^[a-zA-Z_$][a-zA-Z_$0-9]*$/;var gH="[",xH="[!";var lH="]";var XQ8=Symbol("uninitialized"),VQ8=Symbol("filename"),GQ8=Symbol("hmr");var G3="http://www.w3.org/2000/svg",W3="http://www.w3.org/1998/Math/MathML",mH=["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 U7(q,Z){if(Z.length===0)return null;let Y=new rH(Z).get(q);return Y&&Y[0][0]>0.7?Y[0][1]:null}var $3=2,U3=3;function qb(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-Zb(q,Z)/Math.max(q.length,Z.length)}function Zb(q,Z){let Q=[],Y=0;for(let H=0;H<=Z.length;H++)for(let J=0;J<=q.length;J++){let X;if(H&&J)if(q.charAt(J-1)===Z.charAt(H-1))X=Y;else X=Math.min(Q[J],Q[J-1],Y)+1;else X=H+J;Y=Q[J],Q[J]=X}return Q.pop()}var Qb=/[^\w, ]+/;function Yb(q,Z=2){let Q="-"+q.toLowerCase().replace(Qb,"")+"-",Y=Z-Q.length,H=[];if(Y>0)for(let J=0;J<Y;++J)q+="-";for(let J=0;J<Q.length-Z+1;++J)H.push(Q.slice(J,J+Z));return H}function pH(q,Z=2){let Q={},Y=Yb(q,Z),H=0;for(H;H<Y.length;++H)if(Y[H]in Q)Q[Y[H]]+=1;else Q[Y[H]]=1;return Q}function cH(q,Z){return Z[0]-q[0]}class rH{exact_set={};match_dict={};items={};constructor(q){for(let Z=$3;Z<U3+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=$3;for(Q;Q<U3+1;++Q)this._add(q,Q)}_add(q,Z){let Q=q.toLowerCase(),Y=this.items[Z]||[],H=Y.length;Y.push(0);let J=pH(Q,Z),X=0,W,$;for(W in J)if($=J[W],X+=Math.pow($,2),W in this.match_dict)this.match_dict[W].push([H,$]);else this.match_dict[W]=[[H,$]];let R=Math.sqrt(X);Y[H]=[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=U3;Y>=$3;--Y){let H=this.__get(q,Y);if(H.length>0)return H}return null}__get(q,Z){let Q=q.toLowerCase(),Y={},H=pH(Q,Z),J=this.items[Z],X=0,W,$,R,z,O;for(W in H)if($=H[W],X+=Math.pow($,2),W in this.match_dict)for(R=0;R<this.match_dict[W].length;++R)if(z=this.match_dict[W][R][0],O=this.match_dict[W][R][1],z in Y)Y[z]+=$*O;else Y[z]=$*O;let P=Math.sqrt(X),w=[],v;for(let m in Y)v=Y[m],w.push([v/(P*J[m][0]),J[m][1]]);w.sort(cH);let F=[],h=Math.min(50,w.length);for(let m=0;m<h;++m)F.push([qb(w[m][1],Q),w[m][1]]);w=F,w.sort(cH),F=[];for(let m=0;m<w.length;++m)if(w[m][0]===w[0][0])F.push([w[m][0],this.exact_set[w[m][1]]]);return F}}function Hb(q,Z){return q.start<=Z&&Z<q.end}function R3(q,Z={}){let{offsetLine:Q=0,offsetColumn:Y=0}=Z,H=0,J=q.split(`
|
|
35
|
-
`).map(($,R)=>{let z=H+$.length+1,O={start:H,end:z,line:R};return H=z,O}),X=0;function W($,R){if(typeof $==="string")$=q.indexOf($,R??0);if($===-1)return;let z=J[X],O=$>=z.end?1:-1;while(z){if(Hb(z,$))return{line:Q+z.line,column:Y+$-z.start,character:$};X+=O,z=J[X]}}return W}var Jb=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"];function d1(q){return Jb.includes(q)||q.toLowerCase()==="!doctype"}var Xb=["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 R7(q){return Xb.includes(q)}var Vb=["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"];var RQ8=[...Vb,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var Gb=["$state","$state.raw","$derived","$derived.by"],Wb=[...Gb,"$state.eager","$state.snapshot","$props","$props.id","$bindable","$effect","$effect.pre","$effect.tracking","$effect.root","$effect.pending","$inspect","$inspect().with","$inspect.trace","$host"];function z7(q){return Wb.includes(q)}var iH=/^[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;var J2=[],k1,M6="(unknown)",X2="<unknown>",B7,V2=[],d8,dH=!1,Y0;function G2(q){B7=q,V2=B7.split(`
|
|
36
|
-
`);let Z=R3(B7,{offsetLine:1});Y0=(Q)=>{let Y=Z(Q);if(!Y)throw Error("An impossible situation occurred");return Y}}var z3,B3=[],M3=new Map;function L3(q){d8=!1,dH=!1,X2=M6,B7="",V2=[],k1=(q.filename??M6).replace(/\\/g,"/"),z3=q.warning??(()=>!0),J2=[]}var $b=/^\t+/;function P3(q){return q.replace($b,(Z)=>Z.split("\t").join(" "))}function Ub(q,Z){let Q=V2,Y=Math.max(0,q-2),H=Math.min(q+3,Q.length),J=String(H+1).length;return Q.slice(Y,H).map((X,W)=>{let $=Y+W===q,R=String(W+Y+1).padStart(J," ");if($){let z=" ".repeat(J+2+P3(X.slice(0,Z)).length)+"^";return`${R}: ${P3(X)}
|
|
37
|
-
${z}`}return`${R}: ${P3(X)}`}).join(`
|
|
38
|
-
`)}class L7{name="CompileDiagnostic";constructor(q,Z,Q){if(this.code=q,this.message=Z,k1!==M6)this.filename=k1;if(Q){if(this.position=Q,this.start=Y0(Q[0]),this.end=Y0(Q[1]),this.start&&this.end)this.frame=Ub(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 sH extends L7{name="CompileWarning";constructor(q,Z,Q){super(q,Z,Q)}}function w1(q,Z,Q){let Y=B3;if(q)Y=M3.get(q)??B3;if(Y&&Y.at(-1)?.has(Z))return;let H=new sH(Z,Q,q&&q.start!==void 0?[q.start,q.end??q.start]:void 0);if(!z3(H))return;J2.push(H)}var aH=["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 oH(q,Z,Q){w1(q,"legacy_code",`\`${Z}\` is no longer valid — please use \`${Q}\` instead
|
|
41
|
-
https://svelte.dev/e/legacy_code`)}function nH(q,Z,Q){w1(q,"unknown_code",`${Q?`\`${Z}\` is not a recognised code (did you mean \`${Q}\`?)`:`\`${Z}\` is not a recognised code`}
|
|
42
|
-
https://svelte.dev/e/unknown_code`)}function O3(q){w1(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 w3(q){w1(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 tH(q){w1(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 eH(q){w1(q,"options_removed_hydratable","The `hydratable` option has been removed. Svelte components are always hydratable now\nhttps://svelte.dev/e/options_removed_hydratable")}function qJ(q){w1(q,"options_removed_loop_guard_timeout","The `loopGuardTimeout` option has been removed\nhttps://svelte.dev/e/options_removed_loop_guard_timeout")}function ZJ(q){w1(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 A3(q,Z,Q){w1(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.
|
|
43
|
-
https://svelte.dev/e/element_implicitly_closed`)}function QJ(q){w1(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 YJ(q){w1(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")}var Rb=/^\s*svelte-ignore\s/,HJ={"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"},P7=aH.concat(mH);function W2(q,Z,Q){let Y=Rb.exec(Z);if(!Y)return[];let H=Y[0].length;q+=H;let J=[];if(Q)for(let X of Z.slice(H).matchAll(/([\w$-]+)(,)?/gm)){let W=X[1];if(P7.includes(W))J.push(W);else{let $=HJ[W]??W.replace(/-/g,"_"),R=q+X.index,z=R+W.length;if(P7.includes($))oH({start:R,end:z},W,$);else{let O=U7(W,P7);nH({start:R,end:z},W,O)}}if(!X[2])break}else for(let X of Z.slice(H).matchAll(/[\w$-]+/gm)){let W=X[0];if(J.push(W),!P7.includes(W)){let $=HJ[W]??W.replace(/-/g,"_");if(P7.includes($))J.push($)}}return J}function S9(q){let Z=q.at(0),Q=q.at(-1);if(Z?.type==="Text")if(!B6.test(Z.data))q.shift();else Z.data=Z.data.replace(X3,"");if(Q?.type==="Text")if(!B6.test(Q.data))q.pop();else Q.data=Q.data.replace(V3,"")}function JJ(q,Z){return s8(Z,null,{_(Y,{next:H}){delete Y.metadata,H()},Root(Y,{visit:H}){let{instance:J,module:X,options:W}=Y;if(W?.__raw__){let z=Y.fragment.nodes.findIndex((O)=>W.end<=O.start);if(z===-1)z=Y.fragment.nodes.length;Y.fragment.nodes.splice(z,0,W.__raw__)}let $=null,R=null;if(Y.fragment.nodes.length>0){let z=Y.fragment.nodes.at(0),O=Y.fragment.nodes.at(-1);$=z.start,R=O.end;while(/\s/.test(q[$]))$+=1;while(/\s/.test(q[R-1]))R-=1}if(J)delete J.attributes;if(X)delete X.attributes;return{html:{type:"Fragment",start:$,end:R,children:Y.fragment.nodes.map((z)=>H(z))},instance:J,module:X,css:Z.css?H(Z.css):void 0,_comments:Z.comments?.length>0?Z.comments:void 0}},AnimateDirective(Y){return{...Y,type:"Animation"}},AwaitBlock(Y,{visit:H}){let J={type:"PendingBlock",start:null,end:null,children:Y.pending?.nodes.map(($)=>H($))??[],skip:!0},X={type:"ThenBlock",start:null,end:null,children:Y.then?.nodes.map(($)=>H($))??[],skip:!0},W={type:"CatchBlock",start:null,end:null,children:Y.catch?.nodes.map(($)=>H($))??[],skip:!0};if(Y.pending){let $=Y.pending.nodes.at(0),R=Y.pending.nodes.at(-1);J.start=$?.start??q.indexOf("}",Y.expression.end)+1,J.end=R?.end??J.start,J.skip=!1}if(Y.then){let $=Y.then.nodes.at(0),R=Y.then.nodes.at(-1);X.start=J.end??$?.start??q.indexOf("}",Y.expression.end)+1,X.end=R?.end??q.lastIndexOf("}",J.end??Y.expression.end)+1,X.skip=!1}if(Y.catch){let $=Y.catch.nodes.at(0),R=Y.catch.nodes.at(-1);W.start=X.end??J.end??$?.start??q.indexOf("}",Y.expression.end)+1,W.end=R?.end??q.lastIndexOf("}",X.end??J.end??Y.expression.end)+1,W.skip=!1}return{type:"AwaitBlock",start:Y.start,end:Y.end,expression:Y.expression,value:Y.value,error:Y.error,pending:J,then:X,catch:W}},BindDirective(Y){return{...Y,type:"Binding"}},ClassDirective(Y){return{...Y,type:"Class"}},Comment(Y){return{...Y,ignores:W2(Y.start,Y.data,!1)}},ComplexSelector(Y,{next:H}){H();let J=[];for(let X of Y.children){if(X.combinator)J.push(X.combinator);J.push(...X.selectors)}return{type:"Selector",start:Y.start,end:Y.end,children:J}},Component(Y,{visit:H}){return{type:"InlineComponent",start:Y.start,end:Y.end,name:Y.name,attributes:Y.attributes.map((J)=>H(J)),children:Y.fragment.nodes.map((J)=>H(J))}},ConstTag(Y){if(Y.expression!==void 0)return Y;let H=Y,{id:J}={...H.declaration.declarations[0]};return delete J.typeAnnotation,{type:"ConstTag",start:H.start,end:Y.end,expression:{type:"AssignmentExpression",start:(H.declaration.start??0)+6,end:H.declaration.end??0,operator:"=",left:J,right:H.declaration.declarations[0].init}}},DeclarationTag(Y){return Y},KeyBlock(Y,{visit:H}){return S9(Y.fragment.nodes),{type:"KeyBlock",start:Y.start,end:Y.end,expression:Y.expression,children:Y.fragment.nodes.map((J)=>H(J))}},EachBlock(Y,{visit:H}){let J=void 0;if(Y.fallback){let X=Y.fallback.nodes.at(0),W=q.lastIndexOf("{",Y.end-1),$=X?.start??W;S9(Y.fallback.nodes),J={type:"ElseBlock",start:$,end:W,children:Y.fallback.nodes.map((R)=>H(R))}}return S9(Y.body.nodes),{type:"EachBlock",start:Y.start,end:Y.end,children:Y.body.nodes.map((X)=>H(X)),context:Y.context,expression:Y.expression,index:Y.index,key:Y.key,else:J}},ExpressionTag(Y,{path:H}){let J=H.at(-1);if(J?.type==="Attribute"){if(q[J.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:H}){let J=void 0;if(Y.alternate){let W=Y.alternate.nodes;if(W.length===1&&W[0].type==="IfBlock"&&W[0].elseif)W=W[0].consequent.nodes;let $=q.lastIndexOf("{",Y.end-1),R=W.at(0)?.start??$;S9(Y.alternate.nodes),J={type:"ElseBlock",start:R,end:$,children:Y.alternate.nodes.map((z)=>H(z))}}let X=Y.elseif?Y.consequent.nodes[0]?.start??q.lastIndexOf("{",Y.end-1):Y.start;return S9(Y.consequent.nodes),{type:"IfBlock",start:X,end:Y.end,expression:Y.test,children:Y.consequent.nodes.map((W)=>H(W)),else:J,elseif:Y.elseif?!0:void 0}},OnDirective(Y){return{...Y,type:"EventHandler"}},SnippetBlock(Y,{visit:H}){return S9(Y.body.nodes),{type:"SnippetBlock",start:Y.start,end:Y.end,expression:Y.expression,parameters:Y.parameters,children:Y.body.nodes.map((J)=>H(J)),typeParams:Y.typeParams}},SvelteBoundary(Y,{visit:H}){return S9(Y.fragment.nodes),{type:"SvelteBoundary",name:"svelte:boundary",start:Y.start,end:Y.end,attributes:Y.attributes.map((J)=>H(J)),children:Y.fragment.nodes.map((J)=>H(J))}},RegularElement(Y,{visit:H}){return{type:"Element",start:Y.start,end:Y.end,name:Y.name,attributes:Y.attributes.map((J)=>H(J)),children:Y.fragment.nodes.map((J)=>H(J))}},SlotElement(Y,{visit:H}){return{type:"Slot",start:Y.start,end:Y.end,name:Y.name,attributes:Y.attributes.map((J)=>H(J)),children:Y.fragment.nodes.map((J)=>H(J))}},Attribute(Y,{visit:H,next:J,path:X}){if(Y.value!==!0&&!Array.isArray(Y.value)){X.push(Y);let W=[H(Y.value)];return X.pop(),{...Y,value:W}}else return J()},StyleDirective(Y,{visit:H,next:J,path:X}){if(Y.value!==!0&&!Array.isArray(Y.value)){X.push(Y);let W=[H(Y.value)];return X.pop(),{...Y,value:W}}else return J()},SpreadAttribute(Y){return{...Y,type:"Spread"}},StyleSheet(Y,H){return{...Y,...H.next(),type:"Style"}},SvelteBody(Y,{visit:H}){return{type:"Body",name:"svelte:body",start:Y.start,end:Y.end,attributes:Y.attributes.map((J)=>H(J)),children:Y.fragment.nodes.map((J)=>H(J))}},SvelteComponent(Y,{visit:H}){return{type:"InlineComponent",name:"svelte:component",start:Y.start,end:Y.end,expression:Y.expression,attributes:Y.attributes.map((J)=>H(J)),children:Y.fragment.nodes.map((J)=>H(J))}},SvelteDocument(Y,{visit:H}){return{type:"Document",name:"svelte:document",start:Y.start,end:Y.end,attributes:Y.attributes.map((J)=>H(J)),children:Y.fragment.nodes.map((J)=>H(J))}},SvelteElement(Y,{visit:H}){let J=Y.tag;if(J.type==="Literal"&&typeof J.value==="string"&&q[Y.tag.start-1]!=="{")J=J.value;return{type:"Element",name:"svelte:element",start:Y.start,end:Y.end,tag:J,attributes:Y.attributes.map((X)=>H(X)),children:Y.fragment.nodes.map((X)=>H(X))}},SvelteFragment(Y,{visit:H}){return{type:"SlotTemplate",name:"svelte:fragment",start:Y.start,end:Y.end,attributes:Y.attributes.map((J)=>H(J)),children:Y.fragment.nodes.map((J)=>H(J))}},SvelteHead(Y,{visit:H}){return{type:"Head",name:"svelte:head",start:Y.start,end:Y.end,attributes:Y.attributes.map((J)=>H(J)),children:Y.fragment.nodes.map((J)=>H(J))}},SvelteOptions(Y,{visit:H}){return{type:"Options",name:"svelte:options",start:Y.start,end:Y.end,attributes:Y.attributes.map((J)=>H(J))}},SvelteSelf(Y,{visit:H}){return{type:"InlineComponent",name:"svelte:self",start:Y.start,end:Y.end,attributes:Y.attributes.map((J)=>H(J)),children:Y.fragment.nodes.map((J)=>H(J))}},SvelteWindow(Y,{visit:H}){return{type:"Window",name:"svelte:window",start:Y.start,end:Y.end,attributes:Y.attributes.map((J)=>H(J)),children:Y.fragment.nodes.map((J)=>H(J))}},Text(Y,{path:H}){let J=H.at(-1);if(J?.type==="RegularElement"&&J.name==="style")return{type:"Text",start:Y.start,end:Y.end,data:Y.data}},TitleElement(Y,{visit:H}){return{type:"Title",name:"title",start:Y.start,end:Y.end,attributes:Y.attributes.map((J)=>H(J)),children:Y.fragment.nodes.map((J)=>H(J))}},TransitionDirective(Y){return{...Y,type:"Transition"}},UseDirective(Y){return{...Y,type:"Action"}},LetDirective(Y){return{...Y,type:"Let"}}})}var j2={};a4(j2,{version:()=>iJ,tokenizer:()=>ab,tokTypes:()=>L,tokContexts:()=>t8,parseExpressionAt:()=>sb,parse:()=>u3,nonASCIIwhitespace:()=>T3,lineBreakG:()=>zJ,lineBreak:()=>h0,keywordTypes:()=>L2,isNewLine:()=>b9,isIdentifierStart:()=>i0,isIdentifierChar:()=>A1,getLineInfo:()=>f3,defaultOptions:()=>U2,TokenType:()=>g8,Token:()=>I2,TokContext:()=>Q1,SourceLocation:()=>A7,Position:()=>L6,Parser:()=>q0,Node:()=>j7});var zb=[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],$J=[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],Bb="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ--ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・",UJ="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽ-ೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-Ა-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ--ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",I3={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"},j3="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",Mb={5:j3,"5module":j3+" export import",6:j3+" const class extends export import super"},RJ=/^in(stanceof)?$/,Lb=new RegExp("["+UJ+"]"),Pb=new RegExp("["+UJ+Bb+"]");function D3(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 i0(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&&Lb.test(String.fromCharCode(q));if(Z===!1)return!1;return D3(q,$J)}function A1(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&&Pb.test(String.fromCharCode(q));if(Z===!1)return!1;return D3(q,$J)||D3(q,zb)}var g8=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 q1(q,Z){return new g8(q,{beforeExpr:!0,binop:Z})}var Z1={beforeExpr:!0},l0={startsExpr:!0},L2={};function h8(q,Z){if(Z===void 0)Z={};return Z.keyword=q,L2[q]=new g8(q,Z)}var L={num:new g8("num",l0),regexp:new g8("regexp",l0),string:new g8("string",l0),name:new g8("name",l0),privateId:new g8("privateId",l0),eof:new g8("eof"),bracketL:new g8("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new g8("]"),braceL:new g8("{",{beforeExpr:!0,startsExpr:!0}),braceR:new g8("}"),parenL:new g8("(",{beforeExpr:!0,startsExpr:!0}),parenR:new g8(")"),comma:new g8(",",Z1),semi:new g8(";",Z1),colon:new g8(":",Z1),dot:new g8("."),question:new g8("?",Z1),questionDot:new g8("?."),arrow:new g8("=>",Z1),template:new g8("template"),invalidTemplate:new g8("invalidTemplate"),ellipsis:new g8("...",Z1),backQuote:new g8("`",l0),dollarBraceL:new g8("${",{beforeExpr:!0,startsExpr:!0}),eq:new g8("=",{beforeExpr:!0,isAssign:!0}),assign:new g8("_=",{beforeExpr:!0,isAssign:!0}),incDec:new g8("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new g8("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:q1("||",1),logicalAND:q1("&&",2),bitwiseOR:q1("|",3),bitwiseXOR:q1("^",4),bitwiseAND:q1("&",5),equality:q1("==/!=/===/!==",6),relational:q1("</>/<=/>=",7),bitShift:q1("<</>>/>>>",8),plusMin:new g8("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:q1("%",10),star:q1("*",10),slash:q1("/",10),starstar:new g8("**",{beforeExpr:!0}),coalesce:q1("??",1),_break:h8("break"),_case:h8("case",Z1),_catch:h8("catch"),_continue:h8("continue"),_debugger:h8("debugger"),_default:h8("default",Z1),_do:h8("do",{isLoop:!0,beforeExpr:!0}),_else:h8("else",Z1),_finally:h8("finally"),_for:h8("for",{isLoop:!0}),_function:h8("function",l0),_if:h8("if"),_return:h8("return",Z1),_switch:h8("switch"),_throw:h8("throw",Z1),_try:h8("try"),_var:h8("var"),_const:h8("const"),_while:h8("while",{isLoop:!0}),_with:h8("with"),_new:h8("new",{beforeExpr:!0,startsExpr:!0}),_this:h8("this",l0),_super:h8("super",l0),_class:h8("class",l0),_extends:h8("extends",Z1),_export:h8("export"),_import:h8("import",l0),_null:h8("null",l0),_true:h8("true",l0),_false:h8("false",l0),_in:h8("in",{beforeExpr:!0,binop:7}),_instanceof:h8("instanceof",{beforeExpr:!0,binop:7}),_typeof:h8("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:h8("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:h8("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},h0=/\r\n?|\n|\u2028|\u2029/,zJ=new RegExp(h0.source,"g");function b9(q){return q===10||q===13||q===8232||q===8233}function BJ(q,Z,Q){if(Q===void 0)Q=q.length;for(var Y=Z;Y<Q;Y++){var H=q.charCodeAt(Y);if(b9(H))return Y<Q-1&&H===13&&q.charCodeAt(Y+1)===10?Y+2:Y+1}return-1}var T3=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,D0=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,MJ=Object.prototype,Ob=MJ.hasOwnProperty,wb=MJ.toString,P6=Object.hasOwn||function(q,Z){return Ob.call(q,Z)},XJ=Array.isArray||function(q){return wb.call(q)==="[object Array]"},VJ=Object.create(null);function W9(q){return VJ[q]||(VJ[q]=new RegExp("^(?:"+q.replace(/ /g,"|")+")$"))}function s1(q){if(q<=65535)return String.fromCharCode(q);return q-=65536,String.fromCharCode((q>>10)+55296,(q&1023)+56320)}var Ab=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,L6=function(Z,Q){this.line=Z,this.column=Q};L6.prototype.offset=function(Z){return new L6(this.line,this.column+Z)};var A7=function(Z,Q,Y){if(this.start=Q,this.end=Y,Z.sourceFile!==null)this.source=Z.sourceFile};function f3(q,Z){for(var Q=1,Y=0;;){var H=BJ(q,Y,Z);if(H<0)return new L6(Q,Z-Y);++Q,Y=H}}var U2={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},GJ=!1;function Ib(q){var Z={};for(var Q in U2)Z[Q]=q&&P6(q,Q)?q[Q]:U2[Q];if(Z.ecmaVersion==="latest")Z.ecmaVersion=1e8;else if(Z.ecmaVersion==null){if(!GJ&&typeof console==="object"&&console.warn)GJ=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
|
|
44
|
-
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(XJ(Z.onToken)){var Y=Z.onToken;Z.onToken=function(H){return Y.push(H)}}if(XJ(Z.onComment))Z.onComment=jb(Z,Z.onComment);if(Z.sourceType==="commonjs"&&Z.allowAwaitOutsideFunction)throw Error("Cannot use allowAwaitOutsideFunction with sourceType: commonjs");return Z}function jb(q,Z){return function(Q,Y,H,J,X,W){var $={type:Q?"Block":"Line",value:Y,start:H,end:J};if(q.locations)$.loc=new A7(this,X,W);if(q.ranges)$.range=[H,J];Z.push($)}}var u9=1,h9=2,K3=4,LJ=8,v3=16,PJ=32,P2=64,OJ=128,_9=256,I7=512,wJ=1024,O2=u9|h9|_9;function k3(q,Z){return h9|(q?K3:0)|(Z?LJ:0)}var R2=0,N3=1,o1=2,AJ=3,IJ=4,jJ=5,q0=function(Z,Q,Y){this.options=Z=Ib(Z),this.sourceFile=Z.sourceFile,this.keywords=W9(Mb[Z.ecmaVersion>=6?6:Z.sourceType==="module"?"5module":5]);var H="";if(Z.allowReserved!==!0){if(H=I3[Z.ecmaVersion>=6?6:Z.ecmaVersion===5?5:3],Z.sourceType==="module")H+=" await"}this.reservedWords=W9(H);var J=(H?H+" ":"")+I3.strict;if(this.reservedWordsStrict=W9(J),this.reservedWordsStrictBind=W9(J+" "+I3.strictBind),this.input=String(Q),this.containsEsc=!1,Y)this.pos=Y,this.lineStart=this.input.lastIndexOf(`
|
|
45
|
-
`,Y-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(h0).length;else this.pos=this.lineStart=0,this.curLine=1;if(this.type=L.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"?h9:u9),this.regexpState=null,this.privateNameStack=[]},H1={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}};q0.prototype.parse=function(){var Z=this,Q=this.options.program||this.startNode();return this.nextToken(),this.catchStackOverflow(function(){return Z.parseTopLevel(Q)})};H1.inFunction.get=function(){return(this.currentVarScope().flags&h9)>0};H1.inGenerator.get=function(){return(this.currentVarScope().flags&LJ)>0};H1.inAsync.get=function(){return(this.currentVarScope().flags&K3)>0};H1.canAwait.get=function(){for(var q=this.scopeStack.length-1;q>=0;q--){var Z=this.scopeStack[q],Q=Z.flags;if(Q&(_9|I7))return!1;if(Q&h9)return(Q&K3)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction};H1.allowReturn.get=function(){if(this.inFunction)return!0;if(this.options.allowReturnOutsideFunction&&this.currentVarScope().flags&u9)return!0;return!1};H1.allowSuper.get=function(){var q=this.currentThisScope(),Z=q.flags;return(Z&P2)>0||this.options.allowSuperOutsideMethod};H1.allowDirectSuper.get=function(){return(this.currentThisScope().flags&OJ)>0};H1.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())};H1.allowNewDotTarget.get=function(){for(var q=this.scopeStack.length-1;q>=0;q--){var Z=this.scopeStack[q],Q=Z.flags;if(Q&(_9|I7)||Q&h9&&!(Q&v3))return!0}return!1};H1.allowUsing.get=function(){var q=this.currentScope(),Z=q.flags;if(Z&wJ)return!1;if(!this.inModule&&Z&u9)return!1;return!0};H1.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&_9)>0};q0.extend=function(){var Z=[],Q=arguments.length;while(Q--)Z[Q]=arguments[Q];var Y=this;for(var H=0;H<Z.length;H++)Y=Z[H](Y);return Y};q0.parse=function(Z,Q){return new this(Q,Z).parse()};q0.parseExpressionAt=function(Z,Q,Y){var H=new this(Y,Z,Q);return H.nextToken(),H.parseExpression()};q0.tokenizer=function(Z,Q){return new this(Q,Z)};Object.defineProperties(q0.prototype,H1);var K0=q0.prototype,Db=/^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;K0.strictDirective=function(q){if(this.options.ecmaVersion<5)return!1;for(;;){D0.lastIndex=q,q+=D0.exec(this.input)[0].length;var Z=Db.exec(this.input.slice(q));if(!Z)return!1;if((Z[1]||Z[2])==="use strict"){D0.lastIndex=q+Z[0].length;var Q=D0.exec(this.input),Y=Q.index+Q[0].length,H=this.input.charAt(Y);return H===";"||H==="}"||h0.test(Q[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(H)||H==="!"&&this.input.charAt(Y+1)==="=")}if(q+=Z[0].length,D0.lastIndex=q,q+=D0.exec(this.input)[0].length,this.input[q]===";")q++}};K0.eat=function(q){if(this.type===q)return this.next(),!0;else return!1};K0.isContextual=function(q){return this.type===L.name&&this.value===q&&!this.containsEsc};K0.eatContextual=function(q){if(!this.isContextual(q))return!1;return this.next(),!0};K0.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}};K0.expectContextual=function(q){if(!this.eatContextual(q))this.unexpected()};K0.canInsertSemicolon=function(){return this.type===L.eof||this.type===L.braceR||h0.test(this.input.slice(this.lastTokEnd,this.start))};K0.insertSemicolon=function(){if(this.canInsertSemicolon()){if(this.options.onInsertedSemicolon)this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc);return!0}};K0.semicolon=function(){if(!this.eat(L.semi)&&!this.insertSemicolon())this.unexpected()};K0.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}};K0.expect=function(q){this.eat(q)||this.unexpected()};K0.unexpected=function(q){this.raise(q!=null?q:this.start,"Unexpected token")};var w2=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};K0.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")};K0.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")};K0.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")};K0.isSimpleAssignTarget=function(q){if(q.type==="ParenthesizedExpression")return this.isSimpleAssignTarget(q.expression);return q.type==="Identifier"||q.type==="MemberExpression"};var V8=q0.prototype;V8.parseTopLevel=function(q){var Z=Object.create(null);if(!q.body)q.body=[];while(this.type!==L.eof){var Q=this.parseStatement(null,!0,Z);q.body.push(Q)}if(this.inModule)for(var Y=0,H=Object.keys(this.undefinedExports);Y<H.length;Y+=1){var J=H[Y];this.raiseRecoverable(this.undefinedExports[J].start,"Export '"+J+"' 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 S3={kind:"loop"},Cb={kind:"switch"};V8.isLet=function(q){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;D0.lastIndex=this.pos;var Z=D0.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(i0(Y)){var H=Q;do Q+=Y<=65535?1:2;while(A1(Y=this.fullCharCodeAt(Q)));if(Y===92)return!0;var J=this.input.slice(H,Q);if(!RJ.test(J))return!0}return!1};V8.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;D0.lastIndex=this.pos;var q=D0.exec(this.input),Z=this.pos+q[0].length,Q;return!h0.test(this.input.slice(this.pos,Z))&&this.input.slice(Z,Z+8)==="function"&&(Z+8===this.input.length||!(A1(Q=this.fullCharCodeAt(Z+8))||Q===92))};V8.isUsingKeyword=function(q,Z){if(this.options.ecmaVersion<17||!this.isContextual(q?"await":"using"))return!1;D0.lastIndex=this.pos;var Q=D0.exec(this.input),Y=this.pos+Q[0].length;if(h0.test(this.input.slice(this.pos,Y)))return!1;if(q){var H=Y+5,J;if(this.input.slice(Y,H)!=="using"||H===this.input.length||A1(J=this.fullCharCodeAt(H))||J===92)return!1;D0.lastIndex=H;var X=D0.exec(this.input);if(Y=H+X[0].length,X&&h0.test(this.input.slice(H,Y)))return!1}var W=this.fullCharCodeAt(Y);if(!i0(W)&&W!==92)return!1;var $=Y;do Y+=W<=65535?1:2;while(A1(W=this.fullCharCodeAt(Y)));if(W===92)return!0;var R=this.input.slice($,Y);if(RJ.test(R))return!1;if(Z&&!q&&R==="of"){D0.lastIndex=Y;var z=D0.exec(this.input);if(Y=Y+z[0].length,this.input.charCodeAt(Y)!==61||(W=this.input.charCodeAt(Y+1))===61||W===62)return!1}return!0};V8.isAwaitUsing=function(q){return this.isUsingKeyword(!0,q)};V8.isUsing=function(q){return this.isUsingKeyword(!1,q)};V8.parseStatement=function(q,Z,Q){var Y=this.type,H=this.startNode(),J;if(this.isLet(q))Y=L._var,J="let";switch(Y){case L._break:case L._continue:return this.parseBreakContinueStatement(H,Y.keyword);case L._debugger:return this.parseDebuggerStatement(H);case L._do:return this.parseDoStatement(H);case L._for:return this.parseForStatement(H);case L._function:if(q&&(this.strict||q!=="if"&&q!=="label")&&this.options.ecmaVersion>=6)this.unexpected();return this.parseFunctionStatement(H,!1,!q);case L._class:if(q)this.unexpected();return this.parseClass(H,!0);case L._if:return this.parseIfStatement(H);case L._return:return this.parseReturnStatement(H);case L._switch:return this.parseSwitchStatement(H);case L._throw:return this.parseThrowStatement(H);case L._try:return this.parseTryStatement(H);case L._const:case L._var:if(J=J||this.value,q&&J!=="var")this.unexpected();return this.parseVarStatement(H,J);case L._while:return this.parseWhileStatement(H);case L._with:return this.parseWithStatement(H);case L.braceL:return this.parseBlock(!0,H);case L.semi:return this.parseEmptyStatement(H);case L._export:case L._import:if(this.options.ecmaVersion>10&&Y===L._import){D0.lastIndex=this.pos;var X=D0.exec(this.input),W=this.pos+X[0].length,$=this.input.charCodeAt(W);if($===40||$===46)return this.parseExpressionStatement(H,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===L._import?this.parseImport(H):this.parseExport(H,Q);default:if(this.isAsyncFunction()){if(q)this.unexpected();return this.next(),this.parseFunctionStatement(H,!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(H,!1,R),this.semicolon(),this.finishNode(H,"VariableDeclaration")}var z=this.value,O=this.parseExpression();if(Y===L.name&&O.type==="Identifier"&&this.eat(L.colon))return this.parseLabeledStatement(H,z,O,q);else return this.parseExpressionStatement(H,O)}};V8.parseBreakContinueStatement=function(q,Z){var Q=Z==="break";if(this.next(),this.eat(L.semi)||this.insertSemicolon())q.label=null;else if(this.type!==L.name)this.unexpected();else q.label=this.parseIdent(),this.semicolon();var Y=0;for(;Y<this.labels.length;++Y){var H=this.labels[Y];if(q.label==null||H.name===q.label.name){if(H.kind!=null&&(Q||H.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")};V8.parseDebuggerStatement=function(q){return this.next(),this.semicolon(),this.finishNode(q,"DebuggerStatement")};V8.parseDoStatement=function(q){if(this.next(),this.labels.push(S3),q.body=this.parseStatement("do"),this.labels.pop(),this.expect(L._while),q.test=this.parseParenExpression(),this.options.ecmaVersion>=6)this.eat(L.semi);else this.semicolon();return this.finishNode(q,"DoWhileStatement")};V8.parseForStatement=function(q){this.next();var Z=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(S3),this.enterScope(0),this.expect(L.parenL),this.type===L.semi){if(Z>-1)this.unexpected(Z);return this.parseFor(q,null)}var Q=this.isLet();if(this.type===L._var||this.type===L._const||Q){var Y=this.startNode(),H=Q?"let":this.value;return this.next(),this.parseVar(Y,!0,H),this.finishNode(Y,"VariableDeclaration"),this.parseForAfterInit(q,Y,Z)}var J=this.isContextual("let"),X=!1,W=this.isUsing(!0)?"using":this.isAwaitUsing(!0)?"await using":null;if(W){var $=this.startNode();if(this.next(),W==="await using"){if(!this.canAwait)this.raise(this.start,"Await using cannot appear outside of async function");this.next()}return this.parseVar($,!0,W),this.finishNode($,"VariableDeclaration"),this.parseForAfterInit(q,$,Z)}var R=this.containsEsc,z=new w2,O=this.start,P=Z>-1?this.parseExprSubscripts(z,"await"):this.parseExpression(!0,z);if(this.type===L._in||(X=this.options.ecmaVersion>=6&&this.isContextual("of"))){if(Z>-1){if(this.type===L._in)this.unexpected(Z);q.await=!0}else if(X&&this.options.ecmaVersion>=8){if(P.start===O&&!R&&P.type==="Identifier"&&P.name==="async")this.unexpected();else if(this.options.ecmaVersion>=9)q.await=!1}if(J&&X)this.raise(P.start,"The left-hand side of a for-of loop may not start with 'let'.");return this.toAssignable(P,!1,z),this.checkLValPattern(P),this.parseForIn(q,P)}else this.checkExpressionErrors(z,!0);if(Z>-1)this.unexpected(Z);return this.parseFor(q,P)};V8.parseForAfterInit=function(q,Z,Q){if((this.type===L._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&Z.declarations.length===1){if(this.type===L._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)};V8.parseFunctionStatement=function(q,Z,Q){return this.next(),this.parseFunction(q,w7|(Q?0:C3),!1,Z)};V8.parseIfStatement=function(q){return this.next(),q.test=this.parseParenExpression(),q.consequent=this.parseStatement("if"),q.alternate=this.eat(L._else)?this.parseStatement("if"):null,this.finishNode(q,"IfStatement")};V8.parseReturnStatement=function(q){if(!this.allowReturn)this.raise(this.start,"'return' outside of function");if(this.next(),this.eat(L.semi)||this.insertSemicolon())q.argument=null;else q.argument=this.parseExpression(),this.semicolon();return this.finishNode(q,"ReturnStatement")};V8.parseSwitchStatement=function(q){this.next(),q.discriminant=this.parseParenExpression(),q.cases=[],this.expect(L.braceL),this.labels.push(Cb),this.enterScope(wJ);var Z;for(var Q=!1;this.type!==L.braceR;)if(this.type===L._case||this.type===L._default){var Y=this.type===L._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(L.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")};V8.parseThrowStatement=function(q){if(this.next(),h0.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 Eb=[];V8.parseCatchClauseParam=function(){var q=this.parseBindingAtom(),Z=q.type==="Identifier";return this.enterScope(Z?PJ:0),this.checkLValPattern(q,Z?IJ:o1),this.expect(L.parenR),q};V8.parseTryStatement=function(q){if(this.next(),q.block=this.parseBlock(),q.handler=null,this.type===L._catch){var Z=this.startNode();if(this.next(),this.eat(L.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(L._finally)?this.parseBlock():null,!q.handler&&!q.finalizer)this.raise(q.start,"Missing catch or finally clause");return this.finishNode(q,"TryStatement")};V8.parseVarStatement=function(q,Z,Q){return this.next(),this.parseVar(q,!1,Z,Q),this.semicolon(),this.finishNode(q,"VariableDeclaration")};V8.parseWhileStatement=function(q){return this.next(),q.test=this.parseParenExpression(),this.labels.push(S3),q.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(q,"WhileStatement")};V8.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")};V8.parseEmptyStatement=function(q){return this.next(),this.finishNode(q,"EmptyStatement")};V8.parseLabeledStatement=function(q,Z,Q,Y){for(var H=0,J=this.labels;H<J.length;H+=1){var X=J[H];if(X.name===Z)this.raise(Q.start,"Label '"+Z+"' is already declared")}var W=this.type.isLoop?"loop":this.type===L._switch?"switch":null;for(var $=this.labels.length-1;$>=0;$--){var R=this.labels[$];if(R.statementStart===q.start)R.statementStart=this.start,R.kind=W;else break}return this.labels.push({name:Z,kind:W,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")};V8.parseExpressionStatement=function(q,Z){return q.expression=Z,this.semicolon(),this.finishNode(q,"ExpressionStatement")};V8.parseBlock=function(q,Z,Q){if(q===void 0)q=!0;if(Z===void 0)Z=this.startNode();if(Z.body=[],this.expect(L.braceL),q)this.enterScope(0);while(this.type!==L.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")};V8.parseFor=function(q,Z){return q.init=Z,this.expect(L.semi),q.test=this.type===L.semi?null:this.parseExpression(),this.expect(L.semi),q.update=this.type===L.parenR?null:this.parseExpression(),this.expect(L.parenR),q.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(q,"ForStatement")};V8.parseForIn=function(q,Z){var Q=this.type===L._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(L.parenR),q.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(q,Q?"ForInStatement":"ForOfStatement")};V8.parseVar=function(q,Z,Q,Y){q.declarations=[],q.kind=Q;for(;;){var H=this.startNode();if(this.parseVarId(H,Q),this.eat(L.eq))H.init=this.parseMaybeAssign(Z);else if(!Y&&Q==="const"&&!(this.type===L._in||this.options.ecmaVersion>=6&&this.isContextual("of")))this.unexpected();else if(!Y&&(Q==="using"||Q==="await using")&&this.options.ecmaVersion>=17&&this.type!==L._in&&!this.isContextual("of"))this.raise(this.lastTokEnd,"Missing initializer in "+Q+" declaration");else if(!Y&&H.id.type!=="Identifier"&&!(Z&&(this.type===L._in||this.isContextual("of"))))this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value");else H.init=null;if(q.declarations.push(this.finishNode(H,"VariableDeclarator")),!this.eat(L.comma))break}return q};V8.parseVarId=function(q,Z){q.id=Z==="using"||Z==="await using"?this.parseIdent():this.parseBindingAtom(),this.checkLValPattern(q.id,Z==="var"?N3:o1,!1)};var w7=1,C3=2,DJ=4;V8.parseFunction=function(q,Z,Q,Y,H){if(this.initFunction(q),this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!Y){if(this.type===L.star&&Z&C3)this.unexpected();q.generator=this.eat(L.star)}if(this.options.ecmaVersion>=8)q.async=!!Y;if(Z&w7){if(q.id=Z&DJ&&this.type!==L.name?null:this.parseIdent(),q.id&&!(Z&C3))this.checkLValSimple(q.id,this.strict||q.generator||q.async?this.treatFunctionsAsVar?N3:o1:AJ)}var J=this.yieldPos,X=this.awaitPos,W=this.awaitIdentPos;if(this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(k3(q.async,q.generator)),!(Z&w7))q.id=this.type===L.name?this.parseIdent():null;return this.parseFunctionParams(q),this.parseFunctionBody(q,Q,!1,H),this.yieldPos=J,this.awaitPos=X,this.awaitIdentPos=W,this.finishNode(q,Z&w7?"FunctionDeclaration":"FunctionExpression")};V8.parseFunctionParams=function(q){this.expect(L.parenL),q.params=this.parseBindingList(L.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()};V8.parseClass=function(q,Z){this.next();var Q=this.strict;this.strict=!0,this.parseClassId(q,Z),this.parseClassSuper(q);var Y=this.enterClassBody(),H=this.startNode(),J=!1;H.body=[],this.expect(L.braceL);while(this.type!==L.braceR){var X=this.parseClassElement(q.superClass!==null);if(X){if(H.body.push(X),X.type==="MethodDefinition"&&X.kind==="constructor"){if(J)this.raiseRecoverable(X.start,"Duplicate constructor in the same class");J=!0}else if(X.key&&X.key.type==="PrivateIdentifier"&&Fb(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(H,"ClassBody"),this.exitClassBody(),this.finishNode(q,Z?"ClassDeclaration":"ClassExpression")};V8.parseClassElement=function(q){if(this.eat(L.semi))return null;var Z=this.options.ecmaVersion,Q=this.startNode(),Y="",H=!1,J=!1,X="method",W=!1;if(this.eatContextual("static")){if(Z>=13&&this.eat(L.braceL))return this.parseClassStaticBlock(Q),Q;if(this.isClassElementNameStart()||this.type===L.star)W=!0;else Y="static"}if(Q.static=W,!Y&&Z>=8&&this.eatContextual("async"))if((this.isClassElementNameStart()||this.type===L.star)&&!this.canInsertSemicolon())J=!0;else Y="async";if(!Y&&(Z>=9||!J)&&this.eat(L.star))H=!0;if(!Y&&!J&&!H){var $=this.value;if(this.eatContextual("get")||this.eatContextual("set"))if(this.isClassElementNameStart())X=$;else Y=$}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===L.parenL||X!=="method"||H||J){var R=!Q.static&&z2(Q,"constructor"),z=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,H,J,z)}else this.parseClassField(Q);return Q};V8.isClassElementNameStart=function(){return this.type===L.name||this.type===L.privateId||this.type===L.num||this.type===L.string||this.type===L.bracketL||this.type.keyword};V8.parseClassElementName=function(q){if(this.type===L.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)};V8.parseClassMethod=function(q,Z,Q,Y){var H=q.key;if(q.kind==="constructor"){if(Z)this.raise(H.start,"Constructor can't be a generator");if(Q)this.raise(H.start,"Constructor can't be an async method")}else if(q.static&&z2(q,"prototype"))this.raise(H.start,"Classes may not have a static property named prototype");var J=q.value=this.parseMethod(Z,Q,Y);if(q.kind==="get"&&J.params.length!==0)this.raiseRecoverable(J.start,"getter should have no params");if(q.kind==="set"&&J.params.length!==1)this.raiseRecoverable(J.start,"setter should have exactly one param");if(q.kind==="set"&&J.params[0].type==="RestElement")this.raiseRecoverable(J.params[0].start,"Setter cannot use rest params");return this.finishNode(q,"MethodDefinition")};V8.parseClassField=function(q){if(z2(q,"constructor"))this.raise(q.key.start,"Classes can't have a field named 'constructor'");else if(q.static&&z2(q,"prototype"))this.raise(q.key.start,"Classes can't have a static field named 'prototype'");if(this.eat(L.eq))this.enterScope(I7|P2),q.value=this.parseMaybeAssign(),this.exitScope();else q.value=null;return this.semicolon(),this.finishNode(q,"PropertyDefinition")};V8.parseClassStaticBlock=function(q){q.body=[];var Z=this.labels;this.labels=[],this.enterScope(_9|P2);while(this.type!==L.braceR){var Q=this.parseStatement(null);q.body.push(Q)}return this.next(),this.exitScope(),this.labels=Z,this.finishNode(q,"StaticBlock")};V8.parseClassId=function(q,Z){if(this.type===L.name){if(q.id=this.parseIdent(),Z)this.checkLValSimple(q.id,o1,!1)}else{if(Z===!0)this.unexpected();q.id=null}};V8.parseClassSuper=function(q){q.superClass=this.eat(L._extends)?this.parseExprSubscripts(null,!1):null};V8.enterClassBody=function(){var q={declared:Object.create(null),used:[]};return this.privateNameStack.push(q),q.declared};V8.exitClassBody=function(){var q=this.privateNameStack.pop(),Z=q.declared,Q=q.used;if(!this.options.checkPrivateFields)return;var Y=this.privateNameStack.length,H=Y===0?null:this.privateNameStack[Y-1];for(var J=0;J<Q.length;++J){var X=Q[J];if(!P6(Z,X.name))if(H)H.used.push(X);else this.raiseRecoverable(X.start,"Private field '#"+X.name+"' must be declared in an enclosing class")}};function Fb(q,Z){var Q=Z.key.name,Y=q[Q],H="true";if(Z.type==="MethodDefinition"&&(Z.kind==="get"||Z.kind==="set"))H=(Z.static?"s":"i")+Z.kind;if(Y==="iget"&&H==="iset"||Y==="iset"&&H==="iget"||Y==="sget"&&H==="sset"||Y==="sset"&&H==="sget")return q[Q]="true",!1;else if(!Y)return q[Q]=H,!1;else return!0}function z2(q,Z){var{computed:Q,key:Y}=q;return!Q&&(Y.type==="Identifier"&&Y.name===Z||Y.type==="Literal"&&Y.value===Z)}V8.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!==L.string)this.unexpected();if(q.source=this.parseExprAtom(),this.options.ecmaVersion>=16)q.attributes=this.parseWithClause();return this.semicolon(),this.finishNode(q,"ExportAllDeclaration")};V8.parseExport=function(q,Z){if(this.next(),this.eat(L.star))return this.parseExportAllDeclaration(q,Z);if(this.eat(L._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!==L.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 H=Y[Q];if(this.checkUnreserved(H.local),this.checkLocalExport(H.local),H.local.type==="Literal")this.raise(H.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")};V8.parseExportDeclaration=function(q){return this.parseStatement(null)};V8.parseExportDefaultDeclaration=function(){var q;if(this.type===L._function||(q=this.isAsyncFunction())){var Z=this.startNode();if(this.next(),q)this.next();return this.parseFunction(Z,w7|DJ,!1,q)}else if(this.type===L._class){var Q=this.startNode();return this.parseClass(Q,"nullableID")}else{var Y=this.parseMaybeAssign();return this.semicolon(),Y}};V8.checkExport=function(q,Z,Q){if(!q)return;if(typeof Z!=="string")Z=Z.type==="Identifier"?Z.name:Z.value;if(P6(q,Z))this.raiseRecoverable(Q,"Duplicate export '"+Z+"'");q[Z]=!0};V8.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,H=Z.properties;Y<H.length;Y+=1){var J=H[Y];this.checkPatternExport(q,J)}else if(Q==="ArrayPattern")for(var X=0,W=Z.elements;X<W.length;X+=1){var $=W[X];if($)this.checkPatternExport(q,$)}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)};V8.checkVariableExport=function(q,Z){if(!q)return;for(var Q=0,Y=Z;Q<Y.length;Q+=1){var H=Y[Q];this.checkPatternExport(q,H.id)}};V8.shouldParseExportStatement=function(){return this.type.keyword==="var"||this.type.keyword==="const"||this.type.keyword==="class"||this.type.keyword==="function"||this.isLet()||this.isAsyncFunction()};V8.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")};V8.parseExportSpecifiers=function(q){var Z=[],Q=!0;this.expect(L.braceL);while(!this.eat(L.braceR)){if(!Q){if(this.expect(L.comma),this.afterTrailingComma(L.braceR))break}else Q=!1;Z.push(this.parseExportSpecifier(q))}return Z};V8.parseImport=function(q){if(this.next(),this.type===L.string)q.specifiers=Eb,q.source=this.parseExprAtom();else q.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),q.source=this.type===L.string?this.parseExprAtom():this.unexpected();if(this.options.ecmaVersion>=16)q.attributes=this.parseWithClause();return this.semicolon(),this.finishNode(q,"ImportDeclaration")};V8.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,o1),this.finishNode(q,"ImportSpecifier")};V8.parseImportDefaultSpecifier=function(){var q=this.startNode();return q.local=this.parseIdent(),this.checkLValSimple(q.local,o1),this.finishNode(q,"ImportDefaultSpecifier")};V8.parseImportNamespaceSpecifier=function(){var q=this.startNode();return this.next(),this.expectContextual("as"),q.local=this.parseIdent(),this.checkLValSimple(q.local,o1),this.finishNode(q,"ImportNamespaceSpecifier")};V8.parseImportSpecifiers=function(){var q=[],Z=!0;if(this.type===L.name){if(q.push(this.parseImportDefaultSpecifier()),!this.eat(L.comma))return q}if(this.type===L.star)return q.push(this.parseImportNamespaceSpecifier()),q;this.expect(L.braceL);while(!this.eat(L.braceR)){if(!Z){if(this.expect(L.comma),this.afterTrailingComma(L.braceR))break}else Z=!1;q.push(this.parseImportSpecifier())}return q};V8.parseWithClause=function(){var q=[];if(!this.eat(L._with))return q;this.expect(L.braceL);var Z={},Q=!0;while(!this.eat(L.braceR)){if(!Q){if(this.expect(L.comma),this.afterTrailingComma(L.braceR))break}else Q=!1;var Y=this.parseImportAttribute(),H=Y.key.type==="Identifier"?Y.key.name:Y.key.value;if(P6(Z,H))this.raiseRecoverable(Y.key.start,"Duplicate attribute key '"+H+"'");Z[H]=!0,q.push(Y)}return q};V8.parseImportAttribute=function(){var q=this.startNode();if(q.key=this.type===L.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never"),this.expect(L.colon),this.type!==L.string)this.unexpected();return q.value=this.parseExprAtom(),this.finishNode(q,"ImportAttribute")};V8.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===L.string){var q=this.parseLiteral(this.value);if(Ab.test(q.value))this.raise(q.start,"An export name cannot include a lone surrogate.");return q}return this.parseIdent(!0)};V8.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)};V8.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 J1=q0.prototype;J1.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,H=q.properties;Y<H.length;Y+=1){var J=H[Y];if(this.toAssignable(J,Z),J.type==="RestElement"&&(J.argument.type==="ArrayPattern"||J.argument.type==="ObjectPattern"))this.raise(J.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};J1.toAssignableList=function(q,Z){var Q=q.length;for(var Y=0;Y<Q;Y++){var H=q[Y];if(H)this.toAssignable(H,Z)}if(Q){var J=q[Q-1];if(this.options.ecmaVersion===6&&Z&&J&&J.type==="RestElement"&&J.argument.type!=="Identifier")this.unexpected(J.argument.start)}return q};J1.parseSpread=function(q){var Z=this.startNode();return this.next(),Z.argument=this.parseMaybeAssign(!1,q),this.finishNode(Z,"SpreadElement")};J1.parseRestBinding=function(){var q=this.startNode();if(this.next(),this.options.ecmaVersion===6&&this.type!==L.name)this.unexpected();return q.argument=this.parseBindingAtom(),this.finishNode(q,"RestElement")};J1.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case L.bracketL:var q=this.startNode();return this.next(),q.elements=this.parseBindingList(L.bracketR,!0,!0),this.finishNode(q,"ArrayPattern");case L.braceL:return this.parseObj(!0)}return this.parseIdent()};J1.parseBindingList=function(q,Z,Q,Y){var H=[],J=!0;while(!this.eat(q)){if(J)J=!1;else this.expect(L.comma);if(Z&&this.type===L.comma)H.push(null);else if(Q&&this.afterTrailingComma(q))break;else if(this.type===L.ellipsis){var X=this.parseRestBinding();if(this.parseBindingListItem(X),H.push(X),this.type===L.comma)this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");this.expect(q);break}else H.push(this.parseAssignableListItem(Y))}return H};J1.parseAssignableListItem=function(q){var Z=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(Z),Z};J1.parseBindingListItem=function(q){return q};J1.parseMaybeDefault=function(q,Z,Q){if(Q=Q||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(L.eq))return Q;var Y=this.startNodeAt(q,Z);return Y.left=Q,Y.right=this.parseMaybeAssign(),this.finishNode(Y,"AssignmentPattern")};J1.checkLValSimple=function(q,Z,Q){if(Z===void 0)Z=R2;var Y=Z!==R2;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===o1&&q.name==="let")this.raiseRecoverable(q.start,"let is disallowed as a lexically bound name");if(Q){if(P6(Q,q.name))this.raiseRecoverable(q.start,"Argument name clash");Q[q.name]=!0}if(Z!==jJ)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")}};J1.checkLValPattern=function(q,Z,Q){if(Z===void 0)Z=R2;switch(q.type){case"ObjectPattern":for(var Y=0,H=q.properties;Y<H.length;Y+=1){var J=H[Y];this.checkLValInnerPattern(J,Z,Q)}break;case"ArrayPattern":for(var X=0,W=q.elements;X<W.length;X+=1){var $=W[X];if($)this.checkLValInnerPattern($,Z,Q)}break;default:this.checkLValSimple(q,Z,Q)}};J1.checkLValInnerPattern=function(q,Z,Q){if(Z===void 0)Z=R2;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 Q1=function(Z,Q,Y,H,J){this.token=Z,this.isExpr=!!Q,this.preserveSpace=!!Y,this.override=H,this.generator=!!J},t8={b_stat:new Q1("{",!1),b_expr:new Q1("{",!0),b_tmpl:new Q1("${",!1),p_stat:new Q1("(",!1),p_expr:new Q1("(",!0),q_tmpl:new Q1("`",!0,!0,function(q){return q.tryReadTemplateToken()}),f_stat:new Q1("function",!1),f_expr:new Q1("function",!0),f_expr_gen:new Q1("function",!0,!1,null,!0),f_gen:new Q1("function",!1,!1,null,!0)},O6=q0.prototype;O6.initialContext=function(){return[t8.b_stat]};O6.curContext=function(){return this.context[this.context.length-1]};O6.braceIsBlock=function(q){var Z=this.curContext();if(Z===t8.f_expr||Z===t8.f_stat)return!0;if(q===L.colon&&(Z===t8.b_stat||Z===t8.b_expr))return!Z.isExpr;if(q===L._return||q===L.name&&this.exprAllowed)return h0.test(this.input.slice(this.lastTokEnd,this.start));if(q===L._else||q===L.semi||q===L.eof||q===L.parenR||q===L.arrow)return!0;if(q===L.braceL)return Z===t8.b_stat;if(q===L._var||q===L._const||q===L.name)return!1;return!this.exprAllowed};O6.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};O6.updateContext=function(q){var Z,Q=this.type;if(Q.keyword&&q===L.dot)this.exprAllowed=!1;else if(Z=Q.updateContext)Z.call(this,q);else this.exprAllowed=Q.beforeExpr};O6.overrideContext=function(q){if(this.curContext()!==q)this.context[this.context.length-1]=q};L.parenR.updateContext=L.braceR.updateContext=function(){if(this.context.length===1){this.exprAllowed=!0;return}var q=this.context.pop();if(q===t8.b_stat&&this.curContext().token==="function")q=this.context.pop();this.exprAllowed=!q.isExpr};L.braceL.updateContext=function(q){this.context.push(this.braceIsBlock(q)?t8.b_stat:t8.b_expr),this.exprAllowed=!0};L.dollarBraceL.updateContext=function(){this.context.push(t8.b_tmpl),this.exprAllowed=!0};L.parenL.updateContext=function(q){var Z=q===L._if||q===L._for||q===L._with||q===L._while;this.context.push(Z?t8.p_stat:t8.p_expr),this.exprAllowed=!0};L.incDec.updateContext=function(){};L._function.updateContext=L._class.updateContext=function(q){if(q.beforeExpr&&q!==L._else&&!(q===L.semi&&this.curContext()!==t8.p_stat)&&!(q===L._return&&h0.test(this.input.slice(this.lastTokEnd,this.start)))&&!((q===L.colon||q===L.braceL)&&this.curContext()===t8.b_stat))this.context.push(t8.f_expr);else this.context.push(t8.f_stat);this.exprAllowed=!1};L.colon.updateContext=function(){if(this.curContext().token==="function")this.context.pop();this.exprAllowed=!0};L.backQuote.updateContext=function(){if(this.curContext()===t8.q_tmpl)this.context.pop();else this.context.push(t8.q_tmpl);this.exprAllowed=!1};L.star.updateContext=function(q){if(q===L._function){var Z=this.context.length-1;if(this.context[Z]===t8.f_expr)this.context[Z]=t8.f_expr_gen;else this.context[Z]=t8.f_gen}this.exprAllowed=!0};L.name.updateContext=function(q){var Z=!1;if(this.options.ecmaVersion>=6&&q!==L.dot){if(this.value==="of"&&!this.exprAllowed||this.value==="yield"&&this.inGeneratorContext())Z=!0}this.exprAllowed=Z};var C8=q0.prototype;C8.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,H;switch(Y.type){case"Identifier":H=Y.name;break;case"Literal":H=String(Y.value);break;default:return}var J=q.kind;if(this.options.ecmaVersion>=6){if(H==="__proto__"&&J==="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}H="$"+H;var X=Z[H];if(X){var W;if(J==="init")W=this.strict&&X.init||X.get||X.set;else W=X.init||X[J];if(W)this.raiseRecoverable(Y.start,"Redefinition of property")}else X=Z[H]={init:!1,get:!1,set:!1};X[J]=!0};C8.parseExpression=function(q,Z){var Q=this;return this.catchStackOverflow(function(){var{start:Y,startLoc:H}=Q,J=Q.parseMaybeAssign(q,Z);if(Q.type===L.comma){var X=Q.startNodeAt(Y,H);X.expressions=[J];while(Q.eat(L.comma))X.expressions.push(Q.parseMaybeAssign(q,Z));return Q.finishNode(X,"SequenceExpression")}return J})};C8.parseMaybeAssign=function(q,Z,Q){if(this.isContextual("yield"))if(this.inGenerator)return this.parseYield(q);else this.exprAllowed=!1;var Y=!1,H=-1,J=-1,X=-1;if(Z)H=Z.parenthesizedAssign,J=Z.trailingComma,X=Z.doubleProto,Z.parenthesizedAssign=Z.trailingComma=-1;else Z=new w2,Y=!0;var W=this.start,$=this.startLoc;if(this.type===L.parenL||this.type===L.name)this.potentialArrowAt=this.start,this.potentialArrowInForAwait=q==="await";var R=this.parseMaybeConditional(q,Z);if(Q)R=Q.call(this,R,W,$);if(this.type.isAssign){var z=this.startNodeAt(W,$);if(z.operator=this.value,this.type===L.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===L.eq)this.checkLValPattern(R);else this.checkLValSimple(R);if(z.left=R,this.next(),z.right=this.parseMaybeAssign(q),X>-1)Z.doubleProto=X;return this.finishNode(z,"AssignmentExpression")}else if(Y)this.checkExpressionErrors(Z,!0);if(H>-1)Z.parenthesizedAssign=H;if(J>-1)Z.trailingComma=J;return R};C8.parseMaybeConditional=function(q,Z){var Q=this.start,Y=this.startLoc,H=this.parseExprOps(q,Z);if(this.checkExpressionErrors(Z))return H;if(!(H.type==="ArrowFunctionExpression"&&H.start===Q)&&this.eat(L.question)){var J=this.startNodeAt(Q,Y);return J.test=H,J.consequent=this.parseMaybeAssign(),this.expect(L.colon),J.alternate=this.parseMaybeAssign(q),this.finishNode(J,"ConditionalExpression")}return H};C8.parseExprOps=function(q,Z){var Q=this.start,Y=this.startLoc,H=this.parseMaybeUnary(Z,!1,!1,q);if(this.checkExpressionErrors(Z))return H;return H.start===Q&&H.type==="ArrowFunctionExpression"?H:this.parseExprOp(H,Q,Y,-1,q)};C8.parseExprOp=function(q,Z,Q,Y,H){var J=this.type.binop;if(J!=null&&(!H||this.type!==L._in)){if(J>Y){var X=this.type===L.logicalOR||this.type===L.logicalAND,W=this.type===L.coalesce;if(W)J=L.logicalAND.binop;var $=this.value;this.next();var R=this.start,z=this.startLoc,O=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,H),R,z,J,H),P=this.buildBinary(Z,Q,q,O,$,X||W);if(X&&this.type===L.coalesce||W&&(this.type===L.logicalOR||this.type===L.logicalAND))this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses");return this.parseExprOp(P,Z,Q,Y,H)}}return q};C8.buildBinary=function(q,Z,Q,Y,H,J){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=H,X.right=Y,this.finishNode(X,J?"LogicalExpression":"BinaryExpression")};C8.parseMaybeUnary=function(q,Z,Q,Y){var H=this.start,J=this.startLoc,X;if(this.isContextual("await")&&this.canAwait)X=this.parseAwait(Y),Z=!0;else if(this.type.prefix){var W=this.startNode(),$=this.type===L.incDec;if(W.operator=this.value,W.prefix=!0,this.next(),W.argument=this.parseMaybeUnary(null,!0,$,Y),this.checkExpressionErrors(q,!0),$)this.checkLValSimple(W.argument);else if(this.strict&&W.operator==="delete"&&CJ(W.argument))this.raiseRecoverable(W.start,"Deleting local variable in strict mode");else if(W.operator==="delete"&&E3(W.argument))this.raiseRecoverable(W.start,"Private fields can not be deleted");else Z=!0;X=this.finishNode(W,$?"UpdateExpression":"UnaryExpression")}else if(!Z&&this.type===L.privateId){if((Y||this.privateNameStack.length===0)&&this.options.checkPrivateFields)this.unexpected();if(X=this.parsePrivateIdent(),this.type!==L._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(H,J);R.operator=this.value,R.prefix=!1,R.argument=X,this.checkLValSimple(X),this.next(),X=this.finishNode(R,"UpdateExpression")}}if(!Q&&this.eat(L.starstar))if(Z)this.unexpected(this.lastTokStart);else return this.buildBinary(H,J,X,this.parseMaybeUnary(null,!1,!1,Y),"**",!1);else return X};function CJ(q){return q.type==="Identifier"||q.type==="ParenthesizedExpression"&&CJ(q.expression)}function E3(q){return q.type==="MemberExpression"&&q.property.type==="PrivateIdentifier"||q.type==="ChainExpression"&&E3(q.expression)||q.type==="ParenthesizedExpression"&&E3(q.expression)}C8.parseExprSubscripts=function(q,Z){var Q=this.start,Y=this.startLoc,H=this.parseExprAtom(q,Z);if(H.type==="ArrowFunctionExpression"&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==")")return H;var J=this.parseSubscripts(H,Q,Y,!1,Z);if(q&&J.type==="MemberExpression"){if(q.parenthesizedAssign>=J.start)q.parenthesizedAssign=-1;if(q.parenthesizedBind>=J.start)q.parenthesizedBind=-1;if(q.trailingComma>=J.start)q.trailingComma=-1}return J};C8.parseSubscripts=function(q,Z,Q,Y,H){var J=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 W=this.parseSubscript(q,Z,Q,Y,J,X,H);if(W.optional)X=!0;if(W===q||W.type==="ArrowFunctionExpression"){if(X){var $=this.startNodeAt(Z,Q);$.expression=W,W=this.finishNode($,"ChainExpression")}return W}q=W}};C8.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(L.arrow)};C8.parseSubscriptAsyncArrow=function(q,Z,Q,Y){return this.parseArrowExpression(this.startNodeAt(q,Z),Q,!0,Y)};C8.parseSubscript=function(q,Z,Q,Y,H,J,X){var W=this.options.ecmaVersion>=11,$=W&&this.eat(L.questionDot);if(Y&&$)this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var R=this.eat(L.bracketL);if(R||$&&this.type!==L.parenL&&this.type!==L.backQuote||this.eat(L.dot)){var z=this.startNodeAt(Z,Q);if(z.object=q,R)z.property=this.parseExpression(),this.expect(L.bracketR);else if(this.type===L.privateId&&q.type!=="Super")z.property=this.parsePrivateIdent();else z.property=this.parseIdent(this.options.allowReserved!=="never");if(z.computed=!!R,W)z.optional=$;q=this.finishNode(z,"MemberExpression")}else if(!Y&&this.eat(L.parenL)){var O=new w2,P=this.yieldPos,w=this.awaitPos,v=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var F=this.parseExprList(L.parenR,this.options.ecmaVersion>=8,!1,O);if(H&&!$&&this.shouldParseAsyncArrow()){if(this.checkPatternErrors(O,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0)this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function");return this.yieldPos=P,this.awaitPos=w,this.awaitIdentPos=v,this.parseSubscriptAsyncArrow(Z,Q,F,X)}this.checkExpressionErrors(O,!0),this.yieldPos=P||this.yieldPos,this.awaitPos=w||this.awaitPos,this.awaitIdentPos=v||this.awaitIdentPos;var h=this.startNodeAt(Z,Q);if(h.callee=q,h.arguments=F,W)h.optional=$;q=this.finishNode(h,"CallExpression")}else if(this.type===L.backQuote){if($||J)this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var m=this.startNodeAt(Z,Q);m.tag=q,m.quasi=this.parseTemplate({isTagged:!0}),q=this.finishNode(m,"TaggedTemplateExpression")}return q};C8.parseExprAtom=function(q,Z,Q){if(this.type===L.slash)this.readRegexp();var Y,H=this.potentialArrowAt===this.start;switch(this.type){case L._super:if(!this.allowSuper)this.raise(this.start,"'super' keyword outside a method");if(Y=this.startNode(),this.next(),this.type===L.parenL&&!this.allowDirectSuper)this.raise(Y.start,"super() call outside constructor of a subclass");if(this.type!==L.dot&&this.type!==L.bracketL&&this.type!==L.parenL)this.unexpected();return this.finishNode(Y,"Super");case L._this:return Y=this.startNode(),this.next(),this.finishNode(Y,"ThisExpression");case L.name:var J=this.start,X=this.startLoc,W=this.containsEsc,$=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!W&&$.name==="async"&&!this.canInsertSemicolon()&&this.eat(L._function))return this.overrideContext(t8.f_expr),this.parseFunction(this.startNodeAt(J,X),0,!1,!0,Z);if(H&&!this.canInsertSemicolon()){if(this.eat(L.arrow))return this.parseArrowExpression(this.startNodeAt(J,X),[$],!1,Z);if(this.options.ecmaVersion>=8&&$.name==="async"&&this.type===L.name&&!W&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc)){if($=this.parseIdent(!1),this.canInsertSemicolon()||!this.eat(L.arrow))this.unexpected();return this.parseArrowExpression(this.startNodeAt(J,X),[$],!0,Z)}}return $;case L.regexp:var R=this.value;return Y=this.parseLiteral(R.value),Y.regex={pattern:R.pattern,flags:R.flags},Y;case L.num:case L.string:return this.parseLiteral(this.value);case L._null:case L._true:case L._false:return Y=this.startNode(),Y.value=this.type===L._null?null:this.type===L._true,Y.raw=this.type.keyword,this.next(),this.finishNode(Y,"Literal");case L.parenL:var z=this.start,O=this.parseParenAndDistinguishExpression(H,Z);if(q){if(q.parenthesizedAssign<0&&!this.isSimpleAssignTarget(O))q.parenthesizedAssign=z;if(q.parenthesizedBind<0)q.parenthesizedBind=z}return O;case L.bracketL:return Y=this.startNode(),this.next(),Y.elements=this.parseExprList(L.bracketR,!0,!0,q),this.finishNode(Y,"ArrayExpression");case L.braceL:return this.overrideContext(t8.b_expr),this.parseObj(!1,q);case L._function:return Y=this.startNode(),this.next(),this.parseFunction(Y,0);case L._class:return this.parseClass(this.startNode(),!1);case L._new:return this.parseNew();case L.backQuote:return this.parseTemplate();case L._import:if(this.options.ecmaVersion>=11)return this.parseExprImport(Q);else return this.unexpected();default:return this.parseExprAtomDefault()}};C8.parseExprAtomDefault=function(){this.unexpected()};C8.parseExprImport=function(q){var Z=this.startNode();if(this.containsEsc)this.raiseRecoverable(this.start,"Escape sequence in keyword import");if(this.next(),this.type===L.parenL&&!q)return this.parseDynamicImport(Z);else if(this.type===L.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()};C8.parseDynamicImport=function(q){if(this.next(),q.source=this.parseMaybeAssign(),this.options.ecmaVersion>=16)if(!this.eat(L.parenR))if(this.expect(L.comma),!this.afterTrailingComma(L.parenR)){if(q.options=this.parseMaybeAssign(),!this.eat(L.parenR)){if(this.expect(L.comma),!this.afterTrailingComma(L.parenR))this.unexpected()}}else q.options=null;else q.options=null;else if(!this.eat(L.parenR)){var Z=this.start;if(this.eat(L.comma)&&this.eat(L.parenR))this.raiseRecoverable(Z,"Trailing comma is not allowed in import()");else this.unexpected(Z)}return this.finishNode(q,"ImportExpression")};C8.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")};C8.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")};C8.parseParenExpression=function(){this.expect(L.parenL);var q=this.parseExpression();return this.expect(L.parenR),q};C8.shouldParseArrow=function(q){return!this.canInsertSemicolon()};C8.parseParenAndDistinguishExpression=function(q,Z){var Q=this.start,Y=this.startLoc,H,J=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var X=this.start,W=this.startLoc,$=[],R=!0,z=!1,O=new w2,P=this.yieldPos,w=this.awaitPos,v;this.yieldPos=0,this.awaitPos=0;while(this.type!==L.parenR)if(R?R=!1:this.expect(L.comma),J&&this.afterTrailingComma(L.parenR,!0)){z=!0;break}else if(this.type===L.ellipsis){if(v=this.start,$.push(this.parseParenItem(this.parseRestBinding())),this.type===L.comma)this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}else $.push(this.parseMaybeAssign(!1,O,this.parseParenItem));var F=this.lastTokEnd,h=this.lastTokEndLoc;if(this.expect(L.parenR),q&&this.shouldParseArrow($)&&this.eat(L.arrow))return this.checkPatternErrors(O,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=P,this.awaitPos=w,this.parseParenArrowList(Q,Y,$,Z);if(!$.length||z)this.unexpected(this.lastTokStart);if(v)this.unexpected(v);if(this.checkExpressionErrors(O,!0),this.yieldPos=P||this.yieldPos,this.awaitPos=w||this.awaitPos,$.length>1)H=this.startNodeAt(X,W),H.expressions=$,this.finishNodeAt(H,"SequenceExpression",F,h);else H=$[0]}else H=this.parseParenExpression();if(this.options.preserveParens){var m=this.startNodeAt(Q,Y);return m.expression=H,this.finishNode(m,"ParenthesizedExpression")}else return H};C8.parseParenItem=function(q){return q};C8.parseParenArrowList=function(q,Z,Q,Y){return this.parseArrowExpression(this.startNodeAt(q,Z),Q,!1,Y)};var Tb=[];C8.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===L.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,H=this.startLoc;if(q.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),Y,H,!0,!1),q.callee.type==="Super")this.raiseRecoverable(Y,"Invalid use of 'super'");if(this.eat(L.parenL))q.arguments=this.parseExprList(L.parenR,this.options.ecmaVersion>=8,!1);else q.arguments=Tb;return this.finishNode(q,"NewExpression")};C8.parseTemplateElement=function(q){var Z=q.isTagged,Q=this.startNode();if(this.type===L.invalidTemplate){if(!Z)this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal");Q.value={raw:this.value.replace(/\r\n?/g,`
|
|
46
|
-
`),cooked:null}}else Q.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,`
|
|
47
|
-
`),cooked:this.value};return this.next(),Q.tail=this.type===L.backQuote,this.finishNode(Q,"TemplateElement")};C8.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===L.eof)this.raise(this.pos,"Unterminated template literal");this.expect(L.dollarBraceL),Q.expressions.push(this.parseExpression()),this.expect(L.braceR),Q.quasis.push(Y=this.parseTemplateElement({isTagged:Z}))}return this.next(),this.finishNode(Q,"TemplateLiteral")};C8.isAsyncProp=function(q){return!q.computed&&q.key.type==="Identifier"&&q.key.name==="async"&&(this.type===L.name||this.type===L.num||this.type===L.string||this.type===L.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===L.star)&&!h0.test(this.input.slice(this.lastTokEnd,this.start))};C8.parseObj=function(q,Z){var Q=this.startNode(),Y=!0,H={};Q.properties=[],this.next();while(!this.eat(L.braceR)){if(!Y){if(this.expect(L.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(L.braceR))break}else Y=!1;var J=this.parseProperty(q,Z);if(!q)this.checkPropClash(J,H,Z);Q.properties.push(J)}return this.finishNode(Q,q?"ObjectPattern":"ObjectExpression")};C8.parseProperty=function(q,Z){var Q=this.startNode(),Y,H,J,X;if(this.options.ecmaVersion>=9&&this.eat(L.ellipsis)){if(q){if(Q.argument=this.parseIdent(!1),this.type===L.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===L.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)J=this.start,X=this.startLoc;if(!q)Y=this.eat(L.star)}var W=this.containsEsc;if(this.parsePropertyName(Q),!q&&!W&&this.options.ecmaVersion>=8&&!Y&&this.isAsyncProp(Q))H=!0,Y=this.options.ecmaVersion>=9&&this.eat(L.star),this.parsePropertyName(Q);else H=!1;return this.parsePropertyValue(Q,q,Y,H,J,X,Z,W),this.finishNode(Q,"Property")};C8.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")};C8.parsePropertyValue=function(q,Z,Q,Y,H,J,X,W){if((Q||Y)&&this.type===L.colon)this.unexpected();if(this.eat(L.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===L.parenL){if(Z)this.unexpected();q.method=!0,q.value=this.parseMethod(Q,Y),q.kind="init"}else if(!Z&&!W&&this.options.ecmaVersion>=5&&!q.computed&&q.key.type==="Identifier"&&(q.key.name==="get"||q.key.name==="set")&&(this.type!==L.comma&&this.type!==L.braceR&&this.type!==L.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=H;if(Z)q.value=this.parseMaybeDefault(H,J,this.copyNode(q.key));else if(this.type===L.eq&&X){if(X.shorthandAssign<0)X.shorthandAssign=this.start;q.value=this.parseMaybeDefault(H,J,this.copyNode(q.key))}else q.value=this.copyNode(q.key);q.kind="init",q.shorthand=!0}else this.unexpected()};C8.parsePropertyName=function(q){if(this.options.ecmaVersion>=6)if(this.eat(L.bracketL))return q.computed=!0,q.key=this.parseMaybeAssign(),this.expect(L.bracketR),q.key;else q.computed=!1;return q.key=this.type===L.num||this.type===L.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")};C8.initFunction=function(q){if(q.id=null,this.options.ecmaVersion>=6)q.generator=q.expression=!1;if(this.options.ecmaVersion>=8)q.async=!1};C8.parseMethod=function(q,Z,Q){var Y=this.startNode(),H=this.yieldPos,J=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(k3(Z,Y.generator)|P2|(Q?OJ:0)),this.expect(L.parenL),Y.params=this.parseBindingList(L.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(Y,!1,!0,!1),this.yieldPos=H,this.awaitPos=J,this.awaitIdentPos=X,this.finishNode(Y,"FunctionExpression")};C8.parseArrowExpression=function(q,Z,Q,Y){var H=this.yieldPos,J=this.awaitPos,X=this.awaitIdentPos;if(this.enterScope(k3(Q,!1)|v3),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=H,this.awaitPos=J,this.awaitIdentPos=X,this.finishNode(q,"ArrowFunctionExpression")};C8.parseFunctionBody=function(q,Z,Q,Y){var H=Z&&this.type!==L.braceL,J=this.strict,X=!1;if(H)q.body=this.parseMaybeAssign(Y),q.expression=!0,this.checkParams(q,!1);else{var W=this.options.ecmaVersion>=7&&!this.isSimpleParamList(q.params);if(!J||W){if(X=this.strictDirective(this.end),X&&W)this.raiseRecoverable(q.start,"Illegal 'use strict' directive in function with non-simple parameter list")}var $=this.labels;if(this.labels=[],X)this.strict=!0;if(this.checkParams(q,!J&&!X&&!Z&&!Q&&this.isSimpleParamList(q.params)),this.strict&&q.id)this.checkLValSimple(q.id,jJ);q.body=this.parseBlock(!1,void 0,X&&!J),q.expression=!1,this.adaptDirectivePrologue(q.body.body),this.labels=$}this.exitScope()};C8.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};C8.checkParams=function(q,Z){var Q=Object.create(null);for(var Y=0,H=q.params;Y<H.length;Y+=1){var J=H[Y];this.checkLValInnerPattern(J,N3,Z?null:Q)}};C8.parseExprList=function(q,Z,Q,Y){var H=[],J=!0;while(!this.eat(q)){if(!J){if(this.expect(L.comma),Z&&this.afterTrailingComma(q))break}else J=!1;var X=void 0;if(Q&&this.type===L.comma)X=null;else if(this.type===L.ellipsis){if(X=this.parseSpread(Y),Y&&this.type===L.comma&&Y.trailingComma<0)Y.trailingComma=this.start}else X=this.parseMaybeAssign(!1,Y);H.push(X)}return H};C8.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&O2)&&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 H=this.strict?this.reservedWordsStrict:this.reservedWords;if(H.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")}};C8.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};C8.parseIdentNode=function(){var q=this.startNode();if(this.type===L.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=L.name}else this.unexpected();return q};C8.parsePrivateIdent=function(){var q=this.startNode();if(this.type===L.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};C8.parseYield=function(q){if(!this.yieldPos)this.yieldPos=this.start;var Z=this.startNode();if(this.next(),this.type===L.semi||this.canInsertSemicolon()||this.type!==L.star&&!this.type.startsExpr)Z.delegate=!1,Z.argument=null;else Z.delegate=this.eat(L.star),Z.argument=this.parseMaybeAssign(q);return this.finishNode(Z,"YieldExpression")};C8.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 B2=q0.prototype;B2.raise=function(q,Z){var Q=f3(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};B2.raiseRecoverable=B2.raise;B2.curPosition=function(){if(this.options.locations)return new L6(this.curLine,this.pos-this.lineStart)};var $9=q0.prototype,fb=function(Z){this.flags=Z,this.var=[],this.lexical=[],this.functions=[]};$9.enterScope=function(q){this.scopeStack.push(new fb(q))};$9.exitScope=function(){this.scopeStack.pop()};$9.treatFunctionsAsVarInScope=function(q){return q.flags&h9||!this.inModule&&q.flags&u9};$9.declareName=function(q,Z,Q){var Y=!1;if(Z===o1){var H=this.currentScope();if(Y=H.lexical.indexOf(q)>-1||H.functions.indexOf(q)>-1||H.var.indexOf(q)>-1,H.lexical.push(q),this.inModule&&H.flags&u9)delete this.undefinedExports[q]}else if(Z===IJ){var J=this.currentScope();J.lexical.push(q)}else if(Z===AJ){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 W=this.scopeStack.length-1;W>=0;--W){var $=this.scopeStack[W];if($.lexical.indexOf(q)>-1&&!($.flags&PJ&&$.lexical[0]===q)||!this.treatFunctionsAsVarInScope($)&&$.functions.indexOf(q)>-1){Y=!0;break}if($.var.push(q),this.inModule&&$.flags&u9)delete this.undefinedExports[q];if($.flags&O2)break}if(Y)this.raiseRecoverable(Q,"Identifier '"+q+"' has already been declared")};$9.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};$9.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]};$9.currentVarScope=function(){for(var q=this.scopeStack.length-1;;q--){var Z=this.scopeStack[q];if(Z.flags&(O2|I7|_9))return Z}};$9.currentThisScope=function(){for(var q=this.scopeStack.length-1;;q--){var Z=this.scopeStack[q];if(Z.flags&(O2|I7|_9)&&!(Z.flags&v3))return Z}};var j7=function(Z,Q,Y){if(this.type="",this.start=Q,this.end=0,Z.options.locations)this.loc=new A7(Z,Y);if(Z.options.directSourceFile)this.sourceFile=Z.options.directSourceFile;if(Z.options.ranges)this.range=[Q,0]},D7=q0.prototype;D7.startNode=function(){return new j7(this,this.start,this.startLoc)};D7.startNodeAt=function(q,Z){return new j7(this,q,Z)};function EJ(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}D7.finishNode=function(q,Z){return EJ.call(this,q,Z,this.lastTokEnd,this.lastTokEndLoc)};D7.finishNodeAt=function(q,Z,Q,Y){return EJ.call(this,q,Z,Q,Y)};D7.copyNode=function(q){var Z=new j7(this,q.start,this.startLoc);for(var Q in q)Z[Q]=q[Q];return Z};var Kb="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",FJ="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",TJ=FJ+" Extended_Pictographic",fJ=TJ,KJ=fJ+" EBase EComp EMod EPres ExtPict",vJ=KJ,vb=vJ,kb={9:FJ,10:TJ,11:fJ,12:KJ,13:vJ,14:vb},Nb="Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji",Sb={9:"",10:"",11:"",12:"",13:"",14:Nb},WJ="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",kJ="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",NJ=kJ+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",SJ=NJ+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",uJ=SJ+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",bJ=uJ+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",ub=bJ+" "+Kb,bb={9:kJ,10:NJ,11:SJ,12:uJ,13:bJ,14:ub},hJ={};function hb(q){var Z=hJ[q]={binary:W9(kb[q]+" "+WJ),binaryOfStrings:W9(Sb[q]),nonBinary:{General_Category:W9(WJ),Script:W9(bb[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(O7=0,$2=[9,10,11,12,13,14];O7<$2.length;O7+=1)F3=$2[O7],hb(F3);var F3,O7,$2,X8=q0.prototype,M2=function(Z,Q){this.parent=Z,this.base=Q||this};M2.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};M2.prototype.sibling=function(){return new M2(this.parent,this.base)};var N1=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=hJ[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};N1.prototype.reset=function(Z,Q,Y){var H=Y.indexOf("v")!==-1,J=Y.indexOf("u")!==-1;if(this.start=Z|0,this.source=Q+"",this.flags=Y,H&&this.parser.options.ecmaVersion>=15)this.switchU=!0,this.switchV=!0,this.switchN=!0;else this.switchU=J&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=J&&this.parser.options.ecmaVersion>=9};N1.prototype.raise=function(Z){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+Z)};N1.prototype.at=function(Z,Q){if(Q===void 0)Q=!1;var Y=this.source,H=Y.length;if(Z>=H)return-1;var J=Y.charCodeAt(Z);if(!(Q||this.switchU)||J<=55295||J>=57344||Z+1>=H)return J;var X=Y.charCodeAt(Z+1);return X>=56320&&X<=57343?(J<<10)+X-56613888:J};N1.prototype.nextIndex=function(Z,Q){if(Q===void 0)Q=!1;var Y=this.source,H=Y.length;if(Z>=H)return H;var J=Y.charCodeAt(Z),X;if(!(Q||this.switchU)||J<=55295||J>=57344||Z+1>=H||(X=Y.charCodeAt(Z+1))<56320||X>57343)return Z+1;return Z+2};N1.prototype.current=function(Z){if(Z===void 0)Z=!1;return this.at(this.pos,Z)};N1.prototype.lookahead=function(Z){if(Z===void 0)Z=!1;return this.at(this.nextIndex(this.pos,Z),Z)};N1.prototype.advance=function(Z){if(Z===void 0)Z=!1;this.pos=this.nextIndex(this.pos,Z)};N1.prototype.eat=function(Z,Q){if(Q===void 0)Q=!1;if(this.current(Q)===Z)return this.advance(Q),!0;return!1};N1.prototype.eatChars=function(Z,Q){if(Q===void 0)Q=!1;var Y=this.pos;for(var H=0,J=Z;H<J.length;H+=1){var X=J[H],W=this.at(Y,Q);if(W===-1||W!==X)return!1;Y=this.nextIndex(Y,Q)}return this.pos=Y,!0};X8.validateRegExpFlags=function(q){var{validFlags:Z,flags:Q}=q,Y=!1,H=!1;for(var J=0;J<Q.length;J++){var X=Q.charAt(J);if(Z.indexOf(X)===-1)this.raise(q.start,"Invalid regular expression flag");if(Q.indexOf(X,J+1)>-1)this.raise(q.start,"Duplicate regular expression flag");if(X==="u")Y=!0;if(X==="v")H=!0}if(this.options.ecmaVersion>=15&&Y&&H)this.raise(q.start,"Invalid regular expression flag")};function _b(q){for(var Z in q)return!0;return!1}X8.validateRegExpPattern=function(q){if(this.regexp_pattern(q),!q.switchN&&this.options.ecmaVersion>=9&&_b(q.groupNames))q.switchN=!0,this.regexp_pattern(q)};X8.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")}};X8.regexp_disjunction=function(q){var Z=this.options.ecmaVersion>=16;if(Z)q.branchID=new M2(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")};X8.regexp_alternative=function(q){while(q.pos<q.source.length&&this.regexp_eatTerm(q));};X8.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};X8.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};X8.regexp_eatQuantifier=function(q,Z){if(Z===void 0)Z=!1;if(this.regexp_eatQuantifierPrefix(q,Z))return q.eat(63),!0;return!1};X8.regexp_eatQuantifierPrefix=function(q,Z){return q.eat(42)||q.eat(43)||q.eat(63)||this.regexp_eatBracedQuantifier(q,Z)};X8.regexp_eatBracedQuantifier=function(q,Z){var Q=q.pos;if(q.eat(123)){var Y=0,H=-1;if(this.regexp_eatDecimalDigits(q)){if(Y=q.lastIntValue,q.eat(44)&&this.regexp_eatDecimalDigits(q))H=q.lastIntValue;if(q.eat(125)){if(H!==-1&&H<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};X8.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)};X8.regexp_eatReverseSolidusAtomEscape=function(q){var Z=q.pos;if(q.eat(92)){if(this.regexp_eatAtomEscape(q))return!0;q.pos=Z}return!1};X8.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 H=0;H<Q.length;H++){var J=Q.charAt(H);if(Q.indexOf(J,H+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 W=0;W<X.length;W++){var $=X.charAt(W);if(X.indexOf($,W+1)>-1||Q.indexOf($)>-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};X8.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};X8.regexp_eatModifiers=function(q){var Z="",Q=0;while((Q=q.current())!==-1&&yb(Q))Z+=s1(Q),q.advance();return Z};function yb(q){return q===105||q===109||q===115}X8.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)};X8.regexp_eatInvalidBracedQuantifier=function(q){if(this.regexp_eatBracedQuantifier(q,!0))q.raise("Nothing to repeat");return!1};X8.regexp_eatSyntaxCharacter=function(q){var Z=q.current();if(_J(Z))return q.lastIntValue=Z,q.advance(),!0;return!1};function _J(q){return q===36||q>=40&&q<=43||q===46||q===63||q>=91&&q<=94||q>=123&&q<=125}X8.regexp_eatPatternCharacters=function(q){var Z=q.pos,Q=0;while((Q=q.current())!==-1&&!_J(Q))q.advance();return q.pos!==Z};X8.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};X8.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,H=Q;Y<H.length;Y+=1){var J=H[Y];if(!J.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}};X8.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};X8.regexp_eatRegExpIdentifierName=function(q){if(q.lastStringValue="",this.regexp_eatRegExpIdentifierStart(q)){q.lastStringValue+=s1(q.lastIntValue);while(this.regexp_eatRegExpIdentifierPart(q))q.lastStringValue+=s1(q.lastIntValue);return!0}return!1};X8.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(gb(Y))return q.lastIntValue=Y,!0;return q.pos=Z,!1};function gb(q){return i0(q,!0)||q===36||q===95}X8.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(xb(Y))return q.lastIntValue=Y,!0;return q.pos=Z,!1};function xb(q){return A1(q,!0)||q===36||q===95||q===8204||q===8205}X8.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};X8.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};X8.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};X8.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)};X8.regexp_eatCControlLetter=function(q){var Z=q.pos;if(q.eat(99)){if(this.regexp_eatControlLetter(q))return!0;q.pos=Z}return!1};X8.regexp_eatZero=function(q){if(q.current()===48&&!A2(q.lookahead()))return q.lastIntValue=0,q.advance(),!0;return!1};X8.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};X8.regexp_eatControlLetter=function(q){var Z=q.current();if(yJ(Z))return q.lastIntValue=Z%32,q.advance(),!0;return!1};function yJ(q){return q>=65&&q<=90||q>=97&&q<=122}X8.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 H=q.lastIntValue;if(Y&&H>=55296&&H<=56319){var J=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=(H-55296)*1024+(X-56320)+65536,!0}q.pos=J,q.lastIntValue=H}return!0}if(Y&&q.eat(123)&&this.regexp_eatHexDigits(q)&&q.eat(125)&&lb(q.lastIntValue))return!0;if(Y)q.raise("Invalid unicode escape");q.pos=Q}return!1};function lb(q){return q>=0&&q<=1114111}X8.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};X8.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 gJ=0,a1=1,Y1=2;X8.regexp_eatCharacterClassEscape=function(q){var Z=q.current();if(mb(Z))return q.lastIntValue=-1,q.advance(),a1;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===Y1)q.raise("Invalid property name");return Y}q.raise("Invalid property name")}return gJ};function mb(q){return q===100||q===68||q===115||q===83||q===119||q===87}X8.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),a1}}if(q.pos=Z,this.regexp_eatLoneUnicodePropertyNameOrValue(q)){var H=q.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(q,H)}return gJ};X8.regexp_validateUnicodePropertyNameAndValue=function(q,Z,Q){if(!P6(q.unicodeProperties.nonBinary,Z))q.raise("Invalid property name");if(!q.unicodeProperties.nonBinary[Z].test(Q))q.raise("Invalid property value")};X8.regexp_validateUnicodePropertyNameOrValue=function(q,Z){if(q.unicodeProperties.binary.test(Z))return a1;if(q.switchV&&q.unicodeProperties.binaryOfStrings.test(Z))return Y1;q.raise("Invalid property name")};X8.regexp_eatUnicodePropertyName=function(q){var Z=0;q.lastStringValue="";while(xJ(Z=q.current()))q.lastStringValue+=s1(Z),q.advance();return q.lastStringValue!==""};function xJ(q){return yJ(q)||q===95}X8.regexp_eatUnicodePropertyValue=function(q){var Z=0;q.lastStringValue="";while(pb(Z=q.current()))q.lastStringValue+=s1(Z),q.advance();return q.lastStringValue!==""};function pb(q){return xJ(q)||A2(q)}X8.regexp_eatLoneUnicodePropertyNameOrValue=function(q){return this.regexp_eatUnicodePropertyValue(q)};X8.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===Y1)q.raise("Negated character class may contain strings");return!0}return!1};X8.regexp_classContents=function(q){if(q.current()===93)return a1;if(q.switchV)return this.regexp_classSetExpression(q);return this.regexp_nonEmptyClassRanges(q),a1};X8.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")}}};X8.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||pJ(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};X8.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)};X8.regexp_classSetExpression=function(q){var Z=a1,Q;if(this.regexp_eatClassSetRange(q));else if(Q=this.regexp_eatClassSetOperand(q)){if(Q===Y1)Z=Y1;var Y=q.pos;while(q.eatChars([38,38])){if(q.current()!==38&&(Q=this.regexp_eatClassSetOperand(q))){if(Q!==Y1)Z=a1;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===Y1)Z=Y1}};X8.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};X8.regexp_eatClassSetOperand=function(q){if(this.regexp_eatClassSetCharacter(q))return a1;return this.regexp_eatClassStringDisjunction(q)||this.regexp_eatNestedClass(q)};X8.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===Y1)q.raise("Negated character class may contain strings");return Y}q.pos=Z}if(q.eat(92)){var H=this.regexp_eatCharacterClassEscape(q);if(H)return H;q.pos=Z}return null};X8.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};X8.regexp_classStringDisjunctionContents=function(q){var Z=this.regexp_classString(q);while(q.eat(124))if(this.regexp_classString(q)===Y1)Z=Y1;return Z};X8.regexp_classString=function(q){var Z=0;while(this.regexp_eatClassSetCharacter(q))Z++;return Z===1?a1:Y1};X8.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()&&cb(Q))return!1;if(rb(Q))return!1;return q.advance(),q.lastIntValue=Q,!0};function cb(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 rb(q){return q===40||q===41||q===45||q===47||q>=91&&q<=93||q>=123&&q<=125}X8.regexp_eatClassSetReservedPunctuator=function(q){var Z=q.current();if(ib(Z))return q.lastIntValue=Z,q.advance(),!0;return!1};function ib(q){return q===33||q===35||q===37||q===38||q===44||q===45||q>=58&&q<=62||q===64||q===96||q===126}X8.regexp_eatClassControlLetter=function(q){var Z=q.current();if(A2(Z)||Z===95)return q.lastIntValue=Z%32,q.advance(),!0;return!1};X8.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};X8.regexp_eatDecimalDigits=function(q){var Z=q.pos,Q=0;q.lastIntValue=0;while(A2(Q=q.current()))q.lastIntValue=10*q.lastIntValue+(Q-48),q.advance();return q.pos!==Z};function A2(q){return q>=48&&q<=57}X8.regexp_eatHexDigits=function(q){var Z=q.pos,Q=0;q.lastIntValue=0;while(lJ(Q=q.current()))q.lastIntValue=16*q.lastIntValue+mJ(Q),q.advance();return q.pos!==Z};function lJ(q){return q>=48&&q<=57||q>=65&&q<=70||q>=97&&q<=102}function mJ(q){if(q>=65&&q<=70)return 10+(q-65);if(q>=97&&q<=102)return 10+(q-97);return q-48}X8.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};X8.regexp_eatOctalDigit=function(q){var Z=q.current();if(pJ(Z))return q.lastIntValue=Z-48,q.advance(),!0;return q.lastIntValue=0,!1};function pJ(q){return q>=48&&q<=55}X8.regexp_eatFixedHexDigits=function(q,Z){var Q=q.pos;q.lastIntValue=0;for(var Y=0;Y<Z;++Y){var H=q.current();if(!lJ(H))return q.pos=Q,!1;q.lastIntValue=16*q.lastIntValue+mJ(H),q.advance()}return!0};var I2=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 A7(Z,Z.startLoc,Z.endLoc);if(Z.options.ranges)this.range=[Z.start,Z.end]},u8=q0.prototype;u8.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 I2(this));this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()};u8.getToken=function(){return this.next(),new I2(this)};if(typeof Symbol<"u")u8[Symbol.iterator]=function(){var q=this;return{next:function(){var Z=q.getToken();return{done:Z.type===L.eof,value:Z}}}};u8.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(L.eof);if(q.override)return q.override(this);else this.readToken(this.fullCharCodeAtPos())};u8.readToken=function(q){if(i0(q,this.options.ecmaVersion>=6)||q===92)return this.readWord();return this.getTokenFromCode(q)};u8.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};u8.fullCharCodeAtPos=function(){return this.fullCharCodeAt(this.pos)};u8.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,H=Z;(Y=BJ(this.input,H,this.pos))>-1;)++this.curLine,H=this.lineStart=Y;if(this.options.onComment)this.options.onComment(!0,this.input.slice(Z+2,Q),Z,this.pos,q,this.curPosition())};u8.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&&!b9(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())};u8.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&&T3.test(String.fromCharCode(q)))++this.pos;else break q}}};u8.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)};u8.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(L.ellipsis);else return++this.pos,this.finishToken(L.dot)};u8.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(L.assign,2);return this.finishOp(L.slash,1)};u8.readToken_mult_modulo_exp=function(q){var Z=this.input.charCodeAt(this.pos+1),Q=1,Y=q===42?L.star:L.modulo;if(this.options.ecmaVersion>=7&&q===42&&Z===42)++Q,Y=L.starstar,Z=this.input.charCodeAt(this.pos+2);if(Z===61)return this.finishOp(L.assign,Q+1);return this.finishOp(Y,Q)};u8.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(L.assign,3)}return this.finishOp(q===124?L.logicalOR:L.logicalAND,2)}if(Z===61)return this.finishOp(L.assign,2);return this.finishOp(q===124?L.bitwiseOR:L.bitwiseAND,1)};u8.readToken_caret=function(){var q=this.input.charCodeAt(this.pos+1);if(q===61)return this.finishOp(L.assign,2);return this.finishOp(L.bitwiseXOR,1)};u8.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||h0.test(this.input.slice(this.lastTokEnd,this.pos))))return this.skipLineComment(3),this.skipSpace(),this.nextToken();return this.finishOp(L.incDec,2)}if(Z===61)return this.finishOp(L.assign,2);return this.finishOp(L.plusMin,1)};u8.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(L.assign,Q+1);return this.finishOp(L.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(L.relational,Q)};u8.readToken_eq_excl=function(q){var Z=this.input.charCodeAt(this.pos+1);if(Z===61)return this.finishOp(L.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(L.arrow);return this.finishOp(q===61?L.eq:L.prefix,1)};u8.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(L.questionDot,2)}if(Z===63){if(q>=12){var Y=this.input.charCodeAt(this.pos+2);if(Y===61)return this.finishOp(L.assign,3)}return this.finishOp(L.coalesce,2)}}return this.finishOp(L.question,1)};u8.readToken_numberSign=function(){var q=this.options.ecmaVersion,Z=35;if(q>=13){if(++this.pos,Z=this.fullCharCodeAtPos(),i0(Z,!0)||Z===92)return this.finishToken(L.privateId,this.readWord1())}this.raise(this.pos,"Unexpected character '"+s1(Z)+"'")};u8.getTokenFromCode=function(q){switch(q){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(L.parenL);case 41:return++this.pos,this.finishToken(L.parenR);case 59:return++this.pos,this.finishToken(L.semi);case 44:return++this.pos,this.finishToken(L.comma);case 91:return++this.pos,this.finishToken(L.bracketL);case 93:return++this.pos,this.finishToken(L.bracketR);case 123:return++this.pos,this.finishToken(L.braceL);case 125:return++this.pos,this.finishToken(L.braceR);case 58:return++this.pos,this.finishToken(L.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(L.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(L.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+s1(q)+"'")};u8.finishOp=function(q,Z){var Q=this.input.slice(this.pos,this.pos+Z);return this.pos+=Z,this.finishToken(q,Q)};u8.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(h0.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 H=this.input.slice(Q,this.pos);++this.pos;var J=this.pos,X=this.readWord1();if(this.containsEsc)this.unexpected(J);var W=this.regexpState||(this.regexpState=new N1(this));W.reset(Q,H,X),this.validateRegExpFlags(W),this.validateRegExpPattern(W);var $=null;try{$=new RegExp(H,X)}catch(R){}return this.finishToken(L.regexp,{pattern:H,flags:X,value:$})};u8.readInt=function(q,Z,Q){var Y=this.options.ecmaVersion>=12&&Z===void 0,H=Q&&this.input.charCodeAt(this.pos)===48,J=this.pos,X=0,W=0;for(var $=0,R=Z==null?1/0:Z;$<R;++$,++this.pos){var z=this.input.charCodeAt(this.pos),O=void 0;if(Y&&z===95){if(H)this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals");if(W===95)this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore");if($===0)this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits");W=z;continue}if(z>=97)O=z-97+10;else if(z>=65)O=z-65+10;else if(z>=48&&z<=57)O=z-48;else O=1/0;if(O>=q)break;W=z,X=X*q+O}if(Y&&W===95)this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits");if(this.pos===J||Z!=null&&this.pos-J!==Z)return null;return X};function db(q,Z){if(Z)return parseInt(q,8);return parseFloat(q.replace(/_/g,""))}function cJ(q){if(typeof BigInt!=="function")return null;return BigInt(q.replace(/_/g,""))}u8.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=cJ(this.input.slice(Z,this.pos)),++this.pos;else if(i0(this.fullCharCodeAtPos()))this.raise(this.pos,"Identifier directly after number");return this.finishToken(L.num,Q)};u8.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 H=cJ(this.input.slice(Z,this.pos));if(++this.pos,i0(this.fullCharCodeAtPos()))this.raise(this.pos,"Identifier directly after number");return this.finishToken(L.num,H)}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(i0(this.fullCharCodeAtPos()))this.raise(this.pos,"Identifier directly after number");var J=db(this.input.slice(Z,this.pos),Q);return this.finishToken(L.num,J)};u8.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};u8.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(b9(Y))this.raise(this.start,"Unterminated string constant");++this.pos}}return Z+=this.input.slice(Q,this.pos++),this.finishToken(L.string,Z)};var rJ={};u8.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(q){if(q===rJ)this.readInvalidTemplateToken();else throw q}this.inTemplateElement=!1};u8.invalidStringToken=function(q,Z){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw rJ;else this.raise(q,Z)};u8.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===L.template||this.type===L.invalidTemplate))if(Q===36)return this.pos+=2,this.finishToken(L.dollarBraceL);else return++this.pos,this.finishToken(L.backQuote);return q+=this.input.slice(Z,this.pos),this.finishToken(L.template,q)}if(Q===92)q+=this.input.slice(Z,this.pos),q+=this.readEscapedChar(!0),Z=this.pos;else if(b9(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+=`
|
|
48
|
-
`;break;default:q+=String.fromCharCode(Q);break}if(this.options.locations)++this.curLine,this.lineStart=this.pos;Z=this.pos}else++this.pos}};u8.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(L.invalidTemplate,this.input.slice(this.start,this.pos));case"\r":if(this.input[this.pos+1]===`
|
|
49
|
-
`)++this.pos;case`
|
|
50
|
-
`:case"\u2028":case"\u2029":++this.curLine,this.lineStart=this.pos+1;break}this.raise(this.start,"Unterminated template")};u8.readEscapedChar=function(q){var Z=this.input.charCodeAt(++this.pos);switch(++this.pos,Z){case 110:return`
|
|
51
|
-
`;case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return s1(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],H=parseInt(Y,8);if(H>255)Y=Y.slice(0,-1),H=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(H)}if(b9(Z)){if(this.options.locations)this.lineStart=this.pos,++this.curLine;return""}return String.fromCharCode(Z)}};u8.readHexChar=function(q){var Z=this.pos,Q=this.readInt(16,q);if(Q===null)this.invalidStringToken(Z,"Bad character escape sequence");return Q};u8.readWord1=function(){this.containsEsc=!1;var q="",Z=!0,Q=this.pos,Y=this.options.ecmaVersion>=6;while(this.pos<this.input.length){var H=this.fullCharCodeAtPos();if(A1(H,Y))this.pos+=H<=65535?1:2;else if(H===92){this.containsEsc=!0,q+=this.input.slice(Q,this.pos);var J=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?i0:A1)(X,Y))this.invalidStringToken(J,"Invalid Unicode escape");q+=s1(X),Q=this.pos}else break;Z=!1}return q+this.input.slice(Q,this.pos)};u8.readWord=function(){var q=this.readWord1(),Z=L.name;if(this.keywords.test(q))Z=L2[q];return this.finishToken(Z,q)};var iJ="8.17.0";q0.acorn={Parser:q0,version:iJ,defaultOptions:U2,Position:L6,SourceLocation:A7,getLineInfo:f3,Node:j7,TokenType:g8,tokTypes:L,keywordTypes:L2,TokContext:Q1,tokContexts:t8,isIdentifierChar:A1,isIdentifierStart:i0,Token:I2,isNewLine:b9,lineBreak:h0,lineBreakG:zJ,nonASCIIwhitespace:T3};function u3(q,Z){return q0.parse(q,Z)}function sb(q,Z,Q){return q0.parseExpressionAt(q,Z,Q)}function ab(q,Z){return q0.tokenizer(q,Z)}var d0=!0,ob=new WeakMap;function nb(q){let Z=q.Parser.acorn||q,Q=ob.get(Z);if(!Q){let W=function(S){return S===w.name||S===w.string||S===w.num||F.includes(S)||m.includes(S)},$=function(S){return S===w.name||F.includes(S)||m.includes(S)},R=function(S){return S===w.name||m.includes(S)},z=function(S){return S===h.abstract||S===h.declare||S===h.enum||S===h.module||S===h.namespace||S===h.interface||S===h.type},O=function(S){return S===h.keyof||S===h.readonly||S===h.unique},P=function(S){return S===w.invalidTemplate},{tokTypes:w,keywordTypes:v}=Z,F=Object.values(v),h=X(),m=Object.values(h),_=J(),E=H(),u=new RegExp(`^(?:${Object.keys(h).join("|")})$`);_.jsxTagStart.updateContext=function(){this.context.push(E.tc_expr),this.context.push(E.tc_oTag),this.exprAllowed=!1},_.jsxTagEnd.updateContext=function(S){let s=this.context.pop();if(s===E.tc_oTag&&S===w.slash||s===E.tc_cTag)this.context.pop(),this.exprAllowed=this.curContext()===E.tc_expr;else this.exprAllowed=!0},Q={tokTypes:{...h,..._},tokContexts:{...E},keywordsRegExp:u,tokenIsLiteralPropertyName:W,tokenIsKeywordOrIdentifier:$,tokenIsIdentifier:R,tokenIsTSDeclarationStart:z,tokenIsTSTypeOperator:O,tokenIsTemplate:P}}return Q;function Y(W,$={}){return new Z.TokenType("name",$)}function H(){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 J(){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:d0}),asserts:Y("asserts",{startsExpr:d0}),global:Y("global",{startsExpr:d0}),keyof:Y("keyof",{startsExpr:d0}),readonly:Y("readonly",{startsExpr:d0}),unique:Y("unique",{startsExpr:d0}),abstract:Y("abstract",{startsExpr:d0}),declare:Y("declare",{startsExpr:d0}),enum:Y("enum",{startsExpr:d0}),module:Y("module",{startsExpr:d0}),namespace:Y("namespace",{startsExpr:d0}),interface:Y("interface",{startsExpr:d0}),type:Y("type",{startsExpr:d0})}}}var tb=512,C7=1024,w6=1,E2=2,eb=4,_3=8,qh=16,tJ=64,eJ=128,Zh=256,Qh=512,qX=1024,TQ8=w6|E2|_3|eJ,fQ8=w6|0|_3|0,KQ8=w6|0|eb|0,vQ8=w6|0|qh|0,kQ8=0|E2|0|eJ,NQ8=0|E2|0|0,Yh=w6|E2|_3|Zh,SQ8=0|qX,uQ8=0|tJ,bQ8=w6|0|0|tJ,hQ8=Yh|Qh,_Q8=0|qX,ZX=4,QX=2,YX=1,yQ8=QX|YX,gQ8=QX|ZX,xQ8=YX|ZX,Hh=/(?:[^\S\n\r\u2028\u2029]|\/\/.*|\/\*.*?\*\/)*/y,dJ=new RegExp("(?=("+Hh.source+"))\\1"+/(?=[\n\r\u2028\u2029]|\/\*(?!.*?\*\/)|$)/.source,"y"),E7=class{constructor(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1}};function Jh(q,Z){let Q=Z.key.name,Y=q[Q],H="true";if(Z.type==="MethodDefinition"&&(Z.kind==="get"||Z.kind==="set"))H=(Z.static?"s":"i")+Z.kind;if(Y==="iget"&&H==="iset"||Y==="iset"&&H==="iget"||Y==="sget"&&H==="sset"||Y==="sset"&&H==="sget")return q[Q]="true",!1;else if(!Y)return q[Q]=H,!1;else return!0}function sJ(q,Z){let{computed:Q,key:Y}=q;return!Q&&(Y.type==="Identifier"&&Y.name===Z||Y.type==="Literal"&&Y.value===Z)}var G8={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."},C2={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 Xh(q,Z,Q){let{tokTypes:Y}=Q,{tokTypes:H}=Z;return class extends q{takeDecorators(X){let W=this.decoratorStack[this.decoratorStack.length-1];if(W.length)X.decorators=W,this.resetStartLocationFromNode(X,W[0]),this.decoratorStack[this.decoratorStack.length-1]=[]}parseDecorators(X){let W=this.decoratorStack[this.decoratorStack.length-1];while(this.match(H.at)){let $=this.parseDecorator();W.push($)}if(this.match(Y._export)){if(!X)this.unexpected()}else if(!this.canHaveLeadingDecorator())this.raise(this.start,C2.UnexpectedLeadingDecorator)}parseDecorator(){let X=this.startNode();this.next(),this.decoratorStack.push([]);let W=this.start,$=this.startLoc,R;if(this.match(Y.parenL)){let z=this.start,O=this.startLoc;if(this.next(),R=this.parseExpression(),this.expect(Y.parenR),this.options.preserveParens){let P=this.startNodeAt(z,O);P.expression=R,R=this.finishNode(P,"ParenthesizedExpression")}}else{R=this.parseIdent(!1);while(this.eat(Y.dot)){let z=this.startNodeAt(W,$);z.object=R,z.property=this.parseIdent(!0),z.computed=!1,R=this.finishNode(z,"MemberExpression")}}return X.expression=this.parseMaybeDecoratorArguments(R),this.decoratorStack.pop(),this.finishNode(X,"Decorator")}parseMaybeDecoratorArguments(X){if(this.eat(Y.parenL)){let W=this.startNodeAtNode(X);return W.callee=X,W.arguments=this.parseExprList(Y.parenR,!1),this.finishNode(W,"CallExpression")}return X}}}var Vh={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:"♦"},Gh=/^[\da-fA-F]+$/,Wh=/^\d+$/;function F7(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 F7(q.object)+"."+F7(q.property)}function $h(q,Z,Q,Y){let H=q.tokTypes,J=Z.tokTypes,X=q.isNewLine,W=q.isIdentifierChar,$=Object.assign({allowNamespaces:!0,allowNamespacedObjects:!0},Y||{});return class extends Q{jsx_readToken(){let z="",O=this.pos;for(;;){if(this.pos>=this.input.length)this.raise(this.start,"Unterminated JSX contents");let P=this.input.charCodeAt(this.pos);switch(P){case 60:case 123:if(this.pos===this.start){if(P===60&&this.exprAllowed)return++this.pos,this.finishToken(J.jsxTagStart);return this.getTokenFromCode(P)}return z+=this.input.slice(O,this.pos),this.finishToken(J.jsxText,z);case 38:z+=this.input.slice(O,this.pos),z+=this.jsx_readEntity(),O=this.pos;break;case 62:case 125:this.raise(this.pos,"Unexpected token `"+this.input[this.pos]+"`. Did you mean `"+(P===62?">":"}")+'` or `{"'+this.input[this.pos]+'"}`?');default:if(X(P))z+=this.input.slice(O,this.pos),z+=this.jsx_readNewLine(!0),O=this.pos;else++this.pos}}}jsx_readNewLine(z){let O=this.input.charCodeAt(this.pos),P;if(++this.pos,O===13&&this.input.charCodeAt(this.pos)===10)++this.pos,P=z?`
|
|
52
|
-
`:`\r
|
|
53
|
-
`;else P=String.fromCharCode(O);if(this.options.locations)++this.curLine,this.lineStart=this.pos;return P}jsx_readString(z){let O="",P=++this.pos;for(;;){if(this.pos>=this.input.length)this.raise(this.start,"Unterminated string constant");let w=this.input.charCodeAt(this.pos);if(w===z)break;if(w===38)O+=this.input.slice(P,this.pos),O+=this.jsx_readEntity(),P=this.pos;else if(X(w))O+=this.input.slice(P,this.pos),O+=this.jsx_readNewLine(!1),P=this.pos;else++this.pos}return O+=this.input.slice(P,this.pos++),this.finishToken(H.string,O)}jsx_readEntity(){let z="",O=0,P,w=this.input[this.pos];if(w!=="&")this.raise(this.pos,"Entity must start with an ampersand");let v=++this.pos;while(this.pos<this.input.length&&O++<10){if(w=this.input[this.pos++],w===";"){if(z[0]==="#"){if(z[1]==="x"){if(z=z.substr(2),Gh.test(z))P=String.fromCharCode(parseInt(z,16))}else if(z=z.substr(1),Wh.test(z))P=String.fromCharCode(parseInt(z,10))}else P=Vh[z];break}z+=w}if(!P)return this.pos=v,"&";return P}jsx_readWord(){let z,O=this.pos;do z=this.input.charCodeAt(++this.pos);while(W(z)||z===45);return this.finishToken(J.jsxName,this.input.slice(O,this.pos))}jsx_parseIdentifier(){let z=this.startNode();if(this.type===J.jsxName)z.name=this.value;else if(this.type.keyword)z.name=this.type.keyword;else this.unexpected();return this.next(),this.finishNode(z,"JSXIdentifier")}jsx_parseNamespacedName(){let z=this.start,O=this.startLoc,P=this.jsx_parseIdentifier();if(!$.allowNamespaces||!this.eat(H.colon))return P;var w=this.startNodeAt(z,O);return w.namespace=P,w.name=this.jsx_parseIdentifier(),this.finishNode(w,"JSXNamespacedName")}jsx_parseElementName(){if(this.type===J.jsxTagEnd)return"";let z=this.start,O=this.startLoc,P=this.jsx_parseNamespacedName();if(this.type===H.dot&&P.type==="JSXNamespacedName"&&!$.allowNamespacedObjects)this.unexpected();while(this.eat(H.dot)){let w=this.startNodeAt(z,O);w.object=P,w.property=this.jsx_parseIdentifier(),P=this.finishNode(w,"JSXMemberExpression")}return P}jsx_parseAttributeValue(){switch(this.type){case H.braceL:let z=this.jsx_parseExpressionContainer();if(z.expression.type==="JSXEmptyExpression")this.raise(z.start,"JSX attributes must only be assigned a non-empty expression");return z;case J.jsxTagStart:case H.string:return this.parseExprAtom();default:this.raise(this.start,"JSX value should be either an expression or a quoted JSX text")}}jsx_parseEmptyExpression(){let z=this.startNodeAt(this.lastTokEnd,this.lastTokEndLoc);return this.finishNodeAt(z,"JSXEmptyExpression",this.start,this.startLoc)}jsx_parseExpressionContainer(){let z=this.startNode();return this.next(),z.expression=this.type===H.braceR?this.jsx_parseEmptyExpression():this.parseExpression(),this.expect(H.braceR),this.finishNode(z,"JSXExpressionContainer")}jsx_parseAttribute(){let z=this.startNode();if(this.eat(H.braceL))return this.expect(H.ellipsis),z.argument=this.parseMaybeAssign(),this.expect(H.braceR),this.finishNode(z,"JSXSpreadAttribute");return z.name=this.jsx_parseNamespacedName(),z.value=this.eat(H.eq)?this.jsx_parseAttributeValue():null,this.finishNode(z,"JSXAttribute")}jsx_parseOpeningElementAt(z,O){let P=this.startNodeAt(z,O);P.attributes=[];let w=this.jsx_parseElementName();if(w)P.name=w;while(this.type!==H.slash&&this.type!==J.jsxTagEnd)P.attributes.push(this.jsx_parseAttribute());return P.selfClosing=this.eat(H.slash),this.expect(J.jsxTagEnd),this.finishNode(P,w?"JSXOpeningElement":"JSXOpeningFragment")}jsx_parseClosingElementAt(z,O){let P=this.startNodeAt(z,O),w=this.jsx_parseElementName();if(w)P.name=w;return this.expect(J.jsxTagEnd),this.finishNode(P,w?"JSXClosingElement":"JSXClosingFragment")}jsx_parseElementAt(z,O){let P=this.startNodeAt(z,O),w=[],v=this.jsx_parseOpeningElementAt(z,O),F=null;if(!v.selfClosing){q:for(;;)switch(this.type){case J.jsxTagStart:if(z=this.start,O=this.startLoc,this.next(),this.eat(H.slash)){F=this.jsx_parseClosingElementAt(z,O);break q}w.push(this.jsx_parseElementAt(z,O));break;case J.jsxText:w.push(this.parseExprAtom());break;case H.braceL:w.push(this.jsx_parseExpressionContainer());break;default:this.unexpected()}if(F7(F.name)!==F7(v.name))this.raise(F.start,"Expected corresponding JSX closing tag for <"+F7(v.name)+">")}let h=v.name?"Element":"Fragment";if(P["opening"+h]=v,P["closing"+h]=F,P.children=w,this.type===H.relational&&this.value==="<")this.raise(this.start,"Adjacent JSX elements must be wrapped in an enclosing tag");return this.finishNode(P,"JSX"+h)}jsx_parseText(){let z=this.parseLiteral(this.value);return z.type="JSXText",z}jsx_parseElement(){let z=this.start,O=this.startLoc;return this.next(),this.jsx_parseElementAt(z,O)}}}function Uh(q,Z,Q){let{tokTypes:Y}=Z,{tokTypes:H}=Q;return class extends q{parseMaybeImportAttributes(X){if(this.type===H._with||this.type===Y.assert){this.next();let W=this.parseImportAttributes();if(W)X.attributes=W}}parseImportAttributes(){this.expect(H.braceL);let X=this.parseWithEntries();return this.expect(H.braceR),X}parseWithEntries(){let X=[],W=new Set;do{if(this.type===H.braceR)break;let $=this.startNode(),R;if(this.type===H.string)R=this.parseLiteral(this.value);else R=this.parseIdent(!0);if(this.next(),$.key=R,W.has($.key.name))this.raise(this.pos,"Duplicated key in attributes");if(W.add($.key.name),this.type!==H.string)this.raise(this.pos,"Only string is supported as an attribute value");$.value=this.parseLiteral(this.value),X.push(this.finishNode($,"ImportAttribute"))}while(this.eat(H.comma));return X}}}var b3=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g;function aJ(q){if(!q)throw Error("Assert fail")}function Rh(q){return q==="accessor"}function zh(q){return q==="in"||q==="out"}var D2=1,oJ=2,Bh=4,c8={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 h3(q,Z){return c8.SCOPE_FUNCTION|(q?c8.SCOPE_ASYNC:0)|(Z?c8.SCOPE_GENERATOR:0)}function Mh(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 HX(q.object)}function HX(q){if(q.type==="Identifier")return!0;if(q.type!=="MemberExpression")return!1;if(q.computed)return!1;return HX(q.object)}function nJ(q){return q==="private"||q==="public"||q==="protected"}function Lh(q){return Boolean(q.startsExpr)}function Ph(q){if(q==null)throw Error(`Unexpected ${q} value.`);return q}function Oh(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 JX(q){let{dts:Z=!1}=q||{},Q=!!q?.jsx;return function(Y){let H=Y.acorn||j2,J=nb(H),X=H.tokTypes,W=H.keywordTypes,$=H.isIdentifierStart,R=H.lineBreak,z=H.isNewLine,O=H.tokContexts,P=H.isIdentifierChar,{tokTypes:w,tokContexts:v,keywordsRegExp:F,tokenIsLiteralPropertyName:h,tokenIsTemplate:m,tokenIsTSDeclarationStart:_,tokenIsIdentifier:E,tokenIsKeywordOrIdentifier:u,tokenIsTSTypeOperator:S}=J;function s(G,U,B=G.length){for(let M=U;M<B;M++){let C=G.charCodeAt(M);if(z(C))return M<B-1&&C===13&&G.charCodeAt(M+1)===10?M+2:M+1}return-1}if(Y=Xh(Y,J,H),q?.jsx)Y=$h(H,J,Y,typeof q.jsx==="boolean"?{}:q.jsx);Y=Uh(Y,J,H);class b extends Y{constructor(G,U,B){super(G,U,B);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=(M)=>{this.tsParseModifiers({modified:M,allowedModifiers:["const"],disallowedModifiers:["in","out"],errorTemplate:G8.InvalidModifierOnTypeParameterPositions})},this.ecmaVersion=this.options.ecmaVersion}static get acornTypeScript(){return J}get acornTypeScript(){return J}getTokenFromCodeInType(G){if(G===62)return this.finishOp(X.relational,1);if(G===60)return this.finishOp(X.relational,1);return super.getTokenFromCode(G)}readToken(G){if(!this.inType){let U=this.curContext();if(U===v.tc_expr)return this.jsx_readToken();if(U===v.tc_oTag||U===v.tc_cTag){if($(G))return this.jsx_readWord();if(G==62)return++this.pos,this.finishToken(w.jsxTagEnd);if((G===34||G===39)&&U==v.tc_oTag)return this.jsx_readString(G)}if(G===60&&this.exprAllowed&&this.input.charCodeAt(this.pos+1)!==33)if(++this.pos,q?.jsx)return this.finishToken(w.jsxTagStart);else return this.finishToken(X.relational,"<")}return super.readToken(G)}getTokenFromCode(G){if(this.inType)return this.getTokenFromCodeInType(G);if(G===64)return++this.pos,this.finishToken(w.at);return super.getTokenFromCode(G)}isAbstractClass(){return this.ts_isContextual(w.abstract)&&this.lookahead().type===X._class}finishNode(G,U){if(G.type!==""&&G.end!==0)return G;return super.finishNode(G,U)}tryParse(G,U=this.cloneCurLookaheadState()){let B={node:null};try{return{node:G((C=null)=>{throw B.node=C,B}),error:null,thrown:!1,aborted:!1,failState:null}}catch(M){let C=this.getCurLookaheadState();if(this.setLookaheadState(U),M instanceof SyntaxError)return{node:null,error:M,thrown:!0,aborted:!1,failState:C};if(M===B)return{node:B.node,error:null,thrown:!1,aborted:!0,failState:C};throw M}}setOptionalParametersError(G,U){G.optionalParametersLoc=U?.loc??this.startLoc}reScan_lt_gt(){if(this.type===X.relational)this.pos-=1,this.readToken_lt_gt(this.fullCharCodeAtPos())}reScan_lt(){let{type:G}=this;if(G===X.bitShift)return this.pos-=2,this.finishOp(X.relational,1),X.relational;return G}resetEndLocation(G,U=this.lastTokEnd,B=this.lastTokEndLoc){if(G.end=U,G.loc.end=B,this.options.ranges)G.range[1]=U}startNodeAtNode(G){return super.startNodeAt(G.start,G.loc.start)}nextTokenStart(){return this.nextTokenStartSince(this.pos)}tsHasSomeModifiers(G,U){return U.some((B)=>{if(nJ(B))return G.accessibility===B;return!!G[B]})}tsIsStartOfStaticBlocks(){return this.isContextual("static")&&this.lookaheadCharCode()===123}tsCheckForInvalidTypeCasts(G){G.forEach((U)=>{if(U?.type==="TSTypeCastExpression")this.raise(U.typeAnnotation.start,G8.UnexpectedTypeAnnotation)})}atPossibleAsyncArrow(G){return G.type==="Identifier"&&G.name==="async"&&this.lastTokEnd===G.end&&!this.canInsertSemicolon()&&G.end-G.start===5&&G.start===this.potentialArrowAt}tsIsIdentifier(){return E(this.type)}tsTryParseTypeOrTypePredicateAnnotation(){return this.match(X.colon)?this.tsParseTypeOrTypePredicateAnnotation(X.colon):void 0}tsTryParseGenericAsyncArrowFunction(G,U,B){if(!this.tsMatchLeftRelational())return;let M=this.maybeInArrowParameters;this.maybeInArrowParameters=!0;let C=this.tsTryParseAndCatch(()=>{let T=this.startNodeAt(G,U);return T.typeParameters=this.tsParseTypeParameters(this.tsParseConstModifier),super.parseFunctionParams(T),T.returnType=this.tsTryParseTypeOrTypePredicateAnnotation(),this.expect(X.arrow),T});if(this.maybeInArrowParameters=M,!C)return;return super.parseArrowExpression(C,null,!0,B)}tsParseTypeArgumentsInExpression(){if(this.reScan_lt()!==X.relational)return;return this.tsParseTypeArguments()}tsInNoContext(G){let U=this.context;this.context=[U[0]];try{return G()}finally{this.context=U}}tsTryParseTypeAnnotation(){return this.match(X.colon)?this.tsParseTypeAnnotation():void 0}isUnparsedContextual(G,U){let B=G+U.length;if(this.input.slice(G,B)===U){let M=this.input.charCodeAt(B);return!(P(M)||(M&64512)===55296)}return!1}isAbstractConstructorSignature(){return this.ts_isContextual(w.abstract)&&this.lookahead().type===X._new}nextTokenStartSince(G){return b3.lastIndex=G,b3.test(this.input)?b3.lastIndex:G}lookaheadCharCode(){return this.input.charCodeAt(this.nextTokenStart())}compareLookaheadState(G,U){for(let B of Object.keys(G))if(G[B]!==U[B])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(G){this.pos=G.pos,this.value=G.value,this.endLoc=G.endLoc,this.lastTokEnd=G.lastTokEnd,this.lastTokStart=G.lastTokStart,this.lastTokStartLoc=G.lastTokStartLoc,this.type=G.type,this.start=G.start,this.end=G.end,this.context=G.context,this.startLoc=G.startLoc,this.lastTokEndLoc=G.lastTokEndLoc,this.curLine=G.curLine,this.lineStart=G.lineStart,this.curPosition=G.curPosition,this.containsEsc=G.containsEsc}tsLookAhead(G){let U=this.getCurLookaheadState(),B=G();return this.setLookaheadState(U),B}lookahead(G){let U=this.getCurLookaheadState();if(this.createLookaheadState(),this.isLookahead=!0,G!==void 0)for(let M=0;M<G;M++)this.nextToken();else this.nextToken();this.isLookahead=!1;let B=this.getCurLookaheadState();return this.setLookaheadState(U),B}readWord(){let G=this.readWord1(),U=X.name;if(this.keywords.test(G))U=W[G];else if(new RegExp(F).test(G))U=w[G];return this.finishToken(U,G)}skipBlockComment(){let G;if(!this.isLookahead)G=this.options.onComment&&this.curPosition();let U=this.pos,B=this.input.indexOf("*/",this.pos+=2);if(B===-1)this.raise(this.pos-2,"Unterminated comment");if(this.pos=B+2,this.options.locations)for(let M,C=U;(M=s(this.input,C,this.pos))>-1;)++this.curLine,C=this.lineStart=M;if(this.isLookahead)return;if(this.options.onComment)this.options.onComment(!0,this.input.slice(U+2,B),U,this.pos,G,this.curPosition())}skipLineComment(G){let U=this.pos,B;if(!this.isLookahead)B=this.options.onComment&&this.curPosition();let M=this.input.charCodeAt(this.pos+=G);while(this.pos<this.input.length&&!z(M))M=this.input.charCodeAt(++this.pos);if(this.isLookahead)return;if(this.options.onComment)this.options.onComment(!1,this.input.slice(U+G,this.pos),U,this.pos,B,this.curPosition())}finishToken(G,U){if(this.preValue=this.value,this.preToken=this.type,this.end=this.pos,this.options.locations)this.endLoc=this.curPosition();let B=this.type;if(this.type=G,this.value=U,!this.isLookahead)this.updateContext(B)}resetStartLocation(G,U,B){if(G.start=U,G.loc.start=B,this.options.ranges)G.range[0]=U}isLineTerminator(){return this.eat(X.semi)||super.canInsertSemicolon()}hasFollowingLineBreak(){return dJ.lastIndex=this.end,dJ.test(this.input)}addExtra(G,U,B,M=!0){if(!G)return;let C=G.extra=G.extra||{};if(M)C[U]=B;else Object.defineProperty(C,U,{enumerable:M,value:B})}isLiteralPropertyName(){return h(this.type)}hasPrecedingLineBreak(){return R.test(this.input.slice(this.lastTokEnd,this.start))}createIdentifier(G,U){return G.name=U,this.finishNode(G,"Identifier")}resetStartLocationFromNode(G,U){this.resetStartLocation(G,U.start,U.loc.start)}isThisParam(G){return G.type==="Identifier"&&G.name==="this"}isLookaheadContextual(G){let U=this.nextTokenStart();return this.isUnparsedContextual(U,G)}ts_type_isContextual(G,U){return G===U&&!this.containsEsc}ts_isContextual(G){return this.type===G&&!this.containsEsc}ts_isContextualWithState(G,U){return G.type===U&&!G.containsEsc}isContextualWithState(G,U){return U.type===X.name&&U.value===G&&!U.containsEsc}tsIsStartOfMappedType(){if(this.next(),this.eat(X.plusMin))return this.ts_isContextual(w.readonly);if(this.ts_isContextual(w.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(G){let U=this.inDisallowConditionalTypesContext;this.inDisallowConditionalTypesContext=!0;try{return G()}finally{this.inDisallowConditionalTypesContext=U}}tsTryParseType(){return this.tsEatThenParseType(X.colon)}match(G){return this.type===G}matchJsx(G){return this.type===J.tokTypes[G]}ts_eatWithState(G,U,B){let M=B.type;if(G===M){for(let C=0;C<U;C++)this.next();return!0}else return!1}ts_eatContextualWithState(G,U,B){if(F.test(G)){if(this.ts_isContextualWithState(B,w[G])){for(let M=0;M<U;M++)this.next();return!0}return!1}else{if(!this.isContextualWithState(G,B))return!1;for(let M=0;M<U;M++)this.next();return!0}}canHaveLeadingDecorator(){return this.match(X._class)||this.isAbstractClass()}eatContextual(G){if(F.test(G)){if(this.ts_isContextual(w[G]))return this.next(),!0;return!1}else return super.eatContextual(G)}tsIsExternalModuleReference(){return this.isContextual("require")&&this.lookaheadCharCode()===40}tsParseExternalModuleReference(){let G=this.startNode();if(this.expectContextual("require"),this.expect(X.parenL),!this.match(X.string))this.unexpected();return G.expression=this.parseExprAtom(),this.expect(X.parenR),this.finishNode(G,"TSExternalModuleReference")}tsParseEntityName(G=!0){let U=this.parseIdent(G);while(this.eat(X.dot)){let B=this.startNodeAtNode(U);B.left=U,B.right=this.parseIdent(G),U=this.finishNode(B,"TSQualifiedName")}return U}tsParseEnumMember(){let G=this.startNode();if(G.id=this.match(X.string)?this.parseLiteral(this.value):this.parseIdent(!0),this.eat(X.eq))G.initializer=this.parseMaybeAssign();return this.finishNode(G,"TSEnumMember")}tsParseEnumDeclaration(G,U={}){if(U.const)G.const=!0;if(U.declare)G.declare=!0;return this.expectContextual("enum"),G.id=this.parseIdent(),this.checkLValSimple(G.id),this.expect(X.braceL),G.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(X.braceR),this.finishNode(G,"TSEnumDeclaration")}tsParseModuleBlock(){let G=this.startNode();this.enterScope(tb),this.expect(X.braceL),G.body=[];while(this.type!==X.braceR){let U=this.parseStatement(null,!0);G.body.push(U)}return this.next(),super.exitScope(),this.finishNode(G,"TSModuleBlock")}tsParseAmbientExternalModuleDeclaration(G){if(this.ts_isContextual(w.global))G.global=!0,G.id=this.parseIdent();else if(this.match(X.string))G.id=this.parseLiteral(this.value);else this.unexpected();if(this.match(X.braceL))this.enterScope(C7),G.body=this.tsParseModuleBlock(),super.exitScope();else super.semicolon();return this.finishNode(G,"TSModuleDeclaration")}tsTryParseDeclare(G){if(this.isLineTerminator())return;let U=this.type,B;if(this.isContextual("let"))U=X._var,B="let";return this.tsInAmbientContext(()=>{if(U===X._function)return G.declare=!0,this.parseFunctionStatement(G,!1,!0);if(U===X._class)return G.declare=!0,this.parseClass(G,!0);if(U===w.enum)return this.tsParseEnumDeclaration(G,{declare:!0});if(U===w.global)return this.tsParseAmbientExternalModuleDeclaration(G);if(U===X._const||U===X._var){if(!this.match(X._const)||!this.isLookaheadContextual("enum"))return G.declare=!0,this.parseVarStatement(G,B||this.value,!0);return this.expect(X._const),this.tsParseEnumDeclaration(G,{const:!0,declare:!0})}if(U===w.interface){let M=this.tsParseInterfaceDeclaration(G,{declare:!0});if(M)return M}if(E(U))return this.tsParseDeclaration(G,this.value,!0)})}tsIsListTerminator(G){switch(G){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(G,U,B,M){let C=[],T=-1;for(;;){if(this.tsIsListTerminator(G))break;T=-1;let D=U();if(D==null)return;if(C.push(D),this.eat(X.comma)){T=this.lastTokStart;continue}if(this.tsIsListTerminator(G))break;if(B)this.expect(X.comma);return}if(M)M.value=T;return C}tsParseDelimitedList(G,U,B){return Ph(this.tsParseDelimitedListWorker(G,U,!0,B))}tsParseBracketedList(G,U,B,M,C){if(!M)if(B)this.expect(X.bracketL);else this.expect(X.relational);let T=this.tsParseDelimitedList(G,U,C);if(B)this.expect(X.bracketR);else this.expect(X.relational);return T}tsParseTypeParameterName(){return this.parseIdent().name}tsEatThenParseType(G){return!this.match(G)?void 0:this.tsNextThenParseType()}tsExpectThenParseType(G){return this.tsDoThenParseType(()=>this.expect(G))}tsNextThenParseType(){return this.tsDoThenParseType(()=>this.next())}tsDoThenParseType(G){return this.tsInType(()=>{return G(),this.tsParseType()})}tsSkipParameterStart(){if(E(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(G){let U=this.inDisallowConditionalTypesContext;this.inDisallowConditionalTypesContext=!1;try{return G()}finally{this.inDisallowConditionalTypesContext=U}}tsParseBindingListForSignature(){return super.parseBindingList(X.parenR,!0,!0).map((G)=>{if(G.type!=="Identifier"&&G.type!=="RestElement"&&G.type!=="ObjectPattern"&&G.type!=="ArrayPattern")this.raise(G.start,G8.UnsupportedSignatureParameterKind({type:G.type}));return G})}tsParseTypePredicateAsserts(){if(this.type!==w.asserts)return!1;let G=this.containsEsc;if(this.next(),!E(this.type)&&!this.match(X._this))return!1;if(G)this.raise(this.lastTokStart,"Escape sequence in keyword asserts");return!0}tsParseThisTypeNode(){let G=this.startNode();return this.next(),this.finishNode(G,"TSThisType")}tsParseTypeAnnotation(G=!0,U=this.startNode()){return this.tsInType(()=>{if(G)this.expect(X.colon);U.typeAnnotation=this.tsParseType()}),this.finishNode(U,"TSTypeAnnotation")}tsParseThisTypePredicate(G){this.next();let U=this.startNodeAtNode(G);return U.parameterName=G,U.typeAnnotation=this.tsParseTypeAnnotation(!1),U.asserts=!1,this.finishNode(U,"TSTypePredicate")}tsParseThisTypeOrThisTypePredicate(){let G=this.tsParseThisTypeNode();if(this.isContextual("is")&&!this.hasPrecedingLineBreak())return this.tsParseThisTypePredicate(G);else return G}tsParseTypePredicatePrefix(){let G=this.parseIdent();if(this.isContextual("is")&&!this.hasPrecedingLineBreak())return this.next(),G}tsParseTypeOrTypePredicateAnnotation(G){return this.tsInType(()=>{let U=this.startNode();this.expect(G);let B=this.startNode(),M=!!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));if(M&&this.match(X._this)){let D=this.tsParseThisTypeOrThisTypePredicate();if(D.type==="TSThisType")B.parameterName=D,B.asserts=!0,B.typeAnnotation=null,D=this.finishNode(B,"TSTypePredicate");else this.resetStartLocationFromNode(D,B),D.asserts=!0;return U.typeAnnotation=D,this.finishNode(U,"TSTypeAnnotation")}let C=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!C){if(!M)return this.tsParseTypeAnnotation(!1,U);return B.parameterName=this.parseIdent(),B.asserts=M,B.typeAnnotation=null,U.typeAnnotation=this.finishNode(B,"TSTypePredicate"),this.finishNode(U,"TSTypeAnnotation")}let T=this.tsParseTypeAnnotation(!1);return B.parameterName=C,B.typeAnnotation=T,B.asserts=M,U.typeAnnotation=this.finishNode(B,"TSTypePredicate"),this.finishNode(U,"TSTypeAnnotation")})}tsFillSignature(G,U){let B=G===X.arrow,M="parameters",C="typeAnnotation";if(U.typeParameters=this.tsTryParseTypeParameters(),this.expect(X.parenL),U.parameters=this.tsParseBindingListForSignature(),B)U.typeAnnotation=this.tsParseTypeOrTypePredicateAnnotation(G);else if(this.match(G))U.typeAnnotation=this.tsParseTypeOrTypePredicateAnnotation(G)}tsTryNextParseConstantContext(){if(this.lookahead().type!==X._const)return null;this.next();let G=this.tsParseTypeReference();if(G.typeParameters||G.typeArguments)this.raise(G.typeName.start,G8.CannotFindName({name:"const"}));return G}tsParseFunctionOrConstructorType(G,U){let B=this.startNode();if(G==="TSConstructorType"){if(B.abstract=!!U,U)this.next();this.next()}return this.tsInAllowConditionalTypesContext(()=>this.tsFillSignature(X.arrow,B)),this.finishNode(B,G)}tsParseUnionOrIntersectionType(G,U,B){let M=this.startNode(),C=this.eat(B),T=[];do T.push(U());while(this.eat(B));if(T.length===1&&!C)return T[0];return M.types=T,this.finishNode(M,G)}tsCheckTypeAnnotationForReadOnly(G){switch(G.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(G.start,G8.UnexpectedReadonly)}}tsParseTypeOperator(){let G=this.startNode(),U=this.value;if(this.next(),G.operator=U,G.typeAnnotation=this.tsParseTypeOperatorOrHigher(),U==="readonly")this.tsCheckTypeAnnotationForReadOnly(G);return this.finishNode(G,"TSTypeOperator")}tsParseConstraintForInferType(){if(this.eat(X._extends)){let G=this.tsInDisallowConditionalTypesContext(()=>this.tsParseType());if(this.inDisallowConditionalTypesContext||!this.match(X.question))return G}}tsParseInferType(){let G=this.startNode();this.expectContextual("infer");let U=this.startNode();return U.name=this.tsParseTypeParameterName(),U.constraint=this.tsTryParse(()=>this.tsParseConstraintForInferType()),G.typeParameter=this.finishNode(U,"TSTypeParameter"),this.finishNode(G,"TSInferType")}tsParseLiteralTypeNode(){let G=this.startNode();return G.literal=(()=>{switch(this.type){case X.num:case X.string:case X._true:case X._false:return this.parseExprAtom();default:this.unexpected()}})(),this.finishNode(G,"TSLiteralType")}tsParseImportType(){let G=this.startNode();if(this.expect(X._import),this.expect(X.parenL),!this.match(X.string))this.raise(this.start,G8.UnsupportedImportTypeArgument);if(G.argument=this.parseExprAtom(),this.expect(X.parenR),this.eat(X.dot))G.qualifier=this.tsParseEntityName();if(this.tsMatchLeftRelational())G.typeArguments=this.tsParseTypeArguments();return this.finishNode(G,"TSImportType")}tsParseTypeQuery(){let G=this.startNode();if(this.expect(X._typeof),this.match(X._import))G.exprName=this.tsParseImportType();else G.exprName=this.tsParseEntityName();if(!this.hasPrecedingLineBreak()&&this.tsMatchLeftRelational())G.typeArguments=this.tsParseTypeArguments();return this.finishNode(G,"TSTypeQuery")}tsParseMappedTypeParameter(){let G=this.startNode();return G.name=this.tsParseTypeParameterName(),G.constraint=this.tsExpectThenParseType(X._in),this.finishNode(G,"TSTypeParameter")}tsParseMappedType(){let G=this.startNode();if(this.expect(X.braceL),this.match(X.plusMin))G.readonly=this.value,this.next(),this.expectContextual("readonly");else if(this.eatContextual("readonly"))G.readonly=!0;if(this.expect(X.bracketL),G.typeParameter=this.tsParseMappedTypeParameter(),G.nameType=this.eatContextual("as")?this.tsParseType():null,this.expect(X.bracketR),this.match(X.plusMin))G.optional=this.value,this.next(),this.expect(X.question);else if(this.eat(X.question))G.optional=!0;return G.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(X.braceR),this.finishNode(G,"TSMappedType")}tsParseTypeLiteral(){let G=this.startNode();return G.members=this.tsParseObjectTypeMembers(),this.finishNode(G,"TSTypeLiteral")}tsParseTupleElementType(){let G=this.startLoc,U=this.start,B=this.eat(X.ellipsis),M=this.tsParseType(),C=this.eat(X.question);if(this.eat(X.colon)){let D=this.startNodeAtNode(M);if(D.optional=C,M.type==="TSTypeReference"&&!M.typeArguments&&M.typeName.type==="Identifier")D.label=M.typeName;else this.raise(M.start,G8.InvalidTupleMemberLabel),D.label=M;D.elementType=this.tsParseType(),M=this.finishNode(D,"TSNamedTupleMember")}else if(C){let D=this.startNodeAtNode(M);D.typeAnnotation=M,M=this.finishNode(D,"TSOptionalType")}if(B){let D=this.startNodeAt(U,G);D.typeAnnotation=M,M=this.finishNode(D,"TSRestType")}return M}tsParseTupleType(){let G=this.startNode();G.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);let U=!1;return G.elementTypes.forEach((B)=>{let{type:M}=B;if(U&&M!=="TSRestType"&&M!=="TSOptionalType"&&!(M==="TSNamedTupleMember"&&B.optional))this.raise(B.start,G8.OptionalTypeBeforeRequired);if(U||=M==="TSNamedTupleMember"&&B.optional||M==="TSOptionalType",M==="TSRestType")B=B.typeAnnotation}),this.finishNode(G,"TSTupleType")}tsParseTemplateLiteralType(){let G=this.startNode();return G.literal=this.parseTemplate({isTagged:!1}),this.finishNode(G,"TSLiteralType")}tsParseTypeReference(){let G=this.startNode();if(G.typeName=this.tsParseEntityName(),!this.hasPrecedingLineBreak()&&this.tsMatchLeftRelational())G.typeArguments=this.tsParseTypeArguments();return this.finishNode(G,"TSTypeReference")}tsMatchLeftRelational(){return this.match(X.relational)&&this.value==="<"}tsMatchRightRelational(){return this.match(X.relational)&&this.value===">"}tsParseParenthesizedType(){let G=this.startNode();return this.expect(X.parenL),G.typeAnnotation=this.tsParseType(),this.expect(X.parenR),this.finishNode(G,"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 G=this.startNode();if(this.lookahead().type!==X.num)this.unexpected();return G.literal=this.parseMaybeUnary(),this.finishNode(G,"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:G}=this;if(E(G)||G===X._void||G===X._null){let U=G===X._void?"TSVoidKeyword":G===X._null?"TSNullKeyword":Oh(this.value);if(U!==void 0&&this.lookaheadCharCode()!==46){let B=this.startNode();return this.next(),this.finishNode(B,U)}return this.tsParseTypeReference()}}}this.unexpected()}tsParseArrayTypeOrHigher(){let G=this.tsParseNonArrayType();while(!this.hasPrecedingLineBreak()&&this.eat(X.bracketL))if(this.match(X.bracketR)){let U=this.startNodeAtNode(G);U.elementType=G,this.expect(X.bracketR),G=this.finishNode(U,"TSArrayType")}else{let U=this.startNodeAtNode(G);U.objectType=G,U.indexType=this.tsParseType(),this.expect(X.bracketR),G=this.finishNode(U,"TSIndexedAccessType")}return G}tsParseTypeOperatorOrHigher(){return S(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(){aJ(this.inType);let G=this.tsParseNonConditionalType();if(this.inDisallowConditionalTypesContext||this.hasPrecedingLineBreak()||!this.eat(X._extends))return G;let U=this.startNodeAtNode(G);return U.checkType=G,U.extendsType=this.tsInDisallowConditionalTypesContext(()=>this.tsParseNonConditionalType()),this.expect(X.question),U.trueType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.expect(X.colon),U.falseType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.finishNode(U,"TSConditionalType")}tsIsUnambiguouslyIndexSignature(){if(this.next(),E(this.type))return this.next(),this.match(X.colon);return!1}tsInType(G){let U=this.inType;this.inType=!0;try{return G()}finally{this.inType=U}}tsTryParseIndexSignature(G){if(!(this.match(X.bracketL)&&this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this))))return;this.expect(X.bracketL);let U=this.parseIdent();U.typeAnnotation=this.tsParseTypeAnnotation(),this.resetEndLocation(U),this.expect(X.bracketR),G.parameters=[U];let B=this.tsTryParseTypeAnnotation();if(B)G.typeAnnotation=B;return this.tsParseTypeMemberSemicolon(),this.finishNode(G,"TSIndexSignature")}tsParseNoneModifiers(G){this.tsParseModifiers({modified:G,allowedModifiers:[],disallowedModifiers:["in","out"],errorTemplate:G8.InvalidModifierOnTypeParameterPositions})}tsParseTypeParameter(G=this.tsParseNoneModifiers.bind(this)){let U=this.startNode();return G(U),U.name=this.tsParseTypeParameterName(),U.constraint=this.tsEatThenParseType(X._extends),U.default=this.tsEatThenParseType(X.eq),this.finishNode(U,"TSTypeParameter")}tsParseTypeParameters(G){let U=this.startNode();if(this.tsMatchLeftRelational()||this.matchJsx("jsxTagStart"))this.next();else this.unexpected();let B={value:-1};if(U.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this,G),!1,!0,B),U.params.length===0)this.raise(this.start,G8.EmptyTypeParameters);if(B.value!==-1)this.addExtra(U,"trailingComma",B.value);return this.finishNode(U,"TSTypeParameterDeclaration")}tsTryParseTypeParameters(G){if(this.tsMatchLeftRelational())return this.tsParseTypeParameters(G)}tsTryParse(G){let U=this.getCurLookaheadState(),B=G();if(B!==void 0&&B!==!1)return B;else{this.setLookaheadState(U);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(G,U){let B=this.value;if(G.indexOf(B)!==-1&&!this.containsEsc){if(U&&this.tsIsStartOfStaticBlocks())return;if(this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this)))return B}return}tsParseModifiersByMap({modified:G,map:U}){for(let B of Object.keys(U))G[B]=U[B]}tsParseModifiers({modified:G,allowedModifiers:U,disallowedModifiers:B,stopOnStartOfClassStaticBlock:M,errorTemplate:C=G8.InvalidModifierOnTypeMember}){let T={},D=(p,k,o,A8)=>{if(k===o&&G[A8])this.raise(p.column,G8.InvalidModifiersOrder({orderedModifiers:[o,A8]}))},f=(p,k,o,A8)=>{if(G[o]&&k===A8||G[A8]&&k===o)this.raise(p.column,G8.IncompatibleModifiers({modifiers:[o,A8]}))};for(;;){let p=this.startLoc,k=this.tsParseModifier(U.concat(B??[]),M);if(!k)break;if(nJ(k))if(G.accessibility)this.raise(this.start,G8.DuplicateAccessibilityModifier());else D(p,k,k,"override"),D(p,k,k,"static"),D(p,k,k,"readonly"),D(p,k,k,"accessor"),T.accessibility=k,G.accessibility=k;else if(zh(k))if(G[k])this.raise(this.start,G8.DuplicateModifier({modifier:k}));else D(p,k,"in","out"),T[k]=k,G[k]=!0;else if(Rh(k))if(G[k])this.raise(this.start,G8.DuplicateModifier({modifier:k}));else f(p,k,"accessor","readonly"),f(p,k,"accessor","static"),f(p,k,"accessor","override"),T[k]=k,G[k]=!0;else if(k==="const")if(G[k])this.raise(this.start,G8.DuplicateModifier({modifier:k}));else T[k]=k,G[k]=!0;else if(Object.hasOwnProperty.call(G,k))this.raise(this.start,G8.DuplicateModifier({modifier:k}));else D(p,k,"static","readonly"),D(p,k,"static","override"),D(p,k,"override","readonly"),D(p,k,"abstract","override"),f(p,k,"declare","override"),f(p,k,"static","abstract"),T[k]=k,G[k]=!0;if(B?.includes(k))this.raise(this.start,C)}return T}tsParseInOutModifiers(G){this.tsParseModifiers({modified:G,allowedModifiers:["in","out"],disallowedModifiers:["public","private","protected","readonly","declare","abstract","override"],errorTemplate:G8.InvalidModifierOnTypeParameter})}parseMaybeUnary(G,U,B,M){if(!q?.jsx&&this.tsMatchLeftRelational())return this.tsParseTypeAssertion();else return super.parseMaybeUnary(G,U,B,M)}tsParseTypeAssertion(){if(Q)this.raise(this.start,G8.ReservedTypeAssertion);let G=this.tryParse(()=>{let U=this.startNode(),B=this.tsTryNextParseConstantContext();return U.typeAnnotation=B||this.tsNextThenParseType(),this.expect(X.relational),U.expression=this.parseMaybeUnary(),this.finishNode(U,"TSTypeAssertion")});if(G.error)return this.tsParseTypeParameters(this.tsParseConstModifier);else return G.node}tsParseTypeArguments(){let G=this.startNode();if(G.params=this.tsInType(()=>this.tsInNoContext(()=>{return this.expect(X.relational),this.tsParseDelimitedList("TypeParametersOrArguments",this.tsParseType.bind(this))})),G.params.length===0)this.raise(this.start,G8.EmptyTypeArguments);return this.exprAllowed=!1,this.expect(X.relational),this.finishNode(G,"TSTypeParameterInstantiation")}tsParseHeritageClause(G){let U=this.start,B=this.tsParseDelimitedList("HeritageClauseElement",()=>{let M=this.startNode();if(M.expression=this.tsParseEntityName(),this.tsMatchLeftRelational())M.typeParameters=this.tsParseTypeArguments();return this.finishNode(M,"TSExpressionWithTypeArguments")});if(!B.length)this.raise(U,G8.EmptyHeritageClauseType({token:G}));return B}tsParseTypeMemberSemicolon(){if(!this.eat(X.comma)&&!this.isLineTerminator())this.expect(X.semi)}tsTryParseAndCatch(G){let U=this.tryParse((B)=>G()||B());if(U.aborted||!U.node)return;if(U.error)this.setLookaheadState(U.failState);return U.node}tsParseSignatureMember(G,U){return this.tsFillSignature(X.colon,U),this.tsParseTypeMemberSemicolon(),this.finishNode(U,G)}tsParsePropertyOrMethodSignature(G,U){if(this.eat(X.question))G.optional=!0;let B=G;if(this.match(X.parenL)||this.tsMatchLeftRelational()){if(U)this.raise(G.start,G8.ReadonlyForMethodSignature);let M=B;if(M.kind&&this.tsMatchLeftRelational())this.raise(this.start,G8.AccesorCannotHaveTypeParameters);this.tsFillSignature(X.colon,M),this.tsParseTypeMemberSemicolon();let C="parameters",T="typeAnnotation";if(M.kind==="get"){if(M[C].length>0){if(this.raise(this.start,"A 'get' accesor must not have any formal parameters."),this.isThisParam(M[C][0]))this.raise(this.start,G8.AccesorCannotDeclareThisParameter)}}else if(M.kind==="set"){if(M[C].length!==1)this.raise(this.start,"A 'get' accesor must not have any formal parameters.");else{let D=M[C][0];if(this.isThisParam(D))this.raise(this.start,G8.AccesorCannotDeclareThisParameter);if(D.type==="Identifier"&&D.optional)this.raise(this.start,G8.SetAccesorCannotHaveOptionalParameter);if(D.type==="RestElement")this.raise(this.start,G8.SetAccesorCannotHaveRestParameter)}if(M[T])this.raise(M[T].start,G8.SetAccesorCannotHaveReturnType)}else M.kind="method";return this.finishNode(M,"TSMethodSignature")}else{let M=B;if(U)M.readonly=!0;let C=this.tsTryParseTypeAnnotation();if(C)M.typeAnnotation=C;return this.tsParseTypeMemberSemicolon(),this.finishNode(M,"TSPropertySignature")}}tsParseTypeMember(){let G=this.startNode();if(this.match(X.parenL)||this.tsMatchLeftRelational())return this.tsParseSignatureMember("TSCallSignatureDeclaration",G);if(this.match(X._new)){let B=this.startNode();if(this.next(),this.match(X.parenL)||this.tsMatchLeftRelational())return this.tsParseSignatureMember("TSConstructSignatureDeclaration",G);else return G.key=this.createIdentifier(B,"new"),this.tsParsePropertyOrMethodSignature(G,!1)}this.tsParseModifiers({modified:G,allowedModifiers:["readonly"],disallowedModifiers:["declare","abstract","private","protected","public","static","override"]});let U=this.tsTryParseIndexSignature(G);if(U)return U;if(this.parsePropertyName(G),!G.computed&&G.key.type==="Identifier"&&(G.key.name==="get"||G.key.name==="set")&&this.tsTokenCanFollowModifier())G.kind=G.key.name,this.parsePropertyName(G);return this.tsParsePropertyOrMethodSignature(G,!!G.readonly)}tsParseList(G,U){let B=[];while(!this.tsIsListTerminator(G))B.push(U());return B}tsParseObjectTypeMembers(){this.expect(X.braceL);let G=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(X.braceR),G}tsParseInterfaceDeclaration(G,U={}){if(this.hasFollowingLineBreak())return null;if(this.expectContextual("interface"),U.declare)G.declare=!0;if(E(this.type))G.id=this.parseIdent(),this.checkLValSimple(G.id,c8.BIND_TS_INTERFACE);else G.id=null,this.raise(this.start,G8.MissingInterfaceName);if(G.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers.bind(this)),this.eat(X._extends))G.extends=this.tsParseHeritageClause("extends");let B=this.startNode();return B.body=this.tsParseInterfaceBody(),G.body=this.finishNode(B,"TSInterfaceBody"),this.finishNode(G,"TSInterfaceDeclaration")}tsParseInterfaceBody(){this.expect(X.braceL);let G=this.inType;this.inType=!0;let U=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.inType=G,this.expect(X.braceR),U}tsParseAbstractDeclaration(G){if(this.match(X._class))return G.abstract=!0,this.parseClass(G,!0);else if(this.ts_isContextual(w.interface)){if(!this.hasFollowingLineBreak())return G.abstract=!0,this.tsParseInterfaceDeclaration(G)}else this.unexpected(G.start)}tsIsDeclarationStart(){return _(this.type)}tsParseExpressionStatement(G,U){switch(U.name){case"declare":{let B=this.tsTryParseDeclare(G);if(B)return B.declare=!0,B;break}case"global":if(this.match(X.braceL)){this.enterScope(C7);let B=G;return B.global=!0,B.id=U,B.body=this.tsParseModuleBlock(),super.exitScope(),this.finishNode(B,"TSModuleDeclaration")}break;default:return this.tsParseDeclaration(G,U.name,!1)}}tsParseModuleReference(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(!1)}tsIsExportDefaultSpecifier(){let{type:G}=this,U=this.isAsyncFunction(),B=this.isLet();if(E(G)){if(U&&!this.containsEsc||B)return!1;if((G===w.type||G===w.interface)&&!this.containsEsc){let T=this.lookahead();if(E(T.type)&&!this.isContextualWithState("from",T)||T.type===X.braceL)return!1}}else if(!this.match(X._default))return!1;let M=this.nextTokenStart(),C=this.isUnparsedContextual(M,"from");if(this.input.charCodeAt(M)===44||E(this.type)&&C)return!0;if(this.match(X._default)&&C){let T=this.input.charCodeAt(this.nextTokenStartSince(M+4));return T===34||T===39}return!1}tsInAmbientContext(G){let U=this.isAmbientContext;this.isAmbientContext=!0;try{return G()}finally{this.isAmbientContext=U}}tsCheckLineTerminator(G){if(G){if(this.hasFollowingLineBreak())return!1;return this.next(),!0}return!this.isLineTerminator()}tsParseModuleOrNamespaceDeclaration(G,U=!1){if(G.id=this.parseIdent(),!U)this.checkLValSimple(G.id,c8.BIND_TS_NAMESPACE);if(this.eat(X.dot)){let B=this.startNode();this.tsParseModuleOrNamespaceDeclaration(B,!0),G.body=B}else this.enterScope(C7),G.body=this.tsParseModuleBlock(),super.exitScope();return this.finishNode(G,"TSModuleDeclaration")}checkLValSimple(G,U=c8.BIND_NONE,B){if(G.type==="TSNonNullExpression"||G.type==="TSAsExpression")G=G.expression;return super.checkLValSimple(G,U,B)}tsParseTypeAliasDeclaration(G){return G.id=this.parseIdent(),this.checkLValSimple(G.id,c8.BIND_TS_TYPE),G.typeAnnotation=this.tsInType(()=>{if(G.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers.bind(this)),this.expect(X.eq),this.ts_isContextual(w.interface)&&this.lookahead().type!==X.dot){let U=this.startNode();return this.next(),this.finishNode(U,"TSIntrinsicKeyword")}return this.tsParseType()}),this.semicolon(),this.finishNode(G,"TSTypeAliasDeclaration")}tsParseDeclaration(G,U,B){switch(U){case"abstract":if(this.tsCheckLineTerminator(B)&&(this.match(X._class)||E(this.type)))return this.tsParseAbstractDeclaration(G);break;case"module":if(this.tsCheckLineTerminator(B)){if(this.match(X.string))return this.tsParseAmbientExternalModuleDeclaration(G);else if(E(this.type))return this.tsParseModuleOrNamespaceDeclaration(G)}break;case"namespace":if(this.tsCheckLineTerminator(B)&&E(this.type))return this.tsParseModuleOrNamespaceDeclaration(G);break;case"type":if(this.tsCheckLineTerminator(B)&&E(this.type))return this.tsParseTypeAliasDeclaration(G);break}}tsTryParseExportDeclaration(){return this.tsParseDeclaration(this.startNode(),this.value,!0)}tsParseImportEqualsDeclaration(G,U){G.isExport=U||!1,G.id=this.parseIdent(),this.checkLValSimple(G.id,c8.BIND_LEXICAL),super.expect(X.eq);let B=this.tsParseModuleReference();if(G.importKind==="type"&&B.type!=="TSExternalModuleReference")this.raise(B.start,G8.ImportAliasHasImportType);return G.moduleReference=B,super.semicolon(),this.finishNode(G,"TSImportEqualsDeclaration")}isExportDefaultSpecifier(){if(this.tsIsDeclarationStart())return!1;let{type:G}=this;if(E(G)){if(this.isContextual("async")||this.isContextual("let"))return!1;if((G===w.type||G===w.interface)&&!this.containsEsc){let M=this.lookahead();if(E(M.type)&&!this.isContextualWithState("from",M)||M.type===X.braceL)return!1}}else if(!this.match(X._default))return!1;let U=this.nextTokenStart(),B=this.isUnparsedContextual(U,"from");if(this.input.charCodeAt(U)===44||E(this.type)&&B)return!0;if(this.match(X._default)&&B){let M=this.input.charCodeAt(this.nextTokenStartSince(U+4));return M===34||M===39}return!1}parseTemplate({isTagged:G=!1}={}){let U=this.startNode();this.next(),U.expressions=[];let B=this.parseTemplateElement({isTagged:G});U.quasis=[B];while(!B.tail){if(this.type===X.eof)this.raise(this.pos,"Unterminated template literal");this.expect(X.dollarBraceL),U.expressions.push(this.inType?this.tsParseType():this.parseExpression()),this.expect(X.braceR),U.quasis.push(B=this.parseTemplateElement({isTagged:G}))}return this.next(),this.finishNode(U,"TemplateLiteral")}parseFunction(G,U,B,M,C){if(this.initFunction(G),this.ecmaVersion>=9||this.ecmaVersion>=6&&!M){if(this.type===X.star&&U&oJ)this.unexpected();G.generator=this.eat(X.star)}if(this.ecmaVersion>=8)G.async=!!M;if(U&D2)G.id=U&Bh&&this.type!==X.name?null:this.parseIdent();let T=this.yieldPos,D=this.awaitPos,f=this.awaitIdentPos,p=this.maybeInArrowParameters;if(this.maybeInArrowParameters=!1,this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(h3(G.async,G.generator)),!(U&D2))G.id=this.type===X.name?this.parseIdent():null;this.parseFunctionParams(G);let k=U&D2;if(this.parseFunctionBody(G,B,!1,C,{isFunctionDeclaration:k}),this.yieldPos=T,this.awaitPos=D,this.awaitIdentPos=f,U&D2&&G.id&&!(U&oJ))if(G.body)this.checkLValSimple(G.id,this.strict||G.generator||G.async?this.treatFunctionsAsVar?c8.BIND_VAR:c8.BIND_LEXICAL:c8.BIND_FUNCTION);else this.checkLValSimple(G.id,c8.BIND_NONE);return this.maybeInArrowParameters=p,this.finishNode(G,k?"FunctionDeclaration":"FunctionExpression")}parseFunctionBody(G,U=!1,B=!1,M=!1,C){if(this.match(X.colon))G.returnType=this.tsParseTypeOrTypePredicateAnnotation(X.colon);let T=C?.isFunctionDeclaration?"TSDeclareFunction":C?.isClassMethod?"TSDeclareMethod":void 0;if(T&&!this.match(X.braceL)&&this.isLineTerminator())return this.exitScope(),this.finishNode(G,T);if(T==="TSDeclareFunction"&&this.isAmbientContext){if(this.raise(G.start,G8.DeclareFunctionHasImplementation),G.declare)return super.parseFunctionBody(G,U,B,!1),this.finishNode(G,T)}return super.parseFunctionBody(G,U,B,M),G}parseNew(){if(this.containsEsc)this.raiseRecoverable(this.start,"Escape sequence in keyword new");let G=this.startNode(),U=this.parseIdent(!0);if(this.ecmaVersion>=6&&this.eat(X.dot)){G.meta=U;let D=this.containsEsc;if(G.property=this.parseIdent(!0),G.property.name!=="target")this.raiseRecoverable(G.property.start,"The only valid meta property for new is 'new.target'");if(D)this.raiseRecoverable(G.start,"'new.target' must not contain escaped characters");if(!this.allowNewDotTarget)this.raiseRecoverable(G.start,"'new.target' can only be used in functions and class static block");return this.finishNode(G,"MetaProperty")}let B=this.start,M=this.startLoc,C=this.type===X._import;if(G.callee=this.parseSubscripts(this.parseExprAtom(),B,M,!0,!1),C&&G.callee.type==="ImportExpression")this.raise(B,"Cannot use new with import()");let{callee:T}=G;if(T.type==="TSInstantiationExpression"&&!T.extra?.parenthesized)G.typeArguments=T.typeArguments,G.callee=T.expression;if(this.eat(X.parenL))G.arguments=this.parseExprList(X.parenR,this.ecmaVersion>=8,!1);else G.arguments=[];return this.finishNode(G,"NewExpression")}parseExprOp(G,U,B,M,C){if(X._in.binop>M&&!this.hasPrecedingLineBreak()){let T;if(this.isContextual("as"))T="TSAsExpression";if(this.isContextual("satisfies"))T="TSSatisfiesExpression";if(T){let D=this.startNodeAt(U,B);D.expression=G;let f=this.tsTryNextParseConstantContext();if(f)D.typeAnnotation=f;else D.typeAnnotation=this.tsNextThenParseType();return this.finishNode(D,T),this.reScan_lt_gt(),this.parseExprOp(D,U,B,M,C)}}return super.parseExprOp(G,U,B,M,C)}parseImportSpecifiers(){let G=[],U=!0;if(J.tokenIsIdentifier(this.type)){if(G.push(this.parseImportDefaultSpecifier()),!this.eat(X.comma))return G}if(this.type===X.star)return G.push(this.parseImportNamespaceSpecifier()),G;this.expect(X.braceL);while(!this.eat(X.braceR)){if(!U){if(this.expect(X.comma),this.afterTrailingComma(X.braceR))break}else U=!1;G.push(this.parseImportSpecifier())}return G}parseImport(G){let U=this.lookahead();if(G.importKind="value",this.importOrExportOuterKind="value",E(U.type)||this.match(X.star)||this.match(X.braceL)){let B=this.lookahead(2);if(B.type!==X.comma&&!this.isContextualWithState("from",B)&&B.type!==X.eq&&this.ts_eatContextualWithState("type",1,U))this.importOrExportOuterKind="type",G.importKind="type",U=this.lookahead(),B=this.lookahead(2);if(E(U.type)&&B.type===X.eq){this.next();let M=this.tsParseImportEqualsDeclaration(G);return this.importOrExportOuterKind="value",M}}if(this.next(),this.type===X.string)G.specifiers=[],G.source=this.parseExprAtom();else G.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),G.source=this.type===X.string?this.parseExprAtom():this.unexpected();if(this.parseMaybeImportAttributes(G),this.semicolon(),this.finishNode(G,"ImportDeclaration"),this.importOrExportOuterKind="value",G.importKind==="type"&&G.specifiers.length>1&&G.specifiers[0].type==="ImportDefaultSpecifier")this.raise(G.start,G8.TypeImportCannotSpecifyDefaultAndNamed);return G}parseExportDefaultDeclaration(){if(this.isAbstractClass()){let G=this.startNode();return this.next(),G.abstract=!0,this.parseClass(G,!0)}if(this.match(w.interface)){let G=this.tsParseInterfaceDeclaration(this.startNode());if(G)return G}return super.parseExportDefaultDeclaration()}parseExportAllDeclaration(G,U){if(this.ecmaVersion>=11)if(this.eatContextual("as"))G.exported=this.parseModuleExportName(),this.checkExport(U,G.exported,this.lastTokStart);else G.exported=null;if(this.expectContextual("from"),this.type!==X.string)this.unexpected();return G.source=this.parseExprAtom(),this.parseMaybeImportAttributes(G),this.semicolon(),this.finishNode(G,"ExportAllDeclaration")}parseDynamicImport(G){if(this.next(),G.source=this.parseMaybeAssign(),this.eat(X.comma)){let U=this.parseExpression();G.arguments=[U]}if(!this.eat(X.parenR)){let U=this.start;if(this.eat(X.comma)&&this.eat(X.parenR))this.raiseRecoverable(U,"Trailing comma is not allowed in import()");else this.unexpected(U)}return this.finishNode(G,"ImportExpression")}parseExport(G,U){let B=this.lookahead();if(this.ts_eatWithState(X._import,2,B)){if(this.ts_isContextual(w.type)&&this.lookaheadCharCode()!==61)G.importKind="type",this.importOrExportOuterKind="type",this.next();else G.importKind="value",this.importOrExportOuterKind="value";let M=this.tsParseImportEqualsDeclaration(G,!0);return this.importOrExportOuterKind=void 0,M}else if(this.ts_eatWithState(X.eq,2,B)){let M=G;return M.expression=this.parseExpression(),this.semicolon(),this.importOrExportOuterKind=void 0,this.finishNode(M,"TSExportAssignment")}else if(this.ts_eatContextualWithState("as",2,B)){let M=G;return this.expectContextual("namespace"),M.id=this.parseIdent(),this.semicolon(),this.importOrExportOuterKind=void 0,this.finishNode(M,"TSNamespaceExportDeclaration")}else{let M=this.lookahead(2).type;if(this.ts_isContextualWithState(B,w.type)&&(M===X.braceL||M===X.star))this.next(),this.importOrExportOuterKind="type",G.exportKind="type";else this.importOrExportOuterKind="value",G.exportKind="value";if(this.next(),this.eat(X.star))return this.parseExportAllDeclaration(G,U);if(this.eat(X._default))return this.checkExport(U,"default",this.lastTokStart),G.declaration=this.parseExportDefaultDeclaration(),this.finishNode(G,"ExportDefaultDeclaration");if(this.shouldParseExportStatement()){if(G.declaration=this.parseExportDeclaration(G),G.declaration.type==="VariableDeclaration")this.checkVariableExport(U,G.declaration.declarations);else this.checkExport(U,G.declaration.id,G.declaration.id.start);G.specifiers=[],G.source=null}else{if(G.declaration=null,G.specifiers=this.parseExportSpecifiers(U),this.eatContextual("from")){if(this.type!==X.string)this.unexpected();G.source=this.parseExprAtom(),this.parseMaybeImportAttributes(G)}else{for(let C of G.specifiers)if(this.checkUnreserved(C.local),this.checkLocalExport(C.local),C.local.type==="Literal")this.raise(C.local.start,"A string literal cannot be used as an exported binding without `from`.");G.source=null}this.semicolon()}return this.finishNode(G,"ExportNamedDeclaration")}}checkExport(G,U,B){if(!G)return;if(typeof U!=="string")U=U.type==="Identifier"?U.name:U.value;G[U]=!0}parseMaybeDefault(G,U,B){let M=super.parseMaybeDefault(G,U,B);if(M.type==="AssignmentPattern"&&M.typeAnnotation&&M.right.start<M.typeAnnotation.start)this.raise(M.typeAnnotation.start,G8.TypeAnnotationAfterAssign);return M}typeCastToParameter(G){return G.expression.typeAnnotation=G.typeAnnotation,this.resetEndLocation(G.expression,G.typeAnnotation.end,G.typeAnnotation.loc?.end),G.expression}toAssignableList(G,U){if(!G)G=[];for(let B=0;B<G.length;B++){let M=G[B];if(M?.type==="TSTypeCastExpression")G[B]=this.typeCastToParameter(M)}return super.toAssignableList(G,U)}reportReservedArrowTypeParam(G){if(G.params.length===1&&!G.extra?.trailingComma&&Q)this.raise(G.start,G8.ReservedArrowTypeParam)}parseExprAtom(G,U,B){if(this.type===w.jsxText)return this.jsx_parseText();else if(this.type===w.jsxTagStart)return this.jsx_parseElement();else if(this.type===w.at)return this.parseDecorators(),this.parseExprAtom();else if(E(this.type)){let M=this.potentialArrowAt===this.start,C=this.start,T=this.startLoc,D=this.containsEsc,f=this.parseIdent(!1);if(this.ecmaVersion>=8&&!D&&f.name==="async"&&!this.canInsertSemicolon()&&this.eat(X._function))return this.overrideContext(O.f_expr),this.parseFunction(this.startNodeAt(C,T),0,!1,!0,U);if(M&&!this.canInsertSemicolon()){if(this.eat(X.arrow))return this.parseArrowExpression(this.startNodeAt(C,T),[f],!1,U);if(this.ecmaVersion>=8&&f.name==="async"&&this.type===X.name&&!D&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc)){if(f=this.parseIdent(!1),this.canInsertSemicolon()||!this.eat(X.arrow))this.unexpected();return this.parseArrowExpression(this.startNodeAt(C,T),[f],!0,U)}}return f}else return super.parseExprAtom(G,U,B)}parseExprAtomDefault(){if(E(this.type)){let G=this.potentialArrowAt===this.start,U=this.containsEsc,B=this.parseIdent();if(!U&&B.name==="async"&&!this.canInsertSemicolon()){let{type:M}=this;if(M===X._function)return this.next(),this.parseFunction(this.startNodeAtNode(B),void 0,!0,!0);else if(E(M))if(this.lookaheadCharCode()===61){let C=this.parseIdent(!1);if(this.canInsertSemicolon()||!this.eat(X.arrow))this.unexpected();return this.parseArrowExpression(this.startNodeAtNode(B),[C],!0)}else return B}if(G&&this.match(X.arrow)&&!this.canInsertSemicolon())return this.next(),this.parseArrowExpression(this.startNodeAtNode(B),[B],!1);return B}else this.unexpected()}parseIdentNode(){let G=this.startNode();if(u(this.type)&&!((this.type.keyword==="class"||this.type.keyword==="function")&&(this.lastTokEnd!==this.lastTokStart+1||this.input.charCodeAt(this.lastTokStart)!==46)))G.name=this.value;else return super.parseIdentNode();return G}parseVarStatement(G,U,B=!1){let{isAmbientContext:M}=this;this.next(),super.parseVar(G,!1,U,B||M),this.semicolon();let C=this.finishNode(G,"VariableDeclaration");if(!M)return C;for(let{id:T,init:D}of C.declarations){if(!D)continue;if(U!=="const"||!!T.typeAnnotation)this.raise(D.start,G8.InitializerNotAllowedInAmbientContext);else if(D.type!=="StringLiteral"&&D.type!=="BooleanLiteral"&&D.type!=="NumericLiteral"&&D.type!=="BigIntLiteral"&&(D.type!=="TemplateLiteral"||D.expressions.length>0)&&!Mh(D))this.raise(D.start,G8.ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference)}return C}parseStatement(G,U,B){if(this.match(w.at))this.parseDecorators(!0);if(this.match(X._const)&&this.isLookaheadContextual("enum")){let M=this.startNode();return this.expect(X._const),this.tsParseEnumDeclaration(M,{const:!0})}if(this.ts_isContextual(w.enum))return this.tsParseEnumDeclaration(this.startNode());if(this.ts_isContextual(w.interface)){let M=this.tsParseInterfaceDeclaration(this.startNode());if(M)return M}return super.parseStatement(G,U,B)}parseAccessModifier(){return this.tsParseModifier(["public","protected","private"])}parsePostMemberNameModifiers(G){if(this.eat(X.question))G.optional=!0;if(G.readonly&&this.match(X.parenL))this.raise(G.start,G8.ClassMethodHasReadonly);if(G.declare&&this.match(X.parenL))this.raise(G.start,G8.ClassMethodHasDeclare)}parseExpressionStatement(G,U){return(U.type==="Identifier"?this.tsParseExpressionStatement(G,U):void 0)||super.parseExpressionStatement(G,U)}shouldParseExportStatement(){if(this.tsIsDeclarationStart())return!0;if(this.match(w.at))return!0;return super.shouldParseExportStatement()}parseConditional(G,U,B,M,C){if(this.eat(X.question)){let T=this.startNodeAt(U,B);return T.test=G,T.consequent=this.parseMaybeAssign(),this.expect(X.colon),T.alternate=this.parseMaybeAssign(M),this.finishNode(T,"ConditionalExpression")}return G}parseMaybeConditional(G,U){let B=this.start,M=this.startLoc,C=this.parseExprOps(G,U);if(this.checkExpressionErrors(U))return C;if(!this.maybeInArrowParameters||!this.match(X.question))return this.parseConditional(C,B,M,G,U);let T=this.tryParse(()=>this.parseConditional(C,B,M,G,U));if(!T.node){if(T.error)this.setOptionalParametersError(U,T.error);return C}if(T.error)this.setLookaheadState(T.failState);return T.node}parseParenItem(G){let U=this.start,B=this.startLoc;if(G=super.parseParenItem(G),this.eat(X.question))G.optional=!0,this.resetEndLocation(G);if(this.match(X.colon)){let M=this.startNodeAt(U,B);return M.expression=G,M.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(M,"TSTypeCastExpression")}return G}parseExportDeclaration(G){if(!this.isAmbientContext&&this.ts_isContextual(w.declare))return this.tsInAmbientContext(()=>this.parseExportDeclaration(G));let U=this.start,B=this.startLoc,M=this.eatContextual("declare");if(M&&(this.ts_isContextual(w.declare)||!this.shouldParseExportStatement()))this.raise(this.start,G8.ExpectedAmbientAfterExportDeclare);let T=E(this.type)&&this.tsTryParseExportDeclaration()||this.parseStatement(null);if(!T)return null;if(T.type==="TSInterfaceDeclaration"||T.type==="TSTypeAliasDeclaration"||M)G.exportKind="type";if(M)this.resetStartLocation(T,U,B),T.declare=!0;return T}parseClassId(G,U){if(!U&&this.isContextual("implements"))return;super.parseClassId(G,U);let B=this.tsTryParseTypeParameters(this.tsParseInOutModifiers.bind(this));if(B)G.typeParameters=B}parseClassPropertyAnnotation(G){if(!G.optional){if(this.value==="!"&&this.eat(X.prefix))G.definite=!0;else if(this.eat(X.question))G.optional=!0}let U=this.tsTryParseTypeAnnotation();if(U)G.typeAnnotation=U}parseClassField(G){if(G.key.type==="PrivateIdentifier"){if(G.abstract)this.raise(G.start,G8.PrivateElementHasAbstract);if(G.accessibility)this.raise(G.start,G8.PrivateElementHasAccessibility({modifier:G.accessibility}));this.parseClassPropertyAnnotation(G)}else{if(this.parseClassPropertyAnnotation(G),this.isAmbientContext&&!(G.readonly&&!G.typeAnnotation)&&this.match(X.eq))this.raise(this.start,G8.DeclareClassFieldHasInitializer);if(G.abstract&&this.match(X.eq)){let{key:B}=G;this.raise(this.start,G8.AbstractPropertyHasInitializer({propertyName:B.type==="Identifier"&&!G.computed?B.name:`[${this.input.slice(B.start,B.end)}]`}))}}return super.parseClassField(G)}parseClassMethod(G,U,B,M){let C=G.kind==="constructor",T=G.key.type==="PrivateIdentifier",D=this.tsTryParseTypeParameters(this.tsParseConstModifier);if(T){if(D)G.typeParameters=D;if(G.accessibility)this.raise(G.start,G8.PrivateMethodsHasAccessibility({modifier:G.accessibility}))}else if(D&&C)this.raise(D.start,G8.ConstructorHasTypeParameters);let{declare:f=!1,kind:p}=G;if(f&&(p==="get"||p==="set"))this.raise(G.start,G8.DeclareAccessor({kind:p}));if(D)G.typeParameters=D;let k=G.key;if(G.kind==="constructor"){if(U)this.raise(k.start,"Constructor can't be a generator");if(B)this.raise(k.start,"Constructor can't be an async method")}else if(G.static&&sJ(G,"prototype"))this.raise(k.start,"Classes may not have a static property named prototype");let o=G.value=this.parseMethod(U,B,M,!0,G);if(G.kind==="get"&&o.params.length!==0)this.raiseRecoverable(o.start,"getter should have no params");if(G.kind==="set"&&o.params.length!==1)this.raiseRecoverable(o.start,"setter should have exactly one param");if(G.kind==="set"&&o.params[0].type==="RestElement")this.raiseRecoverable(o.params[0].start,"Setter cannot use rest params");return this.finishNode(G,"MethodDefinition")}isClassMethod(){return this.match(X.relational)}parseClassElement(G){if(this.eat(X.semi))return null;let U=this.startNode(),B="",M=!1,C=!1,T="method",D=!1,f=["declare","private","public","protected","accessor","override","abstract","readonly","static"],p=this.tsParseModifiers({modified:U,allowedModifiers:f,disallowedModifiers:["in","out"],stopOnStartOfClassStaticBlock:!0,errorTemplate:G8.InvalidModifierOnTypeParameterPositions});D=Boolean(p.static);let k=()=>{if(this.tsIsStartOfStaticBlocks()){if(this.next(),this.next(),this.tsHasSomeModifiers(U,f))this.raise(this.start,G8.StaticBlockCannotHaveModifier);if(this.ecmaVersion>=13)return super.parseClassStaticBlock(U),U}else{let o=this.tsTryParseIndexSignature(U);if(o){if(U.abstract)this.raise(U.start,G8.IndexSignatureHasAbstract);if(U.accessibility)this.raise(U.start,G8.IndexSignatureHasAccessibility({modifier:U.accessibility}));if(U.declare)this.raise(U.start,G8.IndexSignatureHasDeclare);if(U.override)this.raise(U.start,G8.IndexSignatureHasOverride);return o}if(!this.inAbstractClass&&U.abstract)this.raise(U.start,G8.NonAbstractClassHasAbstractMethod);if(U.override){if(!G)this.raise(U.start,G8.OverrideNotInSubClass)}if(U.static=D,D){if(!(this.isClassElementNameStart()||this.type===X.star))B="static"}if(!B&&this.ecmaVersion>=8&&this.eatContextual("async"))if((this.isClassElementNameStart()||this.type===X.star)&&!this.canInsertSemicolon())C=!0;else B="async";if(!B&&(this.ecmaVersion>=9||!C)&&this.eat(X.star))M=!0;if(!B&&!C&&!M){let A8=this.value;if(this.eatContextual("get")||this.eatContextual("set"))if(this.isClassElementNameStart())T=A8;else B=A8}if(B)U.computed=!1,U.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),U.key.name=B,this.finishNode(U.key,"Identifier");else this.parseClassElementName(U);if(this.parsePostMemberNameModifiers(U),this.isClassMethod()||this.ecmaVersion<13||this.type===X.parenL||T!=="method"||M||C){let A8=!U.static&&sJ(U,"constructor"),z8=A8&&G;if(A8&&T!=="method")this.raise(U.key.start,"Constructor can't have get/set modifier");U.kind=A8?"constructor":T,this.parseClassMethod(U,M,C,z8)}else this.parseClassField(U);return U}};if(U.declare)this.tsInAmbientContext(k);else k();return U}isClassElementNameStart(){if(this.tsIsIdentifier())return!0;return super.isClassElementNameStart()}parseClassSuper(G){if(super.parseClassSuper(G),G.superClass&&(this.tsMatchLeftRelational()||this.match(X.bitShift)))G.superTypeParameters=this.tsParseTypeArgumentsInExpression();if(this.eatContextual("implements"))G.implements=this.tsParseHeritageClause("implements")}parseFunctionParams(G){let U=this.tsTryParseTypeParameters(this.tsParseConstModifier);if(U)G.typeParameters=U;super.parseFunctionParams(G)}parseVarId(G,U){if(super.parseVarId(G,U),G.id.type==="Identifier"&&!this.hasPrecedingLineBreak()&&this.value==="!"&&this.eat(X.prefix))G.definite=!0;let B=this.tsTryParseTypeAnnotation();if(B)G.id.typeAnnotation=B,this.resetEndLocation(G.id)}parseArrowExpression(G,U,B,M){if(this.match(X.colon))G.returnType=this.tsParseTypeAnnotation();let C=this.yieldPos,T=this.awaitPos,D=this.awaitIdentPos;this.enterScope(h3(B,!1)|c8.SCOPE_ARROW),this.initFunction(G);let f=this.maybeInArrowParameters;if(this.ecmaVersion>=8)G.async=!!B;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.maybeInArrowParameters=!0,G.params=this.toAssignableList(U,!0),this.maybeInArrowParameters=!1,this.parseFunctionBody(G,!0,!1,M),this.yieldPos=C,this.awaitPos=T,this.awaitIdentPos=D,this.maybeInArrowParameters=f,this.finishNode(G,"ArrowFunctionExpression")}parseMaybeAssignOrigin(G,U,B){if(this.isContextual("yield"))if(this.inGenerator)return this.parseYield(G);else this.exprAllowed=!1;let M=!1,C=-1,T=-1,D=-1;if(U)C=U.parenthesizedAssign,T=U.trailingComma,D=U.doubleProto,U.parenthesizedAssign=U.trailingComma=-1;else U=new E7,M=!0;let f=this.start,p=this.startLoc;if(this.type===X.parenL||E(this.type))this.potentialArrowAt=this.start,this.potentialArrowInForAwait=G==="await";let k=this.parseMaybeConditional(G,U);if(B)k=B.call(this,k,f,p);if(this.type.isAssign){let o=this.startNodeAt(f,p);if(o.operator=this.value,this.type===X.eq)k=this.toAssignable(k,!0,U);if(!M)U.parenthesizedAssign=U.trailingComma=U.doubleProto=-1;if(U.shorthandAssign>=k.start)U.shorthandAssign=-1;if(!this.maybeInArrowParameters)if(this.type===X.eq)this.checkLValPattern(k);else this.checkLValSimple(k);if(o.left=k,this.next(),o.right=this.parseMaybeAssign(G),D>-1)U.doubleProto=D;return this.finishNode(o,"AssignmentExpression")}else if(M)this.checkExpressionErrors(U,!0);if(C>-1)U.parenthesizedAssign=C;if(T>-1)U.trailingComma=T;return k}parseMaybeAssign(G,U,B){let M,C,T;if(q?.jsx&&(this.matchJsx("jsxTagStart")||this.tsMatchLeftRelational())){if(M=this.cloneCurLookaheadState(),C=this.tryParse(()=>this.parseMaybeAssignOrigin(G,U,B),M),!C.error)return C.node;let p=this.context,k=p[p.length-1],o=p[p.length-2];if(k===J.tokContexts.tc_oTag&&o===J.tokContexts.tc_expr)p.pop(),p.pop();else if(k===J.tokContexts.tc_oTag||k===J.tokContexts.tc_expr)p.pop()}if(!C?.error&&!this.tsMatchLeftRelational())return this.parseMaybeAssignOrigin(G,U,B);if(!M||this.compareLookaheadState(M,this.getCurLookaheadState()))M=this.cloneCurLookaheadState();let D,f=this.tryParse((p)=>{D=this.tsParseTypeParameters(this.tsParseConstModifier);let k=this.parseMaybeAssignOrigin(G,U,B);if(k.type!=="ArrowFunctionExpression"||k.extra?.parenthesized)p();if(D?.params.length!==0)this.resetStartLocationFromNode(k,D);return k.typeParameters=D,k},M);if(!f.error&&!f.aborted){if(D)this.reportReservedArrowTypeParam(D);return f.node}if(!C){if(aJ(!0),T=this.tryParse(()=>this.parseMaybeAssignOrigin(G,U,B),M),!T.error)return T.node}if(C?.node)return this.setLookaheadState(C.failState),C.node;if(f.node){if(this.setLookaheadState(f.failState),D)this.reportReservedArrowTypeParam(D);return f.node}if(T?.node)return this.setLookaheadState(T.failState),T.node;if(C?.thrown)throw C.error;if(f.thrown)throw f.error;if(T?.thrown)throw T.error;throw C?.error||f.error||T?.error}parseAssignableListItem(G){let U=[];while(this.match(w.at))U.push(this.parseDecorator());let B=this.start,M=this.startLoc,C,T=!1,D=!1;if(G!==void 0){let k={};if(this.tsParseModifiers({modified:k,allowedModifiers:["public","private","protected","override","readonly"]}),C=k.accessibility,D=k.override,T=k.readonly,G===!1&&(C||T||D))this.raise(M.column,G8.UnexpectedParameterModifier)}let f=this.parseMaybeDefault(B,M);this.parseBindingListItem(f);let p=this.parseMaybeDefault(f.start,f.loc.start,f);if(U.length)p.decorators=U;if(C||T||D){let k=this.startNodeAt(B,M);if(C)k.accessibility=C;if(T)k.readonly=T;if(D)k.override=D;if(p.type!=="Identifier"&&p.type!=="AssignmentPattern")this.raise(k.start,G8.UnsupportedParameterPropertyKind);return k.parameter=p,this.finishNode(k,"TSParameterProperty")}return p}checkLValInnerPattern(G,U=c8.BIND_NONE,B){switch(G.type){case"TSParameterProperty":this.checkLValInnerPattern(G.parameter,U,B);break;default:{super.checkLValInnerPattern(G,U,B);break}}}parseBindingListItem(G){if(this.eat(X.question)){if(G.type!=="Identifier"&&!this.isAmbientContext&&!this.inType)this.raise(G.start,G8.PatternIsOptional);G.optional=!0}let U=this.tsTryParseTypeAnnotation();if(U)G.typeAnnotation=U;return this.resetEndLocation(G),G}isAssignable(G,U){switch(G.type){case"TSTypeCastExpression":return this.isAssignable(G.expression,U);case"TSParameterProperty":return!0;case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":return!0;case"ObjectExpression":{let B=G.properties.length-1;return G.properties.every((M,C)=>{return M.type!=="ObjectMethod"&&(C===B||M.type!=="SpreadElement")&&this.isAssignable(M)})}case"Property":case"ObjectProperty":return this.isAssignable(G.value);case"SpreadElement":return this.isAssignable(G.argument);case"ArrayExpression":return G.elements.every((B)=>B===null||this.isAssignable(B));case"AssignmentExpression":return G.operator==="=";case"ParenthesizedExpression":return this.isAssignable(G.expression);case"MemberExpression":case"OptionalMemberExpression":return!U;default:return!1}}toAssignable(G,U=!1,B=new E7){switch(G.type){case"ParenthesizedExpression":return this.toAssignableParenthesizedExpression(G,U,B);case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":if(U);else this.raise(G.start,G8.UnexpectedTypeCastInParameter);return this.toAssignable(G.expression,U,B);case"MemberExpression":break;case"AssignmentExpression":if(!U&&G.left.type==="TSTypeCastExpression")G.left=this.typeCastToParameter(G.left);return super.toAssignable(G,U,B);case"TSTypeCastExpression":return this.typeCastToParameter(G);default:return super.toAssignable(G,U,B)}return G}toAssignableParenthesizedExpression(G,U,B){switch(G.expression.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":case"ParenthesizedExpression":return this.toAssignable(G.expression,U,B);default:return super.toAssignable(G,U,B)}}parseBindingAtom(){switch(this.type){case X._this:return this.parseIdent(!0);default:return super.parseBindingAtom()}}shouldParseArrow(G){let U;if(this.match(X.colon))U=G.every((B)=>this.isAssignable(B,!0));else U=!this.canInsertSemicolon();if(U){if(this.match(X.colon)){let B=this.tryParse((M)=>{let C=this.tsParseTypeOrTypePredicateAnnotation(X.colon);if(this.canInsertSemicolon()||!this.match(X.arrow))M();return C});if(B.aborted)return this.shouldParseArrowReturnType=void 0,!1;if(!B.thrown){if(B.error)this.setLookaheadState(B.failState);this.shouldParseArrowReturnType=B.node}}if(!this.match(X.arrow))return this.shouldParseArrowReturnType=void 0,!1;return!0}return this.shouldParseArrowReturnType=void 0,U}parseParenArrowList(G,U,B,M){let C=this.startNodeAt(G,U);return C.returnType=this.shouldParseArrowReturnType,this.shouldParseArrowReturnType=void 0,this.parseArrowExpression(C,B,!1,M)}parseParenAndDistinguishExpression(G,U){let B=this.start,M=this.startLoc,C,T=this.ecmaVersion>=8;if(this.ecmaVersion>=6){let D=this.maybeInArrowParameters;this.maybeInArrowParameters=!0,this.next();let f=this.start,p=this.startLoc,k=[],o=!0,A8=!1,z8=new E7,D8=this.yieldPos,Z8=this.awaitPos,S8;this.yieldPos=0,this.awaitPos=0;while(this.type!==X.parenR)if(o?o=!1:this.expect(X.comma),T&&this.afterTrailingComma(X.parenR,!0)){A8=!0;break}else if(this.type===X.ellipsis){if(S8=this.start,k.push(this.parseParenItem(this.parseRestBinding())),this.type===X.comma)this.raise(this.start,"Comma is not permitted after the rest element");break}else k.push(this.parseMaybeAssign(U,z8,this.parseParenItem));let H8=this.lastTokEnd,q8=this.lastTokEndLoc;if(this.expect(X.parenR),this.maybeInArrowParameters=D,G&&this.shouldParseArrow(k)&&this.eat(X.arrow))return this.checkPatternErrors(z8,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=D8,this.awaitPos=Z8,this.parseParenArrowList(B,M,k,U);if(!k.length||A8)this.unexpected(this.lastTokStart);if(S8)this.unexpected(S8);if(this.checkExpressionErrors(z8,!0),this.yieldPos=D8||this.yieldPos,this.awaitPos=Z8||this.awaitPos,k.length>1)C=this.startNodeAt(f,p),C.expressions=k,this.finishNodeAt(C,"SequenceExpression",H8,q8);else C=k[0]}else C=this.parseParenExpression();if(this.options.preserveParens){let D=this.startNodeAt(B,M);return D.expression=C,this.finishNode(D,"ParenthesizedExpression")}else return C}parseTaggedTemplateExpression(G,U,B,M){let C=this.startNodeAt(U,B);if(C.tag=G,C.quasi=this.parseTemplate({isTagged:!0}),M)this.raise(U,"Tagged Template Literals are not allowed in optionalChain.");return this.finishNode(C,"TaggedTemplateExpression")}shouldParseAsyncArrow(){if(this.match(X.colon)){let G=this.tryParse((U)=>{let B=this.tsParseTypeOrTypePredicateAnnotation(X.colon);if(this.canInsertSemicolon()||!this.match(X.arrow))U();return B});if(G.aborted)return this.shouldParseAsyncArrowReturnType=void 0,!1;if(!G.thrown){if(G.error)this.setLookaheadState(G.failState);return this.shouldParseAsyncArrowReturnType=G.node,!this.canInsertSemicolon()&&this.eat(X.arrow)}}else return!this.canInsertSemicolon()&&this.eat(X.arrow)}parseSubscriptAsyncArrow(G,U,B,M){let C=this.startNodeAt(G,U);return C.returnType=this.shouldParseAsyncArrowReturnType,this.shouldParseAsyncArrowReturnType=void 0,this.parseArrowExpression(C,B,!0,M)}parseExprList(G,U,B,M){let C=[],T=!0;while(!this.eat(G)){if(!T){if(this.expect(X.comma),U&&this.afterTrailingComma(G))break}else T=!1;let D;if(B&&this.type===X.comma)D=null;else if(this.type===X.ellipsis){if(D=this.parseSpread(M),this.maybeInArrowParameters&&this.match(X.colon))D.typeAnnotation=this.tsParseTypeAnnotation();if(M&&this.type===X.comma&&M.trailingComma<0)M.trailingComma=this.start}else D=this.parseMaybeAssign(!1,M,this.parseParenItem);C.push(D)}return C}parseSubscript(G,U,B,M,C,T,D){let f=T;if(!this.hasPrecedingLineBreak()&&this.value==="!"&&this.match(X.prefix)){this.exprAllowed=!1,this.next();let z8=this.startNodeAt(U,B);return z8.expression=G,G=this.finishNode(z8,"TSNonNullExpression"),G}let p=!1;if(this.match(X.questionDot)&&this.lookaheadCharCode()===60){if(M)return G;G.optional=!0,f=p=!0,this.next()}if(this.tsMatchLeftRelational()||this.match(X.bitShift)){let z8,D8=this.tsTryParseAndCatch(()=>{if(!M&&this.atPossibleAsyncArrow(G)){let q8=this.tsTryParseGenericAsyncArrowFunction(U,B,D);if(q8)return G=q8,G}let Z8=this.tsParseTypeArgumentsInExpression();if(!Z8)return G;if(p&&!this.match(X.parenL))return z8=this.curPosition(),G;if(m(this.type)||this.type===X.backQuote){let q8=this.parseTaggedTemplateExpression(G,U,B,f);return q8.typeArguments=Z8,q8}if(!M&&this.eat(X.parenL)){let q8=new E7,v8=this.startNodeAt(U,B);if(v8.callee=G,v8.arguments=this.parseExprList(X.parenR,this.ecmaVersion>=8,!1,q8),this.tsCheckForInvalidTypeCasts(v8.arguments),v8.typeArguments=Z8,f)v8.optional=p;return this.checkExpressionErrors(q8,!0),G=this.finishNode(v8,"CallExpression"),G}let S8=this.type;if(this.tsMatchRightRelational()||S8===X.bitShift||S8!==X.parenL&&Lh(S8)&&!this.hasPrecedingLineBreak())return;let H8=this.startNodeAt(U,B);return H8.expression=G,H8.typeArguments=Z8,this.finishNode(H8,"TSInstantiationExpression")});if(z8)this.unexpected(z8);if(D8){if(D8.type==="TSInstantiationExpression"&&(this.match(X.dot)||this.match(X.questionDot)&&this.lookaheadCharCode()!==40))this.raise(this.start,G8.InvalidPropertyAccessAfterInstantiationExpression);return G=D8,G}}let k=this.ecmaVersion>=11,o=k&&this.eat(X.questionDot);if(M&&o)this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");let A8=this.eat(X.bracketL);if(A8||o&&this.type!==X.parenL&&this.type!==X.backQuote||this.eat(X.dot)){let z8=this.startNodeAt(U,B);if(z8.object=G,A8)z8.property=this.parseExpression(),this.expect(X.bracketR);else if(this.type===X.privateId&&G.type!=="Super")z8.property=this.parsePrivateIdent();else z8.property=this.parseIdent(this.options.allowReserved!=="never");if(z8.computed=!!A8,k)z8.optional=o;G=this.finishNode(z8,"MemberExpression")}else if(!M&&this.eat(X.parenL)){let z8=this.maybeInArrowParameters;this.maybeInArrowParameters=!0;let D8=new E7,Z8=this.yieldPos,S8=this.awaitPos,H8=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;let q8=this.parseExprList(X.parenR,this.ecmaVersion>=8,!1,D8);if(C&&!o&&this.shouldParseAsyncArrow()){if(this.checkPatternErrors(D8,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0)this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function");this.yieldPos=Z8,this.awaitPos=S8,this.awaitIdentPos=H8,G=this.parseSubscriptAsyncArrow(U,B,q8,D)}else{this.checkExpressionErrors(D8,!0),this.yieldPos=Z8||this.yieldPos,this.awaitPos=S8||this.awaitPos,this.awaitIdentPos=H8||this.awaitIdentPos;let v8=this.startNodeAt(U,B);if(v8.callee=G,v8.arguments=q8,k)v8.optional=o;G=this.finishNode(v8,"CallExpression")}this.maybeInArrowParameters=z8}else if(this.type===X.backQuote){if(o||f)this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");let z8=this.startNodeAt(U,B);z8.tag=G,z8.quasi=this.parseTemplate({isTagged:!0}),G=this.finishNode(z8,"TaggedTemplateExpression")}return G}parseGetterSetter(G){G.kind=G.key.name,this.parsePropertyName(G);let U=this.tsTryParseTypeParameters(this.tsParseConstModifier);if(G.value=this.parseMethod(!1),U)G.value.typeParameters=U;let B=G.kind==="get"?0:1,M=G.value.params[0];if(B=M&&this.isThisParam(M)?B+1:B,G.value.params.length!==B){let T=G.value.start;if(G.kind==="get")this.raiseRecoverable(T,"getter should have no params");else this.raiseRecoverable(T,"setter should have exactly one param")}else if(G.kind==="set"&&G.value.params[0].type==="RestElement")this.raiseRecoverable(G.value.params[0].start,"Setter cannot use rest params")}parsePropertyValue(G,U,B,M,C,T,D,f){if(this.tsMatchLeftRelational()){if(U)this.unexpected();G.kind="init",G.method=!0;let p=this.tsTryParseTypeParameters(this.tsParseConstModifier);if(G.value=this.parseMethod(B,M),p)G.value.typeParameters=p;return}return super.parsePropertyValue(G,U,B,M,C,T,D,f)}parseProperty(G,U){if(!G){let B=[];if(this.match(w.at))while(this.match(w.at))B.push(this.parseDecorator());let M=super.parseProperty(G,U);if(M.type==="SpreadElement"){if(B.length)this.raise(M.start,C2.SpreadElementDecorator)}if(B.length)M.decorators=B,B=[];return M}return super.parseProperty(G,U)}parseCatchClauseParam(){let G=this.parseBindingAtom(),U=G.type==="Identifier";this.enterScope(U?c8.SCOPE_SIMPLE_CATCH:0),this.checkLValPattern(G,U?c8.BIND_SIMPLE_CATCH:c8.BIND_LEXICAL);let B=this.tsTryParseTypeAnnotation();if(B)G.typeAnnotation=B,this.resetEndLocation(G);return this.expect(X.parenR),G}parseClass(G,U){let B=this.inAbstractClass;this.inAbstractClass=!!G.abstract;try{this.next(),this.takeDecorators(G);let M=this.strict;this.strict=!0,this.parseClassId(G,U),this.parseClassSuper(G);let C=this.enterClassBody(),T=this.startNode(),D=!1;T.body=[];let f=[];this.expect(X.braceL);while(this.type!==X.braceR){if(this.match(w.at)){f.push(this.parseDecorator());continue}let p=this.parseClassElement(G.superClass!==null);if(f.length)p.decorators=f,this.resetStartLocationFromNode(p,f[0]),f=[];if(p){if(T.body.push(p),p.type==="MethodDefinition"&&p.kind==="constructor"&&p.value.type==="FunctionExpression"){if(D)this.raiseRecoverable(p.start,"Duplicate constructor in the same class");if(D=!0,p.decorators&&p.decorators.length>0)this.raise(p.start,C2.DecoratorConstructor)}else if(p.key&&p.key.type==="PrivateIdentifier"&&p.value?.type!=="TSDeclareMethod"&&Jh(C,p))this.raiseRecoverable(p.key.start,`Identifier '#${p.key.name}' has already been declared`)}}if(this.strict=M,this.next(),f.length)this.raise(this.start,C2.TrailingDecorator);return G.body=this.finishNode(T,"ClassBody"),this.exitClassBody(),this.finishNode(G,U?"ClassDeclaration":"ClassExpression")}finally{this.inAbstractClass=B}}parseClassFunctionParams(){let G=this.tsTryParseTypeParameters(),U=this.parseBindingList(X.parenR,!1,this.ecmaVersion>=8,!0);if(G)U.typeParameters=G;return U}parseMethod(G,U,B,M,C){let T=this.startNode(),D=this.yieldPos,f=this.awaitPos,p=this.awaitIdentPos;if(this.initFunction(T),this.ecmaVersion>=6)T.generator=G;if(this.ecmaVersion>=8)T.async=!!U;if(this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(h3(U,T.generator)|c8.SCOPE_SUPER|(B?c8.SCOPE_DIRECT_SUPER:0)),this.expect(X.parenL),T.params=this.parseClassFunctionParams(),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(T,!1,!0,!1,{isClassMethod:M}),this.yieldPos=D,this.awaitPos=f,this.awaitIdentPos=p,C&&C.abstract){if(!!T.body){let{key:o}=C;this.raise(C.start,G8.AbstractMethodHasImplementation({methodName:o.type==="Identifier"&&!C.computed?o.name:`[${this.input.slice(o.start,o.end)}]`}))}}return this.finishNode(T,"FunctionExpression")}static parse(G,U){if(U.locations===!1)throw Error("You have to enable options.locations while using acorn-typescript");else U.locations=!0;let B=new this(U,G);if(Z)B.isAmbientContext=!0;return B.parse()}static parseExpressionAt(G,U,B){if(B.locations===!1)throw Error("You have to enable options.locations while using acorn-typescript");else B.locations=!0;let M=new this(B,G,U);if(Z)M.isAmbientContext=!0;return M.nextToken(),M.parseExpression()}parseImportSpecifier(){if(this.ts_isContextual(w.type)){let U=this.startNode();return U.imported=this.parseModuleExportName(),this.parseTypeOnlyImportExportSpecifier(U,!0,this.importOrExportOuterKind==="type"),this.finishNode(U,"ImportSpecifier")}else{let U=super.parseImportSpecifier();return U.importKind="value",U}}parseExportSpecifier(G){let U=this.ts_isContextual(w.type);if(!this.match(X.string)&&U){let M=this.startNode();return M.local=this.parseModuleExportName(),this.parseTypeOnlyImportExportSpecifier(M,!1,this.importOrExportOuterKind==="type"),this.finishNode(M,"ExportSpecifier"),this.checkExport(G,M.exported,M.exported.start),M}else{let M=super.parseExportSpecifier(G);return M.exportKind="value",M}}parseTypeOnlyImportExportSpecifier(G,U,B){let M=U?"imported":"local",C=U?"local":"exported",T=G[M],D,f=!1,p=!0,k=T.start;if(this.isContextual("as")){let A8=this.parseIdent();if(this.isContextual("as")){let z8=this.parseIdent();if(u(this.type))f=!0,T=A8,D=U?this.parseIdent():this.parseModuleExportName(),p=!1;else D=z8,p=!1}else if(u(this.type))p=!1,D=U?this.parseIdent():this.parseModuleExportName();else f=!0,T=A8}else if(u(this.type))if(f=!0,U){if(T=super.parseIdent(!0),!this.isContextual("as"))this.checkUnreserved(T)}else T=this.parseModuleExportName();if(f&&B)this.raise(k,U?G8.TypeModifierIsUsedInTypeImports:G8.TypeModifierIsUsedInTypeExports);G[M]=T,G[C]=D;let o=U?"importKind":"exportKind";if(G[o]=f?"type":"value",p&&this.eatContextual("as"))G[C]=U?this.parseIdent():this.parseModuleExportName();if(!G[C])G[C]=this.copyNode(G[M]);if(U)this.checkLValSimple(G[C],c8.BIND_LEXICAL)}raiseCommonCheck(G,U,B){switch(U){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(G,U)}return B?super.raiseRecoverable(G,U):super.raise(G,U)}raiseRecoverable(G,U){return this.raiseCommonCheck(G,U,!0)}raise(G,U){return this.raiseCommonCheck(G,U,!0)}updateContext(G){let{type:U}=this;if(U==X.braceL){var B=this.curContext();if(B==v.tc_oTag)this.context.push(O.b_expr);else if(B==v.tc_expr)this.context.push(O.b_tmpl);else super.updateContext(G);this.exprAllowed=!0}else if(U===X.slash&&G===w.jsxTagStart)this.context.length-=2,this.context.push(v.tc_cTag),this.exprAllowed=!1;else return super.updateContext(G)}jsx_parseOpeningElementAt(G,U){let B=this.startNodeAt(G,U),M=this.jsx_parseElementName();if(M)B.name=M;if(this.match(X.relational)||this.match(X.bitShift)){let C=this.tsTryParseAndCatch(()=>this.tsParseTypeArgumentsInExpression());if(C)B.typeArguments=C}B.attributes=[];while(this.type!==X.slash&&this.type!==w.jsxTagEnd)B.attributes.push(this.jsx_parseAttribute());return B.selfClosing=this.eat(X.slash),this.expect(w.jsxTagEnd),this.finishNode(B,M?"JSXOpeningElement":"JSXOpeningFragment")}enterScope(G){if(G===C7)this.importsStack.push([]);super.enterScope(G);let U=super.currentScope();U.types=[],U.enums=[],U.constEnums=[],U.classes=[],U.exportOnlyBindings=[]}exitScope(){if(super.currentScope().flags===C7)this.importsStack.pop();super.exitScope()}hasImport(G,U){let B=this.importsStack.length;if(this.importsStack[B-1].indexOf(G)>-1)return!0;if(!U&&B>1){for(let M=0;M<B-1;M++)if(this.importsStack[M].indexOf(G)>-1)return!0}return!1}maybeExportDefined(G,U){if(this.inModule&&G.flags&c8.SCOPE_TOP)delete this.undefinedExports[U]}declareName(G,U,B){if(U&c8.BIND_FLAGS_TS_IMPORT){if(this.hasImport(G,!0))this.raise(B,`Identifier '${G}' has already been declared.`);this.importsStack[this.importsStack.length-1].push(G);return}let M=this.currentScope();if(U&c8.BIND_FLAGS_TS_EXPORT_ONLY){this.maybeExportDefined(M,G),M.exportOnlyBindings.push(G);return}if(U===c8.BIND_TS_TYPE||U===c8.BIND_TS_INTERFACE){if(U===c8.BIND_TS_TYPE&&M.types.includes(G))this.raise(B,`type '${G}' has already been declared.`);M.types.push(G)}else super.declareName(G,U,B);if(U&c8.BIND_FLAGS_TS_ENUM)M.enums.push(G);if(U&c8.BIND_FLAGS_TS_CONST_ENUM)M.constEnums.push(G);if(U&c8.BIND_FLAGS_CLASS)M.classes.push(G)}checkLocalExport(G){let{name:U}=G;if(this.hasImport(U))return;let B=this.scopeStack.length;for(let M=B-1;M>=0;M--){let C=this.scopeStack[M];if(C.types.indexOf(U)>-1||C.exportOnlyBindings.indexOf(U)>-1)return}super.checkLocalExport(G)}}return b}}class XX extends Error{message="";#q;constructor(q,Z,Q){super(Z);this.stack="",this.#q=new L7(q,Z,Q),Object.assign(this,this.#q),this.name="CompileError"}toString(){return this.#q.toString()}toJSON(){return this.#q.toJSON()}}function R8(q,Z,Q){let Y=typeof q==="number"?q:q?.start,H=typeof q==="number"?q:q?.end;throw new XX(Z,Q,Y!==void 0?[Y,H??Y]:void 0)}function VX(q,Z){R8(q,"options_invalid_value",`Invalid compiler option: ${Z}
|
|
54
|
-
https://svelte.dev/e/options_invalid_value`)}function GX(q,Z){R8(q,"options_removed",`Invalid compiler option: ${Z}
|
|
55
|
-
https://svelte.dev/e/options_removed`)}function WX(q,Z){R8(q,"options_unrecognised",`Unrecognised compiler option ${Z}
|
|
56
|
-
https://svelte.dev/e/options_unrecognised`)}function F2(q,Z){R8(q,"declaration_duplicate",`\`${Z}\` has already been declared
|
|
57
|
-
https://svelte.dev/e/declaration_duplicate`)}function $X(q){R8(q,"dollar_binding_invalid",`The $ name is reserved, and cannot be used for variables and imports
|
|
58
|
-
https://svelte.dev/e/dollar_binding_invalid`)}function UX(q){R8(q,"dollar_prefix_invalid",`The $ prefix is reserved, and cannot be used for variables and imports
|
|
59
|
-
https://svelte.dev/e/dollar_prefix_invalid`)}function RX(q){R8(q,"css_empty_declaration",`Declaration cannot be empty
|
|
60
|
-
https://svelte.dev/e/css_empty_declaration`)}function y3(q){R8(q,"css_expected_identifier",`Expected a valid CSS identifier
|
|
61
|
-
https://svelte.dev/e/css_expected_identifier`)}function g3(q){R8(q,"css_selector_invalid",`Invalid selector
|
|
62
|
-
https://svelte.dev/e/css_selector_invalid`)}function zX(q){R8(q,"attribute_duplicate",`Attributes need to be unique
|
|
63
|
-
https://svelte.dev/e/attribute_duplicate`)}function BX(q){R8(q,"attribute_empty_shorthand",`Attribute shorthand cannot be empty
|
|
64
|
-
https://svelte.dev/e/attribute_empty_shorthand`)}function x3(q,Z){R8(q,"block_duplicate_clause",`${Z} cannot appear more than once within a block
|
|
65
|
-
https://svelte.dev/e/block_duplicate_clause`)}function MX(q){R8(q,"block_invalid_continuation_placement",`{:...} block is invalid at this position (did you forget to close the preceding element or block?)
|
|
66
|
-
https://svelte.dev/e/block_invalid_continuation_placement`)}function LX(q){R8(q,"block_invalid_elseif",`'elseif' should be 'else if'
|
|
67
|
-
https://svelte.dev/e/block_invalid_elseif`)}function PX(q,Z,Q){R8(q,"block_invalid_placement",`{#${Z} ...} block cannot be ${Q}
|
|
68
|
-
https://svelte.dev/e/block_invalid_placement`)}function OX(q){R8(q,"block_unclosed",`Block was left open
|
|
69
|
-
https://svelte.dev/e/block_unclosed`)}function l3(q){R8(q,"block_unexpected_close",`Unexpected block closing tag
|
|
70
|
-
https://svelte.dev/e/block_unexpected_close`)}function wX(q){R8(q,"const_tag_invalid_expression",`{@const ...} must consist of a single variable declaration
|
|
71
|
-
https://svelte.dev/e/const_tag_invalid_expression`)}function AX(q){R8(q,"debug_tag_invalid_arguments",`{@debug ...} arguments must be identifiers, not arbitrary expressions
|
|
72
|
-
https://svelte.dev/e/debug_tag_invalid_arguments`)}function T2(q){R8(q,"declaration_tag_invalid_type","Declaration tags must be `let` or `const` declarations\nhttps://svelte.dev/e/declaration_tag_invalid_type")}function IX(q){R8(q,"directive_invalid_value",`Directive value must be a JavaScript expression enclosed in curly braces
|
|
73
|
-
https://svelte.dev/e/directive_invalid_value`)}function jX(q,Z){R8(q,"directive_missing_name",`\`${Z}\` name cannot be empty
|
|
74
|
-
https://svelte.dev/e/directive_missing_name`)}function DX(q,Z){R8(q,"element_invalid_closing_tag",`\`</${Z}>\` attempted to close an element that was not open
|
|
75
|
-
https://svelte.dev/e/element_invalid_closing_tag`)}function CX(q,Z,Q){R8(q,"element_invalid_closing_tag_autoclosed",`\`</${Z}>\` attempted to close element that was already automatically closed by \`<${Q}>\` (cannot nest \`<${Q}>\` inside \`<${Z}>\`)
|
|
76
|
-
https://svelte.dev/e/element_invalid_closing_tag_autoclosed`)}function f2(q,Z){R8(q,"element_unclosed",`\`<${Z}>\` was left open
|
|
77
|
-
https://svelte.dev/e/element_unclosed`)}function m3(q){R8(q,"expected_attribute_value",`Expected attribute value
|
|
78
|
-
https://svelte.dev/e/expected_attribute_value`)}function EX(q){R8(q,"expected_block_type",`Expected 'if', 'each', 'await', 'key' or 'snippet'
|
|
79
|
-
https://svelte.dev/e/expected_block_type`)}function p3(q){R8(q,"expected_identifier",`Expected an identifier
|
|
80
|
-
https://svelte.dev/e/expected_identifier`)}function FX(q){R8(q,"expected_pattern",`Expected identifier or destructure pattern
|
|
81
|
-
https://svelte.dev/e/expected_pattern`)}function TX(q){R8(q,"expected_tag",`Expected 'html', 'render', 'attach', 'const', or 'debug'
|
|
82
|
-
https://svelte.dev/e/expected_tag`)}function X1(q,Z){R8(q,"expected_token",`Expected token ${Z}
|
|
83
|
-
https://svelte.dev/e/expected_token`)}function fX(q){R8(q,"expected_whitespace",`Expected whitespace
|
|
84
|
-
https://svelte.dev/e/expected_whitespace`)}function KX(q,Z){R8(q,"js_parse_error",`${Z}
|
|
85
|
-
https://svelte.dev/e/js_parse_error`)}function vX(q){R8(q,"render_tag_invalid_expression","`{@render ...}` tags can only contain call expressions\nhttps://svelte.dev/e/render_tag_invalid_expression")}function c3(q){R8(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 kX(q,Z){R8(q,"script_invalid_attribute_value",`If the \`${Z}\` attribute is supplied, it must be a boolean attribute
|
|
86
|
-
https://svelte.dev/e/script_invalid_attribute_value`)}function r3(q){R8(q,"script_invalid_context",`If the context attribute is supplied, its value must be "module"
|
|
87
|
-
https://svelte.dev/e/script_invalid_context`)}function NX(q,Z){R8(q,"script_reserved_attribute",`The \`${Z}\` attribute is reserved and cannot be used
|
|
88
|
-
https://svelte.dev/e/script_reserved_attribute`)}function SX(q){R8(q,"style_duplicate","A component can have a single top-level `<style>` element\nhttps://svelte.dev/e/style_duplicate")}function uX(q){R8(q,"svelte_component_invalid_this","Invalid component definition — must be an `{expression}`\nhttps://svelte.dev/e/svelte_component_invalid_this")}function bX(q){R8(q,"svelte_component_missing_this","`<svelte:component>` must have a 'this' attribute\nhttps://svelte.dev/e/svelte_component_missing_this")}function i3(q){R8(q,"svelte_element_missing_this","`<svelte:element>` must have a 'this' attribute with a value\nhttps://svelte.dev/e/svelte_element_missing_this")}function hX(q,Z){R8(q,"svelte_meta_duplicate",`A component can only have one \`<${Z}>\` element
|
|
89
|
-
https://svelte.dev/e/svelte_meta_duplicate`)}function _X(q,Z){R8(q,"svelte_meta_invalid_content",`<${Z}> cannot have children
|
|
90
|
-
https://svelte.dev/e/svelte_meta_invalid_content`)}function yX(q,Z){R8(q,"svelte_meta_invalid_placement",`\`<${Z}>\` tags cannot be inside elements or blocks
|
|
91
|
-
https://svelte.dev/e/svelte_meta_invalid_placement`)}function gX(q,Z){R8(q,"svelte_meta_invalid_tag",`Valid \`<svelte:...>\` tag names are ${Z}
|
|
92
|
-
https://svelte.dev/e/svelte_meta_invalid_tag`)}function xX(q){R8(q,"svelte_options_deprecated_tag",`"tag" option is deprecated — use "customElement" instead
|
|
93
|
-
https://svelte.dev/e/svelte_options_deprecated_tag`)}function lX(q){R8(q,"svelte_options_invalid_attribute","`<svelte:options>` can only receive static attributes\nhttps://svelte.dev/e/svelte_options_invalid_attribute")}function K2(q,Z){R8(q,"svelte_options_invalid_attribute_value",`Value must be ${Z}, if specified
|
|
94
|
-
https://svelte.dev/e/svelte_options_invalid_attribute_value`)}function v2(q){R8(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 U9(q){R8(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" }"
|
|
95
|
-
https://svelte.dev/e/svelte_options_invalid_customelement_props`)}function mX(q){R8(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 d3(q){R8(q,"svelte_options_invalid_tagname",`Tag name must be lowercase and hyphenated
|
|
96
|
-
https://svelte.dev/e/svelte_options_invalid_tagname`)}function pX(q){R8(q,"svelte_options_reserved_tagname",`Tag name is reserved
|
|
97
|
-
https://svelte.dev/e/svelte_options_reserved_tagname`)}function cX(q,Z){R8(q,"svelte_options_unknown_attribute",`\`<svelte:options>\` unknown attribute '${Z}'
|
|
98
|
-
https://svelte.dev/e/svelte_options_unknown_attribute`)}function rX(q){R8(q,"tag_invalid_name",`Expected a valid element or component name. Components must have a valid variable name or dot notation expression
|
|
99
|
-
https://svelte.dev/e/tag_invalid_name`)}function iX(q,Z,Q){R8(q,"tag_invalid_placement",`{@${Z} ...} tag cannot be ${Q}
|
|
100
|
-
https://svelte.dev/e/tag_invalid_placement`)}function m0(q){R8(q,"unexpected_eof",`Unexpected end of input
|
|
101
|
-
https://svelte.dev/e/unexpected_eof`)}function dX(q,Z){R8(q,"unexpected_reserved_word",`'${Z}' is a reserved word in JavaScript and cannot be used here
|
|
102
|
-
https://svelte.dev/e/unexpected_reserved_word`)}function sX(q){R8(q,"unterminated_string_constant",`Unterminated string constant
|
|
103
|
-
https://svelte.dev/e/unterminated_string_constant`)}function aX(q){R8(q,"void_element_invalid_content",`Void elements cannot have children or closing tags
|
|
104
|
-
https://svelte.dev/e/void_element_invalid_content`)}var k2=q0,s3=k2.extend(JX());function a3(q,Z,Q,Y){let H=Q?s3:k2,{onComment:J,add_comments:X}=n3(q,Z),W=H.prototype.parseStatement;if(Y)H.prototype.parseStatement=function(...$){let R=W.call(this,...$);return this.undefinedExports={},R};try{let $=H.parse(q,{onComment:J,sourceType:"module",ecmaVersion:16,locations:!0});return X($),$}catch($){return o3($)}finally{if(Y)H.prototype.parseStatement=W}}function R9(q,Z,Q){let Y=q.ts?s3:k2,{onComment:H,add_comments:J}=n3(Z,q.root.comments,Q);try{let X=Y.parseExpressionAt(Z,Q,{onComment:H,sourceType:"module",ecmaVersion:16,locations:!0,preserveParens:!0});return J(X),X}catch(X){o3(X)}}function oX(q,Z,Q){let Y=q.ts?s3:k2,{onComment:H,add_comments:J}=n3(Z,q.root.comments,Q);try{let X=new Y({onComment:H,sourceType:"module",ecmaVersion:16,locations:!0},Z,Q);X.nextToken();let W=X.parseStatement(null,!0,Object.create(null));return J(W),W}catch(X){if(X.pos===Z.length)m0(Z.length);o3(X)}}var wh=/ \(\d+:\d+\)$/;function o3(q){KX(q.pos,q.message.replace(wh,""))}function A6(q){return s8(q,null,{ParenthesizedExpression(Z,Q){return Q.visit(Z.expression)}})}function n3(q,Z,Q=0){return{onComment:(Y,H,J,X,W,$)=>{if(Y&&/\n/.test(H)){let R=J;while(R>0&&q[R-1]!==`
|
|
105
|
-
`)R-=1;let z=R;while(/[ \t]/.test(q[z]))z+=1;let O=q.slice(R,z);H=H.replace(new RegExp(`^${O}`,"gm"),"")}Z.push({type:Y?"Block":"Line",value:H,start:J,end:X,loc:{start:W,end:$}})},add_comments(Y){if(Z.length===0)return;if(Z=Z.filter((H)=>H.start>=Q).map(({type:H,value:J,start:X,end:W})=>({type:H,value:J,start:X,end:W})),s8(Y,null,{_(H,{next:J,path:X}){let W;while(Z[0]&&Z[0].start<H.start)W=Z.shift(),(H.leadingComments||=[]).push(W);if(J(),Z[0]){let $=X.at(-1);if($===void 0||H.end!==$.end){let R=q.slice(H.end,Z[0].start);if(($?.type==="BlockStatement"||$?.type==="Program")&&$.body.indexOf(H)===$.body.length-1||$?.type==="ArrayExpression"&&$.elements.indexOf(H)===$.elements.length-1||$?.type==="ObjectExpression"&&$.properties.indexOf(H)===$.properties.length-1){let O=H.end;while(Z.length){let P=Z[0];if($&&P.start>=$.end)break;(H.trailingComments||=[]).push(P),Z.shift(),O=P.end}}else if(H.end<=Z[0].start&&/^[,) \t]*$/.test(R))H.trailingComments=[Z.shift()]}}}}),Z.length>0&&(Z[0].start>=Y.end||Y.type==="Program"))(Y.trailingComments||=[]).push(...Z.splice(0))}}}function t3(q){if(q<0)return 1/0;return q}function Ih(q,Z,Q){let Y;if(Q==="`")Y=q;else Y=q.slice(0,t3(q.indexOf(`
|
|
106
|
-
`,Z)));return e3(Y,Z,Q)}function jh(q,Z){let Q=e3(q,Z,"/"),Y=e3(q,Z,`
|
|
107
|
-
`);return Q<Y?Q:1/0}function e3(q,Z,Q){let Y=Z;while(!0){let H=q.indexOf(Q,Y);if(H===-1)return 1/0;if(Dh(q,H-1)%2===0)return H;Y=H+1}}function Dh(q,Z){let Q=Z,Y=0;while(q[Q]==="\\")Y++,Q--;return Y}function S2(q,Z,Q){let Y=N2[Q],H=1,J=Z;while(H>0&&J<q.length){let X=q[J];switch(X){case"'":case'"':case"`":J=Ih(q,J+1,X)+1;continue;case"/":{let W=q[J+1];if(!W){J++;continue}if(W==="/"){J=t3(q.indexOf(`
|
|
108
|
-
`,J+1))+1;continue}if(W==="*"){J=t3(q.indexOf("*/",J+1))+2;continue}let $=jh(q,J+1)+1;if($===1/0)J++;else J=$;continue}default:{let W=q[J];if(W===Q)H++;else if(W===Y)H--;if(H===0)return J;J++}}}return}var N2={"{":"}","(":")","[":"]"},Ch=new Set(Object.values(N2));function T7(q,Z,Q=N2){let Y=Q===N2?Ch:new Set(Object.values(Q)),H=[],J=Z;while(J<q.template.length){let X=q.template[J++];if(X==="'"||X==='"'||X==="`"){J=Eh(q,J,X);continue}if(X in Q)H.push(X);else if(Y.has(X)){let W=H.pop(),$=Q[W];if(X!==$)X1(J-1,$);if(H.length===0)return J}}m0(q.template.length)}function Eh(q,Z,Q){let Y=!1,H=Z;while(H<q.template.length){let J=q.template[H++];if(Y){Y=!1;continue}if(J===Q)return H;if(J==="\\")Y=!0;if(Q==="`"&&J==="$"&&q.template[H]==="{")H=T7(q,H)}sX(Z)}function qZ(q,Z){let Q=S2(q.template,q.index,Z??"{");if(Q){let Y=q.index;return q.index=Q,{type:"Identifier",start:Y,end:Q,name:""}}}function E0(q,Z,Q){try{let Y=R9(q,q.template,q.index),H=Y.end,J=q.root.comments.at(-1);if(J&&J.end>H)H=J.end;return q.index=H,A6(Y)}catch(Y){if(q.loose&&!Q){let H=qZ(q,Z);if(H)return H}throw Y}}function u2(q){return q.replace(/(`|\${|\\)/g,"\\$1")}function k8(q=[]){return{type:"ArrayExpression",elements:q}}function f7(q){return{type:"ArrayPattern",elements:q}}function b8(q,Z,Q=!1){if(Q&&Z.type==="AwaitExpression"){if(!g9(Z.argument))return b8(q,Z.argument)}return{type:"ArrowFunctionExpression",params:q,body:Z,expression:Z.type!=="BlockStatement",generator:!1,async:Q}}function z9(q){return{type:"AwaitExpression",argument:q}}function E8(q){return{type:"BlockStatement",body:q}}function n(q,...Z){if(typeof q==="string")q=Q8(q);Z=Z.slice();let Q=Z.length,Y=!0;while(Q--)if(!Z[Q])if(Y)Z.pop();else Z[Q]=V1;else Y=!1;return{type:"CallExpression",callee:q,arguments:Z,optional:!1}}function ZZ(q,Z){return{type:"UnaryExpression",argument:Z,operator:q,prefix:!0}}var V1=ZZ("void",M8(0));function I6(q,Z){return{type:"VariableDeclaration",kind:q,declarations:Z}}function B9(q,Z){if(typeof q==="string")q=Q8(q);return{type:"VariableDeclarator",id:q,init:Z}}var v0={type:"EmptyStatement"};function Q8(q,Z){let Q={type:"Identifier",name:q};if(Z)Q.loc=Z;return Q}function M8(q){return{type:"Literal",value:q}}function U0(q){return{type:"ObjectExpression",properties:q}}function G1(q,Z,Q,Y=!1){return{type:"Property",kind:q,key:Z,value:Q,method:!1,shorthand:!1,computed:Y}}function b2(q,Z=!1){return{type:"TemplateElement",value:{raw:u2(q),cooked:q},tail:Z}}function O8(q){return{type:"ExpressionStatement",expression:q}}function h2(q,Z){return{type:"TemplateLiteral",quasis:q,expressions:Z}}function K8(q,Z=!1){return nX(b8([],q,Z))}function nX(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}var H0=M8(!0),_2=M8(!1),M9=M8(null);function n1(q,Z){return I6("let",[B9(q,Z)])}function W1(q,Z){return I6("const",[B9(q,Z)])}function y9(q){return H2.test(q)?Q8(q):M8(q)}function _0(q){return Array.isArray(q.value)&&q.value.length===1&&q.value[0].type==="Text"}function v7(q){return q.value!==!0&&!Array.isArray(q.value)||Array.isArray(q.value)&&q.value.length===1&&q.value[0].type==="ExpressionTag"}function j6(q){return Array.isArray(q.value)?q.value[0].expression:q.value.expression}function g9(q){let Z=!1;return s8(q,null,{AwaitExpression(Q,Y){Z=!0,Y.stop()},FunctionDeclaration(){},FunctionExpression(){},ArrowFunctionExpression(){}}),Z}function D6(q){return n(z9(n("$.save",q)))}var Fh=/<\/script\s*>/,Th=/<\/script\s*>/y,fh=["server","client","worker","test","default"],Kh=["context","generics","lang","module"];function tX(q,Z,Q){let Y=q.index,H=q.read_until(Fh);if(q.index>=q.template.length)f2(q.template.length,"script");let J=q.template.slice(0,Y).replace(Y2," ")+H;q.read(Th);let X=a3(J,q.root.comments,q.ts,!0);if(X.start=Y,X.loc)({line:X.loc.start.line,column:X.loc.start.column}=Y0(Z)),{line:X.loc.end.line,column:X.loc.end.column}=Y0(q.index);let W="default";for(let $ of Q){if(fh.includes($.name))NX($,$.name);if(!Kh.includes($.name))QJ($);if($.name==="module"){if($.value!==!0)kX($,$.name);W="module"}if($.name==="context"){if($.value===!0||!_0($))r3($);if($.value[0].data!=="module")r3($);W="module"}}return{type:"Script",start:Z,end:q.index,context:W,content:X,attributes:Q}}var vh=/[~^$*|]?=/y,kh=/[\s\]]/,Nh=/[a-zA-Z]+/y,ZV=/(\+|~|>|\|\|)/y,eX=/\d+(\.\d+)?%/y,qV=/(even|odd|\+?(\d+|\d*n(\s*[+-]\s*\d+)?)|-\d*n(\s*\+\s*\d+))((?=\s*[,)])|\s+of\s+)/y,Sh=/[\s:]/,uh=/-?\d/y,bh=/[a-zA-Z0-9_-]/,hh=/\\[0-9a-fA-F]{1,6}(\r\n|\s)?/y,_h=/\*\//,yh=/-->/;function YZ(q,Z,Q){let Y=q.index,H=gh(q,(X)=>X.match("</style")||X.index>=X.template.length),J=q.index;return q.eat("</style",!0),q.read(/\s*>/y),{type:"StyleSheet",start:Z,end:q.index,attributes:Q,children:H,content:{start:Y,end:J,styles:q.template.slice(Y,J),comment:null}}}function gh(q,Z){let Q=[];while(C6(q),!Z(q))if(q.match("@"))Q.push(QV(q));else Q.push(YV(q));return Q}function QV(q){let Z=q.index;q.eat("@",!0);let Q=t1(q),Y=HZ(q),H=null;if(q.match("{"))H=HV(q);else q.eat(";",!0);return{type:"Atrule",start:Z,end:q.index,name:Q,prelude:Y,block:H}}function YV(q){let Z=q.index;return{type:"Rule",prelude:QZ(q),block:HV(q),start:Z,end:q.index,metadata:{parent_rule:null,has_local_selectors:!1,has_global_selectors:!1,is_global_block:!1}}}function QZ(q,Z=!1){let Q=[];C6(q);let Y=q.index;while(q.index<q.template.length){Q.push(xh(q,Z));let H=q.index;if(C6(q),Z?q.match(")"):q.match("{"))return{type:"SelectorList",start:Y,end:H,children:Q};else q.eat(",",!0),C6(q)}m0(q.template.length)}function xh(q,Z=!1){let Q=q.index,Y=[];function H(X,W){return{type:"RelativeSelector",combinator:X,selectors:[],start:W,end:-1,metadata:{is_global:!1,is_global_like:!1,scoped:!1}}}let J=H(null,q.index);while(q.index<q.template.length){let X=q.index;if(q.eat("&"))J.selectors.push({type:"NestingSelector",name:"&",start:X,end:q.index});else if(q.eat("*")){let R="*";if(q.eat("|"))R=t1(q);J.selectors.push({type:"TypeSelector",name:R,start:X,end:q.index})}else if(q.eat("#"))J.selectors.push({type:"IdSelector",name:t1(q),start:X,end:q.index});else if(q.eat("."))J.selectors.push({type:"ClassSelector",name:t1(q),start:X,end:q.index});else if(q.eat("::")){if(J.selectors.push({type:"PseudoElementSelector",name:t1(q),start:X,end:q.index}),q.eat("("))QZ(q,!0),q.eat(")",!0)}else if(q.eat(":")){let R=t1(q),z=null;if(q.eat("("))z=QZ(q,!0),q.eat(")",!0);J.selectors.push({type:"PseudoClassSelector",name:R,args:z,start:X,end:q.index})}else if(q.eat("[")){q.allow_whitespace();let R=t1(q);q.allow_whitespace();let z=null,O=q.read(vh);if(O)q.allow_whitespace(),z=ch(q);q.allow_whitespace();let P=q.read(Nh);q.allow_whitespace(),q.eat("]",!0),J.selectors.push({type:"AttributeSelector",start:X,end:q.index,name:R,matcher:O,value:z,flags:P})}else if(Z&&q.match_regex(qV))J.selectors.push({type:"Nth",value:q.read(qV),start:X,end:q.index});else if(q.match_regex(eX))J.selectors.push({type:"Percentage",value:q.read(eX),start:X,end:q.index});else if(!q.match_regex(ZV)){let R=t1(q);if(q.eat("|"))R=t1(q);J.selectors.push({type:"TypeSelector",name:R,start:X,end:q.index})}let W=q.index;if(C6(q),q.match(",")||(Z?q.match(")"):q.match("{")))return q.index=W,J.end=W,Y.push(J),{type:"ComplexSelector",start:Q,end:W,children:Y,metadata:{rule:null,is_global:!1,used:!1}};q.index=W;let $=lh(q);if($){if(J.selectors.length>0)J.end=W,Y.push(J);if(J=H($,$.start),q.allow_whitespace(),q.match(",")||(Z?q.match(")"):q.match("{")))g3(q.index)}}m0(q.template.length)}function lh(q){let Z=q.index;q.allow_whitespace();let Q=q.index,Y=q.read(ZV);if(Y){let H=q.index;return q.allow_whitespace(),{type:"Combinator",name:Y,start:Q,end:H}}if(q.index!==Z)return{type:"Combinator",name:" ",start:Z,end:q.index};return null}function HV(q){let Z=q.index;q.eat("{",!0);let Q=[];while(q.index<q.template.length)if(C6(q),q.match("}"))break;else Q.push(mh(q));return q.eat("}",!0),{type:"Block",start:Z,end:q.index,children:Q}}function mh(q){if(q.match("@"))return QV(q);let Z=q.index;HZ(q);let Q=q.template[q.index];return q.index=Z,Q==="{"?YV(q):ph(q)}function ph(q){let Z=q.index,Q=q.read_until(Sh);q.allow_whitespace(),q.eat(":");let Y=q.index;q.allow_whitespace();let H=HZ(q);if(!H&&!Q.startsWith("--"))RX({start:Z,end:Y});let J=q.index;if(!q.match("}"))q.eat(";",!0);return{type:"Declaration",start:Z,end:J,property:Q,value:H}}function HZ(q){let Z="",Q=!1,Y=!1,H=null;while(q.index<q.template.length){let J=q.template[q.index];if(Q){Z+="\\"+J,Q=!1,q.index++;continue}else if(J==="\\"){Q=!0,q.index++;continue}else if(J===H)H=null;else if(J===")")Y=!1;else if(H===null&&(J==='"'||J==="'"))H=J;else if(J==="("&&Z.slice(-3)==="url")Y=!0;else if((J===";"||J==="{"||J==="}")&&!Y&&!H)return Z.trim();else if(J==="/"&&!Y&&!H&&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+=J,q.index++}m0(q.template.length)}function ch(q){let Z="",Q=!1,Y=q.eat('"')?'"':q.eat("'")?"'":null;while(q.index<q.template.length){let H=q.template[q.index];if(Q)Z+="\\"+H,Q=!1;else if(H==="\\")Q=!0;else if(Y?H===Y:kh.test(H)){if(Y)q.eat(Y,!0);return Z.trim()}else Z+=H;q.index++}m0(q.template.length)}function t1(q){let Z=q.index,Q="";if(q.match_regex(uh))y3(Z);while(q.index<q.template.length){let Y=q.template[q.index];if(Y==="\\"){let H=q.match_regex(hh);if(H)Q+=String.fromCodePoint(parseInt(H.slice(1),16)),q.index+=H.length;else Q+="\\"+q.template[q.index+1],q.index+=2}else if(Y.codePointAt(0)>=160||bh.test(Y))Q+=Y,q.index++;else break}if(Q==="")y3(Z);return Q}function C6(q){q.allow_whitespace();while(q.match("/*")||q.match("<!--")){if(q.eat("/*"))q.read_until(_h),q.eat("*/",!0);if(q.eat("<!--"))q.read_until(yh),q.eat("-->",!0);q.allow_whitespace()}}var JZ={"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 rh=[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 ih(q,Z){if(Z&&!q.endsWith(";"))return`${q}\\b(?!=)`;return q}function XV(q){let Q=Object.keys(JZ).map((H)=>ih(H,q));return new RegExp(`&(#(?:x[a-fA-F\\d]+|\\d+)(?:;)?|${Q.join("|")})`,"g")}var dh=XV(!1),sh=XV(!0);function k7(q,Z){let Q=Z?sh:dh;return q.replace(Q,(Y,H)=>{let J;if(H[0]!=="#")J=JZ[H];else if(H[1]==="x")J=parseInt(H.substring(2),16);else J=parseInt(H.substring(1),10);if(!J)return Y;return String.fromCodePoint(ah(J))})}var JV=0;function ah(q){if(q===10)return 32;if(q<128)return q;if(q<=159)return rh[q-128];if(q<55296)return q;if(q<=57343)return JV;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 JV}function C0(q=!1){return{type:"Fragment",nodes:[],metadata:{transparent:q,dynamic:!1}}}var oh=["SvelteElement","RegularElement","SvelteFragment","Component","SvelteComponent","SvelteSelf","SlotElement"];function g2(q){return oh.includes(q.type)}function L9(q,Z,Q,Y,H){return{type:"Attribute",start:Q,end:Y,name:q,name_loc:Z,value:H,metadata:{delegated:!1,needs_clsx:!1}}}class p8{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 k8([...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)}}var VV={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 GV(q,Z){let Q=VV[q];if(Q){if(!Z||("direct"in Q?Q.direct:Q.descendant).includes(Z))return!0}return!1}var MY8={...VV,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 XZ(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 nh=/(\/>|[\s"'=<>`])/y,VZ=/<\/textarea(\s[^>]*)?>/iy,th=/-->/,WV=/(\s|\/|>)/,$V=/[\s=/>"']/,UV=/["']/y,eh=/(?:"([^"]*)"|'([^'])*'|([^>\s]+))/y,q_=/^![a-zA-Z]+$/,Z_=/^[a-zA-Z][a-zA-Z0-9]*:[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$/;function Q_(q){if(q_.test(q))return!0;if(Z_.test(q))return!0;return iH.test(q)}var GZ=/^(?:\p{Lu}[$\u200c\u200d\p{ID_Continue}.]*|\p{ID_Start}[$\u200c\u200d\p{ID_Continue}]*(?:\.[$\u200c\u200d\p{ID_Continue}]+)+)$/u,RV=new Map([["svelte:head","SvelteHead"],["svelte:options","SvelteOptions"],["svelte:window","SvelteWindow"],["svelte:document","SvelteDocument"],["svelte:body","SvelteBody"]]),x2=new Map([...RV,["svelte:element","SvelteElement"],["svelte:component","SvelteComponent"],["svelte:self","SvelteSelf"],["svelte:fragment","SvelteFragment"],["svelte:boundary","SvelteBoundary"]]);function WZ(q){let Z=q.index++,Q=q.current();if(q.eat("!--")){let w=q.read_until(th);q.eat("-->",!0),q.append({type:"Comment",start:Z,end:q.index,data:w});return}if(q.eat("/")){let w=q.read_until(WV);if(q.allow_whitespace(),q.eat(">",!0),d1(w))aX(Z);while(Q.name!==w){if(q.loose){if(g2(Q)){let v=Q.attributes.at(-1);if(v?.type==="Attribute"&&v.name===`<${w}`){q.index=v.start,Q.attributes.pop();break}}}if(Q.type==="RegularElement"){if(!q.last_auto_closed_tag||q.last_auto_closed_tag.tag!==w){let v=Q.fragment.nodes[0]?.start??Z;A3({start:Q.start,end:v},`</${w}>`,`</${Q.name}>`)}}else if(!q.loose)if(q.last_auto_closed_tag&&q.last_auto_closed_tag.tag===w)CX(Z,w,q.last_auto_closed_tag.reason);else DX(Z,w);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=$Z(q,WV);if(Y.name.startsWith("svelte:")&&!x2.has(Y.name)){let w={start:Z+1,end:Z+1+Y.name.length};gX(w,XZ(Array.from(x2.keys())))}if(!Q_(Y.name)&&!GZ.test(Y.name)){if(!q.loose||!Y.name.endsWith(".")){let w={start:Z+1,end:Z+1+Y.name.length};rX(w)}}if(RV.has(Y.name)){if(Y.name in q.meta_tags)hX(Z,Y.name);if(Q.type!=="Root")yX(Z,Y.name);q.meta_tags[Y.name]=!0}let H=x2.has(Y.name)?x2.get(Y.name):GZ.test(Y.name)||q.loose&&Y.name.endsWith(".")?"Component":Y.name==="title"&&Y_(q.stack)?"TitleElement":Y.name==="slot"&&!H_(q.stack)?"SlotElement":"RegularElement",J=H==="RegularElement"?{type:H,start:Z,end:-1,name:Y.name,name_loc:Y.loc,attributes:[],fragment:C0(!0),metadata:{svg:!1,mathml:!1,scoped:!1,has_spread:!1,path:[],synthetic_value_node:null}}:{type:H,start:Z,end:-1,name:Y.name,name_loc:Y.loc,attributes:[],fragment:C0(!0),metadata:{}};if(q.allow_whitespace(),Q.type==="RegularElement"&&GV(Q.name,Y.name)){let w=Q.fragment.nodes[0]?.start??Z;A3({start:Q.start,end:w},`<${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=[],W=q.current(),$=(Y.name==="script"||Y.name==="style")&&W.type==="Root",R=$?J_:X_,z;while(z=R(q)){if(z.type==="Attribute"||z.type==="BindDirective"||z.type==="StyleDirective"||z.type==="ClassDirective"){let w=z.type==="BindDirective"?"Attribute":z.type;if(X.includes(w+z.name))zX(z);else if(z.name!=="this")X.push(w+z.name)}J.attributes.push(z),q.allow_whitespace()}if(J.type==="Component")J.metadata.expression=new p8;if(J.type==="SvelteComponent"){let w=J.attributes.findIndex((F)=>F.type==="Attribute"&&F.name==="this");if(w===-1)bX(Z);let v=J.attributes.splice(w,1)[0];if(!v7(v))uX(v.start);J.expression=j6(v),J.metadata.expression=new p8}if(J.type==="SvelteElement"){let w=J.attributes.findIndex((F)=>F.type==="Attribute"&&F.name==="this");if(w===-1)i3(Z);let v=J.attributes.splice(w,1)[0];if(v.value===!0)i3(v);if(!v7(v)){YJ(v);let F=v.value[0];J.tag=F.type==="Text"?{type:"Literal",value:F.data,raw:`'${F.raw}'`,start:F.start,end:F.end}:F.expression}else J.tag=j6(v);J.metadata.expression=new p8}if($){q.eat(">",!0);let w=null;for(let v=W.fragment.nodes.length-1;v>=0;v--){let F=W.fragment.nodes[v];if(v===W.fragment.nodes.length-1&&F.end!==Z)break;if(F.type==="Comment"){w=F;break}else if(F.type!=="Text"||F.data.trim())break}if(Y.name==="script"){let v=tX(q,Z,J.attributes);if(w)v.content.leadingComments=[{type:"Line",value:w.data}];if(v.context==="module"){if(W.module)c3(Z);W.module=v}else{if(W.instance)c3(Z);W.instance=v}}else{let v=YZ(q,Z,J.attributes);if(v.content.comment=w,W.css)SX(Z);W.css=v}return}q.append(J);let O=q.eat("/")||d1(Y.name),P=q.eat(">",!0,!1);if(!P){let w=J.attributes.at(-1);if(w?.type==="Attribute"&&w.name==="<")q.index=w.start,J.attributes.pop();else{let v=q.template[q.index-1],F=q.template[q.index-2],h=q.template[q.index];if(F==="{"&&v==="/")q.index-=2;else if(v==="{"&&(h==="#"||h==="@"||h===":"))q.index-=1;else q.allow_whitespace()}}if(O||!P)J.end=q.index;else if(Y.name==="textarea")J.fragment.nodes=zV(q,()=>{return VZ.lastIndex=q.index,VZ.test(q.template)},"inside <textarea>"),q.read(VZ),J.end=q.index;else if(Y.name==="script"||Y.name==="style"){let w=q.index,v=`</${Y.name}>`,F=q.template.indexOf(v,q.index),h=q.template.slice(q.index,F===-1?q.template.length:F);q.index=F===-1?q.template.length:F;let m=q.index,_={start:w,end:m,type:"Text",data:h,raw:h};J.fragment.nodes.push(_),q.eat(`</${Y.name}>`,!0),J.end=q.index}else q.stack.push(J),q.fragments.push(J.fragment)}function Y_(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 H_(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 J_(q){let Z=q.index,Q=$Z(q,$V);if(!Q.name)return null;let Y=!0;if(q.eat("=")){q.allow_whitespace();let H=q.match_regex(eh);if(!H)m3(q.index);q.index+=H.length;let J=H[0]==='"'||H[0]==="'";if(J)H=H.slice(1,-1);Y=[{start:q.index-H.length-(J?1:0),end:J?q.index-1:q.index,type:"Text",raw:H,data:k7(H,!0)}]}if(q.match_regex(UV))X1(q.index,"=");return L9(Q.name,Q.loc,Z,q.index,Y)}function X_(q){let Z=null;while(Z=V_(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 $=E0(q);return q.allow_whitespace(),q.eat("}",!0),{type:"AttachTag",start:Q,end:q.index,expression:$,metadata:{expression:new p8}}}if(q.eat("...")){let $=E0(q);return q.allow_whitespace(),q.eat("}",!0),{type:"SpreadAttribute",start:Q,end:q.index,expression:$,metadata:{expression:new p8}}}else{let $=q.read_identifier();if($.name==="")if(q.loose&&(q.match("#")||q.match("/")||q.match("@")||q.match(":")))return null;else if(q.loose&&q.match("}"));else BX(Q);q.allow_whitespace(),q.eat("}",!0);let R={type:"ExpressionTag",start:$.start,end:$.end,expression:$,metadata:{expression:new p8}};return L9($.name,$.loc,Q,q.index,R)}}let Y=$Z(q,$V);if(!Y.name)return null;let H=q.index;q.allow_whitespace();let J=Y.name.indexOf(":"),X=J!==-1&&G_(Y.name.slice(0,J)),W=!0;if(q.eat("="))if(q.allow_whitespace(),q.template[q.index]==="/"&&q.template[q.index+1]===">"){let $=q.index;q.index++,W=[{start:$,end:$+1,type:"Text",raw:"/",data:"/"}],H=q.index}else W=W_(q),H=q.index;else if(q.match_regex(UV))X1(q.index,"=");if(X){let[$,...R]=Y.name.slice(J+1).split("|");if($==="")jX({start:Q,end:Q+J+1},Y.name);if(X==="StyleDirective")return{start:Q,end:H,type:X,name:$,name_loc:Y.loc,modifiers:R,value:W,metadata:{expression:new p8}};let z=W===!0?void 0:Array.isArray(W)?W[0]:W,O=null;if(z)if(W.length>1||z.type==="Text")IX(z.start);else O=z.expression;let P={start:Q,end:H,type:X,name:$,name_loc:Y.loc,expression:O,metadata:{expression:new p8}};if(P.modifiers=R,P.type==="TransitionDirective"){let w=Y.name.slice(0,J);P.intro=w==="in"||w==="transition",P.outro=w==="out"||w==="transition"}if((P.type==="BindDirective"||P.type==="ClassDirective")&&!P.expression)P.expression={start:Q+J+1,end:H,type:"Identifier",name:P.name};return P}return L9(Y.name,Y.loc,Q,H,W)}function V_(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:Y0(Z),end:Y0(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:Y0(Z),end:Y0(Y)}}}return null}function G_(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 W_(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=zV(q,()=>{if(Z)return q.match(Z);return!!q.match_regex(nh)},"in attribute value")}catch(Y){if(Y.code==="js_parse_error"){let H=Y.position?.[0];if(H!==void 0&&q.template.slice(H-1,H+1)==="/>")q.index=H,X1(H,Z||"}")}throw Y}if(Q.length===0&&!Z)m3(q.index);if(Z)q.index+=1;if(Z||Q.length>1||Q[0].type==="Text")return Q;else return Q[0]}function zV(q,Z,Q){let Y={start:q.index,end:-1,type:"Text",raw:"",data:""},H=[];function J(X){if(X>Y.start)Y.raw=q.template.slice(Y.start,X),Y.data=k7(Y.raw,!0),Y.end=X,H.push(Y)}while(q.index<q.template.length){let X=q.index;if(Z())return J(q.index),H;else if(q.eat("{")){if(q.match("#")){let R=q.index-1;q.eat("#");let z=q.read_until(/[^a-z]/);PX(R,z,Q)}else if(q.match("@")){let R=q.index-1;q.eat("@");let z=q.read_until(/[^a-z]/);iX(R,z,Q)}J(q.index-1),q.allow_whitespace();let W=E0(q);q.allow_whitespace(),q.eat("}",!0);let $={type:"ExpressionTag",start:X,end:q.index,expression:W,metadata:{expression:new p8}};H.push($),Y={start:q.index,end:-1,type:"Text",raw:"",data:""}}else q.index++}if(q.loose)return H;else m0(q.template.length)}function $Z(q,Z){let Q=q.index,Y=q.read_until(Z),H=q.index;return{type:"Identifier",name:Y,start:Q,end:H,loc:{start:Y0(Q),end:Y0(H)}}}function I1(q){let{index:Z,index:Q}=q,Y=q.read_identifier();if(Y.name!==""){let R=BV(q);return{...Y,typeAnnotation:R}}let H=q.template[Q];if(H!=="{"&&H!=="[")FX(Q);Q=T7(q,Z),q.index=Q;let J=q.template.slice(Z,Q),X=q.template.slice(0,Z).replace(Y2," "),W=X.indexOf(" ");X=X.slice(0,W)+X.slice(W+1);let $=A6(R9(q,`${X}(${J} = 1)`,Z-1));if($=$.left,$.typeAnnotation=BV(q),$.typeAnnotation)$.end=$.typeAnnotation.end;return $}function BV(q){let Z=q.index;if(q.allow_whitespace(),!q.eat(":")){q.index=Z;return}let Q="_ as ",Y=q.index-Q.length,H=q.template.slice(0,Y).replace(/[^\n]/g," ")+Q+q.template.slice(q.index).replace(/\?\s*:/g,":"),J=A6(R9(q,H,Y));if(J.type==="AssignmentExpression"){let X=J.right.start;while(H[X]!=="=")X-=1;J=A6(R9(q,H.slice(0,X),Y))}if(J.type==="SequenceExpression")J=J.expressions[0];return q.index=J.end,{type:"TSTypeAnnotation",start:Z,end:q.index,typeAnnotation:J.typeAnnotation}}var UZ=/\s*}/y,$_=/(?:let|const)\b/y,U_=/(?:var|interface|enum)\b/y,R_=/type\b/y,z_={"<":">"};function zZ(q){let Z=q.index;if(q.index+=1,q.allow_whitespace(),q.eat("#"))return M_(q);if(q.eat(":"))return L_(q);if(q.eat("@"))return P_(q);if(q.match("/")){if(!q.match("/*")&&!q.match("//"))return q.eat("/"),RZ(q)}let Q=B_(q);if(Q){q.append({type:"DeclarationTag",start:Z,end:q.index,declaration:Q,metadata:{expression:new p8}});return}let Y=E0(q);q.allow_whitespace(),q.eat("}",!0),q.append({type:"ExpressionTag",start:Z,end:q.index,expression:Y,metadata:{expression:new p8}})}function B_(q){let Z=q.index,Q=q.match_regex(U_);if(Q)T2({start:Z,end:Z+Q.length});if(!q.match_regex($_)&&!q.match_regex(R_))return null;let Y=q.root.comments.length,H;try{H=oX(q,q.template,Z)}catch(J){if(!q.loose)throw J;let X=S2(q.template,Z,"{");if(X===void 0)throw J;q.index=X,H={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(H.type!=="VariableDeclaration")if(H.type==="ExpressionStatement")return q.root.comments.length=Y,null;else T2({start:H.start??Z,end:H.end??q.index});if(H.kind!=="let"&&H.kind!=="const")T2(H);return q.index=H.end,q.allow_whitespace(),q.eat("}",!0),H}function M_(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:E0(q),consequent:C0(),alternate:null,metadata:{expression:new p8}});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,H;while(!H)try{H=E0(q,void 0,!0)}catch(z){Y=z.position[0]-2;while(Y>Z&&q.template.slice(Y,Y+2)!=="as")Y-=1;if(Y<=Z){if(q.loose){if(H=qZ(q),H)break}throw z}q.template=Q.slice(0,Y)}if(q.template=Q,q.allow_whitespace(),!q.match("as")){if(H.type==="SequenceExpression")H=H.expressions[0];let z=null,O=H.end;if(H=s8(H,null,{TSAsExpression(P,w){if(P.end===H.end)return z=P,O=P.expression.end,P.expression;w.next()}}),H.end=O,z){let P=z.typeAnnotation.start-2;while(q.template.slice(P,P+2)!=="as")P-=1;q.index=P}}let J=null,X,W;if(q.eat("as"))q.require_whitespace(),J=I1(q);else q.index=H.end;if(q.allow_whitespace(),q.eat(",")){if(q.allow_whitespace(),X=q.read_identifier().name,!X)p3(q.index);q.allow_whitespace()}if(q.eat("("))q.allow_whitespace(),W=E0(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 z=q.index;J=I1(q),q.eat("}",!0),H={type:"Identifier",name:"",start:H.start,end:z-4}}else q.eat("}",!0);let R=q.append({type:"EachBlock",start:Z,end:-1,expression:H,body:C0(),context:J,index:X,key:W,metadata:null});q.stack.push(R),q.fragments.push(R.body);return}if(q.eat("await")){q.require_whitespace();let Q=E0(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 p8}});if(q.eat("then")){if(q.match_regex(UZ))q.allow_whitespace();else q.require_whitespace(),Y.value=I1(q),q.allow_whitespace();Y.then=C0(),q.fragments.push(Y.then)}else if(q.eat("catch")){if(q.match_regex(UZ))q.allow_whitespace();else q.require_whitespace(),Y.error=I1(q),q.allow_whitespace();Y.catch=C0(),q.fragments.push(Y.catch)}else Y.pending=C0(),q.fragments.push(Y.pending);if(!q.eat("}",!0,!1))if(q.template.slice(q.index-6,q.index)===" then "){let J=q.index;Y.value=I1(q),q.eat("}",!0),Y.expression={type:"Identifier",name:"",start:Q.start,end:J-6},Y.then=Y.pending,Y.pending=null}else if(q.template.slice(q.index-7,q.index)===" catch "){let J=q.index;Y.error=I1(q),q.eat("}",!0),Y.expression={type:"Identifier",name:"",start:Q.start,end:J-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=E0(q);q.allow_whitespace(),q.eat("}",!0);let Y=q.append({type:"KeyBlock",start:Z,end:-1,expression:Q,fragment:C0(),metadata:{expression:new p8}});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)p3(q.index);q.allow_whitespace();let Y=q.index,H;if(q.ts&&q.match("<")){let z=q.index,O=T7(q,z,z_);H=q.template.slice(z+1,O-1),q.index=O}q.allow_whitespace();let J=q.eat("(",!0,!1);if(J){let z=1;while(q.index<q.template.length&&(!q.match(")")||z!==1)){if(q.match("("))z++;if(q.match(")"))z--;q.index+=1}q.eat(")",!0)}let X=q.template.slice(0,Y).replace(/\S/g," "),W=q.template.slice(Y,q.index),$=J?R9(q,X+`${W} => {}`,Y):{params:[]};q.allow_whitespace(),q.eat("}",!0);let R=q.append({type:"SnippetBlock",start:Z,end:-1,expression:Q,typeParams:H,parameters:$.params,body:C0(),metadata:{can_hoist:!1,sites:new Set}});q.stack.push(R),q.fragments.push(R.body);return}EX(q.index)}function L_(q){let Z=q.index-1,Q=q.current();if(Q.type==="IfBlock"){if(!q.eat("else"))X1(Z,"{:else} or {:else if}");if(q.eat("if"))LX(Z);if(q.allow_whitespace(),q.fragments.pop(),Q.alternate=C0(),q.fragments.push(Q.alternate),q.eat("if")){q.require_whitespace();let Y=E0(q);q.allow_whitespace(),q.eat("}",!0);let H=Z-1;while(q.template[H]!=="{")H-=1;let J=q.append({start:H,end:-1,type:"IfBlock",elseif:!0,test:Y,consequent:C0(),alternate:null,metadata:{expression:new p8}});q.stack.push(J),q.fragments.pop(),q.fragments.push(J.consequent)}else q.allow_whitespace(),q.eat("}",!0);return}if(Q.type==="EachBlock"){if(!q.eat("else"))X1(Z,"{:else}");q.allow_whitespace(),q.eat("}",!0),Q.fallback=C0(),q.fragments.pop(),q.fragments.push(Q.fallback);return}if(Q.type==="AwaitBlock"){if(q.eat("then")){if(Q.then)x3(Z,"{:then}");if(!q.eat("}"))q.require_whitespace(),Q.value=I1(q),q.allow_whitespace(),q.eat("}",!0);Q.then=C0(),q.fragments.pop(),q.fragments.push(Q.then);return}if(q.eat("catch")){if(Q.catch)x3(Z,"{:catch}");if(!q.eat("}"))q.require_whitespace(),Q.error=I1(q),q.allow_whitespace(),q.eat("}",!0);Q.catch=C0(),q.fragments.pop(),q.fragments.push(Q.catch);return}X1(Z,"{:then ...} or {:catch ...}")}MX(Z)}function RZ(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(),RZ(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 l3(Z);break;default:l3(Z)}if(!Y){Q.end=Z-1,q.pop(),RZ(q);return}q.allow_whitespace(),q.eat("}",!0),Q.end=q.index,q.pop()}function P_(q){let Z=q.index;while(q.template[Z]!=="{")Z-=1;if(q.eat("html")){q.require_whitespace();let Q=E0(q);q.allow_whitespace(),q.eat("}",!0),q.append({type:"HtmlTag",start:Z,end:q.index,expression:Q,metadata:{expression:new p8}});return}if(q.eat("debug")){let Q;if(q.read(UZ))Q=[];else{let Y=E0(q);Q=Y.type==="SequenceExpression"?Y.expressions:[Y],Q.forEach((H)=>{if(H.type!=="Identifier")AX(H.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=I1(q);q.allow_whitespace(),q.eat("=",!0),q.allow_whitespace();let Y=q.index,H=E0(q);if(H.type==="SequenceExpression"&&!q.template.substring(Y,H.start).includes("("))wX(H);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:H,start:Q.start,end:H.end}],start:Z+2,end:q.index-1},metadata:{expression:new p8}});return}if(q.eat("render")){q.require_whitespace();let Q=E0(q);if(Q.type!=="CallExpression"&&(Q.type!=="ChainExpression"||Q.expression.type!=="CallExpression"))vX(Q);q.allow_whitespace(),q.eat("}",!0),q.append({type:"RenderTag",start:Z,end:q.index,expression:Q,metadata:{expression:new p8,dynamic:!1,arguments:[],path:[],snippets:new Set}});return}TX(q.index)}function BZ(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:k7(Q,!1)})}function N7(q){if(q.match("<"))return WZ;if(q.match("{"))return zZ;return BZ}function MZ(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")lX(Q);let{name:Y}=Q;switch(Y){case"runes":{Z.runes=l2(Q);break}case"tag":{xX(Q);break}case"customElement":{let H={},{value:J}=Q,X=J===!0||Array.isArray(J)?J:[J];if(X===!0)v2(Q);else if(X[0].type==="Text"){let P=m2(Q);LV(Q,P),H.tag=P,Z.customElement=H;break}else if(X[0].expression.type!=="ObjectExpression"){if(X[0].expression.type==="Literal"&&X[0].expression.value===null)break;v2(Q)}let W=[];for(let P of X[0].expression.properties){if(P.type!=="Property"||P.computed||P.key.type!=="Identifier")v2(Q);W.push([P.key.name,P.value])}let $=W.find(([P])=>P==="tag");if($){let P=$[1]?.value;LV($,P),H.tag=P}let R=W.find(([P])=>P==="props")?.[1];if(R){if(R.type!=="ObjectExpression")U9(Q);H.props={};for(let P of R.properties){if(P.type!=="Property"||P.computed||P.key.type!=="Identifier"||P.value.type!=="ObjectExpression")U9(Q);H.props[P.key.name]={};for(let w of P.value.properties){if(w.type!=="Property"||w.computed||w.key.type!=="Identifier"||w.value.type!=="Literal")U9(Q);if(w.key.name==="type"){if(["String","Number","Boolean","Array","Object"].indexOf(w.value.value)===-1)U9(Q);H.props[P.key.name].type=w.value.value}else if(w.key.name==="reflect"){if(typeof w.value.value!=="boolean")U9(Q);H.props[P.key.name].reflect=w.value.value}else if(w.key.name==="attribute"){if(typeof w.value.value!=="string")U9(Q);H.props[P.key.name].attribute=w.value.value}else U9(Q)}}}let z=W.find(([P])=>P==="shadow")?.[1];if(z)if(z.type==="Literal"&&(z.value==="open"||z.value==="none"))H.shadow=z.value;else if(z.type==="ObjectExpression")H.shadow=z;else mX(Q);let O=W.find(([P])=>P==="extend")?.[1];if(O)H.extend=O;Z.customElement=H;break}case"namespace":{let H=m2(Q);if(H===G3)Z.namespace="svg";else if(H===W3)Z.namespace="mathml";else if(H==="html"||H==="mathml"||H==="svg")Z.namespace=H;else K2(Q,'"html", "mathml" or "svg"');break}case"css":{let H=m2(Q);if(H==="injected")Z.css=H;else K2(Q,'"injected"');break}case"immutable":{Z.immutable=l2(Q);break}case"preserveWhitespace":{Z.preserveWhitespace=l2(Q);break}case"accessors":{Z.accessors=l2(Q);break}default:cX(Q,Y)}}return Z}function m2(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 l2(q){let Z=m2(q);if(typeof Z!=="boolean")K2(q,"true or false");return Z}var MV="[a-z0-9_.·À-ÖØ-öø-ͽͿ--‿-⁀⁰-Ⰰ-、-豈-﷏ﷰ-�\uD800\uDC00-\uDB7F\uDFFF-]",O_=new RegExp(`^[a-z]${MV}*-${MV}*$`,"u"),w_=["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"];function LV(q,Z){if(typeof Z!=="string")d3(q);if(Z){if(!O_.test(Z))d3(q);else if(w_.includes(Z))pX(q)}}function S7(q){let{nodes:Z}=q.fragment;if(Z.length>0){let Q=Z[0],Y=Z[Z.length-1];_X({start:Q.start,end:Y.end},q.name)}}function PV(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 OV=/<!--[^]*?-->|<script\s+(?:[^>]*|(?:[^=>'"/]+=(?:"[^"]*"|'[^']*'|[^>\s]+)\s+)*)lang=(["'])?([^"' >]+)\1[^>]*>/g;class p2{template;loose;index=0;static forCss(q){let Z=Object.create(p2.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=OV.exec(q);while(Q&&Q[0][1]!=="s");OV.lastIndex=0,this.ts=Q?.[2]==="ts",this.root={css:null,js:[],start:null,end:null,type:"Root",fragment:C0(),options:null,comments:[],metadata:{ts:this.ts}},this.stack.push(this.root),this.fragments.push(this.root.fragment);let Y=N7;while(this.index<this.template.length)Y=Y(this)||N7;if(this.stack.length>1){let J=this.current();if(this.loose)J.end=this.template.length;else if(J.type==="RegularElement")J.end=J.start+1,f2(J,J.name);else J.end=J.start+1,OX(J)}if(Y!==N7)m0(this.index);this.root.start=0,this.root.end=q.length;let H=this.root.fragment.nodes.findIndex((J)=>J.type==="SvelteOptions");if(H!==-1){let J=this.root.fragment.nodes[H];this.root.fragment.nodes.splice(H,1),this.root.options=MZ(J),S7(J),Object.defineProperty(this.root.options,"__raw__",{value:J,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))X1(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&&PV(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(i0(Y,!0)){let H=this.index;Z+=Y<=65535?1:2;while(Z<this.template.length){let J=this.template.codePointAt(Z);if(!A1(J,!0))break;Z+=J<=65535?1:2}if(Q=this.template.slice(q,Z),this.index=Z,R7(Q))dX(q,Q)}return{type:"Identifier",name:Q,start:q,end:Z,loc:{start:Y0(q),end:Y0(Z)}}}read_until(q){if(this.index>=this.template.length){if(this.loose)return"";m0(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(!PV(this.template.charCodeAt(this.index)))fX(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 LZ(q,Z=!1){return G2(q),new p2(q,Z).root}function u7(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==="$")$X(Y);else if(Y.name.startsWith("$")&&!(q.initial?.type==="ImportDeclaration"&&q.initial.importKind==="type"))UX(Y)}}var j1=Symbol("unknown"),j8=Symbol("number"),S1=Symbol("string"),AV=Symbol("string"),IV={BigInt:[j8],"Math.min":[j8,Math.min],"Math.max":[j8,Math.max],"Math.random":[j8],"Math.floor":[j8,Math.floor],"Math.f16round":[j8,Math.f16round],"Math.round":[j8,Math.round],"Math.abs":[j8,Math.abs],"Math.acos":[j8,Math.acos],"Math.asin":[j8,Math.asin],"Math.atan":[j8,Math.atan],"Math.atan2":[j8,Math.atan2],"Math.ceil":[j8,Math.ceil],"Math.cos":[j8,Math.cos],"Math.sin":[j8,Math.sin],"Math.tan":[j8,Math.tan],"Math.exp":[j8,Math.exp],"Math.log":[j8,Math.log],"Math.pow":[j8,Math.pow],"Math.sqrt":[j8,Math.sqrt],"Math.clz32":[j8,Math.clz32],"Math.imul":[j8,Math.imul],"Math.sign":[j8,Math.sign],"Math.log10":[j8,Math.log10],"Math.log2":[j8,Math.log2],"Math.log1p":[j8,Math.log1p],"Math.expm1":[j8,Math.expm1],"Math.cosh":[j8,Math.cosh],"Math.sinh":[j8,Math.sinh],"Math.tanh":[j8,Math.tanh],"Math.acosh":[j8,Math.acosh],"Math.asinh":[j8,Math.asinh],"Math.atanh":[j8,Math.atanh],"Math.trunc":[j8,Math.trunc],"Math.fround":[j8,Math.fround],"Math.cbrt":[j8,Math.cbrt],Number:[j8,Number],"Number.isInteger":[j8,Number.isInteger],"Number.isFinite":[j8,Number.isFinite],"Number.isNaN":[j8,Number.isNaN],"Number.isSafeInteger":[j8,Number.isSafeInteger],"Number.parseFloat":[j8,Number.parseFloat],"Number.parseInt":[j8,Number.parseInt],String:[S1,String],"String.fromCharCode":[S1,String.fromCharCode],"String.fromCodePoint":[S1,String.fromCodePoint]},jV={"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 CV{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,H){if(this.scope=q,this.node=Z,this.initial=H,this.kind=Q,this.declaration_kind=Y,H)this.assignments.push({value:H,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 EV{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(PZ.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"&&F0(Y.initial,q)==="$props.id"){this.values.add(S1);break}let H=Y.kind==="prop"||Y.kind==="rest_prop"||Y.kind==="bindable_prop";if(Y.initial?.type==="EachBlock"&&Y.initial.index===Z.name){this.values.add(j8);break}if(Y.initial?.type==="SnippetBlock"){this.is_defined=!0,this.is_known=!1,this.values.add(j1);break}if(!Y.updated&&Y.initial!==null&&!H){Y.scope.evaluate(Y.initial,this.values);break}}else if(Z.name==="undefined"){this.values.add(void 0);break}this.values.add(j1);break}case"BinaryExpression":{let Y=q.evaluate(Z.left),H=q.evaluate(Z.right);if(Y.is_known&&H.is_known){this.values.add(E_[Z.operator](Y.value,H.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(j8);break;case"+":if(Y.is_string||H.is_string)this.values.add(S1);else if(Y.is_number&&H.is_number)this.values.add(j8);else this.values.add(S1),this.values.add(j8);break;default:this.values.add(j1)}break}case"ConditionalExpression":{let Y=q.evaluate(Z.test),H=q.evaluate(Z.consequent),J=q.evaluate(Z.alternate);if(Y.is_known)for(let X of(Y.value?H:J).values)this.values.add(X);else{for(let X of H.values)this.values.add(X);for(let X of J.values)this.values.add(X)}break}case"LogicalExpression":{let Y=q.evaluate(Z.left),H=q.evaluate(Z.right);if(Y.is_known){if(H.is_known){this.values.add(T_[Z.operator](Y.value,H.value));break}if(Z.operator==="&&"&&!Y.value||Z.operator==="||"&&Y.value||Z.operator==="??"&&Y.value!=null)this.values.add(Y.value);else for(let J of H.values)this.values.add(J);break}for(let J of Y.values)this.values.add(J);for(let J of H.values)this.values.add(J);break}case"UnaryExpression":{let Y=q.evaluate(Z.argument);if(Y.is_known){this.values.add(F_[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(j8);break;case"typeof":this.values.add(S1);break;case"void":this.values.add(void 0);break;default:this.values.add(j1)}break}case"CallExpression":{let Y=OZ(Z.callee,q);if(Y){if(z7(Y)){let H=Z.arguments[0];switch(Y){case"$state":case"$state.raw":case"$derived":if(H)q.evaluate(H,this.values);else this.values.add(void 0);break;case"$props.id":this.values.add(S1);break;case"$effect.tracking":this.values.add(!1),this.values.add(!0);break;case"$derived.by":if(H?.type==="ArrowFunctionExpression"&&H.body.type!=="BlockStatement"){q.evaluate(H.body,this.values);break}this.values.add(j1);break;default:this.values.add(j1)}break}if(Object.hasOwn(IV,Y)&&Z.arguments.every((H)=>H.type!=="SpreadElement")){let[H,J]=IV[Y],X=Z.arguments.map((W)=>q.evaluate(W));if(J&&X.every((W)=>W.is_known))this.values.add(J(...X.map((W)=>W.value)));else this.values.add(H);break}}this.values.add(j1);break}case"TemplateLiteral":{let Y=Z.quasis[0].value.cooked;for(let H=0;H<Z.expressions.length;H+=1){let J=q.evaluate(Z.expressions[H]);if(J.is_known)Y+=J.value+Z.quasis[H+1].value.cooked;else{this.values.add(S1);break}}this.values.add(Y);break}case"MemberExpression":{let Y=OZ(Z,q);if(Y&&Object.hasOwn(jV,Y)){this.values.add(jV[Y]);break}this.values.add(j1);break}case"ArrowFunctionExpression":case"FunctionExpression":case"FunctionDeclaration":{this.values.add(AV);break}default:this.values.add(j1)}for(let Y of this.values){if(this.value=Y,Y!==S1&&typeof Y!=="string")this.is_string=!1;if(Y!==j8&&typeof Y!=="number")this.is_number=!1;if(Y!==AV)this.is_function=!1;if(Y==null||Y===j1)this.is_defined=!1;if(Y===j1)this.has_unknown=!0,this.is_primitive=!1}if(this.values.size>1||typeof this.value==="symbol")this.is_known=!1;PZ.delete(Z)}}class wZ{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 J=this.declarations.get(q.name);if(J&&J.declaration_kind!=="var"&&Q!=="var")F2(q,q.name)}let H=new CV(this,q,Z,Q,Y);return u7(H,this.function_depth),this.declarations.set(q.name,H),this.root.conflicts.add(q.name),H}child(q=!1){return new wZ(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)||R7(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=PZ.get(q);if(Q)return Q;return new EV(this,q,Z)}}var PZ=new Map,E_={"!=":(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},F_={"-":(q)=>-q,"+":(q)=>+q,"!":(q)=>!q,"~":(q)=>~q,typeof:(q)=>typeof q,void:()=>{return},delete:()=>!0},T_={"||":(q,Z)=>q||Z,"&&":(q,Z)=>q&&Z,"??":(q,Z)=>q??Z};class FV{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),Q8(Q)}}function F0(q,Z){if(!q)return null;if(q.type!=="CallExpression")return null;let Q=OZ(q.callee,Z);if(!Q||!z7(Q))return null;return Q}function OZ(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}var k6=R6(uZ(),1),l9=R6(cZ(),1),Nn="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(" ");var rZ=k6.roles.keys(),mD=rZ.filter((q)=>k6.roles.get(q)?.abstract),pD=rZ.filter((q)=>!mD.includes(q)),iZ=pD.filter((q)=>{let Z=k6.roles.get(q);return!["toolbar","tabpanel","generic","cell"].includes(q)&&!Z?.superClass.some((Q)=>Q.includes("widget")||Q.includes("window"))}).concat("progressbar"),cD=pD.filter((q)=>!iZ.includes(q)&&q!=="generic");var rD=[],iD=[];for(let[q,Z]of k6.elementRoles.entries()){if([...Z].every((Q)=>Q!=="generic"&&iZ.includes(Q)))rD.push(q);if([...Z].every((Q)=>cD.includes(Q)))iD.push(q)}var Sn=[...l9.AXObjects.keys()].filter((q)=>l9.AXObjects.get(q).type==="widget"),dD=[],sD=[],un=[...l9.AXObjects.keys()].filter((q)=>["windows","structure"].includes(l9.AXObjects.get(q).type));for(let[q,Z]of l9.elementAXObjects.entries()){if([...Z].every((Q)=>Sn.includes(Q)))dD.push(q);if([...Z].every((Q)=>un.includes(Q)))sD.push(q)}var aD=R6(uZ(),1),oD=R6(cZ(),1);var ZC="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ln=new Uint8Array(64),mn=new Uint8Array(128);for(let q=0;q<ZC.length;q++){let Z=ZC.charCodeAt(q);ln[q]=Z,mn[Z]=q}class Hq{#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(YC)}measure(){return QC(this.#Z)}new(){return new Hq(this.#q)}}function QC(q,Z=0,Q=q.length){let Y=0;for(let H=Z;H<Q;H+=1){let J=q[H];if(typeof J==="string")Y+=J.length;else if(Array.isArray(J))Y+=QC(J)}return Y}function YC(q){if(Array.isArray(q))return q.some(YC);if(typeof q==="string")return q.length>0;return!1}var HC=()=>{throw Error("Unsupported environment: `window.btoa` or `Buffer` should be supported.")};if(typeof window<"u"&&typeof window.btoa==="function")HC=(q)=>window.btoa(unescape(encodeURIComponent(q)));else if(typeof Buffer==="function")HC=(q)=>Buffer.from(q,"utf-8").toString("base64");var N6="5.56.3";var nn=/[&"<]/g,tn=/[&<]/g;function e7(q,Z){let Q=String(q??""),Y=Z?nn:tn;Y.lastIndex=0;let H="",J=0;while(Y.test(Q)){let X=Y.lastIndex-1,W=Q[X];H+=Q.substring(J,X)+(W==="&"?"&":W==='"'?""":"<"),J=X+1}return H+Q.substring(J)}var VC=`<!--${gH}-->`,GC=`<!--${xH}-->`,WC=`<!--${lH}-->`,$C="<!---->";var q5=M8(VC),dZ=M8(GC),m9=M8(WC),Vq=M8($C);function p9(q,Z,Q){if(Z.elements.length===0&&!Q)return q;let Y=b8([Q8("$$renderer")],E8(q),Q);return Z.elements.length>0?[O8(n("$$renderer.async_block",Z,Y))]:[O8(n("$$renderer.child_block",Y))]}class u6{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 Q8(`$$${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 v0;if(this.expressions.length===1)return W1("$$0",this.expressions[0]);let q=k8(this.expressions.map((Z)=>{return Z.type==="AwaitExpression"&&!g9(Z.argument)?Z.argument:n(K8(Z,!0))}));return W1(f7(this.expressions.map((Z,Q)=>Q8(`$$${Q}`))),D6(n("Promise.all",q)))}blockers(){return k8([...this.#q])}is_async(){return this.expressions.length>0||this.#q.size>0}render(q){if(!this.is_async())return q;let Z=b8([Q8("$$renderer")],E8([this.#Z(),...q]),this.has_await),Q=this.blockers();return Q.elements.length>0?[O8(n("$$renderer.async",Q,Z))]:[O8(n("$$renderer.child",Z))]}render_block(q){if(!this.is_async())return q;return p9([this.#Z(),...q],this.blockers(),this.has_await)}}class e1{#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 H=Q8("#");return(Z.has_await?this.#Z:this.#q).push({id:H,expression:q}),H}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?k8([...this.#Q]):void 0}deriveds(q=!0){return this.#q.map((Z)=>n1(Z.id,n(q?"$.derived":"$.derived_safe_equal",K8(Z.expression))))}async_ids(){return this.#Z.map((q)=>q.id)}async_values(){if(this.#Z.length===0)return;return k8(this.#Z.map((q)=>b8([],q.expression,!0)))}sync_values(){if(this.#q.length===0)return;return k8(this.#q.map((q)=>b8([],q.expression)))}}var Pt="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(" "),IC=new Map;Pt.forEach((q)=>{IC.set(q.toLowerCase(),q)});function tZ(q){return q=q.toLowerCase(),IC.get(q)||q}class eZ{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 h2([b2(this.nodes.map(jC).join(""),!0)],[])}as_tree(){if(this.nodes[0].type==="comment")this.nodes.unshift({type:"comment",data:void 0});return k8(this.nodes.map(DC))}}function jC(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+=`="${e7(Y,!0)}"`}if(d1(q.name))Z+="/>";else Z+=">",Z+=q.children.map(jC).join(""),Z+=`</${q.name}>`;return Z}function DC(q){if(q.type==="text")return M8(q.nodes.map((Y)=>Y.data).join(""));if(q.type==="comment")return q.data?k8([M8(`// ${q.data}`)]):null;let Z=k8([M8(q.name)]),Q=U0([]);for(let Y in q.attributes){let H=q.attributes[Y];Q.properties.push(G1("init",y9(tZ(Y)),H===void 0?V1:M8(H)))}if(Q.properties.length>0||q.children.length>0)Z.elements.push(Q.properties.length>0?Q:M9);if(q.children.length>0){let Y=q.children.map(DC);if(Z.elements.push(...Y),q.name==="pre"||q.name==="textarea"){let H=Y[0];if(H?.type==="Literal")H.value=H.value.replace(Q2,"")}}return Z}var vC={filename:Q5("(unknown)"),rootDir:Q5(typeof process<"u"?process.cwd?.():typeof Deno<"u"?Deno.cwd():void 0),dev:q9(!1),generate:c9("client",(q,Z)=>{if(q==="dom"||q==="ssr")return YQ(ZJ),q==="dom"?"client":"server";if(q!=="client"&&q!=="server"&&q!==!1)D1(`${Z} must be "client", "server" or false`);return q}),warningFilter:SC(()=>!0),experimental:Bq({async:q9(!1)})},kC={accessors:KC(O3,q9(!1)),css:QQ(()=>"external",(q)=>{if(q===!0||q===!1)D1('The boolean options have been removed from the css option. Use "external" instead of false and "injected" instead of true');if(q==="none")D1('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")D1('css should be either "external" (default, recommended) or "injected"');return q}),cssHash:SC(({css:q,filename:Z,hash:Q})=>{return`svelte-${Q(Z==="(unknown)"?q:Z??q)}`}),cssOutputFilename:Q5(void 0),customElement:QQ(()=>!1,(q,Z)=>{if(typeof q!=="boolean")D1(`${Z} should be true or false`);return q}),discloseVersion:q9(!0),immutable:KC(w3,q9(!1)),legacy:h6("The legacy option has been removed. If you are using this because of legacy.componentApi, use compatibility.componentApi instead"),compatibility:Bq({componentApi:ZQ([4,5],5)}),loopGuardTimeout:qQ(qJ),name:Q5(void 0),namespace:ZQ(["html","mathml","svg"]),modernAst:q9(!1),outputFilename:Q5(void 0),preserveComments:q9(!1),fragments:ZQ(["html","tree"]),preserveWhitespace:q9(!1),runes:QQ(()=>{return}),hmr:q9(!1),sourcemap:c9(void 0,(q)=>{return q}),enableSourcemap:qQ(tH),hydratable:qQ(eH),format:h6('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:h6('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:h6("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:h6("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:h6("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")},vt=Bq({...vC,...Object.fromEntries(Object.keys(kC).map((q)=>[q,()=>{}]))}),NC=Bq({...vC,...kC});function h6(q){return(Z)=>{if(Z!==void 0)GX(null,q);return}}var fC=new Set;function YQ(q){if(!fC.has(q))fC.add(q),q(null)}function qQ(q){return(Z)=>{if(Z!==void 0)YQ(q);return}}function KC(q,Z){return(Q,Y)=>{if(Q!==void 0)YQ(q);return Z(Q,Y)}}function Bq(q,Z=!1){return(Q,Y)=>{let H={};if(Q&&typeof Q!=="object"||Array.isArray(Q))D1(`${Y} should be an object`);for(let J in Q)if(!(J in q))if(Z)H[J]=Q[J];else WX(null,`${Y?`${Y}.${J}`:J}`);for(let J in q){let X=q[J];H[J]=X(Q&&Q[J],Y?`${Y}.${J}`:J)}return H}}function c9(q,Z){return(Q,Y)=>{return Q===void 0?q:Z(Q,Y)}}function Q5(q,Z=!0){return c9(q,(Q,Y)=>{if(typeof Q!=="string")D1(`${Y} should be a string, if specified`);if(!Z&&Q==="")D1(`${Y} cannot be empty`);return Q})}function q9(q){return c9(q,(Z,Q)=>{if(typeof Z!=="boolean")D1(`${Q} should be true or false, if specified`);return Z})}function ZQ(q,Z=q[0]){return c9(Z,(Q,Y)=>{if(!q.includes(Q)){let H=q.length>2?`${Y} should be one of ${q.slice(0,-1).map((J)=>`"${J}"`).join(", ")} or "${q[q.length-1]}"`:`${Y} should be either "${q[0]}" or "${q[1]}"`;D1(H)}return Q})}function SC(q){return c9(q,(Z,Q)=>{if(typeof Z!=="function")D1(`${Q} should be a function, if specified`);return Z})}function QQ(q,Z=(Q)=>Q){return c9(q,(Q,Y)=>{if(typeof Q==="function")return(...X)=>Z(Q(...X),Y);return(...J)=>Z(Q,Y)})}function D1(q){VX(null,q)}function j9(q,{modern:Z,loose:Q}={}){q=ut(q),L3({warning:()=>!1,filename:void 0});let Y=LZ(q,Q);return St(q,Y,Z)}function St(q,Z,Q){if(Q){let Y=(H)=>{delete H.metadata};return Z.options?.attributes.forEach((H)=>{if(Y(H),Y(H.value),Array.isArray(H.value))H.value.forEach(Y)}),s8(Z,null,{_(H,{next:J}){Y(H),J()}})}return JJ(q,Z)}function ut(q){if(q.charCodeAt(0)===65279)return q.slice(1);return q}function C1(q){return typeof q==="object"&&q!==null}function uC(q){return C1(q)&&q.type==="VariableDeclaration"&&Array.isArray(q.declarations)}function r9(q){return C1(q)&&q.type==="Literal"}function g1(q){return C1(q)&&q.type==="Identifier"&&typeof q.name==="string"}function bC(q){return C1(q)&&q.type==="MemberExpression"}function Mq(q){return C1(q)&&q.type==="ObjectExpression"&&Array.isArray(q.properties)}function bt(q){return C1(q)&&q.type==="CallExpression"}function x1(q,Z){if(!bt(q))return!1;return!!q.callee&&C1(q.callee)&&q.callee.type==="Identifier"&&q.callee.name===Z}function D9(q){if(C1(q)&&(q.type==="TSAsExpression"||q.type==="TSSatisfiesExpression")&&"expression"in q)return D9(q.expression);return q}function hC(q){if(C1(q)&&(q.type==="TSAsExpression"||q.type==="TSSatisfiesExpression")&&"typeAnnotation"in q)return q.typeAnnotation;return}function ht(q){return C1(q)&&q.type==="NewExpression"}function HQ(q,Z){if(!ht(q))return!1;return!!q.callee&&C1(q.callee)&&q.callee.type==="Identifier"&&q.callee.name===Z}var _C={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 _t(q){return q in _C}function yC(q){if(_t(q))return _C[q];return"HTMLElement"}var yt=/\w/;function gt(q,Z){let Q=q.trim();if(!Q.startsWith("{")||!Q.endsWith("}"))return;let Y=Q.slice(1,-1),H=[],J=0,X="";for(let W of Y)if(W==="{"||W==="<"||W==="("||W==="[")J++,X+=W;else if(W==="}"||W===">"||W===")"||W==="]")J--,X+=W;else if((W===";"||W===",")&&J===0)H.push(X.trim()),X="";else X+=W;if(X.trim())H.push(X.trim());for(let W of H){if(!W.startsWith(Z))continue;let $=W.slice(Z.length);if($.length>0&&yt.test($[0]))continue;let R=$.trimStart();if(R.startsWith("?"))R=R.slice(1).trimStart();if(R.startsWith(":"))return R.slice(1).trim()}return}function Lq(q,Z,Q){let Y=Q;if(Y.computed||Y.object?.type!=="Identifier"||Y.property?.type!=="Identifier")return;let H=Y.object.name,J=Y.property.name;if(!H||!J)return;if(q.wholePropsLocals.has(H))return Z.getPropTypeByLocalOrPublic(J);let X=Z.getPropTypeByLocalOrPublic(H)??Z.findVariableTypeAndDescription(H)?.type;if(!X)return;return gt(X,J)}function JQ(){return{syntaxMode:"legacy",scriptLanguage:void 0,source:void 0,parsed:void 0,runesOptionOverride: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,variableInfoCacheBuilt:!1}}function Z9(q,Z,Q,Y,H){q.diagnosticRecords.push({component:q.componentFilePath,kind:Z,name:Q,message:Y,...H?{source:H}:{}})}var xt=/[\r\n]+/g;function lt(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]===`
|
|
109
|
-
`)Z.push(Q+1)}return q.sourceLineStartOffsetsCache=Z,Z}function gC(q,Z){if(!q.source||Z<0||Z>q.source.length)return;let Q=lt(q),Y=0,H=Q.length-1;while(Y<=H){let J=Math.floor((Y+H)/2),X=Q[J],W=Q[J+1]??Number.POSITIVE_INFINITY;if(Z<X)H=J-1;else if(Z>=W)Y=J+1;else return{line:J+1,column:Z-X}}return}function Pq(q,Z,Q){if(Z===void 0||Q===void 0||Q<Z)return;let Y=gC(q,Z),H=gC(q,Q);if(!Y||!H)return;return{start:Y,end:H}}function A0(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 Pq(q,Q,Y)}function XQ(q,Z,Q,Y){if(!Q||Q.length===0||Y===void 0)return;let H=[...Q];while(H.length>1){let P=H[H.length-1];if(P.tokens.tag||!P.source.trim().endsWith("*/"))break;H.pop()}let J=Y;for(let P=0;P<H[0].number-1;P++)J+=Z[P]?.source.length??0,J+=1;let X=H[0],W=X.source.indexOf(X.tokens.tag??""),$=J+Math.max(W,0),R=Y,z=H[H.length-1],O=z.number;for(let P=0;P<O-1;P++)R+=Z[P]?.source.length??0,R+=1;return R+=z.source.length,Pq(q,$,R)}function L0(q,Z,Q){return q.source?.slice(Z,Q)}function xC(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 L0(q,Q,Y)?.replace(xt," ")}var mt=/[\r\n]+/g;function Y5(q,Z,Q,Y){if(pt(Q)===void 0)return;if(q.trackPropLocalName(Q),Z.props.has(Q)){let H=Z.props.get(Q);Z.props.set(Q,{...H,...Y})}else Z.props.set(Q,Y)}function pt(q){return q===void 0||q===""?void 0:q}function i9(q,Z,Q,Y=0){let H,J,X=!1;if(!Q||typeof Q!=="object"||!("type"in Q))return{value:H,type:J,isFunction:X};let W=ot(q,Z,Q);if(Q.type==="ObjectExpression"||Q.type==="BinaryExpression"||Q.type==="ArrayExpression"||Q.type==="ArrowFunctionExpression"||Q.type==="FunctionExpression"){let $=Q;if("start"in $&&"end"in $&&typeof $.start==="number"&&typeof $.end==="number")H=L0(Z,$.start,$.end)?.replace(mt," ");if(J=H,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")J="string"}if(Q.type==="ArrowFunctionExpression"||Q.type==="FunctionExpression")J=mC(Q),H=void 0}else if(Q.type==="UnaryExpression"){let $=Q;if("start"in $&&"end"in $&&typeof $.start==="number"&&typeof $.end==="number")H=L0(Z,$.start,$.end);if($.argument){if(typeof $.argument==="object"&&"type"in $.argument&&$.argument.type==="UnaryExpression")J=i9(q,Z,$.argument).type;else if(typeof $.argument==="object"&&"value"in $.argument)J=typeof $.argument.value}}else if(Q.type==="NewExpression"){let $=Q;if("start"in $&&"end"in $&&typeof $.start==="number"&&typeof $.end==="number")H=L0(Z,$.start,$.end);if($.callee&&typeof $.callee==="object"&&"type"in $.callee&&$.callee.type==="Identifier"){let R=$.callee.name;if(R==="Date")J="Date";else if(R==="Map")J="Map<any, any>";else if(R==="Set")J="Set<any>";else if(R==="WeakMap")J="WeakMap<object, any>";else if(R==="WeakSet")J="WeakSet<object>";else if(R==="Array")J="any[]";else if(R==="RegExp"||R==="Regexp")J="RegExp";else if(R==="Error")J="Error";else J=R}}else if(Q.type==="CallExpression"){let $=Q;if("start"in $&&"end"in $&&typeof $.start==="number"&&typeof $.end==="number")H=L0(Z,$.start,$.end)}else if(Q.type==="Identifier"){let $=Q;if(Y<5){let R=ct(Z,$.name);if(R){let z=i9(q,Z,R,Y+1),O=q.resolveLocalVarJSDoc($.name);return{...z,resolvedType:O?.type??z.resolvedType,resolvedDescription:O?.description??z.resolvedDescription,resolvedParams:O?.params??z.resolvedParams,resolvedReturnType:O?.returnType??z.resolvedReturnType}}if(Z.funcDecls.has($.name)){let z=q.resolveLocalVarJSDoc($.name),O=Z.funcDecls.get($.name);return{value:void 0,type:void 0,isFunction:!0,resolvedType:z?.type??rt(z,O),resolvedDescription:z?.description,resolvedParams:z?.params,resolvedReturnType:z?.returnType}}}if("start"in $&&"end"in $&&typeof $.start==="number"&&typeof $.end==="number")H=L0(Z,$.start,$.end)}else if(Q.type==="MemberExpression"){let $=Q;if("start"in $&&"end"in $&&typeof $.start==="number"&&typeof $.end==="number")H=L0(Z,$.start,$.end);if(q.isNumericConstant(Q))J="number"}else if(Q.type==="TemplateLiteral"){let $=Q;if("start"in $&&"end"in $&&typeof $.start==="number"&&typeof $.end==="number")H=L0(Z,$.start,$.end);J="string"}else if("raw"in Q&&typeof Q.raw==="string"){if(H=Q.raw,"value"in Q)J=Q.value==null?void 0:typeof Q.value}return{value:H,type:J,isFunction:X,defaultValue:W}}function ct(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 lC(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 rt(q,Z){let Q=q?.returnType??"any",Y=q?.params;if(Y&&Y.length>0)return`(${Y.map((J)=>`${J.name}${J.optional?"?":""}: ${J.type}`).join(", ")}) => ${Q}`;if(q?.returnType)return`() => ${Q}`;if(Z)return mC(Z);return"(...args: any[]) => any"}function mC(q){return`(${it(q)}) => ${dt(q)}`}function it(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 dt(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=st(Z),Q.length===0)return"any"}else Q=[Z];let Y=null;for(let H of Q){let J=at(H);if(!J)return"any";if(Y===null)Y=J;else if(Y!==J)return"any"}return Y??"any"}function st(q){let Z=[];return i1(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 at(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 pC(q){if(x1(q,"$bindable"))return{init:q.arguments[0],bindable:!0};return{init:q,bindable:!1}}function ot(q,Z,Q){let Y=xC(Z,Q);if(!Y||!Q||typeof Q!=="object"||!("type"in Q))return;let H="expression";if(Q.type==="Literal"||Q.type==="UnaryExpression")H="literal";else if(Q.type==="TemplateLiteral")H=Q.expressions.length===0?"literal":"expression";else if(Q.type==="ArrayExpression")H="array";else if(Q.type==="ObjectExpression")H="object";else if(Q.type==="ArrowFunctionExpression"||Q.type==="FunctionExpression")H="function";let J={raw:Y,kind:H};if(H==="literal"||H==="array"||H==="object"){let X=VQ(q,Q);if(X.ok)J.value=X.value}return J}function VQ(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 H=Y.value;if(typeof H==="number"){if(Q.operator==="-")return{ok:!0,value:-H};if(Q.operator==="+")return{ok:!0,value:H}}if(typeof H==="boolean"&&Q.operator==="!")return{ok:!0,value:!H};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 H of Q.elements){if(!H)return{ok:!1};let J=VQ(q,H);if(!J.ok)return{ok:!1};Y.push(J.value)}return{ok:!0,value:Y}}if(Z.type==="ObjectExpression"){let Q=Z,Y={};for(let H of Q.properties){if(H.type!=="Property"||H.computed)return{ok:!1};let J=q.getPropertyName(H.key);if(!J)return{ok:!1};let X=VQ(q,H.value);if(!X.ok)return{ok:!1};Y[J]=X.value}return{ok:!0,value:Y}}return{ok:!1}}var nt=/[-_.:/\s]+/;function GQ(q){return`${q.split(nt).map((Y)=>Y.charAt(0).toUpperCase()+Y.slice(1)).join("")}Context`}function tt(q,Z,Q,Y){if(!Q||typeof Q!=="object"||!("type"in Q))return null;if(Q.type==="ObjectExpression"){let H=[];if(!Mq(Q))return null;let J=Q;for(let X of J.properties){if(X.type!=="Property")continue;let W=Z.getPropertyName(X.key);if(!W)continue;let $="any",R;if(g1(X.value)){let z=X.value.name,O=Z.findVariableTypeAndDescription(z);if(O)$=O.type,R=O.description;else Z9(q,"context-any-type",W,`Context "${Y}" property "${W}" has no type annotation; defaulted to "any".`,A0(q,X))}else if(X.value&&typeof X.value==="object"&&"type"in X.value&&(X.value.type==="ArrowFunctionExpression"||X.value.type==="FunctionExpression"))$=`(${X.value.params?.map((P)=>{if(g1(P))return`${P.name||"arg"}: any`;return"arg: any"}).join(", ")||""}) => any`;else if(r9(X.value))$=X.value.value==null?"null":typeof X.value.value;H.push({name:W,type:$,description:R,optional:!1})}return{key:Y,typeName:GQ(Y),properties:H,description:void 0}}else if(g1(Q)){let H=Q.name,J=Z.findVariableTypeAndDescription(H);if(J)return{key:Y,typeName:GQ(Y),properties:[{name:H,type:J.type,description:J.description,optional:!1}]};return Z9(q,"context-any-type",H,`Context "${Y}" variable "${H}" has no type annotation; defaulted to "any".`,A0(q,Q)),{key:Y,typeName:GQ(Y),properties:[{name:H,type:"any",description:void 0,optional:!1}]}}return null}function cC(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 H=q.arguments[0];if(!H||typeof H!=="object"||!("type"in H))return"";if(H.type==="Literal"&&typeof H.value==="string")return H.value;if(H.type==="TemplateLiteral"&&H.quasis?.length===1)return H.quasis[0].value.cooked??"";return""}function rC(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 H=Y.quasis[0].value.cooked;return H==null?null:H}return null}if(Y.type==="CallExpression"||Y.type==="NewExpression")return cC(Y);if(Y.type==="Identifier"){if(Q>=5)return null;let H=lC(q,Y.name);if(H&&typeof H==="object"&&"type"in H){let J=H;if((J.type==="CallExpression"||J.type==="NewExpression")&&cC(J)==="")return Y.name;return rC(q,J,Q+1)}return null}return null}function iC(q,Z,Q,Y){if(!Q||typeof Q!=="object"||!("type"in Q)||Q.type!=="CallExpression")return;let H=Q,J=H.arguments[0];if(!J)return;let X=rC(q,J);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 W=H.arguments[1];if(!W)return;let $=tt(q,Z,W,X);if($&&!q.contexts.has(X))q.contexts.set(X,$)}function et(q){return q===void 0||q===""?void 0:q}function WQ(q){return typeof q==="string"?JSON.stringify(q):String(q)}function H5(q,{name:Z,detail:Q,has_argument:Y,description:H,deprecated:J,tags:X,source:W}){if(Z===void 0)return;let $=!Y&&!Q?"null":et(Q),R=H,z=q.events.get(Z);if(z?.type==="forwarded")q.events.set(Z,{type:"dispatched",name:Z,detail:$,description:R||z.description,deprecated:J??z.deprecated,tags:X??z.tags,source:W||z.source});else if(z){let O=z.tags??X;q.events.set(Z,{...z,detail:z.detail===void 0?$:z.detail,description:z.description||R,deprecated:z.deprecated??J,tags:O,source:W||z.source})}else q.events.set(Z,{type:"dispatched",name:Z,detail:$,description:R,deprecated:J,tags:X,source:W})}function dC(q,Z){let Q=Z.arguments[0],Y=HQ(Q,"CustomEvent");if(!Y&&!HQ(Q,"Event"))return;let H=Q.arguments[0],J=r9(H)?H.value:void 0;if(J==null)return;let X=Y?Q.arguments[1]:void 0,W=!1,$;if(Mq(X)){let R=X.properties.find((z)=>z.type==="Property"&&g1(z.key)&&z.key.name==="detail");if(R?.type==="Property")W=!0,$=r9(R.value)?R.value.value:void 0}return H5(q,{name:String(J),detail:$==null?"":WQ($),has_argument:W,source:A0(q,Z)}),String(J)}function $Q(q,Z,Q=!1){if(q.length===0)return"null";let Y=q.map(({name:H,type:J,description:X,optional:W,default:$})=>{let R=W?"?":"",z=X||"";if($&&z)z=`${z} @default ${$}`;else if($)z=`@default ${$}`;if(z){if(Q)return`/** ${z} */
|
|
110
|
-
${H}${R}: ${J};`;return`/** ${z} */ ${H}${R}: ${J};`}return`${H}${R}: ${J};`}).join(Q?`
|
|
111
|
-
`:" ");return Q?`{
|
|
112
|
-
${Y}
|
|
113
|
-
}`:`{ ${Y} }`}var qe=/[A-Za-z_$][\w$]*/g;function Ze(q,Z){if(!Z)return!1;let Q=new Set(Z[0].split(",").map((Y)=>Y.trim()));for(let[Y]of q.matchAll(qe))if(Q.has(Y))return!0;return!1}function UQ(q,Z){if(Z===void 0)return;return q.runesPropsDeclarationMetadataByDeclaratorStart.get(Z)}function sC(q,Z,Q){return UQ(q,Z)?.props.get(Q)}function aC(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 oC(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 oC(q.left);return}function RQ(q,Z){let Q=Z?.start,Y=Z?.end;if(Q===void 0||Y===void 0)return;return L0(q,Q+1,Y)?.trim()}function nC(q,Z){let Q=Z?.start,Y=Z?.end;if(Q===void 0||Y===void 0)return;return L0(q,Q,Y)?.trim()}function z1(q,Z,Q,Y,H=new Set){if(!Z?.type)return;switch(Z.type){case"TSInterfaceDeclaration":z1(q,{type:"TSTypeLiteral",members:Z.body?.body},Q,Y,H);return;case"TSTypeAliasDeclaration":case"TSParenthesizedType":case"TSTypeAnnotation":z1(q,Z.typeAnnotation,Q,Y,H);return;case"TSIntersectionType":case"TSUnionType":for(let J of Z.types??[])z1(q,J,Q,Y,H);return;case"TSTypeLiteral":for(let J of Z.members??[]){if(J?.type!=="TSPropertySignature")continue;z1(q,J.typeAnnotation?.typeAnnotation,Q,Y,H)}return;case"TSTypeReference":{let J=oC(Z.typeName);if(J){if(q.typeImportBindingsByLocalName.has(J))Q.add(J);let X=q.localTypeDeclarationsByName.get(J);if(X&&!H.has(J))Y.add(J),H.add(J),z1(q,X.node,Q,Y,H),H.delete(J)}if("typeParameters"in Z&&Z.typeParameters&&typeof Z.typeParameters==="object"){let X=Z.typeParameters;for(let W of X.params??[])z1(q,W,Q,Y,H)}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 J of Object.values(Z)){if(!J||typeof J!=="object")continue;if(Array.isArray(J)){for(let X of J){if(!X||typeof X!=="object"||!("type"in X))continue;z1(q,X,Q,Y,H)}continue}if("type"in J)z1(q,J,Q,Y,H)}}function Qe(q,Z){let Q=new Map;for(let Y of Array.from(Z).sort()){let H=q.typeImportBindingsByLocalName.get(Y);if(!H)continue;let J=Q.get(H.source)??{default:[],named:[],namespace:[]};if(H.specifierType==="default")J.default.push(H.localName);else if(H.specifierType==="namespace")J.namespace.push(H.localName);else J.named.push({imported:H.importedName,local:H.localName});Q.set(H.source,J)}return Array.from(Q.entries()).sort(([Y],[H])=>Y.localeCompare(H)).map(([Y,H])=>{if(H.namespace.length>0)return H.namespace.map(($)=>`import type * as ${$} from "${Y}";`).join(`
|
|
114
|
-
`);let J=H.named.map(({imported:$,local:R})=>{if(!$||$===R)return R;return`${$} as ${R}`}),X=H.default[0],W=J.length>0?`{ ${J.join(", ")} }`:"";if(X&&W)return`import type ${X}, ${W} from "${Y}";`;if(X)return`import type ${X} from "${Y}";`;return`import type ${W} from "${Y}";`})}function tC(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,H)=>Y.start-H.start).map((Y)=>Y.code);return{canonicalPropsType:Z.canonicalType,canonicalPropNames:Array.from(Z.props.keys()).sort(),localTypeDeclarations:Q,typeImportStatements:Qe(q,Z.referencedImportedTypes),referencesComponentGenerics:Ze(Z.canonicalType,q.generics)}}var Ye=/^[A-Za-z_$][\w$]*/,He=/[A-Za-z_$][\w$]*/g,eC=/^(?:const|in|out)\s+/;function d9(q){let Z=[],Q=0,Y=0;for(let H=0;H<q.length;H++){let J=q[H];if(J==="<"||J==="("||J==="["||J==="{")Q++;else if(J===">"||J===")"||J==="]"||J==="}")Q=Math.max(Q-1,0);else if(J===","&&Q===0)Z.push(q.slice(Y,H)),Y=H+1}return Z.push(q.slice(Y)),Z}function qE(q){let Z=d9(q).map((Y)=>Y.trim()).filter((Y)=>Y.length>0);if(Z.length===0)return null;return[Z.map((Y)=>{let H=Y;while(eC.test(H))H=H.replace(eC,"");return H.match(Ye)?.[0]??Y}).join(", "),Z.join(", ")]}function ZE(q,Z,Q){let Y=q.scriptGenericsAttribute?.value;if(!Y)return;for(let[H]of Y.matchAll(He)){if(q.typeImportBindingsByLocalName.has(H))Z.add(H);if(Q.has(H))continue;let J=q.localTypeDeclarationsByName.get(H);if(!J)continue;Q.add(H),z1(q,J.node,Z,Q)}}var Je=null;function Xe(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=Lq(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=L0(q,Q.start,Q.end);return Y}function QE(q,Z,Q){let Y={};for(let H of Q.properties){if(H.type!=="Property"||H.computed)continue;let J=Z.getPropertyName(H.key);if(!J)continue;Y[J]=Xe(q,Z,H.value)}return Y}function Ve(q,Z){if(!Z||typeof Z!=="object"||!("type"in Z))return null;if(Z.type==="Identifier"){let J=Z,X=q.propLocalToPublicName.get(J.name);if(!X)return null;return{publicName:X,trackingName:J.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 H;if(!Q.computed&&Q.property&&typeof Q.property==="object"&&"type"in Q.property){if(Q.property.type==="Identifier")H=Q.property.name;else if(Q.property.type==="Literal"&&Q.property.value!=null)H=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)H=String(Q.property.value);if(!H)return null;return{publicName:H,trackingName:H}}function YE(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 H=Ve(q,Y.callee);if(!H)return null;return{...H,arguments:Y.arguments}}function Ge(q){return q===void 0||q===""?void 0:q}function We(q){return q===void 0||q===""?void 0:q}function J5(q,{slot_name:Z,slot_props:Q,slot_fallback:Y,slot_description:H,slot_deprecated:J,slot_tags:X,source:W}){let $=Z===void 0||Z==="",R=$?Je:Z??"",z=Ge(Y),O=We(Q),P=H?.trim()||void 0;if(q.slots.has(R)){let w=q.slots.get(R);if(w)q.slots.set(R,{...w,default:w.default??$,fallback:z,slot_props:w.slot_props===void 0?O:w.slot_props,description:w.description||P,deprecated:w.deprecated??J,tags:w.tags||X,source:W||w.source})}else q.slots.set(R,{name:R,default:$,fallback:z,slot_props:Q,description:P,deprecated:J,tags:X,source:W})}var $e=/\s*=\s*/;function HE(q){let Z=q.indexOf("<");if(Z===-1||!q.endsWith(">"))return q;let Q=q.slice(0,Z),Y=q.slice(Z+1,-1),H=d9(Y).map((J)=>J.trim().replace($e," = ")).join(", ");return`${Q}<${H}>`}var Ue=/^\s*$/,Re=/;$/,ze=/^-\s*/;function s9(q){if(q===void 0)return;let Z=q.replace(ze,"").trim();return Z===""?"":Z}function X5(q){if(!q||q.length===0)return;return q[0].tokens.description}var JE=new Set(["since","example"]);function XE(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 H=`${Y.name??""}${Y.postName??""}${Y.description??""}`.trimEnd();if(H)Z.push(H)}else Z.push(`${Y.postDelimiter??""}${Y.description??""}`)}return Z.join(`
|
|
115
|
-
`)}function Be(q){let Z=q.trim();return Z===""?!0:Z}function VE(q,Z){return Be(`${q??""}${Z?` ${Z}`:""}`)}function Me(q){let Z=q.trim().replace(Re,"").trimEnd();if(!Z.startsWith("{")||!Z.endsWith("}"))return!1;let Q=0,Y=null;for(let H=0;H<Z.length;H++){let J=Z[H];if(Y!==null){if(J==="\\"){H++;continue}if(J===Y)Y=null;continue}if(J==='"'||J==="'"||J==="`"){Y=J;continue}if(J==="{"||J==="["||J==="(")Q++;else if(J==="}"||J==="]"||J===")"){if(Q--,Q===0&&H<Z.length-1)return!1}}return Q===0}function zQ(q){return q===void 0||q===""?void 0:q}function Le(q){let Z=q;if(!Z.startsWith("/*"))Z=`/*${Z}`;if(!Z.endsWith("*/"))Z+="*/";return Z}function Oq(q){let Z=q[0]?.tags??[],Q=new Set(["type","param","returns","return","extends","extendProps","restProps","slot","snippet","event","typedef","callback","bindable","deprecated"]),Y,H=[],J,X,W,$=[],R=[];for(let z of Z)if(z.tag==="type")Y=z;else if(z.tag==="param")H.push(z);else if(z.tag==="returns"||z.tag==="return")J=z;else if(z.tag==="deprecated")W??=VE(z.name,z.description);else if(JE.has(z.tag))R.push(z);else if(z.tag==="bindable"){if(z.type)continue;let O=`${z.name}${z.description?` ${z.description}`:""}`.trim();if(O==="readonly"||O==="writable")X??=O}else if(!Q.has(z.tag))$.push(z);return{type:Y,param:H,returns:J,binding:X,deprecated:W,additional:$,passthrough:R,description:q[0]?.description}}function Pe(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 Oe(q,Z,Q){if(!Z||Z.length===0||Q===void 0||!q.source)return;for(let Y=Z.length-1;Y>=0;Y--){let H=Z[Y];if(!H||typeof H!=="object"||!("value"in H)||!("end"in H))continue;if(typeof H.end!=="number")continue;let J=q.source.slice(H.end,Q);if(Ue.test(J))return H}return}function C9(q,Z,Q){if(!Q?.leadingComments)return;let Y=Oe(q,Q.leadingComments,Q.start);if(!Y)return;return we(Z,[Y])}function GE(q,Z,Q){if(!Q?.leadingComments)return;return C9(q,Z,Q)}function we(q,Z){if(!Z)return;let Q=Pe(Z);if(!Q)return;let Y=z6(Le(Q.value),{spacing:"preserve"}),{type:H,param:J,returns:X,binding:W,deprecated:$,additional:R,passthrough:z,description:O}=Oq(Y),P,w,v,F;if(H)P=q.aliasType(H.type);if(J.length>0)w=J.filter((_)=>!_.name.includes(".")).map((_)=>({name:_.name,type:q.aliasType(_.type),description:s9(_.description),optional:_.optional||!1}));if(X)v=q.aliasType(X.type);let h=zQ(O?.trim());if(h||R.length>0){let _=[];if(h)_.push(h);for(let E of R){let u=`@${E.tag}${E.name?` ${E.name}`:""}${E.description?` ${E.description}`:""}`;_.push(u)}F=_.join(`
|
|
116
|
-
`)}let m=z.length>0?z.map((_)=>({name:_.tag,body:XE(_.source)})):void 0;return{type:P,params:w,returnType:v,description:F,binding:W,deprecated:$,tags:m}}function WE(q,Z){if(!q.source)return;let Q=0;for(let{tags:Y,description:H,source:J}of z6(q.source,{spacing:"preserve"})){let X=J.map((Z8)=>Z8.source).join(`
|
|
117
|
-
`),W=q.source.indexOf(X,Q),$=W===-1?void 0:W;if(W!==-1)Q=W+X.length;let R,z,O,P,w,v,F=[],h=[],m,_,E,u=[],S,s,b=[],G,U=!1,B=!0,M=[],C,T=new Map,D=new Set,f=new Set;for(let Z8 of Y)if(Z8.source&&Z8.source.length>0)D.add(Z8.source[0].number);for(let Z8 of J)if(!Z8.tokens.tag&&Z8.tokens.description&&Z8.tokens.description.trim()!=="}")T.set(Z8.number,Z8.tokens.description);let p=(Z8)=>{if(!Z8||Z8.length===0)return;let S8=Z8[0].number,H8=[],q8=[],v8=!1;for(let f8=S8-1;f8>=1;f8--){if(D.has(f8))break;let i=T.get(f8);if(i)H8.unshift(i),q8.unshift(f8),v8=!0;else if(v8){let L8=J.find(($8)=>$8.number===f8);if(!(!L8||!L8.tokens.tag&&(!L8.tokens.description||L8.tokens.description.trim()==="")))break}}if(H8.length===0)return;for(let f8 of q8)f.add(f8);return H8.join(`
|
|
118
|
-
`).trim()},k=()=>{if(R!==void 0){let Z8=z&&z!=="object"&&z!=="Object"?z:void 0,S8;if(Z8)S8=Z8;else if(h.length>0)S8=$Q(h,R,!0);else S8=z||"";if(v!==void 0){let H8;for(let f8 of Y){let i=f8.source?.[0]?.number;if(typeof i!=="number")continue;if(i<=v)continue;if(f8.tag==="property"||f8.tag==="type")continue;H8=i;break}let q8=[],v8=Array.from(T.keys()).sort((f8,i)=>f8-i);for(let f8 of v8){if(f8<=v)continue;if(H8!==void 0&&f8>=H8)continue;if(f.has(f8))continue;let L8=T.get(f8)?.trim();if(L8)q8.push(L8),f.add(f8)}if(q8.length>0){let f8=q8.join(`
|
|
119
|
-
`);O=O?`${O}
|
|
120
|
-
${f8}`:f8}}H5(q,{name:R,detail:S8,has_argument:!1,description:O,deprecated:P,tags:F.length>0?F:void 0,source:w}),q.eventDescriptions.set(R,O),q.jsDocEventNames.add(R),q.jsDocEventSources.set(R,w),h.length=0,R=void 0,z=void 0,O=void 0,P=void 0,w=void 0,v=void 0,F=[]}},o=()=>{if(m!==void 0){let Z8,S8;if(u.length>0)Z8=$Q(u,void 0,!0),S8=`type ${m} = ${Z8};`;else if(_)Z8=_,S8=Me(Z8)?`interface ${m} ${Z8}`:`type ${m} = ${Z8};`;else Z8="{}",S8=`type ${m} = ${Z8};`;q.typedefs.set(m,{type:Z8,name:m,description:zQ(E),ts:S8}),u.length=0,m=void 0,_=void 0,E=void 0}},A8=()=>{if(S!==void 0){let H8=`(${b.map(({name:v8,type:f8,optional:i})=>{return`${v8}${i?"?":""}: ${f8}`}).join(", ")}) => ${G||"void"}`,q8=`type ${S} = ${H8};`;q.typedefs.set(S,{type:H8,name:S,description:zQ(s),ts:q8}),b.length=0,G=void 0,S=void 0,s=void 0}},z8=Y.some((Z8)=>Z8.tag==="slot"||Z8.tag==="snippet"),D8=Y.some((Z8)=>Z8.tag==="extends"||Z8.tag==="extendProps");for(let{tag:Z8,type:S8,name:H8,description:q8,optional:v8,default:f8,source:i}of Y){let L8=Z.aliasType(S8),a=p(i);switch(Z8){case"extends":case"extendProps":if(q.extends={interface:H8,import:L8},B)B=!1;break;case"restProps":{let $8=H8?q8?`${H8} ${q8}`:H8:q8,x8=s9($8)||a;if(!x8&&B&&!U&&H)x8=H,U=!0;if(q.rest_props={type:"Element",name:L8,description:x8||void 0},B)B=!1;break}case"slot":case"snippet":{let y8=s9(X5(i));if(!y8&&B&&!U&&H)y8=H,U=!0;if(!y8&&M.length===0)y8=a;if(B)B=!1;J5(q,{slot_name:H8,slot_props:L8,slot_description:y8||void 0,slot_deprecated:C,slot_tags:M.length>0?[...M]:void 0,source:XQ(q,J,i,$)}),M.length=0,C=void 0;break}case"event":{if(k(),R=H8,z=L8,v=i&&i.length>0?i[0].number:void 0,O=s9(X5(i))||a,!O&&B&&!U&&H)O=H,U=!0;if(w=XQ(q,J,i,$),B)B=!1;break}case"type":if(R!==void 0)z=L8;break;case"param":if(S!==void 0)b.push({name:H8,type:L8,optional:v8||!1});break;case"returns":case"return":if(S!==void 0)G=L8;break;case"property":{let $8={name:H8,type:L8,description:s9(X5(i)),optional:v8||!1,default:f8};if(R!==void 0)h.push($8);else if(m!==void 0)u.push($8);break}case"typedef":{if(o(),m=HE(H8),_=L8,E=s9(X5(i))||a,!E&&B&&!U&&H)E=H,U=!0;if(B)B=!1;break}case"callback":{if(A8(),S=HE(H8),s=s9(X5(i))||a,!s&&B&&!U&&H)s=H,U=!0;if(B)B=!1;break}case"generics":if(q.generics=[H8,L8],B)B=!1;break;case"template":{let $8=H8;if(L8)$8=`${H8} extends ${L8}`;if(f8)$8+=` = ${f8}`;if(z8&&!D8){q.deferredSlotBlockGenerics.push({name:H8,constraint:$8});break}if(Z.accumulateGeneric(H8,$8),B)B=!1;break}case"deprecated":{let $8=VE(H8,q8);if(R===void 0)C??=$8;else P??=$8;break}case"enum":case"class":case"implements":case"this":case"namespace":case"memberof":case"module":case"file":case"overview":break;default:{let $8={name:Z8,body:XE(i)};if(R!==void 0&&JE.has(Z8))F.push($8);else M.push($8)}break}}k(),o(),A8()}}function Ae(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 $E(q,Z){if(q.rest_props!==void 0)return;let Q=Ae(Z);if(Q)q.rest_props=Q}function k0(q,Z,Q){if(!Z||q.has(Z))return;q.set(Z,Q)}function wq(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 I0(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":I0(q.left,Z);break;case"ArrayPattern":for(let Q of q.elements)I0(Q??void 0,Z);break;case"ObjectPattern":for(let Q of q.properties)if(Q.type==="Property")I0(Q.value,Z);else if(Q.type==="RestElement")I0(Q.argument,Z);break;case"RestElement":I0(q.argument,Z);break}return Z}function MQ(q,Z){let Q=I0(Z);if(!Q)return;for(let Y of Q){let H=wq(q,Y);if(H)q.reactive_vars.add(H)}}function Aq(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 UE(q){if(!q||typeof q!=="object"||!("type"in q))return!1;let Z=String(q.type);return Z==="FunctionDeclaration"||Z==="FunctionExpression"||Z==="ArrowFunctionExpression"}function Ie(q,Z){let Q=q.scopeDeclarations.get(Z);if(!Q)Q=new Map,q.scopeDeclarations.set(Z,Q);return Q}function je(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 H of Q.id.properties){if(H.type==="RestElement"){if(H.argument.type==="Identifier")Y.push({kind:"local",name:H.argument.name});continue}if(H.computed)continue;let J=q.getPropertyName(H.key);if(!J)continue;let X;if(H.value.type==="Identifier")X=H.value.name;else if(H.value.type==="AssignmentPattern"&&H.value.left.type==="Identifier")X=H.value.left.name;if(!X)continue;Y.push({kind:"prop",name:X,publicPropName:J})}return Y}function BQ(q,Z,Q,Y,H){if(!uC(Z))return;let J=H?.allowRunesProps??!1,X=H?.forceProp??!1,W=Z;for(let $ of W.declarations){if(J&&x1(D9($.init),"$props")){for(let O of je(q,W,$))k0(O.kind==="prop"?Q:Y,O.name,O.kind==="prop"?{kind:"prop",publicPropName:O.publicPropName}:{kind:"local"});continue}let R=W.kind==="var"?Y:Q,z=X?"prop":"local";for(let O of I0($.id))k0(R,O,z==="prop"?{kind:"prop",publicPropName:O}:{kind:"local"})}}function De(q,Z){if("id"in q&&q.id&&typeof q.id==="object"&&"name"in q.id&&typeof q.id.name==="string")k0(Z,q.id.name,{kind:"local"});for(let Q of q.params)for(let Y of I0(Q))k0(Z,Y,{kind:"local"})}function Ce(q,Z,Q,Y){if(!Array.isArray(Z))return;for(let H of Z){if(!H||typeof H!=="object"||!("type"in H))continue;switch(H.type){case"VariableDeclaration":BQ(q,H,Q,Y);break;case"FunctionDeclaration":if(H.id?.name)k0(Q,H.id.name,{kind:"local"});break;case"ClassDeclaration":if(H.id?.name)k0(Q,H.id.name,{kind:"local"});break}}}function Ee(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 H of Y.body){if(!H||typeof H!=="object"||!("type"in H))continue;switch(H.type){case"ImportDeclaration":for(let J of H.specifiers??[])if(J.local?.name)k0(Z.componentScope,J.local.name,{kind:"local"});break;case"VariableDeclaration":BQ(q,H,Z.componentScope,Z.componentScope,{allowRunesProps:!0});break;case"FunctionDeclaration":if(H.id?.name)k0(Z.componentScope,H.id.name,{kind:"local"});break;case"ClassDeclaration":if(H.id?.name)k0(Z.componentScope,H.id.name,{kind:"local"});break;case"ExportNamedDeclaration":if(!H.declaration||typeof H.declaration!=="object"||!("type"in H.declaration))break;if(H.declaration.type==="VariableDeclaration")BQ(q,H.declaration,Z.componentScope,Z.componentScope,{forceProp:!0});else if(H.declaration.type==="FunctionDeclaration"&&H.declaration.id?.name)k0(Z.componentScope,H.declaration.id.name,{kind:"prop",publicPropName:H.declaration.id.name});break}}}function RE(q,Z){Z.componentScope.clear(),Z.scopeDeclarations=new WeakMap,Z.activeScopes.length=0,Ee(q,Z,Z.parsed?.instance)}function zE(q){return{varScopeStack:[q.componentScope]}}function BE(q,Z,Q,Y){if(!Aq(Y))return;let H=Ie(Z,Y),J=Q.varScopeStack[Q.varScopeStack.length-1]??Z.componentScope;switch(String(Y.type)){case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":De(Y,H);break;case"BlockStatement":Ce(q,Y.body,H,J);break;case"CatchClause":if("param"in Y)for(let W of I0(Y.param))k0(H,W,{kind:"local"});break;case"EachBlock":{let W=Y;for(let $ of I0(W.context))k0(H,$,{kind:"local"});if(typeof W.index==="string")k0(H,W.index,{kind:"local"});else if(W.index&&"name"in W.index)k0(H,W.index.name,{kind:"local"});break}case"ThenBlock":if("value"in Y)for(let W of I0(Y.value))k0(H,W,{kind:"local"});break;case"CatchBlock":if("error"in Y)for(let W of I0(Y.error))k0(H,W,{kind:"local"});break}if(UE(Y))Q.varScopeStack.push(H)}function ME(q,Z){if(UE(Z))q.varScopeStack.pop()}var Fe=new Set(["$state","$derived","$effect","$props","$bindable","$inspect","$host"]);function Te(q,Z){switch(Z?.type){case"MemberExpression":return Z.computed||q===Z.object;case"MethodDefinition":return!!Z.computed;case"MetaProperty":return q===Z.meta;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 fe(q,Z){for(let Q=Z.length-1;Q>=0;Q-=1)if(Z[Q]?.has(q))return!0;return!1}function Ke(q){let Z=new Set;if(!q||typeof q!=="object"||!("type"in q))return Z;switch(String(q.type)){case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":{let Q=q;if(Q.id?.name)Z.add(Q.id.name);for(let Y of Q.params??[])I0(Y,Z);break}case"BlockStatement":Iq(q.body,Z);break;case"CatchClause":I0(q.param,Z);break;case"EachBlock":{let Q=q;if(I0(Q.context,Z),typeof Q.index==="string")Z.add(Q.index);else if(Q.index?.name)Z.add(Q.index.name);break}case"ThenBlock":I0(q.value,Z);break;case"CatchBlock":I0(q.error,Z);break}return Z}function Iq(q,Z){if(!Array.isArray(q))return;for(let Q of q){if(!Q||typeof Q!=="object"||!("type"in Q))continue;switch(String(Q.type)){case"ImportDeclaration":for(let Y of Q.specifiers??[])if(Y.local?.name)Z.add(Y.local.name);break;case"VariableDeclaration":for(let Y of Q.declarations??[])I0(Y.id,Z);break;case"FunctionDeclaration":case"ClassDeclaration":{let Y=Q.id?.name;if(Y)Z.add(Y);break}case"ExportNamedDeclaration":{let Y=Q.declaration;if(Y&&typeof Y==="object"&&"type"in Y)Iq([Y],Z);break}}}}function LQ(q,Z){if(!q||typeof q!=="object")return!1;let Q=[...Z],Y=!1;return i1(q,{enter(H,J){if(Y){this.skip();return}if(Aq(H))Q.push(Ke(H));if(J&&H.type==="Identifier"&&Fe.has(H.name)&&!J.type.startsWith("TS")&&Te(H,J)&&!fe(H.name,Q))Y=!0,this.skip()},leave(H){if(Aq(H))Q.pop()}}),Y}function LE(q){if(!q||typeof q!=="object")return;if("content"in q){let Z=q.content,Q=Z&&typeof Z==="object"&&"body"in Z?Z.body:void 0;if(Array.isArray(Q))return Q}if("body"in q&&Array.isArray(q.body))return q.body;return}function PE(q){if(q.runesOptionOverride!==void 0)return q.runesOptionOverride?"runes":"legacy";let Z=q.parsed;if(!Z)return"legacy";let Q=new Set;Iq(LE(Z.module),Q);let Y=new Set;return Iq(LE(Z.instance),Y),LQ(Z.module,[Q])||LQ(Z.instance,[Q,Y])||LQ(Z.html,[Q,Y])?"runes":"legacy"}var ve=/[A-Za-z_$][\w$]*/g;function ke(q,Z,Q){let Y=new Map,H=Z.typeParameters?.params,J=Q.typeArguments?.params;if(!H?.length||!J?.length)return Y;for(let X=0;X<H.length;X++){let W=H[X]?.name,$=J[X];if(!W||$?.start===void 0||$?.end===void 0)continue;let R=L0(q,$.start,$.end)?.trim();if(R)Y.set(W,R)}return Y}function Ne(q,Z){if(Z.size===0)return q;return q.replace(ve,(Q)=>Z.get(Q)??Q)}function V5(q,Z,Q,Y,H=new Set){let J=new Map;if(!Q?.type)return J;let X=(W)=>{for(let $ of W){if($?.type!=="TSPropertySignature"||$.computed)continue;if(!$.key)continue;let R=q.getPropertyName($.key);if(!R)continue;let z=$.typeAnnotation?.start,O=$.typeAnnotation?.end;if(z===void 0||O===void 0)continue;let P=L0(Z,z+1,O)?.trim();if(!P)continue;J.set(R,{type:P,optional:$.optional===!0,source:A0(Z,$)})}};switch(Q.type){case"TSTypeLiteral":X(Q.members??[]);break;case"TSInterfaceDeclaration":X(Q.body?.body??[]);break;case"TSTypeAliasDeclaration":{let W=V5(q,Z,Q.typeAnnotation,Y,H);for(let[$,R]of W)J.set($,R);break}case"TSTypeReference":{let W=aC(Q.typeName);if(!W||H.has(W))break;let $=Y.get(W);if(!$)break;H.add(W);let R=V5(q,Z,$,Y,H);H.delete(W);let z=ke(Z,$,Q);for(let[O,P]of R)J.set(O,z.size===0?P:{...P,type:Ne(P.type,z)});break}case"TSIntersectionType":for(let W of Q.types??[]){let $=V5(q,Z,W,Y,H);for(let[R,z]of $)J.set(R,z)}break;case"TSParenthesizedType":{let W=V5(q,Z,Q.typeAnnotation,Y,H);for(let[$,R]of W)J.set($,R);break}}return J}function OE(q,Z){if(Z.runesPropsDeclarationMetadataByDeclaratorStart.clear(),Z.explicitPropTypesByName.clear(),Z.typeImportBindingsByLocalName.clear(),Z.localTypeDeclarationsByName.clear(),Z.typedRunesPropsDeclarations.length=0,!Z.source)return;let Q=j9(Z.source,{modern:!0});Z.scriptLanguage=q.resolveScriptLanguage(Q),Z.customElementTag=Q.options?.customElement?.tag,Z.runesOptionOverride=Q.options?.runes,Z.scriptGenericsAttribute=q.resolveScriptGenericsAttribute(Q);let Y=Q.instance?.content?.body??[];for(let H of Y){if(!H?.type)continue;if(H.type==="ImportDeclaration"&&H.source?.value)for(let J of H.specifiers??[]){let X=J.local?.name;if(!X)continue;if(!(H.importKind==="type"||J.importKind==="type"))continue;let $,R;if(J.type==="ImportSpecifier")$="named",R=J.imported?.type==="Identifier"?J.imported.name:typeof J.imported?.value==="string"?J.imported.value:void 0;else if(J.type==="ImportDefaultSpecifier")$="default";else if(J.type==="ImportNamespaceSpecifier")$="namespace";if(!$)continue;Z.typeImportBindingsByLocalName.set(X,{importedName:R,localName:X,source:String(H.source.value),specifierType:$})}if((H.type==="TSInterfaceDeclaration"||H.type==="TSTypeAliasDeclaration")&&H.id?.name&&H.start!==void 0&&H.end!==void 0)Z.localTypeDeclarationsByName.set(H.id.name,{code:L0(Z,H.start,H.end)?.trim()??"",node:H,start:H.start});if(H.type==="ExportNamedDeclaration"&&H.declaration?.type==="VariableDeclaration")for(let J of H.declaration.declarations??[]){if(J.id?.type!=="Identifier"||!J.id.name)continue;let X=RQ(Z,J.id.typeAnnotation);if(X)Z.explicitPropTypesByName.set(J.id.name,X)}}for(let H of Y){if(!H||typeof H!=="object"||!("declarations"in H))continue;for(let J of H.declarations??[]){if(!x1(D9(J.init),"$props"))continue;let X=J.id?.typeAnnotation?void 0:hC(J.init),W=J.id?.typeAnnotation?.typeAnnotation??X,$=J.id?.typeAnnotation?RQ(Z,J.id.typeAnnotation):nC(Z,X),R=V5(q,Z,W,new Map(Array.from(Z.localTypeDeclarationsByName.entries(),([P,w])=>[P,w.node]))),z=new Set,O=new Set;if(z1(Z,W,z,O),ZE(Z,z,O),J.start!==void 0){let P={canonicalType:$,props:R,referencedImportedTypes:z,referencedLocalTypes:O};if(Z.runesPropsDeclarationMetadataByDeclaratorStart.set(J.start,P),$)Z.typedRunesPropsDeclarations.push(P)}}}}function wE(q,Z,Q){for(let Y of Q.declarations){if(!x1(D9(Y.init),"$props"))continue;if(Y.id.type==="Identifier"){Z.wholePropsLocals.add(Y.id.name),Z.restPropLocals.add(Y.id.name);let X=UQ(Z,Y.start);if(X)for(let[W,$]of X.props)Y5(q,Z,W,{name:W,kind:"let",type:$.type,typeSource:"typescript",isFunction:!1,isFunctionDeclaration:!1,isRequired:!$.optional,constant:!1,reactive:!1,source:$.source});continue}if(Y.id.type!=="ObjectPattern")continue;let H=C9(Z,q,Q),J=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 W=q.getPropertyName(X.key);if(!W)continue;let $,R;if(X.value.type==="Identifier")$=X.value.name;else{let b=X.value;$=b.left.name,R=b.right}if(!$)continue;if(q.trackPropLocalName(W,$),W==="children")Z.snippetPropLocals.add($);let z=GE(Z,q,X)??(J===1?H:void 0),O=sC(Z,Y.start,W),{init:P,bindable:w}=pC(R),v=P==null?{isFunction:!1}:i9(q,Z,P),{value:F,type:h,isFunction:m,defaultValue:_}=v,E=O?.type===void 0&&z?.type===void 0?v.resolvedType:void 0,u=!!z?.params?.length||z?.returnType!==void 0||z?.type?.includes("=>")||!!E?.includes("=>")||!!O?.type?.includes("=>"),S=O?.type??z?.type??E??h,s=q.resolveTypeSource({hasTypeScriptType:O?.type!==void 0,hasJSDocType:z?.type!==void 0||z?.params!==void 0||z?.returnType!==void 0||E!==void 0,inferredType:h,finalType:S});if(w)Z.reactive_vars.add(W);Y5(q,Z,W,{name:W,...$===W?{}:{localName:$},kind:"let",description:z?.description??v.resolvedDescription,binding:z?.binding,deprecated:z?.deprecated,tags:z?.tags,...w?{bindable:!0}:{},type:S,typeSource:s,value:F,defaultValue:_,params:z?.params??v.resolvedParams,returnType:z?.returnType??v.resolvedReturnType,isFunction:Boolean(m||u),isFunctionDeclaration:!1,isRequired:P==null&&O?.optional!==!0,constant:!1,reactive:w,source:A0(Z,X)})}}}function AE(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 H=`on${Q}`,J=q.props.get(H);if(!J)continue;let X=J.type!==void 0||J.params!==void 0||J.returnType!==void 0,W=Y.detail===void 0||Y.detail==="undefined"||Y.detail==="null"?"() => void":`(detail: ${Y.detail}) => void`;q.props.set(H,{...J,description:J.description??Y.description,type:X?J.type:W,typeSource:X?J.typeSource:"inferred",isFunction:!0}),q.events.delete(Q)}}var IE=new Set(["TSAsExpression","TSSatisfiesExpression","TSNonNullExpression","TSTypeAssertion","TSInstantiationExpression"]);function jq(q){if(!q||typeof q!=="object")return;i1(q,{enter(Z){if(!IE.has(Z.type))return;let Q=Z.expression;while(Q&&IE.has(Q.type))Q=Q.expression;if(Q)this.replace(Q)}})}var Se=/(?:const|let|function)\s+(\w+)\s*[=(]/;function ue(q){return q===void 0||q===""?void 0:q}function jE(q){if(q==="var")return"let";if(q==="using"||q==="await using")return"const";return q}var G5=Symbol("sveld.parsedComponentTypeScriptMetadata");function Dq(q){return q[G5]}function CE(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 be=null,DE=/^@component/,he=/\r/g,_e=/^\{\s*\}$/;class X0{ctx=JQ();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 H=Y.attributes?.find((X)=>X.name==="lang");if(!H){Q=!0;continue}if(X0.getStaticAttributeValue(H)?.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=A0(this.ctx,Z),Y=q.instance?.attributes?.find((X)=>X.name==="lang");if((Y?X0.getStaticAttributeValue(Y)?.toLowerCase():void 0)!=="ts"){Z9(this.ctx,"syntax-skipped","generics",'<script generics="..."> requires lang="ts"; the generics attribute was ignored because the script is not TypeScript.',Q);return}let J=X0.getStaticAttributeValue(Z);if(!J)return;return{value:J,source:Q}}static assignValue(q){return ue(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(g1(q))return q.name;if(r9(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((H)=>H.id&&typeof H.id==="object"&&("type"in H.id)&&H.id.type==="Identifier"&&("name"in H.id)&&H.id.name===q))return C9(this.ctx,this,Q);let Z=this.ctx.funcDecls.get(q);if(Z)return C9(this.ctx,this,Z);return}addModuleExport(q,Z){if(X0.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(`
|
|
121
|
-
`);let q=this.ctx.sourceLinesCache;for(let Z=0;Z<q.length;Z++){let Y=q[Z].trim().match(Se);if(Y){let H=Y[1];for(let J=Z-1;J>=0;J--){let X=q[J].trim();if(X&&!X.startsWith("*")&&!X.startsWith("/*")&&!X.startsWith("//"))break;if(X.startsWith("/**")){let W=[];for(let P=J;P<Z;P++)W.push(q[P]);let $=W.join(`
|
|
122
|
-
`),R=z6($,{spacing:"preserve"}),{type:z,description:O}=Oq(R);if(z)this.ctx.variableInfoCache.set(H,{type:this.aliasType(z.type),description:O||z.description});break}}}}}static VAR_NAME_REGEX_CACHE=new Map;static getVarNameRegexes(q){let Z=X0.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*\\(`)],X0.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};if(!this.ctx.variableInfoCacheBuilt)this.buildVariableInfoCache(),this.ctx.variableInfoCacheBuilt=!0;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(`
|
|
123
|
-
`);let Y=this.ctx.sourceLinesCache,[H,J,X]=X0.getVarNameRegexes(q);for(let W=0;W<Y.length;W++){let $=Y[W].trim(),R=$.match(H),z=$.match(J),O=$.match(X);if(R||z||O)for(let P=W-1;P>=0;P--){let w=Y[P].trim();if(w&&!w.startsWith("*")&&!w.startsWith("/*")&&!w.startsWith("//"))break;if(w.startsWith("/**")){let v=[];for(let E=P;E<W;E++)v.push(Y[E]);let F=v.join(`
|
|
124
|
-
`),h=z6(F,{spacing:"preserve"}),{type:m,description:_}=Oq(h);if(m)return{type:this.aliasType(m.type),description:_||m.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=JQ()}static SCRIPT_BLOCK_REGEX=/(<script[^>]*>)([\s\S]*?)(<\/script>)/gi;static TS_DIRECTIVE_REGEX=/\/\/\s*@ts-[^\n\r]*/g;static stripTypeScriptDirectivesFromScripts(q){return X0.SCRIPT_BLOCK_REGEX.lastIndex=0,q.replace(X0.SCRIPT_BLOCK_REGEX,(Z,Q,Y,H)=>{X0.TS_DIRECTIVE_REGEX.lastIndex=0;let J=Y.replace(X0.TS_DIRECTIVE_REGEX,"");return Q+J+H})}parseSvelteComponent(q,Z){this.cleanup(),this.ctx.componentFilePath=Z.filePath;let Q=X0.stripTypeScriptDirectivesFromScripts(q);if(this.ctx.source=Q,OE(this,this.ctx),this.ctx.parsed=j9(Q,{modern:!1}),this.ctx.scriptLanguage==="ts")jq(this.ctx.parsed.module),jq(this.ctx.parsed.instance),jq(this.ctx.parsed.html);if(this.ctx.syntaxMode=PE(this.ctx),WE(this.ctx,this),this.ctx.parsed?.module)i1(this.ctx.parsed?.module,{enter:(E)=>{if(E.type==="ExportNamedDeclaration"){if(E.declaration==null)return;if(!E.declaration||typeof E.declaration!=="object"||!("type"in E.declaration))return;let u,S,s,b=!1,G,U,B,M=!1,C,T,D,f,p;if(E.declaration.type==="FunctionDeclaration"){let A8=E.declaration;if(!A8.id?.name)return;u=A8.id.name,S="function",G=void 0,U="() => any",M=!0,b=!0}else if(E.declaration.type==="VariableDeclaration"){let A8=E.declaration,z8=A8.declarations[0];if(!z8||typeof z8!=="object"||!("id"in z8))return;let{id:D8,init:Z8}=z8;if(!D8||typeof D8!=="object"||!("name"in D8))return;let S8=D8.name;u=S8,S=jE(A8.kind);let H8=Z8==null?{isFunction:!1}:i9(this,this.ctx,Z8);({value:G,type:f,isFunction:M,defaultValue:D}=H8),p=H8,B=this.getExplicitPropType(S8),U=B??f}else return;let k=C9(this.ctx,this,E);if(k){if(k.type&&B===void 0)U=k.type;if(C=k.params,T=k.returnType,k.description)s=k.description}if(B===void 0&&k?.type===void 0&&p?.resolvedType)U=p.resolvedType;if(s===void 0&&p?.resolvedDescription)s=p.resolvedDescription;if(C===void 0&&p?.resolvedParams)C=p.resolvedParams;if(T===void 0&&p?.resolvedReturnType)T=p.resolvedReturnType;if(b&&U==="() => any"&&T)if(C&&C.length>0)U=`(${C.map((D8)=>{let Z8=D8.optional?"?":"";return`${D8.name}${Z8}: ${D8.type}`}).join(", ")}) => ${T}`;else U=`() => ${T}`;if(!s&&U&&this.ctx.typedefs.has(U))s=this.ctx.typedefs.get(U)?.description;let o=this.resolveTypeSource({hasTypeScriptType:B!==void 0,hasJSDocType:k?.type!==void 0||k?.params!==void 0||k?.returnType!==void 0||p?.resolvedType!==void 0,inferredType:f,finalType:U});this.addModuleExport(u,{name:u,kind:S,description:s,deprecated:k?.deprecated,tags:k?.tags,type:U,typeSource:o,value:G,defaultValue:D,params:C,returnType:T,isFunction:M,isFunctionDeclaration:b,isRequired:!1,constant:S==="const",reactive:!1,source:A0(this.ctx,E)})}}});let Y,H=new Set,J=new Set,X=[],W={type:"ComponentRoot",instance:this.ctx.parsed.instance,html:this.ctx.parsed.html};RE(this,this.ctx),this.ctx.activeScopes.push(this.ctx.componentScope);let $=zE(this.ctx);if(i1(W,{enter:(E,u,S)=>{BE(this,this.ctx,$,E);let s=this.ctx.scopeDeclarations.get(E);if(s)this.ctx.activeScopes.push(s);if(E.type==="AssignmentExpression")MQ(this.ctx,E.left);if(E.type==="UpdateExpression")MQ(this.ctx,E.argument);if(E.type==="CallExpression"){let b=E,G=b.callee&&typeof b.callee==="object"&&"name"in b.callee?b.callee.name:void 0;if(G==="createEventDispatcher"){if(u&&typeof u==="object"&&"id"in u&&u.id&&typeof u.id==="object"&&"name"in u.id)Y=u.id.name}if(G==="$host"){if(u&&typeof u==="object"&&"id"in u&&u.id&&typeof u.id==="object"&&"name"in u.id)H.add(u.id.name)}if(G==="setContext")iC(this.ctx,this,E,u??void 0);if(G)X.push({name:G,arguments:b.arguments,source:A0(this.ctx,b)});if(bC(b.callee)&&g1(b.callee.property)&&b.callee.property.name==="dispatchEvent"&&(x1(b.callee.object,"$host")||g1(b.callee.object)&&H.has(b.callee.object.name))){let U=dC(this.ctx,b);if(U)J.add(U)}}if(E&&typeof E==="object"&&"type"in E&&String(E.type)==="Spread"){let b=E;if(b.expression?.name==="$$restProps"||this.ctx.restPropLocals.has(b.expression?.name??""))$E(this.ctx,u)}if(E.type==="FunctionDeclaration"){let b=E;if(b.id?.name)this.ctx.funcDecls.set(b.id.name,b)}if(E.type==="VariableDeclaration"){if(this.ctx.vars.add(E),u&&typeof u==="object"&&"type"in u&&u.type==="Program"&&E.declarations.some((b)=>x1(D9(b.init),"$props")))wE(this,this.ctx,E)}if(E.type==="ExportNamedDeclaration"){if(E.declaration==null&&E.specifiers.length===0)return;let b;if(E.declaration==null&&E.specifiers[0]?.type==="ExportSpecifier"){let H8=E.specifiers[0],q8=H8.local&&typeof H8.local==="object"&&"name"in H8.local?H8.local.name:void 0,v8=H8.exported&&typeof H8.exported==="object"&&"name"in H8.exported?H8.exported.name:void 0;if(!q8||!v8)return;let f8;for(let i of Array.from(this.ctx.vars))if(i.declarations.some((L8)=>L8.id&&typeof L8.id==="object"&&("type"in L8.id)&&L8.id.type==="Identifier"&&L8.id.name===q8)){f8=i;break}E.declaration=f8,b=v8}if(E.declaration==null)return;if(!E.declaration||typeof E.declaration!=="object"||!("type"in E.declaration))return;let G,U,B=!1,M,C,T,D=!1,f,p,k=!1,o,A8,z8,D8;if(E.declaration.type==="FunctionDeclaration"){let H8=E.declaration;if(!H8.id?.name)return;b??=H8.id.name,o=H8.id.name,G="function",M=void 0,C="() => any",D=!0,B=!0,k=!1}else if(E.declaration.type==="VariableDeclaration"){let H8=E.declaration,q8=H8.declarations[0];if(!q8||typeof q8!=="object"||!("id"in q8))return;let{id:v8,init:f8}=q8;if(v8&&typeof v8==="object"&&"name"in v8){let L8=v8.name;o=L8,b??=L8,T=this.getExplicitPropType(L8)}else return;G=jE(H8.kind),k=G==="let"&&f8==null;let i=f8==null?{isFunction:!1}:i9(this,this.ctx,f8);({value:M,type:z8,isFunction:D,defaultValue:A8}=i),D8=i,C=T??z8}else return;let Z8=C9(this.ctx,this,E);if(Z8){if(Z8.type&&T===void 0)C=Z8.type;if(f=Z8.params,p=Z8.returnType,Z8.description)U=Z8.description}if(T===void 0&&Z8?.type===void 0&&D8?.resolvedType)C=D8.resolvedType;if(U===void 0&&D8?.resolvedDescription)U=D8.resolvedDescription;if(f===void 0&&D8?.resolvedParams)f=D8.resolvedParams;if(p===void 0&&D8?.resolvedReturnType)p=D8.resolvedReturnType;if(B&&C==="() => any"&&p)if(f&&f.length>0)C=`(${f.map((v8)=>{let f8=v8.optional?"?":"";return`${v8.name}${f8}: ${v8.type}`}).join(", ")}) => ${p}`;else C=`() => ${p}`;if(!U&&C&&this.ctx.typedefs.has(C))U=this.ctx.typedefs.get(C)?.description;let S8=this.resolveTypeSource({hasTypeScriptType:T!==void 0,hasJSDocType:Z8?.type!==void 0||Z8?.params!==void 0||Z8?.returnType!==void 0||D8?.resolvedType!==void 0,inferredType:z8,finalType:C});Y5(this,this.ctx,b,{name:b,...o!==void 0&&o!==b?{localName:o}:{},kind:G,description:U,binding:Z8?.binding,deprecated:Z8?.deprecated,tags:Z8?.tags,type:C,typeSource:S8,value:M,defaultValue:A8,params:f,returnType:p,isFunction:D,isFunctionDeclaration:B,isRequired:k,constant:G==="const",reactive:this.ctx.reactive_vars.has(b),source:A0(this.ctx,E)})}if(E&&typeof E==="object"&&"type"in E&&String(E.type)==="Comment"){let G=E?.data?.trim()??"";if(DE.test(G))this.ctx.componentComment=G.replace(DE,"").replace(he,""),this.ctx.componentCommentSource=A0(this.ctx,E)}if(E&&typeof E==="object"&&"type"in E&&String(E.type)==="Slot"){let b=E,G=b.attributes?.find((M)=>M.name==="name")?.value?.[0]?.data,U=(b.attributes||[]).filter((M)=>M.name!=="name").reduce((M,C)=>{let T={value:void 0,replace:!1},D=C.value;if(D===void 0)return M;if(D[0]){let f=D[0],{type:p,expression:k,raw:o,start:A8,end:z8}=f;if(p==="Text"&&o!==void 0)T.value=JSON.stringify(o);else if(p==="AttributeShorthand"&&k&&typeof k==="object"&&"name"in k)T.value=k.name,T.replace=!0;if(k&&typeof k==="object"&&"type"in k){if(k.type==="Literal"&&"value"in k){let D8=k.value;T.value=typeof D8==="string"?JSON.stringify(D8):String(D8)}else if(k.type==="MemberExpression")T.value=Lq(this.ctx,this,k);else if(k.type!=="Identifier"){if(A8!==void 0&&z8!==void 0){if(k.type==="ObjectExpression"||k.type==="TemplateLiteral")T.value=L0(this.ctx,A8+1,z8-1)}}}}if(C.name)M[C.name]=T;return M},{}),B=b.children?.map(({start:M,end:C})=>{if(M===void 0||C===void 0)return"";return L0(this.ctx,M,C)??""}).join("").trim();J5(this.ctx,{slot_name:G,slot_props:U,slot_fallback:B,source:A0(this.ctx,E)})}if(E&&typeof E==="object"&&"type"in E&&String(E.type)==="RenderTag"){let b=E,G=YE(this.ctx,b.expression);if(G){let U;if(G.arguments.length===0)U={};else if(G.arguments.length===1&&typeof G.arguments[0]==="object"&&G.arguments[0]&&"type"in G.arguments[0]&&G.arguments[0].type==="ObjectExpression")U=QE(this.ctx,this,G.arguments[0]);else if(G.arguments.length===1)Z9(this.ctx,"syntax-skipped",G.publicName,`{@render ${G.publicName}(...)} argument is not a plain object literal; the render call was not mapped to slot metadata.`,A0(this.ctx,E));let B=G.publicName==="children"?void 0:G.publicName,M=B===void 0?be:B;if(U!==void 0)J5(this.ctx,{slot_name:B,slot_props:U,source:A0(this.ctx,E)});if(U!==void 0||this.ctx.slots.has(M))this.ctx.snippetPropLocals.add(G.trackingName)}}if(E&&typeof E==="object"&&"type"in E&&String(E.type)==="EventHandler"){let b=E;if(b.expression==null&&b.name){if(u!=null&&typeof u==="object"&&"name"in u){let G=typeof u.name==="string"?u.name:void 0,U="type"in u?String(u.type):void 0;if(G&&U){let B=U==="InlineComponent"?{type:"InlineComponent",name:G}:{type:"Element",name:G};this.ctx.forwardedEvents.set(b.name,B);let M=this.ctx.events.get(b.name),C=this.ctx.eventDescriptions.get(b.name),T=M?.deprecated;if(!M)this.ctx.events.set(b.name,{type:"forwarded",name:b.name,element:B,description:C,deprecated:T,source:A0(this.ctx,E)});else if(M.type==="forwarded"&&C&&!M.description)this.ctx.events.set(b.name,{...M,description:C,deprecated:M.deprecated??T,source:M.source||A0(this.ctx,E)})}}}}if(u&&typeof u==="object"&&"type"in u&&(String(u.type)==="Element"||String(u.type)==="InlineComponent")&&E&&typeof E==="object"&&"type"in E&&String(E.type)==="Binding"){let b=E;if(b.expression?.name){let G=wq(this.ctx,b.expression.name);if(G)this.ctx.reactive_vars.add(G)}if(String(u.type)==="Element"&&b.name==="this"&&b.expression?.name&&"name"in u&&typeof u.name==="string"){let G=wq(this.ctx,b.expression.name);if(!G)return;let U=u.name;if(this.ctx.bindings.has(G)){let B=this.ctx.bindings.get(G);if(B&&!B.elements.includes(U))this.ctx.bindings.set(G,{...B,elements:[...B.elements,U]})}else this.ctx.bindings.set(G,{elements:[U]})}}},leave:(E)=>{if(this.ctx.scopeDeclarations.has(E))this.ctx.activeScopes.pop();ME($,E)}}),Y!==void 0){for(let E of X)if(E.name===Y){let u=E.arguments[0],S=u&&typeof u==="object"&&"value"in u?u.value:void 0,s=E.arguments[1],b=s&&typeof s==="object"&&"value"in s?s.value:void 0;if(S!=null)H5(this.ctx,{name:String(S),detail:b==null?"":WQ(b),has_argument:Boolean(s),source:E.source})}}let R=new Set(J);if(Y!==void 0){for(let E of X)if(E.name===Y){let u=E.arguments[0],S=u&&typeof u==="object"&&"value"in u?u.value:void 0;if(S!=null)R.add(String(S))}}this.ctx.forwardedEvents.forEach((E,u)=>{let S=this.ctx.events.get(u);if(S&&S.type==="dispatched"&&!R.has(u)){let s=this.ctx.eventDescriptions.get(u),b={type:"forwarded",name:u,element:E,description:s,deprecated:S.deprecated,tags:S.tags,source:S.source};if(S.detail!==void 0&&S.detail!=="undefined")b.detail=S.detail;this.ctx.events.set(u,b)}}),AE(this.ctx,R);let z=this.ctx.syntaxMode==="runes"?new Set(Array.from(this.ctx.snippetPropLocals,(E)=>this.resolvePublicPropName(E))):new Set,O=X0.mapToArray(this.ctx.props).filter((E)=>!z.has(E.name)).map((E)=>{if(this.ctx.bindings.has(E.name)){let u=this.ctx.bindings.get(E.name)?.elements.sort().map((S)=>yC(S)).join(" | ");return{...E,type:`null | ${u}`,typeSource:"inferred",reactive:E.reactive||this.ctx.reactive_vars.has(E.name)}}return{...E,reactive:E.reactive||this.ctx.reactive_vars.has(E.name)}});this.ctx.activeScopes.length=0;let P=X0.mapToArray(this.ctx.slots).map((E)=>{if(!E.slot_props)return E;if(typeof E.slot_props==="string")return _e.test(E.slot_props)?{...E,slot_props:"Record<string, never>"}:E;let u=E.slot_props,S=[];for(let b of Object.keys(u)){if(u[b].replace&&u[b].value!==void 0)u[b].value=this.getPropTypeByLocalOrPublic(u[b].value);if(u[b].value===void 0)u[b].value="any";S.push(`${b}: ${u[b].value}`)}let s=S.length===0?"Record<string, never>":S.length===1?`{ ${S[0]} }`:`{
|
|
125
|
-
${S.join(`;
|
|
126
|
-
`)};
|
|
127
|
-
}`;return{...E,slot_props:s}}).sort((E,u)=>{let S=E.name??"",s=u.name??"";if(S<s)return-1;if(S>s)return 1;return 0});if(this.ctx.deferredSlotBlockGenerics.length>0){let E=[...O.map((u)=>u.type??""),...P.map((u)=>u.slot_props??"")].join(`
|
|
128
|
-
`);for(let{name:u,constraint:S}of this.ctx.deferredSlotBlockGenerics){let s=u.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");if(!new RegExp(`\\b${s}\\b`).test(E))continue;this.accumulateGeneric(u,S)}}if(this.ctx.scriptGenericsAttribute){if(this.ctx.generics)Z9(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=qE(this.ctx.scriptGenericsAttribute.value)}let w=X0.mapToArray(this.ctx.moduleExports),v=X0.mapToArray(this.ctx.events).map((E)=>{switch(E.type){case"forwarded":return{...E,element:E.element.name};case"dispatched":return E;default:return E}}).sort((E,u)=>{let S=E.name.localeCompare(u.name);if(S!==0)return S;let s=E.type.localeCompare(u.type);if(s!==0)return s;if(E.type==="forwarded"&&u.type==="forwarded"){let b=E.element.localeCompare(u.element);if(b!==0)return b}return(E.detail??"").localeCompare(u.detail??"")}),F=X0.mapToArray(this.ctx.typedefs),h=X0.mapToArray(this.ctx.contexts);for(let E of O)if(E.typeSource==="unknown")Z9(this.ctx,"prop-unknown-type",E.name,`Prop "${E.name}" type could not be inferred; falling back to "${E.type??"any"}".`,E.source);for(let E of this.ctx.jsDocEventNames){if(R.has(E))continue;if(this.ctx.forwardedEvents.has(E))continue;if(this.ctx.props.has(`on${E}`))continue;Z9(this.ctx,"event-no-source",E,`@event "${E}" has no matching dispatch or callback prop.`,this.ctx.jsDocEventSources.get(E))}let m={source:Pq(this.ctx,0,this.ctx.source?.length),syntaxMode:this.ctx.syntaxMode,...this.ctx.scriptLanguage?{scriptLanguage:this.ctx.scriptLanguage}:{},props:O,moduleExports:w,slots:P,events:v,typedefs:F,generics:this.ctx.generics,rest_props:this.ctx.rest_props,extends:this.ctx.extends,componentComment:this.ctx.componentComment,componentCommentSource:this.ctx.componentCommentSource,contexts:h,customElementTag:this.ctx.customElementTag,diagnostics:this.ctx.diagnosticRecords.slice()},_=tC(this.ctx);if(_)m[G5]=_;return m}}import{readFile as ye}from"node:fs/promises";import ge from"node:path";var EE="sveld",Cq="0.35.1";var FE={name:EE,version:Cq,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"},"./browser":{types:"./lib/browser.d.ts",import:"./lib/browser.js",default:"./lib/browser.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","bench:cache":"bun scripts/bench.ts --cache",typecheck:"tsc --noEmit"},devDependencies:{"@biomejs/biome":"2.5.3","@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:"^7.0.2"},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 Eq=1;function B1(q,Z={}){let Q=Array.from(q,([,H])=>{let{diagnostics:J,...X}=H;return X}).sort((H,J)=>H.moduleName.localeCompare(J.moduleName)),Y={schemaVersion:Eq,generator:{name:EE,version:Cq,svelteVersion:N6},total:Q.length,components:Q};if(Z.entryExports&&Z.entryExports.length>0)Y.totalExports=Z.entryExports.length,Y.exports=Z.entryExports;return Y}var TE={none:0,patch:1,minor:2,major:3};function xe(q,Z){return TE[Z]>TE[q]?Z:q}function le(q){return q.reduce((Z,Q)=>xe(Z,Q.bump),"none")}function fE(q){let Z=[],Q=0,Y="",H=null;for(let J=0;J<q.length;J++){let X=q[J];if(H){if(Y+=X,X==="\\")J++,Y+=q[J]??"";else if(X===H)H=null;continue}if(X==='"'||X==="'"||X==="`"){H=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((J)=>J.length>0))}function OQ(q,Z){if(q===Z)return"none";if(q===void 0||Z===void 0)return"major";let Q=fE(q),Y=fE(Z),H=[...Y].some((X)=>!Q.has(X)),J=[...Q].some((X)=>!Y.has(X));if(!H&&!J)return"none";if(H&&!J)return"minor";if(J&&!H)return"major";return"major"}function KE(q,Z,Q,Y){let H=Z==="prop"?"prop":"export",J=[],X=new Map(Q.map(($)=>[$.name,$])),W=new Map(Y.map(($)=>[$.name,$]));for(let[$,R]of W){if(X.has($))continue;J.push({component:q,kind:Z,name:$,bump:R.isRequired?"major":"minor",message:`${H} "${$}" added${R.isRequired?" (required)":""}`})}for(let[$]of X){if(W.has($))continue;J.push({component:q,kind:Z,name:$,bump:"major",message:`${H} "${$}" removed`})}for(let[$,R]of X){let z=W.get($);if(!z)continue;if(R.isRequired!==z.isRequired)J.push({component:q,kind:Z,name:$,bump:z.isRequired?"major":"minor",message:`${H} "${$}" became ${z.isRequired?"required":"optional"}`});let O=OQ(R.type,z.type);if(O!=="none")J.push({component:q,kind:Z,name:$,bump:O,message:`${H} "${$}" type changed from \`${R.type??"unknown"}\` to \`${z.type??"unknown"}\``})}return J}function me(q,Z,Q){let Y=[],H=new Map(Z.map((X)=>[X.name,X])),J=new Map(Q.map((X)=>[X.name,X]));for(let[X]of J){if(H.has(X))continue;Y.push({component:q,kind:"event",name:X,bump:"minor",message:`event "${X}" added`})}for(let[X]of H){if(J.has(X))continue;Y.push({component:q,kind:"event",name:X,bump:"major",message:`event "${X}" removed`})}for(let[X,W]of H){let $=J.get(X);if(!$)continue;if(W.type!==$.type){Y.push({component:q,kind:"event",name:X,bump:"major",message:`event "${X}" changed from ${W.type} to ${$.type}`});continue}let R=W.type==="dispatched"?W.detail:void 0,z=$.type==="dispatched"?$.detail:void 0,O=OQ(R,z);if(O!=="none")Y.push({component:q,kind:"event",name:X,bump:O,message:`event "${X}" detail changed from \`${R??"unknown"}\` to \`${z??"unknown"}\``})}return Y}function vE(q){return q.name??"default"}function pe(q,Z,Q){let Y=[],H=new Map(Z.map((X)=>[vE(X),X])),J=new Map(Q.map((X)=>[vE(X),X]));for(let[X]of J){if(H.has(X))continue;Y.push({component:q,kind:"slot",name:X,bump:"minor",message:`slot "${X}" added`})}for(let[X]of H){if(J.has(X))continue;Y.push({component:q,kind:"slot",name:X,bump:"major",message:`slot "${X}" removed`})}for(let[X,W]of H){let $=J.get(X);if(!$)continue;let R=OQ(W.slot_props,$.slot_props);if(R!=="none")Y.push({component:q,kind:"slot",name:X,bump:R,message:`slot "${X}" props changed from \`${W.slot_props??"none"}\` to \`${$.slot_props??"none"}\``})}return Y}var ce=new Set(["description","source","componentCommentSource","tags"]);function Fq(q){if(Array.isArray(q))return q.map(Fq);if(q!==null&&typeof q==="object"){let Z={};for(let[Q,Y]of Object.entries(q)){if(ce.has(Q))continue;Z[Q]=Fq(Y)}return Z}return q}var re=["generics","rest_props","extends","contexts","typedefs"];function ie(q,Z,Q){let Y=[];for(let H of re){let J=JSON.stringify(Fq(Z[H])),X=JSON.stringify(Fq(Q[H]));if(J!==X)Y.push({component:q,kind:"shape",name:H,bump:"major",message:`"${H}" changed (breaking)`})}return Y}function de(q,Z){let Q=Z.moduleName;return[...KE(Q,"prop",q.props,Z.props),...KE(Q,"moduleExport",q.moduleExports,Z.moduleExports),...me(Q,q.events,Z.events),...pe(Q,q.slots,Z.slots),...ie(Q,q,Z)]}function kE(q,Z){let Q=[],Y=new Map(q.components.map((J)=>[J.moduleName,J])),H=new Map(Z.components.map((J)=>[J.moduleName,J]));for(let[J]of H){if(Y.has(J))continue;Q.push({component:J,kind:"component",bump:"minor",message:`component "${J}" added`})}for(let[J]of Y){if(H.has(J))continue;Q.push({component:J,kind:"component",bump:"major",message:`component "${J}" removed`})}for(let[J,X]of Y){let W=H.get(J);if(!W)continue;Q.push(...de(X,W))}return Q}async function se(q){let Z;try{Z=await ye(ge.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 Tq(q){if(typeof q.check==="string")return q.check;return q.jsonOptions?.outFile??"COMPONENT_API.json"}async function W5(q,Z,Q={}){let Y=await se(Z);if(Y===null)return{snapshotExists:!1,snapshotFile:Z,changes:[],bump:"none"};if(Y.schemaVersion!==Eq)return{snapshotExists:!0,snapshotFile:Z,changes:[{component:"*",kind:"shape",bump:"none",message:`snapshot schemaVersion ${Y.schemaVersion} does not match the current schemaVersion ${Eq}; skipping diff`}],bump:"none"};let H=B1(q,{entryExports:Q.entryExports}),J=kE(Y,H);return{snapshotExists:!0,snapshotFile:Z,changes:J,bump:le(J)}}var ae={major:"BREAKING",minor:"additive",patch:"patch",none:"no change"};function wQ(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 H of q.changes){let J=Y.get(H.component)??[];J.push(H),Y.set(H.component,J)}for(let[H,J]of Y){Z.push(""),Z.push(` ${H}`);for(let X of J)Z.push(` [${ae[X.bump]}] ${X.message}`)}return Z.join(`
|
|
129
|
-
`)}import{existsSync as u38}from"node:fs";import{join as b38}from"node:path";function $5(q){return q}function Q9(q){if(q==="")return q;return q.startsWith(".")?q:`./${q}`}var oe={"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"},ne=["prop-unknown-type","context-any-type","event-no-source","example-compile-error","syntax-skipped"];function fq(q){let Z=new Set,Q=[];for(let Y of q){let H=`${Y.component}:${Y.kind}:${Y.name}`;if(Z.has(H))continue;Z.add(H),Q.push(Y)}return Q}function Kq(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 ne){let H=q.filter((X)=>X.kind===Y);if(H.length===0)continue;Z.push(""),Z.push(`${oe[Y]} (${H.length}):`);let J=new Map;for(let X of H){let W=J.get(X.component)??[];W.push(X),J.set(X.component,W)}for(let[X,W]of J){Z.push(` ${X}`);for(let $ of W){let R=$.source?` (${X}:${$.source.start.line}:${$.source.start.column})`:"";Z.push(` - ${$.message}${R}`)}}}return Z.join(`
|
|
130
|
-
`)}import{existsSync as uE,readFileSync as te}from"node:fs";import{join as bE}from"node:path";function _6(q){return typeof q==="object"&&q!==null}function NE(q){if(!_6(q))return{};let Z=q.svelte;return typeof Z==="string"?{svelte:Z}:{}}function SE(q){if(!_6(q))return{};let Z={};if(typeof q.extends==="string")Z.extends=q.extends;if(_6(q.compilerOptions)){let Q={};if(typeof q.compilerOptions.baseUrl==="string")Q.baseUrl=q.compilerOptions.baseUrl;if(_6(q.compilerOptions.paths)){let Y={};for(let[H,J]of Object.entries(q.compilerOptions.paths))if(Array.isArray(J)&&J.every((X)=>typeof X==="string"))Y[H]=J;if(Object.keys(Y).length>0)Q.paths=Y}if(Object.keys(Q).length>0)Z.compilerOptions=Q}return Z}function y6(q){if(q){let Q=bE(process.cwd(),q);if(uE(Q))return $5(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=bE(process.cwd(),"package.json");if(!uE(Z))return console.error("Could not locate a package.json file."),console.error(`Specify an entry point with --entry (or the "entry" option) instead.
|
|
131
|
-
`),null;try{let Q=NE(JSON.parse(te(Z,"utf-8")));if(Q.svelte?.trim())return $5(Q.svelte);return console.error(`Could not determine an entry point.
|
|
132
|
-
`),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).
|
|
133
|
-
`),null}catch(Q){throw console.error("Error reading package.json:",Q),Q}}import{existsSync as ee}from"node:fs";import{join as q88}from"node:path";import{pathToFileURL as Z88}from"node:url";var Q88=["sveld.config.js","sveld.config.mjs","sveld.config.ts"];function Y88(q){return q}function H88(q=process.cwd()){for(let Z of Q88){let Q=q88(q,Z);if(ee(Q))return Q}return null}async function J88(q){let Z;try{Z=await import(`${Z88(q).href}?t=${Date.now()}`)}catch(Y){let H=Y instanceof Error?Y.message:String(Y);throw Error(`sveld: failed to load config file "${q}".
|
|
134
|
-
${H}`)}let Q=Z.default;if(!_6(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 vq(q=process.cwd()){let Z=H88(q);if(Z===null)return{};return J88(Z)}function kq(...q){return Object.assign({},...q.filter(Boolean))}Y9();import{dirname as k38}from"node:path";import{lstatSync as aS,readFileSync as J48}from"node:fs";import{readFile as X48}from"node:fs/promises";import{dirname as V48,isAbsolute as G48,parse as RH,relative as W48,resolve as Y7}from"node:path";import{readdir as l08,readdirSync as m08,realpath as p08,realpathSync as c08,stat as r08,statSync as i08}from"fs";import{isAbsolute as d08,posix as a9,resolve as s08}from"path";import{fileURLToPath as a08}from"url";import{createRequire as X88}from"module";import{basename as V88,dirname as IQ,normalize as G88,relative as W88,resolve as $88,sep as gE}from"path";import*as U88 from"fs";var _E=X88(import.meta.url);function R88(q){let Z=G88(q);if(Z.length>1&&Z[Z.length-1]===gE)Z=Z.substring(0,Z.length-1);return Z}var z88=/[\\/]/g;function xE(q,Z){return q.replace(z88,Z)}var B88=/^[a-z]:[\\/]$/i;function M88(q){return q==="/"||B88.test(q)}function AQ(q,Z){let{resolvePaths:Q,normalizePath:Y,pathSeparator:H}=Z,J=process.platform==="win32"&&q.includes("/")||q.startsWith(".");if(Q)q=$88(q);if(Y||J)q=R88(q);if(q===".")return"";let X=q[q.length-1]!==H;return xE(X?q+H:q,H)}function lE(q,Z){return Z+q}function L88(q,Z){return function(Q,Y){if(Y.startsWith(q))return Y.slice(q.length)+Q;else return xE(W88(q,Y),Z.pathSeparator)+Z.pathSeparator+Q}}function P88(q){return q}function O88(q,Z,Q){return Z+q+Q}function w88(q,Z){let{relativePaths:Q,includeBasePath:Y}=Z;return Q&&q?L88(q,Z):Y?lE:P88}function A88(q){return function(Z,Q){Q.push(Z.substring(q.length)||".")}}function I88(q){return function(Z,Q,Y){let H=Z.substring(q.length)||".";if(Y.every((J)=>J(H,!0)))Q.push(H)}}var j88=(q,Z)=>{Z.push(q||".")},D88=(q,Z,Q)=>{let Y=q||".";if(Q.every((H)=>H(Y,!0)))Z.push(Y)},C88=()=>{};function E88(q,Z){let{includeDirs:Q,filters:Y,relativePaths:H}=Z;if(!Q)return C88;if(H)return Y&&Y.length?I88(q):A88(q);return Y&&Y.length?D88:j88}var F88=(q,Z,Q,Y)=>{if(Y.every((H)=>H(q,!1)))Q.files++},T88=(q,Z,Q,Y)=>{if(Y.every((H)=>H(q,!1)))Z.push(q)},f88=(q,Z,Q,Y)=>{Q.files++},K88=(q,Z)=>{Z.push(q)},v88=()=>{};function k88(q){let{excludeFiles:Z,filters:Q,onlyCounts:Y}=q;if(Z)return v88;if(Q&&Q.length)return Y?F88:T88;else if(Y)return f88;else return K88}var N88=(q)=>{return q},S88=()=>{return[""].slice(0,0)};function u88(q){return q.group?S88:N88}var b88=(q,Z,Q)=>{q.push({directory:Z,files:Q,dir:Z})},h88=()=>{};function _88(q){return q.group?b88:h88}var y88=function(q,Z,Q){let{queue:Y,fs:H,options:{suppressErrors:J}}=Z;Y.enqueue(),H.realpath(q,(X,W)=>{if(X)return Y.dequeue(J?null:X,Z);H.stat(W,($,R)=>{if($)return Y.dequeue(J?null:$,Z);if(R.isDirectory()&&mE(q,W,Z))return Y.dequeue(null,Z);Q(R,W),Y.dequeue(null,Z)})})},g88=function(q,Z,Q){let{queue:Y,fs:H,options:{suppressErrors:J}}=Z;Y.enqueue();try{let X=H.realpathSync(q),W=H.statSync(X);if(W.isDirectory()&&mE(q,X,Z))return;Q(W,X)}catch(X){if(!J)throw X}};function x88(q,Z){if(!q.resolveSymlinks||q.excludeSymlinks)return null;return Z?g88:y88}function mE(q,Z,Q){if(Q.options.useRealPaths)return l88(Z,Q);let Y=IQ(q),H=1;while(Y!==Q.root&&H<2){let J=Q.symlinks.get(Y);if(!!J&&(J===Z||J.startsWith(Z)||Z.startsWith(J)))H++;else Y=IQ(Y)}return Q.symlinks.set(q,Z),H>1}function l88(q,Z){return Z.visited.includes(q+Z.options.pathSeparator)}var m88=(q)=>{return q.counts},p88=(q)=>{return q.groups},c88=(q)=>{return q.paths},r88=(q)=>{return q.paths.slice(0,q.options.maxFiles)},i88=(q,Z,Q)=>{return Nq(Z,Q,q.counts,q.options.suppressErrors),null},d88=(q,Z,Q)=>{return Nq(Z,Q,q.paths,q.options.suppressErrors),null},s88=(q,Z,Q)=>{return Nq(Z,Q,q.paths.slice(0,q.options.maxFiles),q.options.suppressErrors),null},a88=(q,Z,Q)=>{return Nq(Z,Q,q.groups,q.options.suppressErrors),null};function Nq(q,Z,Q,Y){if(q&&!Y)Z(q,Q);else Z(null,Q)}function o88(q,Z){let{onlyCounts:Q,group:Y,maxFiles:H}=q;if(Q)return Z?m88:i88;else if(Y)return Z?p88:a88;else if(H)return Z?r88:s88;else return Z?c88:d88}var pE={withFileTypes:!0},n88=(q,Z,Q,Y,H)=>{if(q.queue.enqueue(),Y<0)return q.queue.dequeue(null,q);let{fs:J}=q;q.visited.push(Z),q.counts.directories++,J.readdir(Z||".",pE,(X,W=[])=>{H(W,Q,Y),q.queue.dequeue(q.options.suppressErrors?null:X,q)})},t88=(q,Z,Q,Y,H)=>{let{fs:J}=q;if(Y<0)return;q.visited.push(Z),q.counts.directories++;let X=[];try{X=J.readdirSync(Z||".",pE)}catch(W){if(!q.options.suppressErrors)throw W}H(X,Q,Y)};function e88(q){return q?t88:n88}var q08=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}}},Z08=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}},Q08=class{aborted=!1;abort(){this.aborted=!0}},cE=class{root;isSynchronous;state;joinPath;pushDirectory;pushFile;getArray;groupFiles;resolveSymlink;walkDirectory;callbackInvoker;constructor(q,Z,Q){this.isSynchronous=!Q,this.callbackInvoker=o88(Z,this.isSynchronous),this.root=AQ(q,Z),this.state={root:M88(this.root)?this.root:this.root.slice(0,-1),paths:[""].slice(0,0),groups:[],counts:new Z08,options:Z,queue:new q08((Y,H)=>this.callbackInvoker(H,Y,Q)),symlinks:new Map,visited:[""].slice(0,0),controller:new Q08,fs:Z.fs||U88},this.joinPath=w88(this.root,Z),this.pushDirectory=E88(this.root,Z),this.pushFile=k88(Z),this.getArray=u88(Z),this.groupFiles=_88(Z),this.resolveSymlink=x88(Z,this.isSynchronous),this.walkDirectory=e88(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:H,resolveSymlinks:J,excludeSymlinks:X,exclude:W,maxFiles:$,signal:R,useRealPaths:z,pathSeparator:O},controller:P}=this.state;if(P.aborted||R&&R.aborted||$&&Y.length>$)return;let w=this.getArray(this.state.paths);for(let v=0;v<q.length;++v){let F=q[v];if(F.isFile()||F.isSymbolicLink()&&!J&&!X){let h=this.joinPath(F.name,Z);this.pushFile(h,w,this.state.counts,H)}else if(F.isDirectory()){let h=O88(F.name,Z,this.state.options.pathSeparator);if(W&&W(F.name,h))continue;this.pushDirectory(h,Y,H),this.walkDirectory(this.state,h,h,Q-1,this.walk)}else if(this.resolveSymlink&&F.isSymbolicLink()){let h=lE(F.name,Z);this.resolveSymlink(h,this.state,(m,_)=>{if(m.isDirectory()){if(_=AQ(_,this.state.options),W&&W(F.name,z?_:h+O))return;this.walkDirectory(this.state,_,z?_:h+O,Q-1,this.walk)}else{_=z?_:h;let E=V88(_),u=AQ(IQ(_),this.state.options);_=this.joinPath(E,u),this.pushFile(_,w,this.state.counts,H)}})}}this.groupFiles(this.state.groups,Z,w)}};function Y08(q,Z){return new Promise((Q,Y)=>{rE(q,Z,(H,J)=>{if(H)return Y(H);Q(J)})})}function rE(q,Z,Q){new cE(q,Z,Q).start()}function H08(q,Z){return new cE(q,Z).start()}var yE=class{constructor(q,Z){this.root=q,this.options=Z}withPromise(){return Y08(this.root,this.options)}withCallback(q){rE(this.root,this.options,q)}sync(){return H08(this.root,this.options)}},iE=null;try{_E.resolve("picomatch"),iE=_E("picomatch")}catch{}var dE=class{globCache={};options={maxDepth:1/0,suppressErrors:!0,pathSeparator:gE,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 yE(q||".",this.options)}withGlobFunction(q){return this.globFunction=q,this}crawlWithOptions(q,Z){return this.options={...this.options,...Z},new yE(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||iE;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((H)=>Y(H)),this}};var x6=R6(PF(),1),o08=Array.isArray,IF=/\\/g,n08=/^[A-Za-z]:$/,jF=process.platform==="win32",t08=/^(\/?\.\.)+$/;function e08(q,Z={}){let Q=q.length,Y=Array(Q),H=Array(Q),J,X;for(J=0;J<Q;J++){let W=DF(q[J]);Y[J]=W;let $=W.length,R=Array($);for(X=0;X<$;X++)R[X]=x6.default(W[X],Z);H[J]=R}return(W)=>{let $=W.split("/");if($[0]===".."&&t08.test(W))return!0;for(J=0;J<Q;J++){let R=Y[J],z=H[J],O=$.length,P=Math.min(O,R.length);X=0;while(X<P){let w=R[X];if(w.includes("/"))return!0;if(!z[X]($[X]))break;if(!Z.noglobstar&&w==="**")return!0;X++}if(X===O)return!0}return!1}}var q18=/^[A-Z]:\/$/i,Z18=jF?(q)=>q18.test(q):(q)=>q==="/";function OF(q,Z,Q){if(q===Z||Z.startsWith(`${q}/`)){if(Q){let H=q.length+ +!Z18(q);return(J,X)=>J.slice(H,X?-1:void 0)||"."}let Y=Z.slice(q.length+1);if(Y)return(H,J)=>{if(H===".")return Y;let X=`${Y}/${H}`;return J?X.slice(0,-1):X};return(H,J)=>J&&H!=="."?H.slice(0,-1):H}if(Q)return(Y)=>a9.relative(q,Y)||".";return(Y)=>a9.relative(q,`${Z}/${Y}`)||"."}function Q18(q,Z){if(Z.startsWith(`${q}/`)){let Q=Z.slice(q.length+1);return(Y)=>`${Q}/${Y}`}return(Q)=>{let Y=a9.relative(q,`${Z}/${Q}`);return Q[Q.length-1]==="/"&&Y!==""?`${Y}/`:Y||"."}}function wF(q){return q.replace(n08,(Z)=>`${Z}/`)}var Y18={parts:!0};function DF(q){var Z;let Q=x6.default.scan(q,Y18);return((Z=Q.parts)===null||Z===void 0?void 0:Z.length)?Q.parts:[q]}var H18=/(?<!\\)([()[\]{}*?|]|^!|[!+@](?=\()|\\(?![()[\]{}!*+?@|]))/g,J18=/(?<!\\)([()[\]{}]|^!|[!+@](?=\())/g,X18=(q)=>q.replace(H18,"\\$&"),V18=(q)=>q.replace(J18,"\\$&"),G18=jF?V18:X18;function W18(q,Z){if((Z===null||Z===void 0?void 0:Z.caseSensitiveMatch)===!1)return!0;let Q=x6.default.scan(q);return Q.isGlob||Q.negated}function M5(...q){console.log(`[tinyglobby ${new Date().toLocaleTimeString("es")}]`,...q)}function CF(q){return typeof q==="string"?[q]:q!==null&&q!==void 0?q:[]}var $18=/^(\/?\.\.)+/,U18=/\\(?=[()[\]{}!*+?@|])/g;function vQ(q,Z,Q,Y){var H;let J=Z.cwd,X=q;if(q[q.length-1]==="/")X=q.slice(0,-1);if(X[X.length-1]!=="*"&&Z.expandDirectories)X+="/**";let W=G18(J);X=d08(X.replace(U18,""))?a9.relative(W,X):a9.normalize(X);let $=(H=$18.exec(X))===null||H===void 0?void 0:H[0],R=DF(X);if($){let O=($.length+1)/3,P=0,w=W.split("/");while(P<O&&R[P+O]===w[w.length+P-O])X=X.slice(0,(O-P-1)*3)+X.slice((O-P)*3+R[P+O].length+1)||".",P++;let v=a9.join(J,$.slice(P*3));if(v[0]!=="."&&Q.root.length>v.length)Q.root=wF(v),Q.depthOffset=-O+P}if(!Y&&Q.depthOffset>=0){var z;(z=Q.commonPath)!==null&&z!==void 0||(Q.commonPath=R);let O=[],P=Math.min(Q.commonPath.length,R.length);for(let w=0;w<P;w++){let v=R[w];if(v==="**"&&!R[w+1]){O.pop();break}if(w===R.length-1||v!==Q.commonPath[w]||W18(v))break;O.push(v)}Q.depthOffset=O.length,Q.commonPath=O,Q.root=wF(O.length>0?a9.join(J,...O):J)}return X}function R18(q,Z,Q){let Y=[],H=[];for(let J of q.ignore){if(!J)continue;if(J[0]!=="!"||J[1]==="(")H.push(vQ(J,q,Q,!0))}for(let J of Z){if(!J)continue;if(J[0]!=="!"||J[1]==="(")Y.push(vQ(J,q,Q,!1));else if(J[1]!=="!"||J[2]==="(")H.push(vQ(J.slice(1),q,Q,!0))}return{match:Y,ignore:H}}function z18(q,Z){let Q=q.cwd,Y={root:Q,depthOffset:0},H=R18(q,Z,Y);if(q.debug)M5("internal processing patterns:",H);let{absolute:J,caseSensitiveMatch:X,debug:W,dot:$,followSymbolicLinks:R,onlyDirectories:z}=q,O=Y.root.replace(IF,""),P={dot:$,nobrace:q.braceExpansion===!1,nocase:!X,noextglob:q.extglob===!1,noglobstar:q.globstar===!1,posix:!0},w=x6.default(H.match,P),v=x6.default(H.ignore,P),F=e08(H.match,P),h=OF(Q,O,J),m=J?h:OF(Q,O,!0),_=(S,s)=>{let b=m(s,!0);return b!=="."&&!F(b)||v(b)},E;if(q.deep!==void 0)E=Math.round(q.deep-Y.depthOffset);let u=new dE({filters:[W?(S,s)=>{let b=h(S,s),G=w(b)&&!v(b);if(G)M5(`matched ${b}`);return G}:(S,s)=>{let b=h(S,s);return w(b)&&!v(b)}],exclude:W?(S,s)=>{let b=_(S,s);return M5(`${b?"skipped":"crawling"} ${s}`),b}:_,fs:q.fs,pathSeparator:"/",relativePaths:!J,resolvePaths:J,includeBasePath:J,resolveSymlinks:R,excludeSymlinks:!R,excludeFiles:z,includeDirs:z||!q.onlyFiles,maxDepth:E,signal:q.signal}).crawl(O);if(q.debug)M5("internal properties:",{...Y,root:O});return[u,Q!==O&&!J&&Q18(Q,O)]}function B18(q,Z){if(Z)for(let Q=q.length-1;Q>=0;Q--)q[Q]=Z(q[Q]);return q}var AF={caseSensitiveMatch:!0,debug:!!process.env.TINYGLOBBY_DEBUG,expandDirectories:!0,followSymbolicLinks:!0,onlyFiles:!0};function M18(q){let Z=Object.assign({},q);for(let Q in AF)if(Z[Q]===void 0)Object.assign(Z,{[Q]:AF[Q]});if(Z.cwd=(Z.cwd instanceof URL?a08(Z.cwd):s08(Z.cwd||process.cwd())).replace(IF,"/"),Z.ignore=CF(Z.ignore),Z.fs&&(Z.fs={readdir:Z.fs.readdir||l08,readdirSync:Z.fs.readdirSync||m08,realpath:Z.fs.realpath||p08,realpathSync:Z.fs.realpathSync||c08,stat:Z.fs.stat||r08,statSync:Z.fs.statSync||i08}),Z.debug)M5("globbing with options:",Z);return Z}function L18(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=o08(q)||typeof q==="string",H=CF((Q=Y?q:q.patterns)!==null&&Q!==void 0?Q:"**/*"),J=M18(Y?Z:q);return H.length>0?z18(J,H):[]}function EF(q,Z){let[Q,Y]=L18(q,Z);return Q?B18(Q.sync(),Y):[]}import{dirname as P18,resolve as O18}from"node:path";var w18=/\.svelte$/,A18=/^(['"])(.*)\1$/;function I18(q,Z){let Q=q.extends?.import;if(Q===void 0)return null;let Y=Q.replace(A18,"$2");if(!w18.test(Y))return null;return O18(P18(Z),Y)}function L5(q,Z){let Q=new Map;for(let Y of q.values()){let H=Z(Y.filePath),J=I18(Y,H);if(J===null)continue;let X=Q.get(J);if(X===void 0)X=new Set,Q.set(J,X);X.add(H)}return Q}function uq(q,Z){let Q=new Set,Y=[];for(let H of q)if(!Q.has(H))Q.add(H),Y.push(H);while(Y.length>0){let H=Y.shift(),J=Z.get(H);if(J===void 0)continue;for(let X of J)if(!Q.has(X))Q.add(X),Y.push(X)}return Q}var j18=/^```([\w-]*)\r?\n([\s\S]*?)\r?\n?```$/,D18=new Set(["","js","jsx","ts","tsx","javascript","typescript"]);function C18(q){let Z=q.trim();if(Z==="")return null;let Q=Z.match(j18);if(Q){let Y=Q[1].toLowerCase();if(!D18.has(Y))return null;let H=Q[2].trim();return H===""?null:H}if(Z.startsWith("<"))return null;return Z}function FF(q){if(!q.isFunction)return"any";return`(${(q.params??[]).map((Q)=>`${Q.name}${Q.optional?"?":""}: any`).join(", ")}) => any`}function bq(q,Z,Q,Y,H){let J=(q??[]).filter((W)=>W.name==="example"),X=[];return J.forEach((W,$)=>{let R=C18(W.body);if(R===null)return;let z=J.length>1;X.push({id:z?`${Z}#${$}`:Z,name:z?`${Q} (example ${$+1})`:Q,type:Y,code:R,...H?{source:H}:{}})}),X}function TF(q){return q.name??"default"}function fF(q){let Z=[];for(let Q of q.props)Z.push(...bq(Q.tags,`prop:${Q.name}`,Q.name,FF(Q),Q.source));for(let Q of q.moduleExports)Z.push(...bq(Q.tags,`export:${Q.name}`,Q.name,FF(Q),Q.source));for(let Q of q.slots)Z.push(...bq(Q.tags,`slot:${TF(Q)}`,TF(Q),"any",Q.source));for(let Q of q.events)Z.push(...bq(Q.tags,`event:${Q.name}`,Q.name,"any",Q.source));return Z}import{createHash as E18}from"node:crypto";import{mkdirSync as F18,readFileSync as T18,writeFileSync as f18}from"node:fs";import{dirname as K18,isAbsolute as v18,join as k18,resolve as KF}from"node:path";var kQ=1,N18=k18("node_modules",".cache","sveld","parse-cache.json");function NQ(){return`${Cq}+svelte@${N6}`}function kF(q,Z){if(typeof Z==="string")return v18(Z)?Z:KF(q,Z);return KF(q,N18)}function NF(q){return E18("sha256").update(q).digest("hex")}function vF(){return{formatVersion:kQ,toolchainVersion:NQ(),entries:{}}}function S18(q){try{let Z=T18(q,"utf-8"),Q=JSON.parse(Z);if(Q.formatVersion!==kQ||Q.toolchainVersion!==NQ())return vF();return Q}catch{return vF()}}class SQ{cacheFilePath;file;next=new Map;blocked=new Set;constructor(q){this.cacheFilePath=q,this.file=S18(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[G5]=Q.typeScriptMetadata;return Q.parsed}set(q,Z,Q){this.next.set(q,{hash:Z,parsed:Q,typeScriptMetadata:Q[G5]})}invalidate(q){this.blocked.add(q)}save(){F18(K18(this.cacheFilePath),{recursive:!0});let q={formatVersion:kQ,toolchainVersion:NQ(),entries:Object.fromEntries(this.next)};f18(this.cacheFilePath,JSON.stringify(q))}}import{existsSync as yq,lstatSync as hF,readFileSync as l18}from"node:fs";import{dirname as xF,join as m18,relative as p18,resolve as lF}from"node:path";Y9();Y9();import{existsSync as uF,readFileSync as u18}from"node:fs";import{dirname as uQ,isAbsolute as b18,join as h18,relative as _18,resolve as _q}from"node:path";var hq=new Map,SF=new Map,y18=/\/\*[\s\S]*?\*\/|\/\/.*/g,g18=/[.+?^${}()|[\]\\]/g;function x18(q){let Z=q,Q=_q(Z,"/");while(Z!==Q){for(let Y of["tsconfig.json","jsconfig.json"]){let H=h18(Z,Y);if(uF(H))return H}Z=uQ(Z)}return null}function bF(q){if(hq.has(q))return hq.get(q)??null;try{let Z=u18(q,"utf-8"),Q;try{Q=JSON.parse(Z)}catch{let H=Z.replace(y18,"");Q=JSON.parse(H)}let Y=SE(Q);if(Y.extends){let H=b18(Y.extends)?Y.extends:_q(uQ(q),Y.extends),J=H.endsWith(".json")?H:`${H}.json`;if(uF(J)){let X=bF(J);if(X)Y.compilerOptions={...X.compilerOptions,...Y.compilerOptions,paths:{...X.compilerOptions?.paths,...Y.compilerOptions?.paths}}}}return hq.set(q,Y),Y}catch{return hq.set(q,null),null}}function P5(q,Z){if(q.startsWith(".")||q.startsWith("/"))return q;let Q=x18(Z);if(!Q)return q;let Y=bF(Q);if(!Y?.compilerOptions?.paths)return q;let{baseUrl:H=".",paths:J}=Y.compilerOptions,X=uQ(Q),W=_q(X,H);for(let[$,R]of Object.entries(J)){let z=SF.get($);if(!z){let P=$.split("*").map((w)=>w.replace(g18,"\\$&")).join("(.*)");z=new RegExp(`^${P}$`),SF.set($,z)}let O=q.match(z);if(O){let P=R[0];if(!P)continue;let w=P;for(let F=1;F<O.length;F++)w=w.replace("*",O[F]);return _q(W,w)}}return q}function O5(q,Z){if(q.startsWith(".")||q.startsWith("/"))return q;let Q=P5(q,Z);if(Q===q)return q;let Y=_18(Z,Q);return Y=R0(Y),Y.startsWith(".")?Y:`./${Y}`}var _F=[".ts",".mts",".cts",".tsx",".js",".mjs",".cjs",".jsx",".d.ts"],c18=/\r?\n/,r18=/^\s*\*+/;function z0(q){return q&&typeof q==="object"?q:void 0}function w5(q){return Array.isArray(q)?q:[]}function l1(q){if(q&&q.type==="Identifier"&&typeof q.name==="string")return q.name;return}function bQ(q,Z){let Q=P5(q,Z),Y=lF(Z,Q);if(yq(Y)&&hF(Y).isFile())return Y;for(let H of _F){let J=Y+H;if(yq(J))return J}if(yq(Y)&&hF(Y).isDirectory())for(let H of _F){let J=m18(Y,`index${H}`);if(yq(J))return J}return null}function i18(q,Z){let Q=q.slice(0,Z).trimEnd();if(!Q.endsWith("*/"))return;let Y=Q.length-2,H=Q.lastIndexOf("/**",Y);if(H===-1)return;let J=[];for(let X of Q.slice(H+3,Y).split(c18)){let W=X.replace(r18,"").trim();if(W.startsWith("@"))break;if(W)J.push(W)}return J.join(" ")||void 0}function l6(q,Z){if(!Z)return;return q.text.slice(Z.start,Z.end)}function d18(q,Z){let Q=z0(Z?.typeAnnotation);if(Q?.type!=="TSTypeAnnotation")return;return l6(q,z0(Q.typeAnnotation))}function yF(q,Z){let Q=w5(Z.params).map((J)=>l6(q,J)??"").join(", "),Y=z0(Z.returnType),H=Y?.type==="TSTypeAnnotation"?l6(q,z0(Y.typeAnnotation)):void 0;return`(${Q})${H?` => ${H}`:""}`}function s18(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 gF(q,Z,Q){let Y=q.filePath,H=i18(q.text,Q);if(Z.type==="VariableDeclaration"){let J=Z.kind??"const",X=[];for(let W of w5(Z.declarations)){let $=z0(W.id),R=l1($);if(!R)continue;let z=d18(q,$),O,P=z0(W.init);if(P){if(P.type==="ArrowFunctionExpression"||P.type==="FunctionExpression"){if(!z)z=yF(q,P)}else if(O=l6(q,P),!z)z=s18(P)}X.push({name:R,kind:J,type:z,value:O,description:H,declFile:Y,isTypeOnly:!1})}return X}if(Z.type==="FunctionDeclaration"){let J=l1(z0(Z.id));if(!J)return[];return[{name:J,kind:"function",type:yF(q,Z),description:H,declFile:Y,isTypeOnly:!1}]}if(Z.type==="ClassDeclaration"){let J=l1(z0(Z.id));if(!J)return[];return[{name:J,kind:"class",type:J,description:H,declFile:Y,isTypeOnly:!1}]}if(Z.type==="TSTypeAliasDeclaration"){let J=l1(z0(Z.id));if(!J)return[];return[{name:J,kind:"type",type:l6(q,z0(Z.typeAnnotation)),description:H,declFile:Y,isTypeOnly:!0}]}if(Z.type==="TSInterfaceDeclaration"){let J=l1(z0(Z.id));if(!J)return[];return[{name:J,kind:"interface",type:l6(q,z0(Z.body)),description:H,declFile:Y,isTypeOnly:!0}]}if(Z.type==="TSEnumDeclaration"){let J=l1(z0(Z.id));if(!J)return[];return[{name:J,kind:"enum",type:J,description:H,declFile:Y,isTypeOnly:!1}]}return[]}function a18(q){let Z;try{Z=l18(q,"utf-8")}catch{return null}let Q=`<script lang="ts">
|
|
135
|
-
${Z}
|
|
136
|
-
</script>`;try{let Y=j9(Q,{modern:!0}),H=w5(Y.instance?.content?.body);return{source:{text:Q,filePath:q,dir:xF(q)},body:H}}catch(Y){let H=Y instanceof Error?Y.message:String(Y);return console.warn(`Warning: Failed to parse entry export module ${q}: ${H}`),null}}function o18(q,Z){for(let Q of q){if(Q.type!=="ImportDeclaration")continue;let Y=z0(Q.source)?.value;if(typeof Y!=="string")continue;for(let H of w5(Q.specifiers)){if(H.type!=="ImportSpecifier")continue;if(l1(z0(H.local))===Z){let J=l1(z0(H.imported))??Z;return{specifier:Y,importedName:J}}}}return null}function gq(q,Z){let Q=Z.cache.get(q);if(Q)return Q;if(Z.computing.has(q))return[];Z.computing.add(q);let Y=a18(q);if(!Y)return Z.computing.delete(q),Z.cache.set(q,[]),[];let{source:H,body:J}=Y,X=[],W=new Map;for(let R of J){let z=R.type==="ExportNamedDeclaration"?z0(R.declaration):R;if(!z)continue;for(let O of gF(H,z,z.start))W.set(O.name,O)}let $=(R)=>{let z=W.get(R);if(z)return z;let O=o18(J,R);if(!O||O.specifier.endsWith(".svelte"))return null;let P=bQ(O.specifier,H.dir);if(!P)return null;return gq(P,Z).find((w)=>w.name===O.importedName)??null};for(let R of J){if(R.type==="ExportAllDeclaration"){let v=z0(R.source)?.value;if(typeof v!=="string"||v.endsWith(".svelte"))continue;let F=bQ(v,H.dir);if(!F)continue;let h=R.exportKind==="type";for(let m of gq(F,Z))X.push(h?{...m,isTypeOnly:!0}:m);continue}if(R.type!=="ExportNamedDeclaration")continue;let z=z0(R.declaration);if(z){X.push(...gF(H,z,R.start));continue}let O=z0(R.source)?.value,P=typeof O==="string"?O:void 0;if(P?.endsWith(".svelte"))continue;let w=R.exportKind==="type";for(let v of w5(R.specifiers)){if(v.type!=="ExportSpecifier")continue;let F=l1(z0(v.exported)),h=l1(z0(v.local));if(!F||!h||h==="default"||F==="default")continue;let m=w||v.exportKind==="type",_=null;if(P){let E=bQ(P,H.dir);if(E)_=gq(E,Z).find((u)=>u.name===h)??null}else _=$(h);if(_?.declFile.endsWith(".svelte"))continue;if(_)X.push({..._,name:F,isTypeOnly:_.isTypeOnly||m});else X.push({name:F,kind:m?"type":"const",declFile:q,isTypeOnly:m})}}return Z.computing.delete(q),Z.cache.set(q,X),X}function xq(q){let Z=lF(q),Q=xF(Z),Y=gq(Z,{cache:new Map,computing:new Set}),H=new Map;for(let J of Y){let{declFile:X,...W}=J,$=R0(`./${p18(Q,X)}`);H.set(J.name,{...W,source:$})}return Array.from(H.values()).sort((J,X)=>J.name.localeCompare(X.name))}import{lstatSync as n18,readdirSync as t18,readFileSync as e18}from"node:fs";import{dirname as q98,join as mF,resolve as Z98}from"node:path";Y9();var pF=new Map;function Q98(q){return u3(q,{ecmaVersion:"latest",sourceType:"module"})}function hQ(q,Z,Q=new Set){let Y=pF.get(q);if(!Y)Y=Q98(q),pF.set(q,Y);let H={};for(let J of Y.body)if(J.type==="ExportDefaultDeclaration"){let X=J.declaration.name;if(X in H)H[X].default=!0;else H[X]={source:Q9(""),default:!0}}else if(J.type==="ExportAllDeclaration"){if(!J.source)continue;let X=P5(J.source.value,Z),W=Z98(Z,X);if(!n18(W).isFile()){let z=t18(W);for(let O of z)if(O.includes("index")){W=mF(W,O);break}}if(Q.has(W))continue;Q.add(W);let $=e18(W,"utf-8"),R=hQ($,q98(W),Q);Q.delete(W);for(let[z,O]of Object.entries(R)){let P=Q9(R0(`./${mF(J.source.value,O.source)}`));H[z]={...O,source:P}}}else if(J.type==="ExportNamedDeclaration")for(let X of J.specifiers){let W=X.exported.name,$=X.local.name,R=W||$;if(R in H){if(J.type==="ExportNamedDeclaration")H[R].mixed=!0;if(!H[R].source)H[R].source=Q9(O5(J.source?.value??"",Z))}else H[R]={source:Q9(O5(J.source?.value??"",Z)),default:$==="default"}}else if(J.type==="ImportDeclaration"){let X=J.specifiers[0].local.name;if(X in H){if(!H[X].source)H[X].source=Q9(O5(J.source?.value??"",Z))}else H[X]={source:Q9(O5(J.source?.value??"",Z)),default:X==="default"}}return H}Y9();function G6(q){return{failFast:q?.failFast,resolveTypes:q?.resolveTypes===!0,documentExports:q?.documentExports===!0,cache:q?.cache,checkExamples:q?.checkExamples===!0}}var $48=/<style.+?<\/style>/gims,U48=/-/g;function R48(q){if(!q.includes("<style"))return q;try{let Z=j9(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($48,"")}}function zH(q){return EF(["**/*.svelte"],{cwd:q,absolute:!0}).map((Z)=>{let Q=Y7(Z),Y=RH(Q).name.replace(U48,""),H=Q9(R0(`./${W48(q,Q)}`));return{moduleName:Y,source:H}})}function S4(q,Z,Q=!1){let Y=aS(q).isFile(),H=Y?V48(q):q,J=Y7(H),X=(R)=>G48(R)?Y7(R):Y7(J,R),W={};if(Y){let R=J48(q,"utf-8");try{W=hQ(R,J,new Set([Y7(q)]))}catch(z){if(!Q)throw z;let O=z instanceof Error?z.message:String(z);console.warn(`Warning: Failed to parse component exports from ${q}: ${O}`)}}let $={...W};if(Z)for(let{moduleName:R,source:z}of zH(J)){if(W[R])W[R].source=z;if($[R])$[R].source=z;else $[R]={source:z,default:!1}}return{exports:W,allComponents:$,rootDir:J,resolveComponentFilePath:X}}async function c5(q){let Z=await Promise.all(Array.from(q).map(async(Q)=>{try{let Y=await X48(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 V9([q,Z],Q,Y,H,J={}){let X=Z.source,{ext:W,name:$}=RH(X),R=q;if(Q.length===1&&q==="default")R=$;if(W===".svelte"){let z=H(X),O=Y.get(z);if(O===null||O===void 0)return null;let P=R0(X),w=J.memo?.get(z),v=J.hashes?.get(z),F=w===void 0?v===void 0?null:J.cache?.get(z,v):null,h;if(w!==void 0)h=w;else if(F)h=F;else{let m=new X0;try{h=m.parseSvelteComponent(R48(O),{moduleName:R,filePath:P})}catch(_){if(J.failFast)throw _;let E=_ instanceof Error?_.message:String(_),u=_ instanceof Error?_.stack:void 0;return J.onParseError?.({filePath:P,moduleName:R,message:E,stack:u}),null}if(v!==void 0)J.cache?.set(z,v,h);J.memo?.set(z,h)}return{moduleName:R,filePath:P,...h}}return null}function u4(q,Z){let Q=new Set;for(let Y of q)for(let[,H]of Y)if(RH(H.source).ext===".svelte")Q.add(Z(H.source));return Q}function r5(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 W6(q,Z,Q={}){let Y=Q.documentExports===!0,{exports:H,allComponents:J,rootDir:X,resolveComponentFilePath:W}=S4(q,Z,Y),$=Y&&aS(q).isFile()?xq(Y7(q)):[],R=Object.entries(H),z=Object.entries(J),O=u4([R,z],W),P=await c5(O),w=new Map,v=new Map,F=Q.cache===!1?void 0:new SQ(kF(X,Q.cache??!0)),h=new Set,m=new Map;if(F)for(let U of O){let B=P.get(U);if(B===null||B===void 0)continue;let M=NF(B);if(m.set(U,M),!F.has(U,M))h.add(U)}let _=new Map,E=new Map,u={failFast:Q.failFast===!0,onParseError:(U)=>_.set(U.filePath,U),cache:F,hashes:m,memo:E};for(let U of R){let B=V9(U,R,P,W,u);if(B)w.set(B.moduleName,B)}for(let U of z){let B=V9(U,z,P,W,u);if(B)v.set(B.moduleName,B)}if(F&&h.size>0){let U=L5(v,W),B=uq(h,U);for(let M of B){if(h.has(M))continue;F.invalidate(M),E.delete(M)}for(let M of R){let C=W(M[1].source);if(!B.has(C)||h.has(C))continue;let T=V9(M,R,P,W,u);if(T)w.set(T.moduleName,T)}for(let M of z){let C=W(M[1].source);if(!B.has(C)||h.has(C))continue;let T=V9(M,z,P,W,u);if(T)v.set(T.moduleName,T)}}let S=Array.from(_.values());r5(S),F?.save();let s=Q.resolveTypes?z48(w):[],b=Q.checkExamples?M48(v):[];if(s.length>0||b.length>0){let{TypeResolver:U}=await Promise.resolve().then(() => (sS(),dS)),B=await U.create(X);try{if(s.length>0)await B48(s,B,W);if(b.length>0)await L48(b,B,W)}finally{await B?.dispose()}}let G=fq(Array.from(v.values()).flatMap((U)=>U.diagnostics??[]));return{exports:H,entryExports:$,components:w,allComponentsForTypes:v,errors:S,diagnostics:G}}function z48(q){let Z=[];for(let Q of q.values()){let Y=Dq(Q);if(!Y?.canonicalPropsType||Q.props.length>0)continue;Z.push({component:Q,metadata:Y})}return Z}async function B48(q,Z,Q){if(!Z)return;let Y=await Z.expandAll(q.map(({component:H,metadata:J})=>({moduleName:H.moduleName,metadata:J,filePath:Q(H.filePath)})));for(let{component:H}of q){let J=Y.get(H.moduleName);if(J)CE(H,J)}}function M48(q){let Z=[];for(let Q of q.values()){let Y=fF(Q);if(Y.length===0)continue;Z.push({component:Q,sources:Y})}return Z}async function L48(q,Z,Q){if(!Z)return;let Y=await Z.checkExamples(q.map(({component:H,sources:J})=>({moduleName:H.moduleName,filePath:Q(H.filePath),sources:J})));for(let{component:H,sources:J}of q){let X=Y.get(H.moduleName);if(!X||X.length===0)continue;let W=new Map(J.map((R)=>[R.id,R.source])),$=H.diagnostics??[];for(let R of X){let z=W.get(R.id);$.push({component:H.filePath,kind:"example-compile-error",name:R.name,message:R.message,...z?{source:z}:{}})}H.diagnostics=$}}import{lstatSync as P48}from"node:fs";import{resolve as oS}from"node:path";var O48=/\.svelte$/;async function nS(q,Z,Q=!1){let{exports:Y,allComponents:H,rootDir:J,resolveComponentFilePath:X}=S4(q,Z,Q),W=Q&&P48(q).isFile()?xq(oS(q)):[],$=Object.entries(Y),R=Object.entries(H),z=new Map,O=new Map,P=new Map,w={onParseError:(_)=>P.set(_.filePath,_)},v=()=>({exports:Y,entryExports:W,components:z,allComponentsForTypes:O,errors:Array.from(P.values()),diagnostics:fq(Array.from(O.values()).flatMap((_)=>_.diagnostics??[]))});{let _=u4([$,R],X),E=await c5(_);for(let u of $){let S=V9(u,$,E,X,w);if(S)z.set(S.moduleName,S)}for(let u of R){let S=V9(u,R,E,X,w);if(S)O.set(S.moduleName,S)}r5(v().errors)}let F=L5(O,X),h=(_,E,u,S)=>{let s=new Set;for(let b of E){let G=X(b[1].source);if(!u.has(G))continue;let U=V9(b,E,S,X,w);if(U)_.set(U.moduleName,U),s.add(G);else for(let[B,M]of _)if(X(M.filePath)===G)_.delete(B)}return s};return{get result(){return v()},update:async(_)=>{let E=_.filter((G)=>O48.test(G)).map((G)=>oS(G));if(E.length===0)return{result:v(),reparsed:[]};if(Z)for(let{moduleName:G,source:U}of zH(J)){let B=H[G];if(B)B.source=U;else{let M={source:U,default:!1};H[G]=M,R.push([G,M])}}let u=uq(E,F);for(let[G,U]of P)if(u.has(X(U.filePath)))P.delete(G);let S=await c5(u),s=new Set;for(let G of h(z,$,u,S))s.add(G);for(let G of h(O,R,u,S))s.add(G);F=L5(O,X);let b=v();return r5(b.errors),{result:b,reparsed:Array.from(s)}}}}var BH=new Map;function H7(q){BH.set(q.name,q)}function b4(q){return BH.get(q)}function w48(){return Array.from(BH.values())}Y9();import MH from"node:path";import{mkdir as A48,writeFile as I48}from"node:fs/promises";import{parse as j48}from"node:path";class J7{async write(q,Z){await A48(j48(q).dir,{recursive:!0}),await I48(q,Z)}}function i5(){return new J7}function tS(){return new J7}var D48=new Set(["string","number","boolean"]);function C48(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 E48(q){let Z=new Map;for(let Y of q){if(!Y.type||!D48.has(Y.type.trim()))continue;let H=Y.name.toLowerCase(),J=Z.get(H);if(J)J.push(Y);else Z.set(H,[Y])}let Q=[];for(let[Y,H]of Z){if(H.length!==1)continue;let J=H[0];Q.push({name:Y,fieldName:J.name,type:{text:J.type},...J.value===void 0?{}:{default:J.value},...J.description?{description:J.description}:{}})}return Q}function F48(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 T48(q){return q.map((Z)=>({name:Z.default?"":Z.name??"",...Z.description?{description:Z.description}:{},...Z.deprecated===void 0?{}:{deprecated:Z.deprecated}}))}function f48(q){let Z={kind:"class",name:q.moduleName,...q.componentComment?{description:q.componentComment}:{},members:C48(q.props),attributes:E48(q.props),events:F48(q.events),slots:T48(q.slots)};if(q.customElementTag)Z.tagName=q.customElementTag,Z.customElement=!0;return Z}function K48(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 eS(q,Z={}){let Q=B1(q),Y=Z.resolveModulePath??((J)=>J.filePath);return{schemaVersion:"1.0.0",modules:Q.components.map((J)=>{let X=Y(J);return{kind:"javascript-module",path:X,declarations:[f48(J)],exports:K48(J,X)}})}}function v48(q,Z){return R0(MH.join(Z,MH.normalize(q.filePath)))}async function LH(q,Z){let Q=eS(q,{resolveModulePath:(J)=>v48(J,Z.inputDir)}),Y=MH.join(process.cwd(),Z.outFile);await i5().write(Y,`${JSON.stringify(Q,null,2)}
|
|
137
|
-
`),console.log(`created "${Z.outFile}".`)}Y9();import d5 from"node:path";function qu(q,Z){return q.map((Q)=>({...Q,filePath:R0(d5.join(Z,d5.normalize(Q.filePath)))}))}async function k48(q,Z){let Q=B1(q),Y=qu(Q.components,Z.inputDir);await Promise.all(Y.map((H)=>{let J=d5.resolve(d5.join(Z.outDir||"",`${H.moduleName}.api.json`)),X=i5();return console.log(`created "${J}".`),X.write(J,`${JSON.stringify(H,null,2)}
|
|
138
|
-
`)}))}async function N48(q,Z){let Q=B1(q,{entryExports:Z.entryExports}),Y={...Q,components:qu(Q.components,Z.inputDir)},H=d5.join(process.cwd(),Z.outFile);await i5().write(H,`${JSON.stringify(Y,null,2)}
|
|
139
|
-
`),console.log(`created "${Z.outFile}".`)}async function PH(q,Z){if(Z.outDir)await k48(q,Z);else await N48(q,Z)}import{join as v38}from"node:path";var Zu=/^[}\])>]/,S48=new Set(["{","(","["]),u48=new Set(["}",")","]"]);var b48=/\binterface\s+[A-Za-z_$][\w$]*(\s*<[^{};]*>)?\s*$/,Qu=/[ \t]+$/,h48=/\s+$/,_48=/[{([]$/,y48=/\s/;function g48(q){return b48.test(q.slice(-200))}function x48(q){let Z="",Q=null,Y=!1;for(let H=0;H<q.length;H++){let J=q[H],X=q[H-1];if(Q){if(Z+=J,Q==="double"&&J==='"'&&X!=="\\"||Q==="single"&&J==="'"&&X!=="\\"||Q==="template"&&J==="`"&&X!=="\\")Q=null;Y=!1;continue}if(J==='"'||J==="'"||J==="`"){Q=J==='"'?"double":J==="'"?"single":"template",Z+=J,Y=!1;continue}if(y48.test(J)){if(!Y&&Z.length>0)Z+=" ",Y=!0;continue}Z+=J,Y=!1}return Z.trimEnd()}function l48(q,Z){let Q=0,Y="normal";for(let H=Z;H<q.length;H++){let J=q[H],X=q[H-1];if(Y==="blockComment"){if(X==="*"&&J==="/")Y="normal";continue}if(Y==="double"||Y==="single"){if(J===(Y==="double"?'"':"'")&&X!=="\\")Y="normal";continue}if(Y==="template"){if(J==="`"&&X!=="\\")Y="normal";continue}if(J==="/"&&q[H+1]==="*")Y="blockComment";else if(J==='"')Y="double";else if(J==="'")Y="single";else if(J==="`")Y="template";else if(J==="{")Q++;else if(J==="}"){if(Q--,Q===0)return H}}return-1}function Yu(q){let Z="",Q="normal";for(let Y=0;Y<q.length;Y++){let H=q[Y],J=q[Y-1];if(Q==="blockComment"){if(Z+=H,J==="*"&&H==="/")Q="normal";continue}if(Q==="double"||Q==="single"){if(Z+=H,H===(Q==="double"?'"':"'")&&J!=="\\")Q="normal";continue}if(Q==="template"){if(Z+=H,H==="`"&&J!=="\\")Q="normal";continue}if(H==="/"&&q[Y+1]==="*"){Q="blockComment",Z+=H;continue}if(H==='"'){Q="double",Z+=H;continue}if(H==="'"){Q="single",Z+=H;continue}if(H==="`"){Q="template",Z+=H;continue}if(H==="{"){let X=l48(q,Y);if(X===-1){Z+=H;continue}let W=q.slice(Y+1,X);if(W.trim()===""){Z+="{}",Y=X;continue}if(!W.includes("/*")&&q[Y+1]!==`
|
|
140
|
-
`&&!g48(Z)){let $=Yu(W).trim();if(!$.includes(`
|
|
141
|
-
`)){let R=$.endsWith(";")?$.slice(0,-1):$,z=`{ ${x48(R)} }`;if(z.length<=120){Z+=z,Y=X;continue}}}if(Z+=H,q[Y+1]!==`
|
|
142
|
-
`)Z+=`
|
|
143
|
-
`;continue}if(H==="}"){if(Z=Z.replace(Qu,""),!Z.endsWith(`
|
|
144
|
-
`))Z+=`
|
|
145
|
-
`;Z+=H;continue}if(H===";"){if(Z=Z.replace(h48,""),Z+=";",q[Y+1]!==`
|
|
146
|
-
`)Z+=`
|
|
147
|
-
`;continue}Z+=H}return Z}function m48(q){let Z="",Q=null;for(let Y=0;Y<q.length;Y++){let H=q[Y],J=q[Y-1];if(Q){if(Z+=H,Q==="double"&&H==='"'&&J!=="\\"||Q==="single"&&H==="'"&&J!=="\\"||Q==="template"&&H==="`"&&J!=="\\")Q=null;continue}if(H==='"'||H==="'"||H==="`"){Q=H==='"'?"double":H==="'"?"single":"template",Z+=H;continue}if(H===" "&&Z.endsWith(" "))continue;Z+=H}return Z}function p48(q){let Z=q.split(`
|
|
148
|
-
`),Q=[],Y=0,H=!1,J=0;for(let X of Z){let W=X.trim();if(W===""){Q.push("");continue}if(H){if(Q.push(`${" ".repeat(J)} ${W}`),W.includes("*/"))H=!1;continue}if(W.startsWith("/**")&&!W.includes("*/")){Q.push(" ".repeat(Y)+W),H=!0,J=Y;continue}let $=m48(W),R=Zu.test($),z=Math.max(0,Y-(R?1:0));if(Q.push(" ".repeat(z)+$),$.startsWith("/**")&&$.includes("*/"))continue;let O=null;for(let P=0;P<$.length;P++){let w=$[P],v=$[P-1];if(O){if(O==="double"&&w==='"'&&v!=="\\"||O==="single"&&w==="'"&&v!=="\\"||O==="template"&&w==="`"&&v!=="\\")O=null;continue}if(w==='"')O="double";else if(w==="'")O="single";else if(w==="`")O="template";else if(S48.has(w))Y++;else if(u48.has(w))Y=Math.max(0,Y-1);else if(w==="<")Y++;else if(w===">"&&v!=="=")Y=Math.max(0,Y-1)}}return Q.join(`
|
|
149
|
-
`)}function c48(q){let Z=q.split(`
|
|
150
|
-
`).map((Y)=>Y.replace(Qu,"")),Q=[];for(let Y of Z){let H=Y==="",J=Q.length>0&&Q[Q.length-1]==="",X=Q.length>0&&_48.test(Q[Q.length-1]);if(H){if(Q.length===0||J||X)continue;Q.push(Y);continue}if(Zu.test(Y)&&J)Q.pop();Q.push(Y)}while(Q.length>0&&Q[Q.length-1]==="")Q.pop();return Q.join(`
|
|
151
|
-
`)}function Hu(q){let Z=Yu(q),Q=p48(Z);return`${c48(Q)}
|
|
152
|
-
`}var v9="any",P1="",r48="Record<string, any>",wH="Record<string, never>",i48=/(-|\s+|:)/,d48=/("|')/,s48=/CustomEvent/,a48=/^[A-Z]/,o48=/\n/,Ju=/=>/,n48=/(?:^|\n)@default\b/,AH=/\n/g,t48=/\s+/g,e48=/(^|[^.\w])Snippet(?:\s*<|\b)/,q38=/import\s+type\s+[^;]*\bSnippet\b[^;]*from\s+"svelte";/,Z38=/[.*+?^${}()|[\]\\]/g,Q38=/^const\s+/;function IH(q){return q.replace(Q38,"")}function Y38(q){if(!q)return;return q.replace(AH,`
|
|
153
|
-
* `)}function h4(q){if(!q)return"";return`/** ${q} */`}function _4(q){if(!q)return"";return`/**
|
|
154
|
-
* ${q.replace(AH,`
|
|
155
|
-
* `)}
|
|
156
|
-
*/`}function Xu(q){if(q===void 0)return;return q===!0?"@deprecated":`@deprecated ${q}`}function H38(q){let Z=Xu(q);if(Z===void 0)return;return`* ${Z.replace(AH,`
|
|
157
|
-
* `)}
|
|
158
|
-
`}function J38(q,Z){if(!Z)return[`@${q}`];if(!Z.includes(`
|
|
159
|
-
`))return[`@${q} ${Z}`];return[`@${q}`,...Z.split(`
|
|
160
|
-
`)]}function Vu(q){let Z=[];for(let{name:Q,body:Y}of q??[])Z.push(...J38(Q,Y));return Z}function s5(q,Z,Q){let Y=Xu(Q),H=Vu(Z),J=H.length>0;if(!q&&!J&&!Y)return"";if(!J&&!Y)return q?.includes(`
|
|
161
|
-
`)?_4(q):h4(q);let X=[];if(q)X.push(...q.split(`
|
|
162
|
-
`));if(X.push(...H),Y)X.push(...Y.split(`
|
|
163
|
-
`));return`/**
|
|
164
|
-
* ${X.join(`
|
|
165
|
-
* `)}
|
|
166
|
-
*/`}function X38(q){let Z=Vu(q);if(Z.length===0)return"";return Z.map((Q)=>`* ${Q}
|
|
167
|
-
`).join("")}function y4(q){if(q===void 0)return v9;return`${q}
|
|
168
|
-
`}function g4(q){if(q.typedefs.length===0)return P1;return q.typedefs.map((Z)=>{return`${Z.description?`${_4(Z.description)}
|
|
169
|
-
`:""}export ${Z.ts}`}).join(`
|
|
170
|
-
|
|
171
|
-
`)}function Gu(q,Z){let Q=Z.replace(Z38,"\\$&");return new RegExp(`\\b${Q}\\b`).test(q)}function V38(q){if(q===null)return[];return q[0].split(",").map((Z,Q)=>({name:Z.trim(),constraint:(d9(q[1]??"")[Q]??Z).trim()}))}function G38(q,Z){let Q=V38(q).filter(({name:Y})=>Gu(Z,Y));if(Q.length===0)return{declSuffix:P1,refSuffix:P1};return{declSuffix:`<${Q.map(({constraint:Y})=>IH(Y)).join(", ")}>`,refSuffix:`<${Q.map(({name:Y})=>Y).join(", ")}>`}}function Wu(q){if(!q.contexts||q.contexts.length===0)return P1;let Z=q.generics===null?[]:q.generics[0].split(",").map((Q,Y)=>({name:Q.trim(),constraint:(d9(q.generics?.[1]??"")[Y]??Q).trim()}));return q.contexts.map((Q)=>{let Y=Q.properties.map((W)=>{let $=W.description?`${h4(W.description)}
|
|
172
|
-
`:"",R=W.optional?"?":"";return`${$}${W.name}${R}: ${W.type};`}).join(`
|
|
173
|
-
`),H=Q.description?`${_4(Q.description)}
|
|
174
|
-
`:"",J=Z.filter(({name:W})=>Q.properties.some(($)=>Gu($.type,W))).map(({constraint:W})=>W),X=J.length>0?`<${J.map(IH).join(", ")}>`:"";if(Q.properties.length===0)return`${H}export type ${Q.typeName} = Record<string, never>;`;return`${H}export type ${Q.typeName}${X} = {
|
|
175
|
-
${Y}
|
|
176
|
-
};`}).join(`
|
|
177
|
-
|
|
178
|
-
`)}function a5(q){if(i48.test(q))return d48.test(q)?q:`"${q}"`;return q}function $u(q,Z){if(!q)return;return`* ${Z||q}
|
|
179
|
-
`}function jH(q,Z,Q){return[$u(Y38(q)),H38(Z),X38(Q)].filter(Boolean).join("")}function DH(q){return q.length>0?`/**
|
|
180
|
-
${q}*/`:P1}function W38(q){let Z=new Set([...q.props.filter((F)=>!F.isFunctionDeclaration&&F.kind!=="const").map((F)=>F.name),...Array.from(q.canonicalPropNames??[])]),Q=q.props.filter((F)=>!F.isFunctionDeclaration&&F.kind!=="const").map((F)=>{let h=F.value;if(typeof F.value==="string")h=F.value.replace(t48," ");if(F.value===void 0)h="undefined";let m=n48.test(F.description??""),_=[jH(F.description,F.deprecated,F.tags),$u(F.constant,"@constant"),F.isFunction||m?null:`* @default ${h}
|
|
181
|
-
`].filter(Boolean).join(""),E=F.constant&&!F.isFunction?F.value:F.type;return`
|
|
182
|
-
${DH(_)}
|
|
183
|
-
${F.name}${F.isRequired?"":"?"}: ${E};`}),Y=q.canonicalPropsType?Q.filter((F,h)=>{let m=q.props.filter((_)=>!_.isFunctionDeclaration&&_.kind!=="const")[h];return m?!(q.canonicalPropNames?.has(m.name)??!1):!0}):Q,H=(q.slots||[]).filter((F)=>!F.default&&F.name!=null&&!Z.has(F.name)).map((F)=>{let h=F.name,m=a5(h),_=s5(F.description,F.tags,F.deprecated),E=_?`${_}
|
|
184
|
-
`:"",S=F.slot_props&&F.slot_props!=="Record<string, never>"?`(this: void, ...args: [${F.slot_props}]) => void`:"(this: void) => void";return`
|
|
185
|
-
${E}${m}?: ${S};`}),J=(q.slots||[]).find((F)=>F.default||F.name===null),X=J&&!Z.has("children")?(()=>{let F=s5(J.description,J.tags,J.deprecated),h=F?`${F}
|
|
186
|
-
`:"",_=J.slot_props&&J.slot_props!=="Record<string, never>"?`(this: void, ...args: [${J.slot_props}]) => void`:"(this: void) => void";return`
|
|
187
|
-
${h}children?: ${_};`})():"",W=q.events?M38({events:q.events},Z):[],$=[...H,X,...W].filter(Boolean),R=[...Y,...$].join(`
|
|
188
|
-
`),z=`${q.moduleName}Props`,O=P1,P=q.generics?`<${d9(q.generics[1]).map((F)=>IH(F.trim())).join(", ")}>`:"",w=q.generics?`<${q.generics[0]}>`:"",v=q.canonicalPropsType?`
|
|
189
|
-
type $Props${P} = ${q.canonicalPropsType}${R.trim()===""?"":` & {${R}
|
|
190
|
-
}`};
|
|
191
|
-
`:`
|
|
192
|
-
type $Props${P} = {
|
|
193
|
-
${R}
|
|
194
|
-
};
|
|
195
|
-
`;if(q.rest_props?.type==="Element"){let F;if(q.rest_props.name==="svelte:element")if(q.rest_props.thisValue)F=`SvelteHTMLElements["${q.rest_props.thisValue}"]`;else F="HTMLAttributes<HTMLElement>";else F=q.rest_props.name.split("|").map((_)=>{return`SvelteHTMLElements["${_.trim()}"]`}).join(" & ");let h="[key: `data-${string}`]: unknown;",m=q.rest_props.description?q.rest_props.description.includes(`
|
|
196
|
-
`)?`${_4(q.rest_props.description)}
|
|
197
|
-
`:`${h4(q.rest_props.description)}
|
|
198
|
-
`:"";if(q.extends===void 0)O=`
|
|
199
|
-
${m}${F?`type $RestProps = ${F};
|
|
200
|
-
`:""}
|
|
201
|
-
${q.canonicalPropsType?`type $Props${P} = (${q.canonicalPropsType}) & {${R}
|
|
202
|
-
|
|
203
|
-
${h}
|
|
204
|
-
};`:`type $Props${P} = {
|
|
205
|
-
${R}
|
|
206
|
-
|
|
207
|
-
${h}
|
|
208
|
-
};`}
|
|
209
|
-
|
|
210
|
-
export type ${z}${P} = Omit<$RestProps, keyof $Props${w}> & $Props${w};
|
|
211
|
-
`;else O=`
|
|
212
|
-
${m}${F?`type $RestProps = ${F};
|
|
213
|
-
`:""}
|
|
214
|
-
${q.canonicalPropsType?`type $Props${P} = (${q.canonicalPropsType}) & {${R}
|
|
215
|
-
|
|
216
|
-
${h}
|
|
217
|
-
};`:`type $Props${P} = {
|
|
218
|
-
${R}
|
|
219
|
-
|
|
220
|
-
${h}
|
|
221
|
-
};`}
|
|
222
|
-
|
|
223
|
-
export type ${z}${P} = Omit<$RestProps, keyof ($Props${w} & ${q.extends.interface})> & $Props${w} & ${q.extends.interface};
|
|
224
|
-
`}else if(R.trim()===""&&q.extends===void 0&&!q.canonicalPropsType)O=`
|
|
225
|
-
export type ${z}${P} = ${wH};
|
|
226
|
-
`;else if(q.canonicalPropsType)O=`
|
|
227
|
-
${v}
|
|
228
|
-
export type ${z}${P} = ${q.extends===void 0?"":`${q.extends.interface} & `}$Props${w};
|
|
229
|
-
`;else O=`
|
|
230
|
-
export type ${z}${P} = ${q.extends===void 0?"":`${q.extends.interface} & `} {
|
|
231
|
-
${R}
|
|
232
|
-
};
|
|
233
|
-
`;return{props_name:z,prop_def:O}}function $38(q){if(q.slots.length===0)return wH;let Z=q.slots.map(({name:Q,slot_props:Y,...H})=>{let J=H.default||Q===null?"default":a5(Q??""),X=s5(H.description,H.tags,H.deprecated);return`${X?`${X}
|
|
234
|
-
`:""}${a5(J)}: ${y4(Y)};`}).join(`
|
|
235
|
-
`);return q.slots.length===1?`{${Z}}`:`{
|
|
236
|
-
${Z}
|
|
237
|
-
}`}var U38=()=>{return"WindowEventMap"},R38=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 OH(q=v9){if(s48.test(q))return q;return`CustomEvent<${q}>`}function z38(q){return R38.has(q)}function Uu(q){switch(q.type){case"dispatched":return OH(q.detail);case"forwarded":{let Z=q.element,Y=!(Z&&a48.test(Z))||z38(q.name),H=q.detail!==void 0&&q.detail!=="undefined"&&!(q.detail==="null"&&Y),J=q.detail==="null"&&!Y;if(H||J)return OH(q.detail);else if(Y)return`${U38()}["${q.name}"]`;else return OH()}default:return q}}function B38(q){if(q.events.length===0)return r48;let Z=q.events.map((Q)=>{let Y="",H=s5(Q.description,Q.tags,Q.deprecated);if(H)Y=`${H}
|
|
238
|
-
`;return`${Y}${a5(Q.name)}: ${Uu(Q)};
|
|
239
|
-
`}).join("");return q.events.length===1?`{${Z}}`:`{
|
|
240
|
-
${Z}}`}function M38(q,Z){return q.events.map((Q)=>{let Y=`on${Q.name}`;if(Z.has(Y))return;let H="",J=s5(Q.description,Q.tags,Q.deprecated);if(J)H=`${J}
|
|
241
|
-
`;return`
|
|
242
|
-
${H}${a5(Y)}?: (event: ${Uu(Q)}) => void;`}).filter((Q)=>Q!==void 0)}function L38(q){let Z=q.type==="() => any";if(q.type&&Ju.test(q.type)&&!Z)return q.type;else if(q.params&&q.params.length>0){let Y=q.params.map((J)=>{let X=J.optional?"?":"";return`${J.name}${X}: ${J.type}`}).join(", "),H=q.returnType||v9;return`(${Y}) => ${H}`}else if(q.returnType)return`() => ${q.returnType}`;else return q.type||v9}function Ru(q){return q.props.filter((Z)=>Z.isFunctionDeclaration||Z.kind==="const").map((Z)=>{let Q=jH(Z.description,Z.deprecated,Z.tags),Y=L38(Z);return`
|
|
243
|
-
${DH(Q)}
|
|
244
|
-
${Z.name}: ${Y};`}).join(`
|
|
245
|
-
`)}function P38(q){let Z=`${q.moduleName}Exports`,Q=Ru({props:q.props});if(Q.trim()==="")return{exports_name:Z,exports_ref:Z,exports_def:`export type ${Z} = ${wH};`};let{declSuffix:Y,refSuffix:H}=G38(q.generics,Q);return{exports_name:Z,exports_ref:`${Z}${H}`,exports_def:`export type ${Z}${Y} = {${Q}
|
|
246
|
-
};`}}function O38(q){let Z=q.props.filter((Q)=>Q.bindable===!0||Q.binding==="writable").map((Q)=>`"${Q.name}"`);return Z.length===0?P1:Z.join(" | ")}function w38(q){let Z=q.moduleName==="default"?"$$Component":q.moduleName,Q=q.bindings===P1?'""':q.bindings;return`declare const ${Z}: Component<
|
|
247
|
-
${q.propsRef},
|
|
248
|
-
${q.exportsRef},
|
|
249
|
-
${Q}
|
|
250
|
-
>;
|
|
251
|
-
export default ${Z};`}function A38(q){let Z=q.moduleName==="default"?"$$Component":q.moduleName,Q=`${Z}Component`,Y=q.bindings===P1?'""':q.bindings;return`interface ${Q} {
|
|
252
|
-
new ${q.generic}(
|
|
253
|
-
options: ComponentConstructorOptions<${q.propsRef}>
|
|
254
|
-
): SvelteComponent<${q.propsRef}> & ${q.exportsRef};
|
|
255
|
-
${q.generic}(
|
|
256
|
-
this: void,
|
|
257
|
-
internals: ComponentInternals,
|
|
258
|
-
props: ${q.propsRef}
|
|
259
|
-
): {
|
|
260
|
-
$on?(type: string, callback: (e: any) => void): () => void;
|
|
261
|
-
$set?(props: Partial<${q.propsRef}>): void;
|
|
262
|
-
} & ${q.exportsRef};
|
|
263
|
-
element?: typeof HTMLElement;
|
|
264
|
-
z_$$bindings?: ${Y};
|
|
265
|
-
}
|
|
266
|
-
declare const ${Z}: ${Q};
|
|
267
|
-
export default ${Z};`}function I38(q){if(q.extends===void 0)return"";return`import type { ${q.extends.interface} } from ${q.extends.import};`}function j38(q){if(!q.componentComment)return"";if(!o48.test(q.componentComment))return h4(q.componentComment.trim());return`/*${q.componentComment.split(`
|
|
268
|
-
`).map((Z)=>`* ${Z}`).join(`
|
|
269
|
-
`)}
|
|
270
|
-
*/`}function D38(q){return q.moduleExports.map((Z)=>{let Q=jH(Z.description,Z.deprecated,Z.tags),Y,H=Z.type&&Ju.test(Z.type),J=Z.type==="() => any";if(Z.kind==="const"&&!H)Y=`export declare const ${Z.name}: ${Z.type||v9};
|
|
271
|
-
`;else if(Z.params&&Z.params.length>0){let W=Z.params.map((R)=>{let z=R.optional?"?":"";return`${R.name}${z}: ${R.type}`}).join(", "),$=Z.returnType||v9;Y=`export declare function ${Z.name}(${W}): ${$};`}else if(Z.returnType)Y=`export declare function ${Z.name}(): ${Z.returnType};`;else if(H&&Z.type&&!J){let[X,W,...$]=Z.type.split("=>"),R=$.map((z)=>` => ${z.trim()}`).join("");Y=`export declare function ${Z.name}${X.trimEnd()}: ${W.trim()}${R};`}else if(H&&Z.type){let[X,W,...$]=Z.type.split("=>"),R=$.map((z)=>` => ${z.trim()}`).join("");Y=`export declare function ${Z.name}${X.trimEnd()}: ${W.trim()}${R};`}else if(Z.kind==="const")Y=`export declare const ${Z.name}: ${Z.type||v9};
|
|
272
|
-
`;else Y=`export type ${Z.name} = ${Z.type||v9};`;return`
|
|
273
|
-
${DH(Q)}
|
|
274
|
-
${Y}`}).join(`
|
|
275
|
-
`)}var C38=120;function E38(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((H)=>!H.includes(`
|
|
276
|
-
`))){let H=`${Q}${Y.join(", ")}> {}`;if(H.length<=C38)return H}return`${Q}
|
|
277
|
-
${q.genericProps},
|
|
278
|
-
${q.events},
|
|
279
|
-
${q.slots}
|
|
280
|
-
> {
|
|
281
|
-
${q.accessors}
|
|
282
|
-
}`}function CH(q,Z){let Q=Dq(q),{moduleName:Y,typedefs:H,generics:J,props:X,moduleExports:W,slots:$,events:R,rest_props:z,extends:O,componentComment:P,contexts:w,syntaxMode:v}=q,F=Z?.format==="component",h=J!==null,{props_name:m,prop_def:_}=W38({moduleName:Y,props:X,rest_props:z,extends:O,generics:J,slots:$,canonicalPropNames:new Set(Q?.canonicalPropNames??[]),canonicalPropsType:Q?.canonicalPropsType,events:F&&v==="legacy"?R:void 0}),E=J?`<${J[1]}>`:"",u=J?`${m}<${J[0]}>`:m,S=D38({moduleExports:W}),s=g4({typedefs:H}),b=Wu({contexts:w,generics:J}),G=(Q?.typeImportStatements??[]).join(`
|
|
283
|
-
`),U=(Q?.localTypeDeclarations??[]).join(`
|
|
284
|
-
|
|
285
|
-
`),{exports_ref:B,exports_def:M}=F?P38({props:X,moduleName:Y,generics:J}):{exports_ref:P1,exports_def:P1},C=F?O38({props:X}):P1,T=!q38.test(G)&&e48.test(`${_}
|
|
286
|
-
${S}
|
|
287
|
-
${s}
|
|
288
|
-
${b}
|
|
289
|
-
${U}
|
|
290
|
-
${M}`),D=z?.type==="Element"&&(z.name!=="svelte:element"||z.name==="svelte:element"&&z.thisValue),f=z?.type==="Element"&&z.name==="svelte:element"&&!z.thisValue,k=[F?h?`import type { SvelteComponent, ComponentConstructorOptions, ComponentInternals${T?", Snippet":""} } from "svelte";`:`import type { Component${T?", Snippet":""} } from "svelte";`:`import { SvelteComponentTyped${T?", type Snippet":""} } from "svelte";`,D?'import type { SvelteHTMLElements } from "svelte/elements";':"",f?'import type { HTMLAttributes } from "svelte/elements";':"",G,I38({extends:O})].filter(Boolean).join(`
|
|
291
|
-
`),o=F?h?A38({moduleName:Y,generic:E,propsRef:u,exportsRef:B,bindings:C}):w38({moduleName:Y,propsRef:u,exportsRef:B,bindings:C}):E38({moduleName:Y,generic:E,genericProps:u,events:B38({events:R}),slots:$38({slots:$}),accessors:Ru({props:X})}),A8=[S,s,U,b,_,M,[j38({componentComment:P}),o].filter(Boolean).join(`
|
|
292
|
-
`)].map((z8)=>z8.trim()).filter(Boolean).join(`
|
|
293
|
-
|
|
294
|
-
`);return Hu([k,A8].filter(Boolean).join(`
|
|
295
|
-
|
|
296
|
-
`))}var EH=/`/g,x4=/\s+/g,K1="--",zu=`| Prop name | Required | Kind | Reactive | Binding | Type | Default value | Description |
|
|
297
|
-
| :- | :- | :- | :- | :- | :- | :- | :- |
|
|
298
|
-
`,Bu=`| Slot name | Default | Props | Fallback | Description |
|
|
299
|
-
| :- | :- | :- | :- | :- |
|
|
300
|
-
`,Mu=`| Event name | Type | Detail | Description |
|
|
301
|
-
| :- | :- | :- | :- |
|
|
302
|
-
`,Lu=`| Name | Kind | Type | Description |
|
|
303
|
-
| :- | :- | :- | :- |
|
|
304
|
-
`,l4=/\|/g,F38=/</g,T38=/>/g,X7=/\n/g;function V7(q){if(q===void 0)return K1;return`<code>${q.replace(l4,"|")}</code>`}function o5(q){return q.replace(F38,"<").replace(T38,">")}function Pu(q){if(q===void 0)return K1;return`<code>${q.replace(EH,"\\`").replace(l4,"|")}</code>`}function m4(q,Z){if(Z===void 0)return q;let Q=typeof Z==="string"&&Z.trim().length>0?`: ${o5(Z).replace(X7," ").replace(l4,"|")}`:"";return`<s>${q}</s><br />**Deprecated**${Q}`}function p4(q){if(q===void 0||q.trim().length===0)return K1;return o5(q).replace(X7,"<br />")}function Ou(q){if(q===void 0||q==="{}")return K1;return V7(y4(q).replace(X7," "))}function wu(q){if(q===void 0)return K1;return V7(o5(q).replace(X7,"<br />"))}function Au(q,Z){let Q=[];if(q!==void 0&&q.trim().length>0)Q.push(o5(q));for(let{name:Y,body:H}of Z??[]){let J=H?.trim();Q.push(J?`@${Y} ${o5(J)}`:`@${Y}`)}if(Q.length===0)return K1;return Q.join(`
|
|
305
|
-
`).replace(l4,"|").replace(X7,"<br />")}function Iu(q){if(q===void 0)return K1;return V7(q.replace(X7," "))}function ju(q,Z,Q){if(q.append("h1","Component Index"),q.append("h2","Components").tableOfContents(),q.append("divider"),Q&&Q.length>0)f38(q,Q);let Y=B1(Z);for(let H of Y.components)K38(q,H)}function f38(q,Z){q.append("h2","Exports"),q.append("raw",Lu);for(let Q of Z){let Y=(Q.type??Q.value)?.replace(x4," ").trim();q.append("raw",`| ${Q.name} | ${`<code>${Q.kind}</code>`} | ${V7(Y)} | ${p4(Q.description)} |
|
|
306
|
-
`)}q.append("raw",`
|
|
307
|
-
`),q.append("divider")}function FH(q,Z,Q,Y){if(Z.length>0)Q(),q.append("raw",`
|
|
308
|
-
`);else q.append("p",Y??"None.")}function K38(q,Z){if(q.append("h2",`\`${Z.moduleName}\``),Z.typedefs.length>0)q.append("h3","Types").append("raw",`\`\`\`ts
|
|
309
|
-
${g4({typedefs:Z.typedefs})}
|
|
310
|
-
\`\`\`
|
|
311
|
-
|
|
312
|
-
`);q.append("h3","Props"),FH(q,Z.props,()=>{q.append("raw",zu);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",`| ${m4(Y.name,Y.deprecated)} | ${Y.isRequired?"Yes":"No"} | ${`<code>${Y.kind}</code>`} | ${Y.reactive?"Yes":"No"} | ${Y.binding??"--"} | ${V7(Y.type)} | ${Pu(Y.value)} | ${p4(Y.description)} |
|
|
313
|
-
`)}),q.append("h3","Slots"),FH(q,Z.slots,()=>{q.append("raw",Bu);for(let Q of Z.slots)q.append("raw",`| ${m4(Q.default?K1:Q.name??K1,Q.deprecated)} | ${Q.default?"Yes":"No"} | ${Ou(Q.slot_props)} | ${wu(Q.fallback)} | ${Au(Q.description,Q.tags)} |
|
|
314
|
-
`)}),q.append("h3","Events"),FH(q,Z.events,()=>{q.append("raw",Mu);for(let Q of Z.events)q.append("raw",`| ${m4(Q.name,Q.deprecated)} | ${Q.type} | ${Q.type==="dispatched"?Iu(Q.detail):K1} | ${p4(Q.description)} |
|
|
315
|
-
`)})}class TH{sourceParts=[];hasToC=!1;toc=[];get source(){return this.sourceParts.join("")}appendLineBreaks(){return this.sourceParts.push(`
|
|
316
|
-
|
|
317
|
-
`),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(EH,"").replace(x4,"-")})`}).join(`
|
|
318
|
-
`))}}class c4 extends J7{onAppend;markdownBase;constructor(q){super();this.onAppend=q.onAppend,this.markdownBase=new TH}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 fH(q,Z){let Q=Z?.write!==!1,Y=new c4({onAppend:(H,J)=>{Z.onAppend?.call(null,H,J,q)}});if(ju(Y,q,Z.entryExports),Q){let H=v38(process.cwd(),Z.outFile);await Y.write(H,Y.end()),console.log(`created "${Z.outFile}".`)}return Y.end()}import{join as Fu}from"node:path";var Du=/\.svelte$/;function Cu(q){let Z=new Map;for(let[Y,H]of Object.entries(q)){let J=Z.get(H.source)||[];J.push({id:Y,exportee:H}),Z.set(H.source,J)}let Q=[];for(let[Y,H]of Z){let J=Du.test(Y),X=H.some(({id:P,exportee:w})=>P!=="default"&&w.default),W=H.some(({exportee:P})=>!P.default),$=J&&X&&W,R=[],z=[],O=[];for(let{id:P,exportee:w}of H){if(P==="default"){z.push(`export { default } from "${Y}";`);continue}if(w.default)if(w.mixed)z.push(`export { default as ${P} } from "${Y}";`),z.push(`export { default } from "${Y}";`);else O.push(`default as ${P}`);else if(J&&!$)O.push(`default as ${P}`);else R.push(P)}if(O.length>0&&R.length>0)Q.push(`export { ${[...O,...R].join(", ")} } from "${Y}";`);else{if(R.length>0)Q.push(`export { ${R.join(", ")} } from "${Y}";`);if(O.length>0)Q.push(`export { ${O.join(", ")} } from "${Y}";`)}Q.push(...z)}return Q.join(`
|
|
319
|
-
`)}function Eu(q){return q.replace(Du,".svelte.d.ts")}async function KH(q,Z){let Q=Fu(process.cwd(),Z.outDir,"index.d.ts"),Y=tS(),H=Z.preamble+Cu(Z.exports),X=B1(q).components.map(async(W)=>{let $=Eu(Fu(Z.outDir,W.filePath));await Y.write($,CH(W,{format:Z.format}))});await Promise.all([...X,Y.write(Q,`${H}
|
|
320
|
-
`)]),console.log("created TypeScript definitions.")}H7({name:"json",componentSet:"exported",write:PH});H7({name:"markdown",componentSet:"exported",write:fH});H7({name:"types",componentSet:"all",write:KH});H7({name:"custom-elements",componentSet:"exported",write:LH});var N38=50,S38=/\.svelte$/;function Tu(q){let Z=q?.watch===!0,Q,Y,H=null,J,X=new Set,W=async()=>{if(H==null||Y==null||X.size===0)return;let R=Array.from(X);X.clear();try{let{result:z}=await H.update(R);await $6(z,q||{},Y)}catch(z){console.error("sveld: failed to regenerate types in watch mode:",z)}},$=(R)=>{if(!Z||H==null||!S38.test(R))return;X.add(R),clearTimeout(J),J=setTimeout(W,N38)};return{name:"vite-plugin-sveld",apply:Z?void 0:"build",enforce:"post",async buildStart(){if(Y=y6(q?.entry),Z&&Y!=null)H=await nS(Y,q?.glob===!0,q?.documentExports===!0),await $6(H.result,q||{},Y)},async generateBundle(){if(Z)return;if(Y!=null)Q=await W6(Y,q?.glob===!0,G6(q))},async writeBundle(){if(Z)return;if(Y!=null)await $6(Q,q||{},Y)},handleHotUpdate(R){$(R.file)},watchChange(R){$(R)}}}function r4(q,Z,Q){let Y=b4(q);if(!Y)throw Error(`sveld: built-in writer "${q}" is not registered.`);return Y.write(Z,Q)}async function $6(q,Z,Q){let Y=k38(Q);if(Z?.types!==!1)await r4("types",q.allComponentsForTypes,{outDir:"types",preamble:"",...Z?.typesOptions,exports:q.exports,inputDir:Y});if(Z?.json)await r4("json",q.components,{outFile:"COMPONENT_API.json",...Z?.jsonOptions,input:Q,inputDir:Y,entryExports:q.entryExports});if(Z?.markdown)await r4("markdown",q.components,{outFile:"COMPONENT_INDEX.md",...Z?.markdownOptions,entryExports:q.entryExports});if(Z?.customElements)await r4("custom-elements",q.components,{outFile:"custom-elements.json",...Z?.customElementsOptions,inputDir:Y});let H=Object.entries(Z?.additionalWriters??{}).map(([J,X])=>{let W=b4(J);if(!W){console.warn(`sveld: no writer registered with name "${J}"; skipping.`);return}let $=W.componentSet==="all"?q.allComponentsForTypes:q.components;return W.write($,X)});await Promise.all(H)}var vH="src/index.js",h38=`Usage: sveld [options]
|
|
321
|
-
|
|
322
|
-
Generate TypeScript definitions and component documentation for a Svelte
|
|
323
|
-
library. With no flags, only TypeScript definitions are generated for the
|
|
324
|
-
entry resolved from package.json#svelte.
|
|
325
|
-
|
|
326
|
-
Options:
|
|
327
|
-
--entry=<path> Entry point to uncompiled Svelte source (default: package.json "svelte" field)
|
|
328
|
-
--glob Analyze all *.svelte files instead of the entry barrel
|
|
329
|
-
--types Generate TypeScript definitions (default: true)
|
|
330
|
-
--json Generate component documentation in JSON format
|
|
331
|
-
--markdown Generate component documentation in Markdown format
|
|
332
|
-
--custom-elements Generate a Custom Elements Manifest (custom-elements.json)
|
|
333
|
-
--fail-fast Abort the run when a single component fails to parse
|
|
334
|
-
--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)
|
|
335
|
-
--resolve-types Expand opaque imported $props() types into JSON (alias: --resolveTypes, deprecated)
|
|
336
|
-
--check-examples Compile-check @example blocks against the TypeScript program (alias: --checkExamples, deprecated)
|
|
337
|
-
--report-diagnostics Print unresolved-type diagnostics to stderr
|
|
338
|
-
--strict Exit with code 1 when diagnostics exist (implies --report-diagnostics)
|
|
339
|
-
--types-format=<format> ".d.ts" output format: "class" (default) or "component" (Svelte 5 Component<...>)
|
|
340
|
-
--check[=<path>] Diff the parsed API against a committed snapshot; exit 1 on a breaking change (default path: COMPONENT_API.json)
|
|
341
|
-
--help Print this help message and exit
|
|
342
|
-
--version Print the installed sveld version and exit
|
|
343
|
-
`,_38={resolveTypes:"resolve-types",checkExamples:"check-examples"};function y38(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),H=_38[Q]??Q;switch(H){case"help":return{kind:"help"};case"version":return{kind:"version"};case"glob":case"types":case"json":case"markdown":return{kind:"option",option:{[H]: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 g38(q){let Z={};for(let Q of q){let Y=y38(Q);if(Y.kind!=="option")return Y;Object.assign(Z,Y.option)}return{kind:"options",options:Z}}async function x38(q){let Z=g38(q.argv.slice(2));if(Z.kind==="help"){console.log(h38);return}if(Z.kind==="version"){console.log(FE.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 vq(),H=kq(Y,Q);if(Y.typesOptions||Q.typesOptions)H.typesOptions={...Y.typesOptions,...Q.typesOptions};let J=y6(H.entry),X;if(J!==null)X=J;else if(u38(b38(q.cwd(),vH)))console.error(`sveld: could not resolve an entry point; falling back to "${vH}". Set package.json#svelte (or pass --entry) to avoid relying on this fallback.`),X=$5(R0(vH));else{q.exitCode=1;return}let W=await W6(X,H.glob===!0,G6(H)),$;if(H.check)$=await W5(W.components,Tq(H),{entryExports:W.entryExports});await $6(W,H,X);let{diagnostics:R}=W;if((H.reportDiagnostics||H.strict)&&R.length>0)console.error(Kq(R));if($){if(console.log(wQ($)),$.bump==="major")q.exitCode=1}if(H.strict&&R.length>0)q.exitCode=1}async function l38(q){if(q&&"input"in q)throw Error("sveld: the `input` option was renamed to `entry`.");let{entry:Z,...Q}=q??{},Y=await vq(),H=y6(Z??Y.entry);if(H===null)throw Error('sveld: could not resolve a Svelte entry point. Set package.json#svelte, or pass the "entry" option.');let J=kq(Y,Q,{entry:H}),X=await W6(H,J.glob===!0,G6(J)),W;if(J.check)W=await W5(X.components,Tq(J),{entryExports:X.entryExports});await $6(X,J,H);let{diagnostics:$}=X;if((J.reportDiagnostics||J.strict)&&$.length>0)console.error(Kq($));if(J.strict&&$.length>0)process.exitCode=1;return{diagnostics:$,check:W}}export{l38 as sveld,W5 as runCheck,H7 as registerWriter,w48 as listWriters,b4 as getWriter,wQ as formatCheckReport,kE as diffApiDocuments,Y88 as defineConfig,Tu as default,x38 as cli,B1 as buildComponentApiDocument,X0 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};
|