2025-03-24 19:15:22 +01:00

2 lines
757 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 p={},u={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&&(p[n]=s.map(((e,n)=>t[n]??e)))}else{const t=e(s,o,r);t&&(p[n]=t)}}if(o.pop(),Object.keys(p).length>0)return n(t,p)},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,{...u,next:(n=l)=>(l=n,e=d(t,{...u,state:n}),e)}),!c&&e&&(c=e)}else c=d(t,u);return c||Object.keys(p).length>0&&(c=n(t,p)),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]+$/,p=/[^ \t\r\n]/,u=/[ \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,_=2,x=4,w=8,C=16,k=1,S=2,P="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,p,u=0;for(i in s)if(o=s[i],u+=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],p=this.match_dict[i][l][1],c in r?r[c]+=o*p:r[c]=o*p;const d=Math.sqrt(u);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]}}}const O=/\r/g;function N(e){let t=5381,n=(e=e.replace(O,"")).length;for(;n--;)t=(t<<5)-t^e.charCodeAt(n);return(t>>>0).toString(36)}const D=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"];function j(e){return D.includes(e)||"!doctype"===e.toLowerCase()}const B=["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 F(e){return B.includes(e)}function V(e){return e.endsWith("capture")&&"gotpointercapture"!==e&&"lostpointercapture"!==e}const H=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function U(e){return H.includes(e)}const z=["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 W(e){return z.includes(e)}const G={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly",defaultvalue:"defaultValue",defaultchecked:"defaultChecked",srcobject:"srcObject"};const K=[...z,"formNoValidate","isMap","noModule","playsInline","readOnly","value","inert","volume","defaultValue","defaultChecked","srcObject"];const X=["autofocus","muted","defaultValue","defaultChecked"];function J(e){return X.includes(e)}const Q=["touchstart","touchmove"];const Y=["textContent","innerHTML","innerText"];function Z(e){return Y.includes(e)}const ee=["body","embed","iframe","img","link","object","script","style","track"];function te(e){return ee.includes(e)}const ne=["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 re(e){return ne.includes(e)}const se=["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 ae=["$state","$state.raw","$state.snapshot","$props","$bindable","$derived","$derived.by","$effect","$effect.pre","$effect.tracking","$effect.root","$inspect","$inspect().with","$inspect.trace","$host"];function ie(e){return ae.includes(e)}let oe,le,ce,pe,ue=[],de=M("",{offsetLine:1});function he(e){const t=de(e.start);return`${n=oe,n?.replace(/\//g,"/")}:${t?.line}:${t.column}`;var n}let me=[],fe=new Map;function ye(e=(()=>!0)){pe=e}function ve(e,t){return ce&&!!fe.get(e)?.some((e=>e.has(t)))}function ge(e,t){le=e;const n=t.rootDir?.replace(/\\/g,"/");oe=t.filename.replace(/\\/g,"/"),ce=!!t.dev,"string"==typeof n&&oe.startsWith(n)&&(oe=oe.replace(n,"").replace(/^[/\\]/,"")),de=M(le,{offsetLine:1}),ue=[],me=[],fe.clear()}const be=/^\t+/;function _e(e){return e.replace(be,(e=>e.split("\t").join(" ")))}class xe{name="CompileDiagnostic";constructor(e,t,n){this.code=e,this.message=t,oe&&(this.filename=oe),n&&(this.position=n,this.start=de(n[0]),this.end=de(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+_e(e.slice(0,n)).length)+"^";return`${o}: ${_e(e)}\n${t}`}return`${o}: ${_e(e)}`})).join("\n")}(le,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 we extends xe{name="CompileWarning";constructor(e,t,n){super(e,t,n)}}function Ce(e,t,n){let r=me;if(e&&(r=fe.get(e)??me),r&&r.at(-1)?.has(t))return;const s=new we(t,n,e&&void 0!==e.start?[e.start,e.end??e.start]:void 0);pe(s)&&ue.push(s)}function ke(e){Ce(e,"a11y_accesskey","Avoid using accesskey\nhttps://svelte.dev/e/a11y_accesskey")}function Se(e){Ce(e,"a11y_aria_activedescendant_has_tabindex","An element with an aria-activedescendant attribute should have a tabindex value\nhttps://svelte.dev/e/a11y_aria_activedescendant_has_tabindex")}function Pe(e,t){Ce(e,"a11y_aria_attributes",`\`<${t}>\` should not have aria-* attributes\nhttps://svelte.dev/e/a11y_aria_attributes`)}function Ee(e){Ce(e,"a11y_autofocus","Avoid using autofocus\nhttps://svelte.dev/e/a11y_autofocus")}function Ae(e,t){Ce(e,"a11y_hidden",`\`<${t}>\` element should not be hidden\nhttps://svelte.dev/e/a11y_hidden`)}function Te(e,t,n){Ce(e,"a11y_incorrect_aria_attribute_type",`The value of '${t}' must be a ${n}\nhttps://svelte.dev/e/a11y_incorrect_aria_attribute_type`)}function $e(e,t){Ce(e,"a11y_interactive_supports_focus",`Elements with the '${t}' interactive role must have a tabindex value\nhttps://svelte.dev/e/a11y_interactive_supports_focus`)}function Re(e,t){Ce(e,"a11y_misplaced_role",`\`<${t}>\` should not have role attribute\nhttps://svelte.dev/e/a11y_misplaced_role`)}function Ie(e){Ce(e,"a11y_misplaced_scope","The scope attribute should only be used with `<th>` elements\nhttps://svelte.dev/e/a11y_misplaced_scope")}function qe(e,t,n){Ce(e,"a11y_mouse_events_have_key_events",`'${t}' event must be accompanied by '${n}' event\nhttps://svelte.dev/e/a11y_mouse_events_have_key_events`)}function Le(e,t){Ce(e,"a11y_no_abstract_role",`Abstract role '${t}' is forbidden\nhttps://svelte.dev/e/a11y_no_abstract_role`)}function Me(e,t,n){Ce(e,"a11y_no_interactive_element_to_noninteractive_role",`\`<${t}>\` cannot have role '${n}'\nhttps://svelte.dev/e/a11y_no_interactive_element_to_noninteractive_role`)}function Oe(e,t,n){Ce(e,"a11y_no_noninteractive_element_to_interactive_role",`Non-interactive element \`<${t}>\` cannot have interactive role '${n}'\nhttps://svelte.dev/e/a11y_no_noninteractive_element_to_interactive_role`)}function Ne(e,t){Ce(e,"a11y_no_redundant_roles",`Redundant role '${t}'\nhttps://svelte.dev/e/a11y_no_redundant_roles`)}function De(e){Ce(e,"a11y_positive_tabindex","Avoid tabindex values above zero\nhttps://svelte.dev/e/a11y_positive_tabindex")}function je(e,t,n){Ce(e,"a11y_role_has_required_aria_props",`Elements with the ARIA role "${t}" must have the following attributes defined: ${n}\nhttps://svelte.dev/e/a11y_role_has_required_aria_props`)}function Be(e,t,n){Ce(e,"a11y_role_supports_aria_props",`The attribute '${t}' is not supported by the role '${n}'\nhttps://svelte.dev/e/a11y_role_supports_aria_props`)}function Fe(e,t,n,r){Ce(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}>\`\nhttps://svelte.dev/e/a11y_role_supports_aria_props_implicit`)}function Ve(e,t,n){Ce(e,"a11y_unknown_aria_attribute",(n?`Unknown aria attribute 'aria-${t}'. Did you mean '${n}'?`:`Unknown aria attribute 'aria-${t}'`)+"\nhttps://svelte.dev/e/a11y_unknown_aria_attribute")}function He(e,t,n){Ce(e,"a11y_unknown_role",(n?`Unknown role '${t}'. Did you mean '${n}'?`:`Unknown role '${t}'`)+"\nhttps://svelte.dev/e/a11y_unknown_role")}function Ue(e,t,n){Ce(e,"legacy_code",`\`${t}\` is no longer valid — please use \`${n}\` instead\nhttps://svelte.dev/e/legacy_code`)}function ze(e,t,n){Ce(e,"unknown_code",(n?`\`${t}\` is not a recognised code (did you mean \`${n}\`?)`:`\`${t}\` is not a recognised code`)+"\nhttps://svelte.dev/e/unknown_code")}function We(e){Ce(e,"options_deprecated_accessors","The `accessors` option has been deprecated. It will have no effect in runes mode\nhttps://svelte.dev/e/options_deprecated_accessors")}function Ge(e){Ce(e,"options_deprecated_immutable","The `immutable` option has been deprecated. It will have no effect in runes mode\nhttps://svelte.dev/e/options_deprecated_immutable")}function Ke(e){Ce(e,"options_missing_custom_element","The `customElement` option is used when generating a custom element. Did you forget the `customElement: true` compile option?\nhttps://svelte.dev/e/options_missing_custom_element")}function Xe(e){Ce(e,"options_renamed_ssr_dom",'`generate: "dom"` and `generate: "ssr"` options have been renamed to "client" and "server" respectively\nhttps://svelte.dev/e/options_renamed_ssr_dom')}function Je(e,t){Ce(e,"export_let_unused",`Component has unused export property '${t}'. If it is for external reference only, please consider using \`export const ${t}\`\nhttps://svelte.dev/e/export_let_unused`)}function Qe(e,t){Ce(e,"non_reactive_update",`\`${t}\` is updated, but is not declared with \`$state(...)\`. Changing its value will not correctly trigger updates\nhttps://svelte.dev/e/non_reactive_update`)}function Ye(e,t){Ce(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\nhttps://svelte.dev/e/store_rune_conflict`)}function Ze(e){Ce(e,"attribute_avoid_is",'The "is" attribute is not supported cross-browser and should be avoided\nhttps://svelte.dev/e/attribute_avoid_is')}function et(e,t){Ce(e,"attribute_global_event_reference",`You are referencing \`globalThis.${t}\`. Did you forget to declare a variable with that name?\nhttps://svelte.dev/e/attribute_global_event_reference`)}function tt(e,t,n){Ce(e,"attribute_invalid_property_name",`'${t}' is not a valid HTML attribute. Did you mean '${n}'?\nhttps://svelte.dev/e/attribute_invalid_property_name`)}function nt(e,t){Ce(e,"node_invalid_placement_ssr",`${t}. When rendering this component on the server, the resulting HTML will be modified by the browser (by moving, removing, or inserting elements), likely resulting in a \`hydration_mismatch\` warning\nhttps://svelte.dev/e/node_invalid_placement_ssr`)}function rt(e){Ce(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\nhttps://svelte.dev/e/script_unknown_attribute")}const st=/^\s*svelte-ignore\s/,at={"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"},it=["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","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 ot(e,t,n){const r=st.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(it.includes(t))a.push(t);else{const r=at[t]??t.replace(/-/g,"_"),s=e+n.index,a=s+t.length;if(it.includes(r))Ue({start:s,end:a},t,r);else{ze({start:s,end:a},t,A(t,it))}}if(!n[2])break}else for(const e of t.slice(s).matchAll(/[\w$-]+/gm)){const t=e[0];if(a.push(t),!it.includes(t)){const e=at[t]??t.replace(/-/g,"_");it.includes(e)&&a.push(e)}}return a}function lt(e){const t=st.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=at[t]??t.replace(/-/g,"_");return/\w+-\w+/.test(e.substring(n+s+t.length))&&(a+=","),a}))}function ct(e){const t=e.at(0),n=e.at(-1);"Text"===t?.type&&(p.test(t.data)?t.data=t.data.replace(o,""):e.shift()),"Text"===n?.type&&(p.test(n.data)?n.data=n.data.replace(c,""):e.pop())}var pt=[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],ut=[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],dt="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟊꟐꟑꟓꟕ-ꟙꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA--zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",ht={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"},mt="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",ft={5:mt,"5module":mt+" export import",6:mt+" const class extends export import super"},yt=/^in(stanceof)?$/,vt=new RegExp("["+dt+"]"),gt=new RegExp("["+dt+"‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࢘-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍--9_・]");function bt(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 _t(e,t){return e<65?36===e:e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&vt.test(String.fromCharCode(e)):!1!==t&&bt(e,ut)))}function xt(e,t){return e<48?36===e:e<58||!(e<65)&&(e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&gt.test(String.fromCharCode(e)):!1!==t&&(bt(e,ut)||bt(e,pt)))))}var wt=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 Ct(e,t){return new wt(e,{beforeExpr:!0,binop:t})}var kt={beforeExpr:!0},St={startsExpr:!0},Pt={};function Et(e,t){return void 0===t&&(t={}),t.keyword=e,Pt[e]=new wt(e,t)}var At={num:new wt("num",St),regexp:new wt("regexp",St),string:new wt("string",St),name:new wt("name",St),privateId:new wt("privateId",St),eof:new wt("eof"),bracketL:new wt("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new wt("]"),braceL:new wt("{",{beforeExpr:!0,startsExpr:!0}),braceR:new wt("}"),parenL:new wt("(",{beforeExpr:!0,startsExpr:!0}),parenR:new wt(")"),comma:new wt(",",kt),semi:new wt(";",kt),colon:new wt(":",kt),dot:new wt("."),question:new wt("?",kt),questionDot:new wt("?."),arrow:new wt("=>",kt),template:new wt("template"),invalidTemplate:new wt("invalidTemplate"),ellipsis:new wt("...",kt),backQuote:new wt("`",St),dollarBraceL:new wt("${",{beforeExpr:!0,startsExpr:!0}),eq:new wt("=",{beforeExpr:!0,isAssign:!0}),assign:new wt("_=",{beforeExpr:!0,isAssign:!0}),incDec:new wt("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new wt("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:Ct("||",1),logicalAND:Ct("&&",2),bitwiseOR:Ct("|",3),bitwiseXOR:Ct("^",4),bitwiseAND:Ct("&",5),equality:Ct("==/!=/===/!==",6),relational:Ct("</>/<=/>=",7),bitShift:Ct("<</>>/>>>",8),plusMin:new wt("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:Ct("%",10),star:Ct("*",10),slash:Ct("/",10),starstar:new wt("**",{beforeExpr:!0}),coalesce:Ct("??",1),_break:Et("break"),_case:Et("case",kt),_catch:Et("catch"),_continue:Et("continue"),_debugger:Et("debugger"),_default:Et("default",kt),_do:Et("do",{isLoop:!0,beforeExpr:!0}),_else:Et("else",kt),_finally:Et("finally"),_for:Et("for",{isLoop:!0}),_function:Et("function",St),_if:Et("if"),_return:Et("return",kt),_switch:Et("switch"),_throw:Et("throw",kt),_try:Et("try"),_var:Et("var"),_const:Et("const"),_while:Et("while",{isLoop:!0}),_with:Et("with"),_new:Et("new",{beforeExpr:!0,startsExpr:!0}),_this:Et("this",St),_super:Et("super",St),_class:Et("class",St),_extends:Et("extends",kt),_export:Et("export"),_import:Et("import",St),_null:Et("null",St),_true:Et("true",St),_false:Et("false",St),_in:Et("in",{beforeExpr:!0,binop:7}),_instanceof:Et("instanceof",{beforeExpr:!0,binop:7}),_typeof:Et("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:Et("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:Et("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},Tt=/\r\n?|\n|\u2028|\u2029/,$t=new RegExp(Tt.source,"g");function Rt(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(Rt(s))return r<n-1&&13===s&&10===e.charCodeAt(r+1)?r+2:r+1}return-1}var qt=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,Lt=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,Mt=Object.prototype,Ot=Mt.hasOwnProperty,Nt=Mt.toString,Dt=Object.hasOwn||function(e,t){return Ot.call(e,t)},jt=Array.isArray||function(e){return"[object Array]"===Nt.call(e)},Bt=Object.create(null);function Ft(e){return Bt[e]||(Bt[e]=new RegExp("^(?:"+e.replace(/ /g,"|")+")$"))}function Vt(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10),56320+(1023&e)))}var Ht=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,Ut=function(e,t){this.line=e,this.column=t};Ut.prototype.offset=function(e){return new Ut(this.line,this.column+e)};var zt=function(e,t,n){this.start=t,this.end=n,null!==e.sourceFile&&(this.source=e.sourceFile)};function Wt(e,t){for(var n=1,r=0;;){var s=It(e,r,t);if(s<0)return new Ut(n,t-r);++n,r=s}}var Gt={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},Kt=!1;function Xt(e){var t={};for(var n in Gt)t[n]=e&&Dt(e,n)?e[n]:Gt[n];if("latest"===t.ecmaVersion?t.ecmaVersion=1e8:null==t.ecmaVersion?(!Kt&&"object"==typeof console&&console.warn&&(Kt=!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),jt(t.onToken)){var r=t.onToken;t.onToken=function(e){return r.push(e)}}return jt(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 zt(this,i,o)),e.ranges&&(l.range=[s,a]),t.push(l)}}(t,t.onComment)),t}var Jt=256;function Qt(e,t){return 2|(e?4:0)|(t?8:0)}var Yt=function(e,t,n){this.options=e=Xt(e),this.sourceFile=e.sourceFile,this.keywords=Ft(ft[e.ecmaVersion>=6?6:"module"===e.sourceType?"5module":5]);var r="";!0!==e.allowReserved&&(r=ht[e.ecmaVersion>=6?6:5===e.ecmaVersion?5:3],"module"===e.sourceType&&(r+=" await")),this.reservedWords=Ft(r);var s=(r?r+" ":"")+ht.strict;this.reservedWordsStrict=Ft(s),this.reservedWordsStrictBind=Ft(s+" "+ht.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(Tt).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=At.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=[]},Zt={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}};Yt.prototype.parse=function(){var e=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(e)},Zt.inFunction.get=function(){return(2&this.currentVarScope().flags)>0},Zt.inGenerator.get=function(){return(8&this.currentVarScope().flags)>0&&!this.currentVarScope().inClassFieldInit},Zt.inAsync.get=function(){return(4&this.currentVarScope().flags)>0&&!this.currentVarScope().inClassFieldInit},Zt.canAwait.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e];if(t.inClassFieldInit||t.flags&Jt)return!1;if(2&t.flags)return(4&t.flags)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction},Zt.allowSuper.get=function(){var e=this.currentThisScope(),t=e.flags,n=e.inClassFieldInit;return(64&t)>0||n||this.options.allowSuperOutsideMethod},Zt.allowDirectSuper.get=function(){return(128&this.currentThisScope().flags)>0},Zt.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},Zt.allowNewDotTarget.get=function(){var e=this.currentThisScope(),t=e.flags,n=e.inClassFieldInit;return(258&t)>0||n},Zt.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&Jt)>0},Yt.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},Yt.parse=function(e,t){return new this(t,e).parse()},Yt.parseExpressionAt=function(e,t,n){var r=new this(n,e,t);return r.nextToken(),r.parseExpression()},Yt.tokenizer=function(e,t){return new this(t,e)},Object.defineProperties(Yt.prototype,Zt);var en=Yt.prototype,tn=/^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;en.strictDirective=function(e){if(this.options.ecmaVersion<5)return!1;for(;;){Lt.lastIndex=e,e+=Lt.exec(this.input)[0].length;var t=tn.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||Tt.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++}},en.eat=function(e){return this.type===e&&(this.next(),!0)},en.isContextual=function(e){return this.type===At.name&&this.value===e&&!this.containsEsc},en.eatContextual=function(e){return!!this.isContextual(e)&&(this.next(),!0)},en.expectContextual=function(e){this.eatContextual(e)||this.unexpected()},en.canInsertSemicolon=function(){return this.type===At.eof||this.type===At.braceR||Tt.test(this.input.slice(this.lastTokEnd,this.start))},en.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},en.semicolon=function(){this.eat(At.semi)||this.insertSemicolon()||this.unexpected()},en.afterTrailingComma=function(e,t){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t||this.next(),!0},en.expect=function(e){this.eat(e)||this.unexpected()},en.unexpected=function(e){this.raise(null!=e?e:this.start,"Unexpected token")};var nn=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};en.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")}},en.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")},en.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")},en.isSimpleAssignTarget=function(e){return"ParenthesizedExpression"===e.type?this.isSimpleAssignTarget(e.expression):"Identifier"===e.type||"MemberExpression"===e.type};var rn=Yt.prototype;rn.parseTopLevel=function(e){var t=Object.create(null);for(e.body||(e.body=[]);this.type!==At.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 sn={kind:"loop"},an={kind:"switch"};rn.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(_t(r,!0)){for(var s=n+1;xt(r=this.input.charCodeAt(s),!0);)++s;if(92===r||r>55295&&r<56320)return!0;var a=this.input.slice(n,s);if(!yt.test(a))return!0}return!1},rn.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!(Tt.test(this.input.slice(this.pos,n))||"function"!==this.input.slice(n,n+8)||n+8!==this.input.length&&(xt(e=this.input.charCodeAt(n+8))||e>55295&&e<56320))},rn.parseStatement=function(e,t,n){var r,s=this.type,a=this.startNode();switch(this.isLet(e)&&(s=At._var,r="let"),s){case At._break:case At._continue:return this.parseBreakContinueStatement(a,s.keyword);case At._debugger:return this.parseDebuggerStatement(a);case At._do:return this.parseDoStatement(a);case At._for:return this.parseForStatement(a);case At._function:return e&&(this.strict||"if"!==e&&"label"!==e)&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(a,!1,!e);case At._class:return e&&this.unexpected(),this.parseClass(a,!0);case At._if:return this.parseIfStatement(a);case At._return:return this.parseReturnStatement(a);case At._switch:return this.parseSwitchStatement(a);case At._throw:return this.parseThrowStatement(a);case At._try:return this.parseTryStatement(a);case At._const:case At._var:return r=r||this.value,e&&"var"!==r&&this.unexpected(),this.parseVarStatement(a,r);case At._while:return this.parseWhileStatement(a);case At._with:return this.parseWithStatement(a);case At.braceL:return this.parseBlock(!0,a);case At.semi:return this.parseEmptyStatement(a);case At._export:case At._import:if(this.options.ecmaVersion>10&&s===At._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===At._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,p=this.parseExpression();return s===At.name&&"Identifier"===p.type&&this.eat(At.colon)?this.parseLabeledStatement(a,c,p,e):this.parseExpressionStatement(a,p)}},rn.parseBreakContinueStatement=function(e,t){var n="break"===t;this.next(),this.eat(At.semi)||this.insertSemicolon()?e.label=null:this.type!==At.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")},rn.parseDebuggerStatement=function(e){return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement")},rn.parseDoStatement=function(e){return this.next(),this.labels.push(sn),e.body=this.parseStatement("do"),this.labels.pop(),this.expect(At._while),e.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(At.semi):this.semicolon(),this.finishNode(e,"DoWhileStatement")},rn.parseForStatement=function(e){this.next();var t=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(sn),this.enterScope(0),this.expect(At.parenL),this.type===At.semi)return t>-1&&this.unexpected(t),this.parseFor(e,null);var n=this.isLet();if(this.type===At._var||this.type===At._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===At._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&1===r.declarations.length?(this.options.ecmaVersion>=9&&(this.type===At._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 nn,c=this.start,p=t>-1?this.parseExprSubscripts(l,"await"):this.parseExpression(!0,l);return this.type===At._in||(i=this.options.ecmaVersion>=6&&this.isContextual("of"))?(t>-1?(this.type===At._in&&this.unexpected(t),e.await=!0):i&&this.options.ecmaVersion>=8&&(p.start!==c||o||"Identifier"!==p.type||"async"!==p.name?this.options.ecmaVersion>=9&&(e.await=!1):this.unexpected()),a&&i&&this.raise(p.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(p,!1,l),this.checkLValPattern(p),this.parseForIn(e,p)):(this.checkExpressionErrors(l,!0),t>-1&&this.unexpected(t),this.parseFor(e,p))},rn.parseFunctionStatement=function(e,t,n){return this.next(),this.parseFunction(e,ln|(n?0:cn),!1,t)},rn.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement("if"),e.alternate=this.eat(At._else)?this.parseStatement("if"):null,this.finishNode(e,"IfStatement")},rn.parseReturnStatement=function(e){return this.inFunction||this.options.allowReturnOutsideFunction||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(At.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")},rn.parseSwitchStatement=function(e){var t;this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(At.braceL),this.labels.push(an),this.enterScope(0);for(var n=!1;this.type!==At.braceR;)if(this.type===At._case||this.type===At._default){var r=this.type===At._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(At.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")},rn.parseThrowStatement=function(e){return this.next(),Tt.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 on=[];rn.parseCatchClauseParam=function(){var e=this.parseBindingAtom(),t="Identifier"===e.type;return this.enterScope(t?32:0),this.checkLValPattern(e,t?4:2),this.expect(At.parenR),e},rn.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===At._catch){var t=this.startNode();this.next(),this.eat(At.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(At._finally)?this.parseBlock():null,e.handler||e.finalizer||this.raise(e.start,"Missing catch or finally clause"),this.finishNode(e,"TryStatement")},rn.parseVarStatement=function(e,t,n){return this.next(),this.parseVar(e,!1,t,n),this.semicolon(),this.finishNode(e,"VariableDeclaration")},rn.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(sn),e.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(e,"WhileStatement")},rn.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")},rn.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,"EmptyStatement")},rn.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===At._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")},rn.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")},rn.parseBlock=function(e,t,n){for(void 0===e&&(e=!0),void 0===t&&(t=this.startNode()),t.body=[],this.expect(At.braceL),e&&this.enterScope(0);this.type!==At.braceR;){var r=this.parseStatement(null);t.body.push(r)}return n&&(this.strict=!1),this.next(),e&&this.exitScope(),this.finishNode(t,"BlockStatement")},rn.parseFor=function(e,t){return e.init=t,this.expect(At.semi),e.test=this.type===At.semi?null:this.parseExpression(),this.expect(At.semi),e.update=this.type===At.parenR?null:this.parseExpression(),this.expect(At.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,"ForStatement")},rn.parseForIn=function(e,t){var n=this.type===At._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(At.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,n?"ForInStatement":"ForOfStatement")},rn.parseVar=function(e,t,n,r){for(e.declarations=[],e.kind=n;;){var s=this.startNode();if(this.parseVarId(s,n),this.eat(At.eq)?s.init=this.parseMaybeAssign(t):r||"const"!==n||this.type===At._in||this.options.ecmaVersion>=6&&this.isContextual("of")?r||"Identifier"===s.id.type||t&&(this.type===At._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(At.comma))break}return e},rn.parseVarId=function(e,t){e.id=this.parseBindingAtom(),this.checkLValPattern(e.id,"var"===t?1:2,!1)};var ln=1,cn=2;function pn(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 un(e,t){var n=e.computed,r=e.key;return!n&&("Identifier"===r.type&&r.name===t||"Literal"===r.type&&r.value===t)}rn.parseFunction=function(e,t,n,r,s){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!r)&&(this.type===At.star&&t&cn&&this.unexpected(),e.generator=this.eat(At.star)),this.options.ecmaVersion>=8&&(e.async=!!r),t&ln&&(e.id=4&t&&this.type!==At.name?null:this.parseIdent(),!e.id||t&cn||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(Qt(e.async,e.generator)),t&ln||(e.id=this.type===At.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&ln?"FunctionDeclaration":"FunctionExpression")},rn.parseFunctionParams=function(e){this.expect(At.parenL),e.params=this.parseBindingList(At.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},rn.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(At.braceL);this.type!==At.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&&pn(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")},rn.parseClassElement=function(e){if(this.eat(At.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(At.braceL))return this.parseClassStaticBlock(n),n;this.isClassElementNameStart()||this.type===At.star?o=!0:r="static"}if(n.static=o,!r&&t>=8&&this.eatContextual("async")&&(!this.isClassElementNameStart()&&this.type!==At.star||this.canInsertSemicolon()?r="async":a=!0),!r&&(t>=9||!a)&&this.eat(At.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===At.parenL||"method"!==i||s||a){var c=!n.static&&un(n,"constructor"),p=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,p)}else this.parseClassField(n);return n},rn.isClassElementNameStart=function(){return this.type===At.name||this.type===At.privateId||this.type===At.num||this.type===At.string||this.type===At.bracketL||this.type.keyword},rn.parseClassElementName=function(e){this.type===At.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)},rn.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&&un(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")},rn.parseClassField=function(e){if(un(e,"constructor")?this.raise(e.key.start,"Classes can't have a field named 'constructor'"):e.static&&un(e,"prototype")&&this.raise(e.key.start,"Classes can't have a static field named 'prototype'"),this.eat(At.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")},rn.parseClassStaticBlock=function(e){e.body=[];var t=this.labels;for(this.labels=[],this.enterScope(320);this.type!==At.braceR;){var n=this.parseStatement(null);e.body.push(n)}return this.next(),this.exitScope(),this.labels=t,this.finishNode(e,"StaticBlock")},rn.parseClassId=function(e,t){this.type===At.name?(e.id=this.parseIdent(),t&&this.checkLValSimple(e.id,2,!1)):(!0===t&&this.unexpected(),e.id=null)},rn.parseClassSuper=function(e){e.superClass=this.eat(At._extends)?this.parseExprSubscripts(null,!1):null},rn.enterClassBody=function(){var e={declared:Object.create(null),used:[]};return this.privateNameStack.push(e),e.declared},rn.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"))}},rn.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!==At.string&&this.unexpected(),e.source=this.parseExprAtom(),this.semicolon(),this.finishNode(e,"ExportAllDeclaration")},rn.parseExport=function(e,t){if(this.next(),this.eat(At.star))return this.parseExportAllDeclaration(e,t);if(this.eat(At._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!==At.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")},rn.parseExportDeclaration=function(e){return this.parseStatement(null)},rn.parseExportDefaultDeclaration=function(){var e;if(this.type===At._function||(e=this.isAsyncFunction())){var t=this.startNode();return this.next(),e&&this.next(),this.parseFunction(t,4|ln,!1,e)}if(this.type===At._class){var n=this.startNode();return this.parseClass(n,"nullableID")}var r=this.parseMaybeAssign();return this.semicolon(),r},rn.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)},rn.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)},rn.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)}},rn.shouldParseExportStatement=function(){return"var"===this.type.keyword||"const"===this.type.keyword||"class"===this.type.keyword||"function"===this.type.keyword||this.isLet()||this.isAsyncFunction()},rn.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")},rn.parseExportSpecifiers=function(e){var t=[],n=!0;for(this.expect(At.braceL);!this.eat(At.braceR);){if(n)n=!1;else if(this.expect(At.comma),this.afterTrailingComma(At.braceR))break;t.push(this.parseExportSpecifier(e))}return t},rn.parseImport=function(e){return this.next(),this.type===At.string?(e.specifiers=on,e.source=this.parseExprAtom()):(e.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),e.source=this.type===At.string?this.parseExprAtom():this.unexpected()),this.semicolon(),this.finishNode(e,"ImportDeclaration")},rn.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")},rn.parseImportDefaultSpecifier=function(){var e=this.startNode();return e.local=this.parseIdent(),this.checkLValSimple(e.local,2),this.finishNode(e,"ImportDefaultSpecifier")},rn.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")},rn.parseImportSpecifiers=function(){var e=[],t=!0;if(this.type===At.name&&(e.push(this.parseImportDefaultSpecifier()),!this.eat(At.comma)))return e;if(this.type===At.star)return e.push(this.parseImportNamespaceSpecifier()),e;for(this.expect(At.braceL);!this.eat(At.braceR);){if(t)t=!1;else if(this.expect(At.comma),this.afterTrailingComma(At.braceR))break;e.push(this.parseImportSpecifier())}return e},rn.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===At.string){var e=this.parseLiteral(this.value);return Ht.test(e.value)&&this.raise(e.start,"An export name cannot include a lone surrogate."),e}return this.parseIdent(!0)},rn.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)},rn.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 dn=Yt.prototype;dn.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},dn.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},dn.parseSpread=function(e){var t=this.startNode();return this.next(),t.argument=this.parseMaybeAssign(!1,e),this.finishNode(t,"SpreadElement")},dn.parseRestBinding=function(){var e=this.startNode();return this.next(),6===this.options.ecmaVersion&&this.type!==At.name&&this.unexpected(),e.argument=this.parseBindingAtom(),this.finishNode(e,"RestElement")},dn.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case At.bracketL:var e=this.startNode();return this.next(),e.elements=this.parseBindingList(At.bracketR,!0,!0),this.finishNode(e,"ArrayPattern");case At.braceL:return this.parseObj(!0)}return this.parseIdent()},dn.parseBindingList=function(e,t,n,r){for(var s=[],a=!0;!this.eat(e);)if(a?a=!1:this.expect(At.comma),t&&this.type===At.comma)s.push(null);else{if(n&&this.afterTrailingComma(e))break;if(this.type===At.ellipsis){var i=this.parseRestBinding();this.parseBindingListItem(i),s.push(i),this.type===At.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.expect(e);break}s.push(this.parseAssignableListItem(r))}return s},dn.parseAssignableListItem=function(e){var t=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(t),t},dn.parseBindingListItem=function(e){return e},dn.parseMaybeDefault=function(e,t,n){if(n=n||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(At.eq))return n;var r=this.startNodeAt(e,t);return r.left=n,r.right=this.parseMaybeAssign(),this.finishNode(r,"AssignmentPattern")},dn.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")}},dn.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)}},dn.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 hn=function(e,t,n,r,s){this.token=e,this.isExpr=!!t,this.preserveSpace=!!n,this.override=r,this.generator=!!s},mn={b_stat:new hn("{",!1),b_expr:new hn("{",!0),b_tmpl:new hn("${",!1),p_stat:new hn("(",!1),p_expr:new hn("(",!0),q_tmpl:new hn("`",!0,!0,(function(e){return e.tryReadTemplateToken()})),f_stat:new hn("function",!1),f_expr:new hn("function",!0),f_expr_gen:new hn("function",!0,!1,null,!0),f_gen:new hn("function",!1,!1,null,!0)},fn=Yt.prototype;fn.initialContext=function(){return[mn.b_stat]},fn.curContext=function(){return this.context[this.context.length-1]},fn.braceIsBlock=function(e){var t=this.curContext();return t===mn.f_expr||t===mn.f_stat||(e!==At.colon||t!==mn.b_stat&&t!==mn.b_expr?e===At._return||e===At.name&&this.exprAllowed?Tt.test(this.input.slice(this.lastTokEnd,this.start)):e===At._else||e===At.semi||e===At.eof||e===At.parenR||e===At.arrow||(e===At.braceL?t===mn.b_stat:e!==At._var&&e!==At._const&&e!==At.name&&!this.exprAllowed):!t.isExpr)},fn.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},fn.updateContext=function(e){var t,n=this.type;n.keyword&&e===At.dot?this.exprAllowed=!1:(t=n.updateContext)?t.call(this,e):this.exprAllowed=n.beforeExpr},fn.overrideContext=function(e){this.curContext()!==e&&(this.context[this.context.length-1]=e)},At.parenR.updateContext=At.braceR.updateContext=function(){if(1!==this.context.length){var e=this.context.pop();e===mn.b_stat&&"function"===this.curContext().token&&(e=this.context.pop()),this.exprAllowed=!e.isExpr}else this.exprAllowed=!0},At.braceL.updateContext=function(e){this.context.push(this.braceIsBlock(e)?mn.b_stat:mn.b_expr),this.exprAllowed=!0},At.dollarBraceL.updateContext=function(){this.context.push(mn.b_tmpl),this.exprAllowed=!0},At.parenL.updateContext=function(e){var t=e===At._if||e===At._for||e===At._with||e===At._while;this.context.push(t?mn.p_stat:mn.p_expr),this.exprAllowed=!0},At.incDec.updateContext=function(){},At._function.updateContext=At._class.updateContext=function(e){!e.beforeExpr||e===At._else||e===At.semi&&this.curContext()!==mn.p_stat||e===At._return&&Tt.test(this.input.slice(this.lastTokEnd,this.start))||(e===At.colon||e===At.braceL)&&this.curContext()===mn.b_stat?this.context.push(mn.f_stat):this.context.push(mn.f_expr),this.exprAllowed=!1},At.colon.updateContext=function(){"function"===this.curContext().token&&this.context.pop(),this.exprAllowed=!0},At.backQuote.updateContext=function(){this.curContext()===mn.q_tmpl?this.context.pop():this.context.push(mn.q_tmpl),this.exprAllowed=!1},At.star.updateContext=function(e){if(e===At._function){var t=this.context.length-1;this.context[t]===mn.f_expr?this.context[t]=mn.f_expr_gen:this.context[t]=mn.f_gen}this.exprAllowed=!0},At.name.updateContext=function(e){var t=!1;this.options.ecmaVersion>=6&&e!==At.dot&&("of"===this.value&&!this.exprAllowed||"yield"===this.value&&this.inGeneratorContext())&&(t=!0),this.exprAllowed=t};var yn=Yt.prototype;function vn(e){return"Identifier"===e.type||"ParenthesizedExpression"===e.type&&vn(e.expression)}function gn(e){return"MemberExpression"===e.type&&"PrivateIdentifier"===e.property.type||"ChainExpression"===e.type&&gn(e.expression)||"ParenthesizedExpression"===e.type&&gn(e.expression)}yn.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}}},yn.parseExpression=function(e,t){var n=this.start,r=this.startLoc,s=this.parseMaybeAssign(e,t);if(this.type===At.comma){var a=this.startNodeAt(n,r);for(a.expressions=[s];this.eat(At.comma);)a.expressions.push(this.parseMaybeAssign(e,t));return this.finishNode(a,"SequenceExpression")}return s},yn.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 nn,r=!0);var o=this.start,l=this.startLoc;this.type!==At.parenL&&this.type!==At.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 p=this.startNodeAt(o,l);return p.operator=this.value,this.type===At.eq&&(c=this.toAssignable(c,!1,t)),r||(t.parenthesizedAssign=t.trailingComma=t.doubleProto=-1),t.shorthandAssign>=c.start&&(t.shorthandAssign=-1),this.type===At.eq?this.checkLValPattern(c):this.checkLValSimple(c),p.left=c,this.next(),p.right=this.parseMaybeAssign(e),i>-1&&(t.doubleProto=i),this.finishNode(p,"AssignmentExpression")}return r&&this.checkExpressionErrors(t,!0),s>-1&&(t.parenthesizedAssign=s),a>-1&&(t.trailingComma=a),c},yn.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(At.question)){var a=this.startNodeAt(n,r);return a.test=s,a.consequent=this.parseMaybeAssign(),this.expect(At.colon),a.alternate=this.parseMaybeAssign(e),this.finishNode(a,"ConditionalExpression")}return s},yn.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)},yn.parseExprOp=function(e,t,n,r,s){var a=this.type.binop;if(null!=a&&(!s||this.type!==At._in)&&a>r){var i=this.type===At.logicalOR||this.type===At.logicalAND,o=this.type===At.coalesce;o&&(a=At.logicalAND.binop);var l=this.value;this.next();var c=this.start,p=this.startLoc,u=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,s),c,p,a,s),d=this.buildBinary(t,n,e,u,l,i||o);return(i&&this.type===At.coalesce||o&&(this.type===At.logicalOR||this.type===At.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},yn.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")},yn.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===At.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&&vn(o.argument)?this.raiseRecoverable(o.start,"Deleting local variable in strict mode"):"delete"===o.operator&&gn(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!==At.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!==At._in&&this.unexpected();return n||!this.eat(At.starstar)?s:t?void this.unexpected(this.lastTokStart):this.buildBinary(a,i,s,this.parseMaybeUnary(null,!1,!1,r),"**",!1)},yn.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},yn.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}},yn.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(At.arrow)},yn.parseSubscriptAsyncArrow=function(e,t,n,r){return this.parseArrowExpression(this.startNodeAt(e,t),n,!0,r)},yn.parseSubscript=function(e,t,n,r,s,a,i){var o=this.options.ecmaVersion>=11,l=o&&this.eat(At.questionDot);r&&l&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var c=this.eat(At.bracketL);if(c||l&&this.type!==At.parenL&&this.type!==At.backQuote||this.eat(At.dot)){var p=this.startNodeAt(t,n);p.object=e,c?(p.property=this.parseExpression(),this.expect(At.bracketR)):this.type===At.privateId&&"Super"!==e.type?p.property=this.parsePrivateIdent():p.property=this.parseIdent("never"!==this.options.allowReserved),p.computed=!!c,o&&(p.optional=l),e=this.finishNode(p,"MemberExpression")}else if(!r&&this.eat(At.parenL)){var u=new nn,d=this.yieldPos,h=this.awaitPos,m=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var f=this.parseExprList(At.parenR,this.options.ecmaVersion>=8,!1,u);if(s&&!l&&this.shouldParseAsyncArrow())return this.checkPatternErrors(u,!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(u,!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===At.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},yn.parseExprAtom=function(e,t,n){this.type===At.slash&&this.readRegexp();var r,s=this.potentialArrowAt===this.start;switch(this.type){case At._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),r=this.startNode(),this.next(),this.type!==At.parenL||this.allowDirectSuper||this.raise(r.start,"super() call outside constructor of a subclass"),this.type!==At.dot&&this.type!==At.bracketL&&this.type!==At.parenL&&this.unexpected(),this.finishNode(r,"Super");case At._this:return r=this.startNode(),this.next(),this.finishNode(r,"ThisExpression");case At.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(At._function))return this.overrideContext(mn.f_expr),this.parseFunction(this.startNodeAt(a,i),0,!1,!0,t);if(s&&!this.canInsertSemicolon()){if(this.eat(At.arrow))return this.parseArrowExpression(this.startNodeAt(a,i),[l],!1,t);if(this.options.ecmaVersion>=8&&"async"===l.name&&this.type===At.name&&!o&&(!this.potentialArrowInForAwait||"of"!==this.value||this.containsEsc))return l=this.parseIdent(!1),!this.canInsertSemicolon()&&this.eat(At.arrow)||this.unexpected(),this.parseArrowExpression(this.startNodeAt(a,i),[l],!0,t)}return l;case At.regexp:var c=this.value;return(r=this.parseLiteral(c.value)).regex={pattern:c.pattern,flags:c.flags},r;case At.num:case At.string:return this.parseLiteral(this.value);case At._null:case At._true:case At._false:return(r=this.startNode()).value=this.type===At._null?null:this.type===At._true,r.raw=this.type.keyword,this.next(),this.finishNode(r,"Literal");case At.parenL:var p=this.start,u=this.parseParenAndDistinguishExpression(s,t);return e&&(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(u)&&(e.parenthesizedAssign=p),e.parenthesizedBind<0&&(e.parenthesizedBind=p)),u;case At.bracketL:return r=this.startNode(),this.next(),r.elements=this.parseExprList(At.bracketR,!0,!0,e),this.finishNode(r,"ArrayExpression");case At.braceL:return this.overrideContext(mn.b_expr),this.parseObj(!1,e);case At._function:return r=this.startNode(),this.next(),this.parseFunction(r,0);case At._class:return this.parseClass(this.startNode(),!1);case At._new:return this.parseNew();case At.backQuote:return this.parseTemplate();case At._import:return this.options.ecmaVersion>=11?this.parseExprImport(n):this.unexpected();default:return this.parseExprAtomDefault()}},yn.parseExprAtomDefault=function(){this.unexpected()},yn.parseExprImport=function(e){var t=this.startNode();if(this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import"),this.next(),this.type===At.parenL&&!e)return this.parseDynamicImport(t);if(this.type===At.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()},yn.parseDynamicImport=function(e){if(this.next(),e.source=this.parseMaybeAssign(),!this.eat(At.parenR)){var t=this.start;this.eat(At.comma)&&this.eat(At.parenR)?this.raiseRecoverable(t,"Trailing comma is not allowed in import()"):this.unexpected(t)}return this.finishNode(e,"ImportExpression")},yn.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")},yn.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")},yn.parseParenExpression=function(){this.expect(At.parenL);var e=this.parseExpression();return this.expect(At.parenR),e},yn.shouldParseArrow=function(e){return!this.canInsertSemicolon()},yn.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=[],p=!0,u=!1,d=new nn,h=this.yieldPos,m=this.awaitPos;for(this.yieldPos=0,this.awaitPos=0;this.type!==At.parenR;){if(p?p=!1:this.expect(At.comma),a&&this.afterTrailingComma(At.parenR,!0)){u=!0;break}if(this.type===At.ellipsis){i=this.start,c.push(this.parseParenItem(this.parseRestBinding())),this.type===At.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(At.parenR),e&&this.shouldParseArrow(c)&&this.eat(At.arrow))return this.checkPatternErrors(d,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=h,this.awaitPos=m,this.parseParenArrowList(r,s,c,t);c.length&&!u||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},yn.parseParenItem=function(e){return e},yn.parseParenArrowList=function(e,t,n,r){return this.parseArrowExpression(this.startNodeAt(e,t),n,!1,r)};var bn=[];yn.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===At.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(At.parenL)?e.arguments=this.parseExprList(At.parenR,this.options.ecmaVersion>=8,!1):e.arguments=bn,this.finishNode(e,"NewExpression")},yn.parseTemplateElement=function(e){var t=e.isTagged,n=this.startNode();return this.type===At.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===At.backQuote,this.finishNode(n,"TemplateElement")},yn.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===At.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(At.dollarBraceL),n.expressions.push(this.parseExpression()),this.expect(At.braceR),n.quasis.push(r=this.parseTemplateElement({isTagged:t}));return this.next(),this.finishNode(n,"TemplateLiteral")},yn.isAsyncProp=function(e){return!e.computed&&"Identifier"===e.key.type&&"async"===e.key.name&&(this.type===At.name||this.type===At.num||this.type===At.string||this.type===At.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===At.star)&&!Tt.test(this.input.slice(this.lastTokEnd,this.start))},yn.parseObj=function(e,t){var n=this.startNode(),r=!0,s={};for(n.properties=[],this.next();!this.eat(At.braceR);){if(r)r=!1;else if(this.expect(At.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(At.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")},yn.parseProperty=function(e,t){var n,r,s,a,i=this.startNode();if(this.options.ecmaVersion>=9&&this.eat(At.ellipsis))return e?(i.argument=this.parseIdent(!1),this.type===At.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===At.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(At.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(At.star),this.parsePropertyName(i)):r=!1,this.parsePropertyValue(i,e,n,r,s,a,t,o),this.finishNode(i,"Property")},yn.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")},yn.parsePropertyValue=function(e,t,n,r,s,a,i,o){(n||r)&&this.type===At.colon&&this.unexpected(),this.eat(At.colon)?(e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,i),e.kind="init"):this.options.ecmaVersion>=6&&this.type===At.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===At.comma||this.type===At.braceR||this.type===At.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===At.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))},yn.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(At.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(At.bracketR),e.key;e.computed=!1}return e.key=this.type===At.num||this.type===At.string?this.parseExprAtom():this.parseIdent("never"!==this.options.allowReserved)},yn.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)},yn.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|Qt(t,r.generator)|(n?128:0)),this.expect(At.parenL),r.params=this.parseBindingList(At.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")},yn.parseArrowExpression=function(e,t,n,r){var s=this.yieldPos,a=this.awaitPos,i=this.awaitIdentPos;return this.enterScope(16|Qt(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")},yn.parseFunctionBody=function(e,t,n,r){var s=t&&this.type!==At.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()},yn.isSimpleParamList=function(e){for(var t=0,n=e;t<n.length;t+=1){if("Identifier"!==n[t].type)return!1}return!0},yn.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)}},yn.parseExprList=function(e,t,n,r){for(var s=[],a=!0;!this.eat(e);){if(a)a=!1;else if(this.expect(At.comma),t&&this.afterTrailingComma(e))break;var i=void 0;n&&this.type===At.comma?i=null:this.type===At.ellipsis?(i=this.parseSpread(r),r&&this.type===At.comma&&r.trailingComma<0&&(r.trailingComma=this.start)):i=this.parseMaybeAssign(!1,r),s.push(i)}return s},yn.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"))},yn.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},yn.parseIdentNode=function(){var e=this.startNode();return this.type===At.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=At.name):this.unexpected(),e},yn.parsePrivateIdent=function(){var e=this.startNode();return this.type===At.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},yn.parseYield=function(e){this.yieldPos||(this.yieldPos=this.start);var t=this.startNode();return this.next(),this.type===At.semi||this.canInsertSemicolon()||this.type!==At.star&&!this.type.startsExpr?(t.delegate=!1,t.argument=null):(t.delegate=this.eat(At.star),t.argument=this.parseMaybeAssign(e)),this.finishNode(t,"YieldExpression")},yn.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 _n=Yt.prototype;_n.raise=function(e,t){var n=Wt(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},_n.raiseRecoverable=_n.raise,_n.curPosition=function(){if(this.options.locations)return new Ut(this.curLine,this.pos-this.lineStart)};var xn=Yt.prototype,wn=function(e){this.flags=e,this.var=[],this.lexical=[],this.functions=[],this.inClassFieldInit=!1};xn.enterScope=function(e){this.scopeStack.push(new wn(e))},xn.exitScope=function(){this.scopeStack.pop()},xn.treatFunctionsAsVarInScope=function(e){return 2&e.flags||!this.inModule&&1&e.flags},xn.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")},xn.checkLocalExport=function(e){-1===this.scopeStack[0].lexical.indexOf(e.name)&&-1===this.scopeStack[0].var.indexOf(e.name)&&(this.undefinedExports[e.name]=e)},xn.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},xn.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(259&t.flags)return t}},xn.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 Cn=function(e,t,n){this.type="",this.start=t,this.end=0,e.options.locations&&(this.loc=new zt(e,n)),e.options.directSourceFile&&(this.sourceFile=e.options.directSourceFile),e.options.ranges&&(this.range=[t,0])},kn=Yt.prototype;function Sn(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}kn.startNode=function(){return new Cn(this,this.start,this.startLoc)},kn.startNodeAt=function(e,t){return new Cn(this,e,t)},kn.finishNode=function(e,t){return Sn.call(this,e,t,this.lastTokEnd,this.lastTokEndLoc)},kn.finishNodeAt=function(e,t,n,r){return Sn.call(this,e,t,n,r)},kn.copyNode=function(e){var t=new Cn(this,e.start,this.startLoc);for(var n in e)t[n]=e[n];return t};var Pn="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=Pn+" Extended_Pictographic",An=En+" EBase EComp EMod EPres ExtPict",Tn={9:Pn,10:En,11:En,12:An,13:An,14:An},$n={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"},Rn="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",In="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",qn=In+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",Ln=qn+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",Mn=Ln+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",On=Mn+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",Nn={9:In,10:qn,11:Ln,12:Mn,13:On,14:On+" Hrkt Katakana_Or_Hiragana Kawi Nag_Mundari Nagm Unknown Zzzz"},Dn={};function jn(e){var t=Dn[e]={binary:Ft(Tn[e]+" "+Rn),binaryOfStrings:Ft($n[e]),nonBinary:{General_Category:Ft(Rn),Script:Ft(Nn[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 Bn=0,Fn=[9,10,11,12,13,14];Bn<Fn.length;Bn+=1){jn(Fn[Bn])}var Vn=Yt.prototype,Hn=function(e,t){this.parent=e,this.base=t||this};Hn.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},Hn.prototype.sibling=function(){return new Hn(this.parent,this.base)};var Un=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 zn(e){return 36===e||e>=40&&e<=43||46===e||63===e||e>=91&&e<=94||e>=123&&e<=125}function Wn(e){return e>=65&&e<=90||e>=97&&e<=122}Un.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)},Un.prototype.raise=function(e){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+e)},Un.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},Un.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},Un.prototype.current=function(e){return void 0===e&&(e=!1),this.at(this.pos,e)},Un.prototype.lookahead=function(e){return void 0===e&&(e=!1),this.at(this.nextIndex(this.pos,e),e)},Un.prototype.advance=function(e){void 0===e&&(e=!1),this.pos=this.nextIndex(this.pos,e)},Un.prototype.eat=function(e,t){return void 0===t&&(t=!1),this.current(t)===e&&(this.advance(t),!0)},Un.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},Vn.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")},Vn.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))},Vn.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")}},Vn.regexp_disjunction=function(e){var t=this.options.ecmaVersion>=16;for(t&&(e.branchID=new Hn(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")},Vn.regexp_alternative=function(e){for(;e.pos<e.source.length&&this.regexp_eatTerm(e););},Vn.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)},Vn.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},Vn.regexp_eatQuantifier=function(e,t){return void 0===t&&(t=!1),!!this.regexp_eatQuantifierPrefix(e,t)&&(e.eat(63),!0)},Vn.regexp_eatQuantifierPrefix=function(e,t){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,t)},Vn.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},Vn.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)},Vn.regexp_eatReverseSolidusAtomEscape=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatAtomEscape(e))return!0;e.pos=t}return!1},Vn.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},Vn.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},Vn.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)},Vn.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise("Nothing to repeat"),!1},Vn.regexp_eatSyntaxCharacter=function(e){var t=e.current();return!!zn(t)&&(e.lastIntValue=t,e.advance(),!0)},Vn.regexp_eatPatternCharacters=function(e){for(var t=e.pos,n=0;-1!==(n=e.current())&&!zn(n);)e.advance();return e.pos!==t},Vn.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)},Vn.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}},Vn.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},Vn.regexp_eatRegExpIdentifierName=function(e){if(e.lastStringValue="",this.regexp_eatRegExpIdentifierStart(e)){for(e.lastStringValue+=Vt(e.lastIntValue);this.regexp_eatRegExpIdentifierPart(e);)e.lastStringValue+=Vt(e.lastIntValue);return!0}return!1},Vn.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 _t(e,!0)||36===e||95===e}(r)?(e.lastIntValue=r,!0):(e.pos=t,!1)},Vn.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 xt(e,!0)||36===e||95===e||8204===e||8205===e}(r)?(e.lastIntValue=r,!0):(e.pos=t,!1)},Vn.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)},Vn.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},Vn.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},Vn.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)},Vn.regexp_eatCControlLetter=function(e){var t=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=t}return!1},Vn.regexp_eatZero=function(e){return 48===e.current()&&!Xn(e.lookahead())&&(e.lastIntValue=0,e.advance(),!0)},Vn.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)},Vn.regexp_eatControlLetter=function(e){var t=e.current();return!!Wn(t)&&(e.lastIntValue=t%32,e.advance(),!0)},Vn.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},Vn.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)},Vn.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 Gn(e){return Wn(e)||95===e}function Kn(e){return Gn(e)||Xn(e)}function Xn(e){return e>=48&&e<=57}function Jn(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function Qn(e){return e>=65&&e<=70?e-65+10:e>=97&&e<=102?e-97+10:e-48}function Yn(e){return e>=48&&e<=55}Vn.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},Vn.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},Vn.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")},Vn.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")},Vn.regexp_eatUnicodePropertyName=function(e){var t=0;for(e.lastStringValue="";Gn(t=e.current());)e.lastStringValue+=Vt(t),e.advance();return""!==e.lastStringValue},Vn.regexp_eatUnicodePropertyValue=function(e){var t=0;for(e.lastStringValue="";Kn(t=e.current());)e.lastStringValue+=Vt(t),e.advance();return""!==e.lastStringValue},Vn.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)},Vn.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},Vn.regexp_classContents=function(e){return 93===e.current()?1:e.switchV?this.regexp_classSetExpression(e):(this.regexp_nonEmptyClassRanges(e),1)},Vn.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")}}},Vn.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||Yn(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)},Vn.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)},Vn.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)}},Vn.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},Vn.regexp_eatClassSetOperand=function(e){return this.regexp_eatClassSetCharacter(e)?1:this.regexp_eatClassStringDisjunction(e)||this.regexp_eatNestedClass(e)},Vn.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},Vn.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},Vn.regexp_classStringDisjunctionContents=function(e){for(var t=this.regexp_classString(e);e.eat(124);)2===this.regexp_classString(e)&&(t=2);return t},Vn.regexp_classString=function(e){for(var t=0;this.regexp_eatClassSetCharacter(e);)t++;return 1===t?1:2},Vn.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))},Vn.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)},Vn.regexp_eatClassControlLetter=function(e){var t=e.current();return!(!Xn(t)&&95!==t)&&(e.lastIntValue=t%32,e.advance(),!0)},Vn.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},Vn.regexp_eatDecimalDigits=function(e){var t=e.pos,n=0;for(e.lastIntValue=0;Xn(n=e.current());)e.lastIntValue=10*e.lastIntValue+(n-48),e.advance();return e.pos!==t},Vn.regexp_eatHexDigits=function(e){var t=e.pos,n=0;for(e.lastIntValue=0;Jn(n=e.current());)e.lastIntValue=16*e.lastIntValue+Qn(n),e.advance();return e.pos!==t},Vn.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},Vn.regexp_eatOctalDigit=function(e){var t=e.current();return Yn(t)?(e.lastIntValue=t-48,e.advance(),!0):(e.lastIntValue=0,!1)},Vn.regexp_eatFixedHexDigits=function(e,t){var n=e.pos;e.lastIntValue=0;for(var r=0;r<t;++r){var s=e.current();if(!Jn(s))return e.pos=n,!1;e.lastIntValue=16*e.lastIntValue+Qn(s),e.advance()}return!0};var Zn=function(e){this.type=e.type,this.value=e.value,this.start=e.start,this.end=e.end,e.options.locations&&(this.loc=new zt(e,e.startLoc,e.endLoc)),e.options.ranges&&(this.range=[e.start,e.end])},er=Yt.prototype;function tr(e){return"function"!=typeof BigInt?null:BigInt(e.replace(/_/g,""))}er.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 Zn(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},er.getToken=function(){return this.next(),new Zn(this)},"undefined"!=typeof Symbol&&(er[Symbol.iterator]=function(){var e=this;return{next:function(){var t=e.getToken();return{done:t.type===At.eof,value:t}}}}),er.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(At.eof):e.override?e.override(this):void this.readToken(this.fullCharCodeAtPos())},er.readToken=function(e){return _t(e,this.options.ecmaVersion>=6)||92===e?this.readWord():this.getTokenFromCode(e)},er.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},er.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())},er.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&&!Rt(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())},er.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&&qt.test(String.fromCharCode(e))))break e;++this.pos}}},er.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)},er.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(At.ellipsis)):(++this.pos,this.finishToken(At.dot))},er.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):61===e?this.finishOp(At.assign,2):this.finishOp(At.slash,1)},er.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1),n=1,r=42===e?At.star:At.modulo;return this.options.ecmaVersion>=7&&42===e&&42===t&&(++n,r=At.starstar,t=this.input.charCodeAt(this.pos+2)),61===t?this.finishOp(At.assign,n+1):this.finishOp(r,n)},er.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(At.assign,3);return this.finishOp(124===e?At.logicalOR:At.logicalAND,2)}return 61===t?this.finishOp(At.assign,2):this.finishOp(124===e?At.bitwiseOR:At.bitwiseAND,1)},er.readToken_caret=function(){return 61===this.input.charCodeAt(this.pos+1)?this.finishOp(At.assign,2):this.finishOp(At.bitwiseXOR,1)},er.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&&!Tt.test(this.input.slice(this.lastTokEnd,this.pos))?this.finishOp(At.incDec,2):(this.skipLineComment(3),this.skipSpace(),this.nextToken()):61===t?this.finishOp(At.assign,2):this.finishOp(At.plusMin,1)},er.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(At.assign,n+1):this.finishOp(At.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(At.relational,n)):(this.skipLineComment(4),this.skipSpace(),this.nextToken())},er.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);return 61===t?this.finishOp(At.equality,61===this.input.charCodeAt(this.pos+2)?3:2):61===e&&62===t&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(At.arrow)):this.finishOp(61===e?At.eq:At.prefix,1)},er.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(At.questionDot,2)}if(63===t){if(e>=12)if(61===this.input.charCodeAt(this.pos+2))return this.finishOp(At.assign,3);return this.finishOp(At.coalesce,2)}}return this.finishOp(At.question,1)},er.readToken_numberSign=function(){var e=35;if(this.options.ecmaVersion>=13&&(++this.pos,_t(e=this.fullCharCodeAtPos(),!0)||92===e))return this.finishToken(At.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+Vt(e)+"'")},er.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(At.parenL);case 41:return++this.pos,this.finishToken(At.parenR);case 59:return++this.pos,this.finishToken(At.semi);case 44:return++this.pos,this.finishToken(At.comma);case 91:return++this.pos,this.finishToken(At.bracketL);case 93:return++this.pos,this.finishToken(At.bracketR);case 123:return++this.pos,this.finishToken(At.braceL);case 125:return++this.pos,this.finishToken(At.braceR);case 58:return++this.pos,this.finishToken(At.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(At.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(At.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+Vt(e)+"'")},er.finishOp=function(e,t){var n=this.input.slice(this.pos,this.pos+t);return this.pos+=t,this.finishToken(e,n)},er.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(Tt.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 Un(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(At.regexp,{pattern:s,flags:i,value:l})},er.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 p=this.input.charCodeAt(this.pos),u=void 0;if(r&&95===p)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=p;else{if((u=p>=97?p-97+10:p>=65?p-65+10:p>=48&&p<=57?p-48:1/0)>=e)break;o=p,i=i*e+u}}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},er.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=tr(this.input.slice(t,this.pos)),++this.pos):_t(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(At.num,n)},er.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=tr(this.input.slice(t,this.pos));return++this.pos,_t(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(At.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")),_t(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(At.num,i)},er.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},er.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)):(Rt(r)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return t+=this.input.slice(n,this.pos++),this.finishToken(At.string,t)};var nr={};er.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e!==nr)throw e;this.readInvalidTemplateToken()}this.inTemplateElement=!1},er.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw nr;this.raise(e,t)},er.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!==At.template&&this.type!==At.invalidTemplate?(e+=this.input.slice(t,this.pos),this.finishToken(At.template,e)):36===n?(this.pos+=2,this.finishToken(At.dollarBraceL)):(++this.pos,this.finishToken(At.backQuote));if(92===n)e+=this.input.slice(t,this.pos),e+=this.readEscapedChar(!0),t=this.pos;else if(Rt(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}},er.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(At.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")},er.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 Vt(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 Rt(t)?(this.options.locations&&(this.lineStart=this.pos,++this.curLine),""):String.fromCharCode(t)}},er.readHexChar=function(e){var t=this.pos,n=this.readInt(16,e);return null===n&&this.invalidStringToken(t,"Bad character escape sequence"),n},er.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(xt(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?_t:xt)(i,r)||this.invalidStringToken(a,"Invalid Unicode escape"),e+=Vt(i),n=this.pos}t=!1}return e+this.input.slice(n,this.pos)},er.readWord=function(){var e=this.readWord1(),t=At.name;return this.keywords.test(e)&&(t=Pt[e]),this.finishToken(t,e)};var rr="8.12.1";Yt.acorn={Parser:Yt,version:rr,defaultOptions:Gt,Position:Ut,SourceLocation:zt,getLineInfo:Wt,Node:Cn,TokenType:wt,tokTypes:At,keywordTypes:Pt,TokContext:hn,tokContexts:mn,isIdentifierChar:xt,isIdentifierStart:_t,Token:Zn,isNewLine:Rt,lineBreak:Tt,lineBreakG:$t,nonASCIIwhitespace:qt};var sr=Object.freeze({__proto__:null,Node:Cn,Parser:Yt,Position:Ut,SourceLocation:zt,TokContext:hn,Token:Zn,TokenType:wt,defaultOptions:Gt,getLineInfo:Wt,isIdentifierChar:xt,isIdentifierStart:_t,isNewLine:Rt,keywordTypes:Pt,lineBreak:Tt,lineBreakG:$t,nonASCIIwhitespace:qt,parse:function(e,t){return Yt.parse(e,t)},parseExpressionAt:function(e,t,n){return Yt.parseExpressionAt(e,t,n)},tokContexts:mn,tokTypes:At,tokenizer:function(e,t){return Yt.tokenizer(e,t)},version:rr});function ar(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 ir(){return ir=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},ir.apply(this,arguments)}function or(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,lr(e,t)}function lr(e,t){return lr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},lr(e,t)}function cr(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 pr(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 cr(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)?cr(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 ur=!0;function dr(e,t){return void 0===t&&(t={}),new wt("name",t)}var hr=new WeakMap;function mr(e){var t=hr.get(e.Parser.acorn||e);if(!t){var n={assert:dr(0,{startsExpr:ur}),asserts:dr(0,{startsExpr:ur}),global:dr(0,{startsExpr:ur}),keyof:dr(0,{startsExpr:ur}),readonly:dr(0,{startsExpr:ur}),unique:dr(0,{startsExpr:ur}),abstract:dr(0,{startsExpr:ur}),declare:dr(0,{startsExpr:ur}),enum:dr(0,{startsExpr:ur}),module:dr(0,{startsExpr:ur}),namespace:dr(0,{startsExpr:ur}),interface:dr(0,{startsExpr:ur}),type:dr(0,{startsExpr:ur})},r={at:new wt("@"),jsxName:new wt("jsxName"),jsxText:new wt("jsxText",{beforeExpr:!0}),jsxTagStart:new wt("jsxTagStart",{startsExpr:!0}),jsxTagEnd:new wt("jsxTagEnd")},s={tc_oTag:new hn("<tag",!1,!1),tc_cTag:new hn("</tag",!1,!1),tc_expr:new hn("<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===At.slash||t===s.tc_cTag?(this.context.pop(),this.exprAllowed=this.curContext()===s.tc_expr):this.exprAllowed=!0},t={tokTypes:ir({},n,r),tokContexts:ir({},s),keywordsRegExp:a,tokenIsLiteralPropertyName:function(e){return[At.name,At.string,At.num].concat(Object.values(Pt),Object.values(n)).includes(e)},tokenIsKeywordOrIdentifier:function(e){return[At.name].concat(Object.values(Pt),Object.values(n)).includes(e)},tokenIsIdentifier:function(e){return[].concat(Object.values(n),[At.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===At.invalidTemplate}}}return t}var fr=1024,yr=new RegExp("(?:[^\\S\\n\\r\\u2028\\u2029]|\\/\\/.*|\\/\\*.*?\\*\\/)*","y"),vr=new RegExp("(?=("+yr.source+"))\\1"+/(?=[\n\r\u2028\u2029]|\/\*(?!.*?\*\/)|$)/.source,"y"),gr=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 br(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 _r(e,t){var n=e.key;return!e.computed&&("Identifier"===n.type&&n.name===t||"Literal"===n.type&&n.value===t)}var xr={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."},wr={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:"♦"},Cr=/^[\da-fA-F]+$/,kr=/^\d+$/;function Sr(e){return e?"JSXIdentifier"===e.type?e.name:"JSXNamespacedName"===e.type?e.namespace.name+":"+e.name.name:"JSXMemberExpression"===e.type?Sr(e.object)+"."+Sr(e.property):void 0:e}var Pr=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g;function Er(e){if(!e)throw new Error("Assert fail")}function Ar(e){return"accessor"===e}function Tr(e){return"in"===e||"out"===e}function $r(e,t){return 2|(e?4:0)|(t?8:0)}function Rr(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 qr(e){return"private"===e||"public"===e||"protected"===e}const Lr=Yt.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||sr,s=mr(n),i=n.tokTypes,o=n.keywordTypes,l=n.isIdentifierStart,c=n.lineBreak,p=n.isNewLine,u=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,_=s.tokenIsKeywordOrIdentifier,x=s.tokenIsTSTypeOperator;function w(e,t,n){void 0===n&&(n=e.length);for(var r=t;r<n;r++){var s=e.charCodeAt(r);if(p(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}or(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}or(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),Cr.test(t)&&(e=String.fromCharCode(parseInt(t,16)))):(t=t.substr(1),kr.test(t)&&(e=String.fromCharCode(parseInt(t,10)))):e=wr[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()}Sr(o.name)!==Sr(i.name)&&this.raise(o.start,"Expected corresponding JSX closing tag for <"+Sr(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}or(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 C=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:xr.InvalidModifierOnTypeParameterPositions}),s}or(t,e);var C,k,S,P=t.prototype;return P.getTokenFromCodeInType=function(t){return 62===t||60===t?this.finishOp(i.relational,1):e.prototype.getTokenFromCode.call(this,t)},P.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)},P.getTokenFromCode=function(t){return this.inType?this.getTokenFromCodeInType(t):64===t?(++this.pos,this.finishToken(h.at)):e.prototype.getTokenFromCode.call(this,t)},P.isAbstractClass=function(){return this.ts_isContextual(h.abstract)&&this.lookahead().type===i._class},P.finishNode=function(t,n){return""!==t.type&&0!==t.end?t:e.prototype.finishNode.call(this,t,n)},P.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}},P.setOptionalParametersError=function(e,t){var n;e.optionalParametersLoc=null!=(n=null==t?void 0:t.loc)?n:this.startLoc},P.reScan_lt_gt=function(){this.type===i.relational&&(this.pos-=1,this.readToken_lt_gt(this.fullCharCodeAtPos()))},P.reScan_lt=function(){var e=this.type;return e===i.bitShift?(this.pos-=2,this.finishOp(i.relational,1),i.relational):e},P.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)},P.startNodeAtNode=function(t){return e.prototype.startNodeAt.call(this,t.start,t.loc.start)},P.nextTokenStart=function(){return this.nextTokenStartSince(this.pos)},P.tsHasSomeModifiers=function(e,t){return t.some((function(t){return qr(t)?e.accessibility===t:!!e[t]}))},P.tsIsStartOfStaticBlocks=function(){return this.isContextual("static")&&123===this.lookaheadCharCode()},P.tsCheckForInvalidTypeCasts=function(e){var t=this;e.forEach((function(e){"TSTypeCastExpression"===(null==e?void 0:e.type)&&t.raise(e.typeAnnotation.start,xr.UnexpectedTypeAnnotation)}))},P.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},P.tsIsIdentifier=function(){return b(this.type)},P.tsTryParseTypeOrTypePredicateAnnotation=function(){return this.match(i.colon)?this.tsParseTypeOrTypePredicateAnnotation(i.colon):void 0},P.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)}},P.tsParseTypeArgumentsInExpression=function(){if(this.reScan_lt()===i.relational)return this.tsParseTypeArguments()},P.tsInNoContext=function(e){var t=this.context;this.context=[t[0]];try{return e()}finally{this.context=t}},P.tsTryParseTypeAnnotation=function(){return this.match(i.colon)?this.tsParseTypeAnnotation():void 0},P.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},P.isAbstractConstructorSignature=function(){return this.ts_isContextual(h.abstract)&&this.lookahead().type===i._new},P.nextTokenStartSince=function(e){return Pr.lastIndex=e,Pr.test(this.input)?Pr.lastIndex:e},P.lookaheadCharCode=function(){return this.input.charCodeAt(this.nextTokenStart())},P.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},P.createLookaheadState=function(){this.value=null,this.context=[this.curContext()]},P.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}},P.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}},P.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},P.tsLookAhead=function(e){var t=this.getCurLookaheadState(),n=e();return this.setLookaheadState(t),n},P.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},P.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)},P.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=w(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())},P.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&&!p(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())},P.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)},P.resetStartLocation=function(e,t,n){e.start=t,e.loc.start=n,this.options.ranges&&(e.range[0]=t)},P.isLineTerminator=function(){return this.eat(i.semi)||e.prototype.canInsertSemicolon.call(this)},P.hasFollowingLineBreak=function(){return vr.lastIndex=this.end,vr.test(this.input)},P.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})}},P.isLiteralPropertyName=function(){return y(this.type)},P.hasPrecedingLineBreak=function(){return c.test(this.input.slice(this.lastTokEndLoc.index,this.start))},P.createIdentifier=function(e,t){return e.name=t,this.finishNode(e,"Identifier")},P.resetStartLocationFromNode=function(e,t){this.resetStartLocation(e,t.start,t.loc.start)},P.isThisParam=function(e){return"Identifier"===e.type&&"this"===e.name},P.isLookaheadContextual=function(e){var t=this.nextTokenStart();return this.isUnparsedContextual(t,e)},P.ts_type_isContextual=function(e,t){return e===t&&!this.containsEsc},P.ts_isContextual=function(e){return this.type===e&&!this.containsEsc},P.ts_isContextualWithState=function(e,t){return e.type===t&&!e.containsEsc},P.isContextualWithState=function(e,t){return t.type===i.name&&t.value===e&&!t.containsEsc},P.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))))},P.tsInDisallowConditionalTypesContext=function(e){var t=this.inDisallowConditionalTypesContext;this.inDisallowConditionalTypesContext=!0;try{return e()}finally{this.inDisallowConditionalTypesContext=t}},P.tsTryParseType=function(){return this.tsEatThenParseType(i.colon)},P.match=function(e){return this.type===e},P.matchJsx=function(e){return this.type===s.tokTypes[e]},P.ts_eatWithState=function(e,t,n){if(e===n.type){for(var r=0;r<t;r++)this.next();return!0}return!1},P.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},P.canHaveLeadingDecorator=function(){return this.match(i._class)},P.eatContextual=function(t){return f.test(t)?!!this.ts_isContextual(h[t])&&(this.next(),!0):e.prototype.eatContextual.call(this,t)},P.tsIsExternalModuleReference=function(){return this.isContextual("require")&&40===this.lookaheadCharCode()},P.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")},P.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},P.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")},P.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")},P.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")},P.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,fr),t.body=this.tsParseModuleBlock(),e.prototype.exitScope.call(this)):e.prototype.semicolon.call(this),this.finishNode(t,"TSModuleDeclaration")},P.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}))}},P.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()}},P.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},P.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))},P.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},P.tsParseTypeParameterName=function(){return this.parseIdent().name},P.tsEatThenParseType=function(e){return this.match(e)?this.tsNextThenParseType():void 0},P.tsExpectThenParseType=function(e){var t=this;return this.tsDoThenParseType((function(){return t.expect(e)}))},P.tsNextThenParseType=function(){var e=this;return this.tsDoThenParseType((function(){return e.next()}))},P.tsDoThenParseType=function(e){var t=this;return this.tsInType((function(){return e(),t.tsParseType()}))},P.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},P.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},P.tsIsStartOfFunctionType=function(){return!!this.tsMatchLeftRelational()||this.match(i.parenL)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))},P.tsInAllowConditionalTypesContext=function(e){var t=this.inDisallowConditionalTypesContext;this.inDisallowConditionalTypesContext=!1;try{return e()}finally{this.inDisallowConditionalTypesContext=t}},P.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,xr.UnsupportedSignatureParameterKind(e.type)),e}))},P.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))},P.tsParseThisTypeNode=function(){var e=this.startNode();return this.next(),this.finishNode(e,"TSThisType")},P.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")},P.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")},P.tsParseThisTypeOrThisTypePredicate=function(){var e=this.tsParseThisTypeNode();return this.isContextual("is")&&!this.hasPrecedingLineBreak()?this.tsParseThisTypePredicate(e):e},P.tsParseTypePredicatePrefix=function(){var e=this.parseIdent();if(this.isContextual("is")&&!this.hasPrecedingLineBreak())return this.next(),e},P.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")}))},P.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))},P.tsTryNextParseConstantContext=function(){if(this.lookahead().type!==i._const)return null;this.next();var e=this.tsParseTypeReference();return e.typeParameters&&this.raise(e.typeName.start,xr.CannotFindName({name:"const"})),e},P.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)},P.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]},P.tsCheckTypeAnnotationForReadOnly=function(e){switch(e.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(e.start,xr.UnexpectedReadonly)}},P.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")},P.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}},P.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")},P.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")},P.tsParseImportType=function(){var e=this.startNode();return this.expect(i._import),this.expect(i.parenL),this.match(i.string)||this.raise(this.start,xr.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")},P.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")},P.tsParseMappedTypeParameter=function(){var e=this.startNode();return e.name=this.tsParseTypeParameterName(),e.constraint=this.tsExpectThenParseType(i._in),this.finishNode(e,"TSTypeParameter")},P.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")},P.tsParseTypeLiteral=function(){var e=this.startNode();return e.members=this.tsParseObjectTypeMembers(),this.finishNode(e,"TSTypeLiteral")},P.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,xr.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},P.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,xr.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,xr.MixedLabeledAndUnlabeledElements)})),this.finishNode(t,"TSTupleType")},P.tsParseTemplateLiteralType=function(){var e=this.startNode();return e.literal=this.parseTemplate({isTagged:!1}),this.finishNode(e,"TSLiteralType")},P.tsParseTypeReference=function(){var e=this.startNode();return e.typeName=this.tsParseEntityName(),!this.hasPrecedingLineBreak()&&this.tsMatchLeftRelational()&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSTypeReference")},P.tsMatchLeftRelational=function(){return this.match(i.relational)&&"<"===this.value},P.tsMatchRightRelational=function(){return this.match(i.relational)&&">"===this.value},P.tsParseParenthesizedType=function(){var e=this.startNode();return this.expect(i.parenL),e.typeAnnotation=this.tsParseType(),this.expect(i.parenR),this.finishNode(e,"TSParenthesizedType")},P.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()},P.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},P.tsParseTypeOperatorOrHigher=function(){var e=this;return x(this.type)&&!this.containsEsc?this.tsParseTypeOperator():this.isContextual("infer")?this.tsParseInferType():this.tsInAllowConditionalTypesContext((function(){return e.tsParseArrayTypeOrHigher()}))},P.tsParseIntersectionTypeOrHigher=function(){return this.tsParseUnionOrIntersectionType("TSIntersectionType",this.tsParseTypeOperatorOrHigher.bind(this),i.bitwiseAND)},P.tsParseUnionTypeOrHigher=function(){return this.tsParseUnionOrIntersectionType("TSUnionType",this.tsParseIntersectionTypeOrHigher.bind(this),i.bitwiseOR)},P.tsParseNonConditionalType=function(){return this.tsIsStartOfFunctionType()?this.tsParseFunctionOrConstructorType("TSFunctionType"):this.match(i._new)?this.tsParseFunctionOrConstructorType("TSConstructorType"):this.isAbstractConstructorSignature()?this.tsParseFunctionOrConstructorType("TSConstructorType",!0):this.tsParseUnionTypeOrHigher()},P.tsParseType=function(){var e=this;Er(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")},P.tsIsUnambiguouslyIndexSignature=function(){return this.next(),!!b(this.type)&&(this.next(),this.match(i.colon))},P.tsInType=function(e){var t=this.inType;this.inType=!0;try{return e()}finally{this.inType=t}},P.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")}},P.tsParseNoneModifiers=function(e){this.tsParseModifiers({modified:e,allowedModifiers:[],disallowedModifiers:["in","out"],errorTemplate:xr.InvalidModifierOnTypeParameterPositions})},P.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")},P.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,xr.EmptyTypeParameters),-1!==n.value&&this.addExtra(t,"trailingComma",n.value),this.finishNode(t,"TSTypeParameterDeclaration")},P.tsTryParseTypeParameters=function(e){if(this.tsMatchLeftRelational())return this.tsParseTypeParameters(e)},P.tsTryParse=function(e){var t=this.getCurLookaheadState(),n=e();return void 0!==n&&!1!==n?n:void this.setLookaheadState(t)},P.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()},P.tsNextTokenCanFollowModifier=function(){return this.next(!0),this.tsTokenCanFollowModifier()},P.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}}},P.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]}},P.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?xr.InvalidModifierOnTypeMember:i,l={},c=function(e,r,s,a){r===s&&n[a]&&t.raise(e.column,xr.InvalidModifiersOrder({orderedModifiers:[s,a]}))},p=function(e,r,s,a){(n[s]&&r===a||n[a]&&r===s)&&t.raise(e.column,xr.IncompatibleModifiers({modifiers:[s,a]}))};;){var u=this.startLoc,d=this.tsParseModifier(r.concat(null!=s?s:[]),a);if(!d)break;qr(d)?n.accessibility?this.raise(this.start,xr.DuplicateAccessibilityModifier()):(c(u,d,d,"override"),c(u,d,d,"static"),c(u,d,d,"readonly"),c(u,d,d,"accessor"),l.accessibility=d,n.accessibility=d):Tr(d)?n[d]?this.raise(this.start,xr.DuplicateModifier({modifier:d})):(c(u,d,"in","out"),l[d]=d,n[d]=!0):Ar(d)?n[d]?this.raise(this.start,xr.DuplicateModifier({modifier:d})):(p(u,d,"accessor","readonly"),p(u,d,"accessor","static"),p(u,d,"accessor","override"),l[d]=d,n[d]=!0):Object.hasOwnProperty.call(n,d)?this.raise(this.start,xr.DuplicateModifier({modifier:d})):(c(u,d,"static","readonly"),c(u,d,"static","override"),c(u,d,"override","readonly"),c(u,d,"abstract","override"),p(u,d,"declare","override"),p(u,d,"static","abstract"),l[d]=d,n[d]=!0),null!=s&&s.includes(d)&&this.raise(this.start,o)}return l},P.tsParseInOutModifiers=function(e){this.tsParseModifiers({modified:e,allowedModifiers:["in","out"],disallowedModifiers:["public","private","protected","readonly","declare","abstract","override"],errorTemplate:xr.InvalidModifierOnTypeParameter})},P.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,xr.EmptyTypeArguments),this.exprAllowed=!1,this.expect(i.relational),this.finishNode(t,"TSTypeParameterInstantiation")},P.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,xr.EmptyHeritageClauseType({token:e})),r},P.tsParseTypeMemberSemicolon=function(){this.eat(i.comma)||this.isLineTerminator()||this.expect(i.semi)},P.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},P.tsParseSignatureMember=function(e,t){return this.tsFillSignature(i.colon,t),this.tsParseTypeMemberSemicolon(),this.finishNode(t,e)},P.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,xr.ReadonlyForMethodSignature);var r=n;r.kind&&this.tsMatchLeftRelational()&&this.raise(this.start,xr.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,xr.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,xr.AccesorCannotDeclareThisParameter),"Identifier"===o.type&&o.optional&&this.raise(this.start,xr.SetAccesorCannotHaveOptionalParameter),"RestElement"===o.type&&this.raise(this.start,xr.SetAccesorCannotHaveRestParameter)}r[a]&&this.raise(r[a].start,xr.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")},P.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))},P.tsParseList=function(e,t){for(var n=[];!this.tsIsListTerminator(e);)n.push(t());return n},P.tsParseObjectTypeMembers=function(){this.expect(i.braceL);var e=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(i.braceR),e},P.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,xr.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")},P.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)},P.tsIsDeclarationStart=function(){return g(this.type)},P.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,fr);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)}},P.tsParseModuleReference=function(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(!1)},P.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},P.tsInAmbientContext=function(e){var t=this.isAmbientContext;this.isAmbientContext=!0;try{return e()}finally{this.isAmbientContext=t}},P.tsCheckLineTerminator=function(e){return e?!this.hasFollowingLineBreak()&&(this.next(),!0):!this.isLineTerminator()},P.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,fr),t.body=this.tsParseModuleBlock(),e.prototype.exitScope.call(this);return this.finishNode(t,"TSModuleDeclaration")},P.checkLValSimple=function(t,n,r){return void 0===n&&(n=0),e.prototype.checkLValSimple.call(this,t,n,r)},P.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")},P.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)}},P.tsTryParseExportDeclaration=function(){return this.tsParseDeclaration(this.startNode(),this.value,!0)},P.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,xr.ImportAliasHasImportType),t.moduleReference=r,e.prototype.semicolon.call(this),this.finishNode(t,"TSImportEqualsDeclaration")},P.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},P.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")},P.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($r(e.async,e.generator)),1&t||(e.id=this.type===i.name?this.parseIdent():null),this.parseFunctionParams(e);var p=1&t;return this.parseFunctionBody(e,n,!1,s,{isFunctionDeclaration:p}),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,p?"FunctionDeclaration":"FunctionExpression")},P.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,xr.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)},P.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")},P.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 p=this.tsTryNextParseConstantContext();return c.typeAnnotation=p||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)},P.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},P.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,xr.TypeImportCannotSpecifyDefaultAndNamed),e},P.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)},P.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")},P.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")},P.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=pr(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")},P.checkExport=function(e,t,n){e&&("string"!=typeof t&&(t="Identifier"===t.type?t.name:t.value),e[t]=!0)},P.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,xr.TypeAnnotationAfterAssign),s},P.typeCastToParameter=function(e){return e.expression.typeAnnotation=e.typeAnnotation,this.resetEndLocation(e.expression,e.typeAnnotation.end),e.expression},P.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)},P.reportReservedArrowTypeParam=function(e){},P.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(u.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)},P.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()},P.parseIdentNode=function(){var t=this.startNode();return _(this.type)?(t.name=this.value,t):e.prototype.parseIdentNode.call(this)},P.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=pr(a.declarations);!(i=o()).done;){var l=i.value,c=l.init;c&&("const"!==n||l.id.typeAnnotation?this.raise(c.start,xr.InitializerNotAllowedInAmbientContext):"StringLiteral"!==c.type&&"BooleanLiteral"!==c.type&&"NumericLiteral"!==c.type&&"BigIntLiteral"!==c.type&&("TemplateLiteral"!==c.type||c.expressions.length>0)&&!Rr(c)&&this.raise(c.start,xr.ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference))}return a},P.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)},P.parseAccessModifier=function(){return this.tsParseModifier(["public","protected","private"])},P.parsePostMemberNameModifiers=function(e){this.eat(i.question)&&(e.optional=!0),e.readonly&&this.match(i.parenL)&&this.raise(e.start,xr.ClassMethodHasReadonly),e.declare&&this.match(i.parenL)&&this.raise(e.start,xr.ClassMethodHasDeclare)},P.parseExpressionStatement=function(t,n){return("Identifier"===n.type?this.tsParseExpressionStatement(t,n):void 0)||e.prototype.parseExpressionStatement.call(this,t,n)},P.shouldParseExportStatement=function(){return!!this.tsIsDeclarationStart()||!!this.match(h.at)||e.prototype.shouldParseExportStatement.call(this)},P.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},P.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)},P.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},P.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,xr.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},P.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)}},P.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)},P.parseClassField=function(t){if("PrivateIdentifier"===t.key.type)t.abstract&&this.raise(t.start,xr.PrivateElementHasAbstract),t.accessibility&&this.raise(t.start,xr.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,xr.DeclareClassFieldHasInitializer),t.abstract&&this.match(i.eq)){var n=t.key;this.raise(this.start,xr.AbstractPropertyHasInitializer({propertyName:"Identifier"!==n.type||t.computed?"["+this.input.slice(n.start,n.end)+"]":n.name}))}return e.prototype.parseClassField.call(this,t)},P.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,xr.PrivateMethodsHasAccessibility({modifier:e.accessibility}))):i&&s&&this.raise(i.start,xr.ConstructorHasTypeParameters);var o=e.declare,l=e.kind;!(void 0!==o&&o)||"get"!==l&&"set"!==l||this.raise(e.start,xr.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&&_r(e,"prototype")&&this.raise(c.start,"Classes may not have a static property named prototype");var p=e.value=this.parseMethod(t,n,r,!0,e);return"get"===e.kind&&0!==p.params.length&&this.raiseRecoverable(p.start,"getter should have no params"),"set"===e.kind&&1!==p.params.length&&this.raiseRecoverable(p.start,"setter should have exactly one param"),"set"===e.kind&&"RestElement"===p.params[0].type&&this.raiseRecoverable(p.params[0].start,"Setter cannot use rest params"),this.finishNode(e,"MethodDefinition")},P.isClassMethod=function(){return this.match(i.relational)},P.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,p="method",u=["declare","private","public","protected","accessor","override","abstract","readonly","static"],d=this.tsParseModifiers({modified:a,allowedModifiers:u,disallowedModifiers:["in","out"],stopOnStartOfClassStaticBlock:!0,errorTemplate:xr.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,xr.IndexSignatureHasAbstract),a.accessibility&&n.raise(a.start,xr.IndexSignatureHasAccessibility({modifier:a.accessibility})),a.declare&&n.raise(a.start,xr.IndexSignatureHasDeclare),a.override&&n.raise(a.start,xr.IndexSignatureHasOverride),d;if(!n.inAbstractClass&&a.abstract&&n.raise(a.start,xr.NonAbstractClassHasAbstractMethod),a.override&&t&&n.raise(a.start,xr.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()?p=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"!==p||l||c){var m=!a.static&&_r(a,"constructor"),f=m&&t;m&&"method"!==p&&n.raise(a.key.start,"Constructor can't have get/set modifier"),a.kind=m?"constructor":p,n.parseClassMethod(a,l,c,f)}else n.parseClassField(a);return a}if(n.next(),n.next(),n.tsHasSomeModifiers(a,u)&&n.raise(n.start,xr.StaticBlockCannotHaveModifier),s>=13)return e.prototype.parseClassStaticBlock.call(n,a),a};return a.declare?this.tsInAmbientContext(h):h(),a},P.isClassElementNameStart=function(){return!!this.tsIsIdentifier()||e.prototype.isClassElementNameStart.call(this)},P.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"))},P.parseFunctionParams=function(t){var n=this.tsTryParseTypeParameters();n&&(t.typeParameters=n),e.prototype.parseFunctionParams.call(this,t)},P.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))},P.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|$r(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")},P.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 gr,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 p=this.parseMaybeConditional(e,t);if(n&&(p=n.call(this,p,l,c)),this.type.isAssign){var u=this.startNodeAt(l,c);return u.operator=this.value,this.type===i.eq&&(p=this.toAssignable(p,!0,t)),r||(t.parenthesizedAssign=t.trailingComma=t.doubleProto=-1),t.shorthandAssign>=p.start&&(t.shorthandAssign=-1),this.type===i.eq?this.checkLValPattern(p):this.checkLValSimple(p),u.left=p,this.next(),u.right=this.parseMaybeAssign(e),o>-1&&(t.doubleProto=o),this.finishNode(u,"AssignmentExpression")}return r&&this.checkExpressionErrors(t,!0),s>-1&&(t.parenthesizedAssign=s),a>-1&&(t.trailingComma=a),p},P.parseMaybeAssign=function(e,t,n){var r,a,i,o,l,c,p,u,d,h,m,f=this;if(this.matchJsx("jsxTagStart")||this.tsMatchLeftRelational()){if(u=this.cloneCurLookaheadState(),!(d=this.tryParse((function(){return f.parseMaybeAssignOrigin(e,t,n)}),u)).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);u&&!this.compareLookaheadState(u,this.getCurLookaheadState())||(u=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}),u);if(!g.error&&!g.aborted)return m&&this.reportReservedArrowTypeParam(m),g.node;if(!d&&(Er(!0),!(h=this.tryParse((function(){return f.parseMaybeAssignOrigin(e,t,n)}),u)).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==(p=h)?void 0:p.error)},P.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,xr.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 p=this.startNodeAt(r,s);return n&&(p.accessibility=n),a&&(p.readonly=a),i&&(p.override=i),"Identifier"!==c.type&&"AssignmentPattern"!==c.type&&this.raise(p.start,xr.UnsupportedParameterPropertyKind),p.parameter=c,this.finishNode(p,"TSParameterProperty")}return c},P.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)},P.parseBindingListItem=function(e){this.eat(i.question)&&("Identifier"===e.type||this.isAmbientContext||this.inType||this.raise(e.start,xr.PatternIsOptional),e.optional=!0);var t=this.tsTryParseTypeAnnotation();return t&&(e.typeAnnotation=t),this.resetEndLocation(e),e},P.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}},P.toAssignable=function(t,n,r){switch(void 0===n&&(n=!1),void 0===r&&(r=new gr),t.type){case"ParenthesizedExpression":return this.toAssignableParenthesizedExpression(t,n,r);case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":return n||this.raise(t.start,xr.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},P.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)}},P.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}},P.parseBindingAtom=function(){return this.type===i._this?this.parseIdent(!0):e.prototype.parseBindingAtom.call(this)},P.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},P.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)},P.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,p=this.startLoc,u=[],d=!0,h=!1,m=new gr,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,u.push(this.parseParenItem(this.parseRestBinding())),this.type===i.comma&&this.raise(this.start,"Comma is not permitted after the rest element");break}u.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(u)&&this.eat(i.arrow))return this.checkPatternErrors(m,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=f,this.awaitPos=y,this.parseParenArrowList(r,s,u,t);u.length&&!h||this.unexpected(this.lastTokStart),l&&this.unexpected(l),this.checkExpressionErrors(m,!0),this.yieldPos=f||this.yieldPos,this.awaitPos=y||this.awaitPos,u.length>1?((n=this.startNodeAt(c,p)).expressions=u,this.finishNodeAt(n,"SequenceExpression",v,g)):n=u[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},P.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")},P.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))},P.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)},P.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},P.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 p=this.startNodeAt(t,n);return p.expression=e,e=this.finishNode(p,"TSNonNullExpression")}var u=!1;if(this.match(i.questionDot)&&60===this.lookaheadCharCode()){if(r)return e;e.optional=!0,c=u=!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(u&&!l.match(i.parenL))return d=l.curPosition(),e;if(v(l.type)||l.type===i.backQuote){var p=l.parseTaggedTemplateExpression(e,t,n,c);return p.typeParameters=a,p}if(!r&&l.eat(i.parenL)){var h=new gr,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=u),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,xr.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 _=new gr,x=this.yieldPos,w=this.awaitPos,C=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var k=this.parseExprList(i.parenR,this.options.ecmaVersion>=8,!1,_);if(s&&!f&&this.shouldParseAsyncArrow())this.checkPatternErrors(_,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=x,this.awaitPos=w,this.awaitIdentPos=C,e=this.parseSubscriptAsyncArrow(t,n,k,o);else{this.checkExpressionErrors(_,!0),this.yieldPos=x||this.yieldPos,this.awaitPos=w||this.awaitPos,this.awaitIdentPos=C||this.awaitIdentPos;var S=this.startNodeAt(t,n);S.callee=e,S.arguments=k,m&&(S.optional=f),e=this.finishNode(S,"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 P=this.startNodeAt(t,n);P.tag=e,P.quasi=this.parseTemplate({isTagged:!0}),e=this.finishNode(P,"TaggedTemplateExpression")}return e},P.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")},P.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)},P.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},P.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&&br(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}},P.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},P.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|$r(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 p=s.key;this.raise(s.start,xr.AbstractMethodHasImplementation({methodName:"Identifier"!==p.type||s.computed?"["+this.input.slice(p.start,p.end)+"]":p.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()},P.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},P.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},P.parseTypeOnlyImportExportSpecifier=function(t,n,r){var s,a=n?"imported":"local",i=n?"local":"exported",o=t[a],l=!1,c=!0,p=o.start;if(this.isContextual("as")){var u=this.parseIdent();if(this.isContextual("as")){var d=this.parseIdent();_(this.type)?(l=!0,o=u,s=n?this.parseIdent():this.parseModuleExportName(),c=!1):(s=d,c=!1)}else _(this.type)?(c=!1,s=n?this.parseIdent():this.parseModuleExportName()):(l=!0,o=u)}else _(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(p,n?xr.TypeModifierIsUsedInTypeImports:xr.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)},P.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)},P.raiseRecoverable=function(e,t){return this.raiseCommonCheck(e,t,!0)},P.raise=function(e,t){return this.raiseCommonCheck(e,t,!0)},P.updateContext=function(t){var n=this.type;if(n==i.braceL){var r=this.curContext();r==m.tc_oTag?this.context.push(u.b_expr):r==m.tc_expr?this.context.push(u.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}},P.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")},P.enterScope=function(t){t===fr&&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=[]},P.exitScope=function(){e.prototype.currentScope.call(this).flags===fr&&this.importsStack.pop(),e.prototype.exitScope.call(this)},P.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},P.maybeExportDefined=function(e,t){this.inModule&&1&e.flags&&this.undefinedExports.delete(t)},P.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)},P.checkRedeclarationInScope=function(e,t,n,r){this.isRedeclaredInScope(e,t,n)&&this.raise(r,"Identifier '"+t+"' has already been declared.")},P.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)},P.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)}},C=t,S=[{key:"acornTypeScript",get:function(){return s}}],(k=[{key:"acornTypeScript",get:function(){return s}}])&&ar(C.prototype,k),S&&ar(C,S),Object.defineProperty(C,"prototype",{writable:!1}),t}(t);return C}}({allowSatisfies:!0}));function Mr(e,t,n){const r=t?Lr:Yt,{onComment:s,add_comments:a}=Nr(e),i=r.prototype.parseStatement;let o;n&&(r.prototype.parseStatement=function(...e){const t=i.call(this,...e);return this.undefinedExports={},t});try{o=r.parse(e,{onComment:s,sourceType:"module",ecmaVersion:13,locations:!0})}finally{n&&(r.prototype.parseStatement=i)}return t&&Dr(e,o),a(o),o}function Or(e,t,n){const r=t?Lr:Yt,{onComment:s,add_comments:a}=Nr(e),i=r.parseExpressionAt(e,n,{onComment:s,sourceType:"module",ecmaVersion:13,locations:!0});return t&&Dr(e,i),a(i),i}function Nr(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=de(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()}})}class jr extends Error{message="";#e;constructor(e,t,n){super(t),this.stack="",this.#e=new xe(e,t,n),Object.assign(this,this.#e),this.name="CompileError"}toString(){return this.#e.toString()}toJSON(){return this.#e.toJSON()}}function Br(e,t,n){const r="number"==typeof e?e:e?.start;throw new jr(t,n,void 0!==r?[r,("number"==typeof e?e:e?.end)??r]:void 0)}function Fr(e,t){Br(e,"options_unrecognised",`Unrecognised compiler option ${t}\nhttps://svelte.dev/e/options_unrecognised`)}function Vr(e,t){Br(e,"constant_assignment",`Cannot assign to ${t}\nhttps://svelte.dev/e/constant_assignment`)}function Hr(e){Br(e,"declaration_duplicate_module_import","Cannot declare a variable with the same name as an import inside `<script module>`\nhttps://svelte.dev/e/declaration_duplicate_module_import")}function Ur(e){Br(e,"derived_invalid_export","Cannot export derived state from a module. To expose the current derived value, export a function returning its value\nhttps://svelte.dev/e/derived_invalid_export")}function zr(e){Br(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`)\nhttps://svelte.dev/e/each_item_invalid_assignment")}function Wr(e,t){Br(e,"export_undefined",`\`${t}\` is not defined\nhttps://svelte.dev/e/export_undefined`)}function Gr(e,t){Br(e,"global_reference_invalid",`\`${t}\` is an illegal variable name. To reference a global variable called \`${t}\`, use \`globalThis.${t}\`\nhttps://svelte.dev/e/global_reference_invalid`)}function Kr(e){Br(e,"props_illegal_name","Declaring or accessing a prop starting with `$$` is illegal (they are reserved for Svelte internals)\nhttps://svelte.dev/e/props_illegal_name")}function Xr(e){Br(e,"props_invalid_pattern","`$props()` assignment must not contain nested properties or computed keys\nhttps://svelte.dev/e/props_invalid_pattern")}function Jr(e,t){Br(e,"rune_invalid_arguments",`\`${t}\` cannot be called with arguments\nhttps://svelte.dev/e/rune_invalid_arguments`)}function Qr(e,t,n){Br(e,"rune_invalid_arguments_length",`\`${t}\` must be called with ${n}\nhttps://svelte.dev/e/rune_invalid_arguments_length`)}function Yr(e){Br(e,"rune_invalid_computed_property","Cannot access a computed property of a rune\nhttps://svelte.dev/e/rune_invalid_computed_property")}function Zr(e,t){Br(e,"rune_invalid_name",`\`${t}\` is not a valid rune\nhttps://svelte.dev/e/rune_invalid_name`)}function es(e,t){Br(e,"rune_removed",`The \`${t}\` rune has been removed\nhttps://svelte.dev/e/rune_removed`)}function ts(e,t,n){Br(e,"rune_renamed",`\`${t}\` is now \`${n}\`\nhttps://svelte.dev/e/rune_renamed`)}function ns(e,t){Br(e,"runes_mode_invalid_import",`${t} cannot be used in runes mode\nhttps://svelte.dev/e/runes_mode_invalid_import`)}function rs(e){Br(e,"snippet_parameter_assignment","Cannot reassign or bind to snippet parameter\nhttps://svelte.dev/e/snippet_parameter_assignment")}function ss(e){Br(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\nhttps://svelte.dev/e/state_invalid_export")}function as(e,t){Br(e,"state_invalid_placement",`\`${t}(...)\` can only be used as a variable declaration initializer or a class field\nhttps://svelte.dev/e/state_invalid_placement`)}function is(e){Br(e,"store_invalid_subscription","Cannot reference store value inside `<script module>`\nhttps://svelte.dev/e/store_invalid_subscription")}function os(e,t){Br(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 })\`)\nhttps://svelte.dev/e/typescript_invalid_feature`)}function ls(e){Br(e,"css_expected_identifier","Expected a valid CSS identifier\nhttps://svelte.dev/e/css_expected_identifier")}function cs(e){Br(e,"css_global_block_invalid_modifier_start","A `:global` selector can only be modified if it is a descendant of other selectors\nhttps://svelte.dev/e/css_global_block_invalid_modifier_start")}function ps(e){Br(e,"css_global_invalid_placement","`:global(...)` can be at the start or end of a selector sequence, but not in the middle\nhttps://svelte.dev/e/css_global_invalid_placement")}function us(e){Br(e,"css_global_invalid_selector","`:global(...)` must contain exactly one selector\nhttps://svelte.dev/e/css_global_invalid_selector")}function ds(e){Br(e,"css_global_invalid_selector_list","`:global(...)` must not contain type or universal selectors when used in a compound selector\nhttps://svelte.dev/e/css_global_invalid_selector_list")}function hs(e){Br(e,"css_selector_invalid","Invalid selector\nhttps://svelte.dev/e/css_selector_invalid")}function ms(e){Br(e,"css_type_selector_invalid_placement","`:global(...)` must not be followed by a type selector\nhttps://svelte.dev/e/css_type_selector_invalid_placement")}function fs(e){Br(e,"animation_duplicate","An element can only have one 'animate' directive\nhttps://svelte.dev/e/animation_duplicate")}function ys(e){Br(e,"animation_invalid_placement","An element that uses the `animate:` directive must be the only child of a keyed `{#each ...}` block\nhttps://svelte.dev/e/animation_invalid_placement")}function vs(e){Br(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?\nhttps://svelte.dev/e/animation_missing_key")}function gs(e){Br(e,"attribute_duplicate","Attributes need to be unique\nhttps://svelte.dev/e/attribute_duplicate")}function bs(e){Br(e,"attribute_invalid_event_handler","Event attribute must be a JavaScript expression, not a string\nhttps://svelte.dev/e/attribute_invalid_event_handler")}function _s(e,t){Br(e,"attribute_invalid_name",`'${t}' is not a valid attribute name\nhttps://svelte.dev/e/attribute_invalid_name`)}function xs(e){Br(e,"attribute_invalid_sequence_expression","Sequence expressions are not allowed as attribute/directive values in runes mode, unless wrapped in parentheses\nhttps://svelte.dev/e/attribute_invalid_sequence_expression")}function ws(e){Br(e,"bind_invalid_expression","Can only bind to an Identifier or MemberExpression or a `{get, set}` pair\nhttps://svelte.dev/e/bind_invalid_expression")}function Cs(e,t,n){Br(e,"bind_invalid_name",(n?`\`bind:${t}\` is not a valid binding. ${n}`:`\`bind:${t}\` is not a valid binding`)+"\nhttps://svelte.dev/e/bind_invalid_name")}function ks(e,t){Br(e,"bind_invalid_parens",`\`bind:${t}={get, set}\` must not have surrounding parentheses\nhttps://svelte.dev/e/bind_invalid_parens`)}function Ss(e,t,n){Br(e,"bind_invalid_target",`\`bind:${t}\` can only be used with ${n}\nhttps://svelte.dev/e/bind_invalid_target`)}function Ps(e,t){Br(e,"block_duplicate_clause",`${t} cannot appear more than once within a block\nhttps://svelte.dev/e/block_duplicate_clause`)}function Es(e,t,n){Br(e,"block_invalid_placement",`{#${t} ...} block cannot be ${n}\nhttps://svelte.dev/e/block_invalid_placement`)}function As(e,t){Br(e,"block_unexpected_character",`Expected a \`${t}\` character immediately following the opening bracket\nhttps://svelte.dev/e/block_unexpected_character`)}function Ts(e){Br(e,"block_unexpected_close","Unexpected block closing tag\nhttps://svelte.dev/e/block_unexpected_close")}function $s(e){Br(e,"component_invalid_directive","This type of directive is not valid on components\nhttps://svelte.dev/e/component_invalid_directive")}function Rs(e,t){Br(e,"element_invalid_closing_tag",`\`</${t}>\` attempted to close an element that was not open\nhttps://svelte.dev/e/element_invalid_closing_tag`)}function Is(e,t,n){Br(e,"element_invalid_closing_tag_autoclosed",`\`</${t}>\` attempted to close element that was already automatically closed by \`<${n}>\` (cannot nest \`<${n}>\` inside \`<${t}>\`)\nhttps://svelte.dev/e/element_invalid_closing_tag_autoclosed`)}function qs(e,t){Br(e,"element_unclosed",`\`<${t}>\` was left open\nhttps://svelte.dev/e/element_unclosed`)}function Ls(e){Br(e,"event_handler_invalid_component_modifier","Event modifiers other than 'once' can only be used on DOM elements\nhttps://svelte.dev/e/event_handler_invalid_component_modifier")}function Ms(e,t){Br(e,"event_handler_invalid_modifier",`Valid event modifiers are ${t}\nhttps://svelte.dev/e/event_handler_invalid_modifier`)}function Os(e,t,n){Br(e,"event_handler_invalid_modifier_combination",`The '${t}' and '${n}' modifiers cannot be used together\nhttps://svelte.dev/e/event_handler_invalid_modifier_combination`)}function Ns(e){Br(e,"expected_attribute_value","Expected attribute value\nhttps://svelte.dev/e/expected_attribute_value")}function Ds(e){Br(e,"expected_identifier","Expected an identifier\nhttps://svelte.dev/e/expected_identifier")}function js(e,t){Br(e,"expected_token",`Expected token ${t}\nhttps://svelte.dev/e/expected_token`)}function Bs(e,t){Br(e,"illegal_element_attribute",`\`<${t}>\` does not support non-event attributes or spread attributes\nhttps://svelte.dev/e/illegal_element_attribute`)}function Fs(e,t){Br(e,"node_invalid_placement",`${t}. The browser will 'repair' the HTML (by moving, removing, or inserting elements) which breaks Svelte's assumptions about the structure of your components.\nhttps://svelte.dev/e/node_invalid_placement`)}function Vs(e){Br(e,"render_tag_invalid_spread_argument","cannot use spread arguments in `{@render ...}` tags\nhttps://svelte.dev/e/render_tag_invalid_spread_argument")}function Hs(e){Br(e,"script_duplicate","A component can have a single top-level `<script>` element and/or a single top-level `<script module>` element\nhttps://svelte.dev/e/script_duplicate")}function Us(e,t){Br(e,"script_invalid_attribute_value",`If the \`${t}\` attribute is supplied, it must be a boolean attribute\nhttps://svelte.dev/e/script_invalid_attribute_value`)}function zs(e){Br(e,"script_invalid_context",'If the context attribute is supplied, its value must be "module"\nhttps://svelte.dev/e/script_invalid_context')}function Ws(e){Br(e,"slot_attribute_invalid","slot attribute must be a static value\nhttps://svelte.dev/e/slot_attribute_invalid")}function Gs(e){Br(e,"slot_attribute_invalid_placement","Element with a slot='...' attribute must be a child of a component or a descendant of a custom element\nhttps://svelte.dev/e/slot_attribute_invalid_placement")}function Ks(e){Br(e,"slot_default_duplicate",'Found default slot content alongside an explicit slot="default"\nhttps://svelte.dev/e/slot_default_duplicate')}function Xs(e){Br(e,"slot_element_invalid_attribute","`<slot>` can only receive attributes and (optionally) let directives\nhttps://svelte.dev/e/slot_element_invalid_attribute")}function Js(e){Br(e,"slot_element_invalid_name","slot attribute must be a static value\nhttps://svelte.dev/e/slot_element_invalid_name")}function Qs(e){Br(e,"slot_element_invalid_name_default","`default` is a reserved word — it cannot be used as a slot name\nhttps://svelte.dev/e/slot_element_invalid_name_default")}function Ys(e){Br(e,"snippet_invalid_rest_parameter","Snippets do not support rest parameters; use an array instead\nhttps://svelte.dev/e/snippet_invalid_rest_parameter")}function Zs(e){Br(e,"svelte_body_illegal_attribute","`<svelte:body>` does not support non-event attributes or spread attributes\nhttps://svelte.dev/e/svelte_body_illegal_attribute")}function ea(e){Br(e,"svelte_boundary_invalid_attribute","Valid attributes on `<svelte:boundary>` are `onerror` and `failed`\nhttps://svelte.dev/e/svelte_boundary_invalid_attribute")}function ta(e){Br(e,"svelte_boundary_invalid_attribute_value","Attribute value must be a non-string expression\nhttps://svelte.dev/e/svelte_boundary_invalid_attribute_value")}function na(e){Br(e,"svelte_element_missing_this","`<svelte:element>` must have a 'this' attribute with a value\nhttps://svelte.dev/e/svelte_element_missing_this")}function ra(e){Br(e,"svelte_fragment_invalid_attribute","`<svelte:fragment>` can only have a slot attribute and (optionally) a let: directive\nhttps://svelte.dev/e/svelte_fragment_invalid_attribute")}function sa(e){Br(e,"svelte_head_illegal_attribute","`<svelte:head>` cannot have attributes nor directives\nhttps://svelte.dev/e/svelte_head_illegal_attribute")}function aa(e){Br(e,"svelte_options_deprecated_tag",'"tag" option is deprecated — use "customElement" instead\nhttps://svelte.dev/e/svelte_options_deprecated_tag')}function ia(e){Br(e,"svelte_options_invalid_attribute","`<svelte:options>` can only receive static attributes\nhttps://svelte.dev/e/svelte_options_invalid_attribute")}function oa(e,t){Br(e,"svelte_options_invalid_attribute_value",`Value must be ${t}, if specified\nhttps://svelte.dev/e/svelte_options_invalid_attribute_value`)}function la(e){Br(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: .. } } }\nhttps://svelte.dev/e/svelte_options_invalid_customelement')}function ca(e){Br(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" }"\nhttps://svelte.dev/e/svelte_options_invalid_customelement_props')}function pa(e){Br(e,"svelte_options_invalid_customelement_shadow",'"shadow" must be either "open" or "none"\nhttps://svelte.dev/e/svelte_options_invalid_customelement_shadow')}function ua(e){Br(e,"svelte_options_invalid_tagname","Tag name must be lowercase and hyphenated\nhttps://svelte.dev/e/svelte_options_invalid_tagname")}function da(e,t){Br(e,"svelte_options_unknown_attribute",`\`<svelte:options>\` unknown attribute '${t}'\nhttps://svelte.dev/e/svelte_options_unknown_attribute`)}function ha(e,t,n){Br(e,"tag_invalid_placement",`{@${t} ...} tag cannot be ${n}\nhttps://svelte.dev/e/tag_invalid_placement`)}function ma(e){Br(e,"textarea_invalid_content","A `<textarea>` can have either a value attribute or (equivalently) child content, but not both\nhttps://svelte.dev/e/textarea_invalid_content")}function fa(e){Br(e,"title_illegal_attribute","`<title>` cannot have attributes nor directives\nhttps://svelte.dev/e/title_illegal_attribute")}function ya(e){Br(e,"title_invalid_content","`<title>` can only contain text and {tags}\nhttps://svelte.dev/e/title_invalid_content")}function va(e,t,n){Br(e,"transition_conflict",`Cannot use \`${t}:\` alongside existing \`${n}:\` directive\nhttps://svelte.dev/e/transition_conflict`)}function ga(e,t){Br(e,"transition_duplicate",`Cannot use multiple \`${t}:\` directives on a single element\nhttps://svelte.dev/e/transition_duplicate`)}function ba(e){Br(e,"unexpected_eof","Unexpected end of input\nhttps://svelte.dev/e/unexpected_eof")}function _a(e,t){const n=e.charCodeAt(t);if(n<=55295||n>=57344)return n;return(n<<10)+e.charCodeAt(t+1)-56613888}const xa="[".charCodeAt(0),wa="]".charCodeAt(0),Ca="{".charCodeAt(0),ka="}".charCodeAt(0),Sa="(".charCodeAt(0),Pa=")".charCodeAt(0);function Ea(e){return e===xa||e===Ca}function Aa(e){return e===wa||e===ka}function Ta(e,t){return e===xa&&t===wa||e===Ca&&t===ka}function $a(e){return e===xa?wa:e===Ca?ka:e===Sa?Pa:void 0}function Ra(e){return e<0?1/0:e}function Ia(e,t,n){let r;return r="`"===n?e:e.slice(0,Ra(e.indexOf("\n",t))),La(r,t,n)}function qa(e,t){return La(e,t,"/")}function La(e,t,n){let r=t;for(;;){const t=e.indexOf(n,r);if(-1===t)return 1/0;if(Ma(e,t-1)%2==0)return t;r=t+1}}function Ma(e,t){let n=t,r=0;for(;"\\"===e[n];)r++,n--;return r}function Oa(e,t){try{const t=Or(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)||js(s,")"),s+=1}return e.index=s,t}catch(n){if(e.loose){const n=function(e,t,n){const r=_a(n,0),s=$a(r);let a=1,i=t;for(;a>0&&i<e.length;){const t=e[i];switch(t){case"'":case'"':case"`":i=Ia(e,i+1,t)+1;continue;case"/":{const t=e[i+1];if(!t)continue;if("/"===t){i=Ra(e.indexOf("\n",i+1))+1;continue}if("*"===t){i=Ra(e.indexOf("*/",i+1))+2;continue}i=qa(e,i+1)+1;continue}default:{const t=_a(e,i);if(t===r?a++:t===s&&a--,0===a)return i;i++}}}}(e.template,e.index,t??"{");if(n){const t=e.index;return e.index=n,{type:"Identifier",start:t,end:n,name:""}}}e.acorn_error(n)}}function Na(e){return e.replace(/(`|\${|\\)/g,"\\$1")}function Da(e=[]){return{type:"ArrayExpression",elements:e}}function ja(e){return{type:"ArrayPattern",elements:e}}function Ba(e,t){return{type:"AssignmentPattern",left:e,right:t}}function Fa(e,t){return{type:"ArrowFunctionExpression",params:e,body:t,expression:"BlockStatement"!==t.type,generator:!1,async:!1,metadata:null}}function Va(e,t,n){return{type:"AssignmentExpression",operator:e,left:t,right:n}}function Ha(e){return{type:"AwaitExpression",argument:e}}function Ua(e,t,n){return{type:"BinaryExpression",operator:e,left:t,right:n}}function za(e){return{type:"BlockStatement",body:e}}function Wa(e,...t){"string"==typeof e&&(e=ni(e));let n=(t=t.slice()).length,r=!0;for(;n--;)t[n]?r=!1:r?t.pop():t[n]=ni("undefined");return{type:"CallExpression",callee:e,arguments:t,optional:!1}}function Ga(e,...t){const n=Wa(e,...t);return n.optional=!0,{type:"ChainExpression",expression:n}}function Ka(e,t,n){return{type:"ConditionalExpression",test:e,consequent:t,alternate:n}}function Xa(e,t,n){return{type:"LogicalExpression",operator:e,left:t,right:n}}function Ja(e,t){return{type:"VariableDeclaration",kind:e,declarations:t}}function Qa(e,t){return"string"==typeof e&&(e=ni(e)),{type:"VariableDeclarator",id:e,init:t}}const Ya={type:"EmptyStatement"};function Za(e){return{type:"ExportDefaultDeclaration",declaration:e}}function ei(e,t,n){return{type:"FunctionDeclaration",id:e,params:t,body:n,generator:!1,async:!1,metadata:null}}function ti(e,t){return pi("get",ji(e),qi(null,[],za(t)))}function ni(e){return{type:"Identifier",name:e}}function ri(e){return{type:"PrivateIdentifier",name:e}}function si(e,t){return pi("init",ji(e),t)}function ai(e){return{type:"Literal",value:e}}function ii(e,t,n=!1,r=!1){return"string"==typeof t&&(t=ni(t)),{type:"MemberExpression",object:e,property:t,computed:n,optional:r}}function oi(e){const t=e.split(".");let n=ni(t[0]);for(let e=1;e<t.length;e+=1)n=ii(n,ni(t[e]));return n}function li(e){return{type:"ObjectExpression",properties:e}}function ci(e){return{type:"ObjectPattern",properties:e}}function pi(e,t,n,r=!1){return{type:"Property",kind:e,key:t,value:n,method:!1,shorthand:!1,computed:r}}function ui(e,t,n=!1,r=!1){return{type:"PropertyDefinition",key:e,value:t,computed:n,static:r}}function di(e,t=!1){return{type:"TemplateElement",value:{raw:Na(e),cooked:e},tail:t}}function hi(e){return{type:"RestElement",argument:e}}function mi(e){return{type:"SequenceExpression",expressions:e}}function fi(e,t){return pi("set",ji(e),qi(null,[ni("$$value")],za(t)))}function yi(e){return{type:"SpreadElement",argument:e}}function vi(e){return{type:"ExpressionStatement",expression:e}}function gi(e,t){return{type:"TemplateLiteral",quasis:e,expressions:t}}function bi(e,t=!1){const n=Fa([],e);return t&&(n.async=!0),_i(n)}function _i(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 xi(e,...t){return"string"==typeof e&&(e=ni(e)),{callee:e,arguments:t,type:"NewExpression"}}function wi(e,t,n=!1){return{type:"UpdateExpression",operator:e,argument:t,prefix:n}}function Ci(e,t){return{type:"DoWhileStatement",test:e,body:t}}const ki=ai(!0),Si=ai(!1),Pi=ai(null),Ei={type:"DebuggerStatement"},Ai={type:"ThisExpression"};function Ti(e,t){return Ja("let",[Qa(e,t)])}function $i(e,t){return Ja("const",[Qa(e,t)])}function Ri(e,t){return Ja("var",[Qa(e,t)])}function Ii(e,t,n,r,s=!1,a=!1){return{type:"MethodDefinition",key:t,kind:e,value:qi(null,n,za(r)),computed:s,static:a}}function qi(e,t,n){return{type:"FunctionExpression",id:e,params:t,body:n,generator:!1,async:!1,metadata:null}}function Li(e,t,n){return{type:"IfStatement",test:e,consequent:t,alternate:n}}function Mi(e,t){return{type:"ImportDeclaration",source:ai(t),specifiers:[(n=e,{type:"ImportNamespaceSpecifier",local:ni(n)})]};var n}function Oi(e,t){return{type:"ImportDeclaration",source:ai(t),specifiers:e.map((e=>({type:"ImportSpecifier",imported:ni(e[0]),local:ni(e[1])})))}}function Ni(e=null){return{type:"ReturnStatement",argument:e}}function Di(e){return{type:"ThrowStatement",argument:xi("Error",ai(e))}}function ji(e){return m.test(e)?ni(e):ai(e)}function Bi(e){for(;"MemberExpression"===e.type;)e=e.object;return"Identifier"!==e.type?null:e}function Fi(e){return Array.isArray(e.value)&&1===e.value.length&&"Text"===e.value[0].type}function Vi(e){return!0!==e.value&&!Array.isArray(e.value)||Array.isArray(e.value)&&1===e.value.length&&"ExpressionTag"===e.value[0].type}function Hi(e){return Array.isArray(e.value)?e.value[0].expression:e.value.expression}function Ui(e){return Array.isArray(e)?e:"boolean"==typeof e?[]:[e]}function zi(e){return Vi(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 Gi(e){return Wi(e,[]).filter((e=>"Identifier"===e.type))}function Ki(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 Xi(e,t=[]){switch(e.type){case"Identifier":t.push(e);break;case"ObjectExpression":for(const n of e.properties)"Property"===n.type?Xi(n.value,t):Xi(n.argument,t);break;case"ArrayExpression":for(const n of e.elements)n&&Xi(n,t)}return t}function Ji(e){return Qi([],e,(e=>e),(e=>e),!1)}function Qi(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(ai(String(e.key.value))):r.push(Wa("String",e.key)):r.push(ai(e.key.name)));return Wa("$.exclude_from_object",n(e),Da(r))};"Identifier"===r.argument.type?e.push({node:r.argument,is_rest:!0,has_default_value:s,expression:a,update_expression:a}):Qi(e,r.argument,a,a,s)}else{const t=e=>ii(n(e),r.key,r.computed||"Identifier"!==r.key.type);Qi(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=>Wa(ii(n(e),"slice"),ai(r));"Identifier"===a.argument.type?e.push({node:a.argument,is_rest:!0,has_default_value:s,expression:t,update_expression:t}):Qi(e,a.argument,t,t,s)}else{const t=e=>ii(n(e),ai(r),!0);Qi(e,a,t,t,s)}}break;case"AssignmentPattern":{const s=e=>to(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}):Qi(e,t.left,s,r,!0);break}}return e}function Yi(e){return"Literal"===e.type||"Identifier"===e.type||"ArrowFunctionExpression"===e.type||"FunctionExpression"===e.type||("ConditionalExpression"===e.type?Yi(e.test)&&Yi(e.consequent)&&Yi(e.alternate):("BinaryExpression"===e.type||"LogicalExpression"===e.type)&&("PrivateIdentifier"!==e.left.type&&Yi(e.left)&&Yi(e.right)))}function Zi(e){return"ChainExpression"===e.type?e.expression:e}function eo(e){switch(e.type){case"AwaitExpression":return!0;case"ArrayPattern":return e.elements.some((e=>e&&eo(e)));case"ArrayExpression":return e.elements.some((e=>!!e&&("SpreadElement"===e.type?eo(e.argument):eo(e))));case"AssignmentPattern":case"AssignmentExpression":case"BinaryExpression":case"LogicalExpression":return"PrivateIdentifier"!==e.left.type&&eo(e.left)||eo(e.right);case"CallExpression":case"NewExpression":return"Super"!==e.callee.type&&eo(e.callee)||e.arguments.some((e=>"SpreadElement"===e.type?eo(e.argument):eo(e)));case"ChainExpression":return eo(e.expression);case"ConditionalExpression":return eo(e.test)||eo(e.alternate)||eo(e.consequent);case"ImportExpression":return eo(e.source);case"MemberExpression":return"Super"!==e.object.type&&eo(e.object)||"PrivateIdentifier"!==e.property.type&&eo(e.property);case"ObjectPattern":case"ObjectExpression":return e.properties.some((e=>"SpreadElement"===e.type?eo(e.argument):"Property"===e.type?"PrivateIdentifier"!==e.key.type&&eo(e.key)||eo(e.value):void 0));case"RestElement":case"UnaryExpression":case"UpdateExpression":return eo(e.argument);case"SequenceExpression":case"TemplateLiteral":return e.expressions.some((e=>eo(e)));case"TaggedTemplateExpression":return eo(e.tag)||eo(e.quasi);case"YieldExpression":return!!e.argument&&eo(e.argument);default:return!1}}function to(e,t){return Yi(t)?Wa("$.fallback",e,t):"AwaitExpression"===t.type&&Yi(t.argument)?Ha(Wa("$.fallback",e,t.argument)):eo(t)?Ha(Wa("$.fallback",e,bi(t,!0),ki)):Wa("$.fallback",e,bi(t),ki)}function no(e,t,n){return"="===e?n:Ua(e.slice(0,-1),t,n)}const ro=/<\/script\s*>/,so=/^<\/script\s*>/,ao=["server","client","worker","test","default"],io=["context","generics","lang","module"];const oo=/^[~^$*|]?=/,lo=/[\s\]]/,co=/^[a-zA-Z]+/,po=/^(\+|~|>|\|\|)/,uo=/^\d+(\.\d+)?%/,ho=/^(even|odd|\+?(\d+|\d*n(\s*[+-]\s*\d+)?)|-\d*n(\s*\+\s*\d+))((?=\s*[,)])|\s+of\s+)/,mo=/[\s:]/,fo=/-?\d/,yo=/[a-zA-Z0-9_-]/,vo=/\*\//,go=/-->/;function bo(e,t,n){const r=e.index,s=function(e,t){const n=[];for(;e.index<e.template.length;){if($o(e),e.match(t))return n;e.match("@")?n.push(_o(e)):n.push(xo(e))}js(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 _o(e){const t=e.index;e.eat("@",!0);const n=To(e),r=Eo(e);let s=null;return e.match("{")?s=So(e):e.eat(";",!0),{type:"Atrule",start:t,end:e.index,name:n,prelude:r,block:s}}function xo(e){const t=e.index;return{type:"Rule",prelude:wo(e),block:So(e),start:t,end:e.index,metadata:{parent_rule:null,has_local_selectors:!1,is_global_block:!1}}}function wo(e,t=!1){const n=[];$o(e);const r=e.index;for(;e.index<e.template.length;){n.push(Co(e,t));const s=e.index;if($o(e),t?e.match(")"):e.match("{"))return{type:"SelectorList",start:r,end:s,children:n};e.eat(",",!0),$o(e)}ba(e.template.length)}function Co(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=To(e)),a.selectors.push({type:"TypeSelector",name:t,start:i,end:e.index})}else if(e.eat("#"))a.selectors.push({type:"IdSelector",name:To(e),start:i,end:e.index});else if(e.eat("."))a.selectors.push({type:"ClassSelector",name:To(e),start:i,end:e.index});else if(e.eat("::"))a.selectors.push({type:"PseudoElementSelector",name:To(e),start:i,end:e.index}),e.eat("(")&&(wo(e,!0),e.eat(")",!0));else if(e.eat(":")){const t=To(e);let n=null;e.eat("(")&&(n=wo(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=To(e);e.allow_whitespace();let n=null;const r=e.read(oo);r&&(e.allow_whitespace(),n=Ao(e)),e.allow_whitespace();const s=e.read(co);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(ho))a.selectors.push({type:"Nth",value:e.read(ho),start:i,end:e.index});else if(e.match_regex(uo))a.selectors.push({type:"Percentage",value:e.read(uo),start:i,end:e.index});else if(!e.match_regex(po)){let t=To(e);e.eat("|")&&(t=To(e)),a.selectors.push({type:"TypeSelector",name:t,start:i,end:e.index})}const o=e.index;if($o(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=ko(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("{")))&&hs(e.index))}ba(e.template.length)}function ko(e){const t=e.index;e.allow_whitespace();const n=e.index,r=e.read(po);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 So(e){const t=e.index;e.eat("{",!0);const n=[];for(;e.index<e.template.length&&($o(e),!e.match("}"));)n.push(Po(e));return e.eat("}",!0),{type:"Block",start:t,end:e.index,children:n}}function Po(e){if(e.match("@"))return _o(e);const t=e.index;Eo(e);const n=e.template[e.index];return e.index=t,"{"===n?xo(e):function(e){const t=e.index,n=e.read_until(mo);e.allow_whitespace(),e.eat(":");let r=e.index;e.allow_whitespace();const s=Eo(e);s||n.startsWith("--")||Br({start:t,end:r},"css_empty_declaration","Declaration cannot be empty\nhttps://svelte.dev/e/css_empty_declaration");const a=e.index;e.match("}")||e.eat(";",!0);return{type:"Declaration",start:t,end:a,property:n,value:s}}(e)}function Eo(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++}ba(e.template.length)}function Ao(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:lo.test(s))return r&&e.eat(r,!0),t.trim();t+=s}e.index++}ba(e.template.length)}function To(e){const t=e.index;let n="";(e.match("--")||e.match_regex(fo))&&ls(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||yo.test(t)))break;n+=t}e.index++}return""===n&&ls(t),n}function $o(e){for(e.allow_whitespace();e.match("/*")||e.match("\x3c!--");)e.eat("/*")&&(e.read_until(vo),e.eat("*/",!0)),e.eat("\x3c!--")&&(e.read_until(go),e.eat("--\x3e",!0)),e.allow_whitespace()}var Ro={"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 Io=[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 qo(e){const t=Object.keys(Ro).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 Lo=qo(!1),Mo=qo(!0);function Oo(e,t){const n=t?Mo:Lo;return e.replace(n,((e,t)=>{let n;return n="#"!==t[0]?Ro[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 Io[e-128];if(e<55296)return e;if(e<=57343)return No;if(e<=65535)return e;if(e>=65536&&e<=131071)return e;if(e>=131072&&e<=196607)return e;return No}(n)):e}))}const No=0;function Do(e=!1){return{type:"Fragment",nodes:[],metadata:{transparent:e,dynamic:!1}}}const jo=["SvelteElement","RegularElement","SvelteFragment","Component","SvelteComponent","SvelteSelf","SlotElement"];function Bo(e){return jo.includes(e.type)}function Fo(e){return"RegularElement"===e.type&&e.name.includes("-")}function Vo(e,t,n,r){return{type:"Attribute",start:t,end:n,name:e,value:r,metadata:{expression:Ho(),delegated:null,needs_clsx:!1}}}function Ho(){return{dependencies:new Set,has_state:!1,has_call:!1}}const Uo={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 zo={...Uo,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,n,r){if(e.includes("-"))return null;const s=t[t.length-1],a=zo[s];if(!a)return null;if("reset_by"in a&&a.reset_by)for(let e=t.length-2;e>=0;e--){if(t[e].includes("-"))return null;if(a.reset_by.includes(t[e]))return null}if("descendant"in a&&a.descendant.includes(e)){return`${`\`<${e}>\``} cannot be a descendant of ${`\`<${s}>\``}`}return null}function Go(e,t,n,r){if(e.includes("-")||t?.includes("-"))return null;const s=zo[t],a=`\`<${e}>\``,i=`\`<${t}>\``;if(s){if("direct"in s&&s.direct.includes(e))return`${a} cannot be a direct child of ${i}`;if("descendant"in s&&s.descendant.includes(e))return`${a} cannot be a child of ${i}`;if("only"in s&&s.only)return s.only.includes(e)?null:`${a} cannot be a child of ${i}. \`<${t}>\` only allows these children: ${s.only.map((e=>`\`<${e}>\``)).join(", ")}`}switch(e){case"body":case"caption":case"col":case"colgroup":case"frameset":case"frame":case"head":case"html":return`${a} cannot be a child of ${i}`;case"thead":case"tbody":case"tfoot":return`${a} must be the child of a \`<table>\`, not a ${i}`;case"td":case"th":return`${a} must be the child of a \`<tr>\`, not a ${i}`;case"tr":return`\`<tr>\` must be the child of a \`<thead>\`, \`<tbody>\`, or \`<tfoot>\`, not a ${i}`}return null}function Ko(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 Xo=/^(\/>|[\s"'=<>`])/,Jo=/^<\/textarea(\s[^>]*)?>/i,Qo=/-->/,Yo=/(\s|\/|>)/,Zo=/[\s=/>"']/,el=/^["']/,tl=/^(?:"([^"]*)"|'([^'])*'|([^>\s]+))/,nl=/^(?:![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])$/,rl=/^(?:\p{Lu}[$\u200c\u200d\p{ID_Continue}.]*|\p{ID_Start}[$\u200c\u200d\p{ID_Continue}]*(?:\.[$\u200c\u200d\p{ID_Continue}]+)+)$/u,sl=new Map([["svelte:head","SvelteHead"],["svelte:options","SvelteOptions"],["svelte:window","SvelteWindow"],["svelte:document","SvelteDocument"],["svelte:body","SvelteBody"]]),al=new Map([...sl,["svelte:element","SvelteElement"],["svelte:component","SvelteComponent"],["svelte:self","SvelteSelf"],["svelte:fragment","SvelteFragment"],["svelte:boundary","SvelteBoundary"]]);function il(e){const t=e.index++;let n=e.current();if(e.eat("!--")){const n=e.read_until(Qo);return e.eat("--\x3e",!0),void e.append({type:"Comment",start:t,end:e.index,data:n})}const s=e.eat("/"),a=e.read_until(Yo);if(s){for(e.allow_whitespace(),e.eat(">",!0),j(a)&&Br(t,"void_element_invalid_content","Void elements cannot have children or closing tags\nhttps://svelte.dev/e/void_element_invalid_content");n.name!==a;){if(e.loose&&Bo(n)){const t=n.attributes.at(-1);if("Attribute"===t?.type&&t.name===`<${a}`){e.index=t.start,n.attributes.pop();break}}"RegularElement"===n.type||e.loose||(e.last_auto_closed_tag&&e.last_auto_closed_tag.tag===a?Is(t,a,e.last_auto_closed_tag.reason):Rs(t,a)),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(a.startsWith("svelte:")&&!al.has(a)){!function(e,t){Br(e,"svelte_meta_invalid_tag",`Valid \`<svelte:...>\` tag names are ${t}\nhttps://svelte.dev/e/svelte_meta_invalid_tag`)}({start:t+1,end:t+1+a.length},Ko(Array.from(al.keys())))}if(!(nl.test(a)||rl.test(a)||e.loose&&a.endsWith("."))){!function(e){Br(e,"tag_invalid_name","Expected a valid element or component name. Components must have a valid variable name or dot notation expression\nhttps://svelte.dev/e/tag_invalid_name")}({start:t+1,end:t+1+a.length})}sl.has(a)&&(a in e.meta_tags&&function(e,t){Br(e,"svelte_meta_duplicate",`A component can only have one \`<${t}>\` element\nhttps://svelte.dev/e/svelte_meta_duplicate`)}(t,a),"Root"!==n.type&&function(e,t){Br(e,"svelte_meta_invalid_placement",`\`<${t}>\` tags cannot be inside elements or blocks\nhttps://svelte.dev/e/svelte_meta_invalid_placement`)}(t,a),e.meta_tags[a]=!0);const i=al.has(a)?al.get(a):rl.test(a)||e.loose&&a.endsWith(".")?"Component":"title"===a&&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"!==a||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",o="RegularElement"===i?{type:i,start:t,end:-1,name:a,attributes:[],fragment:Do(!0),metadata:{svg:!1,mathml:!1,scoped:!1,has_spread:!1,path:[]}}:{type:i,start:t,end:-1,name:a,attributes:[],fragment:Do(!0),metadata:{}};e.allow_whitespace(),"RegularElement"===n.type&&function(e,t){const n=Uo[e];return!(!n||t&&!("direct"in n?n.direct:n.descendant).includes(t))}(n.name,a)&&(n.end=t,e.pop(),e.last_auto_closed_tag={tag:n.name,reason:a,depth:e.stack.length});const l=[],c=e.current(),p=("script"===a||"style"===a)&&"Root"===c.type,u=p?ol:ll;let d;for(;d=u(e);){if("Attribute"===d.type||"BindDirective"===d.type||"StyleDirective"===d.type||"ClassDirective"===d.type){const e="BindDirective"===d.type?"Attribute":d.type;l.includes(e+d.name)?gs(d):"this"!==d.name&&l.push(e+d.name)}o.attributes.push(d),e.allow_whitespace()}if("SvelteComponent"===o.type){const e=o.attributes.findIndex((e=>"Attribute"===e.type&&"this"===e.name));-1===e&&function(e){Br(e,"svelte_component_missing_this","`<svelte:component>` must have a 'this' attribute\nhttps://svelte.dev/e/svelte_component_missing_this")}(t);const n=o.attributes.splice(e,1)[0];Vi(n)||function(e){Br(e,"svelte_component_invalid_this","Invalid component definition — must be an `{expression}`\nhttps://svelte.dev/e/svelte_component_invalid_this")}(n.start),o.expression=Hi(n)}if("SvelteElement"===o.type){const e=o.attributes.findIndex((e=>"Attribute"===e.type&&"this"===e.name));-1===e&&na(t);const n=o.attributes.splice(e,1)[0];if(!0===n.value&&na(n),Vi(n))o.tag=Hi(n);else{!function(e){Ce(e,"svelte_element_invalid_this","`this` should be an `{expression}`. Using a string attribute value will cause an error in future versions of Svelte\nhttps://svelte.dev/e/svelte_element_invalid_this")}(n);const e=n.value[0];o.tag="Text"===e.type?{type:"Literal",value:e.data,raw:`'${e.raw}'`,start:e.start,end:e.end}:e.expression}}if(p){e.eat(">",!0);let n=null;for(let e=c.fragment.nodes.length-1;e>=0;e--){const r=c.fragment.nodes[e];if(e===c.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"===a){const r=function(e,t,n){const r=e.index,s=e.read_until(ro);e.index>=e.template.length&&qs(e.template.length,"script");const a=e.template.slice(0,r).replace(h," ")+s;let i;e.read(so);try{i=Mr(a,e.ts,!0)}catch(t){e.acorn_error(t)}i.start=r;let o="default";for(const e of n)ao.includes(e.name)&&(l=e,c=e.name,Br(l,"script_reserved_attribute",`The \`${c}\` attribute is reserved and cannot be used\nhttps://svelte.dev/e/script_reserved_attribute`)),io.includes(e.name)||rt(e),"module"===e.name&&(!0!==e.value&&Us(e,e.name),o="module"),"context"===e.name&&(!0!==e.value&&Fi(e)||zs(e),"module"!==e.value[0].data&&zs(e),o="module");var l,c;return{type:"Script",start:t,end:e.index,context:o,content:i,attributes:n}}(e,t,o.attributes);n&&(r.content.leadingComments=[{type:"Line",value:n.data}]),"module"===r.context?(c.module&&Hs(t),c.module=r):(c.instance&&Hs(t),c.instance=r)}else{const r=bo(e,t,o.attributes);r.content.comment=n,c.css&&function(e){Br(e,"style_duplicate","A component can have a single top-level `<style>` element\nhttps://svelte.dev/e/style_duplicate")}(t),c.css=r}return}e.append(o);const m=e.eat("/")||j(a),f=e.eat(">",!0,!1);if(!f){const t=o.attributes.at(-1);if("Attribute"===t?.type&&"<"===t.name)e.index=t.start,o.attributes.pop();else{const t=e.template[e.index-1],n=e.template[e.index-2],s=e.template[e.index];if("{"===n&&"/"===t)e.index-=2;else if("{"!==t||"#"!==s&&"@"!==s&&":"!==s){if(e.allow_whitespace(),e.index===e.template.length)for(;e.index<e.template_untrimmed.length&&r.test(e.template_untrimmed[e.index]);)e.index++}else e.index-=1}}if(m||!f)o.end=e.index;else if("textarea"===a)o.fragment.nodes=cl(e,(()=>Jo.test(e.template.slice(e.index))),"inside <textarea>"),e.read(Jo),o.end=e.index;else if("script"===a||"style"===a){const t=e.index,n=e.read_until(new RegExp(`</${a}>`)),r={start:t,end:e.index,type:"Text",data:n,raw:n};o.fragment.nodes.push(r),e.eat(`</${a}>`,!0),o.end=e.index}else e.stack.push(o),e.fragments.push(o.fragment)}function ol(e){const t=e.index,n=e.read_until(Zo);if(!n)return null;let r=!0;if(e.eat("=")){e.allow_whitespace();let t=e.match_regex(tl);t||Ns(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:Oo(t,!0)}]}return e.match_regex(el)&&js(e.index,"="),Vo(n,t,e.index,r)}function ll(e){const t=e.index;if(e.eat("{")){if(e.allow_whitespace(),e.eat("...")){const n=Oa(e);e.allow_whitespace(),e.eat("}",!0);return{type:"SpreadAttribute",start:t,end:e.index,expression:n,metadata:{expression:Ho()}}}{const n=e.index;let r=e.read_identifier();if(null===r){if(e.loose&&(e.match("#")||e.match("/")||e.match("@")||e.match(":")))return null;e.loose&&e.match("}")?r="":Br(t,"attribute_empty_shorthand","Attribute shorthand cannot be empty\nhttps://svelte.dev/e/attribute_empty_shorthand")}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},metadata:{expression:Ho()}};return Vo(r,t,e.index,s)}}const n=e.read_until(Zo);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("="))if(e.allow_whitespace(),"/"===e.template[e.index]&&">"===e.template[e.index+1]){const t=e.index;e.index++,i=[{start:t,end:t+1,type:"Text",raw:"/",data:"/"}],r=e.index}else 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:""}];let n;try{n=cl(e,(()=>t?e.match(t):!!e.match_regex(Xo)),"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,js(r,t||"}"))}throw n}0!==n.length||t||Ns(e.index);t&&(e.index+=1);return t||n.length>1||"Text"===n[0].type?n:n[0]}(e),r=e.index;else e.match_regex(el)&&js(e.index,"=");if(a){const[e,...o]=n.slice(s+1).split("|");if(""===e&&function(e,t){Br(e,"directive_missing_name",`\`${t}\` name cannot be empty\nhttps://svelte.dev/e/directive_missing_name`)}({start:t,end:t+s+1},n),"StyleDirective"===a)return{start:t,end:r,type:a,name:e,modifiers:o,value:i,metadata:{expression:Ho()}};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){Br(e,"directive_invalid_value","Directive value must be a JavaScript expression enclosed in curly braces\nhttps://svelte.dev/e/directive_invalid_value")}(l.start):c=l.expression}const p={start:t,end:r,type:a,name:e,expression:c,metadata:{expression:Ho()}};if(p.modifiers=o,"TransitionDirective"===p.type){const e=n.slice(0,s);p.intro="in"===e||"transition"===e,p.outro="out"===e||"transition"===e}return"BindDirective"!==p.type&&"ClassDirective"!==p.type||p.expression||(p.expression={start:t+s+1,end:r,type:"Identifier",name:p.name}),p}return Vo(n,t,r,i)}function cl(e,t,n){let r={start:e.index,end:-1,type:"Text",raw:"",data:""};const s=[];function a(e){r.raw&&(r.data=Oo(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("#");Es(t,e.read_until(/[^a-z]/),n)}else if(e.match("@")){const t=e.index-1;e.eat("@");ha(t,e.read_until(/[^a-z]/),n)}a(e.index-1),e.allow_whitespace();const t=Oa(e);e.allow_whitespace(),e.eat("}",!0);const o={type:"ExpressionTag",start:i,end:e.index,expression:t,metadata:{expression:Ho()}};s.push(o),r={start:e.index,end:-1,type:"Text",raw:"",data:""}}else r.raw+=e.template[e.index++]}if(e.loose)return s;ba(e.template.length)}function pl(e){const t=e.index;let n=e.index;const r=_a(e.template,n);if(_t(r,!0)){const n=e.read_identifier(),r=ul(e);return{type:"Identifier",name:n,start:t,loc:{start:de(t),end:de(e.index)},end:e.index,typeAnnotation:r}}Ea(r)||Br(n,"expected_pattern","Expected identifier or destructure pattern\nhttps://svelte.dev/e/expected_pattern");const s=[r];for(n+=r<=65535?1:2;n<e.template.length;){const t=_a(e.template,n);if(Ea(t))s.push(t);else if(Aa(t)){const e=s.pop();if(Ta(e,t)||js(n,String.fromCharCode($a(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=Or(`${n}(${a} = 1)`,e.ts,t-1).left;return s.typeAnnotation=ul(e),s.typeAnnotation&&(s.end=s.typeAnnotation.end),s}catch(t){e.acorn_error(t)}}function ul(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=Or(s,e.ts,r);if("AssignmentExpression"===a.type){let t=a.right.start;for(;"="!==s[t];)t-=1;a=Or(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 dl=/^\s*}/;function hl(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:Oa(e),consequent:Do(),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=Oa(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}}let i,o,l=null;e.eat("as")?(e.require_whitespace(),l=pl(e)):e.index=s.end,e.allow_whitespace(),e.eat(",")&&(e.allow_whitespace(),i=e.read_identifier(),i||Ds(e.index),e.allow_whitespace()),e.eat("(")&&(e.allow_whitespace(),o=Oa(e,"("),e.allow_whitespace(),e.eat(")",!0),e.allow_whitespace());if(!e.eat("}",!0,!1))if(" as "===e.template.slice(e.index-4,e.index)){const t=e.index;l=pl(e),e.eat("}",!0),s={type:"Identifier",name:"",start:s.start,end:t-4}}else e.eat("}",!0);const c=e.append({type:"EachBlock",start:n,end:-1,expression:s,body:Do(),context:l,index:i,key:o,metadata:null});return e.stack.push(c),void e.fragments.push(c.body)}if(e.eat("await")){e.require_whitespace();const t=Oa(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});e.eat("then")?(e.match_regex(dl)||(e.require_whitespace(),r.value=pl(e)),e.allow_whitespace(),r.then=Do(),e.fragments.push(r.then)):e.eat("catch")?(e.match_regex(dl)||(e.require_whitespace(),r.error=pl(e)),e.allow_whitespace(),r.catch=Do(),e.fragments.push(r.catch)):(r.pending=Do(),e.fragments.push(r.pending));if(!e.eat("}",!0,!1))if(" then "===e.template.slice(e.index-6,e.index)){const n=e.index;r.value=pl(e),e.eat("}",!0),r.expression={type:"Identifier",name:"",start:t.start,end:n-6},r.then=r.pending,r.pending=null}else if(" catch "===e.template.slice(e.index-7,e.index)){const n=e.index;r.error=pl(e),e.eat("}",!0),r.expression={type:"Identifier",name:"",start:t.start,end:n-7},r.catch=r.pending,r.pending=null}else e.eat("}",!0);return void e.stack.push(r)}if(e.eat("key")){e.require_whitespace();const t=Oa(e);e.allow_whitespace(),e.eat("}",!0);const r=e.append({type:"KeyBlock",start:n,end:-1,expression:t,fragment:Do()});return e.stack.push(r),void e.fragments.push(r.fragment)}if(e.eat("snippet")){e.require_whitespace();const t=e.index;let r=e.read_identifier();const s=e.index;null===r&&(e.loose?r="":Ds(e.index)),e.allow_whitespace();const a=e.index,i=e.eat("(",!0,!1);if(i){let t=1;for(;e.index<e.template.length&&(!e.match(")")||1!==t);)e.match("(")&&t++,e.match(")")&&t--,e.index+=1;e.eat(")",!0)}const o=e.template.slice(0,a).replace(/\S/g," "),l=e.template.slice(a,e.index);let c=i?Or(o+`${l} => {}`,e.ts,a):{params:[]};e.allow_whitespace(),e.eat("}",!0);const p=e.append({type:"SnippetBlock",start:n,end:-1,expression:{type:"Identifier",start:t,end:s,name:r},parameters:c.params,body:Do(),metadata:{can_hoist:!1,sites:new Set}});return e.stack.push(p),void e.fragments.push(p.body)}r=e.index,Br(r,"expected_block_type","Expected 'if', 'each', 'await', 'key' or 'snippet'\nhttps://svelte.dev/e/expected_block_type");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")||js(t,"{:else} or {:else if}"),e.eat("if")&&Br(t,"block_invalid_elseif","'elseif' should be 'else if'\nhttps://svelte.dev/e/block_invalid_elseif"),e.allow_whitespace(),e.fragments.pop(),n.alternate=Do(),e.fragments.push(n.alternate),e.eat("if")){e.require_whitespace();const n=Oa(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:Do(),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")||js(t,"{:else}"),e.allow_whitespace(),e.eat("}",!0),n.fallback=Do(),e.fragments.pop(),void e.fragments.push(n.fallback);if("AwaitBlock"===n.type){if(e.eat("then"))return n.then&&Ps(t,"{:then}"),e.eat("}")||(e.require_whitespace(),n.value=pl(e),e.allow_whitespace(),e.eat("}",!0)),n.then=Do(),e.fragments.pop(),void e.fragments.push(n.then);if(e.eat("catch"))return n.catch&&Ps(t,"{:catch}"),e.eat("}")||(e.require_whitespace(),n.error=pl(e),e.allow_whitespace(),e.eat("}",!0)),n.catch=Do(),e.fragments.pop(),void e.fragments.push(n.catch);js(t,"{:then ...} or {:catch ...}")}!function(e){Br(e,"block_invalid_continuation_placement","{:...} block is invalid at this position (did you forget to close the preceding element or block?)\nhttps://svelte.dev/e/block_invalid_continuation_placement")}(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=Oa(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(dl))n=[];else{const t=Oa(e);n="SequenceExpression"===t.type?t.expressions:[t],n.forEach((e=>{"Identifier"!==e.type&&function(e){Br(e,"debug_tag_invalid_arguments","{@debug ...} arguments must be identifiers, not arbitrary expressions\nhttps://svelte.dev/e/debug_tag_invalid_arguments")}(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=pl(e);e.allow_whitespace(),e.eat("=",!0),e.allow_whitespace();const r=e.index,s=Oa(e);"SequenceExpression"!==s.type||e.template.substring(r,s.start).includes("(")||Br(s,"const_tag_invalid_expression","{@const ...} must consist of a single variable declaration\nhttps://svelte.dev/e/const_tag_invalid_expression"),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=Oa(e);"CallExpression"===n.type||"ChainExpression"===n.type&&"CallExpression"===n.expression.type||function(e){Br(e,"render_tag_invalid_expression","`{@render ...}` tags can only contain call expressions\nhttps://svelte.dev/e/render_tag_invalid_expression")}(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,path:[],snippets:new Set}})}}(e);if(e.match("/")&&!e.match("/*")&&!e.match("//"))return e.eat("/"),ml(e);const r=Oa(e);e.allow_whitespace(),e.eat("}",!0),e.append({type:"ExpressionTag",start:n,end:e.index,expression:r,metadata:{expression:Ho()}})}function ml(e){const t=e.index-1;let n,r=e.current();switch(r.type){case"IfBlock":if(n=e.eat("if",!0,!1),!n)return r.end=t-1,e.pop(),void ml(e);for(e.allow_whitespace(),e.eat("}",!0);r.elseif;)r.end=e.index,e.stack.pop(),r=e.current();return r.end=e.index,void e.pop();case"EachBlock":n=e.eat("each",!0,!1);break;case"KeyBlock":n=e.eat("key",!0,!1);break;case"AwaitBlock":n=e.eat("await",!0,!1);break;case"SnippetBlock":n=e.eat("snippet",!0,!1);break;case"RegularElement":e.loose?n=!1:Ts(t);break;default:Ts(t)}if(!n)return r.end=t-1,e.pop(),void ml(e);e.allow_whitespace(),e.eat("}",!0),r.end=e.index,e.pop()}function fl(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:Oo(n,!1)})}function yl(e){return e.match("<")?il:e.match("{")?hl:fl}function vl(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 gl(e){const t=vl(e);return"boolean"!=typeof t&&oa(e,"true or false"),t}const bl="[a-z0-9_.·À-ÖØ-öø-ͽͿ-῿‌-‍‿-⁀⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-<2D>𐀀-󯿿-]",_l=new RegExp(`^[a-z]${bl}*-${bl}*$`,"u"),xl=["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"];function wl(e,t){"string"!=typeof t&&ua(e),t&&(_l.test(t)?xl.includes(t)&&Br(e,"svelte_options_reserved_tagname","Tag name is reserved\nhttps://svelte.dev/e/svelte_options_reserved_tagname"):ua(e))}function Cl(e){const{nodes:t}=e.fragment;if(t.length>0){const n=t[0],r=t[t.length-1];!function(e,t){Br(e,"svelte_meta_invalid_content",`<${t}> cannot have children\nhttps://svelte.dev/e/svelte_meta_invalid_content`)}({start:n.start,end:r.end},e.name)}}const kl=/ \(\d+:\d+\)$/,Sl=/<!--[^]*?-->|<script\s+(?:[^>]*|(?:[^=>'"/]+=(?:"[^"]*"|'[^']*'|[^>\s]+)\s+)*)lang=(["'])?([^"' >]+)\1[^>]*>/g;class Pl{template;template_untrimmed;loose;index=0;ts=!1;stack=[];fragments=[];root;meta_tags={};last_auto_closed_tag;constructor(e,t){if("string"!=typeof e)throw new TypeError("Template must be a string");let n;this.loose=t,this.template_untrimmed=e,this.template=e.trimEnd();do{n=Sl.exec(e)}while(n&&"s"!==n[0][1]);Sl.lastIndex=0,this.ts="ts"===n?.[2],this.root={css:null,js:[],start:null,end:null,type:"Root",fragment:Do(),options:null,metadata:{ts:this.ts}},this.stack.push(this.root),this.fragments.push(this.root.fragment);let s=yl;for(;this.index<this.template.length;)s=s(this)||yl;if(this.stack.length>1){const e=this.current();this.loose?e.end=this.template.length:"RegularElement"===e.type?(e.end=e.start+1,qs(e,e.name)):(e.end=e.start+1,Br(e,"block_unclosed","Block was left open\nhttps://svelte.dev/e/block_unclosed"))}if(s!==yl&&ba(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 a=this.root.fragment.nodes.findIndex((e=>"SvelteOptions"===e.type));if(-1!==a){const e=this.root.fragment.nodes[a];this.root.fragment.nodes.splice(a,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&&ia(n);const{name:e}=n;switch(e){case"runes":t.runes=gl(n);break;case"tag":aa(n);break;case"customElement":{const e={},{value:r}=n,s=!0===r||Array.isArray(r)?r:[r];if(!0===s)la(n);else{if("Text"===s[0].type){const r=vl(n);wl(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;la(n)}}const a=[];for(const e of s[0].expression.properties)("Property"!==e.type||e.computed||"Identifier"!==e.key.type)&&la(n),a.push([e.key.name,e.value]);const i=a.find((([e])=>"tag"===e));if(i){const t=i[1]?.value;wl(i,t),e.tag=t}const o=a.find((([e])=>"props"===e))?.[1];if(o){"ObjectExpression"!==o.type&&ca(n),e.props={};for(const t of o.properties){("Property"!==t.type||t.computed||"Identifier"!==t.key.type||"ObjectExpression"!==t.value.type)&&ca(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)&&ca(n),"type"===r.key.name?(-1===["String","Number","Boolean","Array","Object"].indexOf(r.value.value)&&ca(n),e.props[t.key.name].type=r.value.value):"reflect"===r.key.name?("boolean"!=typeof r.value.value&&ca(n),e.props[t.key.name].reflect=r.value.value):"attribute"===r.key.name?("string"!=typeof r.value.value&&ca(n),e.props[t.key.name].attribute=r.value.value):ca(n)}}const l=a.find((([e])=>"shadow"===e))?.[1];if(l){const t=l?.value;"open"!==t&&"none"!==t&&pa(l),e.shadow=t}const c=a.find((([e])=>"extend"===e))?.[1];c&&(e.extend=c),t.customElement=e;break}case"namespace":{const e=vl(n);e===P?t.namespace="svg":e===E?t.namespace="mathml":"html"===e||"mathml"===e||"svg"===e?t.namespace=e:oa(n,'"html", "mathml" or "svg"');break}case"css":{const e=vl(n);"injected"===e?t.css=e:oa(n,'"injected"');break}case"immutable":t.immutable=gl(n);break;case"preserveWhitespace":t.preserveWhitespace=gl(n);break;case"accessors":t.accessors=gl(n);break;default:da(n,e)}}return t}(e),Cl(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(kl,""),Br(t,"js_parse_error",`${n}\nhttps://svelte.dev/e/js_parse_error`)}eat(e,t=!1,n=!0){return this.match(e)?(this.index+=e.length,!0):(!t||this.loose&&!n||js(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=_a(this.template,n);if(!_t(r,!0))return null;for(n+=r<=65535?1:2;n<this.template.length;){const e=_a(this.template,n);if(!xt(e,!0))break;n+=e<=65535?1:2}const s=this.template.slice(this.index,this.index=n);return!e&&F(s)&&Br(t,"unexpected_reserved_word",`'${s}' is a reserved word in JavaScript and cannot be used here\nhttps://svelte.dev/e/unexpected_reserved_word`),s}read_until(e){if(this.index>=this.template.length){if(this.loose)return"";ba(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])||Br(this.index,"expected_whitespace","Expected whitespace\nhttps://svelte.dev/e/expected_whitespace"),this.allow_whitespace()}pop(){return this.fragments.pop(),this.stack.pop()}append(e){return this.fragments.at(-1)?.nodes.push(e),e}}function El(e,t=!1){return new Pl(e,t).root}function Al(e,t){return"Identifier"===e.params[0]?.type&&"this"===e.params[0].name&&e.params.shift(),t.next()}const Tl={_(e,t){const n=t.next()??e;delete n.typeAnnotation,delete n.typeParameters,delete n.returnType,delete n.accessibility},Decorator(e){os(e,"decorators (related TSC proposal is not stage 4 yet)")},ImportDeclaration(e){if("type"===e.importKind)return Ya;if(e.specifiers?.length>0){const t=e.specifiers.filter((e=>"type"!==e.importKind));return 0===t.length?Ya:{...e,specifiers:t}}return e},ExportNamedDeclaration(e,t){if("type"===e.exportKind)return Ya;if(e.declaration){const e=t.next();return"EmptyStatement"===e?.declaration?.type?Ya:e}if(e.specifiers){const t=e.specifiers.filter((e=>"type"!==e.exportKind));return 0===t.length?Ya:{...e,specifiers:t}}return e},ExportDefaultDeclaration:e=>"type"===e.exportKind?Ya:e,ExportAllDeclaration:e=>"type"===e.exportKind?Ya:e,PropertyDefinition:(e,{next:t})=>(e.accessor&&os(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),TSInterfaceDeclaration:()=>Ya,TSTypeAliasDeclaration:()=>Ya,TSEnumDeclaration(e){os(e,"enums")},TSParameterProperty:(e,t)=>((e.readonly||e.accessibility)&&"constructor"===t.path.at(-2)?.kind&&os(e,"accessibility modifiers on constructor parameters"),t.visit(e.parameter)),TSInstantiationExpression:(e,t)=>t.visit(e.expression),FunctionExpression:Al,FunctionDeclaration:Al,TSDeclareFunction:()=>Ya,ClassDeclaration:(e,t)=>e.declare?Ya:(delete e.implements,t.next()),VariableDeclaration:(e,t)=>e.declare?Ya:t.next(),TSModuleDeclaration(e,t){if(!e.body)return Ya;return e.body.body.map((e=>t.visit(e))).some((e=>e!==Ya))&&os(e,"namespaces with non-type nodes"),Ya}};function $l(e){return t(e,null,Tl)}function Rl(e,t){if("MemberExpression"===e.type)return!e.computed&&Rl(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 Il(e){if(!Bo(e))return null;for(const t of e.attributes)if("Attribute"===t.type&&"slot"===t.name&&Fi(t))return t.value[0].data;return null}function ql(e,t,n){if(Ll(e,t,n.scope,!1),"Identifier"===t.type){const r=n.scope.get(t.name);n.analysis.runes&&("derived"===r?.kind&&Vr(e,"derived state"),"each"===r?.kind&&zr(e)),"snippet"===r?.kind&&rs(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)&&Vr(e,"derived state")}function Ll(e,t,n,r){if("ArrayPattern"===t.type)for(const s of t.elements)s&&Ll(e,s,n,r);else if("ObjectPattern"===t.type)for(const s of t.properties)"Property"===s.type&&Ll(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){Br(e,"constant_binding",`Cannot bind to ${t}\nhttps://svelte.dev/e/constant_binding`)}(e,t):Vr(e,t)}}}function Ml(e,t,n){t.analysis.source[e.start+1]!==n&&As({start:e.start,end:e.start+5},n)}function Ol(e,t){e&&(1!==e.nodes.length||"Text"!==e.nodes[0].type||e.nodes[0].raw.trim()||function(e){Ce(e,"block_empty","Empty block\nhttps://svelte.dev/e/block_empty")}(e.nodes[0]))}function Nl(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?Nl({name:n.name.slice(1),type:"Identifier"},t):"import"!==r.declaration_kind&&"prop"!==r.kind&&"bindable_prop"!==r.kind&&"rest_prop"!==r.kind)}function Dl(e,t){if("Literal"===e.type)return!0;if("CallExpression"===e.type){if(!Dl(e.callee,t))return!1;for(let n of e.arguments)if(!Dl("SpreadElement"===n.type?n.argument:n,t))return!1;return!0}if("Identifier"!==e.type&&"MemberExpression"!==e.type)return!1;if("$effect.tracking"===zl(Wa(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(Dl(n,t))return!0;return!1}function jl(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){Br(e,"dollar_binding_invalid","The $ name is reserved, and cannot be used for variables and imports\nhttps://svelte.dev/e/dollar_binding_invalid")}(t):!t.name.startsWith("$")||"ImportDeclaration"===e.initial?.type&&"type"===e.initial.importKind||function(e){Br(e,"dollar_prefix_invalid","The $ prefix is reserved, and cannot be used for variables and imports\nhttps://svelte.dev/e/dollar_prefix_invalid")}(t)}}function Bl(e,t,n){const r=t.get(n);r&&("derived"===r.kind&&Ur(e),"state"!==r.kind&&"raw_state"!==r.kind||!r.reassigned||ss(e))}class Fl{root;parent;#t;declarations=new Map;declarators=new Map;references=new Map;function_depth=0;tracing=null;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){Br(e,"declaration_duplicate",`\`${t}\` has already been declared\nhttps://svelte.dev/e/declaration_duplicate`)}(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 jl(s,this.function_depth),this.declarations.set(e.name,s),this.root.conflicts.add(e.name),s}child(e=!1){return new Fl(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)||F(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 Vl{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 ni(t)}}function Hl(e,n,r,s){const a=new Map,i=new Fl(n,s,!1);a.set(e,i);const o={scope:i},l=[],c=[],p=[];function u(e,t){for(const n of t)for(const t of Gi(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=Il(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=Il(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(ni(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&&Rl(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 Gi(e.body.expression.left))t.name.startsWith("$")||p.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 Xi(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(ni(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"),u(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),u(r,e.params),n({scope:r})},ArrowFunctionExpression(e,{state:t,next:n}){const r=t.scope.child();a.set(e,r),u(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 Gi(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 Gi(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();if(a.set(e,s),e.context){for(const n of Gi(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}}r(e.context,{scope:s})}if(e.index){const t=e.key&&("Identifier"!==e.key.type||!e.index||e.key.name!==e.index);s.declare(ni(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:Ho(),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 Gi(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 Gi(e.error))n.declare(t,"template","const"),r.declare(t,"normal","const")}},SnippetBlock(e,t){const n=t.state;n.scope.declare(e.expression,"normal","function",e);const r=n.scope.child();a.set(e,r);for(const t of e.parameters)for(const e of Gi(t))r.declare(e,"snippet","let");t.next({scope:r})},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(ni(e.name),t.concat(e)),r()}});for(const e of p){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=Bi(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 Ul(e,{next:t,state:n}){const r=n.scopes.get(e);t(void 0!==r&&r!==n.scope?{...n,scope:r}:n)}function zl(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,!ie(r))return null;return null!==t.get(n.name)?null:r}function Wl(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 Gl=/^-((webkit)|(moz)|(o)|(ms))-/,Kl=/^[\s,;}]$/;function Xl(e){return e.replace(Gl,"")}const Jl=e=>"keyframes"===Xl(e.name),Ql={};function Yl(e,t,n,r=!1){if(!n.has(Ql))if("Literal"===e.type)n.add(String(e.value));else if("ConditionalExpression"===e.type)Yl(e.consequent,t,n,r),Yl(e.alternate,t,n,r);else if("LogicalExpression"===e.type)if("&&"===e.operator){const s=new Set;if(Yl(e.left,t,s,r),s.has(Ql))t&&r||(n.add(""),n.add(!1),n.add(NaN),n.add(0));else for(const e of s)e||null==e||t&&r||n.add(e);Yl(e.right,t,n,r)}else Yl(e.left,t,n,r),Yl(e.right,t,n,r);else if(t&&"ArrayExpression"===e.type)for(const r of e.elements)r&&Yl(r,t,n,!0);else if(t&&"ObjectExpression"===e.type)for(const t of e.properties)"Property"!==t.type||t.computed||"Identifier"!==t.key.type&&"Literal"!==t.key.type?n.add(Ql):n.add("Identifier"===t.key.type?t.key.name:String(t.key.value));else n.add(Ql)}function Zl(e,t){const n=new Set;return"Text"===e.type?n.add(e.data):Yl(e.expression,t,n),n.has(Ql)?null:[...n].map((e=>String(e)))}function ec(e){const t=e.selectors[0];return"PseudoClassSelector"===t.type&&"global"===t.name&&(null===t.args||e.selectors.every((e=>tc(e)||"PseudoElementSelector"===e.type)))}function tc(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=>ec(e))))))}function nc(e){return"PseudoClassSelector"===e.type&&"global"===e.name&&null===e.args}const rc={Atrule(e,t){Jl(e)&&(e.prelude.startsWith("-global-")||t.path.some((e=>"Rule"===e.type&&e.metadata.is_global_block))||t.state.keyframes.push(e.prelude)),t.next()},ComplexSelector(e,t){t.next();{const t=e.children.find(ec);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++)ec(e.children[r])||ps(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&&ds(r),"TypeSelector"===t.selectors[n+1]?.type&&ms(t.selectors[n+1]),null!==r.args&&r.args.children.length>1&&(e.children.length>1||t.selectors.length>1)&&us(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||tc(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||hs(e.combinator),e.metadata.is_global=e.selectors.length>=1&&ec(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(nc);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){Br(e,"css_global_block_invalid_list","A `:global` selector cannot be part of a selector list with more than one item\nhttps://svelte.dev/e/css_global_block_invalid_list")}(e.prelude);const t=e.prelude.children[0].children.find(((t,n)=>{const r=t.selectors.findIndex(nc);if(0===r)return t.selectors.length>1&&0===n&&null===e.metadata.parent_rule&&cs(t.selectors[1]),!0;-1!==r&&function(e){Br(e,"css_global_block_invalid_modifier","A `:global` selector cannot modify an existing selector\nhttps://svelte.dev/e/css_global_block_invalid_modifier")}(t.selectors[r])}));if(!t)throw new Error("Internal error: global block without :global selector");t.combinator&&" "!==t.combinator.name&&function(e,t){Br(e,"css_global_block_invalid_combinator",`A \`:global\` selector cannot follow a \`${t}\` combinator\nhttps://svelte.dev/e/css_global_block_invalid_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){Br(e,"css_global_block_invalid_declaration","A top-level `:global {...}` block can only contain rules, not declarations\nhttps://svelte.dev/e/css_global_block_invalid_declaration")}(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&&cs(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){Br(e,"css_nesting_selector_invalid_placement","Nesting selectors can only be used inside a rule or as the first selector inside a lone `:global(...)`\nhttps://svelte.dev/e/css_nesting_selector_invalid_placement")}(e)}t.next()}};const sc=0,ac=1,ic=new Map([["details",["open"]],["dialog",["open"]]]),oc={type:"Combinator",name:" ",start:-1,end:-1},lc={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}},cc=new Set;function pc(e,n){t(e,null,{Rule(e,t){e.metadata.is_global_block?t.visit(e.prelude):t.next()},ComplexSelector(e){const t=uc(e);cc.clear(),hc(t,e.metadata.rule,n)&&(e.metadata.used=!0)}})}function uc(e){const n=dc(e);if(e.metadata.rule?.metadata.parent_rule&&n.length>0){let e=!1;for(let r of n)if(t(r,null,{NestingSelector(){e=!0}}),e)break;e||(null===n[0].combinator&&(n[0]={...n[0],combinator:oc}),n.unshift(lc))}return n}function dc(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 hc(e,n,r){const s=e.slice(),a=s.pop(),i=!!a&&function(e,n,r){const s=[],a=[];for(const i of e.selectors)"PseudoClassSelector"===i.type&&"has"===i.name&&i.args?s.push(i):a.push(i);if(s.length>0){const o=[],l=[];let c;const p=function(e){const t=[];for(;e;)t.push(e),e=e.metadata.parent_rule;return t}(n),u=p.some((e=>e.prelude.children.some((t=>t.children.some((t=>fc(t,e)))))))||p[p.length-1].prelude.children.some((e=>e.children.some((e=>e.selectors.some((e=>"PseudoClassSelector"===e.type&&"root"===e.name))))));u&&(o.push(r),l.push(r));const d=new Set;function h(e,n){t(e,n,{_(e,t){if("RegularElement"===e.type||"SvelteElement"===e.type)l.push(e),t.state.is_child?(o.push(e),t.state.is_child=!1,t.next(),t.state.is_child=!0):t.next();else if("RenderTag"===e.type)for(const n of e.metadata.snippets)d.has(n)||(d.add(n),h(n.body,t.state));else t.next()}})}h(r.fragment,{is_child:!0});for(const m of s){const f=m.args.children;let y=!1;for(const v of f){const g=dc(v),b=g[0]?.combinator??oc;g.length>0&&(g[0]={...g[0],combinator:null});const _="+"===b.name||"~"===b.name?c??=vc(r,u):">"===b.name?o:l;let x=!1;for(const w of _)(0===g.length||w.metadata.scoped&&x||hc(g,n,w))&&(v.metadata.used=!0,x=y=!0)}if(!y)return!1}}for(const C of a){if("Percentage"===C.type||"Nth"===C.type)continue;const k=C.name.replace(yc,"$1");switch(C.type){case"PseudoClassSelector":if("host"===k||"root"===k)return!1;if("global"===k&&null!==C.args&&1===e.selectors.length){return hc(C.args.children[0].children,n,r)}if("global"===k&&null===C.args)return!0;if("not"===k&&C.args){for(const S of C.args.children){t(S,null,{ComplexSelector(e,t){e.metadata.used=!0,t.next()}});const P=dc(S);if(S.children.length>1){for(const A of P)A.metadata.scoped=!0;let E=r;for(;E;)E.metadata.scoped=!0,E=xc(E)}}break}if(("is"===k||"where"===k)&&C.args){let T=!1;for(const $ of C.args.children){const R=dc($);if(0===R.length)$.metadata.used=!0,T=!0;else if(hc(R,n,r))$.metadata.used=!0,T=!0;else if($.children.length>1&&("is"==k||"where"==k)){$.metadata.used=!0,T=!0;for(const I of R)I.metadata.scoped=!0}}if(!T)return!1}break;case"PseudoElementSelector":break;case"AttributeSelector":{const q=ic.get(r.name.toLowerCase());if(!q?.includes(C.name.toLowerCase())&&!bc(r,C.name,C.value&&_c(C.value),C.matcher,C.flags?.includes("i")??!1))return!1;break}case"ClassSelector":if(!bc(r,"class",k,"~=",!1)&&!r.attributes.some((e=>"ClassDirective"===e.type&&e.name===k)))return!1;break;case"IdSelector":if(!bc(r,"id",k,"=",!1))return!1;break;case"TypeSelector":if(r.name.toLowerCase()!==k.toLowerCase()&&"*"!==k&&"SvelteElement"!==r.type)return!1;break;case"NestingSelector":{let L=!1;const M=n.metadata.parent_rule;for(const O of M.prelude.children)(hc(uc(O),M,r)||O.children.every((e=>fc(e,M))))&&(O.metadata.used=!0,L=!0);if(!L)return!1;break}}}return!0}(a,n,r)&&mc(a,s,n,r);return i&&(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)))}(a)||(a.metadata.scoped=!0),r.metadata.scoped=!0),i}function mc(e,t,n,r){if(!e.combinator)return!0;const s=e.combinator.name;switch(s){case" ":case">":{let a=!1;const i=r.metadata.path;let o=i.length;for(;o--;){const r=i[o];if("SnippetBlock"===r.type){if(cc.has(r))a=!0;else{cc.add(r);for(const s of r.metadata.sites)mc(e,t,n,s)&&(a=!0)}break}if(("RegularElement"===r.type||"SvelteElement"===r.type)&&(hc(t,n,r)&&(a=!0),">"===s))return a}return a||t.every((e=>fc(e,n)))}case"+":case"~":{const e=wc(r,"+"===s);let a=!1;for(const r of e.keys())"RenderTag"===r.type||"SlotElement"===r.type?1===t.length&&t[0].metadata.is_global&&(a=!0):hc(t,n,r)&&(a=!0);return a||null===xc(r)&&t.every((e=>fc(e,n)))}default:return!0}}function fc(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=>fc(e,r)))));if(!s)return!1}return!0}const yc=/\\(.)/g;function vc(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=[],l=new Set;function c(e){t(e,null,{RegularElement(e){o.push(e)},SvelteElement(e){o.push(e)},RenderTag(e){for(const t of e.metadata.snippets)l.has(t)||(l.add(t),c(t.body))}})}for(const e of i.slice(i.indexOf(a)+1))c(e);return n&&o.push(e),o}function gc(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 bc(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(Fi(a))return gc(r,n,s,a.value[0].data);const e=Ui(a.value),o=new Set;let c=[];for(const n of e){const e=Zl(n,"class"===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.length&&c.push(" "),c.length>20)return!0}c.forEach((e=>o.add(e)));for(const e of o)if(gc(r,n,s,e))return!0}return!1}function _c(e){return e[0]===e[e.length-1]&&"'"===e[0]||'"'===e[0]?e.slice(1,e.length-1):e}function xc(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 wc(e,t,n=new Set){const r=new Map,s=e.metadata.path;let a=e,i=s.length;for(;i--;){const e=s[i--];let o=e.nodes.indexOf(a);for(;o--;){const n=e.nodes[o];if("RegularElement"===n.type){if(!n.attributes.some((e=>"Attribute"===e.type&&"slot"===e.name.toLowerCase()))&&(r.set(n,ac),t))return r}else if(Ec(n)){"SlotElement"===n.type&&r.set(n,sc);const e=Cc(n,t);if(Sc(e,r),t&&kc(e))return r}else"RenderTag"!==n.type&&"SvelteElement"!==n.type||r.set(n,sc)}if(a=s[i],!a)break;if("Component"!==a.type&&"SvelteComponent"!==a.type&&"SvelteSelf"!==a.type){if("SnippetBlock"===a.type){if(n.has(a))break;n.add(a);for(const e of a.metadata.sites){const s=wc(e,t,n);if(Sc(s,r),t&&1===a.metadata.sites.size&&kc(s))return r}}if(!Ec(a))break;"EachBlock"===a.type&&e===a.body&&Sc(Cc(a,t),r)}}return r}function Cc(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&&=kc(n),Sc(n,r)}if(!s)for(const e of r.keys())r.set(e,sc);return r}function kc(e){if(0===e.size)return!1;for(const t of e.values())if(t===ac)return!0;return!1}function Sc(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,ac),t)break}else if(Ec(s)){const e=Cc(s,t);if(Sc(e,n),t&&kc(e))break}}return n}function Ec(e){return"IfBlock"===e.type||"EachBlock"===e.type||"AwaitBlock"===e.type||"KeyBlock"===e.type||"SlotElement"===e.type}const Ac={Atrule(e,t){Jl(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){Ce(e,"css_unused_selector",`Unused CSS selector "${t}"\nhttps://svelte.dev/e/css_unused_selector`)}(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 Tc(e,t){e.metadata={hoisted:!1,hoisted_params:[],scope:t.state.scope},t.next({...t.state,function_depth:t.state.function_depth+1})}function $c(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 Rc={hoisted:!1};function Ic(e){return V(e=e.slice(2))&&(e=e.slice(0,-7)),e}const qc={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 Lc(e){!e.name.includes(":")||e.name.startsWith("xmlns:")||e.name.startsWith("xlink:")||e.name.startsWith("xml:")||Ce(e,"attribute_illegal_colon","Attributes should not contain ':' characters to prevent ambiguity with Svelte directives\nhttps://svelte.dev/e/attribute_illegal_colon")}function Mc(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&&Fo(t))&&Ce(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\nhttps://svelte.dev/e/attribute_quoted"),!0===e.value||!Array.isArray(e.value)||1===e.value.length)return;e.value.at(-1)?.end!==e.end||function(e){Br(e,"attribute_unquoted_sequence","Attribute values containing `{...}` must be enclosed in quote marks, unless the value only contains the expression\nhttps://svelte.dev/e/attribute_unquoted_sequence")}(e)}function Oc(e,t,n=!1){const r=e.path.at(-2);let s;if("SnippetBlock"===r?.type)return void(Fi(t)||Ws(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&&Fo(t))&&(s=t)}if(s){if(Fi(t)||Ws(t),"Component"===s.type||"SvelteComponent"===s.type||"SvelteSelf"===s.type){s!==r&&Gs(t);const n=t.value[0].data;if(e.state.component_slots.has(n)&&function(e,t,n){Br(e,"slot_attribute_duplicate",`Duplicate slot name '${t}' in <${n}>\nhttps://svelte.dev/e/slot_attribute_duplicate`)}(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)))&&Ks(e)}}else n||Gs(t)}function Nc(e){return!e||"import"===e.declaration_kind||"prop"===e.kind||"rest_prop"===e.kind||"bindable_prop"===e.kind||"SnippetBlock"===e?.initial?.type}function Dc(e,t){e.metadata.path=[...t.path],e.metadata.snippets=new Set;let n=!0;for(const r of e.attributes){if("SpreadAttribute"===r.type||"BindDirective"===r.type){n=!1;continue}if("Attribute"!==r.type||!Vi(r))continue;const s=Hi(r);if("Identifier"===s.type){const r=t.state.scope.get(s.name);n&&=Nc(r),"SnippetBlock"===r?.initial?.type&&e.metadata.snippets.add(r.initial)}else"Literal"!==s.type&&(n=!1)}if(n)for(const t of e.fragment.nodes)"SnippetBlock"===t.type&&e.metadata.snippets.add(t);t.state.analysis.snippet_renderers.set(e,n),$c(t.path);for(const n of e.attributes){if("Attribute"!==n.type&&"SpreadAttribute"!==n.type&&"LetDirective"!==n.type&&"OnDirective"!==n.type&&"BindDirective"!==n.type&&$s(n),"OnDirective"===n.type&&(n.modifiers.length>1||n.modifiers.some((e=>"once"!==e)))&&Ls(n),"Attribute"===n.type){if(t.state.analysis.runes&&(Mc(n,e),Vi(n))){const e=Hi(n);if("SequenceExpression"===e.type){let n=e.start;for(;--n>0;){const r=t.state.analysis.source[n];if("("===r)break;"{"===r&&xs(e)}}}Lc(n),"slot"===n.name&&Oc(t,n,!0)}"BindDirective"===n.type&&"this"!==n.name&&(t.state.analysis.uses_component_bindings=!0)}const r=Il(e)?t.state:{...t.state,scope:e.metadata.scopes.default};for(const n of e.attributes)t.visit(n,"LetDirective"===n.type?r:t.state);let s=[];const a={default:[]};for(const t of e.fragment.nodes){if("Comment"===t.type){s.push(t);continue}const e=Il(t)??"default";(a[e]??=[]).push(...s,t),"default"!==e&&(s=[])}const i=new Set;for(const n in a){const r={...t.state,scope:e.metadata.scopes[n],parent_element:null,component_slots:i};t.visit({...e.fragment,nodes:a[n]},r)}}function jc(e){return Wa("$.get",e)}function Bc(e){for(const[t,n]of e.state.scope.declarations)(Fc(n,e.state.analysis)||"derived"===n.kind||"legacy_reactive"===n.kind)&&(e.state.transform[t]={read:"var"===n.declaration_kind?e=>Wa("$.safe_get",e):jc,assign:(t,n)=>{let r=Wa("$.set",t,n);return"store_sub"===e.state.scope.get(`$${t.name}`)?.kind&&(r=Wa("$.store_unsub",r,ai(`$${t.name}`),ni("$$stores"))),r},mutate:(t,n)=>e.state.analysis.runes?n:Wa("$.mutate",t,n),update:e=>Wa(e.prefix?"$.update_pre":"$.update",e.argument,"--"===e.operator&&ai(-1))})}function Fc(e,t){return("state"===e.kind||"raw_state"===e.kind)&&(!t.immutable||e.reassigned||t.accessors)}function Vc(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 Hc(e,t){return ce?Wa("$.proxy",e,Pi,t):Wa("$.proxy",e)}function Uc(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(ni(a.node.name)),a=n.get(a.node.name.slice(1)));let e=t.state.transform[r]?.read(ni(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(ni(e.object.arguments[0].name)):"prop"!==a.kind&&"bindable_prop"!==a.kind||Wc(a,t.state)?"import"!==a.declaration_kind&&(s(ni(a.node.name)),"rest_prop"===a.kind&&t.state.analysis.runes&&s(ni("$$props"))):s(ni("$$props"))}}return r}(e,t);e.metadata.hoisted_params=n;const r=[];if(0===e.params.length)n.length>0&&r.push(ni(t.state.scope.generate("_")));else for(const n of e.params)r.push(t.visit(n));return r.push(...n),r}function zc(e,t,n,r){const s=[ni("$$props"),ai(n)];let a,i=0;return"bindable_prop"===e.kind&&(i|=w),t.analysis.immutable&&(i|=b),t.analysis.runes&&(i|=_),(t.analysis.accessors||(t.analysis.immutable?e.reassigned||t.analysis.runes&&e.mutated:e.updated))&&(i|=x),r&&(Yi(r)?a=r:(a="CallExpression"===r.type&&"Identifier"===r.callee.type&&0===r.arguments.length?r.callee:bi(r),i|=C)),(i||a)&&(s.push(ai(i)),a&&s.push(a)),Wa("$.prop",...s)}function Wc(e,t){return("prop"===e.kind||"bindable_prop"===e.kind)&&(!t.analysis.runes||t.analysis.accessors||e.reassigned||e.initial||e.updated)}function Gc(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 Gc(n.initial,null)}return!0}function Kc(e,t){if("Identifier"===e.type)return t.state.transform[e.name]={read:jc},{id:e,declarations:null};const n=t.visit(e),r=Gi(e),s=ni("$$source"),a=ni("$$value"),i=za([Ri(n,Wa("$.get",s)),Ni(li(r.map((e=>pi("init",e,e)))))]),o=[Ri(a,Xc(t.state,bi(i)))];for(const e of r)t.state.transform[e.name]={read:jc},o.push(Ri(e,Xc(t.state,bi(ii(Wa("$.get",a),e)))));return{id:s,declarations:o}}function Xc(e,t){return Wa(e.analysis.runes?"$.derived":"$.derived_safe_equal",t)}var Jc,Qc,Yc,Zc={},ep={},tp={},np={};function rp(){if(Qc)return tp;Qc=1,Object.defineProperty(tp,"__esModule",{value:!0}),tp.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}}((Jc||(Jc=1,Object.defineProperty(np,"__esModule",{value:!0}),np.default=void 0,np.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}),np));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 tp}function sp(){if(Yc)return ep;Yc=1,Object.defineProperty(ep,"__esModule",{value:!0}),ep.default=void 0;var e=function(e){return e&&e.__esModule?e:{default:e}}(rp());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 ep.default=(0,e.default)(s,s.entries()),ep}var ap,ip={};function op(){if(ap)return ip;ap=1,Object.defineProperty(ip,"__esModule",{value:!0}),ip.default=void 0;var e=function(e){return e&&e.__esModule?e:{default:e}}(rp());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 ip.default=(0,e.default)(s,s.entries()),ip}var lp,cp={},pp={},up={};var dp,hp={};var mp,fp={};var yp,vp={};var gp,bp={};var _p,xp={};var wp,Cp={};var kp,Sp={};var Pp,Ep={};var Ap,Tp={};var $p,Rp={};var Ip,qp,Lp={};function Mp(){if(qp)return pp;qp=1,Object.defineProperty(pp,"__esModule",{value:!0}),pp.default=void 0;var e=d((lp||(lp=1,Object.defineProperty(up,"__esModule",{value:!0}),up.default=void 0,up.default={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget"]]}),up)),t=d((dp||(dp=1,Object.defineProperty(hp,"__esModule",{value:!0}),hp.default=void 0,hp.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"]]}),hp)),n=d((mp||(mp=1,Object.defineProperty(fp,"__esModule",{value:!0}),fp.default=void 0,fp.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"]]}),fp)),r=d((yp||(yp=1,Object.defineProperty(vp,"__esModule",{value:!0}),vp.default=void 0,vp.default={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]}),vp)),s=d((gp||(gp=1,Object.defineProperty(bp,"__esModule",{value:!0}),bp.default=void 0,bp.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"]]}),bp)),a=d((_p||(_p=1,Object.defineProperty(xp,"__esModule",{value:!0}),xp.default=void 0,xp.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:[]}),xp)),i=d((wp||(wp=1,Object.defineProperty(Cp,"__esModule",{value:!0}),Cp.default=void 0,Cp.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"]]}),Cp)),o=d((kp||(kp=1,Object.defineProperty(Sp,"__esModule",{value:!0}),Sp.default=void 0,Sp.default={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]}),Sp)),l=d((Pp||(Pp=1,Object.defineProperty(Ep,"__esModule",{value:!0}),Ep.default=void 0,Ep.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"]]}),Ep)),c=d((Ap||(Ap=1,Object.defineProperty(Tp,"__esModule",{value:!0}),Tp.default=void 0,Tp.default={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype"]]}),Tp)),p=d(($p||($p=1,Object.defineProperty(Rp,"__esModule",{value:!0}),Rp.default=void 0,Rp.default={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype"]]}),Rp)),u=d((Ip||(Ip=1,Object.defineProperty(Lp,"__esModule",{value:!0}),Lp.default=void 0,Lp.default={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-modal":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype"]]}),Lp));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",p.default],["window",u.default]];return pp.default=h,pp}var Op,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,eu={};var tu,nu={};var ru,su={};var au,iu={};var ou,lu={};var cu,pu={};var uu,du={};var hu,mu={};var fu,yu={};var vu,gu={};var bu,_u={};var xu,wu={};var Cu,ku={};var Su,Pu={};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,ed={};var td,nd={};var rd,sd={};var ad,id={};var od,ld={};var cd,pd={};var ud,dd={};var hd,md={};var fd,yd={};var vd,gd={};var bd,_d={};var xd,wd={};var Cd,kd={};var Sd,Pd={};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,ph={};var uh,dh={};var hh,mh={};var fh,yh={};var vh,gh={};var bh,_h={};var xh,wh={};var Ch,kh={};var Sh,Ph={};var Eh,Ah={};var Th,$h={};var Rh,Ih={};var qh,Lh={};var Mh,Oh={};var Nh,Dh={};var jh,Bh,Fh={};function Vh(){if(Bh)return Np;Bh=1,Object.defineProperty(Np,"__esModule",{value:!0}),Np.default=void 0;var e=Te((Op||(Op=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-atomic":"true","aria-live":"assertive"},relatedConcepts:[{concept:{name:"alert"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]}),Dp)),t=Te((jp||(jp=1,Object.defineProperty(Bp,"__esModule",{value:!0}),Bp.default=void 0,Bp.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"]]}),Bp)),n=Te((Fp||(Fp=1,Object.defineProperty(Vp,"__esModule",{value:!0}),Vp.default=void 0,Vp.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"]]}),Vp)),r=Te((Hp||(Hp=1,Object.defineProperty(Up,"__esModule",{value:!0}),Up.default=void 0,Up.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"]]}),Up)),s=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:{constraints:["scoped to the body element"],name:"header"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]}),Wp)),a=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:{},relatedConcepts:[{concept:{name:"blockquote"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]}),Kp)),i=Te((Xp||(Xp=1,Object.defineProperty(Jp,"__esModule",{value:!0}),Jp.default=void 0,Jp.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"]]}),Jp)),o=Te((Qp||(Qp=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:"caption"},module:"HTML"}],requireContextRole:["figure","grid","table"],requiredContextRole:["figure","grid","table"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]}),Yp)),l=Te((Zp||(Zp=1,Object.defineProperty(eu,"__esModule",{value:!0}),eu.default=void 0,eu.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"]]}),eu)),c=Te((tu||(tu=1,Object.defineProperty(nu,"__esModule",{value:!0}),nu.default=void 0,nu.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"]]}),nu)),p=Te((ru||(ru=1,Object.defineProperty(su,"__esModule",{value:!0}),su.default=void 0,su.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"]]}),su)),u=Te((au||(au=1,Object.defineProperty(iu,"__esModule",{value:!0}),iu.default=void 0,iu.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"]]}),iu)),d=Te((ou||(ou=1,Object.defineProperty(lu,"__esModule",{value:!0}),lu.default=void 0,lu.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"]]}),lu)),h=Te((cu||(cu=1,Object.defineProperty(pu,"__esModule",{value:!0}),pu.default=void 0,pu.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"]]}),pu)),m=Te((uu||(uu=1,Object.defineProperty(du,"__esModule",{value:!0}),du.default=void 0,du.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"]]}),du)),f=Te((hu||(hu=1,Object.defineProperty(mu,"__esModule",{value:!0}),mu.default=void 0,mu.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"]]}),mu)),y=Te((fu||(fu=1,Object.defineProperty(yu,"__esModule",{value:!0}),yu.default=void 0,yu.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"]]}),yu)),v=Te((vu||(vu=1,Object.defineProperty(gu,"__esModule",{value:!0}),gu.default=void 0,gu.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"]]}),gu)),g=Te((bu||(bu=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:[{module:"DAISY Guide"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","list"]]}),_u)),b=Te((xu||(xu=1,Object.defineProperty(wu,"__esModule",{value:!0}),wu.default=void 0,wu.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"]]}),wu)),_=Te((Cu||(Cu=1,Object.defineProperty(ku,"__esModule",{value:!0}),ku.default=void 0,ku.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"]]}),ku)),x=Te((Su||(Su=1,Object.defineProperty(Pu,"__esModule",{value:!0}),Pu.default=void 0,Pu.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["article"]],requiredProps:{},superClass:[["roletype","structure","section","list"]]}),Pu)),w=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:{},relatedConcepts:[{concept:{name:"figure"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]}),Au)),C=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:{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"]]}),$u)),k=Te((Ru||(Ru=1,Object.defineProperty(Iu,"__esModule",{value:!0}),Iu.default=void 0,Iu.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"]]}),Iu)),S=Te((qu||(qu=1,Object.defineProperty(Lu,"__esModule",{value:!0}),Lu.default=void 0,Lu.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"]]}),Lu)),P=Te((Mu||(Mu=1,Object.defineProperty(Ou,"__esModule",{value:!0}),Ou.default=void 0,Ou.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"]]}),Ou)),E=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"],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"]]}),Du)),A=Te((ju||(ju=1,Object.defineProperty(Bu,"__esModule",{value:!0}),Bu.default=void 0,Bu.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"]]}),Bu)),T=Te((Fu||(Fu=1,Object.defineProperty(Vu,"__esModule",{value:!0}),Vu.default=void 0,Vu.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"]]}),Vu)),$=Te((Hu||(Hu=1,Object.defineProperty(Uu,"__esModule",{value:!0}),Uu.default=void 0,Uu.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"]]}),Uu)),R=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","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"]]}),Wu)),I=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:{name:"menu"},module:"HTML"},{concept:{name:"ol"},module:"HTML"},{concept:{name:"ul"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["listitem"]],requiredProps:{},superClass:[["roletype","structure","section"]]}),Ku)),q=Te((Xu||(Xu=1,Object.defineProperty(Ju,"__esModule",{value:!0}),Ju.default=void 0,Ju.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"]]}),Ju)),L=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:{"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"]]}),Yu)),M=Te((Zu||(Zu=1,Object.defineProperty(ed,"__esModule",{value:!0}),ed.default=void 0,ed.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-live":"polite"},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]}),ed)),O=Te((td||(td=1,Object.defineProperty(nd,"__esModule",{value:!0}),nd.default=void 0,nd.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"]]}),nd)),N=Te((rd||(rd=1,Object.defineProperty(sd,"__esModule",{value:!0}),sd.default=void 0,sd.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"]]}),sd)),D=Te((ad||(ad=1,Object.defineProperty(id,"__esModule",{value:!0}),id.default=void 0,id.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]}),id)),j=Te((od||(od=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:[{concept:{name:"math"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]}),ld)),B=Te((cd||(cd=1,Object.defineProperty(pd,"__esModule",{value:!0}),pd.default=void 0,pd.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"]]}),pd)),F=Te((ud||(ud=1,Object.defineProperty(dd,"__esModule",{value:!0}),dd.default=void 0,dd.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"]]}),dd)),V=Te((hd||(hd=1,Object.defineProperty(md,"__esModule",{value:!0}),md.default=void 0,md.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"]]}),md)),H=Te((fd||(fd=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:"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"]]}),yd)),U=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","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"]]}),gd)),z=Te((bd||(bd=1,Object.defineProperty(_d,"__esModule",{value:!0}),_d.default=void 0,_d.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"]]}),_d)),W=Te((xd||(xd=1,Object.defineProperty(wd,"__esModule",{value:!0}),wd.default=void 0,wd.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"]]}),wd)),G=Te((Cd||(Cd=1,Object.defineProperty(kd,"__esModule",{value:!0}),kd.default=void 0,kd.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[]}),kd)),K=Te((Sd||(Sd=1,Object.defineProperty(Pd,"__esModule",{value:!0}),Pd.default=void 0,Pd.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]}),Pd)),X=Te((Ed||(Ed=1,Object.defineProperty(Ad,"__esModule",{value:!0}),Ad.default=void 0,Ad.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"]]}),Ad)),J=Te((Td||(Td=1,Object.defineProperty($d,"__esModule",{value:!0}),$d.default=void 0,$d.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"]]}),$d)),Q=Te((Rd||(Rd=1,Object.defineProperty(Id,"__esModule",{value:!0}),Id.default=void 0,Id.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"]]}),Id)),Y=Te((qd||(qd=1,Object.defineProperty(Ld,"__esModule",{value:!0}),Ld.default=void 0,Ld.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"]]}),Ld)),Z=Te((Md||(Md=1,Object.defineProperty(Od,"__esModule",{value:!0}),Od.default=void 0,Od.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"]]}),Od)),ee=Te((Nd||(Nd=1,Object.defineProperty(Dd,"__esModule",{value:!0}),Dd.default=void 0,Dd.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"]]}),Dd)),te=Te((jd||(jd=1,Object.defineProperty(Bd,"__esModule",{value:!0}),Bd.default=void 0,Bd.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"]]}),Bd)),ne=Te((Fd||(Fd=1,Object.defineProperty(Vd,"__esModule",{value:!0}),Vd.default=void 0,Vd.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"]]}),Vd)),re=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","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"]]}),Ud)),se=Te((zd||(zd=1,Object.defineProperty(Wd,"__esModule",{value:!0}),Wd.default=void 0,Wd.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"]]}),Wd)),ae=Te((Gd||(Gd=1,Object.defineProperty(Kd,"__esModule",{value:!0}),Kd.default=void 0,Kd.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"]]}),Kd)),ie=Te((Xd||(Xd=1,Object.defineProperty(Jd,"__esModule",{value:!0}),Jd.default=void 0,Jd.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]}),Jd)),oe=Te((Qd||(Qd=1,Object.defineProperty(Yd,"__esModule",{value:!0}),Yd.default=void 0,Yd.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"]]}),Yd)),le=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"],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"]]}),eh)),ce=Te((th||(th=1,Object.defineProperty(nh,"__esModule",{value:!0}),nh.default=void 0,nh.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"]]}),nh)),pe=Te((rh||(rh=1,Object.defineProperty(sh,"__esModule",{value:!0}),sh.default=void 0,sh.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"]]}),sh)),ue=Te((ah||(ah=1,Object.defineProperty(ih,"__esModule",{value:!0}),ih.default=void 0,ih.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"]]}),ih)),de=Te((oh||(oh=1,Object.defineProperty(lh,"__esModule",{value:!0}),lh.default=void 0,lh.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"]]}),lh)),he=Te((ch||(ch=1,Object.defineProperty(ph,"__esModule",{value:!0}),ph.default=void 0,ph.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"]]}),ph)),me=Te((uh||(uh=1,Object.defineProperty(dh,"__esModule",{value:!0}),dh.default=void 0,dh.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"]]}),dh)),fe=Te((hh||(hh=1,Object.defineProperty(mh,"__esModule",{value:!0}),mh.default=void 0,mh.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"]]}),mh)),ye=Te((fh||(fh=1,Object.defineProperty(yh,"__esModule",{value:!0}),yh.default=void 0,yh.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"]]}),yh)),ve=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"],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"]]}),gh)),ge=Te((bh||(bh=1,Object.defineProperty(_h,"__esModule",{value:!0}),_h.default=void 0,_h.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"]]}),_h)),be=Te((xh||(xh=1,Object.defineProperty(wh,"__esModule",{value:!0}),wh.default=void 0,wh.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]}),wh)),_e=Te((Ch||(Ch=1,Object.defineProperty(kh,"__esModule",{value:!0}),kh.default=void 0,kh.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"]]}),kh)),xe=Te((Sh||(Sh=1,Object.defineProperty(Ph,"__esModule",{value:!0}),Ph.default=void 0,Ph.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"]]}),Ph)),we=Te((Eh||(Eh=1,Object.defineProperty(Ah,"__esModule",{value:!0}),Ah.default=void 0,Ah.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"]]}),Ah)),Ce=Te((Th||(Th=1,Object.defineProperty($h,"__esModule",{value:!0}),$h.default=void 0,$h.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","status"]]}),$h)),ke=Te((Rh||(Rh=1,Object.defineProperty(Ih,"__esModule",{value:!0}),Ih.default=void 0,Ih.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"]]}),Ih)),Se=Te((qh||(qh=1,Object.defineProperty(Lh,"__esModule",{value:!0}),Lh.default=void 0,Lh.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]}),Lh)),Pe=Te((Mh||(Mh=1,Object.defineProperty(Oh,"__esModule",{value:!0}),Oh.default=void 0,Oh.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"]]}),Oh)),Ee=Te((Nh||(Nh=1,Object.defineProperty(Dh,"__esModule",{value:!0}),Dh.default=void 0,Dh.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"]]}),Dh)),Ae=Te((jh||(jh=1,Object.defineProperty(Fh,"__esModule",{value:!0}),Fh.default=void 0,Fh.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"]]}),Fh));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",p.default],["columnheader",u.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",_.default],["feed",x.default],["figure",w.default],["form",C.default],["generic",k.default],["grid",S.default],["gridcell",P.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",pe.default],["status",ue.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",_e.default],["textbox",xe.default],["time",we.default],["timer",Ce.default],["toolbar",ke.default],["tooltip",Se.default],["tree",Pe.default],["treegrid",Ee.default],["treeitem",Ae.default]];return Np.default=$e,Np}var Hh,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 pm,um={};var dm,hm={};var mm,fm={};var ym,vm={};var gm,bm={};var _m,xm={};var wm,Cm={};var km,Sm={};var Pm,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={};var nf,rf={};var sf,af={};var of,lf={};var cf,pf={};var uf,df={};var hf,mf={};var ff,yf={};var vf,gf,bf={};function _f(){if(gf)return Uh;gf=1,Object.defineProperty(Uh,"__esModule",{value:!0}),Uh.default=void 0;var e=F((Hh||(Hh=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:"abstract [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]}),zh)),t=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:"acknowledgments [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]}),Gh)),n=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:"afterword [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]}),Xh)),r=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:"appendix [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]}),Qh)),s=F((Yh||(Yh=1,Object.defineProperty(Zh,"__esModule",{value:!0}),Zh.default=void 0,Zh.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"]]}),Zh)),a=F((em||(em=1,Object.defineProperty(tm,"__esModule",{value:!0}),tm.default=void 0,tm.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"]]}),tm)),i=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:"bibliography [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["doc-biblioentry"]],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]}),rm)),o=F((sm||(sm=1,Object.defineProperty(am,"__esModule",{value:!0}),am.default=void 0,am.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"]]}),am)),l=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:"chapter [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]}),om)),c=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:"colophon [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]}),cm)),p=F((pm||(pm=1,Object.defineProperty(um,"__esModule",{value:!0}),um.default=void 0,um.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"]]}),um)),u=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:"cover [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","img"]]}),hm)),d=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:[{concept:{name:"credit [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]}),fm)),h=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:"credits [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]}),vm)),m=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:"dedication [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]}),bm)),f=F((_m||(_m=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:"rearnote [EPUB-SSV]"},module:"EPUB"}],requireContextRole:["doc-endnotes"],requiredContextRole:["doc-endnotes"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","listitem"]]}),xm)),y=F((wm||(wm=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:"rearnotes [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["doc-endnote"]],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]}),Cm)),v=F((km||(km=1,Object.defineProperty(Sm,"__esModule",{value:!0}),Sm.default=void 0,Sm.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"]]}),Sm)),g=F((Pm||(Pm=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:"epilogue [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]}),Em)),b=F((Am||(Am=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:"errata [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]}),Tm)),_=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:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]}),Rm)),x=F((Im||(Im=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:"footnote [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]}),qm)),w=F((Lm||(Lm=1,Object.defineProperty(Mm,"__esModule",{value:!0}),Mm.default=void 0,Mm.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"]]}),Mm)),C=F((Om||(Om=1,Object.defineProperty(Nm,"__esModule",{value:!0}),Nm.default=void 0,Nm.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"]]}),Nm)),k=F((Dm||(Dm=1,Object.defineProperty(jm,"__esModule",{value:!0}),jm.default=void 0,jm.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"]]}),jm)),S=F((Bm||(Bm=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:[{concept:{name:"index [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark","navigation"]]}),Fm)),P=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:"introduction [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]}),Hm)),E=F((Um||(Um=1,Object.defineProperty(zm,"__esModule",{value:!0}),zm.default=void 0,zm.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"]]}),zm)),A=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:{"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"]]}),Gm)),T=F((Km||(Km=1,Object.defineProperty(Xm,"__esModule",{value:!0}),Xm.default=void 0,Xm.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"]]}),Xm)),$=F((Jm||(Jm=1,Object.defineProperty(Qm,"__esModule",{value:!0}),Qm.default=void 0,Qm.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"]]}),Qm)),R=F((Ym||(Ym=1,Object.defineProperty(Zm,"__esModule",{value:!0}),Zm.default=void 0,Zm.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"]]}),Zm)),I=F((ef||(ef=1,Object.defineProperty(tf,"__esModule",{value:!0}),tf.default=void 0,tf.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"]]}),tf)),q=F((nf||(nf=1,Object.defineProperty(rf,"__esModule",{value:!0}),rf.default=void 0,rf.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"]]}),rf)),L=F((sf||(sf=1,Object.defineProperty(af,"__esModule",{value:!0}),af.default=void 0,af.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"]]}),af)),M=F((of||(of=1,Object.defineProperty(lf,"__esModule",{value:!0}),lf.default=void 0,lf.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"]]}),lf)),O=F((cf||(cf=1,Object.defineProperty(pf,"__esModule",{value:!0}),pf.default=void 0,pf.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"]]}),pf)),N=F((uf||(uf=1,Object.defineProperty(df,"__esModule",{value:!0}),df.default=void 0,df.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"]]}),df)),D=F((hf||(hf=1,Object.defineProperty(mf,"__esModule",{value:!0}),mf.default=void 0,mf.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"]]}),mf)),j=F((ff||(ff=1,Object.defineProperty(yf,"__esModule",{value:!0}),yf.default=void 0,yf.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"]]}),yf)),B=F((vf||(vf=1,Object.defineProperty(bf,"__esModule",{value:!0}),bf.default=void 0,bf.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"]]}),bf));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",p.default],["doc-cover",u.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",_.default],["doc-footnote",x.default],["doc-foreword",w.default],["doc-glossary",C.default],["doc-glossref",k.default],["doc-index",S.default],["doc-introduction",P.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 Uh.default=V,Uh}var xf,wf={},Cf={};var kf,Sf={};var Pf,Ef,Af,Tf={};function $f(){if(Ef)return wf;Ef=1,Object.defineProperty(wf,"__esModule",{value:!0}),wf.default=void 0;var e=r((xf||(xf=1,Object.defineProperty(Cf,"__esModule",{value:!0}),Cf.default=void 0,Cf.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"]]}),Cf)),t=r((kf||(kf=1,Object.defineProperty(Sf,"__esModule",{value:!0}),Sf.default=void 0,Sf.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"]]}),Sf)),n=r((Pf||(Pf=1,Object.defineProperty(Tf,"__esModule",{value:!0}),Tf.default=void 0,Tf.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"]]}),Tf));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 wf.default=s,wf}function Rf(){if(Af)return cp;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)}Af=1,Object.defineProperty(cp,"__esModule",{value:!0}),cp.default=void 0;var t=i(Mp()),n=i(Vh()),r=i(_f()),s=i($f()),a=i(rp());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=p(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)||p(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 p(e,t){if(e){if("string"==typeof e)return u(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)?u(e,t):void 0}}function u(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 cp.default=(0,a.default)(h,h.entries()),cp}var If,qf={};function Lf(){if(If)return qf;If=1,Object.defineProperty(qf,"__esModule",{value:!0}),qf.default=void 0;var e=n(rp()),t=n(Rf());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 p=[].concat(c.baseConcepts,c.relatedConcepts),u=0;u<p.length;u++){var d=p[u];"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 qf.default=(0,e.default)(h,h.entries()),qf}var Mf,Of,Nf={};function Df(){if(Mf)return Nf;Mf=1,Object.defineProperty(Nf,"__esModule",{value:!0}),Nf.default=void 0;var e=n(rp()),t=n(Rf());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),p=[];if(c){for(var u=[].concat(c.baseConcepts,c.relatedConcepts),d=0;d<u.length;d++){var h=u[d];if("HTML"===h.module){var m=h.concept;null!=m&&p.push(m)}}p.length>0&&a.push([l,p])}}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 Nf.default=(0,e.default)(f,f.entries()),Nf}var jf,Bf,Ff=function(){if(Of)return Zc;Of=1,Object.defineProperty(Zc,"__esModule",{value:!0}),Zc.roles=Zc.roleElements=Zc.elementRoles=Zc.dom=Zc.aria=void 0;var e=a(sp()),t=a(op()),n=a(Rf()),r=a(Lf()),s=a(Df());function a(e){return e&&e.__esModule?e:{default:e}}return Zc.aria=e.default,Zc.dom=t.default,Zc.roles=n.default,Zc.elementRoles=r.default,Zc.roleElements=s.default,Zc}(),Vf={},Hf={},Uf={},zf={};function Wf(){if(Bf)return Uf;Bf=1,Object.defineProperty(Uf,"__esModule",{value:!0}),Uf.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(jf)return zf;jf=1,Object.defineProperty(zf,"__esModule",{value:!0}),zf.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 zf.default=e,zf}())&&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 Uf}var Gf,Kf={},Xf={};var Jf,Qf={};var Yf,Zf={};var ey,ty={};var ny,ry={};var sy,ay={};var iy,oy={};var ly,cy={};var py,uy={};var dy,hy={};var my,fy={};var yy,vy={};var gy,by={};var _y,xy={};var wy,Cy={};var ky,Sy={};var Py,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 pv,uv={};var dv,hv={};var mv,fv={};var yv,vv={};var gv,bv={};var _v,xv={};var wv,Cv={};var kv,Sv={};var Pv,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 pg,ug={};var dg,hg={};var mg,fg={};var yg,vg={};var gg,bg={};var _g,xg={};var wg,Cg={};var kg,Sg={};var Pg,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 pb,ub={};var db,hb={};var mb,fb={};var yb,vb={};var gb,bb={};var _b,xb={};var wb,Cb={};var kb,Sb={};var Pb,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 e_,t_={};var n_,r_={};var s_,a_={};var i_,o_={};var l_,c_={};var p_,u_={};var d_,h_={};var m_,f_={};var y_,v_={};var g_,b_={};var __,x_={};var w_,C_={};var k_,S_,P_,E_={};function A_(){if(S_)return Kf;S_=1,Object.defineProperty(Kf,"__esModule",{value:!0}),Kf.default=void 0;var e=vt(Wf()),t=vt(function(){if(Gf)return Xf;Gf=1,Object.defineProperty(Xf,"__esModule",{value:!0}),Xf.default=void 0;var e={relatedConcepts:[{module:"HTML",concept:{name:"abbr"}}],type:"structure"};return Xf.default=e,Xf}()),n=vt(function(){if(Jf)return Qf;Jf=1,Object.defineProperty(Qf,"__esModule",{value:!0}),Qf.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"alertdialog"}}],type:"window"};return Qf.default=e,Qf}()),r=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:"alert"}}],type:"structure"};return Zf.default=e,Zf}()),s=vt(function(){if(ey)return ty;ey=1,Object.defineProperty(ty,"__esModule",{value:!0}),ty.default=void 0;var e={relatedConcepts:[],type:"structure"};return ty.default=e,ty}()),a=vt(function(){if(ny)return ry;ny=1,Object.defineProperty(ry,"__esModule",{value:!0}),ry.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"application"}}],type:"window"};return ry.default=e,ry}()),i=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:"article"}},{module:"HTML",concept:{name:"article"}}],type:"structure"};return ay.default=e,ay}()),o=vt(function(){if(iy)return oy;iy=1,Object.defineProperty(oy,"__esModule",{value:!0}),oy.default=void 0;var e={relatedConcepts:[{module:"HTML",concept:{name:"audio"}}],type:"widget"};return oy.default=e,oy}()),l=vt(function(){if(ly)return cy;ly=1,Object.defineProperty(cy,"__esModule",{value:!0}),cy.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"banner"}}],type:"structure"};return cy.default=e,cy}()),c=vt(function(){if(py)return uy;py=1,Object.defineProperty(uy,"__esModule",{value:!0}),uy.default=void 0;var e={relatedConcepts:[{module:"HTML",concept:{name:"blockquote"}}],type:"structure"};return uy.default=e,uy}()),p=vt(function(){if(dy)return hy;dy=1,Object.defineProperty(hy,"__esModule",{value:!0}),hy.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{attributes:[{name:"aria-busy",value:"true"}]}}],type:"widget"};return hy.default=e,hy}()),u=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:"button"}},{module:"HTML",concept:{name:"button"}}],type:"widget"};return fy.default=e,fy}()),d=vt(function(){if(yy)return vy;yy=1,Object.defineProperty(vy,"__esModule",{value:!0}),vy.default=void 0;var e={relatedConcepts:[{module:"HTML",concept:{name:"canvas"}}],type:"widget"};return vy.default=e,vy}()),h=vt(function(){if(gy)return by;gy=1,Object.defineProperty(by,"__esModule",{value:!0}),by.default=void 0;var e={relatedConcepts:[{module:"HTML",concept:{name:"caption"}}],type:"structure"};return by.default=e,by}()),m=vt(function(){if(_y)return xy;_y=1,Object.defineProperty(xy,"__esModule",{value:!0}),xy.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"cell"}},{module:"ARIA",concept:{name:"gridcell"}},{module:"HTML",concept:{name:"td"}}],type:"widget"};return xy.default=e,xy}()),f=vt(function(){if(wy)return Cy;wy=1,Object.defineProperty(Cy,"__esModule",{value:!0}),Cy.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"checkbox"}},{module:"HTML",concept:{name:"input",attributes:[{name:"type",value:"checkbox"}]}}],type:"widget"};return Cy.default=e,Cy}()),y=vt(function(){if(ky)return Sy;ky=1,Object.defineProperty(Sy,"__esModule",{value:!0}),Sy.default=void 0;var e={relatedConcepts:[{module:"HTML",concept:{name:"input",attributes:[{name:"type",value:"color"}]}}],type:"widget"};return Sy.default=e,Sy}()),v=vt(function(){if(Py)return Ey;Py=1,Object.defineProperty(Ey,"__esModule",{value:!0}),Ey.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"columnheader"}},{module:"HTML",concept:{name:"th"}}],type:"widget"};return Ey.default=e,Ey}()),g=vt(function(){if(Ay)return Ty;Ay=1,Object.defineProperty(Ty,"__esModule",{value:!0}),Ty.default=void 0;var e={relatedConcepts:[],type:"structure"};return Ty.default=e,Ty}()),b=vt(function(){if($y)return Ry;$y=1,Object.defineProperty(Ry,"__esModule",{value:!0}),Ry.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"combobox"}},{module:"HTML",concept:{name:"select"}}],type:"widget"};return Ry.default=e,Ry}()),_=vt(function(){if(Iy)return qy;Iy=1,Object.defineProperty(qy,"__esModule",{value:!0}),qy.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"complementary"}}],type:"structure"};return qy.default=e,qy}()),x=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:"structureinfo"}}],type:"structure"};return My.default=e,My}()),w=vt(function(){if(Oy)return Ny;Oy=1,Object.defineProperty(Ny,"__esModule",{value:!0}),Ny.default=void 0;var e={relatedConcepts:[{module:"HTML",concept:{name:"input",attributes:[{name:"type",value:"date"}]}}],type:"widget"};return Ny.default=e,Ny}()),C=vt(function(){if(Dy)return jy;Dy=1,Object.defineProperty(jy,"__esModule",{value:!0}),jy.default=void 0;var e={relatedConcepts:[{module:"HTML",concept:{name:"input",attributes:[{name:"type",value:"datetime"}]}}],type:"widget"};return jy.default=e,jy}()),k=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:"dfn"}}],type:"structure"};return Fy.default=e,Fy}()),S=vt(function(){if(Vy)return Hy;Vy=1,Object.defineProperty(Hy,"__esModule",{value:!0}),Hy.default=void 0;var e={relatedConcepts:[{module:"HTML",concept:{name:"dd"}}],type:"structure"};return Hy.default=e,Hy}()),P=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:"dl"}}],type:"structure"};return zy.default=e,zy}()),E=vt(function(){if(Wy)return Gy;Wy=1,Object.defineProperty(Gy,"__esModule",{value:!0}),Gy.default=void 0;var e={relatedConcepts:[{module:"HTML",concept:{name:"dt"}}],type:"structure"};return Gy.default=e,Gy}()),A=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:"details"}}],type:"structure"};return Xy.default=e,Xy}()),T=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:"dialog"}},{module:"HTML",concept:{name:"dialog"}}],type:"window"};return Qy.default=e,Qy}()),$=vt(function(){if(Yy)return Zy;Yy=1,Object.defineProperty(Zy,"__esModule",{value:!0}),Zy.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"directory"}},{module:"HTML",concept:{name:"dir"}}],type:"structure"};return Zy.default=e,Zy}()),R=vt(function(){if(ev)return tv;ev=1,Object.defineProperty(tv,"__esModule",{value:!0}),tv.default=void 0;var e={relatedConcepts:[{module:"HTML",concept:{constraints:["scoped to a details element"],name:"summary"}}],type:"widget"};return tv.default=e,tv}()),I=vt(function(){if(nv)return rv;nv=1,Object.defineProperty(rv,"__esModule",{value:!0}),rv.default=void 0;var e={relatedConcepts:[{module:"HTML",concept:{name:"div"}}],type:"generic"};return rv.default=e,rv}()),q=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:"document"}}],type:"structure"};return av.default=e,av}()),L=vt(function(){if(iv)return ov;iv=1,Object.defineProperty(ov,"__esModule",{value:!0}),ov.default=void 0;var e={relatedConcepts:[{module:"HTML",concept:{name:"embed"}}],type:"widget"};return ov.default=e,ov}()),M=vt(function(){if(lv)return cv;lv=1,Object.defineProperty(cv,"__esModule",{value:!0}),cv.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"feed"}}],type:"structure"};return cv.default=e,cv}()),O=vt(function(){if(pv)return uv;pv=1,Object.defineProperty(uv,"__esModule",{value:!0}),uv.default=void 0;var e={relatedConcepts:[{module:"HTML",concept:{name:"figcaption"}}],type:"structure"};return uv.default=e,uv}()),N=vt(function(){if(dv)return hv;dv=1,Object.defineProperty(hv,"__esModule",{value:!0}),hv.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"figure"}},{module:"HTML",concept:{name:"figure"}}],type:"structure"};return hv.default=e,hv}()),D=vt(function(){if(mv)return fv;mv=1,Object.defineProperty(fv,"__esModule",{value:!0}),fv.default=void 0;var e={relatedConcepts:[{module:"HTML",concept:{name:"footer"}}],type:"structure"};return fv.default=e,fv}()),j=vt(function(){if(yv)return vv;yv=1,Object.defineProperty(vv,"__esModule",{value:!0}),vv.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"form"}},{module:"HTML",concept:{name:"form"}}],type:"structure"};return vv.default=e,vv}()),B=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:"grid"}}],type:"widget"};return bv.default=e,bv}()),F=vt(function(){if(_v)return xv;_v=1,Object.defineProperty(xv,"__esModule",{value:!0}),xv.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"group"}}],type:"structure"};return xv.default=e,xv}()),V=vt(function(){if(wv)return Cv;wv=1,Object.defineProperty(Cv,"__esModule",{value:!0}),Cv.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 Cv.default=e,Cv}()),H=vt(function(){if(kv)return Sv;kv=1,Object.defineProperty(Sv,"__esModule",{value:!0}),Sv.default=void 0;var e={relatedConcepts:[],type:"window"};return Sv.default=e,Sv}()),U=vt(function(){if(Pv)return Ev;Pv=1,Object.defineProperty(Ev,"__esModule",{value:!0}),Ev.default=void 0;var e={relatedConcepts:[{module:"HTML",concept:{name:"iframe"}}],type:"window"};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:[],type:"structure"};return Tv.default=e,Tv}()),W=vt(function(){if($v)return Rv;$v=1,Object.defineProperty(Rv,"__esModule",{value:!0}),Rv.default=void 0;var e={relatedConcepts:[],type:"widget"};return Rv.default=e,Rv}()),G=vt(function(){if(Iv)return qv;Iv=1,Object.defineProperty(qv,"__esModule",{value:!0}),qv.default=void 0;var e={relatedConcepts:[{module:"HTML",concept:{name:"img",attributes:[{name:"usemap"}]}}],type:"structure"};return qv.default=e,qv}()),K=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:"img"}},{module:"HTML",concept:{name:"img"}}],type:"structure"};return Mv.default=e,Mv}()),X=vt(function(){if(Ov)return Nv;Ov=1,Object.defineProperty(Nv,"__esModule",{value:!0}),Nv.default=void 0;var e={relatedConcepts:[{module:"HTML",concept:{name:"input"}}],type:"widget"};return Nv.default=e,Nv}()),J=vt(function(){if(Dv)return jv;Dv=1,Object.defineProperty(jv,"__esModule",{value:!0}),jv.default=void 0;var e={relatedConcepts:[{module:"HTML",concept:{name:"input",attributes:[{name:"type",value:"time"}]}}],type:"widget"};return jv.default=e,jv}()),Q=vt(function(){if(Bv)return Fv;Bv=1,Object.defineProperty(Fv,"__esModule",{value:!0}),Fv.default=void 0;var e={relatedConcepts:[{module:"HTML",concept:{name:"label"}}],type:"structure"};return Fv.default=e,Fv}()),Y=vt(function(){if(Vv)return Hv;Vv=1,Object.defineProperty(Hv,"__esModule",{value:!0}),Hv.default=void 0;var e={relatedConcepts:[{module:"HTML",concept:{name:"legend"}}],type:"structure"};return Hv.default=e,Hv}()),Z=vt(function(){if(Uv)return zv;Uv=1,Object.defineProperty(zv,"__esModule",{value:!0}),zv.default=void 0;var e={relatedConcepts:[{module:"HTML",concept:{name:"br"}}],type:"structure"};return zv.default=e,zv}()),ee=vt(function(){if(Wv)return Gv;Wv=1,Object.defineProperty(Gv,"__esModule",{value:!0}),Gv.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"link"}},{module:"HTML",concept:{name:"a",attributes:[{name:"href"}]}}],type:"widget"};return Gv.default=e,Gv}()),te=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:"option"}},{module:"HTML",concept:{name:"option"}}],type:"widget"};return Xv.default=e,Xv}()),ne=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:"listbox"}},{module:"HTML",concept:{name:"datalist"}},{module:"HTML",concept:{name:"select"}}],type:"widget"};return Qv.default=e,Qv}()),re=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:"listitem"}},{module:"HTML",concept:{name:"li"}}],type:"structure"};return Zv.default=e,Zv}()),se=vt(function(){if(eg)return tg;eg=1,Object.defineProperty(tg,"__esModule",{value:!0}),tg.default=void 0;var e={relatedConcepts:[],type:"structure"};return tg.default=e,tg}()),ae=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:"list"}},{module:"HTML",concept:{name:"ul"}},{module:"HTML",concept:{name:"ol"}}],type:"structure"};return rg.default=e,rg}()),ie=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:"log"}}],type:"structure"};return ag.default=e,ag}()),oe=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:"main"}},{module:"HTML",concept:{name:"main"}}],type:"structure"};return og.default=e,og}()),le=vt(function(){if(lg)return cg;lg=1,Object.defineProperty(cg,"__esModule",{value:!0}),cg.default=void 0;var e={relatedConcepts:[{module:"HTML",concept:{name:"mark"}}],type:"structure"};return cg.default=e,cg}()),ce=vt(function(){if(pg)return ug;pg=1,Object.defineProperty(ug,"__esModule",{value:!0}),ug.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"marquee"}},{module:"HTML",concept:{name:"marquee"}}],type:"structure"};return ug.default=e,ug}()),pe=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:"math"}}],type:"structure"};return hg.default=e,hg}()),ue=vt(function(){if(mg)return fg;mg=1,Object.defineProperty(fg,"__esModule",{value:!0}),fg.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"menubar"}}],type:"structure"};return fg.default=e,fg}()),de=vt(function(){if(yg)return vg;yg=1,Object.defineProperty(vg,"__esModule",{value:!0}),vg.default=void 0;var e={relatedConcepts:[],type:"widget"};return vg.default=e,vg}()),he=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:"menuitem"}},{module:"HTML",concept:{name:"menuitem"}}],type:"widget"};return bg.default=e,bg}()),me=vt(function(){if(_g)return xg;_g=1,Object.defineProperty(xg,"__esModule",{value:!0}),xg.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"menuitemcheckbox"}}],type:"widget"};return xg.default=e,xg}()),fe=vt(function(){if(wg)return Cg;wg=1,Object.defineProperty(Cg,"__esModule",{value:!0}),Cg.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"menuitemradio"}}],type:"widget"};return Cg.default=e,Cg}()),ye=vt(function(){if(kg)return Sg;kg=1,Object.defineProperty(Sg,"__esModule",{value:!0}),Sg.default=void 0;var e={relatedConcepts:[],type:"widget"};return Sg.default=e,Sg}()),ve=vt(function(){if(Pg)return Eg;Pg=1,Object.defineProperty(Eg,"__esModule",{value:!0}),Eg.default=void 0;var e={relatedConcepts:[],type:"widget"};return Eg.default=e,Eg}()),ge=vt(function(){if(Ag)return Tg;Ag=1,Object.defineProperty(Tg,"__esModule",{value:!0}),Tg.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"menu"}},{module:"HTML",concept:{name:"menu"}}],type:"structure"};return Tg.default=e,Tg}()),be=vt(function(){if($g)return Rg;$g=1,Object.defineProperty(Rg,"__esModule",{value:!0}),Rg.default=void 0;var e={relatedConcepts:[{module:"HTML",concept:{name:"meter"}}],type:"structure"};return Rg.default=e,Rg}()),_e=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:"navigation"}},{module:"HTML",concept:{name:"nav"}}],type:"structure"};return qg.default=e,qg}()),xe=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:"none"}}],type:"structure"};return Mg.default=e,Mg}()),we=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:"note"}}],type:"structure"};return Ng.default=e,Ng}()),Ce=vt(function(){if(Dg)return jg;Dg=1,Object.defineProperty(jg,"__esModule",{value:!0}),jg.default=void 0;var e={relatedConcepts:[],type:"structure"};return jg.default=e,jg}()),ke=vt(function(){if(Bg)return Fg;Bg=1,Object.defineProperty(Fg,"__esModule",{value:!0}),Fg.default=void 0;var e={relatedConcepts:[{module:"HTML",concept:{name:"p"}}],type:"structure"};return Fg.default=e,Fg}()),Se=vt(function(){if(Vg)return Hg;Vg=1,Object.defineProperty(Hg,"__esModule",{value:!0}),Hg.default=void 0;var e={relatedConcepts:[],type:"widget"};return Hg.default=e,Hg}()),Pe=vt(function(){if(Ug)return zg;Ug=1,Object.defineProperty(zg,"__esModule",{value:!0}),zg.default=void 0;var e={relatedConcepts:[{module:"HTML",concept:{name:"pre"}}],type:"structure"};return zg.default=e,zg}()),Ee=vt(function(){if(Wg)return Gg;Wg=1,Object.defineProperty(Gg,"__esModule",{value:!0}),Gg.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"presentation"}}],type:"structure"};return Gg.default=e,Gg}()),Ae=vt(function(){if(Kg)return Xg;Kg=1,Object.defineProperty(Xg,"__esModule",{value:!0}),Xg.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"progressbar"}},{module:"HTML",concept:{name:"progress"}}],type:"structure"};return Xg.default=e,Xg}()),Te=vt(function(){if(Jg)return Qg;Jg=1,Object.defineProperty(Qg,"__esModule",{value:!0}),Qg.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"radio"}},{module:"HTML",concept:{name:"input",attributes:[{name:"type",value:"radio"}]}}],type:"widget"};return Qg.default=e,Qg}()),$e=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:"radiogroup"}}],type:"structure"};return Zg.default=e,Zg}()),Re=vt(function(){if(eb)return tb;eb=1,Object.defineProperty(tb,"__esModule",{value:!0}),tb.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"region"}}],type:"structure"};return tb.default=e,tb}()),Ie=vt(function(){if(nb)return rb;nb=1,Object.defineProperty(rb,"__esModule",{value:!0}),rb.default=void 0;var e={relatedConcepts:[],type:"structure"};return rb.default=e,rb}()),qe=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:"rowheader"}},{module:"HTML",concept:{name:"th",attributes:[{name:"scope",value:"row"}]}}],type:"widget"};return ab.default=e,ab}()),Le=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:"row"}},{module:"HTML",concept:{name:"tr"}}],type:"structure"};return ob.default=e,ob}()),Me=vt(function(){if(lb)return cb;lb=1,Object.defineProperty(cb,"__esModule",{value:!0}),cb.default=void 0;var e={relatedConcepts:[{module:"HTML",concept:{name:"ruby"}}],type:"structure"};return cb.default=e,cb}()),Oe=vt(function(){if(pb)return ub;pb=1,Object.defineProperty(ub,"__esModule",{value:!0}),ub.default=void 0;var e={relatedConcepts:[],type:"structure"};return ub.default=e,ub}()),Ne=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}()),De=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:"scrollbar"}}],type:"widget"};return fb.default=e,fb}()),je=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}()),Be=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:"search"}}],type:"structure"};return bb.default=e,bb}()),Fe=vt(function(){if(_b)return xb;_b=1,Object.defineProperty(xb,"__esModule",{value:!0}),xb.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"searchbox"}},{module:"HTML",concept:{name:"input",attributes:[{name:"type",value:"search"}]}}],type:"widget"};return xb.default=e,xb}()),Ve=vt(function(){if(wb)return Cb;wb=1,Object.defineProperty(Cb,"__esModule",{value:!0}),Cb.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"slider"}},{module:"HTML",concept:{name:"input",attributes:[{name:"type",value:"range"}]}}],type:"widget"};return Cb.default=e,Cb}()),He=vt(function(){if(kb)return Sb;kb=1,Object.defineProperty(Sb,"__esModule",{value:!0}),Sb.default=void 0;var e={relatedConcepts:[],type:"structure"};return Sb.default=e,Sb}()),Ue=vt(function(){if(Pb)return Eb;Pb=1,Object.defineProperty(Eb,"__esModule",{value:!0}),Eb.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"spinbutton"}},{module:"HTML",concept:{name:"input",attributes:[{name:"type",value:"number"}]}}],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}()),We=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:"separator"}}],type:"widget"};return Rb.default=e,Rb}()),Ge=vt(function(){if(Ib)return qb;Ib=1,Object.defineProperty(qb,"__esModule",{value:!0}),qb.default=void 0;var e={relatedConcepts:[],type:"structure"};return qb.default=e,qb}()),Ke=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:"status"}}],type:"structure"};return Mb.default=e,Mb}()),Xe=vt(function(){if(Ob)return Nb;Ob=1,Object.defineProperty(Nb,"__esModule",{value:!0}),Nb.default=void 0;var e={relatedConcepts:[],type:"structure"};return Nb.default=e,Nb}()),Je=vt(function(){if(Db)return jb;Db=1,Object.defineProperty(jb,"__esModule",{value:!0}),jb.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"switch"}},{module:"HTML",concept:{name:"input",attributes:[{name:"type",value:"checkbox"}]}}],type:"widget"};return jb.default=e,jb}()),Qe=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:"tablist"}}],type:"structure"};return Fb.default=e,Fb}()),Ye=vt(function(){if(Vb)return Hb;Vb=1,Object.defineProperty(Hb,"__esModule",{value:!0}),Hb.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"tab"}}],type:"widget"};return Hb.default=e,Hb}()),Ze=vt(function(){if(Ub)return zb;Ub=1,Object.defineProperty(zb,"__esModule",{value:!0}),zb.default=void 0;var e={relatedConcepts:[],type:"structure"};return zb.default=e,zb}()),et=vt(function(){if(Wb)return Gb;Wb=1,Object.defineProperty(Gb,"__esModule",{value:!0}),Gb.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"table"}},{module:"HTML",concept:{name:"table"}}],type:"structure"};return Gb.default=e,Gb}()),tt=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:"tablist"}}],type:"structure"};return Xb.default=e,Xb}()),nt=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:"tabpanel"}}],type:"structure"};return Qb.default=e,Qb}()),rt=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:"term"}}],type:"structure"};return Zb.default=e,Zb}()),st=vt(function(){if(e_)return t_;e_=1,Object.defineProperty(t_,"__esModule",{value:!0}),t_.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 t_.default=e,t_}()),at=vt(function(){if(n_)return r_;n_=1,Object.defineProperty(r_,"__esModule",{value:!0}),r_.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 r_.default=e,r_}()),it=vt(function(){if(s_)return a_;s_=1,Object.defineProperty(a_,"__esModule",{value:!0}),a_.default=void 0;var e={relatedConcepts:[{module:"HTML",concept:{name:"time"}}],type:"structure"};return a_.default=e,a_}()),ot=vt(function(){if(i_)return o_;i_=1,Object.defineProperty(o_,"__esModule",{value:!0}),o_.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"timer"}}],type:"structure"};return o_.default=e,o_}()),lt=vt(function(){if(l_)return c_;l_=1,Object.defineProperty(c_,"__esModule",{value:!0}),c_.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{attributes:[{name:"aria-pressed"}]}}],type:"widget"};return c_.default=e,c_}()),ct=vt(function(){if(p_)return u_;p_=1,Object.defineProperty(u_,"__esModule",{value:!0}),u_.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"toolbar"}}],type:"structure"};return u_.default=e,u_}()),pt=vt(function(){if(d_)return h_;d_=1,Object.defineProperty(h_,"__esModule",{value:!0}),h_.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"tree"}}],type:"widget"};return h_.default=e,h_}()),ut=vt(function(){if(m_)return f_;m_=1,Object.defineProperty(f_,"__esModule",{value:!0}),f_.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"treegrid"}}],type:"widget"};return f_.default=e,f_}()),dt=vt(function(){if(y_)return v_;y_=1,Object.defineProperty(v_,"__esModule",{value:!0}),v_.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"treeitem"}}],type:"widget"};return v_.default=e,v_}()),ht=vt(function(){if(g_)return b_;g_=1,Object.defineProperty(b_,"__esModule",{value:!0}),b_.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"tooltip"}}],type:"structure"};return b_.default=e,b_}()),mt=vt(function(){if(__)return x_;__=1,Object.defineProperty(x_,"__esModule",{value:!0}),x_.default=void 0;var e={relatedConcepts:[{module:"HTML",concept:{name:"video"}}],type:"widget"};return x_.default=e,x_}()),ft=vt(function(){if(w_)return C_;w_=1,Object.defineProperty(C_,"__esModule",{value:!0}),C_.default=void 0;var e={relatedConcepts:[],type:"structure"};return C_.default=e,C_}()),yt=vt(function(){if(k_)return E_;k_=1,Object.defineProperty(E_,"__esModule",{value:!0}),E_.default=void 0;var e={relatedConcepts:[],type:"window"};return E_.default=e,E_}());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 _t=[["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",p.default],["ButtonRole",u.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",_.default],["ContentInfoRole",x.default],["DateRole",w.default],["DateTimeRole",C.default],["DefinitionRole",k.default],["DescriptionListDetailRole",S.default],["DescriptionListRole",P.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",pe.default],["MenuBarRole",ue.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",_e.default],["NoneRole",xe.default],["NoteRole",we.default],["OutlineRole",Ce.default],["ParagraphRole",ke.default],["PopUpButtonRole",Se.default],["PreRole",Pe.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",pt.default],["TreeGridRole",ut.default],["TreeItemRole",dt.default],["UserInterfaceTooltipRole",ht.default],["VideoRole",mt.default],["WebAreaRole",ft.default],["WindowRole",yt.default]],xt={entries:function(){return _t},forEach:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=0,r=_t;n<r.length;n++){var s=gt(r[n],2),a=s[0],i=s[1];e.call(t,i,a,_t)}},get:function(e){var t=_t.find((function(t){return t[0]===e}));return t&&t[1]},has:function(e){return!!xt.get(e)},keys:function(){return _t.map((function(e){return gt(e,1)[0]}))},values:function(){return _t.map((function(e){return gt(e,2)[1]}))}},wt=(0,e.default)(xt,xt.entries());return Kf.default=wt,Kf}function T_(){if(P_)return Hf;P_=1,Object.defineProperty(Hf,"__esModule",{value:!0}),Hf.default=void 0;var e=n(Wf()),t=n(A_());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 p={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!!p.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]}))}},u=(0,e.default)(p,p.entries());return Hf.default=u,Hf}var $_,R_={};function I_(){if($_)return R_;$_=1,Object.defineProperty(R_,"__esModule",{value:!0}),R_.default=void 0;var e=n(Wf()),t=n(A_());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 p={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!!p.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]}))}},u=(0,e.default)(p,p.entries());return R_.default=u,R_}var q_,L_,M_={};function O_(){if(q_)return M_;q_=1,Object.defineProperty(M_,"__esModule",{value:!0}),M_.default=void 0;var e=n(A_()),t=n(Wf());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 p={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!!p.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]}))}},u=(0,t.default)(p,p.entries());return M_.default=u,M_}var N_=function(){if(L_)return Vf;L_=1,Object.defineProperty(Vf,"__esModule",{value:!0}),Vf.elementAXObjects=Vf.AXObjects=Vf.AXObjectRoles=Vf.AXObjectElements=void 0;var e=s(T_()),t=s(I_()),n=s(A_()),r=s(O_());function s(e){return e&&e.__esModule?e:{default:e}}var a=e.default;Vf.AXObjectElements=a;var i=t.default;Vf.AXObjectRoles=i;var o=n.default;Vf.AXObjects=o;var l=r.default;return Vf.elementAXObjects=l,Vf}();const D_=Ff.roles.keys(),j_=D_.filter((e=>Ff.roles.get(e)?.abstract)),B_=D_.filter((e=>!j_.includes(e))),F_=B_.filter((e=>{const t=Ff.roles.get(e);return!["toolbar","tabpanel","generic","cell"].includes(e)&&!t?.superClass.some((e=>e.includes("widget")))})).concat("progressbar"),V_=B_.filter((e=>!F_.includes(e)&&"generic"!==e));function H_(e){return F_.includes(e)}function U_(e){return V_.includes(e)}function z_(e){return j_.includes(e)}const W_=["presentation","none"];function G_(e){return W_.includes(e)}function K_(e,t){if("input"===e){if("hidden"===Rx(t.get("type")))return!0}const n=t.get("aria-hidden");if(!n)return!1;const r=Rx(n);return null===r||(!0===r||"true"===r)}function X_(e){if(Rx(e.get("disabled")))return!0;const t=e.get("aria-disabled");if(t){if("true"===Rx(t))return!0}return!1}const J_=[];Ff.elementRoles.entries().forEach((([e,t])=>{[...t].every((e=>"generic"!==e&&F_.includes(e)))&&J_.push(e)}));const Q_=[];Ff.elementRoles.entries().forEach((([e,t])=>{[...t].every((e=>V_.includes(e)))&&Q_.push(e)}));const Y_=[...N_.AXObjects.keys()].filter((e=>"widget"===N_.AXObjects.get(e).type)),Z_=[...N_.AXObjects.keys()].filter((e=>["windows","structure"].includes(N_.AXObjects.get(e).type))),ex=[];N_.elementAXObjects.entries().forEach((([e,t])=>{[...t].every((e=>Y_.includes(e)))&&ex.push(e)}));const tx=[];function nx(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===Ix(t))})))}N_.elementAXObjects.entries().forEach((([e,t])=>{[...t].every((e=>Z_.includes(e)))&&tx.push(e)}));const rx={Interactive:"interactive",NonInteractive:"non-interactive",Static:"static"};function sx(e,t){return Q_.some((n=>nx(n,e,t)))?rx.Interactive:"header"!==e&&J_.some((n=>nx(n,e,t)))?rx.NonInteractive:ex.some((n=>nx(n,e,t)))?rx.Interactive:tx.some((n=>nx(n,e,t)))?rx.NonInteractive:rx.Static}function ax(e,t){return sx(e,t)===rx.Interactive}function ix(e,t){return sx(e,t)===rx.NonInteractive}function ox(e,t){return sx(e,t)===rx.Static}function lx(e,t,n){for(const[r,s]of N_.elementAXObjects.entries())if(r.name===t&&(!r.attributes||r.attributes.every((e=>n.has(e.name)&&Rx(n.get(e.name))===e.value))))for(const t of s){const n=N_.AXObjectRoles.get(t);if(n)for(const{name:t}of n)if(t===e)return!0}return!1}const cx=["shipping","billing"],px=["","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"],ux=["home","work","mobile","fax","pager"],dx=["tel","tel-country-code","tel-national","tel-area-code","tel-local","tel-local-prefix","tel-local-suffix","tel-extension","email","impp"];const hx="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(" "),mx={a:["href"],area:["alt","aria-label","aria-labelledby"],html:["lang"],iframe:["title"],img:["alt"],object:["title","aria-label","aria-labelledby"]},fx=["blink","marquee"],yx=["h1","h2","h3","h4","h5","h6"],vx=["button","input","keygen","meter","output","progress","select","textarea"],gx=["keypress","keydown","keyup","click","contextmenu","dblclick","drag","dragend","dragenter","dragexit","dragleave","dragover","dragstart","drop","mousedown","mouseenter","mouseleave","mousemove","mouseout","mouseover","mouseup"],bx=["click","mousedown","mouseup","keypress","keydown","keyup"],_x=new Map([["header","banner"],["footer","contentinfo"]]),xx=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"]]),wx=new Map([["command","menuitem"],["checkbox","menuitemcheckbox"],["radio","menuitemradio"]]),Cx=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"]]),kx={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"]},Sx=["email","search","tel","text","url"];function Px(e,t){return"menuitem"===e?function(e){const t=e.get("type");if(!t)return;const n=Ix(t);return n?wx.get(n):void 0}(t):"input"===e?function(e){const t=e.get("type");if(!t)return;const n=Ix(t);if(!n)return;return e.has("list")&&Sx.includes(n)?"combobox":Cx.get(n)}(t):xx.get(e)}const Ex=["meta","html","script","style"];function Ax(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 Tx(e,t,n,r){const a=n.type;if(null!==r)if(!0===r&&(r=""),"boolean"===a&&"true"!==r&&"false"!==r)!function(e,t){Ce(e,"a11y_incorrect_aria_attribute_type_boolean",`The value of '${t}' must be either 'true' or 'false'. It cannot be empty\nhttps://svelte.dev/e/a11y_incorrect_aria_attribute_type_boolean`)}(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){Ce(e,"a11y_incorrect_aria_attribute_type_idlist",`The value of '${t}' must be a space-separated list of strings that represent DOM element IDs\nhttps://svelte.dev/e/a11y_incorrect_aria_attribute_type_idlist`)}(e,t);else if("token"===a){const s=(n.values??[]).map((e=>e.toString()));s.includes(r.toLowerCase())||function(e,t,n){Ce(e,"a11y_incorrect_aria_attribute_type_token",`The value of '${t}' must be exactly one of ${n}\nhttps://svelte.dev/e/a11y_incorrect_aria_attribute_type_token`)}(e,t,Ko(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){Ce(e,"a11y_incorrect_aria_attribute_type_tokenlist",`The value of '${t}' must be a space-separated list of one or more of ${n}\nhttps://svelte.dev/e/a11y_incorrect_aria_attribute_type_tokenlist`)}(e,t,Ko(a.map((e=>`"${e}"`))))}else"tristate"===a&&"true"!==r&&"false"!==r&&"mixed"!==r&&function(e,t){Ce(e,"a11y_incorrect_aria_attribute_type_tristate",`The value of '${t}' must be exactly one of true, false, or mixed\nhttps://svelte.dev/e/a11y_incorrect_aria_attribute_type_tristate`)}(e,t);else Te(e,t,"non-empty string");else Te(e,t,"number");else!function(e,t){Ce(e,"a11y_incorrect_aria_attribute_type_integer",`The value of '${t}' must be an integer\nhttps://svelte.dev/e/a11y_incorrect_aria_attribute_type_integer`)}(e,t)}function $x(e,t,n=e.name){!function(e,t,n,r){Ce(e,"a11y_missing_attribute",`\`<${t}>\` element should have ${n} ${r} attribute\nhttps://svelte.dev/e/a11y_missing_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 Rx(e){return e?!0===e.value||(Fi(e)?e.value[0].data:null):null}function Ix(e){const t=Rx(e);return!0===t?null:t}function qx(e,n){const r=new Map,a=new Set,i=[],o="SvelteElement"===e.type;let l=!1,c=!1,u=!1;for(const t of e.attributes)"SpreadAttribute"===t.type?l=!0:"OnDirective"===t.type?a.add(t.name):"Attribute"===t.type?zi(t)?a.add(t.name.slice(2)):(i.push(t),r.set(t.name,t),"contenteditable"===t.name&&(c=!0)):"BindDirective"===t.type&&Z(t.name)&&(u=!0);for(const t of e.attributes){if("Attribute"!==t.type)continue;const l=t.name.toLowerCase();if(l.startsWith("aria-")){Ex.includes(e.name)&&Pe(t,e.name);const n=l.slice(5);if(!hx.includes(n)){Ve(t,n,A(n,hx))}"aria-hidden"===l&&v.test(e.name)&&Ae(t,e.name);let s=Rx(t);const a=Ff.aria.get(l);void 0!==a&&Tx(t,l,a,s),"aria-activedescendant"!==l||o||ax(e.name,r)||r.has("tabindex")||Se(t)}if("role"===l){Ex.includes(e.name)&&Re(t,e.name);const l=Rx(t);if("string"==typeof l)for(const c of l.split(s)){const s=c;if(s&&z_(s))Le(t,s);else if(s&&!D_.includes(s)){He(t,s,A(s,D_))}s!==Px(e.name,r)||["ul","ol","li"].includes(e.name)||"a"===e.name&&!r.has("href")||Ne(t,s);if(!Ax(n.path,["section","article"])){s===_x.get(e.name)&&Ne(t,s)}if(!o&&!lx(s,e.name,r)){const e=Ff.roles.get(s);if(e){const n=Object.keys(e.requiredProps),r=n.some((e=>!i.find((t=>t.name===e))));r&&je(t,s,Ko(n.map((e=>`"${e}"`)),"and"))}}if(!X_(r)&&!K_(e.name,r)&&!G_(s)&&U_(s)&&ox(e.name,r)&&!r.get("tabindex")){[...a].some((e=>gx.includes(e)))&&$e(e,s)}ax(e.name,r)&&(H_(s)||G_(s))&&Me(e,e.name,s),ix(e.name,r)&&U_(s)&&!kx[e.name]?.includes(s)&&Oe(e,e.name,s)}}if("accesskey"===l&&ke(t),"autofocus"===l&&Ee(t),"scope"!==l||o||"th"===e.name||Ie(t),"tabindex"===l){const e=Rx(t);!isNaN(e)&&+e>0&&De(t)}}const d=r.get("role"),h=Ix(d);if(a.has("click")){const t=null!==h&&!G_(h);if(!o&&!K_(e.name,r)&&(!d||t)&&!ax(e.name,r)&&!l){a.has("keydown")||a.has("keyup")||a.has("keypress")||function(e){Ce(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\nhttps://svelte.dev/e/a11y_click_events_have_key_events')}(e)}}const m=d?h:Px(e.name,r);if(!o&&!ax(e.name,r)&&!U_(h)){const t=r.get("tabindex"),n=Ix(t);t&&(null===n||Number(n)>=0)&&function(e){Ce(e,"a11y_no_noninteractive_tabindex","noninteractive element cannot have nonnegative tabIndex value\nhttps://svelte.dev/e/a11y_no_noninteractive_tabindex")}(e)}if("string"==typeof m&&Ff.roles.has(m)){const{props:t}=Ff.roles.get(m),n=Ff.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):Be(t,t.name,m))}if(!c&&!K_(e.name,r)&&!G_(h)&&(!ax(e.name,r)&&H_(h)||ix(e.name,r)&&!d)){[...a].some((e=>bx.includes(e)))&&function(e,t){Ce(e,"a11y_no_noninteractive_element_interactions",`Non-interactive element \`<${t}>\` should not be assigned mouse or keyboard event listeners\nhttps://svelte.dev/e/a11y_no_noninteractive_element_interactions`)}(e,e.name)}if(!(d&&null===h||K_(e.name,r)||G_(h)||ax(e.name,r)||U_(h)||ix(e.name,r)||H_(h)||z_(h))){const t=[...a].filter((e=>gx.includes(e)));t.length>0&&function(e,t,n){Ce(e,"a11y_no_static_element_interactions",`\`<${t}>\` with a ${n} handler must have an ARIA role\nhttps://svelte.dev/e/a11y_no_static_element_interactions`)}(e,e.name,Ko(t))}a.has("mouseover")&&!a.has("focus")&&qe(e,"mouseover","focus"),a.has("mouseout")&&!a.has("blur")&&qe(e,"mouseout","blur");const f=r.has("aria-label")||r.has("aria-labelledby");if("a"===e.name||"button"===e.name){"true"===Rx(r.get("aria-hidden"))||f||Lx(e)||function(e){Ce(e,"a11y_consider_explicit_label","Buttons and links should either contain text or have an `aria-label` or `aria-labelledby` attribute\nhttps://svelte.dev/e/a11y_consider_explicit_label")}(e)}if("a"===e.name){const t=r.get("href")||r.get("xlink:href");if(t){const e=Ix(t);null!==e&&(""===e||"#"===e||/^\W*javascript:/i.test(e))&&function(e,t,n){Ce(e,"a11y_invalid_attribute",`'${t}' is not a valid ${n} attribute\nhttps://svelte.dev/e/a11y_invalid_attribute`)}(t,e,t.name)}else if(!l){const t=Rx(r.get("id")),n=Rx(r.get("name")),s=Rx(r.get("aria-disabled"));t||n||"true"===s||$x(e,["href"])}}else if(!l){const t=mx[e.name];if(t){t.some((e=>r.has(e)))||$x(e,t)}}if("input"===e.name){const t=r.get("type"),n=Ix(t);if("image"===n&&!l){const t=["alt","aria-label","aria-labelledby"];t.some((e=>r.has(e)))||$x(e,t,'input type="image"')}const a=r.get("autocomplete");if(t&&a){const e=Rx(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(),cx.includes(t[0])&&t.shift(),px.includes(t[0]))t.shift();else{if(ux.includes(t[0])&&t.shift(),!dx.includes(t[0]))return!1;t.shift()}return"webauthn"===t[0]&&t.shift(),0===t.length})(e)||function(e,t,n){Ce(e,"a11y_autocomplete_valid",`'${t}' is an invalid value for 'autocomplete' on \`<input type="${n}">\`\nhttps://svelte.dev/e/a11y_autocomplete_valid`)}(a,e,n??"...")}}if("img"===e.name){const t=Ix(r.get("alt")),n=Rx(r.get("aria-hidden"));t&&!n&&/\b(image|picture|photo)\b/i.test(t)&&function(e){Ce(e,"a11y_img_redundant_alt","Screenreaders already announce `<img>` elements as an image\nhttps://svelte.dev/e/a11y_img_redundant_alt")}(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&&(vx.includes(e.name)||"slot"===e.name)?n=!0:t()}}),n};r.has("for")||n(e)||function(e){Ce(e,"a11y_label_has_associated_control","A form label must be associated with a control\nhttps://svelte.dev/e/a11y_label_has_associated_control")}(e)}if("video"===e.name){const t=r.get("aria-hidden"),n=t&&Rx(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"===Rx(e)))),s||function(e){Ce(e,"a11y_media_has_caption",'`<video>` elements must have a `<track kind="captions">`\nhttps://svelte.dev/e/a11y_media_has_caption')}(e)}if("figcaption"===e.name&&(Ax(n.path,["figure"])||function(e){Ce(e,"a11y_figcaption_parent","`<figcaption>` must be an immediate child of `<figure>`\nhttps://svelte.dev/e/a11y_figcaption_parent")}(e)),"figure"===e.name){const t=e.fragment.nodes.filter((e=>"Comment"!==e.type&&("Text"!==e.type||p.test(e.data)))),n=t.findIndex((e=>"RegularElement"===e.type&&"figcaption"===e.name));-1!==n&&0!==n&&n!==t.length-1&&function(e){Ce(e,"a11y_figcaption_index","`<figcaption>` must be first or last child of `<figure>`\nhttps://svelte.dev/e/a11y_figcaption_index")}(t[n])}fx.includes(e.name)&&function(e,t){Ce(e,"a11y_distracting_elements",`Avoid \`<${t}>\` elements\nhttps://svelte.dev/e/a11y_distracting_elements`)}(e,e.name),f||u||!yx.includes(e.name)||Lx(e)||function(e,t){Ce(e,"a11y_missing_content",`\`<${t}>\` element should contain text\nhttps://svelte.dev/e/a11y_missing_content`)}(e,e.name)}function Lx(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(!Lx(t))continue}return!0}}const Mx=["preventDefault","stopPropagation","stopImmediatePropagation","capture","once","passive","nonpassive","self","trusted"];function Ox(e,t){let n=!1,r=null,s=null;for(const a of e.attributes)if("Attribute"===a.type){const n=Vi(a);if(t.state.analysis.runes&&(Mc(a,e),n)){const e=Hi(a);if("SequenceExpression"===e.type){let n=e.start;for(;--n>0;){const r=t.state.analysis.source[n];if("("===r)break;"{"===r&&xs(e)}}}if(g.test(a.name)&&_s(a,a.name),a.name.startsWith("on")&&a.name.length>2){n||bs(a);const e=Hi(a);"Identifier"!==e.type||e.name!==a.name||t.state.scope.get(e.name)||et(a,a.name)}"slot"===a.name&&Oc(t,a),"is"===a.name&&Ze(a);const r=Nx.get(a.name);r&&tt(a,a.name,r),Lc(a)}else if("AnimateDirective"===a.type){const e=t.path.at(-2);"EachBlock"!==e?.type?ys(a):e.key?e.body.nodes.filter((e=>"Comment"!==e.type&&"ConstTag"!==e.type&&("Text"!==e.type||""!==e.data.trim()))).length>1&&ys(a):vs(a),n?fs(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?ga(a,t):va(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(!Mx.includes(n)){Ms(a,`${Mx.slice(0,-1).join(", ")} or ${Mx.at(-1)}`)}"passive"===n?e=!0:"nonpassive"!==n&&"preventDefault"!==n||(t=n),e&&t&&Os(a,"passive",t)}}}const Nx=new Map([["className","class"],["htmlFor","for"]]);function Dx(e,t,n=new Set){for(const[r]of e.references){const s=e.get(r);if(s&&0!==s.scope.function_depth&&!(s.scope.function_depth>=e.function_depth)){if("SnippetBlock"===s.initial?.type){if(n.has(s))continue;n.add(s);if(Dx(t.get(s.initial),t,n))continue}return!1}}return!0}const jx=["onerror","failed"];function Bx(e,t){if(e!==t)throw new Error("Assertion failed")}const Fx={_(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(...ot(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(...ot(e.start+2,e.value,t.analysis.runes))}a.length>0&&function(e){const t=new Set([...me.at(-1)||[],...e]);me.push(t)}(a),fe.set(e,structuredClone(me));const i=t.scopes.get(e);n(void 0!==i&&i!==t.scope?{...t,scope:i}:t),a.length>0&&me.pop()},ArrowFunctionExpression:function(e,t){Tc(e,t)},AssignmentExpression:function(e,t){if(ql(e,e.left,t.state),t.state.reactive_statement){if(null!==("MemberExpression"===e.left.type?Bi(e.left):e.left))for(const n of Gi(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&&$c(t.path),"loading"===e.name&&"img"===n.name&&$c(t.path)),zi(e)&&$c(t.path),J(e.name)&&$c(t.path),"class"!==e.name||Array.isArray(e.value)||!0===e.value||"Literal"===e.value.expression.type||"TemplateLiteral"===e.value.expression.type||"BinaryExpression"===e.value.expression.type||($c(t.path),e.metadata.needs_clsx=!0),!0!==e.value){for(const t of Ui(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(zi(e)){const n=t.path.at(-1);"RegularElement"!==n?.type&&"SvelteElement"!==n?.type||(t.state.analysis.uses_event_attributes=!0);const r=Hi(e),s=function(e,t,n){if(!t||!U(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 Rc;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 Rc;if(null!=a)for(const{path:e}of a.references){const t=e.at(-1);if(void 0===t)return Rc;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&&zi(n)){r=e.at(-3);s=Ic(n.name)}if(r&&s){if("RegularElement"!==r.type||r.metadata.has_spread||!U(s))return Rc}else if("FunctionDeclaration"!==t.type&&"VariableDeclarator"!==t.type)return Rc}if(n.state.analysis.exports.find((e=>e.name===t.name)))return Rc;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 Rc;const i=new Set,o=s.metadata.scope;for(const[e]of o.references){if("arguments"===e||"$host"===e)return Rc;if("store_sub"===o.get(`$${e}`)?.kind)return Rc;const t=o.get(e),r=n.state.scope.get(e);if(null!==r&&null!==t&&r.node!==t.node)return Rc;if(null!==t&&"store_sub"===t.kind&&i.has(e.slice(1)))return Rc;if(null!==t&&"EachBlock"===t.initial?.type)return Rc;if(null!==t&&("rest_param"===t.declaration_kind||(!n.state.analysis.runes&&"each"===t.kind||"normal"===t.kind)&&t.updated))return Rc;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(Ol(e.pending),Ol(e.then),Ol(e.catch),t.state.analysis.runes){if(Ml(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]&&As({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]&&As({start:n-10,end:n},":")}}$c(t.path),t.next()},BindDirective:function(e,t){const n=t.path.at(-1);if("RegularElement"===n?.type||"SvelteElement"===n?.type||"SvelteWindow"===n?.type||"SvelteDocument"===n?.type||"SvelteBody"===n?.type)if(e.name in qc){const t=qc[e.name];if(t.valid_elements&&!t.valid_elements.includes(n.name)&&Ss(e,e.name,t.valid_elements.map((e=>`<${e}>`)).join(", ")),t.invalid_elements&&t.invalid_elements.includes(n.name)){const t=Object.entries(qc).filter((([e,t])=>t.valid_elements?.includes(n.name)||!t.valid_elements&&!t.invalid_elements?.includes(n.name))).map((([e])=>e)).sort();Cs(e,e.name,`Possible bindings for <${n.name}> are ${t.join(", ")}`)}if("input"===n.name&&"this"!==e.name){const t=n.attributes.find((e=>"Attribute"===e.type&&"type"===e.name));t&&!Fi(t)?"value"===e.name&&!0!==t.value||function(e){Br(e,"attribute_invalid_type","'type' attribute must be a static text value if input uses two-way binding\nhttps://svelte.dev/e/attribute_invalid_type")}(t):("checked"===e.name&&"checkbox"!==t?.value[0].data&&Ss(e,e.name,'<input type="checkbox">'),"files"===e.name&&"file"!==t?.value[0].data&&Ss(e,e.name,'<input type="file">'))}if("select"===n.name&&"this"!==e.name){const e=n.attributes.find((e=>"Attribute"===e.type&&"multiple"===e.name&&!Fi(e)&&!0!==e.value));e&&function(e){Br(e,"attribute_invalid_multiple","'multiple' attribute must be static if select uses two-way binding\nhttps://svelte.dev/e/attribute_invalid_multiple")}(e)}if("offsetWidth"===e.name&&re(n.name)&&Ss(e,e.name,"non-<svg> elements. Use 'clientWidth' for <svg> instead"),Z(e.name)){const t=n.attributes.find((e=>"Attribute"===e.type&&"contenteditable"===e.name));t?Fi(t)||!0===t.value||function(e){Br(e,"attribute_contenteditable_dynamic","'contenteditable' attribute cannot be dynamic if element uses two-way binding\nhttps://svelte.dev/e/attribute_contenteditable_dynamic")}(t):function(e){Br(e,"attribute_contenteditable_missing","'contenteditable' attribute is required for textContent, innerHTML and innerText two-way bindings\nhttps://svelte.dev/e/attribute_contenteditable_missing")}(e)}}else{const t=A(e.name,Object.keys(qc));if(t){const r=qc[t];r.valid_elements&&!r.valid_elements.includes(n.name)||Cs(e,e.name,`Did you mean '${t}'?`)}Cs(e,e.name)}if("SequenceExpression"===e.expression.type){"group"===e.name&&function(e){Br(e,"bind_group_invalid_expression","`bind:group` can only bind to an Identifier or MemberExpression\nhttps://svelte.dev/e/bind_group_invalid_expression")}(e);let n=e.expression.start;for(;"{"!==t.state.analysis.source[--n];)"("===t.state.analysis.source[n]&&ks(e,e.name);return 2!==e.expression.expressions.length&&ws(e),void $c(t.path)}Ll(e,e.expression,t.state.scope,!0);const r=e.expression,s=Bi(r);null===s&&ws(e);const a=t.state.scope.get(s.name);if("Identifier"===r.type&&("this"===e.name||a&&("state"===a.kind||"raw_state"===a.kind||"prop"===a.kind||"bindable_prop"===a.kind||"each"===a.kind||"store_sub"===a.kind||a.updated)||function(e){Br(e,"bind_invalid_value","Can only bind to state or props\nhttps://svelte.dev/e/bind_invalid_value")}(e.expression),t.state.analysis.runes&&"each"===a?.kind&&zr(e),"snippet"===a?.kind&&rs(e)),"group"===e.name){if(!a)throw new Error("Cannot find declaration for bind:group");const n=[],[r,s]=Ki(e.expression);let i=s,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(...Ki(e.expression)[1]))}}const l=s.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"===a?.kind&&a.metadata?.inside_rest&&function(e,t){Ce(e,"bind_invalid_each_rest",`The rest operator (...) will create a new object and binding '${t}' with the original object will not work\nhttps://svelte.dev/e/bind_invalid_each_rest`)}(a.node,a.node.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=zl(e,t.state.scope);switch(r){case null:Nl(e.callee,t.state.scope)||(t.state.analysis.needs_context=!0);break;case"$bindable":e.arguments.length>1&&Qr(e,"$bindable","zero or one arguments"),"AssignmentPattern"===n.type&&"ObjectPattern"===t.path.at(-3)?.type&&"VariableDeclarator"===t.path.at(-4)?.type&&"$props"===zl(t.path.at(-4).init,t.state.scope)||function(e){Br(e,"bindable_invalid_location","`$bindable()` can only be used inside a `$props()` declaration\nhttps://svelte.dev/e/bindable_invalid_location")}(e);break;case"$host":e.arguments.length>0?Jr(e,"$host"):"module"!==t.state.ast_type&&t.state.analysis.custom_element||function(e){Br(e,"host_invalid_placement","`$host()` can only be used inside custom element component instances\nhttps://svelte.dev/e/host_invalid_placement")}(e);break;case"$props":t.state.has_props_rune&&function(e){Br(e,"props_duplicate","Cannot use `$props()` more than once\nhttps://svelte.dev/e/props_duplicate")}(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){Br(e,"props_invalid_placement","`$props()` can only be used at the top level of components as a variable declaration initializer\nhttps://svelte.dev/e/props_invalid_placement")}(e),e.arguments.length>0&&Jr(e,r);break;case"$state":case"$state.raw":case"$derived":case"$derived.by":"VariableDeclarator"!==n.type&&("PropertyDefinition"!==n.type||n.static||n.computed)&&as(e,r),"$derived"!==r&&"$derived.by"!==r||1===e.arguments.length?"$state"===r&&e.arguments.length>1&&Qr(e,r,"zero or one arguments"):Qr(e,r,"exactly one argument");break;case"$effect":case"$effect.pre":"ExpressionStatement"!==n.type&&function(e){Br(e,"effect_invalid_placement","`$effect()` can only be used as an expression statement\nhttps://svelte.dev/e/effect_invalid_placement")}(e),1!==e.arguments.length&&Qr(e,r,"exactly one argument"),t.state.analysis.needs_context=!0;break;case"$effect.tracking":0!==e.arguments.length&&Jr(e,r);break;case"$effect.root":case"$inspect().with":case"$state.snapshot":1!==e.arguments.length&&Qr(e,r,"exactly one argument");break;case"$inspect":e.arguments.length<1&&Qr(e,r,"one or more arguments");break;case"$inspect.trace":{e.arguments.length>1&&Qr(e,r,"zero or one arguments");const s=t.path.at(-2),a=t.path.at(-3);if(("ExpressionStatement"!==n.type||"BlockStatement"!==s?.type||"FunctionDeclaration"!==a?.type&&"FunctionExpression"!==a?.type&&"ArrowFunctionExpression"!==a?.type||s.body[0]!==n)&&function(e){Br(e,"inspect_trace_invalid_placement","`$inspect.trace(...)` must be the first statement of a function body\nhttps://svelte.dev/e/inspect_trace_invalid_placement")}(e),a.generator&&function(e){Br(e,"inspect_trace_generator","`$inspect.trace(...)` cannot be used inside a generator function\nhttps://svelte.dev/e/inspect_trace_generator")}(e),ce){if(e.arguments[0])t.state.scope.tracing=bi(e.arguments[0]);else{const e=function(e){const t=e.at(-1);if(("FunctionDeclaration"===t.type||"FunctionExpression"===t.type)&&null!=t.id)return t.id.name;const n=e.at(-2);if(!n)return;if("CallExpression"===n.type)return le.slice(n.callee.start,n.callee.end)+"(...)";if("Property"===n.type&&!n.computed)return n.key.name;if("VariableDeclarator"===n.type&&"Identifier"===n.id.type)return n.id.name}(t.path.slice(0,-2))??"trace",n=`(${he(a)})`;t.state.scope.tracing=bi(ai(e+" "+n))}t.state.analysis.tracing=!0}break}}if(t.state.render_tag){const n=Zi(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&&(!Dl(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=zl(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&&jl(t.state.scope.get(e.id.name));const n="module"===t.state.ast_type?0:1;t.state.scope.function_depth>n&&function(e){Ce(e,"perf_avoid_nested_class","Avoid declaring classes below the top level scope\nhttps://svelte.dev/e/perf_avoid_nested_class")}(e),t.next()},ClassDirective:function(e,t){$c(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(".")),Dc(e,t)},ConstTag:function(e,t){t.state.analysis.runes&&Ml(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){Br(e,"const_tag_invalid_placement","`{@const}` must be the immediate child of `{#snippet}`, `{#if}`, `{:else if}`, `{:else}`, `{#each}`, `{:then}`, `{:catch}`, `<svelte:fragment>` or `<Component>`\nhttps://svelte.dev/e/const_tag_invalid_placement")}(e),t.next()},DebugTag:function(e,t){t.state.analysis.runes&&Ml(e,t.state,"@"),t.next()},EachBlock:function(e,t){Ml(e,t.state,"#"),Ol(e.body),Ol(e.fallback);const n=e.context;"Identifier"!==n?.type||"$state"!==n.name&&"$derived"!==n.name||as(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),$c(t.path)},ExportDefaultDeclaration:function(e,t){t.state.ast_type?function(e){Br(e,"module_illegal_default_export","A component cannot have a default export\nhttps://svelte.dev/e/module_illegal_default_export")}(e):"Identifier"===e.declaration.type&&Bl(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){Br(e,"legacy_export_invalid","Cannot use `export let` in runes mode — use `$props()` instead\nhttps://svelte.dev/e/legacy_export_invalid")}(e);for(const n of e.declaration.declarations)for(const r of Gi(n.id)){const n=t.state.scope.get(r.name);n&&("derived"===n.kind&&Ur(e),"state"!==n.kind&&"raw_state"!==n.kind||!n.reassigned||ss(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 Gi(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 Bl(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){Ce(e,"legacy_component_creation","Svelte 5 components are no longer classes. Instantiate them using `mount` or `hydrate` (imported from 'svelte') instead.\nhttps://svelte.dev/e/legacy_component_creation")}(e.expression)}}t.next()},ExpressionTag:function(e,t){if("Fragment"===t.path.at(-1)?.type&&t.state.parent_element){const n=Go("#text",t.state.parent_element);n&&Fs(e,n)}$c(t.path),t.next({...t.state,expression:e.metadata.expression})},FunctionDeclaration:function(e,t){t.state.analysis.runes&&null!==e.id&&jl(t.state.scope.get(e.id.name)),Tc(e,t)},FunctionExpression:function(e,t){Tc(e,t)},HtmlTag:function(e,t){t.state.analysis.runes&&Ml(e,t.state,"@"),$c(t.path),t.next()},Identifier:function(e,t){let n=t.path.length,r=t.path[--n];if(!Rl(e,r))return;if($c(t.path),"arguments"!==e.name||t.path.some((e=>"FunctionDeclaration"===e.type||"FunctionExpression"===e.type))||function(e){Br(e,"invalid_arguments_usage","The arguments keyword cannot be used within the template or at the top level of a component\nhttps://svelte.dev/e/invalid_arguments_usage")}(e),"$$slots"===e.name&&(t.state.analysis.uses_slots=!0),t.state.analysis.runes&&ie(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&&Yr(r),a+=`.${r.property.name}`,s=r,r=t.path[--n],ie(a)||("$effect.active"===a&&ts(r,"$effect.active","$effect.tracking"),"$state.frozen"===a&&ts(r,"$state.frozen","$state.raw"),"$state.is"===a&&es(r,"$state.is"),Zr(r,a));"CallExpression"!==r.type&&function(e){Br(e,"rune_missing_parentheses","Cannot use rune without parentheses\nhttps://svelte.dev/e/rune_missing_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||Gc(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){Ce(e,"state_referenced_locally","State referenced in its own scope will never update. Did you mean to reference it inside a closure?\nhttps://svelte.dev/e/state_referenced_locally")}(e),t.state.reactive_statement&&s.scope===t.state.analysis.module.scope&&s.reassigned&&function(e){Ce(e,"reactive_declaration_module_script_dependency","Reassignments of module-level declarations will not cause reactive statements to update\nhttps://svelte.dev/e/reactive_declaration_module_script_dependency")}(e))},IfBlock:function(e,t){Ol(e.consequent),Ol(e.alternate),t.state.analysis.runes&&Ml(e,t.state,e.elseif?":":"#"),$c(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){Br(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\nhttps://svelte.dev/e/import_svelte_internal_forbidden")}(e),"svelte"===t)for(const t of e.specifiers)"ImportSpecifier"===t.type&&("Identifier"!==t.imported.type||"beforeUpdate"!==t.imported.name&&"afterUpdate"!==t.imported.name||ns(t,t.imported.name))}},KeyBlock:function(e,t){Ol(e.fragment),t.state.analysis.runes&&Ml(e,t.state,"#"),$c(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){Br(e,"legacy_reactive_statement_invalid","`$:` is not allowed in runes mode, use `$derived` or `$effect` instead\nhttps://svelte.dev/e/legacy_reactive_statement_invalid")}(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=Gi(e.body.expression.left);if("MemberExpression"===e.body.expression.left.type){const t=Bi(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){Ce(e,"reactive_declaration_invalid_placement","Reactive declarations only exist at the top level of the instance script\nhttps://svelte.dev/e/reactive_declaration_invalid_placement")}(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){Br(e,"let_directive_invalid_placement","`let:` directive at invalid position\nhttps://svelte.dev/e/let_directive_invalid_placement")}(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("$$")&&Kr(e.property)}t.state.expression&&!Dl(e,t)&&(t.state.expression.has_state=!0),Nl(e,t.state.scope)||(t.state.analysis.needs_context=!0),t.next()},NewExpression:function(e,t){"ClassExpression"===e.callee.type&&t.state.scope.function_depth>0&&function(e){Ce(e,"perf_avoid_inline_class","Avoid 'new class' — instead, declare the class at the top level scope\nhttps://svelte.dev/e/perf_avoid_inline_class")}(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){Ce(e,"event_directive_deprecated",`Using \`on:${t}\` to listen to the ${t} event is deprecated. Use the event attribute \`on${t}\` instead\nhttps://svelte.dev/e/event_directive_deprecated`)}(e,e.name)}const n=t.path.at(-1);"SvelteElement"!==n?.type&&"RegularElement"!==n?.type||(t.state.analysis.event_directive_node??=e),$c(t.path),t.next({...t.state,expression:e.metadata.expression})},RegularElement:function(e,t){if(Ox(e,t),qx(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&&ma(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(Vo("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(Vo("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){Ce(e,"component_name_lowercase",`\`<${t}>\` will be treated as an HTML element unless it begins with a capital letter\nhttps://svelte.dev/e/component_name_lowercase`)}(e,e.name),e.metadata.has_spread=e.attributes.some((e=>"SpreadAttribute"===e.type)),e.metadata.svg=(()=>{if(re(e.name))return!0;if("a"===e.name)for(let e=t.path.length-1;e>=0;e--){const n=t.path[e];if("RegularElement"===n.type)return n.metadata.svg}return!1})(),e.metadata.mathml=(r=e.name,se.includes(r)),Fo(e)&&e.attributes.length>0&&$c(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);const t=Wo(e.name,s);t&&(r?nt(e,t):Fs(e,t))}else if("Component"===i.type||"SvelteComponent"===i.type||"SvelteElement"===i.type||"SvelteSelf"===i.type||"SnippetBlock"===i.type)break}else if("RegularElement"===i.type&&i.name===t.state.parent_element){const s=Go(e.name,t.state.parent_element);s&&(r?nt(e,s):Fs(e,s)),n=!0}}}const s=e.name.replace(/[a-zA-Z-]*:/g,"");if("/"!==t.state.analysis.source[e.end-2]||j(s)||re(s)||function(e,t){Ce(e,"element_invalid_self_closing_tag",`Self-closing HTML tags for non-void elements are ambiguous — use \`<${t} ...></${t}>\` rather than \`<${t} ... />\`\nhttps://svelte.dev/e/element_invalid_self_closing_tag`)}(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){Ml(e,t.state,"@"),e.metadata.path=[...t.path];const n=Zi(e.expression).callee,r="Identifier"===n.type?t.state.scope.get(n.name):null;e.metadata.dynamic="normal"!==r?.kind;let s="Identifier"===n.type&&Nc(r);"SnippetBlock"===r?.initial?.type&&e.metadata.snippets.add(r.initial),t.state.analysis.snippet_renderers.set(e,s),t.state.analysis.uses_render_tags=!0;const a=Zi(e.expression).arguments;for(const e of a)"SpreadElement"===e.type&&Vs(e);"MemberExpression"===n.type&&"Identifier"===n.property.type&&["bind","apply","call"].includes(n.property.name)&&function(e){Br(e,"render_tag_invalid_call_expression","Calling a snippet function using apply, bind or call is not allowed\nhttps://svelte.dev/e/render_tag_invalid_call_expression")}(e),$c(t.path),t.next({...t.state,render_tag:e})},SlotElement:function(e,t){t.state.analysis.runes&&!t.state.analysis.custom_element&&function(e){Ce(e,"slot_element_deprecated","Using `<slot>` to render parent content is deprecated. Use `{@render ...}` tags instead\nhttps://svelte.dev/e/slot_element_deprecated")}(e),$c(t.path);let n="default";for(const t of e.attributes)"Attribute"===t.type?"name"===t.name&&(Fi(t)||Js(t),n=t.value[0].data,"default"===n&&Qs(t)):"SpreadAttribute"!==t.type&&"LetDirective"!==t.type&&Xs(t);t.state.analysis.slot_names.set(n,e),t.next()},SnippetBlock:function(e,t){t.state.analysis.snippets.add(e),Ol(e.body),t.state.analysis.runes&&Ml(e,t.state,"#");for(const t of e.parameters)"RestElement"===t.type&&Ys(t);t.next({...t.state,parent_element:null});const n=1===t.path.length&&"Fragment"===t.path[0].type&&Dx(t.state.scope,t.state.scopes),r=e.expression.name;if(n){const e=t.state.scope.get(r);t.state.analysis.module.scope.declarations.set(r,e)}else{const e=t.state.analysis.undefined_exports.get(r);e&&function(e){Br(e,"snippet_invalid_export","An exported snippet can only reference things declared in a `<script module>`, or other exportable snippets\nhttps://svelte.dev/e/snippet_invalid_export")}(e)}e.metadata.can_hoist=n;const{path:s}=t,a=s.at(-2);a&&("Component"===a.type&&a.attributes.some((t=>("Attribute"===t.type||"BindDirective"===t.type)&&t.name===e.expression.name))&&function(e,t){Br(e,"snippet_shadowing_prop",`This snippet is shadowing the prop \`${t}\` with the same name\nhttps://svelte.dev/e/snippet_shadowing_prop`)}(e,e.expression.name),"children"===e.expression.name&&("Component"!==a.type&&"SvelteComponent"!==a.type&&"SvelteSelf"!==a.type||a.fragment.nodes.some((e=>"SnippetBlock"!==e.type&&("Text"!==e.type||e.data.trim())&&"Comment"!==e.type))&&function(e){Br(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\nhttps://svelte.dev/e/snippet_conflict")}(e)))},SpreadAttribute:function(e,t){$c(t.path),t.next({...t.state,expression:e.metadata.expression})},SpreadElement:function(e,t){t.state.expression&&(t.state.expression.has_call=!0,t.state.expression.has_state=!0),t.next()},StyleDirective:function(e,t){if((e.modifiers.length>1||e.modifiers.length&&"important"!==e.modifiers[0])&&function(e){Br(e,"style_directive_invalid_modifier","`style:` directive can only use the `important` modifier\nhttps://svelte.dev/e/style_directive_invalid_modifier")}(e),$c(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 Ui(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){Cl(e);for(const t of e.attributes)("SpreadAttribute"===t.type||"Attribute"===t.type&&!zi(t))&&Zs(t);t.next()},SvelteComponent:function(e,t){t.state.analysis.runes&&function(e){Ce(e,"svelte_component_deprecated","`<svelte:component>` is deprecated in runes mode — components are dynamic by default\nhttps://svelte.dev/e/svelte_component_deprecated")}(e),t.visit(e.expression),Dc(e,t)},SvelteDocument:function(e,t){Cl(e);for(const t of e.attributes)("SpreadAttribute"===t.type||"Attribute"===t.type&&!zi(t))&&Bs(t,"svelte:document");t.next()},SvelteElement:function(e,t){Ox(e,t),qx(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&&Fi(e)));if(n)e.metadata.svg=n.value[0].data===P,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}}}$c(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){Br(e,"svelte_fragment_invalid_placement","`<svelte:fragment>` must be the direct child of a component\nhttps://svelte.dev/e/svelte_fragment_invalid_placement")}(e);for(const n of e.attributes)"Attribute"===n.type?"slot"===n.name&&Oc(t,n):"LetDirective"!==n.type&&ra(n);t.next({...t.state,parent_element:null})},SvelteHead:function(e,t){for(const t of e.attributes)sa(t);$c(t.path),t.next()},SvelteSelf:function(e,t){const n=t.path.some((e=>"IfBlock"===e.type||"EachBlock"===e.type||"Component"===e.type||"SnippetBlock"===e.type));if(n||function(e){Br(e,"svelte_self_invalid_placement","`<svelte:self>` components can only exist inside `{#if}` blocks, `{#each}` blocks, `{#snippet}` blocks or slots passed to components\nhttps://svelte.dev/e/svelte_self_invalid_placement")}(e),t.state.analysis.runes){!function(e,t,n){Ce(e,"svelte_self_deprecated",`\`<svelte:self>\` is deprecated — use self-imports (e.g. \`import ${t} from './${n}'\`) instead\nhttps://svelte.dev/e/svelte_self_deprecated`)}(e,"(unknown)"===oe?"Self":t.state.analysis.name,"(unknown)"===oe?"Self.svelte":oe.split(/[/\\]/).pop())}Dc(e,t)},SvelteWindow:function(e,t){Cl(e);for(const t of e.attributes)("SpreadAttribute"===t.type||"Attribute"===t.type&&!zi(t))&&Bs(t,"svelte:window");t.next()},SvelteBoundary:function(e,t){for(const t of e.attributes)"Attribute"===t.type&&jx.includes(t.name)||ea(t),(!0===t.value||Array.isArray(t.value)&&(1!==t.value.length||"ExpressionTag"!==t.value[0].type))&&ta(t);t.next()},TaggedTemplateExpression:function(e,t){if(t.state.expression&&!Dl(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){if("Fragment"===t.path.at(-1)?.type&&t.state.parent_element&&p.test(e.data)){const n=Go("#text",t.state.parent_element);n&&Fs(e,n)}},TransitionDirective:function(e,t){$c(t.path),t.next()},TitleElement:function(e,t){for(const t of e.attributes)fa(t);for(const t of e.fragment.nodes)"Text"!==t.type&&"ExpressionTag"!==t.type&&ya(t);t.next()},UpdateExpression:function(e,t){if(ql(e,e.argument,t.state),t.state.reactive_statement){const n="MemberExpression"===e.argument.type?Bi(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){$c(t.path),t.next()},VariableDeclarator:function(e,t){if(function(e,t){const n=Gi(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&&Hr(e.id)}(e,t.state),t.state.analysis.runes){const n=zl(e.init,t.state.scope),r=Ji(e.id);for(const e of r)jl(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){Br(e,"props_invalid_identifier","`$props()` can only be used with an object destructuring pattern\nhttps://svelte.dev/e/props_invalid_identifier")}(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{Bx(e.id.type,"ObjectPattern");for(const n of e.id.properties){if("Property"!==n.type)continue;n.computed&&Xr(n),"Identifier"===n.key.type&&n.key.name.startsWith("$$")&&Kr(n);const e="AssignmentPattern"===n.value.type?n.value.left:n.value;"Identifier"!==e.type&&Xr(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){Br(e,"rune_invalid_usage",`Cannot use \`${t}\` rune in non-runes mode\nhttps://svelte.dev/e/rune_invalid_usage`)}(e.init,n.name)}t.next()}};function Vx(e,t,n,r){const s=e?.content??{type:"Program",sourceType:"module",start:-1,end:-1,body:[]},{scope:a,scopes:i}=Hl(s,t,n,r);return{ast:s,scope:a,scopes:i}}const Hx=["$$props","$$restProps","$$slots"];function Ux(e,n,r){const s=new Vl,a=Vx(e.module,s,!1,null),i=Vx(e.instance,s,!0,a.scope),{scope:o,scopes:l}=Hl(e.fragment,s,!1,i.scope),c={ast:e.fragment,scope:o,scopes:l};let p=[];for(const[e,t]of a.scope.references){if("$"!==e[0]||Hx.includes(e))continue;"$"!==e&&"$"!==e[1]||Gr(t[0].node,e);const n=e.slice(1),s=i.scope.get(n),o=s?.initial;if(!1===r.runes||!ie(e)||null!==s&&(null===zl(o,i.scope)||"props"!==n&&"$props"===zl(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&&Br(o,"store_invalid_scoped_subscription","Cannot subscribe to stores that are not declared at the top level of the component\nhttps://svelte.dev/e/store_invalid_scoped_subscription"),!1!==r.runes)if(null===s&&/[a-z]/.test(n[0]))Gr(t[0].node,e);else if(null!==s&&ie(e))for(const{node:e,path:r}of t)"CallExpression"===r.at(-1)?.type&&Ye(e,n);if(a.ast)for(const{node:e,path:n}of t)e.start>a.ast.start&&e.end<a.ast.end&&null===zl(n.at(-1),a.scope)&&is(e);p.push((()=>{null!==s&&"normal"===s.kind&&"let"===s.declaration_kind&&s.reassigned&&(s.kind="state")}));i.scope.declare(ni(e),"store_sub","synthetic").references=t,i.scope.references.set(e,t),a.scope.references.delete(e)}}const u=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(ie);if(!d)for(let e of p)e();if(d&&e.module){const t=e.module.attributes.find((e=>"context"===e.name));t&&function(e){Ce(e,"script_context_deprecated",'`context="module"` is deprecated, use the `module` attribute instead\nhttps://svelte.dev/e/script_context_deprecated')}(t)}const h={name:a.scope.generate(r.name??u),root:s,module:a,instance:i,template:c,elements:[],runes:d,tracing:!1,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,css:{ast:e.css,hash:e.css?r.cssHash({css:e.css.content.styles,filename:r.filename,name:u,hash:N}):"",keyframes:[]},source:n,undefined_exports:new Map,snippet_renderers:new Map,snippets:new Set};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 Gi(t.id))h.exports.push({name:e.name,alias:null});else for(const t of e.declaration.declarations)for(const e of Gi(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,{_:Ul,Identifier(e,t){if(Rl(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&&We(t),"customElement"!==t.name||r.customElement||Ke(t),"immutable"===t.name&&h.runes&&Ge(t);if(h.runes){const e=a.scope.references.get("$$props");e&&function(e){Br(e,"legacy_props_invalid","Cannot use `$$props` in runes mode\nhttps://svelte.dev/e/legacy_props_invalid")}(e[0].node);const n=a.scope.references.get("$$restProps");n&&function(e){Br(e,"legacy_rest_props_invalid","Cannot use `$$restProps` in runes mode\nhttps://svelte.dev/e/legacy_rest_props_invalid")}(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},Fx)}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){Qe(n.node,t);continue e}}continue t}}Qe(n.node,t);continue e}}else{i.scope.declare(ni("$$props"),"rest_prop","synthetic"),i.scope.declare(ni("$$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},Fx)}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}`)||Je(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=Wl(n);if(r?.length){!function(e,t){Br(e,"reactive_declaration_cycle",`Cyclical dependency detected: ${t}\nhttps://svelte.dev/e/reactive_declaration_cycle`)}(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)}for(const e of h.module.ast.body)if("ExportNamedDeclaration"===e.type&&null!==e.specifiers&&null==e.source)for(const t of e.specifiers){if("Identifier"!==t.local.type)continue;h.module.scope.get(t.local.name)||Wr(t,t.local.name)}h.event_directive_node&&h.uses_event_attributes&&function(e,t){Br(e,"mixed_event_handler_syntaxes",`Mixing old (on:${t}) and new syntaxes for event handling is not allowed. Use only the on${t} syntax\nhttps://svelte.dev/e/mixed_event_handler_syntaxes`)}(h.event_directive_node,h.event_directive_node.name);for(const[e,t]of h.snippet_renderers){t||(e.metadata.snippets=h.snippets);for(const t of e.metadata.snippets)t.metadata.sites.add(e)}if(h.uses_render_tags&&(h.uses_slots||!h.custom_element&&h.slot_names.size>0)){!function(e){Br(e,"slot_snippet_conflict","Cannot use `<slot>` syntax and `{@render ...}` tags in the same component. Migrate towards `{@render ...}` tags completely\nhttps://svelte.dev/e/slot_snippet_conflict")}(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},rc)}(h.css.ast,h);for(const e of h.elements)pc(h.css.ast,e);const{comment:e}=h.css.ast.content;e&&ot(e.start,e.data,h.runes).includes("css_unused_selector")||t(m=h.css.ast,{stylesheet:m},Ac);e:for(const e of h.elements)if(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;if("Attribute"===n.type&&"class"===n.name.toLowerCase()){if(n.metadata.needs_clsx)continue e;t=n}}if(t&&!0!==t.value)if(Fi(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};Array.isArray(t.value)?t.value.push(e):t.value=[t.value,e]}else e.attributes.push(Vo("class",-1,-1,[{type:"Text",data:h.css.hash,raw:h.css.hash,start:-1,end:-1}])),Fo(e)&&1===e.attributes.length&&$c(e.metadata.path)}}var m;return h}const zx={type:"Newline"},Wx={type:"Indent"},Gx={type:"Dedent"};function Kx(...e){return{type:"Sequence",children:e}}function Xx(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 Jx(e,t){const n=e,r=lw[e.type];if(!r)throw new Error(`Not implemented ${e.type}`);n.leadingComments&&Yx(n.leadingComments,t,!1),r(e,t),n.trailingComments&&t.comments.push(n.trailingComments[0])}function Qx(e,t){return{type:"Chunk",content:e,loc:t?.loc??null}}function Yx(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(zx):t.commands.push(" ")}const Zx={"||":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},ew={JSXFragment:20,JSXElement:20,ArrayPattern:20,ObjectPattern:20,ArrayExpression:20,TaggedTemplateExpression:20,ThisExpression:20,Identifier:20,TemplateLiteral:20,Super:20,SequenceExpression:20,MemberExpression:19,MetaProperty:19,CallExpression:19,ChainExpression:19,ImportExpression:19,NewExpression:19,Literal:18,TSSatisfiesExpression:18,TSInstantiationExpression:18,TSNonNullExpression:18,TSTypeAssertion:18,AwaitExpression:17,ClassExpression:17,FunctionExpression:17,ObjectExpression:17,TSAsExpression:16,UpdateExpression:16,UnaryExpression:15,BinaryExpression:14,LogicalExpression:13,ConditionalExpression:4,ArrowFunctionExpression:3,AssignmentExpression:3,YieldExpression:2,RestElement:1};function tw(e,t,n){if("PrivateIdentifier"===e.type)return!1;if("LogicalExpression"===e.type&&"LogicalExpression"===t.type&&("??"===t.operator&&"??"!==e.operator||"??"!==t.operator&&"??"===e.operator))return!0;const r=ew[e.type],s=ew[t.type];return r!==s?!n&&15===r&&14===s&&"**"===t.operator||r<s:(13===r||14===r)&&("**"===e.operator&&"**"===t.operator?!n:n?Zx[e.operator]<=Zx[t.operator]:Zx[e.operator]<Zx[t.operator])}const nw=["ImportDeclaration","VariableDeclaration","ExportDefaultDeclaration","ExportNamedDeclaration"],rw=(e,t)=>{let n={type:"EmptyStatement"},r=!0,s=!1;for(const a of e){if("EmptyStatement"===a.type)continue;const e=Kx();r||t.commands.push(e,zx),r=!1;const i=a,o=i.leadingComments;delete i.leadingComments,o&&o.length>0&&Yx(o,t,!0);const l={...t,multiline:!1};Jx(a,l),(l.multiline||s||(nw.includes(a.type)||nw.includes(n.type))&&n.type!==a.type)&&e.children.push("\n");let c=!1;for(;t.comments.length;){const e=t.comments.shift();t.commands.push(c?zx:" ",{type:"Comment",comment:e}),c="Line"===e.type}s=l.multiline,n=a}},sw=(e,t)=>{const n=t.commands.length,r=Kx(),s=Kx(),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,Jx(n,a);a.multiline||e.declarations.length>1&&Xx(t.commands,n)>50?(t.multiline=!0,e.declarations.length>1&&r.children.push(Wx),s.children.push(",",zx),e.declarations.length>1&&t.commands.push(Gx)):s.children.push(", ")};function aw(e,t,n,r,s=","){if(0===e.length)return;const a=t.commands.length,i=Kx(),o=Kx(),l=Kx();t.commands.push(i);const c={...t,multiline:!1};let p;for(let n=0;n<e.length;n+=1){const a=e[n],i=0===n,l=n===e.length-1;if(a)if(i||p||t.commands.push(o),r(a,c),l||t.commands.push(s),t.comments.length>0){for(t.commands.push(" ");t.comments.length;){const e=t.comments.shift();t.commands.push({type:"Comment",comment:e}),l||t.commands.push(o)}c.multiline=!0}else l||t.commands.push(o);else t.commands.push(s);p=a}t.commands.push(l);c.multiline||Xx(t.commands,a)>50?(t.multiline=!0,i.children.push(Wx,zx),o.children.push(zx),l.children.push(Gx,zx)):(n&&i.children.push(" "),o.children.push(" "),n&&l.children.push(" "))}function iw(e,t){switch(e.type){case"TSNumberKeyword":t.commands.push("number");break;case"TSStringKeyword":t.commands.push("string");break;case"TSBooleanKeyword":t.commands.push("boolean");break;case"TSAnyKeyword":t.commands.push("any");break;case"TSVoidKeyword":t.commands.push("void");break;case"TSUnknownKeyword":t.commands.push("unknown");break;case"TSNeverKeyword":t.commands.push("never");break;case"TSArrayType":iw(e.elementType,t),t.commands.push("[]");break;case"TSTypeAnnotation":t.commands.push(": "),iw(e.typeAnnotation,t);break;case"TSTypeLiteral":t.commands.push("{ "),aw(e.members,t,!1,iw,";"),t.commands.push(" }");break;case"TSPropertySignature":Jx(e.key,t),e.optional&&t.commands.push("?"),e.typeAnnotation&&iw(e.typeAnnotation,t);break;case"TSTypeReference":Jx(e.typeName,t),e.typeParameters&&iw(e.typeParameters,t);break;case"TSTypeParameterInstantiation":case"TSTypeParameterDeclaration":t.commands.push("<");for(let n=0;n<e.params.length;n++)iw(e.params[n],t),n!=e.params.length-1&&t.commands.push(", ");t.commands.push(">");break;case"TSTypeParameter":t.commands.push(e.name),e.constraint&&(t.commands.push(" extends "),iw(e.constraint,t));break;case"TSTypeQuery":t.commands.push("typeof "),Jx(e.exprName,t);break;case"TSEnumMember":Jx(e.id,t),e.initializer&&(t.commands.push(" = "),Jx(e.initializer,t));break;case"TSFunctionType":e.typeParameters&&iw(e.typeParameters,t);const n=e.parameters;t.commands.push("("),aw(n,t,!1,Jx),t.commands.push(") => "),iw(e.typeAnnotation.typeAnnotation,t);break;case"TSIndexSignature":const r=e.parameters;t.commands.push("["),aw(r,t,!1,Jx),t.commands.push("]"),iw(e.typeAnnotation,t);break;case"TSMethodSignature":Jx(e.key,t);const s=e.parameters;t.commands.push("("),aw(s,t,!1,Jx),t.commands.push(")"),iw(e.typeAnnotation,t);break;case"TSExpressionWithTypeArguments":Jx(e.expression,t);break;case"TSTupleType":t.commands.push("["),aw(e.elementTypes,t,!1,iw),t.commands.push("]");break;case"TSNamedTupleMember":Jx(e.label,t),t.commands.push(": "),iw(e.elementType,t);break;case"TSUnionType":aw(e.types,t,!1,iw," |");break;case"TSIntersectionType":aw(e.types,t,!1,iw," &");break;case"TSLiteralType":Jx(e.literal,t);break;case"TSConditionalType":iw(e.checkType,t),t.commands.push(" extends "),iw(e.extendsType,t),t.commands.push(" ? "),iw(e.trueType,t),t.commands.push(" : "),iw(e.falseType,t);break;default:throw new Error(`Not implemented type annotation ${e.type}`)}}const ow={"ArrayExpression|ArrayPattern":(e,t)=>{t.commands.push("["),aw(e.elements,t,!1,Jx),t.commands.push("]")},"BinaryExpression|LogicalExpression":(e,t)=>{tw(e.left,e,!1)?(t.commands.push("("),Jx(e.left,t),t.commands.push(")")):Jx(e.left,t),t.commands.push(` ${e.operator} `),tw(e.right,e,!0)?(t.commands.push("("),Jx(e.right,t),t.commands.push(")")):Jx(e.right,t)},"BlockStatement|ClassBody":(e,t)=>{0!==e.body.length?(t.multiline=!0,t.commands.push("{",Wx,zx),rw(e.body,t),t.commands.push(Gx,zx,"}")):t.commands.push("{}")},"CallExpression|NewExpression":(e,t)=>{"NewExpression"===e.type&&t.commands.push("new ");const n=ew[e.callee.type]<ew.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("("),Jx(e.callee,t),t.commands.push(")")):Jx(e.callee,t),e.optional&&t.commands.push("?."),e.typeParameters&&iw(e.typeParameters,t);const r=Kx(),s=Kx(),a=Kx();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(zx)):t.commands.push(" ")}else t.commands.push(s);Jx(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(Wx,zx),s.children.push(",",zx),a.children.push(Gx,zx)):s.children.push(", ")},"ClassDeclaration|ClassExpression":(e,t)=>{t.commands.push("class "),e.id&&(Jx(e.id,t),t.commands.push(" ")),e.superClass&&(t.commands.push("extends "),Jx(e.superClass,t),t.commands.push(" ")),e.implements&&(t.commands.push("implements "),aw(e.implements,t,!1,iw)),Jx(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?sw(e.left,t):Jx(e.left,t),t.commands.push("ForInStatement"===e.type?" in ":" of "),Jx(e.right,t),t.commands.push(") "),Jx(e.body,t)},"FunctionDeclaration|FunctionExpression":(e,t)=>{e.async&&t.commands.push("async "),t.commands.push(e.generator?"function* ":"function "),e.id&&Jx(e.id,t),e.typeParameters&&iw(e.typeParameters,t),t.commands.push("("),aw(e.params,t,!1,Jx),t.commands.push(")"),e.returnType&&iw(e.returnType,t),t.commands.push(" "),Jx(e.body,t)},"RestElement|SpreadElement":(e,t)=>{t.commands.push("..."),Jx(e.argument,t),e.typeAnnotation&&iw(e.typeAnnotation,t)}},lw={ArrayExpression:ow["ArrayExpression|ArrayPattern"],ArrayPattern:ow["ArrayExpression|ArrayPattern"],ArrowFunctionExpression:(e,t)=>{e.async&&t.commands.push("async "),t.commands.push("("),aw(e.params,t,!1,Jx),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("("),Jx(e.body,t),t.commands.push(")")):Jx(e.body,t)},AssignmentExpression(e,t){Jx(e.left,t),t.commands.push(` ${e.operator} `),Jx(e.right,t)},AssignmentPattern(e,t){Jx(e.left,t),t.commands.push(" = "),Jx(e.right,t)},AwaitExpression(e,t){if(e.argument){const n=ew[e.argument.type];n&&n<ew.AwaitExpression?(t.commands.push("await ("),Jx(e.argument,t),t.commands.push(")")):(t.commands.push("await "),Jx(e.argument,t))}else t.commands.push("await")},BinaryExpression:ow["BinaryExpression|LogicalExpression"],BlockStatement:ow["BlockStatement|ClassBody"],BreakStatement(e,t){e.label?(t.commands.push("break "),Jx(e.label,t),t.commands.push(";")):t.commands.push("break;")},CallExpression:ow["CallExpression|NewExpression"],ChainExpression(e,t){Jx(e.expression,t)},ClassBody:ow["BlockStatement|ClassBody"],ClassDeclaration:ow["ClassDeclaration|ClassExpression"],ClassExpression:ow["ClassDeclaration|ClassExpression"],ConditionalExpression(e,t){ew[e.test.type]>ew.ConditionalExpression?Jx(e.test,t):(t.commands.push("("),Jx(e.test,t),t.commands.push(")"));const n=Kx(),r=Kx(),s={...t,multiline:!1};t.commands.push(n),Jx(e.consequent,s),t.commands.push(r),Jx(e.alternate,s);s.multiline?(n.children.push(Wx,zx,"? "),r.children.push(zx,": "),t.commands.push(Gx)):(n.children.push(" ? "),r.children.push(" : "))},ContinueStatement(e,t){e.label?(t.commands.push("continue "),Jx(e.label,t),t.commands.push(";")):t.commands.push("continue;")},DebuggerStatement(e,t){t.commands.push(Qx("debugger",e),";")},Decorator(e,t){t.commands.push("@"),Jx(e.expression,t),t.commands.push(zx)},DoWhileStatement(e,t){t.commands.push("do "),Jx(e.body,t),t.commands.push(" while ("),Jx(e.test,t),t.commands.push(");")},EmptyStatement(e,t){t.commands.push(";")},ExportAllDeclaration(e,t){t.commands.push("export * from "),Jx(e.source,t),t.commands.push(";")},ExportDefaultDeclaration(e,t){t.commands.push("export default "),Jx(e.declaration,t),"FunctionDeclaration"!==e.declaration.type&&t.commands.push(";")},ExportNamedDeclaration(e,t){t.commands.push("export "),e.declaration?Jx(e.declaration,t):(t.commands.push("{"),aw(e.specifiers,t,!0,((e,t)=>{Jx(e.local,t),e.local.name!==e.exported.name&&(t.commands.push(" as "),Jx(e.exported,t))})),t.commands.push("}"),e.source&&(t.commands.push(" from "),Jx(e.source,t)),t.commands.push(";"))},ExpressionStatement(e,t){if("ObjectExpression"===e.expression.type||"AssignmentExpression"===e.expression.type&&"ObjectPattern"===e.expression.left.type)return t.commands.push("("),Jx(e.expression,t),void t.commands.push(");");Jx(e.expression,t),t.commands.push(";")},ForStatement:(e,t)=>{t.commands.push("for ("),e.init&&("VariableDeclaration"===e.init.type?sw(e.init,t):Jx(e.init,t)),t.commands.push("; "),e.test&&Jx(e.test,t),t.commands.push("; "),e.update&&Jx(e.update,t),t.commands.push(") "),Jx(e.body,t)},ForInStatement:ow["ForInStatement|ForOfStatement"],ForOfStatement:ow["ForInStatement|ForOfStatement"],FunctionDeclaration:ow["FunctionDeclaration|FunctionExpression"],FunctionExpression:ow["FunctionDeclaration|FunctionExpression"],Identifier(e,t){let n=e.name;t.commands.push(Qx(n,e)),e.typeAnnotation&&iw(e.typeAnnotation,t)},IfStatement(e,t){t.commands.push("if ("),Jx(e.test,t),t.commands.push(") "),Jx(e.consequent,t),e.alternate&&(t.commands.push(" else "),Jx(e.alternate,t))},ImportDeclaration(e,t){if(0===e.specifiers.length)return t.commands.push("import "),Jx(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 "),"type"==e.importKind&&t.commands.push("type "),r&&(t.commands.push(Qx(r.local.name,r)),(n||s.length>0)&&t.commands.push(", ")),n&&t.commands.push(Qx("* as "+n.local.name,n)),s.length>0&&(t.commands.push("{"),aw(s,t,!0,((e,t)=>{e.local.name!==e.imported.name&&(Jx(e.imported,t),t.commands.push(" as ")),"type"==e.importKind&&t.commands.push("type "),Jx(e.local,t)})),t.commands.push("}")),t.commands.push(" from "),Jx(e.source,t),t.commands.push(";")},ImportExpression(e,t){t.commands.push("import("),Jx(e.source,t),t.commands.push(")")},LabeledStatement(e,t){Jx(e.label,t),t.commands.push(": "),Jx(e.body,t)},Literal(e,t){let n=e.raw;n||(n="string"==typeof e.value?JSON.stringify(e.value):String(e.value)),t.commands.push(Qx(n,e))},LogicalExpression:ow["BinaryExpression|LogicalExpression"],MemberExpression(e,t){ew[e.object.type]<ew.MemberExpression?(t.commands.push("("),Jx(e.object,t),t.commands.push(")")):Jx(e.object,t),e.computed?(e.optional&&t.commands.push("?."),t.commands.push("["),Jx(e.property,t),t.commands.push("]")):(t.commands.push(e.optional?"?.":"."),Jx(e.property,t))},MetaProperty(e,t){Jx(e.meta,t),t.commands.push("."),Jx(e.property,t)},MethodDefinition(e,t){if(e.decorators)for(const n of e.decorators)Jx(n,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("["),Jx(e.key,t),e.computed&&t.commands.push("]"),t.commands.push("("),aw(e.value.params,t,!1,Jx),t.commands.push(") "),e.value.body&&Jx(e.value.body,t)},NewExpression:ow["CallExpression|NewExpression"],ObjectExpression(e,t){t.commands.push("{"),aw(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("["),Jx(e.key,t),e.computed&&t.commands.push("]"),t.commands.push("("),aw(n.params,t,!1,Jx),t.commands.push(") "),Jx(n.body,t)}else Jx(e,t)})),t.commands.push("}")},ObjectPattern(e,t){t.commands.push("{"),aw(e.properties,t,!0,Jx),t.commands.push("}"),e.typeAnnotation&&iw(e.typeAnnotation,t)},ParenthesizedExpression:(e,t)=>Jx(e.expression,t),PrivateIdentifier(e,t){t.commands.push("#",Qx(e.name,e))},Program(e,t){rw(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("["),Jx(e.key,t),t.commands.push(e.computed?"]: ":": "),Jx(e.value,t)):Jx(e.value,t)},PropertyDefinition(e,t){e.accessibility&&t.commands.push(e.accessibility," "),e.static&&t.commands.push("static "),e.computed?(t.commands.push("["),Jx(e.key,t),t.commands.push("]")):Jx(e.key,t),e.typeAnnotation&&(t.commands.push(": "),iw(e.typeAnnotation.typeAnnotation,t)),e.value&&(t.commands.push(" = "),Jx(e.value,t)),t.commands.push(";")},RestElement:ow["RestElement|SpreadElement"],ReturnStatement(e,t){if(e.argument){const n=e.argument,r=n.leadingComments&&n.leadingComments.some((e=>"Line"===e.type));t.commands.push(r?"return (":"return "),Jx(e.argument,t),t.commands.push(r?");":";")}else t.commands.push("return;")},SequenceExpression(e,t){t.commands.push("("),aw(e.expressions,t,!1,Jx),t.commands.push(")")},SpreadElement:ow["RestElement|SpreadElement"],StaticBlock(e,t){t.commands.push(Wx,"static {",zx),rw(e.body,t),t.commands.push(Gx,zx,"}")},Super(e,t){t.commands.push(Qx("super",e))},SwitchStatement(e,t){t.commands.push("switch ("),Jx(e.discriminant,t),t.commands.push(") {",Wx);let n=!0;for(const r of e.cases){n||t.commands.push("\n"),n=!1,r.test?(t.commands.push(zx,"case "),Jx(r.test,t),t.commands.push(":")):t.commands.push(zx,"default:"),t.commands.push(Wx);for(const e of r.consequent)t.commands.push(zx),Jx(e,t);t.commands.push(Gx)}t.commands.push(Gx,zx,"}")},TaggedTemplateExpression(e,t){Jx(e.tag,t),Jx(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,"${"),Jx(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(Qx("this",e))},ThrowStatement(e,t){t.commands.push("throw "),e.argument&&Jx(e.argument,t),t.commands.push(";")},TryStatement(e,t){t.commands.push("try "),Jx(e.block,t),e.handler&&(e.handler.param?(t.commands.push(" catch("),Jx(e.handler.param,t),t.commands.push(") ")):t.commands.push(" catch "),Jx(e.handler.body,t)),e.finalizer&&(t.commands.push(" finally "),Jx(e.finalizer,t))},TSAsExpression(e,t){if(e.expression){ew[e.expression.type]<ew.TSAsExpression?(t.commands.push("("),Jx(e.expression,t),t.commands.push(")")):Jx(e.expression,t)}t.commands.push(" as "),iw(e.typeAnnotation,t)},TSEnumDeclaration(e,t){t.commands.push("enum "),Jx(e.id,t),t.commands.push(" {",Wx,zx),aw(e.members,t,!1,iw),t.commands.push(Gx,zx,"}",zx)},TSNonNullExpression(e,t){Jx(e.expression,t),t.commands.push("!")},TSInterfaceBody(e,t){aw(e.body,t,!1,iw,";")},TSInterfaceDeclaration(e,t){t.commands.push("interface "),Jx(e.id,t),e.typeParameters&&iw(e.typeParameters,t),e.extends&&(t.commands.push(" extends "),aw(e.extends,t,!1,iw)),t.commands.push(" {"),Jx(e.body,t),t.commands.push("}")},TSSatisfiesExpression(e,t){if(e.expression){ew[e.expression.type]<ew.TSSatisfiesExpression?(t.commands.push("("),Jx(e.expression,t),t.commands.push(")")):Jx(e.expression,t)}t.commands.push(" satisfies "),iw(e.typeAnnotation,t)},TSTypeAliasDeclaration(e,t){t.commands.push("type "),Jx(e.id,t),e.typeParameters&&iw(e.typeParameters,t),t.commands.push(" = "),iw(e.typeAnnotation,t),t.commands.push(";")},TSQualifiedName(e,t){Jx(e.left,t),t.commands.push("."),Jx(e.right,t)},UnaryExpression(e,t){t.commands.push(e.operator),e.operator.length>1&&t.commands.push(" "),ew[e.argument.type]<ew.UnaryExpression?(t.commands.push("("),Jx(e.argument,t),t.commands.push(")")):Jx(e.argument,t)},UpdateExpression(e,t){e.prefix?(t.commands.push(e.operator),Jx(e.argument,t)):(Jx(e.argument,t),t.commands.push(e.operator))},VariableDeclaration(e,t){sw(e,t),t.commands.push(";")},VariableDeclarator(e,t){Jx(e.id,t),e.init&&(t.commands.push(" = "),Jx(e.init,t))},WhileStatement(e,t){t.commands.push("while ("),Jx(e.test,t),t.commands.push(") "),Jx(e.body,t)},WithStatement(e,t){t.commands.push("with ("),Jx(e.object,t),t.commands.push(") "),Jx(e.body,t)},YieldExpression(e,t){e.argument?(t.commands.push(e.delegate?"yield* ":"yield "),Jx(e.argument,t)):t.commands.push(e.delegate?"yield*":"yield")}},cw=",".charCodeAt(0),pw=";".charCodeAt(0),uw="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",dw=new Uint8Array(64),hw=new Uint8Array(128);for(let e=0;e<64;e++){const t=uw.charCodeAt(e);dw[e]=t,hw[t]=e}function mw(e,t){let n=0,r=0,s=0;do{const t=e.next();s=hw[t],n|=(31&s)<<r,r+=5}while(32&s);const a=1&n;return n>>>=1,a&&(n=-2147483648|-n),t+n}function fw(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(dw[t])}while(r>0);return t}function yw(e,t){return!(e.pos>=t)&&e.peek()!==cw}const vw="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 gw{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+=vw.decode(t),this.pos=0)}flush(){const{buffer:e,out:t,pos:n}=this;return n>0?t+vw.decode(e.subarray(0,n)):t}}class bw{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 _w(e){const{length:t}=e,n=new bw(e),r=[];let s=0,a=0,i=0,o=0,l=0;do{const e=n.indexOf(";"),t=[];let c=!0,p=0;for(s=0;n.pos<e;){let r;s=mw(n,s),s<p&&(c=!1),p=s,yw(n,e)?(a=mw(n,a),i=mw(n,i),o=mw(n,o),yw(n,e)?(l=mw(n,l),r=[s,a,i,o,l]):r=[s,a,i,o]):r=[s],t.push(r),n.pos++}c||xw(t),r.push(t),n.pos=e+1}while(n.pos<=t);return r}function xw(e){e.sort(ww)}function ww(e,t){return e[0]-t[0]}function Cw(e){const t=new gw;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(pw),0===o.length)continue;let l=0;for(let e=0;e<o.length;e++){const i=o[e];e>0&&t.write(cw),l=fw(t,i[0],l),1!==i.length&&(n=fw(t,i[1],n),r=fw(t,i[2],r),s=fw(t,i[3],s),4!==i.length&&(a=fw(t,i[4],a)))}}return t.flush()}let kw=()=>{throw new Error("Unsupported environment: `window.btoa` or `Buffer` should be supported.")};function Sw(e,t={}){if(Array.isArray(e))return Sw({type:"Program",body:e,sourceType:"module"},t);const n={commands:[],comments:[],multiline:!1};Jx(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 p={version:3,names:[],sources:[t.sourceMapSource||null],sourcesContent:[t.sourceMapContent||null],mappings:null==t.sourceMapEncodeMappings||t.sourceMapEncodeMappings?Cw(a):a};return Object.defineProperties(p,{toString:{enumerable:!1,value:function(){return JSON.stringify(this)}},toUrl:{enumerable:!1,value:function(){return"data:application/json;charset=utf-8;base64,"+kw(this.toString())}}}),{code:r,map:p}}"undefined"!=typeof window&&"function"==typeof window.btoa?kw=e=>window.btoa(unescape(encodeURIComponent(e))):"function"==typeof Buffer&&(kw=e=>Buffer.from(e,"utf-8").toString("base64"));const Pw="5.16.2";class Ew{constructor(e){this.bits=e instanceof Ew?e.bits.slice():[]}add(e){this.bits[e>>5]|=1<<(31&e)}has(e){return!!(this.bits[e>>5]&1<<(31&e))}}class Aw{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 Aw(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 Aw(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 Tw(){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 $w=Tw();let Rw=class{constructor(e){this.version=3,this.file=e.file,this.sources=e.sources,this.sourcesContent=e.sourcesContent,this.names=e.names,this.mappings=Cw(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,"+$w(this.toString())}};function Iw(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 qw=Object.prototype.toString;function Lw(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 Mw=/\w/;class Ow{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?Mw.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 Nw="\n",Dw={insertLeft:!1,insertRight:!1,storeName:!1};class jw{constructor(e,t={}){const n=new Aw(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 Ew},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 jw(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 Ew(this.sourcemapLocations),e.intro=this.intro,e.outro=this.outro,e}generateDecodedMap(e){e=e||{};const t=Object.keys(this.storedNames),n=new Ow(e.hires),r=Lw(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?Iw(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 Rw(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]"===qw.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 Dw.insertLeft||(console.warn("magicString.insertLeft(...) is deprecated. Use magicString.appendLeft(...) instead"),Dw.insertLeft=!0),this.appendLeft(e,t)}insertRight(e,t){return Dw.insertRight||(console.warn("magicString.insertRight(...) is deprecated. Use magicString.prependRight(...) instead"),Dw.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&&(Dw.storeName||(console.warn("The final argument to magicString.overwrite(...) should be an options object. See https://github.com/rich-harris/magic-string"),Dw.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 Aw(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(Nw);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(Nw),-1!==e)return n.outro.substr(e+1)+t;t=n.outro+t}if(n.content.length>0){if(e=n.content.lastIndexOf(Nw),-1!==e)return n.content.substr(e+1)+t;t=n.content+t}if(n.intro.length>0){if(e=n.intro.lastIndexOf(Nw),-1!==e)return n.intro.substr(e+1)+t;t=n.intro+t}}while(n=n.previous);return e=this.intro.lastIndexOf(Nw),-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=Lw(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 Bw=/^[\w+.-]+:\/\//,Fw=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,Vw=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;var Hw;function Uw(e){return e.startsWith("/")}function zw(e){return/^[.?#]/.test(e)}function Ww(e){const t=Fw.exec(e);return Gw(t[1],t[2]||"",t[3],t[4]||"",t[5]||"/",t[6]||"",t[7]||"")}function Gw(e,t,n,r,s,a,i){return{scheme:e,user:t,host:n,port:r,path:s,query:a,hash:i,type:Hw.Absolute}}function Kw(e){if(function(e){return e.startsWith("//")}(e)){const t=Ww("http:"+e);return t.scheme="",t.type=Hw.SchemeRelative,t}if(Uw(e)){const t=Ww("http://foo.com"+e);return t.scheme="",t.host="",t.type=Hw.AbsolutePath,t}if(function(e){return e.startsWith("file:")}(e))return function(e){const t=Vw.exec(e),n=t[2];return Gw("file:","",t[1]||"","",Uw(n)?n:"/"+n,t[3]||"",t[4]||"")}(e);if(function(e){return Bw.test(e)}(e))return Ww(e);const t=Ww("http://foo.com/"+e);return t.scheme="",t.host="",t.type=e?e.startsWith("?")?Hw.Query:e.startsWith("#")?Hw.Hash:Hw.RelativePath:Hw.Empty,t}function Xw(e,t){const n=t<=Hw.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 Jw(e,t){if(!e&&!t)return"";const n=Kw(e);let r=n.type;if(t&&r!==Hw.Absolute){const e=Kw(t),s=e.type;switch(r){case Hw.Empty:n.hash=e.hash;case Hw.Hash:n.query=e.query;case Hw.Query:case Hw.RelativePath:!function(e,t){Xw(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 Hw.AbsolutePath:n.user=e.user,n.host=e.host,n.port=e.port;case Hw.SchemeRelative:n.scheme=e.scheme}s>r&&(r=s)}Xw(n,r);const s=n.query+n.hash;switch(r){case Hw.Hash:case Hw.Query:return s;case Hw.RelativePath:{const r=n.path.slice(1);return r?zw(t||e)&&!zw(r)?"./"+r+s:r+s:s||"."}case Hw.AbsolutePath:return n.path+s;default:return n.scheme+"//"+n.user+n.host+n.port+n.path+s}}function Qw(e,t){return t&&!t.endsWith("/")&&(t+="/"),Jw(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"}(Hw||(Hw={}));const Yw=0;function Zw(e,t){for(let n=t;n<e.length;n++)if(!eC(e[n]))return n;return e.length}function eC(e){for(let t=1;t<e.length;t++)if(e[t][Yw]<e[t-1][Yw])return!1;return!0}function tC(e,t){return t||(e=e.slice()),e.sort(nC)}function nC(e,t){return e[Yw]-t[Yw]}let rC=!1;function sC(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 rC=-1!==i&&e[i][Yw]===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][Yw]-t;if(0===a)return rC=!0,s;a<0?n=s+1:r=s-1}return rC=!1,n-1}(e,t,o,l)}class aC{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 p=Qw(o||"",function(e){if(!e)return"";const t=e.lastIndexOf("/");return e.slice(0,t+1)}(t));this.resolvedSources=l.map((e=>Qw(e||"",p)));const{mappings:u}=r;"string"==typeof u?(this._encoded=u,this._decoded=void 0):(this._encoded=void 0,this._decoded=function(e,t){const n=Zw(e,0);if(n===e.length)return e;t||(e=e.slice());for(let r=n;r<e.length;r=Zw(e,r+1))e[r]=tC(e[r],t);return e}(u,n)),this._decodedMemo={lastKey:-1,lastNeedle:-1,lastIndex:-1},this._bySources=void 0,this._bySourceMemos=void 0}}function iC(e){var t;return(t=e)._decoded||(t._decoded=_w(e._encoded))}function oC(e,t,n){const r=iC(e);if(t>=r.length)return null;const s=r[t],a=function(e,t,n,r,s){let a=sC(e,r,t,n);rC&&(a=function(e,t,n){for(let r=n-1;r>=0&&e[r][Yw]===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 lC{constructor(){this._indexes={__proto__:null},this.array=[]}}function cC(e,t){return e._indexes[t]}function pC(e,t){const n=cC(e,t);if(void 0!==n)return n;const{array:r,_indexes:s}=e,a=r.push(t);return s[t]=a-1}const uC=0,dC=1,hC=2,mC=3,fC=4,yC=-1;class vC{constructor({file:e,sourceRoot:t}={}){this._names=new lC,this._sources=new lC,this._sourcesContent=[],this._mappings=[],this.file=e,this.sourceRoot=t,this._ignoreList=new lC}}const gC=(e,t,n,r,s,a,i,o)=>function(e,t,n,r,s,a,i,o,l){const{_mappings:c,_sources:p,_sourcesContent:u,_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][uC])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 wC(h,m,[r])}const f=pC(p,s),y=o?pC(d,o):yC;f===u.length&&(u[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[dC]&&r===i[hC]&&s===i[mC]&&a===(5===i.length?i[fC]:yC))}(h,m,f,a,i,y))return;return wC(h,m,o?[r,f,a,i,y]:[r,f,a,i])}(0,e,t,n,r,s,a,i);function bC(e,t,n){const{_sources:r,_sourcesContent:s}=e;s[pC(r,t)]=n}function _C(e,t,n=!0){const{_sources:r,_sourcesContent:s,_ignoreList:a}=e,i=pC(r,t);i===s.length&&(s[i]=null),n?pC(a,i):function(e,t){const n=cC(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 xC(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 wC(e,t,n){for(let n=e.length;n>t;n--)e[n]=e[n-1];e[t]=n}const CC=SC("",-1,-1,"",null,!1),kC=[];function SC(e,t,n,r,s,a){return{source:e,line:t,column:n,name:r,content:s,ignore:a}}function PC(e,t,n,r,s){return{map:e,sources:t,source:n,content:r,ignore:s}}function EC(e,t){return PC(e,t,"",null,!1)}function AC(e,t,n,r){if(!e.map)return SC(e.source,t,n,r,e.content,e.ignore);const s=oC(e.map,t,n);return null==s?null:1===s.length?CC:AC(e.sources[s[1]],s[2],s[3],5===s.length?e.map.names[s[4]]:r)}function TC(e,t){const n=(r=e,Array.isArray(r)?r:[r]).map((e=>new aC(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=$C(s,t,"",0);for(let e=n.length-1;e>=0;e--)a=EC(n[e],[a]);return a}function $C(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:p,ignore:u}=s;if(l)return $C(new aC(l,c),t,c,o);return function(e,t,n){return PC(null,kC,e,t,n)}(c,void 0!==p?p:a?a[r]:null,void 0!==u?u:!!i&&i.includes(r))}));return EC(e,l)}class RC{constructor(e,t){const n=t.decodedMappings?xC(e):function(e){const t=xC(e);return Object.assign(Object.assign({},t),{mappings:Cw(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 IC(e,t,n){const r={excludeContent:!!n,decodedMappings:!1},s=TC(e,t);return new RC(function(e){const t=new vC({file:e.map.file}),{sources:n,map:r}=e,s=r.names,a=iC(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=CC;if(1!==i.length&&(l=AC(n[i[1]],i[2],i[3],5===i.length?s[i[4]]:""),null==l))continue;const{column:c,line:p,name:u,content:d,source:h,ignore:m}=l;gC(t,e,o,h,p,c,u),h&&null!=d&&bC(t,h,d),m&&_C(t,h,!0)}}return t}(s),r)}function qC(e,t){for(let n=0;n<t.length;n++)e.push(t[n])}function LC(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 MC(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 OC=/([^\w\s]|\s+)/g;class NC{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]=MC(r.sources,s.sources),[c,p,u,d]=MC(r.names,s.names);if(o&&(r.sources=a),u&&(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]=p[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]=p[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 qC(r.mappings[r.mappings.length-1],s.mappings.shift()),qC(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 NC(e,t)}if(""==e)return new NC;t={version:3,names:[],sources:[],mappings:[]};for(let e=0;e<n;e++)t.mappings.push([]);return new NC(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 NC(e,s);const a=e.split("\n");for(let e=0;e<a.length;e++){s.mappings.push([]);const t=a[e].split(OC);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 NC(e,s)}}const DC="undefined"!=typeof window&&"function"==typeof btoa?e=>btoa(unescape(encodeURIComponent(e))):e=>Buffer.from(e).toString("base64"),jC="undefined"!=typeof window&&"function"==typeof atob?atob:e=>Buffer.from(e,"base64").toString();function BC(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))?IC(t,(()=>null),!0):IC(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 FC=/data:(?:application|text)\/json;(?:charset[:=]\S+?;)?base64,(\S*)/;function VC(e,t,n){if(t.sourcemap){const r=UC(t.filename);e.map.sources=[r],e.map=function(e,t,n){if(!t||!n)return t;const r=BC(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,"+DC(this.toString())}}}),r}(r,e.map,t.sourcemap),r!==n&&(e.map.sources=e.map.sources.map((e=>HC(n,e))))}}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("/")}function UC(e){return e.split(/[/\\]/).pop()}function zC(e,t,n){return t?HC(t,e):UC(e)}function WC(e,n,r){const s=new jw(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,GC),s.remove(0,i.content.start),s.remove(i.content.end,e.length),a.minify&&JC(i.content.end,a);const o={code:s.toString(),map:s.generateMap({includeContent:!0,source:r.filename,file:r.cssOutputFilename||r.filename})};return VC(o,r,o.map.sources[0]),ce&&"injected"===r.css&&o.code&&(o.code+=`\n/*# sourceMappingURL=${o.map.toUrl()} */`),o}const GC={_:(e,t)=>{t.state.code.addSourcemapLocation(e.start),t.state.code.addSourcemapLocation(e.end),t.next()},Atrule(e,{state:t,next:n,path:r}){if(Jl(e)){let n=e.start+e.name.length+1;for(;" "===t.code.original[n];)n+=1;let s=n;for(;"{"!==t.code.original[s]&&" "!==t.code.original[s];)s+=1;e.prelude.startsWith("-global-")?t.code.remove(n,n+8):KC(r)||t.code.prependRight(n,`${t.hash}-`)}else n()},Declaration(e,{state:t}){const n=e.property&&Xl(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(Kl.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&&(JC(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,path:s}){if(t.minify&&(JC(e.start,t),JC(e.block.end-1,t)),ce||!QC(e,KC(s)))if(YC(e)||KC(s)){if(e.metadata.is_global_block){const n=e.prelude.children[0];if(1===n.children.length&&1===n.children[0].selectors.length)return 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.block)}n()}else t.minify?t.code.remove(e.start,e.end):(t.code.prependRight(e.start,"/* (unused) "),t.code.appendLeft(e.end,"*/"),ZC(e,t.code));else t.minify?t.code.remove(e.start,e.end):(t.code.prependRight(e.start,"/* (empty) "),t.code.appendLeft(e.end,"*/"),ZC(e,t.code))},SelectorList(e,{state:t,next:n,path:r}){if(!KC(r)&&!r.find((e=>"ComplexSelector"===e.type&&!e.metadata.used))){const n=e.children;let r=!1,s=n[0].start,a=s,i=!1;for(let e=0;e<n.length;e+=1){const o=n[e];if(o.metadata.used===r){if(r){let e=o.start;for(;","!==t.code.original[e];)e--;t.minify?t.code.remove(s,i?e:e+1):t.code.appendRight(i?e:e+1,"*/")}else 0===e?t.minify?s=o.start:t.code.prependRight(o.start,"/* (unused) "):t.minify?s=a:t.code.overwrite(a,o.start," /* (unused) ");r=!r}!r&&o.metadata.used&&(i=!0),a=o.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];XC(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&&XC(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 KC(e){return e.some((e=>"Rule"===e.type&&e.metadata.is_global_block))}function XC(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 JC(e,t){let n=e;for(;/\s/.test(t.code.original[n-1]);)n--;n<e&&t.code.remove(n,e)}function QC(e,t){if(e.metadata.is_global_block)return 0===e.block.children.length;for(const n of e.block.children){if("Declaration"===n.type)return!1;if("Rule"===n.type&&(YC(n)||t)&&!QC(n,t))return!1;if("Atrule"===n.type&&(null===n.block||n.block.children.length>0))return!1}return!0}function YC(e){return e.prelude.children.some((e=>e.metadata.used))}function ZC(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 ek(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?ni("$$value"):s;let o=!1;const l=Ji(e.left).map((e=>{const r=e.expression?.(i);let s=n("=",e.node,r,t);return null!==s&&(o=!0),s??Va("=",t.visit(e.node),t.visit(r))}));if(!o)return null;const c=t.path.at(-1).type.endsWith("Statement"),p=mi(l);if(c||p.expressions.push(i),a){const e=Fa([i],p),t=eo(s)||l.some((e=>eo(e)));return t?Ha(Wa((r=e,{...r,async:!0}),s)):Wa(e,s)}return p}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 tk(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(no(e,t,n));return Wa("$.store_set",ni(a),s)}return Wa("$.store_mutate",Va("??=",ni("$$store_subs"),li([])),ai(s.name),ni(a),Va(e,r.visit(t),r.visit(n)))}const nk=/[&"<]/g,rk=/[&<]/g;function sk(e,t){const n=String(e??""),r=t?nk:rk;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 ak="\x3c!--[--\x3e",ik="\x3c!--[!--\x3e",ok="\x3c!--]--\x3e",lk=ai(ak),ck=ai(ok),pk=ai("\x3c!----\x3e");function uk(e,{visit:t,state:n}){let r=[];function s(){let e=di("",!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`:sk(i.data):"ExpressionTag"===i.type&&"Literal"===i.expression.type?null!=i.expression.value&&(e.value.cooked+=sk(i.expression.value+"")):(a.push(Wa("$.escape",t(i.expression))),e=di("",n+1===r.length),s.push(e))}for(const e of s)e.value.raw=Na(e.value.cooked);n.template.push(gi(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 dk(e){return e.type.endsWith("Statement")||e.type.endsWith("Declaration")}function hk(e,t=ni("$$payload.out"),n="+="){let r=[],s=[];const a=[],i=()=>{a.push(vi(Va(n,t,gi(r.map(((e,t)=>di(e,t===r.length-1))),s)))),r=[],s=[]};for(let t=0;t<e.length;t++){const n=e[t];dk(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 mk(e,t,n=!1,r=!1){if(!0===e)return ki;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(u," ").trim():s.data;return ai(r?e:sk(e,!0))}return t.visit(s.expression)}let s=di("",!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(u," "):o.data:(i.push(Wa("$.stringify",t.visit(o.expression))),s=di("",r+1===e.length),a.push(s))}return gi(a,i)}function fk(e,t){const n=t.scope.get(e.name);if(null===n||e===n.node)return e;if("store_sub"===n.kind){const n=ni(e.name.slice(1));return Wa("$.store_get",Va("??=",ni("$$store_subs"),li([])),ai(e.name),fk(n,t))}return e}function yk(e){return("ArrowFunctionExpression"===e.type||"FunctionExpression"===e.type||"FunctionDeclaration"===e.type)&&!0===e.metadata?.hoisted}function vk(e,n){const r=[],s=new Map;for(const a of e)if("ConstTag"===a.type){const e=a.declaration.declarations[0],r=Gi(e.id).map((e=>n.scope.get(e.name))),i=new Set;t(e.init,n,{_:Ul,Identifier(e,t){if(Rl(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=Wl(a);if(i?.length){!function(e,t){Br(e,"const_tag_cycle",`Cyclical dependency detected: ${t}\nhttps://svelte.dev/e/const_tag_cycle`)}(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 gk(e,t,n,r="html",s,a,i){s.analysis.runes||(t=vk(t,s));const l=[],u=[];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):u.push(e));let d=u;if(!a){let t,s;for(d=[];(t=u[0])&&"Text"===t.type&&!p.test(t.data);)u.shift();for("Text"===t?.type&&(t.raw=t.raw.replace(o,""),t.data=t.data.replace(o,""));(s=u.at(-1))&&"Text"===s.type&&!p.test(s.data);)u.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<u.length;e++){const t=u[e-1],n=u[e],r=u[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:"",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||"SvelteBoundary"===e.type||"Component"===e.type||"SvelteSelf"===e.type)&&h&&("Text"===h?.type||"ExpressionTag"===h?.type)}}function bk(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}let s=null;for(const e of r)if("RegularElement"===e.type)if(e.metadata.mathml)s=null===s||"mathml"===s?"mathml":"html";else{if(!e.metadata.svg)return"html";s=null===s||"svg"===s?"svg":"html"}return s??e}function _k(e,t){return"foreignObject"===e.name?"html":e.metadata.svg?"svg":e.metadata.mathml?"mathml":"html"}function xk(e,t){const{state:n,visit:r}=t,s="client"===n.options.generate;if(!ce)return Ya;if("MemberExpression"===e.callee.type){const t=e.callee.object.arguments.map((e=>r(e))),n=r(e.arguments[0]);return Wa("$.inspect",s?bi(Da(t)):Da(t),n)}{const t=e.arguments.map((e=>r(e)));return Wa("$.inspect",s?bi(Da(t)):Da(t))}}function wk(e,t,n){const r=[],s=[],a=[],i={default:[]},o={...n.state,scope:e.metadata.scopes.default},l={},c=e.attributes.some((e=>"Attribute"===e.type&&"slot"===e.name));let p=!1;function u(e,t=!1){const n=()=>{const t=r.at(-1),n=Array.isArray(t),s=n?t:[];s.push(e),n||r.push(s)};t?s.push(n):n()}for(const t of e.attributes)if("LetDirective"===t.type)c||i.default.push(t);else if("SpreadAttribute"===t.type)r.push(n.visit(t));else if("Attribute"===t.type){if(t.name.startsWith("--")){const e=mk(t.value,n,!1,!0);a.push(si(t.name,e));continue}"children"===t.name&&(p=!0);const e=mk(t.value,n,!1,!0);u(pi("init",ji(t.name),e))}else if("BindDirective"===t.type&&"this"!==t.name)if("SequenceExpression"===t.expression.type){const[e,r]=n.visit(t.expression).expressions,s=ni(n.state.scope.generate("bind_get")),a=ni(n.state.scope.generate("bind_set"));n.state.init.push(Ri(s,e)),n.state.init.push(Ri(a,r)),u(ti(t.name,[Ni(Wa(s))])),u(fi(t.name,[vi(Wa(a,ni("$$value")))]))}else u(ti(t.name,[Ni(n.visit(t.expression))]),!0),u(fi(t.name,[vi(n.visit(Va("=",t.expression,ni("$$value")))),vi(Va("=",ni("$$settled"),Si))]),!0);s.forEach((e=>e()));const d=[],h=[];for(const t of e.fragment.nodes){if("SnippetBlock"===t.type){n.visit(t,{...n.state,init:d}),u(pi("init",t.expression,t.expression)),h.push(si("children"===t.expression.name?"default":t.expression.name,ki));continue}let e="default";if(Bo(t)){const n=t.attributes.find((e=>"Attribute"===e.type&&"slot"===e.name));void 0!==n?(e=n.value[0].data,i[e]=t.attributes.filter((e=>"LetDirective"===e.type))):"SvelteFragment"===t.type&&i.default.push(...t.attributes.filter((e=>"LetDirective"===e.type)))}l[e]=l[e]||[],l[e].push(t)}for(const t of Object.keys(l)){const r=n.visit({...e.fragment,nodes:l[t]},"default"===t?o:{...n.state,scope:e.metadata.scopes[t]});if(0===r.body.length)continue;const s=[ni("$$payload")];if(i[t].length>0){const e=ci(i[t].map((e=>null===e.expression?si(e.name,ni(e.name)):"ObjectExpression"===e.expression.type?si(e.name,ci(e.expression.properties)):"ArrayExpression"===e.expression.type?si(e.name,ja(e.expression.elements)):si(e.name,e.expression))));s.push(e)}const a=Fa(s,za(r.body));"default"!==t||p?h.push(si(t,a)):0===i.default.length&&l.default.every((e=>"SvelteFragment"!==e.type||!e.attributes.some((e=>"LetDirective"===e.type))))?(u(pi("init",ni("children"),a)),h.push(si(t,ki))):(h.push(si(t,a)),u(si("children",ni("$.invalid_default_snippet"))))}h.length>0&&u(pi("init",ni("$$slots"),li(h)));const m=0===r.length||1===r.length&&Array.isArray(r[0])?li(r[0]||[]):Wa("$.spread_props",Da(r.map((e=>Array.isArray(e)?li(e):e))));let f=vi(("SvelteComponent"===e.type?Ga:Wa)(t,ni("$$payload"),m));d.length>0&&(f=za([...d,f]));const y="SvelteComponent"===e.type||"Component"===e.type&&e.metadata.dynamic;a.length>0?n.state.template.push(vi(Wa("$.css_props",ni("$$payload"),ai("svg"!==n.state.namespace),li(a),bi(za([f])),y&&ki))):(y&&n.state.template.push(pk),n.state.template.push(f),n.state.skip_hydration_boundaries||n.state.template.push(pk))}const Ck=["class","style"];function kk(e,t){const n=[],r=[],s=[];let i=null,o=!1,l=-1,c=-1,p=new Set;for(const u of e.attributes)if("Attribute"===u.type){if("value"===u.name)"textarea"===e.name?(!0!==u.value&&Array.isArray(u.value)&&"Text"===u.value[0].type&&a.test(u.value[0].data)&&(u.value[0].data="\n"+u.value[0].data),i=Wa("$.escape",mk(u.value,t))):"select"!==e.name&&n.push(u);else if(zi(u))"onload"!==u.name&&"onerror"!==u.name||!te(e.name)||p.add(u.name);else if("defaultValue"!==u.name&&"defaultChecked"!==u.name)if("class"===u.name)if(l=n.length,u.metadata.needs_clsx){const e=Wa("$.clsx",u.value.expression);n.push({...u,value:{...u.value,expression:t.state.analysis.css.hash?Ua("+",Ua("+",e,ai(" ")),ai(t.state.analysis.css.hash)):e}})}else n.push(u);else"style"===u.name&&(c=n.length),n.push(u)}else if("BindDirective"===u.type){if("value"===u.name&&"select"===e.name)continue;if("value"===u.name&&n.some((e=>"Attribute"===e.type&&"type"===e.name&&Fi(e)&&"file"===e.value[0].data)))continue;if("this"===u.name)continue;const r=qc[u.name];if(r?.omit_in_ssr)continue;let s=t.visit(u.expression);if("SequenceExpression"===s.type&&(s=Wa(s.expressions[0])),Z(u.name))i=s;else if("value"===u.name&&"textarea"===e.name)i=Wa("$.escape",s);else if("group"===u.name&&"SequenceExpression"!==u.expression.type){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&&Fi(e)&&"checkbox"===e.value[0].data));n.push(Vo("checked",-1,-1,[{type:"ExpressionTag",start:-1,end:-1,expression:s?Wa(ii(u.expression,"includes"),mk(r.value,t)):Ua("===",u.expression,mk(r.value,t)),metadata:{expression:Ho()}}]))}else n.push(Vo(u.name,-1,-1,[{type:"ExpressionTag",start:-1,end:-1,expression:s,metadata:{expression:Ho()}}]))}else"SpreadAttribute"===u.type?(n.push(u),o=!0,te(e.name)&&(p.add("onload"),p.add("onerror"))):"UseDirective"===u.type?te(e.name)&&(p.add("onload"),p.add("onerror")):"ClassDirective"===u.type?r.push(u):"StyleDirective"===u.type?s.push(u):"LetDirective"===u.type||t.visit(u);if(r.length>0&&!o){const e=function(e,t){const n=e.map((e=>Ka(e.expression,ai(e.name),ai(""))));null===t&&(t=Vo("class",-1,-1,[]));const r=Ui(t.value),s=r.at(-1);"Text"===s?.type?(s.data+=" ",s.raw+=" "):s&&r.push({type:"Text",start:-1,end:-1,data:" ",raw:" "});return r.push({type:"ExpressionTag",start:-1,end:-1,expression:Wa(ii(Wa(ii(Da(n),"filter"),ni("Boolean")),ni("join")),ai(" ")),metadata:{expression:Ho()}}),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?ni(e.name):mk(e.value,n,!0);return e.modifiers.includes("important")&&(t=Ua("+",t,ai(" !important"))),si(e.name,t)})),s=null===t?li(r):Wa("$.merge_styles",mk(t.value,n,!0),li(r));n.state.template.push(Wa("$.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=>si(e.name,"Identifier"===e.expression.type&&e.expression.name===e.name?ni(e.name):s.visit(e.expression))));s.state.analysis.css.hash&&e.unshift(si(s.state.analysis.css.hash,ai(!0))),a=li(e)}if(n.length>0){i=li(n.map((e=>si(e.name,!0===e.value?ni(e.name):mk(e.value,s,!0)))))}e.metadata.svg||e.metadata.mathml?o|=k|S:Fo(e)&&(o|=S);const l=li(t.map((t=>{if("Attribute"===t.type){const n=Sk(e,t),r=mk(t.value,s,Ck.includes(n));return pi("init",ji(n),r)}return yi(s.visit(t))}))),c=[l,a,i,o?ai(o):void 0];s.state.template.push(Wa("$.spread_attributes",...c))}(e,n,s,r,t);else for(const r of n){if(!0===r.value||Fi(r)){const n=Sk(e,r),s=mk(r.value,t,Ck.includes(n)).value;("class"!==n||s)&&t.state.template.push(ai(` ${r.name}${W(n)&&!0===s?"":`="${!0===s?"":String(s)}"`}`));continue}const n=Sk(e,r),s=mk(r.value,t,Ck.includes(n));t.state.template.push(Wa("$.attr",ai(n),s,W(n)&&ki))}if(0!==p.size)for(const e of p)t.state.template.push(ai(` ${e}="this.__e=event"`));return i}function Sk(e,t){let n=t.name;return e.metadata.svg||e.metadata.mathml||(n=n.toLowerCase()),n}function Pk(e,t,n){if("Identifier"===e.id.type)return[Qa(e.id,n)];const r=t.generate("tmp"),s=Ji(e.id);return[Qa(ni(r),n),...s.map((e=>{const t=e.expression?.(ni(r));return Qa(e.node,t)}))]}const Ek={_:Ul,AssignmentExpression:function(e,t){return ek(e,t,tk)??t.next()},CallExpression:function(e,t){const n=zl(e,t.state.scope);return"$host"===n?ni("undefined"):"$effect.tracking"===n?ai(!1):"$effect.root"===n?Fa([],za([])):"$state.snapshot"===n?Wa("$.snapshot",t.visit(e.arguments[0]),ve(e,"state_snapshot_uncloneable")&&ki):"$inspect"===n||"$inspect().with"===n?xk(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=zl(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=ri(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?Wa("$.once",n):Wa("$.once",bi(n));if(o)a.push(ui(l.id,r));else{const t=ii(Ai,l.id);a.push(ui(l.id,r)),a.push(Ii("get",s.key,[],[Ni(Wa(t))])),!ce||"derived"!==l.kind&&"derived_by"!==l.kind||a.push(Ii("set",s.key,[ni("_")],[Di(`Cannot update a derived property ('${e}')`)]))}continue}}a.push(t.visit(s,i))}return{...e,body:a}},ExpressionStatement:function(e,t){const n=zl(e.expression,t.state.scope);if("$effect"===n||"$effect.pre"===n||"$effect.root"===n||"$inspect.trace"===n)return Ya;t.next()},Identifier:function(e,t){if(Rl(e,t.path.at(-1)))return"$$props"===e.name?ni("$$sanitized_props"):fk(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:ni(n),body:r})),Ya},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 Wa(e)}t.next()},PropertyDefinition:function(e,t){if(t.state.analysis.runes&&null!=e.value&&"CallExpression"===e.value.type){const n=zl(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:Wa(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?Wa(e.prefix?"$.update_store_pre":"$.update_store",Va("??=",ni("$$store_subs"),li([])),ai(n.name),ni(n.name.slice(1)),"--"===e.operator&&ai(-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=zl(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"===zl(e.right,n.state.scope)){const t=e.right.arguments.length?n.visit(e.right.arguments[0]):ni("undefined");return Ba(e.left,t)}}});"ObjectPattern"===a.type&&e?a.properties.splice(a.properties.length-1,0,pi("init",ni("$$slots"),ni("$$slots")),pi("init",ni("$$events"),ni("$$events"))):"Identifier"===a.type&&(a=ci([pi("init",ni("$$slots"),ni("$$slots")),pi("init",ni("$$events"),ni("$$events")),hi(ni(a.name))])),r.push(Qa(n.visit(a),ni("$$props")));continue}const i=e.arguments,o=0===i.length?ni("undefined"):n.visit(i[0]);"$derived.by"!==a?"Identifier"!==s.id.type?"$derived"!==a?r.push(...Pk(s,n.state.scope,o)):r.push(Qa(n.visit(s.id),o)):r.push(Qa(s.id,o)):r.push(Qa(n.visit(s.id),Wa(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=Ji(t.id);r.push(Qa(ni(e),n.visit(t.init)));for(const t of s){const s=t.expression?.(ni(e)),a=t.node.name,i=n.state.scope.get(a),o=ii(ni("$$props"),ai(i.prop_alias??a),!0);r.push(Qa(t.node,to(o,s)))}continue}const e=n.state.scope.get(t.id.name),s=ii(ni("$$props"),ai(e.prop_alias??t.id.name),!0);let a=s;if(t.init){a=to(s,n.visit(t.init))}r.push(Qa(t.id,a))}else r.push(...Pk(t,n.state.scope,t.init&&n.visit(t.init)));else r.push(n.visit(t))}return{...e,declarations:r}}},Ak={AwaitBlock:function(e,t){t.state.template.push(pk,vi(Wa("$.await",t.visit(e.expression),bi(e.pending?t.visit(e.pending):za([])),Fa(e.value?[t.visit(e.value)]:[],e.then?t.visit(e.then):za([])),Fa(e.error?[t.visit(e.error)]:[],e.catch?t.visit(e.catch):za([])))),pk)},Component:function(e,t){wk(e,ni(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($i(r,s))},DebugTag:function(e,t){t.state.template.push(vi(Wa("console.log",li(e.identifiers.map((e=>pi("init",e,t.visit(e))))))),Ei)},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:ni(e.index),i=n.scope.root.unique("each_array");n.init.push($i(i,Wa("$.ensure_array_like",s)));const o=[];e.context&&o.push(Ti(e.context,ii(i,a,!0))),a.name!==e.index&&null!=e.index&&o.push(Ti(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}}(Ja("let",[Qa(a,ai(0)),Qa("$$length",ii(i,"length"))]),Ua("<",a,ni("$$length")),wi("++",a,!1),za(o));if(e.fallback){const r=vi(Va("+=",ni("$$payload.out"),lk)),s=t.visit(e.fallback);s.body.unshift(vi(Va("+=",ni("$$payload.out"),ai(ik)))),n.template.push(Li(Ua("!==",ii(i,"length"),ai(0)),za([r,l]),s),ck)}else n.template.push(lk,l,ck)},Fragment:function(e,t){const n=t.path.at(-1)??e,r=bk(t.state.namespace,n,e.nodes),{hoisted:s,trimmed:a,is_standalone:i,is_text_first:o}=gk(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(pk),uk(a,{...t,state:l}),za([...l.init,...hk(l.template)])},HtmlTag:function(e,t){const n=t.visit(e.expression);t.state.template.push(Wa("$.html",n))},IfBlock:function(e,t){const n=t.visit(e.test),r=t.visit(e.consequent),s=e.alternate?t.visit(e.alternate):za([]);r.body.unshift(vi(Va("+=",ni("$$payload.out"),lk))),s.body.unshift(vi(Va("+=",ni("$$payload.out"),ai(ik)))),t.state.template.push(Li(n,r,s),ck)},KeyBlock:function(e,t){t.state.template.push(pk,t.visit(e.fragment),pk)},RegularElement:function(e,t){const n=_k(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(ai(`<${e.name}`));const s=kk(e,{...t,state:r});if(t.state.template.push(ai(">")),("script"===e.name||"style"===e.name)&&1===e.fragment.nodes.length)return void t.state.template.push(ai(e.fragment.nodes[0].data),ai(`</${e.name}>`));const{hoisted:a,trimmed:i}=gk(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(ce){const t=de(e.start);r.template.push(vi(Wa("$.push_element",ni("$$payload"),ai(e.name),ai(t.line),ai(t.column))))}if(null===s)uk(i,{...t,state:r});else{let e=s;"Identifier"!==s.type&&(e=ni(r.scope.generate("$$body")),r.template.push($i(e,s)));const n={...r,template:[],init:[]};uk(i,{...t,state:n}),r.template.push(Li(e,za(hk([e])),za([...n.init,...hk(n.template)])))}j(e.name)||r.template.push(ai(`</${e.name}>`)),ce&&r.template.push(vi(Wa("$.pop_element")))},RenderTag:function(e,t){const n=Zi(e.expression).callee,r=Zi(e.expression).arguments,s=t.visit(n),a=r.map((e=>t.visit(e)));t.state.template.push(vi(("CallExpression"===e.expression.type?Wa:Ga)(s,ni("$$payload"),...a))),t.state.skip_hydration_boundaries||t.state.template.push(pk)},SlotElement:function(e,t){const n=[],r=[];let s=ai("default");for(const a of e.attributes)if("SpreadAttribute"===a.type)r.push(t.visit(a));else if("Attribute"===a.type){const e=mk(a.value,t,!1,!0);"name"===a.name?s=e:"slot"!==a.name&&n.push(si(a.name,e))}const a=0===r.length?li(n):Wa("$.spread_props",Da([li(n),...r])),i=0===e.fragment.nodes.length?ai(null):bi(t.visit(e.fragment)),o=Wa("$.slot",ni("$$payload"),ni("$$props"),s,a,i);t.state.template.push(pk,vi(o),pk)},SnippetBlock:function(e,t){const n=ei(e.expression,[ni("$$payload"),...e.parameters],t.visit(e.body));n.___snippet=!0,e.metadata.can_hoist?t.state.hoisted.push(n):t.state.init.push(n)},SpreadAttribute:function(e,t){return t.visit(e.expression)},SvelteComponent:function(e,t){wk(e,t.visit(e.expression),t)},SvelteElement:function(e,t){let n=t.visit(e.tag);if(ce){if("Identifier"!==n.type){const e=t.state.scope.generate("$$tag");t.state.init.push($i(e,n)),n=ni(e)}e.fragment.nodes.length>0&&t.state.init.push(vi(Wa("$.validate_void_dynamic_element",bi(n)))),t.state.init.push(vi(Wa("$.validate_dynamic_element_tag",bi(n))))}const r={...t.state,namespace:_k(e,t.state.namespace),template:[],init:[]};if(kk(e,{...t,state:r}),ce){const r=de(e.start);t.state.template.push(vi(Wa("$.push_element",ni("$$payload"),n,ai(r.line),ai(r.column))))}const s=za([...r.init,...hk(r.template)]),a=t.visit(e.fragment,r);t.state.template.push(vi(Wa("$.element",ni("$$payload"),n,s.body.length>0&&bi(s),a.body.length>0&&bi(a)))),ce&&t.state.template.push(vi(Wa("$.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(vi(Wa("$.head",ni("$$payload"),Fa([ni("$$payload")],n))))},SvelteSelf:function(e,t){wk(e,ni(t.state.analysis.name),t)},TitleElement:function(e,t){const n=[ai("<title>")];uk(e.fragment.nodes,{...t,state:{...t.state,template:n}}),n.push(ai("</title>")),t.state.init.push(...hk(n,ni("$$payload.title"),"="))},SvelteBoundary:function(e,t){t.state.template.push(ai(ak),t.visit(e.fragment),ai(ok))}};function Tk(e,t,n){const r=[];let s=di("");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 p=e[c];if("Text"===p.type)s.value.cooked+=p.data;else if("ExpressionTag"===p.type&&"Literal"===p.expression.type)null!=p.expression.value&&(s.value.cooked+=p.expression.value+"");else{if(l){const e=ni(n.scope.generate("stringified_text"));n.init.push($i(e,Xc(n,bi(Xa("??",t(p.expression,n),ai("")))))),r.push(Wa("$.get",e))}else{if(1===e.length)return{value:t(p.expression,n),has_state:o,has_call:i};r.push(Xa("??",t(p.expression,n),ai("")))}s=di("",c+1===e.length),a.push(s)}}for(const e of a)e.value.raw=Na(e.value.cooked);return{value:gi(a,r),has_state:o,has_call:i}}function $k(e){return vi(Wa("$.template_effect",bi("ExpressionStatement"===e.type?e.expression:za([e]))))}function Rk(e){return 1===e.length?$k(e[0]):vi(Wa("$.template_effect",bi(za(e))))}function Ik(e){const t=e.split(".");let n=t.shift(),r=ni(n);for(;n=t.shift();){const e=!m.test(n);r=ii(r,e?ai(n):ni(n),e)}return r}function qk(e,t,n,r,s){e.init.push(Ri(t,n)),e.update.push(Li(Ua("!==",ni(t),Va("=",ni(t),r)),za([s])))}function Lk(e,n,{state:r,visit:s}){if("SequenceExpression"===e.type){const[t,r]=s(e).expressions;return Wa("$.bind_this",n,r,t)}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(!Rl(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},p=s(e,c),u=s(Va("=",e,ni("$$value")),c);let d=p;for(;"MemberExpression"===d.type;)d.optional=!0,d=d.object;return Wa("$.bind_this",n,Fa([ni("$$value"),...a],u),Fa([...a],p),i.length>0&&bi(Da(i)))}function Mk(e,t,n){if("SequenceExpression"===t.expression.type)return;const r=Bi(t.expression),s=r&&e.scope.get(r.name);if("store_sub"===s?.kind)return;const a=de(t.start);e.init.push(vi(Wa("$.validate_binding",ai(e.analysis.source.slice(t.start,t.end)),bi(n.object),bi(n.computed?n.property:ai(n.property.name)),a&&ai(a.line),a&&ai(a.column))))}const Ok=(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=Uc(e,t);return{...e,params:n,body:t.visit(e.body,r)}}t.next(r)};function Nk(e){return["=","||=","&&=","??="].includes(e)}const Dk={"=":"$.assign","&&=":"$.assign_and","||=":"$.assign_or","??=":"$.assign_nullish"};function jk(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(no(e,t,n));return"state"===s.kind&&Nk(e)&&Gc(a,r.state.scope)&&(a=Hc(a,ii(Ai,s.id))),r.state.in_constructor?Va(e,r.visit(t),a):Wa("$.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,o=r.path.map((e=>e.type));if(s===t&&i?.assign){const l="BindDirective"===o.at(-1)&&"RegularElement"===o.at(-2);let c=r.visit(no(e,t,n));return!l&&"prop"!==a.kind&&"bindable_prop"!==a.kind&&"raw_state"!==a.kind&&r.state.analysis.runes&&Gc(n,r.state.scope)&&Nk(e)&&(c=Hc(c,s)),i.assign(s,c)}if(i?.mutate)return i.mutate(s,Va(e,r.visit(t),r.visit(n)));let l=ce&&"ExpressionStatement"!==o.at(-1)&&Nk(e);if("ArrowFunctionExpression"===o.at(-1)&&("RegularElement"===o.at(-2)||"SvelteElement"===o.at(-2))){r.path.at(-2).attributes.find((e=>{if("Attribute"!==e.type||!zi(e))return!1;return Hi(e)===r.path.at(-1)}))&&(l=!1)}if("Component"!==o.at(-1)&&"SvelteComponent"!==o.at(-1)&&("ArrowFunctionExpression"!==o.at(-1)||"SequenceExpression"!==o.at(-2)||"Component"!==o.at(-3)&&"SvelteComponent"!==o.at(-3))||(l=!1),"MemberExpression"===t.type&&l){const s=Dk[e];return r.visit(Wa(s,t.object,t.computed?t.property:ai(t.property.name),n,ai(he(t))))}return null}function Bk(e,t){let n=!1,r=e.name.slice(2);V(r)&&(r=r.slice(0,-7),n=!0);const s=Array.isArray(e.value)?e.value[0]:e.value;let a=Vk(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(Ri(e,a)),a=e}n=Da([a,...e.metadata.delegated.function.metadata.hoisted_params])}else n=a;t.state.init.push(vi(Va("=",ii(t.state.node,"__"+r),n)))}else{const e=vi(Fk(r,t.state.node,a,n,(i=r,!!Q.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 Fk(e,t,n,r,s){return Wa("$.event",ai(e),t,n,r&&ki,void 0===s?void 0:ai(s))}function Vk(e,t,n){if(null===e)return qi(null,[ni("$$arg")],za([vi(Wa("$.bubble_event.call",Ai,ni("$$props"),ni("$$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=ni(n.state.scope.generate("event_handler"));n.state.init.push(Ri(e,Wa("$.derived",bi(r)))),r=Wa("$.get",e)}let s=Wa(ii(r,"apply",!1,!0),Ai,ni("$$args"));if(ce){const t=de(e.start),a="CallExpression"===e.type&&0===e.arguments.length&&"Identifier"===e.callee.type;s=Wa("$.apply",bi(r),Ai,ni("$$args"),ni(n.state.analysis.name),t&&Da([ai(t.line),ai(t.column)]),Hk(e)&&ki,a&&ki)}return qi(null,[hi(ni("$$args"))],za([vi(s)]))}function Hk(e){return"CallExpression"===e.type||"NewExpression"===e.type||"AssignmentExpression"===e.type||"UpdateExpression"===e.type||"SequenceExpression"===e.type&&e.expressions.some(Hk)}function Uk(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}=Gk(n.value,t);if(!zi(n)||"ArrowFunctionExpression"!==e.type&&"FunctionExpression"!==e.type)c.push(si(n.name,e));else{const r=t.state.scope.generate("event_handler");t.state.init.push(Ri(r,e)),c.push(si(n.name,ni(r)))}l||=n.metadata.expression.has_state}else{l=!0;let e=t.visit(n);if(n.metadata.expression.has_call){const t=ni(o.scope.generate("spread_with_call"));o.init.push($i(t,Xc(o,bi(e)))),e=Wa("$.get",t)}c.push(yi(e))}const p=Wa("$.set_attributes",r,l?s:ai(null),li(c),""!==t.state.analysis.css.hash&&ai(t.state.analysis.css.hash),a,i,ve(n,"hydration_attribute_changed")&&ki);if(l){t.state.init.push(Ti(s));const e=vi(Va("=",s,p));return t.state.update.push(e),!0}return t.state.init.push(vi(p)),!1}function zk(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?Vc({name:a.name,type:"Identifier"},n.state):Gk(a.value,n).value;if(i){const e=ni(s.scope.generate("style_directive"));s.init.push($i(e,Xc(s,bi(o)))),o=Wa("$.get",e)}const l=vi(Wa("$.set_style",t,ai(a.name),o,a.modifiers.includes("important")?ki:void 0));!r&&i?s.init.push($k(l)):r||e||i?s.update.push(l):s.init.push(l)}}function Wk(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=ni(s.scope.generate("class_directive"));s.init.push($i(e,Xc(s,bi(o)))),o=Wa("$.get",e)}const l=vi(Wa("$.toggle_class",t,ai(a.name),o));!r&&i?s.init.push($k(l)):r||e||i?s.update.push(l):s.init.push(l)}}function Gk(e,t){if(!0===e)return{has_state:!1,has_call:!1,value:ai(!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:ai(n.data)}:{has_state:n.metadata.expression.has_state,has_call:n.metadata.expression.has_call,value:t.visit(n.expression)}}return Tk(e,t.visit,t.state)}function Kk(e,t){return e.metadata.svg||e.metadata.mathml?t.name:(n=(n=t.name).toLowerCase(),G[n]??n);var n}function Xk(e,t){if("Literal"===e.type){let n=e.value?.toString().replace(f,"_");for(;n&&t.has(n);)n="_"+n;return n}return e.name}function Jk(e,t,n,r=n.state.node){const s=[],a=[],i=[],o={default:{...n.state,scope:e.metadata.scopes.default,transform:{...n.state.transform}}},l={},c={},p=[];let u=null;const d=[];let h=!!Il(e),m=!1;function f(e,t=!1){const n=()=>{const t=s.at(-1),n=Array.isArray(t),r=n?t:[];r.push(e),n||s.push(r)};t?a.push(n):n()}if(h)for(const t of e.attributes)"LetDirective"===t.type&&i.push(n.visit(t));for(const r of e.attributes)if("LetDirective"===r.type)h||i.push(n.visit(r,o.default));else if("OnDirective"===r.type){r.expression||(n.state.analysis.needs_props=!0);let e=Vk(r.expression,r.metadata.expression,n);r.modifiers.includes("once")&&(e=Wa("$.once",e)),(c[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=ni(n.state.scope.generate("spread_element"));n.state.init.push(Ri(e,Wa("$.derived",bi(t)))),t=Wa("$.get",e)}s.push(bi(t))}else s.push(e)}else if("Attribute"===r.type){if(r.name.startsWith("--")){p.push(si(r.name,Gk(r.value,n).value));continue}"slot"===r.name&&(h=!0),"children"===r.name&&(m=!0);const{value:e}=Gk(r.value,n);if(r.metadata.expression.has_state){let t=e;const s=Ui(r.value).some((e=>"ExpressionTag"===e.type&&"Identifier"!==e.expression.type&&"MemberExpression"!==e.expression.type));if(s){const s=ni(n.state.scope.generate(r.name));n.state.init.push(Ri(s,Xc(n.state,bi(e)))),t=Wa("$.get",s)}f(ti(r.name,[Ni(t)]))}else f(si(r.name,e))}else if("BindDirective"===r.type){const s=n.visit(r.expression);if(ce&&"this"!==r.name&&"SequenceExpression"!==r.expression.type){const a=Bi(r.expression);let i;"Identifier"===a?.type&&(i=n.state.scope.get(a.name)),"derived"!==i?.kind&&"raw_state"!==i?.kind&&d.push(vi(Wa(ni("$.add_owner_effect"),bi(s),ni(t),ve(e,"ownership_invalid_binding")&&ki)))}if("SequenceExpression"===s.type)if("this"===r.name)u=r.expression;else{const[e,t]=s.expressions,a=ni(n.state.scope.generate("bind_get")),i=ni(n.state.scope.generate("bind_set"));n.state.init.push(Ri(a,e)),n.state.init.push(Ri(i,t)),f(ti(r.name,[Ni(Wa(a))])),f(fi(r.name,[vi(Wa(i,ni("$$value")))]))}else if(ce&&"MemberExpression"===s.type&&n.state.analysis.runes&&!ve(e,"binding_property_non_reactive")&&Mk(n.state,r,s),"this"===r.name)u=r.expression;else{const e="Identifier"===r.expression.type&&"store_sub"===n.state.scope.get(r.expression.name)?.kind;f(ti(r.name,e?[vi(Wa("$.mark_store_binding")),Ni(s)]:[Ni(s)]),!0);const t=Va("=",r.expression,ni("$$value"));f(fi(r.name,[vi(n.visit(t))]),!0)}}if(a.forEach((e=>e())),h&&n.state.init.push(...i),Object.keys(c).length>0){const e=li(Object.keys(c).map((e=>si(e,c[e].length>1?Da(c[e]):c[e][0]))));f(si("$$events",e))}const y=[],v=[];for(const t of e.fragment.nodes){if("SnippetBlock"===t.type){n.visit(t,{...n.state,init:y}),f(pi("init",t.expression,t.expression)),v.push(si("children"===t.expression.name?"default":t.expression.name,ki));continue}let e=Il(t)??"default";(l[e]||=[]).push(t)}for(const t of Object.keys(l)){const r=n.visit({...e.fragment,nodes:l[t]},"default"===t?h?n.state:o.default:{...n.state,scope:e.metadata.scopes[t],transform:{...n.state.transform}});if(0===r.body.length)continue;const s=Fa([ni("$$anchor"),ni("$$slotProps")],za([..."default"!==t||h?[]:i,...r.body]));"default"!==t||m?v.push(si(t,s)):0===i.length&&l.default.every((e=>"SvelteFragment"!==e.type||!e.attributes.some((e=>"LetDirective"===e.type))))?(f(si("children",ce?Wa("$.wrap_snippet",ni(n.state.analysis.name),s):s)),v.push(si(t,ki))):(v.push(si(t,s)),f(si("children",ni("$.invalid_default_snippet"))))}v.length>0&&f(si("$$slots",li(v))),!n.state.analysis.runes&&e.attributes.some((e=>"BindDirective"===e.type))&&f(si("$$legacy",ki));const g=0===s.length||1===s.length&&Array.isArray(s[0])?li(s[0]||[]):Wa("$.spread_props",...s.map((e=>Array.isArray(e)?li(e):e)));let b=r=>Wa("SvelteComponent"===e.type?t:n.visit(oi(t)),r,g);if(null!==u){const e=b;b=t=>Lk(u,e(t),n)}const _=[...y];if("SvelteComponent"===e.type){const r=b;b=s=>Wa("$.component",s,bi(n.visit(e.expression)),Fa([ni("$$anchor"),ni(t)],za([...d,vi(r(ni("$$anchor")))])))}else _.push(...d);return Object.keys(p).length>0?(n.state.template.push("svg"===n.state.metadata.namespace?"<g><!></g>":'<svelte-css-wrapper style="display: contents"><!></svelte-css-wrapper>'),_.push(vi(Wa("$.css_props",r,bi(li(p)))),vi(b(ii(r,"lastChild"))),vi(Wa("$.reset",r)))):(n.state.template.push("<!>"),_.push(vi(b(r)))),_.length>1?za(_):_[0]}function Qk(e,t){const n=new Set;for(const t of e){const e=Yk(t);for(const t of e)n.add(t)}return[...n].map((e=>Vc({...e.node},t.state)))}function Yk(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 Yk(n,t))t.add(e)}return[...t]}function Zk(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):Wa("$.sibling",i(!1),(e||1!==o)&&ai(o),e&&ki)}(e);let r=n;return"Identifier"!==r.type&&(r=ni(s.scope.generate(t)),s.init.push(Ri(r,n))),i=()=>r,o=1,r}function p(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}=Tk(e,r,s),l=c(1===e.length,"text"),p=vi(Wa("$.set_text",l,i));n&&!a?s.init.push($k(p)):t&&!a?s.update.push(p):s.init.push(vi(Va("=",ii(l,"nodeValue"),i)))}for(const t of e)if("Text"===t.type||"ExpressionTag"===t.type)l.push(t);else{l.length>0&&(p(l),l=[]);let a=s;if(eS(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&&p(l),o>1&&(o-=1,s.init.push(vi(Wa("$.next",1!==o&&ai(o)))))}function eS(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(zi(t))return!1;if(J(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&&!Fi(t))return!1}return!0}function tS(e){let t=di("");const n=gi([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=di("")))}for(const n of e)"string"==typeof n?t.value.cooked+=n:r(n);for(const e of n.quasis)e.value.raw=Na(e.value.cooked);return t.tail=!0,n}function nS(e){return Da(e.map((e=>{const t=Da([ai(e[0]),ai(e[1])]);return 3===e.length&&t.elements.push(nS(e[2])),t})))}const rS=["stopPropagation","stopImmediatePropagation","preventDefault","self","trusted","once"];function sS(e,t,n,r,s){const a=s.state,i=Kk(e,n),o="svg"===s.state.metadata.namespace||"svg"===e.name,l="mathml"===s.state.metadata.namespace;let c,{has_call:p,value:u}=Gk(n.value,s);if("autofocus"===i)return a.init.push(vi(Wa("$.autofocus",t,u))),!1;if("muted"===i)return a.init.push(vi(Va("=",ii(t,ni("muted")),u))),!1;if("class"===i){if(n.metadata.needs_clsx&&(u=Wa("$.clsx",u)),n.metadata.expression.has_state&&p){const e=ni(a.scope.generate("class_derived"));a.init.push($i(e,Xc(a,bi(u)))),u=Wa("$.get",e),p=!1}c=vi(Wa(o?"$.set_svg_class":l?"$.set_mathml_class":"$.set_class",t,u,n.metadata.needs_clsx?ai(s.state.analysis.css.hash):void 0))}else if("value"===i)c=vi(Wa("$.set_value",t,u));else if("checked"===i)c=vi(Wa("$.set_checked",t,u));else if("selected"===i)c=vi(Wa("$.set_selected",t,u));else if("defaultValue"===i&&(r.some((e=>"Attribute"===e.type&&"value"===e.name&&Fi(e)))||"textarea"===e.name&&e.fragment.nodes.length>0))c=vi(Wa("$.set_default_value",t,u));else if("defaultChecked"===i&&r.some((e=>"Attribute"===e.type&&"checked"===e.name&&!0===e.value)))c=vi(Wa("$.set_default_checked",t,u));else if(function(e){return K.includes(e)}(i))c=vi(Va("=",ii(t,i),u));else{if("style"===i&&n.metadata.expression.has_state&&p){const e=ni(a.scope.generate("style_derived"));a.init.push($i(e,Xc(a,bi(u)))),u=Wa("$.get",e),p=!1}c=vi(Wa(i.startsWith("xlink")?"$.set_xlink_attribute":"$.set_attribute",t,ai(i),u,ve(e,"hydration_attribute_changed")&&ki))}return n.metadata.expression.has_state?(p?a.init.push($k(c)):a.update.push(c),!0):(a.init.push(c),!1)}function aS(e,t,n){const r=n.state,s=t.name;let{has_call:a,value:i}=Gk(t.value,n);const o=vi(Wa("$.set_custom_element_data",e,ai(s),i));return t.metadata.expression.has_state?(a?r.init.push($k(o)):r.update.push(o),!0):(r.init.push(o),!1)}function iS(e,t,n,r){const s=r.state,{value:a}=Gk(n.value,r),i=Va("=",ii(t,"value"),Ka(Ua("==",ai(null),Va("=",ii(t,"__value"),a)),ai(""),a)),o="select"===e&&!0!==n.value&&!Fi(n),l=vi(o?mi([i,Wa("$.select_option",t,a)]):i);if(o&&s.init.push(vi(Wa("$.init_select",t,bi(a)))),n.metadata.expression.has_state){const n=s.scope.generate(`${t.name}_value`);return qk(s,n,"option"===e?li([]):void 0,a,l),!0}return s.init.push(l),!1}function oS(e,t,n){const r={...n.state,node:ni(t)};for(const t of e.attributes)"OnDirective"===t.type?n.state.init.push(vi(n.visit(t,r))):n.visit(t,r)}function lS(e,{scope:t,analysis:n},r){if("Identifier"===e.id.type)return[Qa(e.id,Wa("$.mutable_state",r,n.immutable?ki:void 0))];const s=t.generate("tmp"),a=Ji(e.id);return[Qa(ni(s),r),...a.map((e=>{const r=e.expression?.(ni(s)),a=t.get(e.node.name);return Qa(e.node,"state"===a?.kind?Wa("$.mutable_state",r,n.immutable?ki:void 0):r)}))]}const cS={_: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&&!Fc(s,n.analysis))&&delete e[t];t({...n,transform:e,scope:r})}else t()},AnimateDirective:function(e,t){const n=null===e.expression?ai(null):bi(t.visit(e.expression));t.state.after_update.push(vi(Wa("$.animation",t.state.node,bi(t.visit(Ik(e.name))),n)))},ArrowFunctionExpression:function(e,t){return Ok(e,t)},AssignmentExpression:function(e,t){const n=ek(e,t,jk)??t.next();return ve(e,"ownership_invalid_mutation")?Wa("$.skip_ownership_validation",bi(n)):n},Attribute:function(e,t){zi(e)&&Bk(e,t)},AwaitBlock:function(e,t){t.state.template.push("<!>");const n=bi(t.visit(e.expression));let r,s;if(e.then){const n={...t,state:{...t.state,transform:{...t.state.transform}}},s=e.value&&Kc(e.value,n),a=[ni("$$anchor")];s&&a.push(s.id);r=Fa(a,za([...s?.declarations??[],...n.visit(e.then,n.state).body]))}if(e.catch){const n={...t,state:{...t.state}},r=e.error&&Kc(e.error,n),a=[ni("$$anchor")];r&&a.push(r.id);s=Fa(a,za([...r?.declarations??[],...n.visit(e.catch,n.state).body]))}t.state.init.push(vi(Wa("$.await",t.state.node,n,e.pending?Fa([ni("$$anchor")],t.visit(e.pending)):ai(null),r,s)))},BinaryExpression:function(e,t){if(ce){const n=e.operator;if("==="===n||"!=="===n)return Wa("$.strict_equals",t.visit(e.left),t.visit(e.right),"!=="===n&&ai(!1));if("=="===n||"!="===n)return Wa("$.equals",t.visit(e.left),t.visit(e.right),"!="===n&&ai(!1))}t.next()},BindDirective:function(e,t){const n=t.visit(e.expression),r=qc[e.name],s=t.path.at(-1);let a,i,o;if("SequenceExpression"===n.type?[a,i]=n.expressions:(ce&&t.state.analysis.runes&&"MemberExpression"===n.type&&("this"!==e.name||t.path.some((({type:e})=>"IfBlock"===e||"EachBlock"===e||"AwaitBlock"===e||"KeyBlock"===e)))&&!ve(e,"binding_property_non_reactive")&&Mk(t.state,e,n),a=bi(n),i=_i(Fa([ni("$$value")],t.visit(Va("=",e.expression,ni("$$value"))))),a===i&&(i=void 0)),r?.event)o=Wa("$.bind_property",ai(e.name),ai(r.event),t.state.node,i??a,r.bidirectional&&a);else switch(e.name){case"online":o=Wa("$.bind_online",i??a);break;case"scrollX":case"scrollY":o=Wa("$.bind_window_scroll",ai("scrollX"===e.name?"x":"y"),a,i);break;case"innerWidth":case"innerHeight":case"outerWidth":case"outerHeight":o=Wa("$.bind_window_size",ai(e.name),i??a);break;case"activeElement":o=Wa("$.bind_active_element",i??a);break;case"muted":o=Wa("$.bind_muted",t.state.node,a,i);break;case"paused":o=Wa("$.bind_paused",t.state.node,a,i);break;case"volume":o=Wa("$.bind_volume",t.state.node,a,i);break;case"playbackRate":o=Wa("$.bind_playback_rate",t.state.node,a,i);break;case"currentTime":o=Wa("$.bind_current_time",t.state.node,a,i);break;case"buffered":o=Wa("$.bind_buffered",t.state.node,i??a);break;case"played":o=Wa("$.bind_played",t.state.node,i??a);break;case"seekable":o=Wa("$.bind_seekable",t.state.node,i??a);break;case"seeking":o=Wa("$.bind_seeking",t.state.node,i??a);break;case"ended":o=Wa("$.bind_ended",t.state.node,i??a);break;case"readyState":o=Wa("$.bind_ready_state",t.state.node,i??a);break;case"contentRect":case"contentBoxSize":case"borderBoxSize":case"devicePixelContentBoxSize":o=Wa("$.bind_resize_observer",t.state.node,ai(e.name),i??a);break;case"clientWidth":case"clientHeight":case"offsetWidth":case"offsetHeight":o=Wa("$.bind_element_size",t.state.node,ai(e.name),i??a);break;case"value":o="RegularElement"===s?.type&&"select"===s.name?Wa("$.bind_select_value",t.state.node,a,i):Wa("$.bind_value",t.state.node,a,i);break;case"files":o=Wa("$.bind_files",t.state.node,a,i);break;case"this":o=Lk(e.expression,t.state.node,t);break;case"textContent":case"innerHTML":case"innerText":o=Wa("$.bind_content_editable",ai(e.name),t.state.node,a,i);break;case"checked":o=Wa("$.bind_checked",t.state.node,a,i);break;case"focused":o=Wa("$.bind_focused",t.state.node,i??a);break;case"group":{const r=e.metadata.parent_each_blocks.map((e=>e.metadata.keyed&&e.index?Wa("$.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&&!Fi(e)&&!0!==e.value))?.value;void 0!==e&&(l=bi(za([vi(Gk(e,t).value),Ni(n)])))}o=Wa("$.bind_group",e.metadata.binding_group_name,Da(r),t.state.node,l,i??a);break}default:throw new Error("unknown binding "+e.name)}if("this"===e.name)t.state.init.push(vi(o));else{const e="RegularElement"===s.type&&s.attributes.find((e=>"UseDirective"===e.type));e?t.state.init.push(vi(Wa("$.effect",bi(o)))):t.state.after_update.push(vi(o))}},BlockStatement:function(e,t){Bc(t);const n=t.state.scope.tracing;if(null!==n){const r=t.path.at(-1).async,s=Wa("$.trace",n,bi(za(e.body.map((e=>t.visit(e)))),r));return za([Ni(r?Ha(s):s)])}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?Ni():void 0},CallExpression:function(e,t){switch(zl(e,t.state.scope)){case"$host":return ni("$$props.$$host");case"$effect.tracking":return Wa("$.effect_tracking");case"$state.snapshot":return Wa("$.snapshot",t.visit(e.arguments[0]),ve(e,"state_snapshot_uncloneable")&&ki);case"$effect.root":return Wa("$.effect_root",...e.arguments.map((e=>t.visit(e))));case"$inspect":case"$inspect().with":return xk(e,t)}if(ce&&"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 Wa(e.callee,yi(Wa("$.log_if_contains_state",ai(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=new Map,a=[];for(const i of e.body)if(!("PropertyDefinition"!==i.type&&"MethodDefinition"!==i.type||"Identifier"!==i.key.type&&"PrivateIdentifier"!==i.key.type&&"Literal"!==i.key.type)){const e=i.key.type,o=Xk(i.key,n);if(!o)continue;s.set(i.key,o);const l="PrivateIdentifier"===e;if(l&&a.push(o),"CallExpression"===i.value?.type){const e=zl(i.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:l?i.key:null};l?r.set(o,t):n.set(o,t)}}}for(const[e,t]of n){let n=e;for(;a.includes(n);)n="_"+n;a.push(n),t.id=ri(n)}const i=[],o={...t.state,public_state:n,private_state:r};for(const a of e.body){if("PropertyDefinition"===a.type&&("Identifier"===a.key.type||"PrivateIdentifier"===a.key.type||"Literal"===a.key.type)){const e=s.get(a.key);if(!e)continue;const l="PrivateIdentifier"===a.key.type,c=(l?r:n).get(e);if("CallExpression"===a.value?.type&&void 0!==c){let n=null;if(a.value.arguments.length>0){const e=t.visit(a.value.arguments[0],o);n="state"===c.kind?Wa("$.state",Gc(e,t.state.scope)?Wa("$.proxy",e):e):"raw_state"===c.kind?Wa("$.state",e):"derived_by"===c.kind?Wa("$.derived",e):Wa("$.derived",bi(e))}else n=Wa("$.state");if(l)i.push(ui(c.id,n));else{const t=ii(Ai,c.id);if(i.push(ui(c.id,n)),i.push(Ii("get",a.key,[],[Ni(Wa("$.get",t))])),"state"===c.kind){const e=ni("value"),n=ii(Ai,c.id);i.push(Ii("set",a.key,[e],[vi(Wa("$.set",t,Hc(e,n)))]))}if("raw_state"===c.kind){const e=ni("value");i.push(Ii("set",a.key,[e],[vi(Wa("$.set",t,e))]))}!ce||"derived"!==c.kind&&"derived_by"!==c.kind||i.push(Ii("set",a.key,[ni("_")],[Di(`Cannot update a derived property ('${e}')`)]))}continue}}i.push(t.visit(a,o))}return ce&&n.size>0&&i.push(Ii("method",ni("$.ADD_OWNER"),[ni("owner")],Array.from(n).filter((([e,{kind:t}])=>"state"===t)).map((([t])=>vi(Wa("$.add_owner",Wa("$.get",ii(Ai,ri(t))),ni("owner"),ai(!1),ve(e,"ownership_invalid_binding")&&ki)))),!0)),{...e,body:i}},Comment:function(e,t){t.state.template.push(`\x3c!--${e.data}--\x3e`)},Component:function(e,t){if(e.metadata.dynamic){const n=Jk(e,"$$component",t,ni("$$anchor"));return void t.state.init.push(vi(Wa("$.component",t.state.node,bi(t.visit(oi(e.name))),Fa([ni("$$anchor"),ni("$$component")],za([n])))))}const n=Jk(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($i(n.id,Xc(t.state,bi(t.visit(n.init))))),t.state.transform[n.id.name]={read:jc},ce&&t.state.init.push(vi(Wa("$.get",n.id)));else{const e=Gi(n.id),r=ni(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=Fa([],za([$i(t.visit(n.id,a),t.visit(n.init,a)),Ni(li(e.map((e=>pi("init",e,e)))))]));t.state.init.push($i(r,Xc(t.state,i))),ce&&t.state.init.push(vi(Wa("$.get",r)));for(const n of e)t.state.transform[n.name]={read:e=>ii(Wa("$.get",r),e)}}},DebugTag:function(e,t){const n=li(e.identifiers.map((e=>{const n=Wa("$.snapshot",t.visit(e));return pi("init",e,t.state.analysis.runes?n:Wa("$.untrack",bi(n)))}))),r=Wa("console.log",n);t.state.init.push(vi(Wa("$.template_effect",bi(za([vi(r),Ei])))))},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($i(n.array_name,bi(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=Bi(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),...Qk(e.metadata.expression.dependencies,t)]));if(n.array_name)l.push(Wa(n.array_name));else{l.push(r);const e=Qk(n.expression.dependencies,t);l.push(...e)}const c={...t.state,transform:{...t.state.transform}},p={...t.state,transform:{...t.state.transform}},u=n.contains_group_binding||!e.index?n.index:ni(e.index),d="Identifier"===e.context?.type?e.context:ni("$$item");let h=n.contains_group_binding,m=!1;e.index&&(c.transform[e.index]={read:e=>(h=!0,0!=(2&s)?jc(e):e)},p.transform[e.index]={read:e=>(m=!0,e)});const f=[],y=Wa("$.invalidate_inner_signals",bi(mi(l))),v=o?Wa("$.invalidate_store",ni("$$stores"),ai(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?ii(n.array_name?Wa(n.array_name):r,0!=(2&s)?jc(u):u,!0):0!=(1&s)?jc(e):e,assign:(e,t)=>{h=!0;return mi([Va("=",ii(n.array_name?Wa(n.array_name):r,0!=(2&s)?jc(u):u,!0),t),...g])},mutate:(e,t)=>(h=!0,mi([t,...g]))},delete p.transform[e.context.name]}else if(e.context){const n=0!=(1&s)?Wa("$.get",d):d;for(const r of Ji(e.context)){const e=r.node.name,s=r.has_default_value,a=bi(t.visit(r.expression?.(n),c));f.push(Ti(r.node,s?Wa("$.derived_safe_equal",a):a));const i=s?jc:Wa;c.transform[e]={read:i,assign:(e,t)=>mi([Va("=",r.update_expression(n),t),...g]),mutate:(e,t)=>mi([t,...g])},ce&&f.push(vi(i(ni(e)))),delete p.transform[e]}}const b=t.visit(e.body,c);let _=ni("$.index");if(e.metadata.keyed){const n=e.context,r=t.visit(e.key,p);_=Fa(m?[n,u]:[n],r)}e.index&&n.contains_group_binding&&f.push(Ti(e.index,u)),ce&&e.metadata.keyed&&t.state.init.push(vi(Wa("$.validate_each_keys",bi(r),_)));const x=[t.state.node,ai(s),n.array_name?n.array_name:bi(r),_,Fa(h?[ni("$$anchor"),d,u]:[ni("$$anchor"),d],za(f.concat(b.body)))];e.fallback&&x.push(Fa([ni("$$anchor")],t.visit(e.fallback))),t.state.init.push(vi(Wa("$.each",...x)))},ExportNamedDeclaration:function(e,t){return t.state.is_instance?e.declaration?t.visit(e.declaration):Ya:t.next()},ExpressionStatement:function(e,t){if("CallExpression"===e.expression.type){const n=zl(e.expression,t.state.scope);if("$effect"===n||"$effect.pre"===n){const r=Wa("$effect"===n?"$.user_effect":"$.user_pre_effect",t.visit(e.expression.arguments[0]));return r.callee.loc=e.expression.callee.loc,vi(r)}if("$inspect.trace"===n)return Ya}t.next()},Fragment:function(e,t){const n=t.path.at(-1)??e,r=bk(t.state.metadata.namespace,n,e.nodes),{hoisted:s,trimmed:a,is_standalone:i,is_text_first:o}=gk(n,e.nodes,t.path,r,t.state,t.state.preserve_whitespace,t.state.options.preserveComments);if(0===s.length&&0===a.length)return za([]);const l=1===a.length&&"RegularElement"===a[0].type,c=1===a.length&&("SvelteFragment"===a[0].type||"TitleElement"===a[0].type),p=t.state.scope.root.unique("root"),u=[];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&&u.push(vi(Wa("$.next")));const m=(e,n)=>{let s=Wa(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);ce&&(s=Wa("$.add_locations",s,ii(ni(t.state.analysis.name),"$.FILENAME",!0),nS(h.locations))),t.state.hoisted.push(Ri(e,s))};if(l){const e=a[0],n=ni(t.state.scope.generate(e.name));t.visit(e,{...h,node:n});const r=[tS(h.template)];h.metadata.context.template_needs_import_node&&r.push(ai(2)),m(p,r),u.push(Ri(n,Wa(p)),...h.before_init,...h.init),d=vi(Wa("$.append",ni("$$anchor"),n))}else if(c)t.visit(a[0],h),u.push(...h.before_init,...h.init);else if(1===a.length&&"Text"===a[0].type){const e=ni(t.state.scope.generate("text"));u.push(Ri(e,Wa("$.text",ai(a[0].data))),...h.before_init,...h.init),d=vi(Wa("$.append",ni("$$anchor"),e))}else if(a.length>0){const e=ni(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=ni(t.state.scope.generate("text"));Zk(a,(()=>e),!1,{...t,state:h}),u.push(Ri(e,Wa("$.text")),...h.before_init,...h.init),d=vi(Wa("$.append",ni("$$anchor"),e))}else{if(i)Zk(a,(()=>ni("$$anchor")),!1,{...t,state:h});else{Zk(a,(t=>Wa("$.first_child",e,t&&ki)),!1,{...t,state:h});let n=1;h.metadata.context.template_needs_import_node&&(n|=2),1===h.template.length&&"<!>"===h.template[0]?u.push(Ri(e,Wa("$.comment"))):(m(p,[tS(h.template),ai(n)]),u.push(Ri(e,Wa(p)))),d=vi(Wa("$.append",ni("$$anchor"),e))}u.push(...h.before_init,...h.init)}}else u.push(...h.before_init,...h.init);return h.update.length>0&&u.push(Rk(h.update)),u.push(...h.after_update),void 0!==d&&u.push(d),za(u)},FunctionDeclaration:function(e,t){const n={...t.state,in_constructor:!1};if(!0===e.metadata?.hoisted){const r=Uc(e,t),s=t.visit(e.body,n);return t.state.hoisted.push({...e,params:r,body:s}),Ya}t.next(n)},FunctionExpression:function(e,t){return Ok(e,t)},HtmlTag:function(e,t){t.state.template.push("<!>"),t.state.init.push(vi(Wa("$.html",t.state.node,bi(t.visit(e.expression)),ai("svg"===t.state.metadata.namespace),ai("mathml"===t.state.metadata.namespace),ve(e,"hydration_html_changed")&&ki)))},Identifier:function(e,t){const n=t.path.at(-1);if(Rl(e,n)){if("$$props"===e.name)return ni("$$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 ni("$$props")}return Vc(e,t.state)}},IfBlock:function(e,t){t.state.template.push("<!>");const n=[],r=t.visit(e.consequent),s=t.state.scope.generate("consequent");let a;if(n.push(Ri(ni(s),Fa([ni("$$anchor")],r))),e.alternate){const r=t.visit(e.alternate);a=t.state.scope.generate("alternate"),n.push(Ri(ni(a),Fa([ni("$$anchor")],r)))}const i=[t.state.node,Fa([ni("$$render")],za([Li(t.visit(e.test),vi(Wa(ni("$$render"),ni(s))),a?vi(Wa(ni("$$render"),ni(a),e.alternate?ai(!1):void 0)):void 0)]))];e.elseif&&i.push(ai(!0)),n.push(vi(Wa("$.if",...i))),t.state.init.push(za(n))},ImportDeclaration:function(e,t){if("hoisted"in t.state)return t.state.hoisted.push(e),Ya;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(vi(Wa("$.key",t.state.node,bi(n),Fa([ni("$$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=za([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=Vc(ni(n),t.state);"$$props"!==n&&"$$restProps"!==n&&"bindable_prop"!==e.kind||(r=Wa("$.deep_read_state",r)),a.push(r)}return t.state.legacy_reactive_statements.set(e,vi(Wa("$.legacy_pre_effect",a.length>0?bi(mi(a)):bi(za([])),bi(za(s))))),Ya},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=>ii(Wa("$.get",ni(n)),e)};return $i(n,Wa("$.derived",bi(za([Ti("ObjectExpression"===e.expression.type?ci(e.expression.properties):ja(e.expression.elements),ii(ni("$$slotProps"),e.name)),Ni(li(r.map((e=>si(e.node.name,e.node)))))]))))}{const n=null===e.expression?e.name:e.expression.name;return t.state.transform[n]={read:e=>Wa("$.get",e)},$i(n,Xc(t.state,bi(ii(ni("$$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?ii(e,"v"):Wa("$.get",e)}t.next()},OnDirective:function(e,t){e.expression||(t.state.analysis.needs_props=!0);let n=Vk(e.expression,e.metadata.expression,t);for(const t of rS)e.modifiers.includes(t)&&(n=Wa("$."+t,n));const r=e.modifiers.includes("capture"),s=e.modifiers.includes("passive")||!e.modifiers.includes("nonpassive")&&void 0;return Fk(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=ni("$$_import_"+e);t.state.transform[e]={read:e=>Wa(n),mutate:(e,t)=>Wa(n,t)},t.state.legacy_reactive_imports.push(Ri(n,Wa("$.reactive_import",bi(ni(e)))))}}}for(const[e,n]of t.state.scope.declarations){if("store_sub"===n.kind){let n;const r=()=>n??=t.visit(ni(e.slice(1)));t.state.transform[e]={read:Wa,assign:(e,t)=>Wa("$.store_set",r(),t),mutate:(e,t)=>{const n=Wa("$.untrack",e);function s(e){return"MemberExpression"===e.type?{...e,object:s(e.object),property:e.property}:n}return Wa("$.store_mutate",r(),"AssignmentExpression"===t.type?Va(t.operator,s(t.left),t.right):wi(t.operator,s(t.argument),t.prefix),n)},update:n=>Wa(n.prefix?"$.update_pre_store":"$.update_store",Vc(ni(e.slice(1)),t.state),Wa(n.argument),"--"===n.operator&&ai(-1))}}if("prop"===n.kind||"bindable_prop"===n.kind)if(Wc(n,t.state))t.state.transform[e]={read:Wa,assign:(e,t)=>Wa(e,t),mutate:(e,t)=>"bindable_prop"===n.kind?Wa(e,t,ki):t,update:e=>Wa(e.prefix?"$.update_pre_prop":"$.update_prop",e.argument,"--"===e.operator&&ai(-1))};else if(n.prop_alias){const r=ji(n.prop_alias);t.state.transform[e]={read:e=>ii(ni("$$props"),r,"Literal"===r.type)}}else t.state.transform[e]={read:e=>ii(ni("$$props"),e)}}Bc(t),t.next()},RegularElement:function(e,t){let n=[-1,-1];if(ce){const r=de(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=Fo(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,p=new Map;let u=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}=Gk(n.value,t);if("Literal"===e.type&&"string"==typeof e.value){t.state.template.push(` is="${sk(e.value,!0)}"`);continue}}s.push(n),c.set(n.name,n);break;case"BindDirective":p.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(vi(Wa("$.effect",bi(n)))):h.after_update.push(vi(n))}else t.visit(e,h);if("input"===e.name){const e=s.some((e=>"Attribute"===e.type&&("value"===e.name||"checked"===e.name)&&!Fi(e)));!s.some((e=>"Attribute"===e.type&&("defaultValue"===e.name||"defaultChecked"===e.name)))&&(u||p.has("value")||p.has("checked")||p.has("group")||!p.has("group")&&e)&&t.state.init.push(vi(Wa("$.remove_input_defaults",t.state.node)))}if("textarea"===e.name){const e=c.get("value")??c.get("checked"),n=e&&!Fi(e);(u||p.has("value")||n)&&t.state.init.push(vi(Wa("$.remove_textarea_child",t.state.node)))}"select"===e.name&&p.has("value")&&function(e,t){if(t.state.analysis.runes)return;let n=e.expression;if("SequenceExpression"===n.type)return;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=Wa("$.invalidate_inner_signals",bi(za(r.map((e=>vi(Vc(ni(e),t.state)))))));t.state.init.push(vi(Wa("$.template_effect",bi(za([vi(t.visit(n)),vi(s)])))))}(p.get("value"),t),t.state.init.push(...l);const m=t.state.node;let f=u;if(u){const n=ni(t.state.scope.generate("attributes"));Uk(s,t,e,m,n,(e.metadata.svg||e.metadata.mathml||Fo(e))&&ki,e.name.includes("-")&&ki,t.state),"select"!==e.name||p.has("value")||(t.state.init.push(vi(Wa("$.init_select",m,bi(ii(n,"value"))))),t.state.update.push(Li(Ua("in",ai("value"),n),za([vi(Wa("$.select_option",m,ii(n,"value")))]))))}else{const n="option"===e.name||"select"===e.name||p.has("group")||p.has("checked");for(const a of s){if(zi(a)){Bk(a,t);continue}if(n&&"value"===a.name){iS(e.name,m,a,t);continue}if(!r&&!J(a.name)&&(!0===a.value||Fi(a))){const n=Kk(e,a),r=!Fi(a)||a.value[0].data;("class"!==n||r)&&t.state.template.push(` ${a.name}${W(n)&&!0===r?"":`="${!0===r?"":sk(r,!0)}"`}`);continue}(r?aS(m,a,t):sS(e,m,a,s,t))&&(f=!0)}}Wk(a,m,t,f),zk(i,m,t,f),"img"===e.name&&(u||c.has("loading"))&&t.state.after_update.push(vi(Wa("$.handle_lazy_img",m))),te(e.name)&&(u||d||c.has("onload")||c.has("onerror"))&&t.state.after_update.push(vi(Wa("$.replay_events",m))),t.state.template.push(">");const y={...t.state.metadata,namespace:_k(e,t.state.metadata.namespace)};if(p.has("innerHTML")||p.has("innerText")||p.has("textContent")){const e=c.get("contenteditable");e&&(!0===e.value||Fi(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}=gk(e,e.fragment.nodes,t.path,v.metadata.namespace,v,"script"===e.name||v.preserve_whitespace,v.options.preserveComments),_={...v,init:[],update:[],after_update:[]};for(const e of g)t.visit(e,_);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)))_.init.push(vi(Va("=",ii(t.state.node,"textContent"),Tk(b,t.visit,_).value)));else{let n=t.state.node,r=b.some((e=>"Text"!==e.type));"template"===e.name&&(r=!0,_.init.push(vi(Wa("$.hydrate_template",n))),n=ii(n,"content")),Zk(b,(e=>Wa("$.child",n,e&&ki)),!0,{...t,state:_}),r&&_.init.push(vi(Wa("$.reset",t.state.node)))}if(e.fragment.nodes.some((e=>"SnippetBlock"===e.type))?t.state.init.push(za([..._.init,...h.init,_.update.length>0?Rk(_.update):Ya,..._.after_update,...h.after_update])):e.fragment.metadata.dynamic?(t.state.init.push(..._.init,...h.init),t.state.update.push(..._.update),t.state.after_update.push(..._.after_update,...h.after_update)):(t.state.init.push(...h.init),t.state.after_update.push(...h.after_update)),c.has("dir")){const e=ii(m,"dir");t.state.update.push(vi(Va("=",e,e)))}v.locations.length>0&&n.push(v.locations),j(e.name)||t.state.template.push(`</${e.name}>`)},RenderTag:function(e,t){t.state.template.push("<!>");const n=Zi(e.expression).callee,r=Zi(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=ni(t.state.scope.generate("render_arg"));t.state.init.push(Ri(e,Wa("$.derived_safe_equal",bi(i)))),s.push(bi(Wa("$.get",e)))}else s.push(bi(i))}let a=t.visit(n);e.metadata.dynamic?("ChainExpression"===e.expression.type&&(a=Xa("??",a,ni("$.noop"))),t.state.init.push(vi(Wa("$.snippet",t.state.node,bi(a),...s)))):t.state.init.push(vi(("CallExpression"===e.expression.type?Wa:Ga)(a,t.state.node,...s)))},SlotElement:function(e,t){t.state.template.push("<!>");const n=[],r=[],s=[];let a=ai("default");for(const i of e.attributes)if("SpreadAttribute"===i.type)r.push(bi(t.visit(i)));else if("Attribute"===i.type){const{value:e}=Gk(i.value,t);"name"===i.name?a=e:"slot"!==i.name&&(i.metadata.expression.has_state?n.push(ti(i.name,[Ni(e)])):n.push(si(i.name,e)))}else"LetDirective"===i.type&&s.push(t.visit(i));t.state.init.push(...s);const i=0===r.length?li(n):Wa("$.spread_props",li(n),...r),o=0===e.fragment.nodes.length?ai(null):Fa([ni("$$anchor")],t.visit(e.fragment)),l=Wa("$.slot",t.state.node,ni("$$props"),a,i,o);t.state.init.push(vi(l))},SnippetBlock:function(e,t){const n=[ni("$$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:ni("$.noop")}),a[i.name]={read:Wa};continue}let o=`$$arg${r}`;n.push(ni(o));const l=Ji(i);for(const e of l){const n=e.node.name,r=e.has_default_value,i=bi(t.visit(e.expression?.(Ga(ni(o)))));s.push(Ti(e.node,r?Wa("$.derived_safe_equal",i):i)),a[n]={read:r?jc:Wa},ce&&s.push(vi(a[n].read(ni(n))))}}r=za([...s,...t.visit(e.body,i).body]);let o=Fa(n,r);ce&&(o=Wa("$.wrap_snippet",ni(t.state.analysis.name),o));const l=$i(e.expression,o);1===t.path.length&&"Fragment"===t.path[0].type?e.metadata.can_hoist?t.state.module_level_snippets.push(l):t.state.instance_level_snippets.push(l):t.state.init.push(l)},SpreadAttribute:function(e,t){return t.visit(e.expression)},SvelteBody:function(e,t){oS(e,"$.document.body",t)},SvelteComponent:function(e,t){const n=Jk(e,"$$component",t);t.state.init.push(n)},SvelteDocument:function(e,t){oS(e,"$.document",t)},SvelteElement:function(e,t){t.state.template.push("<!>");const n=[];let r;const s=[],a=[],i=[],o=ni(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||Fi(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(vi(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(vi(Wa("$.set_class",o,ai(t.state.analysis.css.hash))));else{c=Uk(n,l,e,o,ni(t.state.scope.generate("attributes")),Ua("===",ii(o,"namespaceURI"),ni("$.NAMESPACE_SVG")),Wa(ii(ii(o,"nodeName"),"includes"),ai("-")),t.state)}Wk(s,o,l,c),zk(a,o,l,c);const p=bi(t.visit(e.tag));ce&&(e.fragment.nodes.length>0&&t.state.init.push(vi(Wa("$.validate_void_dynamic_element",p))),t.state.init.push(vi(Wa("$.validate_dynamic_element_tag",p))));const u=l.state.init;l.state.update.length>0&&u.push(Rk(l.state.update)),u.push(...l.state.after_update),u.push(...t.visit(e.fragment,{...t.state,metadata:{...t.state.metadata,namespace:_k(e,t.state.metadata.namespace)}}).body);const d=ce&&de(e.start);t.state.init.push(vi(Wa("$.element",t.state.node,p,e.metadata.svg||e.metadata.mathml?ki:Si,u.length>0&&Fa([o,ni("$$anchor")],za(u)),r&&bi(Gk(r,t).value),d&&Da([ai(d.line),ai(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)},SvelteBoundary:function(e,t){const n=li([]);for(const r of e.attributes){if("Attribute"!==r.type||!0===r.value)continue;const e=Array.isArray(r.value)?r.value[0]:r.value,s=t.visit(e.expression,t.state);r.metadata.expression.has_state?n.properties.push(ti(r.name,[Ni(s)])):n.properties.push(si(r.name,s))}const r=[],s=[];for(const a of e.fragment.nodes)if("SnippetBlock"===a.type&&"failed"===a.expression.name){const e=[];t.visit(a,{...t.state,init:e}),n.properties.push(pi("init",a.expression,a.expression)),s.push(...e)}else r.push(a);const a=t.visit({...e.fragment,nodes:r}),i=vi(Wa("$.boundary",t.state.node,n,Fa([ni("$$anchor")],a)));t.state.template.push("<!>"),t.state.init.push(s.length>0?za([...s,i]):i)},SvelteHead:function(e,t){t.state.init.push(vi(Wa("$.head",Fa([ni("$$anchor")],t.visit(e.fragment)))))},SvelteSelf:function(e,t){const n=Jk(e,t.state.analysis.name,t);t.state.init.push(n)},SvelteWindow:function(e,t){oS(e,"$.window",t)},TitleElement:function(e,t){const{has_state:n,value:r}=Tk(e.fragment.nodes,t.visit,t.state),s=vi(Va("=",ni("$.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=[ai(n),t.state.node,bi(t.visit(Ik(e.name)))];e.expression&&r.push(bi(t.visit(e.expression))),t.state.after_update.push(vi(Wa("$.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(ai(-1)),Wa(t,...r)}if("Identifier"!==n.type&&"MemberExpression"!==n.type)throw new Error("An impossible state was reached");const r=Bi(n),s=r&&t.state.transform[r.name];if(r===n&&s?.update)return s.update(e);let a=t.next();return r&&s?.mutate&&(a=s.mutate(r,a)),ve(e,"ownership_invalid_mutation")?Wa("$.skip_ownership_validation",bi(a)):a},UseDirective:function(e,t){const n=[ni("$$node")];e.expression&&n.push(ni("$$action_arg"));const r=[t.state.node,Fa(n,Ga(t.visit(Ik(e.name)),...n))];e.expression&&r.push(bi(t.visit(e.expression))),t.state.init.push(vi(Wa("$.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=zl(e,t.state.scope);if(!s||"$effect.tracking"===s||"$effect.root"===s||"$inspect"===s||"$inspect.trace"===s||"$state.snapshot"===s||"$host"===s){if(null!=e&&yk(e)){t.state.hoisted.push($i(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=[ni("$$props"),Da(e.map((e=>ai(e))))];ce&&t.push(ai(r.id.name)),n.push(Qa(r.id,Wa("$.rest_props",...t)))}else{Bx(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;Bx(i.type,"Identifier");const o=t.state.scope.get(i.name);let l=o.initial&&t.visit(o.initial);l&&"bindable_prop"===o.kind&&Gc(l,t.state.scope)&&(l=Wa("$.proxy",l)),Wc(o,t.state)&&n.push(Qa(i,zc(o,t.state,a,l)))}else{const t=[ni("$$props"),Da(e.map((e=>ai(e))))];ce&&t.push(ai(s.argument.name)),n.push(Qa(s.argument,Wa("$.rest_props",...t)))}}continue}const a=e.arguments,i=0===a.length?ni("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(Qa(r.id,Wa("$.derived","$derived.by"===s?i:bi(i))));else{const e=Ji(r.id),a=r.init;let o,l=i;"$derived"===s&&"Identifier"===a.arguments[0].type?o=a.arguments[0]:(o=ni(t.state.scope.generate("$$d")),l=Wa("$.get",o),n.push(Qa(o,Wa("$.derived","$derived.by"===s?i:bi(i)))));for(let t=0;t<e.length;t++){const r=e[t];n.push(Qa(r.node,Wa("$.derived",bi(r.expression(l)))))}}else{const e=(e,n)=>{const r=t.state.scope.get(e.name);return"$state"===s&&Gc(n,t.state.scope)&&(n=Wa("$.proxy",n)),Fc(r,t.state.analysis)&&(n=Wa("$.state",n)),n};if("Identifier"===r.id.type)n.push(Qa(r.id,e(r.id,i)));else{const s=t.state.scope.generate("tmp"),a=Ji(r.id);n.push(Qa(ni(s),i),...a.map((n=>{const r=n.expression?.(ni(s)),a=t.state.scope.get(n.node.name);return Qa(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=Ji(r.id);n.push(Qa(ni(e),t.visit(r.init)));for(const r of s){const s=r.node.name,a=t.state.scope.get(s),i=r.expression?.(ni(e));n.push(Qa(r.node,"bindable_prop"===a.kind?zc(a,t.state,a.prop_alias??s,i):i))}continue}const e=t.state.scope.get(r.id.name);n.push(Qa(r.id,zc(e,t.state,e.prop_alias??r.id.name,r.init&&t.visit(r.init))))}else n.push(...lS(r,t.state,r.init&&t.visit(r.init)));else{const e=r.init;if(null!=e&&yk(e)){t.state.hoisted.push($i(r.id,t.visit(e)));continue}n.push(t.visit(r))}}return 0===n.length?Ya:{...e,declarations:n}}};function pS(e,n,r){if(!1===r.generate)return{js:null,css:null,warnings:ue,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:[Mi("$","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,Ek),a=t(e.instance.ast,{...r,scopes:e.instance.scopes},{...Ek,ImportDeclaration:e=>(r.hoisted.push(e),Ya),ExportNamedDeclaration:(e,t)=>e.declaration?t.visit(e.declaration):Ya}),i=t(e.template.ast,{...r,scopes:e.template.scopes},{...Ek,...Ak}),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 Gi(t.body.expression.left)){const t=e.instance.scope.get(n.name);"legacy_reactive"===t?.kind&&o.push(Qa(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,Ti("$$settled",ki),Ti("$$inner_payload"),vi(qi(ni("$$render_inner"),[ni("$$payload")],za(t))),Ci((l="!",c=ni("$$settled"),{type:"UnaryExpression",argument:c,operator:l,prefix:!0}),za([vi(Va("=",ni("$$settled"),ki)),vi(Va("=",ni("$$inner_payload"),Wa("$.copy_payload",ni("$$payload")))),vi(Wa("$$render_inner",ni("$$inner_payload")))])),vi(Wa("$.assign_payload",ni("$$payload"),ni("$$inner_payload")))]}var l,c;[...e.instance.scope.declarations.values()].some((e=>"store_sub"===e.kind))&&(a.body.unshift(Ri("$$store_subs")),i.body.push(Li(ni("$$store_subs"),vi(Wa("$.unsubscribe_stores",ni("$$store_subs"))))));const p=[];for(const[t,n]of e.instance.scope.declarations)"bindable_prop"!==n.kind||t.startsWith("$$")||p.push(si(n.prop_alias??t,ni(t)));for(const{name:t,alias:n}of e.exports)p.push(si(n??t,ni(t)));p.length>0&&i.body.push(vi(Wa("$.bind_props",ni("$$props"),li(p))));const u=za([...a.body,...i.body]);let d=ce||e.needs_context;if(d&&(u.body.unshift(vi(Wa("$.push",ce&&ni(e.name)))),u.body.push(vi(Wa("$.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);u.body.unshift($i("$$restProps",Wa("$.rest_props",ni("$$sanitized_props"),Da(t.map((e=>ai(e)))))))}(e.uses_props||e.uses_rest_props)&&u.body.unshift($i("$$sanitized_props",Wa("$.sanitize_props",ni("$$props")))),e.uses_slots&&u.body.unshift($i("$$slots",Wa("$.sanitize_slots",ni("$$props"))));const h=[...r.hoisted,...s.body];if(null!==e.css.ast&&"injected"===n.css&&!n.customElement){const t=ai(e.css.hash),r=ai(WC(e.source,e,n).code);h.push($i("$$css",li([si("hash",t),si("code",r)]))),u.body.unshift(vi(Wa("$$payload.css.add",ni("$$css"))))}let m=d||p.length>0||e.needs_props||e.uses_props||e.uses_rest_props||e.uses_slots||e.slot_names.size>0;const f=ei(ni(e.name),m?[ni("$$payload"),ni("$$props")]:[ni("$$payload")],u);return 4===n.compatibility.componentApi?(h.unshift(Oi([["render","$$_render"]],"svelte/server")),h.push(f,vi(Va("=",oi(`${e.name}.render`),qi(null,[ni("$$props"),ni("$$opts")],za([Ni(Wa("$$_render",ni(e.name),li([si("props",ni("$$props")),si("context",ii(ni("$$opts"),"context",!1,!0))])))])))),Za(ni(e.name)))):ce?h.push(f,vi(Va("=",oi(`${e.name}.render`),qi(null,[],za([Di("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")])))),Za(ni(e.name))):h.push(Za(f)),ce&&h.unshift(vi(Va("=",ii(ni(e.name),"$.FILENAME",!0),ai(oe)))),{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:[Mi("$","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,instance_level_snippets:[],module_level_snippets:[],before_init:null,init:null,update:null,after_update:null,template:null,locations:null},s=t(e.module.ast,r,cS),a={...r,transform:{...r.transform},scope:e.instance.scope,scopes:e.instance.scopes,is_instance:!0},i=t(e.instance.ast,a,cS),o=t(e.template.ast,{...r,transform:a.transform,scope:e.instance.scope,scopes:e.template.scopes},cS);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($i(t,Wa("$.mutable_state",void 0,e.immutable?ki:void 0))),"store_sub"===n.kind){0===l.length&&l.push($i("$$stores",Wa("$.setup_stores")));const e=Vc(ni(t.slice(1)),a),r=Wa("$.store_get",e,ai(t),ni("$$stores"));l.push($i(n.node,bi(ce?mi([Wa("$.validate_store",e,ai(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(vi(Wa("$.legacy_pre_effect_reset")));const p=[];for(const t of e.binding_groups.values())p.push($i(t.name,Da([])));const u=e.exports.flatMap((({name:e,alias:t})=>{const n=a.scope.get(e),r=Vc(ni(e),a),s=ti(t??e,[Ni(r)]);if("Identifier"===r.type){if("let"===n?.declaration_kind||"var"===n?.declaration_kind)return[s,fi(t??e,[vi(Va("=",r,ni("$$value")))])];if(!ce)return si(t??e,r)}if("prop"===n?.kind||"bindable_prop"===n?.kind)return[s,fi(t??e,[vi(Wa(e,ni("$$value")))])];if("state"===n?.kind||"raw_state"===n?.kind){const r="state"===n.kind?Wa("$.proxy",ni("$$value")):ni("$$value");return[s,fi(t??e,[vi(Wa("$.set",ni(e),r))])]}return s})),d=[...e.instance.scope.declarations].filter((([e,t])=>("prop"===t.kind||"bindable_prop"===t.kind)&&!e.startsWith("$$")));if(ce&&e.runes){const t=e.exports.map((({name:e,alias:t})=>ai(t??e))),n=[];for(const[e,t]of d)"bindable_prop"===t.kind&&n.push(ai(t.prop_alias??e));i.body.unshift(vi(Wa("$.validate_prop_bindings",ni("$$props"),Da(n),Da(t),ni(`${e.name}`))))}if(e.accessors)for(const[t,n]of d){const r=n.prop_alias??t,s=ti(r,[Ni(Wa(ni(t)))]),a=fi(r,[vi(Wa(ni(t),ni("$$value"))),vi(Wa("$.flush_sync"))]);e.runes&&n.initial&&(a.value.params[0]={type:"AssignmentPattern",left:ni("$$value"),right:n.initial}),u.push(s,a)}4===n.compatibility.componentApi?u.push(si("$set",ni("$.update_legacy_props")),si("$on",Fa([ni("$$event_name"),ni("$$event_cb")],Wa("$.add_legacy_event_listener",ni("$$props"),ni("$$event_name"),ni("$$event_cb"))))):ce&&u.push(yi(Wa(ni("$.legacy_api"))));const h=[ni("$$props"),ai(e.runes)];ce&&h.push(ni(e.name));const m=za([...l,...c,...p,...r.instance_level_snippets,...i.body,e.runes||!e.needs_context?Ya:vi(Wa("$.init",e.immutable?ki:void 0)),...o.body]);if(!e.runes)for(const{name:t,alias:n}of e.exports)m.body.push(vi(Wa("$.bind_prop",ni("$$props"),ai(n??t),Vc(ni(t),a))));if(null!==e.css.ast&&e.inject_styles){const t=ai(e.css.hash),s=ai(WC(e.source,e,n).code);r.hoisted.push($i("$$css",li([si("hash",t),si("code",s)]))),m.body.unshift(vi(Wa("$.append_styles",ni("$$anchor"),ni("$$css"))))}const f=ce||e.needs_context||e.reactive_statements.size>0||u.length>0;if(f&&(m.body.unshift(vi(Wa("$.push",...h))),m.body.push(u.length>0?Ni(Wa("$.pop",li(u))):vi(Wa("$.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($i("$$restProps",Wa("$.legacy_rest_props",ni("$$sanitized_props"),Da(t.map((e=>ai(e)))))))}if(e.uses_props||e.uses_rest_props){const t=[ai("children"),ai("$$slots"),ai("$$events"),ai("$$legacy")];e.custom_element&&t.push(ai("$$host")),m.body.unshift($i("$$sanitized_props",Wa("$.legacy_rest_props",ni("$$props"),Da(t))))}e.uses_slots&&m.body.unshift($i("$$slots",Wa("$.sanitize_slots",ni("$$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,...r.module_level_snippets,...g];const b=ei(ni(e.name),y?[ni("$$anchor"),ni("$$props")]:[ni("$$anchor")],m);if(n.hmr){const t=ni(e.name),n=ni("$.HMR"),r=ii(t,n,!0),s=ii(ni("module.default"),n,!0),a=[vi(Va("=",ii(s,"source"),ii(r,"source"))),vi(Wa("$.set",ii(r,"source"),ii(s,"original")))];e.css.hash&&a.unshift(vi(Wa("$.cleanup_styles",ai(e.css.hash))));const i=za([vi(Va("=",t,Wa("$.hmr",t,bi(ii(r,"source"))))),vi(Wa("import.meta.hot.accept",Fa([ni("module")],za(a))))]);g.push(b,Li(ni("import.meta.hot"),i),Za(ni(e.name)))}else g.push(Za(b));if(ce&&(g.unshift(vi(Va("=",ii(ni(e.name),"$.FILENAME",!0),ai(oe)))),g.unshift(vi(Wa(ni("$.mark_module_start")))),g.push(vi(Wa(ni("$.mark_module_end"),ni(e.name))))),e.runes||g.unshift(Oi([],"svelte/internal/flags/legacy")),e.tracing&&g.unshift(Oi([],"svelte/internal/flags/tracing")),n.discloseVersion&&g.unshift(Oi([],"svelte/internal/disclose-version")),4===n.compatibility.componentApi?(g.unshift(Oi([["createClassComponent","$$_createClassComponent"]],"svelte/legacy")),m.body.unshift(Li(ni("new.target"),Ni(Wa("$$_createClassComponent",li([si("component",ni(e.name)),yi(ni("$$anchor"))])))))):ce&&m.body.unshift(vi(Wa("$.check_target",ni("new.target")))),r.events.size>0&&g.push(vi(Wa("$.delegate",Da(Array.from(r.events).map((e=>ai(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=li([n.attribute?si("attribute",ai(n.attribute)):void 0,n.reflect?si("reflect",ai(!0)):void 0,n.type?si("type",ai(n.type)):void 0].filter(Boolean));s.push(si(a,i))}for(const[e,t]of d){const n=t.prop_alias??e;r[n]||s.push(si(n,li([])))}const a=Da([...e.slot_names.keys()].map((e=>ai(e)))),i=Da(e.exports.map((({name:e,alias:t})=>ai(t??e)))),o="boolean"==typeof t||"none"!==t.shadow,l=Wa("$.create_custom_element",ni(e.name),li(s),a,i,ai(o),"boolean"!=typeof t?t.extend:void 0);if("boolean"!=typeof t&&"string"==typeof t.tag){const e=vi(Wa("customElements.define",ai(t.tag),l));n.hmr?g.push(Li(Ua("==",Wa("customElements.get",ai(t.tag)),Pi),e)):g.push(e)}else g.push(vi(l))}return{type:"Program",sourceType:"module",body:g}}(e,r),a=zC(r.filename,r.outputFilename),i=Sw(s,{sourceMapContent:n,sourceMapSource:a});VC(i,r,a);return{js:i,css:e.css.ast&&!e.inject_styles?WC(n,e,r):null,warnings:ue,metadata:{runes:e.runes},ast:null}}function uS(e,n,r){if(!1===r.generate)return{js:null,css:null,warnings:ue,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,Ek);return{type:"Program",sourceType:"module",body:[Mi("$","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,cS),a=[Mi("$","svelte/internal/client")];return e.tracing&&a.push(Oi([],"svelte/internal/flags/tracing")),{type:"Program",sourceType:"module",body:[...a,...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${Pw} `}]),{js:Sw(s,{sourceMapContent:n,sourceMapSource:zC(r.filename,void 0)}),css:null,metadata:{runes:!0},warnings:ue,ast:null}}const dS={filename:wS("(unknown)"),rootDir:wS("undefined"!=typeof process?process.cwd?.():"undefined"!=typeof Deno?Deno.cwd():void 0),dev:CS(!1),generate:xS("client",((e,t)=>"dom"===e||"ssr"===e?(vS(Xe),"dom"===e?"client":"server"):("client"!==e&&"server"!==e&&!1!==e&&PS(`${t} must be "client", "server" or false`),e))),warningFilter:SS((()=>!0))},hS=_S({...dS}),mS=_S({...dS,accessors:bS(We,CS(!1)),css:xS("external",(e=>(!0!==e&&!1!==e||PS('The boolean options have been removed from the css option. Use "external" instead of false and "injected" instead of true'),"none"===e&&PS('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&&PS('css should be either "external" (default, recommended) or "injected"'),e))),cssHash:SS((({css:e,hash:t})=>`svelte-${t(e)}`)),cssOutputFilename:wS(void 0),customElement:CS(!1),discloseVersion:CS(!0),immutable:bS(Ge,CS(!1)),legacy:fS("The legacy option has been removed. If you are using this because of legacy.componentApi, use compatibility.componentApi instead"),compatibility:_S({componentApi:kS([4,5],5)}),loopGuardTimeout:gS((function(e){Ce(e,"options_removed_loop_guard_timeout","The `loopGuardTimeout` option has been removed\nhttps://svelte.dev/e/options_removed_loop_guard_timeout")})),name:wS(void 0),namespace:kS(["html","mathml","svg"]),modernAst:CS(!1),outputFilename:wS(void 0),preserveComments:CS(!1),preserveWhitespace:CS(!1),runes:CS(void 0),hmr:CS(!1),sourcemap:xS(void 0,(e=>e)),enableSourcemap:gS((function(e){Ce(e,"options_removed_enable_sourcemap","The `enableSourcemap` option has been removed. Source maps are always generated now, and tooling can choose to ignore them\nhttps://svelte.dev/e/options_removed_enable_sourcemap")})),hydratable:gS((function(e){Ce(e,"options_removed_hydratable","The `hydratable` option has been removed. Svelte components are always hydratable now\nhttps://svelte.dev/e/options_removed_hydratable")})),format:fS('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:fS('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:fS("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:fS("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:fS("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 fS(e){return t=>{void 0!==t&&Br(null,"options_removed",`Invalid compiler option: ${e}\nhttps://svelte.dev/e/options_removed`)}}const yS=new Set;function vS(e){yS.has(e)||(yS.add(e),e(null))}function gS(e){return t=>{void 0!==t&&vS(e)}}function bS(e,t){return(n,r)=>(void 0!==n&&vS(e),t(n,r))}function _S(e,t=!1){return(n,r)=>{const s={};(n&&"object"!=typeof n||Array.isArray(n))&&PS(`${r} should be an object`);for(const a in n)a in e||(t?s[a]=n[a]:Fr(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 xS(e,t){return(n,r)=>void 0===n?e:t(n,r)}function wS(e,t=!0){return xS(e,((e,n)=>("string"!=typeof e&&PS(`${n} should be a string, if specified`),t||""!==e||PS(`${n} cannot be empty`),e)))}function CS(e){return xS(e,((e,t)=>("boolean"!=typeof e&&PS(`${t} should be true or false, if specified`),e)))}function kS(e,t=e[0]){return xS(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]}"`;PS(t)}return t}))}function SS(e){return xS(e,((e,t)=>("function"!=typeof e&&PS(`${t} should be a function, if specified`),e)))}function PS(e){Br(null,"options_invalid_value",`Invalid compiler option: ${e}\nhttps://svelte.dev/e/options_invalid_value`)}function ES(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 AS(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 NC;let r=0;for(const{offset:s,length:a,replacement:i}of e){const e=NC.from_source(ES(t.source.slice(r,s),r,t));n.concat(e).concat(i),r=s+a}const s=NC.from_source(ES(t.source.slice(r),r,t));return n.concat(s)}(r,n)}class TS{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:UC(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=BC(this.file_basename,this.sourcemap_list);return{code:this.source,dependencies:[...new Set(this.dependencies)],map:e,toString:()=>this.source}}}function $S(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=_w(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&&LC(r,t,e)}return NC.from_processed(e.code,r)}function RS(e,t,n,r,s){const{file_basename:a,get_location:i}=s,o=(e,t)=>NC.from_source(ES(e,t,s)),l=`<${t}${n}>`,c=`<${t}${r}>`;let p;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};LC(s,i(0),0),p=NC.from_processed(c,s)}else p=o(c,0);const u=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(FC)||[])[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=jC(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=$S(e,i(l.length),a);return p.concat(d).concat(u)}const IS=/([\w-$]+\b)(?:=(?:"([^"]*)"|'([^']*)'|(\S+)))?/g;function qS(e){const t={};let n;for(;null!==(n=IS.exec(e));){const e=n[1],r=n[2]||n[3]||n[4];t[e]=!r||r}return t}const LS=/<!--[^]*?-->|<style((?:\s+[^=>'"/\s]+=(?:"[^"]*"|'[^']*'|[^>\s]+)|\s+[^=>'"/\s]+)*\s*)(?:\/>|>([\S\s]*?)<\/style>)/g,MS=/<!--[^]*?-->|<script((?:\s+[^=>'"/\s]+=(?:"[^"]*"|'[^']*'|[^>\s]+)|\s+[^=>'"/\s]+)*\s*)(?:\/>|>([\S\s]*?)<\/script>)/g;async function OS(e,t,n){const{filename:r,source:s}=n,a="style"===e?LS:MS,i=[];const{string:o,map:l}=await AS(a,(async function(a,o="",l="",c){const p=()=>NC.from_source(ES(a,c,n));if(!o&&!l)return p();const u=await t({content:l||"",attributes:qS(o||""),markup:s,filename:r});return u?(u.dependencies&&i.push(...u.dependencies),u.map||u.code!==l?RS(u,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}(u.attributes)??o,ES(l,c,n)):p()):p()}),n);return{string:o,map:l,dependencies:i}}async function NS(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 DS=/(<style[^>]+>)([\S\s]*?)(<\/style>)/g,jS="/*$$__STYLE_CONTENT__$$*/";let BS=!1;class FS extends Error{constructor(e){super(e)}}function VS(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 HS={_(e,{state:t,next:n}){const r=e.leadingComments;if(r)for(const e of r)if("Line"===e.type){const n=lt(e.value);n!==e.value&&t.str.overwrite(e.start+2,e.end,n)}n()},Identifier(e,{state:t,path:n}){QS(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 FS(`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"===zl(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)),p=l.some((e=>"bindable_prop"===e.kind));if(c||p)if(p){if(a++,"Identifier"!==o.id.type)throw new FS("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 FS("$$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,...GS(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}u("state"),t.str.prependLeft(g,"$state("),t.str.appendRight(b,")")}else{let _,x;const w=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(_)return!1;_=r,x=a}return!s&&(n&&e.initial||a&&r||!a&&!r)})))),C="BlockStatement"===x?.body.type&&1===x.body.body.length&&"ExpressionStatement"===x.body.body[0].type,k="ExpressionStatement"===x?.body.type&&"AssignmentExpression"===x.body.expression.type;let S=!1;if(k){const P=x?.body,E=P.expression,[,A]=Ki(E.right);0===A.length&&(S=!0,t.derived_labeled_statements.add(x))}if(!S&&w&&_&&x&&(C||k)){const T=t.str.original.substring(t.str.original.lastIndexOf("\n",e.start)+1,e.start);if("BlockStatement"===x.body.type&&x.body.body[0].leadingComments)for(let $ of x.body.body[0].leadingComments)t.str.prependLeft(e.start,"Block"===$.type?`/*${$.value}*/\n${T}`:`// ${$.value}\n${T}`);if(u("derived"),t.str.appendRight(o.id.typeAnnotation?.end??o.id.end," = $derived("),r(_.right),t.str.appendRight(o.id.typeAnnotation?.end??o.id.end,t.str.snip(_.right.start,_.right.end).toString()),t.str.remove(x.start,x.end),t.str.appendRight(o.id.typeAnnotation?.end??o.id.end,")"),t.derived_labeled_statements.add(x),"BlockStatement"===x.body.type&&x.body.body[0].trailingComments)for(let R of x.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 u("state"),t.str.prependLeft(o.id.typeAnnotation?.end??o.id.end," = $state("),S&&(t.str.appendRight(o.id.typeAnnotation?.end??o.id.end,t.str.snip(_.right.start,_.right.end).toString()),t.str.remove(x.start,x.end)),t.str.appendRight(o.id.typeAnnotation?.end??o.id.end,")")}else s();function u(n){if(!!t.scope.get(n))throw new FS(`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 FS(`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=Gi(e.body.expression.left),[,r]=Ki(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 US(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 zS={Identifier(e,{state:t,path:n}){QS(e,t,n)},RegularElement(e,{state:t,path:n,next:r}){WS(e,n,t),XS(e,t);const s=e.name.replace(/[a-zA-Z-]*:/g,"");if("/"===t.analysis.source[e.end-2]&&!j(s)&&!re(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=YS(r);return BS=!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(WS(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,"}"))}XS(e,t),r()},Component(e,{state:t,path:n,next:r}){r(),WS(e,n,t)},SvelteComponent(e,{state:t,next:n,path:r}){n(),WS(e,r,t);let s=t.str.snip(e.expression.start,e.expression.end).toString();if("Identifier"!==e.expression.type&&"MemberExpression"!==e.expression.type||!rl.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}){WS(e,n,t),r()},SvelteWindow(e,{state:t,next:n}){XS(e,t),n()},SvelteBody(e,{state:t,next:n}){XS(e,t),n()},SvelteDocument(e,{state:t,next:n}){XS(e,t),n()},SlotElement(e,{state:t,path:n,next:r,visit:s}){if(WS(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&&Fi(e)&&e.value[0].data===o))))||e.attributes.some((e=>"Attribute"===e.type&&"slot"===e.name&&Fi(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 FS("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=lt(e.data);n!==e.data&&t.str.overwrite(e.start+4,e.end-3,n)},HtmlTag(e,{state:t,next:n}){US(t,e.start,e.end),n()},ConstTag(e,{state:t,next:n}){US(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;US(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(US(t,r,s),null!==e.pending){const n=t.str.original.lastIndexOf("{",e.value?.start),r=t.str.original.indexOf("}",e.value?.end)+1;US(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;US(t,n,r)}n()},KeyBlock(e,{state:t,next:n}){const r=e.start,s=t.str.original.indexOf("}",e.expression.end)+1;US(t,r,s),n()}};function WS(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&&Fi(t)){if(s=t.value[0].data,"default"===s&&(s="children"),!m.test(s)||F(s))return BS=!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 GS(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),p=c?.start,u=c?.end;let d=c&&r.original.substring(p,u);if(c&&r.update(p,u,""),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 KS=["preventDefault","stopPropagation","stopImmediatePropagation","self","trusted","once"];function XS(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=KS.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 JS(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 QS(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 FS("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 YS(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 ZS(e,n,r){if(r){const e=e=>{delete e.metadata};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.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),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.attributes,a&&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:ot(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})=>(ct(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;ct(t.fallback.nodes),r={type:"ElseBlock",start:i,end:a,children:t.fallback.nodes.map((e=>n(e)))}}return ct(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;ct(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 ct(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})=>(ct(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)))}),SvelteBoundary:(e,{visit:t})=>(ct(e.fragment.nodes),{type:"SvelteBoundary",name:"svelte:boundary",start:e.start,end:e.end,attributes:e.attributes.map((e=>t(e))),children:e.fragment.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 eP(e){return 65279===e.charCodeAt(0)?e.slice(1):e}e.VERSION=Pw,e.compile=function(e,t){e=eP(e),ye(t.warningFilter);const n=mS(t,"");ge(e,n);let r=El(e);const{customElement:s,...a}=r.options||{},i={...n,...a,customElementOptions:s};r.metadata.ts&&(r={...r,fragment:r.fragment&&$l(r.fragment),instance:r.instance&&$l(r.instance),module:r.module&&$l(r.module)});const o=pS(Ux(r,e,i),e,i);return o.ast=ZS(e,r,t.modernAst),o},e.compileModule=function(e,n){e=eP(e),ye(n.warningFilter);const r=hS(n,"");ge(e,r);const s=function(e,n){const{scope:r,scopes:s}=Hl(e,new Vl,!1,null);for(const[e,t]of r.references)"$"!==e[0]||Hx.includes(e)||("$"!==e&&"$"!==e[1]||Gr(t[0].node,e),null===r.get(e.slice(1))||ie(e)||Br(t[0].node,"store_invalid_subscription_module","Cannot reference store value outside a `.svelte` file\nhttps://svelte.dev/e/store_invalid_subscription_module"));const a={runes:!0,tracing:!1};return t(e,{scope:r,scopes:s,analysis:a},Fx),{module:{ast:e,scope:r,scopes:s},name:n.filename,accessors:!1,runes:!0,immutable:!0,tracing:a.tracing}}(Mr(e,!1),r);return uS(s,e,r)},e.migrate=function(e,{filename:n,use_ts:r}={}){let s=e;try{BS=!1;const a=[];e=e.replace(DS,((e,t,n,r,s)=>(a.push([s+t.length,n]),t+jS+r))),ye((()=>!1)),ge(e,{filename:n??"(unknown)"});let i=El(e);const{customElement:o,...l}=i.options||{},c={...mS({},""),...l,customElementOptions:o,filename:n??"(unknown)"},p=new jw(e),u=Ux(i,e,c),d=YS(e);p.replaceAll(/(<svelte:options\s.*?\s?)accessors\s?/g,((e,t)=>t));for(const _ of a)p.overwrite(_[0],_[0]+25,_[1]);let h={scope:u.instance.scope,analysis:u,filename:n,str:p,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:u.root.unique("props").name,rest:u.root.unique("rest").name,run:u.root.unique("run").name,handlers:u.root.unique("handlers").name,stopImmediatePropagation:u.root.unique("stopImmediatePropagation").name,preventDefault:u.root.unique("preventDefault").name,stopPropagation:u.root.unique("stopPropagation").name,once:u.root.unique("once").name,self:u.root.unique("self").name,trusted:u.root.unique("trusted").name,createBubbler:u.root.unique("createBubbler").name,bubble:u.root.unique("bubble").name,passive:u.root.unique("passive").name,nonpassive:u.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 x=i.module.attributes.find((e=>"context"===e.name));x&&h.str.update(x.start,x.end,"module")}i.instance&&t(i.instance.content,h,HS),h={...h,scope:u.template.scope},t(i.fragment,h,zS);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||u.uses_rest_props||u.uses_props||h.has_svelte_self,y=h.uses_ts&&(!i.instance||!i.instance.attributes.some((e=>"lang"===e.name)));if(!i.instance&&f&&p.appendRight(0,y?'<script lang="ts">':"<script>"),h.has_svelte_self&&n){const w=n.split("/").pop();p.appendRight(m,`\n${d}import ${h.analysis.name} from './${w}';`)}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 FS(`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&&p.appendRight(m,`\n${d}${v}`),h.script_insertions.size>0&&p.appendRight(m,`\n${d}${[...h.script_insertions].join(`\n${d}`)}`),m=h.props_insertion_point,h.props.length>0||u.uses_rest_props||u.uses_props){const C=h.props.length>3,k=`\n${d}${d}`,S=C?k:" ";let P="";if(u.uses_props?P=`...${h.names.props}`:(P=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(`,${S}`),u.uses_rest_props&&(P+=`${h.props.length>0?`,${S}`:""}...${h.names.rest}`)),h.has_props_rune)p.appendRight(m,` ${P},`);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)}`,(u.uses_props||u.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 {${S}${P}${C?`\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:""}${u.uses_props||u.uses_rest_props?(h.props.length>0?" & ":"")+"{ [key: string]: any }":""}} */\n${d}${T}`),g("props"),T=`${T} = $props();`),T=`\n${d}${T}`,p.appendRight(m,T)}i.instance&&y&&p.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=Gi($.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}=JS(e,L);p.appendLeft(O,"\n"),p.move(M,O,i.instance?.content.end),p.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"),p.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"),p.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&&p.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&&p.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 jw(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=VS(t.indexOf("(",s)+1,t)-r;if(a>e){r+=a,n=n.substring(a);continue}}}else a=!0,e+=i.length;const l=VS(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:p.toString()}}catch(N){return N instanceof FS||console.error("Error while migrating Svelte code",N),BS=!0,{code:`\x3c!-- @migration-task Error while migrating Svelte code: ${N.message} --\x3e\n${s}`}}finally{BS&&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,loose:s}={}){return e=eP(e),ye((()=>!1)),ge(e,{filename:t??"(unknown)",rootDir:n}),ZS(e,El(e,s),r)},e.preprocess=async function(e,t,n){const r=n&&n.filename||t.filename,s=t?Array.isArray(t)?t:[t]:[],a=new TS(e,r);for(const e of s)e.markup&&a.update_source(await NS(e.markup,a)),e.script&&a.update_source(await OS("script",e.script,a)),e.style&&a.update_source(await OS("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")}}));