Laptop-Thing/web/node_modules/svelte/compiler/index.js
2024-11-27 12:35:48 -05:00

2 lines
728 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

!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<r;++t)e+="-";for(let e=0;e<n.length-t+1;++e)s.push(n.slice(e,e+t));return s}(e,t);let s=0;for(;s<r.length;++s)r[s]in n?n[r[s]]+=1:n[r[s]]=1;return n}function I(e,t){return t[0]-e[0]}class q{exact_set={};match_dict={};items={};constructor(e){for(let e=2;e<4;++e)this.items[e]=[];for(let t=0;t<e.length;++t)this.add(e[t])}add(e){if(e.toLowerCase()in this.exact_set)return!1;let t=2;for(;t<4;++t)this._add(e,t)}_add(e,t){const n=e.toLowerCase(),r=this.items[t]||[],s=r.length;r.push(0);const a=R(n,t);let i,o,l=0;for(i in a)o=a[i],l+=Math.pow(o,2),i in this.match_dict?this.match_dict[i].push([s,o]):this.match_dict[i]=[[s,o]];const c=Math.sqrt(l);r[s]=[c,n],this.items[t]=r,this.exact_set[n]=e}get(e){const t=e.toLowerCase(),n=this.exact_set[t];if(n)return[[1,n]];for(let t=3;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<this.match_dict[i].length;++l)c=this.match_dict[i][l][0],u=this.match_dict[i][l][1],c in r?r[c]+=o*u:r[c]=o*u;const d=Math.sqrt(p);let h,m=[];for(const e in r)h=r[e],m.push([h/(d*a[e][0]),a[e][1]]);m.sort(I);let f=[];const y=Math.min(50,m.length);for(let e=0;e<y;++e)f.push([T(m[e][1],n),m[e][1]]);m=f,m.sort(I),f=[];for(let e=0;e<m.length;++e)m[e][0]===m[0][0]&&f.push([m[e][0],this.exact_set[m[e][1]]]);return f}}function L(e,t){return e.start<=t&&t<e.end}function M(e,t={}){const{offsetLine:n=0,offsetColumn:r=0}=t;let s=0;const a=e.split("\n").map(((e,t)=>{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 `<th>` 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--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+"‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࢘-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍--9_・]");function Ge(e,t){for(var n=65536,r=0;r<t.length;r+=2){if((n+=t[r])>e)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<n;r++){var s=e.charCodeAt(r);if(at(s))return r<n-1&&13===s&&10===e.charCodeAt(r+1)?r+2:r+1}return-1}var ot=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,lt=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,ct=Object.prototype,ut=ct.hasOwnProperty,pt=ct.toString,dt=Object.hasOwn||function(e,t){return ut.call(e,t)},ht=Array.isArray||function(e){return"[object Array]"===pt.call(e)},mt=Object.create(null);function ft(e){return mt[e]||(mt[e]=new RegExp("^(?:"+e.replace(/ /g,"|")+")$"))}function yt(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>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<e.length;r++)n=e[r](n);return n},St.parse=function(e,t){return new this(t,e).parse()},St.parseExpressionAt=function(e,t,n){var r=new this(n,e,t);return r.nextToken(),r.parseExpression()},St.tokenizer=function(e,t){return new this(t,e)},Object.defineProperties(St.prototype,Et);var At=St.prototype,Tt=/^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;At.strictDirective=function(e){if(this.options.ecmaVersion<5)return!1;for(;;){lt.lastIndex=e,e+=lt.exec(this.input)[0].length;var t=Tt.exec(this.input.slice(e));if(!t)return!1;if("use strict"===(t[1]||t[2])){lt.lastIndex=e+t[0].length;var n=lt.exec(this.input),r=n.index+n[0].length,s=this.input.charAt(r);return";"===s||"}"===s||rt.test(n[0])&&!(/[(`.[+\-/*%<>=,?^&]/.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.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,"Yield expression cannot be a default value"),this.awaitPos&&this.raise(this.awaitPos,"Await expression cannot be a default value")},At.isSimpleAssignTarget=function(e){return"ParenthesizedExpression"===e.type?this.isSimpleAssignTarget(e.expression):"Identifier"===e.type||"MemberExpression"===e.type};var Rt=St.prototype;Rt.parseTopLevel=function(e){var t=Object.create(null);for(e.body||(e.body=[]);this.type!==nt.eof;){var n=this.parseStatement(null,!0,t);e.body.push(n)}if(this.inModule)for(var r=0,s=Object.keys(this.undefinedExports);r<s.length;r+=1){var a=s[r];this.raiseRecoverable(this.undefinedExports[a].start,"Export '"+a+"' is not defined")}return this.adaptDirectivePrologue(e.body),this.next(),e.sourceType=this.options.sourceType,this.finishNode(e,"Program")};var It={kind:"loop"},qt={kind:"switch"};Rt.isLet=function(e){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;lt.lastIndex=this.pos;var t=lt.exec(this.input),n=this.pos+t[0].length,r=this.input.charCodeAt(n);if(91===r||92===r)return!0;if(e)return!1;if(123===r||r>55295&&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<this.labels.length;++r){var s=this.labels[r];if(null==e.label||s.name===e.label.name){if(null!=s.kind&&(n||"loop"===s.kind))break;if(e.label&&n)break}}return r===this.labels.length&&this.raise(e.start,"Unsyntactic "+t),this.finishNode(e,n?"BreakStatement":"ContinueStatement")},Rt.parseDebuggerStatement=function(e){return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement")},Rt.parseDoStatement=function(e){return this.next(),this.labels.push(It),e.body=this.parseStatement("do"),this.labels.pop(),this.expect(nt._while),e.test=this.parseParenExpression(),this.options.ecmaVersion>=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<a.length;s+=1){a[s].name===t&&this.raise(n.start,"Label '"+t+"' is already declared")}for(var i=this.type.isLoop?"loop":this.type===nt._switch?"switch":null,o=this.labels.length-1;o>=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<n.length;++a){var i=n[a];dt(t,i.name)||(s?s.used.push(i):this.raiseRecoverable(i.start,"Private field '#"+i.name+"' must be declared in an enclosing class"))}},Rt.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!==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<r.length;n+=1){var s=r[n];this.checkUnreserved(s.local),this.checkLocalExport(s.local),"Literal"===s.local.type&&this.raise(s.local.start,"A string literal cannot be used as an exported binding without `from`.")}e.source=null}this.semicolon()}return this.finishNode(e,"ExportNamedDeclaration")},Rt.parseExportDeclaration=function(e){return this.parseStatement(null)},Rt.parseExportDefaultDeclaration=function(){var e;if(this.type===nt._function||(e=this.isAsyncFunction())){var t=this.startNode();return this.next(),e&&this.next(),this.parseFunction(t,4|Mt,!1,e)}if(this.type===nt._class){var n=this.startNode();return this.parseClass(n,"nullableID")}var r=this.parseMaybeAssign();return this.semicolon(),r},Rt.checkExport=function(e,t,n){e&&("string"!=typeof t&&(t="Identifier"===t.type?t.name:t.value),dt(e,t)&&this.raiseRecoverable(n,"Duplicate export '"+t+"'"),e[t]=!0)},Rt.checkPatternExport=function(e,t){var n=t.type;if("Identifier"===n)this.checkExport(e,t,t.start);else if("ObjectPattern"===n)for(var r=0,s=t.properties;r<s.length;r+=1){var a=s[r];this.checkPatternExport(e,a)}else if("ArrayPattern"===n)for(var i=0,o=t.elements;i<o.length;i+=1){var l=o[i];l&&this.checkPatternExport(e,l)}else"Property"===n?this.checkPatternExport(e,t.value):"AssignmentPattern"===n?this.checkPatternExport(e,t.left):"RestElement"===n&&this.checkPatternExport(e,t.argument)},Rt.checkVariableExport=function(e,t){if(e)for(var n=0,r=t;n<r.length;n+=1){var s=r[n];this.checkPatternExport(e,s.id)}},Rt.shouldParseExportStatement=function(){return"var"===this.type.keyword||"const"===this.type.keyword||"class"===this.type.keyword||"function"===this.type.keyword||this.isLet()||this.isAsyncFunction()},Rt.parseExportSpecifier=function(e){var t=this.startNode();return t.local=this.parseModuleExportName(),t.exported=this.eatContextual("as")?this.parseModuleExportName():t.local,this.checkExport(e,t.exported,t.exported.start),this.finishNode(t,"ExportSpecifier")},Rt.parseExportSpecifiers=function(e){var t=[],n=!0;for(this.expect(nt.braceL);!this.eat(nt.braceR);){if(n)n=!1;else if(this.expect(nt.comma),this.afterTrailingComma(nt.braceR))break;t.push(this.parseExportSpecifier(e))}return t},Rt.parseImport=function(e){return this.next(),this.type===nt.string?(e.specifiers=Lt,e.source=this.parseExprAtom()):(e.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),e.source=this.type===nt.string?this.parseExprAtom():this.unexpected()),this.semicolon(),this.finishNode(e,"ImportDeclaration")},Rt.parseImportSpecifier=function(){var e=this.startNode();return e.imported=this.parseModuleExportName(),this.eatContextual("as")?e.local=this.parseIdent():(this.checkUnreserved(e.imported),e.local=e.imported),this.checkLValSimple(e.local,2),this.finishNode(e,"ImportSpecifier")},Rt.parseImportDefaultSpecifier=function(){var e=this.startNode();return e.local=this.parseIdent(),this.checkLValSimple(e.local,2),this.finishNode(e,"ImportDefaultSpecifier")},Rt.parseImportNamespaceSpecifier=function(){var e=this.startNode();return this.next(),this.expectContextual("as"),e.local=this.parseIdent(),this.checkLValSimple(e.local,2),this.finishNode(e,"ImportNamespaceSpecifier")},Rt.parseImportSpecifiers=function(){var e=[],t=!0;if(this.type===nt.name&&(e.push(this.parseImportDefaultSpecifier()),!this.eat(nt.comma)))return e;if(this.type===nt.star)return e.push(this.parseImportNamespaceSpecifier()),e;for(this.expect(nt.braceL);!this.eat(nt.braceR);){if(t)t=!1;else if(this.expect(nt.comma),this.afterTrailingComma(nt.braceR))break;e.push(this.parseImportSpecifier())}return e},Rt.parseModuleExportName=function(){if(this.options.ecmaVersion>=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<e.length&&this.isDirectiveCandidate(e[t]);++t)e[t].directive=e[t].expression.raw.slice(1,-1)},Rt.isDirectiveCandidate=function(e){return this.options.ecmaVersion>=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<s.length;r+=1){var a=s[r];this.toAssignable(a,t),"RestElement"!==a.type||"ArrayPattern"!==a.argument.type&&"ObjectPattern"!==a.argument.type||this.raise(a.argument.start,"Unexpected token")}break;case"Property":"init"!==e.kind&&this.raise(e.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(e.value,t);break;case"ArrayExpression":e.type="ArrayPattern",n&&this.checkPatternErrors(n,!0),this.toAssignableList(e.elements,t);break;case"SpreadElement":e.type="RestElement",this.toAssignable(e.argument,t),"AssignmentPattern"===e.argument.type&&this.raise(e.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":"="!==e.operator&&this.raise(e.left.end,"Only '=' operator can be used for specifying default value."),e.type="AssignmentPattern",delete e.operator,this.toAssignable(e.left,t);break;case"ParenthesizedExpression":this.toAssignable(e.expression,t,n);break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!t)break;default:this.raise(e.start,"Assigning to rvalue")}else n&&this.checkPatternErrors(n,!0);return e},jt.toAssignableList=function(e,t){for(var n=e.length,r=0;r<n;r++){var s=e[r];s&&this.toAssignable(s,t)}if(n){var a=e[n-1];6===this.options.ecmaVersion&&t&&a&&"RestElement"===a.type&&"Identifier"!==a.argument.type&&this.unexpected(a.argument.start)}return e},jt.parseSpread=function(e){var t=this.startNode();return this.next(),t.argument=this.parseMaybeAssign(!1,e),this.finishNode(t,"SpreadElement")},jt.parseRestBinding=function(){var e=this.startNode();return this.next(),6===this.options.ecmaVersion&&this.type!==nt.name&&this.unexpected(),e.argument=this.parseBindingAtom(),this.finishNode(e,"RestElement")},jt.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case nt.bracketL:var e=this.startNode();return this.next(),e.elements=this.parseBindingList(nt.bracketR,!0,!0),this.finishNode(e,"ArrayPattern");case nt.braceL:return this.parseObj(!0)}return this.parseIdent()},jt.parseBindingList=function(e,t,n,r){for(var s=[],a=!0;!this.eat(e);)if(a?a=!1:this.expect(nt.comma),t&&this.type===nt.comma)s.push(null);else{if(n&&this.afterTrailingComma(e))break;if(this.type===nt.ellipsis){var i=this.parseRestBinding();this.parseBindingListItem(i),s.push(i),this.type===nt.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.expect(e);break}s.push(this.parseAssignableListItem(r))}return s},jt.parseAssignableListItem=function(e){var t=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(t),t},jt.parseBindingListItem=function(e){return e},jt.parseMaybeDefault=function(e,t,n){if(n=n||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(nt.eq))return n;var r=this.startNodeAt(e,t);return r.left=n,r.right=this.parseMaybeAssign(),this.finishNode(r,"AssignmentPattern")},jt.checkLValSimple=function(e,t,n){void 0===t&&(t=0);var r=0!==t;switch(e.type){case"Identifier":this.strict&&this.reservedWordsStrictBind.test(e.name)&&this.raiseRecoverable(e.start,(r?"Binding ":"Assigning to ")+e.name+" in strict mode"),r&&(2===t&&"let"===e.name&&this.raiseRecoverable(e.start,"let is disallowed as a lexically bound name"),n&&(dt(n,e.name)&&this.raiseRecoverable(e.start,"Argument name clash"),n[e.name]=!0),5!==t&&this.declareName(e.name,t,e.start));break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":r&&this.raiseRecoverable(e.start,"Binding member expression");break;case"ParenthesizedExpression":return r&&this.raiseRecoverable(e.start,"Binding parenthesized expression"),this.checkLValSimple(e.expression,t,n);default:this.raise(e.start,(r?"Binding":"Assigning to")+" rvalue")}},jt.checkLValPattern=function(e,t,n){switch(void 0===t&&(t=0),e.type){case"ObjectPattern":for(var r=0,s=e.properties;r<s.length;r+=1){var a=s[r];this.checkLValInnerPattern(a,t,n)}break;case"ArrayPattern":for(var i=0,o=e.elements;i<o.length;i+=1){var l=o[i];l&&this.checkLValInnerPattern(l,t,n)}break;default:this.checkLValSimple(e,t,n)}},jt.checkLValInnerPattern=function(e,t,n){switch(void 0===t&&(t=0),e.type){case"Property":this.checkLValInnerPattern(e.value,t,n);break;case"AssignmentPattern":this.checkLValPattern(e.left,t,n);break;case"RestElement":this.checkLValPattern(e.argument,t,n);break;default:this.checkLValPattern(e,t,n)}};var Bt=function(e,t,n,r,s){this.token=e,this.isExpr=!!t,this.preserveSpace=!!n,this.override=r,this.generator=!!s},Ft={b_stat:new Bt("{",!1),b_expr:new Bt("{",!0),b_tmpl:new Bt("${",!1),p_stat:new Bt("(",!1),p_expr:new Bt("(",!0),q_tmpl:new Bt("`",!0,!0,(function(e){return e.tryReadTemplateToken()})),f_stat:new Bt("function",!1),f_expr:new Bt("function",!0),f_expr_gen:new Bt("function",!0,!1,null,!0),f_gen:new Bt("function",!1,!1,null,!0)},Vt=St.prototype;Vt.initialContext=function(){return[Ft.b_stat]},Vt.curContext=function(){return this.context[this.context.length-1]},Vt.braceIsBlock=function(e){var t=this.curContext();return t===Ft.f_expr||t===Ft.f_stat||(e!==nt.colon||t!==Ft.b_stat&&t!==Ft.b_expr?e===nt._return||e===nt.name&&this.exprAllowed?rt.test(this.input.slice(this.lastTokEnd,this.start)):e===nt._else||e===nt.semi||e===nt.eof||e===nt.parenR||e===nt.arrow||(e===nt.braceL?t===Ft.b_stat:e!==nt._var&&e!==nt._const&&e!==nt.name&&!this.exprAllowed):!t.isExpr)},Vt.inGeneratorContext=function(){for(var e=this.context.length-1;e>=1;e--){var t=this.context[e];if("function"===t.token)return t.generator}return!1},Vt.updateContext=function(e){var t,n=this.type;n.keyword&&e===nt.dot?this.exprAllowed=!1:(t=n.updateContext)?t.call(this,e):this.exprAllowed=n.beforeExpr},Vt.overrideContext=function(e){this.curContext()!==e&&(this.context[this.context.length-1]=e)},nt.parenR.updateContext=nt.braceR.updateContext=function(){if(1!==this.context.length){var e=this.context.pop();e===Ft.b_stat&&"function"===this.curContext().token&&(e=this.context.pop()),this.exprAllowed=!e.isExpr}else this.exprAllowed=!0},nt.braceL.updateContext=function(e){this.context.push(this.braceIsBlock(e)?Ft.b_stat:Ft.b_expr),this.exprAllowed=!0},nt.dollarBraceL.updateContext=function(){this.context.push(Ft.b_tmpl),this.exprAllowed=!0},nt.parenL.updateContext=function(e){var t=e===nt._if||e===nt._for||e===nt._with||e===nt._while;this.context.push(t?Ft.p_stat:Ft.p_expr),this.exprAllowed=!0},nt.incDec.updateContext=function(){},nt._function.updateContext=nt._class.updateContext=function(e){!e.beforeExpr||e===nt._else||e===nt.semi&&this.curContext()!==Ft.p_stat||e===nt._return&&rt.test(this.input.slice(this.lastTokEnd,this.start))||(e===nt.colon||e===nt.braceL)&&this.curContext()===Ft.b_stat?this.context.push(Ft.f_stat):this.context.push(Ft.f_expr),this.exprAllowed=!1},nt.colon.updateContext=function(){"function"===this.curContext().token&&this.context.pop(),this.exprAllowed=!0},nt.backQuote.updateContext=function(){this.curContext()===Ft.q_tmpl?this.context.pop():this.context.push(Ft.q_tmpl),this.exprAllowed=!1},nt.star.updateContext=function(e){if(e===nt._function){var t=this.context.length-1;this.context[t]===Ft.f_expr?this.context[t]=Ft.f_expr_gen:this.context[t]=Ft.f_gen}this.exprAllowed=!0},nt.name.updateContext=function(e){var t=!1;this.options.ecmaVersion>=6&&e!==nt.dot&&("of"===this.value&&!this.exprAllowed||"yield"===this.value&&this.inGeneratorContext())&&(t=!0),this.exprAllowed=t};var Ht=St.prototype;function Ut(e){return"Identifier"===e.type||"ParenthesizedExpression"===e.type&&Ut(e.expression)}function zt(e){return"MemberExpression"===e.type&&"PrivateIdentifier"===e.property.type||"ChainExpression"===e.type&&zt(e.expression)||"ParenthesizedExpression"===e.type&&zt(e.expression)}Ht.checkPropClash=function(e,t,n){if(!(this.options.ecmaVersion>=9&&"SpreadElement"===e.type||this.options.ecmaVersion>=6&&(e.computed||e.method||e.shorthand))){var r,s=e.key;switch(s.type){case"Identifier":r=s.name;break;case"Literal":r=String(s.value);break;default:return}var a=e.kind;if(this.options.ecmaVersion>=6)"__proto__"===r&&"init"===a&&(t.proto&&(n?n.doubleProto<0&&(n.doubleProto=s.start):this.raiseRecoverable(s.start,"Redefinition of __proto__ property")),t.proto=!0);else{var i=t[r="$"+r];if(i)("init"===a?this.strict&&i.init||i.get||i.set:i.init||i[a])&&this.raiseRecoverable(s.start,"Redefinition of property");else i=t[r]={init:!1,get:!1,set:!1};i[a]=!0}}},Ht.parseExpression=function(e,t){var n=this.start,r=this.startLoc,s=this.parseMaybeAssign(e,t);if(this.type===nt.comma){var a=this.startNodeAt(n,r);for(a.expressions=[s];this.eat(nt.comma);)a.expressions.push(this.parseMaybeAssign(e,t));return this.finishNode(a,"SequenceExpression")}return s},Ht.parseMaybeAssign=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,i=-1;t?(s=t.parenthesizedAssign,a=t.trailingComma,i=t.doubleProto,t.parenthesizedAssign=t.trailingComma=-1):(t=new $t,r=!0);var o=this.start,l=this.startLoc;this.type!==nt.parenL&&this.type!==nt.name||(this.potentialArrowAt=this.start,this.potentialArrowInForAwait="await"===e);var c=this.parseMaybeConditional(e,t);if(n&&(c=n.call(this,c,o,l)),this.type.isAssign){var u=this.startNodeAt(o,l);return u.operator=this.value,this.type===nt.eq&&(c=this.toAssignable(c,!1,t)),r||(t.parenthesizedAssign=t.trailingComma=t.doubleProto=-1),t.shorthandAssign>=c.start&&(t.shorthandAssign=-1),this.type===nt.eq?this.checkLValPattern(c):this.checkLValSimple(c),u.left=c,this.next(),u.right=this.parseMaybeAssign(e),i>-1&&(t.doubleProto=i),this.finishNode(u,"AssignmentExpression")}return r&&this.checkExpressionErrors(t,!0),s>-1&&(t.parenthesizedAssign=s),a>-1&&(t.trailingComma=a),c},Ht.parseMaybeConditional=function(e,t){var n=this.start,r=this.startLoc,s=this.parseExprOps(e,t);if(this.checkExpressionErrors(t))return s;if(this.eat(nt.question)){var a=this.startNodeAt(n,r);return a.test=s,a.consequent=this.parseMaybeAssign(),this.expect(nt.colon),a.alternate=this.parseMaybeAssign(e),this.finishNode(a,"ConditionalExpression")}return s},Ht.parseExprOps=function(e,t){var n=this.start,r=this.startLoc,s=this.parseMaybeUnary(t,!1,!1,e);return this.checkExpressionErrors(t)||s.start===n&&"ArrowFunctionExpression"===s.type?s:this.parseExprOp(s,n,r,-1,e)},Ht.parseExprOp=function(e,t,n,r,s){var a=this.type.binop;if(null!=a&&(!s||this.type!==nt._in)&&a>r){var i=this.type===nt.logicalOR||this.type===nt.logicalAND,o=this.type===nt.coalesce;o&&(a=nt.logicalAND.binop);var l=this.value;this.next();var c=this.start,u=this.startLoc,p=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,s),c,u,a,s),d=this.buildBinary(t,n,e,p,l,i||o);return(i&&this.type===nt.coalesce||o&&(this.type===nt.logicalOR||this.type===nt.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(d,t,n,r,s)}return e},Ht.buildBinary=function(e,t,n,r,s,a){"PrivateIdentifier"===r.type&&this.raise(r.start,"Private identifier can only be left side of binary expression");var i=this.startNodeAt(e,t);return i.left=n,i.operator=s,i.right=r,this.finishNode(i,a?"LogicalExpression":"BinaryExpression")},Ht.parseMaybeUnary=function(e,t,n,r){var s,a=this.start,i=this.startLoc;if(this.isContextual("await")&&this.canAwait)s=this.parseAwait(r),t=!0;else if(this.type.prefix){var o=this.startNode(),l=this.type===nt.incDec;o.operator=this.value,o.prefix=!0,this.next(),o.argument=this.parseMaybeUnary(null,!0,l,r),this.checkExpressionErrors(e,!0),l?this.checkLValSimple(o.argument):this.strict&&"delete"===o.operator&&Ut(o.argument)?this.raiseRecoverable(o.start,"Deleting local variable in strict mode"):"delete"===o.operator&&zt(o.argument)?this.raiseRecoverable(o.start,"Private fields can not be deleted"):t=!0,s=this.finishNode(o,l?"UpdateExpression":"UnaryExpression")}else if(t||this.type!==nt.privateId){if(s=this.parseExprSubscripts(e,r),this.checkExpressionErrors(e))return s;for(;this.type.postfix&&!this.canInsertSemicolon();){var c=this.startNodeAt(a,i);c.operator=this.value,c.prefix=!1,c.argument=s,this.checkLValSimple(s),this.next(),s=this.finishNode(c,"UpdateExpression")}}else(r||0===this.privateNameStack.length)&&this.options.checkPrivateFields&&this.unexpected(),s=this.parsePrivateIdent(),this.type!==nt._in&&this.unexpected();return n||!this.eat(nt.starstar)?s:t?void this.unexpected(this.lastTokStart):this.buildBinary(a,i,s,this.parseMaybeUnary(null,!1,!1,r),"**",!1)},Ht.parseExprSubscripts=function(e,t){var n=this.start,r=this.startLoc,s=this.parseExprAtom(e,t);if("ArrowFunctionExpression"===s.type&&")"!==this.input.slice(this.lastTokStart,this.lastTokEnd))return s;var a=this.parseSubscripts(s,n,r,!1,t);return e&&"MemberExpression"===a.type&&(e.parenthesizedAssign>=a.start&&(e.parenthesizedAssign=-1),e.parenthesizedBind>=a.start&&(e.parenthesizedBind=-1),e.trailingComma>=a.start&&(e.trailingComma=-1)),a},Ht.parseSubscripts=function(e,t,n,r,s){for(var a=this.options.ecmaVersion>=8&&"Identifier"===e.type&&"async"===e.name&&this.lastTokEnd===e.end&&!this.canInsertSemicolon()&&e.end-e.start==5&&this.potentialArrowAt===e.start,i=!1;;){var o=this.parseSubscript(e,t,n,r,a,i,s);if(o.optional&&(i=!0),o===e||"ArrowFunctionExpression"===o.type){if(i){var l=this.startNodeAt(t,n);l.expression=o,o=this.finishNode(l,"ChainExpression")}return o}e=o}},Ht.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(nt.arrow)},Ht.parseSubscriptAsyncArrow=function(e,t,n,r){return this.parseArrowExpression(this.startNodeAt(e,t),n,!0,r)},Ht.parseSubscript=function(e,t,n,r,s,a,i){var o=this.options.ecmaVersion>=11,l=o&&this.eat(nt.questionDot);r&&l&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var c=this.eat(nt.bracketL);if(c||l&&this.type!==nt.parenL&&this.type!==nt.backQuote||this.eat(nt.dot)){var u=this.startNodeAt(t,n);u.object=e,c?(u.property=this.parseExpression(),this.expect(nt.bracketR)):this.type===nt.privateId&&"Super"!==e.type?u.property=this.parsePrivateIdent():u.property=this.parseIdent("never"!==this.options.allowReserved),u.computed=!!c,o&&(u.optional=l),e=this.finishNode(u,"MemberExpression")}else if(!r&&this.eat(nt.parenL)){var p=new $t,d=this.yieldPos,h=this.awaitPos,m=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var f=this.parseExprList(nt.parenR,this.options.ecmaVersion>=8,!1,p);if(s&&!l&&this.shouldParseAsyncArrow())return this.checkPatternErrors(p,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=d,this.awaitPos=h,this.awaitIdentPos=m,this.parseSubscriptAsyncArrow(t,n,f,i);this.checkExpressionErrors(p,!0),this.yieldPos=d||this.yieldPos,this.awaitPos=h||this.awaitPos,this.awaitIdentPos=m||this.awaitIdentPos;var y=this.startNodeAt(t,n);y.callee=e,y.arguments=f,o&&(y.optional=l),e=this.finishNode(y,"CallExpression")}else if(this.type===nt.backQuote){(l||a)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var v=this.startNodeAt(t,n);v.tag=e,v.quasi=this.parseTemplate({isTagged:!0}),e=this.finishNode(v,"TaggedTemplateExpression")}return e},Ht.parseExprAtom=function(e,t,n){this.type===nt.slash&&this.readRegexp();var r,s=this.potentialArrowAt===this.start;switch(this.type){case nt._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),r=this.startNode(),this.next(),this.type!==nt.parenL||this.allowDirectSuper||this.raise(r.start,"super() call outside constructor of a subclass"),this.type!==nt.dot&&this.type!==nt.bracketL&&this.type!==nt.parenL&&this.unexpected(),this.finishNode(r,"Super");case nt._this:return r=this.startNode(),this.next(),this.finishNode(r,"ThisExpression");case nt.name:var a=this.start,i=this.startLoc,o=this.containsEsc,l=this.parseIdent(!1);if(this.options.ecmaVersion>=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<n.length;t+=1){if("Identifier"!==n[t].type)return!1}return!0},Ht.checkParams=function(e,t){for(var n=Object.create(null),r=0,s=e.params;r<s.length;r+=1){var a=s[r];this.checkLValInnerPattern(a,1,t?null:n)}},Ht.parseExprList=function(e,t,n,r){for(var s=[],a=!0;!this.eat(e);){if(a)a=!1;else if(this.expect(nt.comma),t&&this.afterTrailingComma(e))break;var i=void 0;n&&this.type===nt.comma?i=null:this.type===nt.ellipsis?(i=this.parseSpread(r),r&&this.type===nt.comma&&r.trailingComma<0&&(r.trailingComma=this.start)):i=this.parseMaybeAssign(!1,r),s.push(i)}return s},Ht.checkUnreserved=function(e){var t=e.start,n=e.end,r=e.name;(this.inGenerator&&"yield"===r&&this.raiseRecoverable(t,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&"await"===r&&this.raiseRecoverable(t,"Cannot use 'await' as identifier inside an async function"),this.currentThisScope().inClassFieldInit&&"arguments"===r&&this.raiseRecoverable(t,"Cannot use 'arguments' in class field initializer"),!this.inClassStaticBlock||"arguments"!==r&&"await"!==r||this.raise(t,"Cannot use "+r+" in class static initialization block"),this.keywords.test(r)&&this.raise(t,"Unexpected keyword '"+r+"'"),this.options.ecmaVersion<6&&-1!==this.input.slice(t,n).indexOf("\\"))||(this.strict?this.reservedWordsStrict:this.reservedWords).test(r)&&(this.inAsync||"await"!==r||this.raiseRecoverable(t,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(t,"The keyword '"+r+"' is reserved"))},Ht.parseIdent=function(e){var t=this.parseIdentNode();return this.next(!!e),this.finishNode(t,"Identifier"),e||(this.checkUnreserved(t),"await"!==t.name||this.awaitIdentPos||(this.awaitIdentPos=t.start)),t},Ht.parseIdentNode=function(){var e=this.startNode();return this.type===nt.name?e.name=this.value:this.type.keyword?(e.name=this.type.keyword,"class"!==e.name&&"function"!==e.name||this.lastTokEnd===this.lastTokStart+1&&46===this.input.charCodeAt(this.lastTokStart)||this.context.pop(),this.type=nt.name):this.unexpected(),e},Ht.parsePrivateIdent=function(){var e=this.startNode();return this.type===nt.privateId?e.name=this.value:this.unexpected(),this.next(),this.finishNode(e,"PrivateIdentifier"),this.options.checkPrivateFields&&(0===this.privateNameStack.length?this.raise(e.start,"Private field '#"+e.name+"' must be declared in an enclosing class"):this.privateNameStack[this.privateNameStack.length-1].used.push(e)),e},Ht.parseYield=function(e){this.yieldPos||(this.yieldPos=this.start);var t=this.startNode();return this.next(),this.type===nt.semi||this.canInsertSemicolon()||this.type!==nt.star&&!this.type.startsExpr?(t.delegate=!1,t.argument=null):(t.delegate=this.eat(nt.star),t.argument=this.parseMaybeAssign(e)),this.finishNode(t,"YieldExpression")},Ht.parseAwait=function(e){this.awaitPos||(this.awaitPos=this.start);var t=this.startNode();return this.next(),t.argument=this.parseMaybeUnary(null,!0,!1,e),this.finishNode(t,"AwaitExpression")};var Gt=St.prototype;Gt.raise=function(e,t){var n=xt(this.input,e);t+=" ("+n.line+":"+n.column+")";var r=new SyntaxError(t);throw r.pos=e,r.loc=n,r.raisedAt=this.pos,r},Gt.raiseRecoverable=Gt.raise,Gt.curPosition=function(){if(this.options.locations)return new gt(this.curLine,this.pos-this.lineStart)};var Kt=St.prototype,Xt=function(e){this.flags=e,this.var=[],this.lexical=[],this.functions=[],this.inClassFieldInit=!1};Kt.enterScope=function(e){this.scopeStack.push(new Xt(e))},Kt.exitScope=function(){this.scopeStack.pop()},Kt.treatFunctionsAsVarInScope=function(e){return 2&e.flags||!this.inModule&&1&e.flags},Kt.declareName=function(e,t,n){var r=!1;if(2===t){var s=this.currentScope();r=s.lexical.indexOf(e)>-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<fn.length;mn+=1){hn(fn[mn])}var yn=St.prototype,vn=function(e,t){this.parent=e,this.base=t||this};vn.prototype.separatedFrom=function(e){for(var t=this;t;t=t.parent)for(var n=e;n;n=n.parent)if(t.base===n.base&&t!==n)return!0;return!1},vn.prototype.sibling=function(){return new vn(this.parent,this.base)};var gn=function(e){this.parser=e,this.validFlags="gim"+(e.options.ecmaVersion>=6?"uy":"")+(e.options.ecmaVersion>=9?"s":"")+(e.options.ecmaVersion>=13?"d":"")+(e.options.ecmaVersion>=15?"v":""),this.unicodeProperties=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<s.length;r+=1){var a=s[r],i=this.at(n,t);if(-1===i||i!==a)return!1;n=this.nextIndex(n,t)}return this.pos=n,!0},yn.validateRegExpFlags=function(e){for(var t=e.validFlags,n=e.flags,r=!1,s=!1,a=0;a<n.length;a++){var i=n.charAt(a);-1===t.indexOf(i)&&this.raise(e.start,"Invalid regular expression flag"),n.indexOf(i,a+1)>-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<n.length;t+=1){var r=n[t];e.groupNames[r]||e.raise("Invalid named capture referenced")}},yn.regexp_disjunction=function(e){var t=this.options.ecmaVersion>=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<e.source.length&&this.regexp_eatTerm(e););},yn.regexp_eatTerm=function(e){return this.regexp_eatAssertion(e)?(e.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(e)&&e.switchU&&e.raise("Invalid quantifier"),!0):!!(e.switchU?this.regexp_eatAtom(e):this.regexp_eatExtendedAtom(e))&&(this.regexp_eatQuantifier(e),!0)},yn.regexp_eatAssertion=function(e){var t=e.pos;if(e.lastAssertionIsQuantifiable=!1,e.eat(94)||e.eat(36))return!0;if(e.eat(92)){if(e.eat(66)||e.eat(98))return!0;e.pos=t}if(e.eat(40)&&e.eat(63)){var n=!1;if(this.options.ecmaVersion>=9&&(n=e.eat(60)),e.eat(61)||e.eat(33))return this.regexp_disjunction(e),e.eat(41)||e.raise("Unterminated group"),e.lastAssertionIsQuantifiable=!n,!0}return e.pos=t,!1},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<r&&!t&&e.raise("numbers out of order in {} quantifier"),!0;e.switchU&&!t&&e.raise("Incomplete quantifier"),e.pos=n}return!1},yn.regexp_eatAtom=function(e){return this.regexp_eatPatternCharacters(e)||e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)},yn.regexp_eatReverseSolidusAtomEscape=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatAtomEscape(e))return!0;e.pos=t}return!1},yn.regexp_eatUncapturingGroup=function(e){var t=e.pos;if(e.eat(40)){if(e.eat(63)&&e.eat(58)){if(this.regexp_disjunction(e),e.eat(41))return!0;e.raise("Unterminated group")}e.pos=t}return!1},yn.regexp_eatCapturingGroup=function(e){if(e.eat(40)){if(this.options.ecmaVersion>=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<s.length;r+=1){s[r].separatedFrom(e.branchID)||e.raise("Duplicate capture group name")}else e.raise("Duplicate capture group name");t?(n||(e.groupNames[e.lastStringValue]=[])).push(e.branchID):e.groupNames[e.lastStringValue]=!0}},yn.regexp_eatGroupName=function(e){if(e.lastStringValue="",e.eat(60)){if(this.regexp_eatRegExpIdentifierName(e)&&e.eat(62))return!0;e.raise("Invalid capture group name")}return!1},yn.regexp_eatRegExpIdentifierName=function(e){if(e.lastStringValue="",this.regexp_eatRegExpIdentifierStart(e)){for(e.lastStringValue+=yt(e.lastIntValue);this.regexp_eatRegExpIdentifierPart(e);)e.lastStringValue+=yt(e.lastIntValue);return!0}return!1},yn.regexp_eatRegExpIdentifierStart=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 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<t;++r){var s=e.current();if(!kn(s))return e.pos=n,!1;e.lastIntValue=16*e.lastIntValue+Pn(s),e.advance()}return!0};var En=function(e){this.type=e.type,this.value=e.value,this.start=e.start,this.end=e.end,e.options.locations&&(this.loc=new bt(e,e.startLoc,e.endLoc)),e.options.ranges&&(this.range=[e.start,e.end])},An=St.prototype;function Tn(e){return"function"!=typeof BigInt?null:BigInt(e.replace(/_/g,""))}An.next=function(e){!e&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword),this.options.onToken&&this.options.onToken(new En(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},An.getToken=function(){return this.next(),new En(this)},"undefined"!=typeof Symbol&&(An[Symbol.iterator]=function(){var e=this;return{next:function(){var t=e.getToken();return{done:t.type===nt.eof,value:t}}}}),An.nextToken=function(){var e=this.curContext();return e&&e.preserveSpace||this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=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.pos<this.input.length&&!at(r);)r=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(t+e,this.pos),t,this.pos,n,this.curPosition())},An.skipSpace=function(){e:for(;this.pos<this.input.length;){var e=this.input.charCodeAt(this.pos);switch(e){case 32:case 160:++this.pos;break;case 13:10===this.input.charCodeAt(this.pos+1)&&++this.pos;case 10:case 8232:case 8233:++this.pos,this.options.locations&&(++this.curLine,this.lineStart=this.pos);break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break e}break;default:if(!(e>8&&e<14||e>=5760&&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<c;++l,++this.pos){var u=this.input.charCodeAt(this.pos),p=void 0;if(r&&95===u)s&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),95===o&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),0===l&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),o=u;else{if((p=u>=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<this.input.length;this.pos++)switch(this.input[this.pos]){case"\\":++this.pos;break;case"$":if("{"!==this.input[this.pos+1])break;case"`":return this.finishToken(nt.invalidTemplate,this.input.slice(this.start,this.pos));case"\r":"\n"===this.input[this.pos+1]&&++this.pos;case"\n":case"\u2028":case"\u2029":++this.curLine,this.lineStart=this.pos+1}this.raise(this.start,"Unterminated template")},An.readEscapedChar=function(e){var t=this.input.charCodeAt(++this.pos);switch(++this.pos,t){case 110:return"\n";case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return yt(this.readCodePoint());case 116:return"\t";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";case 56:case 57:if(this.strict&&this.invalidStringToken(this.pos-1,"Invalid escape sequence"),e){var n=this.pos-1;this.invalidStringToken(n,"Invalid escape sequence in template string")}default:if(t>=48&&t<=55){var r=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],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.pos<this.input.length;){var s=this.fullCharCodeAtPos();if(Xe(s,r))this.pos+=s<=65535?1:2;else{if(92!==s)break;this.containsEsc=!0,e+=this.input.slice(n,this.pos);var a=this.pos;117!==this.input.charCodeAt(++this.pos)&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var i=this.readCodePoint();(t?Ke:Xe)(i,r)||this.invalidStringToken(a,"Invalid Unicode escape"),e+=yt(i),n=this.pos}t=!1}return e+this.input.slice(n,this.pos)},An.readWord=function(){var e=this.readWord1(),t=nt.name;return this.keywords.test(e)&&(t=et[e]),this.finishToken(t,e)};var Rn="8.12.1";St.acorn={Parser:St,version:Rn,defaultOptions:_t,Position:gt,SourceLocation:bt,getLineInfo:xt,Node:Jt,TokenType:Je,tokTypes:nt,keywordTypes:et,TokContext:Bt,tokContexts:Ft,isIdentifierChar:Xe,isIdentifierStart:Ke,Token:En,isNewLine:at,lineBreak:rt,lineBreakG:st,nonASCIIwhitespace:ot};var In=Object.freeze({__proto__:null,Node:Jt,Parser:St,Position:gt,SourceLocation:bt,TokContext:Bt,Token:En,TokenType:Je,defaultOptions:_t,getLineInfo:xt,isIdentifierChar:Xe,isIdentifierStart:Ke,isNewLine:at,keywordTypes:et,lineBreak:rt,lineBreakG:st,nonASCIIwhitespace:ot,parse:function(e,t){return St.parse(e,t)},parseExpressionAt:function(e,t,n){return St.parseExpressionAt(e,t,n)},tokContexts:Ft,tokTypes:nt,tokenizer:function(e,t){return St.tokenizer(e,t)},version:Rn});function qn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,"symbol"==typeof(s=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key))?s:String(s),r)}var s}function Ln(){return Ln=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ln.apply(this,arguments)}function Mn(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,On(e,t)}function On(e,t){return On=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},On(e,t)}function Nn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Dn(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Nn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Nn(e,t):void 0}}(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\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("<tag",!1,!1),tc_cTag:new Bt("</tag",!1,!1),tc_expr:new Bt("<tag>...</tag>",!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 `<T,>() => ...`.",ReservedTypeAssertion:"This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead.",SetAccesorCannotHaveOptionalParameter:"A 'set' accessor cannot have an optional parameter.",SetAccesorCannotHaveRestParameter:"A 'set' accessor cannot have rest parameter.",SetAccesorCannotHaveReturnType:"A 'set' accessor cannot have a return type annotation.",SingleTypeParameterWithoutTrailingComma:function(e){var t=e.typeParameterName;return"Single type parameter "+t+" should have a trailing comma. Example usage: <"+t+",>."},StaticBlockCannotHaveModifier:"Static class blocks cannot have any modifier.",TypeAnnotationAfterAssign:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeImportCannotSpecifyDefaultAndNamed:"A type-only import can specify a default import or named bindings, but not both.",TypeModifierIsUsedInTypeExports:"The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement.",TypeModifierIsUsedInTypeImports:"The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement.",UnexpectedParameterModifier:"A parameter property is only allowed in a constructor implementation.",UnexpectedReadonly:"'readonly' type modifier is only permitted on array and tuple literal types.",GenericsEndWithComma:"Trailing comma is not allowed at the end of generics.",UnexpectedTypeAnnotation:"Did not expect a type annotation here.",UnexpectedTypeCastInParameter:"Unexpected type cast in parameter position.",UnsupportedImportTypeArgument:"Argument in a type import must be a string literal.",UnsupportedParameterPropertyKind:"A parameter property may not be declared using a binding pattern.",UnsupportedSignatureParameterKind:function(e){return"Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got "+e.type+"."},LetInLexicalBinding:"'let' is not allowed to be used as a name in 'let' or 'const' declarations."},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<n;r++){var s=e.charCodeAt(r);if(u(s))return r<n-1&&13===s&&10===e.charCodeAt(r+1)?r+2:r+1}return-1}t=function(e,t,n){var r=n.tokTypes,s=t.tokTypes;return function(e){function t(){return e.apply(this,arguments)||this}Mn(t,e);var n=t.prototype;return n.takeDecorators=function(e){var t=this.decoratorStack[this.decoratorStack.length-1];t.length&&(e.decorators=t,this.resetStartLocationFromNode(e,t[0]),this.decoratorStack[this.decoratorStack.length-1]=[])},n.parseDecorators=function(e){for(var t=this.decoratorStack[this.decoratorStack.length-1];this.match(s.at);){var n=this.parseDecorator();t.push(n)}this.match(r._export)?e||this.unexpected():this.canHaveLeadingDecorator()||this.raise(this.start,"Leading decorators must be attached to a class declaration.")},n.parseDecorator=function(){var e=this.startNode();this.next(),this.decoratorStack.push([]);var t,n=this.start,s=this.startLoc;if(this.match(r.parenL)){var a=this.start,i=this.startLoc;if(this.next(),t=this.parseExpression(),this.expect(r.parenR),this.options.preserveParens){var o=this.startNodeAt(a,i);o.expression=t,t=this.finishNode(o,"ParenthesizedExpression")}}else for(t=this.parseIdent(!1);this.eat(r.dot);){var l=this.startNodeAt(n,s);l.object=t,l.property=this.parseIdent(!0),l.computed=!1,t=this.finishNode(l,"MemberExpression")}return e.expression=this.parseMaybeDecoratorArguments(t),this.decoratorStack.pop(),this.finishNode(e,"Decorator")},n.parseMaybeDecoratorArguments=function(e){if(this.eat(r.parenL)){var t=this.startNodeAtNode(e);return t.callee=e,t.arguments=this.parseExprList(r.parenR,!1),this.finishNode(t,"CallExpression")}return e},t}(e)}(t,s,n),t=function(e,t,n,r){var s=e.tokTypes,a=t.tokTypes,i=e.isNewLine,o=e.isIdentifierChar,l=Object.assign({allowNamespaces:!0,allowNamespacedObjects:!0},r||{});return function(e){function t(){return e.apply(this,arguments)||this}Mn(t,e);var n=t.prototype;return n.jsx_readToken=function(){for(var e="",t=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated JSX contents");var n=this.input.charCodeAt(this.pos);switch(n){case 60:case 123:return this.pos===this.start?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?"&gt;":"&rbrace;")+'` 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<this.input.length&&n++<10;){if(";"===(r=this.input[this.pos++])){"#"===t[0]?"x"===t[1]?(t=t.substr(2),Qn.test(t)&&(e=String.fromCharCode(parseInt(t,16)))):(t=t.substr(1),Yn.test(t)&&(e=String.fromCharCode(parseInt(t,10)))):e=Jn[t];break}t+=r}return e||(this.pos=s,"&")},n.jsx_readWord=function(){var e,t=this.pos;do{e=this.input.charCodeAt(++this.pos)}while(o(e)||45===e);return this.finishToken(a.jsxName,this.input.slice(t,this.pos))},n.jsx_parseIdentifier=function(){var e=this.startNode();return this.type===a.jsxName?e.name=this.value:this.type.keyword?e.name=this.type.keyword:this.unexpected(),this.next(),this.finishNode(e,"JSXIdentifier")},n.jsx_parseNamespacedName=function(){var e=this.start,t=this.startLoc,n=this.jsx_parseIdentifier();if(!l.allowNamespaces||!this.eat(s.colon))return n;var r=this.startNodeAt(e,t);return r.namespace=n,r.name=this.jsx_parseIdentifier(),this.finishNode(r,"JSXNamespacedName")},n.jsx_parseElementName=function(){if(this.type===a.jsxTagEnd)return"";var e=this.start,t=this.startLoc,n=this.jsx_parseNamespacedName();for(this.type!==s.dot||"JSXNamespacedName"!==n.type||l.allowNamespacedObjects||this.unexpected();this.eat(s.dot);){var r=this.startNodeAt(e,t);r.object=n,r.property=this.jsx_parseIdentifier(),n=this.finishNode(r,"JSXMemberExpression")}return n},n.jsx_parseAttributeValue=function(){switch(this.type){case s.braceL:var e=this.jsx_parseExpressionContainer();return"JSXEmptyExpression"===e.expression.type&&this.raise(e.start,"JSX attributes must only be assigned a non-empty expression"),e;case a.jsxTagStart:case s.string:return this.parseExprAtom();default:this.raise(this.start,"JSX value should be either an expression or a quoted JSX text")}},n.jsx_parseEmptyExpression=function(){var e=this.startNodeAt(this.lastTokEnd,this.lastTokEndLoc);return this.finishNodeAt(e,"JSXEmptyExpression",this.start,this.startLoc)},n.jsx_parseExpressionContainer=function(){var e=this.startNode();return this.next(),e.expression=this.type===s.braceR?this.jsx_parseEmptyExpression():this.parseExpression(),this.expect(s.braceR),this.finishNode(e,"JSXExpressionContainer")},n.jsx_parseAttribute=function(){var e=this.startNode();return this.eat(s.braceL)?(this.expect(s.ellipsis),e.argument=this.parseMaybeAssign(),this.expect(s.braceR),this.finishNode(e,"JSXSpreadAttribute")):(e.name=this.jsx_parseNamespacedName(),e.value=this.eat(s.eq)?this.jsx_parseAttributeValue():null,this.finishNode(e,"JSXAttribute"))},n.jsx_parseOpeningElementAt=function(e,t){var n=this.startNodeAt(e,t);n.attributes=[];var r=this.jsx_parseElementName();for(r&&(n.name=r);this.type!==s.slash&&this.type!==a.jsxTagEnd;)n.attributes.push(this.jsx_parseAttribute());return n.selfClosing=this.eat(s.slash),this.expect(a.jsxTagEnd),this.finishNode(n,r?"JSXOpeningElement":"JSXOpeningFragment")},n.jsx_parseClosingElementAt=function(e,t){var n=this.startNodeAt(e,t),r=this.jsx_parseElementName();return r&&(n.name=r),this.expect(a.jsxTagEnd),this.finishNode(n,r?"JSXClosingElement":"JSXClosingFragment")},n.jsx_parseElementAt=function(e,t){var n=this.startNodeAt(e,t),r=[],i=this.jsx_parseOpeningElementAt(e,t),o=null;if(!i.selfClosing){e:for(;;)switch(this.type){case a.jsxTagStart:if(e=this.start,t=this.startLoc,this.next(),this.eat(s.slash)){o=this.jsx_parseClosingElementAt(e,t);break e}r.push(this.jsx_parseElementAt(e,t));break;case a.jsxText:r.push(this.parseExprAtom());break;case s.braceL:r.push(this.jsx_parseExpressionContainer());break;default:this.unexpected()}Zn(o.name)!==Zn(i.name)&&this.raise(o.start,"Expected corresponding JSX closing tag for <"+Zn(i.name)+">")}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<r.length;n++){var s=r[n];if(e[s]!==t[s])return!1}return!0},S.createLookaheadState=function(){this.value=null,this.context=[this.curContext()]},S.getCurLookaheadState=function(){return{endLoc:this.endLoc,lastTokEnd:this.lastTokEnd,lastTokStart:this.lastTokStart,lastTokStartLoc:this.lastTokStartLoc,pos:this.pos,value:this.value,type:this.type,start:this.start,end:this.end,context:this.context,startLoc:this.startLoc,lastTokEndLoc:this.lastTokEndLoc,curLine:this.curLine,lineStart:this.lineStart,curPosition:this.curPosition,containsEsc:this.containsEsc}},S.cloneCurLookaheadState=function(){return{pos:this.pos,value:this.value,type:this.type,start:this.start,end:this.end,context:this.context&&this.context.slice(),startLoc:this.startLoc,lastTokEndLoc:this.lastTokEndLoc,endLoc:this.endLoc,lastTokEnd:this.lastTokEnd,lastTokStart:this.lastTokStart,lastTokStartLoc:this.lastTokStartLoc,curLine:this.curLine,lineStart:this.lineStart,curPosition:this.curPosition,containsEsc:this.containsEsc}},S.setLookaheadState=function(e){this.pos=e.pos,this.value=e.value,this.endLoc=e.endLoc,this.lastTokEnd=e.lastTokEnd,this.lastTokStart=e.lastTokStart,this.lastTokStartLoc=e.lastTokStartLoc,this.type=e.type,this.start=e.start,this.end=e.end,this.context=e.context,this.startLoc=e.startLoc,this.lastTokEndLoc=e.lastTokEndLoc,this.curLine=e.curLine,this.lineStart=e.lineStart,this.curPosition=e.curPosition,this.containsEsc=e.containsEsc},S.tsLookAhead=function(e){var t=this.getCurLookaheadState(),n=e();return this.setLookaheadState(t),n},S.lookahead=function(e){var t=this.getCurLookaheadState();if(this.createLookaheadState(),this.isLookahead=!0,void 0!==e)for(var n=0;n<e;n++)this.nextToken();else this.nextToken();this.isLookahead=!1;var r=this.getCurLookaheadState();return this.setLookaheadState(t),r},S.readWord=function(){var e=this.readWord1(),t=i.name;return this.keywords.test(e)?t=o[e]:new RegExp(f).test(e)&&(t=h[e]),this.finishToken(t,e)},S.skipBlockComment=function(){var e;this.isLookahead||(e=this.options.onComment&&this.curPosition());var 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,s=t;(r=C(this.input,s,this.pos))>-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.input.length&&!u(r);)r=this.input.charCodeAt(++this.pos);this.isLookahead||this.options.onComment&&this.options.onComment(!1,this.input.slice(n+e,this.pos),n,this.pos,t,this.curPosition())},S.finishToken=function(e,t){this.preValue=this.value,this.preToken=this.type,this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var n=this.type;this.type=e,this.value=t,this.isLookahead||this.updateContext(n)},S.resetStartLocation=function(e,t,n){e.start=t,e.loc.start=n,this.options.ranges&&(e.range[0]=t)},S.isLineTerminator=function(){return this.eat(i.semi)||e.prototype.canInsertSemicolon.call(this)},S.hasFollowingLineBreak=function(){return zn.lastIndex=this.end,zn.test(this.input)},S.addExtra=function(e,t,n,r){if(void 0===r&&(r=!0),e){var s=e.extra=e.extra||{};r?s[t]=n:Object.defineProperty(s,t,{enumerable:r,value:n})}},S.isLiteralPropertyName=function(){return y(this.type)},S.hasPrecedingLineBreak=function(){return c.test(this.input.slice(this.lastTokEndLoc.index,this.start))},S.createIdentifier=function(e,t){return e.name=t,this.finishNode(e,"Identifier")},S.resetStartLocationFromNode=function(e,t){this.resetStartLocation(e,t.start,t.loc.start)},S.isThisParam=function(e){return"Identifier"===e.type&&"this"===e.name},S.isLookaheadContextual=function(e){var t=this.nextTokenStart();return this.isUnparsedContextual(t,e)},S.ts_type_isContextual=function(e,t){return e===t&&!this.containsEsc},S.ts_isContextual=function(e){return this.type===e&&!this.containsEsc},S.ts_isContextualWithState=function(e,t){return e.type===t&&!e.containsEsc},S.isContextualWithState=function(e,t){return t.type===i.name&&t.value===e&&!t.containsEsc},S.tsIsStartOfMappedType=function(){return this.next(),this.eat(i.plusMin)?this.ts_isContextual(h.readonly):(this.ts_isContextual(h.readonly)&&this.next(),!!this.match(i.bracketL)&&(this.next(),!!this.tsIsIdentifier()&&(this.next(),this.match(i._in))))},S.tsInDisallowConditionalTypesContext=function(e){var t=this.inDisallowConditionalTypesContext;this.inDisallowConditionalTypesContext=!0;try{return e()}finally{this.inDisallowConditionalTypesContext=t}},S.tsTryParseType=function(){return this.tsEatThenParseType(i.colon)},S.match=function(e){return this.type===e},S.matchJsx=function(e){return this.type===s.tokTypes[e]},S.ts_eatWithState=function(e,t,n){if(e===n.type){for(var r=0;r<t;r++)this.next();return!0}return!1},S.ts_eatContextualWithState=function(e,t,n){if(f.test(e)){if(this.ts_isContextualWithState(n,h[e])){for(var r=0;r<t;r++)this.next();return!0}return!1}if(!this.isContextualWithState(e,n))return!1;for(var s=0;s<t;s++)this.next();return!0},S.canHaveLeadingDecorator=function(){return this.match(i._class)},S.eatContextual=function(t){return f.test(t)?!!this.ts_isContextual(h[t])&&(this.next(),!0):e.prototype.eatContextual.call(this,t)},S.tsIsExternalModuleReference=function(){return this.isContextual("require")&&40===this.lookaheadCharCode()},S.tsParseExternalModuleReference=function(){var e=this.startNode();return this.expectContextual("require"),this.expect(i.parenL),this.match(i.string)||this.unexpected(),e.expression=this.parseExprAtom(),this.expect(i.parenR),this.finishNode(e,"TSExternalModuleReference")},S.tsParseEntityName=function(e){void 0===e&&(e=!0);for(var t=this.parseIdent(e);this.eat(i.dot);){var n=this.startNodeAtNode(t);n.left=t,n.right=this.parseIdent(e),t=this.finishNode(n,"TSQualifiedName")}return t},S.tsParseEnumMember=function(){var e=this.startNode();return e.id=this.match(i.string)?this.parseLiteral(this.value):this.parseIdent(!0),this.eat(i.eq)&&(e.initializer=this.parseMaybeAssign()),this.finishNode(e,"TSEnumMember")},S.tsParseEnumDeclaration=function(e,t){return void 0===t&&(t={}),t.const&&(e.const=!0),t.declare&&(e.declare=!0),this.expectContextual("enum"),e.id=this.parseIdent(),this.checkLValSimple(e.id),this.expect(i.braceL),e.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(i.braceR),this.finishNode(e,"TSEnumDeclaration")},S.tsParseModuleBlock=function(){var t=this.startNode();for(e.prototype.enterScope.call(this,512),this.expect(i.braceL),t.body=[];this.type!==i.braceR;){var n=this.parseStatement(null,!0);t.body.push(n)}return this.next(),e.prototype.exitScope.call(this),this.finishNode(t,"TSModuleBlock")},S.tsParseAmbientExternalModuleDeclaration=function(t){return this.ts_isContextual(h.global)?(t.global=!0,t.id=this.parseIdent()):this.match(i.string)?t.id=this.parseLiteral(this.value):this.unexpected(),this.match(i.braceL)?(e.prototype.enterScope.call(this,Hn),t.body=this.tsParseModuleBlock(),e.prototype.exitScope.call(this)):e.prototype.semicolon.call(this),this.finishNode(t,"TSModuleDeclaration")},S.tsTryParseDeclare=function(e){var t=this;if(!this.isLineTerminator()){var n,r=this.type;return this.isContextual("let")&&(r=i._var,n="let"),this.tsInAmbientContext((function(){if(r===i._function)return e.declare=!0,t.parseFunctionStatement(e,!1,!0);if(r===i._class)return e.declare=!0,t.parseClass(e,!0);if(r===h.enum)return t.tsParseEnumDeclaration(e,{declare:!0});if(r===h.global)return t.tsParseAmbientExternalModuleDeclaration(e);if(r===i._const||r===i._var)return t.match(i._const)&&t.isLookaheadContextual("enum")?(t.expect(i._const),t.tsParseEnumDeclaration(e,{const:!0,declare:!0})):(e.declare=!0,t.parseVarStatement(e,n||t.value,!0));if(r===h.interface){var s=t.tsParseInterfaceDeclaration(e,{declare:!0});if(s)return s}return b(r)?t.tsParseDeclaration(e,t.value,!0):void 0}))}},S.tsIsListTerminator=function(e){switch(e){case"EnumMembers":case"TypeMembers":return this.match(i.braceR);case"HeritageClauseElement":return this.match(i.braceL);case"TupleElementTypes":return this.match(i.bracketR);case"TypeParametersOrArguments":return this.tsMatchRightRelational()}},S.tsParseDelimitedListWorker=function(e,t,n,r){for(var s=[],a=-1;!this.tsIsListTerminator(e);){a=-1;var o=t();if(null==o)return;if(s.push(o),!this.eat(i.comma)){if(this.tsIsListTerminator(e))break;return void(n&&this.expect(i.comma))}a=this.lastTokStart}return r&&(r.value=a),s},S.tsParseDelimitedList=function(e,t,n){return function(e){if(null==e)throw new Error("Unexpected "+e+" value.");return e}(this.tsParseDelimitedListWorker(e,t,!0,n))},S.tsParseBracketedList=function(e,t,n,r,s){r||this.expect(n?i.bracketL:i.relational);var a=this.tsParseDelimitedList(e,t,s);return this.expect(n?i.bracketR:i.relational),a},S.tsParseTypeParameterName=function(){return this.parseIdent().name},S.tsEatThenParseType=function(e){return this.match(e)?this.tsNextThenParseType():void 0},S.tsExpectThenParseType=function(e){var t=this;return this.tsDoThenParseType((function(){return t.expect(e)}))},S.tsNextThenParseType=function(){var e=this;return this.tsDoThenParseType((function(){return e.next()}))},S.tsDoThenParseType=function(e){var t=this;return this.tsInType((function(){return e(),t.tsParseType()}))},S.tsSkipParameterStart=function(){if(b(this.type)||this.match(i._this))return this.next(),!0;if(this.match(i.braceL))try{return this.parseObj(!0),!0}catch(e){return!1}if(this.match(i.bracketL)){this.next();try{return this.parseBindingList(i.bracketR,!0,!0),!0}catch(e){return!1}}return!1},S.tsIsUnambiguouslyStartOfFunctionType=function(){if(this.next(),this.match(i.parenR)||this.match(i.ellipsis))return!0;if(this.tsSkipParameterStart()){if(this.match(i.colon)||this.match(i.comma)||this.match(i.question)||this.match(i.eq))return!0;if(this.match(i.parenR)&&(this.next(),this.match(i.arrow)))return!0}return!1},S.tsIsStartOfFunctionType=function(){return!!this.tsMatchLeftRelational()||this.match(i.parenL)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))},S.tsInAllowConditionalTypesContext=function(e){var t=this.inDisallowConditionalTypesContext;this.inDisallowConditionalTypesContext=!1;try{return e()}finally{this.inDisallowConditionalTypesContext=t}},S.tsParseBindingListForSignature=function(){var t=this;return e.prototype.parseBindingList.call(this,i.parenR,!0,!0).map((function(e){return"Identifier"!==e.type&&"RestElement"!==e.type&&"ObjectPattern"!==e.type&&"ArrayPattern"!==e.type&&t.raise(e.start,Xn.UnsupportedSignatureParameterKind(e.type)),e}))},S.tsParseTypePredicateAsserts=function(){if(this.type!==h.asserts)return!1;var e=this.containsEsc;return this.next(),!(!b(this.type)&&!this.match(i._this)||(e&&this.raise(this.lastTokStart,"Escape sequence in keyword asserts"),0))},S.tsParseThisTypeNode=function(){var e=this.startNode();return this.next(),this.finishNode(e,"TSThisType")},S.tsParseTypeAnnotation=function(e,t){var n=this;return void 0===e&&(e=!0),void 0===t&&(t=this.startNode()),this.tsInType((function(){e&&n.expect(i.colon),t.typeAnnotation=n.tsParseType()})),this.finishNode(t,"TSTypeAnnotation")},S.tsParseThisTypePredicate=function(e){this.next();var t=this.startNodeAtNode(e);return t.parameterName=e,t.typeAnnotation=this.tsParseTypeAnnotation(!1),t.asserts=!1,this.finishNode(t,"TSTypePredicate")},S.tsParseThisTypeOrThisTypePredicate=function(){var e=this.tsParseThisTypeNode();return this.isContextual("is")&&!this.hasPrecedingLineBreak()?this.tsParseThisTypePredicate(e):e},S.tsParseTypePredicatePrefix=function(){var e=this.parseIdent();if(this.isContextual("is")&&!this.hasPrecedingLineBreak())return this.next(),e},S.tsParseTypeOrTypePredicateAnnotation=function(e){var t=this;return this.tsInType((function(){var n=t.startNode();t.expect(e);var r=t.startNode(),s=!!t.tsTryParse(t.tsParseTypePredicateAsserts.bind(t));if(s&&t.match(i._this)){var a=t.tsParseThisTypeOrThisTypePredicate();return"TSThisType"===a.type?(r.parameterName=a,r.asserts=!0,r.typeAnnotation=null,a=t.finishNode(r,"TSTypePredicate")):(t.resetStartLocationFromNode(a,r),a.asserts=!0),n.typeAnnotation=a,t.finishNode(n,"TSTypeAnnotation")}var o=t.tsIsIdentifier()&&t.tsTryParse(t.tsParseTypePredicatePrefix.bind(t));if(!o)return s?(r.parameterName=t.parseIdent(),r.asserts=s,r.typeAnnotation=null,n.typeAnnotation=t.finishNode(r,"TSTypePredicate"),t.finishNode(n,"TSTypeAnnotation")):t.tsParseTypeAnnotation(!1,n);var l=t.tsParseTypeAnnotation(!1);return r.parameterName=o,r.typeAnnotation=l,r.asserts=s,n.typeAnnotation=t.finishNode(r,"TSTypePredicate"),t.finishNode(n,"TSTypeAnnotation")}))},S.tsFillSignature=function(e,t){var n=e===i.arrow;t.typeParameters=this.tsTryParseTypeParameters(),this.expect(i.parenL),t.parameters=this.tsParseBindingListForSignature(),(n||this.match(e))&&(t.typeAnnotation=this.tsParseTypeOrTypePredicateAnnotation(e))},S.tsTryNextParseConstantContext=function(){if(this.lookahead().type!==i._const)return null;this.next();var e=this.tsParseTypeReference();return e.typeParameters&&this.raise(e.typeName.start,Xn.CannotFindName({name:"const"})),e},S.tsParseFunctionOrConstructorType=function(e,t){var n=this,r=this.startNode();return"TSConstructorType"===e&&(r.abstract=!!t,t&&this.next(),this.next()),this.tsInAllowConditionalTypesContext((function(){return n.tsFillSignature(i.arrow,r)})),this.finishNode(r,e)},S.tsParseUnionOrIntersectionType=function(e,t,n){var r=this.startNode(),s=this.eat(n),a=[];do{a.push(t())}while(this.eat(n));return 1!==a.length||s?(r.types=a,this.finishNode(r,e)):a[0]},S.tsCheckTypeAnnotationForReadOnly=function(e){switch(e.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(e.start,Xn.UnexpectedReadonly)}},S.tsParseTypeOperator=function(){var e=this.startNode(),t=this.value;return this.next(),e.operator=t,e.typeAnnotation=this.tsParseTypeOperatorOrHigher(),"readonly"===t&&this.tsCheckTypeAnnotationForReadOnly(e),this.finishNode(e,"TSTypeOperator")},S.tsParseConstraintForInferType=function(){var e=this;if(this.eat(i._extends)){var t=this.tsInDisallowConditionalTypesContext((function(){return e.tsParseType()}));if(this.inDisallowConditionalTypesContext||!this.match(i.question))return t}},S.tsParseInferType=function(){var e=this,t=this.startNode();this.expectContextual("infer");var n=this.startNode();return n.name=this.tsParseTypeParameterName(),n.constraint=this.tsTryParse((function(){return e.tsParseConstraintForInferType()})),t.typeParameter=this.finishNode(n,"TSTypeParameter"),this.finishNode(t,"TSInferType")},S.tsParseLiteralTypeNode=function(){var e=this,t=this.startNode();return t.literal=function(){switch(e.type){case i.num:case i.string:case i._true:case i._false:return e.parseExprAtom();default:e.unexpected()}}(),this.finishNode(t,"TSLiteralType")},S.tsParseImportType=function(){var e=this.startNode();return this.expect(i._import),this.expect(i.parenL),this.match(i.string)||this.raise(this.start,Xn.UnsupportedImportTypeArgument),e.argument=this.parseExprAtom(),this.expect(i.parenR),this.eat(i.dot)&&(e.qualifier=this.tsParseEntityName()),this.tsMatchLeftRelational()&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSImportType")},S.tsParseTypeQuery=function(){var e=this.startNode();return this.expect(i._typeof),e.exprName=this.match(i._import)?this.tsParseImportType():this.tsParseEntityName(),!this.hasPrecedingLineBreak()&&this.tsMatchLeftRelational()&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSTypeQuery")},S.tsParseMappedTypeParameter=function(){var e=this.startNode();return e.name=this.tsParseTypeParameterName(),e.constraint=this.tsExpectThenParseType(i._in),this.finishNode(e,"TSTypeParameter")},S.tsParseMappedType=function(){var e=this.startNode();return this.expect(i.braceL),this.match(i.plusMin)?(e.readonly=this.value,this.next(),this.expectContextual("readonly")):this.eatContextual("readonly")&&(e.readonly=!0),this.expect(i.bracketL),e.typeParameter=this.tsParseMappedTypeParameter(),e.nameType=this.eatContextual("as")?this.tsParseType():null,this.expect(i.bracketR),this.match(i.plusMin)?(e.optional=this.value,this.next(),this.expect(i.question)):this.eat(i.question)&&(e.optional=!0),e.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(i.braceR),this.finishNode(e,"TSMappedType")},S.tsParseTypeLiteral=function(){var e=this.startNode();return e.members=this.tsParseObjectTypeMembers(),this.finishNode(e,"TSTypeLiteral")},S.tsParseTupleElementType=function(){var e=this.startLoc,t=this.start,n=this.eat(i.ellipsis),r=this.tsParseType(),s=this.eat(i.question);if(this.eat(i.colon)){var a=this.startNodeAtNode(r);a.optional=s,"TSTypeReference"!==r.type||r.typeParameters||"Identifier"!==r.typeName.type?(this.raise(r.start,Xn.InvalidTupleMemberLabel),a.label=r):a.label=r.typeName,a.elementType=this.tsParseType(),r=this.finishNode(a,"TSNamedTupleMember")}else if(s){var o=this.startNodeAtNode(r);o.typeAnnotation=r,r=this.finishNode(o,"TSOptionalType")}if(n){var l=this.startNodeAt(t,e);l.typeAnnotation=r,r=this.finishNode(l,"TSRestType")}return r},S.tsParseTupleType=function(){var e=this,t=this.startNode();t.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);var n=!1,r=null;return t.elementTypes.forEach((function(t){var s=t.type;!n||"TSRestType"===s||"TSOptionalType"===s||"TSNamedTupleMember"===s&&t.optional||e.raise(t.start,Xn.OptionalTypeBeforeRequired),n||(n="TSNamedTupleMember"===s&&t.optional||"TSOptionalType"===s);var a=s;"TSRestType"===s&&(a=(t=t.typeAnnotation).type);var i="TSNamedTupleMember"===a;null!=r||(r=i),r!==i&&e.raise(t.start,Xn.MixedLabeledAndUnlabeledElements)})),this.finishNode(t,"TSTupleType")},S.tsParseTemplateLiteralType=function(){var e=this.startNode();return e.literal=this.parseTemplate({isTagged:!1}),this.finishNode(e,"TSLiteralType")},S.tsParseTypeReference=function(){var e=this.startNode();return e.typeName=this.tsParseEntityName(),!this.hasPrecedingLineBreak()&&this.tsMatchLeftRelational()&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSTypeReference")},S.tsMatchLeftRelational=function(){return this.match(i.relational)&&"<"===this.value},S.tsMatchRightRelational=function(){return this.match(i.relational)&&">"===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);r<s.length;r++){var a=s[r];t[a]=n[a]}},S.tsParseModifiers=function(e){for(var t=this,n=e.modified,r=e.allowedModifiers,s=e.disallowedModifiers,a=e.stopOnStartOfClassStaticBlock,i=e.errorTemplate,o=void 0===i?Xn.InvalidModifierOnTypeMember:i,l={},c=function(e,r,s,a){r===s&&n[a]&&t.raise(e.column,Xn.InvalidModifiersOrder({orderedModifiers:[s,a]}))},u=function(e,r,s,a){(n[s]&&r===a||n[a]&&r===s)&&t.raise(e.column,Xn.IncompatibleModifiers({modifiers:[s,a]}))};;){var p=this.startLoc,d=this.tsParseModifier(r.concat(null!=s?s:[]),a);if(!d)break;or(d)?n.accessibility?this.raise(this.start,Xn.DuplicateAccessibilityModifier()):(c(p,d,d,"override"),c(p,d,d,"static"),c(p,d,d,"readonly"),c(p,d,d,"accessor"),l.accessibility=d,n.accessibility=d):rr(d)?n[d]?this.raise(this.start,Xn.DuplicateModifier({modifier:d})):(c(p,d,"in","out"),l[d]=d,n[d]=!0):nr(d)?n[d]?this.raise(this.start,Xn.DuplicateModifier({modifier:d})):(u(p,d,"accessor","readonly"),u(p,d,"accessor","static"),u(p,d,"accessor","override"),l[d]=d,n[d]=!0):Object.hasOwnProperty.call(n,d)?this.raise(this.start,Xn.DuplicateModifier({modifier:d})):(c(p,d,"static","readonly"),c(p,d,"static","override"),c(p,d,"override","readonly"),c(p,d,"abstract","override"),u(p,d,"declare","override"),u(p,d,"static","abstract"),l[d]=d,n[d]=!0),null!=s&&s.includes(d)&&this.raise(this.start,o)}return l},S.tsParseInOutModifiers=function(e){this.tsParseModifiers({modified:e,allowedModifiers:["in","out"],disallowedModifiers:["public","private","protected","readonly","declare","abstract","override"],errorTemplate:Xn.InvalidModifierOnTypeParameter})},S.tsParseTypeArguments=function(){var e=this,t=this.startNode();return t.params=this.tsInType((function(){return e.tsInNoContext((function(){return e.expect(i.relational),e.tsParseDelimitedList("TypeParametersOrArguments",e.tsParseType.bind(e))}))})),0===t.params.length&&this.raise(this.start,Xn.EmptyTypeArguments),this.exprAllowed=!1,this.expect(i.relational),this.finishNode(t,"TSTypeParameterInstantiation")},S.tsParseHeritageClause=function(e){var t=this,n=this.start,r=this.tsParseDelimitedList("HeritageClauseElement",(function(){var e=t.startNode();return e.expression=t.tsParseEntityName(),t.tsMatchLeftRelational()&&(e.typeParameters=t.tsParseTypeArguments()),t.finishNode(e,"TSExpressionWithTypeArguments")}));return r.length||this.raise(n,Xn.EmptyHeritageClauseType({token:e})),r},S.tsParseTypeMemberSemicolon=function(){this.eat(i.comma)||this.isLineTerminator()||this.expect(i.semi)},S.tsTryParseAndCatch=function(e){var t=this.tryParse((function(t){return e()||t()}));if(!t.aborted&&t.node)return t.error&&this.setLookaheadState(t.failState),t.node},S.tsParseSignatureMember=function(e,t){return this.tsFillSignature(i.colon,t),this.tsParseTypeMemberSemicolon(),this.finishNode(t,e)},S.tsParsePropertyOrMethodSignature=function(e,t){this.eat(i.question)&&(e.optional=!0);var n=e;if(this.match(i.parenL)||this.tsMatchLeftRelational()){t&&this.raise(e.start,Xn.ReadonlyForMethodSignature);var r=n;r.kind&&this.tsMatchLeftRelational()&&this.raise(this.start,Xn.AccesorCannotHaveTypeParameters),this.tsFillSignature(i.colon,r),this.tsParseTypeMemberSemicolon();var s="parameters",a="typeAnnotation";if("get"===r.kind)r[s].length>0&&(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<s.typeAnnotation.start&&this.raise(s.typeAnnotation.start,Xn.TypeAnnotationAfterAssign),s},S.typeCastToParameter=function(e){return e.expression.typeAnnotation=e.typeAnnotation,this.resetEndLocation(e.expression,e.typeAnnotation.end),e.expression},S.toAssignableList=function(t,n){for(var r=0;r<t.length;r++){var s=t[r];"TSTypeCastExpression"===(null==s?void 0:s.type)&&(t[r]=this.typeCastToParameter(s))}return e.prototype.toAssignableList.call(this,t,n)},S.reportReservedArrowTypeParam=function(e){},S.parseExprAtom=function(t,n,r){if(this.type===h.jsxText)return this.jsx_parseText();if(this.type===h.jsxTagStart)return this.jsx_parseElement();if(this.type===h.at)return this.parseDecorators(),this.parseExprAtom();if(b(this.type)){var s=this.potentialArrowAt===this.start,a=this.start,o=this.startLoc,l=this.containsEsc,c=this.parseIdent(!1);if(this.options.ecmaVersion>=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<n-1;r++)if(this.importsStack[r].indexOf(e)>-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<t.start;)a=n.shift(),(t.leadingComments||=[]).push(a);if(r(),n[0]){const r=s.at(-1);if(void 0===r||t.end!==r.end){const s=e.slice(t.end,n[0].start);if(("BlockStatement"===r?.type||"Program"===r?.type)&&r.body.indexOf(t)===r.body.length-1||"ArrayExpression"===r?.type&&r.elements.indexOf(t)===r.elements.length-1||"ObjectExpression"===r?.type&&r.properties.indexOf(t)===r.properties.length-1)for(t.end;n.length;){const e=n[0];if(r&&e.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<t.start)){let n=t.typeAnnotation.start;for(;/\s/.test(e[n-1]);)n-=1;t.end=n}n.next()}})}const hr=/\r/g;function mr(e){let t=5381,n=(e=e.replace(hr,"")).length;for(;n--;)t=(t<<5)-t^e.charCodeAt(n);return(t>>>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 `<script module>`")}function Hr(e){jr(e,"derived_invalid_export","Cannot export derived state from a module. To expose the current derived value, export a function returning its value")}function Ur(e){jr(e,"each_item_invalid_assignment","Cannot reassign or bind to each block argument in runes mode. Use the array and index variables instead (e.g. `array[i] = value` instead of `entry = value`)")}function zr(e,t){jr(e,"global_reference_invalid",`\`${t}\` is an illegal variable name. To reference a global variable called \`${t}\`, use \`globalThis.${t}\``)}function Wr(e){jr(e,"props_illegal_name","Declaring or accessing a prop starting with `$$` is illegal (they are reserved for Svelte internals)")}function Gr(e){jr(e,"props_invalid_pattern","`$props()` assignment must not contain nested properties or computed keys")}function Kr(e,t){jr(e,"rune_invalid_arguments",`\`${t}\` cannot be called with arguments`)}function Xr(e,t,n){jr(e,"rune_invalid_arguments_length",`\`${t}\` must be called with ${n}`)}function Jr(e){jr(e,"rune_invalid_computed_property","Cannot access a computed property of a rune")}function Qr(e,t){jr(e,"rune_invalid_name",`\`${t}\` is not a valid rune`)}function Yr(e,t){jr(e,"rune_removed",`The \`${t}\` rune has been removed`)}function Zr(e,t,n){jr(e,"rune_renamed",`\`${t}\` is now \`${n}\``)}function es(e,t){jr(e,"runes_mode_invalid_import",`${t} cannot be used in runes mode`)}function ts(e){jr(e,"snippet_parameter_assignment","Cannot reassign or bind to snippet parameter")}function ns(e){jr(e,"state_invalid_export","Cannot export state from a module if it is reassigned. Either export a function returning the state value or only mutate the state value's properties")}function rs(e,t){jr(e,"state_invalid_placement",`\`${t}(...)\` can only be used as a variable declaration initializer or a class field`)}function ss(e){jr(e,"store_invalid_subscription","Cannot reference store value inside `<script module>`")}function as(e,t){jr(e,"typescript_invalid_feature",`TypeScript language features like ${t} are not natively supported, and their use is generally discouraged. Outside of \`<script>\` tags, these features are not supported. For use within \`<script>\` tags, you will need to use a preprocessor to convert it to JavaScript before it gets passed to the Svelte compiler. If you are using \`vitePreprocess\`, make sure to specifically enable preprocessing script tags (\`vitePreprocess({ script: true })\`)`)}function is(e){jr(e,"css_expected_identifier","Expected a valid CSS identifier")}function os(e){jr(e,"css_global_block_invalid_modifier_start","A `:global` selector can only be modified if it is a descendant of other selectors")}function ls(e){jr(e,"css_global_invalid_placement","`:global(...)` can be at the start or end of a selector sequence, but not in the middle")}function cs(e){jr(e,"css_global_invalid_selector","`:global(...)` must contain exactly one selector")}function us(e){jr(e,"css_global_invalid_selector_list","`:global(...)` must not contain type or universal selectors when used in a compound selector")}function ps(e){jr(e,"css_selector_invalid","Invalid selector")}function ds(e){jr(e,"css_type_selector_invalid_placement","`:global(...)` must not be followed by a type selector")}function hs(e){jr(e,"animation_duplicate","An element can only have one 'animate' directive")}function ms(e){jr(e,"animation_invalid_placement","An element that uses the `animate:` directive must be the only child of a keyed `{#each ...}` block")}function fs(e){jr(e,"animation_missing_key","An element that uses the `animate:` directive must be the only child of a keyed `{#each ...}` block. Did you forget to add a key to your each block?")}function ys(e){jr(e,"attribute_duplicate","Attributes need to be unique")}function vs(e){jr(e,"attribute_invalid_event_handler","Event attribute must be a JavaScript expression, not a string")}function gs(e,t){jr(e,"attribute_invalid_name",`'${t}' is not a valid attribute name`)}function bs(e){jr(e,"attribute_invalid_sequence_expression","Sequence expressions are not allowed as attribute/directive values in runes mode, unless wrapped in parentheses")}function xs(e,t,n){jr(e,"bind_invalid_name",n?`\`bind:${t}\` is not a valid binding. ${n}`:`\`bind:${t}\` is not a valid binding`)}function _s(e,t,n){jr(e,"bind_invalid_target",`\`bind:${t}\` can only be used with ${n}`)}function Cs(e,t){jr(e,"block_duplicate_clause",`${t} cannot appear more than once within a block`)}function ws(e,t,n){jr(e,"block_invalid_placement",`{#${t} ...} block cannot be ${n}`)}function ks(e,t){jr(e,"block_unexpected_character",`Expected a \`${t}\` character immediately following the opening bracket`)}function Ps(e){jr(e,"block_unexpected_close","Unexpected block closing tag")}function Ss(e){jr(e,"component_invalid_directive","This type of directive is not valid on components")}function Es(e,t){jr(e,"element_invalid_closing_tag",`\`</${t}>\` attempted to close an element that was not open`)}function As(e,t,n){jr(e,"element_invalid_closing_tag_autoclosed",`\`</${t}>\` attempted to close element that was already automatically closed by \`<${n}>\` (cannot nest \`<${n}>\` inside \`<${t}>\`)`)}function Ts(e,t){jr(e,"element_unclosed",`\`<${t}>\` was left open`)}function $s(e){jr(e,"event_handler_invalid_component_modifier","Event modifiers other than 'once' can only be used on DOM elements")}function Rs(e,t){jr(e,"event_handler_invalid_modifier",`Valid event modifiers are ${t}`)}function Is(e,t,n){jr(e,"event_handler_invalid_modifier_combination",`The '${t}' and '${n}' modifiers cannot be used together`)}function qs(e){jr(e,"expected_attribute_value","Expected attribute value")}function Ls(e){jr(e,"expected_identifier","Expected an identifier")}function Ms(e,t){jr(e,"expected_token",`Expected token ${t}`)}function Os(e,t){jr(e,"illegal_element_attribute",`\`<${t}>\` does not support non-event attributes or spread attributes`)}function Ns(e,t,n){jr(e,"node_invalid_placement",`${t} is invalid inside \`<${n}>\``)}function Ds(e){jr(e,"render_tag_invalid_spread_argument","cannot use spread arguments in `{@render ...}` tags")}function js(e){jr(e,"script_duplicate","A component can have a single top-level `<script>` element and/or a single top-level `<script module>` element")}function Bs(e,t){jr(e,"script_invalid_attribute_value",`If the \`${t}\` attribute is supplied, it must be a boolean attribute`)}function Fs(e){jr(e,"script_invalid_context",'If the context attribute is supplied, its value must be "module"')}function Vs(e){jr(e,"slot_attribute_invalid","slot attribute must be a static value")}function Hs(e){jr(e,"slot_attribute_invalid_placement","Element with a slot='...' attribute must be a child of a component or a descendant of a custom element")}function Us(e){jr(e,"slot_default_duplicate",'Found default slot content alongside an explicit slot="default"')}function zs(e){jr(e,"slot_element_invalid_attribute","`<slot>` can only receive attributes and (optionally) let directives")}function Ws(e){jr(e,"slot_element_invalid_name","slot attribute must be a static value")}function Gs(e){jr(e,"slot_element_invalid_name_default","`default` is a reserved word — it cannot be used as a slot name")}function Ks(e){jr(e,"snippet_invalid_rest_parameter","Snippets do not support rest parameters; use an array instead")}function Xs(e){jr(e,"svelte_body_illegal_attribute","`<svelte:body>` does not support non-event attributes or spread attributes")}function Js(e){jr(e,"svelte_element_missing_this","`<svelte:element>` must have a 'this' attribute with a value")}function Qs(e){jr(e,"svelte_fragment_invalid_attribute","`<svelte:fragment>` can only have a slot attribute and (optionally) a let: directive")}function Ys(e){jr(e,"svelte_head_illegal_attribute","`<svelte:head>` cannot have attributes nor directives")}function Zs(e){jr(e,"svelte_options_deprecated_tag",'"tag" option is deprecated — use "customElement" instead')}function ea(e){jr(e,"svelte_options_invalid_attribute","`<svelte:options>` can only receive static attributes")}function ta(e,t){jr(e,"svelte_options_invalid_attribute_value",`Value must be ${t}, if specified`)}function na(e){jr(e,"svelte_options_invalid_customelement",'"customElement" must be a string literal defining a valid custom element name or an object of the form { tag?: string; shadow?: "open" | "none"; props?: { [key: string]: { attribute?: string; reflect?: boolean; type: .. } } }')}function ra(e){jr(e,"svelte_options_invalid_customelement_props",'"props" must be a statically analyzable object literal of the form "{ [key: string]: { attribute?: string; reflect?: boolean; type?: "String" | "Boolean" | "Number" | "Array" | "Object" }"')}function sa(e){jr(e,"svelte_options_invalid_customelement_shadow",'"shadow" must be either "open" or "none"')}function aa(e){jr(e,"svelte_options_invalid_tagname","Tag name must be lowercase and hyphenated")}function ia(e,t){jr(e,"svelte_options_unknown_attribute",`\`<svelte:options>\` unknown attribute '${t}'`)}function oa(e,t,n){jr(e,"tag_invalid_placement",`{@${t} ...} tag cannot be ${n}`)}function la(e){jr(e,"textarea_invalid_content","A `<textarea>` can have either a value attribute or (equivalently) child content, but not both")}function ca(e){jr(e,"title_illegal_attribute","`<title>` cannot have attributes nor directives")}function ua(e){jr(e,"title_invalid_content","`<title>` can only contain text and {tags}")}function pa(e,t,n){jr(e,"transition_conflict",`Cannot use \`${t}:\` alongside existing \`${n}:\` directive`)}function da(e,t){jr(e,"transition_duplicate",`Cannot use multiple \`${t}:\` directives on a single element`)}function ha(e){jr(e,"unexpected_eof","Unexpected end of input")}function ma(e){try{const t=ur(e.template,e.ts,e.index);let n=0;for(let r=e.index;r<t.start;r+=1)"("===e.template[r]&&(n+=1);let s=t.end;for(void 0!==t.trailingComments&&t.trailingComments.length>0&&(s=t.trailingComments.at(-1).end);n>0;){const t=e.template[s];")"===t?n-=1:r.test(t)||Ms(s,")"),s+=1}return e.index=s,t}catch(t){e.acorn_error(t)}}function fa(e){return e.replace(/(`|\${|\\)/g,"\\$1")}function ya(e=[]){return{type:"ArrayExpression",elements:e}}function va(e){return{type:"ArrayPattern",elements:e}}function ga(e,t){return{type:"AssignmentPattern",left:e,right:t}}function ba(e,t){return{type:"ArrowFunctionExpression",params:e,body:t,expression:"BlockStatement"!==t.type,generator:!1,async:!1,metadata:null}}function xa(e,t,n){return{type:"AssignmentExpression",operator:e,left:t,right:n}}function _a(e){return{type:"AwaitExpression",argument:e}}function Ca(e,t,n){return{type:"BinaryExpression",operator:e,left:t,right:n}}function wa(e){return{type:"BlockStatement",body:e}}function ka(e,...t){"string"==typeof e&&(e=La(e));let n=(t=t.slice()).length,r=!0;for(;n--;)t[n]?r=!1:r?t.pop():t[n]=La("undefined");return{type:"CallExpression",callee:e,arguments:t,optional:!1}}function Pa(e,...t){const n=ka(e,...t);return n.optional=!0,{type:"ChainExpression",expression:n}}function Sa(e,t,n){return{type:"ConditionalExpression",test:e,consequent:t,alternate:n}}function Ea(e,t,n){return{type:"LogicalExpression",operator:e,left:t,right:n}}function Aa(e,t){return{type:"VariableDeclaration",kind:e,declarations:t}}function Ta(e,t){return"string"==typeof e&&(e=La(e)),{type:"VariableDeclarator",id:e,init:t}}const $a={type:"EmptyStatement"};function Ra(e){return{type:"ExportDefaultDeclaration",declaration:e}}function Ia(e,t,n){return{type:"FunctionDeclaration",id:e,params:t,body:n,generator:!1,async:!1,metadata:null}}function qa(e,t){return Va("get",yi(e),ui(null,[],wa(t)))}function La(e){return{type:"Identifier",name:e}}function Ma(e){return{type:"PrivateIdentifier",name:e}}function Oa(e,t){return Va("init",yi(e),t)}function Na(e){return{type:"Literal",value:e}}function Da(e,t,n=!1,r=!1){return"string"==typeof t&&(t=La(t)),{type:"MemberExpression",object:e,property:t,computed:n,optional:r}}function ja(e){const t=e.split(".");let n=La(t[0]);for(let e=1;e<t.length;e+=1)n=Da(n,La(t[e]));return n}function Ba(e){return{type:"ObjectExpression",properties:e}}function Fa(e){return{type:"ObjectPattern",properties:e}}function Va(e,t,n,r=!1){return{type:"Property",kind:e,key:t,value:n,method:!1,shorthand:!1,computed:r}}function Ha(e,t,n=!1,r=!1){return{type:"PropertyDefinition",key:e,value:t,computed:n,static:r}}function Ua(e,t=!1){return{type:"TemplateElement",value:{raw:fa(e),cooked:e},tail:t}}function za(e){return{type:"RestElement",argument:e}}function Wa(e){return{type:"SequenceExpression",expressions:e}}function Ga(e,t){return Va("set",yi(e),ui(null,[La("$$value")],wa(t)))}function Ka(e){return{type:"SpreadElement",argument:e}}function Xa(e){return{type:"ExpressionStatement",expression:e}}function Ja(e,t){return{type:"TemplateLiteral",quasis:e,expressions:t}}function Qa(e,t=!1){const n=ba([],e);return t&&(n.async=!0),Ya(n)}function Ya(e){return"ArrowFunctionExpression"===e.type&&!1===e.async&&"CallExpression"===e.body.type&&"Identifier"===e.body.callee.type&&e.params.length===e.body.arguments.length&&e.params.every(((t,n)=>{const r=e.body.arguments[n];return"Identifier"===t.type&&"Identifier"===r.type&&t.name===r.name}))?e.body.callee:e}function Za(e,...t){return"string"==typeof e&&(e=La(e)),{callee:e,arguments:t,type:"NewExpression"}}function ei(e,t){return{type:"DoWhileStatement",test:e,body:t}}const ti=Na(!0),ni=Na(!1),ri=Na(null),si={type:"DebuggerStatement"},ai={type:"ThisExpression"};function ii(e,t){return Aa("let",[Ta(e,t)])}function oi(e,t){return Aa("const",[Ta(e,t)])}function li(e,t){return Aa("var",[Ta(e,t)])}function ci(e,t,n,r,s=!1,a=!1){return{type:"MethodDefinition",key:t,kind:e,value:ui(null,n,wa(r)),computed:s,static:a}}function ui(e,t,n){return{type:"FunctionExpression",id:e,params:t,body:n,generator:!1,async:!1,metadata:null}}function pi(e,t,n){return{type:"IfStatement",test:e,consequent:t,alternate:n}}function di(e,t){return{type:"ImportDeclaration",source:Na(t),specifiers:[(n=e,{type:"ImportNamespaceSpecifier",local:La(n)})]};var n}function hi(e,t){return{type:"ImportDeclaration",source:Na(t),specifiers:e.map((e=>({type:"ImportSpecifier",imported:La(e[0]),local:La(e[1])})))}}function mi(e=null){return{type:"ReturnStatement",argument:e}}function fi(e){return{type:"ThrowStatement",argument:Za("Error",Na(e))}}function yi(e){return m.test(e)?La(e):Na(e)}function vi(e){for(;"MemberExpression"===e.type;)e=e.object;return"Identifier"!==e.type?null:e}function gi(e){return Array.isArray(e.value)&&1===e.value.length&&"Text"===e.value[0].type}function bi(e){return!0!==e.value&&!Array.isArray(e.value)||Array.isArray(e.value)&&1===e.value.length&&"ExpressionTag"===e.value[0].type}function xi(e){return Array.isArray(e.value)?e.value[0].expression:e.value.expression}function _i(e){return Array.isArray(e)?e:"boolean"==typeof e?[]:[e]}function Ci(e){return bi(e)&&e.name.startsWith("on")}function wi(e,t=[]){switch(e.type){case"Identifier":case"MemberExpression":t.push(e);break;case"ObjectPattern":for(const n of e.properties)"RestElement"===n.type?wi(n.argument,t):wi(n.value,t);break;case"ArrayPattern":for(const n of e.elements)n&&wi(n,t);break;case"RestElement":wi(e.argument,t);break;case"AssignmentPattern":wi(e.left,t)}return t}function ki(e){return wi(e,[]).filter((e=>"Identifier"===e.type))}function Pi(e){let n=[],r=[];return t(e,{},{Identifier(e,{path:t}){const s=t.at(-1);("MemberExpression"!==s?.type||s.property!==e||s.computed)&&n.push(e),"MemberExpression"===s?.type&&s.computed&&s.property===e?r.push(`[${e.name}]`):r.push(e.name)},Literal(e,{path:t}){const n="string"==typeof e.value?`"${e.value}"`:String(e.value),s=t.at(-1);"MemberExpression"===s?.type&&s.computed&&s.property===e?r.push(`[${n}]`):r.push(n)},ThisExpression(e,{next:t}){r.push("this"),t()}}),[r.join("."),n]}function Si(e,t=[]){switch(e.type){case"Identifier":t.push(e);break;case"ObjectExpression":for(const n of e.properties)"Property"===n.type?Si(n.value,t):Si(n.argument,t);break;case"ArrayExpression":for(const n of e.elements)n&&Si(n,t)}return t}function Ei(e){return Ai([],e,(e=>e),(e=>e),!1)}function Ai(e=[],t,n,r,s){switch(t.type){case"Identifier":case"MemberExpression":e.push({node:t,is_rest:!1,has_default_value:s,expression:n,update_expression:r});break;case"ObjectPattern":for(const r of t.properties)if("RestElement"===r.type){const a=e=>{const r=[];for(const e of t.properties)"Property"===e.type&&"PrivateIdentifier"!==e.key.type&&("Identifier"!==e.key.type||e.computed?"Literal"===e.key.type?r.push(Na(String(e.key.value))):r.push(ka("String",e.key)):r.push(Na(e.key.name)));return ka("$.exclude_from_object",n(e),ya(r))};"Identifier"===r.argument.type?e.push({node:r.argument,is_rest:!0,has_default_value:s,expression:a,update_expression:a}):Ai(e,r.argument,a,a,s)}else{const t=e=>Da(n(e),r.key,r.computed||"Identifier"!==r.key.type);Ai(e,r.value,t,t,s)}break;case"ArrayPattern":for(let r=0;r<t.elements.length;r+=1){const a=t.elements[r];if(a)if("RestElement"===a.type){const t=e=>ka(Da(n(e),"slice"),Na(r));"Identifier"===a.argument.type?e.push({node:a.argument,is_rest:!0,has_default_value:s,expression:t,update_expression:t}):Ai(e,a.argument,t,t,s)}else{const t=e=>Da(n(e),Na(r),!0);Ai(e,a,t,t,s)}}break;case"AssignmentPattern":{const s=e=>Ii(n(e),t.right);"Identifier"===t.left.type?e.push({node:t.left,is_rest:!1,has_default_value:!0,expression:s,update_expression:r}):Ai(e,t.left,s,r,!0);break}}return e}function Ti(e){return"Literal"===e.type||"Identifier"===e.type||"ArrowFunctionExpression"===e.type||"FunctionExpression"===e.type||("ConditionalExpression"===e.type?Ti(e.test)&&Ti(e.consequent)&&Ti(e.alternate):("BinaryExpression"===e.type||"LogicalExpression"===e.type)&&("PrivateIdentifier"!==e.left.type&&Ti(e.left)&&Ti(e.right)))}function $i(e){return"ChainExpression"===e.type?e.expression:e}function Ri(e){switch(e.type){case"AwaitExpression":return!0;case"ArrayPattern":return e.elements.some((e=>e&&Ri(e)));case"ArrayExpression":return e.elements.some((e=>!!e&&("SpreadElement"===e.type?Ri(e.argument):Ri(e))));case"AssignmentPattern":case"AssignmentExpression":case"BinaryExpression":case"LogicalExpression":return"PrivateIdentifier"!==e.left.type&&Ri(e.left)||Ri(e.right);case"CallExpression":case"NewExpression":return"Super"!==e.callee.type&&Ri(e.callee)||e.arguments.some((e=>"SpreadElement"===e.type?Ri(e.argument):Ri(e)));case"ChainExpression":return Ri(e.expression);case"ConditionalExpression":return Ri(e.test)||Ri(e.alternate)||Ri(e.consequent);case"ImportExpression":return Ri(e.source);case"MemberExpression":return"Super"!==e.object.type&&Ri(e.object)||"PrivateIdentifier"!==e.property.type&&Ri(e.property);case"ObjectPattern":case"ObjectExpression":return e.properties.some((e=>"SpreadElement"===e.type?Ri(e.argument):"Property"===e.type?"PrivateIdentifier"!==e.key.type&&Ri(e.key)||Ri(e.value):void 0));case"RestElement":case"UnaryExpression":case"UpdateExpression":return Ri(e.argument);case"SequenceExpression":case"TemplateLiteral":return e.expressions.some((e=>Ri(e)));case"TaggedTemplateExpression":return Ri(e.tag)||Ri(e.quasi);case"YieldExpression":return!!e.argument&&Ri(e.argument);default:return!1}}function Ii(e,t){return Ti(t)?ka("$.fallback",e,t):"AwaitExpression"===t.type&&Ti(t.argument)?_a(ka("$.fallback",e,t.argument)):Ri(t)?_a(ka("$.fallback",e,Qa(t,!0),ti)):ka("$.fallback",e,Qa(t),ti)}function qi(e,t,n){return"="===e?n:Ca(e.slice(0,-1),t,n)}const Li=/<\/script\s*>/,Mi=/^<\/script\s*>/,Oi=["server","client","worker","test","default"],Ni=["context","generics","lang","module"];const Di=/^[~^$*|]?=/,ji=/[\s\]]/,Bi=/^[a-zA-Z]+/,Fi=/^(\+|~|>|\|\|)/,Vi=/^\d+(\.\d+)?%/,Hi=/^(even|odd|\+?(\d+|\d*n(\s*[+-]\s*\d+)?)|-\d*n(\s*\+\s*\d+))((?=\s*[,)])|\s+of\s+)/,Ui=/[\s:]/,zi=/-?\d/,Wi=/[a-zA-Z0-9_-]/,Gi=/\*\//,Ki=/-->/;function Xi(e,t,n){const r=e.index,s=function(e,t){const n=[];for(;e.index<e.template.length;){if(io(e),e.match(t))return n;e.match("@")?n.push(Ji(e)):n.push(Qi(e))}Ms(e.template.length,t)}(e,"</style"),a=e.index;return e.read(/^<\/style\s*>/),{type:"StyleSheet",start:t,end:e.index,attributes:n,children:s,content:{start:r,end:a,styles:e.template.slice(r,a),comment:null}}}function Ji(e){const t=e.index;e.eat("@",!0);const n=ao(e),r=ro(e);let s=null;return e.match("{")?s=to(e):e.eat(";",!0),{type:"Atrule",start:t,end:e.index,name:n,prelude:r,block:s}}function Qi(e){const t=e.index;return{type:"Rule",prelude:Yi(e),block:to(e),start:t,end:e.index,metadata:{parent_rule:null,has_local_selectors:!1,is_global_block:!1}}}function Yi(e,t=!1){const n=[];io(e);const r=e.index;for(;e.index<e.template.length;){n.push(Zi(e,t));const s=e.index;if(io(e),t?e.match(")"):e.match("{"))return{type:"SelectorList",start:r,end:s,children:n};e.eat(",",!0),io(e)}ha(e.template.length)}function Zi(e,t=!1){const n=e.index,r=[];function s(e,t){return{type:"RelativeSelector",combinator:e,selectors:[],start:t,end:-1,metadata:{is_global:!1,is_global_like:!1,scoped:!1}}}let a=s(null,e.index);for(;e.index<e.template.length;){let i=e.index;if(e.eat("&"))a.selectors.push({type:"NestingSelector",name:"&",start:i,end:e.index});else if(e.eat("*")){let t="*";e.eat("|")&&(t=ao(e)),a.selectors.push({type:"TypeSelector",name:t,start:i,end:e.index})}else if(e.eat("#"))a.selectors.push({type:"IdSelector",name:ao(e),start:i,end:e.index});else if(e.eat("."))a.selectors.push({type:"ClassSelector",name:ao(e),start:i,end:e.index});else if(e.eat("::"))a.selectors.push({type:"PseudoElementSelector",name:ao(e),start:i,end:e.index}),e.eat("(")&&(Yi(e,!0),e.eat(")",!0));else if(e.eat(":")){const t=ao(e);let n=null;e.eat("(")&&(n=Yi(e,!0),e.eat(")",!0)),a.selectors.push({type:"PseudoClassSelector",name:t,args:n,start:i,end:e.index})}else if(e.eat("[")){e.allow_whitespace();const t=ao(e);e.allow_whitespace();let n=null;const r=e.read(Di);r&&(e.allow_whitespace(),n=so(e)),e.allow_whitespace();const s=e.read(Bi);e.allow_whitespace(),e.eat("]",!0),a.selectors.push({type:"AttributeSelector",start:i,end:e.index,name:t,matcher:r,value:n,flags:s})}else if(t&&e.match_regex(Hi))a.selectors.push({type:"Nth",value:e.read(Hi),start:i,end:e.index});else if(e.match_regex(Vi))a.selectors.push({type:"Percentage",value:e.read(Vi),start:i,end:e.index});else if(!e.match_regex(Fi)){let t=ao(e);e.eat("|")&&(t=ao(e)),a.selectors.push({type:"TypeSelector",name:t,start:i,end:e.index})}const o=e.index;if(io(e),e.match(",")||(t?e.match(")"):e.match("{")))return e.index=o,a.end=o,r.push(a),{type:"ComplexSelector",start:n,end:o,children:r,metadata:{rule:null,used:!1}};e.index=o;const l=eo(e);l&&(a.selectors.length>0&&(a.end=o,r.push(a)),a=s(l,l.start),e.allow_whitespace(),(e.match(",")||(t?e.match(")"):e.match("{")))&&ps(e.index))}ha(e.template.length)}function eo(e){const t=e.index;e.allow_whitespace();const n=e.index,r=e.read(Fi);if(r){const t=e.index;return e.allow_whitespace(),{type:"Combinator",name:r,start:n,end:t}}return e.index!==t?{type:"Combinator",name:" ",start:t,end:e.index}:null}function to(e){const t=e.index;e.eat("{",!0);const n=[];for(;e.index<e.template.length&&(io(e),!e.match("}"));)n.push(no(e));return e.eat("}",!0),{type:"Block",start:t,end:e.index,children:n}}function no(e){if(e.match("@"))return Ji(e);const t=e.index;ro(e);const n=e.template[e.index];return e.index=t,"{"===n?Qi(e):function(e){const t=e.index,n=e.read_until(Ui);e.allow_whitespace(),e.eat(":");let r=e.index;e.allow_whitespace();const s=ro(e);s||n.startsWith("--")||jr({start:t,end:r},"css_empty_declaration","Declaration cannot be empty");const a=e.index;e.match("}")||e.eat(";",!0);return{type:"Declaration",start:t,end:a,property:n,value:s}}(e)}function ro(e){let t="",n=!1,r=!1,s=null;for(;e.index<e.template.length;){const a=e.template[e.index];if(n)t+="\\"+a,n=!1;else if("\\"===a)n=!0;else if(a===s)s=null;else if(")"===a)r=!1;else if(null!==s||'"'!==a&&"'"!==a){if("("===a&&"url"===t.slice(-3))r=!0;else if(!(";"!==a&&"{"!==a&&"}"!==a||r||s))return t.trim()}else s=a;t+=a,e.index++}ha(e.template.length)}function so(e){let t="",n=!1;const r=e.eat('"')?'"':e.eat("'")?"'":null;for(;e.index<e.template.length;){const s=e.template[e.index];if(n)t+="\\"+s,n=!1;else if("\\"===s)n=!0;else{if(r?s===r:ji.test(s))return r&&e.eat(r,!0),t.trim();t+=s}e.index++}ha(e.template.length)}function ao(e){const t=e.index;let n="";(e.match("--")||e.match_regex(zi))&&is(t);let r=!1;for(;e.index<e.template.length;){const t=e.template[e.index];if(r)n+="\\"+t,r=!1;else if("\\"===t)r=!0;else{if(!(t.codePointAt(0)>=160||Wi.test(t)))break;n+=t}e.index++}return""===n&&is(t),n}function io(e){for(e.allow_whitespace();e.match("/*")||e.match("\x3c!--");)e.eat("/*")&&(e.read_until(Gi),e.eat("*/",!0)),e.eat("\x3c!--")&&(e.read_until(Ki),e.eat("--\x3e",!0)),e.allow_whitespace()}var oo={"CounterClockwiseContourIntegral;":8755,"ClockwiseContourIntegral;":8754,"DoubleLongLeftRightArrow;":10234,"NotNestedGreaterGreater;":10914,"DiacriticalDoubleAcute;":733,"NotSquareSupersetEqual;":8931,"CloseCurlyDoubleQuote;":8221,"DoubleContourIntegral;":8751,"FilledVerySmallSquare;":9642,"NegativeVeryThinSpace;":8203,"NotPrecedesSlantEqual;":8928,"NotRightTriangleEqual;":8941,"NotSucceedsSlantEqual;":8929,"CapitalDifferentialD;":8517,"DoubleLeftRightArrow;":8660,"DoubleLongRightArrow;":10233,"EmptyVerySmallSquare;":9643,"NestedGreaterGreater;":8811,"NotDoubleVerticalBar;":8742,"NotGreaterSlantEqual;":10878,"NotLeftTriangleEqual;":8940,"NotSquareSubsetEqual;":8930,"OpenCurlyDoubleQuote;":8220,"ReverseUpEquilibrium;":10607,"DoubleLongLeftArrow;":10232,"DownLeftRightVector;":10576,"LeftArrowRightArrow;":8646,"NegativeMediumSpace;":8203,"NotGreaterFullEqual;":8807,"NotRightTriangleBar;":10704,"RightArrowLeftArrow;":8644,"SquareSupersetEqual;":8850,"leftrightsquigarrow;":8621,"DownRightTeeVector;":10591,"DownRightVectorBar;":10583,"LongLeftRightArrow;":10231,"Longleftrightarrow;":10234,"NegativeThickSpace;":8203,"NotLeftTriangleBar;":10703,"PrecedesSlantEqual;":8828,"ReverseEquilibrium;":8651,"RightDoubleBracket;":10215,"RightDownTeeVector;":10589,"RightDownVectorBar;":10581,"RightTriangleEqual;":8885,"SquareIntersection;":8851,"SucceedsSlantEqual;":8829,"blacktriangleright;":9656,"longleftrightarrow;":10231,"DoubleUpDownArrow;":8661,"DoubleVerticalBar;":8741,"DownLeftTeeVector;":10590,"DownLeftVectorBar;":10582,"FilledSmallSquare;":9724,"GreaterSlantEqual;":10878,"LeftDoubleBracket;":10214,"LeftDownTeeVector;":10593,"LeftDownVectorBar;":10585,"LeftTriangleEqual;":8884,"NegativeThinSpace;":8203,"NotGreaterGreater;":8811,"NotLessSlantEqual;":10877,"NotNestedLessLess;":10913,"NotReverseElement;":8716,"NotSquareSuperset;":8848,"NotTildeFullEqual;":8775,"RightAngleBracket;":10217,"RightUpDownVector;":10575,"SquareSubsetEqual;":8849,"VerticalSeparator;":10072,"blacktriangledown;":9662,"blacktriangleleft;":9666,"leftrightharpoons;":8651,"rightleftharpoons;":8652,"twoheadrightarrow;":8608,"DiacriticalAcute;":180,"DiacriticalGrave;":96,"DiacriticalTilde;":732,"DoubleRightArrow;":8658,"DownArrowUpArrow;":8693,"EmptySmallSquare;":9723,"GreaterEqualLess;":8923,"GreaterFullEqual;":8807,"LeftAngleBracket;":10216,"LeftUpDownVector;":10577,"LessEqualGreater;":8922,"NonBreakingSpace;":160,"NotPrecedesEqual;":10927,"NotRightTriangle;":8939,"NotSucceedsEqual;":10928,"NotSucceedsTilde;":8831,"NotSupersetEqual;":8841,"RightTriangleBar;":10704,"RightUpTeeVector;":10588,"RightUpVectorBar;":10580,"UnderParenthesis;":9181,"UpArrowDownArrow;":8645,"circlearrowright;":8635,"downharpoonright;":8642,"ntrianglerighteq;":8941,"rightharpoondown;":8641,"rightrightarrows;":8649,"twoheadleftarrow;":8606,"vartriangleright;":8883,"CloseCurlyQuote;":8217,"ContourIntegral;":8750,"DoubleDownArrow;":8659,"DoubleLeftArrow;":8656,"DownRightVector;":8641,"LeftRightVector;":10574,"LeftTriangleBar;":10703,"LeftUpTeeVector;":10592,"LeftUpVectorBar;":10584,"LowerRightArrow;":8600,"NotGreaterEqual;":8817,"NotGreaterTilde;":8821,"NotHumpDownHump;":8782,"NotLeftTriangle;":8938,"NotSquareSubset;":8847,"OverParenthesis;":9180,"RightDownVector;":8642,"ShortRightArrow;":8594,"UpperRightArrow;":8599,"bigtriangledown;":9661,"circlearrowleft;":8634,"curvearrowright;":8631,"downharpoonleft;":8643,"leftharpoondown;":8637,"leftrightarrows;":8646,"nLeftrightarrow;":8654,"nleftrightarrow;":8622,"ntrianglelefteq;":8940,"rightleftarrows;":8644,"rightsquigarrow;":8605,"rightthreetimes;":8908,"straightepsilon;":1013,"trianglerighteq;":8885,"vartriangleleft;":8882,"DiacriticalDot;":729,"DoubleRightTee;":8872,"DownLeftVector;":8637,"GreaterGreater;":10914,"HorizontalLine;":9472,"InvisibleComma;":8291,"InvisibleTimes;":8290,"LeftDownVector;":8643,"LeftRightArrow;":8596,"Leftrightarrow;":8660,"LessSlantEqual;":10877,"LongRightArrow;":10230,"Longrightarrow;":10233,"LowerLeftArrow;":8601,"NestedLessLess;":8810,"NotGreaterLess;":8825,"NotLessGreater;":8824,"NotSubsetEqual;":8840,"NotVerticalBar;":8740,"OpenCurlyQuote;":8216,"ReverseElement;":8715,"RightTeeVector;":10587,"RightVectorBar;":10579,"ShortDownArrow;":8595,"ShortLeftArrow;":8592,"SquareSuperset;":8848,"TildeFullEqual;":8773,"UpperLeftArrow;":8598,"ZeroWidthSpace;":8203,"curvearrowleft;":8630,"doublebarwedge;":8966,"downdownarrows;":8650,"hookrightarrow;":8618,"leftleftarrows;":8647,"leftrightarrow;":8596,"leftthreetimes;":8907,"longrightarrow;":10230,"looparrowright;":8620,"nshortparallel;":8742,"ntriangleright;":8939,"rightarrowtail;":8611,"rightharpoonup;":8640,"trianglelefteq;":8884,"upharpoonright;":8638,"ApplyFunction;":8289,"DifferentialD;":8518,"DoubleLeftTee;":10980,"DoubleUpArrow;":8657,"LeftTeeVector;":10586,"LeftVectorBar;":10578,"LessFullEqual;":8806,"LongLeftArrow;":10229,"Longleftarrow;":10232,"NotEqualTilde;":8770,"NotTildeEqual;":8772,"NotTildeTilde;":8777,"Poincareplane;":8460,"PrecedesEqual;":10927,"PrecedesTilde;":8830,"RightArrowBar;":8677,"RightTeeArrow;":8614,"RightTriangle;":8883,"RightUpVector;":8638,"SucceedsEqual;":10928,"SucceedsTilde;":8831,"SupersetEqual;":8839,"UpEquilibrium;":10606,"VerticalTilde;":8768,"VeryThinSpace;":8202,"bigtriangleup;":9651,"blacktriangle;":9652,"divideontimes;":8903,"fallingdotseq;":8786,"hookleftarrow;":8617,"leftarrowtail;":8610,"leftharpoonup;":8636,"longleftarrow;":10229,"looparrowleft;":8619,"measuredangle;":8737,"ntriangleleft;":8938,"shortparallel;":8741,"smallsetminus;":8726,"triangleright;":9657,"upharpoonleft;":8639,"varsubsetneqq;":10955,"varsupsetneqq;":10956,"DownArrowBar;":10515,"DownTeeArrow;":8615,"ExponentialE;":8519,"GreaterEqual;":8805,"GreaterTilde;":8819,"HilbertSpace;":8459,"HumpDownHump;":8782,"Intersection;":8898,"LeftArrowBar;":8676,"LeftTeeArrow;":8612,"LeftTriangle;":8882,"LeftUpVector;":8639,"NotCongruent;":8802,"NotHumpEqual;":8783,"NotLessEqual;":8816,"NotLessTilde;":8820,"Proportional;":8733,"RightCeiling;":8969,"RoundImplies;":10608,"ShortUpArrow;":8593,"SquareSubset;":8847,"UnderBracket;":9141,"VerticalLine;":124,"blacklozenge;":10731,"exponentiale;":8519,"risingdotseq;":8787,"triangledown;":9663,"triangleleft;":9667,"varsubsetneq;":8842,"varsupsetneq;":8843,"CircleMinus;":8854,"CircleTimes;":8855,"Equilibrium;":8652,"GreaterLess;":8823,"LeftCeiling;":8968,"LessGreater;":8822,"MediumSpace;":8287,"NotLessLess;":8810,"NotPrecedes;":8832,"NotSucceeds;":8833,"NotSuperset;":8835,"OverBracket;":9140,"RightVector;":8640,"Rrightarrow;":8667,"RuleDelayed;":10740,"SmallCircle;":8728,"SquareUnion;":8852,"SubsetEqual;":8838,"UpDownArrow;":8597,"Updownarrow;":8661,"VerticalBar;":8739,"backepsilon;":1014,"blacksquare;":9642,"circledcirc;":8858,"circleddash;":8861,"curlyeqprec;":8926,"curlyeqsucc;":8927,"diamondsuit;":9830,"eqslantless;":10901,"expectation;":8496,"nRightarrow;":8655,"nrightarrow;":8603,"preccurlyeq;":8828,"precnapprox;":10937,"quaternions;":8461,"straightphi;":981,"succcurlyeq;":8829,"succnapprox;":10938,"thickapprox;":8776,"updownarrow;":8597,"Bernoullis;":8492,"CirclePlus;":8853,"EqualTilde;":8770,"Fouriertrf;":8497,"ImaginaryI;":8520,"Laplacetrf;":8466,"LeftVector;":8636,"Lleftarrow;":8666,"NotElement;":8713,"NotGreater;":8815,"Proportion;":8759,"RightArrow;":8594,"RightFloor;":8971,"Rightarrow;":8658,"ThickSpace;":8287,"TildeEqual;":8771,"TildeTilde;":8776,"UnderBrace;":9183,"UpArrowBar;":10514,"UpTeeArrow;":8613,"circledast;":8859,"complement;":8705,"curlywedge;":8911,"eqslantgtr;":10902,"gtreqqless;":10892,"lessapprox;":10885,"lesseqqgtr;":10891,"lmoustache;":9136,"longmapsto;":10236,"mapstodown;":8615,"mapstoleft;":8612,"nLeftarrow;":8653,"nleftarrow;":8602,"nsubseteqq;":10949,"nsupseteqq;":10950,"precapprox;":10935,"rightarrow;":8594,"rmoustache;":9137,"sqsubseteq;":8849,"sqsupseteq;":8850,"subsetneqq;":10955,"succapprox;":10936,"supsetneqq;":10956,"upuparrows;":8648,"varepsilon;":1013,"varnothing;":8709,"Backslash;":8726,"CenterDot;":183,"CircleDot;":8857,"Congruent;":8801,"Coproduct;":8720,"DoubleDot;":168,"DownArrow;":8595,"DownBreve;":785,"Downarrow;":8659,"HumpEqual;":8783,"LeftArrow;":8592,"LeftFloor;":8970,"Leftarrow;":8656,"LessTilde;":8818,"Mellintrf;":8499,"MinusPlus;":8723,"NotCupCap;":8813,"NotExists;":8708,"NotSubset;":8834,"OverBrace;":9182,"PlusMinus;":177,"Therefore;":8756,"ThinSpace;":8201,"TripleDot;":8411,"UnionPlus;":8846,"backprime;":8245,"backsimeq;":8909,"bigotimes;":10754,"centerdot;":183,"checkmark;":10003,"complexes;":8450,"dotsquare;":8865,"downarrow;":8595,"gtrapprox;":10886,"gtreqless;":8923,"gvertneqq;":8809,"heartsuit;":9829,"leftarrow;":8592,"lesseqgtr;":8922,"lvertneqq;":8808,"ngeqslant;":10878,"nleqslant;":10877,"nparallel;":8742,"nshortmid;":8740,"nsubseteq;":8840,"nsupseteq;":8841,"pitchfork;":8916,"rationals;":8474,"spadesuit;":9824,"subseteqq;":10949,"subsetneq;":8842,"supseteqq;":10950,"supsetneq;":8843,"therefore;":8756,"triangleq;":8796,"varpropto;":8733,"DDotrahd;":10513,"DotEqual;":8784,"Integral;":8747,"LessLess;":10913,"NotEqual;":8800,"NotTilde;":8769,"PartialD;":8706,"Precedes;":8826,"RightTee;":8866,"Succeeds;":8827,"SuchThat;":8715,"Superset;":8835,"Uarrocir;":10569,"UnderBar;":95,"andslope;":10840,"angmsdaa;":10664,"angmsdab;":10665,"angmsdac;":10666,"angmsdad;":10667,"angmsdae;":10668,"angmsdaf;":10669,"angmsdag;":10670,"angmsdah;":10671,"angrtvbd;":10653,"approxeq;":8778,"awconint;":8755,"backcong;":8780,"barwedge;":8965,"bbrktbrk;":9142,"bigoplus;":10753,"bigsqcup;":10758,"biguplus;":10756,"bigwedge;":8896,"boxminus;":8863,"boxtimes;":8864,"bsolhsub;":10184,"capbrcup;":10825,"circledR;":174,"circledS;":9416,"cirfnint;":10768,"clubsuit;":9827,"cupbrcap;":10824,"curlyvee;":8910,"cwconint;":8754,"doteqdot;":8785,"dotminus;":8760,"drbkarow;":10512,"dzigrarr;":10239,"elinters;":9191,"emptyset;":8709,"eqvparsl;":10725,"fpartint;":10765,"geqslant;":10878,"gesdotol;":10884,"gnapprox;":10890,"hksearow;":10533,"hkswarow;":10534,"imagline;":8464,"imagpart;":8465,"infintie;":10717,"integers;":8484,"intercal;":8890,"intlarhk;":10775,"laemptyv;":10676,"ldrushar;":10571,"leqslant;":10877,"lesdotor;":10883,"llcorner;":8990,"lnapprox;":10889,"lrcorner;":8991,"lurdshar;":10570,"mapstoup;":8613,"multimap;":8888,"naturals;":8469,"ncongdot;":10861,"notindot;":8949,"otimesas;":10806,"parallel;":8741,"plusacir;":10787,"pointint;":10773,"precneqq;":10933,"precnsim;":8936,"profalar;":9006,"profline;":8978,"profsurf;":8979,"raemptyv;":10675,"realpart;":8476,"rppolint;":10770,"rtriltri;":10702,"scpolint;":10771,"setminus;":8726,"shortmid;":8739,"smeparsl;":10724,"sqsubset;":8847,"sqsupset;":8848,"subseteq;":8838,"succneqq;":10934,"succnsim;":8937,"supseteq;":8839,"thetasym;":977,"thicksim;":8764,"timesbar;":10801,"triangle;":9653,"triminus;":10810,"trpezium;":9186,"ulcorner;":8988,"urcorner;":8989,"varkappa;":1008,"varsigma;":962,"vartheta;":977,"Because;":8757,"Cayleys;":8493,"Cconint;":8752,"Cedilla;":184,"Diamond;":8900,"DownTee;":8868,"Element;":8712,"Epsilon;":917,"Implies;":8658,"LeftTee;":8867,"NewLine;":10,"NoBreak;":8288,"NotLess;":8814,"Omicron;":927,"OverBar;":8254,"Product;":8719,"UpArrow;":8593,"Uparrow;":8657,"Upsilon;":933,"alefsym;":8501,"angrtvb;":8894,"angzarr;":9084,"asympeq;":8781,"backsim;":8765,"because;":8757,"bemptyv;":10672,"between;":8812,"bigcirc;":9711,"bigodot;":10752,"bigstar;":9733,"bnequiv;":8801,"boxplus;":8862,"ccupssm;":10832,"cemptyv;":10674,"cirscir;":10690,"coloneq;":8788,"congdot;":10861,"cudarrl;":10552,"cudarrr;":10549,"cularrp;":10557,"curarrm;":10556,"dbkarow;":10511,"ddagger;":8225,"ddotseq;":10871,"demptyv;":10673,"diamond;":8900,"digamma;":989,"dotplus;":8724,"dwangle;":10662,"epsilon;":949,"eqcolon;":8789,"equivDD;":10872,"gesdoto;":10882,"gtquest;":10876,"gtrless;":8823,"harrcir;":10568,"intprod;":10812,"isindot;":8949,"larrbfs;":10527,"larrsim;":10611,"lbrksld;":10639,"lbrkslu;":10637,"ldrdhar;":10599,"lesdoto;":10881,"lessdot;":8918,"lessgtr;":8822,"lesssim;":8818,"lotimes;":10804,"lozenge;":9674,"ltquest;":10875,"luruhar;":10598,"maltese;":10016,"minusdu;":10794,"napprox;":8777,"natural;":9838,"nearrow;":8599,"nexists;":8708,"notinva;":8713,"notinvb;":8951,"notinvc;":8950,"notniva;":8716,"notnivb;":8958,"notnivc;":8957,"npolint;":10772,"npreceq;":10927,"nsqsube;":8930,"nsqsupe;":8931,"nsubset;":8834,"nsucceq;":10928,"nsupset;":8835,"nvinfin;":10718,"nvltrie;":8884,"nvrtrie;":8885,"nwarrow;":8598,"olcross;":10683,"omicron;":959,"orderof;":8500,"orslope;":10839,"pertenk;":8241,"planckh;":8462,"pluscir;":10786,"plussim;":10790,"plustwo;":10791,"precsim;":8830,"quatint;":10774,"questeq;":8799,"rarrbfs;":10528,"rarrsim;":10612,"rbrksld;":10638,"rbrkslu;":10640,"rdldhar;":10601,"realine;":8475,"rotimes;":10805,"ruluhar;":10600,"searrow;":8600,"simplus;":10788,"simrarr;":10610,"subedot;":10947,"submult;":10945,"subplus;":10943,"subrarr;":10617,"succsim;":8831,"supdsub;":10968,"supedot;":10948,"suphsol;":10185,"suphsub;":10967,"suplarr;":10619,"supmult;":10946,"supplus;":10944,"swarrow;":8601,"topfork;":10970,"triplus;":10809,"tritime;":10811,"uparrow;":8593,"upsilon;":965,"uwangle;":10663,"vzigzag;":10650,"zigrarr;":8669,"Aacute;":193,"Abreve;":258,"Agrave;":192,"Assign;":8788,"Atilde;":195,"Barwed;":8966,"Bumpeq;":8782,"Cacute;":262,"Ccaron;":268,"Ccedil;":199,"Colone;":10868,"Conint;":8751,"CupCap;":8781,"Dagger;":8225,"Dcaron;":270,"DotDot;":8412,"Dstrok;":272,"Eacute;":201,"Ecaron;":282,"Egrave;":200,"Exists;":8707,"ForAll;":8704,"Gammad;":988,"Gbreve;":286,"Gcedil;":290,"HARDcy;":1066,"Hstrok;":294,"Iacute;":205,"Igrave;":204,"Itilde;":296,"Jsercy;":1032,"Kcedil;":310,"Lacute;":313,"Lambda;":923,"Lcaron;":317,"Lcedil;":315,"Lmidot;":319,"Lstrok;":321,"Nacute;":323,"Ncaron;":327,"Ncedil;":325,"Ntilde;":209,"Oacute;":211,"Odblac;":336,"Ograve;":210,"Oslash;":216,"Otilde;":213,"Otimes;":10807,"Racute;":340,"Rarrtl;":10518,"Rcaron;":344,"Rcedil;":342,"SHCHcy;":1065,"SOFTcy;":1068,"Sacute;":346,"Scaron;":352,"Scedil;":350,"Square;":9633,"Subset;":8912,"Supset;":8913,"Tcaron;":356,"Tcedil;":354,"Tstrok;":358,"Uacute;":218,"Ubreve;":364,"Udblac;":368,"Ugrave;":217,"Utilde;":360,"Vdashl;":10982,"Verbar;":8214,"Vvdash;":8874,"Yacute;":221,"Zacute;":377,"Zcaron;":381,"aacute;":225,"abreve;":259,"agrave;":224,"andand;":10837,"angmsd;":8737,"angsph;":8738,"apacir;":10863,"approx;":8776,"atilde;":227,"barvee;":8893,"barwed;":8965,"becaus;":8757,"bernou;":8492,"bigcap;":8898,"bigcup;":8899,"bigvee;":8897,"bkarow;":10509,"bottom;":8869,"bowtie;":8904,"boxbox;":10697,"bprime;":8245,"brvbar;":166,"bullet;":8226,"bumpeq;":8783,"cacute;":263,"capand;":10820,"capcap;":10827,"capcup;":10823,"capdot;":10816,"ccaron;":269,"ccedil;":231,"circeq;":8791,"cirmid;":10991,"colone;":8788,"commat;":64,"compfn;":8728,"conint;":8750,"coprod;":8720,"copysr;":8471,"cularr;":8630,"cupcap;":10822,"cupcup;":10826,"cupdot;":8845,"curarr;":8631,"curren;":164,"cylcty;":9005,"dagger;":8224,"daleth;":8504,"dcaron;":271,"dfisht;":10623,"divide;":247,"divonx;":8903,"dlcorn;":8990,"dlcrop;":8973,"dollar;":36,"drcorn;":8991,"drcrop;":8972,"dstrok;":273,"eacute;":233,"easter;":10862,"ecaron;":283,"ecolon;":8789,"egrave;":232,"egsdot;":10904,"elsdot;":10903,"emptyv;":8709,"emsp13;":8196,"emsp14;":8197,"eparsl;":10723,"eqcirc;":8790,"equals;":61,"equest;":8799,"female;":9792,"ffilig;":64259,"ffllig;":64260,"forall;":8704,"frac12;":189,"frac13;":8531,"frac14;":188,"frac15;":8533,"frac16;":8537,"frac18;":8539,"frac23;":8532,"frac25;":8534,"frac34;":190,"frac35;":8535,"frac38;":8540,"frac45;":8536,"frac56;":8538,"frac58;":8541,"frac78;":8542,"gacute;":501,"gammad;":989,"gbreve;":287,"gesdot;":10880,"gesles;":10900,"gtlPar;":10645,"gtrarr;":10616,"gtrdot;":8919,"gtrsim;":8819,"hairsp;":8202,"hamilt;":8459,"hardcy;":1098,"hearts;":9829,"hellip;":8230,"hercon;":8889,"homtht;":8763,"horbar;":8213,"hslash;":8463,"hstrok;":295,"hybull;":8259,"hyphen;":8208,"iacute;":237,"igrave;":236,"iiiint;":10764,"iinfin;":10716,"incare;":8453,"inodot;":305,"intcal;":8890,"iquest;":191,"isinsv;":8947,"itilde;":297,"jsercy;":1112,"kappav;":1008,"kcedil;":311,"kgreen;":312,"lAtail;":10523,"lacute;":314,"lagran;":8466,"lambda;":955,"langle;":10216,"larrfs;":10525,"larrhk;":8617,"larrlp;":8619,"larrpl;":10553,"larrtl;":8610,"latail;":10521,"lbrace;":123,"lbrack;":91,"lcaron;":318,"lcedil;":316,"ldquor;":8222,"lesdot;":10879,"lesges;":10899,"lfisht;":10620,"lfloor;":8970,"lharul;":10602,"llhard;":10603,"lmidot;":320,"lmoust;":9136,"loplus;":10797,"lowast;":8727,"lowbar;":95,"lparlt;":10643,"lrhard;":10605,"lsaquo;":8249,"lsquor;":8218,"lstrok;":322,"lthree;":8907,"ltimes;":8905,"ltlarr;":10614,"ltrPar;":10646,"mapsto;":8614,"marker;":9646,"mcomma;":10793,"midast;":42,"midcir;":10992,"middot;":183,"minusb;":8863,"minusd;":8760,"mnplus;":8723,"models;":8871,"mstpos;":8766,"nVDash;":8879,"nVdash;":8878,"nacute;":324,"nbumpe;":8783,"ncaron;":328,"ncedil;":326,"nearhk;":10532,"nequiv;":8802,"nesear;":10536,"nexist;":8708,"nltrie;":8940,"notinE;":8953,"nparsl;":11005,"nprcue;":8928,"nrarrc;":10547,"nrarrw;":8605,"nrtrie;":8941,"nsccue;":8929,"nsimeq;":8772,"ntilde;":241,"numero;":8470,"nvDash;":8877,"nvHarr;":10500,"nvdash;":8876,"nvlArr;":10498,"nvrArr;":10499,"nwarhk;":10531,"nwnear;":10535,"oacute;":243,"odblac;":337,"odsold;":10684,"ograve;":242,"ominus;":8854,"origof;":8886,"oslash;":248,"otilde;":245,"otimes;":8855,"parsim;":10995,"percnt;":37,"period;":46,"permil;":8240,"phmmat;":8499,"planck;":8463,"plankv;":8463,"plusdo;":8724,"plusdu;":10789,"plusmn;":177,"preceq;":10927,"primes;":8473,"prnsim;":8936,"propto;":8733,"prurel;":8880,"puncsp;":8200,"qprime;":8279,"rAtail;":10524,"racute;":341,"rangle;":10217,"rarrap;":10613,"rarrfs;":10526,"rarrhk;":8618,"rarrlp;":8620,"rarrpl;":10565,"rarrtl;":8611,"ratail;":10522,"rbrace;":125,"rbrack;":93,"rcaron;":345,"rcedil;":343,"rdquor;":8221,"rfisht;":10621,"rfloor;":8971,"rharul;":10604,"rmoust;":9137,"roplus;":10798,"rpargt;":10644,"rsaquo;":8250,"rsquor;":8217,"rthree;":8908,"rtimes;":8906,"sacute;":347,"scaron;":353,"scedil;":351,"scnsim;":8937,"searhk;":10533,"seswar;":10537,"sfrown;":8994,"shchcy;":1097,"sigmaf;":962,"sigmav;":962,"simdot;":10858,"smashp;":10803,"softcy;":1100,"solbar;":9023,"spades;":9824,"sqcaps;":8851,"sqcups;":8852,"sqsube;":8849,"sqsupe;":8850,"square;":9633,"squarf;":9642,"ssetmn;":8726,"ssmile;":8995,"sstarf;":8902,"subdot;":10941,"subset;":8834,"subsim;":10951,"subsub;":10965,"subsup;":10963,"succeq;":10928,"supdot;":10942,"supset;":8835,"supsim;":10952,"supsub;":10964,"supsup;":10966,"swarhk;":10534,"swnwar;":10538,"target;":8982,"tcaron;":357,"tcedil;":355,"telrec;":8981,"there4;":8756,"thetav;":977,"thinsp;":8201,"thksim;":8764,"timesb;":8864,"timesd;":10800,"topbot;":9014,"topcir;":10993,"tprime;":8244,"tridot;":9708,"tstrok;":359,"uacute;":250,"ubreve;":365,"udblac;":369,"ufisht;":10622,"ugrave;":249,"ulcorn;":8988,"ulcrop;":8975,"urcorn;":8989,"urcrop;":8974,"utilde;":361,"vangrt;":10652,"varphi;":981,"varrho;":1009,"veebar;":8891,"vellip;":8942,"verbar;":124,"vsubnE;":10955,"vsubne;":8842,"vsupnE;":10956,"vsupne;":8843,"wedbar;":10847,"wedgeq;":8793,"weierp;":8472,"wreath;":8768,"xoplus;":10753,"xotime;":10754,"xsqcup;":10758,"xuplus;":10756,"xwedge;":8896,"yacute;":253,"zacute;":378,"zcaron;":382,"zeetrf;":8488,"AElig;":198,Aacute:193,"Acirc;":194,Agrave:192,"Alpha;":913,"Amacr;":256,"Aogon;":260,"Aring;":197,Atilde:195,"Breve;":728,Ccedil:199,"Ccirc;":264,"Colon;":8759,"Cross;":10799,"Dashv;":10980,"Delta;":916,Eacute:201,"Ecirc;":202,Egrave:200,"Emacr;":274,"Eogon;":280,"Equal;":10869,"Gamma;":915,"Gcirc;":284,"Hacek;":711,"Hcirc;":292,"IJlig;":306,Iacute:205,"Icirc;":206,Igrave:204,"Imacr;":298,"Iogon;":302,"Iukcy;":1030,"Jcirc;":308,"Jukcy;":1028,"Kappa;":922,Ntilde:209,"OElig;":338,Oacute:211,"Ocirc;":212,Ograve:210,"Omacr;":332,"Omega;":937,Oslash:216,Otilde:213,"Prime;":8243,"RBarr;":10512,"Scirc;":348,"Sigma;":931,"THORN;":222,"TRADE;":8482,"TSHcy;":1035,"Theta;":920,"Tilde;":8764,Uacute:218,"Ubrcy;":1038,"Ucirc;":219,Ugrave:217,"Umacr;":362,"Union;":8899,"Uogon;":370,"UpTee;":8869,"Uring;":366,"VDash;":8875,"Vdash;":8873,"Wcirc;":372,"Wedge;":8896,Yacute:221,"Ycirc;":374,aacute:225,"acirc;":226,"acute;":180,"aelig;":230,agrave:224,"aleph;":8501,"alpha;":945,"amacr;":257,"amalg;":10815,"angle;":8736,"angrt;":8735,"angst;":197,"aogon;":261,"aring;":229,"asymp;":8776,atilde:227,"awint;":10769,"bcong;":8780,"bdquo;":8222,"bepsi;":1014,"blank;":9251,"blk12;":9618,"blk14;":9617,"blk34;":9619,"block;":9608,"boxDL;":9559,"boxDR;":9556,"boxDl;":9558,"boxDr;":9555,"boxHD;":9574,"boxHU;":9577,"boxHd;":9572,"boxHu;":9575,"boxUL;":9565,"boxUR;":9562,"boxUl;":9564,"boxUr;":9561,"boxVH;":9580,"boxVL;":9571,"boxVR;":9568,"boxVh;":9579,"boxVl;":9570,"boxVr;":9567,"boxdL;":9557,"boxdR;":9554,"boxdl;":9488,"boxdr;":9484,"boxhD;":9573,"boxhU;":9576,"boxhd;":9516,"boxhu;":9524,"boxuL;":9563,"boxuR;":9560,"boxul;":9496,"boxur;":9492,"boxvH;":9578,"boxvL;":9569,"boxvR;":9566,"boxvh;":9532,"boxvl;":9508,"boxvr;":9500,"breve;":728,brvbar:166,"bsemi;":8271,"bsime;":8909,"bsolb;":10693,"bumpE;":10926,"bumpe;":8783,"caret;":8257,"caron;":711,"ccaps;":10829,ccedil:231,"ccirc;":265,"ccups;":10828,"cedil;":184,"check;":10003,"clubs;":9827,"colon;":58,"comma;":44,"crarr;":8629,"cross;":10007,"csube;":10961,"csupe;":10962,"ctdot;":8943,"cuepr;":8926,"cuesc;":8927,"cupor;":10821,curren:164,"cuvee;":8910,"cuwed;":8911,"cwint;":8753,"dashv;":8867,"dblac;":733,"ddarr;":8650,"delta;":948,"dharl;":8643,"dharr;":8642,"diams;":9830,"disin;":8946,divide:247,"doteq;":8784,"dtdot;":8945,"dtrif;":9662,"duarr;":8693,"duhar;":10607,"eDDot;":10871,eacute:233,"ecirc;":234,"efDot;":8786,egrave:232,"emacr;":275,"empty;":8709,"eogon;":281,"eplus;":10865,"epsiv;":1013,"eqsim;":8770,"equiv;":8801,"erDot;":8787,"erarr;":10609,"esdot;":8784,"exist;":8707,"fflig;":64256,"filig;":64257,"fjlig;":102,"fllig;":64258,"fltns;":9649,"forkv;":10969,frac12:189,frac14:188,frac34:190,"frasl;":8260,"frown;":8994,"gamma;":947,"gcirc;":285,"gescc;":10921,"gimel;":8503,"gneqq;":8809,"gnsim;":8935,"grave;":96,"gsime;":10894,"gsiml;":10896,"gtcir;":10874,"gtdot;":8919,"harrw;":8621,"hcirc;":293,"hoarr;":8703,iacute:237,"icirc;":238,"iexcl;":161,igrave:236,"iiint;":8749,"iiota;":8489,"ijlig;":307,"imacr;":299,"image;":8465,"imath;":305,"imped;":437,"infin;":8734,"iogon;":303,"iprod;":10812,iquest:191,"isinE;":8953,"isins;":8948,"isinv;":8712,"iukcy;":1110,"jcirc;":309,"jmath;":567,"jukcy;":1108,"kappa;":954,"lAarr;":8666,"lBarr;":10510,"langd;":10641,"laquo;":171,"larrb;":8676,"lates;":10925,"lbarr;":10508,"lbbrk;":10098,"lbrke;":10635,"lceil;":8968,"ldquo;":8220,"lescc;":10920,"lhard;":8637,"lharu;":8636,"lhblk;":9604,"llarr;":8647,"lltri;":9722,"lneqq;":8808,"lnsim;":8934,"loang;":10220,"loarr;":8701,"lobrk;":10214,"lopar;":10629,"lrarr;":8646,"lrhar;":8651,"lrtri;":8895,"lsime;":10893,"lsimg;":10895,"lsquo;":8216,"ltcir;":10873,"ltdot;":8918,"ltrie;":8884,"ltrif;":9666,"mDDot;":8762,"mdash;":8212,"micro;":181,middot:183,"minus;":8722,"mumap;":8888,"nabla;":8711,"napid;":8779,"napos;":329,"natur;":9838,"nbump;":8782,"ncong;":8775,"ndash;":8211,"neArr;":8663,"nearr;":8599,"nedot;":8784,"nesim;":8770,"ngeqq;":8807,"ngsim;":8821,"nhArr;":8654,"nharr;":8622,"nhpar;":10994,"nlArr;":8653,"nlarr;":8602,"nleqq;":8806,"nless;":8814,"nlsim;":8820,"nltri;":8938,"notin;":8713,"notni;":8716,"npart;":8706,"nprec;":8832,"nrArr;":8655,"nrarr;":8603,"nrtri;":8939,"nsime;":8772,"nsmid;":8740,"nspar;":8742,"nsubE;":10949,"nsube;":8840,"nsucc;":8833,"nsupE;":10950,"nsupe;":8841,ntilde:241,"numsp;":8199,"nvsim;":8764,"nwArr;":8662,"nwarr;":8598,oacute:243,"ocirc;":244,"odash;":8861,"oelig;":339,"ofcir;":10687,ograve:242,"ohbar;":10677,"olarr;":8634,"olcir;":10686,"oline;":8254,"omacr;":333,"omega;":969,"operp;":10681,"oplus;":8853,"orarr;":8635,"order;":8500,oslash:248,otilde:245,"ovbar;":9021,"parsl;":11005,"phone;":9742,"plusb;":8862,"pluse;":10866,plusmn:177,"pound;":163,"prcue;":8828,"prime;":8242,"prnap;":10937,"prsim;":8830,"quest;":63,"rAarr;":8667,"rBarr;":10511,"radic;":8730,"rangd;":10642,"range;":10661,"raquo;":187,"rarrb;":8677,"rarrc;":10547,"rarrw;":8605,"ratio;":8758,"rbarr;":10509,"rbbrk;":10099,"rbrke;":10636,"rceil;":8969,"rdquo;":8221,"reals;":8477,"rhard;":8641,"rharu;":8640,"rlarr;":8644,"rlhar;":8652,"rnmid;":10990,"roang;":10221,"roarr;":8702,"robrk;":10215,"ropar;":10630,"rrarr;":8649,"rsquo;":8217,"rtrie;":8885,"rtrif;":9656,"sbquo;":8218,"sccue;":8829,"scirc;":349,"scnap;":10938,"scsim;":8831,"sdotb;":8865,"sdote;":10854,"seArr;":8664,"searr;":8600,"setmn;":8726,"sharp;":9839,"sigma;":963,"simeq;":8771,"simgE;":10912,"simlE;":10911,"simne;":8774,"slarr;":8592,"smile;":8995,"smtes;":10924,"sqcap;":8851,"sqcup;":8852,"sqsub;":8847,"sqsup;":8848,"srarr;":8594,"starf;":9733,"strns;":175,"subnE;":10955,"subne;":8842,"supnE;":10956,"supne;":8843,"swArr;":8665,"swarr;":8601,"szlig;":223,"theta;":952,"thkap;":8776,"thorn;":254,"tilde;":732,"times;":215,"trade;":8482,"trisb;":10701,"tshcy;":1115,"twixt;":8812,uacute:250,"ubrcy;":1118,"ucirc;":251,"udarr;":8645,"udhar;":10606,ugrave:249,"uharl;":8639,"uharr;":8638,"uhblk;":9600,"ultri;":9720,"umacr;":363,"uogon;":371,"uplus;":8846,"upsih;":978,"uring;":367,"urtri;":9721,"utdot;":8944,"utrif;":9652,"uuarr;":8648,"vBarv;":10985,"vDash;":8872,"varpi;":982,"vdash;":8866,"veeeq;":8794,"vltri;":8882,"vnsub;":8834,"vnsup;":8835,"vprop;":8733,"vrtri;":8883,"wcirc;":373,"wedge;":8743,"xcirc;":9711,"xdtri;":9661,"xhArr;":10234,"xharr;":10231,"xlArr;":10232,"xlarr;":10229,"xodot;":10752,"xrArr;":10233,"xrarr;":10230,"xutri;":9651,yacute:253,"ycirc;":375,AElig:198,Acirc:194,"Aopf;":120120,Aring:197,"Ascr;":119964,"Auml;":196,"Barv;":10983,"Beta;":914,"Bopf;":120121,"Bscr;":8492,"CHcy;":1063,"COPY;":169,"Cdot;":266,"Copf;":8450,"Cscr;":119966,"DJcy;":1026,"DScy;":1029,"DZcy;":1039,"Darr;":8609,"Dopf;":120123,"Dscr;":119967,Ecirc:202,"Edot;":278,"Eopf;":120124,"Escr;":8496,"Esim;":10867,"Euml;":203,"Fopf;":120125,"Fscr;":8497,"GJcy;":1027,"Gdot;":288,"Gopf;":120126,"Gscr;":119970,"Hopf;":8461,"Hscr;":8459,"IEcy;":1045,"IOcy;":1025,Icirc:206,"Idot;":304,"Iopf;":120128,"Iota;":921,"Iscr;":8464,"Iuml;":207,"Jopf;":120129,"Jscr;":119973,"KHcy;":1061,"KJcy;":1036,"Kopf;":120130,"Kscr;":119974,"LJcy;":1033,"Lang;":10218,"Larr;":8606,"Lopf;":120131,"Lscr;":8466,"Mopf;":120132,"Mscr;":8499,"NJcy;":1034,"Nopf;":8469,"Nscr;":119977,Ocirc:212,"Oopf;":120134,"Oscr;":119978,"Ouml;":214,"Popf;":8473,"Pscr;":119979,"QUOT;":34,"Qopf;":8474,"Qscr;":119980,"Rang;":10219,"Rarr;":8608,"Ropf;":8477,"Rscr;":8475,"SHcy;":1064,"Sopf;":120138,"Sqrt;":8730,"Sscr;":119982,"Star;":8902,THORN:222,"TScy;":1062,"Topf;":120139,"Tscr;":119983,"Uarr;":8607,Ucirc:219,"Uopf;":120140,"Upsi;":978,"Uscr;":119984,"Uuml;":220,"Vbar;":10987,"Vert;":8214,"Vopf;":120141,"Vscr;":119985,"Wopf;":120142,"Wscr;":119986,"Xopf;":120143,"Xscr;":119987,"YAcy;":1071,"YIcy;":1031,"YUcy;":1070,"Yopf;":120144,"Yscr;":119988,"Yuml;":376,"ZHcy;":1046,"Zdot;":379,"Zeta;":918,"Zopf;":8484,"Zscr;":119989,acirc:226,acute:180,aelig:230,"andd;":10844,"andv;":10842,"ange;":10660,"aopf;":120146,"apid;":8779,"apos;":39,aring:229,"ascr;":119990,"auml;":228,"bNot;":10989,"bbrk;":9141,"beta;":946,"beth;":8502,"bnot;":8976,"bopf;":120147,"boxH;":9552,"boxV;":9553,"boxh;":9472,"boxv;":9474,"bscr;":119991,"bsim;":8765,"bsol;":92,"bull;":8226,"bump;":8782,"caps;":8745,"cdot;":267,cedil:184,"cent;":162,"chcy;":1095,"cirE;":10691,"circ;":710,"cire;":8791,"comp;":8705,"cong;":8773,"copf;":120148,"copy;":169,"cscr;":119992,"csub;":10959,"csup;":10960,"cups;":8746,"dArr;":8659,"dHar;":10597,"darr;":8595,"dash;":8208,"diam;":8900,"djcy;":1106,"dopf;":120149,"dscr;":119993,"dscy;":1109,"dsol;":10742,"dtri;":9663,"dzcy;":1119,"eDot;":8785,"ecir;":8790,ecirc:234,"edot;":279,"emsp;":8195,"ensp;":8194,"eopf;":120150,"epar;":8917,"epsi;":949,"escr;":8495,"esim;":8770,"euml;":235,"euro;":8364,"excl;":33,"flat;":9837,"fnof;":402,"fopf;":120151,"fork;":8916,"fscr;":119995,"gdot;":289,"geqq;":8807,"gesl;":8923,"gjcy;":1107,"gnap;":10890,"gneq;":10888,"gopf;":120152,"gscr;":8458,"gsim;":8819,"gtcc;":10919,"gvnE;":8809,"hArr;":8660,"half;":189,"harr;":8596,"hbar;":8463,"hopf;":120153,"hscr;":119997,icirc:238,"iecy;":1077,iexcl:161,"imof;":8887,"iocy;":1105,"iopf;":120154,"iota;":953,"iscr;":119998,"isin;":8712,"iuml;":239,"jopf;":120155,"jscr;":119999,"khcy;":1093,"kjcy;":1116,"kopf;":120156,"kscr;":12e4,"lArr;":8656,"lHar;":10594,"lang;":10216,laquo:171,"larr;":8592,"late;":10925,"lcub;":123,"ldca;":10550,"ldsh;":8626,"leqq;":8806,"lesg;":8922,"ljcy;":1113,"lnap;":10889,"lneq;":10887,"lopf;":120157,"lozf;":10731,"lpar;":40,"lscr;":120001,"lsim;":8818,"lsqb;":91,"ltcc;":10918,"ltri;":9667,"lvnE;":8808,"macr;":175,"male;":9794,"malt;":10016,micro:181,"mlcp;":10971,"mldr;":8230,"mopf;":120158,"mscr;":120002,"nGtv;":8811,"nLtv;":8810,"nang;":8736,"napE;":10864,"nbsp;":160,"ncap;":10819,"ncup;":10818,"ngeq;":8817,"nges;":10878,"ngtr;":8815,"nisd;":8954,"njcy;":1114,"nldr;":8229,"nleq;":8816,"nles;":10877,"nmid;":8740,"nopf;":120159,"npar;":8742,"npre;":10927,"nsce;":10928,"nscr;":120003,"nsim;":8769,"nsub;":8836,"nsup;":8837,"ntgl;":8825,"ntlg;":8824,"nvap;":8781,"nvge;":8805,"nvgt;":62,"nvle;":8804,"nvlt;":60,"oast;":8859,"ocir;":8858,ocirc:244,"odiv;":10808,"odot;":8857,"ogon;":731,"oint;":8750,"omid;":10678,"oopf;":120160,"opar;":10679,"ordf;":170,"ordm;":186,"oror;":10838,"oscr;":8500,"osol;":8856,"ouml;":246,"para;":182,"part;":8706,"perp;":8869,"phiv;":981,"plus;":43,"popf;":120161,pound:163,"prap;":10935,"prec;":8826,"prnE;":10933,"prod;":8719,"prop;":8733,"pscr;":120005,"qint;":10764,"qopf;":120162,"qscr;":120006,"quot;":34,"rArr;":8658,"rHar;":10596,"race;":8765,"rang;":10217,raquo:187,"rarr;":8594,"rcub;":125,"rdca;":10551,"rdsh;":8627,"real;":8476,"rect;":9645,"rhov;":1009,"ring;":730,"ropf;":120163,"rpar;":41,"rscr;":120007,"rsqb;":93,"rtri;":9657,"scap;":10936,"scnE;":10934,"sdot;":8901,"sect;":167,"semi;":59,"sext;":10038,"shcy;":1096,"sime;":8771,"simg;":10910,"siml;":10909,"smid;":8739,"smte;":10924,"solb;":10692,"sopf;":120164,"spar;":8741,"squf;":9642,"sscr;":120008,"star;":9734,"subE;":10949,"sube;":8838,"succ;":8827,"sung;":9834,"sup1;":185,"sup2;":178,"sup3;":179,"supE;":10950,"supe;":8839,szlig:223,"tbrk;":9140,"tdot;":8411,thorn:254,times:215,"tint;":8749,"toea;":10536,"topf;":120165,"tosa;":10537,"trie;":8796,"tscr;":120009,"tscy;":1094,"uArr;":8657,"uHar;":10595,"uarr;":8593,ucirc:251,"uopf;":120166,"upsi;":965,"uscr;":120010,"utri;":9653,"uuml;":252,"vArr;":8661,"vBar;":10984,"varr;":8597,"vert;":124,"vopf;":120167,"vscr;":120011,"wopf;":120168,"wscr;":120012,"xcap;":8898,"xcup;":8899,"xmap;":10236,"xnis;":8955,"xopf;":120169,"xscr;":120013,"xvee;":8897,"yacy;":1103,"yicy;":1111,"yopf;":120170,"yscr;":120014,"yucy;":1102,"yuml;":255,"zdot;":380,"zeta;":950,"zhcy;":1078,"zopf;":120171,"zscr;":120015,"zwnj;":8204,"AMP;":38,"Acy;":1040,"Afr;":120068,"And;":10835,Auml:196,"Bcy;":1041,"Bfr;":120069,COPY:169,"Cap;":8914,"Cfr;":8493,"Chi;":935,"Cup;":8915,"Dcy;":1044,"Del;":8711,"Dfr;":120071,"Dot;":168,"ENG;":330,"ETH;":208,"Ecy;":1069,"Efr;":120072,"Eta;":919,Euml:203,"Fcy;":1060,"Ffr;":120073,"Gcy;":1043,"Gfr;":120074,"Hat;":94,"Hfr;":8460,"Icy;":1048,"Ifr;":8465,"Int;":8748,Iuml:207,"Jcy;":1049,"Jfr;":120077,"Kcy;":1050,"Kfr;":120078,"Lcy;":1051,"Lfr;":120079,"Lsh;":8624,"Map;":10501,"Mcy;":1052,"Mfr;":120080,"Ncy;":1053,"Nfr;":120081,"Not;":10988,"Ocy;":1054,"Ofr;":120082,Ouml:214,"Pcy;":1055,"Pfr;":120083,"Phi;":934,"Psi;":936,QUOT:34,"Qfr;":120084,"REG;":174,"Rcy;":1056,"Rfr;":8476,"Rho;":929,"Rsh;":8625,"Scy;":1057,"Sfr;":120086,"Sub;":8912,"Sum;":8721,"Sup;":8913,"Tab;":9,"Tau;":932,"Tcy;":1058,"Tfr;":120087,"Ucy;":1059,"Ufr;":120088,Uuml:220,"Vcy;":1042,"Vee;":8897,"Vfr;":120089,"Wfr;":120090,"Xfr;":120091,"Ycy;":1067,"Yfr;":120092,"Zcy;":1047,"Zfr;":8488,"acE;":8766,"acd;":8767,"acy;":1072,"afr;":120094,"amp;":38,"and;":8743,"ang;":8736,"apE;":10864,"ape;":8778,"ast;":42,auml:228,"bcy;":1073,"bfr;":120095,"bne;":61,"bot;":8869,"cap;":8745,cent:162,"cfr;":120096,"chi;":967,"cir;":9675,copy:169,"cup;":8746,"dcy;":1076,"deg;":176,"dfr;":120097,"die;":168,"div;":247,"dot;":729,"ecy;":1101,"efr;":120098,"egs;":10902,"ell;":8467,"els;":10901,"eng;":331,"eta;":951,"eth;":240,euml:235,"fcy;":1092,"ffr;":120099,"gEl;":10892,"gap;":10886,"gcy;":1075,"gel;":8923,"geq;":8805,"ges;":10878,"gfr;":120100,"ggg;":8921,"glE;":10898,"gla;":10917,"glj;":10916,"gnE;":8809,"gne;":10888,"hfr;":120101,"icy;":1080,"iff;":8660,"ifr;":120102,"int;":8747,iuml:239,"jcy;":1081,"jfr;":120103,"kcy;":1082,"kfr;":120104,"lEg;":10891,"lap;":10885,"lat;":10923,"lcy;":1083,"leg;":8922,"leq;":8804,"les;":10877,"lfr;":120105,"lgE;":10897,"lnE;":8808,"lne;":10887,"loz;":9674,"lrm;":8206,"lsh;":8624,macr:175,"map;":8614,"mcy;":1084,"mfr;":120106,"mho;":8487,"mid;":8739,"nGg;":8921,"nGt;":8811,"nLl;":8920,"nLt;":8810,"nap;":8777,nbsp:160,"ncy;":1085,"nfr;":120107,"ngE;":8807,"nge;":8817,"ngt;":8815,"nis;":8956,"niv;":8715,"nlE;":8806,"nle;":8816,"nlt;":8814,"not;":172,"npr;":8832,"nsc;":8833,"num;":35,"ocy;":1086,"ofr;":120108,"ogt;":10689,"ohm;":937,"olt;":10688,"ord;":10845,ordf:170,ordm:186,"orv;":10843,ouml:246,"par;":8741,para:182,"pcy;":1087,"pfr;":120109,"phi;":966,"piv;":982,"prE;":10931,"pre;":10927,"psi;":968,"qfr;":120110,quot:34,"rcy;":1088,"reg;":174,"rfr;":120111,"rho;":961,"rlm;":8207,"rsh;":8625,"scE;":10932,"sce;":10928,"scy;":1089,sect:167,"sfr;":120112,"shy;":173,"sim;":8764,"smt;":10922,"sol;":47,"squ;":9633,"sub;":8834,"sum;":8721,sup1:185,sup2:178,sup3:179,"sup;":8835,"tau;":964,"tcy;":1090,"tfr;":120113,"top;":8868,"ucy;":1091,"ufr;":120114,"uml;":168,uuml:252,"vcy;":1074,"vee;":8744,"vfr;":120115,"wfr;":120116,"xfr;":120117,"ycy;":1099,"yen;":165,"yfr;":120118,yuml:255,"zcy;":1079,"zfr;":120119,"zwj;":8205,AMP:38,"DD;":8517,ETH:208,"GT;":62,"Gg;":8921,"Gt;":8811,"Im;":8465,"LT;":60,"Ll;":8920,"Lt;":8810,"Mu;":924,"Nu;":925,"Or;":10836,"Pi;":928,"Pr;":10939,REG:174,"Re;":8476,"Sc;":10940,"Xi;":926,"ac;":8766,"af;":8289,amp:38,"ap;":8776,"dd;":8518,deg:176,"ee;":8519,"eg;":10906,"el;":10905,eth:240,"gE;":8807,"ge;":8805,"gg;":8811,"gl;":8823,"gt;":62,"ic;":8291,"ii;":8520,"in;":8712,"it;":8290,"lE;":8806,"le;":8804,"lg;":8822,"ll;":8810,"lt;":60,"mp;":8723,"mu;":956,"ne;":8800,"ni;":8715,not:172,"nu;":957,"oS;":9416,"or;":8744,"pi;":960,"pm;":177,"pr;":8826,reg:174,"rx;":8478,"sc;":8827,shy:173,uml:168,"wp;":8472,"wr;":8768,"xi;":958,yen:165,GT:62,LT:60,gt:62,lt:60};const lo=[8364,129,8218,402,8222,8230,8224,8225,710,8240,352,8249,338,141,381,143,144,8216,8217,8220,8221,8226,8211,8212,732,8482,353,8250,339,157,382,376];function co(e){const t=Object.keys(oo).map((t=>function(e,t){return t&&!e.endsWith(";")?`${e}\\b(?!=)`:e}(t,e)));return new RegExp(`&(#(?:x[a-fA-F\\d]+|\\d+)(?:;)?|${t.join("|")})`,"g")}const uo=co(!1),po=co(!0);function ho(e,t){const n=t?po:uo;return e.replace(n,((e,t)=>{let n;return n="#"!==t[0]?oo[t]:"x"===t[1]?parseInt(t.substring(2),16):parseInt(t.substring(1),10),n?String.fromCodePoint(function(e){if(10===e)return 32;if(e<128)return e;if(e<=159)return lo[e-128];if(e<55296)return e;if(e<=57343)return mo;if(e<=65535)return e;if(e>=65536&&e<=131071)return e;if(e>=131072&&e<=196607)return e;return mo}(n)):e}))}const mo=0;function fo(e=!1){return{type:"Fragment",nodes:[],metadata:{transparent:e,dynamic:!1}}}const yo=["SvelteElement","RegularElement","SvelteFragment","Component","SvelteComponent","SvelteSelf","SlotElement"];function vo(e){return yo.includes(e.type)}function go(e){return"RegularElement"===e.type&&e.name.includes("-")}function bo(e,t,n,r){return{type:"Attribute",start:t,end:n,name:e,value:r,parent:null,metadata:{expression:xo(),delegated:null}}}function xo(){return{dependencies:new Set,has_state:!1,has_call:!1}}const _o={li:{direct:["li"]},dt:{descendant:["dt","dd"],reset_by:["dl"]},dd:{descendant:["dt","dd"],reset_by:["dl"]},p:{descendant:["address","article","aside","blockquote","div","dl","fieldset","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","main","menu","nav","ol","p","pre","section","table","ul"]},rt:{descendant:["rt","rp"]},rp:{descendant:["rt","rp"]},optgroup:{descendant:["optgroup"]},option:{descendant:["option","optgroup"]},thead:{direct:["tbody","tfoot"]},tbody:{direct:["tbody","tfoot"]},tfoot:{direct:["tbody"]},tr:{direct:["tr","tbody"]},td:{direct:["td","th","tr"]},th:{direct:["td","th","tr"]}};const Co={..._o,optgroup:{only:["option","#text"]},option:{only:["#text"]},form:{descendant:["form"]},a:{descendant:["a"]},button:{descendant:["button"]},h1:{descendant:["h1","h2","h3","h4","h5","h6"]},h2:{descendant:["h1","h2","h3","h4","h5","h6"]},h3:{descendant:["h1","h2","h3","h4","h5","h6"]},h4:{descendant:["h1","h2","h3","h4","h5","h6"]},h5:{descendant:["h1","h2","h3","h4","h5","h6"]},h6:{descendant:["h1","h2","h3","h4","h5","h6"]},select:{only:["option","optgroup","#text","hr","script","template"]},tr:{only:["th","td","style","script","template"]},tbody:{only:["tr","style","script","template"]},thead:{only:["tr","style","script","template"]},tfoot:{only:["tr","style","script","template"]},colgroup:{only:["col","template"]},table:{only:["caption","colgroup","tbody","thead","tfoot","style","script","template"]},head:{only:["base","basefont","bgsound","link","meta","title","noscript","noframes","style","script","template"]},html:{only:["head","body","frameset"]},frameset:{only:["frame"]},"#document":{only:["html"]}};function wo(e,t){if(e.includes("-"))return!0;const n=t[t.length-1],r=Co[n];if(!r)return!0;if("reset_by"in r&&r.reset_by)for(let e=t.length-2;e>=0;e--){if(t[e].includes("-"))return!0;if(r.reset_by.includes(t[e]))return!0}return!("descendant"in r)||!r.descendant.includes(e)}function ko(e,t){if(e.includes("-")||t?.includes("-"))return!0;const n=Co[t];if(n){if("direct"in n&&n.direct.includes(e))return!1;if("descendant"in n&&n.descendant.includes(e))return!1;if("only"in n&&n.only)return n.only.includes(e)}switch(e){case"body":case"caption":case"col":case"colgroup":case"frameset":case"frame":case"head":case"html":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return!1}return!0}function Po(e,t="or"){return 1===e.length?e[0]:2===e.length?`${e[0]} ${t} ${e[1]}`:`${e.slice(0,-1).join(", ")} ${t} ${e[e.length-1]}`}const So=/^(\/>|[\s"'=<>`])/,Eo=/^<\/textarea(\s[^>]*)?>/i,Ao=/-->/,To=/(\s|\/|>)/,$o=/[\s=/>"']/,Ro=/^["']/,Io=/^(?:"([^"]*)"|'([^'])*'|([^>\s]+))/,qo=/^(?:![a-zA-Z]+|[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?|[a-zA-Z][a-zA-Z0-9]*:[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9])$/,Lo=/^(?:\p{Lu}[$\u200c\u200d\p{ID_Continue}.]*|\p{ID_Start}[$\u200c\u200d\p{ID_Continue}]*(?:\.[$\u200c\u200d\p{ID_Continue}]+)+)$/u,Mo=new Map([["svelte:head","SvelteHead"],["svelte:options","SvelteOptions"],["svelte:window","SvelteWindow"],["svelte:document","SvelteDocument"],["svelte:body","SvelteBody"]]),Oo=new Map([...Mo,["svelte:element","SvelteElement"],["svelte:component","SvelteComponent"],["svelte:self","SvelteSelf"],["svelte:fragment","SvelteFragment"]]);function No(e){const t=e.index++;let n=e.current();if(e.eat("!--")){const n=e.read_until(Ao);return e.eat("--\x3e",!0),void e.append({type:"Comment",start:t,end:e.index,data:n})}const r=e.eat("/"),s=e.read_until(To);if(r){for(e.allow_whitespace(),e.eat(">",!0),yr(s)&&jr(t,"void_element_invalid_content","Void elements cannot have children or closing tags");n.name!==s;)"RegularElement"!==n.type&&(e.last_auto_closed_tag&&e.last_auto_closed_tag.tag===s?As(t,s,e.last_auto_closed_tag.reason):Es(t,s)),n.end=t,e.pop(),n=e.current();return n.end=e.index,e.pop(),void(e.last_auto_closed_tag&&e.stack.length<e.last_auto_closed_tag.depth&&(e.last_auto_closed_tag=void 0))}if(s.startsWith("svelte:")&&!Oo.has(s)){!function(e,t){jr(e,"svelte_meta_invalid_tag",`Valid \`<svelte:...>\` tag names are ${t}`)}({start:t+1,end:t+1+s.length},Po(Array.from(Oo.keys())))}if(!qo.test(s)&&!Lo.test(s)){!function(e){jr(e,"tag_invalid_name","Expected a valid element or component name. Components must have a valid variable name or dot notation expression")}({start:t+1,end:t+1+s.length})}Mo.has(s)&&(s in e.meta_tags&&function(e,t){jr(e,"svelte_meta_duplicate",`A component can only have one \`<${t}>\` element`)}(t,s),"Root"!==n.type&&function(e,t){jr(e,"svelte_meta_invalid_placement",`\`<${t}>\` tags cannot be inside elements or blocks`)}(t,s),e.meta_tags[s]=!0);const a=Oo.has(s)?Oo.get(s):Lo.test(s)?"Component":"title"===s&&function(e){let t=e.length;for(;t--;){const{type:n}=e[t];if("SvelteHead"===n)return!0;if("RegularElement"===n||"Component"===n)return!1}return!1}(e.stack)?"TitleElement":"slot"!==s||function(e){let t=e.length;for(;t--;)if("RegularElement"===e[t].type&&e[t].attributes.some((e=>"Attribute"===e.type&&"shadowrootmode"===e.name)))return!0;return!1}(e.stack)?"RegularElement":"SlotElement",i="RegularElement"===a?{type:a,start:t,end:-1,name:s,attributes:[],fragment:fo(!0),metadata:{svg:!1,mathml:!1,scoped:!1,has_spread:!1,path:[]},parent:null}:{type:a,start:t,end:-1,name:s,attributes:[],fragment:fo(!0),parent:null,metadata:{}};e.allow_whitespace(),"RegularElement"===n.type&&function(e,t){const n=_o[e];return!(!n||t&&!("direct"in n?n.direct:n.descendant).includes(t))}(n.name,s)&&(n.end=t,e.pop(),e.last_auto_closed_tag={tag:n.name,reason:s,depth:e.stack.length});const o=[],l=e.current(),c=("script"===s||"style"===s)&&"Root"===l.type,u=c?Do:jo;let p;for(;p=u(e);){if("Attribute"===p.type||"BindDirective"===p.type||"StyleDirective"===p.type||"ClassDirective"===p.type){const e="BindDirective"===p.type?"Attribute":p.type;o.includes(e+p.name)?ys(p):"this"!==p.name&&o.push(e+p.name)}i.attributes.push(p),e.allow_whitespace()}if("SvelteComponent"===i.type){const e=i.attributes.findIndex((e=>"Attribute"===e.type&&"this"===e.name));-1===e&&function(e){jr(e,"svelte_component_missing_this","`<svelte:component>` must have a 'this' attribute")}(t);const n=i.attributes.splice(e,1)[0];bi(n)||function(e){jr(e,"svelte_component_invalid_this","Invalid component definition — must be an `{expression}`")}(n.start),i.expression=xi(n)}if("SvelteElement"===i.type){const e=i.attributes.findIndex((e=>"Attribute"===e.type&&"this"===e.name));-1===e&&Js(t);const n=i.attributes.splice(e,1)[0];if(!0===n.value&&Js(n),bi(n))i.tag=xi(n);else{!function(e){Q(e,"svelte_element_invalid_this","`this` should be an `{expression}`. Using a string attribute value will cause an error in future versions of Svelte")}(n);const e=n.value[0];i.tag="Text"===e.type?{type:"Literal",value:e.data,raw:`'${e.raw}'`,start:e.start,end:e.end}:e.expression}}if(c){e.eat(">",!0);let n=null;for(let e=l.fragment.nodes.length-1;e>=0;e--){const r=l.fragment.nodes[e];if(e===l.fragment.nodes.length-1&&r.end!==t)break;if("Comment"===r.type){n=r;break}if("Text"!==r.type||r.data.trim())break}if("script"===s){const r=function(e,t,n){const r=e.index,s=e.read_until(Li);e.index>=e.template.length&&Ts(e.template.length,"script");const a=e.template.slice(0,r).replace(h," ")+s;let i;e.read(Mi);try{i=cr(a,e.ts)}catch(t){e.acorn_error(t)}i.start=r;let o="default";for(const e of n)Oi.includes(e.name)&&(l=e,c=e.name,jr(l,"script_reserved_attribute",`The \`${c}\` attribute is reserved and cannot be used`)),Ni.includes(e.name)||Re(e),"module"===e.name&&(!0!==e.value&&Bs(e,e.name),o="module"),"context"===e.name&&(!0!==e.value&&gi(e)||Fs(e),"module"!==e.value[0].data&&Fs(e),o="module");var l,c;return{type:"Script",start:t,end:e.index,context:o,content:i,parent:null,attributes:n}}(e,t,i.attributes);n&&(r.content.leadingComments=[{type:"Line",value:n.data}]),"module"===r.context?(l.module&&js(t),l.module=r):(l.instance&&js(t),l.instance=r)}else{const r=Xi(e,t,i.attributes);r.content.comment=n,l.css&&function(e){jr(e,"style_duplicate","A component can have a single top-level `<style>` element")}(t),l.css=r}return}e.append(i);const d=e.eat("/")||yr(s);if(e.eat(">",!0),d)i.end=e.index;else if("textarea"===s)i.fragment.nodes=Bo(e,(()=>Eo.test(e.template.slice(e.index))),"inside <textarea>"),e.read(Eo),i.end=e.index;else if("script"===s||"style"===s){const t=e.index,n=e.read_until(new RegExp(`</${s}>`)),r={start:t,end:e.index,type:"Text",data:n,raw:n,parent:null};i.fragment.nodes.push(r),e.eat(`</${s}>`,!0),i.end=e.index}else e.stack.push(i),e.fragments.push(i.fragment)}function Do(e){const t=e.index,n=e.read_until($o);if(!n)return null;let r=!0;if(e.eat("=")){e.allow_whitespace();let t=e.match_regex(Io);t||qs(e.index),e.index+=t.length;const n='"'===t[0]||"'"===t[0];n&&(t=t.slice(1,-1)),r=[{start:e.index-t.length-(n?1:0),end:n?e.index-1:e.index,type:"Text",raw:t,data:ho(t,!0),parent:null}]}return e.match_regex(Ro)&&Ms(e.index,"="),bo(n,t,e.index,r)}function jo(e){const t=e.index;if(e.eat("{")){if(e.allow_whitespace(),e.eat("...")){const n=ma(e);e.allow_whitespace(),e.eat("}",!0);return{type:"SpreadAttribute",start:t,end:e.index,expression:n,parent:null,metadata:{expression:xo()}}}{const n=e.index,r=e.read_identifier();null===r&&jr(t,"attribute_empty_shorthand","Attribute shorthand cannot be empty"),e.allow_whitespace(),e.eat("}",!0);const s={type:"ExpressionTag",start:n,end:n+r.length,expression:{start:n,end:n+r.length,type:"Identifier",name:r},parent:null,metadata:{expression:xo()}};return bo(r,t,e.index,s)}}const n=e.read_until($o);if(!n)return null;let r=e.index;e.allow_whitespace();const s=n.indexOf(":"),a=-1!==s&&function(e){return"use"===e?"UseDirective":"animate"===e?"AnimateDirective":"bind"===e?"BindDirective":"class"===e?"ClassDirective":"style"===e?"StyleDirective":"on"===e?"OnDirective":"let"===e?"LetDirective":("in"===e||"out"===e||"transition"===e)&&"TransitionDirective"}(n.slice(0,s));let i=!0;if(e.eat("=")?(e.allow_whitespace(),i=function(e){const t=e.eat("'")?"'":e.eat('"')?'"':null;if(t&&e.eat(t))return[{start:e.index-1,end:e.index-1,type:"Text",raw:"",data:"",parent:null}];let n;try{n=Bo(e,(()=>t?e.match(t):!!e.match_regex(So)),"in attribute value")}catch(n){if("js_parse_error"===n.code){const r=n.position?.[0];void 0!==r&&"/>"===e.template.slice(r-1,r+1)&&(e.index=r,Ms(r,t||"}"))}throw n}0!==n.length||t||qs(e.index);t&&(e.index+=1);return t||n.length>1||"Text"===n[0].type?n:n[0]}(e),r=e.index):e.match_regex(Ro)&&Ms(e.index,"="),a){const[e,...o]=n.slice(s+1).split("|");if(""===e&&function(e,t){jr(e,"directive_missing_name",`\`${t}\` name cannot be empty`)}({start:t,end:t+s+1},n),"StyleDirective"===a)return{start:t,end:r,type:a,name:e,modifiers:o,value:i,parent:null,metadata:{expression:xo()}};const l=!0===i?void 0:Array.isArray(i)?i[0]:i;let c=null;if(l){i.length>1||"Text"===l.type?function(e){jr(e,"directive_invalid_value","Directive value must be a JavaScript expression enclosed in curly braces")}(l.start):c=l.expression}const u={start:t,end:r,type:a,name:e,modifiers:o,expression:c,metadata:{expression:xo()}};if("TransitionDirective"===u.type){const e=n.slice(0,s);u.intro="in"===e||"transition"===e,u.outro="out"===e||"transition"===e}return"BindDirective"!==u.type&&"ClassDirective"!==u.type||u.expression||(u.expression={start:t+s+1,end:r,type:"Identifier",name:u.name}),u}return bo(n,t,r,i)}function Bo(e,t,n){let r={start:e.index,end:-1,type:"Text",raw:"",data:"",parent:null};const s=[];function a(e){r.raw&&(r.data=ho(r.raw,!0),r.end=e,s.push(r))}for(;e.index<e.template.length;){const i=e.index;if(t())return a(e.index),s;if(e.eat("{")){if(e.match("#")){const t=e.index-1;e.eat("#");ws(t,e.read_until(/[^a-z]/),n)}else if(e.match("@")){const t=e.index-1;e.eat("@");oa(t,e.read_until(/[^a-z]/),n)}a(e.index-1),e.allow_whitespace();const t=ma(e);e.allow_whitespace(),e.eat("}",!0);const o={type:"ExpressionTag",start:i,end:e.index,expression:t,parent:null,metadata:{expression:xo()}};s.push(o),r={start:e.index,end:-1,type:"Text",raw:"",data:"",parent:null}}else r.raw+=e.template[e.index++]}ha(e.template.length)}function Fo(e,t){const n=e.charCodeAt(t);if(n<=55295||n>=57344)return n;return(n<<10)+e.charCodeAt(t+1)-56613888}const Vo="[".charCodeAt(0),Ho="]".charCodeAt(0),Uo="{".charCodeAt(0),zo="}".charCodeAt(0);function Wo(e){return e===Vo||e===Uo}function Go(e){return e===Ho||e===zo}function Ko(e,t){return e===Vo&&t===Ho||e===Uo&&t===zo}function Xo(e){return e===Vo?Ho:e===Uo?zo:void 0}function Jo(e){const t=e.index;let n=e.index;const r=Fo(e.template,n);if(Ke(r,!0)){const n=e.read_identifier(),r=Qo(e);return{type:"Identifier",name:n,start:t,loc:{start:F(t),end:F(e.index)},end:e.index,typeAnnotation:r}}Wo(r)||jr(n,"expected_pattern","Expected identifier or destructure pattern");const s=[r];for(n+=r<=65535?1:2;n<e.template.length;){const t=Fo(e.template,n);if(Wo(t))s.push(t);else if(Go(t)){const e=s.pop();if(Ko(e,t)||Ms(n,String.fromCharCode(Xo(e))),0===s.length){n+=t<=65535?1:2;break}}n+=t<=65535?1:2}e.index=n;const a=e.template.slice(t,n);try{let n=e.template.slice(0,t).replace(h," ");const r=n.indexOf(" ");n=n.slice(0,r)+n.slice(r+1);const s=ur(`${n}(${a} = 1)`,e.ts,t-1).left;return s.typeAnnotation=Qo(e),s.typeAnnotation&&(s.end=s.typeAnnotation.end),s}catch(t){e.acorn_error(t)}}function Qo(e){const t=e.index;if(e.allow_whitespace(),!e.eat(":"))return void(e.index=t);const n="_ as ";let r=e.index-5;const s=e.template.slice(0,r).replace(/[^\n]/g," ")+n+e.template.slice(e.index).replace(/\?\s*:/g,":");let a=ur(s,e.ts,r);if("AssignmentExpression"===a.type){let t=a.right.start;for(;"="!==s[t];)t-=1;a=ur(s.slice(0,t),e.ts,r)}return"SequenceExpression"===a.type&&(a=a.expressions[0]),e.index=a.end,{type:"TSTypeAnnotation",start:t,end:e.index,typeAnnotation:a.typeAnnotation}}const Yo=/^\s*}/;function Zo(e){const n=e.index;if(e.index+=1,e.allow_whitespace(),e.eat("#"))return function(e){let n=e.index-2;for(;"{"!==e.template[n];)n-=1;if(e.eat("if")){e.require_whitespace();const t=e.append({type:"IfBlock",elseif:!1,start:n,end:-1,test:ma(e),consequent:fo(),alternate:null});return e.allow_whitespace(),e.eat("}",!0),e.stack.push(t),void e.fragments.push(t.consequent)}if(e.eat("each")){e.require_whitespace();const r=e.template;let s,a=e.template.length;for(;!s;)try{s=ma(e)}catch(t){for(a=t.position[0]-2;a>n&&"as"!==e.template.slice(a,a+2);)a-=1;if(a<=n)throw t;e.template=r.slice(0,a)}if(e.template=r,e.allow_whitespace(),!e.match("as")){"SequenceExpression"===s.type&&(s=s.expressions[0]);let n=null,r=s.end;if(s=t(s,null,{TSAsExpression(e,t){if(e.end===s.end)return n=e,r=e.expression.end,e.expression;t.next()}}),s.end=r,n){let t=n.typeAnnotation.start-2;for(;"as"!==e.template.slice(t,t+2);)t-=1;e.index=t}}e.eat("as",!0),e.require_whitespace();const i=Jo(e);let o,l;e.allow_whitespace(),e.eat(",")&&(e.allow_whitespace(),o=e.read_identifier(),o||Ls(e.index),e.allow_whitespace()),e.eat("(")&&(e.allow_whitespace(),l=ma(e),e.allow_whitespace(),e.eat(")",!0),e.allow_whitespace()),e.eat("}",!0);const c=e.append({type:"EachBlock",start:n,end:-1,expression:s,body:fo(),context:i,index:o,key:l,metadata:null});return e.stack.push(c),void e.fragments.push(c.body)}if(e.eat("await")){e.require_whitespace();const t=ma(e);e.allow_whitespace();const r=e.append({type:"AwaitBlock",start:n,end:-1,expression:t,value:null,error:null,pending:null,then:null,catch:null});return e.eat("then")?(e.match_regex(Yo)||(e.require_whitespace(),r.value=Jo(e)),e.allow_whitespace(),r.then=fo(),e.fragments.push(r.then)):e.eat("catch")?(e.match_regex(Yo)||(e.require_whitespace(),r.error=Jo(e)),e.allow_whitespace(),r.catch=fo(),e.fragments.push(r.catch)):(r.pending=fo(),e.fragments.push(r.pending)),e.eat("}",!0),void e.stack.push(r)}if(e.eat("key")){e.require_whitespace();const t=ma(e);e.allow_whitespace(),e.eat("}",!0);const r=e.append({type:"KeyBlock",start:n,end:-1,expression:t,fragment:fo()});return e.stack.push(r),void e.fragments.push(r.fragment)}if(e.eat("snippet")){e.require_whitespace();const t=e.index,r=e.read_identifier(),s=e.index;null===r&&Ls(e.index),e.allow_whitespace();const a=e.index;e.eat("(",!0);let i=1;for(;e.index<e.template.length&&(!e.match(")")||1!==i);)e.match("(")&&i++,e.match(")")&&i--,e.index+=1;e.eat(")",!0);let o=ur(e.template.slice(0,a).replace(/\S/g," ")+`${e.template.slice(a,e.index)} => {}`,e.ts,a);e.allow_whitespace(),e.eat("}",!0);const l=e.append({type:"SnippetBlock",start:n,end:-1,expression:{type:"Identifier",start:t,end:s,name:r},parameters:o.params,body:fo()});return e.stack.push(l),void e.fragments.push(l.body)}r=e.index,jr(r,"expected_block_type","Expected 'if', 'each', 'await', 'key' or 'snippet'");var r}(e);if(e.eat(":"))return function(e){const t=e.index-1,n=e.current();if("IfBlock"===n.type){if(e.eat("else")||Ms(t,"{:else} or {:else if}"),e.eat("if")&&jr(t,"block_invalid_elseif","'elseif' should be 'else if'"),e.allow_whitespace(),e.fragments.pop(),n.alternate=fo(),e.fragments.push(n.alternate),e.eat("if")){e.require_whitespace();const n=ma(e);e.allow_whitespace(),e.eat("}",!0);let r=t-1;for(;"{"!==e.template[r];)r-=1;const s=e.append({start:r,end:-1,type:"IfBlock",elseif:!0,test:n,consequent:fo(),alternate:null});e.stack.push(s),e.fragments.pop(),e.fragments.push(s.consequent)}else e.allow_whitespace(),e.eat("}",!0);return}if("EachBlock"===n.type)return e.eat("else")||Ms(t,"{:else}"),e.allow_whitespace(),e.eat("}",!0),n.fallback=fo(),e.fragments.pop(),void e.fragments.push(n.fallback);if("AwaitBlock"===n.type){if(e.eat("then"))return n.then&&Cs(t,"{:then}"),e.eat("}")||(e.require_whitespace(),n.value=Jo(e),e.allow_whitespace(),e.eat("}",!0)),n.then=fo(),e.fragments.pop(),void e.fragments.push(n.then);if(e.eat("catch"))return n.catch&&Cs(t,"{:catch}"),e.eat("}")||(e.require_whitespace(),n.error=Jo(e),e.allow_whitespace(),e.eat("}",!0)),n.catch=fo(),e.fragments.pop(),void e.fragments.push(n.catch);Ms(t,"{:then ...} or {:catch ...}")}!function(e){jr(e,"block_invalid_continuation_placement","{:...} block is invalid at this position (did you forget to close the preceding element or block?)")}(t)}(e);if(e.eat("@"))return function(e){let t=e.index;for(;"{"!==e.template[t];)t-=1;if(e.eat("html")){e.require_whitespace();const n=ma(e);return e.allow_whitespace(),e.eat("}",!0),void e.append({type:"HtmlTag",start:t,end:e.index,expression:n})}if(e.eat("debug")){let n;if(e.read(Yo))n=[];else{const t=ma(e);n="SequenceExpression"===t.type?t.expressions:[t],n.forEach((e=>{"Identifier"!==e.type&&function(e){jr(e,"debug_tag_invalid_arguments","{@debug ...} arguments must be identifiers, not arbitrary expressions")}(e.start)})),e.allow_whitespace(),e.eat("}",!0)}return void e.append({type:"DebugTag",start:t,end:e.index,identifiers:n})}if(e.eat("const")){e.require_whitespace();const n=Jo(e);e.allow_whitespace(),e.eat("=",!0),e.allow_whitespace();const r=e.index,s=ma(e);"SequenceExpression"!==s.type||e.template.substring(r,s.start).includes("(")||jr(s,"const_tag_invalid_expression","{@const ...} must consist of a single variable declaration"),e.allow_whitespace(),e.eat("}",!0),e.append({type:"ConstTag",start:t,end:e.index,declaration:{type:"VariableDeclaration",kind:"const",declarations:[{type:"VariableDeclarator",id:n,init:s,start:n.start,end:s.end}],start:t+2,end:e.index-1}})}if(e.eat("render")){e.require_whitespace();const n=ma(e);"CallExpression"===n.type||"ChainExpression"===n.type&&"CallExpression"===n.expression.type||function(e){jr(e,"render_tag_invalid_expression","`{@render ...}` tags can only contain call expressions")}(n),e.allow_whitespace(),e.eat("}",!0),e.append({type:"RenderTag",start:t,end:e.index,expression:n,metadata:{dynamic:!1,args_with_call_expression:new Set}})}}(e);if(e.match("/")&&!e.match("/*")&&!e.match("//"))return e.eat("/"),function(e){const t=e.index-1;let n=e.current();switch(n.type){case"IfBlock":for(e.eat("if",!0),e.allow_whitespace(),e.eat("}",!0);n.elseif;)n.end=e.index,e.stack.pop(),n=e.current();return n.end=e.index,void e.pop();case"EachBlock":e.eat("each",!0);break;case"KeyBlock":e.eat("key",!0);break;case"AwaitBlock":e.eat("await",!0);break;case"SnippetBlock":e.eat("snippet",!0);break;default:Ps(t)}e.allow_whitespace(),e.eat("}",!0),n.end=e.index,e.pop()}(e);const r=ma(e);e.allow_whitespace(),e.eat("}",!0),e.append({type:"ExpressionTag",start:n,end:e.index,expression:r,metadata:{expression:xo()}})}function el(e){const t=e.index;let n="";for(;e.index<e.template.length&&!e.match("<")&&!e.match("{");)n+=e.template[e.index++];e.append({type:"Text",start:t,end:e.index,raw:n,data:ho(n,!1)})}function tl(e){return e.match("<")?No:e.match("{")?Zo:el}function nl(e){const{value:t}=e;if(!0===t)return!0;const n=Array.isArray(t)?t[0]:t;return!n||(t.length>1?null:"Text"===n.type?n.data:"Literal"!==n.expression.type?null:n.expression.value)}function rl(e){const t=nl(e);return"boolean"!=typeof t&&ta(e,"true or false"),t}const sl="[a-z0-9_.·À-ÖØ-öø-ͽͿ-῿‌-‍‿-⁀⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-<2D>𐀀-󯿿-]",al=new RegExp(`^[a-z]${sl}*-${sl}*$`,"u"),il=["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"];function ol(e,t){"string"!=typeof t&&aa(e),t&&(al.test(t)?il.includes(t)&&jr(e,"svelte_options_reserved_tagname","Tag name is reserved"):aa(e))}function ll(e){const{nodes:t}=e.fragment;if(t.length>0){const n=t[0],r=t[t.length-1];!function(e,t){jr(e,"svelte_meta_invalid_content",`<${t}> cannot have children`)}({start:n.start,end:r.end},e.name)}}const cl=/ \(\d+:\d+\)$/,ul=/<!--[^]*?-->|<script\s+(?:[^>]*|(?:[^=>'"/]+=(?:"[^"]*"|'[^']*'|[^>\s]+)\s+)*)lang=(["'])?([^"' >]+)\1[^>]*>/g;class pl{template;index=0;ts=!1;stack=[];fragments=[];root;meta_tags={};last_auto_closed_tag;constructor(e){if("string"!=typeof e)throw new TypeError("Template must be a string");let t;this.template=e.trimEnd();do{t=ul.exec(e)}while(t&&"s"!==t[0][1]);ul.lastIndex=0,this.ts="ts"===t?.[2],this.root={css:null,js:[],start:null,end:null,type:"Root",fragment:fo(),options:null,metadata:{ts:this.ts}},this.stack.push(this.root),this.fragments.push(this.root.fragment);let n=tl;for(;this.index<this.template.length;)n=n(this)||tl;if(this.stack.length>1){const e=this.current();"RegularElement"===e.type?(e.end=e.start+1,Ts(e,e.name)):(e.end=e.start+1,jr(e,"block_unclosed","Block was left open"))}if(n!==tl&&ha(this.index),this.root.fragment.nodes.length){let t=this.root.fragment.nodes[0].start;for(;r.test(e[t]);)t+=1;let n=this.root.fragment.nodes[this.root.fragment.nodes.length-1].end;for(;r.test(e[n-1]);)n-=1;this.root.start=t,this.root.end=n}else this.root.start=this.root.end=null;const s=this.root.fragment.nodes.findIndex((e=>"SvelteOptions"===e.type));if(-1!==s){const e=this.root.fragment.nodes[s];this.root.fragment.nodes.splice(s,1),this.root.options=function(e){const t={start:e.start,end:e.end,attributes:e.attributes};if(!e)return t;for(const n of e.attributes){"Attribute"!==n.type&&ea(n);const{name:e}=n;switch(e){case"runes":t.runes=rl(n);break;case"tag":Zs(n);break;case"customElement":{const e={},{value:r}=n,s=!0===r||Array.isArray(r)?r:[r];if(!0===s)na(n);else{if("Text"===s[0].type){const r=nl(n);ol(n,r),e.tag=r,t.customElement=e;break}if("ObjectExpression"!==s[0].expression.type){if("Literal"===s[0].expression.type&&null===s[0].expression.value)break;na(n)}}const a=[];for(const e of s[0].expression.properties)("Property"!==e.type||e.computed||"Identifier"!==e.key.type)&&na(n),a.push([e.key.name,e.value]);const i=a.find((([e])=>"tag"===e));if(i){const t=i[1]?.value;ol(i,t),e.tag=t}const o=a.find((([e])=>"props"===e))?.[1];if(o){"ObjectExpression"!==o.type&&ra(n),e.props={};for(const t of o.properties){("Property"!==t.type||t.computed||"Identifier"!==t.key.type||"ObjectExpression"!==t.value.type)&&ra(n),e.props[t.key.name]={};for(const r of t.value.properties)("Property"!==r.type||r.computed||"Identifier"!==r.key.type||"Literal"!==r.value.type)&&ra(n),"type"===r.key.name?(-1===["String","Number","Boolean","Array","Object"].indexOf(r.value.value)&&ra(n),e.props[t.key.name].type=r.value.value):"reflect"===r.key.name?("boolean"!=typeof r.value.value&&ra(n),e.props[t.key.name].reflect=r.value.value):"attribute"===r.key.name?("string"!=typeof r.value.value&&ra(n),e.props[t.key.name].attribute=r.value.value):ra(n)}}const l=a.find((([e])=>"shadow"===e))?.[1];if(l){const t=l?.value;"open"!==t&&"none"!==t&&sa(l),e.shadow=t}const c=a.find((([e])=>"extend"===e))?.[1];c&&(e.extend=c),t.customElement=e;break}case"namespace":{const e=nl(n);e===S?t.namespace="svg":e===E?t.namespace="mathml":"html"===e||"mathml"===e||"svg"===e?t.namespace=e:ta(n,'"html", "mathml" or "svg"');break}case"css":{const e=nl(n);"injected"===e?t.css=e:ta(n,'"injected"');break}case"immutable":t.immutable=rl(n);break;case"preserveWhitespace":t.preserveWhitespace=rl(n);break;case"accessors":t.accessors=rl(n);break;default:ia(n,e)}}return t}(e),ll(e),Object.defineProperty(this.root.options,"__raw__",{value:e,enumerable:!1})}}current(){return this.stack[this.stack.length-1]}acorn_error(e){var t,n;t=e.pos,n=e.message.replace(cl,""),jr(t,"js_parse_error",`${n}`)}eat(e,t=!1){return this.match(e)?(this.index+=e.length,!0):(t&&Ms(this.index,e),!1)}match(e){const t=e.length;return 1===t?this.template[this.index]===e:this.template.slice(this.index,this.index+t)===e}match_regex(e){const t=e.exec(this.template.slice(this.index));return t&&0===t.index?t[0]:null}allow_whitespace(){for(;this.index<this.template.length&&r.test(this.template[this.index]);)this.index++}read(e){const t=this.match_regex(e);return t&&(this.index+=t.length),t}read_identifier(e=!1){const t=this.index;let n=this.index;const r=Fo(this.template,n);if(!Ke(r,!0))return null;for(n+=r<=65535?1:2;n<this.template.length;){const e=Fo(this.template,n);if(!Xe(e,!0))break;n+=e<=65535?1:2}const s=this.template.slice(this.index,this.index=n);return!e&&gr(s)&&jr(t,"unexpected_reserved_word",`'${s}' is a reserved word in JavaScript and cannot be used here`),s}read_until(e){this.index>=this.template.length&&ha(this.template.length);const t=this.index,n=e.exec(this.template.slice(t));return n?(this.index=t+n.index,this.template.slice(t,this.index)):(this.index=this.template.length,this.template.slice(t))}require_whitespace(){r.test(this.template[this.index])||jr(this.index,"expected_whitespace","Expected whitespace"),this.allow_whitespace()}pop(){return this.fragments.pop(),this.stack.pop()}append(e){const t=this.current(),n=this.fragments.at(-1);return Object.defineProperties(e,{prev:{enumerable:!1,value:n?.nodes.at(-1)??null},parent:{enumerable:!1,configurable:!0,value:t}}),n.nodes.push(e),e}}function dl(e){return new pl(e).root}function hl(e,t){return"Identifier"===e.params[0]?.type&&"this"===e.params[0].name&&e.params.shift(),t.next()}const ml={Decorator(e){as(e,"decorators (related TSC proposal is not stage 4 yet)")},ImportDeclaration(e){if("type"===e.importKind)return $a;if(e.specifiers?.length>0){const t=e.specifiers.filter((e=>"type"!==e.importKind));return 0===t.length?$a:{...e,specifiers:t}}return e},ExportNamedDeclaration(e,t){if("type"===e.exportKind)return $a;if(e.declaration)return t.next();if(e.specifiers){const t=e.specifiers.filter((e=>"type"!==e.exportKind));return 0===t.length?$a:{...e,specifiers:t}}return e},ExportDefaultDeclaration:e=>"type"===e.exportKind?$a:e,ExportAllDeclaration:e=>"type"===e.exportKind?$a:e,PropertyDefinition:(e,{next:t})=>(e.accessor&&as(e,"accessor fields (related TSC proposal is not stage 4 yet)"),t()),TSAsExpression:(e,t)=>t.visit(e.expression),TSSatisfiesExpression:(e,t)=>t.visit(e.expression),TSNonNullExpression:(e,t)=>t.visit(e.expression),TSTypeAnnotation:()=>$a,TSInterfaceDeclaration:()=>$a,TSTypeAliasDeclaration:()=>$a,TSTypeParameterDeclaration:()=>$a,TSTypeParameterInstantiation:()=>$a,TSEnumDeclaration(e){as(e,"enums")},TSParameterProperty:(e,t)=>((e.readonly||e.accessibility)&&"constructor"===t.path.at(-2)?.kind&&as(e,"accessibility modifiers on constructor parameters"),t.visit(e.parameter)),FunctionExpression:hl,FunctionDeclaration:hl,TSDeclareFunction:()=>$a,ClassDeclaration:(e,t)=>e.declare?$a:t.next(),VariableDeclaration:(e,t)=>e.declare?$a:t.next(),TSModuleDeclaration(e,t){if(!e.body)return $a;return e.body.body.map((e=>t.visit(e))).some((e=>e!==$a))&&as(e,"namespaces with non-type nodes"),$a}};function fl(e){return t(e,null,ml)}function yl(e,t){if("MemberExpression"===e.type)return!e.computed&&yl(e.object,e);if("Identifier"!==e.type)return!1;switch(t?.type){case"MemberExpression":return t.computed||e===t.object;case"MethodDefinition":return t.computed;case"MetaProperty":return t.meta===e;case"PropertyDefinition":case"Property":return t.computed||e===t.value;case"ExportSpecifier":case"ImportSpecifier":return e===t.local;case"LabeledStatement":case"BreakStatement":case"ContinueStatement":return!1;default:return!0}}function vl(e){if(!vo(e))return null;for(const t of e.attributes)if("Attribute"===t.type&&"slot"===t.name&&gi(t))return t.value[0].data;return null}function gl(e,t,n){if(bl(e,t,n.scope,!1),"Identifier"===t.type){const r=n.scope.get(t.name);n.analysis.runes&&("derived"===r?.kind&&Fr(e,"derived state"),"each"===r?.kind&&Ur(e)),"snippet"===r?.kind&&ts(e)}let r=t,s=null;for(;"MemberExpression"===r.type;)s=r.property,r=r.object;"ThisExpression"===r.type&&"PrivateIdentifier"===s?.type&&n.private_derived_state.includes(s.name)&&Fr(e,"derived state")}function bl(e,t,n,r){if("ArrayPattern"===t.type)for(const s of t.elements)s&&bl(e,s,n,r);else if("ObjectPattern"===t.type)for(const s of t.properties)"Property"===s.type&&bl(e,s.value,n,r);else if("Identifier"===t.type){const s=n.get(t.name);if("derived"===s?.kind||"import"===s?.declaration_kind||"const"===s?.declaration_kind&&"each"!==s.kind){const t="import"===s.declaration_kind?"import":"derived"===s.kind?"derived state":"constant";r?function(e,t){jr(e,"constant_binding",`Cannot bind to ${t}`)}(e,t):Fr(e,t)}}}function xl(e,t,n){t.analysis.source[e.start+1]!==n&&ks({start:e.start,end:e.start+5},n)}function _l(e,t){e&&(1!==e.nodes.length||"Text"!==e.nodes[0].type||e.nodes[0].raw.trim()||function(e){Q(e,"block_empty","Empty block")}(e.nodes[0]))}function Cl(e,t){let n=e;for(;"MemberExpression"===n.type;)n=n.object;if("Identifier"!==n.type)return!1;const r=t.get(n.name);return!r||("store_sub"===r.kind?Cl({name:n.name.slice(1),type:"Identifier"},t):"import"!==r.declaration_kind&&"prop"!==r.kind&&"bindable_prop"!==r.kind&&"rest_prop"!==r.kind)}function wl(e,t){if("Literal"===e.type)return!0;if("CallExpression"===e.type){if(!wl(e.callee,t))return!1;for(let n of e.arguments)if(!wl("SpreadElement"===n.type?n.argument:n,t))return!1;return!0}if("Identifier"!==e.type&&"MemberExpression"!==e.type)return!1;if("$effect.tracking"===$l(ka(e),t.state.scope))return!1;let n=e;for(;"MemberExpression"===n.type;)n=n.object;if(!n)return!1;if("Identifier"===n.type){if(null===t.state.scope.get(n.name))return!0}else if(wl(n,t))return!0;return!1}function kl(e,t){if(!e)return;const n=e.declaration_kind;if("synthetic"!==n&&"param"!==n&&"rest_param"!==n&&(!t||t<=1)){const t=e.node;"$"===t.name?function(e){jr(e,"dollar_binding_invalid","The $ name is reserved, and cannot be used for variables and imports")}(t):!t.name.startsWith("$")||"ImportDeclaration"===e.initial?.type&&"type"===e.initial.importKind||function(e){jr(e,"dollar_prefix_invalid","The $ prefix is reserved, and cannot be used for variables and imports")}(t)}}function Pl(e,t,n){const r=t.get(n);r&&("derived"===r.kind&&Hr(e),"state"!==r.kind&&"raw_state"!==r.kind||!r.reassigned||ns(e))}class Sl{root;parent;#t;declarations=new Map;declarators=new Map;references=new Map;function_depth=0;constructor(e,t,n){this.root=e,this.parent=t,this.#t=n,this.function_depth=t?t.function_depth+(n?0:1):0}declare(e,t,n,r=null){if(this.parent){if("var"===n&&this.#t)return this.parent.declare(e,t,n);if("import"===n)return this.parent.declare(e,t,n,r)}this.declarations.has(e.name)&&function(e,t){jr(e,"declaration_duplicate",`\`${t}\` has already been declared`)}(e,e.name);const s={node:e,references:[],legacy_dependencies:[],initial:r,reassigned:!1,mutated:!1,updated:!1,scope:this,kind:t,declaration_kind:n,is_called:!1,prop_alias:null,metadata:null};return kl(s,this.function_depth),this.declarations.set(e.name,s),this.root.conflicts.add(e.name),s}child(e=!1){return new Sl(this.root,this,e)}generate(e){if(this.#t)return this.parent.generate(e);let t=e=e.replace(/[^a-zA-Z0-9_$]/g,"_").replace(/^[0-9]/,"_"),n=1;for(;this.references.has(t)||this.declarations.has(t)||this.root.conflicts.has(t)||gr(t);)t=`${e}_${n++}`;return this.references.set(t,[]),this.root.conflicts.add(t),t}get(e){return this.declarations.get(e)??this.parent?.get(e)??null}get_bindings(e){const t=this.declarators.get(e);if(!t)throw new Error("No binding found for declarator");return t}owner(e){return this.declarations.has(e)?this:this.parent&&this.parent.owner(e)}reference(e,t){t=[...t];let n=this.references.get(e.name);n||this.references.set(e.name,n=[]),n.push({node:e,path:t});const r=this.declarations.get(e.name);r?r.references.push({node:e,path:t}):this.parent?this.parent.reference(e,t):this.root.conflicts.add(e.name)}}class El{conflicts=new Set;unique(e){let t=e=e.replace(/[^a-zA-Z0-9_$]/g,"_"),n=1;for(;this.conflicts.has(t);)t=`${e}_${n++}`;this.conflicts.add(t);return La(t)}}function Al(e,n,r,s){const a=new Map,i=new Sl(n,s,!1);a.set(e,i);const o={scope:i},l=[],c=[],u=[];function p(e,t){for(const n of t)for(const t of ki(n))e.declare(t,"normal","RestElement"===n.type?"rest_param":"param")}const d=(e,{state:t,next:n})=>{const r=t.scope.child(!0);a.set(e,r),n({scope:r})},h=(e,{state:t,next:n})=>{const r=t.scope.child();a.set(e,r),n({scope:r})},m=(e,t)=>{e.metadata.scopes={default:t.state.scope.child()},"SvelteComponent"===e.type&&t.visit(e.expression);const n=vl(e)?t.state:{scope:e.metadata.scopes.default};for(const r of e.attributes)"LetDirective"===r.type?t.visit(r,n):t.visit(r);for(const r of e.fragment.nodes){let s=n;const a=vl(r);null!==a&&(e.metadata.scopes[a]=t.state.scope.child(),s={scope:e.metadata.scopes[a]}),t.visit(r,s)}},f=(e,{state:t,path:n,visit:r})=>{t.scope.reference(La(e.name.split(".")[0]),n),e.expression&&r(e.expression)};t(e,o,{Identifier(e,{path:t,state:n}){const r=t.at(-1);r&&yl(e,r)&&!r.type.startsWith("TS")&&l.push([n.scope,{node:e,path:t.slice()}])},LabeledStatement(e,{path:t,next:n}){if(t.length>1||!r)return n();if("$"!==e.label.name)return n();const s=o.scope.child();if(a.set(e,s),"ExpressionStatement"===e.body.type&&"AssignmentExpression"===e.body.expression.type)for(const t of ki(e.body.expression.left))t.name.startsWith("$")||u.push(t);n({scope:s})},SvelteFragment:h,SlotElement:h,SvelteElement:h,RegularElement:h,LetDirective(e,t){const n=t.state.scope,r=[];if(n.declarators.set(e,r),e.expression)for(const s of Si(e.expression)){const a=n.declare(s,"template","const");n.reference(s,[t.path[t.path.length-1],e]),r.push(a)}else{const s={name:e.name,type:"Identifier",start:e.start,end:e.end},a=n.declare(s,"template","const");n.reference(s,[t.path[t.path.length-1],e]),r.push(a)}},Component:(e,t)=>{t.state.scope.reference(La(e.name),t.path),m(e,t)},SvelteSelf:m,SvelteComponent:m,AssignmentExpression(e,{state:t,next:n}){c.push([t.scope,e.left]),n()},UpdateExpression(e,{state:t,next:n}){c.push([t.scope,e.argument]),n()},ImportDeclaration(e,{state:t}){for(const n of e.specifiers)t.scope.declare(n.local,"normal","import",e)},FunctionExpression(e,{state:t,next:n}){const r=t.scope.child();a.set(e,r),e.id&&r.declare(e.id,"normal","function"),p(r,e.params),n({scope:r})},FunctionDeclaration(e,{state:t,next:n}){e.id&&t.scope.declare(e.id,"normal","function",e);const r=t.scope.child();a.set(e,r),p(r,e.params),n({scope:r})},ArrowFunctionExpression(e,{state:t,next:n}){const r=t.scope.child();a.set(e,r),p(r,e.params),n({scope:r})},ForStatement:d,ForInStatement:d,ForOfStatement:d,SwitchStatement:d,BlockStatement(e,t){const n=t.path.at(-1);"FunctionDeclaration"===n?.type||"FunctionExpression"===n?.type||"ArrowFunctionExpression"===n?.type?t.next():d(e,t)},ClassDeclaration(e,{state:t,next:n}){e.id&&t.scope.declare(e.id,"normal","let",e),n()},VariableDeclaration(e,{state:t,path:n,next:r}){const s="ConstTag"===n.at(-1)?.type;for(const n of e.declarations){const r=[];t.scope.declarators.set(n,r);for(const a of ki(n.id)){const i=t.scope.declare(a,s?"template":"normal",e.kind,n.init);r.push(i)}}r()},CatchClause(e,{state:t,next:n}){if(e.param){const r=t.scope.child(!0);a.set(e,r);for(const t of ki(e.param))r.declare(t,"normal","let");n({scope:r})}else n()},EachBlock(e,{state:n,visit:r}){r(e.expression);const s=n.scope.child();a.set(e,s);for(const n of ki(e.context)){const r=s.declare(n,"each","const");let a=!1,i=!1;t(e.context,null,{Identifier(e){a&&e===n&&(i=!0)},RestElement(e,{next:t}){const n=a;a=!0,t(),a=n}}),r.metadata={inside_rest:i}}if(r(e.context,{scope:s}),e.index){const t=e.key&&("Identifier"!==e.key.type||!e.index||e.key.name!==e.index);s.declare(La(e.index),t?"template":"normal","const",e)}e.key&&r(e.key,{scope:s});for(const t of e.body.nodes)r(t,{scope:s});e.fallback&&r(e.fallback,{scope:s});let i=!1;for(const[e]of s.declarations)null!==n.scope.get(e)&&(i=!0);e.metadata={expression:xo(),keyed:!1,contains_group_binding:!1,array_name:i?n.scope.root.unique("$$array"):null,index:s.root.unique("$$index"),declarations:s.declarations,is_controlled:!1}},AwaitBlock(e,t){if(t.visit(e.expression),e.pending&&t.visit(e.pending),e.then&&(t.visit(e.then),e.value)){const n=a.get(e.then),r=t.state.scope.child();a.set(e.value,r),t.visit(e.value,{scope:r});for(const t of ki(e.value))n.declare(t,"template","const"),r.declare(t,"normal","const")}if(e.catch&&(t.visit(e.catch),e.error)){const n=a.get(e.catch),r=t.state.scope.child();a.set(e.error,r),t.visit(e.error,{scope:r});for(const t of ki(e.error))n.declare(t,"template","const"),r.declare(t,"normal","const")}},SnippetBlock(e,t){const n=t.state,r=!t.path.at(-2);let i=n.scope;r&&(i=s),i.declare(e.expression,"normal","function",e);const o=n.scope.child();a.set(e,o);for(const t of e.parameters)for(const e of ki(t))o.declare(e,"snippet","let");t.next({scope:o})},Fragment:(e,t)=>{const n=t.state.scope.child(e.metadata.transparent);a.set(e,n),t.next({scope:n})},BindDirective(e,t){c.push([t.state.scope,e.expression]),t.next()},TransitionDirective:f,AnimateDirective:f,UseDirective:f,StyleDirective(e,{path:t,state:n,next:r}){!0===e.value&&n.scope.reference(La(e.name),t.concat(e)),r()}});for(const e of u){i.get(e.name)||i.declare(e,"legacy_reactive","let")}for(const[e,{node:t,path:n}]of l)e.reference(t,n);for(const[e,t]of c)for(const n of wi(t)){const t=vi(n),r=t&&e.get(t.name);null!==r&&t!==r.node&&(r.updated=!0,t===n?r.reassigned=!0:r.mutated=!0)}return{scope:i,scopes:a}}function Tl(e,{next:t,state:n}){const r=n.scopes.get(e);t(void 0!==r&&r!==n.scope?{...n,scope:r}:n)}function $l(e,t){if(!e)return null;if("CallExpression"!==e.type)return null;let n=e.callee,r="";for(;"MemberExpression"===n.type;){if(n.computed)return null;if("Identifier"!==n.property.type)return null;r="."+n.property.name+r,n=n.object}if("CallExpression"===n.type&&"Identifier"===n.callee.type&&(r="()"+r,n=n.callee),"Identifier"!==n.type)return null;if(r=n.name+r,!Nr(r))return null;return null!==t.get(n.name)?null:r}function Rl(e){const t=e.reduce(((e,t)=>{const[n,r]=t;return e.has(n)||e.set(n,[]),e.has(r)||e.set(r,[]),e.get(n).push(r),e}),new Map),n=new Set,r=new Set,s=[];function a(e){n.add(e),r.add(e),t.get(e)?.forEach((e=>{n.has(e)?r.has(e)&&s.push([...r,e]):a(e)})),r.delete(e)}return t.forEach(((e,t)=>{n.has(t)||a(t)})),s[0]}const Il=/^-((webkit)|(moz)|(o)|(ms))-/,ql=/^[\s,;}]$/;function Ll(e){return e.replace(Il,"")}const Ml=e=>"keyframes"===Ll(e.name),Ol={};function Nl(e,t){"Literal"===e.type?t.add(String(e.value)):"ConditionalExpression"===e.type?(Nl(e.consequent,t),Nl(e.alternate,t)):t.add(Ol)}function Dl(e){const t=new Set;return"Text"===e.type?t.add(e.data):Nl(e.expression,t),t.has(Ol)?null:t}function jl(e){const t=[];let n=e?.metadata.parent_rule;for(;n;)t.push(n),n=n.metadata.parent_rule;return t}function Bl(e){const t=e.selectors[0];return"PseudoClassSelector"===t.type&&"global"===t.name&&(null===t.args||e.selectors.every((e=>Fl(e)||"PseudoElementSelector"===e.type)))}function Fl(e){return"PseudoClassSelector"===e.type&&("has"!==e.name&&"is"!==e.name&&"where"!==e.name&&("not"!==e.name||null===e.args||e.args.children.every((e=>1===e.children.length)))||null===e.args||e.args.children.every((e=>e.children.every((e=>Bl(e))))))}function Vl(e){return"PseudoClassSelector"===e.type&&"global"===e.name&&null===e.args}const Hl={Atrule(e,t){Ml(e)&&(e.prelude.startsWith("-global-")||t.state.keyframes.push(e.prelude)),t.next()},ComplexSelector(e,t){t.next();{const t=e.children.find(Bl);if(t){const n=e.children.indexOf(t);if(null!==t.selectors[0].args&&0!==n&&n!==e.children.length-1)for(let r=n+1;r<e.children.length;r++)Bl(e.children[r])||ls(t.selectors[0])}}for(const t of e.children)for(let n=0;n<t.selectors.length;n++){const r=t.selectors[n];if("PseudoClassSelector"===r.type&&"global"===r.name){const s=r.args?.children[0].children[0];"TypeSelector"===s?.selectors[0].type&&0!==n&&us(r),"TypeSelector"===t.selectors[n+1]?.type&&ds(t.selectors[n+1]),null!==r.args&&r.args.children.length>1&&(e.children.length>1||t.selectors.length>1)&&cs(r)}}if(e.metadata.rule=t.state.rule,e.metadata.used||=e.children.every((({metadata:e})=>e.is_global||e.is_global_like)),e.metadata.rule?.metadata.parent_rule&&"NestingSelector"===e.children[0]?.selectors[0]?.type){const t=e.children[0]?.selectors[1],n="PseudoClassSelector"!==t?.type||Fl(t),r=e.metadata.rule.metadata.parent_rule.prelude.children.some((e=>1===e.children.length&&e.children[0].metadata.is_global));n&&r&&(e.metadata.used=!0)}},RelativeSelector(e,n){const r=n.path.at(-1);if(null==e.combinator||n.state.rule?.metadata.parent_rule||r.children[0]!==e||"PseudoClassSelector"===n.path.at(-3)?.type||ps(e.combinator),e.metadata.is_global=e.selectors.length>=1&&Bl(e),1===e.selectors.length){const t=e.selectors[0];e.metadata.is_global_like||="PseudoClassSelector"===t.type&&"host"===t.name||"PseudoElementSelector"===t.type&&["view-transition","view-transition-group","view-transition-old","view-transition-new","view-transition-image-pair"].includes(t.name)}if(e.metadata.is_global_like||=e.selectors.some((e=>"PseudoClassSelector"===e.type&&"root"===e.name))&&!e.selectors.some((e=>"PseudoClassSelector"===e.type&&"has"===e.name)),e.metadata.is_global_like||e.metadata.is_global)for(const n of e.selectors)t(n,null,{ComplexSelector(e,t){e.metadata.used=!0,t.next()}});n.next()},Rule(e,n){if(e.metadata.parent_rule=n.state.rule,e.metadata.is_global_block=e.prelude.children.some((e=>{let n=!1;for(const r of e.children){const e=r.selectors.findIndex(Vl);if(n&&(r.metadata.is_global_like=!0),-1!==e){n=!0;for(let n=e+1;n<r.selectors.length;n++)t(r.selectors[n],null,{ComplexSelector(e){e.metadata.used=!0}})}}return n})),e.metadata.is_global_block){e.prelude.children.length>1&&function(e){jr(e,"css_global_block_invalid_list","A `:global` selector cannot be part of a selector list with more than one item")}(e.prelude);const t=e.prelude.children[0].children.find(((t,n)=>{const r=t.selectors.findIndex(Vl);if(0===r)return t.selectors.length>1&&0===n&&null===e.metadata.parent_rule&&os(t.selectors[1]),!0;-1!==r&&function(e){jr(e,"css_global_block_invalid_modifier","A `:global` selector cannot modify an existing selector")}(t.selectors[r])}));if(!t)throw new Error("Internal error: global block without :global selector");t.combinator&&" "!==t.combinator.name&&function(e,t){jr(e,"css_global_block_invalid_combinator",`A \`:global\` selector cannot follow a \`${t}\` combinator`)}(t,t.combinator.name);const n=e.block.children.find((e=>"Declaration"===e.type));n&&1===e.prelude.children.length&&1===e.prelude.children[0].children.length&&1===e.prelude.children[0].children[0].selectors.length&&function(e){jr(e,"css_global_block_invalid_declaration","A top-level `:global {...}` block can only contain rules, not declarations")}(n)}n.next({...n.state,rule:e}),e.metadata.has_local_selectors=e.prelude.children.some((e=>e.children.some((({metadata:e})=>!e.is_global&&!e.is_global_like))))},NestingSelector(e,t){const n=t.state.rule,r=n.metadata.parent_rule;if(r)r.metadata.is_global_block&&!r.metadata.parent_rule&&1===r.prelude.children[0].children.length&&1===r.prelude.children[0].children[0].selectors.length&&os(e);else{const t=n.prelude.children,r=t[0].children[0].selectors;(t.length>1||r.length>1||"PseudoClassSelector"!==r[0].type||"global"!==r[0].name||r[0].args?.children[0]?.children[0].selectors[0]!==e)&&function(e){jr(e,"css_nesting_selector_invalid_placement","Nesting selectors can only be used inside a rule or as the first selector inside a lone `:global(...)`")}(e)}t.next()}};const Ul=0,zl=1,Wl=new Map([["details",["open"]],["dialog",["open"]]]),Gl={type:"Combinator",name:" ",start:-1,end:-1},Kl={type:"RelativeSelector",start:-1,end:-1,combinator:null,selectors:[{type:"NestingSelector",name:"&",start:-1,end:-1}],metadata:{is_global:!1,is_global_like:!1,scoped:!1}};function Xl(e,n){if("RenderTag"===n.type){const r=oc(n);if(!r)return;t(e,{element:r,from_render_tag:!0},Jl)}else t(e,{element:n,from_render_tag:!1},Jl)}const Jl={Rule(e,t){e.metadata.is_global_block?t.visit(e.prelude):t.next()},ComplexSelector(e,t){const n=Ql(e),r=n[n.length-1];if(t.state.from_render_tag){let s=t.state.element;for(;s;){const a=n.slice();for(;a.length>0;)if(a.pop(),Zl(a,e.metadata.rule,s,t.state))return ec(r,s),void(e.metadata.used=!0);s=oc(s)}}else Zl(n,e.metadata.rule,t.state.element,t.state)&&(ec(r,t.state.element),e.metadata.used=!0)}};function Ql(e){const n=Yl(e);if(e.metadata.rule?.metadata.parent_rule&&n.length>0){let e=!1;for(let r of n)if(t(r,{},{NestingSelector(){e=!0}}),e)break;e||(null===n[0].combinator&&(n[0]={...n[0],combinator:Gl}),n.unshift(Kl))}return n}function Yl(e){const t=e.children.findLastIndex((({metadata:e,selectors:t})=>{const n=t[0];return!(e.is_global_like||"PseudoClassSelector"===n.type&&"global"===n.name&&null===n.args||e.is_global)}));return e.children.slice(0,t+1).map((e=>!e.selectors.find((e=>"PseudoClassSelector"===e.type&&"root"===e.name))||e.metadata.is_global_like?e:{...e,selectors:e.selectors.filter((e=>"PseudoClassSelector"===e.type&&"has"===e.name))}))}function Zl(e,n,r,s){const a=e.slice(),i=a.pop();if(!i)return!1;const o=function(e,n,r,s){const a=[],i=[];for(const t of e.selectors)"PseudoClassSelector"===t.type&&"has"===t.name&&t.args?a.push(t):i.push(t);if(a.length>0){const e=[],s=[];let i;const o=[n,...jl(n)],l=o.some((e=>e.prelude.children.some((t=>t.children.some((t=>tc(t,e)))))))||o[o.length-1].prelude.children.some((e=>e.children.some((e=>e.selectors.some((e=>"PseudoClassSelector"===e.type&&"root"===e.name))))));l&&(e.push(r),s.push(r)),t(r.fragment,{is_child:!0},{_(t,n){"RegularElement"===t.type||"SvelteElement"===t.type?(s.push(t),n.state.is_child?(e.push(t),n.state.is_child=!1,n.next(),n.state.is_child=!0):n.next()):n.next()}});for(const t of a){const a=t.args.children;let o=!1;for(const t of a){const a=Yl(t),c=a[0]?.combinator??Gl;a.length>0&&(a[0]={...a[0],combinator:null});const u="+"===c.name||"~"===c.name?i??=rc(r,l):">"===c.name?e:s;let p=!1;for(const e of u)(0===a.length||e.metadata.scoped&&p||Zl(a,n,e))&&(t.metadata.used=!0,p=o=!0)}if(!o)return!1}}for(const s of i){if("Percentage"===s.type||"Nth"===s.type)continue;const a=s.name.replace(nc,"$1");switch(s.type){case"PseudoClassSelector":if("host"===a||"root"===a)return!1;if("global"===a&&null!==s.args&&1===e.selectors.length){return Zl(s.args.children[0].children,n,r)}if("global"===a&&null===s.args)return!0;if("not"===a&&s.args){for(const e of s.args.children){t(e,null,{ComplexSelector(e,t){e.metadata.used=!0,t.next()}});const n=Yl(e);if(e.children.length>1){for(const e of n)e.metadata.scoped=!0;let e=r;for(;e;)e.metadata.scoped=!0,e=oc(e)}}break}if(("is"===a||"where"===a)&&s.args){let e=!1;for(const t of s.args.children){const s=Yl(t);if(0===s.length)t.metadata.used=!0,e=!0;else if(Zl(s,n,r))t.metadata.used=!0,e=!0;else if(t.children.length>1&&("is"==a||"where"==a)){t.metadata.used=!0,e=!0;for(const e of s)e.metadata.scoped=!0}}if(!e)return!1}break;case"PseudoElementSelector":break;case"AttributeSelector":{const e=Wl.get(r.name.toLowerCase());if(!e?.includes(s.name.toLowerCase())&&!ac(r,s.name,s.value&&ic(s.value),s.matcher,s.flags?.includes("i")??!1))return!1;break}case"ClassSelector":if(!ac(r,"class",a,"~=",!1)&&!r.attributes.some((e=>"ClassDirective"===e.type&&e.name===a)))return!1;break;case"IdSelector":if(!ac(r,"id",a,"=",!1))return!1;break;case"TypeSelector":if(r.name.toLowerCase()!==a.toLowerCase()&&"*"!==a&&"SvelteElement"!==r.type)return!1;break;case"NestingSelector":{let e=!1;const t=n.metadata.parent_rule;for(const n of t.prelude.children)(Zl(Ql(n),t,r)||n.children.every((e=>tc(e,t))))&&(n.metadata.used=!0,e=!0);if(!e)return!1;break}}}return!0}(i,n,r);if(!o)return!1;if(i.combinator)return function(e,t,n,r,s,a){const i=e.name;switch(i){case" ":case">":{let e=!1,t=!1;const a=s.metadata.path;let o=a.length;for(;o--;){const s=a[o];if("Component"!==s.type&&"SvelteComponent"!==s.type||(t=!0),"SnippetBlock"===s.type)return!0;if(("RegularElement"===s.type||"SvelteElement"===s.type)&&(Zl(n,r,s)&&((" "===i||t)&&ec(n[n.length-1],s),e=!0),">"===i))return e}return e||n.every((e=>tc(e,r)))}case"+":case"~":{const e=function(e,t){const n=new Map,r=e.metadata.path;let s=e,a=r.length;for(;a--;){const e=r[a--];let i=e.nodes.indexOf(s);for(;i--;){const r=e.nodes[i];if("RegularElement"===r.type){if(!r.attributes.some((e=>"Attribute"===e.type&&"slot"===e.name.toLowerCase()))&&(n.set(r,zl),t))return n}else if(dc(r)){"SlotElement"===r.type&&n.set(r,Ul);const e=lc(r,t);if(uc(e,n),t&&cc(e))return n}else"RenderTag"!==r.type&&"SvelteElement"!==r.type||n.set(r,Ul)}if(s=r[a],!s||!dc(s))break;"EachBlock"===s.type&&e===s.body&&uc(lc(s,t),n)}return n}(s,"+"===i);let a=!1;for(const i of e.keys())"RenderTag"===i.type||"SlotElement"===i.type?1===n.length&&n[0].metadata.is_global&&(ec(t,s),a=!0):Zl(n,r,i)&&(ec(t,s),a=!0);return a||null===oc(s)&&n.every((e=>tc(e,r)))}default:return!0}}(i.combinator,i,a,n,r);const l=a[a.length-1];return l&&!tc(l,n)||ec(i,r),!0}function ec(e,t){(function(e){const t=e.selectors[0];return"PseudoClassSelector"===t.type&&"global"===t.name&&(null===t.args||e.selectors.every((e=>"PseudoClassSelector"===e.type||"PseudoElementSelector"===e.type)))})(e)||(e.metadata.scoped=!0),t.metadata.scoped=!0}function tc(e,t){if(e.metadata.is_global||e.metadata.is_global_like)return!0;for(const n of e.selectors){let e=null,r=t;"PseudoClassSelector"===n.type&&("is"!==n.name&&"where"!==n.name||!n.args||(e=n.args)),"NestingSelector"===n.type&&(r=t.metadata.parent_rule,e=r.prelude);const s=e?.children.some((e=>e.children.every((e=>tc(e,r)))));if(!s)return!1}return!0}const nc=/\\(.)/g;function rc(e,n){const r=e.metadata.path;let s=r.length,a=e,i=r[0].nodes;for(;s--;){const e=r[s];if("RegularElement"===e.type||"SvelteElement"===e.type){i=e.fragment.nodes;break}"Fragment"!==e.type&&(a=e)}const o=[];for(const e of i.slice(i.indexOf(a)+1))t(e,null,{RegularElement(e){o.push(e)},SvelteElement(e){o.push(e)}});return n&&o.push(e),o}function sc(e,t,n,r){switch(n&&(t=t.toLowerCase(),r=r.toLowerCase()),e){case"=":return r===t;case"~=":return r.split(/\s/).includes(t);case"|=":return`${r}-`.startsWith(`${t}-`);case"^=":return r.startsWith(t);case"$=":return r.endsWith(t);case"*=":return r.includes(t);default:throw new Error("this shouldn't happen")}}function ac(e,t,n,r,s){for(const a of e.attributes){if("SpreadAttribute"===a.type)return!0;if("BindDirective"===a.type&&a.name===t)return!0;if("Attribute"!==a.type)continue;if(a.name.toLowerCase()!==t.toLowerCase())continue;if(!0===a.value)return null===r;if(null===n)return!0;if(gi(a))return sc(r,n,s,a.value[0].data);const e=_i(a.value),o=new Set;let c=[];for(const t of e){const e=Dl(t);if(!e)return!0;if(c.length>0){const t=[],n=[];if(e.forEach((e=>{i.test(e)?t.push(e):n.push(e)})),n.length>0){t.length>0&&c.forEach((e=>o.add(e)));const e=[];c.forEach((t=>{n.forEach((n=>{e.push(t+n)}))})),c=e,t.forEach((e=>{l.test(e)?o.add(e):c.push(e)}));continue}c.forEach((e=>o.add(e))),c=[]}if(e.forEach((e=>{l.test(e)?o.add(e):c.push(e)})),c.length<e.size&&c.push(" "),c.length>20)return!0}c.forEach((e=>o.add(e)));for(const e of o)if(sc(r,n,s,e))return!0}return!1}function ic(e){return e[0]===e[e.length-1]&&"'"===e[0]||'"'===e[0]?e.slice(1,e.length-1):e}function oc(e){let t=e.metadata.path,n=t.length;for(;n--;){const e=t[n];if("RegularElement"===e.type||"SvelteElement"===e.type)return e}return null}function lc(e,t){let n=[];switch(e.type){case"EachBlock":n.push(e.body,e.fallback);break;case"IfBlock":n.push(e.consequent,e.alternate);break;case"AwaitBlock":n.push(e.pending,e.then,e.catch);break;case"KeyBlock":case"SlotElement":n.push(e.fragment)}const r=new Map;let s="SlotElement"!==e.type;for(const e of n){if(null==e){s=!1;continue}const n=pc(e.nodes,t);s&&=cc(n),uc(n,r)}if(!s)for(const e of r.keys())r.set(e,Ul);return r}function cc(e){if(0===e.size)return!1;for(const t of e.values())if(t===zl)return!0;return!1}function uc(e,t){e.forEach(((e,n)=>{var r,s;t.set(n,(r=e,s=t.get(n),void 0===r||void 0===s?r||s:r>s?r:s))}))}function pc(e,t){const n=new Map;let r=e.length;for(;r--;){const s=e[r];if("RegularElement"===s.type){if(n.set(s,zl),t)break}else if(dc(s)){const e=lc(s,t);if(uc(e,n),t&&cc(e))break}}return n}function dc(e){return"IfBlock"===e.type||"EachBlock"===e.type||"AwaitBlock"===e.type||"KeyBlock"===e.type||"SlotElement"===e.type}const hc={Atrule(e,t){Ml(e)||t.next()},PseudoClassSelector(e,t){"is"!==e.name&&"where"!==e.name||t.next()},ComplexSelector(e,t){if(!e.metadata.used&&("PseudoClassSelector"!==t.path.at(-2)?.type||t.path.at(-4)?.metadata.used)){const n=t.state.stylesheet.content;!function(e,t){Q(e,"css_unused_selector",`Unused CSS selector "${t}"`)}(e,n.styles.substring(e.start-n.start,e.end-n.start))}t.next()},Rule(e,t){e.metadata.is_global_block?t.visit(e.prelude):t.next()}};function mc(e,t){e.metadata={hoisted:!1,hoisted_params:[],scope:t.state.scope},t.next({...t.state,function_depth:t.state.function_depth+1})}function fc(e){let t=e.length;for(;t--;){const n=e[t];if("Fragment"===n.type){if(n.metadata.dynamic)return;n.metadata.dynamic=!0}}}const yc={hoisted:!1};function vc(e){return br(e=e.slice(2))&&(e=e.slice(0,-7)),e}const gc={currentTime:{valid_elements:["audio","video"],omit_in_ssr:!0,bidirectional:!0},duration:{valid_elements:["audio","video"],event:"durationchange",omit_in_ssr:!0},focused:{},paused:{valid_elements:["audio","video"],omit_in_ssr:!0,bidirectional:!0},buffered:{valid_elements:["audio","video"],omit_in_ssr:!0},seekable:{valid_elements:["audio","video"],omit_in_ssr:!0},played:{valid_elements:["audio","video"],omit_in_ssr:!0},volume:{valid_elements:["audio","video"],omit_in_ssr:!0,bidirectional:!0},muted:{valid_elements:["audio","video"],omit_in_ssr:!0,bidirectional:!0},playbackRate:{valid_elements:["audio","video"],omit_in_ssr:!0,bidirectional:!0},seeking:{valid_elements:["audio","video"],omit_in_ssr:!0},ended:{valid_elements:["audio","video"],omit_in_ssr:!0},readyState:{valid_elements:["audio","video"],omit_in_ssr:!0},videoHeight:{valid_elements:["video"],event:"resize",omit_in_ssr:!0},videoWidth:{valid_elements:["video"],event:"resize",omit_in_ssr:!0},naturalWidth:{valid_elements:["img"],event:"load",omit_in_ssr:!0},naturalHeight:{valid_elements:["img"],event:"load",omit_in_ssr:!0},activeElement:{valid_elements:["svelte:document"],omit_in_ssr:!0},fullscreenElement:{valid_elements:["svelte:document"],event:"fullscreenchange",omit_in_ssr:!0},pointerLockElement:{valid_elements:["svelte:document"],event:"pointerlockchange",omit_in_ssr:!0},visibilityState:{valid_elements:["svelte:document"],event:"visibilitychange",omit_in_ssr:!0},innerWidth:{valid_elements:["svelte:window"],omit_in_ssr:!0},innerHeight:{valid_elements:["svelte:window"],omit_in_ssr:!0},outerWidth:{valid_elements:["svelte:window"],omit_in_ssr:!0},outerHeight:{valid_elements:["svelte:window"],omit_in_ssr:!0},scrollX:{valid_elements:["svelte:window"],omit_in_ssr:!0,bidirectional:!0},scrollY:{valid_elements:["svelte:window"],omit_in_ssr:!0,bidirectional:!0},online:{valid_elements:["svelte:window"],omit_in_ssr:!0},devicePixelRatio:{valid_elements:["svelte:window"],event:"resize",omit_in_ssr:!0},clientWidth:{omit_in_ssr:!0,invalid_elements:["svelte:window","svelte:document"]},clientHeight:{omit_in_ssr:!0,invalid_elements:["svelte:window","svelte:document"]},offsetWidth:{omit_in_ssr:!0,invalid_elements:["svelte:window","svelte:document"]},offsetHeight:{omit_in_ssr:!0,invalid_elements:["svelte:window","svelte:document"]},contentRect:{omit_in_ssr:!0,invalid_elements:["svelte:window","svelte:document"]},contentBoxSize:{omit_in_ssr:!0,invalid_elements:["svelte:window","svelte:document"]},borderBoxSize:{omit_in_ssr:!0,invalid_elements:["svelte:window","svelte:document"]},devicePixelContentBoxSize:{omit_in_ssr:!0,invalid_elements:["svelte:window","svelte:document"]},indeterminate:{event:"change",bidirectional:!0,valid_elements:["input"],omit_in_ssr:!0},checked:{valid_elements:["input"],bidirectional:!0},group:{valid_elements:["input"],bidirectional:!0},this:{omit_in_ssr:!0},innerText:{invalid_elements:["svelte:window","svelte:document"],bidirectional:!0},innerHTML:{invalid_elements:["svelte:window","svelte:document"],bidirectional:!0},textContent:{invalid_elements:["svelte:window","svelte:document"],bidirectional:!0},open:{event:"toggle",bidirectional:!0,valid_elements:["details"]},value:{valid_elements:["input","textarea","select"],bidirectional:!0},files:{valid_elements:["input"],omit_in_ssr:!0,bidirectional:!0}};function bc(e){!e.name.includes(":")||e.name.startsWith("xmlns:")||e.name.startsWith("xlink:")||e.name.startsWith("xml:")||Q(e,"attribute_illegal_colon","Attributes should not contain ':' characters to prevent ambiguity with Svelte directives")}function xc(e,t){if(Array.isArray(e.value)&&1===e.value.length&&"ExpressionTag"===e.value[0].type&&("Component"===t.type||"SvelteComponent"===t.type||"SvelteSelf"===t.type||"RegularElement"===t.type&&go(t))&&Q(e,"attribute_quoted","Quoted attributes on components and custom elements will be stringified in a future version of Svelte. If this isn't what you want, remove the quotes"),!0===e.value||!Array.isArray(e.value)||1===e.value.length)return;e.value.at(-1)?.end!==e.end||function(e){jr(e,"attribute_unquoted_sequence","Attribute values containing `{...}` must be enclosed in quote marks, unless the value only contains the expression")}(e)}function _c(e,t,n=!1){const r=e.path.at(-2);let s;if("SnippetBlock"===r?.type)return void(gi(t)||Vs(t));let a=e.path.length;for(;a--;){const t=e.path[a];!s&&("Component"===t.type||"SvelteComponent"===t.type||"SvelteSelf"===t.type||"SvelteElement"===t.type||"RegularElement"===t.type&&go(t))&&(s=t)}if(s){if(gi(t)||Vs(t),"Component"===s.type||"SvelteComponent"===s.type||"SvelteSelf"===s.type){s!==r&&Hs(t);const n=t.value[0].data;if(e.state.component_slots.has(n)&&function(e,t,n){jr(e,"slot_attribute_duplicate",`Duplicate slot name '${t}' in <${n}>`)}(t,n,s.name),e.state.component_slots.add(n),"default"===n)for(const e of s.fragment.nodes)"Text"===e.type&&d.test(e.data)||("RegularElement"!==e.type&&"SvelteFragment"!==e.type||!e.attributes.some((e=>"Attribute"===e.type&&"slot"===e.name)))&&Us(e)}}else n||Hs(t)}function Cc(e,t){fc(t.path);for(const n of e.attributes){if("Attribute"!==n.type&&"SpreadAttribute"!==n.type&&"LetDirective"!==n.type&&"OnDirective"!==n.type&&"BindDirective"!==n.type&&Ss(n),"OnDirective"===n.type&&(n.modifiers.length>1||n.modifiers.some((e=>"once"!==e)))&&$s(n),"Attribute"===n.type){if(t.state.analysis.runes&&(xc(n,e),bi(n))){const e=xi(n);if("SequenceExpression"===e.type){let n=e.start;for(;--n>0;){const r=t.state.analysis.source[n];if("("===r)break;"{"===r&&bs(e)}}}bc(n),"slot"===n.name&&_c(t,n,!0)}"BindDirective"===n.type&&"this"!==n.name&&(t.state.analysis.uses_component_bindings=!0)}const n=vl(e)?t.state:{...t.state,scope:e.metadata.scopes.default};for(const r of e.attributes)t.visit(r,"LetDirective"===r.type?n:t.state);let r=[];const s={default:[]};for(const t of e.fragment.nodes){if("Comment"===t.type){r.push(t);continue}const e=vl(t)??"default";(s[e]??=[]).push(...r,t),"default"!==e&&(r=[])}const a=new Set;for(const n in s){const r={...t.state,scope:e.metadata.scopes[n],parent_element:null,component_slots:a};t.visit({...e.fragment,nodes:s[n]},r)}}function wc(e){return ka("$.get",e)}function kc(e){for(const[t,n]of e.state.scope.declarations)(Pc(n,e.state.analysis)||"derived"===n.kind||"legacy_reactive"===n.kind)&&(e.state.transform[t]={read:"var"===n.declaration_kind?e=>ka("$.safe_get",e):wc,assign:(t,n)=>{let r=ka("$.set",t,n);return"store_sub"===e.state.scope.get(`$${t.name}`)?.kind&&(r=ka("$.store_unsub",r,Na(`$${t.name}`),La("$$stores"))),r},mutate:(t,n)=>e.state.analysis.runes?n:ka("$.mutate",t,n),update:e=>ka(e.prefix?"$.update_pre":"$.update",e.argument,"--"===e.operator&&Na(-1))})}function Pc(e,t){return("state"===e.kind||"raw_state"===e.kind)&&(!t.immutable||e.reassigned||t.accessors)}function Sc(e,t){if(Object.hasOwn(t.transform,e.name)){const n=t.scope.get(e.name);if(e!==n?.node)return t.transform[e.name].read(e)}return e}function Ec(e,t){return D?ka("$.proxy",e,ri,t):ka("$.proxy",e)}function Ac(e,t){const n=function(e,t){const n=t.state.scope,r=[];function s(e){r.find((t=>t.name===e.name))||r.push(e)}for(const[r]of n.references){let a=n.get(r);if(null!==a&&!n.declarations.has(r)&&a.initial!==e){"store_sub"===a.kind&&(s(La(a.node.name)),a=n.get(a.node.name.slice(1)));let e=t.state.transform[r]?.read(La(a.node.name));null!=e&&"function"!=typeof e&&"MemberExpression"===e.type&&"CallExpression"===e.object.type&&"Identifier"===e.object.callee.type&&"$.get"===e.object.callee.name&&"Identifier"===e.object.arguments[0].type?s(La(e.object.arguments[0].name)):"prop"!==a.kind&&"bindable_prop"!==a.kind||$c(a,t.state)?"import"!==a.declaration_kind&&(s(La(a.node.name)),"rest_prop"===a.kind&&t.state.analysis.runes&&s(La("$$props"))):s(La("$$props"))}}return r}(e,t);e.metadata.hoisted_params=n;const r=[];if(0===e.params.length)n.length>0&&r.push(La(t.state.scope.generate("_")));else for(const n of e.params)r.push(t.visit(n));return r.push(...n),r}function Tc(e,t,n,r){const s=[La("$$props"),Na(n)];let a,i=0;return"bindable_prop"===e.kind&&(i|=C),t.analysis.immutable&&(i|=b),t.analysis.runes&&(i|=x),(t.analysis.accessors||(t.analysis.immutable?e.reassigned||t.analysis.runes&&e.mutated:e.updated))&&(i|=_),r&&(Ti(r)?a=r:(a="CallExpression"===r.type&&"Identifier"===r.callee.type&&0===r.arguments.length?r.callee:Qa(r),i|=w)),(i||a)&&(s.push(Na(i)),a&&s.push(a)),ka("$.prop",...s)}function $c(e,t){return("prop"===e.kind||"bindable_prop"===e.kind)&&(!t.analysis.runes||t.analysis.accessors||e.reassigned||e.initial||e.updated)}function Rc(e,t){if(!e||"Literal"===e.type||"TemplateLiteral"===e.type||"ArrowFunctionExpression"===e.type||"FunctionExpression"===e.type||"UnaryExpression"===e.type||"BinaryExpression"===e.type||"Identifier"===e.type&&"undefined"===e.name)return!1;if("Identifier"===e.type&&null!==t){const n=t.get(e.name);if(null!==n&&!n.reassigned&&null!==n.initial&&"FunctionDeclaration"!==n.initial.type&&"ClassDeclaration"!==n.initial.type&&"ImportDeclaration"!==n.initial.type&&"EachBlock"!==n.initial.type&&"SnippetBlock"!==n.initial.type)return Rc(n.initial,null)}return!0}function Ic(e,t){if("Identifier"===e.type)return t.state.transform[e.name]={read:wc},{id:e,declarations:null};const n=t.visit(e),r=ki(e),s=La("$$source"),a=La("$$value"),i=wa([li(n,ka("$.get",s)),mi(Ba(r.map((e=>Va("init",e,e)))))]),o=[li(a,qc(t.state,Qa(i)))];for(const e of r)t.state.transform[e.name]={read:wc},o.push(li(e,qc(t.state,Qa(Da(ka("$.get",a),e)))));return{id:s,declarations:o}}function qc(e,t){return ka(e.analysis.runes?"$.derived":"$.derived_safe_equal",t)}var Lc,Mc,Oc,Nc={},Dc={},jc={},Bc={};function Fc(){if(Mc)return jc;Mc=1,Object.defineProperty(jc,"__esModule",{value:!0}),jc.default=function(n,r){"function"==typeof Symbol&&"symbol"===t(Symbol.iterator)&&Object.defineProperty(n,Symbol.iterator,{value:e.default.bind(r)});return n};var e=function(e){return e&&e.__esModule?e:{default:e}}((Lc||(Lc=1,Object.defineProperty(Bc,"__esModule",{value:!0}),Bc.default=void 0,Bc.default=function(){var e=this,t=0,n={"@@iterator":function(){return n},next:function(){if(t<e.length){var n=e[t];return t+=1,{done:!1,value:n}}return{done:!0}}};return n}),Bc));function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}return jc}function Vc(){if(Oc)return Dc;Oc=1,Object.defineProperty(Dc,"__esModule",{value:!0}),Dc.default=void 0;var e=function(e){return e&&e.__esModule?e:{default:e}}(Fc());function t(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,s,a,i,o=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(o.push(r.value),o.length!==t);l=!0);}catch(e){c=!0,s=e}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw s}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return n(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var r=[["aria-activedescendant",{type:"id"}],["aria-atomic",{type:"boolean"}],["aria-autocomplete",{type:"token",values:["inline","list","both","none"]}],["aria-braillelabel",{type:"string"}],["aria-brailleroledescription",{type:"string"}],["aria-busy",{type:"boolean"}],["aria-checked",{type:"tristate"}],["aria-colcount",{type:"integer"}],["aria-colindex",{type:"integer"}],["aria-colspan",{type:"integer"}],["aria-controls",{type:"idlist"}],["aria-current",{type:"token",values:["page","step","location","date","time",!0,!1]}],["aria-describedby",{type:"idlist"}],["aria-description",{type:"string"}],["aria-details",{type:"id"}],["aria-disabled",{type:"boolean"}],["aria-dropeffect",{type:"tokenlist",values:["copy","execute","link","move","none","popup"]}],["aria-errormessage",{type:"id"}],["aria-expanded",{type:"boolean",allowundefined:!0}],["aria-flowto",{type:"idlist"}],["aria-grabbed",{type:"boolean",allowundefined:!0}],["aria-haspopup",{type:"token",values:[!1,!0,"menu","listbox","tree","grid","dialog"]}],["aria-hidden",{type:"boolean",allowundefined:!0}],["aria-invalid",{type:"token",values:["grammar",!1,"spelling",!0]}],["aria-keyshortcuts",{type:"string"}],["aria-label",{type:"string"}],["aria-labelledby",{type:"idlist"}],["aria-level",{type:"integer"}],["aria-live",{type:"token",values:["assertive","off","polite"]}],["aria-modal",{type:"boolean"}],["aria-multiline",{type:"boolean"}],["aria-multiselectable",{type:"boolean"}],["aria-orientation",{type:"token",values:["vertical","undefined","horizontal"]}],["aria-owns",{type:"idlist"}],["aria-placeholder",{type:"string"}],["aria-posinset",{type:"integer"}],["aria-pressed",{type:"tristate"}],["aria-readonly",{type:"boolean"}],["aria-relevant",{type:"tokenlist",values:["additions","all","removals","text"]}],["aria-required",{type:"boolean"}],["aria-roledescription",{type:"string"}],["aria-rowcount",{type:"integer"}],["aria-rowindex",{type:"integer"}],["aria-rowspan",{type:"integer"}],["aria-selected",{type:"boolean",allowundefined:!0}],["aria-setsize",{type:"integer"}],["aria-sort",{type:"token",values:["ascending","descending","none","other"]}],["aria-valuemax",{type:"number"}],["aria-valuemin",{type:"number"}],["aria-valuenow",{type:"number"}],["aria-valuetext",{type:"string"}]],s={entries:function(){return r},forEach:function(e){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,s=0,a=r;s<a.length;s++){var i=t(a[s],2),o=i[0],l=i[1];e.call(n,l,o,r)}},get:function(e){var t=r.find((function(t){return t[0]===e}));return t&&t[1]},has:function(e){return!!s.get(e)},keys:function(){return r.map((function(e){return t(e,1)[0]}))},values:function(){return r.map((function(e){return t(e,2)[1]}))}};return Dc.default=(0,e.default)(s,s.entries()),Dc}var Hc,Uc={};function zc(){if(Hc)return Uc;Hc=1,Object.defineProperty(Uc,"__esModule",{value:!0}),Uc.default=void 0;var e=function(e){return e&&e.__esModule?e:{default:e}}(Fc());function t(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,s,a,i,o=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(o.push(r.value),o.length!==t);l=!0);}catch(e){c=!0,s=e}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw s}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return n(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var r=[["a",{reserved:!1}],["abbr",{reserved:!1}],["acronym",{reserved:!1}],["address",{reserved:!1}],["applet",{reserved:!1}],["area",{reserved:!1}],["article",{reserved:!1}],["aside",{reserved:!1}],["audio",{reserved:!1}],["b",{reserved:!1}],["base",{reserved:!0}],["bdi",{reserved:!1}],["bdo",{reserved:!1}],["big",{reserved:!1}],["blink",{reserved:!1}],["blockquote",{reserved:!1}],["body",{reserved:!1}],["br",{reserved:!1}],["button",{reserved:!1}],["canvas",{reserved:!1}],["caption",{reserved:!1}],["center",{reserved:!1}],["cite",{reserved:!1}],["code",{reserved:!1}],["col",{reserved:!0}],["colgroup",{reserved:!0}],["content",{reserved:!1}],["data",{reserved:!1}],["datalist",{reserved:!1}],["dd",{reserved:!1}],["del",{reserved:!1}],["details",{reserved:!1}],["dfn",{reserved:!1}],["dialog",{reserved:!1}],["dir",{reserved:!1}],["div",{reserved:!1}],["dl",{reserved:!1}],["dt",{reserved:!1}],["em",{reserved:!1}],["embed",{reserved:!1}],["fieldset",{reserved:!1}],["figcaption",{reserved:!1}],["figure",{reserved:!1}],["font",{reserved:!1}],["footer",{reserved:!1}],["form",{reserved:!1}],["frame",{reserved:!1}],["frameset",{reserved:!1}],["h1",{reserved:!1}],["h2",{reserved:!1}],["h3",{reserved:!1}],["h4",{reserved:!1}],["h5",{reserved:!1}],["h6",{reserved:!1}],["head",{reserved:!0}],["header",{reserved:!1}],["hgroup",{reserved:!1}],["hr",{reserved:!1}],["html",{reserved:!0}],["i",{reserved:!1}],["iframe",{reserved:!1}],["img",{reserved:!1}],["input",{reserved:!1}],["ins",{reserved:!1}],["kbd",{reserved:!1}],["keygen",{reserved:!1}],["label",{reserved:!1}],["legend",{reserved:!1}],["li",{reserved:!1}],["link",{reserved:!0}],["main",{reserved:!1}],["map",{reserved:!1}],["mark",{reserved:!1}],["marquee",{reserved:!1}],["menu",{reserved:!1}],["menuitem",{reserved:!1}],["meta",{reserved:!0}],["meter",{reserved:!1}],["nav",{reserved:!1}],["noembed",{reserved:!0}],["noscript",{reserved:!0}],["object",{reserved:!1}],["ol",{reserved:!1}],["optgroup",{reserved:!1}],["option",{reserved:!1}],["output",{reserved:!1}],["p",{reserved:!1}],["param",{reserved:!0}],["picture",{reserved:!0}],["pre",{reserved:!1}],["progress",{reserved:!1}],["q",{reserved:!1}],["rp",{reserved:!1}],["rt",{reserved:!1}],["rtc",{reserved:!1}],["ruby",{reserved:!1}],["s",{reserved:!1}],["samp",{reserved:!1}],["script",{reserved:!0}],["section",{reserved:!1}],["select",{reserved:!1}],["small",{reserved:!1}],["source",{reserved:!0}],["spacer",{reserved:!1}],["span",{reserved:!1}],["strike",{reserved:!1}],["strong",{reserved:!1}],["style",{reserved:!0}],["sub",{reserved:!1}],["summary",{reserved:!1}],["sup",{reserved:!1}],["table",{reserved:!1}],["tbody",{reserved:!1}],["td",{reserved:!1}],["textarea",{reserved:!1}],["tfoot",{reserved:!1}],["th",{reserved:!1}],["thead",{reserved:!1}],["time",{reserved:!1}],["title",{reserved:!0}],["tr",{reserved:!1}],["track",{reserved:!0}],["tt",{reserved:!1}],["u",{reserved:!1}],["ul",{reserved:!1}],["var",{reserved:!1}],["video",{reserved:!1}],["wbr",{reserved:!1}],["xmp",{reserved:!1}]],s={entries:function(){return r},forEach:function(e){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,s=0,a=r;s<a.length;s++){var i=t(a[s],2),o=i[0],l=i[1];e.call(n,l,o,r)}},get:function(e){var t=r.find((function(t){return t[0]===e}));return t&&t[1]},has:function(e){return!!s.get(e)},keys:function(){return r.map((function(e){return t(e,1)[0]}))},values:function(){return r.map((function(e){return t(e,2)[1]}))}};return Uc.default=(0,e.default)(s,s.entries()),Uc}var Wc,Gc={},Kc={},Xc={};var Jc,Qc={};var Yc,Zc={};var eu,tu={};var nu,ru={};var su,au={};var iu,ou={};var lu,cu={};var uu,pu={};var du,hu={};var mu,fu={};var yu,vu,gu={};function bu(){if(vu)return Kc;vu=1,Object.defineProperty(Kc,"__esModule",{value:!0}),Kc.default=void 0;var e=d((Wc||(Wc=1,Object.defineProperty(Xc,"__esModule",{value:!0}),Xc.default=void 0,Xc.default={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget"]]}),Xc)),t=d((Jc||(Jc=1,Object.defineProperty(Qc,"__esModule",{value:!0}),Qc.default=void 0,Qc.default={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-activedescendant":null,"aria-disabled":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget"]]}),Qc)),n=d((Yc||(Yc=1,Object.defineProperty(Zc,"__esModule",{value:!0}),Zc.default=void 0,Zc.default={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null},relatedConcepts:[{concept:{name:"input"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget"]]}),Zc)),r=d((eu||(eu=1,Object.defineProperty(tu,"__esModule",{value:!0}),tu.default=void 0,tu.default={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]}),tu)),s=d((nu||(nu=1,Object.defineProperty(ru,"__esModule",{value:!0}),ru.default=void 0,ru.default={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]}),ru)),a=d((su||(su=1,Object.defineProperty(au,"__esModule",{value:!0}),au.default=void 0,au.default={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{"aria-atomic":null,"aria-busy":null,"aria-controls":null,"aria-current":null,"aria-describedby":null,"aria-details":null,"aria-dropeffect":null,"aria-flowto":null,"aria-grabbed":null,"aria-hidden":null,"aria-keyshortcuts":null,"aria-label":null,"aria-labelledby":null,"aria-live":null,"aria-owns":null,"aria-relevant":null,"aria-roledescription":null},relatedConcepts:[{concept:{name:"role"},module:"XHTML"},{concept:{name:"type"},module:"Dublin Core"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[]}),au)),i=d((iu||(iu=1,Object.defineProperty(ou,"__esModule",{value:!0}),ou.default=void 0,ou.default={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"frontmatter"},module:"DTB"},{concept:{name:"level"},module:"DTB"},{concept:{name:"level"},module:"SMIL"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]}),ou)),o=d((lu||(lu=1,Object.defineProperty(cu,"__esModule",{value:!0}),cu.default=void 0,cu.default={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]}),cu)),l=d((uu||(uu=1,Object.defineProperty(pu,"__esModule",{value:!0}),pu.default=void 0,pu.default={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-orientation":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","composite"],["roletype","structure","section","group"]]}),pu)),c=d((du||(du=1,Object.defineProperty(hu,"__esModule",{value:!0}),hu.default=void 0,hu.default={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype"]]}),hu)),u=d((mu||(mu=1,Object.defineProperty(fu,"__esModule",{value:!0}),fu.default=void 0,fu.default={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype"]]}),fu)),p=d((yu||(yu=1,Object.defineProperty(gu,"__esModule",{value:!0}),gu.default=void 0,gu.default={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-modal":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype"]]}),gu));function d(e){return e&&e.__esModule?e:{default:e}}var h=[["command",e.default],["composite",t.default],["input",n.default],["landmark",r.default],["range",s.default],["roletype",a.default],["section",i.default],["sectionhead",o.default],["select",l.default],["structure",c.default],["widget",u.default],["window",p.default]];return Kc.default=h,Kc}var xu,_u={},Cu={};var wu,ku={};var Pu,Su={};var Eu,Au={};var Tu,$u={};var Ru,Iu={};var qu,Lu={};var Mu,Ou={};var Nu,Du={};var ju,Bu={};var Fu,Vu={};var Hu,Uu={};var zu,Wu={};var Gu,Ku={};var Xu,Ju={};var Qu,Yu={};var Zu,ep={};var tp,np={};var rp,sp={};var ap,ip={};var op,lp={};var cp,up={};var pp,dp={};var hp,mp={};var fp,yp={};var vp,gp={};var bp,xp={};var _p,Cp={};var wp,kp={};var Pp,Sp={};var Ep,Ap={};var Tp,$p={};var Rp,Ip={};var qp,Lp={};var Mp,Op={};var Np,Dp={};var jp,Bp={};var Fp,Vp={};var Hp,Up={};var zp,Wp={};var Gp,Kp={};var Xp,Jp={};var Qp,Yp={};var Zp,ed={};var td,nd={};var rd,sd={};var ad,id={};var od,ld={};var cd,ud={};var pd,dd={};var hd,md={};var fd,yd={};var vd,gd={};var bd,xd={};var _d,Cd={};var wd,kd={};var Pd,Sd={};var Ed,Ad={};var Td,$d={};var Rd,Id={};var qd,Ld={};var Md,Od={};var Nd,Dd={};var jd,Bd={};var Fd,Vd={};var Hd,Ud={};var zd,Wd={};var Gd,Kd={};var Xd,Jd={};var Qd,Yd={};var Zd,eh={};var th,nh={};var rh,sh={};var ah,ih={};var oh,lh={};var ch,uh={};var ph,dh={};var hh,mh={};var fh,yh={};var vh,gh={};var bh,xh={};var _h,Ch={};var wh,kh,Ph={};function Sh(){if(kh)return _u;kh=1,Object.defineProperty(_u,"__esModule",{value:!0}),_u.default=void 0;var e=Te((xu||(xu=1,Object.defineProperty(Cu,"__esModule",{value:!0}),Cu.default=void 0,Cu.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-atomic":"true","aria-live":"assertive"},relatedConcepts:[{concept:{name:"alert"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]}),Cu)),t=Te((wu||(wu=1,Object.defineProperty(ku,"__esModule",{value:!0}),ku.default=void 0,ku.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"alert"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","alert"],["roletype","window","dialog"]]}),ku)),n=Te((Pu||(Pu=1,Object.defineProperty(Su,"__esModule",{value:!0}),Su.default=void 0,Su.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-activedescendant":null,"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"Device Independence Delivery Unit"}}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]}),Su)),r=Te((Eu||(Eu=1,Object.defineProperty(Au,"__esModule",{value:!0}),Au.default=void 0,Au.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-posinset":null,"aria-setsize":null},relatedConcepts:[{concept:{name:"article"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","document"]]}),Au)),s=Te((Tu||(Tu=1,Object.defineProperty($u,"__esModule",{value:!0}),$u.default=void 0,$u.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{constraints:["scoped to the body element"],name:"header"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]}),$u)),a=Te((Ru||(Ru=1,Object.defineProperty(Iu,"__esModule",{value:!0}),Iu.default=void 0,Iu.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"blockquote"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]}),Iu)),i=Te((qu||(qu=1,Object.defineProperty(Lu,"__esModule",{value:!0}),Lu.default=void 0,Lu.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-disabled":null,"aria-expanded":null,"aria-haspopup":null,"aria-pressed":null},relatedConcepts:[{concept:{attributes:[{name:"type",value:"button"}],name:"input"},module:"HTML"},{concept:{attributes:[{name:"type",value:"image"}],name:"input"},module:"HTML"},{concept:{attributes:[{name:"type",value:"reset"}],name:"input"},module:"HTML"},{concept:{attributes:[{name:"type",value:"submit"}],name:"input"},module:"HTML"},{concept:{name:"button"},module:"HTML"},{concept:{name:"trigger"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command"]]}),Lu)),o=Te((Mu||(Mu=1,Object.defineProperty(Ou,"__esModule",{value:!0}),Ou.default=void 0,Ou.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"caption"},module:"HTML"}],requireContextRole:["figure","grid","table"],requiredContextRole:["figure","grid","table"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]}),Ou)),l=Te((Nu||(Nu=1,Object.defineProperty(Du,"__esModule",{value:!0}),Du.default=void 0,Du.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-colindex":null,"aria-colspan":null,"aria-rowindex":null,"aria-rowspan":null},relatedConcepts:[{concept:{constraints:["ancestor table element has table role"],name:"td"},module:"HTML"}],requireContextRole:["row"],requiredContextRole:["row"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]}),Du)),c=Te((ju||(ju=1,Object.defineProperty(Bu,"__esModule",{value:!0}),Bu.default=void 0,Bu.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-checked":null,"aria-errormessage":null,"aria-expanded":null,"aria-invalid":null,"aria-readonly":null,"aria-required":null},relatedConcepts:[{concept:{attributes:[{name:"type",value:"checkbox"}],name:"input"},module:"HTML"},{concept:{name:"option"},module:"ARIA"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-checked":null},superClass:[["roletype","widget","input"]]}),Bu)),u=Te((Fu||(Fu=1,Object.defineProperty(Vu,"__esModule",{value:!0}),Vu.default=void 0,Vu.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"code"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]}),Vu)),p=Te((Hu||(Hu=1,Object.defineProperty(Uu,"__esModule",{value:!0}),Uu.default=void 0,Uu.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-sort":null},relatedConcepts:[{concept:{name:"th"},module:"HTML"},{concept:{attributes:[{name:"scope",value:"col"}],name:"th"},module:"HTML"},{concept:{attributes:[{name:"scope",value:"colgroup"}],name:"th"},module:"HTML"}],requireContextRole:["row"],requiredContextRole:["row"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","cell"],["roletype","structure","section","cell","gridcell"],["roletype","widget","gridcell"],["roletype","structure","sectionhead"]]}),Uu)),d=Te((zu||(zu=1,Object.defineProperty(Wu,"__esModule",{value:!0}),Wu.default=void 0,Wu.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-activedescendant":null,"aria-autocomplete":null,"aria-errormessage":null,"aria-invalid":null,"aria-readonly":null,"aria-required":null,"aria-expanded":"false","aria-haspopup":"listbox"},relatedConcepts:[{concept:{attributes:[{constraints:["set"],name:"list"},{name:"type",value:"email"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"list"},{name:"type",value:"search"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"list"},{name:"type",value:"tel"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"list"},{name:"type",value:"text"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"list"},{name:"type",value:"url"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"list"},{name:"type",value:"url"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["undefined"],name:"multiple"},{constraints:["undefined"],name:"size"}],constraints:["the multiple attribute is not set and the size attribute does not have a value greater than 1"],name:"select"},module:"HTML"},{concept:{name:"select"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-controls":null,"aria-expanded":"false"},superClass:[["roletype","widget","input"]]}),Wu)),h=Te((Gu||(Gu=1,Object.defineProperty(Ku,"__esModule",{value:!0}),Ku.default=void 0,Ku.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{constraints:["scoped to the body element","scoped to the main element"],name:"aside"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"aria-label"}],constraints:["scoped to a sectioning content element","scoped to a sectioning root element other than body"],name:"aside"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"aria-labelledby"}],constraints:["scoped to a sectioning content element","scoped to a sectioning root element other than body"],name:"aside"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]}),Ku)),m=Te((Xu||(Xu=1,Object.defineProperty(Ju,"__esModule",{value:!0}),Ju.default=void 0,Ju.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{constraints:["scoped to the body element"],name:"footer"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]}),Ju)),f=Te((Qu||(Qu=1,Object.defineProperty(Yu,"__esModule",{value:!0}),Yu.default=void 0,Yu.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"dd"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]}),Yu)),y=Te((Zu||(Zu=1,Object.defineProperty(ep,"__esModule",{value:!0}),ep.default=void 0,ep.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"del"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]}),ep)),v=Te((tp||(tp=1,Object.defineProperty(np,"__esModule",{value:!0}),np.default=void 0,np.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"dialog"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","window"]]}),np)),g=Te((rp||(rp=1,Object.defineProperty(sp,"__esModule",{value:!0}),sp.default=void 0,sp.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{module:"DAISY Guide"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","list"]]}),sp)),b=Te((ap||(ap=1,Object.defineProperty(ip,"__esModule",{value:!0}),ip.default=void 0,ip.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"Device Independence Delivery Unit"}},{concept:{name:"html"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]}),ip)),x=Te((op||(op=1,Object.defineProperty(lp,"__esModule",{value:!0}),lp.default=void 0,lp.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"em"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]}),lp)),_=Te((cp||(cp=1,Object.defineProperty(up,"__esModule",{value:!0}),up.default=void 0,up.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["article"]],requiredProps:{},superClass:[["roletype","structure","section","list"]]}),up)),C=Te((pp||(pp=1,Object.defineProperty(dp,"__esModule",{value:!0}),dp.default=void 0,dp.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"figure"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]}),dp)),w=Te((hp||(hp=1,Object.defineProperty(mp,"__esModule",{value:!0}),mp.default=void 0,mp.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{attributes:[{constraints:["set"],name:"aria-label"}],name:"form"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"aria-labelledby"}],name:"form"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"name"}],name:"form"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]}),mp)),k=Te((fp||(fp=1,Object.defineProperty(yp,"__esModule",{value:!0}),yp.default=void 0,yp.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"a"},module:"HTML"},{concept:{name:"area"},module:"HTML"},{concept:{name:"aside"},module:"HTML"},{concept:{name:"b"},module:"HTML"},{concept:{name:"bdo"},module:"HTML"},{concept:{name:"body"},module:"HTML"},{concept:{name:"data"},module:"HTML"},{concept:{name:"div"},module:"HTML"},{concept:{constraints:["scoped to the main element","scoped to a sectioning content element","scoped to a sectioning root element other than body"],name:"footer"},module:"HTML"},{concept:{constraints:["scoped to the main element","scoped to a sectioning content element","scoped to a sectioning root element other than body"],name:"header"},module:"HTML"},{concept:{name:"hgroup"},module:"HTML"},{concept:{name:"i"},module:"HTML"},{concept:{name:"pre"},module:"HTML"},{concept:{name:"q"},module:"HTML"},{concept:{name:"samp"},module:"HTML"},{concept:{name:"section"},module:"HTML"},{concept:{name:"small"},module:"HTML"},{concept:{name:"span"},module:"HTML"},{concept:{name:"u"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]}),yp)),P=Te((vp||(vp=1,Object.defineProperty(gp,"__esModule",{value:!0}),gp.default=void 0,gp.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-multiselectable":null,"aria-readonly":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["row"],["row","rowgroup"]],requiredProps:{},superClass:[["roletype","widget","composite"],["roletype","structure","section","table"]]}),gp)),S=Te((bp||(bp=1,Object.defineProperty(xp,"__esModule",{value:!0}),xp.default=void 0,xp.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null,"aria-readonly":null,"aria-required":null,"aria-selected":null},relatedConcepts:[{concept:{constraints:["ancestor table element has grid role","ancestor table element has treegrid role"],name:"td"},module:"HTML"}],requireContextRole:["row"],requiredContextRole:["row"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","cell"],["roletype","widget"]]}),xp)),E=Te((_p||(_p=1,Object.defineProperty(Cp,"__esModule",{value:!0}),Cp.default=void 0,Cp.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-activedescendant":null,"aria-disabled":null},relatedConcepts:[{concept:{name:"details"},module:"HTML"},{concept:{name:"fieldset"},module:"HTML"},{concept:{name:"optgroup"},module:"HTML"},{concept:{name:"address"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]}),Cp)),A=Te((wp||(wp=1,Object.defineProperty(kp,"__esModule",{value:!0}),kp.default=void 0,kp.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-level":"2"},relatedConcepts:[{concept:{name:"h1"},module:"HTML"},{concept:{name:"h2"},module:"HTML"},{concept:{name:"h3"},module:"HTML"},{concept:{name:"h4"},module:"HTML"},{concept:{name:"h5"},module:"HTML"},{concept:{name:"h6"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-level":"2"},superClass:[["roletype","structure","sectionhead"]]}),kp)),T=Te((Pp||(Pp=1,Object.defineProperty(Sp,"__esModule",{value:!0}),Sp.default=void 0,Sp.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{attributes:[{constraints:["set"],name:"alt"}],name:"img"},module:"HTML"},{concept:{attributes:[{constraints:["undefined"],name:"alt"}],name:"img"},module:"HTML"},{concept:{name:"imggroup"},module:"DTB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]}),Sp)),$=Te((Ep||(Ep=1,Object.defineProperty(Ap,"__esModule",{value:!0}),Ap.default=void 0,Ap.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"ins"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]}),Ap)),R=Te((Tp||(Tp=1,Object.defineProperty($p,"__esModule",{value:!0}),$p.default=void 0,$p.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-disabled":null,"aria-expanded":null,"aria-haspopup":null},relatedConcepts:[{concept:{attributes:[{constraints:["set"],name:"href"}],name:"a"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"href"}],name:"area"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command"]]}),$p)),I=Te((Rp||(Rp=1,Object.defineProperty(Ip,"__esModule",{value:!0}),Ip.default=void 0,Ip.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"menu"},module:"HTML"},{concept:{name:"ol"},module:"HTML"},{concept:{name:"ul"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["listitem"]],requiredProps:{},superClass:[["roletype","structure","section"]]}),Ip)),q=Te((qp||(qp=1,Object.defineProperty(Lp,"__esModule",{value:!0}),Lp.default=void 0,Lp.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-expanded":null,"aria-invalid":null,"aria-multiselectable":null,"aria-readonly":null,"aria-required":null,"aria-orientation":"vertical"},relatedConcepts:[{concept:{attributes:[{constraints:[">1"],name:"size"}],constraints:["the size attribute value is greater than 1"],name:"select"},module:"HTML"},{concept:{attributes:[{name:"multiple"}],name:"select"},module:"HTML"},{concept:{name:"datalist"},module:"HTML"},{concept:{name:"list"},module:"ARIA"},{concept:{name:"select"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["option","group"],["option"]],requiredProps:{},superClass:[["roletype","widget","composite","select"],["roletype","structure","section","group","select"]]}),Lp)),L=Te((Mp||(Mp=1,Object.defineProperty(Op,"__esModule",{value:!0}),Op.default=void 0,Op.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-level":null,"aria-posinset":null,"aria-setsize":null},relatedConcepts:[{concept:{constraints:["direct descendant of ol","direct descendant of ul","direct descendant of menu"],name:"li"},module:"HTML"},{concept:{name:"item"},module:"XForms"}],requireContextRole:["directory","list"],requiredContextRole:["directory","list"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]}),Op)),M=Te((Np||(Np=1,Object.defineProperty(Dp,"__esModule",{value:!0}),Dp.default=void 0,Dp.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-live":"polite"},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]}),Dp)),O=Te((jp||(jp=1,Object.defineProperty(Bp,"__esModule",{value:!0}),Bp.default=void 0,Bp.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"main"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]}),Bp)),N=Te((Fp||(Fp=1,Object.defineProperty(Vp,"__esModule",{value:!0}),Vp.default=void 0,Vp.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:[],props:{"aria-braillelabel":null,"aria-brailleroledescription":null,"aria-description":null},relatedConcepts:[{concept:{name:"mark"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]}),Vp)),D=Te((Hp||(Hp=1,Object.defineProperty(Up,"__esModule",{value:!0}),Up.default=void 0,Up.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]}),Up)),j=Te((zp||(zp=1,Object.defineProperty(Wp,"__esModule",{value:!0}),Wp.default=void 0,Wp.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"math"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]}),Wp)),B=Te((Gp||(Gp=1,Object.defineProperty(Kp,"__esModule",{value:!0}),Kp.default=void 0,Kp.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-orientation":"vertical"},relatedConcepts:[{concept:{name:"MENU"},module:"JAPI"},{concept:{name:"list"},module:"ARIA"},{concept:{name:"select"},module:"XForms"},{concept:{name:"sidebar"},module:"DTB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["menuitem","group"],["menuitemradio","group"],["menuitemcheckbox","group"],["menuitem"],["menuitemcheckbox"],["menuitemradio"]],requiredProps:{},superClass:[["roletype","widget","composite","select"],["roletype","structure","section","group","select"]]}),Kp)),F=Te((Xp||(Xp=1,Object.defineProperty(Jp,"__esModule",{value:!0}),Jp.default=void 0,Jp.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-orientation":"horizontal"},relatedConcepts:[{concept:{name:"toolbar"},module:"ARIA"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["menuitem","group"],["menuitemradio","group"],["menuitemcheckbox","group"],["menuitem"],["menuitemcheckbox"],["menuitemradio"]],requiredProps:{},superClass:[["roletype","widget","composite","select","menu"],["roletype","structure","section","group","select","menu"]]}),Jp)),V=Te((Qp||(Qp=1,Object.defineProperty(Yp,"__esModule",{value:!0}),Yp.default=void 0,Yp.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-disabled":null,"aria-expanded":null,"aria-haspopup":null,"aria-posinset":null,"aria-setsize":null},relatedConcepts:[{concept:{name:"MENU_ITEM"},module:"JAPI"},{concept:{name:"listitem"},module:"ARIA"},{concept:{name:"option"},module:"ARIA"}],requireContextRole:["group","menu","menubar"],requiredContextRole:["group","menu","menubar"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command"]]}),Yp)),H=Te((Zp||(Zp=1,Object.defineProperty(ed,"__esModule",{value:!0}),ed.default=void 0,ed.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"menuitem"},module:"ARIA"}],requireContextRole:["group","menu","menubar"],requiredContextRole:["group","menu","menubar"],requiredOwnedElements:[],requiredProps:{"aria-checked":null},superClass:[["roletype","widget","input","checkbox"],["roletype","widget","command","menuitem"]]}),ed)),U=Te((td||(td=1,Object.defineProperty(nd,"__esModule",{value:!0}),nd.default=void 0,nd.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"menuitem"},module:"ARIA"}],requireContextRole:["group","menu","menubar"],requiredContextRole:["group","menu","menubar"],requiredOwnedElements:[],requiredProps:{"aria-checked":null},superClass:[["roletype","widget","input","checkbox","menuitemcheckbox"],["roletype","widget","command","menuitem","menuitemcheckbox"],["roletype","widget","input","radio"]]}),nd)),z=Te((rd||(rd=1,Object.defineProperty(sd,"__esModule",{value:!0}),sd.default=void 0,sd.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-valuetext":null,"aria-valuemax":"100","aria-valuemin":"0"},relatedConcepts:[{concept:{name:"meter"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-valuenow":null},superClass:[["roletype","structure","range"]]}),sd)),W=Te((ad||(ad=1,Object.defineProperty(id,"__esModule",{value:!0}),id.default=void 0,id.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"nav"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]}),id)),G=Te((od||(od=1,Object.defineProperty(ld,"__esModule",{value:!0}),ld.default=void 0,ld.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[]}),ld)),K=Te((cd||(cd=1,Object.defineProperty(ud,"__esModule",{value:!0}),ud.default=void 0,ud.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]}),ud)),X=Te((pd||(pd=1,Object.defineProperty(dd,"__esModule",{value:!0}),dd.default=void 0,dd.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-checked":null,"aria-posinset":null,"aria-setsize":null,"aria-selected":"false"},relatedConcepts:[{concept:{name:"item"},module:"XForms"},{concept:{name:"listitem"},module:"ARIA"},{concept:{name:"option"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-selected":"false"},superClass:[["roletype","widget","input"]]}),dd)),J=Te((hd||(hd=1,Object.defineProperty(md,"__esModule",{value:!0}),md.default=void 0,md.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"p"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]}),md)),Q=Te((fd||(fd=1,Object.defineProperty(yd,"__esModule",{value:!0}),yd.default=void 0,yd.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{attributes:[{name:"alt",value:""}],name:"img"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]}),yd)),Y=Te((vd||(vd=1,Object.defineProperty(gd,"__esModule",{value:!0}),gd.default=void 0,gd.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-valuetext":null},relatedConcepts:[{concept:{name:"progress"},module:"HTML"},{concept:{name:"status"},module:"ARIA"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","range"],["roletype","widget"]]}),gd)),Z=Te((bd||(bd=1,Object.defineProperty(xd,"__esModule",{value:!0}),xd.default=void 0,xd.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-checked":null,"aria-posinset":null,"aria-setsize":null},relatedConcepts:[{concept:{attributes:[{name:"type",value:"radio"}],name:"input"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-checked":null},superClass:[["roletype","widget","input"]]}),xd)),ee=Te((_d||(_d=1,Object.defineProperty(Cd,"__esModule",{value:!0}),Cd.default=void 0,Cd.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null,"aria-readonly":null,"aria-required":null},relatedConcepts:[{concept:{name:"list"},module:"ARIA"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["radio"]],requiredProps:{},superClass:[["roletype","widget","composite","select"],["roletype","structure","section","group","select"]]}),Cd)),te=Te((wd||(wd=1,Object.defineProperty(kd,"__esModule",{value:!0}),kd.default=void 0,kd.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{attributes:[{constraints:["set"],name:"aria-label"}],name:"section"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"aria-labelledby"}],name:"section"},module:"HTML"},{concept:{name:"Device Independence Glossart perceivable unit"}}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]}),kd)),ne=Te((Pd||(Pd=1,Object.defineProperty(Sd,"__esModule",{value:!0}),Sd.default=void 0,Sd.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-colindex":null,"aria-expanded":null,"aria-level":null,"aria-posinset":null,"aria-rowindex":null,"aria-selected":null,"aria-setsize":null},relatedConcepts:[{concept:{name:"tr"},module:"HTML"}],requireContextRole:["grid","rowgroup","table","treegrid"],requiredContextRole:["grid","rowgroup","table","treegrid"],requiredOwnedElements:[["cell"],["columnheader"],["gridcell"],["rowheader"]],requiredProps:{},superClass:[["roletype","structure","section","group"],["roletype","widget"]]}),Sd)),re=Te((Ed||(Ed=1,Object.defineProperty(Ad,"__esModule",{value:!0}),Ad.default=void 0,Ad.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"tbody"},module:"HTML"},{concept:{name:"tfoot"},module:"HTML"},{concept:{name:"thead"},module:"HTML"}],requireContextRole:["grid","table","treegrid"],requiredContextRole:["grid","table","treegrid"],requiredOwnedElements:[["row"]],requiredProps:{},superClass:[["roletype","structure"]]}),Ad)),se=Te((Td||(Td=1,Object.defineProperty($d,"__esModule",{value:!0}),$d.default=void 0,$d.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-sort":null},relatedConcepts:[{concept:{attributes:[{name:"scope",value:"row"}],name:"th"},module:"HTML"},{concept:{attributes:[{name:"scope",value:"rowgroup"}],name:"th"},module:"HTML"}],requireContextRole:["row","rowgroup"],requiredContextRole:["row","rowgroup"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","cell"],["roletype","structure","section","cell","gridcell"],["roletype","widget","gridcell"],["roletype","structure","sectionhead"]]}),$d)),ae=Te((Rd||(Rd=1,Object.defineProperty(Id,"__esModule",{value:!0}),Id.default=void 0,Id.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-valuetext":null,"aria-orientation":"vertical","aria-valuemax":"100","aria-valuemin":"0"},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-controls":null,"aria-valuenow":null},superClass:[["roletype","structure","range"],["roletype","widget"]]}),Id)),ie=Te((qd||(qd=1,Object.defineProperty(Ld,"__esModule",{value:!0}),Ld.default=void 0,Ld.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]}),Ld)),oe=Te((Md||(Md=1,Object.defineProperty(Od,"__esModule",{value:!0}),Od.default=void 0,Od.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{attributes:[{constraints:["undefined"],name:"list"},{name:"type",value:"search"}],constraints:["the list attribute is not set"],name:"input"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","input","textbox"]]}),Od)),le=Te((Nd||(Nd=1,Object.defineProperty(Dd,"__esModule",{value:!0}),Dd.default=void 0,Dd.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-orientation":"horizontal","aria-valuemax":"100","aria-valuemin":"0","aria-valuenow":null,"aria-valuetext":null},relatedConcepts:[{concept:{name:"hr"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]}),Dd)),ce=Te((jd||(jd=1,Object.defineProperty(Bd,"__esModule",{value:!0}),Bd.default=void 0,Bd.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-haspopup":null,"aria-invalid":null,"aria-readonly":null,"aria-valuetext":null,"aria-orientation":"horizontal","aria-valuemax":"100","aria-valuemin":"0"},relatedConcepts:[{concept:{attributes:[{name:"type",value:"range"}],name:"input"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-valuenow":null},superClass:[["roletype","widget","input"],["roletype","structure","range"]]}),Bd)),ue=Te((Fd||(Fd=1,Object.defineProperty(Vd,"__esModule",{value:!0}),Vd.default=void 0,Vd.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null,"aria-readonly":null,"aria-required":null,"aria-valuetext":null,"aria-valuenow":"0"},relatedConcepts:[{concept:{attributes:[{name:"type",value:"number"}],name:"input"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","composite"],["roletype","widget","input"],["roletype","structure","range"]]}),Vd)),pe=Te((Hd||(Hd=1,Object.defineProperty(Ud,"__esModule",{value:!0}),Ud.default=void 0,Ud.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-atomic":"true","aria-live":"polite"},relatedConcepts:[{concept:{name:"output"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]}),Ud)),de=Te((zd||(zd=1,Object.defineProperty(Wd,"__esModule",{value:!0}),Wd.default=void 0,Wd.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"strong"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]}),Wd)),he=Te((Gd||(Gd=1,Object.defineProperty(Kd,"__esModule",{value:!0}),Kd.default=void 0,Kd.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"sub"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]}),Kd)),me=Te((Xd||(Xd=1,Object.defineProperty(Jd,"__esModule",{value:!0}),Jd.default=void 0,Jd.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"sup"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]}),Jd)),fe=Te((Qd||(Qd=1,Object.defineProperty(Yd,"__esModule",{value:!0}),Yd.default=void 0,Yd.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"button"},module:"ARIA"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-checked":null},superClass:[["roletype","widget","input","checkbox"]]}),Yd)),ye=Te((Zd||(Zd=1,Object.defineProperty(eh,"__esModule",{value:!0}),eh.default=void 0,eh.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-disabled":null,"aria-expanded":null,"aria-haspopup":null,"aria-posinset":null,"aria-setsize":null,"aria-selected":"false"},relatedConcepts:[],requireContextRole:["tablist"],requiredContextRole:["tablist"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","sectionhead"],["roletype","widget"]]}),eh)),ve=Te((th||(th=1,Object.defineProperty(nh,"__esModule",{value:!0}),nh.default=void 0,nh.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-colcount":null,"aria-rowcount":null},relatedConcepts:[{concept:{name:"table"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["row"],["row","rowgroup"]],requiredProps:{},superClass:[["roletype","structure","section"]]}),nh)),ge=Te((rh||(rh=1,Object.defineProperty(sh,"__esModule",{value:!0}),sh.default=void 0,sh.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-level":null,"aria-multiselectable":null,"aria-orientation":"horizontal"},relatedConcepts:[{module:"DAISY",concept:{name:"guide"}}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["tab"]],requiredProps:{},superClass:[["roletype","widget","composite"]]}),sh)),be=Te((ah||(ah=1,Object.defineProperty(ih,"__esModule",{value:!0}),ih.default=void 0,ih.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]}),ih)),xe=Te((oh||(oh=1,Object.defineProperty(lh,"__esModule",{value:!0}),lh.default=void 0,lh.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"dfn"},module:"HTML"},{concept:{name:"dt"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]}),lh)),_e=Te((ch||(ch=1,Object.defineProperty(uh,"__esModule",{value:!0}),uh.default=void 0,uh.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-activedescendant":null,"aria-autocomplete":null,"aria-errormessage":null,"aria-haspopup":null,"aria-invalid":null,"aria-multiline":null,"aria-placeholder":null,"aria-readonly":null,"aria-required":null},relatedConcepts:[{concept:{attributes:[{constraints:["undefined"],name:"type"},{constraints:["undefined"],name:"list"}],constraints:["the list attribute is not set"],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["undefined"],name:"list"},{name:"type",value:"email"}],constraints:["the list attribute is not set"],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["undefined"],name:"list"},{name:"type",value:"tel"}],constraints:["the list attribute is not set"],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["undefined"],name:"list"},{name:"type",value:"text"}],constraints:["the list attribute is not set"],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["undefined"],name:"list"},{name:"type",value:"url"}],constraints:["the list attribute is not set"],name:"input"},module:"HTML"},{concept:{name:"input"},module:"XForms"},{concept:{name:"textarea"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","input"]]}),uh)),Ce=Te((ph||(ph=1,Object.defineProperty(dh,"__esModule",{value:!0}),dh.default=void 0,dh.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"time"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]}),dh)),we=Te((hh||(hh=1,Object.defineProperty(mh,"__esModule",{value:!0}),mh.default=void 0,mh.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","status"]]}),mh)),ke=Te((fh||(fh=1,Object.defineProperty(yh,"__esModule",{value:!0}),yh.default=void 0,yh.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-orientation":"horizontal"},relatedConcepts:[{concept:{name:"menubar"},module:"ARIA"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","group"]]}),yh)),Pe=Te((vh||(vh=1,Object.defineProperty(gh,"__esModule",{value:!0}),gh.default=void 0,gh.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]}),gh)),Se=Te((bh||(bh=1,Object.defineProperty(xh,"__esModule",{value:!0}),xh.default=void 0,xh.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null,"aria-multiselectable":null,"aria-required":null,"aria-orientation":"vertical"},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["treeitem","group"],["treeitem"]],requiredProps:{},superClass:[["roletype","widget","composite","select"],["roletype","structure","section","group","select"]]}),xh)),Ee=Te((_h||(_h=1,Object.defineProperty(Ch,"__esModule",{value:!0}),Ch.default=void 0,Ch.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["row"],["row","rowgroup"]],requiredProps:{},superClass:[["roletype","widget","composite","grid"],["roletype","structure","section","table","grid"],["roletype","widget","composite","select","tree"],["roletype","structure","section","group","select","tree"]]}),Ch)),Ae=Te((wh||(wh=1,Object.defineProperty(Ph,"__esModule",{value:!0}),Ph.default=void 0,Ph.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-expanded":null,"aria-haspopup":null},relatedConcepts:[],requireContextRole:["group","tree"],requiredContextRole:["group","tree"],requiredOwnedElements:[],requiredProps:{"aria-selected":null},superClass:[["roletype","structure","section","listitem"],["roletype","widget","input","option"]]}),Ph));function Te(e){return e&&e.__esModule?e:{default:e}}var $e=[["alert",e.default],["alertdialog",t.default],["application",n.default],["article",r.default],["banner",s.default],["blockquote",a.default],["button",i.default],["caption",o.default],["cell",l.default],["checkbox",c.default],["code",u.default],["columnheader",p.default],["combobox",d.default],["complementary",h.default],["contentinfo",m.default],["definition",f.default],["deletion",y.default],["dialog",v.default],["directory",g.default],["document",b.default],["emphasis",x.default],["feed",_.default],["figure",C.default],["form",w.default],["generic",k.default],["grid",P.default],["gridcell",S.default],["group",E.default],["heading",A.default],["img",T.default],["insertion",$.default],["link",R.default],["list",I.default],["listbox",q.default],["listitem",L.default],["log",M.default],["main",O.default],["mark",N.default],["marquee",D.default],["math",j.default],["menu",B.default],["menubar",F.default],["menuitem",V.default],["menuitemcheckbox",H.default],["menuitemradio",U.default],["meter",z.default],["navigation",W.default],["none",G.default],["note",K.default],["option",X.default],["paragraph",J.default],["presentation",Q.default],["progressbar",Y.default],["radio",Z.default],["radiogroup",ee.default],["region",te.default],["row",ne.default],["rowgroup",re.default],["rowheader",se.default],["scrollbar",ae.default],["search",ie.default],["searchbox",oe.default],["separator",le.default],["slider",ce.default],["spinbutton",ue.default],["status",pe.default],["strong",de.default],["subscript",he.default],["superscript",me.default],["switch",fe.default],["tab",ye.default],["table",ve.default],["tablist",ge.default],["tabpanel",be.default],["term",xe.default],["textbox",_e.default],["time",Ce.default],["timer",we.default],["toolbar",ke.default],["tooltip",Pe.default],["tree",Se.default],["treegrid",Ee.default],["treeitem",Ae.default]];return _u.default=$e,_u}var Eh,Ah={},Th={};var $h,Rh={};var Ih,qh={};var Lh,Mh={};var Oh,Nh={};var Dh,jh={};var Bh,Fh={};var Vh,Hh={};var Uh,zh={};var Wh,Gh={};var Kh,Xh={};var Jh,Qh={};var Yh,Zh={};var em,tm={};var nm,rm={};var sm,am={};var im,om={};var lm,cm={};var um,pm={};var dm,hm={};var mm,fm={};var ym,vm={};var gm,bm={};var xm,_m={};var Cm,wm={};var km,Pm={};var Sm,Em={};var Am,Tm={};var $m,Rm={};var Im,qm={};var Lm,Mm={};var Om,Nm={};var Dm,jm={};var Bm,Fm={};var Vm,Hm={};var Um,zm={};var Wm,Gm={};var Km,Xm={};var Jm,Qm={};var Ym,Zm={};var ef,tf,nf={};function rf(){if(tf)return Ah;tf=1,Object.defineProperty(Ah,"__esModule",{value:!0}),Ah.default=void 0;var e=F((Eh||(Eh=1,Object.defineProperty(Th,"__esModule",{value:!0}),Th.default=void 0,Th.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"abstract [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]}),Th)),t=F(($h||($h=1,Object.defineProperty(Rh,"__esModule",{value:!0}),Rh.default=void 0,Rh.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"acknowledgments [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]}),Rh)),n=F((Ih||(Ih=1,Object.defineProperty(qh,"__esModule",{value:!0}),qh.default=void 0,qh.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"afterword [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]}),qh)),r=F((Lh||(Lh=1,Object.defineProperty(Mh,"__esModule",{value:!0}),Mh.default=void 0,Mh.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"appendix [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]}),Mh)),s=F((Oh||(Oh=1,Object.defineProperty(Nh,"__esModule",{value:!0}),Nh.default=void 0,Nh.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"referrer [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command","link"]]}),Nh)),a=F((Dh||(Dh=1,Object.defineProperty(jh,"__esModule",{value:!0}),jh.default=void 0,jh.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"EPUB biblioentry [EPUB-SSV]"},module:"EPUB"}],requireContextRole:["doc-bibliography"],requiredContextRole:["doc-bibliography"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","listitem"]]}),jh)),i=F((Bh||(Bh=1,Object.defineProperty(Fh,"__esModule",{value:!0}),Fh.default=void 0,Fh.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"bibliography [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["doc-biblioentry"]],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]}),Fh)),o=F((Vh||(Vh=1,Object.defineProperty(Hh,"__esModule",{value:!0}),Hh.default=void 0,Hh.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"biblioref [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command","link"]]}),Hh)),l=F((Uh||(Uh=1,Object.defineProperty(zh,"__esModule",{value:!0}),zh.default=void 0,zh.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"chapter [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]}),zh)),c=F((Wh||(Wh=1,Object.defineProperty(Gh,"__esModule",{value:!0}),Gh.default=void 0,Gh.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"colophon [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]}),Gh)),u=F((Kh||(Kh=1,Object.defineProperty(Xh,"__esModule",{value:!0}),Xh.default=void 0,Xh.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"conclusion [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]}),Xh)),p=F((Jh||(Jh=1,Object.defineProperty(Qh,"__esModule",{value:!0}),Qh.default=void 0,Qh.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"cover [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","img"]]}),Qh)),d=F((Yh||(Yh=1,Object.defineProperty(Zh,"__esModule",{value:!0}),Zh.default=void 0,Zh.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"credit [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]}),Zh)),h=F((em||(em=1,Object.defineProperty(tm,"__esModule",{value:!0}),tm.default=void 0,tm.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"credits [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]}),tm)),m=F((nm||(nm=1,Object.defineProperty(rm,"__esModule",{value:!0}),rm.default=void 0,rm.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"dedication [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]}),rm)),f=F((sm||(sm=1,Object.defineProperty(am,"__esModule",{value:!0}),am.default=void 0,am.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"rearnote [EPUB-SSV]"},module:"EPUB"}],requireContextRole:["doc-endnotes"],requiredContextRole:["doc-endnotes"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","listitem"]]}),am)),y=F((im||(im=1,Object.defineProperty(om,"__esModule",{value:!0}),om.default=void 0,om.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"rearnotes [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["doc-endnote"]],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]}),om)),v=F((lm||(lm=1,Object.defineProperty(cm,"__esModule",{value:!0}),cm.default=void 0,cm.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"epigraph [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]}),cm)),g=F((um||(um=1,Object.defineProperty(pm,"__esModule",{value:!0}),pm.default=void 0,pm.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"epilogue [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]}),pm)),b=F((dm||(dm=1,Object.defineProperty(hm,"__esModule",{value:!0}),hm.default=void 0,hm.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"errata [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]}),hm)),x=F((mm||(mm=1,Object.defineProperty(fm,"__esModule",{value:!0}),fm.default=void 0,fm.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]}),fm)),_=F((ym||(ym=1,Object.defineProperty(vm,"__esModule",{value:!0}),vm.default=void 0,vm.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"footnote [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]}),vm)),C=F((gm||(gm=1,Object.defineProperty(bm,"__esModule",{value:!0}),bm.default=void 0,bm.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"foreword [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]}),bm)),w=F((xm||(xm=1,Object.defineProperty(_m,"__esModule",{value:!0}),_m.default=void 0,_m.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"glossary [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["definition"],["term"]],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]}),_m)),k=F((Cm||(Cm=1,Object.defineProperty(wm,"__esModule",{value:!0}),wm.default=void 0,wm.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"glossref [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command","link"]]}),wm)),P=F((km||(km=1,Object.defineProperty(Pm,"__esModule",{value:!0}),Pm.default=void 0,Pm.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"index [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark","navigation"]]}),Pm)),S=F((Sm||(Sm=1,Object.defineProperty(Em,"__esModule",{value:!0}),Em.default=void 0,Em.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"introduction [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]}),Em)),E=F((Am||(Am=1,Object.defineProperty(Tm,"__esModule",{value:!0}),Tm.default=void 0,Tm.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"noteref [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command","link"]]}),Tm)),A=F(($m||($m=1,Object.defineProperty(Rm,"__esModule",{value:!0}),Rm.default=void 0,Rm.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"notice [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","note"]]}),Rm)),T=F((Im||(Im=1,Object.defineProperty(qm,"__esModule",{value:!0}),qm.default=void 0,qm.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"pagebreak [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","separator"]]}),qm)),$=F((Lm||(Lm=1,Object.defineProperty(Mm,"__esModule",{value:!0}),Mm.default=void 0,Mm.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:[],props:{"aria-braillelabel":null,"aria-brailleroledescription":null,"aria-description":null,"aria-disabled":null,"aria-errormessage":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]}),Mm)),R=F((Om||(Om=1,Object.defineProperty(Nm,"__esModule",{value:!0}),Nm.default=void 0,Nm.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:[],props:{"aria-braillelabel":null,"aria-brailleroledescription":null,"aria-description":null,"aria-disabled":null,"aria-errormessage":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]}),Nm)),I=F((Dm||(Dm=1,Object.defineProperty(jm,"__esModule",{value:!0}),jm.default=void 0,jm.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"page-list [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark","navigation"]]}),jm)),q=F((Bm||(Bm=1,Object.defineProperty(Fm,"__esModule",{value:!0}),Fm.default=void 0,Fm.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"part [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]}),Fm)),L=F((Vm||(Vm=1,Object.defineProperty(Hm,"__esModule",{value:!0}),Hm.default=void 0,Hm.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"preface [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]}),Hm)),M=F((Um||(Um=1,Object.defineProperty(zm,"__esModule",{value:!0}),zm.default=void 0,zm.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"prologue [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]}),zm)),O=F((Wm||(Wm=1,Object.defineProperty(Gm,"__esModule",{value:!0}),Gm.default=void 0,Gm.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"pullquote [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["none"]]}),Gm)),N=F((Km||(Km=1,Object.defineProperty(Xm,"__esModule",{value:!0}),Xm.default=void 0,Xm.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"qna [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]}),Xm)),D=F((Jm||(Jm=1,Object.defineProperty(Qm,"__esModule",{value:!0}),Qm.default=void 0,Qm.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"subtitle [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","sectionhead"]]}),Qm)),j=F((Ym||(Ym=1,Object.defineProperty(Zm,"__esModule",{value:!0}),Zm.default=void 0,Zm.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"help [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","note"]]}),Zm)),B=F((ef||(ef=1,Object.defineProperty(nf,"__esModule",{value:!0}),nf.default=void 0,nf.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"toc [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark","navigation"]]}),nf));function F(e){return e&&e.__esModule?e:{default:e}}var V=[["doc-abstract",e.default],["doc-acknowledgments",t.default],["doc-afterword",n.default],["doc-appendix",r.default],["doc-backlink",s.default],["doc-biblioentry",a.default],["doc-bibliography",i.default],["doc-biblioref",o.default],["doc-chapter",l.default],["doc-colophon",c.default],["doc-conclusion",u.default],["doc-cover",p.default],["doc-credit",d.default],["doc-credits",h.default],["doc-dedication",m.default],["doc-endnote",f.default],["doc-endnotes",y.default],["doc-epigraph",v.default],["doc-epilogue",g.default],["doc-errata",b.default],["doc-example",x.default],["doc-footnote",_.default],["doc-foreword",C.default],["doc-glossary",w.default],["doc-glossref",k.default],["doc-index",P.default],["doc-introduction",S.default],["doc-noteref",E.default],["doc-notice",A.default],["doc-pagebreak",T.default],["doc-pagefooter",$.default],["doc-pageheader",R.default],["doc-pagelist",I.default],["doc-part",q.default],["doc-preface",L.default],["doc-prologue",M.default],["doc-pullquote",O.default],["doc-qna",N.default],["doc-subtitle",D.default],["doc-tip",j.default],["doc-toc",B.default]];return Ah.default=V,Ah}var sf,af={},of={};var lf,cf={};var uf,pf,df,hf={};function mf(){if(pf)return af;pf=1,Object.defineProperty(af,"__esModule",{value:!0}),af.default=void 0;var e=r((sf||(sf=1,Object.defineProperty(of,"__esModule",{value:!0}),of.default=void 0,of.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{module:"GRAPHICS",concept:{name:"graphics-object"}},{module:"ARIA",concept:{name:"img"}},{module:"ARIA",concept:{name:"article"}}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","document"]]}),of)),t=r((lf||(lf=1,Object.defineProperty(cf,"__esModule",{value:!0}),cf.default=void 0,cf.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{module:"GRAPHICS",concept:{name:"graphics-document"}},{module:"ARIA",concept:{name:"group"}},{module:"ARIA",concept:{name:"img"}},{module:"GRAPHICS",concept:{name:"graphics-symbol"}}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","group"]]}),cf)),n=r((uf||(uf=1,Object.defineProperty(hf,"__esModule",{value:!0}),hf.default=void 0,hf.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","img"]]}),hf));function r(e){return e&&e.__esModule?e:{default:e}}var s=[["graphics-document",e.default],["graphics-object",t.default],["graphics-symbol",n.default]];return af.default=s,af}function ff(){if(df)return Gc;function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}df=1,Object.defineProperty(Gc,"__esModule",{value:!0}),Gc.default=void 0;var t=i(bu()),n=i(Sh()),r=i(rf()),s=i(mf()),a=i(Fc());function i(e){return e&&e.__esModule?e:{default:e}}function o(t,n,r){return(n=function(t){var n=function(t,n){if("object"!=e(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var s=r.call(t,n||"default");if("object"!=e(s))return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(t)}(t,"string");return"symbol"==e(n)?n:n+""}(n))in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,t}function l(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=u(e))||t){n&&(e=n);var r=0,s=function(){};return{s:s,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:s}}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 a,i=!0,o=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){o=!0,a=e},f:function(){try{i||null==n.return||n.return()}finally{if(o)throw a}}}}function c(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,s,a,i,o=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(o.push(r.value),o.length!==t);l=!0);}catch(e){c=!0,s=e}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw s}}return o}}(e,t)||u(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){if(e){if("string"==typeof e)return p(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?p(e,t):void 0}}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var d=[].concat(t.default,n.default,r.default,s.default);d.forEach((function(e){var t,n=c(e,2)[1],r=l(n.superClass);try{for(r.s();!(t=r.n()).done;){var s,a=l(t.value);try{var i=function(){var e=s.value,t=d.find((function(t){return c(t,1)[0]===e}));if(t)for(var r=t[1],a=0,i=Object.keys(r.props);a<i.length;a++){var l=i[a];Object.prototype.hasOwnProperty.call(n.props,l)||Object.assign(n.props,o({},l,r.props[l]))}};for(a.s();!(s=a.n()).done;)i()}catch(e){a.e(e)}finally{a.f()}}}catch(e){r.e(e)}finally{r.f()}}));var h={entries:function(){return d},forEach:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=l(d);try{for(r.s();!(t=r.n()).done;){var s=c(t.value,2),a=s[0],i=s[1];e.call(n,i,a,d)}}catch(e){r.e(e)}finally{r.f()}},get:function(e){var t=d.find((function(t){return t[0]===e}));return t&&t[1]},has:function(e){return!!h.get(e)},keys:function(){return d.map((function(e){return c(e,1)[0]}))},values:function(){return d.map((function(e){return c(e,2)[1]}))}};return Gc.default=(0,a.default)(h,h.entries()),Gc}var yf,vf={};function gf(){if(yf)return vf;yf=1,Object.defineProperty(vf,"__esModule",{value:!0}),vf.default=void 0;var e=n(Fc()),t=n(ff());function n(e){return e&&e.__esModule?e:{default:e}}function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,s,a,i,o=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(o.push(r.value),o.length!==t);l=!0);}catch(e){c=!0,s=e}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw s}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}for(var a=[],i=t.default.keys(),o=0;o<i.length;o++){var l=i[o],c=t.default.get(l);if(c)for(var u=[].concat(c.baseConcepts,c.relatedConcepts),p=0;p<u.length;p++){var d=u[p];"HTML"===d.module&&function(){var e=d.concept;if(e){var t,n=a.find((function(t){return m(t[0],e)}));t=n?n[1]:[];for(var r=!0,s=0;s<t.length;s++)if(t[s]===l){r=!1;break}r&&t.push(l),n||a.push([e,t])}}()}}var h={entries:function(){return a},forEach:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=0,s=a;n<s.length;n++){var i=r(s[n],2),o=i[0],l=i[1];e.call(t,l,o,a)}},get:function(e){var t=a.find((function(t){return e.name===t[0].name&&f(e.attributes,t[0].attributes)}));return t&&t[1]},has:function(e){return!!h.get(e)},keys:function(){return a.map((function(e){return r(e,1)[0]}))},values:function(){return a.map((function(e){return r(e,2)[1]}))}};function m(e,t){return e.name===t.name&&function(e,t){if(void 0===e&&void 0!==t)return!1;if(void 0!==e&&void 0===t)return!1;if(void 0!==e&&void 0!==t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1}return!0}(e.constraints,t.constraints)&&f(e.attributes,t.attributes)}function f(e,t){if(void 0===e&&void 0!==t)return!1;if(void 0!==e&&void 0===t)return!1;if(void 0!==e&&void 0!==t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++){if(e[n].name!==t[n].name||e[n].value!==t[n].value)return!1;if(void 0===e[n].constraints&&void 0!==t[n].constraints)return!1;if(void 0!==e[n].constraints&&void 0===t[n].constraints)return!1;if(void 0!==e[n].constraints&&void 0!==t[n].constraints){if(e[n].constraints.length!==t[n].constraints.length)return!1;for(var r=0;r<e[n].constraints.length;r++)if(e[n].constraints[r]!==t[n].constraints[r])return!1}}}return!0}return vf.default=(0,e.default)(h,h.entries()),vf}var bf,xf,_f={};function Cf(){if(bf)return _f;bf=1,Object.defineProperty(_f,"__esModule",{value:!0}),_f.default=void 0;var e=n(Fc()),t=n(ff());function n(e){return e&&e.__esModule?e:{default:e}}function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,s,a,i,o=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(o.push(r.value),o.length!==t);l=!0);}catch(e){c=!0,s=e}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw s}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}for(var a=[],i=t.default.keys(),o=0;o<i.length;o++){var l=i[o],c=t.default.get(l),u=[];if(c){for(var p=[].concat(c.baseConcepts,c.relatedConcepts),d=0;d<p.length;d++){var h=p[d];if("HTML"===h.module){var m=h.concept;null!=m&&u.push(m)}}u.length>0&&a.push([l,u])}}var f={entries:function(){return a},forEach:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=0,s=a;n<s.length;n++){var i=r(s[n],2),o=i[0],l=i[1];e.call(t,l,o,a)}},get:function(e){var t=a.find((function(t){return t[0]===e}));return t&&t[1]},has:function(e){return!!f.get(e)},keys:function(){return a.map((function(e){return r(e,1)[0]}))},values:function(){return a.map((function(e){return r(e,2)[1]}))}};return _f.default=(0,e.default)(f,f.entries()),_f}var wf,kf,Pf=function(){if(xf)return Nc;xf=1,Object.defineProperty(Nc,"__esModule",{value:!0}),Nc.roles=Nc.roleElements=Nc.elementRoles=Nc.dom=Nc.aria=void 0;var e=a(Vc()),t=a(zc()),n=a(ff()),r=a(gf()),s=a(Cf());function a(e){return e&&e.__esModule?e:{default:e}}return Nc.aria=e.default,Nc.dom=t.default,Nc.roles=n.default,Nc.elementRoles=r.default,Nc.roleElements=s.default,Nc}(),Sf={},Ef={},Af={},Tf={};function $f(){if(kf)return Af;kf=1,Object.defineProperty(Af,"__esModule",{value:!0}),Af.default=function(e,r){"function"==typeof Symbol&&"symbol"===n(Symbol.iterator)&&Object.defineProperty(e,Symbol.iterator,{value:t.default.bind(r)});return e};var e,t=(e=function(){if(wf)return Tf;wf=1,Object.defineProperty(Tf,"__esModule",{value:!0}),Tf.default=void 0;var e=function(){var e=this,t=0,n={"@@iterator":function(){return n},next:function(){if(t<e.length){var n=e[t];return t+=1,{done:!1,value:n}}return{done:!0}}};return n};return Tf.default=e,Tf}())&&e.__esModule?e:{default:e};function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}return Af}var Rf,If={},qf={};var Lf,Mf={};var Of,Nf={};var Df,jf={};var Bf,Ff={};var Vf,Hf={};var Uf,zf={};var Wf,Gf={};var Kf,Xf={};var Jf,Qf={};var Yf,Zf={};var ey,ty={};var ny,ry={};var sy,ay={};var iy,oy={};var ly,cy={};var uy,py={};var dy,hy={};var my,fy={};var yy,vy={};var gy,by={};var xy,_y={};var Cy,wy={};var ky,Py={};var Sy,Ey={};var Ay,Ty={};var $y,Ry={};var Iy,qy={};var Ly,My={};var Oy,Ny={};var Dy,jy={};var By,Fy={};var Vy,Hy={};var Uy,zy={};var Wy,Gy={};var Ky,Xy={};var Jy,Qy={};var Yy,Zy={};var ev,tv={};var nv,rv={};var sv,av={};var iv,ov={};var lv,cv={};var uv,pv={};var dv,hv={};var mv,fv={};var yv,vv={};var gv,bv={};var xv,_v={};var Cv,wv={};var kv,Pv={};var Sv,Ev={};var Av,Tv={};var $v,Rv={};var Iv,qv={};var Lv,Mv={};var Ov,Nv={};var Dv,jv={};var Bv,Fv={};var Vv,Hv={};var Uv,zv={};var Wv,Gv={};var Kv,Xv={};var Jv,Qv={};var Yv,Zv={};var eg,tg={};var ng,rg={};var sg,ag={};var ig,og={};var lg,cg={};var ug,pg={};var dg,hg={};var mg,fg={};var yg,vg={};var gg,bg={};var xg,_g={};var Cg,wg={};var kg,Pg={};var Sg,Eg={};var Ag,Tg={};var $g,Rg={};var Ig,qg={};var Lg,Mg={};var Og,Ng={};var Dg,jg={};var Bg,Fg={};var Vg,Hg={};var Ug,zg={};var Wg,Gg={};var Kg,Xg={};var Jg,Qg={};var Yg,Zg={};var eb,tb={};var nb,rb={};var sb,ab={};var ib,ob={};var lb,cb={};var ub,pb={};var db,hb={};var mb,fb={};var yb,vb={};var gb,bb={};var xb,_b={};var Cb,wb={};var kb,Pb={};var Sb,Eb={};var Ab,Tb={};var $b,Rb={};var Ib,qb={};var Lb,Mb={};var Ob,Nb={};var Db,jb={};var Bb,Fb={};var Vb,Hb={};var Ub,zb={};var Wb,Gb={};var Kb,Xb={};var Jb,Qb={};var Yb,Zb={};var ex,tx={};var nx,rx={};var sx,ax={};var ix,ox={};var lx,cx,ux,px={};function dx(){if(cx)return If;cx=1,Object.defineProperty(If,"__esModule",{value:!0}),If.default=void 0;var e=vt($f()),t=vt(function(){if(Rf)return qf;Rf=1,Object.defineProperty(qf,"__esModule",{value:!0}),qf.default=void 0;var e={relatedConcepts:[{module:"HTML",concept:{name:"abbr"}}],type:"structure"};return qf.default=e,qf}()),n=vt(function(){if(Lf)return Mf;Lf=1,Object.defineProperty(Mf,"__esModule",{value:!0}),Mf.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"alertdialog"}}],type:"window"};return Mf.default=e,Mf}()),r=vt(function(){if(Of)return Nf;Of=1,Object.defineProperty(Nf,"__esModule",{value:!0}),Nf.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"alert"}}],type:"structure"};return Nf.default=e,Nf}()),s=vt(function(){if(Df)return jf;Df=1,Object.defineProperty(jf,"__esModule",{value:!0}),jf.default=void 0;var e={relatedConcepts:[],type:"structure"};return jf.default=e,jf}()),a=vt(function(){if(Bf)return Ff;Bf=1,Object.defineProperty(Ff,"__esModule",{value:!0}),Ff.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"application"}}],type:"window"};return Ff.default=e,Ff}()),i=vt(function(){if(Vf)return Hf;Vf=1,Object.defineProperty(Hf,"__esModule",{value:!0}),Hf.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"article"}},{module:"HTML",concept:{name:"article"}}],type:"structure"};return Hf.default=e,Hf}()),o=vt(function(){if(Uf)return zf;Uf=1,Object.defineProperty(zf,"__esModule",{value:!0}),zf.default=void 0;var e={relatedConcepts:[{module:"HTML",concept:{name:"audio"}}],type:"widget"};return zf.default=e,zf}()),l=vt(function(){if(Wf)return Gf;Wf=1,Object.defineProperty(Gf,"__esModule",{value:!0}),Gf.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"banner"}}],type:"structure"};return Gf.default=e,Gf}()),c=vt(function(){if(Kf)return Xf;Kf=1,Object.defineProperty(Xf,"__esModule",{value:!0}),Xf.default=void 0;var e={relatedConcepts:[{module:"HTML",concept:{name:"blockquote"}}],type:"structure"};return Xf.default=e,Xf}()),u=vt(function(){if(Jf)return Qf;Jf=1,Object.defineProperty(Qf,"__esModule",{value:!0}),Qf.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{attributes:[{name:"aria-busy",value:"true"}]}}],type:"widget"};return Qf.default=e,Qf}()),p=vt(function(){if(Yf)return Zf;Yf=1,Object.defineProperty(Zf,"__esModule",{value:!0}),Zf.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"button"}},{module:"HTML",concept:{name:"button"}}],type:"widget"};return Zf.default=e,Zf}()),d=vt(function(){if(ey)return ty;ey=1,Object.defineProperty(ty,"__esModule",{value:!0}),ty.default=void 0;var e={relatedConcepts:[{module:"HTML",concept:{name:"canvas"}}],type:"widget"};return ty.default=e,ty}()),h=vt(function(){if(ny)return ry;ny=1,Object.defineProperty(ry,"__esModule",{value:!0}),ry.default=void 0;var e={relatedConcepts:[{module:"HTML",concept:{name:"caption"}}],type:"structure"};return ry.default=e,ry}()),m=vt(function(){if(sy)return ay;sy=1,Object.defineProperty(ay,"__esModule",{value:!0}),ay.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"cell"}},{module:"ARIA",concept:{name:"gridcell"}},{module:"HTML",concept:{name:"td"}}],type:"widget"};return ay.default=e,ay}()),f=vt(function(){if(iy)return oy;iy=1,Object.defineProperty(oy,"__esModule",{value:!0}),oy.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"checkbox"}},{module:"HTML",concept:{name:"input",attributes:[{name:"type",value:"checkbox"}]}}],type:"widget"};return oy.default=e,oy}()),y=vt(function(){if(ly)return cy;ly=1,Object.defineProperty(cy,"__esModule",{value:!0}),cy.default=void 0;var e={relatedConcepts:[{module:"HTML",concept:{name:"input",attributes:[{name:"type",value:"color"}]}}],type:"widget"};return cy.default=e,cy}()),v=vt(function(){if(uy)return py;uy=1,Object.defineProperty(py,"__esModule",{value:!0}),py.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"columnheader"}},{module:"HTML",concept:{name:"th"}}],type:"widget"};return py.default=e,py}()),g=vt(function(){if(dy)return hy;dy=1,Object.defineProperty(hy,"__esModule",{value:!0}),hy.default=void 0;var e={relatedConcepts:[],type:"structure"};return hy.default=e,hy}()),b=vt(function(){if(my)return fy;my=1,Object.defineProperty(fy,"__esModule",{value:!0}),fy.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"combobox"}},{module:"HTML",concept:{name:"select"}}],type:"widget"};return fy.default=e,fy}()),x=vt(function(){if(yy)return vy;yy=1,Object.defineProperty(vy,"__esModule",{value:!0}),vy.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"complementary"}}],type:"structure"};return vy.default=e,vy}()),_=vt(function(){if(gy)return by;gy=1,Object.defineProperty(by,"__esModule",{value:!0}),by.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"structureinfo"}}],type:"structure"};return by.default=e,by}()),C=vt(function(){if(xy)return _y;xy=1,Object.defineProperty(_y,"__esModule",{value:!0}),_y.default=void 0;var e={relatedConcepts:[{module:"HTML",concept:{name:"input",attributes:[{name:"type",value:"date"}]}}],type:"widget"};return _y.default=e,_y}()),w=vt(function(){if(Cy)return wy;Cy=1,Object.defineProperty(wy,"__esModule",{value:!0}),wy.default=void 0;var e={relatedConcepts:[{module:"HTML",concept:{name:"input",attributes:[{name:"type",value:"datetime"}]}}],type:"widget"};return wy.default=e,wy}()),k=vt(function(){if(ky)return Py;ky=1,Object.defineProperty(Py,"__esModule",{value:!0}),Py.default=void 0;var e={relatedConcepts:[{module:"HTML",concept:{name:"dfn"}}],type:"structure"};return Py.default=e,Py}()),P=vt(function(){if(Sy)return Ey;Sy=1,Object.defineProperty(Ey,"__esModule",{value:!0}),Ey.default=void 0;var e={relatedConcepts:[{module:"HTML",concept:{name:"dd"}}],type:"structure"};return Ey.default=e,Ey}()),S=vt(function(){if(Ay)return Ty;Ay=1,Object.defineProperty(Ty,"__esModule",{value:!0}),Ty.default=void 0;var e={relatedConcepts:[{module:"HTML",concept:{name:"dl"}}],type:"structure"};return Ty.default=e,Ty}()),E=vt(function(){if($y)return Ry;$y=1,Object.defineProperty(Ry,"__esModule",{value:!0}),Ry.default=void 0;var e={relatedConcepts:[{module:"HTML",concept:{name:"dt"}}],type:"structure"};return Ry.default=e,Ry}()),A=vt(function(){if(Iy)return qy;Iy=1,Object.defineProperty(qy,"__esModule",{value:!0}),qy.default=void 0;var e={relatedConcepts:[{module:"HTML",concept:{name:"details"}}],type:"structure"};return qy.default=e,qy}()),T=vt(function(){if(Ly)return My;Ly=1,Object.defineProperty(My,"__esModule",{value:!0}),My.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"dialog"}},{module:"HTML",concept:{name:"dialog"}}],type:"window"};return My.default=e,My}()),$=vt(function(){if(Oy)return Ny;Oy=1,Object.defineProperty(Ny,"__esModule",{value:!0}),Ny.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"directory"}},{module:"HTML",concept:{name:"dir"}}],type:"structure"};return Ny.default=e,Ny}()),R=vt(function(){if(Dy)return jy;Dy=1,Object.defineProperty(jy,"__esModule",{value:!0}),jy.default=void 0;var e={relatedConcepts:[{module:"HTML",concept:{constraints:["scoped to a details element"],name:"summary"}}],type:"widget"};return jy.default=e,jy}()),I=vt(function(){if(By)return Fy;By=1,Object.defineProperty(Fy,"__esModule",{value:!0}),Fy.default=void 0;var e={relatedConcepts:[{module:"HTML",concept:{name:"div"}}],type:"generic"};return Fy.default=e,Fy}()),q=vt(function(){if(Vy)return Hy;Vy=1,Object.defineProperty(Hy,"__esModule",{value:!0}),Hy.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"document"}}],type:"structure"};return Hy.default=e,Hy}()),L=vt(function(){if(Uy)return zy;Uy=1,Object.defineProperty(zy,"__esModule",{value:!0}),zy.default=void 0;var e={relatedConcepts:[{module:"HTML",concept:{name:"embed"}}],type:"widget"};return zy.default=e,zy}()),M=vt(function(){if(Wy)return Gy;Wy=1,Object.defineProperty(Gy,"__esModule",{value:!0}),Gy.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"feed"}}],type:"structure"};return Gy.default=e,Gy}()),O=vt(function(){if(Ky)return Xy;Ky=1,Object.defineProperty(Xy,"__esModule",{value:!0}),Xy.default=void 0;var e={relatedConcepts:[{module:"HTML",concept:{name:"figcaption"}}],type:"structure"};return Xy.default=e,Xy}()),N=vt(function(){if(Jy)return Qy;Jy=1,Object.defineProperty(Qy,"__esModule",{value:!0}),Qy.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"figure"}},{module:"HTML",concept:{name:"figure"}}],type:"structure"};return Qy.default=e,Qy}()),D=vt(function(){if(Yy)return Zy;Yy=1,Object.defineProperty(Zy,"__esModule",{value:!0}),Zy.default=void 0;var e={relatedConcepts:[{module:"HTML",concept:{name:"footer"}}],type:"structure"};return Zy.default=e,Zy}()),j=vt(function(){if(ev)return tv;ev=1,Object.defineProperty(tv,"__esModule",{value:!0}),tv.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"form"}},{module:"HTML",concept:{name:"form"}}],type:"structure"};return tv.default=e,tv}()),B=vt(function(){if(nv)return rv;nv=1,Object.defineProperty(rv,"__esModule",{value:!0}),rv.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"grid"}}],type:"widget"};return rv.default=e,rv}()),F=vt(function(){if(sv)return av;sv=1,Object.defineProperty(av,"__esModule",{value:!0}),av.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"group"}}],type:"structure"};return av.default=e,av}()),V=vt(function(){if(iv)return ov;iv=1,Object.defineProperty(ov,"__esModule",{value:!0}),ov.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"heading"}},{module:"HTML",concept:{name:"h1"}},{module:"HTML",concept:{name:"h2"}},{module:"HTML",concept:{name:"h3"}},{module:"HTML",concept:{name:"h4"}},{module:"HTML",concept:{name:"h5"}},{module:"HTML",concept:{name:"h6"}}],type:"structure"};return ov.default=e,ov}()),H=vt(function(){if(lv)return cv;lv=1,Object.defineProperty(cv,"__esModule",{value:!0}),cv.default=void 0;var e={relatedConcepts:[],type:"window"};return cv.default=e,cv}()),U=vt(function(){if(uv)return pv;uv=1,Object.defineProperty(pv,"__esModule",{value:!0}),pv.default=void 0;var e={relatedConcepts:[{module:"HTML",concept:{name:"iframe"}}],type:"window"};return pv.default=e,pv}()),z=vt(function(){if(dv)return hv;dv=1,Object.defineProperty(hv,"__esModule",{value:!0}),hv.default=void 0;var e={relatedConcepts:[],type:"structure"};return hv.default=e,hv}()),W=vt(function(){if(mv)return fv;mv=1,Object.defineProperty(fv,"__esModule",{value:!0}),fv.default=void 0;var e={relatedConcepts:[],type:"widget"};return fv.default=e,fv}()),G=vt(function(){if(yv)return vv;yv=1,Object.defineProperty(vv,"__esModule",{value:!0}),vv.default=void 0;var e={relatedConcepts:[{module:"HTML",concept:{name:"img",attributes:[{name:"usemap"}]}}],type:"structure"};return vv.default=e,vv}()),K=vt(function(){if(gv)return bv;gv=1,Object.defineProperty(bv,"__esModule",{value:!0}),bv.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"img"}},{module:"HTML",concept:{name:"img"}}],type:"structure"};return bv.default=e,bv}()),X=vt(function(){if(xv)return _v;xv=1,Object.defineProperty(_v,"__esModule",{value:!0}),_v.default=void 0;var e={relatedConcepts:[{module:"HTML",concept:{name:"input"}}],type:"widget"};return _v.default=e,_v}()),J=vt(function(){if(Cv)return wv;Cv=1,Object.defineProperty(wv,"__esModule",{value:!0}),wv.default=void 0;var e={relatedConcepts:[{module:"HTML",concept:{name:"input",attributes:[{name:"type",value:"time"}]}}],type:"widget"};return wv.default=e,wv}()),Q=vt(function(){if(kv)return Pv;kv=1,Object.defineProperty(Pv,"__esModule",{value:!0}),Pv.default=void 0;var e={relatedConcepts:[{module:"HTML",concept:{name:"label"}}],type:"structure"};return Pv.default=e,Pv}()),Y=vt(function(){if(Sv)return Ev;Sv=1,Object.defineProperty(Ev,"__esModule",{value:!0}),Ev.default=void 0;var e={relatedConcepts:[{module:"HTML",concept:{name:"legend"}}],type:"structure"};return Ev.default=e,Ev}()),Z=vt(function(){if(Av)return Tv;Av=1,Object.defineProperty(Tv,"__esModule",{value:!0}),Tv.default=void 0;var e={relatedConcepts:[{module:"HTML",concept:{name:"br"}}],type:"structure"};return Tv.default=e,Tv}()),ee=vt(function(){if($v)return Rv;$v=1,Object.defineProperty(Rv,"__esModule",{value:!0}),Rv.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"link"}},{module:"HTML",concept:{name:"a",attributes:[{name:"href"}]}}],type:"widget"};return Rv.default=e,Rv}()),te=vt(function(){if(Iv)return qv;Iv=1,Object.defineProperty(qv,"__esModule",{value:!0}),qv.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"option"}},{module:"HTML",concept:{name:"option"}}],type:"widget"};return qv.default=e,qv}()),ne=vt(function(){if(Lv)return Mv;Lv=1,Object.defineProperty(Mv,"__esModule",{value:!0}),Mv.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"listbox"}},{module:"HTML",concept:{name:"datalist"}},{module:"HTML",concept:{name:"select"}}],type:"widget"};return Mv.default=e,Mv}()),re=vt(function(){if(Ov)return Nv;Ov=1,Object.defineProperty(Nv,"__esModule",{value:!0}),Nv.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"listitem"}},{module:"HTML",concept:{name:"li"}}],type:"structure"};return Nv.default=e,Nv}()),se=vt(function(){if(Dv)return jv;Dv=1,Object.defineProperty(jv,"__esModule",{value:!0}),jv.default=void 0;var e={relatedConcepts:[],type:"structure"};return jv.default=e,jv}()),ae=vt(function(){if(Bv)return Fv;Bv=1,Object.defineProperty(Fv,"__esModule",{value:!0}),Fv.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"list"}},{module:"HTML",concept:{name:"ul"}},{module:"HTML",concept:{name:"ol"}}],type:"structure"};return Fv.default=e,Fv}()),ie=vt(function(){if(Vv)return Hv;Vv=1,Object.defineProperty(Hv,"__esModule",{value:!0}),Hv.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"log"}}],type:"structure"};return Hv.default=e,Hv}()),oe=vt(function(){if(Uv)return zv;Uv=1,Object.defineProperty(zv,"__esModule",{value:!0}),zv.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"main"}},{module:"HTML",concept:{name:"main"}}],type:"structure"};return zv.default=e,zv}()),le=vt(function(){if(Wv)return Gv;Wv=1,Object.defineProperty(Gv,"__esModule",{value:!0}),Gv.default=void 0;var e={relatedConcepts:[{module:"HTML",concept:{name:"mark"}}],type:"structure"};return Gv.default=e,Gv}()),ce=vt(function(){if(Kv)return Xv;Kv=1,Object.defineProperty(Xv,"__esModule",{value:!0}),Xv.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"marquee"}},{module:"HTML",concept:{name:"marquee"}}],type:"structure"};return Xv.default=e,Xv}()),ue=vt(function(){if(Jv)return Qv;Jv=1,Object.defineProperty(Qv,"__esModule",{value:!0}),Qv.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"math"}}],type:"structure"};return Qv.default=e,Qv}()),pe=vt(function(){if(Yv)return Zv;Yv=1,Object.defineProperty(Zv,"__esModule",{value:!0}),Zv.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"menubar"}}],type:"structure"};return Zv.default=e,Zv}()),de=vt(function(){if(eg)return tg;eg=1,Object.defineProperty(tg,"__esModule",{value:!0}),tg.default=void 0;var e={relatedConcepts:[],type:"widget"};return tg.default=e,tg}()),he=vt(function(){if(ng)return rg;ng=1,Object.defineProperty(rg,"__esModule",{value:!0}),rg.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"menuitem"}},{module:"HTML",concept:{name:"menuitem"}}],type:"widget"};return rg.default=e,rg}()),me=vt(function(){if(sg)return ag;sg=1,Object.defineProperty(ag,"__esModule",{value:!0}),ag.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"menuitemcheckbox"}}],type:"widget"};return ag.default=e,ag}()),fe=vt(function(){if(ig)return og;ig=1,Object.defineProperty(og,"__esModule",{value:!0}),og.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"menuitemradio"}}],type:"widget"};return og.default=e,og}()),ye=vt(function(){if(lg)return cg;lg=1,Object.defineProperty(cg,"__esModule",{value:!0}),cg.default=void 0;var e={relatedConcepts:[],type:"widget"};return cg.default=e,cg}()),ve=vt(function(){if(ug)return pg;ug=1,Object.defineProperty(pg,"__esModule",{value:!0}),pg.default=void 0;var e={relatedConcepts:[],type:"widget"};return pg.default=e,pg}()),ge=vt(function(){if(dg)return hg;dg=1,Object.defineProperty(hg,"__esModule",{value:!0}),hg.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"menu"}},{module:"HTML",concept:{name:"menu"}}],type:"structure"};return hg.default=e,hg}()),be=vt(function(){if(mg)return fg;mg=1,Object.defineProperty(fg,"__esModule",{value:!0}),fg.default=void 0;var e={relatedConcepts:[{module:"HTML",concept:{name:"meter"}}],type:"structure"};return fg.default=e,fg}()),xe=vt(function(){if(yg)return vg;yg=1,Object.defineProperty(vg,"__esModule",{value:!0}),vg.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"navigation"}},{module:"HTML",concept:{name:"nav"}}],type:"structure"};return vg.default=e,vg}()),_e=vt(function(){if(gg)return bg;gg=1,Object.defineProperty(bg,"__esModule",{value:!0}),bg.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"none"}}],type:"structure"};return bg.default=e,bg}()),Ce=vt(function(){if(xg)return _g;xg=1,Object.defineProperty(_g,"__esModule",{value:!0}),_g.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"note"}}],type:"structure"};return _g.default=e,_g}()),we=vt(function(){if(Cg)return wg;Cg=1,Object.defineProperty(wg,"__esModule",{value:!0}),wg.default=void 0;var e={relatedConcepts:[],type:"structure"};return wg.default=e,wg}()),ke=vt(function(){if(kg)return Pg;kg=1,Object.defineProperty(Pg,"__esModule",{value:!0}),Pg.default=void 0;var e={relatedConcepts:[{module:"HTML",concept:{name:"p"}}],type:"structure"};return Pg.default=e,Pg}()),Pe=vt(function(){if(Sg)return Eg;Sg=1,Object.defineProperty(Eg,"__esModule",{value:!0}),Eg.default=void 0;var e={relatedConcepts:[],type:"widget"};return Eg.default=e,Eg}()),Se=vt(function(){if(Ag)return Tg;Ag=1,Object.defineProperty(Tg,"__esModule",{value:!0}),Tg.default=void 0;var e={relatedConcepts:[{module:"HTML",concept:{name:"pre"}}],type:"structure"};return Tg.default=e,Tg}()),Ee=vt(function(){if($g)return Rg;$g=1,Object.defineProperty(Rg,"__esModule",{value:!0}),Rg.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"presentation"}}],type:"structure"};return Rg.default=e,Rg}()),Ae=vt(function(){if(Ig)return qg;Ig=1,Object.defineProperty(qg,"__esModule",{value:!0}),qg.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"progressbar"}},{module:"HTML",concept:{name:"progress"}}],type:"structure"};return qg.default=e,qg}()),Te=vt(function(){if(Lg)return Mg;Lg=1,Object.defineProperty(Mg,"__esModule",{value:!0}),Mg.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"radio"}},{module:"HTML",concept:{name:"input",attributes:[{name:"type",value:"radio"}]}}],type:"widget"};return Mg.default=e,Mg}()),$e=vt(function(){if(Og)return Ng;Og=1,Object.defineProperty(Ng,"__esModule",{value:!0}),Ng.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"radiogroup"}}],type:"structure"};return Ng.default=e,Ng}()),Re=vt(function(){if(Dg)return jg;Dg=1,Object.defineProperty(jg,"__esModule",{value:!0}),jg.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"region"}}],type:"structure"};return jg.default=e,jg}()),Ie=vt(function(){if(Bg)return Fg;Bg=1,Object.defineProperty(Fg,"__esModule",{value:!0}),Fg.default=void 0;var e={relatedConcepts:[],type:"structure"};return Fg.default=e,Fg}()),qe=vt(function(){if(Vg)return Hg;Vg=1,Object.defineProperty(Hg,"__esModule",{value:!0}),Hg.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"rowheader"}},{module:"HTML",concept:{name:"th",attributes:[{name:"scope",value:"row"}]}}],type:"widget"};return Hg.default=e,Hg}()),Le=vt(function(){if(Ug)return zg;Ug=1,Object.defineProperty(zg,"__esModule",{value:!0}),zg.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"row"}},{module:"HTML",concept:{name:"tr"}}],type:"structure"};return zg.default=e,zg}()),Me=vt(function(){if(Wg)return Gg;Wg=1,Object.defineProperty(Gg,"__esModule",{value:!0}),Gg.default=void 0;var e={relatedConcepts:[{module:"HTML",concept:{name:"ruby"}}],type:"structure"};return Gg.default=e,Gg}()),Oe=vt(function(){if(Kg)return Xg;Kg=1,Object.defineProperty(Xg,"__esModule",{value:!0}),Xg.default=void 0;var e={relatedConcepts:[],type:"structure"};return Xg.default=e,Xg}()),Ne=vt(function(){if(Jg)return Qg;Jg=1,Object.defineProperty(Qg,"__esModule",{value:!0}),Qg.default=void 0;var e={relatedConcepts:[],type:"structure"};return Qg.default=e,Qg}()),De=vt(function(){if(Yg)return Zg;Yg=1,Object.defineProperty(Zg,"__esModule",{value:!0}),Zg.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"scrollbar"}}],type:"widget"};return Zg.default=e,Zg}()),je=vt(function(){if(eb)return tb;eb=1,Object.defineProperty(tb,"__esModule",{value:!0}),tb.default=void 0;var e={relatedConcepts:[],type:"structure"};return tb.default=e,tb}()),Be=vt(function(){if(nb)return rb;nb=1,Object.defineProperty(rb,"__esModule",{value:!0}),rb.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"search"}}],type:"structure"};return rb.default=e,rb}()),Fe=vt(function(){if(sb)return ab;sb=1,Object.defineProperty(ab,"__esModule",{value:!0}),ab.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"searchbox"}},{module:"HTML",concept:{name:"input",attributes:[{name:"type",value:"search"}]}}],type:"widget"};return ab.default=e,ab}()),Ve=vt(function(){if(ib)return ob;ib=1,Object.defineProperty(ob,"__esModule",{value:!0}),ob.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"slider"}},{module:"HTML",concept:{name:"input",attributes:[{name:"type",value:"range"}]}}],type:"widget"};return ob.default=e,ob}()),He=vt(function(){if(lb)return cb;lb=1,Object.defineProperty(cb,"__esModule",{value:!0}),cb.default=void 0;var e={relatedConcepts:[],type:"structure"};return cb.default=e,cb}()),Ue=vt(function(){if(ub)return pb;ub=1,Object.defineProperty(pb,"__esModule",{value:!0}),pb.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"spinbutton"}},{module:"HTML",concept:{name:"input",attributes:[{name:"type",value:"number"}]}}],type:"widget"};return pb.default=e,pb}()),ze=vt(function(){if(db)return hb;db=1,Object.defineProperty(hb,"__esModule",{value:!0}),hb.default=void 0;var e={relatedConcepts:[],type:"structure"};return hb.default=e,hb}()),We=vt(function(){if(mb)return fb;mb=1,Object.defineProperty(fb,"__esModule",{value:!0}),fb.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"separator"}}],type:"widget"};return fb.default=e,fb}()),Ge=vt(function(){if(yb)return vb;yb=1,Object.defineProperty(vb,"__esModule",{value:!0}),vb.default=void 0;var e={relatedConcepts:[],type:"structure"};return vb.default=e,vb}()),Ke=vt(function(){if(gb)return bb;gb=1,Object.defineProperty(bb,"__esModule",{value:!0}),bb.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"status"}}],type:"structure"};return bb.default=e,bb}()),Xe=vt(function(){if(xb)return _b;xb=1,Object.defineProperty(_b,"__esModule",{value:!0}),_b.default=void 0;var e={relatedConcepts:[],type:"structure"};return _b.default=e,_b}()),Je=vt(function(){if(Cb)return wb;Cb=1,Object.defineProperty(wb,"__esModule",{value:!0}),wb.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"switch"}},{module:"HTML",concept:{name:"input",attributes:[{name:"type",value:"checkbox"}]}}],type:"widget"};return wb.default=e,wb}()),Qe=vt(function(){if(kb)return Pb;kb=1,Object.defineProperty(Pb,"__esModule",{value:!0}),Pb.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"tablist"}}],type:"structure"};return Pb.default=e,Pb}()),Ye=vt(function(){if(Sb)return Eb;Sb=1,Object.defineProperty(Eb,"__esModule",{value:!0}),Eb.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"tab"}}],type:"widget"};return Eb.default=e,Eb}()),Ze=vt(function(){if(Ab)return Tb;Ab=1,Object.defineProperty(Tb,"__esModule",{value:!0}),Tb.default=void 0;var e={relatedConcepts:[],type:"structure"};return Tb.default=e,Tb}()),et=vt(function(){if($b)return Rb;$b=1,Object.defineProperty(Rb,"__esModule",{value:!0}),Rb.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"table"}},{module:"HTML",concept:{name:"table"}}],type:"structure"};return Rb.default=e,Rb}()),tt=vt(function(){if(Ib)return qb;Ib=1,Object.defineProperty(qb,"__esModule",{value:!0}),qb.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"tablist"}}],type:"structure"};return qb.default=e,qb}()),nt=vt(function(){if(Lb)return Mb;Lb=1,Object.defineProperty(Mb,"__esModule",{value:!0}),Mb.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"tabpanel"}}],type:"structure"};return Mb.default=e,Mb}()),rt=vt(function(){if(Ob)return Nb;Ob=1,Object.defineProperty(Nb,"__esModule",{value:!0}),Nb.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"term"}}],type:"structure"};return Nb.default=e,Nb}()),st=vt(function(){if(Db)return jb;Db=1,Object.defineProperty(jb,"__esModule",{value:!0}),jb.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{attributes:[{name:"aria-multiline",value:"true"}],name:"textbox"}},{module:"HTML",concept:{name:"textarea"}}],type:"widget"};return jb.default=e,jb}()),at=vt(function(){if(Bb)return Fb;Bb=1,Object.defineProperty(Fb,"__esModule",{value:!0}),Fb.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"textbox"}},{module:"HTML",concept:{name:"input"}},{module:"HTML",concept:{name:"input",attributes:[{name:"type",value:"text"}]}}],type:"widget"};return Fb.default=e,Fb}()),it=vt(function(){if(Vb)return Hb;Vb=1,Object.defineProperty(Hb,"__esModule",{value:!0}),Hb.default=void 0;var e={relatedConcepts:[{module:"HTML",concept:{name:"time"}}],type:"structure"};return Hb.default=e,Hb}()),ot=vt(function(){if(Ub)return zb;Ub=1,Object.defineProperty(zb,"__esModule",{value:!0}),zb.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"timer"}}],type:"structure"};return zb.default=e,zb}()),lt=vt(function(){if(Wb)return Gb;Wb=1,Object.defineProperty(Gb,"__esModule",{value:!0}),Gb.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{attributes:[{name:"aria-pressed"}]}}],type:"widget"};return Gb.default=e,Gb}()),ct=vt(function(){if(Kb)return Xb;Kb=1,Object.defineProperty(Xb,"__esModule",{value:!0}),Xb.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"toolbar"}}],type:"structure"};return Xb.default=e,Xb}()),ut=vt(function(){if(Jb)return Qb;Jb=1,Object.defineProperty(Qb,"__esModule",{value:!0}),Qb.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"tree"}}],type:"widget"};return Qb.default=e,Qb}()),pt=vt(function(){if(Yb)return Zb;Yb=1,Object.defineProperty(Zb,"__esModule",{value:!0}),Zb.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"treegrid"}}],type:"widget"};return Zb.default=e,Zb}()),dt=vt(function(){if(ex)return tx;ex=1,Object.defineProperty(tx,"__esModule",{value:!0}),tx.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"treeitem"}}],type:"widget"};return tx.default=e,tx}()),ht=vt(function(){if(nx)return rx;nx=1,Object.defineProperty(rx,"__esModule",{value:!0}),rx.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"tooltip"}}],type:"structure"};return rx.default=e,rx}()),mt=vt(function(){if(sx)return ax;sx=1,Object.defineProperty(ax,"__esModule",{value:!0}),ax.default=void 0;var e={relatedConcepts:[{module:"HTML",concept:{name:"video"}}],type:"widget"};return ax.default=e,ax}()),ft=vt(function(){if(ix)return ox;ix=1,Object.defineProperty(ox,"__esModule",{value:!0}),ox.default=void 0;var e={relatedConcepts:[],type:"structure"};return ox.default=e,ox}()),yt=vt(function(){if(lx)return px;lx=1,Object.defineProperty(px,"__esModule",{value:!0}),px.default=void 0;var e={relatedConcepts:[],type:"window"};return px.default=e,px}());function vt(e){return e&&e.__esModule?e:{default:e}}function gt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,s,a=[],i=!0,o=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){o=!0,s=e}finally{try{i||null==n.return||n.return()}finally{if(o)throw s}}return a}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return bt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return bt(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function bt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var xt=[["AbbrRole",t.default],["AlertDialogRole",n.default],["AlertRole",r.default],["AnnotationRole",s.default],["ApplicationRole",a.default],["ArticleRole",i.default],["AudioRole",o.default],["BannerRole",l.default],["BlockquoteRole",c.default],["BusyIndicatorRole",u.default],["ButtonRole",p.default],["CanvasRole",d.default],["CaptionRole",h.default],["CellRole",m.default],["CheckBoxRole",f.default],["ColorWellRole",y.default],["ColumnHeaderRole",v.default],["ColumnRole",g.default],["ComboBoxRole",b.default],["ComplementaryRole",x.default],["ContentInfoRole",_.default],["DateRole",C.default],["DateTimeRole",w.default],["DefinitionRole",k.default],["DescriptionListDetailRole",P.default],["DescriptionListRole",S.default],["DescriptionListTermRole",E.default],["DetailsRole",A.default],["DialogRole",T.default],["DirectoryRole",$.default],["DisclosureTriangleRole",R.default],["DivRole",I.default],["DocumentRole",q.default],["EmbeddedObjectRole",L.default],["FeedRole",M.default],["FigcaptionRole",O.default],["FigureRole",N.default],["FooterRole",D.default],["FormRole",j.default],["GridRole",B.default],["GroupRole",F.default],["HeadingRole",V.default],["IframePresentationalRole",H.default],["IframeRole",U.default],["IgnoredRole",z.default],["ImageMapLinkRole",W.default],["ImageMapRole",G.default],["ImageRole",K.default],["InlineTextBoxRole",X.default],["InputTimeRole",J.default],["LabelRole",Q.default],["LegendRole",Y.default],["LineBreakRole",Z.default],["LinkRole",ee.default],["ListBoxOptionRole",te.default],["ListBoxRole",ne.default],["ListItemRole",re.default],["ListMarkerRole",se.default],["ListRole",ae.default],["LogRole",ie.default],["MainRole",oe.default],["MarkRole",le.default],["MarqueeRole",ce.default],["MathRole",ue.default],["MenuBarRole",pe.default],["MenuButtonRole",de.default],["MenuItemRole",he.default],["MenuItemCheckBoxRole",me.default],["MenuItemRadioRole",fe.default],["MenuListOptionRole",ye.default],["MenuListPopupRole",ve.default],["MenuRole",ge.default],["MeterRole",be.default],["NavigationRole",xe.default],["NoneRole",_e.default],["NoteRole",Ce.default],["OutlineRole",we.default],["ParagraphRole",ke.default],["PopUpButtonRole",Pe.default],["PreRole",Se.default],["PresentationalRole",Ee.default],["ProgressIndicatorRole",Ae.default],["RadioButtonRole",Te.default],["RadioGroupRole",$e.default],["RegionRole",Re.default],["RootWebAreaRole",Ie.default],["RowHeaderRole",qe.default],["RowRole",Le.default],["RubyRole",Me.default],["RulerRole",Oe.default],["ScrollAreaRole",Ne.default],["ScrollBarRole",De.default],["SeamlessWebAreaRole",je.default],["SearchRole",Be.default],["SearchBoxRole",Fe.default],["SliderRole",Ve.default],["SliderThumbRole",He.default],["SpinButtonRole",Ue.default],["SpinButtonPartRole",ze.default],["SplitterRole",We.default],["StaticTextRole",Ge.default],["StatusRole",Ke.default],["SVGRootRole",Xe.default],["SwitchRole",Je.default],["TabGroupRole",Qe.default],["TabRole",Ye.default],["TableHeaderContainerRole",Ze.default],["TableRole",et.default],["TabListRole",tt.default],["TabPanelRole",nt.default],["TermRole",rt.default],["TextAreaRole",st.default],["TextFieldRole",at.default],["TimeRole",it.default],["TimerRole",ot.default],["ToggleButtonRole",lt.default],["ToolbarRole",ct.default],["TreeRole",ut.default],["TreeGridRole",pt.default],["TreeItemRole",dt.default],["UserInterfaceTooltipRole",ht.default],["VideoRole",mt.default],["WebAreaRole",ft.default],["WindowRole",yt.default]],_t={entries:function(){return xt},forEach:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=0,r=xt;n<r.length;n++){var s=gt(r[n],2),a=s[0],i=s[1];e.call(t,i,a,xt)}},get:function(e){var t=xt.find((function(t){return t[0]===e}));return t&&t[1]},has:function(e){return!!_t.get(e)},keys:function(){return xt.map((function(e){return gt(e,1)[0]}))},values:function(){return xt.map((function(e){return gt(e,2)[1]}))}},Ct=(0,e.default)(_t,_t.entries());return If.default=Ct,If}function hx(){if(ux)return Ef;ux=1,Object.defineProperty(Ef,"__esModule",{value:!0}),Ef.default=void 0;var e=n($f()),t=n(dx());function n(e){return e&&e.__esModule?e:{default:e}}function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,s,a=[],i=!0,o=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){o=!0,s=e}finally{try{i||null==n.return||n.return()}finally{if(o)throw s}}return a}(e,t)||s(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){if(e){if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(e,t):void 0}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var i,o=[],l=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=s(e))||t){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}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 i,o=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){l=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(l)throw i}}}}(t.default.entries());try{var c=function(){var e=r(i.value,2),t=e[0],n=e[1].relatedConcepts;Array.isArray(n)&&n.forEach((function(e){if("HTML"===e.module){var n=e.concept;if(n){var s=o.findIndex((function(e){return r(e,1)[0]===t}));-1===s&&(o.push([t,[]]),s=o.length-1),o[s][1].push(n)}}}))};for(l.s();!(i=l.n()).done;)c()}catch(e){l.e(e)}finally{l.f()}var u={entries:function(){return o},forEach:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=0,s=o;n<s.length;n++){var a=r(s[n],2),i=a[0],l=a[1];e.call(t,l,i,o)}},get:function(e){var t=o.find((function(t){return t[0]===e}));return t&&t[1]},has:function(e){return!!u.get(e)},keys:function(){return o.map((function(e){return r(e,1)[0]}))},values:function(){return o.map((function(e){return r(e,2)[1]}))}},p=(0,e.default)(u,u.entries());return Ef.default=p,Ef}var mx,fx={};function yx(){if(mx)return fx;mx=1,Object.defineProperty(fx,"__esModule",{value:!0}),fx.default=void 0;var e=n($f()),t=n(dx());function n(e){return e&&e.__esModule?e:{default:e}}function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,s,a=[],i=!0,o=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){o=!0,s=e}finally{try{i||null==n.return||n.return()}finally{if(o)throw s}}return a}(e,t)||s(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){if(e){if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(e,t):void 0}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var i,o=[],l=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=s(e))||t){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}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 i,o=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){l=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(l)throw i}}}}(t.default.entries());try{var c=function(){var e=r(i.value,2),t=e[0],n=e[1].relatedConcepts;Array.isArray(n)&&n.forEach((function(e){if("ARIA"===e.module){var n=e.concept;if(n){var s=o.findIndex((function(e){return r(e,1)[0]===t}));-1===s&&(o.push([t,[]]),s=o.length-1),o[s][1].push(n)}}}))};for(l.s();!(i=l.n()).done;)c()}catch(e){l.e(e)}finally{l.f()}var u={entries:function(){return o},forEach:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=0,s=o;n<s.length;n++){var a=r(s[n],2),i=a[0],l=a[1];e.call(t,l,i,o)}},get:function(e){var t=o.find((function(t){return t[0]===e}));return t&&t[1]},has:function(e){return!!u.get(e)},keys:function(){return o.map((function(e){return r(e,1)[0]}))},values:function(){return o.map((function(e){return r(e,2)[1]}))}},p=(0,e.default)(u,u.entries());return fx.default=p,fx}var vx,gx,bx={};function xx(){if(vx)return bx;vx=1,Object.defineProperty(bx,"__esModule",{value:!0}),bx.default=void 0;var e=n(dx()),t=n($f());function n(e){return e&&e.__esModule?e:{default:e}}function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,s,a=[],i=!0,o=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){o=!0,s=e}finally{try{i||null==n.return||n.return()}finally{if(o)throw s}}return a}(e,t)||s(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){if(e){if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(e,t):void 0}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var i,o=[],l=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=s(e))||t){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}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 i,o=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){l=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(l)throw i}}}}(e.default.entries());try{var c=function(){var e=r(i.value,2),t=e[0],n=e[1].relatedConcepts;Array.isArray(n)&&n.forEach((function(e){if("HTML"===e.module){var n=e.concept;if(null!=n){for(var r,s=JSON.stringify(n),a=0;a<o.length;a++){var i=o[a][0];if(JSON.stringify(i)===s){r=o[a][1];break}}Array.isArray(r)||(r=[]),-1===r.findIndex((function(e){return e===t}))&&r.push(t),a<o.length?o.splice(a,1,[n,r]):o.push([n,r])}}}))};for(l.s();!(i=l.n()).done;)c()}catch(e){l.e(e)}finally{l.f()}var u={entries:function(){return o},forEach:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=0,s=o;n<s.length;n++){var a=r(s[n],2),i=a[0],l=a[1];e.call(t,l,i,o)}},get:function(e){var t=o.find((function(t){return e.name===t[0].name&&function(e,t){if(void 0===e&&void 0!==t)return!1;if(void 0!==e&&void 0===t)return!1;if(void 0!==e&&void 0!==t){if(e.length!=t.length)return!1;for(var n=0;n<e.length;n++)if(t[n].name!==e[n].name||t[n].value!==e[n].value)return!1}return!0}(e.attributes,t[0].attributes)}));return t&&t[1]},has:function(e){return!!u.get(e)},keys:function(){return o.map((function(e){return r(e,1)[0]}))},values:function(){return o.map((function(e){return r(e,2)[1]}))}},p=(0,t.default)(u,u.entries());return bx.default=p,bx}var _x=function(){if(gx)return Sf;gx=1,Object.defineProperty(Sf,"__esModule",{value:!0}),Sf.elementAXObjects=Sf.AXObjects=Sf.AXObjectRoles=Sf.AXObjectElements=void 0;var e=s(hx()),t=s(yx()),n=s(dx()),r=s(xx());function s(e){return e&&e.__esModule?e:{default:e}}var a=e.default;Sf.AXObjectElements=a;var i=t.default;Sf.AXObjectRoles=i;var o=n.default;Sf.AXObjects=o;var l=r.default;return Sf.elementAXObjects=l,Sf}();const Cx=Pf.roles.keys(),wx=Cx.filter((e=>Pf.roles.get(e)?.abstract)),kx=Cx.filter((e=>!wx.includes(e))),Px=kx.filter((e=>{const t=Pf.roles.get(e);return!["toolbar","tabpanel","generic","cell"].includes(e)&&!t?.superClass.some((e=>e.includes("widget")))})).concat("progressbar"),Sx=kx.filter((e=>!Px.includes(e)&&"generic"!==e));function Ex(e){return Px.includes(e)}function Ax(e){return Sx.includes(e)}function Tx(e){return wx.includes(e)}const $x=["presentation","none"];function Rx(e){return $x.includes(e)}function Ix(e,t){if("input"===e){if("hidden"===f_(t.get("type")))return!0}const n=t.get("aria-hidden");if(!n)return!1;const r=f_(n);return null===r||(!0===r||"true"===r)}function qx(e){if(f_(e.get("disabled")))return!0;const t=e.get("aria-disabled");if(t){if("true"===f_(t))return!0}return!1}const Lx=[];Pf.elementRoles.entries().forEach((([e,t])=>{[...t].every((e=>"generic"!==e&&Px.includes(e)))&&Lx.push(e)}));const Mx=[];Pf.elementRoles.entries().forEach((([e,t])=>{[...t].every((e=>Sx.includes(e)))&&Mx.push(e)}));const Ox=[..._x.AXObjects.keys()].filter((e=>"widget"===_x.AXObjects.get(e).type)),Nx=[..._x.AXObjects.keys()].filter((e=>["windows","structure"].includes(_x.AXObjects.get(e).type))),Dx=[];_x.elementAXObjects.entries().forEach((([e,t])=>{[...t].every((e=>Ox.includes(e)))&&Dx.push(e)}));const jx=[];function Bx(e,t,n){return e.name===t&&(!e.attributes||e.attributes.every((e=>{const t=n.get(e.name);return!!t&&(!e.value||e.value===y_(t))})))}_x.elementAXObjects.entries().forEach((([e,t])=>{[...t].every((e=>Nx.includes(e)))&&jx.push(e)}));const Fx={Interactive:"interactive",NonInteractive:"non-interactive",Static:"static"};function Vx(e,t){return Mx.some((n=>Bx(n,e,t)))?Fx.Interactive:"header"!==e&&Lx.some((n=>Bx(n,e,t)))?Fx.NonInteractive:Dx.some((n=>Bx(n,e,t)))?Fx.Interactive:jx.some((n=>Bx(n,e,t)))?Fx.NonInteractive:Fx.Static}function Hx(e,t){return Vx(e,t)===Fx.Interactive}function Ux(e,t){return Vx(e,t)===Fx.NonInteractive}function zx(e,t){return Vx(e,t)===Fx.Static}function Wx(e,t,n){for(const[r,s]of _x.elementAXObjects.entries())if(r.name===t&&(!r.attributes||r.attributes.every((e=>n.has(e.name)&&f_(n.get(e.name))===e.value))))for(const t of s){const n=_x.AXObjectRoles.get(t);if(n)for(const{name:t}of n)if(t===e)return!0}return!1}const Gx=["shipping","billing"],Kx=["","on","off","name","honorific-prefix","given-name","additional-name","family-name","honorific-suffix","nickname","username","new-password","current-password","one-time-code","organization-title","organization","street-address","address-line1","address-line2","address-line3","address-level4","address-level3","address-level2","address-level1","country","country-name","postal-code","cc-name","cc-given-name","cc-additional-name","cc-family-name","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc","cc-type","transaction-currency","transaction-amount","language","bday","bday-day","bday-month","bday-year","sex","url","photo"],Xx=["home","work","mobile","fax","pager"],Jx=["tel","tel-country-code","tel-national","tel-area-code","tel-local","tel-local-prefix","tel-local-suffix","tel-extension","email","impp"];const Qx="activedescendant atomic autocomplete busy checked colcount colindex colspan controls current describedby description details disabled dropeffect errormessage expanded flowto grabbed haspopup hidden invalid keyshortcuts label labelledby level live modal multiline multiselectable orientation owns placeholder posinset pressed readonly relevant required roledescription rowcount rowindex rowspan selected setsize sort valuemax valuemin valuenow valuetext".split(" "),Yx={a:["href"],area:["alt","aria-label","aria-labelledby"],html:["lang"],iframe:["title"],img:["alt"],object:["title","aria-label","aria-labelledby"]},Zx=["blink","marquee"],e_=["h1","h2","h3","h4","h5","h6"],t_=["button","input","keygen","meter","output","progress","select","textarea"],n_=["keypress","keydown","keyup","click","contextmenu","dblclick","drag","dragend","dragenter","dragexit","dragleave","dragover","dragstart","drop","mousedown","mouseenter","mouseleave","mousemove","mouseout","mouseover","mouseup"],r_=["click","mousedown","mouseup","keypress","keydown","keyup"],s_=new Map([["header","banner"],["footer","contentinfo"]]),a_=new Map([["a","link"],["area","link"],["article","article"],["aside","complementary"],["body","document"],["button","button"],["datalist","listbox"],["dd","definition"],["dfn","term"],["dialog","dialog"],["details","group"],["dt","term"],["fieldset","group"],["figure","figure"],["form","form"],["h1","heading"],["h2","heading"],["h3","heading"],["h4","heading"],["h5","heading"],["h6","heading"],["hr","separator"],["img","img"],["li","listitem"],["link","link"],["main","main"],["menu","list"],["meter","progressbar"],["nav","navigation"],["ol","list"],["option","option"],["optgroup","group"],["output","status"],["progress","progressbar"],["section","region"],["summary","button"],["table","table"],["tbody","rowgroup"],["textarea","textbox"],["tfoot","rowgroup"],["thead","rowgroup"],["tr","row"],["ul","list"]]),i_=new Map([["command","menuitem"],["checkbox","menuitemcheckbox"],["radio","menuitemradio"]]),o_=new Map([["button","button"],["image","button"],["reset","button"],["submit","button"],["checkbox","checkbox"],["radio","radio"],["range","slider"],["number","spinbutton"],["email","textbox"],["search","searchbox"],["tel","textbox"],["text","textbox"],["url","textbox"]]),l_={ul:["listbox","menu","menubar","radiogroup","tablist","tree","treegrid"],ol:["listbox","menu","menubar","radiogroup","tablist","tree","treegrid"],li:["menuitem","option","row","tab","treeitem"],table:["grid"],td:["gridcell"],fieldset:["radiogroup","presentation"]},c_=["email","search","tel","text","url"];function u_(e,t){return"menuitem"===e?function(e){const t=e.get("type");if(!t)return;const n=y_(t);return n?i_.get(n):void 0}(t):"input"===e?function(e){const t=e.get("type");if(!t)return;const n=y_(t);if(!n)return;return e.has("list")&&c_.includes(n)?"combobox":o_.get(n)}(t):a_.get(e)}const p_=["meta","html","script","style"];function d_(e,t){let n=e.length;for(;n--;){const r=e[n];if("SvelteElement"===r.type)return!0;if("RegularElement"===r.type)return t.includes(r.name)}return!1}function h_(e,t,n,r){const a=n.type;if(null!==r)if(!0===r&&(r=""),"boolean"===a&&"true"!==r&&"false"!==r)!function(e,t){Q(e,"a11y_incorrect_aria_attribute_type_boolean",`The value of '${t}' must be either 'true' or 'false'. It cannot be empty`)}(e,t);else if("integer"!==a||""!==r&&Number.isInteger(+r))if("number"!==a||""!==r&&!isNaN(+r))if("string"!==a&&"id"!==a||""!==r)if("idlist"===a&&""===r)!function(e,t){Q(e,"a11y_incorrect_aria_attribute_type_idlist",`The value of '${t}' must be a space-separated list of strings that represent DOM element IDs`)}(e,t);else if("token"===a){const s=(n.values??[]).map((e=>e.toString()));s.includes(r.toLowerCase())||function(e,t,n){Q(e,"a11y_incorrect_aria_attribute_type_token",`The value of '${t}' must be exactly one of ${n}`)}(e,t,Po(s.map((e=>`"${e}"`))))}else if("tokenlist"===a){const a=(n.values??[]).map((e=>e.toString()));r.toLowerCase().split(s).some((e=>!a.includes(e)))&&function(e,t,n){Q(e,"a11y_incorrect_aria_attribute_type_tokenlist",`The value of '${t}' must be a space-separated list of one or more of ${n}`)}(e,t,Po(a.map((e=>`"${e}"`))))}else"tristate"===a&&"true"!==r&&"false"!==r&&"mixed"!==r&&function(e,t){Q(e,"a11y_incorrect_aria_attribute_type_tristate",`The value of '${t}' must be exactly one of true, false, or mixed`)}(e,t);else re(e,t,"non-empty string");else re(e,t,"number");else!function(e,t){Q(e,"a11y_incorrect_aria_attribute_type_integer",`The value of '${t}' must be an integer`)}(e,t)}function m_(e,t,n=e.name){!function(e,t,n,r){Q(e,"a11y_missing_attribute",`\`<${t}>\` element should have ${n} ${r} attribute`)}(e,n,y.test(t[0])||"href"===t[0]?"an":"a",t.length>1?t.slice(0,-1).join(", ")+` or ${t[t.length-1]}`:t[0])}function f_(e){return e?!0===e.value||(gi(e)?e.value[0].data:null):null}function y_(e){const t=f_(e);return!0===t?null:t}function v_(e,n){const r=new Map,a=new Set,i=[],o="SvelteElement"===e.type;let l=!1,c=!1,p=!1;for(const t of e.attributes)"SpreadAttribute"===t.type?l=!0:"OnDirective"===t.type?a.add(t.name):"Attribute"===t.type?Ci(t)?a.add(t.name.slice(2)):(i.push(t),r.set(t.name,t),"contenteditable"===t.name&&(c=!0)):"BindDirective"===t.type&&$r(t.name)&&(p=!0);for(const t of e.attributes){if("Attribute"!==t.type)continue;const l=t.name.toLowerCase();if(l.startsWith("aria-")){p_.includes(e.name)&&ee(t,e.name);const n=l.slice(5);if(!Qx.includes(n)){ye(t,n,A(n,Qx))}"aria-hidden"===l&&v.test(e.name)&&ne(t,e.name);let s=f_(t);const a=Pf.aria.get(l);void 0!==a&&h_(t,l,a,s),"aria-activedescendant"!==l||o||Hx(e.name,r)||r.has("tabindex")||Z(t)}if("role"===l){p_.includes(e.name)&&ae(t,e.name);const l=f_(t);if("string"==typeof l)for(const c of l.split(s)){const s=c;if(s&&Tx(s))le(t,s);else if(s&&!Cx.includes(s)){ve(t,s,A(s,Cx))}s!==u_(e.name,r)||["ul","ol","li"].includes(e.name)||"a"===e.name&&!r.has("href")||pe(t,s);if(!d_(n.path,["section","article"])){s===s_.get(e.name)&&pe(t,s)}if(!o&&!Wx(s,e.name,r)){const e=Pf.roles.get(s);if(e){const n=Object.keys(e.requiredProps),r=n.some((e=>!i.find((t=>t.name===e))));r&&he(t,s,Po(n.map((e=>`"${e}"`)),"and"))}}if(!qx(r)&&!Ix(e.name,r)&&!Rx(s)&&Ax(s)&&zx(e.name,r)&&!r.get("tabindex")){[...a].some((e=>n_.includes(e)))&&se(e,s)}Hx(e.name,r)&&(Ex(s)||Rx(s))&&ce(e,e.name,s),Ux(e.name,r)&&Ax(s)&&!l_[e.name]?.includes(s)&&ue(e,e.name,s)}}if("accesskey"===l&&Y(t),"autofocus"===l&&te(t),"scope"!==l||o||"th"===e.name||ie(t),"tabindex"===l){const e=f_(t);!isNaN(e)&&+e>0&&de(t)}}const d=r.get("role"),h=y_(d);if(a.has("click")){const t=null!==h&&!Rx(h);if(!o&&!Ix(e.name,r)&&(!d||t)&&!Hx(e.name,r)&&!l){a.has("keydown")||a.has("keyup")||a.has("keypress")||function(e){Q(e,"a11y_click_events_have_key_events",'Visible, non-interactive elements with a click event must be accompanied by a keyboard event handler. Consider whether an interactive element such as `<button type="button">` or `<a>` might be more appropriate. See https://svelte.dev/docs/accessibility-warnings#a11y-click-events-have-key-events for more details')}(e)}}const m=d?h:u_(e.name,r);if(!o&&!Hx(e.name,r)&&!Ax(h)){const t=r.get("tabindex"),n=y_(t);t&&(null===n||Number(n)>=0)&&function(e){Q(e,"a11y_no_noninteractive_tabindex","noninteractive element cannot have nonnegative tabIndex value")}(e)}if("string"==typeof m&&Pf.roles.has(m)){const{props:t}=Pf.roles.get(m),n=Pf.aria.keys().filter((e=>!(e in t))),r=m&&void 0===d;for(const t of i)n.includes(t.name)&&(r?fe(t,t.name,m,e.name):me(t,t.name,m))}if(!c&&!Ix(e.name,r)&&!Rx(h)&&(!Hx(e.name,r)&&Ex(h)||Ux(e.name,r)&&!d)){[...a].some((e=>r_.includes(e)))&&function(e,t){Q(e,"a11y_no_noninteractive_element_interactions",`Non-interactive element \`<${t}>\` should not be assigned mouse or keyboard event listeners`)}(e,e.name)}if(!(d&&null===h||Ix(e.name,r)||Rx(h)||Hx(e.name,r)||Ax(h)||Ux(e.name,r)||Ex(h)||Tx(h))){const t=[...a].filter((e=>n_.includes(e)));t.length>0&&function(e,t,n){Q(e,"a11y_no_static_element_interactions",`\`<${t}>\` with a ${n} handler must have an ARIA role`)}(e,e.name,Po(t))}a.has("mouseover")&&!a.has("focus")&&oe(e,"mouseover","focus"),a.has("mouseout")&&!a.has("blur")&&oe(e,"mouseout","blur");const f=r.has("aria-label")||r.has("aria-labelledby");if("a"===e.name||"button"===e.name){"true"===f_(r.get("aria-hidden"))||f||g_(e)||function(e){Q(e,"a11y_consider_explicit_label","Buttons and links should either contain text or have an `aria-label` or `aria-labelledby` attribute")}(e)}if("a"===e.name){const t=r.get("href")||r.get("xlink:href");if(t){const e=y_(t);null!==e&&(""===e||"#"===e||/^\W*javascript:/i.test(e))&&function(e,t,n){Q(e,"a11y_invalid_attribute",`'${t}' is not a valid ${n} attribute`)}(t,e,t.name)}else if(!l){const t=f_(r.get("id")),n=f_(r.get("name")),s=f_(r.get("aria-disabled"));t||n||"true"===s||m_(e,["href"])}}else if(!l){const t=Yx[e.name];if(t){t.some((e=>r.has(e)))||m_(e,t)}}if("input"===e.name){const t=r.get("type"),n=y_(t);if("image"===n&&!l){const t=["alt","aria-label","aria-labelledby"];t.some((e=>r.has(e)))||m_(e,t,'input type="image"')}const a=r.get("autocomplete");if(t&&a){const e=f_(a);(function(e){if(!0===e)return!1;if(!e)return!0;const t=e.trim().toLowerCase().split(s);if("string"==typeof t[0]&&t[0].startsWith("section-")&&t.shift(),Gx.includes(t[0])&&t.shift(),Kx.includes(t[0]))t.shift();else{if(Xx.includes(t[0])&&t.shift(),!Jx.includes(t[0]))return!1;t.shift()}return"webauthn"===t[0]&&t.shift(),0===t.length})(e)||function(e,t,n){Q(e,"a11y_autocomplete_valid",`'${t}' is an invalid value for 'autocomplete' on \`<input type="${n}">\``)}(a,e,n??"...")}}if("img"===e.name){const t=y_(r.get("alt")),n=f_(r.get("aria-hidden"));t&&!n&&/\b(image|picture|photo)\b/i.test(t)&&function(e){Q(e,"a11y_img_redundant_alt","Screenreaders already announce `<img>` elements as an image")}(e)}if("label"===e.name){const n=e=>{let n=!1;return t(e,{},{_(e,{next:t}){"SvelteElement"===e.type||"SlotElement"===e.type||"Component"===e.type||"RenderTag"===e.type||"RegularElement"===e.type&&(t_.includes(e.name)||"slot"===e.name)?n=!0:t()}}),n};r.has("for")||n(e)||function(e){Q(e,"a11y_label_has_associated_control","A form label must be associated with a control")}(e)}if("video"===e.name){const t=r.get("aria-hidden"),n=t&&f_(t);if(r.has("muted")||"true"===n)return;let s=!1;const a=e.fragment.nodes.find((e=>"RegularElement"===e.type&&"track"===e.name));a&&(s=a.attributes.some((e=>"SpreadAttribute"===e.type||"Attribute"===e.type&&"kind"===e.name&&"captions"===f_(e)))),s||function(e){Q(e,"a11y_media_has_caption",'`<video>` elements must have a `<track kind="captions">`')}(e)}if("figcaption"===e.name&&(d_(n.path,["figure"])||function(e){Q(e,"a11y_figcaption_parent","`<figcaption>` must be an immediate child of `<figure>`")}(e)),"figure"===e.name){const t=e.fragment.nodes.filter((e=>"Comment"!==e.type&&("Text"!==e.type||u.test(e.data)))),n=t.findIndex((e=>"RegularElement"===e.type&&"figcaption"===e.name));-1!==n&&0!==n&&n!==t.length-1&&function(e){Q(e,"a11y_figcaption_index","`<figcaption>` must be first or last child of `<figure>`")}(t[n])}Zx.includes(e.name)&&function(e,t){Q(e,"a11y_distracting_elements",`Avoid \`<${t}>\` elements`)}(e,e.name),f||p||!e_.includes(e.name)||g_(e)||function(e,t){Q(e,"a11y_missing_content",`\`<${t}>\` element should contain text`)}(e,e.name)}function g_(e){for(const t of e.fragment.nodes)if("Text"!==t.type||""!==t.data.trim()){if("RegularElement"===t.type||"SvelteElement"===t.type){if("img"===t.name&&t.attributes.some((e=>"Attribute"===e.type&&"alt"===e.name)))return!0;if(!g_(t))continue}return!0}}const b_=["preventDefault","stopPropagation","stopImmediatePropagation","capture","once","passive","nonpassive","self","trusted"];function x_(e,t){let n=!1,r=null,s=null;for(const a of e.attributes)if("Attribute"===a.type){const n=bi(a);if(t.state.analysis.runes&&(xc(a,e),n)){const e=xi(a);if("SequenceExpression"===e.type){let n=e.start;for(;--n>0;){const r=t.state.analysis.source[n];if("("===r)break;"{"===r&&bs(e)}}}if(g.test(a.name)&&gs(a,a.name),a.name.startsWith("on")&&a.name.length>2){n||vs(a);const e=xi(a);"Identifier"!==e.type||e.name!==a.name||t.state.scope.get(e.name)||Ae(a,a.name)}"slot"===a.name&&_c(t,a),"is"===a.name&&Ee(a);const r=__.get(a.name);r&&Te(a,a.name,r),bc(a)}else if("AnimateDirective"===a.type){const e=t.path.at(-2);"EachBlock"!==e?.type?ms(a):e.key?e.body.nodes.filter((e=>"Comment"!==e.type&&"ConstTag"!==e.type&&("Text"!==e.type||""!==e.data.trim()))).length>1&&ms(a):fs(a),n?hs(a):n=!0}else if("TransitionDirective"===a.type){const e=a.intro&&r||a.outro&&s;if(e){const t=e.intro?e.outro?"transition":"in":"out",n=a.intro?a.outro?"transition":"in":"out";t===n?da(a,t):pa(a,t,n)}a.intro&&(r=a),a.outro&&(s=a)}else if("OnDirective"===a.type){let e=!1,t="";for(const n of a.modifiers){if(!b_.includes(n)){Rs(a,`${b_.slice(0,-1).join(", ")} or ${b_.at(-1)}`)}"passive"===n?e=!0:"nonpassive"!==n&&"preventDefault"!==n||(t=n),e&&t&&Is(a,"passive",t)}}}const __=new Map([["className","class"],["htmlFor","for"]]);function C_(e,t){if(e!==t)throw new Error("Assertion failed")}const w_={_(e,{state:t,next:n,path:r}){const s=r.at(-1),a=[];if("Fragment"===s?.type&&"Comment"!==e.type&&"Text"!==e.type){for(let n=s.nodes.indexOf(e)-1;n>=0;n--){const e=s.nodes[n];if("Comment"===e.type)a.push(...Me(e.start+4,e.data,t.analysis.runes));else if("Text"!==e.type)break}}else{const n=e.leadingComments;if(n)for(const e of n)a.push(...Me(e.start+2,e.value,t.analysis.runes))}a.length>0&&function(e){const t=new Set([...V.at(-1)||[],...e]);V.push(t)}(a),H.set(e,structuredClone(V));const i=t.scopes.get(e);n(void 0!==i&&i!==t.scope?{...t,scope:i}:t),a.length>0&&V.pop()},ArrowFunctionExpression:function(e,t){mc(e,t)},AssignmentExpression:function(e,t){if(gl(e,e.left,t.state),t.state.reactive_statement){if(null!==("MemberExpression"===e.left.type?vi(e.left):e.left))for(const n of ki(e.left)){const e=t.state.scope.get(n.name);e&&t.state.reactive_statement.assignments.add(e)}}t.next()},Attribute:function(e,t){t.next();const n=t.path.at(-1);if("RegularElement"===n.type&&("value"===e.name&&"option"===n.name&&fc(t.path),"loading"===e.name&&"img"===n.name&&fc(t.path)),Ci(e)&&fc(t.path),Er(e.name)&&fc(t.path),!0!==e.value){for(const t of _i(e.value))"ExpressionTag"===t.type&&"FunctionExpression"!==t.expression.type&&"ArrowFunctionExpression"!==t.expression.type&&(e.metadata.expression.has_state||=t.metadata.expression.has_state,e.metadata.expression.has_call||=t.metadata.expression.has_call);if(Ci(e)){const n=t.path.at(-1);"RegularElement"!==n?.type&&"SvelteElement"!==n?.type||(t.state.analysis.uses_event_attributes=!0);const r=xi(e),s=function(e,t,n){if(!t||!_r(e))return null;const r=n.path.at(-1);if("RegularElement"!==r?.type)return null;let s=null,a=null;if(r.metadata.has_spread)return yc;if("ArrowFunctionExpression"===t.type||"FunctionExpression"===t.type)s=t;else if("Identifier"===t.type){if(a=n.state.scope.get(t.name),n.state.analysis.module.scope.references.has(t.name))return yc;if(null!=a)for(const{path:e}of a.references){const t=e.at(-1);if(void 0===t)return yc;const n=e.at(-2);let r=null,s=null;if("OnDirective"===t.type)r=n,s=t.name;else if("ExpressionTag"===t.type&&"Attribute"===n?.type&&Ci(n)){r=e.at(-3);s=vc(n.name)}if(r&&s){if("RegularElement"!==r.type||r.metadata.has_spread||!_r(s))return yc}else if("FunctionDeclaration"!==t.type&&"VariableDeclarator"!==t.type)return yc}if(n.state.analysis.exports.find((e=>e.name===t.name)))return yc;if(null!==a&&null!==a.initial&&!a.updated&&!a.is_called){const e=a.initial.type;"ArrowFunctionExpression"!==e&&"FunctionDeclaration"!==e&&"FunctionExpression"!==e||(s=a.initial)}}if(null==s||s.params.length>1)return yc;const i=new Set,o=s.metadata.scope;for(const[e]of o.references){if("arguments"===e||"$host"===e)return yc;if("store_sub"===o.get(`$${e}`)?.kind)return yc;const t=o.get(e),r=n.state.scope.get(e);if(null!==r&&null!==t&&r.node!==t.node)return yc;if(null!==t&&"store_sub"===t.kind&&i.has(e.slice(1)))return yc;if(null!==t&&"EachBlock"===t.initial?.type)return yc;if(null!==t&&("rest_param"===t.declaration_kind||(!n.state.analysis.runes&&"each"===t.kind||"normal"===t.kind)&&t.updated))return yc;i.add(e)}return{hoisted:!0,function:s}}(e.name.slice(2),r,t);null!==s&&(s.hoisted&&(s.function.metadata.hoisted=!0),e.metadata.delegated=s)}}},AwaitBlock:function(e,t){if(_l(e.pending),_l(e.then),_l(e.catch),t.state.analysis.runes){if(xl(e,t.state,"#"),e.value){const n=e.value.start,r=t.state.analysis.source.substring(n-10,n).match(/{(\s*):then\s+$/);r&&""!==r[1]&&ks({start:n-10,end:n},":")}if(e.error){const n=e.error.start,r=t.state.analysis.source.substring(n-10,n).match(/{(\s*):catch\s+$/);r&&""!==r[1]&&ks({start:n-10,end:n},":")}}fc(t.path),t.next()},BindDirective:function(e,t){bl(e,e.expression,t.state.scope,!0);const n=e.expression,r=vi(n);null===r&&function(e){jr(e,"bind_invalid_expression","Can only bind to an Identifier or MemberExpression")}(e);const s=t.state.scope.get(r.name);if("Identifier"===n.type&&("this"===e.name||s&&("state"===s.kind||"raw_state"===s.kind||"prop"===s.kind||"bindable_prop"===s.kind||"each"===s.kind||"store_sub"===s.kind||s.updated)||function(e){jr(e,"bind_invalid_value","Can only bind to state or props")}(e.expression),t.state.analysis.runes&&"each"===s?.kind&&Ur(e),"snippet"===s?.kind&&ts(e)),"group"===e.name){if(!s)throw new Error("Cannot find declaration for bind:group");const n=[],[r,a]=Pi(e.expression);let i=a,o=t.path.length;for(;o--;){const e=t.path[o];if("EachBlock"===e.type){const t=i.filter((t=>e.metadata.declarations.has(t.name)));t.length>0&&(e.metadata.contains_group_binding=!0,n.push(e),i=i.filter((e=>!t.includes(e))),i.push(...Pi(e.expression)[1]))}}const l=a.map((e=>t.state.scope.get(e.name)));let c;e:for(const[[e,n],s]of t.state.analysis.binding_groups)if(n.length===l.length&&e===r){for(let e=0;e<l.length;e++)if(l[e]!==n[e])continue e;c=s}c||(c=t.state.scope.root.unique("binding_group"),t.state.analysis.binding_groups.set([r,l],c)),e.metadata={binding_group_name:c,parent_each_blocks:n}}"each"===s?.kind&&s.metadata?.inside_rest&&function(e,t){Q(e,"bind_invalid_each_rest",`The rest operator (...) will create a new object and binding '${t}' with the original object will not work`)}(s.node,s.node.name);const a=t.path.at(-1);if("RegularElement"===a?.type||"SvelteElement"===a?.type||"SvelteWindow"===a?.type||"SvelteDocument"===a?.type||"SvelteBody"===a?.type)if(e.name in gc){const t=gc[e.name];if(t.valid_elements&&!t.valid_elements.includes(a.name)&&_s(e,e.name,t.valid_elements.map((e=>`<${e}>`)).join(", ")),t.invalid_elements&&t.invalid_elements.includes(a.name)){const t=Object.entries(gc).filter((([e,t])=>t.valid_elements?.includes(a.name)||!t.valid_elements&&!t.invalid_elements?.includes(a.name))).map((([e])=>e)).sort();xs(e,e.name,`Possible bindings for <${a.name}> are ${t.join(", ")}`)}if("input"===a.name&&"this"!==e.name){const t=a.attributes.find((e=>"Attribute"===e.type&&"type"===e.name));t&&!gi(t)?"value"===e.name&&!0!==t.value||function(e){jr(e,"attribute_invalid_type","'type' attribute must be a static text value if input uses two-way binding")}(t):("checked"===e.name&&"checkbox"!==t?.value[0].data&&_s(e,e.name,'<input type="checkbox">'),"files"===e.name&&"file"!==t?.value[0].data&&_s(e,e.name,'<input type="file">'))}if("select"===a.name&&"this"!==e.name){const e=a.attributes.find((e=>"Attribute"===e.type&&"multiple"===e.name&&!gi(e)&&!0!==e.value));e&&function(e){jr(e,"attribute_invalid_multiple","'multiple' attribute must be static if select uses two-way binding")}(e)}if("offsetWidth"===e.name&&Lr(a.name)&&_s(e,e.name,"non-<svg> elements. Use 'clientWidth' for <svg> instead"),$r(e.name)){const t=a.attributes.find((e=>"Attribute"===e.type&&"contenteditable"===e.name));t?gi(t)||!0===t.value||function(e){jr(e,"attribute_contenteditable_dynamic","'contenteditable' attribute cannot be dynamic if element uses two-way binding")}(t):function(e){jr(e,"attribute_contenteditable_missing","'contenteditable' attribute is required for textContent, innerHTML and innerText two-way bindings")}(e)}}else{const t=A(e.name,Object.keys(gc));if(t){const n=gc[t];n.valid_elements&&!n.valid_elements.includes(a.name)||xs(e,e.name,`Did you mean '${t}'?`)}xs(e,e.name)}t.next()},CallExpression:function(e,t){const n=function(e,t){let n=e.at(t);return"TSNonNullExpression"===n.type||"TSAsExpression"===n.type?e.at(t-1):n}(t.path,-1),r=$l(e,t.state.scope);switch(r){case null:Cl(e.callee,t.state.scope)||(t.state.analysis.needs_context=!0);break;case"$bindable":e.arguments.length>1&&Xr(e,"$bindable","zero or one arguments"),"AssignmentPattern"===n.type&&"ObjectPattern"===t.path.at(-3)?.type&&"VariableDeclarator"===t.path.at(-4)?.type&&"$props"===$l(t.path.at(-4).init,t.state.scope)||function(e){jr(e,"bindable_invalid_location","`$bindable()` can only be used inside a `$props()` declaration")}(e);break;case"$host":e.arguments.length>0?Kr(e,"$host"):"module"!==t.state.ast_type&&t.state.analysis.custom_element||function(e){jr(e,"host_invalid_placement","`$host()` can only be used inside custom element component instances")}(e);break;case"$props":t.state.has_props_rune&&function(e){jr(e,"props_duplicate","Cannot use `$props()` more than once")}(e),t.state.has_props_rune=!0,"VariableDeclarator"===n.type&&"instance"===t.state.ast_type&&t.state.scope===t.state.analysis.instance.scope||function(e){jr(e,"props_invalid_placement","`$props()` can only be used at the top level of components as a variable declaration initializer")}(e),e.arguments.length>0&&Kr(e,r);break;case"$state":case"$state.raw":case"$derived":case"$derived.by":"VariableDeclarator"!==n.type&&("PropertyDefinition"!==n.type||n.static||n.computed)&&rs(e,r),"$derived"!==r&&"$derived.by"!==r||1===e.arguments.length?"$state"===r&&e.arguments.length>1&&Xr(e,r,"zero or one arguments"):Xr(e,r,"exactly one argument");break;case"$effect":case"$effect.pre":"ExpressionStatement"!==n.type&&function(e){jr(e,"effect_invalid_placement","`$effect()` can only be used as an expression statement")}(e),1!==e.arguments.length&&Xr(e,r,"exactly one argument"),t.state.analysis.needs_context=!0;break;case"$effect.tracking":0!==e.arguments.length&&Kr(e,r);break;case"$effect.root":case"$inspect().with":case"$state.snapshot":1!==e.arguments.length&&Xr(e,r,"exactly one argument");break;case"$inspect":e.arguments.length<1&&Xr(e,r,"one or more arguments")}if(t.state.render_tag){const n=$i(t.state.render_tag.expression).arguments.findIndex((n=>n===e||t.path.includes(n)));-1!==n&&t.state.render_tag.metadata.args_with_call_expression.add(n)}if("Identifier"===e.callee.type){const n=t.state.scope.get(e.callee.name);null!==n&&(n.is_called=!0)}"$inspect"===r||"$derived"===r?t.next({...t.state,function_depth:t.state.function_depth+1}):t.next(),t.state.expression&&(!wl(e.callee,t)||t.state.expression.dependencies.size>0)&&(t.state.expression.has_call=!0,t.state.expression.has_state=!0)},ClassBody:function(e,t){const n=[];for(const r of e.body)if("PropertyDefinition"===r.type&&"PrivateIdentifier"===r.key.type&&"CallExpression"===r.value?.type){const e=$l(r.value,t.state.scope);"$derived"!==e&&"$derived.by"!==e||n.push(r.key.name)}t.next({...t.state,private_derived_state:n})},ClassDeclaration:function(e,t){t.state.analysis.runes&&null!==e.id&&kl(t.state.scope.get(e.id.name));const n="module"===t.state.ast_type?0:1;t.state.scope.function_depth>n&&function(e){Q(e,"perf_avoid_nested_class","Avoid declaring classes below the top level scope")}(e),t.next()},ClassDirective:function(e,t){fc(t.path),t.next({...t.state,expression:e.metadata.expression})},Component:function(e,t){const n=t.state.scope.get(e.name.includes(".")?e.name.slice(0,e.name.indexOf(".")):e.name);e.metadata.dynamic=t.state.analysis.runes&&null!==n&&("normal"!==n.kind||e.name.includes(".")),Cc(e,t)},ConstTag:function(e,t){t.state.analysis.runes&&xl(e,t.state,"@");const n=t.path.at(-1),r=t.path.at(-2);("Fragment"!==n?.type||"IfBlock"!==r?.type&&"SvelteFragment"!==r?.type&&"Component"!==r?.type&&"SvelteComponent"!==r?.type&&"EachBlock"!==r?.type&&"AwaitBlock"!==r?.type&&"SnippetBlock"!==r?.type&&("RegularElement"!==r?.type&&"SvelteElement"!==r?.type||!r.attributes.some((e=>"Attribute"===e.type&&"slot"===e.name))))&&function(e){jr(e,"const_tag_invalid_placement","`{@const}` must be the immediate child of `{#snippet}`, `{#if}`, `{:else if}`, `{:else}`, `{#each}`, `{:then}`, `{:catch}`, `<svelte:fragment>` or `<Component>`")}(e),t.next()},DebugTag:function(e,t){t.state.analysis.runes&&xl(e,t.state,"@"),t.next()},EachBlock:function(e,t){xl(e,t.state,"#"),_l(e.body),_l(e.fallback);const n=e.context;"Identifier"!==n.type||"$state"!==n.name&&"$derived"!==n.name||rs(e,n.name),e.key&&(e.metadata.keyed="Identifier"!==e.key.type||!e.index||e.key.name!==e.index),t.visit(e.expression,{...t.state,expression:e.metadata.expression,scope:t.state.scope.parent}),t.visit(e.body),e.key&&t.visit(e.key),e.fallback&&t.visit(e.fallback),fc(t.path)},ExportDefaultDeclaration:function(e,t){t.state.ast_type?function(e){jr(e,"module_illegal_default_export","A component cannot have a default export")}(e):"Identifier"===e.declaration.type&&Pl(e,t.state.scope,e.declaration.name),t.next()},ExportNamedDeclaration:function(e,t){if(t.next(),"VariableDeclaration"===e.declaration?.type){t.state.analysis.runes&&"instance"===t.state.ast_type&&"let"===e.declaration.kind&&function(e){jr(e,"legacy_export_invalid","Cannot use `export let` in runes mode — use `$props()` instead")}(e);for(const n of e.declaration.declarations)for(const r of ki(n.id)){const n=t.state.scope.get(r.name);n&&("derived"===n.kind&&Hr(e),"state"!==n.kind&&"raw_state"!==n.kind||!n.reassigned||ns(e))}}if(t.state.analysis.runes&&e.declaration&&"instance"===t.state.ast_type)if("FunctionDeclaration"===e.declaration.type||"ClassDeclaration"===e.declaration.type)t.state.analysis.exports.push({name:e.declaration.id.name,alias:null});else if("const"===e.declaration.kind)for(const n of e.declaration.declarations)for(const e of ki(n.id))t.state.analysis.exports.push({name:e.name,alias:null})},ExportSpecifier:function(e,t){const n="Identifier"===e.local.type?e.local.name:e.local.value,r="Identifier"===e.exported.type?e.exported.name:e.exported.value;if("instance"===t.state.ast_type){if(t.state.analysis.runes){t.state.analysis.exports.push({name:n,alias:r});const e=t.state.scope.get(n);e&&(e.reassigned=e.updated=!0)}}else Pl(e,t.state.scope,n)},ExpressionStatement:function(e,t){if("NewExpression"===e.expression.type&&"Identifier"===e.expression.callee.type&&1===e.expression.arguments.length&&"ObjectExpression"===e.expression.arguments[0].type&&e.expression.arguments[0].properties.some((e=>"Property"===e.type&&"Identifier"===e.key.type&&"target"===e.key.name))){const n=t.state.scope.get(e.expression.callee.name);if("normal"===n?.kind&&"import"===n.declaration_kind){const t=n.initial;t.source.value.endsWith(".svelte")&&t.specifiers.find((e=>e.local.name===n.node.name&&"ImportDefaultSpecifier"===e.type))&&function(e){Q(e,"legacy_component_creation","Svelte 5 components are no longer classes. Instantiate them using `mount` or `hydrate` (imported from 'svelte') instead.")}(e.expression)}}t.next()},ExpressionTag:function(e,t){!("Attribute"===t.path.at(-1)?.type)&&t.state.parent_element&&(ko("#text",t.state.parent_element)||Ns(e,"`{expression}`",t.state.parent_element)),fc(t.path),t.next({...t.state,expression:e.metadata.expression})},FunctionDeclaration:function(e,t){t.state.analysis.runes&&null!==e.id&&kl(t.state.scope.get(e.id.name)),mc(e,t)},FunctionExpression:function(e,t){mc(e,t)},HtmlTag:function(e,t){t.state.analysis.runes&&xl(e,t.state,"@"),fc(t.path),t.next()},Identifier:function(e,t){let n=t.path.length,r=t.path[--n];if(!yl(e,r))return;if(fc(t.path),"arguments"!==e.name||t.path.some((e=>"FunctionDeclaration"===e.type||"FunctionExpression"===e.type))||function(e){jr(e,"invalid_arguments_usage","The arguments keyword cannot be used within the template or at the top level of a component")}(e),"$$slots"===e.name&&(t.state.analysis.uses_slots=!0),t.state.analysis.runes&&Nr(e.name)&&null===t.state.scope.get(e.name)&&null===t.state.scope.get(e.name.slice(1))){let s=e,a=e.name;for(;"MemberExpression"===r.type;)r.computed&&Jr(r),a+=`.${r.property.name}`,s=r,r=t.path[--n],Nr(a)||("$effect.active"===a&&Zr(r,"$effect.active","$effect.tracking"),"$state.frozen"===a&&Zr(r,"$state.frozen","$state.raw"),"$state.is"===a&&Yr(r,"$state.is"),Qr(r,a));"CallExpression"!==r.type&&function(e){jr(e,"rune_missing_parentheses","Cannot use rune without parentheses")}(s)}let s=t.state.scope.get(e.name);t.state.analysis.runes||("$$props"===e.name&&(t.state.analysis.uses_props=!0),"$$restProps"===e.name&&(t.state.analysis.uses_rest_props=!0)),s&&(t.state.expression&&(t.state.expression.dependencies.add(s),t.state.expression.has_state||="normal"!==s.kind),!t.state.analysis.runes||e===s.node||t.state.function_depth!==s.scope.function_depth||("state"!==s.kind||!s.reassigned&&("CallExpression"!==s.initial?.type||1!==s.initial.arguments.length||"SpreadElement"===s.initial.arguments[0].type||Rc(s.initial.arguments[0],t.state.scope)))&&"raw_state"!==s.kind&&"derived"!==s.kind||"AssignmentExpression"===r.type&&r.left===e||"UpdateExpression"===r.type||function(e){Q(e,"state_referenced_locally","State referenced in its own scope will never update. Did you mean to reference it inside a closure?")}(e),t.state.reactive_statement&&s.scope===t.state.analysis.module.scope&&s.reassigned&&function(e){Q(e,"reactive_declaration_module_script_dependency","Reassignments of module-level declarations will not cause reactive statements to update")}(e))},IfBlock:function(e,t){_l(e.consequent),_l(e.alternate),t.state.analysis.runes&&xl(e,t.state,e.elseif?":":"#"),fc(t.path),t.next()},ImportDeclaration:function(e,t){if(t.state.analysis.runes){const t=e.source.value;if(t.startsWith("svelte/internal")&&function(e){jr(e,"import_svelte_internal_forbidden","Imports of `svelte/internal/*` are forbidden. It contains private runtime code which is subject to change without notice. If you're importing from `svelte/internal/*` to work around a limitation of Svelte, please open an issue at https://github.com/sveltejs/svelte and explain your use case")}(e),"svelte"===t)for(const t of e.specifiers)"ImportSpecifier"===t.type&&("Identifier"!==t.imported.type||"beforeUpdate"!==t.imported.name&&"afterUpdate"!==t.imported.name||es(t,t.imported.name))}},KeyBlock:function(e,t){_l(e.fragment),t.state.analysis.runes&&xl(e,t.state,"#"),fc(t.path),t.next()},LabeledStatement:function(e,t){if("$"===e.label.name){const n=t.path.at(-1);if("instance"===t.state.ast_type&&"Program"===n.type){t.state.analysis.runes&&function(e){jr(e,"legacy_reactive_statement_invalid","`$:` is not allowed in runes mode, use `$derived` or `$effect` instead")}(e);const n={assignments:new Set,dependencies:[]};t.next({...t.state,reactive_statement:n,function_depth:t.state.scope.function_depth+1});for(const[e,r]of t.state.scope.references){const s=t.state.scope.get(e);if(null!==s)for(const{node:e,path:t}of r){let r=e,a=t.length-1,i=t.at(a);for(;"MemberExpression"===i.type;)r=i,i=t.at(--a);if("AssignmentExpression"!==i.type||"="!==i.operator||i.left!==r){n.dependencies.push(s);break}}}if(t.state.reactive_statements.set(e,n),"ExpressionStatement"===e.body.type&&"AssignmentExpression"===e.body.expression.type){let r=ki(e.body.expression.left);if("MemberExpression"===e.body.expression.left.type){const t=vi(e.body.expression.left);null!==t&&(r=[t])}for(const e of r){const r=t.state.scope.get(e.name);"legacy_reactive"===r?.kind&&(r.legacy_dependencies=Array.from(n.dependencies))}}}else t.state.analysis.runes||function(e){Q(e,"reactive_declaration_invalid_placement","Reactive declarations only exist at the top level of the instance script")}(e)}t.next()},LetDirective:function(e,t){const n=t.path.at(-1);(void 0===n||"Component"!==n.type&&"RegularElement"!==n.type&&"SlotElement"!==n.type&&"SvelteElement"!==n.type&&"SvelteComponent"!==n.type&&"SvelteSelf"!==n.type&&"SvelteFragment"!==n.type)&&function(e){jr(e,"let_directive_invalid_placement","`let:` directive at invalid position")}(e)},MemberExpression:function(e,t){if("Identifier"===e.object.type&&"Identifier"===e.property.type){const n=t.state.scope.get(e.object.name);"rest_prop"===n?.kind&&e.property.name.startsWith("$$")&&Wr(e.property)}if(t.state.expression&&!wl(e,t)&&(t.state.expression.has_state=!0),Cl(e,t.state.scope)||(t.state.analysis.needs_context=!0),t.state.reactive_statement){const n=vi(e);if(null!==n){const r=t.state.scope.get(n.name);if(r&&"normal"===r.kind){const n=t.path.at(-1);(r.scope===t.state.analysis.module.scope||"import"===r.declaration_kind||r.initial&&"ArrayExpression"!==r.initial.type&&"ObjectExpression"!==r.initial.type&&r.scope.function_depth<=1)&&"MemberExpression"!==n.type&&"CallExpression"!==n.type&&function(e){Q(e,"reactive_declaration_non_reactive_property","Properties of objects and arrays are not reactive unless in runes mode. Changes to this property will not cause the reactive statement to update")}(e)}}}t.next()},NewExpression:function(e,t){"ClassExpression"===e.callee.type&&t.state.scope.function_depth>0&&function(e){Q(e,"perf_avoid_inline_class","Avoid 'new class' — instead, declare the class at the top level scope")}(e),t.state.analysis.needs_context=!0,t.next()},OnDirective:function(e,t){if(t.state.analysis.runes){const n=t.path.at(-1)?.type;"RegularElement"!==n&&"SvelteElement"!==n||function(e,t){Q(e,"event_directive_deprecated",`Using \`on:${t}\` to listen to the ${t} event is deprecated. Use the event attribute \`on${t}\` instead`)}(e,e.name)}const n=t.path.at(-1);"SvelteElement"!==n?.type&&"RegularElement"!==n?.type||(t.state.analysis.event_directive_node??=e),fc(t.path),t.next({...t.state,expression:e.metadata.expression})},RegularElement:function(e,t){if(x_(e,t),v_(e,t),e.metadata.path=[...t.path],t.state.analysis.elements.push(e),"textarea"===e.name&&e.fragment.nodes.length>0){for(const t of e.attributes)"Attribute"===t.type&&"value"===t.name&&la(e);if(e.fragment.nodes.length>1||"Text"!==e.fragment.nodes[0].type){const t=e.fragment.nodes[0];"Text"===t.type&&(t.data=t.data.replace(a,""),t.raw=t.raw.replace(a,"")),e.attributes.push(bo("value",e.fragment.nodes.at(0).start,e.fragment.nodes.at(-1).end,e.fragment.nodes)),e.fragment.nodes=[]}}if("option"===e.name&&1===e.fragment.nodes?.length&&"ExpressionTag"===e.fragment.nodes[0].type&&!e.attributes.some((e=>"Attribute"===e.type&&"value"===e.name))){const t=e.fragment.nodes[0];e.attributes.push(bo("value",t.start,t.end,[t]))}const n=t.state.scope.get(e.name);var r;if(null!==n&&"import"===n.declaration_kind&&0===n.references.length&&function(e,t){Q(e,"component_name_lowercase",`\`<${t}>\` will be treated as an HTML element unless it begins with a capital letter`)}(e,e.name),e.metadata.has_spread=e.attributes.some((e=>"SpreadAttribute"===e.type)),e.metadata.svg=Lr(e.name),e.metadata.mathml=(r=e.name,Mr.includes(r)),go(e)&&e.attributes.length>0&&fc(t.path),t.state.parent_element){let n=!1,r=!1;const s=[t.state.parent_element];for(let a=t.path.length-1;a>=0;a--){const i=t.path[a];if("IfBlock"!==i.type&&"EachBlock"!==i.type&&"AwaitBlock"!==i.type&&"KeyBlock"!==i.type||(r=!0),n){if("RegularElement"===i.type)s.push(i.name),wo(e.name,s)||(r?$e(e,`\`<${e.name}>\``,i.name):Ns(e,`\`<${e.name}>\``,i.name));else if("Component"===i.type||"SvelteComponent"===i.type||"SvelteElement"===i.type||"SvelteSelf"===i.type||"SnippetBlock"===i.type)break}else"RegularElement"===i.type&&i.name===t.state.parent_element&&(ko(e.name,t.state.parent_element)||(r?$e(e,`\`<${e.name}>\``,t.state.parent_element):Ns(e,`\`<${e.name}>\``,t.state.parent_element)),n=!0)}}const s=e.name.replace(/[a-zA-Z-]*:/g,"");if("/"!==t.state.analysis.source[e.end-2]||yr(s)||Lr(s)||function(e,t){Q(e,"element_invalid_self_closing_tag",`Self-closing HTML tags for non-void elements are ambiguous — use \`<${t} ...></${t}>\` rather than \`<${t} ... />\``)}(e,e.name),t.next({...t.state,parent_element:e.name}),"a"===e.name&&!t.state.parent_element)for(const t of e.fragment.nodes)if("RegularElement"===t.type&&t.metadata.svg&&"svg"!==t.name){e.metadata.svg=!0;break}},RenderTag:function(e,t){xl(e,t.state,"@"),e.metadata.path=[...t.path],t.state.analysis.elements.push(e);const n=$i(e.expression).callee;e.metadata.dynamic="Identifier"!==n.type||"normal"!==t.state.scope.get(n.name)?.kind,t.state.analysis.uses_render_tags=!0;const r=$i(e.expression).arguments;for(const e of r)"SpreadElement"===e.type&&Ds(e);"MemberExpression"===n.type&&"Identifier"===n.property.type&&["bind","apply","call"].includes(n.property.name)&&function(e){jr(e,"render_tag_invalid_call_expression","Calling a snippet function using apply, bind or call is not allowed")}(e),fc(t.path),t.next({...t.state,render_tag:e})},SlotElement:function(e,t){t.state.analysis.runes&&!t.state.analysis.custom_element&&function(e){Q(e,"slot_element_deprecated","Using `<slot>` to render parent content is deprecated. Use `{@render ...}` tags instead")}(e),fc(t.path);let n="default";for(const t of e.attributes)"Attribute"===t.type?"name"===t.name&&(gi(t)||Ws(t),n=t.value[0].data,"default"===n&&Gs(t)):"SpreadAttribute"!==t.type&&"LetDirective"!==t.type&&zs(t);t.state.analysis.slot_names.set(n,e),t.next()},SnippetBlock:function(e,t){_l(e.body),t.state.analysis.runes&&xl(e,t.state,"#");for(const t of e.parameters)"RestElement"===t.type&&Ks(t);t.next({...t.state,parent_element:null});const{path:n}=t,r=n.at(-2);r&&("Component"===r.type&&r.attributes.some((t=>("Attribute"===t.type||"BindDirective"===t.type)&&t.name===e.expression.name))&&function(e,t){jr(e,"snippet_shadowing_prop",`This snippet is shadowing the prop \`${t}\` with the same name`)}(e,e.expression.name),"children"===e.expression.name&&("Component"!==r.type&&"SvelteComponent"!==r.type&&"SvelteSelf"!==r.type||r.fragment.nodes.some((e=>"SnippetBlock"!==e.type&&("Text"!==e.type||e.data.trim())&&"Comment"!==e.type))&&function(e){jr(e,"snippet_conflict","Cannot use explicit children snippet at the same time as implicit children content. Remove either the non-whitespace content or the children snippet block")}(e)))},SpreadAttribute:function(e,t){fc(t.path),t.next({...t.state,expression:e.metadata.expression})},StyleDirective:function(e,t){if((e.modifiers.length>1||e.modifiers.length&&"important"!==e.modifiers[0])&&function(e){jr(e,"style_directive_invalid_modifier","`style:` directive can only use the `important` modifier")}(e),fc(t.path),!0===e.value){let n=t.state.scope.get(e.name);n&&"normal"!==n.kind&&(e.metadata.expression.has_state=!0)}else{t.next();for(const t of _i(e.value))"ExpressionTag"===t.type&&(e.metadata.expression.has_state||=t.metadata.expression.has_state,e.metadata.expression.has_call||=t.metadata.expression.has_call)}},SvelteBody:function(e,t){ll(e);for(const t of e.attributes)("SpreadAttribute"===t.type||"Attribute"===t.type&&!Ci(t))&&Xs(t);t.next()},SvelteComponent:function(e,t){t.state.analysis.runes&&function(e){Q(e,"svelte_component_deprecated","`<svelte:component>` is deprecated in runes mode — components are dynamic by default")}(e),t.visit(e.expression),Cc(e,t)},SvelteDocument:function(e,t){ll(e);for(const t of e.attributes)("SpreadAttribute"===t.type||"Attribute"===t.type&&!Ci(t))&&Os(t,"svelte:document");t.next()},SvelteElement:function(e,t){x_(e,t),v_(e,t),e.metadata.path=[...t.path],t.state.analysis.elements.push(e);const n=e.attributes.find((e=>"Attribute"===e.type&&"xmlns"===e.name&&gi(e)));if(n)e.metadata.svg=n.value[0].data===S,e.metadata.mathml=n.value[0].data===E;else{let n=t.path.length;for(;n--;){const r=t.path[n];if("Component"===r.type||"SvelteComponent"===r.type||"SvelteFragment"===r.type||"SnippetBlock"===r.type||0===n){e.metadata.svg="svg"===t.state.options.namespace,e.metadata.mathml="mathml"===t.state.options.namespace;break}if("SvelteElement"===r.type||"RegularElement"===r.type){e.metadata.svg=("RegularElement"!==r.type||"foreignObject"!==r.name)&&r.metadata.svg,e.metadata.mathml=("RegularElement"!==r.type||"foreignObject"!==r.name)&&r.metadata.mathml;break}}}fc(t.path),t.next({...t.state,parent_element:null})},SvelteFragment:function(e,t){const n=t.path.at(-2);"Component"!==n?.type&&"SvelteComponent"!==n?.type&&function(e){jr(e,"svelte_fragment_invalid_placement","`<svelte:fragment>` must be the direct child of a component")}(e);for(const n of e.attributes)"Attribute"===n.type?"slot"===n.name&&_c(t,n):"LetDirective"!==n.type&&Qs(n);t.next({...t.state,parent_element:null})},SvelteHead:function(e,t){for(const t of e.attributes)Ys(t);fc(t.path),t.next()},SvelteSelf:function(e,t){if(t.path.some((e=>"IfBlock"===e.type||"EachBlock"===e.type||"Component"===e.type||"SnippetBlock"===e.type))||function(e){jr(e,"svelte_self_invalid_placement","`<svelte:self>` components can only exist inside `{#if}` blocks, `{#each}` blocks, `{#snippet}` blocks or slots passed to components")}(e),t.state.analysis.runes){!function(e,t,n){Q(e,"svelte_self_deprecated",`\`<svelte:self>\` is deprecated — use self-imports (e.g. \`import ${t} from './${n}'\`) instead`)}(e,"(unknown)"===O?"Self":t.state.analysis.name,"(unknown)"===O?"Self.svelte":O.split(/[/\\]/).pop())}Cc(e,t)},SvelteWindow:function(e,t){ll(e);for(const t of e.attributes)("SpreadAttribute"===t.type||"Attribute"===t.type&&!Ci(t))&&Os(t,"svelte:window");t.next()},TaggedTemplateExpression:function(e,t){if(t.state.expression&&!wl(e.tag,t)&&(t.state.expression.has_call=!0,t.state.expression.has_state=!0),"Identifier"===e.tag.type){const n=t.state.scope.get(e.tag.name);null!==n&&(n.is_called=!0)}t.next()},Text:function(e,t){!("Attribute"===t.path.at(-1)?.type)&&t.state.parent_element&&u.test(e.data)&&(ko("#text",t.state.parent_element)||Ns(e,"Text node",t.state.parent_element))},TransitionDirective:function(e,t){fc(t.path),t.next()},TitleElement:function(e,t){for(const t of e.attributes)ca(t);for(const t of e.fragment.nodes)"Text"!==t.type&&"ExpressionTag"!==t.type&&ua(t);t.next()},UpdateExpression:function(e,t){if(gl(e,e.argument,t.state),t.state.reactive_statement){const n="MemberExpression"===e.argument.type?vi(e.argument):e.argument;if("Identifier"===n?.type){const e=t.state.scope.get(n.name);e&&t.state.reactive_statement.assignments.add(e)}}t.next()},UseDirective:function(e,t){fc(t.path),t.next()},VariableDeclarator:function(e,t){if(function(e,t){const n=ki(e.id);for(const r of n)"instance"===t.ast_type&&t.scope===t.analysis.instance.scope&&"import"===t.analysis.module.scope.get(r.name)?.declaration_kind&&Vr(e.id)}(e,t.state),t.state.analysis.runes){const n=$l(e.init,t.state.scope),r=Ei(e.id);for(const e of r)kl(t.state.scope.get(e.node.name));if("$state"===n||"$state.raw"===n||"$derived"===n||"$derived.by"===n||"$props"===n)for(const e of r){t.state.scope.get(e.node.name).kind="$state"===n?"state":"$state.raw"===n?"raw_state":"$derived"===n||"$derived.by"===n?"derived":e.is_rest?"rest_prop":"prop"}if("$props"===n)if("ObjectPattern"!==e.id.type&&"Identifier"!==e.id.type&&function(e){jr(e,"props_invalid_identifier","`$props()` can only be used with an object destructuring pattern")}(e),t.state.analysis.needs_props=!0,"Identifier"===e.id.type){const n=t.state.scope.get(e.id.name);n.initial=null,n.kind="rest_prop"}else{C_(e.id.type,"ObjectPattern");for(const n of e.id.properties){if("Property"!==n.type)continue;n.computed&&Gr(n),"Identifier"===n.key.type&&n.key.name.startsWith("$$")&&Wr(n);const e="AssignmentPattern"===n.value.type?n.value.left:n.value;"Identifier"!==e.type&&Gr(n);const r="Identifier"===n.key.type?n.key.name:String(n.key.value);let s="AssignmentPattern"===n.value.type?n.value.right:null;const a=t.state.scope.get(e.name);a.prop_alias=r,"CallExpression"===s?.type&&"Identifier"===s.callee.type&&"$bindable"===s.callee.name?(a.initial=s.arguments[0]??null,a.kind="bindable_prop"):a.initial=s}}}else if("CallExpression"===e.init?.type){const n=e.init.callee;"Identifier"!==n.type||"$state"!==n.name&&"$derived"!==n.name&&"$props"!==n.name||"store_sub"===t.state.scope.get(n.name)?.kind||function(e,t){jr(e,"rune_invalid_usage",`Cannot use \`${t}\` rune in non-runes mode`)}(e.init,n.name)}t.next()}};function k_(e,t,n,r){const s=e?.content??{type:"Program",sourceType:"module",start:-1,end:-1,body:[]},{scope:a,scopes:i}=Al(s,t,n,r);return{ast:s,scope:a,scopes:i}}const P_=["$$props","$$restProps","$$slots"];function S_(e,n,r){const s=new El,a=k_(e.module,s,!1,null),i=k_(e.instance,s,!0,a.scope),{scope:o,scopes:l}=Al(e.fragment,s,!1,i.scope),c={ast:e.fragment,scope:o,scopes:l};let u=[];for(const[e,t]of a.scope.references){if("$"!==e[0]||P_.includes(e))continue;"$"!==e&&"$"!==e[1]||zr(t[0].node,e);const n=e.slice(1),s=i.scope.get(n),o=s?.initial;if(!1===r.runes||!Nr(e)||null!==s&&(null===$l(o,i.scope)||"props"!==n&&"$props"===$l(o,i.scope))&&("$derived"!==e||"ImportDeclaration"!==s.initial?.type||"svelte/store"!==s.initial.source.value)){let o;e:for(const e of t)for(let t=e.path.length-1;t>=0;t--){const r=l.get(e.path[t])||a.scopes.get(e.path[t])||i.scopes.get(e.path[t]);if(r){const t=r?.owner(n);if(t&&t!==a.scope&&t!==i.scope){o=e.node;break e}break}}if(o&&jr(o,"store_invalid_scoped_subscription","Cannot subscribe to stores that are not declared at the top level of the component"),!1!==r.runes)if(null===s&&/[a-z]/.test(n[0]))zr(t[0].node,e);else if(null!==s&&Nr(e))for(const{node:e,path:r}of t)"CallExpression"===r.at(-1)?.type&&Se(e,n);if(a.ast)for(const{node:e,path:n}of t)e.start>a.ast.start&&e.end<a.ast.end&&null===$l(n.at(-1),a.scope)&&ss(e);u.push((()=>{null!==s&&"normal"===s.kind&&"let"===s.declaration_kind&&s.reassigned&&(s.kind="state")}));i.scope.declare(La(e),"store_sub","synthetic").references=t,i.scope.references.set(e,t),a.scope.references.delete(e)}}const p=function(e){const t=e.split(/[/\\]/),n=t.pop(),r=t.at(-1);let s=n.replace(".svelte","");return"index"===s&&r&&"src"!==r&&(s=r),s[0].toUpperCase()+s.slice(1)}(r.filename),d=r.runes??Array.from(a.scope.references.keys()).some(Nr);if(!d)for(let e of u)e();if(d&&e.module){const t=e.module.attributes.find((e=>"context"===e.name));t&&function(e){Q(e,"script_context_deprecated",'`context="module"` is deprecated, use the `module` attribute instead')}(t)}const h={name:a.scope.generate(r.name??p),root:s,module:a,instance:i,template:c,elements:[],runes:d,immutable:d||r.immutable,exports:[],uses_props:!1,uses_rest_props:!1,uses_slots:!1,uses_component_bindings:!1,uses_render_tags:!1,needs_context:!1,needs_props:!1,event_directive_node:null,uses_event_attributes:!1,custom_element:r.customElementOptions??r.customElement,inject_styles:"injected"===r.css||r.customElement,accessors:!!r.customElement||(!d&&!!r.accessors||4===r.compatibility?.componentApi),reactive_statements:new Map,binding_groups:new Map,slot_names:new Map,top_level_snippets:[],css:{ast:e.css,hash:e.css?r.cssHash({css:e.css.content.styles,filename:r.filename,name:p,hash:mr}):"",keyframes:[]},source:n};if(!d){for(const e of i.ast.body)if("ExportNamedDeclaration"===e.type)if(h.needs_props=!0,e.declaration){if("FunctionDeclaration"===e.declaration.type||"ClassDeclaration"===e.declaration.type)h.exports.push({name:e.declaration.id.name,alias:null});else if("VariableDeclaration"===e.declaration.type)if("const"===e.declaration.kind)for(const t of e.declaration.declarations)for(const e of ki(t.id))h.exports.push({name:e.name,alias:null});else for(const t of e.declaration.declarations)for(const e of ki(t.id)){i.scope.get(e.name).kind="bindable_prop"}}else for(const t of e.specifiers){if("Identifier"!==t.local.type||"Identifier"!==t.exported.type)continue;const e=i.scope.get(t.local.name);!e||"var"!==e.declaration_kind&&"let"!==e.declaration_kind?h.exports.push({name:t.local.name,alias:t.exported.name}):(e.kind="bindable_prop",t.exported.name!==t.local.name&&(e.prop_alias=t.exported.name))}for(const e of i.scope.declarations.values())if("normal"===e.kind)for(const{node:t,path:n}of e.references)t!==e.node&&e.updated&&("StyleDirective"===n[n.length-1].type||n.some((e=>"Fragment"===e.type))||"LabeledStatement"===n[1].type&&"$"===n[1].label.name)&&(e.kind="state");t(c.ast,null,{EachBlock(e){const n=c.scopes.get(e);for(const r of n.declarations.values())if(r.updated){const r={scope:n.parent,scopes:c.scopes};t(e.expression,r,{_:Tl,Identifier(e,t){if(yl(e,t.path.at(-1))){const n=t.state.scope.get(e.name);n&&"normal"===n.kind&&"import"!==n.declaration_kind&&(n.kind="state",n.mutated=n.updated=!0)}}});break}}})}if(e.options)for(const t of e.options.attributes)"accessors"===t.name&&h.runes&&xe(t),"customElement"!==t.name||r.customElement||Ce(t),"immutable"===t.name&&h.runes&&_e(t);if(h.runes){const e=a.scope.references.get("$$props");e&&function(e){jr(e,"legacy_props_invalid","Cannot use `$$props` in runes mode")}(e[0].node);const n=a.scope.references.get("$$restProps");n&&function(e){jr(e,"legacy_rest_props_invalid","Cannot use `$$restProps` in runes mode")}(n[0].node);for(const{ast:e,scope:n,scopes:s}of[a,i,c]){t(e,{scope:n,scopes:s,analysis:h,options:r,ast_type:e===i.ast?"instance":e===c.ast?"template":"module",parent_element:null,has_props_rune:!1,component_slots:new Set,expression:null,render_tag:null,private_derived_state:[],function_depth:n.function_depth,instance_scope:i.scope,reactive_statement:null,reactive_statements:new Map},w_)}for(const e of[a.scope,i.scope])e:for(const[t,n]of e.declarations)if("normal"===n.kind&&n.reassigned)t:for(const{path:e}of n.references)if("Fragment"===e[0].type){for(let r=1;r<e.length;r+=1){const s=e[r].type;if("FunctionDeclaration"===s||"FunctionExpression"===s||"ArrowFunctionExpression"===s)continue t;if("BindDirective"===s&&"this"===e[r].name){for(let s=r-1;s>=0;s-=1){const r=e[s].type;if("IfBlock"===r||"EachBlock"===r||"AwaitBlock"===r||"KeyBlock"===r){Pe(n.node,t);continue e}}continue t}}Pe(n.node,t);continue e}}else{i.scope.declare(La("$$props"),"rest_prop","synthetic"),i.scope.declare(La("$$restProps"),"rest_prop","synthetic");for(const{ast:e,scope:n,scopes:s}of[a,i,c]){t(e,{scope:n,scopes:s,analysis:h,options:r,parent_element:null,has_props_rune:!1,ast_type:e===i.ast?"instance":e===c.ast?"template":"module",instance_scope:i.scope,reactive_statement:null,reactive_statements:h.reactive_statements,component_slots:new Set,expression:null,render_tag:null,private_derived_state:[],function_depth:n.function_depth},w_)}for(const[e,t]of i.scope.declarations)if(("prop"===t.kind||"bindable_prop"===t.kind)&&"$$props"!==t.node.name){t.references.filter((e=>e.node!==t.node&&"ExportSpecifier"!==e.path.at(-1)?.type)).length||i.scope.declarations.has(`$${e}`)||ke(t.node,e)}h.reactive_statements=function(e){const t=new Map;for(const[n,r]of e)for(const e of r.assignments){const s=t.get(e.node.name)??[];s.push([n,r]),t.set(e.node.name,s)}const n=[];for(const[,{assignments:t,dependencies:r}]of e)for(const e of t)for(const s of r)t.has(s)||n.push([e.node.name,s.node.name]);const r=Rl(n);if(r?.length){!function(e,t){jr(e,"reactive_declaration_cycle",`Cyclical dependency detected: ${t}`)}(t.get(r[0])[0][0],r.join(" → "))}const s=new Map,a=(e,n)=>{if(![...s.values()].includes(n)){for(const e of n.dependencies)if(!n.assignments.has(e))for(const[n,r]of t.get(e.node.name)??[])a(n,r);s.set(e,n)}};for(const[t,n]of e)a(t,n);return s}(h.reactive_statements)}if(h.event_directive_node&&h.uses_event_attributes&&function(e,t){jr(e,"mixed_event_handler_syntaxes",`Mixing old (on:${t}) and new syntaxes for event handling is not allowed. Use only the on${t} syntax`)}(h.event_directive_node,h.event_directive_node.name),h.uses_render_tags&&(h.uses_slots||!h.custom_element&&h.slot_names.size>0)){!function(e){jr(e,"slot_snippet_conflict","Cannot use `<slot>` syntax and `{@render ...}` tags in the same component. Migrate towards `{@render ...}` tags completely")}(h.slot_names.values().next().value??h.source.indexOf("$$slot"))}if(h.css.ast){!function(e,n){t(e,{keyframes:n.css.keyframes,rule:null},Hl)}(h.css.ast,h);for(const e of h.elements)Xl(h.css.ast,e);const{comment:e}=h.css.ast.content;e&&Me(e.start,e.data,h.runes).includes("css_unused_selector")||t(m=h.css.ast,{stylesheet:m},hc);e:for(const e of h.elements)if("RenderTag"!==e.type&&e.metadata.scoped){if("SvelteElement"===e.type&&"client"===r.generate)continue;let t;for(const n of e.attributes){if("SpreadAttribute"===n.type)continue e;"Attribute"===n.type&&("class"===n.name.toLowerCase()&&(t=n))}if(t&&!0!==t.value)if(gi(t))t.value[0].data+=` ${h.css.hash}`;else{const e={type:"Text",data:` ${h.css.hash}`,raw:` ${h.css.hash}`,start:-1,end:-1,parent:null};Array.isArray(t.value)?t.value.push(e):t.value=[t.value,e]}else e.attributes.push(bo("class",-1,-1,[{type:"Text",data:h.css.hash,raw:h.css.hash,parent:null,start:-1,end:-1}])),go(e)&&1===e.attributes.length&&fc(e.metadata.path)}}var m;return h}const E_={type:"Newline"},A_={type:"Indent"},T_={type:"Dedent"};function $_(...e){return{type:"Sequence",children:e}}function R_(e,t,n=e.length){let r=0;for(let s=t;s<n;s+=1){const t=e[s];"string"==typeof t?r+=t.length:"Chunk"===t.type?r+=t.content.length:"Sequence"===t.type&&(r+=2)}return r}function I_(e,t){const n=H_[e.type];if(!n)throw new Error(`Not implemented ${e.type}`);e.leadingComments&&L_(e.leadingComments,t,!1),n(e,t),e.trailingComments&&t.comments.push(e.trailingComments[0])}function q_(e,t){return{type:"Chunk",content:e,loc:t?.loc??null}}function L_(e,t,n){for(const r of e)t.commands.push({type:"Comment",comment:r}),n||"Line"===r.type||/\n/.test(r.value)?t.commands.push(E_):t.commands.push(" ")}const M_={"||":2,"&&":3,"??":4,"|":5,"^":6,"&":7,"==":8,"!=":8,"===":8,"!==":8,"<":9,">":9,"<=":9,">=":9,in:9,instanceof:9,"<<":10,">>":10,">>>":10,"+":11,"-":11,"*":12,"%":12,"/":12,"**":13},O_={ArrayExpression:20,TaggedTemplateExpression:20,ThisExpression:20,Identifier:20,Literal:18,TemplateLiteral:20,Super:20,SequenceExpression:20,MemberExpression:19,MetaProperty:19,CallExpression:19,ChainExpression:19,ImportExpression:19,NewExpression:19,AwaitExpression:17,ClassExpression:17,FunctionExpression:17,ObjectExpression:17,UpdateExpression:16,UnaryExpression:15,BinaryExpression:14,LogicalExpression:13,ConditionalExpression:4,ArrowFunctionExpression:3,AssignmentExpression:3,YieldExpression:2,RestElement:1};function N_(e,t,n){if("LogicalExpression"===e.type&&"LogicalExpression"===t.type&&("??"===t.operator&&"??"!==e.operator||"??"!==t.operator&&"??"===e.operator))return!0;const r=O_[e.type],s=O_[t.type];return r!==s?!n&&15===r&&14===s&&"**"===t.operator||r<s:(13===r||14===r)&&("**"===e.operator&&"**"===t.operator?!n:n?M_[e.operator]<=M_[t.operator]:M_[e.operator]<M_[t.operator])}const D_=["ImportDeclaration","VariableDeclaration","ExportDefaultDeclaration","ExportNamedDeclaration"],j_=(e,t)=>{let n={type:"EmptyStatement"},r=!0,s=!1;for(const a of e){if("EmptyStatement"===a.type)continue;const e=$_();r||t.commands.push(e,E_),r=!1;const i=a.leadingComments;delete a.leadingComments,i&&i.length>0&&L_(i,t,!0);const o={...t,multiline:!1};I_(a,o),(o.multiline||s||(D_.includes(a.type)||D_.includes(n.type))&&n.type!==a.type)&&e.children.push("\n");let l=!1;for(;t.comments.length;){const e=t.comments.shift();t.commands.push(l?E_:" ",{type:"Comment",comment:e}),l="Line"===e.type}s=o.multiline,n=a}},B_=(e,t)=>{const n=t.commands.length,r=$_(),s=$_(),a={...t,multiline:!1};t.commands.push(`${e.kind} `,r);let i=!0;for(const n of e.declarations)i||t.commands.push(s),i=!1,I_(n,a);a.multiline||e.declarations.length>1&&R_(t.commands,n)>50?(t.multiline=!0,e.declarations.length>1&&r.children.push(A_),s.children.push(",",E_),e.declarations.length>1&&t.commands.push(T_)):s.children.push(", ")};function F_(e,t,n,r){if(0===e.length)return;const s=t.commands.length,a=$_(),i=$_(),o=$_();t.commands.push(a);const l={...t,multiline:!1};let c;for(let n=0;n<e.length;n+=1){const s=e[n],a=0===n,o=n===e.length-1;if(s)if(a||c||t.commands.push(i),r(s,l),o||t.commands.push(","),t.comments.length>0){for(t.commands.push(" ");t.comments.length;){const e=t.comments.shift();t.commands.push({type:"Comment",comment:e}),o||t.commands.push(i)}l.multiline=!0}else o||t.commands.push(i);else t.commands.push(",");c=s}t.commands.push(o);l.multiline||R_(t.commands,s)>50?(t.multiline=!0,a.children.push(A_,E_),i.children.push(E_),o.children.push(T_,E_)):(n&&a.children.push(" "),i.children.push(" "),n&&o.children.push(" "))}const V_={"ArrayExpression|ArrayPattern":(e,t)=>{t.commands.push("["),F_(e.elements,t,!1,I_),t.commands.push("]")},"BinaryExpression|LogicalExpression":(e,t)=>{N_(e.left,e,!1)?(t.commands.push("("),I_(e.left,t),t.commands.push(")")):I_(e.left,t),t.commands.push(` ${e.operator} `),N_(e.right,e,!0)?(t.commands.push("("),I_(e.right,t),t.commands.push(")")):I_(e.right,t)},"BlockStatement|ClassBody":(e,t)=>{0!==e.body.length?(t.multiline=!0,t.commands.push("{",A_,E_),j_(e.body,t),t.commands.push(T_,E_,"}")):t.commands.push("{}")},"CallExpression|NewExpression":(e,t)=>{t.commands.length,"NewExpression"===e.type&&t.commands.push("new ");const n=O_[e.callee.type]<O_.CallExpression||"NewExpression"===e.type&&function(e){for(;e;){if("CallExpression"===e.type)return!0;if("MemberExpression"!==e.type)return!1;e=e.object}}(e.callee);n?(t.commands.push("("),I_(e.callee,t),t.commands.push(")")):I_(e.callee,t),e.optional&&t.commands.push("?.");const r=$_(),s=$_(),a=$_();t.commands.push("(",r);const i={...t,multiline:!1},o={...t,multiline:!1};for(let n=0;n<e.arguments.length;n+=1){if(n>0)if(t.comments.length>0)for(t.commands.push(", ");t.comments.length;){const e=t.comments.shift();t.commands.push({type:"Comment",comment:e}),"Line"===e.type?(i.multiline=!0,t.commands.push(E_)):t.commands.push(" ")}else t.commands.push(s);I_(e.arguments[n],n===e.arguments.length-1?o:i)}t.commands.push(a,")");const l=i.multiline;(l||o.multiline)&&(t.multiline=!0),l?(r.children.push(A_,E_),s.children.push(",",E_),a.children.push(T_,E_)):s.children.push(", ")},"ClassDeclaration|ClassExpression":(e,t)=>{t.commands.push("class "),e.id&&(I_(e.id,t),t.commands.push(" ")),e.superClass&&(t.commands.push("extends "),I_(e.superClass,t),t.commands.push(" ")),I_(e.body,t)},"ForInStatement|ForOfStatement":(e,t)=>{t.commands.push("for "),"ForOfStatement"===e.type&&e.await&&t.commands.push("await "),t.commands.push("("),"VariableDeclaration"===e.left.type?B_(e.left,t):I_(e.left,t),t.commands.push("ForInStatement"===e.type?" in ":" of "),I_(e.right,t),t.commands.push(") "),I_(e.body,t)},"FunctionDeclaration|FunctionExpression":(e,t)=>{e.async&&t.commands.push("async "),t.commands.push(e.generator?"function* ":"function "),e.id&&I_(e.id,t),t.commands.push("("),F_(e.params,t,!1,I_),t.commands.push(") "),I_(e.body,t)},"RestElement|SpreadElement":(e,t)=>{t.commands.push("..."),I_(e.argument,t)}},H_={ArrayExpression:V_["ArrayExpression|ArrayPattern"],ArrayPattern:V_["ArrayExpression|ArrayPattern"],ArrowFunctionExpression:(e,t)=>{e.async&&t.commands.push("async "),t.commands.push("("),F_(e.params,t,!1,I_),t.commands.push(") => "),"ObjectExpression"===e.body.type||"AssignmentExpression"===e.body.type&&"ObjectPattern"===e.body.left.type||"LogicalExpression"===e.body.type&&"ObjectExpression"===e.body.left.type||"ConditionalExpression"===e.body.type&&"ObjectExpression"===e.body.test.type?(t.commands.push("("),I_(e.body,t),t.commands.push(")")):I_(e.body,t)},AssignmentExpression(e,t){I_(e.left,t),t.commands.push(` ${e.operator} `),I_(e.right,t)},AssignmentPattern(e,t){I_(e.left,t),t.commands.push(" = "),I_(e.right,t)},AwaitExpression(e,t){if(e.argument){const n=O_[e.argument.type];n&&n<O_.AwaitExpression?(t.commands.push("await ("),I_(e.argument,t),t.commands.push(")")):(t.commands.push("await "),I_(e.argument,t))}else t.commands.push("await")},BinaryExpression:V_["BinaryExpression|LogicalExpression"],BlockStatement:V_["BlockStatement|ClassBody"],BreakStatement(e,t){e.label?(t.commands.push("break "),I_(e.label,t),t.commands.push(";")):t.commands.push("break;")},CallExpression:V_["CallExpression|NewExpression"],ChainExpression(e,t){I_(e.expression,t)},ClassBody:V_["BlockStatement|ClassBody"],ClassDeclaration:V_["ClassDeclaration|ClassExpression"],ClassExpression:V_["ClassDeclaration|ClassExpression"],ConditionalExpression(e,t){O_[e.test.type]>O_.ConditionalExpression?I_(e.test,t):(t.commands.push("("),I_(e.test,t),t.commands.push(")"));const n=$_(),r=$_(),s={...t,multiline:!1};t.commands.push(n),I_(e.consequent,s),t.commands.push(r),I_(e.alternate,s);s.multiline?(n.children.push(A_,E_,"? "),r.children.push(E_,": "),t.commands.push(T_)):(n.children.push(" ? "),r.children.push(" : "))},ContinueStatement(e,t){e.label?(t.commands.push("continue "),I_(e.label,t),t.commands.push(";")):t.commands.push("continue;")},DebuggerStatement(e,t){t.commands.push(q_("debugger",e),";")},DoWhileStatement(e,t){t.commands.push("do "),I_(e.body,t),t.commands.push(" while ("),I_(e.test,t),t.commands.push(");")},EmptyStatement(e,t){t.commands.push(";")},ExportAllDeclaration(e,t){t.commands.push("export * from "),I_(e.source,t),t.commands.push(";")},ExportDefaultDeclaration(e,t){t.commands.push("export default "),I_(e.declaration,t),"FunctionDeclaration"!==e.declaration.type&&t.commands.push(";")},ExportNamedDeclaration(e,t){t.commands.push("export "),e.declaration?I_(e.declaration,t):(t.commands.push("{"),F_(e.specifiers,t,!0,((e,t)=>{I_(e.local,t),e.local.name!==e.exported.name&&(t.commands.push(" as "),I_(e.exported,t))})),t.commands.push("}"),e.source&&(t.commands.push(" from "),I_(e.source,t)),t.commands.push(";"))},ExpressionStatement(e,t){if("AssignmentExpression"===e.expression.type&&"ObjectPattern"===e.expression.left.type)return t.commands.push("("),I_(e.expression,t),void t.commands.push(");");I_(e.expression,t),t.commands.push(";")},ForStatement:(e,t)=>{t.commands.push("for ("),e.init&&("VariableDeclaration"===e.init.type?B_(e.init,t):I_(e.init,t)),t.commands.push("; "),e.test&&I_(e.test,t),t.commands.push("; "),e.update&&I_(e.update,t),t.commands.push(") "),I_(e.body,t)},ForInStatement:V_["ForInStatement|ForOfStatement"],ForOfStatement:V_["ForInStatement|ForOfStatement"],FunctionDeclaration:V_["FunctionDeclaration|FunctionExpression"],FunctionExpression:V_["FunctionDeclaration|FunctionExpression"],Identifier(e,t){let n=e.name;t.commands.push(q_(n,e))},IfStatement(e,t){t.commands.push("if ("),I_(e.test,t),t.commands.push(") "),I_(e.consequent,t),e.alternate&&(t.commands.push(" else "),I_(e.alternate,t))},ImportDeclaration(e,t){if(0===e.specifiers.length)return t.commands.push("import "),I_(e.source,t),void t.commands.push(";");let n=null,r=null;const s=[];for(const t of e.specifiers)"ImportNamespaceSpecifier"===t.type?n=t:"ImportDefaultSpecifier"===t.type?r=t:s.push(t);t.commands.push("import "),r&&(t.commands.push(q_(r.local.name,r)),(n||s.length>0)&&t.commands.push(", ")),n&&t.commands.push(q_("* as "+n.local.name,n)),s.length>0&&(t.commands.push("{"),F_(s,t,!0,((e,t)=>{e.local.name!==e.imported.name&&(I_(e.imported,t),t.commands.push(" as ")),I_(e.local,t)})),t.commands.push("}")),t.commands.push(" from "),I_(e.source,t),t.commands.push(";")},ImportExpression(e,t){t.commands.push("import("),I_(e.source,t),t.commands.push(")")},LabeledStatement(e,t){I_(e.label,t),t.commands.push(": "),I_(e.body,t)},Literal(e,t){const n=e.raw??("string"==typeof e.value?JSON.stringify(e.value):String(e.value));t.commands.push(q_(n,e))},LogicalExpression:V_["BinaryExpression|LogicalExpression"],MemberExpression(e,t){O_[e.object.type]<O_.MemberExpression?(t.commands.push("("),I_(e.object,t),t.commands.push(")")):I_(e.object,t),e.computed?(e.optional&&t.commands.push("?."),t.commands.push("["),I_(e.property,t),t.commands.push("]")):(t.commands.push(e.optional?"?.":"."),I_(e.property,t))},MetaProperty(e,t){I_(e.meta,t),t.commands.push("."),I_(e.property,t)},MethodDefinition(e,t){e.static&&t.commands.push("static "),"get"!==e.kind&&"set"!==e.kind||t.commands.push(e.kind+" "),e.value.async&&t.commands.push("async "),e.value.generator&&t.commands.push("*"),e.computed&&t.commands.push("["),I_(e.key,t),e.computed&&t.commands.push("]"),t.commands.push("("),F_(e.value.params,t,!1,I_),t.commands.push(") "),I_(e.value.body,t)},NewExpression:V_["CallExpression|NewExpression"],ObjectExpression(e,t){t.commands.push("{"),F_(e.properties,t,!0,((e,t)=>{if("Property"===e.type&&"FunctionExpression"===e.value.type){const n=e.value;"get"===e.kind||"set"===e.kind?t.commands.push(e.kind+" "):(n.async&&t.commands.push("async "),n.generator&&t.commands.push("*")),e.computed&&t.commands.push("["),I_(e.key,t),e.computed&&t.commands.push("]"),t.commands.push("("),F_(n.params,t,!1,I_),t.commands.push(") "),I_(n.body,t)}else I_(e,t)})),t.commands.push("}")},ObjectPattern(e,t){t.commands.push("{"),F_(e.properties,t,!0,I_),t.commands.push("}")},ParenthesizedExpression:(e,t)=>I_(e.expression,t),PrivateIdentifier(e,t){t.commands.push("#",q_(e.name,e))},Program(e,t){j_(e.body,t)},Property(e,t){const n="AssignmentPattern"===e.value.type?e.value.left:e.value;e.computed||"init"!==e.kind||"Identifier"!==e.key.type||"Identifier"!==n.type||e.key.name!==n.name?(e.computed&&t.commands.push("["),I_(e.key,t),t.commands.push(e.computed?"]: ":": "),I_(e.value,t)):I_(e.value,t)},PropertyDefinition(e,t){e.static&&t.commands.push("static "),e.computed?(t.commands.push("["),I_(e.key,t),t.commands.push("]")):I_(e.key,t),e.value&&(t.commands.push(" = "),I_(e.value,t)),t.commands.push(";")},RestElement:V_["RestElement|SpreadElement"],ReturnStatement(e,t){if(e.argument){const n=e.argument.leadingComments&&e.argument.leadingComments.some((e=>"Line"===e.type));t.commands.push(n?"return (":"return "),I_(e.argument,t),t.commands.push(n?");":";")}else t.commands.push("return;")},SequenceExpression(e,t){t.commands.push("("),F_(e.expressions,t,!1,I_),t.commands.push(")")},SpreadElement:V_["RestElement|SpreadElement"],StaticBlock(e,t){t.commands.push(A_,"static {",E_),j_(e.body,t),t.commands.push(T_,E_,"}")},Super(e,t){t.commands.push(q_("super",e))},SwitchStatement(e,t){t.commands.push("switch ("),I_(e.discriminant,t),t.commands.push(") {",A_);let n=!0;for(const r of e.cases){n||t.commands.push("\n"),n=!1,r.test?(t.commands.push(E_,"case "),I_(r.test,t),t.commands.push(":")):t.commands.push(E_,"default:"),t.commands.push(A_);for(const e of r.consequent)t.commands.push(E_),I_(e,t);t.commands.push(T_)}t.commands.push(T_,E_,"}")},TaggedTemplateExpression(e,t){I_(e.tag,t),I_(e.quasi,t)},TemplateLiteral(e,t){t.commands.push("`");const{quasis:n,expressions:r}=e;for(let e=0;e<r.length;e++){const s=n[e].value.raw;t.commands.push(s,"${"),I_(r[e],t),t.commands.push("}"),/\n/.test(s)&&(t.multiline=!0)}const s=n[n.length-1].value.raw;t.commands.push(s,"`"),/\n/.test(s)&&(t.multiline=!0)},ThisExpression(e,t){t.commands.push(q_("this",e))},ThrowStatement(e,t){t.commands.push("throw "),I_(e.argument,t),t.commands.push(";")},TryStatement(e,t){t.commands.push("try "),I_(e.block,t),e.handler&&(e.handler.param?(t.commands.push(" catch("),I_(e.handler.param,t),t.commands.push(") ")):t.commands.push(" catch "),I_(e.handler.body,t)),e.finalizer&&(t.commands.push(" finally "),I_(e.finalizer,t))},UnaryExpression(e,t){t.commands.push(e.operator),e.operator.length>1&&t.commands.push(" "),O_[e.argument.type]<O_.UnaryExpression?(t.commands.push("("),I_(e.argument,t),t.commands.push(")")):I_(e.argument,t)},UpdateExpression(e,t){e.prefix?(t.commands.push(e.operator),I_(e.argument,t)):(I_(e.argument,t),t.commands.push(e.operator))},VariableDeclaration(e,t){B_(e,t),t.commands.push(";")},VariableDeclarator(e,t){I_(e.id,t),e.init&&(t.commands.push(" = "),I_(e.init,t))},WhileStatement(e,t){t.commands.push("while ("),I_(e.test,t),t.commands.push(") "),I_(e.body,t)},WithStatement(e,t){t.commands.push("with ("),I_(e.object,t),t.commands.push(") "),I_(e.body,t)},YieldExpression(e,t){e.argument?(t.commands.push(e.delegate?"yield* ":"yield "),I_(e.argument,t)):t.commands.push(e.delegate?"yield*":"yield")}},U_=",".charCodeAt(0),z_=";".charCodeAt(0),W_="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",G_=new Uint8Array(64),K_=new Uint8Array(128);for(let e=0;e<64;e++){const t=W_.charCodeAt(e);G_[e]=t,K_[t]=e}function X_(e,t){let n=0,r=0,s=0;do{const t=e.next();s=K_[t],n|=(31&s)<<r,r+=5}while(32&s);const a=1&n;return n>>>=1,a&&(n=-2147483648|-n),t+n}function J_(e,t,n){let r=t-n;r=r<0?-r<<1|1:r<<1;do{let t=31&r;r>>>=5,r>0&&(t|=32),e.write(G_[t])}while(r>0);return t}function Q_(e,t){return!(e.pos>=t)&&e.peek()!==U_}const Y_="undefined"!=typeof TextDecoder?new TextDecoder:"undefined"!=typeof Buffer?{decode:e=>Buffer.from(e.buffer,e.byteOffset,e.byteLength).toString()}:{decode(e){let t="";for(let n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return t}};class Z_{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(16384)}write(e){const{buffer:t}=this;t[this.pos++]=e,16384===this.pos&&(this.out+=Y_.decode(t),this.pos=0)}flush(){const{buffer:e,out:t,pos:n}=this;return n>0?t+Y_.decode(e.subarray(0,n)):t}}class eC{constructor(e){this.pos=0,this.buffer=e}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(e){const{buffer:t,pos:n}=this,r=t.indexOf(e,n);return-1===r?t.length:r}}function tC(e){const{length:t}=e,n=new eC(e),r=[];let s=0,a=0,i=0,o=0,l=0;do{const e=n.indexOf(";"),t=[];let c=!0,u=0;for(s=0;n.pos<e;){let r;s=X_(n,s),s<u&&(c=!1),u=s,Q_(n,e)?(a=X_(n,a),i=X_(n,i),o=X_(n,o),Q_(n,e)?(l=X_(n,l),r=[s,a,i,o,l]):r=[s,a,i,o]):r=[s],t.push(r),n.pos++}c||nC(t),r.push(t),n.pos=e+1}while(n.pos<=t);return r}function nC(e){e.sort(rC)}function rC(e,t){return e[0]-t[0]}function sC(e){const t=new Z_;let n=0,r=0,s=0,a=0;for(let i=0;i<e.length;i++){const o=e[i];if(i>0&&t.write(z_),0===o.length)continue;let l=0;for(let e=0;e<o.length;e++){const i=o[e];e>0&&t.write(U_),l=J_(t,i[0],l),1!==i.length&&(n=J_(t,i[1],n),r=J_(t,i[2],r),s=J_(t,i[3],s),4!==i.length&&(a=J_(t,i[4],a)))}}return t.flush()}let aC=()=>{throw new Error("Unsupported environment: `window.btoa` or `Buffer` should be supported.")};function iC(e,t={}){if(Array.isArray(e))return iC({type:"Program",body:e,sourceType:"module"},t);const n={commands:[],comments:[],multiline:!1};I_(e,n);let r="",s=0,a=[],i=[];function o(e){r+=e;for(let t=0;t<e.length;t+=1)"\n"===e[t]?(a.push(i),i=[],s=0):s+=1}let l="\n";function c(e){if("string"!=typeof e)switch(e.type){case"Chunk":const t=e.loc;t&&i.push([s,0,t.start.line-1,t.start.column]),o(e.content),t&&i.push([s,0,t.end.line-1,t.end.column]);break;case"Newline":o(l);break;case"Indent":l+="\t";break;case"Dedent":l=l.slice(0,-1);break;case"Sequence":for(let t=0;t<e.children.length;t+=1)c(e.children[t]);break;case"Comment":"Line"===e.comment.type?o(`//${e.comment.value}`):o(`/*${e.comment.value.replace(/\n/g,l)}*/`)}else o(e)}for(let e=0;e<n.commands.length;e+=1)c(n.commands[e]);a.push(i);const u={version:3,names:[],sources:[t.sourceMapSource||null],sourcesContent:[t.sourceMapContent||null],mappings:null==t.sourceMapEncodeMappings||t.sourceMapEncodeMappings?sC(a):a};return Object.defineProperties(u,{toString:{enumerable:!1,value:function(){return JSON.stringify(this)}},toUrl:{enumerable:!1,value:function(){return"data:application/json;charset=utf-8;base64,"+aC(this.toString())}}}),{code:r,map:u}}"undefined"!=typeof window&&"function"==typeof window.btoa?aC=e=>window.btoa(unescape(encodeURIComponent(e))):"function"==typeof Buffer&&(aC=e=>Buffer.from(e,"utf-8").toString("base64"));const oC="5.2.9";class lC{constructor(e){this.bits=e instanceof lC?e.bits.slice():[]}add(e){this.bits[e>>5]|=1<<(31&e)}has(e){return!!(this.bits[e>>5]&1<<(31&e))}}class cC{constructor(e,t,n){this.start=e,this.end=t,this.original=n,this.intro="",this.outro="",this.content=n,this.storeName=!1,this.edited=!1,this.previous=null,this.next=null}appendLeft(e){this.outro+=e}appendRight(e){this.intro=this.intro+e}clone(){const e=new cC(this.start,this.end,this.original);return e.intro=this.intro,e.outro=this.outro,e.content=this.content,e.storeName=this.storeName,e.edited=this.edited,e}contains(e){return this.start<e&&e<this.end}eachNext(e){let t=this;for(;t;)e(t),t=t.next}eachPrevious(e){let t=this;for(;t;)e(t),t=t.previous}edit(e,t,n){return this.content=e,n||(this.intro="",this.outro=""),this.storeName=t,this.edited=!0,this}prependLeft(e){this.outro=e+this.outro}prependRight(e){this.intro=e+this.intro}reset(){this.intro="",this.outro="",this.edited&&(this.content=this.original,this.storeName=!1,this.edited=!1)}split(e){const t=e-this.start,n=this.original.slice(0,t),r=this.original.slice(t);this.original=n;const s=new cC(e,this.end,r);return s.outro=this.outro,this.outro="",this.end=e,this.edited?(s.edit("",!1),this.content=""):this.content=n,s.next=this.next,s.next&&(s.next.previous=s),s.previous=this,this.next=s,s}toString(){return this.intro+this.content+this.outro}trimEnd(e){if(this.outro=this.outro.replace(e,""),this.outro.length)return!0;const t=this.content.replace(e,"");return t.length?(t!==this.content&&(this.split(this.start+t.length).edit("",void 0,!0),this.edited&&this.edit(t,this.storeName,!0)),!0):(this.edit("",void 0,!0),this.intro=this.intro.replace(e,""),!!this.intro.length||void 0)}trimStart(e){if(this.intro=this.intro.replace(e,""),this.intro.length)return!0;const t=this.content.replace(e,"");if(t.length){if(t!==this.content){const e=this.split(this.end-t.length);this.edited&&e.edit(t,this.storeName,!0),this.edit("",void 0,!0)}return!0}return this.edit("",void 0,!0),this.outro=this.outro.replace(e,""),!!this.outro.length||void 0}}function uC(){return"undefined"!=typeof globalThis&&"function"==typeof globalThis.btoa?e=>globalThis.btoa(unescape(encodeURIComponent(e))):"function"==typeof Buffer?e=>Buffer.from(e,"utf-8").toString("base64"):()=>{throw new Error("Unsupported environment: `window.btoa` or `Buffer` should be supported.")}}const pC=uC();let dC=class{constructor(e){this.version=3,this.file=e.file,this.sources=e.sources,this.sourcesContent=e.sourcesContent,this.names=e.names,this.mappings=sC(e.mappings),void 0!==e.x_google_ignoreList&&(this.x_google_ignoreList=e.x_google_ignoreList)}toString(){return JSON.stringify(this)}toUrl(){return"data:application/json;charset=utf-8;base64,"+pC(this.toString())}};function hC(e,t){const n=e.split(/[/\\]/),r=t.split(/[/\\]/);for(n.pop();n[0]===r[0];)n.shift(),r.shift();if(n.length){let e=n.length;for(;e--;)n[e]=".."}return n.concat(r).join("/")}const mC=Object.prototype.toString;function fC(e){const t=e.split("\n"),n=[];for(let e=0,r=0;e<t.length;e++)n.push(r),r+=t[e].length+1;return function(e){let t=0,r=n.length;for(;t<r;){const s=t+r>>1;e<n[s]?r=s:t=s+1}const s=t-1;return{line:s,column:e-n[s]}}}const yC=/\w/;class vC{constructor(e){this.hires=e,this.generatedCodeLine=0,this.generatedCodeColumn=0,this.raw=[],this.rawSegments=this.raw[this.generatedCodeLine]=[],this.pending=null}addEdit(e,t,n,r){if(t.length){const s=t.length-1;let a=t.indexOf("\n",0),i=-1;for(;a>=0&&s>a;){const s=[this.generatedCodeColumn,e,n.line,n.column];r>=0&&s.push(r),this.rawSegments.push(s),this.generatedCodeLine+=1,this.raw[this.generatedCodeLine]=this.rawSegments=[],this.generatedCodeColumn=0,i=a,a=t.indexOf("\n",a+1)}const o=[this.generatedCodeColumn,e,n.line,n.column];r>=0&&o.push(r),this.rawSegments.push(o),this.advance(t.slice(i+1))}else this.pending&&(this.rawSegments.push(this.pending),this.advance(t));this.pending=null}addUneditedChunk(e,t,n,r,s){let a=t.start,i=!0,o=!1;for(;a<t.end;){if(this.hires||i||s.has(a)){const t=[this.generatedCodeColumn,e,r.line,r.column];"boundary"===this.hires?yC.test(n[a])?o||(this.rawSegments.push(t),o=!0):(this.rawSegments.push(t),o=!1):this.rawSegments.push(t)}"\n"===n[a]?(r.line+=1,r.column=0,this.generatedCodeLine+=1,this.raw[this.generatedCodeLine]=this.rawSegments=[],this.generatedCodeColumn=0,i=!0):(r.column+=1,this.generatedCodeColumn+=1,i=!1),a+=1}this.pending=null}advance(e){if(!e)return;const t=e.split("\n");if(t.length>1){for(let e=0;e<t.length-1;e++)this.generatedCodeLine++,this.raw[this.generatedCodeLine]=this.rawSegments=[];this.generatedCodeColumn=0}this.generatedCodeColumn+=t[t.length-1].length}}const gC="\n",bC={insertLeft:!1,insertRight:!1,storeName:!1};class xC{constructor(e,t={}){const n=new cC(0,e.length,e);Object.defineProperties(this,{original:{writable:!0,value:e},outro:{writable:!0,value:""},intro:{writable:!0,value:""},firstChunk:{writable:!0,value:n},lastChunk:{writable:!0,value:n},lastSearchedChunk:{writable:!0,value:n},byStart:{writable:!0,value:{}},byEnd:{writable:!0,value:{}},filename:{writable:!0,value:t.filename},indentExclusionRanges:{writable:!0,value:t.indentExclusionRanges},sourcemapLocations:{writable:!0,value:new lC},storedNames:{writable:!0,value:{}},indentStr:{writable:!0,value:void 0},ignoreList:{writable:!0,value:t.ignoreList}}),this.byStart[0]=n,this.byEnd[e.length]=n}addSourcemapLocation(e){this.sourcemapLocations.add(e)}append(e){if("string"!=typeof e)throw new TypeError("outro content must be a string");return this.outro+=e,this}appendLeft(e,t){if("string"!=typeof t)throw new TypeError("inserted content must be a string");this._split(e);const n=this.byEnd[e];return n?n.appendLeft(t):this.intro+=t,this}appendRight(e,t){if("string"!=typeof t)throw new TypeError("inserted content must be a string");this._split(e);const n=this.byStart[e];return n?n.appendRight(t):this.outro+=t,this}clone(){const e=new xC(this.original,{filename:this.filename});let t=this.firstChunk,n=e.firstChunk=e.lastSearchedChunk=t.clone();for(;t;){e.byStart[n.start]=n,e.byEnd[n.end]=n;const r=t.next,s=r&&r.clone();s&&(n.next=s,s.previous=n,n=s),t=r}return e.lastChunk=n,this.indentExclusionRanges&&(e.indentExclusionRanges=this.indentExclusionRanges.slice()),e.sourcemapLocations=new lC(this.sourcemapLocations),e.intro=this.intro,e.outro=this.outro,e}generateDecodedMap(e){e=e||{};const t=Object.keys(this.storedNames),n=new vC(e.hires),r=fC(this.original);return this.intro&&n.advance(this.intro),this.firstChunk.eachNext((e=>{const s=r(e.start);e.intro.length&&n.advance(e.intro),e.edited?n.addEdit(0,e.content,s,e.storeName?t.indexOf(e.original):-1):n.addUneditedChunk(0,e,this.original,s,this.sourcemapLocations),e.outro.length&&n.advance(e.outro)})),{file:e.file?e.file.split(/[/\\]/).pop():void 0,sources:[e.source?hC(e.file||"",e.source):e.file||""],sourcesContent:e.includeContent?[this.original]:void 0,names:t,mappings:n.raw,x_google_ignoreList:this.ignoreList?[0]:void 0}}generateMap(e){return new dC(this.generateDecodedMap(e))}_ensureindentStr(){void 0===this.indentStr&&(this.indentStr=function(e){const t=e.split("\n"),n=t.filter((e=>/^\t+/.test(e))),r=t.filter((e=>/^ {2,}/.test(e)));if(0===n.length&&0===r.length)return null;if(n.length>=r.length)return"\t";const s=r.reduce(((e,t)=>{const n=/^ +/.exec(t)[0].length;return Math.min(n,e)}),1/0);return new Array(s+1).join(" ")}(this.original))}_getRawIndentString(){return this._ensureindentStr(),this.indentStr}getIndentString(){return this._ensureindentStr(),null===this.indentStr?"\t":this.indentStr}indent(e,t){const n=/^[^\r\n]/gm;var r;if(r=e,"[object Object]"===mC.call(r)&&(t=e,e=void 0),void 0===e&&(this._ensureindentStr(),e=this.indentStr||"\t"),""===e)return this;const s={};if((t=t||{}).exclude){("number"==typeof t.exclude[0]?[t.exclude]:t.exclude).forEach((e=>{for(let t=e[0];t<e[1];t+=1)s[t]=!0}))}let a=!1!==t.indentStart;const i=t=>a?`${e}${t}`:(a=!0,t);this.intro=this.intro.replace(n,i);let o=0,l=this.firstChunk;for(;l;){const t=l.end;if(l.edited)s[o]||(l.content=l.content.replace(n,i),l.content.length&&(a="\n"===l.content[l.content.length-1]));else for(o=l.start;o<t;){if(!s[o]){const t=this.original[o];"\n"===t?a=!0:"\r"!==t&&a&&(a=!1,o===l.start||(this._splitChunk(l,o),l=l.next),l.prependRight(e))}o+=1}o=l.end,l=l.next}return this.outro=this.outro.replace(n,i),this}insert(){throw new Error("magicString.insert(...) is deprecated. Use prependRight(...) or appendLeft(...)")}insertLeft(e,t){return bC.insertLeft||(console.warn("magicString.insertLeft(...) is deprecated. Use magicString.appendLeft(...) instead"),bC.insertLeft=!0),this.appendLeft(e,t)}insertRight(e,t){return bC.insertRight||(console.warn("magicString.insertRight(...) is deprecated. Use magicString.prependRight(...) instead"),bC.insertRight=!0),this.prependRight(e,t)}move(e,t,n){if(n>=e&&n<=t)throw new Error("Cannot move a selection inside itself");this._split(e),this._split(t),this._split(n);const r=this.byStart[e],s=this.byEnd[t],a=r.previous,i=s.next,o=this.byStart[n];if(!o&&s===this.lastChunk)return this;const l=o?o.previous:this.lastChunk;return a&&(a.next=i),i&&(i.previous=a),l&&(l.next=r),o&&(o.previous=s),r.previous||(this.firstChunk=s.next),s.next||(this.lastChunk=r.previous,this.lastChunk.next=null),r.previous=l,s.next=o||null,l||(this.firstChunk=r),o||(this.lastChunk=s),this}overwrite(e,t,n,r){return r=r||{},this.update(e,t,n,{...r,overwrite:!r.contentOnly})}update(e,t,n,r){if("string"!=typeof n)throw new TypeError("replacement content must be a string");if(0!==this.original.length){for(;e<0;)e+=this.original.length;for(;t<0;)t+=this.original.length}if(t>this.original.length)throw new Error("end is out of bounds");if(e===t)throw new Error("Cannot overwrite a zero-length range use appendLeft or prependRight instead");this._split(e),this._split(t),!0===r&&(bC.storeName||(console.warn("The final argument to magicString.overwrite(...) should be an options object. See https://github.com/rich-harris/magic-string"),bC.storeName=!0),r={storeName:!0});const s=void 0!==r&&r.storeName,a=void 0!==r&&r.overwrite;if(s){const n=this.original.slice(e,t);Object.defineProperty(this.storedNames,n,{writable:!0,value:!0,enumerable:!0})}const i=this.byStart[e],o=this.byEnd[t];if(i){let e=i;for(;e!==o;){if(e.next!==this.byStart[e.end])throw new Error("Cannot overwrite across a split point");e=e.next,e.edit("",!1)}i.edit(n,s,!a)}else{const r=new cC(e,t,"").edit(n,s);o.next=r,r.previous=o}return this}prepend(e){if("string"!=typeof e)throw new TypeError("outro content must be a string");return this.intro=e+this.intro,this}prependLeft(e,t){if("string"!=typeof t)throw new TypeError("inserted content must be a string");this._split(e);const n=this.byEnd[e];return n?n.prependLeft(t):this.intro=t+this.intro,this}prependRight(e,t){if("string"!=typeof t)throw new TypeError("inserted content must be a string");this._split(e);const n=this.byStart[e];return n?n.prependRight(t):this.outro=t+this.outro,this}remove(e,t){if(0!==this.original.length){for(;e<0;)e+=this.original.length;for(;t<0;)t+=this.original.length}if(e===t)return this;if(e<0||t>this.original.length)throw new Error("Character is out of bounds");if(e>t)throw new Error("end must be greater than start");this._split(e),this._split(t);let n=this.byStart[e];for(;n;)n.intro="",n.outro="",n.edit(""),n=t>n.end?this.byStart[n.end]:null;return this}reset(e,t){if(0!==this.original.length){for(;e<0;)e+=this.original.length;for(;t<0;)t+=this.original.length}if(e===t)return this;if(e<0||t>this.original.length)throw new Error("Character is out of bounds");if(e>t)throw new Error("end must be greater than start");this._split(e),this._split(t);let n=this.byStart[e];for(;n;)n.reset(),n=t>n.end?this.byStart[n.end]:null;return this}lastChar(){if(this.outro.length)return this.outro[this.outro.length-1];let e=this.lastChunk;do{if(e.outro.length)return e.outro[e.outro.length-1];if(e.content.length)return e.content[e.content.length-1];if(e.intro.length)return e.intro[e.intro.length-1]}while(e=e.previous);return this.intro.length?this.intro[this.intro.length-1]:""}lastLine(){let e=this.outro.lastIndexOf(gC);if(-1!==e)return this.outro.substr(e+1);let t=this.outro,n=this.lastChunk;do{if(n.outro.length>0){if(e=n.outro.lastIndexOf(gC),-1!==e)return n.outro.substr(e+1)+t;t=n.outro+t}if(n.content.length>0){if(e=n.content.lastIndexOf(gC),-1!==e)return n.content.substr(e+1)+t;t=n.content+t}if(n.intro.length>0){if(e=n.intro.lastIndexOf(gC),-1!==e)return n.intro.substr(e+1)+t;t=n.intro+t}}while(n=n.previous);return e=this.intro.lastIndexOf(gC),-1!==e?this.intro.substr(e+1)+t:this.intro+t}slice(e=0,t=this.original.length){if(0!==this.original.length){for(;e<0;)e+=this.original.length;for(;t<0;)t+=this.original.length}let n="",r=this.firstChunk;for(;r&&(r.start>e||r.end<=e);){if(r.start<t&&r.end>=t)return n;r=r.next}if(r&&r.edited&&r.start!==e)throw new Error(`Cannot use replaced character ${e} as slice start anchor.`);const s=r;for(;r;){!r.intro||s===r&&r.start!==e||(n+=r.intro);const a=r.start<t&&r.end>=t;if(a&&r.edited&&r.end!==t)throw new Error(`Cannot use replaced character ${t} as slice end anchor.`);const i=s===r?e-r.start:0,o=a?r.content.length+t-r.end:r.content.length;if(n+=r.content.slice(i,o),!r.outro||a&&r.end!==t||(n+=r.outro),a)break;r=r.next}return n}snip(e,t){const n=this.clone();return n.remove(0,e),n.remove(t,n.original.length),n}_split(e){if(this.byStart[e]||this.byEnd[e])return;let t=this.lastSearchedChunk;const n=e>t.end;for(;t;){if(t.contains(e))return this._splitChunk(t,e);t=n?this.byStart[t.end]:this.byEnd[t.start]}}_splitChunk(e,t){if(e.edited&&e.content.length){const n=fC(this.original)(t);throw new Error(`Cannot split a chunk that has already been edited (${n.line}:${n.column} "${e.original}")`)}const n=e.split(t);return this.byEnd[t]=e,this.byStart[t]=n,this.byEnd[n.end]=n,e===this.lastChunk&&(this.lastChunk=n),this.lastSearchedChunk=e,!0}toString(){let e=this.intro,t=this.firstChunk;for(;t;)e+=t.toString(),t=t.next;return e+this.outro}isEmpty(){let e=this.firstChunk;do{if(e.intro.length&&e.intro.trim()||e.content.length&&e.content.trim()||e.outro.length&&e.outro.trim())return!1}while(e=e.next);return!0}length(){let e=this.firstChunk,t=0;do{t+=e.intro.length+e.content.length+e.outro.length}while(e=e.next);return t}trimLines(){return this.trim("[\\r\\n]")}trim(e){return this.trimStart(e).trimEnd(e)}trimEndAborted(e){const t=new RegExp((e||"\\s")+"+$");if(this.outro=this.outro.replace(t,""),this.outro.length)return!0;let n=this.lastChunk;do{const e=n.end,r=n.trimEnd(t);if(n.end!==e&&(this.lastChunk===n&&(this.lastChunk=n.next),this.byEnd[n.end]=n,this.byStart[n.next.start]=n.next,this.byEnd[n.next.end]=n.next),r)return!0;n=n.previous}while(n);return!1}trimEnd(e){return this.trimEndAborted(e),this}trimStartAborted(e){const t=new RegExp("^"+(e||"\\s")+"+");if(this.intro=this.intro.replace(t,""),this.intro.length)return!0;let n=this.firstChunk;do{const e=n.end,r=n.trimStart(t);if(n.end!==e&&(n===this.lastChunk&&(this.lastChunk=n.next),this.byEnd[n.end]=n,this.byStart[n.next.start]=n.next,this.byEnd[n.next.end]=n.next),r)return!0;n=n.next}while(n);return!1}trimStart(e){return this.trimStartAborted(e),this}hasChanged(){return this.original!==this.toString()}_replaceRegexp(e,t){function n(e,n){return"string"==typeof t?t.replace(/\$(\$|&|\d+)/g,((t,n)=>{if("$"===n)return"$";if("&"===n)return e[0];return+n<e.length?e[+n]:`$${n}`})):t(...e,e.index,n,e.groups)}if(e.global){(function(e,t){let n;const r=[];for(;n=e.exec(t);)r.push(n);return r})(e,this.original).forEach((e=>{if(null!=e.index){const t=n(e,this.original);t!==e[0]&&this.overwrite(e.index,e.index+e[0].length,t)}}))}else{const t=this.original.match(e);if(t&&null!=t.index){const e=n(t,this.original);e!==t[0]&&this.overwrite(t.index,t.index+t[0].length,e)}}return this}_replaceString(e,t){const{original:n}=this,r=n.indexOf(e);return-1!==r&&this.overwrite(r,r+e.length,t),this}replace(e,t){return"string"==typeof e?this._replaceString(e,t):this._replaceRegexp(e,t)}_replaceAllString(e,t){const{original:n}=this,r=e.length;for(let s=n.indexOf(e);-1!==s;s=n.indexOf(e,s+r)){n.slice(s,s+r)!==t&&this.overwrite(s,s+r,t)}return this}replaceAll(e,t){if("string"==typeof e)return this._replaceAllString(e,t);if(!e.global)throw new TypeError("MagicString.prototype.replaceAll called with a non-global RegExp argument");return this._replaceRegexp(e,t)}}const _C=/^[\w+.-]+:\/\//,CC=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,wC=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;var kC;function PC(e){return e.startsWith("/")}function SC(e){return/^[.?#]/.test(e)}function EC(e){const t=CC.exec(e);return AC(t[1],t[2]||"",t[3],t[4]||"",t[5]||"/",t[6]||"",t[7]||"")}function AC(e,t,n,r,s,a,i){return{scheme:e,user:t,host:n,port:r,path:s,query:a,hash:i,type:kC.Absolute}}function TC(e){if(function(e){return e.startsWith("//")}(e)){const t=EC("http:"+e);return t.scheme="",t.type=kC.SchemeRelative,t}if(PC(e)){const t=EC("http://foo.com"+e);return t.scheme="",t.host="",t.type=kC.AbsolutePath,t}if(function(e){return e.startsWith("file:")}(e))return function(e){const t=wC.exec(e),n=t[2];return AC("file:","",t[1]||"","",PC(n)?n:"/"+n,t[3]||"",t[4]||"")}(e);if(function(e){return _C.test(e)}(e))return EC(e);const t=EC("http://foo.com/"+e);return t.scheme="",t.host="",t.type=e?e.startsWith("?")?kC.Query:e.startsWith("#")?kC.Hash:kC.RelativePath:kC.Empty,t}function $C(e,t){const n=t<=kC.RelativePath,r=e.path.split("/");let s=1,a=0,i=!1;for(let e=1;e<r.length;e++){const t=r[e];t?(i=!1,"."!==t&&(".."!==t?(r[s++]=t,a++):a?(i=!0,a--,s--):n&&(r[s++]=t))):i=!0}let o="";for(let e=1;e<s;e++)o+="/"+r[e];(!o||i&&!o.endsWith("/.."))&&(o+="/"),e.path=o}function RC(e,t){if(!e&&!t)return"";const n=TC(e);let r=n.type;if(t&&r!==kC.Absolute){const e=TC(t),s=e.type;switch(r){case kC.Empty:n.hash=e.hash;case kC.Hash:n.query=e.query;case kC.Query:case kC.RelativePath:!function(e,t){$C(t,t.type),"/"===e.path?e.path=t.path:e.path=function(e){if(e.endsWith("/.."))return e;const t=e.lastIndexOf("/");return e.slice(0,t+1)}(t.path)+e.path}(n,e);case kC.AbsolutePath:n.user=e.user,n.host=e.host,n.port=e.port;case kC.SchemeRelative:n.scheme=e.scheme}s>r&&(r=s)}$C(n,r);const s=n.query+n.hash;switch(r){case kC.Hash:case kC.Query:return s;case kC.RelativePath:{const r=n.path.slice(1);return r?SC(t||e)&&!SC(r)?"./"+r+s:r+s:s||"."}case kC.AbsolutePath:return n.path+s;default:return n.scheme+"//"+n.user+n.host+n.port+n.path+s}}function IC(e,t){return t&&!t.endsWith("/")&&(t+="/"),RC(e,t)}!function(e){e[e.Empty=1]="Empty",e[e.Hash=2]="Hash",e[e.Query=3]="Query",e[e.RelativePath=4]="RelativePath",e[e.AbsolutePath=5]="AbsolutePath",e[e.SchemeRelative=6]="SchemeRelative",e[e.Absolute=7]="Absolute"}(kC||(kC={}));const qC=0;function LC(e,t){for(let n=t;n<e.length;n++)if(!MC(e[n]))return n;return e.length}function MC(e){for(let t=1;t<e.length;t++)if(e[t][qC]<e[t-1][qC])return!1;return!0}function OC(e,t){return t||(e=e.slice()),e.sort(NC)}function NC(e,t){return e[qC]-t[qC]}let DC=!1;function jC(e,t,n,r){const{lastKey:s,lastNeedle:a,lastIndex:i}=n;let o=0,l=e.length-1;if(r===s){if(t===a)return DC=-1!==i&&e[i][qC]===t,i;t>=a?o=-1===i?0:i:l=i}return n.lastKey=r,n.lastNeedle=t,n.lastIndex=function(e,t,n,r){for(;n<=r;){const s=n+(r-n>>1),a=e[s][qC]-t;if(0===a)return DC=!0,s;a<0?n=s+1:r=s-1}return DC=!1,n-1}(e,t,o,l)}class BC{constructor(e,t){const n="string"==typeof e;if(!n&&e._decodedMemo)return e;const r=n?JSON.parse(e):e,{version:s,file:a,names:i,sourceRoot:o,sources:l,sourcesContent:c}=r;this.version=s,this.file=a,this.names=i||[],this.sourceRoot=o,this.sources=l,this.sourcesContent=c,this.ignoreList=r.ignoreList||r.x_google_ignoreList||void 0;const u=IC(o||"",function(e){if(!e)return"";const t=e.lastIndexOf("/");return e.slice(0,t+1)}(t));this.resolvedSources=l.map((e=>IC(e||"",u)));const{mappings:p}=r;"string"==typeof p?(this._encoded=p,this._decoded=void 0):(this._encoded=void 0,this._decoded=function(e,t){const n=LC(e,0);if(n===e.length)return e;t||(e=e.slice());for(let r=n;r<e.length;r=LC(e,r+1))e[r]=OC(e[r],t);return e}(p,n)),this._decodedMemo={lastKey:-1,lastNeedle:-1,lastIndex:-1},this._bySources=void 0,this._bySourceMemos=void 0}}function FC(e){var t;return(t=e)._decoded||(t._decoded=tC(e._encoded))}function VC(e,t,n){const r=FC(e);if(t>=r.length)return null;const s=r[t],a=function(e,t,n,r,s){let a=jC(e,r,t,n);DC&&(a=function(e,t,n){for(let r=n-1;r>=0&&e[r][qC]===t;n=r--);return n}(e,r,a));return-1===a||a===e.length?-1:a}(s,e._decodedMemo,t,n);return-1===a?null:s[a]}class HC{constructor(){this._indexes={__proto__:null},this.array=[]}}function UC(e,t){return e._indexes[t]}function zC(e,t){const n=UC(e,t);if(void 0!==n)return n;const{array:r,_indexes:s}=e,a=r.push(t);return s[t]=a-1}const WC=0,GC=1,KC=2,XC=3,JC=4,QC=-1;class YC{constructor({file:e,sourceRoot:t}={}){this._names=new HC,this._sources=new HC,this._sourcesContent=[],this._mappings=[],this.file=e,this.sourceRoot=t,this._ignoreList=new HC}}const ZC=(e,t,n,r,s,a,i,o)=>function(e,t,n,r,s,a,i,o,l){const{_mappings:c,_sources:u,_sourcesContent:p,_names:d}=t,h=function(e,t){for(let n=e.length;n<=t;n++)e[n]=[];return e[t]}(c,n),m=function(e,t){let n=e.length;for(let r=n-1;r>=0;n=r--){if(t>=e[r][WC])break}return n}(h,r);if(!s){if(function(e,t){if(0===t)return!0;const n=e[t-1];return 1===n.length}(h,m))return;return rw(h,m,[r])}const f=zC(u,s),y=o?zC(d,o):QC;f===p.length&&(p[f]=null);if(function(e,t,n,r,s,a){if(0===t)return!1;const i=e[t-1];return 1!==i.length&&(n===i[GC]&&r===i[KC]&&s===i[XC]&&a===(5===i.length?i[JC]:QC))}(h,m,f,a,i,y))return;return rw(h,m,o?[r,f,a,i,y]:[r,f,a,i])}(0,e,t,n,r,s,a,i);function ew(e,t,n){const{_sources:r,_sourcesContent:s}=e;s[zC(r,t)]=n}function tw(e,t,n=!0){const{_sources:r,_sourcesContent:s,_ignoreList:a}=e,i=zC(r,t);i===s.length&&(s[i]=null),n?zC(a,i):function(e,t){const n=UC(e,t);if(void 0===n)return;const{array:r,_indexes:s}=e;for(let e=n+1;e<r.length;e++){const t=r[e];r[e-1]=t,s[t]--}s[t]=void 0,r.pop()}(a,i)}function nw(e){const{_mappings:t,_sources:n,_sourcesContent:r,_names:s,_ignoreList:a}=e;return function(e){const{length:t}=e;let n=t;for(let t=n-1;t>=0&&!(e[t].length>0);n=t,t--);n<t&&(e.length=n)}(t),{version:3,file:e.file||void 0,names:s.array,sourceRoot:e.sourceRoot||void 0,sources:n.array,sourcesContent:r,mappings:t,ignoreList:a.array}}function rw(e,t,n){for(let n=e.length;n>t;n--)e[n]=e[n-1];e[t]=n}const sw=iw("",-1,-1,"",null,!1),aw=[];function iw(e,t,n,r,s,a){return{source:e,line:t,column:n,name:r,content:s,ignore:a}}function ow(e,t,n,r,s){return{map:e,sources:t,source:n,content:r,ignore:s}}function lw(e,t){return ow(e,t,"",null,!1)}function cw(e,t,n,r){if(!e.map)return iw(e.source,t,n,r,e.content,e.ignore);const s=VC(e.map,t,n);return null==s?null:1===s.length?sw:cw(e.sources[s[1]],s[2],s[3],5===s.length?e.map.names[s[4]]:r)}function uw(e,t){const n=(r=e,Array.isArray(r)?r:[r]).map((e=>new BC(e,"")));var r;const s=n.pop();for(let e=0;e<n.length;e++)if(n[e].sources.length>1)throw new Error(`Transformation map ${e} must have exactly one source file.\nDid you specify these with the most recent transformation maps first?`);let a=pw(s,t,"",0);for(let e=n.length-1;e>=0;e--)a=lw(n[e],[a]);return a}function pw(e,t,n,r){const{resolvedSources:s,sourcesContent:a,ignoreList:i}=e,o=r+1,l=s.map(((e,r)=>{const s={importer:n,depth:o,source:e||"",content:void 0,ignore:void 0},l=t(s.source,s),{source:c,content:u,ignore:p}=s;if(l)return pw(new BC(l,c),t,c,o);return function(e,t,n){return ow(null,aw,e,t,n)}(c,void 0!==u?u:a?a[r]:null,void 0!==p?p:!!i&&i.includes(r))}));return lw(e,l)}class dw{constructor(e,t){const n=t.decodedMappings?nw(e):function(e){const t=nw(e);return Object.assign(Object.assign({},t),{mappings:sC(t.mappings)})}(e);this.version=n.version,this.file=n.file,this.mappings=n.mappings,this.names=n.names,this.ignoreList=n.ignoreList,this.sourceRoot=n.sourceRoot,this.sources=n.sources,t.excludeContent||(this.sourcesContent=n.sourcesContent)}toString(){return JSON.stringify(this)}}function hw(e,t,n){const r={excludeContent:!!n,decodedMappings:!1},s=uw(e,t);return new dw(function(e){const t=new YC({file:e.map.file}),{sources:n,map:r}=e,s=r.names,a=FC(r);for(let e=0;e<a.length;e++){const r=a[e];for(let a=0;a<r.length;a++){const i=r[a],o=i[0];let l=sw;if(1!==i.length&&(l=cw(n[i[1]],i[2],i[3],5===i.length?s[i[4]]:""),null==l))continue;const{column:c,line:u,name:p,content:d,source:h,ignore:m}=l;ZC(t,e,o,h,u,c,p),h&&null!=d&&ew(t,h,d),m&&tw(t,h,!0)}}return t}(s),r)}function mw(e,t){for(let n=0;n<t.length;n++)e.push(t[n])}function fw(e,t,n){if(0!=e.mappings.length)for(let r=0;r<e.mappings.length;r++){const s=e.mappings[r];for(let e=0;e<s.length;e++){const r=s[e];r[1]===n&&(0===r[2]&&(r[3]+=t.column),r[2]+=t.line)}}}function yw(e,t){const n=e.slice(),r=[];t=t||[];let s=!1;for(const[a,i]of t.entries()){const t=e.indexOf(i);if(t>=0)r[a]=t;else{const e=n.length;n[e]=i,r[a]=e,s=!0}}let a=s;return s&&void 0===r.find(((e,t)=>e!=t))&&(a=!1),[n,r,s,a]}const vw=/([^\w\s]|\s+)/g;class gw{string=void 0;map=void 0;constructor(e="",t=null){this.string=e,this.map=t||{version:3,mappings:[],sources:[],names:[]}}concat(e){if(""==e.string)return this;if(""==this.string)return this.string=e.string,this.map=e.map,this;const t=(n=this.string).length-n.lastIndexOf("\n")-1;var n;this.string+=e.string;const r=this.map,s=e.map;if(0==s.mappings.length)return this;const[a,i,o,l]=yw(r.sources,s.sources),[c,u,p,d]=yw(r.names,s.names);if(o&&(r.sources=a),p&&(r.names=c),l&&d)for(let e=0;e<s.mappings.length;e++){const t=s.mappings[e];for(let e=0;e<t.length;e++){const n=t[e];n[1]>=0&&(n[1]=i[n[1]]),n[4]>=0&&(n[4]=u[n[4]])}}else if(l)for(let e=0;e<s.mappings.length;e++){const t=s.mappings[e];for(let e=0;e<t.length;e++){const n=t[e];n[1]>=0&&(n[1]=i[n[1]])}}else if(d)for(let e=0;e<s.mappings.length;e++){const t=s.mappings[e];for(let e=0;e<t.length;e++){const n=t[e];n[4]>=0&&(n[4]=u[n[4]])}}if(s.mappings.length>0&&t>0){const e=s.mappings[0];for(let n=0;n<e.length;n++)e[n][0]+=t}return mw(r.mappings[r.mappings.length-1],s.mappings.shift()),mw(r.mappings,s.mappings),this}static from_processed(e,t){const n=e.split("\n").length;if(t){const r=n-t.mappings.length;for(let e=0;e<r;e++)t.mappings.push([]);return new gw(e,t)}if(""==e)return new gw;t={version:3,names:[],sources:[],mappings:[]};for(let e=0;e<n;e++)t.mappings.push([]);return new gw(e,t)}static from_source({source:e,file_basename:t,get_location:n}){let r=n(0);r||(r={line:0,column:0});const s={version:3,names:[],sources:[t],mappings:[]};if(""==e)return new gw(e,s);const a=e.split("\n");for(let e=0;e<a.length;e++){s.mappings.push([]);const t=a[e].split(vw);for(let n=0,a=0;n<t.length;n++)""!=t[n]&&(s.mappings[e].push([a,0,r.line+e,a]),a+=t[n].length)}const i=s.mappings[0];for(let e=0;e<i.length;e++)i[e][3]+=r.column;return new gw(e,s)}}const bw="undefined"!=typeof window&&"function"==typeof btoa?e=>btoa(unescape(encodeURIComponent(e))):e=>Buffer.from(e).toString("base64"),xw="undefined"!=typeof window&&"function"==typeof atob?atob:e=>Buffer.from(e,"base64").toString();function _w(e,t){if(0==t.length)return null;let n=1;const r=void 0===t.slice(0,-1).find((e=>1!==e.sources.length))?hw(t,(()=>null),!0):hw(t[0],(r=>r===e&&t[n]?t[n++]:null),!0);return r.file||delete r.file,r.sources.length||(r.sources=[e]),r}const Cw=/data:(?:application|text)\/json;(?:charset[:=]\S+?;)?base64,(\S*)/;function ww(e,t,n){if(t.sourcemap){const r=Pw(t.filename);e.map.sources=[r],e.map=function(e,t,n){if(!t||!n)return t;const r=_w(e,[t,"string"==typeof n?JSON.parse(n):n]);return Object.defineProperties(r,{toString:{enumerable:!1,value:function(){return JSON.stringify(this)}},toUrl:{enumerable:!1,value:function(){return"data:application/json;charset=utf-8;base64,"+bw(this.toString())}}}),r}(r,e.map,t.sourcemap),r!==n&&(e.map.sources=e.map.sources.map((e=>kw(n,e))))}}function kw(e,t){const n=e.split(/[/\\]/),r=t.split(/[/\\]/);for(n.pop();n[0]===r[0];)n.shift(),r.shift();if(n.length){let e=n.length;for(;e--;)n[e]=".."}return n.concat(r).join("/")}function Pw(e){return e.split(/[/\\]/).pop()}function Sw(e,t,n){return t?kw(t,e):Pw(e)}function Ew(e,n,r){const s=new xC(e),a={code:s,hash:n.css.hash,minify:n.inject_styles&&!r.dev,selector:`.${n.css.hash}`,keyframes:n.css.keyframes,specificity:{bumped:!1}},i=n.css.ast;t(i,a,Aw),s.remove(0,i.content.start),s.remove(i.content.end,e.length),a.minify&&$w(i.content.end,a);const o={code:s.toString(),map:s.generateMap({includeContent:!0,source:r.filename,file:r.cssOutputFilename||r.filename})};return ww(o,r,o.map.sources[0]),D&&"injected"===r.css&&o.code&&(o.code+=`\n/*# sourceMappingURL=${o.map.toUrl()} */`),o}const Aw={_:(e,t)=>{t.state.code.addSourcemapLocation(e.start),t.state.code.addSourcemapLocation(e.end),t.next()},Atrule(e,{state:t,next:n}){if(Ml(e)){let n=e.start+e.name.length+1;for(;" "===t.code.original[n];)n+=1;let r=n;for(;"{"!==t.code.original[r]&&" "!==t.code.original[r];)r+=1;e.prelude.startsWith("-global-")?t.code.remove(n,n+8):t.code.prependRight(n,`${t.hash}-`)}else n()},Declaration(e,{state:t}){const n=e.property&&Ll(e.property.toLowerCase());if("animation"===n||"animation-name"===n){let n=e.start+e.property.length+1,r="";for(;n<t.code.original.length;){const e=t.code.original[n];if(ql.test(e)){if(t.keyframes.includes(r)&&t.code.prependRight(n-r.length,`${t.hash}-`),";"===e||"}"===e)break;r=""}else r+=e;n++}}else if(t.minify&&($w(e.start,t),!e.property.startsWith("--"))){let n=e.start+e.property.length+1,r=n;for(;/\s/.test(t.code.original[r]);)r++;r>n&&t.code.remove(n,r)}},Rule(e,{state:t,next:n,visit:r}){if(t.minify&&($w(e.start,t),$w(e.block.end-1,t)),D||!Rw(e))if(Iw(e)){if(e.metadata.is_global_block){const n=e.prelude.children[0];return 1===n.children.length&&1===n.children[0].selectors.length?void(t.minify?(t.code.remove(e.start,e.block.start+1),t.code.remove(e.block.end-1,e.end)):(t.code.prependRight(e.start,"/* "),t.code.appendLeft(e.block.start+1,"*/"),t.code.prependRight(e.block.end-1,"/*"),t.code.appendLeft(e.block.end,"*/"))):void r(e.prelude)}n()}else t.minify?t.code.remove(e.start,e.end):(t.code.prependRight(e.start,"/* (unused) "),t.code.appendLeft(e.end,"*/"),qw(e,t.code));else t.minify?t.code.remove(e.start,e.end):(t.code.prependRight(e.start,"/* (empty) "),t.code.appendLeft(e.end,"*/"),qw(e,t.code))},SelectorList(e,{state:t,next:n,path:r}){if(!r.find((e=>"ComplexSelector"===e.type&&!e.metadata.used))){const n=e.children;let r=!1,s=n[0].start,a=s;for(let e=0;e<n.length;e+=1){const i=n[e];if(i.metadata.used===r){if(r){let e=i.start;for(;","!==t.code.original[e];)e--;t.minify?t.code.remove(s,e+1):t.code.overwrite(e,e+1,"*/")}else if(0===e)t.minify?s=i.start:t.code.prependRight(i.start,"/* (unused) ");else{const r=e!==n.length-1?",":"";if(t.minify){if(s=a,r){for(;","!==t.code.original[s-1];)s++;t.code.update(a,s,r)}}else t.code.overwrite(a,i.start,`${r} /* (unused) `)}r=!r}a=i.end}r&&(t.minify?t.code.remove(s,a):t.code.appendLeft(a,"*/"))}let s=t.specificity,a=r.at(-1);if("Rule"===a?.type){s={bumped:!1};let e=a.metadata.parent_rule;for(;e;){if(e.metadata.has_local_selectors){s={bumped:!0};break}e=e.metadata.parent_rule}}n({...t,specificity:s})},ComplexSelector(e,t){const n=t.state.specificity.bumped;for(const n of e.children)if(n.metadata.is_global){const r=n.selectors[0];Tw(r,n.combinator,t.state),e.metadata.rule?.metadata.parent_rule&&null===r.args&&null===n.combinator&&t.state.code.prependRight(r.start,"&")}else{for(const e of n.selectors)"PseudoClassSelector"===e.type&&"global"===e.name&&Tw(e,null,t.state);if(n.metadata.scoped){if(1===n.selectors.length){const e=n.selectors[0];if("PseudoClassSelector"===e.type&&("is"===e.name||"where"===e.name))continue}if(n.selectors.some((e=>"NestingSelector"===e.type)))continue;let e=t.state.selector;t.state.specificity.bumped&&(e=`:where(${e})`),t.state.specificity.bumped=!0;let r=n.selectors.length;for(;r--;){const s=n.selectors[r];if("PseudoElementSelector"!==s.type&&"PseudoClassSelector"!==s.type){"TypeSelector"===s.type&&"*"===s.name?t.state.code.update(s.start,s.end,e):t.state.code.appendLeft(s.end,e);break}"root"!==s.name&&"host"!==s.name&&0===r&&t.state.code.prependRight(s.start,e)}}}t.next(),t.state.specificity.bumped=n},PseudoClassSelector(e,t){"is"!==e.name&&"where"!==e.name&&"has"!==e.name&&"not"!==e.name||t.next()}};function Tw(e,t,n){if(null===e.args){let r=e.start;if(" "===t?.name)for(;/\s/.test(n.code.original[r-1]);)r--;n.code.remove(r,e.start+7)}else n.code.remove(e.start,e.start+8).remove(e.end-1,e.end)}function $w(e,t){let n=e;for(;/\s/.test(t.code.original[n-1]);)n--;n<e&&t.code.remove(n,e)}function Rw(e){if(e.metadata.is_global_block)return 0===e.block.children.length;for(const t of e.block.children){if("Declaration"===t.type)return!1;if("Rule"===t.type&&Iw(t)&&!Rw(t))return!1;if("Atrule"===t.type&&(null===t.block||t.block.children.length>0))return!1}return!0}function Iw(e){return e.prelude.children.some((e=>e.metadata.used))}function qw(e,t){let n=!1,r=!1;for(let s=e.start;s<e.end;s++)if(n)n=!1;else{const e=t.original[s];r?"*"===e&&"/"===t.original[s+1]&&(t.prependRight(++s,"\\"),r=!1):"\\"===e?n=!0:"/"===e&&"*"===t.original[++s]&&(r=!0)}}function Lw(e,t,n){if("ArrayPattern"===e.left.type||"ObjectPattern"===e.left.type||"RestElement"===e.left.type){const s=t.visit(e.right),a="Identifier"!==s.type,i=a?La("$$value"):s;let o=!1;const l=Ei(e.left).map((e=>{const r=e.expression?.(i);let s=n("=",e.node,r,t);return null!==s&&(o=!0),s??xa("=",t.visit(e.node),t.visit(r))}));if(!o)return null;const c=t.path.at(-1).type.endsWith("Statement"),u=Wa(l);if(c||u.expressions.push(i),a){const e=ba([i],u),t=Ri(s)||l.some((e=>Ri(e)));return t?_a(ka((r=e,{...r,async:!0}),s)):ka(e,s)}return u}var r;if("Identifier"!==e.left.type&&"MemberExpression"!==e.left.type)throw new Error(`Unexpected assignment type ${e.left.type}`);return n(e.operator,e.left,e.right,t)}function Mw(e,t,n,r){let s=t;for(;"MemberExpression"===s.type;)s=s.object;if("Identifier"!==s.type||!function(e){return"$"===e[0]&&/[A-Za-z_]/.test(e[1])}(s.name))return null;const a=s.name.slice(1);if(!r.state.scope.get(a))return null;if(s===t){let s=r.visit(qi(e,t,n));return ka("$.store_set",La(a),s)}return ka("$.store_mutate",xa("??=",La("$$store_subs"),Ba([])),Na(s.name),La(a),xa(e,r.visit(t),r.visit(n)))}const Ow=/[&"<]/g,Nw=/[&<]/g;function Dw(e,t){const n=String(e??""),r=t?Ow:Nw;r.lastIndex=0;let s="",a=0;for(;r.test(n);){const e=r.lastIndex-1,t=n[e];s+=n.substring(a,e)+("&"===t?"&amp;":'"'===t?"&quot;":"&lt;"),a=e+1}return s+n.substring(a)}const jw="\x3c!--[!--\x3e",Bw=Na("\x3c!--[--\x3e"),Fw=Na("\x3c!--]--\x3e"),Vw=Na("\x3c!----\x3e");function Hw(e,{visit:t,state:n}){let r=[];function s(){let e=Ua("",!1);const s=[e],a=[];for(let n=0;n<r.length;n++){const i=r[n];"Text"===i.type||"Comment"===i.type?e.value.cooked+="Comment"===i.type?`\x3c!--${i.data}--\x3e`:Dw(i.data):"ExpressionTag"===i.type&&"Literal"===i.expression.type?null!=i.expression.value&&(e.value.cooked+=Dw(i.expression.value+"")):(a.push(ka("$.escape",t(i.expression))),e=Ua("",n+1===r.length),s.push(e))}for(const e of s)e.value.raw=fa(e.value.cooked);n.template.push(Ja(s,a))}for(let a=0;a<e.length;a+=1){const i=e[a];"Text"===i.type||"Comment"===i.type||"ExpressionTag"===i.type?r.push(i):(r.length>0&&(s(),r=[]),t(i,{...n}))}r.length>0&&s()}function Uw(e){return e.type.endsWith("Statement")||e.type.endsWith("Declaration")}function zw(e,t=La("$$payload.out"),n="+="){let r=[],s=[];const a=[],i=()=>{a.push(Xa(xa(n,t,Ja(r.map(((e,t)=>Ua(e,t===r.length-1))),s)))),r=[],s=[]};for(let t=0;t<e.length;t++){const n=e[t];Uw(n)?(0!==r.length&&i(),a.push(n)):(0===r.length&&r.push(""),"Literal"===n.type?r[r.length-1]+=n.value:"TemplateLiteral"===n.type?(r[r.length-1]+=n.quasis[0].value.cooked,r.push(...n.quasis.slice(1).map((e=>e.value.cooked))),s.push(...n.expressions)):(s.push(n),r.push("")))}return 0!==r.length&&i(),a}function Ww(e,t,n=!1,r=!1){if(!0===e)return ti;if(!Array.isArray(e)||1===e.length){const s=Array.isArray(e)?e[0]:e;if("Text"===s.type){const e=n?s.data.replace(p," ").trim():s.data;return Na(r?e:Dw(e,!0))}return t.visit(s.expression)}let s=Ua("",!1);const a=[s],i=[];for(let r=0;r<e.length;r++){const o=e[r];"Text"===o.type?s.value.raw+=n?o.data.replace(p," "):o.data:(i.push(ka("$.stringify",t.visit(o.expression))),s=Ua("",r+1===e.length),a.push(s))}return Ja(a,i)}function Gw(e,t){const n=t.scope.get(e.name);if(null===n||e===n.node)return e;if("store_sub"===n.kind){const n=La(e.name.slice(1));return ka("$.store_get",xa("??=",La("$$store_subs"),Ba([])),Na(e.name),Gw(n,t))}return e}function Kw(e){return("ArrowFunctionExpression"===e.type||"FunctionExpression"===e.type||"FunctionDeclaration"===e.type)&&!0===e.metadata?.hoisted}function Xw(e,n){const r=[],s=new Map;for(const a of e)if("ConstTag"===a.type){const e=a.declaration.declarations[0],r=ki(e.id).map((e=>n.scope.get(e.name))),i=new Set;t(e.init,n,{_:Tl,Identifier(e,t){if(yl(e,t.path.at(-1))){const n=t.state.scope.get(e.name);n&&i.add(n)}}});for(const e of r)s.set(e,{node:a,deps:i})}else r.push(a);if(0===s.size)return e;const a=[];for(const[e,t]of s)for(const n of t.deps)s.has(n)&&a.push([e,n]);const i=Rl(a);if(i?.length){!function(e,t){jr(e,"const_tag_cycle",`Cyclical dependency detected: ${t}`)}(s.get(i[0]).node,i.map((e=>e.node.name)).join(" → "))}const o=[];function l(e){if(!o.includes(e.node)){for(const t of e.deps){const e=s.get(t);e&&l(e)}o.push(e.node)}}for(const e of s.values())l(e);return[...o,...r]}function Jw(e,t,n,r="html",s,a,i){s.analysis.runes||(t=Xw(t,s));const l=[],p=[];for(const e of t)("Comment"!==e.type||i)&&("ConstTag"===e.type||"DebugTag"===e.type||"SvelteBody"===e.type||"SvelteWindow"===e.type||"SvelteDocument"===e.type||"SvelteHead"===e.type||"TitleElement"===e.type||"SnippetBlock"===e.type?l.push(e):p.push(e));let d=p;if(!a){let t,s;for(d=[];(t=p[0])&&"Text"===t.type&&!u.test(t.data);)p.shift();for("Text"===t?.type&&(t.raw=t.raw.replace(o,""),t.data=t.data.replace(o,""));(s=p.at(-1))&&"Text"===s.type&&!u.test(s.data);)p.pop();"Text"===s?.type&&(s.raw=s.raw.replace(c,""),s.data=s.data.replace(c,""));const a="svg"===r&&("RegularElement"!==e.type||"text"!==e.name)&&!n.some((e=>"RegularElement"===e.type&&"text"===e.name))||"RegularElement"===e.type&&("select"===e.name||"tr"===e.name||"table"===e.name||"tbody"===e.name||"thead"===e.name||"tfoot"===e.name||"colgroup"===e.name||"datalist"===e.name);for(let e=0;e<p.length;e++){const t=p[e-1],n=p[e],r=p[e+1];if("Text"===n.type){if("ExpressionTag"!==t?.type){const e="Text"===t?.type&&c.test(t.data);n.data=n.data.replace(o,e?"":" "),n.raw=n.raw.replace(o,e?"":" ")}"ExpressionTag"!==r?.type&&(n.data=n.data.replace(c," "),n.raw=n.raw.replace(c," ")),!n.data||" "===n.data&&a||d.push(n)}else d.push(n)}}var h=d[0];return 1===d.length&&"RegularElement"===h.type&&"script"===h.name&&d.push({type:"Comment",data:"",parent:h.parent,start:-1,end:-1}),{hoisted:l,trimmed:d,is_standalone:1===d.length&&("RenderTag"===h.type&&!h.metadata.dynamic||"Component"===h.type&&!s.options.hmr&&!h.metadata.dynamic&&!h.attributes.some((e=>"Attribute"===e.type&&e.name.startsWith("--")))),is_text_first:("Fragment"===e.type||"SnippetBlock"===e.type||"EachBlock"===e.type||"SvelteComponent"===e.type||"Component"===e.type||"SvelteSelf"===e.type)&&h&&("Text"===h?.type||"ExpressionTag"===h?.type)}}function Qw(e,n,r){if("RegularElement"===n.type&&"foreignObject"===n.name)return"html";if("RegularElement"===n.type||"SvelteElement"===n.type)return n.metadata.svg?"svg":n.metadata.mathml?"mathml":"html";if("Fragment"===n.type||"Root"===n.type||"Component"===n.type||"SvelteComponent"===n.type||"SvelteFragment"===n.type||"SnippetBlock"===n.type||"SlotElement"===n.type){const e=function(e,n){const r=(e,{stop:t})=>{e.metadata.svg||e.metadata.mathml?"keep"===n&&(n=e.metadata.svg?"svg":"mathml"):(n="html",t())};for(const s of e)if(t(s,{},{_(e,{next:t}){"EachBlock"!==e.type&&"IfBlock"!==e.type&&"AwaitBlock"!==e.type&&"Fragment"!==e.type&&"KeyBlock"!==e.type&&"RegularElement"!==e.type&&"SvelteElement"!==e.type&&"Text"!==e.type||t()},SvelteElement:r,RegularElement:r,Text(e){""!==e.data.trim()&&(n="maybe_html")}}),"html"===n)return n;return n}(r,"keep");if("keep"!==e&&"maybe_html"!==e)return e}return e}function Yw(e,t){return"foreignObject"===e.name?"html":e.metadata.svg?"svg":e.metadata.mathml?"mathml":"html"}function Zw(e,t){const{state:n,visit:r}=t,s="client"===n.options.generate;if(!D)return $a;if("MemberExpression"===e.callee.type){const t=e.callee.object.arguments.map((e=>r(e))),n=r(e.arguments[0]);return ka("$.inspect",s?Qa(ya(t)):ya(t),n)}{const t=e.arguments.map((e=>r(e)));return ka("$.inspect",s?Qa(ya(t)):ya(t))}}function ek(e,t,n){const r=[],s=[],a={default:[]},i={...n.state,scope:e.metadata.scopes.default},o={},l=e.attributes.some((e=>"Attribute"===e.type&&"slot"===e.name));let c=!1;function u(e){const t=r.at(-1),n=Array.isArray(t),s=n?t:[];s.push(e),n||r.push(s)}for(const t of e.attributes)if("LetDirective"===t.type)l||a.default.push(t);else if("SpreadAttribute"===t.type)r.push(n.visit(t));else if("Attribute"===t.type){if(t.name.startsWith("--")){const e=Ww(t.value,n,!1,!0);s.push(Oa(t.name,e));continue}"children"===t.name&&(c=!0);const e=Ww(t.value,n,!1,!0);u(Va("init",yi(t.name),e))}else"BindDirective"===t.type&&"this"!==t.name&&(u(qa(t.name,[mi(n.visit(t.expression))])),u(Ga(t.name,[Xa(n.visit(xa("=",t.expression,La("$$value")))),Xa(xa("=",La("$$settled"),ni))])));const p=[],d=[];for(const t of e.fragment.nodes){if("SnippetBlock"===t.type){n.visit(t,{...n.state,init:p}),u(Va("init",t.expression,t.expression)),d.push(Oa("children"===t.expression.name?"default":t.expression.name,ti));continue}let e="default";if(vo(t)){const n=t.attributes.find((e=>"Attribute"===e.type&&"slot"===e.name));void 0!==n?(e=n.value[0].data,a[e]=t.attributes.filter((e=>"LetDirective"===e.type))):"SvelteFragment"===t.type&&a.default.push(...t.attributes.filter((e=>"LetDirective"===e.type)))}o[e]=o[e]||[],o[e].push(t)}for(const t of Object.keys(o)){const r=n.visit({...e.fragment,nodes:o[t]},"default"===t?i:{...n.state,scope:e.metadata.scopes[t]});if(0===r.body.length)continue;const s=[La("$$payload")];if(a[t].length>0){const e=Fa(a[t].map((e=>null===e.expression?Oa(e.name,La(e.name)):"ObjectExpression"===e.expression.type?Oa(e.name,Fa(e.expression.properties)):"ArrayExpression"===e.expression.type?Oa(e.name,va(e.expression.elements)):Oa(e.name,e.expression))));s.push(e)}const l=ba(s,wa(r.body));"default"!==t||c?d.push(Oa(t,l)):0===a.default.length&&o.default.every((e=>"SvelteFragment"!==e.type||!e.attributes.some((e=>"LetDirective"===e.type))))?(u(Va("init",La("children"),l)),d.push(Oa(t,ti))):(d.push(Oa(t,l)),u(Oa("children",La("$.invalid_default_snippet"))))}d.length>0&&u(Va("init",La("$$slots"),Ba(d)));const h=0===r.length||1===r.length&&Array.isArray(r[0])?Ba(r[0]||[]):ka("$.spread_props",ya(r.map((e=>Array.isArray(e)?Ba(e):e))));let m=Xa(("SvelteComponent"===e.type?Pa:ka)(t,La("$$payload"),h));p.length>0&&(m=wa([...p,m]));const f="SvelteComponent"===e.type||"Component"===e.type&&e.metadata.dynamic;s.length>0?n.state.template.push(Xa(ka("$.css_props",La("$$payload"),Na("svg"!==n.state.namespace),Ba(s),Qa(wa([m])),f&&ti))):(f&&n.state.template.push(Vw),n.state.template.push(m),n.state.skip_hydration_boundaries||n.state.template.push(Vw))}const tk=["class","style"];function nk(e,t){const n=[],r=[],s=[];let i=null,o=!1,l=-1,c=-1,u=new Set;for(const p of e.attributes)if("Attribute"===p.type)"value"===p.name?"textarea"===e.name?(!0!==p.value&&Array.isArray(p.value)&&"Text"===p.value[0].type&&a.test(p.value[0].data)&&(p.value[0].data="\n"+p.value[0].data),i=ka("$.escape",Ww(p.value,t))):"select"!==e.name&&n.push(p):Ci(p)?"onload"!==p.name&&"onerror"!==p.name||!Ir(e.name)||u.add(p.name):("class"===p.name?l=n.length:"style"===p.name&&(c=n.length),n.push(p));else if("BindDirective"===p.type){if("value"===p.name&&"select"===e.name)continue;if("value"===p.name&&n.some((e=>"Attribute"===e.type&&"type"===e.name&&gi(e)&&"file"===e.value[0].data)))continue;if("this"===p.name)continue;const r=gc[p.name];if(r?.omit_in_ssr)continue;if($r(p.name))i=t.visit(p.expression);else if("value"===p.name&&"textarea"===e.name)i=ka("$.escape",t.visit(p.expression));else if("group"===p.name){const r=e.attributes.find((e=>"Attribute"===e.type&&"value"===e.name));if(!r)continue;const s=e.attributes.some((e=>"Attribute"===e.type&&"type"===e.name&&gi(e)&&"checkbox"===e.value[0].data));n.push(bo("checked",-1,-1,[{type:"ExpressionTag",start:-1,end:-1,parent:p,expression:s?ka(Da(p.expression,"includes"),Ww(r.value,t)):Ca("===",p.expression,Ww(r.value,t)),metadata:{expression:xo()}}]))}else n.push(bo(p.name,-1,-1,[{type:"ExpressionTag",start:-1,end:-1,parent:p,expression:p.expression,metadata:{expression:xo()}}]))}else"SpreadAttribute"===p.type?(n.push(p),o=!0,Ir(e.name)&&(u.add("onload"),u.add("onerror"))):"UseDirective"===p.type?Ir(e.name)&&(u.add("onload"),u.add("onerror")):"ClassDirective"===p.type?r.push(p):"StyleDirective"===p.type?s.push(p):"LetDirective"===p.type||t.visit(p);if(r.length>0&&!o){const e=function(e,t){const n=e.map((e=>Sa(e.expression,Na(e.name),Na(""))));null===t&&(t=bo("class",-1,-1,[]));const r=_i(t.value),s=r.at(-1);"Text"===s?.type?(s.data+=" ",s.raw+=" "):s&&r.push({type:"Text",start:-1,end:-1,parent:t,data:" ",raw:" "});return r.push({type:"ExpressionTag",start:-1,end:-1,parent:t,expression:ka(Da(ka(Da(ya(n),"filter"),La("Boolean")),La("join")),Na(" ")),metadata:{expression:xo()}}),t.value=r,t}(r,n[l]??null);-1===l&&n.push(e)}if(s.length>0&&!o&&(!function(e,t,n){const r=e.map((e=>{let t=!0===e.value?La(e.name):Ww(e.value,n,!0);return e.modifiers.includes("important")&&(t=Ca("+",t,Na(" !important"))),Oa(e.name,t)})),s=null===t?Ba(r):ka("$.merge_styles",Ww(t.value,n,!0),Ba(r));n.state.template.push(ka("$.add_styles",s))}(s,n[c]??null,t),c>-1&&n.splice(c,1)),o)!function(e,t,n,r,s){let a,i,o=0;if(r.length>0||s.state.analysis.css.hash){const e=r.map((e=>Oa(e.name,"Identifier"===e.expression.type&&e.expression.name===e.name?La(e.name):s.visit(e.expression))));s.state.analysis.css.hash&&e.unshift(Oa(s.state.analysis.css.hash,Na(!0))),a=Ba(e)}if(n.length>0){i=Ba(n.map((e=>Oa(e.name,!0===e.value?La(e.name):Ww(e.value,s,!0)))))}e.metadata.svg||e.metadata.mathml?o|=k|P:go(e)&&(o|=P);const l=Ba(t.map((t=>{if("Attribute"===t.type){const n=rk(e,t),r=Ww(t.value,s,tk.includes(n));return Va("init",yi(n),r)}return Ka(s.visit(t))}))),c=[l,a,i,o?Na(o):void 0];s.state.template.push(ka("$.spread_attributes",...c))}(e,n,s,r,t);else for(const r of n){if(!0===r.value||gi(r)){const n=rk(e,r),s=Ww(r.value,t,tk.includes(n)).value;("class"!==n||s)&&t.state.template.push(Na(` ${r.name}${wr(n)&&!0===s?"":`="${!0===s?"":String(s)}"`}`));continue}const n=rk(e,r),s=Ww(r.value,t,tk.includes(n));t.state.template.push(ka("$.attr",Na(n),s,wr(n)&&ti))}if(0!==u.size)for(const e of u)t.state.template.push(Na(` ${e}="this.__e=event"`));return i}function rk(e,t){let n=t.name;return e.metadata.svg||e.metadata.mathml||(n=n.toLowerCase()),n}function sk(e,t,n){if("Identifier"===e.id.type)return[Ta(e.id,n)];const r=t.generate("tmp"),s=Ei(e.id);return[Ta(La(r),n),...s.map((e=>{const t=e.expression?.(La(r));return Ta(e.node,t)}))]}const ak={_:Tl,AssignmentExpression:function(e,t){return Lw(e,t,Mw)??t.next()},CallExpression:function(e,t){const n=$l(e,t.state.scope);return"$host"===n?La("undefined"):"$effect.tracking"===n?Na(!1):"$effect.root"===n?ba([],wa([])):"$state.snapshot"===n?ka("$.snapshot",t.visit(e.arguments[0]),z(e,"state_snapshot_uncloneable")&&ti):"$inspect"===n||"$inspect().with"===n?Zw(e,t):void t.next()},ClassBody:function(e,t){if(!t.state.analysis.runes)return void t.next();const n=new Map,r=new Map,s=[];for(const a of e.body)if("PropertyDefinition"===a.type&&("Identifier"===a.key.type||"PrivateIdentifier"===a.key.type)){const{type:e,name:i}=a.key,o="PrivateIdentifier"===e;if(o&&s.push(i),"CallExpression"===a.value?.type){const e=$l(a.value,t.state.scope);if("$derived"===e||"$derived.by"===e){const t={kind:"$derived.by"===e?"derived_by":"derived",id:o?a.key:null};o?r.set(i,t):n.set(i,t)}}}for(const[e,t]of n){let n=e;for(;s.includes(n);)n="_"+n;s.push(n),t.id=Ma(n)}const a=[],i={...t.state,private_derived:r};for(const s of e.body){if("PropertyDefinition"===s.type&&("Identifier"===s.key.type||"PrivateIdentifier"===s.key.type)){const e=s.key.name,o="PrivateIdentifier"===s.key.type,l=(o?r:n).get(e);if("CallExpression"===s.value?.type&&void 0!==l){const n=t.visit(s.value.arguments[0],i),r="derived_by"===l.kind?ka("$.once",n):ka("$.once",Qa(n));if(o)a.push(Ha(l.id,r));else{const t=Da(ai,l.id);a.push(Ha(l.id,r)),a.push(ci("get",s.key,[],[mi(ka(t))])),!D||"derived"!==l.kind&&"derived_by"!==l.kind||a.push(ci("set",s.key,[La("_")],[fi(`Cannot update a derived property ('${e}')`)]))}continue}}a.push(t.visit(s,i))}return{...e,body:a}},ExpressionStatement:function(e,t){const n=$l(e.expression,t.state.scope);if("$effect"===n||"$effect.pre"===n||"$effect.root"===n)return $a;t.next()},Identifier:function(e,t){if(yl(e,t.path.at(-1)))return"$$props"===e.name?La("$$sanitized_props"):Gw(e,t.state)},LabeledStatement:function(e,t){var n,r;if(!(t.state.analysis.runes||t.path.length>1||"$"!==e.label.name))return t.state.legacy_reactive_statements.set(e,(n="$",r=t.visit(e.body),{type:"LabeledStatement",label:La(n),body:r})),$a},MemberExpression:function(e,t){if(t.state.analysis.runes&&"ThisExpression"===e.object.type&&"PrivateIdentifier"===e.property.type){if(t.state.private_derived.get(e.property.name))return ka(e)}t.next()},PropertyDefinition:function(e,t){if(t.state.analysis.runes&&null!=e.value&&"CallExpression"===e.value.type){const n=$l(e.value,t.state.scope);if("$state"===n||"$state.raw"===n||"$derived"===n)return{...e,value:0===e.value.arguments.length?null:t.visit(e.value.arguments[0])};if("$derived.by"===n)return{...e,value:0===e.value.arguments.length?null:ka(t.visit(e.value.arguments[0]))}}t.next()},UpdateExpression:function(e,t){const n=e.argument;return"Identifier"===n.type&&"store_sub"===t.state.scope.get(n.name)?.kind?ka(e.prefix?"$.update_store_pre":"$.update_store",xa("??=",La("$$store_subs"),Ba([])),Na(n.name),La(n.name.slice(1)),"--"===e.operator&&Na(-1)):t.next()},VariableDeclaration:function(e,n){const r=[];if(n.state.analysis.runes)for(const s of e.declarations){const e=s.init,a=$l(e,n.state.scope);if(!a||"$effect.tracking"===a||"$inspect"===a||"$effect.root"===a){r.push(n.visit(s));continue}if("$props"===a){let e=!1,a=t(s.id,null,{RestElement(t,n){n.path.at(-1)===s.id&&(e=!0)},AssignmentPattern(e){if("CallExpression"===e.right.type&&"$bindable"===$l(e.right,n.state.scope)){const t=e.right.arguments.length?n.visit(e.right.arguments[0]):La("undefined");return ga(e.left,t)}}});"ObjectPattern"===a.type&&e?a.properties.splice(a.properties.length-1,0,Va("init",La("$$slots"),La("$$slots")),Va("init",La("$$events"),La("$$events"))):"Identifier"===a.type&&(a=Fa([Va("init",La("$$slots"),La("$$slots")),Va("init",La("$$events"),La("$$events")),za(La(a.name))])),r.push(Ta(n.visit(a),La("$$props")));continue}const i=e.arguments,o=0===i.length?La("undefined"):n.visit(i[0]);"$derived.by"!==a?"Identifier"!==s.id.type?"$derived"!==a?r.push(...sk(s,n.state.scope,o)):r.push(Ta(n.visit(s.id),o)):r.push(Ta(s.id,o)):r.push(Ta(n.visit(s.id),ka(o)))}else for(const t of e.declarations){const e=n.state.scope.get_bindings(t),s=e.some((e=>"state"===e.kind)),a=e.some((e=>"bindable_prop"===e.kind));if(s||a)if(a){if("Identifier"!==t.id.type){const e=n.state.scope.generate("tmp"),s=Ei(t.id);r.push(Ta(La(e),n.visit(t.init)));for(const t of s){const s=t.expression?.(La(e)),a=t.node.name,i=n.state.scope.get(a),o=Da(La("$$props"),Na(i.prop_alias??a),!0);r.push(Ta(t.node,Ii(o,s)))}continue}const e=n.state.scope.get(t.id.name),s=Da(La("$$props"),Na(e.prop_alias??t.id.name),!0);let a=s;if(t.init){a=Ii(s,n.visit(t.init))}r.push(Ta(t.id,a))}else r.push(...sk(t,n.state.scope,t.init&&n.visit(t.init)));else r.push(n.visit(t))}return{...e,declarations:r}}},ik={AwaitBlock:function(e,t){t.state.template.push(Vw,Xa(ka("$.await",t.visit(e.expression),Qa(e.pending?t.visit(e.pending):wa([])),ba(e.value?[t.visit(e.value)]:[],e.then?t.visit(e.then):wa([])),ba(e.error?[t.visit(e.error)]:[],e.catch?t.visit(e.catch):wa([])))),Vw)},Component:function(e,t){ek(e,La(e.name),t)},ConstTag:function(e,t){const n=e.declaration.declarations[0],r=t.visit(n.id),s=t.visit(n.init);t.state.init.push(oi(r,s))},DebugTag:function(e,t){t.state.template.push(Xa(ka("console.log",Ba(e.identifiers.map((e=>Va("init",e,t.visit(e))))))),si)},EachBlock:function(e,t){const n=t.state,r=e.metadata,s=t.visit(e.expression),a=r.contains_group_binding||!e.index?r.index:La(e.index),i=n.scope.root.unique("each_array");n.init.push(oi(i,ka("$.ensure_array_like",s)));const o=[ii(e.context,Da(i,a,!0))];a.name!==e.index&&null!=e.index&&o.push(ii(e.index,a)),o.push(...t.visit(e.body).body);const l=function(e,t,n,r){return{type:"ForStatement",init:e,test:t,update:n,body:r}}(Aa("let",[Ta(a,Na(0)),Ta("$$length",Da(i,"length"))]),Ca("<",a,La("$$length")),function(e,t,n=!1){return{type:"UpdateExpression",operator:e,argument:t,prefix:n}}("++",a,!1),wa(o));if(e.fallback){const r=Xa(xa("+=",La("$$payload.out"),Bw)),s=t.visit(e.fallback);s.body.unshift(Xa(xa("+=",La("$$payload.out"),Na(jw)))),n.template.push(pi(Ca("!==",Da(i,"length"),Na(0)),wa([r,l]),s),Fw)}else n.template.push(Bw,l,Fw)},Fragment:function(e,t){const n=t.path.at(-1)??e,r=Qw(t.state.namespace,n,e.nodes),{hoisted:s,trimmed:a,is_standalone:i,is_text_first:o}=Jw(n,e.nodes,t.path,r,t.state,t.state.preserve_whitespace,t.state.options.preserveComments),l={...t.state,init:[],template:[],namespace:r,skip_hydration_boundaries:i};for(const e of s)t.visit(e,l);return o&&l.template.push(Vw),Hw(a,{...t,state:l}),wa([...l.init,...zw(l.template)])},HtmlTag:function(e,t){const n=t.visit(e.expression);t.state.template.push(ka("$.html",n))},IfBlock:function(e,t){const n=t.visit(e.test),r=t.visit(e.consequent),s=e.alternate?t.visit(e.alternate):wa([]);r.body.unshift(Xa(xa("+=",La("$$payload.out"),Bw))),s.body.unshift(Xa(xa("+=",La("$$payload.out"),Na(jw)))),t.state.template.push(pi(n,r,s),Fw)},KeyBlock:function(e,t){t.state.template.push(Vw,t.visit(e.fragment),Vw)},RegularElement:function(e,t){const n=Yw(e,t.state.namespace),r={...t.state,namespace:n,preserve_whitespace:t.state.preserve_whitespace||"pre"===e.name||"textarea"===e.name};t.state.template.push(Na(`<${e.name}`));const s=nk(e,{...t,state:r});if(t.state.template.push(Na(">")),("script"===e.name||"style"===e.name)&&1===e.fragment.nodes.length)return void t.state.template.push(Na(e.fragment.nodes[0].data),Na(`</${e.name}>`));const{hoisted:a,trimmed:i}=Jw(e,e.fragment.nodes,t.path,n,{...r,scope:r.scopes.get(e.fragment)},r.preserve_whitespace,r.options.preserveComments);for(const e of a)t.visit(e,r);if(D){const t=F(e.start);r.template.push(Xa(ka("$.push_element",La("$$payload"),Na(e.name),Na(t.line),Na(t.column))))}if(null===s)Hw(i,{...t,state:r});else{let e=s;"Identifier"!==s.type&&(e=La(r.scope.generate("$$body")),r.template.push(oi(e,s)));const n={...r,template:[],init:[]};Hw(i,{...t,state:n}),r.template.push(pi(e,wa(zw([e])),wa([...n.init,...zw(n.template)])))}yr(e.name)||r.template.push(Na(`</${e.name}>`)),D&&r.template.push(Xa(ka("$.pop_element")))},RenderTag:function(e,t){const n=$i(e.expression).callee,r=$i(e.expression).arguments,s=t.visit(n),a=r.map((e=>t.visit(e)));t.state.template.push(Xa(("CallExpression"===e.expression.type?ka:Pa)(s,La("$$payload"),...a))),t.state.skip_hydration_boundaries||t.state.template.push(Vw)},SlotElement:function(e,t){const n=[],r=[];let s=Na("default");for(const a of e.attributes)if("SpreadAttribute"===a.type)r.push(t.visit(a));else if("Attribute"===a.type){const e=Ww(a.value,t,!1,!0);"name"===a.name?s=e:"slot"!==a.name&&n.push(Oa(a.name,e))}const a=0===r.length?Ba(n):ka("$.spread_props",ya([Ba(n),...r])),i=0===e.fragment.nodes.length?Na(null):Qa(t.visit(e.fragment)),o=ka("$.slot",La("$$payload"),La("$$props"),s,a,i);t.state.template.push(Vw,Xa(o),Vw)},SnippetBlock:function(e,t){const n=Ia(e.expression,[La("$$payload"),...e.parameters],t.visit(e.body));n.___snippet=!0,t.state.init.push(n)},SpreadAttribute:function(e,t){return t.visit(e.expression)},SvelteComponent:function(e,t){ek(e,t.visit(e.expression),t)},SvelteElement:function(e,t){let n=t.visit(e.tag);if("Identifier"!==n.type){const e=t.state.scope.generate("$$tag");t.state.init.push(oi(e,n)),n=La(e)}D&&(e.fragment.nodes.length>0&&t.state.init.push(Xa(ka("$.validate_void_dynamic_element",Qa(n)))),t.state.init.push(Xa(ka("$.validate_dynamic_element_tag",Qa(n)))));const r={...t.state,namespace:Yw(e,t.state.namespace),template:[],init:[]};if(nk(e,{...t,state:r}),D){const r=F(e.start);t.state.template.push(Xa(ka("$.push_element",La("$$payload"),n,Na(r.line),Na(r.column))))}const s=wa([...r.init,...zw(r.template)]),a=t.visit(e.fragment,r);t.state.template.push(Xa(ka("$.element",La("$$payload"),n,s.body.length>0&&Qa(s),a.body.length>0&&Qa(a)))),D&&t.state.template.push(Xa(ka("$.pop_element")))},SvelteFragment:function(e,t){t.state.template.push(t.visit(e.fragment))},SvelteHead:function(e,t){const n=t.visit(e.fragment);t.state.template.push(Xa(ka("$.head",La("$$payload"),ba([La("$$payload")],n))))},SvelteSelf:function(e,t){ek(e,La(t.state.analysis.name),t)},TitleElement:function(e,t){const n=[Na("<title>")];Hw(e.fragment.nodes,{...t,state:{...t.state,template:n}}),n.push(Na("</title>")),t.state.init.push(...zw(n,La("$$payload.title"),"="))}};function ok(e,t,n){const r=[];let s=Ua("");const a=[s];let i=!1,o=!1,l=!1;for(const t of e)if("ExpressionTag"===t.type){const e=t.metadata.expression;l||=i&&e.has_call,i||=e.has_call,o||=e.has_state}for(let c=0;c<e.length;c++){const u=e[c];if("Text"===u.type)s.value.cooked+=u.data;else if("ExpressionTag"===u.type&&"Literal"===u.expression.type)null!=u.expression.value&&(s.value.cooked+=u.expression.value+"");else{if(l){const e=La(n.scope.generate("stringified_text"));n.init.push(oi(e,qc(n,Qa(Ea("??",t(u.expression,n),Na("")))))),r.push(ka("$.get",e))}else{if(1===e.length)return{value:t(u.expression,n),has_state:o,has_call:i};r.push(Ea("??",t(u.expression,n),Na("")))}s=Ua("",c+1===e.length),a.push(s)}}for(const e of a)e.value.raw=fa(e.value.cooked);return{value:Ja(a,r),has_state:o,has_call:i}}function lk(e){return Xa(ka("$.template_effect",Qa("ExpressionStatement"===e.type?e.expression:wa([e]))))}function ck(e){return 1===e.length?lk(e[0]):Xa(ka("$.template_effect",Qa(wa(e))))}function uk(e){const t=e.split(".");let n=t.shift(),r=La(n);for(;n=t.shift();){const e=!m.test(n);r=Da(r,e?Na(n):La(n),e)}return r}function pk(e,t,n,r,s){e.init.push(li(t,n)),e.update.push(pi(Ca("!==",La(t),xa("=",La(t),r)),wa([s])))}function dk(e,n,{state:r,visit:s}){const a=[],i=[],o=[],l={...r.transform};t(e,null,{Identifier(e,{path:t}){if(o.includes(e.name))return;o.push(e.name);if(!yl(e,t.at(-1)))return;const n=r.scope.get(e.name);if(n)for(const[t,o]of r.scopes)if("EachBlock"===t.type&&o===n.scope){a.push(e),i.push(s(e)),l[e.name]&&(l[e.name]={...l[e.name],read:e=>e});break}}});const c={...r,transform:l},u=s(e,c),p=s(xa("=",e,La("$$value")),c);let d=u;for(;"MemberExpression"===d.type;)d.optional=!0,d=d.object;return ka("$.bind_this",n,ba([La("$$value"),...a],p),ba([...a],u),i.length>0&&Qa(ya(i)))}function hk(e,t,n){const r=vi(t.expression),s=r&&e.scope.get(r.name);if("store_sub"===s?.kind)return;const a=F(t.start);e.init.push(Xa(ka("$.validate_binding",Na(e.analysis.source.slice(t.start,t.end)),Qa(n.object),Qa(n.computed?n.property:Na(n.property.name)),a&&Na(a.line),a&&Na(a.column))))}const mk=(e,t)=>{const n=e.metadata;let r={...t.state,in_constructor:!1};if("FunctionExpression"===e.type){const e=t.path.at(-1);r.in_constructor="MethodDefinition"===e.type&&"constructor"===e.kind}if(!0===n?.hoisted){const n=Ac(e,t);return{...e,params:n,body:t.visit(e.body,r)}}t.next(r)};function fk(e,t,n,r){if(r.state.analysis.runes&&"MemberExpression"===t.type&&"PrivateIdentifier"===t.property.type){const s=r.state.private_state.get(t.property.name);if(void 0!==s){let a=r.visit(qi(e,t,n));return"raw_state"!==s.kind&&Rc(a,r.state.scope)&&(a=Ec(a,Da(ai,s.id))),r.state.in_constructor?xa(e,r.visit(t),a):ka("$.set",t,a)}}let s=t;for(;"MemberExpression"===s.type;)s=s.object;if("Identifier"!==s.type)return null;const a=r.state.scope.get(s.name);if(!a)return null;const i=Object.hasOwn(r.state.transform,s.name)?r.state.transform[s.name]:null;if(s===t&&i?.assign){let o=r.visit(qi(e,t,n));const l=r.path.map((e=>e.type));return!("BindDirective"===l.at(-1)&&"RegularElement"===l.at(-2))&&"prop"!==a.kind&&"bindable_prop"!==a.kind&&r.state.analysis.runes&&Rc(o,r.state.scope)&&(o="raw_state"===a.kind?o:Ec(o,s)),i.assign(s,o)}return i?.mutate?i.mutate(s,xa(e,r.visit(t),r.visit(n))):null}function yk(e,t){let n=!1,r=e.name.slice(2);br(r)&&(r=r.slice(0,-7),n=!0);const s=Array.isArray(e.value)?e.value[0]:e.value;let a=gk(s.expression,s.metadata.expression,t);if(e.metadata.delegated){let n;if(t.state.events.has(r)||t.state.events.add(r),e.metadata.delegated.hoisted){if(e.metadata.delegated.function===s.expression){const e=t.state.scope.root.unique("on_"+r);t.state.hoisted.push(li(e,a)),a=e}n=ya([a,...e.metadata.delegated.function.metadata.hoisted_params])}else n=a;t.state.init.push(Xa(xa("=",Da(t.state.node,"__"+r),n)))}else{const e=Xa(vk(r,t.state.node,a,n,(i=r,!!Ar.includes(i)||void 0))),s=t.path.at(-1).type;"SvelteDocument"===s||"SvelteWindow"===s||"SvelteBody"===s?t.state.init.push(e):t.state.after_update.push(e)}var i}function vk(e,t,n,r,s){return ka("$.event",Na(e),t,n,r&&ti,void 0===s?void 0:Na(s))}function gk(e,t,n){if(null===e)return ui(null,[La("$$arg")],wa([Xa(ka("$.bubble_event.call",ai,La("$$props"),La("$$arg")))]));let r=n.visit(e);if("ArrowFunctionExpression"===r.type||"FunctionExpression"===r.type)return r;if("Identifier"===r.type&&"import"!==n.state.scope.get(r.name)?.declaration_kind)return r;if(t.has_call){const e=La(n.state.scope.generate("event_handler"));n.state.init.push(li(e,ka("$.derived",Qa(r)))),r=ka("$.get",e)}let s=ka(Da(r,"apply",!1,!0),ai,La("$$args"));if(D){const t=F(e.start),a="CallExpression"===e.type&&0===e.arguments.length&&"Identifier"===e.callee.type;s=ka("$.apply",Qa(r),ai,La("$$args"),La(n.state.analysis.name),t&&ya([Na(t.line),Na(t.column)]),bk(e)&&ti,a&&ti)}return ui(null,[za(La("$$args"))],wa([Xa(s)]))}function bk(e){return"CallExpression"===e.type||"NewExpression"===e.type||"AssignmentExpression"===e.type||"UpdateExpression"===e.type||"SequenceExpression"===e.type&&e.expressions.some(bk)}function xk(e,t,n,r,s,a,i,o){let l=!1;const c=[];for(const n of e)if("Attribute"===n.type){const{value:e}=wk(n.value,t);if(!Ci(n)||"ArrowFunctionExpression"!==e.type&&"FunctionExpression"!==e.type)c.push(Oa(n.name,e));else{const r=t.state.scope.generate("event_handler");t.state.init.push(li(r,e)),c.push(Oa(n.name,La(r)))}l||=n.metadata.expression.has_state}else{l=!0;let e=t.visit(n);if(n.metadata.expression.has_call){const t=La(o.scope.generate("spread_with_call"));o.init.push(oi(t,qc(o,Qa(e)))),e=ka("$.get",t)}c.push(Ka(e))}const u=ka("$.set_attributes",r,l?s:Na(null),Ba(c),""!==t.state.analysis.css.hash&&Na(t.state.analysis.css.hash),a,i,z(n,"hydration_attribute_changed")&&ti);if(l){t.state.init.push(ii(s));const e=Xa(xa("=",s,u));return t.state.update.push(e),!0}return t.state.init.push(Xa(u)),!1}function _k(e,t,n,r){const s=n.state;for(const a of e){const{has_state:e,has_call:i}=a.metadata.expression;let o=!0===a.value?Sc({name:a.name,type:"Identifier"},n.state):wk(a.value,n).value;if(i){const e=La(s.scope.generate("style_directive"));s.init.push(oi(e,qc(s,Qa(o)))),o=ka("$.get",e)}const l=Xa(ka("$.set_style",t,Na(a.name),o,a.modifiers.includes("important")?ti:void 0));!r&&i?s.init.push(lk(l)):r||e||i?s.update.push(l):s.init.push(l)}}function Ck(e,t,n,r){const s=n.state;for(const a of e){const{has_state:e,has_call:i}=a.metadata.expression;let o=n.visit(a.expression);if(i){const e=La(s.scope.generate("class_directive"));s.init.push(oi(e,qc(s,Qa(o)))),o=ka("$.get",e)}const l=Xa(ka("$.toggle_class",t,Na(a.name),o));!r&&i?s.init.push(lk(l)):r||e||i?s.update.push(l):s.init.push(l)}}function wk(e,t){if(!0===e)return{has_state:!1,has_call:!1,value:Na(!0)};if(!Array.isArray(e)||1===e.length){const n=Array.isArray(e)?e[0]:e;return"Text"===n.type?{has_state:!1,has_call:!1,value:Na(n.data)}:{has_state:n.metadata.expression.has_state,has_call:n.metadata.expression.has_call,value:t.visit(n.expression)}}return ok(e,t.visit,t.state)}function kk(e,t){return e.metadata.svg||e.metadata.mathml?t.name:(n=(n=t.name).toLowerCase(),kr[n]??n);var n}function Pk(e){return"Literal"===e.type?e.value?.toString().replace(f,"_"):e.name}function Sk(e,t,n,r=n.state.node){const s=[],a=[],i={default:{...n.state,scope:e.metadata.scopes.default,transform:{...n.state.transform}}},o={},l={},c=[];let u=null;const p=[];let d=!!vl(e),h=!1;function m(e){const t=s.at(-1),n=Array.isArray(t),r=n?t:[];r.push(e),n||s.push(r)}if(d)for(const t of e.attributes)"LetDirective"===t.type&&a.push(n.visit(t));for(const r of e.attributes)if("LetDirective"===r.type)d||a.push(n.visit(r,i.default));else if("OnDirective"===r.type){r.expression||(n.state.analysis.needs_props=!0);let e=gk(r.expression,r.metadata.expression,n);r.modifiers.includes("once")&&(e=ka("$.once",e)),(l[r.name]||=[]).push(e)}else if("SpreadAttribute"===r.type){const e=n.visit(r);if(r.metadata.expression.has_state){let t=e;if(r.metadata.expression.has_call){const e=La(n.state.scope.generate("spread_element"));n.state.init.push(li(e,ka("$.derived",Qa(t)))),t=ka("$.get",e)}s.push(Qa(t))}else s.push(e)}else if("Attribute"===r.type){if(r.name.startsWith("--")){c.push(Oa(r.name,wk(r.value,n).value));continue}"slot"===r.name&&(d=!0),"children"===r.name&&(h=!0);const{value:e}=wk(r.value,n);if(r.metadata.expression.has_state){let t=e;const s=_i(r.value).some((e=>"ExpressionTag"===e.type&&"Identifier"!==e.expression.type&&"MemberExpression"!==e.expression.type));if(s){const s=La(n.state.scope.generate(r.name));n.state.init.push(li(s,qc(n.state,Qa(e)))),t=ka("$.get",s)}m(qa(r.name,[mi(t)]))}else m(Oa(r.name,e))}else if("BindDirective"===r.type){const s=n.visit(r.expression);if(D&&"MemberExpression"===s.type&&n.state.analysis.runes&&!z(e,"binding_property_non_reactive")&&hk(n.state,r,s),"this"===r.name)u=r.expression;else{D&&p.push(Xa(ka(La("$.add_owner_effect"),Qa(s),La(t),z(e,"ownership_invalid_binding")&&ti)));const a="Identifier"===r.expression.type&&"store_sub"===n.state.scope.get(r.expression.name)?.kind;m(qa(r.name,a?[Xa(ka("$.mark_store_binding")),mi(s)]:[mi(s)]));const i=xa("=",r.expression,La("$$value"));m(Ga(r.name,[Xa(n.visit(i))]))}}if(d&&n.state.init.push(...a),Object.keys(l).length>0){const e=Ba(Object.keys(l).map((e=>Oa(e,l[e].length>1?ya(l[e]):l[e][0]))));m(Oa("$$events",e))}const f=[],y=[];for(const t of e.fragment.nodes){if("SnippetBlock"===t.type){n.visit(t,{...n.state,init:f}),m(Va("init",t.expression,t.expression)),y.push(Oa("children"===t.expression.name?"default":t.expression.name,ti));continue}let e=vl(t)??"default";(o[e]||=[]).push(t)}for(const t of Object.keys(o)){const r=n.visit({...e.fragment,nodes:o[t]},"default"===t?d?n.state:i.default:{...n.state,scope:e.metadata.scopes[t],transform:{...n.state.transform}});if(0===r.body.length)continue;const s=ba([La("$$anchor"),La("$$slotProps")],wa([..."default"!==t||d?[]:a,...r.body]));"default"!==t||h?y.push(Oa(t,s)):0===a.length&&o.default.every((e=>"SvelteFragment"!==e.type||!e.attributes.some((e=>"LetDirective"===e.type))))?(m(Oa("children",D?ka("$.wrap_snippet",La(n.state.analysis.name),s):s)),y.push(Oa(t,ti))):(y.push(Oa(t,s)),m(Oa("children",La("$.invalid_default_snippet"))))}y.length>0&&m(Oa("$$slots",Ba(y))),!n.state.analysis.runes&&e.attributes.some((e=>"BindDirective"===e.type))&&m(Oa("$$legacy",ti));const v=0===s.length||1===s.length&&Array.isArray(s[0])?Ba(s[0]||[]):ka("$.spread_props",...s.map((e=>Array.isArray(e)?Ba(e):e)));let g=r=>ka("SvelteComponent"===e.type?t:n.visit(ja(t)),r,v);if(null!==u){const e=g;g=t=>dk(u,e(t),n)}const b=[...f];if("SvelteComponent"===e.type){const r=g;g=s=>ka("$.component",s,Qa(n.visit(e.expression)),ba([La("$$anchor"),La(t)],wa([...p,Xa(r(La("$$anchor")))])))}else b.push(...p);return Object.keys(c).length>0?(n.state.template.push("svg"===n.state.metadata.namespace?"<g><!></g>":'<svelte-css-wrapper style="display: contents"><!></svelte-css-wrapper>'),b.push(Xa(ka("$.css_props",r,Qa(Ba(c)))),Xa(g(Da(r,"lastChild"))),Xa(ka("$.reset",r)))):(n.state.template.push("<!>"),b.push(Xa(g(r)))),b.length>1?wa(b):b[0]}function Ek(e,t){const n=new Set;for(const t of e){const e=Ak(t);for(const t of e)n.add(t)}return[...n].map((e=>Sc({...e.node},t.state)))}function Ak(e,t=new Set){if("legacy_reactive"!==e.kind)return[];for(const n of e.legacy_dependencies)if(!t.has(n)){t.add(n);for(const e of Ak(n,t))t.add(e)}return[...t]}function Tk(e,t,n,{visit:r,state:s}){const a=s.metadata.bound_contenteditable;let i=t,o=0,l=[];function c(e,t){const n=function(e){return 0===o?i(e):ka("$.sibling",i(!1),(e||1!==o)&&Na(o),e&&ti)}(e);let r=n;return"Identifier"!==r.type&&(r=La(s.scope.generate(t)),s.init.push(li(r,n))),i=()=>r,o=1,r}function u(e){if(e.every((e=>"Text"===e.type)))return o+=1,void s.template.push(e.map((e=>e.raw)).join(""));s.template.push(" ");const{has_state:t,has_call:n,value:i}=ok(e,r,s),l=c(1===e.length,"text"),u=Xa(ka("$.set_text",l,i));n&&!a?s.init.push(lk(u)):t&&!a?s.update.push(u):s.init.push(Xa(xa("=",Da(l,"nodeValue"),i)))}for(const t of e)if("Text"===t.type||"ExpressionTag"===t.type)l.push(t);else{l.length>0&&(u(l),l=[]);let a=s;if($k(t))o+=1;else if("EachBlock"===t.type&&1===e.length&&n)t.metadata.is_controlled=!0;else{const e=c(!1,"RegularElement"===t.type?t.name:"node");a={...s,node:e}}r(t,a)}l.length>0&&u(l),o>1&&(o-=1,s.init.push(Xa(ka("$.next",1!==o&&Na(o)))))}function $k(e,t){if("RegularElement"!==e.type)return!1;if(e.fragment.metadata.dynamic)return!1;if(e.name.includes("-"))return!1;for(const t of e.attributes){if("Attribute"!==t.type)return!1;if(Ci(t))return!1;if(Er(t.name))return!1;if("option"===e.name&&"value"===t.name)return!1;if("img"===e.name&&"loading"===t.name)return!1;if(!0!==t.value&&!gi(t))return!1}return!0}function Rk(e){let t=Ua("");const n=Ja([t],[]);function r(e){if("TemplateLiteral"===e.type){for(let n=0;n<e.expressions.length;n+=1){const s=e.quasis[n],a=e.expressions[n];t.value.cooked+=s.value.cooked,r(a)}const n=e.quasis.at(-1);t.value.cooked+=n.value.cooked}else"Literal"===e.type?t.value.cooked+=e.value:(n.expressions.push(e),n.quasis.push(t=Ua("")))}for(const n of e)"string"==typeof n?t.value.cooked+=n:r(n);for(const e of n.quasis)e.value.raw=fa(e.value.cooked);return t.tail=!0,n}function Ik(e){return ya(e.map((e=>{const t=ya([Na(e[0]),Na(e[1])]);return 3===e.length&&t.elements.push(Ik(e[2])),t})))}const qk=["stopPropagation","stopImmediatePropagation","preventDefault","self","trusted","once"];function Lk(e,t,n,r){const s=r.state,a=kk(e,n),i="svg"===r.state.metadata.namespace||"svg"===e.name,o="mathml"===r.state.metadata.namespace;let l,{has_call:c,value:u}=wk(n.value,r);if("autofocus"===a)return s.init.push(Xa(ka("$.autofocus",t,u))),!1;if("muted"===a)return s.init.push(Xa(xa("=",Da(t,La("muted")),u))),!1;if("class"===a){if(n.metadata.expression.has_state&&c){const e=La(s.scope.generate("class_derived"));s.init.push(oi(e,qc(s,Qa(u)))),u=ka("$.get",e),c=!1}l=Xa(ka(i?"$.set_svg_class":o?"$.set_mathml_class":"$.set_class",t,u))}else if("value"===a)l=Xa(ka("$.set_value",t,u));else if("checked"===a)l=Xa(ka("$.set_checked",t,u));else if(function(e){return Pr.includes(e)}(a))l=Xa(xa("=",Da(t,a),u));else{if("style"===a&&n.metadata.expression.has_state&&c){const e=La(s.scope.generate("style_derived"));s.init.push(oi(e,qc(s,Qa(u)))),u=ka("$.get",e),c=!1}l=Xa(ka(a.startsWith("xlink")?"$.set_xlink_attribute":"$.set_attribute",t,Na(a),u,z(e,"hydration_attribute_changed")&&ti))}return n.metadata.expression.has_state?(c?s.init.push(lk(l)):s.update.push(l),!0):(s.init.push(l),!1)}function Mk(e,t,n){const r=n.state,s=t.name;let{has_call:a,value:i}=wk(t.value,n);const o=Xa(ka("$.set_custom_element_data",e,Na(s),i));return t.metadata.expression.has_state?(a?r.init.push(lk(o)):r.update.push(o),!0):(r.init.push(o),!1)}function Ok(e,t,n,r){const s=r.state,{value:a}=wk(n.value,r),i=xa("=",Da(t,"value"),Sa(Ca("==",Na(null),xa("=",Da(t,"__value"),a)),Na(""),a)),o="select"===e&&!0!==n.value&&!gi(n),l=Xa(o?Wa([i,ka("$.select_option",t,a)]):i);if(o&&s.init.push(Xa(ka("$.init_select",t,Qa(a)))),n.metadata.expression.has_state){const n=s.scope.generate(`${t.name}_value`);return pk(s,n,"option"===e?Ba([]):void 0,a,l),!0}return s.init.push(l),!1}function Nk(e,t,n){const r={...n.state,node:La(t)};for(const t of e.attributes)"OnDirective"===t.type?n.state.init.push(Xa(n.visit(t,r))):n.visit(t,r)}function Dk(e,{scope:t,analysis:n},r){if("Identifier"===e.id.type)return[Ta(e.id,ka("$.mutable_state",r,n.immutable?ti:void 0))];const s=t.generate("tmp"),a=Ei(e.id);return[Ta(La(s),r),...a.map((e=>{const r=e.expression?.(La(s)),a=t.get(e.node.name);return Ta(e.node,"state"===a?.kind?ka("$.mutable_state",r,n.immutable?ti:void 0):r)}))]}const jk={_:function(e,{next:t,state:n}){const r=n.scopes.get(e);if(r&&r!==n.scope){const e={...n.transform};for(const[t,s]of r.declarations)("normal"===s.kind||"state"===s.kind&&!Pc(s,n.analysis))&&delete e[t];t({...n,transform:e,scope:r})}else t()},AnimateDirective:function(e,t){const n=null===e.expression?Na(null):Qa(t.visit(e.expression));t.state.after_update.push(Xa(ka("$.animation",t.state.node,Qa(t.visit(uk(e.name))),n)))},ArrowFunctionExpression:function(e,t){return mk(e,t)},AssignmentExpression:function(e,t){const n=Lw(e,t,fk)??t.next();return z(e,"ownership_invalid_mutation")?ka("$.skip_ownership_validation",Qa(n)):n},Attribute:function(e,t){Ci(e)&&yk(e,t)},AwaitBlock:function(e,t){t.state.template.push("<!>");const n=Qa(t.visit(e.expression));let r,s;if(e.then){const n={...t,state:{...t.state,transform:{...t.state.transform}}},s=e.value&&Ic(e.value,n),a=[La("$$anchor")];s&&a.push(s.id);r=ba(a,wa([...s?.declarations??[],...n.visit(e.then,n.state).body]))}if(e.catch){const n={...t,state:{...t.state}},r=e.error&&Ic(e.error,n),a=[La("$$anchor")];r&&a.push(r.id);s=ba(a,wa([...r?.declarations??[],...n.visit(e.catch,n.state).body]))}t.state.init.push(Xa(ka("$.await",t.state.node,n,e.pending?ba([La("$$anchor")],t.visit(e.pending)):Na(null),r,s)))},BinaryExpression:function(e,t){if(D){const n=e.operator;if("==="===n||"!=="===n)return ka("$.strict_equals",t.visit(e.left),t.visit(e.right),"!=="===n&&Na(!1));if("=="===n||"!="===n)return ka("$.equals",t.visit(e.left),t.visit(e.right),"!="===n&&Na(!1))}t.next()},BindDirective:function(e,t){const n=e.expression,r=gc[e.name],s=t.path.at(-1);D&&t.state.analysis.runes&&"MemberExpression"===n.type&&("this"!==e.name||t.path.some((({type:e})=>"IfBlock"===e||"EachBlock"===e||"AwaitBlock"===e||"KeyBlock"===e)))&&!z(e,"binding_property_non_reactive")&&hk(t.state,e,t.visit(n));const a=Qa(t.visit(n));let i,o=Ya(ba([La("$$value")],t.visit(xa("=",n,La("$$value")))));if(a===o&&(o=void 0),r?.event)i=ka("$.bind_property",Na(e.name),Na(r.event),t.state.node,o??a,r.bidirectional&&a);else switch(e.name){case"online":i=ka("$.bind_online",o??a);break;case"scrollX":case"scrollY":i=ka("$.bind_window_scroll",Na("scrollX"===e.name?"x":"y"),a,o);break;case"innerWidth":case"innerHeight":case"outerWidth":case"outerHeight":i=ka("$.bind_window_size",Na(e.name),o??a);break;case"activeElement":i=ka("$.bind_active_element",o??a);break;case"muted":i=ka("$.bind_muted",t.state.node,a,o);break;case"paused":i=ka("$.bind_paused",t.state.node,a,o);break;case"volume":i=ka("$.bind_volume",t.state.node,a,o);break;case"playbackRate":i=ka("$.bind_playback_rate",t.state.node,a,o);break;case"currentTime":i=ka("$.bind_current_time",t.state.node,a,o);break;case"buffered":i=ka("$.bind_buffered",t.state.node,o??a);break;case"played":i=ka("$.bind_played",t.state.node,o??a);break;case"seekable":i=ka("$.bind_seekable",t.state.node,o??a);break;case"seeking":i=ka("$.bind_seeking",t.state.node,o??a);break;case"ended":i=ka("$.bind_ended",t.state.node,o??a);break;case"readyState":i=ka("$.bind_ready_state",t.state.node,o??a);break;case"contentRect":case"contentBoxSize":case"borderBoxSize":case"devicePixelContentBoxSize":i=ka("$.bind_resize_observer",t.state.node,Na(e.name),o??a);break;case"clientWidth":case"clientHeight":case"offsetWidth":case"offsetHeight":i=ka("$.bind_element_size",t.state.node,Na(e.name),o??a);break;case"value":i="RegularElement"===s?.type&&"select"===s.name?ka("$.bind_select_value",t.state.node,a,o):ka("$.bind_value",t.state.node,a,o);break;case"files":i=ka("$.bind_files",t.state.node,a,o);break;case"this":i=dk(n,t.state.node,t);break;case"textContent":case"innerHTML":case"innerText":i=ka("$.bind_content_editable",Na(e.name),t.state.node,a,o);break;case"checked":i=ka("$.bind_checked",t.state.node,a,o);break;case"focused":i=ka("$.bind_focused",t.state.node,o??a);break;case"group":{const r=e.metadata.parent_each_blocks.map((e=>e.metadata.keyed&&e.index?ka("$.get",e.metadata.index):e.metadata.index));let l=a;if("RegularElement"===s?.type){const e=s.attributes.find((e=>"Attribute"===e.type&&"value"===e.name&&!gi(e)&&!0!==e.value))?.value;void 0!==e&&(l=Qa(wa([Xa(wk(e,t).value),mi(t.visit(n))])))}i=ka("$.bind_group",e.metadata.binding_group_name,ya(r),t.state.node,l,o??a);break}default:throw new Error("unknown binding "+e.name)}if("this"===e.name)t.state.init.push(Xa(i));else{const e="RegularElement"===s.type&&s.attributes.find((e=>"UseDirective"===e.type));e?t.state.init.push(Xa(ka("$.effect",Qa(i)))):t.state.after_update.push(Xa(i))}},BlockStatement:function(e,t){kc(t),t.next()},BreakStatement:function(e,t){if(t.state.analysis.runes||!e.label||"$"!==e.label.name)return;return"LabeledStatement"===t.path[1].type&&"$"===t.path[1].label.name?mi():void 0},CallExpression:function(e,t){switch($l(e,t.state.scope)){case"$host":return La("$$props.$$host");case"$effect.tracking":return ka("$.effect_tracking");case"$state.snapshot":return ka("$.snapshot",t.visit(e.arguments[0]),z(e,"state_snapshot_uncloneable")&&ti);case"$effect.root":return ka("$.effect_root",...e.arguments.map((e=>t.visit(e))));case"$inspect":case"$inspect().with":return Zw(e,t)}if(D&&"MemberExpression"===e.callee.type&&"Identifier"===e.callee.object.type&&"console"===e.callee.object.name&&null===t.state.scope.get("console")&&"Identifier"===e.callee.property.type&&["debug","dir","error","group","groupCollapsed","info","log","trace","warn"].includes(e.callee.property.name))return ka(e.callee,Ka(ka("$.log_if_contains_state",Na(e.callee.property.name),...e.arguments.map((e=>t.visit(e))))));t.next()},ClassBody:function(e,t){if(!t.state.analysis.runes)return void t.next();const n=new Map,r=new Map,s=[];for(const a of e.body)if(!("PropertyDefinition"!==a.type&&"MethodDefinition"!==a.type||"Identifier"!==a.key.type&&"PrivateIdentifier"!==a.key.type&&"Literal"!==a.key.type)){const e=a.key.type,i=Pk(a.key);if(!i)continue;const o="PrivateIdentifier"===e;if(o&&s.push(i),"CallExpression"===a.value?.type){const e=$l(a.value,t.state.scope);if("$state"===e||"$state.raw"===e||"$derived"===e||"$derived.by"===e){const t={kind:"$state"===e?"state":"$state.raw"===e?"raw_state":"$derived.by"===e?"derived_by":"derived",id:o?a.key:null};o?r.set(i,t):n.set(i,t)}}}for(const[e,t]of n){let n=e;for(;s.includes(n);)n="_"+n;s.push(n),t.id=Ma(n)}const a=[],i={...t.state,public_state:n,private_state:r};for(const s of e.body){if("PropertyDefinition"===s.type&&("Identifier"===s.key.type||"PrivateIdentifier"===s.key.type||"Literal"===s.key.type)){const e=Pk(s.key);if(!e)continue;const o="PrivateIdentifier"===s.key.type,l=(o?r:n).get(e);if("CallExpression"===s.value?.type&&void 0!==l){let n=null;if(s.value.arguments.length>0){const e=t.visit(s.value.arguments[0],i);n="state"===l.kind?ka("$.state",Rc(e,t.state.scope)?ka("$.proxy",e):e):"raw_state"===l.kind?ka("$.state",e):"derived_by"===l.kind?ka("$.derived",e):ka("$.derived",Qa(e))}else n=ka("$.state");if(o)a.push(Ha(l.id,n));else{const t=Da(ai,l.id);if(a.push(Ha(l.id,n)),a.push(ci("get",s.key,[],[mi(ka("$.get",t))])),"state"===l.kind){const e=La("value"),n=Da(ai,l.id);a.push(ci("set",s.key,[e],[Xa(ka("$.set",t,Ec(e,n)))]))}if("raw_state"===l.kind){const e=La("value");a.push(ci("set",s.key,[e],[Xa(ka("$.set",t,e))]))}!D||"derived"!==l.kind&&"derived_by"!==l.kind||a.push(ci("set",s.key,[La("_")],[fi(`Cannot update a derived property ('${e}')`)]))}continue}}a.push(t.visit(s,i))}return D&&n.size>0&&a.push(ci("method",La("$.ADD_OWNER"),[La("owner")],Array.from(n.keys()).map((t=>Xa(ka("$.add_owner",ka("$.get",Da(ai,Ma(t))),La("owner"),Na(!1),z(e,"ownership_invalid_binding")&&ti)))),!0)),{...e,body:a}},Comment:function(e,t){t.state.template.push(`\x3c!--${e.data}--\x3e`)},Component:function(e,t){if(e.metadata.dynamic){const n=Sk(e,"$$component",t,La("$$anchor"));return void t.state.init.push(Xa(ka("$.component",t.state.node,Qa(t.visit(ja(e.name))),ba([La("$$anchor"),La("$$component")],wa([n])))))}const n=Sk(e,e.name,t);t.state.init.push(n)},ConstTag:function(e,t){const n=e.declaration.declarations[0];if("Identifier"===n.id.type)t.state.init.push(oi(n.id,qc(t.state,Qa(t.visit(n.init))))),t.state.transform[n.id.name]={read:wc},D&&t.state.init.push(Xa(ka("$.get",n.id)));else{const e=ki(n.id),r=La(t.state.scope.generate("computed_const")),s={...t.state.transform};for(const t of e)delete s[t.name];const a={...t.state,transform:s},i=ba([],wa([oi(t.visit(n.id,a),t.visit(n.init,a)),mi(Ba(e.map((e=>Va("init",e,e)))))]));t.state.init.push(oi(r,qc(t.state,i))),D&&t.state.init.push(Xa(ka("$.get",r)));for(const n of e)t.state.transform[n.name]={read:e=>Da(ka("$.get",r),e)}}},DebugTag:function(e,t){const n=Ba(e.identifiers.map((e=>{const n=ka("$.snapshot",t.visit(e));return Va("init",e,t.state.analysis.runes?n:ka("$.untrack",Qa(n)))}))),r=ka("console.log",n);t.state.init.push(Xa(ka("$.template_effect",Qa(wa([Xa(r),si])))))},EachBlock:function(e,t){const n=e.metadata,r=t.visit(e.expression,{...t.state,scope:t.state.scope.parent});n.is_controlled||t.state.template.push("<!>"),null!==n.array_name&&t.state.init.push(oi(n.array_name,Qa(r)));let s=0;e.metadata.keyed&&e.index&&(s|=2);const a="Identifier"===e.key?.type&&"Identifier"===e.context.type&&e.context.name===e.key.name;let i;for(const t of e.metadata.expression.dependencies)if("store_sub"===t.kind){i=!0;break}for(const n of e.metadata.expression.dependencies)if(!(n.scope.function_depth>=t.state.scope.function_depth)&&(!t.state.analysis.runes||!a||i)){s|=1;break}t.state.analysis.runes&&!i&&(s|=16),e.key&&e.body.nodes.some((e=>("RegularElement"===e.type||"SvelteElement"===e.type)&&e.attributes.some((e=>"AnimateDirective"===e.type))))&&(s|=8),n.is_controlled&&(s|=4);let o="";if("Identifier"===e.expression.type||"MemberExpression"===e.expression.type){const n=vi(e.expression);if(n){const e=t.state.scope.get(n.name);"store_sub"===e?.kind&&(o=n.name)}}const l=function(e){return e.path.filter((e=>"EachBlock"===e.type))}(t).flatMap((e=>[t.visit(e.expression),...Ek(e.metadata.expression.dependencies,t)]));if(n.array_name)l.push(ka(n.array_name));else{l.push(r);const e=Ek(n.expression.dependencies,t);l.push(...e)}const c={...t.state,transform:{...t.state.transform}},u={...t.state,transform:{...t.state.transform}},p=n.contains_group_binding||!e.index?n.index:La(e.index),d="Identifier"===e.context.type?e.context:La("$$item");let h=n.contains_group_binding,m=!1;e.index&&(c.transform[e.index]={read:e=>(h=!0,0!=(2&s)?wc(e):e)},u.transform[e.index]={read:e=>(m=!0,e)});const f=[],y=ka("$.invalidate_inner_signals",Qa(Wa(l))),v=o?ka("$.invalidate_store",La("$$stores"),Na(o)):void 0,g=[];if(t.state.analysis.runes||g.push(y),v&&g.push(v),"Identifier"===e.context.type){const a=t.state.scope.get(e.context.name);c.transform[e.context.name]={read:e=>a.reassigned?Da(n.array_name?ka(n.array_name):r,0!=(2&s)?wc(p):p,!0):0!=(1&s)?wc(e):e,assign:(e,t)=>{h=!0;return Wa([xa("=",Da(n.array_name?ka(n.array_name):r,0!=(2&s)?wc(p):p,!0),t),...g])},mutate:(e,t)=>Wa([t,...g])},delete u.transform[e.context.name]}else{const n=0!=(1&s)?ka("$.get",d):d;for(const r of Ei(e.context)){const e=r.node.name,s=r.has_default_value,a=Qa(t.visit(r.expression?.(n),c));f.push(ii(r.node,s?ka("$.derived_safe_equal",a):a));const i=s?wc:ka;c.transform[e]={read:i,assign:(e,t)=>Wa([xa("=",r.update_expression(n),t),...g]),mutate:(e,t)=>Wa([t,...g])},D&&f.push(Xa(i(La(e)))),delete u.transform[e]}}const b=t.visit(e.body,c);let x=La("$.index");if(e.metadata.keyed){const n=t.visit(e.key,u);x=ba(m?[e.context,p]:[e.context],n)}e.index&&n.contains_group_binding&&f.push(ii(e.index,p)),D&&e.metadata.keyed&&t.state.init.push(Xa(ka("$.validate_each_keys",Qa(r),x)));const _=[t.state.node,Na(s),n.array_name?n.array_name:Qa(r),x,ba(h?[La("$$anchor"),d,p]:[La("$$anchor"),d],wa(f.concat(b.body)))];e.fallback&&_.push(ba([La("$$anchor")],t.visit(e.fallback))),t.state.init.push(Xa(ka("$.each",..._)))},ExportNamedDeclaration:function(e,t){return t.state.is_instance?e.declaration?t.visit(e.declaration):$a:t.next()},ExpressionStatement:function(e,t){if("CallExpression"===e.expression.type){const n=$l(e.expression,t.state.scope);if("$effect"===n||"$effect.pre"===n){const r=ka("$effect"===n?"$.user_effect":"$.user_pre_effect",t.visit(e.expression.arguments[0]));return r.callee.loc=e.expression.callee.loc,Xa(r)}}t.next()},Fragment:function(e,t){const n=t.path.at(-1)??e,r=Qw(t.state.metadata.namespace,n,e.nodes),{hoisted:s,trimmed:a,is_standalone:i,is_text_first:o}=Jw(n,e.nodes,t.path,r,t.state,t.state.preserve_whitespace,t.state.options.preserveComments);if(0===s.length&&0===a.length)return wa([]);const l=1===a.length&&"RegularElement"===a[0].type,c=1===a.length&&("SvelteFragment"===a[0].type||"TitleElement"===a[0].type),u=t.state.scope.root.unique("root"),p=[];let d;const h={...t.state,before_init:[],init:[],update:[],after_update:[],template:[],locations:[],transform:{...t.state.transform},metadata:{context:{template_needs_import_node:!1,template_contains_script_tag:!1},namespace:r,bound_contenteditable:t.state.metadata.bound_contenteditable}};for(const e of s)t.visit(e,h);o&&p.push(Xa(ka("$.next")));const m=(e,n)=>{let s=ka(function(e,t){const n=t.metadata.context.template_contains_script_tag;return"svg"===e?n?"$.svg_template_with_script":"$.ns_template":"mathml"===e?"$.mathml_template":n?"$.template_with_script":"$.template"}(r,h),...n);D&&(s=ka("$.add_locations",s,Da(La(t.state.analysis.name),"$.FILENAME",!0),Ik(h.locations))),t.state.hoisted.push(li(e,s))};if(l){const e=a[0],n=La(t.state.scope.generate(e.name));t.visit(e,{...h,node:n});const r=[Rk(h.template)];h.metadata.context.template_needs_import_node&&r.push(Na(2)),m(u,r),p.push(li(n,ka(u)),...h.before_init,...h.init),d=Xa(ka("$.append",La("$$anchor"),n))}else if(c)t.visit(a[0],h),p.push(...h.before_init,...h.init);else if(1===a.length&&"Text"===a[0].type){const e=La(t.state.scope.generate("text"));p.push(li(e,ka("$.text",Na(a[0].data))),...h.before_init,...h.init),d=Xa(ka("$.append",La("$$anchor"),e))}else if(a.length>0){const e=La(t.state.scope.generate("fragment")),n=a.some((e=>"ExpressionTag"===e.type))&&a.every((e=>"Text"===e.type||"ExpressionTag"===e.type));if(n){const e=La(t.state.scope.generate("text"));Tk(a,(()=>e),!1,{...t,state:h}),p.push(li(e,ka("$.text")),...h.before_init,...h.init),d=Xa(ka("$.append",La("$$anchor"),e))}else{if(i)Tk(a,(()=>La("$$anchor")),!1,{...t,state:h});else{Tk(a,(t=>ka("$.first_child",e,t&&ti)),!1,{...t,state:h});let n=1;h.metadata.context.template_needs_import_node&&(n|=2),1===h.template.length&&"<!>"===h.template[0]?p.push(li(e,ka("$.comment"))):(m(u,[Rk(h.template),Na(n)]),p.push(li(e,ka(u)))),d=Xa(ka("$.append",La("$$anchor"),e))}p.push(...h.before_init,...h.init)}}else p.push(...h.before_init,...h.init);return h.update.length>0&&p.push(ck(h.update)),p.push(...h.after_update),void 0!==d&&p.push(d),wa(p)},FunctionDeclaration:function(e,t){const n={...t.state,in_constructor:!1};if(!0===e.metadata?.hoisted){const r=Ac(e,t),s=t.visit(e.body,n);return t.state.hoisted.push({...e,params:r,body:s}),$a}t.next(n)},FunctionExpression:function(e,t){return mk(e,t)},HtmlTag:function(e,t){t.state.template.push("<!>"),t.state.init.push(Xa(ka("$.html",t.state.node,Qa(t.visit(e.expression)),Na("svg"===t.state.metadata.namespace),Na("mathml"===t.state.metadata.namespace),z(e,"hydration_html_changed")&&ti)))},Identifier:function(e,t){const n=t.path.at(-1);if(yl(e,n)){if("$$props"===e.name)return La("$$sanitized_props");const r=t.state.scope.get(e.name);if(t.state.analysis.runes&&null!==r&&e!==r.node&&"rest_prop"===r.kind){const e=t.path.at(-2);if("MemberExpression"===n?.type&&!n.computed&&"AssignmentExpression"!==e?.type&&"UpdateExpression"!==e?.type)return La("$$props")}return Sc(e,t.state)}},IfBlock:function(e,t){t.state.template.push("<!>");const n=t.visit(e.consequent),r=[t.state.node,Qa(t.visit(e.test)),ba([La("$$anchor")],n)];(e.alternate||e.elseif)&&r.push(e.alternate?ba([La("$$anchor")],t.visit(e.alternate)):Na(null)),e.elseif&&r.push(Na(!0)),t.state.init.push(Xa(ka("$.if",...r)))},ImportDeclaration:function(e,t){if("hoisted"in t.state)return t.state.hoisted.push(e),$a;t.next()},KeyBlock:function(e,t){t.state.template.push("<!>");const n=t.visit(e.expression),r=t.visit(e.fragment);t.state.init.push(Xa(ka("$.key",t.state.node,Qa(n),ba([La("$$anchor")],r))))},LabeledStatement:function(e,t){if(t.state.analysis.runes||t.path.length>1||"$"!==e.label.name)return void t.next();const n=t.state.analysis.reactive_statements.get(e);if(!n)return;let r=t.visit(e.body);"BlockStatement"!==r.type&&(r=wa([r]));const s=r.body,a=[];for(const e of n.dependencies){if("normal"===e.kind&&"import"!==e.declaration_kind)continue;const n=e.node.name;let r=Sc(La(n),t.state);"$$props"!==n&&"$$restProps"!==n&&"bindable_prop"!==e.kind||(r=ka("$.deep_read_state",r)),a.push(r)}return t.state.legacy_reactive_statements.set(e,Xa(ka("$.legacy_pre_effect",a.length>0?Qa(Wa(a)):Qa(wa([])),Qa(wa(s))))),$a},LetDirective:function(e,t){if(e.expression&&"Identifier"!==e.expression.type){const n=t.state.scope.generate(e.name),r=t.state.scope.get_bindings(e);for(const e of r)t.state.transform[e.node.name]={read:e=>Da(ka("$.get",La(n)),e)};return oi(n,ka("$.derived",Qa(wa([ii("ObjectExpression"===e.expression.type?Fa(e.expression.properties):va(e.expression.elements),Da(La("$$slotProps"),e.name)),mi(Ba(r.map((e=>Oa(e.node.name,e.node)))))]))))}{const n=null===e.expression?e.name:e.expression.name;return t.state.transform[n]={read:e=>ka("$.get",e)},oi(n,qc(t.state,Qa(Da(La("$$slotProps"),e.name))))}},MemberExpression:function(e,t){if("PrivateIdentifier"===e.property.type){if(t.state.private_state.get(e.property.name))return t.state.in_constructor?Da(e,"v"):ka("$.get",e)}t.next()},OnDirective:function(e,t){e.expression||(t.state.analysis.needs_props=!0);let n=gk(e.expression,e.metadata.expression,t);for(const t of qk)e.modifiers.includes(t)&&(n=ka("$."+t,n));const r=e.modifiers.includes("capture"),s=e.modifiers.includes("passive")||!e.modifiers.includes("nonpassive")&&void 0;return vk(e.name,t.state.node,n,r,s)},Program:function(e,t){if(!t.state.analysis.runes){t.state.transform.$$props={read:e=>({...e,name:"$$sanitized_props"})};for(const[e,n]of t.state.scope.declarations)if("import"===n.declaration_kind&&n.mutated){const{start:r,end:s}=t.state.analysis.instance.ast,a=n.initial;if(a.start>r&&a.end<s){const n=La("$$_import_"+e);t.state.transform[e]={read:e=>ka(n),mutate:(e,t)=>ka(n,t)},t.state.legacy_reactive_imports.push(li(n,ka("$.reactive_import",Qa(La(e)))))}}}for(const[e,n]of t.state.scope.declarations){if("store_sub"===n.kind){let n;const r=()=>n??=t.visit(La(e.slice(1)));t.state.transform[e]={read:ka,assign:(e,t)=>ka("$.store_set",r(),t),mutate:(e,t)=>{const n=ka("$.untrack",e);return ka("$.store_mutate",r(),xa(t.operator,function e(t){return"MemberExpression"===t.type?{...t,object:e(t.object),property:t.property}:n}(t.left),t.right),n)},update:n=>ka(n.prefix?"$.update_pre_store":"$.update_store",Sc(La(e.slice(1)),t.state),ka(n.argument),"--"===n.operator&&Na(-1))}}if("prop"===n.kind||"bindable_prop"===n.kind)if($c(n,t.state))t.state.transform[e]={read:ka,assign:(e,t)=>ka(e,t),mutate:(e,t)=>"bindable_prop"===n.kind?ka(e,t,ti):t,update:e=>ka(e.prefix?"$.update_pre_prop":"$.update_prop",e.argument,"--"===e.operator&&Na(-1))};else if(n.prop_alias){const r=yi(n.prop_alias);t.state.transform[e]={read:e=>Da(La("$$props"),r,"Literal"===r.type)}}else t.state.transform[e]={read:e=>Da(La("$$props"),e)}}kc(t),t.next()},RegularElement:function(e,t){let n=[-1,-1];if(D){const r=F(e.start);r&&(n[0]=r.line,n[1]=r.column,t.state.locations.push(n))}if("noscript"===e.name)return void t.state.template.push("<noscript></noscript>");const r=go(e);("video"===e.name||r)&&(t.state.metadata.context.template_needs_import_node=!0),"script"===e.name&&(t.state.metadata.context.template_contains_script_tag=!0),t.state.template.push(`<${e.name}`);const s=[],a=[],i=[],o=[],l=[],c=new Map,u=new Map;let p=e.metadata.has_spread,d=!1;for(const n of e.attributes)switch(n.type){case"AnimateDirective":case"OnDirective":case"TransitionDirective":o.push(n);break;case"Attribute":if("is"===n.name&&"html"===t.state.metadata.namespace){const{value:e}=wk(n.value,t);if("Literal"===e.type&&"string"==typeof e.value){t.state.template.push(` is="${Dw(e.value,!0)}"`);continue}}s.push(n),c.set(n.name,n);break;case"BindDirective":u.set(n.name,n),o.push(n);break;case"ClassDirective":a.push(n);break;case"LetDirective":l.push(t.visit(n));break;case"SpreadAttribute":s.push(n);break;case"StyleDirective":i.push(n);break;case"UseDirective":d=!0,o.push(n)}const h={...t.state,init:[],after_update:[]};for(const e of o)if("OnDirective"===e.type){const n=t.visit(e);d?h.init.push(Xa(ka("$.effect",Qa(n)))):h.after_update.push(Xa(n))}else t.visit(e,h);if("input"===e.name&&(p||u.has("value")||u.has("checked")||u.has("group")||s.some((e=>"Attribute"===e.type&&("value"===e.name||"checked"===e.name)&&!gi(e))))&&t.state.init.push(Xa(ka("$.remove_input_defaults",t.state.node))),"textarea"===e.name){const e=c.get("value")??c.get("checked"),n=e&&!gi(e);(p||u.has("value")||n)&&t.state.init.push(Xa(ka("$.remove_textarea_child",t.state.node)))}"select"===e.name&&u.has("value")&&function(e,t){if(t.state.analysis.runes)return;let n=e.expression;for(;"MemberExpression"===n.type;)n=n.object;const r=[];for(const[e,s]of t.state.scope.references)s.length>0&&e!==n.name&&r.push(e);const s=ka("$.invalidate_inner_signals",Qa(wa(r.map((e=>Xa(Sc(La(e),t.state)))))));t.state.init.push(Xa(ka("$.template_effect",Qa(wa([Xa(t.visit(e.expression)),Xa(s)])))))}(u.get("value"),t),t.state.init.push(...l);const m=t.state.node;let f=p;if(p){const n=La(t.state.scope.generate("attributes"));xk(s,t,e,m,n,(e.metadata.svg||e.metadata.mathml||go(e))&&ti,e.name.includes("-")&&ti,t.state),"select"!==e.name||u.has("value")||(t.state.init.push(Xa(ka("$.init_select",m,Qa(Da(n,"value"))))),t.state.update.push(pi(Ca("in",Na("value"),n),wa([Xa(ka("$.select_option",m,Da(n,"value")))]))))}else{const n="option"===e.name||"select"===e.name||u.has("group")||u.has("checked");for(const a of s){if(Ci(a)){yk(a,t);continue}if(n&&"value"===a.name){Ok(e.name,m,a,t);continue}if(!r&&!Er(a.name)&&(!0===a.value||gi(a))){const n=kk(e,a),r=!gi(a)||a.value[0].data;("class"!==n||r)&&t.state.template.push(` ${a.name}${wr(n)&&!0===r?"":`="${!0===r?"":Dw(r,!0)}"`}`);continue}(r?Mk(m,a,t):Lk(e,m,a,t))&&(f=!0)}}Ck(a,m,t,f),_k(i,m,t,f),"img"===e.name&&(p||c.has("loading"))&&t.state.after_update.push(Xa(ka("$.handle_lazy_img",m))),Ir(e.name)&&(p||d||c.has("onload")||c.has("onerror"))&&t.state.after_update.push(Xa(ka("$.replay_events",m))),t.state.template.push(">");const y={...t.state.metadata,namespace:Yw(e,t.state.metadata.namespace)};if(u.has("innerHTML")||u.has("innerText")||u.has("textContent")){const e=c.get("contenteditable");e&&(!0===e.value||gi(e)&&"true"===e.value[0].data)&&(y.bound_contenteditable=!0)}const v={...t.state,metadata:y,locations:[],scope:t.state.scopes.get(e.fragment),preserve_whitespace:t.state.preserve_whitespace||"pre"===e.name||"textarea"===e.name},{hoisted:g,trimmed:b}=Jw(e,e.fragment.nodes,t.path,v.metadata.namespace,v,"script"===e.name||v.preserve_whitespace,v.options.preserveComments),x={...v,init:[],update:[],after_update:[]};for(const e of g)t.visit(e,x);if(b.every((e=>"Text"===e.type||"ExpressionTag"===e.type))&&b.every((e=>"Text"===e.type||!e.metadata.expression.has_state))&&b.some((e=>"ExpressionTag"===e.type)))x.init.push(Xa(xa("=",Da(t.state.node,"textContent"),ok(b,t.visit,x).value)));else{let n=t.state.node,r=b.some((e=>"Text"!==e.type));"template"===e.name&&(r=!0,x.init.push(Xa(ka("$.hydrate_template",n))),n=Da(n,"content")),Tk(b,(e=>ka("$.child",n,e&&ti)),!0,{...t,state:x}),r&&x.init.push(Xa(ka("$.reset",t.state.node)))}if(e.fragment.nodes.some((e=>"SnippetBlock"===e.type))?t.state.init.push(wa([...x.init,...h.init,x.update.length>0?ck(x.update):$a,...x.after_update,...h.after_update])):e.fragment.metadata.dynamic?(t.state.init.push(...x.init,...h.init),t.state.update.push(...x.update),t.state.after_update.push(...x.after_update,...h.after_update)):(t.state.init.push(...h.init),t.state.after_update.push(...h.after_update)),c.has("dir")){const e=Da(m,"dir");t.state.update.push(Xa(xa("=",e,e)))}v.locations.length>0&&n.push(v.locations),yr(e.name)||t.state.template.push(`</${e.name}>`)},RenderTag:function(e,t){t.state.template.push("<!>");const n=$i(e.expression).callee,r=$i(e.expression).arguments;let s=[];for(let n=0;n<r.length;n++){const a=r[n],i=t.visit(a);if(e.metadata.args_with_call_expression.has(n)){const e=La(t.state.scope.generate("render_arg"));t.state.init.push(li(e,ka("$.derived_safe_equal",Qa(i)))),s.push(Qa(ka("$.get",e)))}else s.push(Qa(i))}let a=t.visit(n);e.metadata.dynamic?("ChainExpression"===e.expression.type&&(a=Ea("??",a,La("$.noop"))),t.state.init.push(Xa(ka("$.snippet",t.state.node,Qa(a),...s)))):t.state.init.push(Xa(("CallExpression"===e.expression.type?ka:Pa)(a,t.state.node,...s)))},SlotElement:function(e,t){t.state.template.push("<!>");const n=[],r=[],s=[];let a=Na("default");for(const i of e.attributes)if("SpreadAttribute"===i.type)r.push(Qa(t.visit(i)));else if("Attribute"===i.type){const{value:e}=wk(i.value,t);"name"===i.name?a=e:"slot"!==i.name&&(i.metadata.expression.has_state?n.push(qa(i.name,[mi(e)])):n.push(Oa(i.name,e)))}else"LetDirective"===i.type&&s.push(t.visit(i));t.state.init.push(...s);const i=0===r.length?Ba(n):ka("$.spread_props",Ba(n),...r),o=0===e.fragment.nodes.length?Na(null):ba([La("$$anchor")],t.visit(e.fragment)),l=ka("$.slot",t.state.node,La("$$props"),a,i,o);t.state.init.push(Xa(l))},SnippetBlock:function(e,t){const n=[La("$$anchor")];let r;const s=[],a={...t.state.transform},i={...t.state,transform:a};for(let r=0;r<e.parameters.length;r++){const i=e.parameters[r];if(!i)continue;if("Identifier"===i.type){n.push({type:"AssignmentPattern",left:i,right:La("$.noop")}),a[i.name]={read:ka};continue}let o=`$$arg${r}`;n.push(La(o));const l=Ei(i);for(const e of l){const n=e.node.name,r=e.has_default_value,i=Qa(t.visit(e.expression?.(Pa(La(o)))));s.push(ii(e.node,r?ka("$.derived_safe_equal",i):i)),a[n]={read:r?wc:ka},D&&s.push(Xa(a[n].read(La(n))))}}r=wa([...s,...t.visit(e.body,i).body]);let o=ba(n,r);D&&(o=ka("$.wrap_snippet",La(t.state.analysis.name),o));const l=oi(e.expression,o);1===t.path.length&&"Fragment"===t.path[0].type?t.state.analysis.top_level_snippets.push(l):t.state.init.push(l)},SpreadAttribute:function(e,t){return t.visit(e.expression)},SvelteBody:function(e,t){Nk(e,"$.document.body",t)},SvelteComponent:function(e,t){const n=Sk(e,"$$component",t);t.state.init.push(n)},SvelteDocument:function(e,t){Nk(e,"$.document",t)},SvelteElement:function(e,t){t.state.template.push("<!>");const n=[];let r;const s=[],a=[],i=[],o=La(t.state.scope.generate("$$element")),l={...t,state:{...t.state,node:o,before_init:[],init:[],update:[],after_update:[]}};for(const o of e.attributes)if("Attribute"===o.type)"xmlns"!==o.name||gi(o)||(r=o.value),n.push(o);else if("SpreadAttribute"===o.type)n.push(o);else if("ClassDirective"===o.type)s.push(o);else if("StyleDirective"===o.type)a.push(o);else if("LetDirective"===o.type)i.push(t.visit(o));else if("OnDirective"===o.type){const e=t.visit(o,l.state);l.state.after_update.push(Xa(e))}else t.visit(o,l.state);t.state.init.push(...i);let c=!1;if(0===n.length)t.state.analysis.css.hash&&l.state.init.push(Xa(ka("$.set_class",o,Na(t.state.analysis.css.hash))));else{c=xk(n,l,e,o,La(t.state.scope.generate("attributes")),Ca("===",Da(o,"namespaceURI"),La("$.NAMESPACE_SVG")),ka(Da(Da(o,"nodeName"),"includes"),Na("-")),t.state)}Ck(s,o,l,c),_k(a,o,l,c);const u=Qa(t.visit(e.tag));D&&(e.fragment.nodes.length>0&&t.state.init.push(Xa(ka("$.validate_void_dynamic_element",u))),t.state.init.push(Xa(ka("$.validate_dynamic_element_tag",u))));const p=l.state.init;l.state.update.length>0&&p.push(ck(l.state.update)),p.push(...l.state.after_update),p.push(...t.visit(e.fragment,{...t.state,metadata:{...t.state.metadata,namespace:Yw(e,t.state.metadata.namespace)}}).body);const d=D&&F(e.start);t.state.init.push(Xa(ka("$.element",t.state.node,u,e.metadata.svg||e.metadata.mathml?ti:ni,p.length>0&&ba([o,La("$$anchor")],wa(p)),r&&Qa(wk(r,t).value),d&&ya([Na(d.line),Na(d.column)]))))},SvelteFragment:function(e,t){for(const n of e.attributes)"LetDirective"===n.type&&t.state.init.push(t.visit(n));t.state.init.push(...t.visit(e.fragment).body)},SvelteHead:function(e,t){t.state.init.push(Xa(ka("$.head",ba([La("$$anchor")],t.visit(e.fragment)))))},SvelteSelf:function(e,t){const n=Sk(e,t.state.analysis.name,t);t.state.init.push(n)},SvelteWindow:function(e,t){Nk(e,"$.window",t)},TitleElement:function(e,t){const{has_state:n,value:r}=ok(e.fragment.nodes,t.visit,t.state),s=Xa(xa("=",La("$.document.title"),r));n?t.state.update.push(s):t.state.init.push(s)},TransitionDirective:function(e,t){let n=e.modifiers.includes("global")?4:0;e.intro&&(n|=1),e.outro&&(n|=2);const r=[Na(n),t.state.node,Qa(t.visit(uk(e.name)))];e.expression&&r.push(Qa(t.visit(e.expression))),t.state.after_update.push(Xa(ka("$.transition",...r)))},UpdateExpression:function(e,t){const n=e.argument;if("MemberExpression"===n.type&&"ThisExpression"===n.object.type&&"PrivateIdentifier"===n.property.type&&t.state.private_state.has(n.property.name)){let t="$.update";e.prefix&&(t+="_pre");const r=[n];return"--"===e.operator&&r.push(Na(-1)),ka(t,...r)}if("Identifier"!==n.type&&"MemberExpression"!==n.type)throw new Error("An impossible state was reached");const r=vi(n);if(null===r)return t.next();if(r===n){const n=t.state.transform,s=n[r.name]?.update;if(s&&Object.hasOwn(n,r.name))return s(e)}const s=t.visit(xa("++"===e.operator?"+=":"-=",n,Na(1))),a="ExpressionStatement"===t.path.at(-1).type,i=e.prefix||a?s:Ca("++"===e.operator?"-":"+",s,Na(1));return z(e,"ownership_invalid_mutation")?ka("$.skip_ownership_validation",Qa(i)):i},UseDirective:function(e,t){const n=[La("$$node")];e.expression&&n.push(La("$$action_arg"));const r=[t.state.node,ba(n,ka(t.visit(uk(e.name)),...n))];e.expression&&r.push(Qa(t.visit(e.expression))),t.state.init.push(Xa(ka("$.action",...r))),t.next()},VariableDeclaration:function(e,t){const n=[];if(t.state.analysis.runes)for(const r of e.declarations){const e=r.init,s=$l(e,t.state.scope);if(!s||"$effect.tracking"===s||"$effect.root"===s||"$inspect"===s||"$state.snapshot"===s||"$host"===s){if(null!=e&&Kw(e)){t.state.hoisted.push(oi(r.id,t.visit(e)));continue}n.push(t.visit(r));continue}if("$props"===s){const e=["$$slots","$$events","$$legacy"];if(t.state.analysis.custom_element&&e.push("$$host"),"Identifier"===r.id.type){const t=[La("$$props"),ya(e.map((e=>Na(e))))];D&&t.push(Na(r.id.name)),n.push(Ta(r.id,ka("$.rest_props",...t)))}else{C_(r.id.type,"ObjectPattern");for(const s of r.id.properties)if("Property"===s.type){const r=s.key,a="Identifier"===r.type?r.name:r.value;e.push(a);let i="AssignmentPattern"===s.value.type?s.value.left:s.value;C_(i.type,"Identifier");const o=t.state.scope.get(i.name);let l=o.initial&&t.visit(o.initial);l&&"bindable_prop"===o.kind&&Rc(l,t.state.scope)&&(l=ka("$.proxy",l)),$c(o,t.state)&&n.push(Ta(i,Tc(o,t.state,a,l)))}else{const t=[La("$$props"),ya(e.map((e=>Na(e))))];D&&t.push(Na(s.argument.name)),n.push(Ta(s.argument,ka("$.rest_props",...t)))}}continue}const a=e.arguments,i=0===a.length?La("undefined"):t.visit(a[0]);if("$state"!==s&&"$state.raw"!==s)if("$derived"!==s&&"$derived.by"!==s);else if("Identifier"===r.id.type)n.push(Ta(r.id,ka("$.derived","$derived.by"===s?i:Qa(i))));else{const e=Ei(r.id),a=r.init;let o,l=i;"$derived"===s&&"Identifier"===a.arguments[0].type?o=a.arguments[0]:(o=La(t.state.scope.generate("$$d")),l=ka("$.get",o),n.push(Ta(o,ka("$.derived","$derived.by"===s?i:Qa(i)))));for(let t=0;t<e.length;t++){const r=e[t];n.push(Ta(r.node,ka("$.derived",Qa(r.expression(l)))))}}else{const e=(e,n)=>{const r=t.state.scope.get(e.name);return"$state"===s&&Rc(n,t.state.scope)&&(n=ka("$.proxy",n)),Pc(r,t.state.analysis)&&(n=ka("$.state",n)),n};if("Identifier"===r.id.type)n.push(Ta(r.id,e(r.id,i)));else{const s=t.state.scope.generate("tmp"),a=Ei(r.id);n.push(Ta(La(s),i),...a.map((n=>{const r=n.expression?.(La(s)),a=t.state.scope.get(n.node.name);return Ta(n.node,"state"===a?.kind||"raw_state"===a?.kind?e(a.node,r):r)})))}}}else for(const r of e.declarations){const e=t.state.scope.get_bindings(r),s=e.some((e=>"state"===e.kind)),a=e.some((e=>"bindable_prop"===e.kind));if(s||a)if(a){if("Identifier"!==r.id.type){const e=t.state.scope.generate("tmp"),s=Ei(r.id);n.push(Ta(La(e),t.visit(r.init)));for(const r of s){const s=r.node.name,a=t.state.scope.get(s),i=r.expression?.(La(e));n.push(Ta(r.node,"bindable_prop"===a.kind?Tc(a,t.state,a.prop_alias??s,i):i))}continue}const e=t.state.scope.get(r.id.name);n.push(Ta(r.id,Tc(e,t.state,e.prop_alias??r.id.name,r.init&&t.visit(r.init))))}else n.push(...Dk(r,t.state,r.init&&t.visit(r.init)));else{const e=r.init;if(null!=e&&Kw(e)){t.state.hoisted.push(oi(r.id,t.visit(e)));continue}n.push(t.visit(r))}}return 0===n.length?$a:{...e,declarations:n}}};function Bk(e,n,r){if(!1===r.generate)return{js:null,css:null,warnings:B,metadata:{runes:e.runes},ast:null};const s="server"===r.generate?function(e,n){const r={analysis:e,options:n,scope:e.module.scope,scopes:e.module.scopes,hoisted:[di("$","svelte/internal/server")],legacy_reactive_statements:new Map,init:null,template:null,namespace:n.namespace,preserve_whitespace:n.preserveWhitespace,private_derived:new Map,skip_hydration_boundaries:!1},s=t(e.module.ast,r,ak),a=t(e.instance.ast,{...r,scopes:e.instance.scopes},{...ak,ImportDeclaration:e=>(r.hoisted.push(e),$a),ExportNamedDeclaration:(e,t)=>e.declaration?t.visit(e.declaration):$a}),i=t(e.template.ast,{...r,scopes:e.template.scopes},{...ak,...ik}),o=[];for(const[t]of e.reactive_statements){const n=[...r.legacy_reactive_statements].find((([e])=>e===t));if(void 0===n)throw new Error("Could not find reactive statement");if("ExpressionStatement"===t.body.type&&"AssignmentExpression"===t.body.expression.type)for(const n of ki(t.body.expression.left)){const t=e.instance.scope.get(n.name);"legacy_reactive"===t?.kind&&o.push(Ta(n))}a.body.push(n[1])}if(o.length>0&&a.body.unshift({type:"VariableDeclaration",kind:"let",declarations:o}),e.uses_component_bindings){const e=i.body.filter((e=>"FunctionDeclaration"===e.type&&e.___snippet)),t=i.body.filter((e=>"FunctionDeclaration"!==e.type||!e.___snippet));i.body=[...e,ii("$$settled",ti),ii("$$inner_payload"),Xa(ui(La("$$render_inner"),[La("$$payload")],wa(t))),ei((l="!",c=La("$$settled"),{type:"UnaryExpression",argument:c,operator:l,prefix:!0}),wa([Xa(xa("=",La("$$settled"),ti)),Xa(xa("=",La("$$inner_payload"),ka("$.copy_payload",La("$$payload")))),Xa(ka("$$render_inner",La("$$inner_payload")))])),Xa(ka("$.assign_payload",La("$$payload"),La("$$inner_payload")))]}var l,c;[...e.instance.scope.declarations.values()].some((e=>"store_sub"===e.kind))&&(a.body.unshift(li("$$store_subs")),i.body.push(pi(La("$$store_subs"),Xa(ka("$.unsubscribe_stores",La("$$store_subs"))))));const u=[];for(const[t,n]of e.instance.scope.declarations)"bindable_prop"!==n.kind||t.startsWith("$$")||u.push(Oa(n.prop_alias??t,La(t)));for(const{name:t,alias:n}of e.exports)u.push(Oa(n??t,La(t)));u.length>0&&i.body.push(Xa(ka("$.bind_props",La("$$props"),Ba(u))));const p=wa([...a.body,...i.body]);let d=D||e.needs_context;if(d&&(p.body.unshift(Xa(ka("$.push",D&&La(e.name)))),p.body.push(Xa(ka("$.pop")))),e.uses_rest_props){const t=e.exports.map((({name:e,alias:t})=>t??e));for(const[n,r]of e.instance.scope.declarations)"bindable_prop"===r.kind&&t.push(r.prop_alias??n);p.body.unshift(oi("$$restProps",ka("$.rest_props",La("$$sanitized_props"),ya(t.map((e=>Na(e)))))))}(e.uses_props||e.uses_rest_props)&&p.body.unshift(oi("$$sanitized_props",ka("$.sanitize_props",La("$$props")))),e.uses_slots&&p.body.unshift(oi("$$slots",ka("$.sanitize_slots",La("$$props"))));const h=[...r.hoisted,...s.body];if(null!==e.css.ast&&"injected"===n.css&&!n.customElement){const t=Na(e.css.hash),r=Na(Ew(e.source,e,n).code);h.push(oi("$$css",Ba([Oa("hash",t),Oa("code",r)]))),p.body.unshift(Xa(ka("$$payload.css.add",La("$$css"))))}let m=d||u.length>0||e.needs_props||e.uses_props||e.uses_rest_props||e.uses_slots||e.slot_names.size>0;const f=Ia(La(e.name),m?[La("$$payload"),La("$$props")]:[La("$$payload")],p);return 4===n.compatibility.componentApi?(h.unshift(hi([["render","$$_render"]],"svelte/server")),h.push(f,Xa(xa("=",ja(`${e.name}.render`),ui(null,[La("$$props"),La("$$opts")],wa([mi(ka("$$_render",La(e.name),Ba([Oa("props",La("$$props")),Oa("context",Da(La("$$opts"),"context",!1,!0))])))])))),Ra(La(e.name)))):D?h.push(f,Xa(xa("=",ja(`${e.name}.render`),ui(null,[],wa([fi("Component.render(...) is no longer valid in Svelte 5. See https://svelte.dev/docs/svelte/v5-migration-guide#Components-are-no-longer-classes for more information")])))),Ra(La(e.name))):h.push(Ra(f)),D&&h.unshift(Xa(xa("=",Da(La(e.name),"$.FILENAME",!0),Na(O)))),{type:"Program",sourceType:"module",body:h}}(e,r):function(e,n){const r={analysis:e,options:n,scope:e.module.scope,scopes:e.module.scopes,is_instance:!1,hoisted:[di("$","svelte/internal/client")],node:null,legacy_reactive_imports:[],legacy_reactive_statements:new Map,metadata:{context:{template_needs_import_node:!1,template_contains_script_tag:!1},namespace:n.namespace,bound_contenteditable:!1},events:new Set,preserve_whitespace:n.preserveWhitespace,public_state:new Map,private_state:new Map,transform:{},in_constructor:!1,before_init:null,init:null,update:null,after_update:null,template:null,locations:null},s=t(e.module.ast,r,jk),a={...r,transform:{...r.transform},scope:e.instance.scope,scopes:e.instance.scopes,is_instance:!0},i=t(e.instance.ast,a,jk),o=t(e.template.ast,{...r,transform:a.transform,scope:e.instance.scope,scopes:e.template.scopes},jk);s.body.unshift(...r.legacy_reactive_imports);const l=[],c=[];for(const[t,n]of e.instance.scope.declarations)if("legacy_reactive"===n.kind&&c.push(oi(t,ka("$.mutable_state",void 0,e.immutable?ti:void 0))),"store_sub"===n.kind){0===l.length&&l.push(oi("$$stores",ka("$.setup_stores")));const e=Sc(La(t.slice(1)),a),r=ka("$.store_get",e,Na(t),La("$$stores"));l.push(oi(n.node,Qa(D?Wa([ka("$.validate_store",e,Na(t.slice(1))),r]):r)))}for(const[t]of e.reactive_statements){const e=[...r.legacy_reactive_statements].find((([e])=>e===t));if(void 0===e)throw new Error("Could not find reactive statement");i.body.push(e[1])}e.reactive_statements.size>0&&i.body.push(Xa(ka("$.legacy_pre_effect_reset")));const u=[];for(const t of e.binding_groups.values())u.push(oi(t.name,ya([])));const p=e.exports.flatMap((({name:e,alias:t})=>{const n=a.scope.get(e),r=Sc(La(e),a),s=qa(t??e,[mi(r)]);if("Identifier"===r.type){if("let"===n?.declaration_kind||"var"===n?.declaration_kind)return[s,Ga(t??e,[Xa(xa("=",r,La("$$value")))])];if(!D)return Oa(t??e,r)}if("prop"===n?.kind||"bindable_prop"===n?.kind)return[s,Ga(t??e,[Xa(ka(e,La("$$value")))])];if("state"===n?.kind||"raw_state"===n?.kind){const r="state"===n.kind?ka("$.proxy",La("$$value")):La("$$value");return[s,Ga(t??e,[Xa(ka("$.set",La(e),r))])]}return s})),d=[...e.instance.scope.declarations].filter((([e,t])=>("prop"===t.kind||"bindable_prop"===t.kind)&&!e.startsWith("$$")));if(D&&e.runes){const t=e.exports.map((({name:e,alias:t})=>Na(t??e))),n=[];for(const[e,t]of d)"bindable_prop"===t.kind&&n.push(Na(t.prop_alias??e));i.body.unshift(Xa(ka("$.validate_prop_bindings",La("$$props"),ya(n),ya(t),La(`${e.name}`))))}if(e.accessors)for(const[t,n]of d){const r=n.prop_alias??t,s=qa(r,[mi(ka(La(t)))]),a=Ga(r,[Xa(ka(La(t),La("$$value"))),Xa(ka("$.flush_sync"))]);e.runes&&n.initial&&(a.value.params[0]={type:"AssignmentPattern",left:La("$$value"),right:n.initial}),p.push(s,a)}4===n.compatibility.componentApi?p.push(Oa("$set",La("$.update_legacy_props")),Oa("$on",ba([La("$$event_name"),La("$$event_cb")],ka("$.add_legacy_event_listener",La("$$props"),La("$$event_name"),La("$$event_cb"))))):D&&p.push(Ka(ka(La("$.legacy_api"))));const h=[La("$$props"),Na(e.runes)];D&&h.push(La(e.name));const m=wa([...l,...c,...u,...e.top_level_snippets,...i.body,e.runes||!e.needs_context?$a:Xa(ka("$.init",e.immutable?ti:void 0)),...o.body]);if(!e.runes)for(const{name:t,alias:n}of e.exports)m.body.push(Xa(ka("$.bind_prop",La("$$props"),Na(n??t),Sc(La(t),a))));if(null!==e.css.ast&&e.inject_styles){const t=Na(e.css.hash),s=Na(Ew(e.source,e,n).code);r.hoisted.push(oi("$$css",Ba([Oa("hash",t),Oa("code",s)]))),m.body.unshift(Xa(ka("$.append_styles",La("$$anchor"),La("$$css"))))}const f=D||e.needs_context||e.reactive_statements.size>0||p.length>0;if(f&&(m.body.unshift(Xa(ka("$.push",...h))),m.body.push(p.length>0?mi(ka("$.pop",Ba(p))):Xa(ka("$.pop")))),e.uses_rest_props){const t=e.exports.map((({name:e,alias:t})=>t??e));for(const[n,r]of e.instance.scope.declarations)"bindable_prop"===r.kind&&t.push(r.prop_alias??n);m.body.unshift(oi("$$restProps",ka("$.legacy_rest_props",La("$$sanitized_props"),ya(t.map((e=>Na(e)))))))}if(e.uses_props||e.uses_rest_props){const t=[Na("children"),Na("$$slots"),Na("$$events"),Na("$$legacy")];e.custom_element&&t.push(Na("$$host")),m.body.unshift(oi("$$sanitized_props",ka("$.legacy_rest_props",La("$$props"),ya(t))))}e.uses_slots&&m.body.unshift(oi("$$slots",ka("$.sanitize_slots",La("$$props"))));let y=f||e.needs_props||e.uses_props||e.uses_rest_props||e.uses_slots||e.slot_names.size>0;const v=[];let g=[];for(const e of[...s.body,...r.hoisted])"ImportDeclaration"===e.type?v.push(e):g.push(e);g=[...v,...g];const b=Ia(La(e.name),y?[La("$$anchor"),La("$$props")]:[La("$$anchor")],m);if(n.hmr){const t=La(e.name),n=La("$.HMR"),r=Da(t,n,!0),s=Da(La("module.default"),n,!0),a=[Xa(xa("=",Da(s,"source"),Da(r,"source"))),Xa(ka("$.set",Da(r,"source"),Da(s,"original")))];e.css.hash&&a.unshift(Xa(ka("$.cleanup_styles",Na(e.css.hash))));const i=wa([Xa(xa("=",t,ka("$.hmr",t,Qa(Da(r,"source"))))),Xa(ka("import.meta.hot.accept",ba([La("module")],wa(a))))]);g.push(b,pi(La("import.meta.hot"),i),Ra(La(e.name)))}else g.push(Ra(b));if(D&&(g.unshift(Xa(xa("=",Da(La(e.name),"$.FILENAME",!0),Na(O)))),g.unshift(Xa(ka(La("$.mark_module_start")))),g.push(Xa(ka(La("$.mark_module_end"),La(e.name))))),e.runes||g.unshift(hi([],"svelte/internal/flags/legacy")),n.discloseVersion&&g.unshift(hi([],"svelte/internal/disclose-version")),4===n.compatibility.componentApi?(g.unshift(hi([["createClassComponent","$$_createClassComponent"]],"svelte/legacy")),m.body.unshift(pi(La("new.target"),mi(ka("$$_createClassComponent",Ba([Oa("component",La(e.name)),Ka(La("$$anchor"))])))))):D&&m.body.unshift(Xa(ka("$.check_target",La("new.target")))),r.events.size>0&&g.push(Xa(ka("$.delegate",ya(Array.from(r.events).map((e=>Na(e))))))),e.custom_element){const t=e.custom_element,r="boolean"==typeof t?{}:t.props||{},s=[];for(const[t,n]of Object.entries(r)){const r=e.instance.scope.get(t),a=r?.prop_alias??t;n.type||"Literal"!==r?.initial?.type||"boolean"!=typeof r?.initial.value||(n.type="Boolean");const i=Ba([n.attribute?Oa("attribute",Na(n.attribute)):void 0,n.reflect?Oa("reflect",Na(!0)):void 0,n.type?Oa("type",Na(n.type)):void 0].filter(Boolean));s.push(Oa(a,i))}for(const[e,t]of d){const n=t.prop_alias??e;r[n]||s.push(Oa(n,Ba([])))}const a=ya([...e.slot_names.keys()].map((e=>Na(e)))),i=ya(e.exports.map((({name:e,alias:t})=>Na(t??e)))),o="boolean"==typeof t||"none"!==t.shadow,l=ka("$.create_custom_element",La(e.name),Ba(s),a,i,Na(o),"boolean"!=typeof t?t.extend:void 0);if("boolean"!=typeof t&&"string"==typeof t.tag){const e=Xa(ka("customElements.define",Na(t.tag),l));n.hmr?g.push(pi(Ca("==",ka("customElements.get",Na(t.tag)),ri),e)):g.push(e)}else g.push(Xa(l))}return{type:"Program",sourceType:"module",body:g}}(e,r),a=Sw(r.filename,r.outputFilename),i=iC(s,{sourceMapContent:n,sourceMapSource:a});ww(i,r,a);return{js:i,css:e.css.ast&&!e.inject_styles?Ew(n,e,r):null,warnings:B,metadata:{runes:e.runes},ast:null}}function Fk(e,n,r){if(!1===r.generate)return{js:null,css:null,warnings:B,metadata:{runes:!0},ast:null};const s="server"===r.generate?function(e,n){const r={analysis:e,options:n,scope:e.module.scope,scopes:e.module.scopes,legacy_reactive_statements:new Map,private_derived:new Map},s=t(e.module.ast,r,ak);return{type:"Program",sourceType:"module",body:[di("$","svelte/internal/server"),...s.body]}}(e,r):function(e,n){const r={analysis:e,options:n,scope:e.module.scope,scopes:e.module.scopes,public_state:new Map,private_state:new Map,transform:{},in_constructor:!1},s=t(e.module.ast,r,jk);return{type:"Program",sourceType:"module",body:[di("$","svelte/internal/client"),...s.body]}}(e,r),a=r.filename.split(/[/\\]/).at(-1);return s.body.length>0&&(s.body[0].leadingComments=[{type:"Block",value:` ${a} generated by Svelte v${oC} `}]),{js:iC(s,{sourceMapContent:n,sourceMapSource:Sw(r.filename,void 0)}),css:null,metadata:{runes:!0},warnings:B,ast:null}}const Vk={filename:Yk("(unknown)"),rootDir:Yk("undefined"!=typeof process?process.cwd?.():"undefined"!=typeof Deno?Deno.cwd():void 0),dev:Zk(!1),generate:Qk("client",((e,t)=>"dom"===e||"ssr"===e?(Gk(we),"dom"===e?"client":"server"):("client"!==e&&"server"!==e&&!1!==e&&nP(`${t} must be "client", "server" or false`),e))),warningFilter:tP((()=>!0))},Hk=Jk({...Vk}),Uk=Jk({...Vk,accessors:Xk(xe,Zk(!1)),css:Qk("external",(e=>(!0!==e&&!1!==e||nP('The boolean options have been removed from the css option. Use "external" instead of false and "injected" instead of true'),"none"===e&&nP('css: "none" is no longer a valid option. If this was crucial for you, please open an issue on GitHub with your use case.'),"external"!==e&&"injected"!==e&&nP('css should be either "external" (default, recommended) or "injected"'),e))),cssHash:tP((({css:e,hash:t})=>`svelte-${t(e)}`)),cssOutputFilename:Yk(void 0),customElement:Zk(!1),discloseVersion:Zk(!0),immutable:Xk(_e,Zk(!1)),legacy:zk("The legacy option has been removed. If you are using this because of legacy.componentApi, use compatibility.componentApi instead"),compatibility:Jk({componentApi:eP([4,5],5)}),loopGuardTimeout:Kk((function(e){Q(e,"options_removed_loop_guard_timeout","The `loopGuardTimeout` option has been removed")})),name:Yk(void 0),namespace:eP(["html","mathml","svg"]),modernAst:Zk(!1),outputFilename:Yk(void 0),preserveComments:Zk(!1),preserveWhitespace:Zk(!1),runes:Zk(void 0),hmr:Zk(!1),sourcemap:Qk(void 0,(e=>e)),enableSourcemap:Kk((function(e){Q(e,"options_removed_enable_sourcemap","The `enableSourcemap` option has been removed. Source maps are always generated now, and tooling can choose to ignore them")})),hydratable:Kk((function(e){Q(e,"options_removed_hydratable","The `hydratable` option has been removed. Svelte components are always hydratable now")})),format:zk('The format option has been removed in Svelte 4, the compiler only outputs ESM now. Remove "format" from your compiler options. If you did not set this yourself, bump the version of your bundler plugin (vite-plugin-svelte/rollup-plugin-svelte/svelte-loader)'),tag:zk('The tag option has been removed in Svelte 5. Use `<svelte:options customElement="tag-name" />` inside the component instead. If that does not solve your use case, please open an issue on GitHub with details.'),sveltePath:zk("The sveltePath option has been removed in Svelte 5. If this option was crucial for you, please open an issue on GitHub with your use case."),errorMode:zk("The errorMode option has been removed. If you are using this through svelte-preprocess with TypeScript, use the https://www.typescriptlang.org/tsconfig#verbatimModuleSyntax setting instead"),varsReport:zk("The vars option has been removed. If you are using this through svelte-preprocess with TypeScript, use the https://www.typescriptlang.org/tsconfig#verbatimModuleSyntax setting instead")});function zk(e){return t=>{void 0!==t&&jr(null,"options_removed",`Invalid compiler option: ${e}`)}}const Wk=new Set;function Gk(e){Wk.has(e)||(Wk.add(e),e(null))}function Kk(e){return t=>{void 0!==t&&Gk(e)}}function Xk(e,t){return(n,r)=>(void 0!==n&&Gk(e),t(n,r))}function Jk(e,t=!1){return(n,r)=>{const s={};(n&&"object"!=typeof n||Array.isArray(n))&&nP(`${r} should be an object`);for(const a in n)a in e||(t?s[a]=n[a]:Br(null,`${r?`${r}.${a}`:a}`));for(const t in e){const a=e[t];s[t]=a(n&&n[t],r?`${r}.${t}`:t)}return s}}function Qk(e,t){return(n,r)=>void 0===n?e:t(n,r)}function Yk(e,t=!0){return Qk(e,((e,n)=>("string"!=typeof e&&nP(`${n} should be a string, if specified`),t||""!==e||nP(`${n} cannot be empty`),e)))}function Zk(e){return Qk(e,((e,t)=>("boolean"!=typeof e&&nP(`${t} should be true or false, if specified`),e)))}function eP(e,t=e[0]){return Qk(t,((t,n)=>{if(!e.includes(t)){const t=e.length>2?`${n} should be one of ${e.slice(0,-1).map((e=>`"${e}"`)).join(", ")} or "${e[e.length-1]}"`:`${n} should be either "${e[0]}" or "${e[1]}"`;nP(t)}return t}))}function tP(e){return Qk(e,((e,t)=>("function"!=typeof e&&nP(`${t} should be a function, if specified`),e)))}function nP(e){jr(null,"options_invalid_value",`Invalid compiler option: ${e}`)}function rP(e,t,{file_basename:n,filename:r,get_location:s}){return{source:e,get_location:e=>s(e+t),file_basename:n,filename:r}}async function sP(e,t,n){const r=await function(e,t,n){const r=[];return n.replace(e,((...e)=>(r.push(t(...e).then((t=>{const n=e[0];return{offset:e[e.length-2],length:n.length,replacement:t}}))),""))),Promise.all(r)}(e,t,n.source);return function(e,t){const n=new gw;let r=0;for(const{offset:s,length:a,replacement:i}of e){const e=gw.from_source(rP(t.source.slice(r,s),r,t));n.concat(e).concat(i),r=s+a}const s=gw.from_source(rP(t.source.slice(r),r,t));return n.concat(s)}(r,n)}class aP{source;filename;sourcemap_list=[];dependencies=[];file_basename=void 0;get_location=void 0;constructor(e,t){this.source=e,this.filename=t,this.update_source({string:e}),this.file_basename=null==t?null:Pw(t)}update_source({string:e,map:t,dependencies:n}){null!=e&&(this.source=e,this.get_location=M(e)),t&&this.sourcemap_list.unshift(t),n&&this.dependencies.push(...n)}to_processed(){const e=_w(this.file_basename,this.sourcemap_list);return{code:this.source,dependencies:[...new Set(this.dependencies)],map:e,toString:()=>this.source}}}function iP(e,t,n){let r;if(e.map&&(r=function(e){let t="string"==typeof e.map?JSON.parse(e.map):e.map;return"string"==typeof t.mappings&&(t.mappings=tC(t.mappings)),t._mappings&&"SourceMapGenerator"===t.constructor.name&&(t=function(e){let t=1;const n=[[]];let r,s,a=n[0];const i=e._sources.toArray().reduce(((e,t,n)=>(e[t]=n,e)),{}),o=e._names.toArray().reduce(((e,t,n)=>(e[t]=n,e)),{}),l=e._mappings.toArray();for(let e=0,c=l.length;e<c;e++){if(s=l[e],s.generatedLine>t){for(;s.generatedLine>t;)n.push([]),t++;a=n[s.generatedLine-1]}else if(e>0){const t=l[e-1];if(s.generatedColumn===t.generatedColumn&&s.originalColumn===t.originalColumn&&s.name===t.name&&s.generatedLine===t.generatedLine&&s.originalLine===t.originalLine&&s.source===t.source)continue}a.push([s.generatedColumn]),r=a[a.length-1],null!=s.source&&(r.push(i[s.source],s.originalLine-1,s.originalColumn),null!=s.name&&r.push(o[s.name]))}const c={version:e._version,sources:e._sources.toArray(),names:e._names.toArray(),mappings:n};return null!=e._file&&(c.file=e._file),c}(t)),t}(e),r?.sources)){const e=r.sources.indexOf(n);-1!==e&&fw(r,t,e)}return gw.from_processed(e.code,r)}function oP(e,t,n,r,s){const{file_basename:a,get_location:i}=s,o=(e,t)=>gw.from_source(rP(e,t,s)),l=`<${t}${n}>`,c=`<${t}${r}>`;let u;if(l.length!==c.length){const e=[[[0,0,0,0],[`<${t}`.length,0,0,`<${t}`.length]]],n=c.split("\n").length-1,r=c.length-(0===n?0:c.lastIndexOf("\n"))-1;for(;e.length<=n;)e.push([[0,0,0,`<${t}`.length]]);e[n].push([r,0,l.split("\n").length-1,l.length-l.lastIndexOf("\n")-1]);const s={version:3,names:[],sources:[a],mappings:e};fw(s,i(0),0),u=gw.from_processed(c,s)}else u=o(c,0);const p=o(`</${t}>`,l.length+s.source.length);!function(e,t){const n="[#@]\\s*sourceMappingURL\\s*=\\s*(\\S*)",r="script"==t?new RegExp("(?://"+n+")|(?:/\\*"+n+"\\s*\\*/)$"):new RegExp("/\\*"+n+"\\s*\\*/$");function s(t){const n=e.code.length<100?e.code:e.code.slice(0,100)+" [...]";console.warn(`warning: ${t}. processed.code = ${JSON.stringify(n)}`)}e.code=e.code.replace(r,((n,r,a)=>{const i="script"==t?r||a:r,o=(i.match(Cw)||[])[1];return o?e.map?(s("Not implemented. Found sourcemap in both processed.code and processed.map. Please update your preprocessor to return only one sourcemap."),""):(e.map=xw(o),""):(e.map||s(`Found sourcemap path ${JSON.stringify(i)} in processed.code, but no sourcemap data. Please update your preprocessor to return sourcemap data directly.`),"")}))}(e,t);const d=iP(e,i(l.length),a);return u.concat(d).concat(p)}const lP=/([\w-$]+\b)(?:=(?:"([^"]*)"|'([^']*)'|(\S+)))?/g;function cP(e){const t={};let n;for(;null!==(n=lP.exec(e));){const e=n[1],r=n[2]||n[3]||n[4];t[e]=!r||r}return t}const uP=/<!--[^]*?-->|<style((?:\s+[^=>'"/\s]+=(?:"[^"]*"|'[^']*'|[^>\s]+)|\s+[^=>'"/\s]+)*\s*)(?:\/>|>([\S\s]*?)<\/style>)/g,pP=/<!--[^]*?-->|<script((?:\s+[^=>'"/\s]+=(?:"[^"]*"|'[^']*'|[^>\s]+)|\s+[^=>'"/\s]+)*\s*)(?:\/>|>([\S\s]*?)<\/script>)/g;async function dP(e,t,n){const{filename:r,source:s}=n,a="style"===e?uP:pP,i=[];const{string:o,map:l}=await sP(a,(async function(a,o="",l="",c){const u=()=>gw.from_source(rP(a,c,n));if(!o&&!l)return u();const p=await t({content:l||"",attributes:cP(o||""),markup:s,filename:r});return p?(p.dependencies&&i.push(...p.dependencies),p.map||p.code!==l?oP(p,e,o,function(e){if(!e)return;let t=Object.entries(e).map((([e,t])=>!0===t?e:`${e}="${t}"`)).join(" ");return t&&(t=" "+t),t}(p.attributes)??o,rP(l,c,n)):u()):u()}),n);return{string:o,map:l,dependencies:i}}async function hP(e,t){const n=await e({content:t.source,filename:t.filename});return n?{string:n.code,map:n.map?"string"==typeof n.map?JSON.parse(n.map):n.map:void 0,dependencies:n.dependencies}:{}}const mP=/(<style[^>]+>)([\S\s]*?)(<\/style>)/g,fP="/*$$__STYLE_CONTENT__$$*/";let yP=!1;class vP extends Error{constructor(e){super(e)}}function gP(e,t){let n=1,r=e,s=t[r];for(;0!==n&&s;)"("===s&&n++,")"===s&&n--,r++,s=t[r];return r}const bP={_(e,{state:t,next:n}){const r=e.leadingComments;if(r)for(const e of r)if("Line"===e.type){const n=Oe(e.value);n!==e.value&&t.str.overwrite(e.start+2,e.end,n)}n()},Identifier(e,{state:t,path:n}){EP(e,t,n)},ImportDeclaration(e,{state:t}){if(t.props_insertion_point=e.end??t.props_insertion_point,"svelte"===e.source.value){let n=[],r=0;for(let s of e.specifiers)if("ImportSpecifier"===s.type&&"Identifier"===s.imported.type&&["beforeUpdate","afterUpdate"].includes(s.imported.name)){if(!t.scope.references.get(s.local.name)){let e=-1!==t.str.original.indexOf(",",s.end)&&t.str.original.indexOf(",",s.end)<t.str.original.indexOf("}",s.end)?t.str.original.indexOf(",",s.end)+1:s.end;for(;""===t.str.original[e].trim();)e++;t.str.remove(s.start,e),r++;continue}n.push(s.imported.name)}if(r===e.specifiers.length&&t.str.remove(e.start,e.end),n.length>0)throw new vP(`Can't migrate code with ${n.join(" and ")}. Please migrate by hand.`)}},ExportNamedDeclaration(e,{state:t,next:n}){if(e.declaration)return void n();let r=0;for(const n of e.specifiers){if("Identifier"!==n.local.type)continue;const e=t.scope.get(n.local.name);"bindable_prop"===e?.kind&&(t.str.remove(n.start,n.end),r++)}r===e.specifiers.length&&t.str.remove(e.start,e.end)},VariableDeclaration(e,{state:t,path:n,visit:r,next:s}){if(t.scope!==t.analysis.instance.scope)return;let a=0;for(let i=0;i<e.declarations.length;i++){const o=e.declarations[i];if(t.analysis.runes){"$props"===$l(o.init,t.scope)&&(t.props_insertion_point=o.id.start+1,t.has_props_rune=!0);continue}let l;try{l=t.scope.get_bindings(o)}catch(d){s();continue}const c=l.some((e=>"state"===e.kind)),u=l.some((e=>"bindable_prop"===e.kind));if(c||u)if(u){if(a++,"Identifier"!==o.id.type)throw new vP("Encountered an export declaration pattern that is not supported for automigration.");const h=o.id.name,m=t.scope.get(h);if(t.analysis.uses_props&&(o.init||m.updated))throw new vP("$$props is used together with named props in a way that cannot be automatically migrated.");const f=t.props.find((e=>e.exported===(m.prop_alias||h)));f?(s(),f.init=o.init?t.str.snip(o.init.start,o.init.end).toString():"",f.bindable=m.updated,f.exported=m.prop_alias||h,f.type_only=!1):(s(),t.props.push({local:h,exported:m.prop_alias?m.prop_alias:h,init:o.init?t.str.snip(o.init.start,o.init.end).toString():"",optional:!!o.init,bindable:m.updated,...wP(o,t,n)}));let y=o.start,v=o.end;e.declarations.length>1?(t.props_insertion_point=e.end,0!==i&&(y=t.str.original.indexOf(",",e.declarations[i-1].end)),i!==e.declarations.length-1&&(v=0===i?e.declarations[i+1].start:t.str.original.lastIndexOf(",",e.declarations[i+1].start))):t.props_insertion_point=o.end,t.str.update(y,v,"")}else if(o.init){let{start:g,end:b}=o.init;if("SequenceExpression"===o.init.type){for(;"("!==t.str.original[g];)g-=1;for(;")"!==t.str.original[b-1];)b+=1}p("state"),t.str.prependLeft(g,"$state("),t.str.appendRight(b,")")}else{let x,_;const C=l.every((e=>e.references.every((t=>{const n=t.path.find((e=>"VariableDeclaration"===e.type)),r=t.path.find((e=>"AssignmentExpression"===e.type)),s=t.path.find((e=>"UpdateExpression"===e.type)),a=t.path.find((e=>"LabeledStatement"===e.type&&"$"===e.label.name));if(r&&a&&("ExpressionStatement"!==a.body.type||a.body.expression!==r||"Identifier"===r.left.type&&r.left.name===e.node.name)){if(x)return!1;x=r,_=a}return!s&&(n&&e.initial||a&&r||!a&&!r)})))),w="BlockStatement"===_?.body.type&&1===_.body.body.length&&"ExpressionStatement"===_.body.body[0].type,k="ExpressionStatement"===_?.body.type&&"AssignmentExpression"===_.body.expression.type;let P=!1;if(k){const S=_?.body,E=S.expression,[,A]=Pi(E.right);0===A.length&&(P=!0,t.derived_labeled_statements.add(_))}if(!P&&C&&x&&_&&(w||k)){const T=t.str.original.substring(t.str.original.lastIndexOf("\n",e.start)+1,e.start);if("BlockStatement"===_.body.type&&_.body.body[0].leadingComments)for(let $ of _.body.body[0].leadingComments)t.str.prependLeft(e.start,"Block"===$.type?`/*${$.value}*/\n${T}`:`// ${$.value}\n${T}`);if(p("derived"),t.str.appendRight(o.id.typeAnnotation?.end??o.id.end," = $derived("),r(x.right),t.str.appendRight(o.id.typeAnnotation?.end??o.id.end,t.str.snip(x.right.start,x.right.end).toString()),t.str.remove(_.start,_.end),t.str.appendRight(o.id.typeAnnotation?.end??o.id.end,")"),t.derived_labeled_statements.add(_),"BlockStatement"===_.body.type&&_.body.body[0].trailingComments)for(let R of _.body.body[0].trailingComments)t.str.appendRight(o.id.typeAnnotation?.end??o.id.end,"Block"===R.type?`\n${T}/*${R.value}*/`:`\n${T}// ${R.value}`)}else p("state"),t.str.prependLeft(o.id.typeAnnotation?.end??o.id.end," = $state("),P&&(t.str.appendRight(o.id.typeAnnotation?.end??o.id.end,t.str.snip(x.right.start,x.right.end).toString()),t.str.remove(_.start,_.end)),t.str.appendRight(o.id.typeAnnotation?.end??o.id.end,")")}else s();function p(n){if(!!t.scope.get(n))throw new vP(`can't migrate \`${t.str.original.substring(e.start,e.end)}\` to \`$${n}\` because there's a variable named ${n}.\n Rename the variable and try again or migrate by hand.`)}}if(a===e.declarations.length){let I=e.start,q=e.end;const L=n.at(-1);for("ExportNamedDeclaration"===L?.type&&(I=L.start,q=L.end);"\n"!==t.str.original[I];)I--;for(;"\n"!==t.str.original[q];)q++;t.str.update(I,q,"")}},BreakStatement(e,{state:t,path:n}){"LabeledStatement"===n[1].type&&"$"===e.label?.name&&t.str.update(e.start,e.end,"return;")},LabeledStatement(e,{path:t,state:n,next:r}){if(n.analysis.runes)return;if(t.length>1)return;if("$"!==e.label.name)return;if(n.derived_labeled_statements.has(e))return;function s(t){if(n.scope.get(t))throw new vP(`can't migrate \`$: ${n.str.original.substring(e.body.start,e.body.end)}\` to \`$${t}\` because there's a variable named ${t}.\n Rename the variable and try again or migrate by hand.`)}if(r(),"ExpressionStatement"===e.body.type&&"AssignmentExpression"===e.body.expression.type){const t=ki(e.body.expression.left),[,r]=Pi(e.body.expression.right),a=t.map((e=>n.scope.get(e.name))),i=a.filter((e=>e?.reassigned));if(0===i.length&&!a.some((e=>"store_sub"===e?.kind))&&"MemberExpression"!==e.body.expression.left.type){let{start:t,end:r}=e.body.expression.right;if(s("derived"),n.str.update(e.start,e.body.expression.start,"let "),"SequenceExpression"===e.body.expression.right.type){for(;"("!==n.str.original[t];)t-=1;for(;")"!==n.str.original[r-1];)r+=1}return n.str.prependRight(t,"$derived("),void("("!==n.str.original[e.body.start]&&n.str.appendLeft(r,")"))}for(const a of i)if(a&&(t.includes(a.node)||0===r.length)){s("state");const t="state"===a.kind?" = $state()":0===r.length?` = $state(${n.str.original.substring(e.body.expression.right.start,e.body.expression.right.end)})`:"";n.str.prependLeft(e.start,`let ${a.node.name}${t};\n${n.indent}`)}if(0===r.length&&!a.some((e=>"store_sub"===e?.kind)))return void n.str.remove(e.start,e.end)}n.legacy_imports.add("run");const a="BlockStatement"===e.body.type,i=e.body.start;if(a){n.str.update(e.start,i+1,`${n.names.run}(() => {`);const t=e.body.end;n.str.update(t-1,t,"});")}else n.str.update(e.start,i,`${n.names.run}(() => {\n${n.indent}`),n.str.indent(n.indent,{exclude:[[0,e.body.start],[e.body.end,n.end]]}),n.str.appendLeft(e.end,`\n${n.indent}});`)}};function xP(e,t,n){const r=e.str.snip(t,n).toString(),s=r.substring(1,r.length-1);s.trim().length!==s.length&&e.str.update(t+1,n-1,s.trim())}const _P={Identifier(e,{state:t,path:n}){EP(e,t,n)},RegularElement(e,{state:t,path:n,next:r}){CP(e,n,t),PP(e,t);const s=e.name.replace(/[a-zA-Z-]*:/g,"");if("/"===t.analysis.source[e.end-2]&&!yr(s)&&!Lr(s)){let n=e.end-2;for(;" "===t.str.original.charAt(n-1);)n--;t.str.remove(n,e.end-1),t.str.appendRight(e.end,`</${e.name}>`)}r()},SvelteSelf(e,{state:t,next:n}){const r=t.str.original.substring(e.start,e.end);if(!t.filename){const s=AP(r);return yP=!0,t.str.prependRight(e.start,`\x3c!-- @migration-task: svelte:self is deprecated, import this Svelte file into itself instead --\x3e\n${s}`),void n()}t.str.overwrite(e.start+1,e.start+1+11,`${t.analysis.name}`),e.fragment.nodes.length>0?t.str.overwrite(t.str.original.lastIndexOf("<",e.end)+2,e.end-1,`${t.analysis.name}`):r.endsWith("/>")||t.str.overwrite(e.start+r.lastIndexOf("</",e.end)+2,e.end-1,`${t.analysis.name}`),t.has_svelte_self=!0,n()},SvelteElement(e,{state:t,path:n,next:r}){if(CP(e,n,t),"Literal"===e.tag.type){let n=!0,r=e.tag.start,s=e.tag.end,a=t.str.original[r-1];for(;"="!==t.str.original[--r];)if("{"===t.str.original[r]){n=!1;break}n&&t.str.original[s]===a&&(t.str.prependLeft(r+1,"{"),t.str.appendRight(e.tag.end+1,"}"))}PP(e,t),r()},Component(e,{state:t,path:n,next:r}){r(),CP(e,n,t)},SvelteComponent(e,{state:t,next:n,path:r}){n(),CP(e,r,t);let s=t.str.snip(e.expression.start,e.expression.end).toString();if("Identifier"!==e.expression.type&&"MemberExpression"!==e.expression.type||!Lo.test(s)){let n=s;s=t.scope.generate("SvelteComponent");let a=!0;for(let i=r.length-1;i>=0;i--){const o=r[i];if("EachBlock"===o.type||"AwaitBlock"===o.type||"IfBlock"===o.type||"SnippetBlock"===o.type||"Component"===o.type||"SvelteComponent"===o.type){let o=e.start;if(i!==r.length-1)for(let e=1;e<r.length-i;e++){const t=r[i+e];if("start"in t){o=t.start;break}}const l=t.str.original.substring(t.str.original.lastIndexOf("\n",o)+1,o);t.str.appendRight(o,`{@const ${s} = ${n}}\n${l}`),a=!1;break}}a&&(t.derived_components.has(n)?s=t.derived_components.get(n):t.derived_components.set(n,s))}t.str.overwrite(e.start+1,e.start+e.name.length+1,s),t.str.original.substring(e.end-e.name.length-1,e.end-1)===e.name&&t.str.overwrite(e.end-e.name.length-1,e.end-1,s);let a=t.str.original.lastIndexOf("this",e.expression.start);for(;!t.str.original.charAt(a-1).trim();)a--;const i=t.str.original.indexOf("}",e.expression.end)+1;t.str.remove(a,i)},SvelteFragment(e,{state:t,path:n,next:r}){CP(e,n,t),r()},SvelteWindow(e,{state:t,next:n}){PP(e,t),n()},SvelteBody(e,{state:t,next:n}){PP(e,t),n()},SvelteDocument(e,{state:t,next:n}){PP(e,t),n()},SlotElement(e,{state:t,path:n,next:r,visit:s}){if(CP(e,n,t),t.analysis.custom_element)return;let a,i="children",o="default",l="{ ";for(const r of e.attributes)if("SpreadAttribute"===r.type)l+=`...${t.str.original.substring(r.expression.start,r.expression.end)}, `;else if("Attribute"===r.type){if("slot"===r.name)continue;if("name"===r.name)o=r.value[0].data,(n.some((e=>("RegularElement"===e.type||"SvelteElement"===e.type||"Component"===e.type||"SvelteComponent"===e.type||"SvelteFragment"===e.type)&&e.attributes.some((e=>"Attribute"===e.type&&"slot"===e.name&&gi(e)&&e.value[0].data===o))))||e.attributes.some((e=>"Attribute"===e.type&&"slot"===e.name&&gi(e)&&e.value[0].data===o)))&&(a=`${o}_render`,t.derived_conflicting_slots.set(a,o));else{const e=!0===r.value||Array.isArray(r.value)?r.value:[r.value];let n="true";if(!0!==e){const r=e[0],a=e[e.length-1];for(const t of e)s(t);n=t.str.snip("Text"===r.type?r.start-1:r.expression.start,"Text"===a.type?a.end+1:a.expression.end).toString()}l+=n===r.name?`${n}, `:`${r.name}: ${n}, `}}l+="}","{ }"===l&&(l="");const c=t.props.find((e=>e.slot_name===o));if(c)i=c.local;else if("default"!==o&&(i=t.scope.generate(o),i!==o))throw new vP("This migration would change the name of a slot making the component unusable");c?c.needs_refine_type&&(c.type="import('svelte')."+(l?"Snippet<[any]>":"Snippet"),c.needs_refine_type=!1):t.props.push({local:i,exported:i,init:"",bindable:!1,optional:!0,slot_name:o,type:"import('svelte')."+(l?"Snippet<[any]>":"Snippet")}),"default"===o&&n.some((e=>("SvelteComponent"===e.type||"Component"===e.type||"RegularElement"===e.type||"SvelteElement"===e.type||"SvelteFragment"===e.type)&&e.attributes.some((e=>"LetDirective"===e.type))))&&(a=`${i}_render`,t.derived_conflicting_slots.set(a,i)),i=a??i,e.fragment.nodes.length>0?(r(),t.str.update(e.start,e.fragment.nodes[0].start,`{#if ${i}}{@render ${t.analysis.uses_props?`${t.names.props}.`:""}${i}(${l})}{:else}`),t.str.update(e.fragment.nodes[e.fragment.nodes.length-1].end,e.end,"{/if}")):t.str.update(e.start,e.end,`{@render ${t.analysis.uses_props?`${t.names.props}.`:""}${i}?.(${l})}`)},Comment(e,{state:t}){const n=Oe(e.data);n!==e.data&&t.str.overwrite(e.start+4,e.end-3,n)},HtmlTag(e,{state:t,next:n}){xP(t,e.start,e.end),n()},ConstTag(e,{state:t,next:n}){xP(t,e.start,e.end),n()},IfBlock(e,{state:t,next:n}){const r=e.start,s=t.str.original.indexOf("}",e.test.end)+1;xP(t,r,s),n()},AwaitBlock(e,{state:t,next:n}){const r=e.start,s=t.str.original.indexOf("}",null!==e.pending?e.expression.end:e.value?.end)+1;if(xP(t,r,s),null!==e.pending){const n=t.str.original.lastIndexOf("{",e.value?.start),r=t.str.original.indexOf("}",e.value?.end)+1;xP(t,n,r)}if(null!==e.catch){const n=t.str.original.lastIndexOf("{",e.error?.start),r=t.str.original.indexOf("}",e.error?.end)+1;xP(t,n,r)}n()},KeyBlock(e,{state:t,next:n}){const r=e.start,s=t.str.original.indexOf("}",e.expression.end)+1;xP(t,r,s),n()}};function CP(e,t,n){const r=t.at(-2);if("Component"!==r?.type&&"SvelteComponent"!==r?.type&&"Component"!==e.type&&"SvelteComponent"!==e.type)return;let s="children",a=[],i=[];for(let t of e.attributes){if("Attribute"===t.type&&"slot"===t.name&&gi(t)){if(s=t.value[0].data,"default"===s&&(s="children"),!m.test(s)||gr(s))return yP=!0,void n.str.appendLeft(e.start,`\x3c!-- @migration-task: migrate this slot by hand, \`${s}\` is an invalid identifier --\x3e\n${n.indent}`);if("Component"===r?.type||"SvelteComponent"===r?.type)for(let t of r.attributes)if(("Attribute"===t.type||"BindDirective"===t.type)&&t.name===s)return void n.str.appendLeft(e.start,`\x3c!-- @migration-task: migrate this slot by hand, \`${s}\` would shadow a prop on the parent component --\x3e\n${n.indent}`);for(let e of i)e();n.str.remove(t.start,t.end)}"LetDirective"===t.type&&(a.push(t.name+(t.expression?`: ${n.str.original.substring(t.expression.start,t.expression.end)}`:"")),i.push((()=>n.str.remove(t.start,t.end))))}if(i.length>0)for(let e of i)e();"SvelteFragment"===e.type&&e.fragment.nodes.length>0&&(n.str.remove(e.start,e.fragment.nodes[0].start),n.str.remove(e.fragment.nodes[e.fragment.nodes.length-1].end,e.end));const o=a.length>0?`{ ${a.join(", ")} }`:"";if("children"===s&&"SvelteFragment"!==e.type){if(0===a.length)return;let r=0,i=0;for(let t=0;t<e.fragment.nodes.length;t++){const s=e.fragment.nodes[t],a="Text"===s.type&&!s.data.trim();"RegularElement"!==s.type&&"SvelteElement"!==s.type&&"Component"!==s.type&&"SvelteComponent"!==s.type&&"SlotElement"!==s.type&&"SvelteFragment"!==s.type||!s.attributes.some((e=>"Attribute"===e.type&&"slot"===e.name))?r||a?i&&!a&&(n.str.update(i-1,i,""),n.str.prependLeft(i-1,n.str.original[i-1]),n.str.move(s.start,s.end,i-1)):r=s.start:r&&!i&&(i=s.start)}i||(i=e.fragment.nodes[e.fragment.nodes.length-1].end),n.str.appendLeft(r,`{#snippet ${s}(${o})}\n${n.indent.repeat(t.length)}`),n.str.indent(n.indent,{exclude:[[0,r],[i,n.str.original.length]]}),i<e.fragment.nodes[e.fragment.nodes.length-1].end?n.str.prependLeft(i,`{/snippet}\n${n.indent.repeat(t.length)}`):n.str.prependLeft(i,`${n.indent.repeat(t.length)}{/snippet}\n${n.indent.repeat(t.length-1)}`)}else{n.str.prependLeft(e.start,`{#snippet ${s}(${o})}\n${n.indent.repeat(t.length-2)}`),n.str.indent(n.indent,{exclude:[[0,e.start],[e.end,n.str.original.length]]});const r=`\n${n.indent.repeat(t.length-2)}{/snippet}`;"SlotElement"===e.type?n.str.appendRight(e.end,r):n.str.appendLeft(e.end,r)}}function wP(e,t,n){const r=t.str,s=n.at(-1);let a=s?.leadingComments?.at(-1);const i=a?.start,o=a?.end;let l=a&&r.original.substring(i,o);a&&r.update(i,o,"");const c=s?.trailingComments?.at(0),u=c?.start,p=c?.end;let d=c&&r.original.substring(u,p);if(c&&r.update(u,p,""),e.id.typeAnnotation){t.has_type_or_fallback=!0;let n=e.id.typeAnnotation.start+1;for(;" "===r.original[n];)n++;return{type:r.original.substring(n,e.id.typeAnnotation.end),comment:l,trailing_comment:d}}let h=l?.split("\n").map((e=>e.trim().replace(/^\/\/\s*/g,"").replace(/^\/\*\*?\s*/g,"").replace(/\s*\*\/$/g,"").replace(/^\*\s*/g,""))).filter(Boolean);const m=h?.findIndex((e=>e.startsWith("@")));let f=h?.slice(0,-1!==m?m:h.length).join("\n"),y=d?.split("\n").map((e=>e.trim().replace(/^\/\/\s*/g,"").replace(/^\/\*\*?\s*/g,"").replace(/\s*\*\/$/g,"").replace(/^\*\s*/g,""))).filter(Boolean);const v=y?.findIndex((e=>e.startsWith("@")));let g=y?.slice(0,-1!==v?v:y.length).join("\n");if("ExportNamedDeclaration"===s?.type&&a){t.has_type_or_fallback=!0;const e=/@type {(.+)}/.exec(a.value);if(e)return{type:e[1],comment:f,trailing_comment:g}}if("Literal"===e.init?.type){t.has_type_or_fallback=!0;const n=typeof e.init.value;if("string"===n||"number"===n||"boolean"===n)return{type:n,comment:t.uses_ts?l:f,trailing_comment:t.uses_ts?d:g}}return{type:"any",comment:t.uses_ts?l:f,trailing_comment:t.uses_ts?d:g}}const kP=["preventDefault","stopPropagation","stopImmediatePropagation","self","trusted","once"];function PP(e,t){const n=new Map;for(const t of e.attributes){if("OnDirective"!==t.type)continue;let e=`on${t.name}`;t.modifiers.includes("capture")&&(e+="capture");const r=n.get(e)||[];r.push(t),n.set(e,r)}for(const[e,r]of n){const n=[];let s=null;for(const e of r){let r;e.expression?r=t.str.original.substring(e.expression.start,e.expression.end):(r=`${t.names.bubble}('${e.name}')`,t.legacy_imports.add("createBubbler"),t.script_insertions.add(`const ${t.names.bubble} = ${t.names.createBubbler}();`));const a=e.modifiers.includes("passive"),i=e.modifiers.includes("nonpassive"),o=kP.filter((t=>e.modifiers.includes(t)));for(const e of o)t.legacy_imports.add(e),r=`${t.names[e]}(${r})`;if(a||i){const n=a?"passive":"nonpassive";t.legacy_imports.add(n),t.str.overwrite(e.start,e.end,`use:${t.names[n]}={['${e.name}', () => ${r}]}`)}else{if(s){let n=e.start,r=e.end;for(;/[\s\n]/.test(t.str.original[n-1]);)n-=1;t.str.remove(n,r)}else s=e;n.push(r)}}if(s){let r;if(n.length>1)t.legacy_imports.add("handlers"),r=`${e}={${t.names.handlers}(${n.join(", ")})}`;else{const t=n[0];r=t===e?`{${t}}`:`${e}={${t}}`}t.str.overwrite(s.start,s.end,r)}}}function SP(e,t){const n=t.leadingComments?.[0],r=t.trailingComments?.[t.trailingComments.length-1];let s=n?.start??t.start,a=r?.end??t.end,i=s;for(;"\n"!==e[i-1]&&"\r"!==e[i-1];)if(i--," "!==e[i]&&"\t"!==e[i]){i=s;break}return s=i,{start:s,end:a}}function EP(e,t,n){const r=n.at(-1);if("MemberExpression"!==r?.type||r.property!==e)if(t.analysis.uses_props&&"$$slots"!==e.name)if("$$props"===e.name||"$$restProps"===e.name)t.str.update(e.start,e.end,t.names.props);else{const n=t.scope.get(e.name);"bindable_prop"===n?.kind&&n.node!==e&&t.str.prependLeft(e.start,`${t.names.props}.`)}else if("$$restProps"===e.name&&t.analysis.uses_rest_props)t.str.update(e.start,e.end,t.names.rest);else if("$$slots"===e.name&&t.analysis.uses_slots){if("MemberExpression"===r?.type){if(t.analysis.custom_element)return;let n="Literal"===r.property.type?r.property.value:r.property.name,s=n;const a=t.props.find((e=>e.slot_name===n));if(a)n=a.local;else if("default"!==n){if(t.scope.generate(n)!==n)throw new vP("This migration would change the name of a slot making the component unusable")}n="default"===n?"children":n,a||t.props.push({local:n,exported:n,init:"",bindable:!1,optional:!0,slot_name:s,type:"import('svelte').Snippet<[any]>",needs_refine_type:!0}),t.str.update(e.start,r.property.start,t.analysis.uses_props?`${t.names.props}.`:""),t.str.update(r.property.start,r.end,n)}}else if("TSInterfaceDeclaration"===r?.type||"TSTypeAliasDeclaration"===r?.type){const n="TSInterfaceDeclaration"===r.type?r.body.body:r.typeAnnotation?.members;if(Array.isArray(n)&&"$$Props"===e.name){t.has_type_or_fallback=!0;for(const e of n){const n=t.props.find((t=>t.exported===e.key.name)),r=t.str.original.substring(e.typeAnnotation.typeAnnotation.start,e.typeAnnotation.typeAnnotation.end);let s;const a=e.leadingComments?.at(-1);"Block"===a?.type&&(s=t.str.original.substring(a.start,a.end));const i=e.trailingComments?.at(0)?.value;n?(n.type=r,n.optional=e.optional,n.comment=s??n.comment,n.trailing_comment=i??n.trailing_comment):t.props.push({local:e.key.name,exported:e.key.name,init:"",bindable:!1,optional:e.optional,type:r,comment:s,trailing_comment:i,type_only:!0})}t.str.remove(r.start,r.end)}}}function AP(e){const t=e.split("\n"),n=t.filter((e=>/^\t+/.test(e))),r=t.filter((e=>/^ {2,}/.test(e)));if(0===n.length&&0===r.length)return"\t";if(n.length>=r.length)return"\t";const s=r.reduce(((e,t)=>{const n=/^ +/.exec(t)?.[0].length??0;return Math.min(n,e)}),1/0);return" ".repeat(s)}function TP(e,n,r){if(r){const e=e=>{delete e.metadata,delete e.parent};return n.options?.attributes.forEach((t=>{e(t),e(t.value),Array.isArray(t.value)&&t.value.forEach(e)})),t(n,null,{_(t,{next:n}){e(t),n()}})}return function(e,n){return t(n,null,{_(e,{next:t}){delete e.parent,delete e.metadata,t()},Root(t,{visit:r}){const{instance:s,module:a,options:i}=t;if(i?.__raw__){let e=t.fragment.nodes.findIndex((e=>i.end<=e.start));-1===e&&(e=t.fragment.nodes.length),delete i.__raw__.parent,t.fragment.nodes.splice(e,0,i.__raw__)}let o=null,l=null;if(t.fragment.nodes.length>0){const n=t.fragment.nodes.at(0),r=t.fragment.nodes.at(-1);for(o=n.start,l=r.end;/\s/.test(e[o]);)o+=1;for(;/\s/.test(e[l-1]);)l-=1}return s&&(delete s.parent,delete s.attributes),a&&(delete a.parent,delete a.attributes),{html:{type:"Fragment",start:o,end:l,children:t.fragment.nodes.map((e=>r(e)))},instance:s,module:a,css:n.css?r(n.css):void 0}},AnimateDirective:e=>({...e,type:"Animation"}),AwaitBlock(t,{visit:n}){let r={type:"PendingBlock",start:null,end:null,children:t.pending?.nodes.map((e=>n(e)))??[],skip:!0},s={type:"ThenBlock",start:null,end:null,children:t.then?.nodes.map((e=>n(e)))??[],skip:!0},a={type:"CatchBlock",start:null,end:null,children:t.catch?.nodes.map((e=>n(e)))??[],skip:!0};if(t.pending){const n=t.pending.nodes.at(0),s=t.pending.nodes.at(-1);r.start=n?.start??e.indexOf("}",t.expression.end)+1,r.end=s?.end??r.start,r.skip=!1}if(t.then){const n=t.then.nodes.at(0),a=t.then.nodes.at(-1);s.start=r.end??n?.start??e.indexOf("}",t.expression.end)+1,s.end=a?.end??e.lastIndexOf("}",r.end??t.expression.end)+1,s.skip=!1}if(t.catch){const n=t.catch.nodes.at(0),i=t.catch.nodes.at(-1);a.start=s.end??r.end??n?.start??e.indexOf("}",t.expression.end)+1,a.end=i?.end??e.lastIndexOf("}",s.end??r.end??t.expression.end)+1,a.skip=!1}return{type:"AwaitBlock",start:t.start,end:t.end,expression:t.expression,value:t.value,error:t.error,pending:r,then:s,catch:a}},BindDirective:e=>({...e,type:"Binding"}),ClassDirective:e=>({...e,type:"Class"}),Comment:e=>({...e,ignores:Me(e.start,e.data,!1)}),ComplexSelector(e,{next:t}){t();const n=[];for(const t of e.children)t.combinator&&n.push(t.combinator),n.push(...t.selectors);return{type:"Selector",start:e.start,end:e.end,children:n}},Component:(e,{visit:t})=>({type:"InlineComponent",start:e.start,end:e.end,name:e.name,attributes:e.attributes.map((e=>t(e))),children:e.fragment.nodes.map((e=>t(e)))}),ConstTag(e){if(void 0!==e.expression)return e;const t=e,{id:n}={...t.declaration.declarations[0]};return delete n.typeAnnotation,{type:"ConstTag",start:t.start,end:e.end,expression:{type:"AssignmentExpression",start:(t.declaration.start??0)+6,end:t.declaration.end??0,operator:"=",left:n,right:t.declaration.declarations[0].init}}},KeyBlock:(e,{visit:t})=>(Ne(e.fragment.nodes),{type:"KeyBlock",start:e.start,end:e.end,expression:e.expression,children:e.fragment.nodes.map((e=>t(e)))}),EachBlock(t,{visit:n}){let r;if(t.fallback){const s=t.fallback.nodes.at(0),a=e.lastIndexOf("{",t.end-1),i=s?.start??a;Ne(t.fallback.nodes),r={type:"ElseBlock",start:i,end:a,children:t.fallback.nodes.map((e=>n(e)))}}return Ne(t.body.nodes),{type:"EachBlock",start:t.start,end:t.end,children:t.body.nodes.map((e=>n(e))),context:t.context,expression:t.expression,index:t.index,key:t.key,else:r}},ExpressionTag(t,{path:n}){const r=n.at(-1);return"Attribute"===r?.type&&"{"===e[r.start]?{type:"AttributeShorthand",start:t.start,end:t.end,expression:t.expression}:{type:"MustacheTag",start:t.start,end:t.end,expression:t.expression}},HtmlTag:e=>({...e,type:"RawMustacheTag"}),IfBlock(t,{visit:n}){let r;if(t.alternate){let s=t.alternate.nodes;1===s.length&&"IfBlock"===s[0].type&&s[0].elseif&&(s=s[0].consequent.nodes);const a=e.lastIndexOf("{",t.end-1),i=s.at(0)?.start??a;Ne(t.alternate.nodes),r={type:"ElseBlock",start:i,end:a,children:t.alternate.nodes.map((e=>n(e)))}}const s=t.elseif?t.consequent.nodes[0]?.start??e.lastIndexOf("{",t.end-1):t.start;return Ne(t.consequent.nodes),{type:"IfBlock",start:s,end:t.end,expression:t.test,children:t.consequent.nodes.map((e=>n(e))),else:r,elseif:!!t.elseif||void 0}},OnDirective:e=>({...e,type:"EventHandler"}),SnippetBlock:(e,{visit:t})=>(Ne(e.body.nodes),{type:"SnippetBlock",start:e.start,end:e.end,expression:e.expression,parameters:e.parameters,children:e.body.nodes.map((e=>t(e)))}),RegularElement:(e,{visit:t})=>({type:"Element",start:e.start,end:e.end,name:e.name,attributes:e.attributes.map((e=>t(e))),children:e.fragment.nodes.map((e=>t(e)))}),SlotElement:(e,{visit:t})=>({type:"Slot",start:e.start,end:e.end,name:e.name,attributes:e.attributes.map((e=>t(e))),children:e.fragment.nodes.map((e=>t(e)))}),Attribute(e,{visit:t,next:n,path:r}){if(!0===e.value||Array.isArray(e.value))return n();{r.push(e);const n=[t(e.value)];return r.pop(),{...e,value:n}}},StyleDirective(e,{visit:t,next:n,path:r}){if(!0===e.value||Array.isArray(e.value))return n();{r.push(e);const n=[t(e.value)];return r.pop(),{...e,value:n}}},SpreadAttribute:e=>({...e,type:"Spread"}),StyleSheet:(e,t)=>({...e,...t.next(),type:"Style"}),SvelteBody:(e,{visit:t})=>({type:"Body",name:"svelte:body",start:e.start,end:e.end,attributes:e.attributes.map((e=>t(e))),children:e.fragment.nodes.map((e=>t(e)))}),SvelteComponent:(e,{visit:t})=>({type:"InlineComponent",name:"svelte:component",start:e.start,end:e.end,expression:e.expression,attributes:e.attributes.map((e=>t(e))),children:e.fragment.nodes.map((e=>t(e)))}),SvelteDocument:(e,{visit:t})=>({type:"Document",name:"svelte:document",start:e.start,end:e.end,attributes:e.attributes.map((e=>t(e))),children:e.fragment.nodes.map((e=>t(e)))}),SvelteElement(t,{visit:n}){let r=t.tag;return"Literal"===r.type&&"string"==typeof r.value&&"{"!==e[t.tag.start-1]&&(r=r.value),{type:"Element",name:"svelte:element",start:t.start,end:t.end,tag:r,attributes:t.attributes.map((e=>n(e))),children:t.fragment.nodes.map((e=>n(e)))}},SvelteFragment:(e,{visit:t})=>({type:"SlotTemplate",name:"svelte:fragment",start:e.start,end:e.end,attributes:e.attributes.map((e=>t(e))),children:e.fragment.nodes.map((e=>t(e)))}),SvelteHead:(e,{visit:t})=>({type:"Head",name:"svelte:head",start:e.start,end:e.end,attributes:e.attributes.map((e=>t(e))),children:e.fragment.nodes.map((e=>t(e)))}),SvelteOptions:(e,{visit:t})=>({type:"Options",name:"svelte:options",start:e.start,end:e.end,attributes:e.attributes.map((e=>t(e)))}),SvelteSelf:(e,{visit:t})=>({type:"InlineComponent",name:"svelte:self",start:e.start,end:e.end,attributes:e.attributes.map((e=>t(e))),children:e.fragment.nodes.map((e=>t(e)))}),SvelteWindow:(e,{visit:t})=>({type:"Window",name:"svelte:window",start:e.start,end:e.end,attributes:e.attributes.map((e=>t(e))),children:e.fragment.nodes.map((e=>t(e)))}),Text(e,{path:t}){const n=t.at(-1);if("RegularElement"===n?.type&&"style"===n.name)return{type:"Text",start:e.start,end:e.end,data:e.data}},TitleElement:(e,{visit:t})=>({type:"Title",name:"title",start:e.start,end:e.end,attributes:e.attributes.map((e=>t(e))),children:e.fragment.nodes.map((e=>t(e)))}),TransitionDirective:e=>({...e,type:"Transition"}),UseDirective:e=>({...e,type:"Action"}),LetDirective:e=>({...e,type:"Let"})})}(e,n)}function $P(e){return 65279===e.charCodeAt(0)?e.slice(1):e}e.VERSION=oC,e.compile=function(e,t){e=$P(e),U(t.warningFilter);const n=Uk(t,"");W(e,n);let r=dl(e);const{customElement:s,...a}=r.options||{},i={...n,...a,customElementOptions:s};r.metadata.ts&&(r={...r,fragment:r.fragment&&fl(r.fragment),instance:r.instance&&fl(r.instance),module:r.module&&fl(r.module)});const o=Bk(S_(r,e,i),e,i);return o.ast=TP(e,r,t.modernAst),o},e.compileModule=function(e,n){e=$P(e),U(n.warningFilter);const r=Hk(n,"");W(e,r);const s=function(e,n){const{scope:r,scopes:s}=Al(e,new El,!1,null);for(const[e,t]of r.references)"$"!==e[0]||P_.includes(e)||("$"!==e&&"$"!==e[1]||zr(t[0].node,e),null===r.get(e.slice(1))||Nr(e)||jr(t[0].node,"store_invalid_subscription_module","Cannot reference store value outside a `.svelte` file"));return t(e,{scope:r,scopes:s,analysis:{runes:!0}},w_),{module:{ast:e,scope:r,scopes:s},name:n.filename,accessors:!1,runes:!0,immutable:!0}}(cr(e,!1),r);return Fk(s,e,r)},e.migrate=function(e,{filename:n,use_ts:r}={}){let s=e;try{yP=!1;const a=[];e=e.replace(mP,((e,t,n,r,s)=>(a.push([s+t.length,n]),t+fP+r))),U((()=>!1)),W(e,{filename:n??"(unknown)"});let i=dl(e);const{customElement:o,...l}=i.options||{},c={...Uk({},""),...l,customElementOptions:o,filename:n??"(unknown)"},u=new xC(e),p=S_(i,e,c),d=AP(e);u.replaceAll(/(<svelte:options\s.*?\s?)accessors\s?/g,((e,t)=>t));for(const x of a)u.overwrite(x[0],x[0]+25,x[1]);let h={scope:p.instance.scope,analysis:p,filename:n,str:u,indent:d,props:[],props_insertion_point:i.instance?.content.start??0,has_props_rune:!1,has_type_or_fallback:!1,end:e.length,names:{props:p.root.unique("props").name,rest:p.root.unique("rest").name,run:p.root.unique("run").name,handlers:p.root.unique("handlers").name,stopImmediatePropagation:p.root.unique("stopImmediatePropagation").name,preventDefault:p.root.unique("preventDefault").name,stopPropagation:p.root.unique("stopPropagation").name,once:p.root.unique("once").name,self:p.root.unique("self").name,trusted:p.root.unique("trusted").name,createBubbler:p.root.unique("createBubbler").name,bubble:p.root.unique("bubble").name,passive:p.root.unique("passive").name,nonpassive:p.root.unique("nonpassive").name},legacy_imports:new Set,script_insertions:new Set,derived_components:new Map,derived_conflicting_slots:new Map,derived_labeled_statements:new Set,has_svelte_self:!1,uses_ts:r&&!e.includes("@type {")||!!i.instance?.attributes.some((e=>"lang"===e.name&&"ts"===e.value[0].data))};if(i.module){const _=i.module.attributes.find((e=>"context"===e.name));_&&h.str.update(_.start,_.end,"module")}i.instance&&t(i.instance.content,h,bP),h={...h,scope:p.template.scope},t(i.fragment,h,_P);let m=i.instance?i.instance.content.start:0;const f=h.legacy_imports.size>0||h.derived_components.size>0||h.derived_conflicting_slots.size>0||h.script_insertions.size>0||h.props.length>0||p.uses_rest_props||p.uses_props||h.has_svelte_self,y=h.uses_ts&&(!i.instance||!i.instance.attributes.some((e=>"lang"===e.name)));if(!i.instance&&f&&u.appendRight(0,y?'<script lang="ts">':"<script>"),h.has_svelte_self&&n){const C=n.split("/").pop();u.appendRight(m,`\n${d}import ${h.analysis.name} from './${C}';`)}const v=`import { ${[...h.legacy_imports].map((e=>{const t=h.names[e];return e===t?e:`${e} as ${t}`})).join(", ")} } from 'svelte/legacy';\n`;function g(e){if(!!h.scope.get(e))throw new vP(`migrating this component would require adding a \`$${e}\` rune but there's already a variable named ${e}.\n Rename the variable and try again or migrate by hand.`)}if(h.legacy_imports.size>0&&u.appendRight(m,`\n${d}${v}`),h.script_insertions.size>0&&u.appendRight(m,`\n${d}${[...h.script_insertions].join(`\n${d}`)}`),m=h.props_insertion_point,h.props.length>0||p.uses_rest_props||p.uses_props){const w=h.props.length>3,k=`\n${d}${d}`,P=w?k:" ";let S="";if(p.uses_props?S=`...${h.names.props}`:(S=h.props.filter((e=>!e.type_only)).map((e=>{let t=e.local===e.exported?e.local:`${e.exported}: ${e.local}`;return e.bindable?(g("bindable"),t+=` = $bindable(${e.init})`):e.init&&(t+=` = ${e.init}`),t})).join(`,${P}`),p.uses_rest_props&&(S+=`${h.props.length>0?`,${P}`:""}...${h.names.rest}`)),h.has_props_rune)u.appendRight(m,` ${S},`);else{const E=h.scope.root.unique("Props").name;let A="";(h.has_type_or_fallback||h.props.every((e=>e.slot_name)))&&(h.uses_ts?(A=`interface ${E} {${k}${h.props.map((e=>`${e.comment?`${e.comment}${k}`:""}${e.exported}${e.optional?"?":""}: ${e.type};${e.trailing_comment?" "+e.trailing_comment:""}`)).join(k)}`,(p.uses_props||p.uses_rest_props)&&(A+=`${h.props.length>0?k:""}[key: string]: any`),A+=`\n${d}}`):A=`/**\n${d} * @typedef {Object} ${E}${h.props.map((e=>`\n${d} * @property {${e.type}} ${e.optional?`[${e.exported}]`:e.exported}${e.comment?` - ${e.comment}`:""}${e.trailing_comment?` - ${e.trailing_comment.trim()}`:""}`)).join("")}\n${d} */`);let T=`let {${P}${S}${w?`\n${d}`:" "}}`;h.uses_ts?(A&&(T=`${A}\n\n${d}${T}`),g("props"),T=`${T}${A?`: ${E}`:""} = $props();`):(A&&(T=`${h.props.length>0?`${A}\n\n${d}`:""}/** @type {${h.props.length>0?E:""}${p.uses_props||p.uses_rest_props?(h.props.length>0?" & ":"")+"{ [key: string]: any }":""}} */\n${d}${T}`),g("props"),T=`${T} = $props();`),T=`\n${d}${T}`,u.appendRight(m,T)}i.instance&&y&&u.appendRight(i.instance.start+7,' lang="ts"')}let b=!1;for(const[$,{dependencies:R}]of h.analysis.reactive_statements){let I=[];if("ExpressionStatement"===$.body.type&&"AssignmentExpression"===$.body.expression.type&&(I=ki($.body.expression.left).map((e=>h.scope.get(e.name))).filter((e=>!!e))),R.some((e=>!I.includes(e)&&("prop"===e.kind||"bindable_prop"===e.kind?h.props_insertion_point:e.node.start)>$.start))){b=!0;break}}if(b){const q=Array.from(h.analysis.reactive_statements.keys());for(const L of q){const{start:M,end:O}=SP(e,L);u.appendLeft(O,"\n"),u.move(M,O,i.instance?.content.end),u.update(M-("\r"===e[M-2]?2:1),M,"")}}return m=i.instance?i.instance.content.end:m,h.derived_components.size>0&&(g("derived"),u.appendRight(m,`\n${d}${[...h.derived_components.entries()].map((([e,t])=>`const ${t} = $derived(${e});`)).join(`\n${d}`)}\n`)),h.derived_conflicting_slots.size>0&&(g("derived"),u.appendRight(m,`\n${d}${[...h.derived_conflicting_slots.entries()].map((([e,t])=>`const ${e} = $derived(${t});`)).join(`\n${d}`)}\n`)),h.props.length>0&&h.analysis.accessors&&u.appendRight(m,`\n${d}export {${h.props.reduce(((e,t)=>t.slot_name||t.type_only?e:`${e}\n${d}\t${t.local},`),"")}\n${d}}\n`),!i.instance&&f&&u.appendRight(m,"\n<\/script>\n\n"),function(e){if(!e.analysis.css.ast?.start)return;const t=e.str.snip(e.analysis.css.ast.start,e.analysis.css.ast?.end).toString();let n=t,r=0;const s=new xC(n);for(;n;){if(n.startsWith(":has")||n.startsWith(":is")||n.startsWith(":where")||n.startsWith(":not")){let e=n.indexOf("(")+1,a=!1;const i=":global",o=n.indexOf(i);if(n.substring(e,o).trim()){const s=t.lastIndexOf(i,r);if(s>-1){const a=gP(t.indexOf("(",s)+1,t)-r;if(a>e){r+=a,n=n.substring(a);continue}}}else a=!0,e+=i.length;const l=gP(e,n);if(e&&l){a||n.startsWith(":not")||(s.prependLeft(r+e,":global("),s.appendRight(r+l-1,")")),r+=l-1,n=n.substring(l-1);continue}}r++,n=n.substring(1)}e.str.update(e.analysis.css.ast?.start,e.analysis.css.ast?.end,s.toString())}(h),{code:u.toString()}}catch(N){return N instanceof vP||console.error("Error while migrating Svelte code",N),yP=!0,{code:`\x3c!-- @migration-task Error while migrating Svelte code: ${N.message} --\x3e\n${s}`}}finally{yP&&console.log(`One or more \`@migration-task\` comments were added to ${n?`\`${n}\``:"a file (unfortunately we don't know the name)"}, please check them and complete the migration manually.`)}},e.parse=function(e,{filename:t,rootDir:n,modern:r}={}){return e=$P(e),U((()=>!1)),W(e,{filename:t??"(unknown)",rootDir:n}),TP(e,dl(e),r)},e.preprocess=async function(e,t,n){const r=n&&n.filename||t.filename,s=t?Array.isArray(t)?t:[t]:[],a=new aP(e,r);for(const e of s)e.markup&&a.update_source(await hP(e.markup,a)),e.script&&a.update_source(await dP("script",e.script,a)),e.style&&a.update_source(await dP("style",e.style,a));return a.to_processed()},e.walk=function(){throw new Error("'svelte/compiler' no longer exports a `walk` utility — please import it directly from 'estree-walker' instead")}}));