soonjs 0.0.21 → 0.0.23
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/dist/deps/acorn-1oc5bnxht.js +15 -0
- package/dist/deps/angular-46ezrk1u4.js +1 -0
- package/dist/deps/babel-ukpqzojf5.js +15 -0
- package/dist/deps/estree-keanyt70z.js +36 -0
- package/dist/deps/flow-ugrhj6801.js +19 -0
- package/dist/deps/glimmer-g89edvgvf.js +30 -0
- package/dist/deps/graphql-amtjbpo5r.js +29 -0
- package/dist/deps/html-flg3eek30.js +23 -0
- package/dist/deps/markdown-7x2u7akwf.js +62 -0
- package/dist/deps/meriyah-6mdlkd9e4.js +4 -0
- package/dist/deps/postcss-2wa48tg1s.js +52 -0
- package/dist/deps/soon-id-4bhrd5e6a.js +30 -0
- package/dist/deps/soon-id-exfiforio.js +1 -0
- package/dist/deps/typescript-q1t5ixgyo.js +20 -0
- package/dist/deps/yaml-wpxyjc78l.js +161 -0
- package/dist/index.cjs +15 -0
- package/dist/index.d.ts +2 -7
- package/dist/index.js +1518 -53874
- package/dist/types.d.ts +1 -1
- package/dist/vite-plugin-soon-client.cjs +249 -0
- package/dist/vite-plugin-soon-client.js +48822 -0
- package/dist/vite-plugin-soon-server.cjs +272 -0
- package/dist/vite-plugin-soon-server.d.ts +1 -0
- package/dist/vite-plugin-soon-server.js +3529 -0
- package/package.json +19 -2
- package/dist/one.d.ts +0 -20
- package/dist/testtt.d.ts +0 -1
- package/dist/utils.d.ts +0 -6
- /package/dist/{acorn-BeS7roP3.js → deps/acorn-8dcdyq2ew.js} +0 -0
- /package/dist/{angular-B-EYu3Xp.js → deps/angular-s1xz11ikt.js} +0 -0
- /package/dist/{babel-NsGQycRb.js → deps/babel-0wg32lzwx.js} +0 -0
- /package/dist/{estree-cBJzAinS.js → deps/estree-kdvyujfa4.js} +0 -0
- /package/dist/{flow-CH5Saqka.js → deps/flow-0bur80d37.js} +0 -0
- /package/dist/{glimmer-D1ryh0Nj.js → deps/glimmer-fj2j8ttlo.js} +0 -0
- /package/dist/{graphql-DsBI6lrt.js → deps/graphql-y9qq36k5p.js} +0 -0
- /package/dist/{html-BCw0gm0V.js → deps/html-2g2e1kuqu.js} +0 -0
- /package/dist/{markdown-k-AdjTGy.js → deps/markdown-4jfu7be9n.js} +0 -0
- /package/dist/{meriyah-CghVgtuf.js → deps/meriyah-3gk7mqup6.js} +0 -0
- /package/dist/{postcss-BC57c3E8.js → deps/postcss-zmmc2gk0l.js} +0 -0
- /package/dist/{typescript-DtWxbCCh.js → deps/typescript-bgdn0fi0y.js} +0 -0
- /package/dist/{yaml-CFlm97O-.js → deps/yaml-ajia8oazz.js} +0 -0
|
@@ -0,0 +1,249 @@
|
|
|
1
|
+
"use strict";var rT=Object.defineProperty;var nT=(e,t,r)=>t in e?rT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var yi=(e,t,r)=>nT(e,typeof t!="symbol"?t+"":t,r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const St=require("fs"),rt=require("path"),Ns=require("module"),xe=require("url"),Fr=require("process"),tc=require("os"),xs=require("tty"),Ii=require("fs/promises"),rr=require("assert"),iT=require("v8"),Fs=require("util"),Jr=require("./deps/soon-id-exfiforio.js"),sT=require("crypto");var ro=typeof document<"u"?document.currentScript:null;function aT(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const no=aT(rt);var oT=Object.defineProperty,uT=(e,t)=>{for(var r in t)oT(e,r,{get:t[r],enumerable:!0})},Em={};uT(Em,{builders:()=>Fm,printer:()=>_m,utils:()=>wm});var si="string",zr="array",ai="cursor",An="indent",Cn="align",Pn="trim",nr="group",xn="fill",mr="if-break",Fn="indent-if-break",_n="line-suffix",wn="line-suffix-boundary",Ut="line",In="label",wr="break-parent",bm=new Set([ai,An,Cn,Pn,nr,xn,mr,Fn,_n,wn,Ut,In,wr]);function lT(e){if(typeof e=="string")return si;if(Array.isArray(e))return zr;if(!e)return;const{type:t}=e;if(bm.has(t))return t}var oi=lT,cT=e=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(e);function fT(e){const t=e===null?"null":typeof e;if(t!=="string"&&t!=="object")return`Unexpected doc '${t}',
|
|
2
|
+
Expected it to be 'string' or 'object'.`;if(oi(e))throw new Error("doc is valid.");const r=Object.prototype.toString.call(e);if(r!=="[object Object]")return`Unexpected doc '${r}'.`;const n=cT([...bm].map(i=>`'${i}'`));return`Unexpected doc.type '${e.type}'.
|
|
3
|
+
Expected it to be ${n}.`}var pT=class extends Error{constructor(r){super(fT(r));yi(this,"name","InvalidDocError");this.doc=r}},Oi=pT,Uf={};function hT(e,t,r,n){const i=[e];for(;i.length>0;){const s=i.pop();if(s===Uf){r(i.pop());continue}r&&i.push(s,Uf);const a=oi(s);if(!a)throw new Oi(s);if((t==null?void 0:t(s))!==!1)switch(a){case zr:case xn:{const o=a===zr?s:s.parts;for(let u=o.length,l=u-1;l>=0;--l)i.push(o[l]);break}case mr:i.push(s.flatContents,s.breakContents);break;case nr:if(n&&s.expandedStates)for(let o=s.expandedStates.length,u=o-1;u>=0;--u)i.push(s.expandedStates[u]);else i.push(s.contents);break;case Cn:case An:case Fn:case In:case _n:i.push(s.contents);break;case si:case ai:case Pn:case wn:case Ut:case wr:break;default:throw new Oi(s)}}}var rc=hT,dT=()=>{},mT=dT;function io(e){return{type:An,contents:e}}function Ni(e,t){return{type:Cn,contents:t,n:e}}function Tm(e,t={}){return mT(t.expandedStates),{type:nr,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function yT(e){return Ni(Number.NEGATIVE_INFINITY,e)}function DT(e){return Ni({type:"root"},e)}function gT(e){return Ni(-1,e)}function ET(e,t){return Tm(e[0],{...t,expandedStates:e})}function Sm(e){return{type:xn,parts:e}}function bT(e,t="",r={}){return{type:mr,breakContents:e,flatContents:t,groupId:r.groupId}}function TT(e,t){return{type:Fn,contents:e,groupId:t.groupId,negate:t.negate}}function ST(e){return{type:_n,contents:e}}var vT={type:wn},nc={type:wr},AT={type:Pn},ic={type:Ut,hard:!0},vm={type:Ut,hard:!0,literal:!0},CT={type:Ut},PT={type:Ut,soft:!0},xT=[ic,nc],Am=[vm,nc],FT={type:ai};function Cm(e,t){const r=[];for(let n=0;n<t.length;n++)n!==0&&r.push(e),r.push(t[n]);return r}function _T(e,t,r){let n=e;if(t>0){for(let i=0;i<Math.floor(t/r);++i)n=io(n);n=Ni(t%r,n),n=Ni(Number.NEGATIVE_INFINITY,n)}return n}function wT(e,t){return e?{type:In,label:e,contents:t}:t}var IT=(e,t,r)=>{if(!(e&&t==null))return Array.isArray(t)||typeof t=="string"?t[r<0?t.length+r:r]:t.at(r)},yn=IT,OT=(e,t,r,n)=>{if(!(e&&t==null))return t.replaceAll?t.replaceAll(r,n):r.global?t.replace(r,n):t.split(r).join(n)},NT=OT;function BT(e){switch(e){case"cr":return"\r";case"crlf":return`\r
|
|
4
|
+
`;default:return`
|
|
5
|
+
`}}var LT=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC2\uDECE-\uDEDB\uDEE0-\uDEE8]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;function kT(e){return e===12288||e>=65281&&e<=65376||e>=65504&&e<=65510}function RT(e){return e>=4352&&e<=4447||e===8986||e===8987||e===9001||e===9002||e>=9193&&e<=9196||e===9200||e===9203||e===9725||e===9726||e===9748||e===9749||e>=9800&&e<=9811||e===9855||e===9875||e===9889||e===9898||e===9899||e===9917||e===9918||e===9924||e===9925||e===9934||e===9940||e===9962||e===9970||e===9971||e===9973||e===9978||e===9981||e===9989||e===9994||e===9995||e===10024||e===10060||e===10062||e>=10067&&e<=10069||e===10071||e>=10133&&e<=10135||e===10160||e===10175||e===11035||e===11036||e===11088||e===11093||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12287||e>=12289&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12591||e>=12593&&e<=12686||e>=12688&&e<=12771||e>=12783&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=19903||e>=19968&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=94176&&e<=94180||e===94192||e===94193||e>=94208&&e<=100343||e>=100352&&e<=101589||e>=101632&&e<=101640||e>=110576&&e<=110579||e>=110581&&e<=110587||e===110589||e===110590||e>=110592&&e<=110882||e===110898||e>=110928&&e<=110930||e===110933||e>=110948&&e<=110951||e>=110960&&e<=111355||e===126980||e===127183||e===127374||e>=127377&&e<=127386||e>=127488&&e<=127490||e>=127504&&e<=127547||e>=127552&&e<=127560||e===127568||e===127569||e>=127584&&e<=127589||e>=127744&&e<=127776||e>=127789&&e<=127797||e>=127799&&e<=127868||e>=127870&&e<=127891||e>=127904&&e<=127946||e>=127951&&e<=127955||e>=127968&&e<=127984||e===127988||e>=127992&&e<=128062||e===128064||e>=128066&&e<=128252||e>=128255&&e<=128317||e>=128331&&e<=128334||e>=128336&&e<=128359||e===128378||e===128405||e===128406||e===128420||e>=128507&&e<=128591||e>=128640&&e<=128709||e===128716||e>=128720&&e<=128722||e>=128725&&e<=128727||e>=128732&&e<=128735||e===128747||e===128748||e>=128756&&e<=128764||e>=128992&&e<=129003||e===129008||e>=129292&&e<=129338||e>=129340&&e<=129349||e>=129351&&e<=129535||e>=129648&&e<=129660||e>=129664&&e<=129672||e>=129680&&e<=129725||e>=129727&&e<=129733||e>=129742&&e<=129755||e>=129760&&e<=129768||e>=129776&&e<=129784||e>=131072&&e<=196605||e>=196608&&e<=262141}var MT=e=>!(kT(e)||RT(e)),jT=/[^\x20-\x7F]/u;function $T(e){if(!e)return 0;if(!jT.test(e))return e.length;e=e.replace(LT()," ");let t=0;for(const r of e){const n=r.codePointAt(0);n<=31||n>=127&&n<=159||n>=768&&n<=879||(t+=MT(n)?1:2)}return t}var Pm=$T;function vo(e,t){if(typeof e=="string")return t(e);const r=new Map;return n(e);function n(s){if(r.has(s))return r.get(s);const a=i(s);return r.set(s,a),a}function i(s){switch(oi(s)){case zr:return t(s.map(n));case xn:return t({...s,parts:s.parts.map(n)});case mr:return t({...s,breakContents:n(s.breakContents),flatContents:n(s.flatContents)});case nr:{let{expandedStates:a,contents:o}=s;return a?(a=a.map(n),o=a[0]):o=n(o),t({...s,contents:o,expandedStates:a})}case Cn:case An:case Fn:case In:case _n:return t({...s,contents:n(s.contents)});case si:case ai:case Pn:case wn:case Ut:case wr:return t(s);default:throw new Oi(s)}}}function sc(e,t,r){let n=r,i=!1;function s(a){if(i)return!1;const o=t(a);o!==void 0&&(i=!0,n=o)}return rc(e,s),n}function UT(e){if(e.type===nr&&e.break||e.type===Ut&&e.hard||e.type===wr)return!0}function VT(e){return sc(e,UT,!1)}function Vf(e){if(e.length>0){const t=yn(!1,e,-1);!t.expandedStates&&!t.break&&(t.break="propagated")}return null}function qT(e){const t=new Set,r=[];function n(s){if(s.type===wr&&Vf(r),s.type===nr){if(r.push(s),t.has(s))return!1;t.add(s)}}function i(s){s.type===nr&&r.pop().break&&Vf(r)}rc(e,n,i,!0)}function KT(e){return e.type===Ut&&!e.hard?e.soft?"":" ":e.type===mr?e.flatContents:e}function WT(e){return vo(e,KT)}function qf(e){for(e=[...e];e.length>=2&&yn(!1,e,-2).type===Ut&&yn(!1,e,-1).type===wr;)e.length-=2;if(e.length>0){const t=ms(yn(!1,e,-1));e[e.length-1]=t}return e}function ms(e){switch(oi(e)){case An:case Fn:case nr:case _n:case In:{const t=ms(e.contents);return{...e,contents:t}}case mr:return{...e,breakContents:ms(e.breakContents),flatContents:ms(e.flatContents)};case xn:return{...e,parts:qf(e.parts)};case zr:return qf(e);case si:return e.replace(/[\n\r]*$/u,"");case Cn:case ai:case Pn:case wn:case Ut:case wr:break;default:throw new Oi(e)}return e}function HT(e){return ms(YT(e))}function GT(e){switch(oi(e)){case xn:if(e.parts.every(t=>t===""))return"";break;case nr:if(!e.contents&&!e.id&&!e.break&&!e.expandedStates)return"";if(e.contents.type===nr&&e.contents.id===e.id&&e.contents.break===e.break&&e.contents.expandedStates===e.expandedStates)return e.contents;break;case Cn:case An:case Fn:case _n:if(!e.contents)return"";break;case mr:if(!e.flatContents&&!e.breakContents)return"";break;case zr:{const t=[];for(const r of e){if(!r)continue;const[n,...i]=Array.isArray(r)?r:[r];typeof n=="string"&&typeof yn(!1,t,-1)=="string"?t[t.length-1]+=n:t.push(n),t.push(...i)}return t.length===0?"":t.length===1?t[0]:t}case si:case ai:case Pn:case wn:case Ut:case In:case wr:break;default:throw new Oi(e)}return e}function YT(e){return vo(e,t=>GT(t))}function XT(e,t=Am){return vo(e,r=>typeof r=="string"?Cm(t,r.split(`
|
|
6
|
+
`)):r)}function JT(e){if(e.type===Ut)return!0}function zT(e){return sc(e,JT,!1)}var Vt=Symbol("MODE_BREAK"),Ar=Symbol("MODE_FLAT"),ys=Symbol("cursor");function xm(){return{value:"",length:0,queue:[]}}function QT(e,t){return pl(e,{type:"indent"},t)}function ZT(e,t,r){return t===Number.NEGATIVE_INFINITY?e.root||xm():t<0?pl(e,{type:"dedent"},r):t?t.type==="root"?{...e,root:e}:pl(e,{type:typeof t=="string"?"stringAlign":"numberAlign",n:t},r):e}function pl(e,t,r){const n=t.type==="dedent"?e.queue.slice(0,-1):[...e.queue,t];let i="",s=0,a=0,o=0;for(const d of n)switch(d.type){case"indent":c(),r.useTabs?u(1):l(r.tabWidth);break;case"stringAlign":c(),i+=d.n,s+=d.n.length;break;case"numberAlign":a+=1,o+=d.n;break;default:throw new Error(`Unexpected type '${d.type}'`)}return p(),{...e,value:i,length:s,queue:n};function u(d){i+=" ".repeat(d),s+=r.tabWidth*d}function l(d){i+=" ".repeat(d),s+=d}function c(){r.useTabs?f():p()}function f(){a>0&&u(a),h()}function p(){o>0&&l(o),h()}function h(){a=0,o=0}}function hl(e){let t=0,r=0,n=e.length;e:for(;n--;){const i=e[n];if(i===ys){r++;continue}for(let s=i.length-1;s>=0;s--){const a=i[s];if(a===" "||a===" ")t++;else{e[n]=i.slice(0,s+1);break e}}}if(t>0||r>0)for(e.length=n+1;r-- >0;)e.push(ys);return t}function ra(e,t,r,n,i,s){if(r===Number.POSITIVE_INFINITY)return!0;let a=t.length;const o=[e],u=[];for(;r>=0;){if(o.length===0){if(a===0)return!0;o.push(t[--a]);continue}const{mode:l,doc:c}=o.pop(),f=oi(c);switch(f){case si:u.push(c),r-=Pm(c);break;case zr:case xn:{const p=f===zr?c:c.parts;for(let h=p.length-1;h>=0;h--)o.push({mode:l,doc:p[h]});break}case An:case Cn:case Fn:case In:o.push({mode:l,doc:c.contents});break;case Pn:r+=hl(u);break;case nr:{if(s&&c.break)return!1;const p=c.break?Vt:l,h=c.expandedStates&&p===Vt?yn(!1,c.expandedStates,-1):c.contents;o.push({mode:p,doc:h});break}case mr:{const h=(c.groupId?i[c.groupId]||Ar:l)===Vt?c.breakContents:c.flatContents;h&&o.push({mode:l,doc:h});break}case Ut:if(l===Vt||c.hard)return!0;c.soft||(u.push(" "),r--);break;case _n:n=!0;break;case wn:if(n)return!1;break}}return!1}function eS(e,t){const r={},n=t.printWidth,i=BT(t.endOfLine);let s=0;const a=[{ind:xm(),mode:Vt,doc:e}],o=[];let u=!1;const l=[];let c=0;for(qT(e);a.length>0;){const{ind:p,mode:h,doc:d}=a.pop();switch(oi(d)){case si:{const m=i!==`
|
|
7
|
+
`?NT(!1,d,`
|
|
8
|
+
`,i):d;o.push(m),a.length>0&&(s+=Pm(m));break}case zr:for(let m=d.length-1;m>=0;m--)a.push({ind:p,mode:h,doc:d[m]});break;case ai:if(c>=2)throw new Error("There are too many 'cursor' in doc.");o.push(ys),c++;break;case An:a.push({ind:QT(p,t),mode:h,doc:d.contents});break;case Cn:a.push({ind:ZT(p,d.n,t),mode:h,doc:d.contents});break;case Pn:s-=hl(o);break;case nr:switch(h){case Ar:if(!u){a.push({ind:p,mode:d.break?Vt:Ar,doc:d.contents});break}case Vt:{u=!1;const m={ind:p,mode:Ar,doc:d.contents},D=n-s,g=l.length>0;if(!d.break&&ra(m,a,D,g,r))a.push(m);else if(d.expandedStates){const y=yn(!1,d.expandedStates,-1);if(d.break){a.push({ind:p,mode:Vt,doc:y});break}else for(let b=1;b<d.expandedStates.length+1;b++)if(b>=d.expandedStates.length){a.push({ind:p,mode:Vt,doc:y});break}else{const O=d.expandedStates[b],C={ind:p,mode:Ar,doc:O};if(ra(C,a,D,g,r)){a.push(C);break}}}else a.push({ind:p,mode:Vt,doc:d.contents});break}}d.id&&(r[d.id]=yn(!1,a,-1).mode);break;case xn:{const m=n-s,{parts:D}=d;if(D.length===0)break;const[g,y]=D,b={ind:p,mode:Ar,doc:g},O={ind:p,mode:Vt,doc:g},C=ra(b,[],m,l.length>0,r,!0);if(D.length===1){C?a.push(b):a.push(O);break}const $={ind:p,mode:Ar,doc:y},w={ind:p,mode:Vt,doc:y};if(D.length===2){C?a.push($,b):a.push(w,O);break}D.splice(0,2);const P={ind:p,mode:h,doc:Sm(D)},I=D[0];ra({ind:p,mode:Ar,doc:[g,y,I]},[],m,l.length>0,r,!0)?a.push(P,$,b):C?a.push(P,w,b):a.push(P,w,O);break}case mr:case Fn:{const m=d.groupId?r[d.groupId]:h;if(m===Vt){const D=d.type===mr?d.breakContents:d.negate?d.contents:io(d.contents);D&&a.push({ind:p,mode:h,doc:D})}if(m===Ar){const D=d.type===mr?d.flatContents:d.negate?io(d.contents):d.contents;D&&a.push({ind:p,mode:h,doc:D})}break}case _n:l.push({ind:p,mode:h,doc:d.contents});break;case wn:l.length>0&&a.push({ind:p,mode:h,doc:ic});break;case Ut:switch(h){case Ar:if(d.hard)u=!0;else{d.soft||(o.push(" "),s+=1);break}case Vt:if(l.length>0){a.push({ind:p,mode:h,doc:d},...l.reverse()),l.length=0;break}d.literal?p.root?(o.push(i,p.root.value),s=p.root.length):(o.push(i),s=0):(s-=hl(o),o.push(i+p.value),s=p.length);break}break;case In:a.push({ind:p,mode:h,doc:d.contents});break;case wr:break;default:throw new Oi(d)}a.length===0&&l.length>0&&(a.push(...l.reverse()),l.length=0)}const f=o.indexOf(ys);if(f!==-1){const p=o.indexOf(ys,f+1),h=o.slice(0,f).join(""),d=o.slice(f+1,p).join(""),m=o.slice(p+1).join("");return{formatted:h+d+m,cursorNodeStart:h.length,cursorNodeText:d}}return{formatted:o.join("")}}var Fm={join:Cm,line:CT,softline:PT,hardline:xT,literalline:Am,group:Tm,conditionalGroup:ET,fill:Sm,lineSuffix:ST,lineSuffixBoundary:vT,cursor:FT,breakParent:nc,ifBreak:bT,trim:AT,indent:io,indentIfBreak:TT,align:Ni,addAlignmentToDoc:_T,markAsRoot:DT,dedentToRoot:yT,dedent:gT,hardlineWithoutBreakParent:ic,literallineWithoutBreakParent:vm,label:wT,concat:e=>e},_m={printDocToString:eS},wm={willBreak:VT,traverseDoc:rc,findInDoc:sc,mapDoc:vo,removeLines:WT,stripTrailingHardline:HT,replaceEndOfLine:XT,canBreak:zT},tS=Em;const rS=Object.freeze(Object.defineProperty({__proto__:null,builders:Fm,default:tS,printer:_m,utils:wm},Symbol.toStringTag,{value:"Module"})),Di=Ns.createRequire(typeof document>"u"?require("url").pathToFileURL(__filename).href:ro&&ro.src||new URL("vite-plugin-soon-client.cjs",document.baseURI).href),nS=xe.fileURLToPath(typeof document>"u"?require("url").pathToFileURL(__filename).href:ro&&ro.src||new URL("vite-plugin-soon-client.cjs",document.baseURI).href);rt.dirname(nS);var iS=Object.create,Bs=Object.defineProperty,sS=Object.getOwnPropertyDescriptor,ac=Object.getOwnPropertyNames,aS=Object.getPrototypeOf,oS=Object.prototype.hasOwnProperty,Im=e=>{throw TypeError(e)},uS=(e,t,r)=>t in e?Bs(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ot=(e=>typeof Di<"u"?Di:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof Di<"u"?Di:t)[r]}):e)(function(e){if(typeof Di<"u")return Di.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')}),Ao=(e,t)=>function(){return e&&(t=(0,e[ac(e)[0]])(e=0)),t},he=(e,t)=>function(){return t||(0,e[ac(e)[0]])((t={exports:{}}).exports,t),t.exports},Ri=(e,t)=>{for(var r in t)Bs(e,r,{get:t[r],enumerable:!0})},Om=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of ac(t))!oS.call(e,i)&&i!==r&&Bs(e,i,{get:()=>t[i],enumerable:!(n=sS(t,i))||n.enumerable});return e},Zr=(e,t,r)=>(r=e!=null?iS(aS(e)):{},Om(Bs(r,"default",{value:e,enumerable:!0}),e)),lS=e=>Om(Bs({},"__esModule",{value:!0}),e),na=(e,t,r)=>uS(e,typeof t!="symbol"?t+"":t,r),oc=(e,t,r)=>t.has(e)||Im("Cannot "+r),ti=(e,t,r)=>(oc(e,t,"read from private field"),t.get(e)),Qn=(e,t,r)=>t.has(e)?Im("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),Ds=(e,t,r,n)=>(oc(e,t,"write to private field"),t.set(e,r),r),bi=(e,t,r)=>(oc(e,t,"access private method"),r),cS=he({"node_modules/fast-glob/out/utils/array.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.splitWhen=e.flatten=void 0;function t(n){return n.reduce((i,s)=>[].concat(i,s),[])}e.flatten=t;function r(n,i){const s=[[]];let a=0;for(const o of n)i(o)?(a++,s[a]=[]):s[a].push(o);return s}e.splitWhen=r}}),fS=he({"node_modules/fast-glob/out/utils/errno.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isEnoentCodeError=void 0;function t(r){return r.code==="ENOENT"}e.isEnoentCodeError=t}}),pS=he({"node_modules/fast-glob/out/utils/fs.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.createDirentFromStats=void 0;var t=class{constructor(n,i){this.name=n,this.isBlockDevice=i.isBlockDevice.bind(i),this.isCharacterDevice=i.isCharacterDevice.bind(i),this.isDirectory=i.isDirectory.bind(i),this.isFIFO=i.isFIFO.bind(i),this.isFile=i.isFile.bind(i),this.isSocket=i.isSocket.bind(i),this.isSymbolicLink=i.isSymbolicLink.bind(i)}};function r(n,i){return new t(n,i)}e.createDirentFromStats=r}}),hS=he({"node_modules/fast-glob/out/utils/path.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.convertPosixPathToPattern=e.convertWindowsPathToPattern=e.convertPathToPattern=e.escapePosixPath=e.escapeWindowsPath=e.escape=e.removeLeadingDotSegment=e.makeAbsolute=e.unixify=void 0;var t=ot("os"),r=ot("path"),n=t.platform()==="win32",i=2,s=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\()|\\(?![!()*+?@[\]{|}]))/g,a=/(\\?)([()[\]{}]|^!|[!+@](?=\())/g,o=/^\\\\([.?])/,u=/\\(?![!()+@[\]{}])/g;function l(D){return D.replace(/\\/g,"/")}e.unixify=l;function c(D,g){return r.resolve(D,g)}e.makeAbsolute=c;function f(D){if(D.charAt(0)==="."){const g=D.charAt(1);if(g==="/"||g==="\\")return D.slice(i)}return D}e.removeLeadingDotSegment=f,e.escape=n?p:h;function p(D){return D.replace(a,"\\$2")}e.escapeWindowsPath=p;function h(D){return D.replace(s,"\\$2")}e.escapePosixPath=h,e.convertPathToPattern=n?d:m;function d(D){return p(D).replace(o,"//$1").replace(u,"/")}e.convertWindowsPathToPattern=d;function m(D){return h(D)}e.convertPosixPathToPattern=m}}),dS=he({"node_modules/is-extglob/index.js"(e,t){t.exports=function(n){if(typeof n!="string"||n==="")return!1;for(var i;i=/(\\).|([@?!+*]\(.*\))/g.exec(n);){if(i[2])return!0;n=n.slice(i.index+i[0].length)}return!1}}}),mS=he({"node_modules/is-glob/index.js"(e,t){var r=dS(),n={"{":"}","(":")","[":"]"},i=function(a){if(a[0]==="!")return!0;for(var o=0,u=-2,l=-2,c=-2,f=-2,p=-2;o<a.length;){if(a[o]==="*"||a[o+1]==="?"&&/[\].+)]/.test(a[o])||l!==-1&&a[o]==="["&&a[o+1]!=="]"&&(l<o&&(l=a.indexOf("]",o)),l>o&&(p===-1||p>l||(p=a.indexOf("\\",o),p===-1||p>l)))||c!==-1&&a[o]==="{"&&a[o+1]!=="}"&&(c=a.indexOf("}",o),c>o&&(p=a.indexOf("\\",o),p===-1||p>c))||f!==-1&&a[o]==="("&&a[o+1]==="?"&&/[:!=]/.test(a[o+2])&&a[o+3]!==")"&&(f=a.indexOf(")",o),f>o&&(p=a.indexOf("\\",o),p===-1||p>f))||u!==-1&&a[o]==="("&&a[o+1]!=="|"&&(u<o&&(u=a.indexOf("|",o)),u!==-1&&a[u+1]!==")"&&(f=a.indexOf(")",u),f>u&&(p=a.indexOf("\\",u),p===-1||p>f))))return!0;if(a[o]==="\\"){var h=a[o+1];o+=2;var d=n[h];if(d){var m=a.indexOf(d,o);m!==-1&&(o=m+1)}if(a[o]==="!")return!0}else o++}return!1},s=function(a){if(a[0]==="!")return!0;for(var o=0;o<a.length;){if(/[*?{}()[\]]/.test(a[o]))return!0;if(a[o]==="\\"){var u=a[o+1];o+=2;var l=n[u];if(l){var c=a.indexOf(l,o);c!==-1&&(o=c+1)}if(a[o]==="!")return!0}else o++}return!1};t.exports=function(o,u){if(typeof o!="string"||o==="")return!1;if(r(o))return!0;var l=i;return u&&u.strict===!1&&(l=s),l(o)}}}),yS=he({"node_modules/glob-parent/index.js"(e,t){var r=mS(),n=ot("path").posix.dirname,i=ot("os").platform()==="win32",s="/",a=/\\/g,o=/[\{\[].*[\}\]]$/,u=/(^|[^\\])([\{\[]|\([^\)]+$)/,l=/\\([\!\*\?\|\[\]\(\)\{\}])/g;t.exports=function(f,p){var h=Object.assign({flipBackslashes:!0},p);h.flipBackslashes&&i&&f.indexOf(s)<0&&(f=f.replace(a,s)),o.test(f)&&(f+=s),f+="a";do f=n(f);while(r(f)||u.test(f));return f.replace(l,"$1")}}}),uc=he({"node_modules/braces/lib/utils.js"(e){e.isInteger=t=>typeof t=="number"?Number.isInteger(t):typeof t=="string"&&t.trim()!==""?Number.isInteger(Number(t)):!1,e.find=(t,r)=>t.nodes.find(n=>n.type===r),e.exceedsLimit=(t,r,n=1,i)=>i===!1||!e.isInteger(t)||!e.isInteger(r)?!1:(Number(r)-Number(t))/Number(n)>=i,e.escapeNode=(t,r=0,n)=>{const i=t.nodes[r];i&&(n&&i.type===n||i.type==="open"||i.type==="close")&&i.escaped!==!0&&(i.value="\\"+i.value,i.escaped=!0)},e.encloseBrace=t=>t.type!=="brace"||t.commas>>0+t.ranges>>0?!1:(t.invalid=!0,!0),e.isInvalidBrace=t=>t.type!=="brace"?!1:t.invalid===!0||t.dollar?!0:!(t.commas>>0+t.ranges>>0)||t.open!==!0||t.close!==!0?(t.invalid=!0,!0):!1,e.isOpenOrClose=t=>t.type==="open"||t.type==="close"?!0:t.open===!0||t.close===!0,e.reduce=t=>t.reduce((r,n)=>(n.type==="text"&&r.push(n.value),n.type==="range"&&(n.type="text"),r),[]),e.flatten=(...t)=>{const r=[],n=i=>{for(let s=0;s<i.length;s++){const a=i[s];if(Array.isArray(a)){n(a);continue}a!==void 0&&r.push(a)}return r};return n(t),r}}}),lc=he({"node_modules/braces/lib/stringify.js"(e,t){var r=uc();t.exports=(n,i={})=>{const s=(a,o={})=>{const u=i.escapeInvalid&&r.isInvalidBrace(o),l=a.invalid===!0&&i.escapeInvalid===!0;let c="";if(a.value)return(u||l)&&r.isOpenOrClose(a)?"\\"+a.value:a.value;if(a.value)return a.value;if(a.nodes)for(const f of a.nodes)c+=s(f);return c};return s(n)}}}),DS=he({"node_modules/is-number/index.js"(e,t){t.exports=function(r){return typeof r=="number"?r-r===0:typeof r=="string"&&r.trim()!==""?Number.isFinite?Number.isFinite(+r):isFinite(+r):!1}}}),gS=he({"node_modules/to-regex-range/index.js"(e,t){var r=DS(),n=(y,b,O)=>{if(r(y)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(b===void 0||y===b)return String(y);if(r(b)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let C={relaxZeros:!0,...O};typeof C.strictZeros=="boolean"&&(C.relaxZeros=C.strictZeros===!1);let $=String(C.relaxZeros),w=String(C.shorthand),P=String(C.capture),I=String(C.wrap),L=y+":"+b+"="+$+w+P+I;if(n.cache.hasOwnProperty(L))return n.cache[L].result;let F=Math.min(y,b),S=Math.max(y,b);if(Math.abs(F-S)===1){let H=y+"|"+b;return C.capture?`(${H})`:C.wrap===!1?H:`(?:${H})`}let A=D(y)||D(b),B={min:y,max:b,a:F,b:S},x=[],N=[];if(A&&(B.isPadded=A,B.maxLen=String(B.max).length),F<0){let H=S<0?Math.abs(S):1;N=o(H,Math.abs(F),B,C),F=B.a=0}return S>=0&&(x=o(F,S,B,C)),B.negatives=N,B.positives=x,B.result=i(N,x),C.capture===!0?B.result=`(${B.result})`:C.wrap!==!1&&x.length+N.length>1&&(B.result=`(?:${B.result})`),n.cache[L]=B,B.result};function i(y,b,O){let C=u(y,b,"-",!1)||[],$=u(b,y,"",!1)||[],w=u(y,b,"-?",!0)||[];return C.concat(w).concat($).join("|")}function s(y,b){let O=1,C=1,$=p(y,O),w=new Set([b]);for(;y<=$&&$<=b;)w.add($),O+=1,$=p(y,O);for($=h(b+1,C)-1;y<$&&$<=b;)w.add($),C+=1,$=h(b+1,C)-1;return w=[...w],w.sort(c),w}function a(y,b,O){if(y===b)return{pattern:y,count:[],digits:0};let C=l(y,b),$=C.length,w="",P=0;for(let I=0;I<$;I++){let[L,F]=C[I];L===F?w+=L:L!=="0"||F!=="9"?w+=m(L,F):P++}return P&&(w+=O.shorthand===!0?"\\d":"[0-9]"),{pattern:w,count:[P],digits:$}}function o(y,b,O,C){let $=s(y,b),w=[],P=y,I;for(let L=0;L<$.length;L++){let F=$[L],S=a(String(P),String(F),C),A="";if(!O.isPadded&&I&&I.pattern===S.pattern){I.count.length>1&&I.count.pop(),I.count.push(S.count[0]),I.string=I.pattern+d(I.count),P=F+1;continue}O.isPadded&&(A=g(F,O,C)),S.string=A+S.pattern+d(S.count),w.push(S),P=F+1,I=S}return w}function u(y,b,O,C,$){let w=[];for(let P of y){let{string:I}=P;!C&&!f(b,"string",I)&&w.push(O+I),C&&f(b,"string",I)&&w.push(O+I)}return w}function l(y,b){let O=[];for(let C=0;C<y.length;C++)O.push([y[C],b[C]]);return O}function c(y,b){return y>b?1:b>y?-1:0}function f(y,b,O){return y.some(C=>C[b]===O)}function p(y,b){return Number(String(y).slice(0,-b)+"9".repeat(b))}function h(y,b){return y-y%Math.pow(10,b)}function d(y){let[b=0,O=""]=y;return O||b>1?`{${b+(O?","+O:"")}}`:""}function m(y,b,O){return`[${y}${b-y===1?"":"-"}${b}]`}function D(y){return/^-?(0+)\d/.test(y)}function g(y,b,O){if(!b.isPadded)return y;let C=Math.abs(b.maxLen-String(y).length),$=O.relaxZeros!==!1;switch(C){case 0:return"";case 1:return $?"0?":"0";case 2:return $?"0{0,2}":"00";default:return $?`0{0,${C}}`:`0{${C}}`}}n.cache={},n.clearCache=()=>n.cache={},t.exports=n}}),Nm=he({"node_modules/fill-range/index.js"(e,t){var r=ot("util"),n=gS(),i=C=>C!==null&&typeof C=="object"&&!Array.isArray(C),s=C=>$=>C===!0?Number($):String($),a=C=>typeof C=="number"||typeof C=="string"&&C!=="",o=C=>Number.isInteger(+C),u=C=>{let $=`${C}`,w=-1;if($[0]==="-"&&($=$.slice(1)),$==="0")return!1;for(;$[++w]==="0";);return w>0},l=(C,$,w)=>typeof C=="string"||typeof $=="string"?!0:w.stringify===!0,c=(C,$,w)=>{if($>0){let P=C[0]==="-"?"-":"";P&&(C=C.slice(1)),C=P+C.padStart(P?$-1:$,"0")}return w===!1?String(C):C},f=(C,$)=>{let w=C[0]==="-"?"-":"";for(w&&(C=C.slice(1),$--);C.length<$;)C="0"+C;return w?"-"+C:C},p=(C,$,w)=>{C.negatives.sort((S,A)=>S<A?-1:S>A?1:0),C.positives.sort((S,A)=>S<A?-1:S>A?1:0);let P=$.capture?"":"?:",I="",L="",F;return C.positives.length&&(I=C.positives.map(S=>f(String(S),w)).join("|")),C.negatives.length&&(L=`-(${P}${C.negatives.map(S=>f(String(S),w)).join("|")})`),I&&L?F=`${I}|${L}`:F=I||L,$.wrap?`(${P}${F})`:F},h=(C,$,w,P)=>{if(w)return n(C,$,{wrap:!1,...P});let I=String.fromCharCode(C);if(C===$)return I;let L=String.fromCharCode($);return`[${I}-${L}]`},d=(C,$,w)=>{if(Array.isArray(C)){let P=w.wrap===!0,I=w.capture?"":"?:";return P?`(${I}${C.join("|")})`:C.join("|")}return n(C,$,w)},m=(...C)=>new RangeError("Invalid range arguments: "+r.inspect(...C)),D=(C,$,w)=>{if(w.strictRanges===!0)throw m([C,$]);return[]},g=(C,$)=>{if($.strictRanges===!0)throw new TypeError(`Expected step "${C}" to be a number`);return[]},y=(C,$,w=1,P={})=>{let I=Number(C),L=Number($);if(!Number.isInteger(I)||!Number.isInteger(L)){if(P.strictRanges===!0)throw m([C,$]);return[]}I===0&&(I=0),L===0&&(L=0);let F=I>L,S=String(C),A=String($),B=String(w);w=Math.max(Math.abs(w),1);let x=u(S)||u(A)||u(B),N=x?Math.max(S.length,A.length,B.length):0,H=x===!1&&l(C,$,P)===!1,T=P.transform||s(H);if(P.toRegex&&w===1)return h(f(C,N),f($,N),!0,P);let _={negatives:[],positives:[]},R=X=>_[X<0?"negatives":"positives"].push(Math.abs(X)),Q=[],ne=0;for(;F?I>=L:I<=L;)P.toRegex===!0&&w>1?R(I):Q.push(c(T(I,ne),N,H)),I=F?I-w:I+w,ne++;return P.toRegex===!0?w>1?p(_,P,N):d(Q,null,{wrap:!1,...P}):Q},b=(C,$,w=1,P={})=>{if(!o(C)&&C.length>1||!o($)&&$.length>1)return D(C,$,P);let I=P.transform||(H=>String.fromCharCode(H)),L=`${C}`.charCodeAt(0),F=`${$}`.charCodeAt(0),S=L>F,A=Math.min(L,F),B=Math.max(L,F);if(P.toRegex&&w===1)return h(A,B,!1,P);let x=[],N=0;for(;S?L>=F:L<=F;)x.push(I(L,N)),L=S?L-w:L+w,N++;return P.toRegex===!0?d(x,null,{wrap:!1,options:P}):x},O=(C,$,w,P={})=>{if($==null&&a(C))return[C];if(!a(C)||!a($))return D(C,$,P);if(typeof w=="function")return O(C,$,1,{transform:w});if(i(w))return O(C,$,0,w);let I={...P};return I.capture===!0&&(I.wrap=!0),w=w||I.step||1,o(w)?o(C)&&o($)?y(C,$,w,I):b(C,$,Math.max(Math.abs(w),1),I):w!=null&&!i(w)?g(w,I):O(C,$,1,w)};t.exports=O}}),ES=he({"node_modules/braces/lib/compile.js"(e,t){var r=Nm(),n=uc(),i=(s,a={})=>{const o=(u,l={})=>{const c=n.isInvalidBrace(l),f=u.invalid===!0&&a.escapeInvalid===!0,p=c===!0||f===!0,h=a.escapeInvalid===!0?"\\":"";let d="";if(u.isOpen===!0)return h+u.value;if(u.isClose===!0)return console.log("node.isClose",h,u.value),h+u.value;if(u.type==="open")return p?h+u.value:"(";if(u.type==="close")return p?h+u.value:")";if(u.type==="comma")return u.prev.type==="comma"?"":p?u.value:"|";if(u.value)return u.value;if(u.nodes&&u.ranges>0){const m=n.reduce(u.nodes),D=r(...m,{...a,wrap:!1,toRegex:!0,strictZeros:!0});if(D.length!==0)return m.length>1&&D.length>1?`(${D})`:D}if(u.nodes)for(const m of u.nodes)d+=o(m,u);return d};return o(s)};t.exports=i}}),bS=he({"node_modules/braces/lib/expand.js"(e,t){var r=Nm(),n=lc(),i=uc(),s=(o="",u="",l=!1)=>{const c=[];if(o=[].concat(o),u=[].concat(u),!u.length)return o;if(!o.length)return l?i.flatten(u).map(f=>`{${f}}`):u;for(const f of o)if(Array.isArray(f))for(const p of f)c.push(s(p,u,l));else for(let p of u)l===!0&&typeof p=="string"&&(p=`{${p}}`),c.push(Array.isArray(p)?s(f,p,l):f+p);return i.flatten(c)},a=(o,u={})=>{const l=u.rangeLimit===void 0?1e3:u.rangeLimit,c=(f,p={})=>{f.queue=[];let h=p,d=p.queue;for(;h.type!=="brace"&&h.type!=="root"&&h.parent;)h=h.parent,d=h.queue;if(f.invalid||f.dollar){d.push(s(d.pop(),n(f,u)));return}if(f.type==="brace"&&f.invalid!==!0&&f.nodes.length===2){d.push(s(d.pop(),["{}"]));return}if(f.nodes&&f.ranges>0){const y=i.reduce(f.nodes);if(i.exceedsLimit(...y,u.step,l))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let b=r(...y,u);b.length===0&&(b=n(f,u)),d.push(s(d.pop(),b)),f.nodes=[];return}const m=i.encloseBrace(f);let D=f.queue,g=f;for(;g.type!=="brace"&&g.type!=="root"&&g.parent;)g=g.parent,D=g.queue;for(let y=0;y<f.nodes.length;y++){const b=f.nodes[y];if(b.type==="comma"&&f.type==="brace"){y===1&&D.push(""),D.push("");continue}if(b.type==="close"){d.push(s(d.pop(),D,m));continue}if(b.value&&b.type!=="open"){D.push(s(D.pop(),b.value));continue}b.nodes&&c(b,f)}return D};return i.flatten(c(o))};t.exports=a}}),TS=he({"node_modules/braces/lib/constants.js"(e,t){t.exports={MAX_LENGTH:1e4,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:`
|
|
9
|
+
`,CHAR_NO_BREAK_SPACE:" ",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}}}),SS=he({"node_modules/braces/lib/parse.js"(e,t){var r=lc(),{MAX_LENGTH:n,CHAR_BACKSLASH:i,CHAR_BACKTICK:s,CHAR_COMMA:a,CHAR_DOT:o,CHAR_LEFT_PARENTHESES:u,CHAR_RIGHT_PARENTHESES:l,CHAR_LEFT_CURLY_BRACE:c,CHAR_RIGHT_CURLY_BRACE:f,CHAR_LEFT_SQUARE_BRACKET:p,CHAR_RIGHT_SQUARE_BRACKET:h,CHAR_DOUBLE_QUOTE:d,CHAR_SINGLE_QUOTE:m,CHAR_NO_BREAK_SPACE:D,CHAR_ZERO_WIDTH_NOBREAK_SPACE:g}=TS(),y=(b,O={})=>{if(typeof b!="string")throw new TypeError("Expected a string");const C=O||{},$=typeof C.maxLength=="number"?Math.min(n,C.maxLength):n;if(b.length>$)throw new SyntaxError(`Input length (${b.length}), exceeds max characters (${$})`);const w={type:"root",input:b,nodes:[]},P=[w];let I=w,L=w,F=0;const S=b.length;let A=0,B=0,x;const N=()=>b[A++],H=T=>{if(T.type==="text"&&L.type==="dot"&&(L.type="text"),L&&L.type==="text"&&T.type==="text"){L.value+=T.value;return}return I.nodes.push(T),T.parent=I,T.prev=L,L=T,T};for(H({type:"bos"});A<S;)if(I=P[P.length-1],x=N(),!(x===g||x===D)){if(x===i){H({type:"text",value:(O.keepEscaping?x:"")+N()});continue}if(x===h){H({type:"text",value:"\\"+x});continue}if(x===p){F++;let T;for(;A<S&&(T=N());){if(x+=T,T===p){F++;continue}if(T===i){x+=N();continue}if(T===h&&(F--,F===0))break}H({type:"text",value:x});continue}if(x===u){I=H({type:"paren",nodes:[]}),P.push(I),H({type:"text",value:x});continue}if(x===l){if(I.type!=="paren"){H({type:"text",value:x});continue}I=P.pop(),H({type:"text",value:x}),I=P[P.length-1];continue}if(x===d||x===m||x===s){const T=x;let _;for(O.keepQuotes!==!0&&(x="");A<S&&(_=N());){if(_===i){x+=_+N();continue}if(_===T){O.keepQuotes===!0&&(x+=_);break}x+=_}H({type:"text",value:x});continue}if(x===c){B++;const _={type:"brace",open:!0,close:!1,dollar:L.value&&L.value.slice(-1)==="$"||I.dollar===!0,depth:B,commas:0,ranges:0,nodes:[]};I=H(_),P.push(I),H({type:"open",value:x});continue}if(x===f){if(I.type!=="brace"){H({type:"text",value:x});continue}const T="close";I=P.pop(),I.close=!0,H({type:T,value:x}),B--,I=P[P.length-1];continue}if(x===a&&B>0){if(I.ranges>0){I.ranges=0;const T=I.nodes.shift();I.nodes=[T,{type:"text",value:r(I)}]}H({type:"comma",value:x}),I.commas++;continue}if(x===o&&B>0&&I.commas===0){const T=I.nodes;if(B===0||T.length===0){H({type:"text",value:x});continue}if(L.type==="dot"){if(I.range=[],L.value+=x,L.type="range",I.nodes.length!==3&&I.nodes.length!==5){I.invalid=!0,I.ranges=0,L.type="text";continue}I.ranges++,I.args=[];continue}if(L.type==="range"){T.pop();const _=T[T.length-1];_.value+=L.value+x,L=_,I.ranges--;continue}H({type:"dot",value:x});continue}H({type:"text",value:x})}do if(I=P.pop(),I.type!=="root"){I.nodes.forEach(R=>{R.nodes||(R.type==="open"&&(R.isOpen=!0),R.type==="close"&&(R.isClose=!0),R.nodes||(R.type="text"),R.invalid=!0)});const T=P[P.length-1],_=T.nodes.indexOf(I);T.nodes.splice(_,1,...I.nodes)}while(P.length>0);return H({type:"eos"}),w};t.exports=y}}),vS=he({"node_modules/braces/index.js"(e,t){var r=lc(),n=ES(),i=bS(),s=SS(),a=(o,u={})=>{let l=[];if(Array.isArray(o))for(const c of o){const f=a.create(c,u);Array.isArray(f)?l.push(...f):l.push(f)}else l=[].concat(a.create(o,u));return u&&u.expand===!0&&u.nodupes===!0&&(l=[...new Set(l)]),l};a.parse=(o,u={})=>s(o,u),a.stringify=(o,u={})=>r(typeof o=="string"?a.parse(o,u):o,u),a.compile=(o,u={})=>(typeof o=="string"&&(o=a.parse(o,u)),n(o,u)),a.expand=(o,u={})=>{typeof o=="string"&&(o=a.parse(o,u));let l=i(o,u);return u.noempty===!0&&(l=l.filter(Boolean)),u.nodupes===!0&&(l=[...new Set(l)]),l},a.create=(o,u={})=>o===""||o.length<3?[o]:u.expand!==!0?a.compile(o,u):a.expand(o,u),t.exports=a}}),Co=he({"node_modules/picomatch/lib/constants.js"(e,t){var r=ot("path"),n="\\\\/",i=`[^${n}]`,s="\\.",a="\\+",o="\\?",u="\\/",l="(?=.)",c="[^/]",f=`(?:${u}|$)`,p=`(?:^|${u})`,h=`${s}{1,2}${f}`,d=`(?!${s})`,m=`(?!${p}${h})`,D=`(?!${s}{0,1}${f})`,g=`(?!${h})`,y=`[^.${u}]`,b=`${c}*?`,O={DOT_LITERAL:s,PLUS_LITERAL:a,QMARK_LITERAL:o,SLASH_LITERAL:u,ONE_CHAR:l,QMARK:c,END_ANCHOR:f,DOTS_SLASH:h,NO_DOT:d,NO_DOTS:m,NO_DOT_SLASH:D,NO_DOTS_SLASH:g,QMARK_NO_DOT:y,STAR:b,START_ANCHOR:p},C={...O,SLASH_LITERAL:`[${n}]`,QMARK:i,STAR:`${i}*?`,DOTS_SLASH:`${s}{1,2}(?:[${n}]|$)`,NO_DOT:`(?!${s})`,NO_DOTS:`(?!(?:^|[${n}])${s}{1,2}(?:[${n}]|$))`,NO_DOT_SLASH:`(?!${s}{0,1}(?:[${n}]|$))`,NO_DOTS_SLASH:`(?!${s}{1,2}(?:[${n}]|$))`,QMARK_NO_DOT:`[^.${n}]`,START_ANCHOR:`(?:^|[${n}])`,END_ANCHOR:`(?:[${n}]|$)`},$={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};t.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:$,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:r.sep,extglobChars(w){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${w.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(w){return w===!0?C:O}}}}),Po=he({"node_modules/picomatch/lib/utils.js"(e){var t=ot("path"),r=process.platform==="win32",{REGEX_BACKSLASH:n,REGEX_REMOVE_BACKSLASH:i,REGEX_SPECIAL_CHARS:s,REGEX_SPECIAL_CHARS_GLOBAL:a}=Co();e.isObject=o=>o!==null&&typeof o=="object"&&!Array.isArray(o),e.hasRegexChars=o=>s.test(o),e.isRegexChar=o=>o.length===1&&e.hasRegexChars(o),e.escapeRegex=o=>o.replace(a,"\\$1"),e.toPosixSlashes=o=>o.replace(n,"/"),e.removeBackslashes=o=>o.replace(i,u=>u==="\\"?"":u),e.supportsLookbehinds=()=>{const o=process.version.slice(1).split(".").map(Number);return o.length===3&&o[0]>=9||o[0]===8&&o[1]>=10},e.isWindows=o=>o&&typeof o.windows=="boolean"?o.windows:r===!0||t.sep==="\\",e.escapeLast=(o,u,l)=>{const c=o.lastIndexOf(u,l);return c===-1?o:o[c-1]==="\\"?e.escapeLast(o,u,c-1):`${o.slice(0,c)}\\${o.slice(c)}`},e.removePrefix=(o,u={})=>{let l=o;return l.startsWith("./")&&(l=l.slice(2),u.prefix="./"),l},e.wrapOutput=(o,u={},l={})=>{const c=l.contains?"":"^",f=l.contains?"":"$";let p=`${c}(?:${o})${f}`;return u.negated===!0&&(p=`(?:^(?!${p}).*$)`),p}}}),AS=he({"node_modules/picomatch/lib/scan.js"(e,t){var r=Po(),{CHAR_ASTERISK:n,CHAR_AT:i,CHAR_BACKWARD_SLASH:s,CHAR_COMMA:a,CHAR_DOT:o,CHAR_EXCLAMATION_MARK:u,CHAR_FORWARD_SLASH:l,CHAR_LEFT_CURLY_BRACE:c,CHAR_LEFT_PARENTHESES:f,CHAR_LEFT_SQUARE_BRACKET:p,CHAR_PLUS:h,CHAR_QUESTION_MARK:d,CHAR_RIGHT_CURLY_BRACE:m,CHAR_RIGHT_PARENTHESES:D,CHAR_RIGHT_SQUARE_BRACKET:g}=Co(),y=C=>C===l||C===s,b=C=>{C.isPrefix!==!0&&(C.depth=C.isGlobstar?1/0:1)},O=(C,$)=>{const w=$||{},P=C.length-1,I=w.parts===!0||w.scanToEnd===!0,L=[],F=[],S=[];let A=C,B=-1,x=0,N=0,H=!1,T=!1,_=!1,R=!1,Q=!1,ne=!1,X=!1,ae=!1,ie=!1,te=!1,Y=0,re,De,de={value:"",depth:0,isGlob:!1};const Ce=()=>B>=P,Oe=()=>A.charCodeAt(B+1),Te=()=>(re=De,A.charCodeAt(++B));for(;B<P;){De=Te();let ge;if(De===s){X=de.backslashes=!0,De=Te(),De===c&&(ne=!0);continue}if(ne===!0||De===c){for(Y++;Ce()!==!0&&(De=Te());){if(De===s){X=de.backslashes=!0,Te();continue}if(De===c){Y++;continue}if(ne!==!0&&De===o&&(De=Te())===o){if(H=de.isBrace=!0,_=de.isGlob=!0,te=!0,I===!0)continue;break}if(ne!==!0&&De===a){if(H=de.isBrace=!0,_=de.isGlob=!0,te=!0,I===!0)continue;break}if(De===m&&(Y--,Y===0)){ne=!1,H=de.isBrace=!0,te=!0;break}}if(I===!0)continue;break}if(De===l){if(L.push(B),F.push(de),de={value:"",depth:0,isGlob:!1},te===!0)continue;if(re===o&&B===x+1){x+=2;continue}N=B+1;continue}if(w.noext!==!0&&(De===h||De===i||De===n||De===d||De===u)===!0&&Oe()===f){if(_=de.isGlob=!0,R=de.isExtglob=!0,te=!0,De===u&&B===x&&(ie=!0),I===!0){for(;Ce()!==!0&&(De=Te());){if(De===s){X=de.backslashes=!0,De=Te();continue}if(De===D){_=de.isGlob=!0,te=!0;break}}continue}break}if(De===n){if(re===n&&(Q=de.isGlobstar=!0),_=de.isGlob=!0,te=!0,I===!0)continue;break}if(De===d){if(_=de.isGlob=!0,te=!0,I===!0)continue;break}if(De===p){for(;Ce()!==!0&&(ge=Te());){if(ge===s){X=de.backslashes=!0,Te();continue}if(ge===g){T=de.isBracket=!0,_=de.isGlob=!0,te=!0;break}}if(I===!0)continue;break}if(w.nonegate!==!0&&De===u&&B===x){ae=de.negated=!0,x++;continue}if(w.noparen!==!0&&De===f){if(_=de.isGlob=!0,I===!0){for(;Ce()!==!0&&(De=Te());){if(De===f){X=de.backslashes=!0,De=Te();continue}if(De===D){te=!0;break}}continue}break}if(_===!0){if(te=!0,I===!0)continue;break}}w.noext===!0&&(R=!1,_=!1);let Be=A,ze="",_e="";x>0&&(ze=A.slice(0,x),A=A.slice(x),N-=x),Be&&_===!0&&N>0?(Be=A.slice(0,N),_e=A.slice(N)):_===!0?(Be="",_e=A):Be=A,Be&&Be!==""&&Be!=="/"&&Be!==A&&y(Be.charCodeAt(Be.length-1))&&(Be=Be.slice(0,-1)),w.unescape===!0&&(_e&&(_e=r.removeBackslashes(_e)),Be&&X===!0&&(Be=r.removeBackslashes(Be)));const Ne={prefix:ze,input:C,start:x,base:Be,glob:_e,isBrace:H,isBracket:T,isGlob:_,isExtglob:R,isGlobstar:Q,negated:ae,negatedExtglob:ie};if(w.tokens===!0&&(Ne.maxDepth=0,y(De)||F.push(de),Ne.tokens=F),w.parts===!0||w.tokens===!0){let ge;for(let Ae=0;Ae<L.length;Ae++){const st=ge?ge+1:x,fe=L[Ae],Ue=C.slice(st,fe);w.tokens&&(Ae===0&&x!==0?(F[Ae].isPrefix=!0,F[Ae].value=ze):F[Ae].value=Ue,b(F[Ae]),Ne.maxDepth+=F[Ae].depth),(Ae!==0||Ue!=="")&&S.push(Ue),ge=fe}if(ge&&ge+1<C.length){const Ae=C.slice(ge+1);S.push(Ae),w.tokens&&(F[F.length-1].value=Ae,b(F[F.length-1]),Ne.maxDepth+=F[F.length-1].depth)}Ne.slashes=L,Ne.parts=S}return Ne};t.exports=O}}),CS=he({"node_modules/picomatch/lib/parse.js"(e,t){var r=Co(),n=Po(),{MAX_LENGTH:i,POSIX_REGEX_SOURCE:s,REGEX_NON_SPECIAL_CHARS:a,REGEX_SPECIAL_CHARS_BACKREF:o,REPLACEMENTS:u}=r,l=(p,h)=>{if(typeof h.expandRange=="function")return h.expandRange(...p,h);p.sort();const d=`[${p.join("-")}]`;try{new RegExp(d)}catch{return p.map(D=>n.escapeRegex(D)).join("..")}return d},c=(p,h)=>`Missing ${p}: "${h}" - use "\\\\${h}" to match literal characters`,f=(p,h)=>{if(typeof p!="string")throw new TypeError("Expected a string");p=u[p]||p;const d={...h},m=typeof d.maxLength=="number"?Math.min(i,d.maxLength):i;let D=p.length;if(D>m)throw new SyntaxError(`Input length: ${D}, exceeds maximum allowed length: ${m}`);const g={type:"bos",value:"",output:d.prepend||""},y=[g],b=d.capture?"":"?:",O=n.isWindows(h),C=r.globChars(O),$=r.extglobChars(C),{DOT_LITERAL:w,PLUS_LITERAL:P,SLASH_LITERAL:I,ONE_CHAR:L,DOTS_SLASH:F,NO_DOT:S,NO_DOT_SLASH:A,NO_DOTS_SLASH:B,QMARK:x,QMARK_NO_DOT:N,STAR:H,START_ANCHOR:T}=C,_=fe=>`(${b}(?:(?!${T}${fe.dot?F:w}).)*?)`,R=d.dot?"":S,Q=d.dot?x:N;let ne=d.bash===!0?_(d):H;d.capture&&(ne=`(${ne})`),typeof d.noext=="boolean"&&(d.noextglob=d.noext);const X={input:p,index:-1,start:0,dot:d.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:y};p=n.removePrefix(p,X),D=p.length;const ae=[],ie=[],te=[];let Y=g,re;const De=()=>X.index===D-1,de=X.peek=(fe=1)=>p[X.index+fe],Ce=X.advance=()=>p[++X.index]||"",Oe=()=>p.slice(X.index+1),Te=(fe="",Ue=0)=>{X.consumed+=fe,X.index+=Ue},Be=fe=>{X.output+=fe.output!=null?fe.output:fe.value,Te(fe.value)},ze=()=>{let fe=1;for(;de()==="!"&&(de(2)!=="("||de(3)==="?");)Ce(),X.start++,fe++;return fe%2===0?!1:(X.negated=!0,X.start++,!0)},_e=fe=>{X[fe]++,te.push(fe)},Ne=fe=>{X[fe]--,te.pop()},ge=fe=>{if(Y.type==="globstar"){const Ue=X.braces>0&&(fe.type==="comma"||fe.type==="brace"),Z=fe.extglob===!0||ae.length&&(fe.type==="pipe"||fe.type==="paren");fe.type!=="slash"&&fe.type!=="paren"&&!Ue&&!Z&&(X.output=X.output.slice(0,-Y.output.length),Y.type="star",Y.value="*",Y.output=ne,X.output+=Y.output)}if(ae.length&&fe.type!=="paren"&&(ae[ae.length-1].inner+=fe.value),(fe.value||fe.output)&&Be(fe),Y&&Y.type==="text"&&fe.type==="text"){Y.value+=fe.value,Y.output=(Y.output||"")+fe.value;return}fe.prev=Y,y.push(fe),Y=fe},Ae=(fe,Ue)=>{const Z={...$[Ue],conditions:1,inner:""};Z.prev=Y,Z.parens=X.parens,Z.output=X.output;const G=(d.capture?"(":"")+Z.open;_e("parens"),ge({type:fe,value:Ue,output:X.output?"":L}),ge({type:"paren",extglob:!0,value:Ce(),output:G}),ae.push(Z)},st=fe=>{let Ue=fe.close+(d.capture?")":""),Z;if(fe.type==="negate"){let G=ne;if(fe.inner&&fe.inner.length>1&&fe.inner.includes("/")&&(G=_(d)),(G!==ne||De()||/^\)+$/.test(Oe()))&&(Ue=fe.close=`)$))${G}`),fe.inner.includes("*")&&(Z=Oe())&&/^\.[^\\/.]+$/.test(Z)){const V=f(Z,{...h,fastpaths:!1}).output;Ue=fe.close=`)${V})${G})`}fe.prev.type==="bos"&&(X.negatedExtglob=!0)}ge({type:"paren",extglob:!0,value:re,output:Ue}),Ne("parens")};if(d.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(p)){let fe=!1,Ue=p.replace(o,(Z,G,V,E,j,z)=>E==="\\"?(fe=!0,Z):E==="?"?G?G+E+(j?x.repeat(j.length):""):z===0?Q+(j?x.repeat(j.length):""):x.repeat(V.length):E==="."?w.repeat(V.length):E==="*"?G?G+E+(j?ne:""):ne:G?Z:`\\${Z}`);return fe===!0&&(d.unescape===!0?Ue=Ue.replace(/\\/g,""):Ue=Ue.replace(/\\+/g,Z=>Z.length%2===0?"\\\\":Z?"\\":"")),Ue===p&&d.contains===!0?(X.output=p,X):(X.output=n.wrapOutput(Ue,X,h),X)}for(;!De();){if(re=Ce(),re==="\0")continue;if(re==="\\"){const Z=de();if(Z==="/"&&d.bash!==!0||Z==="."||Z===";")continue;if(!Z){re+="\\",ge({type:"text",value:re});continue}const G=/^\\+/.exec(Oe());let V=0;if(G&&G[0].length>2&&(V=G[0].length,X.index+=V,V%2!==0&&(re+="\\")),d.unescape===!0?re=Ce():re+=Ce(),X.brackets===0){ge({type:"text",value:re});continue}}if(X.brackets>0&&(re!=="]"||Y.value==="["||Y.value==="[^")){if(d.posix!==!1&&re===":"){const Z=Y.value.slice(1);if(Z.includes("[")&&(Y.posix=!0,Z.includes(":"))){const G=Y.value.lastIndexOf("["),V=Y.value.slice(0,G),E=Y.value.slice(G+2),j=s[E];if(j){Y.value=V+j,X.backtrack=!0,Ce(),!g.output&&y.indexOf(Y)===1&&(g.output=L);continue}}}(re==="["&&de()!==":"||re==="-"&&de()==="]")&&(re=`\\${re}`),re==="]"&&(Y.value==="["||Y.value==="[^")&&(re=`\\${re}`),d.posix===!0&&re==="!"&&Y.value==="["&&(re="^"),Y.value+=re,Be({value:re});continue}if(X.quotes===1&&re!=='"'){re=n.escapeRegex(re),Y.value+=re,Be({value:re});continue}if(re==='"'){X.quotes=X.quotes===1?0:1,d.keepQuotes===!0&&ge({type:"text",value:re});continue}if(re==="("){_e("parens"),ge({type:"paren",value:re});continue}if(re===")"){if(X.parens===0&&d.strictBrackets===!0)throw new SyntaxError(c("opening","("));const Z=ae[ae.length-1];if(Z&&X.parens===Z.parens+1){st(ae.pop());continue}ge({type:"paren",value:re,output:X.parens?")":"\\)"}),Ne("parens");continue}if(re==="["){if(d.nobracket===!0||!Oe().includes("]")){if(d.nobracket!==!0&&d.strictBrackets===!0)throw new SyntaxError(c("closing","]"));re=`\\${re}`}else _e("brackets");ge({type:"bracket",value:re});continue}if(re==="]"){if(d.nobracket===!0||Y&&Y.type==="bracket"&&Y.value.length===1){ge({type:"text",value:re,output:`\\${re}`});continue}if(X.brackets===0){if(d.strictBrackets===!0)throw new SyntaxError(c("opening","["));ge({type:"text",value:re,output:`\\${re}`});continue}Ne("brackets");const Z=Y.value.slice(1);if(Y.posix!==!0&&Z[0]==="^"&&!Z.includes("/")&&(re=`/${re}`),Y.value+=re,Be({value:re}),d.literalBrackets===!1||n.hasRegexChars(Z))continue;const G=n.escapeRegex(Y.value);if(X.output=X.output.slice(0,-Y.value.length),d.literalBrackets===!0){X.output+=G,Y.value=G;continue}Y.value=`(${b}${G}|${Y.value})`,X.output+=Y.value;continue}if(re==="{"&&d.nobrace!==!0){_e("braces");const Z={type:"brace",value:re,output:"(",outputIndex:X.output.length,tokensIndex:X.tokens.length};ie.push(Z),ge(Z);continue}if(re==="}"){const Z=ie[ie.length-1];if(d.nobrace===!0||!Z){ge({type:"text",value:re,output:re});continue}let G=")";if(Z.dots===!0){const V=y.slice(),E=[];for(let j=V.length-1;j>=0&&(y.pop(),V[j].type!=="brace");j--)V[j].type!=="dots"&&E.unshift(V[j].value);G=l(E,d),X.backtrack=!0}if(Z.comma!==!0&&Z.dots!==!0){const V=X.output.slice(0,Z.outputIndex),E=X.tokens.slice(Z.tokensIndex);Z.value=Z.output="\\{",re=G="\\}",X.output=V;for(const j of E)X.output+=j.output||j.value}ge({type:"brace",value:re,output:G}),Ne("braces"),ie.pop();continue}if(re==="|"){ae.length>0&&ae[ae.length-1].conditions++,ge({type:"text",value:re});continue}if(re===","){let Z=re;const G=ie[ie.length-1];G&&te[te.length-1]==="braces"&&(G.comma=!0,Z="|"),ge({type:"comma",value:re,output:Z});continue}if(re==="/"){if(Y.type==="dot"&&X.index===X.start+1){X.start=X.index+1,X.consumed="",X.output="",y.pop(),Y=g;continue}ge({type:"slash",value:re,output:I});continue}if(re==="."){if(X.braces>0&&Y.type==="dot"){Y.value==="."&&(Y.output=w);const Z=ie[ie.length-1];Y.type="dots",Y.output+=re,Y.value+=re,Z.dots=!0;continue}if(X.braces+X.parens===0&&Y.type!=="bos"&&Y.type!=="slash"){ge({type:"text",value:re,output:w});continue}ge({type:"dot",value:re,output:w});continue}if(re==="?"){if(!(Y&&Y.value==="(")&&d.noextglob!==!0&&de()==="("&&de(2)!=="?"){Ae("qmark",re);continue}if(Y&&Y.type==="paren"){const G=de();let V=re;if(G==="<"&&!n.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(Y.value==="("&&!/[!=<:]/.test(G)||G==="<"&&!/<([!=]|\w+>)/.test(Oe()))&&(V=`\\${re}`),ge({type:"text",value:re,output:V});continue}if(d.dot!==!0&&(Y.type==="slash"||Y.type==="bos")){ge({type:"qmark",value:re,output:N});continue}ge({type:"qmark",value:re,output:x});continue}if(re==="!"){if(d.noextglob!==!0&&de()==="("&&(de(2)!=="?"||!/[!=<:]/.test(de(3)))){Ae("negate",re);continue}if(d.nonegate!==!0&&X.index===0){ze();continue}}if(re==="+"){if(d.noextglob!==!0&&de()==="("&&de(2)!=="?"){Ae("plus",re);continue}if(Y&&Y.value==="("||d.regex===!1){ge({type:"plus",value:re,output:P});continue}if(Y&&(Y.type==="bracket"||Y.type==="paren"||Y.type==="brace")||X.parens>0){ge({type:"plus",value:re});continue}ge({type:"plus",value:P});continue}if(re==="@"){if(d.noextglob!==!0&&de()==="("&&de(2)!=="?"){ge({type:"at",extglob:!0,value:re,output:""});continue}ge({type:"text",value:re});continue}if(re!=="*"){(re==="$"||re==="^")&&(re=`\\${re}`);const Z=a.exec(Oe());Z&&(re+=Z[0],X.index+=Z[0].length),ge({type:"text",value:re});continue}if(Y&&(Y.type==="globstar"||Y.star===!0)){Y.type="star",Y.star=!0,Y.value+=re,Y.output=ne,X.backtrack=!0,X.globstar=!0,Te(re);continue}let fe=Oe();if(d.noextglob!==!0&&/^\([^?]/.test(fe)){Ae("star",re);continue}if(Y.type==="star"){if(d.noglobstar===!0){Te(re);continue}const Z=Y.prev,G=Z.prev,V=Z.type==="slash"||Z.type==="bos",E=G&&(G.type==="star"||G.type==="globstar");if(d.bash===!0&&(!V||fe[0]&&fe[0]!=="/")){ge({type:"star",value:re,output:""});continue}const j=X.braces>0&&(Z.type==="comma"||Z.type==="brace"),z=ae.length&&(Z.type==="pipe"||Z.type==="paren");if(!V&&Z.type!=="paren"&&!j&&!z){ge({type:"star",value:re,output:""});continue}for(;fe.slice(0,3)==="/**";){const se=p[X.index+4];if(se&&se!=="/")break;fe=fe.slice(3),Te("/**",3)}if(Z.type==="bos"&&De()){Y.type="globstar",Y.value+=re,Y.output=_(d),X.output=Y.output,X.globstar=!0,Te(re);continue}if(Z.type==="slash"&&Z.prev.type!=="bos"&&!E&&De()){X.output=X.output.slice(0,-(Z.output+Y.output).length),Z.output=`(?:${Z.output}`,Y.type="globstar",Y.output=_(d)+(d.strictSlashes?")":"|$)"),Y.value+=re,X.globstar=!0,X.output+=Z.output+Y.output,Te(re);continue}if(Z.type==="slash"&&Z.prev.type!=="bos"&&fe[0]==="/"){const se=fe[1]!==void 0?"|$":"";X.output=X.output.slice(0,-(Z.output+Y.output).length),Z.output=`(?:${Z.output}`,Y.type="globstar",Y.output=`${_(d)}${I}|${I}${se})`,Y.value+=re,X.output+=Z.output+Y.output,X.globstar=!0,Te(re+Ce()),ge({type:"slash",value:"/",output:""});continue}if(Z.type==="bos"&&fe[0]==="/"){Y.type="globstar",Y.value+=re,Y.output=`(?:^|${I}|${_(d)}${I})`,X.output=Y.output,X.globstar=!0,Te(re+Ce()),ge({type:"slash",value:"/",output:""});continue}X.output=X.output.slice(0,-Y.output.length),Y.type="globstar",Y.output=_(d),Y.value+=re,X.output+=Y.output,X.globstar=!0,Te(re);continue}const Ue={type:"star",value:re,output:ne};if(d.bash===!0){Ue.output=".*?",(Y.type==="bos"||Y.type==="slash")&&(Ue.output=R+Ue.output),ge(Ue);continue}if(Y&&(Y.type==="bracket"||Y.type==="paren")&&d.regex===!0){Ue.output=re,ge(Ue);continue}(X.index===X.start||Y.type==="slash"||Y.type==="dot")&&(Y.type==="dot"?(X.output+=A,Y.output+=A):d.dot===!0?(X.output+=B,Y.output+=B):(X.output+=R,Y.output+=R),de()!=="*"&&(X.output+=L,Y.output+=L)),ge(Ue)}for(;X.brackets>0;){if(d.strictBrackets===!0)throw new SyntaxError(c("closing","]"));X.output=n.escapeLast(X.output,"["),Ne("brackets")}for(;X.parens>0;){if(d.strictBrackets===!0)throw new SyntaxError(c("closing",")"));X.output=n.escapeLast(X.output,"("),Ne("parens")}for(;X.braces>0;){if(d.strictBrackets===!0)throw new SyntaxError(c("closing","}"));X.output=n.escapeLast(X.output,"{"),Ne("braces")}if(d.strictSlashes!==!0&&(Y.type==="star"||Y.type==="bracket")&&ge({type:"maybe_slash",value:"",output:`${I}?`}),X.backtrack===!0){X.output="";for(const fe of X.tokens)X.output+=fe.output!=null?fe.output:fe.value,fe.suffix&&(X.output+=fe.suffix)}return X};f.fastpaths=(p,h)=>{const d={...h},m=typeof d.maxLength=="number"?Math.min(i,d.maxLength):i,D=p.length;if(D>m)throw new SyntaxError(`Input length: ${D}, exceeds maximum allowed length: ${m}`);p=u[p]||p;const g=n.isWindows(h),{DOT_LITERAL:y,SLASH_LITERAL:b,ONE_CHAR:O,DOTS_SLASH:C,NO_DOT:$,NO_DOTS:w,NO_DOTS_SLASH:P,STAR:I,START_ANCHOR:L}=r.globChars(g),F=d.dot?w:$,S=d.dot?P:$,A=d.capture?"":"?:",B={negated:!1,prefix:""};let x=d.bash===!0?".*?":I;d.capture&&(x=`(${x})`);const N=R=>R.noglobstar===!0?x:`(${A}(?:(?!${L}${R.dot?C:y}).)*?)`,H=R=>{switch(R){case"*":return`${F}${O}${x}`;case".*":return`${y}${O}${x}`;case"*.*":return`${F}${x}${y}${O}${x}`;case"*/*":return`${F}${x}${b}${O}${S}${x}`;case"**":return F+N(d);case"**/*":return`(?:${F}${N(d)}${b})?${S}${O}${x}`;case"**/*.*":return`(?:${F}${N(d)}${b})?${S}${x}${y}${O}${x}`;case"**/.*":return`(?:${F}${N(d)}${b})?${y}${O}${x}`;default:{const Q=/^(.*?)\.(\w+)$/.exec(R);if(!Q)return;const ne=H(Q[1]);return ne?ne+y+Q[2]:void 0}}},T=n.removePrefix(p,B);let _=H(T);return _&&d.strictSlashes!==!0&&(_+=`${b}?`),_},t.exports=f}}),PS=he({"node_modules/picomatch/lib/picomatch.js"(e,t){var r=ot("path"),n=AS(),i=CS(),s=Po(),a=Co(),o=l=>l&&typeof l=="object"&&!Array.isArray(l),u=(l,c,f=!1)=>{if(Array.isArray(l)){const b=l.map(C=>u(C,c,f));return C=>{for(const $ of b){const w=$(C);if(w)return w}return!1}}const p=o(l)&&l.tokens&&l.input;if(l===""||typeof l!="string"&&!p)throw new TypeError("Expected pattern to be a non-empty string");const h=c||{},d=s.isWindows(c),m=p?u.compileRe(l,c):u.makeRe(l,c,!1,!0),D=m.state;delete m.state;let g=()=>!1;if(h.ignore){const b={...c,ignore:null,onMatch:null,onResult:null};g=u(h.ignore,b,f)}const y=(b,O=!1)=>{const{isMatch:C,match:$,output:w}=u.test(b,m,c,{glob:l,posix:d}),P={glob:l,state:D,regex:m,posix:d,input:b,output:w,match:$,isMatch:C};return typeof h.onResult=="function"&&h.onResult(P),C===!1?(P.isMatch=!1,O?P:!1):g(b)?(typeof h.onIgnore=="function"&&h.onIgnore(P),P.isMatch=!1,O?P:!1):(typeof h.onMatch=="function"&&h.onMatch(P),O?P:!0)};return f&&(y.state=D),y};u.test=(l,c,f,{glob:p,posix:h}={})=>{if(typeof l!="string")throw new TypeError("Expected input to be a string");if(l==="")return{isMatch:!1,output:""};const d=f||{},m=d.format||(h?s.toPosixSlashes:null);let D=l===p,g=D&&m?m(l):l;return D===!1&&(g=m?m(l):l,D=g===p),(D===!1||d.capture===!0)&&(d.matchBase===!0||d.basename===!0?D=u.matchBase(l,c,f,h):D=c.exec(g)),{isMatch:!!D,match:D,output:g}},u.matchBase=(l,c,f,p=s.isWindows(f))=>(c instanceof RegExp?c:u.makeRe(c,f)).test(r.basename(l)),u.isMatch=(l,c,f)=>u(c,f)(l),u.parse=(l,c)=>Array.isArray(l)?l.map(f=>u.parse(f,c)):i(l,{...c,fastpaths:!1}),u.scan=(l,c)=>n(l,c),u.compileRe=(l,c,f=!1,p=!1)=>{if(f===!0)return l.output;const h=c||{},d=h.contains?"":"^",m=h.contains?"":"$";let D=`${d}(?:${l.output})${m}`;l&&l.negated===!0&&(D=`^(?!${D}).*$`);const g=u.toRegex(D,c);return p===!0&&(g.state=l),g},u.makeRe=(l,c={},f=!1,p=!1)=>{if(!l||typeof l!="string")throw new TypeError("Expected a non-empty string");let h={negated:!1,fastpaths:!0};return c.fastpaths!==!1&&(l[0]==="."||l[0]==="*")&&(h.output=i.fastpaths(l,c)),h.output||(h=i(l,c)),u.compileRe(h,c,f,p)},u.toRegex=(l,c)=>{try{const f=c||{};return new RegExp(l,f.flags||(f.nocase?"i":""))}catch(f){if(c&&c.debug===!0)throw f;return/$^/}},u.constants=a,t.exports=u}}),xS=he({"node_modules/picomatch/index.js"(e,t){t.exports=PS()}}),Bm=he({"node_modules/micromatch/index.js"(e,t){var r=ot("util"),n=vS(),i=xS(),s=Po(),a=u=>u===""||u==="./",o=(u,l,c)=>{l=[].concat(l),u=[].concat(u);let f=new Set,p=new Set,h=new Set,d=0,m=y=>{h.add(y.output),c&&c.onResult&&c.onResult(y)};for(let y=0;y<l.length;y++){let b=i(String(l[y]),{...c,onResult:m},!0),O=b.state.negated||b.state.negatedExtglob;O&&d++;for(let C of u){let $=b(C,!0);(O?!$.isMatch:$.isMatch)&&(O?f.add($.output):(f.delete($.output),p.add($.output)))}}let g=(d===l.length?[...h]:[...p]).filter(y=>!f.has(y));if(c&&g.length===0){if(c.failglob===!0)throw new Error(`No matches found for "${l.join(", ")}"`);if(c.nonull===!0||c.nullglob===!0)return c.unescape?l.map(y=>y.replace(/\\/g,"")):l}return g};o.match=o,o.matcher=(u,l)=>i(u,l),o.isMatch=(u,l,c)=>i(l,c)(u),o.any=o.isMatch,o.not=(u,l,c={})=>{l=[].concat(l).map(String);let f=new Set,p=[],h=m=>{c.onResult&&c.onResult(m),p.push(m.output)},d=new Set(o(u,l,{...c,onResult:h}));for(let m of p)d.has(m)||f.add(m);return[...f]},o.contains=(u,l,c)=>{if(typeof u!="string")throw new TypeError(`Expected a string: "${r.inspect(u)}"`);if(Array.isArray(l))return l.some(f=>o.contains(u,f,c));if(typeof l=="string"){if(a(u)||a(l))return!1;if(u.includes(l)||u.startsWith("./")&&u.slice(2).includes(l))return!0}return o.isMatch(u,l,{...c,contains:!0})},o.matchKeys=(u,l,c)=>{if(!s.isObject(u))throw new TypeError("Expected the first argument to be an object");let f=o(Object.keys(u),l,c),p={};for(let h of f)p[h]=u[h];return p},o.some=(u,l,c)=>{let f=[].concat(u);for(let p of[].concat(l)){let h=i(String(p),c);if(f.some(d=>h(d)))return!0}return!1},o.every=(u,l,c)=>{let f=[].concat(u);for(let p of[].concat(l)){let h=i(String(p),c);if(!f.every(d=>h(d)))return!1}return!0},o.all=(u,l,c)=>{if(typeof u!="string")throw new TypeError(`Expected a string: "${r.inspect(u)}"`);return[].concat(l).every(f=>i(f,c)(u))},o.capture=(u,l,c)=>{let f=s.isWindows(c),h=i.makeRe(String(u),{...c,capture:!0}).exec(f?s.toPosixSlashes(l):l);if(h)return h.slice(1).map(d=>d===void 0?"":d)},o.makeRe=(...u)=>i.makeRe(...u),o.scan=(...u)=>i.scan(...u),o.parse=(u,l)=>{let c=[];for(let f of[].concat(u||[]))for(let p of n(String(f),l))c.push(i.parse(p,l));return c},o.braces=(u,l)=>{if(typeof u!="string")throw new TypeError("Expected a string");return l&&l.nobrace===!0||!/\{.*\}/.test(u)?[u]:n(u,l)},o.braceExpand=(u,l)=>{if(typeof u!="string")throw new TypeError("Expected a string");return o.braces(u,{...l,expand:!0})},t.exports=o}}),FS=he({"node_modules/fast-glob/out/utils/pattern.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.removeDuplicateSlashes=e.matchAny=e.convertPatternsToRe=e.makeRe=e.getPatternParts=e.expandBraceExpansion=e.expandPatternsWithBraceExpansion=e.isAffectDepthOfReadingPattern=e.endsWithSlashGlobStar=e.hasGlobStar=e.getBaseDirectory=e.isPatternRelatedToParentDirectory=e.getPatternsOutsideCurrentDirectory=e.getPatternsInsideCurrentDirectory=e.getPositivePatterns=e.getNegativePatterns=e.isPositivePattern=e.isNegativePattern=e.convertToNegativePattern=e.convertToPositivePattern=e.isDynamicPattern=e.isStaticPattern=void 0;var t=ot("path"),r=yS(),n=Bm(),i="**",s="\\",a=/[*?]|^!/,o=/\[[^[]*]/,u=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,l=/[!*+?@]\([^(]*\)/,c=/,|\.\./,f=/(?!^)\/{2,}/g;function p(_,R={}){return!h(_,R)}e.isStaticPattern=p;function h(_,R={}){return _===""?!1:!!(R.caseSensitiveMatch===!1||_.includes(s)||a.test(_)||o.test(_)||u.test(_)||R.extglob!==!1&&l.test(_)||R.braceExpansion!==!1&&d(_))}e.isDynamicPattern=h;function d(_){const R=_.indexOf("{");if(R===-1)return!1;const Q=_.indexOf("}",R+1);if(Q===-1)return!1;const ne=_.slice(R,Q);return c.test(ne)}function m(_){return g(_)?_.slice(1):_}e.convertToPositivePattern=m;function D(_){return"!"+_}e.convertToNegativePattern=D;function g(_){return _.startsWith("!")&&_[1]!=="("}e.isNegativePattern=g;function y(_){return!g(_)}e.isPositivePattern=y;function b(_){return _.filter(g)}e.getNegativePatterns=b;function O(_){return _.filter(y)}e.getPositivePatterns=O;function C(_){return _.filter(R=>!w(R))}e.getPatternsInsideCurrentDirectory=C;function $(_){return _.filter(w)}e.getPatternsOutsideCurrentDirectory=$;function w(_){return _.startsWith("..")||_.startsWith("./..")}e.isPatternRelatedToParentDirectory=w;function P(_){return r(_,{flipBackslashes:!1})}e.getBaseDirectory=P;function I(_){return _.includes(i)}e.hasGlobStar=I;function L(_){return _.endsWith("/"+i)}e.endsWithSlashGlobStar=L;function F(_){const R=t.basename(_);return L(_)||p(R)}e.isAffectDepthOfReadingPattern=F;function S(_){return _.reduce((R,Q)=>R.concat(A(Q)),[])}e.expandPatternsWithBraceExpansion=S;function A(_){const R=n.braces(_,{expand:!0,nodupes:!0,keepEscaping:!0});return R.sort((Q,ne)=>Q.length-ne.length),R.filter(Q=>Q!=="")}e.expandBraceExpansion=A;function B(_,R){let{parts:Q}=n.scan(_,Object.assign(Object.assign({},R),{parts:!0}));return Q.length===0&&(Q=[_]),Q[0].startsWith("/")&&(Q[0]=Q[0].slice(1),Q.unshift("")),Q}e.getPatternParts=B;function x(_,R){return n.makeRe(_,R)}e.makeRe=x;function N(_,R){return _.map(Q=>x(Q,R))}e.convertPatternsToRe=N;function H(_,R){return R.some(Q=>Q.test(_))}e.matchAny=H;function T(_){return _.replace(f,"/")}e.removeDuplicateSlashes=T}}),_S=he({"node_modules/merge2/index.js"(e,t){var r=ot("stream"),n=r.PassThrough,i=Array.prototype.slice;t.exports=s;function s(){const o=[],u=i.call(arguments);let l=!1,c=u[u.length-1];c&&!Array.isArray(c)&&c.pipe==null?u.pop():c={};const f=c.end!==!1,p=c.pipeError===!0;c.objectMode==null&&(c.objectMode=!0),c.highWaterMark==null&&(c.highWaterMark=64*1024);const h=n(c);function d(){for(let g=0,y=arguments.length;g<y;g++)o.push(a(arguments[g],c));return m(),this}function m(){if(l)return;l=!0;let g=o.shift();if(!g){process.nextTick(D);return}Array.isArray(g)||(g=[g]);let y=g.length+1;function b(){--y>0||(l=!1,m())}function O(C){function $(){C.removeListener("merge2UnpipeEnd",$),C.removeListener("end",$),p&&C.removeListener("error",w),b()}function w(P){h.emit("error",P)}if(C._readableState.endEmitted)return b();C.on("merge2UnpipeEnd",$),C.on("end",$),p&&C.on("error",w),C.pipe(h,{end:!1}),C.resume()}for(let C=0;C<g.length;C++)O(g[C]);b()}function D(){l=!1,h.emit("queueDrain"),f&&h.end()}return h.setMaxListeners(0),h.add=d,h.on("unpipe",function(g){g.emit("merge2UnpipeEnd")}),u.length&&d.apply(null,u),h}function a(o,u){if(Array.isArray(o))for(let l=0,c=o.length;l<c;l++)o[l]=a(o[l],u);else{if(!o._readableState&&o.pipe&&(o=o.pipe(n(u))),!o._readableState||!o.pause||!o.pipe)throw new Error("Only readable stream can be merged.");o.pause()}return o}}}),wS=he({"node_modules/fast-glob/out/utils/stream.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.merge=void 0;var t=_S();function r(i){const s=t(i);return i.forEach(a=>{a.once("error",o=>s.emit("error",o))}),s.once("close",()=>n(i)),s.once("end",()=>n(i)),s}e.merge=r;function n(i){i.forEach(s=>s.emit("close"))}}}),IS=he({"node_modules/fast-glob/out/utils/string.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isEmpty=e.isString=void 0;function t(n){return typeof n=="string"}e.isString=t;function r(n){return n===""}e.isEmpty=r}}),On=he({"node_modules/fast-glob/out/utils/index.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.string=e.stream=e.pattern=e.path=e.fs=e.errno=e.array=void 0;var t=cS();e.array=t;var r=fS();e.errno=r;var n=pS();e.fs=n;var i=hS();e.path=i;var s=FS();e.pattern=s;var a=wS();e.stream=a;var o=IS();e.string=o}}),OS=he({"node_modules/fast-glob/out/managers/tasks.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.convertPatternGroupToTask=e.convertPatternGroupsToTasks=e.groupPatternsByBaseDirectory=e.getNegativePatternsAsPositive=e.getPositivePatterns=e.convertPatternsToTasks=e.generate=void 0;var t=On();function r(c,f){const p=n(c,f),h=n(f.ignore,f),d=s(p),m=a(p,h),D=d.filter(O=>t.pattern.isStaticPattern(O,f)),g=d.filter(O=>t.pattern.isDynamicPattern(O,f)),y=i(D,m,!1),b=i(g,m,!0);return y.concat(b)}e.generate=r;function n(c,f){let p=c;return f.braceExpansion&&(p=t.pattern.expandPatternsWithBraceExpansion(p)),f.baseNameMatch&&(p=p.map(h=>h.includes("/")?h:`**/${h}`)),p.map(h=>t.pattern.removeDuplicateSlashes(h))}function i(c,f,p){const h=[],d=t.pattern.getPatternsOutsideCurrentDirectory(c),m=t.pattern.getPatternsInsideCurrentDirectory(c),D=o(d),g=o(m);return h.push(...u(D,f,p)),"."in g?h.push(l(".",m,f,p)):h.push(...u(g,f,p)),h}e.convertPatternsToTasks=i;function s(c){return t.pattern.getPositivePatterns(c)}e.getPositivePatterns=s;function a(c,f){return t.pattern.getNegativePatterns(c).concat(f).map(t.pattern.convertToPositivePattern)}e.getNegativePatternsAsPositive=a;function o(c){const f={};return c.reduce((p,h)=>{const d=t.pattern.getBaseDirectory(h);return d in p?p[d].push(h):p[d]=[h],p},f)}e.groupPatternsByBaseDirectory=o;function u(c,f,p){return Object.keys(c).map(h=>l(h,c[h],f,p))}e.convertPatternGroupsToTasks=u;function l(c,f,p,h){return{dynamic:h,positive:f,negative:p,base:c,patterns:[].concat(f,p.map(t.pattern.convertToNegativePattern))}}e.convertPatternGroupToTask=l}}),NS=he({"node_modules/@nodelib/fs.stat/out/providers/async.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.read=void 0;function t(i,s,a){s.fs.lstat(i,(o,u)=>{if(o!==null){r(a,o);return}if(!u.isSymbolicLink()||!s.followSymbolicLink){n(a,u);return}s.fs.stat(i,(l,c)=>{if(l!==null){if(s.throwErrorOnBrokenSymbolicLink){r(a,l);return}n(a,u);return}s.markSymbolicLink&&(c.isSymbolicLink=()=>!0),n(a,c)})})}e.read=t;function r(i,s){i(s)}function n(i,s){i(null,s)}}}),BS=he({"node_modules/@nodelib/fs.stat/out/providers/sync.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.read=void 0;function t(r,n){const i=n.fs.lstatSync(r);if(!i.isSymbolicLink()||!n.followSymbolicLink)return i;try{const s=n.fs.statSync(r);return n.markSymbolicLink&&(s.isSymbolicLink=()=>!0),s}catch(s){if(!n.throwErrorOnBrokenSymbolicLink)return i;throw s}}e.read=t}}),LS=he({"node_modules/@nodelib/fs.stat/out/adapters/fs.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.createFileSystemAdapter=e.FILE_SYSTEM_ADAPTER=void 0;var t=ot("fs");e.FILE_SYSTEM_ADAPTER={lstat:t.lstat,stat:t.stat,lstatSync:t.lstatSync,statSync:t.statSync};function r(n){return n===void 0?e.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},e.FILE_SYSTEM_ADAPTER),n)}e.createFileSystemAdapter=r}}),kS=he({"node_modules/@nodelib/fs.stat/out/settings.js"(e){Object.defineProperty(e,"__esModule",{value:!0});var t=LS(),r=class{constructor(n={}){this._options=n,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=t.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(n,i){return n??i}};e.default=r}}),Mi=he({"node_modules/@nodelib/fs.stat/out/index.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.statSync=e.stat=e.Settings=void 0;var t=NS(),r=BS(),n=kS();e.Settings=n.default;function i(o,u,l){if(typeof u=="function"){t.read(o,a(),u);return}t.read(o,a(u),l)}e.stat=i;function s(o,u){const l=a(u);return r.read(o,l)}e.statSync=s;function a(o={}){return o instanceof n.default?o:new n.default(o)}}}),RS=he({"node_modules/queue-microtask/index.js"(e,t){var r;t.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:global):n=>(r||(r=Promise.resolve())).then(n).catch(i=>setTimeout(()=>{throw i},0))}}),MS=he({"node_modules/run-parallel/index.js"(e,t){t.exports=n;var r=RS();function n(i,s){let a,o,u,l=!0;Array.isArray(i)?(a=[],o=i.length):(u=Object.keys(i),a={},o=u.length);function c(p){function h(){s&&s(p,a),s=null}l?r(h):h()}function f(p,h,d){a[p]=d,(--o===0||h)&&c(h)}o?u?u.forEach(function(p){i[p](function(h,d){f(p,h,d)})}):i.forEach(function(p,h){p(function(d,m){f(h,d,m)})}):c(null),l=!1}}}),Lm=he({"node_modules/@nodelib/fs.scandir/out/constants.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var t=process.versions.node.split(".");if(t[0]===void 0||t[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var r=Number.parseInt(t[0],10),n=Number.parseInt(t[1],10),i=10,s=10,a=r>i,o=r===i&&n>=s;e.IS_SUPPORT_READDIR_WITH_FILE_TYPES=a||o}}),jS=he({"node_modules/@nodelib/fs.scandir/out/utils/fs.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.createDirentFromStats=void 0;var t=class{constructor(n,i){this.name=n,this.isBlockDevice=i.isBlockDevice.bind(i),this.isCharacterDevice=i.isCharacterDevice.bind(i),this.isDirectory=i.isDirectory.bind(i),this.isFIFO=i.isFIFO.bind(i),this.isFile=i.isFile.bind(i),this.isSocket=i.isSocket.bind(i),this.isSymbolicLink=i.isSymbolicLink.bind(i)}};function r(n,i){return new t(n,i)}e.createDirentFromStats=r}}),km=he({"node_modules/@nodelib/fs.scandir/out/utils/index.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.fs=void 0;var t=jS();e.fs=t}}),Rm=he({"node_modules/@nodelib/fs.scandir/out/providers/common.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.joinPathSegments=void 0;function t(r,n,i){return r.endsWith(i)?r+n:r+i+n}e.joinPathSegments=t}}),$S=he({"node_modules/@nodelib/fs.scandir/out/providers/async.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.readdir=e.readdirWithFileTypes=e.read=void 0;var t=Mi(),r=MS(),n=Lm(),i=km(),s=Rm();function a(p,h,d){if(!h.stats&&n.IS_SUPPORT_READDIR_WITH_FILE_TYPES){o(p,h,d);return}l(p,h,d)}e.read=a;function o(p,h,d){h.fs.readdir(p,{withFileTypes:!0},(m,D)=>{if(m!==null){c(d,m);return}const g=D.map(b=>({dirent:b,name:b.name,path:s.joinPathSegments(p,b.name,h.pathSegmentSeparator)}));if(!h.followSymbolicLinks){f(d,g);return}const y=g.map(b=>u(b,h));r(y,(b,O)=>{if(b!==null){c(d,b);return}f(d,O)})})}e.readdirWithFileTypes=o;function u(p,h){return d=>{if(!p.dirent.isSymbolicLink()){d(null,p);return}h.fs.stat(p.path,(m,D)=>{if(m!==null){if(h.throwErrorOnBrokenSymbolicLink){d(m);return}d(null,p);return}p.dirent=i.fs.createDirentFromStats(p.name,D),d(null,p)})}}function l(p,h,d){h.fs.readdir(p,(m,D)=>{if(m!==null){c(d,m);return}const g=D.map(y=>{const b=s.joinPathSegments(p,y,h.pathSegmentSeparator);return O=>{t.stat(b,h.fsStatSettings,(C,$)=>{if(C!==null){O(C);return}const w={name:y,path:b,dirent:i.fs.createDirentFromStats(y,$)};h.stats&&(w.stats=$),O(null,w)})}});r(g,(y,b)=>{if(y!==null){c(d,y);return}f(d,b)})})}e.readdir=l;function c(p,h){p(h)}function f(p,h){p(null,h)}}}),US=he({"node_modules/@nodelib/fs.scandir/out/providers/sync.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.readdir=e.readdirWithFileTypes=e.read=void 0;var t=Mi(),r=Lm(),n=km(),i=Rm();function s(u,l){return!l.stats&&r.IS_SUPPORT_READDIR_WITH_FILE_TYPES?a(u,l):o(u,l)}e.read=s;function a(u,l){return l.fs.readdirSync(u,{withFileTypes:!0}).map(f=>{const p={dirent:f,name:f.name,path:i.joinPathSegments(u,f.name,l.pathSegmentSeparator)};if(p.dirent.isSymbolicLink()&&l.followSymbolicLinks)try{const h=l.fs.statSync(p.path);p.dirent=n.fs.createDirentFromStats(p.name,h)}catch(h){if(l.throwErrorOnBrokenSymbolicLink)throw h}return p})}e.readdirWithFileTypes=a;function o(u,l){return l.fs.readdirSync(u).map(f=>{const p=i.joinPathSegments(u,f,l.pathSegmentSeparator),h=t.statSync(p,l.fsStatSettings),d={name:f,path:p,dirent:n.fs.createDirentFromStats(f,h)};return l.stats&&(d.stats=h),d})}e.readdir=o}}),VS=he({"node_modules/@nodelib/fs.scandir/out/adapters/fs.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.createFileSystemAdapter=e.FILE_SYSTEM_ADAPTER=void 0;var t=ot("fs");e.FILE_SYSTEM_ADAPTER={lstat:t.lstat,stat:t.stat,lstatSync:t.lstatSync,statSync:t.statSync,readdir:t.readdir,readdirSync:t.readdirSync};function r(n){return n===void 0?e.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},e.FILE_SYSTEM_ADAPTER),n)}e.createFileSystemAdapter=r}}),qS=he({"node_modules/@nodelib/fs.scandir/out/settings.js"(e){Object.defineProperty(e,"__esModule",{value:!0});var t=ot("path"),r=Mi(),n=VS(),i=class{constructor(s={}){this._options=s,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=n.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,t.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new r.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(s,a){return s??a}};e.default=i}}),cc=he({"node_modules/@nodelib/fs.scandir/out/index.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Settings=e.scandirSync=e.scandir=void 0;var t=$S(),r=US(),n=qS();e.Settings=n.default;function i(o,u,l){if(typeof u=="function"){t.read(o,a(),u);return}t.read(o,a(u),l)}e.scandir=i;function s(o,u){const l=a(u);return r.read(o,l)}e.scandirSync=s;function a(o={}){return o instanceof n.default?o:new n.default(o)}}}),KS=he({"node_modules/reusify/reusify.js"(e,t){function r(n){var i=new n,s=i;function a(){var u=i;return u.next?i=u.next:(i=new n,s=i),u.next=null,u}function o(u){s.next=u,s=u}return{get:a,release:o}}t.exports=r}}),WS=he({"node_modules/fastq/queue.js"(e,t){var r=KS();function n(o,u,l){if(typeof o=="function"&&(l=u,u=o,o=null),!(l>=1))throw new Error("fastqueue concurrency must be equal to or greater than 1");var c=r(s),f=null,p=null,h=0,d=null,m={push:$,drain:i,saturated:i,pause:g,paused:!1,get concurrency(){return l},set concurrency(S){if(!(S>=1))throw new Error("fastqueue concurrency must be equal to or greater than 1");if(l=S,!m.paused)for(;f&&h<l;)h++,P()},running:D,resume:O,idle:C,length:y,getQueue:b,unshift:w,empty:i,kill:I,killAndDrain:L,error:F};return m;function D(){return h}function g(){m.paused=!0}function y(){for(var S=f,A=0;S;)S=S.next,A++;return A}function b(){for(var S=f,A=[];S;)A.push(S.value),S=S.next;return A}function O(){if(m.paused){if(m.paused=!1,f===null){h++,P();return}for(;f&&h<l;)h++,P()}}function C(){return h===0&&m.length()===0}function $(S,A){var B=c.get();B.context=o,B.release=P,B.value=S,B.callback=A||i,B.errorHandler=d,h>=l||m.paused?p?(p.next=B,p=B):(f=B,p=B,m.saturated()):(h++,u.call(o,B.value,B.worked))}function w(S,A){var B=c.get();B.context=o,B.release=P,B.value=S,B.callback=A||i,B.errorHandler=d,h>=l||m.paused?f?(B.next=f,f=B):(f=B,p=B,m.saturated()):(h++,u.call(o,B.value,B.worked))}function P(S){S&&c.release(S);var A=f;A&&h<=l?m.paused?h--:(p===f&&(p=null),f=A.next,A.next=null,u.call(o,A.value,A.worked),p===null&&m.empty()):--h===0&&m.drain()}function I(){f=null,p=null,m.drain=i}function L(){f=null,p=null,m.drain(),m.drain=i}function F(S){d=S}}function i(){}function s(){this.value=null,this.callback=i,this.next=null,this.release=i,this.context=null,this.errorHandler=null;var o=this;this.worked=function(l,c){var f=o.callback,p=o.errorHandler,h=o.value;o.value=null,o.callback=i,o.errorHandler&&p(l,h),f.call(o.context,l,c),o.release(o)}}function a(o,u,l){typeof o=="function"&&(l=u,u=o,o=null);function c(g,y){u.call(this,g).then(function(b){y(null,b)},y)}var f=n(o,c,l),p=f.push,h=f.unshift;return f.push=d,f.unshift=m,f.drained=D,f;function d(g){var y=new Promise(function(b,O){p(g,function(C,$){if(C){O(C);return}b($)})});return y.catch(i),y}function m(g){var y=new Promise(function(b,O){h(g,function(C,$){if(C){O(C);return}b($)})});return y.catch(i),y}function D(){if(f.idle())return new Promise(function(b){b()});var g=f.drain,y=new Promise(function(b){f.drain=function(){g(),b()}});return y}}t.exports=n,t.exports.promise=a}}),fc=he({"node_modules/@nodelib/fs.walk/out/readers/common.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.joinPathSegments=e.replacePathSegmentSeparator=e.isAppliedFilter=e.isFatalError=void 0;function t(s,a){return s.errorFilter===null?!0:!s.errorFilter(a)}e.isFatalError=t;function r(s,a){return s===null||s(a)}e.isAppliedFilter=r;function n(s,a){return s.split(/[/\\]/).join(a)}e.replacePathSegmentSeparator=n;function i(s,a,o){return s===""?a:s.endsWith(o)?s+a:s+o+a}e.joinPathSegments=i}}),Mm=he({"node_modules/@nodelib/fs.walk/out/readers/reader.js"(e){Object.defineProperty(e,"__esModule",{value:!0});var t=fc(),r=class{constructor(n,i){this._root=n,this._settings=i,this._root=t.replacePathSegmentSeparator(n,i.pathSegmentSeparator)}};e.default=r}}),jm=he({"node_modules/@nodelib/fs.walk/out/readers/async.js"(e){Object.defineProperty(e,"__esModule",{value:!0});var t=ot("events"),r=cc(),n=WS(),i=fc(),s=Mm(),a=class extends s.default{constructor(o,u){super(o,u),this._settings=u,this._scandir=r.scandir,this._emitter=new t.EventEmitter,this._queue=n(this._worker.bind(this),this._settings.concurrency),this._isFatalError=!1,this._isDestroyed=!1,this._queue.drain=()=>{this._isFatalError||this._emitter.emit("end")}}read(){return this._isFatalError=!1,this._isDestroyed=!1,setImmediate(()=>{this._pushToQueue(this._root,this._settings.basePath)}),this._emitter}get isDestroyed(){return this._isDestroyed}destroy(){if(this._isDestroyed)throw new Error("The reader is already destroyed");this._isDestroyed=!0,this._queue.killAndDrain()}onEntry(o){this._emitter.on("entry",o)}onError(o){this._emitter.once("error",o)}onEnd(o){this._emitter.once("end",o)}_pushToQueue(o,u){const l={directory:o,base:u};this._queue.push(l,c=>{c!==null&&this._handleError(c)})}_worker(o,u){this._scandir(o.directory,this._settings.fsScandirSettings,(l,c)=>{if(l!==null){u(l,void 0);return}for(const f of c)this._handleEntry(f,o.base);u(null,void 0)})}_handleError(o){this._isDestroyed||!i.isFatalError(this._settings,o)||(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",o))}_handleEntry(o,u){if(this._isDestroyed||this._isFatalError)return;const l=o.path;u!==void 0&&(o.path=i.joinPathSegments(u,o.name,this._settings.pathSegmentSeparator)),i.isAppliedFilter(this._settings.entryFilter,o)&&this._emitEntry(o),o.dirent.isDirectory()&&i.isAppliedFilter(this._settings.deepFilter,o)&&this._pushToQueue(l,u===void 0?void 0:o.path)}_emitEntry(o){this._emitter.emit("entry",o)}};e.default=a}}),HS=he({"node_modules/@nodelib/fs.walk/out/providers/async.js"(e){Object.defineProperty(e,"__esModule",{value:!0});var t=jm(),r=class{constructor(s,a){this._root=s,this._settings=a,this._reader=new t.default(this._root,this._settings),this._storage=[]}read(s){this._reader.onError(a=>{n(s,a)}),this._reader.onEntry(a=>{this._storage.push(a)}),this._reader.onEnd(()=>{i(s,this._storage)}),this._reader.read()}};e.default=r;function n(s,a){s(a)}function i(s,a){s(null,a)}}}),GS=he({"node_modules/@nodelib/fs.walk/out/providers/stream.js"(e){Object.defineProperty(e,"__esModule",{value:!0});var t=ot("stream"),r=jm(),n=class{constructor(i,s){this._root=i,this._settings=s,this._reader=new r.default(this._root,this._settings),this._stream=new t.Readable({objectMode:!0,read:()=>{},destroy:()=>{this._reader.isDestroyed||this._reader.destroy()}})}read(){return this._reader.onError(i=>{this._stream.emit("error",i)}),this._reader.onEntry(i=>{this._stream.push(i)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}};e.default=n}}),YS=he({"node_modules/@nodelib/fs.walk/out/readers/sync.js"(e){Object.defineProperty(e,"__esModule",{value:!0});var t=cc(),r=fc(),n=Mm(),i=class extends n.default{constructor(){super(...arguments),this._scandir=t.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(s,a){this._queue.add({directory:s,base:a})}_handleQueue(){for(const s of this._queue.values())this._handleDirectory(s.directory,s.base)}_handleDirectory(s,a){try{const o=this._scandir(s,this._settings.fsScandirSettings);for(const u of o)this._handleEntry(u,a)}catch(o){this._handleError(o)}}_handleError(s){if(r.isFatalError(this._settings,s))throw s}_handleEntry(s,a){const o=s.path;a!==void 0&&(s.path=r.joinPathSegments(a,s.name,this._settings.pathSegmentSeparator)),r.isAppliedFilter(this._settings.entryFilter,s)&&this._pushToStorage(s),s.dirent.isDirectory()&&r.isAppliedFilter(this._settings.deepFilter,s)&&this._pushToQueue(o,a===void 0?void 0:s.path)}_pushToStorage(s){this._storage.push(s)}};e.default=i}}),XS=he({"node_modules/@nodelib/fs.walk/out/providers/sync.js"(e){Object.defineProperty(e,"__esModule",{value:!0});var t=YS(),r=class{constructor(n,i){this._root=n,this._settings=i,this._reader=new t.default(this._root,this._settings)}read(){return this._reader.read()}};e.default=r}}),JS=he({"node_modules/@nodelib/fs.walk/out/settings.js"(e){Object.defineProperty(e,"__esModule",{value:!0});var t=ot("path"),r=cc(),n=class{constructor(i={}){this._options=i,this.basePath=this._getValue(this._options.basePath,void 0),this.concurrency=this._getValue(this._options.concurrency,Number.POSITIVE_INFINITY),this.deepFilter=this._getValue(this._options.deepFilter,null),this.entryFilter=this._getValue(this._options.entryFilter,null),this.errorFilter=this._getValue(this._options.errorFilter,null),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,t.sep),this.fsScandirSettings=new r.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(i,s){return i??s}};e.default=n}}),pc=he({"node_modules/@nodelib/fs.walk/out/index.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Settings=e.walkStream=e.walkSync=e.walk=void 0;var t=HS(),r=GS(),n=XS(),i=JS();e.Settings=i.default;function s(l,c,f){if(typeof c=="function"){new t.default(l,u()).read(c);return}new t.default(l,u(c)).read(f)}e.walk=s;function a(l,c){const f=u(c);return new n.default(l,f).read()}e.walkSync=a;function o(l,c){const f=u(c);return new r.default(l,f).read()}e.walkStream=o;function u(l={}){return l instanceof i.default?l:new i.default(l)}}}),hc=he({"node_modules/fast-glob/out/readers/reader.js"(e){Object.defineProperty(e,"__esModule",{value:!0});var t=ot("path"),r=Mi(),n=On(),i=class{constructor(s){this._settings=s,this._fsStatSettings=new r.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(s){return t.resolve(this._settings.cwd,s)}_makeEntry(s,a){const o={name:a,path:a,dirent:n.fs.createDirentFromStats(a,s)};return this._settings.stats&&(o.stats=s),o}_isFatalError(s){return!n.errno.isEnoentCodeError(s)&&!this._settings.suppressErrors}};e.default=i}}),$m=he({"node_modules/fast-glob/out/readers/stream.js"(e){Object.defineProperty(e,"__esModule",{value:!0});var t=ot("stream"),r=Mi(),n=pc(),i=hc(),s=class extends i.default{constructor(){super(...arguments),this._walkStream=n.walkStream,this._stat=r.stat}dynamic(a,o){return this._walkStream(a,o)}static(a,o){const u=a.map(this._getFullEntryPath,this),l=new t.PassThrough({objectMode:!0});l._write=(c,f,p)=>this._getEntry(u[c],a[c],o).then(h=>{h!==null&&o.entryFilter(h)&&l.push(h),c===u.length-1&&l.end(),p()}).catch(p);for(let c=0;c<u.length;c++)l.write(c);return l}_getEntry(a,o,u){return this._getStat(a).then(l=>this._makeEntry(l,o)).catch(l=>{if(u.errorFilter(l))return null;throw l})}_getStat(a){return new Promise((o,u)=>{this._stat(a,this._fsStatSettings,(l,c)=>l===null?o(c):u(l))})}};e.default=s}}),zS=he({"node_modules/fast-glob/out/readers/async.js"(e){Object.defineProperty(e,"__esModule",{value:!0});var t=pc(),r=hc(),n=$m(),i=class extends r.default{constructor(){super(...arguments),this._walkAsync=t.walk,this._readerStream=new n.default(this._settings)}dynamic(s,a){return new Promise((o,u)=>{this._walkAsync(s,a,(l,c)=>{l===null?o(c):u(l)})})}async static(s,a){const o=[],u=this._readerStream.static(s,a);return new Promise((l,c)=>{u.once("error",c),u.on("data",f=>o.push(f)),u.once("end",()=>l(o))})}};e.default=i}}),QS=he({"node_modules/fast-glob/out/providers/matchers/matcher.js"(e){Object.defineProperty(e,"__esModule",{value:!0});var t=On(),r=class{constructor(n,i,s){this._patterns=n,this._settings=i,this._micromatchOptions=s,this._storage=[],this._fillStorage()}_fillStorage(){for(const n of this._patterns){const i=this._getPatternSegments(n),s=this._splitSegmentsIntoSections(i);this._storage.push({complete:s.length<=1,pattern:n,segments:i,sections:s})}}_getPatternSegments(n){return t.pattern.getPatternParts(n,this._micromatchOptions).map(s=>t.pattern.isDynamicPattern(s,this._settings)?{dynamic:!0,pattern:s,patternRe:t.pattern.makeRe(s,this._micromatchOptions)}:{dynamic:!1,pattern:s})}_splitSegmentsIntoSections(n){return t.array.splitWhen(n,i=>i.dynamic&&t.pattern.hasGlobStar(i.pattern))}};e.default=r}}),ZS=he({"node_modules/fast-glob/out/providers/matchers/partial.js"(e){Object.defineProperty(e,"__esModule",{value:!0});var t=QS(),r=class extends t.default{match(n){const i=n.split("/"),s=i.length,a=this._storage.filter(o=>!o.complete||o.segments.length>s);for(const o of a){const u=o.sections[0];if(!o.complete&&s>u.length||i.every((c,f)=>{const p=o.segments[f];return!!(p.dynamic&&p.patternRe.test(c)||!p.dynamic&&p.pattern===c)}))return!0}return!1}};e.default=r}}),e1=he({"node_modules/fast-glob/out/providers/filters/deep.js"(e){Object.defineProperty(e,"__esModule",{value:!0});var t=On(),r=ZS(),n=class{constructor(i,s){this._settings=i,this._micromatchOptions=s}getFilter(i,s,a){const o=this._getMatcher(s),u=this._getNegativePatternsRe(a);return l=>this._filter(i,l,o,u)}_getMatcher(i){return new r.default(i,this._settings,this._micromatchOptions)}_getNegativePatternsRe(i){const s=i.filter(t.pattern.isAffectDepthOfReadingPattern);return t.pattern.convertPatternsToRe(s,this._micromatchOptions)}_filter(i,s,a,o){if(this._isSkippedByDeep(i,s.path)||this._isSkippedSymbolicLink(s))return!1;const u=t.path.removeLeadingDotSegment(s.path);return this._isSkippedByPositivePatterns(u,a)?!1:this._isSkippedByNegativePatterns(u,o)}_isSkippedByDeep(i,s){return this._settings.deep===1/0?!1:this._getEntryLevel(i,s)>=this._settings.deep}_getEntryLevel(i,s){const a=s.split("/").length;if(i==="")return a;const o=i.split("/").length;return a-o}_isSkippedSymbolicLink(i){return!this._settings.followSymbolicLinks&&i.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(i,s){return!this._settings.baseNameMatch&&!s.match(i)}_isSkippedByNegativePatterns(i,s){return!t.pattern.matchAny(i,s)}};e.default=n}}),t1=he({"node_modules/fast-glob/out/providers/filters/entry.js"(e){Object.defineProperty(e,"__esModule",{value:!0});var t=On(),r=class{constructor(n,i){this._settings=n,this._micromatchOptions=i,this.index=new Map}getFilter(n,i){const s=t.pattern.convertPatternsToRe(n,this._micromatchOptions),a=t.pattern.convertPatternsToRe(i,Object.assign(Object.assign({},this._micromatchOptions),{dot:!0}));return o=>this._filter(o,s,a)}_filter(n,i,s){const a=t.path.removeLeadingDotSegment(n.path);if(this._settings.unique&&this._isDuplicateEntry(a)||this._onlyFileFilter(n)||this._onlyDirectoryFilter(n)||this._isSkippedByAbsoluteNegativePatterns(a,s))return!1;const o=n.dirent.isDirectory(),u=this._isMatchToPatterns(a,i,o)&&!this._isMatchToPatterns(a,s,o);return this._settings.unique&&u&&this._createIndexRecord(a),u}_isDuplicateEntry(n){return this.index.has(n)}_createIndexRecord(n){this.index.set(n,void 0)}_onlyFileFilter(n){return this._settings.onlyFiles&&!n.dirent.isFile()}_onlyDirectoryFilter(n){return this._settings.onlyDirectories&&!n.dirent.isDirectory()}_isSkippedByAbsoluteNegativePatterns(n,i){if(!this._settings.absolute)return!1;const s=t.path.makeAbsolute(this._settings.cwd,n);return t.pattern.matchAny(s,i)}_isMatchToPatterns(n,i,s){const a=t.pattern.matchAny(n,i);return!a&&s?t.pattern.matchAny(n+"/",i):a}};e.default=r}}),r1=he({"node_modules/fast-glob/out/providers/filters/error.js"(e){Object.defineProperty(e,"__esModule",{value:!0});var t=On(),r=class{constructor(n){this._settings=n}getFilter(){return n=>this._isNonFatalError(n)}_isNonFatalError(n){return t.errno.isEnoentCodeError(n)||this._settings.suppressErrors}};e.default=r}}),n1=he({"node_modules/fast-glob/out/providers/transformers/entry.js"(e){Object.defineProperty(e,"__esModule",{value:!0});var t=On(),r=class{constructor(n){this._settings=n}getTransformer(){return n=>this._transform(n)}_transform(n){let i=n.path;return this._settings.absolute&&(i=t.path.makeAbsolute(this._settings.cwd,i),i=t.path.unixify(i)),this._settings.markDirectories&&n.dirent.isDirectory()&&(i+="/"),this._settings.objectMode?Object.assign(Object.assign({},n),{path:i}):i}};e.default=r}}),dc=he({"node_modules/fast-glob/out/providers/provider.js"(e){Object.defineProperty(e,"__esModule",{value:!0});var t=ot("path"),r=e1(),n=t1(),i=r1(),s=n1(),a=class{constructor(o){this._settings=o,this.errorFilter=new i.default(this._settings),this.entryFilter=new n.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new r.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new s.default(this._settings)}_getRootDirectory(o){return t.resolve(this._settings.cwd,o.base)}_getReaderOptions(o){const u=o.base==="."?"":o.base;return{basePath:u,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(u,o.positive,o.negative),entryFilter:this.entryFilter.getFilter(o.positive,o.negative),errorFilter:this.errorFilter.getFilter(),followSymbolicLinks:this._settings.followSymbolicLinks,fs:this._settings.fs,stats:this._settings.stats,throwErrorOnBrokenSymbolicLink:this._settings.throwErrorOnBrokenSymbolicLink,transform:this.entryTransformer.getTransformer()}}_getMicromatchOptions(){return{dot:this._settings.dot,matchBase:this._settings.baseNameMatch,nobrace:!this._settings.braceExpansion,nocase:!this._settings.caseSensitiveMatch,noext:!this._settings.extglob,noglobstar:!this._settings.globstar,posix:!0,strictSlashes:!1}}};e.default=a}}),i1=he({"node_modules/fast-glob/out/providers/async.js"(e){Object.defineProperty(e,"__esModule",{value:!0});var t=zS(),r=dc(),n=class extends r.default{constructor(){super(...arguments),this._reader=new t.default(this._settings)}async read(i){const s=this._getRootDirectory(i),a=this._getReaderOptions(i);return(await this.api(s,i,a)).map(u=>a.transform(u))}api(i,s,a){return s.dynamic?this._reader.dynamic(i,a):this._reader.static(s.patterns,a)}};e.default=n}}),s1=he({"node_modules/fast-glob/out/providers/stream.js"(e){Object.defineProperty(e,"__esModule",{value:!0});var t=ot("stream"),r=$m(),n=dc(),i=class extends n.default{constructor(){super(...arguments),this._reader=new r.default(this._settings)}read(s){const a=this._getRootDirectory(s),o=this._getReaderOptions(s),u=this.api(a,s,o),l=new t.Readable({objectMode:!0,read:()=>{}});return u.once("error",c=>l.emit("error",c)).on("data",c=>l.emit("data",o.transform(c))).once("end",()=>l.emit("end")),l.once("close",()=>u.destroy()),l}api(s,a,o){return a.dynamic?this._reader.dynamic(s,o):this._reader.static(a.patterns,o)}};e.default=i}}),a1=he({"node_modules/fast-glob/out/readers/sync.js"(e){Object.defineProperty(e,"__esModule",{value:!0});var t=Mi(),r=pc(),n=hc(),i=class extends n.default{constructor(){super(...arguments),this._walkSync=r.walkSync,this._statSync=t.statSync}dynamic(s,a){return this._walkSync(s,a)}static(s,a){const o=[];for(const u of s){const l=this._getFullEntryPath(u),c=this._getEntry(l,u,a);c===null||!a.entryFilter(c)||o.push(c)}return o}_getEntry(s,a,o){try{const u=this._getStat(s);return this._makeEntry(u,a)}catch(u){if(o.errorFilter(u))return null;throw u}}_getStat(s){return this._statSync(s,this._fsStatSettings)}};e.default=i}}),o1=he({"node_modules/fast-glob/out/providers/sync.js"(e){Object.defineProperty(e,"__esModule",{value:!0});var t=a1(),r=dc(),n=class extends r.default{constructor(){super(...arguments),this._reader=new t.default(this._settings)}read(i){const s=this._getRootDirectory(i),a=this._getReaderOptions(i);return this.api(s,i,a).map(a.transform)}api(i,s,a){return s.dynamic?this._reader.dynamic(i,a):this._reader.static(s.patterns,a)}};e.default=n}}),u1=he({"node_modules/fast-glob/out/settings.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var t=ot("fs"),r=ot("os"),n=Math.max(r.cpus().length,1);e.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:t.lstat,lstatSync:t.lstatSync,stat:t.stat,statSync:t.statSync,readdir:t.readdir,readdirSync:t.readdirSync};var i=class{constructor(s={}){this._options=s,this.absolute=this._getValue(this._options.absolute,!1),this.baseNameMatch=this._getValue(this._options.baseNameMatch,!1),this.braceExpansion=this._getValue(this._options.braceExpansion,!0),this.caseSensitiveMatch=this._getValue(this._options.caseSensitiveMatch,!0),this.concurrency=this._getValue(this._options.concurrency,n),this.cwd=this._getValue(this._options.cwd,process.cwd()),this.deep=this._getValue(this._options.deep,1/0),this.dot=this._getValue(this._options.dot,!1),this.extglob=this._getValue(this._options.extglob,!0),this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!0),this.fs=this._getFileSystemMethods(this._options.fs),this.globstar=this._getValue(this._options.globstar,!0),this.ignore=this._getValue(this._options.ignore,[]),this.markDirectories=this._getValue(this._options.markDirectories,!1),this.objectMode=this._getValue(this._options.objectMode,!1),this.onlyDirectories=this._getValue(this._options.onlyDirectories,!1),this.onlyFiles=this._getValue(this._options.onlyFiles,!0),this.stats=this._getValue(this._options.stats,!1),this.suppressErrors=this._getValue(this._options.suppressErrors,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!1),this.unique=this._getValue(this._options.unique,!0),this.onlyDirectories&&(this.onlyFiles=!1),this.stats&&(this.objectMode=!0),this.ignore=[].concat(this.ignore)}_getValue(s,a){return s===void 0?a:s}_getFileSystemMethods(s={}){return Object.assign(Object.assign({},e.DEFAULT_FILE_SYSTEM_ADAPTER),s)}};e.default=i}}),l1=he({"node_modules/fast-glob/out/index.js"(e,t){var r=OS(),n=i1(),i=s1(),s=o1(),a=u1(),o=On();async function u(f,p){c(f);const h=l(f,n.default,p),d=await Promise.all(h);return o.array.flatten(d)}(function(f){f.glob=f,f.globSync=p,f.globStream=h,f.async=f;function p(y,b){c(y);const O=l(y,s.default,b);return o.array.flatten(O)}f.sync=p;function h(y,b){c(y);const O=l(y,i.default,b);return o.stream.merge(O)}f.stream=h;function d(y,b){c(y);const O=[].concat(y),C=new a.default(b);return r.generate(O,C)}f.generateTasks=d;function m(y,b){c(y);const O=new a.default(b);return o.pattern.isDynamicPattern(y,O)}f.isDynamicPattern=m;function D(y){return c(y),o.path.escape(y)}f.escapePath=D;function g(y){return c(y),o.path.convertPathToPattern(y)}f.convertPathToPattern=g,function(y){function b(C){return c(C),o.path.escapePosixPath(C)}y.escapePath=b;function O(C){return c(C),o.path.convertPosixPathToPattern(C)}y.convertPathToPattern=O}(f.posix||(f.posix={})),function(y){function b(C){return c(C),o.path.escapeWindowsPath(C)}y.escapePath=b;function O(C){return c(C),o.path.convertWindowsPathToPattern(C)}y.convertPathToPattern=O}(f.win32||(f.win32={}))})(u||(u={}));function l(f,p,h){const d=[].concat(f),m=new a.default(h),D=r.generate(d,m),g=new p(m);return D.map(g.read,g)}function c(f){if(![].concat(f).every(d=>o.string.isString(d)&&!o.string.isEmpty(d)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}t.exports=u}});function c1(){const e=new Map;for(const[t,r]of Object.entries(dt)){for(const[n,i]of Object.entries(r))dt[n]={open:`\x1B[${i[0]}m`,close:`\x1B[${i[1]}m`},r[n]=dt[n],e.set(i[0],i[1]);Object.defineProperty(dt,t,{value:r,enumerable:!1})}return Object.defineProperty(dt,"codes",{value:e,enumerable:!1}),dt.color.close="\x1B[39m",dt.bgColor.close="\x1B[49m",dt.color.ansi=dl(),dt.color.ansi256=ml(),dt.color.ansi16m=yl(),dt.bgColor.ansi=dl(ja),dt.bgColor.ansi256=ml(ja),dt.bgColor.ansi16m=yl(ja),Object.defineProperties(dt,{rgbToAnsi256:{value(t,r,n){return t===r&&r===n?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)},enumerable:!1},hexToRgb:{value(t){const r=/[a-f\d]{6}|[a-f\d]{3}/i.exec(t.toString(16));if(!r)return[0,0,0];let[n]=r;n.length===3&&(n=[...n].map(s=>s+s).join(""));const i=Number.parseInt(n,16);return[i>>16&255,i>>8&255,i&255]},enumerable:!1},hexToAnsi256:{value:t=>dt.rgbToAnsi256(...dt.hexToRgb(t)),enumerable:!1},ansi256ToAnsi:{value(t){if(t<8)return 30+t;if(t<16)return 90+(t-8);let r,n,i;if(t>=232)r=((t-232)*10+8)/255,n=r,i=r;else{t-=16;const o=t%36;r=Math.floor(t/36)/5,n=Math.floor(o/6)/5,i=o%6/5}const s=Math.max(r,n,i)*2;if(s===0)return 30;let a=30+(Math.round(i)<<2|Math.round(n)<<1|Math.round(r));return s===2&&(a+=60),a},enumerable:!1},rgbToAnsi:{value:(t,r,n)=>dt.ansi256ToAnsi(dt.rgbToAnsi256(t,r,n)),enumerable:!1},hexToAnsi:{value:t=>dt.ansi256ToAnsi(dt.hexToAnsi256(t)),enumerable:!1}}),dt}var ja,dl,ml,yl,dt,Dl,so,ao,gl,Kf,hr,Wf=Ao({"node_modules/chalk/source/vendor/ansi-styles/index.js"(){ja=10,dl=(e=0)=>t=>`\x1B[${t+e}m`,ml=(e=0)=>t=>`\x1B[${38+e};5;${t}m`,yl=(e=0)=>(t,r,n)=>`\x1B[${38+e};2;${t};${r};${n}m`,dt={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}},Dl=Object.keys(dt.modifier),so=Object.keys(dt.color),ao=Object.keys(dt.bgColor),gl=[...so,...ao],Kf=c1(),hr=Kf}});function Qt(e,t=globalThis.Deno?globalThis.Deno.args:Fr.argv){const r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),i=t.indexOf("--");return n!==-1&&(i===-1||n<i)}function f1(){if("FORCE_COLOR"in yt)return yt.FORCE_COLOR==="true"?1:yt.FORCE_COLOR==="false"?0:yt.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(yt.FORCE_COLOR,10),3)}function p1(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function h1(e,{streamIsTTY:t,sniffFlags:r=!0}={}){const n=f1();n!==void 0&&(oo=n);const i=r?oo:n;if(i===0)return 0;if(r){if(Qt("color=16m")||Qt("color=full")||Qt("color=truecolor"))return 3;if(Qt("color=256"))return 2}if("TF_BUILD"in yt&&"AGENT_NAME"in yt)return 1;if(e&&!t&&i===void 0)return 0;const s=i||0;if(yt.TERM==="dumb")return s;if(Fr.platform==="win32"){const a=tc.release().split(".");return Number(a[0])>=10&&Number(a[2])>=10586?Number(a[2])>=14931?3:2:1}if("CI"in yt)return"GITHUB_ACTIONS"in yt||"GITEA_ACTIONS"in yt?3:["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(a=>a in yt)||yt.CI_NAME==="codeship"?1:s;if("TEAMCITY_VERSION"in yt)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(yt.TEAMCITY_VERSION)?1:0;if(yt.COLORTERM==="truecolor"||yt.TERM==="xterm-kitty")return 3;if("TERM_PROGRAM"in yt){const a=Number.parseInt((yt.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(yt.TERM_PROGRAM){case"iTerm.app":return a>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(yt.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(yt.TERM)||"COLORTERM"in yt?1:s}function Hf(e,t={}){const r=h1(e,{streamIsTTY:e&&e.isTTY,...t});return p1(r)}var yt,oo,Gf,Um,d1=Ao({"node_modules/chalk/source/vendor/supports-color/index.js"(){({env:yt}=Fr),Qt("no-color")||Qt("no-colors")||Qt("color=false")||Qt("color=never")?oo=0:(Qt("color")||Qt("colors")||Qt("color=true")||Qt("color=always"))&&(oo=1),Gf={stdout:Hf({isTTY:xs.isatty(1)}),stderr:Hf({isTTY:xs.isatty(2)})},Um=Gf}});function m1(e,t,r){let n=e.indexOf(t);if(n===-1)return e;const i=t.length;let s=0,a="";do a+=e.slice(s,n)+t+r,s=n+i,n=e.indexOf(t,s);while(n!==-1);return a+=e.slice(s),a}function y1(e,t,r,n){let i=0,s="";do{const a=e[n-1]==="\r";s+=e.slice(i,a?n-1:n)+t+(a?`\r
|
|
10
|
+
`:`
|
|
11
|
+
`)+r,i=n+1,n=e.indexOf(`
|
|
12
|
+
`,i)}while(n!==-1);return s+=e.slice(i),s}var D1=Ao({"node_modules/chalk/source/utilities.js"(){}}),Vm={};Ri(Vm,{Chalk:()=>qm,backgroundColorNames:()=>ao,backgroundColors:()=>ao,chalkStderr:()=>Km,colorNames:()=>gl,colors:()=>gl,default:()=>tr,foregroundColorNames:()=>so,foregroundColors:()=>so,modifierNames:()=>Dl,modifiers:()=>Dl,supportsColor:()=>$a,supportsColorStderr:()=>Ua});function Ki(e){return El(e)}var $a,Ua,ia,Vn,gi,mu,qn,Yf,qm,El,sa,Xf,Jf,aa,Wi,zf,Qf,Km,tr,xo=Ao({"node_modules/chalk/source/index.js"(){Wf(),d1(),D1(),Wf(),{stdout:$a,stderr:Ua}=Um,ia=Symbol("GENERATOR"),Vn=Symbol("STYLER"),gi=Symbol("IS_EMPTY"),mu=["ansi","ansi","ansi256","ansi16m"],qn=Object.create(null),Yf=(e,t={})=>{if(t.level&&!(Number.isInteger(t.level)&&t.level>=0&&t.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");const r=$a?$a.level:0;e.level=t.level===void 0?r:t.level},qm=class{constructor(e){return El(e)}},El=e=>{const t=(...r)=>r.join(" ");return Yf(t,e),Object.setPrototypeOf(t,Ki.prototype),t},Object.setPrototypeOf(Ki.prototype,Function.prototype);for(const[e,t]of Object.entries(hr))qn[e]={get(){const r=Wi(this,aa(t.open,t.close,this[Vn]),this[gi]);return Object.defineProperty(this,e,{value:r}),r}};qn.visible={get(){const e=Wi(this,this[Vn],!0);return Object.defineProperty(this,"visible",{value:e}),e}},sa=(e,t,r,...n)=>e==="rgb"?t==="ansi16m"?hr[r].ansi16m(...n):t==="ansi256"?hr[r].ansi256(hr.rgbToAnsi256(...n)):hr[r].ansi(hr.rgbToAnsi(...n)):e==="hex"?sa("rgb",t,r,...hr.hexToRgb(...n)):hr[r][e](...n),Xf=["rgb","hex","ansi256"];for(const e of Xf){qn[e]={get(){const{level:r}=this;return function(...n){const i=aa(sa(e,mu[r],"color",...n),hr.color.close,this[Vn]);return Wi(this,i,this[gi])}}};const t="bg"+e[0].toUpperCase()+e.slice(1);qn[t]={get(){const{level:r}=this;return function(...n){const i=aa(sa(e,mu[r],"bgColor",...n),hr.bgColor.close,this[Vn]);return Wi(this,i,this[gi])}}}}Jf=Object.defineProperties(()=>{},{...qn,level:{enumerable:!0,get(){return this[ia].level},set(e){this[ia].level=e}}}),aa=(e,t,r)=>{let n,i;return r===void 0?(n=e,i=t):(n=r.openAll+e,i=t+r.closeAll),{open:e,close:t,openAll:n,closeAll:i,parent:r}},Wi=(e,t,r)=>{const n=(...i)=>zf(n,i.length===1?""+i[0]:i.join(" "));return Object.setPrototypeOf(n,Jf),n[ia]=e,n[Vn]=t,n[gi]=r,n},zf=(e,t)=>{if(e.level<=0||!t)return e[gi]?"":t;let r=e[Vn];if(r===void 0)return t;const{openAll:n,closeAll:i}=r;if(t.includes("\x1B"))for(;r!==void 0;)t=m1(t,r.close,r.open),r=r.parent;const s=t.indexOf(`
|
|
13
|
+
`);return s!==-1&&(t=y1(t,i,n,s)),n+t+i},Object.defineProperties(Ki.prototype,qn),Qf=Ki(),Km=Ki({level:Ua?Ua.level:0}),tr=Qf}}),Wm=he({"node_modules/semver/internal/debug.js"(e,t){var r=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...n)=>console.error("SEMVER",...n):()=>{};t.exports=r}}),Hm=he({"node_modules/semver/internal/constants.js"(e,t){var r="2.0.0",n=256,i=Number.MAX_SAFE_INTEGER||9007199254740991,s=16,a=n-6,o=["major","premajor","minor","preminor","patch","prepatch","prerelease"];t.exports={MAX_LENGTH:n,MAX_SAFE_COMPONENT_LENGTH:s,MAX_SAFE_BUILD_LENGTH:a,MAX_SAFE_INTEGER:i,RELEASE_TYPES:o,SEMVER_SPEC_VERSION:r,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}}}),g1=he({"node_modules/semver/internal/re.js"(e,t){var{MAX_SAFE_COMPONENT_LENGTH:r,MAX_SAFE_BUILD_LENGTH:n,MAX_LENGTH:i}=Hm(),s=Wm();e=t.exports={};var a=e.re=[],o=e.safeRe=[],u=e.src=[],l=e.t={},c=0,f="[a-zA-Z0-9-]",p=[["\\s",1],["\\d",i],[f,n]],h=m=>{for(const[D,g]of p)m=m.split(`${D}*`).join(`${D}{0,${g}}`).split(`${D}+`).join(`${D}{1,${g}}`);return m},d=(m,D,g)=>{const y=h(D),b=c++;s(m,b,D),l[m]=b,u[b]=D,a[b]=new RegExp(D,g?"g":void 0),o[b]=new RegExp(y,g?"g":void 0)};d("NUMERICIDENTIFIER","0|[1-9]\\d*"),d("NUMERICIDENTIFIERLOOSE","\\d+"),d("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${f}*`),d("MAINVERSION",`(${u[l.NUMERICIDENTIFIER]})\\.(${u[l.NUMERICIDENTIFIER]})\\.(${u[l.NUMERICIDENTIFIER]})`),d("MAINVERSIONLOOSE",`(${u[l.NUMERICIDENTIFIERLOOSE]})\\.(${u[l.NUMERICIDENTIFIERLOOSE]})\\.(${u[l.NUMERICIDENTIFIERLOOSE]})`),d("PRERELEASEIDENTIFIER",`(?:${u[l.NUMERICIDENTIFIER]}|${u[l.NONNUMERICIDENTIFIER]})`),d("PRERELEASEIDENTIFIERLOOSE",`(?:${u[l.NUMERICIDENTIFIERLOOSE]}|${u[l.NONNUMERICIDENTIFIER]})`),d("PRERELEASE",`(?:-(${u[l.PRERELEASEIDENTIFIER]}(?:\\.${u[l.PRERELEASEIDENTIFIER]})*))`),d("PRERELEASELOOSE",`(?:-?(${u[l.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${u[l.PRERELEASEIDENTIFIERLOOSE]})*))`),d("BUILDIDENTIFIER",`${f}+`),d("BUILD",`(?:\\+(${u[l.BUILDIDENTIFIER]}(?:\\.${u[l.BUILDIDENTIFIER]})*))`),d("FULLPLAIN",`v?${u[l.MAINVERSION]}${u[l.PRERELEASE]}?${u[l.BUILD]}?`),d("FULL",`^${u[l.FULLPLAIN]}$`),d("LOOSEPLAIN",`[v=\\s]*${u[l.MAINVERSIONLOOSE]}${u[l.PRERELEASELOOSE]}?${u[l.BUILD]}?`),d("LOOSE",`^${u[l.LOOSEPLAIN]}$`),d("GTLT","((?:<|>)?=?)"),d("XRANGEIDENTIFIERLOOSE",`${u[l.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),d("XRANGEIDENTIFIER",`${u[l.NUMERICIDENTIFIER]}|x|X|\\*`),d("XRANGEPLAIN",`[v=\\s]*(${u[l.XRANGEIDENTIFIER]})(?:\\.(${u[l.XRANGEIDENTIFIER]})(?:\\.(${u[l.XRANGEIDENTIFIER]})(?:${u[l.PRERELEASE]})?${u[l.BUILD]}?)?)?`),d("XRANGEPLAINLOOSE",`[v=\\s]*(${u[l.XRANGEIDENTIFIERLOOSE]})(?:\\.(${u[l.XRANGEIDENTIFIERLOOSE]})(?:\\.(${u[l.XRANGEIDENTIFIERLOOSE]})(?:${u[l.PRERELEASELOOSE]})?${u[l.BUILD]}?)?)?`),d("XRANGE",`^${u[l.GTLT]}\\s*${u[l.XRANGEPLAIN]}$`),d("XRANGELOOSE",`^${u[l.GTLT]}\\s*${u[l.XRANGEPLAINLOOSE]}$`),d("COERCEPLAIN",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?`),d("COERCE",`${u[l.COERCEPLAIN]}(?:$|[^\\d])`),d("COERCEFULL",u[l.COERCEPLAIN]+`(?:${u[l.PRERELEASE]})?(?:${u[l.BUILD]})?(?:$|[^\\d])`),d("COERCERTL",u[l.COERCE],!0),d("COERCERTLFULL",u[l.COERCEFULL],!0),d("LONETILDE","(?:~>?)"),d("TILDETRIM",`(\\s*)${u[l.LONETILDE]}\\s+`,!0),e.tildeTrimReplace="$1~",d("TILDE",`^${u[l.LONETILDE]}${u[l.XRANGEPLAIN]}$`),d("TILDELOOSE",`^${u[l.LONETILDE]}${u[l.XRANGEPLAINLOOSE]}$`),d("LONECARET","(?:\\^)"),d("CARETTRIM",`(\\s*)${u[l.LONECARET]}\\s+`,!0),e.caretTrimReplace="$1^",d("CARET",`^${u[l.LONECARET]}${u[l.XRANGEPLAIN]}$`),d("CARETLOOSE",`^${u[l.LONECARET]}${u[l.XRANGEPLAINLOOSE]}$`),d("COMPARATORLOOSE",`^${u[l.GTLT]}\\s*(${u[l.LOOSEPLAIN]})$|^$`),d("COMPARATOR",`^${u[l.GTLT]}\\s*(${u[l.FULLPLAIN]})$|^$`),d("COMPARATORTRIM",`(\\s*)${u[l.GTLT]}\\s*(${u[l.LOOSEPLAIN]}|${u[l.XRANGEPLAIN]})`,!0),e.comparatorTrimReplace="$1$2$3",d("HYPHENRANGE",`^\\s*(${u[l.XRANGEPLAIN]})\\s+-\\s+(${u[l.XRANGEPLAIN]})\\s*$`),d("HYPHENRANGELOOSE",`^\\s*(${u[l.XRANGEPLAINLOOSE]})\\s+-\\s+(${u[l.XRANGEPLAINLOOSE]})\\s*$`),d("STAR","(<|>)?=?\\s*\\*"),d("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),d("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}}),E1=he({"node_modules/semver/internal/parse-options.js"(e,t){var r=Object.freeze({loose:!0}),n=Object.freeze({}),i=s=>s?typeof s!="object"?r:s:n;t.exports=i}}),b1=he({"node_modules/semver/internal/identifiers.js"(e,t){var r=/^[0-9]+$/,n=(s,a)=>{const o=r.test(s),u=r.test(a);return o&&u&&(s=+s,a=+a),s===a?0:o&&!u?-1:u&&!o?1:s<a?-1:1},i=(s,a)=>n(a,s);t.exports={compareIdentifiers:n,rcompareIdentifiers:i}}}),T1=he({"node_modules/semver/classes/semver.js"(e,t){var r=Wm(),{MAX_LENGTH:n,MAX_SAFE_INTEGER:i}=Hm(),{safeRe:s,t:a}=g1(),o=E1(),{compareIdentifiers:u}=b1(),l=class Cr{constructor(f,p){if(p=o(p),f instanceof Cr){if(f.loose===!!p.loose&&f.includePrerelease===!!p.includePrerelease)return f;f=f.version}else if(typeof f!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof f}".`);if(f.length>n)throw new TypeError(`version is longer than ${n} characters`);r("SemVer",f,p),this.options=p,this.loose=!!p.loose,this.includePrerelease=!!p.includePrerelease;const h=f.trim().match(p.loose?s[a.LOOSE]:s[a.FULL]);if(!h)throw new TypeError(`Invalid Version: ${f}`);if(this.raw=f,this.major=+h[1],this.minor=+h[2],this.patch=+h[3],this.major>i||this.major<0)throw new TypeError("Invalid major version");if(this.minor>i||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>i||this.patch<0)throw new TypeError("Invalid patch version");h[4]?this.prerelease=h[4].split(".").map(d=>{if(/^[0-9]+$/.test(d)){const m=+d;if(m>=0&&m<i)return m}return d}):this.prerelease=[],this.build=h[5]?h[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(f){if(r("SemVer.compare",this.version,this.options,f),!(f instanceof Cr)){if(typeof f=="string"&&f===this.version)return 0;f=new Cr(f,this.options)}return f.version===this.version?0:this.compareMain(f)||this.comparePre(f)}compareMain(f){return f instanceof Cr||(f=new Cr(f,this.options)),u(this.major,f.major)||u(this.minor,f.minor)||u(this.patch,f.patch)}comparePre(f){if(f instanceof Cr||(f=new Cr(f,this.options)),this.prerelease.length&&!f.prerelease.length)return-1;if(!this.prerelease.length&&f.prerelease.length)return 1;if(!this.prerelease.length&&!f.prerelease.length)return 0;let p=0;do{const h=this.prerelease[p],d=f.prerelease[p];if(r("prerelease compare",p,h,d),h===void 0&&d===void 0)return 0;if(d===void 0)return 1;if(h===void 0)return-1;if(h===d)continue;return u(h,d)}while(++p)}compareBuild(f){f instanceof Cr||(f=new Cr(f,this.options));let p=0;do{const h=this.build[p],d=f.build[p];if(r("build compare",p,h,d),h===void 0&&d===void 0)return 0;if(d===void 0)return 1;if(h===void 0)return-1;if(h===d)continue;return u(h,d)}while(++p)}inc(f,p,h){switch(f){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",p,h);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",p,h);break;case"prepatch":this.prerelease.length=0,this.inc("patch",p,h),this.inc("pre",p,h);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",p,h),this.inc("pre",p,h);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{const d=Number(h)?1:0;if(!p&&h===!1)throw new Error("invalid increment argument: identifier is empty");if(this.prerelease.length===0)this.prerelease=[d];else{let m=this.prerelease.length;for(;--m>=0;)typeof this.prerelease[m]=="number"&&(this.prerelease[m]++,m=-2);if(m===-1){if(p===this.prerelease.join(".")&&h===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(d)}}if(p){let m=[p,d];h===!1&&(m=[p]),u(this.prerelease[0],p)===0?isNaN(this.prerelease[1])&&(this.prerelease=m):this.prerelease=m}break}default:throw new Error(`invalid increment argument: ${f}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};t.exports=l}}),S1=he({"node_modules/semver/functions/compare.js"(e,t){var r=T1(),n=(i,s,a)=>new r(i,a).compare(new r(s,a));t.exports=n}}),v1=he({"node_modules/semver/functions/gte.js"(e,t){var r=S1(),n=(i,s,a)=>r(i,s,a)>=0;t.exports=n}}),A1=he({"node_modules/pseudomap/pseudomap.js"(e,t){var r=Object.prototype.hasOwnProperty;t.exports=n;function n(u){if(!(this instanceof n))throw new TypeError("Constructor PseudoMap requires 'new'");if(this.clear(),u)if(u instanceof n||typeof Map=="function"&&u instanceof Map)u.forEach(function(l,c){this.set(c,l)},this);else if(Array.isArray(u))u.forEach(function(l){this.set(l[0],l[1])},this);else throw new TypeError("invalid argument")}n.prototype.forEach=function(u,l){l=l||this,Object.keys(this._data).forEach(function(c){c!=="size"&&u.call(l,this._data[c].value,this._data[c].key)},this)},n.prototype.has=function(u){return!!a(this._data,u)},n.prototype.get=function(u){var l=a(this._data,u);return l&&l.value},n.prototype.set=function(u,l){o(this._data,u,l)},n.prototype.delete=function(u){var l=a(this._data,u);l&&(delete this._data[l._index],this._data.size--)},n.prototype.clear=function(){var u=Object.create(null);u.size=0,Object.defineProperty(this,"_data",{value:u,enumerable:!1,configurable:!0,writable:!1})},Object.defineProperty(n.prototype,"size",{get:function(){return this._data.size},set:function(u){},enumerable:!0,configurable:!0}),n.prototype.values=n.prototype.keys=n.prototype.entries=function(){throw new Error("iterators are not implemented in this version")};function i(u,l){return u===l||u!==u&&l!==l}function s(u,l,c){this.key=u,this.value=l,this._index=c}function a(u,l){for(var c=0,f="_"+l,p=f;r.call(u,p);p=f+c++)if(i(u[p].key,l))return u[p]}function o(u,l,c){for(var f=0,p="_"+l,h=p;r.call(u,h);h=p+f++)if(i(u[h].key,l)){u[h].value=c;return}u.size++,u[h]=new s(l,c,h)}}}),C1=he({"node_modules/pseudomap/map.js"(e,t){process.env.npm_package_name==="pseudomap"&&process.env.npm_lifecycle_script==="test"&&(process.env.TEST_PSEUDOMAP="true"),typeof Map=="function"&&!process.env.TEST_PSEUDOMAP?t.exports=Map:t.exports=A1()}}),P1=he({"node_modules/yallist/yallist.js"(e,t){t.exports=r,r.Node=s,r.create=r;function r(a){var o=this;if(o instanceof r||(o=new r),o.tail=null,o.head=null,o.length=0,a&&typeof a.forEach=="function")a.forEach(function(c){o.push(c)});else if(arguments.length>0)for(var u=0,l=arguments.length;u<l;u++)o.push(arguments[u]);return o}r.prototype.removeNode=function(a){if(a.list!==this)throw new Error("removing node which does not belong to this list");var o=a.next,u=a.prev;o&&(o.prev=u),u&&(u.next=o),a===this.head&&(this.head=o),a===this.tail&&(this.tail=u),a.list.length--,a.next=null,a.prev=null,a.list=null},r.prototype.unshiftNode=function(a){if(a!==this.head){a.list&&a.list.removeNode(a);var o=this.head;a.list=this,a.next=o,o&&(o.prev=a),this.head=a,this.tail||(this.tail=a),this.length++}},r.prototype.pushNode=function(a){if(a!==this.tail){a.list&&a.list.removeNode(a);var o=this.tail;a.list=this,a.prev=o,o&&(o.next=a),this.tail=a,this.head||(this.head=a),this.length++}},r.prototype.push=function(){for(var a=0,o=arguments.length;a<o;a++)n(this,arguments[a]);return this.length},r.prototype.unshift=function(){for(var a=0,o=arguments.length;a<o;a++)i(this,arguments[a]);return this.length},r.prototype.pop=function(){if(this.tail){var a=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,a}},r.prototype.shift=function(){if(this.head){var a=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,a}},r.prototype.forEach=function(a,o){o=o||this;for(var u=this.head,l=0;u!==null;l++)a.call(o,u.value,l,this),u=u.next},r.prototype.forEachReverse=function(a,o){o=o||this;for(var u=this.tail,l=this.length-1;u!==null;l--)a.call(o,u.value,l,this),u=u.prev},r.prototype.get=function(a){for(var o=0,u=this.head;u!==null&&o<a;o++)u=u.next;if(o===a&&u!==null)return u.value},r.prototype.getReverse=function(a){for(var o=0,u=this.tail;u!==null&&o<a;o++)u=u.prev;if(o===a&&u!==null)return u.value},r.prototype.map=function(a,o){o=o||this;for(var u=new r,l=this.head;l!==null;)u.push(a.call(o,l.value,this)),l=l.next;return u},r.prototype.mapReverse=function(a,o){o=o||this;for(var u=new r,l=this.tail;l!==null;)u.push(a.call(o,l.value,this)),l=l.prev;return u},r.prototype.reduce=function(a,o){var u,l=this.head;if(arguments.length>1)u=o;else if(this.head)l=this.head.next,u=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var c=0;l!==null;c++)u=a(u,l.value,c),l=l.next;return u},r.prototype.reduceReverse=function(a,o){var u,l=this.tail;if(arguments.length>1)u=o;else if(this.tail)l=this.tail.prev,u=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var c=this.length-1;l!==null;c--)u=a(u,l.value,c),l=l.prev;return u},r.prototype.toArray=function(){for(var a=new Array(this.length),o=0,u=this.head;u!==null;o++)a[o]=u.value,u=u.next;return a},r.prototype.toArrayReverse=function(){for(var a=new Array(this.length),o=0,u=this.tail;u!==null;o++)a[o]=u.value,u=u.prev;return a},r.prototype.slice=function(a,o){o=o||this.length,o<0&&(o+=this.length),a=a||0,a<0&&(a+=this.length);var u=new r;if(o<a||o<0)return u;a<0&&(a=0),o>this.length&&(o=this.length);for(var l=0,c=this.head;c!==null&&l<a;l++)c=c.next;for(;c!==null&&l<o;l++,c=c.next)u.push(c.value);return u},r.prototype.sliceReverse=function(a,o){o=o||this.length,o<0&&(o+=this.length),a=a||0,a<0&&(a+=this.length);var u=new r;if(o<a||o<0)return u;a<0&&(a=0),o>this.length&&(o=this.length);for(var l=this.length,c=this.tail;c!==null&&l>o;l--)c=c.prev;for(;c!==null&&l>a;l--,c=c.prev)u.push(c.value);return u},r.prototype.reverse=function(){for(var a=this.head,o=this.tail,u=a;u!==null;u=u.prev){var l=u.prev;u.prev=u.next,u.next=l}return this.head=o,this.tail=a,this};function n(a,o){a.tail=new s(o,a.tail,null,a),a.head||(a.head=a.tail),a.length++}function i(a,o){a.head=new s(o,null,a.head,a),a.tail||(a.tail=a.head),a.length++}function s(a,o,u,l){if(!(this instanceof s))return new s(a,o,u,l);this.list=l,this.value=a,o?(o.next=this,this.prev=o):this.prev=null,u?(u.prev=this,this.next=u):this.next=null}}}),x1=he({"node_modules/lru-cache/index.js"(e,t){t.exports=g;var r=C1(),n=ot("util"),i=P1(),s=typeof Symbol=="function"&&process.env._nodeLRUCacheForceNoSymbol!=="1",a;s?a=function(P){return Symbol(P)}:a=function(P){return"_"+P};var o=a("max"),u=a("length"),l=a("lengthCalculator"),c=a("allowStale"),f=a("maxAge"),p=a("dispose"),h=a("noDisposeOnSet"),d=a("lruList"),m=a("cache");function D(){return 1}function g(P){if(!(this instanceof g))return new g(P);typeof P=="number"&&(P={max:P}),P||(P={});var I=this[o]=P.max;(!I||typeof I!="number"||I<=0)&&(this[o]=1/0);var L=P.length||D;typeof L!="function"&&(L=D),this[l]=L,this[c]=P.stale||!1,this[f]=P.maxAge||0,this[p]=P.dispose,this[h]=P.noDisposeOnSet||!1,this.reset()}Object.defineProperty(g.prototype,"max",{set:function(P){(!P||typeof P!="number"||P<=0)&&(P=1/0),this[o]=P,C(this)},get:function(){return this[o]},enumerable:!0}),Object.defineProperty(g.prototype,"allowStale",{set:function(P){this[c]=!!P},get:function(){return this[c]},enumerable:!0}),Object.defineProperty(g.prototype,"maxAge",{set:function(P){(!P||typeof P!="number"||P<0)&&(P=0),this[f]=P,C(this)},get:function(){return this[f]},enumerable:!0}),Object.defineProperty(g.prototype,"lengthCalculator",{set:function(P){typeof P!="function"&&(P=D),P!==this[l]&&(this[l]=P,this[u]=0,this[d].forEach(function(I){I.length=this[l](I.value,I.key),this[u]+=I.length},this)),C(this)},get:function(){return this[l]},enumerable:!0}),Object.defineProperty(g.prototype,"length",{get:function(){return this[u]},enumerable:!0}),Object.defineProperty(g.prototype,"itemCount",{get:function(){return this[d].length},enumerable:!0}),g.prototype.rforEach=function(P,I){I=I||this;for(var L=this[d].tail;L!==null;){var F=L.prev;y(this,P,L,I),L=F}};function y(P,I,L,F){var S=L.value;O(P,S)&&($(P,L),P[c]||(S=void 0)),S&&I.call(F,S.value,S.key,P)}g.prototype.forEach=function(P,I){I=I||this;for(var L=this[d].head;L!==null;){var F=L.next;y(this,P,L,I),L=F}},g.prototype.keys=function(){return this[d].toArray().map(function(P){return P.key},this)},g.prototype.values=function(){return this[d].toArray().map(function(P){return P.value},this)},g.prototype.reset=function(){this[p]&&this[d]&&this[d].length&&this[d].forEach(function(P){this[p](P.key,P.value)},this),this[m]=new r,this[d]=new i,this[u]=0},g.prototype.dump=function(){return this[d].map(function(P){if(!O(this,P))return{k:P.key,v:P.value,e:P.now+(P.maxAge||0)}},this).toArray().filter(function(P){return P})},g.prototype.dumpLru=function(){return this[d]},g.prototype.inspect=function(P,I){var L="LRUCache {",F=!1,S=this[c];S&&(L+=`
|
|
14
|
+
allowStale: true`,F=!0);var A=this[o];A&&A!==1/0&&(F&&(L+=","),L+=`
|
|
15
|
+
max: `+n.inspect(A,I),F=!0);var B=this[f];B&&(F&&(L+=","),L+=`
|
|
16
|
+
maxAge: `+n.inspect(B,I),F=!0);var x=this[l];x&&x!==D&&(F&&(L+=","),L+=`
|
|
17
|
+
length: `+n.inspect(this[u],I),F=!0);var N=!1;return this[d].forEach(function(H){N?L+=`,
|
|
18
|
+
`:(F&&(L+=`,
|
|
19
|
+
`),N=!0,L+=`
|
|
20
|
+
`);var T=n.inspect(H.key).split(`
|
|
21
|
+
`).join(`
|
|
22
|
+
`),_={value:H.value};H.maxAge!==B&&(_.maxAge=H.maxAge),x!==D&&(_.length=H.length),O(this,H)&&(_.stale=!0),_=n.inspect(_,I).split(`
|
|
23
|
+
`).join(`
|
|
24
|
+
`),L+=T+" => "+_}),(N||F)&&(L+=`
|
|
25
|
+
`),L+="}",L},g.prototype.set=function(P,I,L){L=L||this[f];var F=L?Date.now():0,S=this[l](I,P);if(this[m].has(P)){if(S>this[o])return $(this,this[m].get(P)),!1;var A=this[m].get(P),B=A.value;return this[p]&&(this[h]||this[p](P,B.value)),B.now=F,B.maxAge=L,B.value=I,this[u]+=S-B.length,B.length=S,this.get(P),C(this),!0}var x=new w(P,I,S,F,L);return x.length>this[o]?(this[p]&&this[p](P,I),!1):(this[u]+=x.length,this[d].unshift(x),this[m].set(P,this[d].head),C(this),!0)},g.prototype.has=function(P){if(!this[m].has(P))return!1;var I=this[m].get(P).value;return!O(this,I)},g.prototype.get=function(P){return b(this,P,!0)},g.prototype.peek=function(P){return b(this,P,!1)},g.prototype.pop=function(){var P=this[d].tail;return P?($(this,P),P.value):null},g.prototype.del=function(P){$(this,this[m].get(P))},g.prototype.load=function(P){this.reset();for(var I=Date.now(),L=P.length-1;L>=0;L--){var F=P[L],S=F.e||0;if(S===0)this.set(F.k,F.v);else{var A=S-I;A>0&&this.set(F.k,F.v,A)}}},g.prototype.prune=function(){var P=this;this[m].forEach(function(I,L){b(P,L,!1)})};function b(P,I,L){var F=P[m].get(I);if(F){var S=F.value;O(P,S)?($(P,F),P[c]||(S=void 0)):L&&P[d].unshiftNode(F),S&&(S=S.value)}return S}function O(P,I){if(!I||!I.maxAge&&!P[f])return!1;var L=!1,F=Date.now()-I.now;return I.maxAge?L=F>I.maxAge:L=P[f]&&F>P[f],L}function C(P){if(P[u]>P[o])for(var I=P[d].tail;P[u]>P[o]&&I!==null;){var L=I.prev;$(P,I),I=L}}function $(P,I){if(I){var L=I.value;P[p]&&P[p](L.key,L.value),P[u]-=L.length,P[m].delete(L.key),P[d].removeNode(I)}}function w(P,I,L,F,S){this.key=P,this.value=I,this.length=L,this.now=F,this.maxAge=S||0}}}),F1=he({"node_modules/sigmund/sigmund.js"(e,t){t.exports=r;function r(n,i){i=i||10;var s=[],a="",o=RegExp;function u(l,c){if(!(c>i)&&!(typeof l=="function"||typeof l>"u")){if(typeof l!="object"||!l||l instanceof o){a+=l;return}s.indexOf(l)!==-1||c===i||(s.push(l),a+="{",Object.keys(l).forEach(function(f,p,h){if(f.charAt(0)!=="_"){var d=typeof l[f];d==="function"||d==="undefined"||(a+=f,u(l[f],c+1))}}))}}return u(n,0),a}}}),_1=he({"node_modules/editorconfig/src/lib/fnmatch.js"(e,t){var r=typeof process=="object"?process.platform:"win32";t?t.exports=g:e.minimatch=g,g.Minimatch=y;var n=x1();g.cache=new n({max:100});var i=g.GLOBSTAR=y.GLOBSTAR={},s=F1(),a=ot("path"),o="[^/]",u=o+"*?",l="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",c="(?:(?!(?:\\/|^)\\.).)*?",f=p("().*{}+?[]^$\\!");function p(S){return S.split("").reduce(function(A,B){return A[B]=!0,A},{})}var h=/\/+/;g.monkeyPatch=d;function d(){var S=Object.getOwnPropertyDescriptor(String.prototype,"match"),A=S.value;S.value=function(B){return B instanceof y?B.match(this):A.call(this,B)},Object.defineProperty(String.prototype,S)}g.filter=m;function m(S,A){return A=A||{},function(B,x,N){return g(B,S,A)}}function D(S,A){S=S||{},A=A||{};var B={};return Object.keys(A).forEach(function(x){B[x]=A[x]}),Object.keys(S).forEach(function(x){B[x]=S[x]}),B}g.defaults=function(S){if(!S||!Object.keys(S).length)return g;var A=g,B=function(N,H,T){return A.minimatch(N,H,D(S,T))};return B.Minimatch=function(N,H){return new A.Minimatch(N,D(S,H))},B},y.defaults=function(S){return!S||!Object.keys(S).length?y:g.defaults(S).Minimatch};function g(S,A,B){if(typeof A!="string")throw new TypeError("glob pattern string required");return B||(B={}),!B.nocomment&&A.charAt(0)==="#"?!1:A.trim()===""?S==="":new y(A,B).match(S)}function y(S,A){if(!(this instanceof y))return new y(S,A);if(typeof S!="string")throw new TypeError("glob pattern string required");A||(A={}),r==="win32"&&(S=S.split("\\").join("/"));var B=S+`
|
|
26
|
+
`+s(A),x=g.cache.get(B);if(x)return x;g.cache.set(B,this),this.options=A,this.set=[],this.pattern=S,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.make()}y.prototype.make=b;function b(){if(!this._made){var S=this.pattern,A=this.options;if(!A.nocomment&&S.charAt(0)==="#"){this.comment=!0;return}if(!S){this.empty=!0;return}this.parseNegate();var B=this.globSet=this.braceExpand();A.debug&&console.error(this.pattern,B),B=this.globParts=B.map(function(x){return x.split(h)}),A.debug&&console.error(this.pattern,B),B=B.map(function(x,N,H){return x.map(this.parse,this)},this),A.debug&&console.error(this.pattern,B),B=B.filter(function(x){return x.indexOf(!1)===-1}),A.debug&&console.error(this.pattern,B),this.set=B}}y.prototype.parseNegate=O;function O(){var S=this.pattern,A=!1,B=this.options,x=0;if(!B.nonegate){for(var N=0,H=S.length;N<H&&S.charAt(N)==="!";N++)A=!A,x++;x&&(this.pattern=S.substr(x)),this.negate=A}}g.braceExpand=function(S,A){return new y(S,A).braceExpand()},y.prototype.braceExpand=C;function C(S,A){if(A=A||this.options,S=typeof S>"u"?this.pattern:S,typeof S>"u")throw new Error("undefined pattern");if(A.nobrace||!S.match(/\{.*\}/))return[S];var re=!1;if(S.charAt(0)!=="{"){for(var B=null,ae=0,x=S.length;ae<x;ae++){var N=S.charAt(ae);if(N==="\\")re=!re;else if(N==="{"&&!re){B=S.substr(0,ae);break}}if(B===null)return[S];var H=C(S.substr(ae),A);return H.map(function(Te){return B+Te})}var T=S.match(/^\{(-?[0-9]+)\.\.(-?[0-9]+)\}/);if(T){for(var de=C(S.substr(T[0].length),A),_=+T[1],R=+T[2],Q=_>R?-1:1,te=[],ae=_;ae!=R+Q;ae+=Q)for(var ne=0,X=de.length;ne<X;ne++)te.push(ae+de[ne]);return te}var ae=1,ie=1,te=[],Y="",re=!1;function De(){te.push(Y),Y=""}e:for(ae=1,x=S.length;ae<x;ae++){var N=S.charAt(ae);if(re)re=!1,Y+="\\"+N;else switch(N){case"\\":re=!0;continue;case"{":ie++,Y+="{";continue;case"}":if(ie--,ie===0){De(),ae++;break e}else{Y+=N;continue}case",":ie===1?De():Y+=N;continue;default:Y+=N;continue}}if(ie!==0)return C("\\"+S,A);var de=C(S.substr(ae),A),Ce=te.length===1;te=te.map(function(Te){return C(Te,A)}),te=te.reduce(function(Te,Be){return Te.concat(Be)}),Ce&&(te=te.map(function(Te){return"{"+Te+"}"}));for(var Oe=[],ae=0,x=te.length;ae<x;ae++)for(var ne=0,X=de.length;ne<X;ne++)Oe.push(te[ae]+de[ne]);return Oe}y.prototype.parse=w;var $={};function w(S,A){var B=this.options;if(!B.noglobstar&&S==="**")return i;if(S==="")return"";var x="",N=!!B.nocase,H=!1,T=[],_,R,Q=!1,ne=-1,X=-1,ae=S.charAt(0)==="."?"":B.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)";function ie(){if(R){switch(R){case"*":x+=u,N=!0;break;case"?":x+=o,N=!0;break;default:x+="\\"+R;break}R=!1}}for(var te=0,Y=S.length,re;te<Y&&(re=S.charAt(te));te++){if(B.debug&&console.error("%s %s %s %j",S,te,x,re),H&&f[re]){x+="\\"+re,H=!1;continue}switch(re){case"/":return!1;case"\\":ie(),H=!0;continue;case"?":case"*":case"+":case"@":case"!":if(B.debug&&console.error("%s %s %s %j <-- stateChar",S,te,x,re),Q){re==="!"&&te===X+1&&(re="^"),x+=re;continue}ie(),R=re,B.noext&&ie();continue;case"(":if(Q){x+="(";continue}if(!R){x+="\\(";continue}_=R,T.push({type:_,start:te-1,reStart:x.length}),x+=R==="!"?"(?:(?!":"(?:",R=!1;continue;case")":if(Q||!T.length){x+="\\)";continue}switch(N=!0,x+=")",_=T.pop().type,_){case"!":x+="[^/]*?)";break;case"?":case"+":case"*":x+=_}continue;case"|":if(Q||!T.length||H){x+="\\|",H=!1;continue}x+="|";continue;case"[":if(ie(),Q){x+="\\"+re;continue}Q=!0,X=te,ne=x.length,x+=re;continue;case"]":if(te===X+1||!Q){x+="\\"+re,H=!1;continue}N=!0,Q=!1,x+=re;continue;default:ie(),H?H=!1:f[re]&&!(re==="^"&&Q)&&(x+="\\"),x+=re}}if(Q){var De=S.substr(X+1),de=this.parse(De,$);x=x.substr(0,ne)+"\\["+de[0],N=N||de[1]}for(var Ce;Ce=T.pop();){var Oe=x.slice(Ce.reStart+3);Oe=Oe.replace(/((?:\\{2})*)(\\?)\|/g,function(Ne,ge,Ae){return Ae||(Ae="\\"),ge+ge+Ae+"|"});var Te=Ce.type==="*"?u:Ce.type==="?"?o:"\\"+Ce.type;N=!0,x=x.slice(0,Ce.reStart)+Te+"\\("+Oe}ie(),H&&(x+="\\\\");var Be=!1;switch(x.charAt(0)){case".":case"[":case"(":Be=!0}if(x!==""&&N&&(x="(?=.)"+x),Be&&(x=ae+x),A===$)return[x,N];if(!N)return L(S);var ze=B.nocase?"i":"",_e=new RegExp("^"+x+"$",ze);return _e._glob=S,_e._src=x,_e}g.makeRe=function(S,A){return new y(S,A||{}).makeRe()},y.prototype.makeRe=P;function P(){if(this.regexp||this.regexp===!1)return this.regexp;var S=this.set;if(!S.length)return this.regexp=!1;var A=this.options,B=A.noglobstar?u:A.dot?l:c,x=A.nocase?"i":"",N=S.map(function(H){return H.map(function(T){return T===i?B:typeof T=="string"?F(T):T._src}).join("\\/")}).join("|");N="^(?:"+N+")$",this.negate&&(N="^(?!"+N+").*$");try{return this.regexp=new RegExp(N,x)}catch{return this.regexp=!1}}g.match=function(S,A,B){var x=new y(A,B);return S=S.filter(function(N){return x.match(N)}),B.nonull&&!S.length&&S.push(A),S},y.prototype.match=I;function I(S,A){if(this.comment)return!1;if(this.empty)return S==="";if(S==="/"&&A)return!0;var B=this.options;r==="win32"&&(S=S.split("\\").join("/")),S=S.split(h),B.debug&&console.error(this.pattern,"split",S);for(var x=this.set,N=0,H=x.length;N<H;N++){var T=x[N],_=this.matchOne(S,T,A);if(_)return B.flipNegate?!0:!this.negate}return B.flipNegate?!1:this.negate}y.prototype.matchOne=function(S,A,B){var x=this.options;x.debug&&console.error("matchOne",{this:this,file:S,pattern:A}),x.matchBase&&A.length===1&&(S=a.basename(S.join("/")).split("/")),x.debug&&console.error("matchOne",S.length,A.length);for(var N=0,H=0,T=S.length,_=A.length;N<T&&H<_;N++,H++){x.debug&&console.error("matchOne loop");var R=A[H],Q=S[N];if(x.debug&&console.error(A,R,Q),R===!1)return!1;if(R===i){x.debug&&console.error("GLOBSTAR",[A,R,Q]);var ne=N,X=H+1;if(X===_){for(x.debug&&console.error("** at the end");N<T;N++)if(S[N]==="."||S[N]===".."||!x.dot&&S[N].charAt(0)===".")return!1;return!0}e:for(;ne<T;){var ae=S[ne];if(x.debug&&console.error(`
|
|
27
|
+
globstar while`,S,ne,A,X,ae),this.matchOne(S.slice(ne),A.slice(X),B))return x.debug&&console.error("globstar found match!",ne,T,ae),!0;if(ae==="."||ae===".."||!x.dot&&ae.charAt(0)==="."){x.debug&&console.error("dot detected!",S,ne,A,X);break e}x.debug&&console.error("globstar swallow a segment, and continue"),ne++}return!!(B&&ne===T)}var ie;if(typeof R=="string"?(x.nocase?ie=Q.toLowerCase()===R.toLowerCase():ie=Q===R,x.debug&&console.error("string match",R,Q,ie)):(ie=Q.match(R),x.debug&&console.error("pattern match",R,Q,ie)),!ie)return!1}if(N===T&&H===_)return!0;if(N===T)return B;if(H===_){var te=N===T-1&&S[N]==="";return te}throw new Error("wtf?")};function L(S){return S.replace(/\\(.)/g,"$1")}function F(S){return S.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}}}),w1=he({"node_modules/editorconfig/src/lib/ini.js"(e){var t=e&&e.__awaiter||function(l,c,f,p){return new(f||(f=Promise))(function(h,d){function m(y){try{g(p.next(y))}catch(b){d(b)}}function D(y){try{g(p.throw(y))}catch(b){d(b)}}function g(y){y.done?h(y.value):new f(function(b){b(y.value)}).then(m,D)}g((p=p.apply(l,c||[])).next())})},r=e&&e.__generator||function(l,c){var f={label:0,sent:function(){if(d[0]&1)throw d[1];return d[1]},trys:[],ops:[]},p,h,d,m;return m={next:D(0),throw:D(1),return:D(2)},typeof Symbol=="function"&&(m[Symbol.iterator]=function(){return this}),m;function D(y){return function(b){return g([y,b])}}function g(y){if(p)throw new TypeError("Generator is already executing.");for(;f;)try{if(p=1,h&&(d=y[0]&2?h.return:y[0]?h.throw||((d=h.return)&&d.call(h),0):h.next)&&!(d=d.call(h,y[1])).done)return d;switch(h=0,d&&(y=[y[0]&2,d.value]),y[0]){case 0:case 1:d=y;break;case 4:return f.label++,{value:y[1],done:!1};case 5:f.label++,h=y[1],y=[0];continue;case 7:y=f.ops.pop(),f.trys.pop();continue;default:if(d=f.trys,!(d=d.length>0&&d[d.length-1])&&(y[0]===6||y[0]===2)){f=0;continue}if(y[0]===3&&(!d||y[1]>d[0]&&y[1]<d[3])){f.label=y[1];break}if(y[0]===6&&f.label<d[1]){f.label=d[1],d=y;break}if(d&&f.label<d[2]){f.label=d[2],f.ops.push(y);break}d[2]&&f.ops.pop(),f.trys.pop();continue}y=c.call(l,f)}catch(b){y=[6,b],h=0}finally{p=d=0}if(y[0]&5)throw y[1];return{value:y[0]?y[1]:void 0,done:!0}}},n=e&&e.__importStar||function(l){if(l&&l.__esModule)return l;var c={};if(l!=null)for(var f in l)Object.hasOwnProperty.call(l,f)&&(c[f]=l[f]);return c.default=l,c};Object.defineProperty(e,"__esModule",{value:!0});var i=n(ot("fs")),s={section:/^\s*\[(([^#;]|\\#|\\;)+)\]\s*([#;].*)?$/,param:/^\s*([\w\.\-\_]+)\s*[=:]\s*(.*?)\s*([#;].*)?$/,comment:/^\s*[#;].*$/};function a(l){return t(this,void 0,void 0,function(){return r(this,function(c){return[2,new Promise(function(f,p){i.readFile(l,"utf8",function(h,d){if(h){p(h);return}f(u(d))})})]})})}e.parse=a;function o(l){return u(i.readFileSync(l,"utf8"))}e.parseSync=o;function u(l){var c={},f=null,p=[[f,c]],h=l.split(/\r\n|\r|\n/);return h.forEach(function(d){var m;s.comment.test(d)||(s.param.test(d)?(m=d.match(s.param),c[m[1]]=m[2]):s.section.test(d)&&(m=d.match(s.section),f=m[1],c={},p.push([f,c])))}),p}e.parseString=u}}),I1=he({"node_modules/editorconfig/package.json"(e,t){t.exports={name:"editorconfig",version:"0.15.3",description:"EditorConfig File Locator and Interpreter for Node.js",keywords:["editorconfig","core"],main:"src/index.js",contributors:["Hong Xu (topbug.net)","Jed Mao (https://github.com/jedmao/)","Trey Hunner (http://treyhunner.com)"],directories:{bin:"./bin",lib:"./lib"},scripts:{clean:"rimraf dist",prebuild:"npm run clean",build:"tsc",pretest:"npm run lint && npm run build && npm run copy && cmake .",test:"ctest .","pretest:ci":"npm run pretest","test:ci":"ctest -VV --output-on-failure .",lint:"npm run eclint && npm run tslint",eclint:'eclint check --indent_size ignore "src/**"',tslint:"tslint --project tsconfig.json --exclude package.json",copy:"cpy .npmignore LICENSE README.md CHANGELOG.md dist && cpy bin/* dist/bin && cpy src/lib/fnmatch*.* dist/src/lib",prepub:"npm run lint && npm run build && npm run copy",pub:"npm publish ./dist"},repository:{type:"git",url:"git://github.com/editorconfig/editorconfig-core-js.git"},bugs:"https://github.com/editorconfig/editorconfig-core-js/issues",author:"EditorConfig Team",license:"MIT",dependencies:{commander:"^2.19.0","lru-cache":"^4.1.5",semver:"^5.6.0",sigmund:"^1.0.1"},devDependencies:{"@types/mocha":"^5.2.6","@types/node":"^10.12.29","@types/semver":"^5.5.0","cpy-cli":"^2.0.0",eclint:"^2.8.1",mocha:"^5.2.0",rimraf:"^2.6.3",should:"^13.2.3",tslint:"^5.13.1",typescript:"^3.3.3333"}}}}),O1=he({"node_modules/editorconfig/src/index.js"(e){var t=e&&e.__awaiter||function(F,S,A,B){return new(A||(A=Promise))(function(x,N){function H(R){try{_(B.next(R))}catch(Q){N(Q)}}function T(R){try{_(B.throw(R))}catch(Q){N(Q)}}function _(R){R.done?x(R.value):new A(function(Q){Q(R.value)}).then(H,T)}_((B=B.apply(F,S||[])).next())})},r=e&&e.__generator||function(F,S){var A={label:0,sent:function(){if(N[0]&1)throw N[1];return N[1]},trys:[],ops:[]},B,x,N,H;return H={next:T(0),throw:T(1),return:T(2)},typeof Symbol=="function"&&(H[Symbol.iterator]=function(){return this}),H;function T(R){return function(Q){return _([R,Q])}}function _(R){if(B)throw new TypeError("Generator is already executing.");for(;A;)try{if(B=1,x&&(N=R[0]&2?x.return:R[0]?x.throw||((N=x.return)&&N.call(x),0):x.next)&&!(N=N.call(x,R[1])).done)return N;switch(x=0,N&&(R=[R[0]&2,N.value]),R[0]){case 0:case 1:N=R;break;case 4:return A.label++,{value:R[1],done:!1};case 5:A.label++,x=R[1],R=[0];continue;case 7:R=A.ops.pop(),A.trys.pop();continue;default:if(N=A.trys,!(N=N.length>0&&N[N.length-1])&&(R[0]===6||R[0]===2)){A=0;continue}if(R[0]===3&&(!N||R[1]>N[0]&&R[1]<N[3])){A.label=R[1];break}if(R[0]===6&&A.label<N[1]){A.label=N[1],N=R;break}if(N&&A.label<N[2]){A.label=N[2],A.ops.push(R);break}N[2]&&A.ops.pop(),A.trys.pop();continue}R=S.call(F,A)}catch(Q){R=[6,Q],x=0}finally{B=N=0}if(R[0]&5)throw R[1];return{value:R[0]?R[1]:void 0,done:!0}}},n=e&&e.__importStar||function(F){if(F&&F.__esModule)return F;var S={};if(F!=null)for(var A in F)Object.hasOwnProperty.call(F,A)&&(S[A]=F[A]);return S.default=F,S},i=e&&e.__importDefault||function(F){return F&&F.__esModule?F:{default:F}};Object.defineProperty(e,"__esModule",{value:!0});var s=n(ot("fs")),a=n(ot("path")),o={gte:v1()},u=i(_1()),l=w1();e.parseString=l.parseString;var c=i(I1()),f={end_of_line:!0,indent_style:!0,indent_size:!0,insert_final_newline:!0,trim_trailing_whitespace:!0,charset:!0};function p(F,S){var A={matchBase:!0,dot:!0,noext:!0};return S=S.replace(/\*\*/g,"{*,**/**/**}"),u.default(F,S,A)}function h(F,S){var A=[];do F=a.dirname(F),A.push(a.join(F,S.config));while(F!==S.root);return A}function d(F,S){return"indent_style"in F&&F.indent_style==="tab"&&!("indent_size"in F)&&o.gte(S,"0.10.0")&&(F.indent_size="tab"),"indent_size"in F&&!("tab_width"in F)&&F.indent_size!=="tab"&&(F.tab_width=F.indent_size),"indent_size"in F&&"tab_width"in F&&F.indent_size==="tab"&&(F.indent_size=F.tab_width),F}function m(F,S){return F===void 0&&(F={}),{config:F.config||".editorconfig",version:F.version||c.default.version,root:a.resolve(F.root||a.parse(S).root)}}function D(F,S){switch(S.indexOf("/")){case-1:S="**/"+S;break;case 0:S=S.substring(1);break}return a.join(F,S)}function g(F,S){F===void 0&&(F={}),S===void 0&&(S={});for(var A in S)if(S.hasOwnProperty(A)){var B=S[A],x=A.toLowerCase(),N=B;f[x]&&(N=B.toLowerCase());try{N=JSON.parse(B)}catch{}(typeof B>"u"||B===null)&&(N=String(B)),F[x]=N}return F}function y(F,S,A){return d(F.reverse().reduce(function(B,x){var N=a.dirname(x.name);return x.contents.forEach(function(H){var T=H[0],_=H[1];if(T){var R=D(N,T);p(S,R)&&(B=g(B,_))}}),B},{}),A.version)}function b(F){var S=[];for(var A in F)if(F.hasOwnProperty(A)){var B=F[A],x=l.parseString(B.contents);if(S.push({name:B.name,contents:x}),(x[0][1].root||"").toLowerCase()==="true")break}return S}function O(F){return t(this,void 0,void 0,function(){return r(this,function(S){return[2,Promise.all(F.map(function(A){return new Promise(function(B){s.readFile(A,"utf8",function(x,N){B({name:A,contents:x?"":N})})})}))]})})}function C(F){var S=[],A;return F.forEach(function(B){try{A=s.readFileSync(B,"utf8")}catch{A=""}S.push({name:B,contents:A})}),S}function $(F,S){S===void 0&&(S={});var A=a.resolve(F);return[A,m(S,A)]}function w(F,S,A){return A===void 0&&(A={}),t(this,void 0,void 0,function(){var B,x,N;return r(this,function(H){return B=$(F,A),x=B[0],N=B[1],[2,S.then(b).then(function(T){return y(T,x,N)})]})})}e.parseFromFiles=w;function P(F,S,A){A===void 0&&(A={});var B=$(F,A),x=B[0],N=B[1];return y(b(S),x,N)}e.parseFromFilesSync=P;function I(F,S){return S===void 0&&(S={}),t(this,void 0,void 0,function(){var A,B,x,N;return r(this,function(H){return A=$(F,S),B=A[0],x=A[1],N=h(B,x),[2,O(N).then(b).then(function(T){return y(T,B,x)})]})})}e.parse=I;function L(F,S){S===void 0&&(S={});var A=$(F,S),B=A[0],x=A[1],N=h(B,x),H=C(N);return y(b(H),B,x)}e.parseSync=L}}),N1=he({"node_modules/ci-info/vendors.json"(e,t){t.exports=[{name:"Agola CI",constant:"AGOLA",env:"AGOLA_GIT_REF",pr:"AGOLA_PULL_REQUEST_ID"},{name:"Appcircle",constant:"APPCIRCLE",env:"AC_APPCIRCLE"},{name:"AppVeyor",constant:"APPVEYOR",env:"APPVEYOR",pr:"APPVEYOR_PULL_REQUEST_NUMBER"},{name:"AWS CodeBuild",constant:"CODEBUILD",env:"CODEBUILD_BUILD_ARN"},{name:"Azure Pipelines",constant:"AZURE_PIPELINES",env:"TF_BUILD",pr:{BUILD_REASON:"PullRequest"}},{name:"Bamboo",constant:"BAMBOO",env:"bamboo_planKey"},{name:"Bitbucket Pipelines",constant:"BITBUCKET",env:"BITBUCKET_COMMIT",pr:"BITBUCKET_PR_ID"},{name:"Bitrise",constant:"BITRISE",env:"BITRISE_IO",pr:"BITRISE_PULL_REQUEST"},{name:"Buddy",constant:"BUDDY",env:"BUDDY_WORKSPACE_ID",pr:"BUDDY_EXECUTION_PULL_REQUEST_ID"},{name:"Buildkite",constant:"BUILDKITE",env:"BUILDKITE",pr:{env:"BUILDKITE_PULL_REQUEST",ne:"false"}},{name:"CircleCI",constant:"CIRCLE",env:"CIRCLECI",pr:"CIRCLE_PULL_REQUEST"},{name:"Cirrus CI",constant:"CIRRUS",env:"CIRRUS_CI",pr:"CIRRUS_PR"},{name:"Codefresh",constant:"CODEFRESH",env:"CF_BUILD_ID",pr:{any:["CF_PULL_REQUEST_NUMBER","CF_PULL_REQUEST_ID"]}},{name:"Codemagic",constant:"CODEMAGIC",env:"CM_BUILD_ID",pr:"CM_PULL_REQUEST"},{name:"Codeship",constant:"CODESHIP",env:{CI_NAME:"codeship"}},{name:"Drone",constant:"DRONE",env:"DRONE",pr:{DRONE_BUILD_EVENT:"pull_request"}},{name:"dsari",constant:"DSARI",env:"DSARI"},{name:"Earthly",constant:"EARTHLY",env:"EARTHLY_CI"},{name:"Expo Application Services",constant:"EAS",env:"EAS_BUILD"},{name:"Gerrit",constant:"GERRIT",env:"GERRIT_PROJECT"},{name:"Gitea Actions",constant:"GITEA_ACTIONS",env:"GITEA_ACTIONS"},{name:"GitHub Actions",constant:"GITHUB_ACTIONS",env:"GITHUB_ACTIONS",pr:{GITHUB_EVENT_NAME:"pull_request"}},{name:"GitLab CI",constant:"GITLAB",env:"GITLAB_CI",pr:"CI_MERGE_REQUEST_ID"},{name:"GoCD",constant:"GOCD",env:"GO_PIPELINE_LABEL"},{name:"Google Cloud Build",constant:"GOOGLE_CLOUD_BUILD",env:"BUILDER_OUTPUT"},{name:"Harness CI",constant:"HARNESS",env:"HARNESS_BUILD_ID"},{name:"Heroku",constant:"HEROKU",env:{env:"NODE",includes:"/app/.heroku/node/bin/node"}},{name:"Hudson",constant:"HUDSON",env:"HUDSON_URL"},{name:"Jenkins",constant:"JENKINS",env:["JENKINS_URL","BUILD_ID"],pr:{any:["ghprbPullId","CHANGE_ID"]}},{name:"LayerCI",constant:"LAYERCI",env:"LAYERCI",pr:"LAYERCI_PULL_REQUEST"},{name:"Magnum CI",constant:"MAGNUM",env:"MAGNUM"},{name:"Netlify CI",constant:"NETLIFY",env:"NETLIFY",pr:{env:"PULL_REQUEST",ne:"false"}},{name:"Nevercode",constant:"NEVERCODE",env:"NEVERCODE",pr:{env:"NEVERCODE_PULL_REQUEST",ne:"false"}},{name:"Prow",constant:"PROW",env:"PROW_JOB_ID"},{name:"ReleaseHub",constant:"RELEASEHUB",env:"RELEASE_BUILD_ID"},{name:"Render",constant:"RENDER",env:"RENDER",pr:{IS_PULL_REQUEST:"true"}},{name:"Sail CI",constant:"SAIL",env:"SAILCI",pr:"SAIL_PULL_REQUEST_NUMBER"},{name:"Screwdriver",constant:"SCREWDRIVER",env:"SCREWDRIVER",pr:{env:"SD_PULL_REQUEST",ne:"false"}},{name:"Semaphore",constant:"SEMAPHORE",env:"SEMAPHORE",pr:"PULL_REQUEST_NUMBER"},{name:"Sourcehut",constant:"SOURCEHUT",env:{CI_NAME:"sourcehut"}},{name:"Strider CD",constant:"STRIDER",env:"STRIDER"},{name:"TaskCluster",constant:"TASKCLUSTER",env:["TASK_ID","RUN_ID"]},{name:"TeamCity",constant:"TEAMCITY",env:"TEAMCITY_VERSION"},{name:"Travis CI",constant:"TRAVIS",env:"TRAVIS",pr:{env:"TRAVIS_PULL_REQUEST",ne:"false"}},{name:"Vela",constant:"VELA",env:"VELA",pr:{VELA_PULL_REQUEST:"1"}},{name:"Vercel",constant:"VERCEL",env:{any:["NOW_BUILDER","VERCEL"]},pr:"VERCEL_GIT_PULL_REQUEST_ID"},{name:"Visual Studio App Center",constant:"APPCENTER",env:"APPCENTER_BUILD_ID"},{name:"Woodpecker",constant:"WOODPECKER",env:{CI:"woodpecker"},pr:{CI_BUILD_EVENT:"pull_request"}},{name:"Xcode Cloud",constant:"XCODE_CLOUD",env:"CI_XCODE_PROJECT",pr:"CI_PULL_REQUEST_NUMBER"},{name:"Xcode Server",constant:"XCODE_SERVER",env:"XCS"}]}}),B1=he({"node_modules/ci-info/index.js"(e){var t=N1(),r=process.env;Object.defineProperty(e,"_vendors",{value:t.map(function(i){return i.constant})}),e.name=null,e.isPR=null,t.forEach(function(i){const a=(Array.isArray(i.env)?i.env:[i.env]).every(function(o){return n(o)});if(e[i.constant]=a,!!a)switch(e.name=i.name,typeof i.pr){case"string":e.isPR=!!r[i.pr];break;case"object":"env"in i.pr?e.isPR=i.pr.env in r&&r[i.pr.env]!==i.pr.ne:"any"in i.pr?e.isPR=i.pr.any.some(function(o){return!!r[o]}):e.isPR=n(i.pr);break;default:e.isPR=null}}),e.isCI=!!(r.CI!=="false"&&(r.BUILD_ID||r.BUILD_NUMBER||r.CI||r.CI_APP_ID||r.CI_BUILD_ID||r.CI_BUILD_NUMBER||r.CI_NAME||r.CONTINUOUS_INTEGRATION||r.RUN_ID||e.name));function n(i){return typeof i=="string"?!!r[i]:"env"in i?r[i.env]&&r[i.env].includes(i.includes):"any"in i?i.any.some(function(s){return!!r[s]}):Object.keys(i).every(function(s){return r[s]===i[s]})}}}),L1=he({"node_modules/@iarna/toml/lib/parser.js"(e,t){var r=1114112,n=class Gm extends Error{constructor(o,u,l){super("[ParserError] "+o,u,l),this.name="ParserError",this.code="ParserError",Error.captureStackTrace&&Error.captureStackTrace(this,Gm)}},i=class{constructor(a){this.parser=a,this.buf="",this.returned=null,this.result=null,this.resultTable=null,this.resultArr=null}},s=class{constructor(){this.pos=0,this.col=0,this.line=0,this.obj={},this.ctx=this.obj,this.stack=[],this._buf="",this.char=null,this.ii=0,this.state=new i(this.parseStart)}parse(a){if(a.length===0||a.length==null)return;this._buf=String(a),this.ii=-1,this.char=-1;let o;for(;o===!1||this.nextChar();)o=this.runOne();this._buf=null}nextChar(){return this.char===10&&(++this.line,this.col=-1),++this.ii,this.char=this._buf.codePointAt(this.ii),++this.pos,++this.col,this.haveBuffer()}haveBuffer(){return this.ii<this._buf.length}runOne(){return this.state.parser.call(this,this.state.returned)}finish(){this.char=r;let a;do a=this.state.parser,this.runOne();while(this.state.parser!==a);return this.ctx=null,this.state=null,this._buf=null,this.obj}next(a){if(typeof a!="function")throw new n("Tried to set state to non-existent state: "+JSON.stringify(a));this.state.parser=a}goto(a){return this.next(a),this.runOne()}call(a,o){o&&this.next(o),this.stack.push(this.state),this.state=new i(a)}callNow(a,o){return this.call(a,o),this.runOne()}return(a){if(this.stack.length===0)throw this.error(new n("Stack underflow"));a===void 0&&(a=this.state.buf),this.state=this.stack.pop(),this.state.returned=a}returnNow(a){return this.return(a),this.runOne()}consume(){if(this.char===r)throw this.error(new n("Unexpected end-of-buffer"));this.state.buf+=this._buf[this.ii]}error(a){return a.line=this.line,a.col=this.col,a.pos=this.pos,a}parseStart(){throw new n("Must declare a parseStart method")}};s.END=r,s.Error=n,t.exports=s}}),k1=he({"node_modules/@iarna/toml/lib/create-datetime.js"(e,t){t.exports=r=>{const n=new Date(r);if(isNaN(n))throw new TypeError("Invalid Datetime");return n}}}),mc=he({"node_modules/@iarna/toml/lib/format-num.js"(e,t){t.exports=(r,n)=>{for(n=String(n);n.length<r;)n="0"+n;return n}}}),R1=he({"node_modules/@iarna/toml/lib/create-datetime-float.js"(e,t){var r=mc(),n=class extends Date{constructor(i){super(i+"Z"),this.isFloating=!0}toISOString(){const i=`${this.getUTCFullYear()}-${r(2,this.getUTCMonth()+1)}-${r(2,this.getUTCDate())}`,s=`${r(2,this.getUTCHours())}:${r(2,this.getUTCMinutes())}:${r(2,this.getUTCSeconds())}.${r(3,this.getUTCMilliseconds())}`;return`${i}T${s}`}};t.exports=i=>{const s=new n(i);if(isNaN(s))throw new TypeError("Invalid Datetime");return s}}}),M1=he({"node_modules/@iarna/toml/lib/create-date.js"(e,t){var r=mc(),n=global.Date,i=class extends n{constructor(s){super(s),this.isDate=!0}toISOString(){return`${this.getUTCFullYear()}-${r(2,this.getUTCMonth()+1)}-${r(2,this.getUTCDate())}`}};t.exports=s=>{const a=new i(s);if(isNaN(a))throw new TypeError("Invalid Datetime");return a}}}),j1=he({"node_modules/@iarna/toml/lib/create-time.js"(e,t){var r=mc(),n=class extends Date{constructor(i){super(`0000-01-01T${i}Z`),this.isTime=!0}toISOString(){return`${r(2,this.getUTCHours())}:${r(2,this.getUTCMinutes())}:${r(2,this.getUTCSeconds())}.${r(3,this.getUTCMilliseconds())}`}};t.exports=i=>{const s=new n(i);if(isNaN(s))throw new TypeError("Invalid Datetime");return s}}}),$1=he({"node_modules/@iarna/toml/lib/toml-parser.js"(e,t){t.exports=ta(L1()),t.exports.makeParserClass=ta;var r=class Ym extends Error{constructor(Et){super(Et),this.name="TomlError",Error.captureStackTrace&&Error.captureStackTrace(this,Ym),this.fromTOML=!0,this.wrapped=null}};r.wrap=ye=>{const Et=new r(ye.message);return Et.code=ye.code,Et.wrapped=ye,Et},t.exports.TomlError=r;var n=k1(),i=R1(),s=M1(),a=j1(),o=9,u=10,l=13,c=31,f=32,p=34,h=35,d=39,m=43,D=44,g=45,y=46,b=48,O=49,C=55,$=57,w=58,P=61,I=65,L=69,F=70,S=84,A=85,B=90,x=95,N=97,H=98,T=101,_=102,R=105,Q=108,ne=110,X=111,ae=114,ie=115,te=116,Y=117,re=120,De=122,de=123,Ce=125,Oe=91,Te=92,Be=93,ze=127,_e=55296,Ne=57343,ge={[H]:"\b",[te]:" ",[ne]:`
|
|
28
|
+
`,[_]:"\f",[ae]:"\r",[p]:'"',[Te]:"\\"};function Ae(ye){return ye>=b&&ye<=$}function st(ye){return ye>=I&&ye<=F||ye>=N&&ye<=_||ye>=b&&ye<=$}function fe(ye){return ye===O||ye===b}function Ue(ye){return ye>=b&&ye<=C}function Z(ye){return ye>=I&&ye<=B||ye>=N&&ye<=De||ye>=b&&ye<=$||ye===d||ye===p||ye===x||ye===g}function G(ye){return ye>=I&&ye<=B||ye>=N&&ye<=De||ye>=b&&ye<=$||ye===x||ye===g}var V=Symbol("type"),E=Symbol("declared"),j=Object.prototype.hasOwnProperty,z=Object.defineProperty,se={configurable:!0,enumerable:!0,writable:!0,value:void 0};function oe(ye,Et){return j.call(ye,Et)?!0:(Et==="__proto__"&&z(ye,"__proto__",se),!1)}var ce=Symbol("inline-table");function Pe(){return Object.defineProperties({},{[V]:{value:ce}})}function Ve(ye){return ye===null||typeof ye!="object"?!1:ye[V]===ce}var ue=Symbol("table");function je(){return Object.defineProperties({},{[V]:{value:ue},[E]:{value:!1,writable:!0}})}function qe(ye){return ye===null||typeof ye!="object"?!1:ye[V]===ue}var We=Symbol("content-type"),Re=Symbol("inline-list");function W(ye){return Object.defineProperties([],{[V]:{value:Re},[We]:{value:ye}})}function Se(ye){return ye===null||typeof ye!="object"?!1:ye[V]===Re}var Qe=Symbol("list");function ft(){return Object.defineProperties([],{[V]:{value:Qe}})}function lr(ye){return ye===null||typeof ye!="object"?!1:ye[V]===Qe}var Or;try{Or=ot("util").inspect.custom}catch{}var cr=Or||"inspect",fr=class{constructor(ye){try{this.value=global.BigInt.asIntN(64,ye)}catch{this.value=null}Object.defineProperty(this,V,{value:Jt})}isNaN(){return this.value===null}toString(){return String(this.value)}[cr](){return`[BigInt: ${this.toString()}]}`}valueOf(){return this.value}},Jt=Symbol("integer");function wt(ye){let Et=Number(ye);return Object.is(Et,-0)&&(Et=0),global.BigInt&&!Number.isSafeInteger(Et)?new fr(ye):Object.defineProperties(new Number(Et),{isNaN:{value:function(){return isNaN(this)}},[V]:{value:Jt},[cr]:{value:()=>`[Integer: ${ye}]`}})}function Tr(ye){return ye===null||typeof ye!="object"?!1:ye[V]===Jt}var on=Symbol("float");function $n(ye){return Object.defineProperties(new Number(ye),{[V]:{value:on},[cr]:{value:()=>`[Float: ${ye}]`}})}function un(ye){return ye===null||typeof ye!="object"?!1:ye[V]===on}function ea(ye){const Et=typeof ye;if(Et==="object"){if(ye===null)return"null";if(ye instanceof Date)return"datetime";if(V in ye)switch(ye[V]){case ce:return"inline-table";case Re:return"inline-list";case ue:return"table";case Qe:return"list";case on:return"float";case Jt:return"integer"}}return Et}function ta(ye){class Et extends ye{constructor(){super(),this.ctx=this.obj=je()}atEndOfWord(){return this.char===h||this.char===o||this.char===f||this.atEndOfLine()}atEndOfLine(){return this.char===ye.END||this.char===u||this.char===l}parseStart(){if(this.char===ye.END)return null;if(this.char===Oe)return this.call(this.parseTableOrList);if(this.char===h)return this.call(this.parseComment);if(this.char===u||this.char===f||this.char===o||this.char===l)return null;if(Z(this.char))return this.callNow(this.parseAssignStatement);throw this.error(new r(`Unknown character "${this.char}"`))}parseWhitespaceToEOL(){if(this.char===f||this.char===o||this.char===l)return null;if(this.char===h)return this.goto(this.parseComment);if(this.char===ye.END||this.char===u)return this.return();throw this.error(new r("Unexpected character, expected only whitespace or comments till end of line"))}parseAssignStatement(){return this.callNow(this.parseAssign,this.recordAssignStatement)}recordAssignStatement(Ee){let nt=this.ctx,zt=Ee.key.pop();for(let Gt of Ee.key){if(oe(nt,Gt)&&(!qe(nt[Gt])||nt[Gt][E]))throw this.error(new r("Can't redefine existing key"));nt=nt[Gt]=nt[Gt]||je()}if(oe(nt,zt))throw this.error(new r("Can't redefine existing key"));return Tr(Ee.value)||un(Ee.value)?nt[zt]=Ee.value.valueOf():nt[zt]=Ee.value,this.goto(this.parseWhitespaceToEOL)}parseAssign(){return this.callNow(this.parseKeyword,this.recordAssignKeyword)}recordAssignKeyword(Ee){return this.state.resultTable?this.state.resultTable.push(Ee):this.state.resultTable=[Ee],this.goto(this.parseAssignKeywordPreDot)}parseAssignKeywordPreDot(){if(this.char===y)return this.next(this.parseAssignKeywordPostDot);if(this.char!==f&&this.char!==o)return this.goto(this.parseAssignEqual)}parseAssignKeywordPostDot(){if(this.char!==f&&this.char!==o)return this.callNow(this.parseKeyword,this.recordAssignKeyword)}parseAssignEqual(){if(this.char===P)return this.next(this.parseAssignPreValue);throw this.error(new r('Invalid character, expected "="'))}parseAssignPreValue(){return this.char===f||this.char===o?null:this.callNow(this.parseValue,this.recordAssignValue)}recordAssignValue(Ee){return this.returnNow({key:this.state.resultTable,value:Ee})}parseComment(){do if(this.char===ye.END||this.char===u)return this.return();while(this.nextChar())}parseTableOrList(){if(this.char===Oe)this.next(this.parseList);else return this.goto(this.parseTable)}parseTable(){return this.ctx=this.obj,this.goto(this.parseTableNext)}parseTableNext(){return this.char===f||this.char===o?null:this.callNow(this.parseKeyword,this.parseTableMore)}parseTableMore(Ee){if(this.char===f||this.char===o)return null;if(this.char===Be){if(oe(this.ctx,Ee)&&(!qe(this.ctx[Ee])||this.ctx[Ee][E]))throw this.error(new r("Can't redefine existing key"));return this.ctx=this.ctx[Ee]=this.ctx[Ee]||je(),this.ctx[E]=!0,this.next(this.parseWhitespaceToEOL)}else if(this.char===y){if(!oe(this.ctx,Ee))this.ctx=this.ctx[Ee]=je();else if(qe(this.ctx[Ee]))this.ctx=this.ctx[Ee];else if(lr(this.ctx[Ee]))this.ctx=this.ctx[Ee][this.ctx[Ee].length-1];else throw this.error(new r("Can't redefine existing key"));return this.next(this.parseTableNext)}else throw this.error(new r("Unexpected character, expected whitespace, . or ]"))}parseList(){return this.ctx=this.obj,this.goto(this.parseListNext)}parseListNext(){return this.char===f||this.char===o?null:this.callNow(this.parseKeyword,this.parseListMore)}parseListMore(Ee){if(this.char===f||this.char===o)return null;if(this.char===Be){if(oe(this.ctx,Ee)||(this.ctx[Ee]=ft()),Se(this.ctx[Ee]))throw this.error(new r("Can't extend an inline array"));if(lr(this.ctx[Ee])){const nt=je();this.ctx[Ee].push(nt),this.ctx=nt}else throw this.error(new r("Can't redefine an existing key"));return this.next(this.parseListEnd)}else if(this.char===y){if(!oe(this.ctx,Ee))this.ctx=this.ctx[Ee]=je();else{if(Se(this.ctx[Ee]))throw this.error(new r("Can't extend an inline array"));if(Ve(this.ctx[Ee]))throw this.error(new r("Can't extend an inline table"));if(lr(this.ctx[Ee]))this.ctx=this.ctx[Ee][this.ctx[Ee].length-1];else if(qe(this.ctx[Ee]))this.ctx=this.ctx[Ee];else throw this.error(new r("Can't redefine an existing key"))}return this.next(this.parseListNext)}else throw this.error(new r("Unexpected character, expected whitespace, . or ]"))}parseListEnd(Ee){if(this.char===Be)return this.next(this.parseWhitespaceToEOL);throw this.error(new r("Unexpected character, expected whitespace, . or ]"))}parseValue(){if(this.char===ye.END)throw this.error(new r("Key without value"));if(this.char===p)return this.next(this.parseDoubleString);if(this.char===d)return this.next(this.parseSingleString);if(this.char===g||this.char===m)return this.goto(this.parseNumberSign);if(this.char===R)return this.next(this.parseInf);if(this.char===ne)return this.next(this.parseNan);if(Ae(this.char))return this.goto(this.parseNumberOrDateTime);if(this.char===te||this.char===_)return this.goto(this.parseBoolean);if(this.char===Oe)return this.call(this.parseInlineList,this.recordValue);if(this.char===de)return this.call(this.parseInlineTable,this.recordValue);throw this.error(new r("Unexpected character, expecting string, number, datetime, boolean, inline array or inline table"))}recordValue(Ee){return this.returnNow(Ee)}parseInf(){if(this.char===ne)return this.next(this.parseInf2);throw this.error(new r('Unexpected character, expected "inf", "+inf" or "-inf"'))}parseInf2(){if(this.char===_)return this.state.buf==="-"?this.return(-1/0):this.return(1/0);throw this.error(new r('Unexpected character, expected "inf", "+inf" or "-inf"'))}parseNan(){if(this.char===N)return this.next(this.parseNan2);throw this.error(new r('Unexpected character, expected "nan"'))}parseNan2(){if(this.char===ne)return this.return(NaN);throw this.error(new r('Unexpected character, expected "nan"'))}parseKeyword(){return this.char===p?this.next(this.parseBasicString):this.char===d?this.next(this.parseLiteralString):this.goto(this.parseBareKey)}parseBareKey(){do{if(this.char===ye.END)throw this.error(new r("Key ended without value"));if(G(this.char))this.consume();else{if(this.state.buf.length===0)throw this.error(new r("Empty bare keys are not allowed"));return this.returnNow()}}while(this.nextChar())}parseSingleString(){return this.char===d?this.next(this.parseLiteralMultiStringMaybe):this.goto(this.parseLiteralString)}parseLiteralString(){do{if(this.char===d)return this.return();if(this.atEndOfLine())throw this.error(new r("Unterminated string"));if(this.char===ze||this.char<=c&&this.char!==o)throw this.errorControlCharInString();this.consume()}while(this.nextChar())}parseLiteralMultiStringMaybe(){return this.char===d?this.next(this.parseLiteralMultiString):this.returnNow()}parseLiteralMultiString(){return this.char===l?null:this.char===u?this.next(this.parseLiteralMultiStringContent):this.goto(this.parseLiteralMultiStringContent)}parseLiteralMultiStringContent(){do{if(this.char===d)return this.next(this.parseLiteralMultiEnd);if(this.char===ye.END)throw this.error(new r("Unterminated multi-line string"));if(this.char===ze||this.char<=c&&this.char!==o&&this.char!==u&&this.char!==l)throw this.errorControlCharInString();this.consume()}while(this.nextChar())}parseLiteralMultiEnd(){return this.char===d?this.next(this.parseLiteralMultiEnd2):(this.state.buf+="'",this.goto(this.parseLiteralMultiStringContent))}parseLiteralMultiEnd2(){return this.char===d?this.return():(this.state.buf+="''",this.goto(this.parseLiteralMultiStringContent))}parseDoubleString(){return this.char===p?this.next(this.parseMultiStringMaybe):this.goto(this.parseBasicString)}parseBasicString(){do{if(this.char===Te)return this.call(this.parseEscape,this.recordEscapeReplacement);if(this.char===p)return this.return();if(this.atEndOfLine())throw this.error(new r("Unterminated string"));if(this.char===ze||this.char<=c&&this.char!==o)throw this.errorControlCharInString();this.consume()}while(this.nextChar())}recordEscapeReplacement(Ee){return this.state.buf+=Ee,this.goto(this.parseBasicString)}parseMultiStringMaybe(){return this.char===p?this.next(this.parseMultiString):this.returnNow()}parseMultiString(){return this.char===l?null:this.char===u?this.next(this.parseMultiStringContent):this.goto(this.parseMultiStringContent)}parseMultiStringContent(){do{if(this.char===Te)return this.call(this.parseMultiEscape,this.recordMultiEscapeReplacement);if(this.char===p)return this.next(this.parseMultiEnd);if(this.char===ye.END)throw this.error(new r("Unterminated multi-line string"));if(this.char===ze||this.char<=c&&this.char!==o&&this.char!==u&&this.char!==l)throw this.errorControlCharInString();this.consume()}while(this.nextChar())}errorControlCharInString(){let Ee="\\u00";return this.char<16&&(Ee+="0"),Ee+=this.char.toString(16),this.error(new r(`Control characters (codes < 0x1f and 0x7f) are not allowed in strings, use ${Ee} instead`))}recordMultiEscapeReplacement(Ee){return this.state.buf+=Ee,this.goto(this.parseMultiStringContent)}parseMultiEnd(){return this.char===p?this.next(this.parseMultiEnd2):(this.state.buf+='"',this.goto(this.parseMultiStringContent))}parseMultiEnd2(){return this.char===p?this.return():(this.state.buf+='""',this.goto(this.parseMultiStringContent))}parseMultiEscape(){return this.char===l||this.char===u?this.next(this.parseMultiTrim):this.char===f||this.char===o?this.next(this.parsePreMultiTrim):this.goto(this.parseEscape)}parsePreMultiTrim(){if(this.char===f||this.char===o)return null;if(this.char===l||this.char===u)return this.next(this.parseMultiTrim);throw this.error(new r("Can't escape whitespace"))}parseMultiTrim(){return this.char===u||this.char===f||this.char===o||this.char===l?null:this.returnNow()}parseEscape(){if(this.char in ge)return this.return(ge[this.char]);if(this.char===Y)return this.call(this.parseSmallUnicode,this.parseUnicodeReturn);if(this.char===A)return this.call(this.parseLargeUnicode,this.parseUnicodeReturn);throw this.error(new r("Unknown escape character: "+this.char))}parseUnicodeReturn(Ee){try{const nt=parseInt(Ee,16);if(nt>=_e&&nt<=Ne)throw this.error(new r("Invalid unicode, character in range 0xD800 - 0xDFFF is reserved"));return this.returnNow(String.fromCodePoint(nt))}catch(nt){throw this.error(r.wrap(nt))}}parseSmallUnicode(){if(st(this.char)){if(this.consume(),this.state.buf.length>=4)return this.return()}else throw this.error(new r("Invalid character in unicode sequence, expected hex"))}parseLargeUnicode(){if(st(this.char)){if(this.consume(),this.state.buf.length>=8)return this.return()}else throw this.error(new r("Invalid character in unicode sequence, expected hex"))}parseNumberSign(){return this.consume(),this.next(this.parseMaybeSignedInfOrNan)}parseMaybeSignedInfOrNan(){return this.char===R?this.next(this.parseInf):this.char===ne?this.next(this.parseNan):this.callNow(this.parseNoUnder,this.parseNumberIntegerStart)}parseNumberIntegerStart(){return this.char===b?(this.consume(),this.next(this.parseNumberIntegerExponentOrDecimal)):this.goto(this.parseNumberInteger)}parseNumberIntegerExponentOrDecimal(){return this.char===y?(this.consume(),this.call(this.parseNoUnder,this.parseNumberFloat)):this.char===L||this.char===T?(this.consume(),this.next(this.parseNumberExponentSign)):this.returnNow(wt(this.state.buf))}parseNumberInteger(){if(Ae(this.char))this.consume();else{if(this.char===x)return this.call(this.parseNoUnder);if(this.char===L||this.char===T)return this.consume(),this.next(this.parseNumberExponentSign);if(this.char===y)return this.consume(),this.call(this.parseNoUnder,this.parseNumberFloat);{const Ee=wt(this.state.buf);if(Ee.isNaN())throw this.error(new r("Invalid number"));return this.returnNow(Ee)}}}parseNoUnder(){if(this.char===x||this.char===y||this.char===L||this.char===T)throw this.error(new r("Unexpected character, expected digit"));if(this.atEndOfWord())throw this.error(new r("Incomplete number"));return this.returnNow()}parseNoUnderHexOctBinLiteral(){if(this.char===x||this.char===y)throw this.error(new r("Unexpected character, expected digit"));if(this.atEndOfWord())throw this.error(new r("Incomplete number"));return this.returnNow()}parseNumberFloat(){if(this.char===x)return this.call(this.parseNoUnder,this.parseNumberFloat);if(Ae(this.char))this.consume();else return this.char===L||this.char===T?(this.consume(),this.next(this.parseNumberExponentSign)):this.returnNow($n(this.state.buf))}parseNumberExponentSign(){if(Ae(this.char))return this.goto(this.parseNumberExponent);if(this.char===g||this.char===m)this.consume(),this.call(this.parseNoUnder,this.parseNumberExponent);else throw this.error(new r("Unexpected character, expected -, + or digit"))}parseNumberExponent(){if(Ae(this.char))this.consume();else return this.char===x?this.call(this.parseNoUnder):this.returnNow($n(this.state.buf))}parseNumberOrDateTime(){return this.char===b?(this.consume(),this.next(this.parseNumberBaseOrDateTime)):this.goto(this.parseNumberOrDateTimeOnly)}parseNumberOrDateTimeOnly(){if(this.char===x)return this.call(this.parseNoUnder,this.parseNumberInteger);if(Ae(this.char))this.consume(),this.state.buf.length>4&&this.next(this.parseNumberInteger);else return this.char===L||this.char===T?(this.consume(),this.next(this.parseNumberExponentSign)):this.char===y?(this.consume(),this.call(this.parseNoUnder,this.parseNumberFloat)):this.char===g?this.goto(this.parseDateTime):this.char===w?this.goto(this.parseOnlyTimeHour):this.returnNow(wt(this.state.buf))}parseDateTimeOnly(){if(this.state.buf.length<4){if(Ae(this.char))return this.consume();if(this.char===w)return this.goto(this.parseOnlyTimeHour);throw this.error(new r("Expected digit while parsing year part of a date"))}else{if(this.char===g)return this.goto(this.parseDateTime);throw this.error(new r("Expected hyphen (-) while parsing year part of date"))}}parseNumberBaseOrDateTime(){return this.char===H?(this.consume(),this.call(this.parseNoUnderHexOctBinLiteral,this.parseIntegerBin)):this.char===X?(this.consume(),this.call(this.parseNoUnderHexOctBinLiteral,this.parseIntegerOct)):this.char===re?(this.consume(),this.call(this.parseNoUnderHexOctBinLiteral,this.parseIntegerHex)):this.char===y?this.goto(this.parseNumberInteger):Ae(this.char)?this.goto(this.parseDateTimeOnly):this.returnNow(wt(this.state.buf))}parseIntegerHex(){if(st(this.char))this.consume();else{if(this.char===x)return this.call(this.parseNoUnderHexOctBinLiteral);{const Ee=wt(this.state.buf);if(Ee.isNaN())throw this.error(new r("Invalid number"));return this.returnNow(Ee)}}}parseIntegerOct(){if(Ue(this.char))this.consume();else{if(this.char===x)return this.call(this.parseNoUnderHexOctBinLiteral);{const Ee=wt(this.state.buf);if(Ee.isNaN())throw this.error(new r("Invalid number"));return this.returnNow(Ee)}}}parseIntegerBin(){if(fe(this.char))this.consume();else{if(this.char===x)return this.call(this.parseNoUnderHexOctBinLiteral);{const Ee=wt(this.state.buf);if(Ee.isNaN())throw this.error(new r("Invalid number"));return this.returnNow(Ee)}}}parseDateTime(){if(this.state.buf.length<4)throw this.error(new r("Years less than 1000 must be zero padded to four characters"));return this.state.result=this.state.buf,this.state.buf="",this.next(this.parseDateMonth)}parseDateMonth(){if(this.char===g){if(this.state.buf.length<2)throw this.error(new r("Months less than 10 must be zero padded to two characters"));return this.state.result+="-"+this.state.buf,this.state.buf="",this.next(this.parseDateDay)}else if(Ae(this.char))this.consume();else throw this.error(new r("Incomplete datetime"))}parseDateDay(){if(this.char===S||this.char===f){if(this.state.buf.length<2)throw this.error(new r("Days less than 10 must be zero padded to two characters"));return this.state.result+="-"+this.state.buf,this.state.buf="",this.next(this.parseStartTimeHour)}else{if(this.atEndOfWord())return this.returnNow(s(this.state.result+"-"+this.state.buf));if(Ae(this.char))this.consume();else throw this.error(new r("Incomplete datetime"))}}parseStartTimeHour(){return this.atEndOfWord()?this.returnNow(s(this.state.result)):this.goto(this.parseTimeHour)}parseTimeHour(){if(this.char===w){if(this.state.buf.length<2)throw this.error(new r("Hours less than 10 must be zero padded to two characters"));return this.state.result+="T"+this.state.buf,this.state.buf="",this.next(this.parseTimeMin)}else if(Ae(this.char))this.consume();else throw this.error(new r("Incomplete datetime"))}parseTimeMin(){if(this.state.buf.length<2&&Ae(this.char))this.consume();else{if(this.state.buf.length===2&&this.char===w)return this.state.result+=":"+this.state.buf,this.state.buf="",this.next(this.parseTimeSec);throw this.error(new r("Incomplete datetime"))}}parseTimeSec(){if(Ae(this.char)){if(this.consume(),this.state.buf.length===2)return this.state.result+=":"+this.state.buf,this.state.buf="",this.next(this.parseTimeZoneOrFraction)}else throw this.error(new r("Incomplete datetime"))}parseOnlyTimeHour(){if(this.char===w){if(this.state.buf.length<2)throw this.error(new r("Hours less than 10 must be zero padded to two characters"));return this.state.result=this.state.buf,this.state.buf="",this.next(this.parseOnlyTimeMin)}else throw this.error(new r("Incomplete time"))}parseOnlyTimeMin(){if(this.state.buf.length<2&&Ae(this.char))this.consume();else{if(this.state.buf.length===2&&this.char===w)return this.state.result+=":"+this.state.buf,this.state.buf="",this.next(this.parseOnlyTimeSec);throw this.error(new r("Incomplete time"))}}parseOnlyTimeSec(){if(Ae(this.char)){if(this.consume(),this.state.buf.length===2)return this.next(this.parseOnlyTimeFractionMaybe)}else throw this.error(new r("Incomplete time"))}parseOnlyTimeFractionMaybe(){if(this.state.result+=":"+this.state.buf,this.char===y)this.state.buf="",this.next(this.parseOnlyTimeFraction);else return this.return(a(this.state.result))}parseOnlyTimeFraction(){if(Ae(this.char))this.consume();else if(this.atEndOfWord()){if(this.state.buf.length===0)throw this.error(new r("Expected digit in milliseconds"));return this.returnNow(a(this.state.result+"."+this.state.buf))}else throw this.error(new r("Unexpected character in datetime, expected period (.), minus (-), plus (+) or Z"))}parseTimeZoneOrFraction(){if(this.char===y)this.consume(),this.next(this.parseDateTimeFraction);else if(this.char===g||this.char===m)this.consume(),this.next(this.parseTimeZoneHour);else{if(this.char===B)return this.consume(),this.return(n(this.state.result+this.state.buf));if(this.atEndOfWord())return this.returnNow(i(this.state.result+this.state.buf));throw this.error(new r("Unexpected character in datetime, expected period (.), minus (-), plus (+) or Z"))}}parseDateTimeFraction(){if(Ae(this.char))this.consume();else{if(this.state.buf.length===1)throw this.error(new r("Expected digit in milliseconds"));if(this.char===g||this.char===m)this.consume(),this.next(this.parseTimeZoneHour);else{if(this.char===B)return this.consume(),this.return(n(this.state.result+this.state.buf));if(this.atEndOfWord())return this.returnNow(i(this.state.result+this.state.buf));throw this.error(new r("Unexpected character in datetime, expected period (.), minus (-), plus (+) or Z"))}}}parseTimeZoneHour(){if(Ae(this.char)){if(this.consume(),/\d\d$/.test(this.state.buf))return this.next(this.parseTimeZoneSep)}else throw this.error(new r("Unexpected character in datetime, expected digit"))}parseTimeZoneSep(){if(this.char===w)this.consume(),this.next(this.parseTimeZoneMin);else throw this.error(new r("Unexpected character in datetime, expected colon"))}parseTimeZoneMin(){if(Ae(this.char)){if(this.consume(),/\d\d$/.test(this.state.buf))return this.return(n(this.state.result+this.state.buf))}else throw this.error(new r("Unexpected character in datetime, expected digit"))}parseBoolean(){if(this.char===te)return this.consume(),this.next(this.parseTrue_r);if(this.char===_)return this.consume(),this.next(this.parseFalse_a)}parseTrue_r(){if(this.char===ae)return this.consume(),this.next(this.parseTrue_u);throw this.error(new r("Invalid boolean, expected true or false"))}parseTrue_u(){if(this.char===Y)return this.consume(),this.next(this.parseTrue_e);throw this.error(new r("Invalid boolean, expected true or false"))}parseTrue_e(){if(this.char===T)return this.return(!0);throw this.error(new r("Invalid boolean, expected true or false"))}parseFalse_a(){if(this.char===N)return this.consume(),this.next(this.parseFalse_l);throw this.error(new r("Invalid boolean, expected true or false"))}parseFalse_l(){if(this.char===Q)return this.consume(),this.next(this.parseFalse_s);throw this.error(new r("Invalid boolean, expected true or false"))}parseFalse_s(){if(this.char===ie)return this.consume(),this.next(this.parseFalse_e);throw this.error(new r("Invalid boolean, expected true or false"))}parseFalse_e(){if(this.char===T)return this.return(!1);throw this.error(new r("Invalid boolean, expected true or false"))}parseInlineList(){if(this.char===f||this.char===o||this.char===l||this.char===u)return null;if(this.char===ye.END)throw this.error(new r("Unterminated inline array"));return this.char===h?this.call(this.parseComment):this.char===Be?this.return(this.state.resultArr||W()):this.callNow(this.parseValue,this.recordInlineListValue)}recordInlineListValue(Ee){if(this.state.resultArr){const nt=this.state.resultArr[We],zt=ea(Ee);if(nt!==zt)throw this.error(new r(`Inline lists must be a single type, not a mix of ${nt} and ${zt}`))}else this.state.resultArr=W(ea(Ee));return un(Ee)||Tr(Ee)?this.state.resultArr.push(Ee.valueOf()):this.state.resultArr.push(Ee),this.goto(this.parseInlineListNext)}parseInlineListNext(){if(this.char===f||this.char===o||this.char===l||this.char===u)return null;if(this.char===h)return this.call(this.parseComment);if(this.char===D)return this.next(this.parseInlineList);if(this.char===Be)return this.goto(this.parseInlineList);throw this.error(new r("Invalid character, expected whitespace, comma (,) or close bracket (])"))}parseInlineTable(){if(this.char===f||this.char===o)return null;if(this.char===ye.END||this.char===h||this.char===u||this.char===l)throw this.error(new r("Unterminated inline array"));return this.char===Ce?this.return(this.state.resultTable||Pe()):(this.state.resultTable||(this.state.resultTable=Pe()),this.callNow(this.parseAssign,this.recordInlineTableValue))}recordInlineTableValue(Ee){let nt=this.state.resultTable,zt=Ee.key.pop();for(let Gt of Ee.key){if(oe(nt,Gt)&&(!qe(nt[Gt])||nt[Gt][E]))throw this.error(new r("Can't redefine existing key"));nt=nt[Gt]=nt[Gt]||je()}if(oe(nt,zt))throw this.error(new r("Can't redefine existing key"));return Tr(Ee.value)||un(Ee.value)?nt[zt]=Ee.value.valueOf():nt[zt]=Ee.value,this.goto(this.parseInlineTableNext)}parseInlineTableNext(){if(this.char===f||this.char===o)return null;if(this.char===ye.END||this.char===h||this.char===u||this.char===l)throw this.error(new r("Unterminated inline array"));if(this.char===D)return this.next(this.parseInlineTable);if(this.char===Ce)return this.goto(this.parseInlineTable);throw this.error(new r("Invalid character, expected whitespace, comma (,) or close bracket (])"))}}return Et}}}),U1=he({"node_modules/@iarna/toml/parse-pretty-error.js"(e,t){t.exports=r;function r(n,i){if(n.pos==null||n.line==null)return n;let s=n.message;if(s+=` at row ${n.line+1}, col ${n.col+1}, pos ${n.pos}:
|
|
29
|
+
`,i&&i.split){const a=i.split(/\n/),o=String(Math.min(a.length,n.line+3)).length;let u=" ";for(;u.length<o;)u+=" ";for(let l=Math.max(0,n.line-1);l<Math.min(a.length,n.line+2);++l){let c=String(l+1);if(c.length<o&&(c=" "+c),n.line===l){s+=c+"> "+a[l]+`
|
|
30
|
+
`,s+=u+" ";for(let f=0;f<n.col;++f)s+=" ";s+=`^
|
|
31
|
+
`}else s+=c+": "+a[l]+`
|
|
32
|
+
`}}return n.message=s+`
|
|
33
|
+
`,n}}}),V1=he({"node_modules/@iarna/toml/parse-async.js"(e,t){t.exports=i;var r=$1(),n=U1();function i(s,a){a||(a={});const o=0,u=a.blocksize||40960,l=new r;return new Promise((f,p)=>{setImmediate(c,o,u,f,p)});function c(f,p,h,d){if(f>=s.length)try{return h(l.finish())}catch(m){return d(n(m,s))}try{l.parse(s.slice(f,f+p)),setImmediate(c,f+p,p,h,d)}catch(m){d(n(m,s))}}}}}),q1=he({"node_modules/js-tokens/index.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=/((['"])(?:(?!\2|\\).|\\(?:\r\n|[\s\S]))*(\2)?|`(?:[^`\\$]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{[^}]*\}?)*\}?)*(`)?)|(\/\/.*)|(\/\*(?:[^*]|\*(?!\/))*(\*\/)?)|(\/(?!\*)(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\]\\]).|\\.)+\/(?:(?!\s*(?:\b|[\u0080-\uFFFF$\\'"~({]|[+\-!](?!=)|\.?\d))|[gmiyus]{1,6}\b(?![\u0080-\uFFFF$\\]|\s*(?:[+\-*%&|^<>!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g,e.matchToToken=function(t){var r={type:"invalid",value:t[0],closed:void 0};return t[1]?(r.type="string",r.closed=!!(t[3]||t[4])):t[5]?r.type="comment":t[6]?(r.type="comment",r.closed=!!t[7]):t[8]?r.type="regex":t[9]?r.type="number":t[10]?r.type="name":t[11]?r.type="punctuator":t[12]&&(r.type="whitespace"),r}}}),K1=he({"node_modules/@babel/helper-validator-identifier/lib/identifier.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isIdentifierChar=l,e.isIdentifierName=c,e.isIdentifierStart=u;var t="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟊꟐꟑꟓꟕ-ꟙꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",r="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࢘-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・",n=new RegExp("["+t+"]"),i=new RegExp("["+t+r+"]");t=r=null;var s=[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,68,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,71,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,349,41,7,1,79,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,159,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,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,4026,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8936,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,757,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,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],a=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,81,2,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,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,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,406,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,330,3,10,1,2,0,49,6,4,4,14,9,5351,0,7,14,13835,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,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,983,6,110,6,6,9,4759,9,787719,239];function o(f,p){let h=65536;for(let d=0,m=p.length;d<m;d+=2){if(h+=p[d],h>f)return!1;if(h+=p[d+1],h>=f)return!0}return!1}function u(f){return f<65?f===36:f<=90?!0:f<97?f===95:f<=122?!0:f<=65535?f>=170&&n.test(String.fromCharCode(f)):o(f,s)}function l(f){return f<48?f===36:f<58?!0:f<65?!1:f<=90?!0:f<97?f===95:f<=122?!0:f<=65535?f>=170&&i.test(String.fromCharCode(f)):o(f,s)||o(f,a)}function c(f){let p=!0;for(let h=0;h<f.length;h++){let d=f.charCodeAt(h);if((d&64512)===55296&&h+1<f.length){const m=f.charCodeAt(++h);(m&64512)===56320&&(d=65536+((d&1023)<<10)+(m&1023))}if(p){if(p=!1,!u(d))return!1}else if(!l(d))return!1}return!p}}}),W1=he({"node_modules/@babel/helper-validator-identifier/lib/keyword.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isKeyword=l,e.isReservedWord=s,e.isStrictBindOnlyReservedWord=o,e.isStrictBindReservedWord=u,e.isStrictReservedWord=a;var t={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]},r=new Set(t.keyword),n=new Set(t.strict),i=new Set(t.strictBind);function s(c,f){return f&&c==="await"||c==="enum"}function a(c,f){return s(c,f)||n.has(c)}function o(c){return i.has(c)}function u(c,f){return a(c,f)||o(c)}function l(c){return r.has(c)}}}),H1=he({"node_modules/@babel/helper-validator-identifier/lib/index.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isIdentifierChar",{enumerable:!0,get:function(){return t.isIdentifierChar}}),Object.defineProperty(e,"isIdentifierName",{enumerable:!0,get:function(){return t.isIdentifierName}}),Object.defineProperty(e,"isIdentifierStart",{enumerable:!0,get:function(){return t.isIdentifierStart}}),Object.defineProperty(e,"isKeyword",{enumerable:!0,get:function(){return r.isKeyword}}),Object.defineProperty(e,"isReservedWord",{enumerable:!0,get:function(){return r.isReservedWord}}),Object.defineProperty(e,"isStrictBindOnlyReservedWord",{enumerable:!0,get:function(){return r.isStrictBindOnlyReservedWord}}),Object.defineProperty(e,"isStrictBindReservedWord",{enumerable:!0,get:function(){return r.isStrictBindReservedWord}}),Object.defineProperty(e,"isStrictReservedWord",{enumerable:!0,get:function(){return r.isStrictReservedWord}});var t=K1(),r=W1()}}),Xm=he({"node_modules/picocolors/picocolors.js"(e,t){var r=process.argv||[],n=process.env,i=!("NO_COLOR"in n||r.includes("--no-color"))&&("FORCE_COLOR"in n||r.includes("--color")||process.platform==="win32"||ot!=null&&ot("tty").isatty(1)&&n.TERM!=="dumb"||"CI"in n),s=(u,l,c=u)=>f=>{let p=""+f,h=p.indexOf(l,u.length);return~h?u+a(p,l,c,h)+l:u+p+l},a=(u,l,c,f)=>{let p="",h=0;do p+=u.substring(h,f)+c,h=f+l.length,f=u.indexOf(l,h);while(~f);return p+u.substring(h)},o=(u=i)=>{let l=u?s:()=>String;return{isColorSupported:u,reset:l("\x1B[0m","\x1B[0m"),bold:l("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"),dim:l("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"),italic:l("\x1B[3m","\x1B[23m"),underline:l("\x1B[4m","\x1B[24m"),inverse:l("\x1B[7m","\x1B[27m"),hidden:l("\x1B[8m","\x1B[28m"),strikethrough:l("\x1B[9m","\x1B[29m"),black:l("\x1B[30m","\x1B[39m"),red:l("\x1B[31m","\x1B[39m"),green:l("\x1B[32m","\x1B[39m"),yellow:l("\x1B[33m","\x1B[39m"),blue:l("\x1B[34m","\x1B[39m"),magenta:l("\x1B[35m","\x1B[39m"),cyan:l("\x1B[36m","\x1B[39m"),white:l("\x1B[37m","\x1B[39m"),gray:l("\x1B[90m","\x1B[39m"),bgBlack:l("\x1B[40m","\x1B[49m"),bgRed:l("\x1B[41m","\x1B[49m"),bgGreen:l("\x1B[42m","\x1B[49m"),bgYellow:l("\x1B[43m","\x1B[49m"),bgBlue:l("\x1B[44m","\x1B[49m"),bgMagenta:l("\x1B[45m","\x1B[49m"),bgCyan:l("\x1B[46m","\x1B[49m"),bgWhite:l("\x1B[47m","\x1B[49m")}};t.exports=o(),t.exports.createColors=o}}),G1=he({"node_modules/@babel/highlight/lib/index.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=g,e.shouldHighlight=d;var t=q1(),r=H1(),n=s(Xm(),!0);function i(y){if(typeof WeakMap!="function")return null;var b=new WeakMap,O=new WeakMap;return(i=function(C){return C?O:b})(y)}function s(y,b){if(y===null||typeof y!="object"&&typeof y!="function")return{default:y};var O=i(b);if(O&&O.has(y))return O.get(y);var C={__proto__:null},$=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var w in y)if(w!=="default"&&{}.hasOwnProperty.call(y,w)){var P=$?Object.getOwnPropertyDescriptor(y,w):null;P&&(P.get||P.set)?Object.defineProperty(C,w,P):C[w]=y[w]}return C.default=y,O&&O.set(y,C),C}var a=typeof process=="object"&&(process.env.FORCE_COLOR==="0"||process.env.FORCE_COLOR==="false")?(0,n.createColors)(!1):n.default,o=(y,b)=>O=>y(b(O)),u=new Set(["as","async","from","get","of","set"]);function l(y){return{keyword:y.cyan,capitalized:y.yellow,jsxIdentifier:y.yellow,punctuator:y.yellow,number:y.magenta,string:y.green,regex:y.magenta,comment:y.gray,invalid:o(o(y.white,y.bgRed),y.bold)}}var c=/\r\n|[\n\r\u2028\u2029]/,f=/^[()[\]{}]$/,p;{const y=/^[a-z][\w-]*$/i,b=function(O,C,$){if(O.type==="name"){if((0,r.isKeyword)(O.value)||(0,r.isStrictReservedWord)(O.value,!0)||u.has(O.value))return"keyword";if(y.test(O.value)&&($[C-1]==="<"||$.slice(C-2,C)==="</"))return"jsxIdentifier";if(O.value[0]!==O.value[0].toLowerCase())return"capitalized"}return O.type==="punctuator"&&f.test(O.value)?"bracket":O.type==="invalid"&&(O.value==="@"||O.value==="#")?"punctuator":O.type};p=function*(O){let C;for(;C=t.default.exec(O);){const $=t.matchToToken(C);yield{type:b($,C.index,O),value:$.value}}}}function h(y,b){let O="";for(const{type:C,value:$}of p(b)){const w=y[C];w?O+=$.split(c).map(P=>w(P)).join(`
|
|
34
|
+
`):O+=$}return O}function d(y){return a.isColorSupported||y.forceColor}var m=void 0;function D(y){if(y){var b;return(b=m)!=null||(m=(0,n.createColors)(!0)),m}return a}function g(y,b={}){if(y!==""&&d(b)){const O=l(D(b.forceColor));return h(O,y)}else return y}{let y,b;e.getChalk=({forceColor:O})=>{var C;if((C=y)!=null||(y=(xo(),lS(Vm))),O){var $;return($=b)!=null||(b=new y.constructor({enabled:!0,level:1})),b}return y}}}}),Jm=he({"node_modules/@babel/code-frame/lib/index.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.codeFrameColumns=h,e.default=d;var t=G1(),r=i(Xm(),!0);function n(m){if(typeof WeakMap!="function")return null;var D=new WeakMap,g=new WeakMap;return(n=function(y){return y?g:D})(m)}function i(m,D){if(m===null||typeof m!="object"&&typeof m!="function")return{default:m};var g=n(D);if(g&&g.has(m))return g.get(m);var y={__proto__:null},b=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var O in m)if(O!=="default"&&{}.hasOwnProperty.call(m,O)){var C=b?Object.getOwnPropertyDescriptor(m,O):null;C&&(C.get||C.set)?Object.defineProperty(y,O,C):y[O]=m[O]}return y.default=m,g&&g.set(m,y),y}var s=typeof process=="object"&&(process.env.FORCE_COLOR==="0"||process.env.FORCE_COLOR==="false")?(0,r.createColors)(!1):r.default,a=(m,D)=>g=>m(D(g)),o=void 0;function u(m){if(m){var D;return(D=o)!=null||(o=(0,r.createColors)(!0)),o}return s}var l=!1;function c(m){return{gutter:m.gray,marker:a(m.red,m.bold),message:a(m.red,m.bold)}}var f=/\r\n|[\n\r\u2028\u2029]/;function p(m,D,g){const y=Object.assign({column:0,line:-1},m.start),b=Object.assign({},y,m.end),{linesAbove:O=2,linesBelow:C=3}=g||{},$=y.line,w=y.column,P=b.line,I=b.column;let L=Math.max($-(O+1),0),F=Math.min(D.length,P+C);$===-1&&(L=0),P===-1&&(F=D.length);const S=P-$,A={};if(S)for(let B=0;B<=S;B++){const x=B+$;if(!w)A[x]=!0;else if(B===0){const N=D[x-1].length;A[x]=[w,N-w+1]}else if(B===S)A[x]=[0,I];else{const N=D[x-B].length;A[x]=[0,N]}}else w===I?w?A[$]=[w,0]:A[$]=!0:A[$]=[w,I-w];return{start:L,end:F,markerLines:A}}function h(m,D,g={}){const y=(g.highlightCode||g.forceColor)&&(0,t.shouldHighlight)(g),b=u(g.forceColor),O=c(b),C=(B,x)=>y?B(x):x,$=m.split(f),{start:w,end:P,markerLines:I}=p(D,$,g),L=D.start&&typeof D.start.column=="number",F=String(P).length;let A=(y?(0,t.default)(m,g):m).split(f,P).slice(w,P).map((B,x)=>{const N=w+1+x,T=` ${` ${N}`.slice(-F)} |`,_=I[N],R=!I[N+1];if(_){let Q="";if(Array.isArray(_)){const ne=B.slice(0,Math.max(_[0]-1,0)).replace(/[^\t]/g," "),X=_[1]||1;Q=[`
|
|
35
|
+
`,C(O.gutter,T.replace(/\d/g," "))," ",ne,C(O.marker,"^").repeat(X)].join(""),R&&g.message&&(Q+=" "+C(O.message,g.message))}return[C(O.marker,">"),C(O.gutter,T),B.length>0?` ${B}`:"",Q].join("")}else return` ${C(O.gutter,T)}${B.length>0?` ${B}`:""}`}).join(`
|
|
36
|
+
`);return g.message&&!L&&(A=`${" ".repeat(F+1)}${g.message}
|
|
37
|
+
${A}`),y?b.reset(A):A}function d(m,D,g,y={}){if(!l){l=!0;const O="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";if(process.emitWarning)process.emitWarning(O,"DeprecationWarning");else{const C=new Error(O);C.name="DeprecationWarning",console.warn(new Error(O))}}return g=Math.max(g,0),h(m,{start:{column:g,line:D}},y)}}}),Y1=he({"node_modules/ignore/index.js"(e,t){function r(T){return Array.isArray(T)?T:[T]}var n="",i=" ",s="\\",a=/^\s+$/,o=/(?:[^\\]|^)\\$/,u=/^\\!/,l=/^\\#/,c=/\r?\n/g,f=/^\.*\/|^\.+$/,p="/",h="node-ignore";typeof Symbol<"u"&&(h=Symbol.for("node-ignore"));var d=h,m=(T,_,R)=>Object.defineProperty(T,_,{value:R}),D=/([0-z])-([0-z])/g,g=()=>!1,y=T=>T.replace(D,(_,R,Q)=>R.charCodeAt(0)<=Q.charCodeAt(0)?_:n),b=T=>{const{length:_}=T;return T.slice(0,_-_%2)},O=[[/^\uFEFF/,()=>n],[/\\?\s+$/,T=>T.indexOf("\\")===0?i:n],[/\\\s/g,()=>i],[/[\\$.|*+(){^]/g,T=>`\\${T}`],[/(?!\\)\?/g,()=>"[^/]"],[/^\//,()=>"^"],[/\//g,()=>"\\/"],[/^\^*\\\*\\\*\\\//,()=>"^(?:.*\\/)?"],[/^(?=[^^])/,function(){return/\/(?!$)/.test(this)?"^":"(?:^|\\/)"}],[/\\\/\\\*\\\*(?=\\\/|$)/g,(T,_,R)=>_+6<R.length?"(?:\\/[^\\/]+)*":"\\/.+"],[/(^|[^\\]+)(\\\*)+(?=.+)/g,(T,_,R)=>{const Q=R.replace(/\\\*/g,"[^\\/]*");return _+Q}],[/\\\\\\(?=[$.|*+(){^])/g,()=>s],[/\\\\/g,()=>s],[/(\\)?\[([^\]/]*?)(\\*)($|\])/g,(T,_,R,Q,ne)=>_===s?`\\[${R}${b(Q)}${ne}`:ne==="]"&&Q.length%2===0?`[${y(R)}${Q}]`:"[]"],[/(?:[^*])$/,T=>/\/$/.test(T)?`${T}$`:`${T}(?=$|\\/$)`],[/(\^|\\\/)?\\\*$/,(T,_)=>`${_?`${_}[^/]+`:"[^/]*"}(?=$|\\/$)`]],C=Object.create(null),$=(T,_)=>{let R=C[T];return R||(R=O.reduce((Q,ne)=>Q.replace(ne[0],ne[1].bind(T)),T),C[T]=R),_?new RegExp(R,"i"):new RegExp(R)},w=T=>typeof T=="string",P=T=>T&&w(T)&&!a.test(T)&&!o.test(T)&&T.indexOf("#")!==0,I=T=>T.split(c),L=class{constructor(T,_,R,Q){this.origin=T,this.pattern=_,this.negative=R,this.regex=Q}},F=(T,_)=>{const R=T;let Q=!1;T.indexOf("!")===0&&(Q=!0,T=T.substr(1)),T=T.replace(u,"!").replace(l,"#");const ne=$(T,_);return new L(R,T,Q,ne)},S=(T,_)=>{throw new _(T)},A=(T,_,R)=>w(T)?T?A.isNotRelative(T)?R(`path should be a \`path.relative()\`d string, but got "${_}"`,RangeError):!0:R("path must not be empty",TypeError):R(`path must be a string, but got \`${_}\``,TypeError),B=T=>f.test(T);A.isNotRelative=B,A.convert=T=>T;var x=class{constructor({ignorecase:T=!0,ignoreCase:_=T,allowRelativePaths:R=!1}={}){m(this,d,!0),this._rules=[],this._ignoreCase=_,this._allowRelativePaths=R,this._initCache()}_initCache(){this._ignoreCache=Object.create(null),this._testCache=Object.create(null)}_addPattern(T){if(T&&T[d]){this._rules=this._rules.concat(T._rules),this._added=!0;return}if(P(T)){const _=F(T,this._ignoreCase);this._added=!0,this._rules.push(_)}}add(T){return this._added=!1,r(w(T)?I(T):T).forEach(this._addPattern,this),this._added&&this._initCache(),this}addPattern(T){return this.add(T)}_testOne(T,_){let R=!1,Q=!1;return this._rules.forEach(ne=>{const{negative:X}=ne;if(Q===X&&R!==Q||X&&!R&&!Q&&!_)return;ne.regex.test(T)&&(R=!X,Q=X)}),{ignored:R,unignored:Q}}_test(T,_,R,Q){const ne=T&&A.convert(T);return A(ne,T,this._allowRelativePaths?g:S),this._t(ne,_,R,Q)}_t(T,_,R,Q){if(T in _)return _[T];if(Q||(Q=T.split(p)),Q.pop(),!Q.length)return _[T]=this._testOne(T,R);const ne=this._t(Q.join(p)+p,_,R,Q);return _[T]=ne.ignored?ne:this._testOne(T,R)}ignores(T){return this._test(T,this._ignoreCache,!1).ignored}createFilter(){return T=>!this.ignores(T)}filter(T){return r(T).filter(this.createFilter())}test(T){return this._test(T,this._testCache,!0)}},N=T=>new x(T),H=T=>A(T&&A.convert(T),T,g);if(N.isPathValid=H,N.default=N,t.exports=N,typeof process<"u"&&(process.env&&process.env.IGNORE_TEST_WIN32||process.platform==="win32")){const T=R=>/^\\\\\?\\/.test(R)||/["<>|\u0000-\u001F]+/u.test(R)?R:R.replace(/\\/g,"/");A.convert=T;const _=/^[a-z]:\//i;A.isNotRelative=R=>_.test(R)||B(R)}}}),X1=he({"node_modules/n-readlines/readlines.js"(e,t){var r=ot("fs"),n=class{constructor(i,s){s=s||{},s.readChunk||(s.readChunk=1024),s.newLineCharacter?s.newLineCharacter=s.newLineCharacter.charCodeAt(0):s.newLineCharacter=10,typeof i=="number"?this.fd=i:this.fd=r.openSync(i,"r"),this.options=s,this.newLineCharacter=s.newLineCharacter,this.reset()}_searchInBuffer(i,s){let a=-1;for(let o=0;o<=i.length;o++)if(i[o]===s){a=o;break}return a}reset(){this.eofReached=!1,this.linesCache=[],this.fdPosition=0}close(){r.closeSync(this.fd),this.fd=null}_extractLines(i){let s;const a=[];let o=0,u=0;for(;;){let c=i[o++];if(c===this.newLineCharacter)s=i.slice(u,o),a.push(s),u=o;else if(c===void 0)break}let l=i.slice(u,o);return l.length&&a.push(l),a}_readChunk(i){let s=0,a;const o=[];do{const l=Buffer.alloc(this.options.readChunk);a=r.readSync(this.fd,l,0,this.options.readChunk,this.fdPosition),s=s+a,this.fdPosition=this.fdPosition+a,o.push(l)}while(a&&this._searchInBuffer(o[o.length-1],this.options.newLineCharacter)===-1);let u=Buffer.concat(o);return a<this.options.readChunk&&(this.eofReached=!0,u=u.slice(0,s)),s&&(this.linesCache=this._extractLines(u),i&&(this.linesCache[0]=Buffer.concat([i,this.linesCache[0]]))),s}next(){if(!this.fd)return!1;let i=!1;if(this.eofReached&&this.linesCache.length===0)return i;let s;return this.linesCache.length||(s=this._readChunk()),this.linesCache.length&&(i=this.linesCache.shift(),i[i.length-1]!==this.newLineCharacter&&(s=this._readChunk(i),s&&(i=this.linesCache.shift()))),this.eofReached&&this.linesCache.length===0&&this.close(),i&&i[i.length-1]===this.newLineCharacter&&(i=i.slice(0,i.length-1)),i}};t.exports=n}}),zm={};Ri(zm,{__debug:()=>j_,__internal:()=>M_,check:()=>B_,clearConfigCache:()=>L_,doc:()=>rS,format:()=>S0,formatWithCursor:()=>T0,getFileInfo:()=>k_,getSupportInfo:()=>R_,resolveConfig:()=>Vy,resolveConfigFile:()=>Cx,util:()=>b0,version:()=>c_});function Nn(){}Nn.prototype={diff:function(t,r){var n,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=i.callback;typeof i=="function"&&(s=i,i={}),this.options=i;var a=this;function o(O){return s?(setTimeout(function(){s(void 0,O)},0),!0):O}t=this.castInput(t),r=this.castInput(r),t=this.removeEmpty(this.tokenize(t)),r=this.removeEmpty(this.tokenize(r));var u=r.length,l=t.length,c=1,f=u+l;i.maxEditLength&&(f=Math.min(f,i.maxEditLength));var p=(n=i.timeout)!==null&&n!==void 0?n:1/0,h=Date.now()+p,d=[{oldPos:-1,lastComponent:void 0}],m=this.extractCommon(d[0],r,t,0);if(d[0].oldPos+1>=l&&m+1>=u)return o([{value:this.join(r),count:r.length}]);var D=-1/0,g=1/0;function y(){for(var O=Math.max(D,-c);O<=Math.min(g,c);O+=2){var C=void 0,$=d[O-1],w=d[O+1];$&&(d[O-1]=void 0);var P=!1;if(w){var I=w.oldPos-O;P=w&&0<=I&&I<u}var L=$&&$.oldPos+1<l;if(!P&&!L){d[O]=void 0;continue}if(!L||P&&$.oldPos+1<w.oldPos?C=a.addToPath(w,!0,void 0,0):C=a.addToPath($,void 0,!0,1),m=a.extractCommon(C,r,t,O),C.oldPos+1>=l&&m+1>=u)return o(J1(a,C.lastComponent,r,t,a.useLongestToken));d[O]=C,C.oldPos+1>=l&&(g=Math.min(g,O-1)),m+1>=u&&(D=Math.max(D,O+1))}c++}if(s)(function O(){setTimeout(function(){if(c>f||Date.now()>h)return s();y()||O()},0)})();else for(;c<=f&&Date.now()<=h;){var b=y();if(b)return b}},addToPath:function(t,r,n,i){var s=t.lastComponent;return s&&s.added===r&&s.removed===n?{oldPos:t.oldPos+i,lastComponent:{count:s.count+1,added:r,removed:n,previousComponent:s.previousComponent}}:{oldPos:t.oldPos+i,lastComponent:{count:1,added:r,removed:n,previousComponent:s}}},extractCommon:function(t,r,n,i){for(var s=r.length,a=n.length,o=t.oldPos,u=o-i,l=0;u+1<s&&o+1<a&&this.equals(r[u+1],n[o+1]);)u++,o++,l++;return l&&(t.lastComponent={count:l,previousComponent:t.lastComponent}),t.oldPos=o,u},equals:function(t,r){return this.options.comparator?this.options.comparator(t,r):t===r||this.options.ignoreCase&&t.toLowerCase()===r.toLowerCase()},removeEmpty:function(t){for(var r=[],n=0;n<t.length;n++)t[n]&&r.push(t[n]);return r},castInput:function(t){return t},tokenize:function(t){return t.split("")},join:function(t){return t.join("")}};function J1(e,t,r,n,i){for(var s=[],a;t;)s.push(t),a=t.previousComponent,delete t.previousComponent,t=a;s.reverse();for(var o=0,u=s.length,l=0,c=0;o<u;o++){var f=s[o];if(f.removed){if(f.value=e.join(n.slice(c,c+f.count)),c+=f.count,o&&s[o-1].added){var h=s[o-1];s[o-1]=s[o],s[o]=h}}else{if(!f.added&&i){var p=r.slice(l,l+f.count);p=p.map(function(m,D){var g=n[c+D];return g.length>m.length?g:m}),f.value=e.join(p)}else f.value=e.join(r.slice(l,l+f.count));l+=f.count,f.added||(c+=f.count)}}var d=s[u-1];return u>1&&typeof d.value=="string"&&(d.added||d.removed)&&e.equals("",d.value)&&(s[u-2].value+=d.value,s.pop()),s}var Zf=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,ep=/\S/,Qm=new Nn;Qm.equals=function(e,t){return this.options.ignoreCase&&(e=e.toLowerCase(),t=t.toLowerCase()),e===t||this.options.ignoreWhitespace&&!ep.test(e)&&!ep.test(t)};Qm.tokenize=function(e){for(var t=e.split(/([^\S\r\n]+|[()[\]{}'"\r\n]|\b)/),r=0;r<t.length-1;r++)!t[r+1]&&t[r+2]&&Zf.test(t[r])&&Zf.test(t[r+2])&&(t[r]+=t[r+2],t.splice(r+1,2),r--);return t};var yc=new Nn;yc.tokenize=function(e){this.options.stripTrailingCr&&(e=e.replace(/\r\n/g,`
|
|
38
|
+
`));var t=[],r=e.split(/(\n|\r\n)/);r[r.length-1]||r.pop();for(var n=0;n<r.length;n++){var i=r[n];n%2&&!this.options.newlineIsToken?t[t.length-1]+=i:(this.options.ignoreWhitespace&&(i=i.trim()),t.push(i))}return t};function z1(e,t,r){return yc.diff(e,t,r)}var Q1=new Nn;Q1.tokenize=function(e){return e.split(/(\S.+?[.!?])(?=\s+|$)/)};var Z1=new Nn;Z1.tokenize=function(e){return e.split(/([{}:;,]|\s+)/)};function Va(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Va=function(t){return typeof t}:Va=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Va(e)}function yu(e){return ev(e)||tv(e)||rv(e)||nv()}function ev(e){if(Array.isArray(e))return bl(e)}function tv(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function rv(e,t){if(e){if(typeof e=="string")return bl(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return bl(e,t)}}function bl(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function nv(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
39
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var iv=Object.prototype.toString,_s=new Nn;_s.useLongestToken=!0;_s.tokenize=yc.tokenize;_s.castInput=function(e){var t=this.options,r=t.undefinedReplacement,n=t.stringifyReplacer,i=n===void 0?function(s,a){return typeof a>"u"?r:a}:n;return typeof e=="string"?e:JSON.stringify(Tl(e,null,null,i),i," ")};_s.equals=function(e,t){return Nn.prototype.equals.call(_s,e.replace(/,([\r\n])/g,"$1"),t.replace(/,([\r\n])/g,"$1"))};function Tl(e,t,r,n,i){t=t||[],r=r||[],n&&(e=n(i,e));var s;for(s=0;s<t.length;s+=1)if(t[s]===e)return r[s];var a;if(iv.call(e)==="[object Array]"){for(t.push(e),a=new Array(e.length),r.push(a),s=0;s<e.length;s+=1)a[s]=Tl(e[s],t,r,n,i);return t.pop(),r.pop(),a}if(e&&e.toJSON&&(e=e.toJSON()),Va(e)==="object"&&e!==null){t.push(e),a={},r.push(a);var o=[],u;for(u in e)e.hasOwnProperty(u)&&o.push(u);for(o.sort(),s=0;s<o.length;s+=1)u=o[s],a[u]=Tl(e[u],t,r,n,u);t.pop(),r.pop()}else a=e;return a}var uo=new Nn;uo.tokenize=function(e){return e.slice()};uo.join=uo.removeEmpty=function(e){return e};function sv(e,t,r){return uo.diff(e,t,r)}function av(e,t,r,n,i,s,a){a||(a={}),typeof a.context>"u"&&(a.context=4);var o=z1(r,n,a);if(!o)return;o.push({value:"",lines:[]});function u(g){return g.map(function(y){return" "+y})}for(var l=[],c=0,f=0,p=[],h=1,d=1,m=function(y){var b=o[y],O=b.lines||b.value.replace(/\n$/,"").split(`
|
|
40
|
+
`);if(b.lines=O,b.added||b.removed){var C;if(!c){var $=o[y-1];c=h,f=d,$&&(p=a.context>0?u($.lines.slice(-a.context)):[],c-=p.length,f-=p.length)}(C=p).push.apply(C,yu(O.map(function(B){return(b.added?"+":"-")+B}))),b.added?d+=O.length:h+=O.length}else{if(c)if(O.length<=a.context*2&&y<o.length-2){var w;(w=p).push.apply(w,yu(u(O)))}else{var P,I=Math.min(O.length,a.context);(P=p).push.apply(P,yu(u(O.slice(0,I))));var L={oldStart:c,oldLines:h-c+I,newStart:f,newLines:d-f+I,lines:p};if(y>=o.length-2&&O.length<=a.context){var F=/\n$/.test(r),S=/\n$/.test(n),A=O.length==0&&p.length>L.oldLines;!F&&A&&r.length>0&&p.splice(L.oldLines,0,"\"),(!F&&!A||!S)&&p.push("\")}l.push(L),c=0,f=0,p=[]}h+=O.length,d+=O.length}},D=0;D<o.length;D++)m(D);return{oldFileName:e,newFileName:t,oldHeader:i,newHeader:s,hunks:l}}function Zm(e){if(Array.isArray(e))return e.map(Zm).join(`
|
|
41
|
+
`);var t=[];e.oldFileName==e.newFileName&&t.push("Index: "+e.oldFileName),t.push("==================================================================="),t.push("--- "+e.oldFileName+(typeof e.oldHeader>"u"?"":" "+e.oldHeader)),t.push("+++ "+e.newFileName+(typeof e.newHeader>"u"?"":" "+e.newHeader));for(var r=0;r<e.hunks.length;r++){var n=e.hunks[r];n.oldLines===0&&(n.oldStart-=1),n.newLines===0&&(n.newStart-=1),t.push("@@ -"+n.oldStart+","+n.oldLines+" +"+n.newStart+","+n.newLines+" @@"),t.push.apply(t,n.lines)}return t.join(`
|
|
42
|
+
`)+`
|
|
43
|
+
`}function ov(e,t,r,n,i,s,a){return Zm(av(e,t,r,n,i,s,a))}var uv=Zr(l1()),Zn={key:e=>/^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(e)?e:JSON.stringify(e),value(e){if(e===null||typeof e!="object")return JSON.stringify(e);if(Array.isArray(e))return`[${e.map(r=>Zn.value(r)).join(", ")}]`;const t=Object.keys(e);return t.length===0?"{}":`{ ${t.map(r=>`${Zn.key(r)}: ${Zn.value(e[r])}`).join(", ")} }`},pair:({key:e,value:t})=>Zn.value({[e]:t})};xo();var lv=(e,t,{descriptor:r})=>{const n=[`${tr.yellow(typeof e=="string"?r.key(e):r.pair(e))} is deprecated`];return t&&n.push(`we now treat it as ${tr.blue(typeof t=="string"?r.key(t):r.pair(t))}`),n.join("; ")+"."};xo();var ey=Symbol.for("vnopts.VALUE_NOT_EXIST"),qa=Symbol.for("vnopts.VALUE_UNCHANGED"),tp=" ".repeat(2),cv=(e,t,r)=>{const{text:n,list:i}=r.normalizeExpectedResult(r.schemas[e].expected(r)),s=[];return n&&s.push(rp(e,t,n,r.descriptor)),i&&s.push([rp(e,t,i.title,r.descriptor)].concat(i.values.map(a=>ty(a,r.loggerPrintWidth))).join(`
|
|
44
|
+
`)),ry(s,r.loggerPrintWidth)};function rp(e,t,r,n){return[`Invalid ${tr.red(n.key(e))} value.`,`Expected ${tr.blue(r)},`,`but received ${t===ey?tr.gray("nothing"):tr.red(n.value(t))}.`].join(" ")}function ty({text:e,list:t},r){const n=[];return e&&n.push(`- ${tr.blue(e)}`),t&&n.push([`- ${tr.blue(t.title)}:`].concat(t.values.map(i=>ty(i,r-tp.length).replace(/^|\n/g,`$&${tp}`))).join(`
|
|
45
|
+
`)),ry(n,r)}function ry(e,t){if(e.length===1)return e[0];const[r,n]=e,[i,s]=e.map(a=>a.split(`
|
|
46
|
+
`,1)[0].length);return i>t&&i>s?n:r}xo();var Du=[],np=[];function fv(e,t){if(e===t)return 0;const r=e;e.length>t.length&&(e=t,t=r);let n=e.length,i=t.length;for(;n>0&&e.charCodeAt(~-n)===t.charCodeAt(~-i);)n--,i--;let s=0;for(;s<n&&e.charCodeAt(s)===t.charCodeAt(s);)s++;if(n-=s,i-=s,n===0)return i;let a,o,u,l,c=0,f=0;for(;c<n;)np[c]=e.charCodeAt(s+c),Du[c]=++c;for(;f<i;)for(a=t.charCodeAt(s+f),u=f++,o=f,c=0;c<n;c++)l=a===np[c]?u:u+1,u=Du[c],o=Du[c]=u>o?l>o?o+1:l:l>u?u+1:l;return o}var ny=(e,t,{descriptor:r,logger:n,schemas:i})=>{const s=[`Ignored unknown option ${tr.yellow(r.pair({key:e,value:t}))}.`],a=Object.keys(i).sort().find(o=>fv(e,o)<3);a&&s.push(`Did you mean ${tr.blue(r.key(a))}?`),n.warn(s.join(" "))},pv=["default","expected","validate","deprecated","forward","redirect","overlap","preprocess","postprocess"];function hv(e,t){const r=new e(t),n=Object.create(r);for(const i of pv)i in t&&(n[i]=dv(t[i],r,Bn.prototype[i].length));return n}var Bn=class{static create(e){return hv(this,e)}constructor(e){this.name=e.name}default(e){}expected(e){return"nothing"}validate(e,t){return!1}deprecated(e,t){return!1}forward(e,t){}redirect(e,t){}overlap(e,t,r){return e}preprocess(e,t){return e}postprocess(e,t){return qa}};function dv(e,t,r){return typeof e=="function"?(...n)=>e(...n.slice(0,r-1),t,...n.slice(r-1)):()=>e}var mv=class extends Bn{constructor(e){super(e),this._sourceName=e.sourceName}expected(e){return e.schemas[this._sourceName].expected(e)}validate(e,t){return t.schemas[this._sourceName].validate(e,t)}redirect(e,t){return this._sourceName}},yv=class extends Bn{expected(){return"anything"}validate(){return!0}},Dv=class extends Bn{constructor({valueSchema:e,name:t=e.name,...r}){super({...r,name:t}),this._valueSchema=e}expected(e){const{text:t,list:r}=e.normalizeExpectedResult(this._valueSchema.expected(e));return{text:t&&`an array of ${t}`,list:r&&{title:"an array of the following values",values:[{list:r}]}}}validate(e,t){if(!Array.isArray(e))return!1;const r=[];for(const n of e){const i=t.normalizeValidateResult(this._valueSchema.validate(n,t),n);i!==!0&&r.push(i.value)}return r.length===0?!0:{value:r}}deprecated(e,t){const r=[];for(const n of e){const i=t.normalizeDeprecatedResult(this._valueSchema.deprecated(n,t),n);i!==!1&&r.push(...i.map(({value:s})=>({value:[s]})))}return r}forward(e,t){const r=[];for(const n of e){const i=t.normalizeForwardResult(this._valueSchema.forward(n,t),n);r.push(...i.map(ip))}return r}redirect(e,t){const r=[],n=[];for(const i of e){const s=t.normalizeRedirectResult(this._valueSchema.redirect(i,t),i);"remain"in s&&r.push(s.remain),n.push(...s.redirect.map(ip))}return r.length===0?{redirect:n}:{redirect:n,remain:r}}overlap(e,t){return e.concat(t)}};function ip({from:e,to:t}){return{from:[e],to:t}}var gv=class extends Bn{expected(){return"true or false"}validate(e){return typeof e=="boolean"}};function Ev(e,t){const r=Object.create(null);for(const n of e){const i=n[t];if(r[i])throw new Error(`Duplicate ${t} ${JSON.stringify(i)}`);r[i]=n}return r}function bv(e,t){const r=new Map;for(const n of e){const i=n[t];if(r.has(i))throw new Error(`Duplicate ${t} ${JSON.stringify(i)}`);r.set(i,n)}return r}function Tv(){const e=Object.create(null);return t=>{const r=JSON.stringify(t);return e[r]?!0:(e[r]=!0,!1)}}function Sv(e,t){const r=[],n=[];for(const i of e)t(i)?r.push(i):n.push(i);return[r,n]}function vv(e){return e===Math.floor(e)}function Av(e,t){if(e===t)return 0;const r=typeof e,n=typeof t,i=["undefined","object","boolean","number","string"];return r!==n?i.indexOf(r)-i.indexOf(n):r!=="string"?Number(e)-Number(t):e.localeCompare(t)}function Cv(e){return(...t)=>{const r=e(...t);return typeof r=="string"?new Error(r):r}}function sp(e){return e===void 0?{}:e}function iy(e){if(typeof e=="string")return{text:e};const{text:t,list:r}=e;return Pv((t||r)!==void 0,"Unexpected `expected` result, there should be at least one field."),r?{text:t,list:{title:r.title,values:r.values.map(iy)}}:{text:t}}function ap(e,t){return e===!0?!0:e===!1?{value:t}:e}function op(e,t,r=!1){return e===!1?!1:e===!0?r?!0:[{value:t}]:"value"in e?[e]:e.length===0?!1:e}function up(e,t){return typeof e=="string"||"key"in e?{from:t,to:e}:"from"in e?{from:e.from,to:e.to}:{from:t,to:e.to}}function Sl(e,t){return e===void 0?[]:Array.isArray(e)?e.map(r=>up(r,t)):[up(e,t)]}function lp(e,t){const r=Sl(typeof e=="object"&&"redirect"in e?e.redirect:e,t);return r.length===0?{remain:t,redirect:r}:typeof e=="object"&&"remain"in e?{remain:e.remain,redirect:r}:{redirect:r}}function Pv(e,t){if(!e)throw new Error(t)}var sy=class extends Bn{constructor(e){super(e),this._choices=bv(e.choices.map(t=>t&&typeof t=="object"?t:{value:t}),"value")}expected({descriptor:e}){const t=Array.from(this._choices.keys()).map(s=>this._choices.get(s)).filter(({hidden:s})=>!s).map(s=>s.value).sort(Av).map(e.value),r=t.slice(0,-2),n=t.slice(-2);return{text:r.concat(n.join(" or ")).join(", "),list:{title:"one of the following values",values:t}}}validate(e){return this._choices.has(e)}deprecated(e){const t=this._choices.get(e);return t&&t.deprecated?{value:e}:!1}forward(e){const t=this._choices.get(e);return t?t.forward:void 0}redirect(e){const t=this._choices.get(e);return t?t.redirect:void 0}},xv=class extends Bn{expected(){return"a number"}validate(e,t){return typeof e=="number"}},Fv=class extends xv{expected(){return"an integer"}validate(e,t){return t.normalizeValidateResult(super.validate(e,t),e)===!0&&vv(e)}},cp=class extends Bn{expected(){return"a string"}validate(e){return typeof e=="string"}},_v=Zn,wv=ny,Iv=cv,Ov=lv,Nv=class{constructor(e,t){const{logger:r=console,loggerPrintWidth:n=80,descriptor:i=_v,unknown:s=wv,invalid:a=Iv,deprecated:o=Ov,missing:u=()=>!1,required:l=()=>!1,preprocess:c=p=>p,postprocess:f=()=>qa}=t||{};this._utils={descriptor:i,logger:r||{warn:()=>{}},loggerPrintWidth:n,schemas:Ev(e,"name"),normalizeDefaultResult:sp,normalizeExpectedResult:iy,normalizeDeprecatedResult:op,normalizeForwardResult:Sl,normalizeRedirectResult:lp,normalizeValidateResult:ap},this._unknownHandler=s,this._invalidHandler=Cv(a),this._deprecatedHandler=o,this._identifyMissing=(p,h)=>!(p in h)||u(p,h),this._identifyRequired=l,this._preprocess=c,this._postprocess=f,this.cleanHistory()}cleanHistory(){this._hasDeprecationWarned=Tv()}normalize(e){const t={},n=[this._preprocess(e,this._utils)],i=()=>{for(;n.length!==0;){const s=n.shift(),a=this._applyNormalization(s,t);n.push(...a)}};i();for(const s of Object.keys(this._utils.schemas)){const a=this._utils.schemas[s];if(!(s in t)){const o=sp(a.default(this._utils));"value"in o&&n.push({[s]:o.value})}}i();for(const s of Object.keys(this._utils.schemas)){if(!(s in t))continue;const a=this._utils.schemas[s],o=t[s],u=a.postprocess(o,this._utils);u!==qa&&(this._applyValidation(u,s,a),t[s]=u)}return this._applyPostprocess(t),this._applyRequiredCheck(t),t}_applyNormalization(e,t){const r=[],{knownKeys:n,unknownKeys:i}=this._partitionOptionKeys(e);for(const s of n){const a=this._utils.schemas[s],o=a.preprocess(e[s],this._utils);this._applyValidation(o,s,a);const u=({from:p,to:h})=>{r.push(typeof h=="string"?{[h]:p}:{[h.key]:h.value})},l=({value:p,redirectTo:h})=>{const d=op(a.deprecated(p,this._utils),o,!0);if(d!==!1)if(d===!0)this._hasDeprecationWarned(s)||this._utils.logger.warn(this._deprecatedHandler(s,h,this._utils));else for(const{value:m}of d){const D={key:s,value:m};if(!this._hasDeprecationWarned(D)){const g=typeof h=="string"?{key:h,value:m}:h;this._utils.logger.warn(this._deprecatedHandler(D,g,this._utils))}}};Sl(a.forward(o,this._utils),o).forEach(u);const f=lp(a.redirect(o,this._utils),o);if(f.redirect.forEach(u),"remain"in f){const p=f.remain;t[s]=s in t?a.overlap(t[s],p,this._utils):p,l({value:p})}for(const{from:p,to:h}of f.redirect)l({value:p,redirectTo:h})}for(const s of i){const a=e[s];this._applyUnknownHandler(s,a,t,(o,u)=>{r.push({[o]:u})})}return r}_applyRequiredCheck(e){for(const t of Object.keys(this._utils.schemas))if(this._identifyMissing(t,e)&&this._identifyRequired(t))throw this._invalidHandler(t,ey,this._utils)}_partitionOptionKeys(e){const[t,r]=Sv(Object.keys(e).filter(n=>!this._identifyMissing(n,e)),n=>n in this._utils.schemas);return{knownKeys:t,unknownKeys:r}}_applyValidation(e,t,r){const n=ap(r.validate(e,this._utils),e);if(n!==!0)throw this._invalidHandler(t,n.value,this._utils)}_applyUnknownHandler(e,t,r,n){const i=this._unknownHandler(e,t,this._utils);if(i)for(const s of Object.keys(i)){if(this._identifyMissing(s,i))continue;const a=i[s];s in this._utils.schemas?n(s,a):r[s]=a}}_applyPostprocess(e){const t=this._postprocess(e,this._utils);if(t!==qa){if(t.delete)for(const r of t.delete)delete e[r];if(t.override){const{knownKeys:r,unknownKeys:n}=this._partitionOptionKeys(t.override);for(const i of r){const s=t.override[i];this._applyValidation(s,i,this._utils.schemas[i]),e[i]=s}for(const i of n){const s=t.override[i];this._applyUnknownHandler(i,s,e,(a,o)=>{const u=this._utils.schemas[a];this._applyValidation(o,a,u),e[a]=o})}}}}},ay={};Ri(ay,{ArgExpansionBailout:()=>Bv,ConfigError:()=>Dc,UndefinedParserError:()=>vl});var Dc=class extends Error{constructor(){super(...arguments);yi(this,"name","ConfigError")}},vl=class extends Error{constructor(){super(...arguments);yi(this,"name","UndefinedParserError")}},Bv=class extends Error{constructor(){super(...arguments);yi(this,"name","ArgExpansionBailout")}},fp=Zr(Bm()),Lv=e=>e instanceof URL,oy=e=>typeof e=="string"&&e.startsWith("file://"),uy=e=>Lv(e)||oy(e),ji=e=>uy(e)?xe.fileURLToPath(e):e;function kv(e,t){const r=[[],[]];for(const n of e)r[t(n)?0:1].push(n);return r}var ly=kv,Rv=Zr(O1());async function Mv(e,t){const r=(t==null?void 0:t.allowSymlinks)??!0;let n;try{n=await(r?Ii.stat:Ii.lstat)(ji(e))}catch{return!1}return n.isDirectory()}var jv=Mv,pp=e=>no.resolve(ji(e));function*$v(e,t){e=pp(e);const{root:r}=no.parse(e);if(t=t?pp(t):r,!(e!==t&&!e.startsWith(t))){for(let n=e;n!==t;n=no.dirname(n))yield n;yield t}}var Uv=$v,lo,co,Ka,gs,Al,cy,Vv=class{constructor({names:e,filter:t,stopDirectory:r}){Qn(this,Al),Qn(this,lo),Qn(this,co),Qn(this,Ka),Qn(this,gs,new Map),Ds(this,lo,e),Ds(this,co,t),Ds(this,Ka,r)}async search(e,{shouldCache:t}){const r=ti(this,gs);if(t&&r.has(e))return r.get(e);const n=[];let i;for(const s of Uv(e,ti(this,Ka)))if(n.push(s),i=await bi(this,Al,cy).call(this,s,t),i)break;for(const s of n)r.set(s,i);return i}clearCache(){ti(this,gs).clear()}};lo=new WeakMap;co=new WeakMap;Ka=new WeakMap;gs=new WeakMap;Al=new WeakSet;cy=async function(e,t){const r=ti(this,gs);if(t&&r.has(e))return r.get(e);for(const n of ti(this,lo)){const i=rt.join(e,n);if(await ti(this,co).call(this,{name:n,path:i}))return i}};var fy=Vv,qv=[".git",".hg"],Es,Kv={names:qv,filter:({path:e})=>jv(e,{allowSymlinks:!1})};async function Wv(e,t){Es??(Es=new fy(Kv));const r=await Es.search(e,t);return r?no.dirname(r):void 0}function Hv(){Es==null||Es.clearCache()}function Gv(e){const t={},r=Object.keys(e);for(let n=0;n<r.length;n++){const i=r[n];e[i]!=="unset"&&(t[i]=e[i])}return t}function Yv(e){if(!e||(e=Gv(e),Object.keys(e).length===0))return null;const t={};return e.indent_style&&(t.useTabs=e.indent_style==="tab"),e.indent_size==="tab"&&(t.useTabs=!0),t.useTabs&&e.tab_width?t.tabWidth=e.tab_width:e.indent_style==="space"&&e.indent_size&&e.indent_size!=="tab"?t.tabWidth=e.indent_size:e.tab_width!==void 0&&(t.tabWidth=e.tab_width),e.max_line_length&&(e.max_line_length==="off"?t.printWidth=Number.POSITIVE_INFINITY:t.printWidth=e.max_line_length),e.quote_type==="single"?t.singleQuote=!0:e.quote_type==="double"&&(t.singleQuote=!1),["cr","crlf","lf"].includes(e.end_of_line)&&(t.endOfLine=e.end_of_line),t}var Xv=Yv,Wa=new Map;function Jv(){Hv(),Wa.clear()}async function zv(e,{shouldCache:t}){const r=rt.dirname(e),n=await Wv(r,{shouldCache:t}),i=await Rv.default.parse(e,{root:n});return Xv(i)}function Qv(e,{shouldCache:t}){return e=rt.resolve(e),(!t||!Wa.has(e))&&Wa.set(e,zv(e,{shouldCache:t})),Wa.get(e)}var Zv=Zr(B1()),{stdin:bs}=process;async function py(){let e="";if(bs.isTTY)return e;bs.setEncoding("utf8");for await(const t of bs)e+=t;return e}py.buffer=async()=>{const e=[];let t=0;if(bs.isTTY)return Buffer.concat([]);for await(const r of bs)e.push(r),t+=r.length;return Buffer.concat(e,t)};function eA(e,t){return Ii.writeFile(e,t)}var tA={getPrettierConfigSearchStopDirectory:()=>{},getStdin:py,isCI:()=>Zv.isCI,writeFormattedFile:eA},gc=tA;async function rA(e,t){const r=(t==null?void 0:t.allowSymlinks)??!0;let n;try{n=await(r?Ii.stat:Ii.lstat)(ji(e))}catch{return!1}return n.isFile()}var nA=rA,iA=Zr(V1());function hy(e){return typeof e>"u"||e===null}function sA(e){return typeof e=="object"&&e!==null}function aA(e){return Array.isArray(e)?e:hy(e)?[]:[e]}function oA(e,t){var r,n,i,s;if(t)for(s=Object.keys(t),r=0,n=s.length;r<n;r+=1)i=s[r],e[i]=t[i];return e}function uA(e,t){var r="",n;for(n=0;n<t;n+=1)r+=e;return r}function lA(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var cA=hy,fA=sA,pA=aA,hA=uA,dA=lA,mA=oA,Mt={isNothing:cA,isObject:fA,toArray:pA,repeat:hA,isNegativeZero:dA,extend:mA};function dy(e,t){var r="",n=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(r+='in "'+e.mark.name+'" '),r+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(r+=`
|
|
47
|
+
|
|
48
|
+
`+e.mark.snippet),n+" "+r):n}function ws(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=dy(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}ws.prototype=Object.create(Error.prototype);ws.prototype.constructor=ws;ws.prototype.toString=function(t){return this.name+": "+dy(this,t)};var qr=ws;function gu(e,t,r,n,i){var s="",a="",o=Math.floor(i/2)-1;return n-t>o&&(s=" ... ",t=n-o+s.length),r-n>o&&(a=" ...",r=n+o-a.length),{str:s+e.slice(t,r).replace(/\t/g,"→")+a,pos:n-t+s.length}}function Eu(e,t){return Mt.repeat(" ",t-e.length)+e}function yA(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),typeof t.indent!="number"&&(t.indent=1),typeof t.linesBefore!="number"&&(t.linesBefore=3),typeof t.linesAfter!="number"&&(t.linesAfter=2);for(var r=/\r?\n|\r|\0/g,n=[0],i=[],s,a=-1;s=r.exec(e.buffer);)i.push(s.index),n.push(s.index+s[0].length),e.position<=s.index&&a<0&&(a=n.length-2);a<0&&(a=n.length-1);var o="",u,l,c=Math.min(e.line+t.linesAfter,i.length).toString().length,f=t.maxLength-(t.indent+c+3);for(u=1;u<=t.linesBefore&&!(a-u<0);u++)l=gu(e.buffer,n[a-u],i[a-u],e.position-(n[a]-n[a-u]),f),o=Mt.repeat(" ",t.indent)+Eu((e.line-u+1).toString(),c)+" | "+l.str+`
|
|
49
|
+
`+o;for(l=gu(e.buffer,n[a],i[a],e.position,f),o+=Mt.repeat(" ",t.indent)+Eu((e.line+1).toString(),c)+" | "+l.str+`
|
|
50
|
+
`,o+=Mt.repeat("-",t.indent+c+3+l.pos)+`^
|
|
51
|
+
`,u=1;u<=t.linesAfter&&!(a+u>=i.length);u++)l=gu(e.buffer,n[a+u],i[a+u],e.position-(n[a]-n[a+u]),f),o+=Mt.repeat(" ",t.indent)+Eu((e.line+u+1).toString(),c)+" | "+l.str+`
|
|
52
|
+
`;return o.replace(/\n$/,"")}var DA=yA,gA=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],EA=["scalar","sequence","mapping"];function bA(e){var t={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(n){t[String(n)]=r})}),t}function TA(e,t){if(t=t||{},Object.keys(t).forEach(function(r){if(gA.indexOf(r)===-1)throw new qr('Unknown option "'+r+'" is met in definition of "'+e+'" YAML type.')}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(r){return r},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=bA(t.styleAliases||null),EA.indexOf(this.kind)===-1)throw new qr('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var Nt=TA;function hp(e,t){var r=[];return e[t].forEach(function(n){var i=r.length;r.forEach(function(s,a){s.tag===n.tag&&s.kind===n.kind&&s.multi===n.multi&&(i=a)}),r[i]=n}),r}function SA(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,r;function n(i){i.multi?(e.multi[i.kind].push(i),e.multi.fallback.push(i)):e[i.kind][i.tag]=e.fallback[i.tag]=i}for(t=0,r=arguments.length;t<r;t+=1)arguments[t].forEach(n);return e}function Cl(e){return this.extend(e)}Cl.prototype.extend=function(t){var r=[],n=[];if(t instanceof Nt)n.push(t);else if(Array.isArray(t))n=n.concat(t);else if(t&&(Array.isArray(t.implicit)||Array.isArray(t.explicit)))t.implicit&&(r=r.concat(t.implicit)),t.explicit&&(n=n.concat(t.explicit));else throw new qr("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");r.forEach(function(s){if(!(s instanceof Nt))throw new qr("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(s.loadKind&&s.loadKind!=="scalar")throw new qr("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(s.multi)throw new qr("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),n.forEach(function(s){if(!(s instanceof Nt))throw new qr("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var i=Object.create(Cl.prototype);return i.implicit=(this.implicit||[]).concat(r),i.explicit=(this.explicit||[]).concat(n),i.compiledImplicit=hp(i,"implicit"),i.compiledExplicit=hp(i,"explicit"),i.compiledTypeMap=SA(i.compiledImplicit,i.compiledExplicit),i};var vA=Cl,AA=new Nt("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}}),CA=new Nt("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}}),PA=new Nt("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}}),xA=new vA({explicit:[AA,CA,PA]});function FA(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}function _A(){return null}function wA(e){return e===null}var IA=new Nt("tag:yaml.org,2002:null",{kind:"scalar",resolve:FA,construct:_A,predicate:wA,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function OA(e){if(e===null)return!1;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}function NA(e){return e==="true"||e==="True"||e==="TRUE"}function BA(e){return Object.prototype.toString.call(e)==="[object Boolean]"}var LA=new Nt("tag:yaml.org,2002:bool",{kind:"scalar",resolve:OA,construct:NA,predicate:BA,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"});function kA(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function RA(e){return 48<=e&&e<=55}function MA(e){return 48<=e&&e<=57}function jA(e){if(e===null)return!1;var t=e.length,r=0,n=!1,i;if(!t)return!1;if(i=e[r],(i==="-"||i==="+")&&(i=e[++r]),i==="0"){if(r+1===t)return!0;if(i=e[++r],i==="b"){for(r++;r<t;r++)if(i=e[r],i!=="_"){if(i!=="0"&&i!=="1")return!1;n=!0}return n&&i!=="_"}if(i==="x"){for(r++;r<t;r++)if(i=e[r],i!=="_"){if(!kA(e.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}if(i==="o"){for(r++;r<t;r++)if(i=e[r],i!=="_"){if(!RA(e.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}}if(i==="_")return!1;for(;r<t;r++)if(i=e[r],i!=="_"){if(!MA(e.charCodeAt(r)))return!1;n=!0}return!(!n||i==="_")}function $A(e){var t=e,r=1,n;if(t.indexOf("_")!==-1&&(t=t.replace(/_/g,"")),n=t[0],(n==="-"||n==="+")&&(n==="-"&&(r=-1),t=t.slice(1),n=t[0]),t==="0")return 0;if(n==="0"){if(t[1]==="b")return r*parseInt(t.slice(2),2);if(t[1]==="x")return r*parseInt(t.slice(2),16);if(t[1]==="o")return r*parseInt(t.slice(2),8)}return r*parseInt(t,10)}function UA(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!Mt.isNegativeZero(e)}var VA=new Nt("tag:yaml.org,2002:int",{kind:"scalar",resolve:jA,construct:$A,predicate:UA,represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),qA=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function KA(e){return!(e===null||!qA.test(e)||e[e.length-1]==="_")}function WA(e){var t,r;return t=e.replace(/_/g,"").toLowerCase(),r=t[0]==="-"?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:r*parseFloat(t,10)}var HA=/^[-+]?[0-9]+e/;function GA(e,t){var r;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(Mt.isNegativeZero(e))return"-0.0";return r=e.toString(10),HA.test(r)?r.replace("e",".e"):r}function YA(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||Mt.isNegativeZero(e))}var XA=new Nt("tag:yaml.org,2002:float",{kind:"scalar",resolve:KA,construct:WA,predicate:YA,represent:GA,defaultStyle:"lowercase"}),JA=xA.extend({implicit:[IA,LA,VA,XA]}),zA=JA,my=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),yy=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function QA(e){return e===null?!1:my.exec(e)!==null||yy.exec(e)!==null}function ZA(e){var t,r,n,i,s,a,o,u=0,l=null,c,f,p;if(t=my.exec(e),t===null&&(t=yy.exec(e)),t===null)throw new Error("Date resolve error");if(r=+t[1],n=+t[2]-1,i=+t[3],!t[4])return new Date(Date.UTC(r,n,i));if(s=+t[4],a=+t[5],o=+t[6],t[7]){for(u=t[7].slice(0,3);u.length<3;)u+="0";u=+u}return t[9]&&(c=+t[10],f=+(t[11]||0),l=(c*60+f)*6e4,t[9]==="-"&&(l=-l)),p=new Date(Date.UTC(r,n,i,s,a,o,u)),l&&p.setTime(p.getTime()-l),p}function eC(e){return e.toISOString()}var tC=new Nt("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:QA,construct:ZA,instanceOf:Date,represent:eC});function rC(e){return e==="<<"||e===null}var nC=new Nt("tag:yaml.org,2002:merge",{kind:"scalar",resolve:rC}),Ec=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
53
|
+
\r`;function iC(e){if(e===null)return!1;var t,r,n=0,i=e.length,s=Ec;for(r=0;r<i;r++)if(t=s.indexOf(e.charAt(r)),!(t>64)){if(t<0)return!1;n+=6}return n%8===0}function sC(e){var t,r,n=e.replace(/[\r\n=]/g,""),i=n.length,s=Ec,a=0,o=[];for(t=0;t<i;t++)t%4===0&&t&&(o.push(a>>16&255),o.push(a>>8&255),o.push(a&255)),a=a<<6|s.indexOf(n.charAt(t));return r=i%4*6,r===0?(o.push(a>>16&255),o.push(a>>8&255),o.push(a&255)):r===18?(o.push(a>>10&255),o.push(a>>2&255)):r===12&&o.push(a>>4&255),new Uint8Array(o)}function aC(e){var t="",r=0,n,i,s=e.length,a=Ec;for(n=0;n<s;n++)n%3===0&&n&&(t+=a[r>>18&63],t+=a[r>>12&63],t+=a[r>>6&63],t+=a[r&63]),r=(r<<8)+e[n];return i=s%3,i===0?(t+=a[r>>18&63],t+=a[r>>12&63],t+=a[r>>6&63],t+=a[r&63]):i===2?(t+=a[r>>10&63],t+=a[r>>4&63],t+=a[r<<2&63],t+=a[64]):i===1&&(t+=a[r>>2&63],t+=a[r<<4&63],t+=a[64],t+=a[64]),t}function oC(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var uC=new Nt("tag:yaml.org,2002:binary",{kind:"scalar",resolve:iC,construct:sC,predicate:oC,represent:aC}),lC=Object.prototype.hasOwnProperty,cC=Object.prototype.toString;function fC(e){if(e===null)return!0;var t=[],r,n,i,s,a,o=e;for(r=0,n=o.length;r<n;r+=1){if(i=o[r],a=!1,cC.call(i)!=="[object Object]")return!1;for(s in i)if(lC.call(i,s))if(!a)a=!0;else return!1;if(!a)return!1;if(t.indexOf(s)===-1)t.push(s);else return!1}return!0}function pC(e){return e!==null?e:[]}var hC=new Nt("tag:yaml.org,2002:omap",{kind:"sequence",resolve:fC,construct:pC}),dC=Object.prototype.toString;function mC(e){if(e===null)return!0;var t,r,n,i,s,a=e;for(s=new Array(a.length),t=0,r=a.length;t<r;t+=1){if(n=a[t],dC.call(n)!=="[object Object]"||(i=Object.keys(n),i.length!==1))return!1;s[t]=[i[0],n[i[0]]]}return!0}function yC(e){if(e===null)return[];var t,r,n,i,s,a=e;for(s=new Array(a.length),t=0,r=a.length;t<r;t+=1)n=a[t],i=Object.keys(n),s[t]=[i[0],n[i[0]]];return s}var DC=new Nt("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:mC,construct:yC}),gC=Object.prototype.hasOwnProperty;function EC(e){if(e===null)return!0;var t,r=e;for(t in r)if(gC.call(r,t)&&r[t]!==null)return!1;return!0}function bC(e){return e!==null?e:{}}var TC=new Nt("tag:yaml.org,2002:set",{kind:"mapping",resolve:EC,construct:bC}),SC=zA.extend({implicit:[tC,nC],explicit:[uC,hC,DC,TC]}),Tn=Object.prototype.hasOwnProperty,fo=1,Dy=2,gy=3,po=4,bu=1,vC=2,dp=3,AC=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,CC=/[\x85\u2028\u2029]/,PC=/[,\[\]\{\}]/,Ey=/^(?:!|!!|![a-z\-]+!)$/i,by=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function mp(e){return Object.prototype.toString.call(e)}function _r(e){return e===10||e===13}function ri(e){return e===9||e===32}function Wt(e){return e===9||e===32||e===10||e===13}function Si(e){return e===44||e===91||e===93||e===123||e===125}function xC(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}function FC(e){return e===120?2:e===117?4:e===85?8:0}function _C(e){return 48<=e&&e<=57?e-48:-1}function yp(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
|
|
54
|
+
`:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"
":e===95?" ":e===76?"\u2028":e===80?"\u2029":""}function wC(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}var Ty=new Array(256),Sy=new Array(256);for(Kn=0;Kn<256;Kn++)Ty[Kn]=yp(Kn)?1:0,Sy[Kn]=yp(Kn);var Kn;function IC(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||SC,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function vy(e,t){var r={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return r.snippet=DA(r),new qr(t,r)}function Le(e,t){throw vy(e,t)}function ho(e,t){e.onWarning&&e.onWarning.call(null,vy(e,t))}var Dp={YAML:function(t,r,n){var i,s,a;t.version!==null&&Le(t,"duplication of %YAML directive"),n.length!==1&&Le(t,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),i===null&&Le(t,"ill-formed argument of the YAML directive"),s=parseInt(i[1],10),a=parseInt(i[2],10),s!==1&&Le(t,"unacceptable YAML version of the document"),t.version=n[0],t.checkLineBreaks=a<2,a!==1&&a!==2&&ho(t,"unsupported YAML version of the document")},TAG:function(t,r,n){var i,s;n.length!==2&&Le(t,"TAG directive accepts exactly two arguments"),i=n[0],s=n[1],Ey.test(i)||Le(t,"ill-formed tag handle (first argument) of the TAG directive"),Tn.call(t.tagMap,i)&&Le(t,'there is a previously declared suffix for "'+i+'" tag handle'),by.test(s)||Le(t,"ill-formed tag prefix (second argument) of the TAG directive");try{s=decodeURIComponent(s)}catch{Le(t,"tag prefix is malformed: "+s)}t.tagMap[i]=s}};function Dn(e,t,r,n){var i,s,a,o;if(t<r){if(o=e.input.slice(t,r),n)for(i=0,s=o.length;i<s;i+=1)a=o.charCodeAt(i),a===9||32<=a&&a<=1114111||Le(e,"expected valid JSON character");else AC.test(o)&&Le(e,"the stream contains non-printable characters");e.result+=o}}function gp(e,t,r,n){var i,s,a,o;for(Mt.isObject(r)||Le(e,"cannot merge mappings; the provided source object is unacceptable"),i=Object.keys(r),a=0,o=i.length;a<o;a+=1)s=i[a],Tn.call(t,s)||(t[s]=r[s],n[s]=!0)}function vi(e,t,r,n,i,s,a,o,u){var l,c;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),l=0,c=i.length;l<c;l+=1)Array.isArray(i[l])&&Le(e,"nested arrays are not supported inside keys"),typeof i=="object"&&mp(i[l])==="[object Object]"&&(i[l]="[object Object]");if(typeof i=="object"&&mp(i)==="[object Object]"&&(i="[object Object]"),i=String(i),t===null&&(t={}),n==="tag:yaml.org,2002:merge")if(Array.isArray(s))for(l=0,c=s.length;l<c;l+=1)gp(e,t,s[l],r);else gp(e,t,s,r);else!e.json&&!Tn.call(r,i)&&Tn.call(t,i)&&(e.line=a||e.line,e.lineStart=o||e.lineStart,e.position=u||e.position,Le(e,"duplicated mapping key")),i==="__proto__"?Object.defineProperty(t,i,{configurable:!0,enumerable:!0,writable:!0,value:s}):t[i]=s,delete r[i];return t}function bc(e){var t;t=e.input.charCodeAt(e.position),t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):Le(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function vt(e,t,r){for(var n=0,i=e.input.charCodeAt(e.position);i!==0;){for(;ri(i);)i===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),i=e.input.charCodeAt(++e.position);if(t&&i===35)do i=e.input.charCodeAt(++e.position);while(i!==10&&i!==13&&i!==0);if(_r(i))for(bc(e),i=e.input.charCodeAt(e.position),n++,e.lineIndent=0;i===32;)e.lineIndent++,i=e.input.charCodeAt(++e.position);else break}return r!==-1&&n!==0&&e.lineIndent<r&&ho(e,"deficient indentation"),n}function Fo(e){var t=e.position,r;return r=e.input.charCodeAt(t),!!((r===45||r===46)&&r===e.input.charCodeAt(t+1)&&r===e.input.charCodeAt(t+2)&&(t+=3,r=e.input.charCodeAt(t),r===0||Wt(r)))}function Tc(e,t){t===1?e.result+=" ":t>1&&(e.result+=Mt.repeat(`
|
|
55
|
+
`,t-1))}function OC(e,t,r){var n,i,s,a,o,u,l,c,f=e.kind,p=e.result,h;if(h=e.input.charCodeAt(e.position),Wt(h)||Si(h)||h===35||h===38||h===42||h===33||h===124||h===62||h===39||h===34||h===37||h===64||h===96||(h===63||h===45)&&(i=e.input.charCodeAt(e.position+1),Wt(i)||r&&Si(i)))return!1;for(e.kind="scalar",e.result="",s=a=e.position,o=!1;h!==0;){if(h===58){if(i=e.input.charCodeAt(e.position+1),Wt(i)||r&&Si(i))break}else if(h===35){if(n=e.input.charCodeAt(e.position-1),Wt(n))break}else{if(e.position===e.lineStart&&Fo(e)||r&&Si(h))break;if(_r(h))if(u=e.line,l=e.lineStart,c=e.lineIndent,vt(e,!1,-1),e.lineIndent>=t){o=!0,h=e.input.charCodeAt(e.position);continue}else{e.position=a,e.line=u,e.lineStart=l,e.lineIndent=c;break}}o&&(Dn(e,s,a,!1),Tc(e,e.line-u),s=a=e.position,o=!1),ri(h)||(a=e.position+1),h=e.input.charCodeAt(++e.position)}return Dn(e,s,a,!1),e.result?!0:(e.kind=f,e.result=p,!1)}function NC(e,t){var r,n,i;if(r=e.input.charCodeAt(e.position),r!==39)return!1;for(e.kind="scalar",e.result="",e.position++,n=i=e.position;(r=e.input.charCodeAt(e.position))!==0;)if(r===39)if(Dn(e,n,e.position,!0),r=e.input.charCodeAt(++e.position),r===39)n=e.position,e.position++,i=e.position;else return!0;else _r(r)?(Dn(e,n,i,!0),Tc(e,vt(e,!1,t)),n=i=e.position):e.position===e.lineStart&&Fo(e)?Le(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position);Le(e,"unexpected end of the stream within a single quoted scalar")}function BC(e,t){var r,n,i,s,a,o;if(o=e.input.charCodeAt(e.position),o!==34)return!1;for(e.kind="scalar",e.result="",e.position++,r=n=e.position;(o=e.input.charCodeAt(e.position))!==0;){if(o===34)return Dn(e,r,e.position,!0),e.position++,!0;if(o===92){if(Dn(e,r,e.position,!0),o=e.input.charCodeAt(++e.position),_r(o))vt(e,!1,t);else if(o<256&&Ty[o])e.result+=Sy[o],e.position++;else if((a=FC(o))>0){for(i=a,s=0;i>0;i--)o=e.input.charCodeAt(++e.position),(a=xC(o))>=0?s=(s<<4)+a:Le(e,"expected hexadecimal character");e.result+=wC(s),e.position++}else Le(e,"unknown escape sequence");r=n=e.position}else _r(o)?(Dn(e,r,n,!0),Tc(e,vt(e,!1,t)),r=n=e.position):e.position===e.lineStart&&Fo(e)?Le(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position)}Le(e,"unexpected end of the stream within a double quoted scalar")}function LC(e,t){var r=!0,n,i,s,a=e.tag,o,u=e.anchor,l,c,f,p,h,d=Object.create(null),m,D,g,y;if(y=e.input.charCodeAt(e.position),y===91)c=93,h=!1,o=[];else if(y===123)c=125,h=!0,o={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=o),y=e.input.charCodeAt(++e.position);y!==0;){if(vt(e,!0,t),y=e.input.charCodeAt(e.position),y===c)return e.position++,e.tag=a,e.anchor=u,e.kind=h?"mapping":"sequence",e.result=o,!0;r?y===44&&Le(e,"expected the node content, but found ','"):Le(e,"missed comma between flow collection entries"),D=m=g=null,f=p=!1,y===63&&(l=e.input.charCodeAt(e.position+1),Wt(l)&&(f=p=!0,e.position++,vt(e,!0,t))),n=e.line,i=e.lineStart,s=e.position,Bi(e,t,fo,!1,!0),D=e.tag,m=e.result,vt(e,!0,t),y=e.input.charCodeAt(e.position),(p||e.line===n)&&y===58&&(f=!0,y=e.input.charCodeAt(++e.position),vt(e,!0,t),Bi(e,t,fo,!1,!0),g=e.result),h?vi(e,o,d,D,m,g,n,i,s):f?o.push(vi(e,null,d,D,m,g,n,i,s)):o.push(m),vt(e,!0,t),y=e.input.charCodeAt(e.position),y===44?(r=!0,y=e.input.charCodeAt(++e.position)):r=!1}Le(e,"unexpected end of the stream within a flow collection")}function kC(e,t){var r,n,i=bu,s=!1,a=!1,o=t,u=0,l=!1,c,f;if(f=e.input.charCodeAt(e.position),f===124)n=!1;else if(f===62)n=!0;else return!1;for(e.kind="scalar",e.result="";f!==0;)if(f=e.input.charCodeAt(++e.position),f===43||f===45)bu===i?i=f===43?dp:vC:Le(e,"repeat of a chomping mode identifier");else if((c=_C(f))>=0)c===0?Le(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):a?Le(e,"repeat of an indentation width identifier"):(o=t+c-1,a=!0);else break;if(ri(f)){do f=e.input.charCodeAt(++e.position);while(ri(f));if(f===35)do f=e.input.charCodeAt(++e.position);while(!_r(f)&&f!==0)}for(;f!==0;){for(bc(e),e.lineIndent=0,f=e.input.charCodeAt(e.position);(!a||e.lineIndent<o)&&f===32;)e.lineIndent++,f=e.input.charCodeAt(++e.position);if(!a&&e.lineIndent>o&&(o=e.lineIndent),_r(f)){u++;continue}if(e.lineIndent<o){i===dp?e.result+=Mt.repeat(`
|
|
56
|
+
`,s?1+u:u):i===bu&&s&&(e.result+=`
|
|
57
|
+
`);break}for(n?ri(f)?(l=!0,e.result+=Mt.repeat(`
|
|
58
|
+
`,s?1+u:u)):l?(l=!1,e.result+=Mt.repeat(`
|
|
59
|
+
`,u+1)):u===0?s&&(e.result+=" "):e.result+=Mt.repeat(`
|
|
60
|
+
`,u):e.result+=Mt.repeat(`
|
|
61
|
+
`,s?1+u:u),s=!0,a=!0,u=0,r=e.position;!_r(f)&&f!==0;)f=e.input.charCodeAt(++e.position);Dn(e,r,e.position,!1)}return!0}function Ep(e,t){var r,n=e.tag,i=e.anchor,s=[],a,o=!1,u;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),u=e.input.charCodeAt(e.position);u!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,Le(e,"tab characters must not be used in indentation")),!(u!==45||(a=e.input.charCodeAt(e.position+1),!Wt(a))));){if(o=!0,e.position++,vt(e,!0,-1)&&e.lineIndent<=t){s.push(null),u=e.input.charCodeAt(e.position);continue}if(r=e.line,Bi(e,t,gy,!1,!0),s.push(e.result),vt(e,!0,-1),u=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&u!==0)Le(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return o?(e.tag=n,e.anchor=i,e.kind="sequence",e.result=s,!0):!1}function RC(e,t,r){var n,i,s,a,o,u,l=e.tag,c=e.anchor,f={},p=Object.create(null),h=null,d=null,m=null,D=!1,g=!1,y;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=f),y=e.input.charCodeAt(e.position);y!==0;){if(!D&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,Le(e,"tab characters must not be used in indentation")),n=e.input.charCodeAt(e.position+1),s=e.line,(y===63||y===58)&&Wt(n))y===63?(D&&(vi(e,f,p,h,d,null,a,o,u),h=d=m=null),g=!0,D=!0,i=!0):D?(D=!1,i=!0):Le(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,y=n;else{if(a=e.line,o=e.lineStart,u=e.position,!Bi(e,r,Dy,!1,!0))break;if(e.line===s){for(y=e.input.charCodeAt(e.position);ri(y);)y=e.input.charCodeAt(++e.position);if(y===58)y=e.input.charCodeAt(++e.position),Wt(y)||Le(e,"a whitespace character is expected after the key-value separator within a block mapping"),D&&(vi(e,f,p,h,d,null,a,o,u),h=d=m=null),g=!0,D=!1,i=!1,h=e.tag,d=e.result;else if(g)Le(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=l,e.anchor=c,!0}else if(g)Le(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=l,e.anchor=c,!0}if((e.line===s||e.lineIndent>t)&&(D&&(a=e.line,o=e.lineStart,u=e.position),Bi(e,t,po,!0,i)&&(D?d=e.result:m=e.result),D||(vi(e,f,p,h,d,m,a,o,u),h=d=m=null),vt(e,!0,-1),y=e.input.charCodeAt(e.position)),(e.line===s||e.lineIndent>t)&&y!==0)Le(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return D&&vi(e,f,p,h,d,null,a,o,u),g&&(e.tag=l,e.anchor=c,e.kind="mapping",e.result=f),g}function MC(e){var t,r=!1,n=!1,i,s,a;if(a=e.input.charCodeAt(e.position),a!==33)return!1;if(e.tag!==null&&Le(e,"duplication of a tag property"),a=e.input.charCodeAt(++e.position),a===60?(r=!0,a=e.input.charCodeAt(++e.position)):a===33?(n=!0,i="!!",a=e.input.charCodeAt(++e.position)):i="!",t=e.position,r){do a=e.input.charCodeAt(++e.position);while(a!==0&&a!==62);e.position<e.length?(s=e.input.slice(t,e.position),a=e.input.charCodeAt(++e.position)):Le(e,"unexpected end of the stream within a verbatim tag")}else{for(;a!==0&&!Wt(a);)a===33&&(n?Le(e,"tag suffix cannot contain exclamation marks"):(i=e.input.slice(t-1,e.position+1),Ey.test(i)||Le(e,"named tag handle cannot contain such characters"),n=!0,t=e.position+1)),a=e.input.charCodeAt(++e.position);s=e.input.slice(t,e.position),PC.test(s)&&Le(e,"tag suffix cannot contain flow indicator characters")}s&&!by.test(s)&&Le(e,"tag name cannot contain such characters: "+s);try{s=decodeURIComponent(s)}catch{Le(e,"tag name is malformed: "+s)}return r?e.tag=s:Tn.call(e.tagMap,i)?e.tag=e.tagMap[i]+s:i==="!"?e.tag="!"+s:i==="!!"?e.tag="tag:yaml.org,2002:"+s:Le(e,'undeclared tag handle "'+i+'"'),!0}function jC(e){var t,r;if(r=e.input.charCodeAt(e.position),r!==38)return!1;for(e.anchor!==null&&Le(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!Wt(r)&&!Si(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&Le(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function $C(e){var t,r,n;if(n=e.input.charCodeAt(e.position),n!==42)return!1;for(n=e.input.charCodeAt(++e.position),t=e.position;n!==0&&!Wt(n)&&!Si(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&Le(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),Tn.call(e.anchorMap,r)||Le(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],vt(e,!0,-1),!0}function Bi(e,t,r,n,i){var s,a,o,u=1,l=!1,c=!1,f,p,h,d,m,D;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,s=a=o=po===r||gy===r,n&&vt(e,!0,-1)&&(l=!0,e.lineIndent>t?u=1:e.lineIndent===t?u=0:e.lineIndent<t&&(u=-1)),u===1)for(;MC(e)||jC(e);)vt(e,!0,-1)?(l=!0,o=s,e.lineIndent>t?u=1:e.lineIndent===t?u=0:e.lineIndent<t&&(u=-1)):o=!1;if(o&&(o=l||i),(u===1||po===r)&&(fo===r||Dy===r?m=t:m=t+1,D=e.position-e.lineStart,u===1?o&&(Ep(e,D)||RC(e,D,m))||LC(e,m)?c=!0:(a&&kC(e,m)||NC(e,m)||BC(e,m)?c=!0:$C(e)?(c=!0,(e.tag!==null||e.anchor!==null)&&Le(e,"alias node should not have any properties")):OC(e,m,fo===r)&&(c=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):u===0&&(c=o&&Ep(e,D))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&Le(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),f=0,p=e.implicitTypes.length;f<p;f+=1)if(d=e.implicitTypes[f],d.resolve(e.result)){e.result=d.construct(e.result),e.tag=d.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!=="!"){if(Tn.call(e.typeMap[e.kind||"fallback"],e.tag))d=e.typeMap[e.kind||"fallback"][e.tag];else for(d=null,h=e.typeMap.multi[e.kind||"fallback"],f=0,p=h.length;f<p;f+=1)if(e.tag.slice(0,h[f].tag.length)===h[f].tag){d=h[f];break}d||Le(e,"unknown tag !<"+e.tag+">"),e.result!==null&&d.kind!==e.kind&&Le(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+d.kind+'", not "'+e.kind+'"'),d.resolve(e.result,e.tag)?(e.result=d.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):Le(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||c}function UC(e){var t=e.position,r,n,i,s=!1,a;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(a=e.input.charCodeAt(e.position))!==0&&(vt(e,!0,-1),a=e.input.charCodeAt(e.position),!(e.lineIndent>0||a!==37));){for(s=!0,a=e.input.charCodeAt(++e.position),r=e.position;a!==0&&!Wt(a);)a=e.input.charCodeAt(++e.position);for(n=e.input.slice(r,e.position),i=[],n.length<1&&Le(e,"directive name must not be less than one character in length");a!==0;){for(;ri(a);)a=e.input.charCodeAt(++e.position);if(a===35){do a=e.input.charCodeAt(++e.position);while(a!==0&&!_r(a));break}if(_r(a))break;for(r=e.position;a!==0&&!Wt(a);)a=e.input.charCodeAt(++e.position);i.push(e.input.slice(r,e.position))}a!==0&&bc(e),Tn.call(Dp,n)?Dp[n](e,n,i):ho(e,'unknown document directive "'+n+'"')}if(vt(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,vt(e,!0,-1)):s&&Le(e,"directives end mark is expected"),Bi(e,e.lineIndent-1,po,!1,!0),vt(e,!0,-1),e.checkLineBreaks&&CC.test(e.input.slice(t,e.position))&&ho(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&Fo(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,vt(e,!0,-1));return}if(e.position<e.length-1)Le(e,"end of the stream or a document separator is expected");else return}function Ay(e,t){e=String(e),t=t||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
|
|
62
|
+
`),e.charCodeAt(0)===65279&&(e=e.slice(1)));var r=new IC(e,t),n=e.indexOf("\0");for(n!==-1&&(r.position=n,Le(r,"null byte is not allowed in input")),r.input+="\0";r.input.charCodeAt(r.position)===32;)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)UC(r);return r.documents}function VC(e,t,r){t!==null&&typeof t=="object"&&typeof r>"u"&&(r=t,t=null);var n=Ay(e,r);if(typeof t!="function")return n;for(var i=0,s=n.length;i<s;i+=1)t(n[i])}function qC(e,t){var r=Ay(e,t);if(r.length!==0){if(r.length===1)return r[0];throw new qr("expected a single document in the stream, but found more")}}var KC=VC,WC=qC,HC={loadAll:KC,load:WC},GC=HC.load,YC=/[\u1680\u2000-\u200A\u202F\u205F\u3000]/,XC=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\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\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/,JC=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D00-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF9\u1D00-\u1DF9\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDE00-\uDE3E\uDE47\uDE50-\uDE83\uDE86-\uDE99\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/,Tu={Space_Separator:YC,ID_Start:XC,ID_Continue:JC},Pt={isSpaceSeparator(e){return typeof e=="string"&&Tu.Space_Separator.test(e)},isIdStartChar(e){return typeof e=="string"&&(e>="a"&&e<="z"||e>="A"&&e<="Z"||e==="$"||e==="_"||Tu.ID_Start.test(e))},isIdContinueChar(e){return typeof e=="string"&&(e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||e==="$"||e==="_"||e===""||e===""||Tu.ID_Continue.test(e))},isDigit(e){return typeof e=="string"&&/[0-9]/.test(e)},isHexDigit(e){return typeof e=="string"&&/[0-9A-Fa-f]/.test(e)}},Pl,jt,Kr,mo,Sn,yr,xt,Sc,Ts,zC=function(t,r){Pl=String(t),jt="start",Kr=[],mo=0,Sn=1,yr=0,xt=void 0,Sc=void 0,Ts=void 0;do xt=QC(),tP[jt]();while(xt.type!=="eof");return typeof r=="function"?xl({"":Ts},"",r):Ts};function xl(e,t,r){const n=e[t];if(n!=null&&typeof n=="object")if(Array.isArray(n))for(let i=0;i<n.length;i++){const s=String(i),a=xl(n,s,r);a===void 0?delete n[s]:Object.defineProperty(n,s,{value:a,writable:!0,enumerable:!0,configurable:!0})}else for(const i in n){const s=xl(n,i,r);s===void 0?delete n[i]:Object.defineProperty(n,i,{value:s,writable:!0,enumerable:!0,configurable:!0})}return r.call(e,t,n)}var He,Ke,os,Mr,Ze;function QC(){for(He="default",Ke="",os=!1,Mr=1;;){Ze=Yr();const e=Cy[He]();if(e)return e}}function Yr(){if(Pl[mo])return String.fromCodePoint(Pl.codePointAt(mo))}function pe(){const e=Yr();return e===`
|
|
63
|
+
`?(Sn++,yr=0):e?yr+=e.length:yr++,e&&(mo+=e.length),e}var Cy={default(){switch(Ze){case" ":case"\v":case"\f":case" ":case" ":case"\uFEFF":case`
|
|
64
|
+
`:case"\r":case"\u2028":case"\u2029":pe();return;case"/":pe(),He="comment";return;case void 0:return pe(),pt("eof")}if(Pt.isSpaceSeparator(Ze)){pe();return}return Cy[jt]()},comment(){switch(Ze){case"*":pe(),He="multiLineComment";return;case"/":pe(),He="singleLineComment";return}throw mt(pe())},multiLineComment(){switch(Ze){case"*":pe(),He="multiLineCommentAsterisk";return;case void 0:throw mt(pe())}pe()},multiLineCommentAsterisk(){switch(Ze){case"*":pe();return;case"/":pe(),He="default";return;case void 0:throw mt(pe())}pe(),He="multiLineComment"},singleLineComment(){switch(Ze){case`
|
|
65
|
+
`:case"\r":case"\u2028":case"\u2029":pe(),He="default";return;case void 0:return pe(),pt("eof")}pe()},value(){switch(Ze){case"{":case"[":return pt("punctuator",pe());case"n":return pe(),Wn("ull"),pt("null",null);case"t":return pe(),Wn("rue"),pt("boolean",!0);case"f":return pe(),Wn("alse"),pt("boolean",!1);case"-":case"+":pe()==="-"&&(Mr=-1),He="sign";return;case".":Ke=pe(),He="decimalPointLeading";return;case"0":Ke=pe(),He="zero";return;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":Ke=pe(),He="decimalInteger";return;case"I":return pe(),Wn("nfinity"),pt("numeric",1/0);case"N":return pe(),Wn("aN"),pt("numeric",NaN);case'"':case"'":os=pe()==='"',Ke="",He="string";return}throw mt(pe())},identifierNameStartEscape(){if(Ze!=="u")throw mt(pe());pe();const e=Fl();switch(e){case"$":case"_":break;default:if(!Pt.isIdStartChar(e))throw bp();break}Ke+=e,He="identifierName"},identifierName(){switch(Ze){case"$":case"_":case"":case"":Ke+=pe();return;case"\\":pe(),He="identifierNameEscape";return}if(Pt.isIdContinueChar(Ze)){Ke+=pe();return}return pt("identifier",Ke)},identifierNameEscape(){if(Ze!=="u")throw mt(pe());pe();const e=Fl();switch(e){case"$":case"_":case"":case"":break;default:if(!Pt.isIdContinueChar(e))throw bp();break}Ke+=e,He="identifierName"},sign(){switch(Ze){case".":Ke=pe(),He="decimalPointLeading";return;case"0":Ke=pe(),He="zero";return;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":Ke=pe(),He="decimalInteger";return;case"I":return pe(),Wn("nfinity"),pt("numeric",Mr*(1/0));case"N":return pe(),Wn("aN"),pt("numeric",NaN)}throw mt(pe())},zero(){switch(Ze){case".":Ke+=pe(),He="decimalPoint";return;case"e":case"E":Ke+=pe(),He="decimalExponent";return;case"x":case"X":Ke+=pe(),He="hexadecimal";return}return pt("numeric",Mr*0)},decimalInteger(){switch(Ze){case".":Ke+=pe(),He="decimalPoint";return;case"e":case"E":Ke+=pe(),He="decimalExponent";return}if(Pt.isDigit(Ze)){Ke+=pe();return}return pt("numeric",Mr*Number(Ke))},decimalPointLeading(){if(Pt.isDigit(Ze)){Ke+=pe(),He="decimalFraction";return}throw mt(pe())},decimalPoint(){switch(Ze){case"e":case"E":Ke+=pe(),He="decimalExponent";return}if(Pt.isDigit(Ze)){Ke+=pe(),He="decimalFraction";return}return pt("numeric",Mr*Number(Ke))},decimalFraction(){switch(Ze){case"e":case"E":Ke+=pe(),He="decimalExponent";return}if(Pt.isDigit(Ze)){Ke+=pe();return}return pt("numeric",Mr*Number(Ke))},decimalExponent(){switch(Ze){case"+":case"-":Ke+=pe(),He="decimalExponentSign";return}if(Pt.isDigit(Ze)){Ke+=pe(),He="decimalExponentInteger";return}throw mt(pe())},decimalExponentSign(){if(Pt.isDigit(Ze)){Ke+=pe(),He="decimalExponentInteger";return}throw mt(pe())},decimalExponentInteger(){if(Pt.isDigit(Ze)){Ke+=pe();return}return pt("numeric",Mr*Number(Ke))},hexadecimal(){if(Pt.isHexDigit(Ze)){Ke+=pe(),He="hexadecimalInteger";return}throw mt(pe())},hexadecimalInteger(){if(Pt.isHexDigit(Ze)){Ke+=pe();return}return pt("numeric",Mr*Number(Ke))},string(){switch(Ze){case"\\":pe(),Ke+=ZC();return;case'"':if(os)return pe(),pt("string",Ke);Ke+=pe();return;case"'":if(!os)return pe(),pt("string",Ke);Ke+=pe();return;case`
|
|
66
|
+
`:case"\r":throw mt(pe());case"\u2028":case"\u2029":rP(Ze);break;case void 0:throw mt(pe())}Ke+=pe()},start(){switch(Ze){case"{":case"[":return pt("punctuator",pe())}He="value"},beforePropertyName(){switch(Ze){case"$":case"_":Ke=pe(),He="identifierName";return;case"\\":pe(),He="identifierNameStartEscape";return;case"}":return pt("punctuator",pe());case'"':case"'":os=pe()==='"',He="string";return}if(Pt.isIdStartChar(Ze)){Ke+=pe(),He="identifierName";return}throw mt(pe())},afterPropertyName(){if(Ze===":")return pt("punctuator",pe());throw mt(pe())},beforePropertyValue(){He="value"},afterPropertyValue(){switch(Ze){case",":case"}":return pt("punctuator",pe())}throw mt(pe())},beforeArrayValue(){if(Ze==="]")return pt("punctuator",pe());He="value"},afterArrayValue(){switch(Ze){case",":case"]":return pt("punctuator",pe())}throw mt(pe())},end(){throw mt(pe())}};function pt(e,t){return{type:e,value:t,line:Sn,column:yr}}function Wn(e){for(const t of e){if(Yr()!==t)throw mt(pe());pe()}}function ZC(){switch(Yr()){case"b":return pe(),"\b";case"f":return pe(),"\f";case"n":return pe(),`
|
|
67
|
+
`;case"r":return pe(),"\r";case"t":return pe()," ";case"v":return pe(),"\v";case"0":if(pe(),Pt.isDigit(Yr()))throw mt(pe());return"\0";case"x":return pe(),eP();case"u":return pe(),Fl();case`
|
|
68
|
+
`:case"\u2028":case"\u2029":return pe(),"";case"\r":return pe(),Yr()===`
|
|
69
|
+
`&&pe(),"";case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":throw mt(pe());case void 0:throw mt(pe())}return pe()}function eP(){let e="",t=Yr();if(!Pt.isHexDigit(t)||(e+=pe(),t=Yr(),!Pt.isHexDigit(t)))throw mt(pe());return e+=pe(),String.fromCodePoint(parseInt(e,16))}function Fl(){let e="",t=4;for(;t-- >0;){const r=Yr();if(!Pt.isHexDigit(r))throw mt(pe());e+=pe()}return String.fromCodePoint(parseInt(e,16))}var tP={start(){if(xt.type==="eof")throw Hn();Su()},beforePropertyName(){switch(xt.type){case"identifier":case"string":Sc=xt.value,jt="afterPropertyName";return;case"punctuator":oa();return;case"eof":throw Hn()}},afterPropertyName(){if(xt.type==="eof")throw Hn();jt="beforePropertyValue"},beforePropertyValue(){if(xt.type==="eof")throw Hn();Su()},beforeArrayValue(){if(xt.type==="eof")throw Hn();if(xt.type==="punctuator"&&xt.value==="]"){oa();return}Su()},afterPropertyValue(){if(xt.type==="eof")throw Hn();switch(xt.value){case",":jt="beforePropertyName";return;case"}":oa()}},afterArrayValue(){if(xt.type==="eof")throw Hn();switch(xt.value){case",":jt="beforeArrayValue";return;case"]":oa()}},end(){}};function Su(){let e;switch(xt.type){case"punctuator":switch(xt.value){case"{":e={};break;case"[":e=[];break}break;case"null":case"boolean":case"numeric":case"string":e=xt.value;break}if(Ts===void 0)Ts=e;else{const t=Kr[Kr.length-1];Array.isArray(t)?t.push(e):Object.defineProperty(t,Sc,{value:e,writable:!0,enumerable:!0,configurable:!0})}if(e!==null&&typeof e=="object")Kr.push(e),Array.isArray(e)?jt="beforeArrayValue":jt="beforePropertyName";else{const t=Kr[Kr.length-1];t==null?jt="end":Array.isArray(t)?jt="afterArrayValue":jt="afterPropertyValue"}}function oa(){Kr.pop();const e=Kr[Kr.length-1];e==null?jt="end":Array.isArray(e)?jt="afterArrayValue":jt="afterPropertyValue"}function mt(e){return yo(e===void 0?`JSON5: invalid end of input at ${Sn}:${yr}`:`JSON5: invalid character '${Py(e)}' at ${Sn}:${yr}`)}function Hn(){return yo(`JSON5: invalid end of input at ${Sn}:${yr}`)}function bp(){return yr-=5,yo(`JSON5: invalid identifier character at ${Sn}:${yr}`)}function rP(e){console.warn(`JSON5: '${Py(e)}' in strings is not valid ECMAScript; consider escaping`)}function Py(e){const t={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};if(t[e])return t[e];if(e<" "){const r=e.charCodeAt(0).toString(16);return"\\x"+("00"+r).substring(r.length)}return e}function yo(e){const t=new SyntaxError(e);return t.lineNumber=Sn,t.columnNumber=yr,t}var nP={parse:zC},iP=Zr(Jm()),Tp=(e,t,r)=>r<0?-1:e.lastIndexOf(t,r);function sP(e,t){const r=Tp(e,`
|
|
70
|
+
`,t-1),n=t-r-1;let i=0;for(let s=r;s>=0;s=Tp(e,`
|
|
71
|
+
`,s-1))i++;return{line:i,column:n}}function Sp(e,t,{oneBased:r=!1}={}){if(t<0||t>=e.length&&e.length>0)throw new RangeError("Index out of bounds");const n=sP(e,t);return r?{line:n.line+1,column:n.column+1}:n}var aP=e=>`\\u{${e.codePointAt(0).toString(16)}}`,us,oP=class xy extends Error{constructor(t){var r;super(),na(this,"name","JSONError"),na(this,"fileName"),na(this,"codeFrame"),na(this,"rawCodeFrame"),Qn(this,us),Ds(this,us,t),(r=Error.captureStackTrace)==null||r.call(Error,this,xy)}get message(){const{fileName:t,codeFrame:r}=this;return`${ti(this,us)}${t?` in ${t}`:""}${r?`
|
|
72
|
+
|
|
73
|
+
${r}
|
|
74
|
+
`:""}`}set message(t){Ds(this,us,t)}};us=new WeakMap;var uP=oP,vp=(e,t,r=!0)=>(0,iP.codeFrameColumns)(e,{start:t},{highlightCode:r}),lP=(e,t)=>{const r=t.match(/in JSON at position (?<index>\d+)(?: \(line (?<line>\d+) column (?<column>\d+)\))?$/);if(!r)return;let{index:n,line:i,column:s}=r.groups;if(i&&s)return{line:Number(i),column:Number(s)};if(n=Number(n),n===e.length){const{line:a,column:o}=Sp(e,e.length-1,{oneBased:!0});return{line:a,column:o+1}}return Sp(e,n,{oneBased:!0})},cP=e=>e.replace(new RegExp("(?<=^Unexpected token )(?<quote>')?(.)\\k<quote>"),(t,r,n)=>`"${n}"(${aP(n)})`);function fP(e,t,r){let n;try{return JSON.parse(e,t)}catch(a){n=a.message}let i;e?(i=lP(e,n),n=cP(n)):n+=" while parsing empty string";const s=new uP(n);throw s.fileName=r,i&&(s.codeFrame=vp(e,i),s.rawCodeFrame=vp(e,i,!1)),s}async function pP(e){oy(e)&&(e=new URL(e));try{return await Ii.readFile(e,"utf8")}catch(t){if(t.code==="ENOENT")return;throw new Error(`Unable to read '${e}': ${t.message}`)}}var Is=pP;async function Fy(e){const t=await Is(e);try{return fP(t)}catch(r){throw r.message=`JSON Error in ${e}:
|
|
75
|
+
${r.message}`,r}}async function vu(e){return(await import(xe.pathToFileURL(e).href)).default}async function _y(e){const{prettier:t}=await Fy(e);return t}async function wy(e){const{prettier:t}=await Ha(e);return t}async function Ha(e){const t=await Is(e);try{return GC(t)}catch(r){throw r.message=`YAML Error in ${e}:
|
|
76
|
+
${r.message}`,r}}var hP={async".toml"(e){const t=await Is(e);try{return await(0,iA.default)(t)}catch(r){throw r.message=`TOML Error in ${e}:
|
|
77
|
+
${r.message}`,r}},async".json5"(e){const t=await Is(e);try{return nP.parse(t)}catch(r){throw r.message=`JSON5 Error in ${e}:
|
|
78
|
+
${r.message}`,r}},".json":Fy,".js":vu,".mjs":vu,".cjs":vu,".yaml":Ha,".yml":Ha,"":Ha},dP=hP,mP=["package.json","package.yaml",".prettierrc",".prettierrc.json",".prettierrc.yaml",".prettierrc.yml",".prettierrc.json5",".prettierrc.js",".prettierrc.mjs",".prettierrc.cjs","prettier.config.js","prettier.config.mjs","prettier.config.cjs",".prettierrc.toml"];async function yP({name:e,path:t}){if(!await nA(t))return!1;if(e==="package.json")try{return!!await _y(t)}catch{return!1}if(e==="package.yaml")try{return!!await wy(t)}catch{return!1}return!0}function DP(e){return new fy({names:mP,filter:yP,stopDirectory:e})}var gP=DP,EP={}.hasOwnProperty,bP=/^([A-Z][a-z\d]*)+$/,TP=new Set(["string","function","number","object","Function","Object","boolean","bigint","symbol"]),It={};function Au(e,t="and"){return e.length<3?e.join(` ${t} `):`${e.slice(0,-1).join(", ")}, ${t} ${e[e.length-1]}`}var Iy=new Map,SP="__node_internal_",Ap;It.ERR_INVALID_ARG_TYPE=or("ERR_INVALID_ARG_TYPE",(e,t,r)=>{rr(typeof e=="string","'name' must be a string"),Array.isArray(t)||(t=[t]);let n="The ";if(e.endsWith(" argument"))n+=`${e} `;else{const o=e.includes(".")?"property":"argument";n+=`"${e}" ${o} `}n+="must be ";const i=[],s=[],a=[];for(const o of t)rr(typeof o=="string","All expected entries have to be of type string"),TP.has(o)?i.push(o.toLowerCase()):bP.exec(o)===null?(rr(o!=="object",'The value "object" should be written as "Object"'),a.push(o)):s.push(o);if(s.length>0){const o=i.indexOf("object");o!==-1&&(i.slice(o,1),s.push("Object"))}return i.length>0&&(n+=`${i.length>1?"one of type":"of type"} ${Au(i,"or")}`,(s.length>0||a.length>0)&&(n+=" or ")),s.length>0&&(n+=`an instance of ${Au(s,"or")}`,a.length>0&&(n+=" or ")),a.length>0&&(a.length>1?n+=`one of ${Au(a,"or")}`:(a[0].toLowerCase()!==a[0]&&(n+="an "),n+=`${a[0]}`)),n+=`. Received ${xP(r)}`,n},TypeError);It.ERR_INVALID_MODULE_SPECIFIER=or("ERR_INVALID_MODULE_SPECIFIER",(e,t,r=void 0)=>`Invalid module "${e}" ${t}${r?` imported from ${r}`:""}`,TypeError);It.ERR_INVALID_PACKAGE_CONFIG=or("ERR_INVALID_PACKAGE_CONFIG",(e,t,r)=>`Invalid package config ${e}${t?` while importing ${t}`:""}${r?`. ${r}`:""}`,Error);It.ERR_INVALID_PACKAGE_TARGET=or("ERR_INVALID_PACKAGE_TARGET",(e,t,r,n=!1,i=void 0)=>{const s=typeof r=="string"&&!n&&r.length>0&&!r.startsWith("./");return t==="."?(rr(n===!1),`Invalid "exports" main target ${JSON.stringify(r)} defined in the package config ${e}package.json${i?` imported from ${i}`:""}${s?'; targets must start with "./"':""}`):`Invalid "${n?"imports":"exports"}" target ${JSON.stringify(r)} defined for '${t}' in the package config ${e}package.json${i?` imported from ${i}`:""}${s?'; targets must start with "./"':""}`},Error);It.ERR_MODULE_NOT_FOUND=or("ERR_MODULE_NOT_FOUND",(e,t,r=!1)=>`Cannot find ${r?"module":"package"} '${e}' imported from ${t}`,Error);It.ERR_NETWORK_IMPORT_DISALLOWED=or("ERR_NETWORK_IMPORT_DISALLOWED","import of '%s' by %s is not supported: %s",Error);It.ERR_PACKAGE_IMPORT_NOT_DEFINED=or("ERR_PACKAGE_IMPORT_NOT_DEFINED",(e,t,r)=>`Package import specifier "${e}" is not defined${t?` in package ${t}package.json`:""} imported from ${r}`,TypeError);It.ERR_PACKAGE_PATH_NOT_EXPORTED=or("ERR_PACKAGE_PATH_NOT_EXPORTED",(e,t,r=void 0)=>t==="."?`No "exports" main defined in ${e}package.json${r?` imported from ${r}`:""}`:`Package subpath '${t}' is not defined by "exports" in ${e}package.json${r?` imported from ${r}`:""}`,Error);It.ERR_UNSUPPORTED_DIR_IMPORT=or("ERR_UNSUPPORTED_DIR_IMPORT","Directory import '%s' is not supported resolving ES modules imported from %s",Error);It.ERR_UNSUPPORTED_RESOLVE_REQUEST=or("ERR_UNSUPPORTED_RESOLVE_REQUEST",'Failed to resolve module specifier "%s" from "%s": Invalid relative URL or base scheme is not hierarchical.',TypeError);It.ERR_UNKNOWN_FILE_EXTENSION=or("ERR_UNKNOWN_FILE_EXTENSION",(e,t)=>`Unknown file extension "${e}" for ${t}`,TypeError);It.ERR_INVALID_ARG_VALUE=or("ERR_INVALID_ARG_VALUE",(e,t,r="is invalid")=>{let n=Fs.inspect(t);return n.length>128&&(n=`${n.slice(0,128)}...`),`The ${e.includes(".")?"property":"argument"} '${e}' ${r}. Received ${n}`},TypeError);function or(e,t,r){return Iy.set(e,t),vP(r,e)}function vP(e,t){return r;function r(...n){const i=Error.stackTraceLimit;_l()&&(Error.stackTraceLimit=0);const s=new e;_l()&&(Error.stackTraceLimit=i);const a=PP(t,n,s);return Object.defineProperties(s,{message:{value:a,enumerable:!1,writable:!0,configurable:!0},toString:{value(){return`${this.name} [${t}]: ${this.message}`},enumerable:!1,writable:!0,configurable:!0}}),CP(s),s.code=t,s}}function _l(){try{if(iT.startupSnapshot.isBuildingSnapshot())return!1}catch{}const e=Object.getOwnPropertyDescriptor(Error,"stackTraceLimit");return e===void 0?Object.isExtensible(Error):EP.call(e,"writable")&&e.writable!==void 0?e.writable:e.set!==void 0}function AP(e){const t=SP+e.name;return Object.defineProperty(e,"name",{value:t}),e}var CP=AP(function(e){const t=_l();return t&&(Ap=Error.stackTraceLimit,Error.stackTraceLimit=Number.POSITIVE_INFINITY),Error.captureStackTrace(e),t&&(Error.stackTraceLimit=Ap),e});function PP(e,t,r){const n=Iy.get(e);if(rr(n!==void 0,"expected `message` to be found"),typeof n=="function")return rr(n.length<=t.length,`Code: ${e}; The provided arguments length (${t.length}) does not match the required ones (${n.length}).`),Reflect.apply(n,r,t);const i=/%[dfijoOs]/g;let s=0;for(;i.exec(n)!==null;)s++;return rr(s===t.length,`Code: ${e}; The provided arguments length (${t.length}) does not match the required ones (${s}).`),t.length===0?n:(t.unshift(n),Reflect.apply(Fs.format,null,t))}function xP(e){if(e==null)return String(e);if(typeof e=="function"&&e.name)return`function ${e.name}`;if(typeof e=="object")return e.constructor&&e.constructor.name?`an instance of ${e.constructor.name}`:`${Fs.inspect(e,{depth:-1})}`;let t=Fs.inspect(e,{colors:!1});return t.length>28&&(t=`${t.slice(0,25)}...`),`type ${typeof e} (${t})`}var Hi={}.hasOwnProperty,{ERR_INVALID_PACKAGE_CONFIG:FP}=It,Cp=new Map;function Oy(e,{base:t,specifier:r}){const n=Cp.get(e);if(n)return n;let i;try{i=St.readFileSync(rt.toNamespacedPath(e),"utf8")}catch(a){const o=a;if(o.code!=="ENOENT")throw o}const s={exists:!1,pjsonPath:e,main:void 0,name:void 0,type:"none",exports:void 0,imports:void 0};if(i!==void 0){let a;try{a=JSON.parse(i)}catch(o){const u=o,l=new FP(e,(t?`"${r}" from `:"")+xe.fileURLToPath(t||r),u.message);throw l.cause=u,l}s.exists=!0,Hi.call(a,"name")&&typeof a.name=="string"&&(s.name=a.name),Hi.call(a,"main")&&typeof a.main=="string"&&(s.main=a.main),Hi.call(a,"exports")&&(s.exports=a.exports),Hi.call(a,"imports")&&(s.imports=a.imports),Hi.call(a,"type")&&(a.type==="commonjs"||a.type==="module")&&(s.type=a.type)}return Cp.set(e,s),s}function vc(e){let t=new URL("package.json",e);for(;!t.pathname.endsWith("node_modules/package.json");){const i=Oy(xe.fileURLToPath(t),{specifier:e});if(i.exists)return i;const s=t;if(t=new URL("../package.json",t),t.pathname===s.pathname)break}return{pjsonPath:xe.fileURLToPath(t),exists:!1,type:"none"}}function Pp(e){return vc(e).type}var{ERR_UNKNOWN_FILE_EXTENSION:_P}=It,wP={}.hasOwnProperty,IP={__proto__:null,".cjs":"commonjs",".js":"module",".json":"json",".mjs":"module"};function OP(e){return e&&/\s*(text|application)\/javascript\s*(;\s*charset=utf-?8\s*)?/i.test(e)?"module":e==="application/json"?"json":null}var xp={__proto__:null,"data:":NP,"file:":LP,"http:":Fp,"https:":Fp,"node:"(){return"builtin"}};function NP(e){const{1:t}=/^([^/]+\/[^;,]+)[^,]*?(;base64)?,/.exec(e.pathname)||[null,null,null];return OP(t)}function BP(e){const t=e.pathname;let r=t.length;for(;r--;){const n=t.codePointAt(r);if(n===47)return"";if(n===46)return t.codePointAt(r-1)===47?"":t.slice(r)}return""}function LP(e,t,r){const n=BP(e);if(n===".js"){const a=Pp(e);return a!=="none"?a:"commonjs"}if(n===""){const a=Pp(e);return a==="none"||a==="commonjs"?"commonjs":"module"}const i=IP[n];if(i)return i;if(r)return;const s=xe.fileURLToPath(e);throw new _P(n,s)}function Fp(){}function Ny(e,t){const r=e.protocol;return wP.call(xp,r)&&xp[r](e,t,!0)||null}var{ERR_INVALID_ARG_VALUE:kP}=It,By=Object.freeze(["node","import"]),RP=new Set(By);function MP(){return By}function jP(){return RP}function $P(e){if(e!==void 0&&e!==MP()){if(!Array.isArray(e))throw new kP("conditions",e,"expected an array");return new Set(e)}return jP()}var ua=RegExp.prototype[Symbol.replace],{ERR_NETWORK_IMPORT_DISALLOWED:Cu,ERR_INVALID_MODULE_SPECIFIER:_o,ERR_INVALID_PACKAGE_CONFIG:Ly,ERR_INVALID_PACKAGE_TARGET:UP,ERR_MODULE_NOT_FOUND:Ac,ERR_PACKAGE_IMPORT_NOT_DEFINED:VP,ERR_PACKAGE_PATH_NOT_EXPORTED:qP,ERR_UNSUPPORTED_DIR_IMPORT:KP,ERR_UNSUPPORTED_RESOLVE_REQUEST:_p}=It,ky={}.hasOwnProperty,wp=/(^|\\|\/)((\.|%2e)(\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))?(\\|\/|$)/i,Ip=/(^|\\|\/)((\.|%2e)(\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))(\\|\/|$)/i,WP=/^\.|%|\\/,la=/\*/g,HP=/%2f|%5c/i,Op=new Set,GP=/[/\\]{2}/;function Np(e,t,r,n,i,s,a){if(Fr.noDeprecation)return;const o=xe.fileURLToPath(n),u=GP.exec(a?e:t)!==null;Fr.emitWarning(`Use of deprecated ${u?"double slash":"leading or trailing slash matching"} resolving "${e}" for module request "${t}" ${t===r?"":`matched to "${r}" `}in the "${i?"imports":"exports"}" field module resolution of the package at ${o}${s?` imported from ${xe.fileURLToPath(s)}`:""}.`,"DeprecationWarning","DEP0166")}function Bp(e,t,r,n){if(Fr.noDeprecation||Ny(e,{parentURL:r.href})!=="module")return;const s=xe.fileURLToPath(e.href),a=xe.fileURLToPath(new xe.URL(".",t)),o=xe.fileURLToPath(r);n?rt.resolve(a,n)!==s&&Fr.emitWarning(`Package ${a} has a "main" field set to "${n}", excluding the full filename and extension to the resolved file at "${s.slice(a.length)}", imported from ${o}.
|
|
79
|
+
Automatic extension resolution of the "main" field is deprecated for ES modules.`,"DeprecationWarning","DEP0151"):Fr.emitWarning(`No "main" or "exports" field defined in the package.json for ${a} resolving the main entry point "${s.slice(a.length)}", imported from ${o}.
|
|
80
|
+
Default "index" lookups for the main are deprecated for ES modules.`,"DeprecationWarning","DEP0151")}function Ry(e){try{return St.statSync(e)}catch{}}function Pu(e){const t=St.statSync(e,{throwIfNoEntry:!1}),r=t?t.isFile():void 0;return r??!1}function YP(e,t,r){let n;if(t.main!==void 0){if(n=new xe.URL(t.main,e),Pu(n))return n;const a=[`./${t.main}.js`,`./${t.main}.json`,`./${t.main}.node`,`./${t.main}/index.js`,`./${t.main}/index.json`,`./${t.main}/index.node`];let o=-1;for(;++o<a.length&&(n=new xe.URL(a[o],e),!Pu(n));)n=void 0;if(n)return Bp(n,e,r,t.main),n}const i=["./index.js","./index.json","./index.node"];let s=-1;for(;++s<i.length&&(n=new xe.URL(i[s],e),!Pu(n));)n=void 0;if(n)return Bp(n,e,r,t.main),n;throw new Ac(xe.fileURLToPath(new xe.URL(".",e)),xe.fileURLToPath(r))}function XP(e,t,r){if(HP.exec(e.pathname)!==null)throw new _o(e.pathname,'must not include encoded "/" or "\\" characters',xe.fileURLToPath(t));let n;try{n=xe.fileURLToPath(e)}catch(s){const a=s;throw Object.defineProperty(a,"input",{value:String(e)}),Object.defineProperty(a,"module",{value:String(t)}),a}const i=Ry(n.endsWith("/")?n.slice(-1):n);if(i&&i.isDirectory()){const s=new KP(n,xe.fileURLToPath(t));throw s.url=String(e),s}if(!i||!i.isFile()){const s=new Ac(n||e.pathname,t&&xe.fileURLToPath(t),!0);throw s.url=String(e),s}{const s=St.realpathSync(n),{search:a,hash:o}=e;e=xe.pathToFileURL(s+(n.endsWith(rt.sep)?"/":"")),e.search=a,e.hash=o}return e}function JP(e,t,r){return new VP(e,t&&xe.fileURLToPath(new xe.URL(".",t)),xe.fileURLToPath(r))}function xu(e,t,r){return new qP(xe.fileURLToPath(new xe.URL(".",t)),e,r&&xe.fileURLToPath(r))}function zP(e,t,r,n,i){const s=`request is not a valid match in pattern "${t}" for the "${n?"imports":"exports"}" resolution of ${xe.fileURLToPath(r)}`;throw new _o(e,s,i&&xe.fileURLToPath(i))}function ls(e,t,r,n,i){return t=typeof t=="object"&&t!==null?JSON.stringify(t,null,""):`${t}`,new UP(xe.fileURLToPath(new xe.URL(".",r)),e,t,n,i&&xe.fileURLToPath(i))}function QP(e,t,r,n,i,s,a,o,u){if(t!==""&&!s&&e[e.length-1]!=="/")throw ls(r,e,n,a,i);if(!e.startsWith("./")){if(a&&!e.startsWith("../")&&!e.startsWith("/")){let p=!1;try{new xe.URL(e),p=!0}catch{}if(!p){const h=s?ua.call(la,e,()=>t):e+t;return jy(h,n,u)}}throw ls(r,e,n,a,i)}if(wp.exec(e.slice(2))!==null)if(Ip.exec(e.slice(2))===null){if(!o){const p=s?r.replace("*",()=>t):r+t,h=s?ua.call(la,e,()=>t):e;Np(h,p,r,n,a,i,!0)}}else throw ls(r,e,n,a,i);const l=new xe.URL(e,n),c=l.pathname,f=new xe.URL(".",n).pathname;if(!c.startsWith(f))throw ls(r,e,n,a,i);if(t==="")return l;if(wp.exec(t)!==null){const p=s?r.replace("*",()=>t):r+t;if(Ip.exec(t)===null){if(!o){const h=s?ua.call(la,e,()=>t):e;Np(h,p,r,n,a,i,!1)}}else zP(p,r,n,a,i)}return s?new xe.URL(ua.call(la,l.href,()=>t)):new xe.URL(t,l)}function ZP(e){const t=Number(e);return`${t}`!==e?!1:t>=0&&t<4294967295}function Li(e,t,r,n,i,s,a,o,u){if(typeof t=="string")return QP(t,r,n,e,i,s,a,o,u);if(Array.isArray(t)){const l=t;if(l.length===0)return null;let c,f=-1;for(;++f<l.length;){const p=l[f];let h;try{h=Li(e,p,r,n,i,s,a,o,u)}catch(d){const m=d;if(c=m,m.code==="ERR_INVALID_PACKAGE_TARGET")continue;throw d}if(h!==void 0){if(h===null){c=null;continue}return h}}if(c==null)return null;throw c}if(typeof t=="object"&&t!==null){const l=Object.getOwnPropertyNames(t);let c=-1;for(;++c<l.length;){const f=l[c];if(ZP(f))throw new Ly(xe.fileURLToPath(e),i,'"exports" cannot contain numeric property keys.')}for(c=-1;++c<l.length;){const f=l[c];if(f==="default"||u&&u.has(f)){const p=t[f],h=Li(e,p,r,n,i,s,a,o,u);if(h===void 0)continue;return h}}return null}if(t===null)return null;throw ls(n,t,e,a,i)}function ex(e,t,r){if(typeof e=="string"||Array.isArray(e))return!0;if(typeof e!="object"||e===null)return!1;const n=Object.getOwnPropertyNames(e);let i=!1,s=0,a=-1;for(;++a<n.length;){const o=n[a],u=o===""||o[0]!==".";if(s++===0)i=u;else if(i!==u)throw new Ly(xe.fileURLToPath(t),r,`"exports" cannot contain some keys starting with '.' and some not. The exports object must either be an object of package subpath keys or an object of main entry condition name keys only.`)}return i}function tx(e,t,r){if(Fr.noDeprecation)return;const n=xe.fileURLToPath(t);Op.has(n+"|"+e)||(Op.add(n+"|"+e),Fr.emitWarning(`Use of deprecated trailing slash pattern mapping "${e}" in the "exports" field module resolution of the package at ${n}${r?` imported from ${xe.fileURLToPath(r)}`:""}. Mapping specifiers ending in "/" is no longer supported.`,"DeprecationWarning","DEP0155"))}function Lp(e,t,r,n,i){let s=r.exports;if(ex(s,e,n)&&(s={".":s}),ky.call(s,t)&&!t.includes("*")&&!t.endsWith("/")){const c=s[t],f=Li(e,c,"",t,n,!1,!1,!1,i);if(f==null)throw xu(t,e,n);return f}let a="",o="";const u=Object.getOwnPropertyNames(s);let l=-1;for(;++l<u.length;){const c=u[l],f=c.indexOf("*");if(f!==-1&&t.startsWith(c.slice(0,f))){t.endsWith("/")&&tx(t,e,n);const p=c.slice(f+1);t.length>=c.length&&t.endsWith(p)&&My(a,c)===1&&c.lastIndexOf("*")===f&&(a=c,o=t.slice(f,t.length-p.length))}}if(a){const c=s[a],f=Li(e,c,o,a,n,!0,!1,t.endsWith("/"),i);if(f==null)throw xu(t,e,n);return f}throw xu(t,e,n)}function My(e,t){const r=e.indexOf("*"),n=t.indexOf("*"),i=r===-1?e.length:r+1,s=n===-1?t.length:n+1;return i>s?-1:s>i||r===-1?1:n===-1||e.length>t.length?-1:t.length>e.length?1:0}function rx(e,t,r){if(e==="#"||e.startsWith("#/")||e.endsWith("/")){const s="is not a valid internal imports specifier name";throw new _o(e,s,xe.fileURLToPath(t))}let n;const i=vc(t);if(i.exists){n=xe.pathToFileURL(i.pjsonPath);const s=i.imports;if(s)if(ky.call(s,e)&&!e.includes("*")){const a=Li(n,s[e],"",e,t,!1,!0,!1,r);if(a!=null)return a}else{let a="",o="";const u=Object.getOwnPropertyNames(s);let l=-1;for(;++l<u.length;){const c=u[l],f=c.indexOf("*");if(f!==-1&&e.startsWith(c.slice(0,-1))){const p=c.slice(f+1);e.length>=c.length&&e.endsWith(p)&&My(a,c)===1&&c.lastIndexOf("*")===f&&(a=c,o=e.slice(f,e.length-p.length))}}if(a){const c=s[a],f=Li(n,c,o,a,t,!0,!0,!1,r);if(f!=null)return f}}}throw JP(e,n,t)}function nx(e,t){let r=e.indexOf("/"),n=!0,i=!1;e[0]==="@"&&(i=!0,r===-1||e.length===0?n=!1:r=e.indexOf("/",r+1));const s=r===-1?e:e.slice(0,r);if(WP.exec(s)!==null&&(n=!1),!n)throw new _o(e,"is not a valid package name",xe.fileURLToPath(t));const a="."+(r===-1?"":e.slice(r));return{packageName:s,packageSubpath:a,isScoped:i}}function jy(e,t,r){if(Ns.builtinModules.includes(e))return new xe.URL("node:"+e);const{packageName:n,packageSubpath:i,isScoped:s}=nx(e,t),a=vc(t);if(a.exists){const c=xe.pathToFileURL(a.pjsonPath);if(a.name===n&&a.exports!==void 0&&a.exports!==null)return Lp(c,i,a,t,r)}let o=new xe.URL("./node_modules/"+n+"/package.json",t),u=xe.fileURLToPath(o),l;do{const c=Ry(u.slice(0,-13));if(!c||!c.isDirectory()){l=u,o=new xe.URL((s?"../../../../node_modules/":"../../../node_modules/")+n+"/package.json",o),u=xe.fileURLToPath(o);continue}const f=Oy(u,{base:t,specifier:e});return f.exports!==void 0&&f.exports!==null?Lp(o,i,f,t,r):i==="."?YP(o,f,t):new xe.URL(i,o)}while(u.length!==l.length);throw new Ac(n,xe.fileURLToPath(t),!1)}function ix(e){return e[0]==="."&&(e.length===1||e[1]==="/"||e[1]==="."&&(e.length===2||e[2]==="/"))}function Cc(e){return e===""?!1:e[0]==="/"?!0:ix(e)}function sx(e,t,r,n){const i=t.protocol,a=i==="data:"||i==="http:"||i==="https:";let o;if(Cc(e))try{o=new xe.URL(e,t)}catch(u){const l=new _p(e,t);throw l.cause=u,l}else if(i==="file:"&&e[0]==="#")o=rx(e,t,r);else try{o=new xe.URL(e)}catch(u){if(a&&!Ns.builtinModules.includes(e)){const l=new _p(e,t);throw l.cause=u,l}o=jy(e,t,r)}return rr(o!==void 0,"expected to be defined"),o.protocol!=="file:"?o:XP(o,t)}function ax(e,t,r){if(r){const n=r.protocol;if(n==="http:"||n==="https:"){if(Cc(e)){const i=t==null?void 0:t.protocol;if(i&&i!=="https:"&&i!=="http:")throw new Cu(e,r,"remote imports cannot import from a local location.");return{url:(t==null?void 0:t.href)||""}}throw Ns.builtinModules.includes(e)?new Cu(e,r,"remote imports cannot import from a local location."):new Cu(e,r,"only relative and absolute specifiers are supported.")}}}function ox(e){return!!(e&&typeof e=="object"&&"href"in e&&typeof e.href=="string"&&"protocol"in e&&typeof e.protocol=="string"&&e.href&&e.protocol)}function ux(e){if(e!==void 0&&typeof e!="string"&&!ox(e))throw new It.ERR_INVALID_ARG_TYPE("parentURL",["string","URL"],e)}function lx(e,t={}){const{parentURL:r}=t;rr(r!==void 0,"expected `parentURL` to be defined"),ux(r);let n;if(r)try{n=new xe.URL(r)}catch{}let i,s;try{if(i=Cc(e)?new xe.URL(e,n):new xe.URL(e),s=i.protocol,s==="data:")return{url:i.href,format:null}}catch{}const a=ax(e,i,n);if(a)return a;if(s===void 0&&i&&(s=i.protocol),s==="node:")return{url:e};if(i&&i.protocol==="node:")return{url:e};const o=$P(t.conditions),u=sx(e,new xe.URL(r),o);return{url:u.href,format:Ny(u,{parentURL:r})}}function cx(e,t){if(!t)throw new Error("Please pass `parent`: `import-meta-resolve` cannot ponyfill that");try{return lx(e,{parentURL:t}).url}catch(r){const n=r;if((n.code==="ERR_UNSUPPORTED_DIR_IMPORT"||n.code==="ERR_MODULE_NOT_FOUND")&&typeof n.url=="string")return n.url;throw r}}function fx(e,t){return import(cx(e,xe.pathToFileURL(t).href))}var $y=fx;function px(e,t){return Ns.createRequire(t)(e)}var hx=px,dx=new Set(["MODULE_NOT_FOUND","ERR_REQUIRE_ESM","ERR_PACKAGE_PATH_NOT_EXPORTED"]);async function mx(e,t){try{return hx(e,t)}catch(n){if(!dx.has(n==null?void 0:n.code))throw n}return(await $y(e,t)).default}var yx=mx;async function Dx(e){const{base:t,ext:r}=rt.parse(e),n=t==="package.json"?_y:t==="package.yaml"?wy:dP[r];if(!n)throw new Error(`No loader specified for extension "${r||"noExt"}"`);let i=await n(e);if(i){if(typeof i=="string"&&(i=await yx(i,e)),typeof i!="object")throw new TypeError(`Config is only allowed to be an object, but received ${typeof i} in "${e}"`);return delete i.$schema,i}}var gx=Dx,Ga=new Map,Ya=new Map;function Ex(){Ga.clear(),Ya.clear()}function bx(e,{shouldCache:t}){return e=rt.resolve(e),(!t||!Ga.has(e))&&Ga.set(e,gx(e)),Ga.get(e)}function Tx(e){if(e=e?rt.resolve(e):void 0,!Ya.has(e)){const t=gP(e),r=t.search.bind(t);Ya.set(e,r)}return Ya.get(e)}function Uy(e,t={}){e=e?rt.resolve(e):process.cwd();const r=gc.getPrettierConfigSearchStopDirectory();return Tx(r)(e,{shouldCache:t.shouldCache})}function Sx(){Ex(),Jv()}function vx(e,t){if(!e||!t.editorconfig)return;const r=t.useCache;return Qv(e,{shouldCache:r})}async function Ax(e,t){const r=t.useCache;let n=t.config;if(!n){const s=e?rt.dirname(rt.resolve(e)):void 0;n=await Uy(s,{shouldCache:r})}return n?{config:await bx(n,{shouldCache:r}),configFile:n}:void 0}async function Vy(e,t){t={useCache:!0,...t};const r=ji(e),[n,i]=await Promise.all([Ax(r,t),vx(r,t)]);if(!n&&!i)return null;const s={...i,...Px(n,r)};return Array.isArray(s.plugins)&&(s.plugins=s.plugins.map(a=>typeof a=="string"&&a.startsWith(".")?rt.resolve(rt.dirname(n.configFile),a):a)),s}async function Cx(e){const t=e?rt.dirname(rt.resolve(ji(e))):void 0;return await Uy(t,{shouldCache:!1})??null}function Px(e,t){const{config:r,configFile:n}=e||{},{overrides:i,...s}=r||{};if(t&&i){const a=rt.relative(rt.dirname(n),t);for(const o of i)xx(a,o.files,o.excludeFiles)&&Object.assign(s,o.options)}return s}function xx(e,t,r){const n=Array.isArray(t)?t:[t],[i,s]=ly(n,a=>a.includes("/"));return fp.default.isMatch(e,s,{ignore:r,basename:!0,dot:!0})||fp.default.isMatch(e,i,{ignore:r,basename:!1,dot:!0})}var Fx=(e,t,r,n)=>{if(!(e&&t==null))return t.replaceAll?t.replaceAll(r,n):r.global?t.replace(r,n):t.split(r).join(n)},Ls=Fx,_x=Zr(Y1()),wx=_x.default.default,Ix=rt.sep==="\\"?e=>Ls(!1,e,"\\","/"):e=>e;function Ox(e,t){const r=ji(t),n=uy(e)?xe.fileURLToPath(e):rt.resolve(e);return rt.relative(r?rt.dirname(r):process.cwd(),n)}async function Nx(e,t){let r="";if(e&&(r+=await Is(e)??""),t||(r+=`
|
|
81
|
+
node_modules`),!r)return;const n=wx({allowRelativePaths:!0}).add(r);return i=>n.ignores(Ix(Ox(i,e)))}async function qy(e,t){e.length===0&&!t&&(e=[void 0]);const r=(await Promise.all(e.map(n=>Nx(n,t)))).filter(Boolean);return n=>r.some(i=>i(n))}async function Bx(e,t){const{ignorePath:r,withNodeModules:n}=t;return(await qy(r,n))(e)}var Lx=Zr(X1());function kx(e){let t;try{t=St.openSync(e,"r")}catch{return}try{const n=new Lx.default(t).next().toString("utf8"),i=n.match(/^#!\/(?:usr\/)?bin\/env\s+(\S+)/u);if(i)return i[1];const s=n.match(/^#!\/(?:usr\/(?:local\/)?)?bin\/(\S+)/u);if(s)return s[1]}finally{try{St.closeSync(t)}catch{}}}var Rx=kx,Ky=e=>String(e).split(/[/\\]/u).pop();function kp(e,t){if(!t)return;const r=Ky(t).toLowerCase();return e.find(({filenames:n})=>n==null?void 0:n.some(i=>i.toLowerCase()===r))??e.find(({extensions:n})=>n==null?void 0:n.some(i=>r.endsWith(i)))}function Mx(e,t){if(t)return e.find(({name:r})=>r.toLowerCase()===t)??e.find(({aliases:r})=>r==null?void 0:r.includes(t))??e.find(({extensions:r})=>r==null?void 0:r.includes(`.${t}`))}function jx(e,t){if(!t||Ky(t).includes("."))return;const r=Rx(t);if(r)return e.find(({interpreters:n})=>n==null?void 0:n.includes(r))}function $x(e,t){const r=e.plugins.flatMap(i=>i.languages??[]),n=Mx(r,t.language)??kp(r,t.physicalFile)??kp(r,t.file)??jx(r,t.physicalFile);return n==null?void 0:n.parsers[0]}var Wy=$x;async function Ux(e,t){if(typeof e!="string"&&!(e instanceof URL))throw new TypeError(`expect \`file\` to be a string or URL, got \`${typeof e}\``);let{ignorePath:r,withNodeModules:n}=t;Array.isArray(r)||(r=[r]);const i=await Bx(e,{ignorePath:r,withNodeModules:n});let s;return i||(s=await Vx(e,t)),{ignored:i,inferredParser:s??null}}async function Vx(e,t){let r;return t.resolveConfig!==!1&&(r=await Vy(e)),(r==null?void 0:r.parser)??Wy(t,{physicalFile:e})}var qx=Ux;function Kx(e){const t=e.indexOf("\r");return t>=0?e.charAt(t+1)===`
|
|
82
|
+
`?"crlf":"cr":"lf"}function Pc(e){switch(e){case"cr":return"\r";case"crlf":return`\r
|
|
83
|
+
`;default:return`
|
|
84
|
+
`}}function Hy(e,t){let r;switch(t){case`
|
|
85
|
+
`:r=/\n/gu;break;case"\r":r=/\r/gu;break;case`\r
|
|
86
|
+
`:r=/\r\n/gu;break;default:throw new Error(`Unexpected "eol" ${JSON.stringify(t)}.`)}const n=e.match(r);return n?n.length:0}function Wx(e){return Ls(!1,e,/\r\n?/gu,`
|
|
87
|
+
`)}var ui="string",Qr="array",li="cursor",en="indent",tn="align",Ln="trim",ir="group",Ir="fill",Dr="if-break",kn="indent-if-break",rn="line-suffix",Rn="line-suffix-boundary",sr="line",nn="label",gr="break-parent",Gy=new Set([li,en,tn,Ln,ir,Ir,Dr,kn,rn,Rn,sr,nn,gr]);function Hx(e){if(typeof e=="string")return ui;if(Array.isArray(e))return Qr;if(!e)return;const{type:t}=e;if(Gy.has(t))return t}var ci=Hx,Gx=e=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(e);function Yx(e){const t=e===null?"null":typeof e;if(t!=="string"&&t!=="object")return`Unexpected doc '${t}',
|
|
88
|
+
Expected it to be 'string' or 'object'.`;if(ci(e))throw new Error("doc is valid.");const r=Object.prototype.toString.call(e);if(r!=="[object Object]")return`Unexpected doc '${r}'.`;const n=Gx([...Gy].map(i=>`'${i}'`));return`Unexpected doc.type '${e.type}'.
|
|
89
|
+
Expected it to be ${n}.`}var Xx=class extends Error{constructor(t){super(Yx(t));yi(this,"name","InvalidDocError");this.doc=t}},ki=Xx,Rp={};function Jx(e,t,r,n){const i=[e];for(;i.length>0;){const s=i.pop();if(s===Rp){r(i.pop());continue}r&&i.push(s,Rp);const a=ci(s);if(!a)throw new ki(s);if((t==null?void 0:t(s))!==!1)switch(a){case Qr:case Ir:{const o=a===Qr?s:s.parts;for(let u=o.length,l=u-1;l>=0;--l)i.push(o[l]);break}case Dr:i.push(s.flatContents,s.breakContents);break;case ir:if(n&&s.expandedStates)for(let o=s.expandedStates.length,u=o-1;u>=0;--u)i.push(s.expandedStates[u]);else i.push(s.contents);break;case tn:case en:case kn:case nn:case rn:i.push(s.contents);break;case ui:case li:case Ln:case Rn:case sr:case gr:break;default:throw new ki(s)}}}var zx=Jx;function wl(e){return{type:en,contents:e}}function Mp(e,t){return{type:tn,contents:t,n:e}}function Qx(e){return{type:Ir,parts:e}}function jp(e){return{type:rn,contents:e}}var Yy={type:gr},Xy={type:sr,hard:!0},Zx={type:sr},xi=[Xy,Yy],$p={type:li};function eF(e,t,r){let n=e;if(t>0){for(let i=0;i<Math.floor(t/r);++i)n=wl(n);n=Mp(t%r,n),n=Mp(Number.NEGATIVE_INFINITY,n)}return n}function jr(e){var t;if(!e)return"";if(Array.isArray(e)){const r=[];for(const n of e)if(Array.isArray(n))r.push(...jr(n));else{const i=jr(n);i!==""&&r.push(i)}return r}return e.type===Dr?{...e,breakContents:jr(e.breakContents),flatContents:jr(e.flatContents)}:e.type===ir?{...e,contents:jr(e.contents),expandedStates:(t=e.expandedStates)==null?void 0:t.map(jr)}:e.type===Ir?{type:"fill",parts:e.parts.map(jr)}:e.contents?{...e,contents:jr(e.contents)}:e}function tF(e){const t=Object.create(null),r=new Set;return n(jr(e));function n(s,a,o){var u,l;if(typeof s=="string")return JSON.stringify(s);if(Array.isArray(s)){const c=s.map(n).filter(Boolean);return c.length===1?c[0]:`[${c.join(", ")}]`}if(s.type===sr){const c=((u=o==null?void 0:o[a+1])==null?void 0:u.type)===gr;return s.literal?c?"literalline":"literallineWithoutBreakParent":s.hard?c?"hardline":"hardlineWithoutBreakParent":s.soft?"softline":"line"}if(s.type===gr)return((l=o==null?void 0:o[a-1])==null?void 0:l.type)===sr&&o[a-1].hard?void 0:"breakParent";if(s.type===Ln)return"trim";if(s.type===en)return"indent("+n(s.contents)+")";if(s.type===tn)return s.n===Number.NEGATIVE_INFINITY?"dedentToRoot("+n(s.contents)+")":s.n<0?"dedent("+n(s.contents)+")":s.n.type==="root"?"markAsRoot("+n(s.contents)+")":"align("+JSON.stringify(s.n)+", "+n(s.contents)+")";if(s.type===Dr)return"ifBreak("+n(s.breakContents)+(s.flatContents?", "+n(s.flatContents):"")+(s.groupId?(s.flatContents?"":', ""')+`, { groupId: ${i(s.groupId)} }`:"")+")";if(s.type===kn){const c=[];s.negate&&c.push("negate: true"),s.groupId&&c.push(`groupId: ${i(s.groupId)}`);const f=c.length>0?`, { ${c.join(", ")} }`:"";return`indentIfBreak(${n(s.contents)}${f})`}if(s.type===ir){const c=[];s.break&&s.break!=="propagated"&&c.push("shouldBreak: true"),s.id&&c.push(`id: ${i(s.id)}`);const f=c.length>0?`, { ${c.join(", ")} }`:"";return s.expandedStates?`conditionalGroup([${s.expandedStates.map(p=>n(p)).join(",")}]${f})`:`group(${n(s.contents)}${f})`}if(s.type===Ir)return`fill([${s.parts.map(c=>n(c)).join(", ")}])`;if(s.type===rn)return"lineSuffix("+n(s.contents)+")";if(s.type===Rn)return"lineSuffixBoundary";if(s.type===nn)return`label(${JSON.stringify(s.label)}, ${n(s.contents)})`;throw new Error("Unknown doc type "+s.type)}function i(s){if(typeof s!="symbol")return JSON.stringify(String(s));if(s in t)return t[s];const a=s.description||"symbol";for(let o=0;;o++){const u=a+(o>0?` #${o}`:"");if(!r.has(u))return r.add(u),t[s]=`Symbol.for(${JSON.stringify(u)})`}}}var rF=(e,t,r)=>{if(!(e&&t==null))return Array.isArray(t)||typeof t=="string"?t[r<0?t.length+r:r]:t.at(r)},Ft=rF,nF=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC2\uDECE-\uDEDB\uDEE0-\uDEE8]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;function iF(e){return e===12288||e>=65281&&e<=65376||e>=65504&&e<=65510}function sF(e){return e>=4352&&e<=4447||e===8986||e===8987||e===9001||e===9002||e>=9193&&e<=9196||e===9200||e===9203||e===9725||e===9726||e===9748||e===9749||e>=9800&&e<=9811||e===9855||e===9875||e===9889||e===9898||e===9899||e===9917||e===9918||e===9924||e===9925||e===9934||e===9940||e===9962||e===9970||e===9971||e===9973||e===9978||e===9981||e===9989||e===9994||e===9995||e===10024||e===10060||e===10062||e>=10067&&e<=10069||e===10071||e>=10133&&e<=10135||e===10160||e===10175||e===11035||e===11036||e===11088||e===11093||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12287||e>=12289&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12591||e>=12593&&e<=12686||e>=12688&&e<=12771||e>=12783&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=19903||e>=19968&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=94176&&e<=94180||e===94192||e===94193||e>=94208&&e<=100343||e>=100352&&e<=101589||e>=101632&&e<=101640||e>=110576&&e<=110579||e>=110581&&e<=110587||e===110589||e===110590||e>=110592&&e<=110882||e===110898||e>=110928&&e<=110930||e===110933||e>=110948&&e<=110951||e>=110960&&e<=111355||e===126980||e===127183||e===127374||e>=127377&&e<=127386||e>=127488&&e<=127490||e>=127504&&e<=127547||e>=127552&&e<=127560||e===127568||e===127569||e>=127584&&e<=127589||e>=127744&&e<=127776||e>=127789&&e<=127797||e>=127799&&e<=127868||e>=127870&&e<=127891||e>=127904&&e<=127946||e>=127951&&e<=127955||e>=127968&&e<=127984||e===127988||e>=127992&&e<=128062||e===128064||e>=128066&&e<=128252||e>=128255&&e<=128317||e>=128331&&e<=128334||e>=128336&&e<=128359||e===128378||e===128405||e===128406||e===128420||e>=128507&&e<=128591||e>=128640&&e<=128709||e===128716||e>=128720&&e<=128722||e>=128725&&e<=128727||e>=128732&&e<=128735||e===128747||e===128748||e>=128756&&e<=128764||e>=128992&&e<=129003||e===129008||e>=129292&&e<=129338||e>=129340&&e<=129349||e>=129351&&e<=129535||e>=129648&&e<=129660||e>=129664&&e<=129672||e>=129680&&e<=129725||e>=129727&&e<=129733||e>=129742&&e<=129755||e>=129760&&e<=129768||e>=129776&&e<=129784||e>=131072&&e<=196605||e>=196608&&e<=262141}var aF=e=>!(iF(e)||sF(e)),oF=/[^\x20-\x7F]/u;function uF(e){if(!e)return 0;if(!oF.test(e))return e.length;e=e.replace(nF()," ");let t=0;for(const r of e){const n=r.codePointAt(0);n<=31||n>=127&&n<=159||n>=768&&n<=879||(t+=aF(n)?1:2)}return t}var xc=uF;function lF(e,t){if(typeof e=="string")return t(e);const r=new Map;return n(e);function n(s){if(r.has(s))return r.get(s);const a=i(s);return r.set(s,a),a}function i(s){switch(ci(s)){case Qr:return t(s.map(n));case Ir:return t({...s,parts:s.parts.map(n)});case Dr:return t({...s,breakContents:n(s.breakContents),flatContents:n(s.flatContents)});case ir:{let{expandedStates:a,contents:o}=s;return a?(a=a.map(n),o=a[0]):o=n(o),t({...s,contents:o,expandedStates:a})}case tn:case en:case kn:case nn:case rn:return t({...s,contents:n(s.contents)});case ui:case li:case Ln:case Rn:case sr:case gr:return t(s);default:throw new ki(s)}}}function Up(e){if(e.length>0){const t=Ft(!1,e,-1);!t.expandedStates&&!t.break&&(t.break="propagated")}return null}function cF(e){const t=new Set,r=[];function n(s){if(s.type===gr&&Up(r),s.type===ir){if(r.push(s),t.has(s))return!1;t.add(s)}}function i(s){s.type===ir&&r.pop().break&&Up(r)}zx(e,n,i,!0)}function Vp(e){for(e=[...e];e.length>=2&&Ft(!1,e,-2).type===sr&&Ft(!1,e,-1).type===gr;)e.length-=2;if(e.length>0){const t=Ss(Ft(!1,e,-1));e[e.length-1]=t}return e}function Ss(e){switch(ci(e)){case en:case kn:case ir:case rn:case nn:{const t=Ss(e.contents);return{...e,contents:t}}case Dr:return{...e,breakContents:Ss(e.breakContents),flatContents:Ss(e.flatContents)};case Ir:return{...e,parts:Vp(e.parts)};case Qr:return Vp(e);case ui:return e.replace(/[\n\r]*$/u,"");case tn:case li:case Ln:case Rn:case sr:case gr:break;default:throw new ki(e)}return e}function fF(e){return Ss(hF(e))}function pF(e){switch(ci(e)){case Ir:if(e.parts.every(t=>t===""))return"";break;case ir:if(!e.contents&&!e.id&&!e.break&&!e.expandedStates)return"";if(e.contents.type===ir&&e.contents.id===e.id&&e.contents.break===e.break&&e.contents.expandedStates===e.expandedStates)return e.contents;break;case tn:case en:case kn:case rn:if(!e.contents)return"";break;case Dr:if(!e.flatContents&&!e.breakContents)return"";break;case Qr:{const t=[];for(const r of e){if(!r)continue;const[n,...i]=Array.isArray(r)?r:[r];typeof n=="string"&&typeof Ft(!1,t,-1)=="string"?t[t.length-1]+=n:t.push(n),t.push(...i)}return t.length===0?"":t.length===1?t[0]:t}case ui:case li:case Ln:case Rn:case sr:case nn:case gr:break;default:throw new ki(e)}return e}function hF(e){return lF(e,t=>pF(t))}function Jy(e,t){return e.type===nn?{...e,contents:t(e.contents)}:t(e)}var qt=Symbol("MODE_BREAK"),Pr=Symbol("MODE_FLAT"),vs=Symbol("cursor");function zy(){return{value:"",length:0,queue:[]}}function dF(e,t){return Il(e,{type:"indent"},t)}function mF(e,t,r){return t===Number.NEGATIVE_INFINITY?e.root||zy():t<0?Il(e,{type:"dedent"},r):t?t.type==="root"?{...e,root:e}:Il(e,{type:typeof t=="string"?"stringAlign":"numberAlign",n:t},r):e}function Il(e,t,r){const n=t.type==="dedent"?e.queue.slice(0,-1):[...e.queue,t];let i="",s=0,a=0,o=0;for(const d of n)switch(d.type){case"indent":c(),r.useTabs?u(1):l(r.tabWidth);break;case"stringAlign":c(),i+=d.n,s+=d.n.length;break;case"numberAlign":a+=1,o+=d.n;break;default:throw new Error(`Unexpected type '${d.type}'`)}return p(),{...e,value:i,length:s,queue:n};function u(d){i+=" ".repeat(d),s+=r.tabWidth*d}function l(d){i+=" ".repeat(d),s+=d}function c(){r.useTabs?f():p()}function f(){a>0&&u(a),h()}function p(){o>0&&l(o),h()}function h(){a=0,o=0}}function Ol(e){let t=0,r=0,n=e.length;e:for(;n--;){const i=e[n];if(i===vs){r++;continue}for(let s=i.length-1;s>=0;s--){const a=i[s];if(a===" "||a===" ")t++;else{e[n]=i.slice(0,s+1);break e}}}if(t>0||r>0)for(e.length=n+1;r-- >0;)e.push(vs);return t}function ca(e,t,r,n,i,s){if(r===Number.POSITIVE_INFINITY)return!0;let a=t.length;const o=[e],u=[];for(;r>=0;){if(o.length===0){if(a===0)return!0;o.push(t[--a]);continue}const{mode:l,doc:c}=o.pop(),f=ci(c);switch(f){case ui:u.push(c),r-=xc(c);break;case Qr:case Ir:{const p=f===Qr?c:c.parts;for(let h=p.length-1;h>=0;h--)o.push({mode:l,doc:p[h]});break}case en:case tn:case kn:case nn:o.push({mode:l,doc:c.contents});break;case Ln:r+=Ol(u);break;case ir:{if(s&&c.break)return!1;const p=c.break?qt:l,h=c.expandedStates&&p===qt?Ft(!1,c.expandedStates,-1):c.contents;o.push({mode:p,doc:h});break}case Dr:{const h=(c.groupId?i[c.groupId]||Pr:l)===qt?c.breakContents:c.flatContents;h&&o.push({mode:l,doc:h});break}case sr:if(l===qt||c.hard)return!0;c.soft||(u.push(" "),r--);break;case rn:n=!0;break;case Rn:if(n)return!1;break}}return!1}function Fc(e,t){const r={},n=t.printWidth,i=Pc(t.endOfLine);let s=0;const a=[{ind:zy(),mode:qt,doc:e}],o=[];let u=!1;const l=[];let c=0;for(cF(e);a.length>0;){const{ind:p,mode:h,doc:d}=a.pop();switch(ci(d)){case ui:{const m=i!==`
|
|
90
|
+
`?Ls(!1,d,`
|
|
91
|
+
`,i):d;o.push(m),a.length>0&&(s+=xc(m));break}case Qr:for(let m=d.length-1;m>=0;m--)a.push({ind:p,mode:h,doc:d[m]});break;case li:if(c>=2)throw new Error("There are too many 'cursor' in doc.");o.push(vs),c++;break;case en:a.push({ind:dF(p,t),mode:h,doc:d.contents});break;case tn:a.push({ind:mF(p,d.n,t),mode:h,doc:d.contents});break;case Ln:s-=Ol(o);break;case ir:switch(h){case Pr:if(!u){a.push({ind:p,mode:d.break?qt:Pr,doc:d.contents});break}case qt:{u=!1;const m={ind:p,mode:Pr,doc:d.contents},D=n-s,g=l.length>0;if(!d.break&&ca(m,a,D,g,r))a.push(m);else if(d.expandedStates){const y=Ft(!1,d.expandedStates,-1);if(d.break){a.push({ind:p,mode:qt,doc:y});break}else for(let b=1;b<d.expandedStates.length+1;b++)if(b>=d.expandedStates.length){a.push({ind:p,mode:qt,doc:y});break}else{const O=d.expandedStates[b],C={ind:p,mode:Pr,doc:O};if(ca(C,a,D,g,r)){a.push(C);break}}}else a.push({ind:p,mode:qt,doc:d.contents});break}}d.id&&(r[d.id]=Ft(!1,a,-1).mode);break;case Ir:{const m=n-s,{parts:D}=d;if(D.length===0)break;const[g,y]=D,b={ind:p,mode:Pr,doc:g},O={ind:p,mode:qt,doc:g},C=ca(b,[],m,l.length>0,r,!0);if(D.length===1){C?a.push(b):a.push(O);break}const $={ind:p,mode:Pr,doc:y},w={ind:p,mode:qt,doc:y};if(D.length===2){C?a.push($,b):a.push(w,O);break}D.splice(0,2);const P={ind:p,mode:h,doc:Qx(D)},I=D[0];ca({ind:p,mode:Pr,doc:[g,y,I]},[],m,l.length>0,r,!0)?a.push(P,$,b):C?a.push(P,w,b):a.push(P,w,O);break}case Dr:case kn:{const m=d.groupId?r[d.groupId]:h;if(m===qt){const D=d.type===Dr?d.breakContents:d.negate?d.contents:wl(d.contents);D&&a.push({ind:p,mode:h,doc:D})}if(m===Pr){const D=d.type===Dr?d.flatContents:d.negate?wl(d.contents):d.contents;D&&a.push({ind:p,mode:h,doc:D})}break}case rn:l.push({ind:p,mode:h,doc:d.contents});break;case Rn:l.length>0&&a.push({ind:p,mode:h,doc:Xy});break;case sr:switch(h){case Pr:if(d.hard)u=!0;else{d.soft||(o.push(" "),s+=1);break}case qt:if(l.length>0){a.push({ind:p,mode:h,doc:d},...l.reverse()),l.length=0;break}d.literal?p.root?(o.push(i,p.root.value),s=p.root.length):(o.push(i),s=0):(s-=Ol(o),o.push(i+p.value),s=p.length);break}break;case nn:a.push({ind:p,mode:h,doc:d.contents});break;case gr:break;default:throw new ki(d)}a.length===0&&l.length>0&&(a.push(...l.reverse()),l.length=0)}const f=o.indexOf(vs);if(f!==-1){const p=o.indexOf(vs,f+1),h=o.slice(0,f).join(""),d=o.slice(f+1,p).join(""),m=o.slice(p+1).join("");return{formatted:h+d+m,cursorNodeStart:h.length,cursorNodeText:d}}return{formatted:o.join("")}}function yF(e,t,r=0){let n=0;for(let i=r;i<e.length;++i)e[i]===" "?n=n+t-n%t:n++;return n}var _c=yF,Jn,Nl,Xa,DF=class{constructor(e){Qn(this,Jn),this.stack=[e]}get key(){const{stack:e,siblings:t}=this;return Ft(!1,e,t===null?-2:-4)??null}get index(){return this.siblings===null?null:Ft(!1,this.stack,-2)}get node(){return Ft(!1,this.stack,-1)}get parent(){return this.getNode(1)}get grandparent(){return this.getNode(2)}get isInArray(){return this.siblings!==null}get siblings(){const{stack:e}=this,t=Ft(!1,e,-3);return Array.isArray(t)?t:null}get next(){const{siblings:e}=this;return e===null?null:e[this.index+1]}get previous(){const{siblings:e}=this;return e===null?null:e[this.index-1]}get isFirst(){return this.index===0}get isLast(){const{siblings:e,index:t}=this;return e!==null&&t===e.length-1}get isRoot(){return this.stack.length===1}get root(){return this.stack[0]}get ancestors(){return[...bi(this,Jn,Xa).call(this)]}getName(){const{stack:e}=this,{length:t}=e;return t>1?Ft(!1,e,-2):null}getValue(){return Ft(!1,this.stack,-1)}getNode(e=0){const t=bi(this,Jn,Nl).call(this,e);return t===-1?null:this.stack[t]}getParentNode(e=0){return this.getNode(e+1)}call(e,...t){const{stack:r}=this,{length:n}=r;let i=Ft(!1,r,-1);for(const s of t)i=i[s],r.push(s,i);try{return e(this)}finally{r.length=n}}callParent(e,t=0){const r=bi(this,Jn,Nl).call(this,t+1),n=this.stack.splice(r+1);try{return e(this)}finally{this.stack.push(...n)}}each(e,...t){const{stack:r}=this,{length:n}=r;let i=Ft(!1,r,-1);for(const s of t)i=i[s],r.push(s,i);try{for(let s=0;s<i.length;++s)r.push(s,i[s]),e(this,s,i),r.length-=2}finally{r.length=n}}map(e,...t){const r=[];return this.each((n,i,s)=>{r[i]=e(n,i,s)},...t),r}match(...e){let t=this.stack.length-1,r=null,n=this.stack[t--];for(const i of e){if(n===void 0)return!1;let s=null;if(typeof r=="number"&&(s=r,r=this.stack[t--],n=this.stack[t--]),i&&!i(n,r,s))return!1;r=this.stack[t--],n=this.stack[t--]}return!0}findAncestor(e){for(const t of bi(this,Jn,Xa).call(this))if(e(t))return t}hasAncestor(e){for(const t of bi(this,Jn,Xa).call(this))if(e(t))return!0;return!1}};Jn=new WeakSet;Nl=function(e){const{stack:t}=this;for(let r=t.length-1;r>=0;r-=2)if(!Array.isArray(t[r])&&--e<0)return r;return-1};Xa=function*(){const{stack:e}=this;for(let t=e.length-3;t>=0;t-=2){const r=e[t];Array.isArray(r)||(yield r)}};var gF=DF;function EF(e){return e!==null&&typeof e=="object"}var bF=EF;function*Qy(e,t){const{getVisitorKeys:r,filter:n=()=>!0}=t,i=s=>bF(s)&&n(s);for(const s of r(e)){const a=e[s];if(Array.isArray(a))for(const o of a)i(o)&&(yield o);else i(a)&&(yield a)}}function*TF(e,t){const r=[e];for(let n=0;n<r.length;n++){const i=r[n];for(const s of Qy(i,t))yield s,r.push(s)}}function ks(e){return(t,r,n)=>{const i=!!(n!=null&&n.backwards);if(r===!1)return!1;const{length:s}=t;let a=r;for(;a>=0&&a<s;){const o=t.charAt(a);if(e instanceof RegExp){if(!e.test(o))return a}else if(!e.includes(o))return a;i?a--:a++}return a===-1||a===s?a:!1}}var SF=ks(/\s/u),vn=ks(" "),Zy=ks(",; "),e0=ks(/[^\n\r]/u);function vF(e,t,r){const n=!!(r!=null&&r.backwards);if(t===!1)return!1;const i=e.charAt(t);if(n){if(e.charAt(t-1)==="\r"&&i===`
|
|
92
|
+
`)return t-2;if(i===`
|
|
93
|
+
`||i==="\r"||i==="\u2028"||i==="\u2029")return t-1}else{if(i==="\r"&&e.charAt(t+1)===`
|
|
94
|
+
`)return t+2;if(i===`
|
|
95
|
+
`||i==="\r"||i==="\u2028"||i==="\u2029")return t+1}return t}var ii=vF;function AF(e,t,r={}){const n=vn(e,r.backwards?t-1:t,r),i=ii(e,n,r);return n!==i}var gn=AF;function CF(e){return Array.isArray(e)&&e.length>0}var t0=CF,r0=new Set(["tokens","comments","parent","enclosingNode","precedingNode","followingNode"]),PF=e=>Object.keys(e).filter(t=>!r0.has(t));function xF(e){return e?t=>e(t,r0):PF}var wo=xF;function FF(e){const t=e.type||e.kind||"(unknown type)";let r=String(e.name||e.id&&(typeof e.id=="object"?e.id.name:e.id)||e.key&&(typeof e.key=="object"?e.key.name:e.key)||e.value&&(typeof e.value=="object"?"":String(e.value))||e.operator||"");return r.length>20&&(r=r.slice(0,19)+"…"),t+(r?" "+r:"")}function wc(e,t){(e.comments??(e.comments=[])).push(t),t.printed=!1,t.nodeDescription=FF(e)}function Ai(e,t){t.leading=!0,t.trailing=!1,wc(e,t)}function zn(e,t,r){t.leading=!1,t.trailing=!1,r&&(t.marker=r),wc(e,t)}function Ci(e,t){t.leading=!1,t.trailing=!0,wc(e,t)}var Fu=new WeakMap;function Ic(e,t){if(Fu.has(e))return Fu.get(e);const{printer:{getCommentChildNodes:r,canAttachComment:n,getVisitorKeys:i},locStart:s,locEnd:a}=t;if(!n)return[];const o=((r==null?void 0:r(e,t))??[...Qy(e,{getVisitorKeys:wo(i)})]).flatMap(u=>n(u)?[u]:Ic(u,t));return o.sort((u,l)=>s(u)-s(l)||a(u)-a(l)),Fu.set(e,o),o}function n0(e,t,r,n){const{locStart:i,locEnd:s}=r,a=i(t),o=s(t),u=Ic(e,r);let l,c,f=0,p=u.length;for(;f<p;){const h=f+p>>1,d=u[h],m=i(d),D=s(d);if(m<=a&&o<=D)return n0(d,t,r,d);if(D<=a){l=d,f=h+1;continue}if(o<=m){c=d,p=h;continue}throw new Error("Comment location overlaps with node location")}if((n==null?void 0:n.type)==="TemplateLiteral"){const{quasis:h}=n,d=wu(h,t,r);l&&wu(h,l,r)!==d&&(l=null),c&&wu(h,c,r)!==d&&(c=null)}return{enclosingNode:n,precedingNode:l,followingNode:c}}var _u=()=>!1;function _F(e,t){const{comments:r}=e;if(delete e.comments,!t0(r)||!t.printer.canAttachComment)return;const n=[],{locStart:i,locEnd:s,printer:{experimentalFeatures:{avoidAstMutation:a=!1}={},handleComments:o={}},originalText:u}=t,{ownLine:l=_u,endOfLine:c=_u,remaining:f=_u}=o,p=r.map((h,d)=>({...n0(e,h,t),comment:h,text:u,options:t,ast:e,isLastComment:r.length-1===d}));for(const[h,d]of p.entries()){const{comment:m,precedingNode:D,enclosingNode:g,followingNode:y,text:b,options:O,ast:C,isLastComment:$}=d;if(O.parser==="json"||O.parser==="json5"||O.parser==="jsonc"||O.parser==="__js_expression"||O.parser==="__ts_expression"||O.parser==="__vue_expression"||O.parser==="__vue_ts_expression"){if(i(m)-i(C)<=0){Ai(C,m);continue}if(s(m)-s(C)>=0){Ci(C,m);continue}}let w;if(a?w=[d]:(m.enclosingNode=g,m.precedingNode=D,m.followingNode=y,w=[m,b,O,C,$]),wF(b,O,p,h))m.placement="ownLine",l(...w)||(y?Ai(y,m):D?Ci(D,m):zn(g||C,m));else if(IF(b,O,p,h))m.placement="endOfLine",c(...w)||(D?Ci(D,m):y?Ai(y,m):zn(g||C,m));else if(m.placement="remaining",!f(...w))if(D&&y){const P=n.length;P>0&&n[P-1].followingNode!==y&&qp(n,O),n.push(d)}else D?Ci(D,m):y?Ai(y,m):zn(g||C,m)}if(qp(n,t),!a)for(const h of r)delete h.precedingNode,delete h.enclosingNode,delete h.followingNode}var i0=e=>!/[\S\n\u2028\u2029]/u.test(e);function wF(e,t,r,n){const{comment:i,precedingNode:s}=r[n],{locStart:a,locEnd:o}=t;let u=a(i);if(s)for(let l=n-1;l>=0;l--){const{comment:c,precedingNode:f}=r[l];if(f!==s||!i0(e.slice(o(c),u)))break;u=a(c)}return gn(e,u,{backwards:!0})}function IF(e,t,r,n){const{comment:i,followingNode:s}=r[n],{locStart:a,locEnd:o}=t;let u=o(i);if(s)for(let l=n+1;l<r.length;l++){const{comment:c,followingNode:f}=r[l];if(f!==s||!i0(e.slice(u,a(c))))break;u=o(c)}return gn(e,u)}function qp(e,t){var r,n;const i=e.length;if(i===0)return;const{precedingNode:s,followingNode:a}=e[0];let o=t.locStart(a),u;for(u=i;u>0;--u){const{comment:l,precedingNode:c,followingNode:f}=e[u-1];rr.strictEqual(c,s),rr.strictEqual(f,a);const p=t.originalText.slice(t.locEnd(l),o);if(((n=(r=t.printer).isGap)==null?void 0:n.call(r,p,t))??/^[\s(]*$/u.test(p))o=t.locStart(l);else break}for(const[l,{comment:c}]of e.entries())l<u?Ci(s,c):Ai(a,c);for(const l of[s,a])l.comments&&l.comments.length>1&&l.comments.sort((c,f)=>t.locStart(c)-t.locStart(f));e.length=0}function wu(e,t,r){const n=r.locStart(t)-1;for(let i=1;i<e.length;++i)if(n<r.locStart(e[i]))return i-1;return 0}function OF(e,t){let r=t-1;r=vn(e,r,{backwards:!0}),r=ii(e,r,{backwards:!0}),r=vn(e,r,{backwards:!0});const n=ii(e,r,{backwards:!0});return r!==n}var Oc=OF;function s0(e,t){const r=e.node;return r.printed=!0,t.printer.printComment(e,t)}function NF(e,t){var r;const n=e.node,i=[s0(e,t)],{printer:s,originalText:a,locStart:o,locEnd:u}=t;if((r=s.isBlockComment)==null?void 0:r.call(s,n)){const f=gn(a,u(n))?gn(a,o(n),{backwards:!0})?xi:Zx:" ";i.push(f)}else i.push(xi);const c=ii(a,vn(a,u(n)));return c!==!1&&gn(a,c)&&i.push(xi),i}function BF(e,t,r){var n;const i=e.node,s=s0(e,t),{printer:a,originalText:o,locStart:u}=t,l=(n=a.isBlockComment)==null?void 0:n.call(a,i);if(r!=null&&r.hasLineSuffix&&!(r!=null&&r.isBlock)||gn(o,u(i),{backwards:!0})){const c=Oc(o,u(i));return{doc:jp([xi,c?xi:"",s]),isBlock:l,hasLineSuffix:!0}}return!l||r!=null&&r.hasLineSuffix?{doc:[jp([" ",s]),Yy],isBlock:l,hasLineSuffix:!0}:{doc:[" ",s],isBlock:l,hasLineSuffix:!1}}function LF(e,t){const r=e.node;if(!r)return{};const n=t[Symbol.for("printedComments")];if((r.comments||[]).filter(u=>!n.has(u)).length===0)return{leading:"",trailing:""};const s=[],a=[];let o;return e.each(()=>{const u=e.node;if(n!=null&&n.has(u))return;const{leading:l,trailing:c}=u;l?s.push(NF(e,t)):c&&(o=BF(e,t,o),a.push(o.doc))},"comments"),{leading:s,trailing:a}}function kF(e,t,r){const{leading:n,trailing:i}=LF(e,r);return!n&&!i?t:Jy(t,s=>[n,s,i])}function RF(e){const{[Symbol.for("comments")]:t,[Symbol.for("printedComments")]:r}=e;for(const n of t){if(!n.printed&&!r.has(n))throw new Error('Comment "'+n.value.trim()+'" was not printed. Please report this error!');delete n.printed}}function MF(e){return()=>{}}var jF=MF,$F={cursorOffset:{category:"Special",type:"int",default:-1,range:{start:-1,end:1/0,step:1},description:"Print (to stderr) where a cursor at the given position would move to after formatting.",cliCategory:"Editor"},endOfLine:{category:"Global",type:"choice",default:"lf",description:"Which end of line characters to apply.",choices:[{value:"lf",description:"Line Feed only (\\n), common on Linux and macOS as well as inside git repos"},{value:"crlf",description:"Carriage Return + Line Feed characters (\\r\\n), common on Windows"},{value:"cr",description:"Carriage Return character only (\\r), used very rarely"},{value:"auto",description:`Maintain existing
|
|
96
|
+
(mixed values within one file are normalised by looking at what's used after the first line)`}]},filepath:{category:"Special",type:"path",description:"Specify the input filepath. This will be used to do parser inference.",cliName:"stdin-filepath",cliCategory:"Other",cliDescription:"Path to the file to pretend that stdin comes from."},insertPragma:{category:"Special",type:"boolean",default:!1,description:"Insert @format pragma into file's first docblock comment.",cliCategory:"Other"},parser:{category:"Global",type:"choice",default:void 0,description:"Which parser to use.",exception:e=>typeof e=="string"||typeof e=="function",choices:[{value:"flow",description:"Flow"},{value:"babel",description:"JavaScript"},{value:"babel-flow",description:"Flow"},{value:"babel-ts",description:"TypeScript"},{value:"typescript",description:"TypeScript"},{value:"acorn",description:"JavaScript"},{value:"espree",description:"JavaScript"},{value:"meriyah",description:"JavaScript"},{value:"css",description:"CSS"},{value:"less",description:"Less"},{value:"scss",description:"SCSS"},{value:"json",description:"JSON"},{value:"json5",description:"JSON5"},{value:"jsonc",description:"JSON with Comments"},{value:"json-stringify",description:"JSON.stringify"},{value:"graphql",description:"GraphQL"},{value:"markdown",description:"Markdown"},{value:"mdx",description:"MDX"},{value:"vue",description:"Vue"},{value:"yaml",description:"YAML"},{value:"glimmer",description:"Ember / Handlebars"},{value:"html",description:"HTML"},{value:"angular",description:"Angular"},{value:"lwc",description:"Lightning Web Components"}]},plugins:{type:"path",array:!0,default:[{value:[]}],category:"Global",description:"Add a plugin. Multiple plugins can be passed as separate `--plugin`s.",exception:e=>typeof e=="string"||typeof e=="object",cliName:"plugin",cliCategory:"Config"},printWidth:{category:"Global",type:"int",default:80,description:"The line length where Prettier will try wrap.",range:{start:0,end:1/0,step:1}},rangeEnd:{category:"Special",type:"int",default:1/0,range:{start:0,end:1/0,step:1},description:`Format code ending at a given character offset (exclusive).
|
|
97
|
+
The range will extend forwards to the end of the selected statement.`,cliCategory:"Editor"},rangeStart:{category:"Special",type:"int",default:0,range:{start:0,end:1/0,step:1},description:`Format code starting at a given character offset.
|
|
98
|
+
The range will extend backwards to the start of the first line containing the selected statement.`,cliCategory:"Editor"},requirePragma:{category:"Special",type:"boolean",default:!1,description:`Require either '@prettier' or '@format' to be present in the file's first docblock comment
|
|
99
|
+
in order for it to be formatted.`,cliCategory:"Other"},tabWidth:{type:"int",category:"Global",default:2,description:"Number of spaces per indentation level.",range:{start:0,end:1/0,step:1}},useTabs:{category:"Global",type:"boolean",default:!1,description:"Indent with tabs instead of spaces."},embeddedLanguageFormatting:{category:"Global",type:"choice",default:"auto",description:"Control how Prettier formats quoted code embedded in the file.",choices:[{value:"auto",description:"Format embedded code if Prettier can automatically identify it."},{value:"off",description:"Never automatically format embedded code."}]}};function Nc({plugins:e=[],showDeprecated:t=!1}={}){const r=e.flatMap(i=>i.languages??[]),n=[];for(const i of a0(Object.assign({},...e.map(({options:s})=>s),$F)))!t&&i.deprecated||(Array.isArray(i.choices)&&(t||(i.choices=i.choices.filter(s=>!s.deprecated)),i.name==="parser"&&(i.choices=[...i.choices,...UF(i.choices,r,e)])),i.pluginDefaults=Object.fromEntries(e.filter(s=>{var a;return((a=s.defaultOptions)==null?void 0:a[i.name])!==void 0}).map(s=>[s.name,s.defaultOptions[i.name]])),n.push(i));return{languages:r,options:n}}function*UF(e,t,r){const n=new Set(e.map(i=>i.value));for(const i of t)if(i.parsers){for(const s of i.parsers)if(!n.has(s)){n.add(s);const a=r.find(u=>u.parsers&&Object.prototype.hasOwnProperty.call(u.parsers,s));let o=i.name;a!=null&&a.name&&(o+=` (plugin: ${a.name})`),yield{value:s,description:o}}}}function a0(e){const t=[];for(const[r,n]of Object.entries(e)){const i={name:r,...n};Array.isArray(i.default)&&(i.default=Ft(!1,i.default,-1).value),t.push(i)}return t}var Iu;function VF(e,t,{logger:r=!1,isCLI:n=!1,passThrough:i=!1,FlagSchema:s,descriptor:a}={}){if(n){if(!s)throw new Error("'FlagSchema' option is required.");if(!a)throw new Error("'descriptor' option is required.")}else a=Zn;const o=i?Array.isArray(i)?(p,h)=>i.includes(p)?{[p]:h}:void 0:(p,h)=>({[p]:h}):(p,h,d)=>{const{_:m,...D}=d.schemas;return ny(p,h,{...d,schemas:D})},u=qF(t,{isCLI:n,FlagSchema:s}),l=new Nv(u,{logger:r,unknown:o,descriptor:a}),c=r!==!1;c&&Iu&&(l._hasDeprecationWarned=Iu);const f=l.normalize(e);return c&&(Iu=l._hasDeprecationWarned),f}function qF(e,{isCLI:t,FlagSchema:r}){const n=[];t&&n.push(yv.create({name:"_"}));for(const i of e)n.push(KF(i,{isCLI:t,optionInfos:e,FlagSchema:r})),i.alias&&t&&n.push(mv.create({name:i.alias,sourceName:i.name}));return n}function KF(e,{isCLI:t,optionInfos:r,FlagSchema:n}){const{name:i}=e,s={name:i};let a;const o={};switch(e.type){case"int":a=Fv,t&&(s.preprocess=Number);break;case"string":a=cp;break;case"choice":a=sy,s.choices=e.choices.map(u=>u!=null&&u.redirect?{...u,redirect:{to:{key:e.name,value:u.redirect}}}:u);break;case"boolean":a=gv;break;case"flag":a=n,s.flags=r.flatMap(u=>[u.alias,u.description&&u.name,u.oppositeDescription&&`no-${u.name}`].filter(Boolean));break;case"path":a=cp;break;default:throw new Error(`Unexpected type ${e.type}`)}if(e.exception?s.validate=(u,l,c)=>e.exception(u)||l.validate(u,c):s.validate=(u,l,c)=>u===void 0||l.validate(u,c),e.redirect&&(o.redirect=u=>u?{to:typeof e.redirect=="string"?e.redirect:{key:e.redirect.option,value:e.redirect.value}}:void 0),e.deprecated&&(o.deprecated=!0),t&&!e.array){const u=s.preprocess||(l=>l);s.preprocess=(l,c,f)=>c.preprocess(u(Array.isArray(l)?Ft(!1,l,-1):l),f)}return e.array?Dv.create({...t?{preprocess:u=>Array.isArray(u)?u:[u]}:{},...o,valueSchema:a.create(s)}):a.create({...s,...o})}var o0=VF,WF=(e,t,r)=>{if(!(e&&t==null)){if(t.findLast)return t.findLast(r);for(let n=t.length-1;n>=0;n--){const i=t[n];if(r(i,n,t))return i}}},u0=WF;function l0(e,t){if(!t)throw new Error("parserName is required.");const r=u0(!1,e,i=>i.parsers&&Object.prototype.hasOwnProperty.call(i.parsers,t));if(r)return r;let n=`Couldn't resolve parser "${t}".`;throw new Dc(n)}function HF(e,t){if(!t)throw new Error("astFormat is required.");const r=u0(!1,e,i=>i.printers&&Object.prototype.hasOwnProperty.call(i.printers,t));if(r)return r;let n=`Couldn't find plugin for AST format "${t}".`;throw new Dc(n)}function c0({plugins:e,parser:t}){const r=l0(e,t);return f0(r,t)}function f0(e,t){const r=e.parsers[t];return typeof r=="function"?r():r}function GF(e,t){const r=e.printers[t];return typeof r=="function"?r():r}var Bl={astFormat:"estree",printer:{},originalText:void 0,locStart:null,locEnd:null};async function YF(e,t={}){var r;const n={...e};if(!n.parser)if(n.filepath){if(n.parser=Wy(n,{physicalFile:n.filepath}),!n.parser)throw new vl(`No parser could be inferred for file "${n.filepath}".`)}else throw new vl("No parser and no file path given, couldn't infer a parser.");const i=Nc({plugins:e.plugins,showDeprecated:!0}).options,s={...Bl,...Object.fromEntries(i.filter(p=>p.default!==void 0).map(p=>[p.name,p.default]))},a=l0(n.plugins,n.parser),o=await f0(a,n.parser);n.astFormat=o.astFormat,n.locEnd=o.locEnd,n.locStart=o.locStart;const u=(r=a.printers)!=null&&r[o.astFormat]?a:HF(n.plugins,o.astFormat),l=await GF(u,o.astFormat);n.printer=l;const c=u.defaultOptions?Object.fromEntries(Object.entries(u.defaultOptions).filter(([,p])=>p!==void 0)):{},f={...s,...c};for(const[p,h]of Object.entries(f))(n[p]===null||n[p]===void 0)&&(n[p]=h);return n.parser==="json"&&(n.trailingComma="none"),o0(n,i,{passThrough:Object.keys(Bl),...t})}var $i=YF,XF=Zr(Jm());async function JF(e,t){const r=await c0(t),n=r.preprocess?r.preprocess(e,t):e;t.originalText=n;let i;try{i=await r.parse(n,t,t)}catch(s){zF(s,e)}return{text:n,ast:i}}function zF(e,t){const{loc:r}=e;if(r){const n=(0,XF.codeFrameColumns)(t,r,{highlightCode:!0});throw e.message+=`
|
|
100
|
+
`+n,e.codeFrame=n,e}throw e}var Rs=JF;async function QF(e,t,r,n,i){const{embeddedLanguageFormatting:s,printer:{embed:a,hasPrettierIgnore:o=()=>!1,getVisitorKeys:u}}=r;if(!a||s!=="auto")return;if(a.length>2)throw new Error("printer.embed has too many parameters. The API changed in Prettier v3. Please update your plugin. See https://prettier.io/docs/en/plugins.html#optional-embed");const l=wo(a.getVisitorKeys??u),c=[];h();const f=e.stack;for(const{print:d,node:m,pathStack:D}of c)try{e.stack=D;const g=await d(p,t,e,r);g&&i.set(m,g)}catch(g){if(process.env.PRETTIER_DEBUG)throw g}e.stack=f;function p(d,m){return ZF(d,m,r,n)}function h(){const{node:d}=e;if(d===null||typeof d!="object"||o(e))return;for(const D of l(d))Array.isArray(d[D])?e.each(h,D):e.call(h,D);const m=a(e,r);if(m){if(typeof m=="function"){c.push({print:m,node:d,pathStack:[...e.stack]});return}i.set(d,m)}}}async function ZF(e,t,r,n){const i=await $i({...r,...t,parentParser:r.parser,originalText:e},{passThrough:!0}),{ast:s}=await Rs(e,i),a=await n(s,i);return fF(a)}function e2(e,t){const{originalText:r,[Symbol.for("comments")]:n,locStart:i,locEnd:s,[Symbol.for("printedComments")]:a}=t,{node:o}=e,u=i(o),l=s(o);for(const c of n)i(c)>=u&&s(c)<=l&&a.add(c);return r.slice(u,l)}var t2=e2;async function Io(e,t){({ast:e}=await p0(e,t));const r=new Map,n=new gF(e),i=jF(),s=new Map;await QF(n,o,t,Io,s);const a=await Kp(n,t,o,void 0,s);return RF(t),a;function o(l,c){return l===void 0||l===n?u(c):Array.isArray(l)?n.call(()=>u(c),...l):n.call(()=>u(c),l)}function u(l){i(n);const c=n.node;if(c==null)return"";const f=c&&typeof c=="object"&&l===void 0;if(f&&r.has(c))return r.get(c);const p=Kp(n,t,o,l,s);return f&&r.set(c,p),p}}function Kp(e,t,r,n,i){var s;const{node:a}=e,{printer:o}=t;let u;return(s=o.hasPrettierIgnore)!=null&&s.call(o,e)?u=t2(e,t):i.has(a)?u=i.get(a):u=o.print(e,t,r,n),a===t.cursorNode&&(u=Jy(u,l=>[$p,l,$p])),o.printComment&&(!o.willPrintOwnComments||!o.willPrintOwnComments(e,t))&&(u=kF(e,u,t)),u}async function p0(e,t){const r=e.comments??[];t[Symbol.for("comments")]=r,t[Symbol.for("tokens")]=e.tokens??[],t[Symbol.for("printedComments")]=new Set,_F(e,t);const{printer:{preprocess:n}}=t;return e=n?await n(e,t):e,{ast:e,comments:r}}function r2(e,t){const{cursorOffset:r,locStart:n,locEnd:i}=t,s=wo(t.printer.getVisitorKeys),a=u=>n(u)<=r&&i(u)>=r;let o=e;for(const u of TF(e,{getVisitorKeys:s,filter:a}))o=u;return o}var n2=r2;function i2(e,t){const{printer:{massageAstNode:r,getVisitorKeys:n}}=t;if(!r)return e;const i=wo(n),s=r.ignoredProperties??new Set;return a(e);function a(o,u){if(!(o!==null&&typeof o=="object"))return o;if(Array.isArray(o))return o.map(p=>a(p,u)).filter(Boolean);const l={},c=new Set(i(o));for(const p in o)!Object.prototype.hasOwnProperty.call(o,p)||s.has(p)||(c.has(p)?l[p]=a(o[p],o):l[p]=o[p]);const f=r(o,l,u);if(f!==null)return f??l}}var s2=i2,a2=(e,t,r)=>{if(!(e&&t==null)){if(t.findLastIndex)return t.findLastIndex(r);for(let n=t.length-1;n>=0;n--){const i=t[n];if(r(i,n,t))return n}return-1}},o2=a2,u2=({parser:e})=>e==="json"||e==="json5"||e==="jsonc"||e==="json-stringify";function l2(e,t){const r=[e.node,...e.parentNodes],n=new Set([t.node,...t.parentNodes]);return r.find(i=>h0.has(i.type)&&n.has(i))}function Wp(e){const t=o2(!1,e,r=>r.type!=="Program"&&r.type!=="File");return t===-1?e:e.slice(0,t+1)}function c2(e,t,{locStart:r,locEnd:n}){let i=e.node,s=t.node;if(i===s)return{startNode:i,endNode:s};const a=r(e.node);for(const u of Wp(t.parentNodes))if(r(u)>=a)s=u;else break;const o=n(t.node);for(const u of Wp(e.parentNodes)){if(n(u)<=o)i=u;else break;if(i===s)break}return{startNode:i,endNode:s}}function Ll(e,t,r,n,i=[],s){const{locStart:a,locEnd:o}=r,u=a(e),l=o(e);if(!(t>l||t<u||s==="rangeEnd"&&t===u||s==="rangeStart"&&t===l)){for(const c of Ic(e,r)){const f=Ll(c,t,r,n,[e,...i],s);if(f)return f}if(!n||n(e,i[0]))return{node:e,parentNodes:i}}}function f2(e,t){return t!=="DeclareExportDeclaration"&&e!=="TypeParameterDeclaration"&&(e==="Directive"||e==="TypeAlias"||e==="TSExportAssignment"||e.startsWith("Declare")||e.startsWith("TSDeclare")||e.endsWith("Statement")||e.endsWith("Declaration"))}var h0=new Set(["JsonRoot","ObjectExpression","ArrayExpression","StringLiteral","NumericLiteral","BooleanLiteral","NullLiteral","UnaryExpression","TemplateLiteral"]),p2=new Set(["OperationDefinition","FragmentDefinition","VariableDefinition","TypeExtensionDefinition","ObjectTypeDefinition","FieldDefinition","DirectiveDefinition","EnumTypeDefinition","EnumValueDefinition","InputValueDefinition","InputObjectTypeDefinition","SchemaDefinition","OperationTypeDefinition","InterfaceTypeDefinition","UnionTypeDefinition","ScalarTypeDefinition"]);function Hp(e,t,r){if(!t)return!1;switch(e.parser){case"flow":case"babel":case"babel-flow":case"babel-ts":case"typescript":case"acorn":case"espree":case"meriyah":case"__babel_estree":return f2(t.type,r==null?void 0:r.type);case"json":case"json5":case"jsonc":case"json-stringify":return h0.has(t.type);case"graphql":return p2.has(t.kind);case"vue":return t.tag!=="root"}return!1}function h2(e,t,r){let{rangeStart:n,rangeEnd:i,locStart:s,locEnd:a}=t;rr.ok(i>n);const o=e.slice(n,i).search(/\S/u),u=o===-1;if(!u)for(n+=o;i>n&&!/\S/u.test(e[i-1]);--i);const l=Ll(r,n,t,(h,d)=>Hp(t,h,d),[],"rangeStart"),c=u?l:Ll(r,i,t,h=>Hp(t,h),[],"rangeEnd");if(!l||!c)return{rangeStart:0,rangeEnd:0};let f,p;if(u2(t)){const h=l2(l,c);f=h,p=h}else({startNode:f,endNode:p}=c2(l,c,t));return{rangeStart:Math.min(s(f),s(p)),rangeEnd:Math.max(a(f),a(p))}}var d0="\uFEFF",Gp=Symbol("cursor");async function m0(e,t,r=0){if(!e||e.trim().length===0)return{formatted:"",cursorOffset:-1,comments:[]};const{ast:n,text:i}=await Rs(e,t);t.cursorOffset>=0&&(t.cursorNode=n2(n,t));let s=await Io(n,t);r>0&&(s=eF([xi,s],r,t.tabWidth));const a=Fc(s,t);if(r>0){const u=a.formatted.trim();a.cursorNodeStart!==void 0&&(a.cursorNodeStart-=a.formatted.indexOf(u)),a.formatted=u+Pc(t.endOfLine)}const o=t[Symbol.for("comments")];if(t.cursorOffset>=0){let u,l,c,f,p;if(t.cursorNode&&a.cursorNodeText?(u=t.locStart(t.cursorNode),l=i.slice(u,t.locEnd(t.cursorNode)),c=t.cursorOffset-u,f=a.cursorNodeStart,p=a.cursorNodeText):(u=0,l=i,c=t.cursorOffset,f=0,p=a.formatted),l===p)return{formatted:a.formatted,cursorOffset:f+c,comments:o};const h=l.split("");h.splice(c,0,Gp);const d=p.split(""),m=sv(h,d);let D=f;for(const g of m)if(g.removed){if(g.value.includes(Gp))break}else D+=g.count;return{formatted:a.formatted,cursorOffset:D,comments:o}}return{formatted:a.formatted,cursorOffset:-1,comments:o}}async function d2(e,t){const{ast:r,text:n}=await Rs(e,t),{rangeStart:i,rangeEnd:s}=h2(n,t,r),a=n.slice(i,s),o=Math.min(i,n.lastIndexOf(`
|
|
101
|
+
`,i)+1),u=n.slice(o,i).match(/^\s*/u)[0],l=_c(u,t.tabWidth),c=await m0(a,{...t,rangeStart:0,rangeEnd:Number.POSITIVE_INFINITY,cursorOffset:t.cursorOffset>i&&t.cursorOffset<=s?t.cursorOffset-i:-1,endOfLine:"lf"},l),f=c.formatted.trimEnd();let{cursorOffset:p}=t;p>s?p+=f.length-a.length:c.cursorOffset>=0&&(p=c.cursorOffset+i);let h=n.slice(0,i)+f+n.slice(s);if(t.endOfLine!=="lf"){const d=Pc(t.endOfLine);p>=0&&d===`\r
|
|
102
|
+
`&&(p+=Hy(h.slice(0,p),`
|
|
103
|
+
`)),h=Ls(!1,h,`
|
|
104
|
+
`,d)}return{formatted:h,cursorOffset:p,comments:c.comments}}function Ou(e,t,r){return typeof t!="number"||Number.isNaN(t)||t<0||t>e.length?r:t}function Yp(e,t){let{cursorOffset:r,rangeStart:n,rangeEnd:i}=t;return r=Ou(e,r,-1),n=Ou(e,n,0),i=Ou(e,i,e.length),{...t,cursorOffset:r,rangeStart:n,rangeEnd:i}}function y0(e,t){let{cursorOffset:r,rangeStart:n,rangeEnd:i,endOfLine:s}=Yp(e,t);const a=e.charAt(0)===d0;if(a&&(e=e.slice(1),r--,n--,i--),s==="auto"&&(s=Kx(e)),e.includes("\r")){const o=u=>Hy(e.slice(0,Math.max(u,0)),`\r
|
|
105
|
+
`);r-=o(r),n-=o(n),i-=o(i),e=Wx(e)}return{hasBOM:a,text:e,options:Yp(e,{...t,cursorOffset:r,rangeStart:n,rangeEnd:i,endOfLine:s})}}async function Xp(e,t){const r=await c0(t);return!r.hasPragma||r.hasPragma(e)}async function D0(e,t){let{hasBOM:r,text:n,options:i}=y0(e,await $i(t));if(i.rangeStart>=i.rangeEnd&&n!==""||i.requirePragma&&!await Xp(n,i))return{formatted:e,cursorOffset:t.cursorOffset,comments:[]};let s;return i.rangeStart>0||i.rangeEnd<n.length?s=await d2(n,i):(!i.requirePragma&&i.insertPragma&&i.printer.insertPragma&&!await Xp(n,i)&&(n=i.printer.insertPragma(n)),s=await m0(n,i)),r&&(s.formatted=d0+s.formatted,s.cursorOffset>=0&&s.cursorOffset++),s}async function m2(e,t,r){const{text:n,options:i}=y0(e,await $i(t)),s=await Rs(n,i);return r&&(r.preprocessForPrint&&(s.ast=await p0(s.ast,i)),r.massage&&(s.ast=s2(s.ast,i))),s}async function y2(e,t){t=await $i(t);const r=await Io(e,t);return Fc(r,t)}async function D2(e,t){const r=tF(e),{formatted:n}=await D0(r,{...t,parser:"__js_expression"});return n}async function g2(e,t){t=await $i(t);const{ast:r}=await Rs(e,t);return Io(r,t)}async function E2(e,t){return Fc(e,await $i(t))}var g0={};Ri(g0,{CATEGORY_CONFIG:()=>b2,CATEGORY_EDITOR:()=>T2,CATEGORY_FORMAT:()=>S2,CATEGORY_GLOBAL:()=>C2,CATEGORY_OTHER:()=>v2,CATEGORY_OUTPUT:()=>A2,CATEGORY_SPECIAL:()=>P2});var b2="Config",T2="Editor",S2="Format",v2="Other",A2="Output",C2="Global",P2="Special",E0={};Ri(E0,{languages:()=>X2,options:()=>Y2,parsers:()=>J2,printers:()=>z2});var x2=[{linguistLanguageId:50,name:"CSS",type:"markup",tmScope:"source.css",aceMode:"css",codemirrorMode:"css",codemirrorMimeType:"text/css",color:"#563d7c",extensions:[".css",".wxss"],parsers:["css"],vscodeLanguageIds:["css"]},{linguistLanguageId:262764437,name:"PostCSS",type:"markup",color:"#dc3a0c",tmScope:"source.postcss",group:"CSS",extensions:[".pcss",".postcss"],aceMode:"text",parsers:["css"],vscodeLanguageIds:["postcss"]},{linguistLanguageId:198,name:"Less",type:"markup",color:"#1d365d",aliases:["less-css"],extensions:[".less"],tmScope:"source.css.less",aceMode:"less",codemirrorMode:"css",codemirrorMimeType:"text/css",parsers:["less"],vscodeLanguageIds:["less"]},{linguistLanguageId:329,name:"SCSS",type:"markup",color:"#c6538c",tmScope:"source.css.scss",aceMode:"scss",codemirrorMode:"css",codemirrorMimeType:"text/x-scss",extensions:[".scss"],parsers:["scss"],vscodeLanguageIds:["scss"]}],Xt={bracketSpacing:{category:"Common",type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap prose.",choices:[{value:"always",description:"Wrap prose if it exceeds the print width."},{value:"never",description:"Do not wrap prose."},{value:"preserve",description:"Wrap prose as-is."}]},bracketSameLine:{category:"Common",type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}},F2={singleQuote:Xt.singleQuote},_2=F2,w2=[{linguistLanguageId:139,name:"GraphQL",type:"data",color:"#e10098",extensions:[".graphql",".gql",".graphqls"],tmScope:"source.graphql",aceMode:"text",parsers:["graphql"],vscodeLanguageIds:["graphql"]}],I2={bracketSpacing:Xt.bracketSpacing},O2=I2,N2=[{linguistLanguageId:155,name:"Handlebars",type:"markup",color:"#f7931e",aliases:["hbs","htmlbars"],extensions:[".handlebars",".hbs"],tmScope:"text.html.handlebars",aceMode:"handlebars",parsers:["glimmer"],vscodeLanguageIds:["handlebars"]}],B2=[{linguistLanguageId:146,name:"Angular",type:"markup",tmScope:"text.html.basic",aceMode:"html",codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",color:"#e34c26",aliases:["xhtml"],extensions:[".component.html"],parsers:["angular"],vscodeLanguageIds:["html"],filenames:[]},{linguistLanguageId:146,name:"HTML",type:"markup",tmScope:"text.html.basic",aceMode:"html",codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",color:"#e34c26",aliases:["xhtml"],extensions:[".html",".hta",".htm",".html.hl",".inc",".xht",".xhtml",".mjml"],parsers:["html"],vscodeLanguageIds:["html"]},{linguistLanguageId:146,name:"Lightning Web Components",type:"markup",tmScope:"text.html.basic",aceMode:"html",codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",color:"#e34c26",aliases:["xhtml"],extensions:[],parsers:["lwc"],vscodeLanguageIds:["html"],filenames:[]},{linguistLanguageId:391,name:"Vue",type:"markup",color:"#41b883",extensions:[".vue"],tmScope:"text.html.vue",aceMode:"html",parsers:["vue"],vscodeLanguageIds:["vue"]}],Jp="HTML",L2={bracketSameLine:Xt.bracketSameLine,htmlWhitespaceSensitivity:{category:Jp,type:"choice",default:"css",description:"How to handle whitespaces in HTML.",choices:[{value:"css",description:"Respect the default value of CSS display property."},{value:"strict",description:"Whitespaces are considered sensitive."},{value:"ignore",description:"Whitespaces are considered insensitive."}]},singleAttributePerLine:Xt.singleAttributePerLine,vueIndentScriptAndStyle:{category:Jp,type:"boolean",default:!1,description:"Indent script and style tags in Vue files."}},k2=L2,R2=[{linguistLanguageId:183,name:"JavaScript",type:"programming",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",color:"#f1e05a",aliases:["js","node"],extensions:[".js","._js",".bones",".cjs",".es",".es6",".frag",".gs",".jake",".javascript",".jsb",".jscad",".jsfl",".jslib",".jsm",".jspre",".jss",".mjs",".njs",".pac",".sjs",".ssjs",".xsjs",".xsjslib",".wxs"],filenames:["Jakefile"],interpreters:["chakra","d8","gjs","js","node","nodejs","qjs","rhino","v8","v8-shell","zx"],parsers:["babel","acorn","espree","meriyah","babel-flow","babel-ts","flow","typescript"],vscodeLanguageIds:["javascript","mongo"]},{linguistLanguageId:183,name:"Flow",type:"programming",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",color:"#f1e05a",aliases:[],extensions:[".js.flow"],filenames:[],interpreters:["chakra","d8","gjs","js","node","nodejs","qjs","rhino","v8","v8-shell"],parsers:["flow","babel-flow"],vscodeLanguageIds:["javascript"]},{linguistLanguageId:183,name:"JSX",type:"programming",tmScope:"source.js.jsx",aceMode:"javascript",codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",color:void 0,aliases:void 0,extensions:[".jsx"],filenames:void 0,interpreters:void 0,parsers:["babel","babel-flow","babel-ts","flow","typescript","espree","meriyah"],vscodeLanguageIds:["javascriptreact"],group:"JavaScript"},{linguistLanguageId:378,name:"TypeScript",type:"programming",color:"#3178c6",aliases:["ts"],interpreters:["deno","ts-node"],extensions:[".ts",".cts",".mts"],tmScope:"source.ts",aceMode:"typescript",codemirrorMode:"javascript",codemirrorMimeType:"application/typescript",parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescript"]},{linguistLanguageId:94901924,name:"TSX",type:"programming",color:"#3178c6",group:"TypeScript",extensions:[".tsx"],tmScope:"source.tsx",aceMode:"javascript",codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescriptreact"]}],Gn="JavaScript",M2={arrowParens:{category:Gn,type:"choice",default:"always",description:"Include parentheses around a sole arrow function parameter.",choices:[{value:"always",description:"Always include parens. Example: `(x) => x`"},{value:"avoid",description:"Omit parens when possible. Example: `x => x`"}]},bracketSameLine:Xt.bracketSameLine,bracketSpacing:Xt.bracketSpacing,jsxBracketSameLine:{category:Gn,type:"boolean",description:"Put > on the last line instead of at a new line.",deprecated:"2.4.0"},semi:{category:Gn,type:"boolean",default:!0,description:"Print semicolons.",oppositeDescription:"Do not print semicolons, except at the beginning of lines which may need them."},experimentalTernaries:{category:Gn,type:"boolean",default:!1,description:"Use curious ternaries, with the question mark after the condition.",oppositeDescription:"Default behavior of ternaries; keep question marks on the same line as the consequent."},singleQuote:Xt.singleQuote,jsxSingleQuote:{category:Gn,type:"boolean",default:!1,description:"Use single quotes in JSX."},quoteProps:{category:Gn,type:"choice",default:"as-needed",description:"Change when properties in objects are quoted.",choices:[{value:"as-needed",description:"Only add quotes around object properties where required."},{value:"consistent",description:"If at least one property in an object requires quotes, quote all properties."},{value:"preserve",description:"Respect the input use of quotes in object properties."}]},trailingComma:{category:Gn,type:"choice",default:"all",description:"Print trailing commas wherever possible when multi-line.",choices:[{value:"all",description:"Trailing commas wherever possible (including function arguments)."},{value:"es5",description:"Trailing commas where valid in ES5 (objects, arrays, etc.)"},{value:"none",description:"No trailing commas."}]},singleAttributePerLine:Xt.singleAttributePerLine},j2=M2,$2=[{linguistLanguageId:174,name:"JSON.stringify",type:"data",color:"#292929",tmScope:"source.json",aceMode:"json",codemirrorMode:"javascript",codemirrorMimeType:"application/json",aliases:["geojson","jsonl","topojson"],extensions:[".importmap"],filenames:["package.json","package-lock.json","composer.json"],parsers:["json-stringify"],vscodeLanguageIds:["json"]},{linguistLanguageId:174,name:"JSON",type:"data",color:"#292929",tmScope:"source.json",aceMode:"json",codemirrorMode:"javascript",codemirrorMimeType:"application/json",aliases:["geojson","jsonl","topojson"],extensions:[".json",".4DForm",".4DProject",".avsc",".geojson",".gltf",".har",".ice",".JSON-tmLanguage",".mcmeta",".tfstate",".tfstate.backup",".topojson",".webapp",".webmanifest",".yy",".yyp"],filenames:[".all-contributorsrc",".arcconfig",".auto-changelog",".c8rc",".htmlhintrc",".imgbotconfig",".nycrc",".tern-config",".tern-project",".watchmanconfig","Pipfile.lock","composer.lock","flake.lock","mcmod.info",".babelrc",".jscsrc",".jshintrc",".jslintrc",".swcrc"],parsers:["json"],vscodeLanguageIds:["json"]},{linguistLanguageId:423,name:"JSON with Comments",type:"data",color:"#292929",group:"JSON",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",aliases:["jsonc"],extensions:[".jsonc",".code-snippets",".code-workspace",".sublime-build",".sublime-commands",".sublime-completions",".sublime-keymap",".sublime-macro",".sublime-menu",".sublime-mousemap",".sublime-project",".sublime-settings",".sublime-theme",".sublime-workspace",".sublime_metrics",".sublime_session"],filenames:[],parsers:["jsonc"],vscodeLanguageIds:["jsonc"]},{linguistLanguageId:175,name:"JSON5",type:"data",color:"#267CB9",extensions:[".json5"],tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"application/json",parsers:["json5"],vscodeLanguageIds:["json5"]}],U2=[{linguistLanguageId:222,name:"Markdown",type:"prose",color:"#083fa1",aliases:["md","pandoc"],aceMode:"markdown",codemirrorMode:"gfm",codemirrorMimeType:"text/x-gfm",wrap:!0,extensions:[".md",".livemd",".markdown",".mdown",".mdwn",".mkd",".mkdn",".mkdown",".ronn",".scd",".workbook"],filenames:["contents.lr","README"],tmScope:"text.md",parsers:["markdown"],vscodeLanguageIds:["markdown"]},{linguistLanguageId:222,name:"MDX",type:"prose",color:"#083fa1",aliases:["md","pandoc"],aceMode:"markdown",codemirrorMode:"gfm",codemirrorMimeType:"text/x-gfm",wrap:!0,extensions:[".mdx"],filenames:[],tmScope:"text.md",parsers:["mdx"],vscodeLanguageIds:["mdx"]}],V2={proseWrap:Xt.proseWrap,singleQuote:Xt.singleQuote},q2=V2,K2=[{linguistLanguageId:407,name:"YAML",type:"data",color:"#cb171e",tmScope:"source.yaml",aliases:["yml"],extensions:[".yml",".mir",".reek",".rviz",".sublime-syntax",".syntax",".yaml",".yaml-tmlanguage",".yaml.sed",".yml.mysql"],filenames:[".clang-format",".clang-tidy",".gemrc","CITATION.cff","glide.lock",".prettierrc",".stylelintrc",".lintstagedrc"],aceMode:"yaml",codemirrorMode:"yaml",codemirrorMimeType:"text/x-yaml",parsers:["yaml"],vscodeLanguageIds:["yaml","ansible","home-assistant"]}],W2={bracketSpacing:Xt.bracketSpacing,singleQuote:Xt.singleQuote,proseWrap:Xt.proseWrap},H2=W2;function G2(e){const t=Object.create(null),r=Object.create(null);for(const{importPlugin:n,parsers:i=[],printers:s=[]}of e){const a=async()=>{const o=await n();return Object.assign(t,o.parsers),Object.assign(r,o.printers),o};for(const o of i)t[o]=async()=>(await a()).parsers[o];for(const o of s)r[o]=async()=>(await a()).printers[o]}return{parsers:t,printers:r}}var Y2={..._2,...O2,...k2,...j2,...q2,...H2},X2=[...x2,...w2,...N2,...B2,...R2,...$2,...U2,...K2],{parsers:J2,printers:z2}=G2([{importPlugin:()=>Promise.resolve().then(()=>require("./deps/acorn-1oc5bnxht.js")),parsers:["acorn","espree"]},{importPlugin:()=>Promise.resolve().then(()=>require("./deps/angular-46ezrk1u4.js")),parsers:["__ng_action","__ng_binding","__ng_interpolation","__ng_directive"]},{importPlugin:()=>Promise.resolve().then(()=>require("./deps/babel-ukpqzojf5.js")),parsers:["babel","babel-flow","babel-ts","__js_expression","__ts_expression","__vue_expression","__vue_ts_expression","__vue_event_binding","__vue_ts_event_binding","__babel_estree","json","json5","jsonc","json-stringify"]},{importPlugin:()=>Promise.resolve().then(()=>require("./deps/estree-keanyt70z.js")),printers:["estree","estree-json"]},{importPlugin:()=>Promise.resolve().then(()=>require("./deps/flow-ugrhj6801.js")),parsers:["flow"]},{importPlugin:()=>Promise.resolve().then(()=>require("./deps/glimmer-g89edvgvf.js")),parsers:["glimmer"],printers:["glimmer"]},{importPlugin:()=>Promise.resolve().then(()=>require("./deps/graphql-amtjbpo5r.js")),parsers:["graphql"],printers:["graphql"]},{importPlugin:()=>Promise.resolve().then(()=>require("./deps/html-flg3eek30.js")),parsers:["html","angular","vue","lwc"],printers:["html"]},{importPlugin:()=>Promise.resolve().then(()=>require("./deps/markdown-7x2u7akwf.js")),parsers:["markdown","mdx","remark"],printers:["mdast"]},{importPlugin:()=>Promise.resolve().then(()=>require("./deps/meriyah-6mdlkd9e4.js")),parsers:["meriyah"]},{importPlugin:()=>Promise.resolve().then(()=>require("./deps/postcss-2wa48tg1s.js")),parsers:["css","less","scss"],printers:["postcss"]},{importPlugin:()=>Promise.resolve().then(()=>require("./deps/typescript-q1t5ixgyo.js")),parsers:["typescript"]},{importPlugin:()=>Promise.resolve().then(()=>require("./deps/yaml-wpxyjc78l.js")),parsers:["yaml"],printers:["yaml"]}]);function Q2(){return[E0]}var Z2=Q2;function e_(e,t){return $y(e,rt.join(t,"noop.js"))}var t_=e_;async function r_(e,t){if(rt.isAbsolute(e))return import(xe.pathToFileURL(e).href);try{return await import(xe.pathToFileURL(rt.resolve(e)).href)}catch{return t_(e,t)}}async function n_(e,t){const r=await r_(e,t);return{name:e,...r.default??r}}var Ja=new Map;function i_(e){if(typeof e!="string")return e;const t=process.cwd(),r=JSON.stringify({name:e,cwd:t});return Ja.has(r)||Ja.set(r,n_(e,t)),Ja.get(r)}function s_(){Ja.clear()}function a_(e=[]){return Promise.all(e.map(t=>i_(t)))}var o_=a_;function u_(e,t){return t=new Set(t),Object.fromEntries(Object.entries(e).filter(([r])=>!t.has(r)))}var l_=u_,c_="3.3.3",b0={};Ri(b0,{addDanglingComment:()=>zn,addLeadingComment:()=>Ai,addTrailingComment:()=>Ci,getAlignmentSize:()=>_c,getIndentSize:()=>y_,getMaxContinuousCount:()=>E_,getNextNonSpaceNonCommentCharacter:()=>T_,getNextNonSpaceNonCommentCharacterIndex:()=>__,getStringWidth:()=>xc,hasNewline:()=>gn,hasNewlineInRange:()=>v_,hasSpaces:()=>C_,isNextLineEmpty:()=>N_,isNextLineEmptyAfterIndex:()=>Rc,isPreviousLineEmpty:()=>I_,makeString:()=>x_,skip:()=>ks,skipEverythingButNewLine:()=>e0,skipInlineComment:()=>Bc,skipNewline:()=>ii,skipSpaces:()=>vn,skipToLineEnd:()=>Zy,skipTrailingComment:()=>Lc,skipWhitespace:()=>SF});function f_(e,t){if(t===!1)return!1;if(e.charAt(t)==="/"&&e.charAt(t+1)==="*"){for(let r=t+2;r<e.length;++r)if(e.charAt(r)==="*"&&e.charAt(r+1)==="/")return r+2}return t}var Bc=f_;function p_(e,t){return t===!1?!1:e.charAt(t)==="/"&&e.charAt(t+1)==="/"?e0(e,t):t}var Lc=p_;function h_(e,t){let r=null,n=t;for(;n!==r;)r=n,n=vn(e,n),n=Bc(e,n),n=Lc(e,n),n=ii(e,n);return n}var kc=h_;function d_(e,t){let r=null,n=t;for(;n!==r;)r=n,n=Zy(e,n),n=Bc(e,n),n=vn(e,n);return n=Lc(e,n),n=ii(e,n),n!==!1&&gn(e,n)}var Rc=d_;function m_(e,t){const r=e.lastIndexOf(`
|
|
106
|
+
`);return r===-1?0:_c(e.slice(r+1).match(/^[\t ]*/u)[0],t)}var y_=m_;function D_(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function g_(e,t){const r=e.match(new RegExp(`(${D_(t)})+`,"gu"));return r===null?0:r.reduce((n,i)=>Math.max(n,i.length/t.length),0)}var E_=g_;function b_(e,t){const r=kc(e,t);return r===!1?"":e.charAt(r)}var T_=b_;function S_(e,t,r){for(let n=t;n<r;++n)if(e.charAt(n)===`
|
|
107
|
+
`)return!0;return!1}var v_=S_;function A_(e,t,r={}){return vn(e,r.backwards?t-1:t,r)!==t}var C_=A_;function P_(e,t,r){const n=t==='"'?"'":'"',s=Ls(!1,e,/\\(.)|(["'])/gsu,(a,o,u)=>o===n?o:u===t?"\\"+u:u||(r&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/u.test(o)?o:"\\"+o));return t+s+t}var x_=P_;function F_(e,t,r){return kc(e,r(t))}function __(e,t){return arguments.length===2||typeof t=="number"?kc(e,t):F_(...arguments)}function w_(e,t,r){return Oc(e,r(t))}function I_(e,t){return arguments.length===2||typeof t=="number"?Oc(e,t):w_(...arguments)}function O_(e,t,r){return Rc(e,r(t))}function N_(e,t){return arguments.length===2||typeof t=="number"?Rc(e,t):O_(...arguments)}function mn(e,t=1){return async(...r)=>{const n=r[t]??{},{plugins:i=[]}=n;return r[t]={...n,plugins:(await Promise.all([Z2(),o_(i)])).flat()},e(...r)}}var T0=mn(D0);async function S0(e,t){const{formatted:r}=await T0(e,{...t,cursorOffset:-1});return r}async function B_(e,t){return await S0(e,t)===e}async function L_(){Sx(),s_()}var k_=mn(qx),R_=mn(Nc,0),M_={errors:ay,optionCategories:g0,createIsIgnoredFunction:qy,formatOptionsHiddenDefaults:Bl,normalizeOptions:o0,getSupportInfoWithoutPlugins:Nc,normalizeOptionSettings:a0,vnopts:{ChoiceSchema:sy,apiDescriptor:Zn},fastGlob:uv.default,createTwoFilesPatch:ov,utils:{isNonEmptyArray:t0,partition:ly,omit:l_},mockable:gc},j_={parse:mn(m2),formatAST:mn(y2),formatDoc:mn(D2),printToDoc:mn(g2),printDocToString:mn(E2),mockable:gc},$_=zm,Ui={};Object.defineProperty(Ui,"__esModule",{value:!0});function U_(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}class En{constructor(t,r,n){this.line=void 0,this.column=void 0,this.index=void 0,this.line=t,this.column=r,this.index=n}}class Do{constructor(t,r){this.start=void 0,this.end=void 0,this.filename=void 0,this.identifierName=void 0,this.start=t,this.end=r}}function $t(e,t){const{line:r,column:n,index:i}=e;return new En(r,n+t,i+t)}const zp="BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED";var V_={ImportMetaOutsideModule:{message:`import.meta may appear only with 'sourceType: "module"'`,code:zp},ImportOutsideModule:{message:`'import' and 'export' may appear only with 'sourceType: "module"'`,code:zp}};const Qp={ArrayPattern:"array destructuring pattern",AssignmentExpression:"assignment expression",AssignmentPattern:"assignment expression",ArrowFunctionExpression:"arrow function expression",ConditionalExpression:"conditional expression",CatchClause:"catch clause",ForOfStatement:"for-of statement",ForInStatement:"for-in statement",ForStatement:"for-loop",FormalParameters:"function parameter list",Identifier:"identifier",ImportSpecifier:"import specifier",ImportDefaultSpecifier:"import default specifier",ImportNamespaceSpecifier:"import namespace specifier",ObjectPattern:"object destructuring pattern",ParenthesizedExpression:"parenthesized expression",RestElement:"rest element",UpdateExpression:{true:"prefix operation",false:"postfix operation"},VariableDeclarator:"variable declaration",YieldExpression:"yield expression"},za=e=>e.type==="UpdateExpression"?Qp.UpdateExpression[`${e.prefix}`]:Qp[e.type];var q_={AccessorIsGenerator:({kind:e})=>`A ${e}ter cannot be a generator.`,ArgumentsInClass:"'arguments' is only allowed in functions and class methods.",AsyncFunctionInSingleStatementContext:"Async functions can only be declared at the top level or inside a block.",AwaitBindingIdentifier:"Can not use 'await' as identifier inside an async function.",AwaitBindingIdentifierInStaticBlock:"Can not use 'await' as identifier inside a static block.",AwaitExpressionFormalParameter:"'await' is not allowed in async function parameters.",AwaitUsingNotInAsyncContext:"'await using' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncContext:"'await' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncFunction:"'await' is only allowed within async functions.",BadGetterArity:"A 'get' accessor must not have any formal parameters.",BadSetterArity:"A 'set' accessor must have exactly one formal parameter.",BadSetterRestParameter:"A 'set' accessor function argument must not be a rest parameter.",ConstructorClassField:"Classes may not have a field named 'constructor'.",ConstructorClassPrivateField:"Classes may not have a private field named '#constructor'.",ConstructorIsAccessor:"Class constructor may not be an accessor.",ConstructorIsAsync:"Constructor can't be an async function.",ConstructorIsGenerator:"Constructor can't be a generator.",DeclarationMissingInitializer:({kind:e})=>`Missing initializer in ${e} declaration.`,DecoratorArgumentsOutsideParentheses:"Decorator arguments must be moved inside parentheses: use '@(decorator(args))' instead of '@(decorator)(args)'.",DecoratorBeforeExport:"Decorators must be placed *before* the 'export' keyword. Remove the 'decoratorsBeforeExport: true' option to use the 'export @decorator class {}' syntax.",DecoratorsBeforeAfterExport:"Decorators can be placed *either* before or after the 'export' keyword, but not in both locations at the same time.",DecoratorConstructor:"Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?",DecoratorExportClass:"Decorators must be placed *after* the 'export' keyword. Remove the 'decoratorsBeforeExport: false' option to use the '@decorator export class {}' syntax.",DecoratorSemicolon:"Decorators must not be followed by a semicolon.",DecoratorStaticBlock:"Decorators can't be used with a static block.",DeferImportRequiresNamespace:'Only `import defer * as x from "./module"` is valid.',DeletePrivateField:"Deleting a private field is not allowed.",DestructureNamedImport:"ES2015 named imports do not destructure. Use another statement for destructuring after the import.",DuplicateConstructor:"Duplicate constructor in the same class.",DuplicateDefaultExport:"Only one default export allowed per module.",DuplicateExport:({exportName:e})=>`\`${e}\` has already been exported. Exported identifiers must be unique.`,DuplicateProto:"Redefinition of __proto__ property.",DuplicateRegExpFlags:"Duplicate regular expression flag.",DynamicImportPhaseRequiresImportExpressions:({phase:e})=>`'import.${e}(...)' can only be parsed when using the 'createImportExpressions' option.`,ElementAfterRest:"Rest element must be last element.",EscapedCharNotAnIdentifier:"Invalid Unicode escape.",ExportBindingIsString:({localName:e,exportName:t})=>`A string literal cannot be used as an exported binding without \`from\`.
|
|
108
|
+
- Did you mean \`export { '${e}' as '${t}' } from 'some-module'\`?`,ExportDefaultFromAsIdentifier:"'from' is not allowed as an identifier after 'export default'.",ForInOfLoopInitializer:({type:e})=>`'${e==="ForInStatement"?"for-in":"for-of"}' loop variable declaration may not have an initializer.`,ForInUsing:"For-in loop may not start with 'using' declaration.",ForOfAsync:"The left-hand side of a for-of loop may not be 'async'.",ForOfLet:"The left-hand side of a for-of loop may not start with 'let'.",GeneratorInSingleStatementContext:"Generators can only be declared at the top level or inside a block.",IllegalBreakContinue:({type:e})=>`Unsyntactic ${e==="BreakStatement"?"break":"continue"}.`,IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list.",IllegalReturn:"'return' outside of function.",ImportAttributesUseAssert:"The `assert` keyword in import attributes is deprecated and it has been replaced by the `with` keyword. You can enable the `deprecatedAssertSyntax: true` option in the import attributes plugin to suppress this error.",ImportBindingIsString:({importName:e})=>`A string literal cannot be used as an imported binding.
|
|
109
|
+
- Did you mean \`import { "${e}" as foo }\`?`,ImportCallArgumentTrailingComma:"Trailing comma is disallowed inside import(...) arguments.",ImportCallArity:({maxArgumentCount:e})=>`\`import()\` requires exactly ${e===1?"one argument":"one or two arguments"}.`,ImportCallNotNewExpression:"Cannot use new with import(...).",ImportCallSpreadArgument:"`...` is not allowed in `import()`.",ImportJSONBindingNotDefault:"A JSON module can only be imported with `default`.",ImportReflectionHasAssertion:"`import module x` cannot have assertions.",ImportReflectionNotBinding:'Only `import module x from "./module"` is valid.',IncompatibleRegExpUVFlags:"The 'u' and 'v' regular expression flags cannot be enabled at the same time.",InvalidBigIntLiteral:"Invalid BigIntLiteral.",InvalidCodePoint:"Code point out of bounds.",InvalidCoverInitializedName:"Invalid shorthand property initializer.",InvalidDecimal:"Invalid decimal.",InvalidDigit:({radix:e})=>`Expected number in radix ${e}.`,InvalidEscapeSequence:"Bad character escape sequence.",InvalidEscapeSequenceTemplate:"Invalid escape sequence in template.",InvalidEscapedReservedWord:({reservedWord:e})=>`Escape sequence in keyword ${e}.`,InvalidIdentifier:({identifierName:e})=>`Invalid identifier ${e}.`,InvalidLhs:({ancestor:e})=>`Invalid left-hand side in ${za(e)}.`,InvalidLhsBinding:({ancestor:e})=>`Binding invalid left-hand side in ${za(e)}.`,InvalidLhsOptionalChaining:({ancestor:e})=>`Invalid optional chaining in the left-hand side of ${za(e)}.`,InvalidNumber:"Invalid number.",InvalidOrMissingExponent:"Floating-point numbers require a valid exponent after the 'e'.",InvalidOrUnexpectedToken:({unexpected:e})=>`Unexpected character '${e}'.`,InvalidParenthesizedAssignment:"Invalid parenthesized assignment pattern.",InvalidPrivateFieldResolution:({identifierName:e})=>`Private name #${e} is not defined.`,InvalidPropertyBindingPattern:"Binding member expression.",InvalidRecordProperty:"Only properties and spread elements are allowed in record definitions.",InvalidRestAssignmentPattern:"Invalid rest operator's argument.",LabelRedeclaration:({labelName:e})=>`Label '${e}' is already declared.`,LetInLexicalBinding:"'let' is disallowed as a lexically bound name.",LineTerminatorBeforeArrow:"No line break is allowed before '=>'.",MalformedRegExpFlags:"Invalid regular expression flag.",MissingClassName:"A class name is required.",MissingEqInAssignment:"Only '=' operator can be used for specifying default value.",MissingSemicolon:"Missing semicolon.",MissingPlugin:({missingPlugin:e})=>`This experimental syntax requires enabling the parser plugin: ${e.map(t=>JSON.stringify(t)).join(", ")}.`,MissingOneOfPlugins:({missingPlugin:e})=>`This experimental syntax requires enabling one of the following parser plugin(s): ${e.map(t=>JSON.stringify(t)).join(", ")}.`,MissingUnicodeEscape:"Expecting Unicode escape sequence \\uXXXX.",MixingCoalesceWithLogical:"Nullish coalescing operator(??) requires parens when mixing with logical operators.",ModuleAttributeDifferentFromType:"The only accepted module attribute is `type`.",ModuleAttributeInvalidValue:"Only string literals are allowed as module attribute values.",ModuleAttributesWithDuplicateKeys:({key:e})=>`Duplicate key "${e}" is not allowed in module attributes.`,ModuleExportNameHasLoneSurrogate:({surrogateCharCode:e})=>`An export name cannot include a lone surrogate, found '\\u${e.toString(16)}'.`,ModuleExportUndefined:({localName:e})=>`Export '${e}' is not defined.`,MultipleDefaultsInSwitch:"Multiple default clauses.",NewlineAfterThrow:"Illegal newline after throw.",NoCatchOrFinally:"Missing catch or finally clause.",NumberIdentifier:"Identifier directly after number.",NumericSeparatorInEscapeSequence:"Numeric separators are not allowed inside unicode escape sequences or hex escape sequences.",ObsoleteAwaitStar:"'await*' has been removed from the async functions proposal. Use Promise.all() instead.",OptionalChainingNoNew:"Constructors in/after an Optional Chain are not allowed.",OptionalChainingNoTemplate:"Tagged Template Literals are not allowed in optionalChain.",OverrideOnConstructor:"'override' modifier cannot appear on a constructor declaration.",ParamDupe:"Argument name clash.",PatternHasAccessor:"Object pattern can't contain getter or setter.",PatternHasMethod:"Object pattern can't contain methods.",PrivateInExpectedIn:({identifierName:e})=>`Private names are only allowed in property accesses (\`obj.#${e}\`) or in \`in\` expressions (\`#${e} in obj\`).`,PrivateNameRedeclaration:({identifierName:e})=>`Duplicate private name #${e}.`,RecordExpressionBarIncorrectEndSyntaxType:"Record expressions ending with '|}' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionBarIncorrectStartSyntaxType:"Record expressions starting with '{|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionHashIncorrectStartSyntaxType:"Record expressions starting with '#{' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",RecordNoProto:"'__proto__' is not allowed in Record expressions.",RestTrailingComma:"Unexpected trailing comma after rest element.",SloppyFunction:"In non-strict mode code, functions can only be declared at top level or inside a block.",SloppyFunctionAnnexB:"In non-strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement.",SourcePhaseImportRequiresDefault:'Only `import source x from "./module"` is valid.',StaticPrototype:"Classes may not have static property named prototype.",SuperNotAllowed:"`super()` is only valid inside a class constructor of a subclass. Maybe a typo in the method name ('constructor') or not extending another class?",SuperPrivateField:"Private fields can't be accessed on super.",TrailingDecorator:"Decorators must be attached to a class element.",TupleExpressionBarIncorrectEndSyntaxType:"Tuple expressions ending with '|]' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionBarIncorrectStartSyntaxType:"Tuple expressions starting with '[|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionHashIncorrectStartSyntaxType:"Tuple expressions starting with '#[' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",UnexpectedArgumentPlaceholder:"Unexpected argument placeholder.",UnexpectedAwaitAfterPipelineBody:'Unexpected "await" after pipeline body; await must have parentheses in minimal proposal.',UnexpectedDigitAfterHash:"Unexpected digit after hash token.",UnexpectedImportExport:"'import' and 'export' may only appear at the top level.",UnexpectedKeyword:({keyword:e})=>`Unexpected keyword '${e}'.`,UnexpectedLeadingDecorator:"Leading decorators must be attached to a class declaration.",UnexpectedLexicalDeclaration:"Lexical declaration cannot appear in a single-statement context.",UnexpectedNewTarget:"`new.target` can only be used in functions or class properties.",UnexpectedNumericSeparator:"A numeric separator is only allowed between two digits.",UnexpectedPrivateField:"Unexpected private name.",UnexpectedReservedWord:({reservedWord:e})=>`Unexpected reserved word '${e}'.`,UnexpectedSuper:"'super' is only allowed in object methods and classes.",UnexpectedToken:({expected:e,unexpected:t})=>`Unexpected token${t?` '${t}'.`:""}${e?`, expected "${e}"`:""}`,UnexpectedTokenUnaryExponentiation:"Illegal expression. Wrap left hand side or entire exponentiation in parentheses.",UnexpectedUsingDeclaration:"Using declaration cannot appear in the top level when source type is `script`.",UnsupportedBind:"Binding should be performed on object property.",UnsupportedDecoratorExport:"A decorated export must export a class declaration.",UnsupportedDefaultExport:"Only expressions, functions or classes are allowed as the `default` export.",UnsupportedImport:"`import` can only be used in `import()` or `import.meta`.",UnsupportedMetaProperty:({target:e,onlyValidPropertyName:t})=>`The only valid meta property for ${e} is ${e}.${t}.`,UnsupportedParameterDecorator:"Decorators cannot be used to decorate parameters.",UnsupportedPropertyDecorator:"Decorators cannot be used to decorate object literal properties.",UnsupportedSuper:"'super' can only be used with function calls (i.e. super()) or in property accesses (i.e. super.prop or super[prop]).",UnterminatedComment:"Unterminated comment.",UnterminatedRegExp:"Unterminated regular expression.",UnterminatedString:"Unterminated string constant.",UnterminatedTemplate:"Unterminated template.",UsingDeclarationExport:"Using declaration cannot be exported.",UsingDeclarationHasBindingPattern:"Using declaration cannot have destructuring patterns.",VarRedeclaration:({identifierName:e})=>`Identifier '${e}' has already been declared.`,YieldBindingIdentifier:"Can not use 'yield' as identifier inside a generator.",YieldInParameter:"Yield expression is not allowed in formal parameters.",ZeroDigitNumericSeparator:"Numeric separator can not be used after leading 0."},K_={StrictDelete:"Deleting local variable in strict mode.",StrictEvalArguments:({referenceName:e})=>`Assigning to '${e}' in strict mode.`,StrictEvalArgumentsBinding:({bindingName:e})=>`Binding '${e}' in strict mode.`,StrictFunction:"In strict mode code, functions can only be declared at top level or inside a block.",StrictNumericEscape:"The only valid numeric escape in strict mode is '\\0'.",StrictOctalLiteral:"Legacy octal literals are not allowed in strict mode.",StrictWith:"'with' in strict mode."};const W_=new Set(["ArrowFunctionExpression","AssignmentExpression","ConditionalExpression","YieldExpression"]);var H_={PipeBodyIsTighter:"Unexpected yield after pipeline body; any yield expression acting as Hack-style pipe body must be parenthesized due to its loose operator precedence.",PipeTopicRequiresHackPipes:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.',PipeTopicUnbound:"Topic reference is unbound; it must be inside a pipe body.",PipeTopicUnconfiguredToken:({token:e})=>`Invalid topic token ${e}. In order to use ${e} as a topic reference, the pipelineOperator plugin must be configured with { "proposal": "hack", "topicToken": "${e}" }.`,PipeTopicUnused:"Hack-style pipe body does not contain a topic reference; Hack-style pipes must use topic at least once.",PipeUnparenthesizedBody:({type:e})=>`Hack-style pipe body cannot be an unparenthesized ${za({type:e})}; please wrap it in parentheses.`,PipelineBodyNoArrow:'Unexpected arrow "=>" after pipeline body; arrow function in pipeline body must be parenthesized.',PipelineBodySequenceExpression:"Pipeline body may not be a comma-separated sequence expression.",PipelineHeadSequenceExpression:"Pipeline head should not be a comma-separated sequence expression.",PipelineTopicUnused:"Pipeline is in topic style but does not use topic reference.",PrimaryTopicNotAllowed:"Topic reference was used in a lexical context without topic binding.",PrimaryTopicRequiresSmartPipeline:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.'};const G_=["message"];function Zp(e,t,r){Object.defineProperty(e,t,{enumerable:!1,configurable:!0,value:r})}function Y_({toMessage:e,code:t,reasonCode:r,syntaxPlugin:n}){const i=r==="MissingPlugin"||r==="MissingOneOfPlugins";return function s(a,o){const u=new SyntaxError;return u.code=t,u.reasonCode=r,u.loc=a,u.pos=a.index,u.syntaxPlugin=n,i&&(u.missingPlugin=o.missingPlugin),Zp(u,"clone",function(c={}){var f;const{line:p,column:h,index:d}=(f=c.loc)!=null?f:a;return s(new En(p,h,d),Object.assign({},o,c.details))}),Zp(u,"details",o),Object.defineProperty(u,"message",{configurable:!0,get(){const l=`${e(o)} (${a.line}:${a.column})`;return this.message=l,l},set(l){Object.defineProperty(this,"message",{value:l,writable:!0})}}),u}}function Gr(e,t){if(Array.isArray(e))return n=>Gr(n,e[0]);const r={};for(const n of Object.keys(e)){const i=e[n],s=typeof i=="string"?{message:()=>i}:typeof i=="function"?{message:i}:i,{message:a}=s,o=U_(s,G_),u=typeof a=="string"?()=>a:a;r[n]=Y_(Object.assign({code:"BABEL_PARSER_SYNTAX_ERROR",reasonCode:n,toMessage:u},t?{syntaxPlugin:t}:{},o))}return r}const ee=Object.assign({},Gr(V_),Gr(q_),Gr(K_),Gr`pipelineOperator`(H_)),{defineProperty:X_}=Object,eh=(e,t)=>{e&&X_(e,t,{enumerable:!1,value:e[t]})};function Gi(e){return eh(e.loc.start,"index"),eh(e.loc.end,"index"),e}var J_=e=>class extends e{parse(){const r=Gi(super.parse());return this.options.tokens&&(r.tokens=r.tokens.map(Gi)),r}parseRegExpLiteral({pattern:r,flags:n}){let i=null;try{i=new RegExp(r,n)}catch{}const s=this.estreeParseLiteral(i);return s.regex={pattern:r,flags:n},s}parseBigIntLiteral(r){let n;try{n=BigInt(r)}catch{n=null}const i=this.estreeParseLiteral(n);return i.bigint=String(i.value||r),i}parseDecimalLiteral(r){const i=this.estreeParseLiteral(null);return i.decimal=String(i.value||r),i}estreeParseLiteral(r){return this.parseLiteral(r,"Literal")}parseStringLiteral(r){return this.estreeParseLiteral(r)}parseNumericLiteral(r){return this.estreeParseLiteral(r)}parseNullLiteral(){return this.estreeParseLiteral(null)}parseBooleanLiteral(r){return this.estreeParseLiteral(r)}directiveToStmt(r){const n=r.value;delete r.value,n.type="Literal",n.raw=n.extra.raw,n.value=n.extra.expressionValue;const i=r;return i.type="ExpressionStatement",i.expression=n,i.directive=n.extra.rawValue,delete n.extra,i}initFunction(r,n){super.initFunction(r,n),r.expression=!1}checkDeclaration(r){r!=null&&this.isObjectProperty(r)?this.checkDeclaration(r.value):super.checkDeclaration(r)}getObjectOrClassMethodParams(r){return r.value.params}isValidDirective(r){var n;return r.type==="ExpressionStatement"&&r.expression.type==="Literal"&&typeof r.expression.value=="string"&&!((n=r.expression.extra)!=null&&n.parenthesized)}parseBlockBody(r,n,i,s,a){super.parseBlockBody(r,n,i,s,a);const o=r.directives.map(u=>this.directiveToStmt(u));r.body=o.concat(r.body),delete r.directives}pushClassMethod(r,n,i,s,a,o){this.parseMethod(n,i,s,a,o,"ClassMethod",!0),n.typeParameters&&(n.value.typeParameters=n.typeParameters,delete n.typeParameters),r.body.push(n)}parsePrivateName(){const r=super.parsePrivateName();return this.getPluginOption("estree","classFeatures")?this.convertPrivateNameToPrivateIdentifier(r):r}convertPrivateNameToPrivateIdentifier(r){const n=super.getPrivateNameSV(r);return r=r,delete r.id,r.name=n,r.type="PrivateIdentifier",r}isPrivateName(r){return this.getPluginOption("estree","classFeatures")?r.type==="PrivateIdentifier":super.isPrivateName(r)}getPrivateNameSV(r){return this.getPluginOption("estree","classFeatures")?r.name:super.getPrivateNameSV(r)}parseLiteral(r,n){const i=super.parseLiteral(r,n);return i.raw=i.extra.raw,delete i.extra,i}parseFunctionBody(r,n,i=!1){super.parseFunctionBody(r,n,i),r.expression=r.body.type!=="BlockStatement"}parseMethod(r,n,i,s,a,o,u=!1){let l=this.startNode();return l.kind=r.kind,l=super.parseMethod(l,n,i,s,a,o,u),l.type="FunctionExpression",delete l.kind,r.value=l,o==="ClassPrivateMethod"&&(r.computed=!1),this.finishNode(r,"MethodDefinition")}nameIsConstructor(r){return r.type==="Literal"?r.value==="constructor":super.nameIsConstructor(r)}parseClassProperty(...r){const n=super.parseClassProperty(...r);return this.getPluginOption("estree","classFeatures")&&(n.type="PropertyDefinition"),n}parseClassPrivateProperty(...r){const n=super.parseClassPrivateProperty(...r);return this.getPluginOption("estree","classFeatures")&&(n.type="PropertyDefinition",n.computed=!1),n}parseObjectMethod(r,n,i,s,a){const o=super.parseObjectMethod(r,n,i,s,a);return o&&(o.type="Property",o.kind==="method"&&(o.kind="init"),o.shorthand=!1),o}parseObjectProperty(r,n,i,s){const a=super.parseObjectProperty(r,n,i,s);return a&&(a.kind="init",a.type="Property"),a}isValidLVal(r,n,i){return r==="Property"?"value":super.isValidLVal(r,n,i)}isAssignable(r,n){return r!=null&&this.isObjectProperty(r)?this.isAssignable(r.value,n):super.isAssignable(r,n)}toAssignable(r,n=!1){if(r!=null&&this.isObjectProperty(r)){const{key:i,value:s}=r;this.isPrivateName(i)&&this.classScope.usePrivateName(this.getPrivateNameSV(i),i.loc.start),this.toAssignable(s,n)}else super.toAssignable(r,n)}toAssignableObjectExpressionProp(r,n,i){r.type==="Property"&&(r.kind==="get"||r.kind==="set")?this.raise(ee.PatternHasAccessor,r.key):r.type==="Property"&&r.method?this.raise(ee.PatternHasMethod,r.key):super.toAssignableObjectExpressionProp(r,n,i)}finishCallExpression(r,n){const i=super.finishCallExpression(r,n);if(i.callee.type==="Import"){if(i.type="ImportExpression",i.source=i.arguments[0],this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions")){var s,a;i.options=(s=i.arguments[1])!=null?s:null,i.attributes=(a=i.arguments[1])!=null?a:null}delete i.arguments,delete i.callee}return i}toReferencedArguments(r){r.type!=="ImportExpression"&&super.toReferencedArguments(r)}parseExport(r,n){const i=this.state.lastTokStartLoc,s=super.parseExport(r,n);switch(s.type){case"ExportAllDeclaration":s.exported=null;break;case"ExportNamedDeclaration":s.specifiers.length===1&&s.specifiers[0].type==="ExportNamespaceSpecifier"&&(s.type="ExportAllDeclaration",s.exported=s.specifiers[0].exported,delete s.specifiers);case"ExportDefaultDeclaration":{var a;const{declaration:o}=s;(o==null?void 0:o.type)==="ClassDeclaration"&&((a=o.decorators)==null?void 0:a.length)>0&&o.start===s.start&&this.resetStartLocation(s,i)}break}return s}parseSubscript(r,n,i,s){const a=super.parseSubscript(r,n,i,s);if(s.optionalChainMember){if((a.type==="OptionalMemberExpression"||a.type==="OptionalCallExpression")&&(a.type=a.type.substring(8)),s.stop){const o=this.startNodeAtNode(a);return o.expression=a,this.finishNode(o,"ChainExpression")}}else(a.type==="MemberExpression"||a.type==="CallExpression")&&(a.optional=!1);return a}isOptionalMemberExpression(r){return r.type==="ChainExpression"?r.expression.type==="MemberExpression":super.isOptionalMemberExpression(r)}hasPropertyAsPrivateName(r){return r.type==="ChainExpression"&&(r=r.expression),super.hasPropertyAsPrivateName(r)}isObjectProperty(r){return r.type==="Property"&&r.kind==="init"&&!r.method}isObjectMethod(r){return r.type==="Property"&&(r.method||r.kind==="get"||r.kind==="set")}finishNodeAt(r,n,i){return Gi(super.finishNodeAt(r,n,i))}resetStartLocation(r,n){super.resetStartLocation(r,n),Gi(r)}resetEndLocation(r,n=this.state.lastTokEndLoc){super.resetEndLocation(r,n),Gi(r)}};class cs{constructor(t,r){this.token=void 0,this.preserveSpace=void 0,this.token=t,this.preserveSpace=!!r}}const lt={brace:new cs("{"),j_oTag:new cs("<tag"),j_cTag:new cs("</tag"),j_expr:new cs("<tag>...</tag>",!0)};lt.template=new cs("`",!0);const Xe=!0,be=!0,Nu=!0,Yi=!0,ln=!0,z_=!0;class v0{constructor(t,r={}){this.label=void 0,this.keyword=void 0,this.beforeExpr=void 0,this.startsExpr=void 0,this.rightAssociative=void 0,this.isLoop=void 0,this.isAssign=void 0,this.prefix=void 0,this.postfix=void 0,this.binop=void 0,this.label=t,this.keyword=r.keyword,this.beforeExpr=!!r.beforeExpr,this.startsExpr=!!r.startsExpr,this.rightAssociative=!!r.rightAssociative,this.isLoop=!!r.isLoop,this.isAssign=!!r.isAssign,this.prefix=!!r.prefix,this.postfix=!!r.postfix,this.binop=r.binop!=null?r.binop:null,this.updateContext=null}}const Mc=new Map;function et(e,t={}){t.keyword=e;const r=Ie(e,t);return Mc.set(e,r),r}function Lt(e,t){return Ie(e,{beforeExpr:Xe,binop:t})}let As=-1;const Vr=[],jc=[],$c=[],Uc=[],Vc=[],qc=[];function Ie(e,t={}){var r,n,i,s;return++As,jc.push(e),$c.push((r=t.binop)!=null?r:-1),Uc.push((n=t.beforeExpr)!=null?n:!1),Vc.push((i=t.startsExpr)!=null?i:!1),qc.push((s=t.prefix)!=null?s:!1),Vr.push(new v0(e,t)),As}function Ye(e,t={}){var r,n,i,s;return++As,Mc.set(e,As),jc.push(e),$c.push((r=t.binop)!=null?r:-1),Uc.push((n=t.beforeExpr)!=null?n:!1),Vc.push((i=t.startsExpr)!=null?i:!1),qc.push((s=t.prefix)!=null?s:!1),Vr.push(new v0("name",t)),As}const Q_={bracketL:Ie("[",{beforeExpr:Xe,startsExpr:be}),bracketHashL:Ie("#[",{beforeExpr:Xe,startsExpr:be}),bracketBarL:Ie("[|",{beforeExpr:Xe,startsExpr:be}),bracketR:Ie("]"),bracketBarR:Ie("|]"),braceL:Ie("{",{beforeExpr:Xe,startsExpr:be}),braceBarL:Ie("{|",{beforeExpr:Xe,startsExpr:be}),braceHashL:Ie("#{",{beforeExpr:Xe,startsExpr:be}),braceR:Ie("}"),braceBarR:Ie("|}"),parenL:Ie("(",{beforeExpr:Xe,startsExpr:be}),parenR:Ie(")"),comma:Ie(",",{beforeExpr:Xe}),semi:Ie(";",{beforeExpr:Xe}),colon:Ie(":",{beforeExpr:Xe}),doubleColon:Ie("::",{beforeExpr:Xe}),dot:Ie("."),question:Ie("?",{beforeExpr:Xe}),questionDot:Ie("?."),arrow:Ie("=>",{beforeExpr:Xe}),template:Ie("template"),ellipsis:Ie("...",{beforeExpr:Xe}),backQuote:Ie("`",{startsExpr:be}),dollarBraceL:Ie("${",{beforeExpr:Xe,startsExpr:be}),templateTail:Ie("...`",{startsExpr:be}),templateNonTail:Ie("...${",{beforeExpr:Xe,startsExpr:be}),at:Ie("@"),hash:Ie("#",{startsExpr:be}),interpreterDirective:Ie("#!..."),eq:Ie("=",{beforeExpr:Xe,isAssign:Yi}),assign:Ie("_=",{beforeExpr:Xe,isAssign:Yi}),slashAssign:Ie("_=",{beforeExpr:Xe,isAssign:Yi}),xorAssign:Ie("_=",{beforeExpr:Xe,isAssign:Yi}),moduloAssign:Ie("_=",{beforeExpr:Xe,isAssign:Yi}),incDec:Ie("++/--",{prefix:ln,postfix:z_,startsExpr:be}),bang:Ie("!",{beforeExpr:Xe,prefix:ln,startsExpr:be}),tilde:Ie("~",{beforeExpr:Xe,prefix:ln,startsExpr:be}),doubleCaret:Ie("^^",{startsExpr:be}),doubleAt:Ie("@@",{startsExpr:be}),pipeline:Lt("|>",0),nullishCoalescing:Lt("??",1),logicalOR:Lt("||",1),logicalAND:Lt("&&",2),bitwiseOR:Lt("|",3),bitwiseXOR:Lt("^",4),bitwiseAND:Lt("&",5),equality:Lt("==/!=/===/!==",6),lt:Lt("</>/<=/>=",7),gt:Lt("</>/<=/>=",7),relational:Lt("</>/<=/>=",7),bitShift:Lt("<</>>/>>>",8),bitShiftL:Lt("<</>>/>>>",8),bitShiftR:Lt("<</>>/>>>",8),plusMin:Ie("+/-",{beforeExpr:Xe,binop:9,prefix:ln,startsExpr:be}),modulo:Ie("%",{binop:10,startsExpr:be}),star:Ie("*",{binop:10}),slash:Lt("/",10),exponent:Ie("**",{beforeExpr:Xe,binop:11,rightAssociative:!0}),_in:et("in",{beforeExpr:Xe,binop:7}),_instanceof:et("instanceof",{beforeExpr:Xe,binop:7}),_break:et("break"),_case:et("case",{beforeExpr:Xe}),_catch:et("catch"),_continue:et("continue"),_debugger:et("debugger"),_default:et("default",{beforeExpr:Xe}),_else:et("else",{beforeExpr:Xe}),_finally:et("finally"),_function:et("function",{startsExpr:be}),_if:et("if"),_return:et("return",{beforeExpr:Xe}),_switch:et("switch"),_throw:et("throw",{beforeExpr:Xe,prefix:ln,startsExpr:be}),_try:et("try"),_var:et("var"),_const:et("const"),_with:et("with"),_new:et("new",{beforeExpr:Xe,startsExpr:be}),_this:et("this",{startsExpr:be}),_super:et("super",{startsExpr:be}),_class:et("class",{startsExpr:be}),_extends:et("extends",{beforeExpr:Xe}),_export:et("export"),_import:et("import",{startsExpr:be}),_null:et("null",{startsExpr:be}),_true:et("true",{startsExpr:be}),_false:et("false",{startsExpr:be}),_typeof:et("typeof",{beforeExpr:Xe,prefix:ln,startsExpr:be}),_void:et("void",{beforeExpr:Xe,prefix:ln,startsExpr:be}),_delete:et("delete",{beforeExpr:Xe,prefix:ln,startsExpr:be}),_do:et("do",{isLoop:Nu,beforeExpr:Xe}),_for:et("for",{isLoop:Nu}),_while:et("while",{isLoop:Nu}),_as:Ye("as",{startsExpr:be}),_assert:Ye("assert",{startsExpr:be}),_async:Ye("async",{startsExpr:be}),_await:Ye("await",{startsExpr:be}),_defer:Ye("defer",{startsExpr:be}),_from:Ye("from",{startsExpr:be}),_get:Ye("get",{startsExpr:be}),_let:Ye("let",{startsExpr:be}),_meta:Ye("meta",{startsExpr:be}),_of:Ye("of",{startsExpr:be}),_sent:Ye("sent",{startsExpr:be}),_set:Ye("set",{startsExpr:be}),_source:Ye("source",{startsExpr:be}),_static:Ye("static",{startsExpr:be}),_using:Ye("using",{startsExpr:be}),_yield:Ye("yield",{startsExpr:be}),_asserts:Ye("asserts",{startsExpr:be}),_checks:Ye("checks",{startsExpr:be}),_exports:Ye("exports",{startsExpr:be}),_global:Ye("global",{startsExpr:be}),_implements:Ye("implements",{startsExpr:be}),_intrinsic:Ye("intrinsic",{startsExpr:be}),_infer:Ye("infer",{startsExpr:be}),_is:Ye("is",{startsExpr:be}),_mixins:Ye("mixins",{startsExpr:be}),_proto:Ye("proto",{startsExpr:be}),_require:Ye("require",{startsExpr:be}),_satisfies:Ye("satisfies",{startsExpr:be}),_keyof:Ye("keyof",{startsExpr:be}),_readonly:Ye("readonly",{startsExpr:be}),_unique:Ye("unique",{startsExpr:be}),_abstract:Ye("abstract",{startsExpr:be}),_declare:Ye("declare",{startsExpr:be}),_enum:Ye("enum",{startsExpr:be}),_module:Ye("module",{startsExpr:be}),_namespace:Ye("namespace",{startsExpr:be}),_interface:Ye("interface",{startsExpr:be}),_type:Ye("type",{startsExpr:be}),_opaque:Ye("opaque",{startsExpr:be}),name:Ie("name",{startsExpr:be}),string:Ie("string",{startsExpr:be}),num:Ie("num",{startsExpr:be}),bigint:Ie("bigint",{startsExpr:be}),decimal:Ie("decimal",{startsExpr:be}),regexp:Ie("regexp",{startsExpr:be}),privateName:Ie("#name",{startsExpr:be}),eof:Ie("eof"),jsxName:Ie("jsxName"),jsxText:Ie("jsxText",{beforeExpr:!0}),jsxTagStart:Ie("jsxTagStart",{startsExpr:!0}),jsxTagEnd:Ie("jsxTagEnd"),placeholder:Ie("%%",{startsExpr:!0})};function at(e){return e>=93&&e<=132}function Z_(e){return e<=92}function dr(e){return e>=58&&e<=132}function A0(e){return e>=58&&e<=136}function ew(e){return Uc[e]}function kl(e){return Vc[e]}function tw(e){return e>=29&&e<=33}function th(e){return e>=129&&e<=131}function rw(e){return e>=90&&e<=92}function Kc(e){return e>=58&&e<=92}function nw(e){return e>=39&&e<=59}function iw(e){return e===34}function sw(e){return qc[e]}function aw(e){return e>=121&&e<=123}function ow(e){return e>=124&&e<=130}function bn(e){return jc[e]}function Qa(e){return $c[e]}function uw(e){return e===57}function go(e){return e>=24&&e<=25}function $r(e){return Vr[e]}Vr[8].updateContext=e=>{e.pop()},Vr[5].updateContext=Vr[7].updateContext=Vr[23].updateContext=e=>{e.push(lt.brace)},Vr[22].updateContext=e=>{e[e.length-1]===lt.template?e.pop():e.push(lt.template)},Vr[142].updateContext=e=>{e.push(lt.j_expr,lt.j_oTag)};let Wc="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟊꟐꟑꟓꟕ-ꟙꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",C0="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࢘-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・";const lw=new RegExp("["+Wc+"]"),cw=new RegExp("["+Wc+C0+"]");Wc=C0=null;const P0=[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,68,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,71,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,349,41,7,1,79,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,159,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,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,4026,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8936,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,757,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,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],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,370,1,81,2,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,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,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,406,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,330,3,10,1,2,0,49,6,4,4,14,9,5351,0,7,14,13835,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,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,983,6,110,6,6,9,4759,9,787719,239];function Rl(e,t){let r=65536;for(let n=0,i=t.length;n<i;n+=2){if(r+=t[n],r>e)return!1;if(r+=t[n+1],r>=e)return!0}return!1}function Wr(e){return e<65?e===36:e<=90?!0:e<97?e===95:e<=122?!0:e<=65535?e>=170&&lw.test(String.fromCharCode(e)):Rl(e,P0)}function Fi(e){return e<48?e===36:e<58?!0:e<65?!1:e<=90?!0:e<97?e===95:e<=122?!0:e<=65535?e>=170&&cw.test(String.fromCharCode(e)):Rl(e,P0)||Rl(e,fw)}const Hc={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]},pw=new Set(Hc.keyword),hw=new Set(Hc.strict),dw=new Set(Hc.strictBind);function x0(e,t){return t&&e==="await"||e==="enum"}function F0(e,t){return x0(e,t)||hw.has(e)}function _0(e){return dw.has(e)}function w0(e,t){return F0(e,t)||_0(e)}function mw(e){return pw.has(e)}function yw(e,t,r){return e===64&&t===64&&Wr(r)}const Dw=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete","implements","interface","let","package","private","protected","public","static","yield","eval","arguments","enum","await"]);function gw(e){return Dw.has(e)}class Gc{constructor(t){this.flags=0,this.names=new Map,this.firstLexicalName="",this.flags=t}}class Yc{constructor(t,r){this.parser=void 0,this.scopeStack=[],this.inModule=void 0,this.undefinedExports=new Map,this.parser=t,this.inModule=r}get inTopLevel(){return(this.currentScope().flags&1)>0}get inFunction(){return(this.currentVarScopeFlags()&2)>0}get allowSuper(){return(this.currentThisScopeFlags()&16)>0}get allowDirectSuper(){return(this.currentThisScopeFlags()&32)>0}get inClass(){return(this.currentThisScopeFlags()&64)>0}get inClassAndNotInNonArrowFunction(){const t=this.currentThisScopeFlags();return(t&64)>0&&(t&2)===0}get inStaticBlock(){for(let t=this.scopeStack.length-1;;t--){const{flags:r}=this.scopeStack[t];if(r&128)return!0;if(r&451)return!1}}get inNonArrowFunction(){return(this.currentThisScopeFlags()&2)>0}get treatFunctionsAsVar(){return this.treatFunctionsAsVarInScope(this.currentScope())}createScope(t){return new Gc(t)}enter(t){this.scopeStack.push(this.createScope(t))}exit(){return this.scopeStack.pop().flags}treatFunctionsAsVarInScope(t){return!!(t.flags&130||!this.parser.inModule&&t.flags&1)}declareName(t,r,n){let i=this.currentScope();if(r&8||r&16){this.checkRedeclarationInScope(i,t,r,n);let s=i.names.get(t)||0;r&16?s=s|4:(i.firstLexicalName||(i.firstLexicalName=t),s=s|2),i.names.set(t,s),r&8&&this.maybeExportDefined(i,t)}else if(r&4)for(let s=this.scopeStack.length-1;s>=0&&(i=this.scopeStack[s],this.checkRedeclarationInScope(i,t,r,n),i.names.set(t,(i.names.get(t)||0)|1),this.maybeExportDefined(i,t),!(i.flags&387));--s);this.parser.inModule&&i.flags&1&&this.undefinedExports.delete(t)}maybeExportDefined(t,r){this.parser.inModule&&t.flags&1&&this.undefinedExports.delete(r)}checkRedeclarationInScope(t,r,n,i){this.isRedeclaredInScope(t,r,n)&&this.parser.raise(ee.VarRedeclaration,i,{identifierName:r})}isRedeclaredInScope(t,r,n){if(!(n&1))return!1;if(n&8)return t.names.has(r);const i=t.names.get(r);return n&16?(i&2)>0||!this.treatFunctionsAsVarInScope(t)&&(i&1)>0:(i&2)>0&&!(t.flags&8&&t.firstLexicalName===r)||!this.treatFunctionsAsVarInScope(t)&&(i&4)>0}checkLocalExport(t){const{name:r}=t;this.scopeStack[0].names.has(r)||this.undefinedExports.set(r,t.loc.start)}currentScope(){return this.scopeStack[this.scopeStack.length-1]}currentVarScopeFlags(){for(let t=this.scopeStack.length-1;;t--){const{flags:r}=this.scopeStack[t];if(r&387)return r}}currentThisScopeFlags(){for(let t=this.scopeStack.length-1;;t--){const{flags:r}=this.scopeStack[t];if(r&451&&!(r&4))return r}}}class Ew extends Gc{constructor(...t){super(...t),this.declareFunctions=new Set}}class bw extends Yc{createScope(t){return new Ew(t)}declareName(t,r,n){const i=this.currentScope();if(r&2048){this.checkRedeclarationInScope(i,t,r,n),this.maybeExportDefined(i,t),i.declareFunctions.add(t);return}super.declareName(t,r,n)}isRedeclaredInScope(t,r,n){if(super.isRedeclaredInScope(t,r,n))return!0;if(n&2048&&!t.declareFunctions.has(r)){const i=t.names.get(r);return(i&4)>0||(i&2)>0}return!1}checkLocalExport(t){this.scopeStack[0].declareFunctions.has(t.name)||super.checkLocalExport(t)}}class Tw{constructor(){this.sawUnambiguousESM=!1,this.ambiguousScriptDifferentAst=!1}hasPlugin(t){if(typeof t=="string")return this.plugins.has(t);{const[r,n]=t;if(!this.hasPlugin(r))return!1;const i=this.plugins.get(r);for(const s of Object.keys(n))if((i==null?void 0:i[s])!==n[s])return!1;return!0}}getPluginOption(t,r){var n;return(n=this.plugins.get(t))==null?void 0:n[r]}}function I0(e,t){e.trailingComments===void 0?e.trailingComments=t:e.trailingComments.unshift(...t)}function Sw(e,t){e.leadingComments===void 0?e.leadingComments=t:e.leadingComments.unshift(...t)}function Os(e,t){e.innerComments===void 0?e.innerComments=t:e.innerComments.unshift(...t)}function Xi(e,t,r){let n=null,i=t.length;for(;n===null&&i>0;)n=t[--i];n===null||n.start>r.start?Os(e,r.comments):I0(n,r.comments)}class vw extends Tw{addComment(t){this.filename&&(t.loc.filename=this.filename);const{commentsLen:r}=this.state;this.comments.length!==r&&(this.comments.length=r),this.comments.push(t),this.state.commentsLen++}processComment(t){const{commentStack:r}=this.state,n=r.length;if(n===0)return;let i=n-1;const s=r[i];s.start===t.end&&(s.leadingNode=t,i--);const{start:a}=t;for(;i>=0;i--){const o=r[i],u=o.end;if(u>a)o.containingNode=t,this.finalizeComment(o),r.splice(i,1);else{u===a&&(o.trailingNode=t);break}}}finalizeComment(t){const{comments:r}=t;if(t.leadingNode!==null||t.trailingNode!==null)t.leadingNode!==null&&I0(t.leadingNode,r),t.trailingNode!==null&&Sw(t.trailingNode,r);else{const{containingNode:n,start:i}=t;if(this.input.charCodeAt(i-1)===44)switch(n.type){case"ObjectExpression":case"ObjectPattern":case"RecordExpression":Xi(n,n.properties,t);break;case"CallExpression":case"OptionalCallExpression":Xi(n,n.arguments,t);break;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":Xi(n,n.params,t);break;case"ArrayExpression":case"ArrayPattern":case"TupleExpression":Xi(n,n.elements,t);break;case"ExportNamedDeclaration":case"ImportDeclaration":Xi(n,n.specifiers,t);break;default:Os(n,r)}else Os(n,r)}}finalizeRemainingComments(){const{commentStack:t}=this.state;for(let r=t.length-1;r>=0;r--)this.finalizeComment(t[r]);this.state.commentStack=[]}resetPreviousNodeTrailingComments(t){const{commentStack:r}=this.state,{length:n}=r;if(n===0)return;const i=r[n-1];i.leadingNode===t&&(i.leadingNode=null)}resetPreviousIdentifierLeadingComments(t){const{commentStack:r}=this.state,{length:n}=r;n!==0&&(r[n-1].trailingNode===t?r[n-1].trailingNode=null:n>=2&&r[n-2].trailingNode===t&&(r[n-2].trailingNode=null))}takeSurroundingComments(t,r,n){const{commentStack:i}=this.state,s=i.length;if(s===0)return;let a=s-1;for(;a>=0;a--){const o=i[a],u=o.end;if(o.start===n)o.leadingNode=t;else if(u===r)o.trailingNode=t;else if(u<r)break}}}const Aw=/\r\n|[\r\n\u2028\u2029]/,fa=new RegExp(Aw.source,"g");function _i(e){switch(e){case 10:case 13:case 8232:case 8233:return!0;default:return!1}}function rh(e,t,r){for(let n=t;n<r;n++)if(_i(e.charCodeAt(n)))return!0;return!1}const Bu=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,Lu=/(?:[^\S\n\r\u2028\u2029]|\/\/.*|\/\*.*?\*\/)*/g;function Cw(e){switch(e){case 9:case 11:case 12:case 32:case 160:case 5760:case 8192:case 8193:case 8194:case 8195:case 8196:case 8197:case 8198:case 8199:case 8200:case 8201:case 8202:case 8239:case 8287:case 12288:case 65279:return!0;default:return!1}}class Xc{constructor(){this.flags=1024,this.curLine=void 0,this.lineStart=void 0,this.startLoc=void 0,this.endLoc=void 0,this.errors=[],this.potentialArrowAt=-1,this.noArrowAt=[],this.noArrowParamsConversionAt=[],this.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null},this.labels=[],this.commentsLen=0,this.commentStack=[],this.pos=0,this.type=139,this.value=null,this.start=0,this.end=0,this.lastTokEndLoc=null,this.lastTokStartLoc=null,this.context=[lt.brace],this.firstInvalidTemplateEscapePos=null,this.strictErrors=new Map,this.tokensLength=0}get strict(){return(this.flags&1)>0}set strict(t){t?this.flags|=1:this.flags&=-2}init({strictMode:t,sourceType:r,startLine:n,startColumn:i}){this.strict=t===!1?!1:t===!0?!0:r==="module",this.curLine=n,this.lineStart=-i,this.startLoc=this.endLoc=new En(n,i,0)}get maybeInArrowParameters(){return(this.flags&2)>0}set maybeInArrowParameters(t){t?this.flags|=2:this.flags&=-3}get inType(){return(this.flags&4)>0}set inType(t){t?this.flags|=4:this.flags&=-5}get noAnonFunctionType(){return(this.flags&8)>0}set noAnonFunctionType(t){t?this.flags|=8:this.flags&=-9}get hasFlowComment(){return(this.flags&16)>0}set hasFlowComment(t){t?this.flags|=16:this.flags&=-17}get isAmbientContext(){return(this.flags&32)>0}set isAmbientContext(t){t?this.flags|=32:this.flags&=-33}get inAbstractClass(){return(this.flags&64)>0}set inAbstractClass(t){t?this.flags|=64:this.flags&=-65}get inDisallowConditionalTypesContext(){return(this.flags&128)>0}set inDisallowConditionalTypesContext(t){t?this.flags|=128:this.flags&=-129}get soloAwait(){return(this.flags&256)>0}set soloAwait(t){t?this.flags|=256:this.flags&=-257}get inFSharpPipelineDirectBody(){return(this.flags&512)>0}set inFSharpPipelineDirectBody(t){t?this.flags|=512:this.flags&=-513}get canStartJSXElement(){return(this.flags&1024)>0}set canStartJSXElement(t){t?this.flags|=1024:this.flags&=-1025}get containsEsc(){return(this.flags&2048)>0}set containsEsc(t){t?this.flags|=2048:this.flags&=-2049}get hasTopLevelAwait(){return(this.flags&4096)>0}set hasTopLevelAwait(t){t?this.flags|=4096:this.flags&=-4097}curPosition(){return new En(this.curLine,this.pos-this.lineStart,this.pos)}clone(){const t=new Xc;return t.flags=this.flags,t.curLine=this.curLine,t.lineStart=this.lineStart,t.startLoc=this.startLoc,t.endLoc=this.endLoc,t.errors=this.errors.slice(),t.potentialArrowAt=this.potentialArrowAt,t.noArrowAt=this.noArrowAt.slice(),t.noArrowParamsConversionAt=this.noArrowParamsConversionAt.slice(),t.topicContext=this.topicContext,t.labels=this.labels.slice(),t.commentsLen=this.commentsLen,t.commentStack=this.commentStack.slice(),t.pos=this.pos,t.type=this.type,t.value=this.value,t.start=this.start,t.end=this.end,t.lastTokEndLoc=this.lastTokEndLoc,t.lastTokStartLoc=this.lastTokStartLoc,t.context=this.context.slice(),t.firstInvalidTemplateEscapePos=this.firstInvalidTemplateEscapePos,t.strictErrors=this.strictErrors,t.tokensLength=this.tokensLength,t}}var Pw=function(t){return t>=48&&t<=57};const nh={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},pa={bin:e=>e===48||e===49,oct:e=>e>=48&&e<=55,dec:e=>e>=48&&e<=57,hex:e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102};function ih(e,t,r,n,i,s){const a=r,o=n,u=i;let l="",c=null,f=r;const{length:p}=t;for(;;){if(r>=p){s.unterminated(a,o,u),l+=t.slice(f,r);break}const h=t.charCodeAt(r);if(xw(e,h,t,r)){l+=t.slice(f,r);break}if(h===92){l+=t.slice(f,r);const d=Fw(t,r,n,i,e==="template",s);d.ch===null&&!c?c={pos:r,lineStart:n,curLine:i}:l+=d.ch,{pos:r,lineStart:n,curLine:i}=d,f=r}else h===8232||h===8233?(++r,++i,n=r):h===10||h===13?e==="template"?(l+=t.slice(f,r)+`
|
|
110
|
+
`,++r,h===13&&t.charCodeAt(r)===10&&++r,++i,f=n=r):s.unterminated(a,o,u):++r}return{pos:r,str:l,firstInvalidLoc:c,lineStart:n,curLine:i,containsInvalid:!!c}}function xw(e,t,r,n){return e==="template"?t===96||t===36&&r.charCodeAt(n+1)===123:t===(e==="double"?34:39)}function Fw(e,t,r,n,i,s){const a=!i;t++;const o=l=>({pos:t,ch:l,lineStart:r,curLine:n}),u=e.charCodeAt(t++);switch(u){case 110:return o(`
|
|
111
|
+
`);case 114:return o("\r");case 120:{let l;return{code:l,pos:t}=Ml(e,t,r,n,2,!1,a,s),o(l===null?null:String.fromCharCode(l))}case 117:{let l;return{code:l,pos:t}=N0(e,t,r,n,a,s),o(l===null?null:String.fromCodePoint(l))}case 116:return o(" ");case 98:return o("\b");case 118:return o("\v");case 102:return o("\f");case 13:e.charCodeAt(t)===10&&++t;case 10:r=t,++n;case 8232:case 8233:return o("");case 56:case 57:if(i)return o(null);s.strictNumericEscape(t-1,r,n);default:if(u>=48&&u<=55){const l=t-1;let f=/^[0-7]+/.exec(e.slice(l,t+2))[0],p=parseInt(f,8);p>255&&(f=f.slice(0,-1),p=parseInt(f,8)),t+=f.length-1;const h=e.charCodeAt(t);if(f!=="0"||h===56||h===57){if(i)return o(null);s.strictNumericEscape(l,r,n)}return o(String.fromCharCode(p))}return o(String.fromCharCode(u))}}function Ml(e,t,r,n,i,s,a,o){const u=t;let l;return{n:l,pos:t}=O0(e,t,r,n,16,i,s,!1,o,!a),l===null&&(a?o.invalidEscapeSequence(u,r,n):t=u-1),{code:l,pos:t}}function O0(e,t,r,n,i,s,a,o,u,l){const c=t,f=i===16?nh.hex:nh.decBinOct,p=i===16?pa.hex:i===10?pa.dec:i===8?pa.oct:pa.bin;let h=!1,d=0;for(let m=0,D=s??1/0;m<D;++m){const g=e.charCodeAt(t);let y;if(g===95&&o!=="bail"){const b=e.charCodeAt(t-1),O=e.charCodeAt(t+1);if(o){if(Number.isNaN(O)||!p(O)||f.has(b)||f.has(O)){if(l)return{n:null,pos:t};u.unexpectedNumericSeparator(t,r,n)}}else{if(l)return{n:null,pos:t};u.numericSeparatorInEscapeSequence(t,r,n)}++t;continue}if(g>=97?y=g-97+10:g>=65?y=g-65+10:Pw(g)?y=g-48:y=1/0,y>=i){if(y<=9&&l)return{n:null,pos:t};if(y<=9&&u.invalidDigit(t,r,n,i))y=0;else if(a)y=0,h=!0;else break}++t,d=d*i+y}return t===c||s!=null&&t-c!==s||h?{n:null,pos:t}:{n:d,pos:t}}function N0(e,t,r,n,i,s){const a=e.charCodeAt(t);let o;if(a===123){if(++t,{code:o,pos:t}=Ml(e,t,r,n,e.indexOf("}",t)-t,!0,i,s),++t,o!==null&&o>1114111)if(i)s.invalidCodePoint(t,r,n);else return{code:null,pos:t}}else({code:o,pos:t}=Ml(e,t,r,n,4,!1,i,s));return{code:o,pos:t}}function Ji(e,t,r){return new En(r,e-t,e)}const _w=new Set([103,109,115,105,121,117,100,118]);class hn{constructor(t){this.type=t.type,this.value=t.value,this.start=t.start,this.end=t.end,this.loc=new Do(t.startLoc,t.endLoc)}}class ww extends vw{constructor(t,r){super(),this.isLookahead=void 0,this.tokens=[],this.errorHandlers_readInt={invalidDigit:(n,i,s,a)=>this.options.errorRecovery?(this.raise(ee.InvalidDigit,Ji(n,i,s),{radix:a}),!0):!1,numericSeparatorInEscapeSequence:this.errorBuilder(ee.NumericSeparatorInEscapeSequence),unexpectedNumericSeparator:this.errorBuilder(ee.UnexpectedNumericSeparator)},this.errorHandlers_readCodePoint=Object.assign({},this.errorHandlers_readInt,{invalidEscapeSequence:this.errorBuilder(ee.InvalidEscapeSequence),invalidCodePoint:this.errorBuilder(ee.InvalidCodePoint)}),this.errorHandlers_readStringContents_string=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:(n,i,s)=>{this.recordStrictModeErrors(ee.StrictNumericEscape,Ji(n,i,s))},unterminated:(n,i,s)=>{throw this.raise(ee.UnterminatedString,Ji(n-1,i,s))}}),this.errorHandlers_readStringContents_template=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:this.errorBuilder(ee.StrictNumericEscape),unterminated:(n,i,s)=>{throw this.raise(ee.UnterminatedTemplate,Ji(n,i,s))}}),this.state=new Xc,this.state.init(t),this.input=r,this.length=r.length,this.comments=[],this.isLookahead=!1}pushToken(t){this.tokens.length=this.state.tokensLength,this.tokens.push(t),++this.state.tokensLength}next(){this.checkKeywordEscapes(),this.options.tokens&&this.pushToken(new hn(this.state)),this.state.lastTokEndLoc=this.state.endLoc,this.state.lastTokStartLoc=this.state.startLoc,this.nextToken()}eat(t){return this.match(t)?(this.next(),!0):!1}match(t){return this.state.type===t}createLookaheadState(t){return{pos:t.pos,value:null,type:t.type,start:t.start,end:t.end,context:[this.curContext()],inType:t.inType,startLoc:t.startLoc,lastTokEndLoc:t.lastTokEndLoc,curLine:t.curLine,lineStart:t.lineStart,curPosition:t.curPosition}}lookahead(){const t=this.state;this.state=this.createLookaheadState(t),this.isLookahead=!0,this.nextToken(),this.isLookahead=!1;const r=this.state;return this.state=t,r}nextTokenStart(){return this.nextTokenStartSince(this.state.pos)}nextTokenStartSince(t){return Bu.lastIndex=t,Bu.test(this.input)?Bu.lastIndex:t}lookaheadCharCode(){return this.input.charCodeAt(this.nextTokenStart())}nextTokenInLineStart(){return this.nextTokenInLineStartSince(this.state.pos)}nextTokenInLineStartSince(t){return Lu.lastIndex=t,Lu.test(this.input)?Lu.lastIndex:t}lookaheadInLineCharCode(){return this.input.charCodeAt(this.nextTokenInLineStart())}codePointAtPos(t){let r=this.input.charCodeAt(t);if((r&64512)===55296&&++t<this.input.length){const n=this.input.charCodeAt(t);(n&64512)===56320&&(r=65536+((r&1023)<<10)+(n&1023))}return r}setStrict(t){this.state.strict=t,t&&(this.state.strictErrors.forEach(([r,n])=>this.raise(r,n)),this.state.strictErrors.clear())}curContext(){return this.state.context[this.state.context.length-1]}nextToken(){if(this.skipSpace(),this.state.start=this.state.pos,this.isLookahead||(this.state.startLoc=this.state.curPosition()),this.state.pos>=this.length){this.finishToken(139);return}this.getTokenFromCode(this.codePointAtPos(this.state.pos))}skipBlockComment(t){let r;this.isLookahead||(r=this.state.curPosition());const n=this.state.pos,i=this.input.indexOf(t,n+2);if(i===-1)throw this.raise(ee.UnterminatedComment,this.state.curPosition());for(this.state.pos=i+t.length,fa.lastIndex=n+2;fa.test(this.input)&&fa.lastIndex<=i;)++this.state.curLine,this.state.lineStart=fa.lastIndex;if(this.isLookahead)return;const s={type:"CommentBlock",value:this.input.slice(n+2,i),start:n,end:i+t.length,loc:new Do(r,this.state.curPosition())};return this.options.tokens&&this.pushToken(s),s}skipLineComment(t){const r=this.state.pos;let n;this.isLookahead||(n=this.state.curPosition());let i=this.input.charCodeAt(this.state.pos+=t);if(this.state.pos<this.length)for(;!_i(i)&&++this.state.pos<this.length;)i=this.input.charCodeAt(this.state.pos);if(this.isLookahead)return;const s=this.state.pos,o={type:"CommentLine",value:this.input.slice(r+t,s),start:r,end:s,loc:new Do(n,this.state.curPosition())};return this.options.tokens&&this.pushToken(o),o}skipSpace(){const t=this.state.pos,r=[];e:for(;this.state.pos<this.length;){const n=this.input.charCodeAt(this.state.pos);switch(n){case 32:case 160:case 9:++this.state.pos;break;case 13:this.input.charCodeAt(this.state.pos+1)===10&&++this.state.pos;case 10:case 8232:case 8233:++this.state.pos,++this.state.curLine,this.state.lineStart=this.state.pos;break;case 47:switch(this.input.charCodeAt(this.state.pos+1)){case 42:{const i=this.skipBlockComment("*/");i!==void 0&&(this.addComment(i),this.options.attachComment&&r.push(i));break}case 47:{const i=this.skipLineComment(2);i!==void 0&&(this.addComment(i),this.options.attachComment&&r.push(i));break}default:break e}break;default:if(Cw(n))++this.state.pos;else if(n===45&&!this.inModule&&this.options.annexB){const i=this.state.pos;if(this.input.charCodeAt(i+1)===45&&this.input.charCodeAt(i+2)===62&&(t===0||this.state.lineStart>t)){const s=this.skipLineComment(3);s!==void 0&&(this.addComment(s),this.options.attachComment&&r.push(s))}else break e}else if(n===60&&!this.inModule&&this.options.annexB){const i=this.state.pos;if(this.input.charCodeAt(i+1)===33&&this.input.charCodeAt(i+2)===45&&this.input.charCodeAt(i+3)===45){const s=this.skipLineComment(4);s!==void 0&&(this.addComment(s),this.options.attachComment&&r.push(s))}else break e}else break e}}if(r.length>0){const n=this.state.pos,i={start:t,end:n,comments:r,leadingNode:null,trailingNode:null,containingNode:null};this.state.commentStack.push(i)}}finishToken(t,r){this.state.end=this.state.pos,this.state.endLoc=this.state.curPosition();const n=this.state.type;this.state.type=t,this.state.value=r,this.isLookahead||this.updateContext(n)}replaceToken(t){this.state.type=t,this.updateContext()}readToken_numberSign(){if(this.state.pos===0&&this.readToken_interpreter())return;const t=this.state.pos+1,r=this.codePointAtPos(t);if(r>=48&&r<=57)throw this.raise(ee.UnexpectedDigitAfterHash,this.state.curPosition());if(r===123||r===91&&this.hasPlugin("recordAndTuple")){if(this.expectPlugin("recordAndTuple"),this.getPluginOption("recordAndTuple","syntaxType")==="bar")throw this.raise(r===123?ee.RecordExpressionHashIncorrectStartSyntaxType:ee.TupleExpressionHashIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,r===123?this.finishToken(7):this.finishToken(1)}else Wr(r)?(++this.state.pos,this.finishToken(138,this.readWord1(r))):r===92?(++this.state.pos,this.finishToken(138,this.readWord1())):this.finishOp(27,1)}readToken_dot(){const t=this.input.charCodeAt(this.state.pos+1);if(t>=48&&t<=57){this.readNumber(!0);return}t===46&&this.input.charCodeAt(this.state.pos+2)===46?(this.state.pos+=3,this.finishToken(21)):(++this.state.pos,this.finishToken(16))}readToken_slash(){this.input.charCodeAt(this.state.pos+1)===61?this.finishOp(31,2):this.finishOp(56,1)}readToken_interpreter(){if(this.state.pos!==0||this.length<2)return!1;let t=this.input.charCodeAt(this.state.pos+1);if(t!==33)return!1;const r=this.state.pos;for(this.state.pos+=1;!_i(t)&&++this.state.pos<this.length;)t=this.input.charCodeAt(this.state.pos);const n=this.input.slice(r+2,this.state.pos);return this.finishToken(28,n),!0}readToken_mult_modulo(t){let r=t===42?55:54,n=1,i=this.input.charCodeAt(this.state.pos+1);t===42&&i===42&&(n++,i=this.input.charCodeAt(this.state.pos+2),r=57),i===61&&!this.state.inType&&(n++,r=t===37?33:30),this.finishOp(r,n)}readToken_pipe_amp(t){const r=this.input.charCodeAt(this.state.pos+1);if(r===t){this.input.charCodeAt(this.state.pos+2)===61?this.finishOp(30,3):this.finishOp(t===124?41:42,2);return}if(t===124){if(r===62){this.finishOp(39,2);return}if(this.hasPlugin("recordAndTuple")&&r===125){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(ee.RecordExpressionBarIncorrectEndSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(9);return}if(this.hasPlugin("recordAndTuple")&&r===93){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(ee.TupleExpressionBarIncorrectEndSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(4);return}}if(r===61){this.finishOp(30,2);return}this.finishOp(t===124?43:45,1)}readToken_caret(){const t=this.input.charCodeAt(this.state.pos+1);t===61&&!this.state.inType?this.finishOp(32,2):t===94&&this.hasPlugin(["pipelineOperator",{proposal:"hack",topicToken:"^^"}])?(this.finishOp(37,2),this.input.codePointAt(this.state.pos)===94&&this.unexpected()):this.finishOp(44,1)}readToken_atSign(){this.input.charCodeAt(this.state.pos+1)===64&&this.hasPlugin(["pipelineOperator",{proposal:"hack",topicToken:"@@"}])?this.finishOp(38,2):this.finishOp(26,1)}readToken_plus_min(t){const r=this.input.charCodeAt(this.state.pos+1);if(r===t){this.finishOp(34,2);return}r===61?this.finishOp(30,2):this.finishOp(53,1)}readToken_lt(){const{pos:t}=this.state,r=this.input.charCodeAt(t+1);if(r===60){if(this.input.charCodeAt(t+2)===61){this.finishOp(30,3);return}this.finishOp(51,2);return}if(r===61){this.finishOp(49,2);return}this.finishOp(47,1)}readToken_gt(){const{pos:t}=this.state,r=this.input.charCodeAt(t+1);if(r===62){const n=this.input.charCodeAt(t+2)===62?3:2;if(this.input.charCodeAt(t+n)===61){this.finishOp(30,n+1);return}this.finishOp(52,n);return}if(r===61){this.finishOp(49,2);return}this.finishOp(48,1)}readToken_eq_excl(t){const r=this.input.charCodeAt(this.state.pos+1);if(r===61){this.finishOp(46,this.input.charCodeAt(this.state.pos+2)===61?3:2);return}if(t===61&&r===62){this.state.pos+=2,this.finishToken(19);return}this.finishOp(t===61?29:35,1)}readToken_question(){const t=this.input.charCodeAt(this.state.pos+1),r=this.input.charCodeAt(this.state.pos+2);t===63?r===61?this.finishOp(30,3):this.finishOp(40,2):t===46&&!(r>=48&&r<=57)?(this.state.pos+=2,this.finishToken(18)):(++this.state.pos,this.finishToken(17))}getTokenFromCode(t){switch(t){case 46:this.readToken_dot();return;case 40:++this.state.pos,this.finishToken(10);return;case 41:++this.state.pos,this.finishToken(11);return;case 59:++this.state.pos,this.finishToken(13);return;case 44:++this.state.pos,this.finishToken(12);return;case 91:if(this.hasPlugin("recordAndTuple")&&this.input.charCodeAt(this.state.pos+1)===124){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(ee.TupleExpressionBarIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(2)}else++this.state.pos,this.finishToken(0);return;case 93:++this.state.pos,this.finishToken(3);return;case 123:if(this.hasPlugin("recordAndTuple")&&this.input.charCodeAt(this.state.pos+1)===124){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(ee.RecordExpressionBarIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(6)}else++this.state.pos,this.finishToken(5);return;case 125:++this.state.pos,this.finishToken(8);return;case 58:this.hasPlugin("functionBind")&&this.input.charCodeAt(this.state.pos+1)===58?this.finishOp(15,2):(++this.state.pos,this.finishToken(14));return;case 63:this.readToken_question();return;case 96:this.readTemplateToken();return;case 48:{const r=this.input.charCodeAt(this.state.pos+1);if(r===120||r===88){this.readRadixNumber(16);return}if(r===111||r===79){this.readRadixNumber(8);return}if(r===98||r===66){this.readRadixNumber(2);return}}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:this.readNumber(!1);return;case 34:case 39:this.readString(t);return;case 47:this.readToken_slash();return;case 37:case 42:this.readToken_mult_modulo(t);return;case 124:case 38:this.readToken_pipe_amp(t);return;case 94:this.readToken_caret();return;case 43:case 45:this.readToken_plus_min(t);return;case 60:this.readToken_lt();return;case 62:this.readToken_gt();return;case 61:case 33:this.readToken_eq_excl(t);return;case 126:this.finishOp(36,1);return;case 64:this.readToken_atSign();return;case 35:this.readToken_numberSign();return;case 92:this.readWord();return;default:if(Wr(t)){this.readWord(t);return}}throw this.raise(ee.InvalidOrUnexpectedToken,this.state.curPosition(),{unexpected:String.fromCodePoint(t)})}finishOp(t,r){const n=this.input.slice(this.state.pos,this.state.pos+r);this.state.pos+=r,this.finishToken(t,n)}readRegexp(){const t=this.state.startLoc,r=this.state.start+1;let n,i,{pos:s}=this.state;for(;;++s){if(s>=this.length)throw this.raise(ee.UnterminatedRegExp,$t(t,1));const l=this.input.charCodeAt(s);if(_i(l))throw this.raise(ee.UnterminatedRegExp,$t(t,1));if(n)n=!1;else{if(l===91)i=!0;else if(l===93&&i)i=!1;else if(l===47&&!i)break;n=l===92}}const a=this.input.slice(r,s);++s;let o="";const u=()=>$t(t,s+2-r);for(;s<this.length;){const l=this.codePointAtPos(s),c=String.fromCharCode(l);if(_w.has(l))l===118?o.includes("u")&&this.raise(ee.IncompatibleRegExpUVFlags,u()):l===117&&o.includes("v")&&this.raise(ee.IncompatibleRegExpUVFlags,u()),o.includes(c)&&this.raise(ee.DuplicateRegExpFlags,u());else if(Fi(l)||l===92)this.raise(ee.MalformedRegExpFlags,u());else break;++s,o+=c}this.state.pos=s,this.finishToken(137,{pattern:a,flags:o})}readInt(t,r,n=!1,i=!0){const{n:s,pos:a}=O0(this.input,this.state.pos,this.state.lineStart,this.state.curLine,t,r,n,i,this.errorHandlers_readInt,!1);return this.state.pos=a,s}readRadixNumber(t){const r=this.state.curPosition();let n=!1;this.state.pos+=2;const i=this.readInt(t);i==null&&this.raise(ee.InvalidDigit,$t(r,2),{radix:t});const s=this.input.charCodeAt(this.state.pos);if(s===110)++this.state.pos,n=!0;else if(s===109)throw this.raise(ee.InvalidDecimal,r);if(Wr(this.codePointAtPos(this.state.pos)))throw this.raise(ee.NumberIdentifier,this.state.curPosition());if(n){const a=this.input.slice(r.index,this.state.pos).replace(/[_n]/g,"");this.finishToken(135,a);return}this.finishToken(134,i)}readNumber(t){const r=this.state.pos,n=this.state.curPosition();let i=!1,s=!1,a=!1,o=!1,u=!1;!t&&this.readInt(10)===null&&this.raise(ee.InvalidNumber,this.state.curPosition());const l=this.state.pos-r>=2&&this.input.charCodeAt(r)===48;if(l){const h=this.input.slice(r,this.state.pos);if(this.recordStrictModeErrors(ee.StrictOctalLiteral,n),!this.state.strict){const d=h.indexOf("_");d>0&&this.raise(ee.ZeroDigitNumericSeparator,$t(n,d))}u=l&&!/[89]/.test(h)}let c=this.input.charCodeAt(this.state.pos);if(c===46&&!u&&(++this.state.pos,this.readInt(10),i=!0,c=this.input.charCodeAt(this.state.pos)),(c===69||c===101)&&!u&&(c=this.input.charCodeAt(++this.state.pos),(c===43||c===45)&&++this.state.pos,this.readInt(10)===null&&this.raise(ee.InvalidOrMissingExponent,n),i=!0,o=!0,c=this.input.charCodeAt(this.state.pos)),c===110&&((i||l)&&this.raise(ee.InvalidBigIntLiteral,n),++this.state.pos,s=!0),c===109&&(this.expectPlugin("decimal",this.state.curPosition()),(o||l)&&this.raise(ee.InvalidDecimal,n),++this.state.pos,a=!0),Wr(this.codePointAtPos(this.state.pos)))throw this.raise(ee.NumberIdentifier,this.state.curPosition());const f=this.input.slice(r,this.state.pos).replace(/[_mn]/g,"");if(s){this.finishToken(135,f);return}if(a){this.finishToken(136,f);return}const p=u?parseInt(f,8):parseFloat(f);this.finishToken(134,p)}readCodePoint(t){const{code:r,pos:n}=N0(this.input,this.state.pos,this.state.lineStart,this.state.curLine,t,this.errorHandlers_readCodePoint);return this.state.pos=n,r}readString(t){const{str:r,pos:n,curLine:i,lineStart:s}=ih(t===34?"double":"single",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_string);this.state.pos=n+1,this.state.lineStart=s,this.state.curLine=i,this.finishToken(133,r)}readTemplateContinuation(){this.match(8)||this.unexpected(null,8),this.state.pos--,this.readTemplateToken()}readTemplateToken(){const t=this.input[this.state.pos],{str:r,firstInvalidLoc:n,pos:i,curLine:s,lineStart:a}=ih("template",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_template);this.state.pos=i+1,this.state.lineStart=a,this.state.curLine=s,n&&(this.state.firstInvalidTemplateEscapePos=new En(n.curLine,n.pos-n.lineStart,n.pos)),this.input.codePointAt(i)===96?this.finishToken(24,n?null:t+r+"`"):(this.state.pos++,this.finishToken(25,n?null:t+r+"${"))}recordStrictModeErrors(t,r){const n=r.index;this.state.strict&&!this.state.strictErrors.has(n)?this.raise(t,r):this.state.strictErrors.set(n,[t,r])}readWord1(t){this.state.containsEsc=!1;let r="";const n=this.state.pos;let i=this.state.pos;for(t!==void 0&&(this.state.pos+=t<=65535?1:2);this.state.pos<this.length;){const s=this.codePointAtPos(this.state.pos);if(Fi(s))this.state.pos+=s<=65535?1:2;else if(s===92){this.state.containsEsc=!0,r+=this.input.slice(i,this.state.pos);const a=this.state.curPosition(),o=this.state.pos===n?Wr:Fi;if(this.input.charCodeAt(++this.state.pos)!==117){this.raise(ee.MissingUnicodeEscape,this.state.curPosition()),i=this.state.pos-1;continue}++this.state.pos;const u=this.readCodePoint(!0);u!==null&&(o(u)||this.raise(ee.EscapedCharNotAnIdentifier,a),r+=String.fromCodePoint(u)),i=this.state.pos}else break}return r+this.input.slice(i,this.state.pos)}readWord(t){const r=this.readWord1(t),n=Mc.get(r);n!==void 0?this.finishToken(n,bn(n)):this.finishToken(132,r)}checkKeywordEscapes(){const{type:t}=this.state;Kc(t)&&this.state.containsEsc&&this.raise(ee.InvalidEscapedReservedWord,this.state.startLoc,{reservedWord:bn(t)})}raise(t,r,n={}){const i=r instanceof En?r:r.loc.start,s=t(i,n);if(!this.options.errorRecovery)throw s;return this.isLookahead||this.state.errors.push(s),s}raiseOverwrite(t,r,n={}){const i=r instanceof En?r:r.loc.start,s=i.index,a=this.state.errors;for(let o=a.length-1;o>=0;o--){const u=a[o];if(u.loc.index===s)return a[o]=t(i,n);if(u.loc.index<s)break}return this.raise(t,r,n)}updateContext(t){}unexpected(t,r){throw this.raise(ee.UnexpectedToken,t??this.state.startLoc,{expected:r?bn(r):null})}expectPlugin(t,r){if(this.hasPlugin(t))return!0;throw this.raise(ee.MissingPlugin,r??this.state.startLoc,{missingPlugin:[t]})}expectOnePlugin(t){if(!t.some(r=>this.hasPlugin(r)))throw this.raise(ee.MissingOneOfPlugins,this.state.startLoc,{missingPlugin:t})}errorBuilder(t){return(r,n,i)=>{this.raise(t,Ji(r,n,i))}}}class Iw{constructor(){this.privateNames=new Set,this.loneAccessors=new Map,this.undefinedPrivateNames=new Map}}class Ow{constructor(t){this.parser=void 0,this.stack=[],this.undefinedPrivateNames=new Map,this.parser=t}current(){return this.stack[this.stack.length-1]}enter(){this.stack.push(new Iw)}exit(){const t=this.stack.pop(),r=this.current();for(const[n,i]of Array.from(t.undefinedPrivateNames))r?r.undefinedPrivateNames.has(n)||r.undefinedPrivateNames.set(n,i):this.parser.raise(ee.InvalidPrivateFieldResolution,i,{identifierName:n})}declarePrivateName(t,r,n){const{privateNames:i,loneAccessors:s,undefinedPrivateNames:a}=this.current();let o=i.has(t);if(r&3){const u=o&&s.get(t);if(u){const l=u&4,c=r&4,f=u&3,p=r&3;o=f===p||l!==c,o||s.delete(t)}else o||s.set(t,r)}o&&this.parser.raise(ee.PrivateNameRedeclaration,n,{identifierName:t}),i.add(t),a.delete(t)}usePrivateName(t,r){let n;for(n of this.stack)if(n.privateNames.has(t))return;n?n.undefinedPrivateNames.set(t,r):this.parser.raise(ee.InvalidPrivateFieldResolution,r,{identifierName:t})}}class Oo{constructor(t=0){this.type=t}canBeArrowParameterDeclaration(){return this.type===2||this.type===1}isCertainlyParameterDeclaration(){return this.type===3}}class B0 extends Oo{constructor(t){super(t),this.declarationErrors=new Map}recordDeclarationError(t,r){const n=r.index;this.declarationErrors.set(n,[t,r])}clearDeclarationError(t){this.declarationErrors.delete(t)}iterateErrors(t){this.declarationErrors.forEach(t)}}class Nw{constructor(t){this.parser=void 0,this.stack=[new Oo],this.parser=t}enter(t){this.stack.push(t)}exit(){this.stack.pop()}recordParameterInitializerError(t,r){const n=r.loc.start,{stack:i}=this;let s=i.length-1,a=i[s];for(;!a.isCertainlyParameterDeclaration();){if(a.canBeArrowParameterDeclaration())a.recordDeclarationError(t,n);else return;a=i[--s]}this.parser.raise(t,n)}recordArrowParameterBindingError(t,r){const{stack:n}=this,i=n[n.length-1],s=r.loc.start;if(i.isCertainlyParameterDeclaration())this.parser.raise(t,s);else if(i.canBeArrowParameterDeclaration())i.recordDeclarationError(t,s);else return}recordAsyncArrowParametersError(t){const{stack:r}=this;let n=r.length-1,i=r[n];for(;i.canBeArrowParameterDeclaration();)i.type===2&&i.recordDeclarationError(ee.AwaitBindingIdentifier,t),i=r[--n]}validateAsPattern(){const{stack:t}=this,r=t[t.length-1];r.canBeArrowParameterDeclaration()&&r.iterateErrors(([n,i])=>{this.parser.raise(n,i);let s=t.length-2,a=t[s];for(;a.canBeArrowParameterDeclaration();)a.clearDeclarationError(i.index),a=t[--s]})}}function Bw(){return new Oo(3)}function Lw(){return new B0(1)}function kw(){return new B0(2)}function L0(){return new Oo}class Rw{constructor(){this.stacks=[]}enter(t){this.stacks.push(t)}exit(){this.stacks.pop()}currentFlags(){return this.stacks[this.stacks.length-1]}get hasAwait(){return(this.currentFlags()&2)>0}get hasYield(){return(this.currentFlags()&1)>0}get hasReturn(){return(this.currentFlags()&4)>0}get hasIn(){return(this.currentFlags()&8)>0}}function Za(e,t){return(e?2:0)|(t?1:0)}class Mw extends ww{addExtra(t,r,n,i=!0){if(!t)return;let{extra:s}=t;s==null&&(s={},t.extra=s),i?s[r]=n:Object.defineProperty(s,r,{enumerable:i,value:n})}isContextual(t){return this.state.type===t&&!this.state.containsEsc}isUnparsedContextual(t,r){const n=t+r.length;if(this.input.slice(t,n)===r){const i=this.input.charCodeAt(n);return!(Fi(i)||(i&64512)===55296)}return!1}isLookaheadContextual(t){const r=this.nextTokenStart();return this.isUnparsedContextual(r,t)}eatContextual(t){return this.isContextual(t)?(this.next(),!0):!1}expectContextual(t,r){if(!this.eatContextual(t)){if(r!=null)throw this.raise(r,this.state.startLoc);this.unexpected(null,t)}}canInsertSemicolon(){return this.match(139)||this.match(8)||this.hasPrecedingLineBreak()}hasPrecedingLineBreak(){return rh(this.input,this.state.lastTokEndLoc.index,this.state.start)}hasFollowingLineBreak(){return rh(this.input,this.state.end,this.nextTokenStart())}isLineTerminator(){return this.eat(13)||this.canInsertSemicolon()}semicolon(t=!0){(t?this.isLineTerminator():this.eat(13))||this.raise(ee.MissingSemicolon,this.state.lastTokEndLoc)}expect(t,r){this.eat(t)||this.unexpected(r,t)}tryParse(t,r=this.state.clone()){const n={node:null};try{const i=t((s=null)=>{throw n.node=s,n});if(this.state.errors.length>r.errors.length){const s=this.state;return this.state=r,this.state.tokensLength=s.tokensLength,{node:i,error:s.errors[r.errors.length],thrown:!1,aborted:!1,failState:s}}return{node:i,error:null,thrown:!1,aborted:!1,failState:null}}catch(i){const s=this.state;if(this.state=r,i instanceof SyntaxError)return{node:null,error:i,thrown:!0,aborted:!1,failState:s};if(i===n)return{node:n.node,error:null,thrown:!1,aborted:!0,failState:s};throw i}}checkExpressionErrors(t,r){if(!t)return!1;const{shorthandAssignLoc:n,doubleProtoLoc:i,privateKeyLoc:s,optionalParametersLoc:a}=t,o=!!n||!!i||!!a||!!s;if(!r)return o;n!=null&&this.raise(ee.InvalidCoverInitializedName,n),i!=null&&this.raise(ee.DuplicateProto,i),s!=null&&this.raise(ee.UnexpectedPrivateField,s),a!=null&&this.unexpected(a)}isLiteralPropertyName(){return A0(this.state.type)}isPrivateName(t){return t.type==="PrivateName"}getPrivateNameSV(t){return t.id.name}hasPropertyAsPrivateName(t){return(t.type==="MemberExpression"||t.type==="OptionalMemberExpression")&&this.isPrivateName(t.property)}isObjectProperty(t){return t.type==="ObjectProperty"}isObjectMethod(t){return t.type==="ObjectMethod"}initializeScopes(t=this.options.sourceType==="module"){const r=this.state.labels;this.state.labels=[];const n=this.exportedIdentifiers;this.exportedIdentifiers=new Set;const i=this.inModule;this.inModule=t;const s=this.scope,a=this.getScopeHandler();this.scope=new a(this,t);const o=this.prodParam;this.prodParam=new Rw;const u=this.classScope;this.classScope=new Ow(this);const l=this.expressionScope;return this.expressionScope=new Nw(this),()=>{this.state.labels=r,this.exportedIdentifiers=n,this.inModule=i,this.scope=s,this.prodParam=o,this.classScope=u,this.expressionScope=l}}enterInitialScopes(){let t=0;this.inModule&&(t|=2),this.scope.enter(1),this.prodParam.enter(t)}checkDestructuringPrivate(t){const{privateKeyLoc:r}=t;r!==null&&this.expectPlugin("destructuringPrivate",r)}}class eo{constructor(){this.shorthandAssignLoc=null,this.doubleProtoLoc=null,this.privateKeyLoc=null,this.optionalParametersLoc=null}}class Eo{constructor(t,r,n){this.type="",this.start=r,this.end=0,this.loc=new Do(n),t!=null&&t.options.ranges&&(this.range=[r,0]),t!=null&&t.filename&&(this.loc.filename=t.filename)}}const Jc=Eo.prototype;Jc.__clone=function(){const e=new Eo(void 0,this.start,this.loc.start),t=Object.keys(this);for(let r=0,n=t.length;r<n;r++){const i=t[r];i!=="leadingComments"&&i!=="trailingComments"&&i!=="innerComments"&&(e[i]=this[i])}return e};function jw(e){return Xr(e)}function Xr(e){const{type:t,start:r,end:n,loc:i,range:s,extra:a,name:o}=e,u=Object.create(Jc);return u.type=t,u.start=r,u.end=n,u.loc=i,u.range=s,u.extra=a,u.name=o,t==="Placeholder"&&(u.expectedNode=e.expectedNode),u}function $w(e){const{type:t,start:r,end:n,loc:i,range:s,extra:a}=e;if(t==="Placeholder")return jw(e);const o=Object.create(Jc);return o.type=t,o.start=r,o.end=n,o.loc=i,o.range=s,e.raw!==void 0?o.raw=e.raw:o.extra=a,o.value=e.value,o}class Uw extends Mw{startNode(){const t=this.state.startLoc;return new Eo(this,t.index,t)}startNodeAt(t){return new Eo(this,t.index,t)}startNodeAtNode(t){return this.startNodeAt(t.loc.start)}finishNode(t,r){return this.finishNodeAt(t,r,this.state.lastTokEndLoc)}finishNodeAt(t,r,n){return t.type=r,t.end=n.index,t.loc.end=n,this.options.ranges&&(t.range[1]=n.index),this.options.attachComment&&this.processComment(t),t}resetStartLocation(t,r){t.start=r.index,t.loc.start=r,this.options.ranges&&(t.range[0]=r.index)}resetEndLocation(t,r=this.state.lastTokEndLoc){t.end=r.index,t.loc.end=r,this.options.ranges&&(t.range[1]=r.index)}resetStartLocationFromNode(t,r){this.resetStartLocation(t,r.loc.start)}}const Vw=new Set(["_","any","bool","boolean","empty","extends","false","interface","mixed","null","number","static","string","true","typeof","void"]),ke=Gr`flow`({AmbiguousConditionalArrow:"Ambiguous expression: wrap the arrow functions in parentheses to disambiguate.",AmbiguousDeclareModuleKind:"Found both `declare module.exports` and `declare export` in the same module. Modules can only have 1 since they are either an ES module or they are a CommonJS module.",AssignReservedType:({reservedType:e})=>`Cannot overwrite reserved type ${e}.`,DeclareClassElement:"The `declare` modifier can only appear on class fields.",DeclareClassFieldInitializer:"Initializers are not allowed in fields with the `declare` modifier.",DuplicateDeclareModuleExports:"Duplicate `declare module.exports` statement.",EnumBooleanMemberNotInitialized:({memberName:e,enumName:t})=>`Boolean enum members need to be initialized. Use either \`${e} = true,\` or \`${e} = false,\` in enum \`${t}\`.`,EnumDuplicateMemberName:({memberName:e,enumName:t})=>`Enum member names need to be unique, but the name \`${e}\` has already been used before in enum \`${t}\`.`,EnumInconsistentMemberValues:({enumName:e})=>`Enum \`${e}\` has inconsistent member initializers. Either use no initializers, or consistently use literals (either booleans, numbers, or strings) for all member initializers.`,EnumInvalidExplicitType:({invalidEnumType:e,enumName:t})=>`Enum type \`${e}\` is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${t}\`.`,EnumInvalidExplicitTypeUnknownSupplied:({enumName:e})=>`Supplied enum type is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${e}\`.`,EnumInvalidMemberInitializerPrimaryType:({enumName:e,memberName:t,explicitType:r})=>`Enum \`${e}\` has type \`${r}\`, so the initializer of \`${t}\` needs to be a ${r} literal.`,EnumInvalidMemberInitializerSymbolType:({enumName:e,memberName:t})=>`Symbol enum members cannot be initialized. Use \`${t},\` in enum \`${e}\`.`,EnumInvalidMemberInitializerUnknownType:({enumName:e,memberName:t})=>`The enum member initializer for \`${t}\` needs to be a literal (either a boolean, number, or string) in enum \`${e}\`.`,EnumInvalidMemberName:({enumName:e,memberName:t,suggestion:r})=>`Enum member names cannot start with lowercase 'a' through 'z'. Instead of using \`${t}\`, consider using \`${r}\`, in enum \`${e}\`.`,EnumNumberMemberNotInitialized:({enumName:e,memberName:t})=>`Number enum members need to be initialized, e.g. \`${t} = 1\` in enum \`${e}\`.`,EnumStringMemberInconsistentlyInitialized:({enumName:e})=>`String enum members need to consistently either all use initializers, or use no initializers, in enum \`${e}\`.`,GetterMayNotHaveThisParam:"A getter cannot have a `this` parameter.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` or `typeof` keyword.",ImportTypeShorthandOnlyInPureImport:"The `type` and `typeof` keywords on named imports can only be used on regular `import` statements. It cannot be used with `import type` or `import typeof` statements.",InexactInsideExact:"Explicit inexact syntax cannot appear inside an explicit exact object type.",InexactInsideNonObject:"Explicit inexact syntax cannot appear in class or interface definitions.",InexactVariance:"Explicit inexact syntax cannot have variance.",InvalidNonTypeImportInDeclareModule:"Imports within a `declare module` body must always be `import type` or `import typeof`.",MissingTypeParamDefault:"Type parameter declaration needs a default, since a preceding type parameter declaration has a default.",NestedDeclareModule:"`declare module` cannot be used inside another `declare module`.",NestedFlowComment:"Cannot have a flow comment inside another flow comment.",PatternIsOptional:Object.assign({message:"A binding pattern parameter cannot be optional in an implementation signature."},{reasonCode:"OptionalBindingPattern"}),SetterMayNotHaveThisParam:"A setter cannot have a `this` parameter.",SpreadVariance:"Spread properties cannot have variance.",ThisParamAnnotationRequired:"A type annotation is required for the `this` parameter.",ThisParamBannedInConstructor:"Constructors cannot have a `this` parameter; constructors don't bind `this` like other functions.",ThisParamMayNotBeOptional:"The `this` parameter cannot be optional.",ThisParamMustBeFirst:"The `this` parameter must be the first function parameter.",ThisParamNoDefault:"The `this` parameter may not have a default value.",TypeBeforeInitializer:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeCastInPattern:"The type cast expression is expected to be wrapped with parenthesis.",UnexpectedExplicitInexactInObject:"Explicit inexact syntax must appear at the end of an inexact object.",UnexpectedReservedType:({reservedType:e})=>`Unexpected reserved type ${e}.`,UnexpectedReservedUnderscore:"`_` is only allowed as a type argument to call or new.",UnexpectedSpaceBetweenModuloChecks:"Spaces between `%` and `checks` are not allowed here.",UnexpectedSpreadType:"Spread operator cannot appear in class or interface definitions.",UnexpectedSubtractionOperand:'Unexpected token, expected "number" or "bigint".',UnexpectedTokenAfterTypeParameter:"Expected an arrow function after this type parameter declaration.",UnexpectedTypeParameterBeforeAsyncArrowFunction:"Type parameters must come after the async keyword, e.g. instead of `<T> async () => {}`, use `async <T>() => {}`.",UnsupportedDeclareExportKind:({unsupportedExportKind:e,suggestion:t})=>`\`declare export ${e}\` is not supported. Use \`${t}\` instead.`,UnsupportedStatementInDeclareModule:"Only declares and type imports are allowed inside declare module.",UnterminatedFlowComment:"Unterminated flow-comment."});function qw(e){return e.type==="DeclareExportAllDeclaration"||e.type==="DeclareExportDeclaration"&&(!e.declaration||e.declaration.type!=="TypeAlias"&&e.declaration.type!=="InterfaceDeclaration")}function sh(e){return e.importKind==="type"||e.importKind==="typeof"}const Kw={const:"declare export var",let:"declare export var",type:"export type",interface:"export interface"};function Ww(e,t){const r=[],n=[];for(let i=0;i<e.length;i++)(t(e[i],i,e)?r:n).push(e[i]);return[r,n]}const Hw=/\*?\s*@((?:no)?flow)\b/;var Gw=e=>class extends e{constructor(...r){super(...r),this.flowPragma=void 0}getScopeHandler(){return bw}shouldParseTypes(){return this.getPluginOption("flow","all")||this.flowPragma==="flow"}shouldParseEnums(){return!!this.getPluginOption("flow","enums")}finishToken(r,n){r!==133&&r!==13&&r!==28&&this.flowPragma===void 0&&(this.flowPragma=null),super.finishToken(r,n)}addComment(r){if(this.flowPragma===void 0){const n=Hw.exec(r.value);if(n)if(n[1]==="flow")this.flowPragma="flow";else if(n[1]==="noflow")this.flowPragma="noflow";else throw new Error("Unexpected flow pragma")}super.addComment(r)}flowParseTypeInitialiser(r){const n=this.state.inType;this.state.inType=!0,this.expect(r||14);const i=this.flowParseType();return this.state.inType=n,i}flowParsePredicate(){const r=this.startNode(),n=this.state.startLoc;return this.next(),this.expectContextual(110),this.state.lastTokStartLoc.index>n.index+1&&this.raise(ke.UnexpectedSpaceBetweenModuloChecks,n),this.eat(10)?(r.value=super.parseExpression(),this.expect(11),this.finishNode(r,"DeclaredPredicate")):this.finishNode(r,"InferredPredicate")}flowParseTypeAndPredicateInitialiser(){const r=this.state.inType;this.state.inType=!0,this.expect(14);let n=null,i=null;return this.match(54)?(this.state.inType=r,i=this.flowParsePredicate()):(n=this.flowParseType(),this.state.inType=r,this.match(54)&&(i=this.flowParsePredicate())),[n,i]}flowParseDeclareClass(r){return this.next(),this.flowParseInterfaceish(r,!0),this.finishNode(r,"DeclareClass")}flowParseDeclareFunction(r){this.next();const n=r.id=this.parseIdentifier(),i=this.startNode(),s=this.startNode();this.match(47)?i.typeParameters=this.flowParseTypeParameterDeclaration():i.typeParameters=null,this.expect(10);const a=this.flowParseFunctionTypeParams();return i.params=a.params,i.rest=a.rest,i.this=a._this,this.expect(11),[i.returnType,r.predicate]=this.flowParseTypeAndPredicateInitialiser(),s.typeAnnotation=this.finishNode(i,"FunctionTypeAnnotation"),n.typeAnnotation=this.finishNode(s,"TypeAnnotation"),this.resetEndLocation(n),this.semicolon(),this.scope.declareName(r.id.name,2048,r.id.loc.start),this.finishNode(r,"DeclareFunction")}flowParseDeclare(r,n){if(this.match(80))return this.flowParseDeclareClass(r);if(this.match(68))return this.flowParseDeclareFunction(r);if(this.match(74))return this.flowParseDeclareVariable(r);if(this.eatContextual(127))return this.match(16)?this.flowParseDeclareModuleExports(r):(n&&this.raise(ke.NestedDeclareModule,this.state.lastTokStartLoc),this.flowParseDeclareModule(r));if(this.isContextual(130))return this.flowParseDeclareTypeAlias(r);if(this.isContextual(131))return this.flowParseDeclareOpaqueType(r);if(this.isContextual(129))return this.flowParseDeclareInterface(r);if(this.match(82))return this.flowParseDeclareExportDeclaration(r,n);this.unexpected()}flowParseDeclareVariable(r){return this.next(),r.id=this.flowParseTypeAnnotatableIdentifier(!0),this.scope.declareName(r.id.name,5,r.id.loc.start),this.semicolon(),this.finishNode(r,"DeclareVariable")}flowParseDeclareModule(r){this.scope.enter(0),this.match(133)?r.id=super.parseExprAtom():r.id=this.parseIdentifier();const n=r.body=this.startNode(),i=n.body=[];for(this.expect(5);!this.match(8);){let o=this.startNode();this.match(83)?(this.next(),!this.isContextual(130)&&!this.match(87)&&this.raise(ke.InvalidNonTypeImportInDeclareModule,this.state.lastTokStartLoc),super.parseImport(o)):(this.expectContextual(125,ke.UnsupportedStatementInDeclareModule),o=this.flowParseDeclare(o,!0)),i.push(o)}this.scope.exit(),this.expect(8),this.finishNode(n,"BlockStatement");let s=null,a=!1;return i.forEach(o=>{qw(o)?(s==="CommonJS"&&this.raise(ke.AmbiguousDeclareModuleKind,o),s="ES"):o.type==="DeclareModuleExports"&&(a&&this.raise(ke.DuplicateDeclareModuleExports,o),s==="ES"&&this.raise(ke.AmbiguousDeclareModuleKind,o),s="CommonJS",a=!0)}),r.kind=s||"CommonJS",this.finishNode(r,"DeclareModule")}flowParseDeclareExportDeclaration(r,n){if(this.expect(82),this.eat(65))return this.match(68)||this.match(80)?r.declaration=this.flowParseDeclare(this.startNode()):(r.declaration=this.flowParseType(),this.semicolon()),r.default=!0,this.finishNode(r,"DeclareExportDeclaration");if(this.match(75)||this.isLet()||(this.isContextual(130)||this.isContextual(129))&&!n){const i=this.state.value;throw this.raise(ke.UnsupportedDeclareExportKind,this.state.startLoc,{unsupportedExportKind:i,suggestion:Kw[i]})}if(this.match(74)||this.match(68)||this.match(80)||this.isContextual(131))return r.declaration=this.flowParseDeclare(this.startNode()),r.default=!1,this.finishNode(r,"DeclareExportDeclaration");if(this.match(55)||this.match(5)||this.isContextual(129)||this.isContextual(130)||this.isContextual(131))return r=this.parseExport(r,null),r.type==="ExportNamedDeclaration"&&(r.type="ExportDeclaration",r.default=!1,delete r.exportKind),r.type="Declare"+r.type,r;this.unexpected()}flowParseDeclareModuleExports(r){return this.next(),this.expectContextual(111),r.typeAnnotation=this.flowParseTypeAnnotation(),this.semicolon(),this.finishNode(r,"DeclareModuleExports")}flowParseDeclareTypeAlias(r){this.next();const n=this.flowParseTypeAlias(r);return n.type="DeclareTypeAlias",n}flowParseDeclareOpaqueType(r){this.next();const n=this.flowParseOpaqueType(r,!0);return n.type="DeclareOpaqueType",n}flowParseDeclareInterface(r){return this.next(),this.flowParseInterfaceish(r,!1),this.finishNode(r,"DeclareInterface")}flowParseInterfaceish(r,n){if(r.id=this.flowParseRestrictedIdentifier(!n,!0),this.scope.declareName(r.id.name,n?17:8201,r.id.loc.start),this.match(47)?r.typeParameters=this.flowParseTypeParameterDeclaration():r.typeParameters=null,r.extends=[],this.eat(81))do r.extends.push(this.flowParseInterfaceExtends());while(!n&&this.eat(12));if(n){if(r.implements=[],r.mixins=[],this.eatContextual(117))do r.mixins.push(this.flowParseInterfaceExtends());while(this.eat(12));if(this.eatContextual(113))do r.implements.push(this.flowParseInterfaceExtends());while(this.eat(12))}r.body=this.flowParseObjectType({allowStatic:n,allowExact:!1,allowSpread:!1,allowProto:n,allowInexact:!1})}flowParseInterfaceExtends(){const r=this.startNode();return r.id=this.flowParseQualifiedTypeIdentifier(),this.match(47)?r.typeParameters=this.flowParseTypeParameterInstantiation():r.typeParameters=null,this.finishNode(r,"InterfaceExtends")}flowParseInterface(r){return this.flowParseInterfaceish(r,!1),this.finishNode(r,"InterfaceDeclaration")}checkNotUnderscore(r){r==="_"&&this.raise(ke.UnexpectedReservedUnderscore,this.state.startLoc)}checkReservedType(r,n,i){Vw.has(r)&&this.raise(i?ke.AssignReservedType:ke.UnexpectedReservedType,n,{reservedType:r})}flowParseRestrictedIdentifier(r,n){return this.checkReservedType(this.state.value,this.state.startLoc,n),this.parseIdentifier(r)}flowParseTypeAlias(r){return r.id=this.flowParseRestrictedIdentifier(!1,!0),this.scope.declareName(r.id.name,8201,r.id.loc.start),this.match(47)?r.typeParameters=this.flowParseTypeParameterDeclaration():r.typeParameters=null,r.right=this.flowParseTypeInitialiser(29),this.semicolon(),this.finishNode(r,"TypeAlias")}flowParseOpaqueType(r,n){return this.expectContextual(130),r.id=this.flowParseRestrictedIdentifier(!0,!0),this.scope.declareName(r.id.name,8201,r.id.loc.start),this.match(47)?r.typeParameters=this.flowParseTypeParameterDeclaration():r.typeParameters=null,r.supertype=null,this.match(14)&&(r.supertype=this.flowParseTypeInitialiser(14)),r.impltype=null,n||(r.impltype=this.flowParseTypeInitialiser(29)),this.semicolon(),this.finishNode(r,"OpaqueType")}flowParseTypeParameter(r=!1){const n=this.state.startLoc,i=this.startNode(),s=this.flowParseVariance(),a=this.flowParseTypeAnnotatableIdentifier();return i.name=a.name,i.variance=s,i.bound=a.typeAnnotation,this.match(29)?(this.eat(29),i.default=this.flowParseType()):r&&this.raise(ke.MissingTypeParamDefault,n),this.finishNode(i,"TypeParameter")}flowParseTypeParameterDeclaration(){const r=this.state.inType,n=this.startNode();n.params=[],this.state.inType=!0,this.match(47)||this.match(142)?this.next():this.unexpected();let i=!1;do{const s=this.flowParseTypeParameter(i);n.params.push(s),s.default&&(i=!0),this.match(48)||this.expect(12)}while(!this.match(48));return this.expect(48),this.state.inType=r,this.finishNode(n,"TypeParameterDeclaration")}flowParseTypeParameterInstantiation(){const r=this.startNode(),n=this.state.inType;r.params=[],this.state.inType=!0,this.expect(47);const i=this.state.noAnonFunctionType;for(this.state.noAnonFunctionType=!1;!this.match(48);)r.params.push(this.flowParseType()),this.match(48)||this.expect(12);return this.state.noAnonFunctionType=i,this.expect(48),this.state.inType=n,this.finishNode(r,"TypeParameterInstantiation")}flowParseTypeParameterInstantiationCallOrNew(){const r=this.startNode(),n=this.state.inType;for(r.params=[],this.state.inType=!0,this.expect(47);!this.match(48);)r.params.push(this.flowParseTypeOrImplicitInstantiation()),this.match(48)||this.expect(12);return this.expect(48),this.state.inType=n,this.finishNode(r,"TypeParameterInstantiation")}flowParseInterfaceType(){const r=this.startNode();if(this.expectContextual(129),r.extends=[],this.eat(81))do r.extends.push(this.flowParseInterfaceExtends());while(this.eat(12));return r.body=this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!1,allowProto:!1,allowInexact:!1}),this.finishNode(r,"InterfaceTypeAnnotation")}flowParseObjectPropertyKey(){return this.match(134)||this.match(133)?super.parseExprAtom():this.parseIdentifier(!0)}flowParseObjectTypeIndexer(r,n,i){return r.static=n,this.lookahead().type===14?(r.id=this.flowParseObjectPropertyKey(),r.key=this.flowParseTypeInitialiser()):(r.id=null,r.key=this.flowParseType()),this.expect(3),r.value=this.flowParseTypeInitialiser(),r.variance=i,this.finishNode(r,"ObjectTypeIndexer")}flowParseObjectTypeInternalSlot(r,n){return r.static=n,r.id=this.flowParseObjectPropertyKey(),this.expect(3),this.expect(3),this.match(47)||this.match(10)?(r.method=!0,r.optional=!1,r.value=this.flowParseObjectTypeMethodish(this.startNodeAt(r.loc.start))):(r.method=!1,this.eat(17)&&(r.optional=!0),r.value=this.flowParseTypeInitialiser()),this.finishNode(r,"ObjectTypeInternalSlot")}flowParseObjectTypeMethodish(r){for(r.params=[],r.rest=null,r.typeParameters=null,r.this=null,this.match(47)&&(r.typeParameters=this.flowParseTypeParameterDeclaration()),this.expect(10),this.match(78)&&(r.this=this.flowParseFunctionTypeParam(!0),r.this.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)r.params.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(r.rest=this.flowParseFunctionTypeParam(!1)),this.expect(11),r.returnType=this.flowParseTypeInitialiser(),this.finishNode(r,"FunctionTypeAnnotation")}flowParseObjectTypeCallProperty(r,n){const i=this.startNode();return r.static=n,r.value=this.flowParseObjectTypeMethodish(i),this.finishNode(r,"ObjectTypeCallProperty")}flowParseObjectType({allowStatic:r,allowExact:n,allowSpread:i,allowProto:s,allowInexact:a}){const o=this.state.inType;this.state.inType=!0;const u=this.startNode();u.callProperties=[],u.properties=[],u.indexers=[],u.internalSlots=[];let l,c,f=!1;for(n&&this.match(6)?(this.expect(6),l=9,c=!0):(this.expect(5),l=8,c=!1),u.exact=c;!this.match(l);){let h=!1,d=null,m=null;const D=this.startNode();if(s&&this.isContextual(118)){const y=this.lookahead();y.type!==14&&y.type!==17&&(this.next(),d=this.state.startLoc,r=!1)}if(r&&this.isContextual(106)){const y=this.lookahead();y.type!==14&&y.type!==17&&(this.next(),h=!0)}const g=this.flowParseVariance();if(this.eat(0))d!=null&&this.unexpected(d),this.eat(0)?(g&&this.unexpected(g.loc.start),u.internalSlots.push(this.flowParseObjectTypeInternalSlot(D,h))):u.indexers.push(this.flowParseObjectTypeIndexer(D,h,g));else if(this.match(10)||this.match(47))d!=null&&this.unexpected(d),g&&this.unexpected(g.loc.start),u.callProperties.push(this.flowParseObjectTypeCallProperty(D,h));else{let y="init";if(this.isContextual(99)||this.isContextual(104)){const O=this.lookahead();A0(O.type)&&(y=this.state.value,this.next())}const b=this.flowParseObjectTypeProperty(D,h,d,g,y,i,a??!c);b===null?(f=!0,m=this.state.lastTokStartLoc):u.properties.push(b)}this.flowObjectTypeSemicolon(),m&&!this.match(8)&&!this.match(9)&&this.raise(ke.UnexpectedExplicitInexactInObject,m)}this.expect(l),i&&(u.inexact=f);const p=this.finishNode(u,"ObjectTypeAnnotation");return this.state.inType=o,p}flowParseObjectTypeProperty(r,n,i,s,a,o,u){if(this.eat(21))return this.match(12)||this.match(13)||this.match(8)||this.match(9)?(o?u||this.raise(ke.InexactInsideExact,this.state.lastTokStartLoc):this.raise(ke.InexactInsideNonObject,this.state.lastTokStartLoc),s&&this.raise(ke.InexactVariance,s),null):(o||this.raise(ke.UnexpectedSpreadType,this.state.lastTokStartLoc),i!=null&&this.unexpected(i),s&&this.raise(ke.SpreadVariance,s),r.argument=this.flowParseType(),this.finishNode(r,"ObjectTypeSpreadProperty"));{r.key=this.flowParseObjectPropertyKey(),r.static=n,r.proto=i!=null,r.kind=a;let l=!1;return this.match(47)||this.match(10)?(r.method=!0,i!=null&&this.unexpected(i),s&&this.unexpected(s.loc.start),r.value=this.flowParseObjectTypeMethodish(this.startNodeAt(r.loc.start)),(a==="get"||a==="set")&&this.flowCheckGetterSetterParams(r),!o&&r.key.name==="constructor"&&r.value.this&&this.raise(ke.ThisParamBannedInConstructor,r.value.this)):(a!=="init"&&this.unexpected(),r.method=!1,this.eat(17)&&(l=!0),r.value=this.flowParseTypeInitialiser(),r.variance=s),r.optional=l,this.finishNode(r,"ObjectTypeProperty")}}flowCheckGetterSetterParams(r){const n=r.kind==="get"?0:1,i=r.value.params.length+(r.value.rest?1:0);r.value.this&&this.raise(r.kind==="get"?ke.GetterMayNotHaveThisParam:ke.SetterMayNotHaveThisParam,r.value.this),i!==n&&this.raise(r.kind==="get"?ee.BadGetterArity:ee.BadSetterArity,r),r.kind==="set"&&r.value.rest&&this.raise(ee.BadSetterRestParameter,r)}flowObjectTypeSemicolon(){!this.eat(13)&&!this.eat(12)&&!this.match(8)&&!this.match(9)&&this.unexpected()}flowParseQualifiedTypeIdentifier(r,n){var i;(i=r)!=null||(r=this.state.startLoc);let s=n||this.flowParseRestrictedIdentifier(!0);for(;this.eat(16);){const a=this.startNodeAt(r);a.qualification=s,a.id=this.flowParseRestrictedIdentifier(!0),s=this.finishNode(a,"QualifiedTypeIdentifier")}return s}flowParseGenericType(r,n){const i=this.startNodeAt(r);return i.typeParameters=null,i.id=this.flowParseQualifiedTypeIdentifier(r,n),this.match(47)&&(i.typeParameters=this.flowParseTypeParameterInstantiation()),this.finishNode(i,"GenericTypeAnnotation")}flowParseTypeofType(){const r=this.startNode();return this.expect(87),r.argument=this.flowParsePrimaryType(),this.finishNode(r,"TypeofTypeAnnotation")}flowParseTupleType(){const r=this.startNode();for(r.types=[],this.expect(0);this.state.pos<this.length&&!this.match(3)&&(r.types.push(this.flowParseType()),!this.match(3));)this.expect(12);return this.expect(3),this.finishNode(r,"TupleTypeAnnotation")}flowParseFunctionTypeParam(r){let n=null,i=!1,s=null;const a=this.startNode(),o=this.lookahead(),u=this.state.type===78;return o.type===14||o.type===17?(u&&!r&&this.raise(ke.ThisParamMustBeFirst,a),n=this.parseIdentifier(u),this.eat(17)&&(i=!0,u&&this.raise(ke.ThisParamMayNotBeOptional,a)),s=this.flowParseTypeInitialiser()):s=this.flowParseType(),a.name=n,a.optional=i,a.typeAnnotation=s,this.finishNode(a,"FunctionTypeParam")}reinterpretTypeAsFunctionTypeParam(r){const n=this.startNodeAt(r.loc.start);return n.name=null,n.optional=!1,n.typeAnnotation=r,this.finishNode(n,"FunctionTypeParam")}flowParseFunctionTypeParams(r=[]){let n=null,i=null;for(this.match(78)&&(i=this.flowParseFunctionTypeParam(!0),i.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)r.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(n=this.flowParseFunctionTypeParam(!1)),{params:r,rest:n,_this:i}}flowIdentToTypeAnnotation(r,n,i){switch(i.name){case"any":return this.finishNode(n,"AnyTypeAnnotation");case"bool":case"boolean":return this.finishNode(n,"BooleanTypeAnnotation");case"mixed":return this.finishNode(n,"MixedTypeAnnotation");case"empty":return this.finishNode(n,"EmptyTypeAnnotation");case"number":return this.finishNode(n,"NumberTypeAnnotation");case"string":return this.finishNode(n,"StringTypeAnnotation");case"symbol":return this.finishNode(n,"SymbolTypeAnnotation");default:return this.checkNotUnderscore(i.name),this.flowParseGenericType(r,i)}}flowParsePrimaryType(){const r=this.state.startLoc,n=this.startNode();let i,s,a=!1;const o=this.state.noAnonFunctionType;switch(this.state.type){case 5:return this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!0,allowProto:!1,allowInexact:!0});case 6:return this.flowParseObjectType({allowStatic:!1,allowExact:!0,allowSpread:!0,allowProto:!1,allowInexact:!1});case 0:return this.state.noAnonFunctionType=!1,s=this.flowParseTupleType(),this.state.noAnonFunctionType=o,s;case 47:{const u=this.startNode();return u.typeParameters=this.flowParseTypeParameterDeclaration(),this.expect(10),i=this.flowParseFunctionTypeParams(),u.params=i.params,u.rest=i.rest,u.this=i._this,this.expect(11),this.expect(19),u.returnType=this.flowParseType(),this.finishNode(u,"FunctionTypeAnnotation")}case 10:{const u=this.startNode();if(this.next(),!this.match(11)&&!this.match(21))if(at(this.state.type)||this.match(78)){const l=this.lookahead().type;a=l!==17&&l!==14}else a=!0;if(a){if(this.state.noAnonFunctionType=!1,s=this.flowParseType(),this.state.noAnonFunctionType=o,this.state.noAnonFunctionType||!(this.match(12)||this.match(11)&&this.lookahead().type===19))return this.expect(11),s;this.eat(12)}return s?i=this.flowParseFunctionTypeParams([this.reinterpretTypeAsFunctionTypeParam(s)]):i=this.flowParseFunctionTypeParams(),u.params=i.params,u.rest=i.rest,u.this=i._this,this.expect(11),this.expect(19),u.returnType=this.flowParseType(),u.typeParameters=null,this.finishNode(u,"FunctionTypeAnnotation")}case 133:return this.parseLiteral(this.state.value,"StringLiteralTypeAnnotation");case 85:case 86:return n.value=this.match(85),this.next(),this.finishNode(n,"BooleanLiteralTypeAnnotation");case 53:if(this.state.value==="-"){if(this.next(),this.match(134))return this.parseLiteralAtNode(-this.state.value,"NumberLiteralTypeAnnotation",n);if(this.match(135))return this.parseLiteralAtNode(-this.state.value,"BigIntLiteralTypeAnnotation",n);throw this.raise(ke.UnexpectedSubtractionOperand,this.state.startLoc)}this.unexpected();return;case 134:return this.parseLiteral(this.state.value,"NumberLiteralTypeAnnotation");case 135:return this.parseLiteral(this.state.value,"BigIntLiteralTypeAnnotation");case 88:return this.next(),this.finishNode(n,"VoidTypeAnnotation");case 84:return this.next(),this.finishNode(n,"NullLiteralTypeAnnotation");case 78:return this.next(),this.finishNode(n,"ThisTypeAnnotation");case 55:return this.next(),this.finishNode(n,"ExistsTypeAnnotation");case 87:return this.flowParseTypeofType();default:if(Kc(this.state.type)){const u=bn(this.state.type);return this.next(),super.createIdentifier(n,u)}else if(at(this.state.type))return this.isContextual(129)?this.flowParseInterfaceType():this.flowIdentToTypeAnnotation(r,n,this.parseIdentifier())}this.unexpected()}flowParsePostfixType(){const r=this.state.startLoc;let n=this.flowParsePrimaryType(),i=!1;for(;(this.match(0)||this.match(18))&&!this.canInsertSemicolon();){const s=this.startNodeAt(r),a=this.eat(18);i=i||a,this.expect(0),!a&&this.match(3)?(s.elementType=n,this.next(),n=this.finishNode(s,"ArrayTypeAnnotation")):(s.objectType=n,s.indexType=this.flowParseType(),this.expect(3),i?(s.optional=a,n=this.finishNode(s,"OptionalIndexedAccessType")):n=this.finishNode(s,"IndexedAccessType"))}return n}flowParsePrefixType(){const r=this.startNode();return this.eat(17)?(r.typeAnnotation=this.flowParsePrefixType(),this.finishNode(r,"NullableTypeAnnotation")):this.flowParsePostfixType()}flowParseAnonFunctionWithoutParens(){const r=this.flowParsePrefixType();if(!this.state.noAnonFunctionType&&this.eat(19)){const n=this.startNodeAt(r.loc.start);return n.params=[this.reinterpretTypeAsFunctionTypeParam(r)],n.rest=null,n.this=null,n.returnType=this.flowParseType(),n.typeParameters=null,this.finishNode(n,"FunctionTypeAnnotation")}return r}flowParseIntersectionType(){const r=this.startNode();this.eat(45);const n=this.flowParseAnonFunctionWithoutParens();for(r.types=[n];this.eat(45);)r.types.push(this.flowParseAnonFunctionWithoutParens());return r.types.length===1?n:this.finishNode(r,"IntersectionTypeAnnotation")}flowParseUnionType(){const r=this.startNode();this.eat(43);const n=this.flowParseIntersectionType();for(r.types=[n];this.eat(43);)r.types.push(this.flowParseIntersectionType());return r.types.length===1?n:this.finishNode(r,"UnionTypeAnnotation")}flowParseType(){const r=this.state.inType;this.state.inType=!0;const n=this.flowParseUnionType();return this.state.inType=r,n}flowParseTypeOrImplicitInstantiation(){if(this.state.type===132&&this.state.value==="_"){const r=this.state.startLoc,n=this.parseIdentifier();return this.flowParseGenericType(r,n)}else return this.flowParseType()}flowParseTypeAnnotation(){const r=this.startNode();return r.typeAnnotation=this.flowParseTypeInitialiser(),this.finishNode(r,"TypeAnnotation")}flowParseTypeAnnotatableIdentifier(r){const n=r?this.parseIdentifier():this.flowParseRestrictedIdentifier();return this.match(14)&&(n.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(n)),n}typeCastToParameter(r){return r.expression.typeAnnotation=r.typeAnnotation,this.resetEndLocation(r.expression,r.typeAnnotation.loc.end),r.expression}flowParseVariance(){let r=null;return this.match(53)?(r=this.startNode(),this.state.value==="+"?r.kind="plus":r.kind="minus",this.next(),this.finishNode(r,"Variance")):r}parseFunctionBody(r,n,i=!1){if(n){this.forwardNoArrowParamsConversionAt(r,()=>super.parseFunctionBody(r,!0,i));return}super.parseFunctionBody(r,!1,i)}parseFunctionBodyAndFinish(r,n,i=!1){if(this.match(14)){const s=this.startNode();[s.typeAnnotation,r.predicate]=this.flowParseTypeAndPredicateInitialiser(),r.returnType=s.typeAnnotation?this.finishNode(s,"TypeAnnotation"):null}return super.parseFunctionBodyAndFinish(r,n,i)}parseStatementLike(r){if(this.state.strict&&this.isContextual(129)){const i=this.lookahead();if(dr(i.type)){const s=this.startNode();return this.next(),this.flowParseInterface(s)}}else if(this.shouldParseEnums()&&this.isContextual(126)){const i=this.startNode();return this.next(),this.flowParseEnumDeclaration(i)}const n=super.parseStatementLike(r);return this.flowPragma===void 0&&!this.isValidDirective(n)&&(this.flowPragma=null),n}parseExpressionStatement(r,n,i){if(n.type==="Identifier"){if(n.name==="declare"){if(this.match(80)||at(this.state.type)||this.match(68)||this.match(74)||this.match(82))return this.flowParseDeclare(r)}else if(at(this.state.type)){if(n.name==="interface")return this.flowParseInterface(r);if(n.name==="type")return this.flowParseTypeAlias(r);if(n.name==="opaque")return this.flowParseOpaqueType(r,!1)}}return super.parseExpressionStatement(r,n,i)}shouldParseExportDeclaration(){const{type:r}=this.state;return th(r)||this.shouldParseEnums()&&r===126?!this.state.containsEsc:super.shouldParseExportDeclaration()}isExportDefaultSpecifier(){const{type:r}=this.state;return th(r)||this.shouldParseEnums()&&r===126?this.state.containsEsc:super.isExportDefaultSpecifier()}parseExportDefaultExpression(){if(this.shouldParseEnums()&&this.isContextual(126)){const r=this.startNode();return this.next(),this.flowParseEnumDeclaration(r)}return super.parseExportDefaultExpression()}parseConditional(r,n,i){if(!this.match(17))return r;if(this.state.maybeInArrowParameters){const p=this.lookaheadCharCode();if(p===44||p===61||p===58||p===41)return this.setOptionalParametersError(i),r}this.expect(17);const s=this.state.clone(),a=this.state.noArrowAt,o=this.startNodeAt(n);let{consequent:u,failed:l}=this.tryParseConditionalConsequent(),[c,f]=this.getArrowLikeExpressions(u);if(l||f.length>0){const p=[...a];if(f.length>0){this.state=s,this.state.noArrowAt=p;for(let h=0;h<f.length;h++)p.push(f[h].start);({consequent:u,failed:l}=this.tryParseConditionalConsequent()),[c,f]=this.getArrowLikeExpressions(u)}l&&c.length>1&&this.raise(ke.AmbiguousConditionalArrow,s.startLoc),l&&c.length===1&&(this.state=s,p.push(c[0].start),this.state.noArrowAt=p,{consequent:u,failed:l}=this.tryParseConditionalConsequent())}return this.getArrowLikeExpressions(u,!0),this.state.noArrowAt=a,this.expect(14),o.test=r,o.consequent=u,o.alternate=this.forwardNoArrowParamsConversionAt(o,()=>this.parseMaybeAssign(void 0,void 0)),this.finishNode(o,"ConditionalExpression")}tryParseConditionalConsequent(){this.state.noArrowParamsConversionAt.push(this.state.start);const r=this.parseMaybeAssignAllowIn(),n=!this.match(14);return this.state.noArrowParamsConversionAt.pop(),{consequent:r,failed:n}}getArrowLikeExpressions(r,n){const i=[r],s=[];for(;i.length!==0;){const a=i.pop();a.type==="ArrowFunctionExpression"&&a.body.type!=="BlockStatement"?(a.typeParameters||!a.returnType?this.finishArrowValidation(a):s.push(a),i.push(a.body)):a.type==="ConditionalExpression"&&(i.push(a.consequent),i.push(a.alternate))}return n?(s.forEach(a=>this.finishArrowValidation(a)),[s,[]]):Ww(s,a=>a.params.every(o=>this.isAssignable(o,!0)))}finishArrowValidation(r){var n;this.toAssignableList(r.params,(n=r.extra)==null?void 0:n.trailingCommaLoc,!1),this.scope.enter(6),super.checkParams(r,!1,!0),this.scope.exit()}forwardNoArrowParamsConversionAt(r,n){let i;return this.state.noArrowParamsConversionAt.includes(r.start)?(this.state.noArrowParamsConversionAt.push(this.state.start),i=n(),this.state.noArrowParamsConversionAt.pop()):i=n(),i}parseParenItem(r,n){const i=super.parseParenItem(r,n);if(this.eat(17)&&(i.optional=!0,this.resetEndLocation(r)),this.match(14)){const s=this.startNodeAt(n);return s.expression=i,s.typeAnnotation=this.flowParseTypeAnnotation(),this.finishNode(s,"TypeCastExpression")}return i}assertModuleNodeAllowed(r){r.type==="ImportDeclaration"&&(r.importKind==="type"||r.importKind==="typeof")||r.type==="ExportNamedDeclaration"&&r.exportKind==="type"||r.type==="ExportAllDeclaration"&&r.exportKind==="type"||super.assertModuleNodeAllowed(r)}parseExportDeclaration(r){if(this.isContextual(130)){r.exportKind="type";const n=this.startNode();return this.next(),this.match(5)?(r.specifiers=this.parseExportSpecifiers(!0),super.parseExportFrom(r),null):this.flowParseTypeAlias(n)}else if(this.isContextual(131)){r.exportKind="type";const n=this.startNode();return this.next(),this.flowParseOpaqueType(n,!1)}else if(this.isContextual(129)){r.exportKind="type";const n=this.startNode();return this.next(),this.flowParseInterface(n)}else if(this.shouldParseEnums()&&this.isContextual(126)){r.exportKind="value";const n=this.startNode();return this.next(),this.flowParseEnumDeclaration(n)}else return super.parseExportDeclaration(r)}eatExportStar(r){return super.eatExportStar(r)?!0:this.isContextual(130)&&this.lookahead().type===55?(r.exportKind="type",this.next(),this.next(),!0):!1}maybeParseExportNamespaceSpecifier(r){const{startLoc:n}=this.state,i=super.maybeParseExportNamespaceSpecifier(r);return i&&r.exportKind==="type"&&this.unexpected(n),i}parseClassId(r,n,i){super.parseClassId(r,n,i),this.match(47)&&(r.typeParameters=this.flowParseTypeParameterDeclaration())}parseClassMember(r,n,i){const{startLoc:s}=this.state;if(this.isContextual(125)){if(super.parseClassMemberFromModifier(r,n))return;n.declare=!0}super.parseClassMember(r,n,i),n.declare&&(n.type!=="ClassProperty"&&n.type!=="ClassPrivateProperty"&&n.type!=="PropertyDefinition"?this.raise(ke.DeclareClassElement,s):n.value&&this.raise(ke.DeclareClassFieldInitializer,n.value))}isIterator(r){return r==="iterator"||r==="asyncIterator"}readIterator(){const r=super.readWord1(),n="@@"+r;(!this.isIterator(r)||!this.state.inType)&&this.raise(ee.InvalidIdentifier,this.state.curPosition(),{identifierName:n}),this.finishToken(132,n)}getTokenFromCode(r){const n=this.input.charCodeAt(this.state.pos+1);r===123&&n===124?this.finishOp(6,2):this.state.inType&&(r===62||r===60)?this.finishOp(r===62?48:47,1):this.state.inType&&r===63?n===46?this.finishOp(18,2):this.finishOp(17,1):yw(r,n,this.input.charCodeAt(this.state.pos+2))?(this.state.pos+=2,this.readIterator()):super.getTokenFromCode(r)}isAssignable(r,n){return r.type==="TypeCastExpression"?this.isAssignable(r.expression,n):super.isAssignable(r,n)}toAssignable(r,n=!1){!n&&r.type==="AssignmentExpression"&&r.left.type==="TypeCastExpression"&&(r.left=this.typeCastToParameter(r.left)),super.toAssignable(r,n)}toAssignableList(r,n,i){for(let s=0;s<r.length;s++){const a=r[s];(a==null?void 0:a.type)==="TypeCastExpression"&&(r[s]=this.typeCastToParameter(a))}super.toAssignableList(r,n,i)}toReferencedList(r,n){for(let s=0;s<r.length;s++){var i;const a=r[s];a&&a.type==="TypeCastExpression"&&!((i=a.extra)!=null&&i.parenthesized)&&(r.length>1||!n)&&this.raise(ke.TypeCastInPattern,a.typeAnnotation)}return r}parseArrayLike(r,n,i,s){const a=super.parseArrayLike(r,n,i,s);return n&&!this.state.maybeInArrowParameters&&this.toReferencedList(a.elements),a}isValidLVal(r,n,i){return r==="TypeCastExpression"||super.isValidLVal(r,n,i)}parseClassProperty(r){return this.match(14)&&(r.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassProperty(r)}parseClassPrivateProperty(r){return this.match(14)&&(r.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassPrivateProperty(r)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(14)||super.isClassProperty()}isNonstaticConstructor(r){return!this.match(14)&&super.isNonstaticConstructor(r)}pushClassMethod(r,n,i,s,a,o){if(n.variance&&this.unexpected(n.variance.loc.start),delete n.variance,this.match(47)&&(n.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassMethod(r,n,i,s,a,o),n.params&&a){const u=n.params;u.length>0&&this.isThisParam(u[0])&&this.raise(ke.ThisParamBannedInConstructor,n)}else if(n.type==="MethodDefinition"&&a&&n.value.params){const u=n.value.params;u.length>0&&this.isThisParam(u[0])&&this.raise(ke.ThisParamBannedInConstructor,n)}}pushClassPrivateMethod(r,n,i,s){n.variance&&this.unexpected(n.variance.loc.start),delete n.variance,this.match(47)&&(n.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassPrivateMethod(r,n,i,s)}parseClassSuper(r){if(super.parseClassSuper(r),r.superClass&&this.match(47)&&(r.superTypeParameters=this.flowParseTypeParameterInstantiation()),this.isContextual(113)){this.next();const n=r.implements=[];do{const i=this.startNode();i.id=this.flowParseRestrictedIdentifier(!0),this.match(47)?i.typeParameters=this.flowParseTypeParameterInstantiation():i.typeParameters=null,n.push(this.finishNode(i,"ClassImplements"))}while(this.eat(12))}}checkGetterSetterParams(r){super.checkGetterSetterParams(r);const n=this.getObjectOrClassMethodParams(r);if(n.length>0){const i=n[0];this.isThisParam(i)&&r.kind==="get"?this.raise(ke.GetterMayNotHaveThisParam,i):this.isThisParam(i)&&this.raise(ke.SetterMayNotHaveThisParam,i)}}parsePropertyNamePrefixOperator(r){r.variance=this.flowParseVariance()}parseObjPropValue(r,n,i,s,a,o,u){r.variance&&this.unexpected(r.variance.loc.start),delete r.variance;let l;this.match(47)&&!o&&(l=this.flowParseTypeParameterDeclaration(),this.match(10)||this.unexpected());const c=super.parseObjPropValue(r,n,i,s,a,o,u);return l&&((c.value||c).typeParameters=l),c}parseAssignableListItemTypes(r){return this.eat(17)&&(r.type!=="Identifier"&&this.raise(ke.PatternIsOptional,r),this.isThisParam(r)&&this.raise(ke.ThisParamMayNotBeOptional,r),r.optional=!0),this.match(14)?r.typeAnnotation=this.flowParseTypeAnnotation():this.isThisParam(r)&&this.raise(ke.ThisParamAnnotationRequired,r),this.match(29)&&this.isThisParam(r)&&this.raise(ke.ThisParamNoDefault,r),this.resetEndLocation(r),r}parseMaybeDefault(r,n){const i=super.parseMaybeDefault(r,n);return i.type==="AssignmentPattern"&&i.typeAnnotation&&i.right.start<i.typeAnnotation.start&&this.raise(ke.TypeBeforeInitializer,i.typeAnnotation),i}checkImportReflection(r){super.checkImportReflection(r),r.module&&r.importKind!=="value"&&this.raise(ke.ImportReflectionHasImportType,r.specifiers[0].loc.start)}parseImportSpecifierLocal(r,n,i){n.local=sh(r)?this.flowParseRestrictedIdentifier(!0,!0):this.parseIdentifier(),r.specifiers.push(this.finishImportSpecifier(n,i))}isPotentialImportPhase(r){if(super.isPotentialImportPhase(r))return!0;if(this.isContextual(130)){if(!r)return!0;const n=this.lookaheadCharCode();return n===123||n===42}return!r&&this.isContextual(87)}applyImportPhase(r,n,i,s){if(super.applyImportPhase(r,n,i,s),n){if(!i&&this.match(65))return;r.exportKind=i==="type"?i:"value"}else i==="type"&&this.match(55)&&this.unexpected(),r.importKind=i==="type"||i==="typeof"?i:"value"}parseImportSpecifier(r,n,i,s,a){const o=r.imported;let u=null;o.type==="Identifier"&&(o.name==="type"?u="type":o.name==="typeof"&&(u="typeof"));let l=!1;if(this.isContextual(93)&&!this.isLookaheadContextual("as")){const f=this.parseIdentifier(!0);u!==null&&!dr(this.state.type)?(r.imported=f,r.importKind=u,r.local=Xr(f)):(r.imported=o,r.importKind=null,r.local=this.parseIdentifier())}else{if(u!==null&&dr(this.state.type))r.imported=this.parseIdentifier(!0),r.importKind=u;else{if(n)throw this.raise(ee.ImportBindingIsString,r,{importName:o.value});r.imported=o,r.importKind=null}this.eatContextual(93)?r.local=this.parseIdentifier():(l=!0,r.local=Xr(r.imported))}const c=sh(r);return i&&c&&this.raise(ke.ImportTypeShorthandOnlyInPureImport,r),(i||c)&&this.checkReservedType(r.local.name,r.local.loc.start,!0),l&&!i&&!c&&this.checkReservedWord(r.local.name,r.loc.start,!0,!0),this.finishImportSpecifier(r,"ImportSpecifier")}parseBindingAtom(){switch(this.state.type){case 78:return this.parseIdentifier(!0);default:return super.parseBindingAtom()}}parseFunctionParams(r,n){const i=r.kind;i!=="get"&&i!=="set"&&this.match(47)&&(r.typeParameters=this.flowParseTypeParameterDeclaration()),super.parseFunctionParams(r,n)}parseVarId(r,n){super.parseVarId(r,n),this.match(14)&&(r.id.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(r.id))}parseAsyncArrowFromCallExpression(r,n){if(this.match(14)){const i=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0,r.returnType=this.flowParseTypeAnnotation(),this.state.noAnonFunctionType=i}return super.parseAsyncArrowFromCallExpression(r,n)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}parseMaybeAssign(r,n){var i;let s=null,a;if(this.hasPlugin("jsx")&&(this.match(142)||this.match(47))){if(s=this.state.clone(),a=this.tryParse(()=>super.parseMaybeAssign(r,n),s),!a.error)return a.node;const{context:l}=this.state,c=l[l.length-1];(c===lt.j_oTag||c===lt.j_expr)&&l.pop()}if((i=a)!=null&&i.error||this.match(47)){var o,u;s=s||this.state.clone();let l;const c=this.tryParse(p=>{var h;l=this.flowParseTypeParameterDeclaration();const d=this.forwardNoArrowParamsConversionAt(l,()=>{const D=super.parseMaybeAssign(r,n);return this.resetStartLocationFromNode(D,l),D});(h=d.extra)!=null&&h.parenthesized&&p();const m=this.maybeUnwrapTypeCastExpression(d);return m.type!=="ArrowFunctionExpression"&&p(),m.typeParameters=l,this.resetStartLocationFromNode(m,l),d},s);let f=null;if(c.node&&this.maybeUnwrapTypeCastExpression(c.node).type==="ArrowFunctionExpression"){if(!c.error&&!c.aborted)return c.node.async&&this.raise(ke.UnexpectedTypeParameterBeforeAsyncArrowFunction,l),c.node;f=c.node}if((o=a)!=null&&o.node)return this.state=a.failState,a.node;if(f)return this.state=c.failState,f;throw(u=a)!=null&&u.thrown?a.error:c.thrown?c.error:this.raise(ke.UnexpectedTokenAfterTypeParameter,l)}return super.parseMaybeAssign(r,n)}parseArrow(r){if(this.match(14)){const n=this.tryParse(()=>{const i=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0;const s=this.startNode();return[s.typeAnnotation,r.predicate]=this.flowParseTypeAndPredicateInitialiser(),this.state.noAnonFunctionType=i,this.canInsertSemicolon()&&this.unexpected(),this.match(19)||this.unexpected(),s});if(n.thrown)return null;n.error&&(this.state=n.failState),r.returnType=n.node.typeAnnotation?this.finishNode(n.node,"TypeAnnotation"):null}return super.parseArrow(r)}shouldParseArrow(r){return this.match(14)||super.shouldParseArrow(r)}setArrowFunctionParameters(r,n){this.state.noArrowParamsConversionAt.includes(r.start)?r.params=n:super.setArrowFunctionParameters(r,n)}checkParams(r,n,i,s=!0){if(!(i&&this.state.noArrowParamsConversionAt.includes(r.start))){for(let a=0;a<r.params.length;a++)this.isThisParam(r.params[a])&&a>0&&this.raise(ke.ThisParamMustBeFirst,r.params[a]);super.checkParams(r,n,i,s)}}parseParenAndDistinguishExpression(r){return super.parseParenAndDistinguishExpression(r&&!this.state.noArrowAt.includes(this.state.start))}parseSubscripts(r,n,i){if(r.type==="Identifier"&&r.name==="async"&&this.state.noArrowAt.includes(n.index)){this.next();const s=this.startNodeAt(n);s.callee=r,s.arguments=super.parseCallExpressionArguments(11,!1),r=this.finishNode(s,"CallExpression")}else if(r.type==="Identifier"&&r.name==="async"&&this.match(47)){const s=this.state.clone(),a=this.tryParse(u=>this.parseAsyncArrowWithTypeParameters(n)||u(),s);if(!a.error&&!a.aborted)return a.node;const o=this.tryParse(()=>super.parseSubscripts(r,n,i),s);if(o.node&&!o.error)return o.node;if(a.node)return this.state=a.failState,a.node;if(o.node)return this.state=o.failState,o.node;throw a.error||o.error}return super.parseSubscripts(r,n,i)}parseSubscript(r,n,i,s){if(this.match(18)&&this.isLookaheadToken_lt()){if(s.optionalChainMember=!0,i)return s.stop=!0,r;this.next();const a=this.startNodeAt(n);return a.callee=r,a.typeArguments=this.flowParseTypeParameterInstantiation(),this.expect(10),a.arguments=this.parseCallExpressionArguments(11,!1),a.optional=!0,this.finishCallExpression(a,!0)}else if(!i&&this.shouldParseTypes()&&this.match(47)){const a=this.startNodeAt(n);a.callee=r;const o=this.tryParse(()=>(a.typeArguments=this.flowParseTypeParameterInstantiationCallOrNew(),this.expect(10),a.arguments=super.parseCallExpressionArguments(11,!1),s.optionalChainMember&&(a.optional=!1),this.finishCallExpression(a,s.optionalChainMember)));if(o.node)return o.error&&(this.state=o.failState),o.node}return super.parseSubscript(r,n,i,s)}parseNewCallee(r){super.parseNewCallee(r);let n=null;this.shouldParseTypes()&&this.match(47)&&(n=this.tryParse(()=>this.flowParseTypeParameterInstantiationCallOrNew()).node),r.typeArguments=n}parseAsyncArrowWithTypeParameters(r){const n=this.startNodeAt(r);if(this.parseFunctionParams(n,!1),!!this.parseArrow(n))return super.parseArrowExpression(n,void 0,!0)}readToken_mult_modulo(r){const n=this.input.charCodeAt(this.state.pos+1);if(r===42&&n===47&&this.state.hasFlowComment){this.state.hasFlowComment=!1,this.state.pos+=2,this.nextToken();return}super.readToken_mult_modulo(r)}readToken_pipe_amp(r){const n=this.input.charCodeAt(this.state.pos+1);if(r===124&&n===125){this.finishOp(9,2);return}super.readToken_pipe_amp(r)}parseTopLevel(r,n){const i=super.parseTopLevel(r,n);return this.state.hasFlowComment&&this.raise(ke.UnterminatedFlowComment,this.state.curPosition()),i}skipBlockComment(){if(this.hasPlugin("flowComments")&&this.skipFlowComment()){if(this.state.hasFlowComment)throw this.raise(ke.NestedFlowComment,this.state.startLoc);this.hasFlowCommentCompletion();const r=this.skipFlowComment();r&&(this.state.pos+=r,this.state.hasFlowComment=!0);return}return super.skipBlockComment(this.state.hasFlowComment?"*-/":"*/")}skipFlowComment(){const{pos:r}=this.state;let n=2;for(;[32,9].includes(this.input.charCodeAt(r+n));)n++;const i=this.input.charCodeAt(n+r),s=this.input.charCodeAt(n+r+1);return i===58&&s===58?n+2:this.input.slice(n+r,n+r+12)==="flow-include"?n+12:i===58&&s!==58?n:!1}hasFlowCommentCompletion(){if(this.input.indexOf("*/",this.state.pos)===-1)throw this.raise(ee.UnterminatedComment,this.state.curPosition())}flowEnumErrorBooleanMemberNotInitialized(r,{enumName:n,memberName:i}){this.raise(ke.EnumBooleanMemberNotInitialized,r,{memberName:i,enumName:n})}flowEnumErrorInvalidMemberInitializer(r,n){return this.raise(n.explicitType?n.explicitType==="symbol"?ke.EnumInvalidMemberInitializerSymbolType:ke.EnumInvalidMemberInitializerPrimaryType:ke.EnumInvalidMemberInitializerUnknownType,r,n)}flowEnumErrorNumberMemberNotInitialized(r,n){this.raise(ke.EnumNumberMemberNotInitialized,r,n)}flowEnumErrorStringMemberInconsistentlyInitialized(r,n){this.raise(ke.EnumStringMemberInconsistentlyInitialized,r,n)}flowEnumMemberInit(){const r=this.state.startLoc,n=()=>this.match(12)||this.match(8);switch(this.state.type){case 134:{const i=this.parseNumericLiteral(this.state.value);return n()?{type:"number",loc:i.loc.start,value:i}:{type:"invalid",loc:r}}case 133:{const i=this.parseStringLiteral(this.state.value);return n()?{type:"string",loc:i.loc.start,value:i}:{type:"invalid",loc:r}}case 85:case 86:{const i=this.parseBooleanLiteral(this.match(85));return n()?{type:"boolean",loc:i.loc.start,value:i}:{type:"invalid",loc:r}}default:return{type:"invalid",loc:r}}}flowEnumMemberRaw(){const r=this.state.startLoc,n=this.parseIdentifier(!0),i=this.eat(29)?this.flowEnumMemberInit():{type:"none",loc:r};return{id:n,init:i}}flowEnumCheckExplicitTypeMismatch(r,n,i){const{explicitType:s}=n;s!==null&&s!==i&&this.flowEnumErrorInvalidMemberInitializer(r,n)}flowEnumMembers({enumName:r,explicitType:n}){const i=new Set,s={booleanMembers:[],numberMembers:[],stringMembers:[],defaultedMembers:[]};let a=!1;for(;!this.match(8);){if(this.eat(21)){a=!0;break}const o=this.startNode(),{id:u,init:l}=this.flowEnumMemberRaw(),c=u.name;if(c==="")continue;/^[a-z]/.test(c)&&this.raise(ke.EnumInvalidMemberName,u,{memberName:c,suggestion:c[0].toUpperCase()+c.slice(1),enumName:r}),i.has(c)&&this.raise(ke.EnumDuplicateMemberName,u,{memberName:c,enumName:r}),i.add(c);const f={enumName:r,explicitType:n,memberName:c};switch(o.id=u,l.type){case"boolean":{this.flowEnumCheckExplicitTypeMismatch(l.loc,f,"boolean"),o.init=l.value,s.booleanMembers.push(this.finishNode(o,"EnumBooleanMember"));break}case"number":{this.flowEnumCheckExplicitTypeMismatch(l.loc,f,"number"),o.init=l.value,s.numberMembers.push(this.finishNode(o,"EnumNumberMember"));break}case"string":{this.flowEnumCheckExplicitTypeMismatch(l.loc,f,"string"),o.init=l.value,s.stringMembers.push(this.finishNode(o,"EnumStringMember"));break}case"invalid":throw this.flowEnumErrorInvalidMemberInitializer(l.loc,f);case"none":switch(n){case"boolean":this.flowEnumErrorBooleanMemberNotInitialized(l.loc,f);break;case"number":this.flowEnumErrorNumberMemberNotInitialized(l.loc,f);break;default:s.defaultedMembers.push(this.finishNode(o,"EnumDefaultedMember"))}}this.match(8)||this.expect(12)}return{members:s,hasUnknownMembers:a}}flowEnumStringMembers(r,n,{enumName:i}){if(r.length===0)return n;if(n.length===0)return r;if(n.length>r.length){for(const s of r)this.flowEnumErrorStringMemberInconsistentlyInitialized(s,{enumName:i});return n}else{for(const s of n)this.flowEnumErrorStringMemberInconsistentlyInitialized(s,{enumName:i});return r}}flowEnumParseExplicitType({enumName:r}){if(!this.eatContextual(102))return null;if(!at(this.state.type))throw this.raise(ke.EnumInvalidExplicitTypeUnknownSupplied,this.state.startLoc,{enumName:r});const{value:n}=this.state;return this.next(),n!=="boolean"&&n!=="number"&&n!=="string"&&n!=="symbol"&&this.raise(ke.EnumInvalidExplicitType,this.state.startLoc,{enumName:r,invalidEnumType:n}),n}flowEnumBody(r,n){const i=n.name,s=n.loc.start,a=this.flowEnumParseExplicitType({enumName:i});this.expect(5);const{members:o,hasUnknownMembers:u}=this.flowEnumMembers({enumName:i,explicitType:a});switch(r.hasUnknownMembers=u,a){case"boolean":return r.explicitType=!0,r.members=o.booleanMembers,this.expect(8),this.finishNode(r,"EnumBooleanBody");case"number":return r.explicitType=!0,r.members=o.numberMembers,this.expect(8),this.finishNode(r,"EnumNumberBody");case"string":return r.explicitType=!0,r.members=this.flowEnumStringMembers(o.stringMembers,o.defaultedMembers,{enumName:i}),this.expect(8),this.finishNode(r,"EnumStringBody");case"symbol":return r.members=o.defaultedMembers,this.expect(8),this.finishNode(r,"EnumSymbolBody");default:{const l=()=>(r.members=[],this.expect(8),this.finishNode(r,"EnumStringBody"));r.explicitType=!1;const c=o.booleanMembers.length,f=o.numberMembers.length,p=o.stringMembers.length,h=o.defaultedMembers.length;if(!c&&!f&&!p&&!h)return l();if(!c&&!f)return r.members=this.flowEnumStringMembers(o.stringMembers,o.defaultedMembers,{enumName:i}),this.expect(8),this.finishNode(r,"EnumStringBody");if(!f&&!p&&c>=h){for(const d of o.defaultedMembers)this.flowEnumErrorBooleanMemberNotInitialized(d.loc.start,{enumName:i,memberName:d.id.name});return r.members=o.booleanMembers,this.expect(8),this.finishNode(r,"EnumBooleanBody")}else if(!c&&!p&&f>=h){for(const d of o.defaultedMembers)this.flowEnumErrorNumberMemberNotInitialized(d.loc.start,{enumName:i,memberName:d.id.name});return r.members=o.numberMembers,this.expect(8),this.finishNode(r,"EnumNumberBody")}else return this.raise(ke.EnumInconsistentMemberValues,s,{enumName:i}),l()}}}flowParseEnumDeclaration(r){const n=this.parseIdentifier();return r.id=n,r.body=this.flowEnumBody(this.startNode(),n),this.finishNode(r,"EnumDeclaration")}isLookaheadToken_lt(){const r=this.nextTokenStart();if(this.input.charCodeAt(r)===60){const n=this.input.charCodeAt(r+1);return n!==60&&n!==61}return!1}maybeUnwrapTypeCastExpression(r){return r.type==="TypeCastExpression"?r.expression:r}};const Yw={__proto__:null,quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",ensp:" ",emsp:" ",thinsp:" ",zwnj:"",zwj:"",lrm:"",rlm:"",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",frasl:"⁄",euro:"€",image:"ℑ",weierp:"℘",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦"},Yn=Gr`jsx`({AttributeIsEmpty:"JSX attributes must only be assigned a non-empty expression.",MissingClosingTagElement:({openingTagName:e})=>`Expected corresponding JSX closing tag for <${e}>.`,MissingClosingTagFragment:"Expected corresponding JSX closing tag for <>.",UnexpectedSequenceExpression:"Sequence expressions cannot be directly nested inside JSX. Did you mean to wrap it in parentheses (...)?",UnexpectedToken:({unexpected:e,HTMLEntity:t})=>`Unexpected token \`${e}\`. Did you mean \`${t}\` or \`{'${e}'}\`?`,UnsupportedJsxValue:"JSX value should be either an expression or a quoted JSX text.",UnterminatedJsxContent:"Unterminated JSX contents.",UnwrappedAdjacentJSXElements:"Adjacent JSX elements must be wrapped in an enclosing tag. Did you want a JSX fragment <>...</>?"});function cn(e){return e?e.type==="JSXOpeningFragment"||e.type==="JSXClosingFragment":!1}function Pi(e){if(e.type==="JSXIdentifier")return e.name;if(e.type==="JSXNamespacedName")return e.namespace.name+":"+e.name.name;if(e.type==="JSXMemberExpression")return Pi(e.object)+"."+Pi(e.property);throw new Error("Node had unexpected type: "+e.type)}var Xw=e=>class extends e{jsxReadToken(){let r="",n=this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(Yn.UnterminatedJsxContent,this.state.startLoc);const i=this.input.charCodeAt(this.state.pos);switch(i){case 60:case 123:if(this.state.pos===this.state.start){i===60&&this.state.canStartJSXElement?(++this.state.pos,this.finishToken(142)):super.getTokenFromCode(i);return}r+=this.input.slice(n,this.state.pos),this.finishToken(141,r);return;case 38:r+=this.input.slice(n,this.state.pos),r+=this.jsxReadEntity(),n=this.state.pos;break;case 62:case 125:default:_i(i)?(r+=this.input.slice(n,this.state.pos),r+=this.jsxReadNewLine(!0),n=this.state.pos):++this.state.pos}}}jsxReadNewLine(r){const n=this.input.charCodeAt(this.state.pos);let i;return++this.state.pos,n===13&&this.input.charCodeAt(this.state.pos)===10?(++this.state.pos,i=r?`
|
|
112
|
+
`:`\r
|
|
113
|
+
`):i=String.fromCharCode(n),++this.state.curLine,this.state.lineStart=this.state.pos,i}jsxReadString(r){let n="",i=++this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(ee.UnterminatedString,this.state.startLoc);const s=this.input.charCodeAt(this.state.pos);if(s===r)break;s===38?(n+=this.input.slice(i,this.state.pos),n+=this.jsxReadEntity(),i=this.state.pos):_i(s)?(n+=this.input.slice(i,this.state.pos),n+=this.jsxReadNewLine(!1),i=this.state.pos):++this.state.pos}n+=this.input.slice(i,this.state.pos++),this.finishToken(133,n)}jsxReadEntity(){const r=++this.state.pos;if(this.codePointAtPos(this.state.pos)===35){++this.state.pos;let n=10;this.codePointAtPos(this.state.pos)===120&&(n=16,++this.state.pos);const i=this.readInt(n,void 0,!1,"bail");if(i!==null&&this.codePointAtPos(this.state.pos)===59)return++this.state.pos,String.fromCodePoint(i)}else{let n=0,i=!1;for(;n++<10&&this.state.pos<this.length&&!(i=this.codePointAtPos(this.state.pos)===59);)++this.state.pos;if(i){const s=this.input.slice(r,this.state.pos),a=Yw[s];if(++this.state.pos,a)return a}}return this.state.pos=r,"&"}jsxReadWord(){let r;const n=this.state.pos;do r=this.input.charCodeAt(++this.state.pos);while(Fi(r)||r===45);this.finishToken(140,this.input.slice(n,this.state.pos))}jsxParseIdentifier(){const r=this.startNode();return this.match(140)?r.name=this.state.value:Kc(this.state.type)?r.name=bn(this.state.type):this.unexpected(),this.next(),this.finishNode(r,"JSXIdentifier")}jsxParseNamespacedName(){const r=this.state.startLoc,n=this.jsxParseIdentifier();if(!this.eat(14))return n;const i=this.startNodeAt(r);return i.namespace=n,i.name=this.jsxParseIdentifier(),this.finishNode(i,"JSXNamespacedName")}jsxParseElementName(){const r=this.state.startLoc;let n=this.jsxParseNamespacedName();if(n.type==="JSXNamespacedName")return n;for(;this.eat(16);){const i=this.startNodeAt(r);i.object=n,i.property=this.jsxParseIdentifier(),n=this.finishNode(i,"JSXMemberExpression")}return n}jsxParseAttributeValue(){let r;switch(this.state.type){case 5:return r=this.startNode(),this.setContext(lt.brace),this.next(),r=this.jsxParseExpressionContainer(r,lt.j_oTag),r.expression.type==="JSXEmptyExpression"&&this.raise(Yn.AttributeIsEmpty,r),r;case 142:case 133:return this.parseExprAtom();default:throw this.raise(Yn.UnsupportedJsxValue,this.state.startLoc)}}jsxParseEmptyExpression(){const r=this.startNodeAt(this.state.lastTokEndLoc);return this.finishNodeAt(r,"JSXEmptyExpression",this.state.startLoc)}jsxParseSpreadChild(r){return this.next(),r.expression=this.parseExpression(),this.setContext(lt.j_expr),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(r,"JSXSpreadChild")}jsxParseExpressionContainer(r,n){if(this.match(8))r.expression=this.jsxParseEmptyExpression();else{const i=this.parseExpression();r.expression=i}return this.setContext(n),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(r,"JSXExpressionContainer")}jsxParseAttribute(){const r=this.startNode();return this.match(5)?(this.setContext(lt.brace),this.next(),this.expect(21),r.argument=this.parseMaybeAssignAllowIn(),this.setContext(lt.j_oTag),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(r,"JSXSpreadAttribute")):(r.name=this.jsxParseNamespacedName(),r.value=this.eat(29)?this.jsxParseAttributeValue():null,this.finishNode(r,"JSXAttribute"))}jsxParseOpeningElementAt(r){const n=this.startNodeAt(r);return this.eat(143)?this.finishNode(n,"JSXOpeningFragment"):(n.name=this.jsxParseElementName(),this.jsxParseOpeningElementAfterName(n))}jsxParseOpeningElementAfterName(r){const n=[];for(;!this.match(56)&&!this.match(143);)n.push(this.jsxParseAttribute());return r.attributes=n,r.selfClosing=this.eat(56),this.expect(143),this.finishNode(r,"JSXOpeningElement")}jsxParseClosingElementAt(r){const n=this.startNodeAt(r);return this.eat(143)?this.finishNode(n,"JSXClosingFragment"):(n.name=this.jsxParseElementName(),this.expect(143),this.finishNode(n,"JSXClosingElement"))}jsxParseElementAt(r){const n=this.startNodeAt(r),i=[],s=this.jsxParseOpeningElementAt(r);let a=null;if(!s.selfClosing){e:for(;;)switch(this.state.type){case 142:if(r=this.state.startLoc,this.next(),this.eat(56)){a=this.jsxParseClosingElementAt(r);break e}i.push(this.jsxParseElementAt(r));break;case 141:i.push(this.parseLiteral(this.state.value,"JSXText"));break;case 5:{const o=this.startNode();this.setContext(lt.brace),this.next(),this.match(21)?i.push(this.jsxParseSpreadChild(o)):i.push(this.jsxParseExpressionContainer(o,lt.j_expr));break}default:this.unexpected()}cn(s)&&!cn(a)&&a!==null?this.raise(Yn.MissingClosingTagFragment,a):!cn(s)&&cn(a)?this.raise(Yn.MissingClosingTagElement,a,{openingTagName:Pi(s.name)}):!cn(s)&&!cn(a)&&Pi(a.name)!==Pi(s.name)&&this.raise(Yn.MissingClosingTagElement,a,{openingTagName:Pi(s.name)})}if(cn(s)?(n.openingFragment=s,n.closingFragment=a):(n.openingElement=s,n.closingElement=a),n.children=i,this.match(47))throw this.raise(Yn.UnwrappedAdjacentJSXElements,this.state.startLoc);return cn(s)?this.finishNode(n,"JSXFragment"):this.finishNode(n,"JSXElement")}jsxParseElement(){const r=this.state.startLoc;return this.next(),this.jsxParseElementAt(r)}setContext(r){const{context:n}=this.state;n[n.length-1]=r}parseExprAtom(r){return this.match(142)?this.jsxParseElement():this.match(47)&&this.input.charCodeAt(this.state.pos)!==33?(this.replaceToken(142),this.jsxParseElement()):super.parseExprAtom(r)}skipSpace(){this.curContext().preserveSpace||super.skipSpace()}getTokenFromCode(r){const n=this.curContext();if(n===lt.j_expr){this.jsxReadToken();return}if(n===lt.j_oTag||n===lt.j_cTag){if(Wr(r)){this.jsxReadWord();return}if(r===62){++this.state.pos,this.finishToken(143);return}if((r===34||r===39)&&n===lt.j_oTag){this.jsxReadString(r);return}}if(r===60&&this.state.canStartJSXElement&&this.input.charCodeAt(this.state.pos+1)!==33){++this.state.pos,this.finishToken(142);return}super.getTokenFromCode(r)}updateContext(r){const{context:n,type:i}=this.state;if(i===56&&r===142)n.splice(-2,2,lt.j_cTag),this.state.canStartJSXElement=!1;else if(i===142)n.push(lt.j_oTag);else if(i===143){const s=n[n.length-1];s===lt.j_oTag&&r===56||s===lt.j_cTag?(n.pop(),this.state.canStartJSXElement=n[n.length-1]===lt.j_expr):(this.setContext(lt.j_expr),this.state.canStartJSXElement=!0)}else this.state.canStartJSXElement=ew(i)}};class Jw extends Gc{constructor(...t){super(...t),this.tsNames=new Map}}class zw extends Yc{constructor(...t){super(...t),this.importsStack=[]}createScope(t){return this.importsStack.push(new Set),new Jw(t)}enter(t){t===256&&this.importsStack.push(new Set),super.enter(t)}exit(){const t=super.exit();return t===256&&this.importsStack.pop(),t}hasImport(t,r){const n=this.importsStack.length;if(this.importsStack[n-1].has(t))return!0;if(!r&&n>1){for(let i=0;i<n-1;i++)if(this.importsStack[i].has(t))return!0}return!1}declareName(t,r,n){if(r&4096){this.hasImport(t,!0)&&this.parser.raise(ee.VarRedeclaration,n,{identifierName:t}),this.importsStack[this.importsStack.length-1].add(t);return}const i=this.currentScope();let s=i.tsNames.get(t)||0;if(r&1024){this.maybeExportDefined(i,t),i.tsNames.set(t,s|16);return}super.declareName(t,r,n),r&2&&(r&1||(this.checkRedeclarationInScope(i,t,r,n),this.maybeExportDefined(i,t)),s=s|1),r&256&&(s=s|2),r&512&&(s=s|4),r&128&&(s=s|8),s&&i.tsNames.set(t,s)}isRedeclaredInScope(t,r,n){const i=t.tsNames.get(r);if((i&2)>0){if(n&256){const s=!!(n&512),a=(i&4)>0;return s!==a}return!0}return n&128&&(i&8)>0?t.names.get(r)&2?!!(n&1):!1:n&2&&(i&1)>0?!0:super.isRedeclaredInScope(t,r,n)}checkLocalExport(t){const{name:r}=t;if(this.hasImport(r))return;const n=this.scopeStack.length;for(let i=n-1;i>=0;i--){const a=this.scopeStack[i].tsNames.get(r);if((a&1)>0||(a&16)>0)return}super.checkLocalExport(t)}}const k0=e=>e.type==="ParenthesizedExpression"?k0(e.expression):e;class Qw extends Uw{toAssignable(t,r=!1){var n,i;let s;switch((t.type==="ParenthesizedExpression"||(n=t.extra)!=null&&n.parenthesized)&&(s=k0(t),r?s.type==="Identifier"?this.expressionScope.recordArrowParameterBindingError(ee.InvalidParenthesizedAssignment,t):s.type!=="MemberExpression"&&!this.isOptionalMemberExpression(s)&&this.raise(ee.InvalidParenthesizedAssignment,t):this.raise(ee.InvalidParenthesizedAssignment,t)),t.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":t.type="ObjectPattern";for(let o=0,u=t.properties.length,l=u-1;o<u;o++){var a;const c=t.properties[o],f=o===l;this.toAssignableObjectExpressionProp(c,f,r),f&&c.type==="RestElement"&&(a=t.extra)!=null&&a.trailingCommaLoc&&this.raise(ee.RestTrailingComma,t.extra.trailingCommaLoc)}break;case"ObjectProperty":{const{key:o,value:u}=t;this.isPrivateName(o)&&this.classScope.usePrivateName(this.getPrivateNameSV(o),o.loc.start),this.toAssignable(u,r);break}case"SpreadElement":throw new Error("Internal @babel/parser error (this is a bug, please report it). SpreadElement should be converted by .toAssignable's caller.");case"ArrayExpression":t.type="ArrayPattern",this.toAssignableList(t.elements,(i=t.extra)==null?void 0:i.trailingCommaLoc,r);break;case"AssignmentExpression":t.operator!=="="&&this.raise(ee.MissingEqInAssignment,t.left.loc.end),t.type="AssignmentPattern",delete t.operator,this.toAssignable(t.left,r);break;case"ParenthesizedExpression":this.toAssignable(s,r);break}}toAssignableObjectExpressionProp(t,r,n){if(t.type==="ObjectMethod")this.raise(t.kind==="get"||t.kind==="set"?ee.PatternHasAccessor:ee.PatternHasMethod,t.key);else if(t.type==="SpreadElement"){t.type="RestElement";const i=t.argument;this.checkToRestConversion(i,!1),this.toAssignable(i,n),r||this.raise(ee.RestTrailingComma,t)}else this.toAssignable(t,n)}toAssignableList(t,r,n){const i=t.length-1;for(let s=0;s<=i;s++){const a=t[s];if(a){if(a.type==="SpreadElement"){a.type="RestElement";const o=a.argument;this.checkToRestConversion(o,!0),this.toAssignable(o,n)}else this.toAssignable(a,n);a.type==="RestElement"&&(s<i?this.raise(ee.RestTrailingComma,a):r&&this.raise(ee.RestTrailingComma,r))}}}isAssignable(t,r){switch(t.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":return!0;case"ObjectExpression":{const n=t.properties.length-1;return t.properties.every((i,s)=>i.type!=="ObjectMethod"&&(s===n||i.type!=="SpreadElement")&&this.isAssignable(i))}case"ObjectProperty":return this.isAssignable(t.value);case"SpreadElement":return this.isAssignable(t.argument);case"ArrayExpression":return t.elements.every(n=>n===null||this.isAssignable(n));case"AssignmentExpression":return t.operator==="=";case"ParenthesizedExpression":return this.isAssignable(t.expression);case"MemberExpression":case"OptionalMemberExpression":return!r;default:return!1}}toReferencedList(t,r){return t}toReferencedListDeep(t,r){this.toReferencedList(t,r);for(const n of t)(n==null?void 0:n.type)==="ArrayExpression"&&this.toReferencedListDeep(n.elements)}parseSpread(t){const r=this.startNode();return this.next(),r.argument=this.parseMaybeAssignAllowIn(t,void 0),this.finishNode(r,"SpreadElement")}parseRestBinding(){const t=this.startNode();return this.next(),t.argument=this.parseBindingAtom(),this.finishNode(t,"RestElement")}parseBindingAtom(){switch(this.state.type){case 0:{const t=this.startNode();return this.next(),t.elements=this.parseBindingList(3,93,1),this.finishNode(t,"ArrayPattern")}case 5:return this.parseObjectLike(8,!0)}return this.parseIdentifier()}parseBindingList(t,r,n){const i=n&1,s=[];let a=!0;for(;!this.eat(t);)if(a?a=!1:this.expect(12),i&&this.match(12))s.push(null);else{if(this.eat(t))break;if(this.match(21)){if(s.push(this.parseAssignableListItemTypes(this.parseRestBinding(),n)),!this.checkCommaAfterRest(r)){this.expect(t);break}}else{const o=[];for(this.match(26)&&this.hasPlugin("decorators")&&this.raise(ee.UnsupportedParameterDecorator,this.state.startLoc);this.match(26);)o.push(this.parseDecorator());s.push(this.parseAssignableListItem(n,o))}}return s}parseBindingRestProperty(t){return this.next(),t.argument=this.parseIdentifier(),this.checkCommaAfterRest(125),this.finishNode(t,"RestElement")}parseBindingProperty(){const{type:t,startLoc:r}=this.state;if(t===21)return this.parseBindingRestProperty(this.startNode());const n=this.startNode();return t===138?(this.expectPlugin("destructuringPrivate",r),this.classScope.usePrivateName(this.state.value,r),n.key=this.parsePrivateName()):this.parsePropertyName(n),n.method=!1,this.parseObjPropValue(n,r,!1,!1,!0,!1)}parseAssignableListItem(t,r){const n=this.parseMaybeDefault();this.parseAssignableListItemTypes(n,t);const i=this.parseMaybeDefault(n.loc.start,n);return r.length&&(n.decorators=r),i}parseAssignableListItemTypes(t,r){return t}parseMaybeDefault(t,r){var n,i;if((n=t)!=null||(t=this.state.startLoc),r=(i=r)!=null?i:this.parseBindingAtom(),!this.eat(29))return r;const s=this.startNodeAt(t);return s.left=r,s.right=this.parseMaybeAssignAllowIn(),this.finishNode(s,"AssignmentPattern")}isValidLVal(t,r,n){switch(t){case"AssignmentPattern":return"left";case"RestElement":return"argument";case"ObjectProperty":return"value";case"ParenthesizedExpression":return"expression";case"ArrayPattern":return"elements";case"ObjectPattern":return"properties"}return!1}isOptionalMemberExpression(t){return t.type==="OptionalMemberExpression"}checkLVal(t,r,n=64,i=!1,s=!1,a=!1){var o;const u=t.type;if(this.isObjectMethod(t))return;const l=this.isOptionalMemberExpression(t);if(l||u==="MemberExpression"){l&&(this.expectPlugin("optionalChainingAssign",t.loc.start),r.type!=="AssignmentExpression"&&this.raise(ee.InvalidLhsOptionalChaining,t,{ancestor:r})),n!==64&&this.raise(ee.InvalidPropertyBindingPattern,t);return}if(u==="Identifier"){this.checkIdentifier(t,n,s);const{name:m}=t;i&&(i.has(m)?this.raise(ee.ParamDupe,t):i.add(m));return}const c=this.isValidLVal(u,!(a||(o=t.extra)!=null&&o.parenthesized)&&r.type==="AssignmentExpression",n);if(c===!0)return;if(c===!1){const m=n===64?ee.InvalidLhs:ee.InvalidLhsBinding;this.raise(m,t,{ancestor:r});return}let f,p;typeof c=="string"?(f=c,p=u==="ParenthesizedExpression"):[f,p]=c;const h=u==="ArrayPattern"||u==="ObjectPattern"?{type:u}:r,d=t[f];if(Array.isArray(d))for(const m of d)m&&this.checkLVal(m,h,n,i,s,p);else d&&this.checkLVal(d,h,n,i,s,p)}checkIdentifier(t,r,n=!1){this.state.strict&&(n?w0(t.name,this.inModule):_0(t.name))&&(r===64?this.raise(ee.StrictEvalArguments,t,{referenceName:t.name}):this.raise(ee.StrictEvalArgumentsBinding,t,{bindingName:t.name})),r&8192&&t.name==="let"&&this.raise(ee.LetInLexicalBinding,t),r&64||this.declareNameFromIdentifier(t,r)}declareNameFromIdentifier(t,r){this.scope.declareName(t.name,r,t.loc.start)}checkToRestConversion(t,r){switch(t.type){case"ParenthesizedExpression":this.checkToRestConversion(t.expression,r);break;case"Identifier":case"MemberExpression":break;case"ArrayExpression":case"ObjectExpression":if(r)break;default:this.raise(ee.InvalidRestAssignmentPattern,t)}}checkCommaAfterRest(t){return this.match(12)?(this.raise(this.lookaheadCharCode()===t?ee.RestTrailingComma:ee.ElementAfterRest,this.state.startLoc),!0):!1}}function Zw(e){if(e==null)throw new Error(`Unexpected ${e} value.`);return e}function ah(e){if(!e)throw new Error("Assert fail")}const Fe=Gr`typescript`({AbstractMethodHasImplementation:({methodName:e})=>`Method '${e}' cannot have an implementation because it is marked abstract.`,AbstractPropertyHasInitializer:({propertyName:e})=>`Property '${e}' cannot have an initializer because it is marked abstract.`,AccesorCannotDeclareThisParameter:"'get' and 'set' accessors cannot declare 'this' parameters.",AccesorCannotHaveTypeParameters:"An accessor cannot have type parameters.",AccessorCannotBeOptional:"An 'accessor' property cannot be declared optional.",ClassMethodHasDeclare:"Class methods cannot have the 'declare' modifier.",ClassMethodHasReadonly:"Class methods cannot have the 'readonly' modifier.",ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference:"A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference.",ConstructorHasTypeParameters:"Type parameters cannot appear on a constructor declaration.",DeclareAccessor:({kind:e})=>`'declare' is not allowed in ${e}ters.`,DeclareClassFieldHasInitializer:"Initializers are not allowed in ambient contexts.",DeclareFunctionHasImplementation:"An implementation cannot be declared in ambient contexts.",DuplicateAccessibilityModifier:({modifier:e})=>"Accessibility modifier already seen.",DuplicateModifier:({modifier:e})=>`Duplicate modifier: '${e}'.`,EmptyHeritageClauseType:({token:e})=>`'${e}' list cannot be empty.`,EmptyTypeArguments:"Type argument list cannot be empty.",EmptyTypeParameters:"Type parameter list cannot be empty.",ExpectedAmbientAfterExportDeclare:"'export declare' must be followed by an ambient declaration.",ImportAliasHasImportType:"An import alias can not use 'import type'.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` modifier",IncompatibleModifiers:({modifiers:e})=>`'${e[0]}' modifier cannot be used with '${e[1]}' modifier.`,IndexSignatureHasAbstract:"Index signatures cannot have the 'abstract' modifier.",IndexSignatureHasAccessibility:({modifier:e})=>`Index signatures cannot have an accessibility modifier ('${e}').`,IndexSignatureHasDeclare:"Index signatures cannot have the 'declare' modifier.",IndexSignatureHasOverride:"'override' modifier cannot appear on an index signature.",IndexSignatureHasStatic:"Index signatures cannot have the 'static' modifier.",InitializerNotAllowedInAmbientContext:"Initializers are not allowed in ambient contexts.",InvalidModifierOnTypeMember:({modifier:e})=>`'${e}' modifier cannot appear on a type member.`,InvalidModifierOnTypeParameter:({modifier:e})=>`'${e}' modifier cannot appear on a type parameter.`,InvalidModifierOnTypeParameterPositions:({modifier:e})=>`'${e}' modifier can only appear on a type parameter of a class, interface or type alias.`,InvalidModifiersOrder:({orderedModifiers:e})=>`'${e[0]}' modifier must precede '${e[1]}' modifier.`,InvalidPropertyAccessAfterInstantiationExpression:"Invalid property access after an instantiation expression. You can either wrap the instantiation expression in parentheses, or delete the type arguments.",InvalidTupleMemberLabel:"Tuple members must be labeled with a simple identifier.",MissingInterfaceName:"'interface' declarations must be followed by an identifier.",NonAbstractClassHasAbstractMethod:"Abstract methods can only appear within an abstract class.",NonClassMethodPropertyHasAbstractModifer:"'abstract' modifier can only appear on a class, method, or property declaration.",OptionalTypeBeforeRequired:"A required element cannot follow an optional element.",OverrideNotInSubClass:"This member cannot have an 'override' modifier because its containing class does not extend another class.",PatternIsOptional:"A binding pattern parameter cannot be optional in an implementation signature.",PrivateElementHasAbstract:"Private elements cannot have the 'abstract' modifier.",PrivateElementHasAccessibility:({modifier:e})=>`Private elements cannot have an accessibility modifier ('${e}').`,ReadonlyForMethodSignature:"'readonly' modifier can only appear on a property declaration or index signature.",ReservedArrowTypeParam:"This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma, as in `<T,>() => ...`.",ReservedTypeAssertion:"This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead.",SetAccesorCannotHaveOptionalParameter:"A 'set' accessor cannot have an optional parameter.",SetAccesorCannotHaveRestParameter:"A 'set' accessor cannot have rest parameter.",SetAccesorCannotHaveReturnType:"A 'set' accessor cannot have a return type annotation.",SingleTypeParameterWithoutTrailingComma:({typeParameterName:e})=>`Single type parameter ${e} should have a trailing comma. Example usage: <${e},>.`,StaticBlockCannotHaveModifier:"Static class blocks cannot have any modifier.",TupleOptionalAfterType:"A labeled tuple optional element must be declared using a question mark after the name and before the colon (`name?: type`), rather than after the type (`name: type?`).",TypeAnnotationAfterAssign:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeImportCannotSpecifyDefaultAndNamed:"A type-only import can specify a default import or named bindings, but not both.",TypeModifierIsUsedInTypeExports:"The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement.",TypeModifierIsUsedInTypeImports:"The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement.",UnexpectedParameterModifier:"A parameter property is only allowed in a constructor implementation.",UnexpectedReadonly:"'readonly' type modifier is only permitted on array and tuple literal types.",UnexpectedTypeAnnotation:"Did not expect a type annotation here.",UnexpectedTypeCastInParameter:"Unexpected type cast in parameter position.",UnsupportedImportTypeArgument:"Argument in a type import must be a string literal.",UnsupportedParameterPropertyKind:"A parameter property may not be declared using a binding pattern.",UnsupportedSignatureParameterKind:({type:e})=>`Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got ${e}.`});function eI(e){switch(e){case"any":return"TSAnyKeyword";case"boolean":return"TSBooleanKeyword";case"bigint":return"TSBigIntKeyword";case"never":return"TSNeverKeyword";case"number":return"TSNumberKeyword";case"object":return"TSObjectKeyword";case"string":return"TSStringKeyword";case"symbol":return"TSSymbolKeyword";case"undefined":return"TSUndefinedKeyword";case"unknown":return"TSUnknownKeyword";default:return}}function oh(e){return e==="private"||e==="public"||e==="protected"}function tI(e){return e==="in"||e==="out"}var rI=e=>class extends e{constructor(...r){super(...r),this.tsParseInOutModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out"],disallowedModifiers:["const","public","private","protected","readonly","declare","abstract","override"],errorTemplate:Fe.InvalidModifierOnTypeParameter}),this.tsParseConstModifier=this.tsParseModifiers.bind(this,{allowedModifiers:["const"],disallowedModifiers:["in","out"],errorTemplate:Fe.InvalidModifierOnTypeParameterPositions}),this.tsParseInOutConstModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out","const"],disallowedModifiers:["public","private","protected","readonly","declare","abstract","override"],errorTemplate:Fe.InvalidModifierOnTypeParameter})}getScopeHandler(){return zw}tsIsIdentifier(){return at(this.state.type)}tsTokenCanFollowModifier(){return(this.match(0)||this.match(5)||this.match(55)||this.match(21)||this.match(138)||this.isLiteralPropertyName())&&!this.hasPrecedingLineBreak()}tsNextTokenCanFollowModifier(){return this.next(),this.tsTokenCanFollowModifier()}tsParseModifier(r,n){if(!at(this.state.type)&&this.state.type!==58&&this.state.type!==75)return;const i=this.state.value;if(r.includes(i)){if(n&&this.tsIsStartOfStaticBlocks())return;if(this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this)))return i}}tsParseModifiers({allowedModifiers:r,disallowedModifiers:n,stopOnStartOfClassStaticBlock:i,errorTemplate:s=Fe.InvalidModifierOnTypeMember},a){const o=(l,c,f,p)=>{c===f&&a[p]&&this.raise(Fe.InvalidModifiersOrder,l,{orderedModifiers:[f,p]})},u=(l,c,f,p)=>{(a[f]&&c===p||a[p]&&c===f)&&this.raise(Fe.IncompatibleModifiers,l,{modifiers:[f,p]})};for(;;){const{startLoc:l}=this.state,c=this.tsParseModifier(r.concat(n??[]),i);if(!c)break;oh(c)?a.accessibility?this.raise(Fe.DuplicateAccessibilityModifier,l,{modifier:c}):(o(l,c,c,"override"),o(l,c,c,"static"),o(l,c,c,"readonly"),a.accessibility=c):tI(c)?(a[c]&&this.raise(Fe.DuplicateModifier,l,{modifier:c}),a[c]=!0,o(l,c,"in","out")):(hasOwnProperty.call(a,c)?this.raise(Fe.DuplicateModifier,l,{modifier:c}):(o(l,c,"static","readonly"),o(l,c,"static","override"),o(l,c,"override","readonly"),o(l,c,"abstract","override"),u(l,c,"declare","override"),u(l,c,"static","abstract")),a[c]=!0),n!=null&&n.includes(c)&&this.raise(s,l,{modifier:c})}}tsIsListTerminator(r){switch(r){case"EnumMembers":case"TypeMembers":return this.match(8);case"HeritageClauseElement":return this.match(5);case"TupleElementTypes":return this.match(3);case"TypeParametersOrArguments":return this.match(48)}}tsParseList(r,n){const i=[];for(;!this.tsIsListTerminator(r);)i.push(n());return i}tsParseDelimitedList(r,n,i){return Zw(this.tsParseDelimitedListWorker(r,n,!0,i))}tsParseDelimitedListWorker(r,n,i,s){const a=[];let o=-1;for(;!this.tsIsListTerminator(r);){o=-1;const u=n();if(u==null)return;if(a.push(u),this.eat(12)){o=this.state.lastTokStartLoc.index;continue}if(this.tsIsListTerminator(r))break;i&&this.expect(12);return}return s&&(s.value=o),a}tsParseBracketedList(r,n,i,s,a){s||(i?this.expect(0):this.expect(47));const o=this.tsParseDelimitedList(r,n,a);return i?this.expect(3):this.expect(48),o}tsParseImportType(){const r=this.startNode();return this.expect(83),this.expect(10),this.match(133)||this.raise(Fe.UnsupportedImportTypeArgument,this.state.startLoc),r.argument=super.parseExprAtom(),(this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions"))&&(r.options=null),this.eat(12)&&(this.expectImportAttributesPlugin(),this.match(11)||(r.options=super.parseMaybeAssignAllowIn(),this.eat(12))),this.expect(11),this.eat(16)&&(r.qualifier=this.tsParseEntityName()),this.match(47)&&(r.typeParameters=this.tsParseTypeArguments()),this.finishNode(r,"TSImportType")}tsParseEntityName(r=!0){let n=this.parseIdentifier(r);for(;this.eat(16);){const i=this.startNodeAtNode(n);i.left=n,i.right=this.parseIdentifier(r),n=this.finishNode(i,"TSQualifiedName")}return n}tsParseTypeReference(){const r=this.startNode();return r.typeName=this.tsParseEntityName(),!this.hasPrecedingLineBreak()&&this.match(47)&&(r.typeParameters=this.tsParseTypeArguments()),this.finishNode(r,"TSTypeReference")}tsParseThisTypePredicate(r){this.next();const n=this.startNodeAtNode(r);return n.parameterName=r,n.typeAnnotation=this.tsParseTypeAnnotation(!1),n.asserts=!1,this.finishNode(n,"TSTypePredicate")}tsParseThisTypeNode(){const r=this.startNode();return this.next(),this.finishNode(r,"TSThisType")}tsParseTypeQuery(){const r=this.startNode();return this.expect(87),this.match(83)?r.exprName=this.tsParseImportType():r.exprName=this.tsParseEntityName(),!this.hasPrecedingLineBreak()&&this.match(47)&&(r.typeParameters=this.tsParseTypeArguments()),this.finishNode(r,"TSTypeQuery")}tsParseTypeParameter(r){const n=this.startNode();return r(n),n.name=this.tsParseTypeParameterName(),n.constraint=this.tsEatThenParseType(81),n.default=this.tsEatThenParseType(29),this.finishNode(n,"TSTypeParameter")}tsTryParseTypeParameters(r){if(this.match(47))return this.tsParseTypeParameters(r)}tsParseTypeParameters(r){const n=this.startNode();this.match(47)||this.match(142)?this.next():this.unexpected();const i={value:-1};return n.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this,r),!1,!0,i),n.params.length===0&&this.raise(Fe.EmptyTypeParameters,n),i.value!==-1&&this.addExtra(n,"trailingComma",i.value),this.finishNode(n,"TSTypeParameterDeclaration")}tsFillSignature(r,n){const i=r===19,s="parameters",a="typeAnnotation";n.typeParameters=this.tsTryParseTypeParameters(this.tsParseConstModifier),this.expect(10),n[s]=this.tsParseBindingListForSignature(),i?n[a]=this.tsParseTypeOrTypePredicateAnnotation(r):this.match(r)&&(n[a]=this.tsParseTypeOrTypePredicateAnnotation(r))}tsParseBindingListForSignature(){const r=super.parseBindingList(11,41,2);for(const n of r){const{type:i}=n;(i==="AssignmentPattern"||i==="TSParameterProperty")&&this.raise(Fe.UnsupportedSignatureParameterKind,n,{type:i})}return r}tsParseTypeMemberSemicolon(){!this.eat(12)&&!this.isLineTerminator()&&this.expect(13)}tsParseSignatureMember(r,n){return this.tsFillSignature(14,n),this.tsParseTypeMemberSemicolon(),this.finishNode(n,r)}tsIsUnambiguouslyIndexSignature(){return this.next(),at(this.state.type)?(this.next(),this.match(14)):!1}tsTryParseIndexSignature(r){if(!(this.match(0)&&this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this))))return;this.expect(0);const n=this.parseIdentifier();n.typeAnnotation=this.tsParseTypeAnnotation(),this.resetEndLocation(n),this.expect(3),r.parameters=[n];const i=this.tsTryParseTypeAnnotation();return i&&(r.typeAnnotation=i),this.tsParseTypeMemberSemicolon(),this.finishNode(r,"TSIndexSignature")}tsParsePropertyOrMethodSignature(r,n){this.eat(17)&&(r.optional=!0);const i=r;if(this.match(10)||this.match(47)){n&&this.raise(Fe.ReadonlyForMethodSignature,r);const s=i;s.kind&&this.match(47)&&this.raise(Fe.AccesorCannotHaveTypeParameters,this.state.curPosition()),this.tsFillSignature(14,s),this.tsParseTypeMemberSemicolon();const a="parameters",o="typeAnnotation";if(s.kind==="get")s[a].length>0&&(this.raise(ee.BadGetterArity,this.state.curPosition()),this.isThisParam(s[a][0])&&this.raise(Fe.AccesorCannotDeclareThisParameter,this.state.curPosition()));else if(s.kind==="set"){if(s[a].length!==1)this.raise(ee.BadSetterArity,this.state.curPosition());else{const u=s[a][0];this.isThisParam(u)&&this.raise(Fe.AccesorCannotDeclareThisParameter,this.state.curPosition()),u.type==="Identifier"&&u.optional&&this.raise(Fe.SetAccesorCannotHaveOptionalParameter,this.state.curPosition()),u.type==="RestElement"&&this.raise(Fe.SetAccesorCannotHaveRestParameter,this.state.curPosition())}s[o]&&this.raise(Fe.SetAccesorCannotHaveReturnType,s[o])}else s.kind="method";return this.finishNode(s,"TSMethodSignature")}else{const s=i;n&&(s.readonly=!0);const a=this.tsTryParseTypeAnnotation();return a&&(s.typeAnnotation=a),this.tsParseTypeMemberSemicolon(),this.finishNode(s,"TSPropertySignature")}}tsParseTypeMember(){const r=this.startNode();if(this.match(10)||this.match(47))return this.tsParseSignatureMember("TSCallSignatureDeclaration",r);if(this.match(77)){const i=this.startNode();return this.next(),this.match(10)||this.match(47)?this.tsParseSignatureMember("TSConstructSignatureDeclaration",r):(r.key=this.createIdentifier(i,"new"),this.tsParsePropertyOrMethodSignature(r,!1))}this.tsParseModifiers({allowedModifiers:["readonly"],disallowedModifiers:["declare","abstract","private","protected","public","static","override"]},r);const n=this.tsTryParseIndexSignature(r);return n||(super.parsePropertyName(r),!r.computed&&r.key.type==="Identifier"&&(r.key.name==="get"||r.key.name==="set")&&this.tsTokenCanFollowModifier()&&(r.kind=r.key.name,super.parsePropertyName(r)),this.tsParsePropertyOrMethodSignature(r,!!r.readonly))}tsParseTypeLiteral(){const r=this.startNode();return r.members=this.tsParseObjectTypeMembers(),this.finishNode(r,"TSTypeLiteral")}tsParseObjectTypeMembers(){this.expect(5);const r=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(8),r}tsIsStartOfMappedType(){return this.next(),this.eat(53)?this.isContextual(122):(this.isContextual(122)&&this.next(),!this.match(0)||(this.next(),!this.tsIsIdentifier())?!1:(this.next(),this.match(58)))}tsParseMappedTypeParameter(){const r=this.startNode();return r.name=this.tsParseTypeParameterName(),r.constraint=this.tsExpectThenParseType(58),this.finishNode(r,"TSTypeParameter")}tsParseMappedType(){const r=this.startNode();return this.expect(5),this.match(53)?(r.readonly=this.state.value,this.next(),this.expectContextual(122)):this.eatContextual(122)&&(r.readonly=!0),this.expect(0),r.typeParameter=this.tsParseMappedTypeParameter(),r.nameType=this.eatContextual(93)?this.tsParseType():null,this.expect(3),this.match(53)?(r.optional=this.state.value,this.next(),this.expect(17)):this.eat(17)&&(r.optional=!0),r.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(8),this.finishNode(r,"TSMappedType")}tsParseTupleType(){const r=this.startNode();r.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);let n=!1;return r.elementTypes.forEach(i=>{const{type:s}=i;n&&s!=="TSRestType"&&s!=="TSOptionalType"&&!(s==="TSNamedTupleMember"&&i.optional)&&this.raise(Fe.OptionalTypeBeforeRequired,i),n||(n=s==="TSNamedTupleMember"&&i.optional||s==="TSOptionalType")}),this.finishNode(r,"TSTupleType")}tsParseTupleElementType(){const{startLoc:r}=this.state,n=this.eat(21);let i,s,a,o;const l=dr(this.state.type)?this.lookaheadCharCode():null;if(l===58)i=!0,a=!1,s=this.parseIdentifier(!0),this.expect(14),o=this.tsParseType();else if(l===63){a=!0;const c=this.state.startLoc,f=this.state.value,p=this.tsParseNonArrayType();this.lookaheadCharCode()===58?(i=!0,s=this.createIdentifier(this.startNodeAt(c),f),this.expect(17),this.expect(14),o=this.tsParseType()):(i=!1,o=p,this.expect(17))}else o=this.tsParseType(),a=this.eat(17),i=this.eat(14);if(i){let c;s?(c=this.startNodeAtNode(s),c.optional=a,c.label=s,c.elementType=o,this.eat(17)&&(c.optional=!0,this.raise(Fe.TupleOptionalAfterType,this.state.lastTokStartLoc))):(c=this.startNodeAtNode(o),c.optional=a,this.raise(Fe.InvalidTupleMemberLabel,o),c.label=o,c.elementType=this.tsParseType()),o=this.finishNode(c,"TSNamedTupleMember")}else if(a){const c=this.startNodeAtNode(o);c.typeAnnotation=o,o=this.finishNode(c,"TSOptionalType")}if(n){const c=this.startNodeAt(r);c.typeAnnotation=o,o=this.finishNode(c,"TSRestType")}return o}tsParseParenthesizedType(){const r=this.startNode();return this.expect(10),r.typeAnnotation=this.tsParseType(),this.expect(11),this.finishNode(r,"TSParenthesizedType")}tsParseFunctionOrConstructorType(r,n){const i=this.startNode();return r==="TSConstructorType"&&(i.abstract=!!n,n&&this.next(),this.next()),this.tsInAllowConditionalTypesContext(()=>this.tsFillSignature(19,i)),this.finishNode(i,r)}tsParseLiteralTypeNode(){const r=this.startNode();switch(this.state.type){case 134:case 135:case 133:case 85:case 86:r.literal=super.parseExprAtom();break;default:this.unexpected()}return this.finishNode(r,"TSLiteralType")}tsParseTemplateLiteralType(){const r=this.startNode();return r.literal=super.parseTemplate(!1),this.finishNode(r,"TSLiteralType")}parseTemplateSubstitution(){return this.state.inType?this.tsParseType():super.parseTemplateSubstitution()}tsParseThisTypeOrThisTypePredicate(){const r=this.tsParseThisTypeNode();return this.isContextual(116)&&!this.hasPrecedingLineBreak()?this.tsParseThisTypePredicate(r):r}tsParseNonArrayType(){switch(this.state.type){case 133:case 134:case 135:case 85:case 86:return this.tsParseLiteralTypeNode();case 53:if(this.state.value==="-"){const r=this.startNode(),n=this.lookahead();return n.type!==134&&n.type!==135&&this.unexpected(),r.literal=this.parseMaybeUnary(),this.finishNode(r,"TSLiteralType")}break;case 78:return this.tsParseThisTypeOrThisTypePredicate();case 87:return this.tsParseTypeQuery();case 83:return this.tsParseImportType();case 5:return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this))?this.tsParseMappedType():this.tsParseTypeLiteral();case 0:return this.tsParseTupleType();case 10:return this.tsParseParenthesizedType();case 25:case 24:return this.tsParseTemplateLiteralType();default:{const{type:r}=this.state;if(at(r)||r===88||r===84){const n=r===88?"TSVoidKeyword":r===84?"TSNullKeyword":eI(this.state.value);if(n!==void 0&&this.lookaheadCharCode()!==46){const i=this.startNode();return this.next(),this.finishNode(i,n)}return this.tsParseTypeReference()}}}this.unexpected()}tsParseArrayTypeOrHigher(){let r=this.tsParseNonArrayType();for(;!this.hasPrecedingLineBreak()&&this.eat(0);)if(this.match(3)){const n=this.startNodeAtNode(r);n.elementType=r,this.expect(3),r=this.finishNode(n,"TSArrayType")}else{const n=this.startNodeAtNode(r);n.objectType=r,n.indexType=this.tsParseType(),this.expect(3),r=this.finishNode(n,"TSIndexedAccessType")}return r}tsParseTypeOperator(){const r=this.startNode(),n=this.state.value;return this.next(),r.operator=n,r.typeAnnotation=this.tsParseTypeOperatorOrHigher(),n==="readonly"&&this.tsCheckTypeAnnotationForReadOnly(r),this.finishNode(r,"TSTypeOperator")}tsCheckTypeAnnotationForReadOnly(r){switch(r.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(Fe.UnexpectedReadonly,r)}}tsParseInferType(){const r=this.startNode();this.expectContextual(115);const n=this.startNode();return n.name=this.tsParseTypeParameterName(),n.constraint=this.tsTryParse(()=>this.tsParseConstraintForInferType()),r.typeParameter=this.finishNode(n,"TSTypeParameter"),this.finishNode(r,"TSInferType")}tsParseConstraintForInferType(){if(this.eat(81)){const r=this.tsInDisallowConditionalTypesContext(()=>this.tsParseType());if(this.state.inDisallowConditionalTypesContext||!this.match(17))return r}}tsParseTypeOperatorOrHigher(){return aw(this.state.type)&&!this.state.containsEsc?this.tsParseTypeOperator():this.isContextual(115)?this.tsParseInferType():this.tsInAllowConditionalTypesContext(()=>this.tsParseArrayTypeOrHigher())}tsParseUnionOrIntersectionType(r,n,i){const s=this.startNode(),a=this.eat(i),o=[];do o.push(n());while(this.eat(i));return o.length===1&&!a?o[0]:(s.types=o,this.finishNode(s,r))}tsParseIntersectionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSIntersectionType",this.tsParseTypeOperatorOrHigher.bind(this),45)}tsParseUnionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSUnionType",this.tsParseIntersectionTypeOrHigher.bind(this),43)}tsIsStartOfFunctionType(){return this.match(47)?!0:this.match(10)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))}tsSkipParameterStart(){if(at(this.state.type)||this.match(78))return this.next(),!0;if(this.match(5)){const{errors:r}=this.state,n=r.length;try{return this.parseObjectLike(8,!0),r.length===n}catch{return!1}}if(this.match(0)){this.next();const{errors:r}=this.state,n=r.length;try{return super.parseBindingList(3,93,1),r.length===n}catch{return!1}}return!1}tsIsUnambiguouslyStartOfFunctionType(){return this.next(),!!(this.match(11)||this.match(21)||this.tsSkipParameterStart()&&(this.match(14)||this.match(12)||this.match(17)||this.match(29)||this.match(11)&&(this.next(),this.match(19))))}tsParseTypeOrTypePredicateAnnotation(r){return this.tsInType(()=>{const n=this.startNode();this.expect(r);const i=this.startNode(),s=!!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));if(s&&this.match(78)){let u=this.tsParseThisTypeOrThisTypePredicate();return u.type==="TSThisType"?(i.parameterName=u,i.asserts=!0,i.typeAnnotation=null,u=this.finishNode(i,"TSTypePredicate")):(this.resetStartLocationFromNode(u,i),u.asserts=!0),n.typeAnnotation=u,this.finishNode(n,"TSTypeAnnotation")}const a=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!a)return s?(i.parameterName=this.parseIdentifier(),i.asserts=s,i.typeAnnotation=null,n.typeAnnotation=this.finishNode(i,"TSTypePredicate"),this.finishNode(n,"TSTypeAnnotation")):this.tsParseTypeAnnotation(!1,n);const o=this.tsParseTypeAnnotation(!1);return i.parameterName=a,i.typeAnnotation=o,i.asserts=s,n.typeAnnotation=this.finishNode(i,"TSTypePredicate"),this.finishNode(n,"TSTypeAnnotation")})}tsTryParseTypeOrTypePredicateAnnotation(){if(this.match(14))return this.tsParseTypeOrTypePredicateAnnotation(14)}tsTryParseTypeAnnotation(){if(this.match(14))return this.tsParseTypeAnnotation()}tsTryParseType(){return this.tsEatThenParseType(14)}tsParseTypePredicatePrefix(){const r=this.parseIdentifier();if(this.isContextual(116)&&!this.hasPrecedingLineBreak())return this.next(),r}tsParseTypePredicateAsserts(){if(this.state.type!==109)return!1;const r=this.state.containsEsc;return this.next(),!at(this.state.type)&&!this.match(78)?!1:(r&&this.raise(ee.InvalidEscapedReservedWord,this.state.lastTokStartLoc,{reservedWord:"asserts"}),!0)}tsParseTypeAnnotation(r=!0,n=this.startNode()){return this.tsInType(()=>{r&&this.expect(14),n.typeAnnotation=this.tsParseType()}),this.finishNode(n,"TSTypeAnnotation")}tsParseType(){ah(this.state.inType);const r=this.tsParseNonConditionalType();if(this.state.inDisallowConditionalTypesContext||this.hasPrecedingLineBreak()||!this.eat(81))return r;const n=this.startNodeAtNode(r);return n.checkType=r,n.extendsType=this.tsInDisallowConditionalTypesContext(()=>this.tsParseNonConditionalType()),this.expect(17),n.trueType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.expect(14),n.falseType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.finishNode(n,"TSConditionalType")}isAbstractConstructorSignature(){return this.isContextual(124)&&this.lookahead().type===77}tsParseNonConditionalType(){return this.tsIsStartOfFunctionType()?this.tsParseFunctionOrConstructorType("TSFunctionType"):this.match(77)?this.tsParseFunctionOrConstructorType("TSConstructorType"):this.isAbstractConstructorSignature()?this.tsParseFunctionOrConstructorType("TSConstructorType",!0):this.tsParseUnionTypeOrHigher()}tsParseTypeAssertion(){this.getPluginOption("typescript","disallowAmbiguousJSXLike")&&this.raise(Fe.ReservedTypeAssertion,this.state.startLoc);const r=this.startNode();return r.typeAnnotation=this.tsInType(()=>(this.next(),this.match(75)?this.tsParseTypeReference():this.tsParseType())),this.expect(48),r.expression=this.parseMaybeUnary(),this.finishNode(r,"TSTypeAssertion")}tsParseHeritageClause(r){const n=this.state.startLoc,i=this.tsParseDelimitedList("HeritageClauseElement",()=>{const s=this.startNode();return s.expression=this.tsParseEntityName(),this.match(47)&&(s.typeParameters=this.tsParseTypeArguments()),this.finishNode(s,"TSExpressionWithTypeArguments")});return i.length||this.raise(Fe.EmptyHeritageClauseType,n,{token:r}),i}tsParseInterfaceDeclaration(r,n={}){if(this.hasFollowingLineBreak())return null;this.expectContextual(129),n.declare&&(r.declare=!0),at(this.state.type)?(r.id=this.parseIdentifier(),this.checkIdentifier(r.id,130)):(r.id=null,this.raise(Fe.MissingInterfaceName,this.state.startLoc)),r.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers),this.eat(81)&&(r.extends=this.tsParseHeritageClause("extends"));const i=this.startNode();return i.body=this.tsInType(this.tsParseObjectTypeMembers.bind(this)),r.body=this.finishNode(i,"TSInterfaceBody"),this.finishNode(r,"TSInterfaceDeclaration")}tsParseTypeAliasDeclaration(r){return r.id=this.parseIdentifier(),this.checkIdentifier(r.id,2),r.typeAnnotation=this.tsInType(()=>{if(r.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers),this.expect(29),this.isContextual(114)&&this.lookahead().type!==16){const n=this.startNode();return this.next(),this.finishNode(n,"TSIntrinsicKeyword")}return this.tsParseType()}),this.semicolon(),this.finishNode(r,"TSTypeAliasDeclaration")}tsInNoContext(r){const n=this.state.context;this.state.context=[n[0]];try{return r()}finally{this.state.context=n}}tsInType(r){const n=this.state.inType;this.state.inType=!0;try{return r()}finally{this.state.inType=n}}tsInDisallowConditionalTypesContext(r){const n=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!0;try{return r()}finally{this.state.inDisallowConditionalTypesContext=n}}tsInAllowConditionalTypesContext(r){const n=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!1;try{return r()}finally{this.state.inDisallowConditionalTypesContext=n}}tsEatThenParseType(r){if(this.match(r))return this.tsNextThenParseType()}tsExpectThenParseType(r){return this.tsInType(()=>(this.expect(r),this.tsParseType()))}tsNextThenParseType(){return this.tsInType(()=>(this.next(),this.tsParseType()))}tsParseEnumMember(){const r=this.startNode();return r.id=this.match(133)?super.parseStringLiteral(this.state.value):this.parseIdentifier(!0),this.eat(29)&&(r.initializer=super.parseMaybeAssignAllowIn()),this.finishNode(r,"TSEnumMember")}tsParseEnumDeclaration(r,n={}){return n.const&&(r.const=!0),n.declare&&(r.declare=!0),this.expectContextual(126),r.id=this.parseIdentifier(),this.checkIdentifier(r.id,r.const?8971:8459),this.expect(5),r.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(8),this.finishNode(r,"TSEnumDeclaration")}tsParseModuleBlock(){const r=this.startNode();return this.scope.enter(0),this.expect(5),super.parseBlockOrModuleBlockBody(r.body=[],void 0,!0,8),this.scope.exit(),this.finishNode(r,"TSModuleBlock")}tsParseModuleOrNamespaceDeclaration(r,n=!1){if(r.id=this.parseIdentifier(),n||this.checkIdentifier(r.id,1024),this.eat(16)){const i=this.startNode();this.tsParseModuleOrNamespaceDeclaration(i,!0),r.body=i}else this.scope.enter(256),this.prodParam.enter(0),r.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit();return this.finishNode(r,"TSModuleDeclaration")}tsParseAmbientExternalModuleDeclaration(r){return this.isContextual(112)?(r.global=!0,r.id=this.parseIdentifier()):this.match(133)?r.id=super.parseStringLiteral(this.state.value):this.unexpected(),this.match(5)?(this.scope.enter(256),this.prodParam.enter(0),r.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit()):this.semicolon(),this.finishNode(r,"TSModuleDeclaration")}tsParseImportEqualsDeclaration(r,n,i){r.isExport=i||!1,r.id=n||this.parseIdentifier(),this.checkIdentifier(r.id,4096),this.expect(29);const s=this.tsParseModuleReference();return r.importKind==="type"&&s.type!=="TSExternalModuleReference"&&this.raise(Fe.ImportAliasHasImportType,s),r.moduleReference=s,this.semicolon(),this.finishNode(r,"TSImportEqualsDeclaration")}tsIsExternalModuleReference(){return this.isContextual(119)&&this.lookaheadCharCode()===40}tsParseModuleReference(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(!1)}tsParseExternalModuleReference(){const r=this.startNode();return this.expectContextual(119),this.expect(10),this.match(133)||this.unexpected(),r.expression=super.parseExprAtom(),this.expect(11),this.sawUnambiguousESM=!0,this.finishNode(r,"TSExternalModuleReference")}tsLookAhead(r){const n=this.state.clone(),i=r();return this.state=n,i}tsTryParseAndCatch(r){const n=this.tryParse(i=>r()||i());if(!(n.aborted||!n.node))return n.error&&(this.state=n.failState),n.node}tsTryParse(r){const n=this.state.clone(),i=r();if(i!==void 0&&i!==!1)return i;this.state=n}tsTryParseDeclare(r){if(this.isLineTerminator())return;let n=this.state.type,i;return this.isContextual(100)&&(n=74,i="let"),this.tsInAmbientContext(()=>{switch(n){case 68:return r.declare=!0,super.parseFunctionStatement(r,!1,!1);case 80:return r.declare=!0,this.parseClass(r,!0,!1);case 126:return this.tsParseEnumDeclaration(r,{declare:!0});case 112:return this.tsParseAmbientExternalModuleDeclaration(r);case 75:case 74:return!this.match(75)||!this.isLookaheadContextual("enum")?(r.declare=!0,this.parseVarStatement(r,i||this.state.value,!0)):(this.expect(75),this.tsParseEnumDeclaration(r,{const:!0,declare:!0}));case 129:{const s=this.tsParseInterfaceDeclaration(r,{declare:!0});if(s)return s}default:if(at(n))return this.tsParseDeclaration(r,this.state.value,!0,null)}})}tsTryParseExportDeclaration(){return this.tsParseDeclaration(this.startNode(),this.state.value,!0,null)}tsParseExpressionStatement(r,n,i){switch(n.name){case"declare":{const s=this.tsTryParseDeclare(r);return s&&(s.declare=!0),s}case"global":if(this.match(5)){this.scope.enter(256),this.prodParam.enter(0);const s=r;return s.global=!0,s.id=n,s.body=this.tsParseModuleBlock(),this.scope.exit(),this.prodParam.exit(),this.finishNode(s,"TSModuleDeclaration")}break;default:return this.tsParseDeclaration(r,n.name,!1,i)}}tsParseDeclaration(r,n,i,s){switch(n){case"abstract":if(this.tsCheckLineTerminator(i)&&(this.match(80)||at(this.state.type)))return this.tsParseAbstractDeclaration(r,s);break;case"module":if(this.tsCheckLineTerminator(i)){if(this.match(133))return this.tsParseAmbientExternalModuleDeclaration(r);if(at(this.state.type))return this.tsParseModuleOrNamespaceDeclaration(r)}break;case"namespace":if(this.tsCheckLineTerminator(i)&&at(this.state.type))return this.tsParseModuleOrNamespaceDeclaration(r);break;case"type":if(this.tsCheckLineTerminator(i)&&at(this.state.type))return this.tsParseTypeAliasDeclaration(r);break}}tsCheckLineTerminator(r){return r?this.hasFollowingLineBreak()?!1:(this.next(),!0):!this.isLineTerminator()}tsTryParseGenericAsyncArrowFunction(r){if(!this.match(47))return;const n=this.state.maybeInArrowParameters;this.state.maybeInArrowParameters=!0;const i=this.tsTryParseAndCatch(()=>{const s=this.startNodeAt(r);return s.typeParameters=this.tsParseTypeParameters(this.tsParseConstModifier),super.parseFunctionParams(s),s.returnType=this.tsTryParseTypeOrTypePredicateAnnotation(),this.expect(19),s});if(this.state.maybeInArrowParameters=n,!!i)return super.parseArrowExpression(i,null,!0)}tsParseTypeArgumentsInExpression(){if(this.reScan_lt()===47)return this.tsParseTypeArguments()}tsParseTypeArguments(){const r=this.startNode();return r.params=this.tsInType(()=>this.tsInNoContext(()=>(this.expect(47),this.tsParseDelimitedList("TypeParametersOrArguments",this.tsParseType.bind(this))))),r.params.length===0?this.raise(Fe.EmptyTypeArguments,r):!this.state.inType&&this.curContext()===lt.brace&&this.reScan_lt_gt(),this.expect(48),this.finishNode(r,"TSTypeParameterInstantiation")}tsIsDeclarationStart(){return ow(this.state.type)}isExportDefaultSpecifier(){return this.tsIsDeclarationStart()?!1:super.isExportDefaultSpecifier()}parseAssignableListItem(r,n){const i=this.state.startLoc,s={};this.tsParseModifiers({allowedModifiers:["public","private","protected","override","readonly"]},s);const a=s.accessibility,o=s.override,u=s.readonly;!(r&4)&&(a||u||o)&&this.raise(Fe.UnexpectedParameterModifier,i);const l=this.parseMaybeDefault();this.parseAssignableListItemTypes(l,r);const c=this.parseMaybeDefault(l.loc.start,l);if(a||u||o){const f=this.startNodeAt(i);return n.length&&(f.decorators=n),a&&(f.accessibility=a),u&&(f.readonly=u),o&&(f.override=o),c.type!=="Identifier"&&c.type!=="AssignmentPattern"&&this.raise(Fe.UnsupportedParameterPropertyKind,f),f.parameter=c,this.finishNode(f,"TSParameterProperty")}return n.length&&(l.decorators=n),c}isSimpleParameter(r){return r.type==="TSParameterProperty"&&super.isSimpleParameter(r.parameter)||super.isSimpleParameter(r)}tsDisallowOptionalPattern(r){for(const n of r.params)n.type!=="Identifier"&&n.optional&&!this.state.isAmbientContext&&this.raise(Fe.PatternIsOptional,n)}setArrowFunctionParameters(r,n,i){super.setArrowFunctionParameters(r,n,i),this.tsDisallowOptionalPattern(r)}parseFunctionBodyAndFinish(r,n,i=!1){this.match(14)&&(r.returnType=this.tsParseTypeOrTypePredicateAnnotation(14));const s=n==="FunctionDeclaration"?"TSDeclareFunction":n==="ClassMethod"||n==="ClassPrivateMethod"?"TSDeclareMethod":void 0;return s&&!this.match(5)&&this.isLineTerminator()?this.finishNode(r,s):s==="TSDeclareFunction"&&this.state.isAmbientContext&&(this.raise(Fe.DeclareFunctionHasImplementation,r),r.declare)?super.parseFunctionBodyAndFinish(r,s,i):(this.tsDisallowOptionalPattern(r),super.parseFunctionBodyAndFinish(r,n,i))}registerFunctionStatementId(r){!r.body&&r.id?this.checkIdentifier(r.id,1024):super.registerFunctionStatementId(r)}tsCheckForInvalidTypeCasts(r){r.forEach(n=>{(n==null?void 0:n.type)==="TSTypeCastExpression"&&this.raise(Fe.UnexpectedTypeAnnotation,n.typeAnnotation)})}toReferencedList(r,n){return this.tsCheckForInvalidTypeCasts(r),r}parseArrayLike(r,n,i,s){const a=super.parseArrayLike(r,n,i,s);return a.type==="ArrayExpression"&&this.tsCheckForInvalidTypeCasts(a.elements),a}parseSubscript(r,n,i,s){if(!this.hasPrecedingLineBreak()&&this.match(35)){this.state.canStartJSXElement=!1,this.next();const o=this.startNodeAt(n);return o.expression=r,this.finishNode(o,"TSNonNullExpression")}let a=!1;if(this.match(18)&&this.lookaheadCharCode()===60){if(i)return s.stop=!0,r;s.optionalChainMember=a=!0,this.next()}if(this.match(47)||this.match(51)){let o;const u=this.tsTryParseAndCatch(()=>{if(!i&&this.atPossibleAsyncArrow(r)){const p=this.tsTryParseGenericAsyncArrowFunction(n);if(p)return p}const l=this.tsParseTypeArgumentsInExpression();if(!l)return;if(a&&!this.match(10)){o=this.state.curPosition();return}if(go(this.state.type)){const p=super.parseTaggedTemplateExpression(r,n,s);return p.typeParameters=l,p}if(!i&&this.eat(10)){const p=this.startNodeAt(n);return p.callee=r,p.arguments=this.parseCallExpressionArguments(11,!1),this.tsCheckForInvalidTypeCasts(p.arguments),p.typeParameters=l,s.optionalChainMember&&(p.optional=a),this.finishCallExpression(p,s.optionalChainMember)}const c=this.state.type;if(c===48||c===52||c!==10&&kl(c)&&!this.hasPrecedingLineBreak())return;const f=this.startNodeAt(n);return f.expression=r,f.typeParameters=l,this.finishNode(f,"TSInstantiationExpression")});if(o&&this.unexpected(o,10),u)return u.type==="TSInstantiationExpression"&&(this.match(16)||this.match(18)&&this.lookaheadCharCode()!==40)&&this.raise(Fe.InvalidPropertyAccessAfterInstantiationExpression,this.state.startLoc),u}return super.parseSubscript(r,n,i,s)}parseNewCallee(r){var n;super.parseNewCallee(r);const{callee:i}=r;i.type==="TSInstantiationExpression"&&!((n=i.extra)!=null&&n.parenthesized)&&(r.typeParameters=i.typeParameters,r.callee=i.expression)}parseExprOp(r,n,i){let s;if(Qa(58)>i&&!this.hasPrecedingLineBreak()&&(this.isContextual(93)||(s=this.isContextual(120)))){const a=this.startNodeAt(n);return a.expression=r,a.typeAnnotation=this.tsInType(()=>(this.next(),this.match(75)?(s&&this.raise(ee.UnexpectedKeyword,this.state.startLoc,{keyword:"const"}),this.tsParseTypeReference()):this.tsParseType())),this.finishNode(a,s?"TSSatisfiesExpression":"TSAsExpression"),this.reScan_lt_gt(),this.parseExprOp(a,n,i)}return super.parseExprOp(r,n,i)}checkReservedWord(r,n,i,s){this.state.isAmbientContext||super.checkReservedWord(r,n,i,s)}checkImportReflection(r){super.checkImportReflection(r),r.module&&r.importKind!=="value"&&this.raise(Fe.ImportReflectionHasImportType,r.specifiers[0].loc.start)}checkDuplicateExports(){}isPotentialImportPhase(r){if(super.isPotentialImportPhase(r))return!0;if(this.isContextual(130)){const n=this.lookaheadCharCode();return r?n===123||n===42:n!==61}return!r&&this.isContextual(87)}applyImportPhase(r,n,i,s){super.applyImportPhase(r,n,i,s),n?r.exportKind=i==="type"?"type":"value":r.importKind=i==="type"||i==="typeof"?i:"value"}parseImport(r){if(this.match(133))return r.importKind="value",super.parseImport(r);let n;if(at(this.state.type)&&this.lookaheadCharCode()===61)return r.importKind="value",this.tsParseImportEqualsDeclaration(r);if(this.isContextual(130)){const i=this.parseMaybeImportPhase(r,!1);if(this.lookaheadCharCode()===61)return this.tsParseImportEqualsDeclaration(r,i);n=super.parseImportSpecifiersAndAfter(r,i)}else n=super.parseImport(r);return n.importKind==="type"&&n.specifiers.length>1&&n.specifiers[0].type==="ImportDefaultSpecifier"&&this.raise(Fe.TypeImportCannotSpecifyDefaultAndNamed,n),n}parseExport(r,n){if(this.match(83)){this.next();const i=r;let s=null;return this.isContextual(130)&&this.isPotentialImportPhase(!1)?s=this.parseMaybeImportPhase(i,!1):i.importKind="value",this.tsParseImportEqualsDeclaration(i,s,!0)}else if(this.eat(29)){const i=r;return i.expression=super.parseExpression(),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(i,"TSExportAssignment")}else if(this.eatContextual(93)){const i=r;return this.expectContextual(128),i.id=this.parseIdentifier(),this.semicolon(),this.finishNode(i,"TSNamespaceExportDeclaration")}else return super.parseExport(r,n)}isAbstractClass(){return this.isContextual(124)&&this.lookahead().type===80}parseExportDefaultExpression(){if(this.isAbstractClass()){const r=this.startNode();return this.next(),r.abstract=!0,this.parseClass(r,!0,!0)}if(this.match(129)){const r=this.tsParseInterfaceDeclaration(this.startNode());if(r)return r}return super.parseExportDefaultExpression()}parseVarStatement(r,n,i=!1){const{isAmbientContext:s}=this.state,a=super.parseVarStatement(r,n,i||s);if(!s)return a;for(const{id:o,init:u}of a.declarations)u&&(n!=="const"||o.typeAnnotation?this.raise(Fe.InitializerNotAllowedInAmbientContext,u):iI(u,this.hasPlugin("estree"))||this.raise(Fe.ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference,u));return a}parseStatementContent(r,n){if(this.match(75)&&this.isLookaheadContextual("enum")){const i=this.startNode();return this.expect(75),this.tsParseEnumDeclaration(i,{const:!0})}if(this.isContextual(126))return this.tsParseEnumDeclaration(this.startNode());if(this.isContextual(129)){const i=this.tsParseInterfaceDeclaration(this.startNode());if(i)return i}return super.parseStatementContent(r,n)}parseAccessModifier(){return this.tsParseModifier(["public","protected","private"])}tsHasSomeModifiers(r,n){return n.some(i=>oh(i)?r.accessibility===i:!!r[i])}tsIsStartOfStaticBlocks(){return this.isContextual(106)&&this.lookaheadCharCode()===123}parseClassMember(r,n,i){const s=["declare","private","public","protected","override","abstract","readonly","static"];this.tsParseModifiers({allowedModifiers:s,disallowedModifiers:["in","out"],stopOnStartOfClassStaticBlock:!0,errorTemplate:Fe.InvalidModifierOnTypeParameterPositions},n);const a=()=>{this.tsIsStartOfStaticBlocks()?(this.next(),this.next(),this.tsHasSomeModifiers(n,s)&&this.raise(Fe.StaticBlockCannotHaveModifier,this.state.curPosition()),super.parseClassStaticBlock(r,n)):this.parseClassMemberWithIsStatic(r,n,i,!!n.static)};n.declare?this.tsInAmbientContext(a):a()}parseClassMemberWithIsStatic(r,n,i,s){const a=this.tsTryParseIndexSignature(n);if(a){r.body.push(a),n.abstract&&this.raise(Fe.IndexSignatureHasAbstract,n),n.accessibility&&this.raise(Fe.IndexSignatureHasAccessibility,n,{modifier:n.accessibility}),n.declare&&this.raise(Fe.IndexSignatureHasDeclare,n),n.override&&this.raise(Fe.IndexSignatureHasOverride,n);return}!this.state.inAbstractClass&&n.abstract&&this.raise(Fe.NonAbstractClassHasAbstractMethod,n),n.override&&(i.hadSuperClass||this.raise(Fe.OverrideNotInSubClass,n)),super.parseClassMemberWithIsStatic(r,n,i,s)}parsePostMemberNameModifiers(r){this.eat(17)&&(r.optional=!0),r.readonly&&this.match(10)&&this.raise(Fe.ClassMethodHasReadonly,r),r.declare&&this.match(10)&&this.raise(Fe.ClassMethodHasDeclare,r)}parseExpressionStatement(r,n,i){return(n.type==="Identifier"?this.tsParseExpressionStatement(r,n,i):void 0)||super.parseExpressionStatement(r,n,i)}shouldParseExportDeclaration(){return this.tsIsDeclarationStart()?!0:super.shouldParseExportDeclaration()}parseConditional(r,n,i){if(!this.state.maybeInArrowParameters||!this.match(17))return super.parseConditional(r,n,i);const s=this.tryParse(()=>super.parseConditional(r,n));return s.node?(s.error&&(this.state=s.failState),s.node):(s.error&&super.setOptionalParametersError(i,s.error),r)}parseParenItem(r,n){const i=super.parseParenItem(r,n);if(this.eat(17)&&(i.optional=!0,this.resetEndLocation(r)),this.match(14)){const s=this.startNodeAt(n);return s.expression=r,s.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(s,"TSTypeCastExpression")}return r}parseExportDeclaration(r){if(!this.state.isAmbientContext&&this.isContextual(125))return this.tsInAmbientContext(()=>this.parseExportDeclaration(r));const n=this.state.startLoc,i=this.eatContextual(125);if(i&&(this.isContextual(125)||!this.shouldParseExportDeclaration()))throw this.raise(Fe.ExpectedAmbientAfterExportDeclare,this.state.startLoc);const a=at(this.state.type)&&this.tsTryParseExportDeclaration()||super.parseExportDeclaration(r);return a?((a.type==="TSInterfaceDeclaration"||a.type==="TSTypeAliasDeclaration"||i)&&(r.exportKind="type"),i&&(this.resetStartLocation(a,n),a.declare=!0),a):null}parseClassId(r,n,i,s){if((!n||i)&&this.isContextual(113))return;super.parseClassId(r,n,i,r.declare?1024:8331);const a=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers);a&&(r.typeParameters=a)}parseClassPropertyAnnotation(r){r.optional||(this.eat(35)?r.definite=!0:this.eat(17)&&(r.optional=!0));const n=this.tsTryParseTypeAnnotation();n&&(r.typeAnnotation=n)}parseClassProperty(r){if(this.parseClassPropertyAnnotation(r),this.state.isAmbientContext&&!(r.readonly&&!r.typeAnnotation)&&this.match(29)&&this.raise(Fe.DeclareClassFieldHasInitializer,this.state.startLoc),r.abstract&&this.match(29)){const{key:n}=r;this.raise(Fe.AbstractPropertyHasInitializer,this.state.startLoc,{propertyName:n.type==="Identifier"&&!r.computed?n.name:`[${this.input.slice(n.start,n.end)}]`})}return super.parseClassProperty(r)}parseClassPrivateProperty(r){return r.abstract&&this.raise(Fe.PrivateElementHasAbstract,r),r.accessibility&&this.raise(Fe.PrivateElementHasAccessibility,r,{modifier:r.accessibility}),this.parseClassPropertyAnnotation(r),super.parseClassPrivateProperty(r)}parseClassAccessorProperty(r){return this.parseClassPropertyAnnotation(r),r.optional&&this.raise(Fe.AccessorCannotBeOptional,r),super.parseClassAccessorProperty(r)}pushClassMethod(r,n,i,s,a,o){const u=this.tsTryParseTypeParameters(this.tsParseConstModifier);u&&a&&this.raise(Fe.ConstructorHasTypeParameters,u);const{declare:l=!1,kind:c}=n;l&&(c==="get"||c==="set")&&this.raise(Fe.DeclareAccessor,n,{kind:c}),u&&(n.typeParameters=u),super.pushClassMethod(r,n,i,s,a,o)}pushClassPrivateMethod(r,n,i,s){const a=this.tsTryParseTypeParameters(this.tsParseConstModifier);a&&(n.typeParameters=a),super.pushClassPrivateMethod(r,n,i,s)}declareClassPrivateMethodInScope(r,n){r.type!=="TSDeclareMethod"&&(r.type==="MethodDefinition"&&!hasOwnProperty.call(r.value,"body")||super.declareClassPrivateMethodInScope(r,n))}parseClassSuper(r){super.parseClassSuper(r),r.superClass&&(this.match(47)||this.match(51))&&(r.superTypeParameters=this.tsParseTypeArgumentsInExpression()),this.eatContextual(113)&&(r.implements=this.tsParseHeritageClause("implements"))}parseObjPropValue(r,n,i,s,a,o,u){const l=this.tsTryParseTypeParameters(this.tsParseConstModifier);return l&&(r.typeParameters=l),super.parseObjPropValue(r,n,i,s,a,o,u)}parseFunctionParams(r,n){const i=this.tsTryParseTypeParameters(this.tsParseConstModifier);i&&(r.typeParameters=i),super.parseFunctionParams(r,n)}parseVarId(r,n){super.parseVarId(r,n),r.id.type==="Identifier"&&!this.hasPrecedingLineBreak()&&this.eat(35)&&(r.definite=!0);const i=this.tsTryParseTypeAnnotation();i&&(r.id.typeAnnotation=i,this.resetEndLocation(r.id))}parseAsyncArrowFromCallExpression(r,n){return this.match(14)&&(r.returnType=this.tsParseTypeAnnotation()),super.parseAsyncArrowFromCallExpression(r,n)}parseMaybeAssign(r,n){var i,s,a,o,u;let l,c,f;if(this.hasPlugin("jsx")&&(this.match(142)||this.match(47))){if(l=this.state.clone(),c=this.tryParse(()=>super.parseMaybeAssign(r,n),l),!c.error)return c.node;const{context:d}=this.state,m=d[d.length-1];(m===lt.j_oTag||m===lt.j_expr)&&d.pop()}if(!((i=c)!=null&&i.error)&&!this.match(47))return super.parseMaybeAssign(r,n);(!l||l===this.state)&&(l=this.state.clone());let p;const h=this.tryParse(d=>{var m,D;p=this.tsParseTypeParameters(this.tsParseConstModifier);const g=super.parseMaybeAssign(r,n);return(g.type!=="ArrowFunctionExpression"||(m=g.extra)!=null&&m.parenthesized)&&d(),((D=p)==null?void 0:D.params.length)!==0&&this.resetStartLocationFromNode(g,p),g.typeParameters=p,g},l);if(!h.error&&!h.aborted)return p&&this.reportReservedArrowTypeParam(p),h.node;if(!c&&(ah(!this.hasPlugin("jsx")),f=this.tryParse(()=>super.parseMaybeAssign(r,n),l),!f.error))return f.node;if((s=c)!=null&&s.node)return this.state=c.failState,c.node;if(h.node)return this.state=h.failState,p&&this.reportReservedArrowTypeParam(p),h.node;if((a=f)!=null&&a.node)return this.state=f.failState,f.node;throw((o=c)==null?void 0:o.error)||h.error||((u=f)==null?void 0:u.error)}reportReservedArrowTypeParam(r){var n;r.params.length===1&&!r.params[0].constraint&&!((n=r.extra)!=null&&n.trailingComma)&&this.getPluginOption("typescript","disallowAmbiguousJSXLike")&&this.raise(Fe.ReservedArrowTypeParam,r)}parseMaybeUnary(r,n){return!this.hasPlugin("jsx")&&this.match(47)?this.tsParseTypeAssertion():super.parseMaybeUnary(r,n)}parseArrow(r){if(this.match(14)){const n=this.tryParse(i=>{const s=this.tsParseTypeOrTypePredicateAnnotation(14);return(this.canInsertSemicolon()||!this.match(19))&&i(),s});if(n.aborted)return;n.thrown||(n.error&&(this.state=n.failState),r.returnType=n.node)}return super.parseArrow(r)}parseAssignableListItemTypes(r,n){if(!(n&2))return r;this.eat(17)&&(r.optional=!0);const i=this.tsTryParseTypeAnnotation();return i&&(r.typeAnnotation=i),this.resetEndLocation(r),r}isAssignable(r,n){switch(r.type){case"TSTypeCastExpression":return this.isAssignable(r.expression,n);case"TSParameterProperty":return!0;default:return super.isAssignable(r,n)}}toAssignable(r,n=!1){switch(r.type){case"ParenthesizedExpression":this.toAssignableParenthesizedExpression(r,n);break;case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":n?this.expressionScope.recordArrowParameterBindingError(Fe.UnexpectedTypeCastInParameter,r):this.raise(Fe.UnexpectedTypeCastInParameter,r),this.toAssignable(r.expression,n);break;case"AssignmentExpression":!n&&r.left.type==="TSTypeCastExpression"&&(r.left=this.typeCastToParameter(r.left));default:super.toAssignable(r,n)}}toAssignableParenthesizedExpression(r,n){switch(r.expression.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":case"ParenthesizedExpression":this.toAssignable(r.expression,n);break;default:super.toAssignable(r,n)}}checkToRestConversion(r,n){switch(r.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":this.checkToRestConversion(r.expression,!1);break;default:super.checkToRestConversion(r,n)}}isValidLVal(r,n,i){switch(r){case"TSTypeCastExpression":return!0;case"TSParameterProperty":return"parameter";case"TSNonNullExpression":case"TSInstantiationExpression":return"expression";case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":return(i!==64||!n)&&["expression",!0];default:return super.isValidLVal(r,n,i)}}parseBindingAtom(){return this.state.type===78?this.parseIdentifier(!0):super.parseBindingAtom()}parseMaybeDecoratorArguments(r){if(this.match(47)||this.match(51)){const n=this.tsParseTypeArgumentsInExpression();if(this.match(10)){const i=super.parseMaybeDecoratorArguments(r);return i.typeParameters=n,i}this.unexpected(null,10)}return super.parseMaybeDecoratorArguments(r)}checkCommaAfterRest(r){return this.state.isAmbientContext&&this.match(12)&&this.lookaheadCharCode()===r?(this.next(),!1):super.checkCommaAfterRest(r)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(35)||this.match(14)||super.isClassProperty()}parseMaybeDefault(r,n){const i=super.parseMaybeDefault(r,n);return i.type==="AssignmentPattern"&&i.typeAnnotation&&i.right.start<i.typeAnnotation.start&&this.raise(Fe.TypeAnnotationAfterAssign,i.typeAnnotation),i}getTokenFromCode(r){if(this.state.inType){if(r===62){this.finishOp(48,1);return}if(r===60){this.finishOp(47,1);return}}super.getTokenFromCode(r)}reScan_lt_gt(){const{type:r}=this.state;r===47?(this.state.pos-=1,this.readToken_lt()):r===48&&(this.state.pos-=1,this.readToken_gt())}reScan_lt(){const{type:r}=this.state;return r===51?(this.state.pos-=2,this.finishOp(47,1),47):r}toAssignableList(r,n,i){for(let s=0;s<r.length;s++){const a=r[s];(a==null?void 0:a.type)==="TSTypeCastExpression"&&(r[s]=this.typeCastToParameter(a))}super.toAssignableList(r,n,i)}typeCastToParameter(r){return r.expression.typeAnnotation=r.typeAnnotation,this.resetEndLocation(r.expression,r.typeAnnotation.loc.end),r.expression}shouldParseArrow(r){return this.match(14)?r.every(n=>this.isAssignable(n,!0)):super.shouldParseArrow(r)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}canHaveLeadingDecorator(){return super.canHaveLeadingDecorator()||this.isAbstractClass()}jsxParseOpeningElementAfterName(r){if(this.match(47)||this.match(51)){const n=this.tsTryParseAndCatch(()=>this.tsParseTypeArgumentsInExpression());n&&(r.typeParameters=n)}return super.jsxParseOpeningElementAfterName(r)}getGetterSetterExpectedParamCount(r){const n=super.getGetterSetterExpectedParamCount(r),s=this.getObjectOrClassMethodParams(r)[0];return s&&this.isThisParam(s)?n+1:n}parseCatchClauseParam(){const r=super.parseCatchClauseParam(),n=this.tsTryParseTypeAnnotation();return n&&(r.typeAnnotation=n,this.resetEndLocation(r)),r}tsInAmbientContext(r){const{isAmbientContext:n,strict:i}=this.state;this.state.isAmbientContext=!0,this.state.strict=!1;try{return r()}finally{this.state.isAmbientContext=n,this.state.strict=i}}parseClass(r,n,i){const s=this.state.inAbstractClass;this.state.inAbstractClass=!!r.abstract;try{return super.parseClass(r,n,i)}finally{this.state.inAbstractClass=s}}tsParseAbstractDeclaration(r,n){if(this.match(80))return r.abstract=!0,this.maybeTakeDecorators(n,this.parseClass(r,!0,!1));if(this.isContextual(129)){if(!this.hasFollowingLineBreak())return r.abstract=!0,this.raise(Fe.NonClassMethodPropertyHasAbstractModifer,r),this.tsParseInterfaceDeclaration(r)}else this.unexpected(null,80)}parseMethod(r,n,i,s,a,o,u){const l=super.parseMethod(r,n,i,s,a,o,u);if(l.abstract&&(this.hasPlugin("estree")?!!l.value.body:!!l.body)){const{key:f}=l;this.raise(Fe.AbstractMethodHasImplementation,l,{methodName:f.type==="Identifier"&&!l.computed?f.name:`[${this.input.slice(f.start,f.end)}]`})}return l}tsParseTypeParameterName(){return this.parseIdentifier().name}shouldParseAsAmbientContext(){return!!this.getPluginOption("typescript","dts")}parse(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.parse()}getExpression(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.getExpression()}parseExportSpecifier(r,n,i,s){return!n&&s?(this.parseTypeOnlyImportExportSpecifier(r,!1,i),this.finishNode(r,"ExportSpecifier")):(r.exportKind="value",super.parseExportSpecifier(r,n,i,s))}parseImportSpecifier(r,n,i,s,a){return!n&&s?(this.parseTypeOnlyImportExportSpecifier(r,!0,i),this.finishNode(r,"ImportSpecifier")):(r.importKind="value",super.parseImportSpecifier(r,n,i,s,i?4098:4096))}parseTypeOnlyImportExportSpecifier(r,n,i){const s=n?"imported":"local",a=n?"local":"exported";let o=r[s],u,l=!1,c=!0;const f=o.loc.start;if(this.isContextual(93)){const h=this.parseIdentifier();if(this.isContextual(93)){const d=this.parseIdentifier();dr(this.state.type)?(l=!0,o=h,u=n?this.parseIdentifier():this.parseModuleExportName(),c=!1):(u=d,c=!1)}else dr(this.state.type)?(c=!1,u=n?this.parseIdentifier():this.parseModuleExportName()):(l=!0,o=h)}else dr(this.state.type)&&(l=!0,n?(o=this.parseIdentifier(!0),this.isContextual(93)||this.checkReservedWord(o.name,o.loc.start,!0,!0)):o=this.parseModuleExportName());l&&i&&this.raise(n?Fe.TypeModifierIsUsedInTypeImports:Fe.TypeModifierIsUsedInTypeExports,f),r[s]=o,r[a]=u;const p=n?"importKind":"exportKind";r[p]=l?"type":"value",c&&this.eatContextual(93)&&(r[a]=n?this.parseIdentifier():this.parseModuleExportName()),r[a]||(r[a]=Xr(r[s])),n&&this.checkIdentifier(r[a],l?4098:4096)}};function nI(e){if(e.type!=="MemberExpression")return!1;const{computed:t,property:r}=e;return t&&r.type!=="StringLiteral"&&(r.type!=="TemplateLiteral"||r.expressions.length>0)?!1:M0(e.object)}function iI(e,t){var r;const{type:n}=e;if((r=e.extra)!=null&&r.parenthesized)return!1;if(t){if(n==="Literal"){const{value:i}=e;if(typeof i=="string"||typeof i=="boolean")return!0}}else if(n==="StringLiteral"||n==="BooleanLiteral")return!0;return!!(R0(e,t)||sI(e,t)||n==="TemplateLiteral"&&e.expressions.length===0||nI(e))}function R0(e,t){return t?e.type==="Literal"&&(typeof e.value=="number"||"bigint"in e):e.type==="NumericLiteral"||e.type==="BigIntLiteral"}function sI(e,t){if(e.type==="UnaryExpression"){const{operator:r,argument:n}=e;if(r==="-"&&R0(n,t))return!0}return!1}function M0(e){return e.type==="Identifier"?!0:e.type!=="MemberExpression"||e.computed?!1:M0(e.object)}const uh=Gr`placeholders`({ClassNameIsRequired:"A class name is required.",UnexpectedSpace:"Unexpected space in placeholder."});var aI=e=>class extends e{parsePlaceholder(r){if(this.match(144)){const n=this.startNode();return this.next(),this.assertNoSpace(),n.name=super.parseIdentifier(!0),this.assertNoSpace(),this.expect(144),this.finishPlaceholder(n,r)}}finishPlaceholder(r,n){let i=r;return(!i.expectedNode||!i.type)&&(i=this.finishNode(i,"Placeholder")),i.expectedNode=n,i}getTokenFromCode(r){r===37&&this.input.charCodeAt(this.state.pos+1)===37?this.finishOp(144,2):super.getTokenFromCode(r)}parseExprAtom(r){return this.parsePlaceholder("Expression")||super.parseExprAtom(r)}parseIdentifier(r){return this.parsePlaceholder("Identifier")||super.parseIdentifier(r)}checkReservedWord(r,n,i,s){r!==void 0&&super.checkReservedWord(r,n,i,s)}parseBindingAtom(){return this.parsePlaceholder("Pattern")||super.parseBindingAtom()}isValidLVal(r,n,i){return r==="Placeholder"||super.isValidLVal(r,n,i)}toAssignable(r,n){r&&r.type==="Placeholder"&&r.expectedNode==="Expression"?r.expectedNode="Pattern":super.toAssignable(r,n)}chStartsBindingIdentifier(r,n){return!!(super.chStartsBindingIdentifier(r,n)||this.lookahead().type===144)}verifyBreakContinue(r,n){r.label&&r.label.type==="Placeholder"||super.verifyBreakContinue(r,n)}parseExpressionStatement(r,n){var i;if(n.type!=="Placeholder"||(i=n.extra)!=null&&i.parenthesized)return super.parseExpressionStatement(r,n);if(this.match(14)){const a=r;return a.label=this.finishPlaceholder(n,"Identifier"),this.next(),a.body=super.parseStatementOrSloppyAnnexBFunctionDeclaration(),this.finishNode(a,"LabeledStatement")}this.semicolon();const s=r;return s.name=n.name,this.finishPlaceholder(s,"Statement")}parseBlock(r,n,i){return this.parsePlaceholder("BlockStatement")||super.parseBlock(r,n,i)}parseFunctionId(r){return this.parsePlaceholder("Identifier")||super.parseFunctionId(r)}parseClass(r,n,i){const s=n?"ClassDeclaration":"ClassExpression";this.next();const a=this.state.strict,o=this.parsePlaceholder("Identifier");if(o)if(this.match(81)||this.match(144)||this.match(5))r.id=o;else{if(i||!n)return r.id=null,r.body=this.finishPlaceholder(o,"ClassBody"),this.finishNode(r,s);throw this.raise(uh.ClassNameIsRequired,this.state.startLoc)}else this.parseClassId(r,n,i);return super.parseClassSuper(r),r.body=this.parsePlaceholder("ClassBody")||super.parseClassBody(!!r.superClass,a),this.finishNode(r,s)}parseExport(r,n){const i=this.parsePlaceholder("Identifier");if(!i)return super.parseExport(r,n);const s=r;if(!this.isContextual(98)&&!this.match(12))return s.specifiers=[],s.source=null,s.declaration=this.finishPlaceholder(i,"Declaration"),this.finishNode(s,"ExportNamedDeclaration");this.expectPlugin("exportDefaultFrom");const a=this.startNode();return a.exported=i,s.specifiers=[this.finishNode(a,"ExportDefaultSpecifier")],super.parseExport(s,n)}isExportDefaultSpecifier(){if(this.match(65)){const r=this.nextTokenStart();if(this.isUnparsedContextual(r,"from")&&this.input.startsWith(bn(144),this.nextTokenStartSince(r+4)))return!0}return super.isExportDefaultSpecifier()}maybeParseExportDefaultSpecifier(r,n){var i;return(i=r.specifiers)!=null&&i.length?!0:super.maybeParseExportDefaultSpecifier(r,n)}checkExport(r){const{specifiers:n}=r;n!=null&&n.length&&(r.specifiers=n.filter(i=>i.exported.type==="Placeholder")),super.checkExport(r),r.specifiers=n}parseImport(r){const n=this.parsePlaceholder("Identifier");if(!n)return super.parseImport(r);if(r.specifiers=[],!this.isContextual(98)&&!this.match(12))return r.source=this.finishPlaceholder(n,"StringLiteral"),this.semicolon(),this.finishNode(r,"ImportDeclaration");const i=this.startNodeAtNode(n);return i.local=n,r.specifiers.push(this.finishNode(i,"ImportDefaultSpecifier")),this.eat(12)&&(this.maybeParseStarImportSpecifier(r)||this.parseNamedImportSpecifiers(r)),this.expectContextual(98),r.source=this.parseImportSource(),this.semicolon(),this.finishNode(r,"ImportDeclaration")}parseImportSource(){return this.parsePlaceholder("StringLiteral")||super.parseImportSource()}assertNoSpace(){this.state.start>this.state.lastTokEndLoc.index&&this.raise(uh.UnexpectedSpace,this.state.lastTokEndLoc)}},oI=e=>class extends e{parseV8Intrinsic(){if(this.match(54)){const r=this.state.startLoc,n=this.startNode();if(this.next(),at(this.state.type)){const i=this.parseIdentifierName(),s=this.createIdentifier(n,i);if(s.type="V8IntrinsicIdentifier",this.match(10))return s}this.unexpected(r)}}parseExprAtom(r){return this.parseV8Intrinsic()||super.parseExprAtom(r)}};const lh=["minimal","fsharp","hack","smart"],ch=["^^","@@","^","%","#"];function uI(e){if(e.has("decorators")){if(e.has("decorators-legacy"))throw new Error("Cannot use the decorators and decorators-legacy plugin together");const r=e.get("decorators").decoratorsBeforeExport;if(r!=null&&typeof r!="boolean")throw new Error("'decoratorsBeforeExport' must be a boolean, if specified.");const n=e.get("decorators").allowCallParenthesized;if(n!=null&&typeof n!="boolean")throw new Error("'allowCallParenthesized' must be a boolean.")}if(e.has("flow")&&e.has("typescript"))throw new Error("Cannot combine flow and typescript plugins.");if(e.has("placeholders")&&e.has("v8intrinsic"))throw new Error("Cannot combine placeholders and v8intrinsic plugins.");if(e.has("pipelineOperator")){var t;const r=e.get("pipelineOperator").proposal;if(!lh.includes(r)){const i=lh.map(s=>`"${s}"`).join(", ");throw new Error(`"pipelineOperator" requires "proposal" option whose value must be one of: ${i}.`)}const n=((t=e.get("recordAndTuple"))==null?void 0:t.syntaxType)==="hash";if(r==="hack"){if(e.has("placeholders"))throw new Error("Cannot combine placeholders plugin and Hack-style pipes.");if(e.has("v8intrinsic"))throw new Error("Cannot combine v8intrinsic plugin and Hack-style pipes.");const i=e.get("pipelineOperator").topicToken;if(!ch.includes(i)){const s=ch.map(a=>`"${a}"`).join(", ");throw new Error(`"pipelineOperator" in "proposal": "hack" mode also requires a "topicToken" option whose value must be one of: ${s}.`)}if(i==="#"&&n)throw new Error(`Plugin conflict between \`["pipelineOperator", { proposal: "hack", topicToken: "#" }]\` and \`${JSON.stringify(["recordAndTuple",e.get("recordAndTuple")])}\`.`)}else if(r==="smart"&&n)throw new Error(`Plugin conflict between \`["pipelineOperator", { proposal: "smart" }]\` and \`${JSON.stringify(["recordAndTuple",e.get("recordAndTuple")])}\`.`)}if(e.has("moduleAttributes")){if(e.has("importAttributes")||e.has("importAssertions"))throw new Error("Cannot combine importAssertions, importAttributes and moduleAttributes plugins.");if(e.get("moduleAttributes").version!=="may-2020")throw new Error("The 'moduleAttributes' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is 'may-2020'.")}if(e.has("importAttributes")&&e.has("importAssertions"))throw new Error("Cannot combine importAssertions and importAttributes plugins.");if(e.has("recordAndTuple")){const r=e.get("recordAndTuple").syntaxType;if(r!=null){const n=["hash","bar"];if(!n.includes(r))throw new Error("The 'syntaxType' option of the 'recordAndTuple' plugin must be one of: "+n.map(i=>`'${i}'`).join(", "))}}if(e.has("asyncDoExpressions")&&!e.has("doExpressions")){const r=new Error("'asyncDoExpressions' requires 'doExpressions', please add 'doExpressions' to parser plugins.");throw r.missingPlugins="doExpressions",r}if(e.has("optionalChainingAssign")&&e.get("optionalChainingAssign").version!=="2023-07")throw new Error("The 'optionalChainingAssign' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is '2023-07'.")}const j0={estree:J_,jsx:Xw,flow:Gw,typescript:rI,v8intrinsic:oI,placeholders:aI},lI=Object.keys(j0),ku={sourceType:"script",sourceFilename:void 0,startColumn:0,startLine:1,allowAwaitOutsideFunction:!1,allowReturnOutsideFunction:!1,allowNewTargetOutsideFunction:!1,allowImportExportEverywhere:!1,allowSuperOutsideMethod:!1,allowUndeclaredExports:!1,plugins:[],strictMode:null,ranges:!1,tokens:!1,createImportExpressions:!1,createParenthesizedExpressions:!1,errorRecovery:!1,attachComment:!0,annexB:!0};function cI(e){if(e==null)return Object.assign({},ku);if(e.annexB!=null&&e.annexB!==!1)throw new Error("The `annexB` option can only be set to `false`.");const t={};for(const n of Object.keys(ku)){var r;t[n]=(r=e[n])!=null?r:ku[n]}return t}class fI extends Qw{checkProto(t,r,n,i){if(t.type==="SpreadElement"||this.isObjectMethod(t)||t.computed||t.shorthand)return;const s=t.key;if((s.type==="Identifier"?s.name:s.value)==="__proto__"){if(r){this.raise(ee.RecordNoProto,s);return}n.used&&(i?i.doubleProtoLoc===null&&(i.doubleProtoLoc=s.loc.start):this.raise(ee.DuplicateProto,s)),n.used=!0}}shouldExitDescending(t,r){return t.type==="ArrowFunctionExpression"&&t.start===r}getExpression(){this.enterInitialScopes(),this.nextToken();const t=this.parseExpression();return this.match(139)||this.unexpected(),this.finalizeRemainingComments(),t.comments=this.comments,t.errors=this.state.errors,this.options.tokens&&(t.tokens=this.tokens),t}parseExpression(t,r){return t?this.disallowInAnd(()=>this.parseExpressionBase(r)):this.allowInAnd(()=>this.parseExpressionBase(r))}parseExpressionBase(t){const r=this.state.startLoc,n=this.parseMaybeAssign(t);if(this.match(12)){const i=this.startNodeAt(r);for(i.expressions=[n];this.eat(12);)i.expressions.push(this.parseMaybeAssign(t));return this.toReferencedList(i.expressions),this.finishNode(i,"SequenceExpression")}return n}parseMaybeAssignDisallowIn(t,r){return this.disallowInAnd(()=>this.parseMaybeAssign(t,r))}parseMaybeAssignAllowIn(t,r){return this.allowInAnd(()=>this.parseMaybeAssign(t,r))}setOptionalParametersError(t,r){var n;t.optionalParametersLoc=(n=r==null?void 0:r.loc)!=null?n:this.state.startLoc}parseMaybeAssign(t,r){const n=this.state.startLoc;if(this.isContextual(108)&&this.prodParam.hasYield){let o=this.parseYield();return r&&(o=r.call(this,o,n)),o}let i;t?i=!1:(t=new eo,i=!0);const{type:s}=this.state;(s===10||at(s))&&(this.state.potentialArrowAt=this.state.start);let a=this.parseMaybeConditional(t);if(r&&(a=r.call(this,a,n)),tw(this.state.type)){const o=this.startNodeAt(n),u=this.state.value;if(o.operator=u,this.match(29)){this.toAssignable(a,!0),o.left=a;const l=n.index;t.doubleProtoLoc!=null&&t.doubleProtoLoc.index>=l&&(t.doubleProtoLoc=null),t.shorthandAssignLoc!=null&&t.shorthandAssignLoc.index>=l&&(t.shorthandAssignLoc=null),t.privateKeyLoc!=null&&t.privateKeyLoc.index>=l&&(this.checkDestructuringPrivate(t),t.privateKeyLoc=null)}else o.left=a;return this.next(),o.right=this.parseMaybeAssign(),this.checkLVal(a,this.finishNode(o,"AssignmentExpression")),o}else i&&this.checkExpressionErrors(t,!0);return a}parseMaybeConditional(t){const r=this.state.startLoc,n=this.state.potentialArrowAt,i=this.parseExprOps(t);return this.shouldExitDescending(i,n)?i:this.parseConditional(i,r,t)}parseConditional(t,r,n){if(this.eat(17)){const i=this.startNodeAt(r);return i.test=t,i.consequent=this.parseMaybeAssignAllowIn(),this.expect(14),i.alternate=this.parseMaybeAssign(),this.finishNode(i,"ConditionalExpression")}return t}parseMaybeUnaryOrPrivate(t){return this.match(138)?this.parsePrivateName():this.parseMaybeUnary(t)}parseExprOps(t){const r=this.state.startLoc,n=this.state.potentialArrowAt,i=this.parseMaybeUnaryOrPrivate(t);return this.shouldExitDescending(i,n)?i:this.parseExprOp(i,r,-1)}parseExprOp(t,r,n){if(this.isPrivateName(t)){const s=this.getPrivateNameSV(t);(n>=Qa(58)||!this.prodParam.hasIn||!this.match(58))&&this.raise(ee.PrivateInExpectedIn,t,{identifierName:s}),this.classScope.usePrivateName(s,t.loc.start)}const i=this.state.type;if(nw(i)&&(this.prodParam.hasIn||!this.match(58))){let s=Qa(i);if(s>n){if(i===39){if(this.expectPlugin("pipelineOperator"),this.state.inFSharpPipelineDirectBody)return t;this.checkPipelineAtInfixOperator(t,r)}const a=this.startNodeAt(r);a.left=t,a.operator=this.state.value;const o=i===41||i===42,u=i===40;if(u&&(s=Qa(42)),this.next(),i===39&&this.hasPlugin(["pipelineOperator",{proposal:"minimal"}])&&this.state.type===96&&this.prodParam.hasAwait)throw this.raise(ee.UnexpectedAwaitAfterPipelineBody,this.state.startLoc);a.right=this.parseExprOpRightExpr(i,s);const l=this.finishNode(a,o||u?"LogicalExpression":"BinaryExpression"),c=this.state.type;if(u&&(c===41||c===42)||o&&c===40)throw this.raise(ee.MixingCoalesceWithLogical,this.state.startLoc);return this.parseExprOp(l,r,n)}}return t}parseExprOpRightExpr(t,r){const n=this.state.startLoc;switch(t){case 39:switch(this.getPluginOption("pipelineOperator","proposal")){case"hack":return this.withTopicBindingContext(()=>this.parseHackPipeBody());case"smart":return this.withTopicBindingContext(()=>{if(this.prodParam.hasYield&&this.isContextual(108))throw this.raise(ee.PipeBodyIsTighter,this.state.startLoc);return this.parseSmartPipelineBodyInStyle(this.parseExprOpBaseRightExpr(t,r),n)});case"fsharp":return this.withSoloAwaitPermittingContext(()=>this.parseFSharpPipelineBody(r))}default:return this.parseExprOpBaseRightExpr(t,r)}}parseExprOpBaseRightExpr(t,r){const n=this.state.startLoc;return this.parseExprOp(this.parseMaybeUnaryOrPrivate(),n,uw(t)?r-1:r)}parseHackPipeBody(){var t;const{startLoc:r}=this.state,n=this.parseMaybeAssign();return W_.has(n.type)&&!((t=n.extra)!=null&&t.parenthesized)&&this.raise(ee.PipeUnparenthesizedBody,r,{type:n.type}),this.topicReferenceWasUsedInCurrentContext()||this.raise(ee.PipeTopicUnused,r),n}checkExponentialAfterUnary(t){this.match(57)&&this.raise(ee.UnexpectedTokenUnaryExponentiation,t.argument)}parseMaybeUnary(t,r){const n=this.state.startLoc,i=this.isContextual(96);if(i&&this.recordAwaitIfAllowed()){this.next();const u=this.parseAwait(n);return r||this.checkExponentialAfterUnary(u),u}const s=this.match(34),a=this.startNode();if(sw(this.state.type)){a.operator=this.state.value,a.prefix=!0,this.match(72)&&this.expectPlugin("throwExpressions");const u=this.match(89);if(this.next(),a.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(t,!0),this.state.strict&&u){const l=a.argument;l.type==="Identifier"?this.raise(ee.StrictDelete,a):this.hasPropertyAsPrivateName(l)&&this.raise(ee.DeletePrivateField,a)}if(!s)return r||this.checkExponentialAfterUnary(a),this.finishNode(a,"UnaryExpression")}const o=this.parseUpdate(a,s,t);if(i){const{type:u}=this.state;if((this.hasPlugin("v8intrinsic")?kl(u):kl(u)&&!this.match(54))&&!this.isAmbiguousAwait())return this.raiseOverwrite(ee.AwaitNotInAsyncContext,n),this.parseAwait(n)}return o}parseUpdate(t,r,n){if(r){const a=t;return this.checkLVal(a.argument,this.finishNode(a,"UpdateExpression")),t}const i=this.state.startLoc;let s=this.parseExprSubscripts(n);if(this.checkExpressionErrors(n,!1))return s;for(;iw(this.state.type)&&!this.canInsertSemicolon();){const a=this.startNodeAt(i);a.operator=this.state.value,a.prefix=!1,a.argument=s,this.next(),this.checkLVal(s,s=this.finishNode(a,"UpdateExpression"))}return s}parseExprSubscripts(t){const r=this.state.startLoc,n=this.state.potentialArrowAt,i=this.parseExprAtom(t);return this.shouldExitDescending(i,n)?i:this.parseSubscripts(i,r)}parseSubscripts(t,r,n){const i={optionalChainMember:!1,maybeAsyncArrow:this.atPossibleAsyncArrow(t),stop:!1};do t=this.parseSubscript(t,r,n,i),i.maybeAsyncArrow=!1;while(!i.stop);return t}parseSubscript(t,r,n,i){const{type:s}=this.state;if(!n&&s===15)return this.parseBind(t,r,n,i);if(go(s))return this.parseTaggedTemplateExpression(t,r,i);let a=!1;if(s===18){if(n&&(this.raise(ee.OptionalChainingNoNew,this.state.startLoc),this.lookaheadCharCode()===40))return i.stop=!0,t;i.optionalChainMember=a=!0,this.next()}if(!n&&this.match(10))return this.parseCoverCallAndAsyncArrowHead(t,r,i,a);{const o=this.eat(0);return o||a||this.eat(16)?this.parseMember(t,r,i,o,a):(i.stop=!0,t)}}parseMember(t,r,n,i,s){const a=this.startNodeAt(r);return a.object=t,a.computed=i,i?(a.property=this.parseExpression(),this.expect(3)):this.match(138)?(t.type==="Super"&&this.raise(ee.SuperPrivateField,r),this.classScope.usePrivateName(this.state.value,this.state.startLoc),a.property=this.parsePrivateName()):a.property=this.parseIdentifier(!0),n.optionalChainMember?(a.optional=s,this.finishNode(a,"OptionalMemberExpression")):this.finishNode(a,"MemberExpression")}parseBind(t,r,n,i){const s=this.startNodeAt(r);return s.object=t,this.next(),s.callee=this.parseNoCallExpr(),i.stop=!0,this.parseSubscripts(this.finishNode(s,"BindExpression"),r,n)}parseCoverCallAndAsyncArrowHead(t,r,n,i){const s=this.state.maybeInArrowParameters;let a=null;this.state.maybeInArrowParameters=!0,this.next();const o=this.startNodeAt(r);o.callee=t;const{maybeAsyncArrow:u,optionalChainMember:l}=n;u&&(this.expressionScope.enter(kw()),a=new eo),l&&(o.optional=i),i?o.arguments=this.parseCallExpressionArguments(11):o.arguments=this.parseCallExpressionArguments(11,t.type==="Import",t.type!=="Super",o,a);let c=this.finishCallExpression(o,l);return u&&this.shouldParseAsyncArrow()&&!i?(n.stop=!0,this.checkDestructuringPrivate(a),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),c=this.parseAsyncArrowFromCallExpression(this.startNodeAt(r),c)):(u&&(this.checkExpressionErrors(a,!0),this.expressionScope.exit()),this.toReferencedArguments(c)),this.state.maybeInArrowParameters=s,c}toReferencedArguments(t,r){this.toReferencedListDeep(t.arguments,r)}parseTaggedTemplateExpression(t,r,n){const i=this.startNodeAt(r);return i.tag=t,i.quasi=this.parseTemplate(!0),n.optionalChainMember&&this.raise(ee.OptionalChainingNoTemplate,r),this.finishNode(i,"TaggedTemplateExpression")}atPossibleAsyncArrow(t){return t.type==="Identifier"&&t.name==="async"&&this.state.lastTokEndLoc.index===t.end&&!this.canInsertSemicolon()&&t.end-t.start===5&&t.start===this.state.potentialArrowAt}expectImportAttributesPlugin(){this.hasPlugin("importAssertions")||this.expectPlugin("importAttributes")}finishCallExpression(t,r){if(t.callee.type==="Import")if(t.arguments.length===2&&(this.hasPlugin("moduleAttributes")||this.expectImportAttributesPlugin()),t.arguments.length===0||t.arguments.length>2)this.raise(ee.ImportCallArity,t,{maxArgumentCount:this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions")||this.hasPlugin("moduleAttributes")?2:1});else for(const n of t.arguments)n.type==="SpreadElement"&&this.raise(ee.ImportCallSpreadArgument,n);return this.finishNode(t,r?"OptionalCallExpression":"CallExpression")}parseCallExpressionArguments(t,r,n,i,s){const a=[];let o=!0;const u=this.state.inFSharpPipelineDirectBody;for(this.state.inFSharpPipelineDirectBody=!1;!this.eat(t);){if(o)o=!1;else if(this.expect(12),this.match(t)){r&&!this.hasPlugin("importAttributes")&&!this.hasPlugin("importAssertions")&&!this.hasPlugin("moduleAttributes")&&this.raise(ee.ImportCallArgumentTrailingComma,this.state.lastTokStartLoc),i&&this.addTrailingCommaExtraToNode(i),this.next();break}a.push(this.parseExprListItem(!1,s,n))}return this.state.inFSharpPipelineDirectBody=u,a}shouldParseAsyncArrow(){return this.match(19)&&!this.canInsertSemicolon()}parseAsyncArrowFromCallExpression(t,r){var n;return this.resetPreviousNodeTrailingComments(r),this.expect(19),this.parseArrowExpression(t,r.arguments,!0,(n=r.extra)==null?void 0:n.trailingCommaLoc),r.innerComments&&Os(t,r.innerComments),r.callee.trailingComments&&Os(t,r.callee.trailingComments),t}parseNoCallExpr(){const t=this.state.startLoc;return this.parseSubscripts(this.parseExprAtom(),t,!0)}parseExprAtom(t){let r,n=null;const{type:i}=this.state;switch(i){case 79:return this.parseSuper();case 83:return r=this.startNode(),this.next(),this.match(16)?this.parseImportMetaProperty(r):this.match(10)?this.options.createImportExpressions?this.parseImportCall(r):this.finishNode(r,"Import"):(this.raise(ee.UnsupportedImport,this.state.lastTokStartLoc),this.finishNode(r,"Import"));case 78:return r=this.startNode(),this.next(),this.finishNode(r,"ThisExpression");case 90:return this.parseDo(this.startNode(),!1);case 56:case 31:return this.readRegexp(),this.parseRegExpLiteral(this.state.value);case 134:return this.parseNumericLiteral(this.state.value);case 135:return this.parseBigIntLiteral(this.state.value);case 136:return this.parseDecimalLiteral(this.state.value);case 133:return this.parseStringLiteral(this.state.value);case 84:return this.parseNullLiteral();case 85:return this.parseBooleanLiteral(!0);case 86:return this.parseBooleanLiteral(!1);case 10:{const s=this.state.potentialArrowAt===this.state.start;return this.parseParenAndDistinguishExpression(s)}case 2:case 1:return this.parseArrayLike(this.state.type===2?4:3,!1,!0);case 0:return this.parseArrayLike(3,!0,!1,t);case 6:case 7:return this.parseObjectLike(this.state.type===6?9:8,!1,!0);case 5:return this.parseObjectLike(8,!1,!1,t);case 68:return this.parseFunctionOrFunctionSent();case 26:n=this.parseDecorators();case 80:return this.parseClass(this.maybeTakeDecorators(n,this.startNode()),!1);case 77:return this.parseNewOrNewTarget();case 25:case 24:return this.parseTemplate(!1);case 15:{r=this.startNode(),this.next(),r.object=null;const s=r.callee=this.parseNoCallExpr();if(s.type==="MemberExpression")return this.finishNode(r,"BindExpression");throw this.raise(ee.UnsupportedBind,s)}case 138:return this.raise(ee.PrivateInExpectedIn,this.state.startLoc,{identifierName:this.state.value}),this.parsePrivateName();case 33:return this.parseTopicReferenceThenEqualsSign(54,"%");case 32:return this.parseTopicReferenceThenEqualsSign(44,"^");case 37:case 38:return this.parseTopicReference("hack");case 44:case 54:case 27:{const s=this.getPluginOption("pipelineOperator","proposal");if(s)return this.parseTopicReference(s);this.unexpected();break}case 47:{const s=this.input.codePointAt(this.nextTokenStart());Wr(s)||s===62?this.expectOnePlugin(["jsx","flow","typescript"]):this.unexpected();break}default:if(at(i)){if(this.isContextual(127)&&this.lookaheadInLineCharCode()===123)return this.parseModuleExpression();const s=this.state.potentialArrowAt===this.state.start,a=this.state.containsEsc,o=this.parseIdentifier();if(!a&&o.name==="async"&&!this.canInsertSemicolon()){const{type:u}=this.state;if(u===68)return this.resetPreviousNodeTrailingComments(o),this.next(),this.parseAsyncFunctionExpression(this.startNodeAtNode(o));if(at(u))return this.lookaheadCharCode()===61?this.parseAsyncArrowUnaryFunction(this.startNodeAtNode(o)):o;if(u===90)return this.resetPreviousNodeTrailingComments(o),this.parseDo(this.startNodeAtNode(o),!0)}return s&&this.match(19)&&!this.canInsertSemicolon()?(this.next(),this.parseArrowExpression(this.startNodeAtNode(o),[o],!1)):o}else this.unexpected()}}parseTopicReferenceThenEqualsSign(t,r){const n=this.getPluginOption("pipelineOperator","proposal");if(n)return this.state.type=t,this.state.value=r,this.state.pos--,this.state.end--,this.state.endLoc=$t(this.state.endLoc,-1),this.parseTopicReference(n);this.unexpected()}parseTopicReference(t){const r=this.startNode(),n=this.state.startLoc,i=this.state.type;return this.next(),this.finishTopicReference(r,n,t,i)}finishTopicReference(t,r,n,i){if(this.testTopicReferenceConfiguration(n,r,i)){const s=n==="smart"?"PipelinePrimaryTopicReference":"TopicReference";return this.topicReferenceIsAllowedInCurrentContext()||this.raise(n==="smart"?ee.PrimaryTopicNotAllowed:ee.PipeTopicUnbound,r),this.registerTopicReference(),this.finishNode(t,s)}else throw this.raise(ee.PipeTopicUnconfiguredToken,r,{token:bn(i)})}testTopicReferenceConfiguration(t,r,n){switch(t){case"hack":return this.hasPlugin(["pipelineOperator",{topicToken:bn(n)}]);case"smart":return n===27;default:throw this.raise(ee.PipeTopicRequiresHackPipes,r)}}parseAsyncArrowUnaryFunction(t){this.prodParam.enter(Za(!0,this.prodParam.hasYield));const r=[this.parseIdentifier()];return this.prodParam.exit(),this.hasPrecedingLineBreak()&&this.raise(ee.LineTerminatorBeforeArrow,this.state.curPosition()),this.expect(19),this.parseArrowExpression(t,r,!0)}parseDo(t,r){this.expectPlugin("doExpressions"),r&&this.expectPlugin("asyncDoExpressions"),t.async=r,this.next();const n=this.state.labels;return this.state.labels=[],r?(this.prodParam.enter(2),t.body=this.parseBlock(),this.prodParam.exit()):t.body=this.parseBlock(),this.state.labels=n,this.finishNode(t,"DoExpression")}parseSuper(){const t=this.startNode();return this.next(),this.match(10)&&!this.scope.allowDirectSuper&&!this.options.allowSuperOutsideMethod?this.raise(ee.SuperNotAllowed,t):!this.scope.allowSuper&&!this.options.allowSuperOutsideMethod&&this.raise(ee.UnexpectedSuper,t),!this.match(10)&&!this.match(0)&&!this.match(16)&&this.raise(ee.UnsupportedSuper,t),this.finishNode(t,"Super")}parsePrivateName(){const t=this.startNode(),r=this.startNodeAt($t(this.state.startLoc,1)),n=this.state.value;return this.next(),t.id=this.createIdentifier(r,n),this.finishNode(t,"PrivateName")}parseFunctionOrFunctionSent(){const t=this.startNode();if(this.next(),this.prodParam.hasYield&&this.match(16)){const r=this.createIdentifier(this.startNodeAtNode(t),"function");return this.next(),this.match(103)?this.expectPlugin("functionSent"):this.hasPlugin("functionSent")||this.unexpected(),this.parseMetaProperty(t,r,"sent")}return this.parseFunction(t)}parseMetaProperty(t,r,n){t.meta=r;const i=this.state.containsEsc;return t.property=this.parseIdentifier(!0),(t.property.name!==n||i)&&this.raise(ee.UnsupportedMetaProperty,t.property,{target:r.name,onlyValidPropertyName:n}),this.finishNode(t,"MetaProperty")}parseImportMetaProperty(t){const r=this.createIdentifier(this.startNodeAtNode(t),"import");if(this.next(),this.isContextual(101))this.inModule||this.raise(ee.ImportMetaOutsideModule,r),this.sawUnambiguousESM=!0;else if(this.isContextual(105)||this.isContextual(97)){const n=this.isContextual(105);if(n||this.unexpected(),this.expectPlugin(n?"sourcePhaseImports":"deferredImportEvaluation"),!this.options.createImportExpressions)throw this.raise(ee.DynamicImportPhaseRequiresImportExpressions,this.state.startLoc,{phase:this.state.value});return this.next(),t.phase=n?"source":"defer",this.parseImportCall(t)}return this.parseMetaProperty(t,r,"meta")}parseLiteralAtNode(t,r,n){return this.addExtra(n,"rawValue",t),this.addExtra(n,"raw",this.input.slice(n.start,this.state.end)),n.value=t,this.next(),this.finishNode(n,r)}parseLiteral(t,r){const n=this.startNode();return this.parseLiteralAtNode(t,r,n)}parseStringLiteral(t){return this.parseLiteral(t,"StringLiteral")}parseNumericLiteral(t){return this.parseLiteral(t,"NumericLiteral")}parseBigIntLiteral(t){return this.parseLiteral(t,"BigIntLiteral")}parseDecimalLiteral(t){return this.parseLiteral(t,"DecimalLiteral")}parseRegExpLiteral(t){const r=this.startNode();return this.addExtra(r,"raw",this.input.slice(r.start,this.state.end)),r.pattern=t.pattern,r.flags=t.flags,this.next(),this.finishNode(r,"RegExpLiteral")}parseBooleanLiteral(t){const r=this.startNode();return r.value=t,this.next(),this.finishNode(r,"BooleanLiteral")}parseNullLiteral(){const t=this.startNode();return this.next(),this.finishNode(t,"NullLiteral")}parseParenAndDistinguishExpression(t){const r=this.state.startLoc;let n;this.next(),this.expressionScope.enter(Lw());const i=this.state.maybeInArrowParameters,s=this.state.inFSharpPipelineDirectBody;this.state.maybeInArrowParameters=!0,this.state.inFSharpPipelineDirectBody=!1;const a=this.state.startLoc,o=[],u=new eo;let l=!0,c,f;for(;!this.match(11);){if(l)l=!1;else if(this.expect(12,u.optionalParametersLoc===null?null:u.optionalParametersLoc),this.match(11)){f=this.state.startLoc;break}if(this.match(21)){const d=this.state.startLoc;if(c=this.state.startLoc,o.push(this.parseParenItem(this.parseRestBinding(),d)),!this.checkCommaAfterRest(41))break}else o.push(this.parseMaybeAssignAllowIn(u,this.parseParenItem))}const p=this.state.lastTokEndLoc;this.expect(11),this.state.maybeInArrowParameters=i,this.state.inFSharpPipelineDirectBody=s;let h=this.startNodeAt(r);return t&&this.shouldParseArrow(o)&&(h=this.parseArrow(h))?(this.checkDestructuringPrivate(u),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),this.parseArrowExpression(h,o,!1),h):(this.expressionScope.exit(),o.length||this.unexpected(this.state.lastTokStartLoc),f&&this.unexpected(f),c&&this.unexpected(c),this.checkExpressionErrors(u,!0),this.toReferencedListDeep(o,!0),o.length>1?(n=this.startNodeAt(a),n.expressions=o,this.finishNode(n,"SequenceExpression"),this.resetEndLocation(n,p)):n=o[0],this.wrapParenthesis(r,n))}wrapParenthesis(t,r){if(!this.options.createParenthesizedExpressions)return this.addExtra(r,"parenthesized",!0),this.addExtra(r,"parenStart",t.index),this.takeSurroundingComments(r,t.index,this.state.lastTokEndLoc.index),r;const n=this.startNodeAt(t);return n.expression=r,this.finishNode(n,"ParenthesizedExpression")}shouldParseArrow(t){return!this.canInsertSemicolon()}parseArrow(t){if(this.eat(19))return t}parseParenItem(t,r){return t}parseNewOrNewTarget(){const t=this.startNode();if(this.next(),this.match(16)){const r=this.createIdentifier(this.startNodeAtNode(t),"new");this.next();const n=this.parseMetaProperty(t,r,"target");return!this.scope.inNonArrowFunction&&!this.scope.inClass&&!this.options.allowNewTargetOutsideFunction&&this.raise(ee.UnexpectedNewTarget,n),n}return this.parseNew(t)}parseNew(t){if(this.parseNewCallee(t),this.eat(10)){const r=this.parseExprList(11);this.toReferencedList(r),t.arguments=r}else t.arguments=[];return this.finishNode(t,"NewExpression")}parseNewCallee(t){const r=this.match(83),n=this.parseNoCallExpr();t.callee=n,r&&(n.type==="Import"||n.type==="ImportExpression")&&this.raise(ee.ImportCallNotNewExpression,n)}parseTemplateElement(t){const{start:r,startLoc:n,end:i,value:s}=this.state,a=r+1,o=this.startNodeAt($t(n,1));s===null&&(t||this.raise(ee.InvalidEscapeSequenceTemplate,$t(this.state.firstInvalidTemplateEscapePos,1)));const u=this.match(24),l=u?-1:-2,c=i+l;o.value={raw:this.input.slice(a,c).replace(/\r\n?/g,`
|
|
114
|
+
`),cooked:s===null?null:s.slice(1,l)},o.tail=u,this.next();const f=this.finishNode(o,"TemplateElement");return this.resetEndLocation(f,$t(this.state.lastTokEndLoc,l)),f}parseTemplate(t){const r=this.startNode();let n=this.parseTemplateElement(t);const i=[n],s=[];for(;!n.tail;)s.push(this.parseTemplateSubstitution()),this.readTemplateContinuation(),i.push(n=this.parseTemplateElement(t));return r.expressions=s,r.quasis=i,this.finishNode(r,"TemplateLiteral")}parseTemplateSubstitution(){return this.parseExpression()}parseObjectLike(t,r,n,i){n&&this.expectPlugin("recordAndTuple");const s=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;const a=Object.create(null);let o=!0;const u=this.startNode();for(u.properties=[],this.next();!this.match(t);){if(o)o=!1;else if(this.expect(12),this.match(t)){this.addTrailingCommaExtraToNode(u);break}let c;r?c=this.parseBindingProperty():(c=this.parsePropertyDefinition(i),this.checkProto(c,n,a,i)),n&&!this.isObjectProperty(c)&&c.type!=="SpreadElement"&&this.raise(ee.InvalidRecordProperty,c),c.shorthand&&this.addExtra(c,"shorthand",!0),u.properties.push(c)}this.next(),this.state.inFSharpPipelineDirectBody=s;let l="ObjectExpression";return r?l="ObjectPattern":n&&(l="RecordExpression"),this.finishNode(u,l)}addTrailingCommaExtraToNode(t){this.addExtra(t,"trailingComma",this.state.lastTokStartLoc.index),this.addExtra(t,"trailingCommaLoc",this.state.lastTokStartLoc,!1)}maybeAsyncOrAccessorProp(t){return!t.computed&&t.key.type==="Identifier"&&(this.isLiteralPropertyName()||this.match(0)||this.match(55))}parsePropertyDefinition(t){let r=[];if(this.match(26))for(this.hasPlugin("decorators")&&this.raise(ee.UnsupportedPropertyDecorator,this.state.startLoc);this.match(26);)r.push(this.parseDecorator());const n=this.startNode();let i=!1,s=!1,a;if(this.match(21))return r.length&&this.unexpected(),this.parseSpread();r.length&&(n.decorators=r,r=[]),n.method=!1,t&&(a=this.state.startLoc);let o=this.eat(55);this.parsePropertyNamePrefixOperator(n);const u=this.state.containsEsc;if(this.parsePropertyName(n,t),!o&&!u&&this.maybeAsyncOrAccessorProp(n)){const{key:l}=n,c=l.name;c==="async"&&!this.hasPrecedingLineBreak()&&(i=!0,this.resetPreviousNodeTrailingComments(l),o=this.eat(55),this.parsePropertyName(n)),(c==="get"||c==="set")&&(s=!0,this.resetPreviousNodeTrailingComments(l),n.kind=c,this.match(55)&&(o=!0,this.raise(ee.AccessorIsGenerator,this.state.curPosition(),{kind:c}),this.next()),this.parsePropertyName(n))}return this.parseObjPropValue(n,a,o,i,!1,s,t)}getGetterSetterExpectedParamCount(t){return t.kind==="get"?0:1}getObjectOrClassMethodParams(t){return t.params}checkGetterSetterParams(t){var r;const n=this.getGetterSetterExpectedParamCount(t),i=this.getObjectOrClassMethodParams(t);i.length!==n&&this.raise(t.kind==="get"?ee.BadGetterArity:ee.BadSetterArity,t),t.kind==="set"&&((r=i[i.length-1])==null?void 0:r.type)==="RestElement"&&this.raise(ee.BadSetterRestParameter,t)}parseObjectMethod(t,r,n,i,s){if(s){const a=this.parseMethod(t,r,!1,!1,!1,"ObjectMethod");return this.checkGetterSetterParams(a),a}if(n||r||this.match(10))return i&&this.unexpected(),t.kind="method",t.method=!0,this.parseMethod(t,r,n,!1,!1,"ObjectMethod")}parseObjectProperty(t,r,n,i){if(t.shorthand=!1,this.eat(14))return t.value=n?this.parseMaybeDefault(this.state.startLoc):this.parseMaybeAssignAllowIn(i),this.finishNode(t,"ObjectProperty");if(!t.computed&&t.key.type==="Identifier"){if(this.checkReservedWord(t.key.name,t.key.loc.start,!0,!1),n)t.value=this.parseMaybeDefault(r,Xr(t.key));else if(this.match(29)){const s=this.state.startLoc;i!=null?i.shorthandAssignLoc===null&&(i.shorthandAssignLoc=s):this.raise(ee.InvalidCoverInitializedName,s),t.value=this.parseMaybeDefault(r,Xr(t.key))}else t.value=Xr(t.key);return t.shorthand=!0,this.finishNode(t,"ObjectProperty")}}parseObjPropValue(t,r,n,i,s,a,o){const u=this.parseObjectMethod(t,n,i,s,a)||this.parseObjectProperty(t,r,s,o);return u||this.unexpected(),u}parsePropertyName(t,r){if(this.eat(0))t.computed=!0,t.key=this.parseMaybeAssignAllowIn(),this.expect(3);else{const{type:n,value:i}=this.state;let s;if(dr(n))s=this.parseIdentifier(!0);else switch(n){case 134:s=this.parseNumericLiteral(i);break;case 133:s=this.parseStringLiteral(i);break;case 135:s=this.parseBigIntLiteral(i);break;case 136:s=this.parseDecimalLiteral(i);break;case 138:{const a=this.state.startLoc;r!=null?r.privateKeyLoc===null&&(r.privateKeyLoc=a):this.raise(ee.UnexpectedPrivateField,a),s=this.parsePrivateName();break}default:this.unexpected()}t.key=s,n!==138&&(t.computed=!1)}}initFunction(t,r){t.id=null,t.generator=!1,t.async=r}parseMethod(t,r,n,i,s,a,o=!1){this.initFunction(t,n),t.generator=r,this.scope.enter(18|(o?64:0)|(s?32:0)),this.prodParam.enter(Za(n,t.generator)),this.parseFunctionParams(t,i);const u=this.parseFunctionBodyAndFinish(t,a,!0);return this.prodParam.exit(),this.scope.exit(),u}parseArrayLike(t,r,n,i){n&&this.expectPlugin("recordAndTuple");const s=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;const a=this.startNode();return this.next(),a.elements=this.parseExprList(t,!n,i,a),this.state.inFSharpPipelineDirectBody=s,this.finishNode(a,n?"TupleExpression":"ArrayExpression")}parseArrowExpression(t,r,n,i){this.scope.enter(6);let s=Za(n,!1);!this.match(5)&&this.prodParam.hasIn&&(s|=8),this.prodParam.enter(s),this.initFunction(t,n);const a=this.state.maybeInArrowParameters;return r&&(this.state.maybeInArrowParameters=!0,this.setArrowFunctionParameters(t,r,i)),this.state.maybeInArrowParameters=!1,this.parseFunctionBody(t,!0),this.prodParam.exit(),this.scope.exit(),this.state.maybeInArrowParameters=a,this.finishNode(t,"ArrowFunctionExpression")}setArrowFunctionParameters(t,r,n){this.toAssignableList(r,n,!1),t.params=r}parseFunctionBodyAndFinish(t,r,n=!1){return this.parseFunctionBody(t,!1,n),this.finishNode(t,r)}parseFunctionBody(t,r,n=!1){const i=r&&!this.match(5);if(this.expressionScope.enter(L0()),i)t.body=this.parseMaybeAssign(),this.checkParams(t,!1,r,!1);else{const s=this.state.strict,a=this.state.labels;this.state.labels=[],this.prodParam.enter(this.prodParam.currentFlags()|4),t.body=this.parseBlock(!0,!1,o=>{const u=!this.isSimpleParamList(t.params);o&&u&&this.raise(ee.IllegalLanguageModeDirective,(t.kind==="method"||t.kind==="constructor")&&t.key?t.key.loc.end:t);const l=!s&&this.state.strict;this.checkParams(t,!this.state.strict&&!r&&!n&&!u,r,l),this.state.strict&&t.id&&this.checkIdentifier(t.id,65,l)}),this.prodParam.exit(),this.state.labels=a}this.expressionScope.exit()}isSimpleParameter(t){return t.type==="Identifier"}isSimpleParamList(t){for(let r=0,n=t.length;r<n;r++)if(!this.isSimpleParameter(t[r]))return!1;return!0}checkParams(t,r,n,i=!0){const s=!r&&new Set,a={type:"FormalParameters"};for(const o of t.params)this.checkLVal(o,a,5,s,i)}parseExprList(t,r,n,i){const s=[];let a=!0;for(;!this.eat(t);){if(a)a=!1;else if(this.expect(12),this.match(t)){i&&this.addTrailingCommaExtraToNode(i),this.next();break}s.push(this.parseExprListItem(r,n))}return s}parseExprListItem(t,r,n){let i;if(this.match(12))t||this.raise(ee.UnexpectedToken,this.state.curPosition(),{unexpected:","}),i=null;else if(this.match(21)){const s=this.state.startLoc;i=this.parseParenItem(this.parseSpread(r),s)}else if(this.match(17)){this.expectPlugin("partialApplication"),n||this.raise(ee.UnexpectedArgumentPlaceholder,this.state.startLoc);const s=this.startNode();this.next(),i=this.finishNode(s,"ArgumentPlaceholder")}else i=this.parseMaybeAssignAllowIn(r,this.parseParenItem);return i}parseIdentifier(t){const r=this.startNode(),n=this.parseIdentifierName(t);return this.createIdentifier(r,n)}createIdentifier(t,r){return t.name=r,t.loc.identifierName=r,this.finishNode(t,"Identifier")}parseIdentifierName(t){let r;const{startLoc:n,type:i}=this.state;dr(i)?r=this.state.value:this.unexpected();const s=Z_(i);return t?s&&this.replaceToken(132):this.checkReservedWord(r,n,s,!1),this.next(),r}checkReservedWord(t,r,n,i){if(t.length>10||!gw(t))return;if(n&&mw(t)){this.raise(ee.UnexpectedKeyword,r,{keyword:t});return}if((this.state.strict?i?w0:F0:x0)(t,this.inModule)){this.raise(ee.UnexpectedReservedWord,r,{reservedWord:t});return}else if(t==="yield"){if(this.prodParam.hasYield){this.raise(ee.YieldBindingIdentifier,r);return}}else if(t==="await"){if(this.prodParam.hasAwait){this.raise(ee.AwaitBindingIdentifier,r);return}if(this.scope.inStaticBlock){this.raise(ee.AwaitBindingIdentifierInStaticBlock,r);return}this.expressionScope.recordAsyncArrowParametersError(r)}else if(t==="arguments"&&this.scope.inClassAndNotInNonArrowFunction){this.raise(ee.ArgumentsInClass,r);return}}recordAwaitIfAllowed(){const t=this.prodParam.hasAwait||this.options.allowAwaitOutsideFunction&&!this.scope.inFunction;return t&&!this.scope.inFunction&&(this.state.hasTopLevelAwait=!0),t}parseAwait(t){const r=this.startNodeAt(t);return this.expressionScope.recordParameterInitializerError(ee.AwaitExpressionFormalParameter,r),this.eat(55)&&this.raise(ee.ObsoleteAwaitStar,r),!this.scope.inFunction&&!this.options.allowAwaitOutsideFunction&&(this.isAmbiguousAwait()?this.ambiguousScriptDifferentAst=!0:this.sawUnambiguousESM=!0),this.state.soloAwait||(r.argument=this.parseMaybeUnary(null,!0)),this.finishNode(r,"AwaitExpression")}isAmbiguousAwait(){if(this.hasPrecedingLineBreak())return!0;const{type:t}=this.state;return t===53||t===10||t===0||go(t)||t===102&&!this.state.containsEsc||t===137||t===56||this.hasPlugin("v8intrinsic")&&t===54}parseYield(){const t=this.startNode();this.expressionScope.recordParameterInitializerError(ee.YieldInParameter,t),this.next();let r=!1,n=null;if(!this.hasPrecedingLineBreak())switch(r=this.eat(55),this.state.type){case 13:case 139:case 8:case 11:case 3:case 9:case 14:case 12:if(!r)break;default:n=this.parseMaybeAssign()}return t.delegate=r,t.argument=n,this.finishNode(t,"YieldExpression")}parseImportCall(t){return this.next(),t.source=this.parseMaybeAssignAllowIn(),(this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions"))&&(t.options=null),this.eat(12)&&(this.expectImportAttributesPlugin(),this.match(11)||(t.options=this.parseMaybeAssignAllowIn(),this.eat(12))),this.expect(11),this.finishNode(t,"ImportExpression")}checkPipelineAtInfixOperator(t,r){this.hasPlugin(["pipelineOperator",{proposal:"smart"}])&&t.type==="SequenceExpression"&&this.raise(ee.PipelineHeadSequenceExpression,r)}parseSmartPipelineBodyInStyle(t,r){if(this.isSimpleReference(t)){const n=this.startNodeAt(r);return n.callee=t,this.finishNode(n,"PipelineBareFunction")}else{const n=this.startNodeAt(r);return this.checkSmartPipeTopicBodyEarlyErrors(r),n.expression=t,this.finishNode(n,"PipelineTopicExpression")}}isSimpleReference(t){switch(t.type){case"MemberExpression":return!t.computed&&this.isSimpleReference(t.object);case"Identifier":return!0;default:return!1}}checkSmartPipeTopicBodyEarlyErrors(t){if(this.match(19))throw this.raise(ee.PipelineBodyNoArrow,this.state.startLoc);this.topicReferenceWasUsedInCurrentContext()||this.raise(ee.PipelineTopicUnused,t)}withTopicBindingContext(t){const r=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:1,maxTopicIndex:null};try{return t()}finally{this.state.topicContext=r}}withSmartMixTopicForbiddingContext(t){if(this.hasPlugin(["pipelineOperator",{proposal:"smart"}])){const r=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null};try{return t()}finally{this.state.topicContext=r}}else return t()}withSoloAwaitPermittingContext(t){const r=this.state.soloAwait;this.state.soloAwait=!0;try{return t()}finally{this.state.soloAwait=r}}allowInAnd(t){const r=this.prodParam.currentFlags();if(8&~r){this.prodParam.enter(r|8);try{return t()}finally{this.prodParam.exit()}}return t()}disallowInAnd(t){const r=this.prodParam.currentFlags();if(8&r){this.prodParam.enter(r&-9);try{return t()}finally{this.prodParam.exit()}}return t()}registerTopicReference(){this.state.topicContext.maxTopicIndex=0}topicReferenceIsAllowedInCurrentContext(){return this.state.topicContext.maxNumOfResolvableTopics>=1}topicReferenceWasUsedInCurrentContext(){return this.state.topicContext.maxTopicIndex!=null&&this.state.topicContext.maxTopicIndex>=0}parseFSharpPipelineBody(t){const r=this.state.startLoc;this.state.potentialArrowAt=this.state.start;const n=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!0;const i=this.parseExprOp(this.parseMaybeUnaryOrPrivate(),r,t);return this.state.inFSharpPipelineDirectBody=n,i}parseModuleExpression(){this.expectPlugin("moduleBlocks");const t=this.startNode();this.next(),this.match(5)||this.unexpected(null,5);const r=this.startNodeAt(this.state.endLoc);this.next();const n=this.initializeScopes(!0);this.enterInitialScopes();try{t.body=this.parseProgram(r,8,"module")}finally{n()}return this.finishNode(t,"ModuleExpression")}parsePropertyNamePrefixOperator(t){}}const Ru={kind:1},pI={kind:2},hI=/[\uD800-\uDFFF]/u,Mu=/in(?:stanceof)?/y;function dI(e,t){for(let r=0;r<e.length;r++){const n=e[r],{type:i}=n;if(typeof i=="number"){{if(i===138){const{loc:s,start:a,value:o,end:u}=n,l=a+1,c=$t(s.start,1);e.splice(r,1,new hn({type:$r(27),value:"#",start:a,end:l,startLoc:s.start,endLoc:c}),new hn({type:$r(132),value:o,start:l,end:u,startLoc:c,endLoc:s.end})),r++;continue}if(go(i)){const{loc:s,start:a,value:o,end:u}=n,l=a+1,c=$t(s.start,1);let f;t.charCodeAt(a)===96?f=new hn({type:$r(22),value:"`",start:a,end:l,startLoc:s.start,endLoc:c}):f=new hn({type:$r(8),value:"}",start:a,end:l,startLoc:s.start,endLoc:c});let p,h,d,m;i===24?(h=u-1,d=$t(s.end,-1),p=o===null?null:o.slice(1,-1),m=new hn({type:$r(22),value:"`",start:h,end:u,startLoc:d,endLoc:s.end})):(h=u-2,d=$t(s.end,-2),p=o===null?null:o.slice(1,-2),m=new hn({type:$r(23),value:"${",start:h,end:u,startLoc:d,endLoc:s.end})),e.splice(r,1,f,new hn({type:$r(20),value:p,start:l,end:h,startLoc:c,endLoc:d}),m),r+=2;continue}}n.type=$r(i)}}return e}class mI extends fI{parseTopLevel(t,r){return t.program=this.parseProgram(r),t.comments=this.comments,this.options.tokens&&(t.tokens=dI(this.tokens,this.input)),this.finishNode(t,"File")}parseProgram(t,r=139,n=this.options.sourceType){if(t.sourceType=n,t.interpreter=this.parseInterpreterDirective(),this.parseBlockBody(t,!0,!0,r),this.inModule){if(!this.options.allowUndeclaredExports&&this.scope.undefinedExports.size>0)for(const[s,a]of Array.from(this.scope.undefinedExports))this.raise(ee.ModuleExportUndefined,a,{localName:s});this.addExtra(t,"topLevelAwait",this.state.hasTopLevelAwait)}let i;return r===139?i=this.finishNode(t,"Program"):i=this.finishNodeAt(t,"Program",$t(this.state.startLoc,-1)),i}stmtToDirective(t){const r=t;r.type="Directive",r.value=r.expression,delete r.expression;const n=r.value,i=n.value,s=this.input.slice(n.start,n.end),a=n.value=s.slice(1,-1);return this.addExtra(n,"raw",s),this.addExtra(n,"rawValue",a),this.addExtra(n,"expressionValue",i),n.type="DirectiveLiteral",r}parseInterpreterDirective(){if(!this.match(28))return null;const t=this.startNode();return t.value=this.state.value,this.next(),this.finishNode(t,"InterpreterDirective")}isLet(){return this.isContextual(100)?this.hasFollowingBindingAtom():!1}chStartsBindingIdentifier(t,r){if(Wr(t)){if(Mu.lastIndex=r,Mu.test(this.input)){const n=this.codePointAtPos(Mu.lastIndex);if(!Fi(n)&&n!==92)return!1}return!0}else return t===92}chStartsBindingPattern(t){return t===91||t===123}hasFollowingBindingAtom(){const t=this.nextTokenStart(),r=this.codePointAtPos(t);return this.chStartsBindingPattern(r)||this.chStartsBindingIdentifier(r,t)}hasInLineFollowingBindingIdentifierOrBrace(){const t=this.nextTokenInLineStart(),r=this.codePointAtPos(t);return r===123||this.chStartsBindingIdentifier(r,t)}startsUsingForOf(){const{type:t,containsEsc:r}=this.lookahead();if(t===102&&!r)return!1;if(at(t)&&!this.hasFollowingLineBreak())return this.expectPlugin("explicitResourceManagement"),!0}startsAwaitUsing(){let t=this.nextTokenInLineStart();if(this.isUnparsedContextual(t,"using")){t=this.nextTokenInLineStartSince(t+5);const r=this.codePointAtPos(t);if(this.chStartsBindingIdentifier(r,t))return this.expectPlugin("explicitResourceManagement"),!0}return!1}parseModuleItem(){return this.parseStatementLike(15)}parseStatementListItem(){return this.parseStatementLike(6|(!this.options.annexB||this.state.strict?0:8))}parseStatementOrSloppyAnnexBFunctionDeclaration(t=!1){let r=0;return this.options.annexB&&!this.state.strict&&(r|=4,t&&(r|=8)),this.parseStatementLike(r)}parseStatement(){return this.parseStatementLike(0)}parseStatementLike(t){let r=null;return this.match(26)&&(r=this.parseDecorators(!0)),this.parseStatementContent(t,r)}parseStatementContent(t,r){const n=this.state.type,i=this.startNode(),s=!!(t&2),a=!!(t&4),o=t&1;switch(n){case 60:return this.parseBreakContinueStatement(i,!0);case 63:return this.parseBreakContinueStatement(i,!1);case 64:return this.parseDebuggerStatement(i);case 90:return this.parseDoWhileStatement(i);case 91:return this.parseForStatement(i);case 68:if(this.lookaheadCharCode()===46)break;return a||this.raise(this.state.strict?ee.StrictFunction:this.options.annexB?ee.SloppyFunctionAnnexB:ee.SloppyFunction,this.state.startLoc),this.parseFunctionStatement(i,!1,!s&&a);case 80:return s||this.unexpected(),this.parseClass(this.maybeTakeDecorators(r,i),!0);case 69:return this.parseIfStatement(i);case 70:return this.parseReturnStatement(i);case 71:return this.parseSwitchStatement(i);case 72:return this.parseThrowStatement(i);case 73:return this.parseTryStatement(i);case 96:if(!this.state.containsEsc&&this.startsAwaitUsing())return this.recordAwaitIfAllowed()?s||this.raise(ee.UnexpectedLexicalDeclaration,i):this.raise(ee.AwaitUsingNotInAsyncContext,i),this.next(),this.parseVarStatement(i,"await using");break;case 107:if(this.state.containsEsc||!this.hasInLineFollowingBindingIdentifierOrBrace())break;return this.expectPlugin("explicitResourceManagement"),!this.scope.inModule&&this.scope.inTopLevel?this.raise(ee.UnexpectedUsingDeclaration,this.state.startLoc):s||this.raise(ee.UnexpectedLexicalDeclaration,this.state.startLoc),this.parseVarStatement(i,"using");case 100:{if(this.state.containsEsc)break;const c=this.nextTokenStart(),f=this.codePointAtPos(c);if(f!==91&&(!s&&this.hasFollowingLineBreak()||!this.chStartsBindingIdentifier(f,c)&&f!==123))break}case 75:s||this.raise(ee.UnexpectedLexicalDeclaration,this.state.startLoc);case 74:{const c=this.state.value;return this.parseVarStatement(i,c)}case 92:return this.parseWhileStatement(i);case 76:return this.parseWithStatement(i);case 5:return this.parseBlock();case 13:return this.parseEmptyStatement(i);case 83:{const c=this.lookaheadCharCode();if(c===40||c===46)break}case 82:{!this.options.allowImportExportEverywhere&&!o&&this.raise(ee.UnexpectedImportExport,this.state.startLoc),this.next();let c;return n===83?(c=this.parseImport(i),c.type==="ImportDeclaration"&&(!c.importKind||c.importKind==="value")&&(this.sawUnambiguousESM=!0)):(c=this.parseExport(i,r),(c.type==="ExportNamedDeclaration"&&(!c.exportKind||c.exportKind==="value")||c.type==="ExportAllDeclaration"&&(!c.exportKind||c.exportKind==="value")||c.type==="ExportDefaultDeclaration")&&(this.sawUnambiguousESM=!0)),this.assertModuleNodeAllowed(c),c}default:if(this.isAsyncFunction())return s||this.raise(ee.AsyncFunctionInSingleStatementContext,this.state.startLoc),this.next(),this.parseFunctionStatement(i,!0,!s&&a)}const u=this.state.value,l=this.parseExpression();return at(n)&&l.type==="Identifier"&&this.eat(14)?this.parseLabeledStatement(i,u,l,t):this.parseExpressionStatement(i,l,r)}assertModuleNodeAllowed(t){!this.options.allowImportExportEverywhere&&!this.inModule&&this.raise(ee.ImportOutsideModule,t)}decoratorsEnabledBeforeExport(){return this.hasPlugin("decorators-legacy")?!0:this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")!==!1}maybeTakeDecorators(t,r,n){return t&&(r.decorators&&r.decorators.length>0?(typeof this.getPluginOption("decorators","decoratorsBeforeExport")!="boolean"&&this.raise(ee.DecoratorsBeforeAfterExport,r.decorators[0]),r.decorators.unshift(...t)):r.decorators=t,this.resetStartLocationFromNode(r,t[0]),n&&this.resetStartLocationFromNode(n,r)),r}canHaveLeadingDecorator(){return this.match(80)}parseDecorators(t){const r=[];do r.push(this.parseDecorator());while(this.match(26));if(this.match(82))t||this.unexpected(),this.decoratorsEnabledBeforeExport()||this.raise(ee.DecoratorExportClass,this.state.startLoc);else if(!this.canHaveLeadingDecorator())throw this.raise(ee.UnexpectedLeadingDecorator,this.state.startLoc);return r}parseDecorator(){this.expectOnePlugin(["decorators","decorators-legacy"]);const t=this.startNode();if(this.next(),this.hasPlugin("decorators")){const r=this.state.startLoc;let n;if(this.match(10)){const i=this.state.startLoc;this.next(),n=this.parseExpression(),this.expect(11),n=this.wrapParenthesis(i,n);const s=this.state.startLoc;t.expression=this.parseMaybeDecoratorArguments(n),this.getPluginOption("decorators","allowCallParenthesized")===!1&&t.expression!==n&&this.raise(ee.DecoratorArgumentsOutsideParentheses,s)}else{for(n=this.parseIdentifier(!1);this.eat(16);){const i=this.startNodeAt(r);i.object=n,this.match(138)?(this.classScope.usePrivateName(this.state.value,this.state.startLoc),i.property=this.parsePrivateName()):i.property=this.parseIdentifier(!0),i.computed=!1,n=this.finishNode(i,"MemberExpression")}t.expression=this.parseMaybeDecoratorArguments(n)}}else t.expression=this.parseExprSubscripts();return this.finishNode(t,"Decorator")}parseMaybeDecoratorArguments(t){if(this.eat(10)){const r=this.startNodeAtNode(t);return r.callee=t,r.arguments=this.parseCallExpressionArguments(11,!1),this.toReferencedList(r.arguments),this.finishNode(r,"CallExpression")}return t}parseBreakContinueStatement(t,r){return this.next(),this.isLineTerminator()?t.label=null:(t.label=this.parseIdentifier(),this.semicolon()),this.verifyBreakContinue(t,r),this.finishNode(t,r?"BreakStatement":"ContinueStatement")}verifyBreakContinue(t,r){let n;for(n=0;n<this.state.labels.length;++n){const i=this.state.labels[n];if((t.label==null||i.name===t.label.name)&&(i.kind!=null&&(r||i.kind===1)||t.label&&r))break}if(n===this.state.labels.length){const i=r?"BreakStatement":"ContinueStatement";this.raise(ee.IllegalBreakContinue,t,{type:i})}}parseDebuggerStatement(t){return this.next(),this.semicolon(),this.finishNode(t,"DebuggerStatement")}parseHeaderExpression(){this.expect(10);const t=this.parseExpression();return this.expect(11),t}parseDoWhileStatement(t){return this.next(),this.state.labels.push(Ru),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.state.labels.pop(),this.expect(92),t.test=this.parseHeaderExpression(),this.eat(13),this.finishNode(t,"DoWhileStatement")}parseForStatement(t){this.next(),this.state.labels.push(Ru);let r=null;if(this.isContextual(96)&&this.recordAwaitIfAllowed()&&(r=this.state.startLoc,this.next()),this.scope.enter(0),this.expect(10),this.match(13))return r!==null&&this.unexpected(r),this.parseFor(t,null);const n=this.isContextual(100);{const u=this.isContextual(96)&&this.startsAwaitUsing(),l=u||this.isContextual(107)&&this.startsUsingForOf(),c=n&&this.hasFollowingBindingAtom()||l;if(this.match(74)||this.match(75)||c){const f=this.startNode();let p;u?(p="await using",this.recordAwaitIfAllowed()||this.raise(ee.AwaitUsingNotInAsyncContext,this.state.startLoc),this.next()):p=this.state.value,this.next(),this.parseVar(f,!0,p);const h=this.finishNode(f,"VariableDeclaration"),d=this.match(58);return d&&l&&this.raise(ee.ForInUsing,h),(d||this.isContextual(102))&&h.declarations.length===1?this.parseForIn(t,h,r):(r!==null&&this.unexpected(r),this.parseFor(t,h))}}const i=this.isContextual(95),s=new eo,a=this.parseExpression(!0,s),o=this.isContextual(102);if(o&&(n&&this.raise(ee.ForOfLet,a),r===null&&i&&a.type==="Identifier"&&this.raise(ee.ForOfAsync,a)),o||this.match(58)){this.checkDestructuringPrivate(s),this.toAssignable(a,!0);const u=o?"ForOfStatement":"ForInStatement";return this.checkLVal(a,{type:u}),this.parseForIn(t,a,r)}else this.checkExpressionErrors(s,!0);return r!==null&&this.unexpected(r),this.parseFor(t,a)}parseFunctionStatement(t,r,n){return this.next(),this.parseFunction(t,1|(n?2:0)|(r?8:0))}parseIfStatement(t){return this.next(),t.test=this.parseHeaderExpression(),t.consequent=this.parseStatementOrSloppyAnnexBFunctionDeclaration(),t.alternate=this.eat(66)?this.parseStatementOrSloppyAnnexBFunctionDeclaration():null,this.finishNode(t,"IfStatement")}parseReturnStatement(t){return!this.prodParam.hasReturn&&!this.options.allowReturnOutsideFunction&&this.raise(ee.IllegalReturn,this.state.startLoc),this.next(),this.isLineTerminator()?t.argument=null:(t.argument=this.parseExpression(),this.semicolon()),this.finishNode(t,"ReturnStatement")}parseSwitchStatement(t){this.next(),t.discriminant=this.parseHeaderExpression();const r=t.cases=[];this.expect(5),this.state.labels.push(pI),this.scope.enter(0);let n;for(let i;!this.match(8);)if(this.match(61)||this.match(65)){const s=this.match(61);n&&this.finishNode(n,"SwitchCase"),r.push(n=this.startNode()),n.consequent=[],this.next(),s?n.test=this.parseExpression():(i&&this.raise(ee.MultipleDefaultsInSwitch,this.state.lastTokStartLoc),i=!0,n.test=null),this.expect(14)}else n?n.consequent.push(this.parseStatementListItem()):this.unexpected();return this.scope.exit(),n&&this.finishNode(n,"SwitchCase"),this.next(),this.state.labels.pop(),this.finishNode(t,"SwitchStatement")}parseThrowStatement(t){return this.next(),this.hasPrecedingLineBreak()&&this.raise(ee.NewlineAfterThrow,this.state.lastTokEndLoc),t.argument=this.parseExpression(),this.semicolon(),this.finishNode(t,"ThrowStatement")}parseCatchClauseParam(){const t=this.parseBindingAtom();return this.scope.enter(this.options.annexB&&t.type==="Identifier"?8:0),this.checkLVal(t,{type:"CatchClause"},9),t}parseTryStatement(t){if(this.next(),t.block=this.parseBlock(),t.handler=null,this.match(62)){const r=this.startNode();this.next(),this.match(10)?(this.expect(10),r.param=this.parseCatchClauseParam(),this.expect(11)):(r.param=null,this.scope.enter(0)),r.body=this.withSmartMixTopicForbiddingContext(()=>this.parseBlock(!1,!1)),this.scope.exit(),t.handler=this.finishNode(r,"CatchClause")}return t.finalizer=this.eat(67)?this.parseBlock():null,!t.handler&&!t.finalizer&&this.raise(ee.NoCatchOrFinally,t),this.finishNode(t,"TryStatement")}parseVarStatement(t,r,n=!1){return this.next(),this.parseVar(t,!1,r,n),this.semicolon(),this.finishNode(t,"VariableDeclaration")}parseWhileStatement(t){return this.next(),t.test=this.parseHeaderExpression(),this.state.labels.push(Ru),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.state.labels.pop(),this.finishNode(t,"WhileStatement")}parseWithStatement(t){return this.state.strict&&this.raise(ee.StrictWith,this.state.startLoc),this.next(),t.object=this.parseHeaderExpression(),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.finishNode(t,"WithStatement")}parseEmptyStatement(t){return this.next(),this.finishNode(t,"EmptyStatement")}parseLabeledStatement(t,r,n,i){for(const a of this.state.labels)a.name===r&&this.raise(ee.LabelRedeclaration,n,{labelName:r});const s=rw(this.state.type)?1:this.match(71)?2:null;for(let a=this.state.labels.length-1;a>=0;a--){const o=this.state.labels[a];if(o.statementStart===t.start)o.statementStart=this.state.start,o.kind=s;else break}return this.state.labels.push({name:r,kind:s,statementStart:this.state.start}),t.body=i&8?this.parseStatementOrSloppyAnnexBFunctionDeclaration(!0):this.parseStatement(),this.state.labels.pop(),t.label=n,this.finishNode(t,"LabeledStatement")}parseExpressionStatement(t,r,n){return t.expression=r,this.semicolon(),this.finishNode(t,"ExpressionStatement")}parseBlock(t=!1,r=!0,n){const i=this.startNode();return t&&this.state.strictErrors.clear(),this.expect(5),r&&this.scope.enter(0),this.parseBlockBody(i,t,!1,8,n),r&&this.scope.exit(),this.finishNode(i,"BlockStatement")}isValidDirective(t){return t.type==="ExpressionStatement"&&t.expression.type==="StringLiteral"&&!t.expression.extra.parenthesized}parseBlockBody(t,r,n,i,s){const a=t.body=[],o=t.directives=[];this.parseBlockOrModuleBlockBody(a,r?o:void 0,n,i,s)}parseBlockOrModuleBlockBody(t,r,n,i,s){const a=this.state.strict;let o=!1,u=!1;for(;!this.match(i);){const l=n?this.parseModuleItem():this.parseStatementListItem();if(r&&!u){if(this.isValidDirective(l)){const c=this.stmtToDirective(l);r.push(c),!o&&c.value.value==="use strict"&&(o=!0,this.setStrict(!0));continue}u=!0,this.state.strictErrors.clear()}t.push(l)}s==null||s.call(this,o),a||this.setStrict(!1),this.next()}parseFor(t,r){return t.init=r,this.semicolon(!1),t.test=this.match(13)?null:this.parseExpression(),this.semicolon(!1),t.update=this.match(11)?null:this.parseExpression(),this.expect(11),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(t,"ForStatement")}parseForIn(t,r,n){const i=this.match(58);return this.next(),i?n!==null&&this.unexpected(n):t.await=n!==null,r.type==="VariableDeclaration"&&r.declarations[0].init!=null&&(!i||!this.options.annexB||this.state.strict||r.kind!=="var"||r.declarations[0].id.type!=="Identifier")&&this.raise(ee.ForInOfLoopInitializer,r,{type:i?"ForInStatement":"ForOfStatement"}),r.type==="AssignmentPattern"&&this.raise(ee.InvalidLhs,r,{ancestor:{type:"ForStatement"}}),t.left=r,t.right=i?this.parseExpression():this.parseMaybeAssignAllowIn(),this.expect(11),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(t,i?"ForInStatement":"ForOfStatement")}parseVar(t,r,n,i=!1){const s=t.declarations=[];for(t.kind=n;;){const a=this.startNode();if(this.parseVarId(a,n),a.init=this.eat(29)?r?this.parseMaybeAssignDisallowIn():this.parseMaybeAssignAllowIn():null,a.init===null&&!i&&(a.id.type!=="Identifier"&&!(r&&(this.match(58)||this.isContextual(102)))?this.raise(ee.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:"destructuring"}):(n==="const"||n==="using"||n==="await using")&&!(this.match(58)||this.isContextual(102))&&this.raise(ee.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:n})),s.push(this.finishNode(a,"VariableDeclarator")),!this.eat(12))break}return t}parseVarId(t,r){const n=this.parseBindingAtom();(r==="using"||r==="await using")&&(n.type==="ArrayPattern"||n.type==="ObjectPattern")&&this.raise(ee.UsingDeclarationHasBindingPattern,n.loc.start),this.checkLVal(n,{type:"VariableDeclarator"},r==="var"?5:8201),t.id=n}parseAsyncFunctionExpression(t){return this.parseFunction(t,8)}parseFunction(t,r=0){const n=r&2,i=!!(r&1),s=i&&!(r&4),a=!!(r&8);this.initFunction(t,a),this.match(55)&&(n&&this.raise(ee.GeneratorInSingleStatementContext,this.state.startLoc),this.next(),t.generator=!0),i&&(t.id=this.parseFunctionId(s));const o=this.state.maybeInArrowParameters;return this.state.maybeInArrowParameters=!1,this.scope.enter(2),this.prodParam.enter(Za(a,t.generator)),i||(t.id=this.parseFunctionId()),this.parseFunctionParams(t,!1),this.withSmartMixTopicForbiddingContext(()=>{this.parseFunctionBodyAndFinish(t,i?"FunctionDeclaration":"FunctionExpression")}),this.prodParam.exit(),this.scope.exit(),i&&!n&&this.registerFunctionStatementId(t),this.state.maybeInArrowParameters=o,t}parseFunctionId(t){return t||at(this.state.type)?this.parseIdentifier():null}parseFunctionParams(t,r){this.expect(10),this.expressionScope.enter(Bw()),t.params=this.parseBindingList(11,41,2|(r?4:0)),this.expressionScope.exit()}registerFunctionStatementId(t){t.id&&this.scope.declareName(t.id.name,!this.options.annexB||this.state.strict||t.generator||t.async?this.scope.treatFunctionsAsVar?5:8201:17,t.id.loc.start)}parseClass(t,r,n){this.next();const i=this.state.strict;return this.state.strict=!0,this.parseClassId(t,r,n),this.parseClassSuper(t),t.body=this.parseClassBody(!!t.superClass,i),this.finishNode(t,r?"ClassDeclaration":"ClassExpression")}isClassProperty(){return this.match(29)||this.match(13)||this.match(8)}isClassMethod(){return this.match(10)}nameIsConstructor(t){return t.type==="Identifier"&&t.name==="constructor"||t.type==="StringLiteral"&&t.value==="constructor"}isNonstaticConstructor(t){return!t.computed&&!t.static&&this.nameIsConstructor(t.key)}parseClassBody(t,r){this.classScope.enter();const n={hadConstructor:!1,hadSuperClass:t};let i=[];const s=this.startNode();if(s.body=[],this.expect(5),this.withSmartMixTopicForbiddingContext(()=>{for(;!this.match(8);){if(this.eat(13)){if(i.length>0)throw this.raise(ee.DecoratorSemicolon,this.state.lastTokEndLoc);continue}if(this.match(26)){i.push(this.parseDecorator());continue}const a=this.startNode();i.length&&(a.decorators=i,this.resetStartLocationFromNode(a,i[0]),i=[]),this.parseClassMember(s,a,n),a.kind==="constructor"&&a.decorators&&a.decorators.length>0&&this.raise(ee.DecoratorConstructor,a)}}),this.state.strict=r,this.next(),i.length)throw this.raise(ee.TrailingDecorator,this.state.startLoc);return this.classScope.exit(),this.finishNode(s,"ClassBody")}parseClassMemberFromModifier(t,r){const n=this.parseIdentifier(!0);if(this.isClassMethod()){const i=r;return i.kind="method",i.computed=!1,i.key=n,i.static=!1,this.pushClassMethod(t,i,!1,!1,!1,!1),!0}else if(this.isClassProperty()){const i=r;return i.computed=!1,i.key=n,i.static=!1,t.body.push(this.parseClassProperty(i)),!0}return this.resetPreviousNodeTrailingComments(n),!1}parseClassMember(t,r,n){const i=this.isContextual(106);if(i){if(this.parseClassMemberFromModifier(t,r))return;if(this.eat(5)){this.parseClassStaticBlock(t,r);return}}this.parseClassMemberWithIsStatic(t,r,n,i)}parseClassMemberWithIsStatic(t,r,n,i){const s=r,a=r,o=r,u=r,l=r,c=s,f=s;if(r.static=i,this.parsePropertyNamePrefixOperator(r),this.eat(55)){c.kind="method";const g=this.match(138);if(this.parseClassElementName(c),g){this.pushClassPrivateMethod(t,a,!0,!1);return}this.isNonstaticConstructor(s)&&this.raise(ee.ConstructorIsGenerator,s.key),this.pushClassMethod(t,s,!0,!1,!1,!1);return}const p=!this.state.containsEsc&&at(this.state.type),h=this.parseClassElementName(r),d=p?h.name:null,m=this.isPrivateName(h),D=this.state.startLoc;if(this.parsePostMemberNameModifiers(f),this.isClassMethod()){if(c.kind="method",m){this.pushClassPrivateMethod(t,a,!1,!1);return}const g=this.isNonstaticConstructor(s);let y=!1;g&&(s.kind="constructor",n.hadConstructor&&!this.hasPlugin("typescript")&&this.raise(ee.DuplicateConstructor,h),g&&this.hasPlugin("typescript")&&r.override&&this.raise(ee.OverrideOnConstructor,h),n.hadConstructor=!0,y=n.hadSuperClass),this.pushClassMethod(t,s,!1,!1,g,y)}else if(this.isClassProperty())m?this.pushClassPrivateProperty(t,u):this.pushClassProperty(t,o);else if(d==="async"&&!this.isLineTerminator()){this.resetPreviousNodeTrailingComments(h);const g=this.eat(55);f.optional&&this.unexpected(D),c.kind="method";const y=this.match(138);this.parseClassElementName(c),this.parsePostMemberNameModifiers(f),y?this.pushClassPrivateMethod(t,a,g,!0):(this.isNonstaticConstructor(s)&&this.raise(ee.ConstructorIsAsync,s.key),this.pushClassMethod(t,s,g,!0,!1,!1))}else if((d==="get"||d==="set")&&!(this.match(55)&&this.isLineTerminator())){this.resetPreviousNodeTrailingComments(h),c.kind=d;const g=this.match(138);this.parseClassElementName(s),g?this.pushClassPrivateMethod(t,a,!1,!1):(this.isNonstaticConstructor(s)&&this.raise(ee.ConstructorIsAccessor,s.key),this.pushClassMethod(t,s,!1,!1,!1,!1)),this.checkGetterSetterParams(s)}else if(d==="accessor"&&!this.isLineTerminator()){this.expectPlugin("decoratorAutoAccessors"),this.resetPreviousNodeTrailingComments(h);const g=this.match(138);this.parseClassElementName(o),this.pushClassAccessorProperty(t,l,g)}else this.isLineTerminator()?m?this.pushClassPrivateProperty(t,u):this.pushClassProperty(t,o):this.unexpected()}parseClassElementName(t){const{type:r,value:n}=this.state;if((r===132||r===133)&&t.static&&n==="prototype"&&this.raise(ee.StaticPrototype,this.state.startLoc),r===138){n==="constructor"&&this.raise(ee.ConstructorClassPrivateField,this.state.startLoc);const i=this.parsePrivateName();return t.key=i,i}return this.parsePropertyName(t),t.key}parseClassStaticBlock(t,r){var n;this.scope.enter(208);const i=this.state.labels;this.state.labels=[],this.prodParam.enter(0);const s=r.body=[];this.parseBlockOrModuleBlockBody(s,void 0,!1,8),this.prodParam.exit(),this.scope.exit(),this.state.labels=i,t.body.push(this.finishNode(r,"StaticBlock")),(n=r.decorators)!=null&&n.length&&this.raise(ee.DecoratorStaticBlock,r)}pushClassProperty(t,r){!r.computed&&this.nameIsConstructor(r.key)&&this.raise(ee.ConstructorClassField,r.key),t.body.push(this.parseClassProperty(r))}pushClassPrivateProperty(t,r){const n=this.parseClassPrivateProperty(r);t.body.push(n),this.classScope.declarePrivateName(this.getPrivateNameSV(n.key),0,n.key.loc.start)}pushClassAccessorProperty(t,r,n){!n&&!r.computed&&this.nameIsConstructor(r.key)&&this.raise(ee.ConstructorClassField,r.key);const i=this.parseClassAccessorProperty(r);t.body.push(i),n&&this.classScope.declarePrivateName(this.getPrivateNameSV(i.key),0,i.key.loc.start)}pushClassMethod(t,r,n,i,s,a){t.body.push(this.parseMethod(r,n,i,s,a,"ClassMethod",!0))}pushClassPrivateMethod(t,r,n,i){const s=this.parseMethod(r,n,i,!1,!1,"ClassPrivateMethod",!0);t.body.push(s);const a=s.kind==="get"?s.static?6:2:s.kind==="set"?s.static?5:1:0;this.declareClassPrivateMethodInScope(s,a)}declareClassPrivateMethodInScope(t,r){this.classScope.declarePrivateName(this.getPrivateNameSV(t.key),r,t.key.loc.start)}parsePostMemberNameModifiers(t){}parseClassPrivateProperty(t){return this.parseInitializer(t),this.semicolon(),this.finishNode(t,"ClassPrivateProperty")}parseClassProperty(t){return this.parseInitializer(t),this.semicolon(),this.finishNode(t,"ClassProperty")}parseClassAccessorProperty(t){return this.parseInitializer(t),this.semicolon(),this.finishNode(t,"ClassAccessorProperty")}parseInitializer(t){this.scope.enter(80),this.expressionScope.enter(L0()),this.prodParam.enter(0),t.value=this.eat(29)?this.parseMaybeAssignAllowIn():null,this.expressionScope.exit(),this.prodParam.exit(),this.scope.exit()}parseClassId(t,r,n,i=8331){if(at(this.state.type))t.id=this.parseIdentifier(),r&&this.declareNameFromIdentifier(t.id,i);else if(n||!r)t.id=null;else throw this.raise(ee.MissingClassName,this.state.startLoc)}parseClassSuper(t){t.superClass=this.eat(81)?this.parseExprSubscripts():null}parseExport(t,r){const n=this.parseMaybeImportPhase(t,!0),i=this.maybeParseExportDefaultSpecifier(t,n),s=!i||this.eat(12),a=s&&this.eatExportStar(t),o=a&&this.maybeParseExportNamespaceSpecifier(t),u=s&&(!o||this.eat(12)),l=i||a;if(a&&!o){if(i&&this.unexpected(),r)throw this.raise(ee.UnsupportedDecoratorExport,t);return this.parseExportFrom(t,!0),this.finishNode(t,"ExportAllDeclaration")}const c=this.maybeParseExportNamedSpecifiers(t);i&&s&&!a&&!c&&this.unexpected(null,5),o&&u&&this.unexpected(null,98);let f;if(l||c){if(f=!1,r)throw this.raise(ee.UnsupportedDecoratorExport,t);this.parseExportFrom(t,l)}else f=this.maybeParseExportDeclaration(t);if(l||c||f){var p;const h=t;if(this.checkExport(h,!0,!1,!!h.source),((p=h.declaration)==null?void 0:p.type)==="ClassDeclaration")this.maybeTakeDecorators(r,h.declaration,h);else if(r)throw this.raise(ee.UnsupportedDecoratorExport,t);return this.finishNode(h,"ExportNamedDeclaration")}if(this.eat(65)){const h=t,d=this.parseExportDefaultExpression();if(h.declaration=d,d.type==="ClassDeclaration")this.maybeTakeDecorators(r,d,h);else if(r)throw this.raise(ee.UnsupportedDecoratorExport,t);return this.checkExport(h,!0,!0),this.finishNode(h,"ExportDefaultDeclaration")}this.unexpected(null,5)}eatExportStar(t){return this.eat(55)}maybeParseExportDefaultSpecifier(t,r){if(r||this.isExportDefaultSpecifier()){this.expectPlugin("exportDefaultFrom",r==null?void 0:r.loc.start);const n=r||this.parseIdentifier(!0),i=this.startNodeAtNode(n);return i.exported=n,t.specifiers=[this.finishNode(i,"ExportDefaultSpecifier")],!0}return!1}maybeParseExportNamespaceSpecifier(t){if(this.isContextual(93)){var r,n;(n=(r=t).specifiers)!=null||(r.specifiers=[]);const i=this.startNodeAt(this.state.lastTokStartLoc);return this.next(),i.exported=this.parseModuleExportName(),t.specifiers.push(this.finishNode(i,"ExportNamespaceSpecifier")),!0}return!1}maybeParseExportNamedSpecifiers(t){if(this.match(5)){const r=t;r.specifiers||(r.specifiers=[]);const n=r.exportKind==="type";return r.specifiers.push(...this.parseExportSpecifiers(n)),r.source=null,r.declaration=null,this.hasPlugin("importAssertions")&&(r.assertions=[]),!0}return!1}maybeParseExportDeclaration(t){return this.shouldParseExportDeclaration()?(t.specifiers=[],t.source=null,this.hasPlugin("importAssertions")&&(t.assertions=[]),t.declaration=this.parseExportDeclaration(t),!0):!1}isAsyncFunction(){if(!this.isContextual(95))return!1;const t=this.nextTokenInLineStart();return this.isUnparsedContextual(t,"function")}parseExportDefaultExpression(){const t=this.startNode();if(this.match(68))return this.next(),this.parseFunction(t,5);if(this.isAsyncFunction())return this.next(),this.next(),this.parseFunction(t,13);if(this.match(80))return this.parseClass(t,!0,!0);if(this.match(26))return this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")===!0&&this.raise(ee.DecoratorBeforeExport,this.state.startLoc),this.parseClass(this.maybeTakeDecorators(this.parseDecorators(!1),this.startNode()),!0,!0);if(this.match(75)||this.match(74)||this.isLet())throw this.raise(ee.UnsupportedDefaultExport,this.state.startLoc);const r=this.parseMaybeAssignAllowIn();return this.semicolon(),r}parseExportDeclaration(t){return this.match(80)?this.parseClass(this.startNode(),!0,!1):this.parseStatementListItem()}isExportDefaultSpecifier(){const{type:t}=this.state;if(at(t)){if(t===95&&!this.state.containsEsc||t===100)return!1;if((t===130||t===129)&&!this.state.containsEsc){const{type:i}=this.lookahead();if(at(i)&&i!==98||i===5)return this.expectOnePlugin(["flow","typescript"]),!1}}else if(!this.match(65))return!1;const r=this.nextTokenStart(),n=this.isUnparsedContextual(r,"from");if(this.input.charCodeAt(r)===44||at(this.state.type)&&n)return!0;if(this.match(65)&&n){const i=this.input.charCodeAt(this.nextTokenStartSince(r+4));return i===34||i===39}return!1}parseExportFrom(t,r){this.eatContextual(98)?(t.source=this.parseImportSource(),this.checkExport(t),this.maybeParseImportAttributes(t),this.checkJSONModuleImport(t)):r&&this.unexpected(),this.semicolon()}shouldParseExportDeclaration(){const{type:t}=this.state;return t===26&&(this.expectOnePlugin(["decorators","decorators-legacy"]),this.hasPlugin("decorators"))?(this.getPluginOption("decorators","decoratorsBeforeExport")===!0&&this.raise(ee.DecoratorBeforeExport,this.state.startLoc),!0):this.isContextual(107)?(this.raise(ee.UsingDeclarationExport,this.state.startLoc),!0):this.isContextual(96)&&this.startsAwaitUsing()?(this.raise(ee.UsingDeclarationExport,this.state.startLoc),!0):t===74||t===75||t===68||t===80||this.isLet()||this.isAsyncFunction()}checkExport(t,r,n,i){if(r){var s;if(n){if(this.checkDuplicateExports(t,"default"),this.hasPlugin("exportDefaultFrom")){var a;const o=t.declaration;o.type==="Identifier"&&o.name==="from"&&o.end-o.start===4&&!((a=o.extra)!=null&&a.parenthesized)&&this.raise(ee.ExportDefaultFromAsIdentifier,o)}}else if((s=t.specifiers)!=null&&s.length)for(const o of t.specifiers){const{exported:u}=o,l=u.type==="Identifier"?u.name:u.value;if(this.checkDuplicateExports(o,l),!i&&o.local){const{local:c}=o;c.type!=="Identifier"?this.raise(ee.ExportBindingIsString,o,{localName:c.value,exportName:l}):(this.checkReservedWord(c.name,c.loc.start,!0,!1),this.scope.checkLocalExport(c))}}else if(t.declaration){const o=t.declaration;if(o.type==="FunctionDeclaration"||o.type==="ClassDeclaration"){const{id:u}=o;if(!u)throw new Error("Assertion failure");this.checkDuplicateExports(t,u.name)}else if(o.type==="VariableDeclaration")for(const u of o.declarations)this.checkDeclaration(u.id)}}}checkDeclaration(t){if(t.type==="Identifier")this.checkDuplicateExports(t,t.name);else if(t.type==="ObjectPattern")for(const r of t.properties)this.checkDeclaration(r);else if(t.type==="ArrayPattern")for(const r of t.elements)r&&this.checkDeclaration(r);else t.type==="ObjectProperty"?this.checkDeclaration(t.value):t.type==="RestElement"?this.checkDeclaration(t.argument):t.type==="AssignmentPattern"&&this.checkDeclaration(t.left)}checkDuplicateExports(t,r){this.exportedIdentifiers.has(r)&&(r==="default"?this.raise(ee.DuplicateDefaultExport,t):this.raise(ee.DuplicateExport,t,{exportName:r})),this.exportedIdentifiers.add(r)}parseExportSpecifiers(t){const r=[];let n=!0;for(this.expect(5);!this.eat(8);){if(n)n=!1;else if(this.expect(12),this.eat(8))break;const i=this.isContextual(130),s=this.match(133),a=this.startNode();a.local=this.parseModuleExportName(),r.push(this.parseExportSpecifier(a,s,t,i))}return r}parseExportSpecifier(t,r,n,i){return this.eatContextual(93)?t.exported=this.parseModuleExportName():r?t.exported=$w(t.local):t.exported||(t.exported=Xr(t.local)),this.finishNode(t,"ExportSpecifier")}parseModuleExportName(){if(this.match(133)){const t=this.parseStringLiteral(this.state.value),r=hI.exec(t.value);return r&&this.raise(ee.ModuleExportNameHasLoneSurrogate,t,{surrogateCharCode:r[0].charCodeAt(0)}),t}return this.parseIdentifier(!0)}isJSONModuleImport(t){return t.assertions!=null?t.assertions.some(({key:r,value:n})=>n.value==="json"&&(r.type==="Identifier"?r.name==="type":r.value==="type")):!1}checkImportReflection(t){const{specifiers:r}=t,n=r.length===1?r[0].type:null;if(t.phase==="source")n!=="ImportDefaultSpecifier"&&this.raise(ee.SourcePhaseImportRequiresDefault,r[0].loc.start);else if(t.phase==="defer")n!=="ImportNamespaceSpecifier"&&this.raise(ee.DeferImportRequiresNamespace,r[0].loc.start);else if(t.module){var i;n!=="ImportDefaultSpecifier"&&this.raise(ee.ImportReflectionNotBinding,r[0].loc.start),((i=t.assertions)==null?void 0:i.length)>0&&this.raise(ee.ImportReflectionHasAssertion,r[0].loc.start)}}checkJSONModuleImport(t){if(this.isJSONModuleImport(t)&&t.type!=="ExportAllDeclaration"){const{specifiers:r}=t;if(r!=null){const n=r.find(i=>{let s;if(i.type==="ExportSpecifier"?s=i.local:i.type==="ImportSpecifier"&&(s=i.imported),s!==void 0)return s.type==="Identifier"?s.name!=="default":s.value!=="default"});n!==void 0&&this.raise(ee.ImportJSONBindingNotDefault,n.loc.start)}}}isPotentialImportPhase(t){return t?!1:this.isContextual(105)||this.isContextual(97)||this.isContextual(127)}applyImportPhase(t,r,n,i){r||(n==="module"?(this.expectPlugin("importReflection",i),t.module=!0):this.hasPlugin("importReflection")&&(t.module=!1),n==="source"?(this.expectPlugin("sourcePhaseImports",i),t.phase="source"):n==="defer"?(this.expectPlugin("deferredImportEvaluation",i),t.phase="defer"):this.hasPlugin("sourcePhaseImports")&&(t.phase=null))}parseMaybeImportPhase(t,r){if(!this.isPotentialImportPhase(r))return this.applyImportPhase(t,r,null),null;const n=this.parseIdentifier(!0),{type:i}=this.state;return(dr(i)?i!==98||this.lookaheadCharCode()===102:i!==12)?(this.resetPreviousIdentifierLeadingComments(n),this.applyImportPhase(t,r,n.name,n.loc.start),null):(this.applyImportPhase(t,r,null),n)}isPrecedingIdImportPhase(t){const{type:r}=this.state;return at(r)?r!==98||this.lookaheadCharCode()===102:r!==12}parseImport(t){return this.match(133)?this.parseImportSourceAndAttributes(t):this.parseImportSpecifiersAndAfter(t,this.parseMaybeImportPhase(t,!1))}parseImportSpecifiersAndAfter(t,r){t.specifiers=[];const i=!this.maybeParseDefaultImportSpecifier(t,r)||this.eat(12),s=i&&this.maybeParseStarImportSpecifier(t);return i&&!s&&this.parseNamedImportSpecifiers(t),this.expectContextual(98),this.parseImportSourceAndAttributes(t)}parseImportSourceAndAttributes(t){var r;return(r=t.specifiers)!=null||(t.specifiers=[]),t.source=this.parseImportSource(),this.maybeParseImportAttributes(t),this.checkImportReflection(t),this.checkJSONModuleImport(t),this.semicolon(),this.finishNode(t,"ImportDeclaration")}parseImportSource(){return this.match(133)||this.unexpected(),this.parseExprAtom()}parseImportSpecifierLocal(t,r,n){r.local=this.parseIdentifier(),t.specifiers.push(this.finishImportSpecifier(r,n))}finishImportSpecifier(t,r,n=8201){return this.checkLVal(t.local,{type:r},n),this.finishNode(t,r)}parseImportAttributes(){this.expect(5);const t=[],r=new Set;do{if(this.match(8))break;const n=this.startNode(),i=this.state.value;if(r.has(i)&&this.raise(ee.ModuleAttributesWithDuplicateKeys,this.state.startLoc,{key:i}),r.add(i),this.match(133)?n.key=this.parseStringLiteral(i):n.key=this.parseIdentifier(!0),this.expect(14),!this.match(133))throw this.raise(ee.ModuleAttributeInvalidValue,this.state.startLoc);n.value=this.parseStringLiteral(this.state.value),t.push(this.finishNode(n,"ImportAttribute"))}while(this.eat(12));return this.expect(8),t}parseModuleAttributes(){const t=[],r=new Set;do{const n=this.startNode();if(n.key=this.parseIdentifier(!0),n.key.name!=="type"&&this.raise(ee.ModuleAttributeDifferentFromType,n.key),r.has(n.key.name)&&this.raise(ee.ModuleAttributesWithDuplicateKeys,n.key,{key:n.key.name}),r.add(n.key.name),this.expect(14),!this.match(133))throw this.raise(ee.ModuleAttributeInvalidValue,this.state.startLoc);n.value=this.parseStringLiteral(this.state.value),t.push(this.finishNode(n,"ImportAttribute"))}while(this.eat(12));return t}maybeParseImportAttributes(t){let r,n=!1;if(this.match(76)){if(this.hasPrecedingLineBreak()&&this.lookaheadCharCode()===40)return;this.next(),this.hasPlugin("moduleAttributes")?r=this.parseModuleAttributes():(this.expectImportAttributesPlugin(),r=this.parseImportAttributes()),n=!0}else if(this.isContextual(94)&&!this.hasPrecedingLineBreak())this.hasPlugin("importAttributes")?(this.getPluginOption("importAttributes","deprecatedAssertSyntax")!==!0&&this.raise(ee.ImportAttributesUseAssert,this.state.startLoc),this.addExtra(t,"deprecatedAssertSyntax",!0)):this.expectOnePlugin(["importAttributes","importAssertions"]),this.next(),r=this.parseImportAttributes();else if(this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions"))r=[];else if(this.hasPlugin("moduleAttributes"))r=[];else return;!n&&this.hasPlugin("importAssertions")?t.assertions=r:t.attributes=r}maybeParseDefaultImportSpecifier(t,r){if(r){const n=this.startNodeAtNode(r);return n.local=r,t.specifiers.push(this.finishImportSpecifier(n,"ImportDefaultSpecifier")),!0}else if(dr(this.state.type))return this.parseImportSpecifierLocal(t,this.startNode(),"ImportDefaultSpecifier"),!0;return!1}maybeParseStarImportSpecifier(t){if(this.match(55)){const r=this.startNode();return this.next(),this.expectContextual(93),this.parseImportSpecifierLocal(t,r,"ImportNamespaceSpecifier"),!0}return!1}parseNamedImportSpecifiers(t){let r=!0;for(this.expect(5);!this.eat(8);){if(r)r=!1;else{if(this.eat(14))throw this.raise(ee.DestructureNamedImport,this.state.startLoc);if(this.expect(12),this.eat(8))break}const n=this.startNode(),i=this.match(133),s=this.isContextual(130);n.imported=this.parseModuleExportName();const a=this.parseImportSpecifier(n,i,t.importKind==="type"||t.importKind==="typeof",s,void 0);t.specifiers.push(a)}}parseImportSpecifier(t,r,n,i,s){if(this.eatContextual(93))t.local=this.parseIdentifier();else{const{imported:a}=t;if(r)throw this.raise(ee.ImportBindingIsString,t,{importName:a.value});this.checkReservedWord(a.name,t.loc.start,!0,!0),t.local||(t.local=Xr(a))}return this.finishImportSpecifier(t,"ImportSpecifier",s)}isThisParam(t){return t.type==="Identifier"&&t.name==="this"}}class $0 extends mI{constructor(t,r,n){t=cI(t),super(t,r),this.options=t,this.initializeScopes(),this.plugins=n,this.filename=t.sourceFilename}getScopeHandler(){return Yc}parse(){this.enterInitialScopes();const t=this.startNode(),r=this.startNode();return this.nextToken(),t.errors=null,this.parseTopLevel(t,r),t.errors=this.state.errors,t.comments.length=this.state.commentsLen,t}}function yI(e,t){var r;if(((r=t)==null?void 0:r.sourceType)==="unambiguous"){t=Object.assign({},t);try{t.sourceType="module";const n=fs(t,e),i=n.parse();if(n.sawUnambiguousESM)return i;if(n.ambiguousScriptDifferentAst)try{return t.sourceType="script",fs(t,e).parse()}catch{}else i.program.sourceType="script";return i}catch(n){try{return t.sourceType="script",fs(t,e).parse()}catch{}throw n}}else return fs(t,e).parse()}function DI(e,t){const r=fs(t,e);return r.options.strictMode&&(r.state.strict=!0),r.getExpression()}function gI(e){const t={};for(const r of Object.keys(e))t[r]=$r(e[r]);return t}const EI=gI(Q_);function fs(e,t){let r=$0;const n=new Map;if(e!=null&&e.plugins){for(const i of e.plugins){let s,a;typeof i=="string"?s=i:[s,a]=i,n.has(s)||n.set(s,a||{})}uI(n),r=bI(n)}return new r(e,t,n)}const fh=new Map;function bI(e){const t=[];for(const i of lI)e.has(i)&&t.push(i);const r=t.join("|");let n=fh.get(r);if(!n){n=$0;for(const i of t)n=j0[i](n);fh.set(r,n)}return n}var TI=Ui.parse=yI;Ui.parseExpression=DI;Ui.tokTypes=EI;var ju={},ht={},ha={},zi={},pr={},Je={};Object.defineProperty(Je,"__esModule",{value:!0});Je.Var=Je.User=Je.Statement=Je.SpreadProperty=Je.Scope=Je.RestProperty=Je.ReferencedMemberExpression=Je.ReferencedIdentifier=Je.Referenced=Je.Pure=Je.NumericLiteralTypeAnnotation=Je.Generated=Je.ForAwaitStatement=Je.Flow=Je.Expression=Je.ExistentialTypeParam=Je.BlockScoped=Je.BindingIdentifier=void 0;Je.ReferencedIdentifier=["Identifier","JSXIdentifier"];Je.ReferencedMemberExpression=["MemberExpression"];Je.BindingIdentifier=["Identifier"];Je.Statement=["Statement"];Je.Expression=["Expression"];Je.Scope=["Scopable","Pattern"];Je.Referenced=null;Je.BlockScoped=null;Je.Var=["VariableDeclaration"];Je.User=null;Je.Generated=null;Je.Pure=null;Je.Flow=["Flow","ImportDeclaration","ExportDeclaration","ImportSpecifier"];Je.RestProperty=["RestElement"];Je.SpreadProperty=["RestElement"];Je.ExistentialTypeParam=["ExistsTypeAnnotation"];Je.NumericLiteralTypeAnnotation=["NumberLiteralTypeAnnotation"];Je.ForAwaitStatement=["ForOfStatement"];var jl={exports:{}},da={exports:{}},$u,ph;function SI(){if(ph)return $u;ph=1;var e=1e3,t=e*60,r=t*60,n=r*24,i=n*7,s=n*365.25;$u=function(c,f){f=f||{};var p=typeof c;if(p==="string"&&c.length>0)return a(c);if(p==="number"&&isFinite(c))return f.long?u(c):o(c);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(c))};function a(c){if(c=String(c),!(c.length>100)){var f=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(c);if(f){var p=parseFloat(f[1]),h=(f[2]||"ms").toLowerCase();switch(h){case"years":case"year":case"yrs":case"yr":case"y":return p*s;case"weeks":case"week":case"w":return p*i;case"days":case"day":case"d":return p*n;case"hours":case"hour":case"hrs":case"hr":case"h":return p*r;case"minutes":case"minute":case"mins":case"min":case"m":return p*t;case"seconds":case"second":case"secs":case"sec":case"s":return p*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return p;default:return}}}}function o(c){var f=Math.abs(c);return f>=n?Math.round(c/n)+"d":f>=r?Math.round(c/r)+"h":f>=t?Math.round(c/t)+"m":f>=e?Math.round(c/e)+"s":c+"ms"}function u(c){var f=Math.abs(c);return f>=n?l(c,f,n,"day"):f>=r?l(c,f,r,"hour"):f>=t?l(c,f,t,"minute"):f>=e?l(c,f,e,"second"):c+" ms"}function l(c,f,p,h){var d=f>=p*1.5;return Math.round(c/p)+" "+h+(d?"s":"")}return $u}var Uu,hh;function U0(){if(hh)return Uu;hh=1;function e(t){n.debug=n,n.default=n,n.coerce=l,n.disable=a,n.enable=s,n.enabled=o,n.humanize=SI(),n.destroy=c,Object.keys(t).forEach(f=>{n[f]=t[f]}),n.names=[],n.skips=[],n.formatters={};function r(f){let p=0;for(let h=0;h<f.length;h++)p=(p<<5)-p+f.charCodeAt(h),p|=0;return n.colors[Math.abs(p)%n.colors.length]}n.selectColor=r;function n(f){let p,h=null,d,m;function D(...g){if(!D.enabled)return;const y=D,b=Number(new Date),O=b-(p||b);y.diff=O,y.prev=p,y.curr=b,p=b,g[0]=n.coerce(g[0]),typeof g[0]!="string"&&g.unshift("%O");let C=0;g[0]=g[0].replace(/%([a-zA-Z%])/g,(w,P)=>{if(w==="%%")return"%";C++;const I=n.formatters[P];if(typeof I=="function"){const L=g[C];w=I.call(y,L),g.splice(C,1),C--}return w}),n.formatArgs.call(y,g),(y.log||n.log).apply(y,g)}return D.namespace=f,D.useColors=n.useColors(),D.color=n.selectColor(f),D.extend=i,D.destroy=n.destroy,Object.defineProperty(D,"enabled",{enumerable:!0,configurable:!1,get:()=>h!==null?h:(d!==n.namespaces&&(d=n.namespaces,m=n.enabled(f)),m),set:g=>{h=g}}),typeof n.init=="function"&&n.init(D),D}function i(f,p){const h=n(this.namespace+(typeof p>"u"?":":p)+f);return h.log=this.log,h}function s(f){n.save(f),n.namespaces=f,n.names=[],n.skips=[];let p;const h=(typeof f=="string"?f:"").split(/[\s,]+/),d=h.length;for(p=0;p<d;p++)h[p]&&(f=h[p].replace(/\*/g,".*?"),f[0]==="-"?n.skips.push(new RegExp("^"+f.slice(1)+"$")):n.names.push(new RegExp("^"+f+"$")))}function a(){const f=[...n.names.map(u),...n.skips.map(u).map(p=>"-"+p)].join(",");return n.enable(""),f}function o(f){if(f[f.length-1]==="*")return!0;let p,h;for(p=0,h=n.skips.length;p<h;p++)if(n.skips[p].test(f))return!1;for(p=0,h=n.names.length;p<h;p++)if(n.names[p].test(f))return!0;return!1}function u(f){return f.toString().substring(2,f.toString().length-2).replace(/\.\*\?$/,"*")}function l(f){return f instanceof Error?f.stack||f.message:f}function c(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return n.enable(n.load()),n}return Uu=e,Uu}var dh;function vI(){return dh||(dh=1,function(e,t){t.formatArgs=n,t.save=i,t.load=s,t.useColors=r,t.storage=a(),t.destroy=(()=>{let u=!1;return()=>{u||(u=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function r(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let u;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(u=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(u[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function n(u){if(u[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+u[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const l="color: "+this.color;u.splice(1,0,l,"color: inherit");let c=0,f=0;u[0].replace(/%[a-zA-Z%]/g,p=>{p!=="%%"&&(c++,p==="%c"&&(f=c))}),u.splice(f,0,l)}t.log=console.debug||console.log||(()=>{});function i(u){try{u?t.storage.setItem("debug",u):t.storage.removeItem("debug")}catch{}}function s(){let u;try{u=t.storage.getItem("debug")}catch{}return!u&&typeof process<"u"&&"env"in process&&(u=process.env.DEBUG),u}function a(){try{return localStorage}catch{}}e.exports=U0()(t);const{formatters:o}=e.exports;o.j=function(u){try{return JSON.stringify(u)}catch(l){return"[UnexpectedJSONParseError]: "+l.message}}}(da,da.exports)),da.exports}var ma={exports:{}},Vu,mh;function AI(){return mh||(mh=1,Vu=(e,t=process.argv)=>{const r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),i=t.indexOf("--");return n!==-1&&(i===-1||n<i)}),Vu}var qu,yh;function CI(){if(yh)return qu;yh=1;const e=tc,t=xs,r=AI(),{env:n}=process;let i;r("no-color")||r("no-colors")||r("color=false")||r("color=never")?i=0:(r("color")||r("colors")||r("color=true")||r("color=always"))&&(i=1);function s(){if("FORCE_COLOR"in n)return n.FORCE_COLOR==="true"?1:n.FORCE_COLOR==="false"?0:n.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(n.FORCE_COLOR,10),3)}function a(l){return l===0?!1:{level:l,hasBasic:!0,has256:l>=2,has16m:l>=3}}function o(l,{streamIsTTY:c,sniffFlags:f=!0}={}){const p=s();p!==void 0&&(i=p);const h=f?i:p;if(h===0)return 0;if(f){if(r("color=16m")||r("color=full")||r("color=truecolor"))return 3;if(r("color=256"))return 2}if(l&&!c&&h===void 0)return 0;const d=h||0;if(n.TERM==="dumb")return d;if(process.platform==="win32"){const m=e.release().split(".");return Number(m[0])>=10&&Number(m[2])>=10586?Number(m[2])>=14931?3:2:1}if("CI"in n)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE","DRONE"].some(m=>m in n)||n.CI_NAME==="codeship"?1:d;if("TEAMCITY_VERSION"in n)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(n.TEAMCITY_VERSION)?1:0;if(n.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in n){const m=Number.parseInt((n.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(n.TERM_PROGRAM){case"iTerm.app":return m>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(n.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(n.TERM)||"COLORTERM"in n?1:d}function u(l,c={}){const f=o(l,{streamIsTTY:l&&l.isTTY,...c});return a(f)}return qu={supportsColor:u,stdout:u({isTTY:t.isatty(1)}),stderr:u({isTTY:t.isatty(2)})},qu}var Dh;function PI(){return Dh||(Dh=1,function(e,t){const r=xs,n=Fs;t.init=c,t.log=o,t.formatArgs=s,t.save=u,t.load=l,t.useColors=i,t.destroy=n.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."),t.colors=[6,2,3,4,5,1];try{const p=CI();p&&(p.stderr||p).level>=2&&(t.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}t.inspectOpts=Object.keys(process.env).filter(p=>/^debug_/i.test(p)).reduce((p,h)=>{const d=h.substring(6).toLowerCase().replace(/_([a-z])/g,(D,g)=>g.toUpperCase());let m=process.env[h];return/^(yes|on|true|enabled)$/i.test(m)?m=!0:/^(no|off|false|disabled)$/i.test(m)?m=!1:m==="null"?m=null:m=Number(m),p[d]=m,p},{});function i(){return"colors"in t.inspectOpts?!!t.inspectOpts.colors:r.isatty(process.stderr.fd)}function s(p){const{namespace:h,useColors:d}=this;if(d){const m=this.color,D="\x1B[3"+(m<8?m:"8;5;"+m),g=` ${D};1m${h} \x1B[0m`;p[0]=g+p[0].split(`
|
|
115
|
+
`).join(`
|
|
116
|
+
`+g),p.push(D+"m+"+e.exports.humanize(this.diff)+"\x1B[0m")}else p[0]=a()+h+" "+p[0]}function a(){return t.inspectOpts.hideDate?"":new Date().toISOString()+" "}function o(...p){return process.stderr.write(n.formatWithOptions(t.inspectOpts,...p)+`
|
|
117
|
+
`)}function u(p){p?process.env.DEBUG=p:delete process.env.DEBUG}function l(){return process.env.DEBUG}function c(p){p.inspectOpts={};const h=Object.keys(t.inspectOpts);for(let d=0;d<h.length;d++)p.inspectOpts[h[d]]=t.inspectOpts[h[d]]}e.exports=U0()(t);const{formatters:f}=e.exports;f.o=function(p){return this.inspectOpts.colors=this.useColors,n.inspect(p,this.inspectOpts).split(`
|
|
118
|
+
`).map(h=>h.trim()).join(" ")},f.O=function(p){return this.inspectOpts.colors=this.useColors,n.inspect(p,this.inspectOpts)}}(ma,ma.exports)),ma.exports}typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?jl.exports=vI():jl.exports=PI();var xI=jl.exports,Qi={},Zi={},Ku={},No={},Bo={},Lo={},M={},Ms={};Object.defineProperty(Ms,"__esModule",{value:!0});Ms.default=FI;function FI(e,t){const r=Object.keys(t);for(const n of r)if(e[n]!==t[n])return!1;return!0}var Vi={};Object.defineProperty(Vi,"__esModule",{value:!0});Vi.default=_I;const gh=new Set;function _I(e,t,r=""){if(gh.has(e))return;gh.add(e);const{internal:n,trace:i}=wI(1,2);n||console.warn(`${r}\`${e}\` has been deprecated, please migrate to \`${t}\`
|
|
119
|
+
${i}`)}function wI(e,t){const{stackTraceLimit:r,prepareStackTrace:n}=Error;let i;if(Error.stackTraceLimit=1+e+t,Error.prepareStackTrace=function(a,o){i=o},new Error().stack,Error.stackTraceLimit=r,Error.prepareStackTrace=n,!i)return{internal:!1,trace:""};const s=i.slice(1+e,1+e+t);return{internal:/[\\/]@babel[\\/]/.test(s[1].getFileName()),trace:s.map(a=>` at ${a}`).join(`
|
|
120
|
+
`)}}Object.defineProperty(M,"__esModule",{value:!0});M.isAccessor=KL;M.isAnyTypeAnnotation=fN;M.isArgumentPlaceholder=$3;M.isArrayExpression=II;M.isArrayPattern=_O;M.isArrayTypeAnnotation=pN;M.isArrowFunctionExpression=wO;M.isAssignmentExpression=OI;M.isAssignmentPattern=FO;M.isAwaitExpression=ZO;M.isBigIntLiteral=tN;M.isBinary=hL;M.isBinaryExpression=NI;M.isBindExpression=U3;M.isBlock=yL;M.isBlockParent=mL;M.isBlockStatement=RI;M.isBooleanLiteral=iO;M.isBooleanLiteralTypeAnnotation=dN;M.isBooleanTypeAnnotation=hN;M.isBreakStatement=MI;M.isCallExpression=jI;M.isCatchClause=$I;M.isClass=UL;M.isClassAccessorProperty=aN;M.isClassBody=IO;M.isClassDeclaration=NO;M.isClassExpression=OO;M.isClassImplements=yN;M.isClassMethod=WO;M.isClassPrivateMethod=uN;M.isClassPrivateProperty=oN;M.isClassProperty=sN;M.isCompletionStatement=EL;M.isConditional=bL;M.isConditionalExpression=UI;M.isContinueStatement=VI;M.isDebuggerStatement=qI;M.isDecimalLiteral=Y3;M.isDeclaration=_L;M.isDeclareClass=DN;M.isDeclareExportAllDeclaration=PN;M.isDeclareExportDeclaration=CN;M.isDeclareFunction=gN;M.isDeclareInterface=EN;M.isDeclareModule=bN;M.isDeclareModuleExports=TN;M.isDeclareOpaqueType=vN;M.isDeclareTypeAlias=SN;M.isDeclareVariable=AN;M.isDeclaredPredicate=xN;M.isDecorator=q3;M.isDirective=LI;M.isDirectiveLiteral=kI;M.isDoExpression=K3;M.isDoWhileStatement=KI;M.isEmptyStatement=WI;M.isEmptyTypeAnnotation=MN;M.isEnumBody=zL;M.isEnumBooleanBody=p3;M.isEnumBooleanMember=y3;M.isEnumDeclaration=f3;M.isEnumDefaultedMember=E3;M.isEnumMember=QL;M.isEnumNumberBody=h3;M.isEnumNumberMember=D3;M.isEnumStringBody=d3;M.isEnumStringMember=g3;M.isEnumSymbolBody=m3;M.isExistsTypeAnnotation=FN;M.isExportAllDeclaration=BO;M.isExportDeclaration=VL;M.isExportDefaultDeclaration=LO;M.isExportDefaultSpecifier=W3;M.isExportNamedDeclaration=kO;M.isExportNamespaceSpecifier=rN;M.isExportSpecifier=RO;M.isExpression=pL;M.isExpressionStatement=HI;M.isExpressionWrapper=vL;M.isFile=GI;M.isFlow=HL;M.isFlowBaseAnnotation=YL;M.isFlowDeclaration=XL;M.isFlowPredicate=JL;M.isFlowType=GL;M.isFor=AL;M.isForInStatement=YI;M.isForOfStatement=MO;M.isForStatement=XI;M.isForXStatement=CL;M.isFunction=PL;M.isFunctionDeclaration=JI;M.isFunctionExpression=zI;M.isFunctionParent=xL;M.isFunctionTypeAnnotation=_N;M.isFunctionTypeParam=wN;M.isGenericTypeAnnotation=IN;M.isIdentifier=QI;M.isIfStatement=ZI;M.isImmutable=BL;M.isImport=eN;M.isImportAttribute=V3;M.isImportDeclaration=jO;M.isImportDefaultSpecifier=$O;M.isImportExpression=qO;M.isImportNamespaceSpecifier=UO;M.isImportOrExportDeclaration=V0;M.isImportSpecifier=VO;M.isIndexedAccessType=b3;M.isInferredPredicate=ON;M.isInterfaceDeclaration=BN;M.isInterfaceExtends=NN;M.isInterfaceTypeAnnotation=LN;M.isInterpreterDirective=BI;M.isIntersectionTypeAnnotation=kN;M.isJSX=ZL;M.isJSXAttribute=S3;M.isJSXClosingElement=v3;M.isJSXClosingFragment=k3;M.isJSXElement=A3;M.isJSXEmptyExpression=C3;M.isJSXExpressionContainer=P3;M.isJSXFragment=B3;M.isJSXIdentifier=F3;M.isJSXMemberExpression=_3;M.isJSXNamespacedName=w3;M.isJSXOpeningElement=I3;M.isJSXOpeningFragment=L3;M.isJSXSpreadAttribute=O3;M.isJSXSpreadChild=x3;M.isJSXText=N3;M.isLVal=IL;M.isLabeledStatement=eO;M.isLiteral=NL;M.isLogicalExpression=aO;M.isLoop=TL;M.isMemberExpression=oO;M.isMetaProperty=KO;M.isMethod=kL;M.isMiscellaneous=ek;M.isMixedTypeAnnotation=RN;M.isModuleDeclaration=lk;M.isModuleExpression=X3;M.isModuleSpecifier=qL;M.isNewExpression=uO;M.isNoop=R3;M.isNullLiteral=nO;M.isNullLiteralTypeAnnotation=mN;M.isNullableTypeAnnotation=jN;M.isNumberLiteral=sk;M.isNumberLiteralTypeAnnotation=$N;M.isNumberTypeAnnotation=UN;M.isNumericLiteral=rO;M.isObjectExpression=cO;M.isObjectMember=RL;M.isObjectMethod=fO;M.isObjectPattern=HO;M.isObjectProperty=pO;M.isObjectTypeAnnotation=VN;M.isObjectTypeCallProperty=KN;M.isObjectTypeIndexer=WN;M.isObjectTypeInternalSlot=qN;M.isObjectTypeProperty=HN;M.isObjectTypeSpreadProperty=GN;M.isOpaqueType=YN;M.isOptionalCallExpression=iN;M.isOptionalIndexedAccessType=T3;M.isOptionalMemberExpression=nN;M.isParenthesizedExpression=yO;M.isPattern=$L;M.isPatternLike=wL;M.isPipelineBareFunction=Q3;M.isPipelinePrimaryTopicReference=Z3;M.isPipelineTopicExpression=z3;M.isPlaceholder=M3;M.isPrivate=WL;M.isPrivateName=lN;M.isProgram=lO;M.isProperty=ML;M.isPureish=FL;M.isQualifiedTypeIdentifier=XN;M.isRecordExpression=H3;M.isRegExpLiteral=sO;M.isRegexLiteral=ak;M.isRestElement=hO;M.isRestProperty=ok;M.isReturnStatement=dO;M.isScopable=dL;M.isSequenceExpression=mO;M.isSpreadElement=GO;M.isSpreadProperty=uk;M.isStandardized=fL;M.isStatement=DL;M.isStaticBlock=cN;M.isStringLiteral=tO;M.isStringLiteralTypeAnnotation=JN;M.isStringTypeAnnotation=zN;M.isSuper=YO;M.isSwitchCase=DO;M.isSwitchStatement=gO;M.isSymbolTypeAnnotation=QN;M.isTSAnyKeyword=lB;M.isTSArrayType=_B;M.isTSAsExpression=YB;M.isTSBaseType=ik;M.isTSBigIntKeyword=fB;M.isTSBooleanKeyword=cB;M.isTSCallSignatureDeclaration=iB;M.isTSConditionalType=kB;M.isTSConstructSignatureDeclaration=sB;M.isTSConstructorType=AB;M.isTSDeclareFunction=tB;M.isTSDeclareMethod=rB;M.isTSEntityName=OL;M.isTSEnumDeclaration=zB;M.isTSEnumMember=QB;M.isTSExportAssignment=sL;M.isTSExpressionWithTypeArguments=qB;M.isTSExternalModuleReference=nL;M.isTSFunctionType=vB;M.isTSImportEqualsDeclaration=rL;M.isTSImportType=tL;M.isTSIndexSignature=uB;M.isTSIndexedAccessType=$B;M.isTSInferType=RB;M.isTSInstantiationExpression=GB;M.isTSInterfaceBody=WB;M.isTSInterfaceDeclaration=KB;M.isTSIntersectionType=LB;M.isTSIntrinsicKeyword=pB;M.isTSLiteralType=VB;M.isTSMappedType=UB;M.isTSMethodSignature=oB;M.isTSModuleBlock=eL;M.isTSModuleDeclaration=ZB;M.isTSNamedTupleMember=NB;M.isTSNamespaceExportDeclaration=aL;M.isTSNeverKeyword=hB;M.isTSNonNullExpression=iL;M.isTSNullKeyword=dB;M.isTSNumberKeyword=mB;M.isTSObjectKeyword=yB;M.isTSOptionalType=IB;M.isTSParameterProperty=eB;M.isTSParenthesizedType=MB;M.isTSPropertySignature=aB;M.isTSQualifiedName=nB;M.isTSRestType=OB;M.isTSSatisfiesExpression=XB;M.isTSStringKeyword=DB;M.isTSSymbolKeyword=gB;M.isTSThisType=SB;M.isTSTupleType=wB;M.isTSType=nk;M.isTSTypeAliasDeclaration=HB;M.isTSTypeAnnotation=oL;M.isTSTypeAssertion=JB;M.isTSTypeElement=rk;M.isTSTypeLiteral=FB;M.isTSTypeOperator=jB;M.isTSTypeParameter=cL;M.isTSTypeParameterDeclaration=lL;M.isTSTypeParameterInstantiation=uL;M.isTSTypePredicate=PB;M.isTSTypeQuery=xB;M.isTSTypeReference=CB;M.isTSUndefinedKeyword=EB;M.isTSUnionType=BB;M.isTSUnknownKeyword=bB;M.isTSVoidKeyword=TB;M.isTaggedTemplateExpression=XO;M.isTemplateElement=JO;M.isTemplateLiteral=zO;M.isTerminatorless=gL;M.isThisExpression=EO;M.isThisTypeAnnotation=ZN;M.isThrowStatement=bO;M.isTopicReference=J3;M.isTryStatement=TO;M.isTupleExpression=G3;M.isTupleTypeAnnotation=e3;M.isTypeAlias=r3;M.isTypeAnnotation=n3;M.isTypeCastExpression=i3;M.isTypeParameter=s3;M.isTypeParameterDeclaration=a3;M.isTypeParameterInstantiation=o3;M.isTypeScript=tk;M.isTypeofTypeAnnotation=t3;M.isUnaryExpression=SO;M.isUnaryLike=jL;M.isUnionTypeAnnotation=u3;M.isUpdateExpression=vO;M.isUserWhitespacable=LL;M.isV8IntrinsicIdentifier=j3;M.isVariableDeclaration=AO;M.isVariableDeclarator=CO;M.isVariance=l3;M.isVoidTypeAnnotation=c3;M.isWhile=SL;M.isWhileStatement=PO;M.isWithStatement=xO;M.isYieldExpression=QO;var K=Ms,js=Vi;function II(e,t){return!e||e.type!=="ArrayExpression"?!1:t==null||(0,K.default)(e,t)}function OI(e,t){return!e||e.type!=="AssignmentExpression"?!1:t==null||(0,K.default)(e,t)}function NI(e,t){return!e||e.type!=="BinaryExpression"?!1:t==null||(0,K.default)(e,t)}function BI(e,t){return!e||e.type!=="InterpreterDirective"?!1:t==null||(0,K.default)(e,t)}function LI(e,t){return!e||e.type!=="Directive"?!1:t==null||(0,K.default)(e,t)}function kI(e,t){return!e||e.type!=="DirectiveLiteral"?!1:t==null||(0,K.default)(e,t)}function RI(e,t){return!e||e.type!=="BlockStatement"?!1:t==null||(0,K.default)(e,t)}function MI(e,t){return!e||e.type!=="BreakStatement"?!1:t==null||(0,K.default)(e,t)}function jI(e,t){return!e||e.type!=="CallExpression"?!1:t==null||(0,K.default)(e,t)}function $I(e,t){return!e||e.type!=="CatchClause"?!1:t==null||(0,K.default)(e,t)}function UI(e,t){return!e||e.type!=="ConditionalExpression"?!1:t==null||(0,K.default)(e,t)}function VI(e,t){return!e||e.type!=="ContinueStatement"?!1:t==null||(0,K.default)(e,t)}function qI(e,t){return!e||e.type!=="DebuggerStatement"?!1:t==null||(0,K.default)(e,t)}function KI(e,t){return!e||e.type!=="DoWhileStatement"?!1:t==null||(0,K.default)(e,t)}function WI(e,t){return!e||e.type!=="EmptyStatement"?!1:t==null||(0,K.default)(e,t)}function HI(e,t){return!e||e.type!=="ExpressionStatement"?!1:t==null||(0,K.default)(e,t)}function GI(e,t){return!e||e.type!=="File"?!1:t==null||(0,K.default)(e,t)}function YI(e,t){return!e||e.type!=="ForInStatement"?!1:t==null||(0,K.default)(e,t)}function XI(e,t){return!e||e.type!=="ForStatement"?!1:t==null||(0,K.default)(e,t)}function JI(e,t){return!e||e.type!=="FunctionDeclaration"?!1:t==null||(0,K.default)(e,t)}function zI(e,t){return!e||e.type!=="FunctionExpression"?!1:t==null||(0,K.default)(e,t)}function QI(e,t){return!e||e.type!=="Identifier"?!1:t==null||(0,K.default)(e,t)}function ZI(e,t){return!e||e.type!=="IfStatement"?!1:t==null||(0,K.default)(e,t)}function eO(e,t){return!e||e.type!=="LabeledStatement"?!1:t==null||(0,K.default)(e,t)}function tO(e,t){return!e||e.type!=="StringLiteral"?!1:t==null||(0,K.default)(e,t)}function rO(e,t){return!e||e.type!=="NumericLiteral"?!1:t==null||(0,K.default)(e,t)}function nO(e,t){return!e||e.type!=="NullLiteral"?!1:t==null||(0,K.default)(e,t)}function iO(e,t){return!e||e.type!=="BooleanLiteral"?!1:t==null||(0,K.default)(e,t)}function sO(e,t){return!e||e.type!=="RegExpLiteral"?!1:t==null||(0,K.default)(e,t)}function aO(e,t){return!e||e.type!=="LogicalExpression"?!1:t==null||(0,K.default)(e,t)}function oO(e,t){return!e||e.type!=="MemberExpression"?!1:t==null||(0,K.default)(e,t)}function uO(e,t){return!e||e.type!=="NewExpression"?!1:t==null||(0,K.default)(e,t)}function lO(e,t){return!e||e.type!=="Program"?!1:t==null||(0,K.default)(e,t)}function cO(e,t){return!e||e.type!=="ObjectExpression"?!1:t==null||(0,K.default)(e,t)}function fO(e,t){return!e||e.type!=="ObjectMethod"?!1:t==null||(0,K.default)(e,t)}function pO(e,t){return!e||e.type!=="ObjectProperty"?!1:t==null||(0,K.default)(e,t)}function hO(e,t){return!e||e.type!=="RestElement"?!1:t==null||(0,K.default)(e,t)}function dO(e,t){return!e||e.type!=="ReturnStatement"?!1:t==null||(0,K.default)(e,t)}function mO(e,t){return!e||e.type!=="SequenceExpression"?!1:t==null||(0,K.default)(e,t)}function yO(e,t){return!e||e.type!=="ParenthesizedExpression"?!1:t==null||(0,K.default)(e,t)}function DO(e,t){return!e||e.type!=="SwitchCase"?!1:t==null||(0,K.default)(e,t)}function gO(e,t){return!e||e.type!=="SwitchStatement"?!1:t==null||(0,K.default)(e,t)}function EO(e,t){return!e||e.type!=="ThisExpression"?!1:t==null||(0,K.default)(e,t)}function bO(e,t){return!e||e.type!=="ThrowStatement"?!1:t==null||(0,K.default)(e,t)}function TO(e,t){return!e||e.type!=="TryStatement"?!1:t==null||(0,K.default)(e,t)}function SO(e,t){return!e||e.type!=="UnaryExpression"?!1:t==null||(0,K.default)(e,t)}function vO(e,t){return!e||e.type!=="UpdateExpression"?!1:t==null||(0,K.default)(e,t)}function AO(e,t){return!e||e.type!=="VariableDeclaration"?!1:t==null||(0,K.default)(e,t)}function CO(e,t){return!e||e.type!=="VariableDeclarator"?!1:t==null||(0,K.default)(e,t)}function PO(e,t){return!e||e.type!=="WhileStatement"?!1:t==null||(0,K.default)(e,t)}function xO(e,t){return!e||e.type!=="WithStatement"?!1:t==null||(0,K.default)(e,t)}function FO(e,t){return!e||e.type!=="AssignmentPattern"?!1:t==null||(0,K.default)(e,t)}function _O(e,t){return!e||e.type!=="ArrayPattern"?!1:t==null||(0,K.default)(e,t)}function wO(e,t){return!e||e.type!=="ArrowFunctionExpression"?!1:t==null||(0,K.default)(e,t)}function IO(e,t){return!e||e.type!=="ClassBody"?!1:t==null||(0,K.default)(e,t)}function OO(e,t){return!e||e.type!=="ClassExpression"?!1:t==null||(0,K.default)(e,t)}function NO(e,t){return!e||e.type!=="ClassDeclaration"?!1:t==null||(0,K.default)(e,t)}function BO(e,t){return!e||e.type!=="ExportAllDeclaration"?!1:t==null||(0,K.default)(e,t)}function LO(e,t){return!e||e.type!=="ExportDefaultDeclaration"?!1:t==null||(0,K.default)(e,t)}function kO(e,t){return!e||e.type!=="ExportNamedDeclaration"?!1:t==null||(0,K.default)(e,t)}function RO(e,t){return!e||e.type!=="ExportSpecifier"?!1:t==null||(0,K.default)(e,t)}function MO(e,t){return!e||e.type!=="ForOfStatement"?!1:t==null||(0,K.default)(e,t)}function jO(e,t){return!e||e.type!=="ImportDeclaration"?!1:t==null||(0,K.default)(e,t)}function $O(e,t){return!e||e.type!=="ImportDefaultSpecifier"?!1:t==null||(0,K.default)(e,t)}function UO(e,t){return!e||e.type!=="ImportNamespaceSpecifier"?!1:t==null||(0,K.default)(e,t)}function VO(e,t){return!e||e.type!=="ImportSpecifier"?!1:t==null||(0,K.default)(e,t)}function qO(e,t){return!e||e.type!=="ImportExpression"?!1:t==null||(0,K.default)(e,t)}function KO(e,t){return!e||e.type!=="MetaProperty"?!1:t==null||(0,K.default)(e,t)}function WO(e,t){return!e||e.type!=="ClassMethod"?!1:t==null||(0,K.default)(e,t)}function HO(e,t){return!e||e.type!=="ObjectPattern"?!1:t==null||(0,K.default)(e,t)}function GO(e,t){return!e||e.type!=="SpreadElement"?!1:t==null||(0,K.default)(e,t)}function YO(e,t){return!e||e.type!=="Super"?!1:t==null||(0,K.default)(e,t)}function XO(e,t){return!e||e.type!=="TaggedTemplateExpression"?!1:t==null||(0,K.default)(e,t)}function JO(e,t){return!e||e.type!=="TemplateElement"?!1:t==null||(0,K.default)(e,t)}function zO(e,t){return!e||e.type!=="TemplateLiteral"?!1:t==null||(0,K.default)(e,t)}function QO(e,t){return!e||e.type!=="YieldExpression"?!1:t==null||(0,K.default)(e,t)}function ZO(e,t){return!e||e.type!=="AwaitExpression"?!1:t==null||(0,K.default)(e,t)}function eN(e,t){return!e||e.type!=="Import"?!1:t==null||(0,K.default)(e,t)}function tN(e,t){return!e||e.type!=="BigIntLiteral"?!1:t==null||(0,K.default)(e,t)}function rN(e,t){return!e||e.type!=="ExportNamespaceSpecifier"?!1:t==null||(0,K.default)(e,t)}function nN(e,t){return!e||e.type!=="OptionalMemberExpression"?!1:t==null||(0,K.default)(e,t)}function iN(e,t){return!e||e.type!=="OptionalCallExpression"?!1:t==null||(0,K.default)(e,t)}function sN(e,t){return!e||e.type!=="ClassProperty"?!1:t==null||(0,K.default)(e,t)}function aN(e,t){return!e||e.type!=="ClassAccessorProperty"?!1:t==null||(0,K.default)(e,t)}function oN(e,t){return!e||e.type!=="ClassPrivateProperty"?!1:t==null||(0,K.default)(e,t)}function uN(e,t){return!e||e.type!=="ClassPrivateMethod"?!1:t==null||(0,K.default)(e,t)}function lN(e,t){return!e||e.type!=="PrivateName"?!1:t==null||(0,K.default)(e,t)}function cN(e,t){return!e||e.type!=="StaticBlock"?!1:t==null||(0,K.default)(e,t)}function fN(e,t){return!e||e.type!=="AnyTypeAnnotation"?!1:t==null||(0,K.default)(e,t)}function pN(e,t){return!e||e.type!=="ArrayTypeAnnotation"?!1:t==null||(0,K.default)(e,t)}function hN(e,t){return!e||e.type!=="BooleanTypeAnnotation"?!1:t==null||(0,K.default)(e,t)}function dN(e,t){return!e||e.type!=="BooleanLiteralTypeAnnotation"?!1:t==null||(0,K.default)(e,t)}function mN(e,t){return!e||e.type!=="NullLiteralTypeAnnotation"?!1:t==null||(0,K.default)(e,t)}function yN(e,t){return!e||e.type!=="ClassImplements"?!1:t==null||(0,K.default)(e,t)}function DN(e,t){return!e||e.type!=="DeclareClass"?!1:t==null||(0,K.default)(e,t)}function gN(e,t){return!e||e.type!=="DeclareFunction"?!1:t==null||(0,K.default)(e,t)}function EN(e,t){return!e||e.type!=="DeclareInterface"?!1:t==null||(0,K.default)(e,t)}function bN(e,t){return!e||e.type!=="DeclareModule"?!1:t==null||(0,K.default)(e,t)}function TN(e,t){return!e||e.type!=="DeclareModuleExports"?!1:t==null||(0,K.default)(e,t)}function SN(e,t){return!e||e.type!=="DeclareTypeAlias"?!1:t==null||(0,K.default)(e,t)}function vN(e,t){return!e||e.type!=="DeclareOpaqueType"?!1:t==null||(0,K.default)(e,t)}function AN(e,t){return!e||e.type!=="DeclareVariable"?!1:t==null||(0,K.default)(e,t)}function CN(e,t){return!e||e.type!=="DeclareExportDeclaration"?!1:t==null||(0,K.default)(e,t)}function PN(e,t){return!e||e.type!=="DeclareExportAllDeclaration"?!1:t==null||(0,K.default)(e,t)}function xN(e,t){return!e||e.type!=="DeclaredPredicate"?!1:t==null||(0,K.default)(e,t)}function FN(e,t){return!e||e.type!=="ExistsTypeAnnotation"?!1:t==null||(0,K.default)(e,t)}function _N(e,t){return!e||e.type!=="FunctionTypeAnnotation"?!1:t==null||(0,K.default)(e,t)}function wN(e,t){return!e||e.type!=="FunctionTypeParam"?!1:t==null||(0,K.default)(e,t)}function IN(e,t){return!e||e.type!=="GenericTypeAnnotation"?!1:t==null||(0,K.default)(e,t)}function ON(e,t){return!e||e.type!=="InferredPredicate"?!1:t==null||(0,K.default)(e,t)}function NN(e,t){return!e||e.type!=="InterfaceExtends"?!1:t==null||(0,K.default)(e,t)}function BN(e,t){return!e||e.type!=="InterfaceDeclaration"?!1:t==null||(0,K.default)(e,t)}function LN(e,t){return!e||e.type!=="InterfaceTypeAnnotation"?!1:t==null||(0,K.default)(e,t)}function kN(e,t){return!e||e.type!=="IntersectionTypeAnnotation"?!1:t==null||(0,K.default)(e,t)}function RN(e,t){return!e||e.type!=="MixedTypeAnnotation"?!1:t==null||(0,K.default)(e,t)}function MN(e,t){return!e||e.type!=="EmptyTypeAnnotation"?!1:t==null||(0,K.default)(e,t)}function jN(e,t){return!e||e.type!=="NullableTypeAnnotation"?!1:t==null||(0,K.default)(e,t)}function $N(e,t){return!e||e.type!=="NumberLiteralTypeAnnotation"?!1:t==null||(0,K.default)(e,t)}function UN(e,t){return!e||e.type!=="NumberTypeAnnotation"?!1:t==null||(0,K.default)(e,t)}function VN(e,t){return!e||e.type!=="ObjectTypeAnnotation"?!1:t==null||(0,K.default)(e,t)}function qN(e,t){return!e||e.type!=="ObjectTypeInternalSlot"?!1:t==null||(0,K.default)(e,t)}function KN(e,t){return!e||e.type!=="ObjectTypeCallProperty"?!1:t==null||(0,K.default)(e,t)}function WN(e,t){return!e||e.type!=="ObjectTypeIndexer"?!1:t==null||(0,K.default)(e,t)}function HN(e,t){return!e||e.type!=="ObjectTypeProperty"?!1:t==null||(0,K.default)(e,t)}function GN(e,t){return!e||e.type!=="ObjectTypeSpreadProperty"?!1:t==null||(0,K.default)(e,t)}function YN(e,t){return!e||e.type!=="OpaqueType"?!1:t==null||(0,K.default)(e,t)}function XN(e,t){return!e||e.type!=="QualifiedTypeIdentifier"?!1:t==null||(0,K.default)(e,t)}function JN(e,t){return!e||e.type!=="StringLiteralTypeAnnotation"?!1:t==null||(0,K.default)(e,t)}function zN(e,t){return!e||e.type!=="StringTypeAnnotation"?!1:t==null||(0,K.default)(e,t)}function QN(e,t){return!e||e.type!=="SymbolTypeAnnotation"?!1:t==null||(0,K.default)(e,t)}function ZN(e,t){return!e||e.type!=="ThisTypeAnnotation"?!1:t==null||(0,K.default)(e,t)}function e3(e,t){return!e||e.type!=="TupleTypeAnnotation"?!1:t==null||(0,K.default)(e,t)}function t3(e,t){return!e||e.type!=="TypeofTypeAnnotation"?!1:t==null||(0,K.default)(e,t)}function r3(e,t){return!e||e.type!=="TypeAlias"?!1:t==null||(0,K.default)(e,t)}function n3(e,t){return!e||e.type!=="TypeAnnotation"?!1:t==null||(0,K.default)(e,t)}function i3(e,t){return!e||e.type!=="TypeCastExpression"?!1:t==null||(0,K.default)(e,t)}function s3(e,t){return!e||e.type!=="TypeParameter"?!1:t==null||(0,K.default)(e,t)}function a3(e,t){return!e||e.type!=="TypeParameterDeclaration"?!1:t==null||(0,K.default)(e,t)}function o3(e,t){return!e||e.type!=="TypeParameterInstantiation"?!1:t==null||(0,K.default)(e,t)}function u3(e,t){return!e||e.type!=="UnionTypeAnnotation"?!1:t==null||(0,K.default)(e,t)}function l3(e,t){return!e||e.type!=="Variance"?!1:t==null||(0,K.default)(e,t)}function c3(e,t){return!e||e.type!=="VoidTypeAnnotation"?!1:t==null||(0,K.default)(e,t)}function f3(e,t){return!e||e.type!=="EnumDeclaration"?!1:t==null||(0,K.default)(e,t)}function p3(e,t){return!e||e.type!=="EnumBooleanBody"?!1:t==null||(0,K.default)(e,t)}function h3(e,t){return!e||e.type!=="EnumNumberBody"?!1:t==null||(0,K.default)(e,t)}function d3(e,t){return!e||e.type!=="EnumStringBody"?!1:t==null||(0,K.default)(e,t)}function m3(e,t){return!e||e.type!=="EnumSymbolBody"?!1:t==null||(0,K.default)(e,t)}function y3(e,t){return!e||e.type!=="EnumBooleanMember"?!1:t==null||(0,K.default)(e,t)}function D3(e,t){return!e||e.type!=="EnumNumberMember"?!1:t==null||(0,K.default)(e,t)}function g3(e,t){return!e||e.type!=="EnumStringMember"?!1:t==null||(0,K.default)(e,t)}function E3(e,t){return!e||e.type!=="EnumDefaultedMember"?!1:t==null||(0,K.default)(e,t)}function b3(e,t){return!e||e.type!=="IndexedAccessType"?!1:t==null||(0,K.default)(e,t)}function T3(e,t){return!e||e.type!=="OptionalIndexedAccessType"?!1:t==null||(0,K.default)(e,t)}function S3(e,t){return!e||e.type!=="JSXAttribute"?!1:t==null||(0,K.default)(e,t)}function v3(e,t){return!e||e.type!=="JSXClosingElement"?!1:t==null||(0,K.default)(e,t)}function A3(e,t){return!e||e.type!=="JSXElement"?!1:t==null||(0,K.default)(e,t)}function C3(e,t){return!e||e.type!=="JSXEmptyExpression"?!1:t==null||(0,K.default)(e,t)}function P3(e,t){return!e||e.type!=="JSXExpressionContainer"?!1:t==null||(0,K.default)(e,t)}function x3(e,t){return!e||e.type!=="JSXSpreadChild"?!1:t==null||(0,K.default)(e,t)}function F3(e,t){return!e||e.type!=="JSXIdentifier"?!1:t==null||(0,K.default)(e,t)}function _3(e,t){return!e||e.type!=="JSXMemberExpression"?!1:t==null||(0,K.default)(e,t)}function w3(e,t){return!e||e.type!=="JSXNamespacedName"?!1:t==null||(0,K.default)(e,t)}function I3(e,t){return!e||e.type!=="JSXOpeningElement"?!1:t==null||(0,K.default)(e,t)}function O3(e,t){return!e||e.type!=="JSXSpreadAttribute"?!1:t==null||(0,K.default)(e,t)}function N3(e,t){return!e||e.type!=="JSXText"?!1:t==null||(0,K.default)(e,t)}function B3(e,t){return!e||e.type!=="JSXFragment"?!1:t==null||(0,K.default)(e,t)}function L3(e,t){return!e||e.type!=="JSXOpeningFragment"?!1:t==null||(0,K.default)(e,t)}function k3(e,t){return!e||e.type!=="JSXClosingFragment"?!1:t==null||(0,K.default)(e,t)}function R3(e,t){return!e||e.type!=="Noop"?!1:t==null||(0,K.default)(e,t)}function M3(e,t){return!e||e.type!=="Placeholder"?!1:t==null||(0,K.default)(e,t)}function j3(e,t){return!e||e.type!=="V8IntrinsicIdentifier"?!1:t==null||(0,K.default)(e,t)}function $3(e,t){return!e||e.type!=="ArgumentPlaceholder"?!1:t==null||(0,K.default)(e,t)}function U3(e,t){return!e||e.type!=="BindExpression"?!1:t==null||(0,K.default)(e,t)}function V3(e,t){return!e||e.type!=="ImportAttribute"?!1:t==null||(0,K.default)(e,t)}function q3(e,t){return!e||e.type!=="Decorator"?!1:t==null||(0,K.default)(e,t)}function K3(e,t){return!e||e.type!=="DoExpression"?!1:t==null||(0,K.default)(e,t)}function W3(e,t){return!e||e.type!=="ExportDefaultSpecifier"?!1:t==null||(0,K.default)(e,t)}function H3(e,t){return!e||e.type!=="RecordExpression"?!1:t==null||(0,K.default)(e,t)}function G3(e,t){return!e||e.type!=="TupleExpression"?!1:t==null||(0,K.default)(e,t)}function Y3(e,t){return!e||e.type!=="DecimalLiteral"?!1:t==null||(0,K.default)(e,t)}function X3(e,t){return!e||e.type!=="ModuleExpression"?!1:t==null||(0,K.default)(e,t)}function J3(e,t){return!e||e.type!=="TopicReference"?!1:t==null||(0,K.default)(e,t)}function z3(e,t){return!e||e.type!=="PipelineTopicExpression"?!1:t==null||(0,K.default)(e,t)}function Q3(e,t){return!e||e.type!=="PipelineBareFunction"?!1:t==null||(0,K.default)(e,t)}function Z3(e,t){return!e||e.type!=="PipelinePrimaryTopicReference"?!1:t==null||(0,K.default)(e,t)}function eB(e,t){return!e||e.type!=="TSParameterProperty"?!1:t==null||(0,K.default)(e,t)}function tB(e,t){return!e||e.type!=="TSDeclareFunction"?!1:t==null||(0,K.default)(e,t)}function rB(e,t){return!e||e.type!=="TSDeclareMethod"?!1:t==null||(0,K.default)(e,t)}function nB(e,t){return!e||e.type!=="TSQualifiedName"?!1:t==null||(0,K.default)(e,t)}function iB(e,t){return!e||e.type!=="TSCallSignatureDeclaration"?!1:t==null||(0,K.default)(e,t)}function sB(e,t){return!e||e.type!=="TSConstructSignatureDeclaration"?!1:t==null||(0,K.default)(e,t)}function aB(e,t){return!e||e.type!=="TSPropertySignature"?!1:t==null||(0,K.default)(e,t)}function oB(e,t){return!e||e.type!=="TSMethodSignature"?!1:t==null||(0,K.default)(e,t)}function uB(e,t){return!e||e.type!=="TSIndexSignature"?!1:t==null||(0,K.default)(e,t)}function lB(e,t){return!e||e.type!=="TSAnyKeyword"?!1:t==null||(0,K.default)(e,t)}function cB(e,t){return!e||e.type!=="TSBooleanKeyword"?!1:t==null||(0,K.default)(e,t)}function fB(e,t){return!e||e.type!=="TSBigIntKeyword"?!1:t==null||(0,K.default)(e,t)}function pB(e,t){return!e||e.type!=="TSIntrinsicKeyword"?!1:t==null||(0,K.default)(e,t)}function hB(e,t){return!e||e.type!=="TSNeverKeyword"?!1:t==null||(0,K.default)(e,t)}function dB(e,t){return!e||e.type!=="TSNullKeyword"?!1:t==null||(0,K.default)(e,t)}function mB(e,t){return!e||e.type!=="TSNumberKeyword"?!1:t==null||(0,K.default)(e,t)}function yB(e,t){return!e||e.type!=="TSObjectKeyword"?!1:t==null||(0,K.default)(e,t)}function DB(e,t){return!e||e.type!=="TSStringKeyword"?!1:t==null||(0,K.default)(e,t)}function gB(e,t){return!e||e.type!=="TSSymbolKeyword"?!1:t==null||(0,K.default)(e,t)}function EB(e,t){return!e||e.type!=="TSUndefinedKeyword"?!1:t==null||(0,K.default)(e,t)}function bB(e,t){return!e||e.type!=="TSUnknownKeyword"?!1:t==null||(0,K.default)(e,t)}function TB(e,t){return!e||e.type!=="TSVoidKeyword"?!1:t==null||(0,K.default)(e,t)}function SB(e,t){return!e||e.type!=="TSThisType"?!1:t==null||(0,K.default)(e,t)}function vB(e,t){return!e||e.type!=="TSFunctionType"?!1:t==null||(0,K.default)(e,t)}function AB(e,t){return!e||e.type!=="TSConstructorType"?!1:t==null||(0,K.default)(e,t)}function CB(e,t){return!e||e.type!=="TSTypeReference"?!1:t==null||(0,K.default)(e,t)}function PB(e,t){return!e||e.type!=="TSTypePredicate"?!1:t==null||(0,K.default)(e,t)}function xB(e,t){return!e||e.type!=="TSTypeQuery"?!1:t==null||(0,K.default)(e,t)}function FB(e,t){return!e||e.type!=="TSTypeLiteral"?!1:t==null||(0,K.default)(e,t)}function _B(e,t){return!e||e.type!=="TSArrayType"?!1:t==null||(0,K.default)(e,t)}function wB(e,t){return!e||e.type!=="TSTupleType"?!1:t==null||(0,K.default)(e,t)}function IB(e,t){return!e||e.type!=="TSOptionalType"?!1:t==null||(0,K.default)(e,t)}function OB(e,t){return!e||e.type!=="TSRestType"?!1:t==null||(0,K.default)(e,t)}function NB(e,t){return!e||e.type!=="TSNamedTupleMember"?!1:t==null||(0,K.default)(e,t)}function BB(e,t){return!e||e.type!=="TSUnionType"?!1:t==null||(0,K.default)(e,t)}function LB(e,t){return!e||e.type!=="TSIntersectionType"?!1:t==null||(0,K.default)(e,t)}function kB(e,t){return!e||e.type!=="TSConditionalType"?!1:t==null||(0,K.default)(e,t)}function RB(e,t){return!e||e.type!=="TSInferType"?!1:t==null||(0,K.default)(e,t)}function MB(e,t){return!e||e.type!=="TSParenthesizedType"?!1:t==null||(0,K.default)(e,t)}function jB(e,t){return!e||e.type!=="TSTypeOperator"?!1:t==null||(0,K.default)(e,t)}function $B(e,t){return!e||e.type!=="TSIndexedAccessType"?!1:t==null||(0,K.default)(e,t)}function UB(e,t){return!e||e.type!=="TSMappedType"?!1:t==null||(0,K.default)(e,t)}function VB(e,t){return!e||e.type!=="TSLiteralType"?!1:t==null||(0,K.default)(e,t)}function qB(e,t){return!e||e.type!=="TSExpressionWithTypeArguments"?!1:t==null||(0,K.default)(e,t)}function KB(e,t){return!e||e.type!=="TSInterfaceDeclaration"?!1:t==null||(0,K.default)(e,t)}function WB(e,t){return!e||e.type!=="TSInterfaceBody"?!1:t==null||(0,K.default)(e,t)}function HB(e,t){return!e||e.type!=="TSTypeAliasDeclaration"?!1:t==null||(0,K.default)(e,t)}function GB(e,t){return!e||e.type!=="TSInstantiationExpression"?!1:t==null||(0,K.default)(e,t)}function YB(e,t){return!e||e.type!=="TSAsExpression"?!1:t==null||(0,K.default)(e,t)}function XB(e,t){return!e||e.type!=="TSSatisfiesExpression"?!1:t==null||(0,K.default)(e,t)}function JB(e,t){return!e||e.type!=="TSTypeAssertion"?!1:t==null||(0,K.default)(e,t)}function zB(e,t){return!e||e.type!=="TSEnumDeclaration"?!1:t==null||(0,K.default)(e,t)}function QB(e,t){return!e||e.type!=="TSEnumMember"?!1:t==null||(0,K.default)(e,t)}function ZB(e,t){return!e||e.type!=="TSModuleDeclaration"?!1:t==null||(0,K.default)(e,t)}function eL(e,t){return!e||e.type!=="TSModuleBlock"?!1:t==null||(0,K.default)(e,t)}function tL(e,t){return!e||e.type!=="TSImportType"?!1:t==null||(0,K.default)(e,t)}function rL(e,t){return!e||e.type!=="TSImportEqualsDeclaration"?!1:t==null||(0,K.default)(e,t)}function nL(e,t){return!e||e.type!=="TSExternalModuleReference"?!1:t==null||(0,K.default)(e,t)}function iL(e,t){return!e||e.type!=="TSNonNullExpression"?!1:t==null||(0,K.default)(e,t)}function sL(e,t){return!e||e.type!=="TSExportAssignment"?!1:t==null||(0,K.default)(e,t)}function aL(e,t){return!e||e.type!=="TSNamespaceExportDeclaration"?!1:t==null||(0,K.default)(e,t)}function oL(e,t){return!e||e.type!=="TSTypeAnnotation"?!1:t==null||(0,K.default)(e,t)}function uL(e,t){return!e||e.type!=="TSTypeParameterInstantiation"?!1:t==null||(0,K.default)(e,t)}function lL(e,t){return!e||e.type!=="TSTypeParameterDeclaration"?!1:t==null||(0,K.default)(e,t)}function cL(e,t){return!e||e.type!=="TSTypeParameter"?!1:t==null||(0,K.default)(e,t)}function fL(e,t){if(!e)return!1;switch(e.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"InterpreterDirective":case"Directive":case"DirectiveLiteral":case"BlockStatement":case"BreakStatement":case"CallExpression":case"CatchClause":case"ConditionalExpression":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"File":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"FunctionExpression":case"Identifier":case"IfStatement":case"LabeledStatement":case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"Program":case"ObjectExpression":case"ObjectMethod":case"ObjectProperty":case"RestElement":case"ReturnStatement":case"SequenceExpression":case"ParenthesizedExpression":case"SwitchCase":case"SwitchStatement":case"ThisExpression":case"ThrowStatement":case"TryStatement":case"UnaryExpression":case"UpdateExpression":case"VariableDeclaration":case"VariableDeclarator":case"WhileStatement":case"WithStatement":case"AssignmentPattern":case"ArrayPattern":case"ArrowFunctionExpression":case"ClassBody":case"ClassExpression":case"ClassDeclaration":case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ExportSpecifier":case"ForOfStatement":case"ImportDeclaration":case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":case"ImportExpression":case"MetaProperty":case"ClassMethod":case"ObjectPattern":case"SpreadElement":case"Super":case"TaggedTemplateExpression":case"TemplateElement":case"TemplateLiteral":case"YieldExpression":case"AwaitExpression":case"Import":case"BigIntLiteral":case"ExportNamespaceSpecifier":case"OptionalMemberExpression":case"OptionalCallExpression":case"ClassProperty":case"ClassAccessorProperty":case"ClassPrivateProperty":case"ClassPrivateMethod":case"PrivateName":case"StaticBlock":break;case"Placeholder":switch(e.expectedNode){case"Identifier":case"StringLiteral":case"BlockStatement":case"ClassBody":break;default:return!1}break;default:return!1}return t==null||(0,K.default)(e,t)}function pL(e,t){if(!e)return!1;switch(e.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"CallExpression":case"ConditionalExpression":case"FunctionExpression":case"Identifier":case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"ObjectExpression":case"SequenceExpression":case"ParenthesizedExpression":case"ThisExpression":case"UnaryExpression":case"UpdateExpression":case"ArrowFunctionExpression":case"ClassExpression":case"ImportExpression":case"MetaProperty":case"Super":case"TaggedTemplateExpression":case"TemplateLiteral":case"YieldExpression":case"AwaitExpression":case"Import":case"BigIntLiteral":case"OptionalMemberExpression":case"OptionalCallExpression":case"TypeCastExpression":case"JSXElement":case"JSXFragment":case"BindExpression":case"DoExpression":case"RecordExpression":case"TupleExpression":case"DecimalLiteral":case"ModuleExpression":case"TopicReference":case"PipelineTopicExpression":case"PipelineBareFunction":case"PipelinePrimaryTopicReference":case"TSInstantiationExpression":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":break;case"Placeholder":switch(e.expectedNode){case"Expression":case"Identifier":case"StringLiteral":break;default:return!1}break;default:return!1}return t==null||(0,K.default)(e,t)}function hL(e,t){if(!e)return!1;switch(e.type){case"BinaryExpression":case"LogicalExpression":break;default:return!1}return t==null||(0,K.default)(e,t)}function dL(e,t){if(!e)return!1;switch(e.type){case"BlockStatement":case"CatchClause":case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"FunctionExpression":case"Program":case"ObjectMethod":case"SwitchStatement":case"WhileStatement":case"ArrowFunctionExpression":case"ClassExpression":case"ClassDeclaration":case"ForOfStatement":case"ClassMethod":case"ClassPrivateMethod":case"StaticBlock":case"TSModuleBlock":break;case"Placeholder":if(e.expectedNode==="BlockStatement")break;default:return!1}return t==null||(0,K.default)(e,t)}function mL(e,t){if(!e)return!1;switch(e.type){case"BlockStatement":case"CatchClause":case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"FunctionExpression":case"Program":case"ObjectMethod":case"SwitchStatement":case"WhileStatement":case"ArrowFunctionExpression":case"ForOfStatement":case"ClassMethod":case"ClassPrivateMethod":case"StaticBlock":case"TSModuleBlock":break;case"Placeholder":if(e.expectedNode==="BlockStatement")break;default:return!1}return t==null||(0,K.default)(e,t)}function yL(e,t){if(!e)return!1;switch(e.type){case"BlockStatement":case"Program":case"TSModuleBlock":break;case"Placeholder":if(e.expectedNode==="BlockStatement")break;default:return!1}return t==null||(0,K.default)(e,t)}function DL(e,t){if(!e)return!1;switch(e.type){case"BlockStatement":case"BreakStatement":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"IfStatement":case"LabeledStatement":case"ReturnStatement":case"SwitchStatement":case"ThrowStatement":case"TryStatement":case"VariableDeclaration":case"WhileStatement":case"WithStatement":case"ClassDeclaration":case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ForOfStatement":case"ImportDeclaration":case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"InterfaceDeclaration":case"OpaqueType":case"TypeAlias":case"EnumDeclaration":case"TSDeclareFunction":case"TSInterfaceDeclaration":case"TSTypeAliasDeclaration":case"TSEnumDeclaration":case"TSModuleDeclaration":case"TSImportEqualsDeclaration":case"TSExportAssignment":case"TSNamespaceExportDeclaration":break;case"Placeholder":switch(e.expectedNode){case"Statement":case"Declaration":case"BlockStatement":break;default:return!1}break;default:return!1}return t==null||(0,K.default)(e,t)}function gL(e,t){if(!e)return!1;switch(e.type){case"BreakStatement":case"ContinueStatement":case"ReturnStatement":case"ThrowStatement":case"YieldExpression":case"AwaitExpression":break;default:return!1}return t==null||(0,K.default)(e,t)}function EL(e,t){if(!e)return!1;switch(e.type){case"BreakStatement":case"ContinueStatement":case"ReturnStatement":case"ThrowStatement":break;default:return!1}return t==null||(0,K.default)(e,t)}function bL(e,t){if(!e)return!1;switch(e.type){case"ConditionalExpression":case"IfStatement":break;default:return!1}return t==null||(0,K.default)(e,t)}function TL(e,t){if(!e)return!1;switch(e.type){case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"WhileStatement":case"ForOfStatement":break;default:return!1}return t==null||(0,K.default)(e,t)}function SL(e,t){if(!e)return!1;switch(e.type){case"DoWhileStatement":case"WhileStatement":break;default:return!1}return t==null||(0,K.default)(e,t)}function vL(e,t){if(!e)return!1;switch(e.type){case"ExpressionStatement":case"ParenthesizedExpression":case"TypeCastExpression":break;default:return!1}return t==null||(0,K.default)(e,t)}function AL(e,t){if(!e)return!1;switch(e.type){case"ForInStatement":case"ForStatement":case"ForOfStatement":break;default:return!1}return t==null||(0,K.default)(e,t)}function CL(e,t){if(!e)return!1;switch(e.type){case"ForInStatement":case"ForOfStatement":break;default:return!1}return t==null||(0,K.default)(e,t)}function PL(e,t){if(!e)return!1;switch(e.type){case"FunctionDeclaration":case"FunctionExpression":case"ObjectMethod":case"ArrowFunctionExpression":case"ClassMethod":case"ClassPrivateMethod":break;default:return!1}return t==null||(0,K.default)(e,t)}function xL(e,t){if(!e)return!1;switch(e.type){case"FunctionDeclaration":case"FunctionExpression":case"ObjectMethod":case"ArrowFunctionExpression":case"ClassMethod":case"ClassPrivateMethod":case"StaticBlock":case"TSModuleBlock":break;default:return!1}return t==null||(0,K.default)(e,t)}function FL(e,t){if(!e)return!1;switch(e.type){case"FunctionDeclaration":case"FunctionExpression":case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"ArrowFunctionExpression":case"BigIntLiteral":case"DecimalLiteral":break;case"Placeholder":if(e.expectedNode==="StringLiteral")break;default:return!1}return t==null||(0,K.default)(e,t)}function _L(e,t){if(!e)return!1;switch(e.type){case"FunctionDeclaration":case"VariableDeclaration":case"ClassDeclaration":case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ImportDeclaration":case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"InterfaceDeclaration":case"OpaqueType":case"TypeAlias":case"EnumDeclaration":case"TSDeclareFunction":case"TSInterfaceDeclaration":case"TSTypeAliasDeclaration":case"TSEnumDeclaration":case"TSModuleDeclaration":break;case"Placeholder":if(e.expectedNode==="Declaration")break;default:return!1}return t==null||(0,K.default)(e,t)}function wL(e,t){if(!e)return!1;switch(e.type){case"Identifier":case"RestElement":case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":break;case"Placeholder":switch(e.expectedNode){case"Pattern":case"Identifier":break;default:return!1}break;default:return!1}return t==null||(0,K.default)(e,t)}function IL(e,t){if(!e)return!1;switch(e.type){case"Identifier":case"MemberExpression":case"RestElement":case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":case"TSParameterProperty":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":break;case"Placeholder":switch(e.expectedNode){case"Pattern":case"Identifier":break;default:return!1}break;default:return!1}return t==null||(0,K.default)(e,t)}function OL(e,t){if(!e)return!1;switch(e.type){case"Identifier":case"TSQualifiedName":break;case"Placeholder":if(e.expectedNode==="Identifier")break;default:return!1}return t==null||(0,K.default)(e,t)}function NL(e,t){if(!e)return!1;switch(e.type){case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"TemplateLiteral":case"BigIntLiteral":case"DecimalLiteral":break;case"Placeholder":if(e.expectedNode==="StringLiteral")break;default:return!1}return t==null||(0,K.default)(e,t)}function BL(e,t){if(!e)return!1;switch(e.type){case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"BigIntLiteral":case"JSXAttribute":case"JSXClosingElement":case"JSXElement":case"JSXExpressionContainer":case"JSXSpreadChild":case"JSXOpeningElement":case"JSXText":case"JSXFragment":case"JSXOpeningFragment":case"JSXClosingFragment":case"DecimalLiteral":break;case"Placeholder":if(e.expectedNode==="StringLiteral")break;default:return!1}return t==null||(0,K.default)(e,t)}function LL(e,t){if(!e)return!1;switch(e.type){case"ObjectMethod":case"ObjectProperty":case"ObjectTypeInternalSlot":case"ObjectTypeCallProperty":case"ObjectTypeIndexer":case"ObjectTypeProperty":case"ObjectTypeSpreadProperty":break;default:return!1}return t==null||(0,K.default)(e,t)}function kL(e,t){if(!e)return!1;switch(e.type){case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":break;default:return!1}return t==null||(0,K.default)(e,t)}function RL(e,t){if(!e)return!1;switch(e.type){case"ObjectMethod":case"ObjectProperty":break;default:return!1}return t==null||(0,K.default)(e,t)}function ML(e,t){if(!e)return!1;switch(e.type){case"ObjectProperty":case"ClassProperty":case"ClassAccessorProperty":case"ClassPrivateProperty":break;default:return!1}return t==null||(0,K.default)(e,t)}function jL(e,t){if(!e)return!1;switch(e.type){case"UnaryExpression":case"SpreadElement":break;default:return!1}return t==null||(0,K.default)(e,t)}function $L(e,t){if(!e)return!1;switch(e.type){case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":break;case"Placeholder":if(e.expectedNode==="Pattern")break;default:return!1}return t==null||(0,K.default)(e,t)}function UL(e,t){if(!e)return!1;switch(e.type){case"ClassExpression":case"ClassDeclaration":break;default:return!1}return t==null||(0,K.default)(e,t)}function V0(e,t){if(!e)return!1;switch(e.type){case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ImportDeclaration":break;default:return!1}return t==null||(0,K.default)(e,t)}function VL(e,t){if(!e)return!1;switch(e.type){case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":break;default:return!1}return t==null||(0,K.default)(e,t)}function qL(e,t){if(!e)return!1;switch(e.type){case"ExportSpecifier":case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":case"ExportNamespaceSpecifier":case"ExportDefaultSpecifier":break;default:return!1}return t==null||(0,K.default)(e,t)}function KL(e,t){if(!e)return!1;switch(e.type){case"ClassAccessorProperty":break;default:return!1}return t==null||(0,K.default)(e,t)}function WL(e,t){if(!e)return!1;switch(e.type){case"ClassPrivateProperty":case"ClassPrivateMethod":case"PrivateName":break;default:return!1}return t==null||(0,K.default)(e,t)}function HL(e,t){if(!e)return!1;switch(e.type){case"AnyTypeAnnotation":case"ArrayTypeAnnotation":case"BooleanTypeAnnotation":case"BooleanLiteralTypeAnnotation":case"NullLiteralTypeAnnotation":case"ClassImplements":case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"DeclaredPredicate":case"ExistsTypeAnnotation":case"FunctionTypeAnnotation":case"FunctionTypeParam":case"GenericTypeAnnotation":case"InferredPredicate":case"InterfaceExtends":case"InterfaceDeclaration":case"InterfaceTypeAnnotation":case"IntersectionTypeAnnotation":case"MixedTypeAnnotation":case"EmptyTypeAnnotation":case"NullableTypeAnnotation":case"NumberLiteralTypeAnnotation":case"NumberTypeAnnotation":case"ObjectTypeAnnotation":case"ObjectTypeInternalSlot":case"ObjectTypeCallProperty":case"ObjectTypeIndexer":case"ObjectTypeProperty":case"ObjectTypeSpreadProperty":case"OpaqueType":case"QualifiedTypeIdentifier":case"StringLiteralTypeAnnotation":case"StringTypeAnnotation":case"SymbolTypeAnnotation":case"ThisTypeAnnotation":case"TupleTypeAnnotation":case"TypeofTypeAnnotation":case"TypeAlias":case"TypeAnnotation":case"TypeCastExpression":case"TypeParameter":case"TypeParameterDeclaration":case"TypeParameterInstantiation":case"UnionTypeAnnotation":case"Variance":case"VoidTypeAnnotation":case"EnumDeclaration":case"EnumBooleanBody":case"EnumNumberBody":case"EnumStringBody":case"EnumSymbolBody":case"EnumBooleanMember":case"EnumNumberMember":case"EnumStringMember":case"EnumDefaultedMember":case"IndexedAccessType":case"OptionalIndexedAccessType":break;default:return!1}return t==null||(0,K.default)(e,t)}function GL(e,t){if(!e)return!1;switch(e.type){case"AnyTypeAnnotation":case"ArrayTypeAnnotation":case"BooleanTypeAnnotation":case"BooleanLiteralTypeAnnotation":case"NullLiteralTypeAnnotation":case"ExistsTypeAnnotation":case"FunctionTypeAnnotation":case"GenericTypeAnnotation":case"InterfaceTypeAnnotation":case"IntersectionTypeAnnotation":case"MixedTypeAnnotation":case"EmptyTypeAnnotation":case"NullableTypeAnnotation":case"NumberLiteralTypeAnnotation":case"NumberTypeAnnotation":case"ObjectTypeAnnotation":case"StringLiteralTypeAnnotation":case"StringTypeAnnotation":case"SymbolTypeAnnotation":case"ThisTypeAnnotation":case"TupleTypeAnnotation":case"TypeofTypeAnnotation":case"UnionTypeAnnotation":case"VoidTypeAnnotation":case"IndexedAccessType":case"OptionalIndexedAccessType":break;default:return!1}return t==null||(0,K.default)(e,t)}function YL(e,t){if(!e)return!1;switch(e.type){case"AnyTypeAnnotation":case"BooleanTypeAnnotation":case"NullLiteralTypeAnnotation":case"MixedTypeAnnotation":case"EmptyTypeAnnotation":case"NumberTypeAnnotation":case"StringTypeAnnotation":case"SymbolTypeAnnotation":case"ThisTypeAnnotation":case"VoidTypeAnnotation":break;default:return!1}return t==null||(0,K.default)(e,t)}function XL(e,t){if(!e)return!1;switch(e.type){case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"InterfaceDeclaration":case"OpaqueType":case"TypeAlias":break;default:return!1}return t==null||(0,K.default)(e,t)}function JL(e,t){if(!e)return!1;switch(e.type){case"DeclaredPredicate":case"InferredPredicate":break;default:return!1}return t==null||(0,K.default)(e,t)}function zL(e,t){if(!e)return!1;switch(e.type){case"EnumBooleanBody":case"EnumNumberBody":case"EnumStringBody":case"EnumSymbolBody":break;default:return!1}return t==null||(0,K.default)(e,t)}function QL(e,t){if(!e)return!1;switch(e.type){case"EnumBooleanMember":case"EnumNumberMember":case"EnumStringMember":case"EnumDefaultedMember":break;default:return!1}return t==null||(0,K.default)(e,t)}function ZL(e,t){if(!e)return!1;switch(e.type){case"JSXAttribute":case"JSXClosingElement":case"JSXElement":case"JSXEmptyExpression":case"JSXExpressionContainer":case"JSXSpreadChild":case"JSXIdentifier":case"JSXMemberExpression":case"JSXNamespacedName":case"JSXOpeningElement":case"JSXSpreadAttribute":case"JSXText":case"JSXFragment":case"JSXOpeningFragment":case"JSXClosingFragment":break;default:return!1}return t==null||(0,K.default)(e,t)}function ek(e,t){if(!e)return!1;switch(e.type){case"Noop":case"Placeholder":case"V8IntrinsicIdentifier":break;default:return!1}return t==null||(0,K.default)(e,t)}function tk(e,t){if(!e)return!1;switch(e.type){case"TSParameterProperty":case"TSDeclareFunction":case"TSDeclareMethod":case"TSQualifiedName":case"TSCallSignatureDeclaration":case"TSConstructSignatureDeclaration":case"TSPropertySignature":case"TSMethodSignature":case"TSIndexSignature":case"TSAnyKeyword":case"TSBooleanKeyword":case"TSBigIntKeyword":case"TSIntrinsicKeyword":case"TSNeverKeyword":case"TSNullKeyword":case"TSNumberKeyword":case"TSObjectKeyword":case"TSStringKeyword":case"TSSymbolKeyword":case"TSUndefinedKeyword":case"TSUnknownKeyword":case"TSVoidKeyword":case"TSThisType":case"TSFunctionType":case"TSConstructorType":case"TSTypeReference":case"TSTypePredicate":case"TSTypeQuery":case"TSTypeLiteral":case"TSArrayType":case"TSTupleType":case"TSOptionalType":case"TSRestType":case"TSNamedTupleMember":case"TSUnionType":case"TSIntersectionType":case"TSConditionalType":case"TSInferType":case"TSParenthesizedType":case"TSTypeOperator":case"TSIndexedAccessType":case"TSMappedType":case"TSLiteralType":case"TSExpressionWithTypeArguments":case"TSInterfaceDeclaration":case"TSInterfaceBody":case"TSTypeAliasDeclaration":case"TSInstantiationExpression":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSEnumDeclaration":case"TSEnumMember":case"TSModuleDeclaration":case"TSModuleBlock":case"TSImportType":case"TSImportEqualsDeclaration":case"TSExternalModuleReference":case"TSNonNullExpression":case"TSExportAssignment":case"TSNamespaceExportDeclaration":case"TSTypeAnnotation":case"TSTypeParameterInstantiation":case"TSTypeParameterDeclaration":case"TSTypeParameter":break;default:return!1}return t==null||(0,K.default)(e,t)}function rk(e,t){if(!e)return!1;switch(e.type){case"TSCallSignatureDeclaration":case"TSConstructSignatureDeclaration":case"TSPropertySignature":case"TSMethodSignature":case"TSIndexSignature":break;default:return!1}return t==null||(0,K.default)(e,t)}function nk(e,t){if(!e)return!1;switch(e.type){case"TSAnyKeyword":case"TSBooleanKeyword":case"TSBigIntKeyword":case"TSIntrinsicKeyword":case"TSNeverKeyword":case"TSNullKeyword":case"TSNumberKeyword":case"TSObjectKeyword":case"TSStringKeyword":case"TSSymbolKeyword":case"TSUndefinedKeyword":case"TSUnknownKeyword":case"TSVoidKeyword":case"TSThisType":case"TSFunctionType":case"TSConstructorType":case"TSTypeReference":case"TSTypePredicate":case"TSTypeQuery":case"TSTypeLiteral":case"TSArrayType":case"TSTupleType":case"TSOptionalType":case"TSRestType":case"TSUnionType":case"TSIntersectionType":case"TSConditionalType":case"TSInferType":case"TSParenthesizedType":case"TSTypeOperator":case"TSIndexedAccessType":case"TSMappedType":case"TSLiteralType":case"TSExpressionWithTypeArguments":case"TSImportType":break;default:return!1}return t==null||(0,K.default)(e,t)}function ik(e,t){if(!e)return!1;switch(e.type){case"TSAnyKeyword":case"TSBooleanKeyword":case"TSBigIntKeyword":case"TSIntrinsicKeyword":case"TSNeverKeyword":case"TSNullKeyword":case"TSNumberKeyword":case"TSObjectKeyword":case"TSStringKeyword":case"TSSymbolKeyword":case"TSUndefinedKeyword":case"TSUnknownKeyword":case"TSVoidKeyword":case"TSThisType":case"TSLiteralType":break;default:return!1}return t==null||(0,K.default)(e,t)}function sk(e,t){return(0,js.default)("isNumberLiteral","isNumericLiteral"),!e||e.type!=="NumberLiteral"?!1:t==null||(0,K.default)(e,t)}function ak(e,t){return(0,js.default)("isRegexLiteral","isRegExpLiteral"),!e||e.type!=="RegexLiteral"?!1:t==null||(0,K.default)(e,t)}function ok(e,t){return(0,js.default)("isRestProperty","isRestElement"),!e||e.type!=="RestProperty"?!1:t==null||(0,K.default)(e,t)}function uk(e,t){return(0,js.default)("isSpreadProperty","isSpreadElement"),!e||e.type!=="SpreadProperty"?!1:t==null||(0,K.default)(e,t)}function lk(e,t){return(0,js.default)("isModuleDeclaration","isImportOrExportDeclaration"),V0(e,t)}Object.defineProperty(Lo,"__esModule",{value:!0});Lo.default=ck;var es=M;function ck(e,t,r){if(!(0,es.isMemberExpression)(e))return!1;const n=Array.isArray(t)?t:t.split("."),i=[];let s;for(s=e;(0,es.isMemberExpression)(s);s=s.object)i.push(s.property);if(i.push(s),i.length<n.length||!r&&i.length>n.length)return!1;for(let a=0,o=i.length-1;a<n.length;a++,o--){const u=i[o];let l;if((0,es.isIdentifier)(u))l=u.name;else if((0,es.isStringLiteral)(u))l=u.value;else if((0,es.isThisExpression)(u))l="this";else return!1;if(n[a]!==l)return!1}return!0}Object.defineProperty(Bo,"__esModule",{value:!0});Bo.default=pk;var fk=Lo;function pk(e,t){const r=e.split(".");return n=>(0,fk.default)(n,r,t)}Object.defineProperty(No,"__esModule",{value:!0});No.default=void 0;var hk=Bo;const dk=(0,hk.default)("React.Component");No.default=dk;var zc={};Object.defineProperty(zc,"__esModule",{value:!0});zc.default=mk;function mk(e){return!!e&&/^[a-z]/.test(e)}var ya={},Da={},k={},ga={},Ei={},Wu={};let ts=null;function Cs(e){if(ts!==null&&typeof ts.property){const t=ts;return ts=Cs.prototype=null,t}return ts=Cs.prototype=e??Object.create(null),new Cs}Cs();var yk=function(t){return Cs(t)},kt={},Ea={},ba={},Eh;function Qc(){if(Eh)return ba;Eh=1,Object.defineProperty(ba,"__esModule",{value:!0}),ba.default=t;var e=br();function t(r,n){if(r===n)return!0;if(r==null||e.ALIAS_KEYS[n])return!1;const i=e.FLIPPED_ALIAS_KEYS[n];if(i){if(i[0]===r)return!0;for(const s of i)if(r===s)return!0}return!1}return ba}var Ta={},bh;function q0(){if(bh)return Ta;bh=1,Object.defineProperty(Ta,"__esModule",{value:!0}),Ta.default=t;var e=br();function t(r,n){if(r===n)return!0;const i=e.PLACEHOLDERS_ALIAS[r];if(i){for(const s of i)if(n===s)return!0}return!1}return Ta}var Th;function $s(){if(Th)return Ea;Th=1,Object.defineProperty(Ea,"__esModule",{value:!0}),Ea.default=i;var e=Ms,t=Qc(),r=q0(),n=br();function i(s,a,o){return a?(0,t.default)(a.type,s)?typeof o>"u"?!0:(0,e.default)(a,o):!o&&a.type==="Placeholder"&&s in n.FLIPPED_ALIAS_KEYS?(0,r.default)(a.expectedNode,s):!1:!1}return Ea}var fi={},Us={},Vs={};Object.defineProperty(Vs,"__esModule",{value:!0});Vs.isIdentifierChar=G0;Vs.isIdentifierName=bk;Vs.isIdentifierStart=H0;let Zc="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟊꟐꟑꟓꟕ-ꟙꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",K0="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࢘-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・";const Dk=new RegExp("["+Zc+"]"),gk=new RegExp("["+Zc+K0+"]");Zc=K0=null;const W0=[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,68,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,71,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,349,41,7,1,79,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,159,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,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,4026,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8936,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,757,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,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],Ek=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,81,2,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,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,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,406,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,330,3,10,1,2,0,49,6,4,4,14,9,5351,0,7,14,13835,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,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,983,6,110,6,6,9,4759,9,787719,239];function $l(e,t){let r=65536;for(let n=0,i=t.length;n<i;n+=2){if(r+=t[n],r>e)return!1;if(r+=t[n+1],r>=e)return!0}return!1}function H0(e){return e<65?e===36:e<=90?!0:e<97?e===95:e<=122?!0:e<=65535?e>=170&&Dk.test(String.fromCharCode(e)):$l(e,W0)}function G0(e){return e<48?e===36:e<58?!0:e<65?!1:e<=90?!0:e<97?e===95:e<=122?!0:e<=65535?e>=170&&gk.test(String.fromCharCode(e)):$l(e,W0)||$l(e,Ek)}function bk(e){let t=!0;for(let r=0;r<e.length;r++){let n=e.charCodeAt(r);if((n&64512)===55296&&r+1<e.length){const i=e.charCodeAt(++r);(i&64512)===56320&&(n=65536+((n&1023)<<10)+(i&1023))}if(t){if(t=!1,!H0(n))return!1}else if(!G0(n))return!1}return!t}var pi={};Object.defineProperty(pi,"__esModule",{value:!0});pi.isKeyword=Ck;pi.isReservedWord=Y0;pi.isStrictBindOnlyReservedWord=J0;pi.isStrictBindReservedWord=Ak;pi.isStrictReservedWord=X0;const ef={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]},Tk=new Set(ef.keyword),Sk=new Set(ef.strict),vk=new Set(ef.strictBind);function Y0(e,t){return t&&e==="await"||e==="enum"}function X0(e,t){return Y0(e,t)||Sk.has(e)}function J0(e){return vk.has(e)}function Ak(e,t){return X0(e,t)||J0(e)}function Ck(e){return Tk.has(e)}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isIdentifierChar",{enumerable:!0,get:function(){return t.isIdentifierChar}}),Object.defineProperty(e,"isIdentifierName",{enumerable:!0,get:function(){return t.isIdentifierName}}),Object.defineProperty(e,"isIdentifierStart",{enumerable:!0,get:function(){return t.isIdentifierStart}}),Object.defineProperty(e,"isKeyword",{enumerable:!0,get:function(){return r.isKeyword}}),Object.defineProperty(e,"isReservedWord",{enumerable:!0,get:function(){return r.isReservedWord}}),Object.defineProperty(e,"isStrictBindOnlyReservedWord",{enumerable:!0,get:function(){return r.isStrictBindOnlyReservedWord}}),Object.defineProperty(e,"isStrictBindReservedWord",{enumerable:!0,get:function(){return r.isStrictBindReservedWord}}),Object.defineProperty(e,"isStrictReservedWord",{enumerable:!0,get:function(){return r.isStrictReservedWord}});var t=Vs,r=pi})(Us);Object.defineProperty(fi,"__esModule",{value:!0});fi.default=Pk;var Hu=Us;function Pk(e,t=!0){return typeof e!="string"||t&&((0,Hu.isKeyword)(e)||(0,Hu.isStrictReservedWord)(e,!0))?!1:(0,Hu.isIdentifierName)(e)}var qs={};Object.defineProperty(qs,"__esModule",{value:!0});qs.readCodePoint=Q0;qs.readInt=z0;qs.readStringContents=Fk;var xk=function(t){return t>=48&&t<=57};const Sh={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},Sa={bin:e=>e===48||e===49,oct:e=>e>=48&&e<=55,dec:e=>e>=48&&e<=57,hex:e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102};function Fk(e,t,r,n,i,s){const a=r,o=n,u=i;let l="",c=null,f=r;const{length:p}=t;for(;;){if(r>=p){s.unterminated(a,o,u),l+=t.slice(f,r);break}const h=t.charCodeAt(r);if(_k(e,h,t,r)){l+=t.slice(f,r);break}if(h===92){l+=t.slice(f,r);const d=wk(t,r,n,i,e==="template",s);d.ch===null&&!c?c={pos:r,lineStart:n,curLine:i}:l+=d.ch,{pos:r,lineStart:n,curLine:i}=d,f=r}else h===8232||h===8233?(++r,++i,n=r):h===10||h===13?e==="template"?(l+=t.slice(f,r)+`
|
|
121
|
+
`,++r,h===13&&t.charCodeAt(r)===10&&++r,++i,f=n=r):s.unterminated(a,o,u):++r}return{pos:r,str:l,firstInvalidLoc:c,lineStart:n,curLine:i,containsInvalid:!!c}}function _k(e,t,r,n){return e==="template"?t===96||t===36&&r.charCodeAt(n+1)===123:t===(e==="double"?34:39)}function wk(e,t,r,n,i,s){const a=!i;t++;const o=l=>({pos:t,ch:l,lineStart:r,curLine:n}),u=e.charCodeAt(t++);switch(u){case 110:return o(`
|
|
122
|
+
`);case 114:return o("\r");case 120:{let l;return{code:l,pos:t}=Ul(e,t,r,n,2,!1,a,s),o(l===null?null:String.fromCharCode(l))}case 117:{let l;return{code:l,pos:t}=Q0(e,t,r,n,a,s),o(l===null?null:String.fromCodePoint(l))}case 116:return o(" ");case 98:return o("\b");case 118:return o("\v");case 102:return o("\f");case 13:e.charCodeAt(t)===10&&++t;case 10:r=t,++n;case 8232:case 8233:return o("");case 56:case 57:if(i)return o(null);s.strictNumericEscape(t-1,r,n);default:if(u>=48&&u<=55){const l=t-1;let f=/^[0-7]+/.exec(e.slice(l,t+2))[0],p=parseInt(f,8);p>255&&(f=f.slice(0,-1),p=parseInt(f,8)),t+=f.length-1;const h=e.charCodeAt(t);if(f!=="0"||h===56||h===57){if(i)return o(null);s.strictNumericEscape(l,r,n)}return o(String.fromCharCode(p))}return o(String.fromCharCode(u))}}function Ul(e,t,r,n,i,s,a,o){const u=t;let l;return{n:l,pos:t}=z0(e,t,r,n,16,i,s,!1,o,!a),l===null&&(a?o.invalidEscapeSequence(u,r,n):t=u-1),{code:l,pos:t}}function z0(e,t,r,n,i,s,a,o,u,l){const c=t,f=i===16?Sh.hex:Sh.decBinOct,p=i===16?Sa.hex:i===10?Sa.dec:i===8?Sa.oct:Sa.bin;let h=!1,d=0;for(let m=0,D=s??1/0;m<D;++m){const g=e.charCodeAt(t);let y;if(g===95&&o!=="bail"){const b=e.charCodeAt(t-1),O=e.charCodeAt(t+1);if(o){if(Number.isNaN(O)||!p(O)||f.has(b)||f.has(O)){if(l)return{n:null,pos:t};u.unexpectedNumericSeparator(t,r,n)}}else{if(l)return{n:null,pos:t};u.numericSeparatorInEscapeSequence(t,r,n)}++t;continue}if(g>=97?y=g-97+10:g>=65?y=g-65+10:xk(g)?y=g-48:y=1/0,y>=i){if(y<=9&&l)return{n:null,pos:t};if(y<=9&&u.invalidDigit(t,r,n,i))y=0;else if(a)y=0,h=!0;else break}++t,d=d*i+y}return t===c||s!=null&&t-c!==s||h?{n:null,pos:t}:{n:d,pos:t}}function Q0(e,t,r,n,i,s){const a=e.charCodeAt(t);let o;if(a===123){if(++t,{code:o,pos:t}=Ul(e,t,r,n,e.indexOf("}",t)-t,!0,i,s),++t,o!==null&&o>1114111)if(i)s.invalidCodePoint(t,r,n);else return{code:null,pos:t}}else({code:o,pos:t}=Ul(e,t,r,n,4,!1,i,s));return{code:o,pos:t}}var $e={};Object.defineProperty($e,"__esModule",{value:!0});$e.UPDATE_OPERATORS=$e.UNARY_OPERATORS=$e.STRING_UNARY_OPERATORS=$e.STATEMENT_OR_BLOCK_KEYS=$e.NUMBER_UNARY_OPERATORS=$e.NUMBER_BINARY_OPERATORS=$e.NOT_LOCAL_BINDING=$e.LOGICAL_OPERATORS=$e.INHERIT_KEYS=$e.FOR_INIT_KEYS=$e.FLATTENABLE_KEYS=$e.EQUALITY_BINARY_OPERATORS=$e.COMPARISON_BINARY_OPERATORS=$e.COMMENT_KEYS=$e.BOOLEAN_UNARY_OPERATORS=$e.BOOLEAN_NUMBER_BINARY_OPERATORS=$e.BOOLEAN_BINARY_OPERATORS=$e.BLOCK_SCOPED_SYMBOL=$e.BINARY_OPERATORS=$e.ASSIGNMENT_OPERATORS=void 0;$e.STATEMENT_OR_BLOCK_KEYS=["consequent","body","alternate"];$e.FLATTENABLE_KEYS=["body","expressions"];$e.FOR_INIT_KEYS=["left","init"];$e.COMMENT_KEYS=["leadingComments","trailingComments","innerComments"];const Ik=$e.LOGICAL_OPERATORS=["||","&&","??"];$e.UPDATE_OPERATORS=["++","--"];const Ok=$e.BOOLEAN_NUMBER_BINARY_OPERATORS=[">","<",">=","<="],Nk=$e.EQUALITY_BINARY_OPERATORS=["==","===","!=","!=="],Bk=$e.COMPARISON_BINARY_OPERATORS=[...Nk,"in","instanceof"],Lk=$e.BOOLEAN_BINARY_OPERATORS=[...Bk,...Ok],Z0=$e.NUMBER_BINARY_OPERATORS=["-","/","%","*","**","&","|",">>",">>>","<<","^"];$e.BINARY_OPERATORS=["+",...Z0,...Lk,"|>"];$e.ASSIGNMENT_OPERATORS=["=","+=",...Z0.map(e=>e+"="),...Ik.map(e=>e+"=")];const kk=$e.BOOLEAN_UNARY_OPERATORS=["delete","!"],Rk=$e.NUMBER_UNARY_OPERATORS=["+","-","~"],Mk=$e.STRING_UNARY_OPERATORS=["typeof"];$e.UNARY_OPERATORS=["void","throw",...kk,...Rk,...Mk];$e.INHERIT_KEYS={optional:["typeAnnotation","typeParameters","returnType"],force:["start","loc","end"]};$e.BLOCK_SCOPED_SYMBOL=Symbol.for("var used to be block scoped");$e.NOT_LOCAL_BINDING=Symbol.for("should not be considered a local binding");var tt={},vh;function Mn(){if(vh)return tt;vh=1,Object.defineProperty(tt,"__esModule",{value:!0}),tt.VISITOR_KEYS=tt.NODE_PARENT_VALIDATIONS=tt.NODE_FIELDS=tt.FLIPPED_ALIAS_KEYS=tt.DEPRECATED_KEYS=tt.BUILDER_KEYS=tt.ALIAS_KEYS=void 0,tt.arrayOf=m,tt.arrayOfType=D,tt.assertEach=y,tt.assertNodeOrValueType=C,tt.assertNodeType=O,tt.assertOneOf=b,tt.assertOptionalChainStart=P,tt.assertShape=w,tt.assertValueType=$,tt.chain=I,tt.default=B,tt.defineAliasedType=A,tt.typeIs=f,tt.validate=c,tt.validateArrayOfType=g,tt.validateOptional=h,tt.validateOptionalType=d,tt.validateType=p;var e=$s(),t=tf();const r=tt.VISITOR_KEYS={},n=tt.ALIAS_KEYS={},i=tt.FLIPPED_ALIAS_KEYS={},s=tt.NODE_FIELDS={},a=tt.BUILDER_KEYS={},o=tt.DEPRECATED_KEYS={},u=tt.NODE_PARENT_VALIDATIONS={};function l(x){return Array.isArray(x)?"array":x===null?"null":typeof x}function c(x){return{validate:x}}function f(x){return typeof x=="string"?O(x):O(...x)}function p(x){return c(f(x))}function h(x){return{validate:x,optional:!0}}function d(x){return{validate:f(x),optional:!0}}function m(x){return I($("array"),y(x))}function D(x){return m(f(x))}function g(x){return c(D(x))}function y(x){function N(H,T,_){if(Array.isArray(_))for(let R=0;R<_.length;R++){const Q=`${T}[${R}]`,ne=_[R];x(H,Q,ne),process.env.BABEL_TYPES_8_BREAKING&&(0,t.validateChild)(H,Q,ne)}}return N.each=x,N}function b(...x){function N(H,T,_){if(!x.includes(_))throw new TypeError(`Property ${T} expected value to be one of ${JSON.stringify(x)} but got ${JSON.stringify(_)}`)}return N.oneOf=x,N}function O(...x){function N(H,T,_){for(const R of x)if((0,e.default)(R,_)){(0,t.validateChild)(H,T,_);return}throw new TypeError(`Property ${T} of ${H.type} expected node to be of a type ${JSON.stringify(x)} but instead got ${JSON.stringify(_==null?void 0:_.type)}`)}return N.oneOfNodeTypes=x,N}function C(...x){function N(H,T,_){for(const R of x)if(l(_)===R||(0,e.default)(R,_)){(0,t.validateChild)(H,T,_);return}throw new TypeError(`Property ${T} of ${H.type} expected node to be of a type ${JSON.stringify(x)} but instead got ${JSON.stringify(_==null?void 0:_.type)}`)}return N.oneOfNodeOrValueTypes=x,N}function $(x){function N(H,T,_){if(!(l(_)===x))throw new TypeError(`Property ${T} expected type of ${x} but got ${l(_)}`)}return N.type=x,N}function w(x){function N(H,T,_){const R=[];for(const Q of Object.keys(x))try{(0,t.validateField)(H,Q,_[Q],x[Q])}catch(ne){if(ne instanceof TypeError){R.push(ne.message);continue}throw ne}if(R.length)throw new TypeError(`Property ${T} of ${H.type} expected to have the following:
|
|
123
|
+
${R.join(`
|
|
124
|
+
`)}`)}return N.shapeOf=x,N}function P(){function x(N){var H;let T=N;for(;N;){const{type:_}=T;if(_==="OptionalCallExpression"){if(T.optional)return;T=T.callee;continue}if(_==="OptionalMemberExpression"){if(T.optional)return;T=T.object;continue}break}throw new TypeError(`Non-optional ${N.type} must chain from an optional OptionalMemberExpression or OptionalCallExpression. Found chain from ${(H=T)==null?void 0:H.type}`)}return x}function I(...x){function N(...H){for(const T of x)T(...H)}if(N.chainOf=x,x.length>=2&&"type"in x[0]&&x[0].type==="array"&&!("each"in x[1]))throw new Error('An assertValueType("array") validator can only be followed by an assertEach(...) validator.');return N}const L=["aliases","builder","deprecatedAlias","fields","inherits","visitor","validate"],F=["default","optional","deprecated","validate"],S={};function A(...x){return(N,H={})=>{let T=H.aliases;if(!T){var _,R;H.inherits&&(T=(_=S[H.inherits].aliases)==null?void 0:_.slice()),(R=T)!=null||(T=[]),H.aliases=T}const Q=x.filter(ne=>!T.includes(ne));T.unshift(...Q),B(N,H)}}function B(x,N={}){const H=N.inherits&&S[N.inherits]||{};let T=N.fields;if(!T&&(T={},H.fields)){const ne=Object.getOwnPropertyNames(H.fields);for(const X of ne){const ae=H.fields[X],ie=ae.default;if(Array.isArray(ie)?ie.length>0:ie&&typeof ie=="object")throw new Error("field defaults can only be primitives or empty arrays currently");T[X]={default:Array.isArray(ie)?[]:ie,optional:ae.optional,deprecated:ae.deprecated,validate:ae.validate}}}const _=N.visitor||H.visitor||[],R=N.aliases||H.aliases||[],Q=N.builder||H.builder||N.visitor||[];for(const ne of Object.keys(N))if(!L.includes(ne))throw new Error(`Unknown type option "${ne}" on ${x}`);N.deprecatedAlias&&(o[N.deprecatedAlias]=x);for(const ne of _.concat(Q))T[ne]=T[ne]||{};for(const ne of Object.keys(T)){const X=T[ne];X.default!==void 0&&!Q.includes(ne)&&(X.optional=!0),X.default===void 0?X.default=null:!X.validate&&X.default!=null&&(X.validate=$(l(X.default)));for(const ae of Object.keys(X))if(!F.includes(ae))throw new Error(`Unknown field key "${ae}" on ${x}.${ne}`)}r[x]=N.visitor=_,a[x]=N.builder=Q,s[x]=N.fields=T,n[x]=N.aliases=R,R.forEach(ne=>{i[ne]=i[ne]||[],i[ne].push(x)}),N.validate&&(u[x]=N.validate),S[x]=N}return tt}var Ah;function eD(){if(Ah)return kt;Ah=1,Object.defineProperty(kt,"__esModule",{value:!0}),kt.patternLikeCommon=kt.functionTypeAnnotationCommon=kt.functionDeclarationCommon=kt.functionCommon=kt.classMethodOrPropertyCommon=kt.classMethodOrDeclareMethodCommon=void 0;var e=$s(),t=fi,r=Us,n=qs,i=$e,s=Mn();const a=(0,s.defineAliasedType)("Standardized");a("ArrayExpression",{fields:{elements:{validate:(0,s.chain)((0,s.assertValueType)("array"),(0,s.assertEach)((0,s.assertNodeOrValueType)("null","Expression","SpreadElement"))),default:process.env.BABEL_TYPES_8_BREAKING?void 0:[]}},visitor:["elements"],aliases:["Expression"]}),a("AssignmentExpression",{fields:{operator:{validate:function(){if(!process.env.BABEL_TYPES_8_BREAKING)return(0,s.assertValueType)("string");const h=(0,s.assertOneOf)(...i.ASSIGNMENT_OPERATORS),d=(0,s.assertOneOf)("=");return function(m,D,g){((0,e.default)("Pattern",m.left)?d:h)(m,D,g)}}()},left:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,s.assertNodeType)("Identifier","MemberExpression","OptionalMemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression"):(0,s.assertNodeType)("LVal","OptionalMemberExpression")},right:{validate:(0,s.assertNodeType)("Expression")}},builder:["operator","left","right"],visitor:["left","right"],aliases:["Expression"]}),a("BinaryExpression",{builder:["operator","left","right"],fields:{operator:{validate:(0,s.assertOneOf)(...i.BINARY_OPERATORS)},left:{validate:function(){const h=(0,s.assertNodeType)("Expression"),d=(0,s.assertNodeType)("Expression","PrivateName");return Object.assign(function(D,g,y){(D.operator==="in"?d:h)(D,g,y)},{oneOfNodeTypes:["Expression","PrivateName"]})}()},right:{validate:(0,s.assertNodeType)("Expression")}},visitor:["left","right"],aliases:["Binary","Expression"]}),a("InterpreterDirective",{builder:["value"],fields:{value:{validate:(0,s.assertValueType)("string")}}}),a("Directive",{visitor:["value"],fields:{value:{validate:(0,s.assertNodeType)("DirectiveLiteral")}}}),a("DirectiveLiteral",{builder:["value"],fields:{value:{validate:(0,s.assertValueType)("string")}}}),a("BlockStatement",{builder:["body","directives"],visitor:["directives","body"],fields:{directives:{validate:(0,s.chain)((0,s.assertValueType)("array"),(0,s.assertEach)((0,s.assertNodeType)("Directive"))),default:[]},body:{validate:(0,s.chain)((0,s.assertValueType)("array"),(0,s.assertEach)((0,s.assertNodeType)("Statement")))}},aliases:["Scopable","BlockParent","Block","Statement"]}),a("BreakStatement",{visitor:["label"],fields:{label:{validate:(0,s.assertNodeType)("Identifier"),optional:!0}},aliases:["Statement","Terminatorless","CompletionStatement"]}),a("CallExpression",{visitor:["callee","arguments","typeParameters","typeArguments"],builder:["callee","arguments"],aliases:["Expression"],fields:Object.assign({callee:{validate:(0,s.assertNodeType)("Expression","Super","V8IntrinsicIdentifier")},arguments:{validate:(0,s.chain)((0,s.assertValueType)("array"),(0,s.assertEach)((0,s.assertNodeType)("Expression","SpreadElement","ArgumentPlaceholder")))}},process.env.BABEL_TYPES_8_BREAKING?{}:{optional:{validate:(0,s.assertOneOf)(!0,!1),optional:!0}},{typeArguments:{validate:(0,s.assertNodeType)("TypeParameterInstantiation"),optional:!0},typeParameters:{validate:(0,s.assertNodeType)("TSTypeParameterInstantiation"),optional:!0}})}),a("CatchClause",{visitor:["param","body"],fields:{param:{validate:(0,s.assertNodeType)("Identifier","ArrayPattern","ObjectPattern"),optional:!0},body:{validate:(0,s.assertNodeType)("BlockStatement")}},aliases:["Scopable","BlockParent"]}),a("ConditionalExpression",{visitor:["test","consequent","alternate"],fields:{test:{validate:(0,s.assertNodeType)("Expression")},consequent:{validate:(0,s.assertNodeType)("Expression")},alternate:{validate:(0,s.assertNodeType)("Expression")}},aliases:["Expression","Conditional"]}),a("ContinueStatement",{visitor:["label"],fields:{label:{validate:(0,s.assertNodeType)("Identifier"),optional:!0}},aliases:["Statement","Terminatorless","CompletionStatement"]}),a("DebuggerStatement",{aliases:["Statement"]}),a("DoWhileStatement",{visitor:["test","body"],fields:{test:{validate:(0,s.assertNodeType)("Expression")},body:{validate:(0,s.assertNodeType)("Statement")}},aliases:["Statement","BlockParent","Loop","While","Scopable"]}),a("EmptyStatement",{aliases:["Statement"]}),a("ExpressionStatement",{visitor:["expression"],fields:{expression:{validate:(0,s.assertNodeType)("Expression")}},aliases:["Statement","ExpressionWrapper"]}),a("File",{builder:["program","comments","tokens"],visitor:["program"],fields:{program:{validate:(0,s.assertNodeType)("Program")},comments:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,s.assertEach)((0,s.assertNodeType)("CommentBlock","CommentLine")):Object.assign(()=>{},{each:{oneOfNodeTypes:["CommentBlock","CommentLine"]}}),optional:!0},tokens:{validate:(0,s.assertEach)(Object.assign(()=>{},{type:"any"})),optional:!0}}}),a("ForInStatement",{visitor:["left","right","body"],aliases:["Scopable","Statement","For","BlockParent","Loop","ForXStatement"],fields:{left:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,s.assertNodeType)("VariableDeclaration","Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression"):(0,s.assertNodeType)("VariableDeclaration","LVal")},right:{validate:(0,s.assertNodeType)("Expression")},body:{validate:(0,s.assertNodeType)("Statement")}}}),a("ForStatement",{visitor:["init","test","update","body"],aliases:["Scopable","Statement","For","BlockParent","Loop"],fields:{init:{validate:(0,s.assertNodeType)("VariableDeclaration","Expression"),optional:!0},test:{validate:(0,s.assertNodeType)("Expression"),optional:!0},update:{validate:(0,s.assertNodeType)("Expression"),optional:!0},body:{validate:(0,s.assertNodeType)("Statement")}}});const o=()=>({params:{validate:(0,s.chain)((0,s.assertValueType)("array"),(0,s.assertEach)((0,s.assertNodeType)("Identifier","Pattern","RestElement")))},generator:{default:!1},async:{default:!1}});kt.functionCommon=o;const u=()=>({returnType:{validate:(0,s.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},typeParameters:{validate:(0,s.assertNodeType)("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0}});kt.functionTypeAnnotationCommon=u;const l=()=>Object.assign({},o(),{declare:{validate:(0,s.assertValueType)("boolean"),optional:!0},id:{validate:(0,s.assertNodeType)("Identifier"),optional:!0}});kt.functionDeclarationCommon=l,a("FunctionDeclaration",{builder:["id","params","body","generator","async"],visitor:["id","params","body","returnType","typeParameters"],fields:Object.assign({},l(),u(),{body:{validate:(0,s.assertNodeType)("BlockStatement")},predicate:{validate:(0,s.assertNodeType)("DeclaredPredicate","InferredPredicate"),optional:!0}}),aliases:["Scopable","Function","BlockParent","FunctionParent","Statement","Pureish","Declaration"],validate:function(){if(!process.env.BABEL_TYPES_8_BREAKING)return()=>{};const h=(0,s.assertNodeType)("Identifier");return function(d,m,D){(0,e.default)("ExportDefaultDeclaration",d)||h(D,"id",D.id)}}()}),a("FunctionExpression",{inherits:"FunctionDeclaration",aliases:["Scopable","Function","BlockParent","FunctionParent","Expression","Pureish"],fields:Object.assign({},o(),u(),{id:{validate:(0,s.assertNodeType)("Identifier"),optional:!0},body:{validate:(0,s.assertNodeType)("BlockStatement")},predicate:{validate:(0,s.assertNodeType)("DeclaredPredicate","InferredPredicate"),optional:!0}})});const c=()=>({typeAnnotation:{validate:(0,s.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},optional:{validate:(0,s.assertValueType)("boolean"),optional:!0},decorators:{validate:(0,s.chain)((0,s.assertValueType)("array"),(0,s.assertEach)((0,s.assertNodeType)("Decorator"))),optional:!0}});kt.patternLikeCommon=c,a("Identifier",{builder:["name"],visitor:["typeAnnotation","decorators"],aliases:["Expression","PatternLike","LVal","TSEntityName"],fields:Object.assign({},c(),{name:{validate:(0,s.chain)((0,s.assertValueType)("string"),Object.assign(function(h,d,m){if(process.env.BABEL_TYPES_8_BREAKING&&!(0,t.default)(m,!1))throw new TypeError(`"${m}" is not a valid identifier name`)},{type:"string"}))}}),validate(h,d,m){if(!process.env.BABEL_TYPES_8_BREAKING)return;const D=/\.(\w+)$/.exec(d);if(!D)return;const[,g]=D,y={computed:!1};if(g==="property"){if((0,e.default)("MemberExpression",h,y)||(0,e.default)("OptionalMemberExpression",h,y))return}else if(g==="key"){if((0,e.default)("Property",h,y)||(0,e.default)("Method",h,y))return}else if(g==="exported"){if((0,e.default)("ExportSpecifier",h))return}else if(g==="imported"){if((0,e.default)("ImportSpecifier",h,{imported:m}))return}else if(g==="meta"&&(0,e.default)("MetaProperty",h,{meta:m}))return;if(((0,r.isKeyword)(m.name)||(0,r.isReservedWord)(m.name,!1))&&m.name!=="this")throw new TypeError(`"${m.name}" is not a valid identifier`)}}),a("IfStatement",{visitor:["test","consequent","alternate"],aliases:["Statement","Conditional"],fields:{test:{validate:(0,s.assertNodeType)("Expression")},consequent:{validate:(0,s.assertNodeType)("Statement")},alternate:{optional:!0,validate:(0,s.assertNodeType)("Statement")}}}),a("LabeledStatement",{visitor:["label","body"],aliases:["Statement"],fields:{label:{validate:(0,s.assertNodeType)("Identifier")},body:{validate:(0,s.assertNodeType)("Statement")}}}),a("StringLiteral",{builder:["value"],fields:{value:{validate:(0,s.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]}),a("NumericLiteral",{builder:["value"],deprecatedAlias:"NumberLiteral",fields:{value:{validate:(0,s.chain)((0,s.assertValueType)("number"),Object.assign(function(h,d,m){},{type:"number"}))}},aliases:["Expression","Pureish","Literal","Immutable"]}),a("NullLiteral",{aliases:["Expression","Pureish","Literal","Immutable"]}),a("BooleanLiteral",{builder:["value"],fields:{value:{validate:(0,s.assertValueType)("boolean")}},aliases:["Expression","Pureish","Literal","Immutable"]}),a("RegExpLiteral",{builder:["pattern","flags"],deprecatedAlias:"RegexLiteral",aliases:["Expression","Pureish","Literal"],fields:{pattern:{validate:(0,s.assertValueType)("string")},flags:{validate:(0,s.chain)((0,s.assertValueType)("string"),Object.assign(function(h,d,m){if(!process.env.BABEL_TYPES_8_BREAKING)return;const D=/[^gimsuy]/.exec(m);if(D)throw new TypeError(`"${D[0]}" is not a valid RegExp flag`)},{type:"string"})),default:""}}}),a("LogicalExpression",{builder:["operator","left","right"],visitor:["left","right"],aliases:["Binary","Expression"],fields:{operator:{validate:(0,s.assertOneOf)(...i.LOGICAL_OPERATORS)},left:{validate:(0,s.assertNodeType)("Expression")},right:{validate:(0,s.assertNodeType)("Expression")}}}),a("MemberExpression",{builder:["object","property","computed",...process.env.BABEL_TYPES_8_BREAKING?[]:["optional"]],visitor:["object","property"],aliases:["Expression","LVal"],fields:Object.assign({object:{validate:(0,s.assertNodeType)("Expression","Super")},property:{validate:function(){const h=(0,s.assertNodeType)("Identifier","PrivateName"),d=(0,s.assertNodeType)("Expression"),m=function(D,g,y){(D.computed?d:h)(D,g,y)};return m.oneOfNodeTypes=["Expression","Identifier","PrivateName"],m}()},computed:{default:!1}},process.env.BABEL_TYPES_8_BREAKING?{}:{optional:{validate:(0,s.assertOneOf)(!0,!1),optional:!0}})}),a("NewExpression",{inherits:"CallExpression"}),a("Program",{visitor:["directives","body"],builder:["body","directives","sourceType","interpreter"],fields:{sourceType:{validate:(0,s.assertOneOf)("script","module"),default:"script"},interpreter:{validate:(0,s.assertNodeType)("InterpreterDirective"),default:null,optional:!0},directives:{validate:(0,s.chain)((0,s.assertValueType)("array"),(0,s.assertEach)((0,s.assertNodeType)("Directive"))),default:[]},body:{validate:(0,s.chain)((0,s.assertValueType)("array"),(0,s.assertEach)((0,s.assertNodeType)("Statement")))}},aliases:["Scopable","BlockParent","Block"]}),a("ObjectExpression",{visitor:["properties"],aliases:["Expression"],fields:{properties:{validate:(0,s.chain)((0,s.assertValueType)("array"),(0,s.assertEach)((0,s.assertNodeType)("ObjectMethod","ObjectProperty","SpreadElement")))}}}),a("ObjectMethod",{builder:["kind","key","params","body","computed","generator","async"],fields:Object.assign({},o(),u(),{kind:Object.assign({validate:(0,s.assertOneOf)("method","get","set")},process.env.BABEL_TYPES_8_BREAKING?{}:{default:"method"}),computed:{default:!1},key:{validate:function(){const h=(0,s.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral"),d=(0,s.assertNodeType)("Expression"),m=function(D,g,y){(D.computed?d:h)(D,g,y)};return m.oneOfNodeTypes=["Expression","Identifier","StringLiteral","NumericLiteral","BigIntLiteral"],m}()},decorators:{validate:(0,s.chain)((0,s.assertValueType)("array"),(0,s.assertEach)((0,s.assertNodeType)("Decorator"))),optional:!0},body:{validate:(0,s.assertNodeType)("BlockStatement")}}),visitor:["key","params","body","decorators","returnType","typeParameters"],aliases:["UserWhitespacable","Function","Scopable","BlockParent","FunctionParent","Method","ObjectMember"]}),a("ObjectProperty",{builder:["key","value","computed","shorthand",...process.env.BABEL_TYPES_8_BREAKING?[]:["decorators"]],fields:{computed:{default:!1},key:{validate:function(){const h=(0,s.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","DecimalLiteral","PrivateName"),d=(0,s.assertNodeType)("Expression");return Object.assign(function(D,g,y){(D.computed?d:h)(D,g,y)},{oneOfNodeTypes:["Expression","Identifier","StringLiteral","NumericLiteral","BigIntLiteral","DecimalLiteral","PrivateName"]})}()},value:{validate:(0,s.assertNodeType)("Expression","PatternLike")},shorthand:{validate:(0,s.chain)((0,s.assertValueType)("boolean"),Object.assign(function(h,d,m){if(process.env.BABEL_TYPES_8_BREAKING&&m&&h.computed)throw new TypeError("Property shorthand of ObjectProperty cannot be true if computed is true")},{type:"boolean"}),function(h,d,m){if(process.env.BABEL_TYPES_8_BREAKING&&m&&!(0,e.default)("Identifier",h.key))throw new TypeError("Property shorthand of ObjectProperty cannot be true if key is not an Identifier")}),default:!1},decorators:{validate:(0,s.chain)((0,s.assertValueType)("array"),(0,s.assertEach)((0,s.assertNodeType)("Decorator"))),optional:!0}},visitor:["key","value","decorators"],aliases:["UserWhitespacable","Property","ObjectMember"],validate:function(){const h=(0,s.assertNodeType)("Identifier","Pattern","TSAsExpression","TSSatisfiesExpression","TSNonNullExpression","TSTypeAssertion"),d=(0,s.assertNodeType)("Expression");return function(m,D,g){if(!process.env.BABEL_TYPES_8_BREAKING)return;((0,e.default)("ObjectPattern",m)?h:d)(g,"value",g.value)}}()}),a("RestElement",{visitor:["argument","typeAnnotation"],builder:["argument"],aliases:["LVal","PatternLike"],deprecatedAlias:"RestProperty",fields:Object.assign({},c(),{argument:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,s.assertNodeType)("Identifier","ArrayPattern","ObjectPattern","MemberExpression","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression"):(0,s.assertNodeType)("LVal")}}),validate(h,d){if(!process.env.BABEL_TYPES_8_BREAKING)return;const m=/(\w+)\[(\d+)\]/.exec(d);if(!m)throw new Error("Internal Babel error: malformed key.");const[,D,g]=m;if(h[D].length>+g+1)throw new TypeError(`RestElement must be last element of ${D}`)}}),a("ReturnStatement",{visitor:["argument"],aliases:["Statement","Terminatorless","CompletionStatement"],fields:{argument:{validate:(0,s.assertNodeType)("Expression"),optional:!0}}}),a("SequenceExpression",{visitor:["expressions"],fields:{expressions:{validate:(0,s.chain)((0,s.assertValueType)("array"),(0,s.assertEach)((0,s.assertNodeType)("Expression")))}},aliases:["Expression"]}),a("ParenthesizedExpression",{visitor:["expression"],aliases:["Expression","ExpressionWrapper"],fields:{expression:{validate:(0,s.assertNodeType)("Expression")}}}),a("SwitchCase",{visitor:["test","consequent"],fields:{test:{validate:(0,s.assertNodeType)("Expression"),optional:!0},consequent:{validate:(0,s.chain)((0,s.assertValueType)("array"),(0,s.assertEach)((0,s.assertNodeType)("Statement")))}}}),a("SwitchStatement",{visitor:["discriminant","cases"],aliases:["Statement","BlockParent","Scopable"],fields:{discriminant:{validate:(0,s.assertNodeType)("Expression")},cases:{validate:(0,s.chain)((0,s.assertValueType)("array"),(0,s.assertEach)((0,s.assertNodeType)("SwitchCase")))}}}),a("ThisExpression",{aliases:["Expression"]}),a("ThrowStatement",{visitor:["argument"],aliases:["Statement","Terminatorless","CompletionStatement"],fields:{argument:{validate:(0,s.assertNodeType)("Expression")}}}),a("TryStatement",{visitor:["block","handler","finalizer"],aliases:["Statement"],fields:{block:{validate:(0,s.chain)((0,s.assertNodeType)("BlockStatement"),Object.assign(function(h){if(process.env.BABEL_TYPES_8_BREAKING&&!h.handler&&!h.finalizer)throw new TypeError("TryStatement expects either a handler or finalizer, or both")},{oneOfNodeTypes:["BlockStatement"]}))},handler:{optional:!0,validate:(0,s.assertNodeType)("CatchClause")},finalizer:{optional:!0,validate:(0,s.assertNodeType)("BlockStatement")}}}),a("UnaryExpression",{builder:["operator","argument","prefix"],fields:{prefix:{default:!0},argument:{validate:(0,s.assertNodeType)("Expression")},operator:{validate:(0,s.assertOneOf)(...i.UNARY_OPERATORS)}},visitor:["argument"],aliases:["UnaryLike","Expression"]}),a("UpdateExpression",{builder:["operator","argument","prefix"],fields:{prefix:{default:!1},argument:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,s.assertNodeType)("Identifier","MemberExpression"):(0,s.assertNodeType)("Expression")},operator:{validate:(0,s.assertOneOf)(...i.UPDATE_OPERATORS)}},visitor:["argument"],aliases:["Expression"]}),a("VariableDeclaration",{builder:["kind","declarations"],visitor:["declarations"],aliases:["Statement","Declaration"],fields:{declare:{validate:(0,s.assertValueType)("boolean"),optional:!0},kind:{validate:(0,s.assertOneOf)("var","let","const","using","await using")},declarations:{validate:(0,s.chain)((0,s.assertValueType)("array"),(0,s.assertEach)((0,s.assertNodeType)("VariableDeclarator")))}},validate(h,d,m){if(process.env.BABEL_TYPES_8_BREAKING&&(0,e.default)("ForXStatement",h,{left:m})&&m.declarations.length!==1)throw new TypeError(`Exactly one VariableDeclarator is required in the VariableDeclaration of a ${h.type}`)}}),a("VariableDeclarator",{visitor:["id","init"],fields:{id:{validate:function(){if(!process.env.BABEL_TYPES_8_BREAKING)return(0,s.assertNodeType)("LVal");const h=(0,s.assertNodeType)("Identifier","ArrayPattern","ObjectPattern"),d=(0,s.assertNodeType)("Identifier");return function(m,D,g){(m.init?h:d)(m,D,g)}}()},definite:{optional:!0,validate:(0,s.assertValueType)("boolean")},init:{optional:!0,validate:(0,s.assertNodeType)("Expression")}}}),a("WhileStatement",{visitor:["test","body"],aliases:["Statement","BlockParent","Loop","While","Scopable"],fields:{test:{validate:(0,s.assertNodeType)("Expression")},body:{validate:(0,s.assertNodeType)("Statement")}}}),a("WithStatement",{visitor:["object","body"],aliases:["Statement"],fields:{object:{validate:(0,s.assertNodeType)("Expression")},body:{validate:(0,s.assertNodeType)("Statement")}}}),a("AssignmentPattern",{visitor:["left","right","decorators"],builder:["left","right"],aliases:["Pattern","PatternLike","LVal"],fields:Object.assign({},c(),{left:{validate:(0,s.assertNodeType)("Identifier","ObjectPattern","ArrayPattern","MemberExpression","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression")},right:{validate:(0,s.assertNodeType)("Expression")},decorators:{validate:(0,s.chain)((0,s.assertValueType)("array"),(0,s.assertEach)((0,s.assertNodeType)("Decorator"))),optional:!0}})}),a("ArrayPattern",{visitor:["elements","typeAnnotation"],builder:["elements"],aliases:["Pattern","PatternLike","LVal"],fields:Object.assign({},c(),{elements:{validate:(0,s.chain)((0,s.assertValueType)("array"),(0,s.assertEach)((0,s.assertNodeOrValueType)("null","PatternLike","LVal")))}})}),a("ArrowFunctionExpression",{builder:["params","body","async"],visitor:["params","body","returnType","typeParameters"],aliases:["Scopable","Function","BlockParent","FunctionParent","Expression","Pureish"],fields:Object.assign({},o(),u(),{expression:{validate:(0,s.assertValueType)("boolean")},body:{validate:(0,s.assertNodeType)("BlockStatement","Expression")},predicate:{validate:(0,s.assertNodeType)("DeclaredPredicate","InferredPredicate"),optional:!0}})}),a("ClassBody",{visitor:["body"],fields:{body:{validate:(0,s.chain)((0,s.assertValueType)("array"),(0,s.assertEach)((0,s.assertNodeType)("ClassMethod","ClassPrivateMethod","ClassProperty","ClassPrivateProperty","ClassAccessorProperty","TSDeclareMethod","TSIndexSignature","StaticBlock")))}}}),a("ClassExpression",{builder:["id","superClass","body","decorators"],visitor:["id","body","superClass","mixins","typeParameters","superTypeParameters","implements","decorators"],aliases:["Scopable","Class","Expression"],fields:{id:{validate:(0,s.assertNodeType)("Identifier"),optional:!0},typeParameters:{validate:(0,s.assertNodeType)("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0},body:{validate:(0,s.assertNodeType)("ClassBody")},superClass:{optional:!0,validate:(0,s.assertNodeType)("Expression")},superTypeParameters:{validate:(0,s.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0},implements:{validate:(0,s.chain)((0,s.assertValueType)("array"),(0,s.assertEach)((0,s.assertNodeType)("TSExpressionWithTypeArguments","ClassImplements"))),optional:!0},decorators:{validate:(0,s.chain)((0,s.assertValueType)("array"),(0,s.assertEach)((0,s.assertNodeType)("Decorator"))),optional:!0},mixins:{validate:(0,s.assertNodeType)("InterfaceExtends"),optional:!0}}}),a("ClassDeclaration",{inherits:"ClassExpression",aliases:["Scopable","Class","Statement","Declaration"],fields:{id:{validate:(0,s.assertNodeType)("Identifier"),optional:!0},typeParameters:{validate:(0,s.assertNodeType)("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0},body:{validate:(0,s.assertNodeType)("ClassBody")},superClass:{optional:!0,validate:(0,s.assertNodeType)("Expression")},superTypeParameters:{validate:(0,s.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0},implements:{validate:(0,s.chain)((0,s.assertValueType)("array"),(0,s.assertEach)((0,s.assertNodeType)("TSExpressionWithTypeArguments","ClassImplements"))),optional:!0},decorators:{validate:(0,s.chain)((0,s.assertValueType)("array"),(0,s.assertEach)((0,s.assertNodeType)("Decorator"))),optional:!0},mixins:{validate:(0,s.assertNodeType)("InterfaceExtends"),optional:!0},declare:{validate:(0,s.assertValueType)("boolean"),optional:!0},abstract:{validate:(0,s.assertValueType)("boolean"),optional:!0}},validate:function(){const h=(0,s.assertNodeType)("Identifier");return function(d,m,D){process.env.BABEL_TYPES_8_BREAKING&&((0,e.default)("ExportDefaultDeclaration",d)||h(D,"id",D.id))}}()}),a("ExportAllDeclaration",{builder:["source"],visitor:["source","attributes","assertions"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:{source:{validate:(0,s.assertNodeType)("StringLiteral")},exportKind:(0,s.validateOptional)((0,s.assertOneOf)("type","value")),attributes:{optional:!0,validate:(0,s.chain)((0,s.assertValueType)("array"),(0,s.assertEach)((0,s.assertNodeType)("ImportAttribute")))},assertions:{optional:!0,validate:(0,s.chain)((0,s.assertValueType)("array"),(0,s.assertEach)((0,s.assertNodeType)("ImportAttribute")))}}}),a("ExportDefaultDeclaration",{visitor:["declaration"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:{declaration:{validate:(0,s.assertNodeType)("TSDeclareFunction","FunctionDeclaration","ClassDeclaration","Expression")},exportKind:(0,s.validateOptional)((0,s.assertOneOf)("value"))}}),a("ExportNamedDeclaration",{builder:["declaration","specifiers","source"],visitor:["declaration","specifiers","source","attributes","assertions"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:{declaration:{optional:!0,validate:(0,s.chain)((0,s.assertNodeType)("Declaration"),Object.assign(function(h,d,m){if(process.env.BABEL_TYPES_8_BREAKING&&m&&h.specifiers.length)throw new TypeError("Only declaration or specifiers is allowed on ExportNamedDeclaration")},{oneOfNodeTypes:["Declaration"]}),function(h,d,m){if(process.env.BABEL_TYPES_8_BREAKING&&m&&h.source)throw new TypeError("Cannot export a declaration from a source")})},attributes:{optional:!0,validate:(0,s.chain)((0,s.assertValueType)("array"),(0,s.assertEach)((0,s.assertNodeType)("ImportAttribute")))},assertions:{optional:!0,validate:(0,s.chain)((0,s.assertValueType)("array"),(0,s.assertEach)((0,s.assertNodeType)("ImportAttribute")))},specifiers:{default:[],validate:(0,s.chain)((0,s.assertValueType)("array"),(0,s.assertEach)(function(){const h=(0,s.assertNodeType)("ExportSpecifier","ExportDefaultSpecifier","ExportNamespaceSpecifier"),d=(0,s.assertNodeType)("ExportSpecifier");return process.env.BABEL_TYPES_8_BREAKING?function(m,D,g){(m.source?h:d)(m,D,g)}:h}()))},source:{validate:(0,s.assertNodeType)("StringLiteral"),optional:!0},exportKind:(0,s.validateOptional)((0,s.assertOneOf)("type","value"))}}),a("ExportSpecifier",{visitor:["local","exported"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,s.assertNodeType)("Identifier")},exported:{validate:(0,s.assertNodeType)("Identifier","StringLiteral")},exportKind:{validate:(0,s.assertOneOf)("type","value"),optional:!0}}}),a("ForOfStatement",{visitor:["left","right","body"],builder:["left","right","body","await"],aliases:["Scopable","Statement","For","BlockParent","Loop","ForXStatement"],fields:{left:{validate:function(){if(!process.env.BABEL_TYPES_8_BREAKING)return(0,s.assertNodeType)("VariableDeclaration","LVal");const h=(0,s.assertNodeType)("VariableDeclaration"),d=(0,s.assertNodeType)("Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression");return function(m,D,g){(0,e.default)("VariableDeclaration",g)?h(m,D,g):d(m,D,g)}}()},right:{validate:(0,s.assertNodeType)("Expression")},body:{validate:(0,s.assertNodeType)("Statement")},await:{default:!1}}}),a("ImportDeclaration",{builder:["specifiers","source"],visitor:["specifiers","source","attributes","assertions"],aliases:["Statement","Declaration","ImportOrExportDeclaration"],fields:{attributes:{optional:!0,validate:(0,s.chain)((0,s.assertValueType)("array"),(0,s.assertEach)((0,s.assertNodeType)("ImportAttribute")))},assertions:{optional:!0,validate:(0,s.chain)((0,s.assertValueType)("array"),(0,s.assertEach)((0,s.assertNodeType)("ImportAttribute")))},module:{optional:!0,validate:(0,s.assertValueType)("boolean")},phase:{default:null,validate:(0,s.assertOneOf)("source","defer")},specifiers:{validate:(0,s.chain)((0,s.assertValueType)("array"),(0,s.assertEach)((0,s.assertNodeType)("ImportSpecifier","ImportDefaultSpecifier","ImportNamespaceSpecifier")))},source:{validate:(0,s.assertNodeType)("StringLiteral")},importKind:{validate:(0,s.assertOneOf)("type","typeof","value"),optional:!0}}}),a("ImportDefaultSpecifier",{visitor:["local"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,s.assertNodeType)("Identifier")}}}),a("ImportNamespaceSpecifier",{visitor:["local"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,s.assertNodeType)("Identifier")}}}),a("ImportSpecifier",{visitor:["local","imported"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,s.assertNodeType)("Identifier")},imported:{validate:(0,s.assertNodeType)("Identifier","StringLiteral")},importKind:{validate:(0,s.assertOneOf)("type","typeof","value"),optional:!0}}}),a("ImportExpression",{visitor:["source","options"],aliases:["Expression"],fields:{phase:{default:null,validate:(0,s.assertOneOf)("source","defer")},source:{validate:(0,s.assertNodeType)("Expression")},options:{validate:(0,s.assertNodeType)("Expression"),optional:!0}}}),a("MetaProperty",{visitor:["meta","property"],aliases:["Expression"],fields:{meta:{validate:(0,s.chain)((0,s.assertNodeType)("Identifier"),Object.assign(function(h,d,m){if(!process.env.BABEL_TYPES_8_BREAKING)return;let D;switch(m.name){case"function":D="sent";break;case"new":D="target";break;case"import":D="meta";break}if(!(0,e.default)("Identifier",h.property,{name:D}))throw new TypeError("Unrecognised MetaProperty")},{oneOfNodeTypes:["Identifier"]}))},property:{validate:(0,s.assertNodeType)("Identifier")}}});const f=()=>({abstract:{validate:(0,s.assertValueType)("boolean"),optional:!0},accessibility:{validate:(0,s.assertOneOf)("public","private","protected"),optional:!0},static:{default:!1},override:{default:!1},computed:{default:!1},optional:{validate:(0,s.assertValueType)("boolean"),optional:!0},key:{validate:(0,s.chain)(function(){const h=(0,s.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral"),d=(0,s.assertNodeType)("Expression");return function(m,D,g){(m.computed?d:h)(m,D,g)}}(),(0,s.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","Expression"))}});kt.classMethodOrPropertyCommon=f;const p=()=>Object.assign({},o(),f(),{params:{validate:(0,s.chain)((0,s.assertValueType)("array"),(0,s.assertEach)((0,s.assertNodeType)("Identifier","Pattern","RestElement","TSParameterProperty")))},kind:{validate:(0,s.assertOneOf)("get","set","method","constructor"),default:"method"},access:{validate:(0,s.chain)((0,s.assertValueType)("string"),(0,s.assertOneOf)("public","private","protected")),optional:!0},decorators:{validate:(0,s.chain)((0,s.assertValueType)("array"),(0,s.assertEach)((0,s.assertNodeType)("Decorator"))),optional:!0}});return kt.classMethodOrDeclareMethodCommon=p,a("ClassMethod",{aliases:["Function","Scopable","BlockParent","FunctionParent","Method"],builder:["kind","key","params","body","computed","static","generator","async"],visitor:["key","params","body","decorators","returnType","typeParameters"],fields:Object.assign({},p(),u(),{body:{validate:(0,s.assertNodeType)("BlockStatement")}})}),a("ObjectPattern",{visitor:["properties","typeAnnotation","decorators"],builder:["properties"],aliases:["Pattern","PatternLike","LVal"],fields:Object.assign({},c(),{properties:{validate:(0,s.chain)((0,s.assertValueType)("array"),(0,s.assertEach)((0,s.assertNodeType)("RestElement","ObjectProperty")))}})}),a("SpreadElement",{visitor:["argument"],aliases:["UnaryLike"],deprecatedAlias:"SpreadProperty",fields:{argument:{validate:(0,s.assertNodeType)("Expression")}}}),a("Super",{aliases:["Expression"]}),a("TaggedTemplateExpression",{visitor:["tag","quasi","typeParameters"],builder:["tag","quasi"],aliases:["Expression"],fields:{tag:{validate:(0,s.assertNodeType)("Expression")},quasi:{validate:(0,s.assertNodeType)("TemplateLiteral")},typeParameters:{validate:(0,s.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0}}}),a("TemplateElement",{builder:["value","tail"],fields:{value:{validate:(0,s.chain)((0,s.assertShape)({raw:{validate:(0,s.assertValueType)("string")},cooked:{validate:(0,s.assertValueType)("string"),optional:!0}}),function(d){const m=d.value.raw;let D=!1;const g=()=>{throw new Error("Internal @babel/types error.")},{str:y,firstInvalidLoc:b}=(0,n.readStringContents)("template",m,0,0,0,{unterminated(){D=!0},strictNumericEscape:g,invalidEscapeSequence:g,numericSeparatorInEscapeSequence:g,unexpectedNumericSeparator:g,invalidDigit:g,invalidCodePoint:g});if(!D)throw new Error("Invalid raw");d.value.cooked=b?null:y})},tail:{default:!1}}}),a("TemplateLiteral",{visitor:["quasis","expressions"],aliases:["Expression","Literal"],fields:{quasis:{validate:(0,s.chain)((0,s.assertValueType)("array"),(0,s.assertEach)((0,s.assertNodeType)("TemplateElement")))},expressions:{validate:(0,s.chain)((0,s.assertValueType)("array"),(0,s.assertEach)((0,s.assertNodeType)("Expression","TSType")),function(h,d,m){if(h.quasis.length!==m.length+1)throw new TypeError(`Number of ${h.type} quasis should be exactly one more than the number of expressions.
|
|
125
|
+
Expected ${m.length+1} quasis but got ${h.quasis.length}`)})}}}),a("YieldExpression",{builder:["argument","delegate"],visitor:["argument"],aliases:["Expression","Terminatorless"],fields:{delegate:{validate:(0,s.chain)((0,s.assertValueType)("boolean"),Object.assign(function(h,d,m){if(process.env.BABEL_TYPES_8_BREAKING&&m&&!h.argument)throw new TypeError("Property delegate of YieldExpression cannot be true if there is no argument")},{type:"boolean"})),default:!1},argument:{optional:!0,validate:(0,s.assertNodeType)("Expression")}}}),a("AwaitExpression",{builder:["argument"],visitor:["argument"],aliases:["Expression","Terminatorless"],fields:{argument:{validate:(0,s.assertNodeType)("Expression")}}}),a("Import",{aliases:["Expression"]}),a("BigIntLiteral",{builder:["value"],fields:{value:{validate:(0,s.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]}),a("ExportNamespaceSpecifier",{visitor:["exported"],aliases:["ModuleSpecifier"],fields:{exported:{validate:(0,s.assertNodeType)("Identifier")}}}),a("OptionalMemberExpression",{builder:["object","property","computed","optional"],visitor:["object","property"],aliases:["Expression"],fields:{object:{validate:(0,s.assertNodeType)("Expression")},property:{validate:function(){const h=(0,s.assertNodeType)("Identifier"),d=(0,s.assertNodeType)("Expression");return Object.assign(function(D,g,y){(D.computed?d:h)(D,g,y)},{oneOfNodeTypes:["Expression","Identifier"]})}()},computed:{default:!1},optional:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,s.chain)((0,s.assertValueType)("boolean"),(0,s.assertOptionalChainStart)()):(0,s.assertValueType)("boolean")}}}),a("OptionalCallExpression",{visitor:["callee","arguments","typeParameters","typeArguments"],builder:["callee","arguments","optional"],aliases:["Expression"],fields:{callee:{validate:(0,s.assertNodeType)("Expression")},arguments:{validate:(0,s.chain)((0,s.assertValueType)("array"),(0,s.assertEach)((0,s.assertNodeType)("Expression","SpreadElement","ArgumentPlaceholder")))},optional:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,s.chain)((0,s.assertValueType)("boolean"),(0,s.assertOptionalChainStart)()):(0,s.assertValueType)("boolean")},typeArguments:{validate:(0,s.assertNodeType)("TypeParameterInstantiation"),optional:!0},typeParameters:{validate:(0,s.assertNodeType)("TSTypeParameterInstantiation"),optional:!0}}}),a("ClassProperty",{visitor:["key","value","typeAnnotation","decorators"],builder:["key","value","typeAnnotation","decorators","computed","static"],aliases:["Property"],fields:Object.assign({},f(),{value:{validate:(0,s.assertNodeType)("Expression"),optional:!0},definite:{validate:(0,s.assertValueType)("boolean"),optional:!0},typeAnnotation:{validate:(0,s.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:(0,s.chain)((0,s.assertValueType)("array"),(0,s.assertEach)((0,s.assertNodeType)("Decorator"))),optional:!0},readonly:{validate:(0,s.assertValueType)("boolean"),optional:!0},declare:{validate:(0,s.assertValueType)("boolean"),optional:!0},variance:{validate:(0,s.assertNodeType)("Variance"),optional:!0}})}),a("ClassAccessorProperty",{visitor:["key","value","typeAnnotation","decorators"],builder:["key","value","typeAnnotation","decorators","computed","static"],aliases:["Property","Accessor"],fields:Object.assign({},f(),{key:{validate:(0,s.chain)(function(){const h=(0,s.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","PrivateName"),d=(0,s.assertNodeType)("Expression");return function(m,D,g){(m.computed?d:h)(m,D,g)}}(),(0,s.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","Expression","PrivateName"))},value:{validate:(0,s.assertNodeType)("Expression"),optional:!0},definite:{validate:(0,s.assertValueType)("boolean"),optional:!0},typeAnnotation:{validate:(0,s.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:(0,s.chain)((0,s.assertValueType)("array"),(0,s.assertEach)((0,s.assertNodeType)("Decorator"))),optional:!0},readonly:{validate:(0,s.assertValueType)("boolean"),optional:!0},declare:{validate:(0,s.assertValueType)("boolean"),optional:!0},variance:{validate:(0,s.assertNodeType)("Variance"),optional:!0}})}),a("ClassPrivateProperty",{visitor:["key","value","decorators","typeAnnotation"],builder:["key","value","decorators","static"],aliases:["Property","Private"],fields:{key:{validate:(0,s.assertNodeType)("PrivateName")},value:{validate:(0,s.assertNodeType)("Expression"),optional:!0},typeAnnotation:{validate:(0,s.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:(0,s.chain)((0,s.assertValueType)("array"),(0,s.assertEach)((0,s.assertNodeType)("Decorator"))),optional:!0},static:{validate:(0,s.assertValueType)("boolean"),default:!1},readonly:{validate:(0,s.assertValueType)("boolean"),optional:!0},definite:{validate:(0,s.assertValueType)("boolean"),optional:!0},variance:{validate:(0,s.assertNodeType)("Variance"),optional:!0}}}),a("ClassPrivateMethod",{builder:["kind","key","params","body","static"],visitor:["key","params","body","decorators","returnType","typeParameters"],aliases:["Function","Scopable","BlockParent","FunctionParent","Method","Private"],fields:Object.assign({},p(),u(),{kind:{validate:(0,s.assertOneOf)("get","set","method"),default:"method"},key:{validate:(0,s.assertNodeType)("PrivateName")},body:{validate:(0,s.assertNodeType)("BlockStatement")}})}),a("PrivateName",{visitor:["id"],aliases:["Private"],fields:{id:{validate:(0,s.assertNodeType)("Identifier")}}}),a("StaticBlock",{visitor:["body"],fields:{body:{validate:(0,s.chain)((0,s.assertValueType)("array"),(0,s.assertEach)((0,s.assertNodeType)("Statement")))}},aliases:["Scopable","BlockParent","FunctionParent"]}),kt}var Ch={},Ph;function jk(){if(Ph)return Ch;Ph=1;var e=Mn();const t=(0,e.defineAliasedType)("Flow"),r=n=>{const i=n==="DeclareClass";t(n,{builder:["id","typeParameters","extends","body"],visitor:["id","typeParameters","extends",...i?["mixins","implements"]:[],"body"],aliases:["FlowDeclaration","Statement","Declaration"],fields:Object.assign({id:(0,e.validateType)("Identifier"),typeParameters:(0,e.validateOptionalType)("TypeParameterDeclaration"),extends:(0,e.validateOptional)((0,e.arrayOfType)("InterfaceExtends"))},i?{mixins:(0,e.validateOptional)((0,e.arrayOfType)("InterfaceExtends")),implements:(0,e.validateOptional)((0,e.arrayOfType)("ClassImplements"))}:{},{body:(0,e.validateType)("ObjectTypeAnnotation")})})};return t("AnyTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),t("ArrayTypeAnnotation",{visitor:["elementType"],aliases:["FlowType"],fields:{elementType:(0,e.validateType)("FlowType")}}),t("BooleanTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),t("BooleanLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:(0,e.validate)((0,e.assertValueType)("boolean"))}}),t("NullLiteralTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),t("ClassImplements",{visitor:["id","typeParameters"],fields:{id:(0,e.validateType)("Identifier"),typeParameters:(0,e.validateOptionalType)("TypeParameterInstantiation")}}),r("DeclareClass"),t("DeclareFunction",{visitor:["id"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,e.validateType)("Identifier"),predicate:(0,e.validateOptionalType)("DeclaredPredicate")}}),r("DeclareInterface"),t("DeclareModule",{builder:["id","body","kind"],visitor:["id","body"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,e.validateType)(["Identifier","StringLiteral"]),body:(0,e.validateType)("BlockStatement"),kind:(0,e.validateOptional)((0,e.assertOneOf)("CommonJS","ES"))}}),t("DeclareModuleExports",{visitor:["typeAnnotation"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{typeAnnotation:(0,e.validateType)("TypeAnnotation")}}),t("DeclareTypeAlias",{visitor:["id","typeParameters","right"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,e.validateType)("Identifier"),typeParameters:(0,e.validateOptionalType)("TypeParameterDeclaration"),right:(0,e.validateType)("FlowType")}}),t("DeclareOpaqueType",{visitor:["id","typeParameters","supertype"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,e.validateType)("Identifier"),typeParameters:(0,e.validateOptionalType)("TypeParameterDeclaration"),supertype:(0,e.validateOptionalType)("FlowType"),impltype:(0,e.validateOptionalType)("FlowType")}}),t("DeclareVariable",{visitor:["id"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,e.validateType)("Identifier")}}),t("DeclareExportDeclaration",{visitor:["declaration","specifiers","source"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{declaration:(0,e.validateOptionalType)("Flow"),specifiers:(0,e.validateOptional)((0,e.arrayOfType)(["ExportSpecifier","ExportNamespaceSpecifier"])),source:(0,e.validateOptionalType)("StringLiteral"),default:(0,e.validateOptional)((0,e.assertValueType)("boolean"))}}),t("DeclareExportAllDeclaration",{visitor:["source"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{source:(0,e.validateType)("StringLiteral"),exportKind:(0,e.validateOptional)((0,e.assertOneOf)("type","value"))}}),t("DeclaredPredicate",{visitor:["value"],aliases:["FlowPredicate"],fields:{value:(0,e.validateType)("Flow")}}),t("ExistsTypeAnnotation",{aliases:["FlowType"]}),t("FunctionTypeAnnotation",{visitor:["typeParameters","params","rest","returnType"],aliases:["FlowType"],fields:{typeParameters:(0,e.validateOptionalType)("TypeParameterDeclaration"),params:(0,e.validate)((0,e.arrayOfType)("FunctionTypeParam")),rest:(0,e.validateOptionalType)("FunctionTypeParam"),this:(0,e.validateOptionalType)("FunctionTypeParam"),returnType:(0,e.validateType)("FlowType")}}),t("FunctionTypeParam",{visitor:["name","typeAnnotation"],fields:{name:(0,e.validateOptionalType)("Identifier"),typeAnnotation:(0,e.validateType)("FlowType"),optional:(0,e.validateOptional)((0,e.assertValueType)("boolean"))}}),t("GenericTypeAnnotation",{visitor:["id","typeParameters"],aliases:["FlowType"],fields:{id:(0,e.validateType)(["Identifier","QualifiedTypeIdentifier"]),typeParameters:(0,e.validateOptionalType)("TypeParameterInstantiation")}}),t("InferredPredicate",{aliases:["FlowPredicate"]}),t("InterfaceExtends",{visitor:["id","typeParameters"],fields:{id:(0,e.validateType)(["Identifier","QualifiedTypeIdentifier"]),typeParameters:(0,e.validateOptionalType)("TypeParameterInstantiation")}}),r("InterfaceDeclaration"),t("InterfaceTypeAnnotation",{visitor:["extends","body"],aliases:["FlowType"],fields:{extends:(0,e.validateOptional)((0,e.arrayOfType)("InterfaceExtends")),body:(0,e.validateType)("ObjectTypeAnnotation")}}),t("IntersectionTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:(0,e.validate)((0,e.arrayOfType)("FlowType"))}}),t("MixedTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),t("EmptyTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),t("NullableTypeAnnotation",{visitor:["typeAnnotation"],aliases:["FlowType"],fields:{typeAnnotation:(0,e.validateType)("FlowType")}}),t("NumberLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:(0,e.validate)((0,e.assertValueType)("number"))}}),t("NumberTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),t("ObjectTypeAnnotation",{visitor:["properties","indexers","callProperties","internalSlots"],aliases:["FlowType"],builder:["properties","indexers","callProperties","internalSlots","exact"],fields:{properties:(0,e.validate)((0,e.arrayOfType)(["ObjectTypeProperty","ObjectTypeSpreadProperty"])),indexers:{validate:(0,e.arrayOfType)("ObjectTypeIndexer"),optional:!0,default:[]},callProperties:{validate:(0,e.arrayOfType)("ObjectTypeCallProperty"),optional:!0,default:[]},internalSlots:{validate:(0,e.arrayOfType)("ObjectTypeInternalSlot"),optional:!0,default:[]},exact:{validate:(0,e.assertValueType)("boolean"),default:!1},inexact:(0,e.validateOptional)((0,e.assertValueType)("boolean"))}}),t("ObjectTypeInternalSlot",{visitor:["id","value"],builder:["id","value","optional","static","method"],aliases:["UserWhitespacable"],fields:{id:(0,e.validateType)("Identifier"),value:(0,e.validateType)("FlowType"),optional:(0,e.validate)((0,e.assertValueType)("boolean")),static:(0,e.validate)((0,e.assertValueType)("boolean")),method:(0,e.validate)((0,e.assertValueType)("boolean"))}}),t("ObjectTypeCallProperty",{visitor:["value"],aliases:["UserWhitespacable"],fields:{value:(0,e.validateType)("FlowType"),static:(0,e.validate)((0,e.assertValueType)("boolean"))}}),t("ObjectTypeIndexer",{visitor:["id","key","value","variance"],aliases:["UserWhitespacable"],fields:{id:(0,e.validateOptionalType)("Identifier"),key:(0,e.validateType)("FlowType"),value:(0,e.validateType)("FlowType"),static:(0,e.validate)((0,e.assertValueType)("boolean")),variance:(0,e.validateOptionalType)("Variance")}}),t("ObjectTypeProperty",{visitor:["key","value","variance"],aliases:["UserWhitespacable"],fields:{key:(0,e.validateType)(["Identifier","StringLiteral"]),value:(0,e.validateType)("FlowType"),kind:(0,e.validate)((0,e.assertOneOf)("init","get","set")),static:(0,e.validate)((0,e.assertValueType)("boolean")),proto:(0,e.validate)((0,e.assertValueType)("boolean")),optional:(0,e.validate)((0,e.assertValueType)("boolean")),variance:(0,e.validateOptionalType)("Variance"),method:(0,e.validate)((0,e.assertValueType)("boolean"))}}),t("ObjectTypeSpreadProperty",{visitor:["argument"],aliases:["UserWhitespacable"],fields:{argument:(0,e.validateType)("FlowType")}}),t("OpaqueType",{visitor:["id","typeParameters","supertype","impltype"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,e.validateType)("Identifier"),typeParameters:(0,e.validateOptionalType)("TypeParameterDeclaration"),supertype:(0,e.validateOptionalType)("FlowType"),impltype:(0,e.validateType)("FlowType")}}),t("QualifiedTypeIdentifier",{visitor:["id","qualification"],fields:{id:(0,e.validateType)("Identifier"),qualification:(0,e.validateType)(["Identifier","QualifiedTypeIdentifier"])}}),t("StringLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:(0,e.validate)((0,e.assertValueType)("string"))}}),t("StringTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),t("SymbolTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),t("ThisTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),t("TupleTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:(0,e.validate)((0,e.arrayOfType)("FlowType"))}}),t("TypeofTypeAnnotation",{visitor:["argument"],aliases:["FlowType"],fields:{argument:(0,e.validateType)("FlowType")}}),t("TypeAlias",{visitor:["id","typeParameters","right"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,e.validateType)("Identifier"),typeParameters:(0,e.validateOptionalType)("TypeParameterDeclaration"),right:(0,e.validateType)("FlowType")}}),t("TypeAnnotation",{visitor:["typeAnnotation"],fields:{typeAnnotation:(0,e.validateType)("FlowType")}}),t("TypeCastExpression",{visitor:["expression","typeAnnotation"],aliases:["ExpressionWrapper","Expression"],fields:{expression:(0,e.validateType)("Expression"),typeAnnotation:(0,e.validateType)("TypeAnnotation")}}),t("TypeParameter",{visitor:["bound","default","variance"],fields:{name:(0,e.validate)((0,e.assertValueType)("string")),bound:(0,e.validateOptionalType)("TypeAnnotation"),default:(0,e.validateOptionalType)("FlowType"),variance:(0,e.validateOptionalType)("Variance")}}),t("TypeParameterDeclaration",{visitor:["params"],fields:{params:(0,e.validate)((0,e.arrayOfType)("TypeParameter"))}}),t("TypeParameterInstantiation",{visitor:["params"],fields:{params:(0,e.validate)((0,e.arrayOfType)("FlowType"))}}),t("UnionTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:(0,e.validate)((0,e.arrayOfType)("FlowType"))}}),t("Variance",{builder:["kind"],fields:{kind:(0,e.validate)((0,e.assertOneOf)("minus","plus"))}}),t("VoidTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),t("EnumDeclaration",{aliases:["Statement","Declaration"],visitor:["id","body"],fields:{id:(0,e.validateType)("Identifier"),body:(0,e.validateType)(["EnumBooleanBody","EnumNumberBody","EnumStringBody","EnumSymbolBody"])}}),t("EnumBooleanBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0,e.validate)((0,e.assertValueType)("boolean")),members:(0,e.validateArrayOfType)("EnumBooleanMember"),hasUnknownMembers:(0,e.validate)((0,e.assertValueType)("boolean"))}}),t("EnumNumberBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0,e.validate)((0,e.assertValueType)("boolean")),members:(0,e.validateArrayOfType)("EnumNumberMember"),hasUnknownMembers:(0,e.validate)((0,e.assertValueType)("boolean"))}}),t("EnumStringBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0,e.validate)((0,e.assertValueType)("boolean")),members:(0,e.validateArrayOfType)(["EnumStringMember","EnumDefaultedMember"]),hasUnknownMembers:(0,e.validate)((0,e.assertValueType)("boolean"))}}),t("EnumSymbolBody",{aliases:["EnumBody"],visitor:["members"],fields:{members:(0,e.validateArrayOfType)("EnumDefaultedMember"),hasUnknownMembers:(0,e.validate)((0,e.assertValueType)("boolean"))}}),t("EnumBooleanMember",{aliases:["EnumMember"],visitor:["id"],fields:{id:(0,e.validateType)("Identifier"),init:(0,e.validateType)("BooleanLiteral")}}),t("EnumNumberMember",{aliases:["EnumMember"],visitor:["id","init"],fields:{id:(0,e.validateType)("Identifier"),init:(0,e.validateType)("NumericLiteral")}}),t("EnumStringMember",{aliases:["EnumMember"],visitor:["id","init"],fields:{id:(0,e.validateType)("Identifier"),init:(0,e.validateType)("StringLiteral")}}),t("EnumDefaultedMember",{aliases:["EnumMember"],visitor:["id"],fields:{id:(0,e.validateType)("Identifier")}}),t("IndexedAccessType",{visitor:["objectType","indexType"],aliases:["FlowType"],fields:{objectType:(0,e.validateType)("FlowType"),indexType:(0,e.validateType)("FlowType")}}),t("OptionalIndexedAccessType",{visitor:["objectType","indexType"],aliases:["FlowType"],fields:{objectType:(0,e.validateType)("FlowType"),indexType:(0,e.validateType)("FlowType"),optional:(0,e.validate)((0,e.assertValueType)("boolean"))}}),Ch}var xh={},Fh;function $k(){if(Fh)return xh;Fh=1;var e=Mn();const t=(0,e.defineAliasedType)("JSX");return t("JSXAttribute",{visitor:["name","value"],aliases:["Immutable"],fields:{name:{validate:(0,e.assertNodeType)("JSXIdentifier","JSXNamespacedName")},value:{optional:!0,validate:(0,e.assertNodeType)("JSXElement","JSXFragment","StringLiteral","JSXExpressionContainer")}}}),t("JSXClosingElement",{visitor:["name"],aliases:["Immutable"],fields:{name:{validate:(0,e.assertNodeType)("JSXIdentifier","JSXMemberExpression","JSXNamespacedName")}}}),t("JSXElement",{builder:["openingElement","closingElement","children","selfClosing"],visitor:["openingElement","children","closingElement"],aliases:["Immutable","Expression"],fields:Object.assign({openingElement:{validate:(0,e.assertNodeType)("JSXOpeningElement")},closingElement:{optional:!0,validate:(0,e.assertNodeType)("JSXClosingElement")},children:{validate:(0,e.chain)((0,e.assertValueType)("array"),(0,e.assertEach)((0,e.assertNodeType)("JSXText","JSXExpressionContainer","JSXSpreadChild","JSXElement","JSXFragment")))}},{selfClosing:{validate:(0,e.assertValueType)("boolean"),optional:!0}})}),t("JSXEmptyExpression",{}),t("JSXExpressionContainer",{visitor:["expression"],aliases:["Immutable"],fields:{expression:{validate:(0,e.assertNodeType)("Expression","JSXEmptyExpression")}}}),t("JSXSpreadChild",{visitor:["expression"],aliases:["Immutable"],fields:{expression:{validate:(0,e.assertNodeType)("Expression")}}}),t("JSXIdentifier",{builder:["name"],fields:{name:{validate:(0,e.assertValueType)("string")}}}),t("JSXMemberExpression",{visitor:["object","property"],fields:{object:{validate:(0,e.assertNodeType)("JSXMemberExpression","JSXIdentifier")},property:{validate:(0,e.assertNodeType)("JSXIdentifier")}}}),t("JSXNamespacedName",{visitor:["namespace","name"],fields:{namespace:{validate:(0,e.assertNodeType)("JSXIdentifier")},name:{validate:(0,e.assertNodeType)("JSXIdentifier")}}}),t("JSXOpeningElement",{builder:["name","attributes","selfClosing"],visitor:["name","attributes"],aliases:["Immutable"],fields:{name:{validate:(0,e.assertNodeType)("JSXIdentifier","JSXMemberExpression","JSXNamespacedName")},selfClosing:{default:!1},attributes:{validate:(0,e.chain)((0,e.assertValueType)("array"),(0,e.assertEach)((0,e.assertNodeType)("JSXAttribute","JSXSpreadAttribute")))},typeParameters:{validate:(0,e.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0}}}),t("JSXSpreadAttribute",{visitor:["argument"],fields:{argument:{validate:(0,e.assertNodeType)("Expression")}}}),t("JSXText",{aliases:["Immutable"],builder:["value"],fields:{value:{validate:(0,e.assertValueType)("string")}}}),t("JSXFragment",{builder:["openingFragment","closingFragment","children"],visitor:["openingFragment","children","closingFragment"],aliases:["Immutable","Expression"],fields:{openingFragment:{validate:(0,e.assertNodeType)("JSXOpeningFragment")},closingFragment:{validate:(0,e.assertNodeType)("JSXClosingFragment")},children:{validate:(0,e.chain)((0,e.assertValueType)("array"),(0,e.assertEach)((0,e.assertNodeType)("JSXText","JSXExpressionContainer","JSXSpreadChild","JSXElement","JSXFragment")))}}}),t("JSXOpeningFragment",{aliases:["Immutable"]}),t("JSXClosingFragment",{aliases:["Immutable"]}),xh}var _h={},Nr={},wh;function tD(){if(wh)return Nr;wh=1,Object.defineProperty(Nr,"__esModule",{value:!0}),Nr.PLACEHOLDERS_FLIPPED_ALIAS=Nr.PLACEHOLDERS_ALIAS=Nr.PLACEHOLDERS=void 0;var e=Mn();const t=Nr.PLACEHOLDERS=["Identifier","StringLiteral","Expression","Statement","Declaration","BlockStatement","ClassBody","Pattern"],r=Nr.PLACEHOLDERS_ALIAS={Declaration:["Statement"],Pattern:["PatternLike","LVal"]};for(const i of t){const s=e.ALIAS_KEYS[i];s!=null&&s.length&&(r[i]=s)}const n=Nr.PLACEHOLDERS_FLIPPED_ALIAS={};return Object.keys(r).forEach(i=>{r[i].forEach(s=>{hasOwnProperty.call(n,s)||(n[s]=[]),n[s].push(i)})}),Nr}var Ih;function Uk(){if(Ih)return _h;Ih=1;var e=Mn(),t=tD();const r=(0,e.defineAliasedType)("Miscellaneous");return r("Noop",{visitor:[]}),r("Placeholder",{visitor:[],builder:["expectedNode","name"],fields:{name:{validate:(0,e.assertNodeType)("Identifier")},expectedNode:{validate:(0,e.assertOneOf)(...t.PLACEHOLDERS)}}}),r("V8IntrinsicIdentifier",{builder:["name"],fields:{name:{validate:(0,e.assertValueType)("string")}}}),_h}var Oh={},Nh;function Vk(){if(Nh)return Oh;Nh=1;var e=Mn();return(0,e.default)("ArgumentPlaceholder",{}),(0,e.default)("BindExpression",{visitor:["object","callee"],aliases:["Expression"],fields:process.env.BABEL_TYPES_8_BREAKING?{object:{validate:(0,e.assertNodeType)("Expression")},callee:{validate:(0,e.assertNodeType)("Expression")}}:{object:{validate:Object.assign(()=>{},{oneOfNodeTypes:["Expression"]})},callee:{validate:Object.assign(()=>{},{oneOfNodeTypes:["Expression"]})}}}),(0,e.default)("ImportAttribute",{visitor:["key","value"],fields:{key:{validate:(0,e.assertNodeType)("Identifier","StringLiteral")},value:{validate:(0,e.assertNodeType)("StringLiteral")}}}),(0,e.default)("Decorator",{visitor:["expression"],fields:{expression:{validate:(0,e.assertNodeType)("Expression")}}}),(0,e.default)("DoExpression",{visitor:["body"],builder:["body","async"],aliases:["Expression"],fields:{body:{validate:(0,e.assertNodeType)("BlockStatement")},async:{validate:(0,e.assertValueType)("boolean"),default:!1}}}),(0,e.default)("ExportDefaultSpecifier",{visitor:["exported"],aliases:["ModuleSpecifier"],fields:{exported:{validate:(0,e.assertNodeType)("Identifier")}}}),(0,e.default)("RecordExpression",{visitor:["properties"],aliases:["Expression"],fields:{properties:{validate:(0,e.chain)((0,e.assertValueType)("array"),(0,e.assertEach)((0,e.assertNodeType)("ObjectProperty","SpreadElement")))}}}),(0,e.default)("TupleExpression",{fields:{elements:{validate:(0,e.chain)((0,e.assertValueType)("array"),(0,e.assertEach)((0,e.assertNodeType)("Expression","SpreadElement"))),default:[]}},visitor:["elements"],aliases:["Expression"]}),(0,e.default)("DecimalLiteral",{builder:["value"],fields:{value:{validate:(0,e.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]}),(0,e.default)("ModuleExpression",{visitor:["body"],fields:{body:{validate:(0,e.assertNodeType)("Program")}},aliases:["Expression"]}),(0,e.default)("TopicReference",{aliases:["Expression"]}),(0,e.default)("PipelineTopicExpression",{builder:["expression"],visitor:["expression"],fields:{expression:{validate:(0,e.assertNodeType)("Expression")}},aliases:["Expression"]}),(0,e.default)("PipelineBareFunction",{builder:["callee"],visitor:["callee"],fields:{callee:{validate:(0,e.assertNodeType)("Expression")}},aliases:["Expression"]}),(0,e.default)("PipelinePrimaryTopicReference",{aliases:["Expression"]}),Oh}var Bh={},Lh;function qk(){if(Lh)return Bh;Lh=1;var e=Mn(),t=eD(),r=$s();const n=(0,e.defineAliasedType)("TypeScript"),i=(0,e.assertValueType)("boolean"),s=()=>({returnType:{validate:(0,e.assertNodeType)("TSTypeAnnotation","Noop"),optional:!0},typeParameters:{validate:(0,e.assertNodeType)("TSTypeParameterDeclaration","Noop"),optional:!0}});n("TSParameterProperty",{aliases:["LVal"],visitor:["parameter"],fields:{accessibility:{validate:(0,e.assertOneOf)("public","private","protected"),optional:!0},readonly:{validate:(0,e.assertValueType)("boolean"),optional:!0},parameter:{validate:(0,e.assertNodeType)("Identifier","AssignmentPattern")},override:{validate:(0,e.assertValueType)("boolean"),optional:!0},decorators:{validate:(0,e.chain)((0,e.assertValueType)("array"),(0,e.assertEach)((0,e.assertNodeType)("Decorator"))),optional:!0}}}),n("TSDeclareFunction",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","params","returnType"],fields:Object.assign({},(0,t.functionDeclarationCommon)(),s())}),n("TSDeclareMethod",{visitor:["decorators","key","typeParameters","params","returnType"],fields:Object.assign({},(0,t.classMethodOrDeclareMethodCommon)(),s())}),n("TSQualifiedName",{aliases:["TSEntityName"],visitor:["left","right"],fields:{left:(0,e.validateType)("TSEntityName"),right:(0,e.validateType)("Identifier")}});const a=()=>({typeParameters:(0,e.validateOptionalType)("TSTypeParameterDeclaration"),parameters:(0,e.validateArrayOfType)(["ArrayPattern","Identifier","ObjectPattern","RestElement"]),typeAnnotation:(0,e.validateOptionalType)("TSTypeAnnotation")}),o={aliases:["TSTypeElement"],visitor:["typeParameters","parameters","typeAnnotation"],fields:a()};n("TSCallSignatureDeclaration",o),n("TSConstructSignatureDeclaration",o);const u=()=>({key:(0,e.validateType)("Expression"),computed:{default:!1},optional:(0,e.validateOptional)(i)});n("TSPropertySignature",{aliases:["TSTypeElement"],visitor:["key","typeAnnotation"],fields:Object.assign({},u(),{readonly:(0,e.validateOptional)(i),typeAnnotation:(0,e.validateOptionalType)("TSTypeAnnotation"),kind:{validate:(0,e.assertOneOf)("get","set")}})}),n("TSMethodSignature",{aliases:["TSTypeElement"],visitor:["key","typeParameters","parameters","typeAnnotation"],fields:Object.assign({},a(),u(),{kind:{validate:(0,e.assertOneOf)("method","get","set")}})}),n("TSIndexSignature",{aliases:["TSTypeElement"],visitor:["parameters","typeAnnotation"],fields:{readonly:(0,e.validateOptional)(i),static:(0,e.validateOptional)(i),parameters:(0,e.validateArrayOfType)("Identifier"),typeAnnotation:(0,e.validateOptionalType)("TSTypeAnnotation")}});const l=["TSAnyKeyword","TSBooleanKeyword","TSBigIntKeyword","TSIntrinsicKeyword","TSNeverKeyword","TSNullKeyword","TSNumberKeyword","TSObjectKeyword","TSStringKeyword","TSSymbolKeyword","TSUndefinedKeyword","TSUnknownKeyword","TSVoidKeyword"];for(const h of l)n(h,{aliases:["TSType","TSBaseType"],visitor:[],fields:{}});n("TSThisType",{aliases:["TSType","TSBaseType"],visitor:[],fields:{}});const c={aliases:["TSType"],visitor:["typeParameters","parameters","typeAnnotation"]};n("TSFunctionType",Object.assign({},c,{fields:a()})),n("TSConstructorType",Object.assign({},c,{fields:Object.assign({},a(),{abstract:(0,e.validateOptional)(i)})})),n("TSTypeReference",{aliases:["TSType"],visitor:["typeName","typeParameters"],fields:{typeName:(0,e.validateType)("TSEntityName"),typeParameters:(0,e.validateOptionalType)("TSTypeParameterInstantiation")}}),n("TSTypePredicate",{aliases:["TSType"],visitor:["parameterName","typeAnnotation"],builder:["parameterName","typeAnnotation","asserts"],fields:{parameterName:(0,e.validateType)(["Identifier","TSThisType"]),typeAnnotation:(0,e.validateOptionalType)("TSTypeAnnotation"),asserts:(0,e.validateOptional)(i)}}),n("TSTypeQuery",{aliases:["TSType"],visitor:["exprName","typeParameters"],fields:{exprName:(0,e.validateType)(["TSEntityName","TSImportType"]),typeParameters:(0,e.validateOptionalType)("TSTypeParameterInstantiation")}}),n("TSTypeLiteral",{aliases:["TSType"],visitor:["members"],fields:{members:(0,e.validateArrayOfType)("TSTypeElement")}}),n("TSArrayType",{aliases:["TSType"],visitor:["elementType"],fields:{elementType:(0,e.validateType)("TSType")}}),n("TSTupleType",{aliases:["TSType"],visitor:["elementTypes"],fields:{elementTypes:(0,e.validateArrayOfType)(["TSType","TSNamedTupleMember"])}}),n("TSOptionalType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0,e.validateType)("TSType")}}),n("TSRestType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0,e.validateType)("TSType")}}),n("TSNamedTupleMember",{visitor:["label","elementType"],builder:["label","elementType","optional"],fields:{label:(0,e.validateType)("Identifier"),optional:{validate:i,default:!1},elementType:(0,e.validateType)("TSType")}});const f={aliases:["TSType"],visitor:["types"],fields:{types:(0,e.validateArrayOfType)("TSType")}};n("TSUnionType",f),n("TSIntersectionType",f),n("TSConditionalType",{aliases:["TSType"],visitor:["checkType","extendsType","trueType","falseType"],fields:{checkType:(0,e.validateType)("TSType"),extendsType:(0,e.validateType)("TSType"),trueType:(0,e.validateType)("TSType"),falseType:(0,e.validateType)("TSType")}}),n("TSInferType",{aliases:["TSType"],visitor:["typeParameter"],fields:{typeParameter:(0,e.validateType)("TSTypeParameter")}}),n("TSParenthesizedType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0,e.validateType)("TSType")}}),n("TSTypeOperator",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{operator:(0,e.validate)((0,e.assertValueType)("string")),typeAnnotation:(0,e.validateType)("TSType")}}),n("TSIndexedAccessType",{aliases:["TSType"],visitor:["objectType","indexType"],fields:{objectType:(0,e.validateType)("TSType"),indexType:(0,e.validateType)("TSType")}}),n("TSMappedType",{aliases:["TSType"],visitor:["typeParameter","typeAnnotation","nameType"],fields:{readonly:(0,e.validateOptional)((0,e.assertOneOf)(!0,!1,"+","-")),typeParameter:(0,e.validateType)("TSTypeParameter"),optional:(0,e.validateOptional)((0,e.assertOneOf)(!0,!1,"+","-")),typeAnnotation:(0,e.validateOptionalType)("TSType"),nameType:(0,e.validateOptionalType)("TSType")}}),n("TSLiteralType",{aliases:["TSType","TSBaseType"],visitor:["literal"],fields:{literal:{validate:function(){const h=(0,e.assertNodeType)("NumericLiteral","BigIntLiteral"),d=(0,e.assertOneOf)("-"),m=(0,e.assertNodeType)("NumericLiteral","StringLiteral","BooleanLiteral","BigIntLiteral","TemplateLiteral");function D(g,y,b){(0,r.default)("UnaryExpression",b)?(d(b,"operator",b.operator),h(b,"argument",b.argument)):m(g,y,b)}return D.oneOfNodeTypes=["NumericLiteral","StringLiteral","BooleanLiteral","BigIntLiteral","TemplateLiteral","UnaryExpression"],D}()}}}),n("TSExpressionWithTypeArguments",{aliases:["TSType"],visitor:["expression","typeParameters"],fields:{expression:(0,e.validateType)("TSEntityName"),typeParameters:(0,e.validateOptionalType)("TSTypeParameterInstantiation")}}),n("TSInterfaceDeclaration",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","extends","body"],fields:{declare:(0,e.validateOptional)(i),id:(0,e.validateType)("Identifier"),typeParameters:(0,e.validateOptionalType)("TSTypeParameterDeclaration"),extends:(0,e.validateOptional)((0,e.arrayOfType)("TSExpressionWithTypeArguments")),body:(0,e.validateType)("TSInterfaceBody")}}),n("TSInterfaceBody",{visitor:["body"],fields:{body:(0,e.validateArrayOfType)("TSTypeElement")}}),n("TSTypeAliasDeclaration",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","typeAnnotation"],fields:{declare:(0,e.validateOptional)(i),id:(0,e.validateType)("Identifier"),typeParameters:(0,e.validateOptionalType)("TSTypeParameterDeclaration"),typeAnnotation:(0,e.validateType)("TSType")}}),n("TSInstantiationExpression",{aliases:["Expression"],visitor:["expression","typeParameters"],fields:{expression:(0,e.validateType)("Expression"),typeParameters:(0,e.validateOptionalType)("TSTypeParameterInstantiation")}});const p={aliases:["Expression","LVal","PatternLike"],visitor:["expression","typeAnnotation"],fields:{expression:(0,e.validateType)("Expression"),typeAnnotation:(0,e.validateType)("TSType")}};return n("TSAsExpression",p),n("TSSatisfiesExpression",p),n("TSTypeAssertion",{aliases:["Expression","LVal","PatternLike"],visitor:["typeAnnotation","expression"],fields:{typeAnnotation:(0,e.validateType)("TSType"),expression:(0,e.validateType)("Expression")}}),n("TSEnumDeclaration",{aliases:["Statement","Declaration"],visitor:["id","members"],fields:{declare:(0,e.validateOptional)(i),const:(0,e.validateOptional)(i),id:(0,e.validateType)("Identifier"),members:(0,e.validateArrayOfType)("TSEnumMember"),initializer:(0,e.validateOptionalType)("Expression")}}),n("TSEnumMember",{visitor:["id","initializer"],fields:{id:(0,e.validateType)(["Identifier","StringLiteral"]),initializer:(0,e.validateOptionalType)("Expression")}}),n("TSModuleDeclaration",{aliases:["Statement","Declaration"],visitor:["id","body"],fields:{declare:(0,e.validateOptional)(i),global:(0,e.validateOptional)(i),id:(0,e.validateType)(["Identifier","StringLiteral"]),body:(0,e.validateType)(["TSModuleBlock","TSModuleDeclaration"])}}),n("TSModuleBlock",{aliases:["Scopable","Block","BlockParent","FunctionParent"],visitor:["body"],fields:{body:(0,e.validateArrayOfType)("Statement")}}),n("TSImportType",{aliases:["TSType"],visitor:["argument","qualifier","typeParameters"],fields:{argument:(0,e.validateType)("StringLiteral"),qualifier:(0,e.validateOptionalType)("TSEntityName"),typeParameters:(0,e.validateOptionalType)("TSTypeParameterInstantiation"),options:{validate:(0,e.assertNodeType)("Expression"),optional:!0}}}),n("TSImportEqualsDeclaration",{aliases:["Statement"],visitor:["id","moduleReference"],fields:{isExport:(0,e.validate)(i),id:(0,e.validateType)("Identifier"),moduleReference:(0,e.validateType)(["TSEntityName","TSExternalModuleReference"]),importKind:{validate:(0,e.assertOneOf)("type","value"),optional:!0}}}),n("TSExternalModuleReference",{visitor:["expression"],fields:{expression:(0,e.validateType)("StringLiteral")}}),n("TSNonNullExpression",{aliases:["Expression","LVal","PatternLike"],visitor:["expression"],fields:{expression:(0,e.validateType)("Expression")}}),n("TSExportAssignment",{aliases:["Statement"],visitor:["expression"],fields:{expression:(0,e.validateType)("Expression")}}),n("TSNamespaceExportDeclaration",{aliases:["Statement"],visitor:["id"],fields:{id:(0,e.validateType)("Identifier")}}),n("TSTypeAnnotation",{visitor:["typeAnnotation"],fields:{typeAnnotation:{validate:(0,e.assertNodeType)("TSType")}}}),n("TSTypeParameterInstantiation",{visitor:["params"],fields:{params:{validate:(0,e.chain)((0,e.assertValueType)("array"),(0,e.assertEach)((0,e.assertNodeType)("TSType")))}}}),n("TSTypeParameterDeclaration",{visitor:["params"],fields:{params:{validate:(0,e.chain)((0,e.assertValueType)("array"),(0,e.assertEach)((0,e.assertNodeType)("TSTypeParameter")))}}}),n("TSTypeParameter",{builder:["constraint","default","name"],visitor:["constraint","default"],fields:{name:{validate:(0,e.assertValueType)("string")},in:{validate:(0,e.assertValueType)("boolean"),optional:!0},out:{validate:(0,e.assertValueType)("boolean"),optional:!0},const:{validate:(0,e.assertValueType)("boolean"),optional:!0},constraint:{validate:(0,e.assertNodeType)("TSType"),optional:!0},default:{validate:(0,e.assertNodeType)("TSType"),optional:!0}}}),Bh}var ko={};Object.defineProperty(ko,"__esModule",{value:!0});ko.DEPRECATED_ALIASES=void 0;ko.DEPRECATED_ALIASES={ModuleDeclaration:"ImportOrExportDeclaration"};var kh;function br(){return kh||(kh=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ALIAS_KEYS",{enumerable:!0,get:function(){return r.ALIAS_KEYS}}),Object.defineProperty(e,"BUILDER_KEYS",{enumerable:!0,get:function(){return r.BUILDER_KEYS}}),Object.defineProperty(e,"DEPRECATED_ALIASES",{enumerable:!0,get:function(){return i.DEPRECATED_ALIASES}}),Object.defineProperty(e,"DEPRECATED_KEYS",{enumerable:!0,get:function(){return r.DEPRECATED_KEYS}}),Object.defineProperty(e,"FLIPPED_ALIAS_KEYS",{enumerable:!0,get:function(){return r.FLIPPED_ALIAS_KEYS}}),Object.defineProperty(e,"NODE_FIELDS",{enumerable:!0,get:function(){return r.NODE_FIELDS}}),Object.defineProperty(e,"NODE_PARENT_VALIDATIONS",{enumerable:!0,get:function(){return r.NODE_PARENT_VALIDATIONS}}),Object.defineProperty(e,"PLACEHOLDERS",{enumerable:!0,get:function(){return n.PLACEHOLDERS}}),Object.defineProperty(e,"PLACEHOLDERS_ALIAS",{enumerable:!0,get:function(){return n.PLACEHOLDERS_ALIAS}}),Object.defineProperty(e,"PLACEHOLDERS_FLIPPED_ALIAS",{enumerable:!0,get:function(){return n.PLACEHOLDERS_FLIPPED_ALIAS}}),e.TYPES=void 0,Object.defineProperty(e,"VISITOR_KEYS",{enumerable:!0,get:function(){return r.VISITOR_KEYS}});var t=yk;eD(),jk(),$k(),Uk(),Vk(),qk();var r=Mn(),n=tD(),i=ko;Object.keys(i.DEPRECATED_ALIASES).forEach(s=>{r.FLIPPED_ALIAS_KEYS[s]=r.FLIPPED_ALIAS_KEYS[i.DEPRECATED_ALIASES[s]]}),t(r.VISITOR_KEYS),t(r.ALIAS_KEYS),t(r.FLIPPED_ALIAS_KEYS),t(r.NODE_FIELDS),t(r.BUILDER_KEYS),t(r.DEPRECATED_KEYS),t(n.PLACEHOLDERS_ALIAS),t(n.PLACEHOLDERS_FLIPPED_ALIAS),e.TYPES=[].concat(Object.keys(r.VISITOR_KEYS),Object.keys(r.FLIPPED_ALIAS_KEYS),Object.keys(r.DEPRECATED_KEYS))}(Wu)),Wu}var Rh;function tf(){if(Rh)return Ei;Rh=1,Object.defineProperty(Ei,"__esModule",{value:!0}),Ei.default=t,Ei.validateChild=n,Ei.validateField=r;var e=br();function t(i,s,a){if(!i)return;const o=e.NODE_FIELDS[i.type];if(!o)return;const u=o[s];r(i,s,a,u),n(i,s,a)}function r(i,s,a,o){o!=null&&o.validate&&(o.optional&&a==null||o.validate(i,s,a))}function n(i,s,a){if(a==null)return;const o=e.NODE_PARENT_VALIDATIONS[a.type];o&&o(i,s,a)}return Ei}var Mh;function Kk(){if(Mh)return ga;Mh=1,Object.defineProperty(ga,"__esModule",{value:!0}),ga.default=r;var e=tf(),t=Ge();function r(n){const i=t.BUILDER_KEYS[n.type];for(const s of i)(0,e.default)(n,s,n[s]);return n}return ga}var jh;function Ht(){if(jh)return k;jh=1,Object.defineProperty(k,"__esModule",{value:!0}),k.anyTypeAnnotation=ta,k.argumentPlaceholder=PE,k.arrayExpression=r,k.arrayPattern=ge,k.arrayTypeAnnotation=ye,k.arrowFunctionExpression=Ae,k.assignmentExpression=n,k.assignmentPattern=Ne,k.awaitExpression=ft,k.bigIntLiteral=Or,k.binaryExpression=i,k.bindExpression=xE,k.blockStatement=u,k.booleanLiteral=A,k.booleanLiteralTypeAnnotation=$f,k.booleanTypeAnnotation=Et,k.breakStatement=l,k.callExpression=c,k.catchClause=f,k.classAccessorProperty=Tr,k.classBody=st,k.classDeclaration=Ue,k.classExpression=fe,k.classImplements=nt,k.classMethod=ue,k.classPrivateMethod=$n,k.classPrivateProperty=on,k.classProperty=wt,k.conditionalExpression=p,k.continueStatement=h,k.debuggerStatement=d,k.decimalLiteral=BE,k.declareClass=zt,k.declareExportAllDeclaration=pg,k.declareExportDeclaration=fg,k.declareFunction=Gt,k.declareInterface=sg,k.declareModule=ag,k.declareModuleExports=og,k.declareOpaqueType=lg,k.declareTypeAlias=ug,k.declareVariable=cg,k.declaredPredicate=hg,k.decorator=_E,k.directive=a,k.directiveLiteral=o,k.doExpression=wE,k.doWhileStatement=m,k.emptyStatement=D,k.emptyTypeAnnotation=Ag,k.enumBooleanBody=Qg,k.enumBooleanMember=rE,k.enumDeclaration=zg,k.enumDefaultedMember=sE,k.enumNumberBody=Zg,k.enumNumberMember=nE,k.enumStringBody=eE,k.enumStringMember=iE,k.enumSymbolBody=tE,k.existsTypeAnnotation=dg,k.exportAllDeclaration=Z,k.exportDefaultDeclaration=G,k.exportDefaultSpecifier=IE,k.exportNamedDeclaration=V,k.exportNamespaceSpecifier=cr,k.exportSpecifier=E,k.expressionStatement=g,k.file=y,k.forInStatement=b,k.forOfStatement=j,k.forStatement=O,k.functionDeclaration=C,k.functionExpression=$,k.functionTypeAnnotation=mg,k.functionTypeParam=yg,k.genericTypeAnnotation=Dg,k.identifier=w,k.ifStatement=P,k.import=lr,k.importAttribute=FE,k.importDeclaration=z,k.importDefaultSpecifier=se,k.importExpression=Pe,k.importNamespaceSpecifier=oe,k.importSpecifier=ce,k.indexedAccessType=aE,k.inferredPredicate=gg,k.interfaceDeclaration=bg,k.interfaceExtends=Eg,k.interfaceTypeAnnotation=Tg,k.interpreterDirective=s,k.intersectionTypeAnnotation=Sg,k.jSXAttribute=k.jsxAttribute=uE,k.jSXClosingElement=k.jsxClosingElement=lE,k.jSXClosingFragment=k.jsxClosingFragment=SE,k.jSXElement=k.jsxElement=cE,k.jSXEmptyExpression=k.jsxEmptyExpression=fE,k.jSXExpressionContainer=k.jsxExpressionContainer=pE,k.jSXFragment=k.jsxFragment=bE,k.jSXIdentifier=k.jsxIdentifier=dE,k.jSXMemberExpression=k.jsxMemberExpression=mE,k.jSXNamespacedName=k.jsxNamespacedName=yE,k.jSXOpeningElement=k.jsxOpeningElement=DE,k.jSXOpeningFragment=k.jsxOpeningFragment=TE,k.jSXSpreadAttribute=k.jsxSpreadAttribute=gE,k.jSXSpreadChild=k.jsxSpreadChild=hE,k.jSXText=k.jsxText=EE,k.labeledStatement=I,k.logicalExpression=x,k.memberExpression=N,k.metaProperty=Ve,k.mixedTypeAnnotation=vg,k.moduleExpression=LE,k.newExpression=H,k.noop=vE,k.nullLiteral=S,k.nullLiteralTypeAnnotation=Ee,k.nullableTypeAnnotation=Cg,k.numberLiteral=zb,k.numberLiteralTypeAnnotation=Pg,k.numberTypeAnnotation=xg,k.numericLiteral=F,k.objectExpression=_,k.objectMethod=R,k.objectPattern=je,k.objectProperty=Q,k.objectTypeAnnotation=Fg,k.objectTypeCallProperty=wg,k.objectTypeIndexer=Ig,k.objectTypeInternalSlot=_g,k.objectTypeProperty=Og,k.objectTypeSpreadProperty=Ng,k.opaqueType=Bg,k.optionalCallExpression=Jt,k.optionalIndexedAccessType=oE,k.optionalMemberExpression=fr,k.parenthesizedExpression=ie,k.pipelineBareFunction=ME,k.pipelinePrimaryTopicReference=jE,k.pipelineTopicExpression=RE,k.placeholder=AE,k.privateName=un,k.program=T,k.qualifiedTypeIdentifier=Lg,k.recordExpression=OE,k.regExpLiteral=B,k.regexLiteral=Qb,k.restElement=ne,k.restProperty=Zb,k.returnStatement=X,k.sequenceExpression=ae,k.spreadElement=qe,k.spreadProperty=eT,k.staticBlock=ea,k.stringLiteral=L,k.stringLiteralTypeAnnotation=kg,k.stringTypeAnnotation=Rg,k.super=We,k.switchCase=te,k.switchStatement=Y,k.symbolTypeAnnotation=Mg,k.taggedTemplateExpression=Re,k.templateElement=W,k.templateLiteral=Se,k.thisExpression=re,k.thisTypeAnnotation=jg,k.throwStatement=De,k.topicReference=kE,k.tryStatement=de,k.tSAnyKeyword=k.tsAnyKeyword=XE,k.tSArrayType=k.tsArrayType=mb,k.tSAsExpression=k.tsAsExpression=Bb,k.tSBigIntKeyword=k.tsBigIntKeyword=zE,k.tSBooleanKeyword=k.tsBooleanKeyword=JE,k.tSCallSignatureDeclaration=k.tsCallSignatureDeclaration=KE,k.tSConditionalType=k.tsConditionalType=Sb,k.tSConstructSignatureDeclaration=k.tsConstructSignatureDeclaration=WE,k.tSConstructorType=k.tsConstructorType=cb,k.tSDeclareFunction=k.tsDeclareFunction=UE,k.tSDeclareMethod=k.tsDeclareMethod=VE,k.tSEnumDeclaration=k.tsEnumDeclaration=Rb,k.tSEnumMember=k.tsEnumMember=Mb,k.tSExportAssignment=k.tsExportAssignment=Wb,k.tSExpressionWithTypeArguments=k.tsExpressionWithTypeArguments=_b,k.tSExternalModuleReference=k.tsExternalModuleReference=qb,k.tSFunctionType=k.tsFunctionType=lb,k.tSImportEqualsDeclaration=k.tsImportEqualsDeclaration=Vb,k.tSImportType=k.tsImportType=Ub,k.tSIndexSignature=k.tsIndexSignature=YE,k.tSIndexedAccessType=k.tsIndexedAccessType=Pb,k.tSInferType=k.tsInferType=vb,k.tSInstantiationExpression=k.tsInstantiationExpression=Nb,k.tSInterfaceBody=k.tsInterfaceBody=Ib,k.tSInterfaceDeclaration=k.tsInterfaceDeclaration=wb,k.tSIntersectionType=k.tsIntersectionType=Tb,k.tSIntrinsicKeyword=k.tsIntrinsicKeyword=QE,k.tSLiteralType=k.tsLiteralType=Fb,k.tSMappedType=k.tsMappedType=xb,k.tSMethodSignature=k.tsMethodSignature=GE,k.tSModuleBlock=k.tsModuleBlock=$b,k.tSModuleDeclaration=k.tsModuleDeclaration=jb,k.tSNamedTupleMember=k.tsNamedTupleMember=Eb,k.tSNamespaceExportDeclaration=k.tsNamespaceExportDeclaration=Hb,k.tSNeverKeyword=k.tsNeverKeyword=ZE,k.tSNonNullExpression=k.tsNonNullExpression=Kb,k.tSNullKeyword=k.tsNullKeyword=eb,k.tSNumberKeyword=k.tsNumberKeyword=tb,k.tSObjectKeyword=k.tsObjectKeyword=rb,k.tSOptionalType=k.tsOptionalType=Db,k.tSParameterProperty=k.tsParameterProperty=$E,k.tSParenthesizedType=k.tsParenthesizedType=Ab,k.tSPropertySignature=k.tsPropertySignature=HE,k.tSQualifiedName=k.tsQualifiedName=qE,k.tSRestType=k.tsRestType=gb,k.tSSatisfiesExpression=k.tsSatisfiesExpression=Lb,k.tSStringKeyword=k.tsStringKeyword=nb,k.tSSymbolKeyword=k.tsSymbolKeyword=ib,k.tSThisType=k.tsThisType=ub,k.tSTupleType=k.tsTupleType=yb,k.tSTypeAliasDeclaration=k.tsTypeAliasDeclaration=Ob,k.tSTypeAnnotation=k.tsTypeAnnotation=Gb,k.tSTypeAssertion=k.tsTypeAssertion=kb,k.tSTypeLiteral=k.tsTypeLiteral=db,k.tSTypeOperator=k.tsTypeOperator=Cb,k.tSTypeParameter=k.tsTypeParameter=Jb,k.tSTypeParameterDeclaration=k.tsTypeParameterDeclaration=Xb,k.tSTypeParameterInstantiation=k.tsTypeParameterInstantiation=Yb,k.tSTypePredicate=k.tsTypePredicate=pb,k.tSTypeQuery=k.tsTypeQuery=hb,k.tSTypeReference=k.tsTypeReference=fb,k.tSUndefinedKeyword=k.tsUndefinedKeyword=sb,k.tSUnionType=k.tsUnionType=bb,k.tSUnknownKeyword=k.tsUnknownKeyword=ab,k.tSVoidKeyword=k.tsVoidKeyword=ob,k.tupleExpression=NE,k.tupleTypeAnnotation=$g,k.typeAlias=Vg,k.typeAnnotation=qg,k.typeCastExpression=Kg,k.typeParameter=Wg,k.typeParameterDeclaration=Hg,k.typeParameterInstantiation=Gg,k.typeofTypeAnnotation=Ug,k.unaryExpression=Ce,k.unionTypeAnnotation=Yg,k.updateExpression=Oe,k.v8IntrinsicIdentifier=CE,k.variableDeclaration=Te,k.variableDeclarator=Be,k.variance=Xg,k.voidTypeAnnotation=Jg,k.whileStatement=ze,k.withStatement=_e,k.yieldExpression=Qe;var e=Kk(),t=Vi;function r(v=[]){return(0,e.default)({type:"ArrayExpression",elements:v})}function n(v,J,le){return(0,e.default)({type:"AssignmentExpression",operator:v,left:J,right:le})}function i(v,J,le){return(0,e.default)({type:"BinaryExpression",operator:v,left:J,right:le})}function s(v){return(0,e.default)({type:"InterpreterDirective",value:v})}function a(v){return(0,e.default)({type:"Directive",value:v})}function o(v){return(0,e.default)({type:"DirectiveLiteral",value:v})}function u(v,J=[]){return(0,e.default)({type:"BlockStatement",body:v,directives:J})}function l(v=null){return(0,e.default)({type:"BreakStatement",label:v})}function c(v,J){return(0,e.default)({type:"CallExpression",callee:v,arguments:J})}function f(v=null,J){return(0,e.default)({type:"CatchClause",param:v,body:J})}function p(v,J,le){return(0,e.default)({type:"ConditionalExpression",test:v,consequent:J,alternate:le})}function h(v=null){return(0,e.default)({type:"ContinueStatement",label:v})}function d(){return{type:"DebuggerStatement"}}function m(v,J){return(0,e.default)({type:"DoWhileStatement",test:v,body:J})}function D(){return{type:"EmptyStatement"}}function g(v){return(0,e.default)({type:"ExpressionStatement",expression:v})}function y(v,J=null,le=null){return(0,e.default)({type:"File",program:v,comments:J,tokens:le})}function b(v,J,le){return(0,e.default)({type:"ForInStatement",left:v,right:J,body:le})}function O(v=null,J=null,le=null,we){return(0,e.default)({type:"ForStatement",init:v,test:J,update:le,body:we})}function C(v=null,J,le,we=!1,bt=!1){return(0,e.default)({type:"FunctionDeclaration",id:v,params:J,body:le,generator:we,async:bt})}function $(v=null,J,le,we=!1,bt=!1){return(0,e.default)({type:"FunctionExpression",id:v,params:J,body:le,generator:we,async:bt})}function w(v){return(0,e.default)({type:"Identifier",name:v})}function P(v,J,le=null){return(0,e.default)({type:"IfStatement",test:v,consequent:J,alternate:le})}function I(v,J){return(0,e.default)({type:"LabeledStatement",label:v,body:J})}function L(v){return(0,e.default)({type:"StringLiteral",value:v})}function F(v){return(0,e.default)({type:"NumericLiteral",value:v})}function S(){return{type:"NullLiteral"}}function A(v){return(0,e.default)({type:"BooleanLiteral",value:v})}function B(v,J=""){return(0,e.default)({type:"RegExpLiteral",pattern:v,flags:J})}function x(v,J,le){return(0,e.default)({type:"LogicalExpression",operator:v,left:J,right:le})}function N(v,J,le=!1,we=null){return(0,e.default)({type:"MemberExpression",object:v,property:J,computed:le,optional:we})}function H(v,J){return(0,e.default)({type:"NewExpression",callee:v,arguments:J})}function T(v,J=[],le="script",we=null){return(0,e.default)({type:"Program",body:v,directives:J,sourceType:le,interpreter:we})}function _(v){return(0,e.default)({type:"ObjectExpression",properties:v})}function R(v="method",J,le,we,bt=!1,Un=!1,du=!1){return(0,e.default)({type:"ObjectMethod",kind:v,key:J,params:le,body:we,computed:bt,generator:Un,async:du})}function Q(v,J,le=!1,we=!1,bt=null){return(0,e.default)({type:"ObjectProperty",key:v,value:J,computed:le,shorthand:we,decorators:bt})}function ne(v){return(0,e.default)({type:"RestElement",argument:v})}function X(v=null){return(0,e.default)({type:"ReturnStatement",argument:v})}function ae(v){return(0,e.default)({type:"SequenceExpression",expressions:v})}function ie(v){return(0,e.default)({type:"ParenthesizedExpression",expression:v})}function te(v=null,J){return(0,e.default)({type:"SwitchCase",test:v,consequent:J})}function Y(v,J){return(0,e.default)({type:"SwitchStatement",discriminant:v,cases:J})}function re(){return{type:"ThisExpression"}}function De(v){return(0,e.default)({type:"ThrowStatement",argument:v})}function de(v,J=null,le=null){return(0,e.default)({type:"TryStatement",block:v,handler:J,finalizer:le})}function Ce(v,J,le=!0){return(0,e.default)({type:"UnaryExpression",operator:v,argument:J,prefix:le})}function Oe(v,J,le=!1){return(0,e.default)({type:"UpdateExpression",operator:v,argument:J,prefix:le})}function Te(v,J){return(0,e.default)({type:"VariableDeclaration",kind:v,declarations:J})}function Be(v,J=null){return(0,e.default)({type:"VariableDeclarator",id:v,init:J})}function ze(v,J){return(0,e.default)({type:"WhileStatement",test:v,body:J})}function _e(v,J){return(0,e.default)({type:"WithStatement",object:v,body:J})}function Ne(v,J){return(0,e.default)({type:"AssignmentPattern",left:v,right:J})}function ge(v){return(0,e.default)({type:"ArrayPattern",elements:v})}function Ae(v,J,le=!1){return(0,e.default)({type:"ArrowFunctionExpression",params:v,body:J,async:le,expression:null})}function st(v){return(0,e.default)({type:"ClassBody",body:v})}function fe(v=null,J=null,le,we=null){return(0,e.default)({type:"ClassExpression",id:v,superClass:J,body:le,decorators:we})}function Ue(v=null,J=null,le,we=null){return(0,e.default)({type:"ClassDeclaration",id:v,superClass:J,body:le,decorators:we})}function Z(v){return(0,e.default)({type:"ExportAllDeclaration",source:v})}function G(v){return(0,e.default)({type:"ExportDefaultDeclaration",declaration:v})}function V(v=null,J=[],le=null){return(0,e.default)({type:"ExportNamedDeclaration",declaration:v,specifiers:J,source:le})}function E(v,J){return(0,e.default)({type:"ExportSpecifier",local:v,exported:J})}function j(v,J,le,we=!1){return(0,e.default)({type:"ForOfStatement",left:v,right:J,body:le,await:we})}function z(v,J){return(0,e.default)({type:"ImportDeclaration",specifiers:v,source:J})}function se(v){return(0,e.default)({type:"ImportDefaultSpecifier",local:v})}function oe(v){return(0,e.default)({type:"ImportNamespaceSpecifier",local:v})}function ce(v,J){return(0,e.default)({type:"ImportSpecifier",local:v,imported:J})}function Pe(v,J=null){return(0,e.default)({type:"ImportExpression",source:v,options:J})}function Ve(v,J){return(0,e.default)({type:"MetaProperty",meta:v,property:J})}function ue(v="method",J,le,we,bt=!1,Un=!1,du=!1,tT=!1){return(0,e.default)({type:"ClassMethod",kind:v,key:J,params:le,body:we,computed:bt,static:Un,generator:du,async:tT})}function je(v){return(0,e.default)({type:"ObjectPattern",properties:v})}function qe(v){return(0,e.default)({type:"SpreadElement",argument:v})}function We(){return{type:"Super"}}function Re(v,J){return(0,e.default)({type:"TaggedTemplateExpression",tag:v,quasi:J})}function W(v,J=!1){return(0,e.default)({type:"TemplateElement",value:v,tail:J})}function Se(v,J){return(0,e.default)({type:"TemplateLiteral",quasis:v,expressions:J})}function Qe(v=null,J=!1){return(0,e.default)({type:"YieldExpression",argument:v,delegate:J})}function ft(v){return(0,e.default)({type:"AwaitExpression",argument:v})}function lr(){return{type:"Import"}}function Or(v){return(0,e.default)({type:"BigIntLiteral",value:v})}function cr(v){return(0,e.default)({type:"ExportNamespaceSpecifier",exported:v})}function fr(v,J,le=!1,we){return(0,e.default)({type:"OptionalMemberExpression",object:v,property:J,computed:le,optional:we})}function Jt(v,J,le){return(0,e.default)({type:"OptionalCallExpression",callee:v,arguments:J,optional:le})}function wt(v,J=null,le=null,we=null,bt=!1,Un=!1){return(0,e.default)({type:"ClassProperty",key:v,value:J,typeAnnotation:le,decorators:we,computed:bt,static:Un})}function Tr(v,J=null,le=null,we=null,bt=!1,Un=!1){return(0,e.default)({type:"ClassAccessorProperty",key:v,value:J,typeAnnotation:le,decorators:we,computed:bt,static:Un})}function on(v,J=null,le=null,we=!1){return(0,e.default)({type:"ClassPrivateProperty",key:v,value:J,decorators:le,static:we})}function $n(v="method",J,le,we,bt=!1){return(0,e.default)({type:"ClassPrivateMethod",kind:v,key:J,params:le,body:we,static:bt})}function un(v){return(0,e.default)({type:"PrivateName",id:v})}function ea(v){return(0,e.default)({type:"StaticBlock",body:v})}function ta(){return{type:"AnyTypeAnnotation"}}function ye(v){return(0,e.default)({type:"ArrayTypeAnnotation",elementType:v})}function Et(){return{type:"BooleanTypeAnnotation"}}function $f(v){return(0,e.default)({type:"BooleanLiteralTypeAnnotation",value:v})}function Ee(){return{type:"NullLiteralTypeAnnotation"}}function nt(v,J=null){return(0,e.default)({type:"ClassImplements",id:v,typeParameters:J})}function zt(v,J=null,le=null,we){return(0,e.default)({type:"DeclareClass",id:v,typeParameters:J,extends:le,body:we})}function Gt(v){return(0,e.default)({type:"DeclareFunction",id:v})}function sg(v,J=null,le=null,we){return(0,e.default)({type:"DeclareInterface",id:v,typeParameters:J,extends:le,body:we})}function ag(v,J,le=null){return(0,e.default)({type:"DeclareModule",id:v,body:J,kind:le})}function og(v){return(0,e.default)({type:"DeclareModuleExports",typeAnnotation:v})}function ug(v,J=null,le){return(0,e.default)({type:"DeclareTypeAlias",id:v,typeParameters:J,right:le})}function lg(v,J=null,le=null){return(0,e.default)({type:"DeclareOpaqueType",id:v,typeParameters:J,supertype:le})}function cg(v){return(0,e.default)({type:"DeclareVariable",id:v})}function fg(v=null,J=null,le=null){return(0,e.default)({type:"DeclareExportDeclaration",declaration:v,specifiers:J,source:le})}function pg(v){return(0,e.default)({type:"DeclareExportAllDeclaration",source:v})}function hg(v){return(0,e.default)({type:"DeclaredPredicate",value:v})}function dg(){return{type:"ExistsTypeAnnotation"}}function mg(v=null,J,le=null,we){return(0,e.default)({type:"FunctionTypeAnnotation",typeParameters:v,params:J,rest:le,returnType:we})}function yg(v=null,J){return(0,e.default)({type:"FunctionTypeParam",name:v,typeAnnotation:J})}function Dg(v,J=null){return(0,e.default)({type:"GenericTypeAnnotation",id:v,typeParameters:J})}function gg(){return{type:"InferredPredicate"}}function Eg(v,J=null){return(0,e.default)({type:"InterfaceExtends",id:v,typeParameters:J})}function bg(v,J=null,le=null,we){return(0,e.default)({type:"InterfaceDeclaration",id:v,typeParameters:J,extends:le,body:we})}function Tg(v=null,J){return(0,e.default)({type:"InterfaceTypeAnnotation",extends:v,body:J})}function Sg(v){return(0,e.default)({type:"IntersectionTypeAnnotation",types:v})}function vg(){return{type:"MixedTypeAnnotation"}}function Ag(){return{type:"EmptyTypeAnnotation"}}function Cg(v){return(0,e.default)({type:"NullableTypeAnnotation",typeAnnotation:v})}function Pg(v){return(0,e.default)({type:"NumberLiteralTypeAnnotation",value:v})}function xg(){return{type:"NumberTypeAnnotation"}}function Fg(v,J=[],le=[],we=[],bt=!1){return(0,e.default)({type:"ObjectTypeAnnotation",properties:v,indexers:J,callProperties:le,internalSlots:we,exact:bt})}function _g(v,J,le,we,bt){return(0,e.default)({type:"ObjectTypeInternalSlot",id:v,value:J,optional:le,static:we,method:bt})}function wg(v){return(0,e.default)({type:"ObjectTypeCallProperty",value:v,static:null})}function Ig(v=null,J,le,we=null){return(0,e.default)({type:"ObjectTypeIndexer",id:v,key:J,value:le,variance:we,static:null})}function Og(v,J,le=null){return(0,e.default)({type:"ObjectTypeProperty",key:v,value:J,variance:le,kind:null,method:null,optional:null,proto:null,static:null})}function Ng(v){return(0,e.default)({type:"ObjectTypeSpreadProperty",argument:v})}function Bg(v,J=null,le=null,we){return(0,e.default)({type:"OpaqueType",id:v,typeParameters:J,supertype:le,impltype:we})}function Lg(v,J){return(0,e.default)({type:"QualifiedTypeIdentifier",id:v,qualification:J})}function kg(v){return(0,e.default)({type:"StringLiteralTypeAnnotation",value:v})}function Rg(){return{type:"StringTypeAnnotation"}}function Mg(){return{type:"SymbolTypeAnnotation"}}function jg(){return{type:"ThisTypeAnnotation"}}function $g(v){return(0,e.default)({type:"TupleTypeAnnotation",types:v})}function Ug(v){return(0,e.default)({type:"TypeofTypeAnnotation",argument:v})}function Vg(v,J=null,le){return(0,e.default)({type:"TypeAlias",id:v,typeParameters:J,right:le})}function qg(v){return(0,e.default)({type:"TypeAnnotation",typeAnnotation:v})}function Kg(v,J){return(0,e.default)({type:"TypeCastExpression",expression:v,typeAnnotation:J})}function Wg(v=null,J=null,le=null){return(0,e.default)({type:"TypeParameter",bound:v,default:J,variance:le,name:null})}function Hg(v){return(0,e.default)({type:"TypeParameterDeclaration",params:v})}function Gg(v){return(0,e.default)({type:"TypeParameterInstantiation",params:v})}function Yg(v){return(0,e.default)({type:"UnionTypeAnnotation",types:v})}function Xg(v){return(0,e.default)({type:"Variance",kind:v})}function Jg(){return{type:"VoidTypeAnnotation"}}function zg(v,J){return(0,e.default)({type:"EnumDeclaration",id:v,body:J})}function Qg(v){return(0,e.default)({type:"EnumBooleanBody",members:v,explicitType:null,hasUnknownMembers:null})}function Zg(v){return(0,e.default)({type:"EnumNumberBody",members:v,explicitType:null,hasUnknownMembers:null})}function eE(v){return(0,e.default)({type:"EnumStringBody",members:v,explicitType:null,hasUnknownMembers:null})}function tE(v){return(0,e.default)({type:"EnumSymbolBody",members:v,hasUnknownMembers:null})}function rE(v){return(0,e.default)({type:"EnumBooleanMember",id:v,init:null})}function nE(v,J){return(0,e.default)({type:"EnumNumberMember",id:v,init:J})}function iE(v,J){return(0,e.default)({type:"EnumStringMember",id:v,init:J})}function sE(v){return(0,e.default)({type:"EnumDefaultedMember",id:v})}function aE(v,J){return(0,e.default)({type:"IndexedAccessType",objectType:v,indexType:J})}function oE(v,J){return(0,e.default)({type:"OptionalIndexedAccessType",objectType:v,indexType:J,optional:null})}function uE(v,J=null){return(0,e.default)({type:"JSXAttribute",name:v,value:J})}function lE(v){return(0,e.default)({type:"JSXClosingElement",name:v})}function cE(v,J=null,le,we=null){return(0,e.default)({type:"JSXElement",openingElement:v,closingElement:J,children:le,selfClosing:we})}function fE(){return{type:"JSXEmptyExpression"}}function pE(v){return(0,e.default)({type:"JSXExpressionContainer",expression:v})}function hE(v){return(0,e.default)({type:"JSXSpreadChild",expression:v})}function dE(v){return(0,e.default)({type:"JSXIdentifier",name:v})}function mE(v,J){return(0,e.default)({type:"JSXMemberExpression",object:v,property:J})}function yE(v,J){return(0,e.default)({type:"JSXNamespacedName",namespace:v,name:J})}function DE(v,J,le=!1){return(0,e.default)({type:"JSXOpeningElement",name:v,attributes:J,selfClosing:le})}function gE(v){return(0,e.default)({type:"JSXSpreadAttribute",argument:v})}function EE(v){return(0,e.default)({type:"JSXText",value:v})}function bE(v,J,le){return(0,e.default)({type:"JSXFragment",openingFragment:v,closingFragment:J,children:le})}function TE(){return{type:"JSXOpeningFragment"}}function SE(){return{type:"JSXClosingFragment"}}function vE(){return{type:"Noop"}}function AE(v,J){return(0,e.default)({type:"Placeholder",expectedNode:v,name:J})}function CE(v){return(0,e.default)({type:"V8IntrinsicIdentifier",name:v})}function PE(){return{type:"ArgumentPlaceholder"}}function xE(v,J){return(0,e.default)({type:"BindExpression",object:v,callee:J})}function FE(v,J){return(0,e.default)({type:"ImportAttribute",key:v,value:J})}function _E(v){return(0,e.default)({type:"Decorator",expression:v})}function wE(v,J=!1){return(0,e.default)({type:"DoExpression",body:v,async:J})}function IE(v){return(0,e.default)({type:"ExportDefaultSpecifier",exported:v})}function OE(v){return(0,e.default)({type:"RecordExpression",properties:v})}function NE(v=[]){return(0,e.default)({type:"TupleExpression",elements:v})}function BE(v){return(0,e.default)({type:"DecimalLiteral",value:v})}function LE(v){return(0,e.default)({type:"ModuleExpression",body:v})}function kE(){return{type:"TopicReference"}}function RE(v){return(0,e.default)({type:"PipelineTopicExpression",expression:v})}function ME(v){return(0,e.default)({type:"PipelineBareFunction",callee:v})}function jE(){return{type:"PipelinePrimaryTopicReference"}}function $E(v){return(0,e.default)({type:"TSParameterProperty",parameter:v})}function UE(v=null,J=null,le,we=null){return(0,e.default)({type:"TSDeclareFunction",id:v,typeParameters:J,params:le,returnType:we})}function VE(v=null,J,le=null,we,bt=null){return(0,e.default)({type:"TSDeclareMethod",decorators:v,key:J,typeParameters:le,params:we,returnType:bt})}function qE(v,J){return(0,e.default)({type:"TSQualifiedName",left:v,right:J})}function KE(v=null,J,le=null){return(0,e.default)({type:"TSCallSignatureDeclaration",typeParameters:v,parameters:J,typeAnnotation:le})}function WE(v=null,J,le=null){return(0,e.default)({type:"TSConstructSignatureDeclaration",typeParameters:v,parameters:J,typeAnnotation:le})}function HE(v,J=null){return(0,e.default)({type:"TSPropertySignature",key:v,typeAnnotation:J,kind:null})}function GE(v,J=null,le,we=null){return(0,e.default)({type:"TSMethodSignature",key:v,typeParameters:J,parameters:le,typeAnnotation:we,kind:null})}function YE(v,J=null){return(0,e.default)({type:"TSIndexSignature",parameters:v,typeAnnotation:J})}function XE(){return{type:"TSAnyKeyword"}}function JE(){return{type:"TSBooleanKeyword"}}function zE(){return{type:"TSBigIntKeyword"}}function QE(){return{type:"TSIntrinsicKeyword"}}function ZE(){return{type:"TSNeverKeyword"}}function eb(){return{type:"TSNullKeyword"}}function tb(){return{type:"TSNumberKeyword"}}function rb(){return{type:"TSObjectKeyword"}}function nb(){return{type:"TSStringKeyword"}}function ib(){return{type:"TSSymbolKeyword"}}function sb(){return{type:"TSUndefinedKeyword"}}function ab(){return{type:"TSUnknownKeyword"}}function ob(){return{type:"TSVoidKeyword"}}function ub(){return{type:"TSThisType"}}function lb(v=null,J,le=null){return(0,e.default)({type:"TSFunctionType",typeParameters:v,parameters:J,typeAnnotation:le})}function cb(v=null,J,le=null){return(0,e.default)({type:"TSConstructorType",typeParameters:v,parameters:J,typeAnnotation:le})}function fb(v,J=null){return(0,e.default)({type:"TSTypeReference",typeName:v,typeParameters:J})}function pb(v,J=null,le=null){return(0,e.default)({type:"TSTypePredicate",parameterName:v,typeAnnotation:J,asserts:le})}function hb(v,J=null){return(0,e.default)({type:"TSTypeQuery",exprName:v,typeParameters:J})}function db(v){return(0,e.default)({type:"TSTypeLiteral",members:v})}function mb(v){return(0,e.default)({type:"TSArrayType",elementType:v})}function yb(v){return(0,e.default)({type:"TSTupleType",elementTypes:v})}function Db(v){return(0,e.default)({type:"TSOptionalType",typeAnnotation:v})}function gb(v){return(0,e.default)({type:"TSRestType",typeAnnotation:v})}function Eb(v,J,le=!1){return(0,e.default)({type:"TSNamedTupleMember",label:v,elementType:J,optional:le})}function bb(v){return(0,e.default)({type:"TSUnionType",types:v})}function Tb(v){return(0,e.default)({type:"TSIntersectionType",types:v})}function Sb(v,J,le,we){return(0,e.default)({type:"TSConditionalType",checkType:v,extendsType:J,trueType:le,falseType:we})}function vb(v){return(0,e.default)({type:"TSInferType",typeParameter:v})}function Ab(v){return(0,e.default)({type:"TSParenthesizedType",typeAnnotation:v})}function Cb(v){return(0,e.default)({type:"TSTypeOperator",typeAnnotation:v,operator:null})}function Pb(v,J){return(0,e.default)({type:"TSIndexedAccessType",objectType:v,indexType:J})}function xb(v,J=null,le=null){return(0,e.default)({type:"TSMappedType",typeParameter:v,typeAnnotation:J,nameType:le})}function Fb(v){return(0,e.default)({type:"TSLiteralType",literal:v})}function _b(v,J=null){return(0,e.default)({type:"TSExpressionWithTypeArguments",expression:v,typeParameters:J})}function wb(v,J=null,le=null,we){return(0,e.default)({type:"TSInterfaceDeclaration",id:v,typeParameters:J,extends:le,body:we})}function Ib(v){return(0,e.default)({type:"TSInterfaceBody",body:v})}function Ob(v,J=null,le){return(0,e.default)({type:"TSTypeAliasDeclaration",id:v,typeParameters:J,typeAnnotation:le})}function Nb(v,J=null){return(0,e.default)({type:"TSInstantiationExpression",expression:v,typeParameters:J})}function Bb(v,J){return(0,e.default)({type:"TSAsExpression",expression:v,typeAnnotation:J})}function Lb(v,J){return(0,e.default)({type:"TSSatisfiesExpression",expression:v,typeAnnotation:J})}function kb(v,J){return(0,e.default)({type:"TSTypeAssertion",typeAnnotation:v,expression:J})}function Rb(v,J){return(0,e.default)({type:"TSEnumDeclaration",id:v,members:J})}function Mb(v,J=null){return(0,e.default)({type:"TSEnumMember",id:v,initializer:J})}function jb(v,J){return(0,e.default)({type:"TSModuleDeclaration",id:v,body:J})}function $b(v){return(0,e.default)({type:"TSModuleBlock",body:v})}function Ub(v,J=null,le=null){return(0,e.default)({type:"TSImportType",argument:v,qualifier:J,typeParameters:le})}function Vb(v,J){return(0,e.default)({type:"TSImportEqualsDeclaration",id:v,moduleReference:J,isExport:null})}function qb(v){return(0,e.default)({type:"TSExternalModuleReference",expression:v})}function Kb(v){return(0,e.default)({type:"TSNonNullExpression",expression:v})}function Wb(v){return(0,e.default)({type:"TSExportAssignment",expression:v})}function Hb(v){return(0,e.default)({type:"TSNamespaceExportDeclaration",id:v})}function Gb(v){return(0,e.default)({type:"TSTypeAnnotation",typeAnnotation:v})}function Yb(v){return(0,e.default)({type:"TSTypeParameterInstantiation",params:v})}function Xb(v){return(0,e.default)({type:"TSTypeParameterDeclaration",params:v})}function Jb(v=null,J=null,le){return(0,e.default)({type:"TSTypeParameter",constraint:v,default:J,name:le})}function zb(v){return(0,t.default)("NumberLiteral","NumericLiteral","The node type "),F(v)}function Qb(v,J=""){return(0,t.default)("RegexLiteral","RegExpLiteral","The node type "),B(v,J)}function Zb(v){return(0,t.default)("RestProperty","RestElement","The node type "),ne(v)}function eT(v){return(0,t.default)("SpreadProperty","SpreadElement","The node type "),qe(v)}return k}var $h;function Wk(){if($h)return Da;$h=1,Object.defineProperty(Da,"__esModule",{value:!0}),Da.default=r;var e=Ht(),t=Ge();function r(n,i){const s=n.value.split(/\r\n|\n|\r/);let a=0;for(let u=0;u<s.length;u++)/[^ \t]/.exec(s[u])&&(a=u);let o="";for(let u=0;u<s.length;u++){const l=s[u],c=u===0,f=u===s.length-1,p=u===a;let h=l.replace(/\t/g," ");c||(h=h.replace(/^ +/,"")),f||(h=h.replace(/ +$/,"")),h&&(p||(h+=" "),o+=h)}o&&i.push((0,t.inherits)((0,e.stringLiteral)(o),n))}return Da}var Uh;function Hk(){if(Uh)return ya;Uh=1,Object.defineProperty(ya,"__esModule",{value:!0}),ya.default=r;var e=M,t=Wk();function r(n){const i=[];for(let s=0;s<n.children.length;s++){let a=n.children[s];if((0,e.isJSXText)(a)){(0,t.default)(a,i);continue}(0,e.isJSXExpressionContainer)(a)&&(a=a.expression),!(0,e.isJSXEmptyExpression)(a)&&i.push(a)}return i}return ya}var rf={},Ro={};Object.defineProperty(Ro,"__esModule",{value:!0});Ro.default=Yk;var Gk=br();function Yk(e){return!!(e&&Gk.VISITOR_KEYS[e.type])}Object.defineProperty(rf,"__esModule",{value:!0});rf.default=Jk;var Xk=Ro;function Jk(e){if(!(0,Xk.default)(e)){var t;const r=(t=e==null?void 0:e.type)!=null?t:JSON.stringify(e);throw new TypeError(`Not a valid node of type "${r}"`)}}var U={};Object.defineProperty(U,"__esModule",{value:!0});U.assertAccessor=p4;U.assertAnyTypeAnnotation=OR;U.assertArgumentPlaceholder=oM;U.assertArrayExpression=Qk;U.assertArrayPattern=J6;U.assertArrayTypeAnnotation=NR;U.assertArrowFunctionExpression=z6;U.assertAssignmentExpression=Zk;U.assertAssignmentPattern=X6;U.assertAwaitExpression=bR;U.assertBigIntLiteral=SR;U.assertBinary=B9;U.assertBinaryExpression=e6;U.assertBindExpression=uM;U.assertBlock=R9;U.assertBlockParent=k9;U.assertBlockStatement=i6;U.assertBooleanLiteral=C6;U.assertBooleanLiteralTypeAnnotation=LR;U.assertBooleanTypeAnnotation=BR;U.assertBreakStatement=s6;U.assertCallExpression=a6;U.assertCatchClause=o6;U.assertClass=u4;U.assertClassAccessorProperty=xR;U.assertClassBody=Q6;U.assertClassDeclaration=eR;U.assertClassExpression=Z6;U.assertClassImplements=RR;U.assertClassMethod=pR;U.assertClassPrivateMethod=_R;U.assertClassPrivateProperty=FR;U.assertClassProperty=PR;U.assertCompletionStatement=$9;U.assertConditional=U9;U.assertConditionalExpression=u6;U.assertContinueStatement=l6;U.assertDebuggerStatement=c6;U.assertDecimalLiteral=mM;U.assertDeclaration=J9;U.assertDeclareClass=MR;U.assertDeclareExportAllDeclaration=GR;U.assertDeclareExportDeclaration=HR;U.assertDeclareFunction=jR;U.assertDeclareInterface=$R;U.assertDeclareModule=UR;U.assertDeclareModuleExports=VR;U.assertDeclareOpaqueType=KR;U.assertDeclareTypeAlias=qR;U.assertDeclareVariable=WR;U.assertDeclaredPredicate=YR;U.assertDecorator=cM;U.assertDirective=r6;U.assertDirectiveLiteral=n6;U.assertDoExpression=fM;U.assertDoWhileStatement=f6;U.assertEmptyStatement=p6;U.assertEmptyTypeAnnotation=s8;U.assertEnumBody=E4;U.assertEnumBooleanBody=N8;U.assertEnumBooleanMember=R8;U.assertEnumDeclaration=O8;U.assertEnumDefaultedMember=$8;U.assertEnumMember=b4;U.assertEnumNumberBody=B8;U.assertEnumNumberMember=M8;U.assertEnumStringBody=L8;U.assertEnumStringMember=j8;U.assertEnumSymbolBody=k8;U.assertExistsTypeAnnotation=XR;U.assertExportAllDeclaration=tR;U.assertExportDeclaration=c4;U.assertExportDefaultDeclaration=rR;U.assertExportDefaultSpecifier=pM;U.assertExportNamedDeclaration=nR;U.assertExportNamespaceSpecifier=vR;U.assertExportSpecifier=iR;U.assertExpression=N9;U.assertExpressionStatement=h6;U.assertExpressionWrapper=K9;U.assertFile=d6;U.assertFlow=d4;U.assertFlowBaseAnnotation=y4;U.assertFlowDeclaration=D4;U.assertFlowPredicate=g4;U.assertFlowType=m4;U.assertFor=W9;U.assertForInStatement=m6;U.assertForOfStatement=sR;U.assertForStatement=y6;U.assertForXStatement=H9;U.assertFunction=G9;U.assertFunctionDeclaration=D6;U.assertFunctionExpression=g6;U.assertFunctionParent=Y9;U.assertFunctionTypeAnnotation=JR;U.assertFunctionTypeParam=zR;U.assertGenericTypeAnnotation=QR;U.assertIdentifier=E6;U.assertIfStatement=b6;U.assertImmutable=t4;U.assertImport=TR;U.assertImportAttribute=lM;U.assertImportDeclaration=aR;U.assertImportDefaultSpecifier=oR;U.assertImportExpression=cR;U.assertImportNamespaceSpecifier=uR;U.assertImportOrExportDeclaration=l4;U.assertImportSpecifier=lR;U.assertIndexedAccessType=U8;U.assertInferredPredicate=ZR;U.assertInterfaceDeclaration=t8;U.assertInterfaceExtends=e8;U.assertInterfaceTypeAnnotation=r8;U.assertInterpreterDirective=t6;U.assertIntersectionTypeAnnotation=n8;U.assertJSX=T4;U.assertJSXAttribute=q8;U.assertJSXClosingElement=K8;U.assertJSXClosingFragment=nM;U.assertJSXElement=W8;U.assertJSXEmptyExpression=H8;U.assertJSXExpressionContainer=G8;U.assertJSXFragment=tM;U.assertJSXIdentifier=X8;U.assertJSXMemberExpression=J8;U.assertJSXNamespacedName=z8;U.assertJSXOpeningElement=Q8;U.assertJSXOpeningFragment=rM;U.assertJSXSpreadAttribute=Z8;U.assertJSXSpreadChild=Y8;U.assertJSXText=eM;U.assertLVal=Q9;U.assertLabeledStatement=T6;U.assertLiteral=e4;U.assertLogicalExpression=x6;U.assertLoop=V9;U.assertMemberExpression=F6;U.assertMetaProperty=fR;U.assertMethod=n4;U.assertMiscellaneous=S4;U.assertMixedTypeAnnotation=i8;U.assertModuleDeclaration=I4;U.assertModuleExpression=yM;U.assertModuleSpecifier=f4;U.assertNewExpression=_6;U.assertNoop=iM;U.assertNullLiteral=A6;U.assertNullLiteralTypeAnnotation=kR;U.assertNullableTypeAnnotation=a8;U.assertNumberLiteral=x4;U.assertNumberLiteralTypeAnnotation=o8;U.assertNumberTypeAnnotation=u8;U.assertNumericLiteral=v6;U.assertObjectExpression=I6;U.assertObjectMember=i4;U.assertObjectMethod=O6;U.assertObjectPattern=hR;U.assertObjectProperty=N6;U.assertObjectTypeAnnotation=l8;U.assertObjectTypeCallProperty=f8;U.assertObjectTypeIndexer=p8;U.assertObjectTypeInternalSlot=c8;U.assertObjectTypeProperty=h8;U.assertObjectTypeSpreadProperty=d8;U.assertOpaqueType=m8;U.assertOptionalCallExpression=CR;U.assertOptionalIndexedAccessType=V8;U.assertOptionalMemberExpression=AR;U.assertParenthesizedExpression=R6;U.assertPattern=o4;U.assertPatternLike=z9;U.assertPipelineBareFunction=EM;U.assertPipelinePrimaryTopicReference=bM;U.assertPipelineTopicExpression=gM;U.assertPlaceholder=sM;U.assertPrivate=h4;U.assertPrivateName=wR;U.assertProgram=w6;U.assertProperty=s4;U.assertPureish=X9;U.assertQualifiedTypeIdentifier=y8;U.assertRecordExpression=hM;U.assertRegExpLiteral=P6;U.assertRegexLiteral=F4;U.assertRestElement=B6;U.assertRestProperty=_4;U.assertReturnStatement=L6;U.assertScopable=L9;U.assertSequenceExpression=k6;U.assertSpreadElement=dR;U.assertSpreadProperty=w4;U.assertStandardized=O9;U.assertStatement=M9;U.assertStaticBlock=IR;U.assertStringLiteral=S6;U.assertStringLiteralTypeAnnotation=D8;U.assertStringTypeAnnotation=g8;U.assertSuper=mR;U.assertSwitchCase=M6;U.assertSwitchStatement=j6;U.assertSymbolTypeAnnotation=E8;U.assertTSAnyKeyword=wM;U.assertTSArrayType=JM;U.assertTSAsExpression=m9;U.assertTSBaseType=P4;U.assertTSBigIntKeyword=OM;U.assertTSBooleanKeyword=IM;U.assertTSCallSignatureDeclaration=CM;U.assertTSConditionalType=n9;U.assertTSConstructSignatureDeclaration=PM;U.assertTSConstructorType=WM;U.assertTSDeclareFunction=SM;U.assertTSDeclareMethod=vM;U.assertTSEntityName=Z9;U.assertTSEnumDeclaration=g9;U.assertTSEnumMember=E9;U.assertTSExportAssignment=P9;U.assertTSExpressionWithTypeArguments=c9;U.assertTSExternalModuleReference=A9;U.assertTSFunctionType=KM;U.assertTSImportEqualsDeclaration=v9;U.assertTSImportType=S9;U.assertTSIndexSignature=_M;U.assertTSIndexedAccessType=o9;U.assertTSInferType=i9;U.assertTSInstantiationExpression=d9;U.assertTSInterfaceBody=p9;U.assertTSInterfaceDeclaration=f9;U.assertTSIntersectionType=r9;U.assertTSIntrinsicKeyword=NM;U.assertTSLiteralType=l9;U.assertTSMappedType=u9;U.assertTSMethodSignature=FM;U.assertTSModuleBlock=T9;U.assertTSModuleDeclaration=b9;U.assertTSNamedTupleMember=e9;U.assertTSNamespaceExportDeclaration=x9;U.assertTSNeverKeyword=BM;U.assertTSNonNullExpression=C9;U.assertTSNullKeyword=LM;U.assertTSNumberKeyword=kM;U.assertTSObjectKeyword=RM;U.assertTSOptionalType=QM;U.assertTSParameterProperty=TM;U.assertTSParenthesizedType=s9;U.assertTSPropertySignature=xM;U.assertTSQualifiedName=AM;U.assertTSRestType=ZM;U.assertTSSatisfiesExpression=y9;U.assertTSStringKeyword=MM;U.assertTSSymbolKeyword=jM;U.assertTSThisType=qM;U.assertTSTupleType=zM;U.assertTSType=C4;U.assertTSTypeAliasDeclaration=h9;U.assertTSTypeAnnotation=F9;U.assertTSTypeAssertion=D9;U.assertTSTypeElement=A4;U.assertTSTypeLiteral=XM;U.assertTSTypeOperator=a9;U.assertTSTypeParameter=I9;U.assertTSTypeParameterDeclaration=w9;U.assertTSTypeParameterInstantiation=_9;U.assertTSTypePredicate=GM;U.assertTSTypeQuery=YM;U.assertTSTypeReference=HM;U.assertTSUndefinedKeyword=$M;U.assertTSUnionType=t9;U.assertTSUnknownKeyword=UM;U.assertTSVoidKeyword=VM;U.assertTaggedTemplateExpression=yR;U.assertTemplateElement=DR;U.assertTemplateLiteral=gR;U.assertTerminatorless=j9;U.assertThisExpression=$6;U.assertThisTypeAnnotation=b8;U.assertThrowStatement=U6;U.assertTopicReference=DM;U.assertTryStatement=V6;U.assertTupleExpression=dM;U.assertTupleTypeAnnotation=T8;U.assertTypeAlias=v8;U.assertTypeAnnotation=A8;U.assertTypeCastExpression=C8;U.assertTypeParameter=P8;U.assertTypeParameterDeclaration=x8;U.assertTypeParameterInstantiation=F8;U.assertTypeScript=v4;U.assertTypeofTypeAnnotation=S8;U.assertUnaryExpression=q6;U.assertUnaryLike=a4;U.assertUnionTypeAnnotation=_8;U.assertUpdateExpression=K6;U.assertUserWhitespacable=r4;U.assertV8IntrinsicIdentifier=aM;U.assertVariableDeclaration=W6;U.assertVariableDeclarator=H6;U.assertVariance=w8;U.assertVoidTypeAnnotation=I8;U.assertWhile=q9;U.assertWhileStatement=G6;U.assertWithStatement=Y6;U.assertYieldExpression=ER;var zk=$s(),Ks=Vi;function q(e,t,r){if(!(0,zk.default)(e,t,r))throw new Error(`Expected type "${e}" with option ${JSON.stringify(r)}, but instead got "${t.type}".`)}function Qk(e,t){q("ArrayExpression",e,t)}function Zk(e,t){q("AssignmentExpression",e,t)}function e6(e,t){q("BinaryExpression",e,t)}function t6(e,t){q("InterpreterDirective",e,t)}function r6(e,t){q("Directive",e,t)}function n6(e,t){q("DirectiveLiteral",e,t)}function i6(e,t){q("BlockStatement",e,t)}function s6(e,t){q("BreakStatement",e,t)}function a6(e,t){q("CallExpression",e,t)}function o6(e,t){q("CatchClause",e,t)}function u6(e,t){q("ConditionalExpression",e,t)}function l6(e,t){q("ContinueStatement",e,t)}function c6(e,t){q("DebuggerStatement",e,t)}function f6(e,t){q("DoWhileStatement",e,t)}function p6(e,t){q("EmptyStatement",e,t)}function h6(e,t){q("ExpressionStatement",e,t)}function d6(e,t){q("File",e,t)}function m6(e,t){q("ForInStatement",e,t)}function y6(e,t){q("ForStatement",e,t)}function D6(e,t){q("FunctionDeclaration",e,t)}function g6(e,t){q("FunctionExpression",e,t)}function E6(e,t){q("Identifier",e,t)}function b6(e,t){q("IfStatement",e,t)}function T6(e,t){q("LabeledStatement",e,t)}function S6(e,t){q("StringLiteral",e,t)}function v6(e,t){q("NumericLiteral",e,t)}function A6(e,t){q("NullLiteral",e,t)}function C6(e,t){q("BooleanLiteral",e,t)}function P6(e,t){q("RegExpLiteral",e,t)}function x6(e,t){q("LogicalExpression",e,t)}function F6(e,t){q("MemberExpression",e,t)}function _6(e,t){q("NewExpression",e,t)}function w6(e,t){q("Program",e,t)}function I6(e,t){q("ObjectExpression",e,t)}function O6(e,t){q("ObjectMethod",e,t)}function N6(e,t){q("ObjectProperty",e,t)}function B6(e,t){q("RestElement",e,t)}function L6(e,t){q("ReturnStatement",e,t)}function k6(e,t){q("SequenceExpression",e,t)}function R6(e,t){q("ParenthesizedExpression",e,t)}function M6(e,t){q("SwitchCase",e,t)}function j6(e,t){q("SwitchStatement",e,t)}function $6(e,t){q("ThisExpression",e,t)}function U6(e,t){q("ThrowStatement",e,t)}function V6(e,t){q("TryStatement",e,t)}function q6(e,t){q("UnaryExpression",e,t)}function K6(e,t){q("UpdateExpression",e,t)}function W6(e,t){q("VariableDeclaration",e,t)}function H6(e,t){q("VariableDeclarator",e,t)}function G6(e,t){q("WhileStatement",e,t)}function Y6(e,t){q("WithStatement",e,t)}function X6(e,t){q("AssignmentPattern",e,t)}function J6(e,t){q("ArrayPattern",e,t)}function z6(e,t){q("ArrowFunctionExpression",e,t)}function Q6(e,t){q("ClassBody",e,t)}function Z6(e,t){q("ClassExpression",e,t)}function eR(e,t){q("ClassDeclaration",e,t)}function tR(e,t){q("ExportAllDeclaration",e,t)}function rR(e,t){q("ExportDefaultDeclaration",e,t)}function nR(e,t){q("ExportNamedDeclaration",e,t)}function iR(e,t){q("ExportSpecifier",e,t)}function sR(e,t){q("ForOfStatement",e,t)}function aR(e,t){q("ImportDeclaration",e,t)}function oR(e,t){q("ImportDefaultSpecifier",e,t)}function uR(e,t){q("ImportNamespaceSpecifier",e,t)}function lR(e,t){q("ImportSpecifier",e,t)}function cR(e,t){q("ImportExpression",e,t)}function fR(e,t){q("MetaProperty",e,t)}function pR(e,t){q("ClassMethod",e,t)}function hR(e,t){q("ObjectPattern",e,t)}function dR(e,t){q("SpreadElement",e,t)}function mR(e,t){q("Super",e,t)}function yR(e,t){q("TaggedTemplateExpression",e,t)}function DR(e,t){q("TemplateElement",e,t)}function gR(e,t){q("TemplateLiteral",e,t)}function ER(e,t){q("YieldExpression",e,t)}function bR(e,t){q("AwaitExpression",e,t)}function TR(e,t){q("Import",e,t)}function SR(e,t){q("BigIntLiteral",e,t)}function vR(e,t){q("ExportNamespaceSpecifier",e,t)}function AR(e,t){q("OptionalMemberExpression",e,t)}function CR(e,t){q("OptionalCallExpression",e,t)}function PR(e,t){q("ClassProperty",e,t)}function xR(e,t){q("ClassAccessorProperty",e,t)}function FR(e,t){q("ClassPrivateProperty",e,t)}function _R(e,t){q("ClassPrivateMethod",e,t)}function wR(e,t){q("PrivateName",e,t)}function IR(e,t){q("StaticBlock",e,t)}function OR(e,t){q("AnyTypeAnnotation",e,t)}function NR(e,t){q("ArrayTypeAnnotation",e,t)}function BR(e,t){q("BooleanTypeAnnotation",e,t)}function LR(e,t){q("BooleanLiteralTypeAnnotation",e,t)}function kR(e,t){q("NullLiteralTypeAnnotation",e,t)}function RR(e,t){q("ClassImplements",e,t)}function MR(e,t){q("DeclareClass",e,t)}function jR(e,t){q("DeclareFunction",e,t)}function $R(e,t){q("DeclareInterface",e,t)}function UR(e,t){q("DeclareModule",e,t)}function VR(e,t){q("DeclareModuleExports",e,t)}function qR(e,t){q("DeclareTypeAlias",e,t)}function KR(e,t){q("DeclareOpaqueType",e,t)}function WR(e,t){q("DeclareVariable",e,t)}function HR(e,t){q("DeclareExportDeclaration",e,t)}function GR(e,t){q("DeclareExportAllDeclaration",e,t)}function YR(e,t){q("DeclaredPredicate",e,t)}function XR(e,t){q("ExistsTypeAnnotation",e,t)}function JR(e,t){q("FunctionTypeAnnotation",e,t)}function zR(e,t){q("FunctionTypeParam",e,t)}function QR(e,t){q("GenericTypeAnnotation",e,t)}function ZR(e,t){q("InferredPredicate",e,t)}function e8(e,t){q("InterfaceExtends",e,t)}function t8(e,t){q("InterfaceDeclaration",e,t)}function r8(e,t){q("InterfaceTypeAnnotation",e,t)}function n8(e,t){q("IntersectionTypeAnnotation",e,t)}function i8(e,t){q("MixedTypeAnnotation",e,t)}function s8(e,t){q("EmptyTypeAnnotation",e,t)}function a8(e,t){q("NullableTypeAnnotation",e,t)}function o8(e,t){q("NumberLiteralTypeAnnotation",e,t)}function u8(e,t){q("NumberTypeAnnotation",e,t)}function l8(e,t){q("ObjectTypeAnnotation",e,t)}function c8(e,t){q("ObjectTypeInternalSlot",e,t)}function f8(e,t){q("ObjectTypeCallProperty",e,t)}function p8(e,t){q("ObjectTypeIndexer",e,t)}function h8(e,t){q("ObjectTypeProperty",e,t)}function d8(e,t){q("ObjectTypeSpreadProperty",e,t)}function m8(e,t){q("OpaqueType",e,t)}function y8(e,t){q("QualifiedTypeIdentifier",e,t)}function D8(e,t){q("StringLiteralTypeAnnotation",e,t)}function g8(e,t){q("StringTypeAnnotation",e,t)}function E8(e,t){q("SymbolTypeAnnotation",e,t)}function b8(e,t){q("ThisTypeAnnotation",e,t)}function T8(e,t){q("TupleTypeAnnotation",e,t)}function S8(e,t){q("TypeofTypeAnnotation",e,t)}function v8(e,t){q("TypeAlias",e,t)}function A8(e,t){q("TypeAnnotation",e,t)}function C8(e,t){q("TypeCastExpression",e,t)}function P8(e,t){q("TypeParameter",e,t)}function x8(e,t){q("TypeParameterDeclaration",e,t)}function F8(e,t){q("TypeParameterInstantiation",e,t)}function _8(e,t){q("UnionTypeAnnotation",e,t)}function w8(e,t){q("Variance",e,t)}function I8(e,t){q("VoidTypeAnnotation",e,t)}function O8(e,t){q("EnumDeclaration",e,t)}function N8(e,t){q("EnumBooleanBody",e,t)}function B8(e,t){q("EnumNumberBody",e,t)}function L8(e,t){q("EnumStringBody",e,t)}function k8(e,t){q("EnumSymbolBody",e,t)}function R8(e,t){q("EnumBooleanMember",e,t)}function M8(e,t){q("EnumNumberMember",e,t)}function j8(e,t){q("EnumStringMember",e,t)}function $8(e,t){q("EnumDefaultedMember",e,t)}function U8(e,t){q("IndexedAccessType",e,t)}function V8(e,t){q("OptionalIndexedAccessType",e,t)}function q8(e,t){q("JSXAttribute",e,t)}function K8(e,t){q("JSXClosingElement",e,t)}function W8(e,t){q("JSXElement",e,t)}function H8(e,t){q("JSXEmptyExpression",e,t)}function G8(e,t){q("JSXExpressionContainer",e,t)}function Y8(e,t){q("JSXSpreadChild",e,t)}function X8(e,t){q("JSXIdentifier",e,t)}function J8(e,t){q("JSXMemberExpression",e,t)}function z8(e,t){q("JSXNamespacedName",e,t)}function Q8(e,t){q("JSXOpeningElement",e,t)}function Z8(e,t){q("JSXSpreadAttribute",e,t)}function eM(e,t){q("JSXText",e,t)}function tM(e,t){q("JSXFragment",e,t)}function rM(e,t){q("JSXOpeningFragment",e,t)}function nM(e,t){q("JSXClosingFragment",e,t)}function iM(e,t){q("Noop",e,t)}function sM(e,t){q("Placeholder",e,t)}function aM(e,t){q("V8IntrinsicIdentifier",e,t)}function oM(e,t){q("ArgumentPlaceholder",e,t)}function uM(e,t){q("BindExpression",e,t)}function lM(e,t){q("ImportAttribute",e,t)}function cM(e,t){q("Decorator",e,t)}function fM(e,t){q("DoExpression",e,t)}function pM(e,t){q("ExportDefaultSpecifier",e,t)}function hM(e,t){q("RecordExpression",e,t)}function dM(e,t){q("TupleExpression",e,t)}function mM(e,t){q("DecimalLiteral",e,t)}function yM(e,t){q("ModuleExpression",e,t)}function DM(e,t){q("TopicReference",e,t)}function gM(e,t){q("PipelineTopicExpression",e,t)}function EM(e,t){q("PipelineBareFunction",e,t)}function bM(e,t){q("PipelinePrimaryTopicReference",e,t)}function TM(e,t){q("TSParameterProperty",e,t)}function SM(e,t){q("TSDeclareFunction",e,t)}function vM(e,t){q("TSDeclareMethod",e,t)}function AM(e,t){q("TSQualifiedName",e,t)}function CM(e,t){q("TSCallSignatureDeclaration",e,t)}function PM(e,t){q("TSConstructSignatureDeclaration",e,t)}function xM(e,t){q("TSPropertySignature",e,t)}function FM(e,t){q("TSMethodSignature",e,t)}function _M(e,t){q("TSIndexSignature",e,t)}function wM(e,t){q("TSAnyKeyword",e,t)}function IM(e,t){q("TSBooleanKeyword",e,t)}function OM(e,t){q("TSBigIntKeyword",e,t)}function NM(e,t){q("TSIntrinsicKeyword",e,t)}function BM(e,t){q("TSNeverKeyword",e,t)}function LM(e,t){q("TSNullKeyword",e,t)}function kM(e,t){q("TSNumberKeyword",e,t)}function RM(e,t){q("TSObjectKeyword",e,t)}function MM(e,t){q("TSStringKeyword",e,t)}function jM(e,t){q("TSSymbolKeyword",e,t)}function $M(e,t){q("TSUndefinedKeyword",e,t)}function UM(e,t){q("TSUnknownKeyword",e,t)}function VM(e,t){q("TSVoidKeyword",e,t)}function qM(e,t){q("TSThisType",e,t)}function KM(e,t){q("TSFunctionType",e,t)}function WM(e,t){q("TSConstructorType",e,t)}function HM(e,t){q("TSTypeReference",e,t)}function GM(e,t){q("TSTypePredicate",e,t)}function YM(e,t){q("TSTypeQuery",e,t)}function XM(e,t){q("TSTypeLiteral",e,t)}function JM(e,t){q("TSArrayType",e,t)}function zM(e,t){q("TSTupleType",e,t)}function QM(e,t){q("TSOptionalType",e,t)}function ZM(e,t){q("TSRestType",e,t)}function e9(e,t){q("TSNamedTupleMember",e,t)}function t9(e,t){q("TSUnionType",e,t)}function r9(e,t){q("TSIntersectionType",e,t)}function n9(e,t){q("TSConditionalType",e,t)}function i9(e,t){q("TSInferType",e,t)}function s9(e,t){q("TSParenthesizedType",e,t)}function a9(e,t){q("TSTypeOperator",e,t)}function o9(e,t){q("TSIndexedAccessType",e,t)}function u9(e,t){q("TSMappedType",e,t)}function l9(e,t){q("TSLiteralType",e,t)}function c9(e,t){q("TSExpressionWithTypeArguments",e,t)}function f9(e,t){q("TSInterfaceDeclaration",e,t)}function p9(e,t){q("TSInterfaceBody",e,t)}function h9(e,t){q("TSTypeAliasDeclaration",e,t)}function d9(e,t){q("TSInstantiationExpression",e,t)}function m9(e,t){q("TSAsExpression",e,t)}function y9(e,t){q("TSSatisfiesExpression",e,t)}function D9(e,t){q("TSTypeAssertion",e,t)}function g9(e,t){q("TSEnumDeclaration",e,t)}function E9(e,t){q("TSEnumMember",e,t)}function b9(e,t){q("TSModuleDeclaration",e,t)}function T9(e,t){q("TSModuleBlock",e,t)}function S9(e,t){q("TSImportType",e,t)}function v9(e,t){q("TSImportEqualsDeclaration",e,t)}function A9(e,t){q("TSExternalModuleReference",e,t)}function C9(e,t){q("TSNonNullExpression",e,t)}function P9(e,t){q("TSExportAssignment",e,t)}function x9(e,t){q("TSNamespaceExportDeclaration",e,t)}function F9(e,t){q("TSTypeAnnotation",e,t)}function _9(e,t){q("TSTypeParameterInstantiation",e,t)}function w9(e,t){q("TSTypeParameterDeclaration",e,t)}function I9(e,t){q("TSTypeParameter",e,t)}function O9(e,t){q("Standardized",e,t)}function N9(e,t){q("Expression",e,t)}function B9(e,t){q("Binary",e,t)}function L9(e,t){q("Scopable",e,t)}function k9(e,t){q("BlockParent",e,t)}function R9(e,t){q("Block",e,t)}function M9(e,t){q("Statement",e,t)}function j9(e,t){q("Terminatorless",e,t)}function $9(e,t){q("CompletionStatement",e,t)}function U9(e,t){q("Conditional",e,t)}function V9(e,t){q("Loop",e,t)}function q9(e,t){q("While",e,t)}function K9(e,t){q("ExpressionWrapper",e,t)}function W9(e,t){q("For",e,t)}function H9(e,t){q("ForXStatement",e,t)}function G9(e,t){q("Function",e,t)}function Y9(e,t){q("FunctionParent",e,t)}function X9(e,t){q("Pureish",e,t)}function J9(e,t){q("Declaration",e,t)}function z9(e,t){q("PatternLike",e,t)}function Q9(e,t){q("LVal",e,t)}function Z9(e,t){q("TSEntityName",e,t)}function e4(e,t){q("Literal",e,t)}function t4(e,t){q("Immutable",e,t)}function r4(e,t){q("UserWhitespacable",e,t)}function n4(e,t){q("Method",e,t)}function i4(e,t){q("ObjectMember",e,t)}function s4(e,t){q("Property",e,t)}function a4(e,t){q("UnaryLike",e,t)}function o4(e,t){q("Pattern",e,t)}function u4(e,t){q("Class",e,t)}function l4(e,t){q("ImportOrExportDeclaration",e,t)}function c4(e,t){q("ExportDeclaration",e,t)}function f4(e,t){q("ModuleSpecifier",e,t)}function p4(e,t){q("Accessor",e,t)}function h4(e,t){q("Private",e,t)}function d4(e,t){q("Flow",e,t)}function m4(e,t){q("FlowType",e,t)}function y4(e,t){q("FlowBaseAnnotation",e,t)}function D4(e,t){q("FlowDeclaration",e,t)}function g4(e,t){q("FlowPredicate",e,t)}function E4(e,t){q("EnumBody",e,t)}function b4(e,t){q("EnumMember",e,t)}function T4(e,t){q("JSX",e,t)}function S4(e,t){q("Miscellaneous",e,t)}function v4(e,t){q("TypeScript",e,t)}function A4(e,t){q("TSTypeElement",e,t)}function C4(e,t){q("TSType",e,t)}function P4(e,t){q("TSBaseType",e,t)}function x4(e,t){(0,Ks.default)("assertNumberLiteral","assertNumericLiteral"),q("NumberLiteral",e,t)}function F4(e,t){(0,Ks.default)("assertRegexLiteral","assertRegExpLiteral"),q("RegexLiteral",e,t)}function _4(e,t){(0,Ks.default)("assertRestProperty","assertRestElement"),q("RestProperty",e,t)}function w4(e,t){(0,Ks.default)("assertSpreadProperty","assertSpreadElement"),q("SpreadProperty",e,t)}function I4(e,t){(0,Ks.default)("assertModuleDeclaration","assertImportOrExportDeclaration"),q("ModuleDeclaration",e,t)}var rs={},Vh;function O4(){if(Vh)return rs;Vh=1,Object.defineProperty(rs,"__esModule",{value:!0}),rs.default=void 0;var e=Ht();rs.default=t;function t(r){switch(r){case"string":return(0,e.stringTypeAnnotation)();case"number":return(0,e.numberTypeAnnotation)();case"undefined":return(0,e.voidTypeAnnotation)();case"boolean":return(0,e.booleanTypeAnnotation)();case"function":return(0,e.genericTypeAnnotation)((0,e.identifier)("Function"));case"object":return(0,e.genericTypeAnnotation)((0,e.identifier)("Object"));case"symbol":return(0,e.genericTypeAnnotation)((0,e.identifier)("Symbol"));case"bigint":return(0,e.anyTypeAnnotation)()}throw new Error("Invalid typeof value: "+r)}return rs}var va={},Mo={};Object.defineProperty(Mo,"__esModule",{value:!0});Mo.default=nD;var ps=M;function rD(e){return(0,ps.isIdentifier)(e)?e.name:`${e.id.name}.${rD(e.qualification)}`}function nD(e){const t=Array.from(e),r=new Map,n=new Map,i=new Set,s=[];for(let a=0;a<t.length;a++){const o=t[a];if(o&&!s.includes(o)){if((0,ps.isAnyTypeAnnotation)(o))return[o];if((0,ps.isFlowBaseAnnotation)(o)){n.set(o.type,o);continue}if((0,ps.isUnionTypeAnnotation)(o)){i.has(o.types)||(t.push(...o.types),i.add(o.types));continue}if((0,ps.isGenericTypeAnnotation)(o)){const u=rD(o.id);if(r.has(u)){let l=r.get(u);l.typeParameters?o.typeParameters&&(l.typeParameters.params.push(...o.typeParameters.params),l.typeParameters.params=nD(l.typeParameters.params)):l=o.typeParameters}else r.set(u,o);continue}s.push(o)}}for(const[,a]of n)s.push(a);for(const[,a]of r)s.push(a);return s}var qh;function N4(){if(qh)return va;qh=1,Object.defineProperty(va,"__esModule",{value:!0}),va.default=r;var e=Ht(),t=Mo;function r(n){const i=(0,t.default)(n);return i.length===1?i[0]:(0,e.unionTypeAnnotation)(i)}return va}var Aa={},nf={};Object.defineProperty(nf,"__esModule",{value:!0});nf.default=sD;var hs=M;function iD(e){return(0,hs.isIdentifier)(e)?e.name:`${e.right.name}.${iD(e.left)}`}function sD(e){const t=Array.from(e),r=new Map,n=new Map,i=new Set,s=[];for(let a=0;a<t.length;a++){const o=t[a];if(o&&!s.includes(o)){if((0,hs.isTSAnyKeyword)(o))return[o];if((0,hs.isTSBaseType)(o)){n.set(o.type,o);continue}if((0,hs.isTSUnionType)(o)){i.has(o.types)||(t.push(...o.types),i.add(o.types));continue}if((0,hs.isTSTypeReference)(o)&&o.typeParameters){const u=iD(o.typeName);if(r.has(u)){let l=r.get(u);l.typeParameters?o.typeParameters&&(l.typeParameters.params.push(...o.typeParameters.params),l.typeParameters.params=sD(l.typeParameters.params)):l=o.typeParameters}else r.set(u,o);continue}s.push(o)}}for(const[,a]of n)s.push(a);for(const[,a]of r)s.push(a);return s}var Kh;function B4(){if(Kh)return Aa;Kh=1,Object.defineProperty(Aa,"__esModule",{value:!0}),Aa.default=n;var e=Ht(),t=nf,r=M;function n(i){const s=i.map(o=>(0,r.isTSTypeAnnotation)(o)?o.typeAnnotation:o),a=(0,t.default)(s);return a.length===1?a[0]:(0,e.tsUnionType)(a)}return Aa}var Gu={},Wh;function L4(){return Wh||(Wh=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"AnyTypeAnnotation",{enumerable:!0,get:function(){return t.anyTypeAnnotation}}),Object.defineProperty(e,"ArgumentPlaceholder",{enumerable:!0,get:function(){return t.argumentPlaceholder}}),Object.defineProperty(e,"ArrayExpression",{enumerable:!0,get:function(){return t.arrayExpression}}),Object.defineProperty(e,"ArrayPattern",{enumerable:!0,get:function(){return t.arrayPattern}}),Object.defineProperty(e,"ArrayTypeAnnotation",{enumerable:!0,get:function(){return t.arrayTypeAnnotation}}),Object.defineProperty(e,"ArrowFunctionExpression",{enumerable:!0,get:function(){return t.arrowFunctionExpression}}),Object.defineProperty(e,"AssignmentExpression",{enumerable:!0,get:function(){return t.assignmentExpression}}),Object.defineProperty(e,"AssignmentPattern",{enumerable:!0,get:function(){return t.assignmentPattern}}),Object.defineProperty(e,"AwaitExpression",{enumerable:!0,get:function(){return t.awaitExpression}}),Object.defineProperty(e,"BigIntLiteral",{enumerable:!0,get:function(){return t.bigIntLiteral}}),Object.defineProperty(e,"BinaryExpression",{enumerable:!0,get:function(){return t.binaryExpression}}),Object.defineProperty(e,"BindExpression",{enumerable:!0,get:function(){return t.bindExpression}}),Object.defineProperty(e,"BlockStatement",{enumerable:!0,get:function(){return t.blockStatement}}),Object.defineProperty(e,"BooleanLiteral",{enumerable:!0,get:function(){return t.booleanLiteral}}),Object.defineProperty(e,"BooleanLiteralTypeAnnotation",{enumerable:!0,get:function(){return t.booleanLiteralTypeAnnotation}}),Object.defineProperty(e,"BooleanTypeAnnotation",{enumerable:!0,get:function(){return t.booleanTypeAnnotation}}),Object.defineProperty(e,"BreakStatement",{enumerable:!0,get:function(){return t.breakStatement}}),Object.defineProperty(e,"CallExpression",{enumerable:!0,get:function(){return t.callExpression}}),Object.defineProperty(e,"CatchClause",{enumerable:!0,get:function(){return t.catchClause}}),Object.defineProperty(e,"ClassAccessorProperty",{enumerable:!0,get:function(){return t.classAccessorProperty}}),Object.defineProperty(e,"ClassBody",{enumerable:!0,get:function(){return t.classBody}}),Object.defineProperty(e,"ClassDeclaration",{enumerable:!0,get:function(){return t.classDeclaration}}),Object.defineProperty(e,"ClassExpression",{enumerable:!0,get:function(){return t.classExpression}}),Object.defineProperty(e,"ClassImplements",{enumerable:!0,get:function(){return t.classImplements}}),Object.defineProperty(e,"ClassMethod",{enumerable:!0,get:function(){return t.classMethod}}),Object.defineProperty(e,"ClassPrivateMethod",{enumerable:!0,get:function(){return t.classPrivateMethod}}),Object.defineProperty(e,"ClassPrivateProperty",{enumerable:!0,get:function(){return t.classPrivateProperty}}),Object.defineProperty(e,"ClassProperty",{enumerable:!0,get:function(){return t.classProperty}}),Object.defineProperty(e,"ConditionalExpression",{enumerable:!0,get:function(){return t.conditionalExpression}}),Object.defineProperty(e,"ContinueStatement",{enumerable:!0,get:function(){return t.continueStatement}}),Object.defineProperty(e,"DebuggerStatement",{enumerable:!0,get:function(){return t.debuggerStatement}}),Object.defineProperty(e,"DecimalLiteral",{enumerable:!0,get:function(){return t.decimalLiteral}}),Object.defineProperty(e,"DeclareClass",{enumerable:!0,get:function(){return t.declareClass}}),Object.defineProperty(e,"DeclareExportAllDeclaration",{enumerable:!0,get:function(){return t.declareExportAllDeclaration}}),Object.defineProperty(e,"DeclareExportDeclaration",{enumerable:!0,get:function(){return t.declareExportDeclaration}}),Object.defineProperty(e,"DeclareFunction",{enumerable:!0,get:function(){return t.declareFunction}}),Object.defineProperty(e,"DeclareInterface",{enumerable:!0,get:function(){return t.declareInterface}}),Object.defineProperty(e,"DeclareModule",{enumerable:!0,get:function(){return t.declareModule}}),Object.defineProperty(e,"DeclareModuleExports",{enumerable:!0,get:function(){return t.declareModuleExports}}),Object.defineProperty(e,"DeclareOpaqueType",{enumerable:!0,get:function(){return t.declareOpaqueType}}),Object.defineProperty(e,"DeclareTypeAlias",{enumerable:!0,get:function(){return t.declareTypeAlias}}),Object.defineProperty(e,"DeclareVariable",{enumerable:!0,get:function(){return t.declareVariable}}),Object.defineProperty(e,"DeclaredPredicate",{enumerable:!0,get:function(){return t.declaredPredicate}}),Object.defineProperty(e,"Decorator",{enumerable:!0,get:function(){return t.decorator}}),Object.defineProperty(e,"Directive",{enumerable:!0,get:function(){return t.directive}}),Object.defineProperty(e,"DirectiveLiteral",{enumerable:!0,get:function(){return t.directiveLiteral}}),Object.defineProperty(e,"DoExpression",{enumerable:!0,get:function(){return t.doExpression}}),Object.defineProperty(e,"DoWhileStatement",{enumerable:!0,get:function(){return t.doWhileStatement}}),Object.defineProperty(e,"EmptyStatement",{enumerable:!0,get:function(){return t.emptyStatement}}),Object.defineProperty(e,"EmptyTypeAnnotation",{enumerable:!0,get:function(){return t.emptyTypeAnnotation}}),Object.defineProperty(e,"EnumBooleanBody",{enumerable:!0,get:function(){return t.enumBooleanBody}}),Object.defineProperty(e,"EnumBooleanMember",{enumerable:!0,get:function(){return t.enumBooleanMember}}),Object.defineProperty(e,"EnumDeclaration",{enumerable:!0,get:function(){return t.enumDeclaration}}),Object.defineProperty(e,"EnumDefaultedMember",{enumerable:!0,get:function(){return t.enumDefaultedMember}}),Object.defineProperty(e,"EnumNumberBody",{enumerable:!0,get:function(){return t.enumNumberBody}}),Object.defineProperty(e,"EnumNumberMember",{enumerable:!0,get:function(){return t.enumNumberMember}}),Object.defineProperty(e,"EnumStringBody",{enumerable:!0,get:function(){return t.enumStringBody}}),Object.defineProperty(e,"EnumStringMember",{enumerable:!0,get:function(){return t.enumStringMember}}),Object.defineProperty(e,"EnumSymbolBody",{enumerable:!0,get:function(){return t.enumSymbolBody}}),Object.defineProperty(e,"ExistsTypeAnnotation",{enumerable:!0,get:function(){return t.existsTypeAnnotation}}),Object.defineProperty(e,"ExportAllDeclaration",{enumerable:!0,get:function(){return t.exportAllDeclaration}}),Object.defineProperty(e,"ExportDefaultDeclaration",{enumerable:!0,get:function(){return t.exportDefaultDeclaration}}),Object.defineProperty(e,"ExportDefaultSpecifier",{enumerable:!0,get:function(){return t.exportDefaultSpecifier}}),Object.defineProperty(e,"ExportNamedDeclaration",{enumerable:!0,get:function(){return t.exportNamedDeclaration}}),Object.defineProperty(e,"ExportNamespaceSpecifier",{enumerable:!0,get:function(){return t.exportNamespaceSpecifier}}),Object.defineProperty(e,"ExportSpecifier",{enumerable:!0,get:function(){return t.exportSpecifier}}),Object.defineProperty(e,"ExpressionStatement",{enumerable:!0,get:function(){return t.expressionStatement}}),Object.defineProperty(e,"File",{enumerable:!0,get:function(){return t.file}}),Object.defineProperty(e,"ForInStatement",{enumerable:!0,get:function(){return t.forInStatement}}),Object.defineProperty(e,"ForOfStatement",{enumerable:!0,get:function(){return t.forOfStatement}}),Object.defineProperty(e,"ForStatement",{enumerable:!0,get:function(){return t.forStatement}}),Object.defineProperty(e,"FunctionDeclaration",{enumerable:!0,get:function(){return t.functionDeclaration}}),Object.defineProperty(e,"FunctionExpression",{enumerable:!0,get:function(){return t.functionExpression}}),Object.defineProperty(e,"FunctionTypeAnnotation",{enumerable:!0,get:function(){return t.functionTypeAnnotation}}),Object.defineProperty(e,"FunctionTypeParam",{enumerable:!0,get:function(){return t.functionTypeParam}}),Object.defineProperty(e,"GenericTypeAnnotation",{enumerable:!0,get:function(){return t.genericTypeAnnotation}}),Object.defineProperty(e,"Identifier",{enumerable:!0,get:function(){return t.identifier}}),Object.defineProperty(e,"IfStatement",{enumerable:!0,get:function(){return t.ifStatement}}),Object.defineProperty(e,"Import",{enumerable:!0,get:function(){return t.import}}),Object.defineProperty(e,"ImportAttribute",{enumerable:!0,get:function(){return t.importAttribute}}),Object.defineProperty(e,"ImportDeclaration",{enumerable:!0,get:function(){return t.importDeclaration}}),Object.defineProperty(e,"ImportDefaultSpecifier",{enumerable:!0,get:function(){return t.importDefaultSpecifier}}),Object.defineProperty(e,"ImportExpression",{enumerable:!0,get:function(){return t.importExpression}}),Object.defineProperty(e,"ImportNamespaceSpecifier",{enumerable:!0,get:function(){return t.importNamespaceSpecifier}}),Object.defineProperty(e,"ImportSpecifier",{enumerable:!0,get:function(){return t.importSpecifier}}),Object.defineProperty(e,"IndexedAccessType",{enumerable:!0,get:function(){return t.indexedAccessType}}),Object.defineProperty(e,"InferredPredicate",{enumerable:!0,get:function(){return t.inferredPredicate}}),Object.defineProperty(e,"InterfaceDeclaration",{enumerable:!0,get:function(){return t.interfaceDeclaration}}),Object.defineProperty(e,"InterfaceExtends",{enumerable:!0,get:function(){return t.interfaceExtends}}),Object.defineProperty(e,"InterfaceTypeAnnotation",{enumerable:!0,get:function(){return t.interfaceTypeAnnotation}}),Object.defineProperty(e,"InterpreterDirective",{enumerable:!0,get:function(){return t.interpreterDirective}}),Object.defineProperty(e,"IntersectionTypeAnnotation",{enumerable:!0,get:function(){return t.intersectionTypeAnnotation}}),Object.defineProperty(e,"JSXAttribute",{enumerable:!0,get:function(){return t.jsxAttribute}}),Object.defineProperty(e,"JSXClosingElement",{enumerable:!0,get:function(){return t.jsxClosingElement}}),Object.defineProperty(e,"JSXClosingFragment",{enumerable:!0,get:function(){return t.jsxClosingFragment}}),Object.defineProperty(e,"JSXElement",{enumerable:!0,get:function(){return t.jsxElement}}),Object.defineProperty(e,"JSXEmptyExpression",{enumerable:!0,get:function(){return t.jsxEmptyExpression}}),Object.defineProperty(e,"JSXExpressionContainer",{enumerable:!0,get:function(){return t.jsxExpressionContainer}}),Object.defineProperty(e,"JSXFragment",{enumerable:!0,get:function(){return t.jsxFragment}}),Object.defineProperty(e,"JSXIdentifier",{enumerable:!0,get:function(){return t.jsxIdentifier}}),Object.defineProperty(e,"JSXMemberExpression",{enumerable:!0,get:function(){return t.jsxMemberExpression}}),Object.defineProperty(e,"JSXNamespacedName",{enumerable:!0,get:function(){return t.jsxNamespacedName}}),Object.defineProperty(e,"JSXOpeningElement",{enumerable:!0,get:function(){return t.jsxOpeningElement}}),Object.defineProperty(e,"JSXOpeningFragment",{enumerable:!0,get:function(){return t.jsxOpeningFragment}}),Object.defineProperty(e,"JSXSpreadAttribute",{enumerable:!0,get:function(){return t.jsxSpreadAttribute}}),Object.defineProperty(e,"JSXSpreadChild",{enumerable:!0,get:function(){return t.jsxSpreadChild}}),Object.defineProperty(e,"JSXText",{enumerable:!0,get:function(){return t.jsxText}}),Object.defineProperty(e,"LabeledStatement",{enumerable:!0,get:function(){return t.labeledStatement}}),Object.defineProperty(e,"LogicalExpression",{enumerable:!0,get:function(){return t.logicalExpression}}),Object.defineProperty(e,"MemberExpression",{enumerable:!0,get:function(){return t.memberExpression}}),Object.defineProperty(e,"MetaProperty",{enumerable:!0,get:function(){return t.metaProperty}}),Object.defineProperty(e,"MixedTypeAnnotation",{enumerable:!0,get:function(){return t.mixedTypeAnnotation}}),Object.defineProperty(e,"ModuleExpression",{enumerable:!0,get:function(){return t.moduleExpression}}),Object.defineProperty(e,"NewExpression",{enumerable:!0,get:function(){return t.newExpression}}),Object.defineProperty(e,"Noop",{enumerable:!0,get:function(){return t.noop}}),Object.defineProperty(e,"NullLiteral",{enumerable:!0,get:function(){return t.nullLiteral}}),Object.defineProperty(e,"NullLiteralTypeAnnotation",{enumerable:!0,get:function(){return t.nullLiteralTypeAnnotation}}),Object.defineProperty(e,"NullableTypeAnnotation",{enumerable:!0,get:function(){return t.nullableTypeAnnotation}}),Object.defineProperty(e,"NumberLiteral",{enumerable:!0,get:function(){return t.numberLiteral}}),Object.defineProperty(e,"NumberLiteralTypeAnnotation",{enumerable:!0,get:function(){return t.numberLiteralTypeAnnotation}}),Object.defineProperty(e,"NumberTypeAnnotation",{enumerable:!0,get:function(){return t.numberTypeAnnotation}}),Object.defineProperty(e,"NumericLiteral",{enumerable:!0,get:function(){return t.numericLiteral}}),Object.defineProperty(e,"ObjectExpression",{enumerable:!0,get:function(){return t.objectExpression}}),Object.defineProperty(e,"ObjectMethod",{enumerable:!0,get:function(){return t.objectMethod}}),Object.defineProperty(e,"ObjectPattern",{enumerable:!0,get:function(){return t.objectPattern}}),Object.defineProperty(e,"ObjectProperty",{enumerable:!0,get:function(){return t.objectProperty}}),Object.defineProperty(e,"ObjectTypeAnnotation",{enumerable:!0,get:function(){return t.objectTypeAnnotation}}),Object.defineProperty(e,"ObjectTypeCallProperty",{enumerable:!0,get:function(){return t.objectTypeCallProperty}}),Object.defineProperty(e,"ObjectTypeIndexer",{enumerable:!0,get:function(){return t.objectTypeIndexer}}),Object.defineProperty(e,"ObjectTypeInternalSlot",{enumerable:!0,get:function(){return t.objectTypeInternalSlot}}),Object.defineProperty(e,"ObjectTypeProperty",{enumerable:!0,get:function(){return t.objectTypeProperty}}),Object.defineProperty(e,"ObjectTypeSpreadProperty",{enumerable:!0,get:function(){return t.objectTypeSpreadProperty}}),Object.defineProperty(e,"OpaqueType",{enumerable:!0,get:function(){return t.opaqueType}}),Object.defineProperty(e,"OptionalCallExpression",{enumerable:!0,get:function(){return t.optionalCallExpression}}),Object.defineProperty(e,"OptionalIndexedAccessType",{enumerable:!0,get:function(){return t.optionalIndexedAccessType}}),Object.defineProperty(e,"OptionalMemberExpression",{enumerable:!0,get:function(){return t.optionalMemberExpression}}),Object.defineProperty(e,"ParenthesizedExpression",{enumerable:!0,get:function(){return t.parenthesizedExpression}}),Object.defineProperty(e,"PipelineBareFunction",{enumerable:!0,get:function(){return t.pipelineBareFunction}}),Object.defineProperty(e,"PipelinePrimaryTopicReference",{enumerable:!0,get:function(){return t.pipelinePrimaryTopicReference}}),Object.defineProperty(e,"PipelineTopicExpression",{enumerable:!0,get:function(){return t.pipelineTopicExpression}}),Object.defineProperty(e,"Placeholder",{enumerable:!0,get:function(){return t.placeholder}}),Object.defineProperty(e,"PrivateName",{enumerable:!0,get:function(){return t.privateName}}),Object.defineProperty(e,"Program",{enumerable:!0,get:function(){return t.program}}),Object.defineProperty(e,"QualifiedTypeIdentifier",{enumerable:!0,get:function(){return t.qualifiedTypeIdentifier}}),Object.defineProperty(e,"RecordExpression",{enumerable:!0,get:function(){return t.recordExpression}}),Object.defineProperty(e,"RegExpLiteral",{enumerable:!0,get:function(){return t.regExpLiteral}}),Object.defineProperty(e,"RegexLiteral",{enumerable:!0,get:function(){return t.regexLiteral}}),Object.defineProperty(e,"RestElement",{enumerable:!0,get:function(){return t.restElement}}),Object.defineProperty(e,"RestProperty",{enumerable:!0,get:function(){return t.restProperty}}),Object.defineProperty(e,"ReturnStatement",{enumerable:!0,get:function(){return t.returnStatement}}),Object.defineProperty(e,"SequenceExpression",{enumerable:!0,get:function(){return t.sequenceExpression}}),Object.defineProperty(e,"SpreadElement",{enumerable:!0,get:function(){return t.spreadElement}}),Object.defineProperty(e,"SpreadProperty",{enumerable:!0,get:function(){return t.spreadProperty}}),Object.defineProperty(e,"StaticBlock",{enumerable:!0,get:function(){return t.staticBlock}}),Object.defineProperty(e,"StringLiteral",{enumerable:!0,get:function(){return t.stringLiteral}}),Object.defineProperty(e,"StringLiteralTypeAnnotation",{enumerable:!0,get:function(){return t.stringLiteralTypeAnnotation}}),Object.defineProperty(e,"StringTypeAnnotation",{enumerable:!0,get:function(){return t.stringTypeAnnotation}}),Object.defineProperty(e,"Super",{enumerable:!0,get:function(){return t.super}}),Object.defineProperty(e,"SwitchCase",{enumerable:!0,get:function(){return t.switchCase}}),Object.defineProperty(e,"SwitchStatement",{enumerable:!0,get:function(){return t.switchStatement}}),Object.defineProperty(e,"SymbolTypeAnnotation",{enumerable:!0,get:function(){return t.symbolTypeAnnotation}}),Object.defineProperty(e,"TSAnyKeyword",{enumerable:!0,get:function(){return t.tsAnyKeyword}}),Object.defineProperty(e,"TSArrayType",{enumerable:!0,get:function(){return t.tsArrayType}}),Object.defineProperty(e,"TSAsExpression",{enumerable:!0,get:function(){return t.tsAsExpression}}),Object.defineProperty(e,"TSBigIntKeyword",{enumerable:!0,get:function(){return t.tsBigIntKeyword}}),Object.defineProperty(e,"TSBooleanKeyword",{enumerable:!0,get:function(){return t.tsBooleanKeyword}}),Object.defineProperty(e,"TSCallSignatureDeclaration",{enumerable:!0,get:function(){return t.tsCallSignatureDeclaration}}),Object.defineProperty(e,"TSConditionalType",{enumerable:!0,get:function(){return t.tsConditionalType}}),Object.defineProperty(e,"TSConstructSignatureDeclaration",{enumerable:!0,get:function(){return t.tsConstructSignatureDeclaration}}),Object.defineProperty(e,"TSConstructorType",{enumerable:!0,get:function(){return t.tsConstructorType}}),Object.defineProperty(e,"TSDeclareFunction",{enumerable:!0,get:function(){return t.tsDeclareFunction}}),Object.defineProperty(e,"TSDeclareMethod",{enumerable:!0,get:function(){return t.tsDeclareMethod}}),Object.defineProperty(e,"TSEnumDeclaration",{enumerable:!0,get:function(){return t.tsEnumDeclaration}}),Object.defineProperty(e,"TSEnumMember",{enumerable:!0,get:function(){return t.tsEnumMember}}),Object.defineProperty(e,"TSExportAssignment",{enumerable:!0,get:function(){return t.tsExportAssignment}}),Object.defineProperty(e,"TSExpressionWithTypeArguments",{enumerable:!0,get:function(){return t.tsExpressionWithTypeArguments}}),Object.defineProperty(e,"TSExternalModuleReference",{enumerable:!0,get:function(){return t.tsExternalModuleReference}}),Object.defineProperty(e,"TSFunctionType",{enumerable:!0,get:function(){return t.tsFunctionType}}),Object.defineProperty(e,"TSImportEqualsDeclaration",{enumerable:!0,get:function(){return t.tsImportEqualsDeclaration}}),Object.defineProperty(e,"TSImportType",{enumerable:!0,get:function(){return t.tsImportType}}),Object.defineProperty(e,"TSIndexSignature",{enumerable:!0,get:function(){return t.tsIndexSignature}}),Object.defineProperty(e,"TSIndexedAccessType",{enumerable:!0,get:function(){return t.tsIndexedAccessType}}),Object.defineProperty(e,"TSInferType",{enumerable:!0,get:function(){return t.tsInferType}}),Object.defineProperty(e,"TSInstantiationExpression",{enumerable:!0,get:function(){return t.tsInstantiationExpression}}),Object.defineProperty(e,"TSInterfaceBody",{enumerable:!0,get:function(){return t.tsInterfaceBody}}),Object.defineProperty(e,"TSInterfaceDeclaration",{enumerable:!0,get:function(){return t.tsInterfaceDeclaration}}),Object.defineProperty(e,"TSIntersectionType",{enumerable:!0,get:function(){return t.tsIntersectionType}}),Object.defineProperty(e,"TSIntrinsicKeyword",{enumerable:!0,get:function(){return t.tsIntrinsicKeyword}}),Object.defineProperty(e,"TSLiteralType",{enumerable:!0,get:function(){return t.tsLiteralType}}),Object.defineProperty(e,"TSMappedType",{enumerable:!0,get:function(){return t.tsMappedType}}),Object.defineProperty(e,"TSMethodSignature",{enumerable:!0,get:function(){return t.tsMethodSignature}}),Object.defineProperty(e,"TSModuleBlock",{enumerable:!0,get:function(){return t.tsModuleBlock}}),Object.defineProperty(e,"TSModuleDeclaration",{enumerable:!0,get:function(){return t.tsModuleDeclaration}}),Object.defineProperty(e,"TSNamedTupleMember",{enumerable:!0,get:function(){return t.tsNamedTupleMember}}),Object.defineProperty(e,"TSNamespaceExportDeclaration",{enumerable:!0,get:function(){return t.tsNamespaceExportDeclaration}}),Object.defineProperty(e,"TSNeverKeyword",{enumerable:!0,get:function(){return t.tsNeverKeyword}}),Object.defineProperty(e,"TSNonNullExpression",{enumerable:!0,get:function(){return t.tsNonNullExpression}}),Object.defineProperty(e,"TSNullKeyword",{enumerable:!0,get:function(){return t.tsNullKeyword}}),Object.defineProperty(e,"TSNumberKeyword",{enumerable:!0,get:function(){return t.tsNumberKeyword}}),Object.defineProperty(e,"TSObjectKeyword",{enumerable:!0,get:function(){return t.tsObjectKeyword}}),Object.defineProperty(e,"TSOptionalType",{enumerable:!0,get:function(){return t.tsOptionalType}}),Object.defineProperty(e,"TSParameterProperty",{enumerable:!0,get:function(){return t.tsParameterProperty}}),Object.defineProperty(e,"TSParenthesizedType",{enumerable:!0,get:function(){return t.tsParenthesizedType}}),Object.defineProperty(e,"TSPropertySignature",{enumerable:!0,get:function(){return t.tsPropertySignature}}),Object.defineProperty(e,"TSQualifiedName",{enumerable:!0,get:function(){return t.tsQualifiedName}}),Object.defineProperty(e,"TSRestType",{enumerable:!0,get:function(){return t.tsRestType}}),Object.defineProperty(e,"TSSatisfiesExpression",{enumerable:!0,get:function(){return t.tsSatisfiesExpression}}),Object.defineProperty(e,"TSStringKeyword",{enumerable:!0,get:function(){return t.tsStringKeyword}}),Object.defineProperty(e,"TSSymbolKeyword",{enumerable:!0,get:function(){return t.tsSymbolKeyword}}),Object.defineProperty(e,"TSThisType",{enumerable:!0,get:function(){return t.tsThisType}}),Object.defineProperty(e,"TSTupleType",{enumerable:!0,get:function(){return t.tsTupleType}}),Object.defineProperty(e,"TSTypeAliasDeclaration",{enumerable:!0,get:function(){return t.tsTypeAliasDeclaration}}),Object.defineProperty(e,"TSTypeAnnotation",{enumerable:!0,get:function(){return t.tsTypeAnnotation}}),Object.defineProperty(e,"TSTypeAssertion",{enumerable:!0,get:function(){return t.tsTypeAssertion}}),Object.defineProperty(e,"TSTypeLiteral",{enumerable:!0,get:function(){return t.tsTypeLiteral}}),Object.defineProperty(e,"TSTypeOperator",{enumerable:!0,get:function(){return t.tsTypeOperator}}),Object.defineProperty(e,"TSTypeParameter",{enumerable:!0,get:function(){return t.tsTypeParameter}}),Object.defineProperty(e,"TSTypeParameterDeclaration",{enumerable:!0,get:function(){return t.tsTypeParameterDeclaration}}),Object.defineProperty(e,"TSTypeParameterInstantiation",{enumerable:!0,get:function(){return t.tsTypeParameterInstantiation}}),Object.defineProperty(e,"TSTypePredicate",{enumerable:!0,get:function(){return t.tsTypePredicate}}),Object.defineProperty(e,"TSTypeQuery",{enumerable:!0,get:function(){return t.tsTypeQuery}}),Object.defineProperty(e,"TSTypeReference",{enumerable:!0,get:function(){return t.tsTypeReference}}),Object.defineProperty(e,"TSUndefinedKeyword",{enumerable:!0,get:function(){return t.tsUndefinedKeyword}}),Object.defineProperty(e,"TSUnionType",{enumerable:!0,get:function(){return t.tsUnionType}}),Object.defineProperty(e,"TSUnknownKeyword",{enumerable:!0,get:function(){return t.tsUnknownKeyword}}),Object.defineProperty(e,"TSVoidKeyword",{enumerable:!0,get:function(){return t.tsVoidKeyword}}),Object.defineProperty(e,"TaggedTemplateExpression",{enumerable:!0,get:function(){return t.taggedTemplateExpression}}),Object.defineProperty(e,"TemplateElement",{enumerable:!0,get:function(){return t.templateElement}}),Object.defineProperty(e,"TemplateLiteral",{enumerable:!0,get:function(){return t.templateLiteral}}),Object.defineProperty(e,"ThisExpression",{enumerable:!0,get:function(){return t.thisExpression}}),Object.defineProperty(e,"ThisTypeAnnotation",{enumerable:!0,get:function(){return t.thisTypeAnnotation}}),Object.defineProperty(e,"ThrowStatement",{enumerable:!0,get:function(){return t.throwStatement}}),Object.defineProperty(e,"TopicReference",{enumerable:!0,get:function(){return t.topicReference}}),Object.defineProperty(e,"TryStatement",{enumerable:!0,get:function(){return t.tryStatement}}),Object.defineProperty(e,"TupleExpression",{enumerable:!0,get:function(){return t.tupleExpression}}),Object.defineProperty(e,"TupleTypeAnnotation",{enumerable:!0,get:function(){return t.tupleTypeAnnotation}}),Object.defineProperty(e,"TypeAlias",{enumerable:!0,get:function(){return t.typeAlias}}),Object.defineProperty(e,"TypeAnnotation",{enumerable:!0,get:function(){return t.typeAnnotation}}),Object.defineProperty(e,"TypeCastExpression",{enumerable:!0,get:function(){return t.typeCastExpression}}),Object.defineProperty(e,"TypeParameter",{enumerable:!0,get:function(){return t.typeParameter}}),Object.defineProperty(e,"TypeParameterDeclaration",{enumerable:!0,get:function(){return t.typeParameterDeclaration}}),Object.defineProperty(e,"TypeParameterInstantiation",{enumerable:!0,get:function(){return t.typeParameterInstantiation}}),Object.defineProperty(e,"TypeofTypeAnnotation",{enumerable:!0,get:function(){return t.typeofTypeAnnotation}}),Object.defineProperty(e,"UnaryExpression",{enumerable:!0,get:function(){return t.unaryExpression}}),Object.defineProperty(e,"UnionTypeAnnotation",{enumerable:!0,get:function(){return t.unionTypeAnnotation}}),Object.defineProperty(e,"UpdateExpression",{enumerable:!0,get:function(){return t.updateExpression}}),Object.defineProperty(e,"V8IntrinsicIdentifier",{enumerable:!0,get:function(){return t.v8IntrinsicIdentifier}}),Object.defineProperty(e,"VariableDeclaration",{enumerable:!0,get:function(){return t.variableDeclaration}}),Object.defineProperty(e,"VariableDeclarator",{enumerable:!0,get:function(){return t.variableDeclarator}}),Object.defineProperty(e,"Variance",{enumerable:!0,get:function(){return t.variance}}),Object.defineProperty(e,"VoidTypeAnnotation",{enumerable:!0,get:function(){return t.voidTypeAnnotation}}),Object.defineProperty(e,"WhileStatement",{enumerable:!0,get:function(){return t.whileStatement}}),Object.defineProperty(e,"WithStatement",{enumerable:!0,get:function(){return t.withStatement}}),Object.defineProperty(e,"YieldExpression",{enumerable:!0,get:function(){return t.yieldExpression}});var t=Ht()}(Gu)),Gu}var Ca={},Hh;function aD(){if(Hh)return Ca;Hh=1,Object.defineProperty(Ca,"__esModule",{value:!0}),Ca.buildUndefinedNode=t;var e=Ht();function t(){return(0,e.unaryExpression)("void",(0,e.numericLiteral)(0),!0)}return Ca}var sn={};Object.defineProperty(sn,"__esModule",{value:!0});sn.default=k4;var Gh=br(),Yh=M;const{hasOwn:Sr}={hasOwn:Function.call.bind(Object.prototype.hasOwnProperty)};function Xh(e,t,r,n){return e&&typeof e.type=="string"?oD(e,t,r,n):e}function Yu(e,t,r,n){return Array.isArray(e)?e.map(i=>Xh(i,t,r,n)):Xh(e,t,r,n)}function k4(e,t=!0,r=!1){return oD(e,t,r,new Map)}function oD(e,t=!0,r=!1,n){if(!e)return e;const{type:i}=e,s={type:e.type};if((0,Yh.isIdentifier)(e))s.name=e.name,Sr(e,"optional")&&typeof e.optional=="boolean"&&(s.optional=e.optional),Sr(e,"typeAnnotation")&&(s.typeAnnotation=t?Yu(e.typeAnnotation,!0,r,n):e.typeAnnotation),Sr(e,"decorators")&&(s.decorators=t?Yu(e.decorators,!0,r,n):e.decorators);else if(Sr(Gh.NODE_FIELDS,i))for(const a of Object.keys(Gh.NODE_FIELDS[i]))Sr(e,a)&&(t?s[a]=(0,Yh.isFile)(e)&&a==="comments"?Pa(e.comments,t,r,n):Yu(e[a],!0,r,n):s[a]=e[a]);else throw new Error(`Unknown node type: "${i}"`);return Sr(e,"loc")&&(r?s.loc=null:s.loc=e.loc),Sr(e,"leadingComments")&&(s.leadingComments=Pa(e.leadingComments,t,r,n)),Sr(e,"innerComments")&&(s.innerComments=Pa(e.innerComments,t,r,n)),Sr(e,"trailingComments")&&(s.trailingComments=Pa(e.trailingComments,t,r,n)),Sr(e,"extra")&&(s.extra=Object.assign({},e.extra)),s}function Pa(e,t,r,n){return!e||!t?e:e.map(i=>{const s=n.get(i);if(s)return s;const{type:a,value:o,loc:u}=i,l={type:a,value:o,loc:u};return r&&(l.loc=null),n.set(i,l),l})}var sf={};Object.defineProperty(sf,"__esModule",{value:!0});sf.default=M4;var R4=sn;function M4(e){return(0,R4.default)(e,!1)}var af={};Object.defineProperty(af,"__esModule",{value:!0});af.default=$4;var j4=sn;function $4(e){return(0,j4.default)(e)}var of={};Object.defineProperty(of,"__esModule",{value:!0});of.default=V4;var U4=sn;function V4(e){return(0,U4.default)(e,!0,!0)}var uf={};Object.defineProperty(uf,"__esModule",{value:!0});uf.default=K4;var q4=sn;function K4(e){return(0,q4.default)(e,!1,!0)}var lf={},jo={};Object.defineProperty(jo,"__esModule",{value:!0});jo.default=W4;function W4(e,t,r){if(!r||!e)return e;const n=`${t}Comments`;return e[n]?t==="leading"?e[n]=r.concat(e[n]):e[n].push(...r):e[n]=r,e}Object.defineProperty(lf,"__esModule",{value:!0});lf.default=G4;var H4=jo;function G4(e,t,r,n){return(0,H4.default)(e,t,[{type:n?"CommentLine":"CommentBlock",value:r}])}var $o={},Ws={};Object.defineProperty(Ws,"__esModule",{value:!0});Ws.default=Y4;function Y4(e,t,r){t&&r&&(t[e]=Array.from(new Set([].concat(t[e],r[e]).filter(Boolean))))}Object.defineProperty($o,"__esModule",{value:!0});$o.default=J4;var X4=Ws;function J4(e,t){(0,X4.default)("innerComments",e,t)}var Uo={};Object.defineProperty(Uo,"__esModule",{value:!0});Uo.default=Q4;var z4=Ws;function Q4(e,t){(0,z4.default)("leadingComments",e,t)}var Vo={},qo={};Object.defineProperty(qo,"__esModule",{value:!0});qo.default=e5;var Z4=Ws;function e5(e,t){(0,Z4.default)("trailingComments",e,t)}Object.defineProperty(Vo,"__esModule",{value:!0});Vo.default=i5;var t5=qo,r5=Uo,n5=$o;function i5(e,t){return(0,t5.default)(e,t),(0,r5.default)(e,t),(0,n5.default)(e,t),e}var cf={};Object.defineProperty(cf,"__esModule",{value:!0});cf.default=a5;var s5=$e;function a5(e){return s5.COMMENT_KEYS.forEach(t=>{e[t]=null}),e}var me={};Object.defineProperty(me,"__esModule",{value:!0});me.WHILE_TYPES=me.USERWHITESPACABLE_TYPES=me.UNARYLIKE_TYPES=me.TYPESCRIPT_TYPES=me.TSTYPE_TYPES=me.TSTYPEELEMENT_TYPES=me.TSENTITYNAME_TYPES=me.TSBASETYPE_TYPES=me.TERMINATORLESS_TYPES=me.STATEMENT_TYPES=me.STANDARDIZED_TYPES=me.SCOPABLE_TYPES=me.PUREISH_TYPES=me.PROPERTY_TYPES=me.PRIVATE_TYPES=me.PATTERN_TYPES=me.PATTERNLIKE_TYPES=me.OBJECTMEMBER_TYPES=me.MODULESPECIFIER_TYPES=me.MODULEDECLARATION_TYPES=me.MISCELLANEOUS_TYPES=me.METHOD_TYPES=me.LVAL_TYPES=me.LOOP_TYPES=me.LITERAL_TYPES=me.JSX_TYPES=me.IMPORTOREXPORTDECLARATION_TYPES=me.IMMUTABLE_TYPES=me.FUNCTION_TYPES=me.FUNCTIONPARENT_TYPES=me.FOR_TYPES=me.FORXSTATEMENT_TYPES=me.FLOW_TYPES=me.FLOWTYPE_TYPES=me.FLOWPREDICATE_TYPES=me.FLOWDECLARATION_TYPES=me.FLOWBASEANNOTATION_TYPES=me.EXPRESSION_TYPES=me.EXPRESSIONWRAPPER_TYPES=me.EXPORTDECLARATION_TYPES=me.ENUMMEMBER_TYPES=me.ENUMBODY_TYPES=me.DECLARATION_TYPES=me.CONDITIONAL_TYPES=me.COMPLETIONSTATEMENT_TYPES=me.CLASS_TYPES=me.BLOCK_TYPES=me.BLOCKPARENT_TYPES=me.BINARY_TYPES=me.ACCESSOR_TYPES=void 0;var Me=br();me.STANDARDIZED_TYPES=Me.FLIPPED_ALIAS_KEYS.Standardized;me.EXPRESSION_TYPES=Me.FLIPPED_ALIAS_KEYS.Expression;me.BINARY_TYPES=Me.FLIPPED_ALIAS_KEYS.Binary;me.SCOPABLE_TYPES=Me.FLIPPED_ALIAS_KEYS.Scopable;me.BLOCKPARENT_TYPES=Me.FLIPPED_ALIAS_KEYS.BlockParent;me.BLOCK_TYPES=Me.FLIPPED_ALIAS_KEYS.Block;me.STATEMENT_TYPES=Me.FLIPPED_ALIAS_KEYS.Statement;me.TERMINATORLESS_TYPES=Me.FLIPPED_ALIAS_KEYS.Terminatorless;me.COMPLETIONSTATEMENT_TYPES=Me.FLIPPED_ALIAS_KEYS.CompletionStatement;me.CONDITIONAL_TYPES=Me.FLIPPED_ALIAS_KEYS.Conditional;me.LOOP_TYPES=Me.FLIPPED_ALIAS_KEYS.Loop;me.WHILE_TYPES=Me.FLIPPED_ALIAS_KEYS.While;me.EXPRESSIONWRAPPER_TYPES=Me.FLIPPED_ALIAS_KEYS.ExpressionWrapper;me.FOR_TYPES=Me.FLIPPED_ALIAS_KEYS.For;me.FORXSTATEMENT_TYPES=Me.FLIPPED_ALIAS_KEYS.ForXStatement;me.FUNCTION_TYPES=Me.FLIPPED_ALIAS_KEYS.Function;me.FUNCTIONPARENT_TYPES=Me.FLIPPED_ALIAS_KEYS.FunctionParent;me.PUREISH_TYPES=Me.FLIPPED_ALIAS_KEYS.Pureish;me.DECLARATION_TYPES=Me.FLIPPED_ALIAS_KEYS.Declaration;me.PATTERNLIKE_TYPES=Me.FLIPPED_ALIAS_KEYS.PatternLike;me.LVAL_TYPES=Me.FLIPPED_ALIAS_KEYS.LVal;me.TSENTITYNAME_TYPES=Me.FLIPPED_ALIAS_KEYS.TSEntityName;me.LITERAL_TYPES=Me.FLIPPED_ALIAS_KEYS.Literal;me.IMMUTABLE_TYPES=Me.FLIPPED_ALIAS_KEYS.Immutable;me.USERWHITESPACABLE_TYPES=Me.FLIPPED_ALIAS_KEYS.UserWhitespacable;me.METHOD_TYPES=Me.FLIPPED_ALIAS_KEYS.Method;me.OBJECTMEMBER_TYPES=Me.FLIPPED_ALIAS_KEYS.ObjectMember;me.PROPERTY_TYPES=Me.FLIPPED_ALIAS_KEYS.Property;me.UNARYLIKE_TYPES=Me.FLIPPED_ALIAS_KEYS.UnaryLike;me.PATTERN_TYPES=Me.FLIPPED_ALIAS_KEYS.Pattern;me.CLASS_TYPES=Me.FLIPPED_ALIAS_KEYS.Class;const o5=me.IMPORTOREXPORTDECLARATION_TYPES=Me.FLIPPED_ALIAS_KEYS.ImportOrExportDeclaration;me.EXPORTDECLARATION_TYPES=Me.FLIPPED_ALIAS_KEYS.ExportDeclaration;me.MODULESPECIFIER_TYPES=Me.FLIPPED_ALIAS_KEYS.ModuleSpecifier;me.ACCESSOR_TYPES=Me.FLIPPED_ALIAS_KEYS.Accessor;me.PRIVATE_TYPES=Me.FLIPPED_ALIAS_KEYS.Private;me.FLOW_TYPES=Me.FLIPPED_ALIAS_KEYS.Flow;me.FLOWTYPE_TYPES=Me.FLIPPED_ALIAS_KEYS.FlowType;me.FLOWBASEANNOTATION_TYPES=Me.FLIPPED_ALIAS_KEYS.FlowBaseAnnotation;me.FLOWDECLARATION_TYPES=Me.FLIPPED_ALIAS_KEYS.FlowDeclaration;me.FLOWPREDICATE_TYPES=Me.FLIPPED_ALIAS_KEYS.FlowPredicate;me.ENUMBODY_TYPES=Me.FLIPPED_ALIAS_KEYS.EnumBody;me.ENUMMEMBER_TYPES=Me.FLIPPED_ALIAS_KEYS.EnumMember;me.JSX_TYPES=Me.FLIPPED_ALIAS_KEYS.JSX;me.MISCELLANEOUS_TYPES=Me.FLIPPED_ALIAS_KEYS.Miscellaneous;me.TYPESCRIPT_TYPES=Me.FLIPPED_ALIAS_KEYS.TypeScript;me.TSTYPEELEMENT_TYPES=Me.FLIPPED_ALIAS_KEYS.TSTypeElement;me.TSTYPE_TYPES=Me.FLIPPED_ALIAS_KEYS.TSType;me.TSBASETYPE_TYPES=Me.FLIPPED_ALIAS_KEYS.TSBaseType;me.MODULEDECLARATION_TYPES=o5;var xa={},Fa={},Jh;function uD(){if(Jh)return Fa;Jh=1,Object.defineProperty(Fa,"__esModule",{value:!0}),Fa.default=r;var e=M,t=Ht();function r(n,i){if((0,e.isBlockStatement)(n))return n;let s=[];return(0,e.isEmptyStatement)(n)?s=[]:((0,e.isStatement)(n)||((0,e.isFunction)(i)?n=(0,t.returnStatement)(n):n=(0,t.expressionStatement)(n)),s=[n]),(0,t.blockStatement)(s)}return Fa}var zh;function u5(){if(zh)return xa;zh=1,Object.defineProperty(xa,"__esModule",{value:!0}),xa.default=t;var e=uD();function t(r,n="body"){const i=(0,e.default)(r[n],r);return r[n]=i,i}return xa}var ff={},Ko={};Object.defineProperty(Ko,"__esModule",{value:!0});Ko.default=f5;var l5=fi,c5=Us;function f5(e){e=e+"";let t="";for(const r of e)t+=(0,c5.isIdentifierChar)(r.codePointAt(0))?r:"-";return t=t.replace(/^[-0-9]+/,""),t=t.replace(/[-\s]+(.)?/g,function(r,n){return n?n.toUpperCase():""}),(0,l5.default)(t)||(t=`_${t}`),t||"_"}Object.defineProperty(ff,"__esModule",{value:!0});ff.default=h5;var p5=Ko;function h5(e){return e=(0,p5.default)(e),(e==="eval"||e==="arguments")&&(e="_"+e),e}var _a={},Qh;function d5(){if(Qh)return _a;Qh=1,Object.defineProperty(_a,"__esModule",{value:!0}),_a.default=r;var e=M,t=Ht();function r(n,i=n.key||n.property){return!n.computed&&(0,e.isIdentifier)(i)&&(i=(0,t.stringLiteral)(i.name)),i}return _a}var Wo={};Object.defineProperty(Wo,"__esModule",{value:!0});Wo.default=void 0;var ns=M;Wo.default=m5;function m5(e){if((0,ns.isExpressionStatement)(e)&&(e=e.expression),(0,ns.isExpression)(e))return e;if((0,ns.isClass)(e)?e.type="ClassExpression":(0,ns.isFunction)(e)&&(e.type="FunctionExpression"),!(0,ns.isExpression)(e))throw new Error(`cannot turn ${e.type} to an expression`);return e}var pf={},Ho={},Go={};Object.defineProperty(Go,"__esModule",{value:!0});Go.default=Vl;var y5=br();function Vl(e,t,r){if(!e)return;const n=y5.VISITOR_KEYS[e.type];if(n){r=r||{},t(e,r);for(const i of n){const s=e[i];if(Array.isArray(s))for(const a of s)Vl(a,t,r);else Vl(s,t,r)}}}var Yo={};Object.defineProperty(Yo,"__esModule",{value:!0});Yo.default=E5;var D5=$e;const lD=["tokens","start","end","loc","raw","rawValue"],g5=[...D5.COMMENT_KEYS,"comments",...lD];function E5(e,t={}){const r=t.preserveComments?lD:g5;for(const i of r)e[i]!=null&&(e[i]=void 0);for(const i of Object.keys(e))i[0]==="_"&&e[i]!=null&&(e[i]=void 0);const n=Object.getOwnPropertySymbols(e);for(const i of n)e[i]=null}Object.defineProperty(Ho,"__esModule",{value:!0});Ho.default=S5;var b5=Go,T5=Yo;function S5(e,t){return(0,b5.default)(e,T5.default,t),e}Object.defineProperty(pf,"__esModule",{value:!0});pf.default=ei;var Zh=M,v5=sn,A5=Ho;function ei(e,t=e.key){let r;return e.kind==="method"?ei.increment()+"":((0,Zh.isIdentifier)(t)?r=t.name:(0,Zh.isStringLiteral)(t)?r=JSON.stringify(t.value):r=JSON.stringify((0,A5.default)((0,v5.default)(t))),e.computed&&(r=`[${r}]`),e.static&&(r=`static:${r}`),r)}ei.uid=0;ei.increment=function(){return ei.uid>=Number.MAX_SAFE_INTEGER?ei.uid=0:ei.uid++};var is={},ed;function C5(){if(ed)return is;ed=1,Object.defineProperty(is,"__esModule",{value:!0}),is.default=void 0;var e=M,t=Ht();is.default=r;function r(n,i){if((0,e.isStatement)(n))return n;let s=!1,a;if((0,e.isClass)(n))s=!0,a="ClassDeclaration";else if((0,e.isFunction)(n))s=!0,a="FunctionDeclaration";else if((0,e.isAssignmentExpression)(n))return(0,t.expressionStatement)(n);if(s&&!n.id&&(a=!1),!a){if(i)return!1;throw new Error(`cannot turn ${n.type} to a statement`)}return n.type=a,n}return is}var ss={},td;function P5(){if(td)return ss;td=1,Object.defineProperty(ss,"__esModule",{value:!0}),ss.default=void 0;var e=fi,t=Ht();ss.default=s;const r=Function.call.bind(Object.prototype.toString);function n(a){return r(a)==="[object RegExp]"}function i(a){if(typeof a!="object"||a===null||Object.prototype.toString.call(a)!=="[object Object]")return!1;const o=Object.getPrototypeOf(a);return o===null||Object.getPrototypeOf(o)===null}function s(a){if(a===void 0)return(0,t.identifier)("undefined");if(a===!0||a===!1)return(0,t.booleanLiteral)(a);if(a===null)return(0,t.nullLiteral)();if(typeof a=="string")return(0,t.stringLiteral)(a);if(typeof a=="number"){let o;if(Number.isFinite(a))o=(0,t.numericLiteral)(Math.abs(a));else{let u;Number.isNaN(a)?u=(0,t.numericLiteral)(0):u=(0,t.numericLiteral)(1),o=(0,t.binaryExpression)("/",u,(0,t.numericLiteral)(0))}return(a<0||Object.is(a,-0))&&(o=(0,t.unaryExpression)("-",o)),o}if(n(a)){const o=a.source,u=/\/([a-z]*)$/.exec(a.toString())[1];return(0,t.regExpLiteral)(o,u)}if(Array.isArray(a))return(0,t.arrayExpression)(a.map(s));if(i(a)){const o=[];for(const u of Object.keys(a)){let l;(0,e.default)(u)?l=(0,t.identifier)(u):l=(0,t.stringLiteral)(u),o.push((0,t.objectProperty)(l,s(a[u])))}return(0,t.objectExpression)(o)}throw new Error("don't know how to turn this value into a node")}return ss}var wa={},rd;function x5(){if(rd)return wa;rd=1,Object.defineProperty(wa,"__esModule",{value:!0}),wa.default=t;var e=Ht();function t(r,n,i=!1){return r.object=(0,e.memberExpression)(r.object,r.property,r.computed),r.property=n,r.computed=!!i,r}return wa}var hf={};Object.defineProperty(hf,"__esModule",{value:!0});hf.default=_5;var nd=$e,F5=Vo;function _5(e,t){if(!e||!t)return e;for(const r of nd.INHERIT_KEYS.optional)e[r]==null&&(e[r]=t[r]);for(const r of Object.keys(t))r[0]==="_"&&r!=="__clone"&&(e[r]=t[r]);for(const r of nd.INHERIT_KEYS.force)e[r]=t[r];return(0,F5.default)(e,t),e}var Ia={},id;function w5(){if(id)return Ia;id=1,Object.defineProperty(Ia,"__esModule",{value:!0}),Ia.default=r;var e=Ht(),t=Ge();function r(n,i){if((0,t.isSuper)(n.object))throw new Error("Cannot prepend node to super property access (`super.foo`).");return n.object=(0,e.memberExpression)(i,n.object),n}return Ia}var df={};Object.defineProperty(df,"__esModule",{value:!0});df.default=I5;function I5(e){const t=[].concat(e),r=Object.create(null);for(;t.length;){const n=t.pop();if(n)switch(n.type){case"ArrayPattern":t.push(...n.elements);break;case"AssignmentExpression":case"AssignmentPattern":case"ForInStatement":case"ForOfStatement":t.push(n.left);break;case"ObjectPattern":t.push(...n.properties);break;case"ObjectProperty":t.push(n.value);break;case"RestElement":case"UpdateExpression":t.push(n.argument);break;case"UnaryExpression":n.operator==="delete"&&t.push(n.argument);break;case"Identifier":r[n.name]=n;break}}return r}var qi={};Object.defineProperty(qi,"__esModule",{value:!0});qi.default=mf;var Br=M;function mf(e,t,r,n){const i=[].concat(e),s=Object.create(null);for(;i.length;){const a=i.shift();if(!a||n&&((0,Br.isAssignmentExpression)(a)||(0,Br.isUnaryExpression)(a)||(0,Br.isUpdateExpression)(a)))continue;if((0,Br.isIdentifier)(a)){t?(s[a.name]=s[a.name]||[]).push(a):s[a.name]=a;continue}if((0,Br.isExportDeclaration)(a)&&!(0,Br.isExportAllDeclaration)(a)){(0,Br.isDeclaration)(a.declaration)&&i.push(a.declaration);continue}if(r){if((0,Br.isFunctionDeclaration)(a)){i.push(a.id);continue}if((0,Br.isFunctionExpression)(a))continue}const o=mf.keys[a.type];if(o)for(let u=0;u<o.length;u++){const l=o[u],c=a[l];c&&(Array.isArray(c)?i.push(...c):i.push(c))}}return s}const O5={DeclareClass:["id"],DeclareFunction:["id"],DeclareModule:["id"],DeclareVariable:["id"],DeclareInterface:["id"],DeclareTypeAlias:["id"],DeclareOpaqueType:["id"],InterfaceDeclaration:["id"],TypeAlias:["id"],OpaqueType:["id"],CatchClause:["param"],LabeledStatement:["label"],UnaryExpression:["argument"],AssignmentExpression:["left"],ImportSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportDefaultSpecifier:["local"],ImportDeclaration:["specifiers"],ExportSpecifier:["exported"],ExportNamespaceSpecifier:["exported"],ExportDefaultSpecifier:["exported"],FunctionDeclaration:["id","params"],FunctionExpression:["id","params"],ArrowFunctionExpression:["params"],ObjectMethod:["params"],ClassMethod:["params"],ClassPrivateMethod:["params"],ForInStatement:["left"],ForOfStatement:["left"],ClassDeclaration:["id"],ClassExpression:["id"],RestElement:["argument"],UpdateExpression:["argument"],ObjectProperty:["value"],AssignmentPattern:["left"],ArrayPattern:["elements"],ObjectPattern:["properties"],VariableDeclaration:["declarations"],VariableDeclarator:["id"]};mf.keys=O5;var Xo={};Object.defineProperty(Xo,"__esModule",{value:!0});Xo.default=void 0;var N5=qi;Xo.default=B5;function B5(e,t){return(0,N5.default)(e,t,!0)}var yf={};Object.defineProperty(yf,"__esModule",{value:!0});yf.default=k5;var Zt=M;function L5(e){return(0,Zt.isNullLiteral)(e)?"null":(0,Zt.isRegExpLiteral)(e)?`/${e.pattern}/${e.flags}`:(0,Zt.isTemplateLiteral)(e)?e.quasis.map(t=>t.value.raw).join(""):e.value!==void 0?String(e.value):null}function sd(e){if(!e.computed||(0,Zt.isLiteral)(e.key))return e.key}function k5(e,t){if("id"in e&&e.id)return{name:e.id.name,originalNode:e.id};let r="",n;if((0,Zt.isObjectProperty)(t,{value:e})?n=sd(t):(0,Zt.isObjectMethod)(e)||(0,Zt.isClassMethod)(e)?(n=sd(e),e.kind==="get"?r="get ":e.kind==="set"&&(r="set ")):(0,Zt.isVariableDeclarator)(t,{init:e})?n=t.id:(0,Zt.isAssignmentExpression)(t,{operator:"=",right:e})&&(n=t.left),!n)return null;const i=(0,Zt.isLiteral)(n)?L5(n):(0,Zt.isIdentifier)(n)?n.name:(0,Zt.isPrivateName)(n)?n.id.name:null;return i==null?null:{name:r+i,originalNode:n}}var Df={};Object.defineProperty(Df,"__esModule",{value:!0});Df.default=M5;var R5=br();function M5(e,t,r){typeof t=="function"&&(t={enter:t});const{enter:n,exit:i}=t;ql(e,n,i,r,[])}function ql(e,t,r,n,i){const s=R5.VISITOR_KEYS[e.type];if(s){t&&t(e,i,n);for(const a of s){const o=e[a];if(Array.isArray(o))for(let u=0;u<o.length;u++){const l=o[u];l&&(i.push({node:e,key:a,index:u}),ql(l,t,r,n,i),i.pop())}else o&&(i.push({node:e,key:a}),ql(o,t,r,n,i),i.pop())}r&&r(e,i,n)}}var gf={};Object.defineProperty(gf,"__esModule",{value:!0});gf.default=$5;var j5=qi;function $5(e,t,r){if(r&&e.type==="Identifier"&&t.type==="ObjectProperty"&&r.type==="ObjectExpression")return!1;const n=j5.default.keys[t.type];if(n)for(let i=0;i<n.length;i++){const s=n[i],a=t[s];if(Array.isArray(a)){if(a.includes(e))return!0}else if(a===e)return!0}return!1}var Ef={},Jo={};Object.defineProperty(Jo,"__esModule",{value:!0});Jo.default=q5;var U5=M,V5=$e;function q5(e){return(0,U5.isVariableDeclaration)(e)&&(e.kind!=="var"||e[V5.BLOCK_SCOPED_SYMBOL])}Object.defineProperty(Ef,"__esModule",{value:!0});Ef.default=W5;var ad=M,K5=Jo;function W5(e){return(0,ad.isFunctionDeclaration)(e)||(0,ad.isClassDeclaration)(e)||(0,K5.default)(e)}var bf={};Object.defineProperty(bf,"__esModule",{value:!0});bf.default=Y5;var H5=Qc(),G5=M;function Y5(e){return(0,H5.default)(e.type,"Immutable")?!0:(0,G5.isIdentifier)(e)?e.name==="undefined":!1}var Tf={};Object.defineProperty(Tf,"__esModule",{value:!0});Tf.default=Kl;var od=br();function Kl(e,t){if(typeof e!="object"||typeof t!="object"||e==null||t==null)return e===t;if(e.type!==t.type)return!1;const r=Object.keys(od.NODE_FIELDS[e.type]||e.type),n=od.VISITOR_KEYS[e.type];for(const i of r){const s=e[i],a=t[i];if(typeof s!=typeof a)return!1;if(!(s==null&&a==null)){if(s==null||a==null)return!1;if(Array.isArray(s)){if(!Array.isArray(a)||s.length!==a.length)return!1;for(let o=0;o<s.length;o++)if(!Kl(s[o],a[o]))return!1;continue}if(typeof s=="object"&&!(n!=null&&n.includes(i))){for(const o of Object.keys(s))if(s[o]!==a[o])return!1;continue}if(!Kl(s,a))return!1}}return!0}var Sf={};Object.defineProperty(Sf,"__esModule",{value:!0});Sf.default=X5;function X5(e,t,r){switch(t.type){case"MemberExpression":case"OptionalMemberExpression":return t.property===e?!!t.computed:t.object===e;case"JSXMemberExpression":return t.object===e;case"VariableDeclarator":return t.init===e;case"ArrowFunctionExpression":return t.body===e;case"PrivateName":return!1;case"ClassMethod":case"ClassPrivateMethod":case"ObjectMethod":return t.key===e?!!t.computed:!1;case"ObjectProperty":return t.key===e?!!t.computed:!r||r.type!=="ObjectPattern";case"ClassProperty":case"ClassAccessorProperty":return t.key===e?!!t.computed:!0;case"ClassPrivateProperty":return t.key!==e;case"ClassDeclaration":case"ClassExpression":return t.superClass===e;case"AssignmentExpression":return t.right===e;case"AssignmentPattern":return t.right===e;case"LabeledStatement":return!1;case"CatchClause":return!1;case"RestElement":return!1;case"BreakStatement":case"ContinueStatement":return!1;case"FunctionDeclaration":case"FunctionExpression":return!1;case"ExportNamespaceSpecifier":case"ExportDefaultSpecifier":return!1;case"ExportSpecifier":return r!=null&&r.source?!1:t.local===e;case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":return!1;case"ImportAttribute":return!1;case"JSXAttribute":return!1;case"ObjectPattern":case"ArrayPattern":return!1;case"MetaProperty":return!1;case"ObjectTypeProperty":return t.key!==e;case"TSEnumMember":return t.id!==e;case"TSPropertySignature":return t.key===e?!!t.computed:!0}return!0}var vf={};Object.defineProperty(vf,"__esModule",{value:!0});vf.default=J5;var Xn=M;function J5(e,t){return(0,Xn.isBlockStatement)(e)&&((0,Xn.isFunction)(t)||(0,Xn.isCatchClause)(t))?!1:(0,Xn.isPattern)(e)&&((0,Xn.isFunction)(t)||(0,Xn.isCatchClause)(t))?!0:(0,Xn.isScopable)(e)}var Af={};Object.defineProperty(Af,"__esModule",{value:!0});Af.default=z5;var ud=M;function z5(e){return(0,ud.isImportDefaultSpecifier)(e)||(0,ud.isIdentifier)(e.imported||e.exported,{name:"default"})}var Cf={};Object.defineProperty(Cf,"__esModule",{value:!0});Cf.default=e7;var Q5=fi;const Z5=new Set(["abstract","boolean","byte","char","double","enum","final","float","goto","implements","int","interface","long","native","package","private","protected","public","short","static","synchronized","throws","transient","volatile"]);function e7(e){return(0,Q5.default)(e)&&!Z5.has(e)}var Pf={};Object.defineProperty(Pf,"__esModule",{value:!0});Pf.default=n7;var t7=M,r7=$e;function n7(e){return(0,t7.isVariableDeclaration)(e,{kind:"var"})&&!e[r7.BLOCK_SCOPED_SYMBOL]}var Oa={},Na={},ld;function i7(){if(ld)return Na;ld=1,Object.defineProperty(Na,"__esModule",{value:!0}),Na.default=s;var e=qi,t=M,r=Ht(),n=aD(),i=sn;function s(a,o){const u=[];let l=!0;for(const c of a)if((0,t.isEmptyStatement)(c)||(l=!1),(0,t.isExpression)(c))u.push(c);else if((0,t.isExpressionStatement)(c))u.push(c.expression);else if((0,t.isVariableDeclaration)(c)){if(c.kind!=="var")return;for(const f of c.declarations){const p=(0,e.default)(f);for(const h of Object.keys(p))o.push({kind:c.kind,id:(0,i.default)(p[h])});f.init&&u.push((0,r.assignmentExpression)("=",f.id,f.init))}l=!0}else if((0,t.isIfStatement)(c)){const f=c.consequent?s([c.consequent],o):(0,n.buildUndefinedNode)(),p=c.alternate?s([c.alternate],o):(0,n.buildUndefinedNode)();if(!f||!p)return;u.push((0,r.conditionalExpression)(c.test,f,p))}else if((0,t.isBlockStatement)(c)){const f=s(c.body,o);if(!f)return;u.push(f)}else if((0,t.isEmptyStatement)(c))a.indexOf(c)===0&&(l=!0);else return;return l&&u.push((0,n.buildUndefinedNode)()),u.length===1?u[0]:(0,r.sequenceExpression)(u)}return Na}var cd;function s7(){if(cd)return Oa;cd=1,Object.defineProperty(Oa,"__esModule",{value:!0}),Oa.default=t;var e=i7();function t(r,n){if(!(r!=null&&r.length))return;const i=[],s=(0,e.default)(r,i);if(s){for(const a of i)n.push(a);return s}}return Oa}var fd;function Ge(){return fd||(fd=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t={react:!0,assertNode:!0,createTypeAnnotationBasedOnTypeof:!0,createUnionTypeAnnotation:!0,createFlowUnionType:!0,createTSUnionType:!0,cloneNode:!0,clone:!0,cloneDeep:!0,cloneDeepWithoutLoc:!0,cloneWithoutLoc:!0,addComment:!0,addComments:!0,inheritInnerComments:!0,inheritLeadingComments:!0,inheritsComments:!0,inheritTrailingComments:!0,removeComments:!0,ensureBlock:!0,toBindingIdentifierName:!0,toBlock:!0,toComputedKey:!0,toExpression:!0,toIdentifier:!0,toKeyAlias:!0,toStatement:!0,valueToNode:!0,appendToMemberExpression:!0,inherits:!0,prependToMemberExpression:!0,removeProperties:!0,removePropertiesDeep:!0,removeTypeDuplicates:!0,getAssignmentIdentifiers:!0,getBindingIdentifiers:!0,getOuterBindingIdentifiers:!0,getFunctionName:!0,traverse:!0,traverseFast:!0,shallowEqual:!0,is:!0,isBinding:!0,isBlockScoped:!0,isImmutable:!0,isLet:!0,isNode:!0,isNodesEquivalent:!0,isPlaceholderType:!0,isReferenced:!0,isScope:!0,isSpecifierDefault:!0,isType:!0,isValidES3Identifier:!0,isValidIdentifier:!0,isVar:!0,matchesPattern:!0,validate:!0,buildMatchMemberExpression:!0,__internal__deprecationWarning:!0};Object.defineProperty(e,"__internal__deprecationWarning",{enumerable:!0,get:function(){return Ve.default}}),Object.defineProperty(e,"addComment",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(e,"addComments",{enumerable:!0,get:function(){return b.default}}),Object.defineProperty(e,"appendToMemberExpression",{enumerable:!0,get:function(){return Q.default}}),Object.defineProperty(e,"assertNode",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"buildMatchMemberExpression",{enumerable:!0,get:function(){return ce.default}}),Object.defineProperty(e,"clone",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(e,"cloneDeep",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(e,"cloneDeepWithoutLoc",{enumerable:!0,get:function(){return D.default}}),Object.defineProperty(e,"cloneNode",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(e,"cloneWithoutLoc",{enumerable:!0,get:function(){return g.default}}),Object.defineProperty(e,"createFlowUnionType",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"createTSUnionType",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"createTypeAnnotationBasedOnTypeof",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"createUnionTypeAnnotation",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"ensureBlock",{enumerable:!0,get:function(){return F.default}}),Object.defineProperty(e,"getAssignmentIdentifiers",{enumerable:!0,get:function(){return Y.default}}),Object.defineProperty(e,"getBindingIdentifiers",{enumerable:!0,get:function(){return re.default}}),Object.defineProperty(e,"getFunctionName",{enumerable:!0,get:function(){return de.default}}),Object.defineProperty(e,"getOuterBindingIdentifiers",{enumerable:!0,get:function(){return De.default}}),Object.defineProperty(e,"inheritInnerComments",{enumerable:!0,get:function(){return O.default}}),Object.defineProperty(e,"inheritLeadingComments",{enumerable:!0,get:function(){return C.default}}),Object.defineProperty(e,"inheritTrailingComments",{enumerable:!0,get:function(){return w.default}}),Object.defineProperty(e,"inherits",{enumerable:!0,get:function(){return ne.default}}),Object.defineProperty(e,"inheritsComments",{enumerable:!0,get:function(){return $.default}}),Object.defineProperty(e,"is",{enumerable:!0,get:function(){return Be.default}}),Object.defineProperty(e,"isBinding",{enumerable:!0,get:function(){return ze.default}}),Object.defineProperty(e,"isBlockScoped",{enumerable:!0,get:function(){return _e.default}}),Object.defineProperty(e,"isImmutable",{enumerable:!0,get:function(){return Ne.default}}),Object.defineProperty(e,"isLet",{enumerable:!0,get:function(){return ge.default}}),Object.defineProperty(e,"isNode",{enumerable:!0,get:function(){return Ae.default}}),Object.defineProperty(e,"isNodesEquivalent",{enumerable:!0,get:function(){return st.default}}),Object.defineProperty(e,"isPlaceholderType",{enumerable:!0,get:function(){return fe.default}}),Object.defineProperty(e,"isReferenced",{enumerable:!0,get:function(){return Ue.default}}),Object.defineProperty(e,"isScope",{enumerable:!0,get:function(){return Z.default}}),Object.defineProperty(e,"isSpecifierDefault",{enumerable:!0,get:function(){return G.default}}),Object.defineProperty(e,"isType",{enumerable:!0,get:function(){return V.default}}),Object.defineProperty(e,"isValidES3Identifier",{enumerable:!0,get:function(){return E.default}}),Object.defineProperty(e,"isValidIdentifier",{enumerable:!0,get:function(){return j.default}}),Object.defineProperty(e,"isVar",{enumerable:!0,get:function(){return z.default}}),Object.defineProperty(e,"matchesPattern",{enumerable:!0,get:function(){return se.default}}),Object.defineProperty(e,"prependToMemberExpression",{enumerable:!0,get:function(){return X.default}}),e.react=void 0,Object.defineProperty(e,"removeComments",{enumerable:!0,get:function(){return P.default}}),Object.defineProperty(e,"removeProperties",{enumerable:!0,get:function(){return ae.default}}),Object.defineProperty(e,"removePropertiesDeep",{enumerable:!0,get:function(){return ie.default}}),Object.defineProperty(e,"removeTypeDuplicates",{enumerable:!0,get:function(){return te.default}}),Object.defineProperty(e,"shallowEqual",{enumerable:!0,get:function(){return Te.default}}),Object.defineProperty(e,"toBindingIdentifierName",{enumerable:!0,get:function(){return S.default}}),Object.defineProperty(e,"toBlock",{enumerable:!0,get:function(){return A.default}}),Object.defineProperty(e,"toComputedKey",{enumerable:!0,get:function(){return B.default}}),Object.defineProperty(e,"toExpression",{enumerable:!0,get:function(){return x.default}}),Object.defineProperty(e,"toIdentifier",{enumerable:!0,get:function(){return N.default}}),Object.defineProperty(e,"toKeyAlias",{enumerable:!0,get:function(){return H.default}}),Object.defineProperty(e,"toStatement",{enumerable:!0,get:function(){return T.default}}),Object.defineProperty(e,"traverse",{enumerable:!0,get:function(){return Ce.default}}),Object.defineProperty(e,"traverseFast",{enumerable:!0,get:function(){return Oe.default}}),Object.defineProperty(e,"validate",{enumerable:!0,get:function(){return oe.default}}),Object.defineProperty(e,"valueToNode",{enumerable:!0,get:function(){return _.default}});var r=No,n=zc,i=Hk(),s=rf,a=U;Object.keys(a).forEach(function(ue){ue==="default"||ue==="__esModule"||Object.prototype.hasOwnProperty.call(t,ue)||ue in e&&e[ue]===a[ue]||Object.defineProperty(e,ue,{enumerable:!0,get:function(){return a[ue]}})});var o=O4(),u=N4(),l=B4(),c=Ht();Object.keys(c).forEach(function(ue){ue==="default"||ue==="__esModule"||Object.prototype.hasOwnProperty.call(t,ue)||ue in e&&e[ue]===c[ue]||Object.defineProperty(e,ue,{enumerable:!0,get:function(){return c[ue]}})});var f=L4();Object.keys(f).forEach(function(ue){ue==="default"||ue==="__esModule"||Object.prototype.hasOwnProperty.call(t,ue)||ue in e&&e[ue]===f[ue]||Object.defineProperty(e,ue,{enumerable:!0,get:function(){return f[ue]}})});var p=aD();Object.keys(p).forEach(function(ue){ue==="default"||ue==="__esModule"||Object.prototype.hasOwnProperty.call(t,ue)||ue in e&&e[ue]===p[ue]||Object.defineProperty(e,ue,{enumerable:!0,get:function(){return p[ue]}})});var h=sn,d=sf,m=af,D=of,g=uf,y=lf,b=jo,O=$o,C=Uo,$=Vo,w=qo,P=cf,I=me;Object.keys(I).forEach(function(ue){ue==="default"||ue==="__esModule"||Object.prototype.hasOwnProperty.call(t,ue)||ue in e&&e[ue]===I[ue]||Object.defineProperty(e,ue,{enumerable:!0,get:function(){return I[ue]}})});var L=$e;Object.keys(L).forEach(function(ue){ue==="default"||ue==="__esModule"||Object.prototype.hasOwnProperty.call(t,ue)||ue in e&&e[ue]===L[ue]||Object.defineProperty(e,ue,{enumerable:!0,get:function(){return L[ue]}})});var F=u5(),S=ff,A=uD(),B=d5(),x=Wo,N=Ko,H=pf,T=C5(),_=P5(),R=br();Object.keys(R).forEach(function(ue){ue==="default"||ue==="__esModule"||Object.prototype.hasOwnProperty.call(t,ue)||ue in e&&e[ue]===R[ue]||Object.defineProperty(e,ue,{enumerable:!0,get:function(){return R[ue]}})});var Q=x5(),ne=hf,X=w5(),ae=Yo,ie=Ho,te=Mo,Y=df,re=qi,De=Xo,de=yf,Ce=Df;Object.keys(Ce).forEach(function(ue){ue==="default"||ue==="__esModule"||Object.prototype.hasOwnProperty.call(t,ue)||ue in e&&e[ue]===Ce[ue]||Object.defineProperty(e,ue,{enumerable:!0,get:function(){return Ce[ue]}})});var Oe=Go,Te=Ms,Be=$s(),ze=gf,_e=Ef,Ne=bf,ge=Jo,Ae=Ro,st=Tf,fe=q0(),Ue=Sf,Z=vf,G=Af,V=Qc(),E=Cf,j=fi,z=Pf,se=Lo,oe=tf(),ce=Bo,Pe=M;Object.keys(Pe).forEach(function(ue){ue==="default"||ue==="__esModule"||Object.prototype.hasOwnProperty.call(t,ue)||ue in e&&e[ue]===Pe[ue]||Object.defineProperty(e,ue,{enumerable:!0,get:function(){return Pe[ue]}})});var Ve=Vi;e.react={isReactComponent:r.default,isCompatTag:n.default,buildChildren:i.default},e.toSequenceExpression=s7().default}(Ku)),Ku}var fn={},Tt={};Object.defineProperty(Tt,"__esModule",{value:!0});Tt.isBindingIdentifier=F7;Tt.isBlockScoped=N7;Tt.isExpression=w7;Tt.isFlow=M7;Tt.isForAwaitStatement=U7;Tt.isGenerated=k7;Tt.isPure=R7;Tt.isReferenced=O7;Tt.isReferencedIdentifier=P7;Tt.isReferencedMemberExpression=x7;Tt.isRestProperty=j7;Tt.isScope=I7;Tt.isSpreadProperty=$7;Tt.isStatement=_7;Tt.isUser=L7;Tt.isVar=B7;var a7=Ge();const{isBinding:o7,isBlockScoped:u7,isExportDeclaration:l7,isExpression:c7,isFlow:f7,isForStatement:p7,isForXStatement:h7,isIdentifier:cD,isImportDeclaration:d7,isImportSpecifier:m7,isJSXIdentifier:y7,isJSXMemberExpression:D7,isMemberExpression:g7,isRestElement:fD,isReferenced:xf,isScope:E7,isStatement:b7,isVar:T7,isVariableDeclaration:S7,react:v7,isForOfStatement:A7}=a7,{isCompatTag:C7}=v7;function P7(e){const{node:t,parent:r}=this;if(!cD(t,e)&&!D7(r,e))if(y7(t,e)){if(C7(t.name))return!1}else return!1;return xf(t,r,this.parentPath.parent)}function x7(){const{node:e,parent:t}=this;return g7(e)&&xf(e,t)}function F7(){const{node:e,parent:t}=this,r=this.parentPath.parent;return cD(e)&&o7(e,t,r)}function _7(){const{node:e,parent:t}=this;return b7(e)?!(S7(e)&&(h7(t,{left:e})||p7(t,{init:e}))):!1}function w7(){return this.isIdentifier()?this.isReferencedIdentifier():c7(this.node)}function I7(){return E7(this.node,this.parent)}function O7(){return xf(this.node,this.parent)}function N7(){return u7(this.node)}function B7(){return T7(this.node)}function L7(){return this.node&&!!this.node.loc}function k7(){return!this.isUser()}function R7(e){return this.scope.isPure(this.node,e)}function M7(){const{node:e}=this;return f7(e)?!0:d7(e)?e.importKind==="type"||e.importKind==="typeof":l7(e)?e.exportKind==="type":m7(e)?e.importKind==="type"||e.importKind==="typeof":!1}function j7(){var e;return fD(this.node)&&((e=this.parentPath)==null?void 0:e.isObjectPattern())}function $7(){var e;return fD(this.node)&&((e=this.parentPath)==null?void 0:e.isObjectExpression())}function U7(){return A7(this.node,{await:!0})}Tt.isExistentialTypeParam=function(){throw new Error("`path.isExistentialTypeParam` has been renamed to `path.isExistsTypeAnnotation()` in Babel 7.")},Tt.isNumericLiteralTypeAnnotation=function(){throw new Error("`path.isNumericLiteralTypeAnnotation()` has been renamed to `path.isNumberLiteralTypeAnnotation()` in Babel 7.")};var pd;function zo(){if(pd)return fn;pd=1,Object.defineProperty(fn,"__esModule",{value:!0}),fn.environmentVisitor=$,fn.explode=f,fn.isExplodedVisitor=c,fn.merge=d,fn.verify=p;var e=Je,t=Tt,r=Ge(),n=Zs();const{DEPRECATED_KEYS:i,DEPRECATED_ALIASES:s,FLIPPED_ALIAS_KEYS:a,TYPES:o,__internal__deprecationWarning:u}=r;function l(w){return w in e}function c(w){return w==null?void 0:w._exploded}function f(w){if(c(w))return w;w._exploded=!0;for(const P of Object.keys(w)){if(b(P))continue;const I=P.split("|");if(I.length===1)continue;const L=w[P];delete w[P];for(const F of I)w[F]=L}p(w),delete w.__esModule,D(w),g(w);for(const P of Object.keys(w)){if(b(P)||!l(P))continue;const I=w[P];for(const F of Object.keys(I))I[F]=y(P,I[F]);delete w[P];const L=e[P];if(L!==null)for(const F of L)w[F]?O(w[F],I):w[F]=I;else O(w,I)}for(const P of Object.keys(w)){if(b(P))continue;let I=a[P];if(P in i){const F=i[P];u(P,F,"Visitor "),I=[F]}else if(P in s){const F=s[P];u(P,F,"Visitor "),I=a[F]}if(!I)continue;const L=w[P];delete w[P];for(const F of I){const S=w[F];S?O(S,L):w[F]=Object.assign({},L)}}for(const P of Object.keys(w))b(P)||g(w[P]);return w}function p(w){if(!w._verified){if(typeof w=="function")throw new Error("You passed `traverse()` a function when it expected a visitor object, are you sure you didn't mean `{ enter: Function }`?");for(const P of Object.keys(w)){if((P==="enter"||P==="exit")&&h(P,w[P]),b(P))continue;if(!o.includes(P))throw new Error(`You gave us a visitor for the node type ${P} but it's not a valid type in @babel/traverse 7.25.3`);const I=w[P];if(typeof I=="object")for(const L of Object.keys(I))if(L==="enter"||L==="exit")h(`${P}.${L}`,I[L]);else throw new Error(`You passed \`traverse()\` a visitor object with the property ${P} that has the invalid property ${L}`)}w._verified=!0}}function h(w,P){const I=[].concat(P);for(const L of I)if(typeof L!="function")throw new TypeError(`Non-function found defined in ${w} with type ${typeof L}`)}function d(w,P=[],I){const L={_verified:!0,_exploded:!0};Object.defineProperty(L,"_exploded",{enumerable:!1}),Object.defineProperty(L,"_verified",{enumerable:!1});for(let F=0;F<w.length;F++){const S=f(w[F]),A=P[F];let B=S;(A||I)&&(B=m(B,A,I)),O(L,B);for(const x of Object.keys(S)){if(b(x))continue;let N=S[x];(A||I)&&(N=m(N,A,I));const H=L[x]||(L[x]={});O(H,N)}}return L}function m(w,P,I){const L={};for(const F of["enter","exit"]){let S=w[F];Array.isArray(S)&&(S=S.map(function(A){let B=A;return P&&(B=function(x){A.call(P,x,P)}),I&&(B=I(P==null?void 0:P.key,F,B)),B!==A&&(B.toString=()=>A.toString()),B}),L[F]=S)}return L}function D(w){for(const P of Object.keys(w)){if(b(P))continue;const I=w[P];typeof I=="function"&&(w[P]={enter:I})}}function g(w){w.enter&&!Array.isArray(w.enter)&&(w.enter=[w.enter]),w.exit&&!Array.isArray(w.exit)&&(w.exit=[w.exit])}function y(w,P){const I=`is${w}`,L=t[I],F=function(S){if(L.call(S))return P.apply(this,arguments)};return F.toString=()=>P.toString(),F}function b(w){return w[0]==="_"||w==="enter"||w==="exit"||w==="shouldSkip"||w==="denylist"||w==="noScope"||w==="skipKeys"||w==="blacklist"}function O(w,P){for(const I of["enter","exit"])P[I]&&(w[I]=[].concat(w[I]||[],P[I]))}const C={FunctionParent(w){w.isArrowFunctionExpression()||(w.skip(),w.isMethod()&&(w.requeueComputedKeyAndDecorators?w.requeueComputedKeyAndDecorators():n.requeueComputedKeyAndDecorators.call(w)))},Property(w){w.isObjectProperty()||(w.skip(),w.requeueComputedKeyAndDecorators?w.requeueComputedKeyAndDecorators():n.requeueComputedKeyAndDecorators.call(w))}};function $(w){return d([C,w])}return fn}var hd;function V7(){if(hd)return Zi;hd=1,Object.defineProperty(Zi,"__esModule",{value:!0}),Zi.default=void 0;var e=Ge(),t=jf(),r=zo(),n=Zs();const i={ReferencedIdentifier({node:a},o){a.name===o.oldName&&(a.name=o.newName)},Scope(a,o){a.scope.bindingIdentifierEquals(o.oldName,o.binding.identifier)||(a.skip(),a.isMethod()&&(a.requeueComputedKeyAndDecorators?a.requeueComputedKeyAndDecorators():n.requeueComputedKeyAndDecorators.call(a)))},ObjectProperty({node:a,scope:o},u){const{name:l}=a.key;if(a.shorthand&&(l===u.oldName||l===u.newName)&&o.getBindingIdentifier(l)===u.binding.identifier){a.shorthand=!1;{var c;(c=a.extra)!=null&&c.shorthand&&(a.extra.shorthand=!1)}}},"AssignmentExpression|Declaration|VariableDeclarator"(a,o){if(a.isVariableDeclaration())return;const u=a.isAssignmentExpression()?a.getAssignmentIdentifiers():a.getOuterBindingIdentifiers();for(const l in u)l===o.oldName&&(u[l].name=o.newName)}};class s{constructor(o,u,l){this.newName=l,this.oldName=u,this.binding=o}maybeConvertFromExportDeclaration(o){const u=o.parentPath;if(u.isExportDeclaration()){if(u.isExportDefaultDeclaration()){const{declaration:l}=u.node;if(e.isDeclaration(l)&&!l.id)return}u.isExportAllDeclaration()||u.splitExportDeclaration()}}maybeConvertFromClassFunctionDeclaration(o){return o}maybeConvertFromClassFunctionExpression(o){return o}rename(){const{binding:o,oldName:u,newName:l}=this,{scope:c,path:f}=o,p=f.find(d=>d.isDeclaration()||d.isFunctionExpression()||d.isClassExpression());p&&p.getOuterBindingIdentifiers()[u]===o.identifier&&this.maybeConvertFromExportDeclaration(p);const h=arguments[0]||c.block;(0,t.traverseNode)(h,(0,r.explode)(i),c,this,c.path,{discriminant:!0}),arguments[0]||(c.removeOwnBinding(u),c.bindings[l]=o,this.binding.identifier.name=l),p&&(this.maybeConvertFromClassFunctionDeclaration(f),this.maybeConvertFromClassFunctionExpression(f))}}return Zi.default=s,Zi}var Qo={};Object.defineProperty(Qo,"__esModule",{value:!0});Qo.default=void 0;class q7{constructor({identifier:t,scope:r,path:n,kind:i}){this.identifier=void 0,this.scope=void 0,this.path=void 0,this.kind=void 0,this.constantViolations=[],this.constant=!0,this.referencePaths=[],this.referenced=!1,this.references=0,this.identifier=t,this.scope=r,this.path=n,this.kind=i,(i==="var"||i==="hoisted")&&K7(n)&&this.reassign(n),this.clearValue()}deoptValue(){this.clearValue(),this.hasDeoptedValue=!0}setValue(t){this.hasDeoptedValue||(this.hasValue=!0,this.value=t)}clearValue(){this.hasDeoptedValue=!1,this.hasValue=!1,this.value=null}reassign(t){this.constant=!1,!this.constantViolations.includes(t)&&this.constantViolations.push(t)}reference(t){this.referencePaths.includes(t)||(this.referenced=!0,this.references++,this.referencePaths.push(t))}dereference(){this.references--,this.referenced=!!this.references}}Qo.default=q7;function K7(e){for(let{parentPath:t,key:r}=e;t;{parentPath:t,key:r}=t){if(t.isFunctionParent())return!1;if(t.isWhile()||t.isForXStatement()||t.isForStatement()&&r==="body")return!0}return!1}const W7={Array:!1,ArrayBuffer:!1,Atomics:!1,BigInt:!1,BigInt64Array:!1,BigUint64Array:!1,Boolean:!1,constructor:!1,DataView:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,Float32Array:!1,Float64Array:!1,Function:!1,globalThis:!1,hasOwnProperty:!1,Infinity:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,isFinite:!1,isNaN:!1,isPrototypeOf:!1,JSON:!1,Map:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,Promise:!1,propertyIsEnumerable:!1,Proxy:!1,RangeError:!1,ReferenceError:!1,Reflect:!1,RegExp:!1,Set:!1,SharedArrayBuffer:!1,String:!1,Symbol:!1,SyntaxError:!1,toLocaleString:!1,toString:!1,TypeError:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1,undefined:!1,unescape:!1,URIError:!1,valueOf:!1,WeakMap:!1,WeakSet:!1},H7={Array:!1,Boolean:!1,constructor:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,Function:!1,hasOwnProperty:!1,Infinity:!1,isFinite:!1,isNaN:!1,isPrototypeOf:!1,JSON:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,propertyIsEnumerable:!1,RangeError:!1,ReferenceError:!1,RegExp:!1,String:!1,SyntaxError:!1,toLocaleString:!1,toString:!1,TypeError:!1,undefined:!1,unescape:!1,URIError:!1,valueOf:!1},G7={Array:!1,ArrayBuffer:!1,Boolean:!1,constructor:!1,DataView:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,Float32Array:!1,Float64Array:!1,Function:!1,hasOwnProperty:!1,Infinity:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,isFinite:!1,isNaN:!1,isPrototypeOf:!1,JSON:!1,Map:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,Promise:!1,propertyIsEnumerable:!1,Proxy:!1,RangeError:!1,ReferenceError:!1,Reflect:!1,RegExp:!1,Set:!1,String:!1,Symbol:!1,SyntaxError:!1,toLocaleString:!1,toString:!1,TypeError:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1,undefined:!1,unescape:!1,URIError:!1,valueOf:!1,WeakMap:!1,WeakSet:!1},Y7={Array:!1,ArrayBuffer:!1,Atomics:!1,Boolean:!1,constructor:!1,DataView:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,Float32Array:!1,Float64Array:!1,Function:!1,hasOwnProperty:!1,Infinity:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,isFinite:!1,isNaN:!1,isPrototypeOf:!1,JSON:!1,Map:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,Promise:!1,propertyIsEnumerable:!1,Proxy:!1,RangeError:!1,ReferenceError:!1,Reflect:!1,RegExp:!1,Set:!1,SharedArrayBuffer:!1,String:!1,Symbol:!1,SyntaxError:!1,toLocaleString:!1,toString:!1,TypeError:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1,undefined:!1,unescape:!1,URIError:!1,valueOf:!1,WeakMap:!1,WeakSet:!1},X7={AbortController:!1,AbortSignal:!1,addEventListener:!1,alert:!1,AnalyserNode:!1,Animation:!1,AnimationEffectReadOnly:!1,AnimationEffectTiming:!1,AnimationEffectTimingReadOnly:!1,AnimationEvent:!1,AnimationPlaybackEvent:!1,AnimationTimeline:!1,applicationCache:!1,ApplicationCache:!1,ApplicationCacheErrorEvent:!1,atob:!1,Attr:!1,Audio:!1,AudioBuffer:!1,AudioBufferSourceNode:!1,AudioContext:!1,AudioDestinationNode:!1,AudioListener:!1,AudioNode:!1,AudioParam:!1,AudioProcessingEvent:!1,AudioScheduledSourceNode:!1,"AudioWorkletGlobalScope ":!1,AudioWorkletNode:!1,AudioWorkletProcessor:!1,BarProp:!1,BaseAudioContext:!1,BatteryManager:!1,BeforeUnloadEvent:!1,BiquadFilterNode:!1,Blob:!1,BlobEvent:!1,blur:!1,BroadcastChannel:!1,btoa:!1,BudgetService:!1,ByteLengthQueuingStrategy:!1,Cache:!1,caches:!1,CacheStorage:!1,cancelAnimationFrame:!1,cancelIdleCallback:!1,CanvasCaptureMediaStreamTrack:!1,CanvasGradient:!1,CanvasPattern:!1,CanvasRenderingContext2D:!1,ChannelMergerNode:!1,ChannelSplitterNode:!1,CharacterData:!1,clearInterval:!1,clearTimeout:!1,clientInformation:!1,ClipboardEvent:!1,close:!1,closed:!1,CloseEvent:!1,Comment:!1,CompositionEvent:!1,confirm:!1,console:!1,ConstantSourceNode:!1,ConvolverNode:!1,CountQueuingStrategy:!1,createImageBitmap:!1,Credential:!1,CredentialsContainer:!1,crypto:!1,Crypto:!1,CryptoKey:!1,CSS:!1,CSSConditionRule:!1,CSSFontFaceRule:!1,CSSGroupingRule:!1,CSSImportRule:!1,CSSKeyframeRule:!1,CSSKeyframesRule:!1,CSSMediaRule:!1,CSSNamespaceRule:!1,CSSPageRule:!1,CSSRule:!1,CSSRuleList:!1,CSSStyleDeclaration:!1,CSSStyleRule:!1,CSSStyleSheet:!1,CSSSupportsRule:!1,CustomElementRegistry:!1,customElements:!1,CustomEvent:!1,DataTransfer:!1,DataTransferItem:!1,DataTransferItemList:!1,defaultstatus:!1,defaultStatus:!1,DelayNode:!1,DeviceMotionEvent:!1,DeviceOrientationEvent:!1,devicePixelRatio:!1,dispatchEvent:!1,document:!1,Document:!1,DocumentFragment:!1,DocumentType:!1,DOMError:!1,DOMException:!1,DOMImplementation:!1,DOMMatrix:!1,DOMMatrixReadOnly:!1,DOMParser:!1,DOMPoint:!1,DOMPointReadOnly:!1,DOMQuad:!1,DOMRect:!1,DOMRectReadOnly:!1,DOMStringList:!1,DOMStringMap:!1,DOMTokenList:!1,DragEvent:!1,DynamicsCompressorNode:!1,Element:!1,ErrorEvent:!1,event:!1,Event:!1,EventSource:!1,EventTarget:!1,external:!1,fetch:!1,File:!1,FileList:!1,FileReader:!1,find:!1,focus:!1,FocusEvent:!1,FontFace:!1,FontFaceSetLoadEvent:!1,FormData:!1,frameElement:!1,frames:!1,GainNode:!1,Gamepad:!1,GamepadButton:!1,GamepadEvent:!1,getComputedStyle:!1,getSelection:!1,HashChangeEvent:!1,Headers:!1,history:!1,History:!1,HTMLAllCollection:!1,HTMLAnchorElement:!1,HTMLAreaElement:!1,HTMLAudioElement:!1,HTMLBaseElement:!1,HTMLBodyElement:!1,HTMLBRElement:!1,HTMLButtonElement:!1,HTMLCanvasElement:!1,HTMLCollection:!1,HTMLContentElement:!1,HTMLDataElement:!1,HTMLDataListElement:!1,HTMLDetailsElement:!1,HTMLDialogElement:!1,HTMLDirectoryElement:!1,HTMLDivElement:!1,HTMLDListElement:!1,HTMLDocument:!1,HTMLElement:!1,HTMLEmbedElement:!1,HTMLFieldSetElement:!1,HTMLFontElement:!1,HTMLFormControlsCollection:!1,HTMLFormElement:!1,HTMLFrameElement:!1,HTMLFrameSetElement:!1,HTMLHeadElement:!1,HTMLHeadingElement:!1,HTMLHRElement:!1,HTMLHtmlElement:!1,HTMLIFrameElement:!1,HTMLImageElement:!1,HTMLInputElement:!1,HTMLLabelElement:!1,HTMLLegendElement:!1,HTMLLIElement:!1,HTMLLinkElement:!1,HTMLMapElement:!1,HTMLMarqueeElement:!1,HTMLMediaElement:!1,HTMLMenuElement:!1,HTMLMetaElement:!1,HTMLMeterElement:!1,HTMLModElement:!1,HTMLObjectElement:!1,HTMLOListElement:!1,HTMLOptGroupElement:!1,HTMLOptionElement:!1,HTMLOptionsCollection:!1,HTMLOutputElement:!1,HTMLParagraphElement:!1,HTMLParamElement:!1,HTMLPictureElement:!1,HTMLPreElement:!1,HTMLProgressElement:!1,HTMLQuoteElement:!1,HTMLScriptElement:!1,HTMLSelectElement:!1,HTMLShadowElement:!1,HTMLSlotElement:!1,HTMLSourceElement:!1,HTMLSpanElement:!1,HTMLStyleElement:!1,HTMLTableCaptionElement:!1,HTMLTableCellElement:!1,HTMLTableColElement:!1,HTMLTableElement:!1,HTMLTableRowElement:!1,HTMLTableSectionElement:!1,HTMLTemplateElement:!1,HTMLTextAreaElement:!1,HTMLTimeElement:!1,HTMLTitleElement:!1,HTMLTrackElement:!1,HTMLUListElement:!1,HTMLUnknownElement:!1,HTMLVideoElement:!1,IDBCursor:!1,IDBCursorWithValue:!1,IDBDatabase:!1,IDBFactory:!1,IDBIndex:!1,IDBKeyRange:!1,IDBObjectStore:!1,IDBOpenDBRequest:!1,IDBRequest:!1,IDBTransaction:!1,IDBVersionChangeEvent:!1,IdleDeadline:!1,IIRFilterNode:!1,Image:!1,ImageBitmap:!1,ImageBitmapRenderingContext:!1,ImageCapture:!1,ImageData:!1,indexedDB:!1,innerHeight:!1,innerWidth:!1,InputEvent:!1,IntersectionObserver:!1,IntersectionObserverEntry:!1,Intl:!1,isSecureContext:!1,KeyboardEvent:!1,KeyframeEffect:!1,KeyframeEffectReadOnly:!1,length:!1,localStorage:!1,location:!0,Location:!1,locationbar:!1,matchMedia:!1,MediaDeviceInfo:!1,MediaDevices:!1,MediaElementAudioSourceNode:!1,MediaEncryptedEvent:!1,MediaError:!1,MediaKeyMessageEvent:!1,MediaKeySession:!1,MediaKeyStatusMap:!1,MediaKeySystemAccess:!1,MediaList:!1,MediaQueryList:!1,MediaQueryListEvent:!1,MediaRecorder:!1,MediaSettingsRange:!1,MediaSource:!1,MediaStream:!1,MediaStreamAudioDestinationNode:!1,MediaStreamAudioSourceNode:!1,MediaStreamEvent:!1,MediaStreamTrack:!1,MediaStreamTrackEvent:!1,menubar:!1,MessageChannel:!1,MessageEvent:!1,MessagePort:!1,MIDIAccess:!1,MIDIConnectionEvent:!1,MIDIInput:!1,MIDIInputMap:!1,MIDIMessageEvent:!1,MIDIOutput:!1,MIDIOutputMap:!1,MIDIPort:!1,MimeType:!1,MimeTypeArray:!1,MouseEvent:!1,moveBy:!1,moveTo:!1,MutationEvent:!1,MutationObserver:!1,MutationRecord:!1,name:!1,NamedNodeMap:!1,NavigationPreloadManager:!1,navigator:!1,Navigator:!1,NetworkInformation:!1,Node:!1,NodeFilter:!1,NodeIterator:!1,NodeList:!1,Notification:!1,OfflineAudioCompletionEvent:!1,OfflineAudioContext:!1,offscreenBuffering:!1,OffscreenCanvas:!0,onabort:!0,onafterprint:!0,onanimationend:!0,onanimationiteration:!0,onanimationstart:!0,onappinstalled:!0,onauxclick:!0,onbeforeinstallprompt:!0,onbeforeprint:!0,onbeforeunload:!0,onblur:!0,oncancel:!0,oncanplay:!0,oncanplaythrough:!0,onchange:!0,onclick:!0,onclose:!0,oncontextmenu:!0,oncuechange:!0,ondblclick:!0,ondevicemotion:!0,ondeviceorientation:!0,ondeviceorientationabsolute:!0,ondrag:!0,ondragend:!0,ondragenter:!0,ondragleave:!0,ondragover:!0,ondragstart:!0,ondrop:!0,ondurationchange:!0,onemptied:!0,onended:!0,onerror:!0,onfocus:!0,ongotpointercapture:!0,onhashchange:!0,oninput:!0,oninvalid:!0,onkeydown:!0,onkeypress:!0,onkeyup:!0,onlanguagechange:!0,onload:!0,onloadeddata:!0,onloadedmetadata:!0,onloadstart:!0,onlostpointercapture:!0,onmessage:!0,onmessageerror:!0,onmousedown:!0,onmouseenter:!0,onmouseleave:!0,onmousemove:!0,onmouseout:!0,onmouseover:!0,onmouseup:!0,onmousewheel:!0,onoffline:!0,ononline:!0,onpagehide:!0,onpageshow:!0,onpause:!0,onplay:!0,onplaying:!0,onpointercancel:!0,onpointerdown:!0,onpointerenter:!0,onpointerleave:!0,onpointermove:!0,onpointerout:!0,onpointerover:!0,onpointerup:!0,onpopstate:!0,onprogress:!0,onratechange:!0,onrejectionhandled:!0,onreset:!0,onresize:!0,onscroll:!0,onsearch:!0,onseeked:!0,onseeking:!0,onselect:!0,onstalled:!0,onstorage:!0,onsubmit:!0,onsuspend:!0,ontimeupdate:!0,ontoggle:!0,ontransitionend:!0,onunhandledrejection:!0,onunload:!0,onvolumechange:!0,onwaiting:!0,onwheel:!0,open:!1,openDatabase:!1,opener:!1,Option:!1,origin:!1,OscillatorNode:!1,outerHeight:!1,outerWidth:!1,PageTransitionEvent:!1,pageXOffset:!1,pageYOffset:!1,PannerNode:!1,parent:!1,Path2D:!1,PaymentAddress:!1,PaymentRequest:!1,PaymentRequestUpdateEvent:!1,PaymentResponse:!1,performance:!1,Performance:!1,PerformanceEntry:!1,PerformanceLongTaskTiming:!1,PerformanceMark:!1,PerformanceMeasure:!1,PerformanceNavigation:!1,PerformanceNavigationTiming:!1,PerformanceObserver:!1,PerformanceObserverEntryList:!1,PerformancePaintTiming:!1,PerformanceResourceTiming:!1,PerformanceTiming:!1,PeriodicWave:!1,Permissions:!1,PermissionStatus:!1,personalbar:!1,PhotoCapabilities:!1,Plugin:!1,PluginArray:!1,PointerEvent:!1,PopStateEvent:!1,postMessage:!1,Presentation:!1,PresentationAvailability:!1,PresentationConnection:!1,PresentationConnectionAvailableEvent:!1,PresentationConnectionCloseEvent:!1,PresentationConnectionList:!1,PresentationReceiver:!1,PresentationRequest:!1,print:!1,ProcessingInstruction:!1,ProgressEvent:!1,PromiseRejectionEvent:!1,prompt:!1,PushManager:!1,PushSubscription:!1,PushSubscriptionOptions:!1,queueMicrotask:!1,RadioNodeList:!1,Range:!1,ReadableStream:!1,registerProcessor:!1,RemotePlayback:!1,removeEventListener:!1,Request:!1,requestAnimationFrame:!1,requestIdleCallback:!1,resizeBy:!1,ResizeObserver:!1,ResizeObserverEntry:!1,resizeTo:!1,Response:!1,RTCCertificate:!1,RTCDataChannel:!1,RTCDataChannelEvent:!1,RTCDtlsTransport:!1,RTCIceCandidate:!1,RTCIceGatherer:!1,RTCIceTransport:!1,RTCPeerConnection:!1,RTCPeerConnectionIceEvent:!1,RTCRtpContributingSource:!1,RTCRtpReceiver:!1,RTCRtpSender:!1,RTCSctpTransport:!1,RTCSessionDescription:!1,RTCStatsReport:!1,RTCTrackEvent:!1,screen:!1,Screen:!1,screenLeft:!1,ScreenOrientation:!1,screenTop:!1,screenX:!1,screenY:!1,ScriptProcessorNode:!1,scroll:!1,scrollbars:!1,scrollBy:!1,scrollTo:!1,scrollX:!1,scrollY:!1,SecurityPolicyViolationEvent:!1,Selection:!1,self:!1,ServiceWorker:!1,ServiceWorkerContainer:!1,ServiceWorkerRegistration:!1,sessionStorage:!1,setInterval:!1,setTimeout:!1,ShadowRoot:!1,SharedWorker:!1,SourceBuffer:!1,SourceBufferList:!1,speechSynthesis:!1,SpeechSynthesisEvent:!1,SpeechSynthesisUtterance:!1,StaticRange:!1,status:!1,statusbar:!1,StereoPannerNode:!1,stop:!1,Storage:!1,StorageEvent:!1,StorageManager:!1,styleMedia:!1,StyleSheet:!1,StyleSheetList:!1,SubtleCrypto:!1,SVGAElement:!1,SVGAngle:!1,SVGAnimatedAngle:!1,SVGAnimatedBoolean:!1,SVGAnimatedEnumeration:!1,SVGAnimatedInteger:!1,SVGAnimatedLength:!1,SVGAnimatedLengthList:!1,SVGAnimatedNumber:!1,SVGAnimatedNumberList:!1,SVGAnimatedPreserveAspectRatio:!1,SVGAnimatedRect:!1,SVGAnimatedString:!1,SVGAnimatedTransformList:!1,SVGAnimateElement:!1,SVGAnimateMotionElement:!1,SVGAnimateTransformElement:!1,SVGAnimationElement:!1,SVGCircleElement:!1,SVGClipPathElement:!1,SVGComponentTransferFunctionElement:!1,SVGDefsElement:!1,SVGDescElement:!1,SVGDiscardElement:!1,SVGElement:!1,SVGEllipseElement:!1,SVGFEBlendElement:!1,SVGFEColorMatrixElement:!1,SVGFEComponentTransferElement:!1,SVGFECompositeElement:!1,SVGFEConvolveMatrixElement:!1,SVGFEDiffuseLightingElement:!1,SVGFEDisplacementMapElement:!1,SVGFEDistantLightElement:!1,SVGFEDropShadowElement:!1,SVGFEFloodElement:!1,SVGFEFuncAElement:!1,SVGFEFuncBElement:!1,SVGFEFuncGElement:!1,SVGFEFuncRElement:!1,SVGFEGaussianBlurElement:!1,SVGFEImageElement:!1,SVGFEMergeElement:!1,SVGFEMergeNodeElement:!1,SVGFEMorphologyElement:!1,SVGFEOffsetElement:!1,SVGFEPointLightElement:!1,SVGFESpecularLightingElement:!1,SVGFESpotLightElement:!1,SVGFETileElement:!1,SVGFETurbulenceElement:!1,SVGFilterElement:!1,SVGForeignObjectElement:!1,SVGGElement:!1,SVGGeometryElement:!1,SVGGradientElement:!1,SVGGraphicsElement:!1,SVGImageElement:!1,SVGLength:!1,SVGLengthList:!1,SVGLinearGradientElement:!1,SVGLineElement:!1,SVGMarkerElement:!1,SVGMaskElement:!1,SVGMatrix:!1,SVGMetadataElement:!1,SVGMPathElement:!1,SVGNumber:!1,SVGNumberList:!1,SVGPathElement:!1,SVGPatternElement:!1,SVGPoint:!1,SVGPointList:!1,SVGPolygonElement:!1,SVGPolylineElement:!1,SVGPreserveAspectRatio:!1,SVGRadialGradientElement:!1,SVGRect:!1,SVGRectElement:!1,SVGScriptElement:!1,SVGSetElement:!1,SVGStopElement:!1,SVGStringList:!1,SVGStyleElement:!1,SVGSVGElement:!1,SVGSwitchElement:!1,SVGSymbolElement:!1,SVGTextContentElement:!1,SVGTextElement:!1,SVGTextPathElement:!1,SVGTextPositioningElement:!1,SVGTitleElement:!1,SVGTransform:!1,SVGTransformList:!1,SVGTSpanElement:!1,SVGUnitTypes:!1,SVGUseElement:!1,SVGViewElement:!1,TaskAttributionTiming:!1,Text:!1,TextDecoder:!1,TextEncoder:!1,TextEvent:!1,TextMetrics:!1,TextTrack:!1,TextTrackCue:!1,TextTrackCueList:!1,TextTrackList:!1,TimeRanges:!1,toolbar:!1,top:!1,Touch:!1,TouchEvent:!1,TouchList:!1,TrackEvent:!1,TransitionEvent:!1,TreeWalker:!1,UIEvent:!1,URL:!1,URLSearchParams:!1,ValidityState:!1,visualViewport:!1,VisualViewport:!1,VTTCue:!1,WaveShaperNode:!1,WebAssembly:!1,WebGL2RenderingContext:!1,WebGLActiveInfo:!1,WebGLBuffer:!1,WebGLContextEvent:!1,WebGLFramebuffer:!1,WebGLProgram:!1,WebGLQuery:!1,WebGLRenderbuffer:!1,WebGLRenderingContext:!1,WebGLSampler:!1,WebGLShader:!1,WebGLShaderPrecisionFormat:!1,WebGLSync:!1,WebGLTexture:!1,WebGLTransformFeedback:!1,WebGLUniformLocation:!1,WebGLVertexArrayObject:!1,WebSocket:!1,WheelEvent:!1,window:!1,Window:!1,Worker:!1,WritableStream:!1,XMLDocument:!1,XMLHttpRequest:!1,XMLHttpRequestEventTarget:!1,XMLHttpRequestUpload:!1,XMLSerializer:!1,XPathEvaluator:!1,XPathExpression:!1,XPathResult:!1,XSLTProcessor:!1},J7={addEventListener:!1,applicationCache:!1,atob:!1,Blob:!1,BroadcastChannel:!1,btoa:!1,Cache:!1,caches:!1,clearInterval:!1,clearTimeout:!1,close:!0,console:!1,fetch:!1,FileReaderSync:!1,FormData:!1,Headers:!1,IDBCursor:!1,IDBCursorWithValue:!1,IDBDatabase:!1,IDBFactory:!1,IDBIndex:!1,IDBKeyRange:!1,IDBObjectStore:!1,IDBOpenDBRequest:!1,IDBRequest:!1,IDBTransaction:!1,IDBVersionChangeEvent:!1,ImageData:!1,importScripts:!0,indexedDB:!1,location:!1,MessageChannel:!1,MessagePort:!1,name:!1,navigator:!1,Notification:!1,onclose:!0,onconnect:!0,onerror:!0,onlanguagechange:!0,onmessage:!0,onoffline:!0,ononline:!0,onrejectionhandled:!0,onunhandledrejection:!0,performance:!1,Performance:!1,PerformanceEntry:!1,PerformanceMark:!1,PerformanceMeasure:!1,PerformanceNavigation:!1,PerformanceResourceTiming:!1,PerformanceTiming:!1,postMessage:!0,Promise:!1,queueMicrotask:!1,removeEventListener:!1,Request:!1,Response:!1,self:!0,ServiceWorkerRegistration:!1,setInterval:!1,setTimeout:!1,TextDecoder:!1,TextEncoder:!1,URL:!1,URLSearchParams:!1,WebSocket:!1,Worker:!1,WorkerGlobalScope:!1,XMLHttpRequest:!1},z7={__dirname:!1,__filename:!1,Buffer:!1,clearImmediate:!1,clearInterval:!1,clearTimeout:!1,console:!1,exports:!0,global:!1,Intl:!1,module:!1,process:!1,queueMicrotask:!1,require:!1,setImmediate:!1,setInterval:!1,setTimeout:!1,TextDecoder:!1,TextEncoder:!1,URL:!1,URLSearchParams:!1},Q7={exports:!0,global:!1,module:!1,require:!1},Z7={define:!1,require:!1},ej={after:!1,afterEach:!1,before:!1,beforeEach:!1,context:!1,describe:!1,it:!1,mocha:!1,run:!1,setup:!1,specify:!1,suite:!1,suiteSetup:!1,suiteTeardown:!1,teardown:!1,test:!1,xcontext:!1,xdescribe:!1,xit:!1,xspecify:!1},tj={afterAll:!1,afterEach:!1,beforeAll:!1,beforeEach:!1,describe:!1,expect:!1,fail:!1,fdescribe:!1,fit:!1,it:!1,jasmine:!1,pending:!1,runs:!1,spyOn:!1,spyOnProperty:!1,waits:!1,waitsFor:!1,xdescribe:!1,xit:!1},rj={afterAll:!1,afterEach:!1,beforeAll:!1,beforeEach:!1,describe:!1,expect:!1,fdescribe:!1,fit:!1,it:!1,jest:!1,pit:!1,require:!1,test:!1,xdescribe:!1,xit:!1,xtest:!1},nj={asyncTest:!1,deepEqual:!1,equal:!1,expect:!1,module:!1,notDeepEqual:!1,notEqual:!1,notOk:!1,notPropEqual:!1,notStrictEqual:!1,ok:!1,propEqual:!1,QUnit:!1,raises:!1,start:!1,stop:!1,strictEqual:!1,test:!1,throws:!1},ij={console:!0,exports:!0,phantom:!0,require:!0,WebPage:!0},sj={emit:!1,exports:!1,getRow:!1,log:!1,module:!1,provides:!1,require:!1,respond:!1,send:!1,start:!1,sum:!1},aj={defineClass:!1,deserialize:!1,gc:!1,help:!1,importClass:!1,importPackage:!1,java:!1,load:!1,loadClass:!1,Packages:!1,print:!1,quit:!1,readFile:!1,readUrl:!1,runCommand:!1,seal:!1,serialize:!1,spawn:!1,sync:!1,toint32:!1,version:!1},oj={__DIR__:!1,__FILE__:!1,__LINE__:!1,com:!1,edu:!1,exit:!1,java:!1,Java:!1,javafx:!1,JavaImporter:!1,javax:!1,JSAdapter:!1,load:!1,loadWithNewGlobal:!1,org:!1,Packages:!1,print:!1,quit:!1},uj={ActiveXObject:!0,Enumerator:!0,GetObject:!0,ScriptEngine:!0,ScriptEngineBuildVersion:!0,ScriptEngineMajorVersion:!0,ScriptEngineMinorVersion:!0,VBArray:!0,WScript:!0,WSH:!0,XDomainRequest:!0},lj={$:!1,jQuery:!1},cj={YAHOO:!1,YAHOO_config:!1,YUI:!1,YUI_config:!1},fj={cat:!1,cd:!1,chmod:!1,config:!1,cp:!1,dirs:!1,echo:!1,env:!1,error:!1,exec:!1,exit:!1,find:!1,grep:!1,ln:!1,ls:!1,mkdir:!1,mv:!1,popd:!1,pushd:!1,pwd:!1,rm:!1,sed:!1,set:!1,target:!1,tempdir:!1,test:!1,touch:!1,which:!1},pj={$:!1,$$:!1,$A:!1,$break:!1,$continue:!1,$F:!1,$H:!1,$R:!1,$w:!1,Abstract:!1,Ajax:!1,Autocompleter:!1,Builder:!1,Class:!1,Control:!1,Draggable:!1,Draggables:!1,Droppables:!1,Effect:!1,Element:!1,Enumerable:!1,Event:!1,Field:!1,Form:!1,Hash:!1,Insertion:!1,ObjectRange:!1,PeriodicalExecuter:!1,Position:!1,Prototype:!1,Scriptaculous:!1,Selector:!1,Sortable:!1,SortableObserver:!1,Sound:!1,Template:!1,Toggle:!1,Try:!1},hj={_:!1,$:!1,Accounts:!1,AccountsClient:!1,AccountsCommon:!1,AccountsServer:!1,App:!1,Assets:!1,Blaze:!1,check:!1,Cordova:!1,DDP:!1,DDPRateLimiter:!1,DDPServer:!1,Deps:!1,EJSON:!1,Email:!1,HTTP:!1,Log:!1,Match:!1,Meteor:!1,Mongo:!1,MongoInternals:!1,Npm:!1,Package:!1,Plugin:!1,process:!1,Random:!1,ReactiveDict:!1,ReactiveVar:!1,Router:!1,ServiceConfiguration:!1,Session:!1,share:!1,Spacebars:!1,Template:!1,Tinytest:!1,Tracker:!1,UI:!1,Utils:!1,WebApp:!1,WebAppInternals:!1},dj={_isWindows:!1,_rand:!1,BulkWriteResult:!1,cat:!1,cd:!1,connect:!1,db:!1,getHostName:!1,getMemInfo:!1,hostname:!1,ISODate:!1,listFiles:!1,load:!1,ls:!1,md5sumFile:!1,mkdir:!1,Mongo:!1,NumberInt:!1,NumberLong:!1,ObjectId:!1,PlanCache:!1,print:!1,printjson:!1,pwd:!1,quit:!1,removeFile:!1,rs:!1,sh:!1,UUID:!1,version:!1,WriteResult:!1},mj={$:!1,Application:!1,Automation:!1,console:!1,delay:!1,Library:!1,ObjC:!1,ObjectSpecifier:!1,Path:!1,Progress:!1,Ref:!1},yj={addEventListener:!1,applicationCache:!1,atob:!1,Blob:!1,BroadcastChannel:!1,btoa:!1,Cache:!1,caches:!1,CacheStorage:!1,clearInterval:!1,clearTimeout:!1,Client:!1,clients:!1,Clients:!1,close:!0,console:!1,ExtendableEvent:!1,ExtendableMessageEvent:!1,fetch:!1,FetchEvent:!1,FileReaderSync:!1,FormData:!1,Headers:!1,IDBCursor:!1,IDBCursorWithValue:!1,IDBDatabase:!1,IDBFactory:!1,IDBIndex:!1,IDBKeyRange:!1,IDBObjectStore:!1,IDBOpenDBRequest:!1,IDBRequest:!1,IDBTransaction:!1,IDBVersionChangeEvent:!1,ImageData:!1,importScripts:!1,indexedDB:!1,location:!1,MessageChannel:!1,MessagePort:!1,name:!1,navigator:!1,Notification:!1,onclose:!0,onconnect:!0,onerror:!0,onfetch:!0,oninstall:!0,onlanguagechange:!0,onmessage:!0,onmessageerror:!0,onnotificationclick:!0,onnotificationclose:!0,onoffline:!0,ononline:!0,onpush:!0,onpushsubscriptionchange:!0,onrejectionhandled:!0,onsync:!0,onunhandledrejection:!0,performance:!1,Performance:!1,PerformanceEntry:!1,PerformanceMark:!1,PerformanceMeasure:!1,PerformanceNavigation:!1,PerformanceResourceTiming:!1,PerformanceTiming:!1,postMessage:!0,Promise:!1,queueMicrotask:!1,registration:!1,removeEventListener:!1,Request:!1,Response:!1,self:!1,ServiceWorker:!1,ServiceWorkerContainer:!1,ServiceWorkerGlobalScope:!1,ServiceWorkerMessageEvent:!1,ServiceWorkerRegistration:!1,setInterval:!1,setTimeout:!1,skipWaiting:!1,TextDecoder:!1,TextEncoder:!1,URL:!1,URLSearchParams:!1,WebSocket:!1,WindowClient:!1,Worker:!1,WorkerGlobalScope:!1,XMLHttpRequest:!1},Dj={advanceClock:!1,fakeClearInterval:!1,fakeClearTimeout:!1,fakeSetInterval:!1,fakeSetTimeout:!1,resetTimeouts:!1,waitsForPromise:!1},gj={andThen:!1,click:!1,currentPath:!1,currentRouteName:!1,currentURL:!1,fillIn:!1,find:!1,findAll:!1,findWithAssert:!1,keyEvent:!1,pauseTest:!1,resumeTest:!1,triggerEvent:!1,visit:!1,wait:!1},Ej={$:!1,$$:!1,browser:!1,by:!1,By:!1,DartObject:!1,element:!1,protractor:!1},bj={browser:!1,chrome:!1,opr:!1},Tj={cloneInto:!1,createObjectIn:!1,exportFunction:!1,GM:!1,GM_addStyle:!1,GM_deleteValue:!1,GM_getResourceText:!1,GM_getResourceURL:!1,GM_getValue:!1,GM_info:!1,GM_listValues:!1,GM_log:!1,GM_openInTab:!1,GM_registerMenuCommand:!1,GM_setClipboard:!1,GM_setValue:!1,GM_xmlhttpRequest:!1,unsafeWindow:!1},Sj={$:!1,$_:!1,$$:!1,$0:!1,$1:!1,$2:!1,$3:!1,$4:!1,$x:!1,chrome:!1,clear:!1,copy:!1,debug:!1,dir:!1,dirxml:!1,getEventListeners:!1,inspect:!1,keys:!1,monitor:!1,monitorEvents:!1,profile:!1,profileEnd:!1,queryObjects:!1,table:!1,undebug:!1,unmonitor:!1,unmonitorEvents:!1,values:!1},vj={builtin:W7,es5:H7,es2015:G7,es2017:Y7,browser:X7,worker:J7,node:z7,commonjs:Q7,amd:Z7,mocha:ej,jasmine:tj,jest:rj,qunit:nj,phantomjs:ij,couch:sj,rhino:aj,nashorn:oj,wsh:uj,jquery:lj,yui:cj,shelljs:fj,prototypejs:pj,meteor:hj,mongo:dj,applescript:mj,serviceworker:yj,atomtest:Dj,embertest:gj,protractor:Ej,"shared-node-browser":{clearInterval:!1,clearTimeout:!1,console:!1,setInterval:!1,setTimeout:!1,URL:!1,URLSearchParams:!1},webextensions:bj,greasemonkey:Tj,devtools:Sj};var Aj=vj,_t={};Object.defineProperty(_t,"__esModule",{value:!0});_t.clear=Cj;_t.clearPath=pD;_t.clearScope=hD;_t.getCachedPaths=Pj;_t.getOrCreateCachedPaths=xj;_t.scope=_t.path=void 0;let bo=_t.path=new WeakMap;_t.scope=new WeakMap;function Cj(){pD(),hD()}function pD(){_t.path=bo=new WeakMap}function hD(){_t.scope=new WeakMap}const Wl=Object.freeze({});function Pj(e,t){var r,n;return e=null,(r=bo.get((n=e)!=null?n:Wl))==null?void 0:r.get(t)}function xj(e,t){var r,n;e=null;let i=bo.get((r=e)!=null?r:Wl);i||bo.set((n=e)!=null?n:Wl,i=new WeakMap);let s=i.get(t);return s||i.set(t,s=new Map),s}var dd;function dD(){if(dd)return Qi;dd=1,Object.defineProperty(Qi,"__esModule",{value:!0}),Qi.default=void 0;var e=V7(),t=hu(),r=Qo,n=Aj,i=Ge(),s=i,a=_t,o=zo();const{NOT_LOCAL_BINDING:u,assignmentExpression:l,callExpression:c,cloneNode:f,getBindingIdentifiers:p,identifier:h,isArrayExpression:d,isBinary:m,isCallExpression:D,isClass:g,isClassBody:y,isClassDeclaration:b,isExportAllDeclaration:O,isExportDefaultDeclaration:C,isExportNamedDeclaration:$,isFunctionDeclaration:w,isIdentifier:P,isImportDeclaration:I,isLiteral:L,isMemberExpression:F,isMethod:S,isModuleSpecifier:A,isNullLiteral:B,isObjectExpression:x,isProperty:N,isPureish:H,isRegExpLiteral:T,isSuper:_,isTaggedTemplateExpression:R,isTemplateLiteral:Q,isThisExpression:ne,isUnaryExpression:X,isVariableDeclaration:ae,expressionStatement:ie,matchesPattern:te,memberExpression:Y,numericLiteral:re,toIdentifier:De,variableDeclaration:de,variableDeclarator:Ce,isRecordExpression:Oe,isTupleExpression:Te,isObjectProperty:Be,isTopicReference:ze,isMetaProperty:_e,isPrivateName:Ne,isExportDeclaration:ge,buildUndefinedNode:Ae,sequenceExpression:st}=i;function fe(V,E){switch(V==null?void 0:V.type){default:if(I(V)||ge(V)){var j;if((O(V)||$(V)||I(V))&&V.source)fe(V.source,E);else if(($(V)||I(V))&&(j=V.specifiers)!=null&&j.length)for(const z of V.specifiers)fe(z,E);else(C(V)||$(V))&&V.declaration&&fe(V.declaration,E)}else A(V)?fe(V.local,E):L(V)&&!B(V)&&!T(V)&&!Q(V)&&E.push(V.value);break;case"MemberExpression":case"OptionalMemberExpression":case"JSXMemberExpression":fe(V.object,E),fe(V.property,E);break;case"Identifier":case"JSXIdentifier":E.push(V.name);break;case"CallExpression":case"OptionalCallExpression":case"NewExpression":fe(V.callee,E);break;case"ObjectExpression":case"ObjectPattern":for(const z of V.properties)fe(z,E);break;case"SpreadElement":case"RestElement":fe(V.argument,E);break;case"ObjectProperty":case"ObjectMethod":case"ClassProperty":case"ClassMethod":case"ClassPrivateProperty":case"ClassPrivateMethod":fe(V.key,E);break;case"ThisExpression":E.push("this");break;case"Super":E.push("super");break;case"Import":E.push("import");break;case"DoExpression":E.push("do");break;case"YieldExpression":E.push("yield"),fe(V.argument,E);break;case"AwaitExpression":E.push("await"),fe(V.argument,E);break;case"AssignmentExpression":fe(V.left,E);break;case"VariableDeclarator":fe(V.id,E);break;case"FunctionExpression":case"FunctionDeclaration":case"ClassExpression":case"ClassDeclaration":fe(V.id,E);break;case"PrivateName":fe(V.id,E);break;case"ParenthesizedExpression":fe(V.expression,E);break;case"UnaryExpression":case"UpdateExpression":fe(V.argument,E);break;case"MetaProperty":fe(V.meta,E),fe(V.property,E);break;case"JSXElement":fe(V.openingElement,E);break;case"JSXOpeningElement":fe(V.name,E);break;case"JSXFragment":fe(V.openingFragment,E);break;case"JSXOpeningFragment":E.push("Fragment");break;case"JSXNamespacedName":fe(V.namespace,E),fe(V.name,E);break}}const Ue={ForStatement(V){const E=V.get("init");if(E.isVar()){const{scope:j}=V;(j.getFunctionParent()||j.getProgramParent()).registerBinding("var",E)}},Declaration(V){if(V.isBlockScoped()||V.isImportDeclaration()||V.isExportDeclaration())return;(V.scope.getFunctionParent()||V.scope.getProgramParent()).registerDeclaration(V)},ImportDeclaration(V){V.scope.getBlockParent().registerDeclaration(V)},ReferencedIdentifier(V,E){E.references.push(V)},ForXStatement(V,E){const j=V.get("left");if(j.isPattern()||j.isIdentifier())E.constantViolations.push(V);else if(j.isVar()){const{scope:z}=V;(z.getFunctionParent()||z.getProgramParent()).registerBinding("var",j)}},ExportDeclaration:{exit(V){const{node:E,scope:j}=V;if(O(E))return;const z=E.declaration;if(b(z)||w(z)){const se=z.id;if(!se)return;const oe=j.getBinding(se.name);oe==null||oe.reference(V)}else if(ae(z))for(const se of z.declarations)for(const oe of Object.keys(p(se))){const ce=j.getBinding(oe);ce==null||ce.reference(V)}}},LabeledStatement(V){V.scope.getBlockParent().registerDeclaration(V)},AssignmentExpression(V,E){E.assignments.push(V)},UpdateExpression(V,E){E.constantViolations.push(V)},UnaryExpression(V,E){V.node.operator==="delete"&&E.constantViolations.push(V)},BlockScoped(V){let E=V.scope;if(E.path===V&&(E=E.parent),E.getBlockParent().registerDeclaration(V),V.isClassDeclaration()&&V.node.id){const se=V.node.id.name;V.scope.bindings[se]=V.scope.parent.getBinding(se)}},CatchClause(V){V.scope.registerBinding("let",V)},Function(V){const E=V.get("params");for(const j of E)V.scope.registerBinding("param",j);V.isFunctionExpression()&&V.has("id")&&!V.get("id").node[u]&&V.scope.registerBinding("local",V.get("id"),V)},ClassExpression(V){V.has("id")&&!V.get("id").node[u]&&V.scope.registerBinding("local",V.get("id"),V)},TSTypeAnnotation(V){V.skip()}};let Z=0;class G{constructor(E){this.uid=void 0,this.path=void 0,this.block=void 0,this.labels=void 0,this.inited=void 0,this.bindings=void 0,this.references=void 0,this.globals=void 0,this.uids=void 0,this.data=void 0,this.crawling=void 0;const{node:j}=E,z=a.scope.get(j);if((z==null?void 0:z.path)===E)return z;a.scope.set(j,this),this.uid=Z++,this.block=j,this.path=E,this.labels=new Map,this.inited=!1}get parent(){var E;let j,z=this.path;do{var se;const oe=z.key==="key"||z.listKey==="decorators";z=z.parentPath,oe&&z.isMethod()&&(z=z.parentPath),(se=z)!=null&&se.isScope()&&(j=z)}while(z&&!j);return(E=j)==null?void 0:E.scope}get parentBlock(){return this.path.parent}get hub(){return this.path.hub}traverse(E,j,z){(0,t.default)(E,j,this,z,this.path)}generateDeclaredUidIdentifier(E){const j=this.generateUidIdentifier(E);return this.push({id:j}),f(j)}generateUidIdentifier(E){return h(this.generateUid(E))}generateUid(E="temp"){E=De(E).replace(/^_+/,"").replace(/\d+$/g,"");let j,z=1;do j=this._generateUid(E,z),z++;while(this.hasLabel(j)||this.hasBinding(j)||this.hasGlobal(j)||this.hasReference(j));const se=this.getProgramParent();return se.references[j]=!0,se.uids[j]=!0,j}_generateUid(E,j){let z=E;return j>1&&(z+=j),`_${z}`}generateUidBasedOnNode(E,j){const z=[];fe(E,z);let se=z.join("$");return se=se.replace(/^_/,"")||j||"ref",this.generateUid(se.slice(0,20))}generateUidIdentifierBasedOnNode(E,j){return h(this.generateUidBasedOnNode(E,j))}isStatic(E){if(ne(E)||_(E)||ze(E))return!0;if(P(E)){const j=this.getBinding(E.name);return j?j.constant:this.hasBinding(E.name)}return!1}maybeGenerateMemoised(E,j){if(this.isStatic(E))return null;{const z=this.generateUidIdentifierBasedOnNode(E);return j?z:(this.push({id:z}),f(z))}}checkBlockScopedCollisions(E,j,z,se){if(j==="param"||E.kind==="local")return;if(j==="let"||E.kind==="let"||E.kind==="const"||E.kind==="module"||E.kind==="param"&&j==="const")throw this.hub.buildError(se,`Duplicate declaration "${z}"`,TypeError)}rename(E,j){const z=this.getBinding(E);z&&(j||(j=this.generateUidIdentifier(E).name),new e.default(z,E,j).rename(arguments[2]))}_renameFromMap(E,j,z,se){E[j]&&(E[z]=se,E[j]=null)}dump(){const E="-".repeat(60);console.log(E);let j=this;do{console.log("#",j.block.type);for(const z of Object.keys(j.bindings)){const se=j.bindings[z];console.log(" -",z,{constant:se.constant,references:se.references,violations:se.constantViolations.length,kind:se.kind})}}while(j=j.parent);console.log(E)}toArray(E,j,z){if(P(E)){const ce=this.getBinding(E.name);if(ce!=null&&ce.constant&&ce.path.isGenericType("Array"))return E}if(d(E))return E;if(P(E,{name:"arguments"}))return c(Y(Y(Y(h("Array"),h("prototype")),h("slice")),h("call")),[E]);let se;const oe=[E];return j===!0?se="toConsumableArray":typeof j=="number"?(oe.push(re(j)),se="slicedToArray"):se="toArray",z&&(oe.unshift(this.hub.addHelper(se)),se="maybeArrayLike"),c(this.hub.addHelper(se),oe)}hasLabel(E){return!!this.getLabel(E)}getLabel(E){return this.labels.get(E)}registerLabel(E){this.labels.set(E.node.label.name,E)}registerDeclaration(E){if(E.isLabeledStatement())this.registerLabel(E);else if(E.isFunctionDeclaration())this.registerBinding("hoisted",E.get("id"),E);else if(E.isVariableDeclaration()){const j=E.get("declarations"),{kind:z}=E.node;for(const se of j)this.registerBinding(z==="using"||z==="await using"?"const":z,se)}else if(E.isClassDeclaration()){if(E.node.declare)return;this.registerBinding("let",E)}else if(E.isImportDeclaration()){const j=E.node.importKind==="type"||E.node.importKind==="typeof",z=E.get("specifiers");for(const se of z){const oe=j||se.isImportSpecifier()&&(se.node.importKind==="type"||se.node.importKind==="typeof");this.registerBinding(oe?"unknown":"module",se)}}else if(E.isExportDeclaration()){const j=E.get("declaration");(j.isClassDeclaration()||j.isFunctionDeclaration()||j.isVariableDeclaration())&&this.registerDeclaration(j)}else this.registerBinding("unknown",E)}buildUndefinedNode(){return Ae()}registerConstantViolation(E){const j=E.getAssignmentIdentifiers();for(const se of Object.keys(j)){var z;(z=this.getBinding(se))==null||z.reassign(E)}}registerBinding(E,j,z=j){if(!E)throw new ReferenceError("no `kind`");if(j.isVariableDeclaration()){const ce=j.get("declarations");for(const Pe of ce)this.registerBinding(E,Pe);return}const se=this.getProgramParent(),oe=j.getOuterBindingIdentifiers(!0);for(const ce of Object.keys(oe)){se.references[ce]=!0;for(const Pe of oe[ce]){const Ve=this.getOwnBinding(ce);if(Ve){if(Ve.identifier===Pe)continue;this.checkBlockScopedCollisions(Ve,E,ce,Pe)}Ve?Ve.reassign(z):this.bindings[ce]=new r.default({identifier:Pe,scope:this,path:z,kind:E})}}}addGlobal(E){this.globals[E.name]=E}hasUid(E){let j=this;do if(j.uids[E])return!0;while(j=j.parent);return!1}hasGlobal(E){let j=this;do if(j.globals[E])return!0;while(j=j.parent);return!1}hasReference(E){return!!this.getProgramParent().references[E]}isPure(E,j){if(P(E)){const ce=this.getBinding(E.name);return ce?j?ce.constant:!0:!1}else{if(ne(E)||_e(E)||ze(E)||Ne(E))return!0;if(g(E)){var z;return E.superClass&&!this.isPure(E.superClass,j)||((z=E.decorators)==null?void 0:z.length)>0?!1:this.isPure(E.body,j)}else if(y(E)){for(const ce of E.body)if(!this.isPure(ce,j))return!1;return!0}else{if(m(E))return this.isPure(E.left,j)&&this.isPure(E.right,j);if(d(E)||Te(E)){for(const ce of E.elements)if(ce!==null&&!this.isPure(ce,j))return!1;return!0}else if(x(E)||Oe(E)){for(const ce of E.properties)if(!this.isPure(ce,j))return!1;return!0}else if(S(E)){var se;return!(E.computed&&!this.isPure(E.key,j)||((se=E.decorators)==null?void 0:se.length)>0)}else if(N(E)){var oe;return!(E.computed&&!this.isPure(E.key,j)||((oe=E.decorators)==null?void 0:oe.length)>0||(Be(E)||E.static)&&E.value!==null&&!this.isPure(E.value,j))}else{if(X(E))return this.isPure(E.argument,j);if(Q(E)){for(const ce of E.expressions)if(!this.isPure(ce,j))return!1;return!0}else return R(E)?te(E.tag,"String.raw")&&!this.hasBinding("String",{noGlobals:!0})&&this.isPure(E.quasi,j):F(E)?!E.computed&&P(E.object)&&E.object.name==="Symbol"&&P(E.property)&&E.property.name!=="for"&&!this.hasBinding("Symbol",{noGlobals:!0}):D(E)?te(E.callee,"Symbol.for")&&!this.hasBinding("Symbol",{noGlobals:!0})&&E.arguments.length===1&&s.isStringLiteral(E.arguments[0]):H(E)}}}}setData(E,j){return this.data[E]=j}getData(E){let j=this;do{const z=j.data[E];if(z!=null)return z}while(j=j.parent)}removeData(E){let j=this;do j.data[E]!=null&&(j.data[E]=null);while(j=j.parent)}init(){this.inited||(this.inited=!0,this.crawl())}crawl(){const E=this.path;this.references=Object.create(null),this.bindings=Object.create(null),this.globals=Object.create(null),this.uids=Object.create(null),this.data=Object.create(null);const j=this.getProgramParent();if(j.crawling)return;const z={references:[],constantViolations:[],assignments:[]};if(this.crawling=!0,E.type!=="Program"&&(0,o.isExplodedVisitor)(Ue)){for(const oe of Ue.enter)oe.call(z,E,z);const se=Ue[E.type];if(se)for(const oe of se.enter)oe.call(z,E,z)}E.traverse(Ue,z),this.crawling=!1;for(const se of z.assignments){const oe=se.getAssignmentIdentifiers();for(const ce of Object.keys(oe))se.scope.getBinding(ce)||j.addGlobal(oe[ce]);se.scope.registerConstantViolation(se)}for(const se of z.references){const oe=se.scope.getBinding(se.node.name);oe?oe.reference(se):j.addGlobal(se.node)}for(const se of z.constantViolations)se.scope.registerConstantViolation(se)}push(E){let j=this.path;j.isPattern()?j=this.getPatternParent().path:!j.isBlockStatement()&&!j.isProgram()&&(j=this.getBlockParent().path),j.isSwitchStatement()&&(j=(this.getFunctionParent()||this.getProgramParent()).path);const{init:z,unique:se,kind:oe="var",id:ce}=E;if(!z&&!se&&(oe==="var"||oe==="let")&&j.isFunction()&&!j.node.name&&D(j.parent,{callee:j.node})&&j.parent.arguments.length<=j.node.params.length&&P(ce)){j.pushContainer("params",ce),j.scope.registerBinding("param",j.get("params")[j.node.params.length-1]);return}(j.isLoop()||j.isCatchClause()||j.isFunction())&&(j.ensureBlock(),j=j.get("body"));const Pe=E._blockHoist==null?2:E._blockHoist,Ve=`declaration:${oe}:${Pe}`;let ue=!se&&j.getData(Ve);if(!ue){const We=de(oe,[]);We._blockHoist=Pe,[ue]=j.unshiftContainer("body",[We]),se||j.setData(Ve,ue)}const je=Ce(ce,z),qe=ue.node.declarations.push(je);j.scope.registerBinding(oe,ue.get("declarations")[qe-1])}getProgramParent(){let E=this;do if(E.path.isProgram())return E;while(E=E.parent);throw new Error("Couldn't find a Program")}getFunctionParent(){let E=this;do if(E.path.isFunctionParent())return E;while(E=E.parent);return null}getBlockParent(){let E=this;do if(E.path.isBlockParent())return E;while(E=E.parent);throw new Error("We couldn't find a BlockStatement, For, Switch, Function, Loop or Program...")}getPatternParent(){let E=this;do if(!E.path.isPattern())return E.getBlockParent();while(E=E.parent.parent);throw new Error("We couldn't find a BlockStatement, For, Switch, Function, Loop or Program...")}getAllBindings(){const E=Object.create(null);let j=this;do{for(const z of Object.keys(j.bindings))z in E||(E[z]=j.bindings[z]);j=j.parent}while(j);return E}getAllBindingsOfKind(...E){const j=Object.create(null);for(const z of E){let se=this;do{for(const oe of Object.keys(se.bindings)){const ce=se.bindings[oe];ce.kind===z&&(j[oe]=ce)}se=se.parent}while(se)}return j}bindingIdentifierEquals(E,j){return this.getBindingIdentifier(E)===j}getBinding(E){let j=this,z;do{const oe=j.getOwnBinding(E);if(oe){var se;if(!((se=z)!=null&&se.isPattern()&&oe.kind!=="param"&&oe.kind!=="local"))return oe}else if(!oe&&E==="arguments"&&j.path.isFunction()&&!j.path.isArrowFunctionExpression())break;z=j.path}while(j=j.parent)}getOwnBinding(E){return this.bindings[E]}getBindingIdentifier(E){var j;return(j=this.getBinding(E))==null?void 0:j.identifier}getOwnBindingIdentifier(E){const j=this.bindings[E];return j==null?void 0:j.identifier}hasOwnBinding(E){return!!this.getOwnBinding(E)}hasBinding(E,j){if(!E)return!1;let z=this;do if(z.hasOwnBinding(E))return!0;while(z=z.parent);let se,oe;return typeof j=="object"?(se=j.noGlobals,oe=j.noUids):typeof j=="boolean"&&(se=j),!!(!oe&&this.hasUid(E)||!se&&G.globals.includes(E)||!se&&G.contextVariables.includes(E))}parentHasBinding(E,j){var z;return(z=this.parent)==null?void 0:z.hasBinding(E,j)}moveBindingTo(E,j){const z=this.getBinding(E);z&&(z.scope.removeOwnBinding(E),z.scope=j,j.bindings[E]=z)}removeOwnBinding(E){delete this.bindings[E]}removeBinding(E){var j;(j=this.getBinding(E))==null||j.scope.removeOwnBinding(E);let z=this;do z.uids[E]&&(z.uids[E]=!1);while(z=z.parent)}hoistVariables(E=j=>this.push({id:j})){this.crawl();const j=new Set;for(const se of Object.keys(this.bindings)){const oe=this.bindings[se];if(!oe)continue;const{path:ce}=oe;if(!ce.isVariableDeclarator())continue;const{parent:Pe,parentPath:Ve}=ce;if(Pe.kind!=="var"||j.has(Pe))continue;j.add(ce.parent);let ue;const je=[];for(const qe of Pe.declarations){var z;(z=ue)!=null||(ue=qe.id),qe.init&&je.push(l("=",qe.id,qe.init));const We=Object.keys(p(qe,!1,!0,!0));for(const Re of We)E(h(Re),qe.init!=null)}if(Ve.parentPath.isFor({left:Pe}))Ve.replaceWith(ue);else if(je.length===0)Ve.remove();else{const qe=je.length===1?je[0]:st(je);Ve.parentPath.isForStatement({init:Pe})?Ve.replaceWith(qe):Ve.replaceWith(ie(qe))}}}}return Qi.default=G,G.globals=Object.keys(n.builtin),G.contextVariables=["arguments","undefined","Infinity","NaN"],Qi}var Zo={},eu={},Hl={exports:{}},Ba={exports:{}},md;function Fj(){return md||(md=1,function(e,t){(function(r,n){n(t)})(Jr.commonjsGlobal,function(r){class n{constructor(){this._indexes={__proto__:null},this.array=[]}}function i(l){return l}function s(l,c){return l._indexes[c]}function a(l,c){const f=s(l,c);if(f!==void 0)return f;const{array:p,_indexes:h}=l,d=p.push(c);return h[c]=d-1}function o(l){const{array:c,_indexes:f}=l;if(c.length===0)return;const p=c.pop();f[p]=void 0}function u(l,c){const f=s(l,c);if(f===void 0)return;const{array:p,_indexes:h}=l;for(let d=f+1;d<p.length;d++){const m=p[d];p[d-1]=m,h[m]--}h[c]=void 0,p.pop()}r.SetArray=n,r.get=s,r.pop=o,r.put=a,r.remove=u,Object.defineProperty(r,"__esModule",{value:!0})})}(Ba,Ba.exports)),Ba.exports}var La={exports:{}},yd;function mD(){return yd||(yd=1,function(e,t){(function(r,n){n(t)})(Jr.commonjsGlobal,function(r){const s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=new Uint8Array(64),o=new Uint8Array(128);for(let F=0;F<s.length;F++){const S=s.charCodeAt(F);a[F]=S,o[S]=F}function u(F,S){let A=0,B=0,x=0;do{const H=F.next();x=o[H],A|=(x&31)<<B,B+=5}while(x&32);const N=A&1;return A>>>=1,N&&(A=-2147483648|-A),S+A}function l(F,S,A){let B=S-A;B=B<0?-B<<1|1:B<<1;do{let x=B&31;B>>>=5,B>0&&(x|=32),F.write(a[x])}while(B>0);return S}function c(F,S){return F.pos>=S?!1:F.peek()!==44}const f=1024*16,p=typeof TextDecoder<"u"?new TextDecoder:typeof Buffer<"u"?{decode(F){return Buffer.from(F.buffer,F.byteOffset,F.byteLength).toString()}}:{decode(F){let S="";for(let A=0;A<F.length;A++)S+=String.fromCharCode(F[A]);return S}};class h{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(f)}write(S){const{buffer:A}=this;A[this.pos++]=S,this.pos===f&&(this.out+=p.decode(A),this.pos=0)}flush(){const{buffer:S,out:A,pos:B}=this;return B>0?A+p.decode(S.subarray(0,B)):A}}class d{constructor(S){this.pos=0,this.buffer=S}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(S){const{buffer:A,pos:B}=this,x=A.indexOf(S,B);return x===-1?A.length:x}}const m=[];function D(F){const{length:S}=F,A=new d(F),B=[],x=[];let N=0;for(;A.pos<S;A.pos++){N=u(A,N);const H=u(A,0);if(!c(A,S)){const X=x.pop();X[2]=N,X[3]=H;continue}const T=u(A,0),Q=u(A,0)&1?[N,H,0,0,T,u(A,0)]:[N,H,0,0,T];let ne=m;if(c(A,S)){ne=[];do{const X=u(A,0);ne.push(X)}while(c(A,S))}Q.vars=ne,B.push(Q),x.push(Q)}return B}function g(F){const S=new h;for(let A=0;A<F.length;)A=y(F,A,S,[0]);return S.flush()}function y(F,S,A,B){const x=F[S],{0:N,1:H,2:T,3:_,4:R,vars:Q}=x;S>0&&A.write(44),B[0]=l(A,N,B[0]),l(A,H,0),l(A,R,0);const ne=x.length===6?1:0;l(A,ne,0),x.length===6&&l(A,x[5],0);for(const X of Q)l(A,X,0);for(S++;S<F.length;){const X=F[S],{0:ae,1:ie}=X;if(ae>T||ae===T&&ie>=_)break;S=y(F,S,A,B)}return A.write(44),B[0]=l(A,T,B[0]),l(A,_,0),S}function b(F){const{length:S}=F,A=new d(F),B=[],x=[];let N=0,H=0,T=0,_=0,R=0,Q=0,ne=0,X=0;do{const ae=A.indexOf(";");let ie=0;for(;A.pos<ae;A.pos++){if(ie=u(A,ie),!c(A,ae)){const Te=x.pop();Te[2]=N,Te[3]=ie;continue}const te=u(A,0),Y=te&1,re=te&2,De=te&4;let de=null,Ce=m,Oe;if(Y){const Te=u(A,H);T=u(A,H===Te?T:0),H=Te,Oe=[N,ie,0,0,Te,T]}else Oe=[N,ie,0,0];if(Oe.isScope=!!De,re){const Te=_,Be=R;_=u(A,_);const ze=Te===_;R=u(A,ze?R:0),Q=u(A,ze&&Be===R?Q:0),de=[_,R,Q]}if(Oe.callsite=de,c(A,ae)){Ce=[];do{ne=N,X=ie;const Te=u(A,0);let Be;if(Te<-1){Be=[[u(A,0)]];for(let ze=-1;ze>Te;ze--){const _e=ne;ne=u(A,ne),X=u(A,ne===_e?X:0);const Ne=u(A,0);Be.push([Ne,ne,X])}}else Be=[[Te]];Ce.push(Be)}while(c(A,ae))}Oe.bindings=Ce,B.push(Oe),x.push(Oe)}N++,A.pos=ae+1}while(A.pos<S);return B}function O(F){if(F.length===0)return"";const S=new h;for(let A=0;A<F.length;)A=C(F,A,S,[0,0,0,0,0,0,0]);return S.flush()}function C(F,S,A,B){const x=F[S],{0:N,1:H,2:T,3:_,isScope:R,callsite:Q,bindings:ne}=x;B[0]<N?($(A,B[0],N),B[0]=N,B[1]=0):S>0&&A.write(44),B[1]=l(A,x[1],B[1]);const X=(x.length===6?1:0)|(Q?2:0)|(R?4:0);if(l(A,X,0),x.length===6){const{4:ae,5:ie}=x;ae!==B[2]&&(B[3]=0),B[2]=l(A,ae,B[2]),B[3]=l(A,ie,B[3])}if(Q){const{0:ae,1:ie,2:te}=x.callsite;ae!==B[4]?(B[5]=0,B[6]=0):ie!==B[5]&&(B[6]=0),B[4]=l(A,ae,B[4]),B[5]=l(A,ie,B[5]),B[6]=l(A,te,B[6])}if(ne)for(const ae of ne){ae.length>1&&l(A,-ae.length,0);const ie=ae[0][0];l(A,ie,0);let te=N,Y=H;for(let re=1;re<ae.length;re++){const De=ae[re];te=l(A,De[1],te),Y=l(A,De[2],Y),l(A,De[0],0)}}for(S++;S<F.length;){const ae=F[S],{0:ie,1:te}=ae;if(ie>T||ie===T&&te>=_)break;S=C(F,S,A,B)}return B[0]<T?($(A,B[0],T),B[0]=T,B[1]=0):A.write(44),B[1]=l(A,_,B[1]),S}function $(F,S,A){do F.write(59);while(++S<A)}function w(F){const{length:S}=F,A=new d(F),B=[];let x=0,N=0,H=0,T=0,_=0;do{const R=A.indexOf(";"),Q=[];let ne=!0,X=0;for(x=0;A.pos<R;){let ae;x=u(A,x),x<X&&(ne=!1),X=x,c(A,R)?(N=u(A,N),H=u(A,H),T=u(A,T),c(A,R)?(_=u(A,_),ae=[x,N,H,T,_]):ae=[x,N,H,T]):ae=[x],Q.push(ae),A.pos++}ne||P(Q),B.push(Q),A.pos=R+1}while(A.pos<=S);return B}function P(F){F.sort(I)}function I(F,S){return F[0]-S[0]}function L(F){const S=new h;let A=0,B=0,x=0,N=0;for(let H=0;H<F.length;H++){const T=F[H];if(H>0&&S.write(59),T.length===0)continue;let _=0;for(let R=0;R<T.length;R++){const Q=T[R];R>0&&S.write(44),_=l(S,Q[0],_),Q.length!==1&&(A=l(S,Q[1],A),B=l(S,Q[2],B),x=l(S,Q[3],x),Q.length!==4&&(N=l(S,Q[4],N)))}}return S.flush()}r.decode=w,r.decodeGeneratedRanges=b,r.decodeOriginalScopes=D,r.encode=L,r.encodeGeneratedRanges=O,r.encodeOriginalScopes=g,Object.defineProperty(r,"__esModule",{value:!0})})}(La,La.exports)),La.exports}var Gl={exports:{}},Xu={exports:{}},Dd;function _j(){return Dd||(Dd=1,function(e,t){(function(r,n){e.exports=n()})(Jr.commonjsGlobal,function(){const r=/^[\w+.-]+:\/\//,n=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,i=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;function s(y){return r.test(y)}function a(y){return y.startsWith("//")}function o(y){return y.startsWith("/")}function u(y){return y.startsWith("file:")}function l(y){return/^[.?#]/.test(y)}function c(y){const b=n.exec(y);return p(b[1],b[2]||"",b[3],b[4]||"",b[5]||"/",b[6]||"",b[7]||"")}function f(y){const b=i.exec(y),O=b[2];return p("file:","",b[1]||"","",o(O)?O:"/"+O,b[3]||"",b[4]||"")}function p(y,b,O,C,$,w,P){return{scheme:y,user:b,host:O,port:C,path:$,query:w,hash:P,type:7}}function h(y){if(a(y)){const O=c("http:"+y);return O.scheme="",O.type=6,O}if(o(y)){const O=c("http://foo.com"+y);return O.scheme="",O.host="",O.type=5,O}if(u(y))return f(y);if(s(y))return c(y);const b=c("http://foo.com/"+y);return b.scheme="",b.host="",b.type=y?y.startsWith("?")?3:y.startsWith("#")?2:4:1,b}function d(y){if(y.endsWith("/.."))return y;const b=y.lastIndexOf("/");return y.slice(0,b+1)}function m(y,b){D(b,b.type),y.path==="/"?y.path=b.path:y.path=d(b.path)+y.path}function D(y,b){const O=b<=4,C=y.path.split("/");let $=1,w=0,P=!1;for(let L=1;L<C.length;L++){const F=C[L];if(!F){P=!0;continue}if(P=!1,F!=="."){if(F===".."){w?(P=!0,w--,$--):O&&(C[$++]=F);continue}C[$++]=F,w++}}let I="";for(let L=1;L<$;L++)I+="/"+C[L];(!I||P&&!I.endsWith("/.."))&&(I+="/"),y.path=I}function g(y,b){if(!y&&!b)return"";const O=h(y);let C=O.type;if(b&&C!==7){const w=h(b),P=w.type;switch(C){case 1:O.hash=w.hash;case 2:O.query=w.query;case 3:case 4:m(O,w);case 5:O.user=w.user,O.host=w.host,O.port=w.port;case 6:O.scheme=w.scheme}P>C&&(C=P)}D(O,C);const $=O.query+O.hash;switch(C){case 2:case 3:return $;case 4:{const w=O.path.slice(1);return w?l(b||y)&&!l(w)?"./"+w+$:w+$:$||"."}case 5:return O.path+$;default:return O.scheme+"//"+O.user+O.host+O.port+O.path+$}}return g})}(Xu)),Xu.exports}(function(e,t){(function(r,n){n(t,mD(),_j())})(Jr.commonjsGlobal,function(r,n,i){function s(Z,G){return G&&!G.endsWith("/")&&(G+="/"),i(Z,G)}function a(Z){if(!Z)return"";const G=Z.lastIndexOf("/");return Z.slice(0,G+1)}const o=0,u=1,l=2,c=3,f=4,p=1,h=2;function d(Z,G){const V=m(Z,0);if(V===Z.length)return Z;G||(Z=Z.slice());for(let E=V;E<Z.length;E=m(Z,E+1))Z[E]=g(Z[E],G);return Z}function m(Z,G){for(let V=G;V<Z.length;V++)if(!D(Z[V]))return V;return Z.length}function D(Z){for(let G=1;G<Z.length;G++)if(Z[G][o]<Z[G-1][o])return!1;return!0}function g(Z,G){return G||(Z=Z.slice()),Z.sort(y)}function y(Z,G){return Z[o]-G[o]}let b=!1;function O(Z,G,V,E){for(;V<=E;){const j=V+(E-V>>1),z=Z[j][o]-G;if(z===0)return b=!0,j;z<0?V=j+1:E=j-1}return b=!1,V-1}function C(Z,G,V){for(let E=V+1;E<Z.length&&Z[E][o]===G;V=E++);return V}function $(Z,G,V){for(let E=V-1;E>=0&&Z[E][o]===G;V=E--);return V}function w(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function P(Z,G,V,E){const{lastKey:j,lastNeedle:z,lastIndex:se}=V;let oe=0,ce=Z.length-1;if(E===j){if(G===z)return b=se!==-1&&Z[se][o]===G,se;G>=z?oe=se===-1?0:se:ce=se}return V.lastKey=E,V.lastNeedle=G,V.lastIndex=O(Z,G,oe,ce)}function I(Z,G){const V=G.map(F);for(let E=0;E<Z.length;E++){const j=Z[E];for(let z=0;z<j.length;z++){const se=j[z];if(se.length===1)continue;const oe=se[u],ce=se[l],Pe=se[c],Ve=V[oe],ue=Ve[ce]||(Ve[ce]=[]),je=G[oe];let qe=C(ue,Pe,P(ue,Pe,je,ce));je.lastIndex=++qe,L(ue,qe,[Pe,E,se[o]])}}return V}function L(Z,G,V){for(let E=Z.length;E>G;E--)Z[E]=Z[E-1];Z[G]=V}function F(){return{__proto__:null}}const S=function(Z,G){const V=A(Z);if(!("sections"in V))return new ne(V,G);const E=[],j=[],z=[],se=[],oe=[];B(V,G,E,j,z,se,oe,0,0,1/0,1/0);const ce={version:3,file:V.file,names:se,sources:j,sourcesContent:z,mappings:E,ignoreList:oe};return Be(ce)};function A(Z){return typeof Z=="string"?JSON.parse(Z):Z}function B(Z,G,V,E,j,z,se,oe,ce,Pe,Ve){const{sections:ue}=Z;for(let je=0;je<ue.length;je++){const{map:qe,offset:We}=ue[je];let Re=Pe,W=Ve;if(je+1<ue.length){const Se=ue[je+1].offset;Re=Math.min(Pe,oe+Se.line),Re===Pe?W=Math.min(Ve,ce+Se.column):Re<Pe&&(W=ce+Se.column)}x(qe,G,V,E,j,z,se,oe+We.line,ce+We.column,Re,W)}}function x(Z,G,V,E,j,z,se,oe,ce,Pe,Ve){const ue=A(Z);if("sections"in ue)return B(...arguments);const je=new ne(ue,G),qe=E.length,We=z.length,Re=ie(je),{resolvedSources:W,sourcesContent:Se,ignoreList:Qe}=je;if(N(E,W),N(z,je.names),Se)N(j,Se);else for(let ft=0;ft<W.length;ft++)j.push(null);if(Qe)for(let ft=0;ft<Qe.length;ft++)se.push(Qe[ft]+qe);for(let ft=0;ft<Re.length;ft++){const lr=oe+ft;if(lr>Pe)return;const Or=H(V,lr),cr=ft===0?ce:0,fr=Re[ft];for(let Jt=0;Jt<fr.length;Jt++){const wt=fr[Jt],Tr=cr+wt[o];if(lr===Pe&&Tr>=Ve)return;if(wt.length===1){Or.push([Tr]);continue}const on=qe+wt[u],$n=wt[l],un=wt[c];Or.push(wt.length===4?[Tr,on,$n,un]:[Tr,on,$n,un,We+wt[f]])}}}function N(Z,G){for(let V=0;V<G.length;V++)Z.push(G[V])}function H(Z,G){for(let V=Z.length;V<=G;V++)Z[V]=[];return Z[G]}const T="`line` must be greater than 0 (lines start at line 1)",_="`column` must be greater than or equal to 0 (columns start at column 0)",R=-1,Q=1;class ne{constructor(G,V){const E=typeof G=="string";if(!E&&G._decodedMemo)return G;const j=E?JSON.parse(G):G,{version:z,file:se,names:oe,sourceRoot:ce,sources:Pe,sourcesContent:Ve}=j;this.version=z,this.file=se,this.names=oe||[],this.sourceRoot=ce,this.sources=Pe,this.sourcesContent=Ve,this.ignoreList=j.ignoreList||j.x_google_ignoreList||void 0;const ue=s(ce||"",a(V));this.resolvedSources=Pe.map(qe=>s(qe||"",ue));const{mappings:je}=j;typeof je=="string"?(this._encoded=je,this._decoded=void 0):(this._encoded=void 0,this._decoded=d(je,E)),this._decodedMemo=w(),this._bySources=void 0,this._bySourceMemos=void 0}}function X(Z){return Z}function ae(Z){var G,V;return(G=(V=Z)._encoded)!==null&&G!==void 0?G:V._encoded=n.encode(Z._decoded)}function ie(Z){var G;return(G=Z)._decoded||(G._decoded=n.decode(Z._encoded))}function te(Z,G,V){const E=ie(Z);if(G>=E.length)return null;const j=E[G],z=st(j,Z._decodedMemo,G,V,Q);return z===-1?null:j[z]}function Y(Z,G){let{line:V,column:E,bias:j}=G;if(V--,V<0)throw new Error(T);if(E<0)throw new Error(_);const z=ie(Z);if(V>=z.length)return ge(null,null,null,null);const se=z[V],oe=st(se,Z._decodedMemo,V,E,j||Q);if(oe===-1)return ge(null,null,null,null);const ce=se[oe];if(ce.length===1)return ge(null,null,null,null);const{names:Pe,resolvedSources:Ve}=Z;return ge(Ve[ce[u]],ce[l]+1,ce[c],ce.length===5?Pe[ce[f]]:null)}function re(Z,G){const{source:V,line:E,column:j,bias:z}=G;return Ue(Z,V,E,j,z||Q,!1)}function De(Z,G){const{source:V,line:E,column:j,bias:z}=G;return Ue(Z,V,E,j,z||R,!0)}function de(Z,G){const V=ie(Z),{names:E,resolvedSources:j}=Z;for(let z=0;z<V.length;z++){const se=V[z];for(let oe=0;oe<se.length;oe++){const ce=se[oe],Pe=z+1,Ve=ce[0];let ue=null,je=null,qe=null,We=null;ce.length!==1&&(ue=j[ce[1]],je=ce[2]+1,qe=ce[3]),ce.length===5&&(We=E[ce[4]]),G({generatedLine:Pe,generatedColumn:Ve,source:ue,originalLine:je,originalColumn:qe,name:We})}}}function Ce(Z,G){const{sources:V,resolvedSources:E}=Z;let j=V.indexOf(G);return j===-1&&(j=E.indexOf(G)),j}function Oe(Z,G){const{sourcesContent:V}=Z;if(V==null)return null;const E=Ce(Z,G);return E===-1?null:V[E]}function Te(Z,G){const{ignoreList:V}=Z;if(V==null)return!1;const E=Ce(Z,G);return E===-1?!1:V.includes(E)}function Be(Z,G){const V=new ne(Ne(Z,[]),G);return V._decoded=Z.mappings,V}function ze(Z){return Ne(Z,ie(Z))}function _e(Z){return Ne(Z,ae(Z))}function Ne(Z,G){return{version:Z.version,file:Z.file,names:Z.names,sourceRoot:Z.sourceRoot,sources:Z.sources,sourcesContent:Z.sourcesContent,mappings:G,ignoreList:Z.ignoreList||Z.x_google_ignoreList}}function ge(Z,G,V,E){return{source:Z,line:G,column:V,name:E}}function Ae(Z,G){return{line:Z,column:G}}function st(Z,G,V,E,j){let z=P(Z,E,G,V);return b?z=(j===R?C:$)(Z,E,z):j===R&&z++,z===-1||z===Z.length?-1:z}function fe(Z,G,V,E,j){let z=st(Z,G,V,E,Q);if(!b&&j===R&&z++,z===-1||z===Z.length)return[];const se=b?E:Z[z][o];b||(z=$(Z,se,z));const oe=C(Z,se,z),ce=[];for(;z<=oe;z++){const Pe=Z[z];ce.push(Ae(Pe[p]+1,Pe[h]))}return ce}function Ue(Z,G,V,E,j,z){var se;if(V--,V<0)throw new Error(T);if(E<0)throw new Error(_);const{sources:oe,resolvedSources:ce}=Z;let Pe=oe.indexOf(G);if(Pe===-1&&(Pe=ce.indexOf(G)),Pe===-1)return z?[]:Ae(null,null);const ue=((se=Z)._bySources||(se._bySources=I(ie(Z),Z._bySourceMemos=oe.map(w))))[Pe][V];if(ue==null)return z?[]:Ae(null,null);const je=Z._bySourceMemos[Pe];if(z)return fe(ue,je,V,E,j);const qe=st(ue,je,V,E,j);if(qe===-1)return Ae(null,null);const We=ue[qe];return Ae(We[p]+1,We[h])}r.AnyMap=S,r.GREATEST_LOWER_BOUND=Q,r.LEAST_UPPER_BOUND=R,r.TraceMap=ne,r.allGeneratedPositionsFor=De,r.decodedMap=ze,r.decodedMappings=ie,r.eachMapping=de,r.encodedMap=_e,r.encodedMappings=ae,r.generatedPositionFor=re,r.isIgnored=Te,r.originalPositionFor=Y,r.presortedDecodedMap=Be,r.sourceContentFor=Oe,r.traceSegment=te})})(Gl,Gl.exports);var yD=Gl.exports;(function(e,t){(function(r,n){n(t,Fj(),mD(),yD)})(Jr.commonjsGlobal,function(r,n,i,s){class p{constructor({file:T,sourceRoot:_}={}){this._names=new n.SetArray,this._sources=new n.SetArray,this._sourcesContent=[],this._mappings=[],this.file=T,this.sourceRoot=_,this._ignoreList=new n.SetArray}}function h(H){return H}function d(H,T,_,R,Q,ne,X,ae){return P(!1,H,T,_,R,Q,ne,X,ae)}function m(H,T){return N(!1,H,T)}const D=(H,T,_,R,Q,ne,X,ae)=>P(!0,H,T,_,R,Q,ne,X,ae),g=(H,T)=>N(!0,H,T);function y(H,T,_){const{_sources:R,_sourcesContent:Q}=H,ne=n.put(R,T);Q[ne]=_}function b(H,T,_=!0){const{_sources:R,_sourcesContent:Q,_ignoreList:ne}=H,X=n.put(R,T);X===Q.length&&(Q[X]=null),_?n.put(ne,X):n.remove(ne,X)}function O(H){const{_mappings:T,_sources:_,_sourcesContent:R,_names:Q,_ignoreList:ne}=H;return S(T),{version:3,file:H.file||void 0,names:Q.array,sourceRoot:H.sourceRoot||void 0,sources:_.array,sourcesContent:R,mappings:T,ignoreList:ne.array}}function C(H){const T=O(H);return Object.assign(Object.assign({},T),{mappings:i.encode(T.mappings)})}function $(H){const T=new s.TraceMap(H),_=new p({file:T.file,sourceRoot:T.sourceRoot});return A(_._names,T.names),A(_._sources,T.sources),_._sourcesContent=T.sourcesContent||T.sources.map(()=>null),_._mappings=s.decodedMappings(T),T.ignoreList&&A(_._ignoreList,T.ignoreList),_}function w(H){const T=[],{_mappings:_,_sources:R,_names:Q}=H;for(let ne=0;ne<_.length;ne++){const X=_[ne];for(let ae=0;ae<X.length;ae++){const ie=X[ae],te={line:ne+1,column:ie[0]};let Y,re,De;ie.length!==1&&(Y=R.array[ie[1]],re={line:ie[2]+1,column:ie[3]},ie.length===5&&(De=Q.array[ie[4]])),T.push({generated:te,source:Y,original:re,name:De})}}return T}function P(H,T,_,R,Q,ne,X,ae,ie){const{_mappings:te,_sources:Y,_sourcesContent:re,_names:De}=T,de=I(te,_),Ce=L(de,R);if(!Q)return H&&B(de,Ce)?void 0:F(de,Ce,[R]);const Oe=n.put(Y,Q),Te=ae?n.put(De,ae):-1;if(Oe===re.length&&(re[Oe]=ie??null),!(H&&x(de,Ce,Oe,ne,X,Te)))return F(de,Ce,ae?[R,Oe,ne,X,Te]:[R,Oe,ne,X])}function I(H,T){for(let _=H.length;_<=T;_++)H[_]=[];return H[T]}function L(H,T){let _=H.length;for(let R=_-1;R>=0;_=R--){const Q=H[R];if(T>=Q[0])break}return _}function F(H,T,_){for(let R=H.length;R>T;R--)H[R]=H[R-1];H[T]=_}function S(H){const{length:T}=H;let _=T;for(let R=_-1;R>=0&&!(H[R].length>0);_=R,R--);_<T&&(H.length=_)}function A(H,T){for(let _=0;_<T.length;_++)n.put(H,T[_])}function B(H,T){return T===0?!0:H[T-1].length===1}function x(H,T,_,R,Q,ne){if(T===0)return!1;const X=H[T-1];return X.length===1?!1:_===X[1]&&R===X[2]&&Q===X[3]&&ne===(X.length===5?X[4]:-1)}function N(H,T,_){const{generated:R,source:Q,original:ne,name:X,content:ae}=_;return Q?P(H,T,R.line-1,R.column,Q,ne.line-1,ne.column,X,ae):P(H,T,R.line-1,R.column,null,null,null,null,null)}r.GenMapping=p,r.addMapping=m,r.addSegment=d,r.allMappings=w,r.fromMap=$,r.maybeAddMapping=g,r.maybeAddSegment=D,r.setIgnore=b,r.setSourceContent=y,r.toDecodedMap=O,r.toEncodedMap=C,Object.defineProperty(r,"__esModule",{value:!0})})})(Hl,Hl.exports);var wj=Hl.exports;Object.defineProperty(eu,"__esModule",{value:!0});eu.default=void 0;var pn=wj,Ju=yD;class Ij{constructor(t,r){var n;this._map=void 0,this._rawMappings=void 0,this._sourceFileName=void 0,this._lastGenLine=0,this._lastSourceLine=0,this._lastSourceColumn=0,this._inputMap=void 0;const i=this._map=new pn.GenMapping({sourceRoot:t.sourceRoot});if(this._sourceFileName=(n=t.sourceFileName)==null?void 0:n.replace(/\\/g,"/"),this._rawMappings=void 0,t.inputSourceMap){this._inputMap=new Ju.TraceMap(t.inputSourceMap);const a=this._inputMap.resolvedSources;if(a.length)for(let o=0;o<a.length;o++){var s;(0,pn.setSourceContent)(i,a[o],(s=this._inputMap.sourcesContent)==null?void 0:s[o])}}if(typeof r=="string"&&!t.inputSourceMap)(0,pn.setSourceContent)(i,this._sourceFileName,r);else if(typeof r=="object")for(const a of Object.keys(r))(0,pn.setSourceContent)(i,a.replace(/\\/g,"/"),r[a])}get(){return(0,pn.toEncodedMap)(this._map)}getDecoded(){return(0,pn.toDecodedMap)(this._map)}getRawMappings(){return this._rawMappings||(this._rawMappings=(0,pn.allMappings)(this._map))}mark(t,r,n,i,s,a){var o;this._rawMappings=void 0;let u;if(r!=null)if(this._inputMap){if(u=(0,Ju.originalPositionFor)(this._inputMap,{line:r,column:n}),!u.name&&s){const l=(0,Ju.originalPositionFor)(this._inputMap,s);l.name&&(i=l.name)}}else u={source:(a==null?void 0:a.replace(/\\/g,"/"))||this._sourceFileName,line:r,column:n};(0,pn.maybeAddMapping)(this._map,{name:i,generated:t,source:(o=u)==null?void 0:o.source,original:u})}}eu.default=Ij;var tu={},ru={};Object.defineProperty(ru,"__esModule",{value:!0});ru.default=void 0;let Oj=class{constructor(t,r){this._map=null,this._buf="",this._str="",this._appendCount=0,this._last=0,this._queue=[],this._queueCursor=0,this._canMarkIdName=!0,this._indentChar="",this._fastIndentations=[],this._position={line:1,column:0},this._sourcePosition={identifierName:void 0,identifierNamePos:void 0,line:void 0,column:void 0,filename:void 0},this._map=t,this._indentChar=r;for(let n=0;n<64;n++)this._fastIndentations.push(r.repeat(n));this._allocQueue()}_allocQueue(){const t=this._queue;for(let r=0;r<16;r++)t.push({char:0,repeat:1,line:void 0,column:void 0,identifierName:void 0,identifierNamePos:void 0,filename:""})}_pushQueue(t,r,n,i,s){const a=this._queueCursor;a===this._queue.length&&this._allocQueue();const o=this._queue[a];o.char=t,o.repeat=r,o.line=n,o.column=i,o.filename=s,this._queueCursor++}_popQueue(){if(this._queueCursor===0)throw new Error("Cannot pop from empty queue");return this._queue[--this._queueCursor]}get(){this._flush();const t=this._map,r={code:(this._buf+this._str).trimRight(),decodedMap:t==null?void 0:t.getDecoded(),get __mergedMap(){return this.map},get map(){const n=t?t.get():null;return r.map=n,n},set map(n){Object.defineProperty(r,"map",{value:n,writable:!0})},get rawMappings(){const n=t==null?void 0:t.getRawMappings();return r.rawMappings=n,n},set rawMappings(n){Object.defineProperty(r,"rawMappings",{value:n,writable:!0})}};return r}append(t,r){this._flush(),this._append(t,this._sourcePosition,r)}appendChar(t){this._flush(),this._appendChar(t,1,this._sourcePosition)}queue(t){if(t===10)for(;this._queueCursor!==0;){const n=this._queue[this._queueCursor-1].char;if(n!==32&&n!==9)break;this._queueCursor--}const r=this._sourcePosition;this._pushQueue(t,1,r.line,r.column,r.filename)}queueIndentation(t){t!==0&&this._pushQueue(-1,t,void 0,void 0,void 0)}_flush(){const t=this._queueCursor,r=this._queue;for(let n=0;n<t;n++){const i=r[n];this._appendChar(i.char,i.repeat,i)}this._queueCursor=0}_appendChar(t,r,n){if(this._last=t,t===-1){const i=this._fastIndentations[r];i!==void 0?this._str+=i:this._str+=r>1?this._indentChar.repeat(r):this._indentChar}else this._str+=r>1?String.fromCharCode(t).repeat(r):String.fromCharCode(t);t!==10?(this._mark(n.line,n.column,n.identifierName,n.identifierNamePos,n.filename),this._position.column+=r):(this._position.line++,this._position.column=0),this._canMarkIdName&&(n.identifierName=void 0,n.identifierNamePos=void 0)}_append(t,r,n){const i=t.length,s=this._position;if(this._last=t.charCodeAt(i-1),++this._appendCount>4096?(+this._str,this._buf+=this._str,this._str=t,this._appendCount=0):this._str+=t,!n&&!this._map){s.column+=i;return}const{column:a,identifierName:o,identifierNamePos:u,filename:l}=r;let c=r.line;(o!=null||u!=null)&&this._canMarkIdName&&(r.identifierName=void 0,r.identifierNamePos=void 0);let f=t.indexOf(`
|
|
126
|
+
`),p=0;for(f!==0&&this._mark(c,a,o,u,l);f!==-1;)s.line++,s.column=0,p=f+1,p<i&&c!==void 0&&this._mark(++c,0,null,null,l),f=t.indexOf(`
|
|
127
|
+
`,p);s.column+=i-p}_mark(t,r,n,i,s){var a;(a=this._map)==null||a.mark(this._position,t,r,n,i,s)}removeTrailingNewline(){const t=this._queueCursor;t!==0&&this._queue[t-1].char===10&&this._queueCursor--}removeLastSemicolon(){const t=this._queueCursor;t!==0&&this._queue[t-1].char===59&&this._queueCursor--}getLastChar(){const t=this._queueCursor;return t!==0?this._queue[t-1].char:this._last}getNewlineCount(){const t=this._queueCursor;let r=0;if(t===0)return this._last===10?1:0;for(let n=t-1;n>=0&&this._queue[n].char===10;n--)r++;return r===t&&this._last===10?r+1:r}endsWithCharAndNewline(){const t=this._queue,r=this._queueCursor;if(r!==0)return t[r-1].char!==10?void 0:r>1?t[r-2].char:this._last}hasContent(){return this._queueCursor!==0||!!this._last}exactSource(t,r){if(!this._map){r();return}this.source("start",t);const n=t.identifierName,i=this._sourcePosition;n&&(this._canMarkIdName=!1,i.identifierName=n),r(),n&&(this._canMarkIdName=!0,i.identifierName=void 0,i.identifierNamePos=void 0),this.source("end",t)}source(t,r){this._map&&this._normalizePosition(t,r,0)}sourceWithOffset(t,r,n){this._map&&this._normalizePosition(t,r,n)}_normalizePosition(t,r,n){const i=r[t],s=this._sourcePosition;i&&(s.line=i.line,s.column=Math.max(i.column+n,0),s.filename=r.filename)}getCurrentColumn(){const t=this._queue,r=this._queueCursor;let n=-1,i=0;for(let s=0;s<r;s++){const a=t[s];a.char===10&&(n=i),i+=a.repeat}return n===-1?this._position.column+i:i-1-n}getCurrentLine(){let t=0;const r=this._queue;for(let n=0;n<this._queueCursor;n++)r[n].char===10&&t++;return this._position.line+t}};ru.default=Oj;var Lr={},nu={};Object.defineProperty(nu,"__esModule",{value:!0});nu.nodes=void 0;var Nj=Ge();const{FLIPPED_ALIAS_KEYS:Bj,isArrayExpression:Lj,isAssignmentExpression:DD,isBinary:gD,isBlockStatement:kj,isCallExpression:ED,isFunction:ds,isIdentifier:To,isLiteral:Rj,isMemberExpression:Ff,isObjectExpression:Mj,isOptionalCallExpression:jj,isOptionalMemberExpression:$j,isStringLiteral:Uj}=Nj;function Ti(e,t){return e&&(Ff(e)||$j(e)?(Ti(e.object,t),e.computed&&Ti(e.property,t)):gD(e)||DD(e)?(Ti(e.left,t),Ti(e.right,t)):ED(e)||jj(e)?(t.hasCall=!0,Ti(e.callee,t)):ds(e)?t.hasFunction=!0:To(e)&&(t.hasHelper=t.hasHelper||e.callee&&Hr(e.callee))),t}function gd(e){return Ti(e,{hasCall:!1,hasFunction:!1,hasHelper:!1})}function Hr(e){return e?Ff(e)?Hr(e.object)||Hr(e.property):To(e)?e.name==="require"||e.name.charCodeAt(0)===95:ED(e)?Hr(e.callee):gD(e)||DD(e)?To(e.left)&&Hr(e.left)||Hr(e.right):!1:!1}function Vj(e){return Rj(e)||Mj(e)||Lj(e)||To(e)||Ff(e)}const ni=nu.nodes={AssignmentExpression(e){const t=gd(e.right);if(t.hasCall&&t.hasHelper||t.hasFunction)return t.hasFunction?3:2},SwitchCase(e,t){return(e.consequent.length||t.cases[0]===e?1:0)|(!e.consequent.length&&t.cases[t.cases.length-1]===e?2:0)},LogicalExpression(e){if(ds(e.left)||ds(e.right))return 2},Literal(e){if(Uj(e)&&e.value==="use strict")return 2},CallExpression(e){if(ds(e.callee)||Hr(e))return 3},OptionalCallExpression(e){if(ds(e.callee))return 3},VariableDeclaration(e){for(let t=0;t<e.declarations.length;t++){const r=e.declarations[t];let n=Hr(r.id)&&!Vj(r.init);if(!n&&r.init){const i=gd(r.init);n=Hr(r.init)&&i.hasCall||i.hasFunction}if(n)return 3}},IfStatement(e){if(kj(e.consequent))return 3}};ni.ObjectProperty=ni.ObjectTypeProperty=ni.ObjectMethod=function(e,t){if(t.properties[0]===e)return 1};ni.ObjectTypeCallProperty=function(e,t){var r;if(t.callProperties[0]===e&&!((r=t.properties)!=null&&r.length))return 1};ni.ObjectTypeIndexer=function(e,t){var r,n;if(t.indexers[0]===e&&!((r=t.properties)!=null&&r.length)&&!((n=t.callProperties)!=null&&n.length))return 1};ni.ObjectTypeInternalSlot=function(e,t){var r,n,i;if(t.internalSlots[0]===e&&!((r=t.properties)!=null&&r.length)&&!((n=t.callProperties)!=null&&n.length)&&!((i=t.indexers)!=null&&i.length))return 1};[["Function",!0],["Class",!0],["Loop",!0],["LabeledStatement",!0],["SwitchStatement",!0],["TryStatement",!0]].forEach(function([e,t]){[e].concat(Bj[e]||[]).forEach(function(r){const n=t?3:0;ni[r]=()=>n})});var it={},Ed;function qj(){if(Ed)return it;Ed=1,Object.defineProperty(it,"__esModule",{value:!0}),it.ArrowFunctionExpression=_,it.AssignmentExpression=ne,it.Binary=$,it.BinaryExpression=A,it.ClassExpression=N,it.ConditionalExpression=R,it.DoExpression=C,it.FunctionExpression=T,it.FunctionTypeAnnotation=y,it.Identifier=ae,it.LogicalExpression=X,it.NullableTypeAnnotation=g,it.ObjectExpression=O,it.OptionalIndexedAccessType=P,it.OptionalCallExpression=it.OptionalMemberExpression=Q,it.SequenceExpression=B,it.TSSatisfiesExpression=it.TSAsExpression=I,it.TSInferType=F,it.TSInstantiationExpression=S,it.UnaryLike=it.TSTypeAssertion=H,it.TSIntersectionType=it.TSUnionType=L,it.IntersectionTypeAnnotation=it.UnionTypeAnnotation=w,it.UpdateExpression=b,it.AwaitExpression=it.YieldExpression=x;var e=Ge(),t=hi();const{isArrayTypeAnnotation:r,isBinaryExpression:n,isCallExpression:i,isExportDeclaration:s,isForOfStatement:a,isIndexedAccessType:o,isMemberExpression:u,isObjectPattern:l,isOptionalMemberExpression:c,isYieldExpression:f}=e,p=new Map([["||",0],["??",0],["|>",0],["&&",1],["|",2],["^",3],["&",4],["==",5],["===",5],["!=",5],["!==",5],["<",6],[">",6],["<=",6],[">=",6],["in",6],["instanceof",6],[">>",7],["<<",7],[">>>",7],["+",8],["-",8],["*",9],["/",9],["%",9],["**",10]]);function h(ie,te){if(te==="BinaryExpression"||te==="LogicalExpression")return p.get(ie.operator);if(te==="TSAsExpression"||te==="TSSatisfiesExpression")return p.get("in")}function d(ie){return ie==="TSAsExpression"||ie==="TSSatisfiesExpression"||ie==="TSTypeAssertion"}const m=(ie,te)=>{const Y=te.type;return(Y==="ClassDeclaration"||Y==="ClassExpression")&&te.superClass===ie},D=(ie,te)=>{const Y=te.type;return(Y==="MemberExpression"||Y==="OptionalMemberExpression")&&te.object===ie||(Y==="CallExpression"||Y==="OptionalCallExpression"||Y==="NewExpression")&&te.callee===ie||Y==="TaggedTemplateExpression"&&te.tag===ie||Y==="TSNonNullExpression"};function g(ie,te){return r(te)}function y(ie,te,Y){const re=te.type;return re==="UnionTypeAnnotation"||re==="IntersectionTypeAnnotation"||re==="ArrayTypeAnnotation"||!!(Y&t.TokenContext.arrowFlowReturnType)}function b(ie,te){return D(ie,te)||m(ie,te)}function O(ie,te,Y){return!!(Y&(t.TokenContext.expressionStatement|t.TokenContext.arrowBody))}function C(ie,te,Y){return!ie.async&&!!(Y&t.TokenContext.expressionStatement)}function $(ie,te){const Y=te.type;if(ie.type==="BinaryExpression"&&ie.operator==="**"&&Y==="BinaryExpression"&&te.operator==="**")return te.left===ie;if(m(ie,te)||D(ie,te)||Y==="UnaryExpression"||Y==="SpreadElement"||Y==="AwaitExpression")return!0;const re=h(te,Y);if(re!=null){const De=h(ie,ie.type);if(re===De&&Y==="BinaryExpression"&&te.right===ie||re>De)return!0}}function w(ie,te){const Y=te.type;return Y==="ArrayTypeAnnotation"||Y==="NullableTypeAnnotation"||Y==="IntersectionTypeAnnotation"||Y==="UnionTypeAnnotation"}function P(ie,te){return o(te)&&te.objectType===ie}function I(ie,te){return(te.type==="AssignmentExpression"||te.type==="AssignmentPattern")&&te.left===ie||te.type==="BinaryExpression"&&(te.operator==="|"||te.operator==="&")&&ie===te.left?!0:$(ie,te)}function L(ie,te){const Y=te.type;return Y==="TSArrayType"||Y==="TSOptionalType"||Y==="TSIntersectionType"||Y==="TSUnionType"||Y==="TSRestType"}function F(ie,te){const Y=te.type;return Y==="TSArrayType"||Y==="TSOptionalType"}function S(ie,te){const Y=te.type;return(Y==="CallExpression"||Y==="OptionalCallExpression"||Y==="NewExpression"||Y==="TSInstantiationExpression")&&!!te.typeParameters}function A(ie,te,Y,re){return ie.operator==="in"&&re}function B(ie,te){const Y=te.type;return!(Y==="ForStatement"||Y==="ThrowStatement"||Y==="ReturnStatement"||Y==="IfStatement"&&te.test===ie||Y==="WhileStatement"&&te.test===ie||Y==="ForInStatement"&&te.right===ie||Y==="SwitchStatement"&&te.discriminant===ie||Y==="ExpressionStatement"&&te.expression===ie)}function x(ie,te){const Y=te.type;return Y==="BinaryExpression"||Y==="LogicalExpression"||Y==="UnaryExpression"||Y==="SpreadElement"||D(ie,te)||Y==="AwaitExpression"&&f(ie)||Y==="ConditionalExpression"&&ie===te.test||m(ie,te)||d(Y)}function N(ie,te,Y){return!!(Y&(t.TokenContext.expressionStatement|t.TokenContext.exportDefault))}function H(ie,te){return D(ie,te)||n(te)&&te.operator==="**"&&te.left===ie||m(ie,te)}function T(ie,te,Y){return!!(Y&(t.TokenContext.expressionStatement|t.TokenContext.exportDefault))}function _(ie,te){return s(te)||R(ie,te)}function R(ie,te){const Y=te.type;return Y==="UnaryExpression"||Y==="SpreadElement"||Y==="BinaryExpression"||Y==="LogicalExpression"||Y==="ConditionalExpression"&&te.test===ie||Y==="AwaitExpression"||d(Y)?!0:H(ie,te)}function Q(ie,te){return i(te)&&te.callee===ie||u(te)&&te.object===ie}function ne(ie,te){return l(ie.left)?!0:R(ie,te)}function X(ie,te){const Y=te.type;if(d(Y))return!0;if(Y!=="LogicalExpression")return!1;switch(ie.operator){case"||":return te.operator==="??"||te.operator==="&&";case"&&":return te.operator==="??";case"??":return te.operator!=="??"}}function ae(ie,te,Y){var re;const De=te.type;if((re=ie.extra)!=null&&re.parenthesized&&De==="AssignmentExpression"&&te.left===ie){const de=te.right.type;if((de==="FunctionExpression"||de==="ClassExpression")&&te.right.id==null)return!0}return ie.name==="let"?(u(te,{object:ie,computed:!0})||c(te,{object:ie,computed:!0,optional:!1}))&&Y&(t.TokenContext.expressionStatement|t.TokenContext.forHead|t.TokenContext.forInHead)?!0:!!(Y&t.TokenContext.forOfHead):ie.name==="async"&&a(te,{left:ie,await:!1})}return it}var bd;function hi(){if(bd)return Lr;bd=1,Object.defineProperty(Lr,"__esModule",{value:!0}),Lr.TokenContext=void 0,Lr.needsParens=g,Lr.needsWhitespace=d,Lr.needsWhitespaceAfter=D,Lr.needsWhitespaceBefore=m;var e=nu,t=qj(),r=Ge();const{FLIPPED_ALIAS_KEYS:n,isCallExpression:i,isDecorator:s,isExpressionStatement:a,isMemberExpression:o,isNewExpression:u,isParenthesizedExpression:l}=r;Lr.TokenContext={expressionStatement:1,arrowBody:2,exportDefault:4,forHead:8,forInHead:16,forOfHead:32,arrowFlowReturnType:64};function c(b){const O=new Map;function C($,w){const P=O.get($);O.set($,P?function(I,L,F,S){var A;return(A=P(I,L,F,S))!=null?A:w(I,L,F,S)}:w)}for(const $ of Object.keys(b)){const w=n[$];if(w)for(const P of w)C(P,b[$]);else C($,b[$])}return O}const f=c(t),p=c(e.nodes);function h(b){return i(b)?!0:o(b)&&h(b.object)}function d(b,O,C){var $;if(!b)return!1;a(b)&&(b=b.expression);const w=($=p.get(b.type))==null?void 0:$(b,O);return typeof w=="number"?(w&C)!==0:!1}function m(b,O){return d(b,O,1)}function D(b,O){return d(b,O,2)}function g(b,O,C,$){var w;return O?u(O)&&O.callee===b&&h(b)?!0:s(O)?!y(b)&&!(i(b)&&y(b.callee))&&!l(b):(w=f.get(b.type))==null?void 0:w(b,O,C,$):!1}function y(b){switch(b.type){case"Identifier":return!0;case"MemberExpression":return!b.computed&&b.property.type==="Identifier"&&y(b.object);default:return!1}}return Lr}var bD={},Hs={};Object.defineProperty(Hs,"__esModule",{value:!0});Hs.TaggedTemplateExpression=Kj;Hs.TemplateElement=Wj;Hs.TemplateLiteral=Hj;function Kj(e){this.print(e.tag,e),this.print(e.typeParameters,e),this.print(e.quasi,e)}function Wj(){throw new Error("TemplateElement printing is handled in TemplateLiteral")}function Hj(e){const t=e.quasis;let r="`";for(let n=0;n<t.length;n++)r+=t[n].value.raw,n+1<t.length&&(this.token(r+"${",!0),this.print(e.expressions[n],e),r="}");this.token(r+"`",!0)}var ut={};Object.defineProperty(ut,"__esModule",{value:!0});ut.LogicalExpression=ut.BinaryExpression=ut.AssignmentExpression=D$;ut.AssignmentPattern=y$;ut.AwaitExpression=p$;ut.BindExpression=g$;ut.CallExpression=c$;ut.ConditionalExpression=t$;ut.Decorator=o$;ut.DoExpression=Qj;ut.EmptyStatement=d$;ut.ExpressionStatement=m$;ut.Import=f$;ut.MemberExpression=E$;ut.MetaProperty=b$;ut.ModuleExpression=v$;ut.NewExpression=r$;ut.OptionalCallExpression=l$;ut.OptionalMemberExpression=u$;ut.ParenthesizedExpression=Zj;ut.PrivateName=T$;ut.SequenceExpression=n$;ut.Super=s$;ut.ThisExpression=i$;ut.UnaryExpression=zj;ut.UpdateExpression=e$;ut.V8IntrinsicIdentifier=S$;ut.YieldExpression=h$;ut._shouldPrintDecoratorsBeforeExport=a$;var Gj=Ge(),Yj=hi();const{isCallExpression:Xj,isLiteral:TD,isMemberExpression:_f,isNewExpression:Jj}=Gj;function zj(e){const{operator:t}=e;t==="void"||t==="delete"||t==="typeof"||t==="throw"?(this.word(t),this.space()):this.token(t),this.print(e.argument,e)}function Qj(e){e.async&&(this.word("async",!0),this.space()),this.word("do"),this.space(),this.print(e.body,e)}function Zj(e){this.tokenChar(40),this.print(e.expression,e),this.rightParens(e)}function e$(e){e.prefix?(this.token(e.operator),this.print(e.argument,e)):(this.printTerminatorless(e.argument,e,!0),this.token(e.operator))}function t$(e){this.print(e.test,e),this.space(),this.tokenChar(63),this.space(),this.print(e.consequent,e),this.space(),this.tokenChar(58),this.space(),this.print(e.alternate,e)}function r$(e,t){if(this.word("new"),this.space(),this.print(e.callee,e),this.format.minified&&e.arguments.length===0&&!e.optional&&!Xj(t,{callee:e})&&!_f(t)&&!Jj(t))return;this.print(e.typeArguments,e),this.print(e.typeParameters,e),e.optional&&this.token("?."),this.tokenChar(40);const r=this.enterForStatementInit(!1);this.printList(e.arguments,e),r(),this.rightParens(e)}function n$(e){this.printList(e.expressions,e)}function i$(){this.word("this")}function s$(){this.word("super")}function a$(e){return typeof this.format.decoratorsBeforeExport=="boolean"?this.format.decoratorsBeforeExport:typeof e.start=="number"&&e.start===e.declaration.start}function o$(e){this.tokenChar(64),this.print(e.expression,e),this.newline()}function u$(e){let{computed:t}=e;const{optional:r,property:n}=e;if(this.print(e.object,e),!t&&_f(n))throw new TypeError("Got a MemberExpression for MemberExpression property");TD(n)&&typeof n.value=="number"&&(t=!0),r&&this.token("?."),t?(this.tokenChar(91),this.print(n,e),this.tokenChar(93)):(r||this.tokenChar(46),this.print(n,e))}function l$(e){this.print(e.callee,e),this.print(e.typeParameters,e),e.optional&&this.token("?."),this.print(e.typeArguments,e),this.tokenChar(40);const t=this.enterForStatementInit(!1);this.printList(e.arguments,e),t(),this.rightParens(e)}function c$(e){this.print(e.callee,e),this.print(e.typeArguments,e),this.print(e.typeParameters,e),this.tokenChar(40);const t=this.enterForStatementInit(!1);this.printList(e.arguments,e),t(),this.rightParens(e)}function f$(){this.word("import")}function p$(e){this.word("await"),e.argument&&(this.space(),this.printTerminatorless(e.argument,e,!1))}function h$(e){this.word("yield",!0),e.delegate?(this.tokenChar(42),e.argument&&(this.space(),this.print(e.argument,e))):e.argument&&(this.space(),this.printTerminatorless(e.argument,e,!1))}function d$(){this.semicolon(!0)}function m$(e){this.tokenContext|=Yj.TokenContext.expressionStatement,this.print(e.expression,e),this.semicolon()}function y$(e){this.print(e.left,e),e.left.type==="Identifier"&&(e.left.optional&&this.tokenChar(63),this.print(e.left.typeAnnotation,e)),this.space(),this.tokenChar(61),this.space(),this.print(e.right,e)}function D$(e){this.print(e.left,e),this.space(),e.operator==="in"||e.operator==="instanceof"?this.word(e.operator):this.token(e.operator),this.space(),this.print(e.right,e)}function g$(e){this.print(e.object,e),this.token("::"),this.print(e.callee,e)}function E$(e){if(this.print(e.object,e),!e.computed&&_f(e.property))throw new TypeError("Got a MemberExpression for MemberExpression property");let t=e.computed;if(TD(e.property)&&typeof e.property.value=="number"&&(t=!0),t){const r=this.enterForStatementInit(!1);this.tokenChar(91),this.print(e.property,e),this.tokenChar(93),r()}else this.tokenChar(46),this.print(e.property,e)}function b$(e){this.print(e.meta,e),this.tokenChar(46),this.print(e.property,e)}function T$(e){this.tokenChar(35),this.print(e.id,e)}function S$(e){this.tokenChar(37),this.word(e.name)}function v$(e){this.word("module",!0),this.space(),this.tokenChar(123),this.indent();const{body:t}=e;(t.body.length||t.directives.length)&&this.newline(),this.print(t,e),this.dedent(),this.rightBrace(e)}var Dt={};Object.defineProperty(Dt,"__esModule",{value:!0});Dt.BreakStatement=N$;Dt.CatchClause=j$;Dt.ContinueStatement=B$;Dt.DebuggerStatement=V$;Dt.DoWhileStatement=O$;Dt.ForOfStatement=Dt.ForInStatement=void 0;Dt.ForStatement=w$;Dt.IfStatement=_$;Dt.LabeledStatement=R$;Dt.ReturnStatement=L$;Dt.SwitchCase=U$;Dt.SwitchStatement=$$;Dt.ThrowStatement=k$;Dt.TryStatement=M$;Dt.VariableDeclaration=q$;Dt.VariableDeclarator=K$;Dt.WhileStatement=I$;Dt.WithStatement=F$;var A$=Ge(),Yl=hi();const{isFor:Td,isForStatement:C$,isIfStatement:P$,isStatement:x$}=A$;function F$(e){this.word("with"),this.space(),this.tokenChar(40),this.print(e.object,e),this.tokenChar(41),this.printBlock(e)}function _$(e){this.word("if"),this.space(),this.tokenChar(40),this.print(e.test,e),this.tokenChar(41),this.space();const t=e.alternate&&P$(SD(e.consequent));t&&(this.tokenChar(123),this.newline(),this.indent()),this.printAndIndentOnComments(e.consequent,e),t&&(this.dedent(),this.newline(),this.tokenChar(125)),e.alternate&&(this.endsWith(125)&&this.space(),this.word("else"),this.space(),this.printAndIndentOnComments(e.alternate,e))}function SD(e){const{body:t}=e;return x$(t)===!1?e:SD(t)}function w$(e){this.word("for"),this.space(),this.tokenChar(40);{const t=this.enterForStatementInit(!0);this.tokenContext|=Yl.TokenContext.forHead,this.print(e.init,e),t()}this.tokenChar(59),e.test&&(this.space(),this.print(e.test,e)),this.tokenChar(59),e.update&&(this.space(),this.print(e.update,e)),this.tokenChar(41),this.printBlock(e)}function I$(e){this.word("while"),this.space(),this.tokenChar(40),this.print(e.test,e),this.tokenChar(41),this.printBlock(e)}function vD(e){this.word("for"),this.space();const t=e.type==="ForOfStatement";t&&e.await&&(this.word("await"),this.space()),this.noIndentInnerCommentsHere(),this.tokenChar(40);{const r=t?null:this.enterForStatementInit(!0);this.tokenContext|=t?Yl.TokenContext.forOfHead:Yl.TokenContext.forInHead,this.print(e.left,e),r==null||r()}this.space(),this.word(t?"of":"in"),this.space(),this.print(e.right,e),this.tokenChar(41),this.printBlock(e)}Dt.ForInStatement=vD;Dt.ForOfStatement=vD;function O$(e){this.word("do"),this.space(),this.print(e.body,e),this.space(),this.word("while"),this.space(),this.tokenChar(40),this.print(e.test,e),this.tokenChar(41),this.semicolon()}function iu(e,t,r,n){t&&(e.space(),e.printTerminatorless(t,r,n)),e.semicolon()}function N$(e){this.word("break"),iu(this,e.label,e,!0)}function B$(e){this.word("continue"),iu(this,e.label,e,!0)}function L$(e){this.word("return"),iu(this,e.argument,e,!1)}function k$(e){this.word("throw"),iu(this,e.argument,e,!1)}function R$(e){this.print(e.label,e),this.tokenChar(58),this.space(),this.print(e.body,e)}function M$(e){this.word("try"),this.space(),this.print(e.block,e),this.space(),e.handlers?this.print(e.handlers[0],e):this.print(e.handler,e),e.finalizer&&(this.space(),this.word("finally"),this.space(),this.print(e.finalizer,e))}function j$(e){this.word("catch"),this.space(),e.param&&(this.tokenChar(40),this.print(e.param,e),this.print(e.param.typeAnnotation,e),this.tokenChar(41),this.space()),this.print(e.body,e)}function $$(e){this.word("switch"),this.space(),this.tokenChar(40),this.print(e.discriminant,e),this.tokenChar(41),this.space(),this.tokenChar(123),this.printSequence(e.cases,e,{indent:!0,addNewlines(t,r){if(!t&&e.cases[e.cases.length-1]===r)return-1}}),this.rightBrace(e)}function U$(e){e.test?(this.word("case"),this.space(),this.print(e.test,e),this.tokenChar(58)):(this.word("default"),this.tokenChar(58)),e.consequent.length&&(this.newline(),this.printSequence(e.consequent,e,{indent:!0}))}function V$(){this.word("debugger"),this.semicolon()}function q$(e,t){e.declare&&(this.word("declare"),this.space());const{kind:r}=e;r==="await using"?(this.word("await"),this.space(),this.word("using",!0)):this.word(r,r==="using"),this.space();let n=!1;if(!Td(t))for(const i of e.declarations)i.init&&(n=!0);if(this.printList(e.declarations,e,{separator:n?function(){this.tokenChar(44),this.newline()}:void 0,indent:e.declarations.length>1}),Td(t)){if(C$(t)){if(t.init===e)return}else if(t.left===e)return}this.semicolon()}function K$(e){this.print(e.id,e),e.definite&&this.tokenChar(33),this.print(e.id.typeAnnotation,e),e.init&&(this.space(),this.tokenChar(61),this.space(),this.print(e.init,e))}var ar={};Object.defineProperty(ar,"__esModule",{value:!0});ar.ClassAccessorProperty=z$;ar.ClassBody=X$;ar.ClassExpression=ar.ClassDeclaration=Y$;ar.ClassMethod=Z$;ar.ClassPrivateMethod=eU;ar.ClassPrivateProperty=Q$;ar.ClassProperty=J$;ar.StaticBlock=rU;ar._classMethodHead=tU;var W$=Ge();const{isExportDefaultDeclaration:H$,isExportNamedDeclaration:G$}=W$;function Y$(e,t){(!(H$(t)||G$(t))||!this._shouldPrintDecoratorsBeforeExport(t))&&this.printJoin(e.decorators,e),e.declare&&(this.word("declare"),this.space()),e.abstract&&(this.word("abstract"),this.space()),this.word("class"),e.id&&(this.space(),this.print(e.id,e)),this.print(e.typeParameters,e),e.superClass&&(this.space(),this.word("extends"),this.space(),this.print(e.superClass,e),this.print(e.superTypeParameters,e)),e.implements&&(this.space(),this.word("implements"),this.space(),this.printList(e.implements,e)),this.space(),this.print(e.body,e)}function X$(e){if(this.tokenChar(123),e.body.length===0)this.tokenChar(125);else{this.newline();const t=this.enterForStatementInit(!1);this.printSequence(e.body,e,{indent:!0}),t(),this.endsWith(10)||this.newline(),this.rightBrace(e)}}function J$(e){var t;this.printJoin(e.decorators,e);const r=(t=e.key.loc)==null||(t=t.end)==null?void 0:t.line;r&&this.catchUp(r),this.tsPrintClassMemberModifiers(e),e.computed?(this.tokenChar(91),this.print(e.key,e),this.tokenChar(93)):(this._variance(e),this.print(e.key,e)),e.optional&&this.tokenChar(63),e.definite&&this.tokenChar(33),this.print(e.typeAnnotation,e),e.value&&(this.space(),this.tokenChar(61),this.space(),this.print(e.value,e)),this.semicolon()}function z$(e){var t;this.printJoin(e.decorators,e);const r=(t=e.key.loc)==null||(t=t.end)==null?void 0:t.line;r&&this.catchUp(r),this.tsPrintClassMemberModifiers(e),this.word("accessor",!0),this.space(),e.computed?(this.tokenChar(91),this.print(e.key,e),this.tokenChar(93)):(this._variance(e),this.print(e.key,e)),e.optional&&this.tokenChar(63),e.definite&&this.tokenChar(33),this.print(e.typeAnnotation,e),e.value&&(this.space(),this.tokenChar(61),this.space(),this.print(e.value,e)),this.semicolon()}function Q$(e){this.printJoin(e.decorators,e),e.static&&(this.word("static"),this.space()),this.print(e.key,e),this.print(e.typeAnnotation,e),e.value&&(this.space(),this.tokenChar(61),this.space(),this.print(e.value,e)),this.semicolon()}function Z$(e){this._classMethodHead(e),this.space(),this.print(e.body,e)}function eU(e){this._classMethodHead(e),this.space(),this.print(e.body,e)}function tU(e){var t;this.printJoin(e.decorators,e);const r=(t=e.key.loc)==null||(t=t.end)==null?void 0:t.line;r&&this.catchUp(r),this.tsPrintClassMemberModifiers(e),this._methodHead(e)}function rU(e){this.word("static"),this.space(),this.tokenChar(123),e.body.length===0?this.tokenChar(125):(this.newline(),this.printSequence(e.body,e,{indent:!0}),this.rightBrace(e))}var Er={};Object.defineProperty(Er,"__esModule",{value:!0});Er.ArrowFunctionExpression=hU;Er.FunctionDeclaration=Er.FunctionExpression=pU;Er._functionHead=fU;Er._methodHead=lU;Er._param=uU;Er._parameters=oU;Er._params=aU;Er._predicate=cU;var nU=Ge(),iU=hi();const{isIdentifier:sU}=nU;function aU(e,t,r){this.print(e.typeParameters,e);const n=mU.call(this,t,r);n&&this.sourceIdentifierName(n.name,n.pos),this.tokenChar(40),this._parameters(e.params,e),this.tokenChar(41);const i=e.type==="ArrowFunctionExpression";this.print(e.returnType,e,i),this._noLineTerminator=i}function oU(e,t){const r=this.enterForStatementInit(!1),n=e.length;for(let i=0;i<n;i++)this._param(e[i],t),i<e.length-1&&(this.tokenChar(44),this.space());r()}function uU(e,t){this.printJoin(e.decorators,e),this.print(e,t),e.optional&&this.tokenChar(63),this.print(e.typeAnnotation,e)}function lU(e){const t=e.kind,r=e.key;(t==="get"||t==="set")&&(this.word(t),this.space()),e.async&&(this.word("async",!0),this.space()),(t==="method"||t==="init")&&e.generator&&this.tokenChar(42),e.computed?(this.tokenChar(91),this.print(r,e),this.tokenChar(93)):this.print(r,e),e.optional&&this.tokenChar(63),this._params(e,e.computed&&e.key.type!=="StringLiteral"?void 0:e.key,void 0)}function cU(e,t){e.predicate&&(e.returnType||this.tokenChar(58),this.space(),this.print(e.predicate,e,t))}function fU(e,t){e.async&&(this.word("async"),this._endsWithInnerRaw=!1,this.space()),this.word("function"),e.generator&&(this._endsWithInnerRaw=!1,this.tokenChar(42)),this.space(),e.id&&this.print(e.id,e),this._params(e,e.id,t),e.type!=="TSDeclareFunction"&&this._predicate(e)}function pU(e,t){this._functionHead(e,t),this.space(),this.print(e.body,e)}function hU(e,t){e.async&&(this.word("async",!0),this.space());let r;!this.format.retainLines&&e.params.length===1&&sU(r=e.params[0])&&!dU(e,r)?this.print(r,e,!0):this._params(e,void 0,t),this._predicate(e,!0),this.space(),this.printInnerComments(),this.token("=>"),this.space(),this.tokenContext|=iU.TokenContext.arrowBody,this.print(e.body,e)}function dU(e,t){var r,n;return!!(e.typeParameters||e.returnType||e.predicate||t.typeAnnotation||t.optional||(r=t.leadingComments)!=null&&r.length||(n=t.trailingComments)!=null&&n.length)}function mU(e,t){let r=e;if(!r&&t){const u=t.type;u==="VariableDeclarator"?r=t.id:u==="AssignmentExpression"||u==="AssignmentPattern"?r=t.left:u==="ObjectProperty"||u==="ClassProperty"?(!t.computed||t.key.type==="StringLiteral")&&(r=t.key):(u==="ClassPrivateProperty"||u==="ClassAccessorProperty")&&(r=t.key)}if(!r)return;let n;if(r.type==="Identifier"){var i,s;n={pos:(i=r.loc)==null?void 0:i.start,name:((s=r.loc)==null?void 0:s.identifierName)||r.name}}else if(r.type==="PrivateName"){var a;n={pos:(a=r.loc)==null?void 0:a.start,name:"#"+r.id.name}}else if(r.type==="StringLiteral"){var o;n={pos:(o=r.loc)==null?void 0:o.start,name:r.value}}return n}var Bt={};Object.defineProperty(Bt,"__esModule",{value:!0});Bt.ExportAllDeclaration=_U;Bt.ExportDefaultDeclaration=IU;Bt.ExportDefaultSpecifier=CU;Bt.ExportNamedDeclaration=wU;Bt.ExportNamespaceSpecifier=xU;Bt.ExportSpecifier=PU;Bt.ImportAttribute=NU;Bt.ImportDeclaration=OU;Bt.ImportDefaultSpecifier=AU;Bt.ImportExpression=LU;Bt.ImportNamespaceSpecifier=BU;Bt.ImportSpecifier=vU;Bt._printAttributes=FU;var yU=Ge(),DU=hi();const{isClassDeclaration:gU,isExportDefaultSpecifier:EU,isExportNamespaceSpecifier:bU,isImportDefaultSpecifier:TU,isImportNamespaceSpecifier:SU,isStatement:AD}=yU;function vU(e){(e.importKind==="type"||e.importKind==="typeof")&&(this.word(e.importKind),this.space()),this.print(e.imported,e),e.local&&e.local.name!==e.imported.name&&(this.space(),this.word("as"),this.space(),this.print(e.local,e))}function AU(e){this.print(e.local,e)}function CU(e){this.print(e.exported,e)}function PU(e){e.exportKind==="type"&&(this.word("type"),this.space()),this.print(e.local,e),e.exported&&e.local.name!==e.exported.name&&(this.space(),this.word("as"),this.space(),this.print(e.exported,e))}function xU(e){this.tokenChar(42),this.space(),this.word("as"),this.space(),this.print(e.exported,e)}let Sd=!1;function FU(e){const{importAttributesKeyword:t}=this.format,{attributes:r,assertions:n}=e;r&&!t&&!Sd&&(Sd=!0,console.warn('You are using import attributes, without specifying the desired output syntax.\nPlease specify the "importAttributesKeyword" generator option, whose value can be one of:\n - "with" : `import { a } from "b" with { type: "json" };`\n - "assert" : `import { a } from "b" assert { type: "json" };`\n - "with-legacy" : `import { a } from "b" with type: "json";`\n'));const i=t==="assert"||!t&&n;if(this.word(i?"assert":"with"),this.space(),!i&&t!=="with"){this.printList(r||n,e);return}this.tokenChar(123),this.space(),this.printList(r||n,e),this.space(),this.tokenChar(125)}function _U(e){var t,r;this.word("export"),this.space(),e.exportKind==="type"&&(this.word("type"),this.space()),this.tokenChar(42),this.space(),this.word("from"),this.space(),(t=e.attributes)!=null&&t.length||(r=e.assertions)!=null&&r.length?(this.print(e.source,e,!0),this.space(),this._printAttributes(e)):this.print(e.source,e),this.semicolon()}function CD(e,t){gU(t.declaration)&&e._shouldPrintDecoratorsBeforeExport(t)&&e.printJoin(t.declaration.decorators,t)}function wU(e){if(CD(this,e),this.word("export"),this.space(),e.declaration){const n=e.declaration;this.print(n,e),AD(n)||this.semicolon()}else{e.exportKind==="type"&&(this.word("type"),this.space());const n=e.specifiers.slice(0);let i=!1;for(;;){const s=n[0];if(EU(s)||bU(s))i=!0,this.print(n.shift(),e),n.length&&(this.tokenChar(44),this.space());else break}if((n.length||!n.length&&!i)&&(this.tokenChar(123),n.length&&(this.space(),this.printList(n,e),this.space()),this.tokenChar(125)),e.source){var t,r;this.space(),this.word("from"),this.space(),(t=e.attributes)!=null&&t.length||(r=e.assertions)!=null&&r.length?(this.print(e.source,e,!0),this.space(),this._printAttributes(e)):this.print(e.source,e)}this.semicolon()}}function IU(e){CD(this,e),this.word("export"),this.noIndentInnerCommentsHere(),this.space(),this.word("default"),this.space(),this.tokenContext|=DU.TokenContext.exportDefault;const t=e.declaration;this.print(t,e),AD(t)||this.semicolon()}function OU(e){var t,r;this.word("import"),this.space();const n=e.importKind==="type"||e.importKind==="typeof";n?(this.noIndentInnerCommentsHere(),this.word(e.importKind),this.space()):e.module?(this.noIndentInnerCommentsHere(),this.word("module"),this.space()):e.phase&&(this.noIndentInnerCommentsHere(),this.word(e.phase),this.space());const i=e.specifiers.slice(0),s=!!i.length;for(;s;){const a=i[0];if(TU(a)||SU(a))this.print(i.shift(),e),i.length&&(this.tokenChar(44),this.space());else break}i.length?(this.tokenChar(123),this.space(),this.printList(i,e),this.space(),this.tokenChar(125)):n&&!s&&(this.tokenChar(123),this.tokenChar(125)),(s||n)&&(this.space(),this.word("from"),this.space()),(t=e.attributes)!=null&&t.length||(r=e.assertions)!=null&&r.length?(this.print(e.source,e,!0),this.space(),this._printAttributes(e)):this.print(e.source,e),this.semicolon()}function NU(e){this.print(e.key),this.tokenChar(58),this.space(),this.print(e.value)}function BU(e){this.tokenChar(42),this.space(),this.word("as"),this.space(),this.print(e.local,e)}function LU(e){this.word("import"),e.phase&&(this.tokenChar(46),this.word(e.phase)),this.tokenChar(40),this.print(e.source,e),e.options!=null&&(this.tokenChar(44),this.space(),this.print(e.options,e)),this.tokenChar(41)}var ct={};const PD={},kU=PD.hasOwnProperty,xD=(e,t)=>{for(const r in e)kU.call(e,r)&&t(r,e[r])},RU=(e,t)=>(t&&xD(t,(r,n)=>{e[r]=n}),e),MU=(e,t)=>{const r=e.length;let n=-1;for(;++n<r;)t(e[n])},Gs=PD.toString,jU=Array.isArray,$U=Buffer.isBuffer,UU=e=>Gs.call(e)=="[object Object]",VU=e=>typeof e=="string"||Gs.call(e)=="[object String]",qU=e=>typeof e=="number"||Gs.call(e)=="[object Number]",KU=e=>typeof e=="function",WU=e=>Gs.call(e)=="[object Map]",HU=e=>Gs.call(e)=="[object Set]",GU={'"':'\\"',"'":"\\'","\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t"},YU=/["'\\\b\f\n\r\t]/,XU=/[0-9]/,JU=/[ !#-&\(-\[\]-_a-~]/,dn=(e,t)=>{const r=()=>{l=u,++t.indentLevel,u=t.indent.repeat(t.indentLevel)},n={escapeEverything:!1,minimal:!1,isScriptContext:!1,quotes:"single",wrap:!1,es6:!1,json:!1,compact:!0,lowercaseHex:!1,numbers:"decimal",indent:" ",indentLevel:0,__inline1__:!1,__inline2__:!1},i=t&&t.json;i&&(n.quotes="double",n.wrap=!0),t=RU(n,t),t.quotes!="single"&&t.quotes!="double"&&t.quotes!="backtick"&&(t.quotes="single");const s=t.quotes=="double"?'"':t.quotes=="backtick"?"`":"'",a=t.compact,o=t.lowercaseHex;let u=t.indent.repeat(t.indentLevel),l="";const c=t.__inline1__,f=t.__inline2__,p=a?"":`
|
|
128
|
+
`;let h,d=!0;const m=t.numbers=="binary",D=t.numbers=="octal",g=t.numbers=="decimal",y=t.numbers=="hexadecimal";if(i&&e&&KU(e.toJSON)&&(e=e.toJSON()),!VU(e)){if(WU(e))return e.size==0?"new Map()":(a||(t.__inline1__=!0,t.__inline2__=!1),"new Map("+dn(Array.from(e),t)+")");if(HU(e))return e.size==0?"new Set()":"new Set("+dn(Array.from(e),t)+")";if($U(e))return e.length==0?"Buffer.from([])":"Buffer.from("+dn(Array.from(e),t)+")";if(jU(e))return h=[],t.wrap=!0,c&&(t.__inline1__=!1,t.__inline2__=!0),f||r(),MU(e,$=>{d=!1,f&&(t.__inline2__=!1),h.push((a||f?"":u)+dn($,t))}),d?"[]":f?"["+h.join(", ")+"]":"["+p+h.join(","+p)+p+(a?"":l)+"]";if(qU(e)){if(i)return JSON.stringify(e);if(g)return String(e);if(y){let $=e.toString(16);return o||($=$.toUpperCase()),"0x"+$}if(m)return"0b"+e.toString(2);if(D)return"0o"+e.toString(8)}else return UU(e)?(h=[],t.wrap=!0,r(),xD(e,($,w)=>{d=!1,h.push((a?"":u)+dn($,t)+":"+(a?"":" ")+dn(w,t))}),d?"{}":"{"+p+h.join(","+p)+p+(a?"":l)+"}"):i?JSON.stringify(e)||"null":String(e)}const b=e;let O=-1;const C=b.length;for(h="";++O<C;){const $=b.charAt(O);if(t.es6){const F=b.charCodeAt(O);if(F>=55296&&F<=56319&&C>O+1){const S=b.charCodeAt(O+1);if(S>=56320&&S<=57343){let B=((F-55296)*1024+S-56320+65536).toString(16);o||(B=B.toUpperCase()),h+="\\u{"+B+"}",++O;continue}}}if(!t.escapeEverything){if(JU.test($)){h+=$;continue}if($=='"'){h+=s==$?'\\"':$;continue}if($=="`"){h+=s==$?"\\`":$;continue}if($=="'"){h+=s==$?"\\'":$;continue}}if($=="\0"&&!i&&!XU.test(b.charAt(O+1))){h+="\\0";continue}if(YU.test($)){h+=GU[$];continue}const w=$.charCodeAt(0);if(t.minimal&&w!=8232&&w!=8233){h+=$;continue}let P=w.toString(16);o||(P=P.toUpperCase());const I=P.length>2||i,L="\\"+(I?"u":"x")+("0000"+P).slice(I?-4:-2);h+=L}return t.wrap&&(h=s+h+s),s=="`"&&(h=h.replace(/\$\{/g,"\\${")),t.isScriptContext?h.replace(/<\/(script|style)/gi,"<\\/$1").replace(/<!--/g,i?"\\u003C!--":"\\x3C!--"):h};dn.version="2.5.2";var zU=dn;Object.defineProperty(ct,"__esModule",{value:!0});ct.ArgumentPlaceholder=tV;ct.ArrayPattern=ct.ArrayExpression=aV;ct.BigIntLiteral=dV;ct.BooleanLiteral=cV;ct.DecimalLiteral=mV;ct.Identifier=eV;ct.NullLiteral=fV;ct.NumericLiteral=pV;ct.ObjectPattern=ct.ObjectExpression=nV;ct.ObjectMethod=iV;ct.ObjectProperty=sV;ct.PipelineBareFunction=gV;ct.PipelinePrimaryTopicReference=EV;ct.PipelineTopicExpression=DV;ct.RecordExpression=oV;ct.RegExpLiteral=lV;ct.SpreadElement=ct.RestElement=rV;ct.StringLiteral=hV;ct.TopicReference=yV;ct.TupleExpression=uV;var QU=Ge(),FD=zU;const{isAssignmentPattern:ZU,isIdentifier:zu}=QU;function eV(e){var t;this.sourceIdentifierName(((t=e.loc)==null?void 0:t.identifierName)||e.name),this.word(e.name)}function tV(){this.tokenChar(63)}function rV(e){this.token("..."),this.print(e.argument,e)}function nV(e){const t=e.properties;if(this.tokenChar(123),t.length){const r=this.enterForStatementInit(!1);this.space(),this.printList(t,e,{indent:!0,statement:!0}),this.space(),r()}this.sourceWithOffset("end",e.loc,-1),this.tokenChar(125)}function iV(e){this.printJoin(e.decorators,e),this._methodHead(e),this.space(),this.print(e.body,e)}function sV(e){if(this.printJoin(e.decorators,e),e.computed)this.tokenChar(91),this.print(e.key,e),this.tokenChar(93);else{if(ZU(e.value)&&zu(e.key)&&e.key.name===e.value.left.name){this.print(e.value,e);return}if(this.print(e.key,e),e.shorthand&&zu(e.key)&&zu(e.value)&&e.key.name===e.value.name)return}this.tokenChar(58),this.space(),this.print(e.value,e)}function aV(e){const t=e.elements,r=t.length;this.tokenChar(91);const n=this.enterForStatementInit(!1);for(let i=0;i<t.length;i++){const s=t[i];s?(i>0&&this.space(),this.print(s,e),i<r-1&&this.tokenChar(44)):this.tokenChar(44)}n(),this.tokenChar(93)}function oV(e){const t=e.properties;let r,n;if(this.format.recordAndTupleSyntaxType==="bar")r="{|",n="|}";else{if(this.format.recordAndTupleSyntaxType!=="hash"&&this.format.recordAndTupleSyntaxType!=null)throw new Error(`The "recordAndTupleSyntaxType" generator option must be "bar" or "hash" (${JSON.stringify(this.format.recordAndTupleSyntaxType)} received).`);r="#{",n="}"}this.token(r),t.length&&(this.space(),this.printList(t,e,{indent:!0,statement:!0}),this.space()),this.token(n)}function uV(e){const t=e.elements,r=t.length;let n,i;if(this.format.recordAndTupleSyntaxType==="bar")n="[|",i="|]";else if(this.format.recordAndTupleSyntaxType==="hash")n="#[",i="]";else throw new Error(`${this.format.recordAndTupleSyntaxType} is not a valid recordAndTuple syntax type`);this.token(n);for(let s=0;s<t.length;s++){const a=t[s];a&&(s>0&&this.space(),this.print(a,e),s<r-1&&this.tokenChar(44))}this.token(i)}function lV(e){this.word(`/${e.pattern}/${e.flags}`)}function cV(e){this.word(e.value?"true":"false")}function fV(){this.word("null")}function pV(e){const t=this.getPossibleRaw(e),r=this.format.jsescOption,n=e.value,i=n+"";r.numbers?this.number(FD(n,r),n):t==null?this.number(i,n):this.format.minified?this.number(t.length<i.length?t:i,n):this.number(t,n)}function hV(e){const t=this.getPossibleRaw(e);if(!this.format.minified&&t!==void 0){this.token(t);return}const r=FD(e.value,this.format.jsescOption);this.token(r)}function dV(e){const t=this.getPossibleRaw(e);if(!this.format.minified&&t!==void 0){this.word(t);return}this.word(e.value+"n")}function mV(e){const t=this.getPossibleRaw(e);if(!this.format.minified&&t!==void 0){this.word(t);return}this.word(e.value+"m")}const vd=new Set(["^^","@@","^","%","#"]);function yV(){const{topicToken:e}=this.format;if(vd.has(e))this.token(e);else{const t=JSON.stringify(e),r=Array.from(vd,n=>JSON.stringify(n));throw new Error(`The "topicToken" generator option must be one of ${r.join(", ")} (${t} received instead).`)}}function DV(e){this.print(e.expression,e)}function gV(e){this.print(e.callee,e)}function EV(){this.tokenChar(35)}var _D={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.AnyTypeAnnotation=o,e.ArrayTypeAnnotation=u,e.BooleanLiteralTypeAnnotation=c,e.BooleanTypeAnnotation=l,e.DeclareClass=p,e.DeclareExportAllDeclaration=w,e.DeclareExportDeclaration=$,e.DeclareFunction=h,e.DeclareInterface=D,e.DeclareModule=g,e.DeclareModuleExports=y,e.DeclareOpaqueType=O,e.DeclareTypeAlias=b,e.DeclareVariable=C,e.DeclaredPredicate=m,e.EmptyTypeAnnotation=Oe,e.EnumBooleanBody=F,e.EnumBooleanMember=H,e.EnumDeclaration=P,e.EnumDefaultedMember=x,e.EnumNumberBody=S,e.EnumNumberMember=T,e.EnumStringBody=A,e.EnumStringMember=_,e.EnumSymbolBody=B,e.ExistsTypeAnnotation=Q,e.FunctionTypeAnnotation=ne,e.FunctionTypeParam=X,e.IndexedAccessType=We,e.InferredPredicate=d,e.InterfaceDeclaration=Y,e.GenericTypeAnnotation=e.ClassImplements=e.InterfaceExtends=ae,e.InterfaceTypeAnnotation=De,e.IntersectionTypeAnnotation=de,e.MixedTypeAnnotation=Ce,e.NullLiteralTypeAnnotation=f,e.NullableTypeAnnotation=Te,Object.defineProperty(e,"NumberLiteralTypeAnnotation",{enumerable:!0,get:function(){return i.NumericLiteral}}),e.NumberTypeAnnotation=Be,e.ObjectTypeAnnotation=G,e.ObjectTypeCallProperty=E,e.ObjectTypeIndexer=j,e.ObjectTypeInternalSlot=V,e.ObjectTypeProperty=z,e.ObjectTypeSpreadProperty=se,e.OpaqueType=Z,e.OptionalIndexedAccessType=Re,e.QualifiedTypeIdentifier=oe,Object.defineProperty(e,"StringLiteralTypeAnnotation",{enumerable:!0,get:function(){return i.StringLiteral}}),e.StringTypeAnnotation=ze,e.SymbolTypeAnnotation=ce,e.ThisTypeAnnotation=_e,e.TupleTypeAnnotation=Ne,e.TypeAlias=Ae,e.TypeAnnotation=st,e.TypeCastExpression=ue,e.TypeParameter=Ue,e.TypeParameterDeclaration=e.TypeParameterInstantiation=fe,e.TypeofTypeAnnotation=ge,e.UnionTypeAnnotation=Ve,e.Variance=je,e.VoidTypeAnnotation=qe,e._interfaceish=ie,e._variance=te;var t=Ge(),r=Bt,n=hi(),i=ct;const{isDeclareExportDeclaration:s,isStatement:a}=t;function o(){this.word("any")}function u(W){this.print(W.elementType,W,!0),this.tokenChar(91),this.tokenChar(93)}function l(){this.word("boolean")}function c(W){this.word(W.value?"true":"false")}function f(){this.word("null")}function p(W,Se){s(Se)||(this.word("declare"),this.space()),this.word("class"),this.space(),this._interfaceish(W)}function h(W,Se){s(Se)||(this.word("declare"),this.space()),this.word("function"),this.space(),this.print(W.id,W),this.print(W.id.typeAnnotation.typeAnnotation,W),W.predicate&&(this.space(),this.print(W.predicate,W)),this.semicolon()}function d(){this.tokenChar(37),this.word("checks")}function m(W){this.tokenChar(37),this.word("checks"),this.tokenChar(40),this.print(W.value,W),this.tokenChar(41)}function D(W){this.word("declare"),this.space(),this.InterfaceDeclaration(W)}function g(W){this.word("declare"),this.space(),this.word("module"),this.space(),this.print(W.id,W),this.space(),this.print(W.body,W)}function y(W){this.word("declare"),this.space(),this.word("module"),this.tokenChar(46),this.word("exports"),this.print(W.typeAnnotation,W)}function b(W){this.word("declare"),this.space(),this.TypeAlias(W)}function O(W,Se){s(Se)||(this.word("declare"),this.space()),this.OpaqueType(W)}function C(W,Se){s(Se)||(this.word("declare"),this.space()),this.word("var"),this.space(),this.print(W.id,W),this.print(W.id.typeAnnotation,W),this.semicolon()}function $(W){this.word("declare"),this.space(),this.word("export"),this.space(),W.default&&(this.word("default"),this.space()),R.call(this,W)}function w(W){this.word("declare"),this.space(),r.ExportAllDeclaration.call(this,W)}function P(W){const{id:Se,body:Qe}=W;this.word("enum"),this.space(),this.print(Se,W),this.print(Qe,W)}function I(W,Se,Qe){Qe&&(W.space(),W.word("of"),W.space(),W.word(Se)),W.space()}function L(W,Se){const{members:Qe}=Se;W.token("{"),W.indent(),W.newline();for(const ft of Qe)W.print(ft,Se),W.newline();Se.hasUnknownMembers&&(W.token("..."),W.newline()),W.dedent(),W.token("}")}function F(W){const{explicitType:Se}=W;I(this,"boolean",Se),L(this,W)}function S(W){const{explicitType:Se}=W;I(this,"number",Se),L(this,W)}function A(W){const{explicitType:Se}=W;I(this,"string",Se),L(this,W)}function B(W){I(this,"symbol",!0),L(this,W)}function x(W){const{id:Se}=W;this.print(Se,W),this.tokenChar(44)}function N(W,Se){const{id:Qe,init:ft}=Se;W.print(Qe,Se),W.space(),W.token("="),W.space(),W.print(ft,Se),W.token(",")}function H(W){N(this,W)}function T(W){N(this,W)}function _(W){N(this,W)}function R(W){if(W.declaration){const Se=W.declaration;this.print(Se,W),a(Se)||this.semicolon()}else this.tokenChar(123),W.specifiers.length&&(this.space(),this.printList(W.specifiers,W),this.space()),this.tokenChar(125),W.source&&(this.space(),this.word("from"),this.space(),this.print(W.source,W)),this.semicolon()}function Q(){this.tokenChar(42)}function ne(W,Se){this.print(W.typeParameters,W),this.tokenChar(40),W.this&&(this.word("this"),this.tokenChar(58),this.space(),this.print(W.this.typeAnnotation,W),(W.params.length||W.rest)&&(this.tokenChar(44),this.space())),this.printList(W.params,W),W.rest&&(W.params.length&&(this.tokenChar(44),this.space()),this.token("..."),this.print(W.rest,W)),this.tokenChar(41);const Qe=Se==null?void 0:Se.type;Qe!=null&&(Qe==="ObjectTypeCallProperty"||Qe==="ObjectTypeInternalSlot"||Qe==="DeclareFunction"||Qe==="ObjectTypeProperty"&&Se.method)?this.tokenChar(58):(this.space(),this.token("=>")),this.space(),this.print(W.returnType,W)}function X(W){this.print(W.name,W),W.optional&&this.tokenChar(63),W.name&&(this.tokenChar(58),this.space()),this.print(W.typeAnnotation,W)}function ae(W){this.print(W.id,W),this.print(W.typeParameters,W,!0)}function ie(W){var Se;if(this.print(W.id,W),this.print(W.typeParameters,W),(Se=W.extends)!=null&&Se.length&&(this.space(),this.word("extends"),this.space(),this.printList(W.extends,W)),W.type==="DeclareClass"){var Qe,ft;(Qe=W.mixins)!=null&&Qe.length&&(this.space(),this.word("mixins"),this.space(),this.printList(W.mixins,W)),(ft=W.implements)!=null&&ft.length&&(this.space(),this.word("implements"),this.space(),this.printList(W.implements,W))}this.space(),this.print(W.body,W)}function te(W){var Se;const Qe=(Se=W.variance)==null?void 0:Se.kind;Qe!=null&&(Qe==="plus"?this.tokenChar(43):Qe==="minus"&&this.tokenChar(45))}function Y(W){this.word("interface"),this.space(),this._interfaceish(W)}function re(){this.space(),this.tokenChar(38),this.space()}function De(W){var Se;this.word("interface"),(Se=W.extends)!=null&&Se.length&&(this.space(),this.word("extends"),this.space(),this.printList(W.extends,W)),this.space(),this.print(W.body,W)}function de(W){this.printJoin(W.types,W,{separator:re})}function Ce(){this.word("mixed")}function Oe(){this.word("empty")}function Te(W){this.tokenChar(63),this.print(W.typeAnnotation,W)}function Be(){this.word("number")}function ze(){this.word("string")}function _e(){this.word("this")}function Ne(W){this.tokenChar(91),this.printList(W.types,W),this.tokenChar(93)}function ge(W){this.word("typeof"),this.space(),this.print(W.argument,W)}function Ae(W){this.word("type"),this.space(),this.print(W.id,W),this.print(W.typeParameters,W),this.space(),this.tokenChar(61),this.space(),this.print(W.right,W),this.semicolon()}function st(W,Se){this.tokenChar(58),this.space(),Se.type==="ArrowFunctionExpression"?this.tokenContext|=n.TokenContext.arrowFlowReturnType:W.optional&&this.tokenChar(63),this.print(W.typeAnnotation,W)}function fe(W){this.tokenChar(60),this.printList(W.params,W,{}),this.tokenChar(62)}function Ue(W){this._variance(W),this.word(W.name),W.bound&&this.print(W.bound,W),W.default&&(this.space(),this.tokenChar(61),this.space(),this.print(W.default,W))}function Z(W){this.word("opaque"),this.space(),this.word("type"),this.space(),this.print(W.id,W),this.print(W.typeParameters,W),W.supertype&&(this.tokenChar(58),this.space(),this.print(W.supertype,W)),W.impltype&&(this.space(),this.tokenChar(61),this.space(),this.print(W.impltype,W)),this.semicolon()}function G(W){W.exact?this.token("{|"):this.tokenChar(123);const Se=[...W.properties,...W.callProperties||[],...W.indexers||[],...W.internalSlots||[]];Se.length&&(this.newline(),this.space(),this.printJoin(Se,W,{addNewlines(Qe){if(Qe&&!Se[0])return 1},indent:!0,statement:!0,iterator:()=>{(Se.length!==1||W.inexact)&&(this.tokenChar(44),this.space())}}),this.space()),W.inexact&&(this.indent(),this.token("..."),Se.length&&this.newline(),this.dedent()),W.exact?this.token("|}"):this.tokenChar(125)}function V(W){W.static&&(this.word("static"),this.space()),this.tokenChar(91),this.tokenChar(91),this.print(W.id,W),this.tokenChar(93),this.tokenChar(93),W.optional&&this.tokenChar(63),W.method||(this.tokenChar(58),this.space()),this.print(W.value,W)}function E(W){W.static&&(this.word("static"),this.space()),this.print(W.value,W)}function j(W){W.static&&(this.word("static"),this.space()),this._variance(W),this.tokenChar(91),W.id&&(this.print(W.id,W),this.tokenChar(58),this.space()),this.print(W.key,W),this.tokenChar(93),this.tokenChar(58),this.space(),this.print(W.value,W)}function z(W){W.proto&&(this.word("proto"),this.space()),W.static&&(this.word("static"),this.space()),(W.kind==="get"||W.kind==="set")&&(this.word(W.kind),this.space()),this._variance(W),this.print(W.key,W),W.optional&&this.tokenChar(63),W.method||(this.tokenChar(58),this.space()),this.print(W.value,W)}function se(W){this.token("..."),this.print(W.argument,W)}function oe(W){this.print(W.qualification,W),this.tokenChar(46),this.print(W.id,W)}function ce(){this.word("symbol")}function Pe(){this.space(),this.tokenChar(124),this.space()}function Ve(W){this.printJoin(W.types,W,{separator:Pe})}function ue(W){this.tokenChar(40),this.print(W.expression,W),this.print(W.typeAnnotation,W),this.tokenChar(41)}function je(W){W.kind==="plus"?this.tokenChar(43):this.tokenChar(45)}function qe(){this.word("void")}function We(W){this.print(W.objectType,W,!0),this.tokenChar(91),this.print(W.indexType,W),this.tokenChar(93)}function Re(W){this.print(W.objectType,W),W.optional&&this.token("?."),this.tokenChar(91),this.print(W.indexType,W),this.tokenChar(93)}})(_D);var an={};Object.defineProperty(an,"__esModule",{value:!0});an.BlockStatement=SV;an.Directive=vV;an.DirectiveLiteral=PV;an.File=bV;an.InterpreterDirective=xV;an.Placeholder=FV;an.Program=TV;function bV(e){e.program&&this.print(e.program.interpreter,e),this.print(e.program,e)}function TV(e){var t;this.noIndentInnerCommentsHere(),this.printInnerComments();const r=(t=e.directives)==null?void 0:t.length;if(r){var n;const i=e.body.length?2:1;this.printSequence(e.directives,e,{trailingCommentsLineOffset:i}),(n=e.directives[r-1].trailingComments)!=null&&n.length||this.newline(i)}this.printSequence(e.body,e)}function SV(e){var t;this.tokenChar(123);const r=(t=e.directives)==null?void 0:t.length;if(r){var n;const s=e.body.length?2:1;this.printSequence(e.directives,e,{indent:!0,trailingCommentsLineOffset:s}),(n=e.directives[r-1].trailingComments)!=null&&n.length||this.newline(s)}const i=this.enterForStatementInit(!1);this.printSequence(e.body,e,{indent:!0}),i(),this.rightBrace(e)}function vV(e){this.print(e.value,e),this.semicolon()}const AV=/(?:^|[^\\])(?:\\\\)*'/,CV=/(?:^|[^\\])(?:\\\\)*"/;function PV(e){const t=this.getPossibleRaw(e);if(!this.format.minified&&t!==void 0){this.token(t);return}const{value:r}=e;if(!CV.test(r))this.token(`"${r}"`);else if(!AV.test(r))this.token(`'${r}'`);else throw new Error("Malformed AST: it is not possible to print a directive containing both unescaped single and double quotes.")}function xV(e){this.token(`#!${e.value}`),this.newline(1,!0)}function FV(e){this.token("%%"),this.print(e.name),this.token("%%"),e.expectedNode==="Statement"&&this.semicolon()}var Ot={};Object.defineProperty(Ot,"__esModule",{value:!0});Ot.JSXAttribute=_V;Ot.JSXClosingElement=$V;Ot.JSXClosingFragment=KV;Ot.JSXElement=RV;Ot.JSXEmptyExpression=UV;Ot.JSXExpressionContainer=BV;Ot.JSXFragment=VV;Ot.JSXIdentifier=wV;Ot.JSXMemberExpression=OV;Ot.JSXNamespacedName=IV;Ot.JSXOpeningElement=jV;Ot.JSXOpeningFragment=qV;Ot.JSXSpreadAttribute=NV;Ot.JSXSpreadChild=LV;Ot.JSXText=kV;function _V(e){this.print(e.name,e),e.value&&(this.tokenChar(61),this.print(e.value,e))}function wV(e){this.word(e.name)}function IV(e){this.print(e.namespace,e),this.tokenChar(58),this.print(e.name,e)}function OV(e){this.print(e.object,e),this.tokenChar(46),this.print(e.property,e)}function NV(e){this.tokenChar(123),this.token("..."),this.print(e.argument,e),this.tokenChar(125)}function BV(e){this.tokenChar(123),this.print(e.expression,e),this.tokenChar(125)}function LV(e){this.tokenChar(123),this.token("..."),this.print(e.expression,e),this.tokenChar(125)}function kV(e){const t=this.getPossibleRaw(e);t!==void 0?this.token(t,!0):this.token(e.value,!0)}function RV(e){const t=e.openingElement;if(this.print(t,e),!t.selfClosing){this.indent();for(const r of e.children)this.print(r,e);this.dedent(),this.print(e.closingElement,e)}}function MV(){this.space()}function jV(e){this.tokenChar(60),this.print(e.name,e),this.print(e.typeParameters,e),e.attributes.length>0&&(this.space(),this.printJoin(e.attributes,e,{separator:MV})),e.selfClosing?(this.space(),this.token("/>")):this.tokenChar(62)}function $V(e){this.token("</"),this.print(e.name,e),this.tokenChar(62)}function UV(){this.printInnerComments()}function VV(e){this.print(e.openingFragment,e),this.indent();for(const t of e.children)this.print(t,e);this.dedent(),this.print(e.closingFragment,e)}function qV(){this.tokenChar(60),this.tokenChar(62)}function KV(){this.token("</"),this.tokenChar(62)}var ve={};Object.defineProperty(ve,"__esModule",{value:!0});ve.TSAnyKeyword=iq;ve.TSArrayType=Pq;ve.TSSatisfiesExpression=ve.TSAsExpression=Kq;ve.TSBigIntKeyword=sq;ve.TSBooleanKeyword=lq;ve.TSCallSignatureDeclaration=QV;ve.TSConditionalType=Nq;ve.TSConstructSignatureDeclaration=ZV;ve.TSConstructorType=Eq;ve.TSDeclareFunction=XV;ve.TSDeclareMethod=JV;ve.TSEnumDeclaration=Gq;ve.TSEnumMember=Yq;ve.TSExportAssignment=tK;ve.TSExpressionWithTypeArguments=$q;ve.TSExternalModuleReference=Zq;ve.TSFunctionType=gq;ve.TSImportEqualsDeclaration=Qq;ve.TSImportType=zq;ve.TSIndexSignature=nq;ve.TSIndexedAccessType=Rq;ve.TSInferType=Bq;ve.TSInstantiationExpression=Hq;ve.TSInterfaceBody=Vq;ve.TSInterfaceDeclaration=Uq;ve.TSIntersectionType=Oq;ve.TSIntrinsicKeyword=yq;ve.TSLiteralType=jq;ve.TSMappedType=Mq;ve.TSMethodSignature=rq;ve.TSModuleBlock=Jq;ve.TSModuleDeclaration=Xq;ve.TSNamedTupleMember=wq;ve.TSNamespaceExportDeclaration=rK;ve.TSNeverKeyword=mq;ve.TSNonNullExpression=eK;ve.TSNullKeyword=dq;ve.TSNumberKeyword=oq;ve.TSObjectKeyword=uq;ve.TSOptionalType=Fq;ve.TSParameterProperty=YV;ve.TSParenthesizedType=Lq;ve.TSPropertySignature=eq;ve.TSQualifiedName=zV;ve.TSRestType=_q;ve.TSStringKeyword=cq;ve.TSSymbolKeyword=fq;ve.TSThisType=Dq;ve.TSTupleType=xq;ve.TSTypeAliasDeclaration=qq;ve.TSTypeAnnotation=WV;ve.TSTypeAssertion=Wq;ve.TSTypeLiteral=Aq;ve.TSTypeOperator=kq;ve.TSTypeParameter=GV;ve.TSTypeParameterDeclaration=ve.TSTypeParameterInstantiation=HV;ve.TSTypePredicate=Sq;ve.TSTypeQuery=vq;ve.TSTypeReference=Tq;ve.TSUndefinedKeyword=hq;ve.TSUnionType=Iq;ve.TSUnknownKeyword=aq;ve.TSVoidKeyword=pq;ve.tsPrintClassMemberModifiers=iK;ve.tsPrintFunctionOrConstructorType=bq;ve.tsPrintPropertyOrMethodName=tq;ve.tsPrintSignatureDeclarationBase=nK;ve.tsPrintTypeLiteralOrInterfaceBody=Cq;function WV(e){this.tokenChar(58),this.space(),e.optional&&this.tokenChar(63),this.print(e.typeAnnotation,e)}function HV(e,t){this.tokenChar(60),this.printList(e.params,e,{}),t.type==="ArrowFunctionExpression"&&e.params.length===1&&this.tokenChar(44),this.tokenChar(62)}function GV(e){e.in&&(this.word("in"),this.space()),e.out&&(this.word("out"),this.space()),this.word(e.name),e.constraint&&(this.space(),this.word("extends"),this.space(),this.print(e.constraint,e)),e.default&&(this.space(),this.tokenChar(61),this.space(),this.print(e.default,e))}function YV(e){e.accessibility&&(this.word(e.accessibility),this.space()),e.readonly&&(this.word("readonly"),this.space()),this._param(e.parameter)}function XV(e,t){e.declare&&(this.word("declare"),this.space()),this._functionHead(e,t),this.tokenChar(59)}function JV(e){this._classMethodHead(e),this.tokenChar(59)}function zV(e){this.print(e.left,e),this.tokenChar(46),this.print(e.right,e)}function QV(e){this.tsPrintSignatureDeclarationBase(e),this.tokenChar(59)}function ZV(e){this.word("new"),this.space(),this.tsPrintSignatureDeclarationBase(e),this.tokenChar(59)}function eq(e){const{readonly:t}=e;t&&(this.word("readonly"),this.space()),this.tsPrintPropertyOrMethodName(e),this.print(e.typeAnnotation,e),this.tokenChar(59)}function tq(e){e.computed&&this.tokenChar(91),this.print(e.key,e),e.computed&&this.tokenChar(93),e.optional&&this.tokenChar(63)}function rq(e){const{kind:t}=e;(t==="set"||t==="get")&&(this.word(t),this.space()),this.tsPrintPropertyOrMethodName(e),this.tsPrintSignatureDeclarationBase(e),this.tokenChar(59)}function nq(e){const{readonly:t,static:r}=e;r&&(this.word("static"),this.space()),t&&(this.word("readonly"),this.space()),this.tokenChar(91),this._parameters(e.parameters,e),this.tokenChar(93),this.print(e.typeAnnotation,e),this.tokenChar(59)}function iq(){this.word("any")}function sq(){this.word("bigint")}function aq(){this.word("unknown")}function oq(){this.word("number")}function uq(){this.word("object")}function lq(){this.word("boolean")}function cq(){this.word("string")}function fq(){this.word("symbol")}function pq(){this.word("void")}function hq(){this.word("undefined")}function dq(){this.word("null")}function mq(){this.word("never")}function yq(){this.word("intrinsic")}function Dq(){this.word("this")}function gq(e){this.tsPrintFunctionOrConstructorType(e)}function Eq(e){e.abstract&&(this.word("abstract"),this.space()),this.word("new"),this.space(),this.tsPrintFunctionOrConstructorType(e)}function bq(e){const{typeParameters:t}=e,r=e.parameters;this.print(t,e),this.tokenChar(40),this._parameters(r,e),this.tokenChar(41),this.space(),this.token("=>"),this.space();const n=e.typeAnnotation;this.print(n.typeAnnotation,e)}function Tq(e){this.print(e.typeName,e,!0),this.print(e.typeParameters,e,!0)}function Sq(e){e.asserts&&(this.word("asserts"),this.space()),this.print(e.parameterName),e.typeAnnotation&&(this.space(),this.word("is"),this.space(),this.print(e.typeAnnotation.typeAnnotation))}function vq(e){this.word("typeof"),this.space(),this.print(e.exprName),e.typeParameters&&this.print(e.typeParameters,e)}function Aq(e){this.tsPrintTypeLiteralOrInterfaceBody(e.members,e)}function Cq(e,t){wf(this,e,t)}function wf(e,t,r){if(e.token("{"),t.length){e.indent(),e.newline();for(const n of t)e.print(n,r),e.newline();e.dedent()}e.rightBrace(r)}function Pq(e){this.print(e.elementType,e,!0),this.token("[]")}function xq(e){this.tokenChar(91),this.printList(e.elementTypes,e),this.tokenChar(93)}function Fq(e){this.print(e.typeAnnotation,e),this.tokenChar(63)}function _q(e){this.token("..."),this.print(e.typeAnnotation,e)}function wq(e){this.print(e.label,e),e.optional&&this.tokenChar(63),this.tokenChar(58),this.space(),this.print(e.elementType,e)}function Iq(e){wD(this,e,"|")}function Oq(e){wD(this,e,"&")}function wD(e,t,r){e.printJoin(t.types,t,{separator(){this.space(),this.token(r),this.space()}})}function Nq(e){this.print(e.checkType),this.space(),this.word("extends"),this.space(),this.print(e.extendsType),this.space(),this.tokenChar(63),this.space(),this.print(e.trueType),this.space(),this.tokenChar(58),this.space(),this.print(e.falseType)}function Bq(e){this.token("infer"),this.space(),this.print(e.typeParameter)}function Lq(e){this.tokenChar(40),this.print(e.typeAnnotation,e),this.tokenChar(41)}function kq(e){this.word(e.operator),this.space(),this.print(e.typeAnnotation,e)}function Rq(e){this.print(e.objectType,e,!0),this.tokenChar(91),this.print(e.indexType,e),this.tokenChar(93)}function Mq(e){const{nameType:t,optional:r,readonly:n,typeParameter:i,typeAnnotation:s}=e;this.tokenChar(123),this.space(),n&&(Ad(this,n),this.word("readonly"),this.space()),this.tokenChar(91),this.word(i.name),this.space(),this.word("in"),this.space(),this.print(i.constraint,i),t&&(this.space(),this.word("as"),this.space(),this.print(t,e)),this.tokenChar(93),r&&(Ad(this,r),this.tokenChar(63)),s&&(this.tokenChar(58),this.space(),this.print(s,e)),this.space(),this.tokenChar(125)}function Ad(e,t){t!==!0&&e.token(t)}function jq(e){this.print(e.literal,e)}function $q(e){this.print(e.expression,e),this.print(e.typeParameters,e)}function Uq(e){const{declare:t,id:r,typeParameters:n,extends:i,body:s}=e;t&&(this.word("declare"),this.space()),this.word("interface"),this.space(),this.print(r,e),this.print(n,e),i!=null&&i.length&&(this.space(),this.word("extends"),this.space(),this.printList(i,e)),this.space(),this.print(s,e)}function Vq(e){this.tsPrintTypeLiteralOrInterfaceBody(e.body,e)}function qq(e){const{declare:t,id:r,typeParameters:n,typeAnnotation:i}=e;t&&(this.word("declare"),this.space()),this.word("type"),this.space(),this.print(r,e),this.print(n,e),this.space(),this.tokenChar(61),this.space(),this.print(i,e),this.tokenChar(59)}function Kq(e){var t;const{type:r,expression:n,typeAnnotation:i}=e,s=!!((t=n.trailingComments)!=null&&t.length);this.print(n,e,!0,void 0,s),this.space(),this.word(r==="TSAsExpression"?"as":"satisfies"),this.space(),this.print(i,e)}function Wq(e){const{typeAnnotation:t,expression:r}=e;this.tokenChar(60),this.print(t,e),this.tokenChar(62),this.space(),this.print(r,e)}function Hq(e){this.print(e.expression,e),this.print(e.typeParameters,e)}function Gq(e){const{declare:t,const:r,id:n,members:i}=e;t&&(this.word("declare"),this.space()),r&&(this.word("const"),this.space()),this.word("enum"),this.space(),this.print(n,e),this.space(),wf(this,i,e)}function Yq(e){const{id:t,initializer:r}=e;this.print(t,e),r&&(this.space(),this.tokenChar(61),this.space(),this.print(r,e)),this.tokenChar(44)}function Xq(e){const{declare:t,id:r}=e;if(t&&(this.word("declare"),this.space()),e.global||(this.word(r.type==="Identifier"?"namespace":"module"),this.space()),this.print(r,e),!e.body){this.tokenChar(59);return}let n=e.body;for(;n.type==="TSModuleDeclaration";)this.tokenChar(46),this.print(n.id,n),n=n.body;this.space(),this.print(n,e)}function Jq(e){wf(this,e.body,e)}function zq(e){const{argument:t,qualifier:r,typeParameters:n}=e;this.word("import"),this.tokenChar(40),this.print(t,e),this.tokenChar(41),r&&(this.tokenChar(46),this.print(r,e)),n&&this.print(n,e)}function Qq(e){const{isExport:t,id:r,moduleReference:n}=e;t&&(this.word("export"),this.space()),this.word("import"),this.space(),this.print(r,e),this.space(),this.tokenChar(61),this.space(),this.print(n,e),this.tokenChar(59)}function Zq(e){this.token("require("),this.print(e.expression,e),this.tokenChar(41)}function eK(e){this.print(e.expression,e),this.tokenChar(33)}function tK(e){this.word("export"),this.space(),this.tokenChar(61),this.space(),this.print(e.expression,e),this.tokenChar(59)}function rK(e){this.word("export"),this.space(),this.word("as"),this.space(),this.word("namespace"),this.space(),this.print(e.id,e)}function nK(e){const{typeParameters:t}=e,r=e.parameters;this.print(t,e),this.tokenChar(40),this._parameters(r,e),this.tokenChar(41);const n=e.typeAnnotation;this.print(n,e)}function iK(e){const t=e.type==="ClassAccessorProperty"||e.type==="ClassProperty";t&&e.declare&&(this.word("declare"),this.space()),e.accessibility&&(this.word(e.accessibility),this.space()),e.static&&(this.word("static"),this.space()),e.override&&(this.word("override"),this.space()),e.abstract&&(this.word("abstract"),this.space()),t&&e.readonly&&(this.word("readonly"),this.space())}(function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=Hs;Object.keys(t).forEach(function(p){p==="default"||p==="__esModule"||p in e&&e[p]===t[p]||Object.defineProperty(e,p,{enumerable:!0,get:function(){return t[p]}})});var r=ut;Object.keys(r).forEach(function(p){p==="default"||p==="__esModule"||p in e&&e[p]===r[p]||Object.defineProperty(e,p,{enumerable:!0,get:function(){return r[p]}})});var n=Dt;Object.keys(n).forEach(function(p){p==="default"||p==="__esModule"||p in e&&e[p]===n[p]||Object.defineProperty(e,p,{enumerable:!0,get:function(){return n[p]}})});var i=ar;Object.keys(i).forEach(function(p){p==="default"||p==="__esModule"||p in e&&e[p]===i[p]||Object.defineProperty(e,p,{enumerable:!0,get:function(){return i[p]}})});var s=Er;Object.keys(s).forEach(function(p){p==="default"||p==="__esModule"||p in e&&e[p]===s[p]||Object.defineProperty(e,p,{enumerable:!0,get:function(){return s[p]}})});var a=Bt;Object.keys(a).forEach(function(p){p==="default"||p==="__esModule"||p in e&&e[p]===a[p]||Object.defineProperty(e,p,{enumerable:!0,get:function(){return a[p]}})});var o=ct;Object.keys(o).forEach(function(p){p==="default"||p==="__esModule"||p in e&&e[p]===o[p]||Object.defineProperty(e,p,{enumerable:!0,get:function(){return o[p]}})});var u=_D;Object.keys(u).forEach(function(p){p==="default"||p==="__esModule"||p in e&&e[p]===u[p]||Object.defineProperty(e,p,{enumerable:!0,get:function(){return u[p]}})});var l=an;Object.keys(l).forEach(function(p){p==="default"||p==="__esModule"||p in e&&e[p]===l[p]||Object.defineProperty(e,p,{enumerable:!0,get:function(){return l[p]}})});var c=Ot;Object.keys(c).forEach(function(p){p==="default"||p==="__esModule"||p in e&&e[p]===c[p]||Object.defineProperty(e,p,{enumerable:!0,get:function(){return c[p]}})});var f=ve;Object.keys(f).forEach(function(p){p==="default"||p==="__esModule"||p in e&&e[p]===f[p]||Object.defineProperty(e,p,{enumerable:!0,get:function(){return f[p]}})})})(bD);Object.defineProperty(tu,"__esModule",{value:!0});tu.default=void 0;var sK=ru,aK=hi(),oK=Ge(),uK=bD;const{isFunction:lK,isStatement:cK,isClassBody:fK,isTSInterfaceBody:pK,isTSEnumDeclaration:hK}=oK,dK=/e/i,mK=/\.0+$/,Cd=/[\n\r\u2028\u2029]/,yK=/[\n\r\u2028\u2029]|\*\//,{needsParens:DK}=aK;class If{constructor(t,r){this.inForStatementInit=!1,this.tokenContext=0,this._currentNode=null,this._indent=0,this._indentRepeat=0,this._insideAux=!1,this._parenPushNewlineState=null,this._noLineTerminator=!1,this._printAuxAfterOnNextUserNode=!1,this._printedComments=new Set,this._endsWithInteger=!1,this._endsWithWord=!1,this._lastCommentLine=0,this._endsWithInnerRaw=!1,this._indentInnerComments=!0,this.format=t,this._indentRepeat=t.indent.style.length,this._inputMap=r==null?void 0:r._inputMap,this._buf=new sK.default(r,t.indent.style[0])}enterForStatementInit(t){const r=this.inForStatementInit;return r===t?()=>{}:(this.inForStatementInit=t,()=>{this.inForStatementInit=r})}generate(t){return this.print(t),this._maybeAddAuxComment(),this._buf.get()}indent(){this.format.compact||this.format.concise||this._indent++}dedent(){this.format.compact||this.format.concise||this._indent--}semicolon(t=!1){this._maybeAddAuxComment(),t?this._appendChar(59):this._queue(59),this._noLineTerminator=!1}rightBrace(t){this.format.minified&&this._buf.removeLastSemicolon(),this.sourceWithOffset("end",t.loc,-1),this.tokenChar(125)}rightParens(t){this.sourceWithOffset("end",t.loc,-1),this.tokenChar(41)}space(t=!1){if(!this.format.compact){if(t)this._space();else if(this._buf.hasContent()){const r=this.getLastChar();r!==32&&r!==10&&this._space()}}}word(t,r=!1){this.tokenContext=0,this._maybePrintInnerComments(),(this._endsWithWord||t.charCodeAt(0)===47&&this.endsWith(47))&&this._space(),this._maybeAddAuxComment(),this._append(t,!1),this._endsWithWord=!0,this._noLineTerminator=r}number(t,r){function n(i){if(i.length>2&&i.charCodeAt(0)===48){const s=i.charCodeAt(1);return s===98||s===111||s===120}return!1}this.word(t),this._endsWithInteger=Number.isInteger(r)&&!n(t)&&!dK.test(t)&&!mK.test(t)&&t.charCodeAt(t.length-1)!==46}token(t,r=!1){this.tokenContext=0,this._maybePrintInnerComments();const n=this.getLastChar(),i=t.charCodeAt(0);(n===33&&(t==="--"||i===61)||i===43&&n===43||i===45&&n===45||i===46&&this._endsWithInteger)&&this._space(),this._maybeAddAuxComment(),this._append(t,r),this._noLineTerminator=!1}tokenChar(t){this.tokenContext=0,this._maybePrintInnerComments();const r=this.getLastChar();(t===43&&r===43||t===45&&r===45||t===46&&this._endsWithInteger)&&this._space(),this._maybeAddAuxComment(),this._appendChar(t),this._noLineTerminator=!1}newline(t=1,r){if(!(t<=0)){if(!r){if(this.format.retainLines||this.format.compact)return;if(this.format.concise){this.space();return}}t>2&&(t=2),t-=this._buf.getNewlineCount();for(let n=0;n<t;n++)this._newline()}}endsWith(t){return this.getLastChar()===t}getLastChar(){return this._buf.getLastChar()}endsWithCharAndNewline(){return this._buf.endsWithCharAndNewline()}removeTrailingNewline(){this._buf.removeTrailingNewline()}exactSource(t,r){if(!t){r();return}this._catchUp("start",t),this._buf.exactSource(t,r)}source(t,r){r&&(this._catchUp(t,r),this._buf.source(t,r))}sourceWithOffset(t,r,n){r&&(this._catchUp(t,r),this._buf.sourceWithOffset(t,r,n))}sourceIdentifierName(t,r){if(!this._buf._canMarkIdName)return;const n=this._buf._sourcePosition;n.identifierNamePos=r,n.identifierName=t}_space(){this._queue(32)}_newline(){this._queue(10)}_append(t,r){this._maybeAddParen(t),this._maybeIndent(t.charCodeAt(0)),this._buf.append(t,r),this._endsWithWord=!1,this._endsWithInteger=!1}_appendChar(t){this._maybeAddParenChar(t),this._maybeIndent(t),this._buf.appendChar(t),this._endsWithWord=!1,this._endsWithInteger=!1}_queue(t){this._maybeAddParenChar(t),this._maybeIndent(t),this._buf.queue(t),this._endsWithWord=!1,this._endsWithInteger=!1}_maybeIndent(t){this._indent&&t!==10&&this.endsWith(10)&&this._buf.queueIndentation(this._getIndent())}_shouldIndent(t){if(this._indent&&t!==10&&this.endsWith(10))return!0}_maybeAddParenChar(t){const r=this._parenPushNewlineState;if(r&&t!==32){if(t!==10){this._parenPushNewlineState=null;return}this.tokenChar(40),this.indent(),r.printed=!0}}_maybeAddParen(t){const r=this._parenPushNewlineState;if(!r)return;const n=t.length;let i;for(i=0;i<n&&t.charCodeAt(i)===32;i++);if(i===n)return;const s=t.charCodeAt(i);if(s!==10){if(s!==47||i+1===n){this._parenPushNewlineState=null;return}const a=t.charCodeAt(i+1);if(a===42)return;if(a!==47){this._parenPushNewlineState=null;return}}this.tokenChar(40),this.indent(),r.printed=!0}catchUp(t){if(!this.format.retainLines)return;const r=t-this._buf.getCurrentLine();for(let n=0;n<r;n++)this._newline()}_catchUp(t,r){var n;if(!this.format.retainLines)return;const i=r==null||(n=r[t])==null?void 0:n.line;if(i!=null){const s=i-this._buf.getCurrentLine();for(let a=0;a<s;a++)this._newline()}}_getIndent(){return this._indentRepeat*this._indent}printTerminatorless(t,r,n){if(n)this._noLineTerminator=!0,this.print(t,r);else{const i={printed:!1};this._parenPushNewlineState=i,this.print(t,r),i.printed&&(this.dedent(),this.newline(),this.tokenChar(41))}}print(t,r,n,i,s){var a,o;if(!t)return;this._endsWithInnerRaw=!1;const u=t.type,l=this.format,c=l.concise;t._compact&&(l.concise=!0);const f=this[u];if(f===void 0)throw new ReferenceError(`unknown node of type ${JSON.stringify(u)} with constructor ${JSON.stringify(t.constructor.name)}`);const p=this._currentNode;this._currentNode=t;const h=this._insideAux;this._insideAux=t.loc==null,this._maybeAddAuxComment(this._insideAux&&!h);const d=(a=t.extra)==null?void 0:a.parenthesized;let m=s||d&&l.retainFunctionParens&&u==="FunctionExpression"||DK(t,r,this.tokenContext,this.inForStatementInit);if(!m&&d&&(o=t.leadingComments)!=null&&o.length&&t.leadingComments[0].type==="CommentBlock")switch(r==null?void 0:r.type){case"ExpressionStatement":case"VariableDeclarator":case"AssignmentExpression":case"ReturnStatement":break;case"CallExpression":case"OptionalCallExpression":case"NewExpression":if(r.callee!==t)break;default:m=!0}let D;m&&(this.tokenChar(40),this._endsWithInnerRaw=!1,D=this.enterForStatementInit(!1)),this._lastCommentLine=0,this._printLeadingComments(t,r);const g=u==="Program"||u==="File"?null:t.loc;this.exactSource(g,f.bind(this,t,r)),m?(this._printTrailingComments(t,r),this.tokenChar(41),this._noLineTerminator=n,D()):n&&!this._noLineTerminator?(this._noLineTerminator=!0,this._printTrailingComments(t,r)):this._printTrailingComments(t,r,i),this._currentNode=p,l.concise=c,this._insideAux=h,this._endsWithInnerRaw=!1}_maybeAddAuxComment(t){t&&this._printAuxBeforeComment(),this._insideAux||this._printAuxAfterComment()}_printAuxBeforeComment(){if(this._printAuxAfterOnNextUserNode)return;this._printAuxAfterOnNextUserNode=!0;const t=this.format.auxiliaryCommentBefore;t&&this._printComment({type:"CommentBlock",value:t},0)}_printAuxAfterComment(){if(!this._printAuxAfterOnNextUserNode)return;this._printAuxAfterOnNextUserNode=!1;const t=this.format.auxiliaryCommentAfter;t&&this._printComment({type:"CommentBlock",value:t},0)}getPossibleRaw(t){const r=t.extra;if((r==null?void 0:r.raw)!=null&&r.rawValue!=null&&t.value===r.rawValue)return r.raw}printJoin(t,r,n={}){if(!(t!=null&&t.length))return;let{indent:i}=n;if(i==null&&this.format.retainLines){var s;const f=(s=t[0].loc)==null?void 0:s.start.line;f!=null&&f!==this._buf.getCurrentLine()&&(i=!0)}i&&this.indent();const a={addNewlines:n.addNewlines,nextNodeStartLine:0},o=n.separator?n.separator.bind(this):null,u=t.length;for(let f=0;f<u;f++){const p=t[f];if(p&&(n.statement&&this._printNewline(f===0,a),this.print(p,r,void 0,n.trailingCommentsLineOffset||0),n.iterator==null||n.iterator(p,f),f<u-1&&(o==null||o()),n.statement)){var l;if((l=p.trailingComments)!=null&&l.length||(this._lastCommentLine=0),f+1===u)this.newline(1);else{var c;const h=t[f+1];a.nextNodeStartLine=((c=h.loc)==null?void 0:c.start.line)||0,this._printNewline(!0,a)}}}i&&this.dedent()}printAndIndentOnComments(t,r){const n=t.leadingComments&&t.leadingComments.length>0;n&&this.indent(),this.print(t,r),n&&this.dedent()}printBlock(t){const r=t.body;r.type!=="EmptyStatement"&&this.space(),this.print(r,t)}_printTrailingComments(t,r,n){const{innerComments:i,trailingComments:s}=t;i!=null&&i.length&&this._printComments(2,i,t,r,n),s!=null&&s.length&&this._printComments(2,s,t,r,n)}_printLeadingComments(t,r){const n=t.leadingComments;n!=null&&n.length&&this._printComments(0,n,t,r)}_maybePrintInnerComments(){this._endsWithInnerRaw&&this.printInnerComments(),this._endsWithInnerRaw=!0,this._indentInnerComments=!0}printInnerComments(){const t=this._currentNode,r=t.innerComments;if(!(r!=null&&r.length))return;const n=this.endsWith(32),i=this._indentInnerComments,s=this._printedComments.size;i&&this.indent(),this._printComments(1,r,t),n&&s!==this._printedComments.size&&this.space(),i&&this.dedent()}noIndentInnerCommentsHere(){this._indentInnerComments=!1}printSequence(t,r,n={}){var i;n.statement=!0,(i=n.indent)!=null||(n.indent=!1),this.printJoin(t,r,n)}printList(t,r,n={}){n.separator==null&&(n.separator=gK),this.printJoin(t,r,n)}_printNewline(t,r){const n=this.format;if(n.retainLines||n.compact)return;if(n.concise){this.space();return}if(!t)return;const i=r.nextNodeStartLine,s=this._lastCommentLine;if(i>0&&s>0){const a=i-s;if(a>=0){this.newline(a||1);return}}this._buf.hasContent()&&this.newline(1)}_shouldPrintComment(t){return t.ignore||this._printedComments.has(t)?0:this._noLineTerminator&&yK.test(t.value)?2:(this._printedComments.add(t),this.format.shouldPrintComment(t.value)?1:0)}_printComment(t,r){const n=this._noLineTerminator,i=t.type==="CommentBlock",s=i&&r!==1&&!this._noLineTerminator;s&&this._buf.hasContent()&&r!==2&&this.newline(1);const a=this.getLastChar();a!==91&&a!==123&&this.space();let o;if(i){const{_parenPushNewlineState:l}=this;if((l==null?void 0:l.printed)===!1&&Cd.test(t.value)&&(this.tokenChar(40),this.indent(),l.printed=!0),o=`/*${t.value}*/`,this.format.indent.adjustMultilineComment){var u;const c=(u=t.loc)==null?void 0:u.start.column;if(c){const f=new RegExp("\\n\\s{1,"+c+"}","g");o=o.replace(f,`
|
|
129
|
+
`)}if(this.format.concise)o=o.replace(/\n(?!$)/g,`
|
|
130
|
+
`);else{let f=this.format.retainLines?0:this._buf.getCurrentColumn();(this._shouldIndent(47)||this.format.retainLines)&&(f+=this._getIndent()),o=o.replace(/\n(?!$)/g,`
|
|
131
|
+
${" ".repeat(f)}`)}}}else n?o=`/*${t.value}*/`:o=`//${t.value}`;this.endsWith(47)&&this._space(),this.source("start",t.loc),this._append(o,i),!i&&!n&&this.newline(1,!0),s&&r!==3&&this.newline(1)}_printComments(t,r,n,i,s=0){const a=n.loc,o=r.length;let u=!!a;const l=u?a.start.line:0,c=u?a.end.line:0;let f=0,p=0;const h=this._noLineTerminator?function(){}:this.newline.bind(this);for(let d=0;d<o;d++){const m=r[d],D=this._shouldPrintComment(m);if(D===2){u=!1;break}if(u&&m.loc&&D===1){const g=m.loc.start.line,y=m.loc.end.line;if(t===0){let b=0;d===0?this._buf.hasContent()&&(m.type==="CommentLine"||g!==y)&&(b=p=1):b=g-f,f=y,h(b),this._printComment(m,1),d+1===o&&(h(Math.max(l-f,p)),f=l)}else if(t===1){const b=g-(d===0?l:f);f=y,h(b),this._printComment(m,1),d+1===o&&(h(Math.min(1,c-f)),f=c)}else{const b=g-(d===0?c-s:f);f=y,h(b),this._printComment(m,1)}}else{if(u=!1,D!==1)continue;if(o===1){const g=m.loc?m.loc.start.line===m.loc.end.line:!Cd.test(m.value),y=g&&!cK(n)&&!fK(i)&&!pK(i)&&!hK(i);t===0?this._printComment(m,y&&n.type!=="ObjectExpression"||g&&lK(i,{body:n})?1:0):y&&t===2?this._printComment(m,1):this._printComment(m,0)}else t===1&&!(n.type==="ObjectExpression"&&n.properties.length>1)&&n.type!=="ClassBody"&&n.type!=="TSInterfaceBody"?this._printComment(m,d===0?2:d===o-1?3:0):this._printComment(m,0)}}t===2&&u&&f&&(this._lastCommentLine=f)}}Object.assign(If.prototype,uK);If.prototype.Noop=function(){};tu.default=If;function gK(){this.tokenChar(44),this.space()}Object.defineProperty(Zo,"__esModule",{value:!0});var EK=Zo.default=bK,ID=eu,OD=tu;function ND(e,t){const r={auxiliaryCommentBefore:t.auxiliaryCommentBefore,auxiliaryCommentAfter:t.auxiliaryCommentAfter,shouldPrintComment:t.shouldPrintComment,retainLines:t.retainLines,retainFunctionParens:t.retainFunctionParens,comments:t.comments==null||t.comments,compact:t.compact,minified:t.minified,concise:t.concise,indent:{adjustMultilineComment:!0,style:" "},jsescOption:Object.assign({quotes:"double",wrap:!0,minimal:!1},t.jsescOption),topicToken:t.topicToken,importAttributesKeyword:t.importAttributesKeyword};{var n;r.decoratorsBeforeExport=t.decoratorsBeforeExport,r.jsescOption.json=t.jsonCompatibleStrings,r.recordAndTupleSyntaxType=(n=t.recordAndTupleSyntaxType)!=null?n:"hash"}r.minified?(r.compact=!0,r.shouldPrintComment=r.shouldPrintComment||(()=>r.comments)):r.shouldPrintComment=r.shouldPrintComment||(o=>r.comments||o.includes("@license")||o.includes("@preserve")),r.compact==="auto"&&(r.compact=typeof e=="string"&&e.length>5e5,r.compact&&console.error(`[BABEL] Note: The code generator has deoptimised the styling of ${t.filename} as it exceeds the max of 500KB.`)),r.compact&&(r.indent.adjustMultilineComment=!1);const{auxiliaryCommentBefore:i,auxiliaryCommentAfter:s,shouldPrintComment:a}=r;return i&&!a(i)&&(r.auxiliaryCommentBefore=void 0),s&&!a(s)&&(r.auxiliaryCommentAfter=void 0),r}Zo.CodeGenerator=class{constructor(t,r={},n){this._ast=void 0,this._format=void 0,this._map=void 0,this._ast=t,this._format=ND(n,r),this._map=r.sourceMaps?new ID.default(r,n):null}generate(){return new OD.default(this._format,this._map).generate(this._ast)}};function bK(e,t={},r){const n=ND(r,t),i=t.sourceMaps?new ID.default(t,r):null;return new OD.default(n,i).generate(e)}var ur={};Object.defineProperty(ur,"__esModule",{value:!0});ur.find=AK;ur.findParent=vK;ur.getAncestry=_K;ur.getDeepestCommonAncestorFrom=FK;ur.getEarliestCommonAncestorFrom=xK;ur.getFunctionParent=CK;ur.getStatementParent=PK;ur.inType=OK;ur.isAncestor=wK;ur.isDescendant=IK;var TK=Ge();const{VISITOR_KEYS:SK}=TK;function vK(e){let t=this;for(;t=t.parentPath;)if(e(t))return t;return null}function AK(e){let t=this;do if(e(t))return t;while(t=t.parentPath);return null}function CK(){return this.findParent(e=>e.isFunction())}function PK(){let e=this;do{if(!e.parentPath||Array.isArray(e.container)&&e.isStatement())break;e=e.parentPath}while(e);if(e&&(e.isProgram()||e.isFile()))throw new Error("File/Program node, we can't possibly find a statement parent to this");return e}function xK(e){return this.getDeepestCommonAncestorFrom(e,function(t,r,n){let i;const s=SK[t.type];for(const a of n){const o=a[r+1];if(!i){i=o;continue}if(o.listKey&&i.listKey===o.listKey&&o.key<i.key){i=o;continue}const u=s.indexOf(i.parentKey),l=s.indexOf(o.parentKey);u>l&&(i=o)}return i})}function FK(e,t){if(!e.length)return this;if(e.length===1)return e[0];let r=1/0,n,i;const s=e.map(o=>{const u=[];do u.unshift(o);while((o=o.parentPath)&&o!==this);return u.length<r&&(r=u.length),u}),a=s[0];e:for(let o=0;o<r;o++){const u=a[o];for(const l of s)if(l[o]!==u)break e;n=o,i=u}if(i)return t?t(i,n,s):i;throw new Error("Couldn't find intersection")}function _K(){let e=this;const t=[];do t.push(e);while(e=e.parentPath);return t}function wK(e){return e.isDescendant(this)}function IK(e){return!!this.findParent(t=>t===e)}function OK(...e){let t=this;for(;t;){for(const r of e)if(t.node.type===r)return!0;t=t.parentPath}return!1}var jn={},BD={},Of={},su={};Object.defineProperty(su,"__esModule",{value:!0});su.createUnionType=RK;var NK=Ge();const{createFlowUnionType:Pd,createTSUnionType:xd,createUnionTypeAnnotation:BK,isFlowType:LK,isTSType:kK}=NK;function RK(e){{if(e.every(t=>LK(t)))return Pd?Pd(e):BK(e);if(e.every(t=>kK(t))&&xd)return xd(e)}}Object.defineProperty(Of,"__esModule",{value:!0});Of.default=VK;var MK=Ge(),LD=su;const{BOOLEAN_NUMBER_BINARY_OPERATORS:jK,createTypeAnnotationBasedOnTypeof:$K,numberTypeAnnotation:kD,voidTypeAnnotation:UK}=MK;function VK(e){if(!this.isReferenced())return;const t=this.scope.getBinding(e.name);if(t)return t.identifier.typeAnnotation?t.identifier.typeAnnotation:qK(t,this,e.name);if(e.name==="undefined")return UK();if(e.name==="NaN"||e.name==="Infinity")return kD();e.name}function qK(e,t,r){const n=[],i=[];let s=Fd(e,t,i);const a=RD(e,t,r);if(a){const o=Fd(e,a.ifStatement);s=s.filter(u=>!o.includes(u)),n.push(a.typeAnnotation)}if(s.length){s.push(...i);for(const o of s)n.push(o.getTypeAnnotation())}if(n.length)return(0,LD.createUnionType)(n)}function Fd(e,t,r){const n=e.constantViolations.slice();return n.unshift(e.path),n.filter(i=>{i=i.resolve();const s=i._guessExecutionStatusRelativeTo(t);return r&&s==="unknown"&&r.push(i),s==="before"})}function KK(e,t){const r=t.node.operator,n=t.get("right").resolve(),i=t.get("left").resolve();let s;if(i.isIdentifier({name:e})?s=n:n.isIdentifier({name:e})&&(s=i),s)return r==="==="?s.getTypeAnnotation():jK.includes(r)?kD():void 0;if(r!=="==="&&r!=="==")return;let a,o;if(i.isUnaryExpression({operator:"typeof"})?(a=i,o=n):n.isUnaryExpression({operator:"typeof"})&&(a=n,o=i),!a||!a.get("argument").isIdentifier({name:e})||(o=o.resolve(),!o.isLiteral()))return;const u=o.node.value;if(typeof u=="string")return $K(u)}function WK(e,t,r){let n;for(;n=t.parentPath;){if(n.isIfStatement()||n.isConditionalExpression())return t.key==="test"?void 0:n;if(n.isFunction()&&n.parentPath.scope.getBinding(r)!==e)return;t=n}}function RD(e,t,r){const n=WK(e,t,r);if(!n)return;const s=[n.get("test")],a=[];for(let o=0;o<s.length;o++){const u=s[o];if(u.isLogicalExpression())u.node.operator==="&&"&&(s.push(u.get("left")),s.push(u.get("right")));else if(u.isBinaryExpression()){const l=KK(r,u);l&&a.push(l)}}return a.length?{typeAnnotation:(0,LD.createUnionType)(a),ifStatement:n}:RD(e,n,r)}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ArrayExpression=te,e.AssignmentExpression=T,e.BinaryExpression=A,e.BooleanLiteral=ne,e.CallExpression=Te,e.ConditionalExpression=x,e.ClassDeclaration=e.ClassExpression=e.FunctionDeclaration=e.ArrowFunctionExpression=e.FunctionExpression=re,Object.defineProperty(e,"Identifier",{enumerable:!0,get:function(){return r.default}}),e.LogicalExpression=B,e.NewExpression=L,e.NullLiteral=X,e.NumericLiteral=Q,e.ObjectExpression=ie,e.ParenthesizedExpression=H,e.RegExpLiteral=ae,e.RestElement=Y,e.SequenceExpression=N,e.StringLiteral=R,e.TSAsExpression=P,e.TSNonNullExpression=I,e.TaggedTemplateExpression=Be,e.TemplateLiteral=F,e.TypeCastExpression=w,e.UnaryExpression=S,e.UpdateExpression=_,e.VariableDeclarator=$;var t=Ge(),r=Of,n=su;const{BOOLEAN_BINARY_OPERATORS:i,BOOLEAN_UNARY_OPERATORS:s,NUMBER_BINARY_OPERATORS:a,NUMBER_UNARY_OPERATORS:o,STRING_UNARY_OPERATORS:u,anyTypeAnnotation:l,arrayTypeAnnotation:c,booleanTypeAnnotation:f,buildMatchMemberExpression:p,genericTypeAnnotation:h,identifier:d,nullLiteralTypeAnnotation:m,numberTypeAnnotation:D,stringTypeAnnotation:g,tupleTypeAnnotation:y,unionTypeAnnotation:b,voidTypeAnnotation:O,isIdentifier:C}=t;function $(){if(this.get("id").isIdentifier())return this.get("init").getTypeAnnotation()}function w(_e){return _e.typeAnnotation}w.validParent=!0;function P(_e){return _e.typeAnnotation}P.validParent=!0;function I(){return this.get("expression").getTypeAnnotation()}function L(_e){if(_e.callee.type==="Identifier")return h(_e.callee)}function F(){return g()}function S(_e){const Ne=_e.operator;if(Ne==="void")return O();if(o.includes(Ne))return D();if(u.includes(Ne))return g();if(s.includes(Ne))return f()}function A(_e){const Ne=_e.operator;if(a.includes(Ne))return D();if(i.includes(Ne))return f();if(Ne==="+"){const ge=this.get("right"),Ae=this.get("left");return Ae.isBaseType("number")&&ge.isBaseType("number")?D():Ae.isBaseType("string")||ge.isBaseType("string")?g():b([g(),D()])}}function B(){const _e=[this.get("left").getTypeAnnotation(),this.get("right").getTypeAnnotation()];return(0,n.createUnionType)(_e)}function x(){const _e=[this.get("consequent").getTypeAnnotation(),this.get("alternate").getTypeAnnotation()];return(0,n.createUnionType)(_e)}function N(){return this.get("expressions").pop().getTypeAnnotation()}function H(){return this.get("expression").getTypeAnnotation()}function T(){return this.get("right").getTypeAnnotation()}function _(_e){const Ne=_e.operator;if(Ne==="++"||Ne==="--")return D()}function R(){return g()}function Q(){return D()}function ne(){return f()}function X(){return m()}function ae(){return h(d("RegExp"))}function ie(){return h(d("Object"))}function te(){return h(d("Array"))}function Y(){return te()}Y.validParent=!0;function re(){return h(d("Function"))}const De=p("Array.from"),de=p("Object.keys"),Ce=p("Object.values"),Oe=p("Object.entries");function Te(){const{callee:_e}=this.node;return de(_e)?c(g()):De(_e)||Ce(_e)||C(_e,{name:"Array"})?c(l()):Oe(_e)?c(y([g(),l()])):ze(this.get("callee"))}function Be(){return ze(this.get("tag"))}function ze(_e){if(_e=_e.resolve(),_e.isFunction()){const{node:Ne}=_e;if(Ne.async)return Ne.generator?h(d("AsyncIterator")):h(d("Promise"));if(Ne.generator)return h(d("Iterator"));if(_e.node.returnType)return _e.node.returnType}}})(BD);Object.defineProperty(jn,"__esModule",{value:!0});jn._getTypeAnnotation=jD;jn.baseTypeStrictlyMatches=hW;jn.couldBeBaseType=pW;jn.getTypeAnnotation=cW;jn.isBaseType=fW;jn.isGenericType=dW;var _d=BD,HK=Ge();const{anyTypeAnnotation:MD,isAnyTypeAnnotation:So,isArrayTypeAnnotation:GK,isBooleanTypeAnnotation:YK,isEmptyTypeAnnotation:XK,isFlowBaseAnnotation:JK,isGenericTypeAnnotation:zK,isIdentifier:wd,isMixedTypeAnnotation:QK,isNumberTypeAnnotation:ZK,isStringTypeAnnotation:eW,isTSArrayType:tW,isTSTypeAnnotation:rW,isTSTypeReference:nW,isTupleTypeAnnotation:iW,isTypeAnnotation:sW,isUnionTypeAnnotation:aW,isVoidTypeAnnotation:oW,stringTypeAnnotation:uW,voidTypeAnnotation:lW}=HK;function cW(){let e=this.getData("typeAnnotation");return e!=null||(e=jD.call(this)||MD(),(sW(e)||rW(e))&&(e=e.typeAnnotation),this.setData("typeAnnotation",e)),e}const Qu=new WeakSet;function jD(){const e=this.node;if(!e)if(this.key==="init"&&this.parentPath.isVariableDeclarator()){const r=this.parentPath.parentPath,n=r.parentPath;return r.key==="left"&&n.isForInStatement()?uW():r.key==="left"&&n.isForOfStatement()?MD():lW()}else return;if(e.typeAnnotation)return e.typeAnnotation;if(!Qu.has(e)){Qu.add(e);try{var t;let r=_d[e.type];if(r)return r.call(this,e);if(r=_d[this.parentPath.type],(t=r)!=null&&t.validParent)return this.parentPath.getTypeAnnotation()}finally{Qu.delete(e)}}}function fW(e,t){return Xl(e,this.getTypeAnnotation(),t)}function Xl(e,t,r){if(e==="string")return eW(t);if(e==="number")return ZK(t);if(e==="boolean")return YK(t);if(e==="any")return So(t);if(e==="mixed")return QK(t);if(e==="empty")return XK(t);if(e==="void")return oW(t);if(r)return!1;throw new Error(`Unknown base type ${e}`)}function pW(e){const t=this.getTypeAnnotation();if(So(t))return!0;if(aW(t)){for(const r of t.types)if(So(r)||Xl(e,r,!0))return!0;return!1}else return Xl(e,t,!0)}function hW(e){const t=this.getTypeAnnotation(),r=e.getTypeAnnotation();return!So(t)&&JK(t)?r.type===t.type:!1}function dW(e){const t=this.getTypeAnnotation();return e==="Array"&&(tW(t)||GK(t)||iW(t))?!0:zK(t)&&wd(t.id,{name:e})||nW(t)&&wd(t.typeName,{name:e})}var kr={},Ys={},Xs={},au={};Object.defineProperty(au,"__esModule",{value:!0});au.default=/((['"])(?:(?!\2|\\).|\\(?:\r\n|[\s\S]))*(\2)?|`(?:[^`\\$]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{[^}]*\}?)*\}?)*(`)?)|(\/\/.*)|(\/\*(?:[^*]|\*(?!\/))*(\*\/)?)|(\/(?!\*)(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\]\\]).|\\.)+\/(?:(?!\s*(?:\b|[\u0080-\uFFFF$\\'"~({]|[+\-!](?!=)|\.?\d))|[gmiyus]{1,6}\b(?![\u0080-\uFFFF$\\]|\s*(?:[+\-*%&|^<>!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g;au.matchToToken=function(e){var t={type:"invalid",value:e[0],closed:void 0};return e[1]?(t.type="string",t.closed=!!(e[3]||e[4])):e[5]?t.type="comment":e[6]?(t.type="comment",t.closed=!!e[7]):e[8]?t.type="regex":e[9]?t.type="number":e[10]?t.type="name":e[11]?t.type="punctuator":e[12]&&(t.type="whitespace"),t};function mW(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Nf={exports:{}};let Id=process.argv||[],ka=process.env,yW=!("NO_COLOR"in ka||Id.includes("--no-color"))&&("FORCE_COLOR"in ka||Id.includes("--color")||process.platform==="win32"||mW!=null&&xs.isatty(1)&&ka.TERM!=="dumb"||"CI"in ka),DW=(e,t,r=e)=>n=>{let i=""+n,s=i.indexOf(t,e.length);return~s?e+gW(i,t,r,s)+t:e+i+t},gW=(e,t,r,n)=>{let i="",s=0;do i+=e.substring(s,n)+r,s=n+t.length,n=e.indexOf(t,s);while(~n);return i+e.substring(s)},$D=(e=yW)=>{let t=e?DW:()=>String;return{isColorSupported:e,reset:t("\x1B[0m","\x1B[0m"),bold:t("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"),dim:t("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"),italic:t("\x1B[3m","\x1B[23m"),underline:t("\x1B[4m","\x1B[24m"),inverse:t("\x1B[7m","\x1B[27m"),hidden:t("\x1B[8m","\x1B[28m"),strikethrough:t("\x1B[9m","\x1B[29m"),black:t("\x1B[30m","\x1B[39m"),red:t("\x1B[31m","\x1B[39m"),green:t("\x1B[32m","\x1B[39m"),yellow:t("\x1B[33m","\x1B[39m"),blue:t("\x1B[34m","\x1B[39m"),magenta:t("\x1B[35m","\x1B[39m"),cyan:t("\x1B[36m","\x1B[39m"),white:t("\x1B[37m","\x1B[39m"),gray:t("\x1B[90m","\x1B[39m"),bgBlack:t("\x1B[40m","\x1B[49m"),bgRed:t("\x1B[41m","\x1B[49m"),bgGreen:t("\x1B[42m","\x1B[49m"),bgYellow:t("\x1B[43m","\x1B[49m"),bgBlue:t("\x1B[44m","\x1B[49m"),bgMagenta:t("\x1B[45m","\x1B[49m"),bgCyan:t("\x1B[46m","\x1B[49m"),bgWhite:t("\x1B[47m","\x1B[49m")}};Nf.exports=$D();Nf.exports.createColors=$D;var UD=Nf.exports,Zu={exports:{}},el,Od;function EW(){if(Od)return el;Od=1;var e=/[|\\{}()[\]^$+*?.]/g;return el=function(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(e,"\\$&")},el}var to={exports:{}},tl={exports:{}},rl,Nd;function bW(){return Nd||(Nd=1,rl={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}),rl}var Bd;function VD(){if(Bd)return tl.exports;Bd=1;var e=bW(),t={};for(var r in e)e.hasOwnProperty(r)&&(t[e[r]]=r);var n=tl.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var i in n)if(n.hasOwnProperty(i)){if(!("channels"in n[i]))throw new Error("missing channels property: "+i);if(!("labels"in n[i]))throw new Error("missing channel labels property: "+i);if(n[i].labels.length!==n[i].channels)throw new Error("channel and label counts mismatch: "+i);var s=n[i].channels,a=n[i].labels;delete n[i].channels,delete n[i].labels,Object.defineProperty(n[i],"channels",{value:s}),Object.defineProperty(n[i],"labels",{value:a})}n.rgb.hsl=function(u){var l=u[0]/255,c=u[1]/255,f=u[2]/255,p=Math.min(l,c,f),h=Math.max(l,c,f),d=h-p,m,D,g;return h===p?m=0:l===h?m=(c-f)/d:c===h?m=2+(f-l)/d:f===h&&(m=4+(l-c)/d),m=Math.min(m*60,360),m<0&&(m+=360),g=(p+h)/2,h===p?D=0:g<=.5?D=d/(h+p):D=d/(2-h-p),[m,D*100,g*100]},n.rgb.hsv=function(u){var l,c,f,p,h,d=u[0]/255,m=u[1]/255,D=u[2]/255,g=Math.max(d,m,D),y=g-Math.min(d,m,D),b=function(O){return(g-O)/6/y+1/2};return y===0?p=h=0:(h=y/g,l=b(d),c=b(m),f=b(D),d===g?p=f-c:m===g?p=1/3+l-f:D===g&&(p=2/3+c-l),p<0?p+=1:p>1&&(p-=1)),[p*360,h*100,g*100]},n.rgb.hwb=function(u){var l=u[0],c=u[1],f=u[2],p=n.rgb.hsl(u)[0],h=1/255*Math.min(l,Math.min(c,f));return f=1-1/255*Math.max(l,Math.max(c,f)),[p,h*100,f*100]},n.rgb.cmyk=function(u){var l=u[0]/255,c=u[1]/255,f=u[2]/255,p,h,d,m;return m=Math.min(1-l,1-c,1-f),p=(1-l-m)/(1-m)||0,h=(1-c-m)/(1-m)||0,d=(1-f-m)/(1-m)||0,[p*100,h*100,d*100,m*100]};function o(u,l){return Math.pow(u[0]-l[0],2)+Math.pow(u[1]-l[1],2)+Math.pow(u[2]-l[2],2)}return n.rgb.keyword=function(u){var l=t[u];if(l)return l;var c=1/0,f;for(var p in e)if(e.hasOwnProperty(p)){var h=e[p],d=o(u,h);d<c&&(c=d,f=p)}return f},n.keyword.rgb=function(u){return e[u]},n.rgb.xyz=function(u){var l=u[0]/255,c=u[1]/255,f=u[2]/255;l=l>.04045?Math.pow((l+.055)/1.055,2.4):l/12.92,c=c>.04045?Math.pow((c+.055)/1.055,2.4):c/12.92,f=f>.04045?Math.pow((f+.055)/1.055,2.4):f/12.92;var p=l*.4124+c*.3576+f*.1805,h=l*.2126+c*.7152+f*.0722,d=l*.0193+c*.1192+f*.9505;return[p*100,h*100,d*100]},n.rgb.lab=function(u){var l=n.rgb.xyz(u),c=l[0],f=l[1],p=l[2],h,d,m;return c/=95.047,f/=100,p/=108.883,c=c>.008856?Math.pow(c,1/3):7.787*c+16/116,f=f>.008856?Math.pow(f,1/3):7.787*f+16/116,p=p>.008856?Math.pow(p,1/3):7.787*p+16/116,h=116*f-16,d=500*(c-f),m=200*(f-p),[h,d,m]},n.hsl.rgb=function(u){var l=u[0]/360,c=u[1]/100,f=u[2]/100,p,h,d,m,D;if(c===0)return D=f*255,[D,D,D];f<.5?h=f*(1+c):h=f+c-f*c,p=2*f-h,m=[0,0,0];for(var g=0;g<3;g++)d=l+1/3*-(g-1),d<0&&d++,d>1&&d--,6*d<1?D=p+(h-p)*6*d:2*d<1?D=h:3*d<2?D=p+(h-p)*(2/3-d)*6:D=p,m[g]=D*255;return m},n.hsl.hsv=function(u){var l=u[0],c=u[1]/100,f=u[2]/100,p=c,h=Math.max(f,.01),d,m;return f*=2,c*=f<=1?f:2-f,p*=h<=1?h:2-h,m=(f+c)/2,d=f===0?2*p/(h+p):2*c/(f+c),[l,d*100,m*100]},n.hsv.rgb=function(u){var l=u[0]/60,c=u[1]/100,f=u[2]/100,p=Math.floor(l)%6,h=l-Math.floor(l),d=255*f*(1-c),m=255*f*(1-c*h),D=255*f*(1-c*(1-h));switch(f*=255,p){case 0:return[f,D,d];case 1:return[m,f,d];case 2:return[d,f,D];case 3:return[d,m,f];case 4:return[D,d,f];case 5:return[f,d,m]}},n.hsv.hsl=function(u){var l=u[0],c=u[1]/100,f=u[2]/100,p=Math.max(f,.01),h,d,m;return m=(2-c)*f,h=(2-c)*p,d=c*p,d/=h<=1?h:2-h,d=d||0,m/=2,[l,d*100,m*100]},n.hwb.rgb=function(u){var l=u[0]/360,c=u[1]/100,f=u[2]/100,p=c+f,h,d,m,D;p>1&&(c/=p,f/=p),h=Math.floor(6*l),d=1-f,m=6*l-h,h&1&&(m=1-m),D=c+m*(d-c);var g,y,b;switch(h){default:case 6:case 0:g=d,y=D,b=c;break;case 1:g=D,y=d,b=c;break;case 2:g=c,y=d,b=D;break;case 3:g=c,y=D,b=d;break;case 4:g=D,y=c,b=d;break;case 5:g=d,y=c,b=D;break}return[g*255,y*255,b*255]},n.cmyk.rgb=function(u){var l=u[0]/100,c=u[1]/100,f=u[2]/100,p=u[3]/100,h,d,m;return h=1-Math.min(1,l*(1-p)+p),d=1-Math.min(1,c*(1-p)+p),m=1-Math.min(1,f*(1-p)+p),[h*255,d*255,m*255]},n.xyz.rgb=function(u){var l=u[0]/100,c=u[1]/100,f=u[2]/100,p,h,d;return p=l*3.2406+c*-1.5372+f*-.4986,h=l*-.9689+c*1.8758+f*.0415,d=l*.0557+c*-.204+f*1.057,p=p>.0031308?1.055*Math.pow(p,1/2.4)-.055:p*12.92,h=h>.0031308?1.055*Math.pow(h,1/2.4)-.055:h*12.92,d=d>.0031308?1.055*Math.pow(d,1/2.4)-.055:d*12.92,p=Math.min(Math.max(0,p),1),h=Math.min(Math.max(0,h),1),d=Math.min(Math.max(0,d),1),[p*255,h*255,d*255]},n.xyz.lab=function(u){var l=u[0],c=u[1],f=u[2],p,h,d;return l/=95.047,c/=100,f/=108.883,l=l>.008856?Math.pow(l,1/3):7.787*l+16/116,c=c>.008856?Math.pow(c,1/3):7.787*c+16/116,f=f>.008856?Math.pow(f,1/3):7.787*f+16/116,p=116*c-16,h=500*(l-c),d=200*(c-f),[p,h,d]},n.lab.xyz=function(u){var l=u[0],c=u[1],f=u[2],p,h,d;h=(l+16)/116,p=c/500+h,d=h-f/200;var m=Math.pow(h,3),D=Math.pow(p,3),g=Math.pow(d,3);return h=m>.008856?m:(h-16/116)/7.787,p=D>.008856?D:(p-16/116)/7.787,d=g>.008856?g:(d-16/116)/7.787,p*=95.047,h*=100,d*=108.883,[p,h,d]},n.lab.lch=function(u){var l=u[0],c=u[1],f=u[2],p,h,d;return p=Math.atan2(f,c),h=p*360/2/Math.PI,h<0&&(h+=360),d=Math.sqrt(c*c+f*f),[l,d,h]},n.lch.lab=function(u){var l=u[0],c=u[1],f=u[2],p,h,d;return d=f/360*2*Math.PI,p=c*Math.cos(d),h=c*Math.sin(d),[l,p,h]},n.rgb.ansi16=function(u){var l=u[0],c=u[1],f=u[2],p=1 in arguments?arguments[1]:n.rgb.hsv(u)[2];if(p=Math.round(p/50),p===0)return 30;var h=30+(Math.round(f/255)<<2|Math.round(c/255)<<1|Math.round(l/255));return p===2&&(h+=60),h},n.hsv.ansi16=function(u){return n.rgb.ansi16(n.hsv.rgb(u),u[2])},n.rgb.ansi256=function(u){var l=u[0],c=u[1],f=u[2];if(l===c&&c===f)return l<8?16:l>248?231:Math.round((l-8)/247*24)+232;var p=16+36*Math.round(l/255*5)+6*Math.round(c/255*5)+Math.round(f/255*5);return p},n.ansi16.rgb=function(u){var l=u%10;if(l===0||l===7)return u>50&&(l+=3.5),l=l/10.5*255,[l,l,l];var c=(~~(u>50)+1)*.5,f=(l&1)*c*255,p=(l>>1&1)*c*255,h=(l>>2&1)*c*255;return[f,p,h]},n.ansi256.rgb=function(u){if(u>=232){var l=(u-232)*10+8;return[l,l,l]}u-=16;var c,f=Math.floor(u/36)/5*255,p=Math.floor((c=u%36)/6)/5*255,h=c%6/5*255;return[f,p,h]},n.rgb.hex=function(u){var l=((Math.round(u[0])&255)<<16)+((Math.round(u[1])&255)<<8)+(Math.round(u[2])&255),c=l.toString(16).toUpperCase();return"000000".substring(c.length)+c},n.hex.rgb=function(u){var l=u.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!l)return[0,0,0];var c=l[0];l[0].length===3&&(c=c.split("").map(function(m){return m+m}).join(""));var f=parseInt(c,16),p=f>>16&255,h=f>>8&255,d=f&255;return[p,h,d]},n.rgb.hcg=function(u){var l=u[0]/255,c=u[1]/255,f=u[2]/255,p=Math.max(Math.max(l,c),f),h=Math.min(Math.min(l,c),f),d=p-h,m,D;return d<1?m=h/(1-d):m=0,d<=0?D=0:p===l?D=(c-f)/d%6:p===c?D=2+(f-l)/d:D=4+(l-c)/d+4,D/=6,D%=1,[D*360,d*100,m*100]},n.hsl.hcg=function(u){var l=u[1]/100,c=u[2]/100,f=1,p=0;return c<.5?f=2*l*c:f=2*l*(1-c),f<1&&(p=(c-.5*f)/(1-f)),[u[0],f*100,p*100]},n.hsv.hcg=function(u){var l=u[1]/100,c=u[2]/100,f=l*c,p=0;return f<1&&(p=(c-f)/(1-f)),[u[0],f*100,p*100]},n.hcg.rgb=function(u){var l=u[0]/360,c=u[1]/100,f=u[2]/100;if(c===0)return[f*255,f*255,f*255];var p=[0,0,0],h=l%1*6,d=h%1,m=1-d,D=0;switch(Math.floor(h)){case 0:p[0]=1,p[1]=d,p[2]=0;break;case 1:p[0]=m,p[1]=1,p[2]=0;break;case 2:p[0]=0,p[1]=1,p[2]=d;break;case 3:p[0]=0,p[1]=m,p[2]=1;break;case 4:p[0]=d,p[1]=0,p[2]=1;break;default:p[0]=1,p[1]=0,p[2]=m}return D=(1-c)*f,[(c*p[0]+D)*255,(c*p[1]+D)*255,(c*p[2]+D)*255]},n.hcg.hsv=function(u){var l=u[1]/100,c=u[2]/100,f=l+c*(1-l),p=0;return f>0&&(p=l/f),[u[0],p*100,f*100]},n.hcg.hsl=function(u){var l=u[1]/100,c=u[2]/100,f=c*(1-l)+.5*l,p=0;return f>0&&f<.5?p=l/(2*f):f>=.5&&f<1&&(p=l/(2*(1-f))),[u[0],p*100,f*100]},n.hcg.hwb=function(u){var l=u[1]/100,c=u[2]/100,f=l+c*(1-l);return[u[0],(f-l)*100,(1-f)*100]},n.hwb.hcg=function(u){var l=u[1]/100,c=u[2]/100,f=1-c,p=f-l,h=0;return p<1&&(h=(f-p)/(1-p)),[u[0],p*100,h*100]},n.apple.rgb=function(u){return[u[0]/65535*255,u[1]/65535*255,u[2]/65535*255]},n.rgb.apple=function(u){return[u[0]/255*65535,u[1]/255*65535,u[2]/255*65535]},n.gray.rgb=function(u){return[u[0]/100*255,u[0]/100*255,u[0]/100*255]},n.gray.hsl=n.gray.hsv=function(u){return[0,0,u[0]]},n.gray.hwb=function(u){return[0,100,u[0]]},n.gray.cmyk=function(u){return[0,0,0,u[0]]},n.gray.lab=function(u){return[u[0],0,0]},n.gray.hex=function(u){var l=Math.round(u[0]/100*255)&255,c=(l<<16)+(l<<8)+l,f=c.toString(16).toUpperCase();return"000000".substring(f.length)+f},n.rgb.gray=function(u){var l=(u[0]+u[1]+u[2])/3;return[l/255*100]},tl.exports}var nl,Ld;function TW(){if(Ld)return nl;Ld=1;var e=VD();function t(){for(var s={},a=Object.keys(e),o=a.length,u=0;u<o;u++)s[a[u]]={distance:-1,parent:null};return s}function r(s){var a=t(),o=[s];for(a[s].distance=0;o.length;)for(var u=o.pop(),l=Object.keys(e[u]),c=l.length,f=0;f<c;f++){var p=l[f],h=a[p];h.distance===-1&&(h.distance=a[u].distance+1,h.parent=u,o.unshift(p))}return a}function n(s,a){return function(o){return a(s(o))}}function i(s,a){for(var o=[a[s].parent,s],u=e[a[s].parent][s],l=a[s].parent;a[l].parent;)o.unshift(a[l].parent),u=n(e[a[l].parent][l],u),l=a[l].parent;return u.conversion=o,u}return nl=function(s){for(var a=r(s),o={},u=Object.keys(a),l=u.length,c=0;c<l;c++){var f=u[c],p=a[f];p.parent!==null&&(o[f]=i(f,a))}return o},nl}var il,kd;function SW(){if(kd)return il;kd=1;var e=VD(),t=TW(),r={},n=Object.keys(e);function i(a){var o=function(u){return u==null?u:(arguments.length>1&&(u=Array.prototype.slice.call(arguments)),a(u))};return"conversion"in a&&(o.conversion=a.conversion),o}function s(a){var o=function(u){if(u==null)return u;arguments.length>1&&(u=Array.prototype.slice.call(arguments));var l=a(u);if(typeof l=="object")for(var c=l.length,f=0;f<c;f++)l[f]=Math.round(l[f]);return l};return"conversion"in a&&(o.conversion=a.conversion),o}return n.forEach(function(a){r[a]={},Object.defineProperty(r[a],"channels",{value:e[a].channels}),Object.defineProperty(r[a],"labels",{value:e[a].labels});var o=t(a),u=Object.keys(o);u.forEach(function(l){var c=o[l];r[a][l]=s(c),r[a][l].raw=i(c)})}),il=r,il}to.exports;var Rd;function vW(){return Rd||(Rd=1,function(e){const t=SW(),r=(a,o)=>function(){return`\x1B[${a.apply(t,arguments)+o}m`},n=(a,o)=>function(){const u=a.apply(t,arguments);return`\x1B[${38+o};5;${u}m`},i=(a,o)=>function(){const u=a.apply(t,arguments);return`\x1B[${38+o};2;${u[0]};${u[1]};${u[2]}m`};function s(){const a=new Map,o={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};o.color.grey=o.color.gray;for(const c of Object.keys(o)){const f=o[c];for(const p of Object.keys(f)){const h=f[p];o[p]={open:`\x1B[${h[0]}m`,close:`\x1B[${h[1]}m`},f[p]=o[p],a.set(h[0],h[1])}Object.defineProperty(o,c,{value:f,enumerable:!1}),Object.defineProperty(o,"codes",{value:a,enumerable:!1})}const u=c=>c,l=(c,f,p)=>[c,f,p];o.color.close="\x1B[39m",o.bgColor.close="\x1B[49m",o.color.ansi={ansi:r(u,0)},o.color.ansi256={ansi256:n(u,0)},o.color.ansi16m={rgb:i(l,0)},o.bgColor.ansi={ansi:r(u,10)},o.bgColor.ansi256={ansi256:n(u,10)},o.bgColor.ansi16m={rgb:i(l,10)};for(let c of Object.keys(t)){if(typeof t[c]!="object")continue;const f=t[c];c==="ansi16"&&(c="ansi"),"ansi16"in f&&(o.color.ansi[c]=r(f.ansi16,0),o.bgColor.ansi[c]=r(f.ansi16,10)),"ansi256"in f&&(o.color.ansi256[c]=n(f.ansi256,0),o.bgColor.ansi256[c]=n(f.ansi256,10)),"rgb"in f&&(o.color.ansi16m[c]=i(f.rgb,0),o.bgColor.ansi16m[c]=i(f.rgb,10))}return o}Object.defineProperty(e,"exports",{enumerable:!0,get:s})}(to)),to.exports}var sl,Md;function AW(){return Md||(Md=1,sl=(e,t)=>{t=t||process.argv;const r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),i=t.indexOf("--");return n!==-1&&(i===-1?!0:n<i)}),sl}var al,jd;function CW(){if(jd)return al;jd=1;const e=tc,t=AW(),r=process.env;let n;t("no-color")||t("no-colors")||t("color=false")?n=!1:(t("color")||t("colors")||t("color=true")||t("color=always"))&&(n=!0),"FORCE_COLOR"in r&&(n=r.FORCE_COLOR.length===0||parseInt(r.FORCE_COLOR,10)!==0);function i(o){return o===0?!1:{level:o,hasBasic:!0,has256:o>=2,has16m:o>=3}}function s(o){if(n===!1)return 0;if(t("color=16m")||t("color=full")||t("color=truecolor"))return 3;if(t("color=256"))return 2;if(o&&!o.isTTY&&n!==!0)return 0;const u=n?1:0;if(process.platform==="win32"){const l=e.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(l[0])>=10&&Number(l[2])>=10586?Number(l[2])>=14931?3:2:1}if("CI"in r)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(l=>l in r)||r.CI_NAME==="codeship"?1:u;if("TEAMCITY_VERSION"in r)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(r.TEAMCITY_VERSION)?1:0;if(r.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in r){const l=parseInt((r.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(r.TERM_PROGRAM){case"iTerm.app":return l>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(r.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(r.TERM)||"COLORTERM"in r?1:(r.TERM==="dumb",u)}function a(o){const u=s(o);return i(u)}return al={supportsColor:a,stdout:a(process.stdout),stderr:a(process.stderr)},al}var ol,$d;function PW(){if($d)return ol;$d=1;const e=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,t=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,r=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,n=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,i=new Map([["n",`
|
|
132
|
+
`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function s(l){return l[0]==="u"&&l.length===5||l[0]==="x"&&l.length===3?String.fromCharCode(parseInt(l.slice(1),16)):i.get(l)||l}function a(l,c){const f=[],p=c.trim().split(/\s*,\s*/g);let h;for(const d of p)if(!isNaN(d))f.push(Number(d));else if(h=d.match(r))f.push(h[2].replace(n,(m,D,g)=>D?s(D):g));else throw new Error(`Invalid Chalk template style argument: ${d} (in style '${l}')`);return f}function o(l){t.lastIndex=0;const c=[];let f;for(;(f=t.exec(l))!==null;){const p=f[1];if(f[2]){const h=a(p,f[2]);c.push([p].concat(h))}else c.push([p])}return c}function u(l,c){const f={};for(const h of c)for(const d of h.styles)f[d[0]]=h.inverse?null:d.slice(1);let p=l;for(const h of Object.keys(f))if(Array.isArray(f[h])){if(!(h in p))throw new Error(`Unknown Chalk style: ${h}`);f[h].length>0?p=p[h].apply(p,f[h]):p=p[h]}return p}return ol=(l,c)=>{const f=[],p=[];let h=[];if(c.replace(e,(d,m,D,g,y,b)=>{if(m)h.push(s(m));else if(g){const O=h.join("");h=[],p.push(f.length===0?O:u(l,f)(O)),f.push({inverse:D,styles:o(g)})}else if(y){if(f.length===0)throw new Error("Found extraneous } in Chalk template literal");p.push(u(l,f)(h.join(""))),h=[],f.pop()}else h.push(b)}),p.push(h.join("")),f.length>0){const d=`Chalk template literal is missing ${f.length} closing bracket${f.length===1?"":"s"} (\`}\`)`;throw new Error(d)}return p.join("")},ol}var Ud;function xW(){return Ud||(Ud=1,function(e){const t=EW(),r=vW(),n=CW().stdout,i=PW(),s=process.platform==="win32"&&!(process.env.TERM||"").toLowerCase().startsWith("xterm"),a=["ansi","ansi","ansi256","ansi16m"],o=new Set(["gray"]),u=Object.create(null);function l(m,D){D=D||{};const g=n?n.level:0;m.level=D.level===void 0?g:D.level,m.enabled="enabled"in D?D.enabled:m.level>0}function c(m){if(!this||!(this instanceof c)||this.template){const D={};return l(D,m),D.template=function(){const g=[].slice.call(arguments);return d.apply(null,[D.template].concat(g))},Object.setPrototypeOf(D,c.prototype),Object.setPrototypeOf(D.template,D),D.template.constructor=c,D.template}l(this,m)}s&&(r.blue.open="\x1B[94m");for(const m of Object.keys(r))r[m].closeRe=new RegExp(t(r[m].close),"g"),u[m]={get(){const D=r[m];return p.call(this,this._styles?this._styles.concat(D):[D],this._empty,m)}};u.visible={get(){return p.call(this,this._styles||[],!0,"visible")}},r.color.closeRe=new RegExp(t(r.color.close),"g");for(const m of Object.keys(r.color.ansi))o.has(m)||(u[m]={get(){const D=this.level;return function(){const y={open:r.color[a[D]][m].apply(null,arguments),close:r.color.close,closeRe:r.color.closeRe};return p.call(this,this._styles?this._styles.concat(y):[y],this._empty,m)}}});r.bgColor.closeRe=new RegExp(t(r.bgColor.close),"g");for(const m of Object.keys(r.bgColor.ansi)){if(o.has(m))continue;const D="bg"+m[0].toUpperCase()+m.slice(1);u[D]={get(){const g=this.level;return function(){const b={open:r.bgColor[a[g]][m].apply(null,arguments),close:r.bgColor.close,closeRe:r.bgColor.closeRe};return p.call(this,this._styles?this._styles.concat(b):[b],this._empty,m)}}}}const f=Object.defineProperties(()=>{},u);function p(m,D,g){const y=function(){return h.apply(y,arguments)};y._styles=m,y._empty=D;const b=this;return Object.defineProperty(y,"level",{enumerable:!0,get(){return b.level},set(O){b.level=O}}),Object.defineProperty(y,"enabled",{enumerable:!0,get(){return b.enabled},set(O){b.enabled=O}}),y.hasGrey=this.hasGrey||g==="gray"||g==="grey",y.__proto__=f,y}function h(){const m=arguments,D=m.length;let g=String(arguments[0]);if(D===0)return"";if(D>1)for(let b=1;b<D;b++)g+=" "+m[b];if(!this.enabled||this.level<=0||!g)return this._empty?"":g;const y=r.dim.open;s&&this.hasGrey&&(r.dim.open="");for(const b of this._styles.slice().reverse())g=b.open+g.replace(b.closeRe,b.open)+b.close,g=g.replace(/\r?\n/g,`${b.close}$&${b.open}`);return r.dim.open=y,g}function d(m,D){if(!Array.isArray(D))return[].slice.call(arguments,1).join(" ");const g=[].slice.call(arguments,2),y=[D.raw[0]];for(let b=1;b<D.length;b++)y.push(String(g[b-1]).replace(/[{}\\]/g,"\\$&")),y.push(String(D.raw[b]));return i(m,y.join(""))}Object.defineProperties(c.prototype,u),e.exports=c(),e.exports.supportsColor=n,e.exports.default=e.exports}(Zu)),Zu.exports}Object.defineProperty(Xs,"__esModule",{value:!0});Xs.default=LW;Xs.shouldHighlight=HD;var Vd=au,qd=Us,Jl=FW(UD,!0);function qD(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(qD=function(n){return n?r:t})(e)}function FW(e,t){if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=qD(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if(s!=="default"&&{}.hasOwnProperty.call(e,s)){var a=i?Object.getOwnPropertyDescriptor(e,s):null;a&&(a.get||a.set)?Object.defineProperty(n,s,a):n[s]=e[s]}return n.default=e,r&&r.set(e,n),n}const KD=typeof process=="object"&&(process.env.FORCE_COLOR==="0"||process.env.FORCE_COLOR==="false")?(0,Jl.createColors)(!1):Jl.default,Kd=(e,t)=>r=>e(t(r)),_W=new Set(["as","async","from","get","of","set"]);function wW(e){return{keyword:e.cyan,capitalized:e.yellow,jsxIdentifier:e.yellow,punctuator:e.yellow,number:e.magenta,string:e.green,regex:e.magenta,comment:e.gray,invalid:Kd(Kd(e.white,e.bgRed),e.bold)}}const IW=/\r\n|[\n\r\u2028\u2029]/,OW=/^[()[\]{}]$/;let WD;{const e=/^[a-z][\w-]*$/i,t=function(r,n,i){if(r.type==="name"){if((0,qd.isKeyword)(r.value)||(0,qd.isStrictReservedWord)(r.value,!0)||_W.has(r.value))return"keyword";if(e.test(r.value)&&(i[n-1]==="<"||i.slice(n-2,n)==="</"))return"jsxIdentifier";if(r.value[0]!==r.value[0].toLowerCase())return"capitalized"}return r.type==="punctuator"&&OW.test(r.value)?"bracket":r.type==="invalid"&&(r.value==="@"||r.value==="#")?"punctuator":r.type};WD=function*(r){let n;for(;n=Vd.default.exec(r);){const i=Vd.matchToToken(n);yield{type:t(i,n.index,r),value:i.value}}}}function NW(e,t){let r="";for(const{type:n,value:i}of WD(t)){const s=e[n];s?r+=i.split(IW).map(a=>s(a)).join(`
|
|
133
|
+
`):r+=i}return r}function HD(e){return KD.isColorSupported||e.forceColor}let ul;function BW(e){if(e){var t;return(t=ul)!=null||(ul=(0,Jl.createColors)(!0)),ul}return KD}function LW(e,t={}){if(e!==""&&HD(t)){const r=wW(BW(t.forceColor));return NW(r,e)}else return e}{let e,t;Xs.getChalk=({forceColor:r})=>{var n;if((n=e)!=null||(e=xW()),r){var i;return(i=t)!=null||(t=new e.constructor({enabled:!0,level:1})),t}return e}}Object.defineProperty(Ys,"__esModule",{value:!0});Ys.codeFrameColumns=YD;Ys.default=UW;var Wd=Xs,zl=kW(UD,!0);function GD(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(GD=function(n){return n?r:t})(e)}function kW(e,t){if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=GD(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if(s!=="default"&&{}.hasOwnProperty.call(e,s)){var a=i?Object.getOwnPropertyDescriptor(e,s):null;a&&(a.get||a.set)?Object.defineProperty(n,s,a):n[s]=e[s]}return n.default=e,r&&r.set(e,n),n}const RW=typeof process=="object"&&(process.env.FORCE_COLOR==="0"||process.env.FORCE_COLOR==="false")?(0,zl.createColors)(!1):zl.default,Hd=(e,t)=>r=>e(t(r));let ll;function MW(e){if(e){var t;return(t=ll)!=null||(ll=(0,zl.createColors)(!0)),ll}return RW}let Gd=!1;function jW(e){return{gutter:e.gray,marker:Hd(e.red,e.bold),message:Hd(e.red,e.bold)}}const Yd=/\r\n|[\n\r\u2028\u2029]/;function $W(e,t,r){const n=Object.assign({column:0,line:-1},e.start),i=Object.assign({},n,e.end),{linesAbove:s=2,linesBelow:a=3}=r||{},o=n.line,u=n.column,l=i.line,c=i.column;let f=Math.max(o-(s+1),0),p=Math.min(t.length,l+a);o===-1&&(f=0),l===-1&&(p=t.length);const h=l-o,d={};if(h)for(let m=0;m<=h;m++){const D=m+o;if(!u)d[D]=!0;else if(m===0){const g=t[D-1].length;d[D]=[u,g-u+1]}else if(m===h)d[D]=[0,c];else{const g=t[D-m].length;d[D]=[0,g]}}else u===c?u?d[o]=[u,0]:d[o]=!0:d[o]=[u,c-u];return{start:f,end:p,markerLines:d}}function YD(e,t,r={}){const n=(r.highlightCode||r.forceColor)&&(0,Wd.shouldHighlight)(r),i=MW(r.forceColor),s=jW(i),a=(m,D)=>n?m(D):D,o=e.split(Yd),{start:u,end:l,markerLines:c}=$W(t,o,r),f=t.start&&typeof t.start.column=="number",p=String(l).length;let d=(n?(0,Wd.default)(e,r):e).split(Yd,l).slice(u,l).map((m,D)=>{const g=u+1+D,b=` ${` ${g}`.slice(-p)} |`,O=c[g],C=!c[g+1];if(O){let $="";if(Array.isArray(O)){const w=m.slice(0,Math.max(O[0]-1,0)).replace(/[^\t]/g," "),P=O[1]||1;$=[`
|
|
134
|
+
`,a(s.gutter,b.replace(/\d/g," "))," ",w,a(s.marker,"^").repeat(P)].join(""),C&&r.message&&($+=" "+a(s.message,r.message))}return[a(s.marker,">"),a(s.gutter,b),m.length>0?` ${m}`:"",$].join("")}else return` ${a(s.gutter,b)}${m.length>0?` ${m}`:""}`}).join(`
|
|
135
|
+
`);return r.message&&!f&&(d=`${" ".repeat(p+1)}${r.message}
|
|
136
|
+
${d}`),n?i.reset(d):d}function UW(e,t,r,n={}){if(!Gd){Gd=!0;const s="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";if(process.emitWarning)process.emitWarning(s,"DeprecationWarning");else{const a=new Error(s);a.name="DeprecationWarning",console.warn(new Error(s))}}return r=Math.max(r,0),YD(e,{start:{column:r,line:t}},n)}var Yt={},ou={};Object.defineProperty(ou,"__esModule",{value:!0});ou.default=void 0;var XD=Ge(),VW=XD;const{react:qW}=XD,{cloneNode:KW,jsxExpressionContainer:WW,variableDeclaration:HW,variableDeclarator:GW}=VW,YW={ReferencedIdentifier(e,t){if(e.isJSXIdentifier()&&qW.isCompatTag(e.node.name)&&!e.parentPath.isJSXMemberExpression())return;if(e.node.name==="this"){let n=e.scope;do if(n.path.isFunction()&&!n.path.isArrowFunctionExpression())break;while(n=n.parent);n&&t.breakOnScopePaths.push(n.path)}const r=e.scope.getBinding(e.node.name);if(r){for(const n of r.constantViolations)if(n.scope!==r.path.scope){t.mutableBinding=!0,e.stop();return}r===t.scope.getBinding(e.node.name)&&(t.bindings[e.node.name]=r)}}};class XW{constructor(t,r){this.breakOnScopePaths=void 0,this.bindings=void 0,this.mutableBinding=void 0,this.scopes=void 0,this.scope=void 0,this.path=void 0,this.attachAfter=void 0,this.breakOnScopePaths=[],this.bindings={},this.mutableBinding=!1,this.scopes=[],this.scope=r,this.path=t,this.attachAfter=!1}isCompatibleScope(t){for(const r of Object.keys(this.bindings)){const n=this.bindings[r];if(!t.bindingIdentifierEquals(r,n.identifier))return!1}return!0}getCompatibleScopes(){let t=this.path.scope;do{if(this.isCompatibleScope(t))this.scopes.push(t);else break;if(this.breakOnScopePaths.includes(t.path))break}while(t=t.parent)}getAttachmentPath(){let t=this._getAttachmentPath();if(!t)return;let r=t.scope;if(r.path===t&&(r=t.scope.parent),r.path.isProgram()||r.path.isFunction())for(const n of Object.keys(this.bindings)){if(!r.hasOwnBinding(n))continue;const i=this.bindings[n];if(i.kind==="param"||i.path.parentKey==="params")continue;if(this.getAttachmentParentForPath(i.path).key>=t.key){this.attachAfter=!0,t=i.path;for(const a of i.constantViolations)this.getAttachmentParentForPath(a).key>t.key&&(t=a)}}return t}_getAttachmentPath(){const r=this.scopes.pop();if(r){if(r.path.isFunction())if(this.hasOwnParamBindings(r)){if(this.scope===r)return;const n=r.path.get("body").get("body");for(let i=0;i<n.length;i++)if(!n[i].node._blockHoist)return n[i]}else return this.getNextScopeAttachmentParent();else if(r.path.isProgram())return this.getNextScopeAttachmentParent()}}getNextScopeAttachmentParent(){const t=this.scopes.pop();if(t)return this.getAttachmentParentForPath(t.path)}getAttachmentParentForPath(t){do if(!t.parentPath||Array.isArray(t.container)&&t.isStatement())return t;while(t=t.parentPath)}hasOwnParamBindings(t){for(const r of Object.keys(this.bindings)){if(!t.hasOwnBinding(r))continue;const n=this.bindings[r];if(n.kind==="param"&&n.constant)return!0}return!1}run(){if(this.path.traverse(YW,this),this.mutableBinding)return;this.getCompatibleScopes();const t=this.getAttachmentPath();if(!t||t.getFunctionParent()===this.path.getFunctionParent())return;let r=t.scope.generateUidIdentifier("ref");const n=GW(r,this.path.node),i=this.attachAfter?"insertAfter":"insertBefore",[s]=t[i]([t.isVariableDeclarator()?n:HW("var",[n])]),a=this.path.parentPath;return a.isJSXElement()&&this.path.container===a.node.children&&(r=WW(r)),this.path.replaceWith(KW(r)),t.isVariableDeclarator()?s.get("init"):s.get("declarations.0.init")}}ou.default=XW;var Rr={},uu={};Object.defineProperty(uu,"__esModule",{value:!0});uu.hooks=void 0;uu.hooks=[function(e,t){if(e.key==="test"&&(t.isWhile()||t.isSwitchCase())||e.key==="declaration"&&t.isExportDeclaration()||e.key==="body"&&t.isLabeledStatement()||e.listKey==="declarations"&&t.isVariableDeclaration()&&t.node.declarations.length===1||e.key==="expression"&&t.isExpressionStatement())return t.remove(),!0},function(e,t){if(t.isSequenceExpression()&&t.node.expressions.length===1)return t.replaceWith(t.node.expressions[0]),!0},function(e,t){if(t.isBinary())return e.key==="left"?t.replaceWith(t.node.right):t.replaceWith(t.node.left),!0},function(e,t){if(t.isIfStatement()&&e.key==="consequent"||e.key==="body"&&(t.isLoop()||t.isArrowFunctionExpression()))return e.replaceWith({type:"BlockStatement",body:[]}),!0}];var Xd;function Bf(){if(Xd)return Rr;Xd=1,Object.defineProperty(Rr,"__esModule",{value:!0}),Rr._assertUnremoved=f,Rr._callRemovalHooks=u,Rr._markRemoved=c,Rr._remove=l,Rr._removeFromScope=o,Rr.remove=a;var e=uu,t=_t,r=zD(),n=mi(),i=Ge();const{getBindingIdentifiers:s}=i;function a(){var p;if(f.call(this),this.resync(),u.call(this)){c.call(this);return}(p=this.opts)!=null&&p.noScope||o.call(this),this.shareCommentsWithSiblings(),l.call(this),c.call(this)}function o(){const p=s(this.node,!1,!1,!0);Object.keys(p).forEach(h=>this.scope.removeBinding(h))}function u(){if(this.parentPath){for(const p of e.hooks)if(p(this,this.parentPath))return!0}}function l(){Array.isArray(this.container)?(this.container.splice(this.key,1),this.updateSiblingKeys(this.key,-1)):r._replaceWith.call(this,null)}function c(){this._traverseFlags|=n.SHOULD_SKIP|n.REMOVED,this.parent&&(0,t.getCachedPaths)(this.hub,this.parent).delete(this.node),this.node=null}function f(){if(this.removed)throw this.buildCodeFrameError("NodePath has been removed so is read-only.")}return Rr}var Jd;function JD(){if(Jd)return Yt;Jd=1,Object.defineProperty(Yt,"__esModule",{value:!0}),Yt._containerInsert=$,Yt._containerInsertAfter=P,Yt._containerInsertBefore=w,Yt._verifyNodeList=B,Yt.hoist=H,Yt.insertAfter=S,Yt.insertBefore=C,Yt.pushContainer=N,Yt.unshiftContainer=x,Yt.updateSiblingKeys=A;var e=_t,t=ou,r=mi(),n=Zs(),i=Bf(),s=Ge();const{arrowFunctionExpression:a,assertExpression:o,assignmentExpression:u,blockStatement:l,callExpression:c,cloneNode:f,expressionStatement:p,isAssignmentExpression:h,isCallExpression:d,isExportNamedDeclaration:m,isExpression:D,isIdentifier:g,isSequenceExpression:y,isSuper:b,thisExpression:O}=s;function C(T){i._assertUnremoved.call(this);const _=B.call(this,T),{parentPath:R,parent:Q}=this;if(R.isExpressionStatement()||R.isLabeledStatement()||m(Q)||R.isExportDefaultDeclaration()&&this.isDeclaration())return R.insertBefore(_);if(this.isNodeType("Expression")&&!this.isJSXElement()||R.isForStatement()&&this.key==="init")return this.node&&_.push(this.node),this.replaceExpressionWithStatements(_);if(Array.isArray(this.container))return w.call(this,_);if(this.isStatementOrBlock()){const ne=this.node,X=ne&&(!this.isExpressionStatement()||ne.expression!=null);return this.replaceWith(l(X?[ne]:[])),this.unshiftContainer("body",_)}else throw new Error("We don't know what to do with this node type. We were previously a Statement but we can't fit in here?")}function $(T,_){this.updateSiblingKeys(T,_.length);const R=[];this.container.splice(T,0,..._);for(let X=0;X<_.length;X++){var Q;const ae=T+X,ie=this.getSibling(ae);R.push(ie),(Q=this.context)!=null&&Q.queue&&ie.pushContext(this.context)}const ne=n._getQueueContexts.call(this);for(const X of R){X.setScope(),X.debug("Inserted.");for(const ae of ne)ae.maybeQueue(X,!0)}return R}function w(T){return $.call(this,this.key,T)}function P(T){return $.call(this,this.key+1,T)}const I=T=>T[T.length-1];function L(T){return y(T.parent)&&(I(T.parent.expressions)!==T.node||L(T.parentPath))}function F(T,_){if(!h(T)||!g(T.left))return!1;const R=_.getBlockParent();return R.hasOwnBinding(T.left.name)&&R.getOwnBinding(T.left.name).constantViolations.length<=1}function S(T){if(i._assertUnremoved.call(this),this.isSequenceExpression())return I(this.get("expressions")).insertAfter(T);const _=B.call(this,T),{parentPath:R,parent:Q}=this;if(R.isExpressionStatement()||R.isLabeledStatement()||m(Q)||R.isExportDefaultDeclaration()&&this.isDeclaration())return R.insertAfter(_.map(ne=>D(ne)?p(ne):ne));if(this.isNodeType("Expression")&&!this.isJSXElement()&&!R.isJSXElement()||R.isForStatement()&&this.key==="init"){const ne=this;if(ne.node){const X=ne.node;let{scope:ae}=this;if(ae.path.isPattern())return o(X),ne.replaceWith(c(a([],X),[])),ne.get("callee.body").insertAfter(_),[ne];if(L(ne))_.unshift(X);else if(d(X)&&b(X.callee))_.unshift(X),_.push(O());else if(F(X,ae))_.unshift(X),_.push(f(X.left));else if(ae.isPure(X,!0))_.push(X);else{R.isMethod({computed:!0,key:X})&&(ae=ae.parent);const ie=ae.generateDeclaredUidIdentifier();_.unshift(p(u("=",f(ie),X))),_.push(p(f(ie)))}}return this.replaceExpressionWithStatements(_)}else{if(Array.isArray(this.container))return P.call(this,_);if(this.isStatementOrBlock()){const ne=this.node,X=ne&&(!this.isExpressionStatement()||ne.expression!=null);return this.replaceWith(l(X?[ne]:[])),this.pushContainer("body",_)}else throw new Error("We don't know what to do with this node type. We were previously a Statement but we can't fit in here?")}}function A(T,_){if(!this.parent)return;const R=(0,e.getCachedPaths)(this.hub,this.parent)||[];for(const[,Q]of R)typeof Q.key=="number"&&Q.key>=T&&(Q.key+=_)}function B(T){if(!T)return[];Array.isArray(T)||(T=[T]);for(let _=0;_<T.length;_++){const R=T[_];let Q;if(R?typeof R!="object"?Q="contains a non-object node":R.type?R instanceof r.default&&(Q="has a NodePath when it expected a raw object"):Q="without a type":Q="has falsy node",Q){const ne=Array.isArray(R)?"array":typeof R;throw new Error(`Node list ${Q} with the index of ${_} and type of ${ne}`)}}return T}function x(T,_){i._assertUnremoved.call(this),_=B.call(this,_);const R=r.default.get({parentPath:this,parent:this.node,container:this.node[T],listKey:T,key:0}).setContext(this.context);return w.call(R,_)}function N(T,_){i._assertUnremoved.call(this);const R=B.call(this,_),Q=this.node[T];return r.default.get({parentPath:this,parent:this.node,container:Q,listKey:T,key:Q.length}).setContext(this.context).replaceWithMultiple(R)}function H(T=this.scope){return new t.default(this,T).run()}return Yt}var zd;function zD(){if(zd)return kr;zd=1,Object.defineProperty(kr,"__esModule",{value:!0}),kr._replaceWith=ne,kr.replaceExpressionWithStatements=X,kr.replaceInline=ie,kr.replaceWith=Q,kr.replaceWithMultiple=_,kr.replaceWithSourceString=R;var e=Ys,t=hu(),r=mi(),n=_t,i=JD(),s=Ui,a=Ge();const{FUNCTION_TYPES:o,arrowFunctionExpression:u,assignmentExpression:l,awaitExpression:c,blockStatement:f,buildUndefinedNode:p,callExpression:h,cloneNode:d,conditionalExpression:m,expressionStatement:D,getBindingIdentifiers:g,identifier:y,inheritLeadingComments:b,inheritTrailingComments:O,inheritsComments:C,isBlockStatement:$,isEmptyStatement:w,isExpression:P,isExpressionStatement:I,isIfStatement:L,isProgram:F,isStatement:S,isVariableDeclaration:A,removeComments:B,returnStatement:x,sequenceExpression:N,validate:H,yieldExpression:T}=a;function _(te){var Y;this.resync(),te=i._verifyNodeList.call(this,te),b(te[0],this.node),O(te[te.length-1],this.node),(Y=(0,n.getCachedPaths)(this.hub,this.parent))==null||Y.delete(this.node),this.node=this.container[this.key]=null;const re=this.insertAfter(te);return this.node?this.requeue():this.remove(),re}function R(te){this.resync();let Y;try{te=`(${te})`,Y=(0,s.parse)(te)}catch(De){const de=De.loc;throw de&&(De.message+=` - make sure this is an expression.
|
|
137
|
+
`+(0,e.codeFrameColumns)(te,{start:{line:de.line,column:de.column+1}}),De.code="BABEL_REPLACE_SOURCE_ERROR"),De}const re=Y.program.body[0].expression;return t.default.removeProperties(re),this.replaceWith(re)}function Q(te){if(this.resync(),this.removed)throw new Error("You can't replace this node, we've already removed it");let Y=te instanceof r.default?te.node:te;if(!Y)throw new Error("You passed `path.replaceWith()` a falsy node, use `path.remove()` instead");if(this.node===Y)return[this];if(this.isProgram()&&!F(Y))throw new Error("You can only replace a Program root node with another Program node");if(Array.isArray(Y))throw new Error("Don't use `path.replaceWith()` with an array of nodes, use `path.replaceWithMultiple()`");if(typeof Y=="string")throw new Error("Don't use `path.replaceWith()` with a source string, use `path.replaceWithSourceString()`");let re="";if(this.isNodeType("Statement")&&P(Y)&&!this.canHaveVariableDeclarationOrExpression()&&!this.canSwapBetweenExpressionAndStatement(Y)&&!this.parentPath.isExportDefaultDeclaration()&&(Y=D(Y),re="expression"),this.isNodeType("Expression")&&S(Y)&&!this.canHaveVariableDeclarationOrExpression()&&!this.canSwapBetweenExpressionAndStatement(Y))return this.replaceExpressionWithStatements([Y]);const De=this.node;return De&&(C(Y,De),B(De)),ne.call(this,Y),this.type=Y.type,this.setScope(),this.requeue(),[re?this.get(re):this]}function ne(te){var Y;if(!this.container)throw new ReferenceError("Container is falsy");this.inList?H(this.parent,this.key,[te]):H(this.parent,this.key,te),this.debug(`Replace with ${te==null?void 0:te.type}`),(Y=(0,n.getCachedPaths)(this.hub,this.parent))==null||Y.set(te,this).delete(this.node),this.node=this.container[this.key]=te}function X(te){this.resync();const Y=[],re=ae(te,Y);if(re){for(const ge of Y)this.scope.push({id:ge});return this.replaceWith(re)[0].get("expressions")}const De=this.getFunctionParent(),de=De==null?void 0:De.is("async"),Ce=De==null?void 0:De.is("generator"),Oe=u([],f(te));this.replaceWith(h(Oe,[]));const Te=this.get("callee");Te.get("body").scope.hoistVariables(ge=>this.scope.push({id:ge}));const Be=Te.getCompletionRecords();for(const ge of Be){if(!ge.isExpressionStatement())continue;const Ae=ge.findParent(st=>st.isLoop());if(Ae){let st=Ae.getData("expressionReplacementReturnUid");st?st=y(st.name):(st=Te.scope.generateDeclaredUidIdentifier("ret"),Te.get("body").pushContainer("body",x(d(st))),Ae.setData("expressionReplacementReturnUid",st)),ge.get("expression").replaceWith(l("=",d(st),ge.node.expression))}else ge.replaceWith(x(ge.node.expression))}Te.arrowFunctionToExpression();const ze=Te,_e=de&&t.default.hasType(this.get("callee.body").node,"AwaitExpression",o),Ne=Ce&&t.default.hasType(this.get("callee.body").node,"YieldExpression",o);return _e&&(ze.set("async",!0),Ne||this.replaceWith(c(this.node))),Ne&&(ze.set("generator",!0),this.replaceWith(T(this.node,!0))),ze.get("body.body")}function ae(te,Y){const re=[];let De=!0;for(const de of te)if(w(de)||(De=!1),P(de))re.push(de);else if(I(de))re.push(de.expression);else if(A(de)){if(de.kind!=="var")return;for(const Ce of de.declarations){const Oe=g(Ce);for(const Te of Object.keys(Oe))Y.push(d(Oe[Te]));Ce.init&&re.push(l("=",Ce.id,Ce.init))}De=!0}else if(L(de)){const Ce=de.consequent?ae([de.consequent],Y):p(),Oe=de.alternate?ae([de.alternate],Y):p();if(!Ce||!Oe)return;re.push(m(de.test,Ce,Oe))}else if($(de)){const Ce=ae(de.body,Y);if(!Ce)return;re.push(Ce)}else if(w(de))te.indexOf(de)===0&&(De=!0);else return;return De&&re.push(p()),re.length===1?re[0]:N(re)}function ie(te){if(this.resync(),Array.isArray(te))if(Array.isArray(this.container)){te=i._verifyNodeList.call(this,te);const Y=i._containerInsertAfter.call(this,te);return this.remove(),Y}else return this.replaceWithMultiple(te);else return this.replaceWith(te)}return kr}var lu={};Object.defineProperty(lu,"__esModule",{value:!0});lu.evaluate=nH;lu.evaluateTruthy=tH;const JW=["Number","String","Math"],zW=["isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent",null,null],QW=["random"];function Qd(e){return JW.includes(e)}function ZW(e){return zW.includes(e)}function eH(e){return QW.includes(e)}function tH(){const e=this.evaluate();if(e.confident)return!!e.value}function Ur(e,t){t.confident&&(t.deoptPath=e,t.confident=!1)}const Zd=new Map([["undefined",void 0],["Infinity",1/0],["NaN",NaN]]);function Rt(e,t){const{node:r}=e,{seen:n}=t;if(n.has(r)){const i=n.get(r);if(i.resolved)return i.value;Ur(e,t);return}else{const i={resolved:!1};n.set(r,i);const s=rH(e,t);return t.confident&&(i.resolved=!0,i.value=s),s}}function rH(e,t){if(t.confident){if(e.isSequenceExpression()){const r=e.get("expressions");return Rt(r[r.length-1],t)}if(e.isStringLiteral()||e.isNumericLiteral()||e.isBooleanLiteral())return e.node.value;if(e.isNullLiteral())return null;if(e.isTemplateLiteral())return em(e,e.node.quasis,t);if(e.isTaggedTemplateExpression()&&e.get("tag").isMemberExpression()){const r=e.get("tag.object"),{node:{name:n}}=r,i=e.get("tag.property");if(r.isIdentifier()&&n==="String"&&!e.scope.getBinding(n)&&i.isIdentifier()&&i.node.name==="raw")return em(e,e.node.quasi.quasis,t,!0)}if(e.isConditionalExpression()){const r=Rt(e.get("test"),t);return t.confident?Rt(r?e.get("consequent"):e.get("alternate"),t):void 0}if(e.isExpressionWrapper())return Rt(e.get("expression"),t);if(e.isMemberExpression()&&!e.parentPath.isCallExpression({callee:e.node})){const r=e.get("property"),n=e.get("object");if(n.isLiteral()){const i=n.node.value,s=typeof i;let a=null;if(e.node.computed){if(a=Rt(r,t),!t.confident)return}else r.isIdentifier()&&(a=r.node.name);if((s==="number"||s==="string")&&a!=null&&(typeof a=="number"||typeof a=="string"))return i[a]}}if(e.isReferencedIdentifier()){const r=e.scope.getBinding(e.node.name);if(r){if(r.constantViolations.length>0||e.node.start<r.path.node.end){Ur(r.path,t);return}if(r.hasValue)return r.value}const n=e.node.name;if(Zd.has(n)){if(!r)return Zd.get(n);Ur(r.path,t);return}const i=e.resolve();if(i===e){Ur(e,t);return}else return Rt(i,t)}if(e.isUnaryExpression({prefix:!0})){if(e.node.operator==="void")return;const r=e.get("argument");if(e.node.operator==="typeof"&&(r.isFunction()||r.isClass()))return"function";const n=Rt(r,t);if(!t.confident)return;switch(e.node.operator){case"!":return!n;case"+":return+n;case"-":return-n;case"~":return~n;case"typeof":return typeof n}}if(e.isArrayExpression()){const r=[],n=e.get("elements");for(const i of n){const s=i.evaluate();if(s.confident)r.push(s.value);else{Ur(s.deopt,t);return}}return r}if(e.isObjectExpression()){const r={},n=e.get("properties");for(const i of n){if(i.isObjectMethod()||i.isSpreadElement()){Ur(i,t);return}const s=i.get("key");let a;if(i.node.computed){if(a=s.evaluate(),!a.confident){Ur(a.deopt,t);return}a=a.value}else s.isIdentifier()?a=s.node.name:a=s.node.value;let u=i.get("value").evaluate();if(!u.confident){Ur(u.deopt,t);return}u=u.value,r[a]=u}return r}if(e.isLogicalExpression()){const r=t.confident,n=Rt(e.get("left"),t),i=t.confident;t.confident=r;const s=Rt(e.get("right"),t),a=t.confident;switch(e.node.operator){case"||":return t.confident=i&&(!!n||a),t.confident?n||s:void 0;case"&&":return t.confident=i&&(!n||a),t.confident?n&&s:void 0;case"??":return t.confident=i&&(n!=null||a),t.confident?n??s:void 0}}if(e.isBinaryExpression()){const r=Rt(e.get("left"),t);if(!t.confident)return;const n=Rt(e.get("right"),t);if(!t.confident)return;switch(e.node.operator){case"-":return r-n;case"+":return r+n;case"/":return r/n;case"*":return r*n;case"%":return r%n;case"**":return Math.pow(r,n);case"<":return r<n;case">":return r>n;case"<=":return r<=n;case">=":return r>=n;case"==":return r==n;case"!=":return r!=n;case"===":return r===n;case"!==":return r!==n;case"|":return r|n;case"&":return r&n;case"^":return r^n;case"<<":return r<<n;case">>":return r>>n;case">>>":return r>>>n}}if(e.isCallExpression()){const r=e.get("callee");let n,i;if(r.isIdentifier()&&!e.scope.getBinding(r.node.name)&&(Qd(r.node.name)||ZW(r.node.name))&&(i=Jr.commonjsGlobal[r.node.name]),r.isMemberExpression()){const s=r.get("object"),a=r.get("property");if(s.isIdentifier()&&a.isIdentifier()&&Qd(s.node.name)&&!eH(a.node.name)){n=Jr.commonjsGlobal[s.node.name];const o=a.node.name;hasOwnProperty.call(n,o)&&(i=n[o])}if(s.isLiteral()&&a.isIdentifier()){const o=typeof s.node.value;(o==="string"||o==="number")&&(n=s.node.value,i=n[a.node.name])}}if(i){const s=e.get("arguments").map(a=>Rt(a,t));return t.confident?i.apply(n,s):void 0}}Ur(e,t)}}function em(e,t,r,n=!1){let i="",s=0;const a=e.isTemplateLiteral()?e.get("expressions"):e.get("quasi.expressions");for(const o of t){if(!r.confident)break;i+=n?o.value.raw:o.value.cooked;const u=a[s++];u&&(i+=String(Rt(u,r)))}if(r.confident)return i}function nH(){const e={confident:!0,deoptPath:null,seen:new Map};let t=Rt(this,e);return e.confident||(t=void 0),{confident:e.confident,deopt:e.deoptPath,value:t}}var vr={},Kt={},er={};Object.defineProperty(er,"__esModule",{value:!0});er.statements=er.statement=er.smart=er.program=er.expression=void 0;var iH=Ge();const{assertExpressionStatement:sH}=iH;function Lf(e){return{code:t=>`/* @babel/template */;
|
|
138
|
+
${t}`,validate:()=>{},unwrap:t=>e(t.program.body.slice(1))}}er.smart=Lf(e=>e.length>1?e:e[0]);er.statements=Lf(e=>e);er.statement=Lf(e=>{if(e.length===0)throw new Error("Found nothing to return.");if(e.length>1)throw new Error("Found multiple statements but wanted one");return e[0]});const aH=er.expression={code:e=>`(
|
|
139
|
+
${e}
|
|
140
|
+
)`,validate:e=>{if(e.program.body.length>1)throw new Error("Found multiple statements but wanted one");if(aH.unwrap(e).start===0)throw new Error("Parse result included parens.")},unwrap:({program:e})=>{const[t]=e.body;return sH(t),t.expression}};er.program={code:e=>e,validate:()=>{},unwrap:e=>e.program};var kf={},di={};Object.defineProperty(di,"__esModule",{value:!0});di.merge=lH;di.normalizeReplacements=fH;di.validate=cH;const oH=["placeholderWhitelist","placeholderPattern","preserveComments","syntacticPlaceholders"];function uH(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}function lH(e,t){const{placeholderWhitelist:r=e.placeholderWhitelist,placeholderPattern:n=e.placeholderPattern,preserveComments:i=e.preserveComments,syntacticPlaceholders:s=e.syntacticPlaceholders}=t;return{parser:Object.assign({},e.parser,t.parser),placeholderWhitelist:r,placeholderPattern:n,preserveComments:i,syntacticPlaceholders:s}}function cH(e){if(e!=null&&typeof e!="object")throw new Error("Unknown template options.");const t=e||{},{placeholderWhitelist:r,placeholderPattern:n,preserveComments:i,syntacticPlaceholders:s}=t,a=uH(t,oH);if(r!=null&&!(r instanceof Set))throw new Error("'.placeholderWhitelist' must be a Set, null, or undefined");if(n!=null&&!(n instanceof RegExp)&&n!==!1)throw new Error("'.placeholderPattern' must be a RegExp, false, null, or undefined");if(i!=null&&typeof i!="boolean")throw new Error("'.preserveComments' must be a boolean, null, or undefined");if(s!=null&&typeof s!="boolean")throw new Error("'.syntacticPlaceholders' must be a boolean, null, or undefined");if(s===!0&&(r!=null||n!=null))throw new Error("'.placeholderWhitelist' and '.placeholderPattern' aren't compatible with '.syntacticPlaceholders: true'");return{parser:a,placeholderWhitelist:r||void 0,placeholderPattern:n??void 0,preserveComments:i??void 0,syntacticPlaceholders:s??void 0}}function fH(e){if(Array.isArray(e))return e.reduce((t,r,n)=>(t["$"+n]=r,t),{});if(typeof e=="object"||e==null)return e||void 0;throw new Error("Template replacements must be an array, object, null, or undefined")}var Rf={},cu={};Object.defineProperty(cu,"__esModule",{value:!0});cu.default=CH;var pH=Ge(),hH=Ui,dH=Ys;const{isCallExpression:mH,isExpressionStatement:yH,isFunction:DH,isIdentifier:gH,isJSXIdentifier:EH,isNewExpression:bH,isPlaceholder:Ra,isStatement:TH,isStringLiteral:tm,removePropertiesDeep:SH,traverse:vH}=pH,AH=/^[_$A-Z0-9]+$/;function CH(e,t,r){const{placeholderWhitelist:n,placeholderPattern:i,preserveComments:s,syntacticPlaceholders:a}=r,o=FH(t,r.parser,a);SH(o,{preserveComments:s}),e.validate(o);const u={syntactic:{placeholders:[],placeholderNames:new Set},legacy:{placeholders:[],placeholderNames:new Set},placeholderWhitelist:n,placeholderPattern:i,syntacticPlaceholders:a};return vH(o,PH,u),Object.assign({ast:o},u.syntactic.placeholders.length?u.syntactic:u.legacy)}function PH(e,t,r){var n;let i,s=r.syntactic.placeholders.length>0;if(Ra(e)){if(r.syntacticPlaceholders===!1)throw new Error("%%foo%%-style placeholders can't be used when '.syntacticPlaceholders' is false.");i=e.name.name,s=!0}else{if(s||r.syntacticPlaceholders)return;if(gH(e)||EH(e))i=e.name;else if(tm(e))i=e.value;else return}if(s&&(r.placeholderPattern!=null||r.placeholderWhitelist!=null))throw new Error("'.placeholderWhitelist' and '.placeholderPattern' aren't compatible with '.syntacticPlaceholders: true'");if(!s&&(r.placeholderPattern===!1||!(r.placeholderPattern||AH).test(i))&&!((n=r.placeholderWhitelist)!=null&&n.has(i)))return;t=t.slice();const{node:a,key:o}=t[t.length-1];let u;tm(e)||Ra(e,{expectedNode:"StringLiteral"})?u="string":bH(a)&&o==="arguments"||mH(a)&&o==="arguments"||DH(a)&&o==="params"?u="param":yH(a)&&!Ra(e)?(u="statement",t=t.slice(0,-1)):TH(e)&&Ra(e)?u="statement":u="other";const{placeholders:l,placeholderNames:c}=s?r.syntactic:r.legacy;l.push({name:i,type:u,resolve:f=>xH(f,t),isDuplicate:c.has(i)}),c.add(i)}function xH(e,t){let r=e;for(let s=0;s<t.length-1;s++){const{key:a,index:o}=t[s];o===void 0?r=r[a]:r=r[a][o]}const{key:n,index:i}=t[t.length-1];return{parent:r,key:n,index:i}}function FH(e,t,r){const n=(t.plugins||[]).slice();r!==!1&&n.push("placeholders"),t=Object.assign({allowReturnOutsideFunction:!0,allowSuperOutsideMethod:!0,sourceType:"module"},t,{plugins:n});try{return(0,hH.parse)(e,t)}catch(i){const s=i.loc;throw s&&(i.message+=`
|
|
141
|
+
`+(0,dH.codeFrameColumns)(e,{start:s}),i.code="BABEL_TEMPLATE_PARSE_ERROR"),i}}var fu={};Object.defineProperty(fu,"__esModule",{value:!0});fu.default=BH;var _H=Ge();const{blockStatement:wH,cloneNode:Ql,emptyStatement:IH,expressionStatement:cl,identifier:Ma,isStatement:rm,isStringLiteral:OH,stringLiteral:NH,validate:nm}=_H;function BH(e,t){const r=Ql(e.ast);return t&&(e.placeholders.forEach(n=>{if(!hasOwnProperty.call(t,n.name)){const i=n.name;throw new Error(`Error: No substitution given for "${i}". If this is not meant to be a
|
|
142
|
+
placeholder you may want to consider passing one of the following options to @babel/template:
|
|
143
|
+
- { placeholderPattern: false, placeholderWhitelist: new Set(['${i}'])}
|
|
144
|
+
- { placeholderPattern: /^${i}$/ }`)}}),Object.keys(t).forEach(n=>{if(!e.placeholderNames.has(n))throw new Error(`Unknown substitution "${n}" given`)})),e.placeholders.slice().reverse().forEach(n=>{try{LH(n,r,t&&t[n.name]||null)}catch(i){throw i.message=`@babel/template placeholder "${n.name}": ${i.message}`,i}}),r}function LH(e,t,r){e.isDuplicate&&(Array.isArray(r)?r=r.map(o=>Ql(o)):typeof r=="object"&&(r=Ql(r)));const{parent:n,key:i,index:s}=e.resolve(t);if(e.type==="string"){if(typeof r=="string"&&(r=NH(r)),!r||!OH(r))throw new Error("Expected string substitution")}else if(e.type==="statement")s===void 0?r?Array.isArray(r)?r=wH(r):typeof r=="string"?r=cl(Ma(r)):rm(r)||(r=cl(r)):r=IH():r&&!Array.isArray(r)&&(typeof r=="string"&&(r=Ma(r)),rm(r)||(r=cl(r)));else if(e.type==="param"){if(typeof r=="string"&&(r=Ma(r)),s===void 0)throw new Error("Assertion failure.")}else if(typeof r=="string"&&(r=Ma(r)),Array.isArray(r))throw new Error("Cannot replace single expression with an array.");function a(o,u,l){const c=o[u];o[u]=l,c.type==="Identifier"&&(c.typeAnnotation&&(l.typeAnnotation=c.typeAnnotation),c.optional&&(l.optional=c.optional),c.decorators&&(l.decorators=c.decorators))}if(s===void 0)nm(n,i,r),a(n,i,r);else{const o=n[i].slice();e.type==="statement"||e.type==="param"?r==null?o.splice(s,1):Array.isArray(r)?o.splice(s,1,...r):a(o,s,r):a(o,s,r),nm(n,i,o),n[i]=o}}Object.defineProperty(Rf,"__esModule",{value:!0});Rf.default=jH;var kH=di,RH=cu,MH=fu;function jH(e,t,r){t=e.code(t);let n;return i=>{const s=(0,kH.normalizeReplacements)(i);return n||(n=(0,RH.default)(e,t,r)),e.unwrap((0,MH.default)(n,s))}}var Mf={};Object.defineProperty(Mf,"__esModule",{value:!0});Mf.default=qH;var $H=di,UH=cu,VH=fu;function qH(e,t,r){const{metadata:n,names:i}=KH(e,t,r);return s=>{const a={};return s.forEach((o,u)=>{a[i[u]]=o}),o=>{const u=(0,$H.normalizeReplacements)(o);return u&&Object.keys(u).forEach(l=>{if(hasOwnProperty.call(a,l))throw new Error("Unexpected replacement overlap.")}),e.unwrap((0,VH.default)(n,u?Object.assign(u,a):a))}}}function KH(e,t,r){let n="BABEL_TPL$";const i=t.join("");do n="$$"+n;while(i.includes(n));const{names:s,code:a}=WH(t,n);return{metadata:(0,UH.default)(e,e.code(a),{parser:r.parser,placeholderWhitelist:new Set(s.concat(r.placeholderWhitelist?Array.from(r.placeholderWhitelist):[])),placeholderPattern:r.placeholderPattern,preserveComments:r.preserveComments,syntacticPlaceholders:r.syntacticPlaceholders}),names:s}}function WH(e,t){const r=[];let n=e[0];for(let i=1;i<e.length;i++){const s=`${t}${i-1}`;r.push(s),n+=s+e[i]}return{names:r,code:n}}Object.defineProperty(kf,"__esModule",{value:!0});kf.default=QD;var xr=di,im=Rf,sm=Mf;const am=(0,xr.validate)({placeholderPattern:!1});function QD(e,t){const r=new WeakMap,n=new WeakMap,i=t||(0,xr.validate)(null);return Object.assign((s,...a)=>{if(typeof s=="string"){if(a.length>1)throw new Error("Unexpected extra params.");return om((0,im.default)(e,s,(0,xr.merge)(i,(0,xr.validate)(a[0]))))}else if(Array.isArray(s)){let o=r.get(s);return o||(o=(0,sm.default)(e,s,i),r.set(s,o)),om(o(a))}else if(typeof s=="object"&&s){if(a.length>0)throw new Error("Unexpected extra params.");return QD(e,(0,xr.merge)(i,(0,xr.validate)(s)))}throw new Error(`Unexpected template param ${typeof s}`)},{ast:(s,...a)=>{if(typeof s=="string"){if(a.length>1)throw new Error("Unexpected extra params.");return(0,im.default)(e,s,(0,xr.merge)((0,xr.merge)(i,(0,xr.validate)(a[0])),am))()}else if(Array.isArray(s)){let o=n.get(s);return o||(o=(0,sm.default)(e,s,(0,xr.merge)(i,am)),n.set(s,o)),o(a)()}throw new Error(`Unexpected template param ${typeof s}`)}})}function om(e){let t="";try{throw new Error}catch(r){r.stack&&(t=r.stack.split(`
|
|
145
|
+
`).slice(3).join(`
|
|
146
|
+
`))}return r=>{try{return e(r)}catch(n){throw n.stack+=`
|
|
147
|
+
=============
|
|
148
|
+
${t}`,n}}}Object.defineProperty(Kt,"__esModule",{value:!0});Kt.statements=Kt.statement=Kt.smart=Kt.program=Kt.expression=Kt.default=void 0;var Js=er,zs=kf;const fl=Kt.smart=(0,zs.default)(Js.smart),HH=Kt.statement=(0,zs.default)(Js.statement),GH=Kt.statements=(0,zs.default)(Js.statements),YH=Kt.expression=(0,zs.default)(Js.expression),XH=Kt.program=(0,zs.default)(Js.program);Kt.default=Object.assign(fl.bind(void 0),{smart:fl,statement:HH,statements:GH,expression:YH,program:XH,ast:fl.ast});var um;function JH(){if(um)return vr;um=1,Object.defineProperty(vr,"__esModule",{value:!0}),vr.arrowFunctionToExpression=Y,vr.ensureBlock=ae,vr.ensureFunctionName=Ue,vr.splitExportDeclaration=st,vr.toComputedKey=X,vr.unwrapFunctionEnvironment=ie;var e=Ge(),t=Kt,r=zo();const{arrowFunctionExpression:n,assignmentExpression:i,binaryExpression:s,blockStatement:a,callExpression:o,conditionalExpression:u,expressionStatement:l,identifier:c,isIdentifier:f,jsxIdentifier:p,logicalExpression:h,LOGICAL_OPERATORS:d,memberExpression:m,metaProperty:D,numericLiteral:g,objectExpression:y,restElement:b,returnStatement:O,sequenceExpression:C,spreadElement:$,stringLiteral:w,super:P,thisExpression:I,toExpression:L,unaryExpression:F,toBindingIdentifierName:S,isFunction:A,isAssignmentPattern:B,isRestElement:x,getFunctionName:N,cloneNode:H,variableDeclaration:T,variableDeclarator:_,exportNamedDeclaration:R,exportSpecifier:Q,inherits:ne}=e;function X(){let G;if(this.isMemberExpression())G=this.node.property;else if(this.isProperty()||this.isMethod())G=this.node.key;else throw new ReferenceError("todo");return this.node.computed||f(G)&&(G=w(G.name)),G}function ae(){const G=this.get("body"),V=G.node;if(Array.isArray(G))throw new Error("Can't convert array path to a block statement");if(!V)throw new Error("Can't convert node without a body");if(G.isBlockStatement())return V;const E=[];let j="body",z,se;G.isStatement()?(se="body",z=0,E.push(G.node)):(j+=".body.0",this.isFunction()?(z="argument",E.push(O(G.node))):(z="expression",E.push(l(G.node)))),this.node.body=a(E);const oe=this.get(j);return G.setup(oe,se?oe.node[se]:oe.node,se,z),this.node}vr.arrowFunctionToShadowed=function(){this.isArrowFunctionExpression()&&this.arrowFunctionToExpression()};function ie(){if(!this.isArrowFunctionExpression()&&!this.isFunctionExpression()&&!this.isFunctionDeclaration())throw this.buildCodeFrameError("Can only unwrap the environment of a function.");De(this)}function te(G,V){G.node.type=V}function Y({allowInsertArrow:G=!0,allowInsertArrowWithRest:V=G,noNewArrows:E=!(j=>(j=arguments[0])==null?void 0:j.specCompliant)()}={}){if(!this.isArrowFunctionExpression())throw this.buildCodeFrameError("Cannot convert non-arrow function to a function expression.");let j=this;if(!E){var z;j=(z=j.ensureFunctionName(!1))!=null?z:j}const{thisBinding:se,fnPath:oe}=De(j,E,G,V);if(oe.ensureBlock(),te(oe,"FunctionExpression"),!E){const ce=se?null:oe.scope.generateUidIdentifier("arrowCheckId");return ce&&oe.parentPath.scope.push({id:ce,init:y([])}),oe.get("body").unshiftContainer("body",l(o(this.hub.addHelper("newArrowCheck"),[I(),c(ce?ce.name:se)]))),oe.replaceWith(o(m(oe.node,c("bind")),[ce?c(ce.name):I()])),oe.get("callee.object")}return oe}const re=(0,r.environmentVisitor)({CallExpression(G,{allSuperCalls:V}){G.get("callee").isSuper()&&V.push(G)}});function De(G,V=!0,E=!0,j=!0){let z,se=G.findParent(We=>{if(We.isArrowFunctionExpression()){var Re;return(Re=z)!=null||(z=We),!1}return We.isFunction()||We.isProgram()||We.isClassProperty({static:!1})||We.isClassPrivateProperty({static:!1})});const oe=se.isClassMethod({kind:"constructor"});if(se.isClassProperty()||se.isClassPrivateProperty())if(z)se=z;else if(E)G.replaceWith(o(n([],L(G.node)),[])),se=G.get("callee"),G=se.get("body");else throw G.buildCodeFrameError("Unable to transform arrow inside class property");const{thisPaths:ce,argumentsPaths:Pe,newTargetPaths:Ve,superProps:ue,superCalls:je}=Ae(G);if(oe&&je.length>0){if(!E)throw je[0].buildCodeFrameError("When using '@babel/plugin-transform-arrow-functions', it's not possible to compile `super()` in an arrow function without compiling classes.\nPlease add '@babel/plugin-transform-classes' to your Babel configuration.");if(!j)throw je[0].buildCodeFrameError("When using '@babel/plugin-transform-parameters', it's not possible to compile `super()` in an arrow function with default or rest parameters without compiling classes.\nPlease add '@babel/plugin-transform-classes' to your Babel configuration.");const We=[];se.traverse(re,{allSuperCalls:We});const Re=ze(se);We.forEach(W=>{const Se=c(Re);Se.loc=W.node.callee.loc,W.get("callee").replaceWith(Se)})}if(Pe.length>0){const We=Ne(se,"arguments",()=>{const Re=()=>c("arguments");return se.scope.path.isProgram()?u(s("===",F("typeof",Re()),w("undefined")),se.scope.buildUndefinedNode(),Re()):Re()});Pe.forEach(Re=>{const W=c(We);W.loc=Re.node.loc,Re.replaceWith(W)})}if(Ve.length>0){const We=Ne(se,"newtarget",()=>D(c("new"),c("target")));Ve.forEach(Re=>{const W=c(We);W.loc=Re.node.loc,Re.replaceWith(W)})}if(ue.length>0){if(!E)throw ue[0].buildCodeFrameError("When using '@babel/plugin-transform-arrow-functions', it's not possible to compile `super.prop` in an arrow function without compiling classes.\nPlease add '@babel/plugin-transform-classes' to your Babel configuration.");ue.reduce((Re,W)=>Re.concat(Ce(W)),[]).forEach(Re=>{const W=Re.node.computed?"":Re.get("property").node.name,Se=Re.parentPath,Qe=Se.isAssignmentExpression({left:Re.node}),ft=Se.isCallExpression({callee:Re.node}),lr=Se.isTaggedTemplateExpression({tag:Re.node}),Or=_e(se,Qe,W),cr=[];if(Re.node.computed&&cr.push(Re.get("property").node),Qe){const Jt=Se.node.right;cr.push(Jt)}const fr=o(c(Or),cr);ft?(Se.unshiftContainer("arguments",I()),Re.replaceWith(m(fr,c("call"))),ce.push(Se.get("arguments.0"))):Qe?Se.replaceWith(fr):lr?(Re.replaceWith(o(m(fr,c("bind"),!1),[I()])),ce.push(Re.get("arguments.0"))):Re.replaceWith(fr)})}let qe;return(ce.length>0||!V)&&(qe=Be(se,oe),(V||oe&&Oe(se))&&(ce.forEach(We=>{const Re=We.isJSX()?p(qe):c(qe);Re.loc=We.node.loc,We.replaceWith(Re)}),V||(qe=null))),{thisBinding:qe,fnPath:G}}function de(G){return d.includes(G)}function Ce(G){if(G.parentPath.isAssignmentExpression()&&G.parentPath.node.operator!=="="){const E=G.parentPath,j=E.node.operator.slice(0,-1),z=E.node.right,se=de(j);if(G.node.computed){const oe=G.scope.generateDeclaredUidIdentifier("tmp"),ce=G.node.object,Pe=G.node.property;E.get("left").replaceWith(m(ce,i("=",oe,Pe),!0)),E.get("right").replaceWith(V(se?"=":j,m(ce,c(oe.name),!0),z))}else{const oe=G.node.object,ce=G.node.property;E.get("left").replaceWith(m(oe,ce)),E.get("right").replaceWith(V(se?"=":j,m(oe,c(ce.name)),z))}return se?E.replaceWith(h(j,E.node.left,E.node.right)):E.node.operator="=",[E.get("left"),E.get("right").get("left")]}else if(G.parentPath.isUpdateExpression()){const E=G.parentPath,j=G.scope.generateDeclaredUidIdentifier("tmp"),z=G.node.computed?G.scope.generateDeclaredUidIdentifier("prop"):null,se=[i("=",j,m(G.node.object,z?i("=",z,G.node.property):G.node.property,G.node.computed)),i("=",m(G.node.object,z?c(z.name):G.node.property,G.node.computed),s(G.parentPath.node.operator[0],c(j.name),g(1)))];G.parentPath.node.prefix||se.push(c(j.name)),E.replaceWith(C(se));const oe=E.get("expressions.0.right"),ce=E.get("expressions.1.left");return[oe,ce]}return[G];function V(E,j,z){return E==="="?i("=",j,z):s(E,j,z)}}function Oe(G){return G.isClassMethod()&&!!G.parentPath.parentPath.node.superClass}const Te=(0,r.environmentVisitor)({CallExpression(G,{supers:V,thisBinding:E}){G.get("callee").isSuper()&&(V.has(G.node)||(V.add(G.node),G.replaceWithMultiple([G.node,i("=",c(E),c("this"))])))}});function Be(G,V){return Ne(G,"this",E=>{if(!V||!Oe(G))return I();G.traverse(Te,{supers:new WeakSet,thisBinding:E})})}function ze(G){return Ne(G,"supercall",()=>{const V=G.scope.generateUidIdentifier("args");return n([b(V)],o(P(),[$(c(V.name))]))})}function _e(G,V,E){return Ne(G,`superprop_${V?"set":"get"}:${E||""}`,()=>{const z=[];let se;if(E)se=m(P(),c(E));else{const oe=G.scope.generateUidIdentifier("prop");z.unshift(oe),se=m(P(),c(oe.name),!0)}if(V){const oe=G.scope.generateUidIdentifier("value");z.push(oe),se=i("=",se,c(oe.name))}return n(z,se)})}function Ne(G,V,E){const j="binding:"+V;let z=G.getData(j);if(!z){const se=G.scope.generateUidIdentifier(V);z=se.name,G.setData(j,z),G.scope.push({id:se,init:E(z)})}return z}const ge=(0,r.environmentVisitor)({ThisExpression(G,{thisPaths:V}){V.push(G)},JSXIdentifier(G,{thisPaths:V}){G.node.name==="this"&&(!G.parentPath.isJSXMemberExpression({object:G.node})&&!G.parentPath.isJSXOpeningElement({name:G.node})||V.push(G))},CallExpression(G,{superCalls:V}){G.get("callee").isSuper()&&V.push(G)},MemberExpression(G,{superProps:V}){G.get("object").isSuper()&&V.push(G)},Identifier(G,{argumentsPaths:V}){if(!G.isReferencedIdentifier({name:"arguments"}))return;let E=G.scope;do{if(E.hasOwnBinding("arguments")){E.rename("arguments");return}if(E.path.isFunction()&&!E.path.isArrowFunctionExpression())break}while(E=E.parent);V.push(G)},MetaProperty(G,{newTargetPaths:V}){G.get("meta").isIdentifier({name:"new"})&&G.get("property").isIdentifier({name:"target"})&&V.push(G)}});function Ae(G){const V=[],E=[],j=[],z=[],se=[];return G.traverse(ge,{thisPaths:V,argumentsPaths:E,newTargetPaths:j,superProps:z,superCalls:se}),{thisPaths:V,argumentsPaths:E,newTargetPaths:j,superProps:z,superCalls:se}}function st(){if(!this.isExportDeclaration()||this.isExportAllDeclaration())throw new Error("Only default and named export declarations can be split.");if(this.isExportNamedDeclaration()&&this.get("specifiers").length>0)throw new Error("It doesn't make sense to split exported specifiers.");const G=this.get("declaration");if(this.isExportDefaultDeclaration()){const z=G.isFunctionDeclaration()||G.isClassDeclaration(),se=G.isFunctionExpression()||G.isClassExpression(),oe=G.isScope()?G.scope.parent:G.scope;let ce=G.node.id,Pe=!1;ce?se&&oe.hasBinding(ce.name)&&(Pe=!0,ce=oe.generateUidIdentifier(ce.name)):(Pe=!0,ce=oe.generateUidIdentifier("default"),(z||se)&&(G.node.id=H(ce)));const Ve=z?G.node:T("var",[_(H(ce),G.node)]),ue=R(null,[Q(H(ce),c("default"))]);return this.insertAfter(ue),this.replaceWith(Ve),Pe&&oe.registerDeclaration(this),this}else if(this.get("specifiers").length>0)throw new Error("It doesn't make sense to split exported specifiers.");const V=G.getOuterBindingIdentifiers(),E=Object.keys(V).map(z=>Q(c(z),c(z))),j=R(null,E);return this.insertAfter(j),this.replaceWith(G.node),this}const fe={"ReferencedIdentifier|BindingIdentifier"(G,V){G.node.name===V.name&&(V.needsRename=!0,G.stop())},Scope(G,V){G.scope.hasOwnBinding(V.name)&&G.skip()}};function Ue(G){if(this.node.id)return this;const V=N(this.node,this.parent);if(V==null)return this;let{name:E}=V;if(!G&&/[\uD800-\uDFFF]/.test(E)||E.startsWith("get ")||E.startsWith("set "))return null;E=S(E.replace(/[/ ]/g,"_"));const j=c(E);ne(j,V.originalNode);const z={needsRename:!1,name:E},{scope:se}=this,oe=se.getOwnBinding(E);if(oe?oe.kind==="param"&&(z.needsRename=!0):(se.parent.hasBinding(E)||se.hasGlobal(E))&&this.traverse(fe,z),!z.needsRename)return this.node.id=j,se.getProgramParent().references[j.name]=!0,this;if(se.hasBinding(j.name)&&!se.hasGlobal(j.name))return se.rename(j.name),this.node.id=j,se.getProgramParent().references[j.name]=!0,this;if(!A(this.node))return null;const ce=se.generateUidIdentifier(j.name),Pe=[];for(let ue=0,je=Z(this.node);ue<je;ue++)Pe.push(se.generateUidIdentifier("x"));const Ve=t.default.expression.ast`
|
|
149
|
+
(function (${ce}) {
|
|
150
|
+
function ${j}(${Pe}) {
|
|
151
|
+
return ${H(ce)}.apply(this, arguments);
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
${H(j)}.toString = function () {
|
|
155
|
+
return ${H(ce)}.toString();
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
return ${H(j)};
|
|
159
|
+
})(${L(this.node)})
|
|
160
|
+
`;return this.replaceWith(Ve)[0].get("arguments.0")}function Z(G){const V=G.params.findIndex(E=>B(E)||x(E));return V===-1?G.params.length:V}return vr}var gt={};Object.defineProperty(gt,"__esModule",{value:!0});gt._guessExecutionStatusRelativeTo=EG;gt._resolve=tg;gt.canHaveVariableDeclarationOrExpression=fG;gt.canSwapBetweenExpressionAndStatement=pG;gt.equals=lG;gt.getSource=yG;gt.has=eg;gt.is=void 0;gt.isCompletionRecord=hG;gt.isConstantExpression=vG;gt.isInStrictMode=AG;gt.isNodeType=cG;gt.isStatementOrBlock=dG;gt.isStatic=oG;gt.isnt=uG;gt.matchesPattern=aG;gt.referencesImport=mG;gt.resolve=SG;gt.willIMaybeExecuteBefore=DG;var zH=Ge();const{STATEMENT_OR_BLOCK_KEYS:QH,VISITOR_KEYS:ZH,isBlockStatement:ZD,isExpression:eG,isIdentifier:tG,isLiteral:rG,isStringLiteral:nG,isType:iG,matchesPattern:sG}=zH;function aG(e,t){return sG(this.node,e,t)}function eg(e){var t;const r=(t=this.node)==null?void 0:t[e];return r&&Array.isArray(r)?!!r.length:!!r}function oG(){return this.scope.isStatic(this.node)}gt.is=eg;function uG(e){return!this.has(e)}function lG(e,t){return this.node[e]===t}function cG(e){return iG(this.type,e)}function fG(){return(this.key==="init"||this.key==="left")&&this.parentPath.isFor()}function pG(e){return this.key!=="body"||!this.parentPath.isArrowFunctionExpression()?!1:this.isExpression()?ZD(e):this.isBlockStatement()?eG(e):!1}function hG(e){let t=this,r=!0;do{const{type:n,container:i}=t;if(!r&&(t.isFunction()||n==="StaticBlock"))return!!e;if(r=!1,Array.isArray(i)&&t.key!==i.length-1)return!1}while((t=t.parentPath)&&!t.isProgram()&&!t.isDoExpression());return!0}function dG(){return this.parentPath.isLabeledStatement()||ZD(this.container)?!1:QH.includes(this.key)}function mG(e,t){if(!this.isReferencedIdentifier()){if(this.isJSXMemberExpression()&&this.node.property.name===t||(this.isMemberExpression()||this.isOptionalMemberExpression())&&(this.node.computed?nG(this.node.property,{value:t}):this.node.property.name===t)){const s=this.get("object");return s.isReferencedIdentifier()&&s.referencesImport(e,"*")}return!1}const r=this.scope.getBinding(this.node.name);if(!r||r.kind!=="module")return!1;const n=r.path,i=n.parentPath;if(!i.isImportDeclaration())return!1;if(i.node.source.value===e){if(!t)return!0}else return!1;return!!(n.isImportDefaultSpecifier()&&t==="default"||n.isImportNamespaceSpecifier()&&t==="*"||n.isImportSpecifier()&&tG(n.node.imported,{name:t}))}function yG(){const e=this.node;if(e.end){const t=this.hub.getCode();if(t)return t.slice(e.start,e.end)}return""}function DG(e){return this._guessExecutionStatusRelativeTo(e)!=="after"}function lm(e){return e.isProgram()?e:(e.parentPath.scope.getFunctionParent()||e.parentPath.scope.getProgramParent()).path}function gG(e,t){switch(e){case"LogicalExpression":return t==="right";case"ConditionalExpression":case"IfStatement":return t==="consequent"||t==="alternate";case"WhileStatement":case"DoWhileStatement":case"ForInStatement":case"ForOfStatement":return t==="body";case"ForStatement":return t==="body"||t==="update";case"SwitchStatement":return t==="cases";case"TryStatement":return t==="handler";case"AssignmentPattern":return t==="right";case"OptionalMemberExpression":return t==="property";case"OptionalCallExpression":return t==="arguments";default:return!1}}function cm(e,t){for(let r=0;r<t;r++){const n=e[r];if(gG(n.parent.type,n.parentKey))return!0}return!1}const fm=Symbol();function EG(e){return Zl(this,e,new Map)}function Zl(e,t,r){const n={this:lm(e),target:lm(t)};if(n.target.node!==n.this.node)return TG(e,n.target,r);const i={target:t.getAncestry(),this:e.getAncestry()};if(i.target.includes(e))return"after";if(i.this.includes(t))return"before";let s;const a={target:0,this:0};for(;!s&&a.this<i.this.length;){const c=i.this[a.this];a.target=i.target.indexOf(c),a.target>=0?s=c:a.this++}if(!s)throw new Error("Internal Babel error - The two compared nodes don't appear to belong to the same program.");if(cm(i.this,a.this-1)||cm(i.target,a.target-1))return"unknown";const o={this:i.this[a.this-1],target:i.target[a.target-1]};if(o.target.listKey&&o.this.listKey&&o.target.container===o.this.container)return o.target.key>o.this.key?"before":"after";const u=ZH[s.type],l={this:u.indexOf(o.this.parentKey),target:u.indexOf(o.target.parentKey)};return l.target>l.this?"before":"after"}function bG(e,t,r){if(t.isFunctionDeclaration()){if(t.parentPath.isExportDeclaration())return"unknown"}else return Zl(e,t,r)==="before"?"before":"unknown";const n=t.scope.getBinding(t.node.id.name);if(!n.references)return"before";const i=n.referencePaths;let s;for(const a of i){if(!!a.find(l=>l.node===t.node))continue;if(a.key!=="callee"||!a.parentPath.isCallExpression())return"unknown";const u=Zl(e,a,r);if(s&&s!==u)return"unknown";s=u}return s}function TG(e,t,r){let n=r.get(e.node),i;if(!n)r.set(e.node,n=new Map);else if(i=n.get(t.node))return i===fm?"unknown":i;n.set(t.node,fm);const s=bG(e,t,r);return n.set(t.node,s),s}function SG(e,t){return tg.call(this,e,t)||this}function tg(e,t){var r;if(!((r=t)!=null&&r.includes(this)))if(t=t||[],t.push(this),this.isVariableDeclarator()){if(this.get("id").isIdentifier())return this.get("init").resolve(e,t)}else if(this.isReferencedIdentifier()){const n=this.scope.getBinding(this.node.name);if(!n||!n.constant||n.kind==="module")return;if(n.path!==this){const i=n.path.resolve(e,t);return this.find(s=>s.node===i.node)?void 0:i}}else{if(this.isTypeCastExpression())return this.get("expression").resolve(e,t);if(e&&this.isMemberExpression()){const n=this.toComputedKey();if(!rG(n))return;const i=n.value,s=this.get("object").resolve(e,t);if(s.isObjectExpression()){const a=s.get("properties");for(const o of a){if(!o.isProperty())continue;const u=o.get("key");let l=o.isnt("computed")&&u.isIdentifier({name:i});if(l=l||u.isLiteral({value:i}),l)return o.get("value").resolve(e,t)}}else if(s.isArrayExpression()&&!isNaN(+i)){const o=s.get("elements")[i];if(o)return o.resolve(e,t)}}}}function vG(){if(this.isIdentifier()){const e=this.scope.getBinding(this.node.name);return e?e.constant:!1}if(this.isLiteral())return this.isRegExpLiteral()?!1:this.isTemplateLiteral()?this.get("expressions").every(e=>e.isConstantExpression()):!0;if(this.isUnaryExpression())return this.node.operator!=="void"?!1:this.get("argument").isConstantExpression();if(this.isBinaryExpression()){const{operator:e}=this.node;return e!=="in"&&e!=="instanceof"&&this.get("left").isConstantExpression()&&this.get("right").isConstantExpression()}return this.isMemberExpression()?!this.node.computed&&this.get("object").isIdentifier({name:"Symbol"})&&!this.scope.hasBinding("Symbol",{noGlobals:!0}):this.isCallExpression()?this.node.arguments.length===1&&this.get("callee").matchesPattern("Symbol.for")&&!this.scope.hasBinding("Symbol",{noGlobals:!0})&&this.get("arguments")[0].isStringLiteral():!1}function AG(){return!!(this.isProgram()?this:this.parentPath).find(r=>{if(r.isProgram({sourceType:"module"})||r.isClass())return!0;if(r.isArrowFunctionExpression()&&!r.get("body").isBlockStatement())return!1;let n;if(r.isFunction())n=r.node.body;else if(r.isProgram())n=r.node;else return!1;for(const i of n.directives)if(i.value.value==="use strict")return!0})}var Ct={},pm;function CG(){if(pm)return Ct;pm=1,Object.defineProperty(Ct,"__esModule",{value:!0}),Ct._getKey=I,Ct._getPattern=L,Ct.get=P,Ct.getAllNextSiblings=$,Ct.getAllPrevSiblings=w,Ct.getAssignmentIdentifiers=F,Ct.getBindingIdentifierPaths=B,Ct.getBindingIdentifiers=S,Ct.getCompletionRecords=y,Ct.getNextSibling=C,Ct.getOpposite=f,Ct.getOuterBindingIdentifierPaths=x,Ct.getOuterBindingIdentifiers=A,Ct.getPrevSibling=O,Ct.getSibling=b;var e=mi(),t=Ge();const{getAssignmentIdentifiers:r,getBindingIdentifiers:n,getOuterBindingIdentifiers:i,numericLiteral:s,unaryExpression:a}=t,o=0,u=1;function l(N){return{type:o,path:N}}function c(N){return{type:u,path:N}}function f(){return this.key==="left"?this.getSibling("right"):this.key==="right"?this.getSibling("left"):null}function p(N,H,T){return N&&H.push(...g(N,T)),H}function h(N,H,T){let _=[];for(let R=0;R<N.length;R++){const Q=N[R],ne=g(Q,T),X=[],ae=[];for(const ie of ne)ie.type===o&&X.push(ie),ie.type===u&&ae.push(ie);X.length&&(_=X),H.push(...ae)}return H.push(..._),H}function d(N){N.forEach(H=>{H.type=u})}function m(N,H){N.forEach(T=>{T.path.isBreakStatement({label:null})&&(H?T.path.replaceWith(a("void",s(0))):T.path.remove())})}function D(N,H){const T=[];if(H.canHaveBreak){let _=[];for(let R=0;R<N.length;R++){const Q=N[R],ne=Object.assign({},H,{inCaseClause:!1});Q.isBlockStatement()&&(H.inCaseClause||H.shouldPopulateBreak)?ne.shouldPopulateBreak=!0:ne.shouldPopulateBreak=!1;const X=g(Q,ne);if(X.length>0&&X.every(ae=>ae.type===u)){_.length>0&&X.every(ae=>ae.path.isBreakStatement({label:null}))?(d(_),T.push(..._),_.some(ae=>ae.path.isDeclaration())&&(T.push(...X),m(X,!0)),m(X,!1)):(T.push(...X),H.shouldPopulateBreak||m(X,!0));break}if(R===N.length-1)T.push(...X);else{_=[];for(let ae=0;ae<X.length;ae++){const ie=X[ae];ie.type===u&&T.push(ie),ie.type===o&&_.push(ie)}}}}else if(N.length)for(let _=N.length-1;_>=0;_--){const R=g(N[_],H);if(R.length>1||R.length===1&&!R[0].path.isVariableDeclaration()){T.push(...R);break}}return T}function g(N,H){let T=[];if(N.isIfStatement())T=p(N.get("consequent"),T,H),T=p(N.get("alternate"),T,H);else{if(N.isDoExpression()||N.isFor()||N.isWhile()||N.isLabeledStatement())return p(N.get("body"),T,H);if(N.isProgram()||N.isBlockStatement())return D(N.get("body"),H);if(N.isFunction())return g(N.get("body"),H);if(N.isTryStatement())T=p(N.get("block"),T,H),T=p(N.get("handler"),T,H);else{if(N.isCatchClause())return p(N.get("body"),T,H);if(N.isSwitchStatement())return h(N.get("cases"),T,H);if(N.isSwitchCase())return D(N.get("consequent"),{canHaveBreak:!0,shouldPopulateBreak:!1,inCaseClause:!0});N.isBreakStatement()?T.push(c(N)):T.push(l(N))}}return T}function y(){return g(this,{canHaveBreak:!1,shouldPopulateBreak:!1,inCaseClause:!1}).map(H=>H.path)}function b(N){return e.default.get({parentPath:this.parentPath,parent:this.parent,container:this.container,listKey:this.listKey,key:N}).setContext(this.context)}function O(){return this.getSibling(this.key-1)}function C(){return this.getSibling(this.key+1)}function $(){let N=this.key,H=this.getSibling(++N);const T=[];for(;H.node;)T.push(H),H=this.getSibling(++N);return T}function w(){let N=this.key,H=this.getSibling(--N);const T=[];for(;H.node;)T.push(H),H=this.getSibling(--N);return T}function P(N,H=!0){H===!0&&(H=this.context);const T=N.split(".");return T.length===1?I.call(this,N,H):L.call(this,T,H)}function I(N,H){const T=this.node,_=T[N];return Array.isArray(_)?_.map((R,Q)=>e.default.get({listKey:N,parentPath:this,parent:T,container:_,key:Q}).setContext(H)):e.default.get({parentPath:this,parent:T,container:T,key:N}).setContext(H)}function L(N,H){let T=this;for(const _ of N)_==="."?T=T.parentPath:Array.isArray(T)?T=T[_]:T=T.get(_,H);return T}function F(){return r(this.node)}function S(N){return n(this.node,N)}function A(N){return i(this.node,N)}function B(N=!1,H=!1){const _=[this],R=Object.create(null);for(;_.length;){const Q=_.shift();if(!Q||!Q.node)continue;const ne=n.keys[Q.node.type];if(Q.isIdentifier()){N?(R[Q.node.name]=R[Q.node.name]||[]).push(Q):R[Q.node.name]=Q;continue}if(Q.isExportDeclaration()){const X=Q.get("declaration");X.isDeclaration()&&_.push(X);continue}if(H){if(Q.isFunctionDeclaration()){_.push(Q.get("id"));continue}if(Q.isFunctionExpression())continue}if(ne)for(let X=0;X<ne.length;X++){const ae=ne[X],ie=Q.get(ae);Array.isArray(ie)?_.push(...ie):ie.node&&_.push(ie)}}return R}function x(N=!1){return this.getBindingIdentifierPaths(N,!0)}return Ct}var Qs={};Object.defineProperty(Qs,"__esModule",{value:!0});Qs.addComment=wG;Qs.addComments=IG;Qs.shareCommentsWithSiblings=_G;var PG=Ge();const{addComment:xG,addComments:FG}=PG;function _G(){if(typeof this.key=="string")return;const e=this.node;if(!e)return;const t=e.trailingComments,r=e.leadingComments;if(!t&&!r)return;const n=this.getSibling(this.key-1),i=this.getSibling(this.key+1),s=!!n.node,a=!!i.node;s&&(r&&n.addComments("trailing",hm(r,n.node.trailingComments)),t&&!a&&n.addComments("trailing",t)),a&&(t&&i.addComments("leading",hm(t,i.node.leadingComments)),r&&!s&&i.addComments("leading",r))}function hm(e,t){if(!(t!=null&&t.length))return e;const r=new Set(t);return e.filter(n=>!r.has(n))}function wG(e,t,r){xG(this.node,e,t,r)}function IG(e,t){FG(this.node,e,t)}var dm;function mi(){if(dm)return pr;dm=1,Object.defineProperty(pr,"__esModule",{value:!0}),pr.default=pr.SHOULD_STOP=pr.SHOULD_SKIP=pr.REMOVED=void 0;var e=Je,t=xI,r=hu(),n=dD(),i=Ge(),s=i,a=_t,o=Zo,u=ur,l=jn,c=zD(),f=lu,p=JH(),h=gt,d=Zs(),m=Bf(),D=JD(),g=CG(),y=Qs,b=Tt;const{validate:O}=i,C=t("babel");pr.REMOVED=1,pr.SHOULD_STOP=2,pr.SHOULD_SKIP=4;const $=pr.default=class rg{constructor(I,L){this.contexts=[],this.state=null,this.opts=null,this._traverseFlags=0,this.skipKeys=null,this.parentPath=null,this.container=null,this.listKey=null,this.key=null,this.node=null,this.type=null,this.parent=L,this.hub=I,this.data=null,this.context=null,this.scope=null}get removed(){return(this._traverseFlags&1)>0}set removed(I){I?this._traverseFlags|=1:this._traverseFlags&=-2}get shouldStop(){return(this._traverseFlags&2)>0}set shouldStop(I){I?this._traverseFlags|=2:this._traverseFlags&=-3}get shouldSkip(){return(this._traverseFlags&4)>0}set shouldSkip(I){I?this._traverseFlags|=4:this._traverseFlags&=-5}static get({hub:I,parentPath:L,parent:F,container:S,listKey:A,key:B}){if(!I&&L&&(I=L.hub),!F)throw new Error("To get a node path the parent needs to exist");const x=S[B],N=a.getOrCreateCachedPaths(I,F);let H=N.get(x);return H||(H=new rg(I,F),x&&N.set(x,H)),H.setup(L,S,A,B),H}getScope(I){return this.isScope()?new n.default(this):I}setData(I,L){return this.data==null&&(this.data=Object.create(null)),this.data[I]=L}getData(I,L){this.data==null&&(this.data=Object.create(null));let F=this.data[I];return F===void 0&&L!==void 0&&(F=this.data[I]=L),F}hasNode(){return this.node!=null}buildCodeFrameError(I,L=SyntaxError){return this.hub.buildError(this.node,I,L)}traverse(I,L){(0,r.default)(this.node,I,this.scope,L,this)}set(I,L){O(this.node,I,L),this.node[I]=L}getPathLocation(){const I=[];let L=this;do{let F=L.key;L.inList&&(F=`${L.listKey}[${F}]`),I.unshift(F)}while(L=L.parentPath);return I.join(".")}debug(I){C.enabled&&C(`${this.getPathLocation()} ${this.type}: ${I}`)}toString(){return(0,o.default)(this.node).code}get inList(){return!!this.listKey}set inList(I){I||(this.listKey=null)}get parentKey(){return this.listKey||this.key}},w={findParent:u.findParent,find:u.find,getFunctionParent:u.getFunctionParent,getStatementParent:u.getStatementParent,getEarliestCommonAncestorFrom:u.getEarliestCommonAncestorFrom,getDeepestCommonAncestorFrom:u.getDeepestCommonAncestorFrom,getAncestry:u.getAncestry,isAncestor:u.isAncestor,isDescendant:u.isDescendant,inType:u.inType,getTypeAnnotation:l.getTypeAnnotation,isBaseType:l.isBaseType,couldBeBaseType:l.couldBeBaseType,baseTypeStrictlyMatches:l.baseTypeStrictlyMatches,isGenericType:l.isGenericType,replaceWithMultiple:c.replaceWithMultiple,replaceWithSourceString:c.replaceWithSourceString,replaceWith:c.replaceWith,replaceExpressionWithStatements:c.replaceExpressionWithStatements,replaceInline:c.replaceInline,evaluateTruthy:f.evaluateTruthy,evaluate:f.evaluate,toComputedKey:p.toComputedKey,ensureBlock:p.ensureBlock,unwrapFunctionEnvironment:p.unwrapFunctionEnvironment,arrowFunctionToExpression:p.arrowFunctionToExpression,splitExportDeclaration:p.splitExportDeclaration,ensureFunctionName:p.ensureFunctionName,matchesPattern:h.matchesPattern,has:h.has,isStatic:h.isStatic,is:h.is,isnt:h.isnt,equals:h.equals,isNodeType:h.isNodeType,canHaveVariableDeclarationOrExpression:h.canHaveVariableDeclarationOrExpression,canSwapBetweenExpressionAndStatement:h.canSwapBetweenExpressionAndStatement,isCompletionRecord:h.isCompletionRecord,isStatementOrBlock:h.isStatementOrBlock,referencesImport:h.referencesImport,getSource:h.getSource,willIMaybeExecuteBefore:h.willIMaybeExecuteBefore,_guessExecutionStatusRelativeTo:h._guessExecutionStatusRelativeTo,resolve:h.resolve,isConstantExpression:h.isConstantExpression,isInStrictMode:h.isInStrictMode,call:d.call,isDenylisted:d.isDenylisted,isBlacklisted:d.isBlacklisted,visit:d.visit,skip:d.skip,skipKey:d.skipKey,stop:d.stop,setScope:d.setScope,setContext:d.setContext,resync:d.resync,popContext:d.popContext,pushContext:d.pushContext,setup:d.setup,setKey:d.setKey,requeue:d.requeue,requeueComputedKeyAndDecorators:d.requeueComputedKeyAndDecorators,remove:m.remove,insertBefore:D.insertBefore,insertAfter:D.insertAfter,updateSiblingKeys:D.updateSiblingKeys,unshiftContainer:D.unshiftContainer,pushContainer:D.pushContainer,hoist:D.hoist,getOpposite:g.getOpposite,getCompletionRecords:g.getCompletionRecords,getSibling:g.getSibling,getPrevSibling:g.getPrevSibling,getNextSibling:g.getNextSibling,getAllNextSiblings:g.getAllNextSiblings,getAllPrevSiblings:g.getAllPrevSiblings,get:g.get,getAssignmentIdentifiers:g.getAssignmentIdentifiers,getBindingIdentifiers:g.getBindingIdentifiers,getOuterBindingIdentifiers:g.getOuterBindingIdentifiers,getBindingIdentifierPaths:g.getBindingIdentifierPaths,getOuterBindingIdentifierPaths:g.getOuterBindingIdentifierPaths,shareCommentsWithSiblings:y.shareCommentsWithSiblings,addComment:y.addComment,addComments:y.addComments};Object.assign($.prototype,w),$.prototype.arrowFunctionToShadowed=p.arrowFunctionToShadowed,$.prototype._guessExecutionStatusRelativeToDifferentFunctions=h._guessExecutionStatusRelativeTo,$.prototype._guessExecutionStatusRelativeToDifferentFunctions=h._guessExecutionStatusRelativeTo,Object.assign($.prototype,{_getTypeAnnotation:l._getTypeAnnotation,_replaceWith:c._replaceWith,_resolve:h._resolve,_call:d._call,_resyncParent:d._resyncParent,_resyncKey:d._resyncKey,_resyncList:d._resyncList,_resyncRemoved:d._resyncRemoved,_getQueueContexts:d._getQueueContexts,_removeFromScope:m._removeFromScope,_callRemovalHooks:m._callRemovalHooks,_remove:m._remove,_markRemoved:m._markRemoved,_assertUnremoved:m._assertUnremoved,_containerInsert:D._containerInsert,_containerInsertBefore:D._containerInsertBefore,_containerInsertAfter:D._containerInsertAfter,_verifyNodeList:D._verifyNodeList,_getKey:g._getKey,_getPattern:g._getPattern});for(const P of s.TYPES){const I=`is${P}`,L=s[I];$.prototype[I]=function(F){return L(this.node,F)},$.prototype[`assert${P}`]=function(F){if(!L(this.node,F))throw new TypeError(`Expected node path of type ${P}`)}}Object.assign($.prototype,b);for(const P of Object.keys(e))P[0]!=="_"&&(s.TYPES.includes(P)||s.TYPES.push(P));return pr}var mm;function OG(){if(mm)return zi;mm=1,Object.defineProperty(zi,"__esModule",{value:!0}),zi.default=void 0;var e=mi(),t=Ge();const{VISITOR_KEYS:r}=t;class n{constructor(s,a,o,u){this.queue=null,this.priorityQueue=null,this.parentPath=u,this.scope=s,this.state=o,this.opts=a}shouldVisit(s){const a=this.opts;if(a.enter||a.exit||a[s.type])return!0;const o=r[s.type];if(!(o!=null&&o.length))return!1;for(const u of o)if(s[u])return!0;return!1}create(s,a,o,u){return e.default.get({parentPath:this.parentPath,parent:s,container:a,key:o,listKey:u})}maybeQueue(s,a){this.queue&&(a?this.queue.push(s):this.priorityQueue.push(s))}visitMultiple(s,a,o){if(s.length===0)return!1;const u=[];for(let l=0;l<s.length;l++){const c=s[l];c&&this.shouldVisit(c)&&u.push(this.create(a,s,l,o))}return this.visitQueue(u)}visitSingle(s,a){return this.shouldVisit(s[a])?this.visitQueue([this.create(s,s,a)]):!1}visitQueue(s){this.queue=s,this.priorityQueue=[];const a=new WeakSet;let o=!1,u=0;for(;u<s.length;){const l=s[u];if(u++,l.resync(),(l.contexts.length===0||l.contexts[l.contexts.length-1]!==this)&&l.pushContext(this),l.key===null)continue;const{node:c}=l;if(!a.has(c)){if(c&&a.add(c),l.visit()){o=!0;break}if(this.priorityQueue.length&&(o=this.visitQueue(this.priorityQueue),this.priorityQueue=[],this.queue=s,o))break}}for(let l=0;l<u;l++)s[l].popContext();return this.queue=null,o}visit(s,a){const o=s[a];return o?Array.isArray(o)?this.visitMultiple(o,s,a):this.visitSingle(s,a):!1}}return zi.default=n,zi}var ym;function jf(){if(ym)return ha;ym=1,Object.defineProperty(ha,"__esModule",{value:!0}),ha.traverseNode=n;var e=OG(),t=Ge();const{VISITOR_KEYS:r}=t;function n(i,s,a,o,u,l,c){const f=r[i.type];if(!f)return!1;const p=new e.default(a,s,o,u);if(c)return l!=null&&l[u.parentKey]?!1:p.visitQueue([u]);for(const h of f)if(!(l!=null&&l[h])&&p.visit(i,h))return!0;return!1}return ha}var Dm;function Zs(){if(Dm)return ht;Dm=1,Object.defineProperty(ht,"__esModule",{value:!0}),ht._call=s,ht._getQueueContexts=I,ht._resyncKey=D,ht._resyncList=g,ht._resyncParent=m,ht._resyncRemoved=y,ht.call=i,ht.isBlacklisted=ht.isDenylisted=a,ht.popContext=b,ht.pushContext=O,ht.requeue=w,ht.requeueComputedKeyAndDecorators=P,ht.resync=d,ht.setContext=h,ht.setKey=$,ht.setScope=p,ht.setup=C,ht.skip=l,ht.skipKey=c,ht.stop=f,ht.visit=u;var e=jf(),t=mi(),r=Bf(),n=Ge();function i(L){const F=this.opts;if(this.debug(L),this.node&&s.call(this,F[L]))return!0;if(this.node){var S;return s.call(this,(S=F[this.node.type])==null?void 0:S[L])}return!1}function s(L){if(!L)return!1;for(const F of L){if(!F)continue;const S=this.node;if(!S)return!0;const A=F.call(this.state,this,this.state);if(A&&typeof A=="object"&&typeof A.then=="function")throw new Error("You appear to be using a plugin with an async traversal visitor, which your current version of Babel does not support. If you're using a published plugin, you may need to upgrade your @babel/core version.");if(A)throw new Error(`Unexpected return value from visitor method ${F}`);if(this.node!==S||this._traverseFlags>0)return!0}return!1}function a(){var L;const F=(L=this.opts.denylist)!=null?L:this.opts.blacklist;return F&&F.indexOf(this.node.type)>-1}function o(L,F){L.context!==F&&(L.context=F,L.state=F.state,L.opts=F.opts)}function u(){var L,F;if(!this.node||this.isDenylisted()||(L=(F=this.opts).shouldSkip)!=null&&L.call(F,this))return!1;const S=this.context;return this.shouldSkip||this.call("enter")?(this.debug("Skip..."),this.shouldStop):(o(this,S),this.debug("Recursing into..."),this.shouldStop=(0,e.traverseNode)(this.node,this.opts,this.scope,this.state,this,this.skipKeys),o(this,S),this.call("exit"),this.shouldStop)}function l(){this.shouldSkip=!0}function c(L){this.skipKeys==null&&(this.skipKeys={}),this.skipKeys[L]=!0}function f(){this._traverseFlags|=t.SHOULD_SKIP|t.SHOULD_STOP}function p(){var L,F;if((L=this.opts)!=null&&L.noScope)return;let S=this.parentPath;((this.key==="key"||this.listKey==="decorators")&&S.isMethod()||this.key==="discriminant"&&S.isSwitchStatement())&&(S=S.parentPath);let A;for(;S&&!A;){var B;if((B=S.opts)!=null&&B.noScope)return;A=S.scope,S=S.parentPath}this.scope=this.getScope(A),(F=this.scope)==null||F.init()}function h(L){return this.skipKeys!=null&&(this.skipKeys={}),this._traverseFlags=0,L&&(this.context=L,this.state=L.state,this.opts=L.opts),this.setScope(),this}function d(){this.removed||(m.call(this),g.call(this),D.call(this))}function m(){this.parentPath&&(this.parent=this.parentPath.node)}function D(){if(this.container&&this.node!==this.container[this.key]){if(Array.isArray(this.container)){for(let L=0;L<this.container.length;L++)if(this.container[L]===this.node){this.setKey(L);return}}else for(const L of Object.keys(this.container))if(this.container[L]===this.node){this.setKey(L);return}this.key=null}}function g(){if(!this.parent||!this.inList)return;const L=this.parent[this.listKey];this.container!==L&&(this.container=L||null)}function y(){(this.key==null||!this.container||this.container[this.key]!==this.node)&&r._markRemoved.call(this)}function b(){this.contexts.pop(),this.contexts.length>0?this.setContext(this.contexts[this.contexts.length-1]):this.setContext(void 0)}function O(L){this.contexts.push(L),this.setContext(L)}function C(L,F,S,A){this.listKey=S,this.container=F,this.parentPath=L||this.parentPath,this.setKey(A)}function $(L){var F;this.key=L,this.node=this.container[this.key],this.type=(F=this.node)==null?void 0:F.type}function w(L=this){if(L.removed)return;const F=this.contexts;for(const S of F)S.maybeQueue(L)}function P(){const{context:L,node:F}=this;if(!n.isPrivate(F)&&F.computed&&L.maybeQueue(this.get("key")),F.decorators)for(const S of this.get("decorators"))L.maybeQueue(S)}function I(){let L=this,F=this.contexts;for(;!F.length&&(L=L.parentPath,!!L);)F=L.contexts;return F}return ht}var pu={};Object.defineProperty(pu,"__esModule",{value:!0});pu.default=void 0;class NG{getCode(){}getScope(){}addHelper(){throw new Error("Helpers are not supported by the default hub.")}buildError(t,r,n=TypeError){return new n(r)}}pu.default=NG;var gm;function hu(){return gm||(gm=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Hub",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"NodePath",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"Scope",{enumerable:!0,get:function(){return a.default}}),e.visitors=e.default=void 0,Zs();var t=zo();e.visitors=t;var r=Ge(),n=_t,i=jf(),s=mi(),a=dD(),o=pu;const{VISITOR_KEYS:u,removeProperties:l,traverseFast:c}=r;function f(h,d={},m,D,g,y){if(h){if(!d.noScope&&!m&&h.type!=="Program"&&h.type!=="File")throw new Error(`You must pass a scope and parentPath unless traversing a Program/File. Instead of that you tried to traverse a ${h.type} node without passing scope and parentPath.`);if(!g&&y)throw new Error("visitSelf can only be used when providing a NodePath.");u[h.type]&&(t.explode(d),(0,i.traverseNode)(h,d,m,D,g,null,y))}}e.default=f,f.visitors=t,f.verify=t.verify,f.explode=t.explode,f.cheap=function(h,d){c(h,d)},f.node=function(h,d,m,D,g,y){(0,i.traverseNode)(h,d,m,D,g,y)},f.clearNode=function(h,d){l(h,d)},f.removeProperties=function(h,d){return c(h,f.clearNode,d),h};function p(h,d){h.node.type===d.type&&(d.has=!0,h.stop())}f.hasType=function(h,d,m){if(m!=null&&m.includes(h.type))return!1;if(h.type===d)return!0;const D={has:!1,type:d};return f(h,{noScope:!0,denylist:m,enter:p},null,D),D.has},f.cache=n}(ju)),ju}var BG=hu();const LG=Jr.getDefaultExportFromCjs(BG);var At=Ge();const kG=Jr.useSoonIdGen();function as(...e){}const Ps=["key","property","id"];function wi(e,t,r,n=!1){var a;let i=n;!i&&e===r&&(i=!0);const s=(a=e==null?void 0:e.getOwnBinding)==null?void 0:a.call(e,t);return s?{isOverBound:i,binding:s,name:t}:e!=null&&e.parent?wi(e.parent,t,r,i):{isOverBound:i,binding:null,name:t}}function RG(e=[]){return e.reduce((t,r)=>(t.some(n=>At.isNodesEquivalent(n.node,r.node))||t.push(r),t),[])}function ng(e=[]){const{arr:t}=e.reduce((r,n)=>(r.obj[n.name]||(r.obj[n.name]=!0,r.arr.push(n)),r),{obj:{},arr:[]});return t}function ig(e,t){return e===t||(e==null?void 0:e.parent)&&ig(e.parent,t)}function ec(e=[],t,r=[],n){ng(e).forEach(s=>{var u,l;if(!s.binding)return;if(s.binding.kind==="module")return r.push(s.binding.path.parentPath);let a;if(s.binding.kind==="let"||s.binding.kind==="var"||s.binding.kind==="const")a=s.binding.path.parentPath.get("declarations")[0].get("init"),r.push(s.binding.path.parentPath);else if(s.binding.kind==="hoisted")a=s.binding.path.get("body"),r.push(s.binding.path);else throw new Error("unknown binding kind");const o=[];a==null||a.traverse({Identifier(c){if(Ps.includes(c.key)||c.listKey==="params")return;const f=wi(c.scope,c.node.name,a.scope);f.isOverBound&&o.push({...f,identifierPath:c})}}),ec(o,t,r,n),(l=(u=s.binding)==null?void 0:u.constantViolations)==null||l.forEach(c=>{if(!ig(t,c.scope))throw new Error(`${n} 静态依赖不能在作用域链之外被修改,: ${c.node.loc.start.line}:${c.node.loc.start.column+1} ${c.toString()}`);r.push(c);const f=c.get("right"),p=[];f==null||f.traverse({Identifier(h){if(Ps.includes(h.key)||h.listKey==="params")return;const d=wi(h.scope,h.node.name,f.scope);d.isOverBound&&p.push({...d,identifierPath:h})}}),ec(p,t,r,n)})})}function MG({code:e,alias:t="s",moduleName:r="soonjs:auto/client",callRules:n=[]}){const i=new RegExp(`^${t}\\.`),s=TI(e,{plugins:["typescript"],sourceType:"module"}),a={calls:[]};return LG(s,{CallExpression(o){var u,l,c,f,p,h,d,m,D;if(o.node.callee.type==="MemberExpression"&&i.test(o.get("callee").toString())&&(!o.scope.hasBinding(t)||((c=(l=(u=o.scope.getBinding(t))==null?void 0:u.path)==null?void 0:l.parent)==null?void 0:c.type)==="ImportDeclaration"&&((d=(h=(p=(f=o.scope.getBinding(t))==null?void 0:f.path)==null?void 0:p.parent)==null?void 0:h.source)==null?void 0:d.value)===r)){const g=o.get("callee").toString().replace(i,"");o.skip(),o.stateInfo={callName:g,bindings:[],namedParams:[],statics:{},deps:[]};const y=[],b=n.find(C=>C.callName===g||C.callNameTester&&C.callNameTester(g));if(b){if(b!=null&&b.isPureClient)return;(g===b.callName||b.callNameTester&&b.callNameTester(g))&&((m=b.staticParams)==null||m.forEach(C=>{var w,P,I,L,F;const $=(F=(L=(I=(P=(w=o.get("arguments"))==null?void 0:w[0])==null?void 0:P.get)==null?void 0:I.call(P,"properties"))==null?void 0:L.find)==null?void 0:F.call(L,S=>S.node.key.name===C);if($){const S=[];$.traverse({Identifier(A){if(as("[staticParams]",A.node.name,t,A.node.name===t),Ps.includes(A.key)||A.listKey==="params"||A.node.name===t)return;y.push($);const B=wi(A.scope,A.node.name,o.scope);B.isOverBound&&S.push({...B,identifierPath:A})}}),o.stateInfo.statics[C]=$,ec(S,o.scope,o.stateInfo.deps,C)}}),(D=b.namedParams)==null||D.forEach(C=>{var w,P,I,L,F,S,A;const $=(A=(S=(F=(L=(I=(P=(w=o.get("arguments"))==null?void 0:w[0])==null?void 0:P.get)==null?void 0:I.call(P,"properties"))==null?void 0:L.find)==null?void 0:F.call(L,B=>B.node.key.name===C))==null?void 0:S.get)==null?void 0:A.call(S,"value");$&&(o.stateInfo.namedParams.push({key:C,path:$}),y.push($))}))}let O=0;o.traverse({CallExpression(C){var $,w,P,I,L,F,S;y.some(A=>At.isNodesEquivalent(C.node,A.node)||C.findParent(B=>At.isNodesEquivalent(B.node,A.node)))||C.node.callee.type==="MemberExpression"&&i.test(C.get("callee").toString())&&(!C.scope.hasBinding(t)||((P=(w=($=C.scope.getBinding(t))==null?void 0:$.path)==null?void 0:w.parent)==null?void 0:P.type)==="ImportDeclaration"&&((S=(F=(L=(I=C.scope.getBinding(t))==null?void 0:I.path)==null?void 0:L.parent)==null?void 0:F.source)==null?void 0:S.value)===r)||(as("[CallExpression]",C.toString(),C.node),C.get("callee").traverse({Identifier(A){if(Ps.includes(A.key)||A.listKey==="params")return;as("[CallExpression Identifier]",A.node.name);const B=wi(A.scope,A.node.name,o.scope);if(B.isOverBound&&B.binding)throw new Error(`不能在 server 端调用本地方法 error: ${C.node.loc.start.line}:${C.node.loc.start.column+1} ${C.toString()}`)}}))},Identifier(C){if(O++===0||Ps.includes(C.key)||C.listKey==="params"||C.node.name===t||y.some(w=>At.isNodesEquivalent(C.node,w.node)||C.findParent(P=>At.isNodesEquivalent(P.node,w.node))))return;as("[Identifier]",C.node.name,C.key);const $=wi(C.scope,C.node.name,o.scope);if($.isOverBound&&$.binding&&(o.stateInfo.bindings.push({...$,identifierPath:C}),C.key==="callee"))throw new Error(`不能在 server 端调用本地方法 error: ${C.parentPath.node.loc.start.line}:${C.parentPath.node.loc.start.column+1} ${C.parentPath.toString()}`);o.stateInfo.bindings=ng(o.stateInfo.bindings)}}),as("[binding]",o.stateInfo.bindings.map(C=>C.name)),o.stateInfo.deps=RG(o.stateInfo.deps),a.calls.push(o)}}}),a}function jG({filename:e,code:t,alias:r="s",moduleName:n="soonjs:auto/client"}){const i=MG({code:t,alias:r,moduleName:n,callRules:[{callName:"api",isPureClient:!0},{callName:"soonClientConfig",isPureClient:!0},{callName:"useApi",staticParams:["bodySchema","meta"],namedParams:["body"]}]});let s=t;const a=[];return i.calls.reverse().forEach((o,u)=>{var g,y,b,O;const l=o.stateInfo,c=sT.createHash("md5").update(`${e}_${l.callName}_${u}`).digest("base64url"),f=l.namedParams.map(C=>At.objectProperty(At.identifier(C.key),C.path.node)),p=l.bindings.map(C=>At.objectProperty(At.identifier(C.name),At.identifier(C.name))),h=At.callExpression(At.memberExpression(At.identifier(r),At.identifier("_auto")),[At.stringLiteral("_auto/"+c),At.objectExpression([...f,At.objectProperty(At.identifier("___auto_state___"),At.objectExpression(p))])]);s=s.substring(0,o.node.start)+((g=EK(h,{concise:!0}))==null?void 0:g.code)+"".padEnd(o.node.loc.end.line-o.node.loc.start.line,`
|
|
161
|
+
`)+s.substring(o.node.end);let d;const m=l.namedParams.map(C=>`${C.key}: ___${C.key+"_"+kG()}___`).join(", "),D=Object.keys(l.statics).reduce((C,$)=>{var w,P,I;return C[$]=(I=(P=(w=l.statics[$])==null?void 0:w.get("value"))==null?void 0:P.toString)==null?void 0:I.call(P),C},{});if((O=(b=(y=o.get("arguments"))==null?void 0:y[0])==null?void 0:b.get)==null||O.call(b,"properties").forEach(C=>{var $,w;(l.namedParams.some(P=>{var I,L;return P.key===((L=(I=C==null?void 0:C.node)==null?void 0:I.key)==null?void 0:L.name)})||l.statics[(w=($=C==null?void 0:C.node)==null?void 0:$.key)==null?void 0:w.name])&&C.remove()}),l.callName==="useApi"){let C=function(I,L=""){const A=`(function() { ${w.filter(B=>B.scope===I).sort((B,x)=>B.node.start-x.node.start).map(B=>B.toString()).join(`;
|
|
162
|
+
`)+`
|
|
163
|
+
`+L} })();`;return I!=null&&I.parent?C(I.parent,"return "+A):A};const{imports:$,deps:w}=l.deps.reduce((I,L)=>(L.type==="ImportDeclaration"?I.imports.push(L.toString()):I.deps.push(L),I),{imports:[],deps:[]});d=`import { defineApi as __defineApi_for_auto__ } from 'soonjs';
|
|
164
|
+
// import ${r} from 'soonjs:auto/server';
|
|
165
|
+
import { z as __zod_z_for_auto__ } from 'zod';
|
|
166
|
+
`+$.join(`
|
|
167
|
+
`);const P=`return __defineApi_for_auto__({${D.meta?`
|
|
168
|
+
meta: ${D.meta},`:""}
|
|
169
|
+
path: '/_auto/${c}',
|
|
170
|
+
name: 'auto in ${e}',
|
|
171
|
+
bodySchema: __zod_z_for_auto__.object({
|
|
172
|
+
valid: __zod_z_for_auto__.string(),
|
|
173
|
+
data: __zod_z_for_auto__.object({
|
|
174
|
+
___auto_state___: __zod_z_for_auto__.any(),
|
|
175
|
+
${D.bodySchema?`body: ${D.bodySchema},`:""}
|
|
176
|
+
}),
|
|
177
|
+
serverDep: __zod_z_for_auto__.any(),
|
|
178
|
+
}),
|
|
179
|
+
desc: 'auto ${l.callName} ${c} generate from ${e}',
|
|
180
|
+
disabled: false,
|
|
181
|
+
method: 'post',
|
|
182
|
+
tags: ['soon auto'],
|
|
183
|
+
action: async ({ serverDep: ${r}, data: { ___auto_state___: { ${[...l.bindings].map(I=>I.name).join(", ")} }, ${m} } }, __auto_context__) => {
|
|
184
|
+
return await ${o.toString()}({ context: __auto_context__, ${m} })
|
|
185
|
+
},
|
|
186
|
+
});
|
|
187
|
+
`;d+=`
|
|
188
|
+
|
|
189
|
+
export default `+C(o.scope,P)}else d=`import { defineApi as __defineApi_for_auto__ } from 'soonjs';
|
|
190
|
+
// import ${r} from 'soonjs:auto/server';
|
|
191
|
+
import { z as __zod_z_for_auto__ } from 'zod';
|
|
192
|
+
|
|
193
|
+
export default __defineApi_for_auto__({
|
|
194
|
+
path: '/_auto/${c}',
|
|
195
|
+
name: 'auto in ${e}',
|
|
196
|
+
bodySchema: __zod_z_for_auto__.object({
|
|
197
|
+
valid: __zod_z_for_auto__.string(),
|
|
198
|
+
data: __zod_z_for_auto__.any(),
|
|
199
|
+
serverDep: __zod_z_for_auto__.any(),
|
|
200
|
+
}),
|
|
201
|
+
desc: 'auto ${l.callName} ${c} generate from ${e}',
|
|
202
|
+
disabled: false,
|
|
203
|
+
method: 'post',
|
|
204
|
+
tags: ['soon auto'],
|
|
205
|
+
action: async ({ serverDep: ${r}, data: { ___auto_state___: { ${[...l.bindings].map(C=>C.name).join(", ")} }, ${m} } }) => {
|
|
206
|
+
return await ${o.toString()};
|
|
207
|
+
},
|
|
208
|
+
});
|
|
209
|
+
`;a.push({callId:c,serverCode:d})}),{srcCode:s,serverCodes:a}}function $G(e){const t=process.cwd(),r=e.serverDir;let n;const i="soonjs:auto/client",s="\0"+i,a=new RegExp(`${e.clientAlias}\\s*\\.(useApi\\(|service\\.)`),o="node_modules/.soonjs/auto";let u="";if(!e.projectName||!e.serverDir)throw new Error("soonjs client plugin: options.projectName and options.serverDir are required");return{name:"vite-plugin-soon-client",enforce:"post",configureServer(l){n=l,console.log(n.config.env)},config(l,c){u=rt.join(o,c.command,e.projectName);const f=rt.join(t,"generated/auto");St.existsSync(rt.join(t,"node_modules/.soonjs"))||St.symlinkSync(r,"node_modules/.soonjs","dir"),St.existsSync(f)||St.mkdirSync(f,{recursive:!0});const p=rt.join(r,"generated/auto/auto-client.d.ts");St.existsSync(p)&&St.copyFileSync(p,rt.join(f,"auto-client.d.ts")),St.existsSync(u)&&St.rmSync(u,{recursive:!0}),c.command==="serve"&&St.watchFile(p,(h,d)=>{St.existsSync(p)&&St.copyFileSync(p,rt.join(f,"auto-client.d.ts"))})},resolveId(l){if(l===i)return s},async load(l){if(l===s)return`
|
|
210
|
+
const soonConfigStorage = {
|
|
211
|
+
baseUrl: "",
|
|
212
|
+
onFetch: null,
|
|
213
|
+
defaultMethod: "post"
|
|
214
|
+
};
|
|
215
|
+
const soonClientConfig = options=>{
|
|
216
|
+
soonConfigStorage["baseUrl"] = options.baseUrl ?? "";
|
|
217
|
+
soonConfigStorage["onFetch"] = options.onFetch;
|
|
218
|
+
soonClientConfig["defaultMethod"] = options.defaultMethod ?? "post";
|
|
219
|
+
};
|
|
220
|
+
|
|
221
|
+
const _auto = async(path,body)=>{
|
|
222
|
+
return await soonConfigStorage.onFetch?.({
|
|
223
|
+
headers: {},
|
|
224
|
+
method: "post",
|
|
225
|
+
body: {
|
|
226
|
+
data: body,
|
|
227
|
+
valid: (Math.random()).toString(36).substr(2)
|
|
228
|
+
},
|
|
229
|
+
url: soonConfigStorage.baseUrl + path
|
|
230
|
+
});
|
|
231
|
+
};
|
|
232
|
+
|
|
233
|
+
const api = async(path,body,options={})=>{
|
|
234
|
+
return await soonConfigStorage.onFetch?.({
|
|
235
|
+
headers: options.headers,
|
|
236
|
+
method: options.method ?? soonConfigStorage.defaultMethod,
|
|
237
|
+
body: options.body ?? body,
|
|
238
|
+
url: soonConfigStorage.baseUrl + (options.url ?? path),
|
|
239
|
+
query: options.query,
|
|
240
|
+
extra: options.extra ?? {}
|
|
241
|
+
});
|
|
242
|
+
};
|
|
243
|
+
|
|
244
|
+
export default {
|
|
245
|
+
soonClientConfig,
|
|
246
|
+
_auto,
|
|
247
|
+
api,
|
|
248
|
+
}
|
|
249
|
+
`},transform(l,c){if((/\.(ts|js|tsx|jsx)$/.test(c)||/\.vue/.test(c))&&a.test(l)){let f=function(){p.serverCodes.forEach(async h=>{let d=h.serverCode;try{d=await $_.format(d,{parser:"typescript",tabWidth:4,useTabs:!1,semi:!0,singleQuote:!0,trailingComma:"es5",bracketSpacing:!0,jsxBracketSameLine:!1,arrowParens:"avoid",printWidth:150,bracketSameLine:!1})}catch{}St.writeFile(rt.join(u,h.callId+".ts"),d,m=>{m&&console.error(m)})})};const p=jG({filename:rt.relative(t,c).replace(/\\/g,"/"),code:l,alias:e.clientAlias,moduleName:"soonjs:auto/client"});return St.exists(u,h=>{h?f():St.mkdir(u,{recursive:!0},d=>{if(d)throw d;f()})}),{code:p.srcCode,map:null}}}}}exports.vitePluginSoonClient=$G;
|