sveast 0.9.0 → 0.9.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/core.js CHANGED
@@ -1 +1 @@
1
- import"./shared-40v3xx3k.js";import"./shared-bxg3hhpk.js";import"./shared-zd01zsyh.js";import{e}from"./shared-25z9p1fv.js";import{me}from"./shared-k5pfyxpa.js";import{D}from"./shared-4gksznp7.js";import"./shared-rfa6cx21.js";import{g}from"./shared-yqw5faw6.js";import{b}from"./shared-r8yddmex.js";import{U,ht}from"./shared-wentwa9g.js";function u(o={}){let p=U(o.typescript),s={typescript:p,entityNames:ht(o.entities)??me};return{parse:(t,r)=>D(t,r,s),parseModule:(t,r={})=>g(t,r,p),parseImportsExports:(t,r={})=>b(t,r,p)}}export{e as ParseError,u as createParser};
1
+ import"./shared-40v3xx3k.js";import"./shared-bxg3hhpk.js";import"./shared-zd01zsyh.js";import{e}from"./shared-e8c239q0.js";import{me}from"./shared-k5pfyxpa.js";import{D}from"./shared-dzd7bb3r.js";import"./shared-rfa6cx21.js";import{g}from"./shared-9e9v7bgm.js";import{b}from"./shared-9683q02r.js";import{U,ht}from"./shared-wentwa9g.js";function u(o={}){let p=U(o.typescript),s={typescript:p,entityNames:ht(o.entities)??me};return{parse:(t,r)=>D(t,r,s),parseModule:(t,r={})=>g(t,r,p),parseImportsExports:(t,r={})=>b(t,r,p)}}export{e as ParseError,u as createParser};
package/module.js CHANGED
@@ -1 +1 @@
1
- import"./shared-zd01zsyh.js";import"./shared-bxg3hhpk.js";import{e}from"./shared-25z9p1fv.js";import"./shared-rfa6cx21.js";import{g}from"./shared-yqw5faw6.js";import{b}from"./shared-r8yddmex.js";import{U}from"./shared-wentwa9g.js";function m(t={}){let p=U(t.typescript);return{parseModule:(r,o={})=>g(r,o,p),parseImportsExports:(r,o={})=>b(r,o,p)}}export{e as ParseError,m as createModuleParser};
1
+ import"./shared-zd01zsyh.js";import"./shared-bxg3hhpk.js";import{e}from"./shared-e8c239q0.js";import"./shared-rfa6cx21.js";import{g}from"./shared-9e9v7bgm.js";import{b}from"./shared-9683q02r.js";import{U}from"./shared-wentwa9g.js";function m(t={}){let p=U(t.typescript);return{parseModule:(r,o={})=>g(r,o,p),parseImportsExports:(r,o={})=>b(r,o,p)}}export{e as ParseError,m as createModuleParser};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sveast",
3
- "version": "0.9.0",
3
+ "version": "0.9.1",
4
4
  "license": "MIT",
5
5
  "description": "Fast, zero-dependency Svelte 5 parser with svelte/compiler's AST.",
6
6
  "author": "Eric Liu (https://github.com/metonym)",
@@ -1 +1 @@
1
- import"./shared-zd01zsyh.js";import"./shared-bxg3hhpk.js";import"./shared-25z9p1fv.js";import"./shared-rfa6cx21.js";import"./shared-np5jnnrw.js";import{a}from"./shared-96tm9k91.js";import{b}from"./shared-r8yddmex.js";function s(r,t={}){return b(r,t,a)}export{s as parseImportsExports};
1
+ import"./shared-zd01zsyh.js";import"./shared-bxg3hhpk.js";import"./shared-e8c239q0.js";import"./shared-rfa6cx21.js";import"./shared-np5jnnrw.js";import{a}from"./shared-k7zadjsv.js";import{b}from"./shared-9683q02r.js";function s(r,t={}){return b(r,t,a)}export{s as parseImportsExports};
package/parse-module.js CHANGED
@@ -1 +1 @@
1
- import"./shared-zd01zsyh.js";import"./shared-bxg3hhpk.js";import{e}from"./shared-25z9p1fv.js";import"./shared-np5jnnrw.js";import{a}from"./shared-96tm9k91.js";import{g}from"./shared-yqw5faw6.js";function s(r,o={}){return g(r,o,a)}export{e as ParseError,s as parseModule};
1
+ import"./shared-zd01zsyh.js";import"./shared-bxg3hhpk.js";import{e}from"./shared-e8c239q0.js";import"./shared-np5jnnrw.js";import{a}from"./shared-k7zadjsv.js";import{g}from"./shared-9e9v7bgm.js";function s(r,o={}){return g(r,o,a)}export{e as ParseError,s as parseModule};
package/parse-sections.js CHANGED
@@ -1 +1 @@
1
- import{ee}from"./shared-g9knrb0x.js";import"./shared-pnv8wmzz.js";import"./shared-3yc3kmnb.js";import"./shared-96tm9k91.js";import"./shared-np5jnnrw.js";import"./shared-4gksznp7.js";import"./shared-k5pfyxpa.js";import"./shared-40v3xx3k.js";import"./shared-rfa6cx21.js";import"./shared-25z9p1fv.js";import"./shared-bxg3hhpk.js";import"./shared-zd01zsyh.js";export{ee as parseSections};
1
+ import{ee}from"./shared-arg06k6z.js";import"./shared-pnv8wmzz.js";import"./shared-3yc3kmnb.js";import"./shared-k7zadjsv.js";import"./shared-np5jnnrw.js";import"./shared-dzd7bb3r.js";import"./shared-k5pfyxpa.js";import"./shared-40v3xx3k.js";import"./shared-rfa6cx21.js";import"./shared-e8c239q0.js";import"./shared-bxg3hhpk.js";import"./shared-zd01zsyh.js";export{ee as parseSections};
package/parse.js CHANGED
@@ -1 +1 @@
1
- import{Z}from"./shared-rf0vnv09.js";import"./shared-3yc3kmnb.js";import"./shared-96tm9k91.js";import"./shared-np5jnnrw.js";import"./shared-4gksznp7.js";import"./shared-k5pfyxpa.js";import"./shared-40v3xx3k.js";import"./shared-25z9p1fv.js";import"./shared-bxg3hhpk.js";import"./shared-zd01zsyh.js";export{Z as parse};
1
+ import{Z}from"./shared-8fs155vy.js";import"./shared-3yc3kmnb.js";import"./shared-k7zadjsv.js";import"./shared-np5jnnrw.js";import"./shared-dzd7bb3r.js";import"./shared-k5pfyxpa.js";import"./shared-40v3xx3k.js";import"./shared-e8c239q0.js";import"./shared-bxg3hhpk.js";import"./shared-zd01zsyh.js";export{Z as parse};
package/runes.js CHANGED
@@ -1 +1 @@
1
- import{s}from"./shared-40v3xx3k.js";import{r,N}from"./shared-rfa6cx21.js";import"./shared-bxg3hhpk.js";import"./shared-zd01zsyh.js";import"./shared-25z9p1fv.js";import"./shared-k5pfyxpa.js";import"./shared-4gksznp7.js";import"./shared-np5jnnrw.js";import{Z}from"./shared-rf0vnv09.js";import{ee}from"./shared-g9knrb0x.js";import{w,G,d,O}from"./shared-1qapk0wt.js";import{H}from"./shared-pnv8wmzz.js";import"./shared-3yc3kmnb.js";import"./shared-96tm9k91.js";var C=new Set(["$state","$state.raw","$derived","$derived.by","$state.eager","$state.snapshot","$props","$props.id","$bindable","$effect","$effect.pre","$effect.tracking","$effect.root","$effect.pending","$inspect","$inspect().with","$inspect.trace","$host"]),S=new Set(["$state","$derived","$props","$bindable","$effect","$inspect","$host"]),b=/(?<![\w$])(?:\$(?:state|derived|props|bindable|effect|inspect|host)(?![\w$])|await(?![\w$]))|\\u/g,D=/^\{\s*(true|false)\s*\}$/;function z(e){let l=H(e),n=l.options?.attributes.find((u)=>u.name==="runes"),i=n&&I(n);if(i!==void 0)return i;let t=e.charCodeAt(0)===65279?e.slice(1):e,a=[l.instance,l.module].flatMap((u)=>u?[u.content]:[]),p=!1,c=!1;b.lastIndex=0;for(let u=b.exec(t);u!==null&&!c;u=b.exec(t)){let h=u.index;p=!0,c=!a.some(({start:E,end:v})=>h>=E&&h<v)}if(!p)return!1;if(n===void 0&&!t.includes("\\u")&&R(t,a))return!0;let o={css:!1,comments:!1},f=c?Z(e,o):ee(e,o);if(f.options?.runes!==void 0)return f.options.runes;return L(f)}function I(e){if(e.value===!0)return!0;let l=D.exec(e.value);return l?l[1]==="true":void 0}var M=new Map([...S].map((e)=>[e,new RegExp(`(?<![\\w$.])${e.slice(1)}(?![\\w$])`)])),F=new Set("abstract accessor as async class const declare enum export extends function get implements import infer interface is keyof let module namespace new override private protected public readonly satisfies set static type typeof unique var".split(" "));function R(e,l){let n=new Map;for(let{start:i,end:t}of l){let a=e.slice(0,t);if(N(a,i,(c,o)=>{if(a.charCodeAt(c)!==36)return!1;let f=a.slice(c,o);if(S.has(f)&&n.get(f)!==!1)n.set(f,T(a,c,o));return!1})!==a.length)return!1}for(let[i,t]of n)if(t&&!M.get(i)?.test(e))return!0;return!1}function T(e,l,n){let i=l-1;while(i>=0&&s(e.charCodeAt(i)))i--;let t=e.charCodeAt(i);if(t===35||t===42||t===46||t===58||t===60||t===64)return!1;if(r(t)){let o=i;while(o>0&&r(e.charCodeAt(o-1)))o--;if(F.has(e.slice(o,i+1)))return!1}let a=y(e,n);while(e.charCodeAt(a)===46){let o=y(e,a+1),f=o;while(r(e.charCodeAt(f)))f++;if(f===o)return!1;a=y(e,f)}if(e.charCodeAt(a)===60){if(a=k(e,a),a===-1)return!1;a=y(e,a)}if(e.charCodeAt(a)!==40)return!1;let p=N(e,a+1);if(e.charCodeAt(p)!==41)return!1;let c=e.charCodeAt(y(e,p+1));return c!==123&&c!==58}function y(e,l){let n=l;while(n<e.length&&s(e.charCodeAt(n)))n++;return n}function k(e,l){let n=0,i=Math.min(e.length,l+2000);for(let t=l;t<i;t++){let a=e.charCodeAt(t);if(a===34||a===39||a===96||a===47)return-1;if(a===60)n++;else if(a===62&&e.charCodeAt(t-1)!==61){if(n--,n===0)return t+1}}return-1}function L(e){let l=e.module?.content,n=e.instance?.content,i=new Map;if(n)A(n,i,!0);let t=new Map;if(l)A(l,t,!1);for(let[c,o]of t)if(!i.has(c))i.set(c,o);let a=[],p=(c)=>{if(!a.includes(c))a.push(c)};if(l)x(l,t,p);if(n&&x(n,i,p))return!0;if(x(e.fragment,i,p))return!0;for(let c of a){let o=c.slice(1);if(!i.has(o))return!0;let f=i.get(o)??null,u=P(f,i);if(!((u===null||o!=="props"&&u==="$props")&&!(c==="$derived"&&f?.type==="ImportDeclaration"&&f.source.value==="svelte/store")))return!0;i.set(c,null)}return!1}function x(e,l,n){let i=[],t=new Map,a=(o)=>S.has(o)&&!l.has(o)&&!i.some((f)=>_(f,t).has(o)),p=0,c=!1;return O(e,{enter(o,f){if(m(o))p++;else if(o.type==="AwaitExpression")c||=p===0;let u;if(o.type==="Identifier"&&f&&!f.type.startsWith("TS")&&G(o,f))u=o.name;else if(o.type==="TransitionDirective"||o.type==="AnimateDirective"||o.type==="UseDirective")u=o.name.split(".")[0];else if(o.type==="StyleDirective"&&o.value===!0)u=o.name;if(u!==void 0&&a(u))n(u);i.push(o)},leave(o){if(i.pop(),m(o))p--}}),c}var g=new Set;function _(e,l){let n=l.get(e);if(n)return n;let i=[];if(m(e)){if(i.push(...e.params),e.type==="FunctionExpression"&&e.id)i.push(e.id)}else if(e.type==="CatchClause"&&e.param)i.push(e.param);else if(e.type==="SnippetBlock")i.push(...e.parameters??[]);else if(e.type==="EachBlock"&&e.context)i.push(e.context);if(i.length===0&&!m(e))return l.set(e,g),g;if(n=new Set(i.flatMap((t)=>w(t)).map((t)=>t.name)),m(e)){let{body:t}=e;O(t,{enter(a){if(a===t)return;if(a.type==="VariableDeclaration")for(let p of a.declarations)for(let c of w(p.id))n?.add(c.name);else if((a.type==="FunctionDeclaration"||a.type==="ClassDeclaration")&&a.id)n?.add(a.id.name);return m(a)?d:void 0}})}return l.set(e,n),n}function m(e){return e.type==="ArrowFunctionExpression"||e.type==="FunctionExpression"||e.type==="FunctionDeclaration"}function A(e,l,n){let i=[];O(e,{enter(t,a){if(m(t)&&t.type!=="FunctionDeclaration")return d;let p=a===e||a?.type==="ExportNamedDeclaration"||a?.type==="ExportDefaultDeclaration";if(t.type==="ImportDeclaration"){for(let c of t.specifiers)l.set(c.local.name,t);return d}if(t.type==="FunctionDeclaration"||t.type==="ClassDeclaration"){if(p&&t.id)l.set(t.id.name,t);return d}if(t.type==="VariableDeclaration"){if(t.kind!=="var"&&!p)return d;for(let c of t.declarations)for(let o of w(c.id))l.set(o.name,p?c.init??null:null);return d}if(n&&a===e&&t.type==="LabeledStatement"&&t.label.name==="$"&&t.body.type==="ExpressionStatement"&&t.body.expression.type==="AssignmentExpression"){for(let c of w(t.body.expression.left))if(!c.name.startsWith("$"))i.push(c)}return}});for(let t of i)if(!l.has(t.name))l.set(t.name,null)}function P(e,l){if(e?.type!=="CallExpression")return null;let n=e.callee,i="";while(n.type==="MemberExpression"){if(n.computed||n.property.type!=="Identifier")return null;i=`.${n.property.name}${i}`,n=n.object}if(n.type==="CallExpression"&&n.callee.type==="Identifier")i=`()${i}`,n=n.callee;if(n.type!=="Identifier"||l.has(n.name))return null;return i=n.name+i,C.has(i)?i:null}export{z as isRunesMode};
1
+ import{s}from"./shared-40v3xx3k.js";import{r,N}from"./shared-rfa6cx21.js";import"./shared-bxg3hhpk.js";import"./shared-zd01zsyh.js";import"./shared-e8c239q0.js";import"./shared-k5pfyxpa.js";import"./shared-dzd7bb3r.js";import"./shared-np5jnnrw.js";import{Z}from"./shared-8fs155vy.js";import{ee}from"./shared-arg06k6z.js";import{w,G,d,O}from"./shared-1qapk0wt.js";import{H}from"./shared-pnv8wmzz.js";import"./shared-3yc3kmnb.js";import"./shared-k7zadjsv.js";var C=new Set(["$state","$state.raw","$derived","$derived.by","$state.eager","$state.snapshot","$props","$props.id","$bindable","$effect","$effect.pre","$effect.tracking","$effect.root","$effect.pending","$inspect","$inspect().with","$inspect.trace","$host"]),S=new Set(["$state","$derived","$props","$bindable","$effect","$inspect","$host"]),b=/(?<![\w$])(?:\$(?:state|derived|props|bindable|effect|inspect|host)(?![\w$])|await(?![\w$]))|\\u/g,D=/^\{\s*(true|false)\s*\}$/;function z(e){let l=H(e),n=l.options?.attributes.find((u)=>u.name==="runes"),i=n&&I(n);if(i!==void 0)return i;let t=e.charCodeAt(0)===65279?e.slice(1):e,a=[l.instance,l.module].flatMap((u)=>u?[u.content]:[]),p=!1,c=!1;b.lastIndex=0;for(let u=b.exec(t);u!==null&&!c;u=b.exec(t)){let h=u.index;p=!0,c=!a.some(({start:E,end:v})=>h>=E&&h<v)}if(!p)return!1;if(n===void 0&&!t.includes("\\u")&&R(t,a))return!0;let o={css:!1,comments:!1},f=c?Z(e,o):ee(e,o);if(f.options?.runes!==void 0)return f.options.runes;return L(f)}function I(e){if(e.value===!0)return!0;let l=D.exec(e.value);return l?l[1]==="true":void 0}var M=new Map([...S].map((e)=>[e,new RegExp(`(?<![\\w$.])${e.slice(1)}(?![\\w$])`)])),F=new Set("abstract accessor as async class const declare enum export extends function get implements import infer interface is keyof let module namespace new override private protected public readonly satisfies set static type typeof unique var".split(" "));function R(e,l){let n=new Map;for(let{start:i,end:t}of l){let a=e.slice(0,t);if(N(a,i,(c,o)=>{if(a.charCodeAt(c)!==36)return!1;let f=a.slice(c,o);if(S.has(f)&&n.get(f)!==!1)n.set(f,T(a,c,o));return!1})!==a.length)return!1}for(let[i,t]of n)if(t&&!M.get(i)?.test(e))return!0;return!1}function T(e,l,n){let i=l-1;while(i>=0&&s(e.charCodeAt(i)))i--;let t=e.charCodeAt(i);if(t===35||t===42||t===46||t===58||t===60||t===64)return!1;if(r(t)){let o=i;while(o>0&&r(e.charCodeAt(o-1)))o--;if(F.has(e.slice(o,i+1)))return!1}let a=y(e,n);while(e.charCodeAt(a)===46){let o=y(e,a+1),f=o;while(r(e.charCodeAt(f)))f++;if(f===o)return!1;a=y(e,f)}if(e.charCodeAt(a)===60){if(a=k(e,a),a===-1)return!1;a=y(e,a)}if(e.charCodeAt(a)!==40)return!1;let p=N(e,a+1);if(e.charCodeAt(p)!==41)return!1;let c=e.charCodeAt(y(e,p+1));return c!==123&&c!==58}function y(e,l){let n=l;while(n<e.length&&s(e.charCodeAt(n)))n++;return n}function k(e,l){let n=0,i=Math.min(e.length,l+2000);for(let t=l;t<i;t++){let a=e.charCodeAt(t);if(a===34||a===39||a===96||a===47)return-1;if(a===60)n++;else if(a===62&&e.charCodeAt(t-1)!==61){if(n--,n===0)return t+1}}return-1}function L(e){let l=e.module?.content,n=e.instance?.content,i=new Map;if(n)A(n,i,!0);let t=new Map;if(l)A(l,t,!1);for(let[c,o]of t)if(!i.has(c))i.set(c,o);let a=[],p=(c)=>{if(!a.includes(c))a.push(c)};if(l)x(l,t,p);if(n&&x(n,i,p))return!0;if(x(e.fragment,i,p))return!0;for(let c of a){let o=c.slice(1);if(!i.has(o))return!0;let f=i.get(o)??null,u=P(f,i);if(!((u===null||o!=="props"&&u==="$props")&&!(c==="$derived"&&f?.type==="ImportDeclaration"&&f.source.value==="svelte/store")))return!0;i.set(c,null)}return!1}function x(e,l,n){let i=[],t=new Map,a=(o)=>S.has(o)&&!l.has(o)&&!i.some((f)=>_(f,t).has(o)),p=0,c=!1;return O(e,{enter(o,f){if(m(o))p++;else if(o.type==="AwaitExpression")c||=p===0;let u;if(o.type==="Identifier"&&f&&!f.type.startsWith("TS")&&G(o,f))u=o.name;else if(o.type==="TransitionDirective"||o.type==="AnimateDirective"||o.type==="UseDirective")u=o.name.split(".")[0];else if(o.type==="StyleDirective"&&o.value===!0)u=o.name;if(u!==void 0&&a(u))n(u);i.push(o)},leave(o){if(i.pop(),m(o))p--}}),c}var g=new Set;function _(e,l){let n=l.get(e);if(n)return n;let i=[];if(m(e)){if(i.push(...e.params),e.type==="FunctionExpression"&&e.id)i.push(e.id)}else if(e.type==="CatchClause"&&e.param)i.push(e.param);else if(e.type==="SnippetBlock")i.push(...e.parameters??[]);else if(e.type==="EachBlock"&&e.context)i.push(e.context);if(i.length===0&&!m(e))return l.set(e,g),g;if(n=new Set(i.flatMap((t)=>w(t)).map((t)=>t.name)),m(e)){let{body:t}=e;O(t,{enter(a){if(a===t)return;if(a.type==="VariableDeclaration")for(let p of a.declarations)for(let c of w(p.id))n?.add(c.name);else if((a.type==="FunctionDeclaration"||a.type==="ClassDeclaration")&&a.id)n?.add(a.id.name);return m(a)?d:void 0}})}return l.set(e,n),n}function m(e){return e.type==="ArrowFunctionExpression"||e.type==="FunctionExpression"||e.type==="FunctionDeclaration"}function A(e,l,n){let i=[];O(e,{enter(t,a){if(m(t)&&t.type!=="FunctionDeclaration")return d;let p=a===e||a?.type==="ExportNamedDeclaration"||a?.type==="ExportDefaultDeclaration";if(t.type==="ImportDeclaration"){for(let c of t.specifiers)l.set(c.local.name,t);return d}if(t.type==="FunctionDeclaration"||t.type==="ClassDeclaration"){if(p&&t.id)l.set(t.id.name,t);return d}if(t.type==="VariableDeclaration"){if(t.kind!=="var"&&!p)return d;for(let c of t.declarations)for(let o of w(c.id))l.set(o.name,p?c.init??null:null);return d}if(n&&a===e&&t.type==="LabeledStatement"&&t.label.name==="$"&&t.body.type==="ExpressionStatement"&&t.body.expression.type==="AssignmentExpression"){for(let c of w(t.body.expression.left))if(!c.name.startsWith("$"))i.push(c)}return}});for(let t of i)if(!l.has(t.name))l.set(t.name,null)}function P(e,l){if(e?.type!=="CallExpression")return null;let n=e.callee,i="";while(n.type==="MemberExpression"){if(n.computed||n.property.type!=="Identifier")return null;i=`.${n.property.name}${i}`,n=n.object}if(n.type==="CallExpression"&&n.callee.type==="Identifier")i=`()${i}`,n=n.callee;if(n.type!=="Identifier"||l.has(n.name))return null;return i=n.name+i,C.has(i)?i:null}export{z as isRunesMode};
@@ -0,0 +1,2 @@
1
+ import{D}from"./shared-dzd7bb3r.js";import{x}from"./shared-3yc3kmnb.js";import{a}from"./shared-k7zadjsv.js";var o={typescript:a,entityNames:x};function Z(t,r){return D(t,r,o)}
2
+ export{Z};
@@ -1,2 +1,2 @@
1
- import{T}from"./shared-bxg3hhpk.js";import{lt}from"./shared-25z9p1fv.js";import{W}from"./shared-rfa6cx21.js";function b(t,r,o){T(t);let e={isTypeScript:r.typescript??!1,typescript:o,loc:!1,comments:!1,root:{comments:[]}};return lt(e,t,(s)=>W(t,r.localExports??!0,s))}
1
+ import{T}from"./shared-bxg3hhpk.js";import{lt}from"./shared-e8c239q0.js";import{W}from"./shared-rfa6cx21.js";function b(t,r,o){T(t);let e={isTypeScript:r.typescript??!1,typescript:o,loc:!1,comments:!1,root:{comments:[]}};return lt(e,t,(s)=>W(t,r.localExports??!0,s))}
2
2
  export{b};
