react-code-locator 0.2.3 → 0.2.5
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/esbuild.cjs +14 -26
- package/dist/esbuild.cjs.map +1 -1
- package/dist/esbuild.js +14 -26
- package/dist/esbuild.js.map +1 -1
- package/dist/index.cjs +19 -31
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +19 -31
- package/dist/index.js.map +1 -1
- package/dist/swc.cjs +15 -27
- package/dist/swc.cjs.map +1 -1
- package/dist/swc.js +15 -27
- package/dist/swc.js.map +1 -1
- package/dist/unplugin.cjs +20 -32
- package/dist/unplugin.cjs.map +1 -1
- package/dist/unplugin.js +20 -32
- package/dist/unplugin.js.map +1 -1
- package/dist/webpack.cjs +19 -31
- package/dist/webpack.cjs.map +1 -1
- package/dist/webpack.js +19 -31
- package/dist/webpack.js.map +1 -1
- package/package.json +1 -1
package/dist/swc.js
CHANGED
|
@@ -1,40 +1,28 @@
|
|
|
1
|
-
var na=Object.create;var xi=Object.defineProperty;var oa=Object.getOwnPropertyDescriptor;var ua=Object.getOwnPropertyNames;var ha=Object.getPrototypeOf,ca=Object.prototype.hasOwnProperty;var yi=(e,i)=>()=>(i||e((i={exports:{}}).exports,i),i.exports),pa=(e,i)=>{for(var a in i)xi(e,a,{get:i[a],enumerable:!0})},la=(e,i,a,o)=>{if(i&&typeof i=="object"||typeof i=="function")for(let h of ua(i))!ca.call(e,h)&&h!==a&&xi(e,h,{get:()=>i[h],enumerable:!(o=oa(i,h))||o.enumerable});return e};var fa=(e,i,a)=>(a=e!=null?na(ha(e)):{},la(i||!e||!e.__esModule?xi(a,"default",{value:e,enumerable:!0}):a,e));var ir=yi((Tn,tr)=>{"use strict";tr.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 Ni=yi((ni,sr)=>{"use strict";(function(e,i){typeof ni=="object"&&typeof sr<"u"?i(ni):typeof define=="function"&&define.amd?define(["exports"],i):(e=typeof globalThis<"u"?globalThis:e||self,i(e.acorn={}))})(ni,(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"},v="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",k={5:v,"5module":v+" export import",6:v+" const class extends export import super"},_=/^in(stanceof)?$/,l=new RegExp("["+h+"]"),B=new RegExp("["+h+o+"]");function Q(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 z(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:Q(t,a)}function I(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&&B.test(String.fromCharCode(t)):r===!1?!1:Q(t,a)||Q(t,i)}var P=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 D(t,r){return new P(t,{beforeExpr:!0,binop:r})}var N={beforeExpr:!0},ee={startsExpr:!0},Ne={};function Y(t,r){return r===void 0&&(r={}),r.keyword=t,Ne[t]=new P(t,r)}var d={num:new P("num",ee),regexp:new P("regexp",ee),string:new P("string",ee),name:new P("name",ee),privateId:new P("privateId",ee),eof:new P("eof"),bracketL:new P("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new P("]"),braceL:new P("{",{beforeExpr:!0,startsExpr:!0}),braceR:new P("}"),parenL:new P("(",{beforeExpr:!0,startsExpr:!0}),parenR:new P(")"),comma:new P(",",N),semi:new P(";",N),colon:new P(":",N),dot:new P("."),question:new P("?",N),questionDot:new P("?."),arrow:new P("=>",N),template:new P("template"),invalidTemplate:new P("invalidTemplate"),ellipsis:new P("...",N),backQuote:new P("`",ee),dollarBraceL:new P("${",{beforeExpr:!0,startsExpr:!0}),eq:new P("=",{beforeExpr:!0,isAssign:!0}),assign:new P("_=",{beforeExpr:!0,isAssign:!0}),incDec:new P("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new P("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:D("||",1),logicalAND:D("&&",2),bitwiseOR:D("|",3),bitwiseXOR:D("^",4),bitwiseAND:D("&",5),equality:D("==/!=/===/!==",6),relational:D("</>/<=/>=",7),bitShift:D("<</>>/>>>",8),plusMin:new P("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:D("%",10),star:D("*",10),slash:D("/",10),starstar:new P("**",{beforeExpr:!0}),coalesce:D("??",1),_break:Y("break"),_case:Y("case",N),_catch:Y("catch"),_continue:Y("continue"),_debugger:Y("debugger"),_default:Y("default",N),_do:Y("do",{isLoop:!0,beforeExpr:!0}),_else:Y("else",N),_finally:Y("finally"),_for:Y("for",{isLoop:!0}),_function:Y("function",ee),_if:Y("if"),_return:Y("return",N),_switch:Y("switch"),_throw:Y("throw",N),_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",N),_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 Oe(t){return t===10||t===13||t===8232||t===8233}function jt(t,r,u){u===void 0&&(u=t.length);for(var c=r;c<u;c++){var y=t.charCodeAt(c);if(Oe(y))return c<u-1&&y===13&&t.charCodeAt(c+1)===10?c+2:c+1}return-1}var Ct=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,xe=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,V=Object.prototype,be=V.hasOwnProperty,ge=V.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 S(t,r){for(var u=1,c=0;;){var y=jt(t,c,r);if(y<0)return new m(u,r-c);++u,c=y}}var w={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},E=!1;function T(t){var r={};for(var u in w)r[u]=t&&oe(t,u)?t[u]:w[u];if(r.ecmaVersion==="latest"?r.ecmaVersion=1e8:r.ecmaVersion==null?(!E&&typeof console=="object"&&console.warn&&(E=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
|
|
2
|
-
Defaulting to 2020, but this will stop working in the future.`)),r.ecmaVersion=11):r.ecmaVersion>=2015&&(r.ecmaVersion-=2009),r.allowReserved==null&&(r.allowReserved=r.ecmaVersion<5),(!t||t.allowHashBang==null)&&(r.allowHashBang=r.ecmaVersion>=14),te(r.onToken)){var c=r.onToken;r.onToken=function(y){return c.push(y)}}if(te(r.onComment)&&(r.onComment=R(r,r.onComment)),r.sourceType==="commonjs"&&r.allowAwaitOutsideFunction)throw new Error("Cannot use allowAwaitOutsideFunction with sourceType: commonjs");return r}function R(t,r){return function(u,c,y,C,A,
|
|
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:F),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&M)>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&M)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction},we.allowReturn.get=function(){return!!(this.inFunction||this.options.allowReturnOutsideFunction&&this.currentVarScope().flags&F)},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&F)},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,y=0;y<r.length;y++)c=r[y](c);return c},ae.parse=function(r,u){return new this(u,r).parse()},ae.parseExpressionAt=function(r,u,c){var y=new this(c,r,u);return y.nextToken(),y.parseExpression()},ae.tokenizer=function(r,u){return new this(u,r)},Object.defineProperties(ae.prototype,we);var ye=ae.prototype,At=/^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;ye.strictDirective=function(t){if(this.options.ecmaVersion<5)return!1;for(;;){xe.lastIndex=t,t+=xe.exec(this.input)[0].length;var r=At.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,y=this.input.charAt(c);return y===";"||y==="}"||ve.test(u[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(y)||y==="!"&&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 Ut=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 q=ae.prototype;q.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,y=Object.keys(this.undefinedExports);c<y.length;c+=1){var C=y[c];this.raiseRecoverable(this.undefinedExports[C].start,"Export '"+C+"' 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 li={kind:"loop"},Lr={kind:"switch"};q.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(z(c)){var y=u;do u+=c<=65535?1:2;while(I(c=this.fullCharCodeAt(u)));if(c===92)return!0;var C=this.input.slice(y,u);if(!_.test(C))return!0}return!1},q.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||!(I(u=this.fullCharCodeAt(r+8))||u===92))},q.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 y=c+5,C;if(this.input.slice(c,y)!=="using"||y===this.input.length||I(C=this.fullCharCodeAt(y))||C===92)return!1;xe.lastIndex=y;var A=xe.exec(this.input);if(c=y+A[0].length,A&&ve.test(this.input.slice(y,c)))return!1}var L=this.fullCharCodeAt(c);if(!z(L)&&L!==92)return!1;var O=c;do c+=L<=65535?1:2;while(I(L=this.fullCharCodeAt(c)));if(L===92)return!0;var K=this.input.slice(O,c);return!(_.test(K)||r&&K==="of")},q.isAwaitUsing=function(t){return this.isUsingKeyword(!0,t)},q.isUsing=function(t){return this.isUsingKeyword(!1,t)},q.parseStatement=function(t,r,u){var c=this.type,y=this.startNode(),C;switch(this.isLet(t)&&(c=d._var,C="let"),c){case d._break:case d._continue:return this.parseBreakContinueStatement(y,c.keyword);case d._debugger:return this.parseDebuggerStatement(y);case d._do:return this.parseDoStatement(y);case d._for:return this.parseForStatement(y);case d._function:return t&&(this.strict||t!=="if"&&t!=="label")&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(y,!1,!t);case d._class:return t&&this.unexpected(),this.parseClass(y,!0);case d._if:return this.parseIfStatement(y);case d._return:return this.parseReturnStatement(y);case d._switch:return this.parseSwitchStatement(y);case d._throw:return this.parseThrowStatement(y);case d._try:return this.parseTryStatement(y);case d._const:case d._var:return C=C||this.value,t&&C!=="var"&&this.unexpected(),this.parseVarStatement(y,C);case d._while:return this.parseWhileStatement(y);case d._with:return this.parseWithStatement(y);case d.braceL:return this.parseBlock(!0,y);case d.semi:return this.parseEmptyStatement(y);case d._export:case d._import:if(this.options.ecmaVersion>10&&c===d._import){xe.lastIndex=this.pos;var A=xe.exec(this.input),L=this.pos+A[0].length,O=this.input.charCodeAt(L);if(O===40||O===46)return this.parseExpressionStatement(y,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(y):this.parseExport(y,u);default:if(this.isAsyncFunction())return t&&this.unexpected(),this.next(),this.parseFunctionStatement(y,!0,!t);var K=this.isAwaitUsing(!1)?"await using":this.isUsing(!1)?"using":null;if(K)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"),K==="await using"&&(this.canAwait||this.raise(this.start,"Await using cannot appear outside of async function"),this.next()),this.next(),this.parseVar(y,!1,K),this.semicolon(),this.finishNode(y,"VariableDeclaration");var $=this.value,le=this.parseExpression();return c===d.name&&le.type==="Identifier"&&this.eat(d.colon)?this.parseLabeledStatement(y,$,le,t):this.parseExpressionStatement(y,le)}},q.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 y=this.labels[c];if((t.label==null||y.name===t.label.name)&&(y.kind!=null&&(u||y.kind==="loop")||t.label&&u))break}return c===this.labels.length&&this.raise(t.start,"Unsyntactic "+r),this.finishNode(t,u?"BreakStatement":"ContinueStatement")},q.parseDebuggerStatement=function(t){return this.next(),this.semicolon(),this.finishNode(t,"DebuggerStatement")},q.parseDoStatement=function(t){return this.next(),this.labels.push(li),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")},q.parseForStatement=function(t){this.next();var r=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(li),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(),y=u?"let":this.value;return this.next(),this.parseVar(c,!0,y),this.finishNode(c,"VariableDeclaration"),this.parseForAfterInit(t,c,r)}var C=this.isContextual("let"),A=!1,L=this.isUsing(!0)?"using":this.isAwaitUsing(!0)?"await using":null;if(L){var O=this.startNode();return this.next(),L==="await using"&&(this.canAwait||this.raise(this.start,"Await using cannot appear outside of async function"),this.next()),this.parseVar(O,!0,L),this.finishNode(O,"VariableDeclaration"),this.parseForAfterInit(t,O,r)}var K=this.containsEsc,$=new Ut,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&&!K&&ke.type==="Identifier"&&ke.name==="async"?this.unexpected():this.options.ecmaVersion>=9&&(t.await=!1)),C&&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))},q.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))},q.parseFunctionStatement=function(t,r,u){return this.next(),this.parseFunction(t,Et|(u?0:fi),!1,r)},q.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")},q.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")},q.parseSwitchStatement=function(t){this.next(),t.discriminant=this.parseParenExpression(),t.cases=[],this.expect(d.braceL),this.labels.push(Lr),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")},q.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 Rr=[];q.parseCatchClauseParam=function(){var t=this.parseBindingAtom(),r=t.type==="Identifier";return this.enterScope(r?ce:0),this.checkLValPattern(t,r?wt:De),this.expect(d.parenR),t},q.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")},q.parseVarStatement=function(t,r,u){return this.next(),this.parseVar(t,!1,r,u),this.semicolon(),this.finishNode(t,"VariableDeclaration")},q.parseWhileStatement=function(t){return this.next(),t.test=this.parseParenExpression(),this.labels.push(li),t.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(t,"WhileStatement")},q.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")},q.parseEmptyStatement=function(t){return this.next(),this.finishNode(t,"EmptyStatement")},q.parseLabeledStatement=function(t,r,u,c){for(var y=0,C=this.labels;y<C.length;y+=1){var A=C[y];A.name===r&&this.raise(u.start,"Label '"+r+"' is already declared")}for(var L=this.type.isLoop?"loop":this.type===d._switch?"switch":null,O=this.labels.length-1;O>=0;O--){var K=this.labels[O];if(K.statementStart===t.start)K.statementStart=this.start,K.kind=L;else break}return this.labels.push({name:r,kind:L,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")},q.parseExpressionStatement=function(t,r){return t.expression=r,this.semicolon(),this.finishNode(t,"ExpressionStatement")},q.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")},q.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")},q.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")},q.parseVar=function(t,r,u,c){for(t.declarations=[],t.kind=u;;){var y=this.startNode();if(this.parseVarId(y,u),this.eat(d.eq)?y.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&&y.id.type!=="Identifier"&&!(r&&(this.type===d._in||this.isContextual("of")))?this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):y.init=null,t.declarations.push(this.finishNode(y,"VariableDeclarator")),!this.eat(d.comma))break}return t},q.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 Et=1,fi=2,Ui=4;q.parseFunction=function(t,r,u,c,y){this.initFunction(t),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!c)&&(this.type===d.star&&r&fi&&this.unexpected(),t.generator=this.eat(d.star)),this.options.ecmaVersion>=8&&(t.async=!!c),r&Et&&(t.id=r&Ui&&this.type!==d.name?null:this.parseIdent(),t.id&&!(r&fi)&&this.checkLValSimple(t.id,this.strict||t.generator||t.async?this.treatFunctionsAsVar?nt:De:ot));var C=this.yieldPos,A=this.awaitPos,L=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(ft(t.async,t.generator)),r&Et||(t.id=this.type===d.name?this.parseIdent():null),this.parseFunctionParams(t),this.parseFunctionBody(t,u,!1,y),this.yieldPos=C,this.awaitPos=A,this.awaitIdentPos=L,this.finishNode(t,r&Et?"FunctionDeclaration":"FunctionExpression")},q.parseFunctionParams=function(t){this.expect(d.parenL),t.params=this.parseBindingList(d.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},q.parseClass=function(t,r){this.next();var u=this.strict;this.strict=!0,this.parseClassId(t,r),this.parseClassSuper(t);var c=this.enterClassBody(),y=this.startNode(),C=!1;for(y.body=[],this.expect(d.braceL);this.type!==d.braceR;){var A=this.parseClassElement(t.superClass!==null);A&&(y.body.push(A),A.type==="MethodDefinition"&&A.kind==="constructor"?(C&&this.raiseRecoverable(A.start,"Duplicate constructor in the same class"),C=!0):A.key&&A.key.type==="PrivateIdentifier"&&Vr(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(y,"ClassBody"),this.exitClassBody(),this.finishNode(t,r?"ClassDeclaration":"ClassExpression")},q.parseClassElement=function(t){if(this.eat(d.semi))return null;var r=this.options.ecmaVersion,u=this.startNode(),c="",y=!1,C=!1,A="method",L=!1;if(this.eatContextual("static")){if(r>=13&&this.eat(d.braceL))return this.parseClassStaticBlock(u),u;this.isClassElementNameStart()||this.type===d.star?L=!0:c="static"}if(u.static=L,!c&&r>=8&&this.eatContextual("async")&&((this.isClassElementNameStart()||this.type===d.star)&&!this.canInsertSemicolon()?C=!0:c="async"),!c&&(r>=9||!C)&&this.eat(d.star)&&(y=!0),!c&&!C&&!y){var O=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?A=O:c=O)}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"||y||C){var K=!u.static&&qt(u,"constructor"),$=K&&t;K&&A!=="method"&&this.raise(u.key.start,"Constructor can't have get/set modifier"),u.kind=K?"constructor":A,this.parseClassMethod(u,y,C,$)}else this.parseClassField(u);return u},q.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},q.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)},q.parseClassMethod=function(t,r,u,c){var y=t.key;t.kind==="constructor"?(r&&this.raise(y.start,"Constructor can't be a generator"),u&&this.raise(y.start,"Constructor can't be an async method")):t.static&&qt(t,"prototype")&&this.raise(y.start,"Classes may not have a static property named prototype");var C=t.value=this.parseMethod(r,u,c);return t.kind==="get"&&C.params.length!==0&&this.raiseRecoverable(C.start,"getter should have no params"),t.kind==="set"&&C.params.length!==1&&this.raiseRecoverable(C.start,"setter should have exactly one param"),t.kind==="set"&&C.params[0].type==="RestElement"&&this.raiseRecoverable(C.params[0].start,"Setter cannot use rest params"),this.finishNode(t,"MethodDefinition")},q.parseClassField=function(t){return qt(t,"constructor")?this.raise(t.key.start,"Classes can't have a field named 'constructor'"):t.static&&qt(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")},q.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")},q.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)},q.parseClassSuper=function(t){t.superClass=this.eat(d._extends)?this.parseExprSubscripts(null,!1):null},q.enterClassBody=function(){var t={declared:Object.create(null),used:[]};return this.privateNameStack.push(t),t.declared},q.exitClassBody=function(){var t=this.privateNameStack.pop(),r=t.declared,u=t.used;if(this.options.checkPrivateFields)for(var c=this.privateNameStack.length,y=c===0?null:this.privateNameStack[c-1],C=0;C<u.length;++C){var A=u[C];oe(r,A.name)||(y?y.used.push(A):this.raiseRecoverable(A.start,"Private field '#"+A.name+"' must be declared in an enclosing class"))}};function Vr(t,r){var u=r.key.name,c=t[u],y="true";return r.type==="MethodDefinition"&&(r.kind==="get"||r.kind==="set")&&(y=(r.static?"s":"i")+r.kind),c==="iget"&&y==="iset"||c==="iset"&&y==="iget"||c==="sget"&&y==="sset"||c==="sset"&&y==="sget"?(t[u]="true",!1):c?!0:(t[u]=y,!1)}function qt(t,r){var u=t.computed,c=t.key;return!u&&(c.type==="Identifier"&&c.name===r||c.type==="Literal"&&c.value===r)}q.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")},q.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 y=c[u];this.checkUnreserved(y.local),this.checkLocalExport(y.local),y.local.type==="Literal"&&this.raise(y.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")},q.parseExportDeclaration=function(t){return this.parseStatement(null)},q.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,Et|Ui,!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}},q.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)},q.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,y=r.properties;c<y.length;c+=1){var C=y[c];this.checkPatternExport(t,C)}else if(u==="ArrayPattern")for(var A=0,L=r.elements;A<L.length;A+=1){var O=L[A];O&&this.checkPatternExport(t,O)}else u==="Property"?this.checkPatternExport(t,r.value):u==="AssignmentPattern"?this.checkPatternExport(t,r.left):u==="RestElement"&&this.checkPatternExport(t,r.argument)},q.checkVariableExport=function(t,r){if(t)for(var u=0,c=r;u<c.length;u+=1){var y=c[u];this.checkPatternExport(t,y.id)}},q.shouldParseExportStatement=function(){return this.type.keyword==="var"||this.type.keyword==="const"||this.type.keyword==="class"||this.type.keyword==="function"||this.isLet()||this.isAsyncFunction()},q.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")},q.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},q.parseImport=function(t){return this.next(),this.type===d.string?(t.specifiers=Rr,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")},q.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")},q.parseImportDefaultSpecifier=function(){var t=this.startNode();return t.local=this.parseIdent(),this.checkLValSimple(t.local,De),this.finishNode(t,"ImportDefaultSpecifier")},q.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")},q.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},q.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(),y=c.key.type==="Identifier"?c.key.name:c.key.value;oe(r,y)&&this.raiseRecoverable(c.key.start,"Duplicate attribute key '"+y+"'"),r[y]=!0,t.push(c)}return t},q.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")},q.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)},q.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)},q.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,y=t.properties;c<y.length;c+=1){var C=y[c];this.toAssignable(C,r),C.type==="RestElement"&&(C.argument.type==="ArrayPattern"||C.argument.type==="ObjectPattern")&&this.raise(C.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 y=t[c];y&&this.toAssignable(y,r)}if(u){var C=t[u-1];this.options.ecmaVersion===6&&r&&C&&C.type==="RestElement"&&C.argument.type!=="Identifier"&&this.unexpected(C.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 y=[],C=!0;!this.eat(t);)if(C?C=!1:this.expect(d.comma),r&&this.type===d.comma)y.push(null);else{if(u&&this.afterTrailingComma(t))break;if(this.type===d.ellipsis){var A=this.parseRestBinding();this.parseBindingListItem(A),y.push(A),this.type===d.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.expect(t);break}else y.push(this.parseAssignableListItem(c))}return y},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!==kt&&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,y=t.properties;c<y.length;c+=1){var C=y[c];this.checkLValInnerPattern(C,r,u)}break;case"ArrayPattern":for(var A=0,L=t.elements;A<L.length;A+=1){var O=L[A];O&&this.checkLValInnerPattern(O,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 Be=function(r,u,c,y,C){this.token=r,this.isExpr=!!u,this.preserveSpace=!!c,this.override=y,this.generator=!!C},pe={b_stat:new Be("{",!1),b_expr:new Be("{",!0),b_tmpl:new Be("${",!1),p_stat:new Be("(",!1),p_expr:new Be("(",!0),q_tmpl:new Be("`",!0,!0,function(t){return t.tryReadTemplateToken()}),f_stat:new Be("function",!1),f_expr:new Be("function",!0),f_expr_gen:new Be("function",!0,!1,null,!0),f_gen:new Be("function",!1,!1,null,!0)},dt=ae.prototype;dt.initialContext=function(){return[pe.b_stat]},dt.curContext=function(){return this.context[this.context.length-1]},dt.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},dt.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},dt.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},dt.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,y;switch(c.type){case"Identifier":y=c.name;break;case"Literal":y=String(c.value);break;default:return}var C=t.kind;if(this.options.ecmaVersion>=6){y==="__proto__"&&C==="init"&&(r.proto&&(u?u.doubleProto<0&&(u.doubleProto=c.start):this.raiseRecoverable(c.start,"Redefinition of __proto__ property")),r.proto=!0);return}y="$"+y;var A=r[y];if(A){var L;C==="init"?L=this.strict&&A.init||A.get||A.set:L=A.init||A[C],L&&this.raiseRecoverable(c.start,"Redefinition of property")}else A=r[y]={init:!1,get:!1,set:!1};A[C]=!0}},X.parseExpression=function(t,r){var u=this.start,c=this.startLoc,y=this.parseMaybeAssign(t,r);if(this.type===d.comma){var C=this.startNodeAt(u,c);for(C.expressions=[y];this.eat(d.comma);)C.expressions.push(this.parseMaybeAssign(t,r));return this.finishNode(C,"SequenceExpression")}return y},X.parseMaybeAssign=function(t,r,u){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(t);this.exprAllowed=!1}var c=!1,y=-1,C=-1,A=-1;r?(y=r.parenthesizedAssign,C=r.trailingComma,A=r.doubleProto,r.parenthesizedAssign=r.trailingComma=-1):(r=new Ut,c=!0);var L=this.start,O=this.startLoc;(this.type===d.parenL||this.type===d.name)&&(this.potentialArrowAt=this.start,this.potentialArrowInForAwait=t==="await");var K=this.parseMaybeConditional(t,r);if(u&&(K=u.call(this,K,L,O)),this.type.isAssign){var $=this.startNodeAt(L,O);return $.operator=this.value,this.type===d.eq&&(K=this.toAssignable(K,!1,r)),c||(r.parenthesizedAssign=r.trailingComma=r.doubleProto=-1),r.shorthandAssign>=K.start&&(r.shorthandAssign=-1),this.type===d.eq?this.checkLValPattern(K):this.checkLValSimple(K),$.left=K,this.next(),$.right=this.parseMaybeAssign(t),A>-1&&(r.doubleProto=A),this.finishNode($,"AssignmentExpression")}else c&&this.checkExpressionErrors(r,!0);return y>-1&&(r.parenthesizedAssign=y),C>-1&&(r.trailingComma=C),K},X.parseMaybeConditional=function(t,r){var u=this.start,c=this.startLoc,y=this.parseExprOps(t,r);if(this.checkExpressionErrors(r))return y;if(this.eat(d.question)){var C=this.startNodeAt(u,c);return C.test=y,C.consequent=this.parseMaybeAssign(),this.expect(d.colon),C.alternate=this.parseMaybeAssign(t),this.finishNode(C,"ConditionalExpression")}return y},X.parseExprOps=function(t,r){var u=this.start,c=this.startLoc,y=this.parseMaybeUnary(r,!1,!1,t);return this.checkExpressionErrors(r)||y.start===u&&y.type==="ArrowFunctionExpression"?y:this.parseExprOp(y,u,c,-1,t)},X.parseExprOp=function(t,r,u,c,y){var C=this.type.binop;if(C!=null&&(!y||this.type!==d._in)&&C>c){var A=this.type===d.logicalOR||this.type===d.logicalAND,L=this.type===d.coalesce;L&&(C=d.logicalAND.binop);var O=this.value;this.next();var K=this.start,$=this.startLoc,le=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,y),K,$,C,y),ke=this.buildBinary(r,u,t,le,O,A||L);return(A&&this.type===d.coalesce||L&&(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,y)}return t},X.buildBinary=function(t,r,u,c,y,C){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=y,A.right=c,this.finishNode(A,C?"LogicalExpression":"BinaryExpression")},X.parseMaybeUnary=function(t,r,u,c){var y=this.start,C=this.startLoc,A;if(this.isContextual("await")&&this.canAwait)A=this.parseAwait(c),r=!0;else if(this.type.prefix){var L=this.startNode(),O=this.type===d.incDec;L.operator=this.value,L.prefix=!0,this.next(),L.argument=this.parseMaybeUnary(null,!0,O,c),this.checkExpressionErrors(t,!0),O?this.checkLValSimple(L.argument):this.strict&&L.operator==="delete"&&qi(L.argument)?this.raiseRecoverable(L.start,"Deleting local variable in strict mode"):L.operator==="delete"&&di(L.argument)?this.raiseRecoverable(L.start,"Private fields can not be deleted"):r=!0,A=this.finishNode(L,O?"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 K=this.startNodeAt(y,C);K.operator=this.value,K.prefix=!1,K.argument=A,this.checkLValSimple(A),this.next(),A=this.finishNode(K,"UpdateExpression")}}if(!u&&this.eat(d.starstar))if(r)this.unexpected(this.lastTokStart);else return this.buildBinary(y,C,A,this.parseMaybeUnary(null,!1,!1,c),"**",!1);else return A};function qi(t){return t.type==="Identifier"||t.type==="ParenthesizedExpression"&&qi(t.expression)}function di(t){return t.type==="MemberExpression"&&t.property.type==="PrivateIdentifier"||t.type==="ChainExpression"&&di(t.expression)||t.type==="ParenthesizedExpression"&&di(t.expression)}X.parseExprSubscripts=function(t,r){var u=this.start,c=this.startLoc,y=this.parseExprAtom(t,r);if(y.type==="ArrowFunctionExpression"&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==")")return y;var C=this.parseSubscripts(y,u,c,!1,r);return t&&C.type==="MemberExpression"&&(t.parenthesizedAssign>=C.start&&(t.parenthesizedAssign=-1),t.parenthesizedBind>=C.start&&(t.parenthesizedBind=-1),t.trailingComma>=C.start&&(t.trailingComma=-1)),C},X.parseSubscripts=function(t,r,u,c,y){for(var C=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 L=this.parseSubscript(t,r,u,c,C,A,y);if(L.optional&&(A=!0),L===t||L.type==="ArrowFunctionExpression"){if(A){var O=this.startNodeAt(r,u);O.expression=L,L=this.finishNode(O,"ChainExpression")}return L}t=L}},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,y,C,A){var L=this.options.ecmaVersion>=11,O=L&&this.eat(d.questionDot);c&&O&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var K=this.eat(d.bracketL);if(K||O&&this.type!==d.parenL&&this.type!==d.backQuote||this.eat(d.dot)){var $=this.startNodeAt(r,u);$.object=t,K?($.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=!!K,L&&($.optional=O),t=this.finishNode($,"MemberExpression")}else if(!c&&this.eat(d.parenL)){var le=new Ut,ke=this.yieldPos,Pt=this.awaitPos,mt=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var Kt=this.parseExprList(d.parenR,this.options.ecmaVersion>=8,!1,le);if(y&&!O&&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=Pt,this.awaitIdentPos=mt,this.parseSubscriptAsyncArrow(r,u,Kt,A);this.checkExpressionErrors(le,!0),this.yieldPos=ke||this.yieldPos,this.awaitPos=Pt||this.awaitPos,this.awaitIdentPos=mt||this.awaitIdentPos;var xt=this.startNodeAt(r,u);xt.callee=t,xt.arguments=Kt,L&&(xt.optional=O),t=this.finishNode(xt,"CallExpression")}else if(this.type===d.backQuote){(O||C)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var yt=this.startNodeAt(r,u);yt.tag=t,yt.quasi=this.parseTemplate({isTagged:!0}),t=this.finishNode(yt,"TaggedTemplateExpression")}return t},X.parseExprAtom=function(t,r,u){this.type===d.slash&&this.readRegexp();var c,y=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 C=this.start,A=this.startLoc,L=this.containsEsc,O=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!L&&O.name==="async"&&!this.canInsertSemicolon()&&this.eat(d._function))return this.overrideContext(pe.f_expr),this.parseFunction(this.startNodeAt(C,A),0,!1,!0,r);if(y&&!this.canInsertSemicolon()){if(this.eat(d.arrow))return this.parseArrowExpression(this.startNodeAt(C,A),[O],!1,r);if(this.options.ecmaVersion>=8&&O.name==="async"&&this.type===d.name&&!L&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc))return O=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(d.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(C,A),[O],!0,r)}return O;case d.regexp:var K=this.value;return c=this.parseLiteral(K.value),c.regex={pattern:K.pattern,flags:K.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(y,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,y,C=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var A=this.start,L=this.startLoc,O=[],K=!0,$=!1,le=new Ut,ke=this.yieldPos,Pt=this.awaitPos,mt;for(this.yieldPos=0,this.awaitPos=0;this.type!==d.parenR;)if(K?K=!1:this.expect(d.comma),C&&this.afterTrailingComma(d.parenR,!0)){$=!0;break}else if(this.type===d.ellipsis){mt=this.start,O.push(this.parseParenItem(this.parseRestBinding())),this.type===d.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}else O.push(this.parseMaybeAssign(!1,le,this.parseParenItem));var Kt=this.lastTokEnd,xt=this.lastTokEndLoc;if(this.expect(d.parenR),t&&this.shouldParseArrow(O)&&this.eat(d.arrow))return this.checkPatternErrors(le,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=ke,this.awaitPos=Pt,this.parseParenArrowList(u,c,O,r);(!O.length||$)&&this.unexpected(this.lastTokStart),mt&&this.unexpected(mt),this.checkExpressionErrors(le,!0),this.yieldPos=ke||this.yieldPos,this.awaitPos=Pt||this.awaitPos,O.length>1?(y=this.startNodeAt(A,L),y.expressions=O,this.finishNodeAt(y,"SequenceExpression",Kt,xt)):y=O[0]}else y=this.parseParenExpression();if(this.options.preserveParens){var yt=this.startNodeAt(u,c);return yt.expression=y,this.finishNode(yt,"ParenthesizedExpression")}else return y},X.parseParenItem=function(t){return t},X.parseParenArrowList=function(t,r,u,c){return this.parseArrowExpression(this.startNodeAt(t,r),u,!1,c)};var Or=[];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,y=this.startLoc;return t.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),c,y,!0,!1),this.eat(d.parenL)?t.arguments=this.parseExprList(d.parenR,this.options.ecmaVersion>=8,!1):t.arguments=Or,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,`
|
|
1
|
+
var aa=Object.create;var xi=Object.defineProperty;var na=Object.getOwnPropertyDescriptor;var oa=Object.getOwnPropertyNames;var ua=Object.getPrototypeOf,ha=Object.prototype.hasOwnProperty;var yi=(e,i)=>()=>(i||e((i={exports:{}}).exports,i),i.exports),ca=(e,i)=>{for(var a in i)xi(e,a,{get:i[a],enumerable:!0})},pa=(e,i,a,o)=>{if(i&&typeof i=="object"||typeof i=="function")for(let h of oa(i))!ha.call(e,h)&&h!==a&&xi(e,h,{get:()=>i[h],enumerable:!(o=na(i,h))||o.enumerable});return e};var la=(e,i,a)=>(a=e!=null?aa(ua(e)):{},pa(i||!e||!e.__esModule?xi(a,"default",{value:e,enumerable:!0}):a,e));var rr=yi((En,sr)=>{"use strict";sr.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 Ni=yi((ni,ar)=>{"use strict";(function(e,i){typeof ni=="object"&&typeof ar<"u"?i(ni):typeof define=="function"&&define.amd?define(["exports"],i):(e=typeof globalThis<"u"?globalThis:e||self,i(e.acorn={}))})(ni,(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"},v="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",k={5:v,"5module":v+" export import",6:v+" const class extends export import super"},T=/^in(stanceof)?$/,l=new RegExp("["+h+"]"),D=new RegExp("["+h+o+"]");function K(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 z(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:K(t,a)}function P(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&&D.test(String.fromCharCode(t)):r===!1?!1:K(t,a)||K(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 jt(t,r,u){u===void 0&&(u=t.length);for(var c=r;c<u;c++){var y=t.charCodeAt(c);if(Ve(y))return c<u-1&&y===13&&t.charCodeAt(c+1)===10?c+2:c+1}return-1}var Ct=/[\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 S(t,r){for(var u=1,c=0;;){var y=jt(t,c,r);if(y<0)return new m(u,r-c);++u,c=y}}var w={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},E=!1;function _(t){var r={};for(var u in w)r[u]=t&&oe(t,u)?t[u]:w[u];if(r.ecmaVersion==="latest"?r.ecmaVersion=1e8:r.ecmaVersion==null?(!E&&typeof console=="object"&&console.warn&&(E=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
|
|
2
|
+
Defaulting to 2020, but this will stop working in the future.`)),r.ecmaVersion=11):r.ecmaVersion>=2015&&(r.ecmaVersion-=2009),r.allowReserved==null&&(r.allowReserved=r.ecmaVersion<5),(!t||t.allowHashBang==null)&&(r.allowHashBang=r.ecmaVersion>=14),te(r.onToken)){var c=r.onToken;r.onToken=function(y){return c.push(y)}}if(te(r.onComment)&&(r.onComment=R(r,r.onComment)),r.sourceType==="commonjs"&&r.allowAwaitOutsideFunction)throw new Error("Cannot use allowAwaitOutsideFunction with sourceType: commonjs");return r}function R(t,r){return function(u,c,y,C,A,N){var V={type:u?"Block":"Line",value:c,start:y,end:C};t.locations&&(V.loc=new b(this,A,N)),t.ranges&&(V.range=[y,C]),r.push(V)}}var B=1,G=2,M=4,he=8,ue=16,ce=32,me=64,Se=128,Ce=256,ze=512,it=1024,Le=B|G|Ce;function ft(t,r){return G|(t?M:0)|(r?he:0)}var Qe=0,nt=1,De=2,ot=3,wt=4,kt=5,ae=function(r,u,c){this.options=r=_(r),this.sourceFile=r.sourceFile,this.keywords=s(k[r.ecmaVersion>=6?6:r.sourceType==="module"?"5module":5]);var y="";r.allowReserved!==!0&&(y=x[r.ecmaVersion>=6?6:r.ecmaVersion===5?5:3],r.sourceType==="module"&&(y+=" await")),this.reservedWords=s(y);var C=(y?y+" ":"")+x.strict;this.reservedWordsStrict=s(C),this.reservedWordsStrictBind=s(C+" "+x.strictBind),this.input=String(u),this.containsEsc=!1,c?(this.pos=c,this.lineStart=this.input.lastIndexOf(`
|
|
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:B),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&M)>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&M)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction},we.allowReturn.get=function(){return!!(this.inFunction||this.options.allowReturnOutsideFunction&&this.currentVarScope().flags&B)},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&B)},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,y=0;y<r.length;y++)c=r[y](c);return c},ae.parse=function(r,u){return new this(u,r).parse()},ae.parseExpressionAt=function(r,u,c){var y=new this(c,r,u);return y.nextToken(),y.parseExpression()},ae.tokenizer=function(r,u){return new this(u,r)},Object.defineProperties(ae.prototype,we);var ye=ae.prototype,At=/^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;ye.strictDirective=function(t){if(this.options.ecmaVersion<5)return!1;for(;;){xe.lastIndex=t,t+=xe.exec(this.input)[0].length;var r=At.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,y=this.input.charAt(c);return y===";"||y==="}"||ve.test(u[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(y)||y==="!"&&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 Ut=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 q=ae.prototype;q.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,y=Object.keys(this.undefinedExports);c<y.length;c+=1){var C=y[c];this.raiseRecoverable(this.undefinedExports[C].start,"Export '"+C+"' 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 li={kind:"loop"},Nr={kind:"switch"};q.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(z(c)){var y=u;do u+=c<=65535?1:2;while(P(c=this.fullCharCodeAt(u)));if(c===92)return!0;var C=this.input.slice(y,u);if(!T.test(C))return!0}return!1},q.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||!(P(u=this.fullCharCodeAt(r+8))||u===92))},q.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 y=c+5,C;if(this.input.slice(c,y)!=="using"||y===this.input.length||P(C=this.fullCharCodeAt(y))||C===92)return!1;xe.lastIndex=y;var A=xe.exec(this.input);if(c=y+A[0].length,A&&ve.test(this.input.slice(y,c)))return!1}var N=this.fullCharCodeAt(c);if(!z(N)&&N!==92)return!1;var V=c;do c+=N<=65535?1:2;while(P(N=this.fullCharCodeAt(c)));if(N===92)return!0;var X=this.input.slice(V,c);return!(T.test(X)||r&&X==="of")},q.isAwaitUsing=function(t){return this.isUsingKeyword(!0,t)},q.isUsing=function(t){return this.isUsingKeyword(!1,t)},q.parseStatement=function(t,r,u){var c=this.type,y=this.startNode(),C;switch(this.isLet(t)&&(c=d._var,C="let"),c){case d._break:case d._continue:return this.parseBreakContinueStatement(y,c.keyword);case d._debugger:return this.parseDebuggerStatement(y);case d._do:return this.parseDoStatement(y);case d._for:return this.parseForStatement(y);case d._function:return t&&(this.strict||t!=="if"&&t!=="label")&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(y,!1,!t);case d._class:return t&&this.unexpected(),this.parseClass(y,!0);case d._if:return this.parseIfStatement(y);case d._return:return this.parseReturnStatement(y);case d._switch:return this.parseSwitchStatement(y);case d._throw:return this.parseThrowStatement(y);case d._try:return this.parseTryStatement(y);case d._const:case d._var:return C=C||this.value,t&&C!=="var"&&this.unexpected(),this.parseVarStatement(y,C);case d._while:return this.parseWhileStatement(y);case d._with:return this.parseWithStatement(y);case d.braceL:return this.parseBlock(!0,y);case d.semi:return this.parseEmptyStatement(y);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(y,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(y):this.parseExport(y,u);default:if(this.isAsyncFunction())return t&&this.unexpected(),this.next(),this.parseFunctionStatement(y,!0,!t);var X=this.isAwaitUsing(!1)?"await using":this.isUsing(!1)?"using":null;if(X)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"),X==="await using"&&(this.canAwait||this.raise(this.start,"Await using cannot appear outside of async function"),this.next()),this.next(),this.parseVar(y,!1,X),this.semicolon(),this.finishNode(y,"VariableDeclaration");var $=this.value,le=this.parseExpression();return c===d.name&&le.type==="Identifier"&&this.eat(d.colon)?this.parseLabeledStatement(y,$,le,t):this.parseExpressionStatement(y,le)}},q.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 y=this.labels[c];if((t.label==null||y.name===t.label.name)&&(y.kind!=null&&(u||y.kind==="loop")||t.label&&u))break}return c===this.labels.length&&this.raise(t.start,"Unsyntactic "+r),this.finishNode(t,u?"BreakStatement":"ContinueStatement")},q.parseDebuggerStatement=function(t){return this.next(),this.semicolon(),this.finishNode(t,"DebuggerStatement")},q.parseDoStatement=function(t){return this.next(),this.labels.push(li),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")},q.parseForStatement=function(t){this.next();var r=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(li),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(),y=u?"let":this.value;return this.next(),this.parseVar(c,!0,y),this.finishNode(c,"VariableDeclaration"),this.parseForAfterInit(t,c,r)}var C=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 X=this.containsEsc,$=new Ut,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&&!X&&ke.type==="Identifier"&&ke.name==="async"?this.unexpected():this.options.ecmaVersion>=9&&(t.await=!1)),C&&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))},q.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))},q.parseFunctionStatement=function(t,r,u){return this.next(),this.parseFunction(t,Et|(u?0:fi),!1,r)},q.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")},q.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")},q.parseSwitchStatement=function(t){this.next(),t.discriminant=this.parseParenExpression(),t.cases=[],this.expect(d.braceL),this.labels.push(Nr),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")},q.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 Lr=[];q.parseCatchClauseParam=function(){var t=this.parseBindingAtom(),r=t.type==="Identifier";return this.enterScope(r?ce:0),this.checkLValPattern(t,r?wt:De),this.expect(d.parenR),t},q.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")},q.parseVarStatement=function(t,r,u){return this.next(),this.parseVar(t,!1,r,u),this.semicolon(),this.finishNode(t,"VariableDeclaration")},q.parseWhileStatement=function(t){return this.next(),t.test=this.parseParenExpression(),this.labels.push(li),t.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(t,"WhileStatement")},q.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")},q.parseEmptyStatement=function(t){return this.next(),this.finishNode(t,"EmptyStatement")},q.parseLabeledStatement=function(t,r,u,c){for(var y=0,C=this.labels;y<C.length;y+=1){var A=C[y];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 X=this.labels[V];if(X.statementStart===t.start)X.statementStart=this.start,X.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")},q.parseExpressionStatement=function(t,r){return t.expression=r,this.semicolon(),this.finishNode(t,"ExpressionStatement")},q.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")},q.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")},q.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")},q.parseVar=function(t,r,u,c){for(t.declarations=[],t.kind=u;;){var y=this.startNode();if(this.parseVarId(y,u),this.eat(d.eq)?y.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&&y.id.type!=="Identifier"&&!(r&&(this.type===d._in||this.isContextual("of")))?this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):y.init=null,t.declarations.push(this.finishNode(y,"VariableDeclarator")),!this.eat(d.comma))break}return t},q.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 Et=1,fi=2,Hi=4;q.parseFunction=function(t,r,u,c,y){this.initFunction(t),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!c)&&(this.type===d.star&&r&fi&&this.unexpected(),t.generator=this.eat(d.star)),this.options.ecmaVersion>=8&&(t.async=!!c),r&Et&&(t.id=r&Hi&&this.type!==d.name?null:this.parseIdent(),t.id&&!(r&fi)&&this.checkLValSimple(t.id,this.strict||t.generator||t.async?this.treatFunctionsAsVar?nt:De:ot));var C=this.yieldPos,A=this.awaitPos,N=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(ft(t.async,t.generator)),r&Et||(t.id=this.type===d.name?this.parseIdent():null),this.parseFunctionParams(t),this.parseFunctionBody(t,u,!1,y),this.yieldPos=C,this.awaitPos=A,this.awaitIdentPos=N,this.finishNode(t,r&Et?"FunctionDeclaration":"FunctionExpression")},q.parseFunctionParams=function(t){this.expect(d.parenL),t.params=this.parseBindingList(d.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},q.parseClass=function(t,r){this.next();var u=this.strict;this.strict=!0,this.parseClassId(t,r),this.parseClassSuper(t);var c=this.enterClassBody(),y=this.startNode(),C=!1;for(y.body=[],this.expect(d.braceL);this.type!==d.braceR;){var A=this.parseClassElement(t.superClass!==null);A&&(y.body.push(A),A.type==="MethodDefinition"&&A.kind==="constructor"?(C&&this.raiseRecoverable(A.start,"Duplicate constructor in the same class"),C=!0):A.key&&A.key.type==="PrivateIdentifier"&&Rr(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(y,"ClassBody"),this.exitClassBody(),this.finishNode(t,r?"ClassDeclaration":"ClassExpression")},q.parseClassElement=function(t){if(this.eat(d.semi))return null;var r=this.options.ecmaVersion,u=this.startNode(),c="",y=!1,C=!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()?C=!0:c="async"),!c&&(r>=9||!C)&&this.eat(d.star)&&(y=!0),!c&&!C&&!y){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"||y||C){var X=!u.static&&qt(u,"constructor"),$=X&&t;X&&A!=="method"&&this.raise(u.key.start,"Constructor can't have get/set modifier"),u.kind=X?"constructor":A,this.parseClassMethod(u,y,C,$)}else this.parseClassField(u);return u},q.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},q.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)},q.parseClassMethod=function(t,r,u,c){var y=t.key;t.kind==="constructor"?(r&&this.raise(y.start,"Constructor can't be a generator"),u&&this.raise(y.start,"Constructor can't be an async method")):t.static&&qt(t,"prototype")&&this.raise(y.start,"Classes may not have a static property named prototype");var C=t.value=this.parseMethod(r,u,c);return t.kind==="get"&&C.params.length!==0&&this.raiseRecoverable(C.start,"getter should have no params"),t.kind==="set"&&C.params.length!==1&&this.raiseRecoverable(C.start,"setter should have exactly one param"),t.kind==="set"&&C.params[0].type==="RestElement"&&this.raiseRecoverable(C.params[0].start,"Setter cannot use rest params"),this.finishNode(t,"MethodDefinition")},q.parseClassField=function(t){return qt(t,"constructor")?this.raise(t.key.start,"Classes can't have a field named 'constructor'"):t.static&&qt(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")},q.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")},q.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)},q.parseClassSuper=function(t){t.superClass=this.eat(d._extends)?this.parseExprSubscripts(null,!1):null},q.enterClassBody=function(){var t={declared:Object.create(null),used:[]};return this.privateNameStack.push(t),t.declared},q.exitClassBody=function(){var t=this.privateNameStack.pop(),r=t.declared,u=t.used;if(this.options.checkPrivateFields)for(var c=this.privateNameStack.length,y=c===0?null:this.privateNameStack[c-1],C=0;C<u.length;++C){var A=u[C];oe(r,A.name)||(y?y.used.push(A):this.raiseRecoverable(A.start,"Private field '#"+A.name+"' must be declared in an enclosing class"))}};function Rr(t,r){var u=r.key.name,c=t[u],y="true";return r.type==="MethodDefinition"&&(r.kind==="get"||r.kind==="set")&&(y=(r.static?"s":"i")+r.kind),c==="iget"&&y==="iset"||c==="iset"&&y==="iget"||c==="sget"&&y==="sset"||c==="sset"&&y==="sget"?(t[u]="true",!1):c?!0:(t[u]=y,!1)}function qt(t,r){var u=t.computed,c=t.key;return!u&&(c.type==="Identifier"&&c.name===r||c.type==="Literal"&&c.value===r)}q.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")},q.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 y=c[u];this.checkUnreserved(y.local),this.checkLocalExport(y.local),y.local.type==="Literal"&&this.raise(y.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")},q.parseExportDeclaration=function(t){return this.parseStatement(null)},q.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,Et|Hi,!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}},q.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)},q.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,y=r.properties;c<y.length;c+=1){var C=y[c];this.checkPatternExport(t,C)}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)},q.checkVariableExport=function(t,r){if(t)for(var u=0,c=r;u<c.length;u+=1){var y=c[u];this.checkPatternExport(t,y.id)}},q.shouldParseExportStatement=function(){return this.type.keyword==="var"||this.type.keyword==="const"||this.type.keyword==="class"||this.type.keyword==="function"||this.isLet()||this.isAsyncFunction()},q.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")},q.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},q.parseImport=function(t){return this.next(),this.type===d.string?(t.specifiers=Lr,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")},q.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")},q.parseImportDefaultSpecifier=function(){var t=this.startNode();return t.local=this.parseIdent(),this.checkLValSimple(t.local,De),this.finishNode(t,"ImportDefaultSpecifier")},q.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")},q.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},q.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(),y=c.key.type==="Identifier"?c.key.name:c.key.value;oe(r,y)&&this.raiseRecoverable(c.key.start,"Duplicate attribute key '"+y+"'"),r[y]=!0,t.push(c)}return t},q.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")},q.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)},q.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)},q.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,y=t.properties;c<y.length;c+=1){var C=y[c];this.toAssignable(C,r),C.type==="RestElement"&&(C.argument.type==="ArrayPattern"||C.argument.type==="ObjectPattern")&&this.raise(C.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 y=t[c];y&&this.toAssignable(y,r)}if(u){var C=t[u-1];this.options.ecmaVersion===6&&r&&C&&C.type==="RestElement"&&C.argument.type!=="Identifier"&&this.unexpected(C.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 y=[],C=!0;!this.eat(t);)if(C?C=!1:this.expect(d.comma),r&&this.type===d.comma)y.push(null);else{if(u&&this.afterTrailingComma(t))break;if(this.type===d.ellipsis){var A=this.parseRestBinding();this.parseBindingListItem(A),y.push(A),this.type===d.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.expect(t);break}else y.push(this.parseAssignableListItem(c))}return y},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!==kt&&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,y=t.properties;c<y.length;c+=1){var C=y[c];this.checkLValInnerPattern(C,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 Be=function(r,u,c,y,C){this.token=r,this.isExpr=!!u,this.preserveSpace=!!c,this.override=y,this.generator=!!C},pe={b_stat:new Be("{",!1),b_expr:new Be("{",!0),b_tmpl:new Be("${",!1),p_stat:new Be("(",!1),p_expr:new Be("(",!0),q_tmpl:new Be("`",!0,!0,function(t){return t.tryReadTemplateToken()}),f_stat:new Be("function",!1),f_expr:new Be("function",!0),f_expr_gen:new Be("function",!0,!1,null,!0),f_gen:new Be("function",!1,!1,null,!0)},dt=ae.prototype;dt.initialContext=function(){return[pe.b_stat]},dt.curContext=function(){return this.context[this.context.length-1]},dt.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},dt.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},dt.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},dt.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 J=ae.prototype;J.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,y;switch(c.type){case"Identifier":y=c.name;break;case"Literal":y=String(c.value);break;default:return}var C=t.kind;if(this.options.ecmaVersion>=6){y==="__proto__"&&C==="init"&&(r.proto&&(u?u.doubleProto<0&&(u.doubleProto=c.start):this.raiseRecoverable(c.start,"Redefinition of __proto__ property")),r.proto=!0);return}y="$"+y;var A=r[y];if(A){var N;C==="init"?N=this.strict&&A.init||A.get||A.set:N=A.init||A[C],N&&this.raiseRecoverable(c.start,"Redefinition of property")}else A=r[y]={init:!1,get:!1,set:!1};A[C]=!0}},J.parseExpression=function(t,r){var u=this.start,c=this.startLoc,y=this.parseMaybeAssign(t,r);if(this.type===d.comma){var C=this.startNodeAt(u,c);for(C.expressions=[y];this.eat(d.comma);)C.expressions.push(this.parseMaybeAssign(t,r));return this.finishNode(C,"SequenceExpression")}return y},J.parseMaybeAssign=function(t,r,u){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(t);this.exprAllowed=!1}var c=!1,y=-1,C=-1,A=-1;r?(y=r.parenthesizedAssign,C=r.trailingComma,A=r.doubleProto,r.parenthesizedAssign=r.trailingComma=-1):(r=new Ut,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 X=this.parseMaybeConditional(t,r);if(u&&(X=u.call(this,X,N,V)),this.type.isAssign){var $=this.startNodeAt(N,V);return $.operator=this.value,this.type===d.eq&&(X=this.toAssignable(X,!1,r)),c||(r.parenthesizedAssign=r.trailingComma=r.doubleProto=-1),r.shorthandAssign>=X.start&&(r.shorthandAssign=-1),this.type===d.eq?this.checkLValPattern(X):this.checkLValSimple(X),$.left=X,this.next(),$.right=this.parseMaybeAssign(t),A>-1&&(r.doubleProto=A),this.finishNode($,"AssignmentExpression")}else c&&this.checkExpressionErrors(r,!0);return y>-1&&(r.parenthesizedAssign=y),C>-1&&(r.trailingComma=C),X},J.parseMaybeConditional=function(t,r){var u=this.start,c=this.startLoc,y=this.parseExprOps(t,r);if(this.checkExpressionErrors(r))return y;if(this.eat(d.question)){var C=this.startNodeAt(u,c);return C.test=y,C.consequent=this.parseMaybeAssign(),this.expect(d.colon),C.alternate=this.parseMaybeAssign(t),this.finishNode(C,"ConditionalExpression")}return y},J.parseExprOps=function(t,r){var u=this.start,c=this.startLoc,y=this.parseMaybeUnary(r,!1,!1,t);return this.checkExpressionErrors(r)||y.start===u&&y.type==="ArrowFunctionExpression"?y:this.parseExprOp(y,u,c,-1,t)},J.parseExprOp=function(t,r,u,c,y){var C=this.type.binop;if(C!=null&&(!y||this.type!==d._in)&&C>c){var A=this.type===d.logicalOR||this.type===d.logicalAND,N=this.type===d.coalesce;N&&(C=d.logicalAND.binop);var V=this.value;this.next();var X=this.start,$=this.startLoc,le=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,y),X,$,C,y),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,y)}return t},J.buildBinary=function(t,r,u,c,y,C){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=y,A.right=c,this.finishNode(A,C?"LogicalExpression":"BinaryExpression")},J.parseMaybeUnary=function(t,r,u,c){var y=this.start,C=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"&&Wi(N.argument)?this.raiseRecoverable(N.start,"Deleting local variable in strict mode"):N.operator==="delete"&&di(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 X=this.startNodeAt(y,C);X.operator=this.value,X.prefix=!1,X.argument=A,this.checkLValSimple(A),this.next(),A=this.finishNode(X,"UpdateExpression")}}if(!u&&this.eat(d.starstar))if(r)this.unexpected(this.lastTokStart);else return this.buildBinary(y,C,A,this.parseMaybeUnary(null,!1,!1,c),"**",!1);else return A};function Wi(t){return t.type==="Identifier"||t.type==="ParenthesizedExpression"&&Wi(t.expression)}function di(t){return t.type==="MemberExpression"&&t.property.type==="PrivateIdentifier"||t.type==="ChainExpression"&&di(t.expression)||t.type==="ParenthesizedExpression"&&di(t.expression)}J.parseExprSubscripts=function(t,r){var u=this.start,c=this.startLoc,y=this.parseExprAtom(t,r);if(y.type==="ArrowFunctionExpression"&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==")")return y;var C=this.parseSubscripts(y,u,c,!1,r);return t&&C.type==="MemberExpression"&&(t.parenthesizedAssign>=C.start&&(t.parenthesizedAssign=-1),t.parenthesizedBind>=C.start&&(t.parenthesizedBind=-1),t.trailingComma>=C.start&&(t.trailingComma=-1)),C},J.parseSubscripts=function(t,r,u,c,y){for(var C=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,C,A,y);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}},J.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(d.arrow)},J.parseSubscriptAsyncArrow=function(t,r,u,c){return this.parseArrowExpression(this.startNodeAt(t,r),u,!0,c)},J.parseSubscript=function(t,r,u,c,y,C,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 X=this.eat(d.bracketL);if(X||V&&this.type!==d.parenL&&this.type!==d.backQuote||this.eat(d.dot)){var $=this.startNodeAt(r,u);$.object=t,X?($.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=!!X,N&&($.optional=V),t=this.finishNode($,"MemberExpression")}else if(!c&&this.eat(d.parenL)){var le=new Ut,ke=this.yieldPos,Pt=this.awaitPos,mt=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var Kt=this.parseExprList(d.parenR,this.options.ecmaVersion>=8,!1,le);if(y&&!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=Pt,this.awaitIdentPos=mt,this.parseSubscriptAsyncArrow(r,u,Kt,A);this.checkExpressionErrors(le,!0),this.yieldPos=ke||this.yieldPos,this.awaitPos=Pt||this.awaitPos,this.awaitIdentPos=mt||this.awaitIdentPos;var xt=this.startNodeAt(r,u);xt.callee=t,xt.arguments=Kt,N&&(xt.optional=V),t=this.finishNode(xt,"CallExpression")}else if(this.type===d.backQuote){(V||C)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var yt=this.startNodeAt(r,u);yt.tag=t,yt.quasi=this.parseTemplate({isTagged:!0}),t=this.finishNode(yt,"TaggedTemplateExpression")}return t},J.parseExprAtom=function(t,r,u){this.type===d.slash&&this.readRegexp();var c,y=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 C=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(C,A),0,!1,!0,r);if(y&&!this.canInsertSemicolon()){if(this.eat(d.arrow))return this.parseArrowExpression(this.startNodeAt(C,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(C,A),[V],!0,r)}return V;case d.regexp:var X=this.value;return c=this.parseLiteral(X.value),c.regex={pattern:X.pattern,flags:X.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(y,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()}},J.parseExprAtomDefault=function(){this.unexpected()},J.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()},J.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")},J.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")},J.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")},J.parseParenExpression=function(){this.expect(d.parenL);var t=this.parseExpression();return this.expect(d.parenR),t},J.shouldParseArrow=function(t){return!this.canInsertSemicolon()},J.parseParenAndDistinguishExpression=function(t,r){var u=this.start,c=this.startLoc,y,C=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var A=this.start,N=this.startLoc,V=[],X=!0,$=!1,le=new Ut,ke=this.yieldPos,Pt=this.awaitPos,mt;for(this.yieldPos=0,this.awaitPos=0;this.type!==d.parenR;)if(X?X=!1:this.expect(d.comma),C&&this.afterTrailingComma(d.parenR,!0)){$=!0;break}else if(this.type===d.ellipsis){mt=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 Kt=this.lastTokEnd,xt=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=Pt,this.parseParenArrowList(u,c,V,r);(!V.length||$)&&this.unexpected(this.lastTokStart),mt&&this.unexpected(mt),this.checkExpressionErrors(le,!0),this.yieldPos=ke||this.yieldPos,this.awaitPos=Pt||this.awaitPos,V.length>1?(y=this.startNodeAt(A,N),y.expressions=V,this.finishNodeAt(y,"SequenceExpression",Kt,xt)):y=V[0]}else y=this.parseParenExpression();if(this.options.preserveParens){var yt=this.startNodeAt(u,c);return yt.expression=y,this.finishNode(yt,"ParenthesizedExpression")}else return y},J.parseParenItem=function(t){return t},J.parseParenArrowList=function(t,r,u,c){return this.parseArrowExpression(this.startNodeAt(t,r),u,!1,c)};var Or=[];J.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,y=this.startLoc;return t.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),c,y,!0,!1),this.eat(d.parenL)?t.arguments=this.parseExprList(d.parenR,this.options.ecmaVersion>=8,!1):t.arguments=Or,this.finishNode(t,"NewExpression")},J.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
4
|
`),cooked:null}):u.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,`
|
|
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,y={};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 C=this.parseProperty(t,r);t||this.checkPropClash(C,y,r),u.properties.push(C)}return this.finishNode(u,t?"ObjectPattern":"ObjectExpression")},X.parseProperty=function(t,r){var u=this.startNode(),c,y,C,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)&&(C=this.start,A=this.startLoc),t||(c=this.eat(d.star)));var L=this.containsEsc;return this.parsePropertyName(u),!t&&!L&&this.options.ecmaVersion>=8&&!c&&this.isAsyncProp(u)?(y=!0,c=this.options.ecmaVersion>=9&&this.eat(d.star),this.parsePropertyName(u)):y=!1,this.parsePropertyValue(u,t,c,y,C,A,r,L),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,y,C,A,L){(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&&!L&&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=y),r?t.value=this.parseMaybeDefault(y,C,this.copyNode(t.key)):this.type===d.eq&&A?(A.shorthandAssign<0&&(A.shorthandAssign=this.start),t.value=this.parseMaybeDefault(y,C,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(),y=this.yieldPos,C=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(ft(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=y,this.awaitPos=C,this.awaitIdentPos=A,this.finishNode(c,"FunctionExpression")},X.parseArrowExpression=function(t,r,u,c){var y=this.yieldPos,C=this.awaitPos,A=this.awaitIdentPos;return this.enterScope(ft(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=y,this.awaitPos=C,this.awaitIdentPos=A,this.finishNode(t,"ArrowFunctionExpression")},X.parseFunctionBody=function(t,r,u,c){var y=r&&this.type!==d.braceL,C=this.strict,A=!1;if(y)t.body=this.parseMaybeAssign(c),t.expression=!0,this.checkParams(t,!1);else{var L=this.options.ecmaVersion>=7&&!this.isSimpleParamList(t.params);(!C||L)&&(A=this.strictDirective(this.end),A&&L&&this.raiseRecoverable(t.start,"Illegal 'use strict' directive in function with non-simple parameter list"));var O=this.labels;this.labels=[],A&&(this.strict=!0),this.checkParams(t,!C&&!A&&!r&&!u&&this.isSimpleParamList(t.params)),this.strict&&t.id&&this.checkLValSimple(t.id,kt),t.body=this.parseBlock(!1,void 0,A&&!C),t.expression=!1,this.adaptDirectivePrologue(t.body.body),this.labels=O}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,y=t.params;c<y.length;c+=1){var C=y[c];this.checkLValInnerPattern(C,nt,r?null:u)}},X.parseExprList=function(t,r,u,c){for(var y=[],C=!0;!this.eat(t);){if(C)C=!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),y.push(A)}return y},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 y=this.strict?this.reservedWordsStrict:this.reservedWords;y.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 Ht=ae.prototype;Ht.raise=function(t,r){var u=S(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},Ht.raiseRecoverable=Ht.raise,Ht.curPosition=function(){if(this.options.locations)return new m(this.curLine,this.pos-this.lineStart)};var st=ae.prototype,Dr=function(r){this.flags=r,this.var=[],this.lexical=[],this.functions=[]};st.enterScope=function(t){this.scopeStack.push(new Dr(t))},st.exitScope=function(){this.scopeStack.pop()},st.treatFunctionsAsVarInScope=function(t){return t.flags&G||!this.inModule&&t.flags&F},st.declareName=function(t,r,u){var c=!1;if(r===De){var y=this.currentScope();c=y.lexical.indexOf(t)>-1||y.functions.indexOf(t)>-1||y.var.indexOf(t)>-1,y.lexical.push(t),this.inModule&&y.flags&F&&delete this.undefinedExports[t]}else if(r===wt){var C=this.currentScope();C.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 L=this.scopeStack.length-1;L>=0;--L){var O=this.scopeStack[L];if(O.lexical.indexOf(t)>-1&&!(O.flags&ce&&O.lexical[0]===t)||!this.treatFunctionsAsVarInScope(O)&&O.functions.indexOf(t)>-1){c=!0;break}if(O.var.push(t),this.inModule&&O.flags&F&&delete this.undefinedExports[t],O.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 _t=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])},Tt=ae.prototype;Tt.startNode=function(){return new _t(this,this.start,this.startLoc)},Tt.startNodeAt=function(t,r){return new _t(this,t,r)};function Hi(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}Tt.finishNode=function(t,r){return Hi.call(this,t,r,this.lastTokEnd,this.lastTokEndLoc)},Tt.finishNodeAt=function(t,r,u,c){return Hi.call(this,t,r,u,c)},Tt.copyNode=function(t){var r=new _t(this,t.start,this.startLoc);for(var u in t)r[u]=t[u];return r};var Mr="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",Wi="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",zi=Wi+" Extended_Pictographic",Gi=zi,Ki=Gi+" EBase EComp EMod EPres ExtPict",Xi=Ki,Br=Xi,Fr={9:Wi,10:zi,11:Gi,12:Ki,13:Xi,14:Br},jr="Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji",Ur={9:"",10:"",11:"",12:"",13:"",14:jr},Ji="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",Qi="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",Yi=Qi+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",Zi=Yi+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",$i=Zi+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",es=$i+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",qr=es+" "+Mr,Hr={9:Qi,10:Yi,11:Zi,12:$i,13:es,14:qr},ts={};function Wr(t){var r=ts[t]={binary:s(Fr[t]+" "+Ji),binaryOfStrings:s(Ur[t]),nonBinary:{General_Category:s(Ji),Script:s(Hr[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 mi=0,is=[9,10,11,12,13,14];mi<is.length;mi+=1){var zr=is[mi];Wr(zr)}var j=ae.prototype,Wt=function(r,u){this.parent=r,this.base=u||this};Wt.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},Wt.prototype.sibling=function(){return new Wt(this.parent,this.base)};var Xe=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=ts[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};Xe.prototype.reset=function(r,u,c){var y=c.indexOf("v")!==-1,C=c.indexOf("u")!==-1;this.start=r|0,this.source=u+"",this.flags=c,y&&this.parser.options.ecmaVersion>=15?(this.switchU=!0,this.switchV=!0,this.switchN=!0):(this.switchU=C&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=C&&this.parser.options.ecmaVersion>=9)},Xe.prototype.raise=function(r){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+r)},Xe.prototype.at=function(r,u){u===void 0&&(u=!1);var c=this.source,y=c.length;if(r>=y)return-1;var C=c.charCodeAt(r);if(!(u||this.switchU)||C<=55295||C>=57344||r+1>=y)return C;var A=c.charCodeAt(r+1);return A>=56320&&A<=57343?(C<<10)+A-56613888:C},Xe.prototype.nextIndex=function(r,u){u===void 0&&(u=!1);var c=this.source,y=c.length;if(r>=y)return y;var C=c.charCodeAt(r),A;return!(u||this.switchU)||C<=55295||C>=57344||r+1>=y||(A=c.charCodeAt(r+1))<56320||A>57343?r+1:r+2},Xe.prototype.current=function(r){return r===void 0&&(r=!1),this.at(this.pos,r)},Xe.prototype.lookahead=function(r){return r===void 0&&(r=!1),this.at(this.nextIndex(this.pos,r),r)},Xe.prototype.advance=function(r){r===void 0&&(r=!1),this.pos=this.nextIndex(this.pos,r)},Xe.prototype.eat=function(r,u){return u===void 0&&(u=!1),this.current(u)===r?(this.advance(u),!0):!1},Xe.prototype.eatChars=function(r,u){u===void 0&&(u=!1);for(var c=this.pos,y=0,C=r;y<C.length;y+=1){var A=C[y],L=this.at(c,u);if(L===-1||L!==A)return!1;c=this.nextIndex(c,u)}return this.pos=c,!0},j.validateRegExpFlags=function(t){for(var r=t.validFlags,u=t.flags,c=!1,y=!1,C=0;C<u.length;C++){var A=u.charAt(C);r.indexOf(A)===-1&&this.raise(t.start,"Invalid regular expression flag"),u.indexOf(A,C+1)>-1&&this.raise(t.start,"Duplicate regular expression flag"),A==="u"&&(c=!0),A==="v"&&(y=!0)}this.options.ecmaVersion>=15&&c&&y&&this.raise(t.start,"Invalid regular expression flag")};function Gr(t){for(var r in t)return!0;return!1}j.validateRegExpPattern=function(t){this.regexp_pattern(t),!t.switchN&&this.options.ecmaVersion>=9&&Gr(t.groupNames)&&(t.switchN=!0,this.regexp_pattern(t))},j.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")}},j.regexp_disjunction=function(t){var r=this.options.ecmaVersion>=16;for(r&&(t.branchID=new Wt(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")},j.regexp_alternative=function(t){for(;t.pos<t.source.length&&this.regexp_eatTerm(t););},j.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},j.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},j.regexp_eatQuantifier=function(t,r){return r===void 0&&(r=!1),this.regexp_eatQuantifierPrefix(t,r)?(t.eat(63),!0):!1},j.regexp_eatQuantifierPrefix=function(t,r){return t.eat(42)||t.eat(43)||t.eat(63)||this.regexp_eatBracedQuantifier(t,r)},j.regexp_eatBracedQuantifier=function(t,r){var u=t.pos;if(t.eat(123)){var c=0,y=-1;if(this.regexp_eatDecimalDigits(t)&&(c=t.lastIntValue,t.eat(44)&&this.regexp_eatDecimalDigits(t)&&(y=t.lastIntValue),t.eat(125)))return y!==-1&&y<c&&!r&&t.raise("numbers out of order in {} quantifier"),!0;t.switchU&&!r&&t.raise("Incomplete quantifier"),t.pos=u}return!1},j.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)},j.regexp_eatReverseSolidusAtomEscape=function(t){var r=t.pos;if(t.eat(92)){if(this.regexp_eatAtomEscape(t))return!0;t.pos=r}return!1},j.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 y=0;y<u.length;y++){var C=u.charAt(y);u.indexOf(C,y+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 L=0;L<A.length;L++){var O=A.charAt(L);(A.indexOf(O,L+1)>-1||u.indexOf(O)>-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},j.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},j.regexp_eatModifiers=function(t){for(var r="",u=0;(u=t.current())!==-1&&Kr(u);)r+=n(u),t.advance();return r};function Kr(t){return t===105||t===109||t===115}j.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)},j.regexp_eatInvalidBracedQuantifier=function(t){return this.regexp_eatBracedQuantifier(t,!0)&&t.raise("Nothing to repeat"),!1},j.regexp_eatSyntaxCharacter=function(t){var r=t.current();return ss(r)?(t.lastIntValue=r,t.advance(),!0):!1};function ss(t){return t===36||t>=40&&t<=43||t===46||t===63||t>=91&&t<=94||t>=123&&t<=125}j.regexp_eatPatternCharacters=function(t){for(var r=t.pos,u=0;(u=t.current())!==-1&&!ss(u);)t.advance();return t.pos!==r},j.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},j.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,y=u;c<y.length;c+=1){var C=y[c];C.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}},j.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},j.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},j.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),Xr(c)?(t.lastIntValue=c,!0):(t.pos=r,!1)};function Xr(t){return z(t,!0)||t===36||t===95}j.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),Jr(c)?(t.lastIntValue=c,!0):(t.pos=r,!1)};function Jr(t){return I(t,!0)||t===36||t===95||t===8204||t===8205}j.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)},j.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},j.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},j.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)},j.regexp_eatCControlLetter=function(t){var r=t.pos;if(t.eat(99)){if(this.regexp_eatControlLetter(t))return!0;t.pos=r}return!1},j.regexp_eatZero=function(t){return t.current()===48&&!zt(t.lookahead())?(t.lastIntValue=0,t.advance(),!0):!1},j.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},j.regexp_eatControlLetter=function(t){var r=t.current();return rs(r)?(t.lastIntValue=r%32,t.advance(),!0):!1};function rs(t){return t>=65&&t<=90||t>=97&&t<=122}j.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 y=t.lastIntValue;if(c&&y>=55296&&y<=56319){var C=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=(y-55296)*1024+(A-56320)+65536,!0}t.pos=C,t.lastIntValue=y}return!0}if(c&&t.eat(123)&&this.regexp_eatHexDigits(t)&&t.eat(125)&&Qr(t.lastIntValue))return!0;c&&t.raise("Invalid unicode escape"),t.pos=u}return!1};function Qr(t){return t>=0&&t<=1114111}j.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},j.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 as=0,Ye=1,Fe=2;j.regexp_eatCharacterClassEscape=function(t){var r=t.current();if(Yr(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===Fe&&t.raise("Invalid property name"),c;t.raise("Invalid property name")}return as};function Yr(t){return t===100||t===68||t===115||t===83||t===119||t===87}j.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 y=t.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(t,y)}return as},j.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")},j.regexp_validateUnicodePropertyNameOrValue=function(t,r){if(t.unicodeProperties.binary.test(r))return Ye;if(t.switchV&&t.unicodeProperties.binaryOfStrings.test(r))return Fe;t.raise("Invalid property name")},j.regexp_eatUnicodePropertyName=function(t){var r=0;for(t.lastStringValue="";ns(r=t.current());)t.lastStringValue+=n(r),t.advance();return t.lastStringValue!==""};function ns(t){return rs(t)||t===95}j.regexp_eatUnicodePropertyValue=function(t){var r=0;for(t.lastStringValue="";Zr(r=t.current());)t.lastStringValue+=n(r),t.advance();return t.lastStringValue!==""};function Zr(t){return ns(t)||zt(t)}j.regexp_eatLoneUnicodePropertyNameOrValue=function(t){return this.regexp_eatUnicodePropertyValue(t)},j.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===Fe&&t.raise("Negated character class may contain strings"),!0}return!1},j.regexp_classContents=function(t){return t.current()===93?Ye:t.switchV?this.regexp_classSetExpression(t):(this.regexp_nonEmptyClassRanges(t),Ye)},j.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")}}},j.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||hs(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},j.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)},j.regexp_classSetExpression=function(t){var r=Ye,u;if(!this.regexp_eatClassSetRange(t))if(u=this.regexp_eatClassSetOperand(t)){u===Fe&&(r=Fe);for(var c=t.pos;t.eatChars([38,38]);){if(t.current()!==38&&(u=this.regexp_eatClassSetOperand(t))){u!==Fe&&(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===Fe&&(r=Fe)}},j.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},j.regexp_eatClassSetOperand=function(t){return this.regexp_eatClassSetCharacter(t)?Ye:this.regexp_eatClassStringDisjunction(t)||this.regexp_eatNestedClass(t)},j.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===Fe&&t.raise("Negated character class may contain strings"),c;t.pos=r}if(t.eat(92)){var y=this.regexp_eatCharacterClassEscape(t);if(y)return y;t.pos=r}return null},j.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},j.regexp_classStringDisjunctionContents=function(t){for(var r=this.regexp_classString(t);t.eat(124);)this.regexp_classString(t)===Fe&&(r=Fe);return r},j.regexp_classString=function(t){for(var r=0;this.regexp_eatClassSetCharacter(t);)r++;return r===1?Ye:Fe},j.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()&&$r(u)||ea(u)?!1:(t.advance(),t.lastIntValue=u,!0)};function $r(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 ea(t){return t===40||t===41||t===45||t===47||t>=91&&t<=93||t>=123&&t<=125}j.regexp_eatClassSetReservedPunctuator=function(t){var r=t.current();return ta(r)?(t.lastIntValue=r,t.advance(),!0):!1};function ta(t){return t===33||t===35||t===37||t===38||t===44||t===45||t>=58&&t<=62||t===64||t===96||t===126}j.regexp_eatClassControlLetter=function(t){var r=t.current();return zt(r)||r===95?(t.lastIntValue=r%32,t.advance(),!0):!1},j.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},j.regexp_eatDecimalDigits=function(t){var r=t.pos,u=0;for(t.lastIntValue=0;zt(u=t.current());)t.lastIntValue=10*t.lastIntValue+(u-48),t.advance();return t.pos!==r};function zt(t){return t>=48&&t<=57}j.regexp_eatHexDigits=function(t){var r=t.pos,u=0;for(t.lastIntValue=0;os(u=t.current());)t.lastIntValue=16*t.lastIntValue+us(u),t.advance();return t.pos!==r};function os(t){return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}function us(t){return t>=65&&t<=70?10+(t-65):t>=97&&t<=102?10+(t-97):t-48}j.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},j.regexp_eatOctalDigit=function(t){var r=t.current();return hs(r)?(t.lastIntValue=r-48,t.advance(),!0):(t.lastIntValue=0,!1)};function hs(t){return t>=48&&t<=55}j.regexp_eatFixedHexDigits=function(t,r){var u=t.pos;t.lastIntValue=0;for(var c=0;c<r;++c){var y=t.current();if(!os(y))return t.pos=u,!1;t.lastIntValue=16*t.lastIntValue+us(y),t.advance()}return!0};var Gt=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 Gt(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 Gt(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 z(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,y=r;(c=jt(this.input,y,this.pos))>-1;)++this.curLine,y=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&&!Oe(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&&Ct.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(),z(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 y=this.input.slice(u,this.pos);++this.pos;var C=this.pos,A=this.readWord1();this.containsEsc&&this.unexpected(C);var L=this.regexpState||(this.regexpState=new Xe(this));L.reset(u,y,A),this.validateRegExpFlags(L),this.validateRegExpPattern(L);var O=null;try{O=new RegExp(y,A)}catch{}return this.finishToken(d.regexp,{pattern:y,flags:A,value:O})},ie.readInt=function(t,r,u){for(var c=this.options.ecmaVersion>=12&&r===void 0,y=u&&this.input.charCodeAt(this.pos)===48,C=this.pos,A=0,L=0,O=0,K=r??1/0;O<K;++O,++this.pos){var $=this.input.charCodeAt(this.pos),le=void 0;if(c&&$===95){y&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),L===95&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),O===0&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),L=$;continue}if($>=97?le=$-97+10:$>=65?le=$-65+10:$>=48&&$<=57?le=$-48:le=1/0,le>=t)break;L=$,A=A*t+le}return c&&L===95&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===C||r!=null&&this.pos-C!==r?null:A};function ia(t,r){return r?parseInt(t,8):parseFloat(t.replace(/_/g,""))}function cs(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=cs(this.input.slice(r,this.pos)),++this.pos):z(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 y=cs(this.input.slice(r,this.pos));return++this.pos,z(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(d.num,y)}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")),z(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var C=ia(this.input.slice(r,this.pos),u);return this.finishToken(d.num,C)},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)):(Oe(c)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return r+=this.input.slice(u,this.pos++),this.finishToken(d.string,r)};var ps={};ie.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(t){if(t===ps)this.readInvalidTemplateToken();else throw t}this.inTemplateElement=!1},ie.invalidStringToken=function(t,r){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw ps;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(Oe(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+=`
|
|
5
|
+
`),cooked:this.value},this.next(),u.tail=this.type===d.backQuote,this.finishNode(u,"TemplateElement")},J.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")},J.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))},J.parseObj=function(t,r){var u=this.startNode(),c=!0,y={};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 C=this.parseProperty(t,r);t||this.checkPropClash(C,y,r),u.properties.push(C)}return this.finishNode(u,t?"ObjectPattern":"ObjectExpression")},J.parseProperty=function(t,r){var u=this.startNode(),c,y,C,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)&&(C=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)?(y=!0,c=this.options.ecmaVersion>=9&&this.eat(d.star),this.parsePropertyName(u)):y=!1,this.parsePropertyValue(u,t,c,y,C,A,r,N),this.finishNode(u,"Property")},J.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")},J.parsePropertyValue=function(t,r,u,c,y,C,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=y),r?t.value=this.parseMaybeDefault(y,C,this.copyNode(t.key)):this.type===d.eq&&A?(A.shorthandAssign<0&&(A.shorthandAssign=this.start),t.value=this.parseMaybeDefault(y,C,this.copyNode(t.key))):t.value=this.copyNode(t.key),t.kind="init",t.shorthand=!0):this.unexpected()},J.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")},J.initFunction=function(t){t.id=null,this.options.ecmaVersion>=6&&(t.generator=t.expression=!1),this.options.ecmaVersion>=8&&(t.async=!1)},J.parseMethod=function(t,r,u){var c=this.startNode(),y=this.yieldPos,C=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(ft(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=y,this.awaitPos=C,this.awaitIdentPos=A,this.finishNode(c,"FunctionExpression")},J.parseArrowExpression=function(t,r,u,c){var y=this.yieldPos,C=this.awaitPos,A=this.awaitIdentPos;return this.enterScope(ft(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=y,this.awaitPos=C,this.awaitIdentPos=A,this.finishNode(t,"ArrowFunctionExpression")},J.parseFunctionBody=function(t,r,u,c){var y=r&&this.type!==d.braceL,C=this.strict,A=!1;if(y)t.body=this.parseMaybeAssign(c),t.expression=!0,this.checkParams(t,!1);else{var N=this.options.ecmaVersion>=7&&!this.isSimpleParamList(t.params);(!C||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,!C&&!A&&!r&&!u&&this.isSimpleParamList(t.params)),this.strict&&t.id&&this.checkLValSimple(t.id,kt),t.body=this.parseBlock(!1,void 0,A&&!C),t.expression=!1,this.adaptDirectivePrologue(t.body.body),this.labels=V}this.exitScope()},J.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},J.checkParams=function(t,r){for(var u=Object.create(null),c=0,y=t.params;c<y.length;c+=1){var C=y[c];this.checkLValInnerPattern(C,nt,r?null:u)}},J.parseExprList=function(t,r,u,c){for(var y=[],C=!0;!this.eat(t);){if(C)C=!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),y.push(A)}return y},J.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 y=this.strict?this.reservedWordsStrict:this.reservedWords;y.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"))}},J.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},J.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},J.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},J.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")},J.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 Ht=ae.prototype;Ht.raise=function(t,r){var u=S(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},Ht.raiseRecoverable=Ht.raise,Ht.curPosition=function(){if(this.options.locations)return new m(this.curLine,this.pos-this.lineStart)};var st=ae.prototype,Vr=function(r){this.flags=r,this.var=[],this.lexical=[],this.functions=[]};st.enterScope=function(t){this.scopeStack.push(new Vr(t))},st.exitScope=function(){this.scopeStack.pop()},st.treatFunctionsAsVarInScope=function(t){return t.flags&G||!this.inModule&&t.flags&B},st.declareName=function(t,r,u){var c=!1;if(r===De){var y=this.currentScope();c=y.lexical.indexOf(t)>-1||y.functions.indexOf(t)>-1||y.var.indexOf(t)>-1,y.lexical.push(t),this.inModule&&y.flags&B&&delete this.undefinedExports[t]}else if(r===wt){var C=this.currentScope();C.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&B&&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 Tt=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])},_t=ae.prototype;_t.startNode=function(){return new Tt(this,this.start,this.startLoc)},_t.startNodeAt=function(t,r){return new Tt(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}_t.finishNode=function(t,r){return zi.call(this,t,r,this.lastTokEnd,this.lastTokEndLoc)},_t.finishNodeAt=function(t,r,u,c){return zi.call(this,t,r,u,c)},_t.copyNode=function(t){var r=new Tt(this,t.start,this.startLoc);for(var u in t)r[u]=t[u];return r};var Dr="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",Gi="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",Ki=Gi+" Extended_Pictographic",Xi=Ki,Ji=Xi+" EBase EComp EMod EPres ExtPict",Qi=Ji,Mr=Qi,Br={9:Gi,10:Ki,11:Xi,12:Ji,13:Qi,14:Mr},Fr="Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji",jr={9:"",10:"",11:"",12:"",13:"",14:Fr},Yi="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",Zi="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",$i=Zi+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",es=$i+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",ts=es+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",is=ts+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",Ur=is+" "+Dr,qr={9:Zi,10:$i,11:es,12:ts,13:is,14:Ur},ss={};function Hr(t){var r=ss[t]={binary:s(Br[t]+" "+Yi),binaryOfStrings:s(jr[t]),nonBinary:{General_Category:s(Yi),Script:s(qr[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 mi=0,rs=[9,10,11,12,13,14];mi<rs.length;mi+=1){var Wr=rs[mi];Hr(Wr)}var j=ae.prototype,Wt=function(r,u){this.parent=r,this.base=u||this};Wt.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},Wt.prototype.sibling=function(){return new Wt(this.parent,this.base)};var Xe=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=ss[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};Xe.prototype.reset=function(r,u,c){var y=c.indexOf("v")!==-1,C=c.indexOf("u")!==-1;this.start=r|0,this.source=u+"",this.flags=c,y&&this.parser.options.ecmaVersion>=15?(this.switchU=!0,this.switchV=!0,this.switchN=!0):(this.switchU=C&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=C&&this.parser.options.ecmaVersion>=9)},Xe.prototype.raise=function(r){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+r)},Xe.prototype.at=function(r,u){u===void 0&&(u=!1);var c=this.source,y=c.length;if(r>=y)return-1;var C=c.charCodeAt(r);if(!(u||this.switchU)||C<=55295||C>=57344||r+1>=y)return C;var A=c.charCodeAt(r+1);return A>=56320&&A<=57343?(C<<10)+A-56613888:C},Xe.prototype.nextIndex=function(r,u){u===void 0&&(u=!1);var c=this.source,y=c.length;if(r>=y)return y;var C=c.charCodeAt(r),A;return!(u||this.switchU)||C<=55295||C>=57344||r+1>=y||(A=c.charCodeAt(r+1))<56320||A>57343?r+1:r+2},Xe.prototype.current=function(r){return r===void 0&&(r=!1),this.at(this.pos,r)},Xe.prototype.lookahead=function(r){return r===void 0&&(r=!1),this.at(this.nextIndex(this.pos,r),r)},Xe.prototype.advance=function(r){r===void 0&&(r=!1),this.pos=this.nextIndex(this.pos,r)},Xe.prototype.eat=function(r,u){return u===void 0&&(u=!1),this.current(u)===r?(this.advance(u),!0):!1},Xe.prototype.eatChars=function(r,u){u===void 0&&(u=!1);for(var c=this.pos,y=0,C=r;y<C.length;y+=1){var A=C[y],N=this.at(c,u);if(N===-1||N!==A)return!1;c=this.nextIndex(c,u)}return this.pos=c,!0},j.validateRegExpFlags=function(t){for(var r=t.validFlags,u=t.flags,c=!1,y=!1,C=0;C<u.length;C++){var A=u.charAt(C);r.indexOf(A)===-1&&this.raise(t.start,"Invalid regular expression flag"),u.indexOf(A,C+1)>-1&&this.raise(t.start,"Duplicate regular expression flag"),A==="u"&&(c=!0),A==="v"&&(y=!0)}this.options.ecmaVersion>=15&&c&&y&&this.raise(t.start,"Invalid regular expression flag")};function zr(t){for(var r in t)return!0;return!1}j.validateRegExpPattern=function(t){this.regexp_pattern(t),!t.switchN&&this.options.ecmaVersion>=9&&zr(t.groupNames)&&(t.switchN=!0,this.regexp_pattern(t))},j.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")}},j.regexp_disjunction=function(t){var r=this.options.ecmaVersion>=16;for(r&&(t.branchID=new Wt(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")},j.regexp_alternative=function(t){for(;t.pos<t.source.length&&this.regexp_eatTerm(t););},j.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},j.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},j.regexp_eatQuantifier=function(t,r){return r===void 0&&(r=!1),this.regexp_eatQuantifierPrefix(t,r)?(t.eat(63),!0):!1},j.regexp_eatQuantifierPrefix=function(t,r){return t.eat(42)||t.eat(43)||t.eat(63)||this.regexp_eatBracedQuantifier(t,r)},j.regexp_eatBracedQuantifier=function(t,r){var u=t.pos;if(t.eat(123)){var c=0,y=-1;if(this.regexp_eatDecimalDigits(t)&&(c=t.lastIntValue,t.eat(44)&&this.regexp_eatDecimalDigits(t)&&(y=t.lastIntValue),t.eat(125)))return y!==-1&&y<c&&!r&&t.raise("numbers out of order in {} quantifier"),!0;t.switchU&&!r&&t.raise("Incomplete quantifier"),t.pos=u}return!1},j.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)},j.regexp_eatReverseSolidusAtomEscape=function(t){var r=t.pos;if(t.eat(92)){if(this.regexp_eatAtomEscape(t))return!0;t.pos=r}return!1},j.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 y=0;y<u.length;y++){var C=u.charAt(y);u.indexOf(C,y+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},j.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},j.regexp_eatModifiers=function(t){for(var r="",u=0;(u=t.current())!==-1&&Gr(u);)r+=n(u),t.advance();return r};function Gr(t){return t===105||t===109||t===115}j.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)},j.regexp_eatInvalidBracedQuantifier=function(t){return this.regexp_eatBracedQuantifier(t,!0)&&t.raise("Nothing to repeat"),!1},j.regexp_eatSyntaxCharacter=function(t){var r=t.current();return as(r)?(t.lastIntValue=r,t.advance(),!0):!1};function as(t){return t===36||t>=40&&t<=43||t===46||t===63||t>=91&&t<=94||t>=123&&t<=125}j.regexp_eatPatternCharacters=function(t){for(var r=t.pos,u=0;(u=t.current())!==-1&&!as(u);)t.advance();return t.pos!==r},j.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},j.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,y=u;c<y.length;c+=1){var C=y[c];C.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}},j.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},j.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},j.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),Kr(c)?(t.lastIntValue=c,!0):(t.pos=r,!1)};function Kr(t){return z(t,!0)||t===36||t===95}j.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),Xr(c)?(t.lastIntValue=c,!0):(t.pos=r,!1)};function Xr(t){return P(t,!0)||t===36||t===95||t===8204||t===8205}j.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)},j.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},j.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},j.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)},j.regexp_eatCControlLetter=function(t){var r=t.pos;if(t.eat(99)){if(this.regexp_eatControlLetter(t))return!0;t.pos=r}return!1},j.regexp_eatZero=function(t){return t.current()===48&&!zt(t.lookahead())?(t.lastIntValue=0,t.advance(),!0):!1},j.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},j.regexp_eatControlLetter=function(t){var r=t.current();return ns(r)?(t.lastIntValue=r%32,t.advance(),!0):!1};function ns(t){return t>=65&&t<=90||t>=97&&t<=122}j.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 y=t.lastIntValue;if(c&&y>=55296&&y<=56319){var C=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=(y-55296)*1024+(A-56320)+65536,!0}t.pos=C,t.lastIntValue=y}return!0}if(c&&t.eat(123)&&this.regexp_eatHexDigits(t)&&t.eat(125)&&Jr(t.lastIntValue))return!0;c&&t.raise("Invalid unicode escape"),t.pos=u}return!1};function Jr(t){return t>=0&&t<=1114111}j.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},j.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 os=0,Ye=1,Fe=2;j.regexp_eatCharacterClassEscape=function(t){var r=t.current();if(Qr(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===Fe&&t.raise("Invalid property name"),c;t.raise("Invalid property name")}return os};function Qr(t){return t===100||t===68||t===115||t===83||t===119||t===87}j.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 y=t.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(t,y)}return os},j.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")},j.regexp_validateUnicodePropertyNameOrValue=function(t,r){if(t.unicodeProperties.binary.test(r))return Ye;if(t.switchV&&t.unicodeProperties.binaryOfStrings.test(r))return Fe;t.raise("Invalid property name")},j.regexp_eatUnicodePropertyName=function(t){var r=0;for(t.lastStringValue="";us(r=t.current());)t.lastStringValue+=n(r),t.advance();return t.lastStringValue!==""};function us(t){return ns(t)||t===95}j.regexp_eatUnicodePropertyValue=function(t){var r=0;for(t.lastStringValue="";Yr(r=t.current());)t.lastStringValue+=n(r),t.advance();return t.lastStringValue!==""};function Yr(t){return us(t)||zt(t)}j.regexp_eatLoneUnicodePropertyNameOrValue=function(t){return this.regexp_eatUnicodePropertyValue(t)},j.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===Fe&&t.raise("Negated character class may contain strings"),!0}return!1},j.regexp_classContents=function(t){return t.current()===93?Ye:t.switchV?this.regexp_classSetExpression(t):(this.regexp_nonEmptyClassRanges(t),Ye)},j.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")}}},j.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||ps(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},j.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)},j.regexp_classSetExpression=function(t){var r=Ye,u;if(!this.regexp_eatClassSetRange(t))if(u=this.regexp_eatClassSetOperand(t)){u===Fe&&(r=Fe);for(var c=t.pos;t.eatChars([38,38]);){if(t.current()!==38&&(u=this.regexp_eatClassSetOperand(t))){u!==Fe&&(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===Fe&&(r=Fe)}},j.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},j.regexp_eatClassSetOperand=function(t){return this.regexp_eatClassSetCharacter(t)?Ye:this.regexp_eatClassStringDisjunction(t)||this.regexp_eatNestedClass(t)},j.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===Fe&&t.raise("Negated character class may contain strings"),c;t.pos=r}if(t.eat(92)){var y=this.regexp_eatCharacterClassEscape(t);if(y)return y;t.pos=r}return null},j.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},j.regexp_classStringDisjunctionContents=function(t){for(var r=this.regexp_classString(t);t.eat(124);)this.regexp_classString(t)===Fe&&(r=Fe);return r},j.regexp_classString=function(t){for(var r=0;this.regexp_eatClassSetCharacter(t);)r++;return r===1?Ye:Fe},j.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()&&Zr(u)||$r(u)?!1:(t.advance(),t.lastIntValue=u,!0)};function Zr(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 $r(t){return t===40||t===41||t===45||t===47||t>=91&&t<=93||t>=123&&t<=125}j.regexp_eatClassSetReservedPunctuator=function(t){var r=t.current();return ea(r)?(t.lastIntValue=r,t.advance(),!0):!1};function ea(t){return t===33||t===35||t===37||t===38||t===44||t===45||t>=58&&t<=62||t===64||t===96||t===126}j.regexp_eatClassControlLetter=function(t){var r=t.current();return zt(r)||r===95?(t.lastIntValue=r%32,t.advance(),!0):!1},j.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},j.regexp_eatDecimalDigits=function(t){var r=t.pos,u=0;for(t.lastIntValue=0;zt(u=t.current());)t.lastIntValue=10*t.lastIntValue+(u-48),t.advance();return t.pos!==r};function zt(t){return t>=48&&t<=57}j.regexp_eatHexDigits=function(t){var r=t.pos,u=0;for(t.lastIntValue=0;hs(u=t.current());)t.lastIntValue=16*t.lastIntValue+cs(u),t.advance();return t.pos!==r};function hs(t){return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}function cs(t){return t>=65&&t<=70?10+(t-65):t>=97&&t<=102?10+(t-97):t-48}j.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},j.regexp_eatOctalDigit=function(t){var r=t.current();return ps(r)?(t.lastIntValue=r-48,t.advance(),!0):(t.lastIntValue=0,!1)};function ps(t){return t>=48&&t<=55}j.regexp_eatFixedHexDigits=function(t,r){var u=t.pos;t.lastIntValue=0;for(var c=0;c<r;++c){var y=t.current();if(!hs(y))return t.pos=u,!1;t.lastIntValue=16*t.lastIntValue+cs(y),t.advance()}return!0};var Gt=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 Gt(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 Gt(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 z(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,y=r;(c=jt(this.input,y,this.pos))>-1;)++this.curLine,y=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&&Ct.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(),z(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 y=this.input.slice(u,this.pos);++this.pos;var C=this.pos,A=this.readWord1();this.containsEsc&&this.unexpected(C);var N=this.regexpState||(this.regexpState=new Xe(this));N.reset(u,y,A),this.validateRegExpFlags(N),this.validateRegExpPattern(N);var V=null;try{V=new RegExp(y,A)}catch{}return this.finishToken(d.regexp,{pattern:y,flags:A,value:V})},ie.readInt=function(t,r,u){for(var c=this.options.ecmaVersion>=12&&r===void 0,y=u&&this.input.charCodeAt(this.pos)===48,C=this.pos,A=0,N=0,V=0,X=r??1/0;V<X;++V,++this.pos){var $=this.input.charCodeAt(this.pos),le=void 0;if(c&&$===95){y&&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===C||r!=null&&this.pos-C!==r?null:A};function ta(t,r){return r?parseInt(t,8):parseFloat(t.replace(/_/g,""))}function ls(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=ls(this.input.slice(r,this.pos)),++this.pos):z(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 y=ls(this.input.slice(r,this.pos));return++this.pos,z(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(d.num,y)}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")),z(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var C=ta(this.input.slice(r,this.pos),u);return this.finishToken(d.num,C)},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 fs={};ie.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(t){if(t===fs)this.readInvalidTemplateToken();else throw t}this.inTemplateElement=!1},ie.invalidStringToken=function(t,r){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw fs;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
6
|
`;break;default:t+=String.fromCharCode(u);break}this.options.locations&&(++this.curLine,this.lineStart=this.pos),r=this.pos}else++this.pos}},ie.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(d.invalidTemplate,this.input.slice(this.start,this.pos));case"\r":this.input[this.pos+1]===`
|
|
7
7
|
`&&++this.pos;case`
|
|
8
8
|
`:case"\u2028":case"\u2029":++this.curLine,this.lineStart=this.pos+1;break}this.raise(this.start,"Unterminated template")},ie.readEscapedChar=function(t){var r=this.input.charCodeAt(++this.pos);switch(++this.pos,r){case 110:return`
|
|
9
|
-
`;case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return n(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"),t){var u=this.pos-1;this.invalidStringToken(u,"Invalid escape sequence in template string")}default:if(r>=48&&r<=55){var c=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],y=parseInt(c,8);return y>255&&(c=c.slice(0,-1),y=parseInt(c,8)),this.pos+=c.length-1,r=this.input.charCodeAt(this.pos),(c!=="0"||r===56||r===57)&&(this.strict||t)&&this.invalidStringToken(this.pos-1-c.length,t?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(y)}return
|
|
9
|
+
`;case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return n(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"),t){var u=this.pos-1;this.invalidStringToken(u,"Invalid escape sequence in template string")}default:if(r>=48&&r<=55){var c=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],y=parseInt(c,8);return y>255&&(c=c.slice(0,-1),y=parseInt(c,8)),this.pos+=c.length-1,r=this.input.charCodeAt(this.pos),(c!=="0"||r===56||r===57)&&(this.strict||t)&&this.invalidStringToken(this.pos-1-c.length,t?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(y)}return Ve(r)?(this.options.locations&&(this.lineStart=this.pos,++this.curLine),""):String.fromCharCode(r)}},ie.readHexChar=function(t){var r=this.pos,u=this.readInt(16,t);return u===null&&this.invalidStringToken(r,"Bad character escape sequence"),u},ie.readWord1=function(){this.containsEsc=!1;for(var t="",r=!0,u=this.pos,c=this.options.ecmaVersion>=6;this.pos<this.input.length;){var y=this.fullCharCodeAtPos();if(P(y,c))this.pos+=y<=65535?1:2;else if(y===92){this.containsEsc=!0,t+=this.input.slice(u,this.pos);var C=this.pos;this.input.charCodeAt(++this.pos)!==117&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var A=this.readCodePoint();(r?z:P)(A,c)||this.invalidStringToken(C,"Invalid Unicode escape"),t+=n(A),u=this.pos}else break;r=!1}return t+this.input.slice(u,this.pos)},ie.readWord=function(){var t=this.readWord1(),r=d.name;return this.keywords.test(t)&&(r=Ne[t]),this.finishToken(r,t)};var ds="8.16.0";ae.acorn={Parser:ae,version:ds,defaultOptions:w,Position:m,SourceLocation:b,getLineInfo:S,Node:Tt,TokenType:I,tokTypes:d,keywordTypes:Ne,TokContext:Be,tokContexts:pe,isIdentifierChar:P,isIdentifierStart:z,Token:Gt,isNewLine:Ve,lineBreak:ve,lineBreakG:ne,nonASCIIwhitespace:Ct};function ia(t,r){return ae.parse(t,r)}function sa(t,r,u){return ae.parseExpressionAt(t,r,u)}function ra(t,r){return ae.tokenizer(t,r)}e.Node=Tt,e.Parser=ae,e.Position=m,e.SourceLocation=b,e.TokContext=Be,e.Token=Gt,e.TokenType=I,e.defaultOptions=w,e.getLineInfo=S,e.isIdentifierChar=P,e.isIdentifierStart=z,e.isNewLine=Ve,e.keywordTypes=Ne,e.lineBreak=ve,e.lineBreakG=ne,e.nonASCIIwhitespace=Ct,e.parse=ia,e.parseExpressionAt=sa,e.tokContexts=pe,e.tokTypes=d,e.tokenizer=ra,e.version=ds}))});var ur=yi((Tn,Li)=>{"use strict";var Ya=rr(),Za=/^[\da-fA-F]+$/,$a=/^\d+$/,nr=new WeakMap;function or(e){e=e.Parser.acorn||e;let i=nr.get(e);if(!i){let a=e.tokTypes,o=e.TokContext,h=e.TokenType,x=new o("<tag",!1),v=new o("</tag",!1),k=new o("<tag>...</tag>",!0,!0),T={tc_oTag:x,tc_cTag:v,tc_expr:k},l={jsxName:new h("jsxName"),jsxText:new h("jsxText",{beforeExpr:!0}),jsxTagStart:new h("jsxTagStart",{startsExpr:!0}),jsxTagEnd:new h("jsxTagEnd")};l.jsxTagStart.updateContext=function(){this.context.push(k),this.context.push(x),this.exprAllowed=!1},l.jsxTagEnd.updateContext=function(D){let K=this.context.pop();K===x&&D===a.slash||K===v?(this.context.pop(),this.exprAllowed=this.curContext()===k):this.exprAllowed=!0},i={tokContexts:T,tokTypes:l},nr.set(e,i)}return i}function Vt(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 Vt(e.object)+"."+Vt(e.property)}Li.exports=function(e){return e=e||{},function(i){return en({allowNamespaces:e.allowNamespaces!==!1,allowNamespacedObjects:!!e.allowNamespacedObjects},i)}};Object.defineProperty(Li.exports,"tokTypes",{get:function(){return or(Ni()).tokTypes},configurable:!0,enumerable:!0});function en(e,i){let a=i.acorn||Ni(),o=or(a),h=a.tokTypes,x=o.tokTypes,v=a.tokContexts,k=o.tokContexts.tc_oTag,T=o.tokContexts.tc_cTag,l=o.tokContexts.tc_expr,D=a.isNewLine,K=a.isIdentifierStart,z=a.isIdentifierChar;return class extends i{static get acornJsx(){return o}jsx_readToken(){let P="",I=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(x.jsxTagStart)):this.getTokenFromCode(F):(P+=this.input.slice(I,this.pos),this.finishToken(x.jsxText,P));case 38:P+=this.input.slice(I,this.pos),P+=this.jsx_readEntity(),I=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:D(F)?(P+=this.input.slice(I,this.pos),P+=this.jsx_readNewLine(!0),I=this.pos):++this.pos}}}jsx_readNewLine(P){let I=this.input.charCodeAt(this.pos),F;return++this.pos,I===13&&this.input.charCodeAt(this.pos)===10?(++this.pos,F=P?`
|
|
10
10
|
`:`\r
|
|
11
|
-
`):D=String.fromCharCode(P),this.options.locations&&(++this.curLine,this.lineStart=this.pos),D}jsx_readString(I){let P="",D=++this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");let N=this.input.charCodeAt(this.pos);if(N===I)break;N===38?(P+=this.input.slice(D,this.pos),P+=this.jsx_readEntity(),D=this.pos):B(N)?(P+=this.input.slice(D,this.pos),P+=this.jsx_readNewLine(!1),D=this.pos):++this.pos}return P+=this.input.slice(D,this.pos++),this.finishToken(h.string,P)}jsx_readEntity(){let I="",P=0,D,N=this.input[this.pos];N!=="&"&&this.raise(this.pos,"Entity must start with an ampersand");let ee=++this.pos;for(;this.pos<this.input.length&&P++<10;){if(N=this.input[this.pos++],N===";"){I[0]==="#"?I[1]==="x"?(I=I.substr(2),$a.test(I)&&(D=String.fromCharCode(parseInt(I,16)))):(I=I.substr(1),en.test(I)&&(D=String.fromCharCode(parseInt(I,10)))):D=Za[I];break}I+=N}return D||(this.pos=ee,"&")}jsx_readWord(){let I,P=this.pos;do I=this.input.charCodeAt(++this.pos);while(z(I)||I===45);return this.finishToken(x.jsxName,this.input.slice(P,this.pos))}jsx_parseIdentifier(){let I=this.startNode();return this.type===x.jsxName?I.name=this.value:this.type.keyword?I.name=this.type.keyword:this.unexpected(),this.next(),this.finishNode(I,"JSXIdentifier")}jsx_parseNamespacedName(){let I=this.start,P=this.startLoc,D=this.jsx_parseIdentifier();if(!e.allowNamespaces||!this.eat(h.colon))return D;var N=this.startNodeAt(I,P);return N.namespace=D,N.name=this.jsx_parseIdentifier(),this.finishNode(N,"JSXNamespacedName")}jsx_parseElementName(){if(this.type===x.jsxTagEnd)return"";let I=this.start,P=this.startLoc,D=this.jsx_parseNamespacedName();for(this.type===h.dot&&D.type==="JSXNamespacedName"&&!e.allowNamespacedObjects&&this.unexpected();this.eat(h.dot);){let N=this.startNodeAt(I,P);N.object=D,N.property=this.jsx_parseIdentifier(),D=this.finishNode(N,"JSXMemberExpression")}return D}jsx_parseAttributeValue(){switch(this.type){case h.braceL:let I=this.jsx_parseExpressionContainer();return I.expression.type==="JSXEmptyExpression"&&this.raise(I.start,"JSX attributes must only be assigned a non-empty expression"),I;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 I=this.startNodeAt(this.lastTokEnd,this.lastTokEndLoc);return this.finishNodeAt(I,"JSXEmptyExpression",this.start,this.startLoc)}jsx_parseExpressionContainer(){let I=this.startNode();return this.next(),I.expression=this.type===h.braceR?this.jsx_parseEmptyExpression():this.parseExpression(),this.expect(h.braceR),this.finishNode(I,"JSXExpressionContainer")}jsx_parseAttribute(){let I=this.startNode();return this.eat(h.braceL)?(this.expect(h.ellipsis),I.argument=this.parseMaybeAssign(),this.expect(h.braceR),this.finishNode(I,"JSXSpreadAttribute")):(I.name=this.jsx_parseNamespacedName(),I.value=this.eat(h.eq)?this.jsx_parseAttributeValue():null,this.finishNode(I,"JSXAttribute"))}jsx_parseOpeningElementAt(I,P){let D=this.startNodeAt(I,P);D.attributes=[];let N=this.jsx_parseElementName();for(N&&(D.name=N);this.type!==h.slash&&this.type!==x.jsxTagEnd;)D.attributes.push(this.jsx_parseAttribute());return D.selfClosing=this.eat(h.slash),this.expect(x.jsxTagEnd),this.finishNode(D,N?"JSXOpeningElement":"JSXOpeningFragment")}jsx_parseClosingElementAt(I,P){let D=this.startNodeAt(I,P),N=this.jsx_parseElementName();return N&&(D.name=N),this.expect(x.jsxTagEnd),this.finishNode(D,N?"JSXClosingElement":"JSXClosingFragment")}jsx_parseElementAt(I,P){let D=this.startNodeAt(I,P),N=[],ee=this.jsx_parseOpeningElementAt(I,P),Ne=null;if(!ee.selfClosing){e:for(;;)switch(this.type){case x.jsxTagStart:if(I=this.start,P=this.startLoc,this.next(),this.eat(h.slash)){Ne=this.jsx_parseClosingElementAt(I,P);break e}N.push(this.jsx_parseElementAt(I,P));break;case x.jsxText:N.push(this.parseExprAtom());break;case h.braceL:N.push(this.jsx_parseExpressionContainer());break;default:this.unexpected()}Ot(Ne.name)!==Ot(ee.name)&&this.raise(Ne.start,"Expected corresponding JSX closing tag for <"+Ot(ee.name)+">")}let Y=ee.name?"Element":"Fragment";return D["opening"+Y]=ee,D["closing"+Y]=Ne,D.children=N,this.type===h.relational&&this.value==="<"&&this.raise(this.start,"Adjacent JSX elements must be wrapped in an enclosing tag"),this.finishNode(D,"JSX"+Y)}jsx_parseText(){let I=this.parseLiteral(this.value);return I.type="JSXText",I}jsx_parseElement(){let I=this.start,P=this.startLoc;return this.next(),this.jsx_parseElementAt(I,P)}parseExprAtom(I){return this.type===x.jsxText?this.jsx_parseText():this.type===x.jsxTagStart?this.jsx_parseElement():super.parseExprAtom(I)}readToken(I){let P=this.curContext();if(P===l)return this.jsx_readToken();if(P===k||P===_){if(Q(I))return this.jsx_readWord();if(I==62)return++this.pos,this.finishToken(x.jsxTagEnd);if((I===34||I===39)&&P==k)return this.jsx_readString(I)}return I===60&&this.exprAllowed&&this.input.charCodeAt(this.pos+1)!==33?(++this.pos,this.finishToken(x.jsxTagStart)):super.readToken(I)}updateContext(I){if(this.type==h.braceL){var P=this.curContext();P==k?this.context.push(v.b_expr):P==l?this.context.push(v.b_tmpl):super.updateContext(I),this.exprAllowed=!0}else if(this.type===h.slash&&I===x.jsxTagStart)this.context.length-=2,this.context.push(_),this.exprAllowed=!1;else return super.updateContext(I)}}}});var ai={};pa(ai,{Node:()=>Rt,Parser:()=>de,Position:()=>vt,SourceLocation:()=>Nt,TokContext:()=>Ae,Token:()=>ri,TokenType:()=>Z,defaultOptions:()=>Jt,getLineInfo:()=>Ai,isIdentifierChar:()=>Ze,isIdentifierStart:()=>Ge,isNewLine:()=>ct,keywordTypes:()=>ht,lineBreak:()=>_e,lineBreakG:()=>Ss,nonASCIIwhitespace:()=>ki,parse:()=>Ja,parseExpressionAt:()=>Qa,tokContexts:()=>fe,tokTypes:()=>f,tokenizer:()=>Ya,version:()=>er});var da=[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],vs=[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],ma="\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",gs="\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",vi={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"},gi="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:gi,"5module":gi+" export import",6:gi+" const class extends export import super"},bs=/^in(stanceof)?$/,ya=new RegExp("["+gs+"]"),va=new RegExp("["+gs+ma+"]");function Si(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 Ge(e,i){return e<65?e===36:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&ya.test(String.fromCharCode(e)):i===!1?!1:Si(e,vs)}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&&va.test(String.fromCharCode(e)):i===!1?!1:Si(e,vs)||Si(e,da)}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},ht={};function re(e,i){return i===void 0&&(i={}),i.keyword=e,ht[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/,Ss=new RegExp(_e.source,"g");function ct(e){return e===10||e===13||e===8232||e===8233}function Cs(e,i,a){a===void 0&&(a=e.length);for(var o=i;o<a;o++){var h=e.charCodeAt(o);if(ct(h))return o<a-1&&h===13&&e.charCodeAt(o+1)===10?o+2:o+1}return-1}var ki=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,Ee=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,ws=Object.prototype,ga=ws.hasOwnProperty,ba=ws.toString,gt=Object.hasOwn||(function(e,i){return ga.call(e,i)}),fs=Array.isArray||(function(e){return ba.call(e)==="[object Array]"}),ds=Object.create(null);function rt(e){return ds[e]||(ds[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 Sa=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,vt=function(i,a){this.line=i,this.column=a};vt.prototype.offset=function(i){return new vt(this.line,this.column+i)};var Nt=function(i,a,o){this.start=a,this.end=o,i.sourceFile!==null&&(this.source=i.sourceFile)};function Ai(e,i){for(var a=1,o=0;;){var h=Cs(e,o,i);if(h<0)return new vt(a,i-o);++a,o=h}}var Jt={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},ms=!1;function Ca(e){var i={};for(var a in Jt)i[a]=e&>(e,a)?e[a]:Jt[a];if(i.ecmaVersion==="latest"?i.ecmaVersion=1e8:i.ecmaVersion==null?(!ms&&typeof console=="object"&&console.warn&&(ms=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
|
|
12
|
-
Defaulting to 2020, but this will stop working in the future.`)),i.ecmaVersion=11):i.ecmaVersion>=2015&&(i.ecmaVersion-=2009),i.allowReserved==null&&(i.allowReserved=i.ecmaVersion<5),(!e||e.allowHashBang==null)&&(i.allowHashBang=i.ecmaVersion>=14),
|
|
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"?pt:ut),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&pt)>0};He.inGenerator.get=function(){return(this.currentVarScope().flags&ks)>0};He.inAsync.get=function(){return(this.currentVarScope().flags&Ei)>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&(lt|Lt))return!1;if(a&pt)return(a&Ei)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction};He.allowReturn.get=function(){return!!(this.inFunction||this.options.allowReturnOutsideFunction&&this.currentVarScope().flags&ut)};He.allowSuper.get=function(){var e=this.currentThisScope(),i=e.flags;return(i&ei)>0||this.options.allowSuperOutsideMethod};He.allowDirectSuper.get=function(){return(this.currentThisScope().flags&Es)>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&(lt|Lt)||a&pt&&!(a&_i))return!0}return!1};He.allowUsing.get=function(){var e=this.currentScope(),i=e.flags;return!(i&_s||!this.inModule&&i&ut)};He.inClassStaticBlock.get=function(){return(this.currentVarScope().flags<)>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,ka=/^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;Te.strictDirective=function(e){if(this.options.ecmaVersion<5)return!1;for(;;){Ee.lastIndex=e,e+=Ee.exec(this.input)[0].length;var i=ka.exec(this.input.slice(e));if(!i)return!1;if((i[1]||i[2])==="use strict"){Ee.lastIndex=e+i[0].length;var a=Ee.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,Ee.lastIndex=e,e+=Ee.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 ii=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 H=de.prototype;H.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 Ii={kind:"loop"},Aa={kind:"switch"};H.isLet=function(e){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;Ee.lastIndex=this.pos;var i=Ee.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(Ge(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(!bs.test(x))return!0}return!1};H.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;Ee.lastIndex=this.pos;var e=Ee.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))};H.isUsingKeyword=function(e,i){if(this.options.ecmaVersion<17||!this.isContextual(e?"await":"using"))return!1;Ee.lastIndex=this.pos;var a=Ee.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;Ee.lastIndex=h;var v=Ee.exec(this.input);if(o=h+v[0].length,v&&_e.test(this.input.slice(h,o)))return!1}var k=this.fullCharCodeAt(o);if(!Ge(k)&&k!==92)return!1;var _=o;do o+=k<=65535?1:2;while(Ze(k=this.fullCharCodeAt(o)));if(k===92)return!0;var l=this.input.slice(_,o);return!(bs.test(l)||i&&l==="of")};H.isAwaitUsing=function(e){return this.isUsingKeyword(!0,e)};H.isUsing=function(e){return this.isUsingKeyword(!1,e)};H.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){Ee.lastIndex=this.pos;var v=Ee.exec(this.input),k=this.pos+v[0].length,_=this.input.charCodeAt(k);if(_===40||_===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 B=this.value,Q=this.parseExpression();return o===f.name&&Q.type==="Identifier"&&this.eat(f.colon)?this.parseLabeledStatement(h,B,Q,e):this.parseExpressionStatement(h,Q)}};H.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")};H.parseDebuggerStatement=function(e){return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement")};H.parseDoStatement=function(e){return this.next(),this.labels.push(Ii),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")};H.parseForStatement=function(e){this.next();var i=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(Ii),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"),v=!1,k=this.isUsing(!0)?"using":this.isAwaitUsing(!0)?"await using":null;if(k){var _=this.startNode();return this.next(),k==="await using"&&(this.canAwait||this.raise(this.start,"Await using cannot appear outside of async function"),this.next()),this.parseVar(_,!0,k),this.finishNode(_,"VariableDeclaration"),this.parseForAfterInit(e,_,i)}var l=this.containsEsc,B=new ii,Q=this.start,z=i>-1?this.parseExprSubscripts(B,"await"):this.parseExpression(!0,B);return this.type===f._in||(v=this.options.ecmaVersion>=6&&this.isContextual("of"))?(i>-1?(this.type===f._in&&this.unexpected(i),e.await=!0):v&&this.options.ecmaVersion>=8&&(z.start===Q&&!l&&z.type==="Identifier"&&z.name==="async"?this.unexpected():this.options.ecmaVersion>=9&&(e.await=!1)),x&&v&&this.raise(z.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(z,!1,B),this.checkLValPattern(z),this.parseForIn(e,z)):(this.checkExpressionErrors(B,!0),i>-1&&this.unexpected(i),this.parseFor(e,z))};H.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))};H.parseFunctionStatement=function(e,i,a){return this.next(),this.parseFunction(e,It|(a?0:Ci),!1,i)};H.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")};H.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")};H.parseSwitchStatement=function(e){this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(f.braceL),this.labels.push(Aa),this.enterScope(_s);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")};H.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 Ea=[];H.parseCatchClauseParam=function(){var e=this.parseBindingAtom(),i=e.type==="Identifier";return this.enterScope(i?As:0),this.checkLValPattern(e,i?Ps:tt),this.expect(f.parenR),e};H.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")};H.parseVarStatement=function(e,i,a){return this.next(),this.parseVar(e,!1,i,a),this.semicolon(),this.finishNode(e,"VariableDeclaration")};H.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(Ii),e.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(e,"WhileStatement")};H.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")};H.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,"EmptyStatement")};H.parseLabeledStatement=function(e,i,a,o){for(var h=0,x=this.labels;h<x.length;h+=1){var v=x[h];v.name===i&&this.raise(a.start,"Label '"+i+"' is already declared")}for(var k=this.type.isLoop?"loop":this.type===f._switch?"switch":null,_=this.labels.length-1;_>=0;_--){var l=this.labels[_];if(l.statementStart===e.start)l.statementStart=this.start,l.kind=k;else break}return this.labels.push({name:i,kind:k,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")};H.parseExpressionStatement=function(e,i){return e.expression=i,this.semicolon(),this.finishNode(e,"ExpressionStatement")};H.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")};H.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")};H.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")};H.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};H.parseVarId=function(e,i){e.id=i==="using"||i==="await using"?this.parseIdent():this.parseBindingAtom(),this.checkLValPattern(e.id,i==="var"?Pi:tt,!1)};var It=1,Ci=2,Ns=4;H.parseFunction=function(e,i,a,o,h){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!o)&&(this.type===f.star&&i&Ci&&this.unexpected(),e.generator=this.eat(f.star)),this.options.ecmaVersion>=8&&(e.async=!!o),i&It&&(e.id=i&Ns&&this.type!==f.name?null:this.parseIdent(),e.id&&!(i&Ci)&&this.checkLValSimple(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?Pi:tt:Ts));var x=this.yieldPos,v=this.awaitPos,k=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(Ti(e.async,e.generator)),i&It||(e.id=this.type===f.name?this.parseIdent():null),this.parseFunctionParams(e),this.parseFunctionBody(e,a,!1,h),this.yieldPos=x,this.awaitPos=v,this.awaitIdentPos=k,this.finishNode(e,i&It?"FunctionDeclaration":"FunctionExpression")};H.parseFunctionParams=function(e){this.expect(f.parenL),e.params=this.parseBindingList(f.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()};H.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 v=this.parseClassElement(e.superClass!==null);v&&(h.body.push(v),v.type==="MethodDefinition"&&v.kind==="constructor"?(x&&this.raiseRecoverable(v.start,"Duplicate constructor in the same class"),x=!0):v.key&&v.key.type==="PrivateIdentifier"&&_a(o,v)&&this.raiseRecoverable(v.key.start,"Identifier '#"+v.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")};H.parseClassElement=function(e){if(this.eat(f.semi))return null;var i=this.options.ecmaVersion,a=this.startNode(),o="",h=!1,x=!1,v="method",k=!1;if(this.eatContextual("static")){if(i>=13&&this.eat(f.braceL))return this.parseClassStaticBlock(a),a;this.isClassElementNameStart()||this.type===f.star?k=!0:o="static"}if(a.static=k,!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 _=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?v=_:o=_)}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||v!=="method"||h||x){var l=!a.static&&Yt(a,"constructor"),B=l&&e;l&&v!=="method"&&this.raise(a.key.start,"Constructor can't have get/set modifier"),a.kind=l?"constructor":v,this.parseClassMethod(a,h,x,B)}else this.parseClassField(a);return a};H.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};H.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)};H.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&&Yt(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")};H.parseClassField=function(e){return Yt(e,"constructor")?this.raise(e.key.start,"Classes can't have a field named 'constructor'"):e.static&&Yt(e,"prototype")&&this.raise(e.key.start,"Classes can't have a static field named 'prototype'"),this.eat(f.eq)?(this.enterScope(Lt|ei),e.value=this.parseMaybeAssign(),this.exitScope()):e.value=null,this.semicolon(),this.finishNode(e,"PropertyDefinition")};H.parseClassStaticBlock=function(e){e.body=[];var i=this.labels;for(this.labels=[],this.enterScope(lt|ei);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")};H.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)};H.parseClassSuper=function(e){e.superClass=this.eat(f._extends)?this.parseExprSubscripts(null,!1):null};H.enterClassBody=function(){var e={declared:Object.create(null),used:[]};return this.privateNameStack.push(e),e.declared};H.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 v=a[x];gt(i,v.name)||(h?h.used.push(v):this.raiseRecoverable(v.start,"Private field '#"+v.name+"' must be declared in an enclosing class"))}};function _a(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 Yt(e,i){var a=e.computed,o=e.key;return!a&&(o.type==="Identifier"&&o.name===i||o.type==="Literal"&&o.value===i)}H.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")};H.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")};H.parseExportDeclaration=function(e){return this.parseStatement(null)};H.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,It|Ns,!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}};H.checkExport=function(e,i,a){e&&(typeof i!="string"&&(i=i.type==="Identifier"?i.name:i.value),gt(e,i)&&this.raiseRecoverable(a,"Duplicate export '"+i+"'"),e[i]=!0)};H.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 v=0,k=i.elements;v<k.length;v+=1){var _=k[v];_&&this.checkPatternExport(e,_)}else a==="Property"?this.checkPatternExport(e,i.value):a==="AssignmentPattern"?this.checkPatternExport(e,i.left):a==="RestElement"&&this.checkPatternExport(e,i.argument)};H.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)}};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(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")};H.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};H.parseImport=function(e){return this.next(),this.type===f.string?(e.specifiers=Ea,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")};H.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")};H.parseImportDefaultSpecifier=function(){var e=this.startNode();return e.local=this.parseIdent(),this.checkLValSimple(e.local,tt),this.finishNode(e,"ImportDefaultSpecifier")};H.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")};H.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};H.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;gt(i,h)&&this.raiseRecoverable(o.key.start,"Duplicate attribute key '"+h+"'"),i[h]=!0,e.push(o)}return e};H.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")};H.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===f.string){var e=this.parseLiteral(this.value);return Sa.test(e.value)&&this.raise(e.start,"An export name cannot include a lone surrogate."),e}return this.parseIdent(!0)};H.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)};H.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 v=this.parseRestBinding();this.parseBindingListItem(v),h.push(v),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=Qt);var o=i!==Qt;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&&(gt(a,e.name)&&this.raiseRecoverable(e.start,"Argument name clash"),a[e.name]=!0),i!==Is&&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=Qt),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 v=0,k=e.elements;v<k.length;v+=1){var _=k[v];_&&this.checkLValInnerPattern(_,i,a)}break;default:this.checkLValSimple(e,i,a)}};We.checkLValInnerPattern=function(e,i,a){switch(i===void 0&&(i=Qt),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 Ae=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 Ae("{",!1),b_expr:new Ae("{",!0),b_tmpl:new Ae("${",!1),p_stat:new Ae("(",!1),p_expr:new Ae("(",!0),q_tmpl:new Ae("`",!0,!0,function(e){return e.tryReadTemplateToken()}),f_stat:new Ae("function",!1),f_expr:new Ae("function",!0),f_expr_gen:new Ae("function",!0,!1,null,!0),f_gen:new Ae("function",!1,!1,null,!0)},bt=de.prototype;bt.initialContext=function(){return[fe.b_stat]};bt.curContext=function(){return this.context[this.context.length-1]};bt.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};bt.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};bt.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};bt.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 J=de.prototype;J.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 v=i[h];if(v){var k;x==="init"?k=this.strict&&v.init||v.get||v.set:k=v.init||v[x],k&&this.raiseRecoverable(o.start,"Redefinition of property")}else v=i[h]={init:!1,get:!1,set:!1};v[x]=!0}};J.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};J.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,v=-1;i?(h=i.parenthesizedAssign,x=i.trailingComma,v=i.doubleProto,i.parenthesizedAssign=i.trailingComma=-1):(i=new ii,o=!0);var k=this.start,_=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,k,_)),this.type.isAssign){var B=this.startNodeAt(k,_);return B.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),B.left=l,this.next(),B.right=this.parseMaybeAssign(e),v>-1&&(i.doubleProto=v),this.finishNode(B,"AssignmentExpression")}else o&&this.checkExpressionErrors(i,!0);return h>-1&&(i.parenthesizedAssign=h),x>-1&&(i.trailingComma=x),l};J.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};J.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)};J.parseExprOp=function(e,i,a,o,h){var x=this.type.binop;if(x!=null&&(!h||this.type!==f._in)&&x>o){var v=this.type===f.logicalOR||this.type===f.logicalAND,k=this.type===f.coalesce;k&&(x=f.logicalAND.binop);var _=this.value;this.next();var l=this.start,B=this.startLoc,Q=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,h),l,B,x,h),z=this.buildBinary(i,a,e,Q,_,v||k);return(v&&this.type===f.coalesce||k&&(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(z,i,a,o,h)}return e};J.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 v=this.startNodeAt(e,i);return v.left=a,v.operator=h,v.right=o,this.finishNode(v,x?"LogicalExpression":"BinaryExpression")};J.parseMaybeUnary=function(e,i,a,o){var h=this.start,x=this.startLoc,v;if(this.isContextual("await")&&this.canAwait)v=this.parseAwait(o),i=!0;else if(this.type.prefix){var k=this.startNode(),_=this.type===f.incDec;k.operator=this.value,k.prefix=!0,this.next(),k.argument=this.parseMaybeUnary(null,!0,_,o),this.checkExpressionErrors(e,!0),_?this.checkLValSimple(k.argument):this.strict&&k.operator==="delete"&&Ls(k.argument)?this.raiseRecoverable(k.start,"Deleting local variable in strict mode"):k.operator==="delete"&&wi(k.argument)?this.raiseRecoverable(k.start,"Private fields can not be deleted"):i=!0,v=this.finishNode(k,_?"UpdateExpression":"UnaryExpression")}else if(!i&&this.type===f.privateId)(o||this.privateNameStack.length===0)&&this.options.checkPrivateFields&&this.unexpected(),v=this.parsePrivateIdent(),this.type!==f._in&&this.unexpected();else{if(v=this.parseExprSubscripts(e,o),this.checkExpressionErrors(e))return v;for(;this.type.postfix&&!this.canInsertSemicolon();){var l=this.startNodeAt(h,x);l.operator=this.value,l.prefix=!1,l.argument=v,this.checkLValSimple(v),this.next(),v=this.finishNode(l,"UpdateExpression")}}if(!a&&this.eat(f.starstar))if(i)this.unexpected(this.lastTokStart);else return this.buildBinary(h,x,v,this.parseMaybeUnary(null,!1,!1,o),"**",!1);else return v};function Ls(e){return e.type==="Identifier"||e.type==="ParenthesizedExpression"&&Ls(e.expression)}function wi(e){return e.type==="MemberExpression"&&e.property.type==="PrivateIdentifier"||e.type==="ChainExpression"&&wi(e.expression)||e.type==="ParenthesizedExpression"&&wi(e.expression)}J.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};J.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,v=!1;;){var k=this.parseSubscript(e,i,a,o,x,v,h);if(k.optional&&(v=!0),k===e||k.type==="ArrowFunctionExpression"){if(v){var _=this.startNodeAt(i,a);_.expression=k,k=this.finishNode(_,"ChainExpression")}return k}e=k}};J.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(f.arrow)};J.parseSubscriptAsyncArrow=function(e,i,a,o){return this.parseArrowExpression(this.startNodeAt(e,i),a,!0,o)};J.parseSubscript=function(e,i,a,o,h,x,v){var k=this.options.ecmaVersion>=11,_=k&&this.eat(f.questionDot);o&&_&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var l=this.eat(f.bracketL);if(l||_&&this.type!==f.parenL&&this.type!==f.backQuote||this.eat(f.dot)){var B=this.startNodeAt(i,a);B.object=e,l?(B.property=this.parseExpression(),this.expect(f.bracketR)):this.type===f.privateId&&e.type!=="Super"?B.property=this.parsePrivateIdent():B.property=this.parseIdent(this.options.allowReserved!=="never"),B.computed=!!l,k&&(B.optional=_),e=this.finishNode(B,"MemberExpression")}else if(!o&&this.eat(f.parenL)){var Q=new ii,z=this.yieldPos,I=this.awaitPos,P=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var D=this.parseExprList(f.parenR,this.options.ecmaVersion>=8,!1,Q);if(h&&!_&&this.shouldParseAsyncArrow())return this.checkPatternErrors(Q,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=z,this.awaitPos=I,this.awaitIdentPos=P,this.parseSubscriptAsyncArrow(i,a,D,v);this.checkExpressionErrors(Q,!0),this.yieldPos=z||this.yieldPos,this.awaitPos=I||this.awaitPos,this.awaitIdentPos=P||this.awaitIdentPos;var N=this.startNodeAt(i,a);N.callee=e,N.arguments=D,k&&(N.optional=_),e=this.finishNode(N,"CallExpression")}else if(this.type===f.backQuote){(_||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};J.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,v=this.startLoc,k=this.containsEsc,_=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!k&&_.name==="async"&&!this.canInsertSemicolon()&&this.eat(f._function))return this.overrideContext(fe.f_expr),this.parseFunction(this.startNodeAt(x,v),0,!1,!0,i);if(h&&!this.canInsertSemicolon()){if(this.eat(f.arrow))return this.parseArrowExpression(this.startNodeAt(x,v),[_],!1,i);if(this.options.ecmaVersion>=8&&_.name==="async"&&this.type===f.name&&!k&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc))return _=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(f.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(x,v),[_],!0,i)}return _;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 B=this.start,Q=this.parseParenAndDistinguishExpression(h,i);return e&&(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(Q)&&(e.parenthesizedAssign=B),e.parenthesizedBind<0&&(e.parenthesizedBind=B)),Q;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()}};J.parseExprAtomDefault=function(){this.unexpected()};J.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()};J.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")};J.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")};J.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")};J.parseParenExpression=function(){this.expect(f.parenL);var e=this.parseExpression();return this.expect(f.parenR),e};J.shouldParseArrow=function(e){return!this.canInsertSemicolon()};J.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 v=this.start,k=this.startLoc,_=[],l=!0,B=!1,Q=new ii,z=this.yieldPos,I=this.awaitPos,P;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)){B=!0;break}else if(this.type===f.ellipsis){P=this.start,_.push(this.parseParenItem(this.parseRestBinding())),this.type===f.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}else _.push(this.parseMaybeAssign(!1,Q,this.parseParenItem));var D=this.lastTokEnd,N=this.lastTokEndLoc;if(this.expect(f.parenR),e&&this.shouldParseArrow(_)&&this.eat(f.arrow))return this.checkPatternErrors(Q,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=z,this.awaitPos=I,this.parseParenArrowList(a,o,_,i);(!_.length||B)&&this.unexpected(this.lastTokStart),P&&this.unexpected(P),this.checkExpressionErrors(Q,!0),this.yieldPos=z||this.yieldPos,this.awaitPos=I||this.awaitPos,_.length>1?(h=this.startNodeAt(v,k),h.expressions=_,this.finishNodeAt(h,"SequenceExpression",D,N)):h=_[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};J.parseParenItem=function(e){return e};J.parseParenArrowList=function(e,i,a,o){return this.parseArrowExpression(this.startNodeAt(e,i),a,!1,o)};var Ta=[];J.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=Ta,this.finishNode(e,"NewExpression")};J.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,`
|
|
11
|
+
`):F=String.fromCharCode(I),this.options.locations&&(++this.curLine,this.lineStart=this.pos),F}jsx_readString(P){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===P)break;L===38?(I+=this.input.slice(F,this.pos),I+=this.jsx_readEntity(),F=this.pos):D(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 P="",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===";"){P[0]==="#"?P[1]==="x"?(P=P.substr(2),Za.test(P)&&(F=String.fromCharCode(parseInt(P,16)))):(P=P.substr(1),$a.test(P)&&(F=String.fromCharCode(parseInt(P,10)))):F=Ya[P];break}P+=L}return F||(this.pos=ee,"&")}jsx_readWord(){let P,I=this.pos;do P=this.input.charCodeAt(++this.pos);while(z(P)||P===45);return this.finishToken(x.jsxName,this.input.slice(I,this.pos))}jsx_parseIdentifier(){let P=this.startNode();return this.type===x.jsxName?P.name=this.value:this.type.keyword?P.name=this.type.keyword:this.unexpected(),this.next(),this.finishNode(P,"JSXIdentifier")}jsx_parseNamespacedName(){let P=this.start,I=this.startLoc,F=this.jsx_parseIdentifier();if(!e.allowNamespaces||!this.eat(h.colon))return F;var L=this.startNodeAt(P,I);return L.namespace=F,L.name=this.jsx_parseIdentifier(),this.finishNode(L,"JSXNamespacedName")}jsx_parseElementName(){if(this.type===x.jsxTagEnd)return"";let P=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(P,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 P=this.jsx_parseExpressionContainer();return P.expression.type==="JSXEmptyExpression"&&this.raise(P.start,"JSX attributes must only be assigned a non-empty expression"),P;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 P=this.startNodeAt(this.lastTokEnd,this.lastTokEndLoc);return this.finishNodeAt(P,"JSXEmptyExpression",this.start,this.startLoc)}jsx_parseExpressionContainer(){let P=this.startNode();return this.next(),P.expression=this.type===h.braceR?this.jsx_parseEmptyExpression():this.parseExpression(),this.expect(h.braceR),this.finishNode(P,"JSXExpressionContainer")}jsx_parseAttribute(){let P=this.startNode();return this.eat(h.braceL)?(this.expect(h.ellipsis),P.argument=this.parseMaybeAssign(),this.expect(h.braceR),this.finishNode(P,"JSXSpreadAttribute")):(P.name=this.jsx_parseNamespacedName(),P.value=this.eat(h.eq)?this.jsx_parseAttributeValue():null,this.finishNode(P,"JSXAttribute"))}jsx_parseOpeningElementAt(P,I){let F=this.startNodeAt(P,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(P,I){let F=this.startNodeAt(P,I),L=this.jsx_parseElementName();return L&&(F.name=L),this.expect(x.jsxTagEnd),this.finishNode(F,L?"JSXClosingElement":"JSXClosingFragment")}jsx_parseElementAt(P,I){let F=this.startNodeAt(P,I),L=[],ee=this.jsx_parseOpeningElementAt(P,I),Ne=null;if(!ee.selfClosing){e:for(;;)switch(this.type){case x.jsxTagStart:if(P=this.start,I=this.startLoc,this.next(),this.eat(h.slash)){Ne=this.jsx_parseClosingElementAt(P,I);break e}L.push(this.jsx_parseElementAt(P,I));break;case x.jsxText:L.push(this.parseExprAtom());break;case h.braceL:L.push(this.jsx_parseExpressionContainer());break;default:this.unexpected()}Vt(Ne.name)!==Vt(ee.name)&&this.raise(Ne.start,"Expected corresponding JSX closing tag for <"+Vt(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 P=this.parseLiteral(this.value);return P.type="JSXText",P}jsx_parseElement(){let P=this.start,I=this.startLoc;return this.next(),this.jsx_parseElementAt(P,I)}parseExprAtom(P){return this.type===x.jsxText?this.jsx_parseText():this.type===x.jsxTagStart?this.jsx_parseElement():super.parseExprAtom(P)}readToken(P){let I=this.curContext();if(I===l)return this.jsx_readToken();if(I===k||I===T){if(K(P))return this.jsx_readWord();if(P==62)return++this.pos,this.finishToken(x.jsxTagEnd);if((P===34||P===39)&&I==k)return this.jsx_readString(P)}return P===60&&this.exprAllowed&&this.input.charCodeAt(this.pos+1)!==33?(++this.pos,this.finishToken(x.jsxTagStart)):super.readToken(P)}updateContext(P){if(this.type==h.braceL){var I=this.curContext();I==k?this.context.push(v.b_expr):I==l?this.context.push(v.b_tmpl):super.updateContext(P),this.exprAllowed=!0}else if(this.type===h.slash&&P===x.jsxTagStart)this.context.length-=2,this.context.push(T),this.exprAllowed=!1;else return super.updateContext(P)}}}});var ai={};ca(ai,{Node:()=>Rt,Parser:()=>de,Position:()=>vt,SourceLocation:()=>Nt,TokContext:()=>Ae,Token:()=>ri,TokenType:()=>Z,defaultOptions:()=>Jt,getLineInfo:()=>Ai,isIdentifierChar:()=>Ze,isIdentifierStart:()=>Ge,isNewLine:()=>ct,keywordTypes:()=>ht,lineBreak:()=>Te,lineBreakG:()=>ws,nonASCIIwhitespace:()=>ki,parse:()=>Xa,parseExpressionAt:()=>Ja,tokContexts:()=>fe,tokTypes:()=>f,tokenizer:()=>Qa,version:()=>ir});var fa=[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],bs=[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],da="\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",Ss="\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",vi={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"},gi="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",ma={5:gi,"5module":gi+" export import",6:gi+" const class extends export import super"},Cs=/^in(stanceof)?$/,xa=new RegExp("["+Ss+"]"),ya=new RegExp("["+Ss+da+"]");function Si(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 Ge(e,i){return e<65?e===36:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&xa.test(String.fromCharCode(e)):i===!1?!1:Si(e,bs)}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:Si(e,bs)||Si(e,fa)}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},ht={};function re(e,i){return i===void 0&&(i={}),i.keyword=e,ht[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})},Te=/\r\n?|\n|\u2028|\u2029/,ws=new RegExp(Te.source,"g");function ct(e){return e===10||e===13||e===8232||e===8233}function ks(e,i,a){a===void 0&&(a=e.length);for(var o=i;o<a;o++){var h=e.charCodeAt(o);if(ct(h))return o<a-1&&h===13&&e.charCodeAt(o+1)===10?o+2:o+1}return-1}var ki=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,Ee=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,As=Object.prototype,va=As.hasOwnProperty,ga=As.toString,gt=Object.hasOwn||(function(e,i){return va.call(e,i)}),ms=Array.isArray||(function(e){return ga.call(e)==="[object Array]"}),xs=Object.create(null);function rt(e){return xs[e]||(xs[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 ba=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,vt=function(i,a){this.line=i,this.column=a};vt.prototype.offset=function(i){return new vt(this.line,this.column+i)};var Nt=function(i,a,o){this.start=a,this.end=o,i.sourceFile!==null&&(this.source=i.sourceFile)};function Ai(e,i){for(var a=1,o=0;;){var h=ks(e,o,i);if(h<0)return new vt(a,i-o);++a,o=h}}var Jt={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},ys=!1;function Sa(e){var i={};for(var a in Jt)i[a]=e&>(e,a)?e[a]:Jt[a];if(i.ecmaVersion==="latest"?i.ecmaVersion=1e8:i.ecmaVersion==null?(!ys&&typeof console=="object"&&console.warn&&(ys=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
|
|
12
|
+
Defaulting to 2020, but this will stop working in the future.`)),i.ecmaVersion=11):i.ecmaVersion>=2015&&(i.ecmaVersion-=2009),i.allowReserved==null&&(i.allowReserved=i.ecmaVersion<5),(!e||e.allowHashBang==null)&&(i.allowHashBang=i.ecmaVersion>=14),ms(i.onToken)){var o=i.onToken;i.onToken=function(h){return o.push(h)}}if(ms(i.onComment)&&(i.onComment=Ca(i,i.onComment)),i.sourceType==="commonjs"&&i.allowAwaitOutsideFunction)throw new Error("Cannot use allowAwaitOutsideFunction with sourceType: commonjs");return i}function Ca(e,i){return function(a,o,h,x,v,k){var T={type:a?"Block":"Line",value:o,start:h,end:x};e.locations&&(T.loc=new Nt(this,v,k)),e.ranges&&(T.range=[h,x]),i.push(T)}}var ut=1,pt=2,Ei=4,Es=8,Ti=16,Ts=32,ei=64,_s=128,lt=256,Lt=512,Ps=1024,ti=ut|pt|lt;function _i(e,i){return pt|(e?Ei:0)|(i?Es:0)}var Qt=0,Pi=1,tt=2,Is=3,Ns=4,Ls=5,de=function(i,a,o){this.options=i=Sa(i),this.sourceFile=i.sourceFile,this.keywords=rt(ma[i.ecmaVersion>=6?6:i.sourceType==="module"?"5module":5]);var h="";i.allowReserved!==!0&&(h=vi[i.ecmaVersion>=6?6:i.ecmaVersion===5?5:3],i.sourceType==="module"&&(h+=" await")),this.reservedWords=rt(h);var x=(h?h+" ":"")+vi.strict;this.reservedWordsStrict=rt(x),this.reservedWordsStrictBind=rt(x+" "+vi.strictBind),this.input=String(a),this.containsEsc=!1,o?(this.pos=o,this.lineStart=this.input.lastIndexOf(`
|
|
13
|
+
`,o-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(Te).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"?pt:ut),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&pt)>0};He.inGenerator.get=function(){return(this.currentVarScope().flags&Es)>0};He.inAsync.get=function(){return(this.currentVarScope().flags&Ei)>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&(lt|Lt))return!1;if(a&pt)return(a&Ei)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction};He.allowReturn.get=function(){return!!(this.inFunction||this.options.allowReturnOutsideFunction&&this.currentVarScope().flags&ut)};He.allowSuper.get=function(){var e=this.currentThisScope(),i=e.flags;return(i&ei)>0||this.options.allowSuperOutsideMethod};He.allowDirectSuper.get=function(){return(this.currentThisScope().flags&_s)>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&(lt|Lt)||a&pt&&!(a&Ti))return!0}return!1};He.allowUsing.get=function(){var e=this.currentScope(),i=e.flags;return!(i&Ps||!this.inModule&&i&ut)};He.inClassStaticBlock.get=function(){return(this.currentVarScope().flags<)>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 _e=de.prototype,wa=/^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;_e.strictDirective=function(e){if(this.options.ecmaVersion<5)return!1;for(;;){Ee.lastIndex=e,e+=Ee.exec(this.input)[0].length;var i=wa.exec(this.input.slice(e));if(!i)return!1;if((i[1]||i[2])==="use strict"){Ee.lastIndex=e+i[0].length;var a=Ee.exec(this.input),o=a.index+a[0].length,h=this.input.charAt(o);return h===";"||h==="}"||Te.test(a[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(h)||h==="!"&&this.input.charAt(o+1)==="=")}e+=i[0].length,Ee.lastIndex=e,e+=Ee.exec(this.input)[0].length,this.input[e]===";"&&e++}};_e.eat=function(e){return this.type===e?(this.next(),!0):!1};_e.isContextual=function(e){return this.type===f.name&&this.value===e&&!this.containsEsc};_e.eatContextual=function(e){return this.isContextual(e)?(this.next(),!0):!1};_e.expectContextual=function(e){this.eatContextual(e)||this.unexpected()};_e.canInsertSemicolon=function(){return this.type===f.eof||this.type===f.braceR||Te.test(this.input.slice(this.lastTokEnd,this.start))};_e.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0};_e.semicolon=function(){!this.eat(f.semi)&&!this.insertSemicolon()&&this.unexpected()};_e.afterTrailingComma=function(e,i){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),i||this.next(),!0};_e.expect=function(e){this.eat(e)||this.unexpected()};_e.unexpected=function(e){this.raise(e??this.start,"Unexpected token")};var ii=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};_e.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")}};_e.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")};_e.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")};_e.isSimpleAssignTarget=function(e){return e.type==="ParenthesizedExpression"?this.isSimpleAssignTarget(e.expression):e.type==="Identifier"||e.type==="MemberExpression"};var H=de.prototype;H.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 Ii={kind:"loop"},ka={kind:"switch"};H.isLet=function(e){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;Ee.lastIndex=this.pos;var i=Ee.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(Ge(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(!Cs.test(x))return!0}return!1};H.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;Ee.lastIndex=this.pos;var e=Ee.exec(this.input),i=this.pos+e[0].length,a;return!Te.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))};H.isUsingKeyword=function(e,i){if(this.options.ecmaVersion<17||!this.isContextual(e?"await":"using"))return!1;Ee.lastIndex=this.pos;var a=Ee.exec(this.input),o=this.pos+a[0].length;if(Te.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;Ee.lastIndex=h;var v=Ee.exec(this.input);if(o=h+v[0].length,v&&Te.test(this.input.slice(h,o)))return!1}var k=this.fullCharCodeAt(o);if(!Ge(k)&&k!==92)return!1;var T=o;do o+=k<=65535?1:2;while(Ze(k=this.fullCharCodeAt(o)));if(k===92)return!0;var l=this.input.slice(T,o);return!(Cs.test(l)||i&&l==="of")};H.isAwaitUsing=function(e){return this.isUsingKeyword(!0,e)};H.isUsing=function(e){return this.isUsingKeyword(!1,e)};H.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){Ee.lastIndex=this.pos;var v=Ee.exec(this.input),k=this.pos+v[0].length,T=this.input.charCodeAt(k);if(T===40||T===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 D=this.value,K=this.parseExpression();return o===f.name&&K.type==="Identifier"&&this.eat(f.colon)?this.parseLabeledStatement(h,D,K,e):this.parseExpressionStatement(h,K)}};H.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")};H.parseDebuggerStatement=function(e){return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement")};H.parseDoStatement=function(e){return this.next(),this.labels.push(Ii),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")};H.parseForStatement=function(e){this.next();var i=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(Ii),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"),v=!1,k=this.isUsing(!0)?"using":this.isAwaitUsing(!0)?"await using":null;if(k){var T=this.startNode();return this.next(),k==="await using"&&(this.canAwait||this.raise(this.start,"Await using cannot appear outside of async function"),this.next()),this.parseVar(T,!0,k),this.finishNode(T,"VariableDeclaration"),this.parseForAfterInit(e,T,i)}var l=this.containsEsc,D=new ii,K=this.start,z=i>-1?this.parseExprSubscripts(D,"await"):this.parseExpression(!0,D);return this.type===f._in||(v=this.options.ecmaVersion>=6&&this.isContextual("of"))?(i>-1?(this.type===f._in&&this.unexpected(i),e.await=!0):v&&this.options.ecmaVersion>=8&&(z.start===K&&!l&&z.type==="Identifier"&&z.name==="async"?this.unexpected():this.options.ecmaVersion>=9&&(e.await=!1)),x&&v&&this.raise(z.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(z,!1,D),this.checkLValPattern(z),this.parseForIn(e,z)):(this.checkExpressionErrors(D,!0),i>-1&&this.unexpected(i),this.parseFor(e,z))};H.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))};H.parseFunctionStatement=function(e,i,a){return this.next(),this.parseFunction(e,It|(a?0:Ci),!1,i)};H.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")};H.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")};H.parseSwitchStatement=function(e){this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(f.braceL),this.labels.push(ka),this.enterScope(Ps);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")};H.parseThrowStatement=function(e){return this.next(),Te.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 Aa=[];H.parseCatchClauseParam=function(){var e=this.parseBindingAtom(),i=e.type==="Identifier";return this.enterScope(i?Ts:0),this.checkLValPattern(e,i?Ns:tt),this.expect(f.parenR),e};H.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")};H.parseVarStatement=function(e,i,a){return this.next(),this.parseVar(e,!1,i,a),this.semicolon(),this.finishNode(e,"VariableDeclaration")};H.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(Ii),e.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(e,"WhileStatement")};H.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")};H.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,"EmptyStatement")};H.parseLabeledStatement=function(e,i,a,o){for(var h=0,x=this.labels;h<x.length;h+=1){var v=x[h];v.name===i&&this.raise(a.start,"Label '"+i+"' is already declared")}for(var k=this.type.isLoop?"loop":this.type===f._switch?"switch":null,T=this.labels.length-1;T>=0;T--){var l=this.labels[T];if(l.statementStart===e.start)l.statementStart=this.start,l.kind=k;else break}return this.labels.push({name:i,kind:k,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")};H.parseExpressionStatement=function(e,i){return e.expression=i,this.semicolon(),this.finishNode(e,"ExpressionStatement")};H.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")};H.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")};H.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")};H.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};H.parseVarId=function(e,i){e.id=i==="using"||i==="await using"?this.parseIdent():this.parseBindingAtom(),this.checkLValPattern(e.id,i==="var"?Pi:tt,!1)};var It=1,Ci=2,Rs=4;H.parseFunction=function(e,i,a,o,h){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!o)&&(this.type===f.star&&i&Ci&&this.unexpected(),e.generator=this.eat(f.star)),this.options.ecmaVersion>=8&&(e.async=!!o),i&It&&(e.id=i&Rs&&this.type!==f.name?null:this.parseIdent(),e.id&&!(i&Ci)&&this.checkLValSimple(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?Pi:tt:Is));var x=this.yieldPos,v=this.awaitPos,k=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(_i(e.async,e.generator)),i&It||(e.id=this.type===f.name?this.parseIdent():null),this.parseFunctionParams(e),this.parseFunctionBody(e,a,!1,h),this.yieldPos=x,this.awaitPos=v,this.awaitIdentPos=k,this.finishNode(e,i&It?"FunctionDeclaration":"FunctionExpression")};H.parseFunctionParams=function(e){this.expect(f.parenL),e.params=this.parseBindingList(f.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()};H.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 v=this.parseClassElement(e.superClass!==null);v&&(h.body.push(v),v.type==="MethodDefinition"&&v.kind==="constructor"?(x&&this.raiseRecoverable(v.start,"Duplicate constructor in the same class"),x=!0):v.key&&v.key.type==="PrivateIdentifier"&&Ea(o,v)&&this.raiseRecoverable(v.key.start,"Identifier '#"+v.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")};H.parseClassElement=function(e){if(this.eat(f.semi))return null;var i=this.options.ecmaVersion,a=this.startNode(),o="",h=!1,x=!1,v="method",k=!1;if(this.eatContextual("static")){if(i>=13&&this.eat(f.braceL))return this.parseClassStaticBlock(a),a;this.isClassElementNameStart()||this.type===f.star?k=!0:o="static"}if(a.static=k,!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 T=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?v=T:o=T)}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||v!=="method"||h||x){var l=!a.static&&Yt(a,"constructor"),D=l&&e;l&&v!=="method"&&this.raise(a.key.start,"Constructor can't have get/set modifier"),a.kind=l?"constructor":v,this.parseClassMethod(a,h,x,D)}else this.parseClassField(a);return a};H.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};H.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)};H.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&&Yt(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")};H.parseClassField=function(e){return Yt(e,"constructor")?this.raise(e.key.start,"Classes can't have a field named 'constructor'"):e.static&&Yt(e,"prototype")&&this.raise(e.key.start,"Classes can't have a static field named 'prototype'"),this.eat(f.eq)?(this.enterScope(Lt|ei),e.value=this.parseMaybeAssign(),this.exitScope()):e.value=null,this.semicolon(),this.finishNode(e,"PropertyDefinition")};H.parseClassStaticBlock=function(e){e.body=[];var i=this.labels;for(this.labels=[],this.enterScope(lt|ei);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")};H.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)};H.parseClassSuper=function(e){e.superClass=this.eat(f._extends)?this.parseExprSubscripts(null,!1):null};H.enterClassBody=function(){var e={declared:Object.create(null),used:[]};return this.privateNameStack.push(e),e.declared};H.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 v=a[x];gt(i,v.name)||(h?h.used.push(v):this.raiseRecoverable(v.start,"Private field '#"+v.name+"' must be declared in an enclosing class"))}};function Ea(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 Yt(e,i){var a=e.computed,o=e.key;return!a&&(o.type==="Identifier"&&o.name===i||o.type==="Literal"&&o.value===i)}H.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")};H.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")};H.parseExportDeclaration=function(e){return this.parseStatement(null)};H.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,It|Rs,!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}};H.checkExport=function(e,i,a){e&&(typeof i!="string"&&(i=i.type==="Identifier"?i.name:i.value),gt(e,i)&&this.raiseRecoverable(a,"Duplicate export '"+i+"'"),e[i]=!0)};H.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 v=0,k=i.elements;v<k.length;v+=1){var T=k[v];T&&this.checkPatternExport(e,T)}else a==="Property"?this.checkPatternExport(e,i.value):a==="AssignmentPattern"?this.checkPatternExport(e,i.left):a==="RestElement"&&this.checkPatternExport(e,i.argument)};H.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)}};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(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")};H.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};H.parseImport=function(e){return this.next(),this.type===f.string?(e.specifiers=Aa,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")};H.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")};H.parseImportDefaultSpecifier=function(){var e=this.startNode();return e.local=this.parseIdent(),this.checkLValSimple(e.local,tt),this.finishNode(e,"ImportDefaultSpecifier")};H.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")};H.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};H.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;gt(i,h)&&this.raiseRecoverable(o.key.start,"Duplicate attribute key '"+h+"'"),i[h]=!0,e.push(o)}return e};H.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")};H.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===f.string){var e=this.parseLiteral(this.value);return ba.test(e.value)&&this.raise(e.start,"An export name cannot include a lone surrogate."),e}return this.parseIdent(!0)};H.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)};H.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 v=this.parseRestBinding();this.parseBindingListItem(v),h.push(v),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=Qt);var o=i!==Qt;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&&(gt(a,e.name)&&this.raiseRecoverable(e.start,"Argument name clash"),a[e.name]=!0),i!==Ls&&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=Qt),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 v=0,k=e.elements;v<k.length;v+=1){var T=k[v];T&&this.checkLValInnerPattern(T,i,a)}break;default:this.checkLValSimple(e,i,a)}};We.checkLValInnerPattern=function(e,i,a){switch(i===void 0&&(i=Qt),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 Ae=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 Ae("{",!1),b_expr:new Ae("{",!0),b_tmpl:new Ae("${",!1),p_stat:new Ae("(",!1),p_expr:new Ae("(",!0),q_tmpl:new Ae("`",!0,!0,function(e){return e.tryReadTemplateToken()}),f_stat:new Ae("function",!1),f_expr:new Ae("function",!0),f_expr_gen:new Ae("function",!0,!1,null,!0),f_gen:new Ae("function",!1,!1,null,!0)},bt=de.prototype;bt.initialContext=function(){return[fe.b_stat]};bt.curContext=function(){return this.context[this.context.length-1]};bt.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?Te.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};bt.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};bt.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};bt.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&&Te.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 v=i[h];if(v){var k;x==="init"?k=this.strict&&v.init||v.get||v.set:k=v.init||v[x],k&&this.raiseRecoverable(o.start,"Redefinition of property")}else v=i[h]={init:!1,get:!1,set:!1};v[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,v=-1;i?(h=i.parenthesizedAssign,x=i.trailingComma,v=i.doubleProto,i.parenthesizedAssign=i.trailingComma=-1):(i=new ii,o=!0);var k=this.start,T=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,k,T)),this.type.isAssign){var D=this.startNodeAt(k,T);return D.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),D.left=l,this.next(),D.right=this.parseMaybeAssign(e),v>-1&&(i.doubleProto=v),this.finishNode(D,"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 v=this.type===f.logicalOR||this.type===f.logicalAND,k=this.type===f.coalesce;k&&(x=f.logicalAND.binop);var T=this.value;this.next();var l=this.start,D=this.startLoc,K=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,h),l,D,x,h),z=this.buildBinary(i,a,e,K,T,v||k);return(v&&this.type===f.coalesce||k&&(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(z,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 v=this.startNodeAt(e,i);return v.left=a,v.operator=h,v.right=o,this.finishNode(v,x?"LogicalExpression":"BinaryExpression")};Q.parseMaybeUnary=function(e,i,a,o){var h=this.start,x=this.startLoc,v;if(this.isContextual("await")&&this.canAwait)v=this.parseAwait(o),i=!0;else if(this.type.prefix){var k=this.startNode(),T=this.type===f.incDec;k.operator=this.value,k.prefix=!0,this.next(),k.argument=this.parseMaybeUnary(null,!0,T,o),this.checkExpressionErrors(e,!0),T?this.checkLValSimple(k.argument):this.strict&&k.operator==="delete"&&Os(k.argument)?this.raiseRecoverable(k.start,"Deleting local variable in strict mode"):k.operator==="delete"&&wi(k.argument)?this.raiseRecoverable(k.start,"Private fields can not be deleted"):i=!0,v=this.finishNode(k,T?"UpdateExpression":"UnaryExpression")}else if(!i&&this.type===f.privateId)(o||this.privateNameStack.length===0)&&this.options.checkPrivateFields&&this.unexpected(),v=this.parsePrivateIdent(),this.type!==f._in&&this.unexpected();else{if(v=this.parseExprSubscripts(e,o),this.checkExpressionErrors(e))return v;for(;this.type.postfix&&!this.canInsertSemicolon();){var l=this.startNodeAt(h,x);l.operator=this.value,l.prefix=!1,l.argument=v,this.checkLValSimple(v),this.next(),v=this.finishNode(l,"UpdateExpression")}}if(!a&&this.eat(f.starstar))if(i)this.unexpected(this.lastTokStart);else return this.buildBinary(h,x,v,this.parseMaybeUnary(null,!1,!1,o),"**",!1);else return v};function Os(e){return e.type==="Identifier"||e.type==="ParenthesizedExpression"&&Os(e.expression)}function wi(e){return e.type==="MemberExpression"&&e.property.type==="PrivateIdentifier"||e.type==="ChainExpression"&&wi(e.expression)||e.type==="ParenthesizedExpression"&&wi(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,v=!1;;){var k=this.parseSubscript(e,i,a,o,x,v,h);if(k.optional&&(v=!0),k===e||k.type==="ArrowFunctionExpression"){if(v){var T=this.startNodeAt(i,a);T.expression=k,k=this.finishNode(T,"ChainExpression")}return k}e=k}};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,v){var k=this.options.ecmaVersion>=11,T=k&&this.eat(f.questionDot);o&&T&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var l=this.eat(f.bracketL);if(l||T&&this.type!==f.parenL&&this.type!==f.backQuote||this.eat(f.dot)){var D=this.startNodeAt(i,a);D.object=e,l?(D.property=this.parseExpression(),this.expect(f.bracketR)):this.type===f.privateId&&e.type!=="Super"?D.property=this.parsePrivateIdent():D.property=this.parseIdent(this.options.allowReserved!=="never"),D.computed=!!l,k&&(D.optional=T),e=this.finishNode(D,"MemberExpression")}else if(!o&&this.eat(f.parenL)){var K=new ii,z=this.yieldPos,P=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,K);if(h&&!T&&this.shouldParseAsyncArrow())return this.checkPatternErrors(K,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=z,this.awaitPos=P,this.awaitIdentPos=I,this.parseSubscriptAsyncArrow(i,a,F,v);this.checkExpressionErrors(K,!0),this.yieldPos=z||this.yieldPos,this.awaitPos=P||this.awaitPos,this.awaitIdentPos=I||this.awaitIdentPos;var L=this.startNodeAt(i,a);L.callee=e,L.arguments=F,k&&(L.optional=T),e=this.finishNode(L,"CallExpression")}else if(this.type===f.backQuote){(T||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,v=this.startLoc,k=this.containsEsc,T=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!k&&T.name==="async"&&!this.canInsertSemicolon()&&this.eat(f._function))return this.overrideContext(fe.f_expr),this.parseFunction(this.startNodeAt(x,v),0,!1,!0,i);if(h&&!this.canInsertSemicolon()){if(this.eat(f.arrow))return this.parseArrowExpression(this.startNodeAt(x,v),[T],!1,i);if(this.options.ecmaVersion>=8&&T.name==="async"&&this.type===f.name&&!k&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc))return T=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(f.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(x,v),[T],!0,i)}return T;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 D=this.start,K=this.parseParenAndDistinguishExpression(h,i);return e&&(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(K)&&(e.parenthesizedAssign=D),e.parenthesizedBind<0&&(e.parenthesizedBind=D)),K;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 v=this.start,k=this.startLoc,T=[],l=!0,D=!1,K=new ii,z=this.yieldPos,P=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)){D=!0;break}else if(this.type===f.ellipsis){I=this.start,T.push(this.parseParenItem(this.parseRestBinding())),this.type===f.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}else T.push(this.parseMaybeAssign(!1,K,this.parseParenItem));var F=this.lastTokEnd,L=this.lastTokEndLoc;if(this.expect(f.parenR),e&&this.shouldParseArrow(T)&&this.eat(f.arrow))return this.checkPatternErrors(K,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=z,this.awaitPos=P,this.parseParenArrowList(a,o,T,i);(!T.length||D)&&this.unexpected(this.lastTokStart),I&&this.unexpected(I),this.checkExpressionErrors(K,!0),this.yieldPos=z||this.yieldPos,this.awaitPos=P||this.awaitPos,T.length>1?(h=this.startNodeAt(v,k),h.expressions=T,this.finishNodeAt(h,"SequenceExpression",F,L)):h=T[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 Ta=[];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=Ta,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
14
|
`),cooked:null}):a.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,`
|
|
15
|
-
`),cooked:this.value},this.next(),a.tail=this.type===f.backQuote,this.finishNode(a,"TemplateElement")};J.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")};J.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))};J.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")};J.parseProperty=function(e,i){var a=this.startNode(),o,h,x,v;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,v=this.startLoc),e||(o=this.eat(f.star)));var k=this.containsEsc;return this.parsePropertyName(a),!e&&!k&&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,v,i,k),this.finishNode(a,"Property")};J.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")};J.parsePropertyValue=function(e,i,a,o,h,x,v,k){(a||o)&&this.type===f.colon&&this.unexpected(),this.eat(f.colon)?(e.value=i?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,v),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&&!k&&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&&v?(v.shorthandAssign<0&&(v.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()};J.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")};J.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)};J.parseMethod=function(e,i,a){var o=this.startNode(),h=this.yieldPos,x=this.awaitPos,v=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(Ti(i,o.generator)|ei|(a?Es: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=v,this.finishNode(o,"FunctionExpression")};J.parseArrowExpression=function(e,i,a,o){var h=this.yieldPos,x=this.awaitPos,v=this.awaitIdentPos;return this.enterScope(Ti(a,!1)|_i),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=v,this.finishNode(e,"ArrowFunctionExpression")};J.parseFunctionBody=function(e,i,a,o){var h=i&&this.type!==f.braceL,x=this.strict,v=!1;if(h)e.body=this.parseMaybeAssign(o),e.expression=!0,this.checkParams(e,!1);else{var k=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);(!x||k)&&(v=this.strictDirective(this.end),v&&k&&this.raiseRecoverable(e.start,"Illegal 'use strict' directive in function with non-simple parameter list"));var _=this.labels;this.labels=[],v&&(this.strict=!0),this.checkParams(e,!x&&!v&&!i&&!a&&this.isSimpleParamList(e.params)),this.strict&&e.id&&this.checkLValSimple(e.id,Is),e.body=this.parseBlock(!1,void 0,v&&!x),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=_}this.exitScope()};J.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};J.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,Pi,i?null:a)}};J.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 v=void 0;a&&this.type===f.comma?v=null:this.type===f.ellipsis?(v=this.parseSpread(o),o&&this.type===f.comma&&o.trailingComma<0&&(o.trailingComma=this.start)):v=this.parseMaybeAssign(!1,o),h.push(v)}return h};J.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&ti)&&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"))}};J.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};J.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};J.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};J.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")};J.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 Zt=de.prototype;Zt.raise=function(e,i){var a=Ai(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};Zt.raiseRecoverable=Zt.raise;Zt.curPosition=function(){if(this.options.locations)return new vt(this.curLine,this.pos-this.lineStart)};var at=de.prototype,Pa=function(i){this.flags=i,this.var=[],this.lexical=[],this.functions=[]};at.enterScope=function(e){this.scopeStack.push(new Pa(e))};at.exitScope=function(){this.scopeStack.pop()};at.treatFunctionsAsVarInScope=function(e){return e.flags&pt||!this.inModule&&e.flags&ut};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&ut&&delete this.undefinedExports[e]}else if(i===Ps){var x=this.currentScope();x.lexical.push(e)}else if(i===Ts){var v=this.currentScope();this.treatFunctionsAsVar?o=v.lexical.indexOf(e)>-1:o=v.lexical.indexOf(e)>-1||v.var.indexOf(e)>-1,v.functions.push(e)}else for(var k=this.scopeStack.length-1;k>=0;--k){var _=this.scopeStack[k];if(_.lexical.indexOf(e)>-1&&!(_.flags&As&&_.lexical[0]===e)||!this.treatFunctionsAsVarInScope(_)&&_.functions.indexOf(e)>-1){o=!0;break}if(_.var.push(e),this.inModule&&_.flags&ut&&delete this.undefinedExports[e],_.flags&ti)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&(ti|Lt|lt))return i}};at.currentThisScope=function(){for(var e=this.scopeStack.length-1;;e--){var i=this.scopeStack[e];if(i.flags&(ti|Lt|lt)&&!(i.flags&_i))return i}};var Rt=function(i,a,o){this.type="",this.start=a,this.end=0,i.options.locations&&(this.loc=new Nt(i,o)),i.options.directSourceFile&&(this.sourceFile=i.options.directSourceFile),i.options.ranges&&(this.range=[a,0])},Vt=de.prototype;Vt.startNode=function(){return new Rt(this,this.start,this.startLoc)};Vt.startNodeAt=function(e,i){return new Rt(this,e,i)};function Rs(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}Vt.finishNode=function(e,i){return Rs.call(this,e,i,this.lastTokEnd,this.lastTokEndLoc)};Vt.finishNodeAt=function(e,i,a,o){return Rs.call(this,e,i,a,o)};Vt.copyNode=function(e){var i=new Rt(this,e.start,this.startLoc);for(var a in e)i[a]=e[a];return i};var Ia="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",Vs="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",Os=Vs+" Extended_Pictographic",Ds=Os,Ms=Ds+" EBase EComp EMod EPres ExtPict",Bs=Ms,Na=Bs,La={9:Vs,10:Os,11:Ds,12:Ms,13:Bs,14:Na},Ra="Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji",Va={9:"",10:"",11:"",12:"",13:"",14:Ra},xs="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",Fs="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",js=Fs+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",Us=js+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",qs=Us+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",Hs=qs+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",Oa=Hs+" "+Ia,Da={9:Fs,10:js,11:Us,12:qs,13:Hs,14:Oa},Ws={};function Ma(e){var i=Ws[e]={binary:rt(La[e]+" "+xs),binaryOfStrings:rt(Va[e]),nonBinary:{General_Category:rt(xs),Script:rt(Da[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(Xt=0,bi=[9,10,11,12,13,14];Xt<bi.length;Xt+=1)ys=bi[Xt],Ma(ys);var ys,Xt,bi,U=de.prototype,$t=function(i,a){this.parent=i,this.base=a||this};$t.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};$t.prototype.sibling=function(){return new $t(this.parent,this.base)};var Je=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=Ws[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};Je.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)};Je.prototype.raise=function(i){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+i)};Je.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 v=o.charCodeAt(i+1);return v>=56320&&v<=57343?(x<<10)+v-56613888:x};Je.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),v;return!(a||this.switchU)||x<=55295||x>=57344||i+1>=h||(v=o.charCodeAt(i+1))<56320||v>57343?i+1:i+2};Je.prototype.current=function(i){return i===void 0&&(i=!1),this.at(this.pos,i)};Je.prototype.lookahead=function(i){return i===void 0&&(i=!1),this.at(this.nextIndex(this.pos,i),i)};Je.prototype.advance=function(i){i===void 0&&(i=!1),this.pos=this.nextIndex(this.pos,i)};Je.prototype.eat=function(i,a){return a===void 0&&(a=!1),this.current(a)===i?(this.advance(a),!0):!1};Je.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 v=x[h],k=this.at(o,a);if(k===-1||k!==v)return!1;o=this.nextIndex(o,a)}return this.pos=o,!0};U.validateRegExpFlags=function(e){for(var i=e.validFlags,a=e.flags,o=!1,h=!1,x=0;x<a.length;x++){var v=a.charAt(x);i.indexOf(v)===-1&&this.raise(e.start,"Invalid regular expression flag"),a.indexOf(v,x+1)>-1&&this.raise(e.start,"Duplicate regular expression flag"),v==="u"&&(o=!0),v==="v"&&(h=!0)}this.options.ecmaVersion>=15&&o&&h&&this.raise(e.start,"Invalid regular expression flag")};function Ba(e){for(var i in e)return!0;return!1}U.validateRegExpPattern=function(e){this.regexp_pattern(e),!e.switchN&&this.options.ecmaVersion>=9&&Ba(e.groupNames)&&(e.switchN=!0,this.regexp_pattern(e))};U.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")}};U.regexp_disjunction=function(e){var i=this.options.ecmaVersion>=16;for(i&&(e.branchID=new $t(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")};U.regexp_alternative=function(e){for(;e.pos<e.source.length&&this.regexp_eatTerm(e););};U.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};U.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};U.regexp_eatQuantifier=function(e,i){return i===void 0&&(i=!1),this.regexp_eatQuantifierPrefix(e,i)?(e.eat(63),!0):!1};U.regexp_eatQuantifierPrefix=function(e,i){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,i)};U.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};U.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)};U.regexp_eatReverseSolidusAtomEscape=function(e){var i=e.pos;if(e.eat(92)){if(this.regexp_eatAtomEscape(e))return!0;e.pos=i}return!1};U.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 v=this.regexp_eatModifiers(e);!a&&!v&&e.current()===58&&e.raise("Invalid regular expression modifiers");for(var k=0;k<v.length;k++){var _=v.charAt(k);(v.indexOf(_,k+1)>-1||a.indexOf(_)>-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};U.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};U.regexp_eatModifiers=function(e){for(var i="",a=0;(a=e.current())!==-1&&Fa(a);)i+=$e(a),e.advance();return i};function Fa(e){return e===105||e===109||e===115}U.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)};U.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise("Nothing to repeat"),!1};U.regexp_eatSyntaxCharacter=function(e){var i=e.current();return zs(i)?(e.lastIntValue=i,e.advance(),!0):!1};function zs(e){return e===36||e>=40&&e<=43||e===46||e===63||e>=91&&e<=94||e>=123&&e<=125}U.regexp_eatPatternCharacters=function(e){for(var i=e.pos,a=0;(a=e.current())!==-1&&!zs(a);)e.advance();return e.pos!==i};U.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};U.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}};U.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};U.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};U.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),ja(o)?(e.lastIntValue=o,!0):(e.pos=i,!1)};function ja(e){return Ge(e,!0)||e===36||e===95}U.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),Ua(o)?(e.lastIntValue=o,!0):(e.pos=i,!1)};function Ua(e){return Ze(e,!0)||e===36||e===95||e===8204||e===8205}U.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)};U.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};U.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};U.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)};U.regexp_eatCControlLetter=function(e){var i=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=i}return!1};U.regexp_eatZero=function(e){return e.current()===48&&!si(e.lookahead())?(e.lastIntValue=0,e.advance(),!0):!1};U.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};U.regexp_eatControlLetter=function(e){var i=e.current();return Gs(i)?(e.lastIntValue=i%32,e.advance(),!0):!1};function Gs(e){return e>=65&&e<=90||e>=97&&e<=122}U.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 v=e.lastIntValue;if(v>=56320&&v<=57343)return e.lastIntValue=(h-55296)*1024+(v-56320)+65536,!0}e.pos=x,e.lastIntValue=h}return!0}if(o&&e.eat(123)&&this.regexp_eatHexDigits(e)&&e.eat(125)&&qa(e.lastIntValue))return!0;o&&e.raise("Invalid unicode escape"),e.pos=a}return!1};function qa(e){return e>=0&&e<=1114111}U.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};U.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 Ks=0,et=1,qe=2;U.regexp_eatCharacterClassEscape=function(e){var i=e.current();if(Ha(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 Ks};function Ha(e){return e===100||e===68||e===115||e===83||e===119||e===87}U.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 Ks};U.regexp_validateUnicodePropertyNameAndValue=function(e,i,a){gt(e.unicodeProperties.nonBinary,i)||e.raise("Invalid property name"),e.unicodeProperties.nonBinary[i].test(a)||e.raise("Invalid property value")};U.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")};U.regexp_eatUnicodePropertyName=function(e){var i=0;for(e.lastStringValue="";Xs(i=e.current());)e.lastStringValue+=$e(i),e.advance();return e.lastStringValue!==""};function Xs(e){return Gs(e)||e===95}U.regexp_eatUnicodePropertyValue=function(e){var i=0;for(e.lastStringValue="";Wa(i=e.current());)e.lastStringValue+=$e(i),e.advance();return e.lastStringValue!==""};function Wa(e){return Xs(e)||si(e)}U.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)};U.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};U.regexp_classContents=function(e){return e.current()===93?et:e.switchV?this.regexp_classSetExpression(e):(this.regexp_nonEmptyClassRanges(e),et)};U.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")}}};U.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||Ys(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};U.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)};U.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)}};U.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};U.regexp_eatClassSetOperand=function(e){return this.regexp_eatClassSetCharacter(e)?et:this.regexp_eatClassStringDisjunction(e)||this.regexp_eatNestedClass(e)};U.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};U.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};U.regexp_classStringDisjunctionContents=function(e){for(var i=this.regexp_classString(e);e.eat(124);)this.regexp_classString(e)===qe&&(i=qe);return i};U.regexp_classString=function(e){for(var i=0;this.regexp_eatClassSetCharacter(e);)i++;return i===1?et:qe};U.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()&&za(a)||Ga(a)?!1:(e.advance(),e.lastIntValue=a,!0)};function za(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 Ga(e){return e===40||e===41||e===45||e===47||e>=91&&e<=93||e>=123&&e<=125}U.regexp_eatClassSetReservedPunctuator=function(e){var i=e.current();return Ka(i)?(e.lastIntValue=i,e.advance(),!0):!1};function Ka(e){return e===33||e===35||e===37||e===38||e===44||e===45||e>=58&&e<=62||e===64||e===96||e===126}U.regexp_eatClassControlLetter=function(e){var i=e.current();return si(i)||i===95?(e.lastIntValue=i%32,e.advance(),!0):!1};U.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};U.regexp_eatDecimalDigits=function(e){var i=e.pos,a=0;for(e.lastIntValue=0;si(a=e.current());)e.lastIntValue=10*e.lastIntValue+(a-48),e.advance();return e.pos!==i};function si(e){return e>=48&&e<=57}U.regexp_eatHexDigits=function(e){var i=e.pos,a=0;for(e.lastIntValue=0;Js(a=e.current());)e.lastIntValue=16*e.lastIntValue+Qs(a),e.advance();return e.pos!==i};function Js(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function Qs(e){return e>=65&&e<=70?10+(e-65):e>=97&&e<=102?10+(e-97):e-48}U.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};U.regexp_eatOctalDigit=function(e){var i=e.current();return Ys(i)?(e.lastIntValue=i-48,e.advance(),!0):(e.lastIntValue=0,!1)};function Ys(e){return e>=48&&e<=55}U.regexp_eatFixedHexDigits=function(e,i){var a=e.pos;e.lastIntValue=0;for(var o=0;o<i;++o){var h=e.current();if(!Js(h))return e.pos=a,!1;e.lastIntValue=16*e.lastIntValue+Qs(h),e.advance()}return!0};var ri=function(i){this.type=i.type,this.value=i.value,this.start=i.start,this.end=i.end,i.options.locations&&(this.loc=new Nt(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 ri(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 ri(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 Ge(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=Cs(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&&!ct(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&&ki.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(),Ge(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,v=this.readWord1();this.containsEsc&&this.unexpected(x);var k=this.regexpState||(this.regexpState=new Je(this));k.reset(a,h,v),this.validateRegExpFlags(k),this.validateRegExpPattern(k);var _=null;try{_=new RegExp(h,v)}catch{}return this.finishToken(f.regexp,{pattern:h,flags:v,value:_})};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,v=0,k=0,_=0,l=i??1/0;_<l;++_,++this.pos){var B=this.input.charCodeAt(this.pos),Q=void 0;if(o&&B===95){h&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),k===95&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),_===0&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),k=B;continue}if(B>=97?Q=B-97+10:B>=65?Q=B-65+10:B>=48&&B<=57?Q=B-48:Q=1/0,Q>=e)break;k=B,v=v*e+Q}return o&&k===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:v};function Xa(e,i){return i?parseInt(e,8):parseFloat(e.replace(/_/g,""))}function Zs(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=Zs(this.input.slice(i,this.pos)),++this.pos):Ge(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=Zs(this.input.slice(i,this.pos));return++this.pos,Ge(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")),Ge(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var x=Xa(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)):(ct(o)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return i+=this.input.slice(a,this.pos++),this.finishToken(f.string,i)};var $s={};se.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e===$s)this.readInvalidTemplateToken();else throw e}this.inTemplateElement=!1};se.invalidStringToken=function(e,i){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw $s;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(ct(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+=`
|
|
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)&&!Te.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,v;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,v=this.startLoc),e||(o=this.eat(f.star)));var k=this.containsEsc;return this.parsePropertyName(a),!e&&!k&&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,v,i,k),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,v,k){(a||o)&&this.type===f.colon&&this.unexpected(),this.eat(f.colon)?(e.value=i?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,v),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&&!k&&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&&v?(v.shorthandAssign<0&&(v.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,v=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(_i(i,o.generator)|ei|(a?_s: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=v,this.finishNode(o,"FunctionExpression")};Q.parseArrowExpression=function(e,i,a,o){var h=this.yieldPos,x=this.awaitPos,v=this.awaitIdentPos;return this.enterScope(_i(a,!1)|Ti),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=v,this.finishNode(e,"ArrowFunctionExpression")};Q.parseFunctionBody=function(e,i,a,o){var h=i&&this.type!==f.braceL,x=this.strict,v=!1;if(h)e.body=this.parseMaybeAssign(o),e.expression=!0,this.checkParams(e,!1);else{var k=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);(!x||k)&&(v=this.strictDirective(this.end),v&&k&&this.raiseRecoverable(e.start,"Illegal 'use strict' directive in function with non-simple parameter list"));var T=this.labels;this.labels=[],v&&(this.strict=!0),this.checkParams(e,!x&&!v&&!i&&!a&&this.isSimpleParamList(e.params)),this.strict&&e.id&&this.checkLValSimple(e.id,Ls),e.body=this.parseBlock(!1,void 0,v&&!x),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=T}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,Pi,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 v=void 0;a&&this.type===f.comma?v=null:this.type===f.ellipsis?(v=this.parseSpread(o),o&&this.type===f.comma&&o.trailingComma<0&&(o.trailingComma=this.start)):v=this.parseMaybeAssign(!1,o),h.push(v)}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&ti)&&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 Zt=de.prototype;Zt.raise=function(e,i){var a=Ai(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};Zt.raiseRecoverable=Zt.raise;Zt.curPosition=function(){if(this.options.locations)return new vt(this.curLine,this.pos-this.lineStart)};var at=de.prototype,_a=function(i){this.flags=i,this.var=[],this.lexical=[],this.functions=[]};at.enterScope=function(e){this.scopeStack.push(new _a(e))};at.exitScope=function(){this.scopeStack.pop()};at.treatFunctionsAsVarInScope=function(e){return e.flags&pt||!this.inModule&&e.flags&ut};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&ut&&delete this.undefinedExports[e]}else if(i===Ns){var x=this.currentScope();x.lexical.push(e)}else if(i===Is){var v=this.currentScope();this.treatFunctionsAsVar?o=v.lexical.indexOf(e)>-1:o=v.lexical.indexOf(e)>-1||v.var.indexOf(e)>-1,v.functions.push(e)}else for(var k=this.scopeStack.length-1;k>=0;--k){var T=this.scopeStack[k];if(T.lexical.indexOf(e)>-1&&!(T.flags&Ts&&T.lexical[0]===e)||!this.treatFunctionsAsVarInScope(T)&&T.functions.indexOf(e)>-1){o=!0;break}if(T.var.push(e),this.inModule&&T.flags&ut&&delete this.undefinedExports[e],T.flags&ti)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&(ti|Lt|lt))return i}};at.currentThisScope=function(){for(var e=this.scopeStack.length-1;;e--){var i=this.scopeStack[e];if(i.flags&(ti|Lt|lt)&&!(i.flags&Ti))return i}};var Rt=function(i,a,o){this.type="",this.start=a,this.end=0,i.options.locations&&(this.loc=new Nt(i,o)),i.options.directSourceFile&&(this.sourceFile=i.options.directSourceFile),i.options.ranges&&(this.range=[a,0])},Ot=de.prototype;Ot.startNode=function(){return new Rt(this,this.start,this.startLoc)};Ot.startNodeAt=function(e,i){return new Rt(this,e,i)};function Vs(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}Ot.finishNode=function(e,i){return Vs.call(this,e,i,this.lastTokEnd,this.lastTokEndLoc)};Ot.finishNodeAt=function(e,i,a,o){return Vs.call(this,e,i,a,o)};Ot.copyNode=function(e){var i=new Rt(this,e.start,this.startLoc);for(var a in e)i[a]=e[a];return i};var Pa="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",Ds="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",Ms=Ds+" Extended_Pictographic",Bs=Ms,Fs=Bs+" EBase EComp EMod EPres ExtPict",js=Fs,Ia=js,Na={9:Ds,10:Ms,11:Bs,12:Fs,13:js,14:Ia},La="Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji",Ra={9:"",10:"",11:"",12:"",13:"",14:La},vs="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",Us="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",qs=Us+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",Hs=qs+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",Ws=Hs+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",zs=Ws+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",Oa=zs+" "+Pa,Va={9:Us,10:qs,11:Hs,12:Ws,13:zs,14:Oa},Gs={};function Da(e){var i=Gs[e]={binary:rt(Na[e]+" "+vs),binaryOfStrings:rt(Ra[e]),nonBinary:{General_Category:rt(vs),Script:rt(Va[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(Xt=0,bi=[9,10,11,12,13,14];Xt<bi.length;Xt+=1)gs=bi[Xt],Da(gs);var gs,Xt,bi,U=de.prototype,$t=function(i,a){this.parent=i,this.base=a||this};$t.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};$t.prototype.sibling=function(){return new $t(this.parent,this.base)};var Je=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=Gs[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};Je.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)};Je.prototype.raise=function(i){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+i)};Je.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 v=o.charCodeAt(i+1);return v>=56320&&v<=57343?(x<<10)+v-56613888:x};Je.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),v;return!(a||this.switchU)||x<=55295||x>=57344||i+1>=h||(v=o.charCodeAt(i+1))<56320||v>57343?i+1:i+2};Je.prototype.current=function(i){return i===void 0&&(i=!1),this.at(this.pos,i)};Je.prototype.lookahead=function(i){return i===void 0&&(i=!1),this.at(this.nextIndex(this.pos,i),i)};Je.prototype.advance=function(i){i===void 0&&(i=!1),this.pos=this.nextIndex(this.pos,i)};Je.prototype.eat=function(i,a){return a===void 0&&(a=!1),this.current(a)===i?(this.advance(a),!0):!1};Je.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 v=x[h],k=this.at(o,a);if(k===-1||k!==v)return!1;o=this.nextIndex(o,a)}return this.pos=o,!0};U.validateRegExpFlags=function(e){for(var i=e.validFlags,a=e.flags,o=!1,h=!1,x=0;x<a.length;x++){var v=a.charAt(x);i.indexOf(v)===-1&&this.raise(e.start,"Invalid regular expression flag"),a.indexOf(v,x+1)>-1&&this.raise(e.start,"Duplicate regular expression flag"),v==="u"&&(o=!0),v==="v"&&(h=!0)}this.options.ecmaVersion>=15&&o&&h&&this.raise(e.start,"Invalid regular expression flag")};function Ma(e){for(var i in e)return!0;return!1}U.validateRegExpPattern=function(e){this.regexp_pattern(e),!e.switchN&&this.options.ecmaVersion>=9&&Ma(e.groupNames)&&(e.switchN=!0,this.regexp_pattern(e))};U.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")}};U.regexp_disjunction=function(e){var i=this.options.ecmaVersion>=16;for(i&&(e.branchID=new $t(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")};U.regexp_alternative=function(e){for(;e.pos<e.source.length&&this.regexp_eatTerm(e););};U.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};U.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};U.regexp_eatQuantifier=function(e,i){return i===void 0&&(i=!1),this.regexp_eatQuantifierPrefix(e,i)?(e.eat(63),!0):!1};U.regexp_eatQuantifierPrefix=function(e,i){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,i)};U.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};U.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)};U.regexp_eatReverseSolidusAtomEscape=function(e){var i=e.pos;if(e.eat(92)){if(this.regexp_eatAtomEscape(e))return!0;e.pos=i}return!1};U.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 v=this.regexp_eatModifiers(e);!a&&!v&&e.current()===58&&e.raise("Invalid regular expression modifiers");for(var k=0;k<v.length;k++){var T=v.charAt(k);(v.indexOf(T,k+1)>-1||a.indexOf(T)>-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};U.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};U.regexp_eatModifiers=function(e){for(var i="",a=0;(a=e.current())!==-1&&Ba(a);)i+=$e(a),e.advance();return i};function Ba(e){return e===105||e===109||e===115}U.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)};U.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise("Nothing to repeat"),!1};U.regexp_eatSyntaxCharacter=function(e){var i=e.current();return Ks(i)?(e.lastIntValue=i,e.advance(),!0):!1};function Ks(e){return e===36||e>=40&&e<=43||e===46||e===63||e>=91&&e<=94||e>=123&&e<=125}U.regexp_eatPatternCharacters=function(e){for(var i=e.pos,a=0;(a=e.current())!==-1&&!Ks(a);)e.advance();return e.pos!==i};U.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};U.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}};U.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};U.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};U.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),Fa(o)?(e.lastIntValue=o,!0):(e.pos=i,!1)};function Fa(e){return Ge(e,!0)||e===36||e===95}U.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),ja(o)?(e.lastIntValue=o,!0):(e.pos=i,!1)};function ja(e){return Ze(e,!0)||e===36||e===95||e===8204||e===8205}U.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)};U.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};U.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};U.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)};U.regexp_eatCControlLetter=function(e){var i=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=i}return!1};U.regexp_eatZero=function(e){return e.current()===48&&!si(e.lookahead())?(e.lastIntValue=0,e.advance(),!0):!1};U.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};U.regexp_eatControlLetter=function(e){var i=e.current();return Xs(i)?(e.lastIntValue=i%32,e.advance(),!0):!1};function Xs(e){return e>=65&&e<=90||e>=97&&e<=122}U.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 v=e.lastIntValue;if(v>=56320&&v<=57343)return e.lastIntValue=(h-55296)*1024+(v-56320)+65536,!0}e.pos=x,e.lastIntValue=h}return!0}if(o&&e.eat(123)&&this.regexp_eatHexDigits(e)&&e.eat(125)&&Ua(e.lastIntValue))return!0;o&&e.raise("Invalid unicode escape"),e.pos=a}return!1};function Ua(e){return e>=0&&e<=1114111}U.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};U.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 Js=0,et=1,qe=2;U.regexp_eatCharacterClassEscape=function(e){var i=e.current();if(qa(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 Js};function qa(e){return e===100||e===68||e===115||e===83||e===119||e===87}U.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 Js};U.regexp_validateUnicodePropertyNameAndValue=function(e,i,a){gt(e.unicodeProperties.nonBinary,i)||e.raise("Invalid property name"),e.unicodeProperties.nonBinary[i].test(a)||e.raise("Invalid property value")};U.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")};U.regexp_eatUnicodePropertyName=function(e){var i=0;for(e.lastStringValue="";Qs(i=e.current());)e.lastStringValue+=$e(i),e.advance();return e.lastStringValue!==""};function Qs(e){return Xs(e)||e===95}U.regexp_eatUnicodePropertyValue=function(e){var i=0;for(e.lastStringValue="";Ha(i=e.current());)e.lastStringValue+=$e(i),e.advance();return e.lastStringValue!==""};function Ha(e){return Qs(e)||si(e)}U.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)};U.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};U.regexp_classContents=function(e){return e.current()===93?et:e.switchV?this.regexp_classSetExpression(e):(this.regexp_nonEmptyClassRanges(e),et)};U.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")}}};U.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||$s(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};U.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)};U.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)}};U.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};U.regexp_eatClassSetOperand=function(e){return this.regexp_eatClassSetCharacter(e)?et:this.regexp_eatClassStringDisjunction(e)||this.regexp_eatNestedClass(e)};U.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};U.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};U.regexp_classStringDisjunctionContents=function(e){for(var i=this.regexp_classString(e);e.eat(124);)this.regexp_classString(e)===qe&&(i=qe);return i};U.regexp_classString=function(e){for(var i=0;this.regexp_eatClassSetCharacter(e);)i++;return i===1?et:qe};U.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()&&Wa(a)||za(a)?!1:(e.advance(),e.lastIntValue=a,!0)};function Wa(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 za(e){return e===40||e===41||e===45||e===47||e>=91&&e<=93||e>=123&&e<=125}U.regexp_eatClassSetReservedPunctuator=function(e){var i=e.current();return Ga(i)?(e.lastIntValue=i,e.advance(),!0):!1};function Ga(e){return e===33||e===35||e===37||e===38||e===44||e===45||e>=58&&e<=62||e===64||e===96||e===126}U.regexp_eatClassControlLetter=function(e){var i=e.current();return si(i)||i===95?(e.lastIntValue=i%32,e.advance(),!0):!1};U.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};U.regexp_eatDecimalDigits=function(e){var i=e.pos,a=0;for(e.lastIntValue=0;si(a=e.current());)e.lastIntValue=10*e.lastIntValue+(a-48),e.advance();return e.pos!==i};function si(e){return e>=48&&e<=57}U.regexp_eatHexDigits=function(e){var i=e.pos,a=0;for(e.lastIntValue=0;Ys(a=e.current());)e.lastIntValue=16*e.lastIntValue+Zs(a),e.advance();return e.pos!==i};function Ys(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function Zs(e){return e>=65&&e<=70?10+(e-65):e>=97&&e<=102?10+(e-97):e-48}U.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};U.regexp_eatOctalDigit=function(e){var i=e.current();return $s(i)?(e.lastIntValue=i-48,e.advance(),!0):(e.lastIntValue=0,!1)};function $s(e){return e>=48&&e<=55}U.regexp_eatFixedHexDigits=function(e,i){var a=e.pos;e.lastIntValue=0;for(var o=0;o<i;++o){var h=e.current();if(!Ys(h))return e.pos=a,!1;e.lastIntValue=16*e.lastIntValue+Zs(h),e.advance()}return!0};var ri=function(i){this.type=i.type,this.value=i.value,this.start=i.start,this.end=i.end,i.options.locations&&(this.loc=new Nt(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 ri(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 ri(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 Ge(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=ks(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&&!ct(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&&ki.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||Te.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(),Ge(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(Te.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,v=this.readWord1();this.containsEsc&&this.unexpected(x);var k=this.regexpState||(this.regexpState=new Je(this));k.reset(a,h,v),this.validateRegExpFlags(k),this.validateRegExpPattern(k);var T=null;try{T=new RegExp(h,v)}catch{}return this.finishToken(f.regexp,{pattern:h,flags:v,value:T})};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,v=0,k=0,T=0,l=i??1/0;T<l;++T,++this.pos){var D=this.input.charCodeAt(this.pos),K=void 0;if(o&&D===95){h&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),k===95&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),T===0&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),k=D;continue}if(D>=97?K=D-97+10:D>=65?K=D-65+10:D>=48&&D<=57?K=D-48:K=1/0,K>=e)break;k=D,v=v*e+K}return o&&k===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:v};function Ka(e,i){return i?parseInt(e,8):parseFloat(e.replace(/_/g,""))}function er(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=er(this.input.slice(i,this.pos)),++this.pos):Ge(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=er(this.input.slice(i,this.pos));return++this.pos,Ge(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")),Ge(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var x=Ka(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)):(ct(o)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return i+=this.input.slice(a,this.pos++),this.finishToken(f.string,i)};var tr={};se.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e===tr)this.readInvalidTemplateToken();else throw e}this.inTemplateElement=!1};se.invalidStringToken=function(e,i){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw tr;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(ct(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
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]===`
|
|
17
17
|
`&&++this.pos;case`
|
|
18
18
|
`:case"\u2028":case"\u2029":++this.curLine,this.lineStart=this.pos+1;break}this.raise(this.start,"Unterminated template")};se.readEscapedChar=function(e){var i=this.input.charCodeAt(++this.pos);switch(++this.pos,i){case 110:return`
|
|
19
|
-
`;case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return $e(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 a=this.pos-1;this.invalidStringToken(a,"Invalid escape sequence in template string")}default:if(i>=48&&i<=55){var o=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],h=parseInt(o,8);return h>255&&(o=o.slice(0,-1),h=parseInt(o,8)),this.pos+=o.length-1,i=this.input.charCodeAt(this.pos),(o!=="0"||i===56||i===57)&&(this.strict||e)&&this.invalidStringToken(this.pos-1-o.length,e?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(h)}return ct(i)?(this.options.locations&&(this.lineStart=this.pos,++this.curLine),""):String.fromCharCode(i)}};se.readHexChar=function(e){var i=this.pos,a=this.readInt(16,e);return a===null&&this.invalidStringToken(i,"Bad character escape sequence"),a};se.readWord1=function(){this.containsEsc=!1;for(var e="",i=!0,a=this.pos,o=this.options.ecmaVersion>=6;this.pos<this.input.length;){var h=this.fullCharCodeAtPos();if(Ze(h,o))this.pos+=h<=65535?1:2;else if(h===92){this.containsEsc=!0,e+=this.input.slice(a,this.pos);var x=this.pos;this.input.charCodeAt(++this.pos)!==117&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var v=this.readCodePoint();(i?Ge:Ze)(v,o)||this.invalidStringToken(x,"Invalid Unicode escape"),e+=$e(v),a=this.pos}else break;i=!1}return e+this.input.slice(a,this.pos)};se.readWord=function(){var e=this.readWord1(),i=f.name;return this.keywords.test(e)&&(i=ht[e]),this.finishToken(i,e)};var
|
|
20
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Re=!0;function Ve(e,i){return i===void 0&&(i={}),new Z("name",i)}var sn=new WeakMap;function rn(e){var i=sn.get(e.Parser.acorn||e);if(!i){var a={assert:Ve(0,{startsExpr:Re}),asserts:Ve(0,{startsExpr:Re}),global:Ve(0,{startsExpr:Re}),keyof:Ve(0,{startsExpr:Re}),readonly:Ve(0,{startsExpr:Re}),unique:Ve(0,{startsExpr:Re}),abstract:Ve(0,{startsExpr:Re}),declare:Ve(0,{startsExpr:Re}),enum:Ve(0,{startsExpr:Re}),module:Ve(0,{startsExpr:Re}),namespace:Ve(0,{startsExpr:Re}),interface:Ve(0,{startsExpr:Re}),type:Ve(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 Ae("<tag",!1,!1),tc_cTag:new Ae("</tag",!1,!1),tc_expr:new Ae("<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(v){var k=this.context.pop();k===h.tc_oTag&&v===f.slash||k===h.tc_cTag?(this.context.pop(),this.exprAllowed=this.curContext()===h.tc_expr):this.exprAllowed=!0},i={tokTypes:ui({},a,o),tokContexts:ui({},h),keywordsRegExp:x,tokenIsLiteralPropertyName:function(v){return[f.name,f.string,f.num].concat(Object.values(ht),Object.values(a)).includes(v)},tokenIsKeywordOrIdentifier:function(v){return[f.name].concat(Object.values(ht),Object.values(a)).includes(v)},tokenIsIdentifier:function(v){return[].concat(Object.values(a),[f.name]).includes(v)},tokenIsTSDeclarationStart:function(v){return[a.abstract,a.declare,a.enum,a.module,a.namespace,a.interface,a.type].includes(v)},tokenIsTSTypeOperator:function(v){return[a.keyof,a.readonly,a.unique].includes(v)},tokenIsTemplate:function(v){return v===f.invalidTemplate}}}return i}var Dt=1024,an=new RegExp("(?:[^\\S\\n\\r\\u2028\\u2029]|\\/\\/.*|\\/\\*.*?\\*\\/)*","y"),cr=new RegExp("(?=("+an.source+"))\\1"+/(?=[\n\r\u2028\u2029]|\/\*(?!.*?\*\/)|$)/.source,"y"),Mt=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 nn(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 pr(e,i){var a=e.key;return!e.computed&&(a.type==="Identifier"&&a.name===i||a.type==="Literal"&&a.value===i)}var W={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."},on={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]+$/,hn=/^\d+$/;function Bt(e){return e&&(e.type==="JSXIdentifier"?e.name:e.type==="JSXNamespacedName"?e.namespace.name+":"+e.name.name:e.type==="JSXMemberExpression"?Bt(e.object)+"."+Bt(e.property):void 0)}var Ri=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g;function lr(e){if(!e)throw new Error("Assert fail")}function cn(e){return e==="accessor"}function pn(e){return e==="in"||e==="out"}function Vi(e,i){return 2|(e?4:0)|(i?8:0)}function ln(e){if(e.type!=="MemberExpression")return!1;var i=e.property;return(!e.computed||!(i.type!=="TemplateLiteral"||i.expressions.length>0))&&dr(e.object)}function dr(e){return e.type==="Identifier"||e.type==="MemberExpression"&&!e.computed&&dr(e.object)}function fr(e){return e==="private"||e==="public"||e==="protected"}function Di(e){var i=e||{},a=i.dts,o=a!==void 0&&a,h=i.allowSatisfies,x=h!==void 0&&h;return function(v){var k=v.acorn||ai,_=rn(k),l=k.tokTypes,B=k.keywordTypes,Q=k.isIdentifierStart,z=k.lineBreak,I=k.isNewLine,P=k.tokContexts,D=k.isIdentifierChar,N=_.tokTypes,ee=_.tokContexts,Ne=_.keywordsRegExp,Y=_.tokenIsLiteralPropertyName,d=_.tokenIsTemplate,ve=_.tokenIsTSDeclarationStart,ne=_.tokenIsIdentifier,Oe=_.tokenIsKeywordOrIdentifier,jt=_.tokenIsTSTypeOperator;function Ct(V,be,ge){ge===void 0&&(ge=V.length);for(var oe=be;oe<ge;oe++){var te=V.charCodeAt(oe);if(I(te))return oe<ge-1&&te===13&&V.charCodeAt(oe+1)===10?oe+2:oe+1}return-1}v=(function(V,be,ge){var oe=ge.tokTypes,te=be.tokTypes;return(function(g){function s(){return g.apply(this,arguments)||this}oi(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,S=this.startLoc;if(this.match(oe.parenL)){var w=this.start,E=this.startLoc;if(this.next(),m=this.parseExpression(),this.expect(oe.parenR),this.options.preserveParens){var T=this.startNodeAt(w,E);T.expression=m,m=this.finishNode(T,"ParenthesizedExpression")}}else for(m=this.parseIdent(!1);this.eat(oe.dot);){var R=this.startNodeAt(b,S);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})(V)})(v,_,k),v=(function(V,be,ge,oe){var te=V.tokTypes,g=be.tokTypes,s=V.isNewLine,n=V.isIdentifierChar,p=Object.assign({allowNamespaces:!0,allowNamespacedObjects:!0},oe||{});return(function(m){function b(){return m.apply(this,arguments)||this}oi(b,m);var S=b.prototype;return S.jsx_readToken=function(){for(var w="",E=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated JSX contents");var T=this.input.charCodeAt(this.pos);switch(T){case 60:case 123:return this.pos===this.start?T===60&&this.exprAllowed?(++this.pos,this.finishToken(g.jsxTagStart)):this.getTokenFromCode(T):(w+=this.input.slice(E,this.pos),this.finishToken(g.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 `"+(T===62?">":"}")+'` or `{"'+this.input[this.pos]+'"}`?');default:s(T)?(w+=this.input.slice(E,this.pos),w+=this.jsx_readNewLine(!0),E=this.pos):++this.pos}}},S.jsx_readNewLine=function(w){var E,T=this.input.charCodeAt(this.pos);return++this.pos,T===13&&this.input.charCodeAt(this.pos)===10?(++this.pos,E=w?`
|
|
19
|
+
`;case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return $e(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 a=this.pos-1;this.invalidStringToken(a,"Invalid escape sequence in template string")}default:if(i>=48&&i<=55){var o=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],h=parseInt(o,8);return h>255&&(o=o.slice(0,-1),h=parseInt(o,8)),this.pos+=o.length-1,i=this.input.charCodeAt(this.pos),(o!=="0"||i===56||i===57)&&(this.strict||e)&&this.invalidStringToken(this.pos-1-o.length,e?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(h)}return ct(i)?(this.options.locations&&(this.lineStart=this.pos,++this.curLine),""):String.fromCharCode(i)}};se.readHexChar=function(e){var i=this.pos,a=this.readInt(16,e);return a===null&&this.invalidStringToken(i,"Bad character escape sequence"),a};se.readWord1=function(){this.containsEsc=!1;for(var e="",i=!0,a=this.pos,o=this.options.ecmaVersion>=6;this.pos<this.input.length;){var h=this.fullCharCodeAtPos();if(Ze(h,o))this.pos+=h<=65535?1:2;else if(h===92){this.containsEsc=!0,e+=this.input.slice(a,this.pos);var x=this.pos;this.input.charCodeAt(++this.pos)!==117&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var v=this.readCodePoint();(i?Ge:Ze)(v,o)||this.invalidStringToken(x,"Invalid Unicode escape"),e+=$e(v),a=this.pos}else break;i=!1}return e+this.input.slice(a,this.pos)};se.readWord=function(){var e=this.readWord1(),i=f.name;return this.keywords.test(e)&&(i=ht[e]),this.finishToken(i,e)};var ir="8.16.0";de.acorn={Parser:de,version:ir,defaultOptions:Jt,Position:vt,SourceLocation:Nt,getLineInfo:Ai,Node:Rt,TokenType:Z,tokTypes:f,keywordTypes:ht,TokContext:Ae,tokContexts:fe,isIdentifierChar:Ze,isIdentifierStart:Ge,Token:ri,isNewLine:ct,lineBreak:Te,lineBreakG:ws,nonASCIIwhitespace:ki};function Xa(e,i){return de.parse(e,i)}function Ja(e,i,a){return de.parseExpressionAt(e,i,a)}function Qa(e,i){return de.tokenizer(e,i)}var Pr=la(ur(),1);function hr(e,i){for(var a=0;a<i.length;a++){var o=i[a];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,typeof(h=(function(x,v){if(typeof x!="object"||x===null)return x;var k=x[Symbol.toPrimitive];if(k!==void 0){var T=k.call(x,"string");if(typeof T!="object")return T;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(x)})(o.key))=="symbol"?h:String(h),o)}var h}function ui(){return ui=Object.assign?Object.assign.bind():function(e){for(var i=1;i<arguments.length;i++){var a=arguments[i];for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(e[o]=a[o])}return e},ui.apply(this,arguments)}function oi(e,i){e.prototype=Object.create(i.prototype),e.prototype.constructor=e,Vi(e,i)}function Vi(e,i){return Vi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,o){return a.__proto__=o,a},Vi(e,i)}function cr(e,i){(i==null||i>e.length)&&(i=e.length);for(var a=0,o=new Array(i);a<i;a++)o[a]=e[a];return o}function pr(e,i){var a=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(a)return(a=a.call(e)).next.bind(a);if(Array.isArray(e)||(a=(function(h,x){if(h){if(typeof h=="string")return cr(h,x);var v=Object.prototype.toString.call(h).slice(8,-1);return v==="Object"&&h.constructor&&(v=h.constructor.name),v==="Map"||v==="Set"?Array.from(h):v==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(v)?cr(h,x):void 0}})(e))||i&&e&&typeof e.length=="number"){a&&(e=a);var o=0;return function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
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 tn=new WeakMap;function sn(e){var i=tn.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 Ae("<tag",!1,!1),tc_cTag:new Ae("</tag",!1,!1),tc_expr:new Ae("<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(v){var k=this.context.pop();k===h.tc_oTag&&v===f.slash||k===h.tc_cTag?(this.context.pop(),this.exprAllowed=this.curContext()===h.tc_expr):this.exprAllowed=!0},i={tokTypes:ui({},a,o),tokContexts:ui({},h),keywordsRegExp:x,tokenIsLiteralPropertyName:function(v){return[f.name,f.string,f.num].concat(Object.values(ht),Object.values(a)).includes(v)},tokenIsKeywordOrIdentifier:function(v){return[f.name].concat(Object.values(ht),Object.values(a)).includes(v)},tokenIsIdentifier:function(v){return[].concat(Object.values(a),[f.name]).includes(v)},tokenIsTSDeclarationStart:function(v){return[a.abstract,a.declare,a.enum,a.module,a.namespace,a.interface,a.type].includes(v)},tokenIsTSTypeOperator:function(v){return[a.keyof,a.readonly,a.unique].includes(v)},tokenIsTemplate:function(v){return v===f.invalidTemplate}}}return i}var Dt=1024,rn=new RegExp("(?:[^\\S\\n\\r\\u2028\\u2029]|\\/\\/.*|\\/\\*.*?\\*\\/)*","y"),lr=new RegExp("(?=("+rn.source+"))\\1"+/(?=[\n\r\u2028\u2029]|\/\*(?!.*?\*\/)|$)/.source,"y"),Mt=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 an(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 fr(e,i){var a=e.key;return!e.computed&&(a.type==="Identifier"&&a.name===i||a.type==="Literal"&&a.value===i)}var W={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."},nn={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"},on=/^[\da-fA-F]+$/,un=/^\d+$/;function Bt(e){return e&&(e.type==="JSXIdentifier"?e.name:e.type==="JSXNamespacedName"?e.namespace.name+":"+e.name.name:e.type==="JSXMemberExpression"?Bt(e.object)+"."+Bt(e.property):void 0)}var Ri=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g;function dr(e){if(!e)throw new Error("Assert fail")}function hn(e){return e==="accessor"}function cn(e){return e==="in"||e==="out"}function Oi(e,i){return 2|(e?4:0)|(i?8:0)}function pn(e){if(e.type!=="MemberExpression")return!1;var i=e.property;return(!e.computed||!(i.type!=="TemplateLiteral"||i.expressions.length>0))&&xr(e.object)}function xr(e){return e.type==="Identifier"||e.type==="MemberExpression"&&!e.computed&&xr(e.object)}function mr(e){return e==="private"||e==="public"||e==="protected"}function Di(e){var i=e||{},a=i.dts,o=a!==void 0&&a,h=i.allowSatisfies,x=h!==void 0&&h;return function(v){var k=v.acorn||ai,T=sn(k),l=k.tokTypes,D=k.keywordTypes,K=k.isIdentifierStart,z=k.lineBreak,P=k.isNewLine,I=k.tokContexts,F=k.isIdentifierChar,L=T.tokTypes,ee=T.tokContexts,Ne=T.keywordsRegExp,Y=T.tokenIsLiteralPropertyName,d=T.tokenIsTemplate,ve=T.tokenIsTSDeclarationStart,ne=T.tokenIsIdentifier,Ve=T.tokenIsKeywordOrIdentifier,jt=T.tokenIsTSTypeOperator;function Ct(O,be,ge){ge===void 0&&(ge=O.length);for(var oe=be;oe<ge;oe++){var te=O.charCodeAt(oe);if(P(te))return oe<ge-1&&te===13&&O.charCodeAt(oe+1)===10?oe+2:oe+1}return-1}v=(function(O,be,ge){var oe=ge.tokTypes,te=be.tokTypes;return(function(g){function s(){return g.apply(this,arguments)||this}oi(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,S=this.startLoc;if(this.match(oe.parenL)){var w=this.start,E=this.startLoc;if(this.next(),m=this.parseExpression(),this.expect(oe.parenR),this.options.preserveParens){var _=this.startNodeAt(w,E);_.expression=m,m=this.finishNode(_,"ParenthesizedExpression")}}else for(m=this.parseIdent(!1);this.eat(oe.dot);){var R=this.startNodeAt(b,S);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)})(v,T,k),v=(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}oi(b,m);var S=b.prototype;return S.jsx_readToken=function(){for(var w="",E=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated JSX contents");var _=this.input.charCodeAt(this.pos);switch(_){case 60:case 123:return this.pos===this.start?_===60&&this.exprAllowed?(++this.pos,this.finishToken(g.jsxTagStart)):this.getTokenFromCode(_):(w+=this.input.slice(E,this.pos),this.finishToken(g.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 `"+(_===62?">":"}")+'` or `{"'+this.input[this.pos]+'"}`?');default:s(_)?(w+=this.input.slice(E,this.pos),w+=this.jsx_readNewLine(!0),E=this.pos):++this.pos}}},S.jsx_readNewLine=function(w){var E,_=this.input.charCodeAt(this.pos);return++this.pos,_===13&&this.input.charCodeAt(this.pos)===10?(++this.pos,E=w?`
|
|
21
21
|
`:`\r
|
|
22
|
-
`):E=String.fromCharCode(T),this.options.locations&&(++this.curLine,this.lineStart=this.pos),E},S.jsx_readString=function(w){for(var E="",T=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var R=this.input.charCodeAt(this.pos);if(R===w)break;R===38?(E+=this.input.slice(T,this.pos),E+=this.jsx_readEntity(),T=this.pos):s(R)?(E+=this.input.slice(T,this.pos),E+=this.jsx_readNewLine(!1),T=this.pos):++this.pos}return E+=this.input.slice(T,this.pos++),this.finishToken(te.string,E)},S.jsx_readEntity=function(){var w,E="",T=0,R=this.input[this.pos];R!=="&"&&this.raise(this.pos,"Entity must start with an ampersand");for(var F=++this.pos;this.pos<this.input.length&&T++<10;){if((R=this.input[this.pos++])===";"){E[0]==="#"?E[1]==="x"?(E=E.substr(2),un.test(E)&&(w=String.fromCharCode(parseInt(E,16)))):(E=E.substr(1),hn.test(E)&&(w=String.fromCharCode(parseInt(E,10)))):w=on[E];break}E+=R}return w||(this.pos=F,"&")},S.jsx_readWord=function(){var w,E=this.pos;do w=this.input.charCodeAt(++this.pos);while(n(w)||w===45);return this.finishToken(g.jsxName,this.input.slice(E,this.pos))},S.jsx_parseIdentifier=function(){var w=this.startNode();return this.type===g.jsxName?w.name=this.value:this.type.keyword?w.name=this.type.keyword:this.unexpected(),this.next(),this.finishNode(w,"JSXIdentifier")},S.jsx_parseNamespacedName=function(){var w=this.start,E=this.startLoc,T=this.jsx_parseIdentifier();if(!p.allowNamespaces||!this.eat(te.colon))return T;var R=this.startNodeAt(w,E);return R.namespace=T,R.name=this.jsx_parseIdentifier(),this.finishNode(R,"JSXNamespacedName")},S.jsx_parseElementName=function(){if(this.type===g.jsxTagEnd)return"";var w=this.start,E=this.startLoc,T=this.jsx_parseNamespacedName();for(this.type!==te.dot||T.type!=="JSXNamespacedName"||p.allowNamespacedObjects||this.unexpected();this.eat(te.dot);){var R=this.startNodeAt(w,E);R.object=T,R.property=this.jsx_parseIdentifier(),T=this.finishNode(R,"JSXMemberExpression")}return T},S.jsx_parseAttributeValue=function(){switch(this.type){case te.braceL:var 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 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")}},S.jsx_parseEmptyExpression=function(){var w=this.startNodeAt(this.lastTokEnd,this.lastTokEndLoc);return this.finishNodeAt(w,"JSXEmptyExpression",this.start,this.startLoc)},S.jsx_parseExpressionContainer=function(){var w=this.startNode();return this.next(),w.expression=this.type===te.braceR?this.jsx_parseEmptyExpression():this.parseExpression(),this.expect(te.braceR),this.finishNode(w,"JSXExpressionContainer")},S.jsx_parseAttribute=function(){var w=this.startNode();return this.eat(te.braceL)?(this.expect(te.ellipsis),w.argument=this.parseMaybeAssign(),this.expect(te.braceR),this.finishNode(w,"JSXSpreadAttribute")):(w.name=this.jsx_parseNamespacedName(),w.value=this.eat(te.eq)?this.jsx_parseAttributeValue():null,this.finishNode(w,"JSXAttribute"))},S.jsx_parseOpeningElementAt=function(w,E){var T=this.startNodeAt(w,E);T.attributes=[];var R=this.jsx_parseElementName();for(R&&(T.name=R);this.type!==te.slash&&this.type!==g.jsxTagEnd;)T.attributes.push(this.jsx_parseAttribute());return T.selfClosing=this.eat(te.slash),this.expect(g.jsxTagEnd),this.finishNode(T,R?"JSXOpeningElement":"JSXOpeningFragment")},S.jsx_parseClosingElementAt=function(w,E){var T=this.startNodeAt(w,E),R=this.jsx_parseElementName();return R&&(T.name=R),this.expect(g.jsxTagEnd),this.finishNode(T,R?"JSXClosingElement":"JSXClosingFragment")},S.jsx_parseElementAt=function(w,E){var T=this.startNodeAt(w,E),R=[],F=this.jsx_parseOpeningElementAt(w,E),G=null;if(!F.selfClosing){e:for(;;)switch(this.type){case g.jsxTagStart:if(w=this.start,E=this.startLoc,this.next(),this.eat(te.slash)){G=this.jsx_parseClosingElementAt(w,E);break e}R.push(this.jsx_parseElementAt(w,E));break;case g.jsxText:R.push(this.parseExprAtom());break;case te.braceL:R.push(this.jsx_parseExpressionContainer());break;default:this.unexpected()}Bt(G.name)!==Bt(F.name)&&this.raise(G.start,"Expected corresponding JSX closing tag for <"+Bt(F.name)+">")}var M=F.name?"Element":"Fragment";return T["opening"+M]=F,T["closing"+M]=G,T.children=R,this.type===te.relational&&this.value==="<"&&this.raise(this.start,"Adjacent JSX elements must be wrapped in an enclosing tag"),this.finishNode(T,"JSX"+M)},S.jsx_parseText=function(){var w=this.parseLiteral(this.value);return w.type="JSXText",w},S.jsx_parseElement=function(){var w=this.start,E=this.startLoc;return this.next(),this.jsx_parseElementAt(w,E)},b})(ge)})(k,_,v,e?.jsx),v=(function(V,be,ge){var oe=be.tokTypes,te=ge.tokTypes;return(function(g){function s(){return g.apply(this,arguments)||this}oi(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,S=this.startNode();b=this.type===te.string?this.parseLiteral(this.value):this.parseIdent(!0),this.next(),S.key=b,m.has(S.key.name)&&this.raise(this.pos,"Duplicated key in attributes"),m.add(S.key.name),this.type!==te.string&&this.raise(this.pos,"Only string is supported as an attribute value"),S.value=this.parseLiteral(this.value),p.push(this.finishNode(S,"ImportAttribute"))}while(this.eat(te.comma));return p},s})(V)})(v,_,k);var xe=(function(V){function be(s,n,p){var m;return(m=V.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:W.InvalidModifierOnTypeParameterPositions}),m}oi(be,V);var ge,oe,te,g=be.prototype;return g.getTokenFromCodeInType=function(s){return s===62||s===60?this.finishOp(l.relational,1):V.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(Q(s))return this.jsx_readWord();if(s==62)return++this.pos,this.finishToken(N.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(N.jsxTagStart)}return V.prototype.readToken.call(this,s)},g.getTokenFromCode=function(s){return this.inType?this.getTokenFromCodeInType(s):s===64?(++this.pos,this.finishToken(N.at)):V.prototype.getTokenFromCode.call(this,s)},g.isAbstractClass=function(){return this.ts_isContextual(N.abstract)&&this.lookahead().type===l._class},g.finishNode=function(s,n){return s.type!==""&&s.end!==0?s:V.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 V.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 fr(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,W.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 S=this.tsTryParseAndCatch(function(){var w=m.startNodeAt(s,n);return w.typeParameters=m.tsParseTypeParameters(),V.prototype.parseFunctionParams.call(m,w),w.returnType=m.tsTryParseTypeOrTypePredicateAnnotation(),m.expect(l.arrow),w});if(this.maybeInArrowParameters=b,S)return V.prototype.parseArrowExpression.call(this,S,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!(D(m)||(64512&m)==55296)}return!1},g.isAbstractConstructorSignature=function(){return this.ts_isContextual(N.abstract)&&this.lookahead().type===l._new},g.nextTokenStartSince=function(s){return Ri.lastIndex=s,Ri.test(this.input)?Ri.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=B[s]:new RegExp(Ne).test(s)&&(n=N[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=Ct(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&&!I(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)||V.prototype.canInsertSemicolon.call(this)},g.hasFollowingLineBreak=function(){return cr.lastIndex=this.end,cr.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 z.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(N.readonly):(this.ts_isContextual(N.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===_.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,N[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(N[s])&&(this.next(),!0):V.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(V.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(),V.prototype.exitScope.call(this),this.finishNode(s,"TSModuleBlock")},g.tsParseAmbientExternalModuleDeclaration=function(s){return this.ts_isContextual(N.global)?(s.global=!0,s.id=this.parseIdent()):this.match(l.string)?s.id=this.parseLiteral(this.value):this.unexpected(),this.match(l.braceL)?(V.prototype.enterScope.call(this,Dt),s.body=this.tsParseModuleBlock(),V.prototype.exitScope.call(this)):V.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===N.enum)return n.tsParseEnumDeclaration(s,{declare:!0});if(m===N.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===N.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=[],S=-1;!this.tsIsListTerminator(s);){S=-1;var w=n();if(w==null)return;if(b.push(w),!this.eat(l.comma)){if(this.tsIsListTerminator(s))break;return void(p&&this.expect(l.comma))}S=this.lastTokStart}return m&&(m.value=S),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 S=this.tsParseDelimitedList(s,n,b);return this.expect(p?l.bracketR:l.relational),S},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 V.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,W.UnsupportedSignatureParameterKind(n.type)),n})},g.tsParseTypePredicateAsserts=function(){if(this.type!==N.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 S=n.tsParseThisTypeOrThisTypePredicate();return S.type==="TSThisType"?(m.parameterName=S,m.asserts=!0,m.typeAnnotation=null,S=n.finishNode(m,"TSTypePredicate")):(n.resetStartLocationFromNode(S,m),S.asserts=!0),p.typeAnnotation=S,n.finishNode(p,"TSTypeAnnotation")}var w=n.tsIsIdentifier()&&n.tsTryParse(n.tsParseTypePredicatePrefix.bind(n));if(!w)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 E=n.tsParseTypeAnnotation(!1);return m.parameterName=w,m.typeAnnotation=E,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,W.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),S=[];do S.push(n());while(this.eat(p));return S.length!==1||b?(m.types=S,this.finishNode(m,s)):S[0]},g.tsCheckTypeAnnotationForReadOnly=function(s){switch(s.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(s.start,W.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,W.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 S=this.startNodeAtNode(m);S.optional=b,m.type!=="TSTypeReference"||m.typeParameters||m.typeName.type!=="Identifier"?(this.raise(m.start,W.InvalidTupleMemberLabel),S.label=m):S.label=m.typeName,S.elementType=this.tsParseType(),m=this.finishNode(S,"TSNamedTupleMember")}else if(b){var w=this.startNodeAtNode(m);w.typeAnnotation=m,m=this.finishNode(w,"TSOptionalType")}if(p){var E=this.startNodeAt(n,s);E.typeAnnotation=m,m=this.finishNode(E,"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 S=b.type;!p||S==="TSRestType"||S==="TSOptionalType"||S==="TSNamedTupleMember"&&b.optional||s.raise(b.start,W.OptionalTypeBeforeRequired),p||(p=S==="TSNamedTupleMember"&&b.optional||S==="TSOptionalType");var w=S;S==="TSRestType"&&(w=(b=b.typeAnnotation).type);var E=w==="TSNamedTupleMember";m!=null||(m=E),m!==E&&s.raise(b.start,W.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 jt(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;lr(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:W.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,W.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 S=b[m];n[S]=p[S]}},g.tsParseModifiers=function(s){for(var n=this,p=s.modified,m=s.allowedModifiers,b=s.disallowedModifiers,S=s.stopOnStartOfClassStaticBlock,w=s.errorTemplate,E=w===void 0?W.InvalidModifierOnTypeMember:w,T={},R=function(he,ue,ce,me){ue===ce&&p[me]&&n.raise(he.column,W.InvalidModifiersOrder({orderedModifiers:[ce,me]}))},F=function(he,ue,ce,me){(p[ce]&&ue===me||p[me]&&ue===ce)&&n.raise(he.column,W.IncompatibleModifiers({modifiers:[ce,me]}))};;){var G=this.startLoc,M=this.tsParseModifier(m.concat(b??[]),S);if(!M)break;fr(M)?p.accessibility?this.raise(this.start,W.DuplicateAccessibilityModifier()):(R(G,M,M,"override"),R(G,M,M,"static"),R(G,M,M,"readonly"),R(G,M,M,"accessor"),T.accessibility=M,p.accessibility=M):pn(M)?p[M]?this.raise(this.start,W.DuplicateModifier({modifier:M})):(R(G,M,"in","out"),T[M]=M,p[M]=!0):cn(M)?p[M]?this.raise(this.start,W.DuplicateModifier({modifier:M})):(F(G,M,"accessor","readonly"),F(G,M,"accessor","static"),F(G,M,"accessor","override"),T[M]=M,p[M]=!0):Object.hasOwnProperty.call(p,M)?this.raise(this.start,W.DuplicateModifier({modifier:M})):(R(G,M,"static","readonly"),R(G,M,"static","override"),R(G,M,"override","readonly"),R(G,M,"abstract","override"),F(G,M,"declare","override"),F(G,M,"static","abstract"),T[M]=M,p[M]=!0),b!=null&&b.includes(M)&&this.raise(this.start,E)}return T},g.tsParseInOutModifiers=function(s){this.tsParseModifiers({modified:s,allowedModifiers:["in","out"],disallowedModifiers:["public","private","protected","readonly","declare","abstract","override"],errorTemplate:W.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,W.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,W.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,W.ReadonlyForMethodSignature);var m=p;m.kind&&this.tsMatchLeftRelational()&&this.raise(this.start,W.AccesorCannotHaveTypeParameters),this.tsFillSignature(l.colon,m),this.tsParseTypeMemberSemicolon();var b="parameters",S="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,W.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 w=m[b][0];this.isThisParam(w)&&this.raise(this.start,W.AccesorCannotDeclareThisParameter),w.type==="Identifier"&&w.optional&&this.raise(this.start,W.SetAccesorCannotHaveOptionalParameter),w.type==="RestElement"&&this.raise(this.start,W.SetAccesorCannotHaveRestParameter)}m[S]&&this.raise(m[S].start,W.SetAccesorCannotHaveReturnType)}else m.kind="method";return this.finishNode(m,"TSMethodSignature")}var E=p;n&&(E.readonly=!0);var T=this.tsTryParseTypeAnnotation();return T&&(E.typeAnnotation=T),this.tsParseTypeMemberSemicolon(),this.finishNode(E,"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,W.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(N.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)){V.prototype.enterScope.call(this,Dt);var m=s;return m.global=!0,m.id=n,m.body=this.tsParseModuleBlock(),V.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===N.type||s===N.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(),S=this.isUnparsedContextual(b,"from");if(this.input.charCodeAt(b)===44||ne(this.type)&&S)return!0;if(this.match(l._default)&&S){var w=this.input.charCodeAt(this.nextTokenStartSince(b+4));return w===34||w===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 V.prototype.enterScope.call(this,Dt),s.body=this.tsParseModuleBlock(),V.prototype.exitScope.call(this);return this.finishNode(s,"TSModuleDeclaration")},g.checkLValSimple=function(s,n,p){return n===void 0&&(n=0),V.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(N.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),V.prototype.expect.call(this,l.eq);var p=this.tsParseModuleReference();return s.importKind==="type"&&p.type!=="TSExternalModuleReference"&&this.raise(p.start,W.ImportAliasHasImportType),s.moduleReference=p,V.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===N.type||s===N.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 S=this.yieldPos,w=this.awaitPos,E=this.awaitIdentPos,T=this.maybeInArrowParameters;this.maybeInArrowParameters=!1,this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(Vi(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=S,this.awaitPos=w,this.awaitIdentPos=E,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=T,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 S=b!=null&&b.isFunctionDeclaration?"TSDeclareFunction":b!=null&&b.isClassMethod?"TSDeclareMethod":void 0;return S&&!this.match(l.braceL)&&this.isLineTerminator()?this.finishNode(s,S):S==="TSDeclareFunction"&&this.isAmbientContext&&(this.raise(s.start,W.DeclareFunctionHasImplementation),s.declare)?(V.prototype.parseFunctionBody.call(this,s,n,p,!1),this.finishNode(s,S)):(V.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,S=this.startLoc,w=this.type===l._import;n.callee=this.parseSubscripts(this.parseExprAtom(),b,S,!0,!1),w&&n.callee.type==="ImportExpression"&&this.raise(b,"Cannot use new with import()");var E=n.callee;return E.type!=="TSInstantiationExpression"||(s=E.extra)!=null&&s.parenthesized||(n.typeParameters=E.typeParameters,n.callee=E.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 S;if(l._in.binop>m&&!this.hasPrecedingLineBreak()&&(this.isContextual("as")&&(S="TSAsExpression"),x&&this.isContextual("satisfies")&&(S="TSSatisfiesExpression"),S)){var w=this.startNodeAt(n,p);w.expression=s;var E=this.tsTryNextParseConstantContext();return w.typeAnnotation=E||this.tsNextThenParseType(),this.finishNode(w,S),this.reScan_lt_gt(),this.parseExprOp(w,n,p,m,b)}return V.prototype.parseExprOp.call(this,s,n,p,m,b)},g.parseImportSpecifiers=function(){var s=[],n=!0;if(_.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,W.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(N.interface)){var n=this.tsParseInterfaceDeclaration(this.startNode());if(n)return n}return V.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(N.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 S=s;return this.expectContextual("namespace"),S.id=this.parseIdent(),this.semicolon(),this.importOrExportOuterKind=void 0,this.finishNode(S,"TSNamespaceExportDeclaration")}if(this.ts_isContextualWithState(p,N.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 w,E=hr(s.specifiers);!(w=E()).done;){var T=w.value;this.checkUnreserved(T.local),this.checkLocalExport(T.local),T.local.type==="Literal"&&this.raise(T.local.start,"A string literal cannot be used as an exported binding without `from`.")}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=V.prototype.parseMaybeDefault.call(this,s,n,p);return m.type==="AssignmentPattern"&&m.typeAnnotation&&m.right.start<m.typeAnnotation.start&&this.raise(m.typeAnnotation.start,W.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 V.prototype.toAssignableList.call(this,s,n)},g.reportReservedArrowTypeParam=function(s){},g.parseExprAtom=function(s,n,p){if(this.type===N.jsxText)return this.jsx_parseText();if(this.type===N.jsxTagStart)return this.jsx_parseElement();if(this.type===N.at)return this.parseDecorators(),this.parseExprAtom();if(ne(this.type)){var m=this.potentialArrowAt===this.start,b=this.start,S=this.startLoc,w=this.containsEsc,E=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!w&&E.name==="async"&&!this.canInsertSemicolon()&&this.eat(l._function))return this.overrideContext(P.f_expr),this.parseFunction(this.startNodeAt(b,S),0,!1,!0,n);if(m&&!this.canInsertSemicolon()){if(this.eat(l.arrow))return this.parseArrowExpression(this.startNodeAt(b,S),[E],!1,n);if(this.options.ecmaVersion>=8&&E.name==="async"&&this.type===l.name&&!w&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc))return E=this.parseIdent(!1),!this.canInsertSemicolon()&&this.eat(l.arrow)||this.unexpected(),this.parseArrowExpression(this.startNodeAt(b,S),[E],!0,n)}return E}return V.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 Oe(this.type)?(s.name=this.value,s):V.prototype.parseIdentNode.call(this)},g.parseVarStatement=function(s,n,p){p===void 0&&(p=!1);var m=this.isAmbientContext;this.next(),V.prototype.parseVar.call(this,s,!1,n,p||m),this.semicolon();var b=this.finishNode(s,"VariableDeclaration");if(!m)return b;for(var S,w=hr(b.declarations);!(S=w()).done;){var E=S.value,T=E.init;T&&(n!=="const"||E.id.typeAnnotation?this.raise(T.start,W.InitializerNotAllowedInAmbientContext):T.type!=="StringLiteral"&&T.type!=="BooleanLiteral"&&T.type!=="NumericLiteral"&&T.type!=="BigIntLiteral"&&(T.type!=="TemplateLiteral"||T.expressions.length>0)&&!ln(T)&&this.raise(T.start,W.ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference))}return b},g.parseStatement=function(s,n,p){if(this.match(N.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(N.enum))return this.tsParseEnumDeclaration(this.startNode());if(this.ts_isContextual(N.interface)){var b=this.tsParseInterfaceDeclaration(this.startNode());if(b)return b}return V.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,W.ClassMethodHasReadonly),s.declare&&this.match(l.parenL)&&this.raise(s.start,W.ClassMethodHasDeclare)},g.parseExpressionStatement=function(s,n){return(n.type==="Identifier"?this.tsParseExpressionStatement(s,n):void 0)||V.prototype.parseExpressionStatement.call(this,s,n)},g.shouldParseExportStatement=function(){return!!this.tsIsDeclarationStart()||!!this.match(N.at)||V.prototype.shouldParseExportStatement.call(this)},g.parseConditional=function(s,n,p,m,b){if(this.eat(l.question)){var S=this.startNodeAt(n,p);return S.test=s,S.consequent=this.parseMaybeAssign(),this.expect(l.colon),S.alternate=this.parseMaybeAssign(m),this.finishNode(S,"ConditionalExpression")}return s},g.parseMaybeConditional=function(s,n){var p=this,m=this.start,b=this.startLoc,S=this.parseExprOps(s,n);if(this.checkExpressionErrors(n))return S;if(!this.maybeInArrowParameters||!this.match(l.question))return this.parseConditional(S,m,b,s,n);var w=this.tryParse(function(){return p.parseConditional(S,m,b,s,n)});return w.node?(w.error&&this.setLookaheadState(w.failState),w.node):(w.error&&this.setOptionalParametersError(n,w.error),S)},g.parseParenItem=function(s){var n=this.start,p=this.startLoc;if(s=V.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(N.declare))return this.tsInAmbientContext(function(){return n.parseExportDeclaration(s)});var p=this.start,m=this.startLoc,b=this.eatContextual("declare");!b||!this.ts_isContextual(N.declare)&&this.shouldParseExportStatement()||this.raise(this.start,W.ExpectedAmbientAfterExportDeclare);var S=ne(this.type)&&this.tsTryParseExportDeclaration()||this.parseStatement(null);return S?((S.type==="TSInterfaceDeclaration"||S.type==="TSTypeAliasDeclaration"||b)&&(s.exportKind="type"),b&&(this.resetStartLocation(S,p,m),S.declare=!0),S):null},g.parseClassId=function(s,n){if(n||!this.isContextual("implements")){V.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,W.PrivateElementHasAbstract),s.accessibility&&this.raise(s.start,W.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,W.DeclareClassFieldHasInitializer),s.abstract&&this.match(l.eq)){var n=s.key;this.raise(this.start,W.AbstractPropertyHasInitializer({propertyName:n.type!=="Identifier"||s.computed?"["+this.input.slice(n.start,n.end)+"]":n.name}))}return V.prototype.parseClassField.call(this,s)},g.parseClassMethod=function(s,n,p,m){var b=s.kind==="constructor",S=s.key.type==="PrivateIdentifier",w=this.tsTryParseTypeParameters();S?(w&&(s.typeParameters=w),s.accessibility&&this.raise(s.start,W.PrivateMethodsHasAccessibility({modifier:s.accessibility}))):w&&b&&this.raise(w.start,W.ConstructorHasTypeParameters);var E=s.declare,T=s.kind;!(E!==void 0&&E)||T!=="get"&&T!=="set"||this.raise(s.start,W.DeclareAccessor({kind:T})),w&&(s.typeParameters=w);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&&pr(s,"prototype")&&this.raise(R.start,"Classes may not have a static property named prototype");var F=s.value=this.parseMethod(n,p,m,!0,s);return s.kind==="get"&&F.params.length!==0&&this.raiseRecoverable(F.start,"getter should have no params"),s.kind==="set"&&F.params.length!==1&&this.raiseRecoverable(F.start,"setter should have exactly one param"),s.kind==="set"&&F.params[0].type==="RestElement"&&this.raiseRecoverable(F.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(),S="",w=!1,E=!1,T="method",R=["declare","private","public","protected","accessor","override","abstract","readonly","static"],F=this.tsParseModifiers({modified:b,allowedModifiers:R,disallowedModifiers:["in","out"],stopOnStartOfClassStaticBlock:!0,errorTemplate:W.InvalidModifierOnTypeParameterPositions});p=!!F.static;var G=function(){if(!n.tsIsStartOfStaticBlocks()){var M=n.tsTryParseIndexSignature(b);if(M)return b.abstract&&n.raise(b.start,W.IndexSignatureHasAbstract),b.accessibility&&n.raise(b.start,W.IndexSignatureHasAccessibility({modifier:b.accessibility})),b.declare&&n.raise(b.start,W.IndexSignatureHasDeclare),b.override&&n.raise(b.start,W.IndexSignatureHasOverride),M;if(!n.inAbstractClass&&b.abstract&&n.raise(b.start,W.NonAbstractClassHasAbstractMethod),b.override&&s&&n.raise(b.start,W.OverrideNotInSubClass),b.static=p,p&&(n.isClassElementNameStart()||n.type===l.star||(S="static")),!S&&m>=8&&n.eatContextual("async")&&(!n.isClassElementNameStart()&&n.type!==l.star||n.canInsertSemicolon()?S="async":E=!0),!S&&(m>=9||!E)&&n.eat(l.star)&&(w=!0),!S&&!E&&!w){var he=n.value;(n.eatContextual("get")||n.eatContextual("set"))&&(n.isClassElementNameStart()?T=he:S=he)}if(S?(b.computed=!1,b.key=n.startNodeAt(n.lastTokStart,n.lastTokStartLoc),b.key.name=S,n.finishNode(b.key,"Identifier")):n.parseClassElementName(b),n.parsePostMemberNameModifiers(b),n.isClassMethod()||m<13||n.type===l.parenL||T!=="method"||w||E){var ue=!b.static&&pr(b,"constructor"),ce=ue&&s;ue&&T!=="method"&&n.raise(b.key.start,"Constructor can't have get/set modifier"),b.kind=ue?"constructor":T,n.parseClassMethod(b,w,E,ce)}else n.parseClassField(b);return b}if(n.next(),n.next(),n.tsHasSomeModifiers(b,R)&&n.raise(n.start,W.StaticBlockCannotHaveModifier),m>=13)return V.prototype.parseClassStaticBlock.call(n,b),b};return b.declare?this.tsInAmbientContext(G):G(),b},g.isClassElementNameStart=function(){return!!this.tsIsIdentifier()||V.prototype.isClassElementNameStart.call(this)},g.parseClassSuper=function(s){V.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),V.prototype.parseFunctionParams.call(this,s)},g.parseVarId=function(s,n){V.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,S=this.awaitPos,w=this.awaitIdentPos;this.enterScope(16|Vi(p,!1)),this.initFunction(s);var E=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=S,this.awaitIdentPos=w,this.maybeInArrowParameters=E,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,S=-1,w=-1;n?(b=n.parenthesizedAssign,S=n.trailingComma,w=n.doubleProto,n.parenthesizedAssign=n.trailingComma=-1):(n=new Mt,m=!0);var E=this.start,T=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,E,T)),this.type.isAssign){var F=this.startNodeAt(E,T);return F.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),F.left=R,this.next(),F.right=this.parseMaybeAssign(s),w>-1&&(n.doubleProto=w),this.finishNode(F,"AssignmentExpression")}return m&&this.checkExpressionErrors(n,!0),b>-1&&(n.parenthesizedAssign=b),S>-1&&(n.trailingComma=S),R},g.parseMaybeAssign=function(s,n,p){var m,b,S,w,E,T,R,F,G,M,he,ue=this;if(this.matchJsx("jsxTagStart")||this.tsMatchLeftRelational()){if(F=this.cloneCurLookaheadState(),!(G=this.tryParse(function(){return ue.parseMaybeAssignOrigin(s,n,p)},F)).error)return G.node;var ce=this.context,me=ce[ce.length-1];me===_.tokContexts.tc_oTag&&ce[ce.length-2]===_.tokContexts.tc_expr?(ce.pop(),ce.pop()):me!==_.tokContexts.tc_oTag&&me!==_.tokContexts.tc_expr||ce.pop()}if(!((m=G)!=null&&m.error||this.tsMatchLeftRelational()))return this.parseMaybeAssignOrigin(s,n,p);F&&!this.compareLookaheadState(F,this.getCurLookaheadState())||(F=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},F);if(!Se.error&&!Se.aborted)return he&&this.reportReservedArrowTypeParam(he),Se.node;if(!G&&(lr(!0),!(M=this.tryParse(function(){return ue.parseMaybeAssignOrigin(s,n,p)},F)).error))return M.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((S=M)!=null&&S.node)return this.setLookaheadState(M.failState),M.node;throw(w=G)!=null&&w.thrown?G.error:Se.thrown?Se.error:(E=M)!=null&&E.thrown?M.error:((T=G)==null?void 0:T.error)||Se.error||((R=M)==null?void 0:R.error)},g.parseAssignableListItem=function(s){for(var n=[];this.match(N.at);)n.push(this.parseDecorator());var p,m=this.start,b=this.startLoc,S=!1,w=!1;if(s!==void 0){var E={};this.tsParseModifiers({modified:E,allowedModifiers:["public","private","protected","override","readonly"]}),p=E.accessibility,w=E.override,S=E.readonly,s===!1&&(p||S||w)&&this.raise(b.start,W.UnexpectedParameterModifier)}var T=this.parseMaybeDefault(m,b);this.parseBindingListItem(T);var R=this.parseMaybeDefault(T.start,T.loc,T);if(n.length&&(R.decorators=n),p||S||w){var F=this.startNodeAt(m,b);return p&&(F.accessibility=p),S&&(F.readonly=S),w&&(F.override=w),R.type!=="Identifier"&&R.type!=="AssignmentPattern"&&this.raise(F.start,W.UnsupportedParameterPropertyKind),F.parameter=R,this.finishNode(F,"TSParameterProperty")}return R},g.checkLValInnerPattern=function(s,n,p){n===void 0&&(n=0),s.type==="TSParameterProperty"?this.checkLValInnerPattern(s.parameter,n,p):V.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,W.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,S){return b.type!=="ObjectMethod"&&(S===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 Mt),s.type){case"ParenthesizedExpression":return this.toAssignableParenthesizedExpression(s,n,p);case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":return n||this.raise(s.start,W.UnexpectedTypeCastInParameter),this.toAssignable(s.expression,n,p);case"MemberExpression":break;case"AssignmentExpression":return n||s.left.type!=="TSTypeCastExpression"||(s.left=this.typeCastToParameter(s.left)),V.prototype.toAssignable.call(this,s,n,p);case"TSTypeCastExpression":return this.typeCastToParameter(s);default:return V.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 V.prototype.toAssignable.call(this,s,n,p)}},g.curPosition=function(){if(this.options.locations){var s=V.prototype.curPosition.call(this);return Object.defineProperty(s,"offset",{get:function(){return function(n){var p=new k.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):V.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 S=p.tsParseTypeOrTypePredicateAnnotation(l.colon);return!p.canInsertSemicolon()&&p.match(l.arrow)||b(),S});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,S=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){var w=this.maybeInArrowParameters;this.maybeInArrowParameters=!0,this.next();var E,T=this.start,R=this.startLoc,F=[],G=!0,M=!1,he=new Mt,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),S&&this.afterTrailingComma(l.parenR,!0)){M=!0;break}if(this.type===l.ellipsis){E=this.start,F.push(this.parseParenItem(this.parseRestBinding())),this.type===l.comma&&this.raise(this.start,"Comma is not permitted after the rest element");break}F.push(this.parseMaybeAssign(n,he,this.parseParenItem))}var me=this.lastTokEnd,Se=this.lastTokEndLoc;if(this.expect(l.parenR),this.maybeInArrowParameters=w,s&&this.shouldParseArrow(F)&&this.eat(l.arrow))return this.checkPatternErrors(he,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=ue,this.awaitPos=ce,this.parseParenArrowList(m,b,F,n);F.length&&!M||this.unexpected(this.lastTokStart),E&&this.unexpected(E),this.checkExpressionErrors(he,!0),this.yieldPos=ue||this.yieldPos,this.awaitPos=ce||this.awaitPos,F.length>1?((p=this.startNodeAt(T,R)).expressions=F,this.finishNodeAt(p,"SequenceExpression",me,Se)):p=F[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=[],S=!0;!this.eat(s);){if(S)S=!1;else if(this.expect(l.comma),n&&this.afterTrailingComma(s))break;var w=void 0;p&&this.type===l.comma?w=null:this.type===l.ellipsis?(w=this.parseSpread(m),m&&this.type===l.comma&&m.trailingComma<0&&(m.trailingComma=this.start)):w=this.parseMaybeAssign(!1,m,this.parseParenItem),b.push(w)}return b},g.parseSubscript=function(s,n,p,m,b,S,w){var E=this,T=S;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 F=!1;if(this.match(l.questionDot)&&this.lookaheadCharCode()===60){if(m)return s;s.optional=!0,T=F=!0,this.next()}if(this.tsMatchLeftRelational()||this.match(l.bitShift)){var G,M=this.tsTryParseAndCatch(function(){if(!m&&E.atPossibleAsyncArrow(s)){var De=E.tsTryParseGenericAsyncArrowFunction(n,p,w);if(De)return s=De}var ot=E.tsParseTypeArgumentsInExpression();if(!ot)return s;if(F&&!E.match(l.parenL))return G=E.curPosition(),s;if(d(E.type)||E.type===l.backQuote){var wt=E.parseTaggedTemplateExpression(s,n,p,T);return wt.typeParameters=ot,wt}if(!m&&E.eat(l.parenL)){var kt=new Mt,ae=E.startNodeAt(n,p);return ae.callee=s,ae.arguments=E.parseExprList(l.parenR,E.options.ecmaVersion>=8,!1,kt),E.tsCheckForInvalidTypeCasts(ae.arguments),ae.typeParameters=ot,T&&(ae.optional=F),E.checkExpressionErrors(kt,!0),s=E.finishNode(ae,"CallExpression")}var we=E.type;if(!(E.tsMatchRightRelational()||we===l.bitShift||we!==l.parenL&&(ye=we,!!ye.startsExpr)&&!E.hasPrecedingLineBreak())){var ye,At=E.startNodeAt(n,p);return At.expression=s,At.typeParameters=ot,E.finishNode(At,"TSInstantiationExpression")}});if(G&&this.unexpected(G),M)return M.type==="TSInstantiationExpression"&&(this.match(l.dot)||this.match(l.questionDot)&&this.lookaheadCharCode()!==40)&&this.raise(this.start,W.InvalidPropertyAccessAfterInstantiationExpression),s=M}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 Mt,ze=this.yieldPos,it=this.awaitPos,Le=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var ft=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,ft,w);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=ft,he&&(Qe.optional=ue),s=this.finishNode(Qe,"CallExpression")}this.maybeInArrowParameters=Se}else if(this.type===l.backQuote){(ue||T)&&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(N.at))for(;this.match(N.at);)p.push(this.parseDecorator());var m=V.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 V.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(),S=this.startNode(),w=!1;S.body=[];var E=[];for(this.expect(l.braceL);this.type!==l.braceR;)if(this.match(N.at))E.push(this.parseDecorator());else{var T=this.parseClassElement(s.superClass!==null);E.length&&(T.decorators=E,this.resetStartLocationFromNode(T,E[0]),E=[]),T&&(S.body.push(T),T.type==="MethodDefinition"&&T.kind==="constructor"&&T.value.type==="FunctionExpression"?(w&&this.raiseRecoverable(T.start,"Duplicate constructor in the same class"),w=!0,T.decorators&&T.decorators.length>0&&this.raise(T.start,"Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?")):T.key&&T.key.type==="PrivateIdentifier"&&nn(b,T)&&this.raiseRecoverable(T.key.start,"Identifier '#"+T.key.name+"' has already been declared"))}return this.strict=m,this.next(),E.length&&this.raise(this.start,"Decorators must be attached to a class element."),s.body=this.finishNode(S,"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 S=this.startNode(),w=this.yieldPos,E=this.awaitPos,T=this.awaitIdentPos;if(this.initFunction(S),this.options.ecmaVersion>=6&&(S.generator=s),this.options.ecmaVersion>=8&&(S.async=!!n),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(64|Vi(n,S.generator)|(p?128:0)),this.expect(l.parenL),S.params=this.parseClassFunctionParams(),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(S,!1,!0,!1,{isClassMethod:m}),this.yieldPos=w,this.awaitPos=E,this.awaitIdentPos=T,b&&b.abstract&&S.body){var R=b.key;this.raise(b.start,W.AbstractMethodHasImplementation({methodName:R.type!=="Identifier"||b.computed?"["+this.input.slice(R.start,R.end)+"]":R.name}))}return this.finishNode(S,"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(N.type)){var s=this.startNode();return s.imported=this.parseModuleExportName(),this.parseTypeOnlyImportExportSpecifier(s,!0,this.importOrExportOuterKind==="type"),this.finishNode(s,"ImportSpecifier")}var n=V.prototype.parseImportSpecifier.call(this);return n.importKind="value",n},g.parseExportSpecifier=function(s){var n=this.ts_isContextual(N.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=V.prototype.parseExportSpecifier.call(this,s);return m.exportKind="value",m},g.parseTypeOnlyImportExportSpecifier=function(s,n,p){var m,b=n?"imported":"local",S=n?"local":"exported",w=s[b],E=!1,T=!0,R=w.start;if(this.isContextual("as")){var F=this.parseIdent();if(this.isContextual("as")){var G=this.parseIdent();Oe(this.type)?(E=!0,w=F,m=n?this.parseIdent():this.parseModuleExportName(),T=!1):(m=G,T=!1)}else Oe(this.type)?(T=!1,m=n?this.parseIdent():this.parseModuleExportName()):(E=!0,w=F)}else Oe(this.type)&&(E=!0,n?(w=V.prototype.parseIdent.call(this,!0),this.isContextual("as")||this.checkUnreserved(w)):w=this.parseModuleExportName());E&&p&&this.raise(R,n?W.TypeModifierIsUsedInTypeImports:W.TypeModifierIsUsedInTypeExports),s[b]=w,s[S]=m,s[n?"importKind":"exportKind"]=E?"type":"value",T&&this.eatContextual("as")&&(s[S]=n?this.parseIdent():this.parseModuleExportName()),s[S]||(s[S]=this.copyNode(s[b])),n&&this.checkLValSimple(s[S],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():V.prototype.raise.call(this,s,n):p?V.prototype.raiseRecoverable.call(this,s,n):V.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(P.b_expr):p==ee.tc_expr?this.context.push(P.b_tmpl):V.prototype.updateContext.call(this,s),this.exprAllowed=!0}else{if(n!==l.slash||s!==N.jsxTagStart)return V.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 S=this.tsTryParseAndCatch(function(){return p.tsParseTypeArgumentsInExpression()});S&&(m.typeParameters=S)}for(m.attributes=[];this.type!==l.slash&&this.type!==N.jsxTagEnd;)m.attributes.push(this.jsx_parseAttribute());return m.selfClosing=this.eat(l.slash),this.expect(N.jsxTagEnd),this.finishNode(m,b?"JSXOpeningElement":"JSXOpeningFragment")},g.enterScope=function(s){s===Dt&&this.importsStack.push([]),V.prototype.enterScope.call(this,s);var n=V.prototype.currentScope.call(this);n.types=[],n.enums=[],n.constEnums=[],n.classes=[],n.exportOnlyBindings=[]},g.exitScope=function(){V.prototype.currentScope.call(this).flags===Dt&&this.importsStack.pop(),V.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||!V.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);V.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}V.prototype.checkLocalExport.call(this,s)}},ge=be,te=[{key:"acornTypeScript",get:function(){return _}}],(oe=[{key:"acornTypeScript",get:function(){return _}}])&&or(ge.prototype,oe),te&&or(ge,te),Object.defineProperty(ge,"prototype",{writable:!1}),be})(v);return xe}}var{stringify:fn}=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 hi={"||":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},Ke=17,dn={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:Ke,ClassExpression:Ke,FunctionExpression:Ke,ObjectExpression:Ke,UpdateExpression:16,UnaryExpression:15,AwaitExpression:15,BinaryExpression:14,LogicalExpression:13,ConditionalExpression:4,AssignmentExpression:3,YieldExpression:2,RestElement:1};function St(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 Sr(e,i,a,o){let h=e.expressionsPrecedence[i.type];if(h===Ke)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?hi[i.operator]<=hi[a.operator]:hi[i.operator]<hi[a.operator]}function ci(e,i,a,o){let{generator:h}=e;Sr(e,i,a,o)?(e.write("("),h[i.type](i,e),e.write(")")):h[i.type](i,e)}function mn(e,i,a,o){let h=i.split(`
|
|
22
|
+
`):E=String.fromCharCode(_),this.options.locations&&(++this.curLine,this.lineStart=this.pos),E},S.jsx_readString=function(w){for(var E="",_=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var R=this.input.charCodeAt(this.pos);if(R===w)break;R===38?(E+=this.input.slice(_,this.pos),E+=this.jsx_readEntity(),_=this.pos):s(R)?(E+=this.input.slice(_,this.pos),E+=this.jsx_readNewLine(!1),_=this.pos):++this.pos}return E+=this.input.slice(_,this.pos++),this.finishToken(te.string,E)},S.jsx_readEntity=function(){var w,E="",_=0,R=this.input[this.pos];R!=="&"&&this.raise(this.pos,"Entity must start with an ampersand");for(var B=++this.pos;this.pos<this.input.length&&_++<10;){if((R=this.input[this.pos++])===";"){E[0]==="#"?E[1]==="x"?(E=E.substr(2),on.test(E)&&(w=String.fromCharCode(parseInt(E,16)))):(E=E.substr(1),un.test(E)&&(w=String.fromCharCode(parseInt(E,10)))):w=nn[E];break}E+=R}return w||(this.pos=B,"&")},S.jsx_readWord=function(){var w,E=this.pos;do w=this.input.charCodeAt(++this.pos);while(n(w)||w===45);return this.finishToken(g.jsxName,this.input.slice(E,this.pos))},S.jsx_parseIdentifier=function(){var w=this.startNode();return this.type===g.jsxName?w.name=this.value:this.type.keyword?w.name=this.type.keyword:this.unexpected(),this.next(),this.finishNode(w,"JSXIdentifier")},S.jsx_parseNamespacedName=function(){var w=this.start,E=this.startLoc,_=this.jsx_parseIdentifier();if(!p.allowNamespaces||!this.eat(te.colon))return _;var R=this.startNodeAt(w,E);return R.namespace=_,R.name=this.jsx_parseIdentifier(),this.finishNode(R,"JSXNamespacedName")},S.jsx_parseElementName=function(){if(this.type===g.jsxTagEnd)return"";var w=this.start,E=this.startLoc,_=this.jsx_parseNamespacedName();for(this.type!==te.dot||_.type!=="JSXNamespacedName"||p.allowNamespacedObjects||this.unexpected();this.eat(te.dot);){var R=this.startNodeAt(w,E);R.object=_,R.property=this.jsx_parseIdentifier(),_=this.finishNode(R,"JSXMemberExpression")}return _},S.jsx_parseAttributeValue=function(){switch(this.type){case te.braceL:var 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 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")}},S.jsx_parseEmptyExpression=function(){var w=this.startNodeAt(this.lastTokEnd,this.lastTokEndLoc);return this.finishNodeAt(w,"JSXEmptyExpression",this.start,this.startLoc)},S.jsx_parseExpressionContainer=function(){var w=this.startNode();return this.next(),w.expression=this.type===te.braceR?this.jsx_parseEmptyExpression():this.parseExpression(),this.expect(te.braceR),this.finishNode(w,"JSXExpressionContainer")},S.jsx_parseAttribute=function(){var w=this.startNode();return this.eat(te.braceL)?(this.expect(te.ellipsis),w.argument=this.parseMaybeAssign(),this.expect(te.braceR),this.finishNode(w,"JSXSpreadAttribute")):(w.name=this.jsx_parseNamespacedName(),w.value=this.eat(te.eq)?this.jsx_parseAttributeValue():null,this.finishNode(w,"JSXAttribute"))},S.jsx_parseOpeningElementAt=function(w,E){var _=this.startNodeAt(w,E);_.attributes=[];var R=this.jsx_parseElementName();for(R&&(_.name=R);this.type!==te.slash&&this.type!==g.jsxTagEnd;)_.attributes.push(this.jsx_parseAttribute());return _.selfClosing=this.eat(te.slash),this.expect(g.jsxTagEnd),this.finishNode(_,R?"JSXOpeningElement":"JSXOpeningFragment")},S.jsx_parseClosingElementAt=function(w,E){var _=this.startNodeAt(w,E),R=this.jsx_parseElementName();return R&&(_.name=R),this.expect(g.jsxTagEnd),this.finishNode(_,R?"JSXClosingElement":"JSXClosingFragment")},S.jsx_parseElementAt=function(w,E){var _=this.startNodeAt(w,E),R=[],B=this.jsx_parseOpeningElementAt(w,E),G=null;if(!B.selfClosing){e:for(;;)switch(this.type){case g.jsxTagStart:if(w=this.start,E=this.startLoc,this.next(),this.eat(te.slash)){G=this.jsx_parseClosingElementAt(w,E);break e}R.push(this.jsx_parseElementAt(w,E));break;case g.jsxText:R.push(this.parseExprAtom());break;case te.braceL:R.push(this.jsx_parseExpressionContainer());break;default:this.unexpected()}Bt(G.name)!==Bt(B.name)&&this.raise(G.start,"Expected corresponding JSX closing tag for <"+Bt(B.name)+">")}var M=B.name?"Element":"Fragment";return _["opening"+M]=B,_["closing"+M]=G,_.children=R,this.type===te.relational&&this.value==="<"&&this.raise(this.start,"Adjacent JSX elements must be wrapped in an enclosing tag"),this.finishNode(_,"JSX"+M)},S.jsx_parseText=function(){var w=this.parseLiteral(this.value);return w.type="JSXText",w},S.jsx_parseElement=function(){var w=this.start,E=this.startLoc;return this.next(),this.jsx_parseElementAt(w,E)},b})(ge)})(k,T,v,e?.jsx),v=(function(O,be,ge){var oe=be.tokTypes,te=ge.tokTypes;return(function(g){function s(){return g.apply(this,arguments)||this}oi(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,S=this.startNode();b=this.type===te.string?this.parseLiteral(this.value):this.parseIdent(!0),this.next(),S.key=b,m.has(S.key.name)&&this.raise(this.pos,"Duplicated key in attributes"),m.add(S.key.name),this.type!==te.string&&this.raise(this.pos,"Only string is supported as an attribute value"),S.value=this.parseLiteral(this.value),p.push(this.finishNode(S,"ImportAttribute"))}while(this.eat(te.comma));return p},s})(O)})(v,T,k);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:W.InvalidModifierOnTypeParameterPositions}),m}oi(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(K(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 mr(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,W.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 S=this.tsTryParseAndCatch(function(){var w=m.startNodeAt(s,n);return w.typeParameters=m.tsParseTypeParameters(),O.prototype.parseFunctionParams.call(m,w),w.returnType=m.tsTryParseTypeOrTypePredicateAnnotation(),m.expect(l.arrow),w});if(this.maybeInArrowParameters=b,S)return O.prototype.parseArrowExpression.call(this,S,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 Ri.lastIndex=s,Ri.test(this.input)?Ri.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=D[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=Ct(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&&!P(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 lr.lastIndex=this.end,lr.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 z.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===T.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,Dt),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=[],S=-1;!this.tsIsListTerminator(s);){S=-1;var w=n();if(w==null)return;if(b.push(w),!this.eat(l.comma)){if(this.tsIsListTerminator(s))break;return void(p&&this.expect(l.comma))}S=this.lastTokStart}return m&&(m.value=S),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 S=this.tsParseDelimitedList(s,n,b);return this.expect(p?l.bracketR:l.relational),S},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,W.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 S=n.tsParseThisTypeOrThisTypePredicate();return S.type==="TSThisType"?(m.parameterName=S,m.asserts=!0,m.typeAnnotation=null,S=n.finishNode(m,"TSTypePredicate")):(n.resetStartLocationFromNode(S,m),S.asserts=!0),p.typeAnnotation=S,n.finishNode(p,"TSTypeAnnotation")}var w=n.tsIsIdentifier()&&n.tsTryParse(n.tsParseTypePredicatePrefix.bind(n));if(!w)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 E=n.tsParseTypeAnnotation(!1);return m.parameterName=w,m.typeAnnotation=E,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,W.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),S=[];do S.push(n());while(this.eat(p));return S.length!==1||b?(m.types=S,this.finishNode(m,s)):S[0]},g.tsCheckTypeAnnotationForReadOnly=function(s){switch(s.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(s.start,W.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,W.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 S=this.startNodeAtNode(m);S.optional=b,m.type!=="TSTypeReference"||m.typeParameters||m.typeName.type!=="Identifier"?(this.raise(m.start,W.InvalidTupleMemberLabel),S.label=m):S.label=m.typeName,S.elementType=this.tsParseType(),m=this.finishNode(S,"TSNamedTupleMember")}else if(b){var w=this.startNodeAtNode(m);w.typeAnnotation=m,m=this.finishNode(w,"TSOptionalType")}if(p){var E=this.startNodeAt(n,s);E.typeAnnotation=m,m=this.finishNode(E,"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 S=b.type;!p||S==="TSRestType"||S==="TSOptionalType"||S==="TSNamedTupleMember"&&b.optional||s.raise(b.start,W.OptionalTypeBeforeRequired),p||(p=S==="TSNamedTupleMember"&&b.optional||S==="TSOptionalType");var w=S;S==="TSRestType"&&(w=(b=b.typeAnnotation).type);var E=w==="TSNamedTupleMember";m!=null||(m=E),m!==E&&s.raise(b.start,W.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 jt(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;dr(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:W.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,W.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 S=b[m];n[S]=p[S]}},g.tsParseModifiers=function(s){for(var n=this,p=s.modified,m=s.allowedModifiers,b=s.disallowedModifiers,S=s.stopOnStartOfClassStaticBlock,w=s.errorTemplate,E=w===void 0?W.InvalidModifierOnTypeMember:w,_={},R=function(he,ue,ce,me){ue===ce&&p[me]&&n.raise(he.column,W.InvalidModifiersOrder({orderedModifiers:[ce,me]}))},B=function(he,ue,ce,me){(p[ce]&&ue===me||p[me]&&ue===ce)&&n.raise(he.column,W.IncompatibleModifiers({modifiers:[ce,me]}))};;){var G=this.startLoc,M=this.tsParseModifier(m.concat(b??[]),S);if(!M)break;mr(M)?p.accessibility?this.raise(this.start,W.DuplicateAccessibilityModifier()):(R(G,M,M,"override"),R(G,M,M,"static"),R(G,M,M,"readonly"),R(G,M,M,"accessor"),_.accessibility=M,p.accessibility=M):cn(M)?p[M]?this.raise(this.start,W.DuplicateModifier({modifier:M})):(R(G,M,"in","out"),_[M]=M,p[M]=!0):hn(M)?p[M]?this.raise(this.start,W.DuplicateModifier({modifier:M})):(B(G,M,"accessor","readonly"),B(G,M,"accessor","static"),B(G,M,"accessor","override"),_[M]=M,p[M]=!0):Object.hasOwnProperty.call(p,M)?this.raise(this.start,W.DuplicateModifier({modifier:M})):(R(G,M,"static","readonly"),R(G,M,"static","override"),R(G,M,"override","readonly"),R(G,M,"abstract","override"),B(G,M,"declare","override"),B(G,M,"static","abstract"),_[M]=M,p[M]=!0),b!=null&&b.includes(M)&&this.raise(this.start,E)}return _},g.tsParseInOutModifiers=function(s){this.tsParseModifiers({modified:s,allowedModifiers:["in","out"],disallowedModifiers:["public","private","protected","readonly","declare","abstract","override"],errorTemplate:W.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,W.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,W.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,W.ReadonlyForMethodSignature);var m=p;m.kind&&this.tsMatchLeftRelational()&&this.raise(this.start,W.AccesorCannotHaveTypeParameters),this.tsFillSignature(l.colon,m),this.tsParseTypeMemberSemicolon();var b="parameters",S="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,W.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 w=m[b][0];this.isThisParam(w)&&this.raise(this.start,W.AccesorCannotDeclareThisParameter),w.type==="Identifier"&&w.optional&&this.raise(this.start,W.SetAccesorCannotHaveOptionalParameter),w.type==="RestElement"&&this.raise(this.start,W.SetAccesorCannotHaveRestParameter)}m[S]&&this.raise(m[S].start,W.SetAccesorCannotHaveReturnType)}else m.kind="method";return this.finishNode(m,"TSMethodSignature")}var E=p;n&&(E.readonly=!0);var _=this.tsTryParseTypeAnnotation();return _&&(E.typeAnnotation=_),this.tsParseTypeMemberSemicolon(),this.finishNode(E,"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,W.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,Dt);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(),S=this.isUnparsedContextual(b,"from");if(this.input.charCodeAt(b)===44||ne(this.type)&&S)return!0;if(this.match(l._default)&&S){var w=this.input.charCodeAt(this.nextTokenStartSince(b+4));return w===34||w===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,Dt),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,W.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 S=this.yieldPos,w=this.awaitPos,E=this.awaitIdentPos,_=this.maybeInArrowParameters;this.maybeInArrowParameters=!1,this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(Oi(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=S,this.awaitPos=w,this.awaitIdentPos=E,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=_,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 S=b!=null&&b.isFunctionDeclaration?"TSDeclareFunction":b!=null&&b.isClassMethod?"TSDeclareMethod":void 0;return S&&!this.match(l.braceL)&&this.isLineTerminator()?this.finishNode(s,S):S==="TSDeclareFunction"&&this.isAmbientContext&&(this.raise(s.start,W.DeclareFunctionHasImplementation),s.declare)?(O.prototype.parseFunctionBody.call(this,s,n,p,!1),this.finishNode(s,S)):(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,S=this.startLoc,w=this.type===l._import;n.callee=this.parseSubscripts(this.parseExprAtom(),b,S,!0,!1),w&&n.callee.type==="ImportExpression"&&this.raise(b,"Cannot use new with import()");var E=n.callee;return E.type!=="TSInstantiationExpression"||(s=E.extra)!=null&&s.parenthesized||(n.typeParameters=E.typeParameters,n.callee=E.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 S;if(l._in.binop>m&&!this.hasPrecedingLineBreak()&&(this.isContextual("as")&&(S="TSAsExpression"),x&&this.isContextual("satisfies")&&(S="TSSatisfiesExpression"),S)){var w=this.startNodeAt(n,p);w.expression=s;var E=this.tsTryNextParseConstantContext();return w.typeAnnotation=E||this.tsNextThenParseType(),this.finishNode(w,S),this.reScan_lt_gt(),this.parseExprOp(w,n,p,m,b)}return O.prototype.parseExprOp.call(this,s,n,p,m,b)},g.parseImportSpecifiers=function(){var s=[],n=!0;if(T.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,W.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 S=s;return this.expectContextual("namespace"),S.id=this.parseIdent(),this.semicolon(),this.importOrExportOuterKind=void 0,this.finishNode(S,"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 w,E=pr(s.specifiers);!(w=E()).done;){var _=w.value;this.checkUnreserved(_.local),this.checkLocalExport(_.local),_.local.type==="Literal"&&this.raise(_.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,W.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,S=this.startLoc,w=this.containsEsc,E=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!w&&E.name==="async"&&!this.canInsertSemicolon()&&this.eat(l._function))return this.overrideContext(I.f_expr),this.parseFunction(this.startNodeAt(b,S),0,!1,!0,n);if(m&&!this.canInsertSemicolon()){if(this.eat(l.arrow))return this.parseArrowExpression(this.startNodeAt(b,S),[E],!1,n);if(this.options.ecmaVersion>=8&&E.name==="async"&&this.type===l.name&&!w&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc))return E=this.parseIdent(!1),!this.canInsertSemicolon()&&this.eat(l.arrow)||this.unexpected(),this.parseArrowExpression(this.startNodeAt(b,S),[E],!0,n)}return E}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 S,w=pr(b.declarations);!(S=w()).done;){var E=S.value,_=E.init;_&&(n!=="const"||E.id.typeAnnotation?this.raise(_.start,W.InitializerNotAllowedInAmbientContext):_.type!=="StringLiteral"&&_.type!=="BooleanLiteral"&&_.type!=="NumericLiteral"&&_.type!=="BigIntLiteral"&&(_.type!=="TemplateLiteral"||_.expressions.length>0)&&!pn(_)&&this.raise(_.start,W.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,W.ClassMethodHasReadonly),s.declare&&this.match(l.parenL)&&this.raise(s.start,W.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 S=this.startNodeAt(n,p);return S.test=s,S.consequent=this.parseMaybeAssign(),this.expect(l.colon),S.alternate=this.parseMaybeAssign(m),this.finishNode(S,"ConditionalExpression")}return s},g.parseMaybeConditional=function(s,n){var p=this,m=this.start,b=this.startLoc,S=this.parseExprOps(s,n);if(this.checkExpressionErrors(n))return S;if(!this.maybeInArrowParameters||!this.match(l.question))return this.parseConditional(S,m,b,s,n);var w=this.tryParse(function(){return p.parseConditional(S,m,b,s,n)});return w.node?(w.error&&this.setLookaheadState(w.failState),w.node):(w.error&&this.setOptionalParametersError(n,w.error),S)},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,W.ExpectedAmbientAfterExportDeclare);var S=ne(this.type)&&this.tsTryParseExportDeclaration()||this.parseStatement(null);return S?((S.type==="TSInterfaceDeclaration"||S.type==="TSTypeAliasDeclaration"||b)&&(s.exportKind="type"),b&&(this.resetStartLocation(S,p,m),S.declare=!0),S):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,W.PrivateElementHasAbstract),s.accessibility&&this.raise(s.start,W.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,W.DeclareClassFieldHasInitializer),s.abstract&&this.match(l.eq)){var n=s.key;this.raise(this.start,W.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",S=s.key.type==="PrivateIdentifier",w=this.tsTryParseTypeParameters();S?(w&&(s.typeParameters=w),s.accessibility&&this.raise(s.start,W.PrivateMethodsHasAccessibility({modifier:s.accessibility}))):w&&b&&this.raise(w.start,W.ConstructorHasTypeParameters);var E=s.declare,_=s.kind;!(E!==void 0&&E)||_!=="get"&&_!=="set"||this.raise(s.start,W.DeclareAccessor({kind:_})),w&&(s.typeParameters=w);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&&fr(s,"prototype")&&this.raise(R.start,"Classes may not have a static property named prototype");var B=s.value=this.parseMethod(n,p,m,!0,s);return s.kind==="get"&&B.params.length!==0&&this.raiseRecoverable(B.start,"getter should have no params"),s.kind==="set"&&B.params.length!==1&&this.raiseRecoverable(B.start,"setter should have exactly one param"),s.kind==="set"&&B.params[0].type==="RestElement"&&this.raiseRecoverable(B.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(),S="",w=!1,E=!1,_="method",R=["declare","private","public","protected","accessor","override","abstract","readonly","static"],B=this.tsParseModifiers({modified:b,allowedModifiers:R,disallowedModifiers:["in","out"],stopOnStartOfClassStaticBlock:!0,errorTemplate:W.InvalidModifierOnTypeParameterPositions});p=!!B.static;var G=function(){if(!n.tsIsStartOfStaticBlocks()){var M=n.tsTryParseIndexSignature(b);if(M)return b.abstract&&n.raise(b.start,W.IndexSignatureHasAbstract),b.accessibility&&n.raise(b.start,W.IndexSignatureHasAccessibility({modifier:b.accessibility})),b.declare&&n.raise(b.start,W.IndexSignatureHasDeclare),b.override&&n.raise(b.start,W.IndexSignatureHasOverride),M;if(!n.inAbstractClass&&b.abstract&&n.raise(b.start,W.NonAbstractClassHasAbstractMethod),b.override&&s&&n.raise(b.start,W.OverrideNotInSubClass),b.static=p,p&&(n.isClassElementNameStart()||n.type===l.star||(S="static")),!S&&m>=8&&n.eatContextual("async")&&(!n.isClassElementNameStart()&&n.type!==l.star||n.canInsertSemicolon()?S="async":E=!0),!S&&(m>=9||!E)&&n.eat(l.star)&&(w=!0),!S&&!E&&!w){var he=n.value;(n.eatContextual("get")||n.eatContextual("set"))&&(n.isClassElementNameStart()?_=he:S=he)}if(S?(b.computed=!1,b.key=n.startNodeAt(n.lastTokStart,n.lastTokStartLoc),b.key.name=S,n.finishNode(b.key,"Identifier")):n.parseClassElementName(b),n.parsePostMemberNameModifiers(b),n.isClassMethod()||m<13||n.type===l.parenL||_!=="method"||w||E){var ue=!b.static&&fr(b,"constructor"),ce=ue&&s;ue&&_!=="method"&&n.raise(b.key.start,"Constructor can't have get/set modifier"),b.kind=ue?"constructor":_,n.parseClassMethod(b,w,E,ce)}else n.parseClassField(b);return b}if(n.next(),n.next(),n.tsHasSomeModifiers(b,R)&&n.raise(n.start,W.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,S=this.awaitPos,w=this.awaitIdentPos;this.enterScope(16|Oi(p,!1)),this.initFunction(s);var E=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=S,this.awaitIdentPos=w,this.maybeInArrowParameters=E,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,S=-1,w=-1;n?(b=n.parenthesizedAssign,S=n.trailingComma,w=n.doubleProto,n.parenthesizedAssign=n.trailingComma=-1):(n=new Mt,m=!0);var E=this.start,_=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,E,_)),this.type.isAssign){var B=this.startNodeAt(E,_);return B.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),B.left=R,this.next(),B.right=this.parseMaybeAssign(s),w>-1&&(n.doubleProto=w),this.finishNode(B,"AssignmentExpression")}return m&&this.checkExpressionErrors(n,!0),b>-1&&(n.parenthesizedAssign=b),S>-1&&(n.trailingComma=S),R},g.parseMaybeAssign=function(s,n,p){var m,b,S,w,E,_,R,B,G,M,he,ue=this;if(this.matchJsx("jsxTagStart")||this.tsMatchLeftRelational()){if(B=this.cloneCurLookaheadState(),!(G=this.tryParse(function(){return ue.parseMaybeAssignOrigin(s,n,p)},B)).error)return G.node;var ce=this.context,me=ce[ce.length-1];me===T.tokContexts.tc_oTag&&ce[ce.length-2]===T.tokContexts.tc_expr?(ce.pop(),ce.pop()):me!==T.tokContexts.tc_oTag&&me!==T.tokContexts.tc_expr||ce.pop()}if(!((m=G)!=null&&m.error||this.tsMatchLeftRelational()))return this.parseMaybeAssignOrigin(s,n,p);B&&!this.compareLookaheadState(B,this.getCurLookaheadState())||(B=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},B);if(!Se.error&&!Se.aborted)return he&&this.reportReservedArrowTypeParam(he),Se.node;if(!G&&(dr(!0),!(M=this.tryParse(function(){return ue.parseMaybeAssignOrigin(s,n,p)},B)).error))return M.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((S=M)!=null&&S.node)return this.setLookaheadState(M.failState),M.node;throw(w=G)!=null&&w.thrown?G.error:Se.thrown?Se.error:(E=M)!=null&&E.thrown?M.error:((_=G)==null?void 0:_.error)||Se.error||((R=M)==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,S=!1,w=!1;if(s!==void 0){var E={};this.tsParseModifiers({modified:E,allowedModifiers:["public","private","protected","override","readonly"]}),p=E.accessibility,w=E.override,S=E.readonly,s===!1&&(p||S||w)&&this.raise(b.start,W.UnexpectedParameterModifier)}var _=this.parseMaybeDefault(m,b);this.parseBindingListItem(_);var R=this.parseMaybeDefault(_.start,_.loc,_);if(n.length&&(R.decorators=n),p||S||w){var B=this.startNodeAt(m,b);return p&&(B.accessibility=p),S&&(B.readonly=S),w&&(B.override=w),R.type!=="Identifier"&&R.type!=="AssignmentPattern"&&this.raise(B.start,W.UnsupportedParameterPropertyKind),B.parameter=R,this.finishNode(B,"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,W.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,S){return b.type!=="ObjectMethod"&&(S===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 Mt),s.type){case"ParenthesizedExpression":return this.toAssignableParenthesizedExpression(s,n,p);case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":return n||this.raise(s.start,W.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 k.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 S=p.tsParseTypeOrTypePredicateAnnotation(l.colon);return!p.canInsertSemicolon()&&p.match(l.arrow)||b(),S});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,S=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){var w=this.maybeInArrowParameters;this.maybeInArrowParameters=!0,this.next();var E,_=this.start,R=this.startLoc,B=[],G=!0,M=!1,he=new Mt,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),S&&this.afterTrailingComma(l.parenR,!0)){M=!0;break}if(this.type===l.ellipsis){E=this.start,B.push(this.parseParenItem(this.parseRestBinding())),this.type===l.comma&&this.raise(this.start,"Comma is not permitted after the rest element");break}B.push(this.parseMaybeAssign(n,he,this.parseParenItem))}var me=this.lastTokEnd,Se=this.lastTokEndLoc;if(this.expect(l.parenR),this.maybeInArrowParameters=w,s&&this.shouldParseArrow(B)&&this.eat(l.arrow))return this.checkPatternErrors(he,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=ue,this.awaitPos=ce,this.parseParenArrowList(m,b,B,n);B.length&&!M||this.unexpected(this.lastTokStart),E&&this.unexpected(E),this.checkExpressionErrors(he,!0),this.yieldPos=ue||this.yieldPos,this.awaitPos=ce||this.awaitPos,B.length>1?((p=this.startNodeAt(_,R)).expressions=B,this.finishNodeAt(p,"SequenceExpression",me,Se)):p=B[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=[],S=!0;!this.eat(s);){if(S)S=!1;else if(this.expect(l.comma),n&&this.afterTrailingComma(s))break;var w=void 0;p&&this.type===l.comma?w=null:this.type===l.ellipsis?(w=this.parseSpread(m),m&&this.type===l.comma&&m.trailingComma<0&&(m.trailingComma=this.start)):w=this.parseMaybeAssign(!1,m,this.parseParenItem),b.push(w)}return b},g.parseSubscript=function(s,n,p,m,b,S,w){var E=this,_=S;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 B=!1;if(this.match(l.questionDot)&&this.lookaheadCharCode()===60){if(m)return s;s.optional=!0,_=B=!0,this.next()}if(this.tsMatchLeftRelational()||this.match(l.bitShift)){var G,M=this.tsTryParseAndCatch(function(){if(!m&&E.atPossibleAsyncArrow(s)){var De=E.tsTryParseGenericAsyncArrowFunction(n,p,w);if(De)return s=De}var ot=E.tsParseTypeArgumentsInExpression();if(!ot)return s;if(B&&!E.match(l.parenL))return G=E.curPosition(),s;if(d(E.type)||E.type===l.backQuote){var wt=E.parseTaggedTemplateExpression(s,n,p,_);return wt.typeParameters=ot,wt}if(!m&&E.eat(l.parenL)){var kt=new Mt,ae=E.startNodeAt(n,p);return ae.callee=s,ae.arguments=E.parseExprList(l.parenR,E.options.ecmaVersion>=8,!1,kt),E.tsCheckForInvalidTypeCasts(ae.arguments),ae.typeParameters=ot,_&&(ae.optional=B),E.checkExpressionErrors(kt,!0),s=E.finishNode(ae,"CallExpression")}var we=E.type;if(!(E.tsMatchRightRelational()||we===l.bitShift||we!==l.parenL&&(ye=we,!!ye.startsExpr)&&!E.hasPrecedingLineBreak())){var ye,At=E.startNodeAt(n,p);return At.expression=s,At.typeParameters=ot,E.finishNode(At,"TSInstantiationExpression")}});if(G&&this.unexpected(G),M)return M.type==="TSInstantiationExpression"&&(this.match(l.dot)||this.match(l.questionDot)&&this.lookaheadCharCode()!==40)&&this.raise(this.start,W.InvalidPropertyAccessAfterInstantiationExpression),s=M}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 Mt,ze=this.yieldPos,it=this.awaitPos,Le=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var ft=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,ft,w);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=ft,he&&(Qe.optional=ue),s=this.finishNode(Qe,"CallExpression")}this.maybeInArrowParameters=Se}else if(this.type===l.backQuote){(ue||_)&&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(),S=this.startNode(),w=!1;S.body=[];var E=[];for(this.expect(l.braceL);this.type!==l.braceR;)if(this.match(L.at))E.push(this.parseDecorator());else{var _=this.parseClassElement(s.superClass!==null);E.length&&(_.decorators=E,this.resetStartLocationFromNode(_,E[0]),E=[]),_&&(S.body.push(_),_.type==="MethodDefinition"&&_.kind==="constructor"&&_.value.type==="FunctionExpression"?(w&&this.raiseRecoverable(_.start,"Duplicate constructor in the same class"),w=!0,_.decorators&&_.decorators.length>0&&this.raise(_.start,"Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?")):_.key&&_.key.type==="PrivateIdentifier"&&an(b,_)&&this.raiseRecoverable(_.key.start,"Identifier '#"+_.key.name+"' has already been declared"))}return this.strict=m,this.next(),E.length&&this.raise(this.start,"Decorators must be attached to a class element."),s.body=this.finishNode(S,"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 S=this.startNode(),w=this.yieldPos,E=this.awaitPos,_=this.awaitIdentPos;if(this.initFunction(S),this.options.ecmaVersion>=6&&(S.generator=s),this.options.ecmaVersion>=8&&(S.async=!!n),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(64|Oi(n,S.generator)|(p?128:0)),this.expect(l.parenL),S.params=this.parseClassFunctionParams(),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(S,!1,!0,!1,{isClassMethod:m}),this.yieldPos=w,this.awaitPos=E,this.awaitIdentPos=_,b&&b.abstract&&S.body){var R=b.key;this.raise(b.start,W.AbstractMethodHasImplementation({methodName:R.type!=="Identifier"||b.computed?"["+this.input.slice(R.start,R.end)+"]":R.name}))}return this.finishNode(S,"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",S=n?"local":"exported",w=s[b],E=!1,_=!0,R=w.start;if(this.isContextual("as")){var B=this.parseIdent();if(this.isContextual("as")){var G=this.parseIdent();Ve(this.type)?(E=!0,w=B,m=n?this.parseIdent():this.parseModuleExportName(),_=!1):(m=G,_=!1)}else Ve(this.type)?(_=!1,m=n?this.parseIdent():this.parseModuleExportName()):(E=!0,w=B)}else Ve(this.type)&&(E=!0,n?(w=O.prototype.parseIdent.call(this,!0),this.isContextual("as")||this.checkUnreserved(w)):w=this.parseModuleExportName());E&&p&&this.raise(R,n?W.TypeModifierIsUsedInTypeImports:W.TypeModifierIsUsedInTypeExports),s[b]=w,s[S]=m,s[n?"importKind":"exportKind"]=E?"type":"value",_&&this.eatContextual("as")&&(s[S]=n?this.parseIdent():this.parseModuleExportName()),s[S]||(s[S]=this.copyNode(s[b])),n&&this.checkLValSimple(s[S],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 S=this.tsTryParseAndCatch(function(){return p.tsParseTypeArgumentsInExpression()});S&&(m.typeParameters=S)}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===Dt&&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===Dt&&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 T}}],(oe=[{key:"acornTypeScript",get:function(){return T}}])&&hr(ge.prototype,oe),te&&hr(ge,te),Object.defineProperty(ge,"prototype",{writable:!1}),be})(v);return xe}}var{stringify:ln}=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 hi={"||":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},Ke=17,fn={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:Ke,ClassExpression:Ke,FunctionExpression:Ke,ObjectExpression:Ke,UpdateExpression:16,UnaryExpression:15,AwaitExpression:15,BinaryExpression:14,LogicalExpression:13,ConditionalExpression:4,AssignmentExpression:3,YieldExpression:2,RestElement:1};function St(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 wr(e,i,a,o){let h=e.expressionsPrecedence[i.type];if(h===Ke)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?hi[i.operator]<=hi[a.operator]:hi[i.operator]<hi[a.operator]}function ci(e,i,a,o){let{generator:h}=e;wr(e,i,a,o)?(e.write("("),h[i.type](i,e),e.write(")")):h[i.type](i,e)}function dn(e,i,a,o){let h=i.split(`
|
|
23
23
|
`),x=h.length-1;if(e.write(h[0].trim()),x>0){e.write(o);for(let v=1;v<x;v++)e.write(a+h[v].trim()+o);e.write(a+h[x].trim())}}function Pe(e,i,a,o){let{length:h}=i;for(let x=0;x<h;x++){let v=i[x];e.write(a),v.type[0]==="L"?e.write("// "+v.value.trim()+`
|
|
24
|
-
`,v):(e.write("/*"),mn(e,v.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 Mi(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 mr,xr,yr,vr,gr,br,Fi={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:v}=x;for(let k=0;k<v;k++){let _=x[k];h&&_.comments!=null&&Pe(i,_.comments,a,o),i.write(a),this[_.type](_,i),i.write(o)}h&&e.trailingComments!=null&&Pe(i,e.trailingComments,a,o)},BlockStatement:br=function(e,i){let a=i.indent.repeat(i.indentLevel++),{lineEnd:o,writeComments:h}=i,x=a+i.indent;i.write("{");let v=e.body;if(v!=null&&v.length>0){i.write(o),h&&e.comments!=null&&Pe(i,e.comments,x,o);let{length:k}=v;for(let _=0;_<k;_++){let l=v[_];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:br,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===Ke||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,v=x+i.indent;i.write("switch ("),this[e.discriminant.type](e.discriminant,i),i.write(") {"+o);let{cases:k}=e,{length:_}=k;for(let l=0;l<_;l++){let B=k[l];h&&B.comments!=null&&Pe(i,B.comments,x,o),B.test?(i.write(x+"case "),this[B.test.type](B.test,i),i.write(":"+o)):i.write(x+"default:"+o);let{consequent:Q}=B,{length:z}=Q;for(let I=0;I<z;I++){let P=Q[I];h&&P.comments!=null&&Pe(i,P.comments,v,o),i.write(v),this[P.type](P,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"?Mi(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:mr=function(e,i){i.write(`for ${e.await?"await ":""}(`);let{left:a}=e;a.type[0]==="V"?Mi(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:mr,DebuggerStatement(e,i){i.write("debugger;",e)},FunctionDeclaration:xr=function(e,i){i.write((e.async?"async ":"")+(e.generator?"function* ":"function ")+(e.id?e.id.name:""),e),St(i,e.params),i.write(" "),this[e.body.type](e.body,i)},FunctionExpression:xr,VariableDeclaration(e,i){Mi(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===Ke||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 v=a[x],k=v.type[6];if(k==="D")i.write(v.local.name,v),x++;else if(k==="N")i.write("* as "+v.local.name,v),x++;else break}if(x<h){for(i.write("{");;){let v=a[x],{name:k}=v.imported;if(i.write(k,v),k!==v.local.name&&i.write(" as "+v.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 v=0;v<o.length;v++)this.ImportAttribute(o[v],i),v<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:v}=x.local;if(i.write(v,x),v!==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),St(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]):St(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:yr=function(e,i){i.write("..."),this[e.argument.type](e.argument,i)},SpreadElement:yr,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),ci(i,e.argument,e)},TemplateLiteral(e,i){let{quasis:a,expressions:o}=e;i.write("`");let{length:h}=o;for(let v=0;v<h;v++){let k=o[v],_=a[v];i.write(_.value.raw,_),i.write("${"),this[k.type](k,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){ci(i,e.tag,e),this[e.quasi.type](e.quasi,i)},ArrayExpression:gr=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:gr,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 v=","+o,{properties:k}=e,{length:_}=k;for(let l=0;;){let B=k[l];if(h&&B.comments!=null&&Pe(i,B.comments,x,o),i.write(x),this[B.type](B,i),++l<_)i.write(v);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){St(i,e.expressions)},UnaryExpression(e,i){if(e.prefix){let{operator:a,argument:o,argument:{type:h}}=e;i.write(a);let x=Sr(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:vr=function(e,i){let a=e.operator==="in";a&&i.write("("),ci(i,e.left,e,!1),i.write(" "+e.operator+" "),ci(i,e.right,e,!0),a&&i.write(")")},LogicalExpression:vr,ConditionalExpression(e,i){let{test:a}=e,o=i.expressionsPrecedence[a.type];o===Ke||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===Ke||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),St(i,e.arguments)},CallExpression(e,i){let a=i.expressionsPrecedence[e.callee.type];a===Ke||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("?."),St(i,e.arguments)},ChainExpression(e,i){this[e.expression.type](e.expression,i)},MemberExpression(e,i){let a=i.expressionsPrecedence[e.object.type];a===Ke||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(fn(e.value),e)},RegExpLiteral(e,i){let{regex:a}=e;i.write(`/${a.pattern}/${a.flags}`,e)}},yn={};var Bi=class{constructor(i){let a=i??yn;this.output="",a.output!=null?(this.output=a.output,this.write=this.writeToStream):this.output="",this.generator=a.generator!=null?a.generator:Fi,this.expressionsPrecedence=a.expressionsPrecedence!=null?a.expressionsPrecedence:dn,this.indent=a.indent!=null?a.indent:" ",this.lineEnd=a.lineEnd!=null?a.lineEnd:`
|
|
24
|
+
`,v):(e.write("/*"),dn(e,v.value,a,o),e.write("*/"+o))}}function mn(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 Mi(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 yr,vr,gr,br,Sr,Cr,Fi={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:v}=x;for(let k=0;k<v;k++){let T=x[k];h&&T.comments!=null&&Pe(i,T.comments,a,o),i.write(a),this[T.type](T,i),i.write(o)}h&&e.trailingComments!=null&&Pe(i,e.trailingComments,a,o)},BlockStatement:Cr=function(e,i){let a=i.indent.repeat(i.indentLevel++),{lineEnd:o,writeComments:h}=i,x=a+i.indent;i.write("{");let v=e.body;if(v!=null&&v.length>0){i.write(o),h&&e.comments!=null&&Pe(i,e.comments,x,o);let{length:k}=v;for(let T=0;T<k;T++){let l=v[T];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:Cr,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===Ke||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,v=x+i.indent;i.write("switch ("),this[e.discriminant.type](e.discriminant,i),i.write(") {"+o);let{cases:k}=e,{length:T}=k;for(let l=0;l<T;l++){let D=k[l];h&&D.comments!=null&&Pe(i,D.comments,x,o),D.test?(i.write(x+"case "),this[D.test.type](D.test,i),i.write(":"+o)):i.write(x+"default:"+o);let{consequent:K}=D,{length:z}=K;for(let P=0;P<z;P++){let I=K[P];h&&I.comments!=null&&Pe(i,I.comments,v,o),i.write(v),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"?Mi(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:yr=function(e,i){i.write(`for ${e.await?"await ":""}(`);let{left:a}=e;a.type[0]==="V"?Mi(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:yr,DebuggerStatement(e,i){i.write("debugger;",e)},FunctionDeclaration:vr=function(e,i){i.write((e.async?"async ":"")+(e.generator?"function* ":"function ")+(e.id?e.id.name:""),e),St(i,e.params),i.write(" "),this[e.body.type](e.body,i)},FunctionExpression:vr,VariableDeclaration(e,i){Mi(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===Ke||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 v=a[x],k=v.type[6];if(k==="D")i.write(v.local.name,v),x++;else if(k==="N")i.write("* as "+v.local.name,v),x++;else break}if(x<h){for(i.write("{");;){let v=a[x],{name:k}=v.imported;if(i.write(k,v),k!==v.local.name&&i.write(" as "+v.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 v=0;v<o.length;v++)this.ImportAttribute(o[v],i),v<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:v}=x.local;if(i.write(v,x),v!==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),St(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]):St(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:gr=function(e,i){i.write("..."),this[e.argument.type](e.argument,i)},SpreadElement:gr,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),ci(i,e.argument,e)},TemplateLiteral(e,i){let{quasis:a,expressions:o}=e;i.write("`");let{length:h}=o;for(let v=0;v<h;v++){let k=o[v],T=a[v];i.write(T.value.raw,T),i.write("${"),this[k.type](k,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){ci(i,e.tag,e),this[e.quasi.type](e.quasi,i)},ArrayExpression:Sr=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:Sr,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 v=","+o,{properties:k}=e,{length:T}=k;for(let l=0;;){let D=k[l];if(h&&D.comments!=null&&Pe(i,D.comments,x,o),i.write(x),this[D.type](D,i),++l<T)i.write(v);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){St(i,e.expressions)},UnaryExpression(e,i){if(e.prefix){let{operator:a,argument:o,argument:{type:h}}=e;i.write(a);let x=wr(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:br=function(e,i){let a=e.operator==="in";a&&i.write("("),ci(i,e.left,e,!1),i.write(" "+e.operator+" "),ci(i,e.right,e,!0),a&&i.write(")")},LogicalExpression:br,ConditionalExpression(e,i){let{test:a}=e,o=i.expressionsPrecedence[a.type];o===Ke||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===Ke||a<i.expressionsPrecedence.CallExpression||mn(e.callee)?(i.write("("),this[e.callee.type](e.callee,i),i.write(")")):this[e.callee.type](e.callee,i),St(i,e.arguments)},CallExpression(e,i){let a=i.expressionsPrecedence[e.callee.type];a===Ke||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("?."),St(i,e.arguments)},ChainExpression(e,i){this[e.expression.type](e.expression,i)},MemberExpression(e,i){let a=i.expressionsPrecedence[e.object.type];a===Ke||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(ln(e.value),e)},RegExpLiteral(e,i){let{regex:a}=e;i.write(`/${a.pattern}/${a.flags}`,e)}},xn={};var Bi=class{constructor(i){let a=i??xn;this.output="",a.output!=null?(this.output=a.output,this.write=this.writeToStream):this.output="",this.generator=a.generator!=null?a.generator:Fi,this.expressionsPrecedence=a.expressionsPrecedence!=null?a.expressionsPrecedence:fn,this.indent=a.indent!=null?a.indent:" ",this.lineEnd=a.lineEnd!=null?a.lineEnd:`
|
|
25
25
|
`,this.indentLevel=a.startingIndentLevel!=null?a.startingIndentLevel:0,this.writeComments=a.comments?a.comments:!1,a.sourceMap!=null&&(this.write=a.output==null?this.writeAndMap:this.writeToStreamAndMap,this.sourceMap=a.sourceMap,this.line=1,this.column=0,this.lineEndSize=this.lineEnd.split(`
|
|
26
|
-
`).length-1,this.mapping={original:null,generated:this,name:void 0,source:a.sourceMap.file||a.sourceMap._file})}write(i){this.output+=i}writeToStream(i){this.output.write(i)}writeAndMap(i,a){this.output+=i,this.map(i,a)}writeToStreamAndMap(i,a){this.output.write(i),this.map(i,a)}map(i,a){if(a!=null){let{type:x}=a;if(x[0]==="L"&&x[2]==="n"){this.column=0,this.line++;return}if(a.loc!=null){let{mapping:v}=this;v.original=a.loc.start,v.name=a.name,this.sourceMap.addMapping(v)}if(x[0]==="T"&&x[8]==="E"||x[0]==="L"&&x[1]==="i"&&typeof a.value=="string"){let{length:v}=i,{column:k,line:
|
|
27
|
-
`?(k=0,
|
|
28
|
-
function _markReactElementSource(element, source) {
|
|
29
|
-
const registryKey = Symbol.for("${Er}");
|
|
30
|
-
let registry = globalThis[registryKey];
|
|
31
|
-
if (!(registry instanceof WeakMap)) {
|
|
32
|
-
registry = globalThis[registryKey] = new WeakMap();
|
|
33
|
-
}
|
|
34
|
-
if (element && typeof element === "object" && typeof element.props === "object") {
|
|
35
|
-
registry.set(element.props, source);
|
|
36
|
-
}
|
|
37
|
-
return element;
|
|
38
|
-
}
|
|
39
|
-
`;return Ir.parse(e,{ecmaVersion:"latest",sourceType:"module"}).body[0]}function kn(e,i){return{type:"CallExpression",callee:{type:"Identifier",name:"_markReactElementSource"},arguments:[e,{type:"Literal",value:i}],optional:!1}}function Nr(e,i){let{filename:a,projectRoot:o=process.cwd(),injectJsxSource:h=!0,injectComponentSource:x=!0}=i,v;try{v=gn(a).parse(e,{ecmaVersion:"latest",sourceType:"module",locations:!0})}catch{return null}let k=!1,_=!1,l=new Set,B=new WeakSet,Q=[];if(kr(v,{enter(z,I){if(h&&z.type==="CallExpression"&&Sn(z)&&!B.has(z)){let P=z.loc;P&&(B.add(z),this.replace(kn(z,ji(a,P.start,o))),_=!0,k=!0)}if(x&&z.type==="FunctionDeclaration"){let P=z.id?.name;P&&_r(P)&&!l.has(P)&&z.loc&&(Q.push({node:z,parent:I,assignment:Tr(P,ji(a,z.loc.start,o))}),l.add(P),k=!0)}if(x&&z.type==="VariableDeclarator"){let P=z.id;if(P.type==="Identifier"&&_r(P.name)&&!l.has(P.name)){let D=z.init;if(D&&Cn(D)){let N=z.loc||D.loc;N&&(Q.push({node:z,parent:I,assignment:Tr(P.name,ji(a,N.start,o))}),l.add(P.name),k=!0)}}}}}),!k)return null;if(_){let z=wn();v.body.some(P=>P.type==="FunctionDeclaration"&&P.id?.name==="_markReactElementSource")||v.body.unshift(z)}for(let{node:z,parent:I,assignment:P}of Q.reverse())if(I?.type==="Program"){let D=v.body.indexOf(z);D!==-1&&v.body.splice(D+1,0,P)}else if(I?.type==="ExportNamedDeclaration"){let D=v.body.find(N=>N.type==="ExportNamedDeclaration"&&N.declaration===I);D&&v.body.splice(v.body.indexOf(D)+1,0,P)}else I?.type==="ExportDefaultDeclaration"&&v.body.splice(v.body.indexOf(I)+1,0,P);return{code:Cr(v,{generator:bn})}}async function An(e,i){let a=Nr(e,i);return{code:a?a.code:e,map:a?.map??null}}function En(e={}){let i={projectRoot:process.cwd(),injectComponentSource:!0,injectJsxSource:!0,...e};return{kind:"swc",name:"react-code-locator/swc",options:i,config:{transform:(o,h)=>An(o,{...i,...h})}}}var Qn=En();export{En as createSwcSourceAdapter,Qn as swcSourceAdapter,An as transformSourceWithSwcLocator};
|
|
26
|
+
`).length-1,this.mapping={original:null,generated:this,name:void 0,source:a.sourceMap.file||a.sourceMap._file})}write(i){this.output+=i}writeToStream(i){this.output.write(i)}writeAndMap(i,a){this.output+=i,this.map(i,a)}writeToStreamAndMap(i,a){this.output.write(i),this.map(i,a)}map(i,a){if(a!=null){let{type:x}=a;if(x[0]==="L"&&x[2]==="n"){this.column=0,this.line++;return}if(a.loc!=null){let{mapping:v}=this;v.original=a.loc.start,v.name=a.name,this.sourceMap.addMapping(v)}if(x[0]==="T"&&x[8]==="E"||x[0]==="L"&&x[1]==="i"&&typeof a.value=="string"){let{length:v}=i,{column:k,line:T}=this;for(let l=0;l<v;l++)i[l]===`
|
|
27
|
+
`?(k=0,T++):k++;this.column=k,this.line=T;return}}let{length:o}=i,{lineEnd:h}=this;o>0&&(this.lineEndSize>0&&(h.length===1?i[o-1]===h:i.endsWith(h))?(this.line+=this.lineEndSize,this.column=0):this.column+=o)}toString(){return this.output}};function kr(e,i){let a=new Bi(i);return a.generator[e.type](e,a),a.output}var Ft=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:i=>this.replacement=i}}replace(i,a,o,h){i&&a&&(o!=null?i[a][o]=h:i[a]=h)}remove(i,a,o){i&&a&&(o!=null?i[a].splice(o,1):delete i[a])}};var pi=class extends Ft{constructor(i,a){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:o=>this.replacement=o},this.enter=i,this.leave=a}visit(i,a,o,h){if(i){if(this.enter){let v=this.should_skip,k=this.should_remove,T=this.replacement;this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.enter.call(this.context,i,a,o,h),this.replacement&&(i=this.replacement,this.replace(a,o,h,i)),this.should_remove&&this.remove(a,o,h);let l=this.should_skip,D=this.should_remove;if(this.should_skip=v,this.should_remove=k,this.replacement=T,l)return i;if(D)return null}let x;for(x in i){let v=i[x];if(v&&typeof v=="object")if(Array.isArray(v)){let k=v;for(let T=0;T<k.length;T+=1){let l=k[T];Ar(l)&&(this.visit(l,i,x,T)||T--)}}else Ar(v)&&this.visit(v,i,x,null)}if(this.leave){let v=this.replacement,k=this.should_remove;this.replacement=null,this.should_remove=!1,this.leave.call(this.context,i,a,o,h),this.replacement&&(i=this.replacement,this.replace(a,o,h,i)),this.should_remove&&this.remove(a,o,h);let T=this.should_remove;if(this.replacement=v,this.should_remove=k,T)return null}}return i}};function Ar(e){return e!==null&&typeof e=="object"&&"type"in e&&typeof e.type=="string"}function Er(e,{enter:i,leave:a}){return new pi(i,a).visit(e,null)}var Tr="__componentSourceLoc",ji="$componentSourceLoc";var yn=de.extend(Di(),(0,Pr.default)()),vn=de.extend(Di());function gn(e){return/\.[jt]sx$/.test(e)?yn:vn}var bn={...Fi,JSXElement(e,i){this[e.openingElement.type](e.openingElement,i);for(let a of e.children)this[a.type](a,i);e.closingElement&&this[e.closingElement.type](e.closingElement,i)},JSXFragment(e,i){i.write("<>");for(let a of e.children)this[a.type](a,i);i.write("</>")},JSXOpeningElement(e,i){i.write("<"),this[e.name.type](e.name,i);for(let a of e.attributes)i.write(" "),this[a.type](a,i);i.write(e.selfClosing?" />":">")},JSXClosingElement(e,i){i.write("</"),this[e.name.type](e.name,i),i.write(">")},JSXIdentifier(e,i){i.write(e.name)},JSXMemberExpression(e,i){this[e.object.type](e.object,i),i.write("."),this[e.property.type](e.property,i)},JSXNamespacedName(e,i){this[e.namespace.type](e.namespace,i),i.write(":"),this[e.name.type](e.name,i)},JSXAttribute(e,i){this[e.name.type](e.name,i),e.value!==null&&(i.write("="),this[e.value.type](e.value,i))},JSXSpreadAttribute(e,i){i.write("{..."),this[e.argument.type](e.argument,i),i.write("}")},JSXExpressionContainer(e,i){i.write("{"),e.expression.type!=="JSXEmptyExpression"&&this[e.expression.type](e.expression,i),i.write("}")},JSXEmptyExpression(e,i){},JSXText(e,i){i.write(e.value)},JSXOpeningFragment(e,i){i.write("<>")},JSXClosingFragment(e,i){i.write("</>")},TSTypeAnnotation(e,i){},TSTypeParameterDeclaration(e,i){},TSTypeParameterInstantiation(e,i){},TSInterfaceDeclaration(e,i){},TSTypeAliasDeclaration(e,i){},TSEnumDeclaration(e,i){},TSModuleDeclaration(e,i){},TSImportEqualsDeclaration(e,i){},TSExportAssignment(e,i){},TSNamespaceExportDeclaration(e,i){},TSAsExpression(e,i){this[e.expression.type](e.expression,i)},TSSatisfiesExpression(e,i){this[e.expression.type](e.expression,i)},TSNonNullExpression(e,i){this[e.expression.type](e.expression,i)},TSTypeAssertion(e,i){this[e.expression.type](e.expression,i)},TSInstantiationExpression(e,i){this[e.expression.type](e.expression,i)},TSParameterProperty(e,i){this[e.parameter.type](e.parameter,i)}};function Ui(e,i,a){let o=a||process.cwd();return`${e.startsWith(o)?e.slice(o.length+1):e}:${i.line}:${i.column+1}`}function qi(e){return/^[A-Z]/.test(e)}function Sn(e){return{type:"JSXAttribute",name:{type:"JSXIdentifier",name:ji},value:{type:"Literal",value:e}}}function Cn(e){if(!e)return!1;if(e.type==="ArrowFunctionExpression"||e.type==="FunctionExpression")return!0;if(e.type!=="CallExpression")return!1;let i=e.callee;if(i.type==="Identifier")return["memo","forwardRef"].includes(i.name);if(i.type==="MemberExpression"){let a=i.object,o=i.property;if(a.type==="Identifier"&&a.name==="React"&&o.type==="Identifier")return["memo","forwardRef"].includes(o.name)}return!1}function _r(e,i){return{type:"ExpressionStatement",expression:{type:"AssignmentExpression",operator:"=",left:{type:"MemberExpression",object:{type:"Identifier",name:e},property:{type:"Identifier",name:Tr},computed:!1},right:{type:"Literal",value:i}}}}function Ir(e,i){let{filename:a,projectRoot:o=process.cwd(),injectJsxSource:h=!0,injectComponentSource:x=!0}=i,v;try{v=gn(a).parse(e,{ecmaVersion:"latest",sourceType:"module",locations:!0})}catch{return null}let k=!1,T=new Set,l=[];if(Er(v,{enter(D,K){if(h&&D.type==="JSXElement"){let z=D.openingElement,P=z.name,I=!1;P.type==="JSXIdentifier"?I=qi(P.name):P.type==="JSXMemberExpression"&&(I=!0),I&&D.loc&&(z.attributes.some(L=>L.type==="JSXAttribute"&&L.name?.name===ji)||(z.attributes.push(Sn(Ui(a,D.loc.start,o))),k=!0))}if(x&&D.type==="FunctionDeclaration"){let z=D.id?.name;z&&qi(z)&&!T.has(z)&&D.loc&&(l.push({node:D,parent:K,assignment:_r(z,Ui(a,D.loc.start,o))}),T.add(z),k=!0)}if(x&&D.type==="VariableDeclarator"){let z=D.id;if(z.type==="Identifier"&&qi(z.name)&&!T.has(z.name)){let P=D.init;if(P&&Cn(P)){let I=D.loc||P.loc;I&&(l.push({node:D,parent:K,assignment:_r(z.name,Ui(a,I.start,o))}),T.add(z.name),k=!0)}}}}}),!k)return null;for(let{node:D,parent:K,assignment:z}of l.reverse())if(K?.type==="Program"){let P=v.body.indexOf(D);P!==-1&&v.body.splice(P+1,0,z)}else if(K?.type==="ExportNamedDeclaration"){let P=v.body.find(I=>I.type==="ExportNamedDeclaration"&&I.declaration===K);P&&v.body.splice(v.body.indexOf(P)+1,0,z)}else K?.type==="ExportDefaultDeclaration"&&v.body.splice(v.body.indexOf(K)+1,0,z);return{code:kr(v,{generator:bn})}}async function wn(e,i){let a=Ir(e,i);return{code:a?a.code:e,map:a?.map??null}}function kn(e={}){let i={projectRoot:process.cwd(),injectComponentSource:!0,injectJsxSource:!0,...e};return{kind:"swc",name:"react-code-locator/swc",options:i,config:{transform:(o,h)=>wn(o,{...i,...h})}}}var Xn=kn();export{kn as createSwcSourceAdapter,Xn as swcSourceAdapter,wn as transformSourceWithSwcLocator};
|
|
40
28
|
//# sourceMappingURL=swc.js.map
|