!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).svelte={})}(this,(function(e){"use strict";function t(e,t,r){const s=r._;let a=!1;function i(e,{next:t,state:n}){t(n)}return function e(t,o,l){if(a)return;if(!t.type)return;let c;const u={},p={path:o,state:l,next:(r=l)=>{o.push(t);for(const n in t){if("type"===n)continue;const s=t[n];if(s&&"object"==typeof s)if(Array.isArray(s)){const t={};s.forEach(((n,s)=>{if(n&&"object"==typeof n){const a=e(n,o,r);a&&(t[s]=a)}})),Object.keys(t).length>0&&(u[n]=s.map(((e,n)=>t[n]??e)))}else{const t=e(s,o,r);t&&(u[n]=t)}}if(o.pop(),Object.keys(u).length>0)return n(t,u)},stop:()=>{a=!0},visit:(n,r=l)=>{o.push(t);const s=e(n,o,r)??n;return o.pop(),s}};let d=r[t.type]??i;if(s){let e;c=s(t,{...p,next:(n=l)=>(l=n,e=d(t,{...p,state:n}),e)}),!c&&e&&(c=e)}else c=d(t,p);return c||Object.keys(u).length>0&&(c=n(t,u)),c||void 0}(e,[],t)??e}function n(e,t){const n={},r=Object.getOwnPropertyDescriptors(e);for(const e in r)Object.defineProperty(n,e,r[e]);for(const e in t)n[e]=t[e];return n}const r=/\s/,s=/\s+/,a=/^\r?\n/,i=/^\s/,o=/^[ \t\r\n]+/,l=/\s$/,c=/[ \t\r\n]+$/,u=/[^ \t\r\n]/,p=/[ \t\n\r\f]+/g,d=/^[ \t\n\r\f]+$/,h=/[^\n]/g,m=/^[a-zA-Z_$][a-zA-Z_$0-9]*$/,f=/(^[^a-zA-Z_$]|[^a-zA-Z0-9_$])/g,y=/^[aeiou]/,v=/^h[1-6]$/,g=/(^[0-9-.])|[\^$@%&#?!|()[\]{}^*+~;]/,b=1,x=2,_=4,C=8,w=16,k=1,P=2,S="http://www.w3.org/2000/svg",E="http://www.w3.org/1998/Math/MathML";function A(e,t){if(0===t.length)return null;const n=new q(t).get(e);return n&&n[0][0]>.7?n[0][1]:null}function T(e,t){if(null===e&&null===t)throw"Trying to compare two null values";if(null===e||null===t)return 0;const n=function(e,t){const n=[];let r=0,s=0;for(let a=0;a<=t.length;a++)for(let i=0;i<=e.length;i++)s=a&&i?e.charAt(i-1)===t.charAt(a-1)?r:Math.min(n[i],n[i-1],r)+1:a+i,r=n[i],n[i]=s;return n.pop()}(e=String(e),t=String(t));return 1-n/Math.max(e.length,t.length)}const $=/[^\w, ]+/;function R(e,t=2){const n={},r=function(e,t=2){const n="-"+e.toLowerCase().replace($,"")+"-",r=t-n.length,s=[];if(r>0)for(let t=0;t=2;--t){const n=this.__get(e,t);if(n.length>0)return n}return null}__get(e,t){const n=e.toLowerCase(),r={},s=R(n,t),a=this.items[t];let i,o,l,c,u,p=0;for(i in s)if(o=s[i],p+=Math.pow(o,2),i in this.match_dict)for(l=0;l{const n=s+e.length+1,r={start:s,end:n,line:t};return s=n,r}));let i=0;return function(t,s){if("string"==typeof t&&(t=e.indexOf(t,s??0)),-1===t)return;let o=a[i];const l=t>=o.end?1:-1;for(;o;){if(L(o,t))return{line:n+o.line,column:r+t-o.start,character:t};i+=l,o=a[i]}}}let O,N,D,j,B=[],F=M("",{offsetLine:1}),V=[],H=new Map;function U(e=(()=>!0)){j=e}function z(e,t){return D&&!!H.get(e)?.some((e=>e.has(t)))}function W(e,t){N=e;const n=t.rootDir?.replace(/\\/g,"/");O=t.filename.replace(/\\/g,"/"),D=!!t.dev,"string"==typeof n&&O.startsWith(n)&&(O=O.replace(n,"").replace(/^[/\\]/,"")),F=M(N,{offsetLine:1}),B=[],V=[],H.clear()}const G=/^\t+/;function K(e){return e.replace(G,(e=>e.split("\t").join(" ")))}class X{name="CompileDiagnostic";constructor(e,t,n){this.code=e,this.message=t,O&&(this.filename=O),n&&(this.position=n,this.start=F(n[0]),this.end=F(n[1]),this.start&&this.end&&(this.frame=function(e,t,n){const r=e.split("\n"),s=Math.max(0,t-2),a=Math.min(t+3,r.length),i=String(a+1).length;return r.slice(s,a).map(((e,r)=>{const a=s+r===t,o=String(r+s+1).padStart(i," ");if(a){const t=" ".repeat(i+2+K(e.slice(0,n)).length)+"^";return`${o}: ${K(e)}\n${t}`}return`${o}: ${K(e)}`})).join("\n")}(N,this.start.line-1,this.end.column)))}toString(){let e=`${this.code}: ${this.message}`;return this.filename&&(e+=`\n${this.filename}`,this.start&&(e+=`:${this.start.line}:${this.start.column}`)),this.frame&&(e+=`\n${this.frame}`),e}toJSON(){return{code:this.code,message:this.message,filename:this.filename,start:this.start,end:this.end,position:this.position,frame:this.frame}}}class J extends X{name="CompileWarning";constructor(e,t,n){super(e,t,n)}}function Q(e,t,n){let r=V;if(e&&(r=H.get(e)??V),r&&r.at(-1)?.has(t))return;const s=new J(t,n,e&&void 0!==e.start?[e.start,e.end??e.start]:void 0);j(s)&&B.push(s)}function Y(e){Q(e,"a11y_accesskey","Avoid using accesskey")}function Z(e){Q(e,"a11y_aria_activedescendant_has_tabindex","An element with an aria-activedescendant attribute should have a tabindex value")}function ee(e,t){Q(e,"a11y_aria_attributes",`\`<${t}>\` should not have aria-* attributes`)}function te(e){Q(e,"a11y_autofocus","Avoid using autofocus")}function ne(e,t){Q(e,"a11y_hidden",`\`<${t}>\` element should not be hidden`)}function re(e,t,n){Q(e,"a11y_incorrect_aria_attribute_type",`The value of '${t}' must be a ${n}`)}function se(e,t){Q(e,"a11y_interactive_supports_focus",`Elements with the '${t}' interactive role must have a tabindex value`)}function ae(e,t){Q(e,"a11y_misplaced_role",`\`<${t}>\` should not have role attribute`)}function ie(e){Q(e,"a11y_misplaced_scope","The scope attribute should only be used with `` elements")}function oe(e,t,n){Q(e,"a11y_mouse_events_have_key_events",`'${t}' event must be accompanied by '${n}' event`)}function le(e,t){Q(e,"a11y_no_abstract_role",`Abstract role '${t}' is forbidden`)}function ce(e,t,n){Q(e,"a11y_no_interactive_element_to_noninteractive_role",`\`<${t}>\` cannot have role '${n}'`)}function ue(e,t,n){Q(e,"a11y_no_noninteractive_element_to_interactive_role",`Non-interactive element \`<${t}>\` cannot have interactive role '${n}'`)}function pe(e,t){Q(e,"a11y_no_redundant_roles",`Redundant role '${t}'`)}function de(e){Q(e,"a11y_positive_tabindex","Avoid tabindex values above zero")}function he(e,t,n){Q(e,"a11y_role_has_required_aria_props",`Elements with the ARIA role "${t}" must have the following attributes defined: ${n}`)}function me(e,t,n){Q(e,"a11y_role_supports_aria_props",`The attribute '${t}' is not supported by the role '${n}'`)}function fe(e,t,n,r){Q(e,"a11y_role_supports_aria_props_implicit",`The attribute '${t}' is not supported by the role '${n}'. This role is implicit on the element \`<${r}>\``)}function ye(e,t,n){Q(e,"a11y_unknown_aria_attribute",n?`Unknown aria attribute 'aria-${t}'. Did you mean '${n}'?`:`Unknown aria attribute 'aria-${t}'`)}function ve(e,t,n){Q(e,"a11y_unknown_role",n?`Unknown role '${t}'. Did you mean '${n}'?`:`Unknown role '${t}'`)}function ge(e,t,n){Q(e,"legacy_code",`\`${t}\` is no longer valid — please use \`${n}\` instead`)}function be(e,t,n){Q(e,"unknown_code",n?`\`${t}\` is not a recognised code (did you mean \`${n}\`?)`:`\`${t}\` is not a recognised code`)}function xe(e){Q(e,"options_deprecated_accessors","The `accessors` option has been deprecated. It will have no effect in runes mode")}function _e(e){Q(e,"options_deprecated_immutable","The `immutable` option has been deprecated. It will have no effect in runes mode")}function Ce(e){Q(e,"options_missing_custom_element","The `customElement` option is used when generating a custom element. Did you forget the `customElement: true` compile option?")}function we(e){Q(e,"options_renamed_ssr_dom",'`generate: "dom"` and `generate: "ssr"` options have been renamed to "client" and "server" respectively')}function ke(e,t){Q(e,"export_let_unused",`Component has unused export property '${t}'. If it is for external reference only, please consider using \`export const ${t}\``)}function Pe(e,t){Q(e,"non_reactive_update",`\`${t}\` is updated, but is not declared with \`$state(...)\`. Changing its value will not correctly trigger updates`)}function Se(e,t){Q(e,"store_rune_conflict",`It looks like you're using the \`$${t}\` rune, but there is a local binding called \`${t}\`. Referencing a local variable with a \`$\` prefix will create a store subscription. Please rename \`${t}\` to avoid the ambiguity`)}function Ee(e){Q(e,"attribute_avoid_is",'The "is" attribute is not supported cross-browser and should be avoided')}function Ae(e,t){Q(e,"attribute_global_event_reference",`You are referencing \`globalThis.${t}\`. Did you forget to declare a variable with that name?`)}function Te(e,t,n){Q(e,"attribute_invalid_property_name",`'${t}' is not a valid HTML attribute. Did you mean '${n}'?`)}function $e(e,t,n){Q(e,"node_invalid_placement_ssr",`${t} is invalid inside \`<${n}>\`. When rendering this component on the server, the resulting HTML will be modified by the browser, likely resulting in a \`hydration_mismatch\` warning`)}function Re(e){Q(e,"script_unknown_attribute","Unrecognized attribute — should be one of `generics`, `lang` or `module`. If this exists for a preprocessor, ensure that the preprocessor removes it")}const Ie=/^\s*svelte-ignore\s/,qe={"non-top-level-reactive-declaration":"reactive_declaration_invalid_placement","module-script-reactive-declaration":"reactive_declaration_module_script","empty-block":"block_empty","avoid-is":"attribute_avoid_is","invalid-html-attribute":"attribute_invalid_property_name","a11y-structure":"a11y_figcaption_parent","illegal-attribute-character":"attribute_illegal_colon","invalid-rest-eachblock-binding":"bind_invalid_each_rest","unused-export-let":"export_let_unused"},Le=["a11y_accesskey","a11y_aria_activedescendant_has_tabindex","a11y_aria_attributes","a11y_autocomplete_valid","a11y_autofocus","a11y_click_events_have_key_events","a11y_consider_explicit_label","a11y_distracting_elements","a11y_figcaption_index","a11y_figcaption_parent","a11y_hidden","a11y_img_redundant_alt","a11y_incorrect_aria_attribute_type","a11y_incorrect_aria_attribute_type_boolean","a11y_incorrect_aria_attribute_type_id","a11y_incorrect_aria_attribute_type_idlist","a11y_incorrect_aria_attribute_type_integer","a11y_incorrect_aria_attribute_type_token","a11y_incorrect_aria_attribute_type_tokenlist","a11y_incorrect_aria_attribute_type_tristate","a11y_interactive_supports_focus","a11y_invalid_attribute","a11y_label_has_associated_control","a11y_media_has_caption","a11y_misplaced_role","a11y_misplaced_scope","a11y_missing_attribute","a11y_missing_content","a11y_mouse_events_have_key_events","a11y_no_abstract_role","a11y_no_interactive_element_to_noninteractive_role","a11y_no_noninteractive_element_interactions","a11y_no_noninteractive_element_to_interactive_role","a11y_no_noninteractive_tabindex","a11y_no_redundant_roles","a11y_no_static_element_interactions","a11y_positive_tabindex","a11y_role_has_required_aria_props","a11y_role_supports_aria_props","a11y_role_supports_aria_props_implicit","a11y_unknown_aria_attribute","a11y_unknown_role","legacy_code","unknown_code","options_deprecated_accessors","options_deprecated_immutable","options_missing_custom_element","options_removed_enable_sourcemap","options_removed_hydratable","options_removed_loop_guard_timeout","options_renamed_ssr_dom","export_let_unused","legacy_component_creation","non_reactive_update","perf_avoid_inline_class","perf_avoid_nested_class","reactive_declaration_invalid_placement","reactive_declaration_module_script_dependency","reactive_declaration_non_reactive_property","state_referenced_locally","store_rune_conflict","css_unused_selector","attribute_avoid_is","attribute_global_event_reference","attribute_illegal_colon","attribute_invalid_property_name","attribute_quoted","bind_invalid_each_rest","block_empty","component_name_lowercase","element_invalid_self_closing_tag","event_directive_deprecated","node_invalid_placement_ssr","script_context_deprecated","script_unknown_attribute","slot_element_deprecated","svelte_component_deprecated","svelte_element_invalid_this","svelte_self_deprecated"].concat(["state_snapshot_uncloneable","binding_property_non_reactive","hydration_attribute_changed","hydration_html_changed","ownership_invalid_binding","ownership_invalid_mutation"]);function Me(e,t,n){const r=Ie.exec(t);if(!r)return[];let s=r[0].length;e+=s;const a=[];if(n)for(const n of t.slice(s).matchAll(/([\w$-]+)(,)?/gm)){const t=n[1];if(Le.includes(t))a.push(t);else{const r=qe[t]??t.replace(/-/g,"_"),s=e+n.index,a=s+t.length;if(Le.includes(r))ge({start:s,end:a},t,r);else{be({start:s,end:a},t,A(t,Le))}}if(!n[2])break}else for(const e of t.slice(s).matchAll(/[\w$-]+/gm)){const t=e[0];if(a.push(t),!Le.includes(t)){const e=qe[t]??t.replace(/-/g,"_");Le.includes(e)&&a.push(e)}}return a}function Oe(e){const t=Ie.exec(e);if(!t)return e;const n=t[0].length;return e.substring(0,n)+e.substring(n).replace(/\w+-\w+(-\w+)*/g,((t,r,s)=>{let a=qe[t]??t.replace(/-/g,"_");return/\w+-\w+/.test(e.substring(n+s+t.length))&&(a+=","),a}))}function Ne(e){const t=e.at(0),n=e.at(-1);"Text"===t?.type&&(u.test(t.data)?t.data=t.data.replace(o,""):e.shift()),"Text"===n?.type&&(u.test(n.data)?n.data=n.data.replace(c,""):e.pop())}var De=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,81,2,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,9,5351,0,7,14,13835,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,983,6,110,6,6,9,4759,9,787719,239],je=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,68,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,4026,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,757,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],Be="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟊꟐꟑꟓꟕ-ꟙꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",Fe={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"},Ve="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",He={5:Ve,"5module":Ve+" export import",6:Ve+" const class extends export import super"},Ue=/^in(stanceof)?$/,ze=new RegExp("["+Be+"]"),We=new RegExp("["+Be+"‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࢘-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・]");function Ge(e,t){for(var n=65536,r=0;re)return!1;if((n+=t[r+1])>=e)return!0}return!1}function Ke(e,t){return e<65?36===e:e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&ze.test(String.fromCharCode(e)):!1!==t&&Ge(e,je)))}function Xe(e,t){return e<48?36===e:e<58||!(e<65)&&(e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&We.test(String.fromCharCode(e)):!1!==t&&(Ge(e,je)||Ge(e,De)))))}var Je=function(e,t){void 0===t&&(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 Qe(e,t){return new Je(e,{beforeExpr:!0,binop:t})}var Ye={beforeExpr:!0},Ze={startsExpr:!0},et={};function tt(e,t){return void 0===t&&(t={}),t.keyword=e,et[e]=new Je(e,t)}var nt={num:new Je("num",Ze),regexp:new Je("regexp",Ze),string:new Je("string",Ze),name:new Je("name",Ze),privateId:new Je("privateId",Ze),eof:new Je("eof"),bracketL:new Je("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new Je("]"),braceL:new Je("{",{beforeExpr:!0,startsExpr:!0}),braceR:new Je("}"),parenL:new Je("(",{beforeExpr:!0,startsExpr:!0}),parenR:new Je(")"),comma:new Je(",",Ye),semi:new Je(";",Ye),colon:new Je(":",Ye),dot:new Je("."),question:new Je("?",Ye),questionDot:new Je("?."),arrow:new Je("=>",Ye),template:new Je("template"),invalidTemplate:new Je("invalidTemplate"),ellipsis:new Je("...",Ye),backQuote:new Je("`",Ze),dollarBraceL:new Je("${",{beforeExpr:!0,startsExpr:!0}),eq:new Je("=",{beforeExpr:!0,isAssign:!0}),assign:new Je("_=",{beforeExpr:!0,isAssign:!0}),incDec:new Je("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new Je("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:Qe("||",1),logicalAND:Qe("&&",2),bitwiseOR:Qe("|",3),bitwiseXOR:Qe("^",4),bitwiseAND:Qe("&",5),equality:Qe("==/!=/===/!==",6),relational:Qe("/<=/>=",7),bitShift:Qe("<>/>>>",8),plusMin:new Je("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:Qe("%",10),star:Qe("*",10),slash:Qe("/",10),starstar:new Je("**",{beforeExpr:!0}),coalesce:Qe("??",1),_break:tt("break"),_case:tt("case",Ye),_catch:tt("catch"),_continue:tt("continue"),_debugger:tt("debugger"),_default:tt("default",Ye),_do:tt("do",{isLoop:!0,beforeExpr:!0}),_else:tt("else",Ye),_finally:tt("finally"),_for:tt("for",{isLoop:!0}),_function:tt("function",Ze),_if:tt("if"),_return:tt("return",Ye),_switch:tt("switch"),_throw:tt("throw",Ye),_try:tt("try"),_var:tt("var"),_const:tt("const"),_while:tt("while",{isLoop:!0}),_with:tt("with"),_new:tt("new",{beforeExpr:!0,startsExpr:!0}),_this:tt("this",Ze),_super:tt("super",Ze),_class:tt("class",Ze),_extends:tt("extends",Ye),_export:tt("export"),_import:tt("import",Ze),_null:tt("null",Ze),_true:tt("true",Ze),_false:tt("false",Ze),_in:tt("in",{beforeExpr:!0,binop:7}),_instanceof:tt("instanceof",{beforeExpr:!0,binop:7}),_typeof:tt("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:tt("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:tt("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},rt=/\r\n?|\n|\u2028|\u2029/,st=new RegExp(rt.source,"g");function at(e){return 10===e||13===e||8232===e||8233===e}function it(e,t,n){void 0===n&&(n=e.length);for(var r=t;r>10),56320+(1023&e)))}var vt=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,gt=function(e,t){this.line=e,this.column=t};gt.prototype.offset=function(e){return new gt(this.line,this.column+e)};var bt=function(e,t,n){this.start=t,this.end=n,null!==e.sourceFile&&(this.source=e.sourceFile)};function xt(e,t){for(var n=1,r=0;;){var s=it(e,r,t);if(s<0)return new gt(n,t-r);++n,r=s}}var _t={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},Ct=!1;function wt(e){var t={};for(var n in _t)t[n]=e&&dt(e,n)?e[n]:_t[n];if("latest"===t.ecmaVersion?t.ecmaVersion=1e8:null==t.ecmaVersion?(!Ct&&"object"==typeof console&&console.warn&&(Ct=!0,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):t.ecmaVersion>=2015&&(t.ecmaVersion-=2009),null==t.allowReserved&&(t.allowReserved=t.ecmaVersion<5),e&&null!=e.allowHashBang||(t.allowHashBang=t.ecmaVersion>=14),ht(t.onToken)){var r=t.onToken;t.onToken=function(e){return r.push(e)}}return ht(t.onComment)&&(t.onComment=function(e,t){return function(n,r,s,a,i,o){var l={type:n?"Block":"Line",value:r,start:s,end:a};e.locations&&(l.loc=new bt(this,i,o)),e.ranges&&(l.range=[s,a]),t.push(l)}}(t,t.onComment)),t}var kt=256;function Pt(e,t){return 2|(e?4:0)|(t?8:0)}var St=function(e,t,n){this.options=e=wt(e),this.sourceFile=e.sourceFile,this.keywords=ft(He[e.ecmaVersion>=6?6:"module"===e.sourceType?"5module":5]);var r="";!0!==e.allowReserved&&(r=Fe[e.ecmaVersion>=6?6:5===e.ecmaVersion?5:3],"module"===e.sourceType&&(r+=" await")),this.reservedWords=ft(r);var s=(r?r+" ":"")+Fe.strict;this.reservedWordsStrict=ft(s),this.reservedWordsStrictBind=ft(s+" "+Fe.strictBind),this.input=String(t),this.containsEsc=!1,n?(this.pos=n,this.lineStart=this.input.lastIndexOf("\n",n-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(rt).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=nt.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="module"===e.sourceType,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),0===this.pos&&e.allowHashBang&&"#!"===this.input.slice(0,2)&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(1),this.regexpState=null,this.privateNameStack=[]},Et={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}};St.prototype.parse=function(){var e=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(e)},Et.inFunction.get=function(){return(2&this.currentVarScope().flags)>0},Et.inGenerator.get=function(){return(8&this.currentVarScope().flags)>0&&!this.currentVarScope().inClassFieldInit},Et.inAsync.get=function(){return(4&this.currentVarScope().flags)>0&&!this.currentVarScope().inClassFieldInit},Et.canAwait.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e];if(t.inClassFieldInit||t.flags&kt)return!1;if(2&t.flags)return(4&t.flags)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction},Et.allowSuper.get=function(){var e=this.currentThisScope(),t=e.flags,n=e.inClassFieldInit;return(64&t)>0||n||this.options.allowSuperOutsideMethod},Et.allowDirectSuper.get=function(){return(128&this.currentThisScope().flags)>0},Et.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},Et.allowNewDotTarget.get=function(){var e=this.currentThisScope(),t=e.flags,n=e.inClassFieldInit;return(258&t)>0||n},Et.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&kt)>0},St.extend=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];for(var n=this,r=0;r=,?^&]/.test(s)||"!"===s&&"="===this.input.charAt(r+1))}e+=t[0].length,lt.lastIndex=e,e+=lt.exec(this.input)[0].length,";"===this.input[e]&&e++}},At.eat=function(e){return this.type===e&&(this.next(),!0)},At.isContextual=function(e){return this.type===nt.name&&this.value===e&&!this.containsEsc},At.eatContextual=function(e){return!!this.isContextual(e)&&(this.next(),!0)},At.expectContextual=function(e){this.eatContextual(e)||this.unexpected()},At.canInsertSemicolon=function(){return this.type===nt.eof||this.type===nt.braceR||rt.test(this.input.slice(this.lastTokEnd,this.start))},At.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},At.semicolon=function(){this.eat(nt.semi)||this.insertSemicolon()||this.unexpected()},At.afterTrailingComma=function(e,t){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t||this.next(),!0},At.expect=function(e){this.eat(e)||this.unexpected()},At.unexpected=function(e){this.raise(null!=e?e:this.start,"Unexpected token")};var $t=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};At.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")}},At.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")},At.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos55295&&r<56320)return!0;if(Ke(r,!0)){for(var s=n+1;Xe(r=this.input.charCodeAt(s),!0);)++s;if(92===r||r>55295&&r<56320)return!0;var a=this.input.slice(n,s);if(!Ue.test(a))return!0}return!1},Rt.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;lt.lastIndex=this.pos;var e,t=lt.exec(this.input),n=this.pos+t[0].length;return!(rt.test(this.input.slice(this.pos,n))||"function"!==this.input.slice(n,n+8)||n+8!==this.input.length&&(Xe(e=this.input.charCodeAt(n+8))||e>55295&&e<56320))},Rt.parseStatement=function(e,t,n){var r,s=this.type,a=this.startNode();switch(this.isLet(e)&&(s=nt._var,r="let"),s){case nt._break:case nt._continue:return this.parseBreakContinueStatement(a,s.keyword);case nt._debugger:return this.parseDebuggerStatement(a);case nt._do:return this.parseDoStatement(a);case nt._for:return this.parseForStatement(a);case nt._function:return e&&(this.strict||"if"!==e&&"label"!==e)&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(a,!1,!e);case nt._class:return e&&this.unexpected(),this.parseClass(a,!0);case nt._if:return this.parseIfStatement(a);case nt._return:return this.parseReturnStatement(a);case nt._switch:return this.parseSwitchStatement(a);case nt._throw:return this.parseThrowStatement(a);case nt._try:return this.parseTryStatement(a);case nt._const:case nt._var:return r=r||this.value,e&&"var"!==r&&this.unexpected(),this.parseVarStatement(a,r);case nt._while:return this.parseWhileStatement(a);case nt._with:return this.parseWithStatement(a);case nt.braceL:return this.parseBlock(!0,a);case nt.semi:return this.parseEmptyStatement(a);case nt._export:case nt._import:if(this.options.ecmaVersion>10&&s===nt._import){lt.lastIndex=this.pos;var i=lt.exec(this.input),o=this.pos+i[0].length,l=this.input.charCodeAt(o);if(40===l||46===l)return this.parseExpressionStatement(a,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'")),s===nt._import?this.parseImport(a):this.parseExport(a,n);default:if(this.isAsyncFunction())return e&&this.unexpected(),this.next(),this.parseFunctionStatement(a,!0,!e);var c=this.value,u=this.parseExpression();return s===nt.name&&"Identifier"===u.type&&this.eat(nt.colon)?this.parseLabeledStatement(a,c,u,e):this.parseExpressionStatement(a,u)}},Rt.parseBreakContinueStatement=function(e,t){var n="break"===t;this.next(),this.eat(nt.semi)||this.insertSemicolon()?e.label=null:this.type!==nt.name?this.unexpected():(e.label=this.parseIdent(),this.semicolon());for(var r=0;r=6?this.eat(nt.semi):this.semicolon(),this.finishNode(e,"DoWhileStatement")},Rt.parseForStatement=function(e){this.next();var t=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(It),this.enterScope(0),this.expect(nt.parenL),this.type===nt.semi)return t>-1&&this.unexpected(t),this.parseFor(e,null);var n=this.isLet();if(this.type===nt._var||this.type===nt._const||n){var r=this.startNode(),s=n?"let":this.value;return this.next(),this.parseVar(r,!0,s),this.finishNode(r,"VariableDeclaration"),(this.type===nt._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&1===r.declarations.length?(this.options.ecmaVersion>=9&&(this.type===nt._in?t>-1&&this.unexpected(t):e.await=t>-1),this.parseForIn(e,r)):(t>-1&&this.unexpected(t),this.parseFor(e,r))}var a=this.isContextual("let"),i=!1,o=this.containsEsc,l=new $t,c=this.start,u=t>-1?this.parseExprSubscripts(l,"await"):this.parseExpression(!0,l);return this.type===nt._in||(i=this.options.ecmaVersion>=6&&this.isContextual("of"))?(t>-1?(this.type===nt._in&&this.unexpected(t),e.await=!0):i&&this.options.ecmaVersion>=8&&(u.start!==c||o||"Identifier"!==u.type||"async"!==u.name?this.options.ecmaVersion>=9&&(e.await=!1):this.unexpected()),a&&i&&this.raise(u.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(u,!1,l),this.checkLValPattern(u),this.parseForIn(e,u)):(this.checkExpressionErrors(l,!0),t>-1&&this.unexpected(t),this.parseFor(e,u))},Rt.parseFunctionStatement=function(e,t,n){return this.next(),this.parseFunction(e,Mt|(n?0:Ot),!1,t)},Rt.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement("if"),e.alternate=this.eat(nt._else)?this.parseStatement("if"):null,this.finishNode(e,"IfStatement")},Rt.parseReturnStatement=function(e){return this.inFunction||this.options.allowReturnOutsideFunction||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(nt.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")},Rt.parseSwitchStatement=function(e){var t;this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(nt.braceL),this.labels.push(qt),this.enterScope(0);for(var n=!1;this.type!==nt.braceR;)if(this.type===nt._case||this.type===nt._default){var r=this.type===nt._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(nt.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")},Rt.parseThrowStatement=function(e){return this.next(),rt.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 Lt=[];Rt.parseCatchClauseParam=function(){var e=this.parseBindingAtom(),t="Identifier"===e.type;return this.enterScope(t?32:0),this.checkLValPattern(e,t?4:2),this.expect(nt.parenR),e},Rt.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===nt._catch){var t=this.startNode();this.next(),this.eat(nt.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(nt._finally)?this.parseBlock():null,e.handler||e.finalizer||this.raise(e.start,"Missing catch or finally clause"),this.finishNode(e,"TryStatement")},Rt.parseVarStatement=function(e,t,n){return this.next(),this.parseVar(e,!1,t,n),this.semicolon(),this.finishNode(e,"VariableDeclaration")},Rt.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(It),e.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(e,"WhileStatement")},Rt.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")},Rt.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,"EmptyStatement")},Rt.parseLabeledStatement=function(e,t,n,r){for(var s=0,a=this.labels;s=0;o--){var l=this.labels[o];if(l.statementStart!==e.start)break;l.statementStart=this.start,l.kind=i}return this.labels.push({name:t,kind:i,statementStart:this.start}),e.body=this.parseStatement(r?-1===r.indexOf("label")?r+"label":r:"label"),this.labels.pop(),e.label=n,this.finishNode(e,"LabeledStatement")},Rt.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")},Rt.parseBlock=function(e,t,n){for(void 0===e&&(e=!0),void 0===t&&(t=this.startNode()),t.body=[],this.expect(nt.braceL),e&&this.enterScope(0);this.type!==nt.braceR;){var r=this.parseStatement(null);t.body.push(r)}return n&&(this.strict=!1),this.next(),e&&this.exitScope(),this.finishNode(t,"BlockStatement")},Rt.parseFor=function(e,t){return e.init=t,this.expect(nt.semi),e.test=this.type===nt.semi?null:this.parseExpression(),this.expect(nt.semi),e.update=this.type===nt.parenR?null:this.parseExpression(),this.expect(nt.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,"ForStatement")},Rt.parseForIn=function(e,t){var n=this.type===nt._in;return this.next(),"VariableDeclaration"===t.type&&null!=t.declarations[0].init&&(!n||this.options.ecmaVersion<8||this.strict||"var"!==t.kind||"Identifier"!==t.declarations[0].id.type)&&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(nt.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,n?"ForInStatement":"ForOfStatement")},Rt.parseVar=function(e,t,n,r){for(e.declarations=[],e.kind=n;;){var s=this.startNode();if(this.parseVarId(s,n),this.eat(nt.eq)?s.init=this.parseMaybeAssign(t):r||"const"!==n||this.type===nt._in||this.options.ecmaVersion>=6&&this.isContextual("of")?r||"Identifier"===s.id.type||t&&(this.type===nt._in||this.isContextual("of"))?s.init=null:this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):this.unexpected(),e.declarations.push(this.finishNode(s,"VariableDeclarator")),!this.eat(nt.comma))break}return e},Rt.parseVarId=function(e,t){e.id=this.parseBindingAtom(),this.checkLValPattern(e.id,"var"===t?1:2,!1)};var Mt=1,Ot=2;function Nt(e,t){var n=t.key.name,r=e[n],s="true";return"MethodDefinition"!==t.type||"get"!==t.kind&&"set"!==t.kind||(s=(t.static?"s":"i")+t.kind),"iget"===r&&"iset"===s||"iset"===r&&"iget"===s||"sget"===r&&"sset"===s||"sset"===r&&"sget"===s?(e[n]="true",!1):!!r||(e[n]=s,!1)}function Dt(e,t){var n=e.computed,r=e.key;return!n&&("Identifier"===r.type&&r.name===t||"Literal"===r.type&&r.value===t)}Rt.parseFunction=function(e,t,n,r,s){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!r)&&(this.type===nt.star&&t&Ot&&this.unexpected(),e.generator=this.eat(nt.star)),this.options.ecmaVersion>=8&&(e.async=!!r),t&Mt&&(e.id=4&t&&this.type!==nt.name?null:this.parseIdent(),!e.id||t&Ot||this.checkLValSimple(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?1:2:3));var a=this.yieldPos,i=this.awaitPos,o=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(Pt(e.async,e.generator)),t&Mt||(e.id=this.type===nt.name?this.parseIdent():null),this.parseFunctionParams(e),this.parseFunctionBody(e,n,!1,s),this.yieldPos=a,this.awaitPos=i,this.awaitIdentPos=o,this.finishNode(e,t&Mt?"FunctionDeclaration":"FunctionExpression")},Rt.parseFunctionParams=function(e){this.expect(nt.parenL),e.params=this.parseBindingList(nt.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},Rt.parseClass=function(e,t){this.next();var n=this.strict;this.strict=!0,this.parseClassId(e,t),this.parseClassSuper(e);var r=this.enterClassBody(),s=this.startNode(),a=!1;for(s.body=[],this.expect(nt.braceL);this.type!==nt.braceR;){var i=this.parseClassElement(null!==e.superClass);i&&(s.body.push(i),"MethodDefinition"===i.type&&"constructor"===i.kind?(a&&this.raiseRecoverable(i.start,"Duplicate constructor in the same class"),a=!0):i.key&&"PrivateIdentifier"===i.key.type&&Nt(r,i)&&this.raiseRecoverable(i.key.start,"Identifier '#"+i.key.name+"' has already been declared"))}return this.strict=n,this.next(),e.body=this.finishNode(s,"ClassBody"),this.exitClassBody(),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")},Rt.parseClassElement=function(e){if(this.eat(nt.semi))return null;var t=this.options.ecmaVersion,n=this.startNode(),r="",s=!1,a=!1,i="method",o=!1;if(this.eatContextual("static")){if(t>=13&&this.eat(nt.braceL))return this.parseClassStaticBlock(n),n;this.isClassElementNameStart()||this.type===nt.star?o=!0:r="static"}if(n.static=o,!r&&t>=8&&this.eatContextual("async")&&(!this.isClassElementNameStart()&&this.type!==nt.star||this.canInsertSemicolon()?r="async":a=!0),!r&&(t>=9||!a)&&this.eat(nt.star)&&(s=!0),!r&&!a&&!s){var l=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?i=l:r=l)}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===nt.parenL||"method"!==i||s||a){var c=!n.static&&Dt(n,"constructor"),u=c&&e;c&&"method"!==i&&this.raise(n.key.start,"Constructor can't have get/set modifier"),n.kind=c?"constructor":i,this.parseClassMethod(n,s,a,u)}else this.parseClassField(n);return n},Rt.isClassElementNameStart=function(){return this.type===nt.name||this.type===nt.privateId||this.type===nt.num||this.type===nt.string||this.type===nt.bracketL||this.type.keyword},Rt.parseClassElementName=function(e){this.type===nt.privateId?("constructor"===this.value&&this.raise(this.start,"Classes can't have an element named '#constructor'"),e.computed=!1,e.key=this.parsePrivateIdent()):this.parsePropertyName(e)},Rt.parseClassMethod=function(e,t,n,r){var s=e.key;"constructor"===e.kind?(t&&this.raise(s.start,"Constructor can't be a generator"),n&&this.raise(s.start,"Constructor can't be an async method")):e.static&&Dt(e,"prototype")&&this.raise(s.start,"Classes may not have a static property named prototype");var a=e.value=this.parseMethod(t,n,r);return"get"===e.kind&&0!==a.params.length&&this.raiseRecoverable(a.start,"getter should have no params"),"set"===e.kind&&1!==a.params.length&&this.raiseRecoverable(a.start,"setter should have exactly one param"),"set"===e.kind&&"RestElement"===a.params[0].type&&this.raiseRecoverable(a.params[0].start,"Setter cannot use rest params"),this.finishNode(e,"MethodDefinition")},Rt.parseClassField=function(e){if(Dt(e,"constructor")?this.raise(e.key.start,"Classes can't have a field named 'constructor'"):e.static&&Dt(e,"prototype")&&this.raise(e.key.start,"Classes can't have a static field named 'prototype'"),this.eat(nt.eq)){var t=this.currentThisScope(),n=t.inClassFieldInit;t.inClassFieldInit=!0,e.value=this.parseMaybeAssign(),t.inClassFieldInit=n}else e.value=null;return this.semicolon(),this.finishNode(e,"PropertyDefinition")},Rt.parseClassStaticBlock=function(e){e.body=[];var t=this.labels;for(this.labels=[],this.enterScope(320);this.type!==nt.braceR;){var n=this.parseStatement(null);e.body.push(n)}return this.next(),this.exitScope(),this.labels=t,this.finishNode(e,"StaticBlock")},Rt.parseClassId=function(e,t){this.type===nt.name?(e.id=this.parseIdent(),t&&this.checkLValSimple(e.id,2,!1)):(!0===t&&this.unexpected(),e.id=null)},Rt.parseClassSuper=function(e){e.superClass=this.eat(nt._extends)?this.parseExprSubscripts(null,!1):null},Rt.enterClassBody=function(){var e={declared:Object.create(null),used:[]};return this.privateNameStack.push(e),e.declared},Rt.exitClassBody=function(){var e=this.privateNameStack.pop(),t=e.declared,n=e.used;if(this.options.checkPrivateFields)for(var r=this.privateNameStack.length,s=0===r?null:this.privateNameStack[r-1],a=0;a=11&&(this.eatContextual("as")?(e.exported=this.parseModuleExportName(),this.checkExport(t,e.exported,this.lastTokStart)):e.exported=null),this.expectContextual("from"),this.type!==nt.string&&this.unexpected(),e.source=this.parseExprAtom(),this.semicolon(),this.finishNode(e,"ExportAllDeclaration")},Rt.parseExport=function(e,t){if(this.next(),this.eat(nt.star))return this.parseExportAllDeclaration(e,t);if(this.eat(nt._default))return this.checkExport(t,"default",this.lastTokStart),e.declaration=this.parseExportDefaultDeclaration(),this.finishNode(e,"ExportDefaultDeclaration");if(this.shouldParseExportStatement())e.declaration=this.parseExportDeclaration(e),"VariableDeclaration"===e.declaration.type?this.checkVariableExport(t,e.declaration.declarations):this.checkExport(t,e.declaration.id,e.declaration.id.start),e.specifiers=[],e.source=null;else{if(e.declaration=null,e.specifiers=this.parseExportSpecifiers(t),this.eatContextual("from"))this.type!==nt.string&&this.unexpected(),e.source=this.parseExprAtom();else{for(var n=0,r=e.specifiers;n=13&&this.type===nt.string){var e=this.parseLiteral(this.value);return vt.test(e.value)&&this.raise(e.start,"An export name cannot include a lone surrogate."),e}return this.parseIdent(!0)},Rt.adaptDirectivePrologue=function(e){for(var t=0;t=5&&"ExpressionStatement"===e.type&&"Literal"===e.expression.type&&"string"==typeof e.expression.value&&('"'===this.input[e.start]||"'"===this.input[e.start])};var jt=St.prototype;jt.toAssignable=function(e,t,n){if(this.options.ecmaVersion>=6&&e)switch(e.type){case"Identifier":this.inAsync&&"await"===e.name&&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,s=e.properties;r=8&&!o&&"async"===l.name&&!this.canInsertSemicolon()&&this.eat(nt._function))return this.overrideContext(Ft.f_expr),this.parseFunction(this.startNodeAt(a,i),0,!1,!0,t);if(s&&!this.canInsertSemicolon()){if(this.eat(nt.arrow))return this.parseArrowExpression(this.startNodeAt(a,i),[l],!1,t);if(this.options.ecmaVersion>=8&&"async"===l.name&&this.type===nt.name&&!o&&(!this.potentialArrowInForAwait||"of"!==this.value||this.containsEsc))return l=this.parseIdent(!1),!this.canInsertSemicolon()&&this.eat(nt.arrow)||this.unexpected(),this.parseArrowExpression(this.startNodeAt(a,i),[l],!0,t)}return l;case nt.regexp:var c=this.value;return(r=this.parseLiteral(c.value)).regex={pattern:c.pattern,flags:c.flags},r;case nt.num:case nt.string:return this.parseLiteral(this.value);case nt._null:case nt._true:case nt._false:return(r=this.startNode()).value=this.type===nt._null?null:this.type===nt._true,r.raw=this.type.keyword,this.next(),this.finishNode(r,"Literal");case nt.parenL:var u=this.start,p=this.parseParenAndDistinguishExpression(s,t);return e&&(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(p)&&(e.parenthesizedAssign=u),e.parenthesizedBind<0&&(e.parenthesizedBind=u)),p;case nt.bracketL:return r=this.startNode(),this.next(),r.elements=this.parseExprList(nt.bracketR,!0,!0,e),this.finishNode(r,"ArrayExpression");case nt.braceL:return this.overrideContext(Ft.b_expr),this.parseObj(!1,e);case nt._function:return r=this.startNode(),this.next(),this.parseFunction(r,0);case nt._class:return this.parseClass(this.startNode(),!1);case nt._new:return this.parseNew();case nt.backQuote:return this.parseTemplate();case nt._import:return this.options.ecmaVersion>=11?this.parseExprImport(n):this.unexpected();default:return this.parseExprAtomDefault()}},Ht.parseExprAtomDefault=function(){this.unexpected()},Ht.parseExprImport=function(e){var t=this.startNode();if(this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import"),this.next(),this.type===nt.parenL&&!e)return this.parseDynamicImport(t);if(this.type===nt.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)}this.unexpected()},Ht.parseDynamicImport=function(e){if(this.next(),e.source=this.parseMaybeAssign(),!this.eat(nt.parenR)){var t=this.start;this.eat(nt.comma)&&this.eat(nt.parenR)?this.raiseRecoverable(t,"Trailing comma is not allowed in import()"):this.unexpected(t)}return this.finishNode(e,"ImportExpression")},Ht.parseImportMeta=function(e){this.next();var t=this.containsEsc;return e.property=this.parseIdent(!0),"meta"!==e.property.name&&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"),"module"===this.options.sourceType||this.options.allowImportExportEverywhere||this.raiseRecoverable(e.start,"Cannot use 'import.meta' outside a module"),this.finishNode(e,"MetaProperty")},Ht.parseLiteral=function(e){var t=this.startNode();return t.value=e,t.raw=this.input.slice(this.start,this.end),110===t.raw.charCodeAt(t.raw.length-1)&&(t.bigint=t.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(t,"Literal")},Ht.parseParenExpression=function(){this.expect(nt.parenL);var e=this.parseExpression();return this.expect(nt.parenR),e},Ht.shouldParseArrow=function(e){return!this.canInsertSemicolon()},Ht.parseParenAndDistinguishExpression=function(e,t){var n,r=this.start,s=this.startLoc,a=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var i,o=this.start,l=this.startLoc,c=[],u=!0,p=!1,d=new $t,h=this.yieldPos,m=this.awaitPos;for(this.yieldPos=0,this.awaitPos=0;this.type!==nt.parenR;){if(u?u=!1:this.expect(nt.comma),a&&this.afterTrailingComma(nt.parenR,!0)){p=!0;break}if(this.type===nt.ellipsis){i=this.start,c.push(this.parseParenItem(this.parseRestBinding())),this.type===nt.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}c.push(this.parseMaybeAssign(!1,d,this.parseParenItem))}var f=this.lastTokEnd,y=this.lastTokEndLoc;if(this.expect(nt.parenR),e&&this.shouldParseArrow(c)&&this.eat(nt.arrow))return this.checkPatternErrors(d,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=h,this.awaitPos=m,this.parseParenArrowList(r,s,c,t);c.length&&!p||this.unexpected(this.lastTokStart),i&&this.unexpected(i),this.checkExpressionErrors(d,!0),this.yieldPos=h||this.yieldPos,this.awaitPos=m||this.awaitPos,c.length>1?((n=this.startNodeAt(o,l)).expressions=c,this.finishNodeAt(n,"SequenceExpression",f,y)):n=c[0]}else n=this.parseParenExpression();if(this.options.preserveParens){var v=this.startNodeAt(r,s);return v.expression=n,this.finishNode(v,"ParenthesizedExpression")}return n},Ht.parseParenItem=function(e){return e},Ht.parseParenArrowList=function(e,t,n,r){return this.parseArrowExpression(this.startNodeAt(e,t),n,!1,r)};var Wt=[];Ht.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===nt.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),"target"!==e.property.name&&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,s=this.startLoc;return e.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),r,s,!0,!1),this.eat(nt.parenL)?e.arguments=this.parseExprList(nt.parenR,this.options.ecmaVersion>=8,!1):e.arguments=Wt,this.finishNode(e,"NewExpression")},Ht.parseTemplateElement=function(e){var t=e.isTagged,n=this.startNode();return this.type===nt.invalidTemplate?(t||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),n.value={raw:this.value.replace(/\r\n?/g,"\n"),cooked:null}):n.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,"\n"),cooked:this.value},this.next(),n.tail=this.type===nt.backQuote,this.finishNode(n,"TemplateElement")},Ht.parseTemplate=function(e){void 0===e&&(e={});var t=e.isTagged;void 0===t&&(t=!1);var n=this.startNode();this.next(),n.expressions=[];var r=this.parseTemplateElement({isTagged:t});for(n.quasis=[r];!r.tail;)this.type===nt.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(nt.dollarBraceL),n.expressions.push(this.parseExpression()),this.expect(nt.braceR),n.quasis.push(r=this.parseTemplateElement({isTagged:t}));return this.next(),this.finishNode(n,"TemplateLiteral")},Ht.isAsyncProp=function(e){return!e.computed&&"Identifier"===e.key.type&&"async"===e.key.name&&(this.type===nt.name||this.type===nt.num||this.type===nt.string||this.type===nt.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===nt.star)&&!rt.test(this.input.slice(this.lastTokEnd,this.start))},Ht.parseObj=function(e,t){var n=this.startNode(),r=!0,s={};for(n.properties=[],this.next();!this.eat(nt.braceR);){if(r)r=!1;else if(this.expect(nt.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(nt.braceR))break;var a=this.parseProperty(e,t);e||this.checkPropClash(a,s,t),n.properties.push(a)}return this.finishNode(n,e?"ObjectPattern":"ObjectExpression")},Ht.parseProperty=function(e,t){var n,r,s,a,i=this.startNode();if(this.options.ecmaVersion>=9&&this.eat(nt.ellipsis))return e?(i.argument=this.parseIdent(!1),this.type===nt.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.finishNode(i,"RestElement")):(i.argument=this.parseMaybeAssign(!1,t),this.type===nt.comma&&t&&t.trailingComma<0&&(t.trailingComma=this.start),this.finishNode(i,"SpreadElement"));this.options.ecmaVersion>=6&&(i.method=!1,i.shorthand=!1,(e||t)&&(s=this.start,a=this.startLoc),e||(n=this.eat(nt.star)));var o=this.containsEsc;return this.parsePropertyName(i),!e&&!o&&this.options.ecmaVersion>=8&&!n&&this.isAsyncProp(i)?(r=!0,n=this.options.ecmaVersion>=9&&this.eat(nt.star),this.parsePropertyName(i)):r=!1,this.parsePropertyValue(i,e,n,r,s,a,t,o),this.finishNode(i,"Property")},Ht.parseGetterSetter=function(e){e.kind=e.key.name,this.parsePropertyName(e),e.value=this.parseMethod(!1);var t="get"===e.kind?0:1;if(e.value.params.length!==t){var n=e.value.start;"get"===e.kind?this.raiseRecoverable(n,"getter should have no params"):this.raiseRecoverable(n,"setter should have exactly one param")}else"set"===e.kind&&"RestElement"===e.value.params[0].type&&this.raiseRecoverable(e.value.params[0].start,"Setter cannot use rest params")},Ht.parsePropertyValue=function(e,t,n,r,s,a,i,o){(n||r)&&this.type===nt.colon&&this.unexpected(),this.eat(nt.colon)?(e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,i),e.kind="init"):this.options.ecmaVersion>=6&&this.type===nt.parenL?(t&&this.unexpected(),e.kind="init",e.method=!0,e.value=this.parseMethod(n,r)):t||o||!(this.options.ecmaVersion>=5)||e.computed||"Identifier"!==e.key.type||"get"!==e.key.name&&"set"!==e.key.name||this.type===nt.comma||this.type===nt.braceR||this.type===nt.eq?this.options.ecmaVersion>=6&&!e.computed&&"Identifier"===e.key.type?((n||r)&&this.unexpected(),this.checkUnreserved(e.key),"await"!==e.key.name||this.awaitIdentPos||(this.awaitIdentPos=s),e.kind="init",t?e.value=this.parseMaybeDefault(s,a,this.copyNode(e.key)):this.type===nt.eq&&i?(i.shorthandAssign<0&&(i.shorthandAssign=this.start),e.value=this.parseMaybeDefault(s,a,this.copyNode(e.key))):e.value=this.copyNode(e.key),e.shorthand=!0):this.unexpected():((n||r)&&this.unexpected(),this.parseGetterSetter(e))},Ht.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(nt.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(nt.bracketR),e.key;e.computed=!1}return e.key=this.type===nt.num||this.type===nt.string?this.parseExprAtom():this.parseIdent("never"!==this.options.allowReserved)},Ht.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)},Ht.parseMethod=function(e,t,n){var r=this.startNode(),s=this.yieldPos,a=this.awaitPos,i=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(64|Pt(t,r.generator)|(n?128:0)),this.expect(nt.parenL),r.params=this.parseBindingList(nt.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(r,!1,!0,!1),this.yieldPos=s,this.awaitPos=a,this.awaitIdentPos=i,this.finishNode(r,"FunctionExpression")},Ht.parseArrowExpression=function(e,t,n,r){var s=this.yieldPos,a=this.awaitPos,i=this.awaitIdentPos;return this.enterScope(16|Pt(n,!1)),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=s,this.awaitPos=a,this.awaitIdentPos=i,this.finishNode(e,"ArrowFunctionExpression")},Ht.parseFunctionBody=function(e,t,n,r){var s=t&&this.type!==nt.braceL,a=this.strict,i=!1;if(s)e.body=this.parseMaybeAssign(r),e.expression=!0,this.checkParams(e,!1);else{var o=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);a&&!o||(i=this.strictDirective(this.end))&&o&&this.raiseRecoverable(e.start,"Illegal 'use strict' directive in function with non-simple parameter list");var l=this.labels;this.labels=[],i&&(this.strict=!0),this.checkParams(e,!a&&!i&&!t&&!n&&this.isSimpleParamList(e.params)),this.strict&&e.id&&this.checkLValSimple(e.id,5),e.body=this.parseBlock(!1,void 0,i&&!a),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=l}this.exitScope()},Ht.isSimpleParamList=function(e){for(var t=0,n=e;t-1||s.functions.indexOf(e)>-1||s.var.indexOf(e)>-1,s.lexical.push(e),this.inModule&&1&s.flags&&delete this.undefinedExports[e]}else if(4===t){this.currentScope().lexical.push(e)}else if(3===t){var a=this.currentScope();r=this.treatFunctionsAsVar?a.lexical.indexOf(e)>-1:a.lexical.indexOf(e)>-1||a.var.indexOf(e)>-1,a.functions.push(e)}else for(var i=this.scopeStack.length-1;i>=0;--i){var o=this.scopeStack[i];if(o.lexical.indexOf(e)>-1&&!(32&o.flags&&o.lexical[0]===e)||!this.treatFunctionsAsVarInScope(o)&&o.functions.indexOf(e)>-1){r=!0;break}if(o.var.push(e),this.inModule&&1&o.flags&&delete this.undefinedExports[e],259&o.flags)break}r&&this.raiseRecoverable(n,"Identifier '"+e+"' has already been declared")},Kt.checkLocalExport=function(e){-1===this.scopeStack[0].lexical.indexOf(e.name)&&-1===this.scopeStack[0].var.indexOf(e.name)&&(this.undefinedExports[e.name]=e)},Kt.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},Kt.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(259&t.flags)return t}},Kt.currentThisScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(259&t.flags&&!(16&t.flags))return t}};var Jt=function(e,t,n){this.type="",this.start=t,this.end=0,e.options.locations&&(this.loc=new bt(e,n)),e.options.directSourceFile&&(this.sourceFile=e.options.directSourceFile),e.options.ranges&&(this.range=[t,0])},Qt=St.prototype;function Yt(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}Qt.startNode=function(){return new Jt(this,this.start,this.startLoc)},Qt.startNodeAt=function(e,t){return new Jt(this,e,t)},Qt.finishNode=function(e,t){return Yt.call(this,e,t,this.lastTokEnd,this.lastTokEndLoc)},Qt.finishNodeAt=function(e,t,n,r){return Yt.call(this,e,t,n,r)},Qt.copyNode=function(e){var t=new Jt(this,e.start,this.startLoc);for(var n in e)t[n]=e[n];return t};var Zt="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",en=Zt+" Extended_Pictographic",tn=en+" EBase EComp EMod EPres ExtPict",nn={9:Zt,10:en,11:en,12:tn,13:tn,14:tn},rn={9:"",10:"",11:"",12:"",13:"",14:"Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji"},sn="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",an="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",on=an+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",ln=on+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",cn=ln+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",un=cn+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",pn={9:an,10:on,11:ln,12:cn,13:un,14:un+" Hrkt Katakana_Or_Hiragana Kawi Nag_Mundari Nagm Unknown Zzzz"},dn={};function hn(e){var t=dn[e]={binary:ft(nn[e]+" "+sn),binaryOfStrings:ft(rn[e]),nonBinary:{General_Category:ft(sn),Script:ft(pn[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(var mn=0,fn=[9,10,11,12,13,14];mn=6?"uy":"")+(e.options.ecmaVersion>=9?"s":"")+(e.options.ecmaVersion>=13?"d":"")+(e.options.ecmaVersion>=15?"v":""),this.unicodeProperties=dn[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};function bn(e){return 36===e||e>=40&&e<=43||46===e||63===e||e>=91&&e<=94||e>=123&&e<=125}function xn(e){return e>=65&&e<=90||e>=97&&e<=122}gn.prototype.reset=function(e,t,n){var r=-1!==n.indexOf("v"),s=-1!==n.indexOf("u");this.start=0|e,this.source=t+"",this.flags=n,r&&this.parser.options.ecmaVersion>=15?(this.switchU=!0,this.switchV=!0,this.switchN=!0):(this.switchU=s&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=s&&this.parser.options.ecmaVersion>=9)},gn.prototype.raise=function(e){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+e)},gn.prototype.at=function(e,t){void 0===t&&(t=!1);var n=this.source,r=n.length;if(e>=r)return-1;var s=n.charCodeAt(e);if(!t&&!this.switchU||s<=55295||s>=57344||e+1>=r)return s;var a=n.charCodeAt(e+1);return a>=56320&&a<=57343?(s<<10)+a-56613888:s},gn.prototype.nextIndex=function(e,t){void 0===t&&(t=!1);var n=this.source,r=n.length;if(e>=r)return r;var s,a=n.charCodeAt(e);return!t&&!this.switchU||a<=55295||a>=57344||e+1>=r||(s=n.charCodeAt(e+1))<56320||s>57343?e+1:e+2},gn.prototype.current=function(e){return void 0===e&&(e=!1),this.at(this.pos,e)},gn.prototype.lookahead=function(e){return void 0===e&&(e=!1),this.at(this.nextIndex(this.pos,e),e)},gn.prototype.advance=function(e){void 0===e&&(e=!1),this.pos=this.nextIndex(this.pos,e)},gn.prototype.eat=function(e,t){return void 0===t&&(t=!1),this.current(t)===e&&(this.advance(t),!0)},gn.prototype.eatChars=function(e,t){void 0===t&&(t=!1);for(var n=this.pos,r=0,s=e;r-1&&this.raise(e.start,"Duplicate regular expression flag"),"u"===i&&(r=!0),"v"===i&&(s=!0)}this.options.ecmaVersion>=15&&r&&s&&this.raise(e.start,"Invalid regular expression flag")},yn.validateRegExpPattern=function(e){this.regexp_pattern(e),!e.switchN&&this.options.ecmaVersion>=9&&function(e){for(var t in e)return!0;return!1}(e.groupNames)&&(e.switchN=!0,this.regexp_pattern(e))},yn.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=16;for(t&&(e.branchID=new vn(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")},yn.regexp_alternative=function(e){for(;e.pos=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},yn.regexp_eatQuantifier=function(e,t){return void 0===t&&(t=!1),!!this.regexp_eatQuantifierPrefix(e,t)&&(e.eat(63),!0)},yn.regexp_eatQuantifierPrefix=function(e,t){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,t)},yn.regexp_eatBracedQuantifier=function(e,t){var n=e.pos;if(e.eat(123)){var r=0,s=-1;if(this.regexp_eatDecimalDigits(e)&&(r=e.lastIntValue,e.eat(44)&&this.regexp_eatDecimalDigits(e)&&(s=e.lastIntValue),e.eat(125)))return-1!==s&&s=9?this.regexp_groupSpecifier(e):63===e.current()&&e.raise("Invalid group"),this.regexp_disjunction(e),e.eat(41))return e.numCapturingParens+=1,!0;e.raise("Unterminated group")}return!1},yn.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)},yn.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise("Nothing to repeat"),!1},yn.regexp_eatSyntaxCharacter=function(e){var t=e.current();return!!bn(t)&&(e.lastIntValue=t,e.advance(),!0)},yn.regexp_eatPatternCharacters=function(e){for(var t=e.pos,n=0;-1!==(n=e.current())&&!bn(n);)e.advance();return e.pos!==t},yn.regexp_eatExtendedPatternCharacter=function(e){var t=e.current();return!(-1===t||36===t||t>=40&&t<=43||46===t||63===t||91===t||94===t||124===t)&&(e.advance(),!0)},yn.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,s=n;r=11,r=e.current(n);return e.advance(n),92===r&&this.regexp_eatRegExpUnicodeEscapeSequence(e,n)&&(r=e.lastIntValue),function(e){return Ke(e,!0)||36===e||95===e}(r)?(e.lastIntValue=r,!0):(e.pos=t,!1)},yn.regexp_eatRegExpIdentifierPart=function(e){var t=e.pos,n=this.options.ecmaVersion>=11,r=e.current(n);return e.advance(n),92===r&&this.regexp_eatRegExpUnicodeEscapeSequence(e,n)&&(r=e.lastIntValue),function(e){return Xe(e,!0)||36===e||95===e||8204===e||8205===e}(r)?(e.lastIntValue=r,!0):(e.pos=t,!1)},yn.regexp_eatAtomEscape=function(e){return!!(this.regexp_eatBackReference(e)||this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)||e.switchN&&this.regexp_eatKGroupName(e))||(e.switchU&&(99===e.current()&&e.raise("Invalid unicode escape"),e.raise("Invalid escape")),!1)},yn.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},yn.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},yn.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)},yn.regexp_eatCControlLetter=function(e){var t=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=t}return!1},yn.regexp_eatZero=function(e){return 48===e.current()&&!wn(e.lookahead())&&(e.lastIntValue=0,e.advance(),!0)},yn.regexp_eatControlEscape=function(e){var t=e.current();return 116===t?(e.lastIntValue=9,e.advance(),!0):110===t?(e.lastIntValue=10,e.advance(),!0):118===t?(e.lastIntValue=11,e.advance(),!0):102===t?(e.lastIntValue=12,e.advance(),!0):114===t&&(e.lastIntValue=13,e.advance(),!0)},yn.regexp_eatControlLetter=function(e){var t=e.current();return!!xn(t)&&(e.lastIntValue=t%32,e.advance(),!0)},yn.regexp_eatRegExpUnicodeEscapeSequence=function(e,t){void 0===t&&(t=!1);var n,r=e.pos,s=t||e.switchU;if(e.eat(117)){if(this.regexp_eatFixedHexDigits(e,4)){var a=e.lastIntValue;if(s&&a>=55296&&a<=56319){var i=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=1024*(a-55296)+(o-56320)+65536,!0}e.pos=i,e.lastIntValue=a}return!0}if(s&&e.eat(123)&&this.regexp_eatHexDigits(e)&&e.eat(125)&&((n=e.lastIntValue)>=0&&n<=1114111))return!0;s&&e.raise("Invalid unicode escape"),e.pos=r}return!1},yn.regexp_eatIdentityEscape=function(e){if(e.switchU)return!!this.regexp_eatSyntaxCharacter(e)||!!e.eat(47)&&(e.lastIntValue=47,!0);var t=e.current();return!(99===t||e.switchN&&107===t)&&(e.lastIntValue=t,e.advance(),!0)},yn.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};function _n(e){return xn(e)||95===e}function Cn(e){return _n(e)||wn(e)}function wn(e){return e>=48&&e<=57}function kn(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function Pn(e){return e>=65&&e<=70?e-65+10:e>=97&&e<=102?e-97+10:e-48}function Sn(e){return e>=48&&e<=55}yn.regexp_eatCharacterClassEscape=function(e){var t=e.current();if(function(e){return 100===e||68===e||115===e||83===e||119===e||87===e}(t))return e.lastIntValue=-1,e.advance(),1;var n=!1;if(e.switchU&&this.options.ecmaVersion>=9&&((n=80===t)||112===t)){var r;if(e.lastIntValue=-1,e.advance(),e.eat(123)&&(r=this.regexp_eatUnicodePropertyValueExpression(e))&&e.eat(125))return n&&2===r&&e.raise("Invalid property name"),r;e.raise("Invalid property name")}return 0},yn.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),1}}if(e.pos=t,this.regexp_eatLoneUnicodePropertyNameOrValue(e)){var s=e.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(e,s)}return 0},yn.regexp_validateUnicodePropertyNameAndValue=function(e,t,n){dt(e.unicodeProperties.nonBinary,t)||e.raise("Invalid property name"),e.unicodeProperties.nonBinary[t].test(n)||e.raise("Invalid property value")},yn.regexp_validateUnicodePropertyNameOrValue=function(e,t){return e.unicodeProperties.binary.test(t)?1:e.switchV&&e.unicodeProperties.binaryOfStrings.test(t)?2:void e.raise("Invalid property name")},yn.regexp_eatUnicodePropertyName=function(e){var t=0;for(e.lastStringValue="";_n(t=e.current());)e.lastStringValue+=yt(t),e.advance();return""!==e.lastStringValue},yn.regexp_eatUnicodePropertyValue=function(e){var t=0;for(e.lastStringValue="";Cn(t=e.current());)e.lastStringValue+=yt(t),e.advance();return""!==e.lastStringValue},yn.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)},yn.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&&2===n&&e.raise("Negated character class may contain strings"),!0}return!1},yn.regexp_classContents=function(e){return 93===e.current()?1:e.switchV?this.regexp_classSetExpression(e):(this.regexp_nonEmptyClassRanges(e),1)},yn.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||-1!==t&&-1!==n||e.raise("Invalid character class"),-1!==t&&-1!==n&&t>n&&e.raise("Range out of order in character class")}}},yn.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();(99===n||Sn(n))&&e.raise("Invalid class escape"),e.raise("Invalid escape")}e.pos=t}var r=e.current();return 93!==r&&(e.lastIntValue=r,e.advance(),!0)},yn.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)},yn.regexp_classSetExpression=function(e){var t,n=1;if(this.regexp_eatClassSetRange(e));else if(t=this.regexp_eatClassSetOperand(e)){2===t&&(n=2);for(var r=e.pos;e.eatChars([38,38]);)38!==e.current()&&(t=this.regexp_eatClassSetOperand(e))?2!==t&&(n=1):e.raise("Invalid character in character class");if(r!==e.pos)return n;for(;e.eatChars([45,45]);)this.regexp_eatClassSetOperand(e)||e.raise("Invalid character in character class");if(r!==e.pos)return n}else e.raise("Invalid character in character class");for(;;)if(!this.regexp_eatClassSetRange(e)){if(!(t=this.regexp_eatClassSetOperand(e)))return n;2===t&&(n=2)}},yn.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-1!==n&&-1!==r&&n>r&&e.raise("Range out of order in character class"),!0}e.pos=t}return!1},yn.regexp_eatClassSetOperand=function(e){return this.regexp_eatClassSetCharacter(e)?1:this.regexp_eatClassStringDisjunction(e)||this.regexp_eatNestedClass(e)},yn.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&&2===r&&e.raise("Negated character class may contain strings"),r;e.pos=t}if(e.eat(92)){var s=this.regexp_eatCharacterClassEscape(e);if(s)return s;e.pos=t}return null},yn.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},yn.regexp_classStringDisjunctionContents=function(e){for(var t=this.regexp_classString(e);e.eat(124);)2===this.regexp_classString(e)&&(t=2);return t},yn.regexp_classString=function(e){for(var t=0;this.regexp_eatClassSetCharacter(e);)t++;return 1===t?1:2},yn.regexp_eatClassSetCharacter=function(e){var t=e.pos;if(e.eat(92))return!(!this.regexp_eatCharacterEscape(e)&&!this.regexp_eatClassSetReservedPunctuator(e))||(e.eat(98)?(e.lastIntValue=8,!0):(e.pos=t,!1));var n=e.current();return!(n<0||n===e.lookahead()&&function(e){return 33===e||e>=35&&e<=38||e>=42&&e<=44||46===e||e>=58&&e<=64||94===e||96===e||126===e}(n))&&(!function(e){return 40===e||41===e||45===e||47===e||e>=91&&e<=93||e>=123&&e<=125}(n)&&(e.advance(),e.lastIntValue=n,!0))},yn.regexp_eatClassSetReservedPunctuator=function(e){var t=e.current();return!!function(e){return 33===e||35===e||37===e||38===e||44===e||45===e||e>=58&&e<=62||64===e||96===e||126===e}(t)&&(e.lastIntValue=t,e.advance(),!0)},yn.regexp_eatClassControlLetter=function(e){var t=e.current();return!(!wn(t)&&95!==t)&&(e.lastIntValue=t%32,e.advance(),!0)},yn.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},yn.regexp_eatDecimalDigits=function(e){var t=e.pos,n=0;for(e.lastIntValue=0;wn(n=e.current());)e.lastIntValue=10*e.lastIntValue+(n-48),e.advance();return e.pos!==t},yn.regexp_eatHexDigits=function(e){var t=e.pos,n=0;for(e.lastIntValue=0;kn(n=e.current());)e.lastIntValue=16*e.lastIntValue+Pn(n),e.advance();return e.pos!==t},yn.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=64*t+8*n+e.lastIntValue:e.lastIntValue=8*t+n}else e.lastIntValue=t;return!0}return!1},yn.regexp_eatOctalDigit=function(e){var t=e.current();return Sn(t)?(e.lastIntValue=t-48,e.advance(),!0):(e.lastIntValue=0,!1)},yn.regexp_eatFixedHexDigits=function(e,t){var n=e.pos;e.lastIntValue=0;for(var r=0;r=this.input.length?this.finishToken(nt.eof):e.override?e.override(this):void this.readToken(this.fullCharCodeAtPos())},An.readToken=function(e){return Ke(e,this.options.ecmaVersion>=6)||92===e?this.readWord():this.getTokenFromCode(e)},An.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},An.skipBlockComment=function(){var e=this.options.onComment&&this.curPosition(),t=this.pos,n=this.input.indexOf("*/",this.pos+=2);if(-1===n&&this.raise(this.pos-2,"Unterminated comment"),this.pos=n+2,this.options.locations)for(var r=void 0,s=t;(r=it(this.input,s,this.pos))>-1;)++this.curLine,s=this.lineStart=r;this.options.onComment&&this.options.onComment(!0,this.input.slice(t+2,n),t,this.pos,e,this.curPosition())},An.skipLineComment=function(e){for(var t=this.pos,n=this.options.onComment&&this.curPosition(),r=this.input.charCodeAt(this.pos+=e);this.pos8&&e<14||e>=5760&&ot.test(String.fromCharCode(e))))break e;++this.pos}}},An.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)},An.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&&46===e&&46===t?(this.pos+=3,this.finishToken(nt.ellipsis)):(++this.pos,this.finishToken(nt.dot))},An.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):61===e?this.finishOp(nt.assign,2):this.finishOp(nt.slash,1)},An.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1),n=1,r=42===e?nt.star:nt.modulo;return this.options.ecmaVersion>=7&&42===e&&42===t&&(++n,r=nt.starstar,t=this.input.charCodeAt(this.pos+2)),61===t?this.finishOp(nt.assign,n+1):this.finishOp(r,n)},An.readToken_pipe_amp=function(e){var t=this.input.charCodeAt(this.pos+1);if(t===e){if(this.options.ecmaVersion>=12)if(61===this.input.charCodeAt(this.pos+2))return this.finishOp(nt.assign,3);return this.finishOp(124===e?nt.logicalOR:nt.logicalAND,2)}return 61===t?this.finishOp(nt.assign,2):this.finishOp(124===e?nt.bitwiseOR:nt.bitwiseAND,1)},An.readToken_caret=function(){return 61===this.input.charCodeAt(this.pos+1)?this.finishOp(nt.assign,2):this.finishOp(nt.bitwiseXOR,1)},An.readToken_plus_min=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?45!==t||this.inModule||62!==this.input.charCodeAt(this.pos+2)||0!==this.lastTokEnd&&!rt.test(this.input.slice(this.lastTokEnd,this.pos))?this.finishOp(nt.incDec,2):(this.skipLineComment(3),this.skipSpace(),this.nextToken()):61===t?this.finishOp(nt.assign,2):this.finishOp(nt.plusMin,1)},An.readToken_lt_gt=function(e){var t=this.input.charCodeAt(this.pos+1),n=1;return t===e?(n=62===e&&62===this.input.charCodeAt(this.pos+2)?3:2,61===this.input.charCodeAt(this.pos+n)?this.finishOp(nt.assign,n+1):this.finishOp(nt.bitShift,n)):33!==t||60!==e||this.inModule||45!==this.input.charCodeAt(this.pos+2)||45!==this.input.charCodeAt(this.pos+3)?(61===t&&(n=2),this.finishOp(nt.relational,n)):(this.skipLineComment(4),this.skipSpace(),this.nextToken())},An.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);return 61===t?this.finishOp(nt.equality,61===this.input.charCodeAt(this.pos+2)?3:2):61===e&&62===t&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(nt.arrow)):this.finishOp(61===e?nt.eq:nt.prefix,1)},An.readToken_question=function(){var e=this.options.ecmaVersion;if(e>=11){var t=this.input.charCodeAt(this.pos+1);if(46===t){var n=this.input.charCodeAt(this.pos+2);if(n<48||n>57)return this.finishOp(nt.questionDot,2)}if(63===t){if(e>=12)if(61===this.input.charCodeAt(this.pos+2))return this.finishOp(nt.assign,3);return this.finishOp(nt.coalesce,2)}}return this.finishOp(nt.question,1)},An.readToken_numberSign=function(){var e=35;if(this.options.ecmaVersion>=13&&(++this.pos,Ke(e=this.fullCharCodeAtPos(),!0)||92===e))return this.finishToken(nt.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+yt(e)+"'")},An.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(nt.parenL);case 41:return++this.pos,this.finishToken(nt.parenR);case 59:return++this.pos,this.finishToken(nt.semi);case 44:return++this.pos,this.finishToken(nt.comma);case 91:return++this.pos,this.finishToken(nt.bracketL);case 93:return++this.pos,this.finishToken(nt.bracketR);case 123:return++this.pos,this.finishToken(nt.braceL);case 125:return++this.pos,this.finishToken(nt.braceR);case 58:return++this.pos,this.finishToken(nt.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(nt.backQuote);case 48:var t=this.input.charCodeAt(this.pos+1);if(120===t||88===t)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(111===t||79===t)return this.readRadixNumber(8);if(98===t||66===t)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(nt.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+yt(e)+"'")},An.finishOp=function(e,t){var n=this.input.slice(this.pos,this.pos+t);return this.pos+=t,this.finishToken(e,n)},An.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(rt.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 s=this.input.slice(n,this.pos);++this.pos;var a=this.pos,i=this.readWord1();this.containsEsc&&this.unexpected(a);var o=this.regexpState||(this.regexpState=new gn(this));o.reset(n,s,i),this.validateRegExpFlags(o),this.validateRegExpPattern(o);var l=null;try{l=new RegExp(s,i)}catch(e){}return this.finishToken(nt.regexp,{pattern:s,flags:i,value:l})},An.readInt=function(e,t,n){for(var r=this.options.ecmaVersion>=12&&void 0===t,s=n&&48===this.input.charCodeAt(this.pos),a=this.pos,i=0,o=0,l=0,c=null==t?1/0:t;l=97?u-97+10:u>=65?u-65+10:u>=48&&u<=57?u-48:1/0)>=e)break;o=u,i=i*e+p}}return r&&95===o&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===a||null!=t&&this.pos-a!==t?null:i},An.readRadixNumber=function(e){var t=this.pos;this.pos+=2;var n=this.readInt(e);return null==n&&this.raise(this.start+2,"Expected number in radix "+e),this.options.ecmaVersion>=11&&110===this.input.charCodeAt(this.pos)?(n=Tn(this.input.slice(t,this.pos)),++this.pos):Ke(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(nt.num,n)},An.readNumber=function(e){var t=this.pos;e||null!==this.readInt(10,void 0,!0)||this.raise(t,"Invalid number");var n=this.pos-t>=2&&48===this.input.charCodeAt(t);n&&this.strict&&this.raise(t,"Invalid number");var r=this.input.charCodeAt(this.pos);if(!n&&!e&&this.options.ecmaVersion>=11&&110===r){var s=Tn(this.input.slice(t,this.pos));return++this.pos,Ke(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(nt.num,s)}n&&/[89]/.test(this.input.slice(t,this.pos))&&(n=!1),46!==r||n||(++this.pos,this.readInt(10),r=this.input.charCodeAt(this.pos)),69!==r&&101!==r||n||(43!==(r=this.input.charCodeAt(++this.pos))&&45!==r||++this.pos,null===this.readInt(10)&&this.raise(t,"Invalid number")),Ke(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var a,i=(a=this.input.slice(t,this.pos),n?parseInt(a,8):parseFloat(a.replace(/_/g,"")));return this.finishToken(nt.num,i)},An.readCodePoint=function(){var e;if(123===this.input.charCodeAt(this.pos)){this.options.ecmaVersion<6&&this.unexpected();var t=++this.pos;e=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,e>1114111&&this.invalidStringToken(t,"Code point out of bounds")}else e=this.readHexChar(4);return e},An.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;92===r?(t+=this.input.slice(n,this.pos),t+=this.readEscapedChar(!1),n=this.pos):8232===r||8233===r?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(at(r)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return t+=this.input.slice(n,this.pos++),this.finishToken(nt.string,t)};var $n={};An.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e!==$n)throw e;this.readInvalidTemplateToken()}this.inTemplateElement=!1},An.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw $n;this.raise(e,t)},An.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(96===n||36===n&&123===this.input.charCodeAt(this.pos+1))return this.pos!==this.start||this.type!==nt.template&&this.type!==nt.invalidTemplate?(e+=this.input.slice(t,this.pos),this.finishToken(nt.template,e)):36===n?(this.pos+=2,this.finishToken(nt.dollarBraceL)):(++this.pos,this.finishToken(nt.backQuote));if(92===n)e+=this.input.slice(t,this.pos),e+=this.readEscapedChar(!0),t=this.pos;else if(at(n)){switch(e+=this.input.slice(t,this.pos),++this.pos,n){case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:e+="\n";break;default:e+=String.fromCharCode(n)}this.options.locations&&(++this.curLine,this.lineStart=this.pos),t=this.pos}else++this.pos}},An.readInvalidTemplateToken=function(){for(;this.pos=48&&t<=55){var r=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],s=parseInt(r,8);return s>255&&(r=r.slice(0,-1),s=parseInt(r,8)),this.pos+=r.length-1,t=this.input.charCodeAt(this.pos),"0"===r&&56!==t&&57!==t||!this.strict&&!e||this.invalidStringToken(this.pos-1-r.length,e?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(s)}return at(t)?(this.options.locations&&(this.lineStart=this.pos,++this.curLine),""):String.fromCharCode(t)}},An.readHexChar=function(e){var t=this.pos,n=this.readInt(16,e);return null===n&&this.invalidStringToken(t,"Bad character escape sequence"),n},An.readWord1=function(){this.containsEsc=!1;for(var e="",t=!0,n=this.pos,r=this.options.ecmaVersion>=6;this.pose.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var jn=!0;function Bn(e,t){return void 0===t&&(t={}),new Je("name",t)}var Fn=new WeakMap;function Vn(e){var t=Fn.get(e.Parser.acorn||e);if(!t){var n={assert:Bn(0,{startsExpr:jn}),asserts:Bn(0,{startsExpr:jn}),global:Bn(0,{startsExpr:jn}),keyof:Bn(0,{startsExpr:jn}),readonly:Bn(0,{startsExpr:jn}),unique:Bn(0,{startsExpr:jn}),abstract:Bn(0,{startsExpr:jn}),declare:Bn(0,{startsExpr:jn}),enum:Bn(0,{startsExpr:jn}),module:Bn(0,{startsExpr:jn}),namespace:Bn(0,{startsExpr:jn}),interface:Bn(0,{startsExpr:jn}),type:Bn(0,{startsExpr:jn})},r={at:new Je("@"),jsxName:new Je("jsxName"),jsxText:new Je("jsxText",{beforeExpr:!0}),jsxTagStart:new Je("jsxTagStart",{startsExpr:!0}),jsxTagEnd:new Je("jsxTagEnd")},s={tc_oTag:new Bt("...",!0,!0)},a=new RegExp("^(?:"+Object.keys(n).join("|")+")$");r.jsxTagStart.updateContext=function(){this.context.push(s.tc_expr),this.context.push(s.tc_oTag),this.exprAllowed=!1},r.jsxTagEnd.updateContext=function(e){var t=this.context.pop();t===s.tc_oTag&&e===nt.slash||t===s.tc_cTag?(this.context.pop(),this.exprAllowed=this.curContext()===s.tc_expr):this.exprAllowed=!0},t={tokTypes:Ln({},n,r),tokContexts:Ln({},s),keywordsRegExp:a,tokenIsLiteralPropertyName:function(e){return[nt.name,nt.string,nt.num].concat(Object.values(et),Object.values(n)).includes(e)},tokenIsKeywordOrIdentifier:function(e){return[nt.name].concat(Object.values(et),Object.values(n)).includes(e)},tokenIsIdentifier:function(e){return[].concat(Object.values(n),[nt.name]).includes(e)},tokenIsTSDeclarationStart:function(e){return[n.abstract,n.declare,n.enum,n.module,n.namespace,n.interface,n.type].includes(e)},tokenIsTSTypeOperator:function(e){return[n.keyof,n.readonly,n.unique].includes(e)},tokenIsTemplate:function(e){return e===nt.invalidTemplate}}}return t}var Hn=1024,Un=new RegExp("(?:[^\\S\\n\\r\\u2028\\u2029]|\\/\\/.*|\\/\\*.*?\\*\\/)*","y"),zn=new RegExp("(?=("+Un.source+"))\\1"+/(?=[\n\r\u2028\u2029]|\/\*(?!.*?\*\/)|$)/.source,"y"),Wn=function(){this.shorthandAssign=void 0,this.trailingComma=void 0,this.parenthesizedAssign=void 0,this.parenthesizedBind=void 0,this.doubleProto=void 0,this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};function Gn(e,t){var n=t.key.name,r=e[n],s="true";return"MethodDefinition"!==t.type||"get"!==t.kind&&"set"!==t.kind||(s=(t.static?"s":"i")+t.kind),"iget"===r&&"iset"===s||"iset"===r&&"iget"===s||"sget"===r&&"sset"===s||"sset"===r&&"sget"===s?(e[n]="true",!1):!!r||(e[n]=s,!1)}function Kn(e,t){var n=e.key;return!e.computed&&("Identifier"===n.type&&n.name===t||"Literal"===n.type&&n.value===t)}var Xn={AbstractMethodHasImplementation:function(e){return"Method '"+e.methodName+"' cannot have an implementation because it is marked abstract."},AbstractPropertyHasInitializer:function(e){return"Property '"+e.propertyName+"' cannot have an initializer because it is marked abstract."},AccesorCannotDeclareThisParameter:"'get' and 'set' accessors cannot declare 'this' parameters.",AccesorCannotHaveTypeParameters:"An accessor cannot have type parameters.",CannotFindName:function(e){return"Cannot find name '"+e.name+"'."},ClassMethodHasDeclare:"Class methods cannot have the 'declare' modifier.",ClassMethodHasReadonly:"Class methods cannot have the 'readonly' modifier.",ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference:"A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference.",ConstructorHasTypeParameters:"Type parameters cannot appear on a constructor declaration.",DeclareAccessor:function(e){return"'declare' is not allowed in "+e.kind+"ters."},DeclareClassFieldHasInitializer:"Initializers are not allowed in ambient contexts.",DeclareFunctionHasImplementation:"An implementation cannot be declared in ambient contexts.",DuplicateAccessibilityModifier:function(){return"Accessibility modifier already seen."},DuplicateModifier:function(e){return"Duplicate modifier: '"+e.modifier+"'."},EmptyHeritageClauseType:function(e){return"'"+e.token+"' list cannot be empty."},EmptyTypeArguments:"Type argument list cannot be empty.",EmptyTypeParameters:"Type parameter list cannot be empty.",ExpectedAmbientAfterExportDeclare:"'export declare' must be followed by an ambient declaration.",ImportAliasHasImportType:"An import alias can not use 'import type'.",IncompatibleModifiers:function(e){var t=e.modifiers;return"'"+t[0]+"' modifier cannot be used with '"+t[1]+"' modifier."},IndexSignatureHasAbstract:"Index signatures cannot have the 'abstract' modifier.",IndexSignatureHasAccessibility:function(e){return"Index signatures cannot have an accessibility modifier ('"+e.modifier+"')."},IndexSignatureHasDeclare:"Index signatures cannot have the 'declare' modifier.",IndexSignatureHasOverride:"'override' modifier cannot appear on an index signature.",IndexSignatureHasStatic:"Index signatures cannot have the 'static' modifier.",InitializerNotAllowedInAmbientContext:"Initializers are not allowed in ambient contexts.",InvalidModifierOnTypeMember:function(e){return"'"+e.modifier+"' modifier cannot appear on a type member."},InvalidModifierOnTypeParameter:function(e){return"'"+e.modifier+"' modifier cannot appear on a type parameter."},InvalidModifierOnTypeParameterPositions:function(e){return"'"+e.modifier+"' modifier can only appear on a type parameter of a class, interface or type alias."},InvalidModifiersOrder:function(e){var t=e.orderedModifiers;return"'"+t[0]+"' modifier must precede '"+t[1]+"' modifier."},InvalidPropertyAccessAfterInstantiationExpression:"Invalid property access after an instantiation expression. You can either wrap the instantiation expression in parentheses, or delete the type arguments.",InvalidTupleMemberLabel:"Tuple members must be labeled with a simple identifier.",MissingInterfaceName:"'interface' declarations must be followed by an identifier.",MixedLabeledAndUnlabeledElements:"Tuple members must all have names or all not have names.",NonAbstractClassHasAbstractMethod:"Abstract methods can only appear within an abstract class.",NonClassMethodPropertyHasAbstractModifer:"'abstract' modifier can only appear on a class, method, or property declaration.",OptionalTypeBeforeRequired:"A required element cannot follow an optional element.",OverrideNotInSubClass:"This member cannot have an 'override' modifier because its containing class does not extend another class.",PatternIsOptional:"A binding pattern parameter cannot be optional in an implementation signature.",PrivateElementHasAbstract:"Private elements cannot have the 'abstract' modifier.",PrivateElementHasAccessibility:function(e){return"Private elements cannot have an accessibility modifier ('"+e.modifier+"')."},PrivateMethodsHasAccessibility:function(e){return"Private methods cannot have an accessibility modifier ('"+e.modifier+"')."},ReadonlyForMethodSignature:"'readonly' modifier can only appear on a property declaration or index signature.",ReservedArrowTypeParam:"This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma, as in `() => ...`.",ReservedTypeAssertion:"This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead.",SetAccesorCannotHaveOptionalParameter:"A 'set' accessor cannot have an optional parameter.",SetAccesorCannotHaveRestParameter:"A 'set' accessor cannot have rest parameter.",SetAccesorCannotHaveReturnType:"A 'set' accessor cannot have a return type annotation.",SingleTypeParameterWithoutTrailingComma:function(e){var t=e.typeParameterName;return"Single type parameter "+t+" should have a trailing comma. Example usage: <"+t+",>."},StaticBlockCannotHaveModifier:"Static class blocks cannot have any modifier.",TypeAnnotationAfterAssign:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeImportCannotSpecifyDefaultAndNamed:"A type-only import can specify a default import or named bindings, but not both.",TypeModifierIsUsedInTypeExports:"The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement.",TypeModifierIsUsedInTypeImports:"The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement.",UnexpectedParameterModifier:"A parameter property is only allowed in a constructor implementation.",UnexpectedReadonly:"'readonly' type modifier is only permitted on array and tuple literal types.",GenericsEndWithComma:"Trailing comma is not allowed at the end of generics.",UnexpectedTypeAnnotation:"Did not expect a type annotation here.",UnexpectedTypeCastInParameter:"Unexpected type cast in parameter position.",UnsupportedImportTypeArgument:"Argument in a type import must be a string literal.",UnsupportedParameterPropertyKind:"A parameter property may not be declared using a binding pattern.",UnsupportedSignatureParameterKind:function(e){return"Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got "+e.type+"."},LetInLexicalBinding:"'let' is not allowed to be used as a name in 'let' or 'const' declarations."},Jn={quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",frasl:"⁄",euro:"€",image:"ℑ",weierp:"℘",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦"},Qn=/^[\da-fA-F]+$/,Yn=/^\d+$/;function Zn(e){return e?"JSXIdentifier"===e.type?e.name:"JSXNamespacedName"===e.type?e.namespace.name+":"+e.name.name:"JSXMemberExpression"===e.type?Zn(e.object)+"."+Zn(e.property):void 0:e}var er=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g;function tr(e){if(!e)throw new Error("Assert fail")}function nr(e){return"accessor"===e}function rr(e){return"in"===e||"out"===e}function sr(e,t){return 2|(e?4:0)|(t?8:0)}function ar(e){if("MemberExpression"!==e.type)return!1;var t=e.property;return(!e.computed||!("TemplateLiteral"!==t.type||t.expressions.length>0))&&ir(e.object)}function ir(e){return"Identifier"===e.type||"MemberExpression"===e.type&&!e.computed&&ir(e.object)}function or(e){return"private"===e||"public"===e||"protected"===e}const lr=St.extend(function(e){var t=e||{},n=t.dts,r=void 0!==n&&n,s=t.allowSatisfies,a=void 0!==s&&s;return function(t){var n=t.acorn||In,s=Vn(n),i=n.tokTypes,o=n.keywordTypes,l=n.isIdentifierStart,c=n.lineBreak,u=n.isNewLine,p=n.tokContexts,d=n.isIdentifierChar,h=s.tokTypes,m=s.tokContexts,f=s.keywordsRegExp,y=s.tokenIsLiteralPropertyName,v=s.tokenIsTemplate,g=s.tokenIsTSDeclarationStart,b=s.tokenIsIdentifier,x=s.tokenIsKeywordOrIdentifier,_=s.tokenIsTSTypeOperator;function C(e,t,n){void 0===n&&(n=e.length);for(var r=t;r=this.input.length&&this.raise(this.start,"Unterminated JSX contents");var n=this.input.charCodeAt(this.pos);switch(n){case 60:case 123:return this.pos===this.start?60===n&&this.exprAllowed?(++this.pos,this.finishToken(a.jsxTagStart)):this.getTokenFromCode(n):(e+=this.input.slice(t,this.pos),this.finishToken(a.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 `"+(62===n?">":"}")+'` or `{"'+this.input[this.pos]+'"}`?');default:i(n)?(e+=this.input.slice(t,this.pos),e+=this.jsx_readNewLine(!0),t=this.pos):++this.pos}}},n.jsx_readNewLine=function(e){var t,n=this.input.charCodeAt(this.pos);return++this.pos,13===n&&10===this.input.charCodeAt(this.pos)?(++this.pos,t=e?"\n":"\r\n"):t=String.fromCharCode(n),this.options.locations&&(++this.curLine,this.lineStart=this.pos),t},n.jsx_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;38===r?(t+=this.input.slice(n,this.pos),t+=this.jsx_readEntity(),n=this.pos):i(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(s.string,t)},n.jsx_readEntity=function(){var e,t="",n=0,r=this.input[this.pos];"&"!==r&&this.raise(this.pos,"Entity must start with an ampersand");for(var s=++this.pos;this.pos")}var l=i.name?"Element":"Fragment";return n["opening"+l]=i,n["closing"+l]=o,n.children=r,this.type===s.relational&&"<"===this.value&&this.raise(this.start,"Adjacent JSX elements must be wrapped in an enclosing tag"),this.finishNode(n,"JSX"+l)},n.jsx_parseText=function(){var e=this.parseLiteral(this.value);return e.type="JSXText",e},n.jsx_parseElement=function(){var e=this.start,t=this.startLoc;return this.next(),this.jsx_parseElementAt(e,t)},t}(n)}(n,s,t,null==e?void 0:e.jsx),t=function(e,t,n){var r=t.tokTypes,s=n.tokTypes;return function(e){function t(){return e.apply(this,arguments)||this}Mn(t,e);var n=t.prototype;return n.parseMaybeImportAttributes=function(e){if(this.type===s._with||this.type===r.assert){this.next();var t=this.parseImportAttributes();t&&(e.attributes=t)}},n.parseImportAttributes=function(){this.expect(s.braceL);var e=this.parseWithEntries();return this.expect(s.braceR),e},n.parseWithEntries=function(){var e=[],t=new Set;do{if(this.type===s.braceR)break;var n,r=this.startNode();n=this.type===s.string?this.parseLiteral(this.value):this.parseIdent(!0),this.next(),r.key=n,t.has(r.key.name)&&this.raise(this.pos,"Duplicated key in attributes"),t.add(r.key.name),this.type!==s.string&&this.raise(this.pos,"Only string is supported as an attribute value"),r.value=this.parseLiteral(this.value),e.push(this.finishNode(r,"ImportAttribute"))}while(this.eat(s.comma));return e},t}(e)}(t,s,n);var w=function(e){function t(t,n,r){var s;return(s=e.call(this,t,n,r)||this).preValue=null,s.preToken=null,s.isLookahead=!1,s.isAmbientContext=!1,s.inAbstractClass=!1,s.inType=!1,s.inDisallowConditionalTypesContext=!1,s.maybeInArrowParameters=!1,s.shouldParseArrowReturnType=void 0,s.shouldParseAsyncArrowReturnType=void 0,s.decoratorStack=[[]],s.importsStack=[[]],s.importOrExportOuterKind=void 0,s.tsParseConstModifier=s.tsParseModifiers.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(s),{allowedModifiers:["const"],disallowedModifiers:["in","out"],errorTemplate:Xn.InvalidModifierOnTypeParameterPositions}),s}Mn(t,e);var w,k,P,S=t.prototype;return S.getTokenFromCodeInType=function(t){return 62===t||60===t?this.finishOp(i.relational,1):e.prototype.getTokenFromCode.call(this,t)},S.readToken=function(t){if(!this.inType){var n=this.curContext();if(n===m.tc_expr)return this.jsx_readToken();if(n===m.tc_oTag||n===m.tc_cTag){if(l(t))return this.jsx_readWord();if(62==t)return++this.pos,this.finishToken(h.jsxTagEnd);if((34===t||39===t)&&n==m.tc_oTag)return this.jsx_readString(t)}if(60===t&&this.exprAllowed&&33!==this.input.charCodeAt(this.pos+1))return++this.pos,this.finishToken(h.jsxTagStart)}return e.prototype.readToken.call(this,t)},S.getTokenFromCode=function(t){return this.inType?this.getTokenFromCodeInType(t):64===t?(++this.pos,this.finishToken(h.at)):e.prototype.getTokenFromCode.call(this,t)},S.isAbstractClass=function(){return this.ts_isContextual(h.abstract)&&this.lookahead().type===i._class},S.finishNode=function(t,n){return""!==t.type&&0!==t.end?t:e.prototype.finishNode.call(this,t,n)},S.tryParse=function(e,t){void 0===t&&(t=this.cloneCurLookaheadState());var n={node:null};try{return{node:e((function(e){throw void 0===e&&(e=null),n.node=e,n})),error:null,thrown:!1,aborted:!1,failState:null}}catch(e){var r=this.getCurLookaheadState();if(this.setLookaheadState(t),e instanceof SyntaxError)return{node:null,error:e,thrown:!0,aborted:!1,failState:r};if(e===n)return{node:n.node,error:null,thrown:!1,aborted:!0,failState:r};throw e}},S.setOptionalParametersError=function(e,t){var n;e.optionalParametersLoc=null!=(n=null==t?void 0:t.loc)?n:this.startLoc},S.reScan_lt_gt=function(){this.type===i.relational&&(this.pos-=1,this.readToken_lt_gt(this.fullCharCodeAtPos()))},S.reScan_lt=function(){var e=this.type;return e===i.bitShift?(this.pos-=2,this.finishOp(i.relational,1),i.relational):e},S.resetEndLocation=function(e,t){void 0===t&&(t=this.lastTokEndLoc),e.end=t.column,e.loc.end=t,this.options.ranges&&(e.range[1]=t.column)},S.startNodeAtNode=function(t){return e.prototype.startNodeAt.call(this,t.start,t.loc.start)},S.nextTokenStart=function(){return this.nextTokenStartSince(this.pos)},S.tsHasSomeModifiers=function(e,t){return t.some((function(t){return or(t)?e.accessibility===t:!!e[t]}))},S.tsIsStartOfStaticBlocks=function(){return this.isContextual("static")&&123===this.lookaheadCharCode()},S.tsCheckForInvalidTypeCasts=function(e){var t=this;e.forEach((function(e){"TSTypeCastExpression"===(null==e?void 0:e.type)&&t.raise(e.typeAnnotation.start,Xn.UnexpectedTypeAnnotation)}))},S.atPossibleAsyncArrow=function(e){return"Identifier"===e.type&&"async"===e.name&&this.lastTokEndLoc.column===e.end&&!this.canInsertSemicolon()&&e.end-e.start==5&&e.start===this.potentialArrowAt},S.tsIsIdentifier=function(){return b(this.type)},S.tsTryParseTypeOrTypePredicateAnnotation=function(){return this.match(i.colon)?this.tsParseTypeOrTypePredicateAnnotation(i.colon):void 0},S.tsTryParseGenericAsyncArrowFunction=function(t,n,r){var s=this;if(this.tsMatchLeftRelational()){var a=this.maybeInArrowParameters;this.maybeInArrowParameters=!0;var o=this.tsTryParseAndCatch((function(){var r=s.startNodeAt(t,n);return r.typeParameters=s.tsParseTypeParameters(),e.prototype.parseFunctionParams.call(s,r),r.returnType=s.tsTryParseTypeOrTypePredicateAnnotation(),s.expect(i.arrow),r}));if(this.maybeInArrowParameters=a,o)return e.prototype.parseArrowExpression.call(this,o,null,!0,r)}},S.tsParseTypeArgumentsInExpression=function(){if(this.reScan_lt()===i.relational)return this.tsParseTypeArguments()},S.tsInNoContext=function(e){var t=this.context;this.context=[t[0]];try{return e()}finally{this.context=t}},S.tsTryParseTypeAnnotation=function(){return this.match(i.colon)?this.tsParseTypeAnnotation():void 0},S.isUnparsedContextual=function(e,t){var n=e+t.length;if(this.input.slice(e,n)===t){var r=this.input.charCodeAt(n);return!(d(r)||55296==(64512&r))}return!1},S.isAbstractConstructorSignature=function(){return this.ts_isContextual(h.abstract)&&this.lookahead().type===i._new},S.nextTokenStartSince=function(e){return er.lastIndex=e,er.test(this.input)?er.lastIndex:e},S.lookaheadCharCode=function(){return this.input.charCodeAt(this.nextTokenStart())},S.compareLookaheadState=function(e,t){for(var n=0,r=Object.keys(e);n-1;)++this.curLine,s=this.lineStart=r;this.isLookahead||this.options.onComment&&this.options.onComment(!0,this.input.slice(t+2,n),t,this.pos,e,this.curPosition())},S.skipLineComment=function(e){var t,n=this.pos;this.isLookahead||(t=this.options.onComment&&this.curPosition());for(var r=this.input.charCodeAt(this.pos+=e);this.pos"===this.value},S.tsParseParenthesizedType=function(){var e=this.startNode();return this.expect(i.parenL),e.typeAnnotation=this.tsParseType(),this.expect(i.parenR),this.finishNode(e,"TSParenthesizedType")},S.tsParseNonArrayType=function(){switch(this.type){case i.string:case i.num:case i._true:case i._false:return this.tsParseLiteralTypeNode();case i.plusMin:if("-"===this.value){var e=this.startNode();return this.lookahead().type!==i.num&&this.unexpected(),e.literal=this.parseMaybeUnary(),this.finishNode(e,"TSLiteralType")}break;case i._this:return this.tsParseThisTypeOrThisTypePredicate();case i._typeof:return this.tsParseTypeQuery();case i._import:return this.tsParseImportType();case i.braceL:return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this))?this.tsParseMappedType():this.tsParseTypeLiteral();case i.bracketL:return this.tsParseTupleType();case i.parenL:return this.tsParseParenthesizedType();case i.backQuote:case i.dollarBraceL:return this.tsParseTemplateLiteralType();default:var t=this.type;if(b(t)||t===i._void||t===i._null){var n=t===i._void?"TSVoidKeyword":t===i._null?"TSNullKeyword":function(e){switch(e){case"any":return"TSAnyKeyword";case"boolean":return"TSBooleanKeyword";case"bigint":return"TSBigIntKeyword";case"never":return"TSNeverKeyword";case"number":return"TSNumberKeyword";case"object":return"TSObjectKeyword";case"string":return"TSStringKeyword";case"symbol":return"TSSymbolKeyword";case"undefined":return"TSUndefinedKeyword";case"unknown":return"TSUnknownKeyword";default:return}}(this.value);if(void 0!==n&&46!==this.lookaheadCharCode()){var r=this.startNode();return this.next(),this.finishNode(r,n)}return this.tsParseTypeReference()}}this.unexpected()},S.tsParseArrayTypeOrHigher=function(){for(var e=this.tsParseNonArrayType();!this.hasPrecedingLineBreak()&&this.eat(i.bracketL);)if(this.match(i.bracketR)){var t=this.startNodeAtNode(e);t.elementType=e,this.expect(i.bracketR),e=this.finishNode(t,"TSArrayType")}else{var n=this.startNodeAtNode(e);n.objectType=e,n.indexType=this.tsParseType(),this.expect(i.bracketR),e=this.finishNode(n,"TSIndexedAccessType")}return e},S.tsParseTypeOperatorOrHigher=function(){var e=this;return _(this.type)&&!this.containsEsc?this.tsParseTypeOperator():this.isContextual("infer")?this.tsParseInferType():this.tsInAllowConditionalTypesContext((function(){return e.tsParseArrayTypeOrHigher()}))},S.tsParseIntersectionTypeOrHigher=function(){return this.tsParseUnionOrIntersectionType("TSIntersectionType",this.tsParseTypeOperatorOrHigher.bind(this),i.bitwiseAND)},S.tsParseUnionTypeOrHigher=function(){return this.tsParseUnionOrIntersectionType("TSUnionType",this.tsParseIntersectionTypeOrHigher.bind(this),i.bitwiseOR)},S.tsParseNonConditionalType=function(){return this.tsIsStartOfFunctionType()?this.tsParseFunctionOrConstructorType("TSFunctionType"):this.match(i._new)?this.tsParseFunctionOrConstructorType("TSConstructorType"):this.isAbstractConstructorSignature()?this.tsParseFunctionOrConstructorType("TSConstructorType",!0):this.tsParseUnionTypeOrHigher()},S.tsParseType=function(){var e=this;tr(this.inType);var t=this.tsParseNonConditionalType();if(this.inDisallowConditionalTypesContext||this.hasPrecedingLineBreak()||!this.eat(i._extends))return t;var n=this.startNodeAtNode(t);return n.checkType=t,n.extendsType=this.tsInDisallowConditionalTypesContext((function(){return e.tsParseNonConditionalType()})),this.expect(i.question),n.trueType=this.tsInAllowConditionalTypesContext((function(){return e.tsParseType()})),this.expect(i.colon),n.falseType=this.tsInAllowConditionalTypesContext((function(){return e.tsParseType()})),this.finishNode(n,"TSConditionalType")},S.tsIsUnambiguouslyIndexSignature=function(){return this.next(),!!b(this.type)&&(this.next(),this.match(i.colon))},S.tsInType=function(e){var t=this.inType;this.inType=!0;try{return e()}finally{this.inType=t}},S.tsTryParseIndexSignature=function(e){if(this.match(i.bracketL)&&this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this))){this.expect(i.bracketL);var t=this.parseIdent();t.typeAnnotation=this.tsParseTypeAnnotation(),this.resetEndLocation(t),this.expect(i.bracketR),e.parameters=[t];var n=this.tsTryParseTypeAnnotation();return n&&(e.typeAnnotation=n),this.tsParseTypeMemberSemicolon(),this.finishNode(e,"TSIndexSignature")}},S.tsParseNoneModifiers=function(e){this.tsParseModifiers({modified:e,allowedModifiers:[],disallowedModifiers:["in","out"],errorTemplate:Xn.InvalidModifierOnTypeParameterPositions})},S.tsParseTypeParameter=function(e){void 0===e&&(e=this.tsParseNoneModifiers.bind(this));var t=this.startNode();return e(t),t.name=this.tsParseTypeParameterName(),t.constraint=this.tsEatThenParseType(i._extends),t.default=this.tsEatThenParseType(i.eq),this.finishNode(t,"TSTypeParameter")},S.tsParseTypeParameters=function(e){var t=this.startNode();this.tsMatchLeftRelational()||this.matchJsx("jsxTagStart")?this.next():this.unexpected();var n={value:-1};return t.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this,e),!1,!0,n),0===t.params.length&&this.raise(this.start,Xn.EmptyTypeParameters),-1!==n.value&&this.addExtra(t,"trailingComma",n.value),this.finishNode(t,"TSTypeParameterDeclaration")},S.tsTryParseTypeParameters=function(e){if(this.tsMatchLeftRelational())return this.tsParseTypeParameters(e)},S.tsTryParse=function(e){var t=this.getCurLookaheadState(),n=e();return void 0!==n&&!1!==n?n:void this.setLookaheadState(t)},S.tsTokenCanFollowModifier=function(){return(this.match(i.bracketL)||this.match(i.braceL)||this.match(i.star)||this.match(i.ellipsis)||this.match(i.privateId)||this.isLiteralPropertyName())&&!this.hasPrecedingLineBreak()},S.tsNextTokenCanFollowModifier=function(){return this.next(!0),this.tsTokenCanFollowModifier()},S.tsParseModifier=function(e,t){if(b(this.type)||this.type===i._in){var n=this.value;if(-1!==e.indexOf(n)&&!this.containsEsc){if(t&&this.tsIsStartOfStaticBlocks())return;if(this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this)))return n}}},S.tsParseModifiersByMap=function(e){for(var t=e.modified,n=e.map,r=0,s=Object.keys(n);r0&&(this.raise(this.start,"A 'get' accesor must not have any formal parameters."),this.isThisParam(r[s][0])&&this.raise(this.start,Xn.AccesorCannotDeclareThisParameter));else if("set"===r.kind){if(1!==r[s].length)this.raise(this.start,"A 'get' accesor must not have any formal parameters.");else{var o=r[s][0];this.isThisParam(o)&&this.raise(this.start,Xn.AccesorCannotDeclareThisParameter),"Identifier"===o.type&&o.optional&&this.raise(this.start,Xn.SetAccesorCannotHaveOptionalParameter),"RestElement"===o.type&&this.raise(this.start,Xn.SetAccesorCannotHaveRestParameter)}r[a]&&this.raise(r[a].start,Xn.SetAccesorCannotHaveReturnType)}else r.kind="method";return this.finishNode(r,"TSMethodSignature")}var l=n;t&&(l.readonly=!0);var c=this.tsTryParseTypeAnnotation();return c&&(l.typeAnnotation=c),this.tsParseTypeMemberSemicolon(),this.finishNode(l,"TSPropertySignature")},S.tsParseTypeMember=function(){var e=this.startNode();if(this.match(i.parenL)||this.tsMatchLeftRelational())return this.tsParseSignatureMember("TSCallSignatureDeclaration",e);if(this.match(i._new)){var t=this.startNode();return this.next(),this.match(i.parenL)||this.tsMatchLeftRelational()?this.tsParseSignatureMember("TSConstructSignatureDeclaration",e):(e.key=this.createIdentifier(t,"new"),this.tsParsePropertyOrMethodSignature(e,!1))}return this.tsParseModifiers({modified:e,allowedModifiers:["readonly"],disallowedModifiers:["declare","abstract","private","protected","public","static","override"]}),this.tsTryParseIndexSignature(e)||(this.parsePropertyName(e),e.computed||"Identifier"!==e.key.type||"get"!==e.key.name&&"set"!==e.key.name||!this.tsTokenCanFollowModifier()||(e.kind=e.key.name,this.parsePropertyName(e)),this.tsParsePropertyOrMethodSignature(e,!!e.readonly))},S.tsParseList=function(e,t){for(var n=[];!this.tsIsListTerminator(e);)n.push(t());return n},S.tsParseObjectTypeMembers=function(){this.expect(i.braceL);var e=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(i.braceR),e},S.tsParseInterfaceDeclaration=function(e,t){if(void 0===t&&(t={}),this.hasFollowingLineBreak())return null;this.expectContextual("interface"),t.declare&&(e.declare=!0),b(this.type)?(e.id=this.parseIdent(),this.checkLValSimple(e.id,7)):(e.id=null,this.raise(this.start,Xn.MissingInterfaceName)),e.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers.bind(this)),this.eat(i._extends)&&(e.extends=this.tsParseHeritageClause("extends"));var n=this.startNode();return n.body=this.tsInType(this.tsParseObjectTypeMembers.bind(this)),e.body=this.finishNode(n,"TSInterfaceBody"),this.finishNode(e,"TSInterfaceDeclaration")},S.tsParseAbstractDeclaration=function(e){if(this.match(i._class))return e.abstract=!0,this.parseClass(e,!0);if(this.ts_isContextual(h.interface)){if(!this.hasFollowingLineBreak())return e.abstract=!0,this.tsParseInterfaceDeclaration(e)}else this.unexpected(e.start)},S.tsIsDeclarationStart=function(){return g(this.type)},S.tsParseExpressionStatement=function(t,n){switch(n.name){case"declare":var r=this.tsTryParseDeclare(t);if(r)return r.declare=!0,r;break;case"global":if(this.match(i.braceL)){e.prototype.enterScope.call(this,Hn);var s=t;return s.global=!0,s.id=n,s.body=this.tsParseModuleBlock(),e.prototype.exitScope.call(this),this.finishNode(s,"TSModuleDeclaration")}break;default:return this.tsParseDeclaration(t,n.name,!1)}},S.tsParseModuleReference=function(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(!1)},S.tsIsExportDefaultSpecifier=function(){var e=this.type,t=this.isAsyncFunction(),n=this.isLet();if(b(e)){if(t&&!this.containsEsc||n)return!1;if((e===h.type||e===h.interface)&&!this.containsEsc){var r=this.lookahead();if(b(r.type)&&!this.isContextualWithState("from",r)||r.type===i.braceL)return!1}}else if(!this.match(i._default))return!1;var s=this.nextTokenStart(),a=this.isUnparsedContextual(s,"from");if(44===this.input.charCodeAt(s)||b(this.type)&&a)return!0;if(this.match(i._default)&&a){var o=this.input.charCodeAt(this.nextTokenStartSince(s+4));return 34===o||39===o}return!1},S.tsInAmbientContext=function(e){var t=this.isAmbientContext;this.isAmbientContext=!0;try{return e()}finally{this.isAmbientContext=t}},S.tsCheckLineTerminator=function(e){return e?!this.hasFollowingLineBreak()&&(this.next(),!0):!this.isLineTerminator()},S.tsParseModuleOrNamespaceDeclaration=function(t,n){if(void 0===n&&(n=!1),t.id=this.parseIdent(),n||this.checkLValSimple(t.id,8),this.eat(i.dot)){var r=this.startNode();this.tsParseModuleOrNamespaceDeclaration(r,!0),t.body=r}else e.prototype.enterScope.call(this,Hn),t.body=this.tsParseModuleBlock(),e.prototype.exitScope.call(this);return this.finishNode(t,"TSModuleDeclaration")},S.checkLValSimple=function(t,n,r){return void 0===n&&(n=0),e.prototype.checkLValSimple.call(this,t,n,r)},S.tsParseTypeAliasDeclaration=function(e){var t=this;return e.id=this.parseIdent(),this.checkLValSimple(e.id,6),e.typeAnnotation=this.tsInType((function(){if(e.typeParameters=t.tsTryParseTypeParameters(t.tsParseInOutModifiers.bind(t)),t.expect(i.eq),t.ts_isContextual(h.interface)&&t.lookahead().type!==i.dot){var n=t.startNode();return t.next(),t.finishNode(n,"TSIntrinsicKeyword")}return t.tsParseType()})),this.semicolon(),this.finishNode(e,"TSTypeAliasDeclaration")},S.tsParseDeclaration=function(e,t,n){switch(t){case"abstract":if(this.tsCheckLineTerminator(n)&&(this.match(i._class)||b(this.type)))return this.tsParseAbstractDeclaration(e);break;case"module":if(this.tsCheckLineTerminator(n)){if(this.match(i.string))return this.tsParseAmbientExternalModuleDeclaration(e);if(b(this.type))return this.tsParseModuleOrNamespaceDeclaration(e)}break;case"namespace":if(this.tsCheckLineTerminator(n)&&b(this.type))return this.tsParseModuleOrNamespaceDeclaration(e);break;case"type":if(this.tsCheckLineTerminator(n)&&b(this.type))return this.tsParseTypeAliasDeclaration(e)}},S.tsTryParseExportDeclaration=function(){return this.tsParseDeclaration(this.startNode(),this.value,!0)},S.tsParseImportEqualsDeclaration=function(t,n){t.isExport=n||!1,t.id=this.parseIdent(),this.checkLValSimple(t.id,2),e.prototype.expect.call(this,i.eq);var r=this.tsParseModuleReference();return"type"===t.importKind&&"TSExternalModuleReference"!==r.type&&this.raise(r.start,Xn.ImportAliasHasImportType),t.moduleReference=r,e.prototype.semicolon.call(this),this.finishNode(t,"TSImportEqualsDeclaration")},S.isExportDefaultSpecifier=function(){if(this.tsIsDeclarationStart())return!1;var e=this.type;if(b(e)){if(this.isContextual("async")||this.isContextual("let"))return!1;if((e===h.type||e===h.interface)&&!this.containsEsc){var t=this.lookahead();if(b(t.type)&&!this.isContextualWithState("from",t)||t.type===i.braceL)return!1}}else if(!this.match(i._default))return!1;var n=this.nextTokenStart(),r=this.isUnparsedContextual(n,"from");if(44===this.input.charCodeAt(n)||b(this.type)&&r)return!0;if(this.match(i._default)&&r){var s=this.input.charCodeAt(this.nextTokenStartSince(n+4));return 34===s||39===s}return!1},S.parseTemplate=function(e){var t=(void 0===e?{}:e).isTagged,n=void 0!==t&&t,r=this.startNode();this.next(),r.expressions=[];var s=this.parseTemplateElement({isTagged:n});for(r.quasis=[s];!s.tail;)this.type===i.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(i.dollarBraceL),r.expressions.push(this.inType?this.tsParseType():this.parseExpression()),this.expect(i.braceR),r.quasis.push(s=this.parseTemplateElement({isTagged:n}));return this.next(),this.finishNode(r,"TemplateLiteral")},S.parseFunction=function(e,t,n,r,s){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!r)&&(this.type===i.star&&2&t&&this.unexpected(),e.generator=this.eat(i.star)),this.options.ecmaVersion>=8&&(e.async=!!r),1&t&&(e.id=4&t&&this.type!==i.name?null:this.parseIdent());var a=this.yieldPos,o=this.awaitPos,l=this.awaitIdentPos,c=this.maybeInArrowParameters;this.maybeInArrowParameters=!1,this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(sr(e.async,e.generator)),1&t||(e.id=this.type===i.name?this.parseIdent():null),this.parseFunctionParams(e);var u=1&t;return this.parseFunctionBody(e,n,!1,s,{isFunctionDeclaration:u}),this.yieldPos=a,this.awaitPos=o,this.awaitIdentPos=l,1&t&&e.id&&!(2&t)&&this.checkLValSimple(e.id,e.body?this.strict||e.generator||e.async?this.treatFunctionsAsVar?1:2:3:0),this.maybeInArrowParameters=c,this.finishNode(e,u?"FunctionDeclaration":"FunctionExpression")},S.parseFunctionBody=function(t,n,r,s,a){void 0===n&&(n=!1),void 0===r&&(r=!1),void 0===s&&(s=!1),this.match(i.colon)&&(t.returnType=this.tsParseTypeOrTypePredicateAnnotation(i.colon));var o=null!=a&&a.isFunctionDeclaration?"TSDeclareFunction":null!=a&&a.isClassMethod?"TSDeclareMethod":void 0;return o&&!this.match(i.braceL)&&this.isLineTerminator()?this.finishNode(t,o):"TSDeclareFunction"===o&&this.isAmbientContext&&(this.raise(t.start,Xn.DeclareFunctionHasImplementation),t.declare)?(e.prototype.parseFunctionBody.call(this,t,n,r,!1),this.finishNode(t,o)):(e.prototype.parseFunctionBody.call(this,t,n,r,s),t)},S.parseNew=function(){var e;this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var t=this.startNode(),n=this.parseIdent(!0);if(this.options.ecmaVersion>=6&&this.eat(i.dot)){t.meta=n;var r=this.containsEsc;return t.property=this.parseIdent(!0),"target"!==t.property.name&&this.raiseRecoverable(t.property.start,"The only valid meta property for new is 'new.target'"),r&&this.raiseRecoverable(t.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(t.start,"'new.target' can only be used in functions and class static block"),this.finishNode(t,"MetaProperty")}var s=this.start,a=this.startLoc,o=this.type===i._import;t.callee=this.parseSubscripts(this.parseExprAtom(),s,a,!0,!1),o&&"ImportExpression"===t.callee.type&&this.raise(s,"Cannot use new with import()");var l=t.callee;return"TSInstantiationExpression"!==l.type||null!=(e=l.extra)&&e.parenthesized||(t.typeParameters=l.typeParameters,t.callee=l.expression),t.arguments=this.eat(i.parenL)?this.parseExprList(i.parenR,this.options.ecmaVersion>=8,!1):[],this.finishNode(t,"NewExpression")},S.parseExprOp=function(t,n,r,s,o){var l;if(i._in.binop>s&&!this.hasPrecedingLineBreak()&&(this.isContextual("as")&&(l="TSAsExpression"),a&&this.isContextual("satisfies")&&(l="TSSatisfiesExpression"),l)){var c=this.startNodeAt(n,r);c.expression=t;var u=this.tsTryNextParseConstantContext();return c.typeAnnotation=u||this.tsNextThenParseType(),this.finishNode(c,l),this.reScan_lt_gt(),this.parseExprOp(c,n,r,s,o)}return e.prototype.parseExprOp.call(this,t,n,r,s,o)},S.parseImportSpecifiers=function(){var e=[],t=!0;if(s.tokenIsIdentifier(this.type)&&(e.push(this.parseImportDefaultSpecifier()),!this.eat(i.comma)))return e;if(this.type===i.star)return e.push(this.parseImportNamespaceSpecifier()),e;for(this.expect(i.braceL);!this.eat(i.braceR);){if(t)t=!1;else if(this.expect(i.comma),this.afterTrailingComma(i.braceR))break;e.push(this.parseImportSpecifier())}return e},S.parseImport=function(e){var t=this.lookahead();if(e.importKind="value",this.importOrExportOuterKind="value",b(t.type)||this.match(i.star)||this.match(i.braceL)){var n=this.lookahead(2);if(n.type!==i.comma&&!this.isContextualWithState("from",n)&&n.type!==i.eq&&this.ts_eatContextualWithState("type",1,t)&&(this.importOrExportOuterKind="type",e.importKind="type",t=this.lookahead(),n=this.lookahead(2)),b(t.type)&&n.type===i.eq){this.next();var r=this.tsParseImportEqualsDeclaration(e);return this.importOrExportOuterKind="value",r}}return this.next(),this.type===i.string?(e.specifiers=[],e.source=this.parseExprAtom()):(e.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),e.source=this.type===i.string?this.parseExprAtom():this.unexpected()),this.parseMaybeImportAttributes(e),this.semicolon(),this.finishNode(e,"ImportDeclaration"),this.importOrExportOuterKind="value","type"===e.importKind&&e.specifiers.length>1&&"ImportDefaultSpecifier"===e.specifiers[0].type&&this.raise(e.start,Xn.TypeImportCannotSpecifyDefaultAndNamed),e},S.parseExportDefaultDeclaration=function(){if(this.isAbstractClass()){var t=this.startNode();return this.next(),t.abstract=!0,this.parseClass(t,!0)}if(this.match(h.interface)){var n=this.tsParseInterfaceDeclaration(this.startNode());if(n)return n}return e.prototype.parseExportDefaultDeclaration.call(this)},S.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!==i.string&&this.unexpected(),e.source=this.parseExprAtom(),this.parseMaybeImportAttributes(e),this.semicolon(),this.finishNode(e,"ExportAllDeclaration")},S.parseDynamicImport=function(e){if(this.next(),e.source=this.parseMaybeAssign(),this.eat(i.comma)){var t=this.parseExpression();e.arguments=[t]}if(!this.eat(i.parenR)){var n=this.start;this.eat(i.comma)&&this.eat(i.parenR)?this.raiseRecoverable(n,"Trailing comma is not allowed in import()"):this.unexpected(n)}return this.finishNode(e,"ImportExpression")},S.parseExport=function(e,t){var n=this.lookahead();if(this.ts_eatWithState(i._import,2,n)){this.ts_isContextual(h.type)&&61!==this.lookaheadCharCode()?(e.importKind="type",this.importOrExportOuterKind="type",this.next()):(e.importKind="value",this.importOrExportOuterKind="value");var r=this.tsParseImportEqualsDeclaration(e,!0);return this.importOrExportOuterKind=void 0,r}if(this.ts_eatWithState(i.eq,2,n)){var s=e;return s.expression=this.parseExpression(),this.semicolon(),this.importOrExportOuterKind=void 0,this.finishNode(s,"TSExportAssignment")}if(this.ts_eatContextualWithState("as",2,n)){var a=e;return this.expectContextual("namespace"),a.id=this.parseIdent(),this.semicolon(),this.importOrExportOuterKind=void 0,this.finishNode(a,"TSNamespaceExportDeclaration")}if(this.ts_isContextualWithState(n,h.type)&&this.lookahead(2).type===i.braceL?(this.next(),this.importOrExportOuterKind="type",e.exportKind="type"):(this.importOrExportOuterKind="value",e.exportKind="value"),this.next(),this.eat(i.star))return this.parseExportAllDeclaration(e,t);if(this.eat(i._default))return this.checkExport(t,"default",this.lastTokStart),e.declaration=this.parseExportDefaultDeclaration(),this.finishNode(e,"ExportDefaultDeclaration");if(this.shouldParseExportStatement())e.declaration=this.parseExportDeclaration(e),"VariableDeclaration"===e.declaration.type?this.checkVariableExport(t,e.declaration.declarations):this.checkExport(t,e.declaration.id,e.declaration.id.start),e.specifiers=[],e.source=null;else{if(e.declaration=null,e.specifiers=this.parseExportSpecifiers(t),this.eatContextual("from"))this.type!==i.string&&this.unexpected(),e.source=this.parseExprAtom(),this.parseMaybeImportAttributes(e);else{for(var o,l=Dn(e.specifiers);!(o=l()).done;){var c=o.value;this.checkUnreserved(c.local),this.checkLocalExport(c.local),"Literal"===c.local.type&&this.raise(c.local.start,"A string literal cannot be used as an exported binding without `from`.")}e.source=null}this.semicolon()}return this.finishNode(e,"ExportNamedDeclaration")},S.checkExport=function(e,t,n){e&&("string"!=typeof t&&(t="Identifier"===t.type?t.name:t.value),e[t]=!0)},S.parseMaybeDefault=function(t,n,r){var s=e.prototype.parseMaybeDefault.call(this,t,n,r);return"AssignmentPattern"===s.type&&s.typeAnnotation&&s.right.start=8&&!l&&"async"===c.name&&!this.canInsertSemicolon()&&this.eat(i._function))return this.overrideContext(p.f_expr),this.parseFunction(this.startNodeAt(a,o),0,!1,!0,n);if(s&&!this.canInsertSemicolon()){if(this.eat(i.arrow))return this.parseArrowExpression(this.startNodeAt(a,o),[c],!1,n);if(this.options.ecmaVersion>=8&&"async"===c.name&&this.type===i.name&&!l&&(!this.potentialArrowInForAwait||"of"!==this.value||this.containsEsc))return c=this.parseIdent(!1),!this.canInsertSemicolon()&&this.eat(i.arrow)||this.unexpected(),this.parseArrowExpression(this.startNodeAt(a,o),[c],!0,n)}return c}return e.prototype.parseExprAtom.call(this,t,n,r)},S.parseExprAtomDefault=function(){if(b(this.type)){var e=this.potentialArrowAt===this.start,t=this.containsEsc,n=this.parseIdent();if(!t&&"async"===n.name&&!this.canInsertSemicolon()){var r=this.type;if(r===i._function)return this.next(),this.parseFunction(this.startNodeAtNode(n),void 0,!0,!0);if(b(r)){if(61===this.lookaheadCharCode()){var s=this.parseIdent(!1);return!this.canInsertSemicolon()&&this.eat(i.arrow)||this.unexpected(),this.parseArrowExpression(this.startNodeAtNode(n),[s],!0)}return n}}return e&&this.match(i.arrow)&&!this.canInsertSemicolon()?(this.next(),this.parseArrowExpression(this.startNodeAtNode(n),[n],!1)):n}this.unexpected()},S.parseIdentNode=function(){var t=this.startNode();return x(this.type)?(t.name=this.value,t):e.prototype.parseIdentNode.call(this)},S.parseVarStatement=function(t,n,r){void 0===r&&(r=!1);var s=this.isAmbientContext;this.next(),e.prototype.parseVar.call(this,t,!1,n,r||s),this.semicolon();var a=this.finishNode(t,"VariableDeclaration");if(!s)return a;for(var i,o=Dn(a.declarations);!(i=o()).done;){var l=i.value,c=l.init;c&&("const"!==n||l.id.typeAnnotation?this.raise(c.start,Xn.InitializerNotAllowedInAmbientContext):"StringLiteral"!==c.type&&"BooleanLiteral"!==c.type&&"NumericLiteral"!==c.type&&"BigIntLiteral"!==c.type&&("TemplateLiteral"!==c.type||c.expressions.length>0)&&!ar(c)&&this.raise(c.start,Xn.ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference))}return a},S.parseStatement=function(t,n,r){if(this.match(h.at)&&this.parseDecorators(!0),this.match(i._const)&&this.isLookaheadContextual("enum")){var s=this.startNode();return this.expect(i._const),this.tsParseEnumDeclaration(s,{const:!0})}if(this.ts_isContextual(h.enum))return this.tsParseEnumDeclaration(this.startNode());if(this.ts_isContextual(h.interface)){var a=this.tsParseInterfaceDeclaration(this.startNode());if(a)return a}return e.prototype.parseStatement.call(this,t,n,r)},S.parseAccessModifier=function(){return this.tsParseModifier(["public","protected","private"])},S.parsePostMemberNameModifiers=function(e){this.eat(i.question)&&(e.optional=!0),e.readonly&&this.match(i.parenL)&&this.raise(e.start,Xn.ClassMethodHasReadonly),e.declare&&this.match(i.parenL)&&this.raise(e.start,Xn.ClassMethodHasDeclare)},S.parseExpressionStatement=function(t,n){return("Identifier"===n.type?this.tsParseExpressionStatement(t,n):void 0)||e.prototype.parseExpressionStatement.call(this,t,n)},S.shouldParseExportStatement=function(){return!!this.tsIsDeclarationStart()||!!this.match(h.at)||e.prototype.shouldParseExportStatement.call(this)},S.parseConditional=function(e,t,n,r,s){if(this.eat(i.question)){var a=this.startNodeAt(t,n);return a.test=e,a.consequent=this.parseMaybeAssign(),this.expect(i.colon),a.alternate=this.parseMaybeAssign(r),this.finishNode(a,"ConditionalExpression")}return e},S.parseMaybeConditional=function(e,t){var n=this,r=this.start,s=this.startLoc,a=this.parseExprOps(e,t);if(this.checkExpressionErrors(t))return a;if(!this.maybeInArrowParameters||!this.match(i.question))return this.parseConditional(a,r,s,e,t);var o=this.tryParse((function(){return n.parseConditional(a,r,s,e,t)}));return o.node?(o.error&&this.setLookaheadState(o.failState),o.node):(o.error&&this.setOptionalParametersError(t,o.error),a)},S.parseParenItem=function(t){var n=this.start,r=this.startLoc;if(t=e.prototype.parseParenItem.call(this,t),this.eat(i.question)&&(t.optional=!0,this.resetEndLocation(t)),this.match(i.colon)){var s=this.startNodeAt(n,r);return s.expression=t,s.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(s,"TSTypeCastExpression")}return t},S.parseExportDeclaration=function(e){var t=this;if(!this.isAmbientContext&&this.ts_isContextual(h.declare))return this.tsInAmbientContext((function(){return t.parseExportDeclaration(e)}));var n=this.start,r=this.startLoc,s=this.eatContextual("declare");!s||!this.ts_isContextual(h.declare)&&this.shouldParseExportStatement()||this.raise(this.start,Xn.ExpectedAmbientAfterExportDeclare);var a=b(this.type)&&this.tsTryParseExportDeclaration()||this.parseStatement(null);return a?(("TSInterfaceDeclaration"===a.type||"TSTypeAliasDeclaration"===a.type||s)&&(e.exportKind="type"),s&&(this.resetStartLocation(a,n,r),a.declare=!0),a):null},S.parseClassId=function(t,n){if(n||!this.isContextual("implements")){e.prototype.parseClassId.call(this,t,n);var r=this.tsTryParseTypeParameters(this.tsParseInOutModifiers.bind(this));r&&(t.typeParameters=r)}},S.parseClassPropertyAnnotation=function(e){e.optional||("!"===this.value&&this.eat(i.prefix)?e.definite=!0:this.eat(i.question)&&(e.optional=!0));var t=this.tsTryParseTypeAnnotation();t&&(e.typeAnnotation=t)},S.parseClassField=function(t){if("PrivateIdentifier"===t.key.type)t.abstract&&this.raise(t.start,Xn.PrivateElementHasAbstract),t.accessibility&&this.raise(t.start,Xn.PrivateElementHasAccessibility({modifier:t.accessibility})),this.parseClassPropertyAnnotation(t);else if(this.parseClassPropertyAnnotation(t),this.isAmbientContext&&(!t.readonly||t.typeAnnotation)&&this.match(i.eq)&&this.raise(this.start,Xn.DeclareClassFieldHasInitializer),t.abstract&&this.match(i.eq)){var n=t.key;this.raise(this.start,Xn.AbstractPropertyHasInitializer({propertyName:"Identifier"!==n.type||t.computed?"["+this.input.slice(n.start,n.end)+"]":n.name}))}return e.prototype.parseClassField.call(this,t)},S.parseClassMethod=function(e,t,n,r){var s="constructor"===e.kind,a="PrivateIdentifier"===e.key.type,i=this.tsTryParseTypeParameters();a?(i&&(e.typeParameters=i),e.accessibility&&this.raise(e.start,Xn.PrivateMethodsHasAccessibility({modifier:e.accessibility}))):i&&s&&this.raise(i.start,Xn.ConstructorHasTypeParameters);var o=e.declare,l=e.kind;!(void 0!==o&&o)||"get"!==l&&"set"!==l||this.raise(e.start,Xn.DeclareAccessor({kind:l})),i&&(e.typeParameters=i);var c=e.key;"constructor"===e.kind?(t&&this.raise(c.start,"Constructor can't be a generator"),n&&this.raise(c.start,"Constructor can't be an async method")):e.static&&Kn(e,"prototype")&&this.raise(c.start,"Classes may not have a static property named prototype");var u=e.value=this.parseMethod(t,n,r,!0,e);return"get"===e.kind&&0!==u.params.length&&this.raiseRecoverable(u.start,"getter should have no params"),"set"===e.kind&&1!==u.params.length&&this.raiseRecoverable(u.start,"setter should have exactly one param"),"set"===e.kind&&"RestElement"===u.params[0].type&&this.raiseRecoverable(u.params[0].start,"Setter cannot use rest params"),this.finishNode(e,"MethodDefinition")},S.isClassMethod=function(){return this.match(i.relational)},S.parseClassElement=function(t){var n=this;if(this.eat(i.semi))return null;var r,s=this.options.ecmaVersion,a=this.startNode(),o="",l=!1,c=!1,u="method",p=["declare","private","public","protected","accessor","override","abstract","readonly","static"],d=this.tsParseModifiers({modified:a,allowedModifiers:p,disallowedModifiers:["in","out"],stopOnStartOfClassStaticBlock:!0,errorTemplate:Xn.InvalidModifierOnTypeParameterPositions});r=Boolean(d.static);var h=function(){if(!n.tsIsStartOfStaticBlocks()){var d=n.tsTryParseIndexSignature(a);if(d)return a.abstract&&n.raise(a.start,Xn.IndexSignatureHasAbstract),a.accessibility&&n.raise(a.start,Xn.IndexSignatureHasAccessibility({modifier:a.accessibility})),a.declare&&n.raise(a.start,Xn.IndexSignatureHasDeclare),a.override&&n.raise(a.start,Xn.IndexSignatureHasOverride),d;if(!n.inAbstractClass&&a.abstract&&n.raise(a.start,Xn.NonAbstractClassHasAbstractMethod),a.override&&t&&n.raise(a.start,Xn.OverrideNotInSubClass),a.static=r,r&&(n.isClassElementNameStart()||n.type===i.star||(o="static")),!o&&s>=8&&n.eatContextual("async")&&(!n.isClassElementNameStart()&&n.type!==i.star||n.canInsertSemicolon()?o="async":c=!0),!o&&(s>=9||!c)&&n.eat(i.star)&&(l=!0),!o&&!c&&!l){var h=n.value;(n.eatContextual("get")||n.eatContextual("set"))&&(n.isClassElementNameStart()?u=h:o=h)}if(o?(a.computed=!1,a.key=n.startNodeAt(n.lastTokStart,n.lastTokStartLoc),a.key.name=o,n.finishNode(a.key,"Identifier")):n.parseClassElementName(a),n.parsePostMemberNameModifiers(a),n.isClassMethod()||s<13||n.type===i.parenL||"method"!==u||l||c){var m=!a.static&&Kn(a,"constructor"),f=m&&t;m&&"method"!==u&&n.raise(a.key.start,"Constructor can't have get/set modifier"),a.kind=m?"constructor":u,n.parseClassMethod(a,l,c,f)}else n.parseClassField(a);return a}if(n.next(),n.next(),n.tsHasSomeModifiers(a,p)&&n.raise(n.start,Xn.StaticBlockCannotHaveModifier),s>=13)return e.prototype.parseClassStaticBlock.call(n,a),a};return a.declare?this.tsInAmbientContext(h):h(),a},S.isClassElementNameStart=function(){return!!this.tsIsIdentifier()||e.prototype.isClassElementNameStart.call(this)},S.parseClassSuper=function(t){e.prototype.parseClassSuper.call(this,t),t.superClass&&(this.tsMatchLeftRelational()||this.match(i.bitShift))&&(t.superTypeParameters=this.tsParseTypeArgumentsInExpression()),this.eatContextual("implements")&&(t.implements=this.tsParseHeritageClause("implements"))},S.parseFunctionParams=function(t){var n=this.tsTryParseTypeParameters();n&&(t.typeParameters=n),e.prototype.parseFunctionParams.call(this,t)},S.parseVarId=function(t,n){e.prototype.parseVarId.call(this,t,n),"Identifier"===t.id.type&&!this.hasPrecedingLineBreak()&&"!"===this.value&&this.eat(i.prefix)&&(t.definite=!0);var r=this.tsTryParseTypeAnnotation();r&&(t.id.typeAnnotation=r,this.resetEndLocation(t.id))},S.parseArrowExpression=function(e,t,n,r){this.match(i.colon)&&(e.returnType=this.tsParseTypeAnnotation());var s=this.yieldPos,a=this.awaitPos,o=this.awaitIdentPos;this.enterScope(16|sr(n,!1)),this.initFunction(e);var l=this.maybeInArrowParameters;return this.options.ecmaVersion>=8&&(e.async=!!n),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.maybeInArrowParameters=!0,e.params=this.toAssignableList(t,!0),this.maybeInArrowParameters=!1,this.parseFunctionBody(e,!0,!1,r),this.yieldPos=s,this.awaitPos=a,this.awaitIdentPos=o,this.maybeInArrowParameters=l,this.finishNode(e,"ArrowFunctionExpression")},S.parseMaybeAssignOrigin=function(e,t,n){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(e);this.exprAllowed=!1}var r=!1,s=-1,a=-1,o=-1;t?(s=t.parenthesizedAssign,a=t.trailingComma,o=t.doubleProto,t.parenthesizedAssign=t.trailingComma=-1):(t=new Wn,r=!0);var l=this.start,c=this.startLoc;(this.type===i.parenL||b(this.type))&&(this.potentialArrowAt=this.start,this.potentialArrowInForAwait="await"===e);var u=this.parseMaybeConditional(e,t);if(n&&(u=n.call(this,u,l,c)),this.type.isAssign){var p=this.startNodeAt(l,c);return p.operator=this.value,this.type===i.eq&&(u=this.toAssignable(u,!0,t)),r||(t.parenthesizedAssign=t.trailingComma=t.doubleProto=-1),t.shorthandAssign>=u.start&&(t.shorthandAssign=-1),this.type===i.eq?this.checkLValPattern(u):this.checkLValSimple(u),p.left=u,this.next(),p.right=this.parseMaybeAssign(e),o>-1&&(t.doubleProto=o),this.finishNode(p,"AssignmentExpression")}return r&&this.checkExpressionErrors(t,!0),s>-1&&(t.parenthesizedAssign=s),a>-1&&(t.trailingComma=a),u},S.parseMaybeAssign=function(e,t,n){var r,a,i,o,l,c,u,p,d,h,m,f=this;if(this.matchJsx("jsxTagStart")||this.tsMatchLeftRelational()){if(p=this.cloneCurLookaheadState(),!(d=this.tryParse((function(){return f.parseMaybeAssignOrigin(e,t,n)}),p)).error)return d.node;var y=this.context,v=y[y.length-1];v===s.tokContexts.tc_oTag&&y[y.length-2]===s.tokContexts.tc_expr?(y.pop(),y.pop()):v!==s.tokContexts.tc_oTag&&v!==s.tokContexts.tc_expr||y.pop()}if(!(null!=(r=d)&&r.error||this.tsMatchLeftRelational()))return this.parseMaybeAssignOrigin(e,t,n);p&&!this.compareLookaheadState(p,this.getCurLookaheadState())||(p=this.cloneCurLookaheadState());var g=this.tryParse((function(r){var s,a;m=f.tsParseTypeParameters();var i=f.parseMaybeAssignOrigin(e,t,n);return("ArrowFunctionExpression"!==i.type||null!=(s=i.extra)&&s.parenthesized)&&r(),0!==(null==(a=m)?void 0:a.params.length)&&f.resetStartLocationFromNode(i,m),i.typeParameters=m,i}),p);if(!g.error&&!g.aborted)return m&&this.reportReservedArrowTypeParam(m),g.node;if(!d&&(tr(!0),!(h=this.tryParse((function(){return f.parseMaybeAssignOrigin(e,t,n)}),p)).error))return h.node;if(null!=(a=d)&&a.node)return this.setLookaheadState(d.failState),d.node;if(g.node)return this.setLookaheadState(g.failState),m&&this.reportReservedArrowTypeParam(m),g.node;if(null!=(i=h)&&i.node)return this.setLookaheadState(h.failState),h.node;if(null!=(o=d)&&o.thrown)throw d.error;if(g.thrown)throw g.error;if(null!=(l=h)&&l.thrown)throw h.error;throw(null==(c=d)?void 0:c.error)||g.error||(null==(u=h)?void 0:u.error)},S.parseAssignableListItem=function(e){for(var t=[];this.match(h.at);)t.push(this.parseDecorator());var n,r=this.start,s=this.startLoc,a=!1,i=!1;if(void 0!==e){var o={};this.tsParseModifiers({modified:o,allowedModifiers:["public","private","protected","override","readonly"]}),n=o.accessibility,i=o.override,a=o.readonly,!1===e&&(n||a||i)&&this.raise(s.start,Xn.UnexpectedParameterModifier)}var l=this.parseMaybeDefault(r,s);this.parseBindingListItem(l);var c=this.parseMaybeDefault(l.start,l.loc,l);if(t.length&&(c.decorators=t),n||a||i){var u=this.startNodeAt(r,s);return n&&(u.accessibility=n),a&&(u.readonly=a),i&&(u.override=i),"Identifier"!==c.type&&"AssignmentPattern"!==c.type&&this.raise(u.start,Xn.UnsupportedParameterPropertyKind),u.parameter=c,this.finishNode(u,"TSParameterProperty")}return c},S.checkLValInnerPattern=function(t,n,r){void 0===n&&(n=0),"TSParameterProperty"===t.type?this.checkLValInnerPattern(t.parameter,n,r):e.prototype.checkLValInnerPattern.call(this,t,n,r)},S.parseBindingListItem=function(e){this.eat(i.question)&&("Identifier"===e.type||this.isAmbientContext||this.inType||this.raise(e.start,Xn.PatternIsOptional),e.optional=!0);var t=this.tsTryParseTypeAnnotation();return t&&(e.typeAnnotation=t),this.resetEndLocation(e),e},S.isAssignable=function(e,t){var n=this;switch(e.type){case"TSTypeCastExpression":return this.isAssignable(e.expression,t);case"TSParameterProperty":case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":return!0;case"ObjectExpression":var r=e.properties.length-1;return e.properties.every((function(e,t){return"ObjectMethod"!==e.type&&(t===r||"SpreadElement"!==e.type)&&n.isAssignable(e)}));case"Property":case"ObjectProperty":return this.isAssignable(e.value);case"SpreadElement":return this.isAssignable(e.argument);case"ArrayExpression":return e.elements.every((function(e){return null===e||n.isAssignable(e)}));case"AssignmentExpression":return"="===e.operator;case"ParenthesizedExpression":return this.isAssignable(e.expression);case"MemberExpression":case"OptionalMemberExpression":return!t;default:return!1}},S.toAssignable=function(t,n,r){switch(void 0===n&&(n=!1),void 0===r&&(r=new Wn),t.type){case"ParenthesizedExpression":return this.toAssignableParenthesizedExpression(t,n,r);case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":return n||this.raise(t.start,Xn.UnexpectedTypeCastInParameter),this.toAssignable(t.expression,n,r);case"MemberExpression":break;case"AssignmentExpression":return n||"TSTypeCastExpression"!==t.left.type||(t.left=this.typeCastToParameter(t.left)),e.prototype.toAssignable.call(this,t,n,r);case"TSTypeCastExpression":return this.typeCastToParameter(t);default:return e.prototype.toAssignable.call(this,t,n,r)}return t},S.toAssignableParenthesizedExpression=function(t,n,r){switch(t.expression.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":case"ParenthesizedExpression":return this.toAssignable(t.expression,n,r);default:return e.prototype.toAssignable.call(this,t,n,r)}},S.curPosition=function(){if(this.options.locations){var t=e.prototype.curPosition.call(this);return Object.defineProperty(t,"offset",{get:function(){return function(e){var t=new n.Position(this.line,this.column+e);return t.index=this.index+e,t}}}),t.index=this.pos,t}},S.parseBindingAtom=function(){return this.type===i._this?this.parseIdent(!0):e.prototype.parseBindingAtom.call(this)},S.shouldParseArrow=function(e){var t,n=this;if(t=this.match(i.colon)?e.every((function(e){return n.isAssignable(e,!0)})):!this.canInsertSemicolon()){if(this.match(i.colon)){var r=this.tryParse((function(e){var t=n.tsParseTypeOrTypePredicateAnnotation(i.colon);return!n.canInsertSemicolon()&&n.match(i.arrow)||e(),t}));if(r.aborted)return this.shouldParseArrowReturnType=void 0,!1;r.thrown||(r.error&&this.setLookaheadState(r.failState),this.shouldParseArrowReturnType=r.node)}return!!this.match(i.arrow)||(this.shouldParseArrowReturnType=void 0,!1)}return this.shouldParseArrowReturnType=void 0,t},S.parseParenArrowList=function(e,t,n,r){var s=this.startNodeAt(e,t);return s.returnType=this.shouldParseArrowReturnType,this.shouldParseArrowReturnType=void 0,this.parseArrowExpression(s,n,!1,r)},S.parseParenAndDistinguishExpression=function(e,t){var n,r=this.start,s=this.startLoc,a=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){var o=this.maybeInArrowParameters;this.maybeInArrowParameters=!0,this.next();var l,c=this.start,u=this.startLoc,p=[],d=!0,h=!1,m=new Wn,f=this.yieldPos,y=this.awaitPos;for(this.yieldPos=0,this.awaitPos=0;this.type!==i.parenR;){if(d?d=!1:this.expect(i.comma),a&&this.afterTrailingComma(i.parenR,!0)){h=!0;break}if(this.type===i.ellipsis){l=this.start,p.push(this.parseParenItem(this.parseRestBinding())),this.type===i.comma&&this.raise(this.start,"Comma is not permitted after the rest element");break}p.push(this.parseMaybeAssign(t,m,this.parseParenItem))}var v=this.lastTokEnd,g=this.lastTokEndLoc;if(this.expect(i.parenR),this.maybeInArrowParameters=o,e&&this.shouldParseArrow(p)&&this.eat(i.arrow))return this.checkPatternErrors(m,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=f,this.awaitPos=y,this.parseParenArrowList(r,s,p,t);p.length&&!h||this.unexpected(this.lastTokStart),l&&this.unexpected(l),this.checkExpressionErrors(m,!0),this.yieldPos=f||this.yieldPos,this.awaitPos=y||this.awaitPos,p.length>1?((n=this.startNodeAt(c,u)).expressions=p,this.finishNodeAt(n,"SequenceExpression",v,g)):n=p[0]}else n=this.parseParenExpression();if(this.options.preserveParens){var b=this.startNodeAt(r,s);return b.expression=n,this.finishNode(b,"ParenthesizedExpression")}return n},S.parseTaggedTemplateExpression=function(e,t,n,r){var s=this.startNodeAt(t,n);return s.tag=e,s.quasi=this.parseTemplate({isTagged:!0}),r&&this.raise(t,"Tagged Template Literals are not allowed in optionalChain."),this.finishNode(s,"TaggedTemplateExpression")},S.shouldParseAsyncArrow=function(){var e=this;if(!this.match(i.colon))return!this.canInsertSemicolon()&&this.eat(i.arrow);var t=this.tryParse((function(t){var n=e.tsParseTypeOrTypePredicateAnnotation(i.colon);return!e.canInsertSemicolon()&&e.match(i.arrow)||t(),n}));return t.aborted?(this.shouldParseAsyncArrowReturnType=void 0,!1):t.thrown?void 0:(t.error&&this.setLookaheadState(t.failState),this.shouldParseAsyncArrowReturnType=t.node,!this.canInsertSemicolon()&&this.eat(i.arrow))},S.parseSubscriptAsyncArrow=function(e,t,n,r){var s=this.startNodeAt(e,t);return s.returnType=this.shouldParseAsyncArrowReturnType,this.shouldParseAsyncArrowReturnType=void 0,this.parseArrowExpression(s,n,!0,r)},S.parseExprList=function(e,t,n,r){for(var s=[],a=!0;!this.eat(e);){if(a)a=!1;else if(this.expect(i.comma),t&&this.afterTrailingComma(e))break;var o=void 0;n&&this.type===i.comma?o=null:this.type===i.ellipsis?(o=this.parseSpread(r),r&&this.type===i.comma&&r.trailingComma<0&&(r.trailingComma=this.start)):o=this.parseMaybeAssign(!1,r,this.parseParenItem),s.push(o)}return s},S.parseSubscript=function(e,t,n,r,s,a,o){var l=this,c=a;if(!this.hasPrecedingLineBreak()&&"!"===this.value&&this.match(i.prefix)){this.exprAllowed=!1,this.next();var u=this.startNodeAt(t,n);return u.expression=e,e=this.finishNode(u,"TSNonNullExpression")}var p=!1;if(this.match(i.questionDot)&&60===this.lookaheadCharCode()){if(r)return e;e.optional=!0,c=p=!0,this.next()}if(this.tsMatchLeftRelational()||this.match(i.bitShift)){var d,h=this.tsTryParseAndCatch((function(){if(!r&&l.atPossibleAsyncArrow(e)){var s=l.tsTryParseGenericAsyncArrowFunction(t,n,o);if(s)return e=s}var a=l.tsParseTypeArgumentsInExpression();if(!a)return e;if(p&&!l.match(i.parenL))return d=l.curPosition(),e;if(v(l.type)||l.type===i.backQuote){var u=l.parseTaggedTemplateExpression(e,t,n,c);return u.typeParameters=a,u}if(!r&&l.eat(i.parenL)){var h=new Wn,m=l.startNodeAt(t,n);return m.callee=e,m.arguments=l.parseExprList(i.parenR,l.options.ecmaVersion>=8,!1,h),l.tsCheckForInvalidTypeCasts(m.arguments),m.typeParameters=a,c&&(m.optional=p),l.checkExpressionErrors(h,!0),e=l.finishNode(m,"CallExpression")}var f=l.type;if(!(l.tsMatchRightRelational()||f===i.bitShift||f!==i.parenL&&(y=f,Boolean(y.startsExpr))&&!l.hasPrecedingLineBreak())){var y,g=l.startNodeAt(t,n);return g.expression=e,g.typeParameters=a,l.finishNode(g,"TSInstantiationExpression")}}));if(d&&this.unexpected(d),h)return"TSInstantiationExpression"===h.type&&(this.match(i.dot)||this.match(i.questionDot)&&40!==this.lookaheadCharCode())&&this.raise(this.start,Xn.InvalidPropertyAccessAfterInstantiationExpression),e=h}var m=this.options.ecmaVersion>=11,f=m&&this.eat(i.questionDot);r&&f&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var y=this.eat(i.bracketL);if(y||f&&this.type!==i.parenL&&this.type!==i.backQuote||this.eat(i.dot)){var g=this.startNodeAt(t,n);g.object=e,y?(g.property=this.parseExpression(),this.expect(i.bracketR)):g.property=this.type===i.privateId&&"Super"!==e.type?this.parsePrivateIdent():this.parseIdent("never"!==this.options.allowReserved),g.computed=!!y,m&&(g.optional=f),e=this.finishNode(g,"MemberExpression")}else if(!r&&this.eat(i.parenL)){var b=this.maybeInArrowParameters;this.maybeInArrowParameters=!0;var x=new Wn,_=this.yieldPos,C=this.awaitPos,w=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var k=this.parseExprList(i.parenR,this.options.ecmaVersion>=8,!1,x);if(s&&!f&&this.shouldParseAsyncArrow())this.checkPatternErrors(x,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=_,this.awaitPos=C,this.awaitIdentPos=w,e=this.parseSubscriptAsyncArrow(t,n,k,o);else{this.checkExpressionErrors(x,!0),this.yieldPos=_||this.yieldPos,this.awaitPos=C||this.awaitPos,this.awaitIdentPos=w||this.awaitIdentPos;var P=this.startNodeAt(t,n);P.callee=e,P.arguments=k,m&&(P.optional=f),e=this.finishNode(P,"CallExpression")}this.maybeInArrowParameters=b}else if(this.type===i.backQuote){(f||c)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var S=this.startNodeAt(t,n);S.tag=e,S.quasi=this.parseTemplate({isTagged:!0}),e=this.finishNode(S,"TaggedTemplateExpression")}return e},S.parseGetterSetter=function(e){e.kind=e.key.name,this.parsePropertyName(e),e.value=this.parseMethod(!1);var t="get"===e.kind?0:1,n=e.value.params[0],r=n&&this.isThisParam(n);e.value.params.length!==(t=r?t+1:t)?this.raiseRecoverable(e.value.start,"get"===e.kind?"getter should have no params":"setter should have exactly one param"):"set"===e.kind&&"RestElement"===e.value.params[0].type&&this.raiseRecoverable(e.value.params[0].start,"Setter cannot use rest params")},S.parseProperty=function(t,n){if(!t){var r=[];if(this.match(h.at))for(;this.match(h.at);)r.push(this.parseDecorator());var s=e.prototype.parseProperty.call(this,t,n);return"SpreadElement"===s.type&&r.length&&this.raise(s.start,"Decorators can't be used with SpreadElement"),r.length&&(s.decorators=r,r=[]),s}return e.prototype.parseProperty.call(this,t,n)},S.parseCatchClauseParam=function(){var e=this.parseBindingAtom(),t="Identifier"===e.type;this.enterScope(t?32:0),this.checkLValPattern(e,t?4:2);var n=this.tsTryParseTypeAnnotation();return n&&(e.typeAnnotation=n,this.resetEndLocation(e)),this.expect(i.parenR),e},S.parseClass=function(e,t){var n=this.inAbstractClass;this.inAbstractClass=!!e.abstract;try{this.next(),this.takeDecorators(e);var r=this.strict;this.strict=!0,this.parseClassId(e,t),this.parseClassSuper(e);var s=this.enterClassBody(),a=this.startNode(),o=!1;a.body=[];var l=[];for(this.expect(i.braceL);this.type!==i.braceR;)if(this.match(h.at))l.push(this.parseDecorator());else{var c=this.parseClassElement(null!==e.superClass);l.length&&(c.decorators=l,this.resetStartLocationFromNode(c,l[0]),l=[]),c&&(a.body.push(c),"MethodDefinition"===c.type&&"constructor"===c.kind&&"FunctionExpression"===c.value.type?(o&&this.raiseRecoverable(c.start,"Duplicate constructor in the same class"),o=!0,c.decorators&&c.decorators.length>0&&this.raise(c.start,"Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?")):c.key&&"PrivateIdentifier"===c.key.type&&Gn(s,c)&&this.raiseRecoverable(c.key.start,"Identifier '#"+c.key.name+"' has already been declared"))}return this.strict=r,this.next(),l.length&&this.raise(this.start,"Decorators must be attached to a class element."),e.body=this.finishNode(a,"ClassBody"),this.exitClassBody(),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")}finally{this.inAbstractClass=n}},S.parseClassFunctionParams=function(){var e=this.tsTryParseTypeParameters(this.tsParseConstModifier),t=this.parseBindingList(i.parenR,!1,this.options.ecmaVersion>=8,!0);return e&&(t.typeParameters=e),t},S.parseMethod=function(e,t,n,r,s){var a=this.startNode(),o=this.yieldPos,l=this.awaitPos,c=this.awaitIdentPos;if(this.initFunction(a),this.options.ecmaVersion>=6&&(a.generator=e),this.options.ecmaVersion>=8&&(a.async=!!t),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(64|sr(t,a.generator)|(n?128:0)),this.expect(i.parenL),a.params=this.parseClassFunctionParams(),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(a,!1,!0,!1,{isClassMethod:r}),this.yieldPos=o,this.awaitPos=l,this.awaitIdentPos=c,s&&s.abstract&&a.body){var u=s.key;this.raise(s.start,Xn.AbstractMethodHasImplementation({methodName:"Identifier"!==u.type||s.computed?"["+this.input.slice(u.start,u.end)+"]":u.name}))}return this.finishNode(a,"FunctionExpression")},t.parse=function(e,t){if(!1===t.locations)throw new Error("You have to enable options.locations while using acorn-typescript");t.locations=!0;var n=new this(t,e);return r&&(n.isAmbientContext=!0),n.parse()},t.parseExpressionAt=function(e,t,n){if(!1===n.locations)throw new Error("You have to enable options.locations while using acorn-typescript");n.locations=!0;var s=new this(n,e,t);return r&&(s.isAmbientContext=!0),s.nextToken(),s.parseExpression()},S.parseImportSpecifier=function(){if(this.ts_isContextual(h.type)){var t=this.startNode();return t.imported=this.parseModuleExportName(),this.parseTypeOnlyImportExportSpecifier(t,!0,"type"===this.importOrExportOuterKind),this.finishNode(t,"ImportSpecifier")}var n=e.prototype.parseImportSpecifier.call(this);return n.importKind="value",n},S.parseExportSpecifier=function(t){var n=this.ts_isContextual(h.type);if(!this.match(i.string)&&n){var r=this.startNode();return r.local=this.parseModuleExportName(),this.parseTypeOnlyImportExportSpecifier(r,!1,"type"===this.importOrExportOuterKind),this.finishNode(r,"ExportSpecifier"),this.checkExport(t,r.exported,r.exported.start),r}var s=e.prototype.parseExportSpecifier.call(this,t);return s.exportKind="value",s},S.parseTypeOnlyImportExportSpecifier=function(t,n,r){var s,a=n?"imported":"local",i=n?"local":"exported",o=t[a],l=!1,c=!0,u=o.start;if(this.isContextual("as")){var p=this.parseIdent();if(this.isContextual("as")){var d=this.parseIdent();x(this.type)?(l=!0,o=p,s=n?this.parseIdent():this.parseModuleExportName(),c=!1):(s=d,c=!1)}else x(this.type)?(c=!1,s=n?this.parseIdent():this.parseModuleExportName()):(l=!0,o=p)}else x(this.type)&&(l=!0,n?(o=e.prototype.parseIdent.call(this,!0),this.isContextual("as")||this.checkUnreserved(o)):o=this.parseModuleExportName());l&&r&&this.raise(u,n?Xn.TypeModifierIsUsedInTypeImports:Xn.TypeModifierIsUsedInTypeExports),t[a]=o,t[i]=s,t[n?"importKind":"exportKind"]=l?"type":"value",c&&this.eatContextual("as")&&(t[i]=n?this.parseIdent():this.parseModuleExportName()),t[i]||(t[i]=this.copyNode(t[a])),n&&this.checkLValSimple(t[i],2)},S.raiseCommonCheck=function(t,n,r){return"Comma is not permitted after the rest element"===n?this.isAmbientContext&&this.match(i.comma)&&41===this.lookaheadCharCode()?void this.next():e.prototype.raise.call(this,t,n):r?e.prototype.raiseRecoverable.call(this,t,n):e.prototype.raise.call(this,t,n)},S.raiseRecoverable=function(e,t){return this.raiseCommonCheck(e,t,!0)},S.raise=function(e,t){return this.raiseCommonCheck(e,t,!0)},S.updateContext=function(t){var n=this.type;if(n==i.braceL){var r=this.curContext();r==m.tc_oTag?this.context.push(p.b_expr):r==m.tc_expr?this.context.push(p.b_tmpl):e.prototype.updateContext.call(this,t),this.exprAllowed=!0}else{if(n!==i.slash||t!==h.jsxTagStart)return e.prototype.updateContext.call(this,t);this.context.length-=2,this.context.push(m.tc_cTag),this.exprAllowed=!1}},S.jsx_parseOpeningElementAt=function(e,t){var n=this,r=this.startNodeAt(e,t),s=this.jsx_parseElementName();if(s&&(r.name=s),this.match(i.relational)||this.match(i.bitShift)){var a=this.tsTryParseAndCatch((function(){return n.tsParseTypeArgumentsInExpression()}));a&&(r.typeParameters=a)}for(r.attributes=[];this.type!==i.slash&&this.type!==h.jsxTagEnd;)r.attributes.push(this.jsx_parseAttribute());return r.selfClosing=this.eat(i.slash),this.expect(h.jsxTagEnd),this.finishNode(r,s?"JSXOpeningElement":"JSXOpeningFragment")},S.enterScope=function(t){t===Hn&&this.importsStack.push([]),e.prototype.enterScope.call(this,t);var n=e.prototype.currentScope.call(this);n.types=[],n.enums=[],n.constEnums=[],n.classes=[],n.exportOnlyBindings=[]},S.exitScope=function(){e.prototype.currentScope.call(this).flags===Hn&&this.importsStack.pop(),e.prototype.exitScope.call(this)},S.hasImport=function(e,t){var n=this.importsStack.length;if(this.importsStack[n-1].indexOf(e)>-1)return!0;if(!t&&n>1)for(var r=0;r-1)return!0;return!1},S.maybeExportDefined=function(e,t){this.inModule&&1&e.flags&&this.undefinedExports.delete(t)},S.isRedeclaredInScope=function(t,n,r){return!!(0&r)&&(2&r?t.lexical.indexOf(n)>-1||t.functions.indexOf(n)>-1||t.var.indexOf(n)>-1:3&r?t.lexical.indexOf(n)>-1||!e.prototype.treatFunctionsAsVarInScope.call(this,t)&&t.var.indexOf(n)>-1:t.lexical.indexOf(n)>-1&&!(32&t.flags&&t.lexical[0]===n)||!this.treatFunctionsAsVarInScope(t)&&t.functions.indexOf(n)>-1)},S.checkRedeclarationInScope=function(e,t,n,r){this.isRedeclaredInScope(e,t,n)&&this.raise(r,"Identifier '"+t+"' has already been declared.")},S.declareName=function(t,n,r){if(4096&n)return this.hasImport(t,!0)&&this.raise(r,"Identifier '"+t+"' has already been declared."),void this.importsStack[this.importsStack.length-1].push(t);var s=this.currentScope();if(1024&n)return this.maybeExportDefined(s,t),void s.exportOnlyBindings.push(t);e.prototype.declareName.call(this,t,n,r),0&n&&(0&n||(this.checkRedeclarationInScope(s,t,n,r),this.maybeExportDefined(s,t)),s.types.push(t)),256&n&&s.enums.push(t),512&n&&s.constEnums.push(t),128&n&&s.classes.push(t)},S.checkLocalExport=function(t){var n=t.name;if(!this.hasImport(n)){for(var r=this.scopeStack.length-1;r>=0;r--){var s=this.scopeStack[r];if(s.types.indexOf(n)>-1||s.exportOnlyBindings.indexOf(n)>-1)return}e.prototype.checkLocalExport.call(this,t)}},w=t,P=[{key:"acornTypeScript",get:function(){return s}}],(k=[{key:"acornTypeScript",get:function(){return s}}])&&qn(w.prototype,k),P&&qn(w,P),Object.defineProperty(w,"prototype",{writable:!1}),t}(t);return w}}({allowSatisfies:!0}));function cr(e,t){const n=t?lr:St,{onComment:r,add_comments:s}=pr(e),a=n.parse(e,{onComment:r,sourceType:"module",ecmaVersion:13,locations:!0});return t&&dr(e,a),s(a),a}function ur(e,t,n){const r=t?lr:St,{onComment:s,add_comments:a}=pr(e),i=r.parseExpressionAt(e,n,{onComment:s,sourceType:"module",ecmaVersion:13,locations:!0});return t&&dr(e,i),a(i),i}function pr(e){const n=[];return{onComment:(t,r,s,a)=>{if(t&&/\n/.test(r)){let t=s;for(;t>0&&"\n"!==e[t-1];)t-=1;let n=t;for(;/[ \t]/.test(e[n]);)n+=1;const a=e.slice(t,n);r=r.replace(new RegExp(`^${a}`,"gm"),"")}n.push({type:t?"Block":"Line",value:r,start:s,end:a})},add_comments(r){0!==n.length&&(t(r,null,{_(t,{next:r,path:s}){let a;for(;n[0]&&n[0].start=r.end)break;(t.trailingComments||=[]).push(e),n.shift(),e.end}else t.end<=n[0].start&&/^[,) \t]*$/.test(s)&&(t.trailingComments=[n.shift()])}}}}),n.length>0&&(n[0].start>=r.end||"Program"===r.type)&&(r.trailingComments||=[]).push(...n.splice(0)))}}}function dr(e,n){return t(n,null,{_(t,n){if(delete t.loc.start.index,delete t.loc.end.index,"number"==typeof t.loc?.end){const e=F(t.loc.end);e&&(t.loc.end={line:e.line,column:e.column})}if(t.typeAnnotation&&(void 0===t.end||t.end>>0).toString(36)}const fr=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"];function yr(e){return fr.includes(e)||"!doctype"===e.toLowerCase()}const vr=["arguments","await","break","case","catch","class","const","continue","debugger","default","delete","do","else","enum","eval","export","extends","false","finally","for","function","if","implements","import","in","instanceof","interface","let","new","null","package","private","protected","public","return","static","super","switch","this","throw","true","try","typeof","var","void","while","with","yield"];function gr(e){return vr.includes(e)}function br(e){return e.endsWith("capture")&&"gotpointercapture"!==e&&"lostpointercapture"!==e}const xr=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function _r(e){return xr.includes(e)}const Cr=["allowfullscreen","async","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","hidden","indeterminate","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected","webkitdirectory"];function wr(e){return Cr.includes(e)}const kr={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly",srcobject:"srcObject"};const Pr=[...Cr,"formNoValidate","isMap","noModule","playsInline","readOnly","value","inert","volume","srcObject"];const Sr=["autofocus","muted"];function Er(e){return Sr.includes(e)}const Ar=["touchstart","touchmove"];const Tr=["textContent","innerHTML","innerText"];function $r(e){return Tr.includes(e)}const Rr=["body","embed","iframe","img","link","object","script","style","track"];function Ir(e){return Rr.includes(e)}const qr=["altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","discard","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignObject","g","glyph","glyphRef","hatch","hatchpath","hkern","image","line","linearGradient","marker","mask","mesh","meshgradient","meshpatch","meshrow","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","set","solidcolor","stop","svg","switch","symbol","text","textPath","tref","tspan","unknown","use","view","vkern"];function Lr(e){return qr.includes(e)}const Mr=["annotation","annotation-xml","maction","math","merror","mfrac","mi","mmultiscripts","mn","mo","mover","mpadded","mphantom","mprescripts","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msubsup","msup","mtable","mtd","mtext","mtr","munder","munderover","semantics"];const Or=["$state","$state.raw","$state.snapshot","$props","$bindable","$derived","$derived.by","$effect","$effect.pre","$effect.tracking","$effect.root","$inspect","$inspect().with","$host"];function Nr(e){return Or.includes(e)}class Dr extends Error{message="";#e;constructor(e,t,n){super(t),this.stack="",this.#e=new X(e,t,n),Object.assign(this,this.#e),this.name="CompileError"}toString(){return this.#e.toString()}toJSON(){return this.#e.toJSON()}}function jr(e,t,n){const r="number"==typeof e?e:e?.start;throw new Dr(t,n,void 0!==r?[r,("number"==typeof e?e:e?.end)??r]:void 0)}function Br(e,t){jr(e,"options_unrecognised",`Unrecognised compiler option ${t}`)}function Fr(e,t){jr(e,"constant_assignment",`Cannot assign to ${t}`)}function Vr(e){jr(e,"declaration_duplicate_module_import","Cannot declare a variable with the same name as an import inside `