@@ -0,0 +1,2 @@
1
+ import{T}from"./shared-bxg3hhpk.js";import{j}from"./shared-e8c239q0.js";function g(e,r,o){return T(e),j({isTypeScript:r.typescript??!1,typescript:o,loc:r.loc??!1,comments:r.comments??!0,root:{comments:[]}},e)}
2
+ export{g};
@@ -1,2 +1,2 @@
1
- import{S}from"./shared-k5pfyxpa.js";import{X,te,ie,re}from"./shared-4gksznp7.js";import{de}from"./shared-pnv8wmzz.js";import{x}from"./shared-3yc3kmnb.js";import{a}from"./shared-96tm9k91.js";function u(t,n,c){let p=te(t,n,c);return y(p),ie(p)}function y(t){let{source:n}=t,{tags:c,comments:p}=de(n),i=t.root.fragment.nodes,f=(e,r)=>{if(r<=e)return;let o=n.slice(e,r),d=o.includes("<")||o.includes("{")?o:S(o,!1,t.entityNames);i.push({type:"Text",start:e,end:r,raw:o,data:d})},s=0,m=0;for(let e of c){for(;m<p.length&&p[m]<e;m+=2){let r=p[m];if(r<s)continue;let o=p[m+1];f(s,r),i.push({type:"Comment",start:r,end:o,data:n.slice(r+4,o-3)}),s=o}if(e<s)continue;f(s,e),t.index=e,X(t);while(t.stack.length>1&&t.index<n.length)re(t);s=t.index}let l=i.filter((e)=>e.type==="SvelteOptions");i.length=0,i.push(...l)}var T={typescript:a,entityNames:x};function ee(t,n){return u(t,n,T)}
1
+ import{S}from"./shared-k5pfyxpa.js";import{X,te,ie,re}from"./shared-dzd7bb3r.js";import{de}from"./shared-pnv8wmzz.js";import{x}from"./shared-3yc3kmnb.js";import{a}from"./shared-k7zadjsv.js";function u(t,n,c){let p=te(t,n,c);return y(p),ie(p)}function y(t){let{source:n}=t,{tags:c,comments:p}=de(n),i=t.root.fragment.nodes,f=(e,r)=>{if(r<=e)return;let o=n.slice(e,r),d=o.includes("<")||o.includes("{")?o:S(o,!1,t.entityNames);i.push({type:"Text",start:e,end:r,raw:o,data:d})},s=0,m=0;for(let e of c){for(;m<p.length&&p[m]<e;m+=2){let r=p[m];if(r<s)continue;let o=p[m+1];f(s,r),i.push({type:"Comment",start:r,end:o,data:n.slice(r+4,o-3)}),s=o}if(e<s)continue;f(s,e),t.index=e,X(t);while(t.stack.length>1&&t.index<n.length)re(t);s=t.index}let l=i.filter((e)=>e.type==="SvelteOptions");i.length=0,i.push(...l)}var T={typescript:a,entityNames:x};function ee(t,n){return u(t,n,T)}
2
2
  export{ee};
