@jixo/cli 0.21.0 → 0.21.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,15 @@
1
+ var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),s=(e,n)=>{for(var r in n)t(e,r,{get:n[r],enumerable:!0})},c=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(let c of r(i))!a.call(e,c)&&c!==o&&t(e,c,{get:()=>i[c],enumerable:!(s=n(i,c))||s.enumerable});return e},l=(n,r,a)=>(a=n==null?{}:e(i(n)),c(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n)),u=o((e,t)=>{t.exports={}}),d=o((e,t)=>{"use strict";var n=u(),r=/^[\da-fA-F]+$/,i=/^\d+$/,a=new WeakMap;function o(e){e=e.Parser.acorn||e;let t=a.get(e);if(!t){let n=e.tokTypes,r=e.TokContext,i=e.TokenType,o=new r(`<tag`,!1),s=new r(`</tag`,!1),c=new r(`<tag>...</tag>`,!0,!0),l={tc_oTag:o,tc_cTag:s,tc_expr:c},u={jsxName:new i(`jsxName`),jsxText:new i(`jsxText`,{beforeExpr:!0}),jsxTagStart:new i(`jsxTagStart`,{startsExpr:!0}),jsxTagEnd:new i(`jsxTagEnd`)};u.jsxTagStart.updateContext=function(){this.context.push(c),this.context.push(o),this.exprAllowed=!1},u.jsxTagEnd.updateContext=function(e){let t=this.context.pop();t===o&&e===n.slash||t===s?(this.context.pop(),this.exprAllowed=this.curContext()===c):this.exprAllowed=!0},t={tokContexts:l,tokTypes:u},a.set(e,t)}return t}function s(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 s(e.object)+`.`+s(e.property)}t.exports=function(e){return e||={},function(t){return c({allowNamespaces:e.allowNamespaces!==!1,allowNamespacedObjects:!!e.allowNamespacedObjects},t)}},Object.defineProperty(t.exports,`tokTypes`,{get:function(){return o(void 0).tokTypes},configurable:!0,enumerable:!0});function c(e,t){let a=t.acorn||void 0,c=o(a),l=a.tokTypes,u=c.tokTypes,d=a.tokContexts,f=c.tokContexts.tc_oTag,p=c.tokContexts.tc_cTag,m=c.tokContexts.tc_expr,h=a.isNewLine,g=a.isIdentifierStart,_=a.isIdentifierChar;return class extends t{static get acornJsx(){return c}jsx_readToken(){let e=``,t=this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,`Unterminated JSX contents`);let n=this.input.charCodeAt(this.pos);switch(n){case 60:case 123:return this.pos===this.start?n===60&&this.exprAllowed?(++this.pos,this.finishToken(u.jsxTagStart)):this.getTokenFromCode(n):(e+=this.input.slice(t,this.pos),this.finishToken(u.jsxText,e));case 38:e+=this.input.slice(t,this.pos),e+=this.jsx_readEntity(),t=this.pos;break;case 62:case 125:this.raise(this.pos,"Unexpected token `"+this.input[this.pos]+"`. Did you mean `"+(n===62?`&gt;`:`&rbrace;`)+'` or `{"'+this.input[this.pos]+'"}`?');default:h(n)?(e+=this.input.slice(t,this.pos),e+=this.jsx_readNewLine(!0),t=this.pos):++this.pos}}}jsx_readNewLine(e){let t=this.input.charCodeAt(this.pos),n;return++this.pos,t===13&&this.input.charCodeAt(this.pos)===10?(++this.pos,n=e?`
2
+ `:`\r
3
+ `):n=String.fromCharCode(t),this.options.locations&&(++this.curLine,this.lineStart=this.pos),n}jsx_readString(e){let t=``,n=++this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,`Unterminated string constant`);let r=this.input.charCodeAt(this.pos);if(r===e)break;r===38?(t+=this.input.slice(n,this.pos),t+=this.jsx_readEntity(),n=this.pos):h(r)?(t+=this.input.slice(n,this.pos),t+=this.jsx_readNewLine(!1),n=this.pos):++this.pos}return t+=this.input.slice(n,this.pos++),this.finishToken(l.string,t)}jsx_readEntity(){let e=``,t=0,a,o=this.input[this.pos];o!==`&`&&this.raise(this.pos,`Entity must start with an ampersand`);let s=++this.pos;for(;this.pos<this.input.length&&t++<10;){if(o=this.input[this.pos++],o===`;`){e[0]===`#`?e[1]===`x`?(e=e.substr(2),r.test(e)&&(a=String.fromCharCode(parseInt(e,16)))):(e=e.substr(1),i.test(e)&&(a=String.fromCharCode(parseInt(e,10)))):a=n[e];break}e+=o}return a||(this.pos=s,`&`)}jsx_readWord(){let e,t=this.pos;do e=this.input.charCodeAt(++this.pos);while(_(e)||e===45);return this.finishToken(u.jsxName,this.input.slice(t,this.pos))}jsx_parseIdentifier(){let e=this.startNode();return this.type===u.jsxName?e.name=this.value:this.type.keyword?e.name=this.type.keyword:this.unexpected(),this.next(),this.finishNode(e,`JSXIdentifier`)}jsx_parseNamespacedName(){let t=this.start,n=this.startLoc,r=this.jsx_parseIdentifier();if(!e.allowNamespaces||!this.eat(l.colon))return r;var i=this.startNodeAt(t,n);return i.namespace=r,i.name=this.jsx_parseIdentifier(),this.finishNode(i,`JSXNamespacedName`)}jsx_parseElementName(){if(this.type===u.jsxTagEnd)return``;let t=this.start,n=this.startLoc,r=this.jsx_parseNamespacedName();for(this.type===l.dot&&r.type===`JSXNamespacedName`&&!e.allowNamespacedObjects&&this.unexpected();this.eat(l.dot);){let e=this.startNodeAt(t,n);e.object=r,e.property=this.jsx_parseIdentifier(),r=this.finishNode(e,`JSXMemberExpression`)}return r}jsx_parseAttributeValue(){switch(this.type){case l.braceL:let e=this.jsx_parseExpressionContainer();return e.expression.type===`JSXEmptyExpression`&&this.raise(e.start,`JSX attributes must only be assigned a non-empty expression`),e;case u.jsxTagStart:case l.string:return this.parseExprAtom();default:this.raise(this.start,`JSX value should be either an expression or a quoted JSX text`)}}jsx_parseEmptyExpression(){let e=this.startNodeAt(this.lastTokEnd,this.lastTokEndLoc);return this.finishNodeAt(e,`JSXEmptyExpression`,this.start,this.startLoc)}jsx_parseExpressionContainer(){let e=this.startNode();return this.next(),e.expression=this.type===l.braceR?this.jsx_parseEmptyExpression():this.parseExpression(),this.expect(l.braceR),this.finishNode(e,`JSXExpressionContainer`)}jsx_parseAttribute(){let e=this.startNode();return this.eat(l.braceL)?(this.expect(l.ellipsis),e.argument=this.parseMaybeAssign(),this.expect(l.braceR),this.finishNode(e,`JSXSpreadAttribute`)):(e.name=this.jsx_parseNamespacedName(),e.value=this.eat(l.eq)?this.jsx_parseAttributeValue():null,this.finishNode(e,`JSXAttribute`))}jsx_parseOpeningElementAt(e,t){let n=this.startNodeAt(e,t);n.attributes=[];let r=this.jsx_parseElementName();for(r&&(n.name=r);this.type!==l.slash&&this.type!==u.jsxTagEnd;)n.attributes.push(this.jsx_parseAttribute());return n.selfClosing=this.eat(l.slash),this.expect(u.jsxTagEnd),this.finishNode(n,r?`JSXOpeningElement`:`JSXOpeningFragment`)}jsx_parseClosingElementAt(e,t){let n=this.startNodeAt(e,t),r=this.jsx_parseElementName();return r&&(n.name=r),this.expect(u.jsxTagEnd),this.finishNode(n,r?`JSXClosingElement`:`JSXClosingFragment`)}jsx_parseElementAt(e,t){let n=this.startNodeAt(e,t),r=[],i=this.jsx_parseOpeningElementAt(e,t),a=null;if(!i.selfClosing){e:for(;;)switch(this.type){case u.jsxTagStart:if(e=this.start,t=this.startLoc,this.next(),this.eat(l.slash)){a=this.jsx_parseClosingElementAt(e,t);break e}r.push(this.jsx_parseElementAt(e,t));break;case u.jsxText:r.push(this.parseExprAtom());break;case l.braceL:r.push(this.jsx_parseExpressionContainer());break;default:this.unexpected()}s(a.name)!==s(i.name)&&this.raise(a.start,`Expected corresponding JSX closing tag for <`+s(i.name)+`>`)}let o=i.name?`Element`:`Fragment`;return n[`opening`+o]=i,n[`closing`+o]=a,n.children=r,this.type===l.relational&&this.value===`<`&&this.raise(this.start,`Adjacent JSX elements must be wrapped in an enclosing tag`),this.finishNode(n,`JSX`+o)}jsx_parseText(){let e=this.parseLiteral(this.value);return e.type=`JSXText`,e}jsx_parseElement(){let e=this.start,t=this.startLoc;return this.next(),this.jsx_parseElementAt(e,t)}parseExprAtom(e){return this.type===u.jsxText?this.jsx_parseText():this.type===u.jsxTagStart?this.jsx_parseElement():super.parseExprAtom(e)}readToken(e){let t=this.curContext();if(t===m)return this.jsx_readToken();if(t===f||t===p){if(g(e))return this.jsx_readWord();if(e==62)return++this.pos,this.finishToken(u.jsxTagEnd);if((e===34||e===39)&&t==f)return this.jsx_readString(e)}return e===60&&this.exprAllowed&&this.input.charCodeAt(this.pos+1)!==33?(++this.pos,this.finishToken(u.jsxTagStart)):super.readToken(e)}updateContext(e){if(this.type==l.braceL){var t=this.curContext();t==f?this.context.push(d.b_expr):t==m?this.context.push(d.b_tmpl):super.updateContext(e),this.exprAllowed=!0}else if(this.type===l.slash&&e===u.jsxTagStart)this.context.length-=2,this.context.push(p),this.exprAllowed=!1;else return super.updateContext(e)}}}}),f={};s(f,{parsers:()=>Ir});var p=[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,80,3,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,343,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,330,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,726,6,110,6,6,9,4759,9,787719,239],m=[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,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,2,60,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,328,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,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,42,9,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,496,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],h=`‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࢗ-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・`,g=`ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲊᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟍꟐꟑꟓꟕ-Ƛꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ`,_={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`},ee=`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`,te={5:ee,"5module":ee+` export import`,6:ee+` const class extends export import super`},ne=/^in(stanceof)?$/,re=RegExp(`[`+g+`]`),ie=RegExp(`[`+g+h+`]`);function ae(e,t){for(var n=65536,r=0;r<t.length;r+=2){if(n+=t[r],n>e)return!1;if(n+=t[r+1],n>=e)return!0}return!1}function v(e,t){return e<65?e===36:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&re.test(String.fromCharCode(e)):t===!1?!1:ae(e,m)}function y(e,t){return e<48?e===36:e<58?!0:e<65?!1:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&ie.test(String.fromCharCode(e)):t===!1?!1:ae(e,m)||ae(e,p)}var b=function(e,t){t===void 0&&(t={}),this.label=e,this.keyword=t.keyword,this.beforeExpr=!!t.beforeExpr,this.startsExpr=!!t.startsExpr,this.isLoop=!!t.isLoop,this.isAssign=!!t.isAssign,this.prefix=!!t.prefix,this.postfix=!!t.postfix,this.binop=t.binop||null,this.updateContext=null};function x(e,t){return new b(e,{beforeExpr:!0,binop:t})}var S={beforeExpr:!0},C={startsExpr:!0},oe={};function w(e,t){return t===void 0&&(t={}),t.keyword=e,oe[e]=new b(e,t)}var T={num:new b(`num`,C),regexp:new b(`regexp`,C),string:new b(`string`,C),name:new b(`name`,C),privateId:new b(`privateId`,C),eof:new b(`eof`),bracketL:new b(`[`,{beforeExpr:!0,startsExpr:!0}),bracketR:new b(`]`),braceL:new b(`{`,{beforeExpr:!0,startsExpr:!0}),braceR:new b(`}`),parenL:new b(`(`,{beforeExpr:!0,startsExpr:!0}),parenR:new b(`)`),comma:new b(`,`,S),semi:new b(`;`,S),colon:new b(`:`,S),dot:new b(`.`),question:new b(`?`,S),questionDot:new b(`?.`),arrow:new b(`=>`,S),template:new b(`template`),invalidTemplate:new b(`invalidTemplate`),ellipsis:new b(`...`,S),backQuote:new b("`",C),dollarBraceL:new b("${",{beforeExpr:!0,startsExpr:!0}),eq:new b(`=`,{beforeExpr:!0,isAssign:!0}),assign:new b(`_=`,{beforeExpr:!0,isAssign:!0}),incDec:new b(`++/--`,{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new b(`!/~`,{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:x(`||`,1),logicalAND:x(`&&`,2),bitwiseOR:x(`|`,3),bitwiseXOR:x(`^`,4),bitwiseAND:x(`&`,5),equality:x(`==/!=/===/!==`,6),relational:x(`</>/<=/>=`,7),bitShift:x(`<</>>/>>>`,8),plusMin:new b(`+/-`,{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:x(`%`,10),star:x(`*`,10),slash:x(`/`,10),starstar:new b(`**`,{beforeExpr:!0}),coalesce:x(`??`,1),_break:w(`break`),_case:w(`case`,S),_catch:w(`catch`),_continue:w(`continue`),_debugger:w(`debugger`),_default:w(`default`,S),_do:w(`do`,{isLoop:!0,beforeExpr:!0}),_else:w(`else`,S),_finally:w(`finally`),_for:w(`for`,{isLoop:!0}),_function:w(`function`,C),_if:w(`if`),_return:w(`return`,S),_switch:w(`switch`),_throw:w(`throw`,S),_try:w(`try`),_var:w(`var`),_const:w(`const`),_while:w(`while`,{isLoop:!0}),_with:w(`with`),_new:w(`new`,{beforeExpr:!0,startsExpr:!0}),_this:w(`this`,C),_super:w(`super`,C),_class:w(`class`,C),_extends:w(`extends`,S),_export:w(`export`),_import:w(`import`,C),_null:w(`null`,C),_true:w(`true`,C),_false:w(`false`,C),_in:w(`in`,{beforeExpr:!0,binop:7}),_instanceof:w(`instanceof`,{beforeExpr:!0,binop:7}),_typeof:w(`typeof`,{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:w(`void`,{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:w(`delete`,{beforeExpr:!0,prefix:!0,startsExpr:!0})},E=/\r\n?|\n|\u2028|\u2029/,se=new RegExp(E.source,`g`);function D(e){return e===10||e===13||e===8232||e===8233}function ce(e,t,n){n===void 0&&(n=e.length);for(var r=t;r<n;r++){var i=e.charCodeAt(r);if(D(i))return r<n-1&&i===13&&e.charCodeAt(r+1)===10?r+2:r+1}return-1}var le=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,O=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,ue=Object.prototype,de=ue.hasOwnProperty,fe=ue.toString,k=Object.hasOwn||function(e,t){return de.call(e,t)},pe=Array.isArray||function(e){return fe.call(e)===`[object Array]`},me=Object.create(null);function A(e){return me[e]||(me[e]=RegExp(`^(?:`+e.replace(/ /g,`|`)+`)$`))}function j(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10)+55296,(e&1023)+56320))}var he=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,ge=function(e,t){this.line=e,this.column=t};ge.prototype.offset=function(e){return new ge(this.line,this.column+e)};var _e=function(e,t,n){this.start=t,this.end=n,e.sourceFile!==null&&(this.source=e.sourceFile)};function ve(e,t){for(var n=1,r=0;;){var i=ce(e,r,t);if(i<0)return new ge(n,t-r);++n,r=i}}var ye={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},be=!1;function xe(e){var t={};for(var n in ye)t[n]=e&&k(e,n)?e[n]:ye[n];if(t.ecmaVersion===`latest`?t.ecmaVersion=1e8:t.ecmaVersion==null?(!be&&typeof console==`object`&&console.warn&&(be=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
4
+ Defaulting to 2020, but this will stop working in the future.`)),t.ecmaVersion=11):t.ecmaVersion>=2015&&(t.ecmaVersion-=2009),t.allowReserved??=t.ecmaVersion<5,(!e||e.allowHashBang==null)&&(t.allowHashBang=t.ecmaVersion>=14),pe(t.onToken)){var r=t.onToken;t.onToken=function(e){return r.push(e)}}return pe(t.onComment)&&(t.onComment=Se(t,t.onComment)),t}function Se(e,t){return function(n,r,i,a,o,s){var c={type:n?`Block`:`Line`,value:r,start:i,end:a};e.locations&&(c.loc=new _e(this,o,s)),e.ranges&&(c.range=[i,a]),t.push(c)}}var Ce=1,M=2,we=4,Te=8,Ee=16,De=32,Oe=64,ke=128,N=256,Ae=512,je=Ce|M|N;function Me(e,t){return M|(e?we:0)|(t?Te:0)}var Ne=0,Pe=1,P=2,Fe=3,Ie=4,Le=5,F=function(e,t,n){this.options=e=xe(e),this.sourceFile=e.sourceFile,this.keywords=A(te[e.ecmaVersion>=6?6:e.sourceType===`module`?`5module`:5]);var r=``;e.allowReserved!==!0&&(r=_[e.ecmaVersion>=6?6:e.ecmaVersion===5?5:3],e.sourceType===`module`&&(r+=` await`)),this.reservedWords=A(r);var i=(r?r+` `:``)+_.strict;this.reservedWordsStrict=A(i),this.reservedWordsStrictBind=A(i+` `+_.strictBind),this.input=String(t),this.containsEsc=!1,n?(this.pos=n,this.lineStart=this.input.lastIndexOf(`
5
+ `,n-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(E).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=T.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=e.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&&e.allowHashBang&&this.input.slice(0,2)===`#!`&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(Ce),this.regexpState=null,this.privateNameStack=[]},I={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},inClassStaticBlock:{configurable:!0}};F.prototype.parse=function(){var e=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(e)},I.inFunction.get=function(){return(this.currentVarScope().flags&M)>0},I.inGenerator.get=function(){return(this.currentVarScope().flags&Te)>0},I.inAsync.get=function(){return(this.currentVarScope().flags&we)>0},I.canAwait.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e],n=t.flags;if(n&(N|Ae))return!1;if(n&M)return(n&we)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction},I.allowSuper.get=function(){var e=this.currentThisScope(),t=e.flags;return(t&Oe)>0||this.options.allowSuperOutsideMethod},I.allowDirectSuper.get=function(){return(this.currentThisScope().flags&ke)>0},I.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},I.allowNewDotTarget.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e],n=t.flags;if(n&(N|Ae)||n&M&&!(n&Ee))return!0}return!1},I.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&N)>0},F.extend=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];for(var n=this,r=0;r<e.length;r++)n=e[r](n);return n},F.parse=function(e,t){return new this(t,e).parse()},F.parseExpressionAt=function(e,t,n){var r=new this(n,e,t);return r.nextToken(),r.parseExpression()},F.tokenizer=function(e,t){return new this(t,e)},Object.defineProperties(F.prototype,I);var L=F.prototype,Re=/^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;L.strictDirective=function(e){if(this.options.ecmaVersion<5)return!1;for(;;){O.lastIndex=e,e+=O.exec(this.input)[0].length;var t=Re.exec(this.input.slice(e));if(!t)return!1;if((t[1]||t[2])===`use strict`){O.lastIndex=e+t[0].length;var n=O.exec(this.input),r=n.index+n[0].length,i=this.input.charAt(r);return i===`;`||i===`}`||E.test(n[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(i)||i===`!`&&this.input.charAt(r+1)===`=`)}e+=t[0].length,O.lastIndex=e,e+=O.exec(this.input)[0].length,this.input[e]===`;`&&e++}},L.eat=function(e){return this.type===e?(this.next(),!0):!1},L.isContextual=function(e){return this.type===T.name&&this.value===e&&!this.containsEsc},L.eatContextual=function(e){return this.isContextual(e)?(this.next(),!0):!1},L.expectContextual=function(e){this.eatContextual(e)||this.unexpected()},L.canInsertSemicolon=function(){return this.type===T.eof||this.type===T.braceR||E.test(this.input.slice(this.lastTokEnd,this.start))},L.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},L.semicolon=function(){!this.eat(T.semi)&&!this.insertSemicolon()&&this.unexpected()},L.afterTrailingComma=function(e,t){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t||this.next(),!0},L.expect=function(e){this.eat(e)||this.unexpected()},L.unexpected=function(e){this.raise(e??this.start,`Unexpected token`)};var ze=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};L.checkPatternErrors=function(e,t){if(e){e.trailingComma>-1&&this.raiseRecoverable(e.trailingComma,`Comma is not permitted after the rest element`);var n=t?e.parenthesizedAssign:e.parenthesizedBind;n>-1&&this.raiseRecoverable(n,t?`Assigning to rvalue`:`Parenthesized pattern`)}},L.checkExpressionErrors=function(e,t){if(!e)return!1;var n=e.shorthandAssign,r=e.doubleProto;if(!t)return n>=0||r>=0;n>=0&&this.raise(n,`Shorthand property assignments are valid only in destructuring patterns`),r>=0&&this.raiseRecoverable(r,`Redefinition of __proto__ property`)},L.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`)},L.isSimpleAssignTarget=function(e){return e.type===`ParenthesizedExpression`?this.isSimpleAssignTarget(e.expression):e.type===`Identifier`||e.type===`MemberExpression`};var R=F.prototype;R.parseTopLevel=function(e){var t=Object.create(null);for(e.body||=[];this.type!==T.eof;){var n=this.parseStatement(null,!0,t);e.body.push(n)}if(this.inModule)for(var r=0,i=Object.keys(this.undefinedExports);r<i.length;r+=1){var a=i[r];this.raiseRecoverable(this.undefinedExports[a].start,`Export '`+a+`' is not defined`)}return this.adaptDirectivePrologue(e.body),this.next(),e.sourceType=this.options.sourceType,this.finishNode(e,`Program`)};var Be={kind:`loop`},Ve={kind:`switch`};R.isLet=function(e){if(this.options.ecmaVersion<6||!this.isContextual(`let`))return!1;O.lastIndex=this.pos;var t=O.exec(this.input),n=this.pos+t[0].length,r=this.input.charCodeAt(n);if(r===91||r===92)return!0;if(e)return!1;if(r===123||r>55295&&r<56320)return!0;if(v(r,!0)){for(var i=n+1;y(r=this.input.charCodeAt(i),!0);)++i;if(r===92||r>55295&&r<56320)return!0;var a=this.input.slice(n,i);if(!ne.test(a))return!0}return!1},R.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual(`async`))return!1;O.lastIndex=this.pos;var e=O.exec(this.input),t=this.pos+e[0].length,n;return!E.test(this.input.slice(this.pos,t))&&this.input.slice(t,t+8)===`function`&&(t+8===this.input.length||!(y(n=this.input.charCodeAt(t+8))||n>55295&&n<56320))},R.isUsingKeyword=function(e,t){if(this.options.ecmaVersion<17||!this.isContextual(e?`await`:`using`))return!1;O.lastIndex=this.pos;var n=O.exec(this.input),r=this.pos+n[0].length;if(E.test(this.input.slice(this.pos,r)))return!1;if(e){var i=r+5,a;if(this.input.slice(r,i)!==`using`||i===this.input.length||y(a=this.input.charCodeAt(i))||a>55295&&a<56320)return!1;O.lastIndex=i;var o=O.exec(this.input);if(o&&E.test(this.input.slice(i,i+o[0].length)))return!1}if(t){var s=r+2,c;if(this.input.slice(r,s)===`of`&&(s===this.input.length||!y(c=this.input.charCodeAt(s))&&!(c>55295&&c<56320)))return!1}var l=this.input.charCodeAt(r);return v(l,!0)||l===92},R.isAwaitUsing=function(e){return this.isUsingKeyword(!0,e)},R.isUsing=function(e){return this.isUsingKeyword(!1,e)},R.parseStatement=function(e,t,n){var r=this.type,i=this.startNode(),a;switch(this.isLet(e)&&(r=T._var,a=`let`),r){case T._break:case T._continue:return this.parseBreakContinueStatement(i,r.keyword);case T._debugger:return this.parseDebuggerStatement(i);case T._do:return this.parseDoStatement(i);case T._for:return this.parseForStatement(i);case T._function:return e&&(this.strict||e!==`if`&&e!==`label`)&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(i,!1,!e);case T._class:return e&&this.unexpected(),this.parseClass(i,!0);case T._if:return this.parseIfStatement(i);case T._return:return this.parseReturnStatement(i);case T._switch:return this.parseSwitchStatement(i);case T._throw:return this.parseThrowStatement(i);case T._try:return this.parseTryStatement(i);case T._const:case T._var:return a||=this.value,e&&a!==`var`&&this.unexpected(),this.parseVarStatement(i,a);case T._while:return this.parseWhileStatement(i);case T._with:return this.parseWithStatement(i);case T.braceL:return this.parseBlock(!0,i);case T.semi:return this.parseEmptyStatement(i);case T._export:case T._import:if(this.options.ecmaVersion>10&&r===T._import){O.lastIndex=this.pos;var o=O.exec(this.input),s=this.pos+o[0].length,c=this.input.charCodeAt(s);if(c===40||c===46)return this.parseExpressionStatement(i,this.parseExpression())}return this.options.allowImportExportEverywhere||(t||this.raise(this.start,`'import' and 'export' may only appear at the top level`),this.inModule||this.raise(this.start,`'import' and 'export' may appear only with 'sourceType: module'`)),r===T._import?this.parseImport(i):this.parseExport(i,n);default:if(this.isAsyncFunction())return e&&this.unexpected(),this.next(),this.parseFunctionStatement(i,!0,!e);var l=this.isAwaitUsing(!1)?`await using`:this.isUsing(!1)?`using`:null;if(l)return t&&this.options.sourceType===`script`&&this.raise(this.start,"Using declaration cannot appear in the top level when source type is `script`"),l===`await using`&&(this.canAwait||this.raise(this.start,`Await using cannot appear outside of async function`),this.next()),this.next(),this.parseVar(i,!1,l),this.semicolon(),this.finishNode(i,`VariableDeclaration`);var u=this.value,d=this.parseExpression();return r===T.name&&d.type===`Identifier`&&this.eat(T.colon)?this.parseLabeledStatement(i,u,d,e):this.parseExpressionStatement(i,d)}},R.parseBreakContinueStatement=function(e,t){var n=t===`break`;this.next(),this.eat(T.semi)||this.insertSemicolon()?e.label=null:this.type===T.name?(e.label=this.parseIdent(),this.semicolon()):this.unexpected();for(var r=0;r<this.labels.length;++r){var i=this.labels[r];if((e.label==null||i.name===e.label.name)&&(i.kind!=null&&(n||i.kind===`loop`)||e.label&&n))break}return r===this.labels.length&&this.raise(e.start,`Unsyntactic `+t),this.finishNode(e,n?`BreakStatement`:`ContinueStatement`)},R.parseDebuggerStatement=function(e){return this.next(),this.semicolon(),this.finishNode(e,`DebuggerStatement`)},R.parseDoStatement=function(e){return this.next(),this.labels.push(Be),e.body=this.parseStatement(`do`),this.labels.pop(),this.expect(T._while),e.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(T.semi):this.semicolon(),this.finishNode(e,`DoWhileStatement`)},R.parseForStatement=function(e){this.next();var t=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual(`await`)?this.lastTokStart:-1;if(this.labels.push(Be),this.enterScope(0),this.expect(T.parenL),this.type===T.semi)return t>-1&&this.unexpected(t),this.parseFor(e,null);var n=this.isLet();if(this.type===T._var||this.type===T._const||n){var r=this.startNode(),i=n?`let`:this.value;return this.next(),this.parseVar(r,!0,i),this.finishNode(r,`VariableDeclaration`),this.parseForAfterInit(e,r,t)}var a=this.isContextual(`let`),o=!1,s=this.isUsing(!0)?`using`:this.isAwaitUsing(!0)?`await using`:null;if(s){var c=this.startNode();return this.next(),s===`await using`&&this.next(),this.parseVar(c,!0,s),this.finishNode(c,`VariableDeclaration`),this.parseForAfterInit(e,c,t)}var l=this.containsEsc,u=new ze,d=this.start,f=t>-1?this.parseExprSubscripts(u,`await`):this.parseExpression(!0,u);return this.type===T._in||(o=this.options.ecmaVersion>=6&&this.isContextual(`of`))?(t>-1?(this.type===T._in&&this.unexpected(t),e.await=!0):o&&this.options.ecmaVersion>=8&&(f.start===d&&!l&&f.type===`Identifier`&&f.name===`async`?this.unexpected():this.options.ecmaVersion>=9&&(e.await=!1)),a&&o&&this.raise(f.start,`The left-hand side of a for-of loop may not start with 'let'.`),this.toAssignable(f,!1,u),this.checkLValPattern(f),this.parseForIn(e,f)):(this.checkExpressionErrors(u,!0),t>-1&&this.unexpected(t),this.parseFor(e,f))},R.parseForAfterInit=function(e,t,n){return(this.type===T._in||this.options.ecmaVersion>=6&&this.isContextual(`of`))&&t.declarations.length===1?(this.options.ecmaVersion>=9&&(this.type===T._in?n>-1&&this.unexpected(n):e.await=n>-1),this.parseForIn(e,t)):(n>-1&&this.unexpected(n),this.parseFor(e,t))},R.parseFunctionStatement=function(e,t,n){return this.next(),this.parseFunction(e,Ue|(n?0:We),!1,t)},R.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement(`if`),e.alternate=this.eat(T._else)?this.parseStatement(`if`):null,this.finishNode(e,`IfStatement`)},R.parseReturnStatement=function(e){return!this.inFunction&&!this.options.allowReturnOutsideFunction&&this.raise(this.start,`'return' outside of function`),this.next(),this.eat(T.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,`ReturnStatement`)},R.parseSwitchStatement=function(e){this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(T.braceL),this.labels.push(Ve),this.enterScope(0);for(var t,n=!1;this.type!==T.braceR;)if(this.type===T._case||this.type===T._default){var r=this.type===T._case;t&&this.finishNode(t,`SwitchCase`),e.cases.push(t=this.startNode()),t.consequent=[],this.next(),r?t.test=this.parseExpression():(n&&this.raiseRecoverable(this.lastTokStart,`Multiple default clauses`),n=!0,t.test=null),this.expect(T.colon)}else t||this.unexpected(),t.consequent.push(this.parseStatement(null));return this.exitScope(),t&&this.finishNode(t,`SwitchCase`),this.next(),this.labels.pop(),this.finishNode(e,`SwitchStatement`)},R.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 He=[];R.parseCatchClauseParam=function(){var e=this.parseBindingAtom(),t=e.type===`Identifier`;return this.enterScope(t?De:0),this.checkLValPattern(e,t?Ie:P),this.expect(T.parenR),e},R.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===T._catch){var t=this.startNode();this.next(),this.eat(T.parenL)?t.param=this.parseCatchClauseParam():(this.options.ecmaVersion<10&&this.unexpected(),t.param=null,this.enterScope(0)),t.body=this.parseBlock(!1),this.exitScope(),e.handler=this.finishNode(t,`CatchClause`)}return e.finalizer=this.eat(T._finally)?this.parseBlock():null,!e.handler&&!e.finalizer&&this.raise(e.start,`Missing catch or finally clause`),this.finishNode(e,`TryStatement`)},R.parseVarStatement=function(e,t,n){return this.next(),this.parseVar(e,!1,t,n),this.semicolon(),this.finishNode(e,`VariableDeclaration`)},R.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(Be),e.body=this.parseStatement(`while`),this.labels.pop(),this.finishNode(e,`WhileStatement`)},R.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`)},R.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,`EmptyStatement`)},R.parseLabeledStatement=function(e,t,n,r){for(var i=0,a=this.labels;i<a.length;i+=1){var o=a[i];o.name===t&&this.raise(n.start,`Label '`+t+`' is already declared`)}for(var s=this.type.isLoop?`loop`:this.type===T._switch?`switch`:null,c=this.labels.length-1;c>=0;c--){var l=this.labels[c];if(l.statementStart===e.start)l.statementStart=this.start,l.kind=s;else break}return this.labels.push({name:t,kind:s,statementStart:this.start}),e.body=this.parseStatement(r?r.indexOf(`label`)===-1?r+`label`:r:`label`),this.labels.pop(),e.label=n,this.finishNode(e,`LabeledStatement`)},R.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,`ExpressionStatement`)},R.parseBlock=function(e,t,n){for(e===void 0&&(e=!0),t===void 0&&(t=this.startNode()),t.body=[],this.expect(T.braceL),e&&this.enterScope(0);this.type!==T.braceR;){var r=this.parseStatement(null);t.body.push(r)}return n&&(this.strict=!1),this.next(),e&&this.exitScope(),this.finishNode(t,`BlockStatement`)},R.parseFor=function(e,t){return e.init=t,this.expect(T.semi),e.test=this.type===T.semi?null:this.parseExpression(),this.expect(T.semi),e.update=this.type===T.parenR?null:this.parseExpression(),this.expect(T.parenR),e.body=this.parseStatement(`for`),this.exitScope(),this.labels.pop(),this.finishNode(e,`ForStatement`)},R.parseForIn=function(e,t){var n=this.type===T._in;return this.next(),t.type===`VariableDeclaration`&&t.declarations[0].init!=null&&(!n||this.options.ecmaVersion<8||this.strict||t.kind!==`var`||t.declarations[0].id.type!==`Identifier`)&&this.raise(t.start,(n?`for-in`:`for-of`)+` loop variable declaration may not have an initializer`),e.left=t,e.right=n?this.parseExpression():this.parseMaybeAssign(),this.expect(T.parenR),e.body=this.parseStatement(`for`),this.exitScope(),this.labels.pop(),this.finishNode(e,n?`ForInStatement`:`ForOfStatement`)},R.parseVar=function(e,t,n,r){for(e.declarations=[],e.kind=n;;){var i=this.startNode();if(this.parseVarId(i,n),this.eat(T.eq)?i.init=this.parseMaybeAssign(t):!r&&n===`const`&&!(this.type===T._in||this.options.ecmaVersion>=6&&this.isContextual(`of`))?this.unexpected():!r&&(n===`using`||n===`await using`)&&this.options.ecmaVersion>=17&&this.type!==T._in&&!this.isContextual(`of`)?this.raise(this.lastTokEnd,`Missing initializer in `+n+` declaration`):!r&&i.id.type!==`Identifier`&&!(t&&(this.type===T._in||this.isContextual(`of`)))?this.raise(this.lastTokEnd,`Complex binding patterns require an initialization value`):i.init=null,e.declarations.push(this.finishNode(i,`VariableDeclarator`)),!this.eat(T.comma))break}return e},R.parseVarId=function(e,t){e.id=t===`using`||t===`await using`?this.parseIdent():this.parseBindingAtom(),this.checkLValPattern(e.id,t===`var`?Pe:P,!1)};var Ue=1,We=2,Ge=4;R.parseFunction=function(e,t,n,r,i){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!r)&&(this.type===T.star&&t&We&&this.unexpected(),e.generator=this.eat(T.star)),this.options.ecmaVersion>=8&&(e.async=!!r),t&Ue&&(e.id=t&Ge&&this.type!==T.name?null:this.parseIdent(),e.id&&!(t&We)&&this.checkLValSimple(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?Pe:P:Fe));var a=this.yieldPos,o=this.awaitPos,s=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(Me(e.async,e.generator)),t&Ue||(e.id=this.type===T.name?this.parseIdent():null),this.parseFunctionParams(e),this.parseFunctionBody(e,n,!1,i),this.yieldPos=a,this.awaitPos=o,this.awaitIdentPos=s,this.finishNode(e,t&Ue?`FunctionDeclaration`:`FunctionExpression`)},R.parseFunctionParams=function(e){this.expect(T.parenL),e.params=this.parseBindingList(T.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},R.parseClass=function(e,t){this.next();var n=this.strict;this.strict=!0,this.parseClassId(e,t),this.parseClassSuper(e);var r=this.enterClassBody(),i=this.startNode(),a=!1;for(i.body=[],this.expect(T.braceL);this.type!==T.braceR;){var o=this.parseClassElement(e.superClass!==null);o&&(i.body.push(o),o.type===`MethodDefinition`&&o.kind===`constructor`?(a&&this.raiseRecoverable(o.start,`Duplicate constructor in the same class`),a=!0):o.key&&o.key.type===`PrivateIdentifier`&&Ke(r,o)&&this.raiseRecoverable(o.key.start,`Identifier '#`+o.key.name+`' has already been declared`))}return this.strict=n,this.next(),e.body=this.finishNode(i,`ClassBody`),this.exitClassBody(),this.finishNode(e,t?`ClassDeclaration`:`ClassExpression`)},R.parseClassElement=function(e){if(this.eat(T.semi))return null;var t=this.options.ecmaVersion,n=this.startNode(),r=``,i=!1,a=!1,o=`method`,s=!1;if(this.eatContextual(`static`)){if(t>=13&&this.eat(T.braceL))return this.parseClassStaticBlock(n),n;this.isClassElementNameStart()||this.type===T.star?s=!0:r=`static`}if(n.static=s,!r&&t>=8&&this.eatContextual(`async`)&&((this.isClassElementNameStart()||this.type===T.star)&&!this.canInsertSemicolon()?a=!0:r=`async`),!r&&(t>=9||!a)&&this.eat(T.star)&&(i=!0),!r&&!a&&!i){var c=this.value;(this.eatContextual(`get`)||this.eatContextual(`set`))&&(this.isClassElementNameStart()?o=c:r=c)}if(r?(n.computed=!1,n.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),n.key.name=r,this.finishNode(n.key,`Identifier`)):this.parseClassElementName(n),t<13||this.type===T.parenL||o!==`method`||i||a){var l=!n.static&&qe(n,`constructor`),u=l&&e;l&&o!==`method`&&this.raise(n.key.start,`Constructor can't have get/set modifier`),n.kind=l?`constructor`:o,this.parseClassMethod(n,i,a,u)}else this.parseClassField(n);return n},R.isClassElementNameStart=function(){return this.type===T.name||this.type===T.privateId||this.type===T.num||this.type===T.string||this.type===T.bracketL||this.type.keyword},R.parseClassElementName=function(e){this.type===T.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)},R.parseClassMethod=function(e,t,n,r){var i=e.key;e.kind===`constructor`?(t&&this.raise(i.start,`Constructor can't be a generator`),n&&this.raise(i.start,`Constructor can't be an async method`)):e.static&&qe(e,`prototype`)&&this.raise(i.start,`Classes may not have a static property named prototype`);var a=e.value=this.parseMethod(t,n,r);return e.kind===`get`&&a.params.length!==0&&this.raiseRecoverable(a.start,`getter should have no params`),e.kind===`set`&&a.params.length!==1&&this.raiseRecoverable(a.start,`setter should have exactly one param`),e.kind===`set`&&a.params[0].type===`RestElement`&&this.raiseRecoverable(a.params[0].start,`Setter cannot use rest params`),this.finishNode(e,`MethodDefinition`)},R.parseClassField=function(e){return qe(e,`constructor`)?this.raise(e.key.start,`Classes can't have a field named 'constructor'`):e.static&&qe(e,`prototype`)&&this.raise(e.key.start,`Classes can't have a static field named 'prototype'`),this.eat(T.eq)?(this.enterScope(Ae|Oe),e.value=this.parseMaybeAssign(),this.exitScope()):e.value=null,this.semicolon(),this.finishNode(e,`PropertyDefinition`)},R.parseClassStaticBlock=function(e){e.body=[];var t=this.labels;for(this.labels=[],this.enterScope(N|Oe);this.type!==T.braceR;){var n=this.parseStatement(null);e.body.push(n)}return this.next(),this.exitScope(),this.labels=t,this.finishNode(e,`StaticBlock`)},R.parseClassId=function(e,t){this.type===T.name?(e.id=this.parseIdent(),t&&this.checkLValSimple(e.id,P,!1)):(t===!0&&this.unexpected(),e.id=null)},R.parseClassSuper=function(e){e.superClass=this.eat(T._extends)?this.parseExprSubscripts(null,!1):null},R.enterClassBody=function(){var e={declared:Object.create(null),used:[]};return this.privateNameStack.push(e),e.declared},R.exitClassBody=function(){var e=this.privateNameStack.pop(),t=e.declared,n=e.used;if(this.options.checkPrivateFields)for(var r=this.privateNameStack.length,i=r===0?null:this.privateNameStack[r-1],a=0;a<n.length;++a){var o=n[a];k(t,o.name)||(i?i.used.push(o):this.raiseRecoverable(o.start,`Private field '#`+o.name+`' must be declared in an enclosing class`))}};function Ke(e,t){var n=t.key.name,r=e[n],i=`true`;return t.type===`MethodDefinition`&&(t.kind===`get`||t.kind===`set`)&&(i=(t.static?`s`:`i`)+t.kind),r===`iget`&&i===`iset`||r===`iset`&&i===`iget`||r===`sget`&&i===`sset`||r===`sset`&&i===`sget`?(e[n]=`true`,!1):r?!0:(e[n]=i,!1)}function qe(e,t){var n=e.computed,r=e.key;return!n&&(r.type===`Identifier`&&r.name===t||r.type===`Literal`&&r.value===t)}R.parseExportAllDeclaration=function(e,t){return this.options.ecmaVersion>=11&&(this.eatContextual(`as`)?(e.exported=this.parseModuleExportName(),this.checkExport(t,e.exported,this.lastTokStart)):e.exported=null),this.expectContextual(`from`),this.type!==T.string&&this.unexpected(),e.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(e,`ExportAllDeclaration`)},R.parseExport=function(e,t){if(this.next(),this.eat(T.star))return this.parseExportAllDeclaration(e,t);if(this.eat(T._default))return this.checkExport(t,`default`,this.lastTokStart),e.declaration=this.parseExportDefaultDeclaration(),this.finishNode(e,`ExportDefaultDeclaration`);if(this.shouldParseExportStatement())e.declaration=this.parseExportDeclaration(e),e.declaration.type===`VariableDeclaration`?this.checkVariableExport(t,e.declaration.declarations):this.checkExport(t,e.declaration.id,e.declaration.id.start),e.specifiers=[],e.source=null,this.options.ecmaVersion>=16&&(e.attributes=[]);else{if(e.declaration=null,e.specifiers=this.parseExportSpecifiers(t),this.eatContextual(`from`))this.type!==T.string&&this.unexpected(),e.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause());else{for(var n=0,r=e.specifiers;n<r.length;n+=1){var i=r[n];this.checkUnreserved(i.local),this.checkLocalExport(i.local),i.local.type===`Literal`&&this.raise(i.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`)},R.parseExportDeclaration=function(e){return this.parseStatement(null)},R.parseExportDefaultDeclaration=function(){var e;if(this.type===T._function||(e=this.isAsyncFunction())){var t=this.startNode();return this.next(),e&&this.next(),this.parseFunction(t,Ue|Ge,!1,e)}else if(this.type===T._class){var n=this.startNode();return this.parseClass(n,`nullableID`)}else{var r=this.parseMaybeAssign();return this.semicolon(),r}},R.checkExport=function(e,t,n){e&&(typeof t!=`string`&&(t=t.type===`Identifier`?t.name:t.value),k(e,t)&&this.raiseRecoverable(n,`Duplicate export '`+t+`'`),e[t]=!0)},R.checkPatternExport=function(e,t){var n=t.type;if(n===`Identifier`)this.checkExport(e,t,t.start);else if(n===`ObjectPattern`)for(var r=0,i=t.properties;r<i.length;r+=1){var a=i[r];this.checkPatternExport(e,a)}else if(n===`ArrayPattern`)for(var o=0,s=t.elements;o<s.length;o+=1){var c=s[o];c&&this.checkPatternExport(e,c)}else n===`Property`?this.checkPatternExport(e,t.value):n===`AssignmentPattern`?this.checkPatternExport(e,t.left):n===`RestElement`&&this.checkPatternExport(e,t.argument)},R.checkVariableExport=function(e,t){if(e)for(var n=0,r=t;n<r.length;n+=1){var i=r[n];this.checkPatternExport(e,i.id)}},R.shouldParseExportStatement=function(){return this.type.keyword===`var`||this.type.keyword===`const`||this.type.keyword===`class`||this.type.keyword===`function`||this.isLet()||this.isAsyncFunction()},R.parseExportSpecifier=function(e){var t=this.startNode();return t.local=this.parseModuleExportName(),t.exported=this.eatContextual(`as`)?this.parseModuleExportName():t.local,this.checkExport(e,t.exported,t.exported.start),this.finishNode(t,`ExportSpecifier`)},R.parseExportSpecifiers=function(e){var t=[],n=!0;for(this.expect(T.braceL);!this.eat(T.braceR);){if(n)n=!1;else if(this.expect(T.comma),this.afterTrailingComma(T.braceR))break;t.push(this.parseExportSpecifier(e))}return t},R.parseImport=function(e){return this.next(),this.type===T.string?(e.specifiers=He,e.source=this.parseExprAtom()):(e.specifiers=this.parseImportSpecifiers(),this.expectContextual(`from`),e.source=this.type===T.string?this.parseExprAtom():this.unexpected()),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(e,`ImportDeclaration`)},R.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,P),this.finishNode(e,`ImportSpecifier`)},R.parseImportDefaultSpecifier=function(){var e=this.startNode();return e.local=this.parseIdent(),this.checkLValSimple(e.local,P),this.finishNode(e,`ImportDefaultSpecifier`)},R.parseImportNamespaceSpecifier=function(){var e=this.startNode();return this.next(),this.expectContextual(`as`),e.local=this.parseIdent(),this.checkLValSimple(e.local,P),this.finishNode(e,`ImportNamespaceSpecifier`)},R.parseImportSpecifiers=function(){var e=[],t=!0;if(this.type===T.name&&(e.push(this.parseImportDefaultSpecifier()),!this.eat(T.comma)))return e;if(this.type===T.star)return e.push(this.parseImportNamespaceSpecifier()),e;for(this.expect(T.braceL);!this.eat(T.braceR);){if(t)t=!1;else if(this.expect(T.comma),this.afterTrailingComma(T.braceR))break;e.push(this.parseImportSpecifier())}return e},R.parseWithClause=function(){var e=[];if(!this.eat(T._with))return e;this.expect(T.braceL);for(var t={},n=!0;!this.eat(T.braceR);){if(n)n=!1;else if(this.expect(T.comma),this.afterTrailingComma(T.braceR))break;var r=this.parseImportAttribute(),i=r.key.type===`Identifier`?r.key.name:r.key.value;k(t,i)&&this.raiseRecoverable(r.key.start,`Duplicate attribute key '`+i+`'`),t[i]=!0,e.push(r)}return e},R.parseImportAttribute=function(){var e=this.startNode();return e.key=this.type===T.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!==`never`),this.expect(T.colon),this.type!==T.string&&this.unexpected(),e.value=this.parseExprAtom(),this.finishNode(e,`ImportAttribute`)},R.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===T.string){var e=this.parseLiteral(this.value);return he.test(e.value)&&this.raise(e.start,`An export name cannot include a lone surrogate.`),e}return this.parseIdent(!0)},R.adaptDirectivePrologue=function(e){for(var t=0;t<e.length&&this.isDirectiveCandidate(e[t]);++t)e[t].directive=e[t].expression.raw.slice(1,-1)},R.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 z=F.prototype;z.toAssignable=function(e,t,n){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`,n&&this.checkPatternErrors(n,!0);for(var r=0,i=e.properties;r<i.length;r+=1){var a=i[r];this.toAssignable(a,t),a.type===`RestElement`&&(a.argument.type===`ArrayPattern`||a.argument.type===`ObjectPattern`)&&this.raise(a.argument.start,`Unexpected token`)}break;case`Property`:e.kind!==`init`&&this.raise(e.key.start,`Object pattern can't contain getter or setter`),this.toAssignable(e.value,t);break;case`ArrayExpression`:e.type=`ArrayPattern`,n&&this.checkPatternErrors(n,!0),this.toAssignableList(e.elements,t);break;case`SpreadElement`:e.type=`RestElement`,this.toAssignable(e.argument,t),e.argument.type===`AssignmentPattern`&&this.raise(e.argument.start,`Rest elements cannot have a default value`);break;case`AssignmentExpression`:e.operator!==`=`&&this.raise(e.left.end,`Only '=' operator can be used for specifying default value.`),e.type=`AssignmentPattern`,delete e.operator,this.toAssignable(e.left,t);break;case`ParenthesizedExpression`:this.toAssignable(e.expression,t,n);break;case`ChainExpression`:this.raiseRecoverable(e.start,`Optional chaining cannot appear in left-hand side`);break;case`MemberExpression`:if(!t)break;default:this.raise(e.start,`Assigning to rvalue`)}else n&&this.checkPatternErrors(n,!0);return e},z.toAssignableList=function(e,t){for(var n=e.length,r=0;r<n;r++){var i=e[r];i&&this.toAssignable(i,t)}if(n){var a=e[n-1];this.options.ecmaVersion===6&&t&&a&&a.type===`RestElement`&&a.argument.type!==`Identifier`&&this.unexpected(a.argument.start)}return e},z.parseSpread=function(e){var t=this.startNode();return this.next(),t.argument=this.parseMaybeAssign(!1,e),this.finishNode(t,`SpreadElement`)},z.parseRestBinding=function(){var e=this.startNode();return this.next(),this.options.ecmaVersion===6&&this.type!==T.name&&this.unexpected(),e.argument=this.parseBindingAtom(),this.finishNode(e,`RestElement`)},z.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case T.bracketL:var e=this.startNode();return this.next(),e.elements=this.parseBindingList(T.bracketR,!0,!0),this.finishNode(e,`ArrayPattern`);case T.braceL:return this.parseObj(!0)}return this.parseIdent()},z.parseBindingList=function(e,t,n,r){for(var i=[],a=!0;!this.eat(e);)if(a?a=!1:this.expect(T.comma),t&&this.type===T.comma)i.push(null);else{if(n&&this.afterTrailingComma(e))break;if(this.type===T.ellipsis){var o=this.parseRestBinding();this.parseBindingListItem(o),i.push(o),this.type===T.comma&&this.raiseRecoverable(this.start,`Comma is not permitted after the rest element`),this.expect(e);break}else i.push(this.parseAssignableListItem(r))}return i},z.parseAssignableListItem=function(e){var t=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(t),t},z.parseBindingListItem=function(e){return e},z.parseMaybeDefault=function(e,t,n){if(n||=this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(T.eq))return n;var r=this.startNodeAt(e,t);return r.left=n,r.right=this.parseMaybeAssign(),this.finishNode(r,`AssignmentPattern`)},z.checkLValSimple=function(e,t,n){t===void 0&&(t=Ne);var r=t!==Ne;switch(e.type){case`Identifier`:this.strict&&this.reservedWordsStrictBind.test(e.name)&&this.raiseRecoverable(e.start,(r?`Binding `:`Assigning to `)+e.name+` in strict mode`),r&&(t===P&&e.name===`let`&&this.raiseRecoverable(e.start,`let is disallowed as a lexically bound name`),n&&(k(n,e.name)&&this.raiseRecoverable(e.start,`Argument name clash`),n[e.name]=!0),t!==Le&&this.declareName(e.name,t,e.start));break;case`ChainExpression`:this.raiseRecoverable(e.start,`Optional chaining cannot appear in left-hand side`);break;case`MemberExpression`:r&&this.raiseRecoverable(e.start,`Binding member expression`);break;case`ParenthesizedExpression`:return r&&this.raiseRecoverable(e.start,`Binding parenthesized expression`),this.checkLValSimple(e.expression,t,n);default:this.raise(e.start,(r?`Binding`:`Assigning to`)+` rvalue`)}},z.checkLValPattern=function(e,t,n){switch(t===void 0&&(t=Ne),e.type){case`ObjectPattern`:for(var r=0,i=e.properties;r<i.length;r+=1){var a=i[r];this.checkLValInnerPattern(a,t,n)}break;case`ArrayPattern`:for(var o=0,s=e.elements;o<s.length;o+=1){var c=s[o];c&&this.checkLValInnerPattern(c,t,n)}break;default:this.checkLValSimple(e,t,n)}},z.checkLValInnerPattern=function(e,t,n){switch(t===void 0&&(t=Ne),e.type){case`Property`:this.checkLValInnerPattern(e.value,t,n);break;case`AssignmentPattern`:this.checkLValPattern(e.left,t,n);break;case`RestElement`:this.checkLValPattern(e.argument,t,n);break;default:this.checkLValPattern(e,t,n)}};var B=function(e,t,n,r,i){this.token=e,this.isExpr=!!t,this.preserveSpace=!!n,this.override=r,this.generator=!!i},V={b_stat:new B(`{`,!1),b_expr:new B(`{`,!0),b_tmpl:new B("${",!1),p_stat:new B(`(`,!1),p_expr:new B(`(`,!0),q_tmpl:new B("`",!0,!0,function(e){return e.tryReadTemplateToken()}),f_stat:new B(`function`,!1),f_expr:new B(`function`,!0),f_expr_gen:new B(`function`,!0,!1,null,!0),f_gen:new B(`function`,!1,!1,null,!0)},H=F.prototype;H.initialContext=function(){return[V.b_stat]},H.curContext=function(){return this.context[this.context.length-1]},H.braceIsBlock=function(e){var t=this.curContext();return t===V.f_expr||t===V.f_stat?!0:e===T.colon&&(t===V.b_stat||t===V.b_expr)?!t.isExpr:e===T._return||e===T.name&&this.exprAllowed?E.test(this.input.slice(this.lastTokEnd,this.start)):e===T._else||e===T.semi||e===T.eof||e===T.parenR||e===T.arrow?!0:e===T.braceL?t===V.b_stat:e===T._var||e===T._const||e===T.name?!1:!this.exprAllowed},H.inGeneratorContext=function(){for(var e=this.context.length-1;e>=1;e--){var t=this.context[e];if(t.token===`function`)return t.generator}return!1},H.updateContext=function(e){var t,n=this.type;n.keyword&&e===T.dot?this.exprAllowed=!1:(t=n.updateContext)?t.call(this,e):this.exprAllowed=n.beforeExpr},H.overrideContext=function(e){this.curContext()!==e&&(this.context[this.context.length-1]=e)},T.parenR.updateContext=T.braceR.updateContext=function(){if(this.context.length===1){this.exprAllowed=!0;return}var e=this.context.pop();e===V.b_stat&&this.curContext().token===`function`&&(e=this.context.pop()),this.exprAllowed=!e.isExpr},T.braceL.updateContext=function(e){this.context.push(this.braceIsBlock(e)?V.b_stat:V.b_expr),this.exprAllowed=!0},T.dollarBraceL.updateContext=function(){this.context.push(V.b_tmpl),this.exprAllowed=!0},T.parenL.updateContext=function(e){var t=e===T._if||e===T._for||e===T._with||e===T._while;this.context.push(t?V.p_stat:V.p_expr),this.exprAllowed=!0},T.incDec.updateContext=function(){},T._function.updateContext=T._class.updateContext=function(e){e.beforeExpr&&e!==T._else&&!(e===T.semi&&this.curContext()!==V.p_stat)&&!(e===T._return&&E.test(this.input.slice(this.lastTokEnd,this.start)))&&!((e===T.colon||e===T.braceL)&&this.curContext()===V.b_stat)?this.context.push(V.f_expr):this.context.push(V.f_stat),this.exprAllowed=!1},T.colon.updateContext=function(){this.curContext().token===`function`&&this.context.pop(),this.exprAllowed=!0},T.backQuote.updateContext=function(){this.curContext()===V.q_tmpl?this.context.pop():this.context.push(V.q_tmpl),this.exprAllowed=!1},T.star.updateContext=function(e){if(e===T._function){var t=this.context.length-1;this.context[t]===V.f_expr?this.context[t]=V.f_expr_gen:this.context[t]=V.f_gen}this.exprAllowed=!0},T.name.updateContext=function(e){var t=!1;this.options.ecmaVersion>=6&&e!==T.dot&&(this.value===`of`&&!this.exprAllowed||this.value===`yield`&&this.inGeneratorContext())&&(t=!0),this.exprAllowed=t};var U=F.prototype;U.checkPropClash=function(e,t,n){if(!(this.options.ecmaVersion>=9&&e.type===`SpreadElement`)&&!(this.options.ecmaVersion>=6&&(e.computed||e.method||e.shorthand))){var r=e.key,i;switch(r.type){case`Identifier`:i=r.name;break;case`Literal`:i=String(r.value);break;default:return}var a=e.kind;if(this.options.ecmaVersion>=6){i===`__proto__`&&a===`init`&&(t.proto&&(n?n.doubleProto<0&&(n.doubleProto=r.start):this.raiseRecoverable(r.start,`Redefinition of __proto__ property`)),t.proto=!0);return}i=`$`+i;var o=t[i];if(o){var s;s=a===`init`?this.strict&&o.init||o.get||o.set:o.init||o[a],s&&this.raiseRecoverable(r.start,`Redefinition of property`)}else o=t[i]={init:!1,get:!1,set:!1};o[a]=!0}},U.parseExpression=function(e,t){var n=this.start,r=this.startLoc,i=this.parseMaybeAssign(e,t);if(this.type===T.comma){var a=this.startNodeAt(n,r);for(a.expressions=[i];this.eat(T.comma);)a.expressions.push(this.parseMaybeAssign(e,t));return this.finishNode(a,`SequenceExpression`)}return i},U.parseMaybeAssign=function(e,t,n){if(this.isContextual(`yield`)){if(this.inGenerator)return this.parseYield(e);this.exprAllowed=!1}var r=!1,i=-1,a=-1,o=-1;t?(i=t.parenthesizedAssign,a=t.trailingComma,o=t.doubleProto,t.parenthesizedAssign=t.trailingComma=-1):(t=new ze,r=!0);var s=this.start,c=this.startLoc;(this.type===T.parenL||this.type===T.name)&&(this.potentialArrowAt=this.start,this.potentialArrowInForAwait=e===`await`);var l=this.parseMaybeConditional(e,t);if(n&&(l=n.call(this,l,s,c)),this.type.isAssign){var u=this.startNodeAt(s,c);return u.operator=this.value,this.type===T.eq&&(l=this.toAssignable(l,!1,t)),r||(t.parenthesizedAssign=t.trailingComma=t.doubleProto=-1),t.shorthandAssign>=l.start&&(t.shorthandAssign=-1),this.type===T.eq?this.checkLValPattern(l):this.checkLValSimple(l),u.left=l,this.next(),u.right=this.parseMaybeAssign(e),o>-1&&(t.doubleProto=o),this.finishNode(u,`AssignmentExpression`)}else r&&this.checkExpressionErrors(t,!0);return i>-1&&(t.parenthesizedAssign=i),a>-1&&(t.trailingComma=a),l},U.parseMaybeConditional=function(e,t){var n=this.start,r=this.startLoc,i=this.parseExprOps(e,t);if(this.checkExpressionErrors(t))return i;if(this.eat(T.question)){var a=this.startNodeAt(n,r);return a.test=i,a.consequent=this.parseMaybeAssign(),this.expect(T.colon),a.alternate=this.parseMaybeAssign(e),this.finishNode(a,`ConditionalExpression`)}return i},U.parseExprOps=function(e,t){var n=this.start,r=this.startLoc,i=this.parseMaybeUnary(t,!1,!1,e);return this.checkExpressionErrors(t)||i.start===n&&i.type===`ArrowFunctionExpression`?i:this.parseExprOp(i,n,r,-1,e)},U.parseExprOp=function(e,t,n,r,i){var a=this.type.binop;if(a!=null&&(!i||this.type!==T._in)&&a>r){var o=this.type===T.logicalOR||this.type===T.logicalAND,s=this.type===T.coalesce;s&&(a=T.logicalAND.binop);var c=this.value;this.next();var l=this.start,u=this.startLoc,d=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,i),l,u,a,i),f=this.buildBinary(t,n,e,d,c,o||s);return(o&&this.type===T.coalesce||s&&(this.type===T.logicalOR||this.type===T.logicalAND))&&this.raiseRecoverable(this.start,`Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses`),this.parseExprOp(f,t,n,r,i)}return e},U.buildBinary=function(e,t,n,r,i,a){r.type===`PrivateIdentifier`&&this.raise(r.start,`Private identifier can only be left side of binary expression`);var o=this.startNodeAt(e,t);return o.left=n,o.operator=i,o.right=r,this.finishNode(o,a?`LogicalExpression`:`BinaryExpression`)},U.parseMaybeUnary=function(e,t,n,r){var i=this.start,a=this.startLoc,o;if(this.isContextual(`await`)&&this.canAwait)o=this.parseAwait(r),t=!0;else if(this.type.prefix){var s=this.startNode(),c=this.type===T.incDec;s.operator=this.value,s.prefix=!0,this.next(),s.argument=this.parseMaybeUnary(null,!0,c,r),this.checkExpressionErrors(e,!0),c?this.checkLValSimple(s.argument):this.strict&&s.operator===`delete`&&Je(s.argument)?this.raiseRecoverable(s.start,`Deleting local variable in strict mode`):s.operator===`delete`&&Ye(s.argument)?this.raiseRecoverable(s.start,`Private fields can not be deleted`):t=!0,o=this.finishNode(s,c?`UpdateExpression`:`UnaryExpression`)}else if(!t&&this.type===T.privateId)(r||this.privateNameStack.length===0)&&this.options.checkPrivateFields&&this.unexpected(),o=this.parsePrivateIdent(),this.type!==T._in&&this.unexpected();else{if(o=this.parseExprSubscripts(e,r),this.checkExpressionErrors(e))return o;for(;this.type.postfix&&!this.canInsertSemicolon();){var l=this.startNodeAt(i,a);l.operator=this.value,l.prefix=!1,l.argument=o,this.checkLValSimple(o),this.next(),o=this.finishNode(l,`UpdateExpression`)}}if(!n&&this.eat(T.starstar))if(t)this.unexpected(this.lastTokStart);else return this.buildBinary(i,a,o,this.parseMaybeUnary(null,!1,!1,r),`**`,!1);else return o};function Je(e){return e.type===`Identifier`||e.type===`ParenthesizedExpression`&&Je(e.expression)}function Ye(e){return e.type===`MemberExpression`&&e.property.type===`PrivateIdentifier`||e.type===`ChainExpression`&&Ye(e.expression)||e.type===`ParenthesizedExpression`&&Ye(e.expression)}U.parseExprSubscripts=function(e,t){var n=this.start,r=this.startLoc,i=this.parseExprAtom(e,t);if(i.type===`ArrowFunctionExpression`&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==`)`)return i;var a=this.parseSubscripts(i,n,r,!1,t);return e&&a.type===`MemberExpression`&&(e.parenthesizedAssign>=a.start&&(e.parenthesizedAssign=-1),e.parenthesizedBind>=a.start&&(e.parenthesizedBind=-1),e.trailingComma>=a.start&&(e.trailingComma=-1)),a},U.parseSubscripts=function(e,t,n,r,i){for(var a=this.options.ecmaVersion>=8&&e.type===`Identifier`&&e.name===`async`&&this.lastTokEnd===e.end&&!this.canInsertSemicolon()&&e.end-e.start===5&&this.potentialArrowAt===e.start,o=!1;;){var s=this.parseSubscript(e,t,n,r,a,o,i);if(s.optional&&(o=!0),s===e||s.type===`ArrowFunctionExpression`){if(o){var c=this.startNodeAt(t,n);c.expression=s,s=this.finishNode(c,`ChainExpression`)}return s}e=s}},U.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(T.arrow)},U.parseSubscriptAsyncArrow=function(e,t,n,r){return this.parseArrowExpression(this.startNodeAt(e,t),n,!0,r)},U.parseSubscript=function(e,t,n,r,i,a,o){var s=this.options.ecmaVersion>=11,c=s&&this.eat(T.questionDot);r&&c&&this.raise(this.lastTokStart,`Optional chaining cannot appear in the callee of new expressions`);var l=this.eat(T.bracketL);if(l||c&&this.type!==T.parenL&&this.type!==T.backQuote||this.eat(T.dot)){var u=this.startNodeAt(t,n);u.object=e,l?(u.property=this.parseExpression(),this.expect(T.bracketR)):this.type===T.privateId&&e.type!==`Super`?u.property=this.parsePrivateIdent():u.property=this.parseIdent(this.options.allowReserved!==`never`),u.computed=!!l,s&&(u.optional=c),e=this.finishNode(u,`MemberExpression`)}else if(!r&&this.eat(T.parenL)){var d=new ze,f=this.yieldPos,p=this.awaitPos,m=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var h=this.parseExprList(T.parenR,this.options.ecmaVersion>=8,!1,d);if(i&&!c&&this.shouldParseAsyncArrow())return this.checkPatternErrors(d,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,`Cannot use 'await' as identifier inside an async function`),this.yieldPos=f,this.awaitPos=p,this.awaitIdentPos=m,this.parseSubscriptAsyncArrow(t,n,h,o);this.checkExpressionErrors(d,!0),this.yieldPos=f||this.yieldPos,this.awaitPos=p||this.awaitPos,this.awaitIdentPos=m||this.awaitIdentPos;var g=this.startNodeAt(t,n);g.callee=e,g.arguments=h,s&&(g.optional=c),e=this.finishNode(g,`CallExpression`)}else if(this.type===T.backQuote){(c||a)&&this.raise(this.start,`Optional chaining cannot appear in the tag of tagged template expressions`);var _=this.startNodeAt(t,n);_.tag=e,_.quasi=this.parseTemplate({isTagged:!0}),e=this.finishNode(_,`TaggedTemplateExpression`)}return e},U.parseExprAtom=function(e,t,n){this.type===T.slash&&this.readRegexp();var r,i=this.potentialArrowAt===this.start;switch(this.type){case T._super:return this.allowSuper||this.raise(this.start,`'super' keyword outside a method`),r=this.startNode(),this.next(),this.type===T.parenL&&!this.allowDirectSuper&&this.raise(r.start,`super() call outside constructor of a subclass`),this.type!==T.dot&&this.type!==T.bracketL&&this.type!==T.parenL&&this.unexpected(),this.finishNode(r,`Super`);case T._this:return r=this.startNode(),this.next(),this.finishNode(r,`ThisExpression`);case T.name:var a=this.start,o=this.startLoc,s=this.containsEsc,c=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!s&&c.name===`async`&&!this.canInsertSemicolon()&&this.eat(T._function))return this.overrideContext(V.f_expr),this.parseFunction(this.startNodeAt(a,o),0,!1,!0,t);if(i&&!this.canInsertSemicolon()){if(this.eat(T.arrow))return this.parseArrowExpression(this.startNodeAt(a,o),[c],!1,t);if(this.options.ecmaVersion>=8&&c.name===`async`&&this.type===T.name&&!s&&(!this.potentialArrowInForAwait||this.value!==`of`||this.containsEsc))return c=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(T.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(a,o),[c],!0,t)}return c;case T.regexp:var l=this.value;return r=this.parseLiteral(l.value),r.regex={pattern:l.pattern,flags:l.flags},r;case T.num:case T.string:return this.parseLiteral(this.value);case T._null:case T._true:case T._false:return r=this.startNode(),r.value=this.type===T._null?null:this.type===T._true,r.raw=this.type.keyword,this.next(),this.finishNode(r,`Literal`);case T.parenL:var u=this.start,d=this.parseParenAndDistinguishExpression(i,t);return e&&(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(d)&&(e.parenthesizedAssign=u),e.parenthesizedBind<0&&(e.parenthesizedBind=u)),d;case T.bracketL:return r=this.startNode(),this.next(),r.elements=this.parseExprList(T.bracketR,!0,!0,e),this.finishNode(r,`ArrayExpression`);case T.braceL:return this.overrideContext(V.b_expr),this.parseObj(!1,e);case T._function:return r=this.startNode(),this.next(),this.parseFunction(r,0);case T._class:return this.parseClass(this.startNode(),!1);case T._new:return this.parseNew();case T.backQuote:return this.parseTemplate();case T._import:return this.options.ecmaVersion>=11?this.parseExprImport(n):this.unexpected();default:return this.parseExprAtomDefault()}},U.parseExprAtomDefault=function(){this.unexpected()},U.parseExprImport=function(e){var t=this.startNode();if(this.containsEsc&&this.raiseRecoverable(this.start,`Escape sequence in keyword import`),this.next(),this.type===T.parenL&&!e)return this.parseDynamicImport(t);if(this.type===T.dot){var n=this.startNodeAt(t.start,t.loc&&t.loc.start);return n.name=`import`,t.meta=this.finishNode(n,`Identifier`),this.parseImportMeta(t)}else this.unexpected()},U.parseDynamicImport=function(e){if(this.next(),e.source=this.parseMaybeAssign(),this.options.ecmaVersion>=16)this.eat(T.parenR)?e.options=null:(this.expect(T.comma),this.afterTrailingComma(T.parenR)?e.options=null:(e.options=this.parseMaybeAssign(),this.eat(T.parenR)||(this.expect(T.comma),this.afterTrailingComma(T.parenR)||this.unexpected())));else if(!this.eat(T.parenR)){var t=this.start;this.eat(T.comma)&&this.eat(T.parenR)?this.raiseRecoverable(t,`Trailing comma is not allowed in import()`):this.unexpected(t)}return this.finishNode(e,`ImportExpression`)},U.parseImportMeta=function(e){this.next();var t=this.containsEsc;return e.property=this.parseIdent(!0),e.property.name!==`meta`&&this.raiseRecoverable(e.property.start,`The only valid meta property for import is 'import.meta'`),t&&this.raiseRecoverable(e.start,`'import.meta' must not contain escaped characters`),this.options.sourceType!==`module`&&!this.options.allowImportExportEverywhere&&this.raiseRecoverable(e.start,`Cannot use 'import.meta' outside a module`),this.finishNode(e,`MetaProperty`)},U.parseLiteral=function(e){var t=this.startNode();return t.value=e,t.raw=this.input.slice(this.start,this.end),t.raw.charCodeAt(t.raw.length-1)===110&&(t.bigint=t.value==null?t.raw.slice(0,-1).replace(/_/g,``):t.value.toString()),this.next(),this.finishNode(t,`Literal`)},U.parseParenExpression=function(){this.expect(T.parenL);var e=this.parseExpression();return this.expect(T.parenR),e},U.shouldParseArrow=function(e){return!this.canInsertSemicolon()},U.parseParenAndDistinguishExpression=function(e,t){var n=this.start,r=this.startLoc,i,a=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var o=this.start,s=this.startLoc,c=[],l=!0,u=!1,d=new ze,f=this.yieldPos,p=this.awaitPos,m;for(this.yieldPos=0,this.awaitPos=0;this.type!==T.parenR;)if(l?l=!1:this.expect(T.comma),a&&this.afterTrailingComma(T.parenR,!0)){u=!0;break}else if(this.type===T.ellipsis){m=this.start,c.push(this.parseParenItem(this.parseRestBinding())),this.type===T.comma&&this.raiseRecoverable(this.start,`Comma is not permitted after the rest element`);break}else c.push(this.parseMaybeAssign(!1,d,this.parseParenItem));var h=this.lastTokEnd,g=this.lastTokEndLoc;if(this.expect(T.parenR),e&&this.shouldParseArrow(c)&&this.eat(T.arrow))return this.checkPatternErrors(d,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=f,this.awaitPos=p,this.parseParenArrowList(n,r,c,t);(!c.length||u)&&this.unexpected(this.lastTokStart),m&&this.unexpected(m),this.checkExpressionErrors(d,!0),this.yieldPos=f||this.yieldPos,this.awaitPos=p||this.awaitPos,c.length>1?(i=this.startNodeAt(o,s),i.expressions=c,this.finishNodeAt(i,`SequenceExpression`,h,g)):i=c[0]}else i=this.parseParenExpression();if(this.options.preserveParens){var _=this.startNodeAt(n,r);return _.expression=i,this.finishNode(_,`ParenthesizedExpression`)}else return i},U.parseParenItem=function(e){return e},U.parseParenArrowList=function(e,t,n,r){return this.parseArrowExpression(this.startNodeAt(e,t),n,!1,r)};var Xe=[];U.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===T.dot){var t=this.startNodeAt(e.start,e.loc&&e.loc.start);t.name=`new`,e.meta=this.finishNode(t,`Identifier`),this.next();var n=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'`),n&&this.raiseRecoverable(e.start,`'new.target' must not contain escaped characters`),this.allowNewDotTarget||this.raiseRecoverable(e.start,`'new.target' can only be used in functions and class static block`),this.finishNode(e,`MetaProperty`)}var r=this.start,i=this.startLoc;return e.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),r,i,!0,!1),this.eat(T.parenL)?e.arguments=this.parseExprList(T.parenR,this.options.ecmaVersion>=8,!1):e.arguments=Xe,this.finishNode(e,`NewExpression`)},U.parseTemplateElement=function(e){var t=e.isTagged,n=this.startNode();return this.type===T.invalidTemplate?(t||this.raiseRecoverable(this.start,`Bad escape sequence in untagged template literal`),n.value={raw:this.value.replace(/\r\n?/g,`
6
+ `),cooked:null}):n.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,`
7
+ `),cooked:this.value},this.next(),n.tail=this.type===T.backQuote,this.finishNode(n,`TemplateElement`)},U.parseTemplate=function(e){e===void 0&&(e={});var t=e.isTagged;t===void 0&&(t=!1);var n=this.startNode();this.next(),n.expressions=[];var r=this.parseTemplateElement({isTagged:t});for(n.quasis=[r];!r.tail;)this.type===T.eof&&this.raise(this.pos,`Unterminated template literal`),this.expect(T.dollarBraceL),n.expressions.push(this.parseExpression()),this.expect(T.braceR),n.quasis.push(r=this.parseTemplateElement({isTagged:t}));return this.next(),this.finishNode(n,`TemplateLiteral`)},U.isAsyncProp=function(e){return!e.computed&&e.key.type===`Identifier`&&e.key.name===`async`&&(this.type===T.name||this.type===T.num||this.type===T.string||this.type===T.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===T.star)&&!E.test(this.input.slice(this.lastTokEnd,this.start))},U.parseObj=function(e,t){var n=this.startNode(),r=!0,i={};for(n.properties=[],this.next();!this.eat(T.braceR);){if(r)r=!1;else if(this.expect(T.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(T.braceR))break;var a=this.parseProperty(e,t);e||this.checkPropClash(a,i,t),n.properties.push(a)}return this.finishNode(n,e?`ObjectPattern`:`ObjectExpression`)},U.parseProperty=function(e,t){var n=this.startNode(),r,i,a,o;if(this.options.ecmaVersion>=9&&this.eat(T.ellipsis))return e?(n.argument=this.parseIdent(!1),this.type===T.comma&&this.raiseRecoverable(this.start,`Comma is not permitted after the rest element`),this.finishNode(n,`RestElement`)):(n.argument=this.parseMaybeAssign(!1,t),this.type===T.comma&&t&&t.trailingComma<0&&(t.trailingComma=this.start),this.finishNode(n,`SpreadElement`));this.options.ecmaVersion>=6&&(n.method=!1,n.shorthand=!1,(e||t)&&(a=this.start,o=this.startLoc),e||(r=this.eat(T.star)));var s=this.containsEsc;return this.parsePropertyName(n),!e&&!s&&this.options.ecmaVersion>=8&&!r&&this.isAsyncProp(n)?(i=!0,r=this.options.ecmaVersion>=9&&this.eat(T.star),this.parsePropertyName(n)):i=!1,this.parsePropertyValue(n,e,r,i,a,o,t,s),this.finishNode(n,`Property`)},U.parseGetterSetter=function(e){var t=e.key.name;this.parsePropertyName(e),e.value=this.parseMethod(!1),e.kind=t;var n=e.kind===`get`?0:1;if(e.value.params.length!==n){var r=e.value.start;e.kind===`get`?this.raiseRecoverable(r,`getter should have no params`):this.raiseRecoverable(r,`setter should have exactly one param`)}else e.kind===`set`&&e.value.params[0].type===`RestElement`&&this.raiseRecoverable(e.value.params[0].start,`Setter cannot use rest params`)},U.parsePropertyValue=function(e,t,n,r,i,a,o,s){(n||r)&&this.type===T.colon&&this.unexpected(),this.eat(T.colon)?(e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,o),e.kind=`init`):this.options.ecmaVersion>=6&&this.type===T.parenL?(t&&this.unexpected(),e.method=!0,e.value=this.parseMethod(n,r),e.kind=`init`):!t&&!s&&this.options.ecmaVersion>=5&&!e.computed&&e.key.type===`Identifier`&&(e.key.name===`get`||e.key.name===`set`)&&this.type!==T.comma&&this.type!==T.braceR&&this.type!==T.eq?((n||r)&&this.unexpected(),this.parseGetterSetter(e)):this.options.ecmaVersion>=6&&!e.computed&&e.key.type===`Identifier`?((n||r)&&this.unexpected(),this.checkUnreserved(e.key),e.key.name===`await`&&!this.awaitIdentPos&&(this.awaitIdentPos=i),t?e.value=this.parseMaybeDefault(i,a,this.copyNode(e.key)):this.type===T.eq&&o?(o.shorthandAssign<0&&(o.shorthandAssign=this.start),e.value=this.parseMaybeDefault(i,a,this.copyNode(e.key))):e.value=this.copyNode(e.key),e.kind=`init`,e.shorthand=!0):this.unexpected()},U.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(T.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(T.bracketR),e.key;e.computed=!1}return e.key=this.type===T.num||this.type===T.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!==`never`)},U.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)},U.parseMethod=function(e,t,n){var r=this.startNode(),i=this.yieldPos,a=this.awaitPos,o=this.awaitIdentPos;return this.initFunction(r),this.options.ecmaVersion>=6&&(r.generator=e),this.options.ecmaVersion>=8&&(r.async=!!t),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(Me(t,r.generator)|Oe|(n?ke:0)),this.expect(T.parenL),r.params=this.parseBindingList(T.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(r,!1,!0,!1),this.yieldPos=i,this.awaitPos=a,this.awaitIdentPos=o,this.finishNode(r,`FunctionExpression`)},U.parseArrowExpression=function(e,t,n,r){var i=this.yieldPos,a=this.awaitPos,o=this.awaitIdentPos;return this.enterScope(Me(n,!1)|Ee),this.initFunction(e),this.options.ecmaVersion>=8&&(e.async=!!n),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,e.params=this.toAssignableList(t,!0),this.parseFunctionBody(e,!0,!1,r),this.yieldPos=i,this.awaitPos=a,this.awaitIdentPos=o,this.finishNode(e,`ArrowFunctionExpression`)},U.parseFunctionBody=function(e,t,n,r){var i=t&&this.type!==T.braceL,a=this.strict,o=!1;if(i)e.body=this.parseMaybeAssign(r),e.expression=!0,this.checkParams(e,!1);else{var s=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);(!a||s)&&(o=this.strictDirective(this.end),o&&s&&this.raiseRecoverable(e.start,`Illegal 'use strict' directive in function with non-simple parameter list`));var c=this.labels;this.labels=[],o&&(this.strict=!0),this.checkParams(e,!a&&!o&&!t&&!n&&this.isSimpleParamList(e.params)),this.strict&&e.id&&this.checkLValSimple(e.id,Le),e.body=this.parseBlock(!1,void 0,o&&!a),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=c}this.exitScope()},U.isSimpleParamList=function(e){for(var t=0,n=e;t<n.length;t+=1){var r=n[t];if(r.type!==`Identifier`)return!1}return!0},U.checkParams=function(e,t){for(var n=Object.create(null),r=0,i=e.params;r<i.length;r+=1){var a=i[r];this.checkLValInnerPattern(a,Pe,t?null:n)}},U.parseExprList=function(e,t,n,r){for(var i=[],a=!0;!this.eat(e);){if(a)a=!1;else if(this.expect(T.comma),t&&this.afterTrailingComma(e))break;var o=void 0;n&&this.type===T.comma?o=null:this.type===T.ellipsis?(o=this.parseSpread(r),r&&this.type===T.comma&&r.trailingComma<0&&(r.trailingComma=this.start)):o=this.parseMaybeAssign(!1,r),i.push(o)}return i},U.checkUnreserved=function(e){var t=e.start,n=e.end,r=e.name;if(this.inGenerator&&r===`yield`&&this.raiseRecoverable(t,`Cannot use 'yield' as identifier inside a generator`),this.inAsync&&r===`await`&&this.raiseRecoverable(t,`Cannot use 'await' as identifier inside an async function`),!(this.currentThisScope().flags&je)&&r===`arguments`&&this.raiseRecoverable(t,`Cannot use 'arguments' in class field initializer`),this.inClassStaticBlock&&(r===`arguments`||r===`await`)&&this.raise(t,`Cannot use `+r+` in class static initialization block`),this.keywords.test(r)&&this.raise(t,`Unexpected keyword '`+r+`'`),!(this.options.ecmaVersion<6&&this.input.slice(t,n).indexOf(`\\`)!==-1)){var i=this.strict?this.reservedWordsStrict:this.reservedWords;i.test(r)&&(!this.inAsync&&r===`await`&&this.raiseRecoverable(t,`Cannot use keyword 'await' outside an async function`),this.raiseRecoverable(t,`The keyword '`+r+`' is reserved`))}},U.parseIdent=function(e){var t=this.parseIdentNode();return this.next(!!e),this.finishNode(t,`Identifier`),e||(this.checkUnreserved(t),t.name===`await`&&!this.awaitIdentPos&&(this.awaitIdentPos=t.start)),t},U.parseIdentNode=function(){var e=this.startNode();return this.type===T.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=T.name):this.unexpected(),e},U.parsePrivateIdent=function(){var e=this.startNode();return this.type===T.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},U.parseYield=function(e){this.yieldPos||=this.start;var t=this.startNode();return this.next(),this.type===T.semi||this.canInsertSemicolon()||this.type!==T.star&&!this.type.startsExpr?(t.delegate=!1,t.argument=null):(t.delegate=this.eat(T.star),t.argument=this.parseMaybeAssign(e)),this.finishNode(t,`YieldExpression`)},U.parseAwait=function(e){this.awaitPos||=this.start;var t=this.startNode();return this.next(),t.argument=this.parseMaybeUnary(null,!0,!1,e),this.finishNode(t,`AwaitExpression`)};var Ze=F.prototype;Ze.raise=function(e,t){var n=ve(this.input,e);t+=` (`+n.line+`:`+n.column+`)`,this.sourceFile&&(t+=` in `+this.sourceFile);var r=SyntaxError(t);throw r.pos=e,r.loc=n,r.raisedAt=this.pos,r},Ze.raiseRecoverable=Ze.raise,Ze.curPosition=function(){if(this.options.locations)return new ge(this.curLine,this.pos-this.lineStart)};var W=F.prototype,Qe=function(e){this.flags=e,this.var=[],this.lexical=[],this.functions=[]};W.enterScope=function(e){this.scopeStack.push(new Qe(e))},W.exitScope=function(){this.scopeStack.pop()},W.treatFunctionsAsVarInScope=function(e){return e.flags&M||!this.inModule&&e.flags&Ce},W.declareName=function(e,t,n){var r=!1;if(t===P){var i=this.currentScope();r=i.lexical.indexOf(e)>-1||i.functions.indexOf(e)>-1||i.var.indexOf(e)>-1,i.lexical.push(e),this.inModule&&i.flags&Ce&&delete this.undefinedExports[e]}else if(t===Ie){var a=this.currentScope();a.lexical.push(e)}else if(t===Fe){var o=this.currentScope();r=this.treatFunctionsAsVar?o.lexical.indexOf(e)>-1:o.lexical.indexOf(e)>-1||o.var.indexOf(e)>-1,o.functions.push(e)}else for(var s=this.scopeStack.length-1;s>=0;--s){var c=this.scopeStack[s];if(c.lexical.indexOf(e)>-1&&!(c.flags&De&&c.lexical[0]===e)||!this.treatFunctionsAsVarInScope(c)&&c.functions.indexOf(e)>-1){r=!0;break}if(c.var.push(e),this.inModule&&c.flags&Ce&&delete this.undefinedExports[e],c.flags&je)break}r&&this.raiseRecoverable(n,`Identifier '`+e+`' has already been declared`)},W.checkLocalExport=function(e){this.scopeStack[0].lexical.indexOf(e.name)===-1&&this.scopeStack[0].var.indexOf(e.name)===-1&&(this.undefinedExports[e.name]=e)},W.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},W.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&(je|Ae|N))return t}},W.currentThisScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&(je|Ae|N)&&!(t.flags&Ee))return t}};var $e=function(e,t,n){this.type=``,this.start=t,this.end=0,e.options.locations&&(this.loc=new _e(e,n)),e.options.directSourceFile&&(this.sourceFile=e.options.directSourceFile),e.options.ranges&&(this.range=[t,0])},et=F.prototype;et.startNode=function(){return new $e(this,this.start,this.startLoc)},et.startNodeAt=function(e,t){return new $e(this,e,t)};function tt(e,t,n,r){return e.type=t,e.end=n,this.options.locations&&(e.loc.end=r),this.options.ranges&&(e.range[1]=n),e}et.finishNode=function(e,t){return tt.call(this,e,t,this.lastTokEnd,this.lastTokEndLoc)},et.finishNodeAt=function(e,t,n,r){return tt.call(this,e,t,n,r)},et.copyNode=function(e){var t=new $e(this,e.start,this.startLoc);for(var n in e)t[n]=e[n];return t};var nt=`Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sunu Sunuwar Todhri Todr Tulu_Tigalari Tutg Unknown Zzzz`,rt=`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`,it=rt+` Extended_Pictographic`,at=it,ot=at+` EBase EComp EMod EPres ExtPict`,st=ot,ct=st,lt={9:rt,10:it,11:at,12:ot,13:st,14:ct},ut=`Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji`,dt={9:``,10:``,11:``,12:``,13:``,14:ut},ft=`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`,pt=`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`,mt=pt+` Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd`,ht=mt+` Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho`,gt=ht+` Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi`,_t=gt+` Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith`,vt=_t+` `+nt,yt={9:pt,10:mt,11:ht,12:gt,13:_t,14:vt},bt={};function xt(e){var t=bt[e]={binary:A(lt[e]+` `+ft),binaryOfStrings:A(dt[e]),nonBinary:{General_Category:A(ft),Script:A(yt[e])}};t.nonBinary.Script_Extensions=t.nonBinary.Script,t.nonBinary.gc=t.nonBinary.General_Category,t.nonBinary.sc=t.nonBinary.Script,t.nonBinary.scx=t.nonBinary.Script_Extensions}for(Ct=0,wt=[9,10,11,12,13,14];Ct<wt.length;Ct+=1)St=wt[Ct],xt(St);var St,Ct,wt,G=F.prototype,Tt=function(e,t){this.parent=e,this.base=t||this};Tt.prototype.separatedFrom=function(e){for(var t=this;t;t=t.parent)for(var n=e;n;n=n.parent)if(t.base===n.base&&t!==n)return!0;return!1},Tt.prototype.sibling=function(){return new Tt(this.parent,this.base)};var K=function(e){this.parser=e,this.validFlags=`gim`+(e.options.ecmaVersion>=6?`uy`:``)+(e.options.ecmaVersion>=9?`s`:``)+(e.options.ecmaVersion>=13?`d`:``)+(e.options.ecmaVersion>=15?`v`:``),this.unicodeProperties=bt[e.options.ecmaVersion>=14?14:e.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};K.prototype.reset=function(e,t,n){var r=n.indexOf(`v`)!==-1,i=n.indexOf(`u`)!==-1;this.start=e|0,this.source=t+``,this.flags=n,r&&this.parser.options.ecmaVersion>=15?(this.switchU=!0,this.switchV=!0,this.switchN=!0):(this.switchU=i&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=i&&this.parser.options.ecmaVersion>=9)},K.prototype.raise=function(e){this.parser.raiseRecoverable(this.start,`Invalid regular expression: /`+this.source+`/: `+e)},K.prototype.at=function(e,t){t===void 0&&(t=!1);var n=this.source,r=n.length;if(e>=r)return-1;var i=n.charCodeAt(e);if(!(t||this.switchU)||i<=55295||i>=57344||e+1>=r)return i;var a=n.charCodeAt(e+1);return a>=56320&&a<=57343?(i<<10)+a-56613888:i},K.prototype.nextIndex=function(e,t){t===void 0&&(t=!1);var n=this.source,r=n.length;if(e>=r)return r;var i=n.charCodeAt(e),a;return!(t||this.switchU)||i<=55295||i>=57344||e+1>=r||(a=n.charCodeAt(e+1))<56320||a>57343?e+1:e+2},K.prototype.current=function(e){return e===void 0&&(e=!1),this.at(this.pos,e)},K.prototype.lookahead=function(e){return e===void 0&&(e=!1),this.at(this.nextIndex(this.pos,e),e)},K.prototype.advance=function(e){e===void 0&&(e=!1),this.pos=this.nextIndex(this.pos,e)},K.prototype.eat=function(e,t){return t===void 0&&(t=!1),this.current(t)===e?(this.advance(t),!0):!1},K.prototype.eatChars=function(e,t){t===void 0&&(t=!1);for(var n=this.pos,r=0,i=e;r<i.length;r+=1){var a=i[r],o=this.at(n,t);if(o===-1||o!==a)return!1;n=this.nextIndex(n,t)}return this.pos=n,!0},G.validateRegExpFlags=function(e){for(var t=e.validFlags,n=e.flags,r=!1,i=!1,a=0;a<n.length;a++){var o=n.charAt(a);t.indexOf(o)===-1&&this.raise(e.start,`Invalid regular expression flag`),n.indexOf(o,a+1)>-1&&this.raise(e.start,`Duplicate regular expression flag`),o===`u`&&(r=!0),o===`v`&&(i=!0)}this.options.ecmaVersion>=15&&r&&i&&this.raise(e.start,`Invalid regular expression flag`)};function Et(e){for(var t in e)return!0;return!1}G.validateRegExpPattern=function(e){this.regexp_pattern(e),!e.switchN&&this.options.ecmaVersion>=9&&Et(e.groupNames)&&(e.switchN=!0,this.regexp_pattern(e))},G.regexp_pattern=function(e){e.pos=0,e.lastIntValue=0,e.lastStringValue=``,e.lastAssertionIsQuantifiable=!1,e.numCapturingParens=0,e.maxBackReference=0,e.groupNames=Object.create(null),e.backReferenceNames.length=0,e.branchID=null,this.regexp_disjunction(e),e.pos!==e.source.length&&(e.eat(41)&&e.raise(`Unmatched ')'`),(e.eat(93)||e.eat(125))&&e.raise(`Lone quantifier brackets`)),e.maxBackReference>e.numCapturingParens&&e.raise(`Invalid escape`);for(var t=0,n=e.backReferenceNames;t<n.length;t+=1){var r=n[t];e.groupNames[r]||e.raise(`Invalid named capture referenced`)}},G.regexp_disjunction=function(e){var t=this.options.ecmaVersion>=16;for(t&&(e.branchID=new Tt(e.branchID,null)),this.regexp_alternative(e);e.eat(124);)t&&(e.branchID=e.branchID.sibling()),this.regexp_alternative(e);t&&(e.branchID=e.branchID.parent),this.regexp_eatQuantifier(e,!0)&&e.raise(`Nothing to repeat`),e.eat(123)&&e.raise(`Lone quantifier brackets`)},G.regexp_alternative=function(e){for(;e.pos<e.source.length&&this.regexp_eatTerm(e););},G.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},G.regexp_eatAssertion=function(e){var t=e.pos;if(e.lastAssertionIsQuantifiable=!1,e.eat(94)||e.eat(36))return!0;if(e.eat(92)){if(e.eat(66)||e.eat(98))return!0;e.pos=t}if(e.eat(40)&&e.eat(63)){var n=!1;if(this.options.ecmaVersion>=9&&(n=e.eat(60)),e.eat(61)||e.eat(33))return this.regexp_disjunction(e),e.eat(41)||e.raise(`Unterminated group`),e.lastAssertionIsQuantifiable=!n,!0}return e.pos=t,!1},G.regexp_eatQuantifier=function(e,t){return t===void 0&&(t=!1),this.regexp_eatQuantifierPrefix(e,t)?(e.eat(63),!0):!1},G.regexp_eatQuantifierPrefix=function(e,t){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,t)},G.regexp_eatBracedQuantifier=function(e,t){var n=e.pos;if(e.eat(123)){var r=0,i=-1;if(this.regexp_eatDecimalDigits(e)&&(r=e.lastIntValue,e.eat(44)&&this.regexp_eatDecimalDigits(e)&&(i=e.lastIntValue),e.eat(125)))return i!==-1&&i<r&&!t&&e.raise(`numbers out of order in {} quantifier`),!0;e.switchU&&!t&&e.raise(`Incomplete quantifier`),e.pos=n}return!1},G.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)},G.regexp_eatReverseSolidusAtomEscape=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatAtomEscape(e))return!0;e.pos=t}return!1},G.regexp_eatUncapturingGroup=function(e){var t=e.pos;if(e.eat(40)){if(e.eat(63)){if(this.options.ecmaVersion>=16){var n=this.regexp_eatModifiers(e),r=e.eat(45);if(n||r){for(var i=0;i<n.length;i++){var a=n.charAt(i);n.indexOf(a,i+1)>-1&&e.raise(`Duplicate regular expression modifiers`)}if(r){var o=this.regexp_eatModifiers(e);!n&&!o&&e.current()===58&&e.raise(`Invalid regular expression modifiers`);for(var s=0;s<o.length;s++){var c=o.charAt(s);(o.indexOf(c,s+1)>-1||n.indexOf(c)>-1)&&e.raise(`Duplicate regular expression modifiers`)}}}}if(e.eat(58)){if(this.regexp_disjunction(e),e.eat(41))return!0;e.raise(`Unterminated group`)}}e.pos=t}return!1},G.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},G.regexp_eatModifiers=function(e){for(var t=``,n=0;(n=e.current())!==-1&&Dt(n);)t+=j(n),e.advance();return t};function Dt(e){return e===105||e===109||e===115}G.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)},G.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise(`Nothing to repeat`),!1},G.regexp_eatSyntaxCharacter=function(e){var t=e.current();return Ot(t)?(e.lastIntValue=t,e.advance(),!0):!1};function Ot(e){return e===36||e>=40&&e<=43||e===46||e===63||e>=91&&e<=94||e>=123&&e<=125}G.regexp_eatPatternCharacters=function(e){for(var t=e.pos,n=0;(n=e.current())!==-1&&!Ot(n);)e.advance();return e.pos!==t},G.regexp_eatExtendedPatternCharacter=function(e){var t=e.current();return t!==-1&&t!==36&&!(t>=40&&t<=43)&&t!==46&&t!==63&&t!==91&&t!==94&&t!==124?(e.advance(),!0):!1},G.regexp_groupSpecifier=function(e){if(e.eat(63)){this.regexp_eatGroupName(e)||e.raise(`Invalid group`);var t=this.options.ecmaVersion>=16,n=e.groupNames[e.lastStringValue];if(n)if(t)for(var r=0,i=n;r<i.length;r+=1){var a=i[r];a.separatedFrom(e.branchID)||e.raise(`Duplicate capture group name`)}else e.raise(`Duplicate capture group name`);t?(n||(e.groupNames[e.lastStringValue]=[])).push(e.branchID):e.groupNames[e.lastStringValue]=!0}},G.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},G.regexp_eatRegExpIdentifierName=function(e){if(e.lastStringValue=``,this.regexp_eatRegExpIdentifierStart(e)){for(e.lastStringValue+=j(e.lastIntValue);this.regexp_eatRegExpIdentifierPart(e);)e.lastStringValue+=j(e.lastIntValue);return!0}return!1},G.regexp_eatRegExpIdentifierStart=function(e){var t=e.pos,n=this.options.ecmaVersion>=11,r=e.current(n);return e.advance(n),r===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,n)&&(r=e.lastIntValue),kt(r)?(e.lastIntValue=r,!0):(e.pos=t,!1)};function kt(e){return v(e,!0)||e===36||e===95}G.regexp_eatRegExpIdentifierPart=function(e){var t=e.pos,n=this.options.ecmaVersion>=11,r=e.current(n);return e.advance(n),r===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,n)&&(r=e.lastIntValue),At(r)?(e.lastIntValue=r,!0):(e.pos=t,!1)};function At(e){return y(e,!0)||e===36||e===95||e===8204||e===8205}G.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)},G.regexp_eatBackReference=function(e){var t=e.pos;if(this.regexp_eatDecimalEscape(e)){var n=e.lastIntValue;if(e.switchU)return n>e.maxBackReference&&(e.maxBackReference=n),!0;if(n<=e.numCapturingParens)return!0;e.pos=t}return!1},G.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},G.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)},G.regexp_eatCControlLetter=function(e){var t=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=t}return!1},G.regexp_eatZero=function(e){return e.current()===48&&!Bt(e.lookahead())?(e.lastIntValue=0,e.advance(),!0):!1},G.regexp_eatControlEscape=function(e){var t=e.current();return t===116?(e.lastIntValue=9,e.advance(),!0):t===110?(e.lastIntValue=10,e.advance(),!0):t===118?(e.lastIntValue=11,e.advance(),!0):t===102?(e.lastIntValue=12,e.advance(),!0):t===114?(e.lastIntValue=13,e.advance(),!0):!1},G.regexp_eatControlLetter=function(e){var t=e.current();return jt(t)?(e.lastIntValue=t%32,e.advance(),!0):!1};function jt(e){return e>=65&&e<=90||e>=97&&e<=122}G.regexp_eatRegExpUnicodeEscapeSequence=function(e,t){t===void 0&&(t=!1);var n=e.pos,r=t||e.switchU;if(e.eat(117)){if(this.regexp_eatFixedHexDigits(e,4)){var i=e.lastIntValue;if(r&&i>=55296&&i<=56319){var a=e.pos;if(e.eat(92)&&e.eat(117)&&this.regexp_eatFixedHexDigits(e,4)){var o=e.lastIntValue;if(o>=56320&&o<=57343)return e.lastIntValue=(i-55296)*1024+(o-56320)+65536,!0}e.pos=a,e.lastIntValue=i}return!0}if(r&&e.eat(123)&&this.regexp_eatHexDigits(e)&&e.eat(125)&&Mt(e.lastIntValue))return!0;r&&e.raise(`Invalid unicode escape`),e.pos=n}return!1};function Mt(e){return e>=0&&e<=1114111}G.regexp_eatIdentityEscape=function(e){if(e.switchU)return this.regexp_eatSyntaxCharacter(e)?!0:e.eat(47)?(e.lastIntValue=47,!0):!1;var t=e.current();return t!==99&&(!e.switchN||t!==107)?(e.lastIntValue=t,e.advance(),!0):!1},G.regexp_eatDecimalEscape=function(e){e.lastIntValue=0;var t=e.current();if(t>=49&&t<=57){do e.lastIntValue=10*e.lastIntValue+(t-48),e.advance();while((t=e.current())>=48&&t<=57);return!0}return!1};var Nt=0,q=1,J=2;G.regexp_eatCharacterClassEscape=function(e){var t=e.current();if(Pt(t))return e.lastIntValue=-1,e.advance(),q;var n=!1;if(e.switchU&&this.options.ecmaVersion>=9&&((n=t===80)||t===112)){e.lastIntValue=-1,e.advance();var r;if(e.eat(123)&&(r=this.regexp_eatUnicodePropertyValueExpression(e))&&e.eat(125))return n&&r===J&&e.raise(`Invalid property name`),r;e.raise(`Invalid property name`)}return Nt};function Pt(e){return e===100||e===68||e===115||e===83||e===119||e===87}G.regexp_eatUnicodePropertyValueExpression=function(e){var t=e.pos;if(this.regexp_eatUnicodePropertyName(e)&&e.eat(61)){var n=e.lastStringValue;if(this.regexp_eatUnicodePropertyValue(e)){var r=e.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(e,n,r),q}}if(e.pos=t,this.regexp_eatLoneUnicodePropertyNameOrValue(e)){var i=e.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(e,i)}return Nt},G.regexp_validateUnicodePropertyNameAndValue=function(e,t,n){k(e.unicodeProperties.nonBinary,t)||e.raise(`Invalid property name`),e.unicodeProperties.nonBinary[t].test(n)||e.raise(`Invalid property value`)},G.regexp_validateUnicodePropertyNameOrValue=function(e,t){if(e.unicodeProperties.binary.test(t))return q;if(e.switchV&&e.unicodeProperties.binaryOfStrings.test(t))return J;e.raise(`Invalid property name`)},G.regexp_eatUnicodePropertyName=function(e){var t=0;for(e.lastStringValue=``;Ft(t=e.current());)e.lastStringValue+=j(t),e.advance();return e.lastStringValue!==``};function Ft(e){return jt(e)||e===95}G.regexp_eatUnicodePropertyValue=function(e){var t=0;for(e.lastStringValue=``;It(t=e.current());)e.lastStringValue+=j(t),e.advance();return e.lastStringValue!==``};function It(e){return Ft(e)||Bt(e)}G.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)},G.regexp_eatCharacterClass=function(e){if(e.eat(91)){var t=e.eat(94),n=this.regexp_classContents(e);return e.eat(93)||e.raise(`Unterminated character class`),t&&n===J&&e.raise(`Negated character class may contain strings`),!0}return!1},G.regexp_classContents=function(e){return e.current()===93?q:e.switchV?this.regexp_classSetExpression(e):(this.regexp_nonEmptyClassRanges(e),q)},G.regexp_nonEmptyClassRanges=function(e){for(;this.regexp_eatClassAtom(e);){var t=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassAtom(e)){var n=e.lastIntValue;e.switchU&&(t===-1||n===-1)&&e.raise(`Invalid character class`),t!==-1&&n!==-1&&t>n&&e.raise(`Range out of order in character class`)}}},G.regexp_eatClassAtom=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatClassEscape(e))return!0;if(e.switchU){var n=e.current();(n===99||Ut(n))&&e.raise(`Invalid class escape`),e.raise(`Invalid escape`)}e.pos=t}var r=e.current();return r===93?!1:(e.lastIntValue=r,e.advance(),!0)},G.regexp_eatClassEscape=function(e){var t=e.pos;if(e.eat(98))return e.lastIntValue=8,!0;if(e.switchU&&e.eat(45))return e.lastIntValue=45,!0;if(!e.switchU&&e.eat(99)){if(this.regexp_eatClassControlLetter(e))return!0;e.pos=t}return this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)},G.regexp_classSetExpression=function(e){var t=q,n;if(!this.regexp_eatClassSetRange(e))if(n=this.regexp_eatClassSetOperand(e)){n===J&&(t=J);for(var r=e.pos;e.eatChars([38,38]);){if(e.current()!==38&&(n=this.regexp_eatClassSetOperand(e))){n!==J&&(t=q);continue}e.raise(`Invalid character in character class`)}if(r!==e.pos)return t;for(;e.eatChars([45,45]);)this.regexp_eatClassSetOperand(e)||e.raise(`Invalid character in character class`);if(r!==e.pos)return t}else e.raise(`Invalid character in character class`);for(;;)if(!this.regexp_eatClassSetRange(e)){if(n=this.regexp_eatClassSetOperand(e),!n)return t;n===J&&(t=J)}},G.regexp_eatClassSetRange=function(e){var t=e.pos;if(this.regexp_eatClassSetCharacter(e)){var n=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassSetCharacter(e)){var r=e.lastIntValue;return n!==-1&&r!==-1&&n>r&&e.raise(`Range out of order in character class`),!0}e.pos=t}return!1},G.regexp_eatClassSetOperand=function(e){return this.regexp_eatClassSetCharacter(e)?q:this.regexp_eatClassStringDisjunction(e)||this.regexp_eatNestedClass(e)},G.regexp_eatNestedClass=function(e){var t=e.pos;if(e.eat(91)){var n=e.eat(94),r=this.regexp_classContents(e);if(e.eat(93))return n&&r===J&&e.raise(`Negated character class may contain strings`),r;e.pos=t}if(e.eat(92)){var i=this.regexp_eatCharacterClassEscape(e);if(i)return i;e.pos=t}return null},G.regexp_eatClassStringDisjunction=function(e){var t=e.pos;if(e.eatChars([92,113])){if(e.eat(123)){var n=this.regexp_classStringDisjunctionContents(e);if(e.eat(125))return n}else e.raise(`Invalid escape`);e.pos=t}return null},G.regexp_classStringDisjunctionContents=function(e){for(var t=this.regexp_classString(e);e.eat(124);)this.regexp_classString(e)===J&&(t=J);return t},G.regexp_classString=function(e){for(var t=0;this.regexp_eatClassSetCharacter(e);)t++;return t===1?q:J},G.regexp_eatClassSetCharacter=function(e){var t=e.pos;if(e.eat(92))return this.regexp_eatCharacterEscape(e)||this.regexp_eatClassSetReservedPunctuator(e)?!0:e.eat(98)?(e.lastIntValue=8,!0):(e.pos=t,!1);var n=e.current();return n<0||n===e.lookahead()&&Lt(n)||Rt(n)?!1:(e.advance(),e.lastIntValue=n,!0)};function Lt(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 Rt(e){return e===40||e===41||e===45||e===47||e>=91&&e<=93||e>=123&&e<=125}G.regexp_eatClassSetReservedPunctuator=function(e){var t=e.current();return zt(t)?(e.lastIntValue=t,e.advance(),!0):!1};function zt(e){return e===33||e===35||e===37||e===38||e===44||e===45||e>=58&&e<=62||e===64||e===96||e===126}G.regexp_eatClassControlLetter=function(e){var t=e.current();return Bt(t)||t===95?(e.lastIntValue=t%32,e.advance(),!0):!1},G.regexp_eatHexEscapeSequence=function(e){var t=e.pos;if(e.eat(120)){if(this.regexp_eatFixedHexDigits(e,2))return!0;e.switchU&&e.raise(`Invalid escape`),e.pos=t}return!1},G.regexp_eatDecimalDigits=function(e){var t=e.pos,n=0;for(e.lastIntValue=0;Bt(n=e.current());)e.lastIntValue=10*e.lastIntValue+(n-48),e.advance();return e.pos!==t};function Bt(e){return e>=48&&e<=57}G.regexp_eatHexDigits=function(e){var t=e.pos,n=0;for(e.lastIntValue=0;Vt(n=e.current());)e.lastIntValue=16*e.lastIntValue+Ht(n),e.advance();return e.pos!==t};function Vt(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function Ht(e){return e>=65&&e<=70?10+(e-65):e>=97&&e<=102?10+(e-97):e-48}G.regexp_eatLegacyOctalEscapeSequence=function(e){if(this.regexp_eatOctalDigit(e)){var t=e.lastIntValue;if(this.regexp_eatOctalDigit(e)){var n=e.lastIntValue;t<=3&&this.regexp_eatOctalDigit(e)?e.lastIntValue=t*64+n*8+e.lastIntValue:e.lastIntValue=t*8+n}else e.lastIntValue=t;return!0}return!1},G.regexp_eatOctalDigit=function(e){var t=e.current();return Ut(t)?(e.lastIntValue=t-48,e.advance(),!0):(e.lastIntValue=0,!1)};function Ut(e){return e>=48&&e<=55}G.regexp_eatFixedHexDigits=function(e,t){var n=e.pos;e.lastIntValue=0;for(var r=0;r<t;++r){var i=e.current();if(!Vt(i))return e.pos=n,!1;e.lastIntValue=16*e.lastIntValue+Ht(i),e.advance()}return!0};var Wt=function(e){this.type=e.type,this.value=e.value,this.start=e.start,this.end=e.end,e.options.locations&&(this.loc=new _e(e,e.startLoc,e.endLoc)),e.options.ranges&&(this.range=[e.start,e.end])},Y=F.prototype;Y.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 Wt(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},Y.getToken=function(){return this.next(),new Wt(this)},typeof Symbol<`u`&&(Y[Symbol.iterator]=function(){var e=this;return{next:function(){var t=e.getToken();return{done:t.type===T.eof,value:t}}}}),Y.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(T.eof);if(e.override)return e.override(this);this.readToken(this.fullCharCodeAtPos())},Y.readToken=function(e){return v(e,this.options.ecmaVersion>=6)||e===92?this.readWord():this.getTokenFromCode(e)},Y.fullCharCodeAtPos=function(){var e=this.input.charCodeAt(this.pos);if(e<=55295||e>=56320)return e;var t=this.input.charCodeAt(this.pos+1);return t<=56319||t>=57344?e:(e<<10)+t-56613888},Y.skipBlockComment=function(){var e=this.options.onComment&&this.curPosition(),t=this.pos,n=this.input.indexOf(`*/`,this.pos+=2);if(n===-1&&this.raise(this.pos-2,`Unterminated comment`),this.pos=n+2,this.options.locations)for(var r=void 0,i=t;(r=ce(this.input,i,this.pos))>-1;)++this.curLine,i=this.lineStart=r;this.options.onComment&&this.options.onComment(!0,this.input.slice(t+2,n),t,this.pos,e,this.curPosition())},Y.skipLineComment=function(e){for(var t=this.pos,n=this.options.onComment&&this.curPosition(),r=this.input.charCodeAt(this.pos+=e);this.pos<this.input.length&&!D(r);)r=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(t+e,this.pos),t,this.pos,n,this.curPosition())},Y.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&&le.test(String.fromCharCode(e)))++this.pos;else break e}}},Y.finishToken=function(e,t){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var n=this.type;this.type=e,this.value=t,this.updateContext(n)},Y.readToken_dot=function(){var e=this.input.charCodeAt(this.pos+1);if(e>=48&&e<=57)return this.readNumber(!0);var t=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&e===46&&t===46?(this.pos+=3,this.finishToken(T.ellipsis)):(++this.pos,this.finishToken(T.dot))},Y.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):e===61?this.finishOp(T.assign,2):this.finishOp(T.slash,1)},Y.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1),n=1,r=e===42?T.star:T.modulo;return this.options.ecmaVersion>=7&&e===42&&t===42&&(++n,r=T.starstar,t=this.input.charCodeAt(this.pos+2)),t===61?this.finishOp(T.assign,n+1):this.finishOp(r,n)},Y.readToken_pipe_amp=function(e){var t=this.input.charCodeAt(this.pos+1);if(t===e){if(this.options.ecmaVersion>=12){var n=this.input.charCodeAt(this.pos+2);if(n===61)return this.finishOp(T.assign,3)}return this.finishOp(e===124?T.logicalOR:T.logicalAND,2)}return t===61?this.finishOp(T.assign,2):this.finishOp(e===124?T.bitwiseOR:T.bitwiseAND,1)},Y.readToken_caret=function(){var e=this.input.charCodeAt(this.pos+1);return e===61?this.finishOp(T.assign,2):this.finishOp(T.bitwiseXOR,1)},Y.readToken_plus_min=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?t===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||E.test(this.input.slice(this.lastTokEnd,this.pos)))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(T.incDec,2):t===61?this.finishOp(T.assign,2):this.finishOp(T.plusMin,1)},Y.readToken_lt_gt=function(e){var t=this.input.charCodeAt(this.pos+1),n=1;return t===e?(n=e===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+n)===61?this.finishOp(T.assign,n+1):this.finishOp(T.bitShift,n)):t===33&&e===60&&!this.inModule&&this.input.charCodeAt(this.pos+2)===45&&this.input.charCodeAt(this.pos+3)===45?(this.skipLineComment(4),this.skipSpace(),this.nextToken()):(t===61&&(n=2),this.finishOp(T.relational,n))},Y.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);return t===61?this.finishOp(T.equality,this.input.charCodeAt(this.pos+2)===61?3:2):e===61&&t===62&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(T.arrow)):this.finishOp(e===61?T.eq:T.prefix,1)},Y.readToken_question=function(){var e=this.options.ecmaVersion;if(e>=11){var t=this.input.charCodeAt(this.pos+1);if(t===46){var n=this.input.charCodeAt(this.pos+2);if(n<48||n>57)return this.finishOp(T.questionDot,2)}if(t===63){if(e>=12){var r=this.input.charCodeAt(this.pos+2);if(r===61)return this.finishOp(T.assign,3)}return this.finishOp(T.coalesce,2)}}return this.finishOp(T.question,1)},Y.readToken_numberSign=function(){var e=this.options.ecmaVersion,t=35;if(e>=13&&(++this.pos,t=this.fullCharCodeAtPos(),v(t,!0)||t===92))return this.finishToken(T.privateId,this.readWord1());this.raise(this.pos,`Unexpected character '`+j(t)+`'`)},Y.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(T.parenL);case 41:return++this.pos,this.finishToken(T.parenR);case 59:return++this.pos,this.finishToken(T.semi);case 44:return++this.pos,this.finishToken(T.comma);case 91:return++this.pos,this.finishToken(T.bracketL);case 93:return++this.pos,this.finishToken(T.bracketR);case 123:return++this.pos,this.finishToken(T.braceL);case 125:return++this.pos,this.finishToken(T.braceR);case 58:return++this.pos,this.finishToken(T.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(T.backQuote);case 48:var t=this.input.charCodeAt(this.pos+1);if(t===120||t===88)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(t===111||t===79)return this.readRadixNumber(8);if(t===98||t===66)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(e);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(e);case 124:case 38:return this.readToken_pipe_amp(e);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(e);case 60:case 62:return this.readToken_lt_gt(e);case 61:case 33:return this.readToken_eq_excl(e);case 63:return this.readToken_question();case 126:return this.finishOp(T.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,`Unexpected character '`+j(e)+`'`)},Y.finishOp=function(e,t){var n=this.input.slice(this.pos,this.pos+t);return this.pos+=t,this.finishToken(e,n)},Y.readRegexp=function(){for(var e,t,n=this.pos;;){this.pos>=this.input.length&&this.raise(n,`Unterminated regular expression`);var r=this.input.charAt(this.pos);if(E.test(r)&&this.raise(n,`Unterminated regular expression`),e)e=!1;else{if(r===`[`)t=!0;else if(r===`]`&&t)t=!1;else if(r===`/`&&!t)break;e=r===`\\`}++this.pos}var i=this.input.slice(n,this.pos);++this.pos;var a=this.pos,o=this.readWord1();this.containsEsc&&this.unexpected(a);var s=this.regexpState||=new K(this);s.reset(n,i,o),this.validateRegExpFlags(s),this.validateRegExpPattern(s);var c=null;try{c=new RegExp(i,o)}catch{}return this.finishToken(T.regexp,{pattern:i,flags:o,value:c})},Y.readInt=function(e,t,n){for(var r=this.options.ecmaVersion>=12&&t===void 0,i=n&&this.input.charCodeAt(this.pos)===48,a=this.pos,o=0,s=0,c=0,l=t??1/0;c<l;++c,++this.pos){var u=this.input.charCodeAt(this.pos),d=void 0;if(r&&u===95){i&&this.raiseRecoverable(this.pos,`Numeric separator is not allowed in legacy octal numeric literals`),s===95&&this.raiseRecoverable(this.pos,`Numeric separator must be exactly one underscore`),c===0&&this.raiseRecoverable(this.pos,`Numeric separator is not allowed at the first of digits`),s=u;continue}if(d=u>=97?u-97+10:u>=65?u-65+10:u>=48&&u<=57?u-48:1/0,d>=e)break;s=u,o=o*e+d}return r&&s===95&&this.raiseRecoverable(this.pos-1,`Numeric separator is not allowed at the last of digits`),this.pos===a||t!=null&&this.pos-a!==t?null:o};function Gt(e,t){return t?parseInt(e,8):parseFloat(e.replace(/_/g,``))}function Kt(e){return typeof BigInt==`function`?BigInt(e.replace(/_/g,``)):null}Y.readRadixNumber=function(e){var t=this.pos;this.pos+=2;var n=this.readInt(e);return n??this.raise(this.start+2,`Expected number in radix `+e),this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110?(n=Kt(this.input.slice(t,this.pos)),++this.pos):v(this.fullCharCodeAtPos())&&this.raise(this.pos,`Identifier directly after number`),this.finishToken(T.num,n)},Y.readNumber=function(e){var t=this.pos;!e&&this.readInt(10,void 0,!0)===null&&this.raise(t,`Invalid number`);var n=this.pos-t>=2&&this.input.charCodeAt(t)===48;n&&this.strict&&this.raise(t,`Invalid number`);var r=this.input.charCodeAt(this.pos);if(!n&&!e&&this.options.ecmaVersion>=11&&r===110){var i=Kt(this.input.slice(t,this.pos));return++this.pos,v(this.fullCharCodeAtPos())&&this.raise(this.pos,`Identifier directly after number`),this.finishToken(T.num,i)}n&&/[89]/.test(this.input.slice(t,this.pos))&&(n=!1),r===46&&!n&&(++this.pos,this.readInt(10),r=this.input.charCodeAt(this.pos)),(r===69||r===101)&&!n&&(r=this.input.charCodeAt(++this.pos),(r===43||r===45)&&++this.pos,this.readInt(10)===null&&this.raise(t,`Invalid number`)),v(this.fullCharCodeAtPos())&&this.raise(this.pos,`Identifier directly after number`);var a=Gt(this.input.slice(t,this.pos),n);return this.finishToken(T.num,a)},Y.readCodePoint=function(){var e=this.input.charCodeAt(this.pos),t;if(e===123){this.options.ecmaVersion<6&&this.unexpected();var n=++this.pos;t=this.readHexChar(this.input.indexOf(`}`,this.pos)-this.pos),++this.pos,t>1114111&&this.invalidStringToken(n,`Code point out of bounds`)}else t=this.readHexChar(4);return t},Y.readString=function(e){for(var t=``,n=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,`Unterminated string constant`);var r=this.input.charCodeAt(this.pos);if(r===e)break;r===92?(t+=this.input.slice(n,this.pos),t+=this.readEscapedChar(!1),n=this.pos):r===8232||r===8233?(this.options.ecmaVersion<10&&this.raise(this.start,`Unterminated string constant`),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(D(r)&&this.raise(this.start,`Unterminated string constant`),++this.pos)}return t+=this.input.slice(n,this.pos++),this.finishToken(T.string,t)};var qt={};Y.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e===qt)this.readInvalidTemplateToken();else throw e}this.inTemplateElement=!1},Y.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw qt;this.raise(e,t)},Y.readTmplToken=function(){for(var e=``,t=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,`Unterminated template`);var n=this.input.charCodeAt(this.pos);if(n===96||n===36&&this.input.charCodeAt(this.pos+1)===123)return this.pos===this.start&&(this.type===T.template||this.type===T.invalidTemplate)?n===36?(this.pos+=2,this.finishToken(T.dollarBraceL)):(++this.pos,this.finishToken(T.backQuote)):(e+=this.input.slice(t,this.pos),this.finishToken(T.template,e));if(n===92)e+=this.input.slice(t,this.pos),e+=this.readEscapedChar(!0),t=this.pos;else if(D(n)){switch(e+=this.input.slice(t,this.pos),++this.pos,n){case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:e+=`
8
+ `;break;default:e+=String.fromCharCode(n);break}this.options.locations&&(++this.curLine,this.lineStart=this.pos),t=this.pos}else ++this.pos}},Y.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(T.invalidTemplate,this.input.slice(this.start,this.pos));case`\r`:this.input[this.pos+1]===`
9
+ `&&++this.pos;case`
10
+ `:case`\u2028`:case`\u2029`:++this.curLine,this.lineStart=this.pos+1;break}this.raise(this.start,`Unterminated template`)},Y.readEscapedChar=function(e){var t=this.input.charCodeAt(++this.pos);switch(++this.pos,t){case 110:return`
11
+ `;case 114:return`\r`;case 120:return String.fromCharCode(this.readHexChar(2));case 117:return j(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 n=this.pos-1;this.invalidStringToken(n,`Invalid escape sequence in template string`)}default:if(t>=48&&t<=55){var r=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],i=parseInt(r,8);return i>255&&(r=r.slice(0,-1),i=parseInt(r,8)),this.pos+=r.length-1,t=this.input.charCodeAt(this.pos),(r!==`0`||t===56||t===57)&&(this.strict||e)&&this.invalidStringToken(this.pos-1-r.length,e?`Octal literal in template string`:`Octal literal in strict mode`),String.fromCharCode(i)}return D(t)?(this.options.locations&&(this.lineStart=this.pos,++this.curLine),``):String.fromCharCode(t)}},Y.readHexChar=function(e){var t=this.pos,n=this.readInt(16,e);return n===null&&this.invalidStringToken(t,`Bad character escape sequence`),n},Y.readWord1=function(){this.containsEsc=!1;for(var e=``,t=!0,n=this.pos,r=this.options.ecmaVersion>=6;this.pos<this.input.length;){var i=this.fullCharCodeAtPos();if(y(i,r))this.pos+=i<=65535?1:2;else if(i===92){this.containsEsc=!0,e+=this.input.slice(n,this.pos);var a=this.pos;this.input.charCodeAt(++this.pos)!==117&&this.invalidStringToken(this.pos,`Expecting Unicode escape sequence \\uXXXX`),++this.pos;var o=this.readCodePoint();(t?v:y)(o,r)||this.invalidStringToken(a,`Invalid Unicode escape`),e+=j(o),n=this.pos}else break;t=!1}return e+this.input.slice(n,this.pos)},Y.readWord=function(){var e=this.readWord1(),t=T.name;return this.keywords.test(e)&&(t=oe[e]),this.finishToken(t,e)};var Jt=`8.15.0`;F.acorn={Parser:F,version:Jt,defaultOptions:ye,Position:ge,SourceLocation:_e,getLineInfo:ve,Node:$e,TokenType:b,tokTypes:T,keywordTypes:oe,TokContext:B,tokContexts:V,isIdentifierChar:y,isIdentifierStart:v,Token:Wt,isNewLine:D,lineBreak:E,lineBreakG:se,nonASCIIwhitespace:le};var Yt=l(d(),1);function Xt(e,t){let n=SyntaxError(e+` (`+t.loc.start.line+`:`+t.loc.start.column+`)`);return Object.assign(n,t)}var Zt=Xt;function Qt(e){let t=[];for(let n of e)try{return n()}catch(e){t.push(e)}throw Object.assign(Error(`All combinations failed`),{errors:t})}var $t=Qt,en=(e,t,n)=>{if(!(e&&t==null)){if(t.findLast)return t.findLast(n);for(let e=t.length-1;e>=0;e--){let r=t[e];if(n(r,e,t))return r}}},tn=en,nn=(e,t,n)=>{if(!(e&&t==null))return Array.isArray(t)||typeof t==`string`?t[n<0?t.length+n:n]:t.at(n)},rn=nn,an=new Proxy(()=>{},{get:()=>an});function X(e){var t,n,r;let i=(t=e.range)?.[0]??e.start,a=(r=(n=e.declaration)?.decorators??e.decorators)?.[0];return a?Math.min(X(a),i):i}function Z(e){var t;return(t=e.range)?.[1]??e.end}function on(e){let t=new Set(e);return e=>t.has(e?.type)}var sn=on;function cn(e,t,n){let r=e.originalText.slice(t,n);for(let i of e[Symbol.for(`comments`)]){let e=X(i);if(e>n)break;let a=Z(i);if(a<t)continue;let o=a-e;r=r.slice(0,e-t)+` `.repeat(o)+r.slice(a-t)}return r}var ln=cn,un=sn([`Block`,`CommentBlock`,`MultiLine`]),dn=un,fn=sn([`Line`,`CommentLine`,`SingleLine`,`HashbangComment`,`HTMLOpen`,`HTMLClose`,`Hashbang`,`InterpreterDirective`]),pn=fn,mn=new WeakMap;function hn(e){return mn.has(e)||mn.set(e,dn(e)&&e.value[0]===`*`&&/@(?:type|satisfies)\b/u.test(e.value)),mn.get(e)}var gn=hn;function _n(e){if(!dn(e))return!1;let t=`*${e.value}*`.split(`
12
+ `);return t.length>1&&t.every(e=>e.trimStart()[0]===`*`)}var vn=new WeakMap;function yn(e){return vn.has(e)||vn.set(e,_n(e)),vn.get(e)}var bn=yn;function xn(e){if(e.length<2)return;let t;for(let n=e.length-1;n>=0;n--){let r=e[n];if(t&&Z(r)===X(t)&&bn(r)&&bn(t)&&(e.splice(n+1,1),r.value+=`*//*`+t.value,r.range=[X(r),Z(t)]),!pn(r)&&!dn(r))throw TypeError(`Unknown comment type: "${r.type}".`);t=r}}var Sn=xn,Cn=null;function wn(e){if(Cn!==null&&typeof Cn.property){let e=Cn;return Cn=wn.prototype=null,e}return Cn=wn.prototype=e??Object.create(null),new wn}var Tn=10;for(let e=0;e<=Tn;e++)wn();function En(e){return wn(e)}function Dn(e,t=`type`){En(e);function n(n){let r=n[t],i=e[r];if(!Array.isArray(i))throw Object.assign(Error(`Missing visitor keys for '${r}'.`),{node:n});return i}return n}var On=Dn,kn={ArrayExpression:[`elements`],AssignmentExpression:[`left`,`right`],BinaryExpression:[`left`,`right`],InterpreterDirective:[],Directive:[`value`],DirectiveLiteral:[],BlockStatement:[`directives`,`body`],BreakStatement:[`label`],CallExpression:[`callee`,`typeParameters`,`typeArguments`,`arguments`],CatchClause:[`param`,`body`],ConditionalExpression:[`test`,`consequent`,`alternate`],ContinueStatement:[`label`],DebuggerStatement:[],DoWhileStatement:[`body`,`test`],EmptyStatement:[],ExpressionStatement:[`expression`],File:[`program`],ForInStatement:[`left`,`right`,`body`],ForStatement:[`init`,`test`,`update`,`body`],FunctionDeclaration:[`id`,`typeParameters`,`params`,`predicate`,`returnType`,`body`],FunctionExpression:[`id`,`typeParameters`,`params`,`returnType`,`body`],Identifier:[`typeAnnotation`,`decorators`],IfStatement:[`test`,`consequent`,`alternate`],LabeledStatement:[`label`,`body`],StringLiteral:[],NumericLiteral:[],NullLiteral:[],BooleanLiteral:[],RegExpLiteral:[],LogicalExpression:[`left`,`right`],MemberExpression:[`object`,`property`],NewExpression:[`callee`,`typeParameters`,`typeArguments`,`arguments`],Program:[`directives`,`body`],ObjectExpression:[`properties`],ObjectMethod:[`decorators`,`key`,`typeParameters`,`params`,`returnType`,`body`],ObjectProperty:[`decorators`,`key`,`value`],RestElement:[`argument`,`typeAnnotation`,`decorators`],ReturnStatement:[`argument`],SequenceExpression:[`expressions`],ParenthesizedExpression:[`expression`],SwitchCase:[`test`,`consequent`],SwitchStatement:[`discriminant`,`cases`],ThisExpression:[],ThrowStatement:[`argument`],TryStatement:[`block`,`handler`,`finalizer`],UnaryExpression:[`argument`],UpdateExpression:[`argument`],VariableDeclaration:[`declarations`],VariableDeclarator:[`id`,`init`],WhileStatement:[`test`,`body`],WithStatement:[`object`,`body`],AssignmentPattern:[`left`,`right`,`decorators`,`typeAnnotation`],ArrayPattern:[`elements`,`typeAnnotation`,`decorators`],ArrowFunctionExpression:[`typeParameters`,`params`,`predicate`,`returnType`,`body`],ClassBody:[`body`],ClassExpression:[`decorators`,`id`,`typeParameters`,`superClass`,`superTypeParameters`,`mixins`,`implements`,`body`,`superTypeArguments`],ClassDeclaration:[`decorators`,`id`,`typeParameters`,`superClass`,`superTypeParameters`,`mixins`,`implements`,`body`,`superTypeArguments`],ExportAllDeclaration:[`source`,`attributes`,`exported`],ExportDefaultDeclaration:[`declaration`],ExportNamedDeclaration:[`declaration`,`specifiers`,`source`,`attributes`],ExportSpecifier:[`local`,`exported`],ForOfStatement:[`left`,`right`,`body`],ImportDeclaration:[`specifiers`,`source`,`attributes`],ImportDefaultSpecifier:[`local`],ImportNamespaceSpecifier:[`local`],ImportSpecifier:[`imported`,`local`],ImportExpression:[`source`,`options`],MetaProperty:[`meta`,`property`],ClassMethod:[`decorators`,`key`,`typeParameters`,`params`,`returnType`,`body`],ObjectPattern:[`decorators`,`properties`,`typeAnnotation`],SpreadElement:[`argument`],Super:[],TaggedTemplateExpression:[`tag`,`typeParameters`,`quasi`,`typeArguments`],TemplateElement:[],TemplateLiteral:[`quasis`,`expressions`],YieldExpression:[`argument`],AwaitExpression:[`argument`],BigIntLiteral:[],ExportNamespaceSpecifier:[`exported`],OptionalMemberExpression:[`object`,`property`],OptionalCallExpression:[`callee`,`typeParameters`,`typeArguments`,`arguments`],ClassProperty:[`decorators`,`variance`,`key`,`typeAnnotation`,`value`],ClassAccessorProperty:[`decorators`,`key`,`typeAnnotation`,`value`],ClassPrivateProperty:[`decorators`,`variance`,`key`,`typeAnnotation`,`value`],ClassPrivateMethod:[`decorators`,`key`,`typeParameters`,`params`,`returnType`,`body`],PrivateName:[`id`],StaticBlock:[`body`],ImportAttribute:[`key`,`value`],AnyTypeAnnotation:[],ArrayTypeAnnotation:[`elementType`],BooleanTypeAnnotation:[],BooleanLiteralTypeAnnotation:[],NullLiteralTypeAnnotation:[],ClassImplements:[`id`,`typeParameters`],DeclareClass:[`id`,`typeParameters`,`extends`,`mixins`,`implements`,`body`],DeclareFunction:[`id`,`predicate`],DeclareInterface:[`id`,`typeParameters`,`extends`,`body`],DeclareModule:[`id`,`body`],DeclareModuleExports:[`typeAnnotation`],DeclareTypeAlias:[`id`,`typeParameters`,`right`],DeclareOpaqueType:[`id`,`typeParameters`,`supertype`],DeclareVariable:[`id`],DeclareExportDeclaration:[`declaration`,`specifiers`,`source`,`attributes`],DeclareExportAllDeclaration:[`source`,`attributes`],DeclaredPredicate:[`value`],ExistsTypeAnnotation:[],FunctionTypeAnnotation:[`typeParameters`,`this`,`params`,`rest`,`returnType`],FunctionTypeParam:[`name`,`typeAnnotation`],GenericTypeAnnotation:[`id`,`typeParameters`],InferredPredicate:[],InterfaceExtends:[`id`,`typeParameters`],InterfaceDeclaration:[`id`,`typeParameters`,`extends`,`body`],InterfaceTypeAnnotation:[`extends`,`body`],IntersectionTypeAnnotation:[`types`],MixedTypeAnnotation:[],EmptyTypeAnnotation:[],NullableTypeAnnotation:[`typeAnnotation`],NumberLiteralTypeAnnotation:[],NumberTypeAnnotation:[],ObjectTypeAnnotation:[`properties`,`indexers`,`callProperties`,`internalSlots`],ObjectTypeInternalSlot:[`id`,`value`],ObjectTypeCallProperty:[`value`],ObjectTypeIndexer:[`variance`,`id`,`key`,`value`],ObjectTypeProperty:[`key`,`value`,`variance`],ObjectTypeSpreadProperty:[`argument`],OpaqueType:[`id`,`typeParameters`,`supertype`,`impltype`],QualifiedTypeIdentifier:[`qualification`,`id`],StringLiteralTypeAnnotation:[],StringTypeAnnotation:[],SymbolTypeAnnotation:[],ThisTypeAnnotation:[],TupleTypeAnnotation:[`types`,`elementTypes`],TypeofTypeAnnotation:[`argument`,`typeArguments`],TypeAlias:[`id`,`typeParameters`,`right`],TypeAnnotation:[`typeAnnotation`],TypeCastExpression:[`expression`,`typeAnnotation`],TypeParameter:[`bound`,`default`,`variance`],TypeParameterDeclaration:[`params`],TypeParameterInstantiation:[`params`],UnionTypeAnnotation:[`types`],Variance:[],VoidTypeAnnotation:[],EnumDeclaration:[`id`,`body`],EnumBooleanBody:[`members`],EnumNumberBody:[`members`],EnumStringBody:[`members`],EnumSymbolBody:[`members`],EnumBooleanMember:[`id`,`init`],EnumNumberMember:[`id`,`init`],EnumStringMember:[`id`,`init`],EnumDefaultedMember:[`id`],IndexedAccessType:[`objectType`,`indexType`],OptionalIndexedAccessType:[`objectType`,`indexType`],JSXAttribute:[`name`,`value`],JSXClosingElement:[`name`],JSXElement:[`openingElement`,`children`,`closingElement`],JSXEmptyExpression:[],JSXExpressionContainer:[`expression`],JSXSpreadChild:[`expression`],JSXIdentifier:[],JSXMemberExpression:[`object`,`property`],JSXNamespacedName:[`namespace`,`name`],JSXOpeningElement:[`name`,`typeParameters`,`typeArguments`,`attributes`],JSXSpreadAttribute:[`argument`],JSXText:[],JSXFragment:[`openingFragment`,`children`,`closingFragment`],JSXOpeningFragment:[],JSXClosingFragment:[],Noop:[],Placeholder:[],V8IntrinsicIdentifier:[],ArgumentPlaceholder:[],BindExpression:[`object`,`callee`],Decorator:[`expression`],DoExpression:[`body`],ExportDefaultSpecifier:[`exported`],ModuleExpression:[`body`],TopicReference:[],PipelineTopicExpression:[`expression`],PipelineBareFunction:[`callee`],PipelinePrimaryTopicReference:[],TSParameterProperty:[`parameter`,`decorators`],TSDeclareFunction:[`id`,`typeParameters`,`params`,`returnType`,`body`],TSDeclareMethod:[`decorators`,`key`,`typeParameters`,`params`,`returnType`],TSQualifiedName:[`left`,`right`],TSCallSignatureDeclaration:[`typeParameters`,`parameters`,`typeAnnotation`,`params`,`returnType`],TSConstructSignatureDeclaration:[`typeParameters`,`parameters`,`typeAnnotation`,`params`,`returnType`],TSPropertySignature:[`key`,`typeAnnotation`],TSMethodSignature:[`key`,`typeParameters`,`parameters`,`typeAnnotation`,`params`,`returnType`],TSIndexSignature:[`parameters`,`typeAnnotation`],TSAnyKeyword:[],TSBooleanKeyword:[],TSBigIntKeyword:[],TSIntrinsicKeyword:[],TSNeverKeyword:[],TSNullKeyword:[],TSNumberKeyword:[],TSObjectKeyword:[],TSStringKeyword:[],TSSymbolKeyword:[],TSUndefinedKeyword:[],TSUnknownKeyword:[],TSVoidKeyword:[],TSThisType:[],TSFunctionType:[`typeParameters`,`parameters`,`typeAnnotation`,`params`,`returnType`],TSConstructorType:[`typeParameters`,`parameters`,`typeAnnotation`,`params`,`returnType`],TSTypeReference:[`typeName`,`typeParameters`,`typeArguments`],TSTypePredicate:[`parameterName`,`typeAnnotation`],TSTypeQuery:[`exprName`,`typeParameters`,`typeArguments`],TSTypeLiteral:[`members`],TSArrayType:[`elementType`],TSTupleType:[`elementTypes`],TSOptionalType:[`typeAnnotation`],TSRestType:[`typeAnnotation`],TSNamedTupleMember:[`label`,`elementType`],TSUnionType:[`types`],TSIntersectionType:[`types`],TSConditionalType:[`checkType`,`extendsType`,`trueType`,`falseType`],TSInferType:[`typeParameter`],TSParenthesizedType:[`typeAnnotation`],TSTypeOperator:[`typeAnnotation`],TSIndexedAccessType:[`objectType`,`indexType`],TSMappedType:[`nameType`,`typeAnnotation`,`key`,`constraint`],TSTemplateLiteralType:[`quasis`,`types`],TSLiteralType:[`literal`],TSExpressionWithTypeArguments:[`expression`,`typeParameters`],TSInterfaceDeclaration:[`id`,`typeParameters`,`extends`,`body`],TSInterfaceBody:[`body`],TSTypeAliasDeclaration:[`id`,`typeParameters`,`typeAnnotation`],TSInstantiationExpression:[`expression`,`typeParameters`,`typeArguments`],TSAsExpression:[`expression`,`typeAnnotation`],TSSatisfiesExpression:[`expression`,`typeAnnotation`],TSTypeAssertion:[`typeAnnotation`,`expression`],TSEnumBody:[`members`],TSEnumDeclaration:[`id`,`body`],TSEnumMember:[`id`,`initializer`],TSModuleDeclaration:[`id`,`body`],TSModuleBlock:[`body`],TSImportType:[`argument`,`options`,`qualifier`,`typeParameters`,`typeArguments`],TSImportEqualsDeclaration:[`id`,`moduleReference`],TSExternalModuleReference:[`expression`],TSNonNullExpression:[`expression`],TSExportAssignment:[`expression`],TSNamespaceExportDeclaration:[`id`],TSTypeAnnotation:[`typeAnnotation`],TSTypeParameterInstantiation:[`params`],TSTypeParameterDeclaration:[`params`],TSTypeParameter:[`constraint`,`default`,`name`],ChainExpression:[`expression`],ExperimentalRestProperty:[`argument`],ExperimentalSpreadProperty:[`argument`],Literal:[],MethodDefinition:[`decorators`,`key`,`value`],PrivateIdentifier:[],Property:[`key`,`value`],PropertyDefinition:[`decorators`,`key`,`typeAnnotation`,`value`,`variance`],AccessorProperty:[`decorators`,`key`,`typeAnnotation`,`value`],TSAbstractAccessorProperty:[`decorators`,`key`,`typeAnnotation`],TSAbstractKeyword:[],TSAbstractMethodDefinition:[`key`,`value`],TSAbstractPropertyDefinition:[`decorators`,`key`,`typeAnnotation`],TSAsyncKeyword:[],TSClassImplements:[`expression`,`typeArguments`,`typeParameters`],TSDeclareKeyword:[],TSEmptyBodyFunctionExpression:[`id`,`typeParameters`,`params`,`returnType`],TSExportKeyword:[],TSInterfaceHeritage:[`expression`,`typeArguments`,`typeParameters`],TSPrivateKeyword:[],TSProtectedKeyword:[],TSPublicKeyword:[],TSReadonlyKeyword:[],TSStaticKeyword:[],AsConstExpression:[`expression`],AsExpression:[`expression`,`typeAnnotation`],BigIntLiteralTypeAnnotation:[],BigIntTypeAnnotation:[],ComponentDeclaration:[`id`,`params`,`body`,`typeParameters`,`rendersType`],ComponentParameter:[`name`,`local`],ComponentTypeAnnotation:[`params`,`rest`,`typeParameters`,`rendersType`],ComponentTypeParameter:[`name`,`typeAnnotation`],ConditionalTypeAnnotation:[`checkType`,`extendsType`,`trueType`,`falseType`],DeclareComponent:[`id`,`params`,`rest`,`typeParameters`,`rendersType`],DeclareEnum:[`id`,`body`],DeclareHook:[`id`],DeclareNamespace:[`id`,`body`],EnumBigIntBody:[`members`],EnumBigIntMember:[`id`,`init`],HookDeclaration:[`id`,`params`,`body`,`typeParameters`,`returnType`],HookTypeAnnotation:[`params`,`returnType`,`rest`,`typeParameters`],InferTypeAnnotation:[`typeParameter`],KeyofTypeAnnotation:[`argument`],ObjectTypeMappedTypeProperty:[`keyTparam`,`propType`,`sourceType`,`variance`],QualifiedTypeofIdentifier:[`qualification`,`id`],TupleTypeLabeledElement:[`label`,`elementType`,`variance`],TupleTypeSpreadElement:[`label`,`typeAnnotation`],TypeOperator:[`typeAnnotation`],TypePredicate:[`parameterName`,`typeAnnotation`,`asserts`],NGChainedExpression:[`expressions`],NGEmptyExpression:[],NGPipeExpression:[`left`,`right`,`arguments`],NGMicrosyntax:[`body`],NGMicrosyntaxAs:[`key`,`alias`],NGMicrosyntaxExpression:[`expression`,`alias`],NGMicrosyntaxKey:[],NGMicrosyntaxKeyedExpression:[`key`,`expression`],NGMicrosyntaxLet:[`key`,`value`],NGRoot:[`node`],JsExpressionRoot:[`node`],JsonRoot:[`node`],TSJSDocAllType:[],TSJSDocUnknownType:[],TSJSDocNullableType:[`typeAnnotation`],TSJSDocNonNullableType:[`typeAnnotation`],NeverTypeAnnotation:[],SatisfiesExpression:[`expression`,`typeAnnotation`],UndefinedTypeAnnotation:[],UnknownTypeAnnotation:[]},An=On(kn),jn=An;function Mn(e,t){if(!(typeof e==`object`&&e))return e;if(Array.isArray(e)){for(let n=0;n<e.length;n++)e[n]=Mn(e[n],t);return e}let n=jn(e);for(let r=0;r<n.length;r++)e[n[r]]=Mn(e[n[r]],t);return t(e)||e}var Nn=Mn;sn([`RegExpLiteral`,`BigIntLiteral`,`NumericLiteral`,`StringLiteral`,`DirectiveLiteral`,`Literal`,`JSXText`,`TemplateElement`,`StringLiteralTypeAnnotation`,`NumberLiteralTypeAnnotation`,`BigIntLiteralTypeAnnotation`]);function Pn(e,t){let{parser:n,text:r}=t,{comments:i}=e,a=n===`oxc`&&t.oxcAstType===`ts`;Sn(i);let o;e=Nn(e,t=>{switch(t.type){case`ParenthesizedExpression`:{let{expression:e}=t,n=X(t);if(e.type===`TypeCastExpression`)return e.range=[n,Z(t)],e;let s=!1;if(!a){if(!o){o=[];for(let e of i)gn(e)&&o.push(Z(e))}let e=tn(!1,o,e=>e<=n);s=e&&r.slice(e,n).trim().length===0}if(!s)return e.extra={...e.extra,parenthesized:!0},e;break}case`LogicalExpression`:if(In(t))return Ln(t);break;case`TemplateLiteral`:if(t.expressions.length!==t.quasis.length-1)throw Error(`Malformed template literal.`);break;case`TemplateElement`:if(n===`flow`||n===`hermes`||n===`espree`||n===`typescript`||a){let e=X(t)+1,n=Z(t)-(t.tail?1:2);t.range=[e,n]}break;case`VariableDeclaration`:{let e=rn(!1,t.declarations,-1);e!=null&&e.init&&r[Z(e)]!==`;`&&(t.range=[X(t),Z(e)]);break}case`TSParenthesizedType`:return t.typeAnnotation;case`TSTypeParameter`:Fn(t);break;case`TopicReference`:e.extra={...e.extra,__isUsingHackPipeline:!0};break;case`TSUnionType`:case`TSIntersectionType`:if(t.types.length===1)return t.types[0];break;case`TSMappedType`:if(!t.constraint&&!t.key){let{name:e,constraint:n}=Fn(t.typeParameter);t.constraint=n,t.key=e,delete t.typeParameter}break;case`TSEnumDeclaration`:if(!t.body){let e=Z(t.id),{members:n}=t,a=ln({originalText:r,[Symbol.for(`comments`)]:i},e,n[0]?X(n[0]):Z(t)),o=e+a.indexOf(`{`);t.body={type:`TSEnumBody`,members:n,range:[o,Z(t)]},delete t.members}break;case`ImportExpression`:n===`hermes`&&t.attributes&&!t.options&&(t.options=t.attributes);break}});let s=e.type===`File`?e.program:e;return s.interpreter&&(i.unshift(s.interpreter),delete s.interpreter),a&&e.hashbang&&(i.unshift(e.hashbang),delete e.hashbang),e.type===`Program`&&(e.range=[0,r.length]),e}function Fn(e){if(e.type===`TSTypeParameter`&&typeof e.name==`string`){let t=X(e);e.name={type:`Identifier`,name:e.name,range:[t,t+e.name.length]}}return e}function In(e){return e.type===`LogicalExpression`&&e.right.type===`LogicalExpression`&&e.operator===e.right.operator}function Ln(e){return In(e)?Ln({type:`LogicalExpression`,operator:e.operator,left:Ln({type:`LogicalExpression`,operator:e.operator,left:e.left,right:e.right.left,range:[X(e.left),Z(e.right.left)]}),right:e.right.right,range:[X(e),Z(e)]}):e}var Rn=Pn,zn=(e,t,n,r)=>{if(!(e&&t==null))return t.replaceAll?t.replaceAll(n,r):n.global?t.replace(n,r):t.split(n).join(r)},Bn=zn,Vn=/\*\/$/,Hn=/^\/\*\*?/,Un=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,Wn=/(^|\s+)\/\/([^\n\r]*)/g,Gn=/^(\r?\n)+/,Kn=/(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g,qn=/(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g,Jn=/(\r?\n|^) *\* ?/g,Yn=[];function Xn(e){let t=e.match(Un);return t?t[0].trimStart():``}function Zn(e){let t=`
13
+ `;e=Bn(!1,e.replace(Hn,``).replace(Vn,``),Jn,`$1`);let n=``;for(;n!==e;)n=e,e=Bn(!1,e,Kn,`${t}$1 $2${t}`);e=e.replace(Gn,``).trimEnd();let r=Object.create(null),i=Bn(!1,e,qn,``).replace(Gn,``).trimEnd(),a;for(;a=qn.exec(e);){let e=Bn(!1,a[2],Wn,``);if(typeof r[a[1]]==`string`||Array.isArray(r[a[1]])){let t=r[a[1]];r[a[1]]=[...Yn,...Array.isArray(t)?t:[t],e]}else r[a[1]]=e}return{comments:i,pragmas:r}}var Qn=[`noformat`,`noprettier`],$n=[`format`,`prettier`];function er(e){if(!e.startsWith(`#!`))return``;let t=e.indexOf(`
14
+ `);return t===-1?e:e.slice(0,t)}var tr=er;function nr(e){let t=tr(e);t&&(e=e.slice(t.length+1));let n=Xn(e),{pragmas:r,comments:i}=Zn(n);return{shebang:t,text:e,pragmas:r,comments:i}}function rr(e){let{pragmas:t}=nr(e);return $n.some(e=>Object.prototype.hasOwnProperty.call(t,e))}function ir(e){let{pragmas:t}=nr(e);return Qn.some(e=>Object.prototype.hasOwnProperty.call(t,e))}function ar(e){return e=typeof e==`function`?{parse:e}:e,{astFormat:`estree`,hasPragma:rr,hasIgnorePragma:ir,locStart:X,locEnd:Z,...e}}var or=ar,sr=`module`,cr=`script`,lr=[sr,cr];function ur(e){if(typeof e==`string`){if(e=e.toLowerCase(),/\.(?:mjs|mts)$/iu.test(e))return sr;if(/\.(?:cjs|cts)$/iu.test(e))return cr}}var dr={ecmaVersion:`latest`,allowReserved:!0,allowReturnOutsideFunction:!0,allowSuperOutsideMethod:!0,checkPrivateFields:!1,locations:!1,ranges:!0,preserveParens:!0};function fr(e){let{message:t,loc:n}=e;if(!n)return e;let{line:r,column:i}=n;return Zt(t.replace(/ \(\d+:\d+\)$/u,``),{loc:{start:{line:r,column:i+1}},cause:e})}var pr,mr=()=>(pr??=F.extend((0,Yt.default)()),pr);function hr(e,t){let n=mr(),r=[],i=n.parse(e,{...dr,sourceType:t,allowImportExportEverywhere:t===sr,onComment:r});return i.comments=r,i}function gr(e,t){let n=ur(t?.filepath),r=(n?[n]:lr).map(t=>()=>hr(e,t)),i;try{i=$t(r)}catch({errors:[e]}){throw fr(e)}return Rn(i,{text:e})}var _r=or(gr),vr=l(d(),1),Q={Boolean:`Boolean`,EOF:`<end>`,Identifier:`Identifier`,PrivateIdentifier:`PrivateIdentifier`,Keyword:`Keyword`,Null:`Null`,Numeric:`Numeric`,Punctuator:`Punctuator`,String:`String`,RegularExpression:`RegularExpression`,Template:`Template`,JSXIdentifier:`JSXIdentifier`,JSXText:`JSXText`};function yr(e,t){let n=e[0],r=rn(!1,e,-1),i={type:Q.Template,value:t.slice(n.start,r.end)};return n.loc&&(i.loc={start:n.loc.start,end:r.loc.end}),n.range&&(i.start=n.range[0],i.end=r.range[1],i.range=[i.start,i.end]),i}function br(e,t){this._acornTokTypes=e,this._tokens=[],this._curlyBrace=null,this._code=t}br.prototype={constructor:br,translate(e,t){let n=e.type,r=this._acornTokTypes;if(n===r.name)e.type=Q.Identifier,e.value===`static`&&(e.type=Q.Keyword),t.ecmaVersion>5&&(e.value===`yield`||e.value===`let`)&&(e.type=Q.Keyword);else if(n===r.privateId)e.type=Q.PrivateIdentifier;else if(n===r.semi||n===r.comma||n===r.parenL||n===r.parenR||n===r.braceL||n===r.braceR||n===r.dot||n===r.bracketL||n===r.colon||n===r.question||n===r.bracketR||n===r.ellipsis||n===r.arrow||n===r.jsxTagStart||n===r.incDec||n===r.starstar||n===r.jsxTagEnd||n===r.prefix||n===r.questionDot||n.binop&&!n.keyword||n.isAssign)e.type=Q.Punctuator,e.value=this._code.slice(e.start,e.end);else if(n===r.jsxName)e.type=Q.JSXIdentifier;else if(n.label===`jsxText`||n===r.jsxAttrValueToken)e.type=Q.JSXText;else if(n.keyword)n.keyword===`true`||n.keyword===`false`?e.type=Q.Boolean:n.keyword===`null`?e.type=Q.Null:e.type=Q.Keyword;else if(n===r.num)e.type=Q.Numeric,e.value=this._code.slice(e.start,e.end);else if(n===r.string)t.jsxAttrValueToken?(t.jsxAttrValueToken=!1,e.type=Q.JSXText):e.type=Q.String,e.value=this._code.slice(e.start,e.end);else if(n===r.regexp){e.type=Q.RegularExpression;let t=e.value;e.regex={flags:t.flags,pattern:t.pattern},e.value=`/${t.pattern}/${t.flags}`}return e},onToken(e,t){let n=this._acornTokTypes,r=t.tokens,i=this._tokens,a=()=>{r.push(yr(this._tokens,this._code)),this._tokens=[]};if(e.type===n.eof){this._curlyBrace&&r.push(this.translate(this._curlyBrace,t));return}if(e.type===n.backQuote){this._curlyBrace&&(r.push(this.translate(this._curlyBrace,t)),this._curlyBrace=null),i.push(e),i.length>1&&a();return}if(e.type===n.dollarBraceL){i.push(e),a();return}if(e.type===n.braceR){this._curlyBrace&&r.push(this.translate(this._curlyBrace,t)),this._curlyBrace=e;return}if(e.type===n.template||e.type===n.invalidTemplate){this._curlyBrace&&(i.push(this._curlyBrace),this._curlyBrace=null),i.push(e);return}this._curlyBrace&&(r.push(this.translate(this._curlyBrace,t)),this._curlyBrace=null),r.push(this.translate(e,t))}};var xr=br,Sr=[3,5,6,7,8,9,10,11,12,13,14,15,16,17];function Cr(){return rn(!1,Sr,-1)}function wr(e=5){let t=e===`latest`?Cr():e;if(typeof t!=`number`)throw Error(`ecmaVersion must be a number or "latest". Received value of type ${typeof e} instead.`);if(t>=2015&&(t-=2009),!Sr.includes(t))throw Error(`Invalid ecmaVersion.`);return t}function Tr(e=`script`){if(e===`script`||e===`module`)return e;if(e===`commonjs`)return`script`;throw Error(`Invalid sourceType.`)}function Er(e){let t=wr(e.ecmaVersion),n=Tr(e.sourceType),r=e.range===!0,i=e.loc===!0;if(t!==3&&e.allowReserved)throw Error("`allowReserved` is only supported when ecmaVersion is 3");if(typeof e.allowReserved<`u`&&typeof e.allowReserved!=`boolean`)throw Error("`allowReserved`, when present, must be `true` or `false`");let a=t===3?e.allowReserved||`never`:!1,o=e.ecmaFeatures||{},s=e.sourceType===`commonjs`||!!o.globalReturn;if(n===`module`&&t<6)throw Error("sourceType 'module' is not supported when ecmaVersion < 2015. Consider adding `{ ecmaVersion: 2015 }` to the parser options.");return Object.assign({},e,{ecmaVersion:t,sourceType:n,ranges:r,locations:i,allowReserved:a,allowReturnOutsideFunction:s})}var $=Symbol(`espree's internal state`),Dr=Symbol(`espree's esprimaFinishNode`);function Or(e,t,n,r,i,a,o){let s;s=e?`Block`:o.slice(n,n+2)===`#!`?`Hashbang`:`Line`;let c={type:s,value:t};return typeof n==`number`&&(c.start=n,c.end=r,c.range=[n,r]),typeof i==`object`&&(c.loc={start:i,end:a}),c}var kr=()=>e=>{let t=Object.assign({},e.acorn.tokTypes);return e.acornJsx&&Object.assign(t,e.acornJsx.tokTypes),class extends e{constructor(e,n){(typeof e!=`object`||!e)&&(e={}),typeof n!=`string`&&!(n instanceof String)&&(n=String(n));let r=e.sourceType,i=Er(e),a=i.ecmaFeatures||{},o=i.tokens===!0?new xr(t,n):null,s={originalSourceType:r||i.sourceType,tokens:o?[]:null,comments:i.comment===!0?[]:null,impliedStrict:a.impliedStrict===!0&&i.ecmaVersion>=5,ecmaVersion:i.ecmaVersion,jsxAttrValueToken:!1,lastToken:null,templateElements:[]};super({ecmaVersion:i.ecmaVersion,sourceType:i.sourceType,ranges:i.ranges,locations:i.locations,allowReserved:i.allowReserved,allowReturnOutsideFunction:i.allowReturnOutsideFunction,onToken(e){o&&o.onToken(e,s),e.type!==t.eof&&(s.lastToken=e)},onComment(e,t,r,i,a,o){if(s.comments){let c=Or(e,t,r,i,a,o,n);s.comments.push(c)}}},n),this[$]=s}tokenize(){do this.next();while(this.type!==t.eof);this.next();let e=this[$],n=e.tokens;return e.comments&&(n.comments=e.comments),n}finishNode(...e){let t=super.finishNode(...e);return this[Dr](t)}finishNodeAt(...e){let t=super.finishNodeAt(...e);return this[Dr](t)}parse(){let e=this[$],t=super.parse();if(t.sourceType=e.originalSourceType,e.comments&&(t.comments=e.comments),e.tokens&&(t.tokens=e.tokens),t.body.length){let[e]=t.body;t.range&&(t.range[0]=e.range[0]),t.loc&&(t.loc.start=e.loc.start),t.start=e.start}return e.lastToken&&(t.range&&(t.range[1]=e.lastToken.range[1]),t.loc&&(t.loc.end=e.lastToken.loc.end),t.end=e.lastToken.end),this[$].templateElements.forEach(e=>{let t=e.tail?1:2;e.start+=-1,e.end+=t,e.range&&(e.range[0]+=-1,e.range[1]+=t),e.loc&&(e.loc.start.column+=-1,e.loc.end.column+=t)}),t}parseTopLevel(e){return this[$].impliedStrict&&(this.strict=!0),super.parseTopLevel(e)}raise(t,n){let r=e.acorn.getLineInfo(this.input,t),i=SyntaxError(n);throw i.index=t,i.lineNumber=r.line,i.column=r.column+1,i}raiseRecoverable(e,t){this.raise(e,t)}unexpected(e){let t=`Unexpected token`;if(e!=null){if(this.pos=e,this.options.locations)for(;this.pos<this.lineStart;)this.lineStart=this.input.lastIndexOf(`
15
+ `,this.lineStart-2)+1,--this.curLine;this.nextToken()}this.end>this.start&&(t+=` ${this.input.slice(this.start,this.end)}`),this.raise(this.start,t)}jsx_readString(e){let n=super.jsx_readString(e);return this.type===t.string&&(this[$].jsxAttrValueToken=!0),n}[Dr](e){return e.type===`TemplateElement`&&this[$].templateElements.push(e),e.type.includes(`Function`)&&!e.generator&&(e.generator=!1),e}}},Ar={_regular:null,_jsx:null,get regular(){return this._regular===null&&(this._regular=F.extend(kr())),this._regular},get jsx(){return this._jsx===null&&(this._jsx=F.extend((0,vr.default)(),kr())),this._jsx},get(e){return e&&e.ecmaFeatures&&e.ecmaFeatures.jsx?this.jsx:this.regular}};function jr(e,t){let n=Ar.get(t);return new n(t,e).parse()}var Mr={ecmaVersion:`latest`,range:!0,loc:!1,comment:!0,tokens:!1,ecmaFeatures:{jsx:!0,globalReturn:!0,impliedStrict:!1}};function Nr(e){let{message:t,lineNumber:n,column:r}=e;return typeof n==`number`?Zt(t,{loc:{start:{line:n,column:r}},cause:e}):e}function Pr(e,t){let n=ur(t?.filepath),r=(n?[n]:lr).map(t=>()=>jr(e,{...Mr,sourceType:t})),i;try{i=$t(r)}catch({errors:[e]}){throw Nr(e)}return Rn(i,{parser:`espree`,text:e})}var Fr=or(Pr),Ir={acorn:_r,espree:Fr},Lr=f;export{Lr as default,Ir as parsers};
@@ -0,0 +1,2 @@
1
+ var e=Object.defineProperty,t=e=>{throw TypeError(e)},n=(t,n)=>{for(var r in n)e(t,r,{get:n[r],enumerable:!0})},r=(e,n,r)=>n.has(e)||t(`Cannot `+r),i=(e,t,n)=>(r(e,t,`read from private field`),n?n.call(e):t.get(e)),a=(e,n,r)=>n.has(e)?t(`Cannot add the same private member more than once`):n instanceof WeakSet?n.add(e):n.set(e,r),o=(e,t,n,i)=>(r(e,t,`write to private field`),i?i.call(e,n):t.set(e,n),n),s=(e,t,n)=>(r(e,t,`access private method`),n),c={};n(c,{parsers:()=>l});var l={};n(l,{__ng_action:()=>pi,__ng_binding:()=>mi,__ng_directive:()=>gi,__ng_interpolation:()=>hi}),RegExp(`(\\:not\\()|(([\\.\\#]?)[-\\w]+)|(?:\\[([-.\\w*\\\\$]+)(?:=(["']?)([^\\]"']*)\\5)?\\])|(\\))|(\\s*,\\s*)`,`g`);var u;(function(e){e[e.Emulated=0]=`Emulated`,e[e.None=2]=`None`,e[e.ShadowDom=3]=`ShadowDom`})(u||={});var d;(function(e){e[e.OnPush=0]=`OnPush`,e[e.Default=1]=`Default`})(d||={});var f;(function(e){e[e.None=0]=`None`,e[e.SignalBased=1]=`SignalBased`,e[e.HasDecoratorInputTransform=2]=`HasDecoratorInputTransform`})(f||={});var p;(function(e){e[e.NONE=0]=`NONE`,e[e.HTML=1]=`HTML`,e[e.STYLE=2]=`STYLE`,e[e.SCRIPT=3]=`SCRIPT`,e[e.URL=4]=`URL`,e[e.RESOURCE_URL=5]=`RESOURCE_URL`})(p||={});var ee;(function(e){e[e.Error=0]=`Error`,e[e.Warning=1]=`Warning`,e[e.Ignore=2]=`Ignore`})(ee||={});var te;(function(e){e[e.Directive=0]=`Directive`,e[e.Component=1]=`Component`,e[e.Injectable=2]=`Injectable`,e[e.Pipe=3]=`Pipe`,e[e.NgModule=4]=`NgModule`})(te||={});var ne;(function(e){e[e.Directive=0]=`Directive`,e[e.Pipe=1]=`Pipe`,e[e.NgModule=2]=`NgModule`})(ne||={});var re;(function(e){e[e.Emulated=0]=`Emulated`,e[e.None=2]=`None`,e[e.ShadowDom=3]=`ShadowDom`})(re||={});var ie;(function(e){e[e.Little=0]=`Little`,e[e.Big=1]=`Big`})(ie||={});var ae;(function(e){e[e.None=0]=`None`,e[e.Const=1]=`Const`})(ae||={});var oe;(function(e){e[e.Dynamic=0]=`Dynamic`,e[e.Bool=1]=`Bool`,e[e.String=2]=`String`,e[e.Int=3]=`Int`,e[e.Number=4]=`Number`,e[e.Function=5]=`Function`,e[e.Inferred=6]=`Inferred`,e[e.None=7]=`None`})(oe||={});var se=void 0,ce;(function(e){e[e.Minus=0]=`Minus`,e[e.Plus=1]=`Plus`})(ce||={});var m;(function(e){e[e.Equals=0]=`Equals`,e[e.NotEquals=1]=`NotEquals`,e[e.Identical=2]=`Identical`,e[e.NotIdentical=3]=`NotIdentical`,e[e.Minus=4]=`Minus`,e[e.Plus=5]=`Plus`,e[e.Divide=6]=`Divide`,e[e.Multiply=7]=`Multiply`,e[e.Modulo=8]=`Modulo`,e[e.And=9]=`And`,e[e.Or=10]=`Or`,e[e.BitwiseOr=11]=`BitwiseOr`,e[e.BitwiseAnd=12]=`BitwiseAnd`,e[e.Lower=13]=`Lower`,e[e.LowerEquals=14]=`LowerEquals`,e[e.Bigger=15]=`Bigger`,e[e.BiggerEquals=16]=`BiggerEquals`,e[e.NullishCoalesce=17]=`NullishCoalesce`,e[e.Exponentiation=18]=`Exponentiation`,e[e.In=19]=`In`})(m||={});function le(e,t){return e==null||t==null?e==t:e.isEquivalent(t)}function ue(e,t,n){let r=e.length;if(r!==t.length)return!1;for(let i=0;i<r;i++)if(!n(e[i],t[i]))return!1;return!0}function de(e,t){return ue(e,t,(e,t)=>e.isEquivalent(t))}var h=class{type;sourceSpan;constructor(e,t){this.type=e||null,this.sourceSpan=t||null}prop(e,t){return new Se(this,e,null,t)}key(e,t,n){return new Ce(this,e,t,n)}callFn(e,t,n){return new _e(this,e,null,t,n)}instantiate(e,t,n){return new ve(this,e,t,n)}conditional(e,t=null,n){return new xe(this,e,t,null,n)}equals(e,t){return new g(m.Equals,this,e,null,t)}notEquals(e,t){return new g(m.NotEquals,this,e,null,t)}identical(e,t){return new g(m.Identical,this,e,null,t)}notIdentical(e,t){return new g(m.NotIdentical,this,e,null,t)}minus(e,t){return new g(m.Minus,this,e,null,t)}plus(e,t){return new g(m.Plus,this,e,null,t)}divide(e,t){return new g(m.Divide,this,e,null,t)}multiply(e,t){return new g(m.Multiply,this,e,null,t)}modulo(e,t){return new g(m.Modulo,this,e,null,t)}power(e,t){return new g(m.Exponentiation,this,e,null,t)}and(e,t){return new g(m.And,this,e,null,t)}bitwiseOr(e,t){return new g(m.BitwiseOr,this,e,null,t)}bitwiseAnd(e,t){return new g(m.BitwiseAnd,this,e,null,t)}or(e,t){return new g(m.Or,this,e,null,t)}lower(e,t){return new g(m.Lower,this,e,null,t)}lowerEquals(e,t){return new g(m.LowerEquals,this,e,null,t)}bigger(e,t){return new g(m.Bigger,this,e,null,t)}biggerEquals(e,t){return new g(m.BiggerEquals,this,e,null,t)}isBlank(e){return this.equals(TYPED_NULL_EXPR,e)}nullishCoalesce(e,t){return new g(m.NullishCoalesce,this,e,null,t)}toStmt(){return new ke(this,null)}},fe=class e extends h{name;constructor(e,t,n){super(t,n),this.name=e}isEquivalent(t){return t instanceof e&&this.name===t.name}isConstant(){return!1}visitExpression(e,t){return e.visitReadVarExpr(this,t)}clone(){return new e(this.name,this.type,this.sourceSpan)}set(e){return new me(this.name,e,null,this.sourceSpan)}},pe=class e extends h{expr;constructor(e,t,n){super(t,n),this.expr=e}visitExpression(e,t){return e.visitTypeofExpr(this,t)}isEquivalent(t){return t instanceof e&&t.expr.isEquivalent(this.expr)}isConstant(){return this.expr.isConstant()}clone(){return new e(this.expr.clone())}},me=class e extends h{name;value;constructor(e,t,n,r){super(n||t.type,r),this.name=e,this.value=t}isEquivalent(t){return t instanceof e&&this.name===t.name&&this.value.isEquivalent(t.value)}isConstant(){return!1}visitExpression(e,t){return e.visitWriteVarExpr(this,t)}clone(){return new e(this.name,this.value.clone(),this.type,this.sourceSpan)}toDeclStmt(e,t){return new Oe(this.name,this.value,e,t,this.sourceSpan)}toConstDecl(){return this.toDeclStmt(se,Ee.Final)}},he=class e extends h{receiver;index;value;constructor(e,t,n,r,i){super(r||n.type,i),this.receiver=e,this.index=t,this.value=n}isEquivalent(t){return t instanceof e&&this.receiver.isEquivalent(t.receiver)&&this.index.isEquivalent(t.index)&&this.value.isEquivalent(t.value)}isConstant(){return!1}visitExpression(e,t){return e.visitWriteKeyExpr(this,t)}clone(){return new e(this.receiver.clone(),this.index.clone(),this.value.clone(),this.type,this.sourceSpan)}},ge=class e extends h{receiver;name;value;constructor(e,t,n,r,i){super(r||n.type,i),this.receiver=e,this.name=t,this.value=n}isEquivalent(t){return t instanceof e&&this.receiver.isEquivalent(t.receiver)&&this.name===t.name&&this.value.isEquivalent(t.value)}isConstant(){return!1}visitExpression(e,t){return e.visitWritePropExpr(this,t)}clone(){return new e(this.receiver.clone(),this.name,this.value.clone(),this.type,this.sourceSpan)}},_e=class e extends h{fn;args;pure;constructor(e,t,n,r,i=!1){super(n,r),this.fn=e,this.args=t,this.pure=i}get receiver(){return this.fn}isEquivalent(t){return t instanceof e&&this.fn.isEquivalent(t.fn)&&de(this.args,t.args)&&this.pure===t.pure}isConstant(){return!1}visitExpression(e,t){return e.visitInvokeFunctionExpr(this,t)}clone(){return new e(this.fn.clone(),this.args.map(e=>e.clone()),this.type,this.sourceSpan,this.pure)}},ve=class e extends h{classExpr;args;constructor(e,t,n,r){super(n,r),this.classExpr=e,this.args=t}isEquivalent(t){return t instanceof e&&this.classExpr.isEquivalent(t.classExpr)&&de(this.args,t.args)}isConstant(){return!1}visitExpression(e,t){return e.visitInstantiateExpr(this,t)}clone(){return new e(this.classExpr.clone(),this.args.map(e=>e.clone()),this.type,this.sourceSpan)}},ye=class e extends h{value;constructor(e,t,n){super(t,n),this.value=e}isEquivalent(t){return t instanceof e&&this.value===t.value}isConstant(){return!0}visitExpression(e,t){return e.visitLiteralExpr(this,t)}clone(){return new e(this.value,this.type,this.sourceSpan)}},be=class e extends h{value;typeParams;constructor(e,t,n=null,r){super(t,r),this.value=e,this.typeParams=n}isEquivalent(t){return t instanceof e&&this.value.name===t.value.name&&this.value.moduleName===t.value.moduleName}isConstant(){return!1}visitExpression(e,t){return e.visitExternalExpr(this,t)}clone(){return new e(this.value,this.type,this.typeParams,this.sourceSpan)}},xe=class e extends h{condition;falseCase;trueCase;constructor(e,t,n=null,r,i){super(r||t.type,i),this.condition=e,this.falseCase=n,this.trueCase=t}isEquivalent(t){return t instanceof e&&this.condition.isEquivalent(t.condition)&&this.trueCase.isEquivalent(t.trueCase)&&le(this.falseCase,t.falseCase)}isConstant(){return!1}visitExpression(e,t){return e.visitConditionalExpr(this,t)}clone(){var t;return new e(this.condition.clone(),this.trueCase.clone(),(t=this.falseCase)?.clone(),this.type,this.sourceSpan)}},g=class e extends h{operator;rhs;lhs;constructor(e,t,n,r,i){super(r||t.type,i),this.operator=e,this.rhs=n,this.lhs=t}isEquivalent(t){return t instanceof e&&this.operator===t.operator&&this.lhs.isEquivalent(t.lhs)&&this.rhs.isEquivalent(t.rhs)}isConstant(){return!1}visitExpression(e,t){return e.visitBinaryOperatorExpr(this,t)}clone(){return new e(this.operator,this.lhs.clone(),this.rhs.clone(),this.type,this.sourceSpan)}},Se=class e extends h{receiver;name;constructor(e,t,n,r){super(n,r),this.receiver=e,this.name=t}get index(){return this.name}isEquivalent(t){return t instanceof e&&this.receiver.isEquivalent(t.receiver)&&this.name===t.name}isConstant(){return!1}visitExpression(e,t){return e.visitReadPropExpr(this,t)}set(e){return new ge(this.receiver,this.name,e,null,this.sourceSpan)}clone(){return new e(this.receiver.clone(),this.name,this.type,this.sourceSpan)}},Ce=class e extends h{receiver;index;constructor(e,t,n,r){super(n,r),this.receiver=e,this.index=t}isEquivalent(t){return t instanceof e&&this.receiver.isEquivalent(t.receiver)&&this.index.isEquivalent(t.index)}isConstant(){return!1}visitExpression(e,t){return e.visitReadKeyExpr(this,t)}set(e){return new he(this.receiver,this.index,e,null,this.sourceSpan)}clone(){return new e(this.receiver.clone(),this.index.clone(),this.type,this.sourceSpan)}},we=class e extends h{entries;constructor(e,t,n){super(t,n),this.entries=e}isConstant(){return this.entries.every(e=>e.isConstant())}isEquivalent(t){return t instanceof e&&de(this.entries,t.entries)}visitExpression(e,t){return e.visitLiteralArrayExpr(this,t)}clone(){return new e(this.entries.map(e=>e.clone()),this.type,this.sourceSpan)}},Te=class e extends h{entries;valueType=null;constructor(e,t,n){super(t,n),this.entries=e,t&&(this.valueType=t.valueType)}isEquivalent(t){return t instanceof e&&de(this.entries,t.entries)}isConstant(){return this.entries.every(e=>e.value.isConstant())}visitExpression(e,t){return e.visitLiteralMapExpr(this,t)}clone(){let t=this.entries.map(e=>e.clone());return new e(t,this.type,this.sourceSpan)}},Ee;(function(e){e[e.None=0]=`None`,e[e.Final=1]=`Final`,e[e.Private=2]=`Private`,e[e.Exported=4]=`Exported`,e[e.Static=8]=`Static`})(Ee||={});var De=class{modifiers;sourceSpan;leadingComments;constructor(e=Ee.None,t=null,n){this.modifiers=e,this.sourceSpan=t,this.leadingComments=n}hasModifier(e){return(this.modifiers&e)!==0}addLeadingComment(e){this.leadingComments=this.leadingComments??[],this.leadingComments.push(e)}},Oe=class e extends De{name;value;type;constructor(e,t,n,r,i,a){super(r,i,a),this.name=e,this.value=t,this.type=n||t&&t.type||null}isEquivalent(t){return t instanceof e&&this.name===t.name&&(this.value?!!t.value&&this.value.isEquivalent(t.value):!t.value)}visitStatement(e,t){return e.visitDeclareVarStmt(this,t)}},ke=class e extends De{expr;constructor(e,t,n){super(Ee.None,t,n),this.expr=e}isEquivalent(t){return t instanceof e&&this.expr.isEquivalent(t.expr)}visitStatement(e,t){return e.visitExpressionStmt(this,t)}};function Ae(e,t,n){return new fe(e,t,n)}Ae(`<unknown>`),class e{static INSTANCE=new e;keyOf(e){if(e instanceof ye&&typeof e.value==`string`)return`"${e.value}"`;if(e instanceof ye)return String(e.value);if(e instanceof we){let t=[];for(let n of e.entries)t.push(this.keyOf(n));return`[${t.join(`,`)}]`}else if(e instanceof Te){let t=[];for(let n of e.entries){let e=n.key;n.quoted&&(e=`"${e}"`),t.push(e+`:`+this.keyOf(n.value))}return`{${t.join(`,`)}}`}else{if(e instanceof be)return`import("${e.value.moduleName}", ${e.value.name})`;if(e instanceof fe)return`read(${e.name})`;if(e instanceof pe)return`typeof(${this.keyOf(e.expr)})`;throw Error(`${this.constructor.name} does not handle expressions of type ${e.constructor.name}`)}}};var _=`@angular/core`,v=class{static NEW_METHOD=`factory`;static TRANSFORM_METHOD=`transform`;static PATCH_DEPS=`patchedDeps`;static core={name:null,moduleName:_};static namespaceHTML={name:`ɵɵnamespaceHTML`,moduleName:_};static namespaceMathML={name:`ɵɵnamespaceMathML`,moduleName:_};static namespaceSVG={name:`ɵɵnamespaceSVG`,moduleName:_};static element={name:`ɵɵelement`,moduleName:_};static elementStart={name:`ɵɵelementStart`,moduleName:_};static elementEnd={name:`ɵɵelementEnd`,moduleName:_};static advance={name:`ɵɵadvance`,moduleName:_};static syntheticHostProperty={name:`ɵɵsyntheticHostProperty`,moduleName:_};static syntheticHostListener={name:`ɵɵsyntheticHostListener`,moduleName:_};static attribute={name:`ɵɵattribute`,moduleName:_};static classProp={name:`ɵɵclassProp`,moduleName:_};static elementContainerStart={name:`ɵɵelementContainerStart`,moduleName:_};static elementContainerEnd={name:`ɵɵelementContainerEnd`,moduleName:_};static elementContainer={name:`ɵɵelementContainer`,moduleName:_};static styleMap={name:`ɵɵstyleMap`,moduleName:_};static classMap={name:`ɵɵclassMap`,moduleName:_};static styleProp={name:`ɵɵstyleProp`,moduleName:_};static interpolate={name:`ɵɵinterpolate`,moduleName:_};static interpolate1={name:`ɵɵinterpolate1`,moduleName:_};static interpolate2={name:`ɵɵinterpolate2`,moduleName:_};static interpolate3={name:`ɵɵinterpolate3`,moduleName:_};static interpolate4={name:`ɵɵinterpolate4`,moduleName:_};static interpolate5={name:`ɵɵinterpolate5`,moduleName:_};static interpolate6={name:`ɵɵinterpolate6`,moduleName:_};static interpolate7={name:`ɵɵinterpolate7`,moduleName:_};static interpolate8={name:`ɵɵinterpolate8`,moduleName:_};static interpolateV={name:`ɵɵinterpolateV`,moduleName:_};static nextContext={name:`ɵɵnextContext`,moduleName:_};static resetView={name:`ɵɵresetView`,moduleName:_};static templateCreate={name:`ɵɵtemplate`,moduleName:_};static defer={name:`ɵɵdefer`,moduleName:_};static deferWhen={name:`ɵɵdeferWhen`,moduleName:_};static deferOnIdle={name:`ɵɵdeferOnIdle`,moduleName:_};static deferOnImmediate={name:`ɵɵdeferOnImmediate`,moduleName:_};static deferOnTimer={name:`ɵɵdeferOnTimer`,moduleName:_};static deferOnHover={name:`ɵɵdeferOnHover`,moduleName:_};static deferOnInteraction={name:`ɵɵdeferOnInteraction`,moduleName:_};static deferOnViewport={name:`ɵɵdeferOnViewport`,moduleName:_};static deferPrefetchWhen={name:`ɵɵdeferPrefetchWhen`,moduleName:_};static deferPrefetchOnIdle={name:`ɵɵdeferPrefetchOnIdle`,moduleName:_};static deferPrefetchOnImmediate={name:`ɵɵdeferPrefetchOnImmediate`,moduleName:_};static deferPrefetchOnTimer={name:`ɵɵdeferPrefetchOnTimer`,moduleName:_};static deferPrefetchOnHover={name:`ɵɵdeferPrefetchOnHover`,moduleName:_};static deferPrefetchOnInteraction={name:`ɵɵdeferPrefetchOnInteraction`,moduleName:_};static deferPrefetchOnViewport={name:`ɵɵdeferPrefetchOnViewport`,moduleName:_};static deferHydrateWhen={name:`ɵɵdeferHydrateWhen`,moduleName:_};static deferHydrateNever={name:`ɵɵdeferHydrateNever`,moduleName:_};static deferHydrateOnIdle={name:`ɵɵdeferHydrateOnIdle`,moduleName:_};static deferHydrateOnImmediate={name:`ɵɵdeferHydrateOnImmediate`,moduleName:_};static deferHydrateOnTimer={name:`ɵɵdeferHydrateOnTimer`,moduleName:_};static deferHydrateOnHover={name:`ɵɵdeferHydrateOnHover`,moduleName:_};static deferHydrateOnInteraction={name:`ɵɵdeferHydrateOnInteraction`,moduleName:_};static deferHydrateOnViewport={name:`ɵɵdeferHydrateOnViewport`,moduleName:_};static deferEnableTimerScheduling={name:`ɵɵdeferEnableTimerScheduling`,moduleName:_};static conditionalCreate={name:`ɵɵconditionalCreate`,moduleName:_};static conditionalBranchCreate={name:`ɵɵconditionalBranchCreate`,moduleName:_};static conditional={name:`ɵɵconditional`,moduleName:_};static repeater={name:`ɵɵrepeater`,moduleName:_};static repeaterCreate={name:`ɵɵrepeaterCreate`,moduleName:_};static repeaterTrackByIndex={name:`ɵɵrepeaterTrackByIndex`,moduleName:_};static repeaterTrackByIdentity={name:`ɵɵrepeaterTrackByIdentity`,moduleName:_};static componentInstance={name:`ɵɵcomponentInstance`,moduleName:_};static text={name:`ɵɵtext`,moduleName:_};static enableBindings={name:`ɵɵenableBindings`,moduleName:_};static disableBindings={name:`ɵɵdisableBindings`,moduleName:_};static getCurrentView={name:`ɵɵgetCurrentView`,moduleName:_};static textInterpolate={name:`ɵɵtextInterpolate`,moduleName:_};static textInterpolate1={name:`ɵɵtextInterpolate1`,moduleName:_};static textInterpolate2={name:`ɵɵtextInterpolate2`,moduleName:_};static textInterpolate3={name:`ɵɵtextInterpolate3`,moduleName:_};static textInterpolate4={name:`ɵɵtextInterpolate4`,moduleName:_};static textInterpolate5={name:`ɵɵtextInterpolate5`,moduleName:_};static textInterpolate6={name:`ɵɵtextInterpolate6`,moduleName:_};static textInterpolate7={name:`ɵɵtextInterpolate7`,moduleName:_};static textInterpolate8={name:`ɵɵtextInterpolate8`,moduleName:_};static textInterpolateV={name:`ɵɵtextInterpolateV`,moduleName:_};static restoreView={name:`ɵɵrestoreView`,moduleName:_};static pureFunction0={name:`ɵɵpureFunction0`,moduleName:_};static pureFunction1={name:`ɵɵpureFunction1`,moduleName:_};static pureFunction2={name:`ɵɵpureFunction2`,moduleName:_};static pureFunction3={name:`ɵɵpureFunction3`,moduleName:_};static pureFunction4={name:`ɵɵpureFunction4`,moduleName:_};static pureFunction5={name:`ɵɵpureFunction5`,moduleName:_};static pureFunction6={name:`ɵɵpureFunction6`,moduleName:_};static pureFunction7={name:`ɵɵpureFunction7`,moduleName:_};static pureFunction8={name:`ɵɵpureFunction8`,moduleName:_};static pureFunctionV={name:`ɵɵpureFunctionV`,moduleName:_};static pipeBind1={name:`ɵɵpipeBind1`,moduleName:_};static pipeBind2={name:`ɵɵpipeBind2`,moduleName:_};static pipeBind3={name:`ɵɵpipeBind3`,moduleName:_};static pipeBind4={name:`ɵɵpipeBind4`,moduleName:_};static pipeBindV={name:`ɵɵpipeBindV`,moduleName:_};static domProperty={name:`ɵɵdomProperty`,moduleName:_};static property={name:`ɵɵproperty`,moduleName:_};static i18n={name:`ɵɵi18n`,moduleName:_};static i18nAttributes={name:`ɵɵi18nAttributes`,moduleName:_};static i18nExp={name:`ɵɵi18nExp`,moduleName:_};static i18nStart={name:`ɵɵi18nStart`,moduleName:_};static i18nEnd={name:`ɵɵi18nEnd`,moduleName:_};static i18nApply={name:`ɵɵi18nApply`,moduleName:_};static i18nPostprocess={name:`ɵɵi18nPostprocess`,moduleName:_};static pipe={name:`ɵɵpipe`,moduleName:_};static projection={name:`ɵɵprojection`,moduleName:_};static projectionDef={name:`ɵɵprojectionDef`,moduleName:_};static reference={name:`ɵɵreference`,moduleName:_};static inject={name:`ɵɵinject`,moduleName:_};static injectAttribute={name:`ɵɵinjectAttribute`,moduleName:_};static directiveInject={name:`ɵɵdirectiveInject`,moduleName:_};static invalidFactory={name:`ɵɵinvalidFactory`,moduleName:_};static invalidFactoryDep={name:`ɵɵinvalidFactoryDep`,moduleName:_};static templateRefExtractor={name:`ɵɵtemplateRefExtractor`,moduleName:_};static forwardRef={name:`forwardRef`,moduleName:_};static resolveForwardRef={name:`resolveForwardRef`,moduleName:_};static replaceMetadata={name:`ɵɵreplaceMetadata`,moduleName:_};static getReplaceMetadataURL={name:`ɵɵgetReplaceMetadataURL`,moduleName:_};static ɵɵdefineInjectable={name:`ɵɵdefineInjectable`,moduleName:_};static declareInjectable={name:`ɵɵngDeclareInjectable`,moduleName:_};static InjectableDeclaration={name:`ɵɵInjectableDeclaration`,moduleName:_};static resolveWindow={name:`ɵɵresolveWindow`,moduleName:_};static resolveDocument={name:`ɵɵresolveDocument`,moduleName:_};static resolveBody={name:`ɵɵresolveBody`,moduleName:_};static getComponentDepsFactory={name:`ɵɵgetComponentDepsFactory`,moduleName:_};static defineComponent={name:`ɵɵdefineComponent`,moduleName:_};static declareComponent={name:`ɵɵngDeclareComponent`,moduleName:_};static setComponentScope={name:`ɵɵsetComponentScope`,moduleName:_};static ChangeDetectionStrategy={name:`ChangeDetectionStrategy`,moduleName:_};static ViewEncapsulation={name:`ViewEncapsulation`,moduleName:_};static ComponentDeclaration={name:`ɵɵComponentDeclaration`,moduleName:_};static FactoryDeclaration={name:`ɵɵFactoryDeclaration`,moduleName:_};static declareFactory={name:`ɵɵngDeclareFactory`,moduleName:_};static FactoryTarget={name:`ɵɵFactoryTarget`,moduleName:_};static defineDirective={name:`ɵɵdefineDirective`,moduleName:_};static declareDirective={name:`ɵɵngDeclareDirective`,moduleName:_};static DirectiveDeclaration={name:`ɵɵDirectiveDeclaration`,moduleName:_};static InjectorDef={name:`ɵɵInjectorDef`,moduleName:_};static InjectorDeclaration={name:`ɵɵInjectorDeclaration`,moduleName:_};static defineInjector={name:`ɵɵdefineInjector`,moduleName:_};static declareInjector={name:`ɵɵngDeclareInjector`,moduleName:_};static NgModuleDeclaration={name:`ɵɵNgModuleDeclaration`,moduleName:_};static ModuleWithProviders={name:`ModuleWithProviders`,moduleName:_};static defineNgModule={name:`ɵɵdefineNgModule`,moduleName:_};static declareNgModule={name:`ɵɵngDeclareNgModule`,moduleName:_};static setNgModuleScope={name:`ɵɵsetNgModuleScope`,moduleName:_};static registerNgModuleType={name:`ɵɵregisterNgModuleType`,moduleName:_};static PipeDeclaration={name:`ɵɵPipeDeclaration`,moduleName:_};static definePipe={name:`ɵɵdefinePipe`,moduleName:_};static declarePipe={name:`ɵɵngDeclarePipe`,moduleName:_};static declareClassMetadata={name:`ɵɵngDeclareClassMetadata`,moduleName:_};static declareClassMetadataAsync={name:`ɵɵngDeclareClassMetadataAsync`,moduleName:_};static setClassMetadata={name:`ɵsetClassMetadata`,moduleName:_};static setClassMetadataAsync={name:`ɵsetClassMetadataAsync`,moduleName:_};static setClassDebugInfo={name:`ɵsetClassDebugInfo`,moduleName:_};static queryRefresh={name:`ɵɵqueryRefresh`,moduleName:_};static viewQuery={name:`ɵɵviewQuery`,moduleName:_};static loadQuery={name:`ɵɵloadQuery`,moduleName:_};static contentQuery={name:`ɵɵcontentQuery`,moduleName:_};static viewQuerySignal={name:`ɵɵviewQuerySignal`,moduleName:_};static contentQuerySignal={name:`ɵɵcontentQuerySignal`,moduleName:_};static queryAdvance={name:`ɵɵqueryAdvance`,moduleName:_};static twoWayProperty={name:`ɵɵtwoWayProperty`,moduleName:_};static twoWayBindingSet={name:`ɵɵtwoWayBindingSet`,moduleName:_};static twoWayListener={name:`ɵɵtwoWayListener`,moduleName:_};static declareLet={name:`ɵɵdeclareLet`,moduleName:_};static storeLet={name:`ɵɵstoreLet`,moduleName:_};static readContextLet={name:`ɵɵreadContextLet`,moduleName:_};static attachSourceLocations={name:`ɵɵattachSourceLocations`,moduleName:_};static NgOnChangesFeature={name:`ɵɵNgOnChangesFeature`,moduleName:_};static InheritDefinitionFeature={name:`ɵɵInheritDefinitionFeature`,moduleName:_};static CopyDefinitionFeature={name:`ɵɵCopyDefinitionFeature`,moduleName:_};static ProvidersFeature={name:`ɵɵProvidersFeature`,moduleName:_};static HostDirectivesFeature={name:`ɵɵHostDirectivesFeature`,moduleName:_};static ExternalStylesFeature={name:`ɵɵExternalStylesFeature`,moduleName:_};static listener={name:`ɵɵlistener`,moduleName:_};static getInheritedFactory={name:`ɵɵgetInheritedFactory`,moduleName:_};static sanitizeHtml={name:`ɵɵsanitizeHtml`,moduleName:_};static sanitizeStyle={name:`ɵɵsanitizeStyle`,moduleName:_};static sanitizeResourceUrl={name:`ɵɵsanitizeResourceUrl`,moduleName:_};static sanitizeScript={name:`ɵɵsanitizeScript`,moduleName:_};static sanitizeUrl={name:`ɵɵsanitizeUrl`,moduleName:_};static sanitizeUrlOrResourceUrl={name:`ɵɵsanitizeUrlOrResourceUrl`,moduleName:_};static trustConstantHtml={name:`ɵɵtrustConstantHtml`,moduleName:_};static trustConstantResourceUrl={name:`ɵɵtrustConstantResourceUrl`,moduleName:_};static validateIframeAttribute={name:`ɵɵvalidateIframeAttribute`,moduleName:_};static InputSignalBrandWriteType={name:`ɵINPUT_SIGNAL_BRAND_WRITE_TYPE`,moduleName:_};static UnwrapDirectiveSignalInputs={name:`ɵUnwrapDirectiveSignalInputs`,moduleName:_};static unwrapWritableSignal={name:`ɵunwrapWritableSignal`,moduleName:_}},je=class{full;major;minor;patch;constructor(e){this.full=e;let t=e.split(`.`);this.major=t[0],this.minor=t[1],this.patch=t.slice(2).join(`.`)}},Me;(function(e){e[e.Class=0]=`Class`,e[e.Function=1]=`Function`})(Me||={});var Ne=class{input;errLocation;ctxLocation;message;constructor(e,t,n,r){this.input=t,this.errLocation=n,this.ctxLocation=r,this.message=`Parser Error: ${e} ${n} [${t}] in ${r}`}},y=class{start;end;constructor(e,t){this.start=e,this.end=t}toAbsolute(e){return new w(e+this.start,e+this.end)}},b=class{span;sourceSpan;constructor(e,t){this.span=e,this.sourceSpan=t}toString(){return`AST`}},Pe=class extends b{nameSpan;constructor(e,t,n){super(e,t),this.nameSpan=n}},x=class extends b{visit(e,t=null){}},Fe=class extends b{visit(e,t=null){return e.visitImplicitReceiver(this,t)}},Ie=class extends Fe{visit(e,t=null){var n;return(n=e.visitThisReceiver)?.call(e,this,t)}},Le=class extends b{expressions;constructor(e,t,n){super(e,t),this.expressions=n}visit(e,t=null){return e.visitChain(this,t)}},Re=class extends b{condition;trueExp;falseExp;constructor(e,t,n,r,i){super(e,t),this.condition=n,this.trueExp=r,this.falseExp=i}visit(e,t=null){return e.visitConditional(this,t)}},ze=class extends Pe{receiver;name;constructor(e,t,n,r,i){super(e,t,n),this.receiver=r,this.name=i}visit(e,t=null){return e.visitPropertyRead(this,t)}},Be=class extends Pe{receiver;name;value;constructor(e,t,n,r,i,a){super(e,t,n),this.receiver=r,this.name=i,this.value=a}visit(e,t=null){return e.visitPropertyWrite(this,t)}},Ve=class extends Pe{receiver;name;constructor(e,t,n,r,i){super(e,t,n),this.receiver=r,this.name=i}visit(e,t=null){return e.visitSafePropertyRead(this,t)}},He=class extends b{receiver;key;constructor(e,t,n,r){super(e,t),this.receiver=n,this.key=r}visit(e,t=null){return e.visitKeyedRead(this,t)}},Ue=class extends b{receiver;key;constructor(e,t,n,r){super(e,t),this.receiver=n,this.key=r}visit(e,t=null){return e.visitSafeKeyedRead(this,t)}},We=class extends b{receiver;key;value;constructor(e,t,n,r,i){super(e,t),this.receiver=n,this.key=r,this.value=i}visit(e,t=null){return e.visitKeyedWrite(this,t)}},Ge=class extends Pe{exp;name;args;constructor(e,t,n,r,i,a){super(e,t,a),this.exp=n,this.name=r,this.args=i}visit(e,t=null){return e.visitPipe(this,t)}},S=class extends b{value;constructor(e,t,n){super(e,t),this.value=n}visit(e,t=null){return e.visitLiteralPrimitive(this,t)}},Ke=class extends b{expressions;constructor(e,t,n){super(e,t),this.expressions=n}visit(e,t=null){return e.visitLiteralArray(this,t)}},qe=class extends b{keys;values;constructor(e,t,n,r){super(e,t),this.keys=n,this.values=r}visit(e,t=null){return e.visitLiteralMap(this,t)}},Je=class extends b{strings;expressions;constructor(e,t,n,r){super(e,t),this.strings=n,this.expressions=r}visit(e,t=null){return e.visitInterpolation(this,t)}},C=class extends b{operation;left;right;constructor(e,t,n,r,i){super(e,t),this.operation=n,this.left=r,this.right=i}visit(e,t=null){return e.visitBinary(this,t)}},Ye=class e extends C{operator;expr;left=null;right=null;operation=null;static createMinus(t,n,r){return new e(t,n,`-`,r,`-`,new S(t,n,0),r)}static createPlus(t,n,r){return new e(t,n,`+`,r,`-`,r,new S(t,n,0))}constructor(e,t,n,r,i,a,o){super(e,t,i,a,o),this.operator=n,this.expr=r}visit(e,t=null){return e.visitUnary===void 0?e.visitBinary(this,t):e.visitUnary(this,t)}},Xe=class extends b{expression;constructor(e,t,n){super(e,t),this.expression=n}visit(e,t=null){return e.visitPrefixNot(this,t)}},Ze=class extends b{expression;constructor(e,t,n){super(e,t),this.expression=n}visit(e,t=null){return e.visitTypeofExpression(this,t)}},Qe=class extends b{expression;constructor(e,t,n){super(e,t),this.expression=n}visit(e,t=null){return e.visitVoidExpression(this,t)}},$e=class extends b{expression;constructor(e,t,n){super(e,t),this.expression=n}visit(e,t=null){return e.visitNonNullAssert(this,t)}},et=class extends b{receiver;args;argumentSpan;constructor(e,t,n,r,i){super(e,t),this.receiver=n,this.args=r,this.argumentSpan=i}visit(e,t=null){return e.visitCall(this,t)}},tt=class extends b{receiver;args;argumentSpan;constructor(e,t,n,r,i){super(e,t),this.receiver=n,this.args=r,this.argumentSpan=i}visit(e,t=null){return e.visitSafeCall(this,t)}},nt=class extends b{tag;template;constructor(e,t,n,r){super(e,t),this.tag=n,this.template=r}visit(e,t){return e.visitTaggedTemplateLiteral(this,t)}},rt=class extends b{elements;expressions;constructor(e,t,n,r){super(e,t),this.elements=n,this.expressions=r}visit(e,t){return e.visitTemplateLiteral(this,t)}},it=class extends b{text;constructor(e,t,n){super(e,t),this.text=n}visit(e,t){return e.visitTemplateLiteralElement(this,t)}},at=class extends b{expression;constructor(e,t,n){super(e,t),this.expression=n}visit(e,t){return e.visitParenthesizedExpression(this,t)}},w=class{start;end;constructor(e,t){this.start=e,this.end=t}},T=class extends b{ast;source;location;errors;constructor(e,t,n,r,i){super(new y(0,t===null?0:t.length),new w(r,t===null?r:r+t.length)),this.ast=e,this.source=t,this.location=n,this.errors=i}visit(e,t=null){return e.visitASTWithSource?e.visitASTWithSource(this,t):this.ast.visit(e,t)}toString(){return`${this.source} in ${this.location}`}},ot=class{sourceSpan;key;value;constructor(e,t,n){this.sourceSpan=e,this.key=t,this.value=n}},st=class{sourceSpan;key;value;constructor(e,t,n){this.sourceSpan=e,this.key=t,this.value=n}},ct=class{visit(e,t){e.visit(this,t)}visitUnary(e,t){this.visit(e.expr,t)}visitBinary(e,t){this.visit(e.left,t),this.visit(e.right,t)}visitChain(e,t){this.visitAll(e.expressions,t)}visitConditional(e,t){this.visit(e.condition,t),this.visit(e.trueExp,t),this.visit(e.falseExp,t)}visitPipe(e,t){this.visit(e.exp,t),this.visitAll(e.args,t)}visitImplicitReceiver(e,t){}visitThisReceiver(e,t){}visitInterpolation(e,t){this.visitAll(e.expressions,t)}visitKeyedRead(e,t){this.visit(e.receiver,t),this.visit(e.key,t)}visitKeyedWrite(e,t){this.visit(e.receiver,t),this.visit(e.key,t),this.visit(e.value,t)}visitLiteralArray(e,t){this.visitAll(e.expressions,t)}visitLiteralMap(e,t){this.visitAll(e.values,t)}visitLiteralPrimitive(e,t){}visitPrefixNot(e,t){this.visit(e.expression,t)}visitTypeofExpression(e,t){this.visit(e.expression,t)}visitVoidExpression(e,t){this.visit(e.expression,t)}visitNonNullAssert(e,t){this.visit(e.expression,t)}visitPropertyRead(e,t){this.visit(e.receiver,t)}visitPropertyWrite(e,t){this.visit(e.receiver,t),this.visit(e.value,t)}visitSafePropertyRead(e,t){this.visit(e.receiver,t)}visitSafeKeyedRead(e,t){this.visit(e.receiver,t),this.visit(e.key,t)}visitCall(e,t){this.visit(e.receiver,t),this.visitAll(e.args,t)}visitSafeCall(e,t){this.visit(e.receiver,t),this.visitAll(e.args,t)}visitTemplateLiteral(e,t){for(let n=0;n<e.elements.length;n++){this.visit(e.elements[n],t);let r=n<e.expressions.length?e.expressions[n]:null;r!==null&&this.visit(r,t)}}visitTemplateLiteralElement(e,t){}visitTaggedTemplateLiteral(e,t){this.visit(e.tag,t),this.visit(e.template,t)}visitParenthesizedExpression(e,t){this.visit(e.expression,t)}visitAll(e,t){for(let n of e)this.visit(n,t)}},lt;(function(e){e[e.DEFAULT=0]=`DEFAULT`,e[e.LITERAL_ATTR=1]=`LITERAL_ATTR`,e[e.ANIMATION=2]=`ANIMATION`,e[e.TWO_WAY=3]=`TWO_WAY`})(lt||={});var ut;(function(e){e[e.Regular=0]=`Regular`,e[e.Animation=1]=`Animation`,e[e.TwoWay=2]=`TwoWay`})(ut||={});var E;(function(e){e[e.Property=0]=`Property`,e[e.Attribute=1]=`Attribute`,e[e.Class=2]=`Class`,e[e.Style=3]=`Style`,e[e.Animation=4]=`Animation`,e[e.TwoWay=5]=`TwoWay`})(E||={});var dt;(function(e){e[e.RAW_TEXT=0]=`RAW_TEXT`,e[e.ESCAPABLE_RAW_TEXT=1]=`ESCAPABLE_RAW_TEXT`,e[e.PARSABLE_DATA=2]=`PARSABLE_DATA`})(dt||={});var ft=[/@/,/^\s*$/,/[<>]/,/^[{}]$/,/&(#|[a-z])/i,/^\/\//];function pt(e,t){if(t!=null&&!(Array.isArray(t)&&t.length==2))throw Error(`Expected '${e}' to be an array, [start, end].`);if(t!=null){let e=t[0],n=t[1];ft.forEach(t=>{if(t.test(e)||t.test(n))throw Error(`['${e}', '${n}'] contains unusable interpolation symbol.`)})}}var mt=class e{start;end;static fromArray(t){return t?(pt(`interpolation`,t),new e(t[0],t[1])):D}constructor(e,t){this.start=e,this.end=t}},D=new mt(`{{`,`}}`),ht=0,gt=9,_t=10,vt=11,yt=12,bt=13,xt=32,St=33,Ct=34,wt=35,Tt=36,Et=37,Dt=38,Ot=39,kt=40,O=41,At=42,jt=43,k=44,Mt=45,A=46,Nt=47,j=58,M=59,Pt=60,Ft=61,It=62,Lt=63,Rt=48,zt=57,Bt=65,Vt=69,Ht=90,Ut=91,Wt=92,N=93,Gt=94,Kt=95,qt=97,Jt=101,Yt=102,Xt=110,Zt=114,Qt=116,$t=117,en=118,tn=122,nn=123,rn=124,P=125,an=160,on=96;function sn(e){return e>=gt&&e<=xt||e==an}function F(e){return Rt<=e&&e<=zt}function cn(e){return e>=qt&&e<=tn||e>=Bt&&e<=Ht}function ln(e){return e===Ot||e===Ct||e===on}var un;(function(e){e[e.WARNING=0]=`WARNING`,e[e.ERROR=1]=`ERROR`})(un||={});var dn;(function(e){e[e.Inline=0]=`Inline`,e[e.SideEffect=1]=`SideEffect`,e[e.Omit=2]=`Omit`})(dn||={});var fn;(function(e){e[e.Global=0]=`Global`,e[e.Local=1]=`Local`})(fn||={});var pn;(function(e){e[e.Directive=0]=`Directive`,e[e.Pipe=1]=`Pipe`,e[e.NgModule=2]=`NgModule`})(pn||={});var mn=`(:(where|is)\\()?`,hn=`-shadowcsshost`,gn=`-shadowcsscontext`,_n=`(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))`;RegExp(hn+_n+`?([^,{]*)`,`gim`);var vn=gn+_n+`?([^{]*)`;RegExp(`${mn}(${vn})`,`gim`),new RegExp(vn,`im`);var yn=hn+`-no-combinator`;RegExp(`${yn}(?![^(]*\\))`,`g`);var bn=`%COMMENT%`;new RegExp(bn,`g`),RegExp(`(\\s*(?:${bn}\\s*)*)([^;\\{\\}]+?)(\\s*)((?:{%BLOCK%}?\\s*;?)|(?:\\s*;))`,`g`);var xn=`%COMMA_IN_PLACEHOLDER%`,Sn=`%SEMI_IN_PLACEHOLDER%`,Cn=`%COLON_IN_PLACEHOLDER%`;new RegExp(xn,`g`),new RegExp(Sn,`g`),new RegExp(Cn,`g`);var I;(function(e){e[e.ListEnd=0]=`ListEnd`,e[e.Statement=1]=`Statement`,e[e.Variable=2]=`Variable`,e[e.ElementStart=3]=`ElementStart`,e[e.Element=4]=`Element`,e[e.Template=5]=`Template`,e[e.ElementEnd=6]=`ElementEnd`,e[e.ContainerStart=7]=`ContainerStart`,e[e.Container=8]=`Container`,e[e.ContainerEnd=9]=`ContainerEnd`,e[e.DisableBindings=10]=`DisableBindings`,e[e.ConditionalCreate=11]=`ConditionalCreate`,e[e.ConditionalBranchCreate=12]=`ConditionalBranchCreate`,e[e.Conditional=13]=`Conditional`,e[e.EnableBindings=14]=`EnableBindings`,e[e.Text=15]=`Text`,e[e.Listener=16]=`Listener`,e[e.InterpolateText=17]=`InterpolateText`,e[e.Binding=18]=`Binding`,e[e.Property=19]=`Property`,e[e.StyleProp=20]=`StyleProp`,e[e.ClassProp=21]=`ClassProp`,e[e.StyleMap=22]=`StyleMap`,e[e.ClassMap=23]=`ClassMap`,e[e.Advance=24]=`Advance`,e[e.Pipe=25]=`Pipe`,e[e.Attribute=26]=`Attribute`,e[e.ExtractedAttribute=27]=`ExtractedAttribute`,e[e.Defer=28]=`Defer`,e[e.DeferOn=29]=`DeferOn`,e[e.DeferWhen=30]=`DeferWhen`,e[e.I18nMessage=31]=`I18nMessage`,e[e.DomProperty=32]=`DomProperty`,e[e.Namespace=33]=`Namespace`,e[e.ProjectionDef=34]=`ProjectionDef`,e[e.Projection=35]=`Projection`,e[e.RepeaterCreate=36]=`RepeaterCreate`,e[e.Repeater=37]=`Repeater`,e[e.TwoWayProperty=38]=`TwoWayProperty`,e[e.TwoWayListener=39]=`TwoWayListener`,e[e.DeclareLet=40]=`DeclareLet`,e[e.StoreLet=41]=`StoreLet`,e[e.I18nStart=42]=`I18nStart`,e[e.I18n=43]=`I18n`,e[e.I18nEnd=44]=`I18nEnd`,e[e.I18nExpression=45]=`I18nExpression`,e[e.I18nApply=46]=`I18nApply`,e[e.IcuStart=47]=`IcuStart`,e[e.IcuEnd=48]=`IcuEnd`,e[e.IcuPlaceholder=49]=`IcuPlaceholder`,e[e.I18nContext=50]=`I18nContext`,e[e.I18nAttributes=51]=`I18nAttributes`,e[e.SourceLocation=52]=`SourceLocation`})(I||={});var wn;(function(e){e[e.LexicalRead=0]=`LexicalRead`,e[e.Context=1]=`Context`,e[e.TrackContext=2]=`TrackContext`,e[e.ReadVariable=3]=`ReadVariable`,e[e.NextContext=4]=`NextContext`,e[e.Reference=5]=`Reference`,e[e.StoreLet=6]=`StoreLet`,e[e.ContextLetReference=7]=`ContextLetReference`,e[e.GetCurrentView=8]=`GetCurrentView`,e[e.RestoreView=9]=`RestoreView`,e[e.ResetView=10]=`ResetView`,e[e.PureFunctionExpr=11]=`PureFunctionExpr`,e[e.PureFunctionParameterExpr=12]=`PureFunctionParameterExpr`,e[e.PipeBinding=13]=`PipeBinding`,e[e.PipeBindingVariadic=14]=`PipeBindingVariadic`,e[e.SafePropertyRead=15]=`SafePropertyRead`,e[e.SafeKeyedRead=16]=`SafeKeyedRead`,e[e.SafeInvokeFunction=17]=`SafeInvokeFunction`,e[e.SafeTernaryExpr=18]=`SafeTernaryExpr`,e[e.EmptyExpr=19]=`EmptyExpr`,e[e.AssignTemporaryExpr=20]=`AssignTemporaryExpr`,e[e.ReadTemporaryExpr=21]=`ReadTemporaryExpr`,e[e.SlotLiteralExpr=22]=`SlotLiteralExpr`,e[e.ConditionalCase=23]=`ConditionalCase`,e[e.ConstCollected=24]=`ConstCollected`,e[e.TwoWayBindingSet=25]=`TwoWayBindingSet`})(wn||={});var Tn;(function(e){e[e.None=0]=`None`,e[e.AlwaysInline=1]=`AlwaysInline`})(Tn||={});var En;(function(e){e[e.Context=0]=`Context`,e[e.Identifier=1]=`Identifier`,e[e.SavedView=2]=`SavedView`,e[e.Alias=3]=`Alias`})(En||={});var Dn;(function(e){e[e.Normal=0]=`Normal`,e[e.TemplateDefinitionBuilder=1]=`TemplateDefinitionBuilder`})(Dn||={});var L;(function(e){e[e.Attribute=0]=`Attribute`,e[e.ClassName=1]=`ClassName`,e[e.StyleProperty=2]=`StyleProperty`,e[e.Property=3]=`Property`,e[e.Template=4]=`Template`,e[e.I18n=5]=`I18n`,e[e.Animation=6]=`Animation`,e[e.TwoWayProperty=7]=`TwoWayProperty`})(L||={});var On;(function(e){e[e.Creation=0]=`Creation`,e[e.Postproccessing=1]=`Postproccessing`})(On||={});var kn;(function(e){e[e.I18nText=0]=`I18nText`,e[e.I18nAttribute=1]=`I18nAttribute`})(kn||={});var An;(function(e){e[e.None=0]=`None`,e[e.ElementTag=1]=`ElementTag`,e[e.TemplateTag=2]=`TemplateTag`,e[e.OpenTag=4]=`OpenTag`,e[e.CloseTag=8]=`CloseTag`,e[e.ExpressionIndex=16]=`ExpressionIndex`})(An||={});var jn;(function(e){e[e.HTML=0]=`HTML`,e[e.SVG=1]=`SVG`,e[e.Math=2]=`Math`})(jn||={});var Mn;(function(e){e[e.Idle=0]=`Idle`,e[e.Immediate=1]=`Immediate`,e[e.Timer=2]=`Timer`,e[e.Hover=3]=`Hover`,e[e.Interaction=4]=`Interaction`,e[e.Viewport=5]=`Viewport`,e[e.Never=6]=`Never`})(Mn||={});var Nn;(function(e){e[e.RootI18n=0]=`RootI18n`,e[e.Icu=1]=`Icu`,e[e.Attr=2]=`Attr`})(Nn||={});var Pn;(function(e){e[e.NgTemplate=0]=`NgTemplate`,e[e.Structural=1]=`Structural`,e[e.Block=2]=`Block`})(Pn||={}),Symbol(`ConsumesSlot`),Symbol(`DependsOnSlotContext`),Symbol(`ConsumesVars`),Symbol(`UsesVarOffset`);var Fn=class{strings;expressions;i18nPlaceholders;constructor(e,t,n){if(this.strings=e,this.expressions=t,this.i18nPlaceholders=n,n.length!==0&&n.length!==t.length)throw Error(`Expected ${t.length} placeholders to match interpolation expression count, but got ${n.length}`)}},In;(function(e){e[e.None=0]=`None`,e[e.InChildOperation=1]=`InChildOperation`})(In||={}),new Set([I.Element,I.ElementStart,I.Container,I.ContainerStart,I.Template,I.RepeaterCreate,I.ConditionalCreate,I.ConditionalBranchCreate]);var Ln;(function(e){e[e.Tmpl=0]=`Tmpl`,e[e.Host=1]=`Host`,e[e.Both=2]=`Both`})(Ln||={}),new Map([[v.attribute,v.attribute],[v.classProp,v.classProp],[v.element,v.element],[v.elementContainer,v.elementContainer],[v.elementContainerEnd,v.elementContainerEnd],[v.elementContainerStart,v.elementContainerStart],[v.elementEnd,v.elementEnd],[v.elementStart,v.elementStart],[v.domProperty,v.domProperty],[v.i18nExp,v.i18nExp],[v.listener,v.listener],[v.listener,v.listener],[v.property,v.property],[v.styleProp,v.styleProp],[v.syntheticHostListener,v.syntheticHostListener],[v.syntheticHostProperty,v.syntheticHostProperty],[v.templateCreate,v.templateCreate],[v.twoWayProperty,v.twoWayProperty],[v.twoWayListener,v.twoWayListener],[v.declareLet,v.declareLet],[v.conditionalCreate,v.conditionalBranchCreate],[v.conditionalBranchCreate,v.conditionalBranchCreate]]),Object.freeze([]),new Map([[I.ElementEnd,[I.ElementStart,I.Element]],[I.ContainerEnd,[I.ContainerStart,I.Container]],[I.I18nEnd,[I.I18nStart,I.I18n]]]),new Set([I.Pipe]);var Rn={},zn=``;Rn.ngsp=zn;var Bn;(function(e){e.HEX=`hexadecimal`,e.DEC=`decimal`})(Bn||={});var Vn=` \f
2
+ \r \v ᠎ - \u2028\u2029   `;`${Vn}`,RegExp(`[${Vn}]{2,}`,`g`);var R;(function(e){e[e.Character=0]=`Character`,e[e.Identifier=1]=`Identifier`,e[e.PrivateIdentifier=2]=`PrivateIdentifier`,e[e.Keyword=3]=`Keyword`,e[e.String=4]=`String`,e[e.Operator=5]=`Operator`,e[e.Number=6]=`Number`,e[e.Error=7]=`Error`})(R||={});var z;(function(e){e[e.Plain=0]=`Plain`,e[e.TemplateLiteralPart=1]=`TemplateLiteralPart`,e[e.TemplateLiteralEnd=2]=`TemplateLiteralEnd`})(z||={});var Hn=[`var`,`let`,`as`,`null`,`undefined`,`true`,`false`,`if`,`else`,`this`,`typeof`,`void`,`in`],Un=class{tokenize(e){return new Qn(e).scan()}},B=class{index;end;type;numValue;strValue;constructor(e,t,n,r,i){this.index=e,this.end=t,this.type=n,this.numValue=r,this.strValue=i}isCharacter(e){return this.type===R.Character&&this.numValue===e}isNumber(){return this.type===R.Number}isString(){return this.type===R.String}isOperator(e){return this.type===R.Operator&&this.strValue===e}isIdentifier(){return this.type===R.Identifier}isPrivateIdentifier(){return this.type===R.PrivateIdentifier}isKeyword(){return this.type===R.Keyword}isKeywordLet(){return this.type===R.Keyword&&this.strValue===`let`}isKeywordAs(){return this.type===R.Keyword&&this.strValue===`as`}isKeywordNull(){return this.type===R.Keyword&&this.strValue===`null`}isKeywordUndefined(){return this.type===R.Keyword&&this.strValue===`undefined`}isKeywordTrue(){return this.type===R.Keyword&&this.strValue===`true`}isKeywordFalse(){return this.type===R.Keyword&&this.strValue===`false`}isKeywordThis(){return this.type===R.Keyword&&this.strValue===`this`}isKeywordTypeof(){return this.type===R.Keyword&&this.strValue===`typeof`}isKeywordVoid(){return this.type===R.Keyword&&this.strValue===`void`}isKeywordIn(){return this.type===R.Keyword&&this.strValue===`in`}isError(){return this.type===R.Error}toNumber(){return this.type===R.Number?this.numValue:-1}isTemplateLiteralPart(){return this.isString()&&this.kind===z.TemplateLiteralPart}isTemplateLiteralEnd(){return this.isString()&&this.kind===z.TemplateLiteralEnd}isTemplateLiteralInterpolationStart(){return this.isOperator("${")}isTemplateLiteralInterpolationEnd(){return this.isOperator(`}`)}toString(){switch(this.type){case R.Character:case R.Identifier:case R.Keyword:case R.Operator:case R.PrivateIdentifier:case R.String:case R.Error:return this.strValue;case R.Number:return this.numValue.toString();default:return null}}},Wn=class extends B{kind;constructor(e,t,n,r){super(e,t,R.String,0,n),this.kind=r}};function Gn(e,t,n){return new B(e,t,R.Character,n,String.fromCharCode(n))}function Kn(e,t,n){return new B(e,t,R.Identifier,0,n)}function qn(e,t,n){return new B(e,t,R.PrivateIdentifier,0,n)}function Jn(e,t,n){return new B(e,t,R.Keyword,0,n)}function V(e,t,n){return new B(e,t,R.Operator,0,n)}function Yn(e,t,n){return new B(e,t,R.Number,n,``)}function Xn(e,t,n){return new B(e,t,R.Error,0,n)}var Zn=new B(-1,-1,R.Character,0,``),Qn=class{input;tokens=[];length;peek=0;index=-1;braceStack=[];constructor(e){this.input=e,this.length=e.length,this.advance()}scan(){let e=this.scanToken();for(;e!==null;)this.tokens.push(e),e=this.scanToken();return this.tokens}advance(){this.peek=++this.index>=this.length?ht:this.input.charCodeAt(this.index)}scanToken(){let e=this.input,t=this.length,n=this.peek,r=this.index;for(;n<=xt;)if(++r>=t){n=ht;break}else n=e.charCodeAt(r);if(this.peek=n,this.index=r,r>=t)return null;if($n(n))return this.scanIdentifier();if(F(n))return this.scanNumber(r);let i=r;switch(n){case A:return this.advance(),F(this.peek)?this.scanNumber(i):Gn(i,this.index,A);case kt:case O:case Ut:case N:case k:case j:case M:return this.scanCharacter(i,n);case nn:return this.scanOpenBrace(i,n);case P:return this.scanCloseBrace(i,n);case Ot:case Ct:return this.scanString();case on:return this.advance(),this.scanTemplateLiteralPart(i);case wt:return this.scanPrivateIdentifier();case jt:case Mt:case Nt:case Et:case Gt:return this.scanOperator(i,String.fromCharCode(n));case At:return this.scanComplexOperator(i,`*`,At,`*`);case Lt:return this.scanQuestion(i);case Pt:case It:return this.scanComplexOperator(i,String.fromCharCode(n),Ft,`=`);case St:case Ft:return this.scanComplexOperator(i,String.fromCharCode(n),Ft,`=`,Ft,`=`);case Dt:return this.scanComplexOperator(i,`&`,Dt,`&`);case rn:return this.scanComplexOperator(i,`|`,rn,`|`);case an:for(;sn(this.peek);)this.advance();return this.scanToken()}return this.advance(),this.error(`Unexpected character [${String.fromCharCode(n)}]`,0)}scanCharacter(e,t){return this.advance(),Gn(e,this.index,t)}scanOperator(e,t){return this.advance(),V(e,this.index,t)}scanOpenBrace(e,t){return this.braceStack.push(`expression`),this.advance(),Gn(e,this.index,t)}scanCloseBrace(e,t){return this.advance(),this.braceStack.pop()===`interpolation`?(this.tokens.push(V(e,this.index,`}`)),this.scanTemplateLiteralPart(this.index)):Gn(e,this.index,t)}scanComplexOperator(e,t,n,r,i,a){this.advance();let o=t;return this.peek==n&&(this.advance(),o+=r),i!=null&&this.peek==i&&(this.advance(),o+=a),V(e,this.index,o)}scanIdentifier(){let e=this.index;for(this.advance();er(this.peek);)this.advance();let t=this.input.substring(e,this.index);return Hn.indexOf(t)>-1?Jn(e,this.index,t):Kn(e,this.index,t)}scanPrivateIdentifier(){let e=this.index;if(this.advance(),!$n(this.peek))return this.error(`Invalid character [#]`,-1);for(;er(this.peek);)this.advance();let t=this.input.substring(e,this.index);return qn(e,this.index,t)}scanNumber(e){let t=this.index===e,n=!1;for(this.advance();;){if(!F(this.peek))if(this.peek===Kt){if(!F(this.input.charCodeAt(this.index-1))||!F(this.input.charCodeAt(this.index+1)))return this.error(`Invalid numeric separator`,0);n=!0}else if(this.peek===A)t=!1;else if(tr(this.peek)){if(this.advance(),nr(this.peek)&&this.advance(),!F(this.peek))return this.error(`Invalid exponent`,-1);t=!1}else break;this.advance()}let r=this.input.substring(e,this.index);n&&(r=r.replace(/_/g,``));let i=t?ir(r):parseFloat(r);return Yn(e,this.index,i)}scanString(){let e=this.index,t=this.peek;this.advance();let n=``,r=this.index,i=this.input;for(;this.peek!=t;)if(this.peek==Wt){let e=this.scanStringBackslash(n,r);if(typeof e!=`string`)return e;n=e,r=this.index}else{if(this.peek==ht)return this.error(`Unterminated quote`,0);this.advance()}let a=i.substring(r,this.index);return this.advance(),new Wn(e,this.index,n+a,z.Plain)}scanQuestion(e){this.advance();let t=`?`;return(this.peek===Lt||this.peek===A)&&(t+=this.peek===A?`.`:`?`,this.advance()),V(e,this.index,t)}scanTemplateLiteralPart(e){let t=``,n=this.index;for(;this.peek!==on;)if(this.peek===Wt){let e=this.scanStringBackslash(t,n);if(typeof e!=`string`)return e;t=e,n=this.index}else if(this.peek===Tt){let r=this.index;if(this.advance(),this.peek===nn)return this.braceStack.push(`interpolation`),this.tokens.push(new Wn(e,r,t+this.input.substring(n,r),z.TemplateLiteralPart)),this.advance(),V(r,this.index,this.input.substring(r,this.index))}else{if(this.peek===ht)return this.error(`Unterminated template literal`,0);this.advance()}let r=this.input.substring(n,this.index);return this.advance(),new Wn(e,this.index,t+r,z.TemplateLiteralEnd)}error(e,t){let n=this.index+t;return Xn(n,this.index,`Lexer Error: ${e} at column ${n} in expression [${this.input}]`)}scanStringBackslash(e,t){e+=this.input.substring(t,this.index);let n;if(this.advance(),this.peek===$t){let e=this.input.substring(this.index+1,this.index+5);if(/^[0-9a-f]+$/i.test(e))n=parseInt(e,16);else return this.error(`Invalid unicode escape [\\u${e}]`,0);for(let e=0;e<5;e++)this.advance()}else n=rr(this.peek),this.advance();return e+=String.fromCharCode(n),e}};function $n(e){return qt<=e&&e<=tn||Bt<=e&&e<=Ht||e==Kt||e==Tt}function er(e){return cn(e)||F(e)||e==Kt||e==Tt}function tr(e){return e==Jt||e==Vt}function nr(e){return e==Mt||e==jt}function rr(e){switch(e){case Xt:return _t;case Yt:return yt;case Zt:return bt;case Qt:return gt;case en:return vt;default:return e}}function ir(e){let t=parseInt(e);if(isNaN(t))throw Error(`Invalid integer literal when parsing `+e);return t}var ar=class{strings;expressions;offsets;constructor(e,t,n){this.strings=e,this.expressions=t,this.offsets=n}},or=class{templateBindings;warnings;errors;constructor(e,t,n){this.templateBindings=e,this.warnings=t,this.errors=n}},sr=class{_lexer;errors=[];constructor(e){this._lexer=e}parseAction(e,t,n,r=D){this._checkNoInterpolation(e,t,r);let i=this._stripComments(e),a=this._lexer.tokenize(i),o=new U(e,t,n,a,1,this.errors,0).parseChain();return new T(o,e,t,n,this.errors)}parseBinding(e,t,n,r=D){let i=this._parseBindingAst(e,t,n,r);return new T(i,e,t,n,this.errors)}checkSimpleExpression(e){let t=new cr;return e.visit(t),t.errors}parseSimpleBinding(e,t,n,r=D){let i=this._parseBindingAst(e,t,n,r),a=this.checkSimpleExpression(i);return a.length>0&&this._reportError(`Host binding expression cannot contain ${a.join(` `)}`,e,t),new T(i,e,t,n,this.errors)}_reportError(e,t,n,r){this.errors.push(new Ne(e,t,n,r))}_parseBindingAst(e,t,n,r){this._checkNoInterpolation(e,t,r);let i=this._stripComments(e),a=this._lexer.tokenize(i);return new U(e,t,n,a,0,this.errors,0).parseChain()}parseTemplateBindings(e,t,n,r,i){let a=this._lexer.tokenize(t);return new U(t,n,i,a,0,this.errors,0).parseTemplateBindings({source:e,span:new w(r,r+e.length)})}parseInterpolation(e,t,n,r,i=D){let{strings:a,expressions:o,offsets:s}=this.splitInterpolation(e,t,r,i);if(o.length===0)return null;let c=[];for(let r=0;r<o.length;++r){let i=o[r].text,a=this._stripComments(i),l=this._lexer.tokenize(a),u=new U(e,t,n,l,0,this.errors,s[r]).parseChain();c.push(u)}return this.createInterpolationAst(a.map(e=>e.text),c,e,t,n)}parseInterpolationExpression(e,t,n){let r=this._stripComments(e),i=this._lexer.tokenize(r),a=new U(e,t,n,i,0,this.errors,0).parseChain(),o=[``,``];return this.createInterpolationAst(o,[a],e,t,n)}createInterpolationAst(e,t,n,r,i){let a=new y(0,n.length),o=new Je(a,a.toAbsolute(i),e,t);return new T(o,n,r,i,this.errors)}splitInterpolation(e,t,n,r=D){let i=[],a=[],o=[],s=n?lr(n):null,c=0,l=!1,u=!1,{start:d,end:f}=r;for(;c<e.length;)if(l){let n=c,r=n+d.length,i=this._getInterpolationEndIndex(e,f,r);if(i===-1){l=!1,u=!0;break}let p=i+f.length,ee=e.substring(r,i);ee.trim().length===0&&this._reportError(`Blank expressions are not allowed in interpolated strings`,e,`at column ${c} in`,t),a.push({text:ee,start:n,end:p});let te=(s?.get(n)??n)+d.length;o.push(te),c=p,l=!1}else{let t=c;c=e.indexOf(d,c),c===-1&&(c=e.length);let n=e.substring(t,c);i.push({text:n,start:t,end:c}),l=!0}if(!l)if(u){let t=i[i.length-1];t.text+=e.substring(c),t.end=e.length}else i.push({text:e.substring(c),start:c,end:e.length});return new ar(i,a,o)}wrapLiteralPrimitive(e,t,n){let r=new y(0,e==null?0:e.length);return new T(new S(r,r.toAbsolute(n),e),e,t,n,this.errors)}_stripComments(e){let t=this._commentStart(e);return t==null?e:e.substring(0,t)}_commentStart(e){let t=null;for(let n=0;n<e.length-1;n++){let r=e.charCodeAt(n),i=e.charCodeAt(n+1);if(r===Nt&&i==Nt&&t==null)return n;t===r?t=null:t==null&&ln(r)&&(t=r)}return null}_checkNoInterpolation(e,t,{start:n,end:r}){let i=-1,a=-1;for(let t of this._forEachUnquotedChar(e,0))if(i===-1)e.startsWith(n)&&(i=t);else if(a=this._getInterpolationEndIndex(e,r,t),a>-1)break;i>-1&&a>-1&&this._reportError(`Got interpolation (${n}${r}) where expression was expected`,e,`at column ${i} in`,t)}_getInterpolationEndIndex(e,t,n){for(let r of this._forEachUnquotedChar(e,n)){if(e.startsWith(t,r))return r;if(e.startsWith(`//`,r))return e.indexOf(t,r)}return-1}*_forEachUnquotedChar(e,t){let n=null,r=0;for(let i=t;i<e.length;i++){let t=e[i];ln(e.charCodeAt(i))&&(n===null||n===t)&&r%2==0?n=n===null?t:null:n===null&&(yield i),r=t===`\\`?r+1:0}}},H;(function(e){e[e.None=0]=`None`,e[e.Writable=1]=`Writable`})(H||={});var U=class{input;location;absoluteOffset;tokens;parseFlags;errors;offset;rparensExpected=0;rbracketsExpected=0;rbracesExpected=0;context=H.None;sourceSpanCache=new Map;index=0;constructor(e,t,n,r,i,a,o){this.input=e,this.location=t,this.absoluteOffset=n,this.tokens=r,this.parseFlags=i,this.errors=a,this.offset=o}peek(e){let t=this.index+e;return t<this.tokens.length?this.tokens[t]:Zn}get next(){return this.peek(0)}get atEOF(){return this.index>=this.tokens.length}get inputIndex(){return this.atEOF?this.currentEndIndex:this.next.index+this.offset}get currentEndIndex(){return this.index>0?this.peek(-1).end+this.offset:this.tokens.length===0?this.input.length+this.offset:this.next.index+this.offset}get currentAbsoluteOffset(){return this.absoluteOffset+this.inputIndex}span(e,t){let n=this.currentEndIndex;if(t!==void 0&&t>this.currentEndIndex&&(n=t),e>n){let t=n;n=e,e=t}return new y(e,n)}sourceSpan(e,t){let n=`${e}@${this.inputIndex}:${t}`;return this.sourceSpanCache.has(n)||this.sourceSpanCache.set(n,this.span(e,t).toAbsolute(this.absoluteOffset)),this.sourceSpanCache.get(n)}advance(){this.index++}withContext(e,t){this.context|=e;let n=t();return this.context^=e,n}consumeOptionalCharacter(e){return this.next.isCharacter(e)?(this.advance(),!0):!1}peekKeywordLet(){return this.next.isKeywordLet()}peekKeywordAs(){return this.next.isKeywordAs()}expectCharacter(e){this.consumeOptionalCharacter(e)||this.error(`Missing expected ${String.fromCharCode(e)}`)}consumeOptionalOperator(e){return this.next.isOperator(e)?(this.advance(),!0):!1}expectOperator(e){this.consumeOptionalOperator(e)||this.error(`Missing expected operator ${e}`)}prettyPrintToken(e){return e===Zn?`end of input`:`token ${e}`}expectIdentifierOrKeyword(){let e=this.next;return!e.isIdentifier()&&!e.isKeyword()?(e.isPrivateIdentifier()?this._reportErrorForPrivateIdentifier(e,`expected identifier or keyword`):this.error(`Unexpected ${this.prettyPrintToken(e)}, expected identifier or keyword`),null):(this.advance(),e.toString())}expectIdentifierOrKeywordOrString(){let e=this.next;return!e.isIdentifier()&&!e.isKeyword()&&!e.isString()?(e.isPrivateIdentifier()?this._reportErrorForPrivateIdentifier(e,`expected identifier, keyword or string`):this.error(`Unexpected ${this.prettyPrintToken(e)}, expected identifier, keyword, or string`),``):(this.advance(),e.toString())}parseChain(){let e=[],t=this.inputIndex;for(;this.index<this.tokens.length;){let t=this.parsePipe();if(e.push(t),this.consumeOptionalCharacter(M))for(this.parseFlags&1||this.error(`Binding expression cannot contain chained expression`);this.consumeOptionalCharacter(M););else if(this.index<this.tokens.length){let e=this.index;if(this.error(`Unexpected token '${this.next}'`),this.index===e)break}}if(e.length===0){let e=this.offset,t=this.offset+this.input.length;return new x(this.span(e,t),this.sourceSpan(e,t))}return e.length==1?e[0]:new Le(this.span(t),this.sourceSpan(t),e)}parsePipe(){let e=this.inputIndex,t=this.parseExpression();if(this.consumeOptionalOperator(`|`)){this.parseFlags&1&&this.error(`Cannot have a pipe in an action expression`);do{let n=this.inputIndex,r=this.expectIdentifierOrKeyword(),i,a;r===null?(r=``,a=this.next.index===-1?this.input.length+this.offset:this.next.index,i=new y(a,a).toAbsolute(this.absoluteOffset)):i=this.sourceSpan(n);let o=[];for(;this.consumeOptionalCharacter(j);)o.push(this.parseExpression());t=new Ge(this.span(e),this.sourceSpan(e,a),t,r,o,i)}while(this.consumeOptionalOperator(`|`))}return t}parseExpression(){return this.parseConditional()}parseConditional(){let e=this.inputIndex,t=this.parseLogicalOr();if(this.consumeOptionalOperator(`?`)){let n=this.parsePipe(),r;if(this.consumeOptionalCharacter(j))r=this.parsePipe();else{let t=this.inputIndex,n=this.input.substring(e,t);this.error(`Conditional expression ${n} requires all 3 expressions`),r=new x(this.span(e),this.sourceSpan(e))}return new Re(this.span(e),this.sourceSpan(e),t,n,r)}else return t}parseLogicalOr(){let e=this.inputIndex,t=this.parseLogicalAnd();for(;this.consumeOptionalOperator(`||`);){let n=this.parseLogicalAnd();t=new C(this.span(e),this.sourceSpan(e),`||`,t,n)}return t}parseLogicalAnd(){let e=this.inputIndex,t=this.parseNullishCoalescing();for(;this.consumeOptionalOperator(`&&`);){let n=this.parseNullishCoalescing();t=new C(this.span(e),this.sourceSpan(e),`&&`,t,n)}return t}parseNullishCoalescing(){let e=this.inputIndex,t=this.parseEquality();for(;this.consumeOptionalOperator(`??`);){let n=this.parseEquality();t=new C(this.span(e),this.sourceSpan(e),`??`,t,n)}return t}parseEquality(){let e=this.inputIndex,t=this.parseRelational();for(;this.next.type==R.Operator;){let n=this.next.strValue;switch(n){case`==`:case`===`:case`!=`:case`!==`:this.advance();let r=this.parseRelational();t=new C(this.span(e),this.sourceSpan(e),n,t,r);continue}break}return t}parseRelational(){let e=this.inputIndex,t=this.parseAdditive();for(;this.next.type==R.Operator||this.next.isKeywordIn;){let n=this.next.strValue;switch(n){case`<`:case`>`:case`<=`:case`>=`:case`in`:this.advance();let r=this.parseAdditive();t=new C(this.span(e),this.sourceSpan(e),n,t,r);continue}break}return t}parseAdditive(){let e=this.inputIndex,t=this.parseMultiplicative();for(;this.next.type==R.Operator;){let n=this.next.strValue;switch(n){case`+`:case`-`:this.advance();let r=this.parseMultiplicative();t=new C(this.span(e),this.sourceSpan(e),n,t,r);continue}break}return t}parseMultiplicative(){let e=this.inputIndex,t=this.parseExponentiation();for(;this.next.type==R.Operator;){let n=this.next.strValue;switch(n){case`*`:case`%`:case`/`:this.advance();let r=this.parseExponentiation();t=new C(this.span(e),this.sourceSpan(e),n,t,r);continue}break}return t}parseExponentiation(){let e=this.inputIndex,t=this.parsePrefix();for(;this.next.type==R.Operator&&this.next.strValue===`**`;){(t instanceof Ye||t instanceof Xe||t instanceof Ze||t instanceof Qe)&&this.error(`Unary operator used immediately before exponentiation expression. Parenthesis must be used to disambiguate operator precedence`),this.advance();let n=this.parseExponentiation();t=new C(this.span(e),this.sourceSpan(e),`**`,t,n)}return t}parsePrefix(){if(this.next.type==R.Operator){let e=this.inputIndex,t=this.next.strValue,n;switch(t){case`+`:return this.advance(),n=this.parsePrefix(),Ye.createPlus(this.span(e),this.sourceSpan(e),n);case`-`:return this.advance(),n=this.parsePrefix(),Ye.createMinus(this.span(e),this.sourceSpan(e),n);case`!`:return this.advance(),n=this.parsePrefix(),new Xe(this.span(e),this.sourceSpan(e),n)}}else if(this.next.isKeywordTypeof()){this.advance();let e=this.inputIndex,t=this.parsePrefix();return new Ze(this.span(e),this.sourceSpan(e),t)}else if(this.next.isKeywordVoid()){this.advance();let e=this.inputIndex,t=this.parsePrefix();return new Qe(this.span(e),this.sourceSpan(e),t)}return this.parseCallChain()}parseCallChain(){let e=this.inputIndex,t=this.parsePrimary();for(;;)if(this.consumeOptionalCharacter(A))t=this.parseAccessMember(t,e,!1);else if(this.consumeOptionalOperator(`?.`))t=this.consumeOptionalCharacter(kt)?this.parseCall(t,e,!0):this.consumeOptionalCharacter(Ut)?this.parseKeyedReadOrWrite(t,e,!0):this.parseAccessMember(t,e,!0);else if(this.consumeOptionalCharacter(Ut))t=this.parseKeyedReadOrWrite(t,e,!1);else if(this.consumeOptionalCharacter(kt))t=this.parseCall(t,e,!1);else if(this.consumeOptionalOperator(`!`))t=new $e(this.span(e),this.sourceSpan(e),t);else if(this.next.isTemplateLiteralEnd())t=this.parseNoInterpolationTaggedTemplateLiteral(t,e);else if(this.next.isTemplateLiteralPart())t=this.parseTaggedTemplateLiteral(t,e);else return t}parsePrimary(){let e=this.inputIndex;if(this.consumeOptionalCharacter(kt)){this.rparensExpected++;let t=this.parsePipe();return this.consumeOptionalCharacter(O)||(this.error(`Missing closing parentheses`),this.consumeOptionalCharacter(O)),this.rparensExpected--,new at(this.span(e),this.sourceSpan(e),t)}else{if(this.next.isKeywordNull())return this.advance(),new S(this.span(e),this.sourceSpan(e),null);if(this.next.isKeywordUndefined())return this.advance(),new S(this.span(e),this.sourceSpan(e),void 0);if(this.next.isKeywordTrue())return this.advance(),new S(this.span(e),this.sourceSpan(e),!0);if(this.next.isKeywordFalse())return this.advance(),new S(this.span(e),this.sourceSpan(e),!1);if(this.next.isKeywordIn())return this.advance(),new S(this.span(e),this.sourceSpan(e),`in`);if(this.next.isKeywordThis())return this.advance(),new Ie(this.span(e),this.sourceSpan(e));if(this.consumeOptionalCharacter(Ut)){this.rbracketsExpected++;let t=this.parseExpressionList(N);return this.rbracketsExpected--,this.expectCharacter(N),new Ke(this.span(e),this.sourceSpan(e),t)}else{if(this.next.isCharacter(nn))return this.parseLiteralMap();if(this.next.isIdentifier())return this.parseAccessMember(new Fe(this.span(e),this.sourceSpan(e)),e,!1);if(this.next.isNumber()){let t=this.next.toNumber();return this.advance(),new S(this.span(e),this.sourceSpan(e),t)}else{if(this.next.isTemplateLiteralEnd())return this.parseNoInterpolationTemplateLiteral();if(this.next.isTemplateLiteralPart())return this.parseTemplateLiteral();if(this.next.isString()&&this.next.kind===z.Plain){let t=this.next.toString();return this.advance(),new S(this.span(e),this.sourceSpan(e),t)}else return this.next.isPrivateIdentifier()?(this._reportErrorForPrivateIdentifier(this.next,null),new x(this.span(e),this.sourceSpan(e))):this.index>=this.tokens.length?(this.error(`Unexpected end of expression: ${this.input}`),new x(this.span(e),this.sourceSpan(e))):(this.error(`Unexpected token ${this.next}`),new x(this.span(e),this.sourceSpan(e)))}}}}parseExpressionList(e){let t=[];do if(!this.next.isCharacter(e))t.push(this.parsePipe());else break;while(this.consumeOptionalCharacter(k));return t}parseLiteralMap(){let e=[],t=[],n=this.inputIndex;if(this.expectCharacter(nn),!this.consumeOptionalCharacter(P)){this.rbracesExpected++;do{let n=this.inputIndex,r=this.next.isString(),i=this.expectIdentifierOrKeywordOrString(),a={key:i,quoted:r};if(e.push(a),r)this.expectCharacter(j),t.push(this.parsePipe());else if(this.consumeOptionalCharacter(j))t.push(this.parsePipe());else{a.isShorthandInitialized=!0;let e=this.span(n),r=this.sourceSpan(n);t.push(new ze(e,r,r,new Fe(e,r),i))}}while(this.consumeOptionalCharacter(k)&&!this.next.isCharacter(P));this.rbracesExpected--,this.expectCharacter(P)}return new qe(this.span(n),this.sourceSpan(n),e,t)}parseAccessMember(e,t,n){let r=this.inputIndex,i=this.withContext(H.Writable,()=>{let t=this.expectIdentifierOrKeyword()??``;return t.length===0&&this.error(`Expected identifier for property access`,e.span.end),t}),a=this.sourceSpan(r),o;if(n)this.consumeOptionalOperator(`=`)?(this.error(`The '?.' operator cannot be used in the assignment`),o=new x(this.span(t),this.sourceSpan(t))):o=new Ve(this.span(t),this.sourceSpan(t),a,e,i);else if(this.consumeOptionalOperator(`=`)){if(!(this.parseFlags&1))return this.error(`Bindings cannot contain assignments`),new x(this.span(t),this.sourceSpan(t));let n=this.parseConditional();o=new Be(this.span(t),this.sourceSpan(t),a,e,i,n)}else o=new ze(this.span(t),this.sourceSpan(t),a,e,i);return o}parseCall(e,t,n){let r=this.inputIndex;this.rparensExpected++;let i=this.parseCallArguments(),a=this.span(r,this.inputIndex).toAbsolute(this.absoluteOffset);this.expectCharacter(O),this.rparensExpected--;let o=this.span(t),s=this.sourceSpan(t);return n?new tt(o,s,e,i,a):new et(o,s,e,i,a)}parseCallArguments(){if(this.next.isCharacter(O))return[];let e=[];do e.push(this.parsePipe());while(this.consumeOptionalCharacter(k));return e}expectTemplateBindingKey(){let e=``,t=!1,n=this.currentAbsoluteOffset;do e+=this.expectIdentifierOrKeywordOrString(),t=this.consumeOptionalOperator(`-`),t&&(e+=`-`);while(t);return{source:e,span:new w(n,n+e.length)}}parseTemplateBindings(e){let t=[];for(t.push(...this.parseDirectiveKeywordBindings(e));this.index<this.tokens.length;){let n=this.parseLetBinding();if(n)t.push(n);else{let n=this.expectTemplateBindingKey(),r=this.parseAsBinding(n);r?t.push(r):(n.source=e.source+n.source.charAt(0).toUpperCase()+n.source.substring(1),t.push(...this.parseDirectiveKeywordBindings(n)))}this.consumeStatementTerminator()}return new or(t,[],this.errors)}parseKeyedReadOrWrite(e,t,n){return this.withContext(H.Writable,()=>{this.rbracketsExpected++;let r=this.parsePipe();if(r instanceof x&&this.error(`Key access cannot be empty`),this.rbracketsExpected--,this.expectCharacter(N),this.consumeOptionalOperator(`=`))if(n)this.error(`The '?.' operator cannot be used in the assignment`);else{let n=this.parseConditional();return new We(this.span(t),this.sourceSpan(t),e,r,n)}else return n?new Ue(this.span(t),this.sourceSpan(t),e,r):new He(this.span(t),this.sourceSpan(t),e,r);return new x(this.span(t),this.sourceSpan(t))})}parseDirectiveKeywordBindings(e){let t=[];this.consumeOptionalCharacter(j);let n=this.getDirectiveBoundTarget(),r=this.currentAbsoluteOffset,i=this.parseAsBinding(e);i||(this.consumeStatementTerminator(),r=this.currentAbsoluteOffset);let a=new w(e.span.start,r);return t.push(new st(a,e,n)),i&&t.push(i),t}getDirectiveBoundTarget(){if(this.next===Zn||this.peekKeywordAs()||this.peekKeywordLet())return null;let e=this.parsePipe(),{start:t,end:n}=e.span,r=this.input.substring(t,n);return new T(e,r,this.location,this.absoluteOffset+t,this.errors)}parseAsBinding(e){if(!this.peekKeywordAs())return null;this.advance();let t=this.expectTemplateBindingKey();this.consumeStatementTerminator();let n=new w(e.span.start,this.currentAbsoluteOffset);return new ot(n,t,e)}parseLetBinding(){if(!this.peekKeywordLet())return null;let e=this.currentAbsoluteOffset;this.advance();let t=this.expectTemplateBindingKey(),n=null;this.consumeOptionalOperator(`=`)&&(n=this.expectTemplateBindingKey()),this.consumeStatementTerminator();let r=new w(e,this.currentAbsoluteOffset);return new ot(r,t,n)}parseNoInterpolationTaggedTemplateLiteral(e,t){let n=this.parseNoInterpolationTemplateLiteral();return new nt(this.span(t),this.sourceSpan(t),e,n)}parseNoInterpolationTemplateLiteral(){let e=this.next.strValue,t=this.inputIndex;this.advance();let n=this.span(t),r=this.sourceSpan(t);return new rt(n,r,[new it(n,r,e)],[])}parseTaggedTemplateLiteral(e,t){let n=this.parseTemplateLiteral();return new nt(this.span(t),this.sourceSpan(t),e,n)}parseTemplateLiteral(){let e=[],t=[],n=this.inputIndex;for(;this.next!==Zn;){let n=this.next;if(n.isTemplateLiteralPart()||n.isTemplateLiteralEnd()){let t=this.inputIndex;if(this.advance(),e.push(new it(this.span(t),this.sourceSpan(t),n.strValue)),n.isTemplateLiteralEnd())break}else if(n.isTemplateLiteralInterpolationStart()){this.advance();let e=this.parsePipe();e instanceof x?this.error(`Template literal interpolation cannot be empty`):t.push(e)}else this.advance()}return new rt(this.span(n),this.sourceSpan(n),e,t)}consumeStatementTerminator(){this.consumeOptionalCharacter(M)||this.consumeOptionalCharacter(k)}error(e,t=null){this.errors.push(new Ne(e,this.input,this.locationText(t),this.location)),this.skip()}locationText(e=null){return e??=this.index,e<this.tokens.length?`at column ${this.tokens[e].index+1} in`:`at the end of the expression`}_reportErrorForPrivateIdentifier(e,t){let n=`Private identifiers are not supported. Unexpected private identifier: ${e}`;t!==null&&(n+=`, ${t}`),this.error(n)}skip(){let e=this.next;for(;this.index<this.tokens.length&&!e.isCharacter(M)&&!e.isOperator(`|`)&&(this.rparensExpected<=0||!e.isCharacter(O))&&(this.rbracesExpected<=0||!e.isCharacter(P))&&(this.rbracketsExpected<=0||!e.isCharacter(N))&&(!(this.context&H.Writable)||!e.isOperator(`=`));)this.next.isError()&&this.errors.push(new Ne(this.next.toString(),this.input,this.locationText(),this.location)),this.advance(),e=this.next}},cr=class extends ct{errors=[];visitPipe(){this.errors.push(`pipes`)}};function lr(e){let t=new Map,n=0,r=0,i=0;for(;i<e.length;){let a=e[i];if(a.type===9){let[e,t]=a.parts;n+=t.length,r+=e.length}else{let e=a.parts.reduce((e,t)=>e+t.length,0);r+=e,n+=e}t.set(r,n),i++}return t}var ur=new Map(Object.entries({class:`className`,for:`htmlFor`,formaction:`formAction`,innerHtml:`innerHTML`,readonly:`readOnly`,tabindex:`tabIndex`}));Array.from(ur).reduce((e,[t,n])=>(e.set(t,n),e),new Map),new sr(new Un);function W(e){return t=>t.kind===e}function dr(e,t){return n=>n.kind===e&&t===n.expression instanceof Fn}W(I.StyleMap),W(I.ClassMap),W(I.StyleProp),W(I.ClassProp),dr(I.Attribute,!0),dr(I.Property,!0),dr(I.Attribute,!1),dr(I.DomProperty,!0),dr(I.DomProperty,!1),W(I.Attribute),W(I.StyleMap),W(I.ClassMap),W(I.StyleProp),W(I.ClassProp),new Set([I.Listener,I.TwoWayListener,I.StyleMap,I.ClassMap,I.StyleProp,I.ClassProp,I.Property,I.TwoWayProperty,I.DomProperty,I.Attribute]),v.interpolate,v.interpolate1,v.interpolate2,v.interpolate3,v.interpolate4,v.interpolate5,v.interpolate6,v.interpolate7,v.interpolate8,v.interpolateV,new Map([[`window`,v.resolveWindow],[`document`,v.resolveDocument],[`body`,v.resolveBody]]),new Map([[p.HTML,v.sanitizeHtml],[p.RESOURCE_URL,v.sanitizeResourceUrl],[p.SCRIPT,v.sanitizeScript],[p.STYLE,v.sanitizeStyle],[p.URL,v.sanitizeUrl]]),new Map([[p.HTML,v.trustConstantHtml],[p.RESOURCE_URL,v.trustConstantResourceUrl]]);var fr;(function(e){e[e.None=0]=`None`,e[e.ViewContextRead=1]=`ViewContextRead`,e[e.ViewContextWrite=2]=`ViewContextWrite`,e[e.SideEffectful=4]=`SideEffectful`})(fr||={}),new Map([[E.Property,L.Property],[E.TwoWay,L.TwoWayProperty],[E.Attribute,L.Attribute],[E.Class,L.ClassName],[E.Style,L.StyleProperty],[E.Animation,L.Animation]]),Symbol(`queryAdvancePlaceholder`);var pr;(function(e){e[e.NG_CONTENT=0]=`NG_CONTENT`,e[e.STYLE=1]=`STYLE`,e[e.STYLESHEET=2]=`STYLESHEET`,e[e.SCRIPT=3]=`SCRIPT`,e[e.OTHER=4]=`OTHER`})(pr||={});var mr;(function(e){e.IDLE=`idle`,e.TIMER=`timer`,e.INTERACTION=`interaction`,e.IMMEDIATE=`immediate`,e.HOVER=`hover`,e.VIEWPORT=`viewport`,e.NEVER=`never`})(mr||={});var hr=`%COMP%`;`${hr}`,`${hr}`;var gr;(function(e){e[e.Extract=0]=`Extract`,e[e.Merge=1]=`Merge`})(gr||={}),new je(`20.0.5`);function _r({start:e,end:t},n){let r=e,i=t;for(;i!==r&&/\s/.test(n[i-1]);)i--;for(;r!==i&&/\s/.test(n[r]);)r++;return{start:r,end:i}}function vr({start:e,end:t},n){let r=e,i=t;for(;i!==n.length&&/\s/.test(n[i]);)i++;for(;r!==0&&/\s/.test(n[r-1]);)r--;return{start:r,end:i}}function yr(e,t){return t[e.start-1]===`(`&&t[e.end]===`)`?{start:e.start-1,end:e.end+1}:e}function br(e,t,n){let r=0,i={start:e.start,end:e.end};for(;;){let e=vr(i,t),n=yr(e,t);if(e.start===n.start&&e.end===n.end)break;i.start=n.start,i.end=n.end,r++}return{hasParens:(n?r-1:r)!==0,outerSpan:_r(n?{start:i.start+1,end:i.end-1}:i,t),innerSpan:_r(e,t)}}function xr(e){return typeof e==`string`?t=>t===e:t=>e.test(t)}function Sr(e,t,n){let r=xr(t);for(let t=n;t>=0;t--){let n=e[t];if(r(n))return t}throw Error(`Cannot find front char ${t} from index ${n} in ${JSON.stringify(e)}`)}function Cr(e,t,n){let r=xr(t);for(let t=n;t<e.length;t++){let n=e[t];if(r(n))return t}throw Error(`Cannot find character ${t} from index ${n} in ${JSON.stringify(e)}`)}function wr(e){return e.slice(0,1).toLowerCase()+e.slice(1)}function Tr(e){let{start:t,end:n}=e;return{start:t,end:n,range:[t,n]}}var Er=e=>sr.prototype._commentStart(e);function Dr(e,t){let n=t?Er(e):null;if(n===null)return{text:e,comments:[]};let r={type:`CommentLine`,value:e.slice(n+2),...Tr({start:n,end:e.length})};return{text:e.slice(0,n),comments:[r]}}function Or(e,t=!0){return n=>{let r=new Un,i=new sr(r),{text:a,comments:o}=Dr(n,t),s=e(a,i);if(s.errors.length!==0){let[{message:e}]=s.errors;throw SyntaxError(e.replace(/^Parser Error: | at column \d+ in [^]*$/g,``))}return{result:s,comments:o,text:a}}}var kr=Or((e,t)=>t.parseBinding(e,``,0));Or((e,t)=>t.parseSimpleBinding(e,``,0));var Ar=Or((e,t)=>t.parseAction(e,``,0)),jr=Or((e,t)=>t.parseInterpolationExpression(e,``,0)),Mr=Or((e,t)=>t.parseTemplateBindings(``,e,``,0,0),!1),Nr=(e,t,n)=>{if(!(e&&t==null))return Array.isArray(t)||typeof t==`string`?t[n<0?t.length+n:n]:t.at(n)},Pr=Nr,Fr=class{text;constructor(e){this.text=e}getCharacterIndex(e,t){return Cr(this.text,e,t)}getCharacterLastIndex(e,t){return Sr(this.text,e,t)}transformSpan(e,{stripSpaces:t=!1,hasParentParens:n=!1}={}){if(!t)return Tr(e);let{outerSpan:r,innerSpan:i,hasParens:a}=br(e,this.text,n),o=Tr(i);return a&&(o.extra={parenthesized:!0,parenStart:r.start,parenEnd:r.end}),o}createNode(e,{stripSpaces:t=!0,hasParentParens:n=!1}={}){let{type:r,start:i,end:a}=e,o={...e,...this.transformSpan({start:i,end:a},{stripSpaces:t,hasParentParens:n})};switch(r){case`NumericLiteral`:case`StringLiteral`:{let e=this.text.slice(o.start,o.end),{value:t}=o;o.extra={...o.extra,raw:e,rawValue:t};break}case`ObjectProperty`:{let{shorthand:e}=o;e&&(o.extra={...o.extra,shorthand:e});break}}return o}},Ir=Fr;function Lr(e){var t;return!!((t=e.extra)!=null&&t.parenthesized)}function G(e){return Lr(e)?e.extra.parenStart:e.start}function K(e){return Lr(e)?e.extra.parenEnd:e.end}function Rr(e){return(e.type===`OptionalCallExpression`||e.type===`OptionalMemberExpression`)&&!Lr(e)}function zr(e,t){let{start:n,end:r}=e.sourceSpan;return n>=r||/^\s+$/.test(t.slice(n,r))}var Br,Vr,q,J,Hr,Y,Ur,Wr=class extends Ir{constructor(e,t){super(t),a(this,q),a(this,Br),a(this,Vr),o(this,Br,e),o(this,Vr,t)}get node(){return s(this,q,Y).call(this,i(this,Br))}transformNode(e){return s(this,q,Ur).call(this,e)}};Br=new WeakMap,Vr=new WeakMap,q=new WeakSet,J=function(e,{stripSpaces:t=!0,hasParentParens:n=!1}={}){return this.createNode(e,{stripSpaces:t,hasParentParens:n})},Hr=function(e,t,{computed:n,optional:r,end:a=K(t),hasParentParens:o=!1}){if(zr(e,i(this,Vr))||e.sourceSpan.start===t.start)return t;let c=s(this,q,Y).call(this,e),l=Rr(c);return s(this,q,J).call(this,{type:r||l?`OptionalMemberExpression`:`MemberExpression`,object:c,property:t,computed:n,...r?{optional:!0}:l?{optional:!1}:void 0,start:G(c),end:a},{hasParentParens:o})},Y=function(e,t){return s(this,q,Ur).call(this,e,t)},Ur=function(e,t){let{isInParentParens:n}={isInParentParens:!1,...t};if(e instanceof Je){let{expressions:t}=e;if(t.length!==1)throw Error(`Unexpected 'Interpolation'`);return s(this,q,Y).call(this,t[0])}if(e instanceof Ye)return s(this,q,J).call(this,{type:`UnaryExpression`,prefix:!0,argument:s(this,q,Y).call(this,e.expr),operator:e.operator,...e.sourceSpan},{hasParentParens:n});if(e instanceof C){let{left:t,operation:r,right:i}=e,a=s(this,q,Y).call(this,t),o=s(this,q,Y).call(this,i),c=G(a),l=K(o),u={left:a,right:o,start:c,end:l};return r===`&&`||r===`||`||r===`??`?s(this,q,J).call(this,{...u,type:`LogicalExpression`,operator:r},{hasParentParens:n}):s(this,q,J).call(this,{...u,type:`BinaryExpression`,operator:r},{hasParentParens:n})}if(e instanceof Ge){let{exp:t,name:r,args:i}=e,a=s(this,q,Y).call(this,t),o=G(a),c=K(a),l=this.getCharacterIndex(/\S/,this.getCharacterIndex(`|`,c)+1),u=s(this,q,J).call(this,{type:`Identifier`,name:r,start:l,end:l+r.length}),d=i.map(e=>s(this,q,Y).call(this,e));return s(this,q,J).call(this,{type:`NGPipeExpression`,left:a,right:u,arguments:d,start:o,end:K(d.length===0?u:Pr(!1,d,-1))},{hasParentParens:n})}if(e instanceof Le)return s(this,q,J).call(this,{type:`NGChainedExpression`,expressions:e.expressions.map(e=>s(this,q,Y).call(this,e)),...e.sourceSpan},{hasParentParens:n});if(e instanceof Re){let{condition:t,trueExp:r,falseExp:i}=e,a=s(this,q,Y).call(this,t),o=s(this,q,Y).call(this,r),c=s(this,q,Y).call(this,i);return s(this,q,J).call(this,{type:`ConditionalExpression`,test:a,consequent:o,alternate:c,start:G(a),end:K(c)},{hasParentParens:n})}if(e instanceof x)return s(this,q,J).call(this,{type:`NGEmptyExpression`,...e.sourceSpan},{hasParentParens:n});if(e instanceof Fe)return s(this,q,J).call(this,{type:`ThisExpression`,...e.sourceSpan},{hasParentParens:n});if(e instanceof He||e instanceof Ue)return s(this,q,Hr).call(this,e.receiver,s(this,q,Y).call(this,e.key),{computed:!0,optional:e instanceof Ue,end:e.sourceSpan.end,hasParentParens:n});if(e instanceof Ke)return s(this,q,J).call(this,{type:`ArrayExpression`,elements:e.expressions.map(e=>s(this,q,Y).call(this,e)),...e.sourceSpan},{hasParentParens:n});if(e instanceof qe){let{keys:t,values:r}=e,i=r.map(e=>s(this,q,Y).call(this,e)),a=t.map(({key:t,quoted:n},r)=>{let a=i[r],o=G(a),c=K(a),l=this.getCharacterIndex(/\S/,r===0?e.sourceSpan.start+1:this.getCharacterIndex(`,`,K(i[r-1]))+1),u=o===l?c:this.getCharacterLastIndex(/\S/,this.getCharacterLastIndex(`:`,o-1)-1)+1,d={start:l,end:u},f=n?s(this,q,J).call(this,{type:`StringLiteral`,value:t,...d}):s(this,q,J).call(this,{type:`Identifier`,name:t,...d}),p=f.end<f.start||l===o;return s(this,q,J).call(this,{type:`ObjectProperty`,key:f,value:a,shorthand:p,computed:!1,start:G(f),end:c})});return s(this,q,J).call(this,{type:`ObjectExpression`,properties:a,...e.sourceSpan},{hasParentParens:n})}if(e instanceof S){let{value:t}=e;switch(typeof t){case`boolean`:return s(this,q,J).call(this,{type:`BooleanLiteral`,value:t,...e.sourceSpan},{hasParentParens:n});case`number`:return s(this,q,J).call(this,{type:`NumericLiteral`,value:t,...e.sourceSpan},{hasParentParens:n});case`object`:return s(this,q,J).call(this,{type:`NullLiteral`,...e.sourceSpan},{hasParentParens:n});case`string`:return s(this,q,J).call(this,{type:`StringLiteral`,value:t,...e.sourceSpan},{hasParentParens:n});case`undefined`:return s(this,q,J).call(this,{type:`Identifier`,name:`undefined`,...e.sourceSpan},{hasParentParens:n});default:throw Error(`Unexpected LiteralPrimitive value type ${typeof t}`)}}if(e instanceof et||e instanceof tt){let t=e instanceof tt,{receiver:r,args:i}=e,a=i.length===1?[s(this,q,Y).call(this,i[0],{isInParentParens:!0})]:i.map(e=>s(this,q,Y).call(this,e)),o=s(this,q,Y).call(this,r),c=Rr(o),l=t||c?`OptionalCallExpression`:`CallExpression`;return s(this,q,J).call(this,{type:l,callee:o,arguments:a,...l===`OptionalCallExpression`?{optional:t}:void 0,start:G(o),end:e.sourceSpan.end},{hasParentParens:n})}if(e instanceof $e){let t=s(this,q,Y).call(this,e.expression);return s(this,q,J).call(this,{type:`TSNonNullExpression`,expression:t,start:G(t),end:e.sourceSpan.end},{hasParentParens:n})}if(e instanceof Xe||e instanceof Ze||e instanceof Qe){let t=e instanceof Xe?`!`:e instanceof Ze?`typeof`:e instanceof Qe?`void`:void 0;if(!t)throw Error(`Unexpected expression.`);let{start:r}=e.sourceSpan;if(t===`typeof`||t===`void`){let e=this.text.lastIndexOf(t,r);if(e===-1)throw Error(`Cannot find operator '${t}' from index ${r} in ${JSON.stringify(this.text)}`);r=e}let i=s(this,q,Y).call(this,e.expression);return s(this,q,J).call(this,{type:`UnaryExpression`,prefix:!0,operator:t,argument:i,start:r,end:K(i)},{hasParentParens:n})}if(e instanceof ze||e instanceof Ve){let{receiver:t,name:r}=e,a=this.getCharacterLastIndex(/\S/,e.sourceSpan.end-1)+1,o=s(this,q,J).call(this,{type:`Identifier`,name:r,start:a-r.length,end:a},zr(t,i(this,Vr))?{hasParentParens:n}:{});return s(this,q,Hr).call(this,t,o,{computed:!1,optional:e instanceof Ve,hasParentParens:n})}if(e instanceof We){let t=s(this,q,Y).call(this,e.key),r=s(this,q,Y).call(this,e.value),i=s(this,q,Hr).call(this,e.receiver,t,{computed:!0,optional:!1,end:this.getCharacterIndex(`]`,K(t))+1});return s(this,q,J).call(this,{type:`AssignmentExpression`,left:i,operator:`=`,right:r,start:G(i),end:K(r)},{hasParentParens:n})}if(e instanceof Be){let{receiver:t,name:r,value:i}=e,a=s(this,q,Y).call(this,i),o=this.getCharacterLastIndex(/\S/,this.getCharacterLastIndex(`=`,G(a)-1)-1)+1,c=s(this,q,J).call(this,{type:`Identifier`,name:r,start:o-r.length,end:o}),l=s(this,q,Hr).call(this,t,c,{computed:!1,optional:!1});return s(this,q,J).call(this,{type:`AssignmentExpression`,left:l,operator:`=`,right:a,start:G(l),end:K(a)},{hasParentParens:n})}if(e instanceof nt)return s(this,q,J).call(this,{type:`TaggedTemplateExpression`,tag:s(this,q,Y).call(this,e.tag),quasi:s(this,q,Y).call(this,e.template),...e.sourceSpan});if(e instanceof rt){let{elements:t,expressions:n}=e;return s(this,q,J).call(this,{type:`TemplateLiteral`,quasis:t.map(t=>s(this,q,Y).call(this,t,{parent:e})),expressions:n.map(e=>s(this,q,Y).call(this,e)),...e.sourceSpan})}if(e instanceof it){let{elements:n}=t.parent,r=n.indexOf(e),i=r===0,a=r===n.length-1,o=e.sourceSpan.end-(a?1:0),c=e.sourceSpan.start+(i?1:0),l=this.text.slice(c,o);return s(this,q,J).call(this,{type:`TemplateElement`,value:{cooked:e.text,raw:l},start:c,end:o,tail:a},{stripSpaces:!1})}if(e instanceof at)return s(this,q,Ur).call(this,e.expression);throw Error(`Unexpected node type '${e.constructor.name}'`)};function Gr(e,t){return new Wr(e,t).node}function Kr(e){return e instanceof st}function qr(e){return e instanceof ot}var X,Z,Q,Jr,$,Yr,Xr,Zr,Qr,$r,ei,ti,ni=class extends Wr{constructor(e,t){super(void 0,t),a(this,Q),a(this,X),a(this,Z),o(this,X,e),o(this,Z,t);for(let t of e)s(this,Q,Qr).call(this,t)}get expressions(){return s(this,Q,ei).call(this)}};X=new WeakMap,Z=new WeakMap,Q=new WeakSet,Jr=function(){return i(this,X)[0].key},$=function(e,{stripSpaces:t=!0}={}){return this.createNode(e,{stripSpaces:t})},Yr=function(e){return this.transformNode(e)},Xr=function(e){return wr(e.slice(i(this,Q,Jr).source.length))},Zr=function(e){let t=i(this,Z);if(t[e.start]!==`"`&&t[e.start]!==`'`)return;let n=t[e.start],r=!1;for(let i=e.start+1;i<t.length;i++)switch(t[i]){case n:if(!r){e.end=i+1;return}default:r=!1;break;case`\\`:r=!r;break}},Qr=function(e){s(this,Q,Zr).call(this,e.key.span),qr(e)&&e.value&&s(this,Q,Zr).call(this,e.value.span)},$r=function(e){if(!e.value||e.value.source)return e.value;let t=this.getCharacterIndex(/\S/,e.sourceSpan.start);return{source:`$implicit`,span:{start:t,end:t}}},ei=function(){let e=i(this,X),[t]=e,n=i(this,Z).slice(t.sourceSpan.start,t.sourceSpan.end).trim().length===0?e.slice(1):e,r=[],a=null;for(let[e,t]of n.entries()){if(a&&Kr(a)&&qr(t)&&t.value&&t.value.source===a.key.source){let e=s(this,Q,$).call(this,{type:`NGMicrosyntaxKey`,name:t.key.source,...t.key.span}),n=(e,t)=>({...e,...this.transformSpan({start:e.start,end:t})}),i=t=>({...n(t,e.end),alias:e}),a=r.pop();if(a.type===`NGMicrosyntaxExpression`)r.push(i(a));else if(a.type===`NGMicrosyntaxKeyedExpression`){let e=i(a.expression);r.push(n({...a,expression:e},e.end))}else throw Error(`Unexpected type ${a.type}`)}else r.push(s(this,Q,ti).call(this,t,e));a=t}return s(this,Q,$).call(this,{type:`NGMicrosyntax`,body:r,...r.length===0?e[0].sourceSpan:{start:r[0].start,end:Pr(!1,r,-1).end}})},ti=function(e,t){if(Kr(e)){let{key:n,value:r}=e;return r?t===0?s(this,Q,$).call(this,{type:`NGMicrosyntaxExpression`,expression:s(this,Q,Yr).call(this,r.ast),alias:null,...r.sourceSpan}):s(this,Q,$).call(this,{type:`NGMicrosyntaxKeyedExpression`,key:s(this,Q,$).call(this,{type:`NGMicrosyntaxKey`,name:s(this,Q,Xr).call(this,n.source),...n.span}),expression:s(this,Q,$).call(this,{type:`NGMicrosyntaxExpression`,expression:s(this,Q,Yr).call(this,r.ast),alias:null,...r.sourceSpan}),start:n.span.start,end:r.sourceSpan.end}):s(this,Q,$).call(this,{type:`NGMicrosyntaxKey`,name:s(this,Q,Xr).call(this,n.source),...n.span})}else{let{key:t,sourceSpan:n}=e;if(/^let\s$/.test(i(this,Z).slice(n.start,n.start+4))){let{value:r}=e;return s(this,Q,$).call(this,{type:`NGMicrosyntaxLet`,key:s(this,Q,$).call(this,{type:`NGMicrosyntaxKey`,name:t.source,...t.span}),value:r?s(this,Q,$).call(this,{type:`NGMicrosyntaxKey`,name:r.source,...r.span}):null,start:n.start,end:r?r.span.end:t.span.end})}else{let n=s(this,Q,$r).call(this,e);return s(this,Q,$).call(this,{type:`NGMicrosyntaxAs`,key:s(this,Q,$).call(this,{type:`NGMicrosyntaxKey`,name:n.source,...n.span}),alias:s(this,Q,$).call(this,{type:`NGMicrosyntaxKey`,name:t.source,...t.span}),start:n.span.start,end:t.span.end})}}};function ri(e,t){return new ni(e,t).expressions}function ii({result:{ast:e},text:t,comments:n}){return Object.assign(Gr(e,t),{comments:n})}function ai({result:{templateBindings:e},text:t}){return ri(e,t)}var oi=e=>ii(kr(e)),si=e=>ii(jr(e)),ci=e=>ii(Ar(e)),li=e=>ai(Mr(e));function ui(e){var t,n,r;let i=(t=e.range)?.[0]??e.start,a=(r=(n=e.declaration)?.decorators??e.decorators)?.[0];return a?Math.min(ui(a),i):i}function di(e){var t;return(t=e.range)?.[1]??e.end}function fi(e){return{astFormat:`estree`,parse(t){let n=e(t);return{type:`NGRoot`,node:e===ci&&n.type!==`NGChainedExpression`?{...n,type:`NGChainedExpression`,expressions:[n]}:n}},locStart:ui,locEnd:di}}var pi=fi(ci),mi=fi(oi),hi=fi(si),gi=fi(li),_i=c;export{_i as default,l as parsers};