UNPKG

@umijs/bundler-webpack

Version:
1 lines 283 kB
(function(){var e={686:function(e,t,r){const i=r(477);function parse(e){let t=e.url;if(t==null)return;let r=e._parsedUrl;if(r&&r.raw===t)return r;let n=t,a="",s;if(t.length>1){let e=t.indexOf("?",1);if(e!==-1){a=t.substring(e);n=t.substring(0,e);if(a.length>1){s=i.parse(a.substring(1))}}}return e._parsedUrl={pathname:n,search:a,query:s,raw:t}}t.parse=parse},544:function(e,t){(function(e,r){true?r(t):0})(this,(function(e){"use strict";function simple(e,t,i,n,a){if(!i){i=r}(function c(e,r,n){var a=n||e.type,s=t[a];i[a](e,r,c);if(s){s(e,r)}})(e,n,a)}function ancestor(e,t,i,n,a){var s=[];if(!i){i=r}(function c(e,r,n){var a=n||e.type,o=t[a];var l=e!==s[s.length-1];if(l){s.push(e)}i[a](e,r,c);if(o){o(e,r||s,s)}if(l){s.pop()}})(e,n,a)}function recursive(e,t,r,i,n){var a=r?make(r,i||undefined):i;(function c(e,t,r){a[r||e.type](e,t,c)})(e,t,n)}function makeTest(e){if(typeof e==="string"){return function(t){return t===e}}else if(!e){return function(){return true}}else{return e}}var t=function Found(e,t){this.node=e;this.state=t};function full(e,t,i,n,a){if(!i){i=r}var s;(function c(e,r,n){var a=n||e.type;i[a](e,r,c);if(s!==e){t(e,r,a);s=e}})(e,n,a)}function fullAncestor(e,t,i,n){if(!i){i=r}var a=[],s;(function c(e,r,n){var o=n||e.type;var l=e!==a[a.length-1];if(l){a.push(e)}i[o](e,r,c);if(s!==e){t(e,r||a,a,o);s=e}if(l){a.pop()}})(e,n)}function findNodeAt(e,i,n,a,s,o){if(!s){s=r}a=makeTest(a);try{(function c(e,r,o){var l=o||e.type;if((i==null||e.start<=i)&&(n==null||e.end>=n)){s[l](e,r,c)}if((i==null||e.start===i)&&(n==null||e.end===n)&&a(l,e)){throw new t(e,r)}})(e,o)}catch(e){if(e instanceof t){return e}throw e}}function findNodeAround(e,i,n,a,s){n=makeTest(n);if(!a){a=r}try{(function c(e,r,s){var o=s||e.type;if(e.start>i||e.end<i){return}a[o](e,r,c);if(n(o,e)){throw new t(e,r)}})(e,s)}catch(e){if(e instanceof t){return e}throw e}}function findNodeAfter(e,i,n,a,s){n=makeTest(n);if(!a){a=r}try{(function c(e,r,s){if(e.end<i){return}var o=s||e.type;if(e.start>=i&&n(o,e)){throw new t(e,r)}a[o](e,r,c)})(e,s)}catch(e){if(e instanceof t){return e}throw e}}function findNodeBefore(e,i,n,a,s){n=makeTest(n);if(!a){a=r}var o;(function c(e,r,s){if(e.start>i){return}var l=s||e.type;if(e.end<=i&&(!o||o.node.end<e.end)&&n(l,e)){o=new t(e,r)}a[l](e,r,c)})(e,s);return o}function make(e,t){var i=Object.create(t||r);for(var n in e){i[n]=e[n]}return i}function skipThrough(e,t,r){r(e,t)}function ignore(e,t,r){}var r={};r.Program=r.BlockStatement=r.StaticBlock=function(e,t,r){for(var i=0,n=e.body;i<n.length;i+=1){var a=n[i];r(a,t,"Statement")}};r.Statement=skipThrough;r.EmptyStatement=ignore;r.ExpressionStatement=r.ParenthesizedExpression=r.ChainExpression=function(e,t,r){return r(e.expression,t,"Expression")};r.IfStatement=function(e,t,r){r(e.test,t,"Expression");r(e.consequent,t,"Statement");if(e.alternate){r(e.alternate,t,"Statement")}};r.LabeledStatement=function(e,t,r){return r(e.body,t,"Statement")};r.BreakStatement=r.ContinueStatement=ignore;r.WithStatement=function(e,t,r){r(e.object,t,"Expression");r(e.body,t,"Statement")};r.SwitchStatement=function(e,t,r){r(e.discriminant,t,"Expression");for(var i=0,n=e.cases;i<n.length;i+=1){var a=n[i];if(a.test){r(a.test,t,"Expression")}for(var s=0,o=a.consequent;s<o.length;s+=1){var l=o[s];r(l,t,"Statement")}}};r.SwitchCase=function(e,t,r){if(e.test){r(e.test,t,"Expression")}for(var i=0,n=e.consequent;i<n.length;i+=1){var a=n[i];r(a,t,"Statement")}};r.ReturnStatement=r.YieldExpression=r.AwaitExpression=function(e,t,r){if(e.argument){r(e.argument,t,"Expression")}};r.ThrowStatement=r.SpreadElement=function(e,t,r){return r(e.argument,t,"Expression")};r.TryStatement=function(e,t,r){r(e.block,t,"Statement");if(e.handler){r(e.handler,t)}if(e.finalizer){r(e.finalizer,t,"Statement")}};r.CatchClause=function(e,t,r){if(e.param){r(e.param,t,"Pattern")}r(e.body,t,"Statement")};r.WhileStatement=r.DoWhileStatement=function(e,t,r){r(e.test,t,"Expression");r(e.body,t,"Statement")};r.ForStatement=function(e,t,r){if(e.init){r(e.init,t,"ForInit")}if(e.test){r(e.test,t,"Expression")}if(e.update){r(e.update,t,"Expression")}r(e.body,t,"Statement")};r.ForInStatement=r.ForOfStatement=function(e,t,r){r(e.left,t,"ForInit");r(e.right,t,"Expression");r(e.body,t,"Statement")};r.ForInit=function(e,t,r){if(e.type==="VariableDeclaration"){r(e,t)}else{r(e,t,"Expression")}};r.DebuggerStatement=ignore;r.FunctionDeclaration=function(e,t,r){return r(e,t,"Function")};r.VariableDeclaration=function(e,t,r){for(var i=0,n=e.declarations;i<n.length;i+=1){var a=n[i];r(a,t)}};r.VariableDeclarator=function(e,t,r){r(e.id,t,"Pattern");if(e.init){r(e.init,t,"Expression")}};r.Function=function(e,t,r){if(e.id){r(e.id,t,"Pattern")}for(var i=0,n=e.params;i<n.length;i+=1){var a=n[i];r(a,t,"Pattern")}r(e.body,t,e.expression?"Expression":"Statement")};r.Pattern=function(e,t,r){if(e.type==="Identifier"){r(e,t,"VariablePattern")}else if(e.type==="MemberExpression"){r(e,t,"MemberPattern")}else{r(e,t)}};r.VariablePattern=ignore;r.MemberPattern=skipThrough;r.RestElement=function(e,t,r){return r(e.argument,t,"Pattern")};r.ArrayPattern=function(e,t,r){for(var i=0,n=e.elements;i<n.length;i+=1){var a=n[i];if(a){r(a,t,"Pattern")}}};r.ObjectPattern=function(e,t,r){for(var i=0,n=e.properties;i<n.length;i+=1){var a=n[i];if(a.type==="Property"){if(a.computed){r(a.key,t,"Expression")}r(a.value,t,"Pattern")}else if(a.type==="RestElement"){r(a.argument,t,"Pattern")}}};r.Expression=skipThrough;r.ThisExpression=r.Super=r.MetaProperty=ignore;r.ArrayExpression=function(e,t,r){for(var i=0,n=e.elements;i<n.length;i+=1){var a=n[i];if(a){r(a,t,"Expression")}}};r.ObjectExpression=function(e,t,r){for(var i=0,n=e.properties;i<n.length;i+=1){var a=n[i];r(a,t)}};r.FunctionExpression=r.ArrowFunctionExpression=r.FunctionDeclaration;r.SequenceExpression=function(e,t,r){for(var i=0,n=e.expressions;i<n.length;i+=1){var a=n[i];r(a,t,"Expression")}};r.TemplateLiteral=function(e,t,r){for(var i=0,n=e.quasis;i<n.length;i+=1){var a=n[i];r(a,t)}for(var s=0,o=e.expressions;s<o.length;s+=1){var l=o[s];r(l,t,"Expression")}};r.TemplateElement=ignore;r.UnaryExpression=r.UpdateExpression=function(e,t,r){r(e.argument,t,"Expression")};r.BinaryExpression=r.LogicalExpression=function(e,t,r){r(e.left,t,"Expression");r(e.right,t,"Expression")};r.AssignmentExpression=r.AssignmentPattern=function(e,t,r){r(e.left,t,"Pattern");r(e.right,t,"Expression")};r.ConditionalExpression=function(e,t,r){r(e.test,t,"Expression");r(e.consequent,t,"Expression");r(e.alternate,t,"Expression")};r.NewExpression=r.CallExpression=function(e,t,r){r(e.callee,t,"Expression");if(e.arguments){for(var i=0,n=e.arguments;i<n.length;i+=1){var a=n[i];r(a,t,"Expression")}}};r.MemberExpression=function(e,t,r){r(e.object,t,"Expression");if(e.computed){r(e.property,t,"Expression")}};r.ExportNamedDeclaration=r.ExportDefaultDeclaration=function(e,t,r){if(e.declaration){r(e.declaration,t,e.type==="ExportNamedDeclaration"||e.declaration.id?"Statement":"Expression")}if(e.source){r(e.source,t,"Expression")}};r.ExportAllDeclaration=function(e,t,r){if(e.exported){r(e.exported,t)}r(e.source,t,"Expression")};r.ImportDeclaration=function(e,t,r){for(var i=0,n=e.specifiers;i<n.length;i+=1){var a=n[i];r(a,t)}r(e.source,t,"Expression")};r.ImportExpression=function(e,t,r){r(e.source,t,"Expression")};r.ImportSpecifier=r.ImportDefaultSpecifier=r.ImportNamespaceSpecifier=r.Identifier=r.PrivateIdentifier=r.Literal=ignore;r.TaggedTemplateExpression=function(e,t,r){r(e.tag,t,"Expression");r(e.quasi,t,"Expression")};r.ClassDeclaration=r.ClassExpression=function(e,t,r){return r(e,t,"Class")};r.Class=function(e,t,r){if(e.id){r(e.id,t,"Pattern")}if(e.superClass){r(e.superClass,t,"Expression")}r(e.body,t)};r.ClassBody=function(e,t,r){for(var i=0,n=e.body;i<n.length;i+=1){var a=n[i];r(a,t)}};r.MethodDefinition=r.PropertyDefinition=r.Property=function(e,t,r){if(e.computed){r(e.key,t,"Expression")}if(e.value){r(e.value,t,"Expression")}};e.ancestor=ancestor;e.base=r;e.findNodeAfter=findNodeAfter;e.findNodeAround=findNodeAround;e.findNodeAt=findNodeAt;e.findNodeBefore=findNodeBefore;e.full=full;e.fullAncestor=fullAncestor;e.make=make;e.recursive=recursive;e.simple=simple;Object.defineProperty(e,"__esModule",{value:true})}))},473:function(e,t){(function(e,r){true?r(t):0})(this,(function(e){"use strict";var t=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,154,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,161,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,19306,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,262,6,10,9,357,0,62,13,1495,6,110,6,6,9,4759,9,787719,239];var r=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,68,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,85,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,190,0,80,921,103,110,18,195,2637,96,16,1070,4050,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8936,3,2,6,2,1,2,290,46,2,18,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,482,44,11,6,17,0,322,29,19,43,1269,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,4152,8,221,3,5761,15,7472,3104,541,1507,4938];var i="‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࢘-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-ໍ໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_";var n="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟊꟐꟑꟓꟕ-ꟙꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ";var a={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"};var s="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";var o={5:s,"5module":s+" export import",6:s+" const class extends export import super"};var l=/^in(stanceof)?$/;var u=new RegExp("["+n+"]");var h=new RegExp("["+n+i+"]");function isInAstralSet(e,t){var r=65536;for(var i=0;i<t.length;i+=2){r+=t[i];if(r>e){return false}r+=t[i+1];if(r>=e){return true}}}function isIdentifierStart(e,t){if(e<65){return e===36}if(e<91){return true}if(e<97){return e===95}if(e<123){return true}if(e<=65535){return e>=170&&u.test(String.fromCharCode(e))}if(t===false){return false}return isInAstralSet(e,r)}function isIdentifierChar(e,i){if(e<48){return e===36}if(e<58){return true}if(e<65){return false}if(e<91){return true}if(e<97){return e===95}if(e<123){return true}if(e<=65535){return e>=170&&h.test(String.fromCharCode(e))}if(i===false){return false}return isInAstralSet(e,r)||isInAstralSet(e,t)}var p=function TokenType(e,t){if(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 binop(e,t){return new p(e,{beforeExpr:true,binop:t})}var f={beforeExpr:true},d={startsExpr:true};var g={};function kw(e,t){if(t===void 0)t={};t.keyword=e;return g[e]=new p(e,t)}var m={num:new p("num",d),regexp:new p("regexp",d),string:new p("string",d),name:new p("name",d),privateId:new p("privateId",d),eof:new p("eof"),bracketL:new p("[",{beforeExpr:true,startsExpr:true}),bracketR:new p("]"),braceL:new p("{",{beforeExpr:true,startsExpr:true}),braceR:new p("}"),parenL:new p("(",{beforeExpr:true,startsExpr:true}),parenR:new p(")"),comma:new p(",",f),semi:new p(";",f),colon:new p(":",f),dot:new p("."),question:new p("?",f),questionDot:new p("?."),arrow:new p("=>",f),template:new p("template"),invalidTemplate:new p("invalidTemplate"),ellipsis:new p("...",f),backQuote:new p("`",d),dollarBraceL:new p("${",{beforeExpr:true,startsExpr:true}),eq:new p("=",{beforeExpr:true,isAssign:true}),assign:new p("_=",{beforeExpr:true,isAssign:true}),incDec:new p("++/--",{prefix:true,postfix:true,startsExpr:true}),prefix:new p("!/~",{beforeExpr:true,prefix:true,startsExpr:true}),logicalOR:binop("||",1),logicalAND:binop("&&",2),bitwiseOR:binop("|",3),bitwiseXOR:binop("^",4),bitwiseAND:binop("&",5),equality:binop("==/!=/===/!==",6),relational:binop("</>/<=/>=",7),bitShift:binop("<</>>/>>>",8),plusMin:new p("+/-",{beforeExpr:true,binop:9,prefix:true,startsExpr:true}),modulo:binop("%",10),star:binop("*",10),slash:binop("/",10),starstar:new p("**",{beforeExpr:true}),coalesce:binop("??",1),_break:kw("break"),_case:kw("case",f),_catch:kw("catch"),_continue:kw("continue"),_debugger:kw("debugger"),_default:kw("default",f),_do:kw("do",{isLoop:true,beforeExpr:true}),_else:kw("else",f),_finally:kw("finally"),_for:kw("for",{isLoop:true}),_function:kw("function",d),_if:kw("if"),_return:kw("return",f),_switch:kw("switch"),_throw:kw("throw",f),_try:kw("try"),_var:kw("var"),_const:kw("const"),_while:kw("while",{isLoop:true}),_with:kw("with"),_new:kw("new",{beforeExpr:true,startsExpr:true}),_this:kw("this",d),_super:kw("super",d),_class:kw("class",d),_extends:kw("extends",f),_export:kw("export"),_import:kw("import",d),_null:kw("null",d),_true:kw("true",d),_false:kw("false",d),_in:kw("in",{beforeExpr:true,binop:7}),_instanceof:kw("instanceof",{beforeExpr:true,binop:7}),_typeof:kw("typeof",{beforeExpr:true,prefix:true,startsExpr:true}),_void:kw("void",{beforeExpr:true,prefix:true,startsExpr:true}),_delete:kw("delete",{beforeExpr:true,prefix:true,startsExpr:true})};var v=/\r\n?|\n|\u2028|\u2029/;var y=new RegExp(v.source,"g");function isNewLine(e){return e===10||e===13||e===8232||e===8233}function nextLineBreak(e,t,r){if(r===void 0)r=e.length;for(var i=t;i<r;i++){var n=e.charCodeAt(i);if(isNewLine(n)){return i<r-1&&n===13&&e.charCodeAt(i+1)===10?i+2:i+1}}return-1}var b=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/;var x=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g;var _=Object.prototype;var w=_.hasOwnProperty;var k=_.toString;var S=Object.hasOwn||function(e,t){return w.call(e,t)};var C=Array.isArray||function(e){return k.call(e)==="[object Array]"};function wordsRegexp(e){return new RegExp("^(?:"+e.replace(/ /g,"|")+")$")}function codePointToString(e){if(e<=65535){return String.fromCharCode(e)}e-=65536;return String.fromCharCode((e>>10)+55296,(e&1023)+56320)}var I=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/;var A=function Position(e,t){this.line=e;this.column=t};A.prototype.offset=function offset(e){return new A(this.line,this.column+e)};var E=function SourceLocation(e,t,r){this.start=t;this.end=r;if(e.sourceFile!==null){this.source=e.sourceFile}};function getLineInfo(e,t){for(var r=1,i=0;;){var n=nextLineBreak(e,i,t);if(n<0){return new A(r,t-i)}++r;i=n}}var P={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:false,allowImportExportEverywhere:false,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:false,locations:false,onToken:null,onComment:null,ranges:false,program:null,sourceFile:null,directSourceFile:null,preserveParens:false};var L=false;function getOptions(e){var t={};for(var r in P){t[r]=e&&S(e,r)?e[r]:P[r]}if(t.ecmaVersion==="latest"){t.ecmaVersion=1e8}else if(t.ecmaVersion==null){if(!L&&typeof console==="object"&&console.warn){L=true;console.warn("Since Acorn 8.0.0, options.ecmaVersion is required.\nDefaulting to 2020, but this will stop working in the future.")}t.ecmaVersion=11}else if(t.ecmaVersion>=2015){t.ecmaVersion-=2009}if(t.allowReserved==null){t.allowReserved=t.ecmaVersion<5}if(e.allowHashBang==null){t.allowHashBang=t.ecmaVersion>=14}if(C(t.onToken)){var i=t.onToken;t.onToken=function(e){return i.push(e)}}if(C(t.onComment)){t.onComment=pushComment(t,t.onComment)}return t}function pushComment(e,t){return function(r,i,n,a,s,o){var l={type:r?"Block":"Line",value:i,start:n,end:a};if(e.locations){l.loc=new E(this,s,o)}if(e.ranges){l.range=[n,a]}t.push(l)}}var O=1,R=2,T=4,M=8,N=16,j=32,z=64,D=128,F=256,V=O|R|F;function functionFlags(e,t){return R|(e?T:0)|(t?M:0)}var B=0,W=1,q=2,U=3,H=4,G=5;var K=function Parser(e,t,r){this.options=e=getOptions(e);this.sourceFile=e.sourceFile;this.keywords=wordsRegexp(o[e.ecmaVersion>=6?6:e.sourceType==="module"?"5module":5]);var i="";if(e.allowReserved!==true){i=a[e.ecmaVersion>=6?6:e.ecmaVersion===5?5:3];if(e.sourceType==="module"){i+=" await"}}this.reservedWords=wordsRegexp(i);var n=(i?i+" ":"")+a.strict;this.reservedWordsStrict=wordsRegexp(n);this.reservedWordsStrictBind=wordsRegexp(n+" "+a.strictBind);this.input=String(t);this.containsEsc=false;if(r){this.pos=r;this.lineStart=this.input.lastIndexOf("\n",r-1)+1;this.curLine=this.input.slice(0,this.lineStart).split(v).length}else{this.pos=this.lineStart=0;this.curLine=1}this.type=m.eof;this.value=null;this.start=this.end=this.pos;this.startLoc=this.endLoc=this.curPosition();this.lastTokEndLoc=this.lastTokStartLoc=null;this.lastTokStart=this.lastTokEnd=this.pos;this.context=this.initialContext();this.exprAllowed=true;this.inModule=e.sourceType==="module";this.strict=this.inModule||this.strictDirective(this.pos);this.potentialArrowAt=-1;this.potentialArrowInForAwait=false;this.yieldPos=this.awaitPos=this.awaitIdentPos=0;this.labels=[];this.undefinedExports=Object.create(null);if(this.pos===0&&e.allowHashBang&&this.input.slice(0,2)==="#!"){this.skipLineComment(2)}this.scopeStack=[];this.enterScope(O);this.regexpState=null;this.privateNameStack=[]};var $={inFunction:{configurable:true},inGenerator:{configurable:true},inAsync:{configurable:true},canAwait:{configurable:true},allowSuper:{configurable:true},allowDirectSuper:{configurable:true},treatFunctionsAsVar:{configurable:true},allowNewDotTarget:{configurable:true},inClassStaticBlock:{configurable:true}};K.prototype.parse=function parse(){var e=this.options.program||this.startNode();this.nextToken();return this.parseTopLevel(e)};$.inFunction.get=function(){return(this.currentVarScope().flags&R)>0};$.inGenerator.get=function(){return(this.currentVarScope().flags&M)>0&&!this.currentVarScope().inClassFieldInit};$.inAsync.get=function(){return(this.currentVarScope().flags&T)>0&&!this.currentVarScope().inClassFieldInit};$.canAwait.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e];if(t.inClassFieldInit||t.flags&F){return false}if(t.flags&R){return(t.flags&T)>0}}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction};$.allowSuper.get=function(){var e=this.currentThisScope();var t=e.flags;var r=e.inClassFieldInit;return(t&z)>0||r||this.options.allowSuperOutsideMethod};$.allowDirectSuper.get=function(){return(this.currentThisScope().flags&D)>0};$.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())};$.allowNewDotTarget.get=function(){var e=this.currentThisScope();var t=e.flags;var r=e.inClassFieldInit;return(t&(R|F))>0||r};$.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&F)>0};K.extend=function extend(){var e=[],t=arguments.length;while(t--)e[t]=arguments[t];var r=this;for(var i=0;i<e.length;i++){r=e[i](r)}return r};K.parse=function parse(e,t){return new this(t,e).parse()};K.parseExpressionAt=function parseExpressionAt(e,t,r){var i=new this(r,e,t);i.nextToken();return i.parseExpression()};K.tokenizer=function tokenizer(e,t){return new this(t,e)};Object.defineProperties(K.prototype,$);var Y=K.prototype;var J=/^(?:'((?:\\.|[^'\\])*?)'|"((?:\\.|[^"\\])*?)")/;Y.strictDirective=function(e){if(this.options.ecmaVersion<5){return false}for(;;){x.lastIndex=e;e+=x.exec(this.input)[0].length;var t=J.exec(this.input.slice(e));if(!t){return false}if((t[1]||t[2])==="use strict"){x.lastIndex=e+t[0].length;var r=x.exec(this.input),i=r.index+r[0].length;var n=this.input.charAt(i);return n===";"||n==="}"||v.test(r[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(n)||n==="!"&&this.input.charAt(i+1)==="=")}e+=t[0].length;x.lastIndex=e;e+=x.exec(this.input)[0].length;if(this.input[e]===";"){e++}}};Y.eat=function(e){if(this.type===e){this.next();return true}else{return false}};Y.isContextual=function(e){return this.type===m.name&&this.value===e&&!this.containsEsc};Y.eatContextual=function(e){if(!this.isContextual(e)){return false}this.next();return true};Y.expectContextual=function(e){if(!this.eatContextual(e)){this.unexpected()}};Y.canInsertSemicolon=function(){return this.type===m.eof||this.type===m.braceR||v.test(this.input.slice(this.lastTokEnd,this.start))};Y.insertSemicolon=function(){if(this.canInsertSemicolon()){if(this.options.onInsertedSemicolon){this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc)}return true}};Y.semicolon=function(){if(!this.eat(m.semi)&&!this.insertSemicolon()){this.unexpected()}};Y.afterTrailingComma=function(e,t){if(this.type===e){if(this.options.onTrailingComma){this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc)}if(!t){this.next()}return true}};Y.expect=function(e){this.eat(e)||this.unexpected()};Y.unexpected=function(e){this.raise(e!=null?e:this.start,"Unexpected token")};var Q=function DestructuringErrors(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};Y.checkPatternErrors=function(e,t){if(!e){return}if(e.trailingComma>-1){this.raiseRecoverable(e.trailingComma,"Comma is not permitted after the rest element")}var r=t?e.parenthesizedAssign:e.parenthesizedBind;if(r>-1){this.raiseRecoverable(r,t?"Assigning to rvalue":"Parenthesized pattern")}};Y.checkExpressionErrors=function(e,t){if(!e){return false}var r=e.shorthandAssign;var i=e.doubleProto;if(!t){return r>=0||i>=0}if(r>=0){this.raise(r,"Shorthand property assignments are valid only in destructuring patterns")}if(i>=0){this.raiseRecoverable(i,"Redefinition of __proto__ property")}};Y.checkYieldAwaitInDefaultParams=function(){if(this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)){this.raise(this.yieldPos,"Yield expression cannot be a default value")}if(this.awaitPos){this.raise(this.awaitPos,"Await expression cannot be a default value")}};Y.isSimpleAssignTarget=function(e){if(e.type==="ParenthesizedExpression"){return this.isSimpleAssignTarget(e.expression)}return e.type==="Identifier"||e.type==="MemberExpression"};var X=K.prototype;X.parseTopLevel=function(e){var t=Object.create(null);if(!e.body){e.body=[]}while(this.type!==m.eof){var r=this.parseStatement(null,true,t);e.body.push(r)}if(this.inModule){for(var i=0,n=Object.keys(this.undefinedExports);i<n.length;i+=1){var a=n[i];this.raiseRecoverable(this.undefinedExports[a].start,"Export '"+a+"' is not defined")}}this.adaptDirectivePrologue(e.body);this.next();e.sourceType=this.options.sourceType;return this.finishNode(e,"Program")};var Z={kind:"loop"},ee={kind:"switch"};X.isLet=function(e){if(this.options.ecmaVersion<6||!this.isContextual("let")){return false}x.lastIndex=this.pos;var t=x.exec(this.input);var r=this.pos+t[0].length,i=this.input.charCodeAt(r);if(i===91||i===92||i>55295&&i<56320){return true}if(e){return false}if(i===123){return true}if(isIdentifierStart(i,true)){var n=r+1;while(isIdentifierChar(i=this.input.charCodeAt(n),true)){++n}if(i===92||i>55295&&i<56320){return true}var a=this.input.slice(r,n);if(!l.test(a)){return true}}return false};X.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async")){return false}x.lastIndex=this.pos;var e=x.exec(this.input);var t=this.pos+e[0].length,r;return!v.test(this.input.slice(this.pos,t))&&this.input.slice(t,t+8)==="function"&&(t+8===this.input.length||!(isIdentifierChar(r=this.input.charCodeAt(t+8))||r>55295&&r<56320))};X.parseStatement=function(e,t,r){var i=this.type,n=this.startNode(),a;if(this.isLet(e)){i=m._var;a="let"}switch(i){case m._break:case m._continue:return this.parseBreakContinueStatement(n,i.keyword);case m._debugger:return this.parseDebuggerStatement(n);case m._do:return this.parseDoStatement(n);case m._for:return this.parseForStatement(n);case m._function:if(e&&(this.strict||e!=="if"&&e!=="label")&&this.options.ecmaVersion>=6){this.unexpected()}return this.parseFunctionStatement(n,false,!e);case m._class:if(e){this.unexpected()}return this.parseClass(n,true);case m._if:return this.parseIfStatement(n);case m._return:return this.parseReturnStatement(n);case m._switch:return this.parseSwitchStatement(n);case m._throw:return this.parseThrowStatement(n);case m._try:return this.parseTryStatement(n);case m._const:case m._var:a=a||this.value;if(e&&a!=="var"){this.unexpected()}return this.parseVarStatement(n,a);case m._while:return this.parseWhileStatement(n);case m._with:return this.parseWithStatement(n);case m.braceL:return this.parseBlock(true,n);case m.semi:return this.parseEmptyStatement(n);case m._export:case m._import:if(this.options.ecmaVersion>10&&i===m._import){x.lastIndex=this.pos;var s=x.exec(this.input);var o=this.pos+s[0].length,l=this.input.charCodeAt(o);if(l===40||l===46){return this.parseExpressionStatement(n,this.parseExpression())}}if(!this.options.allowImportExportEverywhere){if(!t){this.raise(this.start,"'import' and 'export' may only appear at the top level")}if(!this.inModule){this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")}}return i===m._import?this.parseImport(n):this.parseExport(n,r);default:if(this.isAsyncFunction()){if(e){this.unexpected()}this.next();return this.parseFunctionStatement(n,true,!e)}var u=this.value,h=this.parseExpression();if(i===m.name&&h.type==="Identifier"&&this.eat(m.colon)){return this.parseLabeledStatement(n,u,h,e)}else{return this.parseExpressionStatement(n,h)}}};X.parseBreakContinueStatement=function(e,t){var r=t==="break";this.next();if(this.eat(m.semi)||this.insertSemicolon()){e.label=null}else if(this.type!==m.name){this.unexpected()}else{e.label=this.parseIdent();this.semicolon()}var i=0;for(;i<this.labels.length;++i){var n=this.labels[i];if(e.label==null||n.name===e.label.name){if(n.kind!=null&&(r||n.kind==="loop")){break}if(e.label&&r){break}}}if(i===this.labels.length){this.raise(e.start,"Unsyntactic "+t)}return this.finishNode(e,r?"BreakStatement":"ContinueStatement")};X.parseDebuggerStatement=function(e){this.next();this.semicolon();return this.finishNode(e,"DebuggerStatement")};X.parseDoStatement=function(e){this.next();this.labels.push(Z);e.body=this.parseStatement("do");this.labels.pop();this.expect(m._while);e.test=this.parseParenExpression();if(this.options.ecmaVersion>=6){this.eat(m.semi)}else{this.semicolon()}return this.finishNode(e,"DoWhileStatement")};X.parseForStatement=function(e){this.next();var t=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;this.labels.push(Z);this.enterScope(0);this.expect(m.parenL);if(this.type===m.semi){if(t>-1){this.unexpected(t)}return this.parseFor(e,null)}var r=this.isLet();if(this.type===m._var||this.type===m._const||r){var i=this.startNode(),n=r?"let":this.value;this.next();this.parseVar(i,true,n);this.finishNode(i,"VariableDeclaration");if((this.type===m._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&i.declarations.length===1){if(this.options.ecmaVersion>=9){if(this.type===m._in){if(t>-1){this.unexpected(t)}}else{e.await=t>-1}}return this.parseForIn(e,i)}if(t>-1){this.unexpected(t)}return this.parseFor(e,i)}var a=this.isContextual("let"),s=false;var o=new Q;var l=this.parseExpression(t>-1?"await":true,o);if(this.type===m._in||(s=this.options.ecmaVersion>=6&&this.isContextual("of"))){if(this.options.ecmaVersion>=9){if(this.type===m._in){if(t>-1){this.unexpected(t)}}else{e.await=t>-1}}if(a&&s){this.raise(l.start,"The left-hand side of a for-of loop may not start with 'let'.")}this.toAssignable(l,false,o);this.checkLValPattern(l);return this.parseForIn(e,l)}else{this.checkExpressionErrors(o,true)}if(t>-1){this.unexpected(t)}return this.parseFor(e,l)};X.parseFunctionStatement=function(e,t,r){this.next();return this.parseFunction(e,re|(r?0:ie),false,t)};X.parseIfStatement=function(e){this.next();e.test=this.parseParenExpression();e.consequent=this.parseStatement("if");e.alternate=this.eat(m._else)?this.parseStatement("if"):null;return this.finishNode(e,"IfStatement")};X.parseReturnStatement=function(e){if(!this.inFunction&&!this.options.allowReturnOutsideFunction){this.raise(this.start,"'return' outside of function")}this.next();if(this.eat(m.semi)||this.insertSemicolon()){e.argument=null}else{e.argument=this.parseExpression();this.semicolon()}return this.finishNode(e,"ReturnStatement")};X.parseSwitchStatement=function(e){this.next();e.discriminant=this.parseParenExpression();e.cases=[];this.expect(m.braceL);this.labels.push(ee);this.enterScope(0);var t;for(var r=false;this.type!==m.braceR;){if(this.type===m._case||this.type===m._default){var i=this.type===m._case;if(t){this.finishNode(t,"SwitchCase")}e.cases.push(t=this.startNode());t.consequent=[];this.next();if(i){t.test=this.parseExpression()}else{if(r){this.raiseRecoverable(this.lastTokStart,"Multiple default clauses")}r=true;t.test=null}this.expect(m.colon)}else{if(!t){this.unexpected()}t.consequent.push(this.parseStatement(null))}}this.exitScope();if(t){this.finishNode(t,"SwitchCase")}this.next();this.labels.pop();return this.finishNode(e,"SwitchStatement")};X.parseThrowStatement=function(e){this.next();if(v.test(this.input.slice(this.lastTokEnd,this.start))){this.raise(this.lastTokEnd,"Illegal newline after throw")}e.argument=this.parseExpression();this.semicolon();return this.finishNode(e,"ThrowStatement")};var te=[];X.parseTryStatement=function(e){this.next();e.block=this.parseBlock();e.handler=null;if(this.type===m._catch){var t=this.startNode();this.next();if(this.eat(m.parenL)){t.param=this.parseBindingAtom();var r=t.param.type==="Identifier";this.enterScope(r?j:0);this.checkLValPattern(t.param,r?H:q);this.expect(m.parenR)}else{if(this.options.ecmaVersion<10){this.unexpected()}t.param=null;this.enterScope(0)}t.body=this.parseBlock(false);this.exitScope();e.handler=this.finishNode(t,"CatchClause")}e.finalizer=this.eat(m._finally)?this.parseBlock():null;if(!e.handler&&!e.finalizer){this.raise(e.start,"Missing catch or finally clause")}return this.finishNode(e,"TryStatement")};X.parseVarStatement=function(e,t){this.next();this.parseVar(e,false,t);this.semicolon();return this.finishNode(e,"VariableDeclaration")};X.parseWhileStatement=function(e){this.next();e.test=this.parseParenExpression();this.labels.push(Z);e.body=this.parseStatement("while");this.labels.pop();return this.finishNode(e,"WhileStatement")};X.parseWithStatement=function(e){if(this.strict){this.raise(this.start,"'with' in strict mode")}this.next();e.object=this.parseParenExpression();e.body=this.parseStatement("with");return this.finishNode(e,"WithStatement")};X.parseEmptyStatement=function(e){this.next();return this.finishNode(e,"EmptyStatement")};X.parseLabeledStatement=function(e,t,r,i){for(var n=0,a=this.labels;n<a.length;n+=1){var s=a[n];if(s.name===t){this.raise(r.start,"Label '"+t+"' is already declared")}}var o=this.type.isLoop?"loop":this.type===m._switch?"switch":null;for(var l=this.labels.length-1;l>=0;l--){var u=this.labels[l];if(u.statementStart===e.start){u.statementStart=this.start;u.kind=o}else{break}}this.labels.push({name:t,kind:o,statementStart:this.start});e.body=this.parseStatement(i?i.indexOf("label")===-1?i+"label":i:"label");this.labels.pop();e.label=r;return this.finishNode(e,"LabeledStatement")};X.parseExpressionStatement=function(e,t){e.expression=t;this.semicolon();return this.finishNode(e,"ExpressionStatement")};X.parseBlock=function(e,t,r){if(e===void 0)e=true;if(t===void 0)t=this.startNode();t.body=[];this.expect(m.braceL);if(e){this.enterScope(0)}while(this.type!==m.braceR){var i=this.parseStatement(null);t.body.push(i)}if(r){this.strict=false}this.next();if(e){this.exitScope()}return this.finishNode(t,"BlockStatement")};X.parseFor=function(e,t){e.init=t;this.expect(m.semi);e.test=this.type===m.semi?null:this.parseExpression();this.expect(m.semi);e.update=this.type===m.parenR?null:this.parseExpression();this.expect(m.parenR);e.body=this.parseStatement("for");this.exitScope();this.labels.pop();return this.finishNode(e,"ForStatement")};X.parseForIn=function(e,t){var r=this.type===m._in;this.next();if(t.type==="VariableDeclaration"&&t.declarations[0].init!=null&&(!r||this.options.ecmaVersion<8||this.strict||t.kind!=="var"||t.declarations[0].id.type!=="Identifier")){this.raise(t.start,(r?"for-in":"for-of")+" loop variable declaration may not have an initializer")}e.left=t;e.right=r?this.parseExpression():this.parseMaybeAssign();this.expect(m.parenR);e.body=this.parseStatement("for");this.exitScope();this.labels.pop();return this.finishNode(e,r?"ForInStatement":"ForOfStatement")};X.parseVar=function(e,t,r){e.declarations=[];e.kind=r;for(;;){var i=this.startNode();this.parseVarId(i,r);if(this.eat(m.eq)){i.init=this.parseMaybeAssign(t)}else if(r==="const"&&!(this.type===m._in||this.options.ecmaVersion>=6&&this.isContextual("of"))){this.unexpected()}else if(i.id.type!=="Identifier"&&!(t&&(this.type===m._in||this.isContextual("of")))){this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value")}else{i.init=null}e.declarations.push(this.finishNode(i,"VariableDeclarator"));if(!this.eat(m.comma)){break}}return e};X.parseVarId=function(e,t){e.id=this.parseBindingAtom();this.checkLValPattern(e.id,t==="var"?W:q,false)};var re=1,ie=2,ne=4;X.parseFunction=function(e,t,r,i,n){this.initFunction(e);if(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!i){if(this.type===m.star&&t&ie){this.unexpected()}e.generator=this.eat(m.star)}if(this.options.ecmaVersion>=8){e.async=!!i}if(t&re){e.id=t&ne&&this.type!==m.name?null:this.parseIdent();if(e.id&&!(t&ie)){this.checkLValSimple(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?W:q:U)}}var a=this.yieldPos,s=this.awaitPos,o=this.awaitIdentPos;this.yieldPos=0;this.awaitPos=0;this.awaitIdentPos=0;this.enterScope(functionFlags(e.async,e.generator));if(!(t&re)){e.id=this.type===m.name?this.parseIdent():null}this.parseFunctionParams(e);this.parseFunctionBody(e,r,false,n);this.yieldPos=a;this.awaitPos=s;this.awaitIdentPos=o;return this.finishNode(e,t&re?"FunctionDeclaration":"FunctionExpression")};X.parseFunctionParams=function(e){this.expect(m.parenL);e.params=this.parseBindingList(m.parenR,false,this.options.ecmaVersion>=8);this.checkYieldAwaitInDefaultParams()};X.parseClass=function(e,t){this.next();var r=this.strict;this.strict=true;this.parseClassId(e,t);this.parseClassSuper(e);var i=this.enterClassBody();var n=this.startNode();var a=false;n.body=[];this.expect(m.braceL);while(this.type!==m.braceR){var s=this.parseClassElement(e.superClass!==null);if(s){n.body.push(s);if(s.type==="MethodDefinition"&&s.kind==="constructor"){if(a){this.raise(s.start,"Duplicate constructor in the same class")}a=true}else if(s.key&&s.key.type==="PrivateIdentifier"&&isPrivateNameConflicted(i,s)){this.raiseRecoverable(s.key.start,"Identifier '#"+s.key.name+"' has already been declared")}}}this.strict=r;this.next();e.body=this.finishNode(n,"ClassBody");this.exitClassBody();return this.finishNode(e,t?"ClassDeclaration":"ClassExpression")};X.parseClassElement=function(e){if(this.eat(m.semi)){return null}var t=this.options.ecmaVersion;var r=this.startNode();var i="";var n=false;var a=false;var s="method";var o=false;if(this.eatContextual("static")){if(t>=13&&this.eat(m.braceL)){this.parseClassStaticBlock(r);return r}if(this.isClassElementNameStart()||this.type===m.star){o=true}else{i="static"}}r.static=o;if(!i&&t>=8&&this.eatContextual("async")){if((this.isClassElementNameStart()||this.type===m.star)&&!this.canInsertSemicolon()){a=true}else{i="async"}}if(!i&&(t>=9||!a)&&this.eat(m.star)){n=true}if(!i&&!a&&!n){var l=this.value;if(this.eatContextual("get")||this.eatContextual("set")){if(this.isClassElementNameStart()){s=l}else{i=l}}}if(i){r.computed=false;r.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc);r.key.name=i;this.finishNode(r.key,"Identifier")}else{this.parseClassElementName(r)}if(t<13||this.type===m.parenL||s!=="method"||n||a){var u=!r.static&&checkKeyName(r,"constructor");var h=u&&e;if(u&&s!=="method"){this.raise(r.key.start,"Constructor can't have get/set modifier")}r.kind=u?"constructor":s;this.parseClassMethod(r,n,a,h)}else{this.parseClassField(r)}return r};X.isClassElementNameStart=function(){return this.type===m.name||this.type===m.privateId||this.type===m.num||this.type===m.string||this.type===m.bracketL||this.type.keyword};X.parseClassElementName=function(e){if(this.type===m.privateId){if(this.value==="constructor"){this.raise(this.start,"Classes can't have an element named '#constructor'")}e.computed=false;e.key=this.parsePrivateIdent()}else{this.parsePropertyName(e)}};X.parseClassMethod=function(e,t,r,i){var n=e.key;if(e.kind==="constructor"){if(t){this.raise(n.start,"Constructor can't be a generator")}if(r){this.raise(n.start,"Constructor can't be an async method")}}else if(e.static&&checkKeyName(e,"prototype")){this.raise(n.start,"Classes may not have a static property named prototype")}var a=e.value=this.parseMethod(t,r,i);if(e.kind==="get"&&a.params.length!==0){this.raiseRecoverable(a.start,"getter should have no params")}if(e.kind==="set"&&a.params.length!==1){this.raiseRecoverable(a.start,"setter should have exactly one param")}if(e.kind==="set"&&a.params[0].type==="RestElement"){this.raiseRecoverable(a.params[0].start,"Setter cannot use rest params")}return this.finishNode(e,"MethodDefinition")};X.parseClassField=function(e){if(checkKeyName(e,"constructor")){this.raise(e.key.start,"Classes can't have a field named 'constructor'")}else if(e.static&&checkKeyName(e,"prototype")){this.raise(e.key.start,"Classes can't have a static field named 'prototype'")}if(this.eat(m.eq)){var t=this.currentThisScope();var r=t.inClassFieldInit;t.inClassFieldInit=true;e.value=this.parseMaybeAssign();t.inClassFieldInit=r}else{e.value=null}this.semicolon();return this.finishNode(e,"PropertyDefinition")};X.parseClassStaticBlock=function(e){e.body=[];var t=this.labels;this.labels=[];this.enterScope(F|z);while(this.type!==m.braceR){var r=this.parseStatement(null);e.body.push(r)}this.next();this.exitScope();this.labels=t;return this.finishNode(e,"StaticBlock")};X.parseClassId=function(e,t){if(this.type===m.name){e.id=this.parseIdent();if(t){this.checkLValSimple(e.id,q,false)}}else{if(t===true){this.unexpected()}e.id=null}};X.parseClassSuper=function(e){e.superClass=this.eat(m._extends)?this.parseExprSubscripts(false):null};X.enterClassBody=function(){var e={declared:Object.create(null),used:[]};this.privateNameStack.push(e);return e.declared};X.exitClassBody=function(){var e=this.privateNameStack.pop();var t=e.declared;var r=e.used;var i=this.privateNameStack.length;var n=i===0?null:this.privateNameStack[i-1];for(var a=0;a<r.length;++a){var s=r[a];if(!S(t,s.name)){if(n){n.used.push(s)}else{this.raiseRecoverable(s.start,"Private field '#"+s.name+"' must be declared in an enclosing class")}}}};function isPrivateNameConflicted(e,t){var r=t.key.name;var i=e[r];var n="true";if(t.type==="MethodDefinition"&&(t.kind==="get"||t.kind==="set")){n=(t.static?"s":"i")+t.kind}if(i==="iget"&&n==="iset"||i==="iset"&&n==="iget"||i==="sget"&&n==="sset"||i==="sset"&&n==="sget"){e[r]="true";return false}else if(!i){e[r]=n;return false}else{return true}}function checkKeyName(e,t){var r=e.computed;var i=e.key;return!r&&(i.type==="Identifier"&&i.name===t||i.type==="Literal"&&i.value===t)}X.parseExport=function(e,t){this.next();if(this.eat(m.star)){if(this.options.ecmaVersion>=11){if(this.eatContextual("as")){e.exported=this.parseModuleExportName();this.checkExport(t,e.exported,this.lastTokStart)}else{e.exported=null}}this.expectContextual("from");if(this.type!==m.string){this.unexpected()}e.source=this.parseExprAtom();this.semicolon();return this.finishNode(e,"ExportAllDeclaration")}if(this.eat(m._default)){this.checkExport(t,"default",this.lastTokStart);var r;if(this.type===m._function||(r=this.isAsyncFunction())){var i=this.startNode();this.next();if(r){this.next()}e.declaration=this.parseFunction(i,re|ne,false,r)}else if(this.type===m._class){var n=this.startNode();e.declaration=this.parseClass(n,"nullableID")}else{e.declaration=this.parseMaybeAssign();this.semicolon()}return this.finishNode(e,"ExportDefaultDeclaration")}if(this.shouldParseExportStatement()){e.declaration=this.parseStatement(null);if(e.declaration.type==="VariableDeclaration"){this.checkVariableExport(t,e.declaration.declarations)}else{this.checkExport(t,e.declaration.id,e.declaration.id.start)}e.specifiers=[];e.source=null}else{e.declaration=null;e.specifiers=this.parseExportSpecifiers(t);if(this.eatContextual("from")){if(this.type!==m.string){this.unexpected()}e.source=this.parseExprAtom()}else{for(var a=0,s=e.specifiers;a<s.length;a+=1){var o=s[a];this.checkUnreserved(o.local);this.checkLocalExport(o.local);if(o.local.type==="Literal"){this.raise(o.local.start,"A string literal cannot be used as an exported binding without `from`.")}}e.source=null}this.semicolon()}return this.finishNode(e,"ExportNamedDeclaration")};X.checkExport=function(e,t,r){if(!e){return}if(typeof t!=="string"){t=t.type==="Identifier"?t.name:t.value}if(S(e,t)){this.raiseRecoverable(r,"Duplicate export '"+t+"'")}e[t]=true};X.checkPatternExport=function(e,t){var r=t.type;if(r==="Identifier"){this.checkExport(e,t,t.start)}else if(r==="ObjectPattern"){for(var i=0,n=t.properties;i<n.length;i+=1){var a=n[i];this.checkPatternExport(e,a)}}else if(r==="ArrayPattern"){for(var s=0,o=t.elements;s<o.length;s+=1){var l=o[s];if(l){this.checkPatternExport(e,l)}}}else if(r==="Property"){this.checkPatternExport(e,t.value)}else if(r==="AssignmentPattern"){this.checkPatternExport(e,t.left)}else if(r==="RestElement"){this.checkPatternExport(e,t.argument)}else if(r==="ParenthesizedExpression"){this.checkPatternExport(e,t.expression)}};X.checkVariableExport=function(e,t){if(!e){return}for(var r=0,i=t;r<i.length;r+=1){var n=i[r];this.checkPatternExport(e,n.id)}};X.shouldParseExportStatement=function(){return this.type.keyword==="var"||this.type.keyword==="const"||this.type.keyword==="class"||this.type.keyword==="function"||this.isLet()||this.isAsyncFunction()};X.parseExportSpecifiers=function(e){var t=[],r=true;this.expect(m.braceL);while(!this.eat(m.braceR)){if(!r){this.expect(m.comma);if(this.afterTrailingComma(m.braceR)){break}}else{r=false}var i=this.startNode();i.local=this.parseModuleExportName();i.exported=this.eatContextual("as")?this.parseModuleExportName():i.local;this.checkExport(e,i.exported,i.exported.start);t.push(this.finishNode(i,"ExportSpecifier"))}return t};X.parseImport=function(e){this.next();if(this.type===m.string){e.specifiers=te;e.source=this.parseExprAtom()}else{e.specifiers=this.parseImportSpecifiers();this.expectContextual("from");e.source=this.type===m.string?this.parseExprAtom():this.unexpected()}this.semicolon();return this.finishNode(e,"ImportDeclaration")};X.parseImportSpecifiers=function(){var e=[],t=true;if(this.type===m.name){var r=this.startNode();r.local=this.parseIdent();this.checkLValSimple(r.local,q);e.push(this.finishNode(r,"ImportDefaultSpecifier"));if(!this.eat(m.comma)){return e}}if(this.type===m.star){var i=this.startNode();this.next();this.expectContextual("as");i.local=this.parseIdent();this.checkLValSimple(i.local,q);e.push(this.finishNode(i,"ImportNamespaceSpecifier"));return e}this.expect(m.braceL);while(!this.eat(m.braceR)){if(!t){this.expect(m.comma);if(this.afterTrailingComma(m.braceR)){break}}else{t=false}var n=this.startNode();n.imported=this.parseModuleExportName();if(this.eatContextual("as")){n.local=this.parseIdent()}else{this.checkUnreserved(n.imported);n.local=n.imported}this.checkLValSimple(n.local,q);e.push(this.finishNode(n,"ImportSpecifier"))}return e};X.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===m.string){var e=this.parseLiteral(this.value);if(I.test(e.value)){this.raise(e.start,"An export name cannot include a lone surrogate.")}return e}return this.parseIdent(true)};X.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)}};X.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 ae=K.prototype;ae.toAssignable=function(e,t,r){if(this.options.ecmaVersion>=6&&e){switch(e.type){case"Identifier":if(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";if(r){this.checkPatternErrors(r,true)}for(var i=0,n=e.properties;i<n.length;i+=1){var a=n[i];this.toAssignable(a,t);if(a.type==="RestElement"&&(a.argument.type==="ArrayPattern"||a.argument.type==="ObjectPattern")){this.raise(a.argument.start,"Unexpected token")}}break;case"Property":if(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";if(r){this.checkPatternErrors(r,true)}this.toAssignableList(e.elements,t);break;case"SpreadElement":e.type="RestElement";this.toAssignable(e.argument,t);if(e.argument.type==="AssignmentPattern"){this.raise(e.argument.start,"Rest elements cannot have a default value")}break;case"AssignmentExpression":if(e.operator!=="="){this.raise(e.left.end,"Only '=' operator can be used for specifying default value.")}e.type="AssignmentPattern";delete e.operator;this.toAssignable(e.left,t);break;case"ParenthesizedExpression":this.toAssignable(e.expression,t,r);break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!t){break}default:this.raise(e.start,"Assigning to rvalue")}}else if(r){this.checkPatternErrors(r,true)}return e};ae.toAssignableList=function(e,t){var r=e.length;for(var i=0;i<r;i++){var n=e[i];if(n){this.toAssignable(n,t)}}if(r){var a=e[r-1];if(this.options.ecmaVersion===6&&t&&a&&a.type==="RestElement"&&a.argument.type!=="Identifier"){this.unexpected(a.argument.start)}}return e};ae.parseSpread=function(e){var t=this.startNode();this.next();t.argument=this.parseMaybeAssign(false,e);return this.finishNode(t,"SpreadElement")};ae.parseRestBinding=function(){var e=this.startNode();this.next();if(this.options.ecmaVersion===6&&this.type!==m.name){this.unexpected()}e.argument=this.parseBindingAtom();return this.finishNode(e,"RestElement")};ae.parseBindingAtom=function(){if(this.options.ecmaVersion>=6){switch(this.type){case m.bracketL:var e=this.startNode();this.next();e.elements=this.parseBindingList(m.bracketR,true,true);return this.finishNode(e,"ArrayPattern");case m.braceL:return this.parseObj(true)}}return this.parseIdent()};ae.parseBindingList=function(e,t,r){var i=[],n=true;while(!this.eat(e)){if(n){n=false}else{this.expect(m.comma)}if(t&&this.type===m.comma){i.push(null)}else if(r&&this.afterTrailingComma(e)){break}else if(this.type===m.ellipsis){var a=this.parseRestBinding();this.parseBindingListItem(a);i.push(a);if(this.type===m.comma){this.raise(this.start,"Comma is not permitted after the rest element