@@ -1,3 +1,3 @@
1
- import{B,s,t,V,C,M,l,v,F}from"./shared-40v3xx3k.js";import{T,p,k,L,J}from"./shared-bxg3hhpk.js";import{h,y}from"./shared-zd01zsyh.js";import{e,ye,xe,ge,be,Se,ve,Ae,Te,ke,Ee,ne,we,Ce,oe,Ne,_e,Pe,Le,Q,ae,Ie,le,Re,Oe,c,$e,qe,De,Be,Ve,Me,Fe,We,je,pe,Ue,ze,Ke,Ge,He,Xe,Y,Qe,Ye,Je,ce,Ze,et,tt,it,n,rt,st,nt,P,j,A,ot,at}from"./shared-25z9p1fv.js";import{S}from"./shared-k5pfyxpa.js";import{z}from"./shared-wentwa9g.js";var ct=/\r(?!\n)|[\u2028\u2029]/;function K(r,i){let a=r.codePointAt(i);if(a===void 0||!h(a,!0))return i;let o=i+(a<=65535?1:2),u=r.codePointAt(o);while(u!==void 0&&y(u,!0))o+=u<=65535?1:2,u=r.codePointAt(o);return o}class en{source;index=0;loc;lfOnly;isTypeScript;typescript;entityNames;css;script;comments;root;stack;fragments;metaTags=new Set;lastAutoClosedTag;nextAngle=-1;nextBrace=-1;constructor(r,i,a,o={}){if(this.source=r,this.loc=o.loc??!1,this.lfOnly=this.loc&&!ct.test(r),this.isTypeScript=V(r),this.typescript=a.typescript,this.isTypeScript&&!this.typescript)z();this.entityNames=a.entityNames,this.css=o.css??!0,this.script=o.script??!0,this.comments=o.comments??!0,this.root={type:"Root",start:0,end:i,css:null,js:[],options:null,fragment:{type:"Fragment",nodes:[]},comments:[]},this.stack=[this.root],this.fragments=[this.root.fragment]}match(r){if(r.length===1)return this.source.charCodeAt(this.index)===r.charCodeAt(0);return this.source.startsWith(r,this.index)}matchRegex(r){return r.lastIndex=this.index,r.exec(this.source)?.[0]??null}eat(r,i=!1){if(this.match(r))return this.index+=r.length,!0;if(i)c(this.index,r);return!1}read(r){let i=this.matchRegex(r);if(i)this.index+=i.length;return i}readUntil(r){if(this.index>=this.source.length)n(this.source.length);let i=this.source.indexOf(r,this.index),a=i===-1?this.source.length:i,o=this.source.slice(this.index,a);return this.index=a,o}allowWhitespace(){this.index=t(this.source,this.index)}requireWhitespace(){if(!s(this.source.charCodeAt(this.index)))$e(this.index);this.allowWhitespace()}eatClosingBrace(){this.allowWhitespace(),this.eat("}",!0)}sourceLocation(r,i){return this.loc?{start:p(r),end:p(i)}:void 0}readIdentifierName(){let r=this.index,i=K(this.source,r),a=this.source.slice(r,i);if(this.index=i,P.has(a))rt(r,a);let o={type:"Identifier",name:a,start:r,end:i};if(this.loc)o.loc=this.sourceLocation(r,i);return o}current(){return this.stack[this.stack.length-1]}append(r){this.fragments[this.fragments.length-1].nodes.push(r)}open(r,i){this.append(r),this.stack.push(r),this.fragments.push(i)}setFragment(r){this.fragments[this.fragments.length-1]=r}close(){this.stack.pop(),this.fragments.pop()}}var ut={"||":1,"??":1,"&&":2,"==":6,"!=":6,"===":6,"!==":6,"<":7,">":7,"<=":7,">=":7,"+":9,"-":9,"*":10,"/":10,"%":10};function nn(r,i,a,o){return{type:"Literal",start:i,end:a,value:o,raw:r.slice(i,a)}}function fn(r,i){let a=r.charCodeAt(i);if(a===34||a===39){for(let u=i+1;u<r.length;u++){let d=r.charCodeAt(u);if(d===a)return nn(r,i,u+1,r.slice(i+1,u));if(d===92||d===10||d===13)return null}return null}let o=i;for(;o<r.length;o++){let u=r.charCodeAt(o);if(u<48||u>57)break}if(o===i||a===48&&o-i>1)return null;return nn(r,i,o,Number(r.slice(i,o)))}function pt(r,i,a){let o=K(r,i);if(o===i)return fn(r,i);let u=r.slice(i,o);if(u==="true"||u==="false"||u==="null")return nn(r,i,o,u==="null"?null:u==="true");if(P.has(u))return null;let d={type:"Identifier",start:i,end:o,name:u};for(let f=o;;){let g=r.charCodeAt(f);if(g===40){let E=dt(r,f+1,a);if(!E)return null;d={type:"CallExpression",start:i,end:E.end,callee:d,arguments:E.arguments,optional:!1},f=E.end;continue}let m,x;if(g===46){if(x=K(r,f+1),x===f+1)return null;m={type:"Identifier",start:f+1,end:x,name:r.slice(f+1,x)}}else if(g===91){if(m=fn(r,f+1),!m||r.charCodeAt(m.end)!==93)return null;x=m.end+1}else return d;d={type:"MemberExpression",start:i,end:x,object:d,property:m,computed:g===91,optional:!1},f=x}}function dt(r,i,a){let o=[],u=t(r,i);if(r.charCodeAt(u)===41)return{arguments:o,end:u+1};for(;;){let d=ee(r,u,a);if(!d)return null;o.push(d),u=t(r,d.end);let f=r.charCodeAt(u);if(f===41)return{arguments:o,end:u+1};if(f!==44)return null;if(u=t(r,u+1),r.charCodeAt(u)===41)return null}}function rn(r,i,a){let o=r.charCodeAt(i),u=r.charCodeAt(i+1);if(!(o===33&&u!==61)&&!(o===45&&u!==45&&u!==61))return pt(r,i,a);let d=rn(r,t(r,i+1),a);if(!d)return null;return{type:"UnaryExpression",start:i,end:d.end,operator:o===33?"!":"-",prefix:!0,argument:d}}function mn(r,i,a){let o=r.charCodeAt(i),u=r.charCodeAt(i+1);switch(o){case 124:return u===124&&r.charCodeAt(i+2)!==61?"||":null;case 38:return u===38&&r.charCodeAt(i+2)!==61?"&&":null;case 63:return u===63&&r.charCodeAt(i+2)!==61?"??":null;case 61:if(u!==61)return null;return r.charCodeAt(i+2)===61?"===":"==";case 33:if(u!==61)return null;return r.charCodeAt(i+2)===61?"!==":"!=";case 60:case 62:if(a||u===o)return null;if(u===61)return o===60?"<=":">=";return o===60?"<":">";case 43:return u===43||u===61?null:"+";case 45:return u===45||u===61?null:"-";case 42:return u===42||u===61?null:"*";case 47:return u===47||u===42||u===61?null:"/";case 37:return u===61?null:"%";default:return null}}function tn(r,i,a,o){if(hn(r.charCodeAt(i.end)))return i;let u=t(r,i.end),d=mn(r,u,o);if(d===null)return i;let f=ut[d];if(f<=a)return i;let g=d==="||"||d==="&&",m=d==="??",x=rn(r,t(r,u+d.length),o);if(!x)return null;let E=tn(r,x,m?2:f,o);if(!E)return null;let b=g||m?{type:"LogicalExpression",start:i.start,end:E.end,left:i,operator:d,right:E}:{type:"BinaryExpression",start:i.start,end:E.end,left:i,operator:d,right:E};if(g||m){let _=mn(r,t(r,b.end),o);if(m?_==="||"||_==="&&":_==="??")return null}return tn(r,b,a,o)}function ee(r,i,a){let o=rn(r,i,a);if(!o)return null;let u=tn(r,o,-1,a);if(!u||hn(r.charCodeAt(u.end)))return u;let d=t(r,u.end);if(r.charCodeAt(d)!==63)return u;let f=r.charCodeAt(d+1);if(f===46||f===63)return null;let g=ee(r,t(r,d+1),a);if(!g)return null;let m=t(r,g.end);if(r.charCodeAt(m)!==58)return null;let x=ee(r,t(r,m+1),a);if(!x)return null;return{type:"ConditionalExpression",start:u.start,end:x.end,test:u,consequent:g,alternate:x}}function hn(r){return r===125||r===41||r===44||r===58}function ft(r,i){let a=t(r,i);if(a>=r.length)return!1;let o=r.charCodeAt(a);return o===125||o===41}function mt(r,i,a){let o=ee(r,i,a);return o&&ft(r,o.end)?o:null}function N(r){switch(r.loc={start:k(r.start),end:k(r.end)},r.type){case"MemberExpression":N(r.object),N(r.property);break;case"CallExpression":N(r.callee);for(let i of r.arguments)N(i);break;case"UnaryExpression":N(r.argument);break;case"BinaryExpression":case"LogicalExpression":N(r.left),N(r.right);break;case"ConditionalExpression":N(r.test),N(r.consequent),N(r.alternate);break}}function w(r){let i=!r.loc||r.lfOnly?mt(r.source,r.index,r.isTypeScript):null;if(i){if(r.index=i.end,r.loc)N(i);return i}let{node:a,end:o}=A(r,r.source,r.index);return r.index=o,a}var xn=/<\/script\s*>/g,ht=new Set(["server","client","worker","test","default"]);function Sn(r,i,a){let{source:o,index:u}=r;if(u>=o.length)n(o.length);xn.lastIndex=u;let d=xn.exec(o);if(!d)Q(o.length,"script");r.index=d.index+d[0].length;let f=r.script?j(r,o.slice(0,d.index),u):xt(u,d.index);if(f.start=u,f.loc)Object.assign(f.loc.start,k(i)),Object.assign(f.loc.end,k(r.index));else if(r.loc)f.loc={start:k(i),end:k(r.index)};let g="default";for(let m of a){if(ht.has(m.name))Me(m,m.name);if(m.name==="module"){if(m.value!==!0)Be(m,m.name);g="module"}if(m.name==="context"){let x=m.value;if(x===!0||!Array.isArray(x)||x.length!==1||x[0].type!=="Text"||x[0].data!=="module")Ve(m);g="module"}}return{type:"Script",start:i,end:r.index,context:g,content:f,attributes:a}}function xt(r,i){return{type:"Program",start:r,end:i,body:[],sourceType:"module"}}var St=/(even|odd|\+?(\d+|\d*n(\s*[+-]\s*\d+)?)|-\d*n(\s*\+\s*\d+))((?=\s*[,)])|\s+of(\s+|(?=[.#[*:&])))/y,gt=/\d+(\.\d+)?%/y,At=/\\[0-9a-fA-F]{1,6}(\r\n|\s)?/y,yt=/\s*>/y,W=-1,Tn=34,Tt=35,Et=36,Ct=38,En=39,bt=40,_t=41,de=42,vt=43,Pt=45,kt=46,Cn=47,on=58,wt=59,Rt=60,gn=61,Nt=62,Bt=91,sn=92,Lt=93,Ot=94,bn=123,ln=124,Dt=125,_n=126,se=[];function vn(r,i,a){let o=r.index;se=[];let u=r.css?Ft(r):Wt(r),d=r.index;return r.eat("</style",!0),r.read(yt),{type:"StyleSheet",start:i,end:r.index,attributes:a,children:u,comments:se,content:{start:o,end:d,styles:r.source.slice(o,d),comment:null}}}function Wt(r){return r.index=M(r.source,r.index),[]}function Ft(r){let i=[];for(;;){if(q(r,!0),r.match("</style")||r.index>=r.source.length)break;i.push(r.match("@")?Pn(r):kn(r))}return i}function Pn(r){let i=r.index;r.eat("@",!0);let a=I(r),o=cn(r,!0),u=null;if(r.match("{"))u=Nn(r);else r.eat(";",!0);return{type:"Atrule",start:i,end:r.index,name:a,prelude:o,block:u}}function kn(r){let i=r.index;return{type:"Rule",prelude:wn(r,!1),block:Nn(r),start:i,end:r.index}}function wn(r,i){let a=[];q(r,!0);let o=r.index;while(r.index<r.source.length){a.push(It(r,i));let u=r.index;if(q(r,!0),r.match(i?")":"{"))return{type:"SelectorList",start:o,end:u,children:a};r.eat(",",!0),q(r,!0)}return n(r.source.length)}function An(r,i){return{type:"RelativeSelector",combinator:r,selectors:[],start:i,end:-1}}function It(r,i){let{source:a,index:o}=r,u=[],d=An(null,r.index);while(r.index<a.length){let f=r.index,g=a.charCodeAt(f),m=d.selectors;if(g===Ct)r.index++,m.push({type:"NestingSelector",name:"&",start:f,end:r.index});else if(g===de)r.index++,m.push(yn(r,f,"*"));else if(g===Tt)r.index++,m.push({type:"IdSelector",name:I(r),start:f,end:r.index});else if(g===kt)r.index++,m.push({type:"ClassSelector",name:I(r),start:f,end:r.index});else if(g===on){let _=a.charCodeAt(f+1)===on;r.index+=_?2:1;let R=I(r),G=null;if(r.eat("("))G=wn(r,!0),r.eat(")",!0);if(_)m.push({type:"PseudoElementSelector",name:R,start:f,end:r.index,...G&&{args:G}});else m.push({type:"PseudoClassSelector",name:R,args:G,start:f,end:r.index})}else if(g===Bt)r.index++,m.push(Mt(r,f));else{let _=i?r.read(St):null,R=!_&&ue(g)?r.read(gt):null;if(_)m.push({type:"Nth",value:_,start:f,end:r.index});else if(R)m.push({type:"Percentage",value:R,start:f,end:r.index});else if(Rn(a,f)===0){let G=I(r);m.push(yn(r,f,G))}}let x=r.index;q(r,!1);let E=r.match(",")||r.match(i?")":"{");if(r.index=x,E)return d.end=x,u.push(d),{type:"ComplexSelector",start:o,end:x,children:u};let b=Gt(r);if(b){if(d.selectors.length>0)d.end=x,u.push(d);if(d=An(b,b.start),r.allowWhitespace(),r.match(",")||r.match(i?")":"{"))we(r.index)}}return n(a.length)}function yn(r,i,a){let o=a,u;if(r.eat("|"))u=o,o=r.eat("*")?"*":I(r);return{type:"TypeSelector",name:o,...u!==void 0&&{namespace:u},start:i,end:r.index}}function Mt(r,i){let a=r.source;r.allowWhitespace();let o=I(r);r.allowWhitespace();let u=null,d=null,f=a.charCodeAt(r.index);if(f===gn)d="=";else if((f===_n||f===Ot||f===Et||f===de||f===ln)&&a.charCodeAt(r.index+1)===gn)d=a.slice(r.index,r.index+2);if(d)r.index+=d.length,r.allowWhitespace(),u=Vt(r);r.allowWhitespace();let g=r.index;while(Ln(a.charCodeAt(r.index)))r.index++;let m=r.index>g?a.slice(g,r.index):null;return r.allowWhitespace(),r.eat("]",!0),{type:"AttributeSelector",start:i,end:r.index,name:o,matcher:d,value:u,flags:m}}function Rn(r,i){let a=r.charCodeAt(i);if(a===vt||a===_n||a===Nt)return 1;if(a===ln&&r.charCodeAt(i+1)===ln)return 2;return 0}function Gt(r){let i=r.index;r.allowWhitespace();let a=r.index,o=Rn(r.source,a);if(o>0){r.index+=o;let u=r.index;return r.allowWhitespace(),{type:"Combinator",name:r.source.slice(a,u),start:a,end:u}}if(r.index!==i)return{type:"Combinator",name:" ",start:i,end:r.index};return null}function Nn(r){let i=r.index;r.eat("{",!0);let a=[];while(r.index<r.source.length){if(q(r,!0),r.match("}"))break;a.push(qt(r))}return r.eat("}",!0),{type:"Block",start:i,end:r.index,children:a}}function qt(r){if(r.match("@"))return Pn(r);let i=r.index;cn(r,!1);let a=r.source.charCodeAt(r.index);return r.index=i,a===bn?kn(r):Ut(r)}function Ut(r){let{source:i,index:a}=r;if(a>=i.length)n(i.length);let o=a;while(o<i.length){let m=i.charCodeAt(o);if(m===on||s(m))break;o++}let u=i.slice(a,o);r.index=o,r.allowWhitespace(),r.eat(":");let d=r.index;r.allowWhitespace();let f=cn(r,!0);if(!f&&!u.startsWith("--"))Ee({start:a,end:d});let g=r.index;if(!r.match("}"))r.eat(";",!0);return{type:"Declaration",start:a,end:g,property:u,value:f}}function cn(r,i){let a=r.source,o=a.length,u="",d=r.index,f=null,g=!1,m=!1,x=W,E=r.index;while(E<o){let b=a.charCodeAt(E);if(g){g=!1,E++;continue}if(b===sn){g=!0,E++;continue}if(b===x)x=W;else if(b===_t)m=!1;else if(x===W&&(b===Tn||b===En))x=b;else if(b===bt){if($t(a,u,d,E))m=!0}else if((b===wt||b===bn||b===Dt)&&!m&&x===W){if(r.index=E,!i)return"";if(u+=a.slice(d,E),f){let _=u.length-u.trimStart().length;for(let R of f)R.position=Math.max(0,(R.position??0)-_)}return u.trim()}else if(b===Cn&&!m&&x===W&&a.charCodeAt(E+1)===de){u+=a.slice(d,E),r.index=E;let _=Bn(r);if(i)_.position=u.length,se.push(_),f??=[],f.push(_);E=r.index,d=E;continue}E++}return r.index=o,n(o)}function $t(r,i,a,o){if(o-a>=3)return r.charCodeAt(o-3)===117&&r.charCodeAt(o-2)===114&&r.charCodeAt(o-1)===108;return(i+r.slice(a,o)).endsWith("url")}function Vt(r){let i=r.source,a=W;if(r.eat('"'))a=Tn;else if(r.eat("'"))a=En;let o=r.index,u=!1,d=o;while(d<i.length){let f=i.charCodeAt(d);if(u)u=!1;else if(f===sn)u=!0;else if(a===W?f===Lt||s(f):f===a)return r.index=a===W?d:d+1,i.slice(o,d).trim();d++}return r.index=d,n(i.length)}function I(r){let{source:i,index:a}=r,o=i.charCodeAt(a);if(ue(o)||o===Pt&&ue(i.charCodeAt(a+1)))ne(a);let u="",d=a,f=a;while(f<i.length){let g=i.charCodeAt(f);if(g===sn){u+=i.slice(d,f),r.index=f;let m=r.matchRegex(At);if(m){let x=String.fromCodePoint(Number.parseInt(m.slice(1),16));u+=x==="\\"?"\\\\":x,f+=m.length}else u+=`\\${i[f+1]}`,f+=2;d=f}else if(g>=160||jt(g))f++;else break}if(u+=i.slice(d,f),r.index=f,u==="")ne(a);return u}function q(r,i){let a=r.source;r.allowWhitespace();for(;;){let o=a.charCodeAt(r.index);if(o===Cn&&a.charCodeAt(r.index+1)===de){let u=Bn(r);if(i)se.push(u)}else if(o===Rt&&r.eat("<!--"))r.readUntil("-->"),r.eat("-->",!0);else break;r.allowWhitespace()}}function Bn(r){let i=r.index;r.eat("/*",!0);let a=r.readUntil("*/");return r.eat("*/",!0),{type:"CSSComment",value:a,start:i,end:r.index}}function ue(r){return r>=48&&r<=57}function Ln(r){return r>=65&&r<=90||r>=97&&r<=122}function jt(r){return Ln(r)||ue(r)||r===95||r===45}var an=/<\/textarea(\s[^>]*)?>/iy,Ht=/^![a-zA-Z]+$/,Xt=/^[a-zA-Z][a-zA-Z0-9]*:[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$/,zt=/^[a-zA-Z][a-zA-Z0-9]*(-[a-zA-Z0-9.\-_\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u{10000}-\u{EFFFF}]*)?$/u,un="\\u200C\\u200D",Zt=new RegExp(`^(?:\\p{Lu}[$${un}\\p{ID_Continue}.]*|\\p{ID_Start}[$${un}\\p{ID_Continue}]*(?:\\.[$${un}\\p{ID_Continue}]+)+)$`,"u"),Kt=new Map([["use","UseDirective"],["animate","AnimateDirective"],["bind","BindDirective"],["class","ClassDirective"],["style","StyleDirective"],["on","OnDirective"],["let","LetDirective"],["in","TransitionDirective"],["out","TransitionDirective"],["transition","TransitionDirective"]]),pn=new Map([["svelte:head",["SvelteHead",!0]],["svelte:options",["SvelteOptions",!0]],["svelte:window",["SvelteWindow",!0]],["svelte:document",["SvelteDocument",!0]],["svelte:body",["SvelteBody",!0]],["svelte:element",["SvelteElement",!1]],["svelte:component",["SvelteComponent",!1]],["svelte:self",["SvelteSelf",!1]],["svelte:fragment",["SvelteFragment",!1]],["svelte:boundary",["SvelteBoundary",!1]]]),On=[...pn.keys()],Qt=`${On.slice(0,-1).join(", ")} or ${On.at(-1)}`,Yt=62,Dn=123;function fe(r,i){let a=r.index;if(a>=r.source.length)n(r.source.length);let o=v(r.source,a,i);return r.index=o,{name:r.source.slice(a,o),start:a,end:o,loc:r.sourceLocation(a,o)}}var H=(r,i,a,o=a)=>({start:r,end:i,type:"Text",raw:a,data:o});function Jt(r){let i=r.charCodeAt(0);if(i>=97&&i<=122&&!r.includes("."))return!1;return Zt.test(r)}function er(r){let i=!0;for(let a=0;a<r.length&&i;a++){let o=r.charCodeAt(a);i=o>=97&&o<=122||a>0&&o>=48&&o<=57}return i&&r.length>0||Ht.test(r)||Xt.test(r)||zt.test(r)}function Wn(r,i){for(let a=r.length-1;a>=0;a--){let o=i(r[a]);if(o!==void 0)return o}return!1}function nr(r,i,a){let o=pn.get(i);if(o)return o[0];if(a)return"Component";if(i==="title"){if(Wn(r.stack,({type:d})=>{if(d==="SvelteHead")return!0;return d==="RegularElement"||d==="Component"?!1:void 0}))return"TitleElement"}if(i==="slot"){if(!Wn(r.stack,(d)=>d.type==="RegularElement"&&d.attributes.some((f)=>f.type==="Attribute"&&f.name==="shadowrootmode")?!0:void 0))return"SlotElement"}return"RegularElement"}function X(r){let i=r.index++;if(r.eat("!--")){let a=r.readUntil("-->");r.eat("-->",!0),r.append({type:"Comment",start:i,end:r.index,data:a})}else if(r.eat("/"))tr(r,i);else ir(r,i)}function tr(r,i){let{name:a}=fe(r,!1);if(r.allowWhitespace(),r.eat(">",!0),C(a))nt(i);let o=r.current();while(!("name"in o)||o.name!==a){if(o.type!=="RegularElement"){let u=r.lastAutoClosedTag;if(u?.tag===a)Le(i,a,u.reason);Pe(i,a)}o.end=i,r.close(),o=r.current()}if(o.end=r.index,r.close(),r.stack.length<(r.lastAutoClosedTag?.depth??0))r.lastAutoClosedTag=void 0}function rr(r,i,a){return{type:r,start:i,end:-1,name:a}}function ir(r,i){let a=fe(r,!1),{name:o}=a,u=pn.get(o);if(!u&&o.startsWith("svelte:"))Ge(a,Qt);let d=Jt(o);if(!d&&!er(o))tt(a);if(u?.[1]){if(r.metaTags.has(o))Ue(i,o);if(r.current().type!=="Root")Ke(i,o);r.metaTags.add(o)}let f=rr(nr(r,o,d),i,o);if(r.loc)f.name_loc=a.loc;f.attributes=[],f.fragment={type:"Fragment",nodes:[]},r.allowWhitespace();let g=r.current();if(g.type==="RegularElement"&&B(g.name,o))g.end=i,r.close(),r.lastAutoClosedTag={tag:g.name,reason:o,depth:r.stack.length};if((o==="script"||o==="style")&&r.current().type==="Root"){let x=[];f.attributes=x,Gn(r,x,ur),lr(r,f,i,x);return}if(Gn(r,f.attributes,dr),f.type==="SvelteComponent"){let x=Fn(f);if(!x)je(i);if(!In(x.value))We(x.start);f.expression=Mn(x.value)}else if(f.type==="SvelteElement"){let x=Fn(f);if(!x)pe(i);if(x.value===!0)pe(x);f.tag=In(x.value)?Mn(x.value):ar(x.value[0])}if(!r.eat("/")&&!C(o))if(r.eat(">",!0),o==="textarea")f.fragment.nodes=Un(r,(x,E)=>(an.lastIndex=E,an.test(x)),"inside <textarea>"),r.read(an);else if(o==="script"||o==="style")f.fragment.nodes.push(or(r,`</${o}>`));else{r.open(f,f.fragment);return}else r.eat(">",!0);f.end=r.index,r.append(f)}function or(r,i){let a=r.index,o=r.source.indexOf(i,a);r.index=o===-1?r.source.length:o;let u=H(a,r.index,r.source.slice(a,r.index));return r.eat(i,!0),u}function lr(r,i,a,o){r.eat(">",!0);let u=sr(r.root.fragment.nodes,a);if(i.name==="style"){let g=vn(r,a,o);if(g.content.comment=u,r.root.css)Fe(a);r.root.css=g;return}let d=Sn(r,a,o);if(u&&r.comments)d.content.leadingComments=[{type:"Line",value:u.data}];let f=d.context==="module"?"module":"instance";if(r.root[f])De(a);r.root[f]=d}function sr(r,i){let a=r.length-1;if(a<0||r[a].end!==i)return null;for(let o=a;o>=0;o--){let u=r[o];if(u.type==="Comment")return u;if(u.type!=="Text"||u.data.trim())return null}return null}var cr=(r)=>r.type==="Attribute"&&r.name==="this";function Fn(r){let i=r.attributes.find(cr);if(i)r.attributes.splice(r.attributes.indexOf(i),1);return i}function In(r){if(r===!0)return!1;if(!Array.isArray(r))return!0;return r.length===1&&r[0].type==="ExpressionTag"}function Mn(r){return(Array.isArray(r)?r[0]:r).expression}function ar(r){if(r.type!=="Text")return r.expression;return{type:"Literal",value:r.data,raw:`'${r.raw}'`,start:r.start,end:r.end}}function Gn(r,i,a){let o=new Set;for(;;){let u=a(r);if(!u)return;let{type:d}=u;if(d==="Attribute"||d==="BindDirective"||d==="StyleDirective"||d==="ClassDirective"){let f=`${d==="BindDirective"?"Attribute":d}${u.name}`;if(o.has(f))ye(u);if(u.name!=="this")o.add(f)}i.push(u),r.allowWhitespace()}}function dn(r,i,a,o,u){return r.loc?{type:"Attribute",start:a,end:o,name:i.name,name_loc:i.loc,value:u}:{type:"Attribute",start:a,end:o,name:i.name,value:u}}function qn(r){if(l(r.source.charCodeAt(r.index)))c(r.index,"=")}function ur(r){let i=r.index,a=fe(r,!0);if(!a.name)return null;let o=!0;if(r.eat("=")){r.allowWhitespace();let{source:u}=r,d=r.index,f=-1;if(l(u.charCodeAt(d))){let x=u.indexOf(u[d],d+1);if(x!==-1)f=x+1}if(f===-1){f=d;while(f<u.length&&u.charCodeAt(f)!==Yt&&!s(u.charCodeAt(f)))f++;if(f===d)ae(d)}r.index=f;let g=l(u.charCodeAt(d))?1:0,m=u.slice(d+g,f-g);o=[H(f-m.length-g,f-g,m,S(m,!0,r.entityNames))]}return qn(r),dn(r,a,i,r.index,o)}function pr(r){let i=r.index,a=r.match("/*");if(!a&&!r.match("//"))return!1;r.index+=2;let o=r.readUntil(a?"*/":`
1
+ import{B,s,t,V,C,M,l,v,F}from"./shared-40v3xx3k.js";import{T,p,k,L,J}from"./shared-bxg3hhpk.js";import{h,y}from"./shared-zd01zsyh.js";import{e,ye,xe,ge,be,Se,ve,Ae,Te,ke,Ee,ne,we,Ce,oe,Ne,_e,Pe,Le,Q,ae,Ie,le,Re,Oe,c,$e,qe,De,Be,Ve,Me,Fe,We,je,pe,Ue,ze,Ke,Ge,He,Xe,Y,Qe,Ye,Je,ce,Ze,et,tt,it,n,rt,st,nt,P,j,A,ot,at}from"./shared-e8c239q0.js";import{S}from"./shared-k5pfyxpa.js";import{z}from"./shared-wentwa9g.js";var ct=/\r(?!\n)|[\u2028\u2029]/;function K(r,i){let a=r.codePointAt(i);if(a===void 0||!h(a,!0))return i;let o=i+(a<=65535?1:2),u=r.codePointAt(o);while(u!==void 0&&y(u,!0))o+=u<=65535?1:2,u=r.codePointAt(o);return o}class en{source;index=0;loc;lfOnly;isTypeScript;typescript;entityNames;css;script;comments;root;stack;fragments;metaTags=new Set;lastAutoClosedTag;nextAngle=-1;nextBrace=-1;constructor(r,i,a,o={}){if(this.source=r,this.loc=o.loc??!1,this.lfOnly=this.loc&&!ct.test(r),this.isTypeScript=V(r),this.typescript=a.typescript,this.isTypeScript&&!this.typescript)z();this.entityNames=a.entityNames,this.css=o.css??!0,this.script=o.script??!0,this.comments=o.comments??!0,this.root={type:"Root",start:0,end:i,css:null,js:[],options:null,fragment:{type:"Fragment",nodes:[]},comments:[]},this.stack=[this.root],this.fragments=[this.root.fragment]}match(r){if(r.length===1)return this.source.charCodeAt(this.index)===r.charCodeAt(0);return this.source.startsWith(r,this.index)}matchRegex(r){return r.lastIndex=this.index,r.exec(this.source)?.[0]??null}eat(r,i=!1){if(this.match(r))return this.index+=r.length,!0;if(i)c(this.index,r);return!1}read(r){let i=this.matchRegex(r);if(i)this.index+=i.length;return i}readUntil(r){if(this.index>=this.source.length)n(this.source.length);let i=this.source.indexOf(r,this.index),a=i===-1?this.source.length:i,o=this.source.slice(this.index,a);return this.index=a,o}allowWhitespace(){this.index=t(this.source,this.index)}requireWhitespace(){if(!s(this.source.charCodeAt(this.index)))$e(this.index);this.allowWhitespace()}eatClosingBrace(){this.allowWhitespace(),this.eat("}",!0)}sourceLocation(r,i){return this.loc?{start:p(r),end:p(i)}:void 0}readIdentifierName(){let r=this.index,i=K(this.source,r),a=this.source.slice(r,i);if(this.index=i,P.has(a))rt(r,a);let o={type:"Identifier",name:a,start:r,end:i};if(this.loc)o.loc=this.sourceLocation(r,i);return o}current(){return this.stack[this.stack.length-1]}append(r){this.fragments[this.fragments.length-1].nodes.push(r)}open(r,i){this.append(r),this.stack.push(r),this.fragments.push(i)}setFragment(r){this.fragments[this.fragments.length-1]=r}close(){this.stack.pop(),this.fragments.pop()}}var ut={"||":1,"??":1,"&&":2,"==":6,"!=":6,"===":6,"!==":6,"<":7,">":7,"<=":7,">=":7,"+":9,"-":9,"*":10,"/":10,"%":10};function nn(r,i,a,o){return{type:"Literal",start:i,end:a,value:o,raw:r.slice(i,a)}}function fn(r,i){let a=r.charCodeAt(i);if(a===34||a===39){for(let u=i+1;u<r.length;u++){let d=r.charCodeAt(u);if(d===a)return nn(r,i,u+1,r.slice(i+1,u));if(d===92||d===10||d===13)return null}return null}let o=i;for(;o<r.length;o++){let u=r.charCodeAt(o);if(u<48||u>57)break}if(o===i||a===48&&o-i>1)return null;return nn(r,i,o,Number(r.slice(i,o)))}function pt(r,i,a){let o=K(r,i);if(o===i)return fn(r,i);let u=r.slice(i,o);if(u==="true"||u==="false"||u==="null")return nn(r,i,o,u==="null"?null:u==="true");if(P.has(u))return null;let d={type:"Identifier",start:i,end:o,name:u};for(let f=o;;){let g=r.charCodeAt(f);if(g===40){let E=dt(r,f+1,a);if(!E)return null;d={type:"CallExpression",start:i,end:E.end,callee:d,arguments:E.arguments,optional:!1},f=E.end;continue}let m,x;if(g===46){if(x=K(r,f+1),x===f+1)return null;m={type:"Identifier",start:f+1,end:x,name:r.slice(f+1,x)}}else if(g===91){if(m=fn(r,f+1),!m||r.charCodeAt(m.end)!==93)return null;x=m.end+1}else return d;d={type:"MemberExpression",start:i,end:x,object:d,property:m,computed:g===91,optional:!1},f=x}}function dt(r,i,a){let o=[],u=t(r,i);if(r.charCodeAt(u)===41)return{arguments:o,end:u+1};for(;;){let d=ee(r,u,a);if(!d)return null;o.push(d),u=t(r,d.end);let f=r.charCodeAt(u);if(f===41)return{arguments:o,end:u+1};if(f!==44)return null;if(u=t(r,u+1),r.charCodeAt(u)===41)return null}}function rn(r,i,a){let o=r.charCodeAt(i),u=r.charCodeAt(i+1);if(!(o===33&&u!==61)&&!(o===45&&u!==45&&u!==61))return pt(r,i,a);let d=rn(r,t(r,i+1),a);if(!d)return null;return{type:"UnaryExpression",start:i,end:d.end,operator:o===33?"!":"-",prefix:!0,argument:d}}function mn(r,i,a){let o=r.charCodeAt(i),u=r.charCodeAt(i+1);switch(o){case 124:return u===124&&r.charCodeAt(i+2)!==61?"||":null;case 38:return u===38&&r.charCodeAt(i+2)!==61?"&&":null;case 63:return u===63&&r.charCodeAt(i+2)!==61?"??":null;case 61:if(u!==61)return null;return r.charCodeAt(i+2)===61?"===":"==";case 33:if(u!==61)return null;return r.charCodeAt(i+2)===61?"!==":"!=";case 60:case 62:if(a||u===o)return null;if(u===61)return o===60?"<=":">=";return o===60?"<":">";case 43:return u===43||u===61?null:"+";case 45:return u===45||u===61?null:"-";case 42:return u===42||u===61?null:"*";case 47:return u===47||u===42||u===61?null:"/";case 37:return u===61?null:"%";default:return null}}function tn(r,i,a,o){if(hn(r.charCodeAt(i.end)))return i;let u=t(r,i.end),d=mn(r,u,o);if(d===null)return i;let f=ut[d];if(f<=a)return i;let g=d==="||"||d==="&&",m=d==="??",x=rn(r,t(r,u+d.length),o);if(!x)return null;let E=tn(r,x,m?2:f,o);if(!E)return null;let b=g||m?{type:"LogicalExpression",start:i.start,end:E.end,left:i,operator:d,right:E}:{type:"BinaryExpression",start:i.start,end:E.end,left:i,operator:d,right:E};if(g||m){let _=mn(r,t(r,b.end),o);if(m?_==="||"||_==="&&":_==="??")return null}return tn(r,b,a,o)}function ee(r,i,a){let o=rn(r,i,a);if(!o)return null;let u=tn(r,o,-1,a);if(!u||hn(r.charCodeAt(u.end)))return u;let d=t(r,u.end);if(r.charCodeAt(d)!==63)return u;let f=r.charCodeAt(d+1);if(f===46||f===63)return null;let g=ee(r,t(r,d+1),a);if(!g)return null;let m=t(r,g.end);if(r.charCodeAt(m)!==58)return null;let x=ee(r,t(r,m+1),a);if(!x)return null;return{type:"ConditionalExpression",start:u.start,end:x.end,test:u,consequent:g,alternate:x}}function hn(r){return r===125||r===41||r===44||r===58}function ft(r,i){let a=t(r,i);if(a>=r.length)return!1;let o=r.charCodeAt(a);return o===125||o===41}function mt(r,i,a){let o=ee(r,i,a);return o&&ft(r,o.end)?o:null}function N(r){switch(r.loc={start:k(r.start),end:k(r.end)},r.type){case"MemberExpression":N(r.object),N(r.property);break;case"CallExpression":N(r.callee);for(let i of r.arguments)N(i);break;case"UnaryExpression":N(r.argument);break;case"BinaryExpression":case"LogicalExpression":N(r.left),N(r.right);break;case"ConditionalExpression":N(r.test),N(r.consequent),N(r.alternate);break}}function w(r){let i=!r.loc||r.lfOnly?mt(r.source,r.index,r.isTypeScript):null;if(i){if(r.index=i.end,r.loc)N(i);return i}let{node:a,end:o}=A(r,r.source,r.index);return r.index=o,a}var xn=/<\/script\s*>/g,ht=new Set(["server","client","worker","test","default"]);function Sn(r,i,a){let{source:o,index:u}=r;if(u>=o.length)n(o.length);xn.lastIndex=u;let d=xn.exec(o);if(!d)Q(o.length,"script");r.index=d.index+d[0].length;let f=r.script?j(r,o.slice(0,d.index),u):xt(u,d.index);if(f.start=u,f.loc)Object.assign(f.loc.start,k(i)),Object.assign(f.loc.end,k(r.index));else if(r.loc)f.loc={start:k(i),end:k(r.index)};let g="default";for(let m of a){if(ht.has(m.name))Me(m,m.name);if(m.name==="module"){if(m.value!==!0)Be(m,m.name);g="module"}if(m.name==="context"){let x=m.value;if(x===!0||!Array.isArray(x)||x.length!==1||x[0].type!=="Text"||x[0].data!=="module")Ve(m);g="module"}}return{type:"Script",start:i,end:r.index,context:g,content:f,attributes:a}}function xt(r,i){return{type:"Program",start:r,end:i,body:[],sourceType:"module"}}var St=/(even|odd|\+?(\d+|\d*n(\s*[+-]\s*\d+)?)|-\d*n(\s*\+\s*\d+))((?=\s*[,)])|\s+of(\s+|(?=[.#[*:&])))/y,gt=/\d+(\.\d+)?%/y,At=/\\[0-9a-fA-F]{1,6}(\r\n|\s)?/y,yt=/\s*>/y,W=-1,Tn=34,Tt=35,Et=36,Ct=38,En=39,bt=40,_t=41,de=42,vt=43,Pt=45,kt=46,Cn=47,on=58,wt=59,Rt=60,gn=61,Nt=62,Bt=91,sn=92,Lt=93,Ot=94,bn=123,ln=124,Dt=125,_n=126,se=[];function vn(r,i,a){let o=r.index;se=[];let u=r.css?Ft(r):Wt(r),d=r.index;return r.eat("</style",!0),r.read(yt),{type:"StyleSheet",start:i,end:r.index,attributes:a,children:u,comments:se,content:{start:o,end:d,styles:r.source.slice(o,d),comment:null}}}function Wt(r){return r.index=M(r.source,r.index),[]}function Ft(r){let i=[];for(;;){if(q(r,!0),r.match("</style")||r.index>=r.source.length)break;i.push(r.match("@")?Pn(r):kn(r))}return i}function Pn(r){let i=r.index;r.eat("@",!0);let a=I(r),o=cn(r,!0),u=null;if(r.match("{"))u=Nn(r);else r.eat(";",!0);return{type:"Atrule",start:i,end:r.index,name:a,prelude:o,block:u}}function kn(r){let i=r.index;return{type:"Rule",prelude:wn(r,!1),block:Nn(r),start:i,end:r.index}}function wn(r,i){let a=[];q(r,!0);let o=r.index;while(r.index<r.source.length){a.push(It(r,i));let u=r.index;if(q(r,!0),r.match(i?")":"{"))return{type:"SelectorList",start:o,end:u,children:a};r.eat(",",!0),q(r,!0)}return n(r.source.length)}function An(r,i){return{type:"RelativeSelector",combinator:r,selectors:[],start:i,end:-1}}function It(r,i){let{source:a,index:o}=r,u=[],d=An(null,r.index);while(r.index<a.length){let f=r.index,g=a.charCodeAt(f),m=d.selectors;if(g===Ct)r.index++,m.push({type:"NestingSelector",name:"&",start:f,end:r.index});else if(g===de)r.index++,m.push(yn(r,f,"*"));else if(g===Tt)r.index++,m.push({type:"IdSelector",name:I(r),start:f,end:r.index});else if(g===kt)r.index++,m.push({type:"ClassSelector",name:I(r),start:f,end:r.index});else if(g===on){let _=a.charCodeAt(f+1)===on;r.index+=_?2:1;let R=I(r),G=null;if(r.eat("("))G=wn(r,!0),r.eat(")",!0);if(_)m.push({type:"PseudoElementSelector",name:R,start:f,end:r.index,...G&&{args:G}});else m.push({type:"PseudoClassSelector",name:R,args:G,start:f,end:r.index})}else if(g===Bt)r.index++,m.push(Mt(r,f));else{let _=i?r.read(St):null,R=!_&&ue(g)?r.read(gt):null;if(_)m.push({type:"Nth",value:_,start:f,end:r.index});else if(R)m.push({type:"Percentage",value:R,start:f,end:r.index});else if(Rn(a,f)===0){let G=I(r);m.push(yn(r,f,G))}}let x=r.index;q(r,!1);let E=r.match(",")||r.match(i?")":"{");if(r.index=x,E)return d.end=x,u.push(d),{type:"ComplexSelector",start:o,end:x,children:u};let b=Gt(r);if(b){if(d.selectors.length>0)d.end=x,u.push(d);if(d=An(b,b.start),r.allowWhitespace(),r.match(",")||r.match(i?")":"{"))we(r.index)}}return n(a.length)}function yn(r,i,a){let o=a,u;if(r.eat("|"))u=o,o=r.eat("*")?"*":I(r);return{type:"TypeSelector",name:o,...u!==void 0&&{namespace:u},start:i,end:r.index}}function Mt(r,i){let a=r.source;r.allowWhitespace();let o=I(r);r.allowWhitespace();let u=null,d=null,f=a.charCodeAt(r.index);if(f===gn)d="=";else if((f===_n||f===Ot||f===Et||f===de||f===ln)&&a.charCodeAt(r.index+1)===gn)d=a.slice(r.index,r.index+2);if(d)r.index+=d.length,r.allowWhitespace(),u=Vt(r);r.allowWhitespace();let g=r.index;while(Ln(a.charCodeAt(r.index)))r.index++;let m=r.index>g?a.slice(g,r.index):null;return r.allowWhitespace(),r.eat("]",!0),{type:"AttributeSelector",start:i,end:r.index,name:o,matcher:d,value:u,flags:m}}function Rn(r,i){let a=r.charCodeAt(i);if(a===vt||a===_n||a===Nt)return 1;if(a===ln&&r.charCodeAt(i+1)===ln)return 2;return 0}function Gt(r){let i=r.index;r.allowWhitespace();let a=r.index,o=Rn(r.source,a);if(o>0){r.index+=o;let u=r.index;return r.allowWhitespace(),{type:"Combinator",name:r.source.slice(a,u),start:a,end:u}}if(r.index!==i)return{type:"Combinator",name:" ",start:i,end:r.index};return null}function Nn(r){let i=r.index;r.eat("{",!0);let a=[];while(r.index<r.source.length){if(q(r,!0),r.match("}"))break;a.push(qt(r))}return r.eat("}",!0),{type:"Block",start:i,end:r.index,children:a}}function qt(r){if(r.match("@"))return Pn(r);let i=r.index;cn(r,!1);let a=r.source.charCodeAt(r.index);return r.index=i,a===bn?kn(r):Ut(r)}function Ut(r){let{source:i,index:a}=r;if(a>=i.length)n(i.length);let o=a;while(o<i.length){let m=i.charCodeAt(o);if(m===on||s(m))break;o++}let u=i.slice(a,o);r.index=o,r.allowWhitespace(),r.eat(":");let d=r.index;r.allowWhitespace();let f=cn(r,!0);if(!f&&!u.startsWith("--"))Ee({start:a,end:d});let g=r.index;if(!r.match("}"))r.eat(";",!0);return{type:"Declaration",start:a,end:g,property:u,value:f}}function cn(r,i){let a=r.source,o=a.length,u="",d=r.index,f=null,g=!1,m=!1,x=W,E=r.index;while(E<o){let b=a.charCodeAt(E);if(g){g=!1,E++;continue}if(b===sn){g=!0,E++;continue}if(b===x)x=W;else if(b===_t)m=!1;else if(x===W&&(b===Tn||b===En))x=b;else if(b===bt){if($t(a,u,d,E))m=!0}else if((b===wt||b===bn||b===Dt)&&!m&&x===W){if(r.index=E,!i)return"";if(u+=a.slice(d,E),f){let _=u.length-u.trimStart().length;for(let R of f)R.position=Math.max(0,(R.position??0)-_)}return u.trim()}else if(b===Cn&&!m&&x===W&&a.charCodeAt(E+1)===de){u+=a.slice(d,E),r.index=E;let _=Bn(r);if(i)_.position=u.length,se.push(_),f??=[],f.push(_);E=r.index,d=E;continue}E++}return r.index=o,n(o)}function $t(r,i,a,o){if(o-a>=3)return r.charCodeAt(o-3)===117&&r.charCodeAt(o-2)===114&&r.charCodeAt(o-1)===108;return(i+r.slice(a,o)).endsWith("url")}function Vt(r){let i=r.source,a=W;if(r.eat('"'))a=Tn;else if(r.eat("'"))a=En;let o=r.index,u=!1,d=o;while(d<i.length){let f=i.charCodeAt(d);if(u)u=!1;else if(f===sn)u=!0;else if(a===W?f===Lt||s(f):f===a)return r.index=a===W?d:d+1,i.slice(o,d).trim();d++}return r.index=d,n(i.length)}function I(r){let{source:i,index:a}=r,o=i.charCodeAt(a);if(ue(o)||o===Pt&&ue(i.charCodeAt(a+1)))ne(a);let u="",d=a,f=a;while(f<i.length){let g=i.charCodeAt(f);if(g===sn){u+=i.slice(d,f),r.index=f;let m=r.matchRegex(At);if(m){let x=String.fromCodePoint(Number.parseInt(m.slice(1),16));u+=x==="\\"?"\\\\":x,f+=m.length}else u+=`\\${i[f+1]}`,f+=2;d=f}else if(g>=160||jt(g))f++;else break}if(u+=i.slice(d,f),r.index=f,u==="")ne(a);return u}function q(r,i){let a=r.source;r.allowWhitespace();for(;;){let o=a.charCodeAt(r.index);if(o===Cn&&a.charCodeAt(r.index+1)===de){let u=Bn(r);if(i)se.push(u)}else if(o===Rt&&r.eat("<!--"))r.readUntil("-->"),r.eat("-->",!0);else break;r.allowWhitespace()}}function Bn(r){let i=r.index;r.eat("/*",!0);let a=r.readUntil("*/");return r.eat("*/",!0),{type:"CSSComment",value:a,start:i,end:r.index}}function ue(r){return r>=48&&r<=57}function Ln(r){return r>=65&&r<=90||r>=97&&r<=122}function jt(r){return Ln(r)||ue(r)||r===95||r===45}var an=/<\/textarea(\s[^>]*)?>/iy,Ht=/^![a-zA-Z]+$/,Xt=/^[a-zA-Z][a-zA-Z0-9]*:[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$/,zt=/^[a-zA-Z][a-zA-Z0-9]*(-[a-zA-Z0-9.\-_\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u{10000}-\u{EFFFF}]*)?$/u,un="\\u200C\\u200D",Zt=new RegExp(`^(?:\\p{Lu}[$${un}\\p{ID_Continue}.]*|\\p{ID_Start}[$${un}\\p{ID_Continue}]*(?:\\.[$${un}\\p{ID_Continue}]+)+)$`,"u"),Kt=new Map([["use","UseDirective"],["animate","AnimateDirective"],["bind","BindDirective"],["class","ClassDirective"],["style","StyleDirective"],["on","OnDirective"],["let","LetDirective"],["in","TransitionDirective"],["out","TransitionDirective"],["transition","TransitionDirective"]]),pn=new Map([["svelte:head",["SvelteHead",!0]],["svelte:options",["SvelteOptions",!0]],["svelte:window",["SvelteWindow",!0]],["svelte:document",["SvelteDocument",!0]],["svelte:body",["SvelteBody",!0]],["svelte:element",["SvelteElement",!1]],["svelte:component",["SvelteComponent",!1]],["svelte:self",["SvelteSelf",!1]],["svelte:fragment",["SvelteFragment",!1]],["svelte:boundary",["SvelteBoundary",!1]]]),On=[...pn.keys()],Qt=`${On.slice(0,-1).join(", ")} or ${On.at(-1)}`,Yt=62,Dn=123;function fe(r,i){let a=r.index;if(a>=r.source.length)n(r.source.length);let o=v(r.source,a,i);return r.index=o,{name:r.source.slice(a,o),start:a,end:o,loc:r.sourceLocation(a,o)}}var H=(r,i,a,o=a)=>({start:r,end:i,type:"Text",raw:a,data:o});function Jt(r){let i=r.charCodeAt(0);if(i>=97&&i<=122&&!r.includes("."))return!1;return Zt.test(r)}function er(r){let i=!0;for(let a=0;a<r.length&&i;a++){let o=r.charCodeAt(a);i=o>=97&&o<=122||a>0&&o>=48&&o<=57}return i&&r.length>0||Ht.test(r)||Xt.test(r)||zt.test(r)}function Wn(r,i){for(let a=r.length-1;a>=0;a--){let o=i(r[a]);if(o!==void 0)return o}return!1}function nr(r,i,a){let o=pn.get(i);if(o)return o[0];if(a)return"Component";if(i==="title"){if(Wn(r.stack,({type:d})=>{if(d==="SvelteHead")return!0;return d==="RegularElement"||d==="Component"?!1:void 0}))return"TitleElement"}if(i==="slot"){if(!Wn(r.stack,(d)=>d.type==="RegularElement"&&d.attributes.some((f)=>f.type==="Attribute"&&f.name==="shadowrootmode")?!0:void 0))return"SlotElement"}return"RegularElement"}function X(r){let i=r.index++;if(r.eat("!--")){let a=r.readUntil("-->");r.eat("-->",!0),r.append({type:"Comment",start:i,end:r.index,data:a})}else if(r.eat("/"))tr(r,i);else ir(r,i)}function tr(r,i){let{name:a}=fe(r,!1);if(r.allowWhitespace(),r.eat(">",!0),C(a))nt(i);let o=r.current();while(!("name"in o)||o.name!==a){if(o.type!=="RegularElement"){let u=r.lastAutoClosedTag;if(u?.tag===a)Le(i,a,u.reason);Pe(i,a)}o.end=i,r.close(),o=r.current()}if(o.end=r.index,r.close(),r.stack.length<(r.lastAutoClosedTag?.depth??0))r.lastAutoClosedTag=void 0}function rr(r,i,a){return{type:r,start:i,end:-1,name:a}}function ir(r,i){let a=fe(r,!1),{name:o}=a,u=pn.get(o);if(!u&&o.startsWith("svelte:"))Ge(a,Qt);let d=Jt(o);if(!d&&!er(o))tt(a);if(u?.[1]){if(r.metaTags.has(o))Ue(i,o);if(r.current().type!=="Root")Ke(i,o);r.metaTags.add(o)}let f=rr(nr(r,o,d),i,o);if(r.loc)f.name_loc=a.loc;f.attributes=[],f.fragment={type:"Fragment",nodes:[]},r.allowWhitespace();let g=r.current();if(g.type==="RegularElement"&&B(g.name,o))g.end=i,r.close(),r.lastAutoClosedTag={tag:g.name,reason:o,depth:r.stack.length};if((o==="script"||o==="style")&&r.current().type==="Root"){let x=[];f.attributes=x,Gn(r,x,ur),lr(r,f,i,x);return}if(Gn(r,f.attributes,dr),f.type==="SvelteComponent"){let x=Fn(f);if(!x)je(i);if(!In(x.value))We(x.start);f.expression=Mn(x.value)}else if(f.type==="SvelteElement"){let x=Fn(f);if(!x)pe(i);if(x.value===!0)pe(x);f.tag=In(x.value)?Mn(x.value):ar(x.value[0])}if(!r.eat("/")&&!C(o))if(r.eat(">",!0),o==="textarea")f.fragment.nodes=Un(r,(x,E)=>(an.lastIndex=E,an.test(x)),"inside <textarea>"),r.read(an);else if(o==="script"||o==="style")f.fragment.nodes.push(or(r,`</${o}>`));else{r.open(f,f.fragment);return}else r.eat(">",!0);f.end=r.index,r.append(f)}function or(r,i){let a=r.index,o=r.source.indexOf(i,a);r.index=o===-1?r.source.length:o;let u=H(a,r.index,r.source.slice(a,r.index));return r.eat(i,!0),u}function lr(r,i,a,o){r.eat(">",!0);let u=sr(r.root.fragment.nodes,a);if(i.name==="style"){let g=vn(r,a,o);if(g.content.comment=u,r.root.css)Fe(a);r.root.css=g;return}let d=Sn(r,a,o);if(u&&r.comments)d.content.leadingComments=[{type:"Line",value:u.data}];let f=d.context==="module"?"module":"instance";if(r.root[f])De(a);r.root[f]=d}function sr(r,i){let a=r.length-1;if(a<0||r[a].end!==i)return null;for(let o=a;o>=0;o--){let u=r[o];if(u.type==="Comment")return u;if(u.type!=="Text"||u.data.trim())return null}return null}var cr=(r)=>r.type==="Attribute"&&r.name==="this";function Fn(r){let i=r.attributes.find(cr);if(i)r.attributes.splice(r.attributes.indexOf(i),1);return i}function In(r){if(r===!0)return!1;if(!Array.isArray(r))return!0;return r.length===1&&r[0].type==="ExpressionTag"}function Mn(r){return(Array.isArray(r)?r[0]:r).expression}function ar(r){if(r.type!=="Text")return r.expression;return{type:"Literal",value:r.data,raw:`'${r.raw}'`,start:r.start,end:r.end}}function Gn(r,i,a){let o=new Set;for(;;){let u=a(r);if(!u)return;let{type:d}=u;if(d==="Attribute"||d==="BindDirective"||d==="StyleDirective"||d==="ClassDirective"){let f=`${d==="BindDirective"?"Attribute":d}${u.name}`;if(o.has(f))ye(u);if(u.name!=="this")o.add(f)}i.push(u),r.allowWhitespace()}}function dn(r,i,a,o,u){return r.loc?{type:"Attribute",start:a,end:o,name:i.name,name_loc:i.loc,value:u}:{type:"Attribute",start:a,end:o,name:i.name,value:u}}function qn(r){if(l(r.source.charCodeAt(r.index)))c(r.index,"=")}function ur(r){let i=r.index,a=fe(r,!0);if(!a.name)return null;let o=!0;if(r.eat("=")){r.allowWhitespace();let{source:u}=r,d=r.index,f=-1;if(l(u.charCodeAt(d))){let x=u.indexOf(u[d],d+1);if(x!==-1)f=x+1}if(f===-1){f=d;while(f<u.length&&u.charCodeAt(f)!==Yt&&!s(u.charCodeAt(f)))f++;if(f===d)ae(d)}r.index=f;let g=l(u.charCodeAt(d))?1:0,m=u.slice(d+g,f-g);o=[H(f-m.length-g,f-g,m,S(m,!0,r.entityNames))]}return qn(r),dn(r,a,i,r.index,o)}function pr(r){let i=r.index,a=r.match("/*");if(!a&&!r.match("//"))return!1;r.index+=2;let o=r.readUntil(a?"*/":`
2
2
  `);if(a)r.eat("*/");let u={type:a?"Block":"Line",start:i,end:r.index,value:o},d=r.sourceLocation(i,r.index);if(d)u.loc=d;if(r.comments)r.root.comments.push(u);return!0}function dr(r){while(pr(r))r.allowWhitespace();let i=r.index;if(r.eat("{"))return fr(r,i);let a=fe(r,!0);if(!a.name)return null;let o=r.index;r.allowWhitespace();let u=!0;if(r.eat("=")){if(r.allowWhitespace(),r.match("/>"))u=[H(r.index,r.index+1,"/")],r.index++;else u=xr(r);o=r.index}else qn(r);let d=a.name.indexOf(":"),f=d>0?Kt.get(a.name.slice(0,d)):void 0;return f?hr(r,f,a,d,i,o,u):dn(r,a,i,o,u)}function fr(r,i){if(r.allowWhitespace(),r.eat("@attach")){r.requireWhitespace();let u=w(r);return r.eatClosingBrace(),{type:"AttachTag",start:i,end:r.index,expression:u}}if(r.eat("...")){let u=w(r);return r.eatClosingBrace(),{type:"SpreadAttribute",start:i,end:r.index,expression:u}}let a=r.readIdentifierName();if(a.name==="")xe(i);r.eatClosingBrace();let o={type:"ExpressionTag",start:a.start,end:a.end,expression:a};return dn(r,a,i,r.index,o)}function mr(r){if(r===!0)return;return Array.isArray(r)?r[0]:r}function hr(r,i,a,o,u,d,f){let[g,...m]=a.name.slice(o+1).split("|");if(g==="")_e({start:u,end:u+o+1},a.name);let x={start:u,end:d,type:i,name:g};if(r.loc)x.name_loc=a.loc;if(i==="StyleDirective")return x.modifiers=m,x.value=f,x;let E=mr(f);if(E&&(Array.isArray(f)&&f.length>1||E.type==="Text"))Ne(E.start);if(x.expression=E?.expression??null,x.modifiers=m,i==="TransitionDirective"){let b=a.name.slice(0,o);x.intro=b!=="out",x.outro=b!=="in"}if((i==="BindDirective"||i==="ClassDirective")&&!x.expression)x.expression={start:u+o+1,end:d,type:"Identifier",name:g};return x}function xr(r){let i=r.source.charCodeAt(r.index),a=l(i);if(a){if(r.index++,r.source.charCodeAt(r.index)===i)return r.index++,[H(r.index-1,r.index-1,"")]}let o;try{o=Un(r,a?(u,d)=>u.charCodeAt(d)===i:F,"in attribute value",a?i:void 0)}catch(u){let d=u instanceof e?u.position?.[0]:void 0;if(u instanceof e&&u.code==="js_parse_error"&&d!==void 0&&r.source.startsWith("/>",d-1))r.index=d,c(d,a?String.fromCharCode(i):"}");throw u}if(a)r.index++;else if(o.length===0)ae(r.index);return a||o.length>1||o[0].type==="Text"?o:o[0]}function Un(r,i,a,o){let{source:u}=r,d=[],f=r.index,g=(m)=>{if(m<=f)return;let x=u.slice(f,m);d.push(H(f,m,x,S(x,!0,r.entityNames)))};while(r.index<u.length){let m=r.index;if(i(u,m))return g(m),d;if(u.charCodeAt(m)!==Dn){if(r.index++,o!==void 0)while(r.index<u.length&&u.charCodeAt(r.index)!==Dn&&u.charCodeAt(r.index)!==o)r.index++;continue}r.index++;let x=u.charCodeAt(r.index);if(x===35||x===64){r.index++;let b=r.index;while(r.index<u.length&&u.charCodeAt(r.index)>=97&&u.charCodeAt(r.index)<=122)r.index++;let _=u.slice(b,r.index);(x===35?ve:it)(m,_,a)}g(m),r.allowWhitespace();let E=w(r);r.eatClosingBrace(),d.push({type:"ExpressionTag",start:m,end:r.index,expression:E}),f=r.index}n(u.length)}var Sr=new Map([["html","html"],["svg","svg"],["mathml","mathml"],["http://www.w3.org/2000/svg","svg"],["http://www.w3.org/1998/Math/MathML","mathml"]]),gr=new Map([["type",(r,i)=>{if(i!=="String"&&i!=="Number"&&i!=="Boolean"&&i!=="Array"&&i!=="Object")return!1;return r.type=i,!0}],["reflect",(r,i)=>{if(typeof i!=="boolean")return!1;return r.reflect=i,!0}],["attribute",(r,i)=>{if(typeof i!=="string")return!1;return r.attribute=i,!0}]]),$n="[a-z0-9_.\\xB7\\xC0-\\xD6\\xD8-\\xF6\\xF8-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u203F-\\u2040\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\u{10000}-\\u{EFFFF}-]",Ar=new RegExp(`^[a-z]${$n}*-${$n}*$`,"u"),yr=new Set("annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" ")),me=(r)=>(i,a)=>{let o=he(a);if(typeof o!=="boolean")Y(a,"true or false");i[r]=o},Tr=new Map([["runes",me("runes")],["immutable",me("immutable")],["preserveWhitespace",me("preserveWhitespace")],["accessors",me("accessors")],["namespace",(r,i)=>{let a=Sr.get(he(i));if(!a)Y(i,'"html", "mathml" or "svg"');r.namespace=a}],["css",(r,i)=>{if(he(i)!=="injected")Y(i,'"injected"');r.css="injected"}],["tag",(r,i)=>He(i)],["customElement",(r,i)=>{let a=Cr(i);if(a)r.customElement=a}]]);function jn(r){let i=[],a={start:r.start,end:r.end,attributes:i};for(let o of r.attributes){if(o.type!=="Attribute")Xe(o);i.push(o);let u=Tr.get(o.name);if(!u)et(o,o.name);u(a,o)}return a}function he({value:r}){if(r===!0)return!0;let i=Array.isArray(r)?r:[r];if(i.length===0)return!0;if(i.length>1)return null;let[a]=i;if(a.type==="Text")return a.data;return a.expression.type==="Literal"?a.expression.value:null}function Vn(r,i){if(typeof i!=="string")ce(r);if(!i)return;if(!Ar.test(i))ce(r);if(yr.has(i))Ze(r)}function Er(r,i){let a=new Map;for(let o of r.properties){if(o.type!=="Property"||o.computed||o.key.type!=="Identifier")i();if(!a.has(o.key.name))a.set(o.key.name,o.value)}return a}function Cr(r){let i=()=>Qe(r);if(r.value===!0)i();let a=Array.isArray(r.value)?r.value[0]:r.value;if(a.type==="Text"){let E=he(r);return Vn(r,E),{tag:E}}let{expression:o}=a;if(o.type!=="ObjectExpression"){if(o.type==="Literal"&&o.value===null)return;i()}let u=Er(o,i),d={},f=u.get("tag");if(f){let E=f.type==="Literal"?f.value:void 0;Vn(null,E),d.tag=E}let g=u.get("props");if(g){let E=()=>Ye(r);if(g.type!=="ObjectExpression")E();d.props={};for(let b of g.properties){if(b.type!=="Property"||b.computed||b.key.type!=="Identifier"||b.value.type!=="ObjectExpression")E();let _={};d.props[b.key.name]=_;for(let R of b.value.properties){if(R.type!=="Property"||R.computed||R.key.type!=="Identifier"||R.value.type!=="Literal")E();if(!gr.get(R.key.name)?.(_,R.value.value))E()}}}let m=u.get("shadow");if(m)if(m.type==="ObjectExpression")d.shadow=m;else if(m.type==="Literal"&&(m.value==="open"||m.value==="none"))d.shadow=m.value;else Je(r);let x=u.get("extend");if(x)d.extend=x;return d}var br={"{":"}","(":")","[":"]"};function Z(r,i,a=br){let o=Object.values(a),u=[],d=i;while(d<r.length){let f=r[d++];if(f==="'"||f==='"'||f==="`")d=_r(r,d,f);else if(Object.hasOwn(a,f))u.push(f);else if(o.includes(f)){let g=a[u.pop()??""];if(f!==g)c(d-1,g);if(u.length===0)return d}}n(r.length)}function _r(r,i,a){let o=i;while(o<r.length){let u=r[o++];if(u===a)return o;if(u==="\\")o++;else if(a==="`"&&u==="$"&&r[o]==="{")o=Z(r,o)}st(i)}var vr=/\?\s*:/g;function U(r){let i=r.index,a=r.readIdentifierName();if(a.name!==""){let f=Hn(r);return{...a,typeAnnotation:f}}let o=r.source[r.index];if(o!=="{"&&o!=="[")Re(r.index);r.index=Z(r.source,i);let u=ot(r,r.source.slice(0,r.index),i)??Pr(r,i);J(u,"ObjectPattern","ArrayPattern");let d=Hn(r);if(u.typeAnnotation=d,d)u.end=d.end;return u}function Pr(r,i){let{node:a}=A(r,`${r.source.slice(0,r.index)} = 1`,i);return J(a,"AssignmentExpression"),a.left}function Hn(r){let i=r.index;if(r.allowWhitespace(),!r.eat(":")){r.index=i;return}let a="_ as ",o=r.index-a.length,u=r.source.slice(0,o)+a+r.source.slice(r.index).replace(vr,":"),d=A(r,u,o).node;if(d.type==="AssignmentExpression"){let f=d.right.start;while(u[f]!=="=")f-=1;d=A(r,u.slice(0,f),o).node}if(d.type==="SequenceExpression")d=d.expressions[0];return J(d,"TSAsExpression"),r.index=d.end,{type:"TSTypeAnnotation",start:i,end:r.index,typeAnnotation:d.typeAnnotation}}var kr=/\s*}/y,wr={IfBlock:"if",EachBlock:"each",KeyBlock:"key",AwaitBlock:"await",SnippetBlock:"snippet"},O=()=>({type:"Fragment",nodes:[]});function zn(r,i){if(r.eat("if")){r.requireWhitespace();let a=w(r);r.eatClosingBrace();let o=O();r.open({type:"IfBlock",elseif:!1,start:i,end:-1,test:a,consequent:o,alternate:null},o)}else if(r.eat("each"))Nr(r,i);else if(r.eat("await")){r.requireWhitespace();let a=w(r);r.allowWhitespace();let o={type:"AwaitBlock",start:i,end:-1,expression:a,value:null,error:null,pending:null,then:null,catch:null},u=O();if(r.eat("then"))o.value=Xn(r),o.then=u;else if(r.eat("catch"))o.error=Xn(r),o.catch=u;else o.pending=u;r.eat("}",!0),r.open(o,u)}else if(r.eat("key")){r.requireWhitespace();let a=w(r);r.eatClosingBrace();let o=O();r.open({type:"KeyBlock",start:i,end:-1,expression:a,fragment:o},o)}else if(r.eat("snippet"))Br(r,i);else Ie(r.index)}function Xn(r){if(r.matchRegex(kr))return r.allowWhitespace(),null;r.requireWhitespace();let i=U(r);return r.allowWhitespace(),i}function Rr(r){let i={assertion:null},a=r.end,o=(d)=>{if(d.type==="TSAsExpression"&&d.end===r.end)return i.assertion=d,a=d.expression.end,d.expression;return L(d,o),d},u=r;if(r.type==="TSAsExpression")i.assertion=r,u=r.expression,a=u.end;else L(r,o);return u.end=a,{expression:u,assertion:i.assertion}}function Nr(r,i){r.requireWhitespace();let a=r.source,o;while(!o)try{o=w(r)}catch(m){let E=((m instanceof e?m.position:void 0)?.[0]??i)-2;while(E>i&&r.source.slice(E,E+2)!=="as")E-=1;if(E<=i)throw r.source=a,m;r.source=a.slice(0,E)}if(r.source=a,r.allowWhitespace(),!r.match("as")){if(o.type==="SequenceExpression")o=o.expressions[0];let m=Rr(o);if(o=m.expression,m.assertion){let x=m.assertion.typeAnnotation.start-2;while(r.source.slice(x,x+2)!=="as")x-=1;r.index=x}}let u=null,d,f;if(r.eat("as"))r.requireWhitespace(),u=U(r);else r.index=o.end;if(r.allowWhitespace(),r.eat(",")){if(r.allowWhitespace(),d=r.readIdentifierName().name,!d)le(r.index);r.allowWhitespace()}if(r.eat("("))r.allowWhitespace(),f=w(r),r.allowWhitespace(),r.eat(")",!0),r.allowWhitespace();r.eat("}",!0);let g=O();r.open({type:"EachBlock",start:i,end:-1,expression:o,body:g,context:u,index:d,key:f},g)}function Br(r,i){r.requireWhitespace();let a=r.readIdentifierName();if(a.name==="")le(r.index);r.allowWhitespace();let o=r.index,u;if(r.isTypeScript&&r.match("<")){let m=Z(r.source,o,{"<":">"});u=r.source.slice(o+1,m-1),r.index=m}r.allowWhitespace(),r.eat("(",!0);let d=1;while(r.index<r.source.length&&(!r.match(")")||d!==1)){if(r.match("("))d++;if(r.match(")"))d--;r.index+=1}r.eat(")",!0);let{node:f}=A(r,`${r.source.slice(0,r.index)} => {}`,o,!0);r.eatClosingBrace();let g=O();r.open({type:"SnippetBlock",start:i,end:-1,expression:a,typeParams:u,parameters:f.type==="ArrowFunctionExpression"?f.params:void 0,body:g},g)}function Zn(r,i){let a=r.index-1,o=r.current();if(o.type==="IfBlock"){if(!r.eat("else"))c(a,"{:else} or {:else if}");if(r.eat("if"))Se(a);if(r.allowWhitespace(),o.alternate=O(),r.setFragment(o.alternate),r.eat("if")){r.requireWhitespace();let u=w(r);r.eatClosingBrace();let d=O();r.open({start:i,end:-1,type:"IfBlock",elseif:!0,test:u,consequent:d,alternate:null},d)}else r.eatClosingBrace()}else if(o.type==="EachBlock"){if(!r.eat("else"))c(a,"{:else}");r.eatClosingBrace(),o.fallback=O(),r.setFragment(o.fallback)}else if(o.type==="AwaitBlock"){let u;if(r.eat("then"))u="then";else if(r.eat("catch"))u="catch";else c(a,"{:then ...} or {:catch ...}");if(o[u])ge(a,`{:${u}}`);if(!r.eat("}")){r.requireWhitespace();let f=U(r);if(u==="then")o.value=f;else o.error=f;r.eatClosingBrace()}let d=O();o[u]=d,r.setFragment(d)}else be(a)}function Kn(r){let i=r.current(),a=wr[i.type];if(!a)Te(r.index-1);r.eat(a,!0),r.eatClosingBrace();while(i.type==="IfBlock"&&i.elseif)i.end=r.index,r.close(),i=r.current();i.end=r.index,r.close()}var Lr=/\s*}/y;function Or(r){return r.type==="CallExpression"||r.type==="ChainExpression"&&r.expression.type==="CallExpression"}function Qn(r,i){if(r.eat("html")){r.requireWhitespace();let a=w(r);r.eatClosingBrace(),r.append({type:"HtmlTag",start:i,end:r.index,expression:a})}else if(r.eat("debug")){let a=[];if(!r.read(Lr)){let o=w(r),u=o.type==="SequenceExpression"?o.expressions:[o];for(let d of u){if(d.type!=="Identifier")Ce(d.start);a.push(d)}r.eatClosingBrace()}r.append({type:"DebugTag",start:i,end:r.index,identifiers:a})}else if(r.eat("const")){r.requireWhitespace();let a=U(r);r.allowWhitespace(),r.eat("=",!0),r.allowWhitespace();let o=r.index,u=w(r),d=r.index;if(u.type==="SequenceExpression"&&!r.source.slice(o,u.start).includes("("))ke(u);r.eatClosingBrace();let f={type:"VariableDeclarator",id:a,init:u,start:a.start,end:d};r.append({type:"ConstTag",start:i,end:r.index,declaration:{type:"VariableDeclaration",kind:"const",declarations:[f],start:i+2,end:r.index-1}})}else if(r.eat("render")){r.requireWhitespace();let a=w(r);if(!Or(a))qe(a);r.eatClosingBrace(),r.append({type:"RenderTag",start:i,end:r.index,expression:a})}else Oe(r.index)}var Dr=/(?:var|interface|enum)\b/y,Wr=/(?:let|const|type)\b/y;function Yn(r){let i=r.index;if(r.index+=1,r.allowWhitespace(),r.eat("#"))zn(r,i);else if(r.eat(":"))Zn(r,i);else if(r.eat("@"))Qn(r,i);else if(r.match("/")&&!r.match("/*")&&!r.match("//"))r.index+=1,Kn(r);else if(!Fr(r,i)){let a=w(r);r.eatClosingBrace(),r.append({type:"ExpressionTag",start:i,end:r.index,expression:a})}}function Fr(r,i){let a=r.index,o=r.matchRegex(Dr);if(o)oe({start:a,end:a+o.length});if(!r.matchRegex(Wr))return!1;let u=r.root.comments.length,d=at(r,r.source,a);if(d.type==="ExpressionStatement")return r.root.comments.length=u,!1;if(d.type!=="VariableDeclaration"||d.kind!=="let"&&d.kind!=="const")oe(d);return r.index=d.end,r.eatClosingBrace(),r.append({type:"DeclarationTag",start:i,end:r.index,declaration:d}),!0}function lt(r){let{source:i,index:a}=r;if(r.nextAngle<a)r.nextAngle=Jn(i,"<",a);if(r.nextBrace<a)r.nextBrace=Jn(i,"{",a);let o=Math.min(r.nextAngle,r.nextBrace);r.index=o;let u=i.slice(a,o);r.append({type:"Text",start:a,end:o,raw:u,data:S(u,!1,r.entityNames)})}function Jn(r,i,a){let o=r.indexOf(i,a);return o===-1?r.length:o}function D(r,i,a){let o=te(r,i,a);while(o.index<o.source.length)re(o);return ie(o)}function te(r,i,a){let o=r.charCodeAt(0)===65279?r.slice(1):r;return T(o),new en(o.trimEnd(),o.length,a,i)}function ie(r){if(r.stack.length>1){let u=r.current();if(u.end=u.start+1,u.type==="RegularElement")Q(u,u.name);Ae(u)}let{nodes:i}=r.root.fragment,a=i.findIndex((u)=>u.type==="SvelteOptions"),o=i[a];if(o?.type==="SvelteOptions"){i.splice(a,1),r.root.options=jn(o);let{nodes:u}=o.fragment;if(u.length>0)ze({start:u[0].start,end:u[u.length-1].end},o.name)}return r.root}function re(r){if(r.match("<"))X(r);else if(r.match("{"))Yn(r);else lt(r)}
3
3
  export{X,D,te,ie,re};
@@ -6,5 +6,5 @@ ${h}`}).join(`
6
6
  `,s-1)+1,h=u,_=w.charCodeAt(h);while(_===32||_===9)_=w.charCodeAt(++h);if(h>u)a=ie(a,w.slice(u,h))}let d={type:t?"Block":"Line",value:a,start:s,end:l};if(m&&i)d.loc={start:m,end:i};F.push(d)}function ie(t,r){let s=t.startsWith(r)?r.length:0,l="",m=t.indexOf(`
7
7
  `,s);while(m!==-1){if(l+=t.slice(s,m+1),s=m+1,t.startsWith(r,s))s+=r.length;m=t.indexOf(`
8
8
  `,s)}return l+t.slice(s)}function J(t,r,s){let l=0,m=r.length;while(l<m){let i=l+m>>>1;if(r[i].start<s)l=i+1;else m=i}if(l>=r.length)return;if(v=r.slice(l).map(({type:i,value:a,start:d,end:u})=>({type:i,value:a,start:d,end:u})),g=0,O(t,void 0,!1),g<v.length&&(v[g].start>=t.end||t.type==="Program")){t.trailingComments??=[];while(g<v.length)t.trailingComments.push(v[g++])}}var v=[],g=0,se=new Map([["BlockStatement","body"],["Program","body"],["ArrayExpression","elements"],["ObjectExpression","properties"]]);function M(t,r){for(let s=t;s<r;s++){let l=w.charCodeAt(s);if(l!==44&&l!==41&&l!==32&&l!==9)return!0}return!1}function O(t,r,s){while(g<v.length&&v[g].start<t.start)t.leadingComments??=[],t.leadingComments.push(v[g++]);if(g>=v.length)return;let l=v[g].start;if(l<t.end||!M(t.end,l)){let m=E(t),i=se.get(t.type),a=i===void 0?void 0:m[i],d=Array.isArray(a)&&a.length===0;for(let u in m){if(g>=v.length)return;if(u==="type")continue;let h=m[u];if(Array.isArray(h)){let _=u===i;for(let x=0;x<h.length;x++){let W=h[x];if(f(W))O(W,t,_?x===h.length-1:d)}}else if(f(h))O(h,t,d)}if(g>=v.length)return}if(r!==void 0&&t.end===r.end)return;if(s)while(g<v.length){if(r&&v[g].start>=r.end)break;t.trailingComments??=[],t.trailingComments.push(v[g++])}else if(t.end<=v[g].start&&!M(t.end,v[g].start))t.trailingComments=[v[g++]]}var P=new Set("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".split(" "));var S=!1,k=1,de=2,me=32,fe=256,ct=k|de|fe,pt=2,mt=3,ht=4,_t=/\r\n?|\n|\u2028|\u2029/,q=new Map;function N(t){if(!(t instanceof RegExp))return t;let r=q.get(t);if(!r){let s=new Set(t.source.slice(4,-2).split("|"));r={test:(l)=>s.has(l)},q.set(t,r)}return r}var he=I((t)=>class extends t{declareName(r,s,l){let m=!1;if(s===pt){let i=this.currentScope();if(m=o(i.lexical,r)||o(i.functions,r)||o(i.var,r),i.lexical.push(r),this.inModule&&i.flags&k)delete this.undefinedExports[r]}else if(s===ht)this.currentScope().lexical.push(r);else if(s===mt){let i=this.currentScope();m=this.treatFunctionsAsVar?o(i.lexical,r):o(i.lexical,r)||o(i.var,r),i.functions.push(r)}else for(let i=this.scopeStack.length-1;i>=0;--i){let a=this.scopeStack[i];if(o(a.lexical,r)&&!(a.flags&me&&a.lexical[0]===r)||!this.treatFunctionsAsVarInScope(a)&&o(a.functions,r)){m=!0;break}if(a.var.push(r),this.inModule&&a.flags&k)delete this.undefinedExports[r];if(a.flags&ct)break}if(m)this.raiseRecoverable(l,`Identifier '${r}' has already been declared`)}}),ue=I((t)=>{let{keywordTypes:r,tokTypes:s}=t.acorn,l=new Map("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 const class extends export import super".split(" ").map((i)=>[i,r[i]])),m;return class extends t{constructor(i,a,d){super(i,a,d);this.keywords=N(this.keywords),this.reservedWords=N(this.reservedWords),this.reservedWordsStrict=N(this.reservedWordsStrict),this.reservedWordsStrictBind=N(this.reservedWordsStrictBind),m??=this.context[0]}reset(i,a,d){if(super.reset?.(i,a,d),this.input=i,this.containsEsc=!1,this.pos=a,d)this.lineStart=a-d.column,this.curLine=d.line;else this.lineStart=i.lastIndexOf(`
9
- `,a-1)+1,this.curLine=this.options.locations?i.slice(0,this.lineStart).split(_t).length:1;this.type=s.eof,this.value=null,this.start=this.end=a,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=a;let u=this.context;if(u.length!==1||u[0]!==m)this.context=this.initialContext();if(this.exprAllowed=!0,this.strict=!0,this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels.length>0)this.labels=[];for(let x in this.undefinedExports){this.undefinedExports=Object.create(null);break}let h=this.scopeStack,_=h[0];if(h.length!==1||_.flags!==k||_.var.length>0||_.lexical.length>0||_.functions.length>0||_.tsTypes!==void 0||_.tsExportOnly!==void 0||_.tsEnums!==void 0)this.scopeStack=[],this.enterScope(k);if(this.regexpState=null,this.privateNameStack.length>0)this.privateNameStack=[];this.inTemplateElement=!1}parseParenAndDistinguishExpression(i,a){let d=super.parseParenAndDistinguishExpression(i,a);if(d.type==="ParenthesizedExpression")S=!0;return d}checkUnreserved(i){if(P.has(i.name))super.checkUnreserved(i)}canInsertSemicolon(){let i=this.type;if(i===s.eof||i===s.braceR)return!0;let a=this.input;for(let d=this.lastTokEnd;d<this.start;d++){let u=a.charCodeAt(d);if(u===10||u===13||u===8232||u===8233)return!0}return!1}checkLocalExport(){}skipSpace(){let i=this.input,a=this.options.locations,d=this.pos,u=i.charCodeAt(d);for(;;)if(u===32||u===9)u=i.charCodeAt(++d);else if(u===10){if(u=i.charCodeAt(++d),a)this.curLine++,this.lineStart=d}else break;if(this.pos=d,u===47||u<33||u>=128)super.skipSpace()}readWord1(){let i=this.input,a=this.pos,d=a,u=i.charCodeAt(d),h=0;while(u>=97&&u<=122||u>=65&&u<=90||u>=48&&u<=57||u===95||u===36)h=h*31+u|0,u=i.charCodeAt(++d);if(u>=128||u===92)return super.readWord1();return this.containsEsc=!1,this.pos=d,ut(i,a,d,h)}readWord(){let i=this.readWord1();return this.finishToken(l.get(i)??s.name,i)}}}),H=K(he,ue),vt=/ \(\d+:\d+\)$/;function b(t){return t}function Z(t){return t instanceof SyntaxError&&"pos"in t&&typeof t.pos==="number"}function C(t,r,s,l,m,i=t.root.comments.length){let a=t.root.comments;V(r,a);let d={onComment:t.comments?G:X,sourceType:"module",ecmaVersion:16,locations:t.loc,preserveParens:l};if(t.lfOnly)d.startLocation=p(s);let u=t.isTypeScript?t.typescript:H;if(!u)z();let h;try{h=m(u,d)}catch(_){if(!Z(_))throw _;B(_.pos,_.message.replace(vt,""))}if(a.length>i)J(b(h),a,s);return h}function j(t,r,s=0){return b(C(t,r,0,!1,(l,m)=>{if(s>0&&m.locations)m.startLocation=p(s);let i=new l(m,r,s).parse();return i.start=0,i},0))}function gt(t,r){let{column:s}=p(t);return{line:r?ft(t-s)+1:1,column:s}}var xt={count:0},R,wt=(t)=>t.parseExpression();function bt(t,r,s,l,m){let i=R;if(R=void 0,i?.ParserClass===t&&i.onComment===r.onComment&&i.locations===r.locations&&i.parser.reset)i.parser.reset(s,l,r.startLocation);else i={ParserClass:t,onComment:r.onComment,locations:r.locations,parser:new t(r,s,l)};let a=i.parser;a.nextToken();let d=m(a);return a.input="",R=i,d}function ee(t,r,s,l){return xt.count+=1,S=!1,C(t,r,s,!0,(m,i)=>(i.startLocation??=gt(s,i.locations),bt(m,i,r,s,l)))}function A(t,r,s,l=!1){let m=b(ee(t,r,s,wt)),i=Math.max(m.end,U());return{node:S&&!l?D(m):m,end:i}}function ot(t,r,s){let l=t.root.comments.length,m=!0,i=ee(t,r,s,(d)=>{let u={shorthandAssign:-1,trailingComma:-1,parenthesizedAssign:-1,parenthesizedBind:-1,doubleProto:-1},h=d.parseMaybeConditional(void 0,u);if(d.type!==H.acorn.tokTypes.eof)return m=!1,h;let _=d.toAssignable(h,!1,u);return d.checkLValPattern(_),_});if(!m){t.root.comments.length=l;return}let a=b(i);return S?D(a):a}function at(t,r,s){return b(C(t,r,s,!1,(l,m)=>{let i=new l(m,r,s);try{return i.nextToken(),i.parseStatement(null,!0,Object.create(null))}catch(a){if(Z(a)&&a.pos===r.length)n(r.length);throw a}}))}function lt(t,r,s){let l=C(t,r,0,!1,(m,i)=>{let a=new m(i,r,0),d=a.startNode(),u=[],h=Object.create(null);return s((_)=>{a.pos=_,a.context=a.initialContext(),a.exprAllowed=!0,a.nextToken();let x=a.parseStatement(null,!0,h);return u.push(x),x.end}),d.body=u,a.finishNode(d,"Program")});return b(l).body}function D(t){let r=t;while(r.type==="ParenthesizedExpression")r=r.expression;return L(r,D),r}
9
+ `,a-1)+1,this.curLine=this.options.locations?i.slice(0,this.lineStart).split(_t).length:1;this.type=s.eof,this.value=null,this.start=this.end=a,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=a;let u=this.context;if(u.length!==1||u[0]!==m)this.context=this.initialContext();if(this.exprAllowed=!0,this.strict=!0,this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels.length>0)this.labels=[];for(let x in this.undefinedExports){this.undefinedExports=Object.create(null);break}let h=this.scopeStack,_=h[0];if(h.length!==1||_.flags!==k||_.var.length>0||_.lexical.length>0||_.functions.length>0||_.tsTypes!==void 0||_.tsExportOnly!==void 0||_.tsEnums!==void 0)this.scopeStack=[],this.enterScope(k);if(this.regexpState=null,this.privateNameStack.length>0)this.privateNameStack=[];this.inTemplateElement=!1}parseParenAndDistinguishExpression(i,a){let d=super.parseParenAndDistinguishExpression(i,a);if(d.type==="ParenthesizedExpression")S=!0;return d}checkUnreserved(i){if(P.has(i.name))super.checkUnreserved(i)}canInsertSemicolon(){let i=this.type;if(i===s.eof||i===s.braceR)return!0;let a=this.input;for(let d=this.lastTokEnd;d<this.start;d++){let u=a.charCodeAt(d);if(u===10||u===13||u===8232||u===8233)return!0}return!1}checkLocalExport(){}skipSpace(){let i=this.input,a=this.options.locations,d=this.pos,u=i.charCodeAt(d);for(;;)if(u===32||u===9)u=i.charCodeAt(++d);else if(u===10){if(u=i.charCodeAt(++d),a)this.curLine++,this.lineStart=d}else break;if(this.pos=d,u===47||u<33||u>=128)super.skipSpace()}readWord1(){let i=this.input,a=this.pos,d=a,u=i.charCodeAt(d),h=0;while(u>=97&&u<=122||u>=65&&u<=90||u>=48&&u<=57||u===95||u===36)h=Math.imul(h,31)+u|0,u=i.charCodeAt(++d);if(u>=128||u===92)return super.readWord1();return this.containsEsc=!1,this.pos=d,ut(i,a,d,h)}readWord(){let i=this.readWord1();return this.finishToken(l.get(i)??s.name,i)}}}),H=K(he,ue),vt=/ \(\d+:\d+\)$/;function b(t){return t}function Z(t){return t instanceof SyntaxError&&"pos"in t&&typeof t.pos==="number"}function C(t,r,s,l,m,i=t.root.comments.length){let a=t.root.comments;V(r,a);let d={onComment:t.comments?G:X,sourceType:"module",ecmaVersion:16,locations:t.loc,preserveParens:l};if(t.lfOnly)d.startLocation=p(s);let u=t.isTypeScript?t.typescript:H;if(!u)z();let h;try{h=m(u,d)}catch(_){if(!Z(_))throw _;B(_.pos,_.message.replace(vt,""))}if(a.length>i)J(b(h),a,s);return h}function j(t,r,s=0){return b(C(t,r,0,!1,(l,m)=>{if(s>0&&m.locations)m.startLocation=p(s);let i=new l(m,r,s).parse();return i.start=0,i},0))}function gt(t,r){let{column:s}=p(t);return{line:r?ft(t-s)+1:1,column:s}}var xt={count:0},R,wt=(t)=>t.parseExpression();function bt(t,r,s,l,m){let i=R;if(R=void 0,i?.ParserClass===t&&i.onComment===r.onComment&&i.locations===r.locations&&i.parser.reset)i.parser.reset(s,l,r.startLocation);else i={ParserClass:t,onComment:r.onComment,locations:r.locations,parser:new t(r,s,l)};let a=i.parser;a.nextToken();let d=m(a);return a.input="",R=i,d}function ee(t,r,s,l){return xt.count+=1,S=!1,C(t,r,s,!0,(m,i)=>(i.startLocation??=gt(s,i.locations),bt(m,i,r,s,l)))}function A(t,r,s,l=!1){let m=b(ee(t,r,s,wt)),i=Math.max(m.end,U());return{node:S&&!l?D(m):m,end:i}}function ot(t,r,s){let l=t.root.comments.length,m=!0,i=ee(t,r,s,(d)=>{let u={shorthandAssign:-1,trailingComma:-1,parenthesizedAssign:-1,parenthesizedBind:-1,doubleProto:-1},h=d.parseMaybeConditional(void 0,u);if(d.type!==H.acorn.tokTypes.eof)return m=!1,h;let _=d.toAssignable(h,!1,u);return d.checkLValPattern(_),_});if(!m){t.root.comments.length=l;return}let a=b(i);return S?D(a):a}function at(t,r,s){return b(C(t,r,s,!1,(l,m)=>{let i=new l(m,r,s);try{return i.nextToken(),i.parseStatement(null,!0,Object.create(null))}catch(a){if(Z(a)&&a.pos===r.length)n(r.length);throw a}}))}function lt(t,r,s){let l=C(t,r,0,!1,(m,i)=>{let a=new m(i,r,0),d=a.startNode(),u=[],h=Object.create(null);return s((_)=>{a.pos=_,a.context=a.initialContext(),a.exprAllowed=!0,a.nextToken();let x=a.parseStatement(null,!0,h);return u.push(x),x.end}),d.body=u,a.finishNode(d,"Program")});return b(l).body}function D(t){let r=t;while(r.type==="ParenthesizedExpression")r=r.expression;return L(r,D),r}
10
10
  export{e,ye,xe,ge,be,Se,ve,Ae,Te,ke,Ee,ne,we,Ce,oe,Ne,_e,Pe,Le,Q,ae,Ie,le,Re,Oe,c,$e,qe,De,Be,Ve,Me,Fe,We,je,pe,Ue,ze,Ke,Ge,He,Xe,Y,Qe,Ye,Je,ce,Ze,et,tt,it,n,rt,st,nt,P,he,ue,j,A,ot,at,lt};
@@ -0,0 +1,2 @@
1
+ import{K}from"./shared-zd01zsyh.js";import{he,ue}from"./shared-e8c239q0.js";import{q}from"./shared-np5jnnrw.js";var a=K(he,q,ue);
2
+ export{a};
package/typescript.js CHANGED
@@ -1 +1 @@
1
- import"./shared-zd01zsyh.js";import"./shared-bxg3hhpk.js";import"./shared-25z9p1fv.js";import"./shared-np5jnnrw.js";import{a}from"./shared-96tm9k91.js";import{pt}from"./shared-wentwa9g.js";var t=pt(a);export{t as typescript};
1
+ import"./shared-zd01zsyh.js";import"./shared-bxg3hhpk.js";import"./shared-e8c239q0.js";import"./shared-np5jnnrw.js";import{a}from"./shared-k7zadjsv.js";import{pt}from"./shared-wentwa9g.js";var t=pt(a);export{t as typescript};
@@ -1,2 +0,0 @@
1
- import{K}from"./shared-zd01zsyh.js";import{he,ue}from"./shared-25z9p1fv.js";import{q}from"./shared-np5jnnrw.js";var a=K(he,q,ue);
2
- export{a};
@@ -1,2 +0,0 @@
1
- import{D}from"./shared-4gksznp7.js";import{x}from"./shared-3yc3kmnb.js";import{a}from"./shared-96tm9k91.js";var o={typescript:a,entityNames:x};function Z(t,r){return D(t,r,o)}
2
- export{Z};
@@ -1,2 +0,0 @@
1
- import{T}from"./shared-bxg3hhpk.js";import{j}from"./shared-25z9p1fv.js";function g(e,r,o){return T(e),j({isTypeScript:r.typescript??!1,typescript:o,loc:r.loc??!1,comments:r.comments??!0,root:{comments:[]}},e)}
2
- export{g};