react-code-locator 0.2.0 → 0.2.1
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/index.cjs +32 -27
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +32 -27
- package/dist/index.js.map +1 -1
- package/dist/unplugin.cjs +32 -27
- package/dist/unplugin.cjs.map +1 -1
- package/dist/unplugin.js +32 -27
- package/dist/unplugin.js.map +1 -1
- package/dist/webpack.cjs +30 -25
- package/dist/webpack.cjs.map +1 -1
- package/dist/webpack.js +30 -25
- package/dist/webpack.js.map +1 -1
- package/package.json +2 -10
package/dist/index.cjs
CHANGED
|
@@ -1,32 +1,37 @@
|
|
|
1
|
-
"use strict";var Ta=Object.create;var Yt=Object.defineProperty;var Pa=Object.getOwnPropertyDescriptor;var Ia=Object.getOwnPropertyNames;var Na=Object.getPrototypeOf,La=Object.prototype.hasOwnProperty;var wi=(e,i)=>()=>(i||e((i={exports:{}}).exports,i),i.exports),Cs=(e,i)=>{for(var a in i)Yt(e,a,{get:i[a],enumerable:!0})},ws=(e,i,a,o)=>{if(i&&typeof i=="object"||typeof i=="function")for(let h of Ia(i))!La.call(e,h)&&h!==a&&Yt(e,h,{get:()=>i[h],enumerable:!(o=Pa(i,h))||o.enumerable});return e};var Ra=(e,i,a)=>(a=e!=null?Ta(Na(e)):{},ws(i||!e||!e.__esModule?Yt(a,"default",{value:e,enumerable:!0}):a,e)),Oa=e=>ws(Yt({},"__esModule",{value:!0}),e);var yr=wi((xo,xr)=>{"use strict";xr.exports={quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:"\xA0",iexcl:"\xA1",cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD",reg:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",frac34:"\xBE",iquest:"\xBF",Agrave:"\xC0",Aacute:"\xC1",Acirc:"\xC2",Atilde:"\xC3",Auml:"\xC4",Aring:"\xC5",AElig:"\xC6",Ccedil:"\xC7",Egrave:"\xC8",Eacute:"\xC9",Ecirc:"\xCA",Euml:"\xCB",Igrave:"\xCC",Iacute:"\xCD",Icirc:"\xCE",Iuml:"\xCF",ETH:"\xD0",Ntilde:"\xD1",Ograve:"\xD2",Oacute:"\xD3",Ocirc:"\xD4",Otilde:"\xD5",Ouml:"\xD6",times:"\xD7",Oslash:"\xD8",Ugrave:"\xD9",Uacute:"\xDA",Ucirc:"\xDB",Uuml:"\xDC",Yacute:"\xDD",THORN:"\xDE",szlig:"\xDF",agrave:"\xE0",aacute:"\xE1",acirc:"\xE2",atilde:"\xE3",auml:"\xE4",aring:"\xE5",aelig:"\xE6",ccedil:"\xE7",egrave:"\xE8",eacute:"\xE9",ecirc:"\xEA",euml:"\xEB",igrave:"\xEC",iacute:"\xED",icirc:"\xEE",iuml:"\xEF",eth:"\xF0",ntilde:"\xF1",ograve:"\xF2",oacute:"\xF3",ocirc:"\xF4",otilde:"\xF5",ouml:"\xF6",divide:"\xF7",oslash:"\xF8",ugrave:"\xF9",uacute:"\xFA",ucirc:"\xFB",uuml:"\xFC",yacute:"\xFD",thorn:"\xFE",yuml:"\xFF",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",fnof:"\u0192",circ:"\u02C6",tilde:"\u02DC",Alpha:"\u0391",Beta:"\u0392",Gamma:"\u0393",Delta:"\u0394",Epsilon:"\u0395",Zeta:"\u0396",Eta:"\u0397",Theta:"\u0398",Iota:"\u0399",Kappa:"\u039A",Lambda:"\u039B",Mu:"\u039C",Nu:"\u039D",Xi:"\u039E",Omicron:"\u039F",Pi:"\u03A0",Rho:"\u03A1",Sigma:"\u03A3",Tau:"\u03A4",Upsilon:"\u03A5",Phi:"\u03A6",Chi:"\u03A7",Psi:"\u03A8",Omega:"\u03A9",alpha:"\u03B1",beta:"\u03B2",gamma:"\u03B3",delta:"\u03B4",epsilon:"\u03B5",zeta:"\u03B6",eta:"\u03B7",theta:"\u03B8",iota:"\u03B9",kappa:"\u03BA",lambda:"\u03BB",mu:"\u03BC",nu:"\u03BD",xi:"\u03BE",omicron:"\u03BF",pi:"\u03C0",rho:"\u03C1",sigmaf:"\u03C2",sigma:"\u03C3",tau:"\u03C4",upsilon:"\u03C5",phi:"\u03C6",chi:"\u03C7",psi:"\u03C8",omega:"\u03C9",thetasym:"\u03D1",upsih:"\u03D2",piv:"\u03D6",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",zwnj:"\u200C",zwj:"\u200D",lrm:"\u200E",rlm:"\u200F",ndash:"\u2013",mdash:"\u2014",lsquo:"\u2018",rsquo:"\u2019",sbquo:"\u201A",ldquo:"\u201C",rdquo:"\u201D",bdquo:"\u201E",dagger:"\u2020",Dagger:"\u2021",bull:"\u2022",hellip:"\u2026",permil:"\u2030",prime:"\u2032",Prime:"\u2033",lsaquo:"\u2039",rsaquo:"\u203A",oline:"\u203E",frasl:"\u2044",euro:"\u20AC",image:"\u2111",weierp:"\u2118",real:"\u211C",trade:"\u2122",alefsym:"\u2135",larr:"\u2190",uarr:"\u2191",rarr:"\u2192",darr:"\u2193",harr:"\u2194",crarr:"\u21B5",lArr:"\u21D0",uArr:"\u21D1",rArr:"\u21D2",dArr:"\u21D3",hArr:"\u21D4",forall:"\u2200",part:"\u2202",exist:"\u2203",empty:"\u2205",nabla:"\u2207",isin:"\u2208",notin:"\u2209",ni:"\u220B",prod:"\u220F",sum:"\u2211",minus:"\u2212",lowast:"\u2217",radic:"\u221A",prop:"\u221D",infin:"\u221E",ang:"\u2220",and:"\u2227",or:"\u2228",cap:"\u2229",cup:"\u222A",int:"\u222B",there4:"\u2234",sim:"\u223C",cong:"\u2245",asymp:"\u2248",ne:"\u2260",equiv:"\u2261",le:"\u2264",ge:"\u2265",sub:"\u2282",sup:"\u2283",nsub:"\u2284",sube:"\u2286",supe:"\u2287",oplus:"\u2295",otimes:"\u2297",perp:"\u22A5",sdot:"\u22C5",lceil:"\u2308",rceil:"\u2309",lfloor:"\u230A",rfloor:"\u230B",lang:"\u2329",rang:"\u232A",loz:"\u25CA",spades:"\u2660",clubs:"\u2663",hearts:"\u2665",diams:"\u2666"}});var Bi=wi((fi,vr)=>{"use strict";(function(e,i){typeof fi=="object"&&typeof vr<"u"?i(fi):typeof define=="function"&&define.amd?define(["exports"],i):(e=typeof globalThis<"u"?globalThis:e||self,i(e.acorn={}))})(fi,(function(e){"use strict";var i=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,78,5,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,199,7,137,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,55,9,266,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,233,0,3,0,8,1,6,0,475,6,110,6,6,9,4759,9,787719,239],a=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,7,25,39,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,5,57,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,24,43,261,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,33,24,3,24,45,74,6,0,67,12,65,1,2,0,15,4,10,7381,42,31,98,114,8702,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,208,30,2,2,2,1,2,6,3,4,10,1,225,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4381,3,5773,3,7472,16,621,2467,541,1507,4938,6,8489],o="\u200C\u200D\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ADD\u1AE0-\u1AEB\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65",h="\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088F\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5C\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDC-\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7DC\uA7F1-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC",x={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},y="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",S={5:y,"5module":y+" export import",6:y+" const class extends export import super"},C=/^in(stanceof)?$/,l=new RegExp("["+h+"]"),M=new RegExp("["+h+o+"]");function D(t,r){for(var u=65536,c=0;c<r.length;c+=2){if(u+=r[c],u>t)return!1;if(u+=r[c+1],u>=t)return!0}return!1}function K(t,r){return t<65?t===36:t<91?!0:t<97?t===95:t<123?!0:t<=65535?t>=170&&l.test(String.fromCharCode(t)):r===!1?!1:D(t,a)}function T(t,r){return t<48?t===36:t<58?!0:t<65?!1:t<91?!0:t<97?t===95:t<123?!0:t<=65535?t>=170&&M.test(String.fromCharCode(t)):r===!1?!1:D(t,a)||D(t,i)}var I=function(r,u){u===void 0&&(u={}),this.label=r,this.keyword=u.keyword,this.beforeExpr=!!u.beforeExpr,this.startsExpr=!!u.startsExpr,this.isLoop=!!u.isLoop,this.isAssign=!!u.isAssign,this.prefix=!!u.prefix,this.postfix=!!u.postfix,this.binop=u.binop||null,this.updateContext=null};function F(t,r){return new I(t,{beforeExpr:!0,binop:r})}var L={beforeExpr:!0},ee={startsExpr:!0},Ne={};function Y(t,r){return r===void 0&&(r={}),r.keyword=t,Ne[t]=new I(t,r)}var d={num:new I("num",ee),regexp:new I("regexp",ee),string:new I("string",ee),name:new I("name",ee),privateId:new I("privateId",ee),eof:new I("eof"),bracketL:new I("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new I("]"),braceL:new I("{",{beforeExpr:!0,startsExpr:!0}),braceR:new I("}"),parenL:new I("(",{beforeExpr:!0,startsExpr:!0}),parenR:new I(")"),comma:new I(",",L),semi:new I(";",L),colon:new I(":",L),dot:new I("."),question:new I("?",L),questionDot:new I("?."),arrow:new I("=>",L),template:new I("template"),invalidTemplate:new I("invalidTemplate"),ellipsis:new I("...",L),backQuote:new I("`",ee),dollarBraceL:new I("${",{beforeExpr:!0,startsExpr:!0}),eq:new I("=",{beforeExpr:!0,isAssign:!0}),assign:new I("_=",{beforeExpr:!0,isAssign:!0}),incDec:new I("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new I("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:F("||",1),logicalAND:F("&&",2),bitwiseOR:F("|",3),bitwiseXOR:F("^",4),bitwiseAND:F("&",5),equality:F("==/!=/===/!==",6),relational:F("</>/<=/>=",7),bitShift:F("<</>>/>>>",8),plusMin:new I("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:F("%",10),star:F("*",10),slash:F("/",10),starstar:new I("**",{beforeExpr:!0}),coalesce:F("??",1),_break:Y("break"),_case:Y("case",L),_catch:Y("catch"),_continue:Y("continue"),_debugger:Y("debugger"),_default:Y("default",L),_do:Y("do",{isLoop:!0,beforeExpr:!0}),_else:Y("else",L),_finally:Y("finally"),_for:Y("for",{isLoop:!0}),_function:Y("function",ee),_if:Y("if"),_return:Y("return",L),_switch:Y("switch"),_throw:Y("throw",L),_try:Y("try"),_var:Y("var"),_const:Y("const"),_while:Y("while",{isLoop:!0}),_with:Y("with"),_new:Y("new",{beforeExpr:!0,startsExpr:!0}),_this:Y("this",ee),_super:Y("super",ee),_class:Y("class",ee),_extends:Y("extends",L),_export:Y("export"),_import:Y("import",ee),_null:Y("null",ee),_true:Y("true",ee),_false:Y("false",ee),_in:Y("in",{beforeExpr:!0,binop:7}),_instanceof:Y("instanceof",{beforeExpr:!0,binop:7}),_typeof:Y("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:Y("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:Y("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},ve=/\r\n?|\n|\u2028|\u2029/,ne=new RegExp(ve.source,"g");function Ve(t){return t===10||t===13||t===8232||t===8233}function Ht(t,r,u){u===void 0&&(u=t.length);for(var c=r;c<u;c++){var v=t.charCodeAt(c);if(Ve(v))return c<u-1&&v===13&&t.charCodeAt(c+1)===10?c+2:c+1}return-1}var Et=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,xe=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,O=Object.prototype,be=O.hasOwnProperty,ge=O.toString,oe=Object.hasOwn||(function(t,r){return be.call(t,r)}),te=Array.isArray||(function(t){return ge.call(t)==="[object Array]"}),g=Object.create(null);function s(t){return g[t]||(g[t]=new RegExp("^(?:"+t.replace(/ /g,"|")+")$"))}function n(t){return t<=65535?String.fromCharCode(t):(t-=65536,String.fromCharCode((t>>10)+55296,(t&1023)+56320))}var p=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,m=function(r,u){this.line=r,this.column=u};m.prototype.offset=function(r){return new m(this.line,this.column+r)};var b=function(r,u,c){this.start=u,this.end=c,r.sourceFile!==null&&(this.source=r.sourceFile)};function w(t,r){for(var u=1,c=0;;){var v=Ht(t,c,r);if(v<0)return new m(u,r-c);++u,c=v}}var E={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},_=!1;function P(t){var r={};for(var u in E)r[u]=t&&oe(t,u)?t[u]:E[u];if(r.ecmaVersion==="latest"?r.ecmaVersion=1e8:r.ecmaVersion==null?(!_&&typeof console=="object"&&console.warn&&(_=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
|
|
2
|
-
Defaulting to 2020, but this will stop working in the future.`)),
|
|
3
|
-
`,c-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(ve).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=d.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule=r.sourceType==="module",this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),this.pos===0&&r.allowHashBang&&this.input.slice(0,2)==="#!"&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(this.options.sourceType==="commonjs"?G:j),this.regexpState=null,this.privateNameStack=[]},we={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowReturn:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},allowUsing:{configurable:!0},inClassStaticBlock:{configurable:!0}};ae.prototype.parse=function(){var r=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(r)},we.inFunction.get=function(){return(this.currentVarScope().flags&G)>0},we.inGenerator.get=function(){return(this.currentVarScope().flags&he)>0},we.inAsync.get=function(){return(this.currentVarScope().flags&B)>0},we.canAwait.get=function(){for(var t=this.scopeStack.length-1;t>=0;t--){var r=this.scopeStack[t],u=r.flags;if(u&(Ce|ze))return!1;if(u&G)return(u&B)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction},we.allowReturn.get=function(){return!!(this.inFunction||this.options.allowReturnOutsideFunction&&this.currentVarScope().flags&j)},we.allowSuper.get=function(){var t=this.currentThisScope(),r=t.flags;return(r&me)>0||this.options.allowSuperOutsideMethod},we.allowDirectSuper.get=function(){return(this.currentThisScope().flags&Se)>0},we.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},we.allowNewDotTarget.get=function(){for(var t=this.scopeStack.length-1;t>=0;t--){var r=this.scopeStack[t],u=r.flags;if(u&(Ce|ze)||u&G&&!(u&ue))return!0}return!1},we.allowUsing.get=function(){var t=this.currentScope(),r=t.flags;return!(r&it||!this.inModule&&r&j)},we.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&Ce)>0},ae.extend=function(){for(var r=[],u=arguments.length;u--;)r[u]=arguments[u];for(var c=this,v=0;v<r.length;v++)c=r[v](c);return c},ae.parse=function(r,u){return new this(u,r).parse()},ae.parseExpressionAt=function(r,u,c){var v=new this(c,r,u);return v.nextToken(),v.parseExpression()},ae.tokenizer=function(r,u){return new this(u,r)},Object.defineProperties(ae.prototype,we);var ye=ae.prototype,Tt=/^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;ye.strictDirective=function(t){if(this.options.ecmaVersion<5)return!1;for(;;){xe.lastIndex=t,t+=xe.exec(this.input)[0].length;var r=Tt.exec(this.input.slice(t));if(!r)return!1;if((r[1]||r[2])==="use strict"){xe.lastIndex=t+r[0].length;var u=xe.exec(this.input),c=u.index+u[0].length,v=this.input.charAt(c);return v===";"||v==="}"||ve.test(u[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(v)||v==="!"&&this.input.charAt(c+1)==="=")}t+=r[0].length,xe.lastIndex=t,t+=xe.exec(this.input)[0].length,this.input[t]===";"&&t++}},ye.eat=function(t){return this.type===t?(this.next(),!0):!1},ye.isContextual=function(t){return this.type===d.name&&this.value===t&&!this.containsEsc},ye.eatContextual=function(t){return this.isContextual(t)?(this.next(),!0):!1},ye.expectContextual=function(t){this.eatContextual(t)||this.unexpected()},ye.canInsertSemicolon=function(){return this.type===d.eof||this.type===d.braceR||ve.test(this.input.slice(this.lastTokEnd,this.start))},ye.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},ye.semicolon=function(){!this.eat(d.semi)&&!this.insertSemicolon()&&this.unexpected()},ye.afterTrailingComma=function(t,r){if(this.type===t)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),r||this.next(),!0},ye.expect=function(t){this.eat(t)||this.unexpected()},ye.unexpected=function(t){this.raise(t??this.start,"Unexpected token")};var Wt=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};ye.checkPatternErrors=function(t,r){if(t){t.trailingComma>-1&&this.raiseRecoverable(t.trailingComma,"Comma is not permitted after the rest element");var u=r?t.parenthesizedAssign:t.parenthesizedBind;u>-1&&this.raiseRecoverable(u,r?"Assigning to rvalue":"Parenthesized pattern")}},ye.checkExpressionErrors=function(t,r){if(!t)return!1;var u=t.shorthandAssign,c=t.doubleProto;if(!r)return u>=0||c>=0;u>=0&&this.raise(u,"Shorthand property assignments are valid only in destructuring patterns"),c>=0&&this.raiseRecoverable(c,"Redefinition of __proto__ property")},ye.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,"Yield expression cannot be a default value"),this.awaitPos&&this.raise(this.awaitPos,"Await expression cannot be a default value")},ye.isSimpleAssignTarget=function(t){return t.type==="ParenthesizedExpression"?this.isSimpleAssignTarget(t.expression):t.type==="Identifier"||t.type==="MemberExpression"};var H=ae.prototype;H.parseTopLevel=function(t){var r=Object.create(null);for(t.body||(t.body=[]);this.type!==d.eof;){var u=this.parseStatement(null,!0,r);t.body.push(u)}if(this.inModule)for(var c=0,v=Object.keys(this.undefinedExports);c<v.length;c+=1){var k=v[c];this.raiseRecoverable(this.undefinedExports[k].start,"Export '"+k+"' is not defined")}return this.adaptDirectivePrologue(t.body),this.next(),t.sourceType=this.options.sourceType==="commonjs"?"script":this.options.sourceType,this.finishNode(t,"Program")};var gi={kind:"loop"},ea={kind:"switch"};H.isLet=function(t){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;xe.lastIndex=this.pos;var r=xe.exec(this.input),u=this.pos+r[0].length,c=this.fullCharCodeAt(u);if(c===91||c===92)return!0;if(t)return!1;if(c===123)return!0;if(K(c)){var v=u;do u+=c<=65535?1:2;while(T(c=this.fullCharCodeAt(u)));if(c===92)return!0;var k=this.input.slice(v,u);if(!C.test(k))return!0}return!1},H.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;xe.lastIndex=this.pos;var t=xe.exec(this.input),r=this.pos+t[0].length,u;return!ve.test(this.input.slice(this.pos,r))&&this.input.slice(r,r+8)==="function"&&(r+8===this.input.length||!(T(u=this.fullCharCodeAt(r+8))||u===92))},H.isUsingKeyword=function(t,r){if(this.options.ecmaVersion<17||!this.isContextual(t?"await":"using"))return!1;xe.lastIndex=this.pos;var u=xe.exec(this.input),c=this.pos+u[0].length;if(ve.test(this.input.slice(this.pos,c)))return!1;if(t){var v=c+5,k;if(this.input.slice(c,v)!=="using"||v===this.input.length||T(k=this.fullCharCodeAt(v))||k===92)return!1;xe.lastIndex=v;var A=xe.exec(this.input);if(c=v+A[0].length,A&&ve.test(this.input.slice(v,c)))return!1}var N=this.fullCharCodeAt(c);if(!K(N)&&N!==92)return!1;var V=c;do c+=N<=65535?1:2;while(T(N=this.fullCharCodeAt(c)));if(N===92)return!0;var J=this.input.slice(V,c);return!(C.test(J)||r&&J==="of")},H.isAwaitUsing=function(t){return this.isUsingKeyword(!0,t)},H.isUsing=function(t){return this.isUsingKeyword(!1,t)},H.parseStatement=function(t,r,u){var c=this.type,v=this.startNode(),k;switch(this.isLet(t)&&(c=d._var,k="let"),c){case d._break:case d._continue:return this.parseBreakContinueStatement(v,c.keyword);case d._debugger:return this.parseDebuggerStatement(v);case d._do:return this.parseDoStatement(v);case d._for:return this.parseForStatement(v);case d._function:return t&&(this.strict||t!=="if"&&t!=="label")&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(v,!1,!t);case d._class:return t&&this.unexpected(),this.parseClass(v,!0);case d._if:return this.parseIfStatement(v);case d._return:return this.parseReturnStatement(v);case d._switch:return this.parseSwitchStatement(v);case d._throw:return this.parseThrowStatement(v);case d._try:return this.parseTryStatement(v);case d._const:case d._var:return k=k||this.value,t&&k!=="var"&&this.unexpected(),this.parseVarStatement(v,k);case d._while:return this.parseWhileStatement(v);case d._with:return this.parseWithStatement(v);case d.braceL:return this.parseBlock(!0,v);case d.semi:return this.parseEmptyStatement(v);case d._export:case d._import:if(this.options.ecmaVersion>10&&c===d._import){xe.lastIndex=this.pos;var A=xe.exec(this.input),N=this.pos+A[0].length,V=this.input.charCodeAt(N);if(V===40||V===46)return this.parseExpressionStatement(v,this.parseExpression())}return this.options.allowImportExportEverywhere||(r||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),c===d._import?this.parseImport(v):this.parseExport(v,u);default:if(this.isAsyncFunction())return t&&this.unexpected(),this.next(),this.parseFunctionStatement(v,!0,!t);var J=this.isAwaitUsing(!1)?"await using":this.isUsing(!1)?"using":null;if(J)return this.allowUsing||this.raise(this.start,"Using declaration cannot appear in the top level when source type is `script` or in the bare case statement"),J==="await using"&&(this.canAwait||this.raise(this.start,"Await using cannot appear outside of async function"),this.next()),this.next(),this.parseVar(v,!1,J),this.semicolon(),this.finishNode(v,"VariableDeclaration");var $=this.value,le=this.parseExpression();return c===d.name&&le.type==="Identifier"&&this.eat(d.colon)?this.parseLabeledStatement(v,$,le,t):this.parseExpressionStatement(v,le)}},H.parseBreakContinueStatement=function(t,r){var u=r==="break";this.next(),this.eat(d.semi)||this.insertSemicolon()?t.label=null:this.type!==d.name?this.unexpected():(t.label=this.parseIdent(),this.semicolon());for(var c=0;c<this.labels.length;++c){var v=this.labels[c];if((t.label==null||v.name===t.label.name)&&(v.kind!=null&&(u||v.kind==="loop")||t.label&&u))break}return c===this.labels.length&&this.raise(t.start,"Unsyntactic "+r),this.finishNode(t,u?"BreakStatement":"ContinueStatement")},H.parseDebuggerStatement=function(t){return this.next(),this.semicolon(),this.finishNode(t,"DebuggerStatement")},H.parseDoStatement=function(t){return this.next(),this.labels.push(gi),t.body=this.parseStatement("do"),this.labels.pop(),this.expect(d._while),t.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(d.semi):this.semicolon(),this.finishNode(t,"DoWhileStatement")},H.parseForStatement=function(t){this.next();var r=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(gi),this.enterScope(0),this.expect(d.parenL),this.type===d.semi)return r>-1&&this.unexpected(r),this.parseFor(t,null);var u=this.isLet();if(this.type===d._var||this.type===d._const||u){var c=this.startNode(),v=u?"let":this.value;return this.next(),this.parseVar(c,!0,v),this.finishNode(c,"VariableDeclaration"),this.parseForAfterInit(t,c,r)}var k=this.isContextual("let"),A=!1,N=this.isUsing(!0)?"using":this.isAwaitUsing(!0)?"await using":null;if(N){var V=this.startNode();return this.next(),N==="await using"&&(this.canAwait||this.raise(this.start,"Await using cannot appear outside of async function"),this.next()),this.parseVar(V,!0,N),this.finishNode(V,"VariableDeclaration"),this.parseForAfterInit(t,V,r)}var J=this.containsEsc,$=new Wt,le=this.start,ke=r>-1?this.parseExprSubscripts($,"await"):this.parseExpression(!0,$);return this.type===d._in||(A=this.options.ecmaVersion>=6&&this.isContextual("of"))?(r>-1?(this.type===d._in&&this.unexpected(r),t.await=!0):A&&this.options.ecmaVersion>=8&&(ke.start===le&&!J&&ke.type==="Identifier"&&ke.name==="async"?this.unexpected():this.options.ecmaVersion>=9&&(t.await=!1)),k&&A&&this.raise(ke.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(ke,!1,$),this.checkLValPattern(ke),this.parseForIn(t,ke)):(this.checkExpressionErrors($,!0),r>-1&&this.unexpected(r),this.parseFor(t,ke))},H.parseForAfterInit=function(t,r,u){return(this.type===d._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&r.declarations.length===1?(this.options.ecmaVersion>=9&&(this.type===d._in?u>-1&&this.unexpected(u):t.await=u>-1),this.parseForIn(t,r)):(u>-1&&this.unexpected(u),this.parseFor(t,r))},H.parseFunctionStatement=function(t,r,u){return this.next(),this.parseFunction(t,Pt|(u?0:bi),!1,r)},H.parseIfStatement=function(t){return this.next(),t.test=this.parseParenExpression(),t.consequent=this.parseStatement("if"),t.alternate=this.eat(d._else)?this.parseStatement("if"):null,this.finishNode(t,"IfStatement")},H.parseReturnStatement=function(t){return this.allowReturn||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(d.semi)||this.insertSemicolon()?t.argument=null:(t.argument=this.parseExpression(),this.semicolon()),this.finishNode(t,"ReturnStatement")},H.parseSwitchStatement=function(t){this.next(),t.discriminant=this.parseParenExpression(),t.cases=[],this.expect(d.braceL),this.labels.push(ea),this.enterScope(it);for(var r,u=!1;this.type!==d.braceR;)if(this.type===d._case||this.type===d._default){var c=this.type===d._case;r&&this.finishNode(r,"SwitchCase"),t.cases.push(r=this.startNode()),r.consequent=[],this.next(),c?r.test=this.parseExpression():(u&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),u=!0,r.test=null),this.expect(d.colon)}else r||this.unexpected(),r.consequent.push(this.parseStatement(null));return this.exitScope(),r&&this.finishNode(r,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(t,"SwitchStatement")},H.parseThrowStatement=function(t){return this.next(),ve.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),t.argument=this.parseExpression(),this.semicolon(),this.finishNode(t,"ThrowStatement")};var ta=[];H.parseCatchClauseParam=function(){var t=this.parseBindingAtom(),r=t.type==="Identifier";return this.enterScope(r?ce:0),this.checkLValPattern(t,r?At:De),this.expect(d.parenR),t},H.parseTryStatement=function(t){if(this.next(),t.block=this.parseBlock(),t.handler=null,this.type===d._catch){var r=this.startNode();this.next(),this.eat(d.parenL)?r.param=this.parseCatchClauseParam():(this.options.ecmaVersion<10&&this.unexpected(),r.param=null,this.enterScope(0)),r.body=this.parseBlock(!1),this.exitScope(),t.handler=this.finishNode(r,"CatchClause")}return t.finalizer=this.eat(d._finally)?this.parseBlock():null,!t.handler&&!t.finalizer&&this.raise(t.start,"Missing catch or finally clause"),this.finishNode(t,"TryStatement")},H.parseVarStatement=function(t,r,u){return this.next(),this.parseVar(t,!1,r,u),this.semicolon(),this.finishNode(t,"VariableDeclaration")},H.parseWhileStatement=function(t){return this.next(),t.test=this.parseParenExpression(),this.labels.push(gi),t.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(t,"WhileStatement")},H.parseWithStatement=function(t){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),t.object=this.parseParenExpression(),t.body=this.parseStatement("with"),this.finishNode(t,"WithStatement")},H.parseEmptyStatement=function(t){return this.next(),this.finishNode(t,"EmptyStatement")},H.parseLabeledStatement=function(t,r,u,c){for(var v=0,k=this.labels;v<k.length;v+=1){var A=k[v];A.name===r&&this.raise(u.start,"Label '"+r+"' is already declared")}for(var N=this.type.isLoop?"loop":this.type===d._switch?"switch":null,V=this.labels.length-1;V>=0;V--){var J=this.labels[V];if(J.statementStart===t.start)J.statementStart=this.start,J.kind=N;else break}return this.labels.push({name:r,kind:N,statementStart:this.start}),t.body=this.parseStatement(c?c.indexOf("label")===-1?c+"label":c:"label"),this.labels.pop(),t.label=u,this.finishNode(t,"LabeledStatement")},H.parseExpressionStatement=function(t,r){return t.expression=r,this.semicolon(),this.finishNode(t,"ExpressionStatement")},H.parseBlock=function(t,r,u){for(t===void 0&&(t=!0),r===void 0&&(r=this.startNode()),r.body=[],this.expect(d.braceL),t&&this.enterScope(0);this.type!==d.braceR;){var c=this.parseStatement(null);r.body.push(c)}return u&&(this.strict=!1),this.next(),t&&this.exitScope(),this.finishNode(r,"BlockStatement")},H.parseFor=function(t,r){return t.init=r,this.expect(d.semi),t.test=this.type===d.semi?null:this.parseExpression(),this.expect(d.semi),t.update=this.type===d.parenR?null:this.parseExpression(),this.expect(d.parenR),t.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(t,"ForStatement")},H.parseForIn=function(t,r){var u=this.type===d._in;return this.next(),r.type==="VariableDeclaration"&&r.declarations[0].init!=null&&(!u||this.options.ecmaVersion<8||this.strict||r.kind!=="var"||r.declarations[0].id.type!=="Identifier")&&this.raise(r.start,(u?"for-in":"for-of")+" loop variable declaration may not have an initializer"),t.left=r,t.right=u?this.parseExpression():this.parseMaybeAssign(),this.expect(d.parenR),t.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(t,u?"ForInStatement":"ForOfStatement")},H.parseVar=function(t,r,u,c){for(t.declarations=[],t.kind=u;;){var v=this.startNode();if(this.parseVarId(v,u),this.eat(d.eq)?v.init=this.parseMaybeAssign(r):!c&&u==="const"&&!(this.type===d._in||this.options.ecmaVersion>=6&&this.isContextual("of"))?this.unexpected():!c&&(u==="using"||u==="await using")&&this.options.ecmaVersion>=17&&this.type!==d._in&&!this.isContextual("of")?this.raise(this.lastTokEnd,"Missing initializer in "+u+" declaration"):!c&&v.id.type!=="Identifier"&&!(r&&(this.type===d._in||this.isContextual("of")))?this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):v.init=null,t.declarations.push(this.finishNode(v,"VariableDeclarator")),!this.eat(d.comma))break}return t},H.parseVarId=function(t,r){t.id=r==="using"||r==="await using"?this.parseIdent():this.parseBindingAtom(),this.checkLValPattern(t.id,r==="var"?nt:De,!1)};var Pt=1,bi=2,Qi=4;H.parseFunction=function(t,r,u,c,v){this.initFunction(t),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!c)&&(this.type===d.star&&r&bi&&this.unexpected(),t.generator=this.eat(d.star)),this.options.ecmaVersion>=8&&(t.async=!!c),r&Pt&&(t.id=r&Qi&&this.type!==d.name?null:this.parseIdent(),t.id&&!(r&bi)&&this.checkLValSimple(t.id,this.strict||t.generator||t.async?this.treatFunctionsAsVar?nt:De:ot));var k=this.yieldPos,A=this.awaitPos,N=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(dt(t.async,t.generator)),r&Pt||(t.id=this.type===d.name?this.parseIdent():null),this.parseFunctionParams(t),this.parseFunctionBody(t,u,!1,v),this.yieldPos=k,this.awaitPos=A,this.awaitIdentPos=N,this.finishNode(t,r&Pt?"FunctionDeclaration":"FunctionExpression")},H.parseFunctionParams=function(t){this.expect(d.parenL),t.params=this.parseBindingList(d.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},H.parseClass=function(t,r){this.next();var u=this.strict;this.strict=!0,this.parseClassId(t,r),this.parseClassSuper(t);var c=this.enterClassBody(),v=this.startNode(),k=!1;for(v.body=[],this.expect(d.braceL);this.type!==d.braceR;){var A=this.parseClassElement(t.superClass!==null);A&&(v.body.push(A),A.type==="MethodDefinition"&&A.kind==="constructor"?(k&&this.raiseRecoverable(A.start,"Duplicate constructor in the same class"),k=!0):A.key&&A.key.type==="PrivateIdentifier"&&ia(c,A)&&this.raiseRecoverable(A.key.start,"Identifier '#"+A.key.name+"' has already been declared"))}return this.strict=u,this.next(),t.body=this.finishNode(v,"ClassBody"),this.exitClassBody(),this.finishNode(t,r?"ClassDeclaration":"ClassExpression")},H.parseClassElement=function(t){if(this.eat(d.semi))return null;var r=this.options.ecmaVersion,u=this.startNode(),c="",v=!1,k=!1,A="method",N=!1;if(this.eatContextual("static")){if(r>=13&&this.eat(d.braceL))return this.parseClassStaticBlock(u),u;this.isClassElementNameStart()||this.type===d.star?N=!0:c="static"}if(u.static=N,!c&&r>=8&&this.eatContextual("async")&&((this.isClassElementNameStart()||this.type===d.star)&&!this.canInsertSemicolon()?k=!0:c="async"),!c&&(r>=9||!k)&&this.eat(d.star)&&(v=!0),!c&&!k&&!v){var V=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?A=V:c=V)}if(c?(u.computed=!1,u.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),u.key.name=c,this.finishNode(u.key,"Identifier")):this.parseClassElementName(u),r<13||this.type===d.parenL||A!=="method"||v||k){var J=!u.static&&zt(u,"constructor"),$=J&&t;J&&A!=="method"&&this.raise(u.key.start,"Constructor can't have get/set modifier"),u.kind=J?"constructor":A,this.parseClassMethod(u,v,k,$)}else this.parseClassField(u);return u},H.isClassElementNameStart=function(){return this.type===d.name||this.type===d.privateId||this.type===d.num||this.type===d.string||this.type===d.bracketL||this.type.keyword},H.parseClassElementName=function(t){this.type===d.privateId?(this.value==="constructor"&&this.raise(this.start,"Classes can't have an element named '#constructor'"),t.computed=!1,t.key=this.parsePrivateIdent()):this.parsePropertyName(t)},H.parseClassMethod=function(t,r,u,c){var v=t.key;t.kind==="constructor"?(r&&this.raise(v.start,"Constructor can't be a generator"),u&&this.raise(v.start,"Constructor can't be an async method")):t.static&&zt(t,"prototype")&&this.raise(v.start,"Classes may not have a static property named prototype");var k=t.value=this.parseMethod(r,u,c);return t.kind==="get"&&k.params.length!==0&&this.raiseRecoverable(k.start,"getter should have no params"),t.kind==="set"&&k.params.length!==1&&this.raiseRecoverable(k.start,"setter should have exactly one param"),t.kind==="set"&&k.params[0].type==="RestElement"&&this.raiseRecoverable(k.params[0].start,"Setter cannot use rest params"),this.finishNode(t,"MethodDefinition")},H.parseClassField=function(t){return zt(t,"constructor")?this.raise(t.key.start,"Classes can't have a field named 'constructor'"):t.static&&zt(t,"prototype")&&this.raise(t.key.start,"Classes can't have a static field named 'prototype'"),this.eat(d.eq)?(this.enterScope(ze|me),t.value=this.parseMaybeAssign(),this.exitScope()):t.value=null,this.semicolon(),this.finishNode(t,"PropertyDefinition")},H.parseClassStaticBlock=function(t){t.body=[];var r=this.labels;for(this.labels=[],this.enterScope(Ce|me);this.type!==d.braceR;){var u=this.parseStatement(null);t.body.push(u)}return this.next(),this.exitScope(),this.labels=r,this.finishNode(t,"StaticBlock")},H.parseClassId=function(t,r){this.type===d.name?(t.id=this.parseIdent(),r&&this.checkLValSimple(t.id,De,!1)):(r===!0&&this.unexpected(),t.id=null)},H.parseClassSuper=function(t){t.superClass=this.eat(d._extends)?this.parseExprSubscripts(null,!1):null},H.enterClassBody=function(){var t={declared:Object.create(null),used:[]};return this.privateNameStack.push(t),t.declared},H.exitClassBody=function(){var t=this.privateNameStack.pop(),r=t.declared,u=t.used;if(this.options.checkPrivateFields)for(var c=this.privateNameStack.length,v=c===0?null:this.privateNameStack[c-1],k=0;k<u.length;++k){var A=u[k];oe(r,A.name)||(v?v.used.push(A):this.raiseRecoverable(A.start,"Private field '#"+A.name+"' must be declared in an enclosing class"))}};function ia(t,r){var u=r.key.name,c=t[u],v="true";return r.type==="MethodDefinition"&&(r.kind==="get"||r.kind==="set")&&(v=(r.static?"s":"i")+r.kind),c==="iget"&&v==="iset"||c==="iset"&&v==="iget"||c==="sget"&&v==="sset"||c==="sset"&&v==="sget"?(t[u]="true",!1):c?!0:(t[u]=v,!1)}function zt(t,r){var u=t.computed,c=t.key;return!u&&(c.type==="Identifier"&&c.name===r||c.type==="Literal"&&c.value===r)}H.parseExportAllDeclaration=function(t,r){return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(t.exported=this.parseModuleExportName(),this.checkExport(r,t.exported,this.lastTokStart)):t.exported=null),this.expectContextual("from"),this.type!==d.string&&this.unexpected(),t.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(t.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(t,"ExportAllDeclaration")},H.parseExport=function(t,r){if(this.next(),this.eat(d.star))return this.parseExportAllDeclaration(t,r);if(this.eat(d._default))return this.checkExport(r,"default",this.lastTokStart),t.declaration=this.parseExportDefaultDeclaration(),this.finishNode(t,"ExportDefaultDeclaration");if(this.shouldParseExportStatement())t.declaration=this.parseExportDeclaration(t),t.declaration.type==="VariableDeclaration"?this.checkVariableExport(r,t.declaration.declarations):this.checkExport(r,t.declaration.id,t.declaration.id.start),t.specifiers=[],t.source=null,this.options.ecmaVersion>=16&&(t.attributes=[]);else{if(t.declaration=null,t.specifiers=this.parseExportSpecifiers(r),this.eatContextual("from"))this.type!==d.string&&this.unexpected(),t.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(t.attributes=this.parseWithClause());else{for(var u=0,c=t.specifiers;u<c.length;u+=1){var v=c[u];this.checkUnreserved(v.local),this.checkLocalExport(v.local),v.local.type==="Literal"&&this.raise(v.local.start,"A string literal cannot be used as an exported binding without `from`.")}t.source=null,this.options.ecmaVersion>=16&&(t.attributes=[])}this.semicolon()}return this.finishNode(t,"ExportNamedDeclaration")},H.parseExportDeclaration=function(t){return this.parseStatement(null)},H.parseExportDefaultDeclaration=function(){var t;if(this.type===d._function||(t=this.isAsyncFunction())){var r=this.startNode();return this.next(),t&&this.next(),this.parseFunction(r,Pt|Qi,!1,t)}else if(this.type===d._class){var u=this.startNode();return this.parseClass(u,"nullableID")}else{var c=this.parseMaybeAssign();return this.semicolon(),c}},H.checkExport=function(t,r,u){t&&(typeof r!="string"&&(r=r.type==="Identifier"?r.name:r.value),oe(t,r)&&this.raiseRecoverable(u,"Duplicate export '"+r+"'"),t[r]=!0)},H.checkPatternExport=function(t,r){var u=r.type;if(u==="Identifier")this.checkExport(t,r,r.start);else if(u==="ObjectPattern")for(var c=0,v=r.properties;c<v.length;c+=1){var k=v[c];this.checkPatternExport(t,k)}else if(u==="ArrayPattern")for(var A=0,N=r.elements;A<N.length;A+=1){var V=N[A];V&&this.checkPatternExport(t,V)}else u==="Property"?this.checkPatternExport(t,r.value):u==="AssignmentPattern"?this.checkPatternExport(t,r.left):u==="RestElement"&&this.checkPatternExport(t,r.argument)},H.checkVariableExport=function(t,r){if(t)for(var u=0,c=r;u<c.length;u+=1){var v=c[u];this.checkPatternExport(t,v.id)}},H.shouldParseExportStatement=function(){return this.type.keyword==="var"||this.type.keyword==="const"||this.type.keyword==="class"||this.type.keyword==="function"||this.isLet()||this.isAsyncFunction()},H.parseExportSpecifier=function(t){var r=this.startNode();return r.local=this.parseModuleExportName(),r.exported=this.eatContextual("as")?this.parseModuleExportName():r.local,this.checkExport(t,r.exported,r.exported.start),this.finishNode(r,"ExportSpecifier")},H.parseExportSpecifiers=function(t){var r=[],u=!0;for(this.expect(d.braceL);!this.eat(d.braceR);){if(u)u=!1;else if(this.expect(d.comma),this.afterTrailingComma(d.braceR))break;r.push(this.parseExportSpecifier(t))}return r},H.parseImport=function(t){return this.next(),this.type===d.string?(t.specifiers=ta,t.source=this.parseExprAtom()):(t.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),t.source=this.type===d.string?this.parseExprAtom():this.unexpected()),this.options.ecmaVersion>=16&&(t.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(t,"ImportDeclaration")},H.parseImportSpecifier=function(){var t=this.startNode();return t.imported=this.parseModuleExportName(),this.eatContextual("as")?t.local=this.parseIdent():(this.checkUnreserved(t.imported),t.local=t.imported),this.checkLValSimple(t.local,De),this.finishNode(t,"ImportSpecifier")},H.parseImportDefaultSpecifier=function(){var t=this.startNode();return t.local=this.parseIdent(),this.checkLValSimple(t.local,De),this.finishNode(t,"ImportDefaultSpecifier")},H.parseImportNamespaceSpecifier=function(){var t=this.startNode();return this.next(),this.expectContextual("as"),t.local=this.parseIdent(),this.checkLValSimple(t.local,De),this.finishNode(t,"ImportNamespaceSpecifier")},H.parseImportSpecifiers=function(){var t=[],r=!0;if(this.type===d.name&&(t.push(this.parseImportDefaultSpecifier()),!this.eat(d.comma)))return t;if(this.type===d.star)return t.push(this.parseImportNamespaceSpecifier()),t;for(this.expect(d.braceL);!this.eat(d.braceR);){if(r)r=!1;else if(this.expect(d.comma),this.afterTrailingComma(d.braceR))break;t.push(this.parseImportSpecifier())}return t},H.parseWithClause=function(){var t=[];if(!this.eat(d._with))return t;this.expect(d.braceL);for(var r={},u=!0;!this.eat(d.braceR);){if(u)u=!1;else if(this.expect(d.comma),this.afterTrailingComma(d.braceR))break;var c=this.parseImportAttribute(),v=c.key.type==="Identifier"?c.key.name:c.key.value;oe(r,v)&&this.raiseRecoverable(c.key.start,"Duplicate attribute key '"+v+"'"),r[v]=!0,t.push(c)}return t},H.parseImportAttribute=function(){var t=this.startNode();return t.key=this.type===d.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never"),this.expect(d.colon),this.type!==d.string&&this.unexpected(),t.value=this.parseExprAtom(),this.finishNode(t,"ImportAttribute")},H.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===d.string){var t=this.parseLiteral(this.value);return p.test(t.value)&&this.raise(t.start,"An export name cannot include a lone surrogate."),t}return this.parseIdent(!0)},H.adaptDirectivePrologue=function(t){for(var r=0;r<t.length&&this.isDirectiveCandidate(t[r]);++r)t[r].directive=t[r].expression.raw.slice(1,-1)},H.isDirectiveCandidate=function(t){return this.options.ecmaVersion>=5&&t.type==="ExpressionStatement"&&t.expression.type==="Literal"&&typeof t.expression.value=="string"&&(this.input[t.start]==='"'||this.input[t.start]==="'")};var Me=ae.prototype;Me.toAssignable=function(t,r,u){if(this.options.ecmaVersion>=6&&t)switch(t.type){case"Identifier":this.inAsync&&t.name==="await"&&this.raise(t.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":t.type="ObjectPattern",u&&this.checkPatternErrors(u,!0);for(var c=0,v=t.properties;c<v.length;c+=1){var k=v[c];this.toAssignable(k,r),k.type==="RestElement"&&(k.argument.type==="ArrayPattern"||k.argument.type==="ObjectPattern")&&this.raise(k.argument.start,"Unexpected token")}break;case"Property":t.kind!=="init"&&this.raise(t.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(t.value,r);break;case"ArrayExpression":t.type="ArrayPattern",u&&this.checkPatternErrors(u,!0),this.toAssignableList(t.elements,r);break;case"SpreadElement":t.type="RestElement",this.toAssignable(t.argument,r),t.argument.type==="AssignmentPattern"&&this.raise(t.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":t.operator!=="="&&this.raise(t.left.end,"Only '=' operator can be used for specifying default value."),t.type="AssignmentPattern",delete t.operator,this.toAssignable(t.left,r);break;case"ParenthesizedExpression":this.toAssignable(t.expression,r,u);break;case"ChainExpression":this.raiseRecoverable(t.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!r)break;default:this.raise(t.start,"Assigning to rvalue")}else u&&this.checkPatternErrors(u,!0);return t},Me.toAssignableList=function(t,r){for(var u=t.length,c=0;c<u;c++){var v=t[c];v&&this.toAssignable(v,r)}if(u){var k=t[u-1];this.options.ecmaVersion===6&&r&&k&&k.type==="RestElement"&&k.argument.type!=="Identifier"&&this.unexpected(k.argument.start)}return t},Me.parseSpread=function(t){var r=this.startNode();return this.next(),r.argument=this.parseMaybeAssign(!1,t),this.finishNode(r,"SpreadElement")},Me.parseRestBinding=function(){var t=this.startNode();return this.next(),this.options.ecmaVersion===6&&this.type!==d.name&&this.unexpected(),t.argument=this.parseBindingAtom(),this.finishNode(t,"RestElement")},Me.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case d.bracketL:var t=this.startNode();return this.next(),t.elements=this.parseBindingList(d.bracketR,!0,!0),this.finishNode(t,"ArrayPattern");case d.braceL:return this.parseObj(!0)}return this.parseIdent()},Me.parseBindingList=function(t,r,u,c){for(var v=[],k=!0;!this.eat(t);)if(k?k=!1:this.expect(d.comma),r&&this.type===d.comma)v.push(null);else{if(u&&this.afterTrailingComma(t))break;if(this.type===d.ellipsis){var A=this.parseRestBinding();this.parseBindingListItem(A),v.push(A),this.type===d.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.expect(t);break}else v.push(this.parseAssignableListItem(c))}return v},Me.parseAssignableListItem=function(t){var r=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(r),r},Me.parseBindingListItem=function(t){return t},Me.parseMaybeDefault=function(t,r,u){if(u=u||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(d.eq))return u;var c=this.startNodeAt(t,r);return c.left=u,c.right=this.parseMaybeAssign(),this.finishNode(c,"AssignmentPattern")},Me.checkLValSimple=function(t,r,u){r===void 0&&(r=Qe);var c=r!==Qe;switch(t.type){case"Identifier":this.strict&&this.reservedWordsStrictBind.test(t.name)&&this.raiseRecoverable(t.start,(c?"Binding ":"Assigning to ")+t.name+" in strict mode"),c&&(r===De&&t.name==="let"&&this.raiseRecoverable(t.start,"let is disallowed as a lexically bound name"),u&&(oe(u,t.name)&&this.raiseRecoverable(t.start,"Argument name clash"),u[t.name]=!0),r!==_t&&this.declareName(t.name,r,t.start));break;case"ChainExpression":this.raiseRecoverable(t.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":c&&this.raiseRecoverable(t.start,"Binding member expression");break;case"ParenthesizedExpression":return c&&this.raiseRecoverable(t.start,"Binding parenthesized expression"),this.checkLValSimple(t.expression,r,u);default:this.raise(t.start,(c?"Binding":"Assigning to")+" rvalue")}},Me.checkLValPattern=function(t,r,u){switch(r===void 0&&(r=Qe),t.type){case"ObjectPattern":for(var c=0,v=t.properties;c<v.length;c+=1){var k=v[c];this.checkLValInnerPattern(k,r,u)}break;case"ArrayPattern":for(var A=0,N=t.elements;A<N.length;A+=1){var V=N[A];V&&this.checkLValInnerPattern(V,r,u)}break;default:this.checkLValSimple(t,r,u)}},Me.checkLValInnerPattern=function(t,r,u){switch(r===void 0&&(r=Qe),t.type){case"Property":this.checkLValInnerPattern(t.value,r,u);break;case"AssignmentPattern":this.checkLValPattern(t.left,r,u);break;case"RestElement":this.checkLValPattern(t.argument,r,u);break;default:this.checkLValPattern(t,r,u)}};var Fe=function(r,u,c,v,k){this.token=r,this.isExpr=!!u,this.preserveSpace=!!c,this.override=v,this.generator=!!k},pe={b_stat:new Fe("{",!1),b_expr:new Fe("{",!0),b_tmpl:new Fe("${",!1),p_stat:new Fe("(",!1),p_expr:new Fe("(",!0),q_tmpl:new Fe("`",!0,!0,function(t){return t.tryReadTemplateToken()}),f_stat:new Fe("function",!1),f_expr:new Fe("function",!0),f_expr_gen:new Fe("function",!0,!1,null,!0),f_gen:new Fe("function",!1,!1,null,!0)},mt=ae.prototype;mt.initialContext=function(){return[pe.b_stat]},mt.curContext=function(){return this.context[this.context.length-1]},mt.braceIsBlock=function(t){var r=this.curContext();return r===pe.f_expr||r===pe.f_stat?!0:t===d.colon&&(r===pe.b_stat||r===pe.b_expr)?!r.isExpr:t===d._return||t===d.name&&this.exprAllowed?ve.test(this.input.slice(this.lastTokEnd,this.start)):t===d._else||t===d.semi||t===d.eof||t===d.parenR||t===d.arrow?!0:t===d.braceL?r===pe.b_stat:t===d._var||t===d._const||t===d.name?!1:!this.exprAllowed},mt.inGeneratorContext=function(){for(var t=this.context.length-1;t>=1;t--){var r=this.context[t];if(r.token==="function")return r.generator}return!1},mt.updateContext=function(t){var r,u=this.type;u.keyword&&t===d.dot?this.exprAllowed=!1:(r=u.updateContext)?r.call(this,t):this.exprAllowed=u.beforeExpr},mt.overrideContext=function(t){this.curContext()!==t&&(this.context[this.context.length-1]=t)},d.parenR.updateContext=d.braceR.updateContext=function(){if(this.context.length===1){this.exprAllowed=!0;return}var t=this.context.pop();t===pe.b_stat&&this.curContext().token==="function"&&(t=this.context.pop()),this.exprAllowed=!t.isExpr},d.braceL.updateContext=function(t){this.context.push(this.braceIsBlock(t)?pe.b_stat:pe.b_expr),this.exprAllowed=!0},d.dollarBraceL.updateContext=function(){this.context.push(pe.b_tmpl),this.exprAllowed=!0},d.parenL.updateContext=function(t){var r=t===d._if||t===d._for||t===d._with||t===d._while;this.context.push(r?pe.p_stat:pe.p_expr),this.exprAllowed=!0},d.incDec.updateContext=function(){},d._function.updateContext=d._class.updateContext=function(t){t.beforeExpr&&t!==d._else&&!(t===d.semi&&this.curContext()!==pe.p_stat)&&!(t===d._return&&ve.test(this.input.slice(this.lastTokEnd,this.start)))&&!((t===d.colon||t===d.braceL)&&this.curContext()===pe.b_stat)?this.context.push(pe.f_expr):this.context.push(pe.f_stat),this.exprAllowed=!1},d.colon.updateContext=function(){this.curContext().token==="function"&&this.context.pop(),this.exprAllowed=!0},d.backQuote.updateContext=function(){this.curContext()===pe.q_tmpl?this.context.pop():this.context.push(pe.q_tmpl),this.exprAllowed=!1},d.star.updateContext=function(t){if(t===d._function){var r=this.context.length-1;this.context[r]===pe.f_expr?this.context[r]=pe.f_expr_gen:this.context[r]=pe.f_gen}this.exprAllowed=!0},d.name.updateContext=function(t){var r=!1;this.options.ecmaVersion>=6&&t!==d.dot&&(this.value==="of"&&!this.exprAllowed||this.value==="yield"&&this.inGeneratorContext())&&(r=!0),this.exprAllowed=r};var X=ae.prototype;X.checkPropClash=function(t,r,u){if(!(this.options.ecmaVersion>=9&&t.type==="SpreadElement")&&!(this.options.ecmaVersion>=6&&(t.computed||t.method||t.shorthand))){var c=t.key,v;switch(c.type){case"Identifier":v=c.name;break;case"Literal":v=String(c.value);break;default:return}var k=t.kind;if(this.options.ecmaVersion>=6){v==="__proto__"&&k==="init"&&(r.proto&&(u?u.doubleProto<0&&(u.doubleProto=c.start):this.raiseRecoverable(c.start,"Redefinition of __proto__ property")),r.proto=!0);return}v="$"+v;var A=r[v];if(A){var N;k==="init"?N=this.strict&&A.init||A.get||A.set:N=A.init||A[k],N&&this.raiseRecoverable(c.start,"Redefinition of property")}else A=r[v]={init:!1,get:!1,set:!1};A[k]=!0}},X.parseExpression=function(t,r){var u=this.start,c=this.startLoc,v=this.parseMaybeAssign(t,r);if(this.type===d.comma){var k=this.startNodeAt(u,c);for(k.expressions=[v];this.eat(d.comma);)k.expressions.push(this.parseMaybeAssign(t,r));return this.finishNode(k,"SequenceExpression")}return v},X.parseMaybeAssign=function(t,r,u){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(t);this.exprAllowed=!1}var c=!1,v=-1,k=-1,A=-1;r?(v=r.parenthesizedAssign,k=r.trailingComma,A=r.doubleProto,r.parenthesizedAssign=r.trailingComma=-1):(r=new Wt,c=!0);var N=this.start,V=this.startLoc;(this.type===d.parenL||this.type===d.name)&&(this.potentialArrowAt=this.start,this.potentialArrowInForAwait=t==="await");var J=this.parseMaybeConditional(t,r);if(u&&(J=u.call(this,J,N,V)),this.type.isAssign){var $=this.startNodeAt(N,V);return $.operator=this.value,this.type===d.eq&&(J=this.toAssignable(J,!1,r)),c||(r.parenthesizedAssign=r.trailingComma=r.doubleProto=-1),r.shorthandAssign>=J.start&&(r.shorthandAssign=-1),this.type===d.eq?this.checkLValPattern(J):this.checkLValSimple(J),$.left=J,this.next(),$.right=this.parseMaybeAssign(t),A>-1&&(r.doubleProto=A),this.finishNode($,"AssignmentExpression")}else c&&this.checkExpressionErrors(r,!0);return v>-1&&(r.parenthesizedAssign=v),k>-1&&(r.trailingComma=k),J},X.parseMaybeConditional=function(t,r){var u=this.start,c=this.startLoc,v=this.parseExprOps(t,r);if(this.checkExpressionErrors(r))return v;if(this.eat(d.question)){var k=this.startNodeAt(u,c);return k.test=v,k.consequent=this.parseMaybeAssign(),this.expect(d.colon),k.alternate=this.parseMaybeAssign(t),this.finishNode(k,"ConditionalExpression")}return v},X.parseExprOps=function(t,r){var u=this.start,c=this.startLoc,v=this.parseMaybeUnary(r,!1,!1,t);return this.checkExpressionErrors(r)||v.start===u&&v.type==="ArrowFunctionExpression"?v:this.parseExprOp(v,u,c,-1,t)},X.parseExprOp=function(t,r,u,c,v){var k=this.type.binop;if(k!=null&&(!v||this.type!==d._in)&&k>c){var A=this.type===d.logicalOR||this.type===d.logicalAND,N=this.type===d.coalesce;N&&(k=d.logicalAND.binop);var V=this.value;this.next();var J=this.start,$=this.startLoc,le=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,v),J,$,k,v),ke=this.buildBinary(r,u,t,le,V,A||N);return(A&&this.type===d.coalesce||N&&(this.type===d.logicalOR||this.type===d.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(ke,r,u,c,v)}return t},X.buildBinary=function(t,r,u,c,v,k){c.type==="PrivateIdentifier"&&this.raise(c.start,"Private identifier can only be left side of binary expression");var A=this.startNodeAt(t,r);return A.left=u,A.operator=v,A.right=c,this.finishNode(A,k?"LogicalExpression":"BinaryExpression")},X.parseMaybeUnary=function(t,r,u,c){var v=this.start,k=this.startLoc,A;if(this.isContextual("await")&&this.canAwait)A=this.parseAwait(c),r=!0;else if(this.type.prefix){var N=this.startNode(),V=this.type===d.incDec;N.operator=this.value,N.prefix=!0,this.next(),N.argument=this.parseMaybeUnary(null,!0,V,c),this.checkExpressionErrors(t,!0),V?this.checkLValSimple(N.argument):this.strict&&N.operator==="delete"&&Yi(N.argument)?this.raiseRecoverable(N.start,"Deleting local variable in strict mode"):N.operator==="delete"&&Si(N.argument)?this.raiseRecoverable(N.start,"Private fields can not be deleted"):r=!0,A=this.finishNode(N,V?"UpdateExpression":"UnaryExpression")}else if(!r&&this.type===d.privateId)(c||this.privateNameStack.length===0)&&this.options.checkPrivateFields&&this.unexpected(),A=this.parsePrivateIdent(),this.type!==d._in&&this.unexpected();else{if(A=this.parseExprSubscripts(t,c),this.checkExpressionErrors(t))return A;for(;this.type.postfix&&!this.canInsertSemicolon();){var J=this.startNodeAt(v,k);J.operator=this.value,J.prefix=!1,J.argument=A,this.checkLValSimple(A),this.next(),A=this.finishNode(J,"UpdateExpression")}}if(!u&&this.eat(d.starstar))if(r)this.unexpected(this.lastTokStart);else return this.buildBinary(v,k,A,this.parseMaybeUnary(null,!1,!1,c),"**",!1);else return A};function Yi(t){return t.type==="Identifier"||t.type==="ParenthesizedExpression"&&Yi(t.expression)}function Si(t){return t.type==="MemberExpression"&&t.property.type==="PrivateIdentifier"||t.type==="ChainExpression"&&Si(t.expression)||t.type==="ParenthesizedExpression"&&Si(t.expression)}X.parseExprSubscripts=function(t,r){var u=this.start,c=this.startLoc,v=this.parseExprAtom(t,r);if(v.type==="ArrowFunctionExpression"&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==")")return v;var k=this.parseSubscripts(v,u,c,!1,r);return t&&k.type==="MemberExpression"&&(t.parenthesizedAssign>=k.start&&(t.parenthesizedAssign=-1),t.parenthesizedBind>=k.start&&(t.parenthesizedBind=-1),t.trailingComma>=k.start&&(t.trailingComma=-1)),k},X.parseSubscripts=function(t,r,u,c,v){for(var k=this.options.ecmaVersion>=8&&t.type==="Identifier"&&t.name==="async"&&this.lastTokEnd===t.end&&!this.canInsertSemicolon()&&t.end-t.start===5&&this.potentialArrowAt===t.start,A=!1;;){var N=this.parseSubscript(t,r,u,c,k,A,v);if(N.optional&&(A=!0),N===t||N.type==="ArrowFunctionExpression"){if(A){var V=this.startNodeAt(r,u);V.expression=N,N=this.finishNode(V,"ChainExpression")}return N}t=N}},X.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(d.arrow)},X.parseSubscriptAsyncArrow=function(t,r,u,c){return this.parseArrowExpression(this.startNodeAt(t,r),u,!0,c)},X.parseSubscript=function(t,r,u,c,v,k,A){var N=this.options.ecmaVersion>=11,V=N&&this.eat(d.questionDot);c&&V&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var J=this.eat(d.bracketL);if(J||V&&this.type!==d.parenL&&this.type!==d.backQuote||this.eat(d.dot)){var $=this.startNodeAt(r,u);$.object=t,J?($.property=this.parseExpression(),this.expect(d.bracketR)):this.type===d.privateId&&t.type!=="Super"?$.property=this.parsePrivateIdent():$.property=this.parseIdent(this.options.allowReserved!=="never"),$.computed=!!J,N&&($.optional=V),t=this.finishNode($,"MemberExpression")}else if(!c&&this.eat(d.parenL)){var le=new Wt,ke=this.yieldPos,Lt=this.awaitPos,xt=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var Qt=this.parseExprList(d.parenR,this.options.ecmaVersion>=8,!1,le);if(v&&!V&&this.shouldParseAsyncArrow())return this.checkPatternErrors(le,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=ke,this.awaitPos=Lt,this.awaitIdentPos=xt,this.parseSubscriptAsyncArrow(r,u,Qt,A);this.checkExpressionErrors(le,!0),this.yieldPos=ke||this.yieldPos,this.awaitPos=Lt||this.awaitPos,this.awaitIdentPos=xt||this.awaitIdentPos;var yt=this.startNodeAt(r,u);yt.callee=t,yt.arguments=Qt,N&&(yt.optional=V),t=this.finishNode(yt,"CallExpression")}else if(this.type===d.backQuote){(V||k)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var vt=this.startNodeAt(r,u);vt.tag=t,vt.quasi=this.parseTemplate({isTagged:!0}),t=this.finishNode(vt,"TaggedTemplateExpression")}return t},X.parseExprAtom=function(t,r,u){this.type===d.slash&&this.readRegexp();var c,v=this.potentialArrowAt===this.start;switch(this.type){case d._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),c=this.startNode(),this.next(),this.type===d.parenL&&!this.allowDirectSuper&&this.raise(c.start,"super() call outside constructor of a subclass"),this.type!==d.dot&&this.type!==d.bracketL&&this.type!==d.parenL&&this.unexpected(),this.finishNode(c,"Super");case d._this:return c=this.startNode(),this.next(),this.finishNode(c,"ThisExpression");case d.name:var k=this.start,A=this.startLoc,N=this.containsEsc,V=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!N&&V.name==="async"&&!this.canInsertSemicolon()&&this.eat(d._function))return this.overrideContext(pe.f_expr),this.parseFunction(this.startNodeAt(k,A),0,!1,!0,r);if(v&&!this.canInsertSemicolon()){if(this.eat(d.arrow))return this.parseArrowExpression(this.startNodeAt(k,A),[V],!1,r);if(this.options.ecmaVersion>=8&&V.name==="async"&&this.type===d.name&&!N&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc))return V=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(d.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(k,A),[V],!0,r)}return V;case d.regexp:var J=this.value;return c=this.parseLiteral(J.value),c.regex={pattern:J.pattern,flags:J.flags},c;case d.num:case d.string:return this.parseLiteral(this.value);case d._null:case d._true:case d._false:return c=this.startNode(),c.value=this.type===d._null?null:this.type===d._true,c.raw=this.type.keyword,this.next(),this.finishNode(c,"Literal");case d.parenL:var $=this.start,le=this.parseParenAndDistinguishExpression(v,r);return t&&(t.parenthesizedAssign<0&&!this.isSimpleAssignTarget(le)&&(t.parenthesizedAssign=$),t.parenthesizedBind<0&&(t.parenthesizedBind=$)),le;case d.bracketL:return c=this.startNode(),this.next(),c.elements=this.parseExprList(d.bracketR,!0,!0,t),this.finishNode(c,"ArrayExpression");case d.braceL:return this.overrideContext(pe.b_expr),this.parseObj(!1,t);case d._function:return c=this.startNode(),this.next(),this.parseFunction(c,0);case d._class:return this.parseClass(this.startNode(),!1);case d._new:return this.parseNew();case d.backQuote:return this.parseTemplate();case d._import:return this.options.ecmaVersion>=11?this.parseExprImport(u):this.unexpected();default:return this.parseExprAtomDefault()}},X.parseExprAtomDefault=function(){this.unexpected()},X.parseExprImport=function(t){var r=this.startNode();if(this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import"),this.next(),this.type===d.parenL&&!t)return this.parseDynamicImport(r);if(this.type===d.dot){var u=this.startNodeAt(r.start,r.loc&&r.loc.start);return u.name="import",r.meta=this.finishNode(u,"Identifier"),this.parseImportMeta(r)}else this.unexpected()},X.parseDynamicImport=function(t){if(this.next(),t.source=this.parseMaybeAssign(),this.options.ecmaVersion>=16)this.eat(d.parenR)?t.options=null:(this.expect(d.comma),this.afterTrailingComma(d.parenR)?t.options=null:(t.options=this.parseMaybeAssign(),this.eat(d.parenR)||(this.expect(d.comma),this.afterTrailingComma(d.parenR)||this.unexpected())));else if(!this.eat(d.parenR)){var r=this.start;this.eat(d.comma)&&this.eat(d.parenR)?this.raiseRecoverable(r,"Trailing comma is not allowed in import()"):this.unexpected(r)}return this.finishNode(t,"ImportExpression")},X.parseImportMeta=function(t){this.next();var r=this.containsEsc;return t.property=this.parseIdent(!0),t.property.name!=="meta"&&this.raiseRecoverable(t.property.start,"The only valid meta property for import is 'import.meta'"),r&&this.raiseRecoverable(t.start,"'import.meta' must not contain escaped characters"),this.options.sourceType!=="module"&&!this.options.allowImportExportEverywhere&&this.raiseRecoverable(t.start,"Cannot use 'import.meta' outside a module"),this.finishNode(t,"MetaProperty")},X.parseLiteral=function(t){var r=this.startNode();return r.value=t,r.raw=this.input.slice(this.start,this.end),r.raw.charCodeAt(r.raw.length-1)===110&&(r.bigint=r.value!=null?r.value.toString():r.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(r,"Literal")},X.parseParenExpression=function(){this.expect(d.parenL);var t=this.parseExpression();return this.expect(d.parenR),t},X.shouldParseArrow=function(t){return!this.canInsertSemicolon()},X.parseParenAndDistinguishExpression=function(t,r){var u=this.start,c=this.startLoc,v,k=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var A=this.start,N=this.startLoc,V=[],J=!0,$=!1,le=new Wt,ke=this.yieldPos,Lt=this.awaitPos,xt;for(this.yieldPos=0,this.awaitPos=0;this.type!==d.parenR;)if(J?J=!1:this.expect(d.comma),k&&this.afterTrailingComma(d.parenR,!0)){$=!0;break}else if(this.type===d.ellipsis){xt=this.start,V.push(this.parseParenItem(this.parseRestBinding())),this.type===d.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}else V.push(this.parseMaybeAssign(!1,le,this.parseParenItem));var Qt=this.lastTokEnd,yt=this.lastTokEndLoc;if(this.expect(d.parenR),t&&this.shouldParseArrow(V)&&this.eat(d.arrow))return this.checkPatternErrors(le,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=ke,this.awaitPos=Lt,this.parseParenArrowList(u,c,V,r);(!V.length||$)&&this.unexpected(this.lastTokStart),xt&&this.unexpected(xt),this.checkExpressionErrors(le,!0),this.yieldPos=ke||this.yieldPos,this.awaitPos=Lt||this.awaitPos,V.length>1?(v=this.startNodeAt(A,N),v.expressions=V,this.finishNodeAt(v,"SequenceExpression",Qt,yt)):v=V[0]}else v=this.parseParenExpression();if(this.options.preserveParens){var vt=this.startNodeAt(u,c);return vt.expression=v,this.finishNode(vt,"ParenthesizedExpression")}else return v},X.parseParenItem=function(t){return t},X.parseParenArrowList=function(t,r,u,c){return this.parseArrowExpression(this.startNodeAt(t,r),u,!1,c)};var sa=[];X.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var t=this.startNode();if(this.next(),this.options.ecmaVersion>=6&&this.type===d.dot){var r=this.startNodeAt(t.start,t.loc&&t.loc.start);r.name="new",t.meta=this.finishNode(r,"Identifier"),this.next();var u=this.containsEsc;return t.property=this.parseIdent(!0),t.property.name!=="target"&&this.raiseRecoverable(t.property.start,"The only valid meta property for new is 'new.target'"),u&&this.raiseRecoverable(t.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(t.start,"'new.target' can only be used in functions and class static block"),this.finishNode(t,"MetaProperty")}var c=this.start,v=this.startLoc;return t.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),c,v,!0,!1),this.eat(d.parenL)?t.arguments=this.parseExprList(d.parenR,this.options.ecmaVersion>=8,!1):t.arguments=sa,this.finishNode(t,"NewExpression")},X.parseTemplateElement=function(t){var r=t.isTagged,u=this.startNode();return this.type===d.invalidTemplate?(r||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),u.value={raw:this.value.replace(/\r\n?/g,`
|
|
4
|
-
`),cooked:null}):
|
|
5
|
-
`),cooked:this.value},this.next(),u.tail=this.type===d.backQuote,this.finishNode(u,"TemplateElement")},X.parseTemplate=function(t){t===void 0&&(t={});var r=t.isTagged;r===void 0&&(r=!1);var u=this.startNode();this.next(),u.expressions=[];var c=this.parseTemplateElement({isTagged:r});for(u.quasis=[c];!c.tail;)this.type===d.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(d.dollarBraceL),u.expressions.push(this.parseExpression()),this.expect(d.braceR),u.quasis.push(c=this.parseTemplateElement({isTagged:r}));return this.next(),this.finishNode(u,"TemplateLiteral")},X.isAsyncProp=function(t){return!t.computed&&t.key.type==="Identifier"&&t.key.name==="async"&&(this.type===d.name||this.type===d.num||this.type===d.string||this.type===d.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===d.star)&&!ve.test(this.input.slice(this.lastTokEnd,this.start))},X.parseObj=function(t,r){var u=this.startNode(),c=!0,v={};for(u.properties=[],this.next();!this.eat(d.braceR);){if(c)c=!1;else if(this.expect(d.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(d.braceR))break;var k=this.parseProperty(t,r);t||this.checkPropClash(k,v,r),u.properties.push(k)}return this.finishNode(u,t?"ObjectPattern":"ObjectExpression")},X.parseProperty=function(t,r){var u=this.startNode(),c,v,k,A;if(this.options.ecmaVersion>=9&&this.eat(d.ellipsis))return t?(u.argument=this.parseIdent(!1),this.type===d.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.finishNode(u,"RestElement")):(u.argument=this.parseMaybeAssign(!1,r),this.type===d.comma&&r&&r.trailingComma<0&&(r.trailingComma=this.start),this.finishNode(u,"SpreadElement"));this.options.ecmaVersion>=6&&(u.method=!1,u.shorthand=!1,(t||r)&&(k=this.start,A=this.startLoc),t||(c=this.eat(d.star)));var N=this.containsEsc;return this.parsePropertyName(u),!t&&!N&&this.options.ecmaVersion>=8&&!c&&this.isAsyncProp(u)?(v=!0,c=this.options.ecmaVersion>=9&&this.eat(d.star),this.parsePropertyName(u)):v=!1,this.parsePropertyValue(u,t,c,v,k,A,r,N),this.finishNode(u,"Property")},X.parseGetterSetter=function(t){var r=t.key.name;this.parsePropertyName(t),t.value=this.parseMethod(!1),t.kind=r;var u=t.kind==="get"?0:1;if(t.value.params.length!==u){var c=t.value.start;t.kind==="get"?this.raiseRecoverable(c,"getter should have no params"):this.raiseRecoverable(c,"setter should have exactly one param")}else t.kind==="set"&&t.value.params[0].type==="RestElement"&&this.raiseRecoverable(t.value.params[0].start,"Setter cannot use rest params")},X.parsePropertyValue=function(t,r,u,c,v,k,A,N){(u||c)&&this.type===d.colon&&this.unexpected(),this.eat(d.colon)?(t.value=r?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,A),t.kind="init"):this.options.ecmaVersion>=6&&this.type===d.parenL?(r&&this.unexpected(),t.method=!0,t.value=this.parseMethod(u,c),t.kind="init"):!r&&!N&&this.options.ecmaVersion>=5&&!t.computed&&t.key.type==="Identifier"&&(t.key.name==="get"||t.key.name==="set")&&this.type!==d.comma&&this.type!==d.braceR&&this.type!==d.eq?((u||c)&&this.unexpected(),this.parseGetterSetter(t)):this.options.ecmaVersion>=6&&!t.computed&&t.key.type==="Identifier"?((u||c)&&this.unexpected(),this.checkUnreserved(t.key),t.key.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=v),r?t.value=this.parseMaybeDefault(v,k,this.copyNode(t.key)):this.type===d.eq&&A?(A.shorthandAssign<0&&(A.shorthandAssign=this.start),t.value=this.parseMaybeDefault(v,k,this.copyNode(t.key))):t.value=this.copyNode(t.key),t.kind="init",t.shorthand=!0):this.unexpected()},X.parsePropertyName=function(t){if(this.options.ecmaVersion>=6){if(this.eat(d.bracketL))return t.computed=!0,t.key=this.parseMaybeAssign(),this.expect(d.bracketR),t.key;t.computed=!1}return t.key=this.type===d.num||this.type===d.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")},X.initFunction=function(t){t.id=null,this.options.ecmaVersion>=6&&(t.generator=t.expression=!1),this.options.ecmaVersion>=8&&(t.async=!1)},X.parseMethod=function(t,r,u){var c=this.startNode(),v=this.yieldPos,k=this.awaitPos,A=this.awaitIdentPos;return this.initFunction(c),this.options.ecmaVersion>=6&&(c.generator=t),this.options.ecmaVersion>=8&&(c.async=!!r),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(dt(r,c.generator)|me|(u?Se:0)),this.expect(d.parenL),c.params=this.parseBindingList(d.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(c,!1,!0,!1),this.yieldPos=v,this.awaitPos=k,this.awaitIdentPos=A,this.finishNode(c,"FunctionExpression")},X.parseArrowExpression=function(t,r,u,c){var v=this.yieldPos,k=this.awaitPos,A=this.awaitIdentPos;return this.enterScope(dt(u,!1)|ue),this.initFunction(t),this.options.ecmaVersion>=8&&(t.async=!!u),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,t.params=this.toAssignableList(r,!0),this.parseFunctionBody(t,!0,!1,c),this.yieldPos=v,this.awaitPos=k,this.awaitIdentPos=A,this.finishNode(t,"ArrowFunctionExpression")},X.parseFunctionBody=function(t,r,u,c){var v=r&&this.type!==d.braceL,k=this.strict,A=!1;if(v)t.body=this.parseMaybeAssign(c),t.expression=!0,this.checkParams(t,!1);else{var N=this.options.ecmaVersion>=7&&!this.isSimpleParamList(t.params);(!k||N)&&(A=this.strictDirective(this.end),A&&N&&this.raiseRecoverable(t.start,"Illegal 'use strict' directive in function with non-simple parameter list"));var V=this.labels;this.labels=[],A&&(this.strict=!0),this.checkParams(t,!k&&!A&&!r&&!u&&this.isSimpleParamList(t.params)),this.strict&&t.id&&this.checkLValSimple(t.id,_t),t.body=this.parseBlock(!1,void 0,A&&!k),t.expression=!1,this.adaptDirectivePrologue(t.body.body),this.labels=V}this.exitScope()},X.isSimpleParamList=function(t){for(var r=0,u=t;r<u.length;r+=1){var c=u[r];if(c.type!=="Identifier")return!1}return!0},X.checkParams=function(t,r){for(var u=Object.create(null),c=0,v=t.params;c<v.length;c+=1){var k=v[c];this.checkLValInnerPattern(k,nt,r?null:u)}},X.parseExprList=function(t,r,u,c){for(var v=[],k=!0;!this.eat(t);){if(k)k=!1;else if(this.expect(d.comma),r&&this.afterTrailingComma(t))break;var A=void 0;u&&this.type===d.comma?A=null:this.type===d.ellipsis?(A=this.parseSpread(c),c&&this.type===d.comma&&c.trailingComma<0&&(c.trailingComma=this.start)):A=this.parseMaybeAssign(!1,c),v.push(A)}return v},X.checkUnreserved=function(t){var r=t.start,u=t.end,c=t.name;if(this.inGenerator&&c==="yield"&&this.raiseRecoverable(r,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&c==="await"&&this.raiseRecoverable(r,"Cannot use 'await' as identifier inside an async function"),!(this.currentThisScope().flags&Le)&&c==="arguments"&&this.raiseRecoverable(r,"Cannot use 'arguments' in class field initializer"),this.inClassStaticBlock&&(c==="arguments"||c==="await")&&this.raise(r,"Cannot use "+c+" in class static initialization block"),this.keywords.test(c)&&this.raise(r,"Unexpected keyword '"+c+"'"),!(this.options.ecmaVersion<6&&this.input.slice(r,u).indexOf("\\")!==-1)){var v=this.strict?this.reservedWordsStrict:this.reservedWords;v.test(c)&&(!this.inAsync&&c==="await"&&this.raiseRecoverable(r,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(r,"The keyword '"+c+"' is reserved"))}},X.parseIdent=function(t){var r=this.parseIdentNode();return this.next(!!t),this.finishNode(r,"Identifier"),t||(this.checkUnreserved(r),r.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=r.start)),r},X.parseIdentNode=function(){var t=this.startNode();return this.type===d.name?t.name=this.value:this.type.keyword?(t.name=this.type.keyword,(t.name==="class"||t.name==="function")&&(this.lastTokEnd!==this.lastTokStart+1||this.input.charCodeAt(this.lastTokStart)!==46)&&this.context.pop(),this.type=d.name):this.unexpected(),t},X.parsePrivateIdent=function(){var t=this.startNode();return this.type===d.privateId?t.name=this.value:this.unexpected(),this.next(),this.finishNode(t,"PrivateIdentifier"),this.options.checkPrivateFields&&(this.privateNameStack.length===0?this.raise(t.start,"Private field '#"+t.name+"' must be declared in an enclosing class"):this.privateNameStack[this.privateNameStack.length-1].used.push(t)),t},X.parseYield=function(t){this.yieldPos||(this.yieldPos=this.start);var r=this.startNode();return this.next(),this.type===d.semi||this.canInsertSemicolon()||this.type!==d.star&&!this.type.startsExpr?(r.delegate=!1,r.argument=null):(r.delegate=this.eat(d.star),r.argument=this.parseMaybeAssign(t)),this.finishNode(r,"YieldExpression")},X.parseAwait=function(t){this.awaitPos||(this.awaitPos=this.start);var r=this.startNode();return this.next(),r.argument=this.parseMaybeUnary(null,!0,!1,t),this.finishNode(r,"AwaitExpression")};var Kt=ae.prototype;Kt.raise=function(t,r){var u=w(this.input,t);r+=" ("+u.line+":"+u.column+")",this.sourceFile&&(r+=" in "+this.sourceFile);var c=new SyntaxError(r);throw c.pos=t,c.loc=u,c.raisedAt=this.pos,c},Kt.raiseRecoverable=Kt.raise,Kt.curPosition=function(){if(this.options.locations)return new m(this.curLine,this.pos-this.lineStart)};var st=ae.prototype,ra=function(r){this.flags=r,this.var=[],this.lexical=[],this.functions=[]};st.enterScope=function(t){this.scopeStack.push(new ra(t))},st.exitScope=function(){this.scopeStack.pop()},st.treatFunctionsAsVarInScope=function(t){return t.flags&G||!this.inModule&&t.flags&j},st.declareName=function(t,r,u){var c=!1;if(r===De){var v=this.currentScope();c=v.lexical.indexOf(t)>-1||v.functions.indexOf(t)>-1||v.var.indexOf(t)>-1,v.lexical.push(t),this.inModule&&v.flags&j&&delete this.undefinedExports[t]}else if(r===At){var k=this.currentScope();k.lexical.push(t)}else if(r===ot){var A=this.currentScope();this.treatFunctionsAsVar?c=A.lexical.indexOf(t)>-1:c=A.lexical.indexOf(t)>-1||A.var.indexOf(t)>-1,A.functions.push(t)}else for(var N=this.scopeStack.length-1;N>=0;--N){var V=this.scopeStack[N];if(V.lexical.indexOf(t)>-1&&!(V.flags&ce&&V.lexical[0]===t)||!this.treatFunctionsAsVarInScope(V)&&V.functions.indexOf(t)>-1){c=!0;break}if(V.var.push(t),this.inModule&&V.flags&j&&delete this.undefinedExports[t],V.flags&Le)break}c&&this.raiseRecoverable(u,"Identifier '"+t+"' has already been declared")},st.checkLocalExport=function(t){this.scopeStack[0].lexical.indexOf(t.name)===-1&&this.scopeStack[0].var.indexOf(t.name)===-1&&(this.undefinedExports[t.name]=t)},st.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},st.currentVarScope=function(){for(var t=this.scopeStack.length-1;;t--){var r=this.scopeStack[t];if(r.flags&(Le|ze|Ce))return r}},st.currentThisScope=function(){for(var t=this.scopeStack.length-1;;t--){var r=this.scopeStack[t];if(r.flags&(Le|ze|Ce)&&!(r.flags&ue))return r}};var It=function(r,u,c){this.type="",this.start=u,this.end=0,r.options.locations&&(this.loc=new b(r,c)),r.options.directSourceFile&&(this.sourceFile=r.options.directSourceFile),r.options.ranges&&(this.range=[u,0])},Nt=ae.prototype;Nt.startNode=function(){return new It(this,this.start,this.startLoc)},Nt.startNodeAt=function(t,r){return new It(this,t,r)};function Zi(t,r,u,c){return t.type=r,t.end=u,this.options.locations&&(t.loc.end=c),this.options.ranges&&(t.range[1]=u),t}Nt.finishNode=function(t,r){return Zi.call(this,t,r,this.lastTokEnd,this.lastTokEndLoc)},Nt.finishNodeAt=function(t,r,u,c){return Zi.call(this,t,r,u,c)},Nt.copyNode=function(t){var r=new It(this,t.start,this.startLoc);for(var u in t)r[u]=t[u];return r};var aa="Berf Beria_Erfe Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sidetic Sidt Sunu Sunuwar Tai_Yo Tayo Todhri Todr Tolong_Siki Tols Tulu_Tigalari Tutg Unknown Zzzz",$i="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",es=$i+" Extended_Pictographic",ts=es,is=ts+" EBase EComp EMod EPres ExtPict",ss=is,na=ss,oa={9:$i,10:es,11:ts,12:is,13:ss,14:na},ua="Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji",ha={9:"",10:"",11:"",12:"",13:"",14:ua},rs="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",as="Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",ns=as+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",os=ns+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",us=os+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",hs=us+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",ca=hs+" "+aa,pa={9:as,10:ns,11:os,12:us,13:hs,14:ca},cs={};function la(t){var r=cs[t]={binary:s(oa[t]+" "+rs),binaryOfStrings:s(ha[t]),nonBinary:{General_Category:s(rs),Script:s(pa[t])}};r.nonBinary.Script_Extensions=r.nonBinary.Script,r.nonBinary.gc=r.nonBinary.General_Category,r.nonBinary.sc=r.nonBinary.Script,r.nonBinary.scx=r.nonBinary.Script_Extensions}for(var Ci=0,ps=[9,10,11,12,13,14];Ci<ps.length;Ci+=1){var fa=ps[Ci];la(fa)}var U=ae.prototype,Gt=function(r,u){this.parent=r,this.base=u||this};Gt.prototype.separatedFrom=function(r){for(var u=this;u;u=u.parent)for(var c=r;c;c=c.parent)if(u.base===c.base&&u!==c)return!0;return!1},Gt.prototype.sibling=function(){return new Gt(this.parent,this.base)};var Je=function(r){this.parser=r,this.validFlags="gim"+(r.options.ecmaVersion>=6?"uy":"")+(r.options.ecmaVersion>=9?"s":"")+(r.options.ecmaVersion>=13?"d":"")+(r.options.ecmaVersion>=15?"v":""),this.unicodeProperties=cs[r.options.ecmaVersion>=14?14:r.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchV=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=Object.create(null),this.backReferenceNames=[],this.branchID=null};Je.prototype.reset=function(r,u,c){var v=c.indexOf("v")!==-1,k=c.indexOf("u")!==-1;this.start=r|0,this.source=u+"",this.flags=c,v&&this.parser.options.ecmaVersion>=15?(this.switchU=!0,this.switchV=!0,this.switchN=!0):(this.switchU=k&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=k&&this.parser.options.ecmaVersion>=9)},Je.prototype.raise=function(r){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+r)},Je.prototype.at=function(r,u){u===void 0&&(u=!1);var c=this.source,v=c.length;if(r>=v)return-1;var k=c.charCodeAt(r);if(!(u||this.switchU)||k<=55295||k>=57344||r+1>=v)return k;var A=c.charCodeAt(r+1);return A>=56320&&A<=57343?(k<<10)+A-56613888:k},Je.prototype.nextIndex=function(r,u){u===void 0&&(u=!1);var c=this.source,v=c.length;if(r>=v)return v;var k=c.charCodeAt(r),A;return!(u||this.switchU)||k<=55295||k>=57344||r+1>=v||(A=c.charCodeAt(r+1))<56320||A>57343?r+1:r+2},Je.prototype.current=function(r){return r===void 0&&(r=!1),this.at(this.pos,r)},Je.prototype.lookahead=function(r){return r===void 0&&(r=!1),this.at(this.nextIndex(this.pos,r),r)},Je.prototype.advance=function(r){r===void 0&&(r=!1),this.pos=this.nextIndex(this.pos,r)},Je.prototype.eat=function(r,u){return u===void 0&&(u=!1),this.current(u)===r?(this.advance(u),!0):!1},Je.prototype.eatChars=function(r,u){u===void 0&&(u=!1);for(var c=this.pos,v=0,k=r;v<k.length;v+=1){var A=k[v],N=this.at(c,u);if(N===-1||N!==A)return!1;c=this.nextIndex(c,u)}return this.pos=c,!0},U.validateRegExpFlags=function(t){for(var r=t.validFlags,u=t.flags,c=!1,v=!1,k=0;k<u.length;k++){var A=u.charAt(k);r.indexOf(A)===-1&&this.raise(t.start,"Invalid regular expression flag"),u.indexOf(A,k+1)>-1&&this.raise(t.start,"Duplicate regular expression flag"),A==="u"&&(c=!0),A==="v"&&(v=!0)}this.options.ecmaVersion>=15&&c&&v&&this.raise(t.start,"Invalid regular expression flag")};function da(t){for(var r in t)return!0;return!1}U.validateRegExpPattern=function(t){this.regexp_pattern(t),!t.switchN&&this.options.ecmaVersion>=9&&da(t.groupNames)&&(t.switchN=!0,this.regexp_pattern(t))},U.regexp_pattern=function(t){t.pos=0,t.lastIntValue=0,t.lastStringValue="",t.lastAssertionIsQuantifiable=!1,t.numCapturingParens=0,t.maxBackReference=0,t.groupNames=Object.create(null),t.backReferenceNames.length=0,t.branchID=null,this.regexp_disjunction(t),t.pos!==t.source.length&&(t.eat(41)&&t.raise("Unmatched ')'"),(t.eat(93)||t.eat(125))&&t.raise("Lone quantifier brackets")),t.maxBackReference>t.numCapturingParens&&t.raise("Invalid escape");for(var r=0,u=t.backReferenceNames;r<u.length;r+=1){var c=u[r];t.groupNames[c]||t.raise("Invalid named capture referenced")}},U.regexp_disjunction=function(t){var r=this.options.ecmaVersion>=16;for(r&&(t.branchID=new Gt(t.branchID,null)),this.regexp_alternative(t);t.eat(124);)r&&(t.branchID=t.branchID.sibling()),this.regexp_alternative(t);r&&(t.branchID=t.branchID.parent),this.regexp_eatQuantifier(t,!0)&&t.raise("Nothing to repeat"),t.eat(123)&&t.raise("Lone quantifier brackets")},U.regexp_alternative=function(t){for(;t.pos<t.source.length&&this.regexp_eatTerm(t););},U.regexp_eatTerm=function(t){return this.regexp_eatAssertion(t)?(t.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(t)&&t.switchU&&t.raise("Invalid quantifier"),!0):(t.switchU?this.regexp_eatAtom(t):this.regexp_eatExtendedAtom(t))?(this.regexp_eatQuantifier(t),!0):!1},U.regexp_eatAssertion=function(t){var r=t.pos;if(t.lastAssertionIsQuantifiable=!1,t.eat(94)||t.eat(36))return!0;if(t.eat(92)){if(t.eat(66)||t.eat(98))return!0;t.pos=r}if(t.eat(40)&&t.eat(63)){var u=!1;if(this.options.ecmaVersion>=9&&(u=t.eat(60)),t.eat(61)||t.eat(33))return this.regexp_disjunction(t),t.eat(41)||t.raise("Unterminated group"),t.lastAssertionIsQuantifiable=!u,!0}return t.pos=r,!1},U.regexp_eatQuantifier=function(t,r){return r===void 0&&(r=!1),this.regexp_eatQuantifierPrefix(t,r)?(t.eat(63),!0):!1},U.regexp_eatQuantifierPrefix=function(t,r){return t.eat(42)||t.eat(43)||t.eat(63)||this.regexp_eatBracedQuantifier(t,r)},U.regexp_eatBracedQuantifier=function(t,r){var u=t.pos;if(t.eat(123)){var c=0,v=-1;if(this.regexp_eatDecimalDigits(t)&&(c=t.lastIntValue,t.eat(44)&&this.regexp_eatDecimalDigits(t)&&(v=t.lastIntValue),t.eat(125)))return v!==-1&&v<c&&!r&&t.raise("numbers out of order in {} quantifier"),!0;t.switchU&&!r&&t.raise("Incomplete quantifier"),t.pos=u}return!1},U.regexp_eatAtom=function(t){return this.regexp_eatPatternCharacters(t)||t.eat(46)||this.regexp_eatReverseSolidusAtomEscape(t)||this.regexp_eatCharacterClass(t)||this.regexp_eatUncapturingGroup(t)||this.regexp_eatCapturingGroup(t)},U.regexp_eatReverseSolidusAtomEscape=function(t){var r=t.pos;if(t.eat(92)){if(this.regexp_eatAtomEscape(t))return!0;t.pos=r}return!1},U.regexp_eatUncapturingGroup=function(t){var r=t.pos;if(t.eat(40)){if(t.eat(63)){if(this.options.ecmaVersion>=16){var u=this.regexp_eatModifiers(t),c=t.eat(45);if(u||c){for(var v=0;v<u.length;v++){var k=u.charAt(v);u.indexOf(k,v+1)>-1&&t.raise("Duplicate regular expression modifiers")}if(c){var A=this.regexp_eatModifiers(t);!u&&!A&&t.current()===58&&t.raise("Invalid regular expression modifiers");for(var N=0;N<A.length;N++){var V=A.charAt(N);(A.indexOf(V,N+1)>-1||u.indexOf(V)>-1)&&t.raise("Duplicate regular expression modifiers")}}}}if(t.eat(58)){if(this.regexp_disjunction(t),t.eat(41))return!0;t.raise("Unterminated group")}}t.pos=r}return!1},U.regexp_eatCapturingGroup=function(t){if(t.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(t):t.current()===63&&t.raise("Invalid group"),this.regexp_disjunction(t),t.eat(41))return t.numCapturingParens+=1,!0;t.raise("Unterminated group")}return!1},U.regexp_eatModifiers=function(t){for(var r="",u=0;(u=t.current())!==-1&&ma(u);)r+=n(u),t.advance();return r};function ma(t){return t===105||t===109||t===115}U.regexp_eatExtendedAtom=function(t){return t.eat(46)||this.regexp_eatReverseSolidusAtomEscape(t)||this.regexp_eatCharacterClass(t)||this.regexp_eatUncapturingGroup(t)||this.regexp_eatCapturingGroup(t)||this.regexp_eatInvalidBracedQuantifier(t)||this.regexp_eatExtendedPatternCharacter(t)},U.regexp_eatInvalidBracedQuantifier=function(t){return this.regexp_eatBracedQuantifier(t,!0)&&t.raise("Nothing to repeat"),!1},U.regexp_eatSyntaxCharacter=function(t){var r=t.current();return ls(r)?(t.lastIntValue=r,t.advance(),!0):!1};function ls(t){return t===36||t>=40&&t<=43||t===46||t===63||t>=91&&t<=94||t>=123&&t<=125}U.regexp_eatPatternCharacters=function(t){for(var r=t.pos,u=0;(u=t.current())!==-1&&!ls(u);)t.advance();return t.pos!==r},U.regexp_eatExtendedPatternCharacter=function(t){var r=t.current();return r!==-1&&r!==36&&!(r>=40&&r<=43)&&r!==46&&r!==63&&r!==91&&r!==94&&r!==124?(t.advance(),!0):!1},U.regexp_groupSpecifier=function(t){if(t.eat(63)){this.regexp_eatGroupName(t)||t.raise("Invalid group");var r=this.options.ecmaVersion>=16,u=t.groupNames[t.lastStringValue];if(u)if(r)for(var c=0,v=u;c<v.length;c+=1){var k=v[c];k.separatedFrom(t.branchID)||t.raise("Duplicate capture group name")}else t.raise("Duplicate capture group name");r?(u||(t.groupNames[t.lastStringValue]=[])).push(t.branchID):t.groupNames[t.lastStringValue]=!0}},U.regexp_eatGroupName=function(t){if(t.lastStringValue="",t.eat(60)){if(this.regexp_eatRegExpIdentifierName(t)&&t.eat(62))return!0;t.raise("Invalid capture group name")}return!1},U.regexp_eatRegExpIdentifierName=function(t){if(t.lastStringValue="",this.regexp_eatRegExpIdentifierStart(t)){for(t.lastStringValue+=n(t.lastIntValue);this.regexp_eatRegExpIdentifierPart(t);)t.lastStringValue+=n(t.lastIntValue);return!0}return!1},U.regexp_eatRegExpIdentifierStart=function(t){var r=t.pos,u=this.options.ecmaVersion>=11,c=t.current(u);return t.advance(u),c===92&&this.regexp_eatRegExpUnicodeEscapeSequence(t,u)&&(c=t.lastIntValue),xa(c)?(t.lastIntValue=c,!0):(t.pos=r,!1)};function xa(t){return K(t,!0)||t===36||t===95}U.regexp_eatRegExpIdentifierPart=function(t){var r=t.pos,u=this.options.ecmaVersion>=11,c=t.current(u);return t.advance(u),c===92&&this.regexp_eatRegExpUnicodeEscapeSequence(t,u)&&(c=t.lastIntValue),ya(c)?(t.lastIntValue=c,!0):(t.pos=r,!1)};function ya(t){return T(t,!0)||t===36||t===95||t===8204||t===8205}U.regexp_eatAtomEscape=function(t){return this.regexp_eatBackReference(t)||this.regexp_eatCharacterClassEscape(t)||this.regexp_eatCharacterEscape(t)||t.switchN&&this.regexp_eatKGroupName(t)?!0:(t.switchU&&(t.current()===99&&t.raise("Invalid unicode escape"),t.raise("Invalid escape")),!1)},U.regexp_eatBackReference=function(t){var r=t.pos;if(this.regexp_eatDecimalEscape(t)){var u=t.lastIntValue;if(t.switchU)return u>t.maxBackReference&&(t.maxBackReference=u),!0;if(u<=t.numCapturingParens)return!0;t.pos=r}return!1},U.regexp_eatKGroupName=function(t){if(t.eat(107)){if(this.regexp_eatGroupName(t))return t.backReferenceNames.push(t.lastStringValue),!0;t.raise("Invalid named reference")}return!1},U.regexp_eatCharacterEscape=function(t){return this.regexp_eatControlEscape(t)||this.regexp_eatCControlLetter(t)||this.regexp_eatZero(t)||this.regexp_eatHexEscapeSequence(t)||this.regexp_eatRegExpUnicodeEscapeSequence(t,!1)||!t.switchU&&this.regexp_eatLegacyOctalEscapeSequence(t)||this.regexp_eatIdentityEscape(t)},U.regexp_eatCControlLetter=function(t){var r=t.pos;if(t.eat(99)){if(this.regexp_eatControlLetter(t))return!0;t.pos=r}return!1},U.regexp_eatZero=function(t){return t.current()===48&&!Jt(t.lookahead())?(t.lastIntValue=0,t.advance(),!0):!1},U.regexp_eatControlEscape=function(t){var r=t.current();return r===116?(t.lastIntValue=9,t.advance(),!0):r===110?(t.lastIntValue=10,t.advance(),!0):r===118?(t.lastIntValue=11,t.advance(),!0):r===102?(t.lastIntValue=12,t.advance(),!0):r===114?(t.lastIntValue=13,t.advance(),!0):!1},U.regexp_eatControlLetter=function(t){var r=t.current();return fs(r)?(t.lastIntValue=r%32,t.advance(),!0):!1};function fs(t){return t>=65&&t<=90||t>=97&&t<=122}U.regexp_eatRegExpUnicodeEscapeSequence=function(t,r){r===void 0&&(r=!1);var u=t.pos,c=r||t.switchU;if(t.eat(117)){if(this.regexp_eatFixedHexDigits(t,4)){var v=t.lastIntValue;if(c&&v>=55296&&v<=56319){var k=t.pos;if(t.eat(92)&&t.eat(117)&&this.regexp_eatFixedHexDigits(t,4)){var A=t.lastIntValue;if(A>=56320&&A<=57343)return t.lastIntValue=(v-55296)*1024+(A-56320)+65536,!0}t.pos=k,t.lastIntValue=v}return!0}if(c&&t.eat(123)&&this.regexp_eatHexDigits(t)&&t.eat(125)&&va(t.lastIntValue))return!0;c&&t.raise("Invalid unicode escape"),t.pos=u}return!1};function va(t){return t>=0&&t<=1114111}U.regexp_eatIdentityEscape=function(t){if(t.switchU)return this.regexp_eatSyntaxCharacter(t)?!0:t.eat(47)?(t.lastIntValue=47,!0):!1;var r=t.current();return r!==99&&(!t.switchN||r!==107)?(t.lastIntValue=r,t.advance(),!0):!1},U.regexp_eatDecimalEscape=function(t){t.lastIntValue=0;var r=t.current();if(r>=49&&r<=57){do t.lastIntValue=10*t.lastIntValue+(r-48),t.advance();while((r=t.current())>=48&&r<=57);return!0}return!1};var ds=0,Ye=1,Be=2;U.regexp_eatCharacterClassEscape=function(t){var r=t.current();if(ga(r))return t.lastIntValue=-1,t.advance(),Ye;var u=!1;if(t.switchU&&this.options.ecmaVersion>=9&&((u=r===80)||r===112)){t.lastIntValue=-1,t.advance();var c;if(t.eat(123)&&(c=this.regexp_eatUnicodePropertyValueExpression(t))&&t.eat(125))return u&&c===Be&&t.raise("Invalid property name"),c;t.raise("Invalid property name")}return ds};function ga(t){return t===100||t===68||t===115||t===83||t===119||t===87}U.regexp_eatUnicodePropertyValueExpression=function(t){var r=t.pos;if(this.regexp_eatUnicodePropertyName(t)&&t.eat(61)){var u=t.lastStringValue;if(this.regexp_eatUnicodePropertyValue(t)){var c=t.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(t,u,c),Ye}}if(t.pos=r,this.regexp_eatLoneUnicodePropertyNameOrValue(t)){var v=t.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(t,v)}return ds},U.regexp_validateUnicodePropertyNameAndValue=function(t,r,u){oe(t.unicodeProperties.nonBinary,r)||t.raise("Invalid property name"),t.unicodeProperties.nonBinary[r].test(u)||t.raise("Invalid property value")},U.regexp_validateUnicodePropertyNameOrValue=function(t,r){if(t.unicodeProperties.binary.test(r))return Ye;if(t.switchV&&t.unicodeProperties.binaryOfStrings.test(r))return Be;t.raise("Invalid property name")},U.regexp_eatUnicodePropertyName=function(t){var r=0;for(t.lastStringValue="";ms(r=t.current());)t.lastStringValue+=n(r),t.advance();return t.lastStringValue!==""};function ms(t){return fs(t)||t===95}U.regexp_eatUnicodePropertyValue=function(t){var r=0;for(t.lastStringValue="";ba(r=t.current());)t.lastStringValue+=n(r),t.advance();return t.lastStringValue!==""};function ba(t){return ms(t)||Jt(t)}U.regexp_eatLoneUnicodePropertyNameOrValue=function(t){return this.regexp_eatUnicodePropertyValue(t)},U.regexp_eatCharacterClass=function(t){if(t.eat(91)){var r=t.eat(94),u=this.regexp_classContents(t);return t.eat(93)||t.raise("Unterminated character class"),r&&u===Be&&t.raise("Negated character class may contain strings"),!0}return!1},U.regexp_classContents=function(t){return t.current()===93?Ye:t.switchV?this.regexp_classSetExpression(t):(this.regexp_nonEmptyClassRanges(t),Ye)},U.regexp_nonEmptyClassRanges=function(t){for(;this.regexp_eatClassAtom(t);){var r=t.lastIntValue;if(t.eat(45)&&this.regexp_eatClassAtom(t)){var u=t.lastIntValue;t.switchU&&(r===-1||u===-1)&&t.raise("Invalid character class"),r!==-1&&u!==-1&&r>u&&t.raise("Range out of order in character class")}}},U.regexp_eatClassAtom=function(t){var r=t.pos;if(t.eat(92)){if(this.regexp_eatClassEscape(t))return!0;if(t.switchU){var u=t.current();(u===99||vs(u))&&t.raise("Invalid class escape"),t.raise("Invalid escape")}t.pos=r}var c=t.current();return c!==93?(t.lastIntValue=c,t.advance(),!0):!1},U.regexp_eatClassEscape=function(t){var r=t.pos;if(t.eat(98))return t.lastIntValue=8,!0;if(t.switchU&&t.eat(45))return t.lastIntValue=45,!0;if(!t.switchU&&t.eat(99)){if(this.regexp_eatClassControlLetter(t))return!0;t.pos=r}return this.regexp_eatCharacterClassEscape(t)||this.regexp_eatCharacterEscape(t)},U.regexp_classSetExpression=function(t){var r=Ye,u;if(!this.regexp_eatClassSetRange(t))if(u=this.regexp_eatClassSetOperand(t)){u===Be&&(r=Be);for(var c=t.pos;t.eatChars([38,38]);){if(t.current()!==38&&(u=this.regexp_eatClassSetOperand(t))){u!==Be&&(r=Ye);continue}t.raise("Invalid character in character class")}if(c!==t.pos)return r;for(;t.eatChars([45,45]);)this.regexp_eatClassSetOperand(t)||t.raise("Invalid character in character class");if(c!==t.pos)return r}else t.raise("Invalid character in character class");for(;;)if(!this.regexp_eatClassSetRange(t)){if(u=this.regexp_eatClassSetOperand(t),!u)return r;u===Be&&(r=Be)}},U.regexp_eatClassSetRange=function(t){var r=t.pos;if(this.regexp_eatClassSetCharacter(t)){var u=t.lastIntValue;if(t.eat(45)&&this.regexp_eatClassSetCharacter(t)){var c=t.lastIntValue;return u!==-1&&c!==-1&&u>c&&t.raise("Range out of order in character class"),!0}t.pos=r}return!1},U.regexp_eatClassSetOperand=function(t){return this.regexp_eatClassSetCharacter(t)?Ye:this.regexp_eatClassStringDisjunction(t)||this.regexp_eatNestedClass(t)},U.regexp_eatNestedClass=function(t){var r=t.pos;if(t.eat(91)){var u=t.eat(94),c=this.regexp_classContents(t);if(t.eat(93))return u&&c===Be&&t.raise("Negated character class may contain strings"),c;t.pos=r}if(t.eat(92)){var v=this.regexp_eatCharacterClassEscape(t);if(v)return v;t.pos=r}return null},U.regexp_eatClassStringDisjunction=function(t){var r=t.pos;if(t.eatChars([92,113])){if(t.eat(123)){var u=this.regexp_classStringDisjunctionContents(t);if(t.eat(125))return u}else t.raise("Invalid escape");t.pos=r}return null},U.regexp_classStringDisjunctionContents=function(t){for(var r=this.regexp_classString(t);t.eat(124);)this.regexp_classString(t)===Be&&(r=Be);return r},U.regexp_classString=function(t){for(var r=0;this.regexp_eatClassSetCharacter(t);)r++;return r===1?Ye:Be},U.regexp_eatClassSetCharacter=function(t){var r=t.pos;if(t.eat(92))return this.regexp_eatCharacterEscape(t)||this.regexp_eatClassSetReservedPunctuator(t)?!0:t.eat(98)?(t.lastIntValue=8,!0):(t.pos=r,!1);var u=t.current();return u<0||u===t.lookahead()&&Sa(u)||Ca(u)?!1:(t.advance(),t.lastIntValue=u,!0)};function Sa(t){return t===33||t>=35&&t<=38||t>=42&&t<=44||t===46||t>=58&&t<=64||t===94||t===96||t===126}function Ca(t){return t===40||t===41||t===45||t===47||t>=91&&t<=93||t>=123&&t<=125}U.regexp_eatClassSetReservedPunctuator=function(t){var r=t.current();return wa(r)?(t.lastIntValue=r,t.advance(),!0):!1};function wa(t){return t===33||t===35||t===37||t===38||t===44||t===45||t>=58&&t<=62||t===64||t===96||t===126}U.regexp_eatClassControlLetter=function(t){var r=t.current();return Jt(r)||r===95?(t.lastIntValue=r%32,t.advance(),!0):!1},U.regexp_eatHexEscapeSequence=function(t){var r=t.pos;if(t.eat(120)){if(this.regexp_eatFixedHexDigits(t,2))return!0;t.switchU&&t.raise("Invalid escape"),t.pos=r}return!1},U.regexp_eatDecimalDigits=function(t){var r=t.pos,u=0;for(t.lastIntValue=0;Jt(u=t.current());)t.lastIntValue=10*t.lastIntValue+(u-48),t.advance();return t.pos!==r};function Jt(t){return t>=48&&t<=57}U.regexp_eatHexDigits=function(t){var r=t.pos,u=0;for(t.lastIntValue=0;xs(u=t.current());)t.lastIntValue=16*t.lastIntValue+ys(u),t.advance();return t.pos!==r};function xs(t){return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}function ys(t){return t>=65&&t<=70?10+(t-65):t>=97&&t<=102?10+(t-97):t-48}U.regexp_eatLegacyOctalEscapeSequence=function(t){if(this.regexp_eatOctalDigit(t)){var r=t.lastIntValue;if(this.regexp_eatOctalDigit(t)){var u=t.lastIntValue;r<=3&&this.regexp_eatOctalDigit(t)?t.lastIntValue=r*64+u*8+t.lastIntValue:t.lastIntValue=r*8+u}else t.lastIntValue=r;return!0}return!1},U.regexp_eatOctalDigit=function(t){var r=t.current();return vs(r)?(t.lastIntValue=r-48,t.advance(),!0):(t.lastIntValue=0,!1)};function vs(t){return t>=48&&t<=55}U.regexp_eatFixedHexDigits=function(t,r){var u=t.pos;t.lastIntValue=0;for(var c=0;c<r;++c){var v=t.current();if(!xs(v))return t.pos=u,!1;t.lastIntValue=16*t.lastIntValue+ys(v),t.advance()}return!0};var Xt=function(r){this.type=r.type,this.value=r.value,this.start=r.start,this.end=r.end,r.options.locations&&(this.loc=new b(r,r.startLoc,r.endLoc)),r.options.ranges&&(this.range=[r.start,r.end])},ie=ae.prototype;ie.next=function(t){!t&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword),this.options.onToken&&this.options.onToken(new Xt(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},ie.getToken=function(){return this.next(),new Xt(this)},typeof Symbol<"u"&&(ie[Symbol.iterator]=function(){var t=this;return{next:function(){var r=t.getToken();return{done:r.type===d.eof,value:r}}}}),ie.nextToken=function(){var t=this.curContext();if((!t||!t.preserveSpace)&&this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length)return this.finishToken(d.eof);if(t.override)return t.override(this);this.readToken(this.fullCharCodeAtPos())},ie.readToken=function(t){return K(t,this.options.ecmaVersion>=6)||t===92?this.readWord():this.getTokenFromCode(t)},ie.fullCharCodeAt=function(t){var r=this.input.charCodeAt(t);if(r<=55295||r>=56320)return r;var u=this.input.charCodeAt(t+1);return u<=56319||u>=57344?r:(r<<10)+u-56613888},ie.fullCharCodeAtPos=function(){return this.fullCharCodeAt(this.pos)},ie.skipBlockComment=function(){var t=this.options.onComment&&this.curPosition(),r=this.pos,u=this.input.indexOf("*/",this.pos+=2);if(u===-1&&this.raise(this.pos-2,"Unterminated comment"),this.pos=u+2,this.options.locations)for(var c=void 0,v=r;(c=Ht(this.input,v,this.pos))>-1;)++this.curLine,v=this.lineStart=c;this.options.onComment&&this.options.onComment(!0,this.input.slice(r+2,u),r,this.pos,t,this.curPosition())},ie.skipLineComment=function(t){for(var r=this.pos,u=this.options.onComment&&this.curPosition(),c=this.input.charCodeAt(this.pos+=t);this.pos<this.input.length&&!Ve(c);)c=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(r+t,this.pos),r,this.pos,u,this.curPosition())},ie.skipSpace=function(){e:for(;this.pos<this.input.length;){var t=this.input.charCodeAt(this.pos);switch(t){case 32:case 160:++this.pos;break;case 13:this.input.charCodeAt(this.pos+1)===10&&++this.pos;case 10:case 8232:case 8233:++this.pos,this.options.locations&&(++this.curLine,this.lineStart=this.pos);break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break e}break;default:if(t>8&&t<14||t>=5760&&Et.test(String.fromCharCode(t)))++this.pos;else break e}}},ie.finishToken=function(t,r){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var u=this.type;this.type=t,this.value=r,this.updateContext(u)},ie.readToken_dot=function(){var t=this.input.charCodeAt(this.pos+1);if(t>=48&&t<=57)return this.readNumber(!0);var r=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&t===46&&r===46?(this.pos+=3,this.finishToken(d.ellipsis)):(++this.pos,this.finishToken(d.dot))},ie.readToken_slash=function(){var t=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):t===61?this.finishOp(d.assign,2):this.finishOp(d.slash,1)},ie.readToken_mult_modulo_exp=function(t){var r=this.input.charCodeAt(this.pos+1),u=1,c=t===42?d.star:d.modulo;return this.options.ecmaVersion>=7&&t===42&&r===42&&(++u,c=d.starstar,r=this.input.charCodeAt(this.pos+2)),r===61?this.finishOp(d.assign,u+1):this.finishOp(c,u)},ie.readToken_pipe_amp=function(t){var r=this.input.charCodeAt(this.pos+1);if(r===t){if(this.options.ecmaVersion>=12){var u=this.input.charCodeAt(this.pos+2);if(u===61)return this.finishOp(d.assign,3)}return this.finishOp(t===124?d.logicalOR:d.logicalAND,2)}return r===61?this.finishOp(d.assign,2):this.finishOp(t===124?d.bitwiseOR:d.bitwiseAND,1)},ie.readToken_caret=function(){var t=this.input.charCodeAt(this.pos+1);return t===61?this.finishOp(d.assign,2):this.finishOp(d.bitwiseXOR,1)},ie.readToken_plus_min=function(t){var r=this.input.charCodeAt(this.pos+1);return r===t?r===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||ve.test(this.input.slice(this.lastTokEnd,this.pos)))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(d.incDec,2):r===61?this.finishOp(d.assign,2):this.finishOp(d.plusMin,1)},ie.readToken_lt_gt=function(t){var r=this.input.charCodeAt(this.pos+1),u=1;return r===t?(u=t===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+u)===61?this.finishOp(d.assign,u+1):this.finishOp(d.bitShift,u)):r===33&&t===60&&!this.inModule&&this.input.charCodeAt(this.pos+2)===45&&this.input.charCodeAt(this.pos+3)===45?(this.skipLineComment(4),this.skipSpace(),this.nextToken()):(r===61&&(u=2),this.finishOp(d.relational,u))},ie.readToken_eq_excl=function(t){var r=this.input.charCodeAt(this.pos+1);return r===61?this.finishOp(d.equality,this.input.charCodeAt(this.pos+2)===61?3:2):t===61&&r===62&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(d.arrow)):this.finishOp(t===61?d.eq:d.prefix,1)},ie.readToken_question=function(){var t=this.options.ecmaVersion;if(t>=11){var r=this.input.charCodeAt(this.pos+1);if(r===46){var u=this.input.charCodeAt(this.pos+2);if(u<48||u>57)return this.finishOp(d.questionDot,2)}if(r===63){if(t>=12){var c=this.input.charCodeAt(this.pos+2);if(c===61)return this.finishOp(d.assign,3)}return this.finishOp(d.coalesce,2)}}return this.finishOp(d.question,1)},ie.readToken_numberSign=function(){var t=this.options.ecmaVersion,r=35;if(t>=13&&(++this.pos,r=this.fullCharCodeAtPos(),K(r,!0)||r===92))return this.finishToken(d.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+n(r)+"'")},ie.getTokenFromCode=function(t){switch(t){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(d.parenL);case 41:return++this.pos,this.finishToken(d.parenR);case 59:return++this.pos,this.finishToken(d.semi);case 44:return++this.pos,this.finishToken(d.comma);case 91:return++this.pos,this.finishToken(d.bracketL);case 93:return++this.pos,this.finishToken(d.bracketR);case 123:return++this.pos,this.finishToken(d.braceL);case 125:return++this.pos,this.finishToken(d.braceR);case 58:return++this.pos,this.finishToken(d.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(d.backQuote);case 48:var r=this.input.charCodeAt(this.pos+1);if(r===120||r===88)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(r===111||r===79)return this.readRadixNumber(8);if(r===98||r===66)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(t);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(t);case 124:case 38:return this.readToken_pipe_amp(t);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(t);case 60:case 62:return this.readToken_lt_gt(t);case 61:case 33:return this.readToken_eq_excl(t);case 63:return this.readToken_question();case 126:return this.finishOp(d.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+n(t)+"'")},ie.finishOp=function(t,r){var u=this.input.slice(this.pos,this.pos+r);return this.pos+=r,this.finishToken(t,u)},ie.readRegexp=function(){for(var t,r,u=this.pos;;){this.pos>=this.input.length&&this.raise(u,"Unterminated regular expression");var c=this.input.charAt(this.pos);if(ve.test(c)&&this.raise(u,"Unterminated regular expression"),t)t=!1;else{if(c==="[")r=!0;else if(c==="]"&&r)r=!1;else if(c==="/"&&!r)break;t=c==="\\"}++this.pos}var v=this.input.slice(u,this.pos);++this.pos;var k=this.pos,A=this.readWord1();this.containsEsc&&this.unexpected(k);var N=this.regexpState||(this.regexpState=new Je(this));N.reset(u,v,A),this.validateRegExpFlags(N),this.validateRegExpPattern(N);var V=null;try{V=new RegExp(v,A)}catch{}return this.finishToken(d.regexp,{pattern:v,flags:A,value:V})},ie.readInt=function(t,r,u){for(var c=this.options.ecmaVersion>=12&&r===void 0,v=u&&this.input.charCodeAt(this.pos)===48,k=this.pos,A=0,N=0,V=0,J=r??1/0;V<J;++V,++this.pos){var $=this.input.charCodeAt(this.pos),le=void 0;if(c&&$===95){v&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),N===95&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),V===0&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),N=$;continue}if($>=97?le=$-97+10:$>=65?le=$-65+10:$>=48&&$<=57?le=$-48:le=1/0,le>=t)break;N=$,A=A*t+le}return c&&N===95&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===k||r!=null&&this.pos-k!==r?null:A};function ka(t,r){return r?parseInt(t,8):parseFloat(t.replace(/_/g,""))}function gs(t){return typeof BigInt!="function"?null:BigInt(t.replace(/_/g,""))}ie.readRadixNumber=function(t){var r=this.pos;this.pos+=2;var u=this.readInt(t);return u==null&&this.raise(this.start+2,"Expected number in radix "+t),this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110?(u=gs(this.input.slice(r,this.pos)),++this.pos):K(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(d.num,u)},ie.readNumber=function(t){var r=this.pos;!t&&this.readInt(10,void 0,!0)===null&&this.raise(r,"Invalid number");var u=this.pos-r>=2&&this.input.charCodeAt(r)===48;u&&this.strict&&this.raise(r,"Invalid number");var c=this.input.charCodeAt(this.pos);if(!u&&!t&&this.options.ecmaVersion>=11&&c===110){var v=gs(this.input.slice(r,this.pos));return++this.pos,K(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(d.num,v)}u&&/[89]/.test(this.input.slice(r,this.pos))&&(u=!1),c===46&&!u&&(++this.pos,this.readInt(10),c=this.input.charCodeAt(this.pos)),(c===69||c===101)&&!u&&(c=this.input.charCodeAt(++this.pos),(c===43||c===45)&&++this.pos,this.readInt(10)===null&&this.raise(r,"Invalid number")),K(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var k=ka(this.input.slice(r,this.pos),u);return this.finishToken(d.num,k)},ie.readCodePoint=function(){var t=this.input.charCodeAt(this.pos),r;if(t===123){this.options.ecmaVersion<6&&this.unexpected();var u=++this.pos;r=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,r>1114111&&this.invalidStringToken(u,"Code point out of bounds")}else r=this.readHexChar(4);return r},ie.readString=function(t){for(var r="",u=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var c=this.input.charCodeAt(this.pos);if(c===t)break;c===92?(r+=this.input.slice(u,this.pos),r+=this.readEscapedChar(!1),u=this.pos):c===8232||c===8233?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(Ve(c)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return r+=this.input.slice(u,this.pos++),this.finishToken(d.string,r)};var bs={};ie.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(t){if(t===bs)this.readInvalidTemplateToken();else throw t}this.inTemplateElement=!1},ie.invalidStringToken=function(t,r){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw bs;this.raise(t,r)},ie.readTmplToken=function(){for(var t="",r=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var u=this.input.charCodeAt(this.pos);if(u===96||u===36&&this.input.charCodeAt(this.pos+1)===123)return this.pos===this.start&&(this.type===d.template||this.type===d.invalidTemplate)?u===36?(this.pos+=2,this.finishToken(d.dollarBraceL)):(++this.pos,this.finishToken(d.backQuote)):(t+=this.input.slice(r,this.pos),this.finishToken(d.template,t));if(u===92)t+=this.input.slice(r,this.pos),t+=this.readEscapedChar(!0),r=this.pos;else if(Ve(u)){switch(t+=this.input.slice(r,this.pos),++this.pos,u){case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:t+=`
|
|
6
|
-
`;break;default:
|
|
1
|
+
"use strict";var lu=Object.create;var Si=Object.defineProperty;var pu=Object.getOwnPropertyDescriptor;var fu=Object.getOwnPropertyNames;var du=Object.getPrototypeOf,mu=Object.prototype.hasOwnProperty;var ot=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Er=(e,t)=>{for(var s in t)Si(e,s,{get:t[s],enumerable:!0})},Ar=(e,t,s,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of fu(t))!mu.call(e,o)&&o!==s&&Si(e,o,{get:()=>t[o],enumerable:!(r=pu(t,o))||r.enumerable});return e};var mt=(e,t,s)=>(s=e!=null?lu(du(e)):{},Ar(t||!e||!e.__esModule?Si(s,"default",{value:e,enumerable:!0}):s,e)),xu=e=>Ar(Si({},"__esModule",{value:!0}),e);var Qt=ot((hp,Mr)=>{"use strict";var Nr="[^\\\\/]",Pu="(?=.)",Lr="[^/]",as="(?:\\/|$)",Rr="(?:^|\\/)",os=`\\.{1,2}${as}`,Iu="(?!\\.)",Nu=`(?!${Rr}${os})`,Lu=`(?!\\.{0,1}${as})`,Ru=`(?!${os})`,Ou="[^.\\/]",Mu=`${Lr}*?`,Vu="/",Or={DOT_LITERAL:"\\.",PLUS_LITERAL:"\\+",QMARK_LITERAL:"\\?",SLASH_LITERAL:"\\/",ONE_CHAR:Pu,QMARK:Lr,END_ANCHOR:as,DOTS_SLASH:os,NO_DOT:Iu,NO_DOTS:Nu,NO_DOT_SLASH:Lu,NO_DOTS_SLASH:Ru,QMARK_NO_DOT:Ou,STAR:Mu,START_ANCHOR:Rr,SEP:Vu},Du={...Or,SLASH_LITERAL:"[\\\\/]",QMARK:Nr,STAR:`${Nr}*?`,DOTS_SLASH:"\\.{1,2}(?:[\\\\/]|$)",NO_DOT:"(?!\\.)",NO_DOTS:"(?!(?:^|[\\\\/])\\.{1,2}(?:[\\\\/]|$))",NO_DOT_SLASH:"(?!\\.{0,1}(?:[\\\\/]|$))",NO_DOTS_SLASH:"(?!\\.{1,2}(?:[\\\\/]|$))",QMARK_NO_DOT:"[^.\\\\/]",START_ANCHOR:"(?:^|[\\\\/])",END_ANCHOR:"(?:[\\\\/]|$)",SEP:"\\"},Fu={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"};Mr.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:Fu,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{__proto__:null,"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,extglobChars(e){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${e.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(e){return e===!0?Du:Or}}});var Yt=ot(Fe=>{"use strict";var{REGEX_BACKSLASH:Bu,REGEX_REMOVE_BACKSLASH:ju,REGEX_SPECIAL_CHARS:Uu,REGEX_SPECIAL_CHARS_GLOBAL:Hu}=Qt();Fe.isObject=e=>e!==null&&typeof e=="object"&&!Array.isArray(e);Fe.hasRegexChars=e=>Uu.test(e);Fe.isRegexChar=e=>e.length===1&&Fe.hasRegexChars(e);Fe.escapeRegex=e=>e.replace(Hu,"\\$1");Fe.toPosixSlashes=e=>e.replace(Bu,"/");Fe.isWindows=()=>{if(typeof navigator<"u"&&navigator.platform){let e=navigator.platform.toLowerCase();return e==="win32"||e==="windows"}return typeof process<"u"&&process.platform?process.platform==="win32":!1};Fe.removeBackslashes=e=>e.replace(ju,t=>t==="\\"?"":t);Fe.escapeLast=(e,t,s)=>{let r=e.lastIndexOf(t,s);return r===-1?e:e[r-1]==="\\"?Fe.escapeLast(e,t,r-1):`${e.slice(0,r)}\\${e.slice(r)}`};Fe.removePrefix=(e,t={})=>{let s=e;return s.startsWith("./")&&(s=s.slice(2),t.prefix="./"),s};Fe.wrapOutput=(e,t={},s={})=>{let r=s.contains?"":"^",o=s.contains?"":"$",h=`${r}(?:${e})${o}`;return t.negated===!0&&(h=`(?:^(?!${h}).*$)`),h};Fe.basename=(e,{windows:t}={})=>{let s=e.split(t?/[\\/]/:"/"),r=s[s.length-1];return r===""?s[s.length-2]:r}});var qr=ot((pp,Hr)=>{"use strict";var Vr=Yt(),{CHAR_ASTERISK:us,CHAR_AT:qu,CHAR_BACKWARD_SLASH:Zt,CHAR_COMMA:Wu,CHAR_DOT:cs,CHAR_EXCLAMATION_MARK:hs,CHAR_FORWARD_SLASH:Ur,CHAR_LEFT_CURLY_BRACE:ls,CHAR_LEFT_PARENTHESES:ps,CHAR_LEFT_SQUARE_BRACKET:Gu,CHAR_PLUS:$u,CHAR_QUESTION_MARK:Dr,CHAR_RIGHT_CURLY_BRACE:Ku,CHAR_RIGHT_PARENTHESES:Fr,CHAR_RIGHT_SQUARE_BRACKET:zu}=Qt(),Br=e=>e===Ur||e===Zt,jr=e=>{e.isPrefix!==!0&&(e.depth=e.isGlobstar?1/0:1)},Xu=(e,t)=>{let s=t||{},r=e.length-1,o=s.parts===!0||s.scanToEnd===!0,h=[],p=[],g=[],v=e,l=-1,T=0,_=0,D=!1,w=!1,E=!1,F=!1,V=!1,G=!1,Q=!1,$=!1,m=!1,ne=!1,z=0,ae,X,Z={value:"",depth:0,isGlob:!1},M=()=>l>=r,j=()=>v.charCodeAt(l+1),ce=()=>(ae=X,v.charCodeAt(++l));for(;l<r;){X=ce();let n;if(X===Zt){Q=Z.backslashes=!0,X=ce(),X===ls&&(G=!0);continue}if(G===!0||X===ls){for(z++;M()!==!0&&(X=ce());){if(X===Zt){Q=Z.backslashes=!0,ce();continue}if(X===ls){z++;continue}if(G!==!0&&X===cs&&(X=ce())===cs){if(D=Z.isBrace=!0,E=Z.isGlob=!0,ne=!0,o===!0)continue;break}if(G!==!0&&X===Wu){if(D=Z.isBrace=!0,E=Z.isGlob=!0,ne=!0,o===!0)continue;break}if(X===Ku&&(z--,z===0)){G=!1,D=Z.isBrace=!0,ne=!0;break}}if(o===!0)continue;break}if(X===Ur){if(h.push(l),p.push(Z),Z={value:"",depth:0,isGlob:!1},ne===!0)continue;if(ae===cs&&l===T+1){T+=2;continue}_=l+1;continue}if(s.noext!==!0&&(X===$u||X===qu||X===us||X===Dr||X===hs)===!0&&j()===ps){if(E=Z.isGlob=!0,F=Z.isExtglob=!0,ne=!0,X===hs&&l===T&&(m=!0),o===!0){for(;M()!==!0&&(X=ce());){if(X===Zt){Q=Z.backslashes=!0,X=ce();continue}if(X===Fr){E=Z.isGlob=!0,ne=!0;break}}continue}break}if(X===us){if(ae===us&&(V=Z.isGlobstar=!0),E=Z.isGlob=!0,ne=!0,o===!0)continue;break}if(X===Dr){if(E=Z.isGlob=!0,ne=!0,o===!0)continue;break}if(X===Gu){for(;M()!==!0&&(n=ce());){if(n===Zt){Q=Z.backslashes=!0,ce();continue}if(n===zu){w=Z.isBracket=!0,E=Z.isGlob=!0,ne=!0;break}}if(o===!0)continue;break}if(s.nonegate!==!0&&X===hs&&l===T){$=Z.negated=!0,T++;continue}if(s.noparen!==!0&&X===ps){if(E=Z.isGlob=!0,o===!0){for(;M()!==!0&&(X=ce());){if(X===ps){Q=Z.backslashes=!0,X=ce();continue}if(X===Fr){ne=!0;break}}continue}break}if(E===!0){if(ne=!0,o===!0)continue;break}}s.noext===!0&&(F=!1,E=!1);let ue=v,O="",I="";T>0&&(O=v.slice(0,T),v=v.slice(T),_-=T),ue&&E===!0&&_>0?(ue=v.slice(0,_),I=v.slice(_)):E===!0?(ue="",I=v):ue=v,ue&&ue!==""&&ue!=="/"&&ue!==v&&Br(ue.charCodeAt(ue.length-1))&&(ue=ue.slice(0,-1)),s.unescape===!0&&(I&&(I=Vr.removeBackslashes(I)),ue&&Q===!0&&(ue=Vr.removeBackslashes(ue)));let S={prefix:O,input:e,start:T,base:ue,glob:I,isBrace:D,isBracket:w,isGlob:E,isExtglob:F,isGlobstar:V,negated:$,negatedExtglob:m};if(s.tokens===!0&&(S.maxDepth=0,Br(X)||p.push(Z),S.tokens=p),s.parts===!0||s.tokens===!0){let n;for(let u=0;u<h.length;u++){let d=n?n+1:T,y=h[u],C=e.slice(d,y);s.tokens&&(u===0&&T!==0?(p[u].isPrefix=!0,p[u].value=O):p[u].value=C,jr(p[u]),S.maxDepth+=p[u].depth),(u!==0||C!=="")&&g.push(C),n=y}if(n&&n+1<e.length){let u=e.slice(n+1);g.push(u),s.tokens&&(p[p.length-1].value=u,jr(p[p.length-1]),S.maxDepth+=p[p.length-1].depth)}S.slashes=h,S.parts=g}return S};Hr.exports=Xu});var $r=ot((fp,Gr)=>{"use strict";var Ei=Qt(),it=Yt(),{MAX_LENGTH:Ai,POSIX_REGEX_SOURCE:Ju,REGEX_NON_SPECIAL_CHARS:Qu,REGEX_SPECIAL_CHARS_BACKREF:Yu,REPLACEMENTS:Wr}=Ei,Zu=(e,t)=>{if(typeof t.expandRange=="function")return t.expandRange(...e,t);e.sort();let s=`[${e.join("-")}]`;try{new RegExp(s)}catch{return e.map(o=>it.escapeRegex(o)).join("..")}return s},Ot=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,fs=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");e=Wr[e]||e;let s={...t},r=typeof s.maxLength=="number"?Math.min(Ai,s.maxLength):Ai,o=e.length;if(o>r)throw new SyntaxError(`Input length: ${o}, exceeds maximum allowed length: ${r}`);let h={type:"bos",value:"",output:s.prepend||""},p=[h],g=s.capture?"":"?:",v=Ei.globChars(s.windows),l=Ei.extglobChars(v),{DOT_LITERAL:T,PLUS_LITERAL:_,SLASH_LITERAL:D,ONE_CHAR:w,DOTS_SLASH:E,NO_DOT:F,NO_DOT_SLASH:V,NO_DOTS_SLASH:G,QMARK:Q,QMARK_NO_DOT:$,STAR:m,START_ANCHOR:ne}=v,z=B=>`(${g}(?:(?!${ne}${B.dot?E:T}).)*?)`,ae=s.dot?"":F,X=s.dot?Q:$,Z=s.bash===!0?z(s):m;s.capture&&(Z=`(${Z})`),typeof s.noext=="boolean"&&(s.noextglob=s.noext);let M={input:e,index:-1,start:0,dot:s.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:p};e=it.removePrefix(e,M),o=e.length;let j=[],ce=[],ue=[],O=h,I,S=()=>M.index===o-1,n=M.peek=(B=1)=>e[M.index+B],u=M.advance=()=>e[++M.index]||"",d=()=>e.slice(M.index+1),y=(B="",q=0)=>{M.consumed+=B,M.index+=q},C=B=>{M.output+=B.output!=null?B.output:B.value,y(B.value)},A=()=>{let B=1;for(;n()==="!"&&(n(2)!=="("||n(3)==="?");)u(),M.start++,B++;return B%2===0?!1:(M.negated=!0,M.start++,!0)},k=B=>{M[B]++,ue.push(B)},L=B=>{M[B]--,ue.pop()},N=B=>{if(O.type==="globstar"){let q=M.braces>0&&(B.type==="comma"||B.type==="brace"),U=B.extglob===!0||j.length&&(B.type==="pipe"||B.type==="paren");B.type!=="slash"&&B.type!=="paren"&&!q&&!U&&(M.output=M.output.slice(0,-O.output.length),O.type="star",O.value="*",O.output=Z,M.output+=O.output)}if(j.length&&B.type!=="paren"&&(j[j.length-1].inner+=B.value),(B.value||B.output)&&C(B),O&&O.type==="text"&&B.type==="text"){O.output=(O.output||O.value)+B.value,O.value+=B.value;return}B.prev=O,p.push(B),O=B},W=(B,q)=>{let U={...l[q],conditions:1,inner:""};U.prev=O,U.parens=M.parens,U.output=M.output;let Y=(s.capture?"(":"")+U.open;k("parens"),N({type:B,value:q,output:M.output?"":w}),N({type:"paren",extglob:!0,value:u(),output:Y}),j.push(U)},J=B=>{let q=B.close+(s.capture?")":""),U;if(B.type==="negate"){let Y=Z;if(B.inner&&B.inner.length>1&&B.inner.includes("/")&&(Y=z(s)),(Y!==Z||S()||/^\)+$/.test(d()))&&(q=B.close=`)$))${Y}`),B.inner.includes("*")&&(U=d())&&/^\.[^\\/.]+$/.test(U)){let oe=fs(U,{...t,fastpaths:!1}).output;q=B.close=`)${oe})${Y})`}B.prev.type==="bos"&&(M.negatedExtglob=!0)}N({type:"paren",extglob:!0,value:I,output:q}),L("parens")};if(s.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(e)){let B=!1,q=e.replace(Yu,(U,Y,oe,de,ge,ke)=>de==="\\"?(B=!0,U):de==="?"?Y?Y+de+(ge?Q.repeat(ge.length):""):ke===0?X+(ge?Q.repeat(ge.length):""):Q.repeat(oe.length):de==="."?T.repeat(oe.length):de==="*"?Y?Y+de+(ge?Z:""):Z:Y?U:`\\${U}`);return B===!0&&(s.unescape===!0?q=q.replace(/\\/g,""):q=q.replace(/\\+/g,U=>U.length%2===0?"\\\\":U?"\\":"")),q===e&&s.contains===!0?(M.output=e,M):(M.output=it.wrapOutput(q,M,t),M)}for(;!S();){if(I=u(),I==="\0")continue;if(I==="\\"){let U=n();if(U==="/"&&s.bash!==!0||U==="."||U===";")continue;if(!U){I+="\\",N({type:"text",value:I});continue}let Y=/^\\+/.exec(d()),oe=0;if(Y&&Y[0].length>2&&(oe=Y[0].length,M.index+=oe,oe%2!==0&&(I+="\\")),s.unescape===!0?I=u():I+=u(),M.brackets===0){N({type:"text",value:I});continue}}if(M.brackets>0&&(I!=="]"||O.value==="["||O.value==="[^")){if(s.posix!==!1&&I===":"){let U=O.value.slice(1);if(U.includes("[")&&(O.posix=!0,U.includes(":"))){let Y=O.value.lastIndexOf("["),oe=O.value.slice(0,Y),de=O.value.slice(Y+2),ge=Ju[de];if(ge){O.value=oe+ge,M.backtrack=!0,u(),!h.output&&p.indexOf(O)===1&&(h.output=w);continue}}}(I==="["&&n()!==":"||I==="-"&&n()==="]")&&(I=`\\${I}`),I==="]"&&(O.value==="["||O.value==="[^")&&(I=`\\${I}`),s.posix===!0&&I==="!"&&O.value==="["&&(I="^"),O.value+=I,C({value:I});continue}if(M.quotes===1&&I!=='"'){I=it.escapeRegex(I),O.value+=I,C({value:I});continue}if(I==='"'){M.quotes=M.quotes===1?0:1,s.keepQuotes===!0&&N({type:"text",value:I});continue}if(I==="("){k("parens"),N({type:"paren",value:I});continue}if(I===")"){if(M.parens===0&&s.strictBrackets===!0)throw new SyntaxError(Ot("opening","("));let U=j[j.length-1];if(U&&M.parens===U.parens+1){J(j.pop());continue}N({type:"paren",value:I,output:M.parens?")":"\\)"}),L("parens");continue}if(I==="["){if(s.nobracket===!0||!d().includes("]")){if(s.nobracket!==!0&&s.strictBrackets===!0)throw new SyntaxError(Ot("closing","]"));I=`\\${I}`}else k("brackets");N({type:"bracket",value:I});continue}if(I==="]"){if(s.nobracket===!0||O&&O.type==="bracket"&&O.value.length===1){N({type:"text",value:I,output:`\\${I}`});continue}if(M.brackets===0){if(s.strictBrackets===!0)throw new SyntaxError(Ot("opening","["));N({type:"text",value:I,output:`\\${I}`});continue}L("brackets");let U=O.value.slice(1);if(O.posix!==!0&&U[0]==="^"&&!U.includes("/")&&(I=`/${I}`),O.value+=I,C({value:I}),s.literalBrackets===!1||it.hasRegexChars(U))continue;let Y=it.escapeRegex(O.value);if(M.output=M.output.slice(0,-O.value.length),s.literalBrackets===!0){M.output+=Y,O.value=Y;continue}O.value=`(${g}${Y}|${O.value})`,M.output+=O.value;continue}if(I==="{"&&s.nobrace!==!0){k("braces");let U={type:"brace",value:I,output:"(",outputIndex:M.output.length,tokensIndex:M.tokens.length};ce.push(U),N(U);continue}if(I==="}"){let U=ce[ce.length-1];if(s.nobrace===!0||!U){N({type:"text",value:I,output:I});continue}let Y=")";if(U.dots===!0){let oe=p.slice(),de=[];for(let ge=oe.length-1;ge>=0&&(p.pop(),oe[ge].type!=="brace");ge--)oe[ge].type!=="dots"&&de.unshift(oe[ge].value);Y=Zu(de,s),M.backtrack=!0}if(U.comma!==!0&&U.dots!==!0){let oe=M.output.slice(0,U.outputIndex),de=M.tokens.slice(U.tokensIndex);U.value=U.output="\\{",I=Y="\\}",M.output=oe;for(let ge of de)M.output+=ge.output||ge.value}N({type:"brace",value:I,output:Y}),L("braces"),ce.pop();continue}if(I==="|"){j.length>0&&j[j.length-1].conditions++,N({type:"text",value:I});continue}if(I===","){let U=I,Y=ce[ce.length-1];Y&&ue[ue.length-1]==="braces"&&(Y.comma=!0,U="|"),N({type:"comma",value:I,output:U});continue}if(I==="/"){if(O.type==="dot"&&M.index===M.start+1){M.start=M.index+1,M.consumed="",M.output="",p.pop(),O=h;continue}N({type:"slash",value:I,output:D});continue}if(I==="."){if(M.braces>0&&O.type==="dot"){O.value==="."&&(O.output=T);let U=ce[ce.length-1];O.type="dots",O.output+=I,O.value+=I,U.dots=!0;continue}if(M.braces+M.parens===0&&O.type!=="bos"&&O.type!=="slash"){N({type:"text",value:I,output:T});continue}N({type:"dot",value:I,output:T});continue}if(I==="?"){if(!(O&&O.value==="(")&&s.noextglob!==!0&&n()==="("&&n(2)!=="?"){W("qmark",I);continue}if(O&&O.type==="paren"){let Y=n(),oe=I;(O.value==="("&&!/[!=<:]/.test(Y)||Y==="<"&&!/<([!=]|\w+>)/.test(d()))&&(oe=`\\${I}`),N({type:"text",value:I,output:oe});continue}if(s.dot!==!0&&(O.type==="slash"||O.type==="bos")){N({type:"qmark",value:I,output:$});continue}N({type:"qmark",value:I,output:Q});continue}if(I==="!"){if(s.noextglob!==!0&&n()==="("&&(n(2)!=="?"||!/[!=<:]/.test(n(3)))){W("negate",I);continue}if(s.nonegate!==!0&&M.index===0){A();continue}}if(I==="+"){if(s.noextglob!==!0&&n()==="("&&n(2)!=="?"){W("plus",I);continue}if(O&&O.value==="("||s.regex===!1){N({type:"plus",value:I,output:_});continue}if(O&&(O.type==="bracket"||O.type==="paren"||O.type==="brace")||M.parens>0){N({type:"plus",value:I});continue}N({type:"plus",value:_});continue}if(I==="@"){if(s.noextglob!==!0&&n()==="("&&n(2)!=="?"){N({type:"at",extglob:!0,value:I,output:""});continue}N({type:"text",value:I});continue}if(I!=="*"){(I==="$"||I==="^")&&(I=`\\${I}`);let U=Qu.exec(d());U&&(I+=U[0],M.index+=U[0].length),N({type:"text",value:I});continue}if(O&&(O.type==="globstar"||O.star===!0)){O.type="star",O.star=!0,O.value+=I,O.output=Z,M.backtrack=!0,M.globstar=!0,y(I);continue}let B=d();if(s.noextglob!==!0&&/^\([^?]/.test(B)){W("star",I);continue}if(O.type==="star"){if(s.noglobstar===!0){y(I);continue}let U=O.prev,Y=U.prev,oe=U.type==="slash"||U.type==="bos",de=Y&&(Y.type==="star"||Y.type==="globstar");if(s.bash===!0&&(!oe||B[0]&&B[0]!=="/")){N({type:"star",value:I,output:""});continue}let ge=M.braces>0&&(U.type==="comma"||U.type==="brace"),ke=j.length&&(U.type==="pipe"||U.type==="paren");if(!oe&&U.type!=="paren"&&!ge&&!ke){N({type:"star",value:I,output:""});continue}for(;B.slice(0,3)==="/**";){let Ie=e[M.index+4];if(Ie&&Ie!=="/")break;B=B.slice(3),y("/**",3)}if(U.type==="bos"&&S()){O.type="globstar",O.value+=I,O.output=z(s),M.output=O.output,M.globstar=!0,y(I);continue}if(U.type==="slash"&&U.prev.type!=="bos"&&!de&&S()){M.output=M.output.slice(0,-(U.output+O.output).length),U.output=`(?:${U.output}`,O.type="globstar",O.output=z(s)+(s.strictSlashes?")":"|$)"),O.value+=I,M.globstar=!0,M.output+=U.output+O.output,y(I);continue}if(U.type==="slash"&&U.prev.type!=="bos"&&B[0]==="/"){let Ie=B[1]!==void 0?"|$":"";M.output=M.output.slice(0,-(U.output+O.output).length),U.output=`(?:${U.output}`,O.type="globstar",O.output=`${z(s)}${D}|${D}${Ie})`,O.value+=I,M.output+=U.output+O.output,M.globstar=!0,y(I+u()),N({type:"slash",value:"/",output:""});continue}if(U.type==="bos"&&B[0]==="/"){O.type="globstar",O.value+=I,O.output=`(?:^|${D}|${z(s)}${D})`,M.output=O.output,M.globstar=!0,y(I+u()),N({type:"slash",value:"/",output:""});continue}M.output=M.output.slice(0,-O.output.length),O.type="globstar",O.output=z(s),O.value+=I,M.output+=O.output,M.globstar=!0,y(I);continue}let q={type:"star",value:I,output:Z};if(s.bash===!0){q.output=".*?",(O.type==="bos"||O.type==="slash")&&(q.output=ae+q.output),N(q);continue}if(O&&(O.type==="bracket"||O.type==="paren")&&s.regex===!0){q.output=I,N(q);continue}(M.index===M.start||O.type==="slash"||O.type==="dot")&&(O.type==="dot"?(M.output+=V,O.output+=V):s.dot===!0?(M.output+=G,O.output+=G):(M.output+=ae,O.output+=ae),n()!=="*"&&(M.output+=w,O.output+=w)),N(q)}for(;M.brackets>0;){if(s.strictBrackets===!0)throw new SyntaxError(Ot("closing","]"));M.output=it.escapeLast(M.output,"["),L("brackets")}for(;M.parens>0;){if(s.strictBrackets===!0)throw new SyntaxError(Ot("closing",")"));M.output=it.escapeLast(M.output,"("),L("parens")}for(;M.braces>0;){if(s.strictBrackets===!0)throw new SyntaxError(Ot("closing","}"));M.output=it.escapeLast(M.output,"{"),L("braces")}if(s.strictSlashes!==!0&&(O.type==="star"||O.type==="bracket")&&N({type:"maybe_slash",value:"",output:`${D}?`}),M.backtrack===!0){M.output="";for(let B of M.tokens)M.output+=B.output!=null?B.output:B.value,B.suffix&&(M.output+=B.suffix)}return M};fs.fastpaths=(e,t)=>{let s={...t},r=typeof s.maxLength=="number"?Math.min(Ai,s.maxLength):Ai,o=e.length;if(o>r)throw new SyntaxError(`Input length: ${o}, exceeds maximum allowed length: ${r}`);e=Wr[e]||e;let{DOT_LITERAL:h,SLASH_LITERAL:p,ONE_CHAR:g,DOTS_SLASH:v,NO_DOT:l,NO_DOTS:T,NO_DOTS_SLASH:_,STAR:D,START_ANCHOR:w}=Ei.globChars(s.windows),E=s.dot?T:l,F=s.dot?_:l,V=s.capture?"":"?:",G={negated:!1,prefix:""},Q=s.bash===!0?".*?":D;s.capture&&(Q=`(${Q})`);let $=ae=>ae.noglobstar===!0?Q:`(${V}(?:(?!${w}${ae.dot?v:h}).)*?)`,m=ae=>{switch(ae){case"*":return`${E}${g}${Q}`;case".*":return`${h}${g}${Q}`;case"*.*":return`${E}${Q}${h}${g}${Q}`;case"*/*":return`${E}${Q}${p}${g}${F}${Q}`;case"**":return E+$(s);case"**/*":return`(?:${E}${$(s)}${p})?${F}${g}${Q}`;case"**/*.*":return`(?:${E}${$(s)}${p})?${F}${Q}${h}${g}${Q}`;case"**/.*":return`(?:${E}${$(s)}${p})?${h}${g}${Q}`;default:{let X=/^(.*?)\.(\w+)$/.exec(ae);if(!X)return;let Z=m(X[1]);return Z?Z+h+X[2]:void 0}}},ne=it.removePrefix(e,G),z=m(ne);return z&&s.strictSlashes!==!0&&(z+=`${p}?`),z};Gr.exports=fs});var Xr=ot((dp,zr)=>{"use strict";var ec=qr(),ds=$r(),Kr=Yt(),tc=Qt(),ic=e=>e&&typeof e=="object"&&!Array.isArray(e),Ae=(e,t,s=!1)=>{if(Array.isArray(e)){let T=e.map(D=>Ae(D,t,s));return D=>{for(let w of T){let E=w(D);if(E)return E}return!1}}let r=ic(e)&&e.tokens&&e.input;if(e===""||typeof e!="string"&&!r)throw new TypeError("Expected pattern to be a non-empty string");let o=t||{},h=o.windows,p=r?Ae.compileRe(e,t):Ae.makeRe(e,t,!1,!0),g=p.state;delete p.state;let v=()=>!1;if(o.ignore){let T={...t,ignore:null,onMatch:null,onResult:null};v=Ae(o.ignore,T,s)}let l=(T,_=!1)=>{let{isMatch:D,match:w,output:E}=Ae.test(T,p,t,{glob:e,posix:h}),F={glob:e,state:g,regex:p,posix:h,input:T,output:E,match:w,isMatch:D};return typeof o.onResult=="function"&&o.onResult(F),D===!1?(F.isMatch=!1,_?F:!1):v(T)?(typeof o.onIgnore=="function"&&o.onIgnore(F),F.isMatch=!1,_?F:!1):(typeof o.onMatch=="function"&&o.onMatch(F),_?F:!0)};return s&&(l.state=g),l};Ae.test=(e,t,s,{glob:r,posix:o}={})=>{if(typeof e!="string")throw new TypeError("Expected input to be a string");if(e==="")return{isMatch:!1,output:""};let h=s||{},p=h.format||(o?Kr.toPosixSlashes:null),g=e===r,v=g&&p?p(e):e;return g===!1&&(v=p?p(e):e,g=v===r),(g===!1||h.capture===!0)&&(h.matchBase===!0||h.basename===!0?g=Ae.matchBase(e,t,s,o):g=t.exec(v)),{isMatch:!!g,match:g,output:v}};Ae.matchBase=(e,t,s)=>(t instanceof RegExp?t:Ae.makeRe(t,s)).test(Kr.basename(e));Ae.isMatch=(e,t,s)=>Ae(t,s)(e);Ae.parse=(e,t)=>Array.isArray(e)?e.map(s=>Ae.parse(s,t)):ds(e,{...t,fastpaths:!1});Ae.scan=(e,t)=>ec(e,t);Ae.compileRe=(e,t,s=!1,r=!1)=>{if(s===!0)return e.output;let o=t||{},h=o.contains?"":"^",p=o.contains?"":"$",g=`${h}(?:${e.output})${p}`;e&&e.negated===!0&&(g=`^(?!${g}).*$`);let v=Ae.toRegex(g,t);return r===!0&&(v.state=e),v};Ae.makeRe=(e,t={},s=!1,r=!1)=>{if(!e||typeof e!="string")throw new TypeError("Expected a non-empty string");let o={negated:!1,fastpaths:!0};return t.fastpaths!==!1&&(e[0]==="."||e[0]==="*")&&(o.output=ds.fastpaths(e,t)),o.output||(o=ds(e,t)),Ae.compileRe(o,t,s,r)};Ae.toRegex=(e,t)=>{try{let s=t||{};return new RegExp(e,s.flags||(s.nocase?"i":""))}catch(s){if(t&&t.debug===!0)throw s;return/$^/}};Ae.constants=tc;zr.exports=Ae});var Zr=ot((mp,Yr)=>{"use strict";var Jr=Xr(),sc=Yt();function Qr(e,t,s=!1){return t&&(t.windows===null||t.windows===void 0)&&(t={...t,windows:sc.isWindows()}),Jr(e,t,s)}Object.assign(Qr,Jr);Yr.exports=Qr});var eo=ot((Qp,Za)=>{"use strict";Za.exports={quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:"\xA0",iexcl:"\xA1",cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD",reg:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",frac34:"\xBE",iquest:"\xBF",Agrave:"\xC0",Aacute:"\xC1",Acirc:"\xC2",Atilde:"\xC3",Auml:"\xC4",Aring:"\xC5",AElig:"\xC6",Ccedil:"\xC7",Egrave:"\xC8",Eacute:"\xC9",Ecirc:"\xCA",Euml:"\xCB",Igrave:"\xCC",Iacute:"\xCD",Icirc:"\xCE",Iuml:"\xCF",ETH:"\xD0",Ntilde:"\xD1",Ograve:"\xD2",Oacute:"\xD3",Ocirc:"\xD4",Otilde:"\xD5",Ouml:"\xD6",times:"\xD7",Oslash:"\xD8",Ugrave:"\xD9",Uacute:"\xDA",Ucirc:"\xDB",Uuml:"\xDC",Yacute:"\xDD",THORN:"\xDE",szlig:"\xDF",agrave:"\xE0",aacute:"\xE1",acirc:"\xE2",atilde:"\xE3",auml:"\xE4",aring:"\xE5",aelig:"\xE6",ccedil:"\xE7",egrave:"\xE8",eacute:"\xE9",ecirc:"\xEA",euml:"\xEB",igrave:"\xEC",iacute:"\xED",icirc:"\xEE",iuml:"\xEF",eth:"\xF0",ntilde:"\xF1",ograve:"\xF2",oacute:"\xF3",ocirc:"\xF4",otilde:"\xF5",ouml:"\xF6",divide:"\xF7",oslash:"\xF8",ugrave:"\xF9",uacute:"\xFA",ucirc:"\xFB",uuml:"\xFC",yacute:"\xFD",thorn:"\xFE",yuml:"\xFF",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",fnof:"\u0192",circ:"\u02C6",tilde:"\u02DC",Alpha:"\u0391",Beta:"\u0392",Gamma:"\u0393",Delta:"\u0394",Epsilon:"\u0395",Zeta:"\u0396",Eta:"\u0397",Theta:"\u0398",Iota:"\u0399",Kappa:"\u039A",Lambda:"\u039B",Mu:"\u039C",Nu:"\u039D",Xi:"\u039E",Omicron:"\u039F",Pi:"\u03A0",Rho:"\u03A1",Sigma:"\u03A3",Tau:"\u03A4",Upsilon:"\u03A5",Phi:"\u03A6",Chi:"\u03A7",Psi:"\u03A8",Omega:"\u03A9",alpha:"\u03B1",beta:"\u03B2",gamma:"\u03B3",delta:"\u03B4",epsilon:"\u03B5",zeta:"\u03B6",eta:"\u03B7",theta:"\u03B8",iota:"\u03B9",kappa:"\u03BA",lambda:"\u03BB",mu:"\u03BC",nu:"\u03BD",xi:"\u03BE",omicron:"\u03BF",pi:"\u03C0",rho:"\u03C1",sigmaf:"\u03C2",sigma:"\u03C3",tau:"\u03C4",upsilon:"\u03C5",phi:"\u03C6",chi:"\u03C7",psi:"\u03C8",omega:"\u03C9",thetasym:"\u03D1",upsih:"\u03D2",piv:"\u03D6",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",zwnj:"\u200C",zwj:"\u200D",lrm:"\u200E",rlm:"\u200F",ndash:"\u2013",mdash:"\u2014",lsquo:"\u2018",rsquo:"\u2019",sbquo:"\u201A",ldquo:"\u201C",rdquo:"\u201D",bdquo:"\u201E",dagger:"\u2020",Dagger:"\u2021",bull:"\u2022",hellip:"\u2026",permil:"\u2030",prime:"\u2032",Prime:"\u2033",lsaquo:"\u2039",rsaquo:"\u203A",oline:"\u203E",frasl:"\u2044",euro:"\u20AC",image:"\u2111",weierp:"\u2118",real:"\u211C",trade:"\u2122",alefsym:"\u2135",larr:"\u2190",uarr:"\u2191",rarr:"\u2192",darr:"\u2193",harr:"\u2194",crarr:"\u21B5",lArr:"\u21D0",uArr:"\u21D1",rArr:"\u21D2",dArr:"\u21D3",hArr:"\u21D4",forall:"\u2200",part:"\u2202",exist:"\u2203",empty:"\u2205",nabla:"\u2207",isin:"\u2208",notin:"\u2209",ni:"\u220B",prod:"\u220F",sum:"\u2211",minus:"\u2212",lowast:"\u2217",radic:"\u221A",prop:"\u221D",infin:"\u221E",ang:"\u2220",and:"\u2227",or:"\u2228",cap:"\u2229",cup:"\u222A",int:"\u222B",there4:"\u2234",sim:"\u223C",cong:"\u2245",asymp:"\u2248",ne:"\u2260",equiv:"\u2261",le:"\u2264",ge:"\u2265",sub:"\u2282",sup:"\u2283",nsub:"\u2284",sube:"\u2286",supe:"\u2287",oplus:"\u2295",otimes:"\u2297",perp:"\u22A5",sdot:"\u22C5",lceil:"\u2308",rceil:"\u2309",lfloor:"\u230A",rfloor:"\u230B",lang:"\u2329",rang:"\u232A",loz:"\u25CA",spades:"\u2660",clubs:"\u2663",hearts:"\u2665",diams:"\u2666"}});var Hs=ot((zi,to)=>{"use strict";(function(e,t){typeof zi=="object"&&typeof to<"u"?t(zi):typeof define=="function"&&define.amd?define(["exports"],t):(e=typeof globalThis<"u"?globalThis:e||self,t(e.acorn={}))})(zi,(function(e){"use strict";var t=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,78,5,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,199,7,137,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,55,9,266,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,233,0,3,0,8,1,6,0,475,6,110,6,6,9,4759,9,787719,239],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,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,7,25,39,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,5,57,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,24,43,261,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,33,24,3,24,45,74,6,0,67,12,65,1,2,0,15,4,10,7381,42,31,98,114,8702,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,208,30,2,2,2,1,2,6,3,4,10,1,225,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4381,3,5773,3,7472,16,621,2467,541,1507,4938,6,8489],r="\u200C\u200D\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ADD\u1AE0-\u1AEB\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65",o="\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088F\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5C\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDC-\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7DC\uA7F1-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC",h={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},p="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",g={5:p,"5module":p+" export import",6:p+" const class extends export import super"},v=/^in(stanceof)?$/,l=new RegExp("["+o+"]"),T=new RegExp("["+o+r+"]");function _(i,a){for(var c=65536,f=0;f<a.length;f+=2){if(c+=a[f],c>i)return!1;if(c+=a[f+1],c>=i)return!0}return!1}function D(i,a){return i<65?i===36:i<91?!0:i<97?i===95:i<123?!0:i<=65535?i>=170&&l.test(String.fromCharCode(i)):a===!1?!1:_(i,s)}function w(i,a){return i<48?i===36:i<58?!0:i<65?!1:i<91?!0:i<97?i===95:i<123?!0:i<=65535?i>=170&&T.test(String.fromCharCode(i)):a===!1?!1:_(i,s)||_(i,t)}var E=function(a,c){c===void 0&&(c={}),this.label=a,this.keyword=c.keyword,this.beforeExpr=!!c.beforeExpr,this.startsExpr=!!c.startsExpr,this.isLoop=!!c.isLoop,this.isAssign=!!c.isAssign,this.prefix=!!c.prefix,this.postfix=!!c.postfix,this.binop=c.binop||null,this.updateContext=null};function F(i,a){return new E(i,{beforeExpr:!0,binop:a})}var V={beforeExpr:!0},G={startsExpr:!0},Q={};function $(i,a){return a===void 0&&(a={}),a.keyword=i,Q[i]=new E(i,a)}var m={num:new E("num",G),regexp:new E("regexp",G),string:new E("string",G),name:new E("name",G),privateId:new E("privateId",G),eof:new E("eof"),bracketL:new E("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new E("]"),braceL:new E("{",{beforeExpr:!0,startsExpr:!0}),braceR:new E("}"),parenL:new E("(",{beforeExpr:!0,startsExpr:!0}),parenR:new E(")"),comma:new E(",",V),semi:new E(";",V),colon:new E(":",V),dot:new E("."),question:new E("?",V),questionDot:new E("?."),arrow:new E("=>",V),template:new E("template"),invalidTemplate:new E("invalidTemplate"),ellipsis:new E("...",V),backQuote:new E("`",G),dollarBraceL:new E("${",{beforeExpr:!0,startsExpr:!0}),eq:new E("=",{beforeExpr:!0,isAssign:!0}),assign:new E("_=",{beforeExpr:!0,isAssign:!0}),incDec:new E("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new E("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:F("||",1),logicalAND:F("&&",2),bitwiseOR:F("|",3),bitwiseXOR:F("^",4),bitwiseAND:F("&",5),equality:F("==/!=/===/!==",6),relational:F("</>/<=/>=",7),bitShift:F("<</>>/>>>",8),plusMin:new E("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:F("%",10),star:F("*",10),slash:F("/",10),starstar:new E("**",{beforeExpr:!0}),coalesce:F("??",1),_break:$("break"),_case:$("case",V),_catch:$("catch"),_continue:$("continue"),_debugger:$("debugger"),_default:$("default",V),_do:$("do",{isLoop:!0,beforeExpr:!0}),_else:$("else",V),_finally:$("finally"),_for:$("for",{isLoop:!0}),_function:$("function",G),_if:$("if"),_return:$("return",V),_switch:$("switch"),_throw:$("throw",V),_try:$("try"),_var:$("var"),_const:$("const"),_while:$("while",{isLoop:!0}),_with:$("with"),_new:$("new",{beforeExpr:!0,startsExpr:!0}),_this:$("this",G),_super:$("super",G),_class:$("class",G),_extends:$("extends",V),_export:$("export"),_import:$("import",G),_null:$("null",G),_true:$("true",G),_false:$("false",G),_in:$("in",{beforeExpr:!0,binop:7}),_instanceof:$("instanceof",{beforeExpr:!0,binop:7}),_typeof:$("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:$("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:$("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},ne=/\r\n?|\n|\u2028|\u2029/,z=new RegExp(ne.source,"g");function ae(i){return i===10||i===13||i===8232||i===8233}function X(i,a,c){c===void 0&&(c=i.length);for(var f=a;f<c;f++){var b=i.charCodeAt(f);if(ae(b))return f<c-1&&b===13&&i.charCodeAt(f+1)===10?f+2:f+1}return-1}var Z=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,M=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,j=Object.prototype,ce=j.hasOwnProperty,ue=j.toString,O=Object.hasOwn||(function(i,a){return ce.call(i,a)}),I=Array.isArray||(function(i){return ue.call(i)==="[object Array]"}),S=Object.create(null);function n(i){return S[i]||(S[i]=new RegExp("^(?:"+i.replace(/ /g,"|")+")$"))}function u(i){return i<=65535?String.fromCharCode(i):(i-=65536,String.fromCharCode((i>>10)+55296,(i&1023)+56320))}var d=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,y=function(a,c){this.line=a,this.column=c};y.prototype.offset=function(a){return new y(this.line,this.column+a)};var C=function(a,c,f){this.start=c,this.end=f,a.sourceFile!==null&&(this.source=a.sourceFile)};function A(i,a){for(var c=1,f=0;;){var b=X(i,f,a);if(b<0)return new y(c,a-f);++c,f=b}}var k={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},L=!1;function N(i){var a={};for(var c in k)a[c]=i&&O(i,c)?i[c]:k[c];if(a.ecmaVersion==="latest"?a.ecmaVersion=1e8:a.ecmaVersion==null?(!L&&typeof console=="object"&&console.warn&&(L=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
|
|
2
|
+
Defaulting to 2020, but this will stop working in the future.`)),a.ecmaVersion=11):a.ecmaVersion>=2015&&(a.ecmaVersion-=2009),a.allowReserved==null&&(a.allowReserved=a.ecmaVersion<5),(!i||i.allowHashBang==null)&&(a.allowHashBang=a.ecmaVersion>=14),I(a.onToken)){var f=a.onToken;a.onToken=function(b){return f.push(b)}}if(I(a.onComment)&&(a.onComment=W(a,a.onComment)),a.sourceType==="commonjs"&&a.allowAwaitOutsideFunction)throw new Error("Cannot use allowAwaitOutsideFunction with sourceType: commonjs");return a}function W(i,a){return function(c,f,b,P,R,H){var K={type:c?"Block":"Line",value:f,start:b,end:P};i.locations&&(K.loc=new C(this,R,H)),i.ranges&&(K.range=[b,P]),a.push(K)}}var J=1,B=2,q=4,U=8,Y=16,oe=32,de=64,ge=128,ke=256,Ie=512,ft=1024,je=J|B|ke;function Tt(i,a){return B|(i?q:0)|(a?U:0)}var nt=0,bt=1,qe=2,St=3,Wt=4,Gt=5,be=function(a,c,f){this.options=a=N(a),this.sourceFile=a.sourceFile,this.keywords=n(g[a.ecmaVersion>=6?6:a.sourceType==="module"?"5module":5]);var b="";a.allowReserved!==!0&&(b=h[a.ecmaVersion>=6?6:a.ecmaVersion===5?5:3],a.sourceType==="module"&&(b+=" await")),this.reservedWords=n(b);var P=(b?b+" ":"")+h.strict;this.reservedWordsStrict=n(P),this.reservedWordsStrictBind=n(P+" "+h.strictBind),this.input=String(c),this.containsEsc=!1,f?(this.pos=f,this.lineStart=this.input.lastIndexOf(`
|
|
3
|
+
`,f-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(ne).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=m.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule=a.sourceType==="module",this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),this.pos===0&&a.allowHashBang&&this.input.slice(0,2)==="#!"&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(this.options.sourceType==="commonjs"?B:J),this.regexpState=null,this.privateNameStack=[]},Ne={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowReturn:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},allowUsing:{configurable:!0},inClassStaticBlock:{configurable:!0}};be.prototype.parse=function(){var a=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(a)},Ne.inFunction.get=function(){return(this.currentVarScope().flags&B)>0},Ne.inGenerator.get=function(){return(this.currentVarScope().flags&U)>0},Ne.inAsync.get=function(){return(this.currentVarScope().flags&q)>0},Ne.canAwait.get=function(){for(var i=this.scopeStack.length-1;i>=0;i--){var a=this.scopeStack[i],c=a.flags;if(c&(ke|Ie))return!1;if(c&B)return(c&q)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction},Ne.allowReturn.get=function(){return!!(this.inFunction||this.options.allowReturnOutsideFunction&&this.currentVarScope().flags&J)},Ne.allowSuper.get=function(){var i=this.currentThisScope(),a=i.flags;return(a&de)>0||this.options.allowSuperOutsideMethod},Ne.allowDirectSuper.get=function(){return(this.currentThisScope().flags&ge)>0},Ne.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},Ne.allowNewDotTarget.get=function(){for(var i=this.scopeStack.length-1;i>=0;i--){var a=this.scopeStack[i],c=a.flags;if(c&(ke|Ie)||c&B&&!(c&Y))return!0}return!1},Ne.allowUsing.get=function(){var i=this.currentScope(),a=i.flags;return!(a&ft||!this.inModule&&a&J)},Ne.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&ke)>0},be.extend=function(){for(var a=[],c=arguments.length;c--;)a[c]=arguments[c];for(var f=this,b=0;b<a.length;b++)f=a[b](f);return f},be.parse=function(a,c){return new this(c,a).parse()},be.parseExpressionAt=function(a,c,f){var b=new this(f,a,c);return b.nextToken(),b.parseExpression()},be.tokenizer=function(a,c){return new this(c,a)},Object.defineProperties(be.prototype,Ne);var Pe=be.prototype,$t=/^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;Pe.strictDirective=function(i){if(this.options.ecmaVersion<5)return!1;for(;;){M.lastIndex=i,i+=M.exec(this.input)[0].length;var a=$t.exec(this.input.slice(i));if(!a)return!1;if((a[1]||a[2])==="use strict"){M.lastIndex=i+a[0].length;var c=M.exec(this.input),f=c.index+c[0].length,b=this.input.charAt(f);return b===";"||b==="}"||ne.test(c[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(b)||b==="!"&&this.input.charAt(f+1)==="=")}i+=a[0].length,M.lastIndex=i,i+=M.exec(this.input)[0].length,this.input[i]===";"&&i++}},Pe.eat=function(i){return this.type===i?(this.next(),!0):!1},Pe.isContextual=function(i){return this.type===m.name&&this.value===i&&!this.containsEsc},Pe.eatContextual=function(i){return this.isContextual(i)?(this.next(),!0):!1},Pe.expectContextual=function(i){this.eatContextual(i)||this.unexpected()},Pe.canInsertSemicolon=function(){return this.type===m.eof||this.type===m.braceR||ne.test(this.input.slice(this.lastTokEnd,this.start))},Pe.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},Pe.semicolon=function(){!this.eat(m.semi)&&!this.insertSemicolon()&&this.unexpected()},Pe.afterTrailingComma=function(i,a){if(this.type===i)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),a||this.next(),!0},Pe.expect=function(i){this.eat(i)||this.unexpected()},Pe.unexpected=function(i){this.raise(i??this.start,"Unexpected token")};var di=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};Pe.checkPatternErrors=function(i,a){if(i){i.trailingComma>-1&&this.raiseRecoverable(i.trailingComma,"Comma is not permitted after the rest element");var c=a?i.parenthesizedAssign:i.parenthesizedBind;c>-1&&this.raiseRecoverable(c,a?"Assigning to rvalue":"Parenthesized pattern")}},Pe.checkExpressionErrors=function(i,a){if(!i)return!1;var c=i.shorthandAssign,f=i.doubleProto;if(!a)return c>=0||f>=0;c>=0&&this.raise(c,"Shorthand property assignments are valid only in destructuring patterns"),f>=0&&this.raiseRecoverable(f,"Redefinition of __proto__ property")},Pe.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,"Yield expression cannot be a default value"),this.awaitPos&&this.raise(this.awaitPos,"Await expression cannot be a default value")},Pe.isSimpleAssignTarget=function(i){return i.type==="ParenthesizedExpression"?this.isSimpleAssignTarget(i.expression):i.type==="Identifier"||i.type==="MemberExpression"};var ie=be.prototype;ie.parseTopLevel=function(i){var a=Object.create(null);for(i.body||(i.body=[]);this.type!==m.eof;){var c=this.parseStatement(null,!0,a);i.body.push(c)}if(this.inModule)for(var f=0,b=Object.keys(this.undefinedExports);f<b.length;f+=1){var P=b[f];this.raiseRecoverable(this.undefinedExports[P].start,"Export '"+P+"' is not defined")}return this.adaptDirectivePrologue(i.body),this.next(),i.sourceType=this.options.sourceType==="commonjs"?"script":this.options.sourceType,this.finishNode(i,"Program")};var es={kind:"loop"},Do={kind:"switch"};ie.isLet=function(i){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;M.lastIndex=this.pos;var a=M.exec(this.input),c=this.pos+a[0].length,f=this.fullCharCodeAt(c);if(f===91||f===92)return!0;if(i)return!1;if(f===123)return!0;if(D(f)){var b=c;do c+=f<=65535?1:2;while(w(f=this.fullCharCodeAt(c)));if(f===92)return!0;var P=this.input.slice(b,c);if(!v.test(P))return!0}return!1},ie.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;M.lastIndex=this.pos;var i=M.exec(this.input),a=this.pos+i[0].length,c;return!ne.test(this.input.slice(this.pos,a))&&this.input.slice(a,a+8)==="function"&&(a+8===this.input.length||!(w(c=this.fullCharCodeAt(a+8))||c===92))},ie.isUsingKeyword=function(i,a){if(this.options.ecmaVersion<17||!this.isContextual(i?"await":"using"))return!1;M.lastIndex=this.pos;var c=M.exec(this.input),f=this.pos+c[0].length;if(ne.test(this.input.slice(this.pos,f)))return!1;if(i){var b=f+5,P;if(this.input.slice(f,b)!=="using"||b===this.input.length||w(P=this.fullCharCodeAt(b))||P===92)return!1;M.lastIndex=b;var R=M.exec(this.input);if(f=b+R[0].length,R&&ne.test(this.input.slice(b,f)))return!1}var H=this.fullCharCodeAt(f);if(!D(H)&&H!==92)return!1;var K=f;do f+=H<=65535?1:2;while(w(H=this.fullCharCodeAt(f)));if(H===92)return!0;var he=this.input.slice(K,f);return!(v.test(he)||a&&he==="of")},ie.isAwaitUsing=function(i){return this.isUsingKeyword(!0,i)},ie.isUsing=function(i){return this.isUsingKeyword(!1,i)},ie.parseStatement=function(i,a,c){var f=this.type,b=this.startNode(),P;switch(this.isLet(i)&&(f=m._var,P="let"),f){case m._break:case m._continue:return this.parseBreakContinueStatement(b,f.keyword);case m._debugger:return this.parseDebuggerStatement(b);case m._do:return this.parseDoStatement(b);case m._for:return this.parseForStatement(b);case m._function:return i&&(this.strict||i!=="if"&&i!=="label")&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(b,!1,!i);case m._class:return i&&this.unexpected(),this.parseClass(b,!0);case m._if:return this.parseIfStatement(b);case m._return:return this.parseReturnStatement(b);case m._switch:return this.parseSwitchStatement(b);case m._throw:return this.parseThrowStatement(b);case m._try:return this.parseTryStatement(b);case m._const:case m._var:return P=P||this.value,i&&P!=="var"&&this.unexpected(),this.parseVarStatement(b,P);case m._while:return this.parseWhileStatement(b);case m._with:return this.parseWithStatement(b);case m.braceL:return this.parseBlock(!0,b);case m.semi:return this.parseEmptyStatement(b);case m._export:case m._import:if(this.options.ecmaVersion>10&&f===m._import){M.lastIndex=this.pos;var R=M.exec(this.input),H=this.pos+R[0].length,K=this.input.charCodeAt(H);if(K===40||K===46)return this.parseExpressionStatement(b,this.parseExpression())}return this.options.allowImportExportEverywhere||(a||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),f===m._import?this.parseImport(b):this.parseExport(b,c);default:if(this.isAsyncFunction())return i&&this.unexpected(),this.next(),this.parseFunctionStatement(b,!0,!i);var he=this.isAwaitUsing(!1)?"await using":this.isUsing(!1)?"using":null;if(he)return this.allowUsing||this.raise(this.start,"Using declaration cannot appear in the top level when source type is `script` or in the bare case statement"),he==="await using"&&(this.canAwait||this.raise(this.start,"Await using cannot appear outside of async function"),this.next()),this.next(),this.parseVar(b,!1,he),this.semicolon(),this.finishNode(b,"VariableDeclaration");var me=this.value,we=this.parseExpression();return f===m.name&&we.type==="Identifier"&&this.eat(m.colon)?this.parseLabeledStatement(b,me,we,i):this.parseExpressionStatement(b,we)}},ie.parseBreakContinueStatement=function(i,a){var c=a==="break";this.next(),this.eat(m.semi)||this.insertSemicolon()?i.label=null:this.type!==m.name?this.unexpected():(i.label=this.parseIdent(),this.semicolon());for(var f=0;f<this.labels.length;++f){var b=this.labels[f];if((i.label==null||b.name===i.label.name)&&(b.kind!=null&&(c||b.kind==="loop")||i.label&&c))break}return f===this.labels.length&&this.raise(i.start,"Unsyntactic "+a),this.finishNode(i,c?"BreakStatement":"ContinueStatement")},ie.parseDebuggerStatement=function(i){return this.next(),this.semicolon(),this.finishNode(i,"DebuggerStatement")},ie.parseDoStatement=function(i){return this.next(),this.labels.push(es),i.body=this.parseStatement("do"),this.labels.pop(),this.expect(m._while),i.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(m.semi):this.semicolon(),this.finishNode(i,"DoWhileStatement")},ie.parseForStatement=function(i){this.next();var a=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(es),this.enterScope(0),this.expect(m.parenL),this.type===m.semi)return a>-1&&this.unexpected(a),this.parseFor(i,null);var c=this.isLet();if(this.type===m._var||this.type===m._const||c){var f=this.startNode(),b=c?"let":this.value;return this.next(),this.parseVar(f,!0,b),this.finishNode(f,"VariableDeclaration"),this.parseForAfterInit(i,f,a)}var P=this.isContextual("let"),R=!1,H=this.isUsing(!0)?"using":this.isAwaitUsing(!0)?"await using":null;if(H){var K=this.startNode();return this.next(),H==="await using"&&(this.canAwait||this.raise(this.start,"Await using cannot appear outside of async function"),this.next()),this.parseVar(K,!0,H),this.finishNode(K,"VariableDeclaration"),this.parseForAfterInit(i,K,a)}var he=this.containsEsc,me=new di,we=this.start,Le=a>-1?this.parseExprSubscripts(me,"await"):this.parseExpression(!0,me);return this.type===m._in||(R=this.options.ecmaVersion>=6&&this.isContextual("of"))?(a>-1?(this.type===m._in&&this.unexpected(a),i.await=!0):R&&this.options.ecmaVersion>=8&&(Le.start===we&&!he&&Le.type==="Identifier"&&Le.name==="async"?this.unexpected():this.options.ecmaVersion>=9&&(i.await=!1)),P&&R&&this.raise(Le.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(Le,!1,me),this.checkLValPattern(Le),this.parseForIn(i,Le)):(this.checkExpressionErrors(me,!0),a>-1&&this.unexpected(a),this.parseFor(i,Le))},ie.parseForAfterInit=function(i,a,c){return(this.type===m._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&a.declarations.length===1?(this.options.ecmaVersion>=9&&(this.type===m._in?c>-1&&this.unexpected(c):i.await=c>-1),this.parseForIn(i,a)):(c>-1&&this.unexpected(c),this.parseFor(i,a))},ie.parseFunctionStatement=function(i,a,c){return this.next(),this.parseFunction(i,Kt|(c?0:ts),!1,a)},ie.parseIfStatement=function(i){return this.next(),i.test=this.parseParenExpression(),i.consequent=this.parseStatement("if"),i.alternate=this.eat(m._else)?this.parseStatement("if"):null,this.finishNode(i,"IfStatement")},ie.parseReturnStatement=function(i){return this.allowReturn||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(m.semi)||this.insertSemicolon()?i.argument=null:(i.argument=this.parseExpression(),this.semicolon()),this.finishNode(i,"ReturnStatement")},ie.parseSwitchStatement=function(i){this.next(),i.discriminant=this.parseParenExpression(),i.cases=[],this.expect(m.braceL),this.labels.push(Do),this.enterScope(ft);for(var a,c=!1;this.type!==m.braceR;)if(this.type===m._case||this.type===m._default){var f=this.type===m._case;a&&this.finishNode(a,"SwitchCase"),i.cases.push(a=this.startNode()),a.consequent=[],this.next(),f?a.test=this.parseExpression():(c&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),c=!0,a.test=null),this.expect(m.colon)}else a||this.unexpected(),a.consequent.push(this.parseStatement(null));return this.exitScope(),a&&this.finishNode(a,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(i,"SwitchStatement")},ie.parseThrowStatement=function(i){return this.next(),ne.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),i.argument=this.parseExpression(),this.semicolon(),this.finishNode(i,"ThrowStatement")};var Fo=[];ie.parseCatchClauseParam=function(){var i=this.parseBindingAtom(),a=i.type==="Identifier";return this.enterScope(a?oe:0),this.checkLValPattern(i,a?Wt:qe),this.expect(m.parenR),i},ie.parseTryStatement=function(i){if(this.next(),i.block=this.parseBlock(),i.handler=null,this.type===m._catch){var a=this.startNode();this.next(),this.eat(m.parenL)?a.param=this.parseCatchClauseParam():(this.options.ecmaVersion<10&&this.unexpected(),a.param=null,this.enterScope(0)),a.body=this.parseBlock(!1),this.exitScope(),i.handler=this.finishNode(a,"CatchClause")}return i.finalizer=this.eat(m._finally)?this.parseBlock():null,!i.handler&&!i.finalizer&&this.raise(i.start,"Missing catch or finally clause"),this.finishNode(i,"TryStatement")},ie.parseVarStatement=function(i,a,c){return this.next(),this.parseVar(i,!1,a,c),this.semicolon(),this.finishNode(i,"VariableDeclaration")},ie.parseWhileStatement=function(i){return this.next(),i.test=this.parseParenExpression(),this.labels.push(es),i.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(i,"WhileStatement")},ie.parseWithStatement=function(i){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),i.object=this.parseParenExpression(),i.body=this.parseStatement("with"),this.finishNode(i,"WithStatement")},ie.parseEmptyStatement=function(i){return this.next(),this.finishNode(i,"EmptyStatement")},ie.parseLabeledStatement=function(i,a,c,f){for(var b=0,P=this.labels;b<P.length;b+=1){var R=P[b];R.name===a&&this.raise(c.start,"Label '"+a+"' is already declared")}for(var H=this.type.isLoop?"loop":this.type===m._switch?"switch":null,K=this.labels.length-1;K>=0;K--){var he=this.labels[K];if(he.statementStart===i.start)he.statementStart=this.start,he.kind=H;else break}return this.labels.push({name:a,kind:H,statementStart:this.start}),i.body=this.parseStatement(f?f.indexOf("label")===-1?f+"label":f:"label"),this.labels.pop(),i.label=c,this.finishNode(i,"LabeledStatement")},ie.parseExpressionStatement=function(i,a){return i.expression=a,this.semicolon(),this.finishNode(i,"ExpressionStatement")},ie.parseBlock=function(i,a,c){for(i===void 0&&(i=!0),a===void 0&&(a=this.startNode()),a.body=[],this.expect(m.braceL),i&&this.enterScope(0);this.type!==m.braceR;){var f=this.parseStatement(null);a.body.push(f)}return c&&(this.strict=!1),this.next(),i&&this.exitScope(),this.finishNode(a,"BlockStatement")},ie.parseFor=function(i,a){return i.init=a,this.expect(m.semi),i.test=this.type===m.semi?null:this.parseExpression(),this.expect(m.semi),i.update=this.type===m.parenR?null:this.parseExpression(),this.expect(m.parenR),i.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(i,"ForStatement")},ie.parseForIn=function(i,a){var c=this.type===m._in;return this.next(),a.type==="VariableDeclaration"&&a.declarations[0].init!=null&&(!c||this.options.ecmaVersion<8||this.strict||a.kind!=="var"||a.declarations[0].id.type!=="Identifier")&&this.raise(a.start,(c?"for-in":"for-of")+" loop variable declaration may not have an initializer"),i.left=a,i.right=c?this.parseExpression():this.parseMaybeAssign(),this.expect(m.parenR),i.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(i,c?"ForInStatement":"ForOfStatement")},ie.parseVar=function(i,a,c,f){for(i.declarations=[],i.kind=c;;){var b=this.startNode();if(this.parseVarId(b,c),this.eat(m.eq)?b.init=this.parseMaybeAssign(a):!f&&c==="const"&&!(this.type===m._in||this.options.ecmaVersion>=6&&this.isContextual("of"))?this.unexpected():!f&&(c==="using"||c==="await using")&&this.options.ecmaVersion>=17&&this.type!==m._in&&!this.isContextual("of")?this.raise(this.lastTokEnd,"Missing initializer in "+c+" declaration"):!f&&b.id.type!=="Identifier"&&!(a&&(this.type===m._in||this.isContextual("of")))?this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):b.init=null,i.declarations.push(this.finishNode(b,"VariableDeclarator")),!this.eat(m.comma))break}return i},ie.parseVarId=function(i,a){i.id=a==="using"||a==="await using"?this.parseIdent():this.parseBindingAtom(),this.checkLValPattern(i.id,a==="var"?bt:qe,!1)};var Kt=1,ts=2,Zs=4;ie.parseFunction=function(i,a,c,f,b){this.initFunction(i),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!f)&&(this.type===m.star&&a&ts&&this.unexpected(),i.generator=this.eat(m.star)),this.options.ecmaVersion>=8&&(i.async=!!f),a&Kt&&(i.id=a&Zs&&this.type!==m.name?null:this.parseIdent(),i.id&&!(a&ts)&&this.checkLValSimple(i.id,this.strict||i.generator||i.async?this.treatFunctionsAsVar?bt:qe:St));var P=this.yieldPos,R=this.awaitPos,H=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(Tt(i.async,i.generator)),a&Kt||(i.id=this.type===m.name?this.parseIdent():null),this.parseFunctionParams(i),this.parseFunctionBody(i,c,!1,b),this.yieldPos=P,this.awaitPos=R,this.awaitIdentPos=H,this.finishNode(i,a&Kt?"FunctionDeclaration":"FunctionExpression")},ie.parseFunctionParams=function(i){this.expect(m.parenL),i.params=this.parseBindingList(m.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},ie.parseClass=function(i,a){this.next();var c=this.strict;this.strict=!0,this.parseClassId(i,a),this.parseClassSuper(i);var f=this.enterClassBody(),b=this.startNode(),P=!1;for(b.body=[],this.expect(m.braceL);this.type!==m.braceR;){var R=this.parseClassElement(i.superClass!==null);R&&(b.body.push(R),R.type==="MethodDefinition"&&R.kind==="constructor"?(P&&this.raiseRecoverable(R.start,"Duplicate constructor in the same class"),P=!0):R.key&&R.key.type==="PrivateIdentifier"&&Bo(f,R)&&this.raiseRecoverable(R.key.start,"Identifier '#"+R.key.name+"' has already been declared"))}return this.strict=c,this.next(),i.body=this.finishNode(b,"ClassBody"),this.exitClassBody(),this.finishNode(i,a?"ClassDeclaration":"ClassExpression")},ie.parseClassElement=function(i){if(this.eat(m.semi))return null;var a=this.options.ecmaVersion,c=this.startNode(),f="",b=!1,P=!1,R="method",H=!1;if(this.eatContextual("static")){if(a>=13&&this.eat(m.braceL))return this.parseClassStaticBlock(c),c;this.isClassElementNameStart()||this.type===m.star?H=!0:f="static"}if(c.static=H,!f&&a>=8&&this.eatContextual("async")&&((this.isClassElementNameStart()||this.type===m.star)&&!this.canInsertSemicolon()?P=!0:f="async"),!f&&(a>=9||!P)&&this.eat(m.star)&&(b=!0),!f&&!P&&!b){var K=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?R=K:f=K)}if(f?(c.computed=!1,c.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),c.key.name=f,this.finishNode(c.key,"Identifier")):this.parseClassElementName(c),a<13||this.type===m.parenL||R!=="method"||b||P){var he=!c.static&&mi(c,"constructor"),me=he&&i;he&&R!=="method"&&this.raise(c.key.start,"Constructor can't have get/set modifier"),c.kind=he?"constructor":R,this.parseClassMethod(c,b,P,me)}else this.parseClassField(c);return c},ie.isClassElementNameStart=function(){return this.type===m.name||this.type===m.privateId||this.type===m.num||this.type===m.string||this.type===m.bracketL||this.type.keyword},ie.parseClassElementName=function(i){this.type===m.privateId?(this.value==="constructor"&&this.raise(this.start,"Classes can't have an element named '#constructor'"),i.computed=!1,i.key=this.parsePrivateIdent()):this.parsePropertyName(i)},ie.parseClassMethod=function(i,a,c,f){var b=i.key;i.kind==="constructor"?(a&&this.raise(b.start,"Constructor can't be a generator"),c&&this.raise(b.start,"Constructor can't be an async method")):i.static&&mi(i,"prototype")&&this.raise(b.start,"Classes may not have a static property named prototype");var P=i.value=this.parseMethod(a,c,f);return i.kind==="get"&&P.params.length!==0&&this.raiseRecoverable(P.start,"getter should have no params"),i.kind==="set"&&P.params.length!==1&&this.raiseRecoverable(P.start,"setter should have exactly one param"),i.kind==="set"&&P.params[0].type==="RestElement"&&this.raiseRecoverable(P.params[0].start,"Setter cannot use rest params"),this.finishNode(i,"MethodDefinition")},ie.parseClassField=function(i){return mi(i,"constructor")?this.raise(i.key.start,"Classes can't have a field named 'constructor'"):i.static&&mi(i,"prototype")&&this.raise(i.key.start,"Classes can't have a static field named 'prototype'"),this.eat(m.eq)?(this.enterScope(Ie|de),i.value=this.parseMaybeAssign(),this.exitScope()):i.value=null,this.semicolon(),this.finishNode(i,"PropertyDefinition")},ie.parseClassStaticBlock=function(i){i.body=[];var a=this.labels;for(this.labels=[],this.enterScope(ke|de);this.type!==m.braceR;){var c=this.parseStatement(null);i.body.push(c)}return this.next(),this.exitScope(),this.labels=a,this.finishNode(i,"StaticBlock")},ie.parseClassId=function(i,a){this.type===m.name?(i.id=this.parseIdent(),a&&this.checkLValSimple(i.id,qe,!1)):(a===!0&&this.unexpected(),i.id=null)},ie.parseClassSuper=function(i){i.superClass=this.eat(m._extends)?this.parseExprSubscripts(null,!1):null},ie.enterClassBody=function(){var i={declared:Object.create(null),used:[]};return this.privateNameStack.push(i),i.declared},ie.exitClassBody=function(){var i=this.privateNameStack.pop(),a=i.declared,c=i.used;if(this.options.checkPrivateFields)for(var f=this.privateNameStack.length,b=f===0?null:this.privateNameStack[f-1],P=0;P<c.length;++P){var R=c[P];O(a,R.name)||(b?b.used.push(R):this.raiseRecoverable(R.start,"Private field '#"+R.name+"' must be declared in an enclosing class"))}};function Bo(i,a){var c=a.key.name,f=i[c],b="true";return a.type==="MethodDefinition"&&(a.kind==="get"||a.kind==="set")&&(b=(a.static?"s":"i")+a.kind),f==="iget"&&b==="iset"||f==="iset"&&b==="iget"||f==="sget"&&b==="sset"||f==="sset"&&b==="sget"?(i[c]="true",!1):f?!0:(i[c]=b,!1)}function mi(i,a){var c=i.computed,f=i.key;return!c&&(f.type==="Identifier"&&f.name===a||f.type==="Literal"&&f.value===a)}ie.parseExportAllDeclaration=function(i,a){return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(i.exported=this.parseModuleExportName(),this.checkExport(a,i.exported,this.lastTokStart)):i.exported=null),this.expectContextual("from"),this.type!==m.string&&this.unexpected(),i.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(i.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(i,"ExportAllDeclaration")},ie.parseExport=function(i,a){if(this.next(),this.eat(m.star))return this.parseExportAllDeclaration(i,a);if(this.eat(m._default))return this.checkExport(a,"default",this.lastTokStart),i.declaration=this.parseExportDefaultDeclaration(),this.finishNode(i,"ExportDefaultDeclaration");if(this.shouldParseExportStatement())i.declaration=this.parseExportDeclaration(i),i.declaration.type==="VariableDeclaration"?this.checkVariableExport(a,i.declaration.declarations):this.checkExport(a,i.declaration.id,i.declaration.id.start),i.specifiers=[],i.source=null,this.options.ecmaVersion>=16&&(i.attributes=[]);else{if(i.declaration=null,i.specifiers=this.parseExportSpecifiers(a),this.eatContextual("from"))this.type!==m.string&&this.unexpected(),i.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(i.attributes=this.parseWithClause());else{for(var c=0,f=i.specifiers;c<f.length;c+=1){var b=f[c];this.checkUnreserved(b.local),this.checkLocalExport(b.local),b.local.type==="Literal"&&this.raise(b.local.start,"A string literal cannot be used as an exported binding without `from`.")}i.source=null,this.options.ecmaVersion>=16&&(i.attributes=[])}this.semicolon()}return this.finishNode(i,"ExportNamedDeclaration")},ie.parseExportDeclaration=function(i){return this.parseStatement(null)},ie.parseExportDefaultDeclaration=function(){var i;if(this.type===m._function||(i=this.isAsyncFunction())){var a=this.startNode();return this.next(),i&&this.next(),this.parseFunction(a,Kt|Zs,!1,i)}else if(this.type===m._class){var c=this.startNode();return this.parseClass(c,"nullableID")}else{var f=this.parseMaybeAssign();return this.semicolon(),f}},ie.checkExport=function(i,a,c){i&&(typeof a!="string"&&(a=a.type==="Identifier"?a.name:a.value),O(i,a)&&this.raiseRecoverable(c,"Duplicate export '"+a+"'"),i[a]=!0)},ie.checkPatternExport=function(i,a){var c=a.type;if(c==="Identifier")this.checkExport(i,a,a.start);else if(c==="ObjectPattern")for(var f=0,b=a.properties;f<b.length;f+=1){var P=b[f];this.checkPatternExport(i,P)}else if(c==="ArrayPattern")for(var R=0,H=a.elements;R<H.length;R+=1){var K=H[R];K&&this.checkPatternExport(i,K)}else c==="Property"?this.checkPatternExport(i,a.value):c==="AssignmentPattern"?this.checkPatternExport(i,a.left):c==="RestElement"&&this.checkPatternExport(i,a.argument)},ie.checkVariableExport=function(i,a){if(i)for(var c=0,f=a;c<f.length;c+=1){var b=f[c];this.checkPatternExport(i,b.id)}},ie.shouldParseExportStatement=function(){return this.type.keyword==="var"||this.type.keyword==="const"||this.type.keyword==="class"||this.type.keyword==="function"||this.isLet()||this.isAsyncFunction()},ie.parseExportSpecifier=function(i){var a=this.startNode();return a.local=this.parseModuleExportName(),a.exported=this.eatContextual("as")?this.parseModuleExportName():a.local,this.checkExport(i,a.exported,a.exported.start),this.finishNode(a,"ExportSpecifier")},ie.parseExportSpecifiers=function(i){var a=[],c=!0;for(this.expect(m.braceL);!this.eat(m.braceR);){if(c)c=!1;else if(this.expect(m.comma),this.afterTrailingComma(m.braceR))break;a.push(this.parseExportSpecifier(i))}return a},ie.parseImport=function(i){return this.next(),this.type===m.string?(i.specifiers=Fo,i.source=this.parseExprAtom()):(i.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),i.source=this.type===m.string?this.parseExprAtom():this.unexpected()),this.options.ecmaVersion>=16&&(i.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(i,"ImportDeclaration")},ie.parseImportSpecifier=function(){var i=this.startNode();return i.imported=this.parseModuleExportName(),this.eatContextual("as")?i.local=this.parseIdent():(this.checkUnreserved(i.imported),i.local=i.imported),this.checkLValSimple(i.local,qe),this.finishNode(i,"ImportSpecifier")},ie.parseImportDefaultSpecifier=function(){var i=this.startNode();return i.local=this.parseIdent(),this.checkLValSimple(i.local,qe),this.finishNode(i,"ImportDefaultSpecifier")},ie.parseImportNamespaceSpecifier=function(){var i=this.startNode();return this.next(),this.expectContextual("as"),i.local=this.parseIdent(),this.checkLValSimple(i.local,qe),this.finishNode(i,"ImportNamespaceSpecifier")},ie.parseImportSpecifiers=function(){var i=[],a=!0;if(this.type===m.name&&(i.push(this.parseImportDefaultSpecifier()),!this.eat(m.comma)))return i;if(this.type===m.star)return i.push(this.parseImportNamespaceSpecifier()),i;for(this.expect(m.braceL);!this.eat(m.braceR);){if(a)a=!1;else if(this.expect(m.comma),this.afterTrailingComma(m.braceR))break;i.push(this.parseImportSpecifier())}return i},ie.parseWithClause=function(){var i=[];if(!this.eat(m._with))return i;this.expect(m.braceL);for(var a={},c=!0;!this.eat(m.braceR);){if(c)c=!1;else if(this.expect(m.comma),this.afterTrailingComma(m.braceR))break;var f=this.parseImportAttribute(),b=f.key.type==="Identifier"?f.key.name:f.key.value;O(a,b)&&this.raiseRecoverable(f.key.start,"Duplicate attribute key '"+b+"'"),a[b]=!0,i.push(f)}return i},ie.parseImportAttribute=function(){var i=this.startNode();return i.key=this.type===m.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never"),this.expect(m.colon),this.type!==m.string&&this.unexpected(),i.value=this.parseExprAtom(),this.finishNode(i,"ImportAttribute")},ie.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===m.string){var i=this.parseLiteral(this.value);return d.test(i.value)&&this.raise(i.start,"An export name cannot include a lone surrogate."),i}return this.parseIdent(!0)},ie.adaptDirectivePrologue=function(i){for(var a=0;a<i.length&&this.isDirectiveCandidate(i[a]);++a)i[a].directive=i[a].expression.raw.slice(1,-1)},ie.isDirectiveCandidate=function(i){return this.options.ecmaVersion>=5&&i.type==="ExpressionStatement"&&i.expression.type==="Literal"&&typeof i.expression.value=="string"&&(this.input[i.start]==='"'||this.input[i.start]==="'")};var We=be.prototype;We.toAssignable=function(i,a,c){if(this.options.ecmaVersion>=6&&i)switch(i.type){case"Identifier":this.inAsync&&i.name==="await"&&this.raise(i.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":i.type="ObjectPattern",c&&this.checkPatternErrors(c,!0);for(var f=0,b=i.properties;f<b.length;f+=1){var P=b[f];this.toAssignable(P,a),P.type==="RestElement"&&(P.argument.type==="ArrayPattern"||P.argument.type==="ObjectPattern")&&this.raise(P.argument.start,"Unexpected token")}break;case"Property":i.kind!=="init"&&this.raise(i.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(i.value,a);break;case"ArrayExpression":i.type="ArrayPattern",c&&this.checkPatternErrors(c,!0),this.toAssignableList(i.elements,a);break;case"SpreadElement":i.type="RestElement",this.toAssignable(i.argument,a),i.argument.type==="AssignmentPattern"&&this.raise(i.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":i.operator!=="="&&this.raise(i.left.end,"Only '=' operator can be used for specifying default value."),i.type="AssignmentPattern",delete i.operator,this.toAssignable(i.left,a);break;case"ParenthesizedExpression":this.toAssignable(i.expression,a,c);break;case"ChainExpression":this.raiseRecoverable(i.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!a)break;default:this.raise(i.start,"Assigning to rvalue")}else c&&this.checkPatternErrors(c,!0);return i},We.toAssignableList=function(i,a){for(var c=i.length,f=0;f<c;f++){var b=i[f];b&&this.toAssignable(b,a)}if(c){var P=i[c-1];this.options.ecmaVersion===6&&a&&P&&P.type==="RestElement"&&P.argument.type!=="Identifier"&&this.unexpected(P.argument.start)}return i},We.parseSpread=function(i){var a=this.startNode();return this.next(),a.argument=this.parseMaybeAssign(!1,i),this.finishNode(a,"SpreadElement")},We.parseRestBinding=function(){var i=this.startNode();return this.next(),this.options.ecmaVersion===6&&this.type!==m.name&&this.unexpected(),i.argument=this.parseBindingAtom(),this.finishNode(i,"RestElement")},We.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case m.bracketL:var i=this.startNode();return this.next(),i.elements=this.parseBindingList(m.bracketR,!0,!0),this.finishNode(i,"ArrayPattern");case m.braceL:return this.parseObj(!0)}return this.parseIdent()},We.parseBindingList=function(i,a,c,f){for(var b=[],P=!0;!this.eat(i);)if(P?P=!1:this.expect(m.comma),a&&this.type===m.comma)b.push(null);else{if(c&&this.afterTrailingComma(i))break;if(this.type===m.ellipsis){var R=this.parseRestBinding();this.parseBindingListItem(R),b.push(R),this.type===m.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.expect(i);break}else b.push(this.parseAssignableListItem(f))}return b},We.parseAssignableListItem=function(i){var a=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(a),a},We.parseBindingListItem=function(i){return i},We.parseMaybeDefault=function(i,a,c){if(c=c||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(m.eq))return c;var f=this.startNodeAt(i,a);return f.left=c,f.right=this.parseMaybeAssign(),this.finishNode(f,"AssignmentPattern")},We.checkLValSimple=function(i,a,c){a===void 0&&(a=nt);var f=a!==nt;switch(i.type){case"Identifier":this.strict&&this.reservedWordsStrictBind.test(i.name)&&this.raiseRecoverable(i.start,(f?"Binding ":"Assigning to ")+i.name+" in strict mode"),f&&(a===qe&&i.name==="let"&&this.raiseRecoverable(i.start,"let is disallowed as a lexically bound name"),c&&(O(c,i.name)&&this.raiseRecoverable(i.start,"Argument name clash"),c[i.name]=!0),a!==Gt&&this.declareName(i.name,a,i.start));break;case"ChainExpression":this.raiseRecoverable(i.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":f&&this.raiseRecoverable(i.start,"Binding member expression");break;case"ParenthesizedExpression":return f&&this.raiseRecoverable(i.start,"Binding parenthesized expression"),this.checkLValSimple(i.expression,a,c);default:this.raise(i.start,(f?"Binding":"Assigning to")+" rvalue")}},We.checkLValPattern=function(i,a,c){switch(a===void 0&&(a=nt),i.type){case"ObjectPattern":for(var f=0,b=i.properties;f<b.length;f+=1){var P=b[f];this.checkLValInnerPattern(P,a,c)}break;case"ArrayPattern":for(var R=0,H=i.elements;R<H.length;R+=1){var K=H[R];K&&this.checkLValInnerPattern(K,a,c)}break;default:this.checkLValSimple(i,a,c)}},We.checkLValInnerPattern=function(i,a,c){switch(a===void 0&&(a=nt),i.type){case"Property":this.checkLValInnerPattern(i.value,a,c);break;case"AssignmentPattern":this.checkLValPattern(i.left,a,c);break;case"RestElement":this.checkLValPattern(i.argument,a,c);break;default:this.checkLValPattern(i,a,c)}};var Ge=function(a,c,f,b,P){this.token=a,this.isExpr=!!c,this.preserveSpace=!!f,this.override=b,this.generator=!!P},Ce={b_stat:new Ge("{",!1),b_expr:new Ge("{",!0),b_tmpl:new Ge("${",!1),p_stat:new Ge("(",!1),p_expr:new Ge("(",!0),q_tmpl:new Ge("`",!0,!0,function(i){return i.tryReadTemplateToken()}),f_stat:new Ge("function",!1),f_expr:new Ge("function",!0),f_expr_gen:new Ge("function",!0,!1,null,!0),f_gen:new Ge("function",!1,!1,null,!0)},Pt=be.prototype;Pt.initialContext=function(){return[Ce.b_stat]},Pt.curContext=function(){return this.context[this.context.length-1]},Pt.braceIsBlock=function(i){var a=this.curContext();return a===Ce.f_expr||a===Ce.f_stat?!0:i===m.colon&&(a===Ce.b_stat||a===Ce.b_expr)?!a.isExpr:i===m._return||i===m.name&&this.exprAllowed?ne.test(this.input.slice(this.lastTokEnd,this.start)):i===m._else||i===m.semi||i===m.eof||i===m.parenR||i===m.arrow?!0:i===m.braceL?a===Ce.b_stat:i===m._var||i===m._const||i===m.name?!1:!this.exprAllowed},Pt.inGeneratorContext=function(){for(var i=this.context.length-1;i>=1;i--){var a=this.context[i];if(a.token==="function")return a.generator}return!1},Pt.updateContext=function(i){var a,c=this.type;c.keyword&&i===m.dot?this.exprAllowed=!1:(a=c.updateContext)?a.call(this,i):this.exprAllowed=c.beforeExpr},Pt.overrideContext=function(i){this.curContext()!==i&&(this.context[this.context.length-1]=i)},m.parenR.updateContext=m.braceR.updateContext=function(){if(this.context.length===1){this.exprAllowed=!0;return}var i=this.context.pop();i===Ce.b_stat&&this.curContext().token==="function"&&(i=this.context.pop()),this.exprAllowed=!i.isExpr},m.braceL.updateContext=function(i){this.context.push(this.braceIsBlock(i)?Ce.b_stat:Ce.b_expr),this.exprAllowed=!0},m.dollarBraceL.updateContext=function(){this.context.push(Ce.b_tmpl),this.exprAllowed=!0},m.parenL.updateContext=function(i){var a=i===m._if||i===m._for||i===m._with||i===m._while;this.context.push(a?Ce.p_stat:Ce.p_expr),this.exprAllowed=!0},m.incDec.updateContext=function(){},m._function.updateContext=m._class.updateContext=function(i){i.beforeExpr&&i!==m._else&&!(i===m.semi&&this.curContext()!==Ce.p_stat)&&!(i===m._return&&ne.test(this.input.slice(this.lastTokEnd,this.start)))&&!((i===m.colon||i===m.braceL)&&this.curContext()===Ce.b_stat)?this.context.push(Ce.f_expr):this.context.push(Ce.f_stat),this.exprAllowed=!1},m.colon.updateContext=function(){this.curContext().token==="function"&&this.context.pop(),this.exprAllowed=!0},m.backQuote.updateContext=function(){this.curContext()===Ce.q_tmpl?this.context.pop():this.context.push(Ce.q_tmpl),this.exprAllowed=!1},m.star.updateContext=function(i){if(i===m._function){var a=this.context.length-1;this.context[a]===Ce.f_expr?this.context[a]=Ce.f_expr_gen:this.context[a]=Ce.f_gen}this.exprAllowed=!0},m.name.updateContext=function(i){var a=!1;this.options.ecmaVersion>=6&&i!==m.dot&&(this.value==="of"&&!this.exprAllowed||this.value==="yield"&&this.inGeneratorContext())&&(a=!0),this.exprAllowed=a};var le=be.prototype;le.checkPropClash=function(i,a,c){if(!(this.options.ecmaVersion>=9&&i.type==="SpreadElement")&&!(this.options.ecmaVersion>=6&&(i.computed||i.method||i.shorthand))){var f=i.key,b;switch(f.type){case"Identifier":b=f.name;break;case"Literal":b=String(f.value);break;default:return}var P=i.kind;if(this.options.ecmaVersion>=6){b==="__proto__"&&P==="init"&&(a.proto&&(c?c.doubleProto<0&&(c.doubleProto=f.start):this.raiseRecoverable(f.start,"Redefinition of __proto__ property")),a.proto=!0);return}b="$"+b;var R=a[b];if(R){var H;P==="init"?H=this.strict&&R.init||R.get||R.set:H=R.init||R[P],H&&this.raiseRecoverable(f.start,"Redefinition of property")}else R=a[b]={init:!1,get:!1,set:!1};R[P]=!0}},le.parseExpression=function(i,a){var c=this.start,f=this.startLoc,b=this.parseMaybeAssign(i,a);if(this.type===m.comma){var P=this.startNodeAt(c,f);for(P.expressions=[b];this.eat(m.comma);)P.expressions.push(this.parseMaybeAssign(i,a));return this.finishNode(P,"SequenceExpression")}return b},le.parseMaybeAssign=function(i,a,c){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(i);this.exprAllowed=!1}var f=!1,b=-1,P=-1,R=-1;a?(b=a.parenthesizedAssign,P=a.trailingComma,R=a.doubleProto,a.parenthesizedAssign=a.trailingComma=-1):(a=new di,f=!0);var H=this.start,K=this.startLoc;(this.type===m.parenL||this.type===m.name)&&(this.potentialArrowAt=this.start,this.potentialArrowInForAwait=i==="await");var he=this.parseMaybeConditional(i,a);if(c&&(he=c.call(this,he,H,K)),this.type.isAssign){var me=this.startNodeAt(H,K);return me.operator=this.value,this.type===m.eq&&(he=this.toAssignable(he,!1,a)),f||(a.parenthesizedAssign=a.trailingComma=a.doubleProto=-1),a.shorthandAssign>=he.start&&(a.shorthandAssign=-1),this.type===m.eq?this.checkLValPattern(he):this.checkLValSimple(he),me.left=he,this.next(),me.right=this.parseMaybeAssign(i),R>-1&&(a.doubleProto=R),this.finishNode(me,"AssignmentExpression")}else f&&this.checkExpressionErrors(a,!0);return b>-1&&(a.parenthesizedAssign=b),P>-1&&(a.trailingComma=P),he},le.parseMaybeConditional=function(i,a){var c=this.start,f=this.startLoc,b=this.parseExprOps(i,a);if(this.checkExpressionErrors(a))return b;if(this.eat(m.question)){var P=this.startNodeAt(c,f);return P.test=b,P.consequent=this.parseMaybeAssign(),this.expect(m.colon),P.alternate=this.parseMaybeAssign(i),this.finishNode(P,"ConditionalExpression")}return b},le.parseExprOps=function(i,a){var c=this.start,f=this.startLoc,b=this.parseMaybeUnary(a,!1,!1,i);return this.checkExpressionErrors(a)||b.start===c&&b.type==="ArrowFunctionExpression"?b:this.parseExprOp(b,c,f,-1,i)},le.parseExprOp=function(i,a,c,f,b){var P=this.type.binop;if(P!=null&&(!b||this.type!==m._in)&&P>f){var R=this.type===m.logicalOR||this.type===m.logicalAND,H=this.type===m.coalesce;H&&(P=m.logicalAND.binop);var K=this.value;this.next();var he=this.start,me=this.startLoc,we=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,b),he,me,P,b),Le=this.buildBinary(a,c,i,we,K,R||H);return(R&&this.type===m.coalesce||H&&(this.type===m.logicalOR||this.type===m.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(Le,a,c,f,b)}return i},le.buildBinary=function(i,a,c,f,b,P){f.type==="PrivateIdentifier"&&this.raise(f.start,"Private identifier can only be left side of binary expression");var R=this.startNodeAt(i,a);return R.left=c,R.operator=b,R.right=f,this.finishNode(R,P?"LogicalExpression":"BinaryExpression")},le.parseMaybeUnary=function(i,a,c,f){var b=this.start,P=this.startLoc,R;if(this.isContextual("await")&&this.canAwait)R=this.parseAwait(f),a=!0;else if(this.type.prefix){var H=this.startNode(),K=this.type===m.incDec;H.operator=this.value,H.prefix=!0,this.next(),H.argument=this.parseMaybeUnary(null,!0,K,f),this.checkExpressionErrors(i,!0),K?this.checkLValSimple(H.argument):this.strict&&H.operator==="delete"&&er(H.argument)?this.raiseRecoverable(H.start,"Deleting local variable in strict mode"):H.operator==="delete"&&is(H.argument)?this.raiseRecoverable(H.start,"Private fields can not be deleted"):a=!0,R=this.finishNode(H,K?"UpdateExpression":"UnaryExpression")}else if(!a&&this.type===m.privateId)(f||this.privateNameStack.length===0)&&this.options.checkPrivateFields&&this.unexpected(),R=this.parsePrivateIdent(),this.type!==m._in&&this.unexpected();else{if(R=this.parseExprSubscripts(i,f),this.checkExpressionErrors(i))return R;for(;this.type.postfix&&!this.canInsertSemicolon();){var he=this.startNodeAt(b,P);he.operator=this.value,he.prefix=!1,he.argument=R,this.checkLValSimple(R),this.next(),R=this.finishNode(he,"UpdateExpression")}}if(!c&&this.eat(m.starstar))if(a)this.unexpected(this.lastTokStart);else return this.buildBinary(b,P,R,this.parseMaybeUnary(null,!1,!1,f),"**",!1);else return R};function er(i){return i.type==="Identifier"||i.type==="ParenthesizedExpression"&&er(i.expression)}function is(i){return i.type==="MemberExpression"&&i.property.type==="PrivateIdentifier"||i.type==="ChainExpression"&&is(i.expression)||i.type==="ParenthesizedExpression"&&is(i.expression)}le.parseExprSubscripts=function(i,a){var c=this.start,f=this.startLoc,b=this.parseExprAtom(i,a);if(b.type==="ArrowFunctionExpression"&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==")")return b;var P=this.parseSubscripts(b,c,f,!1,a);return i&&P.type==="MemberExpression"&&(i.parenthesizedAssign>=P.start&&(i.parenthesizedAssign=-1),i.parenthesizedBind>=P.start&&(i.parenthesizedBind=-1),i.trailingComma>=P.start&&(i.trailingComma=-1)),P},le.parseSubscripts=function(i,a,c,f,b){for(var P=this.options.ecmaVersion>=8&&i.type==="Identifier"&&i.name==="async"&&this.lastTokEnd===i.end&&!this.canInsertSemicolon()&&i.end-i.start===5&&this.potentialArrowAt===i.start,R=!1;;){var H=this.parseSubscript(i,a,c,f,P,R,b);if(H.optional&&(R=!0),H===i||H.type==="ArrowFunctionExpression"){if(R){var K=this.startNodeAt(a,c);K.expression=H,H=this.finishNode(K,"ChainExpression")}return H}i=H}},le.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(m.arrow)},le.parseSubscriptAsyncArrow=function(i,a,c,f){return this.parseArrowExpression(this.startNodeAt(i,a),c,!0,f)},le.parseSubscript=function(i,a,c,f,b,P,R){var H=this.options.ecmaVersion>=11,K=H&&this.eat(m.questionDot);f&&K&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var he=this.eat(m.bracketL);if(he||K&&this.type!==m.parenL&&this.type!==m.backQuote||this.eat(m.dot)){var me=this.startNodeAt(a,c);me.object=i,he?(me.property=this.parseExpression(),this.expect(m.bracketR)):this.type===m.privateId&&i.type!=="Super"?me.property=this.parsePrivateIdent():me.property=this.parseIdent(this.options.allowReserved!=="never"),me.computed=!!he,H&&(me.optional=K),i=this.finishNode(me,"MemberExpression")}else if(!f&&this.eat(m.parenL)){var we=new di,Le=this.yieldPos,Jt=this.awaitPos,It=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var bi=this.parseExprList(m.parenR,this.options.ecmaVersion>=8,!1,we);if(b&&!K&&this.shouldParseAsyncArrow())return this.checkPatternErrors(we,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=Le,this.awaitPos=Jt,this.awaitIdentPos=It,this.parseSubscriptAsyncArrow(a,c,bi,R);this.checkExpressionErrors(we,!0),this.yieldPos=Le||this.yieldPos,this.awaitPos=Jt||this.awaitPos,this.awaitIdentPos=It||this.awaitIdentPos;var Nt=this.startNodeAt(a,c);Nt.callee=i,Nt.arguments=bi,H&&(Nt.optional=K),i=this.finishNode(Nt,"CallExpression")}else if(this.type===m.backQuote){(K||P)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var Lt=this.startNodeAt(a,c);Lt.tag=i,Lt.quasi=this.parseTemplate({isTagged:!0}),i=this.finishNode(Lt,"TaggedTemplateExpression")}return i},le.parseExprAtom=function(i,a,c){this.type===m.slash&&this.readRegexp();var f,b=this.potentialArrowAt===this.start;switch(this.type){case m._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),f=this.startNode(),this.next(),this.type===m.parenL&&!this.allowDirectSuper&&this.raise(f.start,"super() call outside constructor of a subclass"),this.type!==m.dot&&this.type!==m.bracketL&&this.type!==m.parenL&&this.unexpected(),this.finishNode(f,"Super");case m._this:return f=this.startNode(),this.next(),this.finishNode(f,"ThisExpression");case m.name:var P=this.start,R=this.startLoc,H=this.containsEsc,K=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!H&&K.name==="async"&&!this.canInsertSemicolon()&&this.eat(m._function))return this.overrideContext(Ce.f_expr),this.parseFunction(this.startNodeAt(P,R),0,!1,!0,a);if(b&&!this.canInsertSemicolon()){if(this.eat(m.arrow))return this.parseArrowExpression(this.startNodeAt(P,R),[K],!1,a);if(this.options.ecmaVersion>=8&&K.name==="async"&&this.type===m.name&&!H&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc))return K=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(m.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(P,R),[K],!0,a)}return K;case m.regexp:var he=this.value;return f=this.parseLiteral(he.value),f.regex={pattern:he.pattern,flags:he.flags},f;case m.num:case m.string:return this.parseLiteral(this.value);case m._null:case m._true:case m._false:return f=this.startNode(),f.value=this.type===m._null?null:this.type===m._true,f.raw=this.type.keyword,this.next(),this.finishNode(f,"Literal");case m.parenL:var me=this.start,we=this.parseParenAndDistinguishExpression(b,a);return i&&(i.parenthesizedAssign<0&&!this.isSimpleAssignTarget(we)&&(i.parenthesizedAssign=me),i.parenthesizedBind<0&&(i.parenthesizedBind=me)),we;case m.bracketL:return f=this.startNode(),this.next(),f.elements=this.parseExprList(m.bracketR,!0,!0,i),this.finishNode(f,"ArrayExpression");case m.braceL:return this.overrideContext(Ce.b_expr),this.parseObj(!1,i);case m._function:return f=this.startNode(),this.next(),this.parseFunction(f,0);case m._class:return this.parseClass(this.startNode(),!1);case m._new:return this.parseNew();case m.backQuote:return this.parseTemplate();case m._import:return this.options.ecmaVersion>=11?this.parseExprImport(c):this.unexpected();default:return this.parseExprAtomDefault()}},le.parseExprAtomDefault=function(){this.unexpected()},le.parseExprImport=function(i){var a=this.startNode();if(this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import"),this.next(),this.type===m.parenL&&!i)return this.parseDynamicImport(a);if(this.type===m.dot){var c=this.startNodeAt(a.start,a.loc&&a.loc.start);return c.name="import",a.meta=this.finishNode(c,"Identifier"),this.parseImportMeta(a)}else this.unexpected()},le.parseDynamicImport=function(i){if(this.next(),i.source=this.parseMaybeAssign(),this.options.ecmaVersion>=16)this.eat(m.parenR)?i.options=null:(this.expect(m.comma),this.afterTrailingComma(m.parenR)?i.options=null:(i.options=this.parseMaybeAssign(),this.eat(m.parenR)||(this.expect(m.comma),this.afterTrailingComma(m.parenR)||this.unexpected())));else if(!this.eat(m.parenR)){var a=this.start;this.eat(m.comma)&&this.eat(m.parenR)?this.raiseRecoverable(a,"Trailing comma is not allowed in import()"):this.unexpected(a)}return this.finishNode(i,"ImportExpression")},le.parseImportMeta=function(i){this.next();var a=this.containsEsc;return i.property=this.parseIdent(!0),i.property.name!=="meta"&&this.raiseRecoverable(i.property.start,"The only valid meta property for import is 'import.meta'"),a&&this.raiseRecoverable(i.start,"'import.meta' must not contain escaped characters"),this.options.sourceType!=="module"&&!this.options.allowImportExportEverywhere&&this.raiseRecoverable(i.start,"Cannot use 'import.meta' outside a module"),this.finishNode(i,"MetaProperty")},le.parseLiteral=function(i){var a=this.startNode();return a.value=i,a.raw=this.input.slice(this.start,this.end),a.raw.charCodeAt(a.raw.length-1)===110&&(a.bigint=a.value!=null?a.value.toString():a.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(a,"Literal")},le.parseParenExpression=function(){this.expect(m.parenL);var i=this.parseExpression();return this.expect(m.parenR),i},le.shouldParseArrow=function(i){return!this.canInsertSemicolon()},le.parseParenAndDistinguishExpression=function(i,a){var c=this.start,f=this.startLoc,b,P=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var R=this.start,H=this.startLoc,K=[],he=!0,me=!1,we=new di,Le=this.yieldPos,Jt=this.awaitPos,It;for(this.yieldPos=0,this.awaitPos=0;this.type!==m.parenR;)if(he?he=!1:this.expect(m.comma),P&&this.afterTrailingComma(m.parenR,!0)){me=!0;break}else if(this.type===m.ellipsis){It=this.start,K.push(this.parseParenItem(this.parseRestBinding())),this.type===m.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}else K.push(this.parseMaybeAssign(!1,we,this.parseParenItem));var bi=this.lastTokEnd,Nt=this.lastTokEndLoc;if(this.expect(m.parenR),i&&this.shouldParseArrow(K)&&this.eat(m.arrow))return this.checkPatternErrors(we,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=Le,this.awaitPos=Jt,this.parseParenArrowList(c,f,K,a);(!K.length||me)&&this.unexpected(this.lastTokStart),It&&this.unexpected(It),this.checkExpressionErrors(we,!0),this.yieldPos=Le||this.yieldPos,this.awaitPos=Jt||this.awaitPos,K.length>1?(b=this.startNodeAt(R,H),b.expressions=K,this.finishNodeAt(b,"SequenceExpression",bi,Nt)):b=K[0]}else b=this.parseParenExpression();if(this.options.preserveParens){var Lt=this.startNodeAt(c,f);return Lt.expression=b,this.finishNode(Lt,"ParenthesizedExpression")}else return b},le.parseParenItem=function(i){return i},le.parseParenArrowList=function(i,a,c,f){return this.parseArrowExpression(this.startNodeAt(i,a),c,!1,f)};var jo=[];le.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var i=this.startNode();if(this.next(),this.options.ecmaVersion>=6&&this.type===m.dot){var a=this.startNodeAt(i.start,i.loc&&i.loc.start);a.name="new",i.meta=this.finishNode(a,"Identifier"),this.next();var c=this.containsEsc;return i.property=this.parseIdent(!0),i.property.name!=="target"&&this.raiseRecoverable(i.property.start,"The only valid meta property for new is 'new.target'"),c&&this.raiseRecoverable(i.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(i.start,"'new.target' can only be used in functions and class static block"),this.finishNode(i,"MetaProperty")}var f=this.start,b=this.startLoc;return i.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),f,b,!0,!1),this.eat(m.parenL)?i.arguments=this.parseExprList(m.parenR,this.options.ecmaVersion>=8,!1):i.arguments=jo,this.finishNode(i,"NewExpression")},le.parseTemplateElement=function(i){var a=i.isTagged,c=this.startNode();return this.type===m.invalidTemplate?(a||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),c.value={raw:this.value.replace(/\r\n?/g,`
|
|
4
|
+
`),cooked:null}):c.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,`
|
|
5
|
+
`),cooked:this.value},this.next(),c.tail=this.type===m.backQuote,this.finishNode(c,"TemplateElement")},le.parseTemplate=function(i){i===void 0&&(i={});var a=i.isTagged;a===void 0&&(a=!1);var c=this.startNode();this.next(),c.expressions=[];var f=this.parseTemplateElement({isTagged:a});for(c.quasis=[f];!f.tail;)this.type===m.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(m.dollarBraceL),c.expressions.push(this.parseExpression()),this.expect(m.braceR),c.quasis.push(f=this.parseTemplateElement({isTagged:a}));return this.next(),this.finishNode(c,"TemplateLiteral")},le.isAsyncProp=function(i){return!i.computed&&i.key.type==="Identifier"&&i.key.name==="async"&&(this.type===m.name||this.type===m.num||this.type===m.string||this.type===m.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===m.star)&&!ne.test(this.input.slice(this.lastTokEnd,this.start))},le.parseObj=function(i,a){var c=this.startNode(),f=!0,b={};for(c.properties=[],this.next();!this.eat(m.braceR);){if(f)f=!1;else if(this.expect(m.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(m.braceR))break;var P=this.parseProperty(i,a);i||this.checkPropClash(P,b,a),c.properties.push(P)}return this.finishNode(c,i?"ObjectPattern":"ObjectExpression")},le.parseProperty=function(i,a){var c=this.startNode(),f,b,P,R;if(this.options.ecmaVersion>=9&&this.eat(m.ellipsis))return i?(c.argument=this.parseIdent(!1),this.type===m.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.finishNode(c,"RestElement")):(c.argument=this.parseMaybeAssign(!1,a),this.type===m.comma&&a&&a.trailingComma<0&&(a.trailingComma=this.start),this.finishNode(c,"SpreadElement"));this.options.ecmaVersion>=6&&(c.method=!1,c.shorthand=!1,(i||a)&&(P=this.start,R=this.startLoc),i||(f=this.eat(m.star)));var H=this.containsEsc;return this.parsePropertyName(c),!i&&!H&&this.options.ecmaVersion>=8&&!f&&this.isAsyncProp(c)?(b=!0,f=this.options.ecmaVersion>=9&&this.eat(m.star),this.parsePropertyName(c)):b=!1,this.parsePropertyValue(c,i,f,b,P,R,a,H),this.finishNode(c,"Property")},le.parseGetterSetter=function(i){var a=i.key.name;this.parsePropertyName(i),i.value=this.parseMethod(!1),i.kind=a;var c=i.kind==="get"?0:1;if(i.value.params.length!==c){var f=i.value.start;i.kind==="get"?this.raiseRecoverable(f,"getter should have no params"):this.raiseRecoverable(f,"setter should have exactly one param")}else i.kind==="set"&&i.value.params[0].type==="RestElement"&&this.raiseRecoverable(i.value.params[0].start,"Setter cannot use rest params")},le.parsePropertyValue=function(i,a,c,f,b,P,R,H){(c||f)&&this.type===m.colon&&this.unexpected(),this.eat(m.colon)?(i.value=a?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,R),i.kind="init"):this.options.ecmaVersion>=6&&this.type===m.parenL?(a&&this.unexpected(),i.method=!0,i.value=this.parseMethod(c,f),i.kind="init"):!a&&!H&&this.options.ecmaVersion>=5&&!i.computed&&i.key.type==="Identifier"&&(i.key.name==="get"||i.key.name==="set")&&this.type!==m.comma&&this.type!==m.braceR&&this.type!==m.eq?((c||f)&&this.unexpected(),this.parseGetterSetter(i)):this.options.ecmaVersion>=6&&!i.computed&&i.key.type==="Identifier"?((c||f)&&this.unexpected(),this.checkUnreserved(i.key),i.key.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=b),a?i.value=this.parseMaybeDefault(b,P,this.copyNode(i.key)):this.type===m.eq&&R?(R.shorthandAssign<0&&(R.shorthandAssign=this.start),i.value=this.parseMaybeDefault(b,P,this.copyNode(i.key))):i.value=this.copyNode(i.key),i.kind="init",i.shorthand=!0):this.unexpected()},le.parsePropertyName=function(i){if(this.options.ecmaVersion>=6){if(this.eat(m.bracketL))return i.computed=!0,i.key=this.parseMaybeAssign(),this.expect(m.bracketR),i.key;i.computed=!1}return i.key=this.type===m.num||this.type===m.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")},le.initFunction=function(i){i.id=null,this.options.ecmaVersion>=6&&(i.generator=i.expression=!1),this.options.ecmaVersion>=8&&(i.async=!1)},le.parseMethod=function(i,a,c){var f=this.startNode(),b=this.yieldPos,P=this.awaitPos,R=this.awaitIdentPos;return this.initFunction(f),this.options.ecmaVersion>=6&&(f.generator=i),this.options.ecmaVersion>=8&&(f.async=!!a),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(Tt(a,f.generator)|de|(c?ge:0)),this.expect(m.parenL),f.params=this.parseBindingList(m.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(f,!1,!0,!1),this.yieldPos=b,this.awaitPos=P,this.awaitIdentPos=R,this.finishNode(f,"FunctionExpression")},le.parseArrowExpression=function(i,a,c,f){var b=this.yieldPos,P=this.awaitPos,R=this.awaitIdentPos;return this.enterScope(Tt(c,!1)|Y),this.initFunction(i),this.options.ecmaVersion>=8&&(i.async=!!c),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,i.params=this.toAssignableList(a,!0),this.parseFunctionBody(i,!0,!1,f),this.yieldPos=b,this.awaitPos=P,this.awaitIdentPos=R,this.finishNode(i,"ArrowFunctionExpression")},le.parseFunctionBody=function(i,a,c,f){var b=a&&this.type!==m.braceL,P=this.strict,R=!1;if(b)i.body=this.parseMaybeAssign(f),i.expression=!0,this.checkParams(i,!1);else{var H=this.options.ecmaVersion>=7&&!this.isSimpleParamList(i.params);(!P||H)&&(R=this.strictDirective(this.end),R&&H&&this.raiseRecoverable(i.start,"Illegal 'use strict' directive in function with non-simple parameter list"));var K=this.labels;this.labels=[],R&&(this.strict=!0),this.checkParams(i,!P&&!R&&!a&&!c&&this.isSimpleParamList(i.params)),this.strict&&i.id&&this.checkLValSimple(i.id,Gt),i.body=this.parseBlock(!1,void 0,R&&!P),i.expression=!1,this.adaptDirectivePrologue(i.body.body),this.labels=K}this.exitScope()},le.isSimpleParamList=function(i){for(var a=0,c=i;a<c.length;a+=1){var f=c[a];if(f.type!=="Identifier")return!1}return!0},le.checkParams=function(i,a){for(var c=Object.create(null),f=0,b=i.params;f<b.length;f+=1){var P=b[f];this.checkLValInnerPattern(P,bt,a?null:c)}},le.parseExprList=function(i,a,c,f){for(var b=[],P=!0;!this.eat(i);){if(P)P=!1;else if(this.expect(m.comma),a&&this.afterTrailingComma(i))break;var R=void 0;c&&this.type===m.comma?R=null:this.type===m.ellipsis?(R=this.parseSpread(f),f&&this.type===m.comma&&f.trailingComma<0&&(f.trailingComma=this.start)):R=this.parseMaybeAssign(!1,f),b.push(R)}return b},le.checkUnreserved=function(i){var a=i.start,c=i.end,f=i.name;if(this.inGenerator&&f==="yield"&&this.raiseRecoverable(a,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&f==="await"&&this.raiseRecoverable(a,"Cannot use 'await' as identifier inside an async function"),!(this.currentThisScope().flags&je)&&f==="arguments"&&this.raiseRecoverable(a,"Cannot use 'arguments' in class field initializer"),this.inClassStaticBlock&&(f==="arguments"||f==="await")&&this.raise(a,"Cannot use "+f+" in class static initialization block"),this.keywords.test(f)&&this.raise(a,"Unexpected keyword '"+f+"'"),!(this.options.ecmaVersion<6&&this.input.slice(a,c).indexOf("\\")!==-1)){var b=this.strict?this.reservedWordsStrict:this.reservedWords;b.test(f)&&(!this.inAsync&&f==="await"&&this.raiseRecoverable(a,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(a,"The keyword '"+f+"' is reserved"))}},le.parseIdent=function(i){var a=this.parseIdentNode();return this.next(!!i),this.finishNode(a,"Identifier"),i||(this.checkUnreserved(a),a.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=a.start)),a},le.parseIdentNode=function(){var i=this.startNode();return this.type===m.name?i.name=this.value:this.type.keyword?(i.name=this.type.keyword,(i.name==="class"||i.name==="function")&&(this.lastTokEnd!==this.lastTokStart+1||this.input.charCodeAt(this.lastTokStart)!==46)&&this.context.pop(),this.type=m.name):this.unexpected(),i},le.parsePrivateIdent=function(){var i=this.startNode();return this.type===m.privateId?i.name=this.value:this.unexpected(),this.next(),this.finishNode(i,"PrivateIdentifier"),this.options.checkPrivateFields&&(this.privateNameStack.length===0?this.raise(i.start,"Private field '#"+i.name+"' must be declared in an enclosing class"):this.privateNameStack[this.privateNameStack.length-1].used.push(i)),i},le.parseYield=function(i){this.yieldPos||(this.yieldPos=this.start);var a=this.startNode();return this.next(),this.type===m.semi||this.canInsertSemicolon()||this.type!==m.star&&!this.type.startsExpr?(a.delegate=!1,a.argument=null):(a.delegate=this.eat(m.star),a.argument=this.parseMaybeAssign(i)),this.finishNode(a,"YieldExpression")},le.parseAwait=function(i){this.awaitPos||(this.awaitPos=this.start);var a=this.startNode();return this.next(),a.argument=this.parseMaybeUnary(null,!0,!1,i),this.finishNode(a,"AwaitExpression")};var xi=be.prototype;xi.raise=function(i,a){var c=A(this.input,i);a+=" ("+c.line+":"+c.column+")",this.sourceFile&&(a+=" in "+this.sourceFile);var f=new SyntaxError(a);throw f.pos=i,f.loc=c,f.raisedAt=this.pos,f},xi.raiseRecoverable=xi.raise,xi.curPosition=function(){if(this.options.locations)return new y(this.curLine,this.pos-this.lineStart)};var dt=be.prototype,Uo=function(a){this.flags=a,this.var=[],this.lexical=[],this.functions=[]};dt.enterScope=function(i){this.scopeStack.push(new Uo(i))},dt.exitScope=function(){this.scopeStack.pop()},dt.treatFunctionsAsVarInScope=function(i){return i.flags&B||!this.inModule&&i.flags&J},dt.declareName=function(i,a,c){var f=!1;if(a===qe){var b=this.currentScope();f=b.lexical.indexOf(i)>-1||b.functions.indexOf(i)>-1||b.var.indexOf(i)>-1,b.lexical.push(i),this.inModule&&b.flags&J&&delete this.undefinedExports[i]}else if(a===Wt){var P=this.currentScope();P.lexical.push(i)}else if(a===St){var R=this.currentScope();this.treatFunctionsAsVar?f=R.lexical.indexOf(i)>-1:f=R.lexical.indexOf(i)>-1||R.var.indexOf(i)>-1,R.functions.push(i)}else for(var H=this.scopeStack.length-1;H>=0;--H){var K=this.scopeStack[H];if(K.lexical.indexOf(i)>-1&&!(K.flags&oe&&K.lexical[0]===i)||!this.treatFunctionsAsVarInScope(K)&&K.functions.indexOf(i)>-1){f=!0;break}if(K.var.push(i),this.inModule&&K.flags&J&&delete this.undefinedExports[i],K.flags&je)break}f&&this.raiseRecoverable(c,"Identifier '"+i+"' has already been declared")},dt.checkLocalExport=function(i){this.scopeStack[0].lexical.indexOf(i.name)===-1&&this.scopeStack[0].var.indexOf(i.name)===-1&&(this.undefinedExports[i.name]=i)},dt.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},dt.currentVarScope=function(){for(var i=this.scopeStack.length-1;;i--){var a=this.scopeStack[i];if(a.flags&(je|Ie|ke))return a}},dt.currentThisScope=function(){for(var i=this.scopeStack.length-1;;i--){var a=this.scopeStack[i];if(a.flags&(je|Ie|ke)&&!(a.flags&Y))return a}};var zt=function(a,c,f){this.type="",this.start=c,this.end=0,a.options.locations&&(this.loc=new C(a,f)),a.options.directSourceFile&&(this.sourceFile=a.options.directSourceFile),a.options.ranges&&(this.range=[c,0])},Xt=be.prototype;Xt.startNode=function(){return new zt(this,this.start,this.startLoc)},Xt.startNodeAt=function(i,a){return new zt(this,i,a)};function tr(i,a,c,f){return i.type=a,i.end=c,this.options.locations&&(i.loc.end=f),this.options.ranges&&(i.range[1]=c),i}Xt.finishNode=function(i,a){return tr.call(this,i,a,this.lastTokEnd,this.lastTokEndLoc)},Xt.finishNodeAt=function(i,a,c,f){return tr.call(this,i,a,c,f)},Xt.copyNode=function(i){var a=new zt(this,i.start,this.startLoc);for(var c in i)a[c]=i[c];return a};var Ho="Berf Beria_Erfe Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sidetic Sidt Sunu Sunuwar Tai_Yo Tayo Todhri Todr Tolong_Siki Tols Tulu_Tigalari Tutg Unknown Zzzz",ir="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",sr=ir+" Extended_Pictographic",rr=sr,nr=rr+" EBase EComp EMod EPres ExtPict",ar=nr,qo=ar,Wo={9:ir,10:sr,11:rr,12:nr,13:ar,14:qo},Go="Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji",$o={9:"",10:"",11:"",12:"",13:"",14:Go},or="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",ur="Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",cr=ur+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",hr=cr+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",lr=hr+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",pr=lr+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",Ko=pr+" "+Ho,zo={9:ur,10:cr,11:hr,12:lr,13:pr,14:Ko},fr={};function Xo(i){var a=fr[i]={binary:n(Wo[i]+" "+or),binaryOfStrings:n($o[i]),nonBinary:{General_Category:n(or),Script:n(zo[i])}};a.nonBinary.Script_Extensions=a.nonBinary.Script,a.nonBinary.gc=a.nonBinary.General_Category,a.nonBinary.sc=a.nonBinary.Script,a.nonBinary.scx=a.nonBinary.Script_Extensions}for(var ss=0,dr=[9,10,11,12,13,14];ss<dr.length;ss+=1){var Jo=dr[ss];Xo(Jo)}var ee=be.prototype,yi=function(a,c){this.parent=a,this.base=c||this};yi.prototype.separatedFrom=function(a){for(var c=this;c;c=c.parent)for(var f=a;f;f=f.parent)if(c.base===f.base&&c!==f)return!0;return!1},yi.prototype.sibling=function(){return new yi(this.parent,this.base)};var tt=function(a){this.parser=a,this.validFlags="gim"+(a.options.ecmaVersion>=6?"uy":"")+(a.options.ecmaVersion>=9?"s":"")+(a.options.ecmaVersion>=13?"d":"")+(a.options.ecmaVersion>=15?"v":""),this.unicodeProperties=fr[a.options.ecmaVersion>=14?14:a.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchV=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=Object.create(null),this.backReferenceNames=[],this.branchID=null};tt.prototype.reset=function(a,c,f){var b=f.indexOf("v")!==-1,P=f.indexOf("u")!==-1;this.start=a|0,this.source=c+"",this.flags=f,b&&this.parser.options.ecmaVersion>=15?(this.switchU=!0,this.switchV=!0,this.switchN=!0):(this.switchU=P&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=P&&this.parser.options.ecmaVersion>=9)},tt.prototype.raise=function(a){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+a)},tt.prototype.at=function(a,c){c===void 0&&(c=!1);var f=this.source,b=f.length;if(a>=b)return-1;var P=f.charCodeAt(a);if(!(c||this.switchU)||P<=55295||P>=57344||a+1>=b)return P;var R=f.charCodeAt(a+1);return R>=56320&&R<=57343?(P<<10)+R-56613888:P},tt.prototype.nextIndex=function(a,c){c===void 0&&(c=!1);var f=this.source,b=f.length;if(a>=b)return b;var P=f.charCodeAt(a),R;return!(c||this.switchU)||P<=55295||P>=57344||a+1>=b||(R=f.charCodeAt(a+1))<56320||R>57343?a+1:a+2},tt.prototype.current=function(a){return a===void 0&&(a=!1),this.at(this.pos,a)},tt.prototype.lookahead=function(a){return a===void 0&&(a=!1),this.at(this.nextIndex(this.pos,a),a)},tt.prototype.advance=function(a){a===void 0&&(a=!1),this.pos=this.nextIndex(this.pos,a)},tt.prototype.eat=function(a,c){return c===void 0&&(c=!1),this.current(c)===a?(this.advance(c),!0):!1},tt.prototype.eatChars=function(a,c){c===void 0&&(c=!1);for(var f=this.pos,b=0,P=a;b<P.length;b+=1){var R=P[b],H=this.at(f,c);if(H===-1||H!==R)return!1;f=this.nextIndex(f,c)}return this.pos=f,!0},ee.validateRegExpFlags=function(i){for(var a=i.validFlags,c=i.flags,f=!1,b=!1,P=0;P<c.length;P++){var R=c.charAt(P);a.indexOf(R)===-1&&this.raise(i.start,"Invalid regular expression flag"),c.indexOf(R,P+1)>-1&&this.raise(i.start,"Duplicate regular expression flag"),R==="u"&&(f=!0),R==="v"&&(b=!0)}this.options.ecmaVersion>=15&&f&&b&&this.raise(i.start,"Invalid regular expression flag")};function Qo(i){for(var a in i)return!0;return!1}ee.validateRegExpPattern=function(i){this.regexp_pattern(i),!i.switchN&&this.options.ecmaVersion>=9&&Qo(i.groupNames)&&(i.switchN=!0,this.regexp_pattern(i))},ee.regexp_pattern=function(i){i.pos=0,i.lastIntValue=0,i.lastStringValue="",i.lastAssertionIsQuantifiable=!1,i.numCapturingParens=0,i.maxBackReference=0,i.groupNames=Object.create(null),i.backReferenceNames.length=0,i.branchID=null,this.regexp_disjunction(i),i.pos!==i.source.length&&(i.eat(41)&&i.raise("Unmatched ')'"),(i.eat(93)||i.eat(125))&&i.raise("Lone quantifier brackets")),i.maxBackReference>i.numCapturingParens&&i.raise("Invalid escape");for(var a=0,c=i.backReferenceNames;a<c.length;a+=1){var f=c[a];i.groupNames[f]||i.raise("Invalid named capture referenced")}},ee.regexp_disjunction=function(i){var a=this.options.ecmaVersion>=16;for(a&&(i.branchID=new yi(i.branchID,null)),this.regexp_alternative(i);i.eat(124);)a&&(i.branchID=i.branchID.sibling()),this.regexp_alternative(i);a&&(i.branchID=i.branchID.parent),this.regexp_eatQuantifier(i,!0)&&i.raise("Nothing to repeat"),i.eat(123)&&i.raise("Lone quantifier brackets")},ee.regexp_alternative=function(i){for(;i.pos<i.source.length&&this.regexp_eatTerm(i););},ee.regexp_eatTerm=function(i){return this.regexp_eatAssertion(i)?(i.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(i)&&i.switchU&&i.raise("Invalid quantifier"),!0):(i.switchU?this.regexp_eatAtom(i):this.regexp_eatExtendedAtom(i))?(this.regexp_eatQuantifier(i),!0):!1},ee.regexp_eatAssertion=function(i){var a=i.pos;if(i.lastAssertionIsQuantifiable=!1,i.eat(94)||i.eat(36))return!0;if(i.eat(92)){if(i.eat(66)||i.eat(98))return!0;i.pos=a}if(i.eat(40)&&i.eat(63)){var c=!1;if(this.options.ecmaVersion>=9&&(c=i.eat(60)),i.eat(61)||i.eat(33))return this.regexp_disjunction(i),i.eat(41)||i.raise("Unterminated group"),i.lastAssertionIsQuantifiable=!c,!0}return i.pos=a,!1},ee.regexp_eatQuantifier=function(i,a){return a===void 0&&(a=!1),this.regexp_eatQuantifierPrefix(i,a)?(i.eat(63),!0):!1},ee.regexp_eatQuantifierPrefix=function(i,a){return i.eat(42)||i.eat(43)||i.eat(63)||this.regexp_eatBracedQuantifier(i,a)},ee.regexp_eatBracedQuantifier=function(i,a){var c=i.pos;if(i.eat(123)){var f=0,b=-1;if(this.regexp_eatDecimalDigits(i)&&(f=i.lastIntValue,i.eat(44)&&this.regexp_eatDecimalDigits(i)&&(b=i.lastIntValue),i.eat(125)))return b!==-1&&b<f&&!a&&i.raise("numbers out of order in {} quantifier"),!0;i.switchU&&!a&&i.raise("Incomplete quantifier"),i.pos=c}return!1},ee.regexp_eatAtom=function(i){return this.regexp_eatPatternCharacters(i)||i.eat(46)||this.regexp_eatReverseSolidusAtomEscape(i)||this.regexp_eatCharacterClass(i)||this.regexp_eatUncapturingGroup(i)||this.regexp_eatCapturingGroup(i)},ee.regexp_eatReverseSolidusAtomEscape=function(i){var a=i.pos;if(i.eat(92)){if(this.regexp_eatAtomEscape(i))return!0;i.pos=a}return!1},ee.regexp_eatUncapturingGroup=function(i){var a=i.pos;if(i.eat(40)){if(i.eat(63)){if(this.options.ecmaVersion>=16){var c=this.regexp_eatModifiers(i),f=i.eat(45);if(c||f){for(var b=0;b<c.length;b++){var P=c.charAt(b);c.indexOf(P,b+1)>-1&&i.raise("Duplicate regular expression modifiers")}if(f){var R=this.regexp_eatModifiers(i);!c&&!R&&i.current()===58&&i.raise("Invalid regular expression modifiers");for(var H=0;H<R.length;H++){var K=R.charAt(H);(R.indexOf(K,H+1)>-1||c.indexOf(K)>-1)&&i.raise("Duplicate regular expression modifiers")}}}}if(i.eat(58)){if(this.regexp_disjunction(i),i.eat(41))return!0;i.raise("Unterminated group")}}i.pos=a}return!1},ee.regexp_eatCapturingGroup=function(i){if(i.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(i):i.current()===63&&i.raise("Invalid group"),this.regexp_disjunction(i),i.eat(41))return i.numCapturingParens+=1,!0;i.raise("Unterminated group")}return!1},ee.regexp_eatModifiers=function(i){for(var a="",c=0;(c=i.current())!==-1&&Yo(c);)a+=u(c),i.advance();return a};function Yo(i){return i===105||i===109||i===115}ee.regexp_eatExtendedAtom=function(i){return i.eat(46)||this.regexp_eatReverseSolidusAtomEscape(i)||this.regexp_eatCharacterClass(i)||this.regexp_eatUncapturingGroup(i)||this.regexp_eatCapturingGroup(i)||this.regexp_eatInvalidBracedQuantifier(i)||this.regexp_eatExtendedPatternCharacter(i)},ee.regexp_eatInvalidBracedQuantifier=function(i){return this.regexp_eatBracedQuantifier(i,!0)&&i.raise("Nothing to repeat"),!1},ee.regexp_eatSyntaxCharacter=function(i){var a=i.current();return mr(a)?(i.lastIntValue=a,i.advance(),!0):!1};function mr(i){return i===36||i>=40&&i<=43||i===46||i===63||i>=91&&i<=94||i>=123&&i<=125}ee.regexp_eatPatternCharacters=function(i){for(var a=i.pos,c=0;(c=i.current())!==-1&&!mr(c);)i.advance();return i.pos!==a},ee.regexp_eatExtendedPatternCharacter=function(i){var a=i.current();return a!==-1&&a!==36&&!(a>=40&&a<=43)&&a!==46&&a!==63&&a!==91&&a!==94&&a!==124?(i.advance(),!0):!1},ee.regexp_groupSpecifier=function(i){if(i.eat(63)){this.regexp_eatGroupName(i)||i.raise("Invalid group");var a=this.options.ecmaVersion>=16,c=i.groupNames[i.lastStringValue];if(c)if(a)for(var f=0,b=c;f<b.length;f+=1){var P=b[f];P.separatedFrom(i.branchID)||i.raise("Duplicate capture group name")}else i.raise("Duplicate capture group name");a?(c||(i.groupNames[i.lastStringValue]=[])).push(i.branchID):i.groupNames[i.lastStringValue]=!0}},ee.regexp_eatGroupName=function(i){if(i.lastStringValue="",i.eat(60)){if(this.regexp_eatRegExpIdentifierName(i)&&i.eat(62))return!0;i.raise("Invalid capture group name")}return!1},ee.regexp_eatRegExpIdentifierName=function(i){if(i.lastStringValue="",this.regexp_eatRegExpIdentifierStart(i)){for(i.lastStringValue+=u(i.lastIntValue);this.regexp_eatRegExpIdentifierPart(i);)i.lastStringValue+=u(i.lastIntValue);return!0}return!1},ee.regexp_eatRegExpIdentifierStart=function(i){var a=i.pos,c=this.options.ecmaVersion>=11,f=i.current(c);return i.advance(c),f===92&&this.regexp_eatRegExpUnicodeEscapeSequence(i,c)&&(f=i.lastIntValue),Zo(f)?(i.lastIntValue=f,!0):(i.pos=a,!1)};function Zo(i){return D(i,!0)||i===36||i===95}ee.regexp_eatRegExpIdentifierPart=function(i){var a=i.pos,c=this.options.ecmaVersion>=11,f=i.current(c);return i.advance(c),f===92&&this.regexp_eatRegExpUnicodeEscapeSequence(i,c)&&(f=i.lastIntValue),eu(f)?(i.lastIntValue=f,!0):(i.pos=a,!1)};function eu(i){return w(i,!0)||i===36||i===95||i===8204||i===8205}ee.regexp_eatAtomEscape=function(i){return this.regexp_eatBackReference(i)||this.regexp_eatCharacterClassEscape(i)||this.regexp_eatCharacterEscape(i)||i.switchN&&this.regexp_eatKGroupName(i)?!0:(i.switchU&&(i.current()===99&&i.raise("Invalid unicode escape"),i.raise("Invalid escape")),!1)},ee.regexp_eatBackReference=function(i){var a=i.pos;if(this.regexp_eatDecimalEscape(i)){var c=i.lastIntValue;if(i.switchU)return c>i.maxBackReference&&(i.maxBackReference=c),!0;if(c<=i.numCapturingParens)return!0;i.pos=a}return!1},ee.regexp_eatKGroupName=function(i){if(i.eat(107)){if(this.regexp_eatGroupName(i))return i.backReferenceNames.push(i.lastStringValue),!0;i.raise("Invalid named reference")}return!1},ee.regexp_eatCharacterEscape=function(i){return this.regexp_eatControlEscape(i)||this.regexp_eatCControlLetter(i)||this.regexp_eatZero(i)||this.regexp_eatHexEscapeSequence(i)||this.regexp_eatRegExpUnicodeEscapeSequence(i,!1)||!i.switchU&&this.regexp_eatLegacyOctalEscapeSequence(i)||this.regexp_eatIdentityEscape(i)},ee.regexp_eatCControlLetter=function(i){var a=i.pos;if(i.eat(99)){if(this.regexp_eatControlLetter(i))return!0;i.pos=a}return!1},ee.regexp_eatZero=function(i){return i.current()===48&&!gi(i.lookahead())?(i.lastIntValue=0,i.advance(),!0):!1},ee.regexp_eatControlEscape=function(i){var a=i.current();return a===116?(i.lastIntValue=9,i.advance(),!0):a===110?(i.lastIntValue=10,i.advance(),!0):a===118?(i.lastIntValue=11,i.advance(),!0):a===102?(i.lastIntValue=12,i.advance(),!0):a===114?(i.lastIntValue=13,i.advance(),!0):!1},ee.regexp_eatControlLetter=function(i){var a=i.current();return xr(a)?(i.lastIntValue=a%32,i.advance(),!0):!1};function xr(i){return i>=65&&i<=90||i>=97&&i<=122}ee.regexp_eatRegExpUnicodeEscapeSequence=function(i,a){a===void 0&&(a=!1);var c=i.pos,f=a||i.switchU;if(i.eat(117)){if(this.regexp_eatFixedHexDigits(i,4)){var b=i.lastIntValue;if(f&&b>=55296&&b<=56319){var P=i.pos;if(i.eat(92)&&i.eat(117)&&this.regexp_eatFixedHexDigits(i,4)){var R=i.lastIntValue;if(R>=56320&&R<=57343)return i.lastIntValue=(b-55296)*1024+(R-56320)+65536,!0}i.pos=P,i.lastIntValue=b}return!0}if(f&&i.eat(123)&&this.regexp_eatHexDigits(i)&&i.eat(125)&&tu(i.lastIntValue))return!0;f&&i.raise("Invalid unicode escape"),i.pos=c}return!1};function tu(i){return i>=0&&i<=1114111}ee.regexp_eatIdentityEscape=function(i){if(i.switchU)return this.regexp_eatSyntaxCharacter(i)?!0:i.eat(47)?(i.lastIntValue=47,!0):!1;var a=i.current();return a!==99&&(!i.switchN||a!==107)?(i.lastIntValue=a,i.advance(),!0):!1},ee.regexp_eatDecimalEscape=function(i){i.lastIntValue=0;var a=i.current();if(a>=49&&a<=57){do i.lastIntValue=10*i.lastIntValue+(a-48),i.advance();while((a=i.current())>=48&&a<=57);return!0}return!1};var yr=0,at=1,$e=2;ee.regexp_eatCharacterClassEscape=function(i){var a=i.current();if(iu(a))return i.lastIntValue=-1,i.advance(),at;var c=!1;if(i.switchU&&this.options.ecmaVersion>=9&&((c=a===80)||a===112)){i.lastIntValue=-1,i.advance();var f;if(i.eat(123)&&(f=this.regexp_eatUnicodePropertyValueExpression(i))&&i.eat(125))return c&&f===$e&&i.raise("Invalid property name"),f;i.raise("Invalid property name")}return yr};function iu(i){return i===100||i===68||i===115||i===83||i===119||i===87}ee.regexp_eatUnicodePropertyValueExpression=function(i){var a=i.pos;if(this.regexp_eatUnicodePropertyName(i)&&i.eat(61)){var c=i.lastStringValue;if(this.regexp_eatUnicodePropertyValue(i)){var f=i.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(i,c,f),at}}if(i.pos=a,this.regexp_eatLoneUnicodePropertyNameOrValue(i)){var b=i.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(i,b)}return yr},ee.regexp_validateUnicodePropertyNameAndValue=function(i,a,c){O(i.unicodeProperties.nonBinary,a)||i.raise("Invalid property name"),i.unicodeProperties.nonBinary[a].test(c)||i.raise("Invalid property value")},ee.regexp_validateUnicodePropertyNameOrValue=function(i,a){if(i.unicodeProperties.binary.test(a))return at;if(i.switchV&&i.unicodeProperties.binaryOfStrings.test(a))return $e;i.raise("Invalid property name")},ee.regexp_eatUnicodePropertyName=function(i){var a=0;for(i.lastStringValue="";gr(a=i.current());)i.lastStringValue+=u(a),i.advance();return i.lastStringValue!==""};function gr(i){return xr(i)||i===95}ee.regexp_eatUnicodePropertyValue=function(i){var a=0;for(i.lastStringValue="";su(a=i.current());)i.lastStringValue+=u(a),i.advance();return i.lastStringValue!==""};function su(i){return gr(i)||gi(i)}ee.regexp_eatLoneUnicodePropertyNameOrValue=function(i){return this.regexp_eatUnicodePropertyValue(i)},ee.regexp_eatCharacterClass=function(i){if(i.eat(91)){var a=i.eat(94),c=this.regexp_classContents(i);return i.eat(93)||i.raise("Unterminated character class"),a&&c===$e&&i.raise("Negated character class may contain strings"),!0}return!1},ee.regexp_classContents=function(i){return i.current()===93?at:i.switchV?this.regexp_classSetExpression(i):(this.regexp_nonEmptyClassRanges(i),at)},ee.regexp_nonEmptyClassRanges=function(i){for(;this.regexp_eatClassAtom(i);){var a=i.lastIntValue;if(i.eat(45)&&this.regexp_eatClassAtom(i)){var c=i.lastIntValue;i.switchU&&(a===-1||c===-1)&&i.raise("Invalid character class"),a!==-1&&c!==-1&&a>c&&i.raise("Range out of order in character class")}}},ee.regexp_eatClassAtom=function(i){var a=i.pos;if(i.eat(92)){if(this.regexp_eatClassEscape(i))return!0;if(i.switchU){var c=i.current();(c===99||Sr(c))&&i.raise("Invalid class escape"),i.raise("Invalid escape")}i.pos=a}var f=i.current();return f!==93?(i.lastIntValue=f,i.advance(),!0):!1},ee.regexp_eatClassEscape=function(i){var a=i.pos;if(i.eat(98))return i.lastIntValue=8,!0;if(i.switchU&&i.eat(45))return i.lastIntValue=45,!0;if(!i.switchU&&i.eat(99)){if(this.regexp_eatClassControlLetter(i))return!0;i.pos=a}return this.regexp_eatCharacterClassEscape(i)||this.regexp_eatCharacterEscape(i)},ee.regexp_classSetExpression=function(i){var a=at,c;if(!this.regexp_eatClassSetRange(i))if(c=this.regexp_eatClassSetOperand(i)){c===$e&&(a=$e);for(var f=i.pos;i.eatChars([38,38]);){if(i.current()!==38&&(c=this.regexp_eatClassSetOperand(i))){c!==$e&&(a=at);continue}i.raise("Invalid character in character class")}if(f!==i.pos)return a;for(;i.eatChars([45,45]);)this.regexp_eatClassSetOperand(i)||i.raise("Invalid character in character class");if(f!==i.pos)return a}else i.raise("Invalid character in character class");for(;;)if(!this.regexp_eatClassSetRange(i)){if(c=this.regexp_eatClassSetOperand(i),!c)return a;c===$e&&(a=$e)}},ee.regexp_eatClassSetRange=function(i){var a=i.pos;if(this.regexp_eatClassSetCharacter(i)){var c=i.lastIntValue;if(i.eat(45)&&this.regexp_eatClassSetCharacter(i)){var f=i.lastIntValue;return c!==-1&&f!==-1&&c>f&&i.raise("Range out of order in character class"),!0}i.pos=a}return!1},ee.regexp_eatClassSetOperand=function(i){return this.regexp_eatClassSetCharacter(i)?at:this.regexp_eatClassStringDisjunction(i)||this.regexp_eatNestedClass(i)},ee.regexp_eatNestedClass=function(i){var a=i.pos;if(i.eat(91)){var c=i.eat(94),f=this.regexp_classContents(i);if(i.eat(93))return c&&f===$e&&i.raise("Negated character class may contain strings"),f;i.pos=a}if(i.eat(92)){var b=this.regexp_eatCharacterClassEscape(i);if(b)return b;i.pos=a}return null},ee.regexp_eatClassStringDisjunction=function(i){var a=i.pos;if(i.eatChars([92,113])){if(i.eat(123)){var c=this.regexp_classStringDisjunctionContents(i);if(i.eat(125))return c}else i.raise("Invalid escape");i.pos=a}return null},ee.regexp_classStringDisjunctionContents=function(i){for(var a=this.regexp_classString(i);i.eat(124);)this.regexp_classString(i)===$e&&(a=$e);return a},ee.regexp_classString=function(i){for(var a=0;this.regexp_eatClassSetCharacter(i);)a++;return a===1?at:$e},ee.regexp_eatClassSetCharacter=function(i){var a=i.pos;if(i.eat(92))return this.regexp_eatCharacterEscape(i)||this.regexp_eatClassSetReservedPunctuator(i)?!0:i.eat(98)?(i.lastIntValue=8,!0):(i.pos=a,!1);var c=i.current();return c<0||c===i.lookahead()&&ru(c)||nu(c)?!1:(i.advance(),i.lastIntValue=c,!0)};function ru(i){return i===33||i>=35&&i<=38||i>=42&&i<=44||i===46||i>=58&&i<=64||i===94||i===96||i===126}function nu(i){return i===40||i===41||i===45||i===47||i>=91&&i<=93||i>=123&&i<=125}ee.regexp_eatClassSetReservedPunctuator=function(i){var a=i.current();return au(a)?(i.lastIntValue=a,i.advance(),!0):!1};function au(i){return i===33||i===35||i===37||i===38||i===44||i===45||i>=58&&i<=62||i===64||i===96||i===126}ee.regexp_eatClassControlLetter=function(i){var a=i.current();return gi(a)||a===95?(i.lastIntValue=a%32,i.advance(),!0):!1},ee.regexp_eatHexEscapeSequence=function(i){var a=i.pos;if(i.eat(120)){if(this.regexp_eatFixedHexDigits(i,2))return!0;i.switchU&&i.raise("Invalid escape"),i.pos=a}return!1},ee.regexp_eatDecimalDigits=function(i){var a=i.pos,c=0;for(i.lastIntValue=0;gi(c=i.current());)i.lastIntValue=10*i.lastIntValue+(c-48),i.advance();return i.pos!==a};function gi(i){return i>=48&&i<=57}ee.regexp_eatHexDigits=function(i){var a=i.pos,c=0;for(i.lastIntValue=0;vr(c=i.current());)i.lastIntValue=16*i.lastIntValue+br(c),i.advance();return i.pos!==a};function vr(i){return i>=48&&i<=57||i>=65&&i<=70||i>=97&&i<=102}function br(i){return i>=65&&i<=70?10+(i-65):i>=97&&i<=102?10+(i-97):i-48}ee.regexp_eatLegacyOctalEscapeSequence=function(i){if(this.regexp_eatOctalDigit(i)){var a=i.lastIntValue;if(this.regexp_eatOctalDigit(i)){var c=i.lastIntValue;a<=3&&this.regexp_eatOctalDigit(i)?i.lastIntValue=a*64+c*8+i.lastIntValue:i.lastIntValue=a*8+c}else i.lastIntValue=a;return!0}return!1},ee.regexp_eatOctalDigit=function(i){var a=i.current();return Sr(a)?(i.lastIntValue=a-48,i.advance(),!0):(i.lastIntValue=0,!1)};function Sr(i){return i>=48&&i<=55}ee.regexp_eatFixedHexDigits=function(i,a){var c=i.pos;i.lastIntValue=0;for(var f=0;f<a;++f){var b=i.current();if(!vr(b))return i.pos=c,!1;i.lastIntValue=16*i.lastIntValue+br(b),i.advance()}return!0};var vi=function(a){this.type=a.type,this.value=a.value,this.start=a.start,this.end=a.end,a.options.locations&&(this.loc=new C(a,a.startLoc,a.endLoc)),a.options.ranges&&(this.range=[a.start,a.end])},xe=be.prototype;xe.next=function(i){!i&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword),this.options.onToken&&this.options.onToken(new vi(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},xe.getToken=function(){return this.next(),new vi(this)},typeof Symbol<"u"&&(xe[Symbol.iterator]=function(){var i=this;return{next:function(){var a=i.getToken();return{done:a.type===m.eof,value:a}}}}),xe.nextToken=function(){var i=this.curContext();if((!i||!i.preserveSpace)&&this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length)return this.finishToken(m.eof);if(i.override)return i.override(this);this.readToken(this.fullCharCodeAtPos())},xe.readToken=function(i){return D(i,this.options.ecmaVersion>=6)||i===92?this.readWord():this.getTokenFromCode(i)},xe.fullCharCodeAt=function(i){var a=this.input.charCodeAt(i);if(a<=55295||a>=56320)return a;var c=this.input.charCodeAt(i+1);return c<=56319||c>=57344?a:(a<<10)+c-56613888},xe.fullCharCodeAtPos=function(){return this.fullCharCodeAt(this.pos)},xe.skipBlockComment=function(){var i=this.options.onComment&&this.curPosition(),a=this.pos,c=this.input.indexOf("*/",this.pos+=2);if(c===-1&&this.raise(this.pos-2,"Unterminated comment"),this.pos=c+2,this.options.locations)for(var f=void 0,b=a;(f=X(this.input,b,this.pos))>-1;)++this.curLine,b=this.lineStart=f;this.options.onComment&&this.options.onComment(!0,this.input.slice(a+2,c),a,this.pos,i,this.curPosition())},xe.skipLineComment=function(i){for(var a=this.pos,c=this.options.onComment&&this.curPosition(),f=this.input.charCodeAt(this.pos+=i);this.pos<this.input.length&&!ae(f);)f=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(a+i,this.pos),a,this.pos,c,this.curPosition())},xe.skipSpace=function(){e:for(;this.pos<this.input.length;){var i=this.input.charCodeAt(this.pos);switch(i){case 32:case 160:++this.pos;break;case 13:this.input.charCodeAt(this.pos+1)===10&&++this.pos;case 10:case 8232:case 8233:++this.pos,this.options.locations&&(++this.curLine,this.lineStart=this.pos);break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break e}break;default:if(i>8&&i<14||i>=5760&&Z.test(String.fromCharCode(i)))++this.pos;else break e}}},xe.finishToken=function(i,a){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var c=this.type;this.type=i,this.value=a,this.updateContext(c)},xe.readToken_dot=function(){var i=this.input.charCodeAt(this.pos+1);if(i>=48&&i<=57)return this.readNumber(!0);var a=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&i===46&&a===46?(this.pos+=3,this.finishToken(m.ellipsis)):(++this.pos,this.finishToken(m.dot))},xe.readToken_slash=function(){var i=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):i===61?this.finishOp(m.assign,2):this.finishOp(m.slash,1)},xe.readToken_mult_modulo_exp=function(i){var a=this.input.charCodeAt(this.pos+1),c=1,f=i===42?m.star:m.modulo;return this.options.ecmaVersion>=7&&i===42&&a===42&&(++c,f=m.starstar,a=this.input.charCodeAt(this.pos+2)),a===61?this.finishOp(m.assign,c+1):this.finishOp(f,c)},xe.readToken_pipe_amp=function(i){var a=this.input.charCodeAt(this.pos+1);if(a===i){if(this.options.ecmaVersion>=12){var c=this.input.charCodeAt(this.pos+2);if(c===61)return this.finishOp(m.assign,3)}return this.finishOp(i===124?m.logicalOR:m.logicalAND,2)}return a===61?this.finishOp(m.assign,2):this.finishOp(i===124?m.bitwiseOR:m.bitwiseAND,1)},xe.readToken_caret=function(){var i=this.input.charCodeAt(this.pos+1);return i===61?this.finishOp(m.assign,2):this.finishOp(m.bitwiseXOR,1)},xe.readToken_plus_min=function(i){var a=this.input.charCodeAt(this.pos+1);return a===i?a===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||ne.test(this.input.slice(this.lastTokEnd,this.pos)))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(m.incDec,2):a===61?this.finishOp(m.assign,2):this.finishOp(m.plusMin,1)},xe.readToken_lt_gt=function(i){var a=this.input.charCodeAt(this.pos+1),c=1;return a===i?(c=i===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+c)===61?this.finishOp(m.assign,c+1):this.finishOp(m.bitShift,c)):a===33&&i===60&&!this.inModule&&this.input.charCodeAt(this.pos+2)===45&&this.input.charCodeAt(this.pos+3)===45?(this.skipLineComment(4),this.skipSpace(),this.nextToken()):(a===61&&(c=2),this.finishOp(m.relational,c))},xe.readToken_eq_excl=function(i){var a=this.input.charCodeAt(this.pos+1);return a===61?this.finishOp(m.equality,this.input.charCodeAt(this.pos+2)===61?3:2):i===61&&a===62&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(m.arrow)):this.finishOp(i===61?m.eq:m.prefix,1)},xe.readToken_question=function(){var i=this.options.ecmaVersion;if(i>=11){var a=this.input.charCodeAt(this.pos+1);if(a===46){var c=this.input.charCodeAt(this.pos+2);if(c<48||c>57)return this.finishOp(m.questionDot,2)}if(a===63){if(i>=12){var f=this.input.charCodeAt(this.pos+2);if(f===61)return this.finishOp(m.assign,3)}return this.finishOp(m.coalesce,2)}}return this.finishOp(m.question,1)},xe.readToken_numberSign=function(){var i=this.options.ecmaVersion,a=35;if(i>=13&&(++this.pos,a=this.fullCharCodeAtPos(),D(a,!0)||a===92))return this.finishToken(m.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+u(a)+"'")},xe.getTokenFromCode=function(i){switch(i){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(m.parenL);case 41:return++this.pos,this.finishToken(m.parenR);case 59:return++this.pos,this.finishToken(m.semi);case 44:return++this.pos,this.finishToken(m.comma);case 91:return++this.pos,this.finishToken(m.bracketL);case 93:return++this.pos,this.finishToken(m.bracketR);case 123:return++this.pos,this.finishToken(m.braceL);case 125:return++this.pos,this.finishToken(m.braceR);case 58:return++this.pos,this.finishToken(m.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(m.backQuote);case 48:var a=this.input.charCodeAt(this.pos+1);if(a===120||a===88)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(a===111||a===79)return this.readRadixNumber(8);if(a===98||a===66)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(i);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(i);case 124:case 38:return this.readToken_pipe_amp(i);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(i);case 60:case 62:return this.readToken_lt_gt(i);case 61:case 33:return this.readToken_eq_excl(i);case 63:return this.readToken_question();case 126:return this.finishOp(m.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+u(i)+"'")},xe.finishOp=function(i,a){var c=this.input.slice(this.pos,this.pos+a);return this.pos+=a,this.finishToken(i,c)},xe.readRegexp=function(){for(var i,a,c=this.pos;;){this.pos>=this.input.length&&this.raise(c,"Unterminated regular expression");var f=this.input.charAt(this.pos);if(ne.test(f)&&this.raise(c,"Unterminated regular expression"),i)i=!1;else{if(f==="[")a=!0;else if(f==="]"&&a)a=!1;else if(f==="/"&&!a)break;i=f==="\\"}++this.pos}var b=this.input.slice(c,this.pos);++this.pos;var P=this.pos,R=this.readWord1();this.containsEsc&&this.unexpected(P);var H=this.regexpState||(this.regexpState=new tt(this));H.reset(c,b,R),this.validateRegExpFlags(H),this.validateRegExpPattern(H);var K=null;try{K=new RegExp(b,R)}catch{}return this.finishToken(m.regexp,{pattern:b,flags:R,value:K})},xe.readInt=function(i,a,c){for(var f=this.options.ecmaVersion>=12&&a===void 0,b=c&&this.input.charCodeAt(this.pos)===48,P=this.pos,R=0,H=0,K=0,he=a??1/0;K<he;++K,++this.pos){var me=this.input.charCodeAt(this.pos),we=void 0;if(f&&me===95){b&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),H===95&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),K===0&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),H=me;continue}if(me>=97?we=me-97+10:me>=65?we=me-65+10:me>=48&&me<=57?we=me-48:we=1/0,we>=i)break;H=me,R=R*i+we}return f&&H===95&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===P||a!=null&&this.pos-P!==a?null:R};function ou(i,a){return a?parseInt(i,8):parseFloat(i.replace(/_/g,""))}function Cr(i){return typeof BigInt!="function"?null:BigInt(i.replace(/_/g,""))}xe.readRadixNumber=function(i){var a=this.pos;this.pos+=2;var c=this.readInt(i);return c==null&&this.raise(this.start+2,"Expected number in radix "+i),this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110?(c=Cr(this.input.slice(a,this.pos)),++this.pos):D(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(m.num,c)},xe.readNumber=function(i){var a=this.pos;!i&&this.readInt(10,void 0,!0)===null&&this.raise(a,"Invalid number");var c=this.pos-a>=2&&this.input.charCodeAt(a)===48;c&&this.strict&&this.raise(a,"Invalid number");var f=this.input.charCodeAt(this.pos);if(!c&&!i&&this.options.ecmaVersion>=11&&f===110){var b=Cr(this.input.slice(a,this.pos));return++this.pos,D(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(m.num,b)}c&&/[89]/.test(this.input.slice(a,this.pos))&&(c=!1),f===46&&!c&&(++this.pos,this.readInt(10),f=this.input.charCodeAt(this.pos)),(f===69||f===101)&&!c&&(f=this.input.charCodeAt(++this.pos),(f===43||f===45)&&++this.pos,this.readInt(10)===null&&this.raise(a,"Invalid number")),D(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var P=ou(this.input.slice(a,this.pos),c);return this.finishToken(m.num,P)},xe.readCodePoint=function(){var i=this.input.charCodeAt(this.pos),a;if(i===123){this.options.ecmaVersion<6&&this.unexpected();var c=++this.pos;a=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,a>1114111&&this.invalidStringToken(c,"Code point out of bounds")}else a=this.readHexChar(4);return a},xe.readString=function(i){for(var a="",c=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var f=this.input.charCodeAt(this.pos);if(f===i)break;f===92?(a+=this.input.slice(c,this.pos),a+=this.readEscapedChar(!1),c=this.pos):f===8232||f===8233?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(ae(f)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return a+=this.input.slice(c,this.pos++),this.finishToken(m.string,a)};var wr={};xe.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(i){if(i===wr)this.readInvalidTemplateToken();else throw i}this.inTemplateElement=!1},xe.invalidStringToken=function(i,a){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw wr;this.raise(i,a)},xe.readTmplToken=function(){for(var i="",a=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var c=this.input.charCodeAt(this.pos);if(c===96||c===36&&this.input.charCodeAt(this.pos+1)===123)return this.pos===this.start&&(this.type===m.template||this.type===m.invalidTemplate)?c===36?(this.pos+=2,this.finishToken(m.dollarBraceL)):(++this.pos,this.finishToken(m.backQuote)):(i+=this.input.slice(a,this.pos),this.finishToken(m.template,i));if(c===92)i+=this.input.slice(a,this.pos),i+=this.readEscapedChar(!0),a=this.pos;else if(ae(c)){switch(i+=this.input.slice(a,this.pos),++this.pos,c){case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:i+=`
|
|
6
|
+
`;break;default:i+=String.fromCharCode(c);break}this.options.locations&&(++this.curLine,this.lineStart=this.pos),a=this.pos}else++this.pos}},xe.readInvalidTemplateToken=function(){for(;this.pos<this.input.length;this.pos++)switch(this.input[this.pos]){case"\\":++this.pos;break;case"$":if(this.input[this.pos+1]!=="{")break;case"`":return this.finishToken(m.invalidTemplate,this.input.slice(this.start,this.pos));case"\r":this.input[this.pos+1]===`
|
|
7
7
|
`&&++this.pos;case`
|
|
8
|
-
`:case"\u2028":case"\u2029":++this.curLine,this.lineStart=this.pos+1;break}this.raise(this.start,"Unterminated template")},
|
|
9
|
-
`;case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return
|
|
8
|
+
`:case"\u2028":case"\u2029":++this.curLine,this.lineStart=this.pos+1;break}this.raise(this.start,"Unterminated template")},xe.readEscapedChar=function(i){var a=this.input.charCodeAt(++this.pos);switch(++this.pos,a){case 110:return`
|
|
9
|
+
`;case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return u(this.readCodePoint());case 116:return" ";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";case 56:case 57:if(this.strict&&this.invalidStringToken(this.pos-1,"Invalid escape sequence"),i){var c=this.pos-1;this.invalidStringToken(c,"Invalid escape sequence in template string")}default:if(a>=48&&a<=55){var f=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],b=parseInt(f,8);return b>255&&(f=f.slice(0,-1),b=parseInt(f,8)),this.pos+=f.length-1,a=this.input.charCodeAt(this.pos),(f!=="0"||a===56||a===57)&&(this.strict||i)&&this.invalidStringToken(this.pos-1-f.length,i?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(b)}return ae(a)?(this.options.locations&&(this.lineStart=this.pos,++this.curLine),""):String.fromCharCode(a)}},xe.readHexChar=function(i){var a=this.pos,c=this.readInt(16,i);return c===null&&this.invalidStringToken(a,"Bad character escape sequence"),c},xe.readWord1=function(){this.containsEsc=!1;for(var i="",a=!0,c=this.pos,f=this.options.ecmaVersion>=6;this.pos<this.input.length;){var b=this.fullCharCodeAtPos();if(w(b,f))this.pos+=b<=65535?1:2;else if(b===92){this.containsEsc=!0,i+=this.input.slice(c,this.pos);var P=this.pos;this.input.charCodeAt(++this.pos)!==117&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var R=this.readCodePoint();(a?D:w)(R,f)||this.invalidStringToken(P,"Invalid Unicode escape"),i+=u(R),c=this.pos}else break;a=!1}return i+this.input.slice(c,this.pos)},xe.readWord=function(){var i=this.readWord1(),a=m.name;return this.keywords.test(i)&&(a=Q[i]),this.finishToken(a,i)};var _r="8.16.0";be.acorn={Parser:be,version:_r,defaultOptions:k,Position:y,SourceLocation:C,getLineInfo:A,Node:zt,TokenType:E,tokTypes:m,keywordTypes:Q,TokContext:Ge,tokContexts:Ce,isIdentifierChar:w,isIdentifierStart:D,Token:vi,isNewLine:ae,lineBreak:ne,lineBreakG:z,nonASCIIwhitespace:Z};function uu(i,a){return be.parse(i,a)}function cu(i,a,c){return be.parseExpressionAt(i,a,c)}function hu(i,a){return be.tokenizer(i,a)}e.Node=zt,e.Parser=be,e.Position=y,e.SourceLocation=C,e.TokContext=Ge,e.Token=vi,e.TokenType=E,e.defaultOptions=k,e.getLineInfo=A,e.isIdentifierChar=w,e.isIdentifierStart=D,e.isNewLine=ae,e.keywordTypes=Q,e.lineBreak=ne,e.lineBreakG=z,e.nonASCIIwhitespace=Z,e.parse=uu,e.parseExpressionAt=cu,e.tokContexts=Ce,e.tokTypes=m,e.tokenizer=hu,e.version=_r}))});var ro=ot((Yp,qs)=>{"use strict";var kl=eo(),Tl=/^[\da-fA-F]+$/,Pl=/^\d+$/,io=new WeakMap;function so(e){e=e.Parser.acorn||e;let t=io.get(e);if(!t){let s=e.tokTypes,r=e.TokContext,o=e.TokenType,h=new r("<tag",!1),p=new r("</tag",!1),g=new r("<tag>...</tag>",!0,!0),v={tc_oTag:h,tc_cTag:p,tc_expr:g},l={jsxName:new o("jsxName"),jsxText:new o("jsxText",{beforeExpr:!0}),jsxTagStart:new o("jsxTagStart",{startsExpr:!0}),jsxTagEnd:new o("jsxTagEnd")};l.jsxTagStart.updateContext=function(){this.context.push(g),this.context.push(h),this.exprAllowed=!1},l.jsxTagEnd.updateContext=function(T){let _=this.context.pop();_===h&&T===s.slash||_===p?(this.context.pop(),this.exprAllowed=this.curContext()===g):this.exprAllowed=!0},t={tokContexts:v,tokTypes:l},io.set(e,t)}return t}function ci(e){if(!e)return e;if(e.type==="JSXIdentifier")return e.name;if(e.type==="JSXNamespacedName")return e.namespace.name+":"+e.name.name;if(e.type==="JSXMemberExpression")return ci(e.object)+"."+ci(e.property)}qs.exports=function(e){return e=e||{},function(t){return Il({allowNamespaces:e.allowNamespaces!==!1,allowNamespacedObjects:!!e.allowNamespacedObjects},t)}};Object.defineProperty(qs.exports,"tokTypes",{get:function(){return so(Hs()).tokTypes},configurable:!0,enumerable:!0});function Il(e,t){let s=t.acorn||Hs(),r=so(s),o=s.tokTypes,h=r.tokTypes,p=s.tokContexts,g=r.tokContexts.tc_oTag,v=r.tokContexts.tc_cTag,l=r.tokContexts.tc_expr,T=s.isNewLine,_=s.isIdentifierStart,D=s.isIdentifierChar;return class extends t{static get acornJsx(){return r}jsx_readToken(){let w="",E=this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated JSX contents");let F=this.input.charCodeAt(this.pos);switch(F){case 60:case 123:return this.pos===this.start?F===60&&this.exprAllowed?(++this.pos,this.finishToken(h.jsxTagStart)):this.getTokenFromCode(F):(w+=this.input.slice(E,this.pos),this.finishToken(h.jsxText,w));case 38:w+=this.input.slice(E,this.pos),w+=this.jsx_readEntity(),E=this.pos;break;case 62:case 125:this.raise(this.pos,"Unexpected token `"+this.input[this.pos]+"`. Did you mean `"+(F===62?">":"}")+'` or `{"'+this.input[this.pos]+'"}`?');default:T(F)?(w+=this.input.slice(E,this.pos),w+=this.jsx_readNewLine(!0),E=this.pos):++this.pos}}}jsx_readNewLine(w){let E=this.input.charCodeAt(this.pos),F;return++this.pos,E===13&&this.input.charCodeAt(this.pos)===10?(++this.pos,F=w?`
|
|
10
10
|
`:`\r
|
|
11
|
-
`):F=String.fromCharCode(I),this.options.locations&&(++this.curLine,this.lineStart=this.pos),F}jsx_readString(T){let I="",F=++this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");let L=this.input.charCodeAt(this.pos);if(L===T)break;L===38?(I+=this.input.slice(F,this.pos),I+=this.jsx_readEntity(),F=this.pos):M(L)?(I+=this.input.slice(F,this.pos),I+=this.jsx_readNewLine(!1),F=this.pos):++this.pos}return I+=this.input.slice(F,this.pos++),this.finishToken(h.string,I)}jsx_readEntity(){let T="",I=0,F,L=this.input[this.pos];L!=="&"&&this.raise(this.pos,"Entity must start with an ampersand");let ee=++this.pos;for(;this.pos<this.input.length&&I++<10;){if(L=this.input[this.pos++],L===";"){T[0]==="#"?T[1]==="x"?(T=T.substr(2),Rn.test(T)&&(F=String.fromCharCode(parseInt(T,16)))):(T=T.substr(1),On.test(T)&&(F=String.fromCharCode(parseInt(T,10)))):F=Ln[T];break}T+=L}return F||(this.pos=ee,"&")}jsx_readWord(){let T,I=this.pos;do T=this.input.charCodeAt(++this.pos);while(K(T)||T===45);return this.finishToken(x.jsxName,this.input.slice(I,this.pos))}jsx_parseIdentifier(){let T=this.startNode();return this.type===x.jsxName?T.name=this.value:this.type.keyword?T.name=this.type.keyword:this.unexpected(),this.next(),this.finishNode(T,"JSXIdentifier")}jsx_parseNamespacedName(){let T=this.start,I=this.startLoc,F=this.jsx_parseIdentifier();if(!e.allowNamespaces||!this.eat(h.colon))return F;var L=this.startNodeAt(T,I);return L.namespace=F,L.name=this.jsx_parseIdentifier(),this.finishNode(L,"JSXNamespacedName")}jsx_parseElementName(){if(this.type===x.jsxTagEnd)return"";let T=this.start,I=this.startLoc,F=this.jsx_parseNamespacedName();for(this.type===h.dot&&F.type==="JSXNamespacedName"&&!e.allowNamespacedObjects&&this.unexpected();this.eat(h.dot);){let L=this.startNodeAt(T,I);L.object=F,L.property=this.jsx_parseIdentifier(),F=this.finishNode(L,"JSXMemberExpression")}return F}jsx_parseAttributeValue(){switch(this.type){case h.braceL:let T=this.jsx_parseExpressionContainer();return T.expression.type==="JSXEmptyExpression"&&this.raise(T.start,"JSX attributes must only be assigned a non-empty expression"),T;case x.jsxTagStart:case h.string:return this.parseExprAtom();default:this.raise(this.start,"JSX value should be either an expression or a quoted JSX text")}}jsx_parseEmptyExpression(){let T=this.startNodeAt(this.lastTokEnd,this.lastTokEndLoc);return this.finishNodeAt(T,"JSXEmptyExpression",this.start,this.startLoc)}jsx_parseExpressionContainer(){let T=this.startNode();return this.next(),T.expression=this.type===h.braceR?this.jsx_parseEmptyExpression():this.parseExpression(),this.expect(h.braceR),this.finishNode(T,"JSXExpressionContainer")}jsx_parseAttribute(){let T=this.startNode();return this.eat(h.braceL)?(this.expect(h.ellipsis),T.argument=this.parseMaybeAssign(),this.expect(h.braceR),this.finishNode(T,"JSXSpreadAttribute")):(T.name=this.jsx_parseNamespacedName(),T.value=this.eat(h.eq)?this.jsx_parseAttributeValue():null,this.finishNode(T,"JSXAttribute"))}jsx_parseOpeningElementAt(T,I){let F=this.startNodeAt(T,I);F.attributes=[];let L=this.jsx_parseElementName();for(L&&(F.name=L);this.type!==h.slash&&this.type!==x.jsxTagEnd;)F.attributes.push(this.jsx_parseAttribute());return F.selfClosing=this.eat(h.slash),this.expect(x.jsxTagEnd),this.finishNode(F,L?"JSXOpeningElement":"JSXOpeningFragment")}jsx_parseClosingElementAt(T,I){let F=this.startNodeAt(T,I),L=this.jsx_parseElementName();return L&&(F.name=L),this.expect(x.jsxTagEnd),this.finishNode(F,L?"JSXClosingElement":"JSXClosingFragment")}jsx_parseElementAt(T,I){let F=this.startNodeAt(T,I),L=[],ee=this.jsx_parseOpeningElementAt(T,I),Ne=null;if(!ee.selfClosing){e:for(;;)switch(this.type){case x.jsxTagStart:if(T=this.start,I=this.startLoc,this.next(),this.eat(h.slash)){Ne=this.jsx_parseClosingElementAt(T,I);break e}L.push(this.jsx_parseElementAt(T,I));break;case x.jsxText:L.push(this.parseExprAtom());break;case h.braceL:L.push(this.jsx_parseExpressionContainer());break;default:this.unexpected()}Ft(Ne.name)!==Ft(ee.name)&&this.raise(Ne.start,"Expected corresponding JSX closing tag for <"+Ft(ee.name)+">")}let Y=ee.name?"Element":"Fragment";return F["opening"+Y]=ee,F["closing"+Y]=Ne,F.children=L,this.type===h.relational&&this.value==="<"&&this.raise(this.start,"Adjacent JSX elements must be wrapped in an enclosing tag"),this.finishNode(F,"JSX"+Y)}jsx_parseText(){let T=this.parseLiteral(this.value);return T.type="JSXText",T}jsx_parseElement(){let T=this.start,I=this.startLoc;return this.next(),this.jsx_parseElementAt(T,I)}parseExprAtom(T){return this.type===x.jsxText?this.jsx_parseText():this.type===x.jsxTagStart?this.jsx_parseElement():super.parseExprAtom(T)}readToken(T){let I=this.curContext();if(I===l)return this.jsx_readToken();if(I===S||I===C){if(D(T))return this.jsx_readWord();if(T==62)return++this.pos,this.finishToken(x.jsxTagEnd);if((T===34||T===39)&&I==S)return this.jsx_readString(T)}return T===60&&this.exprAllowed&&this.input.charCodeAt(this.pos+1)!==33?(++this.pos,this.finishToken(x.jsxTagStart)):super.readToken(T)}updateContext(T){if(this.type==h.braceL){var I=this.curContext();I==S?this.context.push(y.b_expr):I==l?this.context.push(y.b_tmpl):super.updateContext(T),this.exprAllowed=!0}else if(this.type===h.slash&&T===x.jsxTagStart)this.context.length-=2,this.context.push(C),this.exprAllowed=!1;else return super.updateContext(T)}}}});var uo={};Cs(uo,{default:()=>Jr,enableReactComponentJump:()=>_s,esbuildPlugin:()=>Zr,locateComponentSource:()=>Ei,rollupPlugin:()=>Yr,rspackPlugin:()=>$r,vitePlugin:()=>Xr,webpackPlugin:()=>Qr});module.exports=Oa(uo);var ut="__componentSourceLoc",ks="$componentSourceLoc",Zt="react-code-locator.jsxSourceRegistry";function ki(e){return e.replace(/\\/g,"/")}function Va(e){return e.replace(/\/+$/,"")}function Es(e){return ki(e).split("/").filter(Boolean)}function Da(e,i){let a=Es(e),o=Es(i),h=0;for(;h<a.length&&h<o.length&&a[h]===o[h];)h+=1;let x=new Array(Math.max(0,a.length-h)).fill(".."),y=o.slice(h),S=[...x,...y];return S.length>0?S.join("/"):"."}function Ma(e){return e?Va(ki(e)):""}function $t(e){return e?e.match(/^(.*):\d+:\d+$/)?.[1]??null:null}function Fa(e,i){if(!e)return!1;let a=Ma(i),o=ki(e);return a?o.startsWith(`${a}/`)||o===a?!0:!Da(a,o).startsWith("../"):!o.startsWith("../")&&!o.startsWith("/")&&!/^[A-Za-z]:\//.test(o)}function gt(e,i){let a=$t(e);return Fa(a??void 0,i)}function Ba(e,i){return i==="none"?!0:i==="alt"?e.altKey:i==="meta"?e.metaKey:i==="ctrl"?e.ctrlKey:e.shiftKey}function ja(e){return Object.keys(e).find(i=>i.startsWith("__reactFiber$")||i.startsWith("__reactInternalInstance$"))}function Ua(e){let i=e;for(;i;){let a=ja(i);if(a)return i[a];i=i.parentElement}return null}function ei(e){if(!e)return null;if(typeof e=="function"){let o=e[ut];return typeof o=="string"?o:null}if(typeof e!="object")return null;let i=e,a=i[ut]??i.type?.[ut]??i.render?.[ut];return typeof a=="string"?a:null}function As(e){if(e&&typeof e=="object"){let a=globalThis[Symbol.for(Zt)];if(a instanceof WeakMap){let o=a.get(e);if(typeof o=="string")return o}}let i=e?.[ks];return typeof i=="string"?i:null}function qa(e){let i=e;for(;i;){let a=ei(i.type)??ei(i.elementType);if(a)return a;i=i.return??null}return null}function Ha(e){let i=e?._debugSource;return i?.fileName&&typeof i.lineNumber=="number"?`${i.fileName.replace(/\\/g,"/")}:${i.lineNumber}:${i.columnNumber??1}`:null}function Wa(e){let i=e,a=[],o=[];for(;i;){let D=As(i.pendingProps)??As(i.memoizedProps)??Ha(i);if(D){let T=$t(D);T&&!a.some(I=>I.source===D)&&a.push({source:D,file:T})}let K=ei(i.type)??ei(i.elementType);if(K){let T=$t(K);T&&!o.some(I=>I.source===K)&&o.push({source:K,file:T})}i=i.return??null}let h=a[0]?.source??null,x=o.find(D=>gt(D.source))?.file,y=null;if(x){let D=a.find(K=>K.file===x);if(D)y=D.source;else{let K=o.find(T=>T.file===x);K&&(y=K.source)}}let S=o.find(D=>!gt(D.source))?.source??null,C=a.find(D=>!gt(D.source))?.source??null,l=a.find(D=>gt(D.source))?.source??null,M=y??l??o.find(D=>gt(D.source))?.source??null;return{direct:h??M,screen:M,implementation:S??C??M}}function za(e){return e==="direct"?"Direct JSX":e==="screen"?"Screen source":"Implementation source"}function Ka(e){if(typeof document>"u")return null;let i=document.createElement("div"),a=null,o="screen",h=null;i.setAttribute("data-react-code-locator","true"),Object.assign(i.style,{position:"fixed",right:"12px",bottom:"12px",zIndex:"2147483647",padding:"8px 10px",borderRadius:"8px",background:"rgba(17, 24, 39, 0.92)",color:"#fff",fontSize:"12px",lineHeight:"1.4",fontFamily:"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace",boxShadow:"0 8px 30px rgba(0, 0, 0, 0.25)",pointerEvents:"auto",cursor:"pointer",maxWidth:"min(70vw, 720px)",wordBreak:"break-all",opacity:"0",transition:"opacity 120ms ease"});let x=(S,C)=>{i.textContent=S,i.style.background=C==="success"?"rgba(6, 95, 70, 0.92)":C==="error"?"rgba(153, 27, 27, 0.94)":"rgba(17, 24, 39, 0.92)",i.style.opacity="1",i.style.pointerEvents="auto",h&&clearTimeout(h),h=setTimeout(()=>{i.style.opacity="0",i.style.pointerEvents="none"},2e3)};i.addEventListener("click",async()=>{if(a)try{await navigator.clipboard.writeText(a),x("[react-code-locator] copied","success")}catch{x("[react-code-locator] copy failed","error")}}),x(`[react-code-locator] enabled (${e}+click, alt+1/2/3 to switch mode)`,"idle");let y=()=>{!i.isConnected&&document.body&&document.body.appendChild(i)};return document.body?y():document.addEventListener("DOMContentLoaded",y,{once:!0}),{setStatus(S,C="idle"){x(S,C)},setCopyValue(S){a=S},setMode(S){o=S,x(`[react-code-locator] ${za(S)}`,"idle")},remove(){h&&clearTimeout(h),i.remove()}}}function Ei(e,i="screen"){let a=e instanceof Element?e:e instanceof Node?e.parentElement:null,o=Ua(a);if(!o)return null;let h=Wa(o),x=h[i]??h.screen??h.direct??h.implementation;if(x)return{source:x,mode:i};let y=qa(o);return y?{source:y,mode:i}:null}function _s(e={}){if(process.env.NODE_ENV!=="development")return;let i=Ka(e.triggerKey??"shift"),a="screen",{triggerKey:o="shift",onLocate:h=C=>{console.log(`[react-code-locator] ${C.source}`),i?.setCopyValue(C.source),i?.setStatus(`[react-code-locator] ${C.source}`,"success")},onError:x=C=>{console.error("[react-code-locator]",C);let l=C instanceof Error?C.message:String(C);i?.setCopyValue(null),i?.setStatus(`[react-code-locator] ${l}`,"error")}}=e;console.log("[react-code-locator] enabled",{triggerKey:o});let y=C=>{if(C.altKey){if(C.code==="Digit1"){a="direct",i?.setMode(a),C.preventDefault();return}if(C.code==="Digit2"){a="screen",i?.setMode(a),C.preventDefault();return}C.code==="Digit3"&&(a="implementation",i?.setMode(a),C.preventDefault())}},S=C=>{if(console.log("[react-code-locator] click",{triggerKey:o,shiftKey:C.shiftKey,altKey:C.altKey,ctrlKey:C.ctrlKey,metaKey:C.metaKey,target:C.target}),!Ba(C,o))return;let l=Ei(C.target,a);if(!l){x(new Error("No React component source metadata found for clicked element."));return}C.preventDefault(),C.stopPropagation(),h(l)};return document.addEventListener("click",S,!0),document.addEventListener("keydown",y,!0),()=>{document.removeEventListener("click",S,!0),document.removeEventListener("keydown",y,!0),i?.remove()}}var Gr=require("unplugin");var li={};Cs(li,{Node:()=>Dt,Parser:()=>de,Position:()=>bt,SourceLocation:()=>Ot,TokContext:()=>Ee,Token:()=>pi,TokenType:()=>Z,defaultOptions:()=>ii,getLineInfo:()=>Ri,isIdentifierChar:()=>Ze,isIdentifierStart:()=>Ke,isNewLine:()=>pt,keywordTypes:()=>ct,lineBreak:()=>_e,lineBreakG:()=>Ds,nonASCIIwhitespace:()=>Li,parse:()=>Pn,parseExpressionAt:()=>In,tokContexts:()=>fe,tokTypes:()=>f,tokenizer:()=>Nn,version:()=>mr});var Ga=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,78,5,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,199,7,137,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,55,9,266,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,233,0,3,0,8,1,6,0,475,6,110,6,6,9,4759,9,787719,239],Rs=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,7,25,39,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,5,57,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,24,43,261,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,33,24,3,24,45,74,6,0,67,12,65,1,2,0,15,4,10,7381,42,31,98,114,8702,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,208,30,2,2,2,1,2,6,3,4,10,1,225,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4381,3,5773,3,7472,16,621,2467,541,1507,4938,6,8489],Ja="\u200C\u200D\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ADD\u1AE0-\u1AEB\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65",Os="\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088F\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5C\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDC-\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7DC\uA7F1-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC",Ai={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},_i="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",Xa={5:_i,"5module":_i+" export import",6:_i+" const class extends export import super"},Vs=/^in(stanceof)?$/,Qa=new RegExp("["+Os+"]"),Ya=new RegExp("["+Os+Ja+"]");function Pi(e,i){for(var a=65536,o=0;o<i.length;o+=2){if(a+=i[o],a>e)return!1;if(a+=i[o+1],a>=e)return!0}return!1}function Ke(e,i){return e<65?e===36:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&Qa.test(String.fromCharCode(e)):i===!1?!1:Pi(e,Rs)}function Ze(e,i){return e<48?e===36:e<58?!0:e<65?!1:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&Ya.test(String.fromCharCode(e)):i===!1?!1:Pi(e,Rs)||Pi(e,Ga)}var Z=function(i,a){a===void 0&&(a={}),this.label=i,this.keyword=a.keyword,this.beforeExpr=!!a.beforeExpr,this.startsExpr=!!a.startsExpr,this.isLoop=!!a.isLoop,this.isAssign=!!a.isAssign,this.prefix=!!a.prefix,this.postfix=!!a.postfix,this.binop=a.binop||null,this.updateContext=null};function je(e,i){return new Z(e,{beforeExpr:!0,binop:i})}var Ue={beforeExpr:!0},Ie={startsExpr:!0},ct={};function re(e,i){return i===void 0&&(i={}),i.keyword=e,ct[e]=new Z(e,i)}var f={num:new Z("num",Ie),regexp:new Z("regexp",Ie),string:new Z("string",Ie),name:new Z("name",Ie),privateId:new Z("privateId",Ie),eof:new Z("eof"),bracketL:new Z("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new Z("]"),braceL:new Z("{",{beforeExpr:!0,startsExpr:!0}),braceR:new Z("}"),parenL:new Z("(",{beforeExpr:!0,startsExpr:!0}),parenR:new Z(")"),comma:new Z(",",Ue),semi:new Z(";",Ue),colon:new Z(":",Ue),dot:new Z("."),question:new Z("?",Ue),questionDot:new Z("?."),arrow:new Z("=>",Ue),template:new Z("template"),invalidTemplate:new Z("invalidTemplate"),ellipsis:new Z("...",Ue),backQuote:new Z("`",Ie),dollarBraceL:new Z("${",{beforeExpr:!0,startsExpr:!0}),eq:new Z("=",{beforeExpr:!0,isAssign:!0}),assign:new Z("_=",{beforeExpr:!0,isAssign:!0}),incDec:new Z("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new Z("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:je("||",1),logicalAND:je("&&",2),bitwiseOR:je("|",3),bitwiseXOR:je("^",4),bitwiseAND:je("&",5),equality:je("==/!=/===/!==",6),relational:je("</>/<=/>=",7),bitShift:je("<</>>/>>>",8),plusMin:new Z("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:je("%",10),star:je("*",10),slash:je("/",10),starstar:new Z("**",{beforeExpr:!0}),coalesce:je("??",1),_break:re("break"),_case:re("case",Ue),_catch:re("catch"),_continue:re("continue"),_debugger:re("debugger"),_default:re("default",Ue),_do:re("do",{isLoop:!0,beforeExpr:!0}),_else:re("else",Ue),_finally:re("finally"),_for:re("for",{isLoop:!0}),_function:re("function",Ie),_if:re("if"),_return:re("return",Ue),_switch:re("switch"),_throw:re("throw",Ue),_try:re("try"),_var:re("var"),_const:re("const"),_while:re("while",{isLoop:!0}),_with:re("with"),_new:re("new",{beforeExpr:!0,startsExpr:!0}),_this:re("this",Ie),_super:re("super",Ie),_class:re("class",Ie),_extends:re("extends",Ue),_export:re("export"),_import:re("import",Ie),_null:re("null",Ie),_true:re("true",Ie),_false:re("false",Ie),_in:re("in",{beforeExpr:!0,binop:7}),_instanceof:re("instanceof",{beforeExpr:!0,binop:7}),_typeof:re("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:re("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:re("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},_e=/\r\n?|\n|\u2028|\u2029/,Ds=new RegExp(_e.source,"g");function pt(e){return e===10||e===13||e===8232||e===8233}function Ms(e,i,a){a===void 0&&(a=e.length);for(var o=i;o<a;o++){var h=e.charCodeAt(o);if(pt(h))return o<a-1&&h===13&&e.charCodeAt(o+1)===10?o+2:o+1}return-1}var Li=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,Ae=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,Fs=Object.prototype,Za=Fs.hasOwnProperty,$a=Fs.toString,St=Object.hasOwn||(function(e,i){return Za.call(e,i)}),Ts=Array.isArray||(function(e){return $a.call(e)==="[object Array]"}),Ps=Object.create(null);function rt(e){return Ps[e]||(Ps[e]=new RegExp("^(?:"+e.replace(/ /g,"|")+")$"))}function $e(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10)+55296,(e&1023)+56320))}var en=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,bt=function(i,a){this.line=i,this.column=a};bt.prototype.offset=function(i){return new bt(this.line,this.column+i)};var Ot=function(i,a,o){this.start=a,this.end=o,i.sourceFile!==null&&(this.source=i.sourceFile)};function Ri(e,i){for(var a=1,o=0;;){var h=Ms(e,o,i);if(h<0)return new bt(a,i-o);++a,o=h}}var ii={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},Is=!1;function tn(e){var i={};for(var a in ii)i[a]=e&&St(e,a)?e[a]:ii[a];if(i.ecmaVersion==="latest"?i.ecmaVersion=1e8:i.ecmaVersion==null?(!Is&&typeof console=="object"&&console.warn&&(Is=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
|
|
12
|
-
|
|
13
|
-
`,o-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(_e).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=f.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule=i.sourceType==="module",this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),this.pos===0&&i.allowHashBang&&this.input.slice(0,2)==="#!"&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(this.options.sourceType==="commonjs"?lt:ht),this.regexpState=null,this.privateNameStack=[]},He={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowReturn:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},allowUsing:{configurable:!0},inClassStaticBlock:{configurable:!0}};de.prototype.parse=function(){var i=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(i)};He.inFunction.get=function(){return(this.currentVarScope().flags<)>0};He.inGenerator.get=function(){return(this.currentVarScope().flags&Bs)>0};He.inAsync.get=function(){return(this.currentVarScope().flags&Oi)>0};He.canAwait.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var i=this.scopeStack[e],a=i.flags;if(a&(ft|Vt))return!1;if(a<)return(a&Oi)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction};He.allowReturn.get=function(){return!!(this.inFunction||this.options.allowReturnOutsideFunction&&this.currentVarScope().flags&ht)};He.allowSuper.get=function(){var e=this.currentThisScope(),i=e.flags;return(i&oi)>0||this.options.allowSuperOutsideMethod};He.allowDirectSuper.get=function(){return(this.currentThisScope().flags&Us)>0};He.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())};He.allowNewDotTarget.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var i=this.scopeStack[e],a=i.flags;if(a&(ft|Vt)||a<&&!(a&Vi))return!0}return!1};He.allowUsing.get=function(){var e=this.currentScope(),i=e.flags;return!(i&qs||!this.inModule&&i&ht)};He.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&ft)>0};de.extend=function(){for(var i=[],a=arguments.length;a--;)i[a]=arguments[a];for(var o=this,h=0;h<i.length;h++)o=i[h](o);return o};de.parse=function(i,a){return new this(a,i).parse()};de.parseExpressionAt=function(i,a,o){var h=new this(o,i,a);return h.nextToken(),h.parseExpression()};de.tokenizer=function(i,a){return new this(a,i)};Object.defineProperties(de.prototype,He);var Te=de.prototype,rn=/^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;Te.strictDirective=function(e){if(this.options.ecmaVersion<5)return!1;for(;;){Ae.lastIndex=e,e+=Ae.exec(this.input)[0].length;var i=rn.exec(this.input.slice(e));if(!i)return!1;if((i[1]||i[2])==="use strict"){Ae.lastIndex=e+i[0].length;var a=Ae.exec(this.input),o=a.index+a[0].length,h=this.input.charAt(o);return h===";"||h==="}"||_e.test(a[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(h)||h==="!"&&this.input.charAt(o+1)==="=")}e+=i[0].length,Ae.lastIndex=e,e+=Ae.exec(this.input)[0].length,this.input[e]===";"&&e++}};Te.eat=function(e){return this.type===e?(this.next(),!0):!1};Te.isContextual=function(e){return this.type===f.name&&this.value===e&&!this.containsEsc};Te.eatContextual=function(e){return this.isContextual(e)?(this.next(),!0):!1};Te.expectContextual=function(e){this.eatContextual(e)||this.unexpected()};Te.canInsertSemicolon=function(){return this.type===f.eof||this.type===f.braceR||_e.test(this.input.slice(this.lastTokEnd,this.start))};Te.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0};Te.semicolon=function(){!this.eat(f.semi)&&!this.insertSemicolon()&&this.unexpected()};Te.afterTrailingComma=function(e,i){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),i||this.next(),!0};Te.expect=function(e){this.eat(e)||this.unexpected()};Te.unexpected=function(e){this.raise(e??this.start,"Unexpected token")};var hi=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};Te.checkPatternErrors=function(e,i){if(e){e.trailingComma>-1&&this.raiseRecoverable(e.trailingComma,"Comma is not permitted after the rest element");var a=i?e.parenthesizedAssign:e.parenthesizedBind;a>-1&&this.raiseRecoverable(a,i?"Assigning to rvalue":"Parenthesized pattern")}};Te.checkExpressionErrors=function(e,i){if(!e)return!1;var a=e.shorthandAssign,o=e.doubleProto;if(!i)return a>=0||o>=0;a>=0&&this.raise(a,"Shorthand property assignments are valid only in destructuring patterns"),o>=0&&this.raiseRecoverable(o,"Redefinition of __proto__ property")};Te.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,"Yield expression cannot be a default value"),this.awaitPos&&this.raise(this.awaitPos,"Await expression cannot be a default value")};Te.isSimpleAssignTarget=function(e){return e.type==="ParenthesizedExpression"?this.isSimpleAssignTarget(e.expression):e.type==="Identifier"||e.type==="MemberExpression"};var W=de.prototype;W.parseTopLevel=function(e){var i=Object.create(null);for(e.body||(e.body=[]);this.type!==f.eof;){var a=this.parseStatement(null,!0,i);e.body.push(a)}if(this.inModule)for(var o=0,h=Object.keys(this.undefinedExports);o<h.length;o+=1){var x=h[o];this.raiseRecoverable(this.undefinedExports[x].start,"Export '"+x+"' is not defined")}return this.adaptDirectivePrologue(e.body),this.next(),e.sourceType=this.options.sourceType==="commonjs"?"script":this.options.sourceType,this.finishNode(e,"Program")};var Fi={kind:"loop"},an={kind:"switch"};W.isLet=function(e){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;Ae.lastIndex=this.pos;var i=Ae.exec(this.input),a=this.pos+i[0].length,o=this.fullCharCodeAt(a);if(o===91||o===92)return!0;if(e)return!1;if(o===123)return!0;if(Ke(o)){var h=a;do a+=o<=65535?1:2;while(Ze(o=this.fullCharCodeAt(a)));if(o===92)return!0;var x=this.input.slice(h,a);if(!Vs.test(x))return!0}return!1};W.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;Ae.lastIndex=this.pos;var e=Ae.exec(this.input),i=this.pos+e[0].length,a;return!_e.test(this.input.slice(this.pos,i))&&this.input.slice(i,i+8)==="function"&&(i+8===this.input.length||!(Ze(a=this.fullCharCodeAt(i+8))||a===92))};W.isUsingKeyword=function(e,i){if(this.options.ecmaVersion<17||!this.isContextual(e?"await":"using"))return!1;Ae.lastIndex=this.pos;var a=Ae.exec(this.input),o=this.pos+a[0].length;if(_e.test(this.input.slice(this.pos,o)))return!1;if(e){var h=o+5,x;if(this.input.slice(o,h)!=="using"||h===this.input.length||Ze(x=this.fullCharCodeAt(h))||x===92)return!1;Ae.lastIndex=h;var y=Ae.exec(this.input);if(o=h+y[0].length,y&&_e.test(this.input.slice(h,o)))return!1}var S=this.fullCharCodeAt(o);if(!Ke(S)&&S!==92)return!1;var C=o;do o+=S<=65535?1:2;while(Ze(S=this.fullCharCodeAt(o)));if(S===92)return!0;var l=this.input.slice(C,o);return!(Vs.test(l)||i&&l==="of")};W.isAwaitUsing=function(e){return this.isUsingKeyword(!0,e)};W.isUsing=function(e){return this.isUsingKeyword(!1,e)};W.parseStatement=function(e,i,a){var o=this.type,h=this.startNode(),x;switch(this.isLet(e)&&(o=f._var,x="let"),o){case f._break:case f._continue:return this.parseBreakContinueStatement(h,o.keyword);case f._debugger:return this.parseDebuggerStatement(h);case f._do:return this.parseDoStatement(h);case f._for:return this.parseForStatement(h);case f._function:return e&&(this.strict||e!=="if"&&e!=="label")&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(h,!1,!e);case f._class:return e&&this.unexpected(),this.parseClass(h,!0);case f._if:return this.parseIfStatement(h);case f._return:return this.parseReturnStatement(h);case f._switch:return this.parseSwitchStatement(h);case f._throw:return this.parseThrowStatement(h);case f._try:return this.parseTryStatement(h);case f._const:case f._var:return x=x||this.value,e&&x!=="var"&&this.unexpected(),this.parseVarStatement(h,x);case f._while:return this.parseWhileStatement(h);case f._with:return this.parseWithStatement(h);case f.braceL:return this.parseBlock(!0,h);case f.semi:return this.parseEmptyStatement(h);case f._export:case f._import:if(this.options.ecmaVersion>10&&o===f._import){Ae.lastIndex=this.pos;var y=Ae.exec(this.input),S=this.pos+y[0].length,C=this.input.charCodeAt(S);if(C===40||C===46)return this.parseExpressionStatement(h,this.parseExpression())}return this.options.allowImportExportEverywhere||(i||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),o===f._import?this.parseImport(h):this.parseExport(h,a);default:if(this.isAsyncFunction())return e&&this.unexpected(),this.next(),this.parseFunctionStatement(h,!0,!e);var l=this.isAwaitUsing(!1)?"await using":this.isUsing(!1)?"using":null;if(l)return this.allowUsing||this.raise(this.start,"Using declaration cannot appear in the top level when source type is `script` or in the bare case statement"),l==="await using"&&(this.canAwait||this.raise(this.start,"Await using cannot appear outside of async function"),this.next()),this.next(),this.parseVar(h,!1,l),this.semicolon(),this.finishNode(h,"VariableDeclaration");var M=this.value,D=this.parseExpression();return o===f.name&&D.type==="Identifier"&&this.eat(f.colon)?this.parseLabeledStatement(h,M,D,e):this.parseExpressionStatement(h,D)}};W.parseBreakContinueStatement=function(e,i){var a=i==="break";this.next(),this.eat(f.semi)||this.insertSemicolon()?e.label=null:this.type!==f.name?this.unexpected():(e.label=this.parseIdent(),this.semicolon());for(var o=0;o<this.labels.length;++o){var h=this.labels[o];if((e.label==null||h.name===e.label.name)&&(h.kind!=null&&(a||h.kind==="loop")||e.label&&a))break}return o===this.labels.length&&this.raise(e.start,"Unsyntactic "+i),this.finishNode(e,a?"BreakStatement":"ContinueStatement")};W.parseDebuggerStatement=function(e){return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement")};W.parseDoStatement=function(e){return this.next(),this.labels.push(Fi),e.body=this.parseStatement("do"),this.labels.pop(),this.expect(f._while),e.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(f.semi):this.semicolon(),this.finishNode(e,"DoWhileStatement")};W.parseForStatement=function(e){this.next();var i=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(Fi),this.enterScope(0),this.expect(f.parenL),this.type===f.semi)return i>-1&&this.unexpected(i),this.parseFor(e,null);var a=this.isLet();if(this.type===f._var||this.type===f._const||a){var o=this.startNode(),h=a?"let":this.value;return this.next(),this.parseVar(o,!0,h),this.finishNode(o,"VariableDeclaration"),this.parseForAfterInit(e,o,i)}var x=this.isContextual("let"),y=!1,S=this.isUsing(!0)?"using":this.isAwaitUsing(!0)?"await using":null;if(S){var C=this.startNode();return this.next(),S==="await using"&&(this.canAwait||this.raise(this.start,"Await using cannot appear outside of async function"),this.next()),this.parseVar(C,!0,S),this.finishNode(C,"VariableDeclaration"),this.parseForAfterInit(e,C,i)}var l=this.containsEsc,M=new hi,D=this.start,K=i>-1?this.parseExprSubscripts(M,"await"):this.parseExpression(!0,M);return this.type===f._in||(y=this.options.ecmaVersion>=6&&this.isContextual("of"))?(i>-1?(this.type===f._in&&this.unexpected(i),e.await=!0):y&&this.options.ecmaVersion>=8&&(K.start===D&&!l&&K.type==="Identifier"&&K.name==="async"?this.unexpected():this.options.ecmaVersion>=9&&(e.await=!1)),x&&y&&this.raise(K.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(K,!1,M),this.checkLValPattern(K),this.parseForIn(e,K)):(this.checkExpressionErrors(M,!0),i>-1&&this.unexpected(i),this.parseFor(e,K))};W.parseForAfterInit=function(e,i,a){return(this.type===f._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&i.declarations.length===1?(this.options.ecmaVersion>=9&&(this.type===f._in?a>-1&&this.unexpected(a):e.await=a>-1),this.parseForIn(e,i)):(a>-1&&this.unexpected(a),this.parseFor(e,i))};W.parseFunctionStatement=function(e,i,a){return this.next(),this.parseFunction(e,Rt|(a?0:Ii),!1,i)};W.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement("if"),e.alternate=this.eat(f._else)?this.parseStatement("if"):null,this.finishNode(e,"IfStatement")};W.parseReturnStatement=function(e){return this.allowReturn||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(f.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")};W.parseSwitchStatement=function(e){this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(f.braceL),this.labels.push(an),this.enterScope(qs);for(var i,a=!1;this.type!==f.braceR;)if(this.type===f._case||this.type===f._default){var o=this.type===f._case;i&&this.finishNode(i,"SwitchCase"),e.cases.push(i=this.startNode()),i.consequent=[],this.next(),o?i.test=this.parseExpression():(a&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),a=!0,i.test=null),this.expect(f.colon)}else i||this.unexpected(),i.consequent.push(this.parseStatement(null));return this.exitScope(),i&&this.finishNode(i,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(e,"SwitchStatement")};W.parseThrowStatement=function(e){return this.next(),_e.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")};var nn=[];W.parseCatchClauseParam=function(){var e=this.parseBindingAtom(),i=e.type==="Identifier";return this.enterScope(i?js:0),this.checkLValPattern(e,i?Ws:tt),this.expect(f.parenR),e};W.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===f._catch){var i=this.startNode();this.next(),this.eat(f.parenL)?i.param=this.parseCatchClauseParam():(this.options.ecmaVersion<10&&this.unexpected(),i.param=null,this.enterScope(0)),i.body=this.parseBlock(!1),this.exitScope(),e.handler=this.finishNode(i,"CatchClause")}return e.finalizer=this.eat(f._finally)?this.parseBlock():null,!e.handler&&!e.finalizer&&this.raise(e.start,"Missing catch or finally clause"),this.finishNode(e,"TryStatement")};W.parseVarStatement=function(e,i,a){return this.next(),this.parseVar(e,!1,i,a),this.semicolon(),this.finishNode(e,"VariableDeclaration")};W.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(Fi),e.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(e,"WhileStatement")};W.parseWithStatement=function(e){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),e.object=this.parseParenExpression(),e.body=this.parseStatement("with"),this.finishNode(e,"WithStatement")};W.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,"EmptyStatement")};W.parseLabeledStatement=function(e,i,a,o){for(var h=0,x=this.labels;h<x.length;h+=1){var y=x[h];y.name===i&&this.raise(a.start,"Label '"+i+"' is already declared")}for(var S=this.type.isLoop?"loop":this.type===f._switch?"switch":null,C=this.labels.length-1;C>=0;C--){var l=this.labels[C];if(l.statementStart===e.start)l.statementStart=this.start,l.kind=S;else break}return this.labels.push({name:i,kind:S,statementStart:this.start}),e.body=this.parseStatement(o?o.indexOf("label")===-1?o+"label":o:"label"),this.labels.pop(),e.label=a,this.finishNode(e,"LabeledStatement")};W.parseExpressionStatement=function(e,i){return e.expression=i,this.semicolon(),this.finishNode(e,"ExpressionStatement")};W.parseBlock=function(e,i,a){for(e===void 0&&(e=!0),i===void 0&&(i=this.startNode()),i.body=[],this.expect(f.braceL),e&&this.enterScope(0);this.type!==f.braceR;){var o=this.parseStatement(null);i.body.push(o)}return a&&(this.strict=!1),this.next(),e&&this.exitScope(),this.finishNode(i,"BlockStatement")};W.parseFor=function(e,i){return e.init=i,this.expect(f.semi),e.test=this.type===f.semi?null:this.parseExpression(),this.expect(f.semi),e.update=this.type===f.parenR?null:this.parseExpression(),this.expect(f.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,"ForStatement")};W.parseForIn=function(e,i){var a=this.type===f._in;return this.next(),i.type==="VariableDeclaration"&&i.declarations[0].init!=null&&(!a||this.options.ecmaVersion<8||this.strict||i.kind!=="var"||i.declarations[0].id.type!=="Identifier")&&this.raise(i.start,(a?"for-in":"for-of")+" loop variable declaration may not have an initializer"),e.left=i,e.right=a?this.parseExpression():this.parseMaybeAssign(),this.expect(f.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,a?"ForInStatement":"ForOfStatement")};W.parseVar=function(e,i,a,o){for(e.declarations=[],e.kind=a;;){var h=this.startNode();if(this.parseVarId(h,a),this.eat(f.eq)?h.init=this.parseMaybeAssign(i):!o&&a==="const"&&!(this.type===f._in||this.options.ecmaVersion>=6&&this.isContextual("of"))?this.unexpected():!o&&(a==="using"||a==="await using")&&this.options.ecmaVersion>=17&&this.type!==f._in&&!this.isContextual("of")?this.raise(this.lastTokEnd,"Missing initializer in "+a+" declaration"):!o&&h.id.type!=="Identifier"&&!(i&&(this.type===f._in||this.isContextual("of")))?this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):h.init=null,e.declarations.push(this.finishNode(h,"VariableDeclarator")),!this.eat(f.comma))break}return e};W.parseVarId=function(e,i){e.id=i==="using"||i==="await using"?this.parseIdent():this.parseBindingAtom(),this.checkLValPattern(e.id,i==="var"?Mi:tt,!1)};var Rt=1,Ii=2,Ks=4;W.parseFunction=function(e,i,a,o,h){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!o)&&(this.type===f.star&&i&Ii&&this.unexpected(),e.generator=this.eat(f.star)),this.options.ecmaVersion>=8&&(e.async=!!o),i&Rt&&(e.id=i&Ks&&this.type!==f.name?null:this.parseIdent(),e.id&&!(i&Ii)&&this.checkLValSimple(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?Mi:tt:Hs));var x=this.yieldPos,y=this.awaitPos,S=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(Di(e.async,e.generator)),i&Rt||(e.id=this.type===f.name?this.parseIdent():null),this.parseFunctionParams(e),this.parseFunctionBody(e,a,!1,h),this.yieldPos=x,this.awaitPos=y,this.awaitIdentPos=S,this.finishNode(e,i&Rt?"FunctionDeclaration":"FunctionExpression")};W.parseFunctionParams=function(e){this.expect(f.parenL),e.params=this.parseBindingList(f.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()};W.parseClass=function(e,i){this.next();var a=this.strict;this.strict=!0,this.parseClassId(e,i),this.parseClassSuper(e);var o=this.enterClassBody(),h=this.startNode(),x=!1;for(h.body=[],this.expect(f.braceL);this.type!==f.braceR;){var y=this.parseClassElement(e.superClass!==null);y&&(h.body.push(y),y.type==="MethodDefinition"&&y.kind==="constructor"?(x&&this.raiseRecoverable(y.start,"Duplicate constructor in the same class"),x=!0):y.key&&y.key.type==="PrivateIdentifier"&&on(o,y)&&this.raiseRecoverable(y.key.start,"Identifier '#"+y.key.name+"' has already been declared"))}return this.strict=a,this.next(),e.body=this.finishNode(h,"ClassBody"),this.exitClassBody(),this.finishNode(e,i?"ClassDeclaration":"ClassExpression")};W.parseClassElement=function(e){if(this.eat(f.semi))return null;var i=this.options.ecmaVersion,a=this.startNode(),o="",h=!1,x=!1,y="method",S=!1;if(this.eatContextual("static")){if(i>=13&&this.eat(f.braceL))return this.parseClassStaticBlock(a),a;this.isClassElementNameStart()||this.type===f.star?S=!0:o="static"}if(a.static=S,!o&&i>=8&&this.eatContextual("async")&&((this.isClassElementNameStart()||this.type===f.star)&&!this.canInsertSemicolon()?x=!0:o="async"),!o&&(i>=9||!x)&&this.eat(f.star)&&(h=!0),!o&&!x&&!h){var C=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?y=C:o=C)}if(o?(a.computed=!1,a.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),a.key.name=o,this.finishNode(a.key,"Identifier")):this.parseClassElementName(a),i<13||this.type===f.parenL||y!=="method"||h||x){var l=!a.static&&ri(a,"constructor"),M=l&&e;l&&y!=="method"&&this.raise(a.key.start,"Constructor can't have get/set modifier"),a.kind=l?"constructor":y,this.parseClassMethod(a,h,x,M)}else this.parseClassField(a);return a};W.isClassElementNameStart=function(){return this.type===f.name||this.type===f.privateId||this.type===f.num||this.type===f.string||this.type===f.bracketL||this.type.keyword};W.parseClassElementName=function(e){this.type===f.privateId?(this.value==="constructor"&&this.raise(this.start,"Classes can't have an element named '#constructor'"),e.computed=!1,e.key=this.parsePrivateIdent()):this.parsePropertyName(e)};W.parseClassMethod=function(e,i,a,o){var h=e.key;e.kind==="constructor"?(i&&this.raise(h.start,"Constructor can't be a generator"),a&&this.raise(h.start,"Constructor can't be an async method")):e.static&&ri(e,"prototype")&&this.raise(h.start,"Classes may not have a static property named prototype");var x=e.value=this.parseMethod(i,a,o);return e.kind==="get"&&x.params.length!==0&&this.raiseRecoverable(x.start,"getter should have no params"),e.kind==="set"&&x.params.length!==1&&this.raiseRecoverable(x.start,"setter should have exactly one param"),e.kind==="set"&&x.params[0].type==="RestElement"&&this.raiseRecoverable(x.params[0].start,"Setter cannot use rest params"),this.finishNode(e,"MethodDefinition")};W.parseClassField=function(e){return ri(e,"constructor")?this.raise(e.key.start,"Classes can't have a field named 'constructor'"):e.static&&ri(e,"prototype")&&this.raise(e.key.start,"Classes can't have a static field named 'prototype'"),this.eat(f.eq)?(this.enterScope(Vt|oi),e.value=this.parseMaybeAssign(),this.exitScope()):e.value=null,this.semicolon(),this.finishNode(e,"PropertyDefinition")};W.parseClassStaticBlock=function(e){e.body=[];var i=this.labels;for(this.labels=[],this.enterScope(ft|oi);this.type!==f.braceR;){var a=this.parseStatement(null);e.body.push(a)}return this.next(),this.exitScope(),this.labels=i,this.finishNode(e,"StaticBlock")};W.parseClassId=function(e,i){this.type===f.name?(e.id=this.parseIdent(),i&&this.checkLValSimple(e.id,tt,!1)):(i===!0&&this.unexpected(),e.id=null)};W.parseClassSuper=function(e){e.superClass=this.eat(f._extends)?this.parseExprSubscripts(null,!1):null};W.enterClassBody=function(){var e={declared:Object.create(null),used:[]};return this.privateNameStack.push(e),e.declared};W.exitClassBody=function(){var e=this.privateNameStack.pop(),i=e.declared,a=e.used;if(this.options.checkPrivateFields)for(var o=this.privateNameStack.length,h=o===0?null:this.privateNameStack[o-1],x=0;x<a.length;++x){var y=a[x];St(i,y.name)||(h?h.used.push(y):this.raiseRecoverable(y.start,"Private field '#"+y.name+"' must be declared in an enclosing class"))}};function on(e,i){var a=i.key.name,o=e[a],h="true";return i.type==="MethodDefinition"&&(i.kind==="get"||i.kind==="set")&&(h=(i.static?"s":"i")+i.kind),o==="iget"&&h==="iset"||o==="iset"&&h==="iget"||o==="sget"&&h==="sset"||o==="sset"&&h==="sget"?(e[a]="true",!1):o?!0:(e[a]=h,!1)}function ri(e,i){var a=e.computed,o=e.key;return!a&&(o.type==="Identifier"&&o.name===i||o.type==="Literal"&&o.value===i)}W.parseExportAllDeclaration=function(e,i){return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(e.exported=this.parseModuleExportName(),this.checkExport(i,e.exported,this.lastTokStart)):e.exported=null),this.expectContextual("from"),this.type!==f.string&&this.unexpected(),e.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(e,"ExportAllDeclaration")};W.parseExport=function(e,i){if(this.next(),this.eat(f.star))return this.parseExportAllDeclaration(e,i);if(this.eat(f._default))return this.checkExport(i,"default",this.lastTokStart),e.declaration=this.parseExportDefaultDeclaration(),this.finishNode(e,"ExportDefaultDeclaration");if(this.shouldParseExportStatement())e.declaration=this.parseExportDeclaration(e),e.declaration.type==="VariableDeclaration"?this.checkVariableExport(i,e.declaration.declarations):this.checkExport(i,e.declaration.id,e.declaration.id.start),e.specifiers=[],e.source=null,this.options.ecmaVersion>=16&&(e.attributes=[]);else{if(e.declaration=null,e.specifiers=this.parseExportSpecifiers(i),this.eatContextual("from"))this.type!==f.string&&this.unexpected(),e.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause());else{for(var a=0,o=e.specifiers;a<o.length;a+=1){var h=o[a];this.checkUnreserved(h.local),this.checkLocalExport(h.local),h.local.type==="Literal"&&this.raise(h.local.start,"A string literal cannot be used as an exported binding without `from`.")}e.source=null,this.options.ecmaVersion>=16&&(e.attributes=[])}this.semicolon()}return this.finishNode(e,"ExportNamedDeclaration")};W.parseExportDeclaration=function(e){return this.parseStatement(null)};W.parseExportDefaultDeclaration=function(){var e;if(this.type===f._function||(e=this.isAsyncFunction())){var i=this.startNode();return this.next(),e&&this.next(),this.parseFunction(i,Rt|Ks,!1,e)}else if(this.type===f._class){var a=this.startNode();return this.parseClass(a,"nullableID")}else{var o=this.parseMaybeAssign();return this.semicolon(),o}};W.checkExport=function(e,i,a){e&&(typeof i!="string"&&(i=i.type==="Identifier"?i.name:i.value),St(e,i)&&this.raiseRecoverable(a,"Duplicate export '"+i+"'"),e[i]=!0)};W.checkPatternExport=function(e,i){var a=i.type;if(a==="Identifier")this.checkExport(e,i,i.start);else if(a==="ObjectPattern")for(var o=0,h=i.properties;o<h.length;o+=1){var x=h[o];this.checkPatternExport(e,x)}else if(a==="ArrayPattern")for(var y=0,S=i.elements;y<S.length;y+=1){var C=S[y];C&&this.checkPatternExport(e,C)}else a==="Property"?this.checkPatternExport(e,i.value):a==="AssignmentPattern"?this.checkPatternExport(e,i.left):a==="RestElement"&&this.checkPatternExport(e,i.argument)};W.checkVariableExport=function(e,i){if(e)for(var a=0,o=i;a<o.length;a+=1){var h=o[a];this.checkPatternExport(e,h.id)}};W.shouldParseExportStatement=function(){return this.type.keyword==="var"||this.type.keyword==="const"||this.type.keyword==="class"||this.type.keyword==="function"||this.isLet()||this.isAsyncFunction()};W.parseExportSpecifier=function(e){var i=this.startNode();return i.local=this.parseModuleExportName(),i.exported=this.eatContextual("as")?this.parseModuleExportName():i.local,this.checkExport(e,i.exported,i.exported.start),this.finishNode(i,"ExportSpecifier")};W.parseExportSpecifiers=function(e){var i=[],a=!0;for(this.expect(f.braceL);!this.eat(f.braceR);){if(a)a=!1;else if(this.expect(f.comma),this.afterTrailingComma(f.braceR))break;i.push(this.parseExportSpecifier(e))}return i};W.parseImport=function(e){return this.next(),this.type===f.string?(e.specifiers=nn,e.source=this.parseExprAtom()):(e.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),e.source=this.type===f.string?this.parseExprAtom():this.unexpected()),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(e,"ImportDeclaration")};W.parseImportSpecifier=function(){var e=this.startNode();return e.imported=this.parseModuleExportName(),this.eatContextual("as")?e.local=this.parseIdent():(this.checkUnreserved(e.imported),e.local=e.imported),this.checkLValSimple(e.local,tt),this.finishNode(e,"ImportSpecifier")};W.parseImportDefaultSpecifier=function(){var e=this.startNode();return e.local=this.parseIdent(),this.checkLValSimple(e.local,tt),this.finishNode(e,"ImportDefaultSpecifier")};W.parseImportNamespaceSpecifier=function(){var e=this.startNode();return this.next(),this.expectContextual("as"),e.local=this.parseIdent(),this.checkLValSimple(e.local,tt),this.finishNode(e,"ImportNamespaceSpecifier")};W.parseImportSpecifiers=function(){var e=[],i=!0;if(this.type===f.name&&(e.push(this.parseImportDefaultSpecifier()),!this.eat(f.comma)))return e;if(this.type===f.star)return e.push(this.parseImportNamespaceSpecifier()),e;for(this.expect(f.braceL);!this.eat(f.braceR);){if(i)i=!1;else if(this.expect(f.comma),this.afterTrailingComma(f.braceR))break;e.push(this.parseImportSpecifier())}return e};W.parseWithClause=function(){var e=[];if(!this.eat(f._with))return e;this.expect(f.braceL);for(var i={},a=!0;!this.eat(f.braceR);){if(a)a=!1;else if(this.expect(f.comma),this.afterTrailingComma(f.braceR))break;var o=this.parseImportAttribute(),h=o.key.type==="Identifier"?o.key.name:o.key.value;St(i,h)&&this.raiseRecoverable(o.key.start,"Duplicate attribute key '"+h+"'"),i[h]=!0,e.push(o)}return e};W.parseImportAttribute=function(){var e=this.startNode();return e.key=this.type===f.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never"),this.expect(f.colon),this.type!==f.string&&this.unexpected(),e.value=this.parseExprAtom(),this.finishNode(e,"ImportAttribute")};W.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===f.string){var e=this.parseLiteral(this.value);return en.test(e.value)&&this.raise(e.start,"An export name cannot include a lone surrogate."),e}return this.parseIdent(!0)};W.adaptDirectivePrologue=function(e){for(var i=0;i<e.length&&this.isDirectiveCandidate(e[i]);++i)e[i].directive=e[i].expression.raw.slice(1,-1)};W.isDirectiveCandidate=function(e){return this.options.ecmaVersion>=5&&e.type==="ExpressionStatement"&&e.expression.type==="Literal"&&typeof e.expression.value=="string"&&(this.input[e.start]==='"'||this.input[e.start]==="'")};var We=de.prototype;We.toAssignable=function(e,i,a){if(this.options.ecmaVersion>=6&&e)switch(e.type){case"Identifier":this.inAsync&&e.name==="await"&&this.raise(e.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":e.type="ObjectPattern",a&&this.checkPatternErrors(a,!0);for(var o=0,h=e.properties;o<h.length;o+=1){var x=h[o];this.toAssignable(x,i),x.type==="RestElement"&&(x.argument.type==="ArrayPattern"||x.argument.type==="ObjectPattern")&&this.raise(x.argument.start,"Unexpected token")}break;case"Property":e.kind!=="init"&&this.raise(e.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(e.value,i);break;case"ArrayExpression":e.type="ArrayPattern",a&&this.checkPatternErrors(a,!0),this.toAssignableList(e.elements,i);break;case"SpreadElement":e.type="RestElement",this.toAssignable(e.argument,i),e.argument.type==="AssignmentPattern"&&this.raise(e.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":e.operator!=="="&&this.raise(e.left.end,"Only '=' operator can be used for specifying default value."),e.type="AssignmentPattern",delete e.operator,this.toAssignable(e.left,i);break;case"ParenthesizedExpression":this.toAssignable(e.expression,i,a);break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!i)break;default:this.raise(e.start,"Assigning to rvalue")}else a&&this.checkPatternErrors(a,!0);return e};We.toAssignableList=function(e,i){for(var a=e.length,o=0;o<a;o++){var h=e[o];h&&this.toAssignable(h,i)}if(a){var x=e[a-1];this.options.ecmaVersion===6&&i&&x&&x.type==="RestElement"&&x.argument.type!=="Identifier"&&this.unexpected(x.argument.start)}return e};We.parseSpread=function(e){var i=this.startNode();return this.next(),i.argument=this.parseMaybeAssign(!1,e),this.finishNode(i,"SpreadElement")};We.parseRestBinding=function(){var e=this.startNode();return this.next(),this.options.ecmaVersion===6&&this.type!==f.name&&this.unexpected(),e.argument=this.parseBindingAtom(),this.finishNode(e,"RestElement")};We.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case f.bracketL:var e=this.startNode();return this.next(),e.elements=this.parseBindingList(f.bracketR,!0,!0),this.finishNode(e,"ArrayPattern");case f.braceL:return this.parseObj(!0)}return this.parseIdent()};We.parseBindingList=function(e,i,a,o){for(var h=[],x=!0;!this.eat(e);)if(x?x=!1:this.expect(f.comma),i&&this.type===f.comma)h.push(null);else{if(a&&this.afterTrailingComma(e))break;if(this.type===f.ellipsis){var y=this.parseRestBinding();this.parseBindingListItem(y),h.push(y),this.type===f.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.expect(e);break}else h.push(this.parseAssignableListItem(o))}return h};We.parseAssignableListItem=function(e){var i=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(i),i};We.parseBindingListItem=function(e){return e};We.parseMaybeDefault=function(e,i,a){if(a=a||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(f.eq))return a;var o=this.startNodeAt(e,i);return o.left=a,o.right=this.parseMaybeAssign(),this.finishNode(o,"AssignmentPattern")};We.checkLValSimple=function(e,i,a){i===void 0&&(i=si);var o=i!==si;switch(e.type){case"Identifier":this.strict&&this.reservedWordsStrictBind.test(e.name)&&this.raiseRecoverable(e.start,(o?"Binding ":"Assigning to ")+e.name+" in strict mode"),o&&(i===tt&&e.name==="let"&&this.raiseRecoverable(e.start,"let is disallowed as a lexically bound name"),a&&(St(a,e.name)&&this.raiseRecoverable(e.start,"Argument name clash"),a[e.name]=!0),i!==zs&&this.declareName(e.name,i,e.start));break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":o&&this.raiseRecoverable(e.start,"Binding member expression");break;case"ParenthesizedExpression":return o&&this.raiseRecoverable(e.start,"Binding parenthesized expression"),this.checkLValSimple(e.expression,i,a);default:this.raise(e.start,(o?"Binding":"Assigning to")+" rvalue")}};We.checkLValPattern=function(e,i,a){switch(i===void 0&&(i=si),e.type){case"ObjectPattern":for(var o=0,h=e.properties;o<h.length;o+=1){var x=h[o];this.checkLValInnerPattern(x,i,a)}break;case"ArrayPattern":for(var y=0,S=e.elements;y<S.length;y+=1){var C=S[y];C&&this.checkLValInnerPattern(C,i,a)}break;default:this.checkLValSimple(e,i,a)}};We.checkLValInnerPattern=function(e,i,a){switch(i===void 0&&(i=si),e.type){case"Property":this.checkLValInnerPattern(e.value,i,a);break;case"AssignmentPattern":this.checkLValPattern(e.left,i,a);break;case"RestElement":this.checkLValPattern(e.argument,i,a);break;default:this.checkLValPattern(e,i,a)}};var Ee=function(i,a,o,h,x){this.token=i,this.isExpr=!!a,this.preserveSpace=!!o,this.override=h,this.generator=!!x},fe={b_stat:new Ee("{",!1),b_expr:new Ee("{",!0),b_tmpl:new Ee("${",!1),p_stat:new Ee("(",!1),p_expr:new Ee("(",!0),q_tmpl:new Ee("`",!0,!0,function(e){return e.tryReadTemplateToken()}),f_stat:new Ee("function",!1),f_expr:new Ee("function",!0),f_expr_gen:new Ee("function",!0,!1,null,!0),f_gen:new Ee("function",!1,!1,null,!0)},Ct=de.prototype;Ct.initialContext=function(){return[fe.b_stat]};Ct.curContext=function(){return this.context[this.context.length-1]};Ct.braceIsBlock=function(e){var i=this.curContext();return i===fe.f_expr||i===fe.f_stat?!0:e===f.colon&&(i===fe.b_stat||i===fe.b_expr)?!i.isExpr:e===f._return||e===f.name&&this.exprAllowed?_e.test(this.input.slice(this.lastTokEnd,this.start)):e===f._else||e===f.semi||e===f.eof||e===f.parenR||e===f.arrow?!0:e===f.braceL?i===fe.b_stat:e===f._var||e===f._const||e===f.name?!1:!this.exprAllowed};Ct.inGeneratorContext=function(){for(var e=this.context.length-1;e>=1;e--){var i=this.context[e];if(i.token==="function")return i.generator}return!1};Ct.updateContext=function(e){var i,a=this.type;a.keyword&&e===f.dot?this.exprAllowed=!1:(i=a.updateContext)?i.call(this,e):this.exprAllowed=a.beforeExpr};Ct.overrideContext=function(e){this.curContext()!==e&&(this.context[this.context.length-1]=e)};f.parenR.updateContext=f.braceR.updateContext=function(){if(this.context.length===1){this.exprAllowed=!0;return}var e=this.context.pop();e===fe.b_stat&&this.curContext().token==="function"&&(e=this.context.pop()),this.exprAllowed=!e.isExpr};f.braceL.updateContext=function(e){this.context.push(this.braceIsBlock(e)?fe.b_stat:fe.b_expr),this.exprAllowed=!0};f.dollarBraceL.updateContext=function(){this.context.push(fe.b_tmpl),this.exprAllowed=!0};f.parenL.updateContext=function(e){var i=e===f._if||e===f._for||e===f._with||e===f._while;this.context.push(i?fe.p_stat:fe.p_expr),this.exprAllowed=!0};f.incDec.updateContext=function(){};f._function.updateContext=f._class.updateContext=function(e){e.beforeExpr&&e!==f._else&&!(e===f.semi&&this.curContext()!==fe.p_stat)&&!(e===f._return&&_e.test(this.input.slice(this.lastTokEnd,this.start)))&&!((e===f.colon||e===f.braceL)&&this.curContext()===fe.b_stat)?this.context.push(fe.f_expr):this.context.push(fe.f_stat),this.exprAllowed=!1};f.colon.updateContext=function(){this.curContext().token==="function"&&this.context.pop(),this.exprAllowed=!0};f.backQuote.updateContext=function(){this.curContext()===fe.q_tmpl?this.context.pop():this.context.push(fe.q_tmpl),this.exprAllowed=!1};f.star.updateContext=function(e){if(e===f._function){var i=this.context.length-1;this.context[i]===fe.f_expr?this.context[i]=fe.f_expr_gen:this.context[i]=fe.f_gen}this.exprAllowed=!0};f.name.updateContext=function(e){var i=!1;this.options.ecmaVersion>=6&&e!==f.dot&&(this.value==="of"&&!this.exprAllowed||this.value==="yield"&&this.inGeneratorContext())&&(i=!0),this.exprAllowed=i};var Q=de.prototype;Q.checkPropClash=function(e,i,a){if(!(this.options.ecmaVersion>=9&&e.type==="SpreadElement")&&!(this.options.ecmaVersion>=6&&(e.computed||e.method||e.shorthand))){var o=e.key,h;switch(o.type){case"Identifier":h=o.name;break;case"Literal":h=String(o.value);break;default:return}var x=e.kind;if(this.options.ecmaVersion>=6){h==="__proto__"&&x==="init"&&(i.proto&&(a?a.doubleProto<0&&(a.doubleProto=o.start):this.raiseRecoverable(o.start,"Redefinition of __proto__ property")),i.proto=!0);return}h="$"+h;var y=i[h];if(y){var S;x==="init"?S=this.strict&&y.init||y.get||y.set:S=y.init||y[x],S&&this.raiseRecoverable(o.start,"Redefinition of property")}else y=i[h]={init:!1,get:!1,set:!1};y[x]=!0}};Q.parseExpression=function(e,i){var a=this.start,o=this.startLoc,h=this.parseMaybeAssign(e,i);if(this.type===f.comma){var x=this.startNodeAt(a,o);for(x.expressions=[h];this.eat(f.comma);)x.expressions.push(this.parseMaybeAssign(e,i));return this.finishNode(x,"SequenceExpression")}return h};Q.parseMaybeAssign=function(e,i,a){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(e);this.exprAllowed=!1}var o=!1,h=-1,x=-1,y=-1;i?(h=i.parenthesizedAssign,x=i.trailingComma,y=i.doubleProto,i.parenthesizedAssign=i.trailingComma=-1):(i=new hi,o=!0);var S=this.start,C=this.startLoc;(this.type===f.parenL||this.type===f.name)&&(this.potentialArrowAt=this.start,this.potentialArrowInForAwait=e==="await");var l=this.parseMaybeConditional(e,i);if(a&&(l=a.call(this,l,S,C)),this.type.isAssign){var M=this.startNodeAt(S,C);return M.operator=this.value,this.type===f.eq&&(l=this.toAssignable(l,!1,i)),o||(i.parenthesizedAssign=i.trailingComma=i.doubleProto=-1),i.shorthandAssign>=l.start&&(i.shorthandAssign=-1),this.type===f.eq?this.checkLValPattern(l):this.checkLValSimple(l),M.left=l,this.next(),M.right=this.parseMaybeAssign(e),y>-1&&(i.doubleProto=y),this.finishNode(M,"AssignmentExpression")}else o&&this.checkExpressionErrors(i,!0);return h>-1&&(i.parenthesizedAssign=h),x>-1&&(i.trailingComma=x),l};Q.parseMaybeConditional=function(e,i){var a=this.start,o=this.startLoc,h=this.parseExprOps(e,i);if(this.checkExpressionErrors(i))return h;if(this.eat(f.question)){var x=this.startNodeAt(a,o);return x.test=h,x.consequent=this.parseMaybeAssign(),this.expect(f.colon),x.alternate=this.parseMaybeAssign(e),this.finishNode(x,"ConditionalExpression")}return h};Q.parseExprOps=function(e,i){var a=this.start,o=this.startLoc,h=this.parseMaybeUnary(i,!1,!1,e);return this.checkExpressionErrors(i)||h.start===a&&h.type==="ArrowFunctionExpression"?h:this.parseExprOp(h,a,o,-1,e)};Q.parseExprOp=function(e,i,a,o,h){var x=this.type.binop;if(x!=null&&(!h||this.type!==f._in)&&x>o){var y=this.type===f.logicalOR||this.type===f.logicalAND,S=this.type===f.coalesce;S&&(x=f.logicalAND.binop);var C=this.value;this.next();var l=this.start,M=this.startLoc,D=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,h),l,M,x,h),K=this.buildBinary(i,a,e,D,C,y||S);return(y&&this.type===f.coalesce||S&&(this.type===f.logicalOR||this.type===f.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(K,i,a,o,h)}return e};Q.buildBinary=function(e,i,a,o,h,x){o.type==="PrivateIdentifier"&&this.raise(o.start,"Private identifier can only be left side of binary expression");var y=this.startNodeAt(e,i);return y.left=a,y.operator=h,y.right=o,this.finishNode(y,x?"LogicalExpression":"BinaryExpression")};Q.parseMaybeUnary=function(e,i,a,o){var h=this.start,x=this.startLoc,y;if(this.isContextual("await")&&this.canAwait)y=this.parseAwait(o),i=!0;else if(this.type.prefix){var S=this.startNode(),C=this.type===f.incDec;S.operator=this.value,S.prefix=!0,this.next(),S.argument=this.parseMaybeUnary(null,!0,C,o),this.checkExpressionErrors(e,!0),C?this.checkLValSimple(S.argument):this.strict&&S.operator==="delete"&&Gs(S.argument)?this.raiseRecoverable(S.start,"Deleting local variable in strict mode"):S.operator==="delete"&&Ni(S.argument)?this.raiseRecoverable(S.start,"Private fields can not be deleted"):i=!0,y=this.finishNode(S,C?"UpdateExpression":"UnaryExpression")}else if(!i&&this.type===f.privateId)(o||this.privateNameStack.length===0)&&this.options.checkPrivateFields&&this.unexpected(),y=this.parsePrivateIdent(),this.type!==f._in&&this.unexpected();else{if(y=this.parseExprSubscripts(e,o),this.checkExpressionErrors(e))return y;for(;this.type.postfix&&!this.canInsertSemicolon();){var l=this.startNodeAt(h,x);l.operator=this.value,l.prefix=!1,l.argument=y,this.checkLValSimple(y),this.next(),y=this.finishNode(l,"UpdateExpression")}}if(!a&&this.eat(f.starstar))if(i)this.unexpected(this.lastTokStart);else return this.buildBinary(h,x,y,this.parseMaybeUnary(null,!1,!1,o),"**",!1);else return y};function Gs(e){return e.type==="Identifier"||e.type==="ParenthesizedExpression"&&Gs(e.expression)}function Ni(e){return e.type==="MemberExpression"&&e.property.type==="PrivateIdentifier"||e.type==="ChainExpression"&&Ni(e.expression)||e.type==="ParenthesizedExpression"&&Ni(e.expression)}Q.parseExprSubscripts=function(e,i){var a=this.start,o=this.startLoc,h=this.parseExprAtom(e,i);if(h.type==="ArrowFunctionExpression"&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==")")return h;var x=this.parseSubscripts(h,a,o,!1,i);return e&&x.type==="MemberExpression"&&(e.parenthesizedAssign>=x.start&&(e.parenthesizedAssign=-1),e.parenthesizedBind>=x.start&&(e.parenthesizedBind=-1),e.trailingComma>=x.start&&(e.trailingComma=-1)),x};Q.parseSubscripts=function(e,i,a,o,h){for(var x=this.options.ecmaVersion>=8&&e.type==="Identifier"&&e.name==="async"&&this.lastTokEnd===e.end&&!this.canInsertSemicolon()&&e.end-e.start===5&&this.potentialArrowAt===e.start,y=!1;;){var S=this.parseSubscript(e,i,a,o,x,y,h);if(S.optional&&(y=!0),S===e||S.type==="ArrowFunctionExpression"){if(y){var C=this.startNodeAt(i,a);C.expression=S,S=this.finishNode(C,"ChainExpression")}return S}e=S}};Q.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(f.arrow)};Q.parseSubscriptAsyncArrow=function(e,i,a,o){return this.parseArrowExpression(this.startNodeAt(e,i),a,!0,o)};Q.parseSubscript=function(e,i,a,o,h,x,y){var S=this.options.ecmaVersion>=11,C=S&&this.eat(f.questionDot);o&&C&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var l=this.eat(f.bracketL);if(l||C&&this.type!==f.parenL&&this.type!==f.backQuote||this.eat(f.dot)){var M=this.startNodeAt(i,a);M.object=e,l?(M.property=this.parseExpression(),this.expect(f.bracketR)):this.type===f.privateId&&e.type!=="Super"?M.property=this.parsePrivateIdent():M.property=this.parseIdent(this.options.allowReserved!=="never"),M.computed=!!l,S&&(M.optional=C),e=this.finishNode(M,"MemberExpression")}else if(!o&&this.eat(f.parenL)){var D=new hi,K=this.yieldPos,T=this.awaitPos,I=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var F=this.parseExprList(f.parenR,this.options.ecmaVersion>=8,!1,D);if(h&&!C&&this.shouldParseAsyncArrow())return this.checkPatternErrors(D,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=K,this.awaitPos=T,this.awaitIdentPos=I,this.parseSubscriptAsyncArrow(i,a,F,y);this.checkExpressionErrors(D,!0),this.yieldPos=K||this.yieldPos,this.awaitPos=T||this.awaitPos,this.awaitIdentPos=I||this.awaitIdentPos;var L=this.startNodeAt(i,a);L.callee=e,L.arguments=F,S&&(L.optional=C),e=this.finishNode(L,"CallExpression")}else if(this.type===f.backQuote){(C||x)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var ee=this.startNodeAt(i,a);ee.tag=e,ee.quasi=this.parseTemplate({isTagged:!0}),e=this.finishNode(ee,"TaggedTemplateExpression")}return e};Q.parseExprAtom=function(e,i,a){this.type===f.slash&&this.readRegexp();var o,h=this.potentialArrowAt===this.start;switch(this.type){case f._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),o=this.startNode(),this.next(),this.type===f.parenL&&!this.allowDirectSuper&&this.raise(o.start,"super() call outside constructor of a subclass"),this.type!==f.dot&&this.type!==f.bracketL&&this.type!==f.parenL&&this.unexpected(),this.finishNode(o,"Super");case f._this:return o=this.startNode(),this.next(),this.finishNode(o,"ThisExpression");case f.name:var x=this.start,y=this.startLoc,S=this.containsEsc,C=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!S&&C.name==="async"&&!this.canInsertSemicolon()&&this.eat(f._function))return this.overrideContext(fe.f_expr),this.parseFunction(this.startNodeAt(x,y),0,!1,!0,i);if(h&&!this.canInsertSemicolon()){if(this.eat(f.arrow))return this.parseArrowExpression(this.startNodeAt(x,y),[C],!1,i);if(this.options.ecmaVersion>=8&&C.name==="async"&&this.type===f.name&&!S&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc))return C=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(f.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(x,y),[C],!0,i)}return C;case f.regexp:var l=this.value;return o=this.parseLiteral(l.value),o.regex={pattern:l.pattern,flags:l.flags},o;case f.num:case f.string:return this.parseLiteral(this.value);case f._null:case f._true:case f._false:return o=this.startNode(),o.value=this.type===f._null?null:this.type===f._true,o.raw=this.type.keyword,this.next(),this.finishNode(o,"Literal");case f.parenL:var M=this.start,D=this.parseParenAndDistinguishExpression(h,i);return e&&(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(D)&&(e.parenthesizedAssign=M),e.parenthesizedBind<0&&(e.parenthesizedBind=M)),D;case f.bracketL:return o=this.startNode(),this.next(),o.elements=this.parseExprList(f.bracketR,!0,!0,e),this.finishNode(o,"ArrayExpression");case f.braceL:return this.overrideContext(fe.b_expr),this.parseObj(!1,e);case f._function:return o=this.startNode(),this.next(),this.parseFunction(o,0);case f._class:return this.parseClass(this.startNode(),!1);case f._new:return this.parseNew();case f.backQuote:return this.parseTemplate();case f._import:return this.options.ecmaVersion>=11?this.parseExprImport(a):this.unexpected();default:return this.parseExprAtomDefault()}};Q.parseExprAtomDefault=function(){this.unexpected()};Q.parseExprImport=function(e){var i=this.startNode();if(this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import"),this.next(),this.type===f.parenL&&!e)return this.parseDynamicImport(i);if(this.type===f.dot){var a=this.startNodeAt(i.start,i.loc&&i.loc.start);return a.name="import",i.meta=this.finishNode(a,"Identifier"),this.parseImportMeta(i)}else this.unexpected()};Q.parseDynamicImport=function(e){if(this.next(),e.source=this.parseMaybeAssign(),this.options.ecmaVersion>=16)this.eat(f.parenR)?e.options=null:(this.expect(f.comma),this.afterTrailingComma(f.parenR)?e.options=null:(e.options=this.parseMaybeAssign(),this.eat(f.parenR)||(this.expect(f.comma),this.afterTrailingComma(f.parenR)||this.unexpected())));else if(!this.eat(f.parenR)){var i=this.start;this.eat(f.comma)&&this.eat(f.parenR)?this.raiseRecoverable(i,"Trailing comma is not allowed in import()"):this.unexpected(i)}return this.finishNode(e,"ImportExpression")};Q.parseImportMeta=function(e){this.next();var i=this.containsEsc;return e.property=this.parseIdent(!0),e.property.name!=="meta"&&this.raiseRecoverable(e.property.start,"The only valid meta property for import is 'import.meta'"),i&&this.raiseRecoverable(e.start,"'import.meta' must not contain escaped characters"),this.options.sourceType!=="module"&&!this.options.allowImportExportEverywhere&&this.raiseRecoverable(e.start,"Cannot use 'import.meta' outside a module"),this.finishNode(e,"MetaProperty")};Q.parseLiteral=function(e){var i=this.startNode();return i.value=e,i.raw=this.input.slice(this.start,this.end),i.raw.charCodeAt(i.raw.length-1)===110&&(i.bigint=i.value!=null?i.value.toString():i.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(i,"Literal")};Q.parseParenExpression=function(){this.expect(f.parenL);var e=this.parseExpression();return this.expect(f.parenR),e};Q.shouldParseArrow=function(e){return!this.canInsertSemicolon()};Q.parseParenAndDistinguishExpression=function(e,i){var a=this.start,o=this.startLoc,h,x=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var y=this.start,S=this.startLoc,C=[],l=!0,M=!1,D=new hi,K=this.yieldPos,T=this.awaitPos,I;for(this.yieldPos=0,this.awaitPos=0;this.type!==f.parenR;)if(l?l=!1:this.expect(f.comma),x&&this.afterTrailingComma(f.parenR,!0)){M=!0;break}else if(this.type===f.ellipsis){I=this.start,C.push(this.parseParenItem(this.parseRestBinding())),this.type===f.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}else C.push(this.parseMaybeAssign(!1,D,this.parseParenItem));var F=this.lastTokEnd,L=this.lastTokEndLoc;if(this.expect(f.parenR),e&&this.shouldParseArrow(C)&&this.eat(f.arrow))return this.checkPatternErrors(D,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=K,this.awaitPos=T,this.parseParenArrowList(a,o,C,i);(!C.length||M)&&this.unexpected(this.lastTokStart),I&&this.unexpected(I),this.checkExpressionErrors(D,!0),this.yieldPos=K||this.yieldPos,this.awaitPos=T||this.awaitPos,C.length>1?(h=this.startNodeAt(y,S),h.expressions=C,this.finishNodeAt(h,"SequenceExpression",F,L)):h=C[0]}else h=this.parseParenExpression();if(this.options.preserveParens){var ee=this.startNodeAt(a,o);return ee.expression=h,this.finishNode(ee,"ParenthesizedExpression")}else return h};Q.parseParenItem=function(e){return e};Q.parseParenArrowList=function(e,i,a,o){return this.parseArrowExpression(this.startNodeAt(e,i),a,!1,o)};var un=[];Q.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var e=this.startNode();if(this.next(),this.options.ecmaVersion>=6&&this.type===f.dot){var i=this.startNodeAt(e.start,e.loc&&e.loc.start);i.name="new",e.meta=this.finishNode(i,"Identifier"),this.next();var a=this.containsEsc;return e.property=this.parseIdent(!0),e.property.name!=="target"&&this.raiseRecoverable(e.property.start,"The only valid meta property for new is 'new.target'"),a&&this.raiseRecoverable(e.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(e.start,"'new.target' can only be used in functions and class static block"),this.finishNode(e,"MetaProperty")}var o=this.start,h=this.startLoc;return e.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),o,h,!0,!1),this.eat(f.parenL)?e.arguments=this.parseExprList(f.parenR,this.options.ecmaVersion>=8,!1):e.arguments=un,this.finishNode(e,"NewExpression")};Q.parseTemplateElement=function(e){var i=e.isTagged,a=this.startNode();return this.type===f.invalidTemplate?(i||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),a.value={raw:this.value.replace(/\r\n?/g,`
|
|
14
|
-
`),
|
|
15
|
-
`),cooked:this.value},this.next(),a.tail=this.type===f.backQuote,this.finishNode(a,"TemplateElement")};Q.parseTemplate=function(e){e===void 0&&(e={});var i=e.isTagged;i===void 0&&(i=!1);var a=this.startNode();this.next(),a.expressions=[];var o=this.parseTemplateElement({isTagged:i});for(a.quasis=[o];!o.tail;)this.type===f.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(f.dollarBraceL),a.expressions.push(this.parseExpression()),this.expect(f.braceR),a.quasis.push(o=this.parseTemplateElement({isTagged:i}));return this.next(),this.finishNode(a,"TemplateLiteral")};Q.isAsyncProp=function(e){return!e.computed&&e.key.type==="Identifier"&&e.key.name==="async"&&(this.type===f.name||this.type===f.num||this.type===f.string||this.type===f.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===f.star)&&!_e.test(this.input.slice(this.lastTokEnd,this.start))};Q.parseObj=function(e,i){var a=this.startNode(),o=!0,h={};for(a.properties=[],this.next();!this.eat(f.braceR);){if(o)o=!1;else if(this.expect(f.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(f.braceR))break;var x=this.parseProperty(e,i);e||this.checkPropClash(x,h,i),a.properties.push(x)}return this.finishNode(a,e?"ObjectPattern":"ObjectExpression")};Q.parseProperty=function(e,i){var a=this.startNode(),o,h,x,y;if(this.options.ecmaVersion>=9&&this.eat(f.ellipsis))return e?(a.argument=this.parseIdent(!1),this.type===f.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.finishNode(a,"RestElement")):(a.argument=this.parseMaybeAssign(!1,i),this.type===f.comma&&i&&i.trailingComma<0&&(i.trailingComma=this.start),this.finishNode(a,"SpreadElement"));this.options.ecmaVersion>=6&&(a.method=!1,a.shorthand=!1,(e||i)&&(x=this.start,y=this.startLoc),e||(o=this.eat(f.star)));var S=this.containsEsc;return this.parsePropertyName(a),!e&&!S&&this.options.ecmaVersion>=8&&!o&&this.isAsyncProp(a)?(h=!0,o=this.options.ecmaVersion>=9&&this.eat(f.star),this.parsePropertyName(a)):h=!1,this.parsePropertyValue(a,e,o,h,x,y,i,S),this.finishNode(a,"Property")};Q.parseGetterSetter=function(e){var i=e.key.name;this.parsePropertyName(e),e.value=this.parseMethod(!1),e.kind=i;var a=e.kind==="get"?0:1;if(e.value.params.length!==a){var o=e.value.start;e.kind==="get"?this.raiseRecoverable(o,"getter should have no params"):this.raiseRecoverable(o,"setter should have exactly one param")}else e.kind==="set"&&e.value.params[0].type==="RestElement"&&this.raiseRecoverable(e.value.params[0].start,"Setter cannot use rest params")};Q.parsePropertyValue=function(e,i,a,o,h,x,y,S){(a||o)&&this.type===f.colon&&this.unexpected(),this.eat(f.colon)?(e.value=i?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,y),e.kind="init"):this.options.ecmaVersion>=6&&this.type===f.parenL?(i&&this.unexpected(),e.method=!0,e.value=this.parseMethod(a,o),e.kind="init"):!i&&!S&&this.options.ecmaVersion>=5&&!e.computed&&e.key.type==="Identifier"&&(e.key.name==="get"||e.key.name==="set")&&this.type!==f.comma&&this.type!==f.braceR&&this.type!==f.eq?((a||o)&&this.unexpected(),this.parseGetterSetter(e)):this.options.ecmaVersion>=6&&!e.computed&&e.key.type==="Identifier"?((a||o)&&this.unexpected(),this.checkUnreserved(e.key),e.key.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=h),i?e.value=this.parseMaybeDefault(h,x,this.copyNode(e.key)):this.type===f.eq&&y?(y.shorthandAssign<0&&(y.shorthandAssign=this.start),e.value=this.parseMaybeDefault(h,x,this.copyNode(e.key))):e.value=this.copyNode(e.key),e.kind="init",e.shorthand=!0):this.unexpected()};Q.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(f.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(f.bracketR),e.key;e.computed=!1}return e.key=this.type===f.num||this.type===f.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")};Q.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)};Q.parseMethod=function(e,i,a){var o=this.startNode(),h=this.yieldPos,x=this.awaitPos,y=this.awaitIdentPos;return this.initFunction(o),this.options.ecmaVersion>=6&&(o.generator=e),this.options.ecmaVersion>=8&&(o.async=!!i),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(Di(i,o.generator)|oi|(a?Us:0)),this.expect(f.parenL),o.params=this.parseBindingList(f.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(o,!1,!0,!1),this.yieldPos=h,this.awaitPos=x,this.awaitIdentPos=y,this.finishNode(o,"FunctionExpression")};Q.parseArrowExpression=function(e,i,a,o){var h=this.yieldPos,x=this.awaitPos,y=this.awaitIdentPos;return this.enterScope(Di(a,!1)|Vi),this.initFunction(e),this.options.ecmaVersion>=8&&(e.async=!!a),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,e.params=this.toAssignableList(i,!0),this.parseFunctionBody(e,!0,!1,o),this.yieldPos=h,this.awaitPos=x,this.awaitIdentPos=y,this.finishNode(e,"ArrowFunctionExpression")};Q.parseFunctionBody=function(e,i,a,o){var h=i&&this.type!==f.braceL,x=this.strict,y=!1;if(h)e.body=this.parseMaybeAssign(o),e.expression=!0,this.checkParams(e,!1);else{var S=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);(!x||S)&&(y=this.strictDirective(this.end),y&&S&&this.raiseRecoverable(e.start,"Illegal 'use strict' directive in function with non-simple parameter list"));var C=this.labels;this.labels=[],y&&(this.strict=!0),this.checkParams(e,!x&&!y&&!i&&!a&&this.isSimpleParamList(e.params)),this.strict&&e.id&&this.checkLValSimple(e.id,zs),e.body=this.parseBlock(!1,void 0,y&&!x),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=C}this.exitScope()};Q.isSimpleParamList=function(e){for(var i=0,a=e;i<a.length;i+=1){var o=a[i];if(o.type!=="Identifier")return!1}return!0};Q.checkParams=function(e,i){for(var a=Object.create(null),o=0,h=e.params;o<h.length;o+=1){var x=h[o];this.checkLValInnerPattern(x,Mi,i?null:a)}};Q.parseExprList=function(e,i,a,o){for(var h=[],x=!0;!this.eat(e);){if(x)x=!1;else if(this.expect(f.comma),i&&this.afterTrailingComma(e))break;var y=void 0;a&&this.type===f.comma?y=null:this.type===f.ellipsis?(y=this.parseSpread(o),o&&this.type===f.comma&&o.trailingComma<0&&(o.trailingComma=this.start)):y=this.parseMaybeAssign(!1,o),h.push(y)}return h};Q.checkUnreserved=function(e){var i=e.start,a=e.end,o=e.name;if(this.inGenerator&&o==="yield"&&this.raiseRecoverable(i,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&o==="await"&&this.raiseRecoverable(i,"Cannot use 'await' as identifier inside an async function"),!(this.currentThisScope().flags&ui)&&o==="arguments"&&this.raiseRecoverable(i,"Cannot use 'arguments' in class field initializer"),this.inClassStaticBlock&&(o==="arguments"||o==="await")&&this.raise(i,"Cannot use "+o+" in class static initialization block"),this.keywords.test(o)&&this.raise(i,"Unexpected keyword '"+o+"'"),!(this.options.ecmaVersion<6&&this.input.slice(i,a).indexOf("\\")!==-1)){var h=this.strict?this.reservedWordsStrict:this.reservedWords;h.test(o)&&(!this.inAsync&&o==="await"&&this.raiseRecoverable(i,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(i,"The keyword '"+o+"' is reserved"))}};Q.parseIdent=function(e){var i=this.parseIdentNode();return this.next(!!e),this.finishNode(i,"Identifier"),e||(this.checkUnreserved(i),i.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=i.start)),i};Q.parseIdentNode=function(){var e=this.startNode();return this.type===f.name?e.name=this.value:this.type.keyword?(e.name=this.type.keyword,(e.name==="class"||e.name==="function")&&(this.lastTokEnd!==this.lastTokStart+1||this.input.charCodeAt(this.lastTokStart)!==46)&&this.context.pop(),this.type=f.name):this.unexpected(),e};Q.parsePrivateIdent=function(){var e=this.startNode();return this.type===f.privateId?e.name=this.value:this.unexpected(),this.next(),this.finishNode(e,"PrivateIdentifier"),this.options.checkPrivateFields&&(this.privateNameStack.length===0?this.raise(e.start,"Private field '#"+e.name+"' must be declared in an enclosing class"):this.privateNameStack[this.privateNameStack.length-1].used.push(e)),e};Q.parseYield=function(e){this.yieldPos||(this.yieldPos=this.start);var i=this.startNode();return this.next(),this.type===f.semi||this.canInsertSemicolon()||this.type!==f.star&&!this.type.startsExpr?(i.delegate=!1,i.argument=null):(i.delegate=this.eat(f.star),i.argument=this.parseMaybeAssign(e)),this.finishNode(i,"YieldExpression")};Q.parseAwait=function(e){this.awaitPos||(this.awaitPos=this.start);var i=this.startNode();return this.next(),i.argument=this.parseMaybeUnary(null,!0,!1,e),this.finishNode(i,"AwaitExpression")};var ai=de.prototype;ai.raise=function(e,i){var a=Ri(this.input,e);i+=" ("+a.line+":"+a.column+")",this.sourceFile&&(i+=" in "+this.sourceFile);var o=new SyntaxError(i);throw o.pos=e,o.loc=a,o.raisedAt=this.pos,o};ai.raiseRecoverable=ai.raise;ai.curPosition=function(){if(this.options.locations)return new bt(this.curLine,this.pos-this.lineStart)};var at=de.prototype,hn=function(i){this.flags=i,this.var=[],this.lexical=[],this.functions=[]};at.enterScope=function(e){this.scopeStack.push(new hn(e))};at.exitScope=function(){this.scopeStack.pop()};at.treatFunctionsAsVarInScope=function(e){return e.flags<||!this.inModule&&e.flags&ht};at.declareName=function(e,i,a){var o=!1;if(i===tt){var h=this.currentScope();o=h.lexical.indexOf(e)>-1||h.functions.indexOf(e)>-1||h.var.indexOf(e)>-1,h.lexical.push(e),this.inModule&&h.flags&ht&&delete this.undefinedExports[e]}else if(i===Ws){var x=this.currentScope();x.lexical.push(e)}else if(i===Hs){var y=this.currentScope();this.treatFunctionsAsVar?o=y.lexical.indexOf(e)>-1:o=y.lexical.indexOf(e)>-1||y.var.indexOf(e)>-1,y.functions.push(e)}else for(var S=this.scopeStack.length-1;S>=0;--S){var C=this.scopeStack[S];if(C.lexical.indexOf(e)>-1&&!(C.flags&js&&C.lexical[0]===e)||!this.treatFunctionsAsVarInScope(C)&&C.functions.indexOf(e)>-1){o=!0;break}if(C.var.push(e),this.inModule&&C.flags&ht&&delete this.undefinedExports[e],C.flags&ui)break}o&&this.raiseRecoverable(a,"Identifier '"+e+"' has already been declared")};at.checkLocalExport=function(e){this.scopeStack[0].lexical.indexOf(e.name)===-1&&this.scopeStack[0].var.indexOf(e.name)===-1&&(this.undefinedExports[e.name]=e)};at.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]};at.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var i=this.scopeStack[e];if(i.flags&(ui|Vt|ft))return i}};at.currentThisScope=function(){for(var e=this.scopeStack.length-1;;e--){var i=this.scopeStack[e];if(i.flags&(ui|Vt|ft)&&!(i.flags&Vi))return i}};var Dt=function(i,a,o){this.type="",this.start=a,this.end=0,i.options.locations&&(this.loc=new Ot(i,o)),i.options.directSourceFile&&(this.sourceFile=i.options.directSourceFile),i.options.ranges&&(this.range=[a,0])},Mt=de.prototype;Mt.startNode=function(){return new Dt(this,this.start,this.startLoc)};Mt.startNodeAt=function(e,i){return new Dt(this,e,i)};function Js(e,i,a,o){return e.type=i,e.end=a,this.options.locations&&(e.loc.end=o),this.options.ranges&&(e.range[1]=a),e}Mt.finishNode=function(e,i){return Js.call(this,e,i,this.lastTokEnd,this.lastTokEndLoc)};Mt.finishNodeAt=function(e,i,a,o){return Js.call(this,e,i,a,o)};Mt.copyNode=function(e){var i=new Dt(this,e.start,this.startLoc);for(var a in e)i[a]=e[a];return i};var cn="Berf Beria_Erfe Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sidetic Sidt Sunu Sunuwar Tai_Yo Tayo Todhri Todr Tolong_Siki Tols Tulu_Tigalari Tutg Unknown Zzzz",Xs="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",Qs=Xs+" Extended_Pictographic",Ys=Qs,Zs=Ys+" EBase EComp EMod EPres ExtPict",$s=Zs,pn=$s,ln={9:Xs,10:Qs,11:Ys,12:Zs,13:$s,14:pn},fn="Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji",dn={9:"",10:"",11:"",12:"",13:"",14:fn},Ns="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",er="Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",tr=er+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",ir=tr+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",sr=ir+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",rr=sr+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",mn=rr+" "+cn,xn={9:er,10:tr,11:ir,12:sr,13:rr,14:mn},ar={};function yn(e){var i=ar[e]={binary:rt(ln[e]+" "+Ns),binaryOfStrings:rt(dn[e]),nonBinary:{General_Category:rt(Ns),Script:rt(xn[e])}};i.nonBinary.Script_Extensions=i.nonBinary.Script,i.nonBinary.gc=i.nonBinary.General_Category,i.nonBinary.sc=i.nonBinary.Script,i.nonBinary.scx=i.nonBinary.Script_Extensions}for(ti=0,Ti=[9,10,11,12,13,14];ti<Ti.length;ti+=1)Ls=Ti[ti],yn(Ls);var Ls,ti,Ti,q=de.prototype,ni=function(i,a){this.parent=i,this.base=a||this};ni.prototype.separatedFrom=function(i){for(var a=this;a;a=a.parent)for(var o=i;o;o=o.parent)if(a.base===o.base&&a!==o)return!0;return!1};ni.prototype.sibling=function(){return new ni(this.parent,this.base)};var Xe=function(i){this.parser=i,this.validFlags="gim"+(i.options.ecmaVersion>=6?"uy":"")+(i.options.ecmaVersion>=9?"s":"")+(i.options.ecmaVersion>=13?"d":"")+(i.options.ecmaVersion>=15?"v":""),this.unicodeProperties=ar[i.options.ecmaVersion>=14?14:i.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchV=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=Object.create(null),this.backReferenceNames=[],this.branchID=null};Xe.prototype.reset=function(i,a,o){var h=o.indexOf("v")!==-1,x=o.indexOf("u")!==-1;this.start=i|0,this.source=a+"",this.flags=o,h&&this.parser.options.ecmaVersion>=15?(this.switchU=!0,this.switchV=!0,this.switchN=!0):(this.switchU=x&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=x&&this.parser.options.ecmaVersion>=9)};Xe.prototype.raise=function(i){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+i)};Xe.prototype.at=function(i,a){a===void 0&&(a=!1);var o=this.source,h=o.length;if(i>=h)return-1;var x=o.charCodeAt(i);if(!(a||this.switchU)||x<=55295||x>=57344||i+1>=h)return x;var y=o.charCodeAt(i+1);return y>=56320&&y<=57343?(x<<10)+y-56613888:x};Xe.prototype.nextIndex=function(i,a){a===void 0&&(a=!1);var o=this.source,h=o.length;if(i>=h)return h;var x=o.charCodeAt(i),y;return!(a||this.switchU)||x<=55295||x>=57344||i+1>=h||(y=o.charCodeAt(i+1))<56320||y>57343?i+1:i+2};Xe.prototype.current=function(i){return i===void 0&&(i=!1),this.at(this.pos,i)};Xe.prototype.lookahead=function(i){return i===void 0&&(i=!1),this.at(this.nextIndex(this.pos,i),i)};Xe.prototype.advance=function(i){i===void 0&&(i=!1),this.pos=this.nextIndex(this.pos,i)};Xe.prototype.eat=function(i,a){return a===void 0&&(a=!1),this.current(a)===i?(this.advance(a),!0):!1};Xe.prototype.eatChars=function(i,a){a===void 0&&(a=!1);for(var o=this.pos,h=0,x=i;h<x.length;h+=1){var y=x[h],S=this.at(o,a);if(S===-1||S!==y)return!1;o=this.nextIndex(o,a)}return this.pos=o,!0};q.validateRegExpFlags=function(e){for(var i=e.validFlags,a=e.flags,o=!1,h=!1,x=0;x<a.length;x++){var y=a.charAt(x);i.indexOf(y)===-1&&this.raise(e.start,"Invalid regular expression flag"),a.indexOf(y,x+1)>-1&&this.raise(e.start,"Duplicate regular expression flag"),y==="u"&&(o=!0),y==="v"&&(h=!0)}this.options.ecmaVersion>=15&&o&&h&&this.raise(e.start,"Invalid regular expression flag")};function vn(e){for(var i in e)return!0;return!1}q.validateRegExpPattern=function(e){this.regexp_pattern(e),!e.switchN&&this.options.ecmaVersion>=9&&vn(e.groupNames)&&(e.switchN=!0,this.regexp_pattern(e))};q.regexp_pattern=function(e){e.pos=0,e.lastIntValue=0,e.lastStringValue="",e.lastAssertionIsQuantifiable=!1,e.numCapturingParens=0,e.maxBackReference=0,e.groupNames=Object.create(null),e.backReferenceNames.length=0,e.branchID=null,this.regexp_disjunction(e),e.pos!==e.source.length&&(e.eat(41)&&e.raise("Unmatched ')'"),(e.eat(93)||e.eat(125))&&e.raise("Lone quantifier brackets")),e.maxBackReference>e.numCapturingParens&&e.raise("Invalid escape");for(var i=0,a=e.backReferenceNames;i<a.length;i+=1){var o=a[i];e.groupNames[o]||e.raise("Invalid named capture referenced")}};q.regexp_disjunction=function(e){var i=this.options.ecmaVersion>=16;for(i&&(e.branchID=new ni(e.branchID,null)),this.regexp_alternative(e);e.eat(124);)i&&(e.branchID=e.branchID.sibling()),this.regexp_alternative(e);i&&(e.branchID=e.branchID.parent),this.regexp_eatQuantifier(e,!0)&&e.raise("Nothing to repeat"),e.eat(123)&&e.raise("Lone quantifier brackets")};q.regexp_alternative=function(e){for(;e.pos<e.source.length&&this.regexp_eatTerm(e););};q.regexp_eatTerm=function(e){return this.regexp_eatAssertion(e)?(e.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(e)&&e.switchU&&e.raise("Invalid quantifier"),!0):(e.switchU?this.regexp_eatAtom(e):this.regexp_eatExtendedAtom(e))?(this.regexp_eatQuantifier(e),!0):!1};q.regexp_eatAssertion=function(e){var i=e.pos;if(e.lastAssertionIsQuantifiable=!1,e.eat(94)||e.eat(36))return!0;if(e.eat(92)){if(e.eat(66)||e.eat(98))return!0;e.pos=i}if(e.eat(40)&&e.eat(63)){var a=!1;if(this.options.ecmaVersion>=9&&(a=e.eat(60)),e.eat(61)||e.eat(33))return this.regexp_disjunction(e),e.eat(41)||e.raise("Unterminated group"),e.lastAssertionIsQuantifiable=!a,!0}return e.pos=i,!1};q.regexp_eatQuantifier=function(e,i){return i===void 0&&(i=!1),this.regexp_eatQuantifierPrefix(e,i)?(e.eat(63),!0):!1};q.regexp_eatQuantifierPrefix=function(e,i){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,i)};q.regexp_eatBracedQuantifier=function(e,i){var a=e.pos;if(e.eat(123)){var o=0,h=-1;if(this.regexp_eatDecimalDigits(e)&&(o=e.lastIntValue,e.eat(44)&&this.regexp_eatDecimalDigits(e)&&(h=e.lastIntValue),e.eat(125)))return h!==-1&&h<o&&!i&&e.raise("numbers out of order in {} quantifier"),!0;e.switchU&&!i&&e.raise("Incomplete quantifier"),e.pos=a}return!1};q.regexp_eatAtom=function(e){return this.regexp_eatPatternCharacters(e)||e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)};q.regexp_eatReverseSolidusAtomEscape=function(e){var i=e.pos;if(e.eat(92)){if(this.regexp_eatAtomEscape(e))return!0;e.pos=i}return!1};q.regexp_eatUncapturingGroup=function(e){var i=e.pos;if(e.eat(40)){if(e.eat(63)){if(this.options.ecmaVersion>=16){var a=this.regexp_eatModifiers(e),o=e.eat(45);if(a||o){for(var h=0;h<a.length;h++){var x=a.charAt(h);a.indexOf(x,h+1)>-1&&e.raise("Duplicate regular expression modifiers")}if(o){var y=this.regexp_eatModifiers(e);!a&&!y&&e.current()===58&&e.raise("Invalid regular expression modifiers");for(var S=0;S<y.length;S++){var C=y.charAt(S);(y.indexOf(C,S+1)>-1||a.indexOf(C)>-1)&&e.raise("Duplicate regular expression modifiers")}}}}if(e.eat(58)){if(this.regexp_disjunction(e),e.eat(41))return!0;e.raise("Unterminated group")}}e.pos=i}return!1};q.regexp_eatCapturingGroup=function(e){if(e.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(e):e.current()===63&&e.raise("Invalid group"),this.regexp_disjunction(e),e.eat(41))return e.numCapturingParens+=1,!0;e.raise("Unterminated group")}return!1};q.regexp_eatModifiers=function(e){for(var i="",a=0;(a=e.current())!==-1&&gn(a);)i+=$e(a),e.advance();return i};function gn(e){return e===105||e===109||e===115}q.regexp_eatExtendedAtom=function(e){return e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)||this.regexp_eatInvalidBracedQuantifier(e)||this.regexp_eatExtendedPatternCharacter(e)};q.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise("Nothing to repeat"),!1};q.regexp_eatSyntaxCharacter=function(e){var i=e.current();return nr(i)?(e.lastIntValue=i,e.advance(),!0):!1};function nr(e){return e===36||e>=40&&e<=43||e===46||e===63||e>=91&&e<=94||e>=123&&e<=125}q.regexp_eatPatternCharacters=function(e){for(var i=e.pos,a=0;(a=e.current())!==-1&&!nr(a);)e.advance();return e.pos!==i};q.regexp_eatExtendedPatternCharacter=function(e){var i=e.current();return i!==-1&&i!==36&&!(i>=40&&i<=43)&&i!==46&&i!==63&&i!==91&&i!==94&&i!==124?(e.advance(),!0):!1};q.regexp_groupSpecifier=function(e){if(e.eat(63)){this.regexp_eatGroupName(e)||e.raise("Invalid group");var i=this.options.ecmaVersion>=16,a=e.groupNames[e.lastStringValue];if(a)if(i)for(var o=0,h=a;o<h.length;o+=1){var x=h[o];x.separatedFrom(e.branchID)||e.raise("Duplicate capture group name")}else e.raise("Duplicate capture group name");i?(a||(e.groupNames[e.lastStringValue]=[])).push(e.branchID):e.groupNames[e.lastStringValue]=!0}};q.regexp_eatGroupName=function(e){if(e.lastStringValue="",e.eat(60)){if(this.regexp_eatRegExpIdentifierName(e)&&e.eat(62))return!0;e.raise("Invalid capture group name")}return!1};q.regexp_eatRegExpIdentifierName=function(e){if(e.lastStringValue="",this.regexp_eatRegExpIdentifierStart(e)){for(e.lastStringValue+=$e(e.lastIntValue);this.regexp_eatRegExpIdentifierPart(e);)e.lastStringValue+=$e(e.lastIntValue);return!0}return!1};q.regexp_eatRegExpIdentifierStart=function(e){var i=e.pos,a=this.options.ecmaVersion>=11,o=e.current(a);return e.advance(a),o===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,a)&&(o=e.lastIntValue),bn(o)?(e.lastIntValue=o,!0):(e.pos=i,!1)};function bn(e){return Ke(e,!0)||e===36||e===95}q.regexp_eatRegExpIdentifierPart=function(e){var i=e.pos,a=this.options.ecmaVersion>=11,o=e.current(a);return e.advance(a),o===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,a)&&(o=e.lastIntValue),Sn(o)?(e.lastIntValue=o,!0):(e.pos=i,!1)};function Sn(e){return Ze(e,!0)||e===36||e===95||e===8204||e===8205}q.regexp_eatAtomEscape=function(e){return this.regexp_eatBackReference(e)||this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)||e.switchN&&this.regexp_eatKGroupName(e)?!0:(e.switchU&&(e.current()===99&&e.raise("Invalid unicode escape"),e.raise("Invalid escape")),!1)};q.regexp_eatBackReference=function(e){var i=e.pos;if(this.regexp_eatDecimalEscape(e)){var a=e.lastIntValue;if(e.switchU)return a>e.maxBackReference&&(e.maxBackReference=a),!0;if(a<=e.numCapturingParens)return!0;e.pos=i}return!1};q.regexp_eatKGroupName=function(e){if(e.eat(107)){if(this.regexp_eatGroupName(e))return e.backReferenceNames.push(e.lastStringValue),!0;e.raise("Invalid named reference")}return!1};q.regexp_eatCharacterEscape=function(e){return this.regexp_eatControlEscape(e)||this.regexp_eatCControlLetter(e)||this.regexp_eatZero(e)||this.regexp_eatHexEscapeSequence(e)||this.regexp_eatRegExpUnicodeEscapeSequence(e,!1)||!e.switchU&&this.regexp_eatLegacyOctalEscapeSequence(e)||this.regexp_eatIdentityEscape(e)};q.regexp_eatCControlLetter=function(e){var i=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=i}return!1};q.regexp_eatZero=function(e){return e.current()===48&&!ci(e.lookahead())?(e.lastIntValue=0,e.advance(),!0):!1};q.regexp_eatControlEscape=function(e){var i=e.current();return i===116?(e.lastIntValue=9,e.advance(),!0):i===110?(e.lastIntValue=10,e.advance(),!0):i===118?(e.lastIntValue=11,e.advance(),!0):i===102?(e.lastIntValue=12,e.advance(),!0):i===114?(e.lastIntValue=13,e.advance(),!0):!1};q.regexp_eatControlLetter=function(e){var i=e.current();return or(i)?(e.lastIntValue=i%32,e.advance(),!0):!1};function or(e){return e>=65&&e<=90||e>=97&&e<=122}q.regexp_eatRegExpUnicodeEscapeSequence=function(e,i){i===void 0&&(i=!1);var a=e.pos,o=i||e.switchU;if(e.eat(117)){if(this.regexp_eatFixedHexDigits(e,4)){var h=e.lastIntValue;if(o&&h>=55296&&h<=56319){var x=e.pos;if(e.eat(92)&&e.eat(117)&&this.regexp_eatFixedHexDigits(e,4)){var y=e.lastIntValue;if(y>=56320&&y<=57343)return e.lastIntValue=(h-55296)*1024+(y-56320)+65536,!0}e.pos=x,e.lastIntValue=h}return!0}if(o&&e.eat(123)&&this.regexp_eatHexDigits(e)&&e.eat(125)&&Cn(e.lastIntValue))return!0;o&&e.raise("Invalid unicode escape"),e.pos=a}return!1};function Cn(e){return e>=0&&e<=1114111}q.regexp_eatIdentityEscape=function(e){if(e.switchU)return this.regexp_eatSyntaxCharacter(e)?!0:e.eat(47)?(e.lastIntValue=47,!0):!1;var i=e.current();return i!==99&&(!e.switchN||i!==107)?(e.lastIntValue=i,e.advance(),!0):!1};q.regexp_eatDecimalEscape=function(e){e.lastIntValue=0;var i=e.current();if(i>=49&&i<=57){do e.lastIntValue=10*e.lastIntValue+(i-48),e.advance();while((i=e.current())>=48&&i<=57);return!0}return!1};var ur=0,et=1,qe=2;q.regexp_eatCharacterClassEscape=function(e){var i=e.current();if(wn(i))return e.lastIntValue=-1,e.advance(),et;var a=!1;if(e.switchU&&this.options.ecmaVersion>=9&&((a=i===80)||i===112)){e.lastIntValue=-1,e.advance();var o;if(e.eat(123)&&(o=this.regexp_eatUnicodePropertyValueExpression(e))&&e.eat(125))return a&&o===qe&&e.raise("Invalid property name"),o;e.raise("Invalid property name")}return ur};function wn(e){return e===100||e===68||e===115||e===83||e===119||e===87}q.regexp_eatUnicodePropertyValueExpression=function(e){var i=e.pos;if(this.regexp_eatUnicodePropertyName(e)&&e.eat(61)){var a=e.lastStringValue;if(this.regexp_eatUnicodePropertyValue(e)){var o=e.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(e,a,o),et}}if(e.pos=i,this.regexp_eatLoneUnicodePropertyNameOrValue(e)){var h=e.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(e,h)}return ur};q.regexp_validateUnicodePropertyNameAndValue=function(e,i,a){St(e.unicodeProperties.nonBinary,i)||e.raise("Invalid property name"),e.unicodeProperties.nonBinary[i].test(a)||e.raise("Invalid property value")};q.regexp_validateUnicodePropertyNameOrValue=function(e,i){if(e.unicodeProperties.binary.test(i))return et;if(e.switchV&&e.unicodeProperties.binaryOfStrings.test(i))return qe;e.raise("Invalid property name")};q.regexp_eatUnicodePropertyName=function(e){var i=0;for(e.lastStringValue="";hr(i=e.current());)e.lastStringValue+=$e(i),e.advance();return e.lastStringValue!==""};function hr(e){return or(e)||e===95}q.regexp_eatUnicodePropertyValue=function(e){var i=0;for(e.lastStringValue="";kn(i=e.current());)e.lastStringValue+=$e(i),e.advance();return e.lastStringValue!==""};function kn(e){return hr(e)||ci(e)}q.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)};q.regexp_eatCharacterClass=function(e){if(e.eat(91)){var i=e.eat(94),a=this.regexp_classContents(e);return e.eat(93)||e.raise("Unterminated character class"),i&&a===qe&&e.raise("Negated character class may contain strings"),!0}return!1};q.regexp_classContents=function(e){return e.current()===93?et:e.switchV?this.regexp_classSetExpression(e):(this.regexp_nonEmptyClassRanges(e),et)};q.regexp_nonEmptyClassRanges=function(e){for(;this.regexp_eatClassAtom(e);){var i=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassAtom(e)){var a=e.lastIntValue;e.switchU&&(i===-1||a===-1)&&e.raise("Invalid character class"),i!==-1&&a!==-1&&i>a&&e.raise("Range out of order in character class")}}};q.regexp_eatClassAtom=function(e){var i=e.pos;if(e.eat(92)){if(this.regexp_eatClassEscape(e))return!0;if(e.switchU){var a=e.current();(a===99||lr(a))&&e.raise("Invalid class escape"),e.raise("Invalid escape")}e.pos=i}var o=e.current();return o!==93?(e.lastIntValue=o,e.advance(),!0):!1};q.regexp_eatClassEscape=function(e){var i=e.pos;if(e.eat(98))return e.lastIntValue=8,!0;if(e.switchU&&e.eat(45))return e.lastIntValue=45,!0;if(!e.switchU&&e.eat(99)){if(this.regexp_eatClassControlLetter(e))return!0;e.pos=i}return this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)};q.regexp_classSetExpression=function(e){var i=et,a;if(!this.regexp_eatClassSetRange(e))if(a=this.regexp_eatClassSetOperand(e)){a===qe&&(i=qe);for(var o=e.pos;e.eatChars([38,38]);){if(e.current()!==38&&(a=this.regexp_eatClassSetOperand(e))){a!==qe&&(i=et);continue}e.raise("Invalid character in character class")}if(o!==e.pos)return i;for(;e.eatChars([45,45]);)this.regexp_eatClassSetOperand(e)||e.raise("Invalid character in character class");if(o!==e.pos)return i}else e.raise("Invalid character in character class");for(;;)if(!this.regexp_eatClassSetRange(e)){if(a=this.regexp_eatClassSetOperand(e),!a)return i;a===qe&&(i=qe)}};q.regexp_eatClassSetRange=function(e){var i=e.pos;if(this.regexp_eatClassSetCharacter(e)){var a=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassSetCharacter(e)){var o=e.lastIntValue;return a!==-1&&o!==-1&&a>o&&e.raise("Range out of order in character class"),!0}e.pos=i}return!1};q.regexp_eatClassSetOperand=function(e){return this.regexp_eatClassSetCharacter(e)?et:this.regexp_eatClassStringDisjunction(e)||this.regexp_eatNestedClass(e)};q.regexp_eatNestedClass=function(e){var i=e.pos;if(e.eat(91)){var a=e.eat(94),o=this.regexp_classContents(e);if(e.eat(93))return a&&o===qe&&e.raise("Negated character class may contain strings"),o;e.pos=i}if(e.eat(92)){var h=this.regexp_eatCharacterClassEscape(e);if(h)return h;e.pos=i}return null};q.regexp_eatClassStringDisjunction=function(e){var i=e.pos;if(e.eatChars([92,113])){if(e.eat(123)){var a=this.regexp_classStringDisjunctionContents(e);if(e.eat(125))return a}else e.raise("Invalid escape");e.pos=i}return null};q.regexp_classStringDisjunctionContents=function(e){for(var i=this.regexp_classString(e);e.eat(124);)this.regexp_classString(e)===qe&&(i=qe);return i};q.regexp_classString=function(e){for(var i=0;this.regexp_eatClassSetCharacter(e);)i++;return i===1?et:qe};q.regexp_eatClassSetCharacter=function(e){var i=e.pos;if(e.eat(92))return this.regexp_eatCharacterEscape(e)||this.regexp_eatClassSetReservedPunctuator(e)?!0:e.eat(98)?(e.lastIntValue=8,!0):(e.pos=i,!1);var a=e.current();return a<0||a===e.lookahead()&&En(a)||An(a)?!1:(e.advance(),e.lastIntValue=a,!0)};function En(e){return e===33||e>=35&&e<=38||e>=42&&e<=44||e===46||e>=58&&e<=64||e===94||e===96||e===126}function An(e){return e===40||e===41||e===45||e===47||e>=91&&e<=93||e>=123&&e<=125}q.regexp_eatClassSetReservedPunctuator=function(e){var i=e.current();return _n(i)?(e.lastIntValue=i,e.advance(),!0):!1};function _n(e){return e===33||e===35||e===37||e===38||e===44||e===45||e>=58&&e<=62||e===64||e===96||e===126}q.regexp_eatClassControlLetter=function(e){var i=e.current();return ci(i)||i===95?(e.lastIntValue=i%32,e.advance(),!0):!1};q.regexp_eatHexEscapeSequence=function(e){var i=e.pos;if(e.eat(120)){if(this.regexp_eatFixedHexDigits(e,2))return!0;e.switchU&&e.raise("Invalid escape"),e.pos=i}return!1};q.regexp_eatDecimalDigits=function(e){var i=e.pos,a=0;for(e.lastIntValue=0;ci(a=e.current());)e.lastIntValue=10*e.lastIntValue+(a-48),e.advance();return e.pos!==i};function ci(e){return e>=48&&e<=57}q.regexp_eatHexDigits=function(e){var i=e.pos,a=0;for(e.lastIntValue=0;cr(a=e.current());)e.lastIntValue=16*e.lastIntValue+pr(a),e.advance();return e.pos!==i};function cr(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function pr(e){return e>=65&&e<=70?10+(e-65):e>=97&&e<=102?10+(e-97):e-48}q.regexp_eatLegacyOctalEscapeSequence=function(e){if(this.regexp_eatOctalDigit(e)){var i=e.lastIntValue;if(this.regexp_eatOctalDigit(e)){var a=e.lastIntValue;i<=3&&this.regexp_eatOctalDigit(e)?e.lastIntValue=i*64+a*8+e.lastIntValue:e.lastIntValue=i*8+a}else e.lastIntValue=i;return!0}return!1};q.regexp_eatOctalDigit=function(e){var i=e.current();return lr(i)?(e.lastIntValue=i-48,e.advance(),!0):(e.lastIntValue=0,!1)};function lr(e){return e>=48&&e<=55}q.regexp_eatFixedHexDigits=function(e,i){var a=e.pos;e.lastIntValue=0;for(var o=0;o<i;++o){var h=e.current();if(!cr(h))return e.pos=a,!1;e.lastIntValue=16*e.lastIntValue+pr(h),e.advance()}return!0};var pi=function(i){this.type=i.type,this.value=i.value,this.start=i.start,this.end=i.end,i.options.locations&&(this.loc=new Ot(i,i.startLoc,i.endLoc)),i.options.ranges&&(this.range=[i.start,i.end])},se=de.prototype;se.next=function(e){!e&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword),this.options.onToken&&this.options.onToken(new pi(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()};se.getToken=function(){return this.next(),new pi(this)};typeof Symbol<"u"&&(se[Symbol.iterator]=function(){var e=this;return{next:function(){var i=e.getToken();return{done:i.type===f.eof,value:i}}}});se.nextToken=function(){var e=this.curContext();if((!e||!e.preserveSpace)&&this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length)return this.finishToken(f.eof);if(e.override)return e.override(this);this.readToken(this.fullCharCodeAtPos())};se.readToken=function(e){return Ke(e,this.options.ecmaVersion>=6)||e===92?this.readWord():this.getTokenFromCode(e)};se.fullCharCodeAt=function(e){var i=this.input.charCodeAt(e);if(i<=55295||i>=56320)return i;var a=this.input.charCodeAt(e+1);return a<=56319||a>=57344?i:(i<<10)+a-56613888};se.fullCharCodeAtPos=function(){return this.fullCharCodeAt(this.pos)};se.skipBlockComment=function(){var e=this.options.onComment&&this.curPosition(),i=this.pos,a=this.input.indexOf("*/",this.pos+=2);if(a===-1&&this.raise(this.pos-2,"Unterminated comment"),this.pos=a+2,this.options.locations)for(var o=void 0,h=i;(o=Ms(this.input,h,this.pos))>-1;)++this.curLine,h=this.lineStart=o;this.options.onComment&&this.options.onComment(!0,this.input.slice(i+2,a),i,this.pos,e,this.curPosition())};se.skipLineComment=function(e){for(var i=this.pos,a=this.options.onComment&&this.curPosition(),o=this.input.charCodeAt(this.pos+=e);this.pos<this.input.length&&!pt(o);)o=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(i+e,this.pos),i,this.pos,a,this.curPosition())};se.skipSpace=function(){e:for(;this.pos<this.input.length;){var e=this.input.charCodeAt(this.pos);switch(e){case 32:case 160:++this.pos;break;case 13:this.input.charCodeAt(this.pos+1)===10&&++this.pos;case 10:case 8232:case 8233:++this.pos,this.options.locations&&(++this.curLine,this.lineStart=this.pos);break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break e}break;default:if(e>8&&e<14||e>=5760&&Li.test(String.fromCharCode(e)))++this.pos;else break e}}};se.finishToken=function(e,i){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var a=this.type;this.type=e,this.value=i,this.updateContext(a)};se.readToken_dot=function(){var e=this.input.charCodeAt(this.pos+1);if(e>=48&&e<=57)return this.readNumber(!0);var i=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&e===46&&i===46?(this.pos+=3,this.finishToken(f.ellipsis)):(++this.pos,this.finishToken(f.dot))};se.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):e===61?this.finishOp(f.assign,2):this.finishOp(f.slash,1)};se.readToken_mult_modulo_exp=function(e){var i=this.input.charCodeAt(this.pos+1),a=1,o=e===42?f.star:f.modulo;return this.options.ecmaVersion>=7&&e===42&&i===42&&(++a,o=f.starstar,i=this.input.charCodeAt(this.pos+2)),i===61?this.finishOp(f.assign,a+1):this.finishOp(o,a)};se.readToken_pipe_amp=function(e){var i=this.input.charCodeAt(this.pos+1);if(i===e){if(this.options.ecmaVersion>=12){var a=this.input.charCodeAt(this.pos+2);if(a===61)return this.finishOp(f.assign,3)}return this.finishOp(e===124?f.logicalOR:f.logicalAND,2)}return i===61?this.finishOp(f.assign,2):this.finishOp(e===124?f.bitwiseOR:f.bitwiseAND,1)};se.readToken_caret=function(){var e=this.input.charCodeAt(this.pos+1);return e===61?this.finishOp(f.assign,2):this.finishOp(f.bitwiseXOR,1)};se.readToken_plus_min=function(e){var i=this.input.charCodeAt(this.pos+1);return i===e?i===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||_e.test(this.input.slice(this.lastTokEnd,this.pos)))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(f.incDec,2):i===61?this.finishOp(f.assign,2):this.finishOp(f.plusMin,1)};se.readToken_lt_gt=function(e){var i=this.input.charCodeAt(this.pos+1),a=1;return i===e?(a=e===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+a)===61?this.finishOp(f.assign,a+1):this.finishOp(f.bitShift,a)):i===33&&e===60&&!this.inModule&&this.input.charCodeAt(this.pos+2)===45&&this.input.charCodeAt(this.pos+3)===45?(this.skipLineComment(4),this.skipSpace(),this.nextToken()):(i===61&&(a=2),this.finishOp(f.relational,a))};se.readToken_eq_excl=function(e){var i=this.input.charCodeAt(this.pos+1);return i===61?this.finishOp(f.equality,this.input.charCodeAt(this.pos+2)===61?3:2):e===61&&i===62&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(f.arrow)):this.finishOp(e===61?f.eq:f.prefix,1)};se.readToken_question=function(){var e=this.options.ecmaVersion;if(e>=11){var i=this.input.charCodeAt(this.pos+1);if(i===46){var a=this.input.charCodeAt(this.pos+2);if(a<48||a>57)return this.finishOp(f.questionDot,2)}if(i===63){if(e>=12){var o=this.input.charCodeAt(this.pos+2);if(o===61)return this.finishOp(f.assign,3)}return this.finishOp(f.coalesce,2)}}return this.finishOp(f.question,1)};se.readToken_numberSign=function(){var e=this.options.ecmaVersion,i=35;if(e>=13&&(++this.pos,i=this.fullCharCodeAtPos(),Ke(i,!0)||i===92))return this.finishToken(f.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+$e(i)+"'")};se.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(f.parenL);case 41:return++this.pos,this.finishToken(f.parenR);case 59:return++this.pos,this.finishToken(f.semi);case 44:return++this.pos,this.finishToken(f.comma);case 91:return++this.pos,this.finishToken(f.bracketL);case 93:return++this.pos,this.finishToken(f.bracketR);case 123:return++this.pos,this.finishToken(f.braceL);case 125:return++this.pos,this.finishToken(f.braceR);case 58:return++this.pos,this.finishToken(f.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(f.backQuote);case 48:var i=this.input.charCodeAt(this.pos+1);if(i===120||i===88)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(i===111||i===79)return this.readRadixNumber(8);if(i===98||i===66)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(e);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(e);case 124:case 38:return this.readToken_pipe_amp(e);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(e);case 60:case 62:return this.readToken_lt_gt(e);case 61:case 33:return this.readToken_eq_excl(e);case 63:return this.readToken_question();case 126:return this.finishOp(f.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+$e(e)+"'")};se.finishOp=function(e,i){var a=this.input.slice(this.pos,this.pos+i);return this.pos+=i,this.finishToken(e,a)};se.readRegexp=function(){for(var e,i,a=this.pos;;){this.pos>=this.input.length&&this.raise(a,"Unterminated regular expression");var o=this.input.charAt(this.pos);if(_e.test(o)&&this.raise(a,"Unterminated regular expression"),e)e=!1;else{if(o==="[")i=!0;else if(o==="]"&&i)i=!1;else if(o==="/"&&!i)break;e=o==="\\"}++this.pos}var h=this.input.slice(a,this.pos);++this.pos;var x=this.pos,y=this.readWord1();this.containsEsc&&this.unexpected(x);var S=this.regexpState||(this.regexpState=new Xe(this));S.reset(a,h,y),this.validateRegExpFlags(S),this.validateRegExpPattern(S);var C=null;try{C=new RegExp(h,y)}catch{}return this.finishToken(f.regexp,{pattern:h,flags:y,value:C})};se.readInt=function(e,i,a){for(var o=this.options.ecmaVersion>=12&&i===void 0,h=a&&this.input.charCodeAt(this.pos)===48,x=this.pos,y=0,S=0,C=0,l=i??1/0;C<l;++C,++this.pos){var M=this.input.charCodeAt(this.pos),D=void 0;if(o&&M===95){h&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),S===95&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),C===0&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),S=M;continue}if(M>=97?D=M-97+10:M>=65?D=M-65+10:M>=48&&M<=57?D=M-48:D=1/0,D>=e)break;S=M,y=y*e+D}return o&&S===95&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===x||i!=null&&this.pos-x!==i?null:y};function Tn(e,i){return i?parseInt(e,8):parseFloat(e.replace(/_/g,""))}function fr(e){return typeof BigInt!="function"?null:BigInt(e.replace(/_/g,""))}se.readRadixNumber=function(e){var i=this.pos;this.pos+=2;var a=this.readInt(e);return a==null&&this.raise(this.start+2,"Expected number in radix "+e),this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110?(a=fr(this.input.slice(i,this.pos)),++this.pos):Ke(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(f.num,a)};se.readNumber=function(e){var i=this.pos;!e&&this.readInt(10,void 0,!0)===null&&this.raise(i,"Invalid number");var a=this.pos-i>=2&&this.input.charCodeAt(i)===48;a&&this.strict&&this.raise(i,"Invalid number");var o=this.input.charCodeAt(this.pos);if(!a&&!e&&this.options.ecmaVersion>=11&&o===110){var h=fr(this.input.slice(i,this.pos));return++this.pos,Ke(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(f.num,h)}a&&/[89]/.test(this.input.slice(i,this.pos))&&(a=!1),o===46&&!a&&(++this.pos,this.readInt(10),o=this.input.charCodeAt(this.pos)),(o===69||o===101)&&!a&&(o=this.input.charCodeAt(++this.pos),(o===43||o===45)&&++this.pos,this.readInt(10)===null&&this.raise(i,"Invalid number")),Ke(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var x=Tn(this.input.slice(i,this.pos),a);return this.finishToken(f.num,x)};se.readCodePoint=function(){var e=this.input.charCodeAt(this.pos),i;if(e===123){this.options.ecmaVersion<6&&this.unexpected();var a=++this.pos;i=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,i>1114111&&this.invalidStringToken(a,"Code point out of bounds")}else i=this.readHexChar(4);return i};se.readString=function(e){for(var i="",a=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var o=this.input.charCodeAt(this.pos);if(o===e)break;o===92?(i+=this.input.slice(a,this.pos),i+=this.readEscapedChar(!1),a=this.pos):o===8232||o===8233?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(pt(o)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return i+=this.input.slice(a,this.pos++),this.finishToken(f.string,i)};var dr={};se.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e===dr)this.readInvalidTemplateToken();else throw e}this.inTemplateElement=!1};se.invalidStringToken=function(e,i){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw dr;this.raise(e,i)};se.readTmplToken=function(){for(var e="",i=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var a=this.input.charCodeAt(this.pos);if(a===96||a===36&&this.input.charCodeAt(this.pos+1)===123)return this.pos===this.start&&(this.type===f.template||this.type===f.invalidTemplate)?a===36?(this.pos+=2,this.finishToken(f.dollarBraceL)):(++this.pos,this.finishToken(f.backQuote)):(e+=this.input.slice(i,this.pos),this.finishToken(f.template,e));if(a===92)e+=this.input.slice(i,this.pos),e+=this.readEscapedChar(!0),i=this.pos;else if(pt(a)){switch(e+=this.input.slice(i,this.pos),++this.pos,a){case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:e+=`
|
|
16
|
-
`;break;default:e+=String.fromCharCode(a);break}this.options.locations&&(++this.curLine,this.lineStart=this.pos),i=this.pos}else++this.pos}};se.readInvalidTemplateToken=function(){for(;this.pos<this.input.length;this.pos++)switch(this.input[this.pos]){case"\\":++this.pos;break;case"$":if(this.input[this.pos+1]!=="{")break;case"`":return this.finishToken(f.invalidTemplate,this.input.slice(this.start,this.pos));case"\r":this.input[this.pos+1]===`
|
|
11
|
+
`):F=String.fromCharCode(E),this.options.locations&&(++this.curLine,this.lineStart=this.pos),F}jsx_readString(w){let E="",F=++this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");let V=this.input.charCodeAt(this.pos);if(V===w)break;V===38?(E+=this.input.slice(F,this.pos),E+=this.jsx_readEntity(),F=this.pos):T(V)?(E+=this.input.slice(F,this.pos),E+=this.jsx_readNewLine(!1),F=this.pos):++this.pos}return E+=this.input.slice(F,this.pos++),this.finishToken(o.string,E)}jsx_readEntity(){let w="",E=0,F,V=this.input[this.pos];V!=="&"&&this.raise(this.pos,"Entity must start with an ampersand");let G=++this.pos;for(;this.pos<this.input.length&&E++<10;){if(V=this.input[this.pos++],V===";"){w[0]==="#"?w[1]==="x"?(w=w.substr(2),Tl.test(w)&&(F=String.fromCharCode(parseInt(w,16)))):(w=w.substr(1),Pl.test(w)&&(F=String.fromCharCode(parseInt(w,10)))):F=kl[w];break}w+=V}return F||(this.pos=G,"&")}jsx_readWord(){let w,E=this.pos;do w=this.input.charCodeAt(++this.pos);while(D(w)||w===45);return this.finishToken(h.jsxName,this.input.slice(E,this.pos))}jsx_parseIdentifier(){let w=this.startNode();return this.type===h.jsxName?w.name=this.value:this.type.keyword?w.name=this.type.keyword:this.unexpected(),this.next(),this.finishNode(w,"JSXIdentifier")}jsx_parseNamespacedName(){let w=this.start,E=this.startLoc,F=this.jsx_parseIdentifier();if(!e.allowNamespaces||!this.eat(o.colon))return F;var V=this.startNodeAt(w,E);return V.namespace=F,V.name=this.jsx_parseIdentifier(),this.finishNode(V,"JSXNamespacedName")}jsx_parseElementName(){if(this.type===h.jsxTagEnd)return"";let w=this.start,E=this.startLoc,F=this.jsx_parseNamespacedName();for(this.type===o.dot&&F.type==="JSXNamespacedName"&&!e.allowNamespacedObjects&&this.unexpected();this.eat(o.dot);){let V=this.startNodeAt(w,E);V.object=F,V.property=this.jsx_parseIdentifier(),F=this.finishNode(V,"JSXMemberExpression")}return F}jsx_parseAttributeValue(){switch(this.type){case o.braceL:let w=this.jsx_parseExpressionContainer();return w.expression.type==="JSXEmptyExpression"&&this.raise(w.start,"JSX attributes must only be assigned a non-empty expression"),w;case h.jsxTagStart:case o.string:return this.parseExprAtom();default:this.raise(this.start,"JSX value should be either an expression or a quoted JSX text")}}jsx_parseEmptyExpression(){let w=this.startNodeAt(this.lastTokEnd,this.lastTokEndLoc);return this.finishNodeAt(w,"JSXEmptyExpression",this.start,this.startLoc)}jsx_parseExpressionContainer(){let w=this.startNode();return this.next(),w.expression=this.type===o.braceR?this.jsx_parseEmptyExpression():this.parseExpression(),this.expect(o.braceR),this.finishNode(w,"JSXExpressionContainer")}jsx_parseAttribute(){let w=this.startNode();return this.eat(o.braceL)?(this.expect(o.ellipsis),w.argument=this.parseMaybeAssign(),this.expect(o.braceR),this.finishNode(w,"JSXSpreadAttribute")):(w.name=this.jsx_parseNamespacedName(),w.value=this.eat(o.eq)?this.jsx_parseAttributeValue():null,this.finishNode(w,"JSXAttribute"))}jsx_parseOpeningElementAt(w,E){let F=this.startNodeAt(w,E);F.attributes=[];let V=this.jsx_parseElementName();for(V&&(F.name=V);this.type!==o.slash&&this.type!==h.jsxTagEnd;)F.attributes.push(this.jsx_parseAttribute());return F.selfClosing=this.eat(o.slash),this.expect(h.jsxTagEnd),this.finishNode(F,V?"JSXOpeningElement":"JSXOpeningFragment")}jsx_parseClosingElementAt(w,E){let F=this.startNodeAt(w,E),V=this.jsx_parseElementName();return V&&(F.name=V),this.expect(h.jsxTagEnd),this.finishNode(F,V?"JSXClosingElement":"JSXClosingFragment")}jsx_parseElementAt(w,E){let F=this.startNodeAt(w,E),V=[],G=this.jsx_parseOpeningElementAt(w,E),Q=null;if(!G.selfClosing){e:for(;;)switch(this.type){case h.jsxTagStart:if(w=this.start,E=this.startLoc,this.next(),this.eat(o.slash)){Q=this.jsx_parseClosingElementAt(w,E);break e}V.push(this.jsx_parseElementAt(w,E));break;case h.jsxText:V.push(this.parseExprAtom());break;case o.braceL:V.push(this.jsx_parseExpressionContainer());break;default:this.unexpected()}ci(Q.name)!==ci(G.name)&&this.raise(Q.start,"Expected corresponding JSX closing tag for <"+ci(G.name)+">")}let $=G.name?"Element":"Fragment";return F["opening"+$]=G,F["closing"+$]=Q,F.children=V,this.type===o.relational&&this.value==="<"&&this.raise(this.start,"Adjacent JSX elements must be wrapped in an enclosing tag"),this.finishNode(F,"JSX"+$)}jsx_parseText(){let w=this.parseLiteral(this.value);return w.type="JSXText",w}jsx_parseElement(){let w=this.start,E=this.startLoc;return this.next(),this.jsx_parseElementAt(w,E)}parseExprAtom(w){return this.type===h.jsxText?this.jsx_parseText():this.type===h.jsxTagStart?this.jsx_parseElement():super.parseExprAtom(w)}readToken(w){let E=this.curContext();if(E===l)return this.jsx_readToken();if(E===g||E===v){if(_(w))return this.jsx_readWord();if(w==62)return++this.pos,this.finishToken(h.jsxTagEnd);if((w===34||w===39)&&E==g)return this.jsx_readString(w)}return w===60&&this.exprAllowed&&this.input.charCodeAt(this.pos+1)!==33?(++this.pos,this.finishToken(h.jsxTagStart)):super.readToken(w)}updateContext(w){if(this.type==o.braceL){var E=this.curContext();E==g?this.context.push(p.b_expr):E==l?this.context.push(p.b_tmpl):super.updateContext(w),this.exprAllowed=!0}else if(this.type===o.slash&&w===h.jsxTagStart)this.context.length-=2,this.context.push(v),this.exprAllowed=!1;else return super.updateContext(w)}}}});var sp={};Er(sp,{default:()=>No,enableReactComponentJump:()=>Ir,esbuildPlugin:()=>Mo,locateComponentSource:()=>ns,rollupPlugin:()=>Oo,rspackPlugin:()=>Vo,vitePlugin:()=>Lo,webpackPlugin:()=>Ro});module.exports=xu(sp);var Ct="__componentSourceLoc",kr="$componentSourceLoc",Ci="react-code-locator.jsxSourceRegistry";function rs(e){return e.replace(/\\/g,"/")}function yu(e){return e.replace(/\/+$/,"")}function Tr(e){return rs(e).split("/").filter(Boolean)}function gu(e,t){let s=Tr(e),r=Tr(t),o=0;for(;o<s.length&&o<r.length&&s[o]===r[o];)o+=1;let h=new Array(Math.max(0,s.length-o)).fill(".."),p=r.slice(o),g=[...h,...p];return g.length>0?g.join("/"):"."}function vu(e){return e?yu(rs(e)):""}function wi(e){return e?e.match(/^(.*):\d+:\d+$/)?.[1]??null:null}function bu(e,t){if(!e)return!1;let s=vu(t),r=rs(e);return s?r.startsWith(`${s}/`)||r===s?!0:!gu(s,r).startsWith("../"):!r.startsWith("../")&&!r.startsWith("/")&&!/^[A-Za-z]:\//.test(r)}function Rt(e,t){let s=wi(e);return bu(s??void 0,t)}function Su(e,t){return t==="none"?!0:t==="alt"?e.altKey:t==="meta"?e.metaKey:t==="ctrl"?e.ctrlKey:e.shiftKey}function Cu(e){return Object.keys(e).find(t=>t.startsWith("__reactFiber$")||t.startsWith("__reactInternalInstance$"))}function wu(e){let t=e;for(;t;){let s=Cu(t);if(s)return t[s];t=t.parentElement}return null}function _i(e){if(!e)return null;if(typeof e=="function"){let r=e[Ct];return typeof r=="string"?r:null}if(typeof e!="object")return null;let t=e,s=t[Ct]??t.type?.[Ct]??t.render?.[Ct];return typeof s=="string"?s:null}function Pr(e){if(e&&typeof e=="object"){let s=globalThis[Symbol.for(Ci)];if(s instanceof WeakMap){let r=s.get(e);if(typeof r=="string")return r}}let t=e?.[kr];return typeof t=="string"?t:null}function _u(e){let t=e;for(;t;){let s=_i(t.type)??_i(t.elementType);if(s)return s;t=t.return??null}return null}function Eu(e){let t=e?._debugSource;return t?.fileName&&typeof t.lineNumber=="number"?`${t.fileName.replace(/\\/g,"/")}:${t.lineNumber}:${t.columnNumber??1}`:null}function Au(e){let t=e,s=[],r=[];for(;t;){let _=Pr(t.pendingProps)??Pr(t.memoizedProps)??Eu(t);if(_){let w=wi(_);w&&!s.some(E=>E.source===_)&&s.push({source:_,file:w})}let D=_i(t.type)??_i(t.elementType);if(D){let w=wi(D);w&&!r.some(E=>E.source===D)&&r.push({source:D,file:w})}t=t.return??null}let o=s[0]?.source??null,h=r.find(_=>Rt(_.source))?.file,p=null;if(h){let _=s.find(D=>D.file===h);if(_)p=_.source;else{let D=r.find(w=>w.file===h);D&&(p=D.source)}}let g=r.find(_=>!Rt(_.source))?.source??null,v=s.find(_=>!Rt(_.source))?.source??null,l=s.find(_=>Rt(_.source))?.source??null,T=p??l??r.find(_=>Rt(_.source))?.source??null;return{direct:o??T,screen:T,implementation:g??v??T}}function ku(e){return e==="direct"?"Direct JSX":e==="screen"?"Screen source":"Implementation source"}function Tu(e){if(typeof document>"u")return null;let t=document.createElement("div"),s=null,r="screen",o=null;t.setAttribute("data-react-code-locator","true"),Object.assign(t.style,{position:"fixed",right:"12px",bottom:"12px",zIndex:"2147483647",padding:"8px 10px",borderRadius:"8px",background:"rgba(17, 24, 39, 0.92)",color:"#fff",fontSize:"12px",lineHeight:"1.4",fontFamily:"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace",boxShadow:"0 8px 30px rgba(0, 0, 0, 0.25)",pointerEvents:"auto",cursor:"pointer",maxWidth:"min(70vw, 720px)",wordBreak:"break-all",opacity:"0",transition:"opacity 120ms ease"});let h=(g,v)=>{t.textContent=g,t.style.background=v==="success"?"rgba(6, 95, 70, 0.92)":v==="error"?"rgba(153, 27, 27, 0.94)":"rgba(17, 24, 39, 0.92)",t.style.opacity="1",t.style.pointerEvents="auto",o&&clearTimeout(o),o=setTimeout(()=>{t.style.opacity="0",t.style.pointerEvents="none"},2e3)};t.addEventListener("click",async()=>{if(s)try{await navigator.clipboard.writeText(s),h("[react-code-locator] copied","success")}catch{h("[react-code-locator] copy failed","error")}}),h(`[react-code-locator] enabled (${e}+click, alt+1/2/3 to switch mode)`,"idle");let p=()=>{!t.isConnected&&document.body&&document.body.appendChild(t)};return document.body?p():document.addEventListener("DOMContentLoaded",p,{once:!0}),{setStatus(g,v="idle"){h(g,v)},setCopyValue(g){s=g},setMode(g){r=g,h(`[react-code-locator] ${ku(g)}`,"idle")},remove(){o&&clearTimeout(o),t.remove()}}}function ns(e,t="screen"){let s=e instanceof Element?e:e instanceof Node?e.parentElement:null,r=wu(s);if(!r)return null;let o=Au(r),h=o[t]??o.screen??o.direct??o.implementation;if(h)return{source:h,mode:t};let p=_u(r);return p?{source:p,mode:t}:null}function Ir(e={}){if(process.env.NODE_ENV!=="development")return;let t=Tu(e.triggerKey??"shift"),s="screen",{triggerKey:r="shift",onLocate:o=v=>{console.log(`[react-code-locator] ${v.source}`),t?.setCopyValue(v.source),t?.setStatus(`[react-code-locator] ${v.source}`,"success")},onError:h=v=>{console.error("[react-code-locator]",v);let l=v instanceof Error?v.message:String(v);t?.setCopyValue(null),t?.setStatus(`[react-code-locator] ${l}`,"error")}}=e;console.log("[react-code-locator] enabled",{triggerKey:r});let p=v=>{if(v.altKey){if(v.code==="Digit1"){s="direct",t?.setMode(s),v.preventDefault();return}if(v.code==="Digit2"){s="screen",t?.setMode(s),v.preventDefault();return}v.code==="Digit3"&&(s="implementation",t?.setMode(s),v.preventDefault())}},g=v=>{if(console.log("[react-code-locator] click",{triggerKey:r,shiftKey:v.shiftKey,altKey:v.altKey,ctrlKey:v.ctrlKey,metaKey:v.metaKey,target:v.target}),!Su(v,r))return;let l=ns(v.target,s);if(!l){h(new Error("No React component source metadata found for clicked element."));return}v.preventDefault(),v.stopPropagation(),o(l)};return document.addEventListener("click",g,!0),document.addEventListener("keydown",p,!0),()=>{document.removeEventListener("click",g,!0),document.removeEventListener("keydown",p,!0),t?.remove()}}var rn=require("path"),nn=mt(Zr(),1);function Ke(e){return e=e||[],Array.isArray(e)?e:[e]}var rc=/\\/g;function ki(e){return e.replace(rc,"/")}var nc=/^(?:\/|(?:[A-Z]:)?[/\\|])/i;function ac(e){return nc.test(e)}function oc(e,t){return e.startsWith("**")||ac(e)?ki(e):ki((0,rn.resolve)(t,e))}function en(e){if(e instanceof RegExp)return s=>{let r=ki(s),o=e.test(r);return e.lastIndex=0,o};let t=(0,nn.default)(oc(e,process.cwd()),{dot:!0});return s=>t(ki(s))}function tn(e){return e instanceof RegExp?t=>{let s=e.test(t);return e.lastIndex=0,s}:t=>t.includes(e)}function an(e,t){if(!(!e&&!t))return s=>e?.some(r=>r(s))?!1:t?.some(r=>r(s))?!0:!(t&&t.length>0)}function on(e){return typeof e=="string"||e instanceof RegExp?{include:[e]}:Array.isArray(e)?{include:e}:{exclude:e.exclude?Ke(e.exclude):void 0,include:e.include?Ke(e.include):void 0}}function un(e){if(!e)return;let{exclude:t,include:s}=on(e),r=t?.map(en),o=s?.map(en);return an(r,o)}function uc(e){if(!e)return;let{exclude:t,include:s}=on(e),r=t?.map(tn),o=s?.map(tn);return an(r,o)}function cc(e){let t=un(e);return t?s=>!!t(s):void 0}function hc(e,t){if(!e&&!t)return;let s=un(e),r=uc(t);return(o,h)=>{let p=!0;return s&&(p&&=s(o)),p?(r&&(p&&=r(h)),p):!1}}function Te(e,t){let s,r;if(typeof t=="function")s=t;else{s=t.handler;let o=t.filter;e==="resolveId"||e==="load"?r=cc(o?.id):r=hc(o?.id,o?.code)}return{handler:s,filter:r||(()=>!0)}}var sn;function xt(e,t={}){if(!sn)throw new Error("Parse implementation is not set. Please call setParseImpl first.");return sn(e,t)}var Ti=require("path");function ms(e,t,s){if(e.resource==null)return[];let r=Mt(e.resource+(e.resourceQuery||""));if(t.transformInclude&&!t.transformInclude(r))return[];let{filter:o}=Te("load",t.transform);return o(r)?[{loader:s,options:{plugin:t},ident:t.name}]:[]}function Mt(e){return(0,Ti.isAbsolute)(e)?(0,Ti.normalize)(e):e}var cn=require("path"),hn=require("buffer");function Pi(e,t,s,r){return{getNativeBuildContext(){return{framework:"rspack",compiler:e,compilation:t,loaderContext:s,inputSourceMap:r}},addWatchFile(o){let h=(0,cn.resolve)(process.cwd(),o);t.fileDependencies.add(h),s?.addDependency(h)},getWatchFiles(){return Array.from(t.fileDependencies)},parse:xt,emitFile(o){let h=o.fileName||o.name;if(o.source&&h){let{sources:p}=t.compiler.webpack;t.emitAsset(h,new p.RawSource(typeof o.source=="string"?o.source:hn.Buffer.from(o.source)))}}}}function ln(e){let t=new Error(typeof e=="string"?e:e.message);return typeof e=="object"&&(t.stack=e.stack,t.cause=e.meta),t}var Dt=require("path"),Vt=mt(require("fs"),1);function pn(e,t){return(0,Dt.resolve)(t.__virtualModulePrefix,encodeURIComponent(e))}function fn(e,t){return decodeURIComponent((0,Dt.basename)(e))}function xs(e,t){return(0,Dt.dirname)(e)===t.__virtualModulePrefix}var dn=class ut{name="FakeVirtualModulesPlugin";static counters=new Map;static initCleanup=!1;constructor(t){this.plugin=t,ut.initCleanup||(ut.initCleanup=!0,process.once("exit",()=>{ut.counters.forEach((s,r)=>{Vt.default.rmSync(r,{recursive:!0,force:!0})})}))}apply(t){let s=this.plugin.__virtualModulePrefix;Vt.default.existsSync(s)||Vt.default.mkdirSync(s,{recursive:!0});let r=ut.counters.get(s)??0;ut.counters.set(s,r+1),t.hooks.shutdown.tap(this.name,()=>{let o=(ut.counters.get(s)??1)-1;o===0?(ut.counters.delete(s),Vt.default.rmSync(s,{recursive:!0,force:!0})):ut.counters.set(s,o)})}async writeModule(t){return Vt.default.promises.writeFile(t,"")}};var mn=require("module"),xn=require("path"),yn=require("buffer"),gn=mt(require("process"),1),fc={};function ys(e){return{addWatchFile(t){(e.fileDependencies??e.compilationDependencies).add(t)},getWatchFiles(){return Array.from(e.fileDependencies??e.compilationDependencies)}}}var lc=(0,mn.createRequire)(fc.url);function pc(e){return new(lc("webpack")).sources.RawSource(typeof e=="string"?e:yn.Buffer.from(e.buffer))}function Ii(e,t,s,r,o){return{parse:xt,addWatchFile(h){e.addWatchFile((0,xn.resolve)(gn.default.cwd(),h))},emitFile(h){let p=h.fileName||h.name;if(h.source&&p){if(!s)throw new Error("unplugin/webpack: emitFile outside supported hooks (buildStart, buildEnd, load, transform, watchChange)");s.emitAsset(p,pc(h.source))}},getWatchFiles(){return e.getWatchFiles()},getNativeBuildContext(){return{framework:"webpack",compiler:t,compilation:s,loaderContext:r,inputSourceMap:o}}}}function vn(e){let t=new Error(typeof e=="string"?e:e.message);return typeof e=="object"&&(t.stack=e.stack,t.cause=e.meta),t}var oa=require("module"),Se=mt(require("path"),1),st=mt(require("fs"),1),Ts=require("buffer");var _n=44,dc=59,bn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",En=new Uint8Array(64),An=new Uint8Array(128);for(let e=0;e<bn.length;e++){let t=bn.charCodeAt(e);En[e]=t,An[t]=e}function ei(e,t){let s=0,r=0,o=0;do{let p=e.next();o=An[p],s|=(o&31)<<r,r+=5}while(o&32);let h=s&1;return s>>>=1,h&&(s=-2147483648|-s),t+s}function ti(e,t,s){let r=t-s;r=r<0?-r<<1|1:r<<1;do{let o=r&31;r>>>=5,r>0&&(o|=32),e.write(En[o])}while(r>0);return t}function Sn(e,t){return e.pos>=t?!1:e.peek()!==_n}var Cn=1024*16,wn=typeof TextDecoder<"u"?new TextDecoder:typeof Buffer<"u"?{decode(e){return Buffer.from(e.buffer,e.byteOffset,e.byteLength).toString()}}:{decode(e){let t="";for(let s=0;s<e.length;s++)t+=String.fromCharCode(e[s]);return t}},mc=class{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(Cn)}write(e){let{buffer:t}=this;t[this.pos++]=e,this.pos===Cn&&(this.out+=wn.decode(t),this.pos=0)}flush(){let{buffer:e,out:t,pos:s}=this;return s>0?t+wn.decode(e.subarray(0,s)):t}},xc=class{constructor(e){this.pos=0,this.buffer=e}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(e){let{buffer:t,pos:s}=this,r=t.indexOf(e,s);return r===-1?t.length:r}};function kn(e){let{length:t}=e,s=new xc(e),r=[],o=0,h=0,p=0,g=0,v=0;do{let l=s.indexOf(";"),T=[],_=!0,D=0;for(o=0;s.pos<l;){let w;o=ei(s,o),o<D&&(_=!1),D=o,Sn(s,l)?(h=ei(s,h),p=ei(s,p),g=ei(s,g),Sn(s,l)?(v=ei(s,v),w=[o,h,p,g,v]):w=[o,h,p,g]):w=[o],T.push(w),s.pos++}_||yc(T),r.push(T),s.pos=l+1}while(s.pos<=t);return r}function yc(e){e.sort(gc)}function gc(e,t){return e[0]-t[0]}function gs(e){let t=new mc,s=0,r=0,o=0,h=0;for(let p=0;p<e.length;p++){let g=e[p];if(p>0&&t.write(dc),g.length===0)continue;let v=0;for(let l=0;l<g.length;l++){let T=g[l];l>0&&t.write(_n),v=ti(t,T[0],v),T.length!==1&&(s=ti(t,T[1],s),r=ti(t,T[2],r),o=ti(t,T[3],o),T.length!==4&&(h=ti(t,T[4],h)))}}return t.flush()}var vc=/^[\w+.-]+:\/\//,bc=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,Sc=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;function Cc(e){return vc.test(e)}function wc(e){return e.startsWith("//")}function In(e){return e.startsWith("/")}function _c(e){return e.startsWith("file:")}function Tn(e){return/^[.?#]/.test(e)}function Ni(e){let t=bc.exec(e);return Nn(t[1],t[2]||"",t[3],t[4]||"",t[5]||"/",t[6]||"",t[7]||"")}function Ec(e){let t=Sc.exec(e),s=t[2];return Nn("file:","",t[1]||"","",In(s)?s:"/"+s,t[3]||"",t[4]||"")}function Nn(e,t,s,r,o,h,p){return{scheme:e,user:t,host:s,port:r,path:o,query:h,hash:p,type:7}}function Pn(e){if(wc(e)){let s=Ni("http:"+e);return s.scheme="",s.type=6,s}if(In(e)){let s=Ni("http://foo.com"+e);return s.scheme="",s.host="",s.type=5,s}if(_c(e))return Ec(e);if(Cc(e))return Ni(e);let t=Ni("http://foo.com/"+e);return t.scheme="",t.host="",t.type=e?e.startsWith("?")?3:e.startsWith("#")?2:4:1,t}function Ac(e){if(e.endsWith("/.."))return e;let t=e.lastIndexOf("/");return e.slice(0,t+1)}function kc(e,t){Ln(t,t.type),e.path==="/"?e.path=t.path:e.path=Ac(t.path)+e.path}function Ln(e,t){let s=t<=4,r=e.path.split("/"),o=1,h=0,p=!1;for(let v=1;v<r.length;v++){let l=r[v];if(!l){p=!0;continue}if(p=!1,l!=="."){if(l===".."){h?(p=!0,h--,o--):s&&(r[o++]=l);continue}r[o++]=l,h++}}let g="";for(let v=1;v<o;v++)g+="/"+r[v];(!g||p&&!g.endsWith("/.."))&&(g+="/"),e.path=g}function Rn(e,t){if(!e&&!t)return"";let s=Pn(e),r=s.type;if(t&&r!==7){let h=Pn(t),p=h.type;switch(r){case 1:s.hash=h.hash;case 2:s.query=h.query;case 3:case 4:kc(s,h);case 5:s.user=h.user,s.host=h.host,s.port=h.port;case 6:s.scheme=h.scheme}p>r&&(r=p)}Ln(s,r);let o=s.query+s.hash;switch(r){case 2:case 3:return o;case 4:{let h=s.path.slice(1);return h?Tn(t||e)&&!Tn(h)?"./"+h+o:h+o:o||"."}case 5:return s.path+o;default:return s.scheme+"//"+s.user+s.host+s.port+s.path+o}}function Tc(e){if(!e)return"";let t=e.lastIndexOf("/");return e.slice(0,t+1)}function Pc(e,t){let s=Tc(e),r=t?t+"/":"";return o=>Rn(r+(o||""),s)}var yt=0;function Ic(e,t){let s=On(e,0);if(s===e.length)return e;t||(e=e.slice());for(let r=s;r<e.length;r=On(e,r+1))e[r]=Lc(e[r],t);return e}function On(e,t){for(let s=t;s<e.length;s++)if(!Nc(e[s]))return s;return e.length}function Nc(e){for(let t=1;t<e.length;t++)if(e[t][yt]<e[t-1][yt])return!1;return!0}function Lc(e,t){return t||(e=e.slice()),e.sort(Rc)}function Rc(e,t){return e[yt]-t[yt]}var Li=!1;function Oc(e,t,s,r){for(;s<=r;){let o=s+(r-s>>1),h=e[o][yt]-t;if(h===0)return Li=!0,o;h<0?s=o+1:r=o-1}return Li=!1,s-1}function Mc(e,t,s){for(let r=s+1;r<e.length&&e[r][yt]===t;s=r++);return s}function Vc(e,t,s){for(let r=s-1;r>=0&&e[r][yt]===t;s=r--);return s}function Dc(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function Fc(e,t,s,r){let{lastKey:o,lastNeedle:h,lastIndex:p}=s,g=0,v=e.length-1;if(r===o){if(t===h)return Li=p!==-1&&e[p][yt]===t,p;t>=h?g=p===-1?0:p:v=p}return s.lastKey=r,s.lastNeedle=t,s.lastIndex=Oc(e,t,g,v)}function Bc(e){return typeof e=="string"?JSON.parse(e):e}var Mn=-1,jc=1,Ri=class{constructor(e,t){let s=typeof e=="string";if(!s&&e._decodedMemo)return e;let r=Bc(e),{version:o,file:h,names:p,sourceRoot:g,sources:v,sourcesContent:l}=r;this.version=o,this.file=h,this.names=p||[],this.sourceRoot=g,this.sources=v,this.sourcesContent=l,this.ignoreList=r.ignoreList||r.x_google_ignoreList||void 0;let T=Pc(t,g);this.resolvedSources=v.map(T);let{mappings:_}=r;if(typeof _=="string")this._encoded=_,this._decoded=void 0;else if(Array.isArray(_))this._encoded=void 0,this._decoded=Ic(_,s);else throw r.sections?new Error("TraceMap passed sectioned source map, please use FlattenMap export instead"):new Error(`invalid source map: ${JSON.stringify(r)}`);this._decodedMemo=Dc(),this._bySources=void 0,this._bySourceMemos=void 0}};function Oi(e){var t;return(t=e)._decoded||(t._decoded=kn(e._encoded))}function Vn(e,t,s){let r=Oi(e);if(t>=r.length)return null;let o=r[t],h=Uc(o,e._decodedMemo,t,s,jc);return h===-1?null:o[h]}function Uc(e,t,s,r,o){let h=Fc(e,r,t,s);return Li?h=(o===Mn?Mc:Vc)(e,r,h):o===Mn&&h++,h===-1||h===e.length?-1:h}var vs=class{constructor(){this._indexes={__proto__:null},this.array=[]}};function Fn(e,t){return e._indexes[t]}function ii(e,t){let s=Fn(e,t);if(s!==void 0)return s;let{array:r,_indexes:o}=e,h=r.push(t);return o[t]=h-1}function Hc(e,t){let s=Fn(e,t);if(s===void 0)return;let{array:r,_indexes:o}=e;for(let h=s+1;h<r.length;h++){let p=r[h];r[h-1]=p,o[p]--}o[t]=void 0,r.pop()}var qc=0,Wc=1,Gc=2,$c=3,Kc=4,Bn=-1,jn=class{constructor({file:e,sourceRoot:t}={}){this._names=new vs,this._sources=new vs,this._sourcesContent=[],this._mappings=[],this.file=e,this.sourceRoot=t,this._ignoreList=new vs}};var Un=(e,t,s,r,o,h,p,g)=>zc(!0,e,t,s,r,o,h,p,g);function Hn(e,t,s){let{_sources:r,_sourcesContent:o}=e,h=ii(r,t);o[h]=s}function qn(e,t,s=!0){let{_sources:r,_sourcesContent:o,_ignoreList:h}=e,p=ii(r,t);p===o.length&&(o[p]=null),s?ii(h,p):Hc(h,p)}function bs(e){let{_mappings:t,_sources:s,_sourcesContent:r,_names:o,_ignoreList:h}=e;return Qc(t),{version:3,file:e.file||void 0,names:o.array,sourceRoot:e.sourceRoot||void 0,sources:s.array,sourcesContent:r,mappings:t,ignoreList:h.array}}function Wn(e){let t=bs(e);return Object.assign({},t,{mappings:gs(t.mappings)})}function zc(e,t,s,r,o,h,p,g,v){let{_mappings:l,_sources:T,_sourcesContent:_,_names:D}=t,w=Xc(l,s),E=Jc(w,r);if(!o)return e&&Yc(w,E)?void 0:Dn(w,E,[r]);let F=ii(T,o),V=g?ii(D,g):Bn;if(F===_.length&&(_[F]=v??null),!(e&&Zc(w,E,F,h,p,V)))return Dn(w,E,g?[r,F,h,p,V]:[r,F,h,p])}function Xc(e,t){for(let s=e.length;s<=t;s++)e[s]=[];return e[t]}function Jc(e,t){let s=e.length;for(let r=s-1;r>=0;s=r--){let o=e[r];if(t>=o[qc])break}return s}function Dn(e,t,s){for(let r=e.length;r>t;r--)e[r]=e[r-1];e[t]=s}function Qc(e){let{length:t}=e,s=t;for(let r=s-1;r>=0&&!(e[r].length>0);s=r,r--);s<t&&(e.length=s)}function Yc(e,t){return t===0?!0:e[t-1].length===1}function Zc(e,t,s,r,o,h){if(t===0)return!1;let p=e[t-1];return p.length===1?!1:s===p[Wc]&&r===p[Gc]&&o===p[$c]&&h===(p.length===5?p[Kc]:Bn)}var Gn=$n("",-1,-1,"",null,!1),eh=[];function $n(e,t,s,r,o,h){return{source:e,line:t,column:s,name:r,content:o,ignore:h}}function Kn(e,t,s,r,o){return{map:e,sources:t,source:s,content:r,ignore:o}}function zn(e,t){return Kn(e,t,"",null,!1)}function th(e,t,s){return Kn(null,eh,e,t,s)}function ih(e){let t=new jn({file:e.map.file}),{sources:s,map:r}=e,o=r.names,h=Oi(r);for(let p=0;p<h.length;p++){let g=h[p];for(let v=0;v<g.length;v++){let l=g[v],T=l[0],_=Gn;if(l.length!==1){let Q=s[l[1]];if(_=Xn(Q,l[2],l[3],l.length===5?o[l[4]]:""),_==null)continue}let{column:D,line:w,name:E,content:F,source:V,ignore:G}=_;Un(t,p,T,V,w,D,E),V&&F!=null&&Hn(t,V,F),G&&qn(t,V,!0)}}return t}function Xn(e,t,s,r){if(!e.map)return $n(e.source,t,s,r,e.content,e.ignore);let o=Vn(e.map,t,s);return o==null?null:o.length===1?Gn:Xn(e.sources[o[1]],o[2],o[3],o.length===5?e.map.names[o[4]]:r)}function sh(e){return Array.isArray(e)?e:[e]}function rh(e,t){let s=sh(e).map(h=>new Ri(h,"")),r=s.pop();for(let h=0;h<s.length;h++)if(s[h].sources.length>1)throw new Error(`Transformation map ${h} must have exactly one source file.
|
|
12
|
+
Did you specify these with the most recent transformation maps first?`);let o=Jn(r,t,"",0);for(let h=s.length-1;h>=0;h--)o=zn(s[h],[o]);return o}function Jn(e,t,s,r){let{resolvedSources:o,sourcesContent:h,ignoreList:p}=e,g=r+1,v=o.map((l,T)=>{let _={importer:s,depth:g,source:l||"",content:void 0,ignore:void 0},D=t(_.source,_),{source:w,content:E,ignore:F}=_;if(D)return Jn(new Ri(D,w),t,w,g);let V=E!==void 0?E:h?h[T]:null,G=F!==void 0?F:p?p.includes(T):!1;return th(w,V,G)});return zn(e,v)}var nh=class{constructor(e,t){let s=t.decodedMappings?bs(e):Wn(e);this.version=s.version,this.file=s.file,this.mappings=s.mappings,this.names=s.names,this.ignoreList=s.ignoreList,this.sourceRoot=s.sourceRoot,this.sources=s.sources,t.excludeContent||(this.sourcesContent=s.sourcesContent)}toString(){return JSON.stringify(this)}};function Ss(e,t,s){let r=typeof s=="object"?s:{excludeContent:!!s,decodedMappings:!1},o=rh(e,t);return new nh(ih(o),r)}var ua=mt(require("querystring"),1),ca=mt(require("process"),1),si={},ah=(0,oa.createRequire)(si.url),oh={".js":"js",".mjs":"js",".cjs":"js",".jsx":"jsx",".ts":"ts",".cts":"ts",".mts":"ts",".tsx":"tsx",".css":"css",".less":"css",".stylus":"css",".scss":"css",".sass":"css",".json":"json",".txt":"text"};function uh(e){return oh[Se.default.extname(e).toLowerCase()]||"js"}function ch(e){let t=[];return{addWatchFile(s){t.push(s)},getWatchFiles(){return t},emitFile(s){let r=s.fileName||s.name,o=e?.config?.outdir;if(o&&s.source&&r){let h=Se.default.resolve(o,r),p=Se.default.dirname(h);st.default.existsSync(p)||st.default.mkdirSync(p,{recursive:!0}),st.default.writeFileSync(h,s.source)}},parse:xt,getNativeBuildContext(){return{framework:"bun",build:e}}}}function Cs(e){let t=[],s=[];return{errors:t,warnings:s,mixedContext:{...e,error(r){t.push(r)},warn(r){s.push(r)}}}}function hh(e){return t=>{if(typeof Bun>"u")throw new ReferenceError("Bun is not supported in this environment");if(!Bun.semver.satisfies(Bun.version,">=1.2.22"))throw new Error("Bun 1.2.22 or higher is required, please upgrade Bun");let s={framework:"bun"},r=Ke(e(t,s));return{name:(r.length===1?r[0].name:s.bunHostName)??`unplugin-host:${r.map(o=>o.name).join(":")}`,async setup(o){let h=ch(o);r.some(_=>_.buildStart)&&o.onStart(async()=>{for(let _ of r)_.buildStart&&await _.buildStart.call(h)});let p=r.filter(_=>_.resolveId).map(_=>({plugin:_,...Te("resolveId",_.resolveId)})),g=r.filter(_=>_.load).map(_=>({plugin:_,...Te("load",_.load)})),v=r.filter(_=>_.transform||_.transformInclude).map(_=>({plugin:_,...Te("transform",_.transform)})),l=new Set;for(let _ of r)_.resolveId&&_.load&&l.add(_.name);p.length&&o.onResolve({filter:/.*/},async _=>{if(!o.config?.external?.includes(_.path))for(let{plugin:D,handler:w,filter:E}of p){if(!E(_.path))continue;let{mixedContext:F,errors:V,warnings:G}=Cs(h),Q=_.kind==="entry-point-run"||_.kind==="entry-point-build",$=await w.call(F,_.path,Q?void 0:_.importer,{isEntry:Q});for(let m of G)console.warn("[unplugin]",typeof m=="string"?m:m.message);if(V.length>0){let m=V.map(ne=>typeof ne=="string"?ne:ne.message).join(`
|
|
13
|
+
`);throw new Error(`[unplugin] ${D.name}: ${m}`)}if(typeof $=="string")return(0,Se.isAbsolute)($)?{path:$}:{path:$,namespace:D.name};if(typeof $=="object"&&$!==null)return(0,Se.isAbsolute)($.id)?{path:$.id,external:$.external}:{path:$.id,external:$.external,namespace:D.name}}});async function T(_,D,w){let E,F=!1,V=D==="file"?g:g.filter(G=>G.plugin.name===D);for(let{plugin:G,handler:Q,filter:$}of V){if(G.loadInclude&&!G.loadInclude(_)||!$(_))continue;let{mixedContext:m,errors:ne,warnings:z}=Cs(h),ae=await Q.call(m,_);for(let X of z)console.warn("[unplugin]",typeof X=="string"?X:X.message);if(ne.length>0){let X=ne.map(Z=>typeof Z=="string"?Z:Z.message).join(`
|
|
14
|
+
`);throw new Error(`[unplugin] ${G.name}: ${X}`)}if(typeof ae=="string"){E=ae,F=!0;break}else if(typeof ae=="object"&&ae!==null){E=ae.code,F=!0;break}}if(!F&&D==="file"&&v.length>0&&(E=await Bun.file(_).text()),E!==void 0){let G=D==="file"?v:v.filter(Q=>Q.plugin.name===D);for(let{plugin:Q,handler:$,filter:m}of G){if(Q.transformInclude&&!Q.transformInclude(_)||!m(_,E))continue;let{mixedContext:ne,errors:z,warnings:ae}=Cs(h),X=await $.call(ne,E,_);for(let Z of ae)console.warn("[unplugin]",typeof Z=="string"?Z:Z.message);if(z.length>0){let Z=z.map(M=>typeof M=="string"?M:M.message).join(`
|
|
15
|
+
`);throw new Error(`[unplugin] ${Q.name}: ${Z}`)}typeof X=="string"?(E=X,F=!0):typeof X=="object"&&X!==null&&(E=X.code,F=!0)}}if(F&&E!==void 0)return{contents:E,loader:w??uh(_)}}(g.length||v.length)&&o.onLoad({filter:/.*/,namespace:"file"},async _=>T(_.path,"file",_.loader));for(let _ of l)o.onLoad({filter:/.*/,namespace:_},async D=>T(D.path,_,D.loader));r.some(_=>_.buildEnd||_.writeBundle)&&o.onEnd(async()=>{for(let _ of r)_.buildEnd&&await _.buildEnd.call(h),_.writeBundle&&await _.writeBundle()})}}}}var lh={".js":"js",".mjs":"js",".cjs":"js",".jsx":"jsx",".ts":"ts",".cts":"ts",".mts":"ts",".tsx":"tsx",".css":"css",".less":"css",".stylus":"css",".scss":"css",".sass":"css",".json":"json",".txt":"text"};function ph(e,t){return lh[Se.default.extname(t).toLowerCase()]||"js"}function Qn(e,t,s){return typeof e=="function"?e(t,s):e}function fh(e){return Object.prototype.hasOwnProperty.call(e,"toString")||Object.defineProperty(e,"toString",{enumerable:!1,value:function(){return JSON.stringify(this)}}),Object.prototype.hasOwnProperty.call(e,"toUrl")||Object.defineProperty(e,"toUrl",{enumerable:!1,value:function(){return`data:application/json;charset=utf-8;base64,${Ts.Buffer.from(this.toString()).toString("base64")}`}}),e}var Yn={names:[],sources:[],mappings:"",version:3};function dh(e,t){if(t=t.filter(o=>o.sources),t.length===0||t.every(o=>o.sources.length===0))return{...Yn};let s,r=1;return t.slice(0,-1).find(o=>o.sources.length!==1)===void 0?s=Ss(t,()=>null,!0):s=Ss(t[0],o=>o===e&&t[r]?t[r++]:{...Yn},!0),s.file||delete s.file,s}function mh(e){let t=[],{initialOptions:s}=e;return{parse:xt,addWatchFile(){throw new Error("unplugin/esbuild: addWatchFile outside supported hooks (resolveId, load, transform)")},emitFile(r){let o=r.fileName||r.name;if(s.outdir&&r.source&&o){let h=Se.default.resolve(s.outdir,o),p=Se.default.dirname(h);st.default.existsSync(p)||st.default.mkdirSync(p,{recursive:!0}),st.default.writeFileSync(h,r.source)}},getWatchFiles(){return t},getNativeBuildContext(){return{framework:"esbuild",build:e}}}}function ws(e){let t=[],s=[];return{errors:t,warnings:s,mixedContext:{...e,...{error(o){t.push(Zn(o))},warn(o){s.push(Zn(o))}},addWatchFile(o){e.getWatchFiles().push(o)}}}}function Zn(e){return typeof e=="string"&&(e={message:e}),{id:e.id,pluginName:e.plugin,text:e.message,location:e.loc?{file:e.loc.file,line:e.loc.line,column:e.loc.column}:null,detail:e.meta,notes:[]}}function ea(e,t){return e&&((!e.sourcesContent||e.sourcesContent.length===0)&&(e.sourcesContent=[t]),e=fh(e),t+=`
|
|
16
|
+
//# sourceMappingURL=${e.toUrl()}`),t}function xh(e){return t=>{let s={framework:"esbuild"},r=Ke(e(t,s)),o=async h=>{let p=yh(),g=[];for(let v of r){let l={};await p(v)({...h,onLoad(T,_){l.options=T,l.onLoadCb=_},onTransform(T,_){l.options||=T,l.onTransformCb=_}},h),(l.onLoadCb||l.onTransformCb)&&g.push(l)}g.length&&h.onLoad(g.length===1?g[0].options:{filter:/.*/},async v=>{function l(D){return g.length===1||!D?.filter||D.filter.test(v.path)}let T;for(let{options:D,onLoadCb:w}of g)if(l(D)&&(w&&(T=await w(v)),T?.contents))break;let _;for(let{options:D,onTransformCb:w}of g)if(l(D)&&w){let E=await w({...T,...v,async getContents(){return T?.contents?T.contents:_||(_=await st.default.promises.readFile(v.path,"utf8"))}});E?.contents&&(T=E)}if(T?.contents)return T})};return{name:(r.length===1?r[0].name:s.esbuildHostName)??`unplugin-host:${r.map(h=>h.name).join(":")}`,setup:o}}}function yh(){return e=>(t,s)=>{let r=mh(s),{onStart:o,onEnd:h,onResolve:p,onLoad:g,onTransform:v,initialOptions:l}=t,T=e.esbuild?.onResolveFilter??/.*/,_=e.esbuild?.onLoadFilter??/.*/,D=e.esbuild?.loader??ph;if(e.esbuild?.config?.call(r,l),e.buildStart&&o(()=>e.buildStart.call(r)),(e.buildEnd||e.writeBundle)&&h(async()=>{e.buildEnd&&await e.buildEnd.call(r),e.writeBundle&&await e.writeBundle()}),e.resolveId&&p({filter:T},async w=>{let E=w.path;if(l.external?.includes(E))return;let{handler:F,filter:V}=Te("resolveId",e.resolveId);if(!V(E))return;let{errors:G,warnings:Q,mixedContext:$}=ws(r),m=w.kind==="entry-point",ne=await F.call($,E,m?void 0:w.importer,{isEntry:m});if(typeof ne=="string")return{path:ne,namespace:e.name,errors:G,warnings:Q,watchFiles:$.getWatchFiles()};if(typeof ne=="object"&&ne!==null)return{path:ne.id,external:ne.external,namespace:e.name,errors:G,warnings:Q,watchFiles:$.getWatchFiles()}}),e.load&&g({filter:_},async w=>{let{handler:E,filter:F}=Te("load",e.load),V=w.path+(w.suffix||"");if(e.loadInclude&&!e.loadInclude(V)||!F(V))return;let{errors:G,warnings:Q,mixedContext:$}=ws(r),m,ne,z=await E.call($,V);if(typeof z=="string"?m=z:typeof z=="object"&&z!==null&&(m=z.code,ne=z.map),m===void 0)return null;ne&&(m=ea(ne,m));let ae=Se.default.dirname(w.path);return{contents:m,errors:G,warnings:Q,watchFiles:$.getWatchFiles(),loader:Qn(D,m,w.path),resolveDir:ae}}),e.transform&&v({filter:_},async w=>{let{handler:E,filter:F}=Te("transform",e.transform),V=w.path+(w.suffix||"");if(e.transformInclude&&!e.transformInclude(V))return;let G=await w.getContents();if(!F(V,G))return;let{mixedContext:Q,errors:$,warnings:m}=ws(r),ne=Se.default.dirname(w.path),z,ae=await E.call(Q,G,V);if(typeof ae=="string"?G=ae:typeof ae=="object"&&ae!==null&&(G=ae.code,z&&ae.map?z=dh(w.path,[ae.map==="string"?JSON.parse(ae.map):ae.map,z]):typeof ae.map=="string"?z=JSON.parse(ae.map):z=ae.map),G)return z&&(G=ea(z,G)),{contents:G,errors:$,warnings:m,watchFiles:Q.getWatchFiles(),loader:Qn(D,G,w.path),resolveDir:ne}}),e.esbuild?.setup)return e.esbuild.setup(s)}}function Ft(e,t){return{parse:xt,addWatchFile(s){e.addWatchFile(s,t||s)},emitFile(s){let r=s.fileName||s.name;s.source&&r&&e.emitFile({resolvedPath:r,name:r,content:[...Ts.Buffer.from(s.source)],resourceType:(0,Se.extname)(r)})},getWatchFiles(){return e.getWatchFiles()},getNativeBuildContext(){return{framework:"farm",context:e}}}}function _s(e){return{error:t=>e.error(typeof t=="string"?new Error(t):t),warn:t=>e.warn(typeof t=="string"?new Error(t):t)}}function gh(e){let s={pre:102,post:98};return s[e]!==void 0?s[e]:100}function vh(e){return{Added:"create",Updated:"update",Removed:"delete"}[e]}function bh(e){return typeof e=="string"}function ta(e){return typeof e=="object"&&e!==null}function ia(e){if(!e)return[];let t=e.split("?")[1],s=ua.parse(t),r=[];for(let o in s)r.push([o,s[o]]);return r}function ks(e){let t=e.length;if(t===0)return e;let s=e.indexOf("\0");if(s===-1)return e;let r=Array.from({length:t+Sh(e,s)}),o=0;for(let h=0;h<s;h++)r[o++]=e[h];for(let h=s;h<t;h++){let p=e[h];p==="\0"?(r[o++]="\\",r[o++]="0"):r[o++]=p}return Se.default.posix.normalize(r.join(""))}function Es(e){let t=e.length;if(t===0)return e;let s=e.indexOf("\\0");if(s===-1)return e;let r=Array.from({length:t-Ch(e,s)}),o=0;for(let p=0;p<s;p++)r[o++]=e[p];let h=s;for(;h<t;)e[h]==="\\"&&e[h+1]==="0"?(r[o++]="\0",h+=2):r[o++]=e[h++];return Se.default.posix.normalize(r.join(""))}function sa(e){if(e==null)throw new Error("Content cannot be null or undefined");return ks(typeof e=="string"?e:e.code||"")}function Sh(e,t){let s=0,r=e.length;for(let o=t;o<r;o++)e[o]==="\0"&&s++;return s}function Ch(e,t){let s=0,r=e.length;for(let o=t;o<r-1;o++)e[o]==="\\"&&e[o+1]==="0"&&(s++,o++);return s}function ra(e){let t=e.indexOf("?");return t!==-1?Se.default.posix.normalize(e.slice(0,t)):Se.default.posix.normalize(e)}function wh(e){return e?.startsWith("/")}function na(e,t){return t.length?`${e}?${_h(t)}`:e}function _h(e){if(!e.length)return"";let t="";for(let[s,r]of e)t+=`${s}${r?`=${r}`:""}&`;return`${t.slice(0,-1)}`}var Eh=[[/\.(less)(?:$|\?)/,"less"],[/\.(scss|sass)(?:$|\?)/,"sass"],[/\.(styl|stylus)(?:$|\?)/,"stylus"],[/\.(css)(?:$|\?)/,"css"]],Ah=[[/\.(js|mjs|cjs)(?:$|\?)/,"js"],[/\.(jsx)(?:$|\?)/,"jsx"],[/\.(ts|cts|mts)(?:$|\?)/,"ts"],[/\.(tsx)(?:$|\?)/,"tsx"]];function kh(e){for(let[t,s]of Eh)if(t.test(e))return s;return null}function Th(e){for(let[t,s]of Ah)if(t.test(e))return s;return null}function Ph(e){let t=kh(e);if(t)return t;let s=Th(e);return s||"js"}function aa(e){return Ph(e)}function Ih(e){return(t=>{let s=Ke(e(t,{framework:"farm"})).map(r=>{let o=Nh(r,t);return r.farm&&Object.assign(o,r.farm),o});return s.length===1?s[0]:s})}function Nh(e,t){let s={name:e.name,priority:gh(e.enforce)};if(e.farm&&Object.keys(e.farm).forEach(r=>{let o=e.farm[r];o&&Reflect.set(s,r,o)}),e.buildStart){let r=e.buildStart;s.buildStart={async executor(o,h){await r.call(Ft(h))}}}if(e.resolveId){let r=e.resolveId,o=[];t&&(o=t?.filters??[]),s.resolve={filters:{sources:o.length?o:[".*"],importers:[".*"]},async executor(h,p){let g=Se.default.resolve(h.importer??""),v=Es(h.source),{handler:l,filter:T}=Te("resolveId",r);if(!T(v))return null;let _=!1;ta(h.kind)&&"entry"in h.kind&&(_=h.kind.entry==="index");let D=Ft(p,g),w=await l.call(Object.assign(_s(p),D),v,g??null,{isEntry:_});if(bh(w))return{resolvedPath:ra(ks(w)),query:ia(w),sideEffects:!0,external:!1,meta:{}};if(ta(w))return{resolvedPath:ra(ks(w?.id)),query:ia(w?.id),sideEffects:!1,external:!!w?.external,meta:{}};if(!wh(h.source))return null}}}if(e.load){let r=e.load;s.load={filters:{resolvedPaths:[".*"]},async executor(o,h){let p=na(Es(o.resolvedPath),o.query),g=aa(p);if(e.loadInclude&&!e.loadInclude?.(p))return null;let{handler:v,filter:l}=Te("load",r);if(!l(p))return null;let T=Ft(h,p);return{content:sa(await v.call(Object.assign(_s(h),T),p)),moduleType:g}}}}if(e.transform){let r=e.transform;s.transform={filters:{resolvedPaths:[".*"],moduleTypes:[".*"]},async executor(o,h){let p=na(Es(o.resolvedPath),o.query),g=aa(p);if(e.transformInclude&&!e.transformInclude(p))return null;let{handler:v,filter:l}=Te("transform",r);if(!l(p,o.content))return null;let T=Ft(h,p),_=await v.call(Object.assign(_s(h),T),o.content,p);if(_&&typeof _!="string")return{content:sa(_),moduleType:g,sourceMap:typeof _.map=="object"&&_.map!==null?JSON.stringify(_.map):void 0}}}}if(e.watchChange){let r=e.watchChange;s.updateModules={async executor(o,h){let p=o.paths[0],g=p[0],v=vh(p[1]);await r.call(Ft(h),g,{event:v})}}}if(e.buildEnd){let r=e.buildEnd;s.buildEnd={async executor(o,h){await r.call(Ft(h))}}}if(e.writeBundle){let r=e.writeBundle;s.finish={async executor(){await r()}}}return s}function Lh(e){return(t=>{let s=Ke(e(t,{framework:"rollup"})).map(r=>Mi(r,"rollup"));return s.length===1?s[0]:s})}function Mi(e,t){let s=t==="rolldown";if(e.resolveId&&!s&&typeof e.resolveId=="object"&&e.resolveId.filter){let o=e.resolveId,{handler:h,filter:p}=Te("load",o);r("resolveId",o,function(...g){let[v]=g;if(!(!As(this,t)&&!p(v)))return h.apply(this,g)})}if(e.load&&(e.loadInclude||!s&&typeof e.load=="object"&&e.load.filter)){let o=e.load,{handler:h,filter:p}=Te("load",o);r("load",o,function(...g){let[v]=g;if(!(e.loadInclude&&!e.loadInclude(v))&&!(!As(this,t)&&!p(v)))return h.apply(this,g)})}if(e.transform&&(e.transformInclude||!s&&typeof e.transform=="object"&&e.transform.filter)){let o=e.transform,{handler:h,filter:p}=Te("transform",o);r("transform",o,function(...g){let[v,l]=g;if(!(e.transformInclude&&!e.transformInclude(l))&&!(!As(this,t)&&!p(l,v)))return h.apply(this,g)})}return e[t]&&Object.assign(e,e[t]),e;function r(o,h,p){typeof h=="function"?e[o]=p:h.handler=p}}function As(e,t){if(t==="vite")return!!e?.meta?.viteVersion;if(t==="rolldown")return!0;let s=e?.meta?.rollupVersion;if(!s)return!1;let[r,o]=s.split(".");return Number(r)>4||Number(r)===4&&Number(o)>=40}function Rh(e){return(t=>{let s=Ke(e(t,{framework:"rolldown"})).map(r=>Mi(r,"rolldown"));return s.length===1?s[0]:s})}var Oh=(0,Se.resolve)(si.dirname,"rspack/loaders/transform.mjs"),Mh=(0,Se.resolve)(si.dirname,"rspack/loaders/load.mjs");function Vh(e){return t=>({apply(s){let r=(0,Se.resolve)(s.options.context??process.cwd(),"node_modules/.virtual",s.rspack.experiments.VirtualModulesPlugin?"":process.pid.toString()),o={framework:"rspack",rspack:{compiler:s}},h=Ke(e(t,o));for(let p of h){let g=Object.assign(p,{__unpluginMeta:o,__virtualModulePrefix:r}),v=new Set;if(g.resolveId){let T=(D=>s.rspack.experiments.VirtualModulesPlugin?new s.rspack.experiments.VirtualModulesPlugin:new dn(D))(g);T.apply(s);let _=new Map;g.__vfsModules=_,g.__vfs=T,s.hooks.compilation.tap(g.name,(D,{normalModuleFactory:w})=>{w.hooks.resolve.tapPromise(g.name,async E=>{let F=Mt(E.request),V=E.contextInfo,G=V.issuer!==""?V.issuer:void 0,Q=V.issuer==="";G?.startsWith(g.__virtualModulePrefix)&&(G=decodeURIComponent(G.slice(g.__virtualModulePrefix.length)));let $=Pi(s,D),m,ne={error(j){m==null?m=ln(j):console.error(`unplugin/rspack: multiple errors returned from resolveId hook: ${j}`)},warn(j){console.warn(`unplugin/rspack: warning from resolveId hook: ${j}`)}},{handler:z,filter:ae}=Te("resolveId",g.resolveId);if(!ae(F))return;let X=await z.call({...$,...ne},F,G,{isEntry:Q});if(m!=null)throw m;if(X==null)return;let Z=typeof X=="string"?X:X.id;typeof X!="string"&&X.external===!0&&v.add(Z);let M=!0;try{(s.inputFileSystem?.statSync??st.default.statSync)(Z),M=!1}catch{M=!xs(Z,g)}if(M){let j=pn(Z,g);if(_.has(Z))await _.get(Z);else{let ce=Promise.resolve(T.writeModule(j,""));_.set(Z,ce),await ce}Z=j}E.request=Z})})}g.load&&s.options.module.rules.unshift({enforce:g.enforce,include(l){if(xs(l,g)&&(l=fn(l,g)),g.loadInclude&&!g.loadInclude(l))return!1;let{filter:T}=Te("load",g.load);return T(l)?!v.has(l):!1},use:[{loader:Mh,options:{plugin:g}}],type:"javascript/auto"}),g.transform&&s.options.module.rules.unshift({enforce:g.enforce,use(l){return ms(l,g,Oh)}}),g.rspack&&g.rspack(s),(g.watchChange||g.buildStart)&&s.hooks.make.tapPromise(g.name,async l=>{let T=Pi(s,l);if(g.watchChange&&(s.modifiedFiles||s.removedFiles)){let _=[];s.modifiedFiles&&s.modifiedFiles.forEach(D=>_.push(Promise.resolve(g.watchChange.call(T,D,{event:"update"})))),s.removedFiles&&s.removedFiles.forEach(D=>_.push(Promise.resolve(g.watchChange.call(T,D,{event:"delete"})))),await Promise.all(_)}if(g.buildStart)return await g.buildStart.call(T)}),g.buildEnd&&s.hooks.emit.tapPromise(g.name,async l=>{await g.buildEnd.call(Pi(s,l))}),g.writeBundle&&s.hooks.afterEmit.tapPromise(g.name,async()=>{await g.writeBundle()})}}})}function Dh(e){return(t=>{let s=Ke(e(t,{framework:"unloader"})).map(r=>Mi(r,"unloader"));return s.length===1?s[0]:s})}function Fh(e){return(t=>{let s=Ke(e(t,{framework:"vite"})).map(r=>Mi(r,"vite"));return s.length===1?s[0]:s})}var Bh=(0,Se.resolve)(si.dirname,"webpack/loaders/transform.mjs"),jh=(0,Se.resolve)(si.dirname,"webpack/loaders/load.mjs");function Uh(e){return t=>{let s=ah("webpack-virtual-modules");return{apply(r){let o=(0,Se.resolve)(r.options.context??ca.default.cwd(),"_virtual_"),h={framework:"webpack",webpack:{compiler:r}},p=Ke(e(t,h));for(let g of p){let v=Object.assign(g,{__unpluginMeta:h,__virtualModulePrefix:o}),l=new Set;if(v.resolveId){let T=r.options.plugins.find(w=>w instanceof s);T||(T=new s,r.options.plugins.push(T));let _=new Set;v.__vfsModules=_,v.__vfs=T;let D={apply(w){let E=w.ensureHook("resolve");w.getHook("resolve").tapAsync(v.name,async(F,V,G)=>{if(!F.request||Mt(F.request).startsWith(v.__virtualModulePrefix))return G();let Q=Mt(F.request),$=F.context,m=$.issuer!==""?$.issuer:void 0,ne=$.issuer==="";m?.startsWith(v.__virtualModulePrefix)&&(m=decodeURIComponent(m.slice(v.__virtualModulePrefix.length)));let z=new Set,ae=Ii({addWatchFile(I){z.add(I),V.fileDependencies?.add(I)},getWatchFiles(){return Array.from(z)}},r),X,Z={error(I){X==null?X=vn(I):console.error(`unplugin/webpack: multiple errors returned from resolveId hook: ${I}`)},warn(I){console.warn(`unplugin/webpack: warning from resolveId hook: ${I}`)}},{handler:M,filter:j}=Te("resolveId",v.resolveId);if(!j(Q))return G();let ce=await M.call({...ae,...Z},Q,m,{isEntry:ne});if(X!=null)return G(X);if(ce==null)return G();let ue=typeof ce=="string"?ce:ce.id;typeof ce!="string"&&ce.external===!0&&l.add(ue),st.default.existsSync(ue)||(ue=Mt(v.__virtualModulePrefix+encodeURIComponent(ue)),_.has(ue)||(v.__vfs.writeModule(ue,""),_.add(ue)));let O={...F,request:ue};w.doResolve(E,O,null,V,G)})}};r.options.resolve.plugins=r.options.resolve.plugins||[],r.options.resolve.plugins.push(D)}v.load&&r.options.module.rules.unshift({include(T){return Hh(T,v,l)},enforce:v.enforce,use:[{loader:jh,options:{plugin:v}}],type:"javascript/auto"}),v.transform&&r.options.module.rules.unshift({enforce:v.enforce,use(T){return ms(T,v,Bh)}}),v.webpack&&v.webpack(r),(v.watchChange||v.buildStart)&&r.hooks.make.tapPromise(v.name,async T=>{let _=Ii(ys(T),r,T);if(v.watchChange&&(r.modifiedFiles||r.removedFiles)){let D=[];r.modifiedFiles&&r.modifiedFiles.forEach(w=>D.push(Promise.resolve(v.watchChange.call(_,w,{event:"update"})))),r.removedFiles&&r.removedFiles.forEach(w=>D.push(Promise.resolve(v.watchChange.call(_,w,{event:"delete"})))),await Promise.all(D)}if(v.buildStart)return await v.buildStart.call(_)}),v.buildEnd&&r.hooks.emit.tapPromise(v.name,async T=>{await v.buildEnd.call(Ii(ys(T),r,T))}),v.writeBundle&&r.hooks.afterEmit.tapPromise(v.name,async()=>{await v.writeBundle()})}}}}}function Hh(e,t,s){if(e.startsWith(t.__virtualModulePrefix)&&(e=decodeURIComponent(e.slice(t.__virtualModulePrefix.length))),t.loadInclude&&!t.loadInclude(e))return!1;let{filter:r}=Te("load",t.load);return r(e)?!s.has(e):!1}function ha(e){return{get esbuild(){return xh(e)},get rollup(){return Lh(e)},get vite(){return Fh(e)},get rolldown(){return Rh(e)},get webpack(){return Uh(e)},get rspack(){return Vh(e)},get farm(){return Ih(e)},get unloader(){return Dh(e)},get bun(){return hh(e)},get raw(){return e}}}var Ki={};Er(Ki,{Node:()=>oi,Parser:()=>Ee,Position:()=>Bt,SourceLocation:()=>ni,TokContext:()=>Re,Token:()=>$i,TokenType:()=>fe,defaultOptions:()=>Di,getLineInfo:()=>Vs,isIdentifierChar:()=>ct,isIdentifierStart:()=>Ze,isNewLine:()=>Et,keywordTypes:()=>_t,lineBreak:()=>Me,lineBreakG:()=>va,nonASCIIwhitespace:()=>Ms,parse:()=>_l,parseExpressionAt:()=>El,tokContexts:()=>_e,tokTypes:()=>x,tokenizer:()=>Al,version:()=>Ya});var qh=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,78,5,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,199,7,137,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,55,9,266,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,233,0,3,0,8,1,6,0,475,6,110,6,6,9,4759,9,787719,239],xa=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,7,25,39,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,5,57,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,24,43,261,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,33,24,3,24,45,74,6,0,67,12,65,1,2,0,15,4,10,7381,42,31,98,114,8702,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,208,30,2,2,2,1,2,6,3,4,10,1,225,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4381,3,5773,3,7472,16,621,2467,541,1507,4938,6,8489],Wh="\u200C\u200D\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ADD\u1AE0-\u1AEB\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65",ya="\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088F\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5C\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDC-\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7DC\uA7F1-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC",Ps={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},Is="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",Gh={5:Is,"5module":Is+" export import",6:Is+" const class extends export import super"},ga=/^in(stanceof)?$/,$h=new RegExp("["+ya+"]"),Kh=new RegExp("["+ya+Wh+"]");function Ls(e,t){for(var s=65536,r=0;r<t.length;r+=2){if(s+=t[r],s>e)return!1;if(s+=t[r+1],s>=e)return!0}return!1}function Ze(e,t){return e<65?e===36:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&$h.test(String.fromCharCode(e)):t===!1?!1:Ls(e,xa)}function ct(e,t){return e<48?e===36:e<58?!0:e<65?!1:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&Kh.test(String.fromCharCode(e)):t===!1?!1:Ls(e,xa)||Ls(e,qh)}var fe=function(t,s){s===void 0&&(s={}),this.label=t,this.keyword=s.keyword,this.beforeExpr=!!s.beforeExpr,this.startsExpr=!!s.startsExpr,this.isLoop=!!s.isLoop,this.isAssign=!!s.isAssign,this.prefix=!!s.prefix,this.postfix=!!s.postfix,this.binop=s.binop||null,this.updateContext=null};function ze(e,t){return new fe(e,{beforeExpr:!0,binop:t})}var Xe={beforeExpr:!0},Be={startsExpr:!0},_t={};function ve(e,t){return t===void 0&&(t={}),t.keyword=e,_t[e]=new fe(e,t)}var x={num:new fe("num",Be),regexp:new fe("regexp",Be),string:new fe("string",Be),name:new fe("name",Be),privateId:new fe("privateId",Be),eof:new fe("eof"),bracketL:new fe("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new fe("]"),braceL:new fe("{",{beforeExpr:!0,startsExpr:!0}),braceR:new fe("}"),parenL:new fe("(",{beforeExpr:!0,startsExpr:!0}),parenR:new fe(")"),comma:new fe(",",Xe),semi:new fe(";",Xe),colon:new fe(":",Xe),dot:new fe("."),question:new fe("?",Xe),questionDot:new fe("?."),arrow:new fe("=>",Xe),template:new fe("template"),invalidTemplate:new fe("invalidTemplate"),ellipsis:new fe("...",Xe),backQuote:new fe("`",Be),dollarBraceL:new fe("${",{beforeExpr:!0,startsExpr:!0}),eq:new fe("=",{beforeExpr:!0,isAssign:!0}),assign:new fe("_=",{beforeExpr:!0,isAssign:!0}),incDec:new fe("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new fe("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:ze("||",1),logicalAND:ze("&&",2),bitwiseOR:ze("|",3),bitwiseXOR:ze("^",4),bitwiseAND:ze("&",5),equality:ze("==/!=/===/!==",6),relational:ze("</>/<=/>=",7),bitShift:ze("<</>>/>>>",8),plusMin:new fe("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:ze("%",10),star:ze("*",10),slash:ze("/",10),starstar:new fe("**",{beforeExpr:!0}),coalesce:ze("??",1),_break:ve("break"),_case:ve("case",Xe),_catch:ve("catch"),_continue:ve("continue"),_debugger:ve("debugger"),_default:ve("default",Xe),_do:ve("do",{isLoop:!0,beforeExpr:!0}),_else:ve("else",Xe),_finally:ve("finally"),_for:ve("for",{isLoop:!0}),_function:ve("function",Be),_if:ve("if"),_return:ve("return",Xe),_switch:ve("switch"),_throw:ve("throw",Xe),_try:ve("try"),_var:ve("var"),_const:ve("const"),_while:ve("while",{isLoop:!0}),_with:ve("with"),_new:ve("new",{beforeExpr:!0,startsExpr:!0}),_this:ve("this",Be),_super:ve("super",Be),_class:ve("class",Be),_extends:ve("extends",Xe),_export:ve("export"),_import:ve("import",Be),_null:ve("null",Be),_true:ve("true",Be),_false:ve("false",Be),_in:ve("in",{beforeExpr:!0,binop:7}),_instanceof:ve("instanceof",{beforeExpr:!0,binop:7}),_typeof:ve("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:ve("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:ve("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},Me=/\r\n?|\n|\u2028|\u2029/,va=new RegExp(Me.source,"g");function Et(e){return e===10||e===13||e===8232||e===8233}function ba(e,t,s){s===void 0&&(s=e.length);for(var r=t;r<s;r++){var o=e.charCodeAt(r);if(Et(o))return r<s-1&&o===13&&e.charCodeAt(r+1)===10?r+2:r+1}return-1}var Ms=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,Oe=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,Sa=Object.prototype,zh=Sa.hasOwnProperty,Xh=Sa.toString,jt=Object.hasOwn||(function(e,t){return zh.call(e,t)}),la=Array.isArray||(function(e){return Xh.call(e)==="[object Array]"}),pa=Object.create(null);function gt(e){return pa[e]||(pa[e]=new RegExp("^(?:"+e.replace(/ /g,"|")+")$"))}function ht(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10)+55296,(e&1023)+56320))}var Jh=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,Bt=function(t,s){this.line=t,this.column=s};Bt.prototype.offset=function(t){return new Bt(this.line,this.column+t)};var ni=function(t,s,r){this.start=s,this.end=r,t.sourceFile!==null&&(this.source=t.sourceFile)};function Vs(e,t){for(var s=1,r=0;;){var o=ba(e,r,t);if(o<0)return new Bt(s,t-r);++s,r=o}}var Di={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},fa=!1;function Qh(e){var t={};for(var s in Di)t[s]=e&&jt(e,s)?e[s]:Di[s];if(t.ecmaVersion==="latest"?t.ecmaVersion=1e8:t.ecmaVersion==null?(!fa&&typeof console=="object"&&console.warn&&(fa=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
|
|
17
|
+
Defaulting to 2020, but this will stop working in the future.`)),t.ecmaVersion=11):t.ecmaVersion>=2015&&(t.ecmaVersion-=2009),t.allowReserved==null&&(t.allowReserved=t.ecmaVersion<5),(!e||e.allowHashBang==null)&&(t.allowHashBang=t.ecmaVersion>=14),la(t.onToken)){var r=t.onToken;t.onToken=function(o){return r.push(o)}}if(la(t.onComment)&&(t.onComment=Yh(t,t.onComment)),t.sourceType==="commonjs"&&t.allowAwaitOutsideFunction)throw new Error("Cannot use allowAwaitOutsideFunction with sourceType: commonjs");return t}function Yh(e,t){return function(s,r,o,h,p,g){var v={type:s?"Block":"Line",value:r,start:o,end:h};e.locations&&(v.loc=new ni(this,p,g)),e.ranges&&(v.range=[o,h]),t.push(v)}}var wt=1,At=2,Ds=4,Ca=8,Fs=16,wa=32,Hi=64,_a=128,kt=256,ai=512,Ea=1024,qi=wt|At|kt;function Bs(e,t){return At|(e?Ds:0)|(t?Ca:0)}var Fi=0,js=1,pt=2,Aa=3,ka=4,Ta=5,Ee=function(t,s,r){this.options=t=Qh(t),this.sourceFile=t.sourceFile,this.keywords=gt(Gh[t.ecmaVersion>=6?6:t.sourceType==="module"?"5module":5]);var o="";t.allowReserved!==!0&&(o=Ps[t.ecmaVersion>=6?6:t.ecmaVersion===5?5:3],t.sourceType==="module"&&(o+=" await")),this.reservedWords=gt(o);var h=(o?o+" ":"")+Ps.strict;this.reservedWordsStrict=gt(h),this.reservedWordsStrictBind=gt(h+" "+Ps.strictBind),this.input=String(s),this.containsEsc=!1,r?(this.pos=r,this.lineStart=this.input.lastIndexOf(`
|
|
18
|
+
`,r-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(Me).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=x.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule=t.sourceType==="module",this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),this.pos===0&&t.allowHashBang&&this.input.slice(0,2)==="#!"&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(this.options.sourceType==="commonjs"?At:wt),this.regexpState=null,this.privateNameStack=[]},Qe={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowReturn:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},allowUsing:{configurable:!0},inClassStaticBlock:{configurable:!0}};Ee.prototype.parse=function(){var t=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(t)};Qe.inFunction.get=function(){return(this.currentVarScope().flags&At)>0};Qe.inGenerator.get=function(){return(this.currentVarScope().flags&Ca)>0};Qe.inAsync.get=function(){return(this.currentVarScope().flags&Ds)>0};Qe.canAwait.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e],s=t.flags;if(s&(kt|ai))return!1;if(s&At)return(s&Ds)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction};Qe.allowReturn.get=function(){return!!(this.inFunction||this.options.allowReturnOutsideFunction&&this.currentVarScope().flags&wt)};Qe.allowSuper.get=function(){var e=this.currentThisScope(),t=e.flags;return(t&Hi)>0||this.options.allowSuperOutsideMethod};Qe.allowDirectSuper.get=function(){return(this.currentThisScope().flags&_a)>0};Qe.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())};Qe.allowNewDotTarget.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e],s=t.flags;if(s&(kt|ai)||s&At&&!(s&Fs))return!0}return!1};Qe.allowUsing.get=function(){var e=this.currentScope(),t=e.flags;return!(t&Ea||!this.inModule&&t&wt)};Qe.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&kt)>0};Ee.extend=function(){for(var t=[],s=arguments.length;s--;)t[s]=arguments[s];for(var r=this,o=0;o<t.length;o++)r=t[o](r);return r};Ee.parse=function(t,s){return new this(s,t).parse()};Ee.parseExpressionAt=function(t,s,r){var o=new this(r,t,s);return o.nextToken(),o.parseExpression()};Ee.tokenizer=function(t,s){return new this(s,t)};Object.defineProperties(Ee.prototype,Qe);var Ve=Ee.prototype,Zh=/^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;Ve.strictDirective=function(e){if(this.options.ecmaVersion<5)return!1;for(;;){Oe.lastIndex=e,e+=Oe.exec(this.input)[0].length;var t=Zh.exec(this.input.slice(e));if(!t)return!1;if((t[1]||t[2])==="use strict"){Oe.lastIndex=e+t[0].length;var s=Oe.exec(this.input),r=s.index+s[0].length,o=this.input.charAt(r);return o===";"||o==="}"||Me.test(s[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(o)||o==="!"&&this.input.charAt(r+1)==="=")}e+=t[0].length,Oe.lastIndex=e,e+=Oe.exec(this.input)[0].length,this.input[e]===";"&&e++}};Ve.eat=function(e){return this.type===e?(this.next(),!0):!1};Ve.isContextual=function(e){return this.type===x.name&&this.value===e&&!this.containsEsc};Ve.eatContextual=function(e){return this.isContextual(e)?(this.next(),!0):!1};Ve.expectContextual=function(e){this.eatContextual(e)||this.unexpected()};Ve.canInsertSemicolon=function(){return this.type===x.eof||this.type===x.braceR||Me.test(this.input.slice(this.lastTokEnd,this.start))};Ve.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0};Ve.semicolon=function(){!this.eat(x.semi)&&!this.insertSemicolon()&&this.unexpected()};Ve.afterTrailingComma=function(e,t){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t||this.next(),!0};Ve.expect=function(e){this.eat(e)||this.unexpected()};Ve.unexpected=function(e){this.raise(e??this.start,"Unexpected token")};var Wi=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};Ve.checkPatternErrors=function(e,t){if(e){e.trailingComma>-1&&this.raiseRecoverable(e.trailingComma,"Comma is not permitted after the rest element");var s=t?e.parenthesizedAssign:e.parenthesizedBind;s>-1&&this.raiseRecoverable(s,t?"Assigning to rvalue":"Parenthesized pattern")}};Ve.checkExpressionErrors=function(e,t){if(!e)return!1;var s=e.shorthandAssign,r=e.doubleProto;if(!t)return s>=0||r>=0;s>=0&&this.raise(s,"Shorthand property assignments are valid only in destructuring patterns"),r>=0&&this.raiseRecoverable(r,"Redefinition of __proto__ property")};Ve.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,"Yield expression cannot be a default value"),this.awaitPos&&this.raise(this.awaitPos,"Await expression cannot be a default value")};Ve.isSimpleAssignTarget=function(e){return e.type==="ParenthesizedExpression"?this.isSimpleAssignTarget(e.expression):e.type==="Identifier"||e.type==="MemberExpression"};var se=Ee.prototype;se.parseTopLevel=function(e){var t=Object.create(null);for(e.body||(e.body=[]);this.type!==x.eof;){var s=this.parseStatement(null,!0,t);e.body.push(s)}if(this.inModule)for(var r=0,o=Object.keys(this.undefinedExports);r<o.length;r+=1){var h=o[r];this.raiseRecoverable(this.undefinedExports[h].start,"Export '"+h+"' is not defined")}return this.adaptDirectivePrologue(e.body),this.next(),e.sourceType=this.options.sourceType==="commonjs"?"script":this.options.sourceType,this.finishNode(e,"Program")};var Us={kind:"loop"},el={kind:"switch"};se.isLet=function(e){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;Oe.lastIndex=this.pos;var t=Oe.exec(this.input),s=this.pos+t[0].length,r=this.fullCharCodeAt(s);if(r===91||r===92)return!0;if(e)return!1;if(r===123)return!0;if(Ze(r)){var o=s;do s+=r<=65535?1:2;while(ct(r=this.fullCharCodeAt(s)));if(r===92)return!0;var h=this.input.slice(o,s);if(!ga.test(h))return!0}return!1};se.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;Oe.lastIndex=this.pos;var e=Oe.exec(this.input),t=this.pos+e[0].length,s;return!Me.test(this.input.slice(this.pos,t))&&this.input.slice(t,t+8)==="function"&&(t+8===this.input.length||!(ct(s=this.fullCharCodeAt(t+8))||s===92))};se.isUsingKeyword=function(e,t){if(this.options.ecmaVersion<17||!this.isContextual(e?"await":"using"))return!1;Oe.lastIndex=this.pos;var s=Oe.exec(this.input),r=this.pos+s[0].length;if(Me.test(this.input.slice(this.pos,r)))return!1;if(e){var o=r+5,h;if(this.input.slice(r,o)!=="using"||o===this.input.length||ct(h=this.fullCharCodeAt(o))||h===92)return!1;Oe.lastIndex=o;var p=Oe.exec(this.input);if(r=o+p[0].length,p&&Me.test(this.input.slice(o,r)))return!1}var g=this.fullCharCodeAt(r);if(!Ze(g)&&g!==92)return!1;var v=r;do r+=g<=65535?1:2;while(ct(g=this.fullCharCodeAt(r)));if(g===92)return!0;var l=this.input.slice(v,r);return!(ga.test(l)||t&&l==="of")};se.isAwaitUsing=function(e){return this.isUsingKeyword(!0,e)};se.isUsing=function(e){return this.isUsingKeyword(!1,e)};se.parseStatement=function(e,t,s){var r=this.type,o=this.startNode(),h;switch(this.isLet(e)&&(r=x._var,h="let"),r){case x._break:case x._continue:return this.parseBreakContinueStatement(o,r.keyword);case x._debugger:return this.parseDebuggerStatement(o);case x._do:return this.parseDoStatement(o);case x._for:return this.parseForStatement(o);case x._function:return e&&(this.strict||e!=="if"&&e!=="label")&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(o,!1,!e);case x._class:return e&&this.unexpected(),this.parseClass(o,!0);case x._if:return this.parseIfStatement(o);case x._return:return this.parseReturnStatement(o);case x._switch:return this.parseSwitchStatement(o);case x._throw:return this.parseThrowStatement(o);case x._try:return this.parseTryStatement(o);case x._const:case x._var:return h=h||this.value,e&&h!=="var"&&this.unexpected(),this.parseVarStatement(o,h);case x._while:return this.parseWhileStatement(o);case x._with:return this.parseWithStatement(o);case x.braceL:return this.parseBlock(!0,o);case x.semi:return this.parseEmptyStatement(o);case x._export:case x._import:if(this.options.ecmaVersion>10&&r===x._import){Oe.lastIndex=this.pos;var p=Oe.exec(this.input),g=this.pos+p[0].length,v=this.input.charCodeAt(g);if(v===40||v===46)return this.parseExpressionStatement(o,this.parseExpression())}return this.options.allowImportExportEverywhere||(t||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),r===x._import?this.parseImport(o):this.parseExport(o,s);default:if(this.isAsyncFunction())return e&&this.unexpected(),this.next(),this.parseFunctionStatement(o,!0,!e);var l=this.isAwaitUsing(!1)?"await using":this.isUsing(!1)?"using":null;if(l)return this.allowUsing||this.raise(this.start,"Using declaration cannot appear in the top level when source type is `script` or in the bare case statement"),l==="await using"&&(this.canAwait||this.raise(this.start,"Await using cannot appear outside of async function"),this.next()),this.next(),this.parseVar(o,!1,l),this.semicolon(),this.finishNode(o,"VariableDeclaration");var T=this.value,_=this.parseExpression();return r===x.name&&_.type==="Identifier"&&this.eat(x.colon)?this.parseLabeledStatement(o,T,_,e):this.parseExpressionStatement(o,_)}};se.parseBreakContinueStatement=function(e,t){var s=t==="break";this.next(),this.eat(x.semi)||this.insertSemicolon()?e.label=null:this.type!==x.name?this.unexpected():(e.label=this.parseIdent(),this.semicolon());for(var r=0;r<this.labels.length;++r){var o=this.labels[r];if((e.label==null||o.name===e.label.name)&&(o.kind!=null&&(s||o.kind==="loop")||e.label&&s))break}return r===this.labels.length&&this.raise(e.start,"Unsyntactic "+t),this.finishNode(e,s?"BreakStatement":"ContinueStatement")};se.parseDebuggerStatement=function(e){return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement")};se.parseDoStatement=function(e){return this.next(),this.labels.push(Us),e.body=this.parseStatement("do"),this.labels.pop(),this.expect(x._while),e.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(x.semi):this.semicolon(),this.finishNode(e,"DoWhileStatement")};se.parseForStatement=function(e){this.next();var t=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(Us),this.enterScope(0),this.expect(x.parenL),this.type===x.semi)return t>-1&&this.unexpected(t),this.parseFor(e,null);var s=this.isLet();if(this.type===x._var||this.type===x._const||s){var r=this.startNode(),o=s?"let":this.value;return this.next(),this.parseVar(r,!0,o),this.finishNode(r,"VariableDeclaration"),this.parseForAfterInit(e,r,t)}var h=this.isContextual("let"),p=!1,g=this.isUsing(!0)?"using":this.isAwaitUsing(!0)?"await using":null;if(g){var v=this.startNode();return this.next(),g==="await using"&&(this.canAwait||this.raise(this.start,"Await using cannot appear outside of async function"),this.next()),this.parseVar(v,!0,g),this.finishNode(v,"VariableDeclaration"),this.parseForAfterInit(e,v,t)}var l=this.containsEsc,T=new Wi,_=this.start,D=t>-1?this.parseExprSubscripts(T,"await"):this.parseExpression(!0,T);return this.type===x._in||(p=this.options.ecmaVersion>=6&&this.isContextual("of"))?(t>-1?(this.type===x._in&&this.unexpected(t),e.await=!0):p&&this.options.ecmaVersion>=8&&(D.start===_&&!l&&D.type==="Identifier"&&D.name==="async"?this.unexpected():this.options.ecmaVersion>=9&&(e.await=!1)),h&&p&&this.raise(D.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(D,!1,T),this.checkLValPattern(D),this.parseForIn(e,D)):(this.checkExpressionErrors(T,!0),t>-1&&this.unexpected(t),this.parseFor(e,D))};se.parseForAfterInit=function(e,t,s){return(this.type===x._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&t.declarations.length===1?(this.options.ecmaVersion>=9&&(this.type===x._in?s>-1&&this.unexpected(s):e.await=s>-1),this.parseForIn(e,t)):(s>-1&&this.unexpected(s),this.parseFor(e,t))};se.parseFunctionStatement=function(e,t,s){return this.next(),this.parseFunction(e,ri|(s?0:Rs),!1,t)};se.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement("if"),e.alternate=this.eat(x._else)?this.parseStatement("if"):null,this.finishNode(e,"IfStatement")};se.parseReturnStatement=function(e){return this.allowReturn||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(x.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")};se.parseSwitchStatement=function(e){this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(x.braceL),this.labels.push(el),this.enterScope(Ea);for(var t,s=!1;this.type!==x.braceR;)if(this.type===x._case||this.type===x._default){var r=this.type===x._case;t&&this.finishNode(t,"SwitchCase"),e.cases.push(t=this.startNode()),t.consequent=[],this.next(),r?t.test=this.parseExpression():(s&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),s=!0,t.test=null),this.expect(x.colon)}else t||this.unexpected(),t.consequent.push(this.parseStatement(null));return this.exitScope(),t&&this.finishNode(t,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(e,"SwitchStatement")};se.parseThrowStatement=function(e){return this.next(),Me.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")};var tl=[];se.parseCatchClauseParam=function(){var e=this.parseBindingAtom(),t=e.type==="Identifier";return this.enterScope(t?wa:0),this.checkLValPattern(e,t?ka:pt),this.expect(x.parenR),e};se.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===x._catch){var t=this.startNode();this.next(),this.eat(x.parenL)?t.param=this.parseCatchClauseParam():(this.options.ecmaVersion<10&&this.unexpected(),t.param=null,this.enterScope(0)),t.body=this.parseBlock(!1),this.exitScope(),e.handler=this.finishNode(t,"CatchClause")}return e.finalizer=this.eat(x._finally)?this.parseBlock():null,!e.handler&&!e.finalizer&&this.raise(e.start,"Missing catch or finally clause"),this.finishNode(e,"TryStatement")};se.parseVarStatement=function(e,t,s){return this.next(),this.parseVar(e,!1,t,s),this.semicolon(),this.finishNode(e,"VariableDeclaration")};se.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(Us),e.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(e,"WhileStatement")};se.parseWithStatement=function(e){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),e.object=this.parseParenExpression(),e.body=this.parseStatement("with"),this.finishNode(e,"WithStatement")};se.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,"EmptyStatement")};se.parseLabeledStatement=function(e,t,s,r){for(var o=0,h=this.labels;o<h.length;o+=1){var p=h[o];p.name===t&&this.raise(s.start,"Label '"+t+"' is already declared")}for(var g=this.type.isLoop?"loop":this.type===x._switch?"switch":null,v=this.labels.length-1;v>=0;v--){var l=this.labels[v];if(l.statementStart===e.start)l.statementStart=this.start,l.kind=g;else break}return this.labels.push({name:t,kind:g,statementStart:this.start}),e.body=this.parseStatement(r?r.indexOf("label")===-1?r+"label":r:"label"),this.labels.pop(),e.label=s,this.finishNode(e,"LabeledStatement")};se.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")};se.parseBlock=function(e,t,s){for(e===void 0&&(e=!0),t===void 0&&(t=this.startNode()),t.body=[],this.expect(x.braceL),e&&this.enterScope(0);this.type!==x.braceR;){var r=this.parseStatement(null);t.body.push(r)}return s&&(this.strict=!1),this.next(),e&&this.exitScope(),this.finishNode(t,"BlockStatement")};se.parseFor=function(e,t){return e.init=t,this.expect(x.semi),e.test=this.type===x.semi?null:this.parseExpression(),this.expect(x.semi),e.update=this.type===x.parenR?null:this.parseExpression(),this.expect(x.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,"ForStatement")};se.parseForIn=function(e,t){var s=this.type===x._in;return this.next(),t.type==="VariableDeclaration"&&t.declarations[0].init!=null&&(!s||this.options.ecmaVersion<8||this.strict||t.kind!=="var"||t.declarations[0].id.type!=="Identifier")&&this.raise(t.start,(s?"for-in":"for-of")+" loop variable declaration may not have an initializer"),e.left=t,e.right=s?this.parseExpression():this.parseMaybeAssign(),this.expect(x.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,s?"ForInStatement":"ForOfStatement")};se.parseVar=function(e,t,s,r){for(e.declarations=[],e.kind=s;;){var o=this.startNode();if(this.parseVarId(o,s),this.eat(x.eq)?o.init=this.parseMaybeAssign(t):!r&&s==="const"&&!(this.type===x._in||this.options.ecmaVersion>=6&&this.isContextual("of"))?this.unexpected():!r&&(s==="using"||s==="await using")&&this.options.ecmaVersion>=17&&this.type!==x._in&&!this.isContextual("of")?this.raise(this.lastTokEnd,"Missing initializer in "+s+" declaration"):!r&&o.id.type!=="Identifier"&&!(t&&(this.type===x._in||this.isContextual("of")))?this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):o.init=null,e.declarations.push(this.finishNode(o,"VariableDeclarator")),!this.eat(x.comma))break}return e};se.parseVarId=function(e,t){e.id=t==="using"||t==="await using"?this.parseIdent():this.parseBindingAtom(),this.checkLValPattern(e.id,t==="var"?js:pt,!1)};var ri=1,Rs=2,Pa=4;se.parseFunction=function(e,t,s,r,o){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!r)&&(this.type===x.star&&t&Rs&&this.unexpected(),e.generator=this.eat(x.star)),this.options.ecmaVersion>=8&&(e.async=!!r),t&ri&&(e.id=t&Pa&&this.type!==x.name?null:this.parseIdent(),e.id&&!(t&Rs)&&this.checkLValSimple(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?js:pt:Aa));var h=this.yieldPos,p=this.awaitPos,g=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(Bs(e.async,e.generator)),t&ri||(e.id=this.type===x.name?this.parseIdent():null),this.parseFunctionParams(e),this.parseFunctionBody(e,s,!1,o),this.yieldPos=h,this.awaitPos=p,this.awaitIdentPos=g,this.finishNode(e,t&ri?"FunctionDeclaration":"FunctionExpression")};se.parseFunctionParams=function(e){this.expect(x.parenL),e.params=this.parseBindingList(x.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()};se.parseClass=function(e,t){this.next();var s=this.strict;this.strict=!0,this.parseClassId(e,t),this.parseClassSuper(e);var r=this.enterClassBody(),o=this.startNode(),h=!1;for(o.body=[],this.expect(x.braceL);this.type!==x.braceR;){var p=this.parseClassElement(e.superClass!==null);p&&(o.body.push(p),p.type==="MethodDefinition"&&p.kind==="constructor"?(h&&this.raiseRecoverable(p.start,"Duplicate constructor in the same class"),h=!0):p.key&&p.key.type==="PrivateIdentifier"&&il(r,p)&&this.raiseRecoverable(p.key.start,"Identifier '#"+p.key.name+"' has already been declared"))}return this.strict=s,this.next(),e.body=this.finishNode(o,"ClassBody"),this.exitClassBody(),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")};se.parseClassElement=function(e){if(this.eat(x.semi))return null;var t=this.options.ecmaVersion,s=this.startNode(),r="",o=!1,h=!1,p="method",g=!1;if(this.eatContextual("static")){if(t>=13&&this.eat(x.braceL))return this.parseClassStaticBlock(s),s;this.isClassElementNameStart()||this.type===x.star?g=!0:r="static"}if(s.static=g,!r&&t>=8&&this.eatContextual("async")&&((this.isClassElementNameStart()||this.type===x.star)&&!this.canInsertSemicolon()?h=!0:r="async"),!r&&(t>=9||!h)&&this.eat(x.star)&&(o=!0),!r&&!h&&!o){var v=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?p=v:r=v)}if(r?(s.computed=!1,s.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),s.key.name=r,this.finishNode(s.key,"Identifier")):this.parseClassElementName(s),t<13||this.type===x.parenL||p!=="method"||o||h){var l=!s.static&&Bi(s,"constructor"),T=l&&e;l&&p!=="method"&&this.raise(s.key.start,"Constructor can't have get/set modifier"),s.kind=l?"constructor":p,this.parseClassMethod(s,o,h,T)}else this.parseClassField(s);return s};se.isClassElementNameStart=function(){return this.type===x.name||this.type===x.privateId||this.type===x.num||this.type===x.string||this.type===x.bracketL||this.type.keyword};se.parseClassElementName=function(e){this.type===x.privateId?(this.value==="constructor"&&this.raise(this.start,"Classes can't have an element named '#constructor'"),e.computed=!1,e.key=this.parsePrivateIdent()):this.parsePropertyName(e)};se.parseClassMethod=function(e,t,s,r){var o=e.key;e.kind==="constructor"?(t&&this.raise(o.start,"Constructor can't be a generator"),s&&this.raise(o.start,"Constructor can't be an async method")):e.static&&Bi(e,"prototype")&&this.raise(o.start,"Classes may not have a static property named prototype");var h=e.value=this.parseMethod(t,s,r);return e.kind==="get"&&h.params.length!==0&&this.raiseRecoverable(h.start,"getter should have no params"),e.kind==="set"&&h.params.length!==1&&this.raiseRecoverable(h.start,"setter should have exactly one param"),e.kind==="set"&&h.params[0].type==="RestElement"&&this.raiseRecoverable(h.params[0].start,"Setter cannot use rest params"),this.finishNode(e,"MethodDefinition")};se.parseClassField=function(e){return Bi(e,"constructor")?this.raise(e.key.start,"Classes can't have a field named 'constructor'"):e.static&&Bi(e,"prototype")&&this.raise(e.key.start,"Classes can't have a static field named 'prototype'"),this.eat(x.eq)?(this.enterScope(ai|Hi),e.value=this.parseMaybeAssign(),this.exitScope()):e.value=null,this.semicolon(),this.finishNode(e,"PropertyDefinition")};se.parseClassStaticBlock=function(e){e.body=[];var t=this.labels;for(this.labels=[],this.enterScope(kt|Hi);this.type!==x.braceR;){var s=this.parseStatement(null);e.body.push(s)}return this.next(),this.exitScope(),this.labels=t,this.finishNode(e,"StaticBlock")};se.parseClassId=function(e,t){this.type===x.name?(e.id=this.parseIdent(),t&&this.checkLValSimple(e.id,pt,!1)):(t===!0&&this.unexpected(),e.id=null)};se.parseClassSuper=function(e){e.superClass=this.eat(x._extends)?this.parseExprSubscripts(null,!1):null};se.enterClassBody=function(){var e={declared:Object.create(null),used:[]};return this.privateNameStack.push(e),e.declared};se.exitClassBody=function(){var e=this.privateNameStack.pop(),t=e.declared,s=e.used;if(this.options.checkPrivateFields)for(var r=this.privateNameStack.length,o=r===0?null:this.privateNameStack[r-1],h=0;h<s.length;++h){var p=s[h];jt(t,p.name)||(o?o.used.push(p):this.raiseRecoverable(p.start,"Private field '#"+p.name+"' must be declared in an enclosing class"))}};function il(e,t){var s=t.key.name,r=e[s],o="true";return t.type==="MethodDefinition"&&(t.kind==="get"||t.kind==="set")&&(o=(t.static?"s":"i")+t.kind),r==="iget"&&o==="iset"||r==="iset"&&o==="iget"||r==="sget"&&o==="sset"||r==="sset"&&o==="sget"?(e[s]="true",!1):r?!0:(e[s]=o,!1)}function Bi(e,t){var s=e.computed,r=e.key;return!s&&(r.type==="Identifier"&&r.name===t||r.type==="Literal"&&r.value===t)}se.parseExportAllDeclaration=function(e,t){return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(e.exported=this.parseModuleExportName(),this.checkExport(t,e.exported,this.lastTokStart)):e.exported=null),this.expectContextual("from"),this.type!==x.string&&this.unexpected(),e.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(e,"ExportAllDeclaration")};se.parseExport=function(e,t){if(this.next(),this.eat(x.star))return this.parseExportAllDeclaration(e,t);if(this.eat(x._default))return this.checkExport(t,"default",this.lastTokStart),e.declaration=this.parseExportDefaultDeclaration(),this.finishNode(e,"ExportDefaultDeclaration");if(this.shouldParseExportStatement())e.declaration=this.parseExportDeclaration(e),e.declaration.type==="VariableDeclaration"?this.checkVariableExport(t,e.declaration.declarations):this.checkExport(t,e.declaration.id,e.declaration.id.start),e.specifiers=[],e.source=null,this.options.ecmaVersion>=16&&(e.attributes=[]);else{if(e.declaration=null,e.specifiers=this.parseExportSpecifiers(t),this.eatContextual("from"))this.type!==x.string&&this.unexpected(),e.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause());else{for(var s=0,r=e.specifiers;s<r.length;s+=1){var o=r[s];this.checkUnreserved(o.local),this.checkLocalExport(o.local),o.local.type==="Literal"&&this.raise(o.local.start,"A string literal cannot be used as an exported binding without `from`.")}e.source=null,this.options.ecmaVersion>=16&&(e.attributes=[])}this.semicolon()}return this.finishNode(e,"ExportNamedDeclaration")};se.parseExportDeclaration=function(e){return this.parseStatement(null)};se.parseExportDefaultDeclaration=function(){var e;if(this.type===x._function||(e=this.isAsyncFunction())){var t=this.startNode();return this.next(),e&&this.next(),this.parseFunction(t,ri|Pa,!1,e)}else if(this.type===x._class){var s=this.startNode();return this.parseClass(s,"nullableID")}else{var r=this.parseMaybeAssign();return this.semicolon(),r}};se.checkExport=function(e,t,s){e&&(typeof t!="string"&&(t=t.type==="Identifier"?t.name:t.value),jt(e,t)&&this.raiseRecoverable(s,"Duplicate export '"+t+"'"),e[t]=!0)};se.checkPatternExport=function(e,t){var s=t.type;if(s==="Identifier")this.checkExport(e,t,t.start);else if(s==="ObjectPattern")for(var r=0,o=t.properties;r<o.length;r+=1){var h=o[r];this.checkPatternExport(e,h)}else if(s==="ArrayPattern")for(var p=0,g=t.elements;p<g.length;p+=1){var v=g[p];v&&this.checkPatternExport(e,v)}else s==="Property"?this.checkPatternExport(e,t.value):s==="AssignmentPattern"?this.checkPatternExport(e,t.left):s==="RestElement"&&this.checkPatternExport(e,t.argument)};se.checkVariableExport=function(e,t){if(e)for(var s=0,r=t;s<r.length;s+=1){var o=r[s];this.checkPatternExport(e,o.id)}};se.shouldParseExportStatement=function(){return this.type.keyword==="var"||this.type.keyword==="const"||this.type.keyword==="class"||this.type.keyword==="function"||this.isLet()||this.isAsyncFunction()};se.parseExportSpecifier=function(e){var t=this.startNode();return t.local=this.parseModuleExportName(),t.exported=this.eatContextual("as")?this.parseModuleExportName():t.local,this.checkExport(e,t.exported,t.exported.start),this.finishNode(t,"ExportSpecifier")};se.parseExportSpecifiers=function(e){var t=[],s=!0;for(this.expect(x.braceL);!this.eat(x.braceR);){if(s)s=!1;else if(this.expect(x.comma),this.afterTrailingComma(x.braceR))break;t.push(this.parseExportSpecifier(e))}return t};se.parseImport=function(e){return this.next(),this.type===x.string?(e.specifiers=tl,e.source=this.parseExprAtom()):(e.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),e.source=this.type===x.string?this.parseExprAtom():this.unexpected()),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(e,"ImportDeclaration")};se.parseImportSpecifier=function(){var e=this.startNode();return e.imported=this.parseModuleExportName(),this.eatContextual("as")?e.local=this.parseIdent():(this.checkUnreserved(e.imported),e.local=e.imported),this.checkLValSimple(e.local,pt),this.finishNode(e,"ImportSpecifier")};se.parseImportDefaultSpecifier=function(){var e=this.startNode();return e.local=this.parseIdent(),this.checkLValSimple(e.local,pt),this.finishNode(e,"ImportDefaultSpecifier")};se.parseImportNamespaceSpecifier=function(){var e=this.startNode();return this.next(),this.expectContextual("as"),e.local=this.parseIdent(),this.checkLValSimple(e.local,pt),this.finishNode(e,"ImportNamespaceSpecifier")};se.parseImportSpecifiers=function(){var e=[],t=!0;if(this.type===x.name&&(e.push(this.parseImportDefaultSpecifier()),!this.eat(x.comma)))return e;if(this.type===x.star)return e.push(this.parseImportNamespaceSpecifier()),e;for(this.expect(x.braceL);!this.eat(x.braceR);){if(t)t=!1;else if(this.expect(x.comma),this.afterTrailingComma(x.braceR))break;e.push(this.parseImportSpecifier())}return e};se.parseWithClause=function(){var e=[];if(!this.eat(x._with))return e;this.expect(x.braceL);for(var t={},s=!0;!this.eat(x.braceR);){if(s)s=!1;else if(this.expect(x.comma),this.afterTrailingComma(x.braceR))break;var r=this.parseImportAttribute(),o=r.key.type==="Identifier"?r.key.name:r.key.value;jt(t,o)&&this.raiseRecoverable(r.key.start,"Duplicate attribute key '"+o+"'"),t[o]=!0,e.push(r)}return e};se.parseImportAttribute=function(){var e=this.startNode();return e.key=this.type===x.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never"),this.expect(x.colon),this.type!==x.string&&this.unexpected(),e.value=this.parseExprAtom(),this.finishNode(e,"ImportAttribute")};se.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===x.string){var e=this.parseLiteral(this.value);return Jh.test(e.value)&&this.raise(e.start,"An export name cannot include a lone surrogate."),e}return this.parseIdent(!0)};se.adaptDirectivePrologue=function(e){for(var t=0;t<e.length&&this.isDirectiveCandidate(e[t]);++t)e[t].directive=e[t].expression.raw.slice(1,-1)};se.isDirectiveCandidate=function(e){return this.options.ecmaVersion>=5&&e.type==="ExpressionStatement"&&e.expression.type==="Literal"&&typeof e.expression.value=="string"&&(this.input[e.start]==='"'||this.input[e.start]==="'")};var Ye=Ee.prototype;Ye.toAssignable=function(e,t,s){if(this.options.ecmaVersion>=6&&e)switch(e.type){case"Identifier":this.inAsync&&e.name==="await"&&this.raise(e.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":e.type="ObjectPattern",s&&this.checkPatternErrors(s,!0);for(var r=0,o=e.properties;r<o.length;r+=1){var h=o[r];this.toAssignable(h,t),h.type==="RestElement"&&(h.argument.type==="ArrayPattern"||h.argument.type==="ObjectPattern")&&this.raise(h.argument.start,"Unexpected token")}break;case"Property":e.kind!=="init"&&this.raise(e.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(e.value,t);break;case"ArrayExpression":e.type="ArrayPattern",s&&this.checkPatternErrors(s,!0),this.toAssignableList(e.elements,t);break;case"SpreadElement":e.type="RestElement",this.toAssignable(e.argument,t),e.argument.type==="AssignmentPattern"&&this.raise(e.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":e.operator!=="="&&this.raise(e.left.end,"Only '=' operator can be used for specifying default value."),e.type="AssignmentPattern",delete e.operator,this.toAssignable(e.left,t);break;case"ParenthesizedExpression":this.toAssignable(e.expression,t,s);break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!t)break;default:this.raise(e.start,"Assigning to rvalue")}else s&&this.checkPatternErrors(s,!0);return e};Ye.toAssignableList=function(e,t){for(var s=e.length,r=0;r<s;r++){var o=e[r];o&&this.toAssignable(o,t)}if(s){var h=e[s-1];this.options.ecmaVersion===6&&t&&h&&h.type==="RestElement"&&h.argument.type!=="Identifier"&&this.unexpected(h.argument.start)}return e};Ye.parseSpread=function(e){var t=this.startNode();return this.next(),t.argument=this.parseMaybeAssign(!1,e),this.finishNode(t,"SpreadElement")};Ye.parseRestBinding=function(){var e=this.startNode();return this.next(),this.options.ecmaVersion===6&&this.type!==x.name&&this.unexpected(),e.argument=this.parseBindingAtom(),this.finishNode(e,"RestElement")};Ye.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case x.bracketL:var e=this.startNode();return this.next(),e.elements=this.parseBindingList(x.bracketR,!0,!0),this.finishNode(e,"ArrayPattern");case x.braceL:return this.parseObj(!0)}return this.parseIdent()};Ye.parseBindingList=function(e,t,s,r){for(var o=[],h=!0;!this.eat(e);)if(h?h=!1:this.expect(x.comma),t&&this.type===x.comma)o.push(null);else{if(s&&this.afterTrailingComma(e))break;if(this.type===x.ellipsis){var p=this.parseRestBinding();this.parseBindingListItem(p),o.push(p),this.type===x.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.expect(e);break}else o.push(this.parseAssignableListItem(r))}return o};Ye.parseAssignableListItem=function(e){var t=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(t),t};Ye.parseBindingListItem=function(e){return e};Ye.parseMaybeDefault=function(e,t,s){if(s=s||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(x.eq))return s;var r=this.startNodeAt(e,t);return r.left=s,r.right=this.parseMaybeAssign(),this.finishNode(r,"AssignmentPattern")};Ye.checkLValSimple=function(e,t,s){t===void 0&&(t=Fi);var r=t!==Fi;switch(e.type){case"Identifier":this.strict&&this.reservedWordsStrictBind.test(e.name)&&this.raiseRecoverable(e.start,(r?"Binding ":"Assigning to ")+e.name+" in strict mode"),r&&(t===pt&&e.name==="let"&&this.raiseRecoverable(e.start,"let is disallowed as a lexically bound name"),s&&(jt(s,e.name)&&this.raiseRecoverable(e.start,"Argument name clash"),s[e.name]=!0),t!==Ta&&this.declareName(e.name,t,e.start));break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":r&&this.raiseRecoverable(e.start,"Binding member expression");break;case"ParenthesizedExpression":return r&&this.raiseRecoverable(e.start,"Binding parenthesized expression"),this.checkLValSimple(e.expression,t,s);default:this.raise(e.start,(r?"Binding":"Assigning to")+" rvalue")}};Ye.checkLValPattern=function(e,t,s){switch(t===void 0&&(t=Fi),e.type){case"ObjectPattern":for(var r=0,o=e.properties;r<o.length;r+=1){var h=o[r];this.checkLValInnerPattern(h,t,s)}break;case"ArrayPattern":for(var p=0,g=e.elements;p<g.length;p+=1){var v=g[p];v&&this.checkLValInnerPattern(v,t,s)}break;default:this.checkLValSimple(e,t,s)}};Ye.checkLValInnerPattern=function(e,t,s){switch(t===void 0&&(t=Fi),e.type){case"Property":this.checkLValInnerPattern(e.value,t,s);break;case"AssignmentPattern":this.checkLValPattern(e.left,t,s);break;case"RestElement":this.checkLValPattern(e.argument,t,s);break;default:this.checkLValPattern(e,t,s)}};var Re=function(t,s,r,o,h){this.token=t,this.isExpr=!!s,this.preserveSpace=!!r,this.override=o,this.generator=!!h},_e={b_stat:new Re("{",!1),b_expr:new Re("{",!0),b_tmpl:new Re("${",!1),p_stat:new Re("(",!1),p_expr:new Re("(",!0),q_tmpl:new Re("`",!0,!0,function(e){return e.tryReadTemplateToken()}),f_stat:new Re("function",!1),f_expr:new Re("function",!0),f_expr_gen:new Re("function",!0,!1,null,!0),f_gen:new Re("function",!1,!1,null,!0)},Ut=Ee.prototype;Ut.initialContext=function(){return[_e.b_stat]};Ut.curContext=function(){return this.context[this.context.length-1]};Ut.braceIsBlock=function(e){var t=this.curContext();return t===_e.f_expr||t===_e.f_stat?!0:e===x.colon&&(t===_e.b_stat||t===_e.b_expr)?!t.isExpr:e===x._return||e===x.name&&this.exprAllowed?Me.test(this.input.slice(this.lastTokEnd,this.start)):e===x._else||e===x.semi||e===x.eof||e===x.parenR||e===x.arrow?!0:e===x.braceL?t===_e.b_stat:e===x._var||e===x._const||e===x.name?!1:!this.exprAllowed};Ut.inGeneratorContext=function(){for(var e=this.context.length-1;e>=1;e--){var t=this.context[e];if(t.token==="function")return t.generator}return!1};Ut.updateContext=function(e){var t,s=this.type;s.keyword&&e===x.dot?this.exprAllowed=!1:(t=s.updateContext)?t.call(this,e):this.exprAllowed=s.beforeExpr};Ut.overrideContext=function(e){this.curContext()!==e&&(this.context[this.context.length-1]=e)};x.parenR.updateContext=x.braceR.updateContext=function(){if(this.context.length===1){this.exprAllowed=!0;return}var e=this.context.pop();e===_e.b_stat&&this.curContext().token==="function"&&(e=this.context.pop()),this.exprAllowed=!e.isExpr};x.braceL.updateContext=function(e){this.context.push(this.braceIsBlock(e)?_e.b_stat:_e.b_expr),this.exprAllowed=!0};x.dollarBraceL.updateContext=function(){this.context.push(_e.b_tmpl),this.exprAllowed=!0};x.parenL.updateContext=function(e){var t=e===x._if||e===x._for||e===x._with||e===x._while;this.context.push(t?_e.p_stat:_e.p_expr),this.exprAllowed=!0};x.incDec.updateContext=function(){};x._function.updateContext=x._class.updateContext=function(e){e.beforeExpr&&e!==x._else&&!(e===x.semi&&this.curContext()!==_e.p_stat)&&!(e===x._return&&Me.test(this.input.slice(this.lastTokEnd,this.start)))&&!((e===x.colon||e===x.braceL)&&this.curContext()===_e.b_stat)?this.context.push(_e.f_expr):this.context.push(_e.f_stat),this.exprAllowed=!1};x.colon.updateContext=function(){this.curContext().token==="function"&&this.context.pop(),this.exprAllowed=!0};x.backQuote.updateContext=function(){this.curContext()===_e.q_tmpl?this.context.pop():this.context.push(_e.q_tmpl),this.exprAllowed=!1};x.star.updateContext=function(e){if(e===x._function){var t=this.context.length-1;this.context[t]===_e.f_expr?this.context[t]=_e.f_expr_gen:this.context[t]=_e.f_gen}this.exprAllowed=!0};x.name.updateContext=function(e){var t=!1;this.options.ecmaVersion>=6&&e!==x.dot&&(this.value==="of"&&!this.exprAllowed||this.value==="yield"&&this.inGeneratorContext())&&(t=!0),this.exprAllowed=t};var pe=Ee.prototype;pe.checkPropClash=function(e,t,s){if(!(this.options.ecmaVersion>=9&&e.type==="SpreadElement")&&!(this.options.ecmaVersion>=6&&(e.computed||e.method||e.shorthand))){var r=e.key,o;switch(r.type){case"Identifier":o=r.name;break;case"Literal":o=String(r.value);break;default:return}var h=e.kind;if(this.options.ecmaVersion>=6){o==="__proto__"&&h==="init"&&(t.proto&&(s?s.doubleProto<0&&(s.doubleProto=r.start):this.raiseRecoverable(r.start,"Redefinition of __proto__ property")),t.proto=!0);return}o="$"+o;var p=t[o];if(p){var g;h==="init"?g=this.strict&&p.init||p.get||p.set:g=p.init||p[h],g&&this.raiseRecoverable(r.start,"Redefinition of property")}else p=t[o]={init:!1,get:!1,set:!1};p[h]=!0}};pe.parseExpression=function(e,t){var s=this.start,r=this.startLoc,o=this.parseMaybeAssign(e,t);if(this.type===x.comma){var h=this.startNodeAt(s,r);for(h.expressions=[o];this.eat(x.comma);)h.expressions.push(this.parseMaybeAssign(e,t));return this.finishNode(h,"SequenceExpression")}return o};pe.parseMaybeAssign=function(e,t,s){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(e);this.exprAllowed=!1}var r=!1,o=-1,h=-1,p=-1;t?(o=t.parenthesizedAssign,h=t.trailingComma,p=t.doubleProto,t.parenthesizedAssign=t.trailingComma=-1):(t=new Wi,r=!0);var g=this.start,v=this.startLoc;(this.type===x.parenL||this.type===x.name)&&(this.potentialArrowAt=this.start,this.potentialArrowInForAwait=e==="await");var l=this.parseMaybeConditional(e,t);if(s&&(l=s.call(this,l,g,v)),this.type.isAssign){var T=this.startNodeAt(g,v);return T.operator=this.value,this.type===x.eq&&(l=this.toAssignable(l,!1,t)),r||(t.parenthesizedAssign=t.trailingComma=t.doubleProto=-1),t.shorthandAssign>=l.start&&(t.shorthandAssign=-1),this.type===x.eq?this.checkLValPattern(l):this.checkLValSimple(l),T.left=l,this.next(),T.right=this.parseMaybeAssign(e),p>-1&&(t.doubleProto=p),this.finishNode(T,"AssignmentExpression")}else r&&this.checkExpressionErrors(t,!0);return o>-1&&(t.parenthesizedAssign=o),h>-1&&(t.trailingComma=h),l};pe.parseMaybeConditional=function(e,t){var s=this.start,r=this.startLoc,o=this.parseExprOps(e,t);if(this.checkExpressionErrors(t))return o;if(this.eat(x.question)){var h=this.startNodeAt(s,r);return h.test=o,h.consequent=this.parseMaybeAssign(),this.expect(x.colon),h.alternate=this.parseMaybeAssign(e),this.finishNode(h,"ConditionalExpression")}return o};pe.parseExprOps=function(e,t){var s=this.start,r=this.startLoc,o=this.parseMaybeUnary(t,!1,!1,e);return this.checkExpressionErrors(t)||o.start===s&&o.type==="ArrowFunctionExpression"?o:this.parseExprOp(o,s,r,-1,e)};pe.parseExprOp=function(e,t,s,r,o){var h=this.type.binop;if(h!=null&&(!o||this.type!==x._in)&&h>r){var p=this.type===x.logicalOR||this.type===x.logicalAND,g=this.type===x.coalesce;g&&(h=x.logicalAND.binop);var v=this.value;this.next();var l=this.start,T=this.startLoc,_=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,o),l,T,h,o),D=this.buildBinary(t,s,e,_,v,p||g);return(p&&this.type===x.coalesce||g&&(this.type===x.logicalOR||this.type===x.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(D,t,s,r,o)}return e};pe.buildBinary=function(e,t,s,r,o,h){r.type==="PrivateIdentifier"&&this.raise(r.start,"Private identifier can only be left side of binary expression");var p=this.startNodeAt(e,t);return p.left=s,p.operator=o,p.right=r,this.finishNode(p,h?"LogicalExpression":"BinaryExpression")};pe.parseMaybeUnary=function(e,t,s,r){var o=this.start,h=this.startLoc,p;if(this.isContextual("await")&&this.canAwait)p=this.parseAwait(r),t=!0;else if(this.type.prefix){var g=this.startNode(),v=this.type===x.incDec;g.operator=this.value,g.prefix=!0,this.next(),g.argument=this.parseMaybeUnary(null,!0,v,r),this.checkExpressionErrors(e,!0),v?this.checkLValSimple(g.argument):this.strict&&g.operator==="delete"&&Ia(g.argument)?this.raiseRecoverable(g.start,"Deleting local variable in strict mode"):g.operator==="delete"&&Os(g.argument)?this.raiseRecoverable(g.start,"Private fields can not be deleted"):t=!0,p=this.finishNode(g,v?"UpdateExpression":"UnaryExpression")}else if(!t&&this.type===x.privateId)(r||this.privateNameStack.length===0)&&this.options.checkPrivateFields&&this.unexpected(),p=this.parsePrivateIdent(),this.type!==x._in&&this.unexpected();else{if(p=this.parseExprSubscripts(e,r),this.checkExpressionErrors(e))return p;for(;this.type.postfix&&!this.canInsertSemicolon();){var l=this.startNodeAt(o,h);l.operator=this.value,l.prefix=!1,l.argument=p,this.checkLValSimple(p),this.next(),p=this.finishNode(l,"UpdateExpression")}}if(!s&&this.eat(x.starstar))if(t)this.unexpected(this.lastTokStart);else return this.buildBinary(o,h,p,this.parseMaybeUnary(null,!1,!1,r),"**",!1);else return p};function Ia(e){return e.type==="Identifier"||e.type==="ParenthesizedExpression"&&Ia(e.expression)}function Os(e){return e.type==="MemberExpression"&&e.property.type==="PrivateIdentifier"||e.type==="ChainExpression"&&Os(e.expression)||e.type==="ParenthesizedExpression"&&Os(e.expression)}pe.parseExprSubscripts=function(e,t){var s=this.start,r=this.startLoc,o=this.parseExprAtom(e,t);if(o.type==="ArrowFunctionExpression"&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==")")return o;var h=this.parseSubscripts(o,s,r,!1,t);return e&&h.type==="MemberExpression"&&(e.parenthesizedAssign>=h.start&&(e.parenthesizedAssign=-1),e.parenthesizedBind>=h.start&&(e.parenthesizedBind=-1),e.trailingComma>=h.start&&(e.trailingComma=-1)),h};pe.parseSubscripts=function(e,t,s,r,o){for(var h=this.options.ecmaVersion>=8&&e.type==="Identifier"&&e.name==="async"&&this.lastTokEnd===e.end&&!this.canInsertSemicolon()&&e.end-e.start===5&&this.potentialArrowAt===e.start,p=!1;;){var g=this.parseSubscript(e,t,s,r,h,p,o);if(g.optional&&(p=!0),g===e||g.type==="ArrowFunctionExpression"){if(p){var v=this.startNodeAt(t,s);v.expression=g,g=this.finishNode(v,"ChainExpression")}return g}e=g}};pe.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(x.arrow)};pe.parseSubscriptAsyncArrow=function(e,t,s,r){return this.parseArrowExpression(this.startNodeAt(e,t),s,!0,r)};pe.parseSubscript=function(e,t,s,r,o,h,p){var g=this.options.ecmaVersion>=11,v=g&&this.eat(x.questionDot);r&&v&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var l=this.eat(x.bracketL);if(l||v&&this.type!==x.parenL&&this.type!==x.backQuote||this.eat(x.dot)){var T=this.startNodeAt(t,s);T.object=e,l?(T.property=this.parseExpression(),this.expect(x.bracketR)):this.type===x.privateId&&e.type!=="Super"?T.property=this.parsePrivateIdent():T.property=this.parseIdent(this.options.allowReserved!=="never"),T.computed=!!l,g&&(T.optional=v),e=this.finishNode(T,"MemberExpression")}else if(!r&&this.eat(x.parenL)){var _=new Wi,D=this.yieldPos,w=this.awaitPos,E=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var F=this.parseExprList(x.parenR,this.options.ecmaVersion>=8,!1,_);if(o&&!v&&this.shouldParseAsyncArrow())return this.checkPatternErrors(_,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=D,this.awaitPos=w,this.awaitIdentPos=E,this.parseSubscriptAsyncArrow(t,s,F,p);this.checkExpressionErrors(_,!0),this.yieldPos=D||this.yieldPos,this.awaitPos=w||this.awaitPos,this.awaitIdentPos=E||this.awaitIdentPos;var V=this.startNodeAt(t,s);V.callee=e,V.arguments=F,g&&(V.optional=v),e=this.finishNode(V,"CallExpression")}else if(this.type===x.backQuote){(v||h)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var G=this.startNodeAt(t,s);G.tag=e,G.quasi=this.parseTemplate({isTagged:!0}),e=this.finishNode(G,"TaggedTemplateExpression")}return e};pe.parseExprAtom=function(e,t,s){this.type===x.slash&&this.readRegexp();var r,o=this.potentialArrowAt===this.start;switch(this.type){case x._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),r=this.startNode(),this.next(),this.type===x.parenL&&!this.allowDirectSuper&&this.raise(r.start,"super() call outside constructor of a subclass"),this.type!==x.dot&&this.type!==x.bracketL&&this.type!==x.parenL&&this.unexpected(),this.finishNode(r,"Super");case x._this:return r=this.startNode(),this.next(),this.finishNode(r,"ThisExpression");case x.name:var h=this.start,p=this.startLoc,g=this.containsEsc,v=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!g&&v.name==="async"&&!this.canInsertSemicolon()&&this.eat(x._function))return this.overrideContext(_e.f_expr),this.parseFunction(this.startNodeAt(h,p),0,!1,!0,t);if(o&&!this.canInsertSemicolon()){if(this.eat(x.arrow))return this.parseArrowExpression(this.startNodeAt(h,p),[v],!1,t);if(this.options.ecmaVersion>=8&&v.name==="async"&&this.type===x.name&&!g&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc))return v=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(x.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(h,p),[v],!0,t)}return v;case x.regexp:var l=this.value;return r=this.parseLiteral(l.value),r.regex={pattern:l.pattern,flags:l.flags},r;case x.num:case x.string:return this.parseLiteral(this.value);case x._null:case x._true:case x._false:return r=this.startNode(),r.value=this.type===x._null?null:this.type===x._true,r.raw=this.type.keyword,this.next(),this.finishNode(r,"Literal");case x.parenL:var T=this.start,_=this.parseParenAndDistinguishExpression(o,t);return e&&(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(_)&&(e.parenthesizedAssign=T),e.parenthesizedBind<0&&(e.parenthesizedBind=T)),_;case x.bracketL:return r=this.startNode(),this.next(),r.elements=this.parseExprList(x.bracketR,!0,!0,e),this.finishNode(r,"ArrayExpression");case x.braceL:return this.overrideContext(_e.b_expr),this.parseObj(!1,e);case x._function:return r=this.startNode(),this.next(),this.parseFunction(r,0);case x._class:return this.parseClass(this.startNode(),!1);case x._new:return this.parseNew();case x.backQuote:return this.parseTemplate();case x._import:return this.options.ecmaVersion>=11?this.parseExprImport(s):this.unexpected();default:return this.parseExprAtomDefault()}};pe.parseExprAtomDefault=function(){this.unexpected()};pe.parseExprImport=function(e){var t=this.startNode();if(this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import"),this.next(),this.type===x.parenL&&!e)return this.parseDynamicImport(t);if(this.type===x.dot){var s=this.startNodeAt(t.start,t.loc&&t.loc.start);return s.name="import",t.meta=this.finishNode(s,"Identifier"),this.parseImportMeta(t)}else this.unexpected()};pe.parseDynamicImport=function(e){if(this.next(),e.source=this.parseMaybeAssign(),this.options.ecmaVersion>=16)this.eat(x.parenR)?e.options=null:(this.expect(x.comma),this.afterTrailingComma(x.parenR)?e.options=null:(e.options=this.parseMaybeAssign(),this.eat(x.parenR)||(this.expect(x.comma),this.afterTrailingComma(x.parenR)||this.unexpected())));else if(!this.eat(x.parenR)){var t=this.start;this.eat(x.comma)&&this.eat(x.parenR)?this.raiseRecoverable(t,"Trailing comma is not allowed in import()"):this.unexpected(t)}return this.finishNode(e,"ImportExpression")};pe.parseImportMeta=function(e){this.next();var t=this.containsEsc;return e.property=this.parseIdent(!0),e.property.name!=="meta"&&this.raiseRecoverable(e.property.start,"The only valid meta property for import is 'import.meta'"),t&&this.raiseRecoverable(e.start,"'import.meta' must not contain escaped characters"),this.options.sourceType!=="module"&&!this.options.allowImportExportEverywhere&&this.raiseRecoverable(e.start,"Cannot use 'import.meta' outside a module"),this.finishNode(e,"MetaProperty")};pe.parseLiteral=function(e){var t=this.startNode();return t.value=e,t.raw=this.input.slice(this.start,this.end),t.raw.charCodeAt(t.raw.length-1)===110&&(t.bigint=t.value!=null?t.value.toString():t.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(t,"Literal")};pe.parseParenExpression=function(){this.expect(x.parenL);var e=this.parseExpression();return this.expect(x.parenR),e};pe.shouldParseArrow=function(e){return!this.canInsertSemicolon()};pe.parseParenAndDistinguishExpression=function(e,t){var s=this.start,r=this.startLoc,o,h=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var p=this.start,g=this.startLoc,v=[],l=!0,T=!1,_=new Wi,D=this.yieldPos,w=this.awaitPos,E;for(this.yieldPos=0,this.awaitPos=0;this.type!==x.parenR;)if(l?l=!1:this.expect(x.comma),h&&this.afterTrailingComma(x.parenR,!0)){T=!0;break}else if(this.type===x.ellipsis){E=this.start,v.push(this.parseParenItem(this.parseRestBinding())),this.type===x.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}else v.push(this.parseMaybeAssign(!1,_,this.parseParenItem));var F=this.lastTokEnd,V=this.lastTokEndLoc;if(this.expect(x.parenR),e&&this.shouldParseArrow(v)&&this.eat(x.arrow))return this.checkPatternErrors(_,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=D,this.awaitPos=w,this.parseParenArrowList(s,r,v,t);(!v.length||T)&&this.unexpected(this.lastTokStart),E&&this.unexpected(E),this.checkExpressionErrors(_,!0),this.yieldPos=D||this.yieldPos,this.awaitPos=w||this.awaitPos,v.length>1?(o=this.startNodeAt(p,g),o.expressions=v,this.finishNodeAt(o,"SequenceExpression",F,V)):o=v[0]}else o=this.parseParenExpression();if(this.options.preserveParens){var G=this.startNodeAt(s,r);return G.expression=o,this.finishNode(G,"ParenthesizedExpression")}else return o};pe.parseParenItem=function(e){return e};pe.parseParenArrowList=function(e,t,s,r){return this.parseArrowExpression(this.startNodeAt(e,t),s,!1,r)};var sl=[];pe.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var e=this.startNode();if(this.next(),this.options.ecmaVersion>=6&&this.type===x.dot){var t=this.startNodeAt(e.start,e.loc&&e.loc.start);t.name="new",e.meta=this.finishNode(t,"Identifier"),this.next();var s=this.containsEsc;return e.property=this.parseIdent(!0),e.property.name!=="target"&&this.raiseRecoverable(e.property.start,"The only valid meta property for new is 'new.target'"),s&&this.raiseRecoverable(e.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(e.start,"'new.target' can only be used in functions and class static block"),this.finishNode(e,"MetaProperty")}var r=this.start,o=this.startLoc;return e.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),r,o,!0,!1),this.eat(x.parenL)?e.arguments=this.parseExprList(x.parenR,this.options.ecmaVersion>=8,!1):e.arguments=sl,this.finishNode(e,"NewExpression")};pe.parseTemplateElement=function(e){var t=e.isTagged,s=this.startNode();return this.type===x.invalidTemplate?(t||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),s.value={raw:this.value.replace(/\r\n?/g,`
|
|
19
|
+
`),cooked:null}):s.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,`
|
|
20
|
+
`),cooked:this.value},this.next(),s.tail=this.type===x.backQuote,this.finishNode(s,"TemplateElement")};pe.parseTemplate=function(e){e===void 0&&(e={});var t=e.isTagged;t===void 0&&(t=!1);var s=this.startNode();this.next(),s.expressions=[];var r=this.parseTemplateElement({isTagged:t});for(s.quasis=[r];!r.tail;)this.type===x.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(x.dollarBraceL),s.expressions.push(this.parseExpression()),this.expect(x.braceR),s.quasis.push(r=this.parseTemplateElement({isTagged:t}));return this.next(),this.finishNode(s,"TemplateLiteral")};pe.isAsyncProp=function(e){return!e.computed&&e.key.type==="Identifier"&&e.key.name==="async"&&(this.type===x.name||this.type===x.num||this.type===x.string||this.type===x.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===x.star)&&!Me.test(this.input.slice(this.lastTokEnd,this.start))};pe.parseObj=function(e,t){var s=this.startNode(),r=!0,o={};for(s.properties=[],this.next();!this.eat(x.braceR);){if(r)r=!1;else if(this.expect(x.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(x.braceR))break;var h=this.parseProperty(e,t);e||this.checkPropClash(h,o,t),s.properties.push(h)}return this.finishNode(s,e?"ObjectPattern":"ObjectExpression")};pe.parseProperty=function(e,t){var s=this.startNode(),r,o,h,p;if(this.options.ecmaVersion>=9&&this.eat(x.ellipsis))return e?(s.argument=this.parseIdent(!1),this.type===x.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.finishNode(s,"RestElement")):(s.argument=this.parseMaybeAssign(!1,t),this.type===x.comma&&t&&t.trailingComma<0&&(t.trailingComma=this.start),this.finishNode(s,"SpreadElement"));this.options.ecmaVersion>=6&&(s.method=!1,s.shorthand=!1,(e||t)&&(h=this.start,p=this.startLoc),e||(r=this.eat(x.star)));var g=this.containsEsc;return this.parsePropertyName(s),!e&&!g&&this.options.ecmaVersion>=8&&!r&&this.isAsyncProp(s)?(o=!0,r=this.options.ecmaVersion>=9&&this.eat(x.star),this.parsePropertyName(s)):o=!1,this.parsePropertyValue(s,e,r,o,h,p,t,g),this.finishNode(s,"Property")};pe.parseGetterSetter=function(e){var t=e.key.name;this.parsePropertyName(e),e.value=this.parseMethod(!1),e.kind=t;var s=e.kind==="get"?0:1;if(e.value.params.length!==s){var r=e.value.start;e.kind==="get"?this.raiseRecoverable(r,"getter should have no params"):this.raiseRecoverable(r,"setter should have exactly one param")}else e.kind==="set"&&e.value.params[0].type==="RestElement"&&this.raiseRecoverable(e.value.params[0].start,"Setter cannot use rest params")};pe.parsePropertyValue=function(e,t,s,r,o,h,p,g){(s||r)&&this.type===x.colon&&this.unexpected(),this.eat(x.colon)?(e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,p),e.kind="init"):this.options.ecmaVersion>=6&&this.type===x.parenL?(t&&this.unexpected(),e.method=!0,e.value=this.parseMethod(s,r),e.kind="init"):!t&&!g&&this.options.ecmaVersion>=5&&!e.computed&&e.key.type==="Identifier"&&(e.key.name==="get"||e.key.name==="set")&&this.type!==x.comma&&this.type!==x.braceR&&this.type!==x.eq?((s||r)&&this.unexpected(),this.parseGetterSetter(e)):this.options.ecmaVersion>=6&&!e.computed&&e.key.type==="Identifier"?((s||r)&&this.unexpected(),this.checkUnreserved(e.key),e.key.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=o),t?e.value=this.parseMaybeDefault(o,h,this.copyNode(e.key)):this.type===x.eq&&p?(p.shorthandAssign<0&&(p.shorthandAssign=this.start),e.value=this.parseMaybeDefault(o,h,this.copyNode(e.key))):e.value=this.copyNode(e.key),e.kind="init",e.shorthand=!0):this.unexpected()};pe.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(x.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(x.bracketR),e.key;e.computed=!1}return e.key=this.type===x.num||this.type===x.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")};pe.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)};pe.parseMethod=function(e,t,s){var r=this.startNode(),o=this.yieldPos,h=this.awaitPos,p=this.awaitIdentPos;return this.initFunction(r),this.options.ecmaVersion>=6&&(r.generator=e),this.options.ecmaVersion>=8&&(r.async=!!t),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(Bs(t,r.generator)|Hi|(s?_a:0)),this.expect(x.parenL),r.params=this.parseBindingList(x.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(r,!1,!0,!1),this.yieldPos=o,this.awaitPos=h,this.awaitIdentPos=p,this.finishNode(r,"FunctionExpression")};pe.parseArrowExpression=function(e,t,s,r){var o=this.yieldPos,h=this.awaitPos,p=this.awaitIdentPos;return this.enterScope(Bs(s,!1)|Fs),this.initFunction(e),this.options.ecmaVersion>=8&&(e.async=!!s),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,e.params=this.toAssignableList(t,!0),this.parseFunctionBody(e,!0,!1,r),this.yieldPos=o,this.awaitPos=h,this.awaitIdentPos=p,this.finishNode(e,"ArrowFunctionExpression")};pe.parseFunctionBody=function(e,t,s,r){var o=t&&this.type!==x.braceL,h=this.strict,p=!1;if(o)e.body=this.parseMaybeAssign(r),e.expression=!0,this.checkParams(e,!1);else{var g=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);(!h||g)&&(p=this.strictDirective(this.end),p&&g&&this.raiseRecoverable(e.start,"Illegal 'use strict' directive in function with non-simple parameter list"));var v=this.labels;this.labels=[],p&&(this.strict=!0),this.checkParams(e,!h&&!p&&!t&&!s&&this.isSimpleParamList(e.params)),this.strict&&e.id&&this.checkLValSimple(e.id,Ta),e.body=this.parseBlock(!1,void 0,p&&!h),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=v}this.exitScope()};pe.isSimpleParamList=function(e){for(var t=0,s=e;t<s.length;t+=1){var r=s[t];if(r.type!=="Identifier")return!1}return!0};pe.checkParams=function(e,t){for(var s=Object.create(null),r=0,o=e.params;r<o.length;r+=1){var h=o[r];this.checkLValInnerPattern(h,js,t?null:s)}};pe.parseExprList=function(e,t,s,r){for(var o=[],h=!0;!this.eat(e);){if(h)h=!1;else if(this.expect(x.comma),t&&this.afterTrailingComma(e))break;var p=void 0;s&&this.type===x.comma?p=null:this.type===x.ellipsis?(p=this.parseSpread(r),r&&this.type===x.comma&&r.trailingComma<0&&(r.trailingComma=this.start)):p=this.parseMaybeAssign(!1,r),o.push(p)}return o};pe.checkUnreserved=function(e){var t=e.start,s=e.end,r=e.name;if(this.inGenerator&&r==="yield"&&this.raiseRecoverable(t,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&r==="await"&&this.raiseRecoverable(t,"Cannot use 'await' as identifier inside an async function"),!(this.currentThisScope().flags&qi)&&r==="arguments"&&this.raiseRecoverable(t,"Cannot use 'arguments' in class field initializer"),this.inClassStaticBlock&&(r==="arguments"||r==="await")&&this.raise(t,"Cannot use "+r+" in class static initialization block"),this.keywords.test(r)&&this.raise(t,"Unexpected keyword '"+r+"'"),!(this.options.ecmaVersion<6&&this.input.slice(t,s).indexOf("\\")!==-1)){var o=this.strict?this.reservedWordsStrict:this.reservedWords;o.test(r)&&(!this.inAsync&&r==="await"&&this.raiseRecoverable(t,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(t,"The keyword '"+r+"' is reserved"))}};pe.parseIdent=function(e){var t=this.parseIdentNode();return this.next(!!e),this.finishNode(t,"Identifier"),e||(this.checkUnreserved(t),t.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=t.start)),t};pe.parseIdentNode=function(){var e=this.startNode();return this.type===x.name?e.name=this.value:this.type.keyword?(e.name=this.type.keyword,(e.name==="class"||e.name==="function")&&(this.lastTokEnd!==this.lastTokStart+1||this.input.charCodeAt(this.lastTokStart)!==46)&&this.context.pop(),this.type=x.name):this.unexpected(),e};pe.parsePrivateIdent=function(){var e=this.startNode();return this.type===x.privateId?e.name=this.value:this.unexpected(),this.next(),this.finishNode(e,"PrivateIdentifier"),this.options.checkPrivateFields&&(this.privateNameStack.length===0?this.raise(e.start,"Private field '#"+e.name+"' must be declared in an enclosing class"):this.privateNameStack[this.privateNameStack.length-1].used.push(e)),e};pe.parseYield=function(e){this.yieldPos||(this.yieldPos=this.start);var t=this.startNode();return this.next(),this.type===x.semi||this.canInsertSemicolon()||this.type!==x.star&&!this.type.startsExpr?(t.delegate=!1,t.argument=null):(t.delegate=this.eat(x.star),t.argument=this.parseMaybeAssign(e)),this.finishNode(t,"YieldExpression")};pe.parseAwait=function(e){this.awaitPos||(this.awaitPos=this.start);var t=this.startNode();return this.next(),t.argument=this.parseMaybeUnary(null,!0,!1,e),this.finishNode(t,"AwaitExpression")};var ji=Ee.prototype;ji.raise=function(e,t){var s=Vs(this.input,e);t+=" ("+s.line+":"+s.column+")",this.sourceFile&&(t+=" in "+this.sourceFile);var r=new SyntaxError(t);throw r.pos=e,r.loc=s,r.raisedAt=this.pos,r};ji.raiseRecoverable=ji.raise;ji.curPosition=function(){if(this.options.locations)return new Bt(this.curLine,this.pos-this.lineStart)};var vt=Ee.prototype,rl=function(t){this.flags=t,this.var=[],this.lexical=[],this.functions=[]};vt.enterScope=function(e){this.scopeStack.push(new rl(e))};vt.exitScope=function(){this.scopeStack.pop()};vt.treatFunctionsAsVarInScope=function(e){return e.flags&At||!this.inModule&&e.flags&wt};vt.declareName=function(e,t,s){var r=!1;if(t===pt){var o=this.currentScope();r=o.lexical.indexOf(e)>-1||o.functions.indexOf(e)>-1||o.var.indexOf(e)>-1,o.lexical.push(e),this.inModule&&o.flags&wt&&delete this.undefinedExports[e]}else if(t===ka){var h=this.currentScope();h.lexical.push(e)}else if(t===Aa){var p=this.currentScope();this.treatFunctionsAsVar?r=p.lexical.indexOf(e)>-1:r=p.lexical.indexOf(e)>-1||p.var.indexOf(e)>-1,p.functions.push(e)}else for(var g=this.scopeStack.length-1;g>=0;--g){var v=this.scopeStack[g];if(v.lexical.indexOf(e)>-1&&!(v.flags&wa&&v.lexical[0]===e)||!this.treatFunctionsAsVarInScope(v)&&v.functions.indexOf(e)>-1){r=!0;break}if(v.var.push(e),this.inModule&&v.flags&wt&&delete this.undefinedExports[e],v.flags&qi)break}r&&this.raiseRecoverable(s,"Identifier '"+e+"' has already been declared")};vt.checkLocalExport=function(e){this.scopeStack[0].lexical.indexOf(e.name)===-1&&this.scopeStack[0].var.indexOf(e.name)===-1&&(this.undefinedExports[e.name]=e)};vt.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]};vt.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&(qi|ai|kt))return t}};vt.currentThisScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&(qi|ai|kt)&&!(t.flags&Fs))return t}};var oi=function(t,s,r){this.type="",this.start=s,this.end=0,t.options.locations&&(this.loc=new ni(t,r)),t.options.directSourceFile&&(this.sourceFile=t.options.directSourceFile),t.options.ranges&&(this.range=[s,0])},ui=Ee.prototype;ui.startNode=function(){return new oi(this,this.start,this.startLoc)};ui.startNodeAt=function(e,t){return new oi(this,e,t)};function Na(e,t,s,r){return e.type=t,e.end=s,this.options.locations&&(e.loc.end=r),this.options.ranges&&(e.range[1]=s),e}ui.finishNode=function(e,t){return Na.call(this,e,t,this.lastTokEnd,this.lastTokEndLoc)};ui.finishNodeAt=function(e,t,s,r){return Na.call(this,e,t,s,r)};ui.copyNode=function(e){var t=new oi(this,e.start,this.startLoc);for(var s in e)t[s]=e[s];return t};var nl="Berf Beria_Erfe Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sidetic Sidt Sunu Sunuwar Tai_Yo Tayo Todhri Todr Tolong_Siki Tols Tulu_Tigalari Tutg Unknown Zzzz",La="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",Ra=La+" Extended_Pictographic",Oa=Ra,Ma=Oa+" EBase EComp EMod EPres ExtPict",Va=Ma,al=Va,ol={9:La,10:Ra,11:Oa,12:Ma,13:Va,14:al},ul="Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji",cl={9:"",10:"",11:"",12:"",13:"",14:ul},da="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",Da="Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",Fa=Da+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",Ba=Fa+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",ja=Ba+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",Ua=ja+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",hl=Ua+" "+nl,ll={9:Da,10:Fa,11:Ba,12:ja,13:Ua,14:hl},Ha={};function pl(e){var t=Ha[e]={binary:gt(ol[e]+" "+da),binaryOfStrings:gt(cl[e]),nonBinary:{General_Category:gt(da),Script:gt(ll[e])}};t.nonBinary.Script_Extensions=t.nonBinary.Script,t.nonBinary.gc=t.nonBinary.General_Category,t.nonBinary.sc=t.nonBinary.Script,t.nonBinary.scx=t.nonBinary.Script_Extensions}for(Vi=0,Ns=[9,10,11,12,13,14];Vi<Ns.length;Vi+=1)ma=Ns[Vi],pl(ma);var ma,Vi,Ns,te=Ee.prototype,Ui=function(t,s){this.parent=t,this.base=s||this};Ui.prototype.separatedFrom=function(t){for(var s=this;s;s=s.parent)for(var r=t;r;r=r.parent)if(s.base===r.base&&s!==r)return!0;return!1};Ui.prototype.sibling=function(){return new Ui(this.parent,this.base)};var rt=function(t){this.parser=t,this.validFlags="gim"+(t.options.ecmaVersion>=6?"uy":"")+(t.options.ecmaVersion>=9?"s":"")+(t.options.ecmaVersion>=13?"d":"")+(t.options.ecmaVersion>=15?"v":""),this.unicodeProperties=Ha[t.options.ecmaVersion>=14?14:t.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchV=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=Object.create(null),this.backReferenceNames=[],this.branchID=null};rt.prototype.reset=function(t,s,r){var o=r.indexOf("v")!==-1,h=r.indexOf("u")!==-1;this.start=t|0,this.source=s+"",this.flags=r,o&&this.parser.options.ecmaVersion>=15?(this.switchU=!0,this.switchV=!0,this.switchN=!0):(this.switchU=h&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=h&&this.parser.options.ecmaVersion>=9)};rt.prototype.raise=function(t){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+t)};rt.prototype.at=function(t,s){s===void 0&&(s=!1);var r=this.source,o=r.length;if(t>=o)return-1;var h=r.charCodeAt(t);if(!(s||this.switchU)||h<=55295||h>=57344||t+1>=o)return h;var p=r.charCodeAt(t+1);return p>=56320&&p<=57343?(h<<10)+p-56613888:h};rt.prototype.nextIndex=function(t,s){s===void 0&&(s=!1);var r=this.source,o=r.length;if(t>=o)return o;var h=r.charCodeAt(t),p;return!(s||this.switchU)||h<=55295||h>=57344||t+1>=o||(p=r.charCodeAt(t+1))<56320||p>57343?t+1:t+2};rt.prototype.current=function(t){return t===void 0&&(t=!1),this.at(this.pos,t)};rt.prototype.lookahead=function(t){return t===void 0&&(t=!1),this.at(this.nextIndex(this.pos,t),t)};rt.prototype.advance=function(t){t===void 0&&(t=!1),this.pos=this.nextIndex(this.pos,t)};rt.prototype.eat=function(t,s){return s===void 0&&(s=!1),this.current(s)===t?(this.advance(s),!0):!1};rt.prototype.eatChars=function(t,s){s===void 0&&(s=!1);for(var r=this.pos,o=0,h=t;o<h.length;o+=1){var p=h[o],g=this.at(r,s);if(g===-1||g!==p)return!1;r=this.nextIndex(r,s)}return this.pos=r,!0};te.validateRegExpFlags=function(e){for(var t=e.validFlags,s=e.flags,r=!1,o=!1,h=0;h<s.length;h++){var p=s.charAt(h);t.indexOf(p)===-1&&this.raise(e.start,"Invalid regular expression flag"),s.indexOf(p,h+1)>-1&&this.raise(e.start,"Duplicate regular expression flag"),p==="u"&&(r=!0),p==="v"&&(o=!0)}this.options.ecmaVersion>=15&&r&&o&&this.raise(e.start,"Invalid regular expression flag")};function fl(e){for(var t in e)return!0;return!1}te.validateRegExpPattern=function(e){this.regexp_pattern(e),!e.switchN&&this.options.ecmaVersion>=9&&fl(e.groupNames)&&(e.switchN=!0,this.regexp_pattern(e))};te.regexp_pattern=function(e){e.pos=0,e.lastIntValue=0,e.lastStringValue="",e.lastAssertionIsQuantifiable=!1,e.numCapturingParens=0,e.maxBackReference=0,e.groupNames=Object.create(null),e.backReferenceNames.length=0,e.branchID=null,this.regexp_disjunction(e),e.pos!==e.source.length&&(e.eat(41)&&e.raise("Unmatched ')'"),(e.eat(93)||e.eat(125))&&e.raise("Lone quantifier brackets")),e.maxBackReference>e.numCapturingParens&&e.raise("Invalid escape");for(var t=0,s=e.backReferenceNames;t<s.length;t+=1){var r=s[t];e.groupNames[r]||e.raise("Invalid named capture referenced")}};te.regexp_disjunction=function(e){var t=this.options.ecmaVersion>=16;for(t&&(e.branchID=new Ui(e.branchID,null)),this.regexp_alternative(e);e.eat(124);)t&&(e.branchID=e.branchID.sibling()),this.regexp_alternative(e);t&&(e.branchID=e.branchID.parent),this.regexp_eatQuantifier(e,!0)&&e.raise("Nothing to repeat"),e.eat(123)&&e.raise("Lone quantifier brackets")};te.regexp_alternative=function(e){for(;e.pos<e.source.length&&this.regexp_eatTerm(e););};te.regexp_eatTerm=function(e){return this.regexp_eatAssertion(e)?(e.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(e)&&e.switchU&&e.raise("Invalid quantifier"),!0):(e.switchU?this.regexp_eatAtom(e):this.regexp_eatExtendedAtom(e))?(this.regexp_eatQuantifier(e),!0):!1};te.regexp_eatAssertion=function(e){var t=e.pos;if(e.lastAssertionIsQuantifiable=!1,e.eat(94)||e.eat(36))return!0;if(e.eat(92)){if(e.eat(66)||e.eat(98))return!0;e.pos=t}if(e.eat(40)&&e.eat(63)){var s=!1;if(this.options.ecmaVersion>=9&&(s=e.eat(60)),e.eat(61)||e.eat(33))return this.regexp_disjunction(e),e.eat(41)||e.raise("Unterminated group"),e.lastAssertionIsQuantifiable=!s,!0}return e.pos=t,!1};te.regexp_eatQuantifier=function(e,t){return t===void 0&&(t=!1),this.regexp_eatQuantifierPrefix(e,t)?(e.eat(63),!0):!1};te.regexp_eatQuantifierPrefix=function(e,t){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,t)};te.regexp_eatBracedQuantifier=function(e,t){var s=e.pos;if(e.eat(123)){var r=0,o=-1;if(this.regexp_eatDecimalDigits(e)&&(r=e.lastIntValue,e.eat(44)&&this.regexp_eatDecimalDigits(e)&&(o=e.lastIntValue),e.eat(125)))return o!==-1&&o<r&&!t&&e.raise("numbers out of order in {} quantifier"),!0;e.switchU&&!t&&e.raise("Incomplete quantifier"),e.pos=s}return!1};te.regexp_eatAtom=function(e){return this.regexp_eatPatternCharacters(e)||e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)};te.regexp_eatReverseSolidusAtomEscape=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatAtomEscape(e))return!0;e.pos=t}return!1};te.regexp_eatUncapturingGroup=function(e){var t=e.pos;if(e.eat(40)){if(e.eat(63)){if(this.options.ecmaVersion>=16){var s=this.regexp_eatModifiers(e),r=e.eat(45);if(s||r){for(var o=0;o<s.length;o++){var h=s.charAt(o);s.indexOf(h,o+1)>-1&&e.raise("Duplicate regular expression modifiers")}if(r){var p=this.regexp_eatModifiers(e);!s&&!p&&e.current()===58&&e.raise("Invalid regular expression modifiers");for(var g=0;g<p.length;g++){var v=p.charAt(g);(p.indexOf(v,g+1)>-1||s.indexOf(v)>-1)&&e.raise("Duplicate regular expression modifiers")}}}}if(e.eat(58)){if(this.regexp_disjunction(e),e.eat(41))return!0;e.raise("Unterminated group")}}e.pos=t}return!1};te.regexp_eatCapturingGroup=function(e){if(e.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(e):e.current()===63&&e.raise("Invalid group"),this.regexp_disjunction(e),e.eat(41))return e.numCapturingParens+=1,!0;e.raise("Unterminated group")}return!1};te.regexp_eatModifiers=function(e){for(var t="",s=0;(s=e.current())!==-1&&dl(s);)t+=ht(s),e.advance();return t};function dl(e){return e===105||e===109||e===115}te.regexp_eatExtendedAtom=function(e){return e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)||this.regexp_eatInvalidBracedQuantifier(e)||this.regexp_eatExtendedPatternCharacter(e)};te.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise("Nothing to repeat"),!1};te.regexp_eatSyntaxCharacter=function(e){var t=e.current();return qa(t)?(e.lastIntValue=t,e.advance(),!0):!1};function qa(e){return e===36||e>=40&&e<=43||e===46||e===63||e>=91&&e<=94||e>=123&&e<=125}te.regexp_eatPatternCharacters=function(e){for(var t=e.pos,s=0;(s=e.current())!==-1&&!qa(s);)e.advance();return e.pos!==t};te.regexp_eatExtendedPatternCharacter=function(e){var t=e.current();return t!==-1&&t!==36&&!(t>=40&&t<=43)&&t!==46&&t!==63&&t!==91&&t!==94&&t!==124?(e.advance(),!0):!1};te.regexp_groupSpecifier=function(e){if(e.eat(63)){this.regexp_eatGroupName(e)||e.raise("Invalid group");var t=this.options.ecmaVersion>=16,s=e.groupNames[e.lastStringValue];if(s)if(t)for(var r=0,o=s;r<o.length;r+=1){var h=o[r];h.separatedFrom(e.branchID)||e.raise("Duplicate capture group name")}else e.raise("Duplicate capture group name");t?(s||(e.groupNames[e.lastStringValue]=[])).push(e.branchID):e.groupNames[e.lastStringValue]=!0}};te.regexp_eatGroupName=function(e){if(e.lastStringValue="",e.eat(60)){if(this.regexp_eatRegExpIdentifierName(e)&&e.eat(62))return!0;e.raise("Invalid capture group name")}return!1};te.regexp_eatRegExpIdentifierName=function(e){if(e.lastStringValue="",this.regexp_eatRegExpIdentifierStart(e)){for(e.lastStringValue+=ht(e.lastIntValue);this.regexp_eatRegExpIdentifierPart(e);)e.lastStringValue+=ht(e.lastIntValue);return!0}return!1};te.regexp_eatRegExpIdentifierStart=function(e){var t=e.pos,s=this.options.ecmaVersion>=11,r=e.current(s);return e.advance(s),r===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,s)&&(r=e.lastIntValue),ml(r)?(e.lastIntValue=r,!0):(e.pos=t,!1)};function ml(e){return Ze(e,!0)||e===36||e===95}te.regexp_eatRegExpIdentifierPart=function(e){var t=e.pos,s=this.options.ecmaVersion>=11,r=e.current(s);return e.advance(s),r===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,s)&&(r=e.lastIntValue),xl(r)?(e.lastIntValue=r,!0):(e.pos=t,!1)};function xl(e){return ct(e,!0)||e===36||e===95||e===8204||e===8205}te.regexp_eatAtomEscape=function(e){return this.regexp_eatBackReference(e)||this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)||e.switchN&&this.regexp_eatKGroupName(e)?!0:(e.switchU&&(e.current()===99&&e.raise("Invalid unicode escape"),e.raise("Invalid escape")),!1)};te.regexp_eatBackReference=function(e){var t=e.pos;if(this.regexp_eatDecimalEscape(e)){var s=e.lastIntValue;if(e.switchU)return s>e.maxBackReference&&(e.maxBackReference=s),!0;if(s<=e.numCapturingParens)return!0;e.pos=t}return!1};te.regexp_eatKGroupName=function(e){if(e.eat(107)){if(this.regexp_eatGroupName(e))return e.backReferenceNames.push(e.lastStringValue),!0;e.raise("Invalid named reference")}return!1};te.regexp_eatCharacterEscape=function(e){return this.regexp_eatControlEscape(e)||this.regexp_eatCControlLetter(e)||this.regexp_eatZero(e)||this.regexp_eatHexEscapeSequence(e)||this.regexp_eatRegExpUnicodeEscapeSequence(e,!1)||!e.switchU&&this.regexp_eatLegacyOctalEscapeSequence(e)||this.regexp_eatIdentityEscape(e)};te.regexp_eatCControlLetter=function(e){var t=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=t}return!1};te.regexp_eatZero=function(e){return e.current()===48&&!Gi(e.lookahead())?(e.lastIntValue=0,e.advance(),!0):!1};te.regexp_eatControlEscape=function(e){var t=e.current();return t===116?(e.lastIntValue=9,e.advance(),!0):t===110?(e.lastIntValue=10,e.advance(),!0):t===118?(e.lastIntValue=11,e.advance(),!0):t===102?(e.lastIntValue=12,e.advance(),!0):t===114?(e.lastIntValue=13,e.advance(),!0):!1};te.regexp_eatControlLetter=function(e){var t=e.current();return Wa(t)?(e.lastIntValue=t%32,e.advance(),!0):!1};function Wa(e){return e>=65&&e<=90||e>=97&&e<=122}te.regexp_eatRegExpUnicodeEscapeSequence=function(e,t){t===void 0&&(t=!1);var s=e.pos,r=t||e.switchU;if(e.eat(117)){if(this.regexp_eatFixedHexDigits(e,4)){var o=e.lastIntValue;if(r&&o>=55296&&o<=56319){var h=e.pos;if(e.eat(92)&&e.eat(117)&&this.regexp_eatFixedHexDigits(e,4)){var p=e.lastIntValue;if(p>=56320&&p<=57343)return e.lastIntValue=(o-55296)*1024+(p-56320)+65536,!0}e.pos=h,e.lastIntValue=o}return!0}if(r&&e.eat(123)&&this.regexp_eatHexDigits(e)&&e.eat(125)&&yl(e.lastIntValue))return!0;r&&e.raise("Invalid unicode escape"),e.pos=s}return!1};function yl(e){return e>=0&&e<=1114111}te.regexp_eatIdentityEscape=function(e){if(e.switchU)return this.regexp_eatSyntaxCharacter(e)?!0:e.eat(47)?(e.lastIntValue=47,!0):!1;var t=e.current();return t!==99&&(!e.switchN||t!==107)?(e.lastIntValue=t,e.advance(),!0):!1};te.regexp_eatDecimalEscape=function(e){e.lastIntValue=0;var t=e.current();if(t>=49&&t<=57){do e.lastIntValue=10*e.lastIntValue+(t-48),e.advance();while((t=e.current())>=48&&t<=57);return!0}return!1};var Ga=0,lt=1,Je=2;te.regexp_eatCharacterClassEscape=function(e){var t=e.current();if(gl(t))return e.lastIntValue=-1,e.advance(),lt;var s=!1;if(e.switchU&&this.options.ecmaVersion>=9&&((s=t===80)||t===112)){e.lastIntValue=-1,e.advance();var r;if(e.eat(123)&&(r=this.regexp_eatUnicodePropertyValueExpression(e))&&e.eat(125))return s&&r===Je&&e.raise("Invalid property name"),r;e.raise("Invalid property name")}return Ga};function gl(e){return e===100||e===68||e===115||e===83||e===119||e===87}te.regexp_eatUnicodePropertyValueExpression=function(e){var t=e.pos;if(this.regexp_eatUnicodePropertyName(e)&&e.eat(61)){var s=e.lastStringValue;if(this.regexp_eatUnicodePropertyValue(e)){var r=e.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(e,s,r),lt}}if(e.pos=t,this.regexp_eatLoneUnicodePropertyNameOrValue(e)){var o=e.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(e,o)}return Ga};te.regexp_validateUnicodePropertyNameAndValue=function(e,t,s){jt(e.unicodeProperties.nonBinary,t)||e.raise("Invalid property name"),e.unicodeProperties.nonBinary[t].test(s)||e.raise("Invalid property value")};te.regexp_validateUnicodePropertyNameOrValue=function(e,t){if(e.unicodeProperties.binary.test(t))return lt;if(e.switchV&&e.unicodeProperties.binaryOfStrings.test(t))return Je;e.raise("Invalid property name")};te.regexp_eatUnicodePropertyName=function(e){var t=0;for(e.lastStringValue="";$a(t=e.current());)e.lastStringValue+=ht(t),e.advance();return e.lastStringValue!==""};function $a(e){return Wa(e)||e===95}te.regexp_eatUnicodePropertyValue=function(e){var t=0;for(e.lastStringValue="";vl(t=e.current());)e.lastStringValue+=ht(t),e.advance();return e.lastStringValue!==""};function vl(e){return $a(e)||Gi(e)}te.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)};te.regexp_eatCharacterClass=function(e){if(e.eat(91)){var t=e.eat(94),s=this.regexp_classContents(e);return e.eat(93)||e.raise("Unterminated character class"),t&&s===Je&&e.raise("Negated character class may contain strings"),!0}return!1};te.regexp_classContents=function(e){return e.current()===93?lt:e.switchV?this.regexp_classSetExpression(e):(this.regexp_nonEmptyClassRanges(e),lt)};te.regexp_nonEmptyClassRanges=function(e){for(;this.regexp_eatClassAtom(e);){var t=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassAtom(e)){var s=e.lastIntValue;e.switchU&&(t===-1||s===-1)&&e.raise("Invalid character class"),t!==-1&&s!==-1&&t>s&&e.raise("Range out of order in character class")}}};te.regexp_eatClassAtom=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatClassEscape(e))return!0;if(e.switchU){var s=e.current();(s===99||Xa(s))&&e.raise("Invalid class escape"),e.raise("Invalid escape")}e.pos=t}var r=e.current();return r!==93?(e.lastIntValue=r,e.advance(),!0):!1};te.regexp_eatClassEscape=function(e){var t=e.pos;if(e.eat(98))return e.lastIntValue=8,!0;if(e.switchU&&e.eat(45))return e.lastIntValue=45,!0;if(!e.switchU&&e.eat(99)){if(this.regexp_eatClassControlLetter(e))return!0;e.pos=t}return this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)};te.regexp_classSetExpression=function(e){var t=lt,s;if(!this.regexp_eatClassSetRange(e))if(s=this.regexp_eatClassSetOperand(e)){s===Je&&(t=Je);for(var r=e.pos;e.eatChars([38,38]);){if(e.current()!==38&&(s=this.regexp_eatClassSetOperand(e))){s!==Je&&(t=lt);continue}e.raise("Invalid character in character class")}if(r!==e.pos)return t;for(;e.eatChars([45,45]);)this.regexp_eatClassSetOperand(e)||e.raise("Invalid character in character class");if(r!==e.pos)return t}else e.raise("Invalid character in character class");for(;;)if(!this.regexp_eatClassSetRange(e)){if(s=this.regexp_eatClassSetOperand(e),!s)return t;s===Je&&(t=Je)}};te.regexp_eatClassSetRange=function(e){var t=e.pos;if(this.regexp_eatClassSetCharacter(e)){var s=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassSetCharacter(e)){var r=e.lastIntValue;return s!==-1&&r!==-1&&s>r&&e.raise("Range out of order in character class"),!0}e.pos=t}return!1};te.regexp_eatClassSetOperand=function(e){return this.regexp_eatClassSetCharacter(e)?lt:this.regexp_eatClassStringDisjunction(e)||this.regexp_eatNestedClass(e)};te.regexp_eatNestedClass=function(e){var t=e.pos;if(e.eat(91)){var s=e.eat(94),r=this.regexp_classContents(e);if(e.eat(93))return s&&r===Je&&e.raise("Negated character class may contain strings"),r;e.pos=t}if(e.eat(92)){var o=this.regexp_eatCharacterClassEscape(e);if(o)return o;e.pos=t}return null};te.regexp_eatClassStringDisjunction=function(e){var t=e.pos;if(e.eatChars([92,113])){if(e.eat(123)){var s=this.regexp_classStringDisjunctionContents(e);if(e.eat(125))return s}else e.raise("Invalid escape");e.pos=t}return null};te.regexp_classStringDisjunctionContents=function(e){for(var t=this.regexp_classString(e);e.eat(124);)this.regexp_classString(e)===Je&&(t=Je);return t};te.regexp_classString=function(e){for(var t=0;this.regexp_eatClassSetCharacter(e);)t++;return t===1?lt:Je};te.regexp_eatClassSetCharacter=function(e){var t=e.pos;if(e.eat(92))return this.regexp_eatCharacterEscape(e)||this.regexp_eatClassSetReservedPunctuator(e)?!0:e.eat(98)?(e.lastIntValue=8,!0):(e.pos=t,!1);var s=e.current();return s<0||s===e.lookahead()&&bl(s)||Sl(s)?!1:(e.advance(),e.lastIntValue=s,!0)};function bl(e){return e===33||e>=35&&e<=38||e>=42&&e<=44||e===46||e>=58&&e<=64||e===94||e===96||e===126}function Sl(e){return e===40||e===41||e===45||e===47||e>=91&&e<=93||e>=123&&e<=125}te.regexp_eatClassSetReservedPunctuator=function(e){var t=e.current();return Cl(t)?(e.lastIntValue=t,e.advance(),!0):!1};function Cl(e){return e===33||e===35||e===37||e===38||e===44||e===45||e>=58&&e<=62||e===64||e===96||e===126}te.regexp_eatClassControlLetter=function(e){var t=e.current();return Gi(t)||t===95?(e.lastIntValue=t%32,e.advance(),!0):!1};te.regexp_eatHexEscapeSequence=function(e){var t=e.pos;if(e.eat(120)){if(this.regexp_eatFixedHexDigits(e,2))return!0;e.switchU&&e.raise("Invalid escape"),e.pos=t}return!1};te.regexp_eatDecimalDigits=function(e){var t=e.pos,s=0;for(e.lastIntValue=0;Gi(s=e.current());)e.lastIntValue=10*e.lastIntValue+(s-48),e.advance();return e.pos!==t};function Gi(e){return e>=48&&e<=57}te.regexp_eatHexDigits=function(e){var t=e.pos,s=0;for(e.lastIntValue=0;Ka(s=e.current());)e.lastIntValue=16*e.lastIntValue+za(s),e.advance();return e.pos!==t};function Ka(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function za(e){return e>=65&&e<=70?10+(e-65):e>=97&&e<=102?10+(e-97):e-48}te.regexp_eatLegacyOctalEscapeSequence=function(e){if(this.regexp_eatOctalDigit(e)){var t=e.lastIntValue;if(this.regexp_eatOctalDigit(e)){var s=e.lastIntValue;t<=3&&this.regexp_eatOctalDigit(e)?e.lastIntValue=t*64+s*8+e.lastIntValue:e.lastIntValue=t*8+s}else e.lastIntValue=t;return!0}return!1};te.regexp_eatOctalDigit=function(e){var t=e.current();return Xa(t)?(e.lastIntValue=t-48,e.advance(),!0):(e.lastIntValue=0,!1)};function Xa(e){return e>=48&&e<=55}te.regexp_eatFixedHexDigits=function(e,t){var s=e.pos;e.lastIntValue=0;for(var r=0;r<t;++r){var o=e.current();if(!Ka(o))return e.pos=s,!1;e.lastIntValue=16*e.lastIntValue+za(o),e.advance()}return!0};var $i=function(t){this.type=t.type,this.value=t.value,this.start=t.start,this.end=t.end,t.options.locations&&(this.loc=new ni(t,t.startLoc,t.endLoc)),t.options.ranges&&(this.range=[t.start,t.end])},ye=Ee.prototype;ye.next=function(e){!e&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword),this.options.onToken&&this.options.onToken(new $i(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()};ye.getToken=function(){return this.next(),new $i(this)};typeof Symbol<"u"&&(ye[Symbol.iterator]=function(){var e=this;return{next:function(){var t=e.getToken();return{done:t.type===x.eof,value:t}}}});ye.nextToken=function(){var e=this.curContext();if((!e||!e.preserveSpace)&&this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length)return this.finishToken(x.eof);if(e.override)return e.override(this);this.readToken(this.fullCharCodeAtPos())};ye.readToken=function(e){return Ze(e,this.options.ecmaVersion>=6)||e===92?this.readWord():this.getTokenFromCode(e)};ye.fullCharCodeAt=function(e){var t=this.input.charCodeAt(e);if(t<=55295||t>=56320)return t;var s=this.input.charCodeAt(e+1);return s<=56319||s>=57344?t:(t<<10)+s-56613888};ye.fullCharCodeAtPos=function(){return this.fullCharCodeAt(this.pos)};ye.skipBlockComment=function(){var e=this.options.onComment&&this.curPosition(),t=this.pos,s=this.input.indexOf("*/",this.pos+=2);if(s===-1&&this.raise(this.pos-2,"Unterminated comment"),this.pos=s+2,this.options.locations)for(var r=void 0,o=t;(r=ba(this.input,o,this.pos))>-1;)++this.curLine,o=this.lineStart=r;this.options.onComment&&this.options.onComment(!0,this.input.slice(t+2,s),t,this.pos,e,this.curPosition())};ye.skipLineComment=function(e){for(var t=this.pos,s=this.options.onComment&&this.curPosition(),r=this.input.charCodeAt(this.pos+=e);this.pos<this.input.length&&!Et(r);)r=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(t+e,this.pos),t,this.pos,s,this.curPosition())};ye.skipSpace=function(){e:for(;this.pos<this.input.length;){var e=this.input.charCodeAt(this.pos);switch(e){case 32:case 160:++this.pos;break;case 13:this.input.charCodeAt(this.pos+1)===10&&++this.pos;case 10:case 8232:case 8233:++this.pos,this.options.locations&&(++this.curLine,this.lineStart=this.pos);break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break e}break;default:if(e>8&&e<14||e>=5760&&Ms.test(String.fromCharCode(e)))++this.pos;else break e}}};ye.finishToken=function(e,t){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var s=this.type;this.type=e,this.value=t,this.updateContext(s)};ye.readToken_dot=function(){var e=this.input.charCodeAt(this.pos+1);if(e>=48&&e<=57)return this.readNumber(!0);var t=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&e===46&&t===46?(this.pos+=3,this.finishToken(x.ellipsis)):(++this.pos,this.finishToken(x.dot))};ye.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):e===61?this.finishOp(x.assign,2):this.finishOp(x.slash,1)};ye.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1),s=1,r=e===42?x.star:x.modulo;return this.options.ecmaVersion>=7&&e===42&&t===42&&(++s,r=x.starstar,t=this.input.charCodeAt(this.pos+2)),t===61?this.finishOp(x.assign,s+1):this.finishOp(r,s)};ye.readToken_pipe_amp=function(e){var t=this.input.charCodeAt(this.pos+1);if(t===e){if(this.options.ecmaVersion>=12){var s=this.input.charCodeAt(this.pos+2);if(s===61)return this.finishOp(x.assign,3)}return this.finishOp(e===124?x.logicalOR:x.logicalAND,2)}return t===61?this.finishOp(x.assign,2):this.finishOp(e===124?x.bitwiseOR:x.bitwiseAND,1)};ye.readToken_caret=function(){var e=this.input.charCodeAt(this.pos+1);return e===61?this.finishOp(x.assign,2):this.finishOp(x.bitwiseXOR,1)};ye.readToken_plus_min=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?t===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||Me.test(this.input.slice(this.lastTokEnd,this.pos)))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(x.incDec,2):t===61?this.finishOp(x.assign,2):this.finishOp(x.plusMin,1)};ye.readToken_lt_gt=function(e){var t=this.input.charCodeAt(this.pos+1),s=1;return t===e?(s=e===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+s)===61?this.finishOp(x.assign,s+1):this.finishOp(x.bitShift,s)):t===33&&e===60&&!this.inModule&&this.input.charCodeAt(this.pos+2)===45&&this.input.charCodeAt(this.pos+3)===45?(this.skipLineComment(4),this.skipSpace(),this.nextToken()):(t===61&&(s=2),this.finishOp(x.relational,s))};ye.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);return t===61?this.finishOp(x.equality,this.input.charCodeAt(this.pos+2)===61?3:2):e===61&&t===62&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(x.arrow)):this.finishOp(e===61?x.eq:x.prefix,1)};ye.readToken_question=function(){var e=this.options.ecmaVersion;if(e>=11){var t=this.input.charCodeAt(this.pos+1);if(t===46){var s=this.input.charCodeAt(this.pos+2);if(s<48||s>57)return this.finishOp(x.questionDot,2)}if(t===63){if(e>=12){var r=this.input.charCodeAt(this.pos+2);if(r===61)return this.finishOp(x.assign,3)}return this.finishOp(x.coalesce,2)}}return this.finishOp(x.question,1)};ye.readToken_numberSign=function(){var e=this.options.ecmaVersion,t=35;if(e>=13&&(++this.pos,t=this.fullCharCodeAtPos(),Ze(t,!0)||t===92))return this.finishToken(x.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+ht(t)+"'")};ye.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(x.parenL);case 41:return++this.pos,this.finishToken(x.parenR);case 59:return++this.pos,this.finishToken(x.semi);case 44:return++this.pos,this.finishToken(x.comma);case 91:return++this.pos,this.finishToken(x.bracketL);case 93:return++this.pos,this.finishToken(x.bracketR);case 123:return++this.pos,this.finishToken(x.braceL);case 125:return++this.pos,this.finishToken(x.braceR);case 58:return++this.pos,this.finishToken(x.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(x.backQuote);case 48:var t=this.input.charCodeAt(this.pos+1);if(t===120||t===88)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(t===111||t===79)return this.readRadixNumber(8);if(t===98||t===66)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(e);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(e);case 124:case 38:return this.readToken_pipe_amp(e);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(e);case 60:case 62:return this.readToken_lt_gt(e);case 61:case 33:return this.readToken_eq_excl(e);case 63:return this.readToken_question();case 126:return this.finishOp(x.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+ht(e)+"'")};ye.finishOp=function(e,t){var s=this.input.slice(this.pos,this.pos+t);return this.pos+=t,this.finishToken(e,s)};ye.readRegexp=function(){for(var e,t,s=this.pos;;){this.pos>=this.input.length&&this.raise(s,"Unterminated regular expression");var r=this.input.charAt(this.pos);if(Me.test(r)&&this.raise(s,"Unterminated regular expression"),e)e=!1;else{if(r==="[")t=!0;else if(r==="]"&&t)t=!1;else if(r==="/"&&!t)break;e=r==="\\"}++this.pos}var o=this.input.slice(s,this.pos);++this.pos;var h=this.pos,p=this.readWord1();this.containsEsc&&this.unexpected(h);var g=this.regexpState||(this.regexpState=new rt(this));g.reset(s,o,p),this.validateRegExpFlags(g),this.validateRegExpPattern(g);var v=null;try{v=new RegExp(o,p)}catch{}return this.finishToken(x.regexp,{pattern:o,flags:p,value:v})};ye.readInt=function(e,t,s){for(var r=this.options.ecmaVersion>=12&&t===void 0,o=s&&this.input.charCodeAt(this.pos)===48,h=this.pos,p=0,g=0,v=0,l=t??1/0;v<l;++v,++this.pos){var T=this.input.charCodeAt(this.pos),_=void 0;if(r&&T===95){o&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),g===95&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),v===0&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),g=T;continue}if(T>=97?_=T-97+10:T>=65?_=T-65+10:T>=48&&T<=57?_=T-48:_=1/0,_>=e)break;g=T,p=p*e+_}return r&&g===95&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===h||t!=null&&this.pos-h!==t?null:p};function wl(e,t){return t?parseInt(e,8):parseFloat(e.replace(/_/g,""))}function Ja(e){return typeof BigInt!="function"?null:BigInt(e.replace(/_/g,""))}ye.readRadixNumber=function(e){var t=this.pos;this.pos+=2;var s=this.readInt(e);return s==null&&this.raise(this.start+2,"Expected number in radix "+e),this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110?(s=Ja(this.input.slice(t,this.pos)),++this.pos):Ze(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(x.num,s)};ye.readNumber=function(e){var t=this.pos;!e&&this.readInt(10,void 0,!0)===null&&this.raise(t,"Invalid number");var s=this.pos-t>=2&&this.input.charCodeAt(t)===48;s&&this.strict&&this.raise(t,"Invalid number");var r=this.input.charCodeAt(this.pos);if(!s&&!e&&this.options.ecmaVersion>=11&&r===110){var o=Ja(this.input.slice(t,this.pos));return++this.pos,Ze(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(x.num,o)}s&&/[89]/.test(this.input.slice(t,this.pos))&&(s=!1),r===46&&!s&&(++this.pos,this.readInt(10),r=this.input.charCodeAt(this.pos)),(r===69||r===101)&&!s&&(r=this.input.charCodeAt(++this.pos),(r===43||r===45)&&++this.pos,this.readInt(10)===null&&this.raise(t,"Invalid number")),Ze(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var h=wl(this.input.slice(t,this.pos),s);return this.finishToken(x.num,h)};ye.readCodePoint=function(){var e=this.input.charCodeAt(this.pos),t;if(e===123){this.options.ecmaVersion<6&&this.unexpected();var s=++this.pos;t=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,t>1114111&&this.invalidStringToken(s,"Code point out of bounds")}else t=this.readHexChar(4);return t};ye.readString=function(e){for(var t="",s=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var r=this.input.charCodeAt(this.pos);if(r===e)break;r===92?(t+=this.input.slice(s,this.pos),t+=this.readEscapedChar(!1),s=this.pos):r===8232||r===8233?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(Et(r)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return t+=this.input.slice(s,this.pos++),this.finishToken(x.string,t)};var Qa={};ye.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e===Qa)this.readInvalidTemplateToken();else throw e}this.inTemplateElement=!1};ye.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw Qa;this.raise(e,t)};ye.readTmplToken=function(){for(var e="",t=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var s=this.input.charCodeAt(this.pos);if(s===96||s===36&&this.input.charCodeAt(this.pos+1)===123)return this.pos===this.start&&(this.type===x.template||this.type===x.invalidTemplate)?s===36?(this.pos+=2,this.finishToken(x.dollarBraceL)):(++this.pos,this.finishToken(x.backQuote)):(e+=this.input.slice(t,this.pos),this.finishToken(x.template,e));if(s===92)e+=this.input.slice(t,this.pos),e+=this.readEscapedChar(!0),t=this.pos;else if(Et(s)){switch(e+=this.input.slice(t,this.pos),++this.pos,s){case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:e+=`
|
|
21
|
+
`;break;default:e+=String.fromCharCode(s);break}this.options.locations&&(++this.curLine,this.lineStart=this.pos),t=this.pos}else++this.pos}};ye.readInvalidTemplateToken=function(){for(;this.pos<this.input.length;this.pos++)switch(this.input[this.pos]){case"\\":++this.pos;break;case"$":if(this.input[this.pos+1]!=="{")break;case"`":return this.finishToken(x.invalidTemplate,this.input.slice(this.start,this.pos));case"\r":this.input[this.pos+1]===`
|
|
17
22
|
`&&++this.pos;case`
|
|
18
|
-
`:case"\u2028":case"\u2029":++this.curLine,this.lineStart=this.pos+1;break}this.raise(this.start,"Unterminated template")};
|
|
19
|
-
`;case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return
|
|
20
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Re=!0;function Oe(e,i){return i===void 0&&(i={}),new Z("name",i)}var Dn=new WeakMap;function Mn(e){var i=Dn.get(e.Parser.acorn||e);if(!i){var a={assert:Oe(0,{startsExpr:Re}),asserts:Oe(0,{startsExpr:Re}),global:Oe(0,{startsExpr:Re}),keyof:Oe(0,{startsExpr:Re}),readonly:Oe(0,{startsExpr:Re}),unique:Oe(0,{startsExpr:Re}),abstract:Oe(0,{startsExpr:Re}),declare:Oe(0,{startsExpr:Re}),enum:Oe(0,{startsExpr:Re}),module:Oe(0,{startsExpr:Re}),namespace:Oe(0,{startsExpr:Re}),interface:Oe(0,{startsExpr:Re}),type:Oe(0,{startsExpr:Re})},o={at:new Z("@"),jsxName:new Z("jsxName"),jsxText:new Z("jsxText",{beforeExpr:!0}),jsxTagStart:new Z("jsxTagStart",{startsExpr:!0}),jsxTagEnd:new Z("jsxTagEnd")},h={tc_oTag:new Ee("<tag",!1,!1),tc_cTag:new Ee("</tag",!1,!1),tc_expr:new Ee("<tag>...</tag>",!0,!0)},x=new RegExp("^(?:"+Object.keys(a).join("|")+")$");o.jsxTagStart.updateContext=function(){this.context.push(h.tc_expr),this.context.push(h.tc_oTag),this.exprAllowed=!1},o.jsxTagEnd.updateContext=function(y){var S=this.context.pop();S===h.tc_oTag&&y===f.slash||S===h.tc_cTag?(this.context.pop(),this.exprAllowed=this.curContext()===h.tc_expr):this.exprAllowed=!0},i={tokTypes:mi({},a,o),tokContexts:mi({},h),keywordsRegExp:x,tokenIsLiteralPropertyName:function(y){return[f.name,f.string,f.num].concat(Object.values(ct),Object.values(a)).includes(y)},tokenIsKeywordOrIdentifier:function(y){return[f.name].concat(Object.values(ct),Object.values(a)).includes(y)},tokenIsIdentifier:function(y){return[].concat(Object.values(a),[f.name]).includes(y)},tokenIsTSDeclarationStart:function(y){return[a.abstract,a.declare,a.enum,a.module,a.namespace,a.interface,a.type].includes(y)},tokenIsTSTypeOperator:function(y){return[a.keyof,a.readonly,a.unique].includes(y)},tokenIsTemplate:function(y){return y===f.invalidTemplate}}}return i}var Bt=1024,Fn=new RegExp("(?:[^\\S\\n\\r\\u2028\\u2029]|\\/\\/.*|\\/\\*.*?\\*\\/)*","y"),Er=new RegExp("(?=("+Fn.source+"))\\1"+/(?=[\n\r\u2028\u2029]|\/\*(?!.*?\*\/)|$)/.source,"y"),jt=function(){this.shorthandAssign=void 0,this.trailingComma=void 0,this.parenthesizedAssign=void 0,this.parenthesizedBind=void 0,this.doubleProto=void 0,this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};function Bn(e,i){var a=i.key.name,o=e[a],h="true";return i.type!=="MethodDefinition"||i.kind!=="get"&&i.kind!=="set"||(h=(i.static?"s":"i")+i.kind),o==="iget"&&h==="iset"||o==="iset"&&h==="iget"||o==="sget"&&h==="sset"||o==="sset"&&h==="sget"?(e[a]="true",!1):!!o||(e[a]=h,!1)}function Ar(e,i){var a=e.key;return!e.computed&&(a.type==="Identifier"&&a.name===i||a.type==="Literal"&&a.value===i)}var z={AbstractMethodHasImplementation:function(e){return"Method '"+e.methodName+"' cannot have an implementation because it is marked abstract."},AbstractPropertyHasInitializer:function(e){return"Property '"+e.propertyName+"' cannot have an initializer because it is marked abstract."},AccesorCannotDeclareThisParameter:"'get' and 'set' accessors cannot declare 'this' parameters.",AccesorCannotHaveTypeParameters:"An accessor cannot have type parameters.",CannotFindName:function(e){return"Cannot find name '"+e.name+"'."},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:function(e){return"'declare' is not allowed in "+e.kind+"ters."},DeclareClassFieldHasInitializer:"Initializers are not allowed in ambient contexts.",DeclareFunctionHasImplementation:"An implementation cannot be declared in ambient contexts.",DuplicateAccessibilityModifier:function(){return"Accessibility modifier already seen."},DuplicateModifier:function(e){return"Duplicate modifier: '"+e.modifier+"'."},EmptyHeritageClauseType:function(e){return"'"+e.token+"' list cannot be empty."},EmptyTypeArguments:"Type argument list cannot be empty.",EmptyTypeParameters:"Type parameter list cannot be empty.",ExpectedAmbientAfterExportDeclare:"'export declare' must be followed by an ambient declaration.",ImportAliasHasImportType:"An import alias can not use 'import type'.",IncompatibleModifiers:function(e){var i=e.modifiers;return"'"+i[0]+"' modifier cannot be used with '"+i[1]+"' modifier."},IndexSignatureHasAbstract:"Index signatures cannot have the 'abstract' modifier.",IndexSignatureHasAccessibility:function(e){return"Index signatures cannot have an accessibility modifier ('"+e.modifier+"')."},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:function(e){return"'"+e.modifier+"' modifier cannot appear on a type member."},InvalidModifierOnTypeParameter:function(e){return"'"+e.modifier+"' modifier cannot appear on a type parameter."},InvalidModifierOnTypeParameterPositions:function(e){return"'"+e.modifier+"' modifier can only appear on a type parameter of a class, interface or type alias."},InvalidModifiersOrder:function(e){var i=e.orderedModifiers;return"'"+i[0]+"' modifier must precede '"+i[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.",MixedLabeledAndUnlabeledElements:"Tuple members must all have names or all not have names.",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:function(e){return"Private elements cannot have an accessibility modifier ('"+e.modifier+"')."},PrivateMethodsHasAccessibility:function(e){return"Private methods cannot have an accessibility modifier ('"+e.modifier+"')."},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:function(e){var i=e.typeParameterName;return"Single type parameter "+i+" should have a trailing comma. Example usage: <"+i+",>."},StaticBlockCannotHaveModifier:"Static class blocks cannot have any modifier.",TypeAnnotationAfterAssign:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeImportCannotSpecifyDefaultAndNamed:"A type-only import can specify a default import or named bindings, but not both.",TypeModifierIsUsedInTypeExports:"The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement.",TypeModifierIsUsedInTypeImports:"The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement.",UnexpectedParameterModifier:"A parameter property is only allowed in a constructor implementation.",UnexpectedReadonly:"'readonly' type modifier is only permitted on array and tuple literal types.",GenericsEndWithComma:"Trailing comma is not allowed at the end of generics.",UnexpectedTypeAnnotation:"Did not expect a type annotation here.",UnexpectedTypeCastInParameter:"Unexpected type cast in parameter position.",UnsupportedImportTypeArgument:"Argument in a type import must be a string literal.",UnsupportedParameterPropertyKind:"A parameter property may not be declared using a binding pattern.",UnsupportedSignatureParameterKind:function(e){return"Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got "+e.type+"."},LetInLexicalBinding:"'let' is not allowed to be used as a name in 'let' or 'const' declarations."},jn={quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:"\xA0",iexcl:"\xA1",cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD",reg:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",frac34:"\xBE",iquest:"\xBF",Agrave:"\xC0",Aacute:"\xC1",Acirc:"\xC2",Atilde:"\xC3",Auml:"\xC4",Aring:"\xC5",AElig:"\xC6",Ccedil:"\xC7",Egrave:"\xC8",Eacute:"\xC9",Ecirc:"\xCA",Euml:"\xCB",Igrave:"\xCC",Iacute:"\xCD",Icirc:"\xCE",Iuml:"\xCF",ETH:"\xD0",Ntilde:"\xD1",Ograve:"\xD2",Oacute:"\xD3",Ocirc:"\xD4",Otilde:"\xD5",Ouml:"\xD6",times:"\xD7",Oslash:"\xD8",Ugrave:"\xD9",Uacute:"\xDA",Ucirc:"\xDB",Uuml:"\xDC",Yacute:"\xDD",THORN:"\xDE",szlig:"\xDF",agrave:"\xE0",aacute:"\xE1",acirc:"\xE2",atilde:"\xE3",auml:"\xE4",aring:"\xE5",aelig:"\xE6",ccedil:"\xE7",egrave:"\xE8",eacute:"\xE9",ecirc:"\xEA",euml:"\xEB",igrave:"\xEC",iacute:"\xED",icirc:"\xEE",iuml:"\xEF",eth:"\xF0",ntilde:"\xF1",ograve:"\xF2",oacute:"\xF3",ocirc:"\xF4",otilde:"\xF5",ouml:"\xF6",divide:"\xF7",oslash:"\xF8",ugrave:"\xF9",uacute:"\xFA",ucirc:"\xFB",uuml:"\xFC",yacute:"\xFD",thorn:"\xFE",yuml:"\xFF",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",fnof:"\u0192",circ:"\u02C6",tilde:"\u02DC",Alpha:"\u0391",Beta:"\u0392",Gamma:"\u0393",Delta:"\u0394",Epsilon:"\u0395",Zeta:"\u0396",Eta:"\u0397",Theta:"\u0398",Iota:"\u0399",Kappa:"\u039A",Lambda:"\u039B",Mu:"\u039C",Nu:"\u039D",Xi:"\u039E",Omicron:"\u039F",Pi:"\u03A0",Rho:"\u03A1",Sigma:"\u03A3",Tau:"\u03A4",Upsilon:"\u03A5",Phi:"\u03A6",Chi:"\u03A7",Psi:"\u03A8",Omega:"\u03A9",alpha:"\u03B1",beta:"\u03B2",gamma:"\u03B3",delta:"\u03B4",epsilon:"\u03B5",zeta:"\u03B6",eta:"\u03B7",theta:"\u03B8",iota:"\u03B9",kappa:"\u03BA",lambda:"\u03BB",mu:"\u03BC",nu:"\u03BD",xi:"\u03BE",omicron:"\u03BF",pi:"\u03C0",rho:"\u03C1",sigmaf:"\u03C2",sigma:"\u03C3",tau:"\u03C4",upsilon:"\u03C5",phi:"\u03C6",chi:"\u03C7",psi:"\u03C8",omega:"\u03C9",thetasym:"\u03D1",upsih:"\u03D2",piv:"\u03D6",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",zwnj:"\u200C",zwj:"\u200D",lrm:"\u200E",rlm:"\u200F",ndash:"\u2013",mdash:"\u2014",lsquo:"\u2018",rsquo:"\u2019",sbquo:"\u201A",ldquo:"\u201C",rdquo:"\u201D",bdquo:"\u201E",dagger:"\u2020",Dagger:"\u2021",bull:"\u2022",hellip:"\u2026",permil:"\u2030",prime:"\u2032",Prime:"\u2033",lsaquo:"\u2039",rsaquo:"\u203A",oline:"\u203E",frasl:"\u2044",euro:"\u20AC",image:"\u2111",weierp:"\u2118",real:"\u211C",trade:"\u2122",alefsym:"\u2135",larr:"\u2190",uarr:"\u2191",rarr:"\u2192",darr:"\u2193",harr:"\u2194",crarr:"\u21B5",lArr:"\u21D0",uArr:"\u21D1",rArr:"\u21D2",dArr:"\u21D3",hArr:"\u21D4",forall:"\u2200",part:"\u2202",exist:"\u2203",empty:"\u2205",nabla:"\u2207",isin:"\u2208",notin:"\u2209",ni:"\u220B",prod:"\u220F",sum:"\u2211",minus:"\u2212",lowast:"\u2217",radic:"\u221A",prop:"\u221D",infin:"\u221E",ang:"\u2220",and:"\u2227",or:"\u2228",cap:"\u2229",cup:"\u222A",int:"\u222B",there4:"\u2234",sim:"\u223C",cong:"\u2245",asymp:"\u2248",ne:"\u2260",equiv:"\u2261",le:"\u2264",ge:"\u2265",sub:"\u2282",sup:"\u2283",nsub:"\u2284",sube:"\u2286",supe:"\u2287",oplus:"\u2295",otimes:"\u2297",perp:"\u22A5",sdot:"\u22C5",lceil:"\u2308",rceil:"\u2309",lfloor:"\u230A",rfloor:"\u230B",lang:"\u2329",rang:"\u232A",loz:"\u25CA",spades:"\u2660",clubs:"\u2663",hearts:"\u2665",diams:"\u2666"},Un=/^[\da-fA-F]+$/,qn=/^\d+$/;function Ut(e){return e&&(e.type==="JSXIdentifier"?e.name:e.type==="JSXNamespacedName"?e.namespace.name+":"+e.name.name:e.type==="JSXMemberExpression"?Ut(e.object)+"."+Ut(e.property):void 0)}var Ui=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g;function _r(e){if(!e)throw new Error("Assert fail")}function Hn(e){return e==="accessor"}function Wn(e){return e==="in"||e==="out"}function qi(e,i){return 2|(e?4:0)|(i?8:0)}function zn(e){if(e.type!=="MemberExpression")return!1;var i=e.property;return(!e.computed||!(i.type!=="TemplateLiteral"||i.expressions.length>0))&&Pr(e.object)}function Pr(e){return e.type==="Identifier"||e.type==="MemberExpression"&&!e.computed&&Pr(e.object)}function Tr(e){return e==="private"||e==="public"||e==="protected"}function Wi(e){var i=e||{},a=i.dts,o=a!==void 0&&a,h=i.allowSatisfies,x=h!==void 0&&h;return function(y){var S=y.acorn||li,C=Mn(S),l=S.tokTypes,M=S.keywordTypes,D=S.isIdentifierStart,K=S.lineBreak,T=S.isNewLine,I=S.tokContexts,F=S.isIdentifierChar,L=C.tokTypes,ee=C.tokContexts,Ne=C.keywordsRegExp,Y=C.tokenIsLiteralPropertyName,d=C.tokenIsTemplate,ve=C.tokenIsTSDeclarationStart,ne=C.tokenIsIdentifier,Ve=C.tokenIsKeywordOrIdentifier,Ht=C.tokenIsTSTypeOperator;function Et(O,be,ge){ge===void 0&&(ge=O.length);for(var oe=be;oe<ge;oe++){var te=O.charCodeAt(oe);if(T(te))return oe<ge-1&&te===13&&O.charCodeAt(oe+1)===10?oe+2:oe+1}return-1}y=(function(O,be,ge){var oe=ge.tokTypes,te=be.tokTypes;return(function(g){function s(){return g.apply(this,arguments)||this}di(s,g);var n=s.prototype;return n.takeDecorators=function(p){var m=this.decoratorStack[this.decoratorStack.length-1];m.length&&(p.decorators=m,this.resetStartLocationFromNode(p,m[0]),this.decoratorStack[this.decoratorStack.length-1]=[])},n.parseDecorators=function(p){for(var m=this.decoratorStack[this.decoratorStack.length-1];this.match(te.at);){var b=this.parseDecorator();m.push(b)}this.match(oe._export)?p||this.unexpected():this.canHaveLeadingDecorator()||this.raise(this.start,"Leading decorators must be attached to a class declaration.")},n.parseDecorator=function(){var p=this.startNode();this.next(),this.decoratorStack.push([]);var m,b=this.start,w=this.startLoc;if(this.match(oe.parenL)){var E=this.start,_=this.startLoc;if(this.next(),m=this.parseExpression(),this.expect(oe.parenR),this.options.preserveParens){var P=this.startNodeAt(E,_);P.expression=m,m=this.finishNode(P,"ParenthesizedExpression")}}else for(m=this.parseIdent(!1);this.eat(oe.dot);){var R=this.startNodeAt(b,w);R.object=m,R.property=this.parseIdent(!0),R.computed=!1,m=this.finishNode(R,"MemberExpression")}return p.expression=this.parseMaybeDecoratorArguments(m),this.decoratorStack.pop(),this.finishNode(p,"Decorator")},n.parseMaybeDecoratorArguments=function(p){if(this.eat(oe.parenL)){var m=this.startNodeAtNode(p);return m.callee=p,m.arguments=this.parseExprList(oe.parenR,!1),this.finishNode(m,"CallExpression")}return p},s})(O)})(y,C,S),y=(function(O,be,ge,oe){var te=O.tokTypes,g=be.tokTypes,s=O.isNewLine,n=O.isIdentifierChar,p=Object.assign({allowNamespaces:!0,allowNamespacedObjects:!0},oe||{});return(function(m){function b(){return m.apply(this,arguments)||this}di(b,m);var w=b.prototype;return w.jsx_readToken=function(){for(var E="",_=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated JSX contents");var P=this.input.charCodeAt(this.pos);switch(P){case 60:case 123:return this.pos===this.start?P===60&&this.exprAllowed?(++this.pos,this.finishToken(g.jsxTagStart)):this.getTokenFromCode(P):(E+=this.input.slice(_,this.pos),this.finishToken(g.jsxText,E));case 38:E+=this.input.slice(_,this.pos),E+=this.jsx_readEntity(),_=this.pos;break;case 62:case 125:this.raise(this.pos,"Unexpected token `"+this.input[this.pos]+"`. Did you mean `"+(P===62?">":"}")+'` or `{"'+this.input[this.pos]+'"}`?');default:s(P)?(E+=this.input.slice(_,this.pos),E+=this.jsx_readNewLine(!0),_=this.pos):++this.pos}}},w.jsx_readNewLine=function(E){var _,P=this.input.charCodeAt(this.pos);return++this.pos,P===13&&this.input.charCodeAt(this.pos)===10?(++this.pos,_=E?`
|
|
23
|
+
`:case"\u2028":case"\u2029":++this.curLine,this.lineStart=this.pos+1;break}this.raise(this.start,"Unterminated template")};ye.readEscapedChar=function(e){var t=this.input.charCodeAt(++this.pos);switch(++this.pos,t){case 110:return`
|
|
24
|
+
`;case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return ht(this.readCodePoint());case 116:return" ";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";case 56:case 57:if(this.strict&&this.invalidStringToken(this.pos-1,"Invalid escape sequence"),e){var s=this.pos-1;this.invalidStringToken(s,"Invalid escape sequence in template string")}default:if(t>=48&&t<=55){var r=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],o=parseInt(r,8);return o>255&&(r=r.slice(0,-1),o=parseInt(r,8)),this.pos+=r.length-1,t=this.input.charCodeAt(this.pos),(r!=="0"||t===56||t===57)&&(this.strict||e)&&this.invalidStringToken(this.pos-1-r.length,e?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(o)}return Et(t)?(this.options.locations&&(this.lineStart=this.pos,++this.curLine),""):String.fromCharCode(t)}};ye.readHexChar=function(e){var t=this.pos,s=this.readInt(16,e);return s===null&&this.invalidStringToken(t,"Bad character escape sequence"),s};ye.readWord1=function(){this.containsEsc=!1;for(var e="",t=!0,s=this.pos,r=this.options.ecmaVersion>=6;this.pos<this.input.length;){var o=this.fullCharCodeAtPos();if(ct(o,r))this.pos+=o<=65535?1:2;else if(o===92){this.containsEsc=!0,e+=this.input.slice(s,this.pos);var h=this.pos;this.input.charCodeAt(++this.pos)!==117&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var p=this.readCodePoint();(t?Ze:ct)(p,r)||this.invalidStringToken(h,"Invalid Unicode escape"),e+=ht(p),s=this.pos}else break;t=!1}return e+this.input.slice(s,this.pos)};ye.readWord=function(){var e=this.readWord1(),t=x.name;return this.keywords.test(e)&&(t=_t[e]),this.finishToken(t,e)};var Ya="8.16.0";Ee.acorn={Parser:Ee,version:Ya,defaultOptions:Di,Position:Bt,SourceLocation:ni,getLineInfo:Vs,Node:oi,TokenType:fe,tokTypes:x,keywordTypes:_t,TokContext:Re,tokContexts:_e,isIdentifierChar:ct,isIdentifierStart:Ze,Token:$i,isNewLine:Et,lineBreak:Me,lineBreakG:va,nonASCIIwhitespace:Ms};function _l(e,t){return Ee.parse(e,t)}function El(e,t,s){return Ee.parseExpressionAt(e,t,s)}function Al(e,t){return Ee.tokenizer(e,t)}var Ao=mt(ro(),1);function no(e,t){for(var s=0;s<t.length;s++){var r=t[s];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,typeof(o=(function(h,p){if(typeof h!="object"||h===null)return h;var g=h[Symbol.toPrimitive];if(g!==void 0){var v=g.call(h,"string");if(typeof v!="object")return v;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(h)})(r.key))=="symbol"?o:String(o),r)}var o}function Ji(){return Ji=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(e[r]=s[r])}return e},Ji.apply(this,arguments)}function Xi(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,$s(e,t)}function $s(e,t){return $s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(s,r){return s.__proto__=r,s},$s(e,t)}function ao(e,t){(t==null||t>e.length)&&(t=e.length);for(var s=0,r=new Array(t);s<t;s++)r[s]=e[s];return r}function oo(e,t){var s=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(s)return(s=s.call(e)).next.bind(s);if(Array.isArray(e)||(s=(function(o,h){if(o){if(typeof o=="string")return ao(o,h);var p=Object.prototype.toString.call(o).slice(8,-1);return p==="Object"&&o.constructor&&(p=o.constructor.name),p==="Map"||p==="Set"?Array.from(o):p==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(p)?ao(o,h):void 0}})(e))||t&&e&&typeof e.length=="number"){s&&(e=s);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
25
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Ue=!0;function He(e,t){return t===void 0&&(t={}),new fe("name",t)}var Nl=new WeakMap;function Ll(e){var t=Nl.get(e.Parser.acorn||e);if(!t){var s={assert:He(0,{startsExpr:Ue}),asserts:He(0,{startsExpr:Ue}),global:He(0,{startsExpr:Ue}),keyof:He(0,{startsExpr:Ue}),readonly:He(0,{startsExpr:Ue}),unique:He(0,{startsExpr:Ue}),abstract:He(0,{startsExpr:Ue}),declare:He(0,{startsExpr:Ue}),enum:He(0,{startsExpr:Ue}),module:He(0,{startsExpr:Ue}),namespace:He(0,{startsExpr:Ue}),interface:He(0,{startsExpr:Ue}),type:He(0,{startsExpr:Ue})},r={at:new fe("@"),jsxName:new fe("jsxName"),jsxText:new fe("jsxText",{beforeExpr:!0}),jsxTagStart:new fe("jsxTagStart",{startsExpr:!0}),jsxTagEnd:new fe("jsxTagEnd")},o={tc_oTag:new Re("<tag",!1,!1),tc_cTag:new Re("</tag",!1,!1),tc_expr:new Re("<tag>...</tag>",!0,!0)},h=new RegExp("^(?:"+Object.keys(s).join("|")+")$");r.jsxTagStart.updateContext=function(){this.context.push(o.tc_expr),this.context.push(o.tc_oTag),this.exprAllowed=!1},r.jsxTagEnd.updateContext=function(p){var g=this.context.pop();g===o.tc_oTag&&p===x.slash||g===o.tc_cTag?(this.context.pop(),this.exprAllowed=this.curContext()===o.tc_expr):this.exprAllowed=!0},t={tokTypes:Ji({},s,r),tokContexts:Ji({},o),keywordsRegExp:h,tokenIsLiteralPropertyName:function(p){return[x.name,x.string,x.num].concat(Object.values(_t),Object.values(s)).includes(p)},tokenIsKeywordOrIdentifier:function(p){return[x.name].concat(Object.values(_t),Object.values(s)).includes(p)},tokenIsIdentifier:function(p){return[].concat(Object.values(s),[x.name]).includes(p)},tokenIsTSDeclarationStart:function(p){return[s.abstract,s.declare,s.enum,s.module,s.namespace,s.interface,s.type].includes(p)},tokenIsTSTypeOperator:function(p){return[s.keyof,s.readonly,s.unique].includes(p)},tokenIsTemplate:function(p){return p===x.invalidTemplate}}}return t}var hi=1024,Rl=new RegExp("(?:[^\\S\\n\\r\\u2028\\u2029]|\\/\\/.*|\\/\\*.*?\\*\\/)*","y"),uo=new RegExp("(?=("+Rl.source+"))\\1"+/(?=[\n\r\u2028\u2029]|\/\*(?!.*?\*\/)|$)/.source,"y"),li=function(){this.shorthandAssign=void 0,this.trailingComma=void 0,this.parenthesizedAssign=void 0,this.parenthesizedBind=void 0,this.doubleProto=void 0,this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};function Ol(e,t){var s=t.key.name,r=e[s],o="true";return t.type!=="MethodDefinition"||t.kind!=="get"&&t.kind!=="set"||(o=(t.static?"s":"i")+t.kind),r==="iget"&&o==="iset"||r==="iset"&&o==="iget"||r==="sget"&&o==="sset"||r==="sset"&&o==="sget"?(e[s]="true",!1):!!r||(e[s]=o,!1)}function co(e,t){var s=e.key;return!e.computed&&(s.type==="Identifier"&&s.name===t||s.type==="Literal"&&s.value===t)}var re={AbstractMethodHasImplementation:function(e){return"Method '"+e.methodName+"' cannot have an implementation because it is marked abstract."},AbstractPropertyHasInitializer:function(e){return"Property '"+e.propertyName+"' cannot have an initializer because it is marked abstract."},AccesorCannotDeclareThisParameter:"'get' and 'set' accessors cannot declare 'this' parameters.",AccesorCannotHaveTypeParameters:"An accessor cannot have type parameters.",CannotFindName:function(e){return"Cannot find name '"+e.name+"'."},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:function(e){return"'declare' is not allowed in "+e.kind+"ters."},DeclareClassFieldHasInitializer:"Initializers are not allowed in ambient contexts.",DeclareFunctionHasImplementation:"An implementation cannot be declared in ambient contexts.",DuplicateAccessibilityModifier:function(){return"Accessibility modifier already seen."},DuplicateModifier:function(e){return"Duplicate modifier: '"+e.modifier+"'."},EmptyHeritageClauseType:function(e){return"'"+e.token+"' list cannot be empty."},EmptyTypeArguments:"Type argument list cannot be empty.",EmptyTypeParameters:"Type parameter list cannot be empty.",ExpectedAmbientAfterExportDeclare:"'export declare' must be followed by an ambient declaration.",ImportAliasHasImportType:"An import alias can not use 'import type'.",IncompatibleModifiers:function(e){var t=e.modifiers;return"'"+t[0]+"' modifier cannot be used with '"+t[1]+"' modifier."},IndexSignatureHasAbstract:"Index signatures cannot have the 'abstract' modifier.",IndexSignatureHasAccessibility:function(e){return"Index signatures cannot have an accessibility modifier ('"+e.modifier+"')."},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:function(e){return"'"+e.modifier+"' modifier cannot appear on a type member."},InvalidModifierOnTypeParameter:function(e){return"'"+e.modifier+"' modifier cannot appear on a type parameter."},InvalidModifierOnTypeParameterPositions:function(e){return"'"+e.modifier+"' modifier can only appear on a type parameter of a class, interface or type alias."},InvalidModifiersOrder:function(e){var t=e.orderedModifiers;return"'"+t[0]+"' modifier must precede '"+t[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.",MixedLabeledAndUnlabeledElements:"Tuple members must all have names or all not have names.",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:function(e){return"Private elements cannot have an accessibility modifier ('"+e.modifier+"')."},PrivateMethodsHasAccessibility:function(e){return"Private methods cannot have an accessibility modifier ('"+e.modifier+"')."},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:function(e){var t=e.typeParameterName;return"Single type parameter "+t+" should have a trailing comma. Example usage: <"+t+",>."},StaticBlockCannotHaveModifier:"Static class blocks cannot have any modifier.",TypeAnnotationAfterAssign:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeImportCannotSpecifyDefaultAndNamed:"A type-only import can specify a default import or named bindings, but not both.",TypeModifierIsUsedInTypeExports:"The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement.",TypeModifierIsUsedInTypeImports:"The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement.",UnexpectedParameterModifier:"A parameter property is only allowed in a constructor implementation.",UnexpectedReadonly:"'readonly' type modifier is only permitted on array and tuple literal types.",GenericsEndWithComma:"Trailing comma is not allowed at the end of generics.",UnexpectedTypeAnnotation:"Did not expect a type annotation here.",UnexpectedTypeCastInParameter:"Unexpected type cast in parameter position.",UnsupportedImportTypeArgument:"Argument in a type import must be a string literal.",UnsupportedParameterPropertyKind:"A parameter property may not be declared using a binding pattern.",UnsupportedSignatureParameterKind:function(e){return"Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got "+e.type+"."},LetInLexicalBinding:"'let' is not allowed to be used as a name in 'let' or 'const' declarations."},Ml={quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:"\xA0",iexcl:"\xA1",cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD",reg:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",frac34:"\xBE",iquest:"\xBF",Agrave:"\xC0",Aacute:"\xC1",Acirc:"\xC2",Atilde:"\xC3",Auml:"\xC4",Aring:"\xC5",AElig:"\xC6",Ccedil:"\xC7",Egrave:"\xC8",Eacute:"\xC9",Ecirc:"\xCA",Euml:"\xCB",Igrave:"\xCC",Iacute:"\xCD",Icirc:"\xCE",Iuml:"\xCF",ETH:"\xD0",Ntilde:"\xD1",Ograve:"\xD2",Oacute:"\xD3",Ocirc:"\xD4",Otilde:"\xD5",Ouml:"\xD6",times:"\xD7",Oslash:"\xD8",Ugrave:"\xD9",Uacute:"\xDA",Ucirc:"\xDB",Uuml:"\xDC",Yacute:"\xDD",THORN:"\xDE",szlig:"\xDF",agrave:"\xE0",aacute:"\xE1",acirc:"\xE2",atilde:"\xE3",auml:"\xE4",aring:"\xE5",aelig:"\xE6",ccedil:"\xE7",egrave:"\xE8",eacute:"\xE9",ecirc:"\xEA",euml:"\xEB",igrave:"\xEC",iacute:"\xED",icirc:"\xEE",iuml:"\xEF",eth:"\xF0",ntilde:"\xF1",ograve:"\xF2",oacute:"\xF3",ocirc:"\xF4",otilde:"\xF5",ouml:"\xF6",divide:"\xF7",oslash:"\xF8",ugrave:"\xF9",uacute:"\xFA",ucirc:"\xFB",uuml:"\xFC",yacute:"\xFD",thorn:"\xFE",yuml:"\xFF",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",fnof:"\u0192",circ:"\u02C6",tilde:"\u02DC",Alpha:"\u0391",Beta:"\u0392",Gamma:"\u0393",Delta:"\u0394",Epsilon:"\u0395",Zeta:"\u0396",Eta:"\u0397",Theta:"\u0398",Iota:"\u0399",Kappa:"\u039A",Lambda:"\u039B",Mu:"\u039C",Nu:"\u039D",Xi:"\u039E",Omicron:"\u039F",Pi:"\u03A0",Rho:"\u03A1",Sigma:"\u03A3",Tau:"\u03A4",Upsilon:"\u03A5",Phi:"\u03A6",Chi:"\u03A7",Psi:"\u03A8",Omega:"\u03A9",alpha:"\u03B1",beta:"\u03B2",gamma:"\u03B3",delta:"\u03B4",epsilon:"\u03B5",zeta:"\u03B6",eta:"\u03B7",theta:"\u03B8",iota:"\u03B9",kappa:"\u03BA",lambda:"\u03BB",mu:"\u03BC",nu:"\u03BD",xi:"\u03BE",omicron:"\u03BF",pi:"\u03C0",rho:"\u03C1",sigmaf:"\u03C2",sigma:"\u03C3",tau:"\u03C4",upsilon:"\u03C5",phi:"\u03C6",chi:"\u03C7",psi:"\u03C8",omega:"\u03C9",thetasym:"\u03D1",upsih:"\u03D2",piv:"\u03D6",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",zwnj:"\u200C",zwj:"\u200D",lrm:"\u200E",rlm:"\u200F",ndash:"\u2013",mdash:"\u2014",lsquo:"\u2018",rsquo:"\u2019",sbquo:"\u201A",ldquo:"\u201C",rdquo:"\u201D",bdquo:"\u201E",dagger:"\u2020",Dagger:"\u2021",bull:"\u2022",hellip:"\u2026",permil:"\u2030",prime:"\u2032",Prime:"\u2033",lsaquo:"\u2039",rsaquo:"\u203A",oline:"\u203E",frasl:"\u2044",euro:"\u20AC",image:"\u2111",weierp:"\u2118",real:"\u211C",trade:"\u2122",alefsym:"\u2135",larr:"\u2190",uarr:"\u2191",rarr:"\u2192",darr:"\u2193",harr:"\u2194",crarr:"\u21B5",lArr:"\u21D0",uArr:"\u21D1",rArr:"\u21D2",dArr:"\u21D3",hArr:"\u21D4",forall:"\u2200",part:"\u2202",exist:"\u2203",empty:"\u2205",nabla:"\u2207",isin:"\u2208",notin:"\u2209",ni:"\u220B",prod:"\u220F",sum:"\u2211",minus:"\u2212",lowast:"\u2217",radic:"\u221A",prop:"\u221D",infin:"\u221E",ang:"\u2220",and:"\u2227",or:"\u2228",cap:"\u2229",cup:"\u222A",int:"\u222B",there4:"\u2234",sim:"\u223C",cong:"\u2245",asymp:"\u2248",ne:"\u2260",equiv:"\u2261",le:"\u2264",ge:"\u2265",sub:"\u2282",sup:"\u2283",nsub:"\u2284",sube:"\u2286",supe:"\u2287",oplus:"\u2295",otimes:"\u2297",perp:"\u22A5",sdot:"\u22C5",lceil:"\u2308",rceil:"\u2309",lfloor:"\u230A",rfloor:"\u230B",lang:"\u2329",rang:"\u232A",loz:"\u25CA",spades:"\u2660",clubs:"\u2663",hearts:"\u2665",diams:"\u2666"},Vl=/^[\da-fA-F]+$/,Dl=/^\d+$/;function pi(e){return e&&(e.type==="JSXIdentifier"?e.name:e.type==="JSXNamespacedName"?e.namespace.name+":"+e.name.name:e.type==="JSXMemberExpression"?pi(e.object)+"."+pi(e.property):void 0)}var Ws=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g;function ho(e){if(!e)throw new Error("Assert fail")}function Fl(e){return e==="accessor"}function Bl(e){return e==="in"||e==="out"}function Gs(e,t){return 2|(e?4:0)|(t?8:0)}function jl(e){if(e.type!=="MemberExpression")return!1;var t=e.property;return(!e.computed||!(t.type!=="TemplateLiteral"||t.expressions.length>0))&&po(e.object)}function po(e){return e.type==="Identifier"||e.type==="MemberExpression"&&!e.computed&&po(e.object)}function lo(e){return e==="private"||e==="public"||e==="protected"}function Ks(e){var t=e||{},s=t.dts,r=s!==void 0&&s,o=t.allowSatisfies,h=o!==void 0&&o;return function(p){var g=p.acorn||Ki,v=Ll(g),l=g.tokTypes,T=g.keywordTypes,_=g.isIdentifierStart,D=g.lineBreak,w=g.isNewLine,E=g.tokContexts,F=g.isIdentifierChar,V=v.tokTypes,G=v.tokContexts,Q=v.keywordsRegExp,$=v.tokenIsLiteralPropertyName,m=v.tokenIsTemplate,ne=v.tokenIsTSDeclarationStart,z=v.tokenIsIdentifier,ae=v.tokenIsKeywordOrIdentifier,X=v.tokenIsTSTypeOperator;function Z(j,ce,ue){ue===void 0&&(ue=j.length);for(var O=ce;O<ue;O++){var I=j.charCodeAt(O);if(w(I))return O<ue-1&&I===13&&j.charCodeAt(O+1)===10?O+2:O+1}return-1}p=(function(j,ce,ue){var O=ue.tokTypes,I=ce.tokTypes;return(function(S){function n(){return S.apply(this,arguments)||this}Xi(n,S);var u=n.prototype;return u.takeDecorators=function(d){var y=this.decoratorStack[this.decoratorStack.length-1];y.length&&(d.decorators=y,this.resetStartLocationFromNode(d,y[0]),this.decoratorStack[this.decoratorStack.length-1]=[])},u.parseDecorators=function(d){for(var y=this.decoratorStack[this.decoratorStack.length-1];this.match(I.at);){var C=this.parseDecorator();y.push(C)}this.match(O._export)?d||this.unexpected():this.canHaveLeadingDecorator()||this.raise(this.start,"Leading decorators must be attached to a class declaration.")},u.parseDecorator=function(){var d=this.startNode();this.next(),this.decoratorStack.push([]);var y,C=this.start,A=this.startLoc;if(this.match(O.parenL)){var k=this.start,L=this.startLoc;if(this.next(),y=this.parseExpression(),this.expect(O.parenR),this.options.preserveParens){var N=this.startNodeAt(k,L);N.expression=y,y=this.finishNode(N,"ParenthesizedExpression")}}else for(y=this.parseIdent(!1);this.eat(O.dot);){var W=this.startNodeAt(C,A);W.object=y,W.property=this.parseIdent(!0),W.computed=!1,y=this.finishNode(W,"MemberExpression")}return d.expression=this.parseMaybeDecoratorArguments(y),this.decoratorStack.pop(),this.finishNode(d,"Decorator")},u.parseMaybeDecoratorArguments=function(d){if(this.eat(O.parenL)){var y=this.startNodeAtNode(d);return y.callee=d,y.arguments=this.parseExprList(O.parenR,!1),this.finishNode(y,"CallExpression")}return d},n})(j)})(p,v,g),p=(function(j,ce,ue,O){var I=j.tokTypes,S=ce.tokTypes,n=j.isNewLine,u=j.isIdentifierChar,d=Object.assign({allowNamespaces:!0,allowNamespacedObjects:!0},O||{});return(function(y){function C(){return y.apply(this,arguments)||this}Xi(C,y);var A=C.prototype;return A.jsx_readToken=function(){for(var k="",L=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated JSX contents");var N=this.input.charCodeAt(this.pos);switch(N){case 60:case 123:return this.pos===this.start?N===60&&this.exprAllowed?(++this.pos,this.finishToken(S.jsxTagStart)):this.getTokenFromCode(N):(k+=this.input.slice(L,this.pos),this.finishToken(S.jsxText,k));case 38:k+=this.input.slice(L,this.pos),k+=this.jsx_readEntity(),L=this.pos;break;case 62:case 125:this.raise(this.pos,"Unexpected token `"+this.input[this.pos]+"`. Did you mean `"+(N===62?">":"}")+'` or `{"'+this.input[this.pos]+'"}`?');default:n(N)?(k+=this.input.slice(L,this.pos),k+=this.jsx_readNewLine(!0),L=this.pos):++this.pos}}},A.jsx_readNewLine=function(k){var L,N=this.input.charCodeAt(this.pos);return++this.pos,N===13&&this.input.charCodeAt(this.pos)===10?(++this.pos,L=k?`
|
|
21
26
|
`:`\r
|
|
22
|
-
`):_=String.fromCharCode(P),this.options.locations&&(++this.curLine,this.lineStart=this.pos),_},w.jsx_readString=function(E){for(var _="",P=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var R=this.input.charCodeAt(this.pos);if(R===E)break;R===38?(_+=this.input.slice(P,this.pos),_+=this.jsx_readEntity(),P=this.pos):s(R)?(_+=this.input.slice(P,this.pos),_+=this.jsx_readNewLine(!1),P=this.pos):++this.pos}return _+=this.input.slice(P,this.pos++),this.finishToken(te.string,_)},w.jsx_readEntity=function(){var E,_="",P=0,R=this.input[this.pos];R!=="&"&&this.raise(this.pos,"Entity must start with an ampersand");for(var j=++this.pos;this.pos<this.input.length&&P++<10;){if((R=this.input[this.pos++])===";"){_[0]==="#"?_[1]==="x"?(_=_.substr(2),Un.test(_)&&(E=String.fromCharCode(parseInt(_,16)))):(_=_.substr(1),qn.test(_)&&(E=String.fromCharCode(parseInt(_,10)))):E=jn[_];break}_+=R}return E||(this.pos=j,"&")},w.jsx_readWord=function(){var E,_=this.pos;do E=this.input.charCodeAt(++this.pos);while(n(E)||E===45);return this.finishToken(g.jsxName,this.input.slice(_,this.pos))},w.jsx_parseIdentifier=function(){var E=this.startNode();return this.type===g.jsxName?E.name=this.value:this.type.keyword?E.name=this.type.keyword:this.unexpected(),this.next(),this.finishNode(E,"JSXIdentifier")},w.jsx_parseNamespacedName=function(){var E=this.start,_=this.startLoc,P=this.jsx_parseIdentifier();if(!p.allowNamespaces||!this.eat(te.colon))return P;var R=this.startNodeAt(E,_);return R.namespace=P,R.name=this.jsx_parseIdentifier(),this.finishNode(R,"JSXNamespacedName")},w.jsx_parseElementName=function(){if(this.type===g.jsxTagEnd)return"";var E=this.start,_=this.startLoc,P=this.jsx_parseNamespacedName();for(this.type!==te.dot||P.type!=="JSXNamespacedName"||p.allowNamespacedObjects||this.unexpected();this.eat(te.dot);){var R=this.startNodeAt(E,_);R.object=P,R.property=this.jsx_parseIdentifier(),P=this.finishNode(R,"JSXMemberExpression")}return P},w.jsx_parseAttributeValue=function(){switch(this.type){case te.braceL:var E=this.jsx_parseExpressionContainer();return E.expression.type==="JSXEmptyExpression"&&this.raise(E.start,"JSX attributes must only be assigned a non-empty expression"),E;case g.jsxTagStart:case te.string:return this.parseExprAtom();default:this.raise(this.start,"JSX value should be either an expression or a quoted JSX text")}},w.jsx_parseEmptyExpression=function(){var E=this.startNodeAt(this.lastTokEnd,this.lastTokEndLoc);return this.finishNodeAt(E,"JSXEmptyExpression",this.start,this.startLoc)},w.jsx_parseExpressionContainer=function(){var E=this.startNode();return this.next(),E.expression=this.type===te.braceR?this.jsx_parseEmptyExpression():this.parseExpression(),this.expect(te.braceR),this.finishNode(E,"JSXExpressionContainer")},w.jsx_parseAttribute=function(){var E=this.startNode();return this.eat(te.braceL)?(this.expect(te.ellipsis),E.argument=this.parseMaybeAssign(),this.expect(te.braceR),this.finishNode(E,"JSXSpreadAttribute")):(E.name=this.jsx_parseNamespacedName(),E.value=this.eat(te.eq)?this.jsx_parseAttributeValue():null,this.finishNode(E,"JSXAttribute"))},w.jsx_parseOpeningElementAt=function(E,_){var P=this.startNodeAt(E,_);P.attributes=[];var R=this.jsx_parseElementName();for(R&&(P.name=R);this.type!==te.slash&&this.type!==g.jsxTagEnd;)P.attributes.push(this.jsx_parseAttribute());return P.selfClosing=this.eat(te.slash),this.expect(g.jsxTagEnd),this.finishNode(P,R?"JSXOpeningElement":"JSXOpeningFragment")},w.jsx_parseClosingElementAt=function(E,_){var P=this.startNodeAt(E,_),R=this.jsx_parseElementName();return R&&(P.name=R),this.expect(g.jsxTagEnd),this.finishNode(P,R?"JSXClosingElement":"JSXClosingFragment")},w.jsx_parseElementAt=function(E,_){var P=this.startNodeAt(E,_),R=[],j=this.jsx_parseOpeningElementAt(E,_),G=null;if(!j.selfClosing){e:for(;;)switch(this.type){case g.jsxTagStart:if(E=this.start,_=this.startLoc,this.next(),this.eat(te.slash)){G=this.jsx_parseClosingElementAt(E,_);break e}R.push(this.jsx_parseElementAt(E,_));break;case g.jsxText:R.push(this.parseExprAtom());break;case te.braceL:R.push(this.jsx_parseExpressionContainer());break;default:this.unexpected()}Ut(G.name)!==Ut(j.name)&&this.raise(G.start,"Expected corresponding JSX closing tag for <"+Ut(j.name)+">")}var B=j.name?"Element":"Fragment";return P["opening"+B]=j,P["closing"+B]=G,P.children=R,this.type===te.relational&&this.value==="<"&&this.raise(this.start,"Adjacent JSX elements must be wrapped in an enclosing tag"),this.finishNode(P,"JSX"+B)},w.jsx_parseText=function(){var E=this.parseLiteral(this.value);return E.type="JSXText",E},w.jsx_parseElement=function(){var E=this.start,_=this.startLoc;return this.next(),this.jsx_parseElementAt(E,_)},b})(ge)})(S,C,y,e?.jsx),y=(function(O,be,ge){var oe=be.tokTypes,te=ge.tokTypes;return(function(g){function s(){return g.apply(this,arguments)||this}di(s,g);var n=s.prototype;return n.parseMaybeImportAttributes=function(p){if(this.type===te._with||this.type===oe.assert){this.next();var m=this.parseImportAttributes();m&&(p.attributes=m)}},n.parseImportAttributes=function(){this.expect(te.braceL);var p=this.parseWithEntries();return this.expect(te.braceR),p},n.parseWithEntries=function(){var p=[],m=new Set;do{if(this.type===te.braceR)break;var b,w=this.startNode();b=this.type===te.string?this.parseLiteral(this.value):this.parseIdent(!0),this.next(),w.key=b,m.has(w.key.name)&&this.raise(this.pos,"Duplicated key in attributes"),m.add(w.key.name),this.type!==te.string&&this.raise(this.pos,"Only string is supported as an attribute value"),w.value=this.parseLiteral(this.value),p.push(this.finishNode(w,"ImportAttribute"))}while(this.eat(te.comma));return p},s})(O)})(y,C,S);var xe=(function(O){function be(s,n,p){var m;return(m=O.call(this,s,n,p)||this).preValue=null,m.preToken=null,m.isLookahead=!1,m.isAmbientContext=!1,m.inAbstractClass=!1,m.inType=!1,m.inDisallowConditionalTypesContext=!1,m.maybeInArrowParameters=!1,m.shouldParseArrowReturnType=void 0,m.shouldParseAsyncArrowReturnType=void 0,m.decoratorStack=[[]],m.importsStack=[[]],m.importOrExportOuterKind=void 0,m.tsParseConstModifier=m.tsParseModifiers.bind((function(b){if(b===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b})(m),{allowedModifiers:["const"],disallowedModifiers:["in","out"],errorTemplate:z.InvalidModifierOnTypeParameterPositions}),m}di(be,O);var ge,oe,te,g=be.prototype;return g.getTokenFromCodeInType=function(s){return s===62||s===60?this.finishOp(l.relational,1):O.prototype.getTokenFromCode.call(this,s)},g.readToken=function(s){if(!this.inType){var n=this.curContext();if(n===ee.tc_expr)return this.jsx_readToken();if(n===ee.tc_oTag||n===ee.tc_cTag){if(D(s))return this.jsx_readWord();if(s==62)return++this.pos,this.finishToken(L.jsxTagEnd);if((s===34||s===39)&&n==ee.tc_oTag)return this.jsx_readString(s)}if(s===60&&this.exprAllowed&&this.input.charCodeAt(this.pos+1)!==33)return++this.pos,this.finishToken(L.jsxTagStart)}return O.prototype.readToken.call(this,s)},g.getTokenFromCode=function(s){return this.inType?this.getTokenFromCodeInType(s):s===64?(++this.pos,this.finishToken(L.at)):O.prototype.getTokenFromCode.call(this,s)},g.isAbstractClass=function(){return this.ts_isContextual(L.abstract)&&this.lookahead().type===l._class},g.finishNode=function(s,n){return s.type!==""&&s.end!==0?s:O.prototype.finishNode.call(this,s,n)},g.tryParse=function(s,n){n===void 0&&(n=this.cloneCurLookaheadState());var p={node:null};try{return{node:s(function(b){throw b===void 0&&(b=null),p.node=b,p}),error:null,thrown:!1,aborted:!1,failState:null}}catch(b){var m=this.getCurLookaheadState();if(this.setLookaheadState(n),b instanceof SyntaxError)return{node:null,error:b,thrown:!0,aborted:!1,failState:m};if(b===p)return{node:p.node,error:null,thrown:!1,aborted:!0,failState:m};throw b}},g.setOptionalParametersError=function(s,n){var p;s.optionalParametersLoc=(p=n?.loc)!=null?p:this.startLoc},g.reScan_lt_gt=function(){this.type===l.relational&&(this.pos-=1,this.readToken_lt_gt(this.fullCharCodeAtPos()))},g.reScan_lt=function(){var s=this.type;return s===l.bitShift?(this.pos-=2,this.finishOp(l.relational,1),l.relational):s},g.resetEndLocation=function(s,n){n===void 0&&(n=this.lastTokEndLoc),s.end=n.column,s.loc.end=n,this.options.ranges&&(s.range[1]=n.column)},g.startNodeAtNode=function(s){return O.prototype.startNodeAt.call(this,s.start,s.loc.start)},g.nextTokenStart=function(){return this.nextTokenStartSince(this.pos)},g.tsHasSomeModifiers=function(s,n){return n.some(function(p){return Tr(p)?s.accessibility===p:!!s[p]})},g.tsIsStartOfStaticBlocks=function(){return this.isContextual("static")&&this.lookaheadCharCode()===123},g.tsCheckForInvalidTypeCasts=function(s){var n=this;s.forEach(function(p){p?.type==="TSTypeCastExpression"&&n.raise(p.typeAnnotation.start,z.UnexpectedTypeAnnotation)})},g.atPossibleAsyncArrow=function(s){return s.type==="Identifier"&&s.name==="async"&&this.lastTokEndLoc.column===s.end&&!this.canInsertSemicolon()&&s.end-s.start==5&&s.start===this.potentialArrowAt},g.tsIsIdentifier=function(){return ne(this.type)},g.tsTryParseTypeOrTypePredicateAnnotation=function(){return this.match(l.colon)?this.tsParseTypeOrTypePredicateAnnotation(l.colon):void 0},g.tsTryParseGenericAsyncArrowFunction=function(s,n,p){var m=this;if(this.tsMatchLeftRelational()){var b=this.maybeInArrowParameters;this.maybeInArrowParameters=!0;var w=this.tsTryParseAndCatch(function(){var E=m.startNodeAt(s,n);return E.typeParameters=m.tsParseTypeParameters(),O.prototype.parseFunctionParams.call(m,E),E.returnType=m.tsTryParseTypeOrTypePredicateAnnotation(),m.expect(l.arrow),E});if(this.maybeInArrowParameters=b,w)return O.prototype.parseArrowExpression.call(this,w,null,!0,p)}},g.tsParseTypeArgumentsInExpression=function(){if(this.reScan_lt()===l.relational)return this.tsParseTypeArguments()},g.tsInNoContext=function(s){var n=this.context;this.context=[n[0]];try{return s()}finally{this.context=n}},g.tsTryParseTypeAnnotation=function(){return this.match(l.colon)?this.tsParseTypeAnnotation():void 0},g.isUnparsedContextual=function(s,n){var p=s+n.length;if(this.input.slice(s,p)===n){var m=this.input.charCodeAt(p);return!(F(m)||(64512&m)==55296)}return!1},g.isAbstractConstructorSignature=function(){return this.ts_isContextual(L.abstract)&&this.lookahead().type===l._new},g.nextTokenStartSince=function(s){return Ui.lastIndex=s,Ui.test(this.input)?Ui.lastIndex:s},g.lookaheadCharCode=function(){return this.input.charCodeAt(this.nextTokenStart())},g.compareLookaheadState=function(s,n){for(var p=0,m=Object.keys(s);p<m.length;p++){var b=m[p];if(s[b]!==n[b])return!1}return!0},g.createLookaheadState=function(){this.value=null,this.context=[this.curContext()]},g.getCurLookaheadState=function(){return{endLoc:this.endLoc,lastTokEnd:this.lastTokEnd,lastTokStart:this.lastTokStart,lastTokStartLoc:this.lastTokStartLoc,pos:this.pos,value:this.value,type:this.type,start:this.start,end:this.end,context:this.context,startLoc:this.startLoc,lastTokEndLoc:this.lastTokEndLoc,curLine:this.curLine,lineStart:this.lineStart,curPosition:this.curPosition,containsEsc:this.containsEsc}},g.cloneCurLookaheadState=function(){return{pos:this.pos,value:this.value,type:this.type,start:this.start,end:this.end,context:this.context&&this.context.slice(),startLoc:this.startLoc,lastTokEndLoc:this.lastTokEndLoc,endLoc:this.endLoc,lastTokEnd:this.lastTokEnd,lastTokStart:this.lastTokStart,lastTokStartLoc:this.lastTokStartLoc,curLine:this.curLine,lineStart:this.lineStart,curPosition:this.curPosition,containsEsc:this.containsEsc}},g.setLookaheadState=function(s){this.pos=s.pos,this.value=s.value,this.endLoc=s.endLoc,this.lastTokEnd=s.lastTokEnd,this.lastTokStart=s.lastTokStart,this.lastTokStartLoc=s.lastTokStartLoc,this.type=s.type,this.start=s.start,this.end=s.end,this.context=s.context,this.startLoc=s.startLoc,this.lastTokEndLoc=s.lastTokEndLoc,this.curLine=s.curLine,this.lineStart=s.lineStart,this.curPosition=s.curPosition,this.containsEsc=s.containsEsc},g.tsLookAhead=function(s){var n=this.getCurLookaheadState(),p=s();return this.setLookaheadState(n),p},g.lookahead=function(s){var n=this.getCurLookaheadState();if(this.createLookaheadState(),this.isLookahead=!0,s!==void 0)for(var p=0;p<s;p++)this.nextToken();else this.nextToken();this.isLookahead=!1;var m=this.getCurLookaheadState();return this.setLookaheadState(n),m},g.readWord=function(){var s=this.readWord1(),n=l.name;return this.keywords.test(s)?n=M[s]:new RegExp(Ne).test(s)&&(n=L[s]),this.finishToken(n,s)},g.skipBlockComment=function(){var s;this.isLookahead||(s=this.options.onComment&&this.curPosition());var n=this.pos,p=this.input.indexOf("*/",this.pos+=2);if(p===-1&&this.raise(this.pos-2,"Unterminated comment"),this.pos=p+2,this.options.locations)for(var m,b=n;(m=Et(this.input,b,this.pos))>-1;)++this.curLine,b=this.lineStart=m;this.isLookahead||this.options.onComment&&this.options.onComment(!0,this.input.slice(n+2,p),n,this.pos,s,this.curPosition())},g.skipLineComment=function(s){var n,p=this.pos;this.isLookahead||(n=this.options.onComment&&this.curPosition());for(var m=this.input.charCodeAt(this.pos+=s);this.pos<this.input.length&&!T(m);)m=this.input.charCodeAt(++this.pos);this.isLookahead||this.options.onComment&&this.options.onComment(!1,this.input.slice(p+s,this.pos),p,this.pos,n,this.curPosition())},g.finishToken=function(s,n){this.preValue=this.value,this.preToken=this.type,this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var p=this.type;this.type=s,this.value=n,this.isLookahead||this.updateContext(p)},g.resetStartLocation=function(s,n,p){s.start=n,s.loc.start=p,this.options.ranges&&(s.range[0]=n)},g.isLineTerminator=function(){return this.eat(l.semi)||O.prototype.canInsertSemicolon.call(this)},g.hasFollowingLineBreak=function(){return Er.lastIndex=this.end,Er.test(this.input)},g.addExtra=function(s,n,p,m){if(m===void 0&&(m=!0),s){var b=s.extra=s.extra||{};m?b[n]=p:Object.defineProperty(b,n,{enumerable:m,value:p})}},g.isLiteralPropertyName=function(){return Y(this.type)},g.hasPrecedingLineBreak=function(){return K.test(this.input.slice(this.lastTokEndLoc.index,this.start))},g.createIdentifier=function(s,n){return s.name=n,this.finishNode(s,"Identifier")},g.resetStartLocationFromNode=function(s,n){this.resetStartLocation(s,n.start,n.loc.start)},g.isThisParam=function(s){return s.type==="Identifier"&&s.name==="this"},g.isLookaheadContextual=function(s){var n=this.nextTokenStart();return this.isUnparsedContextual(n,s)},g.ts_type_isContextual=function(s,n){return s===n&&!this.containsEsc},g.ts_isContextual=function(s){return this.type===s&&!this.containsEsc},g.ts_isContextualWithState=function(s,n){return s.type===n&&!s.containsEsc},g.isContextualWithState=function(s,n){return n.type===l.name&&n.value===s&&!n.containsEsc},g.tsIsStartOfMappedType=function(){return this.next(),this.eat(l.plusMin)?this.ts_isContextual(L.readonly):(this.ts_isContextual(L.readonly)&&this.next(),!!this.match(l.bracketL)&&(this.next(),!!this.tsIsIdentifier()&&(this.next(),this.match(l._in))))},g.tsInDisallowConditionalTypesContext=function(s){var n=this.inDisallowConditionalTypesContext;this.inDisallowConditionalTypesContext=!0;try{return s()}finally{this.inDisallowConditionalTypesContext=n}},g.tsTryParseType=function(){return this.tsEatThenParseType(l.colon)},g.match=function(s){return this.type===s},g.matchJsx=function(s){return this.type===C.tokTypes[s]},g.ts_eatWithState=function(s,n,p){if(s===p.type){for(var m=0;m<n;m++)this.next();return!0}return!1},g.ts_eatContextualWithState=function(s,n,p){if(Ne.test(s)){if(this.ts_isContextualWithState(p,L[s])){for(var m=0;m<n;m++)this.next();return!0}return!1}if(!this.isContextualWithState(s,p))return!1;for(var b=0;b<n;b++)this.next();return!0},g.canHaveLeadingDecorator=function(){return this.match(l._class)},g.eatContextual=function(s){return Ne.test(s)?!!this.ts_isContextual(L[s])&&(this.next(),!0):O.prototype.eatContextual.call(this,s)},g.tsIsExternalModuleReference=function(){return this.isContextual("require")&&this.lookaheadCharCode()===40},g.tsParseExternalModuleReference=function(){var s=this.startNode();return this.expectContextual("require"),this.expect(l.parenL),this.match(l.string)||this.unexpected(),s.expression=this.parseExprAtom(),this.expect(l.parenR),this.finishNode(s,"TSExternalModuleReference")},g.tsParseEntityName=function(s){s===void 0&&(s=!0);for(var n=this.parseIdent(s);this.eat(l.dot);){var p=this.startNodeAtNode(n);p.left=n,p.right=this.parseIdent(s),n=this.finishNode(p,"TSQualifiedName")}return n},g.tsParseEnumMember=function(){var s=this.startNode();return s.id=this.match(l.string)?this.parseLiteral(this.value):this.parseIdent(!0),this.eat(l.eq)&&(s.initializer=this.parseMaybeAssign()),this.finishNode(s,"TSEnumMember")},g.tsParseEnumDeclaration=function(s,n){return n===void 0&&(n={}),n.const&&(s.const=!0),n.declare&&(s.declare=!0),this.expectContextual("enum"),s.id=this.parseIdent(),this.checkLValSimple(s.id),this.expect(l.braceL),s.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(l.braceR),this.finishNode(s,"TSEnumDeclaration")},g.tsParseModuleBlock=function(){var s=this.startNode();for(O.prototype.enterScope.call(this,512),this.expect(l.braceL),s.body=[];this.type!==l.braceR;){var n=this.parseStatement(null,!0);s.body.push(n)}return this.next(),O.prototype.exitScope.call(this),this.finishNode(s,"TSModuleBlock")},g.tsParseAmbientExternalModuleDeclaration=function(s){return this.ts_isContextual(L.global)?(s.global=!0,s.id=this.parseIdent()):this.match(l.string)?s.id=this.parseLiteral(this.value):this.unexpected(),this.match(l.braceL)?(O.prototype.enterScope.call(this,Bt),s.body=this.tsParseModuleBlock(),O.prototype.exitScope.call(this)):O.prototype.semicolon.call(this),this.finishNode(s,"TSModuleDeclaration")},g.tsTryParseDeclare=function(s){var n=this;if(!this.isLineTerminator()){var p,m=this.type;return this.isContextual("let")&&(m=l._var,p="let"),this.tsInAmbientContext(function(){if(m===l._function)return s.declare=!0,n.parseFunctionStatement(s,!1,!0);if(m===l._class)return s.declare=!0,n.parseClass(s,!0);if(m===L.enum)return n.tsParseEnumDeclaration(s,{declare:!0});if(m===L.global)return n.tsParseAmbientExternalModuleDeclaration(s);if(m===l._const||m===l._var)return n.match(l._const)&&n.isLookaheadContextual("enum")?(n.expect(l._const),n.tsParseEnumDeclaration(s,{const:!0,declare:!0})):(s.declare=!0,n.parseVarStatement(s,p||n.value,!0));if(m===L.interface){var b=n.tsParseInterfaceDeclaration(s,{declare:!0});if(b)return b}return ne(m)?n.tsParseDeclaration(s,n.value,!0):void 0})}},g.tsIsListTerminator=function(s){switch(s){case"EnumMembers":case"TypeMembers":return this.match(l.braceR);case"HeritageClauseElement":return this.match(l.braceL);case"TupleElementTypes":return this.match(l.bracketR);case"TypeParametersOrArguments":return this.tsMatchRightRelational()}},g.tsParseDelimitedListWorker=function(s,n,p,m){for(var b=[],w=-1;!this.tsIsListTerminator(s);){w=-1;var E=n();if(E==null)return;if(b.push(E),!this.eat(l.comma)){if(this.tsIsListTerminator(s))break;return void(p&&this.expect(l.comma))}w=this.lastTokStart}return m&&(m.value=w),b},g.tsParseDelimitedList=function(s,n,p){return(function(m){if(m==null)throw new Error("Unexpected "+m+" value.");return m})(this.tsParseDelimitedListWorker(s,n,!0,p))},g.tsParseBracketedList=function(s,n,p,m,b){m||this.expect(p?l.bracketL:l.relational);var w=this.tsParseDelimitedList(s,n,b);return this.expect(p?l.bracketR:l.relational),w},g.tsParseTypeParameterName=function(){return this.parseIdent().name},g.tsEatThenParseType=function(s){return this.match(s)?this.tsNextThenParseType():void 0},g.tsExpectThenParseType=function(s){var n=this;return this.tsDoThenParseType(function(){return n.expect(s)})},g.tsNextThenParseType=function(){var s=this;return this.tsDoThenParseType(function(){return s.next()})},g.tsDoThenParseType=function(s){var n=this;return this.tsInType(function(){return s(),n.tsParseType()})},g.tsSkipParameterStart=function(){if(ne(this.type)||this.match(l._this))return this.next(),!0;if(this.match(l.braceL))try{return this.parseObj(!0),!0}catch{return!1}if(this.match(l.bracketL)){this.next();try{return this.parseBindingList(l.bracketR,!0,!0),!0}catch{return!1}}return!1},g.tsIsUnambiguouslyStartOfFunctionType=function(){return this.next(),!!(this.match(l.parenR)||this.match(l.ellipsis)||this.tsSkipParameterStart()&&(this.match(l.colon)||this.match(l.comma)||this.match(l.question)||this.match(l.eq)||this.match(l.parenR)&&(this.next(),this.match(l.arrow))))},g.tsIsStartOfFunctionType=function(){return!!this.tsMatchLeftRelational()||this.match(l.parenL)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))},g.tsInAllowConditionalTypesContext=function(s){var n=this.inDisallowConditionalTypesContext;this.inDisallowConditionalTypesContext=!1;try{return s()}finally{this.inDisallowConditionalTypesContext=n}},g.tsParseBindingListForSignature=function(){var s=this;return O.prototype.parseBindingList.call(this,l.parenR,!0,!0).map(function(n){return n.type!=="Identifier"&&n.type!=="RestElement"&&n.type!=="ObjectPattern"&&n.type!=="ArrayPattern"&&s.raise(n.start,z.UnsupportedSignatureParameterKind(n.type)),n})},g.tsParseTypePredicateAsserts=function(){if(this.type!==L.asserts)return!1;var s=this.containsEsc;return this.next(),!(!ne(this.type)&&!this.match(l._this)||(s&&this.raise(this.lastTokStart,"Escape sequence in keyword asserts"),0))},g.tsParseThisTypeNode=function(){var s=this.startNode();return this.next(),this.finishNode(s,"TSThisType")},g.tsParseTypeAnnotation=function(s,n){var p=this;return s===void 0&&(s=!0),n===void 0&&(n=this.startNode()),this.tsInType(function(){s&&p.expect(l.colon),n.typeAnnotation=p.tsParseType()}),this.finishNode(n,"TSTypeAnnotation")},g.tsParseThisTypePredicate=function(s){this.next();var n=this.startNodeAtNode(s);return n.parameterName=s,n.typeAnnotation=this.tsParseTypeAnnotation(!1),n.asserts=!1,this.finishNode(n,"TSTypePredicate")},g.tsParseThisTypeOrThisTypePredicate=function(){var s=this.tsParseThisTypeNode();return this.isContextual("is")&&!this.hasPrecedingLineBreak()?this.tsParseThisTypePredicate(s):s},g.tsParseTypePredicatePrefix=function(){var s=this.parseIdent();if(this.isContextual("is")&&!this.hasPrecedingLineBreak())return this.next(),s},g.tsParseTypeOrTypePredicateAnnotation=function(s){var n=this;return this.tsInType(function(){var p=n.startNode();n.expect(s);var m=n.startNode(),b=!!n.tsTryParse(n.tsParseTypePredicateAsserts.bind(n));if(b&&n.match(l._this)){var w=n.tsParseThisTypeOrThisTypePredicate();return w.type==="TSThisType"?(m.parameterName=w,m.asserts=!0,m.typeAnnotation=null,w=n.finishNode(m,"TSTypePredicate")):(n.resetStartLocationFromNode(w,m),w.asserts=!0),p.typeAnnotation=w,n.finishNode(p,"TSTypeAnnotation")}var E=n.tsIsIdentifier()&&n.tsTryParse(n.tsParseTypePredicatePrefix.bind(n));if(!E)return b?(m.parameterName=n.parseIdent(),m.asserts=b,m.typeAnnotation=null,p.typeAnnotation=n.finishNode(m,"TSTypePredicate"),n.finishNode(p,"TSTypeAnnotation")):n.tsParseTypeAnnotation(!1,p);var _=n.tsParseTypeAnnotation(!1);return m.parameterName=E,m.typeAnnotation=_,m.asserts=b,p.typeAnnotation=n.finishNode(m,"TSTypePredicate"),n.finishNode(p,"TSTypeAnnotation")})},g.tsFillSignature=function(s,n){var p=s===l.arrow;n.typeParameters=this.tsTryParseTypeParameters(),this.expect(l.parenL),n.parameters=this.tsParseBindingListForSignature(),(p||this.match(s))&&(n.typeAnnotation=this.tsParseTypeOrTypePredicateAnnotation(s))},g.tsTryNextParseConstantContext=function(){if(this.lookahead().type!==l._const)return null;this.next();var s=this.tsParseTypeReference();return s.typeParameters&&this.raise(s.typeName.start,z.CannotFindName({name:"const"})),s},g.tsParseFunctionOrConstructorType=function(s,n){var p=this,m=this.startNode();return s==="TSConstructorType"&&(m.abstract=!!n,n&&this.next(),this.next()),this.tsInAllowConditionalTypesContext(function(){return p.tsFillSignature(l.arrow,m)}),this.finishNode(m,s)},g.tsParseUnionOrIntersectionType=function(s,n,p){var m=this.startNode(),b=this.eat(p),w=[];do w.push(n());while(this.eat(p));return w.length!==1||b?(m.types=w,this.finishNode(m,s)):w[0]},g.tsCheckTypeAnnotationForReadOnly=function(s){switch(s.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(s.start,z.UnexpectedReadonly)}},g.tsParseTypeOperator=function(){var s=this.startNode(),n=this.value;return this.next(),s.operator=n,s.typeAnnotation=this.tsParseTypeOperatorOrHigher(),n==="readonly"&&this.tsCheckTypeAnnotationForReadOnly(s),this.finishNode(s,"TSTypeOperator")},g.tsParseConstraintForInferType=function(){var s=this;if(this.eat(l._extends)){var n=this.tsInDisallowConditionalTypesContext(function(){return s.tsParseType()});if(this.inDisallowConditionalTypesContext||!this.match(l.question))return n}},g.tsParseInferType=function(){var s=this,n=this.startNode();this.expectContextual("infer");var p=this.startNode();return p.name=this.tsParseTypeParameterName(),p.constraint=this.tsTryParse(function(){return s.tsParseConstraintForInferType()}),n.typeParameter=this.finishNode(p,"TSTypeParameter"),this.finishNode(n,"TSInferType")},g.tsParseLiteralTypeNode=function(){var s=this,n=this.startNode();return n.literal=(function(){switch(s.type){case l.num:case l.string:case l._true:case l._false:return s.parseExprAtom();default:s.unexpected()}})(),this.finishNode(n,"TSLiteralType")},g.tsParseImportType=function(){var s=this.startNode();return this.expect(l._import),this.expect(l.parenL),this.match(l.string)||this.raise(this.start,z.UnsupportedImportTypeArgument),s.argument=this.parseExprAtom(),this.expect(l.parenR),this.eat(l.dot)&&(s.qualifier=this.tsParseEntityName()),this.tsMatchLeftRelational()&&(s.typeParameters=this.tsParseTypeArguments()),this.finishNode(s,"TSImportType")},g.tsParseTypeQuery=function(){var s=this.startNode();return this.expect(l._typeof),s.exprName=this.match(l._import)?this.tsParseImportType():this.tsParseEntityName(),!this.hasPrecedingLineBreak()&&this.tsMatchLeftRelational()&&(s.typeParameters=this.tsParseTypeArguments()),this.finishNode(s,"TSTypeQuery")},g.tsParseMappedTypeParameter=function(){var s=this.startNode();return s.name=this.tsParseTypeParameterName(),s.constraint=this.tsExpectThenParseType(l._in),this.finishNode(s,"TSTypeParameter")},g.tsParseMappedType=function(){var s=this.startNode();return this.expect(l.braceL),this.match(l.plusMin)?(s.readonly=this.value,this.next(),this.expectContextual("readonly")):this.eatContextual("readonly")&&(s.readonly=!0),this.expect(l.bracketL),s.typeParameter=this.tsParseMappedTypeParameter(),s.nameType=this.eatContextual("as")?this.tsParseType():null,this.expect(l.bracketR),this.match(l.plusMin)?(s.optional=this.value,this.next(),this.expect(l.question)):this.eat(l.question)&&(s.optional=!0),s.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(l.braceR),this.finishNode(s,"TSMappedType")},g.tsParseTypeLiteral=function(){var s=this.startNode();return s.members=this.tsParseObjectTypeMembers(),this.finishNode(s,"TSTypeLiteral")},g.tsParseTupleElementType=function(){var s=this.startLoc,n=this.start,p=this.eat(l.ellipsis),m=this.tsParseType(),b=this.eat(l.question);if(this.eat(l.colon)){var w=this.startNodeAtNode(m);w.optional=b,m.type!=="TSTypeReference"||m.typeParameters||m.typeName.type!=="Identifier"?(this.raise(m.start,z.InvalidTupleMemberLabel),w.label=m):w.label=m.typeName,w.elementType=this.tsParseType(),m=this.finishNode(w,"TSNamedTupleMember")}else if(b){var E=this.startNodeAtNode(m);E.typeAnnotation=m,m=this.finishNode(E,"TSOptionalType")}if(p){var _=this.startNodeAt(n,s);_.typeAnnotation=m,m=this.finishNode(_,"TSRestType")}return m},g.tsParseTupleType=function(){var s=this,n=this.startNode();n.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);var p=!1,m=null;return n.elementTypes.forEach(function(b){var w=b.type;!p||w==="TSRestType"||w==="TSOptionalType"||w==="TSNamedTupleMember"&&b.optional||s.raise(b.start,z.OptionalTypeBeforeRequired),p||(p=w==="TSNamedTupleMember"&&b.optional||w==="TSOptionalType");var E=w;w==="TSRestType"&&(E=(b=b.typeAnnotation).type);var _=E==="TSNamedTupleMember";m!=null||(m=_),m!==_&&s.raise(b.start,z.MixedLabeledAndUnlabeledElements)}),this.finishNode(n,"TSTupleType")},g.tsParseTemplateLiteralType=function(){var s=this.startNode();return s.literal=this.parseTemplate({isTagged:!1}),this.finishNode(s,"TSLiteralType")},g.tsParseTypeReference=function(){var s=this.startNode();return s.typeName=this.tsParseEntityName(),!this.hasPrecedingLineBreak()&&this.tsMatchLeftRelational()&&(s.typeParameters=this.tsParseTypeArguments()),this.finishNode(s,"TSTypeReference")},g.tsMatchLeftRelational=function(){return this.match(l.relational)&&this.value==="<"},g.tsMatchRightRelational=function(){return this.match(l.relational)&&this.value===">"},g.tsParseParenthesizedType=function(){var s=this.startNode();return this.expect(l.parenL),s.typeAnnotation=this.tsParseType(),this.expect(l.parenR),this.finishNode(s,"TSParenthesizedType")},g.tsParseNonArrayType=function(){switch(this.type){case l.string:case l.num:case l._true:case l._false:return this.tsParseLiteralTypeNode();case l.plusMin:if(this.value==="-"){var s=this.startNode();return this.lookahead().type!==l.num&&this.unexpected(),s.literal=this.parseMaybeUnary(),this.finishNode(s,"TSLiteralType")}break;case l._this:return this.tsParseThisTypeOrThisTypePredicate();case l._typeof:return this.tsParseTypeQuery();case l._import:return this.tsParseImportType();case l.braceL:return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this))?this.tsParseMappedType():this.tsParseTypeLiteral();case l.bracketL:return this.tsParseTupleType();case l.parenL:return this.tsParseParenthesizedType();case l.backQuote:case l.dollarBraceL:return this.tsParseTemplateLiteralType();default:var n=this.type;if(ne(n)||n===l._void||n===l._null){var p=n===l._void?"TSVoidKeyword":n===l._null?"TSNullKeyword":(function(b){switch(b){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}})(this.value);if(p!==void 0&&this.lookaheadCharCode()!==46){var m=this.startNode();return this.next(),this.finishNode(m,p)}return this.tsParseTypeReference()}}this.unexpected()},g.tsParseArrayTypeOrHigher=function(){for(var s=this.tsParseNonArrayType();!this.hasPrecedingLineBreak()&&this.eat(l.bracketL);)if(this.match(l.bracketR)){var n=this.startNodeAtNode(s);n.elementType=s,this.expect(l.bracketR),s=this.finishNode(n,"TSArrayType")}else{var p=this.startNodeAtNode(s);p.objectType=s,p.indexType=this.tsParseType(),this.expect(l.bracketR),s=this.finishNode(p,"TSIndexedAccessType")}return s},g.tsParseTypeOperatorOrHigher=function(){var s=this;return Ht(this.type)&&!this.containsEsc?this.tsParseTypeOperator():this.isContextual("infer")?this.tsParseInferType():this.tsInAllowConditionalTypesContext(function(){return s.tsParseArrayTypeOrHigher()})},g.tsParseIntersectionTypeOrHigher=function(){return this.tsParseUnionOrIntersectionType("TSIntersectionType",this.tsParseTypeOperatorOrHigher.bind(this),l.bitwiseAND)},g.tsParseUnionTypeOrHigher=function(){return this.tsParseUnionOrIntersectionType("TSUnionType",this.tsParseIntersectionTypeOrHigher.bind(this),l.bitwiseOR)},g.tsParseNonConditionalType=function(){return this.tsIsStartOfFunctionType()?this.tsParseFunctionOrConstructorType("TSFunctionType"):this.match(l._new)?this.tsParseFunctionOrConstructorType("TSConstructorType"):this.isAbstractConstructorSignature()?this.tsParseFunctionOrConstructorType("TSConstructorType",!0):this.tsParseUnionTypeOrHigher()},g.tsParseType=function(){var s=this;_r(this.inType);var n=this.tsParseNonConditionalType();if(this.inDisallowConditionalTypesContext||this.hasPrecedingLineBreak()||!this.eat(l._extends))return n;var p=this.startNodeAtNode(n);return p.checkType=n,p.extendsType=this.tsInDisallowConditionalTypesContext(function(){return s.tsParseNonConditionalType()}),this.expect(l.question),p.trueType=this.tsInAllowConditionalTypesContext(function(){return s.tsParseType()}),this.expect(l.colon),p.falseType=this.tsInAllowConditionalTypesContext(function(){return s.tsParseType()}),this.finishNode(p,"TSConditionalType")},g.tsIsUnambiguouslyIndexSignature=function(){return this.next(),!!ne(this.type)&&(this.next(),this.match(l.colon))},g.tsInType=function(s){var n=this.inType;this.inType=!0;try{return s()}finally{this.inType=n}},g.tsTryParseIndexSignature=function(s){if(this.match(l.bracketL)&&this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this))){this.expect(l.bracketL);var n=this.parseIdent();n.typeAnnotation=this.tsParseTypeAnnotation(),this.resetEndLocation(n),this.expect(l.bracketR),s.parameters=[n];var p=this.tsTryParseTypeAnnotation();return p&&(s.typeAnnotation=p),this.tsParseTypeMemberSemicolon(),this.finishNode(s,"TSIndexSignature")}},g.tsParseNoneModifiers=function(s){this.tsParseModifiers({modified:s,allowedModifiers:[],disallowedModifiers:["in","out"],errorTemplate:z.InvalidModifierOnTypeParameterPositions})},g.tsParseTypeParameter=function(s){s===void 0&&(s=this.tsParseNoneModifiers.bind(this));var n=this.startNode();return s(n),n.name=this.tsParseTypeParameterName(),n.constraint=this.tsEatThenParseType(l._extends),n.default=this.tsEatThenParseType(l.eq),this.finishNode(n,"TSTypeParameter")},g.tsParseTypeParameters=function(s){var n=this.startNode();this.tsMatchLeftRelational()||this.matchJsx("jsxTagStart")?this.next():this.unexpected();var p={value:-1};return n.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this,s),!1,!0,p),n.params.length===0&&this.raise(this.start,z.EmptyTypeParameters),p.value!==-1&&this.addExtra(n,"trailingComma",p.value),this.finishNode(n,"TSTypeParameterDeclaration")},g.tsTryParseTypeParameters=function(s){if(this.tsMatchLeftRelational())return this.tsParseTypeParameters(s)},g.tsTryParse=function(s){var n=this.getCurLookaheadState(),p=s();return p!==void 0&&p!==!1?p:void this.setLookaheadState(n)},g.tsTokenCanFollowModifier=function(){return(this.match(l.bracketL)||this.match(l.braceL)||this.match(l.star)||this.match(l.ellipsis)||this.match(l.privateId)||this.isLiteralPropertyName())&&!this.hasPrecedingLineBreak()},g.tsNextTokenCanFollowModifier=function(){return this.next(!0),this.tsTokenCanFollowModifier()},g.tsParseModifier=function(s,n){if(ne(this.type)||this.type===l._in){var p=this.value;if(s.indexOf(p)!==-1&&!this.containsEsc){if(n&&this.tsIsStartOfStaticBlocks())return;if(this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this)))return p}}},g.tsParseModifiersByMap=function(s){for(var n=s.modified,p=s.map,m=0,b=Object.keys(p);m<b.length;m++){var w=b[m];n[w]=p[w]}},g.tsParseModifiers=function(s){for(var n=this,p=s.modified,m=s.allowedModifiers,b=s.disallowedModifiers,w=s.stopOnStartOfClassStaticBlock,E=s.errorTemplate,_=E===void 0?z.InvalidModifierOnTypeMember:E,P={},R=function(he,ue,ce,me){ue===ce&&p[me]&&n.raise(he.column,z.InvalidModifiersOrder({orderedModifiers:[ce,me]}))},j=function(he,ue,ce,me){(p[ce]&&ue===me||p[me]&&ue===ce)&&n.raise(he.column,z.IncompatibleModifiers({modifiers:[ce,me]}))};;){var G=this.startLoc,B=this.tsParseModifier(m.concat(b??[]),w);if(!B)break;Tr(B)?p.accessibility?this.raise(this.start,z.DuplicateAccessibilityModifier()):(R(G,B,B,"override"),R(G,B,B,"static"),R(G,B,B,"readonly"),R(G,B,B,"accessor"),P.accessibility=B,p.accessibility=B):Wn(B)?p[B]?this.raise(this.start,z.DuplicateModifier({modifier:B})):(R(G,B,"in","out"),P[B]=B,p[B]=!0):Hn(B)?p[B]?this.raise(this.start,z.DuplicateModifier({modifier:B})):(j(G,B,"accessor","readonly"),j(G,B,"accessor","static"),j(G,B,"accessor","override"),P[B]=B,p[B]=!0):Object.hasOwnProperty.call(p,B)?this.raise(this.start,z.DuplicateModifier({modifier:B})):(R(G,B,"static","readonly"),R(G,B,"static","override"),R(G,B,"override","readonly"),R(G,B,"abstract","override"),j(G,B,"declare","override"),j(G,B,"static","abstract"),P[B]=B,p[B]=!0),b!=null&&b.includes(B)&&this.raise(this.start,_)}return P},g.tsParseInOutModifiers=function(s){this.tsParseModifiers({modified:s,allowedModifiers:["in","out"],disallowedModifiers:["public","private","protected","readonly","declare","abstract","override"],errorTemplate:z.InvalidModifierOnTypeParameter})},g.tsParseTypeArguments=function(){var s=this,n=this.startNode();return n.params=this.tsInType(function(){return s.tsInNoContext(function(){return s.expect(l.relational),s.tsParseDelimitedList("TypeParametersOrArguments",s.tsParseType.bind(s))})}),n.params.length===0&&this.raise(this.start,z.EmptyTypeArguments),this.exprAllowed=!1,this.expect(l.relational),this.finishNode(n,"TSTypeParameterInstantiation")},g.tsParseHeritageClause=function(s){var n=this,p=this.start,m=this.tsParseDelimitedList("HeritageClauseElement",function(){var b=n.startNode();return b.expression=n.tsParseEntityName(),n.tsMatchLeftRelational()&&(b.typeParameters=n.tsParseTypeArguments()),n.finishNode(b,"TSExpressionWithTypeArguments")});return m.length||this.raise(p,z.EmptyHeritageClauseType({token:s})),m},g.tsParseTypeMemberSemicolon=function(){this.eat(l.comma)||this.isLineTerminator()||this.expect(l.semi)},g.tsTryParseAndCatch=function(s){var n=this.tryParse(function(p){return s()||p()});if(!n.aborted&&n.node)return n.error&&this.setLookaheadState(n.failState),n.node},g.tsParseSignatureMember=function(s,n){return this.tsFillSignature(l.colon,n),this.tsParseTypeMemberSemicolon(),this.finishNode(n,s)},g.tsParsePropertyOrMethodSignature=function(s,n){this.eat(l.question)&&(s.optional=!0);var p=s;if(this.match(l.parenL)||this.tsMatchLeftRelational()){n&&this.raise(s.start,z.ReadonlyForMethodSignature);var m=p;m.kind&&this.tsMatchLeftRelational()&&this.raise(this.start,z.AccesorCannotHaveTypeParameters),this.tsFillSignature(l.colon,m),this.tsParseTypeMemberSemicolon();var b="parameters",w="typeAnnotation";if(m.kind==="get")m[b].length>0&&(this.raise(this.start,"A 'get' accesor must not have any formal parameters."),this.isThisParam(m[b][0])&&this.raise(this.start,z.AccesorCannotDeclareThisParameter));else if(m.kind==="set"){if(m[b].length!==1)this.raise(this.start,"A 'get' accesor must not have any formal parameters.");else{var E=m[b][0];this.isThisParam(E)&&this.raise(this.start,z.AccesorCannotDeclareThisParameter),E.type==="Identifier"&&E.optional&&this.raise(this.start,z.SetAccesorCannotHaveOptionalParameter),E.type==="RestElement"&&this.raise(this.start,z.SetAccesorCannotHaveRestParameter)}m[w]&&this.raise(m[w].start,z.SetAccesorCannotHaveReturnType)}else m.kind="method";return this.finishNode(m,"TSMethodSignature")}var _=p;n&&(_.readonly=!0);var P=this.tsTryParseTypeAnnotation();return P&&(_.typeAnnotation=P),this.tsParseTypeMemberSemicolon(),this.finishNode(_,"TSPropertySignature")},g.tsParseTypeMember=function(){var s=this.startNode();if(this.match(l.parenL)||this.tsMatchLeftRelational())return this.tsParseSignatureMember("TSCallSignatureDeclaration",s);if(this.match(l._new)){var n=this.startNode();return this.next(),this.match(l.parenL)||this.tsMatchLeftRelational()?this.tsParseSignatureMember("TSConstructSignatureDeclaration",s):(s.key=this.createIdentifier(n,"new"),this.tsParsePropertyOrMethodSignature(s,!1))}return this.tsParseModifiers({modified:s,allowedModifiers:["readonly"],disallowedModifiers:["declare","abstract","private","protected","public","static","override"]}),this.tsTryParseIndexSignature(s)||(this.parsePropertyName(s),s.computed||s.key.type!=="Identifier"||s.key.name!=="get"&&s.key.name!=="set"||!this.tsTokenCanFollowModifier()||(s.kind=s.key.name,this.parsePropertyName(s)),this.tsParsePropertyOrMethodSignature(s,!!s.readonly))},g.tsParseList=function(s,n){for(var p=[];!this.tsIsListTerminator(s);)p.push(n());return p},g.tsParseObjectTypeMembers=function(){this.expect(l.braceL);var s=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(l.braceR),s},g.tsParseInterfaceDeclaration=function(s,n){if(n===void 0&&(n={}),this.hasFollowingLineBreak())return null;this.expectContextual("interface"),n.declare&&(s.declare=!0),ne(this.type)?(s.id=this.parseIdent(),this.checkLValSimple(s.id,7)):(s.id=null,this.raise(this.start,z.MissingInterfaceName)),s.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers.bind(this)),this.eat(l._extends)&&(s.extends=this.tsParseHeritageClause("extends"));var p=this.startNode();return p.body=this.tsInType(this.tsParseObjectTypeMembers.bind(this)),s.body=this.finishNode(p,"TSInterfaceBody"),this.finishNode(s,"TSInterfaceDeclaration")},g.tsParseAbstractDeclaration=function(s){if(this.match(l._class))return s.abstract=!0,this.parseClass(s,!0);if(this.ts_isContextual(L.interface)){if(!this.hasFollowingLineBreak())return s.abstract=!0,this.tsParseInterfaceDeclaration(s)}else this.unexpected(s.start)},g.tsIsDeclarationStart=function(){return ve(this.type)},g.tsParseExpressionStatement=function(s,n){switch(n.name){case"declare":var p=this.tsTryParseDeclare(s);if(p)return p.declare=!0,p;break;case"global":if(this.match(l.braceL)){O.prototype.enterScope.call(this,Bt);var m=s;return m.global=!0,m.id=n,m.body=this.tsParseModuleBlock(),O.prototype.exitScope.call(this),this.finishNode(m,"TSModuleDeclaration")}break;default:return this.tsParseDeclaration(s,n.name,!1)}},g.tsParseModuleReference=function(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(!1)},g.tsIsExportDefaultSpecifier=function(){var s=this.type,n=this.isAsyncFunction(),p=this.isLet();if(ne(s)){if(n&&!this.containsEsc||p)return!1;if((s===L.type||s===L.interface)&&!this.containsEsc){var m=this.lookahead();if(ne(m.type)&&!this.isContextualWithState("from",m)||m.type===l.braceL)return!1}}else if(!this.match(l._default))return!1;var b=this.nextTokenStart(),w=this.isUnparsedContextual(b,"from");if(this.input.charCodeAt(b)===44||ne(this.type)&&w)return!0;if(this.match(l._default)&&w){var E=this.input.charCodeAt(this.nextTokenStartSince(b+4));return E===34||E===39}return!1},g.tsInAmbientContext=function(s){var n=this.isAmbientContext;this.isAmbientContext=!0;try{return s()}finally{this.isAmbientContext=n}},g.tsCheckLineTerminator=function(s){return s?!this.hasFollowingLineBreak()&&(this.next(),!0):!this.isLineTerminator()},g.tsParseModuleOrNamespaceDeclaration=function(s,n){if(n===void 0&&(n=!1),s.id=this.parseIdent(),n||this.checkLValSimple(s.id,8),this.eat(l.dot)){var p=this.startNode();this.tsParseModuleOrNamespaceDeclaration(p,!0),s.body=p}else O.prototype.enterScope.call(this,Bt),s.body=this.tsParseModuleBlock(),O.prototype.exitScope.call(this);return this.finishNode(s,"TSModuleDeclaration")},g.checkLValSimple=function(s,n,p){return n===void 0&&(n=0),O.prototype.checkLValSimple.call(this,s,n,p)},g.tsParseTypeAliasDeclaration=function(s){var n=this;return s.id=this.parseIdent(),this.checkLValSimple(s.id,6),s.typeAnnotation=this.tsInType(function(){if(s.typeParameters=n.tsTryParseTypeParameters(n.tsParseInOutModifiers.bind(n)),n.expect(l.eq),n.ts_isContextual(L.interface)&&n.lookahead().type!==l.dot){var p=n.startNode();return n.next(),n.finishNode(p,"TSIntrinsicKeyword")}return n.tsParseType()}),this.semicolon(),this.finishNode(s,"TSTypeAliasDeclaration")},g.tsParseDeclaration=function(s,n,p){switch(n){case"abstract":if(this.tsCheckLineTerminator(p)&&(this.match(l._class)||ne(this.type)))return this.tsParseAbstractDeclaration(s);break;case"module":if(this.tsCheckLineTerminator(p)){if(this.match(l.string))return this.tsParseAmbientExternalModuleDeclaration(s);if(ne(this.type))return this.tsParseModuleOrNamespaceDeclaration(s)}break;case"namespace":if(this.tsCheckLineTerminator(p)&&ne(this.type))return this.tsParseModuleOrNamespaceDeclaration(s);break;case"type":if(this.tsCheckLineTerminator(p)&&ne(this.type))return this.tsParseTypeAliasDeclaration(s)}},g.tsTryParseExportDeclaration=function(){return this.tsParseDeclaration(this.startNode(),this.value,!0)},g.tsParseImportEqualsDeclaration=function(s,n){s.isExport=n||!1,s.id=this.parseIdent(),this.checkLValSimple(s.id,2),O.prototype.expect.call(this,l.eq);var p=this.tsParseModuleReference();return s.importKind==="type"&&p.type!=="TSExternalModuleReference"&&this.raise(p.start,z.ImportAliasHasImportType),s.moduleReference=p,O.prototype.semicolon.call(this),this.finishNode(s,"TSImportEqualsDeclaration")},g.isExportDefaultSpecifier=function(){if(this.tsIsDeclarationStart())return!1;var s=this.type;if(ne(s)){if(this.isContextual("async")||this.isContextual("let"))return!1;if((s===L.type||s===L.interface)&&!this.containsEsc){var n=this.lookahead();if(ne(n.type)&&!this.isContextualWithState("from",n)||n.type===l.braceL)return!1}}else if(!this.match(l._default))return!1;var p=this.nextTokenStart(),m=this.isUnparsedContextual(p,"from");if(this.input.charCodeAt(p)===44||ne(this.type)&&m)return!0;if(this.match(l._default)&&m){var b=this.input.charCodeAt(this.nextTokenStartSince(p+4));return b===34||b===39}return!1},g.parseTemplate=function(s){var n=(s===void 0?{}:s).isTagged,p=n!==void 0&&n,m=this.startNode();this.next(),m.expressions=[];var b=this.parseTemplateElement({isTagged:p});for(m.quasis=[b];!b.tail;)this.type===l.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(l.dollarBraceL),m.expressions.push(this.inType?this.tsParseType():this.parseExpression()),this.expect(l.braceR),m.quasis.push(b=this.parseTemplateElement({isTagged:p}));return this.next(),this.finishNode(m,"TemplateLiteral")},g.parseFunction=function(s,n,p,m,b){this.initFunction(s),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!m)&&(this.type===l.star&&2&n&&this.unexpected(),s.generator=this.eat(l.star)),this.options.ecmaVersion>=8&&(s.async=!!m),1&n&&(s.id=4&n&&this.type!==l.name?null:this.parseIdent());var w=this.yieldPos,E=this.awaitPos,_=this.awaitIdentPos,P=this.maybeInArrowParameters;this.maybeInArrowParameters=!1,this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(qi(s.async,s.generator)),1&n||(s.id=this.type===l.name?this.parseIdent():null),this.parseFunctionParams(s);var R=1&n;return this.parseFunctionBody(s,p,!1,b,{isFunctionDeclaration:R}),this.yieldPos=w,this.awaitPos=E,this.awaitIdentPos=_,1&n&&s.id&&!(2&n)&&this.checkLValSimple(s.id,s.body?this.strict||s.generator||s.async?this.treatFunctionsAsVar?1:2:3:0),this.maybeInArrowParameters=P,this.finishNode(s,R?"FunctionDeclaration":"FunctionExpression")},g.parseFunctionBody=function(s,n,p,m,b){n===void 0&&(n=!1),p===void 0&&(p=!1),m===void 0&&(m=!1),this.match(l.colon)&&(s.returnType=this.tsParseTypeOrTypePredicateAnnotation(l.colon));var w=b!=null&&b.isFunctionDeclaration?"TSDeclareFunction":b!=null&&b.isClassMethod?"TSDeclareMethod":void 0;return w&&!this.match(l.braceL)&&this.isLineTerminator()?this.finishNode(s,w):w==="TSDeclareFunction"&&this.isAmbientContext&&(this.raise(s.start,z.DeclareFunctionHasImplementation),s.declare)?(O.prototype.parseFunctionBody.call(this,s,n,p,!1),this.finishNode(s,w)):(O.prototype.parseFunctionBody.call(this,s,n,p,m),s)},g.parseNew=function(){var s;this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var n=this.startNode(),p=this.parseIdent(!0);if(this.options.ecmaVersion>=6&&this.eat(l.dot)){n.meta=p;var m=this.containsEsc;return n.property=this.parseIdent(!0),n.property.name!=="target"&&this.raiseRecoverable(n.property.start,"The only valid meta property for new is 'new.target'"),m&&this.raiseRecoverable(n.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(n.start,"'new.target' can only be used in functions and class static block"),this.finishNode(n,"MetaProperty")}var b=this.start,w=this.startLoc,E=this.type===l._import;n.callee=this.parseSubscripts(this.parseExprAtom(),b,w,!0,!1),E&&n.callee.type==="ImportExpression"&&this.raise(b,"Cannot use new with import()");var _=n.callee;return _.type!=="TSInstantiationExpression"||(s=_.extra)!=null&&s.parenthesized||(n.typeParameters=_.typeParameters,n.callee=_.expression),n.arguments=this.eat(l.parenL)?this.parseExprList(l.parenR,this.options.ecmaVersion>=8,!1):[],this.finishNode(n,"NewExpression")},g.parseExprOp=function(s,n,p,m,b){var w;if(l._in.binop>m&&!this.hasPrecedingLineBreak()&&(this.isContextual("as")&&(w="TSAsExpression"),x&&this.isContextual("satisfies")&&(w="TSSatisfiesExpression"),w)){var E=this.startNodeAt(n,p);E.expression=s;var _=this.tsTryNextParseConstantContext();return E.typeAnnotation=_||this.tsNextThenParseType(),this.finishNode(E,w),this.reScan_lt_gt(),this.parseExprOp(E,n,p,m,b)}return O.prototype.parseExprOp.call(this,s,n,p,m,b)},g.parseImportSpecifiers=function(){var s=[],n=!0;if(C.tokenIsIdentifier(this.type)&&(s.push(this.parseImportDefaultSpecifier()),!this.eat(l.comma)))return s;if(this.type===l.star)return s.push(this.parseImportNamespaceSpecifier()),s;for(this.expect(l.braceL);!this.eat(l.braceR);){if(n)n=!1;else if(this.expect(l.comma),this.afterTrailingComma(l.braceR))break;s.push(this.parseImportSpecifier())}return s},g.parseImport=function(s){var n=this.lookahead();if(s.importKind="value",this.importOrExportOuterKind="value",ne(n.type)||this.match(l.star)||this.match(l.braceL)){var p=this.lookahead(2);if(p.type!==l.comma&&!this.isContextualWithState("from",p)&&p.type!==l.eq&&this.ts_eatContextualWithState("type",1,n)&&(this.importOrExportOuterKind="type",s.importKind="type",n=this.lookahead(),p=this.lookahead(2)),ne(n.type)&&p.type===l.eq){this.next();var m=this.tsParseImportEqualsDeclaration(s);return this.importOrExportOuterKind="value",m}}return this.next(),this.type===l.string?(s.specifiers=[],s.source=this.parseExprAtom()):(s.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),s.source=this.type===l.string?this.parseExprAtom():this.unexpected()),this.parseMaybeImportAttributes(s),this.semicolon(),this.finishNode(s,"ImportDeclaration"),this.importOrExportOuterKind="value",s.importKind==="type"&&s.specifiers.length>1&&s.specifiers[0].type==="ImportDefaultSpecifier"&&this.raise(s.start,z.TypeImportCannotSpecifyDefaultAndNamed),s},g.parseExportDefaultDeclaration=function(){if(this.isAbstractClass()){var s=this.startNode();return this.next(),s.abstract=!0,this.parseClass(s,!0)}if(this.match(L.interface)){var n=this.tsParseInterfaceDeclaration(this.startNode());if(n)return n}return O.prototype.parseExportDefaultDeclaration.call(this)},g.parseExportAllDeclaration=function(s,n){return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(s.exported=this.parseModuleExportName(),this.checkExport(n,s.exported,this.lastTokStart)):s.exported=null),this.expectContextual("from"),this.type!==l.string&&this.unexpected(),s.source=this.parseExprAtom(),this.parseMaybeImportAttributes(s),this.semicolon(),this.finishNode(s,"ExportAllDeclaration")},g.parseDynamicImport=function(s){if(this.next(),s.source=this.parseMaybeAssign(),this.eat(l.comma)){var n=this.parseExpression();s.arguments=[n]}if(!this.eat(l.parenR)){var p=this.start;this.eat(l.comma)&&this.eat(l.parenR)?this.raiseRecoverable(p,"Trailing comma is not allowed in import()"):this.unexpected(p)}return this.finishNode(s,"ImportExpression")},g.parseExport=function(s,n){var p=this.lookahead();if(this.ts_eatWithState(l._import,2,p)){this.ts_isContextual(L.type)&&this.lookaheadCharCode()!==61?(s.importKind="type",this.importOrExportOuterKind="type",this.next()):(s.importKind="value",this.importOrExportOuterKind="value");var m=this.tsParseImportEqualsDeclaration(s,!0);return this.importOrExportOuterKind=void 0,m}if(this.ts_eatWithState(l.eq,2,p)){var b=s;return b.expression=this.parseExpression(),this.semicolon(),this.importOrExportOuterKind=void 0,this.finishNode(b,"TSExportAssignment")}if(this.ts_eatContextualWithState("as",2,p)){var w=s;return this.expectContextual("namespace"),w.id=this.parseIdent(),this.semicolon(),this.importOrExportOuterKind=void 0,this.finishNode(w,"TSNamespaceExportDeclaration")}if(this.ts_isContextualWithState(p,L.type)&&this.lookahead(2).type===l.braceL?(this.next(),this.importOrExportOuterKind="type",s.exportKind="type"):(this.importOrExportOuterKind="value",s.exportKind="value"),this.next(),this.eat(l.star))return this.parseExportAllDeclaration(s,n);if(this.eat(l._default))return this.checkExport(n,"default",this.lastTokStart),s.declaration=this.parseExportDefaultDeclaration(),this.finishNode(s,"ExportDefaultDeclaration");if(this.shouldParseExportStatement())s.declaration=this.parseExportDeclaration(s),s.declaration.type==="VariableDeclaration"?this.checkVariableExport(n,s.declaration.declarations):this.checkExport(n,s.declaration.id,s.declaration.id.start),s.specifiers=[],s.source=null;else{if(s.declaration=null,s.specifiers=this.parseExportSpecifiers(n),this.eatContextual("from"))this.type!==l.string&&this.unexpected(),s.source=this.parseExprAtom(),this.parseMaybeImportAttributes(s);else{for(var E,_=kr(s.specifiers);!(E=_()).done;){var P=E.value;this.checkUnreserved(P.local),this.checkLocalExport(P.local),P.local.type==="Literal"&&this.raise(P.local.start,"A string literal cannot be used as an exported binding without `from`.")}s.source=null}this.semicolon()}return this.finishNode(s,"ExportNamedDeclaration")},g.checkExport=function(s,n,p){s&&(typeof n!="string"&&(n=n.type==="Identifier"?n.name:n.value),s[n]=!0)},g.parseMaybeDefault=function(s,n,p){var m=O.prototype.parseMaybeDefault.call(this,s,n,p);return m.type==="AssignmentPattern"&&m.typeAnnotation&&m.right.start<m.typeAnnotation.start&&this.raise(m.typeAnnotation.start,z.TypeAnnotationAfterAssign),m},g.typeCastToParameter=function(s){return s.expression.typeAnnotation=s.typeAnnotation,this.resetEndLocation(s.expression,s.typeAnnotation.end),s.expression},g.toAssignableList=function(s,n){for(var p=0;p<s.length;p++){var m=s[p];m?.type==="TSTypeCastExpression"&&(s[p]=this.typeCastToParameter(m))}return O.prototype.toAssignableList.call(this,s,n)},g.reportReservedArrowTypeParam=function(s){},g.parseExprAtom=function(s,n,p){if(this.type===L.jsxText)return this.jsx_parseText();if(this.type===L.jsxTagStart)return this.jsx_parseElement();if(this.type===L.at)return this.parseDecorators(),this.parseExprAtom();if(ne(this.type)){var m=this.potentialArrowAt===this.start,b=this.start,w=this.startLoc,E=this.containsEsc,_=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!E&&_.name==="async"&&!this.canInsertSemicolon()&&this.eat(l._function))return this.overrideContext(I.f_expr),this.parseFunction(this.startNodeAt(b,w),0,!1,!0,n);if(m&&!this.canInsertSemicolon()){if(this.eat(l.arrow))return this.parseArrowExpression(this.startNodeAt(b,w),[_],!1,n);if(this.options.ecmaVersion>=8&&_.name==="async"&&this.type===l.name&&!E&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc))return _=this.parseIdent(!1),!this.canInsertSemicolon()&&this.eat(l.arrow)||this.unexpected(),this.parseArrowExpression(this.startNodeAt(b,w),[_],!0,n)}return _}return O.prototype.parseExprAtom.call(this,s,n,p)},g.parseExprAtomDefault=function(){if(ne(this.type)){var s=this.potentialArrowAt===this.start,n=this.containsEsc,p=this.parseIdent();if(!n&&p.name==="async"&&!this.canInsertSemicolon()){var m=this.type;if(m===l._function)return this.next(),this.parseFunction(this.startNodeAtNode(p),void 0,!0,!0);if(ne(m)){if(this.lookaheadCharCode()===61){var b=this.parseIdent(!1);return!this.canInsertSemicolon()&&this.eat(l.arrow)||this.unexpected(),this.parseArrowExpression(this.startNodeAtNode(p),[b],!0)}return p}}return s&&this.match(l.arrow)&&!this.canInsertSemicolon()?(this.next(),this.parseArrowExpression(this.startNodeAtNode(p),[p],!1)):p}this.unexpected()},g.parseIdentNode=function(){var s=this.startNode();return Ve(this.type)?(s.name=this.value,s):O.prototype.parseIdentNode.call(this)},g.parseVarStatement=function(s,n,p){p===void 0&&(p=!1);var m=this.isAmbientContext;this.next(),O.prototype.parseVar.call(this,s,!1,n,p||m),this.semicolon();var b=this.finishNode(s,"VariableDeclaration");if(!m)return b;for(var w,E=kr(b.declarations);!(w=E()).done;){var _=w.value,P=_.init;P&&(n!=="const"||_.id.typeAnnotation?this.raise(P.start,z.InitializerNotAllowedInAmbientContext):P.type!=="StringLiteral"&&P.type!=="BooleanLiteral"&&P.type!=="NumericLiteral"&&P.type!=="BigIntLiteral"&&(P.type!=="TemplateLiteral"||P.expressions.length>0)&&!zn(P)&&this.raise(P.start,z.ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference))}return b},g.parseStatement=function(s,n,p){if(this.match(L.at)&&this.parseDecorators(!0),this.match(l._const)&&this.isLookaheadContextual("enum")){var m=this.startNode();return this.expect(l._const),this.tsParseEnumDeclaration(m,{const:!0})}if(this.ts_isContextual(L.enum))return this.tsParseEnumDeclaration(this.startNode());if(this.ts_isContextual(L.interface)){var b=this.tsParseInterfaceDeclaration(this.startNode());if(b)return b}return O.prototype.parseStatement.call(this,s,n,p)},g.parseAccessModifier=function(){return this.tsParseModifier(["public","protected","private"])},g.parsePostMemberNameModifiers=function(s){this.eat(l.question)&&(s.optional=!0),s.readonly&&this.match(l.parenL)&&this.raise(s.start,z.ClassMethodHasReadonly),s.declare&&this.match(l.parenL)&&this.raise(s.start,z.ClassMethodHasDeclare)},g.parseExpressionStatement=function(s,n){return(n.type==="Identifier"?this.tsParseExpressionStatement(s,n):void 0)||O.prototype.parseExpressionStatement.call(this,s,n)},g.shouldParseExportStatement=function(){return!!this.tsIsDeclarationStart()||!!this.match(L.at)||O.prototype.shouldParseExportStatement.call(this)},g.parseConditional=function(s,n,p,m,b){if(this.eat(l.question)){var w=this.startNodeAt(n,p);return w.test=s,w.consequent=this.parseMaybeAssign(),this.expect(l.colon),w.alternate=this.parseMaybeAssign(m),this.finishNode(w,"ConditionalExpression")}return s},g.parseMaybeConditional=function(s,n){var p=this,m=this.start,b=this.startLoc,w=this.parseExprOps(s,n);if(this.checkExpressionErrors(n))return w;if(!this.maybeInArrowParameters||!this.match(l.question))return this.parseConditional(w,m,b,s,n);var E=this.tryParse(function(){return p.parseConditional(w,m,b,s,n)});return E.node?(E.error&&this.setLookaheadState(E.failState),E.node):(E.error&&this.setOptionalParametersError(n,E.error),w)},g.parseParenItem=function(s){var n=this.start,p=this.startLoc;if(s=O.prototype.parseParenItem.call(this,s),this.eat(l.question)&&(s.optional=!0,this.resetEndLocation(s)),this.match(l.colon)){var m=this.startNodeAt(n,p);return m.expression=s,m.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(m,"TSTypeCastExpression")}return s},g.parseExportDeclaration=function(s){var n=this;if(!this.isAmbientContext&&this.ts_isContextual(L.declare))return this.tsInAmbientContext(function(){return n.parseExportDeclaration(s)});var p=this.start,m=this.startLoc,b=this.eatContextual("declare");!b||!this.ts_isContextual(L.declare)&&this.shouldParseExportStatement()||this.raise(this.start,z.ExpectedAmbientAfterExportDeclare);var w=ne(this.type)&&this.tsTryParseExportDeclaration()||this.parseStatement(null);return w?((w.type==="TSInterfaceDeclaration"||w.type==="TSTypeAliasDeclaration"||b)&&(s.exportKind="type"),b&&(this.resetStartLocation(w,p,m),w.declare=!0),w):null},g.parseClassId=function(s,n){if(n||!this.isContextual("implements")){O.prototype.parseClassId.call(this,s,n);var p=this.tsTryParseTypeParameters(this.tsParseInOutModifiers.bind(this));p&&(s.typeParameters=p)}},g.parseClassPropertyAnnotation=function(s){s.optional||(this.value==="!"&&this.eat(l.prefix)?s.definite=!0:this.eat(l.question)&&(s.optional=!0));var n=this.tsTryParseTypeAnnotation();n&&(s.typeAnnotation=n)},g.parseClassField=function(s){if(s.key.type==="PrivateIdentifier")s.abstract&&this.raise(s.start,z.PrivateElementHasAbstract),s.accessibility&&this.raise(s.start,z.PrivateElementHasAccessibility({modifier:s.accessibility})),this.parseClassPropertyAnnotation(s);else if(this.parseClassPropertyAnnotation(s),this.isAmbientContext&&(!s.readonly||s.typeAnnotation)&&this.match(l.eq)&&this.raise(this.start,z.DeclareClassFieldHasInitializer),s.abstract&&this.match(l.eq)){var n=s.key;this.raise(this.start,z.AbstractPropertyHasInitializer({propertyName:n.type!=="Identifier"||s.computed?"["+this.input.slice(n.start,n.end)+"]":n.name}))}return O.prototype.parseClassField.call(this,s)},g.parseClassMethod=function(s,n,p,m){var b=s.kind==="constructor",w=s.key.type==="PrivateIdentifier",E=this.tsTryParseTypeParameters();w?(E&&(s.typeParameters=E),s.accessibility&&this.raise(s.start,z.PrivateMethodsHasAccessibility({modifier:s.accessibility}))):E&&b&&this.raise(E.start,z.ConstructorHasTypeParameters);var _=s.declare,P=s.kind;!(_!==void 0&&_)||P!=="get"&&P!=="set"||this.raise(s.start,z.DeclareAccessor({kind:P})),E&&(s.typeParameters=E);var R=s.key;s.kind==="constructor"?(n&&this.raise(R.start,"Constructor can't be a generator"),p&&this.raise(R.start,"Constructor can't be an async method")):s.static&&Ar(s,"prototype")&&this.raise(R.start,"Classes may not have a static property named prototype");var j=s.value=this.parseMethod(n,p,m,!0,s);return s.kind==="get"&&j.params.length!==0&&this.raiseRecoverable(j.start,"getter should have no params"),s.kind==="set"&&j.params.length!==1&&this.raiseRecoverable(j.start,"setter should have exactly one param"),s.kind==="set"&&j.params[0].type==="RestElement"&&this.raiseRecoverable(j.params[0].start,"Setter cannot use rest params"),this.finishNode(s,"MethodDefinition")},g.isClassMethod=function(){return this.match(l.relational)},g.parseClassElement=function(s){var n=this;if(this.eat(l.semi))return null;var p,m=this.options.ecmaVersion,b=this.startNode(),w="",E=!1,_=!1,P="method",R=["declare","private","public","protected","accessor","override","abstract","readonly","static"],j=this.tsParseModifiers({modified:b,allowedModifiers:R,disallowedModifiers:["in","out"],stopOnStartOfClassStaticBlock:!0,errorTemplate:z.InvalidModifierOnTypeParameterPositions});p=!!j.static;var G=function(){if(!n.tsIsStartOfStaticBlocks()){var B=n.tsTryParseIndexSignature(b);if(B)return b.abstract&&n.raise(b.start,z.IndexSignatureHasAbstract),b.accessibility&&n.raise(b.start,z.IndexSignatureHasAccessibility({modifier:b.accessibility})),b.declare&&n.raise(b.start,z.IndexSignatureHasDeclare),b.override&&n.raise(b.start,z.IndexSignatureHasOverride),B;if(!n.inAbstractClass&&b.abstract&&n.raise(b.start,z.NonAbstractClassHasAbstractMethod),b.override&&s&&n.raise(b.start,z.OverrideNotInSubClass),b.static=p,p&&(n.isClassElementNameStart()||n.type===l.star||(w="static")),!w&&m>=8&&n.eatContextual("async")&&(!n.isClassElementNameStart()&&n.type!==l.star||n.canInsertSemicolon()?w="async":_=!0),!w&&(m>=9||!_)&&n.eat(l.star)&&(E=!0),!w&&!_&&!E){var he=n.value;(n.eatContextual("get")||n.eatContextual("set"))&&(n.isClassElementNameStart()?P=he:w=he)}if(w?(b.computed=!1,b.key=n.startNodeAt(n.lastTokStart,n.lastTokStartLoc),b.key.name=w,n.finishNode(b.key,"Identifier")):n.parseClassElementName(b),n.parsePostMemberNameModifiers(b),n.isClassMethod()||m<13||n.type===l.parenL||P!=="method"||E||_){var ue=!b.static&&Ar(b,"constructor"),ce=ue&&s;ue&&P!=="method"&&n.raise(b.key.start,"Constructor can't have get/set modifier"),b.kind=ue?"constructor":P,n.parseClassMethod(b,E,_,ce)}else n.parseClassField(b);return b}if(n.next(),n.next(),n.tsHasSomeModifiers(b,R)&&n.raise(n.start,z.StaticBlockCannotHaveModifier),m>=13)return O.prototype.parseClassStaticBlock.call(n,b),b};return b.declare?this.tsInAmbientContext(G):G(),b},g.isClassElementNameStart=function(){return!!this.tsIsIdentifier()||O.prototype.isClassElementNameStart.call(this)},g.parseClassSuper=function(s){O.prototype.parseClassSuper.call(this,s),s.superClass&&(this.tsMatchLeftRelational()||this.match(l.bitShift))&&(s.superTypeParameters=this.tsParseTypeArgumentsInExpression()),this.eatContextual("implements")&&(s.implements=this.tsParseHeritageClause("implements"))},g.parseFunctionParams=function(s){var n=this.tsTryParseTypeParameters();n&&(s.typeParameters=n),O.prototype.parseFunctionParams.call(this,s)},g.parseVarId=function(s,n){O.prototype.parseVarId.call(this,s,n),s.id.type==="Identifier"&&!this.hasPrecedingLineBreak()&&this.value==="!"&&this.eat(l.prefix)&&(s.definite=!0);var p=this.tsTryParseTypeAnnotation();p&&(s.id.typeAnnotation=p,this.resetEndLocation(s.id))},g.parseArrowExpression=function(s,n,p,m){this.match(l.colon)&&(s.returnType=this.tsParseTypeAnnotation());var b=this.yieldPos,w=this.awaitPos,E=this.awaitIdentPos;this.enterScope(16|qi(p,!1)),this.initFunction(s);var _=this.maybeInArrowParameters;return this.options.ecmaVersion>=8&&(s.async=!!p),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.maybeInArrowParameters=!0,s.params=this.toAssignableList(n,!0),this.maybeInArrowParameters=!1,this.parseFunctionBody(s,!0,!1,m),this.yieldPos=b,this.awaitPos=w,this.awaitIdentPos=E,this.maybeInArrowParameters=_,this.finishNode(s,"ArrowFunctionExpression")},g.parseMaybeAssignOrigin=function(s,n,p){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(s);this.exprAllowed=!1}var m=!1,b=-1,w=-1,E=-1;n?(b=n.parenthesizedAssign,w=n.trailingComma,E=n.doubleProto,n.parenthesizedAssign=n.trailingComma=-1):(n=new jt,m=!0);var _=this.start,P=this.startLoc;(this.type===l.parenL||ne(this.type))&&(this.potentialArrowAt=this.start,this.potentialArrowInForAwait=s==="await");var R=this.parseMaybeConditional(s,n);if(p&&(R=p.call(this,R,_,P)),this.type.isAssign){var j=this.startNodeAt(_,P);return j.operator=this.value,this.type===l.eq&&(R=this.toAssignable(R,!0,n)),m||(n.parenthesizedAssign=n.trailingComma=n.doubleProto=-1),n.shorthandAssign>=R.start&&(n.shorthandAssign=-1),this.type===l.eq?this.checkLValPattern(R):this.checkLValSimple(R),j.left=R,this.next(),j.right=this.parseMaybeAssign(s),E>-1&&(n.doubleProto=E),this.finishNode(j,"AssignmentExpression")}return m&&this.checkExpressionErrors(n,!0),b>-1&&(n.parenthesizedAssign=b),w>-1&&(n.trailingComma=w),R},g.parseMaybeAssign=function(s,n,p){var m,b,w,E,_,P,R,j,G,B,he,ue=this;if(this.matchJsx("jsxTagStart")||this.tsMatchLeftRelational()){if(j=this.cloneCurLookaheadState(),!(G=this.tryParse(function(){return ue.parseMaybeAssignOrigin(s,n,p)},j)).error)return G.node;var ce=this.context,me=ce[ce.length-1];me===C.tokContexts.tc_oTag&&ce[ce.length-2]===C.tokContexts.tc_expr?(ce.pop(),ce.pop()):me!==C.tokContexts.tc_oTag&&me!==C.tokContexts.tc_expr||ce.pop()}if(!((m=G)!=null&&m.error||this.tsMatchLeftRelational()))return this.parseMaybeAssignOrigin(s,n,p);j&&!this.compareLookaheadState(j,this.getCurLookaheadState())||(j=this.cloneCurLookaheadState());var Se=this.tryParse(function(Ce){var ze,it;he=ue.tsParseTypeParameters();var Le=ue.parseMaybeAssignOrigin(s,n,p);return(Le.type!=="ArrowFunctionExpression"||(ze=Le.extra)!=null&&ze.parenthesized)&&Ce(),((it=he)==null?void 0:it.params.length)!==0&&ue.resetStartLocationFromNode(Le,he),Le.typeParameters=he,Le},j);if(!Se.error&&!Se.aborted)return he&&this.reportReservedArrowTypeParam(he),Se.node;if(!G&&(_r(!0),!(B=this.tryParse(function(){return ue.parseMaybeAssignOrigin(s,n,p)},j)).error))return B.node;if((b=G)!=null&&b.node)return this.setLookaheadState(G.failState),G.node;if(Se.node)return this.setLookaheadState(Se.failState),he&&this.reportReservedArrowTypeParam(he),Se.node;if((w=B)!=null&&w.node)return this.setLookaheadState(B.failState),B.node;throw(E=G)!=null&&E.thrown?G.error:Se.thrown?Se.error:(_=B)!=null&&_.thrown?B.error:((P=G)==null?void 0:P.error)||Se.error||((R=B)==null?void 0:R.error)},g.parseAssignableListItem=function(s){for(var n=[];this.match(L.at);)n.push(this.parseDecorator());var p,m=this.start,b=this.startLoc,w=!1,E=!1;if(s!==void 0){var _={};this.tsParseModifiers({modified:_,allowedModifiers:["public","private","protected","override","readonly"]}),p=_.accessibility,E=_.override,w=_.readonly,s===!1&&(p||w||E)&&this.raise(b.start,z.UnexpectedParameterModifier)}var P=this.parseMaybeDefault(m,b);this.parseBindingListItem(P);var R=this.parseMaybeDefault(P.start,P.loc,P);if(n.length&&(R.decorators=n),p||w||E){var j=this.startNodeAt(m,b);return p&&(j.accessibility=p),w&&(j.readonly=w),E&&(j.override=E),R.type!=="Identifier"&&R.type!=="AssignmentPattern"&&this.raise(j.start,z.UnsupportedParameterPropertyKind),j.parameter=R,this.finishNode(j,"TSParameterProperty")}return R},g.checkLValInnerPattern=function(s,n,p){n===void 0&&(n=0),s.type==="TSParameterProperty"?this.checkLValInnerPattern(s.parameter,n,p):O.prototype.checkLValInnerPattern.call(this,s,n,p)},g.parseBindingListItem=function(s){this.eat(l.question)&&(s.type==="Identifier"||this.isAmbientContext||this.inType||this.raise(s.start,z.PatternIsOptional),s.optional=!0);var n=this.tsTryParseTypeAnnotation();return n&&(s.typeAnnotation=n),this.resetEndLocation(s),s},g.isAssignable=function(s,n){var p=this;switch(s.type){case"TSTypeCastExpression":return this.isAssignable(s.expression,n);case"TSParameterProperty":case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":return!0;case"ObjectExpression":var m=s.properties.length-1;return s.properties.every(function(b,w){return b.type!=="ObjectMethod"&&(w===m||b.type!=="SpreadElement")&&p.isAssignable(b)});case"Property":case"ObjectProperty":return this.isAssignable(s.value);case"SpreadElement":return this.isAssignable(s.argument);case"ArrayExpression":return s.elements.every(function(b){return b===null||p.isAssignable(b)});case"AssignmentExpression":return s.operator==="=";case"ParenthesizedExpression":return this.isAssignable(s.expression);case"MemberExpression":case"OptionalMemberExpression":return!n;default:return!1}},g.toAssignable=function(s,n,p){switch(n===void 0&&(n=!1),p===void 0&&(p=new jt),s.type){case"ParenthesizedExpression":return this.toAssignableParenthesizedExpression(s,n,p);case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":return n||this.raise(s.start,z.UnexpectedTypeCastInParameter),this.toAssignable(s.expression,n,p);case"MemberExpression":break;case"AssignmentExpression":return n||s.left.type!=="TSTypeCastExpression"||(s.left=this.typeCastToParameter(s.left)),O.prototype.toAssignable.call(this,s,n,p);case"TSTypeCastExpression":return this.typeCastToParameter(s);default:return O.prototype.toAssignable.call(this,s,n,p)}return s},g.toAssignableParenthesizedExpression=function(s,n,p){switch(s.expression.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":case"ParenthesizedExpression":return this.toAssignable(s.expression,n,p);default:return O.prototype.toAssignable.call(this,s,n,p)}},g.curPosition=function(){if(this.options.locations){var s=O.prototype.curPosition.call(this);return Object.defineProperty(s,"offset",{get:function(){return function(n){var p=new S.Position(this.line,this.column+n);return p.index=this.index+n,p}}}),s.index=this.pos,s}},g.parseBindingAtom=function(){return this.type===l._this?this.parseIdent(!0):O.prototype.parseBindingAtom.call(this)},g.shouldParseArrow=function(s){var n,p=this;if(n=this.match(l.colon)?s.every(function(b){return p.isAssignable(b,!0)}):!this.canInsertSemicolon()){if(this.match(l.colon)){var m=this.tryParse(function(b){var w=p.tsParseTypeOrTypePredicateAnnotation(l.colon);return!p.canInsertSemicolon()&&p.match(l.arrow)||b(),w});if(m.aborted)return this.shouldParseArrowReturnType=void 0,!1;m.thrown||(m.error&&this.setLookaheadState(m.failState),this.shouldParseArrowReturnType=m.node)}return!!this.match(l.arrow)||(this.shouldParseArrowReturnType=void 0,!1)}return this.shouldParseArrowReturnType=void 0,n},g.parseParenArrowList=function(s,n,p,m){var b=this.startNodeAt(s,n);return b.returnType=this.shouldParseArrowReturnType,this.shouldParseArrowReturnType=void 0,this.parseArrowExpression(b,p,!1,m)},g.parseParenAndDistinguishExpression=function(s,n){var p,m=this.start,b=this.startLoc,w=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){var E=this.maybeInArrowParameters;this.maybeInArrowParameters=!0,this.next();var _,P=this.start,R=this.startLoc,j=[],G=!0,B=!1,he=new jt,ue=this.yieldPos,ce=this.awaitPos;for(this.yieldPos=0,this.awaitPos=0;this.type!==l.parenR;){if(G?G=!1:this.expect(l.comma),w&&this.afterTrailingComma(l.parenR,!0)){B=!0;break}if(this.type===l.ellipsis){_=this.start,j.push(this.parseParenItem(this.parseRestBinding())),this.type===l.comma&&this.raise(this.start,"Comma is not permitted after the rest element");break}j.push(this.parseMaybeAssign(n,he,this.parseParenItem))}var me=this.lastTokEnd,Se=this.lastTokEndLoc;if(this.expect(l.parenR),this.maybeInArrowParameters=E,s&&this.shouldParseArrow(j)&&this.eat(l.arrow))return this.checkPatternErrors(he,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=ue,this.awaitPos=ce,this.parseParenArrowList(m,b,j,n);j.length&&!B||this.unexpected(this.lastTokStart),_&&this.unexpected(_),this.checkExpressionErrors(he,!0),this.yieldPos=ue||this.yieldPos,this.awaitPos=ce||this.awaitPos,j.length>1?((p=this.startNodeAt(P,R)).expressions=j,this.finishNodeAt(p,"SequenceExpression",me,Se)):p=j[0]}else p=this.parseParenExpression();if(this.options.preserveParens){var Ce=this.startNodeAt(m,b);return Ce.expression=p,this.finishNode(Ce,"ParenthesizedExpression")}return p},g.parseTaggedTemplateExpression=function(s,n,p,m){var b=this.startNodeAt(n,p);return b.tag=s,b.quasi=this.parseTemplate({isTagged:!0}),m&&this.raise(n,"Tagged Template Literals are not allowed in optionalChain."),this.finishNode(b,"TaggedTemplateExpression")},g.shouldParseAsyncArrow=function(){var s=this;if(!this.match(l.colon))return!this.canInsertSemicolon()&&this.eat(l.arrow);var n=this.tryParse(function(p){var m=s.tsParseTypeOrTypePredicateAnnotation(l.colon);return!s.canInsertSemicolon()&&s.match(l.arrow)||p(),m});return n.aborted?(this.shouldParseAsyncArrowReturnType=void 0,!1):n.thrown?void 0:(n.error&&this.setLookaheadState(n.failState),this.shouldParseAsyncArrowReturnType=n.node,!this.canInsertSemicolon()&&this.eat(l.arrow))},g.parseSubscriptAsyncArrow=function(s,n,p,m){var b=this.startNodeAt(s,n);return b.returnType=this.shouldParseAsyncArrowReturnType,this.shouldParseAsyncArrowReturnType=void 0,this.parseArrowExpression(b,p,!0,m)},g.parseExprList=function(s,n,p,m){for(var b=[],w=!0;!this.eat(s);){if(w)w=!1;else if(this.expect(l.comma),n&&this.afterTrailingComma(s))break;var E=void 0;p&&this.type===l.comma?E=null:this.type===l.ellipsis?(E=this.parseSpread(m),m&&this.type===l.comma&&m.trailingComma<0&&(m.trailingComma=this.start)):E=this.parseMaybeAssign(!1,m,this.parseParenItem),b.push(E)}return b},g.parseSubscript=function(s,n,p,m,b,w,E){var _=this,P=w;if(!this.hasPrecedingLineBreak()&&this.value==="!"&&this.match(l.prefix)){this.exprAllowed=!1,this.next();var R=this.startNodeAt(n,p);return R.expression=s,s=this.finishNode(R,"TSNonNullExpression")}var j=!1;if(this.match(l.questionDot)&&this.lookaheadCharCode()===60){if(m)return s;s.optional=!0,P=j=!0,this.next()}if(this.tsMatchLeftRelational()||this.match(l.bitShift)){var G,B=this.tsTryParseAndCatch(function(){if(!m&&_.atPossibleAsyncArrow(s)){var De=_.tsTryParseGenericAsyncArrowFunction(n,p,E);if(De)return s=De}var ot=_.tsParseTypeArgumentsInExpression();if(!ot)return s;if(j&&!_.match(l.parenL))return G=_.curPosition(),s;if(d(_.type)||_.type===l.backQuote){var At=_.parseTaggedTemplateExpression(s,n,p,P);return At.typeParameters=ot,At}if(!m&&_.eat(l.parenL)){var _t=new jt,ae=_.startNodeAt(n,p);return ae.callee=s,ae.arguments=_.parseExprList(l.parenR,_.options.ecmaVersion>=8,!1,_t),_.tsCheckForInvalidTypeCasts(ae.arguments),ae.typeParameters=ot,P&&(ae.optional=j),_.checkExpressionErrors(_t,!0),s=_.finishNode(ae,"CallExpression")}var we=_.type;if(!(_.tsMatchRightRelational()||we===l.bitShift||we!==l.parenL&&(ye=we,!!ye.startsExpr)&&!_.hasPrecedingLineBreak())){var ye,Tt=_.startNodeAt(n,p);return Tt.expression=s,Tt.typeParameters=ot,_.finishNode(Tt,"TSInstantiationExpression")}});if(G&&this.unexpected(G),B)return B.type==="TSInstantiationExpression"&&(this.match(l.dot)||this.match(l.questionDot)&&this.lookaheadCharCode()!==40)&&this.raise(this.start,z.InvalidPropertyAccessAfterInstantiationExpression),s=B}var he=this.options.ecmaVersion>=11,ue=he&&this.eat(l.questionDot);m&&ue&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var ce=this.eat(l.bracketL);if(ce||ue&&this.type!==l.parenL&&this.type!==l.backQuote||this.eat(l.dot)){var me=this.startNodeAt(n,p);me.object=s,ce?(me.property=this.parseExpression(),this.expect(l.bracketR)):me.property=this.type===l.privateId&&s.type!=="Super"?this.parsePrivateIdent():this.parseIdent(this.options.allowReserved!=="never"),me.computed=!!ce,he&&(me.optional=ue),s=this.finishNode(me,"MemberExpression")}else if(!m&&this.eat(l.parenL)){var Se=this.maybeInArrowParameters;this.maybeInArrowParameters=!0;var Ce=new jt,ze=this.yieldPos,it=this.awaitPos,Le=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var dt=this.parseExprList(l.parenR,this.options.ecmaVersion>=8,!1,Ce);if(b&&!ue&&this.shouldParseAsyncArrow())this.checkPatternErrors(Ce,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=ze,this.awaitPos=it,this.awaitIdentPos=Le,s=this.parseSubscriptAsyncArrow(n,p,dt,E);else{this.checkExpressionErrors(Ce,!0),this.yieldPos=ze||this.yieldPos,this.awaitPos=it||this.awaitPos,this.awaitIdentPos=Le||this.awaitIdentPos;var Qe=this.startNodeAt(n,p);Qe.callee=s,Qe.arguments=dt,he&&(Qe.optional=ue),s=this.finishNode(Qe,"CallExpression")}this.maybeInArrowParameters=Se}else if(this.type===l.backQuote){(ue||P)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var nt=this.startNodeAt(n,p);nt.tag=s,nt.quasi=this.parseTemplate({isTagged:!0}),s=this.finishNode(nt,"TaggedTemplateExpression")}return s},g.parseGetterSetter=function(s){s.kind=s.key.name,this.parsePropertyName(s),s.value=this.parseMethod(!1);var n=s.kind==="get"?0:1,p=s.value.params[0],m=p&&this.isThisParam(p);s.value.params.length!==(n=m?n+1:n)?this.raiseRecoverable(s.value.start,s.kind==="get"?"getter should have no params":"setter should have exactly one param"):s.kind==="set"&&s.value.params[0].type==="RestElement"&&this.raiseRecoverable(s.value.params[0].start,"Setter cannot use rest params")},g.parseProperty=function(s,n){if(!s){var p=[];if(this.match(L.at))for(;this.match(L.at);)p.push(this.parseDecorator());var m=O.prototype.parseProperty.call(this,s,n);return m.type==="SpreadElement"&&p.length&&this.raise(m.start,"Decorators can't be used with SpreadElement"),p.length&&(m.decorators=p,p=[]),m}return O.prototype.parseProperty.call(this,s,n)},g.parseCatchClauseParam=function(){var s=this.parseBindingAtom(),n=s.type==="Identifier";this.enterScope(n?32:0),this.checkLValPattern(s,n?4:2);var p=this.tsTryParseTypeAnnotation();return p&&(s.typeAnnotation=p,this.resetEndLocation(s)),this.expect(l.parenR),s},g.parseClass=function(s,n){var p=this.inAbstractClass;this.inAbstractClass=!!s.abstract;try{this.next(),this.takeDecorators(s);var m=this.strict;this.strict=!0,this.parseClassId(s,n),this.parseClassSuper(s);var b=this.enterClassBody(),w=this.startNode(),E=!1;w.body=[];var _=[];for(this.expect(l.braceL);this.type!==l.braceR;)if(this.match(L.at))_.push(this.parseDecorator());else{var P=this.parseClassElement(s.superClass!==null);_.length&&(P.decorators=_,this.resetStartLocationFromNode(P,_[0]),_=[]),P&&(w.body.push(P),P.type==="MethodDefinition"&&P.kind==="constructor"&&P.value.type==="FunctionExpression"?(E&&this.raiseRecoverable(P.start,"Duplicate constructor in the same class"),E=!0,P.decorators&&P.decorators.length>0&&this.raise(P.start,"Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?")):P.key&&P.key.type==="PrivateIdentifier"&&Bn(b,P)&&this.raiseRecoverable(P.key.start,"Identifier '#"+P.key.name+"' has already been declared"))}return this.strict=m,this.next(),_.length&&this.raise(this.start,"Decorators must be attached to a class element."),s.body=this.finishNode(w,"ClassBody"),this.exitClassBody(),this.finishNode(s,n?"ClassDeclaration":"ClassExpression")}finally{this.inAbstractClass=p}},g.parseClassFunctionParams=function(){var s=this.tsTryParseTypeParameters(this.tsParseConstModifier),n=this.parseBindingList(l.parenR,!1,this.options.ecmaVersion>=8,!0);return s&&(n.typeParameters=s),n},g.parseMethod=function(s,n,p,m,b){var w=this.startNode(),E=this.yieldPos,_=this.awaitPos,P=this.awaitIdentPos;if(this.initFunction(w),this.options.ecmaVersion>=6&&(w.generator=s),this.options.ecmaVersion>=8&&(w.async=!!n),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(64|qi(n,w.generator)|(p?128:0)),this.expect(l.parenL),w.params=this.parseClassFunctionParams(),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(w,!1,!0,!1,{isClassMethod:m}),this.yieldPos=E,this.awaitPos=_,this.awaitIdentPos=P,b&&b.abstract&&w.body){var R=b.key;this.raise(b.start,z.AbstractMethodHasImplementation({methodName:R.type!=="Identifier"||b.computed?"["+this.input.slice(R.start,R.end)+"]":R.name}))}return this.finishNode(w,"FunctionExpression")},be.parse=function(s,n){if(n.locations===!1)throw new Error("You have to enable options.locations while using acorn-typescript");n.locations=!0;var p=new this(n,s);return o&&(p.isAmbientContext=!0),p.parse()},be.parseExpressionAt=function(s,n,p){if(p.locations===!1)throw new Error("You have to enable options.locations while using acorn-typescript");p.locations=!0;var m=new this(p,s,n);return o&&(m.isAmbientContext=!0),m.nextToken(),m.parseExpression()},g.parseImportSpecifier=function(){if(this.ts_isContextual(L.type)){var s=this.startNode();return s.imported=this.parseModuleExportName(),this.parseTypeOnlyImportExportSpecifier(s,!0,this.importOrExportOuterKind==="type"),this.finishNode(s,"ImportSpecifier")}var n=O.prototype.parseImportSpecifier.call(this);return n.importKind="value",n},g.parseExportSpecifier=function(s){var n=this.ts_isContextual(L.type);if(!this.match(l.string)&&n){var p=this.startNode();return p.local=this.parseModuleExportName(),this.parseTypeOnlyImportExportSpecifier(p,!1,this.importOrExportOuterKind==="type"),this.finishNode(p,"ExportSpecifier"),this.checkExport(s,p.exported,p.exported.start),p}var m=O.prototype.parseExportSpecifier.call(this,s);return m.exportKind="value",m},g.parseTypeOnlyImportExportSpecifier=function(s,n,p){var m,b=n?"imported":"local",w=n?"local":"exported",E=s[b],_=!1,P=!0,R=E.start;if(this.isContextual("as")){var j=this.parseIdent();if(this.isContextual("as")){var G=this.parseIdent();Ve(this.type)?(_=!0,E=j,m=n?this.parseIdent():this.parseModuleExportName(),P=!1):(m=G,P=!1)}else Ve(this.type)?(P=!1,m=n?this.parseIdent():this.parseModuleExportName()):(_=!0,E=j)}else Ve(this.type)&&(_=!0,n?(E=O.prototype.parseIdent.call(this,!0),this.isContextual("as")||this.checkUnreserved(E)):E=this.parseModuleExportName());_&&p&&this.raise(R,n?z.TypeModifierIsUsedInTypeImports:z.TypeModifierIsUsedInTypeExports),s[b]=E,s[w]=m,s[n?"importKind":"exportKind"]=_?"type":"value",P&&this.eatContextual("as")&&(s[w]=n?this.parseIdent():this.parseModuleExportName()),s[w]||(s[w]=this.copyNode(s[b])),n&&this.checkLValSimple(s[w],2)},g.raiseCommonCheck=function(s,n,p){return n==="Comma is not permitted after the rest element"?this.isAmbientContext&&this.match(l.comma)&&this.lookaheadCharCode()===41?void this.next():O.prototype.raise.call(this,s,n):p?O.prototype.raiseRecoverable.call(this,s,n):O.prototype.raise.call(this,s,n)},g.raiseRecoverable=function(s,n){return this.raiseCommonCheck(s,n,!0)},g.raise=function(s,n){return this.raiseCommonCheck(s,n,!0)},g.updateContext=function(s){var n=this.type;if(n==l.braceL){var p=this.curContext();p==ee.tc_oTag?this.context.push(I.b_expr):p==ee.tc_expr?this.context.push(I.b_tmpl):O.prototype.updateContext.call(this,s),this.exprAllowed=!0}else{if(n!==l.slash||s!==L.jsxTagStart)return O.prototype.updateContext.call(this,s);this.context.length-=2,this.context.push(ee.tc_cTag),this.exprAllowed=!1}},g.jsx_parseOpeningElementAt=function(s,n){var p=this,m=this.startNodeAt(s,n),b=this.jsx_parseElementName();if(b&&(m.name=b),this.match(l.relational)||this.match(l.bitShift)){var w=this.tsTryParseAndCatch(function(){return p.tsParseTypeArgumentsInExpression()});w&&(m.typeParameters=w)}for(m.attributes=[];this.type!==l.slash&&this.type!==L.jsxTagEnd;)m.attributes.push(this.jsx_parseAttribute());return m.selfClosing=this.eat(l.slash),this.expect(L.jsxTagEnd),this.finishNode(m,b?"JSXOpeningElement":"JSXOpeningFragment")},g.enterScope=function(s){s===Bt&&this.importsStack.push([]),O.prototype.enterScope.call(this,s);var n=O.prototype.currentScope.call(this);n.types=[],n.enums=[],n.constEnums=[],n.classes=[],n.exportOnlyBindings=[]},g.exitScope=function(){O.prototype.currentScope.call(this).flags===Bt&&this.importsStack.pop(),O.prototype.exitScope.call(this)},g.hasImport=function(s,n){var p=this.importsStack.length;if(this.importsStack[p-1].indexOf(s)>-1)return!0;if(!n&&p>1){for(var m=0;m<p-1;m++)if(this.importsStack[m].indexOf(s)>-1)return!0}return!1},g.maybeExportDefined=function(s,n){this.inModule&&1&s.flags&&this.undefinedExports.delete(n)},g.isRedeclaredInScope=function(s,n,p){return!!(0&p)&&(2&p?s.lexical.indexOf(n)>-1||s.functions.indexOf(n)>-1||s.var.indexOf(n)>-1:3&p?s.lexical.indexOf(n)>-1||!O.prototype.treatFunctionsAsVarInScope.call(this,s)&&s.var.indexOf(n)>-1:s.lexical.indexOf(n)>-1&&!(32&s.flags&&s.lexical[0]===n)||!this.treatFunctionsAsVarInScope(s)&&s.functions.indexOf(n)>-1)},g.checkRedeclarationInScope=function(s,n,p,m){this.isRedeclaredInScope(s,n,p)&&this.raise(m,"Identifier '"+n+"' has already been declared.")},g.declareName=function(s,n,p){if(4096&n)return this.hasImport(s,!0)&&this.raise(p,"Identifier '"+s+"' has already been declared."),void this.importsStack[this.importsStack.length-1].push(s);var m=this.currentScope();if(1024&n)return this.maybeExportDefined(m,s),void m.exportOnlyBindings.push(s);O.prototype.declareName.call(this,s,n,p),0&n&&(0&n||(this.checkRedeclarationInScope(m,s,n,p),this.maybeExportDefined(m,s)),m.types.push(s)),256&n&&m.enums.push(s),512&n&&m.constEnums.push(s),128&n&&m.classes.push(s)},g.checkLocalExport=function(s){var n=s.name;if(!this.hasImport(n)){for(var p=this.scopeStack.length-1;p>=0;p--){var m=this.scopeStack[p];if(m.types.indexOf(n)>-1||m.exportOnlyBindings.indexOf(n)>-1)return}O.prototype.checkLocalExport.call(this,s)}},ge=be,te=[{key:"acornTypeScript",get:function(){return C}}],(oe=[{key:"acornTypeScript",get:function(){return C}}])&&Cr(ge.prototype,oe),te&&Cr(ge,te),Object.defineProperty(ge,"prototype",{writable:!1}),be})(y);return xe}}var{stringify:Kn}=JSON;if(!String.prototype.repeat)throw new Error("String.prototype.repeat is undefined, see https://github.com/davidbonnet/astring#installation");if(!String.prototype.endsWith)throw new Error("String.prototype.endsWith is undefined, see https://github.com/davidbonnet/astring#installation");var xi={"||":2,"??":3,"&&":4,"|":5,"^":6,"&":7,"==":8,"!=":8,"===":8,"!==":8,"<":9,">":9,"<=":9,">=":9,in:9,instanceof:9,"<<":10,">>":10,">>>":10,"+":11,"-":11,"*":12,"%":12,"/":12,"**":13},Ge=17,Gn={ArrayExpression:20,TaggedTemplateExpression:20,ThisExpression:20,Identifier:20,PrivateIdentifier:20,Literal:18,TemplateLiteral:20,Super:20,SequenceExpression:20,MemberExpression:19,ChainExpression:19,CallExpression:19,NewExpression:19,ArrowFunctionExpression:Ge,ClassExpression:Ge,FunctionExpression:Ge,ObjectExpression:Ge,UpdateExpression:16,UnaryExpression:15,AwaitExpression:15,BinaryExpression:14,LogicalExpression:13,ConditionalExpression:4,AssignmentExpression:3,YieldExpression:2,RestElement:1};function wt(e,i){let{generator:a}=e;if(e.write("("),i!=null&&i.length>0){a[i[0].type](i[0],e);let{length:o}=i;for(let h=1;h<o;h++){let x=i[h];e.write(", "),a[x.type](x,e)}}e.write(")")}function Dr(e,i,a,o){let h=e.expressionsPrecedence[i.type];if(h===Ge)return!0;let x=e.expressionsPrecedence[a.type];return h!==x?!o&&h===15&&x===14&&a.operator==="**"||h<x:h!==13&&h!==14?!1:i.operator==="**"&&a.operator==="**"?!o:h===13&&x===13&&(i.operator==="??"||a.operator==="??")?!0:o?xi[i.operator]<=xi[a.operator]:xi[i.operator]<xi[a.operator]}function yi(e,i,a,o){let{generator:h}=e;Dr(e,i,a,o)?(e.write("("),h[i.type](i,e),e.write(")")):h[i.type](i,e)}function Jn(e,i,a,o){let h=i.split(`
|
|
23
|
-
`),
|
|
24
|
-
`,y):(e.write("/*"),Jn(e,y.value,a,o),e.write("*/"+o))}}function Xn(e){let i=e;for(;i!=null;){let{type:a}=i;if(a[0]==="C"&&a[1]==="a")return!0;if(a[0]==="M"&&a[1]==="e"&&a[2]==="m")i=i.object;else return!1}}function zi(e,i){let{generator:a}=e,{declarations:o}=i;e.write(i.kind+" ");let{length:h}=o;if(h>0){a.VariableDeclarator(o[0],e);for(let x=1;x<h;x++)e.write(", "),a.VariableDeclarator(o[x],e)}}var Ir,Nr,Lr,Rr,Or,Vr,Gi={Program(e,i){let a=i.indent.repeat(i.indentLevel),{lineEnd:o,writeComments:h}=i;h&&e.comments!=null&&Pe(i,e.comments,a,o);let x=e.body,{length:y}=x;for(let S=0;S<y;S++){let C=x[S];h&&C.comments!=null&&Pe(i,C.comments,a,o),i.write(a),this[C.type](C,i),i.write(o)}h&&e.trailingComments!=null&&Pe(i,e.trailingComments,a,o)},BlockStatement:Vr=function(e,i){let a=i.indent.repeat(i.indentLevel++),{lineEnd:o,writeComments:h}=i,x=a+i.indent;i.write("{");let y=e.body;if(y!=null&&y.length>0){i.write(o),h&&e.comments!=null&&Pe(i,e.comments,x,o);let{length:S}=y;for(let C=0;C<S;C++){let l=y[C];h&&l.comments!=null&&Pe(i,l.comments,x,o),i.write(x),this[l.type](l,i),i.write(o)}i.write(a)}else h&&e.comments!=null&&(i.write(o),Pe(i,e.comments,x,o),i.write(a));h&&e.trailingComments!=null&&Pe(i,e.trailingComments,x,o),i.write("}"),i.indentLevel--},ClassBody:Vr,StaticBlock(e,i){i.write("static "),this.BlockStatement(e,i)},EmptyStatement(e,i){i.write(";")},ExpressionStatement(e,i){let a=i.expressionsPrecedence[e.expression.type];a===Ge||a===3&&e.expression.left.type[0]==="O"?(i.write("("),this[e.expression.type](e.expression,i),i.write(")")):this[e.expression.type](e.expression,i),i.write(";")},IfStatement(e,i){i.write("if ("),this[e.test.type](e.test,i),i.write(") "),this[e.consequent.type](e.consequent,i),e.alternate!=null&&(i.write(" else "),this[e.alternate.type](e.alternate,i))},LabeledStatement(e,i){this[e.label.type](e.label,i),i.write(": "),this[e.body.type](e.body,i)},BreakStatement(e,i){i.write("break"),e.label!=null&&(i.write(" "),this[e.label.type](e.label,i)),i.write(";")},ContinueStatement(e,i){i.write("continue"),e.label!=null&&(i.write(" "),this[e.label.type](e.label,i)),i.write(";")},WithStatement(e,i){i.write("with ("),this[e.object.type](e.object,i),i.write(") "),this[e.body.type](e.body,i)},SwitchStatement(e,i){let a=i.indent.repeat(i.indentLevel++),{lineEnd:o,writeComments:h}=i;i.indentLevel++;let x=a+i.indent,y=x+i.indent;i.write("switch ("),this[e.discriminant.type](e.discriminant,i),i.write(") {"+o);let{cases:S}=e,{length:C}=S;for(let l=0;l<C;l++){let M=S[l];h&&M.comments!=null&&Pe(i,M.comments,x,o),M.test?(i.write(x+"case "),this[M.test.type](M.test,i),i.write(":"+o)):i.write(x+"default:"+o);let{consequent:D}=M,{length:K}=D;for(let T=0;T<K;T++){let I=D[T];h&&I.comments!=null&&Pe(i,I.comments,y,o),i.write(y),this[I.type](I,i),i.write(o)}}i.indentLevel-=2,i.write(a+"}")},ReturnStatement(e,i){i.write("return"),e.argument&&(i.write(" "),this[e.argument.type](e.argument,i)),i.write(";")},ThrowStatement(e,i){i.write("throw "),this[e.argument.type](e.argument,i),i.write(";")},TryStatement(e,i){if(i.write("try "),this[e.block.type](e.block,i),e.handler){let{handler:a}=e;a.param==null?i.write(" catch "):(i.write(" catch ("),this[a.param.type](a.param,i),i.write(") ")),this[a.body.type](a.body,i)}e.finalizer&&(i.write(" finally "),this[e.finalizer.type](e.finalizer,i))},WhileStatement(e,i){i.write("while ("),this[e.test.type](e.test,i),i.write(") "),this[e.body.type](e.body,i)},DoWhileStatement(e,i){i.write("do "),this[e.body.type](e.body,i),i.write(" while ("),this[e.test.type](e.test,i),i.write(");")},ForStatement(e,i){if(i.write("for ("),e.init!=null){let{init:a}=e;a.type[0]==="V"?zi(i,a):this[a.type](a,i)}i.write("; "),e.test&&this[e.test.type](e.test,i),i.write("; "),e.update&&this[e.update.type](e.update,i),i.write(") "),this[e.body.type](e.body,i)},ForInStatement:Ir=function(e,i){i.write(`for ${e.await?"await ":""}(`);let{left:a}=e;a.type[0]==="V"?zi(i,a):this[a.type](a,i),i.write(e.type[3]==="I"?" in ":" of "),this[e.right.type](e.right,i),i.write(") "),this[e.body.type](e.body,i)},ForOfStatement:Ir,DebuggerStatement(e,i){i.write("debugger;",e)},FunctionDeclaration:Nr=function(e,i){i.write((e.async?"async ":"")+(e.generator?"function* ":"function ")+(e.id?e.id.name:""),e),wt(i,e.params),i.write(" "),this[e.body.type](e.body,i)},FunctionExpression:Nr,VariableDeclaration(e,i){zi(i,e),i.write(";")},VariableDeclarator(e,i){this[e.id.type](e.id,i),e.init!=null&&(i.write(" = "),this[e.init.type](e.init,i))},ClassDeclaration(e,i){if(i.write("class "+(e.id?`${e.id.name} `:""),e),e.superClass){i.write("extends ");let{superClass:a}=e,{type:o}=a,h=i.expressionsPrecedence[o];(o[0]!=="C"||o[1]!=="l"||o[5]!=="E")&&(h===Ge||h<i.expressionsPrecedence.ClassExpression)?(i.write("("),this[e.superClass.type](a,i),i.write(")")):this[a.type](a,i),i.write(" ")}this.ClassBody(e.body,i)},ImportDeclaration(e,i){i.write("import ");let{specifiers:a,attributes:o}=e,{length:h}=a,x=0;if(h>0){for(;x<h;){x>0&&i.write(", ");let y=a[x],S=y.type[6];if(S==="D")i.write(y.local.name,y),x++;else if(S==="N")i.write("* as "+y.local.name,y),x++;else break}if(x<h){for(i.write("{");;){let y=a[x],{name:S}=y.imported;if(i.write(S,y),S!==y.local.name&&i.write(" as "+y.local.name),++x<h)i.write(", ");else break}i.write("}")}i.write(" from ")}if(this.Literal(e.source,i),o&&o.length>0){i.write(" with { ");for(let y=0;y<o.length;y++)this.ImportAttribute(o[y],i),y<o.length-1&&i.write(", ");i.write(" }")}i.write(";")},ImportAttribute(e,i){this.Identifier(e.key,i),i.write(": "),this.Literal(e.value,i)},ImportExpression(e,i){i.write("import("),this[e.source.type](e.source,i),i.write(")")},ExportDefaultDeclaration(e,i){i.write("export default "),this[e.declaration.type](e.declaration,i),i.expressionsPrecedence[e.declaration.type]!=null&&e.declaration.type[0]!=="F"&&i.write(";")},ExportNamedDeclaration(e,i){if(i.write("export "),e.declaration)this[e.declaration.type](e.declaration,i);else{i.write("{");let{specifiers:a}=e,{length:o}=a;if(o>0)for(let h=0;;){let x=a[h],{name:y}=x.local;if(i.write(y,x),y!==x.exported.name&&i.write(" as "+x.exported.name),++h<o)i.write(", ");else break}if(i.write("}"),e.source&&(i.write(" from "),this.Literal(e.source,i)),e.attributes&&e.attributes.length>0){i.write(" with { ");for(let h=0;h<e.attributes.length;h++)this.ImportAttribute(e.attributes[h],i),h<e.attributes.length-1&&i.write(", ");i.write(" }")}i.write(";")}},ExportAllDeclaration(e,i){if(e.exported!=null?i.write("export * as "+e.exported.name+" from "):i.write("export * from "),this.Literal(e.source,i),e.attributes&&e.attributes.length>0){i.write(" with { ");for(let a=0;a<e.attributes.length;a++)this.ImportAttribute(e.attributes[a],i),a<e.attributes.length-1&&i.write(", ");i.write(" }")}i.write(";")},MethodDefinition(e,i){e.static&&i.write("static ");let a=e.kind[0];(a==="g"||a==="s")&&i.write(e.kind+" "),e.value.async&&i.write("async "),e.value.generator&&i.write("*"),e.computed?(i.write("["),this[e.key.type](e.key,i),i.write("]")):this[e.key.type](e.key,i),wt(i,e.value.params),i.write(" "),this[e.value.body.type](e.value.body,i)},ClassExpression(e,i){this.ClassDeclaration(e,i)},ArrowFunctionExpression(e,i){i.write(e.async?"async ":"",e);let{params:a}=e;a!=null&&(a.length===1&&a[0].type[0]==="I"?i.write(a[0].name,a[0]):wt(i,e.params)),i.write(" => "),e.body.type[0]==="O"?(i.write("("),this.ObjectExpression(e.body,i),i.write(")")):this[e.body.type](e.body,i)},ThisExpression(e,i){i.write("this",e)},Super(e,i){i.write("super",e)},RestElement:Lr=function(e,i){i.write("..."),this[e.argument.type](e.argument,i)},SpreadElement:Lr,YieldExpression(e,i){i.write(e.delegate?"yield*":"yield"),e.argument&&(i.write(" "),this[e.argument.type](e.argument,i))},AwaitExpression(e,i){i.write("await ",e),yi(i,e.argument,e)},TemplateLiteral(e,i){let{quasis:a,expressions:o}=e;i.write("`");let{length:h}=o;for(let y=0;y<h;y++){let S=o[y],C=a[y];i.write(C.value.raw,C),i.write("${"),this[S.type](S,i),i.write("}")}let x=a[a.length-1];i.write(x.value.raw,x),i.write("`")},TemplateElement(e,i){i.write(e.value.raw,e)},TaggedTemplateExpression(e,i){yi(i,e.tag,e),this[e.quasi.type](e.quasi,i)},ArrayExpression:Or=function(e,i){if(i.write("["),e.elements.length>0){let{elements:a}=e,{length:o}=a;for(let h=0;;){let x=a[h];if(x!=null&&this[x.type](x,i),++h<o)i.write(", ");else{x==null&&i.write(", ");break}}}i.write("]")},ArrayPattern:Or,ObjectExpression(e,i){let a=i.indent.repeat(i.indentLevel++),{lineEnd:o,writeComments:h}=i,x=a+i.indent;if(i.write("{"),e.properties.length>0){i.write(o),h&&e.comments!=null&&Pe(i,e.comments,x,o);let y=","+o,{properties:S}=e,{length:C}=S;for(let l=0;;){let M=S[l];if(h&&M.comments!=null&&Pe(i,M.comments,x,o),i.write(x),this[M.type](M,i),++l<C)i.write(y);else break}i.write(o),h&&e.trailingComments!=null&&Pe(i,e.trailingComments,x,o),i.write(a+"}")}else h?e.comments!=null?(i.write(o),Pe(i,e.comments,x,o),e.trailingComments!=null&&Pe(i,e.trailingComments,x,o),i.write(a+"}")):e.trailingComments!=null?(i.write(o),Pe(i,e.trailingComments,x,o),i.write(a+"}")):i.write("}"):i.write("}");i.indentLevel--},Property(e,i){e.method||e.kind[0]!=="i"?this.MethodDefinition(e,i):(e.shorthand||(e.computed?(i.write("["),this[e.key.type](e.key,i),i.write("]")):this[e.key.type](e.key,i),i.write(": ")),this[e.value.type](e.value,i))},PropertyDefinition(e,i){if(e.static&&i.write("static "),e.computed&&i.write("["),this[e.key.type](e.key,i),e.computed&&i.write("]"),e.value==null){e.key.type[0]!=="F"&&i.write(";");return}i.write(" = "),this[e.value.type](e.value,i),i.write(";")},ObjectPattern(e,i){if(i.write("{"),e.properties.length>0){let{properties:a}=e,{length:o}=a;for(let h=0;this[a[h].type](a[h],i),++h<o;)i.write(", ")}i.write("}")},SequenceExpression(e,i){wt(i,e.expressions)},UnaryExpression(e,i){if(e.prefix){let{operator:a,argument:o,argument:{type:h}}=e;i.write(a);let x=Dr(i,o,e);!x&&(a.length>1||h[0]==="U"&&(h[1]==="n"||h[1]==="p")&&o.prefix&&o.operator[0]===a&&(a==="+"||a==="-"))&&i.write(" "),x?(i.write(a.length>1?" (":"("),this[h](o,i),i.write(")")):this[h](o,i)}else this[e.argument.type](e.argument,i),i.write(e.operator)},UpdateExpression(e,i){e.prefix?(i.write(e.operator),this[e.argument.type](e.argument,i)):(this[e.argument.type](e.argument,i),i.write(e.operator))},AssignmentExpression(e,i){this[e.left.type](e.left,i),i.write(" "+e.operator+" "),this[e.right.type](e.right,i)},AssignmentPattern(e,i){this[e.left.type](e.left,i),i.write(" = "),this[e.right.type](e.right,i)},BinaryExpression:Rr=function(e,i){let a=e.operator==="in";a&&i.write("("),yi(i,e.left,e,!1),i.write(" "+e.operator+" "),yi(i,e.right,e,!0),a&&i.write(")")},LogicalExpression:Rr,ConditionalExpression(e,i){let{test:a}=e,o=i.expressionsPrecedence[a.type];o===Ge||o<=i.expressionsPrecedence.ConditionalExpression?(i.write("("),this[a.type](a,i),i.write(")")):this[a.type](a,i),i.write(" ? "),this[e.consequent.type](e.consequent,i),i.write(" : "),this[e.alternate.type](e.alternate,i)},NewExpression(e,i){i.write("new ");let a=i.expressionsPrecedence[e.callee.type];a===Ge||a<i.expressionsPrecedence.CallExpression||Xn(e.callee)?(i.write("("),this[e.callee.type](e.callee,i),i.write(")")):this[e.callee.type](e.callee,i),wt(i,e.arguments)},CallExpression(e,i){let a=i.expressionsPrecedence[e.callee.type];a===Ge||a<i.expressionsPrecedence.CallExpression?(i.write("("),this[e.callee.type](e.callee,i),i.write(")")):this[e.callee.type](e.callee,i),e.optional&&i.write("?."),wt(i,e.arguments)},ChainExpression(e,i){this[e.expression.type](e.expression,i)},MemberExpression(e,i){let a=i.expressionsPrecedence[e.object.type];a===Ge||a<i.expressionsPrecedence.MemberExpression?(i.write("("),this[e.object.type](e.object,i),i.write(")")):this[e.object.type](e.object,i),e.computed?(e.optional&&i.write("?."),i.write("["),this[e.property.type](e.property,i),i.write("]")):(e.optional?i.write("?."):i.write("."),this[e.property.type](e.property,i))},MetaProperty(e,i){i.write(e.meta.name+"."+e.property.name,e)},Identifier(e,i){i.write(e.name,e)},PrivateIdentifier(e,i){i.write(`#${e.name}`,e)},Literal(e,i){e.raw!=null?i.write(e.raw,e):e.regex!=null?this.RegExpLiteral(e,i):e.bigint!=null?i.write(e.bigint+"n",e):i.write(Kn(e.value),e)},RegExpLiteral(e,i){let{regex:a}=e;i.write(`/${a.pattern}/${a.flags}`,e)}},Qn={};var Ki=class{constructor(i){let a=i??Qn;this.output="",a.output!=null?(this.output=a.output,this.write=this.writeToStream):this.output="",this.generator=a.generator!=null?a.generator:Gi,this.expressionsPrecedence=a.expressionsPrecedence!=null?a.expressionsPrecedence:Gn,this.indent=a.indent!=null?a.indent:" ",this.lineEnd=a.lineEnd!=null?a.lineEnd:`
|
|
25
|
-
`,this.indentLevel=
|
|
26
|
-
`).length-1,this.mapping={original:null,generated:this,name:void 0,source:
|
|
27
|
-
`?(
|
|
27
|
+
`):L=String.fromCharCode(N),this.options.locations&&(++this.curLine,this.lineStart=this.pos),L},A.jsx_readString=function(k){for(var L="",N=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var W=this.input.charCodeAt(this.pos);if(W===k)break;W===38?(L+=this.input.slice(N,this.pos),L+=this.jsx_readEntity(),N=this.pos):n(W)?(L+=this.input.slice(N,this.pos),L+=this.jsx_readNewLine(!1),N=this.pos):++this.pos}return L+=this.input.slice(N,this.pos++),this.finishToken(I.string,L)},A.jsx_readEntity=function(){var k,L="",N=0,W=this.input[this.pos];W!=="&"&&this.raise(this.pos,"Entity must start with an ampersand");for(var J=++this.pos;this.pos<this.input.length&&N++<10;){if((W=this.input[this.pos++])===";"){L[0]==="#"?L[1]==="x"?(L=L.substr(2),Vl.test(L)&&(k=String.fromCharCode(parseInt(L,16)))):(L=L.substr(1),Dl.test(L)&&(k=String.fromCharCode(parseInt(L,10)))):k=Ml[L];break}L+=W}return k||(this.pos=J,"&")},A.jsx_readWord=function(){var k,L=this.pos;do k=this.input.charCodeAt(++this.pos);while(u(k)||k===45);return this.finishToken(S.jsxName,this.input.slice(L,this.pos))},A.jsx_parseIdentifier=function(){var k=this.startNode();return this.type===S.jsxName?k.name=this.value:this.type.keyword?k.name=this.type.keyword:this.unexpected(),this.next(),this.finishNode(k,"JSXIdentifier")},A.jsx_parseNamespacedName=function(){var k=this.start,L=this.startLoc,N=this.jsx_parseIdentifier();if(!d.allowNamespaces||!this.eat(I.colon))return N;var W=this.startNodeAt(k,L);return W.namespace=N,W.name=this.jsx_parseIdentifier(),this.finishNode(W,"JSXNamespacedName")},A.jsx_parseElementName=function(){if(this.type===S.jsxTagEnd)return"";var k=this.start,L=this.startLoc,N=this.jsx_parseNamespacedName();for(this.type!==I.dot||N.type!=="JSXNamespacedName"||d.allowNamespacedObjects||this.unexpected();this.eat(I.dot);){var W=this.startNodeAt(k,L);W.object=N,W.property=this.jsx_parseIdentifier(),N=this.finishNode(W,"JSXMemberExpression")}return N},A.jsx_parseAttributeValue=function(){switch(this.type){case I.braceL:var k=this.jsx_parseExpressionContainer();return k.expression.type==="JSXEmptyExpression"&&this.raise(k.start,"JSX attributes must only be assigned a non-empty expression"),k;case S.jsxTagStart:case I.string:return this.parseExprAtom();default:this.raise(this.start,"JSX value should be either an expression or a quoted JSX text")}},A.jsx_parseEmptyExpression=function(){var k=this.startNodeAt(this.lastTokEnd,this.lastTokEndLoc);return this.finishNodeAt(k,"JSXEmptyExpression",this.start,this.startLoc)},A.jsx_parseExpressionContainer=function(){var k=this.startNode();return this.next(),k.expression=this.type===I.braceR?this.jsx_parseEmptyExpression():this.parseExpression(),this.expect(I.braceR),this.finishNode(k,"JSXExpressionContainer")},A.jsx_parseAttribute=function(){var k=this.startNode();return this.eat(I.braceL)?(this.expect(I.ellipsis),k.argument=this.parseMaybeAssign(),this.expect(I.braceR),this.finishNode(k,"JSXSpreadAttribute")):(k.name=this.jsx_parseNamespacedName(),k.value=this.eat(I.eq)?this.jsx_parseAttributeValue():null,this.finishNode(k,"JSXAttribute"))},A.jsx_parseOpeningElementAt=function(k,L){var N=this.startNodeAt(k,L);N.attributes=[];var W=this.jsx_parseElementName();for(W&&(N.name=W);this.type!==I.slash&&this.type!==S.jsxTagEnd;)N.attributes.push(this.jsx_parseAttribute());return N.selfClosing=this.eat(I.slash),this.expect(S.jsxTagEnd),this.finishNode(N,W?"JSXOpeningElement":"JSXOpeningFragment")},A.jsx_parseClosingElementAt=function(k,L){var N=this.startNodeAt(k,L),W=this.jsx_parseElementName();return W&&(N.name=W),this.expect(S.jsxTagEnd),this.finishNode(N,W?"JSXClosingElement":"JSXClosingFragment")},A.jsx_parseElementAt=function(k,L){var N=this.startNodeAt(k,L),W=[],J=this.jsx_parseOpeningElementAt(k,L),B=null;if(!J.selfClosing){e:for(;;)switch(this.type){case S.jsxTagStart:if(k=this.start,L=this.startLoc,this.next(),this.eat(I.slash)){B=this.jsx_parseClosingElementAt(k,L);break e}W.push(this.jsx_parseElementAt(k,L));break;case S.jsxText:W.push(this.parseExprAtom());break;case I.braceL:W.push(this.jsx_parseExpressionContainer());break;default:this.unexpected()}pi(B.name)!==pi(J.name)&&this.raise(B.start,"Expected corresponding JSX closing tag for <"+pi(J.name)+">")}var q=J.name?"Element":"Fragment";return N["opening"+q]=J,N["closing"+q]=B,N.children=W,this.type===I.relational&&this.value==="<"&&this.raise(this.start,"Adjacent JSX elements must be wrapped in an enclosing tag"),this.finishNode(N,"JSX"+q)},A.jsx_parseText=function(){var k=this.parseLiteral(this.value);return k.type="JSXText",k},A.jsx_parseElement=function(){var k=this.start,L=this.startLoc;return this.next(),this.jsx_parseElementAt(k,L)},C})(ue)})(g,v,p,e?.jsx),p=(function(j,ce,ue){var O=ce.tokTypes,I=ue.tokTypes;return(function(S){function n(){return S.apply(this,arguments)||this}Xi(n,S);var u=n.prototype;return u.parseMaybeImportAttributes=function(d){if(this.type===I._with||this.type===O.assert){this.next();var y=this.parseImportAttributes();y&&(d.attributes=y)}},u.parseImportAttributes=function(){this.expect(I.braceL);var d=this.parseWithEntries();return this.expect(I.braceR),d},u.parseWithEntries=function(){var d=[],y=new Set;do{if(this.type===I.braceR)break;var C,A=this.startNode();C=this.type===I.string?this.parseLiteral(this.value):this.parseIdent(!0),this.next(),A.key=C,y.has(A.key.name)&&this.raise(this.pos,"Duplicated key in attributes"),y.add(A.key.name),this.type!==I.string&&this.raise(this.pos,"Only string is supported as an attribute value"),A.value=this.parseLiteral(this.value),d.push(this.finishNode(A,"ImportAttribute"))}while(this.eat(I.comma));return d},n})(j)})(p,v,g);var M=(function(j){function ce(n,u,d){var y;return(y=j.call(this,n,u,d)||this).preValue=null,y.preToken=null,y.isLookahead=!1,y.isAmbientContext=!1,y.inAbstractClass=!1,y.inType=!1,y.inDisallowConditionalTypesContext=!1,y.maybeInArrowParameters=!1,y.shouldParseArrowReturnType=void 0,y.shouldParseAsyncArrowReturnType=void 0,y.decoratorStack=[[]],y.importsStack=[[]],y.importOrExportOuterKind=void 0,y.tsParseConstModifier=y.tsParseModifiers.bind((function(C){if(C===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return C})(y),{allowedModifiers:["const"],disallowedModifiers:["in","out"],errorTemplate:re.InvalidModifierOnTypeParameterPositions}),y}Xi(ce,j);var ue,O,I,S=ce.prototype;return S.getTokenFromCodeInType=function(n){return n===62||n===60?this.finishOp(l.relational,1):j.prototype.getTokenFromCode.call(this,n)},S.readToken=function(n){if(!this.inType){var u=this.curContext();if(u===G.tc_expr)return this.jsx_readToken();if(u===G.tc_oTag||u===G.tc_cTag){if(_(n))return this.jsx_readWord();if(n==62)return++this.pos,this.finishToken(V.jsxTagEnd);if((n===34||n===39)&&u==G.tc_oTag)return this.jsx_readString(n)}if(n===60&&this.exprAllowed&&this.input.charCodeAt(this.pos+1)!==33)return++this.pos,this.finishToken(V.jsxTagStart)}return j.prototype.readToken.call(this,n)},S.getTokenFromCode=function(n){return this.inType?this.getTokenFromCodeInType(n):n===64?(++this.pos,this.finishToken(V.at)):j.prototype.getTokenFromCode.call(this,n)},S.isAbstractClass=function(){return this.ts_isContextual(V.abstract)&&this.lookahead().type===l._class},S.finishNode=function(n,u){return n.type!==""&&n.end!==0?n:j.prototype.finishNode.call(this,n,u)},S.tryParse=function(n,u){u===void 0&&(u=this.cloneCurLookaheadState());var d={node:null};try{return{node:n(function(C){throw C===void 0&&(C=null),d.node=C,d}),error:null,thrown:!1,aborted:!1,failState:null}}catch(C){var y=this.getCurLookaheadState();if(this.setLookaheadState(u),C instanceof SyntaxError)return{node:null,error:C,thrown:!0,aborted:!1,failState:y};if(C===d)return{node:d.node,error:null,thrown:!1,aborted:!0,failState:y};throw C}},S.setOptionalParametersError=function(n,u){var d;n.optionalParametersLoc=(d=u?.loc)!=null?d:this.startLoc},S.reScan_lt_gt=function(){this.type===l.relational&&(this.pos-=1,this.readToken_lt_gt(this.fullCharCodeAtPos()))},S.reScan_lt=function(){var n=this.type;return n===l.bitShift?(this.pos-=2,this.finishOp(l.relational,1),l.relational):n},S.resetEndLocation=function(n,u){u===void 0&&(u=this.lastTokEndLoc),n.end=u.column,n.loc.end=u,this.options.ranges&&(n.range[1]=u.column)},S.startNodeAtNode=function(n){return j.prototype.startNodeAt.call(this,n.start,n.loc.start)},S.nextTokenStart=function(){return this.nextTokenStartSince(this.pos)},S.tsHasSomeModifiers=function(n,u){return u.some(function(d){return lo(d)?n.accessibility===d:!!n[d]})},S.tsIsStartOfStaticBlocks=function(){return this.isContextual("static")&&this.lookaheadCharCode()===123},S.tsCheckForInvalidTypeCasts=function(n){var u=this;n.forEach(function(d){d?.type==="TSTypeCastExpression"&&u.raise(d.typeAnnotation.start,re.UnexpectedTypeAnnotation)})},S.atPossibleAsyncArrow=function(n){return n.type==="Identifier"&&n.name==="async"&&this.lastTokEndLoc.column===n.end&&!this.canInsertSemicolon()&&n.end-n.start==5&&n.start===this.potentialArrowAt},S.tsIsIdentifier=function(){return z(this.type)},S.tsTryParseTypeOrTypePredicateAnnotation=function(){return this.match(l.colon)?this.tsParseTypeOrTypePredicateAnnotation(l.colon):void 0},S.tsTryParseGenericAsyncArrowFunction=function(n,u,d){var y=this;if(this.tsMatchLeftRelational()){var C=this.maybeInArrowParameters;this.maybeInArrowParameters=!0;var A=this.tsTryParseAndCatch(function(){var k=y.startNodeAt(n,u);return k.typeParameters=y.tsParseTypeParameters(),j.prototype.parseFunctionParams.call(y,k),k.returnType=y.tsTryParseTypeOrTypePredicateAnnotation(),y.expect(l.arrow),k});if(this.maybeInArrowParameters=C,A)return j.prototype.parseArrowExpression.call(this,A,null,!0,d)}},S.tsParseTypeArgumentsInExpression=function(){if(this.reScan_lt()===l.relational)return this.tsParseTypeArguments()},S.tsInNoContext=function(n){var u=this.context;this.context=[u[0]];try{return n()}finally{this.context=u}},S.tsTryParseTypeAnnotation=function(){return this.match(l.colon)?this.tsParseTypeAnnotation():void 0},S.isUnparsedContextual=function(n,u){var d=n+u.length;if(this.input.slice(n,d)===u){var y=this.input.charCodeAt(d);return!(F(y)||(64512&y)==55296)}return!1},S.isAbstractConstructorSignature=function(){return this.ts_isContextual(V.abstract)&&this.lookahead().type===l._new},S.nextTokenStartSince=function(n){return Ws.lastIndex=n,Ws.test(this.input)?Ws.lastIndex:n},S.lookaheadCharCode=function(){return this.input.charCodeAt(this.nextTokenStart())},S.compareLookaheadState=function(n,u){for(var d=0,y=Object.keys(n);d<y.length;d++){var C=y[d];if(n[C]!==u[C])return!1}return!0},S.createLookaheadState=function(){this.value=null,this.context=[this.curContext()]},S.getCurLookaheadState=function(){return{endLoc:this.endLoc,lastTokEnd:this.lastTokEnd,lastTokStart:this.lastTokStart,lastTokStartLoc:this.lastTokStartLoc,pos:this.pos,value:this.value,type:this.type,start:this.start,end:this.end,context:this.context,startLoc:this.startLoc,lastTokEndLoc:this.lastTokEndLoc,curLine:this.curLine,lineStart:this.lineStart,curPosition:this.curPosition,containsEsc:this.containsEsc}},S.cloneCurLookaheadState=function(){return{pos:this.pos,value:this.value,type:this.type,start:this.start,end:this.end,context:this.context&&this.context.slice(),startLoc:this.startLoc,lastTokEndLoc:this.lastTokEndLoc,endLoc:this.endLoc,lastTokEnd:this.lastTokEnd,lastTokStart:this.lastTokStart,lastTokStartLoc:this.lastTokStartLoc,curLine:this.curLine,lineStart:this.lineStart,curPosition:this.curPosition,containsEsc:this.containsEsc}},S.setLookaheadState=function(n){this.pos=n.pos,this.value=n.value,this.endLoc=n.endLoc,this.lastTokEnd=n.lastTokEnd,this.lastTokStart=n.lastTokStart,this.lastTokStartLoc=n.lastTokStartLoc,this.type=n.type,this.start=n.start,this.end=n.end,this.context=n.context,this.startLoc=n.startLoc,this.lastTokEndLoc=n.lastTokEndLoc,this.curLine=n.curLine,this.lineStart=n.lineStart,this.curPosition=n.curPosition,this.containsEsc=n.containsEsc},S.tsLookAhead=function(n){var u=this.getCurLookaheadState(),d=n();return this.setLookaheadState(u),d},S.lookahead=function(n){var u=this.getCurLookaheadState();if(this.createLookaheadState(),this.isLookahead=!0,n!==void 0)for(var d=0;d<n;d++)this.nextToken();else this.nextToken();this.isLookahead=!1;var y=this.getCurLookaheadState();return this.setLookaheadState(u),y},S.readWord=function(){var n=this.readWord1(),u=l.name;return this.keywords.test(n)?u=T[n]:new RegExp(Q).test(n)&&(u=V[n]),this.finishToken(u,n)},S.skipBlockComment=function(){var n;this.isLookahead||(n=this.options.onComment&&this.curPosition());var u=this.pos,d=this.input.indexOf("*/",this.pos+=2);if(d===-1&&this.raise(this.pos-2,"Unterminated comment"),this.pos=d+2,this.options.locations)for(var y,C=u;(y=Z(this.input,C,this.pos))>-1;)++this.curLine,C=this.lineStart=y;this.isLookahead||this.options.onComment&&this.options.onComment(!0,this.input.slice(u+2,d),u,this.pos,n,this.curPosition())},S.skipLineComment=function(n){var u,d=this.pos;this.isLookahead||(u=this.options.onComment&&this.curPosition());for(var y=this.input.charCodeAt(this.pos+=n);this.pos<this.input.length&&!w(y);)y=this.input.charCodeAt(++this.pos);this.isLookahead||this.options.onComment&&this.options.onComment(!1,this.input.slice(d+n,this.pos),d,this.pos,u,this.curPosition())},S.finishToken=function(n,u){this.preValue=this.value,this.preToken=this.type,this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var d=this.type;this.type=n,this.value=u,this.isLookahead||this.updateContext(d)},S.resetStartLocation=function(n,u,d){n.start=u,n.loc.start=d,this.options.ranges&&(n.range[0]=u)},S.isLineTerminator=function(){return this.eat(l.semi)||j.prototype.canInsertSemicolon.call(this)},S.hasFollowingLineBreak=function(){return uo.lastIndex=this.end,uo.test(this.input)},S.addExtra=function(n,u,d,y){if(y===void 0&&(y=!0),n){var C=n.extra=n.extra||{};y?C[u]=d:Object.defineProperty(C,u,{enumerable:y,value:d})}},S.isLiteralPropertyName=function(){return $(this.type)},S.hasPrecedingLineBreak=function(){return D.test(this.input.slice(this.lastTokEndLoc.index,this.start))},S.createIdentifier=function(n,u){return n.name=u,this.finishNode(n,"Identifier")},S.resetStartLocationFromNode=function(n,u){this.resetStartLocation(n,u.start,u.loc.start)},S.isThisParam=function(n){return n.type==="Identifier"&&n.name==="this"},S.isLookaheadContextual=function(n){var u=this.nextTokenStart();return this.isUnparsedContextual(u,n)},S.ts_type_isContextual=function(n,u){return n===u&&!this.containsEsc},S.ts_isContextual=function(n){return this.type===n&&!this.containsEsc},S.ts_isContextualWithState=function(n,u){return n.type===u&&!n.containsEsc},S.isContextualWithState=function(n,u){return u.type===l.name&&u.value===n&&!u.containsEsc},S.tsIsStartOfMappedType=function(){return this.next(),this.eat(l.plusMin)?this.ts_isContextual(V.readonly):(this.ts_isContextual(V.readonly)&&this.next(),!!this.match(l.bracketL)&&(this.next(),!!this.tsIsIdentifier()&&(this.next(),this.match(l._in))))},S.tsInDisallowConditionalTypesContext=function(n){var u=this.inDisallowConditionalTypesContext;this.inDisallowConditionalTypesContext=!0;try{return n()}finally{this.inDisallowConditionalTypesContext=u}},S.tsTryParseType=function(){return this.tsEatThenParseType(l.colon)},S.match=function(n){return this.type===n},S.matchJsx=function(n){return this.type===v.tokTypes[n]},S.ts_eatWithState=function(n,u,d){if(n===d.type){for(var y=0;y<u;y++)this.next();return!0}return!1},S.ts_eatContextualWithState=function(n,u,d){if(Q.test(n)){if(this.ts_isContextualWithState(d,V[n])){for(var y=0;y<u;y++)this.next();return!0}return!1}if(!this.isContextualWithState(n,d))return!1;for(var C=0;C<u;C++)this.next();return!0},S.canHaveLeadingDecorator=function(){return this.match(l._class)},S.eatContextual=function(n){return Q.test(n)?!!this.ts_isContextual(V[n])&&(this.next(),!0):j.prototype.eatContextual.call(this,n)},S.tsIsExternalModuleReference=function(){return this.isContextual("require")&&this.lookaheadCharCode()===40},S.tsParseExternalModuleReference=function(){var n=this.startNode();return this.expectContextual("require"),this.expect(l.parenL),this.match(l.string)||this.unexpected(),n.expression=this.parseExprAtom(),this.expect(l.parenR),this.finishNode(n,"TSExternalModuleReference")},S.tsParseEntityName=function(n){n===void 0&&(n=!0);for(var u=this.parseIdent(n);this.eat(l.dot);){var d=this.startNodeAtNode(u);d.left=u,d.right=this.parseIdent(n),u=this.finishNode(d,"TSQualifiedName")}return u},S.tsParseEnumMember=function(){var n=this.startNode();return n.id=this.match(l.string)?this.parseLiteral(this.value):this.parseIdent(!0),this.eat(l.eq)&&(n.initializer=this.parseMaybeAssign()),this.finishNode(n,"TSEnumMember")},S.tsParseEnumDeclaration=function(n,u){return u===void 0&&(u={}),u.const&&(n.const=!0),u.declare&&(n.declare=!0),this.expectContextual("enum"),n.id=this.parseIdent(),this.checkLValSimple(n.id),this.expect(l.braceL),n.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(l.braceR),this.finishNode(n,"TSEnumDeclaration")},S.tsParseModuleBlock=function(){var n=this.startNode();for(j.prototype.enterScope.call(this,512),this.expect(l.braceL),n.body=[];this.type!==l.braceR;){var u=this.parseStatement(null,!0);n.body.push(u)}return this.next(),j.prototype.exitScope.call(this),this.finishNode(n,"TSModuleBlock")},S.tsParseAmbientExternalModuleDeclaration=function(n){return this.ts_isContextual(V.global)?(n.global=!0,n.id=this.parseIdent()):this.match(l.string)?n.id=this.parseLiteral(this.value):this.unexpected(),this.match(l.braceL)?(j.prototype.enterScope.call(this,hi),n.body=this.tsParseModuleBlock(),j.prototype.exitScope.call(this)):j.prototype.semicolon.call(this),this.finishNode(n,"TSModuleDeclaration")},S.tsTryParseDeclare=function(n){var u=this;if(!this.isLineTerminator()){var d,y=this.type;return this.isContextual("let")&&(y=l._var,d="let"),this.tsInAmbientContext(function(){if(y===l._function)return n.declare=!0,u.parseFunctionStatement(n,!1,!0);if(y===l._class)return n.declare=!0,u.parseClass(n,!0);if(y===V.enum)return u.tsParseEnumDeclaration(n,{declare:!0});if(y===V.global)return u.tsParseAmbientExternalModuleDeclaration(n);if(y===l._const||y===l._var)return u.match(l._const)&&u.isLookaheadContextual("enum")?(u.expect(l._const),u.tsParseEnumDeclaration(n,{const:!0,declare:!0})):(n.declare=!0,u.parseVarStatement(n,d||u.value,!0));if(y===V.interface){var C=u.tsParseInterfaceDeclaration(n,{declare:!0});if(C)return C}return z(y)?u.tsParseDeclaration(n,u.value,!0):void 0})}},S.tsIsListTerminator=function(n){switch(n){case"EnumMembers":case"TypeMembers":return this.match(l.braceR);case"HeritageClauseElement":return this.match(l.braceL);case"TupleElementTypes":return this.match(l.bracketR);case"TypeParametersOrArguments":return this.tsMatchRightRelational()}},S.tsParseDelimitedListWorker=function(n,u,d,y){for(var C=[],A=-1;!this.tsIsListTerminator(n);){A=-1;var k=u();if(k==null)return;if(C.push(k),!this.eat(l.comma)){if(this.tsIsListTerminator(n))break;return void(d&&this.expect(l.comma))}A=this.lastTokStart}return y&&(y.value=A),C},S.tsParseDelimitedList=function(n,u,d){return(function(y){if(y==null)throw new Error("Unexpected "+y+" value.");return y})(this.tsParseDelimitedListWorker(n,u,!0,d))},S.tsParseBracketedList=function(n,u,d,y,C){y||this.expect(d?l.bracketL:l.relational);var A=this.tsParseDelimitedList(n,u,C);return this.expect(d?l.bracketR:l.relational),A},S.tsParseTypeParameterName=function(){return this.parseIdent().name},S.tsEatThenParseType=function(n){return this.match(n)?this.tsNextThenParseType():void 0},S.tsExpectThenParseType=function(n){var u=this;return this.tsDoThenParseType(function(){return u.expect(n)})},S.tsNextThenParseType=function(){var n=this;return this.tsDoThenParseType(function(){return n.next()})},S.tsDoThenParseType=function(n){var u=this;return this.tsInType(function(){return n(),u.tsParseType()})},S.tsSkipParameterStart=function(){if(z(this.type)||this.match(l._this))return this.next(),!0;if(this.match(l.braceL))try{return this.parseObj(!0),!0}catch{return!1}if(this.match(l.bracketL)){this.next();try{return this.parseBindingList(l.bracketR,!0,!0),!0}catch{return!1}}return!1},S.tsIsUnambiguouslyStartOfFunctionType=function(){return this.next(),!!(this.match(l.parenR)||this.match(l.ellipsis)||this.tsSkipParameterStart()&&(this.match(l.colon)||this.match(l.comma)||this.match(l.question)||this.match(l.eq)||this.match(l.parenR)&&(this.next(),this.match(l.arrow))))},S.tsIsStartOfFunctionType=function(){return!!this.tsMatchLeftRelational()||this.match(l.parenL)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))},S.tsInAllowConditionalTypesContext=function(n){var u=this.inDisallowConditionalTypesContext;this.inDisallowConditionalTypesContext=!1;try{return n()}finally{this.inDisallowConditionalTypesContext=u}},S.tsParseBindingListForSignature=function(){var n=this;return j.prototype.parseBindingList.call(this,l.parenR,!0,!0).map(function(u){return u.type!=="Identifier"&&u.type!=="RestElement"&&u.type!=="ObjectPattern"&&u.type!=="ArrayPattern"&&n.raise(u.start,re.UnsupportedSignatureParameterKind(u.type)),u})},S.tsParseTypePredicateAsserts=function(){if(this.type!==V.asserts)return!1;var n=this.containsEsc;return this.next(),!(!z(this.type)&&!this.match(l._this)||(n&&this.raise(this.lastTokStart,"Escape sequence in keyword asserts"),0))},S.tsParseThisTypeNode=function(){var n=this.startNode();return this.next(),this.finishNode(n,"TSThisType")},S.tsParseTypeAnnotation=function(n,u){var d=this;return n===void 0&&(n=!0),u===void 0&&(u=this.startNode()),this.tsInType(function(){n&&d.expect(l.colon),u.typeAnnotation=d.tsParseType()}),this.finishNode(u,"TSTypeAnnotation")},S.tsParseThisTypePredicate=function(n){this.next();var u=this.startNodeAtNode(n);return u.parameterName=n,u.typeAnnotation=this.tsParseTypeAnnotation(!1),u.asserts=!1,this.finishNode(u,"TSTypePredicate")},S.tsParseThisTypeOrThisTypePredicate=function(){var n=this.tsParseThisTypeNode();return this.isContextual("is")&&!this.hasPrecedingLineBreak()?this.tsParseThisTypePredicate(n):n},S.tsParseTypePredicatePrefix=function(){var n=this.parseIdent();if(this.isContextual("is")&&!this.hasPrecedingLineBreak())return this.next(),n},S.tsParseTypeOrTypePredicateAnnotation=function(n){var u=this;return this.tsInType(function(){var d=u.startNode();u.expect(n);var y=u.startNode(),C=!!u.tsTryParse(u.tsParseTypePredicateAsserts.bind(u));if(C&&u.match(l._this)){var A=u.tsParseThisTypeOrThisTypePredicate();return A.type==="TSThisType"?(y.parameterName=A,y.asserts=!0,y.typeAnnotation=null,A=u.finishNode(y,"TSTypePredicate")):(u.resetStartLocationFromNode(A,y),A.asserts=!0),d.typeAnnotation=A,u.finishNode(d,"TSTypeAnnotation")}var k=u.tsIsIdentifier()&&u.tsTryParse(u.tsParseTypePredicatePrefix.bind(u));if(!k)return C?(y.parameterName=u.parseIdent(),y.asserts=C,y.typeAnnotation=null,d.typeAnnotation=u.finishNode(y,"TSTypePredicate"),u.finishNode(d,"TSTypeAnnotation")):u.tsParseTypeAnnotation(!1,d);var L=u.tsParseTypeAnnotation(!1);return y.parameterName=k,y.typeAnnotation=L,y.asserts=C,d.typeAnnotation=u.finishNode(y,"TSTypePredicate"),u.finishNode(d,"TSTypeAnnotation")})},S.tsFillSignature=function(n,u){var d=n===l.arrow;u.typeParameters=this.tsTryParseTypeParameters(),this.expect(l.parenL),u.parameters=this.tsParseBindingListForSignature(),(d||this.match(n))&&(u.typeAnnotation=this.tsParseTypeOrTypePredicateAnnotation(n))},S.tsTryNextParseConstantContext=function(){if(this.lookahead().type!==l._const)return null;this.next();var n=this.tsParseTypeReference();return n.typeParameters&&this.raise(n.typeName.start,re.CannotFindName({name:"const"})),n},S.tsParseFunctionOrConstructorType=function(n,u){var d=this,y=this.startNode();return n==="TSConstructorType"&&(y.abstract=!!u,u&&this.next(),this.next()),this.tsInAllowConditionalTypesContext(function(){return d.tsFillSignature(l.arrow,y)}),this.finishNode(y,n)},S.tsParseUnionOrIntersectionType=function(n,u,d){var y=this.startNode(),C=this.eat(d),A=[];do A.push(u());while(this.eat(d));return A.length!==1||C?(y.types=A,this.finishNode(y,n)):A[0]},S.tsCheckTypeAnnotationForReadOnly=function(n){switch(n.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(n.start,re.UnexpectedReadonly)}},S.tsParseTypeOperator=function(){var n=this.startNode(),u=this.value;return this.next(),n.operator=u,n.typeAnnotation=this.tsParseTypeOperatorOrHigher(),u==="readonly"&&this.tsCheckTypeAnnotationForReadOnly(n),this.finishNode(n,"TSTypeOperator")},S.tsParseConstraintForInferType=function(){var n=this;if(this.eat(l._extends)){var u=this.tsInDisallowConditionalTypesContext(function(){return n.tsParseType()});if(this.inDisallowConditionalTypesContext||!this.match(l.question))return u}},S.tsParseInferType=function(){var n=this,u=this.startNode();this.expectContextual("infer");var d=this.startNode();return d.name=this.tsParseTypeParameterName(),d.constraint=this.tsTryParse(function(){return n.tsParseConstraintForInferType()}),u.typeParameter=this.finishNode(d,"TSTypeParameter"),this.finishNode(u,"TSInferType")},S.tsParseLiteralTypeNode=function(){var n=this,u=this.startNode();return u.literal=(function(){switch(n.type){case l.num:case l.string:case l._true:case l._false:return n.parseExprAtom();default:n.unexpected()}})(),this.finishNode(u,"TSLiteralType")},S.tsParseImportType=function(){var n=this.startNode();return this.expect(l._import),this.expect(l.parenL),this.match(l.string)||this.raise(this.start,re.UnsupportedImportTypeArgument),n.argument=this.parseExprAtom(),this.expect(l.parenR),this.eat(l.dot)&&(n.qualifier=this.tsParseEntityName()),this.tsMatchLeftRelational()&&(n.typeParameters=this.tsParseTypeArguments()),this.finishNode(n,"TSImportType")},S.tsParseTypeQuery=function(){var n=this.startNode();return this.expect(l._typeof),n.exprName=this.match(l._import)?this.tsParseImportType():this.tsParseEntityName(),!this.hasPrecedingLineBreak()&&this.tsMatchLeftRelational()&&(n.typeParameters=this.tsParseTypeArguments()),this.finishNode(n,"TSTypeQuery")},S.tsParseMappedTypeParameter=function(){var n=this.startNode();return n.name=this.tsParseTypeParameterName(),n.constraint=this.tsExpectThenParseType(l._in),this.finishNode(n,"TSTypeParameter")},S.tsParseMappedType=function(){var n=this.startNode();return this.expect(l.braceL),this.match(l.plusMin)?(n.readonly=this.value,this.next(),this.expectContextual("readonly")):this.eatContextual("readonly")&&(n.readonly=!0),this.expect(l.bracketL),n.typeParameter=this.tsParseMappedTypeParameter(),n.nameType=this.eatContextual("as")?this.tsParseType():null,this.expect(l.bracketR),this.match(l.plusMin)?(n.optional=this.value,this.next(),this.expect(l.question)):this.eat(l.question)&&(n.optional=!0),n.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(l.braceR),this.finishNode(n,"TSMappedType")},S.tsParseTypeLiteral=function(){var n=this.startNode();return n.members=this.tsParseObjectTypeMembers(),this.finishNode(n,"TSTypeLiteral")},S.tsParseTupleElementType=function(){var n=this.startLoc,u=this.start,d=this.eat(l.ellipsis),y=this.tsParseType(),C=this.eat(l.question);if(this.eat(l.colon)){var A=this.startNodeAtNode(y);A.optional=C,y.type!=="TSTypeReference"||y.typeParameters||y.typeName.type!=="Identifier"?(this.raise(y.start,re.InvalidTupleMemberLabel),A.label=y):A.label=y.typeName,A.elementType=this.tsParseType(),y=this.finishNode(A,"TSNamedTupleMember")}else if(C){var k=this.startNodeAtNode(y);k.typeAnnotation=y,y=this.finishNode(k,"TSOptionalType")}if(d){var L=this.startNodeAt(u,n);L.typeAnnotation=y,y=this.finishNode(L,"TSRestType")}return y},S.tsParseTupleType=function(){var n=this,u=this.startNode();u.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);var d=!1,y=null;return u.elementTypes.forEach(function(C){var A=C.type;!d||A==="TSRestType"||A==="TSOptionalType"||A==="TSNamedTupleMember"&&C.optional||n.raise(C.start,re.OptionalTypeBeforeRequired),d||(d=A==="TSNamedTupleMember"&&C.optional||A==="TSOptionalType");var k=A;A==="TSRestType"&&(k=(C=C.typeAnnotation).type);var L=k==="TSNamedTupleMember";y!=null||(y=L),y!==L&&n.raise(C.start,re.MixedLabeledAndUnlabeledElements)}),this.finishNode(u,"TSTupleType")},S.tsParseTemplateLiteralType=function(){var n=this.startNode();return n.literal=this.parseTemplate({isTagged:!1}),this.finishNode(n,"TSLiteralType")},S.tsParseTypeReference=function(){var n=this.startNode();return n.typeName=this.tsParseEntityName(),!this.hasPrecedingLineBreak()&&this.tsMatchLeftRelational()&&(n.typeParameters=this.tsParseTypeArguments()),this.finishNode(n,"TSTypeReference")},S.tsMatchLeftRelational=function(){return this.match(l.relational)&&this.value==="<"},S.tsMatchRightRelational=function(){return this.match(l.relational)&&this.value===">"},S.tsParseParenthesizedType=function(){var n=this.startNode();return this.expect(l.parenL),n.typeAnnotation=this.tsParseType(),this.expect(l.parenR),this.finishNode(n,"TSParenthesizedType")},S.tsParseNonArrayType=function(){switch(this.type){case l.string:case l.num:case l._true:case l._false:return this.tsParseLiteralTypeNode();case l.plusMin:if(this.value==="-"){var n=this.startNode();return this.lookahead().type!==l.num&&this.unexpected(),n.literal=this.parseMaybeUnary(),this.finishNode(n,"TSLiteralType")}break;case l._this:return this.tsParseThisTypeOrThisTypePredicate();case l._typeof:return this.tsParseTypeQuery();case l._import:return this.tsParseImportType();case l.braceL:return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this))?this.tsParseMappedType():this.tsParseTypeLiteral();case l.bracketL:return this.tsParseTupleType();case l.parenL:return this.tsParseParenthesizedType();case l.backQuote:case l.dollarBraceL:return this.tsParseTemplateLiteralType();default:var u=this.type;if(z(u)||u===l._void||u===l._null){var d=u===l._void?"TSVoidKeyword":u===l._null?"TSNullKeyword":(function(C){switch(C){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}})(this.value);if(d!==void 0&&this.lookaheadCharCode()!==46){var y=this.startNode();return this.next(),this.finishNode(y,d)}return this.tsParseTypeReference()}}this.unexpected()},S.tsParseArrayTypeOrHigher=function(){for(var n=this.tsParseNonArrayType();!this.hasPrecedingLineBreak()&&this.eat(l.bracketL);)if(this.match(l.bracketR)){var u=this.startNodeAtNode(n);u.elementType=n,this.expect(l.bracketR),n=this.finishNode(u,"TSArrayType")}else{var d=this.startNodeAtNode(n);d.objectType=n,d.indexType=this.tsParseType(),this.expect(l.bracketR),n=this.finishNode(d,"TSIndexedAccessType")}return n},S.tsParseTypeOperatorOrHigher=function(){var n=this;return X(this.type)&&!this.containsEsc?this.tsParseTypeOperator():this.isContextual("infer")?this.tsParseInferType():this.tsInAllowConditionalTypesContext(function(){return n.tsParseArrayTypeOrHigher()})},S.tsParseIntersectionTypeOrHigher=function(){return this.tsParseUnionOrIntersectionType("TSIntersectionType",this.tsParseTypeOperatorOrHigher.bind(this),l.bitwiseAND)},S.tsParseUnionTypeOrHigher=function(){return this.tsParseUnionOrIntersectionType("TSUnionType",this.tsParseIntersectionTypeOrHigher.bind(this),l.bitwiseOR)},S.tsParseNonConditionalType=function(){return this.tsIsStartOfFunctionType()?this.tsParseFunctionOrConstructorType("TSFunctionType"):this.match(l._new)?this.tsParseFunctionOrConstructorType("TSConstructorType"):this.isAbstractConstructorSignature()?this.tsParseFunctionOrConstructorType("TSConstructorType",!0):this.tsParseUnionTypeOrHigher()},S.tsParseType=function(){var n=this;ho(this.inType);var u=this.tsParseNonConditionalType();if(this.inDisallowConditionalTypesContext||this.hasPrecedingLineBreak()||!this.eat(l._extends))return u;var d=this.startNodeAtNode(u);return d.checkType=u,d.extendsType=this.tsInDisallowConditionalTypesContext(function(){return n.tsParseNonConditionalType()}),this.expect(l.question),d.trueType=this.tsInAllowConditionalTypesContext(function(){return n.tsParseType()}),this.expect(l.colon),d.falseType=this.tsInAllowConditionalTypesContext(function(){return n.tsParseType()}),this.finishNode(d,"TSConditionalType")},S.tsIsUnambiguouslyIndexSignature=function(){return this.next(),!!z(this.type)&&(this.next(),this.match(l.colon))},S.tsInType=function(n){var u=this.inType;this.inType=!0;try{return n()}finally{this.inType=u}},S.tsTryParseIndexSignature=function(n){if(this.match(l.bracketL)&&this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this))){this.expect(l.bracketL);var u=this.parseIdent();u.typeAnnotation=this.tsParseTypeAnnotation(),this.resetEndLocation(u),this.expect(l.bracketR),n.parameters=[u];var d=this.tsTryParseTypeAnnotation();return d&&(n.typeAnnotation=d),this.tsParseTypeMemberSemicolon(),this.finishNode(n,"TSIndexSignature")}},S.tsParseNoneModifiers=function(n){this.tsParseModifiers({modified:n,allowedModifiers:[],disallowedModifiers:["in","out"],errorTemplate:re.InvalidModifierOnTypeParameterPositions})},S.tsParseTypeParameter=function(n){n===void 0&&(n=this.tsParseNoneModifiers.bind(this));var u=this.startNode();return n(u),u.name=this.tsParseTypeParameterName(),u.constraint=this.tsEatThenParseType(l._extends),u.default=this.tsEatThenParseType(l.eq),this.finishNode(u,"TSTypeParameter")},S.tsParseTypeParameters=function(n){var u=this.startNode();this.tsMatchLeftRelational()||this.matchJsx("jsxTagStart")?this.next():this.unexpected();var d={value:-1};return u.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this,n),!1,!0,d),u.params.length===0&&this.raise(this.start,re.EmptyTypeParameters),d.value!==-1&&this.addExtra(u,"trailingComma",d.value),this.finishNode(u,"TSTypeParameterDeclaration")},S.tsTryParseTypeParameters=function(n){if(this.tsMatchLeftRelational())return this.tsParseTypeParameters(n)},S.tsTryParse=function(n){var u=this.getCurLookaheadState(),d=n();return d!==void 0&&d!==!1?d:void this.setLookaheadState(u)},S.tsTokenCanFollowModifier=function(){return(this.match(l.bracketL)||this.match(l.braceL)||this.match(l.star)||this.match(l.ellipsis)||this.match(l.privateId)||this.isLiteralPropertyName())&&!this.hasPrecedingLineBreak()},S.tsNextTokenCanFollowModifier=function(){return this.next(!0),this.tsTokenCanFollowModifier()},S.tsParseModifier=function(n,u){if(z(this.type)||this.type===l._in){var d=this.value;if(n.indexOf(d)!==-1&&!this.containsEsc){if(u&&this.tsIsStartOfStaticBlocks())return;if(this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this)))return d}}},S.tsParseModifiersByMap=function(n){for(var u=n.modified,d=n.map,y=0,C=Object.keys(d);y<C.length;y++){var A=C[y];u[A]=d[A]}},S.tsParseModifiers=function(n){for(var u=this,d=n.modified,y=n.allowedModifiers,C=n.disallowedModifiers,A=n.stopOnStartOfClassStaticBlock,k=n.errorTemplate,L=k===void 0?re.InvalidModifierOnTypeMember:k,N={},W=function(U,Y,oe,de){Y===oe&&d[de]&&u.raise(U.column,re.InvalidModifiersOrder({orderedModifiers:[oe,de]}))},J=function(U,Y,oe,de){(d[oe]&&Y===de||d[de]&&Y===oe)&&u.raise(U.column,re.IncompatibleModifiers({modifiers:[oe,de]}))};;){var B=this.startLoc,q=this.tsParseModifier(y.concat(C??[]),A);if(!q)break;lo(q)?d.accessibility?this.raise(this.start,re.DuplicateAccessibilityModifier()):(W(B,q,q,"override"),W(B,q,q,"static"),W(B,q,q,"readonly"),W(B,q,q,"accessor"),N.accessibility=q,d.accessibility=q):Bl(q)?d[q]?this.raise(this.start,re.DuplicateModifier({modifier:q})):(W(B,q,"in","out"),N[q]=q,d[q]=!0):Fl(q)?d[q]?this.raise(this.start,re.DuplicateModifier({modifier:q})):(J(B,q,"accessor","readonly"),J(B,q,"accessor","static"),J(B,q,"accessor","override"),N[q]=q,d[q]=!0):Object.hasOwnProperty.call(d,q)?this.raise(this.start,re.DuplicateModifier({modifier:q})):(W(B,q,"static","readonly"),W(B,q,"static","override"),W(B,q,"override","readonly"),W(B,q,"abstract","override"),J(B,q,"declare","override"),J(B,q,"static","abstract"),N[q]=q,d[q]=!0),C!=null&&C.includes(q)&&this.raise(this.start,L)}return N},S.tsParseInOutModifiers=function(n){this.tsParseModifiers({modified:n,allowedModifiers:["in","out"],disallowedModifiers:["public","private","protected","readonly","declare","abstract","override"],errorTemplate:re.InvalidModifierOnTypeParameter})},S.tsParseTypeArguments=function(){var n=this,u=this.startNode();return u.params=this.tsInType(function(){return n.tsInNoContext(function(){return n.expect(l.relational),n.tsParseDelimitedList("TypeParametersOrArguments",n.tsParseType.bind(n))})}),u.params.length===0&&this.raise(this.start,re.EmptyTypeArguments),this.exprAllowed=!1,this.expect(l.relational),this.finishNode(u,"TSTypeParameterInstantiation")},S.tsParseHeritageClause=function(n){var u=this,d=this.start,y=this.tsParseDelimitedList("HeritageClauseElement",function(){var C=u.startNode();return C.expression=u.tsParseEntityName(),u.tsMatchLeftRelational()&&(C.typeParameters=u.tsParseTypeArguments()),u.finishNode(C,"TSExpressionWithTypeArguments")});return y.length||this.raise(d,re.EmptyHeritageClauseType({token:n})),y},S.tsParseTypeMemberSemicolon=function(){this.eat(l.comma)||this.isLineTerminator()||this.expect(l.semi)},S.tsTryParseAndCatch=function(n){var u=this.tryParse(function(d){return n()||d()});if(!u.aborted&&u.node)return u.error&&this.setLookaheadState(u.failState),u.node},S.tsParseSignatureMember=function(n,u){return this.tsFillSignature(l.colon,u),this.tsParseTypeMemberSemicolon(),this.finishNode(u,n)},S.tsParsePropertyOrMethodSignature=function(n,u){this.eat(l.question)&&(n.optional=!0);var d=n;if(this.match(l.parenL)||this.tsMatchLeftRelational()){u&&this.raise(n.start,re.ReadonlyForMethodSignature);var y=d;y.kind&&this.tsMatchLeftRelational()&&this.raise(this.start,re.AccesorCannotHaveTypeParameters),this.tsFillSignature(l.colon,y),this.tsParseTypeMemberSemicolon();var C="parameters",A="typeAnnotation";if(y.kind==="get")y[C].length>0&&(this.raise(this.start,"A 'get' accesor must not have any formal parameters."),this.isThisParam(y[C][0])&&this.raise(this.start,re.AccesorCannotDeclareThisParameter));else if(y.kind==="set"){if(y[C].length!==1)this.raise(this.start,"A 'get' accesor must not have any formal parameters.");else{var k=y[C][0];this.isThisParam(k)&&this.raise(this.start,re.AccesorCannotDeclareThisParameter),k.type==="Identifier"&&k.optional&&this.raise(this.start,re.SetAccesorCannotHaveOptionalParameter),k.type==="RestElement"&&this.raise(this.start,re.SetAccesorCannotHaveRestParameter)}y[A]&&this.raise(y[A].start,re.SetAccesorCannotHaveReturnType)}else y.kind="method";return this.finishNode(y,"TSMethodSignature")}var L=d;u&&(L.readonly=!0);var N=this.tsTryParseTypeAnnotation();return N&&(L.typeAnnotation=N),this.tsParseTypeMemberSemicolon(),this.finishNode(L,"TSPropertySignature")},S.tsParseTypeMember=function(){var n=this.startNode();if(this.match(l.parenL)||this.tsMatchLeftRelational())return this.tsParseSignatureMember("TSCallSignatureDeclaration",n);if(this.match(l._new)){var u=this.startNode();return this.next(),this.match(l.parenL)||this.tsMatchLeftRelational()?this.tsParseSignatureMember("TSConstructSignatureDeclaration",n):(n.key=this.createIdentifier(u,"new"),this.tsParsePropertyOrMethodSignature(n,!1))}return this.tsParseModifiers({modified:n,allowedModifiers:["readonly"],disallowedModifiers:["declare","abstract","private","protected","public","static","override"]}),this.tsTryParseIndexSignature(n)||(this.parsePropertyName(n),n.computed||n.key.type!=="Identifier"||n.key.name!=="get"&&n.key.name!=="set"||!this.tsTokenCanFollowModifier()||(n.kind=n.key.name,this.parsePropertyName(n)),this.tsParsePropertyOrMethodSignature(n,!!n.readonly))},S.tsParseList=function(n,u){for(var d=[];!this.tsIsListTerminator(n);)d.push(u());return d},S.tsParseObjectTypeMembers=function(){this.expect(l.braceL);var n=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(l.braceR),n},S.tsParseInterfaceDeclaration=function(n,u){if(u===void 0&&(u={}),this.hasFollowingLineBreak())return null;this.expectContextual("interface"),u.declare&&(n.declare=!0),z(this.type)?(n.id=this.parseIdent(),this.checkLValSimple(n.id,7)):(n.id=null,this.raise(this.start,re.MissingInterfaceName)),n.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers.bind(this)),this.eat(l._extends)&&(n.extends=this.tsParseHeritageClause("extends"));var d=this.startNode();return d.body=this.tsInType(this.tsParseObjectTypeMembers.bind(this)),n.body=this.finishNode(d,"TSInterfaceBody"),this.finishNode(n,"TSInterfaceDeclaration")},S.tsParseAbstractDeclaration=function(n){if(this.match(l._class))return n.abstract=!0,this.parseClass(n,!0);if(this.ts_isContextual(V.interface)){if(!this.hasFollowingLineBreak())return n.abstract=!0,this.tsParseInterfaceDeclaration(n)}else this.unexpected(n.start)},S.tsIsDeclarationStart=function(){return ne(this.type)},S.tsParseExpressionStatement=function(n,u){switch(u.name){case"declare":var d=this.tsTryParseDeclare(n);if(d)return d.declare=!0,d;break;case"global":if(this.match(l.braceL)){j.prototype.enterScope.call(this,hi);var y=n;return y.global=!0,y.id=u,y.body=this.tsParseModuleBlock(),j.prototype.exitScope.call(this),this.finishNode(y,"TSModuleDeclaration")}break;default:return this.tsParseDeclaration(n,u.name,!1)}},S.tsParseModuleReference=function(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(!1)},S.tsIsExportDefaultSpecifier=function(){var n=this.type,u=this.isAsyncFunction(),d=this.isLet();if(z(n)){if(u&&!this.containsEsc||d)return!1;if((n===V.type||n===V.interface)&&!this.containsEsc){var y=this.lookahead();if(z(y.type)&&!this.isContextualWithState("from",y)||y.type===l.braceL)return!1}}else if(!this.match(l._default))return!1;var C=this.nextTokenStart(),A=this.isUnparsedContextual(C,"from");if(this.input.charCodeAt(C)===44||z(this.type)&&A)return!0;if(this.match(l._default)&&A){var k=this.input.charCodeAt(this.nextTokenStartSince(C+4));return k===34||k===39}return!1},S.tsInAmbientContext=function(n){var u=this.isAmbientContext;this.isAmbientContext=!0;try{return n()}finally{this.isAmbientContext=u}},S.tsCheckLineTerminator=function(n){return n?!this.hasFollowingLineBreak()&&(this.next(),!0):!this.isLineTerminator()},S.tsParseModuleOrNamespaceDeclaration=function(n,u){if(u===void 0&&(u=!1),n.id=this.parseIdent(),u||this.checkLValSimple(n.id,8),this.eat(l.dot)){var d=this.startNode();this.tsParseModuleOrNamespaceDeclaration(d,!0),n.body=d}else j.prototype.enterScope.call(this,hi),n.body=this.tsParseModuleBlock(),j.prototype.exitScope.call(this);return this.finishNode(n,"TSModuleDeclaration")},S.checkLValSimple=function(n,u,d){return u===void 0&&(u=0),j.prototype.checkLValSimple.call(this,n,u,d)},S.tsParseTypeAliasDeclaration=function(n){var u=this;return n.id=this.parseIdent(),this.checkLValSimple(n.id,6),n.typeAnnotation=this.tsInType(function(){if(n.typeParameters=u.tsTryParseTypeParameters(u.tsParseInOutModifiers.bind(u)),u.expect(l.eq),u.ts_isContextual(V.interface)&&u.lookahead().type!==l.dot){var d=u.startNode();return u.next(),u.finishNode(d,"TSIntrinsicKeyword")}return u.tsParseType()}),this.semicolon(),this.finishNode(n,"TSTypeAliasDeclaration")},S.tsParseDeclaration=function(n,u,d){switch(u){case"abstract":if(this.tsCheckLineTerminator(d)&&(this.match(l._class)||z(this.type)))return this.tsParseAbstractDeclaration(n);break;case"module":if(this.tsCheckLineTerminator(d)){if(this.match(l.string))return this.tsParseAmbientExternalModuleDeclaration(n);if(z(this.type))return this.tsParseModuleOrNamespaceDeclaration(n)}break;case"namespace":if(this.tsCheckLineTerminator(d)&&z(this.type))return this.tsParseModuleOrNamespaceDeclaration(n);break;case"type":if(this.tsCheckLineTerminator(d)&&z(this.type))return this.tsParseTypeAliasDeclaration(n)}},S.tsTryParseExportDeclaration=function(){return this.tsParseDeclaration(this.startNode(),this.value,!0)},S.tsParseImportEqualsDeclaration=function(n,u){n.isExport=u||!1,n.id=this.parseIdent(),this.checkLValSimple(n.id,2),j.prototype.expect.call(this,l.eq);var d=this.tsParseModuleReference();return n.importKind==="type"&&d.type!=="TSExternalModuleReference"&&this.raise(d.start,re.ImportAliasHasImportType),n.moduleReference=d,j.prototype.semicolon.call(this),this.finishNode(n,"TSImportEqualsDeclaration")},S.isExportDefaultSpecifier=function(){if(this.tsIsDeclarationStart())return!1;var n=this.type;if(z(n)){if(this.isContextual("async")||this.isContextual("let"))return!1;if((n===V.type||n===V.interface)&&!this.containsEsc){var u=this.lookahead();if(z(u.type)&&!this.isContextualWithState("from",u)||u.type===l.braceL)return!1}}else if(!this.match(l._default))return!1;var d=this.nextTokenStart(),y=this.isUnparsedContextual(d,"from");if(this.input.charCodeAt(d)===44||z(this.type)&&y)return!0;if(this.match(l._default)&&y){var C=this.input.charCodeAt(this.nextTokenStartSince(d+4));return C===34||C===39}return!1},S.parseTemplate=function(n){var u=(n===void 0?{}:n).isTagged,d=u!==void 0&&u,y=this.startNode();this.next(),y.expressions=[];var C=this.parseTemplateElement({isTagged:d});for(y.quasis=[C];!C.tail;)this.type===l.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(l.dollarBraceL),y.expressions.push(this.inType?this.tsParseType():this.parseExpression()),this.expect(l.braceR),y.quasis.push(C=this.parseTemplateElement({isTagged:d}));return this.next(),this.finishNode(y,"TemplateLiteral")},S.parseFunction=function(n,u,d,y,C){this.initFunction(n),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!y)&&(this.type===l.star&&2&u&&this.unexpected(),n.generator=this.eat(l.star)),this.options.ecmaVersion>=8&&(n.async=!!y),1&u&&(n.id=4&u&&this.type!==l.name?null:this.parseIdent());var A=this.yieldPos,k=this.awaitPos,L=this.awaitIdentPos,N=this.maybeInArrowParameters;this.maybeInArrowParameters=!1,this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(Gs(n.async,n.generator)),1&u||(n.id=this.type===l.name?this.parseIdent():null),this.parseFunctionParams(n);var W=1&u;return this.parseFunctionBody(n,d,!1,C,{isFunctionDeclaration:W}),this.yieldPos=A,this.awaitPos=k,this.awaitIdentPos=L,1&u&&n.id&&!(2&u)&&this.checkLValSimple(n.id,n.body?this.strict||n.generator||n.async?this.treatFunctionsAsVar?1:2:3:0),this.maybeInArrowParameters=N,this.finishNode(n,W?"FunctionDeclaration":"FunctionExpression")},S.parseFunctionBody=function(n,u,d,y,C){u===void 0&&(u=!1),d===void 0&&(d=!1),y===void 0&&(y=!1),this.match(l.colon)&&(n.returnType=this.tsParseTypeOrTypePredicateAnnotation(l.colon));var A=C!=null&&C.isFunctionDeclaration?"TSDeclareFunction":C!=null&&C.isClassMethod?"TSDeclareMethod":void 0;return A&&!this.match(l.braceL)&&this.isLineTerminator()?this.finishNode(n,A):A==="TSDeclareFunction"&&this.isAmbientContext&&(this.raise(n.start,re.DeclareFunctionHasImplementation),n.declare)?(j.prototype.parseFunctionBody.call(this,n,u,d,!1),this.finishNode(n,A)):(j.prototype.parseFunctionBody.call(this,n,u,d,y),n)},S.parseNew=function(){var n;this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var u=this.startNode(),d=this.parseIdent(!0);if(this.options.ecmaVersion>=6&&this.eat(l.dot)){u.meta=d;var y=this.containsEsc;return u.property=this.parseIdent(!0),u.property.name!=="target"&&this.raiseRecoverable(u.property.start,"The only valid meta property for new is 'new.target'"),y&&this.raiseRecoverable(u.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(u.start,"'new.target' can only be used in functions and class static block"),this.finishNode(u,"MetaProperty")}var C=this.start,A=this.startLoc,k=this.type===l._import;u.callee=this.parseSubscripts(this.parseExprAtom(),C,A,!0,!1),k&&u.callee.type==="ImportExpression"&&this.raise(C,"Cannot use new with import()");var L=u.callee;return L.type!=="TSInstantiationExpression"||(n=L.extra)!=null&&n.parenthesized||(u.typeParameters=L.typeParameters,u.callee=L.expression),u.arguments=this.eat(l.parenL)?this.parseExprList(l.parenR,this.options.ecmaVersion>=8,!1):[],this.finishNode(u,"NewExpression")},S.parseExprOp=function(n,u,d,y,C){var A;if(l._in.binop>y&&!this.hasPrecedingLineBreak()&&(this.isContextual("as")&&(A="TSAsExpression"),h&&this.isContextual("satisfies")&&(A="TSSatisfiesExpression"),A)){var k=this.startNodeAt(u,d);k.expression=n;var L=this.tsTryNextParseConstantContext();return k.typeAnnotation=L||this.tsNextThenParseType(),this.finishNode(k,A),this.reScan_lt_gt(),this.parseExprOp(k,u,d,y,C)}return j.prototype.parseExprOp.call(this,n,u,d,y,C)},S.parseImportSpecifiers=function(){var n=[],u=!0;if(v.tokenIsIdentifier(this.type)&&(n.push(this.parseImportDefaultSpecifier()),!this.eat(l.comma)))return n;if(this.type===l.star)return n.push(this.parseImportNamespaceSpecifier()),n;for(this.expect(l.braceL);!this.eat(l.braceR);){if(u)u=!1;else if(this.expect(l.comma),this.afterTrailingComma(l.braceR))break;n.push(this.parseImportSpecifier())}return n},S.parseImport=function(n){var u=this.lookahead();if(n.importKind="value",this.importOrExportOuterKind="value",z(u.type)||this.match(l.star)||this.match(l.braceL)){var d=this.lookahead(2);if(d.type!==l.comma&&!this.isContextualWithState("from",d)&&d.type!==l.eq&&this.ts_eatContextualWithState("type",1,u)&&(this.importOrExportOuterKind="type",n.importKind="type",u=this.lookahead(),d=this.lookahead(2)),z(u.type)&&d.type===l.eq){this.next();var y=this.tsParseImportEqualsDeclaration(n);return this.importOrExportOuterKind="value",y}}return this.next(),this.type===l.string?(n.specifiers=[],n.source=this.parseExprAtom()):(n.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),n.source=this.type===l.string?this.parseExprAtom():this.unexpected()),this.parseMaybeImportAttributes(n),this.semicolon(),this.finishNode(n,"ImportDeclaration"),this.importOrExportOuterKind="value",n.importKind==="type"&&n.specifiers.length>1&&n.specifiers[0].type==="ImportDefaultSpecifier"&&this.raise(n.start,re.TypeImportCannotSpecifyDefaultAndNamed),n},S.parseExportDefaultDeclaration=function(){if(this.isAbstractClass()){var n=this.startNode();return this.next(),n.abstract=!0,this.parseClass(n,!0)}if(this.match(V.interface)){var u=this.tsParseInterfaceDeclaration(this.startNode());if(u)return u}return j.prototype.parseExportDefaultDeclaration.call(this)},S.parseExportAllDeclaration=function(n,u){return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(n.exported=this.parseModuleExportName(),this.checkExport(u,n.exported,this.lastTokStart)):n.exported=null),this.expectContextual("from"),this.type!==l.string&&this.unexpected(),n.source=this.parseExprAtom(),this.parseMaybeImportAttributes(n),this.semicolon(),this.finishNode(n,"ExportAllDeclaration")},S.parseDynamicImport=function(n){if(this.next(),n.source=this.parseMaybeAssign(),this.eat(l.comma)){var u=this.parseExpression();n.arguments=[u]}if(!this.eat(l.parenR)){var d=this.start;this.eat(l.comma)&&this.eat(l.parenR)?this.raiseRecoverable(d,"Trailing comma is not allowed in import()"):this.unexpected(d)}return this.finishNode(n,"ImportExpression")},S.parseExport=function(n,u){var d=this.lookahead();if(this.ts_eatWithState(l._import,2,d)){this.ts_isContextual(V.type)&&this.lookaheadCharCode()!==61?(n.importKind="type",this.importOrExportOuterKind="type",this.next()):(n.importKind="value",this.importOrExportOuterKind="value");var y=this.tsParseImportEqualsDeclaration(n,!0);return this.importOrExportOuterKind=void 0,y}if(this.ts_eatWithState(l.eq,2,d)){var C=n;return C.expression=this.parseExpression(),this.semicolon(),this.importOrExportOuterKind=void 0,this.finishNode(C,"TSExportAssignment")}if(this.ts_eatContextualWithState("as",2,d)){var A=n;return this.expectContextual("namespace"),A.id=this.parseIdent(),this.semicolon(),this.importOrExportOuterKind=void 0,this.finishNode(A,"TSNamespaceExportDeclaration")}if(this.ts_isContextualWithState(d,V.type)&&this.lookahead(2).type===l.braceL?(this.next(),this.importOrExportOuterKind="type",n.exportKind="type"):(this.importOrExportOuterKind="value",n.exportKind="value"),this.next(),this.eat(l.star))return this.parseExportAllDeclaration(n,u);if(this.eat(l._default))return this.checkExport(u,"default",this.lastTokStart),n.declaration=this.parseExportDefaultDeclaration(),this.finishNode(n,"ExportDefaultDeclaration");if(this.shouldParseExportStatement())n.declaration=this.parseExportDeclaration(n),n.declaration.type==="VariableDeclaration"?this.checkVariableExport(u,n.declaration.declarations):this.checkExport(u,n.declaration.id,n.declaration.id.start),n.specifiers=[],n.source=null;else{if(n.declaration=null,n.specifiers=this.parseExportSpecifiers(u),this.eatContextual("from"))this.type!==l.string&&this.unexpected(),n.source=this.parseExprAtom(),this.parseMaybeImportAttributes(n);else{for(var k,L=oo(n.specifiers);!(k=L()).done;){var N=k.value;this.checkUnreserved(N.local),this.checkLocalExport(N.local),N.local.type==="Literal"&&this.raise(N.local.start,"A string literal cannot be used as an exported binding without `from`.")}n.source=null}this.semicolon()}return this.finishNode(n,"ExportNamedDeclaration")},S.checkExport=function(n,u,d){n&&(typeof u!="string"&&(u=u.type==="Identifier"?u.name:u.value),n[u]=!0)},S.parseMaybeDefault=function(n,u,d){var y=j.prototype.parseMaybeDefault.call(this,n,u,d);return y.type==="AssignmentPattern"&&y.typeAnnotation&&y.right.start<y.typeAnnotation.start&&this.raise(y.typeAnnotation.start,re.TypeAnnotationAfterAssign),y},S.typeCastToParameter=function(n){return n.expression.typeAnnotation=n.typeAnnotation,this.resetEndLocation(n.expression,n.typeAnnotation.end),n.expression},S.toAssignableList=function(n,u){for(var d=0;d<n.length;d++){var y=n[d];y?.type==="TSTypeCastExpression"&&(n[d]=this.typeCastToParameter(y))}return j.prototype.toAssignableList.call(this,n,u)},S.reportReservedArrowTypeParam=function(n){},S.parseExprAtom=function(n,u,d){if(this.type===V.jsxText)return this.jsx_parseText();if(this.type===V.jsxTagStart)return this.jsx_parseElement();if(this.type===V.at)return this.parseDecorators(),this.parseExprAtom();if(z(this.type)){var y=this.potentialArrowAt===this.start,C=this.start,A=this.startLoc,k=this.containsEsc,L=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!k&&L.name==="async"&&!this.canInsertSemicolon()&&this.eat(l._function))return this.overrideContext(E.f_expr),this.parseFunction(this.startNodeAt(C,A),0,!1,!0,u);if(y&&!this.canInsertSemicolon()){if(this.eat(l.arrow))return this.parseArrowExpression(this.startNodeAt(C,A),[L],!1,u);if(this.options.ecmaVersion>=8&&L.name==="async"&&this.type===l.name&&!k&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc))return L=this.parseIdent(!1),!this.canInsertSemicolon()&&this.eat(l.arrow)||this.unexpected(),this.parseArrowExpression(this.startNodeAt(C,A),[L],!0,u)}return L}return j.prototype.parseExprAtom.call(this,n,u,d)},S.parseExprAtomDefault=function(){if(z(this.type)){var n=this.potentialArrowAt===this.start,u=this.containsEsc,d=this.parseIdent();if(!u&&d.name==="async"&&!this.canInsertSemicolon()){var y=this.type;if(y===l._function)return this.next(),this.parseFunction(this.startNodeAtNode(d),void 0,!0,!0);if(z(y)){if(this.lookaheadCharCode()===61){var C=this.parseIdent(!1);return!this.canInsertSemicolon()&&this.eat(l.arrow)||this.unexpected(),this.parseArrowExpression(this.startNodeAtNode(d),[C],!0)}return d}}return n&&this.match(l.arrow)&&!this.canInsertSemicolon()?(this.next(),this.parseArrowExpression(this.startNodeAtNode(d),[d],!1)):d}this.unexpected()},S.parseIdentNode=function(){var n=this.startNode();return ae(this.type)?(n.name=this.value,n):j.prototype.parseIdentNode.call(this)},S.parseVarStatement=function(n,u,d){d===void 0&&(d=!1);var y=this.isAmbientContext;this.next(),j.prototype.parseVar.call(this,n,!1,u,d||y),this.semicolon();var C=this.finishNode(n,"VariableDeclaration");if(!y)return C;for(var A,k=oo(C.declarations);!(A=k()).done;){var L=A.value,N=L.init;N&&(u!=="const"||L.id.typeAnnotation?this.raise(N.start,re.InitializerNotAllowedInAmbientContext):N.type!=="StringLiteral"&&N.type!=="BooleanLiteral"&&N.type!=="NumericLiteral"&&N.type!=="BigIntLiteral"&&(N.type!=="TemplateLiteral"||N.expressions.length>0)&&!jl(N)&&this.raise(N.start,re.ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference))}return C},S.parseStatement=function(n,u,d){if(this.match(V.at)&&this.parseDecorators(!0),this.match(l._const)&&this.isLookaheadContextual("enum")){var y=this.startNode();return this.expect(l._const),this.tsParseEnumDeclaration(y,{const:!0})}if(this.ts_isContextual(V.enum))return this.tsParseEnumDeclaration(this.startNode());if(this.ts_isContextual(V.interface)){var C=this.tsParseInterfaceDeclaration(this.startNode());if(C)return C}return j.prototype.parseStatement.call(this,n,u,d)},S.parseAccessModifier=function(){return this.tsParseModifier(["public","protected","private"])},S.parsePostMemberNameModifiers=function(n){this.eat(l.question)&&(n.optional=!0),n.readonly&&this.match(l.parenL)&&this.raise(n.start,re.ClassMethodHasReadonly),n.declare&&this.match(l.parenL)&&this.raise(n.start,re.ClassMethodHasDeclare)},S.parseExpressionStatement=function(n,u){return(u.type==="Identifier"?this.tsParseExpressionStatement(n,u):void 0)||j.prototype.parseExpressionStatement.call(this,n,u)},S.shouldParseExportStatement=function(){return!!this.tsIsDeclarationStart()||!!this.match(V.at)||j.prototype.shouldParseExportStatement.call(this)},S.parseConditional=function(n,u,d,y,C){if(this.eat(l.question)){var A=this.startNodeAt(u,d);return A.test=n,A.consequent=this.parseMaybeAssign(),this.expect(l.colon),A.alternate=this.parseMaybeAssign(y),this.finishNode(A,"ConditionalExpression")}return n},S.parseMaybeConditional=function(n,u){var d=this,y=this.start,C=this.startLoc,A=this.parseExprOps(n,u);if(this.checkExpressionErrors(u))return A;if(!this.maybeInArrowParameters||!this.match(l.question))return this.parseConditional(A,y,C,n,u);var k=this.tryParse(function(){return d.parseConditional(A,y,C,n,u)});return k.node?(k.error&&this.setLookaheadState(k.failState),k.node):(k.error&&this.setOptionalParametersError(u,k.error),A)},S.parseParenItem=function(n){var u=this.start,d=this.startLoc;if(n=j.prototype.parseParenItem.call(this,n),this.eat(l.question)&&(n.optional=!0,this.resetEndLocation(n)),this.match(l.colon)){var y=this.startNodeAt(u,d);return y.expression=n,y.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(y,"TSTypeCastExpression")}return n},S.parseExportDeclaration=function(n){var u=this;if(!this.isAmbientContext&&this.ts_isContextual(V.declare))return this.tsInAmbientContext(function(){return u.parseExportDeclaration(n)});var d=this.start,y=this.startLoc,C=this.eatContextual("declare");!C||!this.ts_isContextual(V.declare)&&this.shouldParseExportStatement()||this.raise(this.start,re.ExpectedAmbientAfterExportDeclare);var A=z(this.type)&&this.tsTryParseExportDeclaration()||this.parseStatement(null);return A?((A.type==="TSInterfaceDeclaration"||A.type==="TSTypeAliasDeclaration"||C)&&(n.exportKind="type"),C&&(this.resetStartLocation(A,d,y),A.declare=!0),A):null},S.parseClassId=function(n,u){if(u||!this.isContextual("implements")){j.prototype.parseClassId.call(this,n,u);var d=this.tsTryParseTypeParameters(this.tsParseInOutModifiers.bind(this));d&&(n.typeParameters=d)}},S.parseClassPropertyAnnotation=function(n){n.optional||(this.value==="!"&&this.eat(l.prefix)?n.definite=!0:this.eat(l.question)&&(n.optional=!0));var u=this.tsTryParseTypeAnnotation();u&&(n.typeAnnotation=u)},S.parseClassField=function(n){if(n.key.type==="PrivateIdentifier")n.abstract&&this.raise(n.start,re.PrivateElementHasAbstract),n.accessibility&&this.raise(n.start,re.PrivateElementHasAccessibility({modifier:n.accessibility})),this.parseClassPropertyAnnotation(n);else if(this.parseClassPropertyAnnotation(n),this.isAmbientContext&&(!n.readonly||n.typeAnnotation)&&this.match(l.eq)&&this.raise(this.start,re.DeclareClassFieldHasInitializer),n.abstract&&this.match(l.eq)){var u=n.key;this.raise(this.start,re.AbstractPropertyHasInitializer({propertyName:u.type!=="Identifier"||n.computed?"["+this.input.slice(u.start,u.end)+"]":u.name}))}return j.prototype.parseClassField.call(this,n)},S.parseClassMethod=function(n,u,d,y){var C=n.kind==="constructor",A=n.key.type==="PrivateIdentifier",k=this.tsTryParseTypeParameters();A?(k&&(n.typeParameters=k),n.accessibility&&this.raise(n.start,re.PrivateMethodsHasAccessibility({modifier:n.accessibility}))):k&&C&&this.raise(k.start,re.ConstructorHasTypeParameters);var L=n.declare,N=n.kind;!(L!==void 0&&L)||N!=="get"&&N!=="set"||this.raise(n.start,re.DeclareAccessor({kind:N})),k&&(n.typeParameters=k);var W=n.key;n.kind==="constructor"?(u&&this.raise(W.start,"Constructor can't be a generator"),d&&this.raise(W.start,"Constructor can't be an async method")):n.static&&co(n,"prototype")&&this.raise(W.start,"Classes may not have a static property named prototype");var J=n.value=this.parseMethod(u,d,y,!0,n);return n.kind==="get"&&J.params.length!==0&&this.raiseRecoverable(J.start,"getter should have no params"),n.kind==="set"&&J.params.length!==1&&this.raiseRecoverable(J.start,"setter should have exactly one param"),n.kind==="set"&&J.params[0].type==="RestElement"&&this.raiseRecoverable(J.params[0].start,"Setter cannot use rest params"),this.finishNode(n,"MethodDefinition")},S.isClassMethod=function(){return this.match(l.relational)},S.parseClassElement=function(n){var u=this;if(this.eat(l.semi))return null;var d,y=this.options.ecmaVersion,C=this.startNode(),A="",k=!1,L=!1,N="method",W=["declare","private","public","protected","accessor","override","abstract","readonly","static"],J=this.tsParseModifiers({modified:C,allowedModifiers:W,disallowedModifiers:["in","out"],stopOnStartOfClassStaticBlock:!0,errorTemplate:re.InvalidModifierOnTypeParameterPositions});d=!!J.static;var B=function(){if(!u.tsIsStartOfStaticBlocks()){var q=u.tsTryParseIndexSignature(C);if(q)return C.abstract&&u.raise(C.start,re.IndexSignatureHasAbstract),C.accessibility&&u.raise(C.start,re.IndexSignatureHasAccessibility({modifier:C.accessibility})),C.declare&&u.raise(C.start,re.IndexSignatureHasDeclare),C.override&&u.raise(C.start,re.IndexSignatureHasOverride),q;if(!u.inAbstractClass&&C.abstract&&u.raise(C.start,re.NonAbstractClassHasAbstractMethod),C.override&&n&&u.raise(C.start,re.OverrideNotInSubClass),C.static=d,d&&(u.isClassElementNameStart()||u.type===l.star||(A="static")),!A&&y>=8&&u.eatContextual("async")&&(!u.isClassElementNameStart()&&u.type!==l.star||u.canInsertSemicolon()?A="async":L=!0),!A&&(y>=9||!L)&&u.eat(l.star)&&(k=!0),!A&&!L&&!k){var U=u.value;(u.eatContextual("get")||u.eatContextual("set"))&&(u.isClassElementNameStart()?N=U:A=U)}if(A?(C.computed=!1,C.key=u.startNodeAt(u.lastTokStart,u.lastTokStartLoc),C.key.name=A,u.finishNode(C.key,"Identifier")):u.parseClassElementName(C),u.parsePostMemberNameModifiers(C),u.isClassMethod()||y<13||u.type===l.parenL||N!=="method"||k||L){var Y=!C.static&&co(C,"constructor"),oe=Y&&n;Y&&N!=="method"&&u.raise(C.key.start,"Constructor can't have get/set modifier"),C.kind=Y?"constructor":N,u.parseClassMethod(C,k,L,oe)}else u.parseClassField(C);return C}if(u.next(),u.next(),u.tsHasSomeModifiers(C,W)&&u.raise(u.start,re.StaticBlockCannotHaveModifier),y>=13)return j.prototype.parseClassStaticBlock.call(u,C),C};return C.declare?this.tsInAmbientContext(B):B(),C},S.isClassElementNameStart=function(){return!!this.tsIsIdentifier()||j.prototype.isClassElementNameStart.call(this)},S.parseClassSuper=function(n){j.prototype.parseClassSuper.call(this,n),n.superClass&&(this.tsMatchLeftRelational()||this.match(l.bitShift))&&(n.superTypeParameters=this.tsParseTypeArgumentsInExpression()),this.eatContextual("implements")&&(n.implements=this.tsParseHeritageClause("implements"))},S.parseFunctionParams=function(n){var u=this.tsTryParseTypeParameters();u&&(n.typeParameters=u),j.prototype.parseFunctionParams.call(this,n)},S.parseVarId=function(n,u){j.prototype.parseVarId.call(this,n,u),n.id.type==="Identifier"&&!this.hasPrecedingLineBreak()&&this.value==="!"&&this.eat(l.prefix)&&(n.definite=!0);var d=this.tsTryParseTypeAnnotation();d&&(n.id.typeAnnotation=d,this.resetEndLocation(n.id))},S.parseArrowExpression=function(n,u,d,y){this.match(l.colon)&&(n.returnType=this.tsParseTypeAnnotation());var C=this.yieldPos,A=this.awaitPos,k=this.awaitIdentPos;this.enterScope(16|Gs(d,!1)),this.initFunction(n);var L=this.maybeInArrowParameters;return this.options.ecmaVersion>=8&&(n.async=!!d),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.maybeInArrowParameters=!0,n.params=this.toAssignableList(u,!0),this.maybeInArrowParameters=!1,this.parseFunctionBody(n,!0,!1,y),this.yieldPos=C,this.awaitPos=A,this.awaitIdentPos=k,this.maybeInArrowParameters=L,this.finishNode(n,"ArrowFunctionExpression")},S.parseMaybeAssignOrigin=function(n,u,d){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(n);this.exprAllowed=!1}var y=!1,C=-1,A=-1,k=-1;u?(C=u.parenthesizedAssign,A=u.trailingComma,k=u.doubleProto,u.parenthesizedAssign=u.trailingComma=-1):(u=new li,y=!0);var L=this.start,N=this.startLoc;(this.type===l.parenL||z(this.type))&&(this.potentialArrowAt=this.start,this.potentialArrowInForAwait=n==="await");var W=this.parseMaybeConditional(n,u);if(d&&(W=d.call(this,W,L,N)),this.type.isAssign){var J=this.startNodeAt(L,N);return J.operator=this.value,this.type===l.eq&&(W=this.toAssignable(W,!0,u)),y||(u.parenthesizedAssign=u.trailingComma=u.doubleProto=-1),u.shorthandAssign>=W.start&&(u.shorthandAssign=-1),this.type===l.eq?this.checkLValPattern(W):this.checkLValSimple(W),J.left=W,this.next(),J.right=this.parseMaybeAssign(n),k>-1&&(u.doubleProto=k),this.finishNode(J,"AssignmentExpression")}return y&&this.checkExpressionErrors(u,!0),C>-1&&(u.parenthesizedAssign=C),A>-1&&(u.trailingComma=A),W},S.parseMaybeAssign=function(n,u,d){var y,C,A,k,L,N,W,J,B,q,U,Y=this;if(this.matchJsx("jsxTagStart")||this.tsMatchLeftRelational()){if(J=this.cloneCurLookaheadState(),!(B=this.tryParse(function(){return Y.parseMaybeAssignOrigin(n,u,d)},J)).error)return B.node;var oe=this.context,de=oe[oe.length-1];de===v.tokContexts.tc_oTag&&oe[oe.length-2]===v.tokContexts.tc_expr?(oe.pop(),oe.pop()):de!==v.tokContexts.tc_oTag&&de!==v.tokContexts.tc_expr||oe.pop()}if(!((y=B)!=null&&y.error||this.tsMatchLeftRelational()))return this.parseMaybeAssignOrigin(n,u,d);J&&!this.compareLookaheadState(J,this.getCurLookaheadState())||(J=this.cloneCurLookaheadState());var ge=this.tryParse(function(ke){var Ie,ft;U=Y.tsParseTypeParameters();var je=Y.parseMaybeAssignOrigin(n,u,d);return(je.type!=="ArrowFunctionExpression"||(Ie=je.extra)!=null&&Ie.parenthesized)&&ke(),((ft=U)==null?void 0:ft.params.length)!==0&&Y.resetStartLocationFromNode(je,U),je.typeParameters=U,je},J);if(!ge.error&&!ge.aborted)return U&&this.reportReservedArrowTypeParam(U),ge.node;if(!B&&(ho(!0),!(q=this.tryParse(function(){return Y.parseMaybeAssignOrigin(n,u,d)},J)).error))return q.node;if((C=B)!=null&&C.node)return this.setLookaheadState(B.failState),B.node;if(ge.node)return this.setLookaheadState(ge.failState),U&&this.reportReservedArrowTypeParam(U),ge.node;if((A=q)!=null&&A.node)return this.setLookaheadState(q.failState),q.node;throw(k=B)!=null&&k.thrown?B.error:ge.thrown?ge.error:(L=q)!=null&&L.thrown?q.error:((N=B)==null?void 0:N.error)||ge.error||((W=q)==null?void 0:W.error)},S.parseAssignableListItem=function(n){for(var u=[];this.match(V.at);)u.push(this.parseDecorator());var d,y=this.start,C=this.startLoc,A=!1,k=!1;if(n!==void 0){var L={};this.tsParseModifiers({modified:L,allowedModifiers:["public","private","protected","override","readonly"]}),d=L.accessibility,k=L.override,A=L.readonly,n===!1&&(d||A||k)&&this.raise(C.start,re.UnexpectedParameterModifier)}var N=this.parseMaybeDefault(y,C);this.parseBindingListItem(N);var W=this.parseMaybeDefault(N.start,N.loc,N);if(u.length&&(W.decorators=u),d||A||k){var J=this.startNodeAt(y,C);return d&&(J.accessibility=d),A&&(J.readonly=A),k&&(J.override=k),W.type!=="Identifier"&&W.type!=="AssignmentPattern"&&this.raise(J.start,re.UnsupportedParameterPropertyKind),J.parameter=W,this.finishNode(J,"TSParameterProperty")}return W},S.checkLValInnerPattern=function(n,u,d){u===void 0&&(u=0),n.type==="TSParameterProperty"?this.checkLValInnerPattern(n.parameter,u,d):j.prototype.checkLValInnerPattern.call(this,n,u,d)},S.parseBindingListItem=function(n){this.eat(l.question)&&(n.type==="Identifier"||this.isAmbientContext||this.inType||this.raise(n.start,re.PatternIsOptional),n.optional=!0);var u=this.tsTryParseTypeAnnotation();return u&&(n.typeAnnotation=u),this.resetEndLocation(n),n},S.isAssignable=function(n,u){var d=this;switch(n.type){case"TSTypeCastExpression":return this.isAssignable(n.expression,u);case"TSParameterProperty":case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":return!0;case"ObjectExpression":var y=n.properties.length-1;return n.properties.every(function(C,A){return C.type!=="ObjectMethod"&&(A===y||C.type!=="SpreadElement")&&d.isAssignable(C)});case"Property":case"ObjectProperty":return this.isAssignable(n.value);case"SpreadElement":return this.isAssignable(n.argument);case"ArrayExpression":return n.elements.every(function(C){return C===null||d.isAssignable(C)});case"AssignmentExpression":return n.operator==="=";case"ParenthesizedExpression":return this.isAssignable(n.expression);case"MemberExpression":case"OptionalMemberExpression":return!u;default:return!1}},S.toAssignable=function(n,u,d){switch(u===void 0&&(u=!1),d===void 0&&(d=new li),n.type){case"ParenthesizedExpression":return this.toAssignableParenthesizedExpression(n,u,d);case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":return u||this.raise(n.start,re.UnexpectedTypeCastInParameter),this.toAssignable(n.expression,u,d);case"MemberExpression":break;case"AssignmentExpression":return u||n.left.type!=="TSTypeCastExpression"||(n.left=this.typeCastToParameter(n.left)),j.prototype.toAssignable.call(this,n,u,d);case"TSTypeCastExpression":return this.typeCastToParameter(n);default:return j.prototype.toAssignable.call(this,n,u,d)}return n},S.toAssignableParenthesizedExpression=function(n,u,d){switch(n.expression.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":case"ParenthesizedExpression":return this.toAssignable(n.expression,u,d);default:return j.prototype.toAssignable.call(this,n,u,d)}},S.curPosition=function(){if(this.options.locations){var n=j.prototype.curPosition.call(this);return Object.defineProperty(n,"offset",{get:function(){return function(u){var d=new g.Position(this.line,this.column+u);return d.index=this.index+u,d}}}),n.index=this.pos,n}},S.parseBindingAtom=function(){return this.type===l._this?this.parseIdent(!0):j.prototype.parseBindingAtom.call(this)},S.shouldParseArrow=function(n){var u,d=this;if(u=this.match(l.colon)?n.every(function(C){return d.isAssignable(C,!0)}):!this.canInsertSemicolon()){if(this.match(l.colon)){var y=this.tryParse(function(C){var A=d.tsParseTypeOrTypePredicateAnnotation(l.colon);return!d.canInsertSemicolon()&&d.match(l.arrow)||C(),A});if(y.aborted)return this.shouldParseArrowReturnType=void 0,!1;y.thrown||(y.error&&this.setLookaheadState(y.failState),this.shouldParseArrowReturnType=y.node)}return!!this.match(l.arrow)||(this.shouldParseArrowReturnType=void 0,!1)}return this.shouldParseArrowReturnType=void 0,u},S.parseParenArrowList=function(n,u,d,y){var C=this.startNodeAt(n,u);return C.returnType=this.shouldParseArrowReturnType,this.shouldParseArrowReturnType=void 0,this.parseArrowExpression(C,d,!1,y)},S.parseParenAndDistinguishExpression=function(n,u){var d,y=this.start,C=this.startLoc,A=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){var k=this.maybeInArrowParameters;this.maybeInArrowParameters=!0,this.next();var L,N=this.start,W=this.startLoc,J=[],B=!0,q=!1,U=new li,Y=this.yieldPos,oe=this.awaitPos;for(this.yieldPos=0,this.awaitPos=0;this.type!==l.parenR;){if(B?B=!1:this.expect(l.comma),A&&this.afterTrailingComma(l.parenR,!0)){q=!0;break}if(this.type===l.ellipsis){L=this.start,J.push(this.parseParenItem(this.parseRestBinding())),this.type===l.comma&&this.raise(this.start,"Comma is not permitted after the rest element");break}J.push(this.parseMaybeAssign(u,U,this.parseParenItem))}var de=this.lastTokEnd,ge=this.lastTokEndLoc;if(this.expect(l.parenR),this.maybeInArrowParameters=k,n&&this.shouldParseArrow(J)&&this.eat(l.arrow))return this.checkPatternErrors(U,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=Y,this.awaitPos=oe,this.parseParenArrowList(y,C,J,u);J.length&&!q||this.unexpected(this.lastTokStart),L&&this.unexpected(L),this.checkExpressionErrors(U,!0),this.yieldPos=Y||this.yieldPos,this.awaitPos=oe||this.awaitPos,J.length>1?((d=this.startNodeAt(N,W)).expressions=J,this.finishNodeAt(d,"SequenceExpression",de,ge)):d=J[0]}else d=this.parseParenExpression();if(this.options.preserveParens){var ke=this.startNodeAt(y,C);return ke.expression=d,this.finishNode(ke,"ParenthesizedExpression")}return d},S.parseTaggedTemplateExpression=function(n,u,d,y){var C=this.startNodeAt(u,d);return C.tag=n,C.quasi=this.parseTemplate({isTagged:!0}),y&&this.raise(u,"Tagged Template Literals are not allowed in optionalChain."),this.finishNode(C,"TaggedTemplateExpression")},S.shouldParseAsyncArrow=function(){var n=this;if(!this.match(l.colon))return!this.canInsertSemicolon()&&this.eat(l.arrow);var u=this.tryParse(function(d){var y=n.tsParseTypeOrTypePredicateAnnotation(l.colon);return!n.canInsertSemicolon()&&n.match(l.arrow)||d(),y});return u.aborted?(this.shouldParseAsyncArrowReturnType=void 0,!1):u.thrown?void 0:(u.error&&this.setLookaheadState(u.failState),this.shouldParseAsyncArrowReturnType=u.node,!this.canInsertSemicolon()&&this.eat(l.arrow))},S.parseSubscriptAsyncArrow=function(n,u,d,y){var C=this.startNodeAt(n,u);return C.returnType=this.shouldParseAsyncArrowReturnType,this.shouldParseAsyncArrowReturnType=void 0,this.parseArrowExpression(C,d,!0,y)},S.parseExprList=function(n,u,d,y){for(var C=[],A=!0;!this.eat(n);){if(A)A=!1;else if(this.expect(l.comma),u&&this.afterTrailingComma(n))break;var k=void 0;d&&this.type===l.comma?k=null:this.type===l.ellipsis?(k=this.parseSpread(y),y&&this.type===l.comma&&y.trailingComma<0&&(y.trailingComma=this.start)):k=this.parseMaybeAssign(!1,y,this.parseParenItem),C.push(k)}return C},S.parseSubscript=function(n,u,d,y,C,A,k){var L=this,N=A;if(!this.hasPrecedingLineBreak()&&this.value==="!"&&this.match(l.prefix)){this.exprAllowed=!1,this.next();var W=this.startNodeAt(u,d);return W.expression=n,n=this.finishNode(W,"TSNonNullExpression")}var J=!1;if(this.match(l.questionDot)&&this.lookaheadCharCode()===60){if(y)return n;n.optional=!0,N=J=!0,this.next()}if(this.tsMatchLeftRelational()||this.match(l.bitShift)){var B,q=this.tsTryParseAndCatch(function(){if(!y&&L.atPossibleAsyncArrow(n)){var qe=L.tsTryParseGenericAsyncArrowFunction(u,d,k);if(qe)return n=qe}var St=L.tsParseTypeArgumentsInExpression();if(!St)return n;if(J&&!L.match(l.parenL))return B=L.curPosition(),n;if(m(L.type)||L.type===l.backQuote){var Wt=L.parseTaggedTemplateExpression(n,u,d,N);return Wt.typeParameters=St,Wt}if(!y&&L.eat(l.parenL)){var Gt=new li,be=L.startNodeAt(u,d);return be.callee=n,be.arguments=L.parseExprList(l.parenR,L.options.ecmaVersion>=8,!1,Gt),L.tsCheckForInvalidTypeCasts(be.arguments),be.typeParameters=St,N&&(be.optional=J),L.checkExpressionErrors(Gt,!0),n=L.finishNode(be,"CallExpression")}var Ne=L.type;if(!(L.tsMatchRightRelational()||Ne===l.bitShift||Ne!==l.parenL&&(Pe=Ne,!!Pe.startsExpr)&&!L.hasPrecedingLineBreak())){var Pe,$t=L.startNodeAt(u,d);return $t.expression=n,$t.typeParameters=St,L.finishNode($t,"TSInstantiationExpression")}});if(B&&this.unexpected(B),q)return q.type==="TSInstantiationExpression"&&(this.match(l.dot)||this.match(l.questionDot)&&this.lookaheadCharCode()!==40)&&this.raise(this.start,re.InvalidPropertyAccessAfterInstantiationExpression),n=q}var U=this.options.ecmaVersion>=11,Y=U&&this.eat(l.questionDot);y&&Y&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var oe=this.eat(l.bracketL);if(oe||Y&&this.type!==l.parenL&&this.type!==l.backQuote||this.eat(l.dot)){var de=this.startNodeAt(u,d);de.object=n,oe?(de.property=this.parseExpression(),this.expect(l.bracketR)):de.property=this.type===l.privateId&&n.type!=="Super"?this.parsePrivateIdent():this.parseIdent(this.options.allowReserved!=="never"),de.computed=!!oe,U&&(de.optional=Y),n=this.finishNode(de,"MemberExpression")}else if(!y&&this.eat(l.parenL)){var ge=this.maybeInArrowParameters;this.maybeInArrowParameters=!0;var ke=new li,Ie=this.yieldPos,ft=this.awaitPos,je=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var Tt=this.parseExprList(l.parenR,this.options.ecmaVersion>=8,!1,ke);if(C&&!Y&&this.shouldParseAsyncArrow())this.checkPatternErrors(ke,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=Ie,this.awaitPos=ft,this.awaitIdentPos=je,n=this.parseSubscriptAsyncArrow(u,d,Tt,k);else{this.checkExpressionErrors(ke,!0),this.yieldPos=Ie||this.yieldPos,this.awaitPos=ft||this.awaitPos,this.awaitIdentPos=je||this.awaitIdentPos;var nt=this.startNodeAt(u,d);nt.callee=n,nt.arguments=Tt,U&&(nt.optional=Y),n=this.finishNode(nt,"CallExpression")}this.maybeInArrowParameters=ge}else if(this.type===l.backQuote){(Y||N)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var bt=this.startNodeAt(u,d);bt.tag=n,bt.quasi=this.parseTemplate({isTagged:!0}),n=this.finishNode(bt,"TaggedTemplateExpression")}return n},S.parseGetterSetter=function(n){n.kind=n.key.name,this.parsePropertyName(n),n.value=this.parseMethod(!1);var u=n.kind==="get"?0:1,d=n.value.params[0],y=d&&this.isThisParam(d);n.value.params.length!==(u=y?u+1:u)?this.raiseRecoverable(n.value.start,n.kind==="get"?"getter should have no params":"setter should have exactly one param"):n.kind==="set"&&n.value.params[0].type==="RestElement"&&this.raiseRecoverable(n.value.params[0].start,"Setter cannot use rest params")},S.parseProperty=function(n,u){if(!n){var d=[];if(this.match(V.at))for(;this.match(V.at);)d.push(this.parseDecorator());var y=j.prototype.parseProperty.call(this,n,u);return y.type==="SpreadElement"&&d.length&&this.raise(y.start,"Decorators can't be used with SpreadElement"),d.length&&(y.decorators=d,d=[]),y}return j.prototype.parseProperty.call(this,n,u)},S.parseCatchClauseParam=function(){var n=this.parseBindingAtom(),u=n.type==="Identifier";this.enterScope(u?32:0),this.checkLValPattern(n,u?4:2);var d=this.tsTryParseTypeAnnotation();return d&&(n.typeAnnotation=d,this.resetEndLocation(n)),this.expect(l.parenR),n},S.parseClass=function(n,u){var d=this.inAbstractClass;this.inAbstractClass=!!n.abstract;try{this.next(),this.takeDecorators(n);var y=this.strict;this.strict=!0,this.parseClassId(n,u),this.parseClassSuper(n);var C=this.enterClassBody(),A=this.startNode(),k=!1;A.body=[];var L=[];for(this.expect(l.braceL);this.type!==l.braceR;)if(this.match(V.at))L.push(this.parseDecorator());else{var N=this.parseClassElement(n.superClass!==null);L.length&&(N.decorators=L,this.resetStartLocationFromNode(N,L[0]),L=[]),N&&(A.body.push(N),N.type==="MethodDefinition"&&N.kind==="constructor"&&N.value.type==="FunctionExpression"?(k&&this.raiseRecoverable(N.start,"Duplicate constructor in the same class"),k=!0,N.decorators&&N.decorators.length>0&&this.raise(N.start,"Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?")):N.key&&N.key.type==="PrivateIdentifier"&&Ol(C,N)&&this.raiseRecoverable(N.key.start,"Identifier '#"+N.key.name+"' has already been declared"))}return this.strict=y,this.next(),L.length&&this.raise(this.start,"Decorators must be attached to a class element."),n.body=this.finishNode(A,"ClassBody"),this.exitClassBody(),this.finishNode(n,u?"ClassDeclaration":"ClassExpression")}finally{this.inAbstractClass=d}},S.parseClassFunctionParams=function(){var n=this.tsTryParseTypeParameters(this.tsParseConstModifier),u=this.parseBindingList(l.parenR,!1,this.options.ecmaVersion>=8,!0);return n&&(u.typeParameters=n),u},S.parseMethod=function(n,u,d,y,C){var A=this.startNode(),k=this.yieldPos,L=this.awaitPos,N=this.awaitIdentPos;if(this.initFunction(A),this.options.ecmaVersion>=6&&(A.generator=n),this.options.ecmaVersion>=8&&(A.async=!!u),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(64|Gs(u,A.generator)|(d?128:0)),this.expect(l.parenL),A.params=this.parseClassFunctionParams(),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(A,!1,!0,!1,{isClassMethod:y}),this.yieldPos=k,this.awaitPos=L,this.awaitIdentPos=N,C&&C.abstract&&A.body){var W=C.key;this.raise(C.start,re.AbstractMethodHasImplementation({methodName:W.type!=="Identifier"||C.computed?"["+this.input.slice(W.start,W.end)+"]":W.name}))}return this.finishNode(A,"FunctionExpression")},ce.parse=function(n,u){if(u.locations===!1)throw new Error("You have to enable options.locations while using acorn-typescript");u.locations=!0;var d=new this(u,n);return r&&(d.isAmbientContext=!0),d.parse()},ce.parseExpressionAt=function(n,u,d){if(d.locations===!1)throw new Error("You have to enable options.locations while using acorn-typescript");d.locations=!0;var y=new this(d,n,u);return r&&(y.isAmbientContext=!0),y.nextToken(),y.parseExpression()},S.parseImportSpecifier=function(){if(this.ts_isContextual(V.type)){var n=this.startNode();return n.imported=this.parseModuleExportName(),this.parseTypeOnlyImportExportSpecifier(n,!0,this.importOrExportOuterKind==="type"),this.finishNode(n,"ImportSpecifier")}var u=j.prototype.parseImportSpecifier.call(this);return u.importKind="value",u},S.parseExportSpecifier=function(n){var u=this.ts_isContextual(V.type);if(!this.match(l.string)&&u){var d=this.startNode();return d.local=this.parseModuleExportName(),this.parseTypeOnlyImportExportSpecifier(d,!1,this.importOrExportOuterKind==="type"),this.finishNode(d,"ExportSpecifier"),this.checkExport(n,d.exported,d.exported.start),d}var y=j.prototype.parseExportSpecifier.call(this,n);return y.exportKind="value",y},S.parseTypeOnlyImportExportSpecifier=function(n,u,d){var y,C=u?"imported":"local",A=u?"local":"exported",k=n[C],L=!1,N=!0,W=k.start;if(this.isContextual("as")){var J=this.parseIdent();if(this.isContextual("as")){var B=this.parseIdent();ae(this.type)?(L=!0,k=J,y=u?this.parseIdent():this.parseModuleExportName(),N=!1):(y=B,N=!1)}else ae(this.type)?(N=!1,y=u?this.parseIdent():this.parseModuleExportName()):(L=!0,k=J)}else ae(this.type)&&(L=!0,u?(k=j.prototype.parseIdent.call(this,!0),this.isContextual("as")||this.checkUnreserved(k)):k=this.parseModuleExportName());L&&d&&this.raise(W,u?re.TypeModifierIsUsedInTypeImports:re.TypeModifierIsUsedInTypeExports),n[C]=k,n[A]=y,n[u?"importKind":"exportKind"]=L?"type":"value",N&&this.eatContextual("as")&&(n[A]=u?this.parseIdent():this.parseModuleExportName()),n[A]||(n[A]=this.copyNode(n[C])),u&&this.checkLValSimple(n[A],2)},S.raiseCommonCheck=function(n,u,d){return u==="Comma is not permitted after the rest element"?this.isAmbientContext&&this.match(l.comma)&&this.lookaheadCharCode()===41?void this.next():j.prototype.raise.call(this,n,u):d?j.prototype.raiseRecoverable.call(this,n,u):j.prototype.raise.call(this,n,u)},S.raiseRecoverable=function(n,u){return this.raiseCommonCheck(n,u,!0)},S.raise=function(n,u){return this.raiseCommonCheck(n,u,!0)},S.updateContext=function(n){var u=this.type;if(u==l.braceL){var d=this.curContext();d==G.tc_oTag?this.context.push(E.b_expr):d==G.tc_expr?this.context.push(E.b_tmpl):j.prototype.updateContext.call(this,n),this.exprAllowed=!0}else{if(u!==l.slash||n!==V.jsxTagStart)return j.prototype.updateContext.call(this,n);this.context.length-=2,this.context.push(G.tc_cTag),this.exprAllowed=!1}},S.jsx_parseOpeningElementAt=function(n,u){var d=this,y=this.startNodeAt(n,u),C=this.jsx_parseElementName();if(C&&(y.name=C),this.match(l.relational)||this.match(l.bitShift)){var A=this.tsTryParseAndCatch(function(){return d.tsParseTypeArgumentsInExpression()});A&&(y.typeParameters=A)}for(y.attributes=[];this.type!==l.slash&&this.type!==V.jsxTagEnd;)y.attributes.push(this.jsx_parseAttribute());return y.selfClosing=this.eat(l.slash),this.expect(V.jsxTagEnd),this.finishNode(y,C?"JSXOpeningElement":"JSXOpeningFragment")},S.enterScope=function(n){n===hi&&this.importsStack.push([]),j.prototype.enterScope.call(this,n);var u=j.prototype.currentScope.call(this);u.types=[],u.enums=[],u.constEnums=[],u.classes=[],u.exportOnlyBindings=[]},S.exitScope=function(){j.prototype.currentScope.call(this).flags===hi&&this.importsStack.pop(),j.prototype.exitScope.call(this)},S.hasImport=function(n,u){var d=this.importsStack.length;if(this.importsStack[d-1].indexOf(n)>-1)return!0;if(!u&&d>1){for(var y=0;y<d-1;y++)if(this.importsStack[y].indexOf(n)>-1)return!0}return!1},S.maybeExportDefined=function(n,u){this.inModule&&1&n.flags&&this.undefinedExports.delete(u)},S.isRedeclaredInScope=function(n,u,d){return!!(0&d)&&(2&d?n.lexical.indexOf(u)>-1||n.functions.indexOf(u)>-1||n.var.indexOf(u)>-1:3&d?n.lexical.indexOf(u)>-1||!j.prototype.treatFunctionsAsVarInScope.call(this,n)&&n.var.indexOf(u)>-1:n.lexical.indexOf(u)>-1&&!(32&n.flags&&n.lexical[0]===u)||!this.treatFunctionsAsVarInScope(n)&&n.functions.indexOf(u)>-1)},S.checkRedeclarationInScope=function(n,u,d,y){this.isRedeclaredInScope(n,u,d)&&this.raise(y,"Identifier '"+u+"' has already been declared.")},S.declareName=function(n,u,d){if(4096&u)return this.hasImport(n,!0)&&this.raise(d,"Identifier '"+n+"' has already been declared."),void this.importsStack[this.importsStack.length-1].push(n);var y=this.currentScope();if(1024&u)return this.maybeExportDefined(y,n),void y.exportOnlyBindings.push(n);j.prototype.declareName.call(this,n,u,d),0&u&&(0&u||(this.checkRedeclarationInScope(y,n,u,d),this.maybeExportDefined(y,n)),y.types.push(n)),256&u&&y.enums.push(n),512&u&&y.constEnums.push(n),128&u&&y.classes.push(n)},S.checkLocalExport=function(n){var u=n.name;if(!this.hasImport(u)){for(var d=this.scopeStack.length-1;d>=0;d--){var y=this.scopeStack[d];if(y.types.indexOf(u)>-1||y.exportOnlyBindings.indexOf(u)>-1)return}j.prototype.checkLocalExport.call(this,n)}},ue=ce,I=[{key:"acornTypeScript",get:function(){return v}}],(O=[{key:"acornTypeScript",get:function(){return v}}])&&no(ue.prototype,O),I&&no(ue,I),Object.defineProperty(ue,"prototype",{writable:!1}),ce})(p);return M}}var{stringify:Ul}=JSON;if(!String.prototype.repeat)throw new Error("String.prototype.repeat is undefined, see https://github.com/davidbonnet/astring#installation");if(!String.prototype.endsWith)throw new Error("String.prototype.endsWith is undefined, see https://github.com/davidbonnet/astring#installation");var Qi={"||":2,"??":3,"&&":4,"|":5,"^":6,"&":7,"==":8,"!=":8,"===":8,"!==":8,"<":9,">":9,"<=":9,">=":9,in:9,instanceof:9,"<<":10,">>":10,">>>":10,"+":11,"-":11,"*":12,"%":12,"/":12,"**":13},et=17,Hl={ArrayExpression:20,TaggedTemplateExpression:20,ThisExpression:20,Identifier:20,PrivateIdentifier:20,Literal:18,TemplateLiteral:20,Super:20,SequenceExpression:20,MemberExpression:19,ChainExpression:19,CallExpression:19,NewExpression:19,ArrowFunctionExpression:et,ClassExpression:et,FunctionExpression:et,ObjectExpression:et,UpdateExpression:16,UnaryExpression:15,AwaitExpression:15,BinaryExpression:14,LogicalExpression:13,ConditionalExpression:4,AssignmentExpression:3,YieldExpression:2,RestElement:1};function Ht(e,t){let{generator:s}=e;if(e.write("("),t!=null&&t.length>0){s[t[0].type](t[0],e);let{length:r}=t;for(let o=1;o<r;o++){let h=t[o];e.write(", "),s[h.type](h,e)}}e.write(")")}function bo(e,t,s,r){let o=e.expressionsPrecedence[t.type];if(o===et)return!0;let h=e.expressionsPrecedence[s.type];return o!==h?!r&&o===15&&h===14&&s.operator==="**"||o<h:o!==13&&o!==14?!1:t.operator==="**"&&s.operator==="**"?!r:o===13&&h===13&&(t.operator==="??"||s.operator==="??")?!0:r?Qi[t.operator]<=Qi[s.operator]:Qi[t.operator]<Qi[s.operator]}function Yi(e,t,s,r){let{generator:o}=e;bo(e,t,s,r)?(e.write("("),o[t.type](t,e),e.write(")")):o[t.type](t,e)}function ql(e,t,s,r){let o=t.split(`
|
|
28
|
+
`),h=o.length-1;if(e.write(o[0].trim()),h>0){e.write(r);for(let p=1;p<h;p++)e.write(s+o[p].trim()+r);e.write(s+o[h].trim())}}function De(e,t,s,r){let{length:o}=t;for(let h=0;h<o;h++){let p=t[h];e.write(s),p.type[0]==="L"?e.write("// "+p.value.trim()+`
|
|
29
|
+
`,p):(e.write("/*"),ql(e,p.value,s,r),e.write("*/"+r))}}function Wl(e){let t=e;for(;t!=null;){let{type:s}=t;if(s[0]==="C"&&s[1]==="a")return!0;if(s[0]==="M"&&s[1]==="e"&&s[2]==="m")t=t.object;else return!1}}function zs(e,t){let{generator:s}=e,{declarations:r}=t;e.write(t.kind+" ");let{length:o}=r;if(o>0){s.VariableDeclarator(r[0],e);for(let h=1;h<o;h++)e.write(", "),s.VariableDeclarator(r[h],e)}}var fo,mo,xo,yo,go,vo,Js={Program(e,t){let s=t.indent.repeat(t.indentLevel),{lineEnd:r,writeComments:o}=t;o&&e.comments!=null&&De(t,e.comments,s,r);let h=e.body,{length:p}=h;for(let g=0;g<p;g++){let v=h[g];o&&v.comments!=null&&De(t,v.comments,s,r),t.write(s),this[v.type](v,t),t.write(r)}o&&e.trailingComments!=null&&De(t,e.trailingComments,s,r)},BlockStatement:vo=function(e,t){let s=t.indent.repeat(t.indentLevel++),{lineEnd:r,writeComments:o}=t,h=s+t.indent;t.write("{");let p=e.body;if(p!=null&&p.length>0){t.write(r),o&&e.comments!=null&&De(t,e.comments,h,r);let{length:g}=p;for(let v=0;v<g;v++){let l=p[v];o&&l.comments!=null&&De(t,l.comments,h,r),t.write(h),this[l.type](l,t),t.write(r)}t.write(s)}else o&&e.comments!=null&&(t.write(r),De(t,e.comments,h,r),t.write(s));o&&e.trailingComments!=null&&De(t,e.trailingComments,h,r),t.write("}"),t.indentLevel--},ClassBody:vo,StaticBlock(e,t){t.write("static "),this.BlockStatement(e,t)},EmptyStatement(e,t){t.write(";")},ExpressionStatement(e,t){let s=t.expressionsPrecedence[e.expression.type];s===et||s===3&&e.expression.left.type[0]==="O"?(t.write("("),this[e.expression.type](e.expression,t),t.write(")")):this[e.expression.type](e.expression,t),t.write(";")},IfStatement(e,t){t.write("if ("),this[e.test.type](e.test,t),t.write(") "),this[e.consequent.type](e.consequent,t),e.alternate!=null&&(t.write(" else "),this[e.alternate.type](e.alternate,t))},LabeledStatement(e,t){this[e.label.type](e.label,t),t.write(": "),this[e.body.type](e.body,t)},BreakStatement(e,t){t.write("break"),e.label!=null&&(t.write(" "),this[e.label.type](e.label,t)),t.write(";")},ContinueStatement(e,t){t.write("continue"),e.label!=null&&(t.write(" "),this[e.label.type](e.label,t)),t.write(";")},WithStatement(e,t){t.write("with ("),this[e.object.type](e.object,t),t.write(") "),this[e.body.type](e.body,t)},SwitchStatement(e,t){let s=t.indent.repeat(t.indentLevel++),{lineEnd:r,writeComments:o}=t;t.indentLevel++;let h=s+t.indent,p=h+t.indent;t.write("switch ("),this[e.discriminant.type](e.discriminant,t),t.write(") {"+r);let{cases:g}=e,{length:v}=g;for(let l=0;l<v;l++){let T=g[l];o&&T.comments!=null&&De(t,T.comments,h,r),T.test?(t.write(h+"case "),this[T.test.type](T.test,t),t.write(":"+r)):t.write(h+"default:"+r);let{consequent:_}=T,{length:D}=_;for(let w=0;w<D;w++){let E=_[w];o&&E.comments!=null&&De(t,E.comments,p,r),t.write(p),this[E.type](E,t),t.write(r)}}t.indentLevel-=2,t.write(s+"}")},ReturnStatement(e,t){t.write("return"),e.argument&&(t.write(" "),this[e.argument.type](e.argument,t)),t.write(";")},ThrowStatement(e,t){t.write("throw "),this[e.argument.type](e.argument,t),t.write(";")},TryStatement(e,t){if(t.write("try "),this[e.block.type](e.block,t),e.handler){let{handler:s}=e;s.param==null?t.write(" catch "):(t.write(" catch ("),this[s.param.type](s.param,t),t.write(") ")),this[s.body.type](s.body,t)}e.finalizer&&(t.write(" finally "),this[e.finalizer.type](e.finalizer,t))},WhileStatement(e,t){t.write("while ("),this[e.test.type](e.test,t),t.write(") "),this[e.body.type](e.body,t)},DoWhileStatement(e,t){t.write("do "),this[e.body.type](e.body,t),t.write(" while ("),this[e.test.type](e.test,t),t.write(");")},ForStatement(e,t){if(t.write("for ("),e.init!=null){let{init:s}=e;s.type[0]==="V"?zs(t,s):this[s.type](s,t)}t.write("; "),e.test&&this[e.test.type](e.test,t),t.write("; "),e.update&&this[e.update.type](e.update,t),t.write(") "),this[e.body.type](e.body,t)},ForInStatement:fo=function(e,t){t.write(`for ${e.await?"await ":""}(`);let{left:s}=e;s.type[0]==="V"?zs(t,s):this[s.type](s,t),t.write(e.type[3]==="I"?" in ":" of "),this[e.right.type](e.right,t),t.write(") "),this[e.body.type](e.body,t)},ForOfStatement:fo,DebuggerStatement(e,t){t.write("debugger;",e)},FunctionDeclaration:mo=function(e,t){t.write((e.async?"async ":"")+(e.generator?"function* ":"function ")+(e.id?e.id.name:""),e),Ht(t,e.params),t.write(" "),this[e.body.type](e.body,t)},FunctionExpression:mo,VariableDeclaration(e,t){zs(t,e),t.write(";")},VariableDeclarator(e,t){this[e.id.type](e.id,t),e.init!=null&&(t.write(" = "),this[e.init.type](e.init,t))},ClassDeclaration(e,t){if(t.write("class "+(e.id?`${e.id.name} `:""),e),e.superClass){t.write("extends ");let{superClass:s}=e,{type:r}=s,o=t.expressionsPrecedence[r];(r[0]!=="C"||r[1]!=="l"||r[5]!=="E")&&(o===et||o<t.expressionsPrecedence.ClassExpression)?(t.write("("),this[e.superClass.type](s,t),t.write(")")):this[s.type](s,t),t.write(" ")}this.ClassBody(e.body,t)},ImportDeclaration(e,t){t.write("import ");let{specifiers:s,attributes:r}=e,{length:o}=s,h=0;if(o>0){for(;h<o;){h>0&&t.write(", ");let p=s[h],g=p.type[6];if(g==="D")t.write(p.local.name,p),h++;else if(g==="N")t.write("* as "+p.local.name,p),h++;else break}if(h<o){for(t.write("{");;){let p=s[h],{name:g}=p.imported;if(t.write(g,p),g!==p.local.name&&t.write(" as "+p.local.name),++h<o)t.write(", ");else break}t.write("}")}t.write(" from ")}if(this.Literal(e.source,t),r&&r.length>0){t.write(" with { ");for(let p=0;p<r.length;p++)this.ImportAttribute(r[p],t),p<r.length-1&&t.write(", ");t.write(" }")}t.write(";")},ImportAttribute(e,t){this.Identifier(e.key,t),t.write(": "),this.Literal(e.value,t)},ImportExpression(e,t){t.write("import("),this[e.source.type](e.source,t),t.write(")")},ExportDefaultDeclaration(e,t){t.write("export default "),this[e.declaration.type](e.declaration,t),t.expressionsPrecedence[e.declaration.type]!=null&&e.declaration.type[0]!=="F"&&t.write(";")},ExportNamedDeclaration(e,t){if(t.write("export "),e.declaration)this[e.declaration.type](e.declaration,t);else{t.write("{");let{specifiers:s}=e,{length:r}=s;if(r>0)for(let o=0;;){let h=s[o],{name:p}=h.local;if(t.write(p,h),p!==h.exported.name&&t.write(" as "+h.exported.name),++o<r)t.write(", ");else break}if(t.write("}"),e.source&&(t.write(" from "),this.Literal(e.source,t)),e.attributes&&e.attributes.length>0){t.write(" with { ");for(let o=0;o<e.attributes.length;o++)this.ImportAttribute(e.attributes[o],t),o<e.attributes.length-1&&t.write(", ");t.write(" }")}t.write(";")}},ExportAllDeclaration(e,t){if(e.exported!=null?t.write("export * as "+e.exported.name+" from "):t.write("export * from "),this.Literal(e.source,t),e.attributes&&e.attributes.length>0){t.write(" with { ");for(let s=0;s<e.attributes.length;s++)this.ImportAttribute(e.attributes[s],t),s<e.attributes.length-1&&t.write(", ");t.write(" }")}t.write(";")},MethodDefinition(e,t){e.static&&t.write("static ");let s=e.kind[0];(s==="g"||s==="s")&&t.write(e.kind+" "),e.value.async&&t.write("async "),e.value.generator&&t.write("*"),e.computed?(t.write("["),this[e.key.type](e.key,t),t.write("]")):this[e.key.type](e.key,t),Ht(t,e.value.params),t.write(" "),this[e.value.body.type](e.value.body,t)},ClassExpression(e,t){this.ClassDeclaration(e,t)},ArrowFunctionExpression(e,t){t.write(e.async?"async ":"",e);let{params:s}=e;s!=null&&(s.length===1&&s[0].type[0]==="I"?t.write(s[0].name,s[0]):Ht(t,e.params)),t.write(" => "),e.body.type[0]==="O"?(t.write("("),this.ObjectExpression(e.body,t),t.write(")")):this[e.body.type](e.body,t)},ThisExpression(e,t){t.write("this",e)},Super(e,t){t.write("super",e)},RestElement:xo=function(e,t){t.write("..."),this[e.argument.type](e.argument,t)},SpreadElement:xo,YieldExpression(e,t){t.write(e.delegate?"yield*":"yield"),e.argument&&(t.write(" "),this[e.argument.type](e.argument,t))},AwaitExpression(e,t){t.write("await ",e),Yi(t,e.argument,e)},TemplateLiteral(e,t){let{quasis:s,expressions:r}=e;t.write("`");let{length:o}=r;for(let p=0;p<o;p++){let g=r[p],v=s[p];t.write(v.value.raw,v),t.write("${"),this[g.type](g,t),t.write("}")}let h=s[s.length-1];t.write(h.value.raw,h),t.write("`")},TemplateElement(e,t){t.write(e.value.raw,e)},TaggedTemplateExpression(e,t){Yi(t,e.tag,e),this[e.quasi.type](e.quasi,t)},ArrayExpression:go=function(e,t){if(t.write("["),e.elements.length>0){let{elements:s}=e,{length:r}=s;for(let o=0;;){let h=s[o];if(h!=null&&this[h.type](h,t),++o<r)t.write(", ");else{h==null&&t.write(", ");break}}}t.write("]")},ArrayPattern:go,ObjectExpression(e,t){let s=t.indent.repeat(t.indentLevel++),{lineEnd:r,writeComments:o}=t,h=s+t.indent;if(t.write("{"),e.properties.length>0){t.write(r),o&&e.comments!=null&&De(t,e.comments,h,r);let p=","+r,{properties:g}=e,{length:v}=g;for(let l=0;;){let T=g[l];if(o&&T.comments!=null&&De(t,T.comments,h,r),t.write(h),this[T.type](T,t),++l<v)t.write(p);else break}t.write(r),o&&e.trailingComments!=null&&De(t,e.trailingComments,h,r),t.write(s+"}")}else o?e.comments!=null?(t.write(r),De(t,e.comments,h,r),e.trailingComments!=null&&De(t,e.trailingComments,h,r),t.write(s+"}")):e.trailingComments!=null?(t.write(r),De(t,e.trailingComments,h,r),t.write(s+"}")):t.write("}"):t.write("}");t.indentLevel--},Property(e,t){e.method||e.kind[0]!=="i"?this.MethodDefinition(e,t):(e.shorthand||(e.computed?(t.write("["),this[e.key.type](e.key,t),t.write("]")):this[e.key.type](e.key,t),t.write(": ")),this[e.value.type](e.value,t))},PropertyDefinition(e,t){if(e.static&&t.write("static "),e.computed&&t.write("["),this[e.key.type](e.key,t),e.computed&&t.write("]"),e.value==null){e.key.type[0]!=="F"&&t.write(";");return}t.write(" = "),this[e.value.type](e.value,t),t.write(";")},ObjectPattern(e,t){if(t.write("{"),e.properties.length>0){let{properties:s}=e,{length:r}=s;for(let o=0;this[s[o].type](s[o],t),++o<r;)t.write(", ")}t.write("}")},SequenceExpression(e,t){Ht(t,e.expressions)},UnaryExpression(e,t){if(e.prefix){let{operator:s,argument:r,argument:{type:o}}=e;t.write(s);let h=bo(t,r,e);!h&&(s.length>1||o[0]==="U"&&(o[1]==="n"||o[1]==="p")&&r.prefix&&r.operator[0]===s&&(s==="+"||s==="-"))&&t.write(" "),h?(t.write(s.length>1?" (":"("),this[o](r,t),t.write(")")):this[o](r,t)}else this[e.argument.type](e.argument,t),t.write(e.operator)},UpdateExpression(e,t){e.prefix?(t.write(e.operator),this[e.argument.type](e.argument,t)):(this[e.argument.type](e.argument,t),t.write(e.operator))},AssignmentExpression(e,t){this[e.left.type](e.left,t),t.write(" "+e.operator+" "),this[e.right.type](e.right,t)},AssignmentPattern(e,t){this[e.left.type](e.left,t),t.write(" = "),this[e.right.type](e.right,t)},BinaryExpression:yo=function(e,t){let s=e.operator==="in";s&&t.write("("),Yi(t,e.left,e,!1),t.write(" "+e.operator+" "),Yi(t,e.right,e,!0),s&&t.write(")")},LogicalExpression:yo,ConditionalExpression(e,t){let{test:s}=e,r=t.expressionsPrecedence[s.type];r===et||r<=t.expressionsPrecedence.ConditionalExpression?(t.write("("),this[s.type](s,t),t.write(")")):this[s.type](s,t),t.write(" ? "),this[e.consequent.type](e.consequent,t),t.write(" : "),this[e.alternate.type](e.alternate,t)},NewExpression(e,t){t.write("new ");let s=t.expressionsPrecedence[e.callee.type];s===et||s<t.expressionsPrecedence.CallExpression||Wl(e.callee)?(t.write("("),this[e.callee.type](e.callee,t),t.write(")")):this[e.callee.type](e.callee,t),Ht(t,e.arguments)},CallExpression(e,t){let s=t.expressionsPrecedence[e.callee.type];s===et||s<t.expressionsPrecedence.CallExpression?(t.write("("),this[e.callee.type](e.callee,t),t.write(")")):this[e.callee.type](e.callee,t),e.optional&&t.write("?."),Ht(t,e.arguments)},ChainExpression(e,t){this[e.expression.type](e.expression,t)},MemberExpression(e,t){let s=t.expressionsPrecedence[e.object.type];s===et||s<t.expressionsPrecedence.MemberExpression?(t.write("("),this[e.object.type](e.object,t),t.write(")")):this[e.object.type](e.object,t),e.computed?(e.optional&&t.write("?."),t.write("["),this[e.property.type](e.property,t),t.write("]")):(e.optional?t.write("?."):t.write("."),this[e.property.type](e.property,t))},MetaProperty(e,t){t.write(e.meta.name+"."+e.property.name,e)},Identifier(e,t){t.write(e.name,e)},PrivateIdentifier(e,t){t.write(`#${e.name}`,e)},Literal(e,t){e.raw!=null?t.write(e.raw,e):e.regex!=null?this.RegExpLiteral(e,t):e.bigint!=null?t.write(e.bigint+"n",e):t.write(Ul(e.value),e)},RegExpLiteral(e,t){let{regex:s}=e;t.write(`/${s.pattern}/${s.flags}`,e)}},Gl={};var Xs=class{constructor(t){let s=t??Gl;this.output="",s.output!=null?(this.output=s.output,this.write=this.writeToStream):this.output="",this.generator=s.generator!=null?s.generator:Js,this.expressionsPrecedence=s.expressionsPrecedence!=null?s.expressionsPrecedence:Hl,this.indent=s.indent!=null?s.indent:" ",this.lineEnd=s.lineEnd!=null?s.lineEnd:`
|
|
30
|
+
`,this.indentLevel=s.startingIndentLevel!=null?s.startingIndentLevel:0,this.writeComments=s.comments?s.comments:!1,s.sourceMap!=null&&(this.write=s.output==null?this.writeAndMap:this.writeToStreamAndMap,this.sourceMap=s.sourceMap,this.line=1,this.column=0,this.lineEndSize=this.lineEnd.split(`
|
|
31
|
+
`).length-1,this.mapping={original:null,generated:this,name:void 0,source:s.sourceMap.file||s.sourceMap._file})}write(t){this.output+=t}writeToStream(t){this.output.write(t)}writeAndMap(t,s){this.output+=t,this.map(t,s)}writeToStreamAndMap(t,s){this.output.write(t),this.map(t,s)}map(t,s){if(s!=null){let{type:h}=s;if(h[0]==="L"&&h[2]==="n"){this.column=0,this.line++;return}if(s.loc!=null){let{mapping:p}=this;p.original=s.loc.start,p.name=s.name,this.sourceMap.addMapping(p)}if(h[0]==="T"&&h[8]==="E"||h[0]==="L"&&h[1]==="i"&&typeof s.value=="string"){let{length:p}=t,{column:g,line:v}=this;for(let l=0;l<p;l++)t[l]===`
|
|
32
|
+
`?(g=0,v++):g++;this.column=g,this.line=v;return}}let{length:r}=t,{lineEnd:o}=this;r>0&&(this.lineEndSize>0&&(o.length===1?t[r-1]===o:t.endsWith(o))?(this.line+=this.lineEndSize,this.column=0):this.column+=r)}toString(){return this.output}};function So(e,t){let s=new Xs(t);return s.generator[e.type](e,s),s.output}var fi=class{constructor(){this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.context={skip:()=>this.should_skip=!0,remove:()=>this.should_remove=!0,replace:t=>this.replacement=t}}replace(t,s,r,o){t&&s&&(r!=null?t[s][r]=o:t[s]=o)}remove(t,s,r){t&&s&&(r!=null?t[s].splice(r,1):delete t[s])}};var Zi=class extends fi{constructor(t,s){super(),this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.context={skip:()=>this.should_skip=!0,remove:()=>this.should_remove=!0,replace:r=>this.replacement=r},this.enter=t,this.leave=s}visit(t,s,r,o){if(t){if(this.enter){let p=this.should_skip,g=this.should_remove,v=this.replacement;this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.enter.call(this.context,t,s,r,o),this.replacement&&(t=this.replacement,this.replace(s,r,o,t)),this.should_remove&&this.remove(s,r,o);let l=this.should_skip,T=this.should_remove;if(this.should_skip=p,this.should_remove=g,this.replacement=v,l)return t;if(T)return null}let h;for(h in t){let p=t[h];if(p&&typeof p=="object")if(Array.isArray(p)){let g=p;for(let v=0;v<g.length;v+=1){let l=g[v];Co(l)&&(this.visit(l,t,h,v)||v--)}}else Co(p)&&this.visit(p,t,h,null)}if(this.leave){let p=this.replacement,g=this.should_remove;this.replacement=null,this.should_remove=!1,this.leave.call(this.context,t,s,r,o),this.replacement&&(t=this.replacement,this.replace(s,r,o,t)),this.should_remove&&this.remove(s,r,o);let v=this.should_remove;if(this.replacement=p,this.should_remove=g,v)return null}}return t}};function Co(e){return e!==null&&typeof e=="object"&&"type"in e&&typeof e.type=="string"}function wo(e,{enter:t,leave:s}){return new Zi(t,s).visit(e,null)}var $l=Ee.extend(Ks(),(0,Ao.default)()),ko=Ee.extend(Ks());function Kl(e){return/\.[jt]sx$/.test(e)?$l:ko}var zl={...Js,JSXElement(e,t){this[e.openingElement.type](e.openingElement,t);for(let s of e.children)this[s.type](s,t);e.closingElement&&this[e.closingElement.type](e.closingElement,t)},JSXFragment(e,t){t.write("<>");for(let s of e.children)this[s.type](s,t);t.write("</>")},JSXOpeningElement(e,t){t.write("<"),this[e.name.type](e.name,t);for(let s of e.attributes)t.write(" "),this[s.type](s,t);t.write(e.selfClosing?" />":">")},JSXClosingElement(e,t){t.write("</"),this[e.name.type](e.name,t),t.write(">")},JSXIdentifier(e,t){t.write(e.name)},JSXMemberExpression(e,t){this[e.object.type](e.object,t),t.write("."),this[e.property.type](e.property,t)},JSXNamespacedName(e,t){this[e.namespace.type](e.namespace,t),t.write(":"),this[e.name.type](e.name,t)},JSXAttribute(e,t){this[e.name.type](e.name,t),e.value!==null&&(t.write("="),this[e.value.type](e.value,t))},JSXSpreadAttribute(e,t){t.write("{..."),this[e.argument.type](e.argument,t),t.write("}")},JSXExpressionContainer(e,t){t.write("{"),e.expression.type!=="JSXEmptyExpression"&&this[e.expression.type](e.expression,t),t.write("}")},JSXEmptyExpression(e,t){},JSXText(e,t){t.write(e.value)},JSXOpeningFragment(e,t){t.write("<>")},JSXClosingFragment(e,t){t.write("</>")},TSTypeAnnotation(e,t){},TSTypeParameterDeclaration(e,t){},TSTypeParameterInstantiation(e,t){},TSInterfaceDeclaration(e,t){},TSTypeAliasDeclaration(e,t){},TSEnumDeclaration(e,t){},TSModuleDeclaration(e,t){},TSImportEqualsDeclaration(e,t){},TSExportAssignment(e,t){},TSNamespaceExportDeclaration(e,t){},TSAsExpression(e,t){this[e.expression.type](e.expression,t)},TSSatisfiesExpression(e,t){this[e.expression.type](e.expression,t)},TSNonNullExpression(e,t){this[e.expression.type](e.expression,t)},TSTypeAssertion(e,t){this[e.expression.type](e.expression,t)},TSInstantiationExpression(e,t){this[e.expression.type](e.expression,t)},TSParameterProperty(e,t){this[e.parameter.type](e.parameter,t)}};function Qs(e,t,s){let r=s||process.cwd();return`${e.startsWith(r)?e.slice(r.length+1):e}:${t.line}:${t.column+1}`}function _o(e){return/^[A-Z]/.test(e)}function Xl(e){let t=e.callee;if(t.type==="Identifier")return["jsx","jsxs","jsxDEV","_jsx","_jsxs","_jsxDEV","createElement"].includes(t.name);if(t.type==="MemberExpression"){let s=t.object,r=t.property;if(s.type==="Identifier"&&s.name==="React"&&r.type==="Identifier"&&r.name==="createElement")return!0}return!1}function Jl(e){if(!e)return!1;if(e.type==="ArrowFunctionExpression"||e.type==="FunctionExpression")return!0;if(e.type!=="CallExpression")return!1;let t=e.callee;if(t.type==="Identifier")return["memo","forwardRef"].includes(t.name);if(t.type==="MemberExpression"){let s=t.object,r=t.property;if(s.type==="Identifier"&&s.name==="React"&&r.type==="Identifier")return["memo","forwardRef"].includes(r.name)}return!1}function Eo(e,t){return{type:"ExpressionStatement",expression:{type:"AssignmentExpression",operator:"=",left:{type:"MemberExpression",object:{type:"Identifier",name:e},property:{type:"Identifier",name:Ct},computed:!1},right:{type:"Literal",value:t}}}}function Ql(){let e=`
|
|
28
33
|
function _markReactElementSource(element, source) {
|
|
29
|
-
const registryKey = Symbol.for("${
|
|
34
|
+
const registryKey = Symbol.for("${Ci}");
|
|
30
35
|
let registry = globalThis[registryKey];
|
|
31
36
|
if (!(registry instanceof WeakMap)) {
|
|
32
37
|
registry = globalThis[registryKey] = new WeakMap();
|
|
@@ -36,9 +41,9 @@ function _markReactElementSource(element, source) {
|
|
|
36
41
|
}
|
|
37
42
|
return element;
|
|
38
43
|
}
|
|
39
|
-
`;return
|
|
44
|
+
`;return ko.parse(e,{ecmaVersion:"latest",sourceType:"module"}).body[0]}function Yl(e,t){return{type:"CallExpression",callee:{type:"Identifier",name:"_markReactElementSource"},arguments:[e,{type:"Literal",value:t}],optional:!1}}function To(e,t){let{filename:s,projectRoot:r=process.cwd(),injectJsxSource:o=!0,injectComponentSource:h=!0}=t,p;try{p=Kl(s).parse(e,{ecmaVersion:"latest",sourceType:"module",locations:!0})}catch{return null}let g=!1,v=!1,l=new Set,T=[];if(wo(p,{enter(_,D){if(o&&_.type==="CallExpression"&&Xl(_)){let w=_.loc;w&&(this.replace(Yl(_,Qs(s,w.start,r))),v=!0,g=!0)}if(h&&_.type==="FunctionDeclaration"){let w=_.id?.name;w&&_o(w)&&!l.has(w)&&_.loc&&(T.push({node:_,parent:D,assignment:Eo(w,Qs(s,_.loc.start,r))}),l.add(w),g=!0)}if(h&&_.type==="VariableDeclarator"){let w=_.id;if(w.type==="Identifier"&&_o(w.name)&&!l.has(w.name)){let E=_.init;if(E&&Jl(E)){let F=_.loc||E.loc;F&&(T.push({node:_,parent:D,assignment:Eo(w.name,Qs(s,F.start,r))}),l.add(w.name),g=!0)}}}}}),!g)return null;if(v){let _=Ql();p.body.some(w=>w.type==="FunctionDeclaration"&&w.id?.name==="_markReactElementSource")||p.body.unshift(_)}for(let{node:_,parent:D,assignment:w}of T.reverse())if(D?.type==="Program"){let E=p.body.indexOf(_);E!==-1&&p.body.splice(E+1,0,w)}else if(D?.type==="ExportNamedDeclaration"){let E=p.body.find(F=>F.type==="ExportNamedDeclaration"&&F.declaration===D);E&&p.body.splice(p.body.indexOf(E)+1,0,w)}else D?.type==="ExportDefaultDeclaration"&&p.body.splice(p.body.indexOf(D)+1,0,w);return{code:So(p,{generator:zl})}}var Ys="virtual:react-code-locator/client",Po=`\0${Ys}`;function Zl(e={}){let t=JSON.stringify(e);return{name:"react-code-locator-client-injector",apply:"serve",resolveId(s){return s===Ys?Po:null},load(s){return s!==Po?null:`
|
|
40
45
|
import { enableReactComponentJump } from "react-code-locator/client";
|
|
41
46
|
|
|
42
|
-
enableReactComponentJump(${
|
|
43
|
-
`},transformIndexHtml(){return[{tag:"script",attrs:{type:"module",src:`/@id/__x00__${
|
|
47
|
+
enableReactComponentJump(${t});
|
|
48
|
+
`},transformIndexHtml(){return[{tag:"script",attrs:{type:"module",src:`/@id/__x00__${Ys}`},injectTo:"head"}]}}}function Io(e={}){let{command:t="serve",locator:s={},injectClient:r=!0}=e;return[t==="serve"&&r?Zl(s):null].filter(Boolean)}var ep=/\.([jt]sx)$/,tp=/node_modules/;function ip(e,t,s){let r=Array.isArray(t)?t:[t];return(Array.isArray(s)?s:[s]).some(h=>h.test(e))?!1:r.some(h=>h.test(e))}var qt=ha((e={})=>{let{include:t=ep,exclude:s=tp,projectRoot:r=process.cwd(),injectComponentSource:o=!0,injectJsxSource:h=!0}=e;return{name:"react-code-locator",transform(p,g){return process.env.NODE_ENV!=="development"||!ip(g,t,s)?null:To(p,{filename:g,projectRoot:r,injectComponentSource:o,injectJsxSource:h})}}}),No=qt;function Lo(e){let{injectClient:t=!0,locator:s,...r}=e??{};return[qt.vite(r),...Io({injectClient:t,locator:s})].filter(Boolean)}var Ro=qt.webpack,Oo=qt.rollup,Mo=qt.esbuild,Vo=qt.rspack;0&&(module.exports={enableReactComponentJump,esbuildPlugin,locateComponentSource,rollupPlugin,rspackPlugin,vitePlugin,webpackPlugin});
|
|
44
49
|
//# sourceMappingURL=index.cjs.map
|