create-storm-workspace 1.97.269 → 1.97.271
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/CHANGELOG.md +20 -0
- package/README.md +1 -1
- package/index.js +4 -4
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,26 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog for Storm Ops - Create Storm Workspace
|
|
4
4
|
|
|
5
|
+
## [1.97.270](https://github.com/storm-software/storm-ops/releases/tag/create-storm-workspace%401.97.270) (08/01/2026)
|
|
6
|
+
|
|
7
|
+
### Bug Fixes
|
|
8
|
+
|
|
9
|
+
- **prettier:** Resolve issue causing exclude files from being part of release ([137627bfa](https://github.com/storm-software/storm-ops/commit/137627bfa))
|
|
10
|
+
|
|
11
|
+
### Updated Dependencies
|
|
12
|
+
|
|
13
|
+
- Updated **config-tools** to **v1.190.110**
|
|
14
|
+
|
|
15
|
+
## [1.97.269](https://github.com/storm-software/storm-ops/releases/tag/create-storm-workspace%401.97.269) (07/23/2026)
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
- **package-constants:** Resolve issue with incorrect package prefix ([24eb88022](https://github.com/storm-software/storm-ops/commit/24eb88022))
|
|
20
|
+
|
|
21
|
+
### Updated Dependencies
|
|
22
|
+
|
|
23
|
+
- Updated **config-tools** to **v1.190.109**
|
|
24
|
+
|
|
5
25
|
## [1.97.268](https://github.com/storm-software/storm-ops/releases/tag/create-storm-workspace%401.97.268) (07/23/2026)
|
|
6
26
|
|
|
7
27
|
### Miscellaneous
|
package/README.md
CHANGED
|
@@ -27,7 +27,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
|
|
|
27
27
|
|
|
28
28
|
<h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
|
|
29
29
|
|
|
30
|
-
[](https://prettier.io/) [](http://nx.dev/) [](https://nextjs.org/) [](http://commitizen.github.io/cz-cli/)  [](https://fumadocs.vercel.app/) 
|
|
31
31
|
|
|
32
32
|
<!-- prettier-ignore-start -->
|
|
33
33
|
<!-- markdownlint-disable -->
|
package/index.js
CHANGED
|
@@ -19,14 +19,14 @@ Default "index" lookups for the main are deprecated for ES modules.`,"Deprecatio
|
|
|
19
19
|
`,P=`${du(lo(p.filename))}-${(function(Ae){let De=Ae.split(bu).pop();if(!De)return;let xe=De.lastIndexOf(".");return xe<=0?De:De.slice(0,xe)})(p.filename)}`+(c.opts.sourceMaps?"+map":"")+(p.interopDefault?".i":"")+`.${oc(p.filename)}`+(p.async?".mjs":".cjs");p.jsx&&p.filename.endsWith("x")&&(P+="x");let H=c.opts.fsCache,W=Vn(H,P);if(!c.opts.rebuildFsCache&&(0,st.existsSync)(W)){let Ae=(0,st.readFileSync)(W,"utf8");if(Ae.endsWith(v))return br(c,"[cache]","[hit]",p.filename,"~>",W),Ae}br(c,"[cache]","[miss]",p.filename);let ie=b();return ie.includes("__JITI_ERROR__")||((0,st.writeFileSync)(W,ie+v,"utf8"),br(c,"[cache]","[store]",p.filename,"~>",W)),ie}function Mg(c){if(c.opts.fsCache===!0&&(c.opts.fsCache=(function(p){let b=p.filename&&Za(p.filename,"../node_modules");if(b&&(0,st.existsSync)(b))return Vn(b,".cache/jiti");let v=(0,n.tmpdir)();if(process.env.TMPDIR&&v===process.cwd()&&!process.env.JITI_RESPECT_TMPDIR_ENV){let P=process.env.TMPDIR;delete process.env.TMPDIR,v=(0,n.tmpdir)(),process.env.TMPDIR=P}return Vn(v,"jiti")})(c)),c.opts.fsCache)try{if((0,st.mkdirSync)(c.opts.fsCache,{recursive:!0}),!(function(p){try{return(0,st.accessSync)(p,st.constants.W_OK),!0}catch{return!1}})(c.opts.fsCache))throw new Error("directory is not writable!")}catch(p){br(c,"Error creating cache directory at ",c.opts.fsCache,p),c.opts.fsCache=!1}}function th(c,p){let b=Lg(c,p,()=>{let v=c.opts.transform({...c.opts.transformOptions,babel:{...c.opts.sourceMaps?{sourceFileName:p.filename,sourceMaps:"inline"}:{},...c.opts.transformOptions?.babel},interopDefault:c.opts.interopDefault,...p});return v.error&&c.opts.debug&&br(c,v.error),v.code});return b.startsWith("#!")&&(b="// "+b),b}function rh(c,p,b={}){let v=b.id||(b.filename?du(b.filename):`_jitiEval.${b.ext||(b.async?"mjs":"js")}`),P=b.filename||as(c,v,{async:b.async}),H=b.ext||pu(P),W=b.cache||c.parentCache||{},ie=/\.[cm]?tsx?$/.test(H),Ae=H===".mjs"||H===".js"&&(function(Rt){for(;Rt&&Rt!=="."&&Rt!=="/";){Rt=Vn(Rt,"..");try{let yo=(0,st.readFileSync)(Vn(Rt,"package.json"),"utf8");try{return JSON.parse(yo)}catch{}break}catch{}}})(P)?.type==="module",De=H===".cjs",xe=b.forceTranspile??(!De&&!(Ae&&b.async)&&(ie||Ae||c.isTransformRe.test(P)||Ig(p))),ze=Fp.performance.now();if(xe){p=th(c,{filename:P,source:p,ts:ie,async:b.async??!1,jsx:c.opts.jsx});let Rt=Math.round(1e3*(Fp.performance.now()-ze))/1e3;br(c,"[transpile]",b.async?"[esm]":"[cjs]",P,`(${Rt}ms)`)}else{if(br(c,"[native]",b.async?"[import]":"[require]",P),b.async)return Promise.resolve(Co(c,P,b.async)).catch(Rt=>(br(c,"Native import error:",Rt),br(c,"[fallback]",P),rh(c,p,{...b,forceTranspile:!0})));try{return Co(c,P,b.async)}catch(Rt){br(c,"Native require error:",Rt),br(c,"[fallback]",P),p=th(c,{filename:P,source:p,ts:ie,async:b.async??!1,jsx:c.opts.jsx})}}let Ve=new Ut.Module(P);Ve.filename=P,c.parentModule&&(Ve.parent=c.parentModule,Array.isArray(c.parentModule.children)&&!c.parentModule.children.includes(Ve)&&c.parentModule.children.push(Ve));let Et=ih(P,c.opts,{parentModule:Ve,parentCache:W,nativeImport:c.nativeImport,onError:c.onError,createRequire:c.createRequire},!0),ir;Ve.require=Et,Ve.path=lo(P),Ve.paths=Ut.Module._nodeModulePaths(Ve.path),W[P]=Ve,c.opts.moduleCache&&(c.nativeRequire.cache[P]=Ve);let Zr=(function(Rt,yo){return`(${yo?.async?"async ":""}function (exports, require, module, __filename, __dirname, jitiImport, jitiESMResolve) { ${Rt}
|
|
20
20
|
});`})(p,{async:b.async});try{ir=Fg().runInThisContext(Zr,{filename:P,lineOffset:0,displayErrors:!1})}catch(Rt){Rt.name==="SyntaxError"&&b.async&&c.nativeImport?(br(c,"[esm]","[import]","[fallback]",P),ir=(function(yo,nh,ac,cc,uc){let Np=`export default ${nh}`,Lp=uc?void 0:`data:text/javascript;base64,${Buffer.from(Np).toString("base64")}`;return(...Pg)=>{let lc,Mp=()=>(lc=(function(Os,Op){let sh=Vn((0,n.tmpdir)(),"jiti-esm");try{(0,st.mkdirSync)(sh,{recursive:!0})}catch{}let oh=Vn(sh,`${du(Op,pu(Op))}-${Date.now()}-${Math.random().toString(36).slice(2)}.mjs`);return(0,st.writeFileSync)(oh,Os),oh})(Np,ac),br(yo,"[esm]","[tempfile]",lc),cc(mo(lc)));return(Lp?cc(Lp).catch(Os=>{if(Os?.code!=="ENAMETOOLONG")throw Os;return Mp()}):Mp()).then(Os=>Os.default(...Pg)).finally(()=>{lc&&(0,_g.unlink)(lc).catch(()=>{})})}})(c,Zr,P,c.nativeImport,c.opts.esmEvalTempFile)):(c.opts.moduleCache&&delete c.nativeRequire.cache[P],c.onError(Rt))}let Ft;try{Ft=ir(Ve.exports,Ve.require,Ve,Ve.filename,lo(Ve.filename),Et.import,Et.esmResolve)}catch(Rt){c.opts.moduleCache&&delete c.nativeRequire.cache[P],c.onError(Rt)}function er(){if(Ve.exports&&Ve.exports.__JITI_ERROR__){let{filename:Rt,line:yo,column:nh,code:ac,message:cc}=Ve.exports.__JITI_ERROR__,uc=new Error(`${ac}: ${cc}
|
|
21
21
|
${`${Rt}:${yo}:${nh}`}`);Error.captureStackTrace(uc,Qu),c.onError(uc)}return Ve.loaded=!0,Jr(c,Ve.exports)}return b.async?Promise.resolve(Ft).then(er):er()}let Og=(0,n.platform)()==="win32";function ih(c,p={},b,v=!1){let P=v?p:(function(Ft){let er={fsCache:jn("JITI_FS_CACHE",jn("JITI_CACHE",!0)),rebuildFsCache:jn("JITI_REBUILD_FS_CACHE",!1),moduleCache:jn("JITI_MODULE_CACHE",jn("JITI_REQUIRE_CACHE",!0)),debug:jn("JITI_DEBUG",!1),sourceMaps:jn("JITI_SOURCE_MAPS",!1),interopDefault:jn("JITI_INTEROP_DEFAULT",!0),extensions:nn("JITI_EXTENSIONS",[".js",".mjs",".cjs",".ts",".tsx",".mts",".cts",".mtsx",".ctsx"]),alias:nn("JITI_ALIAS",{}),nativeModules:nn("JITI_NATIVE_MODULES",[]),transformModules:nn("JITI_TRANSFORM_MODULES",[]),tryNative:nn("JITI_TRY_NATIVE","Bun"in globalThis),esmEvalTempFile:jn("JITI_ESM_EVAL_TEMP_FILE",!1),jsx:jn("JITI_JSX",!1),tsconfigPaths:nn("JITI_TSCONFIG_PATHS",!1,!0)};er.jsx&&er.extensions.push(".jsx",".tsx");let Rt={};return Ft.cache!==void 0&&(Rt.fsCache=Ft.cache),Ft.requireCache!==void 0&&(Rt.moduleCache=Ft.requireCache),{...er,...Rt,...Ft}})(p);typeof c=="string"&&c.startsWith("file://")&&(c=go(c));let H=P.alias&&Object.keys(P.alias).length>0?ea(P.alias||{}):void 0,W;if(P.tsconfigPaths){let{getTsconfig:Ft,createPathsMatcher:er}=r("./node_modules/.pnpm/get-tsconfig@4.14.0/node_modules/get-tsconfig/dist/index.cjs"),Rt=Ft(typeof P.tsconfigPaths=="string"?P.tsconfigPaths:lo(c));Rt&&(W=er(Rt))}let ie=["typescript","jiti",...P.nativeModules||[]],Ae=new RegExp(`node_modules/(${ie.map(Ft=>Qp(Ft)).join("|")})/`),De=[...P.transformModules||[]],xe=new RegExp(`node_modules/(${De.map(Ft=>Qp(Ft)).join("|")})/`);c||(c=process.cwd()),!v&&Kl(c)&&(c=Vn(c,"_index.js"));let ze=mo(c),Ve=[...P.extensions].filter(Ft=>Ft!==".js"),Et=b.createRequire(Og?c.replace(/\//g,"\\"):c),ir={filename:c,url:ze,opts:P,alias:H,resolveTsConfigPaths:W,nativeModules:ie,transformModules:De,isNativeRe:Ae,isTransformRe:xe,additionalExts:Ve,nativeRequire:Et,onError:b.onError,parentModule:b.parentModule,parentCache:b.parentCache,nativeImport:b.nativeImport,createRequire:b.createRequire};return v||br(ir,"[init]",...[["version:",wg.rE],["module-cache:",P.moduleCache],["fs-cache:",P.fsCache],["rebuild-fs-cache:",P.rebuildFsCache],["interop-defaults:",P.interopDefault]].flat()),v||Mg(ir),Object.assign(function(Ft){return Qu(ir,Ft,{async:!1})},{cache:P.moduleCache?Et.cache:Object.create(null),extensions:Et.extensions,main:Et.main,options:P,resolve:Object.assign(function(Ft,er){return as(ir,Ft,{...er,async:!1})},{paths:Et.resolve.paths}),transform:Ft=>th(ir,Ft),evalModule:(Ft,er)=>rh(ir,Ft,er),async import(Ft,er){let Rt=await Qu(ir,Ft,{...er,async:!0});return er?.default?Rt?.default??Rt:Rt},esmResolve(Ft,er){typeof er=="string"&&(er={parentURL:er});let Rt=as(ir,Ft,{parentURL:ze,...er,async:!0});return!Rt||typeof Rt!="string"||Rt.startsWith("file://")?Rt:mo(Rt)}})}})(),oR.exports=i.default})()});function Jy(e,t){for(var r=65536,i=0;i<t.length;i+=2){if(r+=t[i],r>e)return!1;if(r+=t[i+1],r>=e)return!0}return!1}function bo(e,t){return e<65?e===36:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&MW.test(String.fromCharCode(e)):t===!1?!1:Jy(e,fR)}function dc(e,t){return e<48?e===36:e<58?!0:e<65?!1:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&OW.test(String.fromCharCode(e)):t===!1?!1:Jy(e,fR)||Jy(e,FW)}function ls(e,t){return new Ar(e,{beforeExpr:!0,binop:t})}function cr(e,t){return t===void 0&&(t={}),t.keyword=e,eb[e]=new Ar(e,t)}function hh(e){return e===10||e===13||e===8232||e===8233}function ER(e,t,r){r===void 0&&(r=e.length);for(var i=t;i<r;i++){var n=e.charCodeAt(i);if(hh(n))return i<r-1&&n===13&&e.charCodeAt(i+1)===10?i+2:i+1}return-1}function pc(e){return hR[e]||(hR[e]=new RegExp("^(?:"+e.replace(/ /g,"|")+")$"))}function oa(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10)+55296,(e&1023)+56320))}function bR(e,t){for(var r=1,i=0;;){var n=ER(e,i,t);if(n<0)return new Hp(r,t-i);++r,i=n}}function $W(e){var t={};for(var r in Zy)t[r]=e&&Ah(e,r)?e[r]:Zy[r];if(t.ecmaVersion==="latest"?t.ecmaVersion=1e8:t.ecmaVersion==null?(!AR&&typeof console=="object"&&console.warn&&(AR=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
|
|
22
|
-
Defaulting to 2020, but this will stop working in the future.`)),t.ecmaVersion=11):t.ecmaVersion>=2015&&(t.ecmaVersion-=2009),t.allowReserved==null&&(t.allowReserved=t.ecmaVersion<5),(!e||e.allowHashBang==null)&&(t.allowHashBang=t.ecmaVersion>=14),lR(t.onToken)){var i=t.onToken;t.onToken=function(n){return i.push(n)}}if(lR(t.onComment)&&(t.onComment=GW(t,t.onComment)),t.sourceType==="commonjs"&&t.allowAwaitOutsideFunction)throw new Error("Cannot use allowAwaitOutsideFunction with sourceType: commonjs");return t}function GW(e,t){return function(r,i,n,s,o,a){var u={type:r?"Block":"Line",value:i,start:n,end:s};e.locations&&(u.loc=new Wg(this,o,a)),e.ranges&&(u.range=[n,s]),t.push(u)}}function ib(e,t){return Ru|(e?tb:0)|(t?IR:0)}function YW(e,t){var r=t.key.name,i=e[r],n="true";return t.type==="MethodDefinition"&&(t.kind==="get"||t.kind==="set")&&(n=(t.static?"s":"i")+t.kind),i==="iget"&&n==="iset"||i==="iset"&&n==="iget"||i==="sget"&&n==="sset"||i==="sset"&&n==="sget"?(e[r]="true",!1):i?!0:(e[r]=n,!1)}function zg(e,t){var r=e.computed,i=e.key;return!r&&(i.type==="Identifier"&&i.name===t||i.type==="Literal"&&i.value===t)}function kR(e){return e.type==="Identifier"||e.type==="ParenthesizedExpression"&&kR(e.expression)}function Xy(e){return e.type==="MemberExpression"&&e.property.type==="PrivateIdentifier"||e.type==="ChainExpression"&&Xy(e.expression)||e.type==="ParenthesizedExpression"&&Xy(e.expression)}function RR(e,t,r,i){return e.type=t,e.end=r,this.options.locations&&(e.loc.end=i),this.options.ranges&&(e.range[1]=r),e}function nJ(e){var t=VR[e]={binary:pc(XW[e]+" "+pR),binaryOfStrings:pc(tJ[e]),nonBinary:{General_Category:pc(pR),Script:pc(iJ[e])}};t.nonBinary.Script_Extensions=t.nonBinary.Script,t.nonBinary.gc=t.nonBinary.General_Category,t.nonBinary.sc=t.nonBinary.Script,t.nonBinary.scx=t.nonBinary.Script_Extensions}function sJ(e){for(var t in e)return!0;return!1}function oJ(e){return e===105||e===109||e===115}function $R(e){return e===36||e>=40&&e<=43||e===46||e===63||e>=91&&e<=94||e>=123&&e<=125}function aJ(e){return bo(e,!0)||e===36||e===95}function cJ(e){return dc(e,!0)||e===36||e===95||e===8204||e===8205}function GR(e){return e>=65&&e<=90||e>=97&&e<=122}function uJ(e){return e>=0&&e<=1114111}function lJ(e){return e===100||e===68||e===115||e===83||e===119||e===87}function zR(e){return GR(e)||e===95}function hJ(e){return zR(e)||em(e)}function AJ(e){return e===33||e>=35&&e<=38||e>=42&&e<=44||e===46||e>=58&&e<=64||e===94||e===96||e===126}function pJ(e){return e===40||e===41||e===45||e===47||e>=91&&e<=93||e>=123&&e<=125}function dJ(e){return e===33||e===35||e===37||e===38||e===44||e===45||e>=58&&e<=62||e===64||e===96||e===126}function em(e){return e>=48&&e<=57}function HR(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function YR(e){return e>=65&&e<=70?10+(e-65):e>=97&&e<=102?10+(e-97):e-48}function WR(e){return e>=48&&e<=55}function fJ(e,t){return t?parseInt(e,8):parseFloat(e.replace(/_/g,""))}function JR(e){return typeof BigInt!="function"?null:BigInt(e.replace(/_/g,""))}var FW,fR,NW,gR,Hy,Yy,LW,mR,MW,OW,Ar,hs,mn,eb,j,En,PW,CR,Ci,yR,UW,qW,Ah,lR,hR,VW,Hp,Wg,Zy,AR,ku,Ru,tb,IR,rb,wR,Jg,BR,_u,Yp,vR,Zg,jg,nb,ca,xR,QR,SR,yi,ps,$i,jW,Kg,ht,sb,zW,HW,zp,Ky,DR,ds,qs,qr,ph,_t,WW,Hg,fc,JW,Xg,Wp,ZW,_R,TR,FR,NR,LR,KW,XW,eJ,tJ,pR,MR,OR,PR,UR,qR,rJ,iJ,VR,dR,Gg,Wy,at,Yg,Io,jR,aa,As,ob,tr,ZR,gJ,KR=jr(()=>{FW=[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],fR=[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],NW="\u200C\u200D\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ADD\u1AE0-\u1AEB\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65",gR="\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088F\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5C\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDC-\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7DC\uA7F1-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC",Hy={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"},Yy="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",LW={5:Yy,"5module":Yy+" export import",6:Yy+" const class extends export import super"},mR=/^in(stanceof)?$/,MW=new RegExp("["+gR+"]"),OW=new RegExp("["+gR+NW+"]");Ar=function(t,r){r===void 0&&(r={}),this.label=t,this.keyword=r.keyword,this.beforeExpr=!!r.beforeExpr,this.startsExpr=!!r.startsExpr,this.isLoop=!!r.isLoop,this.isAssign=!!r.isAssign,this.prefix=!!r.prefix,this.postfix=!!r.postfix,this.binop=r.binop||null,this.updateContext=null};hs={beforeExpr:!0},mn={startsExpr:!0},eb={};j={num:new Ar("num",mn),regexp:new Ar("regexp",mn),string:new Ar("string",mn),name:new Ar("name",mn),privateId:new Ar("privateId",mn),eof:new Ar("eof"),bracketL:new Ar("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new Ar("]"),braceL:new Ar("{",{beforeExpr:!0,startsExpr:!0}),braceR:new Ar("}"),parenL:new Ar("(",{beforeExpr:!0,startsExpr:!0}),parenR:new Ar(")"),comma:new Ar(",",hs),semi:new Ar(";",hs),colon:new Ar(":",hs),dot:new Ar("."),question:new Ar("?",hs),questionDot:new Ar("?."),arrow:new Ar("=>",hs),template:new Ar("template"),invalidTemplate:new Ar("invalidTemplate"),ellipsis:new Ar("...",hs),backQuote:new Ar("`",mn),dollarBraceL:new Ar("${",{beforeExpr:!0,startsExpr:!0}),eq:new Ar("=",{beforeExpr:!0,isAssign:!0}),assign:new Ar("_=",{beforeExpr:!0,isAssign:!0}),incDec:new Ar("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new Ar("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:ls("||",1),logicalAND:ls("&&",2),bitwiseOR:ls("|",3),bitwiseXOR:ls("^",4),bitwiseAND:ls("&",5),equality:ls("==/!=/===/!==",6),relational:ls("</>/<=/>=",7),bitShift:ls("<</>>/>>>",8),plusMin:new Ar("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:ls("%",10),star:ls("*",10),slash:ls("/",10),starstar:new Ar("**",{beforeExpr:!0}),coalesce:ls("??",1),_break:cr("break"),_case:cr("case",hs),_catch:cr("catch"),_continue:cr("continue"),_debugger:cr("debugger"),_default:cr("default",hs),_do:cr("do",{isLoop:!0,beforeExpr:!0}),_else:cr("else",hs),_finally:cr("finally"),_for:cr("for",{isLoop:!0}),_function:cr("function",mn),_if:cr("if"),_return:cr("return",hs),_switch:cr("switch"),_throw:cr("throw",hs),_try:cr("try"),_var:cr("var"),_const:cr("const"),_while:cr("while",{isLoop:!0}),_with:cr("with"),_new:cr("new",{beforeExpr:!0,startsExpr:!0}),_this:cr("this",mn),_super:cr("super",mn),_class:cr("class",mn),_extends:cr("extends",hs),_export:cr("export"),_import:cr("import",mn),_null:cr("null",mn),_true:cr("true",mn),_false:cr("false",mn),_in:cr("in",{beforeExpr:!0,binop:7}),_instanceof:cr("instanceof",{beforeExpr:!0,binop:7}),_typeof:cr("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:cr("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:cr("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},En=/\r\n?|\n|\u2028|\u2029/,PW=new RegExp(En.source,"g");CR=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,Ci=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,yR=Object.prototype,UW=yR.hasOwnProperty,qW=yR.toString,Ah=Object.hasOwn||(function(e,t){return UW.call(e,t)}),lR=Array.isArray||(function(e){return qW.call(e)==="[object Array]"}),hR=Object.create(null);VW=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,Hp=function(t,r){this.line=t,this.column=r};Hp.prototype.offset=function(t){return new Hp(this.line,this.column+t)};Wg=function(t,r,i){this.start=r,this.end=i,t.sourceFile!==null&&(this.source=t.sourceFile)};Zy={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},AR=!1;ku=1,Ru=2,tb=4,IR=8,rb=16,wR=32,Jg=64,BR=128,_u=256,Yp=512,vR=1024,Zg=ku|Ru|_u;jg=0,nb=1,ca=2,xR=3,QR=4,SR=5,yi=function(t,r,i){this.options=t=$W(t),this.sourceFile=t.sourceFile,this.keywords=pc(LW[t.ecmaVersion>=6?6:t.sourceType==="module"?"5module":5]);var n="";t.allowReserved!==!0&&(n=Hy[t.ecmaVersion>=6?6:t.ecmaVersion===5?5:3],t.sourceType==="module"&&(n+=" await")),this.reservedWords=pc(n);var s=(n?n+" ":"")+Hy.strict;this.reservedWordsStrict=pc(s),this.reservedWordsStrictBind=pc(s+" "+Hy.strictBind),this.input=String(r),this.containsEsc=!1,i?(this.pos=i,this.lineStart=this.input.lastIndexOf(`
|
|
23
|
-
`,i-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(En).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=j.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=t.sourceType==="module",this.strict=this.inModule||t.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&&t.allowHashBang&&this.input.slice(0,2)==="#!"&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(this.options.sourceType==="commonjs"?Ru:ku),this.regexpState=null,this.privateNameStack=[]},ps={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}};yi.prototype.parse=function(){var t=this,r=this.options.program||this.startNode();return this.nextToken(),this.catchStackOverflow(function(){return t.parseTopLevel(r)})};ps.inFunction.get=function(){return(this.currentVarScope().flags&Ru)>0};ps.inGenerator.get=function(){return(this.currentVarScope().flags&IR)>0};ps.inAsync.get=function(){return(this.currentVarScope().flags&tb)>0};ps.canAwait.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e],r=t.flags;if(r&(_u|Yp))return!1;if(r&Ru)return(r&tb)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction};ps.allowReturn.get=function(){return!!(this.inFunction||this.options.allowReturnOutsideFunction&&this.currentVarScope().flags&ku)};ps.allowSuper.get=function(){var e=this.currentThisScope(),t=e.flags;return(t&Jg)>0||this.options.allowSuperOutsideMethod};ps.allowDirectSuper.get=function(){return(this.currentThisScope().flags&BR)>0};ps.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())};ps.allowNewDotTarget.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e],r=t.flags;if(r&(_u|Yp)||r&Ru&&!(r&rb))return!0}return!1};ps.allowUsing.get=function(){var e=this.currentScope(),t=e.flags;return!(t&vR||!this.inModule&&t&ku)};ps.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&_u)>0};yi.extend=function(){for(var t=[],r=arguments.length;r--;)t[r]=arguments[r];for(var i=this,n=0;n<t.length;n++)i=t[n](i);return i};yi.parse=function(t,r){return new this(r,t).parse()};yi.parseExpressionAt=function(t,r,i){var n=new this(i,t,r);return n.nextToken(),n.parseExpression()};yi.tokenizer=function(t,r){return new this(r,t)};Object.defineProperties(yi.prototype,ps);$i=yi.prototype,jW=/^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;$i.strictDirective=function(e){if(this.options.ecmaVersion<5)return!1;for(;;){Ci.lastIndex=e,e+=Ci.exec(this.input)[0].length;var t=jW.exec(this.input.slice(e));if(!t)return!1;if((t[1]||t[2])==="use strict"){Ci.lastIndex=e+t[0].length;var r=Ci.exec(this.input),i=r.index+r[0].length,n=this.input.charAt(i);return n===";"||n==="}"||En.test(r[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(n)||n==="!"&&this.input.charAt(i+1)==="=")}e+=t[0].length,Ci.lastIndex=e,e+=Ci.exec(this.input)[0].length,this.input[e]===";"&&e++}};$i.eat=function(e){return this.type===e?(this.next(),!0):!1};$i.isContextual=function(e){return this.type===j.name&&this.value===e&&!this.containsEsc};$i.eatContextual=function(e){return this.isContextual(e)?(this.next(),!0):!1};$i.catchStackOverflow=function(e){try{return e()}catch(t){if(t instanceof Error&&(/\bstack\b.*\b(exceeded|overflow)\b/i.test(t.message)||/\btoo much recursion\b/i.test(t.message)))this.raise(this.start,"Not enough stack space to parse input");else throw t}};$i.expectContextual=function(e){this.eatContextual(e)||this.unexpected()};$i.canInsertSemicolon=function(){return this.type===j.eof||this.type===j.braceR||En.test(this.input.slice(this.lastTokEnd,this.start))};$i.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0};$i.semicolon=function(){!this.eat(j.semi)&&!this.insertSemicolon()&&this.unexpected()};$i.afterTrailingComma=function(e,t){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t||this.next(),!0};$i.expect=function(e){this.eat(e)||this.unexpected()};$i.unexpected=function(e){this.raise(e??this.start,"Unexpected token")};Kg=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};$i.checkPatternErrors=function(e,t){if(e){e.trailingComma>-1&&this.raiseRecoverable(e.trailingComma,"Comma is not permitted after the rest element");var r=t?e.parenthesizedAssign:e.parenthesizedBind;r>-1&&this.raiseRecoverable(r,t?"Assigning to rvalue":"Parenthesized pattern")}};$i.checkExpressionErrors=function(e,t){if(!e)return!1;var r=e.shorthandAssign,i=e.doubleProto;if(!t)return r>=0||i>=0;r>=0&&this.raise(r,"Shorthand property assignments are valid only in destructuring patterns"),i>=0&&this.raiseRecoverable(i,"Redefinition of __proto__ property")};$i.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,"Yield expression cannot be a default value"),this.awaitPos&&this.raise(this.awaitPos,"Await expression cannot be a default value")};$i.isSimpleAssignTarget=function(e){return e.type==="ParenthesizedExpression"?this.isSimpleAssignTarget(e.expression):e.type==="Identifier"||e.type==="MemberExpression"};ht=yi.prototype;ht.parseTopLevel=function(e){var t=Object.create(null);for(e.body||(e.body=[]);this.type!==j.eof;){var r=this.parseStatement(null,!0,t);e.body.push(r)}if(this.inModule)for(var i=0,n=Object.keys(this.undefinedExports);i<n.length;i+=1){var s=n[i];this.raiseRecoverable(this.undefinedExports[s].start,"Export '"+s+"' is not defined")}return this.adaptDirectivePrologue(e.body),this.next(),e.sourceType=this.options.sourceType==="commonjs"?"script":this.options.sourceType,this.finishNode(e,"Program")};sb={kind:"loop"},zW={kind:"switch"};ht.isLet=function(e){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;Ci.lastIndex=this.pos;var t=Ci.exec(this.input),r=this.pos+t[0].length,i=this.fullCharCodeAt(r);if(i===91||i===92)return!0;if(e)return!1;if(i===123)return!0;if(bo(i)){var n=r;do r+=i<=65535?1:2;while(dc(i=this.fullCharCodeAt(r)));if(i===92)return!0;var s=this.input.slice(n,r);if(!mR.test(s))return!0}return!1};ht.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;Ci.lastIndex=this.pos;var e=Ci.exec(this.input),t=this.pos+e[0].length,r;return!En.test(this.input.slice(this.pos,t))&&this.input.slice(t,t+8)==="function"&&(t+8===this.input.length||!(dc(r=this.fullCharCodeAt(t+8))||r===92))};ht.isUsingKeyword=function(e,t){if(this.options.ecmaVersion<17||!this.isContextual(e?"await":"using"))return!1;Ci.lastIndex=this.pos;var r=Ci.exec(this.input),i=this.pos+r[0].length;if(En.test(this.input.slice(this.pos,i)))return!1;if(e){var n=i+5,s;if(this.input.slice(i,n)!=="using"||n===this.input.length||dc(s=this.fullCharCodeAt(n))||s===92)return!1;Ci.lastIndex=n;var o=Ci.exec(this.input);if(i=n+o[0].length,o&&En.test(this.input.slice(n,i)))return!1}var a=this.fullCharCodeAt(i);if(!bo(a)&&a!==92)return!1;var u=i;do i+=a<=65535?1:2;while(dc(a=this.fullCharCodeAt(i)));if(a===92)return!0;var l=this.input.slice(u,i);if(mR.test(l))return!1;if(t&&!e&&l==="of"){Ci.lastIndex=i;var A=Ci.exec(this.input);if(i=i+A[0].length,this.input.charCodeAt(i)!==61||(a=this.input.charCodeAt(i+1))===61||a===62)return!1}return!0};ht.isAwaitUsing=function(e){return this.isUsingKeyword(!0,e)};ht.isUsing=function(e){return this.isUsingKeyword(!1,e)};ht.parseStatement=function(e,t,r){var i=this.type,n=this.startNode(),s;switch(this.isLet(e)&&(i=j._var,s="let"),i){case j._break:case j._continue:return this.parseBreakContinueStatement(n,i.keyword);case j._debugger:return this.parseDebuggerStatement(n);case j._do:return this.parseDoStatement(n);case j._for:return this.parseForStatement(n);case j._function:return e&&(this.strict||e!=="if"&&e!=="label")&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(n,!1,!e);case j._class:return e&&this.unexpected(),this.parseClass(n,!0);case j._if:return this.parseIfStatement(n);case j._return:return this.parseReturnStatement(n);case j._switch:return this.parseSwitchStatement(n);case j._throw:return this.parseThrowStatement(n);case j._try:return this.parseTryStatement(n);case j._const:case j._var:return s=s||this.value,e&&s!=="var"&&this.unexpected(),this.parseVarStatement(n,s);case j._while:return this.parseWhileStatement(n);case j._with:return this.parseWithStatement(n);case j.braceL:return this.parseBlock(!0,n);case j.semi:return this.parseEmptyStatement(n);case j._export:case j._import:if(this.options.ecmaVersion>10&&i===j._import){Ci.lastIndex=this.pos;var o=Ci.exec(this.input),a=this.pos+o[0].length,u=this.input.charCodeAt(a);if(u===40||u===46)return this.parseExpressionStatement(n,this.parseExpression())}return this.options.allowImportExportEverywhere||(t||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),i===j._import?this.parseImport(n):this.parseExport(n,r);default:if(this.isAsyncFunction())return e&&this.unexpected(),this.next(),this.parseFunctionStatement(n,!0,!e);var l=this.isAwaitUsing(!1)?"await using":this.isUsing(!1)?"using":null;if(l)return 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"),e&&this.raise(this.start,"Using declaration is not allowed in single-statement positions"),l==="await using"&&(this.canAwait||this.raise(this.start,"Await using cannot appear outside of async function"),this.next()),this.next(),this.parseVar(n,!1,l),this.semicolon(),this.finishNode(n,"VariableDeclaration");var A=this.value,h=this.parseExpression();return i===j.name&&h.type==="Identifier"&&this.eat(j.colon)?this.parseLabeledStatement(n,A,h,e):this.parseExpressionStatement(n,h)}};ht.parseBreakContinueStatement=function(e,t){var r=t==="break";this.next(),this.eat(j.semi)||this.insertSemicolon()?e.label=null:this.type!==j.name?this.unexpected():(e.label=this.parseIdent(),this.semicolon());for(var i=0;i<this.labels.length;++i){var n=this.labels[i];if((e.label==null||n.name===e.label.name)&&(n.kind!=null&&(r||n.kind==="loop")||e.label&&r))break}return i===this.labels.length&&this.raise(e.start,"Unsyntactic "+t),this.finishNode(e,r?"BreakStatement":"ContinueStatement")};ht.parseDebuggerStatement=function(e){return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement")};ht.parseDoStatement=function(e){return this.next(),this.labels.push(sb),e.body=this.parseStatement("do"),this.labels.pop(),this.expect(j._while),e.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(j.semi):this.semicolon(),this.finishNode(e,"DoWhileStatement")};ht.parseForStatement=function(e){this.next();var t=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(sb),this.enterScope(0),this.expect(j.parenL),this.type===j.semi)return t>-1&&this.unexpected(t),this.parseFor(e,null);var r=this.isLet();if(this.type===j._var||this.type===j._const||r){var i=this.startNode(),n=r?"let":this.value;return this.next(),this.parseVar(i,!0,n),this.finishNode(i,"VariableDeclaration"),this.parseForAfterInit(e,i,t)}var s=this.isContextual("let"),o=!1,a=this.isUsing(!0)?"using":this.isAwaitUsing(!0)?"await using":null;if(a){var u=this.startNode();return this.next(),a==="await using"&&(this.canAwait||this.raise(this.start,"Await using cannot appear outside of async function"),this.next()),this.parseVar(u,!0,a),this.finishNode(u,"VariableDeclaration"),this.parseForAfterInit(e,u,t)}var l=this.containsEsc,A=new Kg,h=this.start,d=t>-1?this.parseExprSubscripts(A,"await"):this.parseExpression(!0,A);return this.type===j._in||(o=this.options.ecmaVersion>=6&&this.isContextual("of"))?(t>-1?(this.type===j._in&&this.unexpected(t),e.await=!0):o&&this.options.ecmaVersion>=8&&(d.start===h&&!l&&d.type==="Identifier"&&d.name==="async"?this.unexpected():this.options.ecmaVersion>=9&&(e.await=!1)),s&&o&&this.raise(d.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(d,!1,A),this.checkLValPattern(d),this.parseForIn(e,d)):(this.checkExpressionErrors(A,!0),t>-1&&this.unexpected(t),this.parseFor(e,d))};ht.parseForAfterInit=function(e,t,r){return(this.type===j._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&t.declarations.length===1?(this.type===j._in?((t.kind==="using"||t.kind==="await using")&&!t.declarations[0].init&&this.raise(this.start,"Using declaration is not allowed in for-in loops"),this.options.ecmaVersion>=9&&r>-1&&this.unexpected(r)):this.options.ecmaVersion>=9&&(e.await=r>-1),this.parseForIn(e,t)):(r>-1&&this.unexpected(r),this.parseFor(e,t))};ht.parseFunctionStatement=function(e,t,r){return this.next(),this.parseFunction(e,zp|(r?0:Ky),!1,t)};ht.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement("if"),e.alternate=this.eat(j._else)?this.parseStatement("if"):null,this.finishNode(e,"IfStatement")};ht.parseReturnStatement=function(e){return this.allowReturn||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(j.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")};ht.parseSwitchStatement=function(e){this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(j.braceL),this.labels.push(zW),this.enterScope(vR);for(var t,r=!1;this.type!==j.braceR;)if(this.type===j._case||this.type===j._default){var i=this.type===j._case;t&&this.finishNode(t,"SwitchCase"),e.cases.push(t=this.startNode()),t.consequent=[],this.next(),i?t.test=this.parseExpression():(r&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),r=!0,t.test=null),this.expect(j.colon)}else t||this.unexpected(),t.consequent.push(this.parseStatement(null));return this.exitScope(),t&&this.finishNode(t,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(e,"SwitchStatement")};ht.parseThrowStatement=function(e){return this.next(),En.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")};HW=[];ht.parseCatchClauseParam=function(){var e=this.parseBindingAtom(),t=e.type==="Identifier";return this.enterScope(t?wR:0),this.checkLValPattern(e,t?QR:ca),this.expect(j.parenR),e};ht.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===j._catch){var t=this.startNode();this.next(),this.eat(j.parenL)?t.param=this.parseCatchClauseParam():(this.options.ecmaVersion<10&&this.unexpected(),t.param=null,this.enterScope(0)),t.body=this.parseBlock(!1),this.exitScope(),e.handler=this.finishNode(t,"CatchClause")}return e.finalizer=this.eat(j._finally)?this.parseBlock():null,!e.handler&&!e.finalizer&&this.raise(e.start,"Missing catch or finally clause"),this.finishNode(e,"TryStatement")};ht.parseVarStatement=function(e,t,r){return this.next(),this.parseVar(e,!1,t,r),this.semicolon(),this.finishNode(e,"VariableDeclaration")};ht.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(sb),e.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(e,"WhileStatement")};ht.parseWithStatement=function(e){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),e.object=this.parseParenExpression(),e.body=this.parseStatement("with"),this.finishNode(e,"WithStatement")};ht.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,"EmptyStatement")};ht.parseLabeledStatement=function(e,t,r,i){for(var n=0,s=this.labels;n<s.length;n+=1){var o=s[n];o.name===t&&this.raise(r.start,"Label '"+t+"' is already declared")}for(var a=this.type.isLoop?"loop":this.type===j._switch?"switch":null,u=this.labels.length-1;u>=0;u--){var l=this.labels[u];if(l.statementStart===e.start)l.statementStart=this.start,l.kind=a;else break}return this.labels.push({name:t,kind:a,statementStart:this.start}),e.body=this.parseStatement(i?i.indexOf("label")===-1?i+"label":i:"label"),this.labels.pop(),e.label=r,this.finishNode(e,"LabeledStatement")};ht.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")};ht.parseBlock=function(e,t,r){for(e===void 0&&(e=!0),t===void 0&&(t=this.startNode()),t.body=[],this.expect(j.braceL),e&&this.enterScope(0);this.type!==j.braceR;){var i=this.parseStatement(null);t.body.push(i)}return r&&(this.strict=!1),this.next(),e&&this.exitScope(),this.finishNode(t,"BlockStatement")};ht.parseFor=function(e,t){return e.init=t,this.expect(j.semi),e.test=this.type===j.semi?null:this.parseExpression(),this.expect(j.semi),e.update=this.type===j.parenR?null:this.parseExpression(),this.expect(j.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,"ForStatement")};ht.parseForIn=function(e,t){var r=this.type===j._in;return this.next(),t.type==="VariableDeclaration"&&t.declarations[0].init!=null&&(!r||this.options.ecmaVersion<8||this.strict||t.kind!=="var"||t.declarations[0].id.type!=="Identifier")&&this.raise(t.start,(r?"for-in":"for-of")+" loop variable declaration may not have an initializer"),e.left=t,e.right=r?this.parseExpression():this.parseMaybeAssign(),this.expect(j.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,r?"ForInStatement":"ForOfStatement")};ht.parseVar=function(e,t,r,i){for(e.declarations=[],e.kind=r;;){var n=this.startNode();if(this.parseVarId(n,r),this.eat(j.eq)?n.init=this.parseMaybeAssign(t):!i&&r==="const"&&!(this.type===j._in||this.options.ecmaVersion>=6&&this.isContextual("of"))?this.unexpected():!i&&(r==="using"||r==="await using")&&this.options.ecmaVersion>=17&&this.type!==j._in&&!this.isContextual("of")?this.raise(this.lastTokEnd,"Missing initializer in "+r+" declaration"):!i&&n.id.type!=="Identifier"&&!(t&&(this.type===j._in||this.isContextual("of")))?this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):n.init=null,e.declarations.push(this.finishNode(n,"VariableDeclarator")),!this.eat(j.comma))break}return e};ht.parseVarId=function(e,t){e.id=t==="using"||t==="await using"?this.parseIdent():this.parseBindingAtom(),this.checkLValPattern(e.id,t==="var"?nb:ca,!1)};zp=1,Ky=2,DR=4;ht.parseFunction=function(e,t,r,i,n){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!i)&&(this.type===j.star&&t&Ky&&this.unexpected(),e.generator=this.eat(j.star)),this.options.ecmaVersion>=8&&(e.async=!!i),t&zp&&(e.id=t&DR&&this.type!==j.name?null:this.parseIdent(),e.id&&!(t&Ky)&&this.checkLValSimple(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?nb:ca:xR));var s=this.yieldPos,o=this.awaitPos,a=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(ib(e.async,e.generator)),t&zp||(e.id=this.type===j.name?this.parseIdent():null),this.parseFunctionParams(e),this.parseFunctionBody(e,r,!1,n),this.yieldPos=s,this.awaitPos=o,this.awaitIdentPos=a,this.finishNode(e,t&zp?"FunctionDeclaration":"FunctionExpression")};ht.parseFunctionParams=function(e){this.expect(j.parenL),e.params=this.parseBindingList(j.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()};ht.parseClass=function(e,t){this.next();var r=this.strict;this.strict=!0,this.parseClassId(e,t),this.parseClassSuper(e);var i=this.enterClassBody(),n=this.startNode(),s=!1;for(n.body=[],this.expect(j.braceL);this.type!==j.braceR;){var o=this.parseClassElement(e.superClass!==null);o&&(n.body.push(o),o.type==="MethodDefinition"&&o.kind==="constructor"?(s&&this.raiseRecoverable(o.start,"Duplicate constructor in the same class"),s=!0):o.key&&o.key.type==="PrivateIdentifier"&&YW(i,o)&&this.raiseRecoverable(o.key.start,"Identifier '#"+o.key.name+"' has already been declared"))}return this.strict=r,this.next(),e.body=this.finishNode(n,"ClassBody"),this.exitClassBody(),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")};ht.parseClassElement=function(e){if(this.eat(j.semi))return null;var t=this.options.ecmaVersion,r=this.startNode(),i="",n=!1,s=!1,o="method",a=!1;if(this.eatContextual("static")){if(t>=13&&this.eat(j.braceL))return this.parseClassStaticBlock(r),r;this.isClassElementNameStart()||this.type===j.star?a=!0:i="static"}if(r.static=a,!i&&t>=8&&this.eatContextual("async")&&((this.isClassElementNameStart()||this.type===j.star)&&!this.canInsertSemicolon()?s=!0:i="async"),!i&&(t>=9||!s)&&this.eat(j.star)&&(n=!0),!i&&!s&&!n){var u=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?o=u:i=u)}if(i?(r.computed=!1,r.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),r.key.name=i,this.finishNode(r.key,"Identifier")):this.parseClassElementName(r),t<13||this.type===j.parenL||o!=="method"||n||s){var l=!r.static&&zg(r,"constructor"),A=l&&e;l&&o!=="method"&&this.raise(r.key.start,"Constructor can't have get/set modifier"),r.kind=l?"constructor":o,this.parseClassMethod(r,n,s,A)}else this.parseClassField(r);return r};ht.isClassElementNameStart=function(){return this.type===j.name||this.type===j.privateId||this.type===j.num||this.type===j.string||this.type===j.bracketL||this.type.keyword};ht.parseClassElementName=function(e){this.type===j.privateId?(this.value==="constructor"&&this.raise(this.start,"Classes can't have an element named '#constructor'"),e.computed=!1,e.key=this.parsePrivateIdent()):this.parsePropertyName(e)};ht.parseClassMethod=function(e,t,r,i){var n=e.key;e.kind==="constructor"?(t&&this.raise(n.start,"Constructor can't be a generator"),r&&this.raise(n.start,"Constructor can't be an async method")):e.static&&zg(e,"prototype")&&this.raise(n.start,"Classes may not have a static property named prototype");var s=e.value=this.parseMethod(t,r,i);return e.kind==="get"&&s.params.length!==0&&this.raiseRecoverable(s.start,"getter should have no params"),e.kind==="set"&&s.params.length!==1&&this.raiseRecoverable(s.start,"setter should have exactly one param"),e.kind==="set"&&s.params[0].type==="RestElement"&&this.raiseRecoverable(s.params[0].start,"Setter cannot use rest params"),this.finishNode(e,"MethodDefinition")};ht.parseClassField=function(e){return zg(e,"constructor")?this.raise(e.key.start,"Classes can't have a field named 'constructor'"):e.static&&zg(e,"prototype")&&this.raise(e.key.start,"Classes can't have a static field named 'prototype'"),this.eat(j.eq)?(this.enterScope(Yp|Jg),e.value=this.parseMaybeAssign(),this.exitScope()):e.value=null,this.semicolon(),this.finishNode(e,"PropertyDefinition")};ht.parseClassStaticBlock=function(e){e.body=[];var t=this.labels;for(this.labels=[],this.enterScope(_u|Jg);this.type!==j.braceR;){var r=this.parseStatement(null);e.body.push(r)}return this.next(),this.exitScope(),this.labels=t,this.finishNode(e,"StaticBlock")};ht.parseClassId=function(e,t){this.type===j.name?(e.id=this.parseIdent(),t&&this.checkLValSimple(e.id,ca,!1)):(t===!0&&this.unexpected(),e.id=null)};ht.parseClassSuper=function(e){e.superClass=this.eat(j._extends)?this.parseExprSubscripts(null,!1):null};ht.enterClassBody=function(){var e={declared:Object.create(null),used:[]};return this.privateNameStack.push(e),e.declared};ht.exitClassBody=function(){var e=this.privateNameStack.pop(),t=e.declared,r=e.used;if(this.options.checkPrivateFields)for(var i=this.privateNameStack.length,n=i===0?null:this.privateNameStack[i-1],s=0;s<r.length;++s){var o=r[s];Ah(t,o.name)||(n?n.used.push(o):this.raiseRecoverable(o.start,"Private field '#"+o.name+"' must be declared in an enclosing class"))}};ht.parseExportAllDeclaration=function(e,t){return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(e.exported=this.parseModuleExportName(),this.checkExport(t,e.exported,this.lastTokStart)):e.exported=null),this.expectContextual("from"),this.type!==j.string&&this.unexpected(),e.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(e,"ExportAllDeclaration")};ht.parseExport=function(e,t){if(this.next(),this.eat(j.star))return this.parseExportAllDeclaration(e,t);if(this.eat(j._default))return this.checkExport(t,"default",this.lastTokStart),e.declaration=this.parseExportDefaultDeclaration(),this.finishNode(e,"ExportDefaultDeclaration");if(this.shouldParseExportStatement())e.declaration=this.parseExportDeclaration(e),e.declaration.type==="VariableDeclaration"?this.checkVariableExport(t,e.declaration.declarations):this.checkExport(t,e.declaration.id,e.declaration.id.start),e.specifiers=[],e.source=null,this.options.ecmaVersion>=16&&(e.attributes=[]);else{if(e.declaration=null,e.specifiers=this.parseExportSpecifiers(t),this.eatContextual("from"))this.type!==j.string&&this.unexpected(),e.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause());else{for(var r=0,i=e.specifiers;r<i.length;r+=1){var n=i[r];this.checkUnreserved(n.local),this.checkLocalExport(n.local),n.local.type==="Literal"&&this.raise(n.local.start,"A string literal cannot be used as an exported binding without `from`.")}e.source=null,this.options.ecmaVersion>=16&&(e.attributes=[])}this.semicolon()}return this.finishNode(e,"ExportNamedDeclaration")};ht.parseExportDeclaration=function(e){return this.parseStatement(null)};ht.parseExportDefaultDeclaration=function(){var e;if(this.type===j._function||(e=this.isAsyncFunction())){var t=this.startNode();return this.next(),e&&this.next(),this.parseFunction(t,zp|DR,!1,e)}else if(this.type===j._class){var r=this.startNode();return this.parseClass(r,"nullableID")}else{var i=this.parseMaybeAssign();return this.semicolon(),i}};ht.checkExport=function(e,t,r){e&&(typeof t!="string"&&(t=t.type==="Identifier"?t.name:t.value),Ah(e,t)&&this.raiseRecoverable(r,"Duplicate export '"+t+"'"),e[t]=!0)};ht.checkPatternExport=function(e,t){var r=t.type;if(r==="Identifier")this.checkExport(e,t,t.start);else if(r==="ObjectPattern")for(var i=0,n=t.properties;i<n.length;i+=1){var s=n[i];this.checkPatternExport(e,s)}else if(r==="ArrayPattern")for(var o=0,a=t.elements;o<a.length;o+=1){var u=a[o];u&&this.checkPatternExport(e,u)}else r==="Property"?this.checkPatternExport(e,t.value):r==="AssignmentPattern"?this.checkPatternExport(e,t.left):r==="RestElement"&&this.checkPatternExport(e,t.argument)};ht.checkVariableExport=function(e,t){if(e)for(var r=0,i=t;r<i.length;r+=1){var n=i[r];this.checkPatternExport(e,n.id)}};ht.shouldParseExportStatement=function(){return this.type.keyword==="var"||this.type.keyword==="const"||this.type.keyword==="class"||this.type.keyword==="function"||this.isLet()||this.isAsyncFunction()};ht.parseExportSpecifier=function(e){var t=this.startNode();return t.local=this.parseModuleExportName(),t.exported=this.eatContextual("as")?this.parseModuleExportName():t.local,this.checkExport(e,t.exported,t.exported.start),this.finishNode(t,"ExportSpecifier")};ht.parseExportSpecifiers=function(e){var t=[],r=!0;for(this.expect(j.braceL);!this.eat(j.braceR);){if(r)r=!1;else if(this.expect(j.comma),this.afterTrailingComma(j.braceR))break;t.push(this.parseExportSpecifier(e))}return t};ht.parseImport=function(e){return this.next(),this.type===j.string?(e.specifiers=HW,e.source=this.parseExprAtom()):(e.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),e.source=this.type===j.string?this.parseExprAtom():this.unexpected()),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(e,"ImportDeclaration")};ht.parseImportSpecifier=function(){var e=this.startNode();return e.imported=this.parseModuleExportName(),this.eatContextual("as")?e.local=this.parseIdent():(this.checkUnreserved(e.imported),e.local=e.imported),this.checkLValSimple(e.local,ca),this.finishNode(e,"ImportSpecifier")};ht.parseImportDefaultSpecifier=function(){var e=this.startNode();return e.local=this.parseIdent(),this.checkLValSimple(e.local,ca),this.finishNode(e,"ImportDefaultSpecifier")};ht.parseImportNamespaceSpecifier=function(){var e=this.startNode();return this.next(),this.expectContextual("as"),e.local=this.parseIdent(),this.checkLValSimple(e.local,ca),this.finishNode(e,"ImportNamespaceSpecifier")};ht.parseImportSpecifiers=function(){var e=[],t=!0;if(this.type===j.name&&(e.push(this.parseImportDefaultSpecifier()),!this.eat(j.comma)))return e;if(this.type===j.star)return e.push(this.parseImportNamespaceSpecifier()),e;for(this.expect(j.braceL);!this.eat(j.braceR);){if(t)t=!1;else if(this.expect(j.comma),this.afterTrailingComma(j.braceR))break;e.push(this.parseImportSpecifier())}return e};ht.parseWithClause=function(){var e=[];if(!this.eat(j._with))return e;this.expect(j.braceL);for(var t={},r=!0;!this.eat(j.braceR);){if(r)r=!1;else if(this.expect(j.comma),this.afterTrailingComma(j.braceR))break;var i=this.parseImportAttribute(),n=i.key.type==="Identifier"?i.key.name:i.key.value;Ah(t,n)&&this.raiseRecoverable(i.key.start,"Duplicate attribute key '"+n+"'"),t[n]=!0,e.push(i)}return e};ht.parseImportAttribute=function(){var e=this.startNode();return e.key=this.type===j.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never"),this.expect(j.colon),this.type!==j.string&&this.unexpected(),e.value=this.parseExprAtom(),this.finishNode(e,"ImportAttribute")};ht.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===j.string){var e=this.parseLiteral(this.value);return VW.test(e.value)&&this.raise(e.start,"An export name cannot include a lone surrogate."),e}return this.parseIdent(!0)};ht.adaptDirectivePrologue=function(e){for(var t=0;t<e.length&&this.isDirectiveCandidate(e[t]);++t)e[t].directive=e[t].expression.raw.slice(1,-1)};ht.isDirectiveCandidate=function(e){return this.options.ecmaVersion>=5&&e.type==="ExpressionStatement"&&e.expression.type==="Literal"&&typeof e.expression.value=="string"&&(this.input[e.start]==='"'||this.input[e.start]==="'")};ds=yi.prototype;ds.toAssignable=function(e,t,r){if(this.options.ecmaVersion>=6&&e)switch(e.type){case"Identifier":this.inAsync&&e.name==="await"&&this.raise(e.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":e.type="ObjectPattern",r&&this.checkPatternErrors(r,!0);for(var i=0,n=e.properties;i<n.length;i+=1){var s=n[i];this.toAssignable(s,t),s.type==="RestElement"&&(s.argument.type==="ArrayPattern"||s.argument.type==="ObjectPattern")&&this.raise(s.argument.start,"Unexpected token")}break;case"Property":e.kind!=="init"&&this.raise(e.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(e.value,t);break;case"ArrayExpression":e.type="ArrayPattern",r&&this.checkPatternErrors(r,!0),this.toAssignableList(e.elements,t);break;case"SpreadElement":e.type="RestElement",this.toAssignable(e.argument,t),e.argument.type==="AssignmentPattern"&&this.raise(e.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":e.operator!=="="&&this.raise(e.left.end,"Only '=' operator can be used for specifying default value."),e.type="AssignmentPattern",delete e.operator,this.toAssignable(e.left,t);break;case"ParenthesizedExpression":this.toAssignable(e.expression,t,r);break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!t)break;default:this.raise(e.start,"Assigning to rvalue")}else r&&this.checkPatternErrors(r,!0);return e};ds.toAssignableList=function(e,t){for(var r=e.length,i=0;i<r;i++){var n=e[i];n&&this.toAssignable(n,t)}if(r){var s=e[r-1];this.options.ecmaVersion===6&&t&&s&&s.type==="RestElement"&&s.argument.type!=="Identifier"&&this.unexpected(s.argument.start)}return e};ds.parseSpread=function(e){var t=this.startNode();return this.next(),t.argument=this.parseMaybeAssign(!1,e),this.finishNode(t,"SpreadElement")};ds.parseRestBinding=function(){var e=this.startNode();return this.next(),this.options.ecmaVersion===6&&this.type!==j.name&&this.unexpected(),e.argument=this.parseBindingAtom(),this.finishNode(e,"RestElement")};ds.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case j.bracketL:var e=this.startNode();return this.next(),e.elements=this.parseBindingList(j.bracketR,!0,!0),this.finishNode(e,"ArrayPattern");case j.braceL:return this.parseObj(!0)}return this.parseIdent()};ds.parseBindingList=function(e,t,r,i){for(var n=[],s=!0;!this.eat(e);)if(s?s=!1:this.expect(j.comma),t&&this.type===j.comma)n.push(null);else{if(r&&this.afterTrailingComma(e))break;if(this.type===j.ellipsis){var o=this.parseRestBinding();this.parseBindingListItem(o),n.push(o),this.type===j.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.expect(e);break}else n.push(this.parseAssignableListItem(i))}return n};ds.parseAssignableListItem=function(e){var t=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(t),t};ds.parseBindingListItem=function(e){return e};ds.parseMaybeDefault=function(e,t,r){if(r=r||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(j.eq))return r;var i=this.startNodeAt(e,t);return i.left=r,i.right=this.parseMaybeAssign(),this.finishNode(i,"AssignmentPattern")};ds.checkLValSimple=function(e,t,r){t===void 0&&(t=jg);var i=t!==jg;switch(e.type){case"Identifier":this.strict&&this.reservedWordsStrictBind.test(e.name)&&this.raiseRecoverable(e.start,(i?"Binding ":"Assigning to ")+e.name+" in strict mode"),i&&(t===ca&&e.name==="let"&&this.raiseRecoverable(e.start,"let is disallowed as a lexically bound name"),r&&(Ah(r,e.name)&&this.raiseRecoverable(e.start,"Argument name clash"),r[e.name]=!0),t!==SR&&this.declareName(e.name,t,e.start));break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":i&&this.raiseRecoverable(e.start,"Binding member expression");break;case"ParenthesizedExpression":return i&&this.raiseRecoverable(e.start,"Binding parenthesized expression"),this.checkLValSimple(e.expression,t,r);default:this.raise(e.start,(i?"Binding":"Assigning to")+" rvalue")}};ds.checkLValPattern=function(e,t,r){switch(t===void 0&&(t=jg),e.type){case"ObjectPattern":for(var i=0,n=e.properties;i<n.length;i+=1){var s=n[i];this.checkLValInnerPattern(s,t,r)}break;case"ArrayPattern":for(var o=0,a=e.elements;o<a.length;o+=1){var u=a[o];u&&this.checkLValInnerPattern(u,t,r)}break;default:this.checkLValSimple(e,t,r)}};ds.checkLValInnerPattern=function(e,t,r){switch(t===void 0&&(t=jg),e.type){case"Property":this.checkLValInnerPattern(e.value,t,r);break;case"AssignmentPattern":this.checkLValPattern(e.left,t,r);break;case"RestElement":this.checkLValPattern(e.argument,t,r);break;default:this.checkLValPattern(e,t,r)}};qs=function(t,r,i,n,s){this.token=t,this.isExpr=!!r,this.preserveSpace=!!i,this.override=n,this.generator=!!s},qr={b_stat:new qs("{",!1),b_expr:new qs("{",!0),b_tmpl:new qs("${",!1),p_stat:new qs("(",!1),p_expr:new qs("(",!0),q_tmpl:new qs("`",!0,!0,function(e){return e.tryReadTemplateToken()}),f_stat:new qs("function",!1),f_expr:new qs("function",!0),f_expr_gen:new qs("function",!0,!1,null,!0),f_gen:new qs("function",!1,!1,null,!0)},ph=yi.prototype;ph.initialContext=function(){return[qr.b_stat]};ph.curContext=function(){return this.context[this.context.length-1]};ph.braceIsBlock=function(e){var t=this.curContext();return t===qr.f_expr||t===qr.f_stat?!0:e===j.colon&&(t===qr.b_stat||t===qr.b_expr)?!t.isExpr:e===j._return||e===j.name&&this.exprAllowed?En.test(this.input.slice(this.lastTokEnd,this.start)):e===j._else||e===j.semi||e===j.eof||e===j.parenR||e===j.arrow?!0:e===j.braceL?t===qr.b_stat:e===j._var||e===j._const||e===j.name?!1:!this.exprAllowed};ph.inGeneratorContext=function(){for(var e=this.context.length-1;e>=1;e--){var t=this.context[e];if(t.token==="function")return t.generator}return!1};ph.updateContext=function(e){var t,r=this.type;r.keyword&&e===j.dot?this.exprAllowed=!1:(t=r.updateContext)?t.call(this,e):this.exprAllowed=r.beforeExpr};ph.overrideContext=function(e){this.curContext()!==e&&(this.context[this.context.length-1]=e)};j.parenR.updateContext=j.braceR.updateContext=function(){if(this.context.length===1){this.exprAllowed=!0;return}var e=this.context.pop();e===qr.b_stat&&this.curContext().token==="function"&&(e=this.context.pop()),this.exprAllowed=!e.isExpr};j.braceL.updateContext=function(e){this.context.push(this.braceIsBlock(e)?qr.b_stat:qr.b_expr),this.exprAllowed=!0};j.dollarBraceL.updateContext=function(){this.context.push(qr.b_tmpl),this.exprAllowed=!0};j.parenL.updateContext=function(e){var t=e===j._if||e===j._for||e===j._with||e===j._while;this.context.push(t?qr.p_stat:qr.p_expr),this.exprAllowed=!0};j.incDec.updateContext=function(){};j._function.updateContext=j._class.updateContext=function(e){e.beforeExpr&&e!==j._else&&!(e===j.semi&&this.curContext()!==qr.p_stat)&&!(e===j._return&&En.test(this.input.slice(this.lastTokEnd,this.start)))&&!((e===j.colon||e===j.braceL)&&this.curContext()===qr.b_stat)?this.context.push(qr.f_expr):this.context.push(qr.f_stat),this.exprAllowed=!1};j.colon.updateContext=function(){this.curContext().token==="function"&&this.context.pop(),this.exprAllowed=!0};j.backQuote.updateContext=function(){this.curContext()===qr.q_tmpl?this.context.pop():this.context.push(qr.q_tmpl),this.exprAllowed=!1};j.star.updateContext=function(e){if(e===j._function){var t=this.context.length-1;this.context[t]===qr.f_expr?this.context[t]=qr.f_expr_gen:this.context[t]=qr.f_gen}this.exprAllowed=!0};j.name.updateContext=function(e){var t=!1;this.options.ecmaVersion>=6&&e!==j.dot&&(this.value==="of"&&!this.exprAllowed||this.value==="yield"&&this.inGeneratorContext())&&(t=!0),this.exprAllowed=t};_t=yi.prototype;_t.checkPropClash=function(e,t,r){if(!(this.options.ecmaVersion>=9&&e.type==="SpreadElement")&&!(this.options.ecmaVersion>=6&&(e.computed||e.method||e.shorthand))){var i=e.key,n;switch(i.type){case"Identifier":n=i.name;break;case"Literal":n=String(i.value);break;default:return}var s=e.kind;if(this.options.ecmaVersion>=6){n==="__proto__"&&s==="init"&&(t.proto&&(r?r.doubleProto<0&&(r.doubleProto=i.start):this.raiseRecoverable(i.start,"Redefinition of __proto__ property")),t.proto=!0);return}n="$"+n;var o=t[n];if(o){var a;s==="init"?a=this.strict&&o.init||o.get||o.set:a=o.init||o[s],a&&this.raiseRecoverable(i.start,"Redefinition of property")}else o=t[n]={init:!1,get:!1,set:!1};o[s]=!0}};_t.parseExpression=function(e,t){var r=this;return this.catchStackOverflow(function(){var i=r.start,n=r.startLoc,s=r.parseMaybeAssign(e,t);if(r.type===j.comma){var o=r.startNodeAt(i,n);for(o.expressions=[s];r.eat(j.comma);)o.expressions.push(r.parseMaybeAssign(e,t));return r.finishNode(o,"SequenceExpression")}return s})};_t.parseMaybeAssign=function(e,t,r){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(e);this.exprAllowed=!1}var i=!1,n=-1,s=-1,o=-1;t?(n=t.parenthesizedAssign,s=t.trailingComma,o=t.doubleProto,t.parenthesizedAssign=t.trailingComma=-1):(t=new Kg,i=!0);var a=this.start,u=this.startLoc;(this.type===j.parenL||this.type===j.name)&&(this.potentialArrowAt=this.start,this.potentialArrowInForAwait=e==="await");var l=this.parseMaybeConditional(e,t);if(r&&(l=r.call(this,l,a,u)),this.type.isAssign){var A=this.startNodeAt(a,u);return A.operator=this.value,this.type===j.eq&&(l=this.toAssignable(l,!1,t)),i||(t.parenthesizedAssign=t.trailingComma=t.doubleProto=-1),t.shorthandAssign>=l.start&&(t.shorthandAssign=-1),this.type===j.eq?this.checkLValPattern(l):this.checkLValSimple(l),A.left=l,this.next(),A.right=this.parseMaybeAssign(e),o>-1&&(t.doubleProto=o),this.finishNode(A,"AssignmentExpression")}else i&&this.checkExpressionErrors(t,!0);return n>-1&&(t.parenthesizedAssign=n),s>-1&&(t.trailingComma=s),l};_t.parseMaybeConditional=function(e,t){var r=this.start,i=this.startLoc,n=this.parseExprOps(e,t);if(this.checkExpressionErrors(t))return n;if(!(n.type==="ArrowFunctionExpression"&&n.start===r)&&this.eat(j.question)){var s=this.startNodeAt(r,i);return s.test=n,s.consequent=this.parseMaybeAssign(),this.expect(j.colon),s.alternate=this.parseMaybeAssign(e),this.finishNode(s,"ConditionalExpression")}return n};_t.parseExprOps=function(e,t){var r=this.start,i=this.startLoc,n=this.parseMaybeUnary(t,!1,!1,e);return this.checkExpressionErrors(t)||n.start===r&&n.type==="ArrowFunctionExpression"?n:this.parseExprOp(n,r,i,-1,e)};_t.parseExprOp=function(e,t,r,i,n){var s=this.type.binop;if(s!=null&&(!n||this.type!==j._in)&&s>i){var o=this.type===j.logicalOR||this.type===j.logicalAND,a=this.type===j.coalesce;a&&(s=j.logicalAND.binop);var u=this.value;this.next();var l=this.start,A=this.startLoc,h=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,n),l,A,s,n),d=this.buildBinary(t,r,e,h,u,o||a);return(o&&this.type===j.coalesce||a&&(this.type===j.logicalOR||this.type===j.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(d,t,r,i,n)}return e};_t.buildBinary=function(e,t,r,i,n,s){i.type==="PrivateIdentifier"&&this.raise(i.start,"Private identifier can only be left side of binary expression");var o=this.startNodeAt(e,t);return o.left=r,o.operator=n,o.right=i,this.finishNode(o,s?"LogicalExpression":"BinaryExpression")};_t.parseMaybeUnary=function(e,t,r,i){var n=this.start,s=this.startLoc,o;if(this.isContextual("await")&&this.canAwait)o=this.parseAwait(i),t=!0;else if(this.type.prefix){var a=this.startNode(),u=this.type===j.incDec;a.operator=this.value,a.prefix=!0,this.next(),a.argument=this.parseMaybeUnary(null,!0,u,i),this.checkExpressionErrors(e,!0),u?this.checkLValSimple(a.argument):this.strict&&a.operator==="delete"&&kR(a.argument)?this.raiseRecoverable(a.start,"Deleting local variable in strict mode"):a.operator==="delete"&&Xy(a.argument)?this.raiseRecoverable(a.start,"Private fields can not be deleted"):t=!0,o=this.finishNode(a,u?"UpdateExpression":"UnaryExpression")}else if(!t&&this.type===j.privateId)(i||this.privateNameStack.length===0)&&this.options.checkPrivateFields&&this.unexpected(),o=this.parsePrivateIdent(),this.type!==j._in&&this.unexpected();else{if(o=this.parseExprSubscripts(e,i),this.checkExpressionErrors(e))return o;for(;this.type.postfix&&!this.canInsertSemicolon();){var l=this.startNodeAt(n,s);l.operator=this.value,l.prefix=!1,l.argument=o,this.checkLValSimple(o),this.next(),o=this.finishNode(l,"UpdateExpression")}}if(!r&&this.eat(j.starstar))if(t)this.unexpected(this.lastTokStart);else return this.buildBinary(n,s,o,this.parseMaybeUnary(null,!1,!1,i),"**",!1);else return o};_t.parseExprSubscripts=function(e,t){var r=this.start,i=this.startLoc,n=this.parseExprAtom(e,t);if(n.type==="ArrowFunctionExpression"&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==")")return n;var s=this.parseSubscripts(n,r,i,!1,t);return e&&s.type==="MemberExpression"&&(e.parenthesizedAssign>=s.start&&(e.parenthesizedAssign=-1),e.parenthesizedBind>=s.start&&(e.parenthesizedBind=-1),e.trailingComma>=s.start&&(e.trailingComma=-1)),s};_t.parseSubscripts=function(e,t,r,i,n){for(var s=this.options.ecmaVersion>=8&&e.type==="Identifier"&&e.name==="async"&&this.lastTokEnd===e.end&&!this.canInsertSemicolon()&&e.end-e.start===5&&this.potentialArrowAt===e.start,o=!1;;){var a=this.parseSubscript(e,t,r,i,s,o,n);if(a.optional&&(o=!0),a===e||a.type==="ArrowFunctionExpression"){if(o){var u=this.startNodeAt(t,r);u.expression=a,a=this.finishNode(u,"ChainExpression")}return a}e=a}};_t.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(j.arrow)};_t.parseSubscriptAsyncArrow=function(e,t,r,i){return this.parseArrowExpression(this.startNodeAt(e,t),r,!0,i)};_t.parseSubscript=function(e,t,r,i,n,s,o){var a=this.options.ecmaVersion>=11,u=a&&this.eat(j.questionDot);i&&u&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var l=this.eat(j.bracketL);if(l||u&&this.type!==j.parenL&&this.type!==j.backQuote||this.eat(j.dot)){var A=this.startNodeAt(t,r);A.object=e,l?(A.property=this.parseExpression(),this.expect(j.bracketR)):this.type===j.privateId&&e.type!=="Super"?A.property=this.parsePrivateIdent():A.property=this.parseIdent(this.options.allowReserved!=="never"),A.computed=!!l,a&&(A.optional=u),e=this.finishNode(A,"MemberExpression")}else if(!i&&this.eat(j.parenL)){var h=new Kg,d=this.yieldPos,m=this.awaitPos,g=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var E=this.parseExprList(j.parenR,this.options.ecmaVersion>=8,!1,h);if(n&&!u&&this.shouldParseAsyncArrow())return this.checkPatternErrors(h,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=d,this.awaitPos=m,this.awaitIdentPos=g,this.parseSubscriptAsyncArrow(t,r,E,o);this.checkExpressionErrors(h,!0),this.yieldPos=d||this.yieldPos,this.awaitPos=m||this.awaitPos,this.awaitIdentPos=g||this.awaitIdentPos;var y=this.startNodeAt(t,r);y.callee=e,y.arguments=E,a&&(y.optional=u),e=this.finishNode(y,"CallExpression")}else if(this.type===j.backQuote){(u||s)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var w=this.startNodeAt(t,r);w.tag=e,w.quasi=this.parseTemplate({isTagged:!0}),e=this.finishNode(w,"TaggedTemplateExpression")}return e};_t.parseExprAtom=function(e,t,r){this.type===j.slash&&this.readRegexp();var i,n=this.potentialArrowAt===this.start;switch(this.type){case j._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),i=this.startNode(),this.next(),this.type===j.parenL&&!this.allowDirectSuper&&this.raise(i.start,"super() call outside constructor of a subclass"),this.type!==j.dot&&this.type!==j.bracketL&&this.type!==j.parenL&&this.unexpected(),this.finishNode(i,"Super");case j._this:return i=this.startNode(),this.next(),this.finishNode(i,"ThisExpression");case j.name:var s=this.start,o=this.startLoc,a=this.containsEsc,u=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!a&&u.name==="async"&&!this.canInsertSemicolon()&&this.eat(j._function))return this.overrideContext(qr.f_expr),this.parseFunction(this.startNodeAt(s,o),0,!1,!0,t);if(n&&!this.canInsertSemicolon()){if(this.eat(j.arrow))return this.parseArrowExpression(this.startNodeAt(s,o),[u],!1,t);if(this.options.ecmaVersion>=8&&u.name==="async"&&this.type===j.name&&!a&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc))return u=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(j.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(s,o),[u],!0,t)}return u;case j.regexp:var l=this.value;return i=this.parseLiteral(l.value),i.regex={pattern:l.pattern,flags:l.flags},i;case j.num:case j.string:return this.parseLiteral(this.value);case j._null:case j._true:case j._false:return i=this.startNode(),i.value=this.type===j._null?null:this.type===j._true,i.raw=this.type.keyword,this.next(),this.finishNode(i,"Literal");case j.parenL:var A=this.start,h=this.parseParenAndDistinguishExpression(n,t);return e&&(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(h)&&(e.parenthesizedAssign=A),e.parenthesizedBind<0&&(e.parenthesizedBind=A)),h;case j.bracketL:return i=this.startNode(),this.next(),i.elements=this.parseExprList(j.bracketR,!0,!0,e),this.finishNode(i,"ArrayExpression");case j.braceL:return this.overrideContext(qr.b_expr),this.parseObj(!1,e);case j._function:return i=this.startNode(),this.next(),this.parseFunction(i,0);case j._class:return this.parseClass(this.startNode(),!1);case j._new:return this.parseNew();case j.backQuote:return this.parseTemplate();case j._import:return this.options.ecmaVersion>=11?this.parseExprImport(r):this.unexpected();default:return this.parseExprAtomDefault()}};_t.parseExprAtomDefault=function(){this.unexpected()};_t.parseExprImport=function(e){var t=this.startNode();if(this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import"),this.next(),this.type===j.parenL&&!e)return this.parseDynamicImport(t);if(this.type===j.dot){var r=this.startNodeAt(t.start,t.loc&&t.loc.start);return r.name="import",t.meta=this.finishNode(r,"Identifier"),this.parseImportMeta(t)}else this.unexpected()};_t.parseDynamicImport=function(e){if(this.next(),e.source=this.parseMaybeAssign(),this.options.ecmaVersion>=16)this.eat(j.parenR)?e.options=null:(this.expect(j.comma),this.afterTrailingComma(j.parenR)?e.options=null:(e.options=this.parseMaybeAssign(),this.eat(j.parenR)||(this.expect(j.comma),this.afterTrailingComma(j.parenR)||this.unexpected())));else if(!this.eat(j.parenR)){var t=this.start;this.eat(j.comma)&&this.eat(j.parenR)?this.raiseRecoverable(t,"Trailing comma is not allowed in import()"):this.unexpected(t)}return this.finishNode(e,"ImportExpression")};_t.parseImportMeta=function(e){this.next();var t=this.containsEsc;return e.property=this.parseIdent(!0),e.property.name!=="meta"&&this.raiseRecoverable(e.property.start,"The only valid meta property for import is 'import.meta'"),t&&this.raiseRecoverable(e.start,"'import.meta' must not contain escaped characters"),this.options.sourceType!=="module"&&!this.options.allowImportExportEverywhere&&this.raiseRecoverable(e.start,"Cannot use 'import.meta' outside a module"),this.finishNode(e,"MetaProperty")};_t.parseLiteral=function(e){var t=this.startNode();return t.value=e,t.raw=this.input.slice(this.start,this.end),t.raw.charCodeAt(t.raw.length-1)===110&&(t.bigint=t.value!=null?t.value.toString():t.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(t,"Literal")};_t.parseParenExpression=function(){this.expect(j.parenL);var e=this.parseExpression();return this.expect(j.parenR),e};_t.shouldParseArrow=function(e){return!this.canInsertSemicolon()};_t.parseParenAndDistinguishExpression=function(e,t){var r=this.start,i=this.startLoc,n,s=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var o=this.start,a=this.startLoc,u=[],l=!0,A=!1,h=new Kg,d=this.yieldPos,m=this.awaitPos,g;for(this.yieldPos=0,this.awaitPos=0;this.type!==j.parenR;)if(l?l=!1:this.expect(j.comma),s&&this.afterTrailingComma(j.parenR,!0)){A=!0;break}else if(this.type===j.ellipsis){g=this.start,u.push(this.parseParenItem(this.parseRestBinding())),this.type===j.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}else u.push(this.parseMaybeAssign(!1,h,this.parseParenItem));var E=this.lastTokEnd,y=this.lastTokEndLoc;if(this.expect(j.parenR),e&&this.shouldParseArrow(u)&&this.eat(j.arrow))return this.checkPatternErrors(h,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=d,this.awaitPos=m,this.parseParenArrowList(r,i,u,t);(!u.length||A)&&this.unexpected(this.lastTokStart),g&&this.unexpected(g),this.checkExpressionErrors(h,!0),this.yieldPos=d||this.yieldPos,this.awaitPos=m||this.awaitPos,u.length>1?(n=this.startNodeAt(o,a),n.expressions=u,this.finishNodeAt(n,"SequenceExpression",E,y)):n=u[0]}else n=this.parseParenExpression();if(this.options.preserveParens){var w=this.startNodeAt(r,i);return w.expression=n,this.finishNode(w,"ParenthesizedExpression")}else return n};_t.parseParenItem=function(e){return e};_t.parseParenArrowList=function(e,t,r,i){return this.parseArrowExpression(this.startNodeAt(e,t),r,!1,i)};WW=[];_t.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var e=this.startNode();if(this.next(),this.options.ecmaVersion>=6&&this.type===j.dot){var t=this.startNodeAt(e.start,e.loc&&e.loc.start);t.name="new",e.meta=this.finishNode(t,"Identifier"),this.next();var r=this.containsEsc;return e.property=this.parseIdent(!0),e.property.name!=="target"&&this.raiseRecoverable(e.property.start,"The only valid meta property for new is 'new.target'"),r&&this.raiseRecoverable(e.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(e.start,"'new.target' can only be used in functions and class static block"),this.finishNode(e,"MetaProperty")}var i=this.start,n=this.startLoc;return e.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),i,n,!0,!1),e.callee.type==="Super"&&this.raiseRecoverable(i,"Invalid use of 'super'"),this.eat(j.parenL)?e.arguments=this.parseExprList(j.parenR,this.options.ecmaVersion>=8,!1):e.arguments=WW,this.finishNode(e,"NewExpression")};_t.parseTemplateElement=function(e){var t=e.isTagged,r=this.startNode();return this.type===j.invalidTemplate?(t||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),r.value={raw:this.value.replace(/\r\n?/g,`
|
|
22
|
+
Defaulting to 2020, but this will stop working in the future.`)),t.ecmaVersion=11):t.ecmaVersion>=2015&&(t.ecmaVersion-=2009),t.allowReserved==null&&(t.allowReserved=t.ecmaVersion<5),(!e||e.allowHashBang==null)&&(t.allowHashBang=t.ecmaVersion>=14),lR(t.onToken)){var i=t.onToken;t.onToken=function(n){return i.push(n)}}if(lR(t.onComment)&&(t.onComment=GW(t,t.onComment)),t.sourceType==="commonjs"&&t.allowAwaitOutsideFunction)throw new Error("Cannot use allowAwaitOutsideFunction with sourceType: commonjs");return t}function GW(e,t){return function(r,i,n,s,o,a){var u={type:r?"Block":"Line",value:i,start:n,end:s};e.locations&&(u.loc=new Wg(this,o,a)),e.ranges&&(u.range=[n,s]),t.push(u)}}function ib(e,t){return Ru|(e?tb:0)|(t?IR:0)}function YW(e,t){var r=t.key.name,i=e[r],n="true";return t.type==="MethodDefinition"&&(t.kind==="get"||t.kind==="set")&&(n=(t.static?"s":"i")+t.kind),i==="iget"&&n==="iset"||i==="iset"&&n==="iget"||i==="sget"&&n==="sset"||i==="sset"&&n==="sget"?(e[r]="true",!1):i?!0:(e[r]=n,!1)}function zg(e,t){var r=e.computed,i=e.key;return!r&&(i.type==="Identifier"&&i.name===t||i.type==="Literal"&&i.value===t)}function kR(e){return e.type==="Identifier"||e.type==="ParenthesizedExpression"&&kR(e.expression)}function Xy(e){return e.type==="MemberExpression"&&e.property.type==="PrivateIdentifier"||e.type==="ChainExpression"&&Xy(e.expression)||e.type==="ParenthesizedExpression"&&Xy(e.expression)}function RR(e,t,r,i){return e.type=t,e.end=r,this.options.locations&&(e.loc.end=i),this.options.ranges&&(e.range[1]=r),e}function nJ(e){var t=VR[e]={binary:pc(XW[e]+" "+pR),binaryOfStrings:pc(tJ[e]),nonBinary:{General_Category:pc(pR),Script:pc(iJ[e])}};t.nonBinary.Script_Extensions=t.nonBinary.Script,t.nonBinary.gc=t.nonBinary.General_Category,t.nonBinary.sc=t.nonBinary.Script,t.nonBinary.scx=t.nonBinary.Script_Extensions}function sJ(e){for(var t in e)return!0;return!1}function oJ(e){return e===105||e===109||e===115}function $R(e){return e===36||e>=40&&e<=43||e===46||e===63||e>=91&&e<=94||e>=123&&e<=125}function aJ(e){return bo(e,!0)||e===36||e===95}function cJ(e){return dc(e,!0)||e===36||e===95||e===8204||e===8205}function GR(e){return e>=65&&e<=90||e>=97&&e<=122}function uJ(e){return e>=0&&e<=1114111}function lJ(e){return e===100||e===68||e===115||e===83||e===119||e===87}function zR(e){return GR(e)||e===95}function hJ(e){return zR(e)||em(e)}function AJ(e){return e===33||e>=35&&e<=38||e>=42&&e<=44||e===46||e>=58&&e<=64||e===94||e===96||e===126}function pJ(e){return e===40||e===41||e===45||e===47||e>=91&&e<=93||e>=123&&e<=125}function dJ(e){return e===33||e===35||e===37||e===38||e===44||e===45||e>=58&&e<=62||e===64||e===96||e===126}function em(e){return e>=48&&e<=57}function HR(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function YR(e){return e>=65&&e<=70?10+(e-65):e>=97&&e<=102?10+(e-97):e-48}function WR(e){return e>=48&&e<=55}function fJ(e,t){return t?parseInt(e,8):parseFloat(e.replace(/_/g,""))}function JR(e){return typeof BigInt!="function"?null:BigInt(e.replace(/_/g,""))}var FW,fR,NW,gR,Hy,Yy,LW,mR,MW,OW,Ar,hs,mn,eb,j,En,PW,CR,Ci,yR,UW,qW,Ah,lR,hR,VW,Hp,Wg,Zy,AR,ku,Ru,tb,IR,rb,wR,Jg,BR,_u,Yp,vR,Zg,jg,nb,ca,xR,QR,SR,yi,ps,$i,jW,Kg,ht,sb,zW,HW,zp,Ky,DR,ds,qs,qr,ph,_t,WW,Hg,fc,JW,Xg,Wp,ZW,_R,TR,FR,NR,LR,KW,XW,eJ,tJ,pR,MR,OR,PR,UR,qR,rJ,iJ,VR,dR,Gg,Wy,at,Yg,Io,jR,aa,As,ob,tr,ZR,gJ,KR=jr(()=>{FW=[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],fR=[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],NW="\u200C\u200D\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ADD\u1AE0-\u1AEB\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65",gR="\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088F\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5C\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDC-\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7DC\uA7F1-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC",Hy={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"},Yy="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",LW={5:Yy,"5module":Yy+" export import",6:Yy+" const class extends export import super"},mR=/^in(stanceof)?$/,MW=new RegExp("["+gR+"]"),OW=new RegExp("["+gR+NW+"]");Ar=function(t,r){r===void 0&&(r={}),this.label=t,this.keyword=r.keyword,this.beforeExpr=!!r.beforeExpr,this.startsExpr=!!r.startsExpr,this.isLoop=!!r.isLoop,this.isAssign=!!r.isAssign,this.prefix=!!r.prefix,this.postfix=!!r.postfix,this.binop=r.binop||null,this.updateContext=null};hs={beforeExpr:!0},mn={startsExpr:!0},eb={};j={num:new Ar("num",mn),regexp:new Ar("regexp",mn),string:new Ar("string",mn),name:new Ar("name",mn),privateId:new Ar("privateId",mn),eof:new Ar("eof"),bracketL:new Ar("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new Ar("]"),braceL:new Ar("{",{beforeExpr:!0,startsExpr:!0}),braceR:new Ar("}"),parenL:new Ar("(",{beforeExpr:!0,startsExpr:!0}),parenR:new Ar(")"),comma:new Ar(",",hs),semi:new Ar(";",hs),colon:new Ar(":",hs),dot:new Ar("."),question:new Ar("?",hs),questionDot:new Ar("?."),arrow:new Ar("=>",hs),template:new Ar("template"),invalidTemplate:new Ar("invalidTemplate"),ellipsis:new Ar("...",hs),backQuote:new Ar("`",mn),dollarBraceL:new Ar("${",{beforeExpr:!0,startsExpr:!0}),eq:new Ar("=",{beforeExpr:!0,isAssign:!0}),assign:new Ar("_=",{beforeExpr:!0,isAssign:!0}),incDec:new Ar("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new Ar("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:ls("||",1),logicalAND:ls("&&",2),bitwiseOR:ls("|",3),bitwiseXOR:ls("^",4),bitwiseAND:ls("&",5),equality:ls("==/!=/===/!==",6),relational:ls("</>/<=/>=",7),bitShift:ls("<</>>/>>>",8),plusMin:new Ar("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:ls("%",10),star:ls("*",10),slash:ls("/",10),starstar:new Ar("**",{beforeExpr:!0}),coalesce:ls("??",1),_break:cr("break"),_case:cr("case",hs),_catch:cr("catch"),_continue:cr("continue"),_debugger:cr("debugger"),_default:cr("default",hs),_do:cr("do",{isLoop:!0,beforeExpr:!0}),_else:cr("else",hs),_finally:cr("finally"),_for:cr("for",{isLoop:!0}),_function:cr("function",mn),_if:cr("if"),_return:cr("return",hs),_switch:cr("switch"),_throw:cr("throw",hs),_try:cr("try"),_var:cr("var"),_const:cr("const"),_while:cr("while",{isLoop:!0}),_with:cr("with"),_new:cr("new",{beforeExpr:!0,startsExpr:!0}),_this:cr("this",mn),_super:cr("super",mn),_class:cr("class",mn),_extends:cr("extends",hs),_export:cr("export"),_import:cr("import",mn),_null:cr("null",mn),_true:cr("true",mn),_false:cr("false",mn),_in:cr("in",{beforeExpr:!0,binop:7}),_instanceof:cr("instanceof",{beforeExpr:!0,binop:7}),_typeof:cr("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:cr("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:cr("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},En=/\r\n?|\n|\u2028|\u2029/,PW=new RegExp(En.source,"g");CR=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,Ci=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,yR=Object.prototype,UW=yR.hasOwnProperty,qW=yR.toString,Ah=Object.hasOwn||(function(e,t){return UW.call(e,t)}),lR=Array.isArray||(function(e){return qW.call(e)==="[object Array]"}),hR=Object.create(null);VW=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,Hp=function(t,r){this.line=t,this.column=r};Hp.prototype.offset=function(t){return new Hp(this.line,this.column+t)};Wg=function(t,r,i){this.start=r,this.end=i,t.sourceFile!==null&&(this.source=t.sourceFile)};Zy={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,startLocation:null,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},AR=!1;ku=1,Ru=2,tb=4,IR=8,rb=16,wR=32,Jg=64,BR=128,_u=256,Yp=512,vR=1024,Zg=ku|Ru|_u;jg=0,nb=1,ca=2,xR=3,QR=4,SR=5,yi=function(t,r,i){this.options=t=$W(t),this.sourceFile=t.sourceFile,this.keywords=pc(LW[t.ecmaVersion>=6?6:t.sourceType==="module"?"5module":5]);var n="";t.allowReserved!==!0&&(n=Hy[t.ecmaVersion>=6?6:t.ecmaVersion===5?5:3],t.sourceType==="module"&&(n+=" await")),this.reservedWords=pc(n);var s=(n?n+" ":"")+Hy.strict;this.reservedWordsStrict=pc(s),this.reservedWordsStrictBind=pc(s+" "+Hy.strictBind),this.input=String(r),this.containsEsc=!1,this.pos=i||0,this.curLine=1,t.startLocation?(this.lineStart=this.pos-t.startLocation.column,this.curLine=t.startLocation.line):i?(this.lineStart=this.input.lastIndexOf(`
|
|
23
|
+
`,i-1)+1,this.options.locations&&(this.curLine=this.input.slice(0,this.lineStart).split(En).length)):this.lineStart=0,this.type=j.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=t.sourceType==="module",this.strict=this.inModule||t.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&&t.allowHashBang&&this.input.slice(0,2)==="#!"&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(this.options.sourceType==="commonjs"?Ru:ku),this.regexpState=null,this.privateNameStack=[]},ps={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}};yi.prototype.parse=function(){var t=this,r=this.options.program||this.startNode();return this.nextToken(),this.catchStackOverflow(function(){return t.parseTopLevel(r)})};ps.inFunction.get=function(){return(this.currentVarScope().flags&Ru)>0};ps.inGenerator.get=function(){return(this.currentVarScope().flags&IR)>0};ps.inAsync.get=function(){return(this.currentVarScope().flags&tb)>0};ps.canAwait.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e],r=t.flags;if(r&(_u|Yp))return!1;if(r&Ru)return(r&tb)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction};ps.allowReturn.get=function(){return!!(this.inFunction||this.options.allowReturnOutsideFunction&&this.currentVarScope().flags&ku)};ps.allowSuper.get=function(){var e=this.currentThisScope(),t=e.flags;return(t&Jg)>0||this.options.allowSuperOutsideMethod};ps.allowDirectSuper.get=function(){return(this.currentThisScope().flags&BR)>0};ps.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())};ps.allowNewDotTarget.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e],r=t.flags;if(r&(_u|Yp)||r&Ru&&!(r&rb))return!0}return!1};ps.allowUsing.get=function(){var e=this.currentScope(),t=e.flags;return!(t&vR||!this.inModule&&t&ku)};ps.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&_u)>0};yi.extend=function(){for(var t=[],r=arguments.length;r--;)t[r]=arguments[r];for(var i=this,n=0;n<t.length;n++)i=t[n](i);return i};yi.parse=function(t,r){return new this(r,t).parse()};yi.parseExpressionAt=function(t,r,i){var n=new this(i,t,r);return n.nextToken(),n.parseExpression()};yi.tokenizer=function(t,r){return new this(r,t)};Object.defineProperties(yi.prototype,ps);$i=yi.prototype,jW=/^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;$i.strictDirective=function(e){if(this.options.ecmaVersion<5)return!1;for(;;){Ci.lastIndex=e,e+=Ci.exec(this.input)[0].length;var t=jW.exec(this.input.slice(e));if(!t)return!1;if((t[1]||t[2])==="use strict"){Ci.lastIndex=e+t[0].length;var r=Ci.exec(this.input),i=r.index+r[0].length,n=this.input.charAt(i);return n===";"||n==="}"||En.test(r[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(n)||n==="!"&&this.input.charAt(i+1)==="=")}e+=t[0].length,Ci.lastIndex=e,e+=Ci.exec(this.input)[0].length,this.input[e]===";"&&e++}};$i.eat=function(e){return this.type===e?(this.next(),!0):!1};$i.isContextual=function(e){return this.type===j.name&&this.value===e&&!this.containsEsc};$i.eatContextual=function(e){return this.isContextual(e)?(this.next(),!0):!1};$i.catchStackOverflow=function(e){try{return e()}catch(t){if(t instanceof Error&&(/\bstack\b.*\b(exceeded|overflow)\b/i.test(t.message)||/\btoo much recursion\b/i.test(t.message)))this.raise(this.start,"Not enough stack space to parse input");else throw t}};$i.expectContextual=function(e){this.eatContextual(e)||this.unexpected()};$i.canInsertSemicolon=function(){return this.type===j.eof||this.type===j.braceR||En.test(this.input.slice(this.lastTokEnd,this.start))};$i.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0};$i.semicolon=function(){!this.eat(j.semi)&&!this.insertSemicolon()&&this.unexpected()};$i.afterTrailingComma=function(e,t){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t||this.next(),!0};$i.expect=function(e){this.eat(e)||this.unexpected()};$i.unexpected=function(e){this.raise(e??this.start,"Unexpected token")};Kg=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};$i.checkPatternErrors=function(e,t){if(e){e.trailingComma>-1&&this.raiseRecoverable(e.trailingComma,"Comma is not permitted after the rest element");var r=t?e.parenthesizedAssign:e.parenthesizedBind;r>-1&&this.raiseRecoverable(r,t?"Assigning to rvalue":"Parenthesized pattern")}};$i.checkExpressionErrors=function(e,t){if(!e)return!1;var r=e.shorthandAssign,i=e.doubleProto;if(!t)return r>=0||i>=0;r>=0&&this.raise(r,"Shorthand property assignments are valid only in destructuring patterns"),i>=0&&this.raiseRecoverable(i,"Redefinition of __proto__ property")};$i.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,"Yield expression cannot be a default value"),this.awaitPos&&this.raise(this.awaitPos,"Await expression cannot be a default value")};$i.isSimpleAssignTarget=function(e){return e.type==="ParenthesizedExpression"?this.isSimpleAssignTarget(e.expression):e.type==="Identifier"||e.type==="MemberExpression"};ht=yi.prototype;ht.parseTopLevel=function(e){var t=Object.create(null);for(e.body||(e.body=[]);this.type!==j.eof;){var r=this.parseStatement(null,!0,t);e.body.push(r)}if(this.inModule)for(var i=0,n=Object.keys(this.undefinedExports);i<n.length;i+=1){var s=n[i];this.raiseRecoverable(this.undefinedExports[s].start,"Export '"+s+"' is not defined")}return this.adaptDirectivePrologue(e.body),this.next(),e.sourceType=this.options.sourceType==="commonjs"?"script":this.options.sourceType,this.finishNode(e,"Program")};sb={kind:"loop"},zW={kind:"switch"};ht.isLet=function(e){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;Ci.lastIndex=this.pos;var t=Ci.exec(this.input),r=this.pos+t[0].length,i=this.fullCharCodeAt(r);if(i===91||i===92)return!0;if(e)return!1;if(i===123)return!0;if(bo(i)){var n=r;do r+=i<=65535?1:2;while(dc(i=this.fullCharCodeAt(r)));if(i===92)return!0;var s=this.input.slice(n,r);if(!mR.test(s))return!0}return!1};ht.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;Ci.lastIndex=this.pos;var e=Ci.exec(this.input),t=this.pos+e[0].length,r;return!En.test(this.input.slice(this.pos,t))&&this.input.slice(t,t+8)==="function"&&(t+8===this.input.length||!(dc(r=this.fullCharCodeAt(t+8))||r===92))};ht.isUsingKeyword=function(e,t){if(this.options.ecmaVersion<17||!this.isContextual(e?"await":"using"))return!1;Ci.lastIndex=this.pos;var r=Ci.exec(this.input),i=this.pos+r[0].length;if(En.test(this.input.slice(this.pos,i)))return!1;if(e){var n=i+5,s;if(this.input.slice(i,n)!=="using"||n===this.input.length||dc(s=this.fullCharCodeAt(n))||s===92)return!1;Ci.lastIndex=n;var o=Ci.exec(this.input);if(i=n+o[0].length,o&&En.test(this.input.slice(n,i)))return!1}var a=this.fullCharCodeAt(i);if(!bo(a)&&a!==92)return!1;var u=i;do i+=a<=65535?1:2;while(dc(a=this.fullCharCodeAt(i)));if(a===92)return!0;var l=this.input.slice(u,i);if(mR.test(l))return!1;if(t&&!e&&l==="of"){Ci.lastIndex=i;var A=Ci.exec(this.input);if(i=i+A[0].length,this.input.charCodeAt(i)!==61||(a=this.input.charCodeAt(i+1))===61||a===62)return!1}return!0};ht.isAwaitUsing=function(e){return this.isUsingKeyword(!0,e)};ht.isUsing=function(e){return this.isUsingKeyword(!1,e)};ht.parseStatement=function(e,t,r){var i=this.type,n=this.startNode(),s;switch(this.isLet(e)&&(i=j._var,s="let"),i){case j._break:case j._continue:return this.parseBreakContinueStatement(n,i.keyword);case j._debugger:return this.parseDebuggerStatement(n);case j._do:return this.parseDoStatement(n);case j._for:return this.parseForStatement(n);case j._function:return e&&(this.strict||e!=="if"&&e!=="label")&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(n,!1,!e);case j._class:return e&&this.unexpected(),this.parseClass(n,!0);case j._if:return this.parseIfStatement(n);case j._return:return this.parseReturnStatement(n);case j._switch:return this.parseSwitchStatement(n);case j._throw:return this.parseThrowStatement(n);case j._try:return this.parseTryStatement(n);case j._const:case j._var:return s=s||this.value,e&&s!=="var"&&this.unexpected(),this.parseVarStatement(n,s);case j._while:return this.parseWhileStatement(n);case j._with:return this.parseWithStatement(n);case j.braceL:return this.parseBlock(!0,n);case j.semi:return this.parseEmptyStatement(n);case j._export:case j._import:if(this.options.ecmaVersion>10&&i===j._import){Ci.lastIndex=this.pos;var o=Ci.exec(this.input),a=this.pos+o[0].length,u=this.input.charCodeAt(a);if(u===40||u===46)return this.parseExpressionStatement(n,this.parseExpression())}return this.options.allowImportExportEverywhere||(t||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),i===j._import?this.parseImport(n):this.parseExport(n,r);default:if(this.isAsyncFunction())return e&&this.unexpected(),this.next(),this.parseFunctionStatement(n,!0,!e);var l=this.isAwaitUsing(!1)?"await using":this.isUsing(!1)?"using":null;if(l)return 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"),e&&this.raise(this.start,"Using declaration is not allowed in single-statement positions"),l==="await using"&&(this.canAwait||this.raise(this.start,"Await using cannot appear outside of async function"),this.next()),this.next(),this.parseVar(n,!1,l),this.semicolon(),this.finishNode(n,"VariableDeclaration");var A=this.value,h=this.parseExpression();return i===j.name&&h.type==="Identifier"&&this.eat(j.colon)?this.parseLabeledStatement(n,A,h,e):this.parseExpressionStatement(n,h)}};ht.parseBreakContinueStatement=function(e,t){var r=t==="break";this.next(),this.eat(j.semi)||this.insertSemicolon()?e.label=null:this.type!==j.name?this.unexpected():(e.label=this.parseIdent(),this.semicolon());for(var i=0;i<this.labels.length;++i){var n=this.labels[i];if((e.label==null||n.name===e.label.name)&&(n.kind!=null&&(r||n.kind==="loop")||e.label&&r))break}return i===this.labels.length&&this.raise(e.start,"Unsyntactic "+t),this.finishNode(e,r?"BreakStatement":"ContinueStatement")};ht.parseDebuggerStatement=function(e){return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement")};ht.parseDoStatement=function(e){return this.next(),this.labels.push(sb),e.body=this.parseStatement("do"),this.labels.pop(),this.expect(j._while),e.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(j.semi):this.semicolon(),this.finishNode(e,"DoWhileStatement")};ht.parseForStatement=function(e){this.next();var t=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(sb),this.enterScope(0),this.expect(j.parenL),this.type===j.semi)return t>-1&&this.unexpected(t),this.parseFor(e,null);var r=this.isLet();if(this.type===j._var||this.type===j._const||r){var i=this.startNode(),n=r?"let":this.value;return this.next(),this.parseVar(i,!0,n),this.finishNode(i,"VariableDeclaration"),this.parseForAfterInit(e,i,t)}var s=this.isContextual("let"),o=!1,a=this.isUsing(!0)?"using":this.isAwaitUsing(!0)?"await using":null;if(a){var u=this.startNode();return this.next(),a==="await using"&&(this.canAwait||this.raise(this.start,"Await using cannot appear outside of async function"),this.next()),this.parseVar(u,!0,a),this.finishNode(u,"VariableDeclaration"),this.parseForAfterInit(e,u,t)}var l=this.containsEsc,A=new Kg,h=this.start,d=t>-1?this.parseExprSubscripts(A,"await"):this.parseExpression(!0,A);return this.type===j._in||(o=this.options.ecmaVersion>=6&&this.isContextual("of"))?(t>-1?(this.type===j._in&&this.unexpected(t),e.await=!0):o&&this.options.ecmaVersion>=8&&(d.start===h&&!l&&d.type==="Identifier"&&d.name==="async"?this.unexpected():this.options.ecmaVersion>=9&&(e.await=!1)),s&&o&&this.raise(d.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(d,!1,A),this.checkLValPattern(d),this.parseForIn(e,d)):(this.checkExpressionErrors(A,!0),t>-1&&this.unexpected(t),this.parseFor(e,d))};ht.parseForAfterInit=function(e,t,r){return(this.type===j._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&t.declarations.length===1?(this.type===j._in?((t.kind==="using"||t.kind==="await using")&&!t.declarations[0].init&&this.raise(this.start,"Using declaration is not allowed in for-in loops"),this.options.ecmaVersion>=9&&r>-1&&this.unexpected(r)):this.options.ecmaVersion>=9&&(e.await=r>-1),this.parseForIn(e,t)):(r>-1&&this.unexpected(r),this.parseFor(e,t))};ht.parseFunctionStatement=function(e,t,r){return this.next(),this.parseFunction(e,zp|(r?0:Ky),!1,t)};ht.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement("if"),e.alternate=this.eat(j._else)?this.parseStatement("if"):null,this.finishNode(e,"IfStatement")};ht.parseReturnStatement=function(e){return this.allowReturn||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(j.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")};ht.parseSwitchStatement=function(e){this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(j.braceL),this.labels.push(zW),this.enterScope(vR);for(var t,r=!1;this.type!==j.braceR;)if(this.type===j._case||this.type===j._default){var i=this.type===j._case;t&&this.finishNode(t,"SwitchCase"),e.cases.push(t=this.startNode()),t.consequent=[],this.next(),i?t.test=this.parseExpression():(r&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),r=!0,t.test=null),this.expect(j.colon)}else t||this.unexpected(),t.consequent.push(this.parseStatement(null));return this.exitScope(),t&&this.finishNode(t,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(e,"SwitchStatement")};ht.parseThrowStatement=function(e){return this.next(),En.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")};HW=[];ht.parseCatchClauseParam=function(){var e=this.parseBindingAtom(),t=e.type==="Identifier";return this.enterScope(t?wR:0),this.checkLValPattern(e,t?QR:ca),this.expect(j.parenR),e};ht.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===j._catch){var t=this.startNode();this.next(),this.eat(j.parenL)?t.param=this.parseCatchClauseParam():(this.options.ecmaVersion<10&&this.unexpected(),t.param=null,this.enterScope(0)),t.body=this.parseBlock(!1),this.exitScope(),e.handler=this.finishNode(t,"CatchClause")}return e.finalizer=this.eat(j._finally)?this.parseBlock():null,!e.handler&&!e.finalizer&&this.raise(e.start,"Missing catch or finally clause"),this.finishNode(e,"TryStatement")};ht.parseVarStatement=function(e,t,r){return this.next(),this.parseVar(e,!1,t,r),this.semicolon(),this.finishNode(e,"VariableDeclaration")};ht.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(sb),e.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(e,"WhileStatement")};ht.parseWithStatement=function(e){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),e.object=this.parseParenExpression(),e.body=this.parseStatement("with"),this.finishNode(e,"WithStatement")};ht.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,"EmptyStatement")};ht.parseLabeledStatement=function(e,t,r,i){for(var n=0,s=this.labels;n<s.length;n+=1){var o=s[n];o.name===t&&this.raise(r.start,"Label '"+t+"' is already declared")}for(var a=this.type.isLoop?"loop":this.type===j._switch?"switch":null,u=this.labels.length-1;u>=0;u--){var l=this.labels[u];if(l.statementStart===e.start)l.statementStart=this.start,l.kind=a;else break}return this.labels.push({name:t,kind:a,statementStart:this.start}),e.body=this.parseStatement(i?i.indexOf("label")===-1?i+"label":i:"label"),this.labels.pop(),e.label=r,this.finishNode(e,"LabeledStatement")};ht.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")};ht.parseBlock=function(e,t,r){for(e===void 0&&(e=!0),t===void 0&&(t=this.startNode()),t.body=[],this.expect(j.braceL),e&&this.enterScope(0);this.type!==j.braceR;){var i=this.parseStatement(null);t.body.push(i)}return r&&(this.strict=!1),this.next(),e&&this.exitScope(),this.finishNode(t,"BlockStatement")};ht.parseFor=function(e,t){return e.init=t,this.expect(j.semi),e.test=this.type===j.semi?null:this.parseExpression(),this.expect(j.semi),e.update=this.type===j.parenR?null:this.parseExpression(),this.expect(j.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,"ForStatement")};ht.parseForIn=function(e,t){var r=this.type===j._in;return this.next(),t.type==="VariableDeclaration"&&t.declarations[0].init!=null&&(!r||this.options.ecmaVersion<8||this.strict||t.kind!=="var"||t.declarations[0].id.type!=="Identifier")&&this.raise(t.start,(r?"for-in":"for-of")+" loop variable declaration may not have an initializer"),e.left=t,e.right=r?this.parseExpression():this.parseMaybeAssign(),this.expect(j.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,r?"ForInStatement":"ForOfStatement")};ht.parseVar=function(e,t,r,i){for(e.declarations=[],e.kind=r;;){var n=this.startNode();if(this.parseVarId(n,r),this.eat(j.eq)?n.init=this.parseMaybeAssign(t):!i&&r==="const"&&!(this.type===j._in||this.options.ecmaVersion>=6&&this.isContextual("of"))?this.unexpected():!i&&(r==="using"||r==="await using")&&this.options.ecmaVersion>=17&&this.type!==j._in&&!this.isContextual("of")?this.raise(this.lastTokEnd,"Missing initializer in "+r+" declaration"):!i&&n.id.type!=="Identifier"&&!(t&&(this.type===j._in||this.isContextual("of")))?this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):n.init=null,e.declarations.push(this.finishNode(n,"VariableDeclarator")),!this.eat(j.comma))break}return e};ht.parseVarId=function(e,t){e.id=t==="using"||t==="await using"?this.parseIdent():this.parseBindingAtom(),this.checkLValPattern(e.id,t==="var"?nb:ca,!1)};zp=1,Ky=2,DR=4;ht.parseFunction=function(e,t,r,i,n){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!i)&&(this.type===j.star&&t&Ky&&this.unexpected(),e.generator=this.eat(j.star)),this.options.ecmaVersion>=8&&(e.async=!!i),t&zp&&(e.id=t&DR&&this.type!==j.name?null:this.parseIdent(),e.id&&!(t&Ky)&&this.checkLValSimple(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?nb:ca:xR));var s=this.yieldPos,o=this.awaitPos,a=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(ib(e.async,e.generator)),t&zp||(e.id=this.type===j.name?this.parseIdent():null),this.parseFunctionParams(e),this.parseFunctionBody(e,r,!1,n),this.yieldPos=s,this.awaitPos=o,this.awaitIdentPos=a,this.finishNode(e,t&zp?"FunctionDeclaration":"FunctionExpression")};ht.parseFunctionParams=function(e){this.expect(j.parenL),e.params=this.parseBindingList(j.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()};ht.parseClass=function(e,t){this.next();var r=this.strict;this.strict=!0,this.parseClassId(e,t),this.parseClassSuper(e);var i=this.enterClassBody(),n=this.startNode(),s=!1;for(n.body=[],this.expect(j.braceL);this.type!==j.braceR;){var o=this.parseClassElement(e.superClass!==null);o&&(n.body.push(o),o.type==="MethodDefinition"&&o.kind==="constructor"?(s&&this.raiseRecoverable(o.start,"Duplicate constructor in the same class"),s=!0):o.key&&o.key.type==="PrivateIdentifier"&&YW(i,o)&&this.raiseRecoverable(o.key.start,"Identifier '#"+o.key.name+"' has already been declared"))}return this.strict=r,this.next(),e.body=this.finishNode(n,"ClassBody"),this.exitClassBody(),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")};ht.parseClassElement=function(e){if(this.eat(j.semi))return null;var t=this.options.ecmaVersion,r=this.startNode(),i="",n=!1,s=!1,o="method",a=!1;if(this.eatContextual("static")){if(t>=13&&this.eat(j.braceL))return this.parseClassStaticBlock(r),r;this.isClassElementNameStart()||this.type===j.star?a=!0:i="static"}if(r.static=a,!i&&t>=8&&this.eatContextual("async")&&((this.isClassElementNameStart()||this.type===j.star)&&!this.canInsertSemicolon()?s=!0:i="async"),!i&&(t>=9||!s)&&this.eat(j.star)&&(n=!0),!i&&!s&&!n){var u=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?o=u:i=u)}if(i?(r.computed=!1,r.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),r.key.name=i,this.finishNode(r.key,"Identifier")):this.parseClassElementName(r),t<13||this.type===j.parenL||o!=="method"||n||s){var l=!r.static&&zg(r,"constructor"),A=l&&e;l&&o!=="method"&&this.raise(r.key.start,"Constructor can't have get/set modifier"),r.kind=l?"constructor":o,this.parseClassMethod(r,n,s,A)}else this.parseClassField(r);return r};ht.isClassElementNameStart=function(){return this.type===j.name||this.type===j.privateId||this.type===j.num||this.type===j.string||this.type===j.bracketL||this.type.keyword};ht.parseClassElementName=function(e){this.type===j.privateId?(this.value==="constructor"&&this.raise(this.start,"Classes can't have an element named '#constructor'"),e.computed=!1,e.key=this.parsePrivateIdent()):this.parsePropertyName(e)};ht.parseClassMethod=function(e,t,r,i){var n=e.key;e.kind==="constructor"?(t&&this.raise(n.start,"Constructor can't be a generator"),r&&this.raise(n.start,"Constructor can't be an async method")):e.static&&zg(e,"prototype")&&this.raise(n.start,"Classes may not have a static property named prototype");var s=e.value=this.parseMethod(t,r,i);return e.kind==="get"&&s.params.length!==0&&this.raiseRecoverable(s.start,"getter should have no params"),e.kind==="set"&&s.params.length!==1&&this.raiseRecoverable(s.start,"setter should have exactly one param"),e.kind==="set"&&s.params[0].type==="RestElement"&&this.raiseRecoverable(s.params[0].start,"Setter cannot use rest params"),this.finishNode(e,"MethodDefinition")};ht.parseClassField=function(e){return zg(e,"constructor")?this.raise(e.key.start,"Classes can't have a field named 'constructor'"):e.static&&zg(e,"prototype")&&this.raise(e.key.start,"Classes can't have a static field named 'prototype'"),this.eat(j.eq)?(this.enterScope(Yp|Jg),e.value=this.parseMaybeAssign(),this.exitScope()):e.value=null,this.semicolon(),this.finishNode(e,"PropertyDefinition")};ht.parseClassStaticBlock=function(e){e.body=[];var t=this.labels;for(this.labels=[],this.enterScope(_u|Jg);this.type!==j.braceR;){var r=this.parseStatement(null);e.body.push(r)}return this.next(),this.exitScope(),this.labels=t,this.finishNode(e,"StaticBlock")};ht.parseClassId=function(e,t){this.type===j.name?(e.id=this.parseIdent(),t&&this.checkLValSimple(e.id,ca,!1)):(t===!0&&this.unexpected(),e.id=null)};ht.parseClassSuper=function(e){e.superClass=this.eat(j._extends)?this.parseExprSubscripts(null,!1):null};ht.enterClassBody=function(){var e={declared:Object.create(null),used:[]};return this.privateNameStack.push(e),e.declared};ht.exitClassBody=function(){var e=this.privateNameStack.pop(),t=e.declared,r=e.used;if(this.options.checkPrivateFields)for(var i=this.privateNameStack.length,n=i===0?null:this.privateNameStack[i-1],s=0;s<r.length;++s){var o=r[s];Ah(t,o.name)||(n?n.used.push(o):this.raiseRecoverable(o.start,"Private field '#"+o.name+"' must be declared in an enclosing class"))}};ht.parseExportAllDeclaration=function(e,t){return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(e.exported=this.parseModuleExportName(),this.checkExport(t,e.exported,this.lastTokStart)):e.exported=null),this.expectContextual("from"),this.type!==j.string&&this.unexpected(),e.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(e,"ExportAllDeclaration")};ht.parseExport=function(e,t){if(this.next(),this.eat(j.star))return this.parseExportAllDeclaration(e,t);if(this.eat(j._default))return this.checkExport(t,"default",this.lastTokStart),e.declaration=this.parseExportDefaultDeclaration(),this.finishNode(e,"ExportDefaultDeclaration");if(this.shouldParseExportStatement())e.declaration=this.parseExportDeclaration(e),e.declaration.type==="VariableDeclaration"?this.checkVariableExport(t,e.declaration.declarations):this.checkExport(t,e.declaration.id,e.declaration.id.start),e.specifiers=[],e.source=null,this.options.ecmaVersion>=16&&(e.attributes=[]);else{if(e.declaration=null,e.specifiers=this.parseExportSpecifiers(t),this.eatContextual("from"))this.type!==j.string&&this.unexpected(),e.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause());else{for(var r=0,i=e.specifiers;r<i.length;r+=1){var n=i[r];this.checkUnreserved(n.local),this.checkLocalExport(n.local),n.local.type==="Literal"&&this.raise(n.local.start,"A string literal cannot be used as an exported binding without `from`.")}e.source=null,this.options.ecmaVersion>=16&&(e.attributes=[])}this.semicolon()}return this.finishNode(e,"ExportNamedDeclaration")};ht.parseExportDeclaration=function(e){return this.parseStatement(null)};ht.parseExportDefaultDeclaration=function(){var e;if(this.type===j._function||(e=this.isAsyncFunction())){var t=this.startNode();return this.next(),e&&this.next(),this.parseFunction(t,zp|DR,!1,e)}else if(this.type===j._class){var r=this.startNode();return this.parseClass(r,"nullableID")}else{var i=this.parseMaybeAssign();return this.semicolon(),i}};ht.checkExport=function(e,t,r){e&&(typeof t!="string"&&(t=t.type==="Identifier"?t.name:t.value),Ah(e,t)&&this.raiseRecoverable(r,"Duplicate export '"+t+"'"),e[t]=!0)};ht.checkPatternExport=function(e,t){var r=t.type;if(r==="Identifier")this.checkExport(e,t,t.start);else if(r==="ObjectPattern")for(var i=0,n=t.properties;i<n.length;i+=1){var s=n[i];this.checkPatternExport(e,s)}else if(r==="ArrayPattern")for(var o=0,a=t.elements;o<a.length;o+=1){var u=a[o];u&&this.checkPatternExport(e,u)}else r==="Property"?this.checkPatternExport(e,t.value):r==="AssignmentPattern"?this.checkPatternExport(e,t.left):r==="RestElement"&&this.checkPatternExport(e,t.argument)};ht.checkVariableExport=function(e,t){if(e)for(var r=0,i=t;r<i.length;r+=1){var n=i[r];this.checkPatternExport(e,n.id)}};ht.shouldParseExportStatement=function(){return this.type.keyword==="var"||this.type.keyword==="const"||this.type.keyword==="class"||this.type.keyword==="function"||this.isLet()||this.isAsyncFunction()};ht.parseExportSpecifier=function(e){var t=this.startNode();return t.local=this.parseModuleExportName(),t.exported=this.eatContextual("as")?this.parseModuleExportName():t.local,this.checkExport(e,t.exported,t.exported.start),this.finishNode(t,"ExportSpecifier")};ht.parseExportSpecifiers=function(e){var t=[],r=!0;for(this.expect(j.braceL);!this.eat(j.braceR);){if(r)r=!1;else if(this.expect(j.comma),this.afterTrailingComma(j.braceR))break;t.push(this.parseExportSpecifier(e))}return t};ht.parseImport=function(e){return this.next(),this.type===j.string?(e.specifiers=HW,e.source=this.parseExprAtom()):(e.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),e.source=this.type===j.string?this.parseExprAtom():this.unexpected()),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(e,"ImportDeclaration")};ht.parseImportSpecifier=function(){var e=this.startNode();return e.imported=this.parseModuleExportName(),this.eatContextual("as")?e.local=this.parseIdent():(this.checkUnreserved(e.imported),e.local=e.imported),this.checkLValSimple(e.local,ca),this.finishNode(e,"ImportSpecifier")};ht.parseImportDefaultSpecifier=function(){var e=this.startNode();return e.local=this.parseIdent(),this.checkLValSimple(e.local,ca),this.finishNode(e,"ImportDefaultSpecifier")};ht.parseImportNamespaceSpecifier=function(){var e=this.startNode();return this.next(),this.expectContextual("as"),e.local=this.parseIdent(),this.checkLValSimple(e.local,ca),this.finishNode(e,"ImportNamespaceSpecifier")};ht.parseImportSpecifiers=function(){var e=[],t=!0;if(this.type===j.name&&(e.push(this.parseImportDefaultSpecifier()),!this.eat(j.comma)))return e;if(this.type===j.star)return e.push(this.parseImportNamespaceSpecifier()),e;for(this.expect(j.braceL);!this.eat(j.braceR);){if(t)t=!1;else if(this.expect(j.comma),this.afterTrailingComma(j.braceR))break;e.push(this.parseImportSpecifier())}return e};ht.parseWithClause=function(){var e=[];if(!this.eat(j._with))return e;this.expect(j.braceL);for(var t={},r=!0;!this.eat(j.braceR);){if(r)r=!1;else if(this.expect(j.comma),this.afterTrailingComma(j.braceR))break;var i=this.parseImportAttribute(),n=i.key.type==="Identifier"?i.key.name:i.key.value;Ah(t,n)&&this.raiseRecoverable(i.key.start,"Duplicate attribute key '"+n+"'"),t[n]=!0,e.push(i)}return e};ht.parseImportAttribute=function(){var e=this.startNode();return e.key=this.type===j.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never"),this.expect(j.colon),this.type!==j.string&&this.unexpected(),e.value=this.parseExprAtom(),this.finishNode(e,"ImportAttribute")};ht.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===j.string){var e=this.parseLiteral(this.value);return VW.test(e.value)&&this.raise(e.start,"An export name cannot include a lone surrogate."),e}return this.parseIdent(!0)};ht.adaptDirectivePrologue=function(e){for(var t=0;t<e.length&&this.isDirectiveCandidate(e[t]);++t)e[t].directive=e[t].expression.raw.slice(1,-1)};ht.isDirectiveCandidate=function(e){return this.options.ecmaVersion>=5&&e.type==="ExpressionStatement"&&e.expression.type==="Literal"&&typeof e.expression.value=="string"&&(this.input[e.start]==='"'||this.input[e.start]==="'")};ds=yi.prototype;ds.toAssignable=function(e,t,r){if(this.options.ecmaVersion>=6&&e)switch(e.type){case"Identifier":this.inAsync&&e.name==="await"&&this.raise(e.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":e.type="ObjectPattern",r&&this.checkPatternErrors(r,!0);for(var i=0,n=e.properties;i<n.length;i+=1){var s=n[i];this.toAssignable(s,t),s.type==="RestElement"&&(s.argument.type==="ArrayPattern"||s.argument.type==="ObjectPattern")&&this.raise(s.argument.start,"Unexpected token")}break;case"Property":e.kind!=="init"&&this.raise(e.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(e.value,t);break;case"ArrayExpression":e.type="ArrayPattern",r&&this.checkPatternErrors(r,!0),this.toAssignableList(e.elements,t);break;case"SpreadElement":e.type="RestElement",this.toAssignable(e.argument,t),e.argument.type==="AssignmentPattern"&&this.raise(e.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":e.operator!=="="&&this.raise(e.left.end,"Only '=' operator can be used for specifying default value."),e.type="AssignmentPattern",delete e.operator,this.toAssignable(e.left,t);break;case"ParenthesizedExpression":this.toAssignable(e.expression,t,r);break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!t)break;default:this.raise(e.start,"Assigning to rvalue")}else r&&this.checkPatternErrors(r,!0);return e};ds.toAssignableList=function(e,t){for(var r=e.length,i=0;i<r;i++){var n=e[i];n&&this.toAssignable(n,t)}if(r){var s=e[r-1];this.options.ecmaVersion===6&&t&&s&&s.type==="RestElement"&&s.argument.type!=="Identifier"&&this.unexpected(s.argument.start)}return e};ds.parseSpread=function(e){var t=this.startNode();return this.next(),t.argument=this.parseMaybeAssign(!1,e),this.finishNode(t,"SpreadElement")};ds.parseRestBinding=function(){var e=this.startNode();return this.next(),this.options.ecmaVersion===6&&this.type!==j.name&&this.unexpected(),e.argument=this.parseBindingAtom(),this.finishNode(e,"RestElement")};ds.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case j.bracketL:var e=this.startNode();return this.next(),e.elements=this.parseBindingList(j.bracketR,!0,!0),this.finishNode(e,"ArrayPattern");case j.braceL:return this.parseObj(!0)}return this.parseIdent()};ds.parseBindingList=function(e,t,r,i){for(var n=[],s=!0;!this.eat(e);)if(s?s=!1:this.expect(j.comma),t&&this.type===j.comma)n.push(null);else{if(r&&this.afterTrailingComma(e))break;if(this.type===j.ellipsis){var o=this.parseRestBinding();this.parseBindingListItem(o),n.push(o),this.type===j.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.expect(e);break}else n.push(this.parseAssignableListItem(i))}return n};ds.parseAssignableListItem=function(e){var t=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(t),t};ds.parseBindingListItem=function(e){return e};ds.parseMaybeDefault=function(e,t,r){if(r=r||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(j.eq))return r;var i=this.startNodeAt(e,t);return i.left=r,i.right=this.parseMaybeAssign(),this.finishNode(i,"AssignmentPattern")};ds.checkLValSimple=function(e,t,r){t===void 0&&(t=jg);var i=t!==jg;switch(e.type){case"Identifier":this.strict&&this.reservedWordsStrictBind.test(e.name)&&this.raiseRecoverable(e.start,(i?"Binding ":"Assigning to ")+e.name+" in strict mode"),i&&(t===ca&&e.name==="let"&&this.raiseRecoverable(e.start,"let is disallowed as a lexically bound name"),r&&(Ah(r,e.name)&&this.raiseRecoverable(e.start,"Argument name clash"),r[e.name]=!0),t!==SR&&this.declareName(e.name,t,e.start));break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":i&&this.raiseRecoverable(e.start,"Binding member expression");break;case"ParenthesizedExpression":return i&&this.raiseRecoverable(e.start,"Binding parenthesized expression"),this.checkLValSimple(e.expression,t,r);default:this.raise(e.start,(i?"Binding":"Assigning to")+" rvalue")}};ds.checkLValPattern=function(e,t,r){switch(t===void 0&&(t=jg),e.type){case"ObjectPattern":for(var i=0,n=e.properties;i<n.length;i+=1){var s=n[i];this.checkLValInnerPattern(s,t,r)}break;case"ArrayPattern":for(var o=0,a=e.elements;o<a.length;o+=1){var u=a[o];u&&this.checkLValInnerPattern(u,t,r)}break;default:this.checkLValSimple(e,t,r)}};ds.checkLValInnerPattern=function(e,t,r){switch(t===void 0&&(t=jg),e.type){case"Property":this.checkLValInnerPattern(e.value,t,r);break;case"AssignmentPattern":this.checkLValPattern(e.left,t,r);break;case"RestElement":this.checkLValPattern(e.argument,t,r);break;default:this.checkLValPattern(e,t,r)}};qs=function(t,r,i,n,s){this.token=t,this.isExpr=!!r,this.preserveSpace=!!i,this.override=n,this.generator=!!s},qr={b_stat:new qs("{",!1),b_expr:new qs("{",!0),b_tmpl:new qs("${",!1),p_stat:new qs("(",!1),p_expr:new qs("(",!0),q_tmpl:new qs("`",!0,!0,function(e){return e.tryReadTemplateToken()}),f_stat:new qs("function",!1),f_expr:new qs("function",!0),f_expr_gen:new qs("function",!0,!1,null,!0),f_gen:new qs("function",!1,!1,null,!0)},ph=yi.prototype;ph.initialContext=function(){return[qr.b_stat]};ph.curContext=function(){return this.context[this.context.length-1]};ph.braceIsBlock=function(e){var t=this.curContext();return t===qr.f_expr||t===qr.f_stat?!0:e===j.colon&&(t===qr.b_stat||t===qr.b_expr)?!t.isExpr:e===j._return||e===j.name&&this.exprAllowed?En.test(this.input.slice(this.lastTokEnd,this.start)):e===j._else||e===j.semi||e===j.eof||e===j.parenR||e===j.arrow?!0:e===j.braceL?t===qr.b_stat:e===j._var||e===j._const||e===j.name?!1:!this.exprAllowed};ph.inGeneratorContext=function(){for(var e=this.context.length-1;e>=1;e--){var t=this.context[e];if(t.token==="function")return t.generator}return!1};ph.updateContext=function(e){var t,r=this.type;r.keyword&&e===j.dot?this.exprAllowed=!1:(t=r.updateContext)?t.call(this,e):this.exprAllowed=r.beforeExpr};ph.overrideContext=function(e){this.curContext()!==e&&(this.context[this.context.length-1]=e)};j.parenR.updateContext=j.braceR.updateContext=function(){if(this.context.length===1){this.exprAllowed=!0;return}var e=this.context.pop();e===qr.b_stat&&this.curContext().token==="function"&&(e=this.context.pop()),this.exprAllowed=!e.isExpr};j.braceL.updateContext=function(e){this.context.push(this.braceIsBlock(e)?qr.b_stat:qr.b_expr),this.exprAllowed=!0};j.dollarBraceL.updateContext=function(){this.context.push(qr.b_tmpl),this.exprAllowed=!0};j.parenL.updateContext=function(e){var t=e===j._if||e===j._for||e===j._with||e===j._while;this.context.push(t?qr.p_stat:qr.p_expr),this.exprAllowed=!0};j.incDec.updateContext=function(){};j._function.updateContext=j._class.updateContext=function(e){e.beforeExpr&&e!==j._else&&!(e===j.semi&&this.curContext()!==qr.p_stat)&&!(e===j._return&&En.test(this.input.slice(this.lastTokEnd,this.start)))&&!((e===j.colon||e===j.braceL)&&this.curContext()===qr.b_stat)?this.context.push(qr.f_expr):this.context.push(qr.f_stat),this.exprAllowed=!1};j.colon.updateContext=function(){this.curContext().token==="function"&&this.context.pop(),this.exprAllowed=!0};j.backQuote.updateContext=function(){this.curContext()===qr.q_tmpl?this.context.pop():this.context.push(qr.q_tmpl),this.exprAllowed=!1};j.star.updateContext=function(e){if(e===j._function){var t=this.context.length-1;this.context[t]===qr.f_expr?this.context[t]=qr.f_expr_gen:this.context[t]=qr.f_gen}this.exprAllowed=!0};j.name.updateContext=function(e){var t=!1;this.options.ecmaVersion>=6&&e!==j.dot&&(this.value==="of"&&!this.exprAllowed||this.value==="yield"&&this.inGeneratorContext())&&(t=!0),this.exprAllowed=t};_t=yi.prototype;_t.checkPropClash=function(e,t,r){if(!(this.options.ecmaVersion>=9&&e.type==="SpreadElement")&&!(this.options.ecmaVersion>=6&&(e.computed||e.method||e.shorthand))){var i=e.key,n;switch(i.type){case"Identifier":n=i.name;break;case"Literal":n=String(i.value);break;default:return}var s=e.kind;if(this.options.ecmaVersion>=6){n==="__proto__"&&s==="init"&&(t.proto&&(r?r.doubleProto<0&&(r.doubleProto=i.start):this.raiseRecoverable(i.start,"Redefinition of __proto__ property")),t.proto=!0);return}n="$"+n;var o=t[n];if(o){var a;s==="init"?a=this.strict&&o.init||o.get||o.set:a=o.init||o[s],a&&this.raiseRecoverable(i.start,"Redefinition of property")}else o=t[n]={init:!1,get:!1,set:!1};o[s]=!0}};_t.parseExpression=function(e,t){var r=this;return this.catchStackOverflow(function(){var i=r.start,n=r.startLoc,s=r.parseMaybeAssign(e,t);if(r.type===j.comma){var o=r.startNodeAt(i,n);for(o.expressions=[s];r.eat(j.comma);)o.expressions.push(r.parseMaybeAssign(e,t));return r.finishNode(o,"SequenceExpression")}return s})};_t.parseMaybeAssign=function(e,t,r){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(e);this.exprAllowed=!1}var i=!1,n=-1,s=-1,o=-1;t?(n=t.parenthesizedAssign,s=t.trailingComma,o=t.doubleProto,t.parenthesizedAssign=t.trailingComma=-1):(t=new Kg,i=!0);var a=this.start,u=this.startLoc;(this.type===j.parenL||this.type===j.name)&&(this.potentialArrowAt=this.start,this.potentialArrowInForAwait=e==="await");var l=this.parseMaybeConditional(e,t);if(r&&(l=r.call(this,l,a,u)),this.type.isAssign){var A=this.startNodeAt(a,u);return A.operator=this.value,this.type===j.eq&&(l=this.toAssignable(l,!1,t)),i||(t.parenthesizedAssign=t.trailingComma=t.doubleProto=-1),t.shorthandAssign>=l.start&&(t.shorthandAssign=-1),this.type===j.eq?this.checkLValPattern(l):this.checkLValSimple(l),A.left=l,this.next(),A.right=this.parseMaybeAssign(e),o>-1&&(t.doubleProto=o),this.finishNode(A,"AssignmentExpression")}else i&&this.checkExpressionErrors(t,!0);return n>-1&&(t.parenthesizedAssign=n),s>-1&&(t.trailingComma=s),l};_t.parseMaybeConditional=function(e,t){var r=this.start,i=this.startLoc,n=this.parseExprOps(e,t);if(this.checkExpressionErrors(t))return n;if(!(n.type==="ArrowFunctionExpression"&&n.start===r)&&this.eat(j.question)){var s=this.startNodeAt(r,i);return s.test=n,s.consequent=this.parseMaybeAssign(),this.expect(j.colon),s.alternate=this.parseMaybeAssign(e),this.finishNode(s,"ConditionalExpression")}return n};_t.parseExprOps=function(e,t){var r=this.start,i=this.startLoc,n=this.parseMaybeUnary(t,!1,!1,e);return this.checkExpressionErrors(t)||n.start===r&&n.type==="ArrowFunctionExpression"?n:this.parseExprOp(n,r,i,-1,e)};_t.parseExprOp=function(e,t,r,i,n){var s=this.type.binop;if(s!=null&&(!n||this.type!==j._in)&&s>i){var o=this.type===j.logicalOR||this.type===j.logicalAND,a=this.type===j.coalesce;a&&(s=j.logicalAND.binop);var u=this.value;this.next();var l=this.start,A=this.startLoc,h=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,n),l,A,s,n),d=this.buildBinary(t,r,e,h,u,o||a);return(o&&this.type===j.coalesce||a&&(this.type===j.logicalOR||this.type===j.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(d,t,r,i,n)}return e};_t.buildBinary=function(e,t,r,i,n,s){i.type==="PrivateIdentifier"&&this.raise(i.start,"Private identifier can only be left side of binary expression");var o=this.startNodeAt(e,t);return o.left=r,o.operator=n,o.right=i,this.finishNode(o,s?"LogicalExpression":"BinaryExpression")};_t.parseMaybeUnary=function(e,t,r,i){var n=this.start,s=this.startLoc,o;if(this.isContextual("await")&&this.canAwait)o=this.parseAwait(i),t=!0;else if(this.type.prefix){var a=this.startNode(),u=this.type===j.incDec;a.operator=this.value,a.prefix=!0,this.next(),a.argument=this.parseMaybeUnary(null,!0,u,i),this.checkExpressionErrors(e,!0),u?this.checkLValSimple(a.argument):this.strict&&a.operator==="delete"&&kR(a.argument)?this.raiseRecoverable(a.start,"Deleting local variable in strict mode"):a.operator==="delete"&&Xy(a.argument)?this.raiseRecoverable(a.start,"Private fields can not be deleted"):t=!0,o=this.finishNode(a,u?"UpdateExpression":"UnaryExpression")}else if(!t&&this.type===j.privateId)(i||this.privateNameStack.length===0)&&this.options.checkPrivateFields&&this.unexpected(),o=this.parsePrivateIdent(),this.type!==j._in&&this.unexpected();else{if(o=this.parseExprSubscripts(e,i),this.checkExpressionErrors(e))return o;for(;this.type.postfix&&!this.canInsertSemicolon();){var l=this.startNodeAt(n,s);l.operator=this.value,l.prefix=!1,l.argument=o,this.checkLValSimple(o),this.next(),o=this.finishNode(l,"UpdateExpression")}}if(!r&&!(o.type==="ArrowFunctionExpression"&&o.start===n)&&this.eat(j.starstar))if(t)this.unexpected(this.lastTokStart);else return this.buildBinary(n,s,o,this.parseMaybeUnary(null,!1,!1,i),"**",!1);else return o};_t.parseExprSubscripts=function(e,t){var r=this.start,i=this.startLoc,n=this.parseExprAtom(e,t);if(n.type==="ArrowFunctionExpression"&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==")")return n;var s=this.parseSubscripts(n,r,i,!1,t);return e&&s.type==="MemberExpression"&&(e.parenthesizedAssign>=s.start&&(e.parenthesizedAssign=-1),e.parenthesizedBind>=s.start&&(e.parenthesizedBind=-1),e.trailingComma>=s.start&&(e.trailingComma=-1)),s};_t.parseSubscripts=function(e,t,r,i,n){for(var s=this.options.ecmaVersion>=8&&e.type==="Identifier"&&e.name==="async"&&this.lastTokEnd===e.end&&!this.canInsertSemicolon()&&e.end-e.start===5&&this.potentialArrowAt===e.start,o=!1;;){var a=this.parseSubscript(e,t,r,i,s,o,n);if(a.optional&&(o=!0),a===e||a.type==="ArrowFunctionExpression"){if(o){var u=this.startNodeAt(t,r);u.expression=a,a=this.finishNode(u,"ChainExpression")}return a}e=a}};_t.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(j.arrow)};_t.parseSubscriptAsyncArrow=function(e,t,r,i){return this.parseArrowExpression(this.startNodeAt(e,t),r,!0,i)};_t.parseSubscript=function(e,t,r,i,n,s,o){var a=this.options.ecmaVersion>=11,u=a&&this.eat(j.questionDot);i&&u&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var l=this.eat(j.bracketL);if(l||u&&this.type!==j.parenL&&this.type!==j.backQuote||this.eat(j.dot)){var A=this.startNodeAt(t,r);A.object=e,l?(A.property=this.parseExpression(),this.expect(j.bracketR)):this.type===j.privateId&&e.type!=="Super"?A.property=this.parsePrivateIdent():A.property=this.parseIdent(this.options.allowReserved!=="never"),A.computed=!!l,a&&(A.optional=u),e=this.finishNode(A,"MemberExpression")}else if(!i&&this.eat(j.parenL)){var h=new Kg,d=this.yieldPos,m=this.awaitPos,g=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var E=this.parseExprList(j.parenR,this.options.ecmaVersion>=8,!1,h);if(n&&!u&&this.shouldParseAsyncArrow())return this.checkPatternErrors(h,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=d,this.awaitPos=m,this.awaitIdentPos=g,this.parseSubscriptAsyncArrow(t,r,E,o);this.checkExpressionErrors(h,!0),this.yieldPos=d||this.yieldPos,this.awaitPos=m||this.awaitPos,this.awaitIdentPos=g||this.awaitIdentPos;var y=this.startNodeAt(t,r);y.callee=e,y.arguments=E,a&&(y.optional=u),e=this.finishNode(y,"CallExpression")}else if(this.type===j.backQuote){(u||s)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var w=this.startNodeAt(t,r);w.tag=e,w.quasi=this.parseTemplate({isTagged:!0}),e=this.finishNode(w,"TaggedTemplateExpression")}return e};_t.parseExprAtom=function(e,t,r){this.type===j.slash&&this.readRegexp();var i,n=this.potentialArrowAt===this.start;switch(this.type){case j._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),i=this.startNode(),this.next(),this.type===j.parenL&&!this.allowDirectSuper&&this.raise(i.start,"super() call outside constructor of a subclass"),this.type!==j.dot&&this.type!==j.bracketL&&this.type!==j.parenL&&this.unexpected(),this.finishNode(i,"Super");case j._this:return i=this.startNode(),this.next(),this.finishNode(i,"ThisExpression");case j.name:var s=this.start,o=this.startLoc,a=this.containsEsc,u=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!a&&u.name==="async"&&!this.canInsertSemicolon()&&this.eat(j._function))return this.overrideContext(qr.f_expr),this.parseFunction(this.startNodeAt(s,o),0,!1,!0,t);if(n&&!this.canInsertSemicolon()){if(this.eat(j.arrow))return this.parseArrowExpression(this.startNodeAt(s,o),[u],!1,t);if(this.options.ecmaVersion>=8&&u.name==="async"&&this.type===j.name&&!a&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc))return u=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(j.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(s,o),[u],!0,t)}return u;case j.regexp:var l=this.value;return i=this.parseLiteral(l.value),i.regex={pattern:l.pattern,flags:l.flags},i;case j.num:case j.string:return this.parseLiteral(this.value);case j._null:case j._true:case j._false:return i=this.startNode(),i.value=this.type===j._null?null:this.type===j._true,i.raw=this.type.keyword,this.next(),this.finishNode(i,"Literal");case j.parenL:var A=this.start,h=this.parseParenAndDistinguishExpression(n,t);return e&&(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(h)&&(e.parenthesizedAssign=A),e.parenthesizedBind<0&&(e.parenthesizedBind=A)),h;case j.bracketL:return i=this.startNode(),this.next(),i.elements=this.parseExprList(j.bracketR,!0,!0,e),this.finishNode(i,"ArrayExpression");case j.braceL:return this.overrideContext(qr.b_expr),this.parseObj(!1,e);case j._function:return i=this.startNode(),this.next(),this.parseFunction(i,0);case j._class:return this.parseClass(this.startNode(),!1);case j._new:return this.parseNew();case j.backQuote:return this.parseTemplate();case j._import:return this.options.ecmaVersion>=11?this.parseExprImport(r):this.unexpected();default:return this.parseExprAtomDefault()}};_t.parseExprAtomDefault=function(){this.unexpected()};_t.parseExprImport=function(e){var t=this.startNode();if(this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import"),this.next(),this.type===j.parenL&&!e)return this.parseDynamicImport(t);if(this.type===j.dot){var r=this.startNodeAt(t.start,t.loc&&t.loc.start);return r.name="import",t.meta=this.finishNode(r,"Identifier"),this.parseImportMeta(t)}else this.unexpected()};_t.parseDynamicImport=function(e){if(this.next(),e.source=this.parseMaybeAssign(),this.options.ecmaVersion>=16)this.eat(j.parenR)?e.options=null:(this.expect(j.comma),this.afterTrailingComma(j.parenR)?e.options=null:(e.options=this.parseMaybeAssign(),this.eat(j.parenR)||(this.expect(j.comma),this.afterTrailingComma(j.parenR)||this.unexpected())));else if(!this.eat(j.parenR)){var t=this.start;this.eat(j.comma)&&this.eat(j.parenR)?this.raiseRecoverable(t,"Trailing comma is not allowed in import()"):this.unexpected(t)}return this.finishNode(e,"ImportExpression")};_t.parseImportMeta=function(e){this.next();var t=this.containsEsc;return e.property=this.parseIdent(!0),e.property.name!=="meta"&&this.raiseRecoverable(e.property.start,"The only valid meta property for import is 'import.meta'"),t&&this.raiseRecoverable(e.start,"'import.meta' must not contain escaped characters"),this.options.sourceType!=="module"&&!this.options.allowImportExportEverywhere&&this.raiseRecoverable(e.start,"Cannot use 'import.meta' outside a module"),this.finishNode(e,"MetaProperty")};_t.parseLiteral=function(e){var t=this.startNode();return t.value=e,t.raw=this.input.slice(this.start,this.end),t.raw.charCodeAt(t.raw.length-1)===110&&(t.bigint=t.value!=null?t.value.toString():t.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(t,"Literal")};_t.parseParenExpression=function(){this.expect(j.parenL);var e=this.parseExpression();return this.expect(j.parenR),e};_t.shouldParseArrow=function(e){return!this.canInsertSemicolon()};_t.parseParenAndDistinguishExpression=function(e,t){var r=this.start,i=this.startLoc,n,s=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var o=this.start,a=this.startLoc,u=[],l=!0,A=!1,h=new Kg,d=this.yieldPos,m=this.awaitPos,g;for(this.yieldPos=0,this.awaitPos=0;this.type!==j.parenR;)if(l?l=!1:this.expect(j.comma),s&&this.afterTrailingComma(j.parenR,!0)){A=!0;break}else if(this.type===j.ellipsis){g=this.start,u.push(this.parseParenItem(this.parseRestBinding())),this.type===j.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}else u.push(this.parseMaybeAssign(!1,h,this.parseParenItem));var E=this.lastTokEnd,y=this.lastTokEndLoc;if(this.expect(j.parenR),e&&this.shouldParseArrow(u)&&this.eat(j.arrow))return this.checkPatternErrors(h,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=d,this.awaitPos=m,this.parseParenArrowList(r,i,u,t);(!u.length||A)&&this.unexpected(this.lastTokStart),g&&this.unexpected(g),this.checkExpressionErrors(h,!0),this.yieldPos=d||this.yieldPos,this.awaitPos=m||this.awaitPos,u.length>1?(n=this.startNodeAt(o,a),n.expressions=u,this.finishNodeAt(n,"SequenceExpression",E,y)):n=u[0]}else n=this.parseParenExpression();if(this.options.preserveParens){var w=this.startNodeAt(r,i);return w.expression=n,this.finishNode(w,"ParenthesizedExpression")}else return n};_t.parseParenItem=function(e){return e};_t.parseParenArrowList=function(e,t,r,i){return this.parseArrowExpression(this.startNodeAt(e,t),r,!1,i)};WW=[];_t.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var e=this.startNode();if(this.next(),this.options.ecmaVersion>=6&&this.type===j.dot){var t=this.startNodeAt(e.start,e.loc&&e.loc.start);t.name="new",e.meta=this.finishNode(t,"Identifier"),this.next();var r=this.containsEsc;return e.property=this.parseIdent(!0),e.property.name!=="target"&&this.raiseRecoverable(e.property.start,"The only valid meta property for new is 'new.target'"),r&&this.raiseRecoverable(e.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(e.start,"'new.target' can only be used in functions and class static block"),this.finishNode(e,"MetaProperty")}var i=this.start,n=this.startLoc;return e.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),i,n,!0,!1),e.callee.type==="Super"&&this.raiseRecoverable(i,"Invalid use of 'super'"),this.eat(j.parenL)?e.arguments=this.parseExprList(j.parenR,this.options.ecmaVersion>=8,!1):e.arguments=WW,this.finishNode(e,"NewExpression")};_t.parseTemplateElement=function(e){var t=e.isTagged,r=this.startNode();return this.type===j.invalidTemplate?(t||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),r.value={raw:this.value.replace(/\r\n?/g,`
|
|
24
24
|
`),cooked:null}):r.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,`
|
|
25
25
|
`),cooked:this.value},this.next(),r.tail=this.type===j.backQuote,this.finishNode(r,"TemplateElement")};_t.parseTemplate=function(e){e===void 0&&(e={});var t=e.isTagged;t===void 0&&(t=!1);var r=this.startNode();this.next(),r.expressions=[];var i=this.parseTemplateElement({isTagged:t});for(r.quasis=[i];!i.tail;)this.type===j.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(j.dollarBraceL),r.expressions.push(this.parseExpression()),this.expect(j.braceR),r.quasis.push(i=this.parseTemplateElement({isTagged:t}));return this.next(),this.finishNode(r,"TemplateLiteral")};_t.isAsyncProp=function(e){return!e.computed&&e.key.type==="Identifier"&&e.key.name==="async"&&(this.type===j.name||this.type===j.num||this.type===j.string||this.type===j.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===j.star)&&!En.test(this.input.slice(this.lastTokEnd,this.start))};_t.parseObj=function(e,t){var r=this.startNode(),i=!0,n={};for(r.properties=[],this.next();!this.eat(j.braceR);){if(i)i=!1;else if(this.expect(j.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(j.braceR))break;var s=this.parseProperty(e,t);e||this.checkPropClash(s,n,t),r.properties.push(s)}return this.finishNode(r,e?"ObjectPattern":"ObjectExpression")};_t.parseProperty=function(e,t){var r=this.startNode(),i,n,s,o;if(this.options.ecmaVersion>=9&&this.eat(j.ellipsis))return e?(r.argument=this.parseIdent(!1),this.type===j.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.finishNode(r,"RestElement")):(r.argument=this.parseMaybeAssign(!1,t),this.type===j.comma&&t&&t.trailingComma<0&&(t.trailingComma=this.start),this.finishNode(r,"SpreadElement"));this.options.ecmaVersion>=6&&(r.method=!1,r.shorthand=!1,(e||t)&&(s=this.start,o=this.startLoc),e||(i=this.eat(j.star)));var a=this.containsEsc;return this.parsePropertyName(r),!e&&!a&&this.options.ecmaVersion>=8&&!i&&this.isAsyncProp(r)?(n=!0,i=this.options.ecmaVersion>=9&&this.eat(j.star),this.parsePropertyName(r)):n=!1,this.parsePropertyValue(r,e,i,n,s,o,t,a),this.finishNode(r,"Property")};_t.parseGetterSetter=function(e){var t=e.key.name;this.parsePropertyName(e),e.value=this.parseMethod(!1),e.kind=t;var r=e.kind==="get"?0:1;if(e.value.params.length!==r){var i=e.value.start;e.kind==="get"?this.raiseRecoverable(i,"getter should have no params"):this.raiseRecoverable(i,"setter should have exactly one param")}else e.kind==="set"&&e.value.params[0].type==="RestElement"&&this.raiseRecoverable(e.value.params[0].start,"Setter cannot use rest params")};_t.parsePropertyValue=function(e,t,r,i,n,s,o,a){(r||i)&&this.type===j.colon&&this.unexpected(),this.eat(j.colon)?(e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,o),e.kind="init"):this.options.ecmaVersion>=6&&this.type===j.parenL?(t&&this.unexpected(),e.method=!0,e.value=this.parseMethod(r,i),e.kind="init"):!t&&!a&&this.options.ecmaVersion>=5&&!e.computed&&e.key.type==="Identifier"&&(e.key.name==="get"||e.key.name==="set")&&this.type!==j.comma&&this.type!==j.braceR&&this.type!==j.eq?((r||i)&&this.unexpected(),this.parseGetterSetter(e)):this.options.ecmaVersion>=6&&!e.computed&&e.key.type==="Identifier"?((r||i)&&this.unexpected(),this.checkUnreserved(e.key),e.key.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=n),t?e.value=this.parseMaybeDefault(n,s,this.copyNode(e.key)):this.type===j.eq&&o?(o.shorthandAssign<0&&(o.shorthandAssign=this.start),e.value=this.parseMaybeDefault(n,s,this.copyNode(e.key))):e.value=this.copyNode(e.key),e.kind="init",e.shorthand=!0):this.unexpected()};_t.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(j.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(j.bracketR),e.key;e.computed=!1}return e.key=this.type===j.num||this.type===j.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")};_t.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)};_t.parseMethod=function(e,t,r){var i=this.startNode(),n=this.yieldPos,s=this.awaitPos,o=this.awaitIdentPos;return this.initFunction(i),this.options.ecmaVersion>=6&&(i.generator=e),this.options.ecmaVersion>=8&&(i.async=!!t),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(ib(t,i.generator)|Jg|(r?BR:0)),this.expect(j.parenL),i.params=this.parseBindingList(j.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(i,!1,!0,!1),this.yieldPos=n,this.awaitPos=s,this.awaitIdentPos=o,this.finishNode(i,"FunctionExpression")};_t.parseArrowExpression=function(e,t,r,i){var n=this.yieldPos,s=this.awaitPos,o=this.awaitIdentPos;return this.enterScope(ib(r,!1)|rb),this.initFunction(e),this.options.ecmaVersion>=8&&(e.async=!!r),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,e.params=this.toAssignableList(t,!0),this.parseFunctionBody(e,!0,!1,i),this.yieldPos=n,this.awaitPos=s,this.awaitIdentPos=o,this.finishNode(e,"ArrowFunctionExpression")};_t.parseFunctionBody=function(e,t,r,i){var n=t&&this.type!==j.braceL,s=this.strict,o=!1;if(n)e.body=this.parseMaybeAssign(i),e.expression=!0,this.checkParams(e,!1);else{var a=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);(!s||a)&&(o=this.strictDirective(this.end),o&&a&&this.raiseRecoverable(e.start,"Illegal 'use strict' directive in function with non-simple parameter list"));var u=this.labels;this.labels=[],o&&(this.strict=!0),this.checkParams(e,!s&&!o&&!t&&!r&&this.isSimpleParamList(e.params)),this.strict&&e.id&&this.checkLValSimple(e.id,SR),e.body=this.parseBlock(!1,void 0,o&&!s),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=u}this.exitScope()};_t.isSimpleParamList=function(e){for(var t=0,r=e;t<r.length;t+=1){var i=r[t];if(i.type!=="Identifier")return!1}return!0};_t.checkParams=function(e,t){for(var r=Object.create(null),i=0,n=e.params;i<n.length;i+=1){var s=n[i];this.checkLValInnerPattern(s,nb,t?null:r)}};_t.parseExprList=function(e,t,r,i){for(var n=[],s=!0;!this.eat(e);){if(s)s=!1;else if(this.expect(j.comma),t&&this.afterTrailingComma(e))break;var o=void 0;r&&this.type===j.comma?o=null:this.type===j.ellipsis?(o=this.parseSpread(i),i&&this.type===j.comma&&i.trailingComma<0&&(i.trailingComma=this.start)):o=this.parseMaybeAssign(!1,i),n.push(o)}return n};_t.checkUnreserved=function(e){var t=e.start,r=e.end,i=e.name;if(this.inGenerator&&i==="yield"&&this.raiseRecoverable(t,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&i==="await"&&this.raiseRecoverable(t,"Cannot use 'await' as identifier inside an async function"),!(this.currentThisScope().flags&Zg)&&i==="arguments"&&this.raiseRecoverable(t,"Cannot use 'arguments' in class field initializer"),this.inClassStaticBlock&&(i==="arguments"||i==="await")&&this.raise(t,"Cannot use "+i+" in class static initialization block"),this.keywords.test(i)&&this.raise(t,"Unexpected keyword '"+i+"'"),!(this.options.ecmaVersion<6&&this.input.slice(t,r).indexOf("\\")!==-1)){var n=this.strict?this.reservedWordsStrict:this.reservedWords;n.test(i)&&(!this.inAsync&&i==="await"&&this.raiseRecoverable(t,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(t,"The keyword '"+i+"' is reserved"))}};_t.parseIdent=function(e){var t=this.parseIdentNode();return this.next(!!e),this.finishNode(t,"Identifier"),e||(this.checkUnreserved(t),t.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=t.start)),t};_t.parseIdentNode=function(){var e=this.startNode();return this.type===j.name?e.name=this.value:this.type.keyword?(e.name=this.type.keyword,(e.name==="class"||e.name==="function")&&(this.lastTokEnd!==this.lastTokStart+1||this.input.charCodeAt(this.lastTokStart)!==46)&&this.context.pop(),this.type=j.name):this.unexpected(),e};_t.parsePrivateIdent=function(){var e=this.startNode();return this.type===j.privateId?e.name=this.value:this.unexpected(),this.next(),this.finishNode(e,"PrivateIdentifier"),this.options.checkPrivateFields&&(this.privateNameStack.length===0?this.raise(e.start,"Private field '#"+e.name+"' must be declared in an enclosing class"):this.privateNameStack[this.privateNameStack.length-1].used.push(e)),e};_t.parseYield=function(e){this.yieldPos||(this.yieldPos=this.start);var t=this.startNode();return this.next(),this.type===j.semi||this.canInsertSemicolon()||this.type!==j.star&&!this.type.startsExpr?(t.delegate=!1,t.argument=null):(t.delegate=this.eat(j.star),t.argument=this.parseMaybeAssign(e)),this.finishNode(t,"YieldExpression")};_t.parseAwait=function(e){this.awaitPos||(this.awaitPos=this.start);var t=this.startNode();return this.next(),t.argument=this.parseMaybeUnary(null,!0,!1,e),this.finishNode(t,"AwaitExpression")};Hg=yi.prototype;Hg.raise=function(e,t){var r=bR(this.input,e);t+=" ("+r.line+":"+r.column+")",this.sourceFile&&(t+=" in "+this.sourceFile);var i=new SyntaxError(t);throw i.pos=e,i.loc=r,i.raisedAt=this.pos,i};Hg.raiseRecoverable=Hg.raise;Hg.curPosition=function(){if(this.options.locations)return new Hp(this.curLine,this.pos-this.lineStart)};fc=yi.prototype,JW=function(t){this.flags=t,this.var=[],this.lexical=[],this.functions=[]};fc.enterScope=function(e){this.scopeStack.push(new JW(e))};fc.exitScope=function(){this.scopeStack.pop()};fc.treatFunctionsAsVarInScope=function(e){return e.flags&Ru||!this.inModule&&e.flags&ku};fc.declareName=function(e,t,r){var i=!1;if(t===ca){var n=this.currentScope();i=n.lexical.indexOf(e)>-1||n.functions.indexOf(e)>-1||n.var.indexOf(e)>-1,n.lexical.push(e),this.inModule&&n.flags&ku&&delete this.undefinedExports[e]}else if(t===QR){var s=this.currentScope();s.lexical.push(e)}else if(t===xR){var o=this.currentScope();this.treatFunctionsAsVar?i=o.lexical.indexOf(e)>-1:i=o.lexical.indexOf(e)>-1||o.var.indexOf(e)>-1,o.functions.push(e)}else for(var a=this.scopeStack.length-1;a>=0;--a){var u=this.scopeStack[a];if(u.lexical.indexOf(e)>-1&&!(u.flags&wR&&u.lexical[0]===e)||!this.treatFunctionsAsVarInScope(u)&&u.functions.indexOf(e)>-1){i=!0;break}if(u.var.push(e),this.inModule&&u.flags&ku&&delete this.undefinedExports[e],u.flags&Zg)break}i&&this.raiseRecoverable(r,"Identifier '"+e+"' has already been declared")};fc.checkLocalExport=function(e){this.scopeStack[0].lexical.indexOf(e.name)===-1&&this.scopeStack[0].var.indexOf(e.name)===-1&&(this.undefinedExports[e.name]=e)};fc.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]};fc.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&(Zg|Yp|_u))return t}};fc.currentThisScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&(Zg|Yp|_u)&&!(t.flags&rb))return t}};Xg=function(t,r,i){this.type="",this.start=r,this.end=0,t.options.locations&&(this.loc=new Wg(t,i)),t.options.directSourceFile&&(this.sourceFile=t.options.directSourceFile),t.options.ranges&&(this.range=[r,0])},Wp=yi.prototype;Wp.startNode=function(){return new Xg(this,this.start,this.startLoc)};Wp.startNodeAt=function(e,t){return new Xg(this,e,t)};Wp.finishNode=function(e,t){return RR.call(this,e,t,this.lastTokEnd,this.lastTokEndLoc)};Wp.finishNodeAt=function(e,t,r,i){return RR.call(this,e,t,r,i)};Wp.copyNode=function(e){var t=new Xg(this,e.start,this.startLoc);for(var r in e)t[r]=e[r];return t};ZW="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",_R="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",TR=_R+" Extended_Pictographic",FR=TR,NR=FR+" EBase EComp EMod EPres ExtPict",LR=NR,KW=LR,XW={9:_R,10:TR,11:FR,12:NR,13:LR,14:KW},eJ="Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji",tJ={9:"",10:"",11:"",12:"",13:"",14:eJ},pR="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",MR="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",OR=MR+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",PR=OR+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",UR=PR+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",qR=UR+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",rJ=qR+" "+ZW,iJ={9:MR,10:OR,11:PR,12:UR,13:qR,14:rJ},VR={};for(Gg=0,Wy=[9,10,11,12,13,14];Gg<Wy.length;Gg+=1)dR=Wy[Gg],nJ(dR);at=yi.prototype,Yg=function(t,r){this.parent=t,this.base=r||this};Yg.prototype.separatedFrom=function(t){for(var r=this;r;r=r.parent)for(var i=t;i;i=i.parent)if(r.base===i.base&&r!==i)return!0;return!1};Yg.prototype.sibling=function(){return new Yg(this.parent,this.base)};Io=function(t){this.parser=t,this.validFlags="gim"+(t.options.ecmaVersion>=6?"uy":"")+(t.options.ecmaVersion>=9?"s":"")+(t.options.ecmaVersion>=13?"d":"")+(t.options.ecmaVersion>=15?"v":""),this.unicodeProperties=VR[t.options.ecmaVersion>=14?14:t.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};Io.prototype.reset=function(t,r,i){var n=i.indexOf("v")!==-1,s=i.indexOf("u")!==-1;this.start=t|0,this.source=r+"",this.flags=i,n&&this.parser.options.ecmaVersion>=15?(this.switchU=!0,this.switchV=!0,this.switchN=!0):(this.switchU=s&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=s&&this.parser.options.ecmaVersion>=9)};Io.prototype.raise=function(t){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+t)};Io.prototype.at=function(t,r){r===void 0&&(r=!1);var i=this.source,n=i.length;if(t>=n)return-1;var s=i.charCodeAt(t);if(!(r||this.switchU)||s<=55295||s>=57344||t+1>=n)return s;var o=i.charCodeAt(t+1);return o>=56320&&o<=57343?(s<<10)+o-56613888:s};Io.prototype.nextIndex=function(t,r){r===void 0&&(r=!1);var i=this.source,n=i.length;if(t>=n)return n;var s=i.charCodeAt(t),o;return!(r||this.switchU)||s<=55295||s>=57344||t+1>=n||(o=i.charCodeAt(t+1))<56320||o>57343?t+1:t+2};Io.prototype.current=function(t){return t===void 0&&(t=!1),this.at(this.pos,t)};Io.prototype.lookahead=function(t){return t===void 0&&(t=!1),this.at(this.nextIndex(this.pos,t),t)};Io.prototype.advance=function(t){t===void 0&&(t=!1),this.pos=this.nextIndex(this.pos,t)};Io.prototype.eat=function(t,r){return r===void 0&&(r=!1),this.current(r)===t?(this.advance(r),!0):!1};Io.prototype.eatChars=function(t,r){r===void 0&&(r=!1);for(var i=this.pos,n=0,s=t;n<s.length;n+=1){var o=s[n],a=this.at(i,r);if(a===-1||a!==o)return!1;i=this.nextIndex(i,r)}return this.pos=i,!0};at.validateRegExpFlags=function(e){for(var t=e.validFlags,r=e.flags,i=!1,n=!1,s=0;s<r.length;s++){var o=r.charAt(s);t.indexOf(o)===-1&&this.raise(e.start,"Invalid regular expression flag"),r.indexOf(o,s+1)>-1&&this.raise(e.start,"Duplicate regular expression flag"),o==="u"&&(i=!0),o==="v"&&(n=!0)}this.options.ecmaVersion>=15&&i&&n&&this.raise(e.start,"Invalid regular expression flag")};at.validateRegExpPattern=function(e){this.regexp_pattern(e),!e.switchN&&this.options.ecmaVersion>=9&&sJ(e.groupNames)&&(e.switchN=!0,this.regexp_pattern(e))};at.regexp_pattern=function(e){e.pos=0,e.lastIntValue=0,e.lastStringValue="",e.lastAssertionIsQuantifiable=!1,e.numCapturingParens=0,e.maxBackReference=0,e.groupNames=Object.create(null),e.backReferenceNames.length=0,e.branchID=null,this.regexp_disjunction(e),e.pos!==e.source.length&&(e.eat(41)&&e.raise("Unmatched ')'"),(e.eat(93)||e.eat(125))&&e.raise("Lone quantifier brackets")),e.maxBackReference>e.numCapturingParens&&e.raise("Invalid escape");for(var t=0,r=e.backReferenceNames;t<r.length;t+=1){var i=r[t];e.groupNames[i]||e.raise("Invalid named capture referenced")}};at.regexp_disjunction=function(e){var t=this.options.ecmaVersion>=16;for(t&&(e.branchID=new Yg(e.branchID,null)),this.regexp_alternative(e);e.eat(124);)t&&(e.branchID=e.branchID.sibling()),this.regexp_alternative(e);t&&(e.branchID=e.branchID.parent),this.regexp_eatQuantifier(e,!0)&&e.raise("Nothing to repeat"),e.eat(123)&&e.raise("Lone quantifier brackets")};at.regexp_alternative=function(e){for(;e.pos<e.source.length&&this.regexp_eatTerm(e););};at.regexp_eatTerm=function(e){return this.regexp_eatAssertion(e)?(e.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(e)&&e.switchU&&e.raise("Invalid quantifier"),!0):(e.switchU?this.regexp_eatAtom(e):this.regexp_eatExtendedAtom(e))?(this.regexp_eatQuantifier(e),!0):!1};at.regexp_eatAssertion=function(e){var t=e.pos;if(e.lastAssertionIsQuantifiable=!1,e.eat(94)||e.eat(36))return!0;if(e.eat(92)){if(e.eat(66)||e.eat(98))return!0;e.pos=t}if(e.eat(40)&&e.eat(63)){var r=!1;if(this.options.ecmaVersion>=9&&(r=e.eat(60)),e.eat(61)||e.eat(33))return this.regexp_disjunction(e),e.eat(41)||e.raise("Unterminated group"),e.lastAssertionIsQuantifiable=!r,!0}return e.pos=t,!1};at.regexp_eatQuantifier=function(e,t){return t===void 0&&(t=!1),this.regexp_eatQuantifierPrefix(e,t)?(e.eat(63),!0):!1};at.regexp_eatQuantifierPrefix=function(e,t){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,t)};at.regexp_eatBracedQuantifier=function(e,t){var r=e.pos;if(e.eat(123)){var i=0,n=-1;if(this.regexp_eatDecimalDigits(e)&&(i=e.lastIntValue,e.eat(44)&&this.regexp_eatDecimalDigits(e)&&(n=e.lastIntValue),e.eat(125)))return n!==-1&&n<i&&!t&&e.raise("numbers out of order in {} quantifier"),!0;e.switchU&&!t&&e.raise("Incomplete quantifier"),e.pos=r}return!1};at.regexp_eatAtom=function(e){return this.regexp_eatPatternCharacters(e)||e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)};at.regexp_eatReverseSolidusAtomEscape=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatAtomEscape(e))return!0;e.pos=t}return!1};at.regexp_eatUncapturingGroup=function(e){var t=e.pos;if(e.eat(40)){if(e.eat(63)){if(this.options.ecmaVersion>=16){var r=this.regexp_eatModifiers(e),i=e.eat(45);if(r||i){for(var n=0;n<r.length;n++){var s=r.charAt(n);r.indexOf(s,n+1)>-1&&e.raise("Duplicate regular expression modifiers")}if(i){var o=this.regexp_eatModifiers(e);!r&&!o&&e.current()===58&&e.raise("Invalid regular expression modifiers");for(var a=0;a<o.length;a++){var u=o.charAt(a);(o.indexOf(u,a+1)>-1||r.indexOf(u)>-1)&&e.raise("Duplicate regular expression modifiers")}}}}if(e.eat(58)){if(this.regexp_disjunction(e),e.eat(41))return!0;e.raise("Unterminated group")}}e.pos=t}return!1};at.regexp_eatCapturingGroup=function(e){if(e.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(e):e.current()===63&&e.raise("Invalid group"),this.regexp_disjunction(e),e.eat(41))return e.numCapturingParens+=1,!0;e.raise("Unterminated group")}return!1};at.regexp_eatModifiers=function(e){for(var t="",r=0;(r=e.current())!==-1&&oJ(r);)t+=oa(r),e.advance();return t};at.regexp_eatExtendedAtom=function(e){return e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)||this.regexp_eatInvalidBracedQuantifier(e)||this.regexp_eatExtendedPatternCharacter(e)};at.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise("Nothing to repeat"),!1};at.regexp_eatSyntaxCharacter=function(e){var t=e.current();return $R(t)?(e.lastIntValue=t,e.advance(),!0):!1};at.regexp_eatPatternCharacters=function(e){for(var t=e.pos,r=0;(r=e.current())!==-1&&!$R(r);)e.advance();return e.pos!==t};at.regexp_eatExtendedPatternCharacter=function(e){var t=e.current();return t!==-1&&t!==36&&!(t>=40&&t<=43)&&t!==46&&t!==63&&t!==91&&t!==94&&t!==124?(e.advance(),!0):!1};at.regexp_groupSpecifier=function(e){if(e.eat(63)){this.regexp_eatGroupName(e)||e.raise("Invalid group");var t=this.options.ecmaVersion>=16,r=e.groupNames[e.lastStringValue];if(r)if(t)for(var i=0,n=r;i<n.length;i+=1){var s=n[i];s.separatedFrom(e.branchID)||e.raise("Duplicate capture group name")}else e.raise("Duplicate capture group name");t?(r||(e.groupNames[e.lastStringValue]=[])).push(e.branchID):e.groupNames[e.lastStringValue]=!0}};at.regexp_eatGroupName=function(e){if(e.lastStringValue="",e.eat(60)){if(this.regexp_eatRegExpIdentifierName(e)&&e.eat(62))return!0;e.raise("Invalid capture group name")}return!1};at.regexp_eatRegExpIdentifierName=function(e){if(e.lastStringValue="",this.regexp_eatRegExpIdentifierStart(e)){for(e.lastStringValue+=oa(e.lastIntValue);this.regexp_eatRegExpIdentifierPart(e);)e.lastStringValue+=oa(e.lastIntValue);return!0}return!1};at.regexp_eatRegExpIdentifierStart=function(e){var t=e.pos,r=this.options.ecmaVersion>=11,i=e.current(r);return e.advance(r),i===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,r)&&(i=e.lastIntValue),aJ(i)?(e.lastIntValue=i,!0):(e.pos=t,!1)};at.regexp_eatRegExpIdentifierPart=function(e){var t=e.pos,r=this.options.ecmaVersion>=11,i=e.current(r);return e.advance(r),i===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,r)&&(i=e.lastIntValue),cJ(i)?(e.lastIntValue=i,!0):(e.pos=t,!1)};at.regexp_eatAtomEscape=function(e){return this.regexp_eatBackReference(e)||this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)||e.switchN&&this.regexp_eatKGroupName(e)?!0:(e.switchU&&(e.current()===99&&e.raise("Invalid unicode escape"),e.raise("Invalid escape")),!1)};at.regexp_eatBackReference=function(e){var t=e.pos;if(this.regexp_eatDecimalEscape(e)){var r=e.lastIntValue;if(e.switchU)return r>e.maxBackReference&&(e.maxBackReference=r),!0;if(r<=e.numCapturingParens)return!0;e.pos=t}return!1};at.regexp_eatKGroupName=function(e){if(e.eat(107)){if(this.regexp_eatGroupName(e))return e.backReferenceNames.push(e.lastStringValue),!0;e.raise("Invalid named reference")}return!1};at.regexp_eatCharacterEscape=function(e){return this.regexp_eatControlEscape(e)||this.regexp_eatCControlLetter(e)||this.regexp_eatZero(e)||this.regexp_eatHexEscapeSequence(e)||this.regexp_eatRegExpUnicodeEscapeSequence(e,!1)||!e.switchU&&this.regexp_eatLegacyOctalEscapeSequence(e)||this.regexp_eatIdentityEscape(e)};at.regexp_eatCControlLetter=function(e){var t=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=t}return!1};at.regexp_eatZero=function(e){return e.current()===48&&!em(e.lookahead())?(e.lastIntValue=0,e.advance(),!0):!1};at.regexp_eatControlEscape=function(e){var t=e.current();return t===116?(e.lastIntValue=9,e.advance(),!0):t===110?(e.lastIntValue=10,e.advance(),!0):t===118?(e.lastIntValue=11,e.advance(),!0):t===102?(e.lastIntValue=12,e.advance(),!0):t===114?(e.lastIntValue=13,e.advance(),!0):!1};at.regexp_eatControlLetter=function(e){var t=e.current();return GR(t)?(e.lastIntValue=t%32,e.advance(),!0):!1};at.regexp_eatRegExpUnicodeEscapeSequence=function(e,t){t===void 0&&(t=!1);var r=e.pos,i=t||e.switchU;if(e.eat(117)){if(this.regexp_eatFixedHexDigits(e,4)){var n=e.lastIntValue;if(i&&n>=55296&&n<=56319){var s=e.pos;if(e.eat(92)&&e.eat(117)&&this.regexp_eatFixedHexDigits(e,4)){var o=e.lastIntValue;if(o>=56320&&o<=57343)return e.lastIntValue=(n-55296)*1024+(o-56320)+65536,!0}e.pos=s,e.lastIntValue=n}return!0}if(i&&e.eat(123)&&this.regexp_eatHexDigits(e)&&e.eat(125)&&uJ(e.lastIntValue))return!0;i&&e.raise("Invalid unicode escape"),e.pos=r}return!1};at.regexp_eatIdentityEscape=function(e){if(e.switchU)return this.regexp_eatSyntaxCharacter(e)?!0:e.eat(47)?(e.lastIntValue=47,!0):!1;var t=e.current();return t!==99&&(!e.switchN||t!==107)?(e.lastIntValue=t,e.advance(),!0):!1};at.regexp_eatDecimalEscape=function(e){e.lastIntValue=0;var t=e.current();if(t>=49&&t<=57){do e.lastIntValue=10*e.lastIntValue+(t-48),e.advance();while((t=e.current())>=48&&t<=57);return!0}return!1};jR=0,aa=1,As=2;at.regexp_eatCharacterClassEscape=function(e){var t=e.current();if(lJ(t))return e.lastIntValue=-1,e.advance(),aa;var r=!1;if(e.switchU&&this.options.ecmaVersion>=9&&((r=t===80)||t===112)){e.lastIntValue=-1,e.advance();var i;if(e.eat(123)&&(i=this.regexp_eatUnicodePropertyValueExpression(e))&&e.eat(125))return r&&i===As&&e.raise("Invalid property name"),i;e.raise("Invalid property name")}return jR};at.regexp_eatUnicodePropertyValueExpression=function(e){var t=e.pos;if(this.regexp_eatUnicodePropertyName(e)&&e.eat(61)){var r=e.lastStringValue;if(this.regexp_eatUnicodePropertyValue(e)){var i=e.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(e,r,i),aa}}if(e.pos=t,this.regexp_eatLoneUnicodePropertyNameOrValue(e)){var n=e.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(e,n)}return jR};at.regexp_validateUnicodePropertyNameAndValue=function(e,t,r){Ah(e.unicodeProperties.nonBinary,t)||e.raise("Invalid property name"),e.unicodeProperties.nonBinary[t].test(r)||e.raise("Invalid property value")};at.regexp_validateUnicodePropertyNameOrValue=function(e,t){if(e.unicodeProperties.binary.test(t))return aa;if(e.switchV&&e.unicodeProperties.binaryOfStrings.test(t))return As;e.raise("Invalid property name")};at.regexp_eatUnicodePropertyName=function(e){var t=0;for(e.lastStringValue="";zR(t=e.current());)e.lastStringValue+=oa(t),e.advance();return e.lastStringValue!==""};at.regexp_eatUnicodePropertyValue=function(e){var t=0;for(e.lastStringValue="";hJ(t=e.current());)e.lastStringValue+=oa(t),e.advance();return e.lastStringValue!==""};at.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)};at.regexp_eatCharacterClass=function(e){if(e.eat(91)){var t=e.eat(94),r=this.regexp_classContents(e);return e.eat(93)||e.raise("Unterminated character class"),t&&r===As&&e.raise("Negated character class may contain strings"),!0}return!1};at.regexp_classContents=function(e){return e.current()===93?aa:e.switchV?this.regexp_classSetExpression(e):(this.regexp_nonEmptyClassRanges(e),aa)};at.regexp_nonEmptyClassRanges=function(e){for(;this.regexp_eatClassAtom(e);){var t=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassAtom(e)){var r=e.lastIntValue;e.switchU&&(t===-1||r===-1)&&e.raise("Invalid character class"),t!==-1&&r!==-1&&t>r&&e.raise("Range out of order in character class")}}};at.regexp_eatClassAtom=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatClassEscape(e))return!0;if(e.switchU){var r=e.current();(r===99||WR(r))&&e.raise("Invalid class escape"),e.raise("Invalid escape")}e.pos=t}var i=e.current();return i!==93?(e.lastIntValue=i,e.advance(),!0):!1};at.regexp_eatClassEscape=function(e){var t=e.pos;if(e.eat(98))return e.lastIntValue=8,!0;if(e.switchU&&e.eat(45))return e.lastIntValue=45,!0;if(!e.switchU&&e.eat(99)){if(this.regexp_eatClassControlLetter(e))return!0;e.pos=t}return this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)};at.regexp_classSetExpression=function(e){var t=aa,r;if(!this.regexp_eatClassSetRange(e))if(r=this.regexp_eatClassSetOperand(e)){r===As&&(t=As);for(var i=e.pos;e.eatChars([38,38]);){if(e.current()!==38&&(r=this.regexp_eatClassSetOperand(e))){r!==As&&(t=aa);continue}e.raise("Invalid character in character class")}if(i!==e.pos)return t;for(;e.eatChars([45,45]);)this.regexp_eatClassSetOperand(e)||e.raise("Invalid character in character class");if(i!==e.pos)return t}else e.raise("Invalid character in character class");for(;;)if(!this.regexp_eatClassSetRange(e)){if(r=this.regexp_eatClassSetOperand(e),!r)return t;r===As&&(t=As)}};at.regexp_eatClassSetRange=function(e){var t=e.pos;if(this.regexp_eatClassSetCharacter(e)){var r=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassSetCharacter(e)){var i=e.lastIntValue;return r!==-1&&i!==-1&&r>i&&e.raise("Range out of order in character class"),!0}e.pos=t}return!1};at.regexp_eatClassSetOperand=function(e){return this.regexp_eatClassSetCharacter(e)?aa:this.regexp_eatClassStringDisjunction(e)||this.regexp_eatNestedClass(e)};at.regexp_eatNestedClass=function(e){var t=e.pos;if(e.eat(91)){var r=e.eat(94),i=this.regexp_classContents(e);if(e.eat(93))return r&&i===As&&e.raise("Negated character class may contain strings"),i;e.pos=t}if(e.eat(92)){var n=this.regexp_eatCharacterClassEscape(e);if(n)return n;e.pos=t}return null};at.regexp_eatClassStringDisjunction=function(e){var t=e.pos;if(e.eatChars([92,113])){if(e.eat(123)){var r=this.regexp_classStringDisjunctionContents(e);if(e.eat(125))return r}else e.raise("Invalid escape");e.pos=t}return null};at.regexp_classStringDisjunctionContents=function(e){for(var t=this.regexp_classString(e);e.eat(124);)this.regexp_classString(e)===As&&(t=As);return t};at.regexp_classString=function(e){for(var t=0;this.regexp_eatClassSetCharacter(e);)t++;return t===1?aa:As};at.regexp_eatClassSetCharacter=function(e){var t=e.pos;if(e.eat(92))return this.regexp_eatCharacterEscape(e)||this.regexp_eatClassSetReservedPunctuator(e)?!0:e.eat(98)?(e.lastIntValue=8,!0):(e.pos=t,!1);var r=e.current();return r<0||r===e.lookahead()&&AJ(r)||pJ(r)?!1:(e.advance(),e.lastIntValue=r,!0)};at.regexp_eatClassSetReservedPunctuator=function(e){var t=e.current();return dJ(t)?(e.lastIntValue=t,e.advance(),!0):!1};at.regexp_eatClassControlLetter=function(e){var t=e.current();return em(t)||t===95?(e.lastIntValue=t%32,e.advance(),!0):!1};at.regexp_eatHexEscapeSequence=function(e){var t=e.pos;if(e.eat(120)){if(this.regexp_eatFixedHexDigits(e,2))return!0;e.switchU&&e.raise("Invalid escape"),e.pos=t}return!1};at.regexp_eatDecimalDigits=function(e){var t=e.pos,r=0;for(e.lastIntValue=0;em(r=e.current());)e.lastIntValue=10*e.lastIntValue+(r-48),e.advance();return e.pos!==t};at.regexp_eatHexDigits=function(e){var t=e.pos,r=0;for(e.lastIntValue=0;HR(r=e.current());)e.lastIntValue=16*e.lastIntValue+YR(r),e.advance();return e.pos!==t};at.regexp_eatLegacyOctalEscapeSequence=function(e){if(this.regexp_eatOctalDigit(e)){var t=e.lastIntValue;if(this.regexp_eatOctalDigit(e)){var r=e.lastIntValue;t<=3&&this.regexp_eatOctalDigit(e)?e.lastIntValue=t*64+r*8+e.lastIntValue:e.lastIntValue=t*8+r}else e.lastIntValue=t;return!0}return!1};at.regexp_eatOctalDigit=function(e){var t=e.current();return WR(t)?(e.lastIntValue=t-48,e.advance(),!0):(e.lastIntValue=0,!1)};at.regexp_eatFixedHexDigits=function(e,t){var r=e.pos;e.lastIntValue=0;for(var i=0;i<t;++i){var n=e.current();if(!HR(n))return e.pos=r,!1;e.lastIntValue=16*e.lastIntValue+YR(n),e.advance()}return!0};ob=function(t){this.type=t.type,this.value=t.value,this.start=t.start,this.end=t.end,t.options.locations&&(this.loc=new Wg(t,t.startLoc,t.endLoc)),t.options.ranges&&(this.range=[t.start,t.end])},tr=yi.prototype;tr.next=function(e){!e&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword),this.options.onToken&&this.options.onToken(new ob(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()};tr.getToken=function(){return this.next(),new ob(this)};typeof Symbol<"u"&&(tr[Symbol.iterator]=function(){var e=this;return{next:function(){var t=e.getToken();return{done:t.type===j.eof,value:t}}}});tr.nextToken=function(){var e=this.curContext();if((!e||!e.preserveSpace)&&this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length)return this.finishToken(j.eof);if(e.override)return e.override(this);this.readToken(this.fullCharCodeAtPos())};tr.readToken=function(e){return bo(e,this.options.ecmaVersion>=6)||e===92?this.readWord():this.getTokenFromCode(e)};tr.fullCharCodeAt=function(e){var t=this.input.charCodeAt(e);if(t<=55295||t>=56320)return t;var r=this.input.charCodeAt(e+1);return r<=56319||r>=57344?t:(t<<10)+r-56613888};tr.fullCharCodeAtPos=function(){return this.fullCharCodeAt(this.pos)};tr.skipBlockComment=function(){var e=this.options.onComment&&this.curPosition(),t=this.pos,r=this.input.indexOf("*/",this.pos+=2);if(r===-1&&this.raise(this.pos-2,"Unterminated comment"),this.pos=r+2,this.options.locations)for(var i=void 0,n=t;(i=ER(this.input,n,this.pos))>-1;)++this.curLine,n=this.lineStart=i;this.options.onComment&&this.options.onComment(!0,this.input.slice(t+2,r),t,this.pos,e,this.curPosition())};tr.skipLineComment=function(e){for(var t=this.pos,r=this.options.onComment&&this.curPosition(),i=this.input.charCodeAt(this.pos+=e);this.pos<this.input.length&&!hh(i);)i=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(t+e,this.pos),t,this.pos,r,this.curPosition())};tr.skipSpace=function(){e:for(;this.pos<this.input.length;){var e=this.input.charCodeAt(this.pos);switch(e){case 32:case 160:++this.pos;break;case 13:this.input.charCodeAt(this.pos+1)===10&&++this.pos;case 10:case 8232:case 8233:++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 e}break;default:if(e>8&&e<14||e>=5760&&CR.test(String.fromCharCode(e)))++this.pos;else break e}}};tr.finishToken=function(e,t){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var r=this.type;this.type=e,this.value=t,this.updateContext(r)};tr.readToken_dot=function(){var e=this.input.charCodeAt(this.pos+1);if(e>=48&&e<=57)return this.readNumber(!0);var t=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&e===46&&t===46?(this.pos+=3,this.finishToken(j.ellipsis)):(++this.pos,this.finishToken(j.dot))};tr.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):e===61?this.finishOp(j.assign,2):this.finishOp(j.slash,1)};tr.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1),r=1,i=e===42?j.star:j.modulo;return this.options.ecmaVersion>=7&&e===42&&t===42&&(++r,i=j.starstar,t=this.input.charCodeAt(this.pos+2)),t===61?this.finishOp(j.assign,r+1):this.finishOp(i,r)};tr.readToken_pipe_amp=function(e){var t=this.input.charCodeAt(this.pos+1);if(t===e){if(this.options.ecmaVersion>=12){var r=this.input.charCodeAt(this.pos+2);if(r===61)return this.finishOp(j.assign,3)}return this.finishOp(e===124?j.logicalOR:j.logicalAND,2)}return t===61?this.finishOp(j.assign,2):this.finishOp(e===124?j.bitwiseOR:j.bitwiseAND,1)};tr.readToken_caret=function(){var e=this.input.charCodeAt(this.pos+1);return e===61?this.finishOp(j.assign,2):this.finishOp(j.bitwiseXOR,1)};tr.readToken_plus_min=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?t===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||En.test(this.input.slice(this.lastTokEnd,this.pos)))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(j.incDec,2):t===61?this.finishOp(j.assign,2):this.finishOp(j.plusMin,1)};tr.readToken_lt_gt=function(e){var t=this.input.charCodeAt(this.pos+1),r=1;return t===e?(r=e===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+r)===61?this.finishOp(j.assign,r+1):this.finishOp(j.bitShift,r)):t===33&&e===60&&!this.inModule&&this.input.charCodeAt(this.pos+2)===45&&this.input.charCodeAt(this.pos+3)===45?(this.skipLineComment(4),this.skipSpace(),this.nextToken()):(t===61&&(r=2),this.finishOp(j.relational,r))};tr.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);return t===61?this.finishOp(j.equality,this.input.charCodeAt(this.pos+2)===61?3:2):e===61&&t===62&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(j.arrow)):this.finishOp(e===61?j.eq:j.prefix,1)};tr.readToken_question=function(){var e=this.options.ecmaVersion;if(e>=11){var t=this.input.charCodeAt(this.pos+1);if(t===46){var r=this.input.charCodeAt(this.pos+2);if(r<48||r>57)return this.finishOp(j.questionDot,2)}if(t===63){if(e>=12){var i=this.input.charCodeAt(this.pos+2);if(i===61)return this.finishOp(j.assign,3)}return this.finishOp(j.coalesce,2)}}return this.finishOp(j.question,1)};tr.readToken_numberSign=function(){var e=this.options.ecmaVersion,t=35;if(e>=13&&(++this.pos,t=this.fullCharCodeAtPos(),bo(t,!0)||t===92))return this.finishToken(j.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+oa(t)+"'")};tr.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(j.parenL);case 41:return++this.pos,this.finishToken(j.parenR);case 59:return++this.pos,this.finishToken(j.semi);case 44:return++this.pos,this.finishToken(j.comma);case 91:return++this.pos,this.finishToken(j.bracketL);case 93:return++this.pos,this.finishToken(j.bracketR);case 123:return++this.pos,this.finishToken(j.braceL);case 125:return++this.pos,this.finishToken(j.braceR);case 58:return++this.pos,this.finishToken(j.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(j.backQuote);case 48:var t=this.input.charCodeAt(this.pos+1);if(t===120||t===88)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(t===111||t===79)return this.readRadixNumber(8);if(t===98||t===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(e);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(e);case 124:case 38:return this.readToken_pipe_amp(e);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(e);case 60:case 62:return this.readToken_lt_gt(e);case 61:case 33:return this.readToken_eq_excl(e);case 63:return this.readToken_question();case 126:return this.finishOp(j.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+oa(e)+"'")};tr.finishOp=function(e,t){var r=this.input.slice(this.pos,this.pos+t);return this.pos+=t,this.finishToken(e,r)};tr.readRegexp=function(){for(var e,t,r=this.pos;;){this.pos>=this.input.length&&this.raise(r,"Unterminated regular expression");var i=this.input.charAt(this.pos);if(En.test(i)&&this.raise(r,"Unterminated regular expression"),e)e=!1;else{if(i==="[")t=!0;else if(i==="]"&&t)t=!1;else if(i==="/"&&!t)break;e=i==="\\"}++this.pos}var n=this.input.slice(r,this.pos);++this.pos;var s=this.pos,o=this.readWord1();this.containsEsc&&this.unexpected(s);var a=this.regexpState||(this.regexpState=new Io(this));a.reset(r,n,o),this.validateRegExpFlags(a),this.validateRegExpPattern(a);var u=null;try{u=new RegExp(n,o)}catch{}return this.finishToken(j.regexp,{pattern:n,flags:o,value:u})};tr.readInt=function(e,t,r){for(var i=this.options.ecmaVersion>=12&&t===void 0,n=r&&this.input.charCodeAt(this.pos)===48,s=this.pos,o=0,a=0,u=0,l=t??1/0;u<l;++u,++this.pos){var A=this.input.charCodeAt(this.pos),h=void 0;if(i&&A===95){n&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),a===95&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),u===0&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),a=A;continue}if(A>=97?h=A-97+10:A>=65?h=A-65+10:A>=48&&A<=57?h=A-48:h=1/0,h>=e)break;a=A,o=o*e+h}return i&&a===95&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===s||t!=null&&this.pos-s!==t?null:o};tr.readRadixNumber=function(e){var t=this.pos;this.pos+=2;var r=this.readInt(e);return r==null&&this.raise(this.start+2,"Expected number in radix "+e),this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110?(r=JR(this.input.slice(t,this.pos)),++this.pos):bo(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(j.num,r)};tr.readNumber=function(e){var t=this.pos;!e&&this.readInt(10,void 0,!0)===null&&this.raise(t,"Invalid number");var r=this.pos-t>=2&&this.input.charCodeAt(t)===48;r&&this.strict&&this.raise(t,"Invalid number");var i=this.input.charCodeAt(this.pos);if(!r&&!e&&this.options.ecmaVersion>=11&&i===110){var n=JR(this.input.slice(t,this.pos));return++this.pos,bo(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(j.num,n)}r&&/[89]/.test(this.input.slice(t,this.pos))&&(r=!1),i===46&&!r&&(++this.pos,this.readInt(10),i=this.input.charCodeAt(this.pos)),(i===69||i===101)&&!r&&(i=this.input.charCodeAt(++this.pos),(i===43||i===45)&&++this.pos,this.readInt(10)===null&&this.raise(t,"Invalid number")),bo(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var s=fJ(this.input.slice(t,this.pos),r);return this.finishToken(j.num,s)};tr.readCodePoint=function(){var e=this.input.charCodeAt(this.pos),t;if(e===123){this.options.ecmaVersion<6&&this.unexpected();var r=++this.pos;t=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,t>1114111&&this.invalidStringToken(r,"Code point out of bounds")}else t=this.readHexChar(4);return t};tr.readString=function(e){for(var t="",r=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var i=this.input.charCodeAt(this.pos);if(i===e)break;i===92?(t+=this.input.slice(r,this.pos),t+=this.readEscapedChar(!1),r=this.pos):i===8232||i===8233?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(hh(i)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return t+=this.input.slice(r,this.pos++),this.finishToken(j.string,t)};ZR={};tr.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e===ZR)this.readInvalidTemplateToken();else throw e}this.inTemplateElement=!1};tr.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw ZR;this.raise(e,t)};tr.readTmplToken=function(){for(var e="",t=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var r=this.input.charCodeAt(this.pos);if(r===96||r===36&&this.input.charCodeAt(this.pos+1)===123)return this.pos===this.start&&(this.type===j.template||this.type===j.invalidTemplate)?r===36?(this.pos+=2,this.finishToken(j.dollarBraceL)):(++this.pos,this.finishToken(j.backQuote)):(e+=this.input.slice(t,this.pos),this.finishToken(j.template,e));if(r===92)e+=this.input.slice(t,this.pos),e+=this.readEscapedChar(!0),t=this.pos;else if(hh(r)){switch(e+=this.input.slice(t,this.pos),++this.pos,r){case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:e+=`
|
|
26
26
|
`;break;default:e+=String.fromCharCode(r);break}this.options.locations&&(++this.curLine,this.lineStart=this.pos),t=this.pos}else++this.pos}};tr.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(j.invalidTemplate,this.input.slice(this.start,this.pos));case"\r":this.input[this.pos+1]===`
|
|
27
27
|
`&&++this.pos;case`
|
|
28
28
|
`:case"\u2028":case"\u2029":++this.curLine,this.lineStart=this.pos+1;break}this.raise(this.start,"Unterminated template")};tr.readEscapedChar=function(e){var t=this.input.charCodeAt(++this.pos);switch(++this.pos,t){case 110:return`
|
|
29
|
-
`;case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return oa(this.readCodePoint());case 116:return" ";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";case 56:case 57:if(this.strict&&this.invalidStringToken(this.pos-1,"Invalid escape sequence"),e){var r=this.pos-1;this.invalidStringToken(r,"Invalid escape sequence in template string")}default:if(t>=48&&t<=55){var i=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],n=parseInt(i,8);return n>255&&(i=i.slice(0,-1),n=parseInt(i,8)),this.pos+=i.length-1,t=this.input.charCodeAt(this.pos),(i!=="0"||t===56||t===57)&&(this.strict||e)&&this.invalidStringToken(this.pos-1-i.length,e?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(n)}return hh(t)?(this.options.locations&&(this.lineStart=this.pos,++this.curLine),""):String.fromCharCode(t)}};tr.readHexChar=function(e){var t=this.pos,r=this.readInt(16,e);return r===null&&this.invalidStringToken(t,"Bad character escape sequence"),r};tr.readWord1=function(){this.containsEsc=!1;for(var e="",t=!0,r=this.pos,i=this.options.ecmaVersion>=6;this.pos<this.input.length;){var n=this.fullCharCodeAtPos();if(dc(n,i))this.pos+=n<=65535?1:2;else if(n===92){this.containsEsc=!0,e+=this.input.slice(r,this.pos);var s=this.pos;this.input.charCodeAt(++this.pos)!==117&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var o=this.readCodePoint();(t?bo:dc)(o,i)||this.invalidStringToken(s,"Invalid Unicode escape"),e+=oa(o),r=this.pos}else break;t=!1}return e+this.input.slice(r,this.pos)};tr.readWord=function(){var e=this.readWord1(),t=j.name;return this.keywords.test(e)&&(t=eb[e]),this.finishToken(t,e)};gJ="8.
|
|
29
|
+
`;case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return oa(this.readCodePoint());case 116:return" ";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";case 56:case 57:if(this.strict&&this.invalidStringToken(this.pos-1,"Invalid escape sequence"),e){var r=this.pos-1;this.invalidStringToken(r,"Invalid escape sequence in template string")}default:if(t>=48&&t<=55){var i=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],n=parseInt(i,8);return n>255&&(i=i.slice(0,-1),n=parseInt(i,8)),this.pos+=i.length-1,t=this.input.charCodeAt(this.pos),(i!=="0"||t===56||t===57)&&(this.strict||e)&&this.invalidStringToken(this.pos-1-i.length,e?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(n)}return hh(t)?(this.options.locations&&(this.lineStart=this.pos,++this.curLine),""):String.fromCharCode(t)}};tr.readHexChar=function(e){var t=this.pos,r=this.readInt(16,e);return r===null&&this.invalidStringToken(t,"Bad character escape sequence"),r};tr.readWord1=function(){this.containsEsc=!1;for(var e="",t=!0,r=this.pos,i=this.options.ecmaVersion>=6;this.pos<this.input.length;){var n=this.fullCharCodeAtPos();if(dc(n,i))this.pos+=n<=65535?1:2;else if(n===92){this.containsEsc=!0,e+=this.input.slice(r,this.pos);var s=this.pos;this.input.charCodeAt(++this.pos)!==117&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var o=this.readCodePoint();(t?bo:dc)(o,i)||this.invalidStringToken(s,"Invalid Unicode escape"),e+=oa(o),r=this.pos}else break;t=!1}return e+this.input.slice(r,this.pos)};tr.readWord=function(){var e=this.readWord1(),t=j.name;return this.keywords.test(e)&&(t=eb[e]),this.finishToken(t,e)};gJ="8.18.0";yi.acorn={Parser:yi,version:gJ,defaultOptions:Zy,Position:Hp,SourceLocation:Wg,getLineInfo:bR,Node:Xg,TokenType:Ar,tokTypes:j,keywordTypes:eb,TokContext:qs,tokContexts:qr,isIdentifierChar:dc,isIdentifierStart:bo,Token:ob,isNewLine:hh,lineBreak:En,lineBreakG:PW,nonASCIIwhitespace:CR}});function CJ(e="",t){return t?mJ.test(e):e.endsWith("/")}function yJ(e="",t){if(!t)return e.endsWith("/")?e:e+"/";if(CJ(e,!0))return e||"/";let r=e,i="",n=e.indexOf("#");if(n!==-1&&(r=e.slice(0,n),i=e.slice(n),!r))return i;let[s,...o]=r.split("?");return s+"/"+(o.length>0?`?${o.join("?")}`:"")+i}function bJ(e){return e&&e!=="/"}function ab(e,...t){let r=e||"";for(let i of t.filter(n=>bJ(n)))if(r){let n=i.replace(EJ,"");r=yJ(r)+n}else r=i;return r}var hye,mJ,EJ,Aye,XR=jr(()=>{hye=String.fromCharCode,mJ=/\/$|\/\?|\/#/,EJ=/^\.?\//;Aye=Symbol.for("ufo:protocolRelative")});function e_(e,t){let r=new Map,i=0,n,s;for(let o of e.split(/\n/g)){if(!o)continue;let a,u,l,A,h,d=o.match(IJ);if(d===null)i=0,n="";else{if(a=d[0].length,u=d[1]?Jp:"tab",t&&u===Jp&&a===1)continue;u!==n&&(i=0),n=u,l=1,A=0;let m=a-i;if(i=a,m===0)l=0,A=1;else{let g=m>0?m:-m;s=wJ(u,g)}h=r.get(s),h=h===void 0?[1,0]:[h[0]+l,h[1]+A],r.set(s,h)}}return r}function wJ(e,t){return(e===Jp?"s":"t")+String(t)}function BJ(e){let t=e[0]==="s"?Jp:"tab",r=Number(e.slice(1));return{type:t,amount:r}}function vJ(e){let t,r=0,i=0;for(let[n,[s,o]]of e)(s>r||s===r&&o>i)&&(r=s,i=o,t=n);return t}function xJ(e,t){return(e===Jp?" ":" ").repeat(t)}function QJ(e){if(typeof e!="string")throw new TypeError("Expected a string");let t=e_(e,!0);t.size===0&&(t=e_(e,!1));let r=vJ(t),i,n=0,s="";return r!==void 0&&({type:i,amount:n}=BJ(r),s=xJ(i,n)),{amount:n,type:i,indent:s}}function kJ(e,t={}){let r=t.indent===void 0&&t.preserveIndentation!==!1&&e.slice(0,t?.sampleSize||1024),i=t.preserveWhitespace===!1?void 0:{start:SJ.exec(e)?.[0]||"",end:DJ.exec(e)?.[0]||""};return{sample:r,whiteSpace:i}}function ua(e,t,r){!t||typeof t!="object"||Object.defineProperty(t,cb,{enumerable:!1,configurable:!0,writable:!0,value:kJ(e,r)})}function gc(e,t){if(!e||typeof e!="object"||!(cb in e))return{indent:t?.indent,whitespace:{start:"",end:""}};let r=e[cb];return{indent:t?.indent||QJ(r.sample||"").indent,whitespace:r.whiteSpace||{start:"",end:""}}}var IJ,Jp,cb,SJ,DJ,Zp=jr(()=>{IJ=/^(?:( )+|\t+)/,Jp="space";cb=Symbol.for("__confbox_fmt__"),SJ=/^(\s+)/,DJ=/(\s+)$/});var o_={};Du(o_,{parseJSON5:()=>UJ,stringifyJSON5:()=>qJ});function r_(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function pb(e,t,r){let i=e[t];if(i!=null&&typeof i=="object")if(Array.isArray(i))for(let n=0;n<i.length;n++){let s=String(n),o=pb(i,s,r);o===void 0?delete i[s]:Object.defineProperty(i,s,{value:o,writable:!0,enumerable:!0,configurable:!0})}else for(let n in i){let s=pb(i,n,r);s===void 0?delete i[n]:Object.defineProperty(i,n,{value:s,writable:!0,enumerable:!0,configurable:!0})}return r.call(e,t,i)}function _J(){for(Ht="default",Ot="",Kp=!1,la=1;;){nr=Aa();let e=n_[Ht]();if(e)return e}}function Aa(){if(Ab[im])return String.fromCodePoint(Ab.codePointAt(im))}function Pe(){let e=Aa();return e===`
|
|
30
30
|
`?(mc++,Vs=0):e?Vs+=e.length:Vs++,e&&(im+=e.length),e}function Pr(e,t){return{type:e,value:t,line:mc,column:Vs}}function Tu(e){for(let t of e){if(Aa()!==t)throw Vr(Pe());Pe()}}function TJ(){switch(Aa()){case"b":return Pe(),"\b";case"f":return Pe(),"\f";case"n":return Pe(),`
|
|
31
31
|
`;case"r":return Pe(),"\r";case"t":return Pe()," ";case"v":return Pe(),"\v";case"0":if(Pe(),bi.isDigit(Aa()))throw Vr(Pe());return"\0";case"x":return Pe(),FJ();case"u":return Pe(),db();case`
|
|
32
32
|
`:case"\u2028":case"\u2029":return Pe(),"";case"\r":return Pe(),Aa()===`
|
|
@@ -198,7 +198,7 @@ ${e.map(t=>` - '${t}'`).join(`
|
|
|
198
198
|
`)}
|
|
199
199
|
`}function Ule(e){let t=(0,Ss.join)(e,"package.json");if(!(0,Zi.existsSync)(t))return;let r=JSON.parse((0,Zi.readFileSync)(t,"utf-8")),i=r.workspaces;!i||i.length===0||((0,Zi.writeFileSync)((0,Ss.join)(e,"pnpm-workspace.yaml"),A5(i)),delete r.workspaces,(0,Zi.writeFileSync)(t,JSON.stringify(r,null,2)+`
|
|
200
200
|
`))}function T0(e){for(let t of AS(e))try{let r=JSON.parse((0,Zi.readFileSync)(t,"utf-8")),i=!1;for(let n of[r.dependencies,r.devDependencies])if(n)for(let[s,o]of Object.entries(n))o==="*"&&(n[s]="workspace:*",i=!0);i&&(0,Zi.writeFileSync)(t,JSON.stringify(r,null,2)+`
|
|
201
|
-
`)}catch{}}function AS(e,t=2){let r=[];for(let i of["packages","libs","apps"]){let n=(0,Ss.join)(e,i);(0,Zi.existsSync)(n)&&p5(n,1,t,r)}return r}function p5(e,t,r,i){if(!(t>r))try{let n=(0,Zi.readdirSync)(e,{withFileTypes:!0});for(let s of n){if(!s.isDirectory())continue;let o=(0,Ss.join)(e,s.name),a=(0,Ss.join)(o,"package.json");(0,Zi.existsSync)(a)&&i.push(a),t<r&&p5(o,t+1,r,i)}}catch{}}function qle(e){let t=[],r=AS(e);for(let i of r)try{let n=JSON.parse((0,Zi.readFileSync)(i,"utf-8"));n.name&&t.push(n.name)}catch{}return t.sort()}var lS=new Map;function pS(e,t=process.cwd()){if(lS.has(e))return lS.get(e);try{let r=(0,Lle.execSync)(`${e} --version`,{cwd:t,encoding:"utf-8",windowsHide:!0}).trim();return lS.set(e,r),r}catch{throw new Mle.CnwError("INVALID_PACKAGE_MANAGER",`Package manager '${e}' is not installed or not found in PATH.`)}}function Vle(){if(process.env.npm_config_user_agent){for(let e of pn.packageManagerList)if(process.env.npm_config_user_agent.startsWith(`${e}/`))return e}if(process.env.npm_execpath){for(let e of pn.packageManagerList)if(process.env.npm_execpath.split(Ss.sep).includes(e))return e}return"npm"}});var E5=X((Jke,m5)=>{m5.exports=Ff;Ff.flatten=Ff;Ff.unflatten=g5;function d5(e){return e&&e.constructor&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function f5(e){return e}function Ff(e,t){t=t||{};let r=t.delimiter||".",i=t.maxDepth,n=t.transformKey||f5,s={};function o(a,u,l){l=l||1,Object.keys(a).forEach(function(A){let h=a[A],d=t.safe&&Array.isArray(h),m=Object.prototype.toString.call(h),g=d5(h),E=m==="[object Object]"||m==="[object Array]",y=u?u+r+n(A):n(A);if(!d&&!g&&E&&Object.keys(h).length&&(!t.maxDepth||l<i))return o(h,y,l+1);s[y]=h})}return o(e),s}function g5(e,t){t=t||{};let r=t.delimiter||".",i=t.overwrite||!1,n=t.transformKey||f5,s={};if(d5(e)||Object.prototype.toString.call(e)!=="[object Object]")return e;function a(A){let h=Number(A);return isNaN(h)||A.indexOf(".")!==-1||t.object?A:h}function u(A,h,d){return Object.keys(d).reduce(function(m,g){return m[A+r+g]=d[g],m},h)}function l(A){let h=Object.prototype.toString.call(A),d=h==="[object Array]",m=h==="[object Object]";if(A){if(d)return!A.length;if(m)return!Object.keys(A).length}else return!0}return e=Object.keys(e).reduce(function(A,h){let d=Object.prototype.toString.call(e[h]);return!(d==="[object Object]"||d==="[object Array]")||l(e[h])?(A[h]=e[h],A):u(h,A,Ff(e[h],t))},{}),Object.keys(e).forEach(function(A){let h=A.split(r).map(n),d=a(h.shift()),m=a(h[0]),g=s;for(;m!==void 0;){if(d==="__proto__")return;let E=Object.prototype.toString.call(g[d]),y=E==="[object Object]"||E==="[object Array]";if(!i&&!y&&typeof g[d]<"u")return;(i&&!y||!i&&g[d]==null)&&(g[d]=typeof m=="number"&&!t.object?[]:{}),g=g[d],h.length>0&&(d=a(h.shift()),m=a(h[0]))}g[d]=g5(e[A],t)}),s}});var gS=X(fS=>{"use strict";Object.defineProperty(fS,"__esModule",{value:!0});fS.unparse=Gle;var $le=E5();function Gle(e){let t=[];for(let r of Object.keys(e)){let i=e[r];dS(r,i,t)}return t}function dS(e,t,r){if(t===!0)r.push(`--${e}`);else if(t===!1)r.push(`--no-${e}`);else if(Array.isArray(t))t.forEach(i=>dS(e,i,r));else if(Object.prototype.toString.call(t)==="[object Object]"){let i=(0,$le.flatten)(t,{safe:!0});for(let n in i)dS(`${e}.${n}`,i[n],r)}else typeof t=="string"&&t.includes(" ")?r.push(`--${e}="${t}"`):t!=null&&r.push(`--${e}=${t}`)}});var y5=X(mS=>{"use strict";Object.defineProperty(mS,"__esModule",{value:!0});mS.createEmptyWorkspace=Zle;var jle=(qo(),na(Uo)),zle=jle.__importDefault(FA()),Hle=require("path"),Yle=ja(),Wle=Xs(),C5=yl(),Jle=gS();async function Zle(e,t,r,i){i.packageManager||(i.packageManager=r);let n=i.name;delete i.skipInstall;let{workingDir:s,...o}=i,a=(0,Jle.unparse)({...o}).join(" "),u=(0,C5.getPackageManagerCommand)(r),l=`new ${a}`,A=(i.workingDir??process.cwd()).replace(/\\/g,"/"),h=`"${A}"`;process.platform==="win32"&&/\s/.test(h)&&r==="npm"&&+(0,C5.getPackageManagerVersion)(r,e).split(".")[0]<7&&(h=`\\"${h.slice(1,-1)}\\"`);let d=(0,zle.default)(`Creating your workspace in ${n}`).start();try{let m=`${u.exec} nx ${l} --nxWorkspaceRoot=${h}`;await(0,Yle.execAndWait)(m,e),d.succeed(`Successfully created the workspace: ${n}`)}catch(m){d.fail();let g=m instanceof Error?m.message:String(m);throw new Wle.CnwError("WORKSPACE_CREATION_FAILED",`Failed to create a workspace: ${g}`)}finally{d.stop()}return(0,Hle.join)(A,n)}});var I5=X(ES=>{"use strict";Object.defineProperty(ES,"__esModule",{value:!0});ES.createPreset=the;var Kle=Xs(),b5=yl(),Xle=ja(),ehe=gS();async function the(e,t,r,i){let{skipGit:n,commit:s,nxCloud:o,workingDir:a,...u}=t;u.verbose||delete u.verbose;let l=(0,ehe.unparse)({interactive:!0,...u}).join(" "),A=(0,b5.getPackageManagerCommand)(r),h=(t.workingDir??process.cwd()).replace(/\\/g,"/"),d=`"${h}"`;process.platform==="win32"&&/\s/.test(d)&&r==="npm"&&+(0,b5.getPackageManagerVersion)(r,h).split(".")[0]<7&&(d=`\\"${d.slice(1,-1)}\\"`),process.env.NX_VERBOSE_LOGGING==="true"||l.includes("--verbose")||(l="--quiet "+l);let m=`g ${e}:preset ${l}`;try{let[g,...E]=A.exec.split(" ");E.push("nx",`--nxWorkspaceRoot=${d}`,...m.split(" ")),await(0,Xle.spawnAndWait)(g,E,i)}catch{throw new Kle.CnwError("PRESET_FAILED",`Failed to apply preset: ${e}`)}}});var U5=X((eRe,za)=>{var kr=require("fs"),N0=require("os"),gi=require("path"),w5=require("crypto"),Go={fs:kr.constants,os:N0.constants},B5="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",S5=/XXXXXX/,rhe=3,D5=(Go.O_CREAT||Go.fs.O_CREAT)|(Go.O_EXCL||Go.fs.O_EXCL)|(Go.O_RDWR||Go.fs.O_RDWR),ihe=N0.platform()==="win32",nhe=Go.EBADF||Go.os.errno.EBADF,she=Go.ENOENT||Go.os.errno.ENOENT,k5=448,R5=384,ohe="exit",NA=[],_5=kr.rmdirSync.bind(kr),T5=!1;function ahe(e,t){return kr.rm(e,{recursive:!0},t)}function F5(e){return kr.rmSync(e,{recursive:!0})}function IS(e,t){let r=LA(e,t),i=r[0],n=r[1];mhe(i,function(s,o){if(s)return n(s);let a=o.tries;(function u(){try{let l=L5(o);kr.stat(l,function(A){if(!A)return a-- >0?u():n(new Error("Could not get a unique tmp filename, max tries reached "+l));n(null,l)})}catch(l){n(l)}})()})}function wS(e){let t=LA(e),r=t[0],i=Ehe(r),n=i.tries;do{let s=L5(i);try{kr.statSync(s)}catch{return s}}while(n-- >0);throw new Error("Could not get a unique tmp filename, max tries reached")}function che(e,t){let r=LA(e,t),i=r[0],n=r[1];IS(i,function(o,a){if(o)return n(o);kr.open(a,D5,i.mode||R5,function(l,A){if(l)return n(l);if(i.discardDescriptor)return kr.close(A,function(d){return n(d,a,void 0,yS(a,-1,i,!1))});{let h=i.discardDescriptor||i.detachDescriptor;n(null,a,A,yS(a,h?-1:A,i,!1))}})})}function uhe(e){let t=LA(e),r=t[0],i=r.discardDescriptor||r.detachDescriptor,n=wS(r),s=kr.openSync(n,D5,r.mode||R5);return r.discardDescriptor&&(kr.closeSync(s),s=void 0),{name:n,fd:s,removeCallback:yS(n,i?-1:s,r,!0)}}function lhe(e,t){let r=LA(e,t),i=r[0],n=r[1];IS(i,function(o,a){if(o)return n(o);kr.mkdir(a,i.mode||k5,function(l){if(l)return n(l);n(null,a,N5(a,i,!1))})})}function hhe(e){let t=LA(e),r=t[0],i=wS(r);return kr.mkdirSync(i,r.mode||k5),{name:i,removeCallback:N5(i,r,!0)}}function Ahe(e,t){let r=function(i){if(i&&!bS(i))return t(i);t()};0<=e[0]?kr.close(e[0],function(){kr.unlink(e[1],r)}):kr.unlink(e[1],r)}function phe(e){let t=null;try{0<=e[0]&&kr.closeSync(e[0])}catch(r){if(!Che(r)&&!bS(r))throw r}finally{try{kr.unlinkSync(e[1])}catch(r){bS(r)||(t=r)}}if(t!==null)throw t}function yS(e,t,r,i){let n=F0(phe,[t,e],i),s=F0(Ahe,[t,e],i,n);return r.keep||NA.unshift(n),i?n:s}function N5(e,t,r){let i=t.unsafeCleanup?ahe:kr.rmdir.bind(kr),n=t.unsafeCleanup?F5:_5,s=F0(n,e,r),o=F0(i,e,r,s);return t.keep||NA.unshift(s),r?s:o}function F0(e,t,r,i){let n=!1;return function s(o){if(!n){let a=i||s,u=NA.indexOf(a);return u>=0&&NA.splice(u,1),n=!0,r||e===_5||e===F5?e(t):e(t,o||function(){})}}}function dhe(){if(T5)for(;NA.length;)try{NA[0]()}catch{}}function v5(e){let t=[],r=null;try{r=w5.randomBytes(e)}catch{r=w5.pseudoRandomBytes(e)}for(let i=0;i<e;i++)t.push(B5[r[i]%B5.length]);return t.join("")}function Fn(e){return typeof e>"u"}function LA(e,t){if(typeof e=="function")return[{},e];if(Fn(e))return[{},t];let r={};for(let i of Object.getOwnPropertyNames(e))r[i]=e[i];return[r,t]}function fhe(e,t,r){let i=gi.isAbsolute(e)?e:gi.join(t,e);kr.stat(i,function(n){n?kr.realpath(gi.dirname(i),function(s,o){if(s)return r(s);r(null,gi.join(o,gi.basename(i)))}):kr.realpath(i,r)})}function ghe(e,t){let r=gi.isAbsolute(e)?e:gi.join(t,e);try{return kr.statSync(r),kr.realpathSync(r)}catch{let n=kr.realpathSync(gi.dirname(r));return gi.join(n,gi.basename(r))}}function L5(e){let t=e.tmpdir;if(!Fn(e.name))return gi.join(t,e.dir,e.name);if(!Fn(e.template))return gi.join(t,e.dir,e.template).replace(S5,v5(6));let r=[e.prefix?e.prefix:"tmp","-",process.pid,"-",v5(12),e.postfix?"-"+e.postfix:""].join("");return gi.join(t,e.dir,r)}function CS(e,t){if(typeof t!="string")throw new Error(`${e} option must be a string, got "${typeof t}".`);if(t.includes(".."))throw new Error("Relative value not allowed");return t}function M5(e){if(!Fn(e.name)){let t=e.name;if(gi.isAbsolute(t))throw new Error(`name option must not contain an absolute path, found "${t}".`);let r=gi.basename(t);if(r===".."||r==="."||r!==t)throw new Error(`name option must not contain a path, found "${t}".`)}if(!Fn(e.template)){if(typeof e.template!="string")throw new Error(`template option must be a string, got "${typeof e.template}".`);if(!e.template.match(S5))throw new Error(`Invalid template, found "${e.template}".`)}if(!Fn(e.tries)&&isNaN(e.tries)||e.tries<0)throw new Error(`Invalid tries, found "${e.tries}".`);e.tries=Fn(e.name)?e.tries||rhe:1,e.keep=!!e.keep,e.detachDescriptor=!!e.detachDescriptor,e.discardDescriptor=!!e.discardDescriptor,e.unsafeCleanup=!!e.unsafeCleanup,e.prefix=Fn(e.prefix)?"":CS("prefix",e.prefix),e.postfix=Fn(e.postfix)?"":CS("postfix",e.postfix),e.template=Fn(e.template)?void 0:CS("template",e.template)}function x5(e,t,r,i){if(Fn(t))return i(null);fhe(t,r,function(n,s){if(n)return i(n);let o=gi.relative(r,s);if(o.startsWith("..")||gi.isAbsolute(o))return i(new Error(`${e} option must be relative to "${r}", found "${o}".`));i(null,o)})}function Q5(e,t,r){if(Fn(t))return;let i=ghe(t,r),n=gi.relative(r,i);if(n.startsWith("..")||gi.isAbsolute(n))throw new Error(`${e} option must be relative to "${r}", found "${n}".`);return n}function mhe(e,t){bhe(e,function(r,i){if(r)return t(r);e.tmpdir=i;try{M5(e,i)}catch(n){return t(n)}x5("dir",e.dir,i,function(n,s){if(n)return t(n);e.dir=Fn(s)?"":s,x5("template",e.template,i,function(o,a){if(o)return t(o);e.template=a,t(null,e)})})})}function Ehe(e){let t=e.tmpdir=P5(e);M5(e,t);let r=Q5("dir",e.dir,t);return e.dir=Fn(r)?"":r,e.template=Q5("template",e.template,t),e}function Che(e){return O5(e,-nhe,"EBADF")}function bS(e){return O5(e,-she,"ENOENT")}function O5(e,t,r){return ihe?e.code===r:e.code===r&&e.errno===t}function yhe(){T5=!0}function bhe(e,t){return kr.realpath(e&&e.tmpdir||N0.tmpdir(),t)}function P5(e){return kr.realpathSync(e&&e.tmpdir||N0.tmpdir())}process.addListener(ohe,dhe);Object.defineProperty(za.exports,"tmpdir",{enumerable:!0,configurable:!1,get:function(){return P5()}});za.exports.dir=lhe;za.exports.dirSync=hhe;za.exports.file=che;za.exports.fileSync=uhe;za.exports.tmpName=IS;za.exports.tmpNameSync=wS;za.exports.setGracefulCleanup=yhe});var q5=X((tRe,Ihe)=>{Ihe.exports={name:"create-nx-workspace",version:"22.7.7",private:!1,description:"Smart Monorepos \xB7 Fast Builds",repository:{type:"git",url:"https://github.com/nrwl/nx.git",directory:"packages/create-nx-workspace"},keywords:["Monorepo","Angular","React","Web","Node","Nest","Jest","Cypress","Playwright","CLI"],bin:{"create-nx-workspace":"./bin/index.js"},author:"Victor Savkin",license:"MIT",bugs:{url:"https://github.com/nrwl/nx/issues"},homepage:"https://nx.dev",dependencies:{axios:"1.16.0",chalk:"^4.1.0",enquirer:"~2.3.6",flat:"^5.0.2",open:"^8.4.0",ora:"5.3.0",tmp:"~0.2.1",tslib:"^2.3.0",yargs:"^17.6.2"},publishConfig:{access:"public"}}});var BS=X(L0=>{"use strict";Object.defineProperty(L0,"__esModule",{value:!0});L0.nxVersion=void 0;L0.nxVersion=q5().version});var j5=X(xS=>{"use strict";Object.defineProperty(xS,"__esModule",{value:!0});xS.createSandbox=She;var whe=(qo(),na(Uo)),Bhe=require("fs"),vhe=U5(),xhe=whe.__importDefault(FA()),Qhe=require("path"),V5=yl(),$5=ja(),G5=BS(),vS=Xs();async function She(e){let t=(0,xhe.default)(`Installing dependencies with ${e}`).start(),{install:r,preInstall:i}=(0,V5.getPackageManagerCommand)(e),n=(0,vhe.dirSync)().name;try{(0,Bhe.writeFileSync)((0,Qhe.join)(n,"package.json"),JSON.stringify({dependencies:{nx:G5.nxVersion,"@nx/workspace":G5.nxVersion},license:"MIT"})),(0,V5.generatePackageManagerFiles)(n,e),i&&await(0,$5.execAndWait)(i,n),await(0,$5.execAndWait)(r,n),t.succeed()}catch(s){t.fail();let o=s instanceof vS.CnwError?s.logFile:void 0,a=s instanceof vS.CnwError?s.exitCode:void 0,u=s instanceof Error?s.message:String(s),l=["Failed to install dependencies"];throw u?.trim()&&l.push(u.trim()),a!=null&&l.push(`Exit code: ${a}`),o&&l.push(`Log file: ${o}`),l.push(`
|
|
201
|
+
`)}catch{}}function AS(e,t=2){let r=[];for(let i of["packages","libs","apps"]){let n=(0,Ss.join)(e,i);(0,Zi.existsSync)(n)&&p5(n,1,t,r)}return r}function p5(e,t,r,i){if(!(t>r))try{let n=(0,Zi.readdirSync)(e,{withFileTypes:!0});for(let s of n){if(!s.isDirectory())continue;let o=(0,Ss.join)(e,s.name),a=(0,Ss.join)(o,"package.json");(0,Zi.existsSync)(a)&&i.push(a),t<r&&p5(o,t+1,r,i)}}catch{}}function qle(e){let t=[],r=AS(e);for(let i of r)try{let n=JSON.parse((0,Zi.readFileSync)(i,"utf-8"));n.name&&t.push(n.name)}catch{}return t.sort()}var lS=new Map;function pS(e,t=process.cwd()){if(lS.has(e))return lS.get(e);try{let r=(0,Lle.execSync)(`${e} --version`,{cwd:t,encoding:"utf-8",windowsHide:!0}).trim();return lS.set(e,r),r}catch{throw new Mle.CnwError("INVALID_PACKAGE_MANAGER",`Package manager '${e}' is not installed or not found in PATH.`)}}function Vle(){if(process.env.npm_config_user_agent){for(let e of pn.packageManagerList)if(process.env.npm_config_user_agent.startsWith(`${e}/`))return e}if(process.env.npm_execpath){for(let e of pn.packageManagerList)if(process.env.npm_execpath.split(Ss.sep).includes(e))return e}return"npm"}});var E5=X((Jke,m5)=>{m5.exports=Ff;Ff.flatten=Ff;Ff.unflatten=g5;function d5(e){return e&&e.constructor&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function f5(e){return e}function Ff(e,t){t=t||{};let r=t.delimiter||".",i=t.maxDepth,n=t.transformKey||f5,s={};function o(a,u,l){l=l||1,Object.keys(a).forEach(function(A){let h=a[A],d=t.safe&&Array.isArray(h),m=Object.prototype.toString.call(h),g=d5(h),E=m==="[object Object]"||m==="[object Array]",y=u?u+r+n(A):n(A);if(!d&&!g&&E&&Object.keys(h).length&&(!t.maxDepth||l<i))return o(h,y,l+1);s[y]=h})}return o(e),s}function g5(e,t){t=t||{};let r=t.delimiter||".",i=t.overwrite||!1,n=t.transformKey||f5,s={};if(d5(e)||Object.prototype.toString.call(e)!=="[object Object]")return e;function a(A){let h=Number(A);return isNaN(h)||A.indexOf(".")!==-1||t.object?A:h}function u(A,h,d){return Object.keys(d).reduce(function(m,g){return m[A+r+g]=d[g],m},h)}function l(A){let h=Object.prototype.toString.call(A),d=h==="[object Array]",m=h==="[object Object]";if(A){if(d)return!A.length;if(m)return!Object.keys(A).length}else return!0}return e=Object.keys(e).reduce(function(A,h){let d=Object.prototype.toString.call(e[h]);return!(d==="[object Object]"||d==="[object Array]")||l(e[h])?(A[h]=e[h],A):u(h,A,Ff(e[h],t))},{}),Object.keys(e).forEach(function(A){let h=A.split(r).map(n),d=a(h.shift()),m=a(h[0]),g=s;for(;m!==void 0;){if(d==="__proto__")return;let E=Object.prototype.toString.call(g[d]),y=E==="[object Object]"||E==="[object Array]";if(!i&&!y&&typeof g[d]<"u")return;(i&&!y||!i&&g[d]==null)&&(g[d]=typeof m=="number"&&!t.object?[]:{}),g=g[d],h.length>0&&(d=a(h.shift()),m=a(h[0]))}g[d]=g5(e[A],t)}),s}});var gS=X(fS=>{"use strict";Object.defineProperty(fS,"__esModule",{value:!0});fS.unparse=Gle;var $le=E5();function Gle(e){let t=[];for(let r of Object.keys(e)){let i=e[r];dS(r,i,t)}return t}function dS(e,t,r){if(t===!0)r.push(`--${e}`);else if(t===!1)r.push(`--no-${e}`);else if(Array.isArray(t))t.forEach(i=>dS(e,i,r));else if(Object.prototype.toString.call(t)==="[object Object]"){let i=(0,$le.flatten)(t,{safe:!0});for(let n in i)dS(`${e}.${n}`,i[n],r)}else typeof t=="string"&&t.includes(" ")?r.push(`--${e}="${t}"`):t!=null&&r.push(`--${e}=${t}`)}});var y5=X(mS=>{"use strict";Object.defineProperty(mS,"__esModule",{value:!0});mS.createEmptyWorkspace=Zle;var jle=(qo(),na(Uo)),zle=jle.__importDefault(FA()),Hle=require("path"),Yle=ja(),Wle=Xs(),C5=yl(),Jle=gS();async function Zle(e,t,r,i){i.packageManager||(i.packageManager=r);let n=i.name;delete i.skipInstall;let{workingDir:s,...o}=i,a=(0,Jle.unparse)({...o}).join(" "),u=(0,C5.getPackageManagerCommand)(r),l=`new ${a}`,A=(i.workingDir??process.cwd()).replace(/\\/g,"/"),h=`"${A}"`;process.platform==="win32"&&/\s/.test(h)&&r==="npm"&&+(0,C5.getPackageManagerVersion)(r,e).split(".")[0]<7&&(h=`\\"${h.slice(1,-1)}\\"`);let d=(0,zle.default)(`Creating your workspace in ${n}`).start();try{let m=`${u.exec} nx ${l} --nxWorkspaceRoot=${h}`;await(0,Yle.execAndWait)(m,e),d.succeed(`Successfully created the workspace: ${n}`)}catch(m){d.fail();let g=m instanceof Error?m.message:String(m);throw new Wle.CnwError("WORKSPACE_CREATION_FAILED",`Failed to create a workspace: ${g}`)}finally{d.stop()}return(0,Hle.join)(A,n)}});var I5=X(ES=>{"use strict";Object.defineProperty(ES,"__esModule",{value:!0});ES.createPreset=the;var Kle=Xs(),b5=yl(),Xle=ja(),ehe=gS();async function the(e,t,r,i){let{skipGit:n,commit:s,nxCloud:o,workingDir:a,...u}=t;u.verbose||delete u.verbose;let l=(0,ehe.unparse)({interactive:!0,...u}).join(" "),A=(0,b5.getPackageManagerCommand)(r),h=(t.workingDir??process.cwd()).replace(/\\/g,"/"),d=`"${h}"`;process.platform==="win32"&&/\s/.test(d)&&r==="npm"&&+(0,b5.getPackageManagerVersion)(r,h).split(".")[0]<7&&(d=`\\"${d.slice(1,-1)}\\"`),process.env.NX_VERBOSE_LOGGING==="true"||l.includes("--verbose")||(l="--quiet "+l);let m=`g ${e}:preset ${l}`;try{let[g,...E]=A.exec.split(" ");E.push("nx",`--nxWorkspaceRoot=${d}`,...m.split(" ")),await(0,Xle.spawnAndWait)(g,E,i)}catch{throw new Kle.CnwError("PRESET_FAILED",`Failed to apply preset: ${e}`)}}});var U5=X((eRe,za)=>{var kr=require("fs"),N0=require("os"),gi=require("path"),w5=require("crypto"),Go={fs:kr.constants,os:N0.constants},B5="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",S5=/XXXXXX/,rhe=3,D5=(Go.O_CREAT||Go.fs.O_CREAT)|(Go.O_EXCL||Go.fs.O_EXCL)|(Go.O_RDWR||Go.fs.O_RDWR),ihe=N0.platform()==="win32",nhe=Go.EBADF||Go.os.errno.EBADF,she=Go.ENOENT||Go.os.errno.ENOENT,k5=448,R5=384,ohe="exit",NA=[],_5=kr.rmdirSync.bind(kr),T5=!1;function ahe(e,t){return kr.rm(e,{recursive:!0},t)}function F5(e){return kr.rmSync(e,{recursive:!0})}function IS(e,t){let r=LA(e,t),i=r[0],n=r[1];mhe(i,function(s,o){if(s)return n(s);let a=o.tries;(function u(){try{let l=L5(o);kr.stat(l,function(A){if(!A)return a-- >0?u():n(new Error("Could not get a unique tmp filename, max tries reached "+l));n(null,l)})}catch(l){n(l)}})()})}function wS(e){let t=LA(e),r=t[0],i=Ehe(r),n=i.tries;do{let s=L5(i);try{kr.statSync(s)}catch{return s}}while(n-- >0);throw new Error("Could not get a unique tmp filename, max tries reached")}function che(e,t){let r=LA(e,t),i=r[0],n=r[1];IS(i,function(o,a){if(o)return n(o);kr.open(a,D5,i.mode||R5,function(l,A){if(l)return n(l);if(i.discardDescriptor)return kr.close(A,function(d){return n(d,a,void 0,yS(a,-1,i,!1))});{let h=i.discardDescriptor||i.detachDescriptor;n(null,a,A,yS(a,h?-1:A,i,!1))}})})}function uhe(e){let t=LA(e),r=t[0],i=r.discardDescriptor||r.detachDescriptor,n=wS(r),s=kr.openSync(n,D5,r.mode||R5);return r.discardDescriptor&&(kr.closeSync(s),s=void 0),{name:n,fd:s,removeCallback:yS(n,i?-1:s,r,!0)}}function lhe(e,t){let r=LA(e,t),i=r[0],n=r[1];IS(i,function(o,a){if(o)return n(o);kr.mkdir(a,i.mode||k5,function(l){if(l)return n(l);n(null,a,N5(a,i,!1))})})}function hhe(e){let t=LA(e),r=t[0],i=wS(r);return kr.mkdirSync(i,r.mode||k5),{name:i,removeCallback:N5(i,r,!0)}}function Ahe(e,t){let r=function(i){if(i&&!bS(i))return t(i);t()};0<=e[0]?kr.close(e[0],function(){kr.unlink(e[1],r)}):kr.unlink(e[1],r)}function phe(e){let t=null;try{0<=e[0]&&kr.closeSync(e[0])}catch(r){if(!Che(r)&&!bS(r))throw r}finally{try{kr.unlinkSync(e[1])}catch(r){bS(r)||(t=r)}}if(t!==null)throw t}function yS(e,t,r,i){let n=F0(phe,[t,e],i),s=F0(Ahe,[t,e],i,n);return r.keep||NA.unshift(n),i?n:s}function N5(e,t,r){let i=t.unsafeCleanup?ahe:kr.rmdir.bind(kr),n=t.unsafeCleanup?F5:_5,s=F0(n,e,r),o=F0(i,e,r,s);return t.keep||NA.unshift(s),r?s:o}function F0(e,t,r,i){let n=!1;return function s(o){if(!n){let a=i||s,u=NA.indexOf(a);return u>=0&&NA.splice(u,1),n=!0,r||e===_5||e===F5?e(t):e(t,o||function(){})}}}function dhe(){if(T5)for(;NA.length;)try{NA[0]()}catch{}}function v5(e){let t=[],r=null;try{r=w5.randomBytes(e)}catch{r=w5.pseudoRandomBytes(e)}for(let i=0;i<e;i++)t.push(B5[r[i]%B5.length]);return t.join("")}function Fn(e){return typeof e>"u"}function LA(e,t){if(typeof e=="function")return[{},e];if(Fn(e))return[{},t];let r={};for(let i of Object.getOwnPropertyNames(e))r[i]=e[i];return[r,t]}function fhe(e,t,r){let i=gi.isAbsolute(e)?e:gi.join(t,e);kr.stat(i,function(n){n?kr.realpath(gi.dirname(i),function(s,o){if(s)return r(s);r(null,gi.join(o,gi.basename(i)))}):kr.realpath(i,r)})}function ghe(e,t){let r=gi.isAbsolute(e)?e:gi.join(t,e);try{return kr.statSync(r),kr.realpathSync(r)}catch{let n=kr.realpathSync(gi.dirname(r));return gi.join(n,gi.basename(r))}}function L5(e){let t=e.tmpdir;if(!Fn(e.name))return gi.join(t,e.dir,e.name);if(!Fn(e.template))return gi.join(t,e.dir,e.template).replace(S5,v5(6));let r=[e.prefix?e.prefix:"tmp","-",process.pid,"-",v5(12),e.postfix?"-"+e.postfix:""].join("");return gi.join(t,e.dir,r)}function CS(e,t){if(typeof t!="string")throw new Error(`${e} option must be a string, got "${typeof t}".`);if(t.includes(".."))throw new Error("Relative value not allowed");return t}function M5(e){if(!Fn(e.name)){let t=e.name;if(gi.isAbsolute(t))throw new Error(`name option must not contain an absolute path, found "${t}".`);let r=gi.basename(t);if(r===".."||r==="."||r!==t)throw new Error(`name option must not contain a path, found "${t}".`)}if(!Fn(e.template)){if(typeof e.template!="string")throw new Error(`template option must be a string, got "${typeof e.template}".`);if(!e.template.match(S5))throw new Error(`Invalid template, found "${e.template}".`)}if(!Fn(e.tries)&&isNaN(e.tries)||e.tries<0)throw new Error(`Invalid tries, found "${e.tries}".`);e.tries=Fn(e.name)?e.tries||rhe:1,e.keep=!!e.keep,e.detachDescriptor=!!e.detachDescriptor,e.discardDescriptor=!!e.discardDescriptor,e.unsafeCleanup=!!e.unsafeCleanup,e.prefix=Fn(e.prefix)?"":CS("prefix",e.prefix),e.postfix=Fn(e.postfix)?"":CS("postfix",e.postfix),e.template=Fn(e.template)?void 0:CS("template",e.template)}function x5(e,t,r,i){if(Fn(t))return i(null);fhe(t,r,function(n,s){if(n)return i(n);let o=gi.relative(r,s);if(o.startsWith("..")||gi.isAbsolute(o))return i(new Error(`${e} option must be relative to "${r}", found "${o}".`));i(null,o)})}function Q5(e,t,r){if(Fn(t))return;let i=ghe(t,r),n=gi.relative(r,i);if(n.startsWith("..")||gi.isAbsolute(n))throw new Error(`${e} option must be relative to "${r}", found "${n}".`);return n}function mhe(e,t){bhe(e,function(r,i){if(r)return t(r);e.tmpdir=i;try{M5(e,i)}catch(n){return t(n)}x5("dir",e.dir,i,function(n,s){if(n)return t(n);e.dir=Fn(s)?"":s,x5("template",e.template,i,function(o,a){if(o)return t(o);e.template=a,t(null,e)})})})}function Ehe(e){let t=e.tmpdir=P5(e);M5(e,t);let r=Q5("dir",e.dir,t);return e.dir=Fn(r)?"":r,e.template=Q5("template",e.template,t),e}function Che(e){return O5(e,-nhe,"EBADF")}function bS(e){return O5(e,-she,"ENOENT")}function O5(e,t,r){return ihe?e.code===r:e.code===r&&e.errno===t}function yhe(){T5=!0}function bhe(e,t){return kr.realpath(e&&e.tmpdir||N0.tmpdir(),t)}function P5(e){return kr.realpathSync(e&&e.tmpdir||N0.tmpdir())}process.addListener(ohe,dhe);Object.defineProperty(za.exports,"tmpdir",{enumerable:!0,configurable:!1,get:function(){return P5()}});za.exports.dir=lhe;za.exports.dirSync=hhe;za.exports.file=che;za.exports.fileSync=uhe;za.exports.tmpName=IS;za.exports.tmpNameSync=wS;za.exports.setGracefulCleanup=yhe});var q5=X((tRe,Ihe)=>{Ihe.exports={name:"create-nx-workspace",version:"22.7.8",private:!1,description:"Smart Monorepos \xB7 Fast Builds",repository:{type:"git",url:"https://github.com/nrwl/nx.git",directory:"packages/create-nx-workspace"},keywords:["Monorepo","Angular","React","Web","Node","Nest","Jest","Cypress","Playwright","CLI"],bin:{"create-nx-workspace":"./bin/index.js"},author:"Victor Savkin",license:"MIT",bugs:{url:"https://github.com/nrwl/nx/issues"},homepage:"https://nx.dev",dependencies:{axios:"1.18.1",chalk:"^4.1.0",enquirer:"~2.3.6",flat:"^5.0.2",open:"^8.4.0",ora:"5.3.0",tmp:"~0.2.1",tslib:"^2.3.0",yargs:"^17.6.2"},publishConfig:{access:"public"}}});var BS=X(L0=>{"use strict";Object.defineProperty(L0,"__esModule",{value:!0});L0.nxVersion=void 0;L0.nxVersion=q5().version});var j5=X(xS=>{"use strict";Object.defineProperty(xS,"__esModule",{value:!0});xS.createSandbox=She;var whe=(qo(),na(Uo)),Bhe=require("fs"),vhe=U5(),xhe=whe.__importDefault(FA()),Qhe=require("path"),V5=yl(),$5=ja(),G5=BS(),vS=Xs();async function She(e){let t=(0,xhe.default)(`Installing dependencies with ${e}`).start(),{install:r,preInstall:i}=(0,V5.getPackageManagerCommand)(e),n=(0,vhe.dirSync)().name;try{(0,Bhe.writeFileSync)((0,Qhe.join)(n,"package.json"),JSON.stringify({dependencies:{nx:G5.nxVersion,"@nx/workspace":G5.nxVersion},license:"MIT"})),(0,V5.generatePackageManagerFiles)(n,e),i&&await(0,$5.execAndWait)(i,n),await(0,$5.execAndWait)(r,n),t.succeed()}catch(s){t.fail();let o=s instanceof vS.CnwError?s.logFile:void 0,a=s instanceof vS.CnwError?s.exitCode:void 0,u=s instanceof Error?s.message:String(s),l=["Failed to install dependencies"];throw u?.trim()&&l.push(u.trim()),a!=null&&l.push(`Exit code: ${a}`),o&&l.push(`Log file: ${o}`),l.push(`
|
|
202
202
|
Please verify that "${r}" runs successfully in a temporary directory.`),new vS.CnwError("SANDBOX_FAILED",l.join(`
|
|
203
203
|
`),o,a??void 0)}finally{t.stop()}return n}});var z5=X(QS=>{"use strict";Object.defineProperty(QS,"__esModule",{value:!0});QS.setupCI=Fhe;var Dhe=(qo(),na(Uo)),khe=Dhe.__importDefault(FA()),Rhe=ja(),_he=Xs(),The=yl();async function Fhe(e,t,r){let i=(0,khe.default)("Generating CI workflow").start();try{let n=(0,The.getPackageManagerCommand)(r),s=await(0,Rhe.execAndWait)(`${n.exec} nx g @nx/workspace:ci-workflow --ci=${t} --useRunMany=true`,e);return i.succeed("CI workflow has been generated successfully"),s}catch(n){i.fail();let s=n instanceof Error?n.message:String(n);throw new _he.CnwError("CI_WORKFLOW_FAILED",`Failed to generate CI workflow: ${s}`)}finally{i.stop()}}});var DS=X(SS=>{"use strict";Object.defineProperty(SS,"__esModule",{value:!0});SS.deduceDefaultBase=Lhe;var Nhe=require("child_process");function Lhe(){let e="main";try{return(0,Nhe.execSync)("git config --get init.defaultBranch",{windowsHide:!0}).toString().trim()||e}catch{return e}}});var Nf=X(kS=>{"use strict";Object.defineProperty(kS,"__esModule",{value:!0});kS.isCI=Mhe;function Mhe(){return process.env.CI&&process.env.CI!=="false"||process.env.TF_BUILD==="true"||process.env.GITHUB_ACTIONS==="true"||process.env.BUILDKITE==="true"||process.env.CIRCLECI==="true"||process.env.CIRRUS_CI==="true"||process.env.TRAVIS==="true"||!!process.env["bamboo.buildKey"]||!!process.env.CODEBUILD_BUILD_ID||!!process.env.GITLAB_CI||!!process.env.HEROKU_TEST_RUN_ID||!!process.env.BUILD_ID||!!process.env.BUILD_BUILDID||!!process.env.TEAMCITY_VERSION}});var Mf=X(MA=>{"use strict";Object.defineProperty(MA,"__esModule",{value:!0});MA.output=MA.CLIOutput=void 0;var Ohe=(qo(),na(Uo)),_i=Ohe.__importDefault(cl()),Lf=require("os"),Phe=Nf();(0,Phe.isCI)()&&(_i.default.level=0);var M0=class{constructor(t=!0){this.real=t,this.outstream=this.real?process.stdout:new RS,this.colors={gray:_i.default.gray,green:_i.default.green,red:_i.default.red,cyan:_i.default.cyan,white:_i.default.white},this.bold=_i.default.bold,this.underline=_i.default.underline,this.dim=_i.default.dim,this.cliName="NX"}get VERTICAL_SEPARATOR(){let t="";for(let r=0;r<process.stdout.columns-1;r++)t+="\u2014";return t}writeToStdOut(t){this.outstream.write(t)}writeOutputTitle({color:t,title:r}){this.writeToStdOut(`${this.applyCLIPrefix(t,r)}${Lf.EOL}`)}writeOptionalOutputBody(t){t&&(this.addNewline(),t.forEach(r=>this.writeToStdOut(`${r}${Lf.EOL}`)))}setCliName(t){this.cliName=t}applyCLIPrefix(t="cyan",r){let i="";return _i.default[t]?i=_i.default.reset.inverse.bold[t](` ${this.cliName} `):i=_i.default.reset.inverse.bold.keyword(t)(` ${this.cliName} `),`${i} ${r}`}addNewline(){this.writeToStdOut(Lf.EOL)}writeLines(t){t.forEach(r=>this.writeToStdOut(`${r}${Lf.EOL}`))}addVerticalSeparator(t="gray"){this.addNewline(),this.addVerticalSeparatorWithoutNewLines(t),this.addNewline()}addVerticalSeparatorWithoutNewLines(t="gray"){this.writeToStdOut(`${_i.default.dim[t](this.VERTICAL_SEPARATOR)}${Lf.EOL}`)}error({title:t,bodyLines:r}){this.addNewline(),this.writeOutputTitle({color:"red",title:_i.default.red(t)}),this.writeOptionalOutputBody(r),this.addNewline()}warn({title:t,bodyLines:r}){this.addNewline(),this.writeOutputTitle({color:"yellow",title:_i.default.yellow(t)}),this.writeOptionalOutputBody(r),this.addNewline()}note({title:t,bodyLines:r}){this.addNewline(),this.writeOutputTitle({color:"orange",title:_i.default.keyword("orange")(t)}),this.writeOptionalOutputBody(r),this.addNewline()}success({title:t,bodyLines:r}){this.addNewline(),this.writeOutputTitle({color:"green",title:_i.default.green(t)}),this.writeOptionalOutputBody(r)}logSingleLine(t){this.addNewline(),this.writeOutputTitle({color:"gray",title:t}),this.addNewline()}log({title:t,bodyLines:r,color:i}){this.addNewline(),this.writeOutputTitle({color:"cyan",title:i?_i.default[i](t):t}),this.writeOptionalOutputBody(r),this.addNewline()}getOutput(){return this.outstream.toString()}};MA.CLIOutput=M0;MA.output=new M0;var RS=class{constructor(){this.content=""}write(t){this.content+=t}toString(){return this.content}}});var J5=X((cRe,Of)=>{"use strict";var Uhe=typeof process<"u"&&process.env.TERM_PROGRAM==="Hyper",qhe=typeof process<"u"&&process.platform==="win32",H5=typeof process<"u"&&process.platform==="linux",_S={ballotDisabled:"\u2612",ballotOff:"\u2610",ballotOn:"\u2611",bullet:"\u2022",bulletWhite:"\u25E6",fullBlock:"\u2588",heart:"\u2764",identicalTo:"\u2261",line:"\u2500",mark:"\u203B",middot:"\xB7",minus:"\uFF0D",multiplication:"\xD7",obelus:"\xF7",pencilDownRight:"\u270E",pencilRight:"\u270F",pencilUpRight:"\u2710",percent:"%",pilcrow2:"\u2761",pilcrow:"\xB6",plusMinus:"\xB1",question:"?",section:"\xA7",starsOff:"\u2606",starsOn:"\u2605",upDownArrow:"\u2195"},Y5=Object.assign({},_S,{check:"\u221A",cross:"\xD7",ellipsisLarge:"...",ellipsis:"...",info:"i",questionSmall:"?",pointer:">",pointerSmall:"\xBB",radioOff:"( )",radioOn:"(*)",warning:"\u203C"}),W5=Object.assign({},_S,{ballotCross:"\u2718",check:"\u2714",cross:"\u2716",ellipsisLarge:"\u22EF",ellipsis:"\u2026",info:"\u2139",questionFull:"\uFF1F",questionSmall:"\uFE56",pointer:H5?"\u25B8":"\u276F",pointerSmall:H5?"\u2023":"\u203A",radioOff:"\u25EF",radioOn:"\u25C9",warning:"\u26A0"});Of.exports=qhe&&!Uhe?Y5:W5;Reflect.defineProperty(Of.exports,"common",{enumerable:!1,value:_S});Reflect.defineProperty(Of.exports,"windows",{enumerable:!1,value:Y5});Reflect.defineProperty(Of.exports,"other",{enumerable:!1,value:W5})});var Nn=X((uRe,TS)=>{"use strict";var Vhe=e=>e!==null&&typeof e=="object"&&!Array.isArray(e),$he=/[\u001b\u009b][[\]#;?()]*(?:(?:(?:[^\W_]*;?[^\W_]*)\u0007)|(?:(?:[0-9]{1,4}(;[0-9]{0,4})*)?[~0-9=<>cf-nqrtyA-PRZ]))/g,Ghe=()=>typeof process<"u"?process.env.FORCE_COLOR!=="0":!1,Z5=()=>{let e={enabled:Ghe(),visible:!0,styles:{},keys:{}},t=s=>{let o=s.open=`\x1B[${s.codes[0]}m`,a=s.close=`\x1B[${s.codes[1]}m`,u=s.regex=new RegExp(`\\u001b\\[${s.codes[1]}m`,"g");return s.wrap=(l,A)=>{l.includes(a)&&(l=l.replace(u,a+o));let h=o+l+a;return A?h.replace(/\r*\n/g,`${a}$&${o}`):h},s},r=(s,o,a)=>typeof s=="function"?s(o):s.wrap(o,a),i=(s,o)=>{if(s===""||s==null)return"";if(e.enabled===!1)return s;if(e.visible===!1)return"";let a=""+s,u=a.includes(`
|
|
204
204
|
`),l=o.length;for(l>0&&o.includes("unstyle")&&(o=[...new Set(["unstyle",...o])].reverse());l-- >0;)a=r(e.styles[o[l]],a,u);return a},n=(s,o,a)=>{e.styles[s]=t({name:s,codes:o}),(e.keys[a]||(e.keys[a]=[])).push(s),Reflect.defineProperty(e,s,{configurable:!0,enumerable:!0,set(l){e.alias(s,l)},get(){let l=A=>i(A,l.stack);return Reflect.setPrototypeOf(l,e),l.stack=this.stack?this.stack.concat(s):[s],l}})};return n("reset",[0,0],"modifier"),n("bold",[1,22],"modifier"),n("dim",[2,22],"modifier"),n("italic",[3,23],"modifier"),n("underline",[4,24],"modifier"),n("inverse",[7,27],"modifier"),n("hidden",[8,28],"modifier"),n("strikethrough",[9,29],"modifier"),n("black",[30,39],"color"),n("red",[31,39],"color"),n("green",[32,39],"color"),n("yellow",[33,39],"color"),n("blue",[34,39],"color"),n("magenta",[35,39],"color"),n("cyan",[36,39],"color"),n("white",[37,39],"color"),n("gray",[90,39],"color"),n("grey",[90,39],"color"),n("bgBlack",[40,49],"bg"),n("bgRed",[41,49],"bg"),n("bgGreen",[42,49],"bg"),n("bgYellow",[43,49],"bg"),n("bgBlue",[44,49],"bg"),n("bgMagenta",[45,49],"bg"),n("bgCyan",[46,49],"bg"),n("bgWhite",[47,49],"bg"),n("blackBright",[90,39],"bright"),n("redBright",[91,39],"bright"),n("greenBright",[92,39],"bright"),n("yellowBright",[93,39],"bright"),n("blueBright",[94,39],"bright"),n("magentaBright",[95,39],"bright"),n("cyanBright",[96,39],"bright"),n("whiteBright",[97,39],"bright"),n("bgBlackBright",[100,49],"bgBright"),n("bgRedBright",[101,49],"bgBright"),n("bgGreenBright",[102,49],"bgBright"),n("bgYellowBright",[103,49],"bgBright"),n("bgBlueBright",[104,49],"bgBright"),n("bgMagentaBright",[105,49],"bgBright"),n("bgCyanBright",[106,49],"bgBright"),n("bgWhiteBright",[107,49],"bgBright"),e.ansiRegex=$he,e.hasColor=e.hasAnsi=s=>(e.ansiRegex.lastIndex=0,typeof s=="string"&&s!==""&&e.ansiRegex.test(s)),e.alias=(s,o)=>{let a=typeof o=="string"?e[o]:o;if(typeof a!="function")throw new TypeError("Expected alias to be the name of an existing color (string) or a function");a.stack||(Reflect.defineProperty(a,"name",{value:s}),e.styles[s]=a,a.stack=[s]),Reflect.defineProperty(e,s,{configurable:!0,enumerable:!0,set(u){e.alias(s,u)},get(){let u=l=>i(l,u.stack);return Reflect.setPrototypeOf(u,e),u.stack=this.stack?this.stack.concat(a.stack):a.stack,u}})},e.theme=s=>{if(!Vhe(s))throw new TypeError("Expected theme to be an object");for(let o of Object.keys(s))e.alias(o,s[o]);return e},e.alias("unstyle",s=>typeof s=="string"&&s!==""?(e.ansiRegex.lastIndex=0,s.replace(e.ansiRegex,"")):""),e.alias("noop",s=>s),e.none=e.clear=e.noop,e.stripColor=e.unstyle,e.symbols=J5(),e.define=n,e};TS.exports=Z5();TS.exports.create=Z5});var Ki=X(sr=>{"use strict";var jhe=Object.prototype.toString,Ds=Nn(),K5=!1,FS=[],X5={yellow:"blue",cyan:"red",green:"magenta",black:"white",blue:"yellow",red:"cyan",magenta:"green",white:"black"};sr.longest=(e,t)=>e.reduce((r,i)=>Math.max(r,t?i[t].length:i.length),0);sr.hasColor=e=>!!e&&Ds.hasColor(e);var O0=sr.isObject=e=>e!==null&&typeof e=="object"&&!Array.isArray(e);sr.nativeType=e=>jhe.call(e).slice(8,-1).toLowerCase().replace(/\s/g,"");sr.isAsyncFn=e=>sr.nativeType(e)==="asyncfunction";sr.isPrimitive=e=>e!=null&&typeof e!="object"&&typeof e!="function";sr.resolve=(e,t,...r)=>typeof t=="function"?t.call(e,...r):t;sr.scrollDown=(e=[])=>[...e.slice(1),e[0]];sr.scrollUp=(e=[])=>[e.pop(),...e];sr.reorder=(e=[])=>{let t=e.slice();return t.sort((r,i)=>r.index>i.index?1:r.index<i.index?-1:0),t};sr.swap=(e,t,r)=>{let i=e.length,n=r===i?0:r<0?i-1:r,s=e[t];e[t]=e[n],e[n]=s};sr.width=(e,t=80)=>{let r=e&&e.columns?e.columns:t;return e&&typeof e.getWindowSize=="function"&&(r=e.getWindowSize()[0]),process.platform==="win32"?r-1:r};sr.height=(e,t=20)=>{let r=e&&e.rows?e.rows:t;return e&&typeof e.getWindowSize=="function"&&(r=e.getWindowSize()[1]),r};sr.wordWrap=(e,t={})=>{if(!e)return e;typeof t=="number"&&(t={width:t});let{indent:r="",newline:i=`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-storm-workspace",
|
|
3
|
-
"version": "1.97.
|
|
3
|
+
"version": "1.97.271",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "⚡A CLI tool used to generate and fully configure a Storm Workspace repository.",
|
|
6
6
|
"keywords": [
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"bin": { "create-storm-workspace": "./index.js" },
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@nx/workspace": "23.0.1",
|
|
33
|
-
"create-nx-workspace": "^22.7.
|
|
33
|
+
"create-nx-workspace": "^22.7.8",
|
|
34
34
|
"enquirer": "2.4.1"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
@@ -44,5 +44,5 @@
|
|
|
44
44
|
"nx": { "optional": false }
|
|
45
45
|
},
|
|
46
46
|
"publishConfig": { "access": "public" },
|
|
47
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "12f7e1011f68248061d3f51a5a9b92e390d7d932"
|
|
48
48
|
}
|