const u={context:void 0,registry:void 0,effects:void 0,done:!1,getContextId(){return Ae(this.context.count)},getNextContextId(){return Ae(this.context.count++)}};function Ae(e){const t=String(e),n=t.length-1;return u.context.id+(n?String.fromCharCode(96+n):"")+t}function I(e){u.context=e}function We(){return{...u.context,id:u.getNextContextId(),count:0}}const Qe=(e,t)=>e===t,te=Symbol("solid-proxy"),je=typeof Proxy=="function",Ie=Symbol("solid-track"),ne={equals:Qe};let X=null,De=Ge;const j=1,W=2,Fe={owned:null,cleanups:null,context:null,owner:null},ue={};var g=null;let a=null,Je=null,y=null,v=null,A=null,oe=0;function _(e,t){const n=y,s=g,i=e.length===0,r=t===void 0?s:t,o=i?Fe:{owned:null,cleanups:null,context:r?r.context:null,owner:r},l=i?e:()=>e(()=>k(()=>H(o)));g=o,y=null;try{return P(l,!0)}finally{y=n,g=s}}function M(e,t){t=t?Object.assign({},ne,t):ne;const n={value:e,observers:null,observerSlots:null,comparator:t.equals||void 0},s=i=>(typeof i=="function"&&(a&&a.running&&a.sources.has(n)?i=i(n.tValue):i=i(n.value)),qe(n,i));return[He.bind(n),s]}function Ce(e,t,n){const s=Z(e,t,!0,j);K(s)}function q(e,t,n){const s=Z(e,t,!1,j);K(s)}function Ve(e,t,n){De=it;const s=Z(e,t,!1,j),i=G&&J(G);i&&(s.suspense=i),(!n||!n.render)&&(s.user=!0),A?A.push(s):K(s)}function C(e,t,n){n=n?Object.assign({},ne,n):ne;const s=Z(e,t,!0,0);return s.observers=null,s.observerSlots=null,s.comparator=n.equals||void 0,K(s),He.bind(s)}function Ze(e){return e&&typeof e=="object"&&"then"in e}function ze(e,t,n){let s,i,r;arguments.length===2&&typeof t=="object"||arguments.length===1?(s=!0,i=e,r=t||{}):(s=e,i=t,r=n||{});let o=null,l=ue,f=null,d=!1,h=!1,c="initialValue"in r,m=typeof s=="function"&&C(s);const p=new Set,[b,E]=(r.storage||M)(r.initialValue),[N,$]=M(void 0),[O,T]=M(void 0,{equals:!1}),[L,D]=M(c?"ready":"unresolved");u.context&&(f=u.getNextContextId(),r.ssrLoadFrom==="initial"?l=r.initialValue:u.load&&u.has(f)&&(l=u.load(f)));function V(w,x,S,B){return o===w&&(o=null,B!==void 0&&(c=!0),(w===l||x===l)&&r.onHydrated&&queueMicrotask(()=>r.onHydrated(B,{value:x})),l=ue,a&&w&&d?(a.promises.delete(w),d=!1,P(()=>{a.running=!0,ke(x,S)},!1)):ke(x,S)),x}function ke(w,x){P(()=>{x===void 0&&E(()=>w),D(x!==void 0?"errored":c?"ready":"unresolved"),$(x);for(const S of p.keys())S.decrement();p.clear()},!1)}function le(){const w=G&&J(G),x=b(),S=N();if(S!==void 0&&!o)throw S;return y&&!y.user&&w&&Ce(()=>{O(),o&&(w.resolved&&a&&d?a.promises.add(o):p.has(w)||(w.increment(),p.add(w)))}),x}function fe(w=!0){if(w!==!1&&h)return;h=!1;const x=m?m():s;if(d=a&&a.running,x==null||x===!1){V(o,k(b));return}a&&o&&a.promises.delete(o);const S=l!==ue?l:k(()=>i(x,{value:b(),refetching:w}));return Ze(S)?(o=S,"value"in S?(S.status==="success"?V(o,S.value,void 0,x):V(o,void 0,de(S.value),x),S):(h=!0,queueMicrotask(()=>h=!1),P(()=>{D(c?"refreshing":"pending"),T()},!1),S.then(B=>V(S,B,void 0,x),B=>V(S,void 0,de(B),x)))):(V(o,S,void 0,x),S)}return Object.defineProperties(le,{state:{get:()=>L()},error:{get:()=>N()},loading:{get(){const w=L();return w==="pending"||w==="refreshing"}},latest:{get(){if(!c)return le();const w=N();if(w&&!o)throw w;return b()}}}),m?Ce(()=>fe(!1)):fe(!1),[le,{refetch:fe,mutate:E}]}function Rt(e){return P(e,!1)}function k(e){if(y===null)return e();const t=y;y=null;try{return e()}finally{y=t}}function Ut(e,t,n){const s=Array.isArray(e);let i,r=n&&n.defer;return o=>{let l;if(s){l=Array(e.length);for(let d=0;d<e.length;d++)l[d]=e[d]()}else l=e();if(r)return r=!1,o;const f=k(()=>t(l,i,o));return i=l,f}}function Yt(e){Ve(()=>k(e))}function Y(e){return g===null||(g.cleanups===null?g.cleanups=[e]:g.cleanups.push(e)),e}function et(e,t){X||(X=Symbol("error")),g=Z(void 0,void 0,!0),g.context={...g.context,[X]:[t]},a&&a.running&&a.sources.add(g);try{return e()}catch(n){z(n)}finally{g=g.owner}}function Kt(){return y}function ce(){return g}function tt(e,t){const n=g,s=y;g=e,y=null;try{return P(t,!0)}catch(i){z(i)}finally{g=n,y=s}}function Xt(e){if(a&&a.running)return e(),a.done;const t=y,n=g;return Promise.resolve().then(()=>{y=t,g=n;let s;return G&&(s=a||(a={sources:new Set,effects:[],promises:new Set,disposed:new Set,queue:new Set,running:!0}),s.done||(s.done=new Promise(i=>s.resolve=i)),s.running=!0),P(e,!1),y=g=null,s?s.done:void 0})}const[Wt,Ee]=M(!1);function nt(e){A.push.apply(A,e),e.length=0}function xe(e,t){const n=Symbol("context");return{id:n,Provider:ot(n),defaultValue:e}}function J(e){let t;return g&&g.context&&(t=g.context[e.id])!==void 0?t:e.defaultValue}function _e(e){const t=C(e),n=C(()=>he(t()));return n.toArray=()=>{const s=n();return Array.isArray(s)?s:s!=null?[s]:[]},n}let G;function st(){return G||(G=xe())}function He(){const e=a&&a.running;if(this.sources&&(e?this.tState:this.state))if((e?this.tState:this.state)===j)K(this);else{const t=v;v=null,P(()=>re(this),!1),v=t}if(y){const t=this.observers?this.observers.length:0;y.sources?(y.sources.push(this),y.sourceSlots.push(t)):(y.sources=[this],y.sourceSlots=[t]),this.observers?(this.observers.push(y),this.observerSlots.push(y.sources.length-1)):(this.observers=[y],this.observerSlots=[y.sources.length-1])}return e&&a.sources.has(this)?this.tValue:this.value}function qe(e,t,n){let s=a&&a.running&&a.sources.has(e)?e.tValue:e.value;if(!e.comparator||!e.comparator(s,t)){if(a){const i=a.running;(i||!n&&a.sources.has(e))&&(a.sources.add(e),e.tValue=t),i||(e.value=t)}else e.value=t;e.observers&&e.observers.length&&P(()=>{for(let i=0;i<e.observers.length;i+=1){const r=e.observers[i],o=a&&a.running;o&&a.disposed.has(r)||((o?!r.tState:!r.state)&&(r.pure?v.push(r):A.push(r),r.observers&&Be(r)),o?r.tState=j:r.state=j)}if(v.length>1e6)throw v=[],new Error},!1)}return t}function K(e){if(!e.fn)return;H(e);const t=oe;Oe(e,a&&a.running&&a.sources.has(e)?e.tValue:e.value,t),a&&!a.running&&a.sources.has(e)&&queueMicrotask(()=>{P(()=>{a&&(a.running=!0),y=g=e,Oe(e,e.tValue,t),y=g=null},!1)})}function Oe(e,t,n){let s;const i=g,r=y;y=g=e;try{s=e.fn(t)}catch(o){return e.pure&&(a&&a.running?(e.tState=j,e.tOwned&&e.tOwned.forEach(H),e.tOwned=void 0):(e.state=j,e.owned&&e.owned.forEach(H),e.owned=null)),e.updatedAt=n+1,z(o)}finally{y=r,g=i}(!e.updatedAt||e.updatedAt<=n)&&(e.updatedAt!=null&&"observers"in e?qe(e,s,!0):a&&a.running&&e.pure?(a.sources.add(e),e.tValue=s):e.value=s,e.updatedAt=n)}function Z(e,t,n,s=j,i){const r={fn:e,state:s,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:t,owner:g,context:g?g.context:null,pure:n};return a&&a.running&&(r.state=0,r.tState=s),g===null||g!==Fe&&(a&&a.running&&g.pure?g.tOwned?g.tOwned.push(r):g.tOwned=[r]:g.owned?g.owned.push(r):g.owned=[r]),r}function se(e){const t=a&&a.running;if((t?e.tState:e.state)===0)return;if((t?e.tState:e.state)===W)return re(e);if(e.suspense&&k(e.suspense.inFallback))return e.suspense.effects.push(e);const n=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt<oe);){if(t&&a.disposed.has(e))return;(t?e.tState:e.state)&&n.push(e)}for(let s=n.length-1;s>=0;s--){if(e=n[s],t){let i=e,r=n[s+1];for(;(i=i.owner)&&i!==r;)if(a.disposed.has(i))return}if((t?e.tState:e.state)===j)K(e);else if((t?e.tState:e.state)===W){const i=v;v=null,P(()=>re(e,n[0]),!1),v=i}}}function P(e,t){if(v)return e();let n=!1;t||(v=[]),A?n=!0:A=[],oe++;try{const s=e();return rt(n),s}catch(s){n||(A=null),v=null,z(s)}}function rt(e){if(v&&(Ge(v),v=null),e)return;let t;if(a){if(!a.promises.size&&!a.queue.size){const s=a.sources,i=a.disposed;A.push.apply(A,a.effects),t=a.resolve;for(const r of A)"tState"in r&&(r.state=r.tState),delete r.tState;a=null,P(()=>{for(const r of i)H(r);for(const r of s){if(r.value=r.tValue,r.owned)for(let o=0,l=r.owned.length;o<l;o++)H(r.owned[o]);r.tOwned&&(r.owned=r.tOwned),delete r.tValue,delete r.tOwned,r.tState=0}Ee(!1)},!1)}else if(a.running){a.running=!1,a.effects.push.apply(a.effects,A),A=null,Ee(!0);return}}const n=A;A=null,n.length&&P(()=>De(n),!1),t&&t()}function Ge(e){for(let t=0;t<e.length;t++)se(e[t])}function it(e){let t,n=0;for(t=0;t<e.length;t++){const s=e[t];s.user?e[n++]=s:se(s)}if(u.context){if(u.count){u.effects||(u.effects=[]),u.effects.push(...e.slice(0,n));return}I()}for(u.effects&&(u.done||!u.count)&&(e=[...u.effects,...e],n+=u.effects.length,delete u.effects),t=0;t<n;t++)se(e[t])}function re(e,t){const n=a&&a.running;n?e.tState=0:e.state=0;for(let s=0;s<e.sources.length;s+=1){const i=e.sources[s];if(i.sources){const r=n?i.tState:i.state;r===j?i!==t&&(!i.updatedAt||i.updatedAt<oe)&&se(i):r===W&&re(i,t)}}}function Be(e){const t=a&&a.running;for(let n=0;n<e.observers.length;n+=1){const s=e.observers[n];(t?!s.tState:!s.state)&&(t?s.tState=W:s.state=W,s.pure?v.push(s):A.push(s),s.observers&&Be(s))}}function H(e){let t;if(e.sources)for(;e.sources.length;){const n=e.sources.pop(),s=e.sourceSlots.pop(),i=n.observers;if(i&&i.length){const r=i.pop(),o=n.observerSlots.pop();s<i.length&&(r.sourceSlots[o]=s,i[s]=r,n.observerSlots[s]=o)}}if(e.tOwned){for(t=e.tOwned.length-1;t>=0;t--)H(e.tOwned[t]);delete e.tOwned}if(a&&a.running&&e.pure)Re(e,!0);else if(e.owned){for(t=e.owned.length-1;t>=0;t--)H(e.owned[t]);e.owned=null}if(e.cleanups){for(t=e.cleanups.length-1;t>=0;t--)e.cleanups[t]();e.cleanups=null}a&&a.running?e.tState=0:e.state=0}function Re(e,t){if(t||(e.tState=0,a.disposed.add(e)),e.owned)for(let n=0;n<e.owned.length;n++)Re(e.owned[n])}function de(e){return e instanceof Error?e:new Error(typeof e=="string"?e:"Unknown error",{cause:e})}function ve(e,t,n){try{for(const s of t)s(e)}catch(s){z(s,n&&n.owner||null)}}function z(e,t=g){const n=X&&t&&t.context&&t.context[X],s=de(e);if(!n)throw s;A?A.push({fn(){ve(s,n,t)},state:j}):ve(s,n,t)}function he(e){if(typeof e=="function"&&!e.length)return he(e());if(Array.isArray(e)){const t=[];for(let n=0;n<e.length;n++){const s=he(e[n]);Array.isArray(s)?t.push.apply(t,s):t.push(s)}return t}return e}function ot(e,t){return function(s){let i;return q(()=>i=k(()=>(g.context={...g.context,[e]:s.value},_e(()=>s.children))),void 0),i}}const ge=Symbol("fallback");function ie(e){for(let t=0;t<e.length;t++)e[t]()}function lt(e,t,n={}){let s=[],i=[],r=[],o=0,l=t.length>1?[]:null;return Y(()=>ie(r)),()=>{let f=e()||[],d=f.length,h,c;return f[Ie],k(()=>{let p,b,E,N,$,O,T,L,D;if(d===0)o!==0&&(ie(r),r=[],s=[],i=[],o=0,l&&(l=[])),n.fallback&&(s=[ge],i[0]=_(V=>(r[0]=V,n.fallback())),o=1);else if(o===0){for(i=new Array(d),c=0;c<d;c++)s[c]=f[c],i[c]=_(m);o=d}else{for(E=new Array(d),N=new Array(d),l&&($=new Array(d)),O=0,T=Math.min(o,d);O<T&&s[O]===f[O];O++);for(T=o-1,L=d-1;T>=O&&L>=O&&s[T]===f[L];T--,L--)E[L]=i[T],N[L]=r[T],l&&($[L]=l[T]);for(p=new Map,b=new Array(L+1),c=L;c>=O;c--)D=f[c],h=p.get(D),b[c]=h===void 0?-1:h,p.set(D,c);for(h=O;h<=T;h++)D=s[h],c=p.get(D),c!==void 0&&c!==-1?(E[c]=i[h],N[c]=r[h],l&&($[c]=l[h]),c=b[c],p.set(D,c)):r[h]();for(c=O;c<d;c++)c in E?(i[c]=E[c],r[c]=N[c],l&&(l[c]=$[c],l[c](c))):i[c]=_(m);i=i.slice(0,o=d),s=f.slice(0)}return i});function m(p){if(r[c]=p,l){const[b,E]=M(c);return l[c]=E,t(f[c],b)}return t(f[c])}}}function ft(e,t,n={}){let s=[],i=[],r=[],o=[],l=0,f;return Y(()=>ie(r)),()=>{const d=e()||[],h=d.length;return d[Ie],k(()=>{if(h===0)return l!==0&&(ie(r),r=[],s=[],i=[],l=0,o=[]),n.fallback&&(s=[ge],i[0]=_(m=>(r[0]=m,n.fallback())),l=1),i;for(s[0]===ge&&(r[0](),r=[],s=[],i=[],l=0),f=0;f<h;f++)f<s.length&&s[f]!==d[f]?o[f](()=>d[f]):f>=s.length&&(i[f]=_(c));for(;f<s.length;f++)r[f]();return l=o.length=r.length=h,s=d.slice(0),i=i.slice(0,l)});function c(m){r[f]=m;const[p,b]=M(d[f]);return o[f]=b,t(p,f)}}}let Ue=!1;function ut(){Ue=!0}function Se(e,t){if(Ue&&u.context){const n=u.context;I(We());const s=k(()=>e(t||{}));return I(n),s}return k(()=>e(t||{}))}function ee(){return!0}const me={get(e,t,n){return t===te?n:e.get(t)},has(e,t){return t===te?!0:e.has(t)},set:ee,deleteProperty:ee,getOwnPropertyDescriptor(e,t){return{configurable:!0,enumerable:!0,get(){return e.get(t)},set:ee,deleteProperty:ee}},ownKeys(e){return e.keys()}};function ae(e){return(e=typeof e=="function"?e():e)?e:{}}function at(){for(let e=0,t=this.length;e<t;++e){const n=this[e]();if(n!==void 0)return n}}function ct(...e){let t=!1;for(let o=0;o<e.length;o++){const l=e[o];t=t||!!l&&te in l,e[o]=typeof l=="function"?(t=!0,C(l)):l}if(je&&t)return new Proxy({get(o){for(let l=e.length-1;l>=0;l--){const f=ae(e[l])[o];if(f!==void 0)return f}},has(o){for(let l=e.length-1;l>=0;l--)if(o in ae(e[l]))return!0;return!1},keys(){const o=[];for(let l=0;l<e.length;l++)o.push(...Object.keys(ae(e[l])));return[...new Set(o)]}},me);const n={},s=Object.create(null);for(let o=e.length-1;o>=0;o--){const l=e[o];if(!l)continue;const f=Object.getOwnPropertyNames(l);for(let d=f.length-1;d>=0;d--){const h=f[d];if(h==="__proto__"||h==="constructor")continue;const c=Object.getOwnPropertyDescriptor(l,h);if(!s[h])s[h]=c.get?{enumerable:!0,configurable:!0,get:at.bind(n[h]=[c.get.bind(l)])}:c.value!==void 0?c:void 0;else{const m=n[h];m&&(c.get?m.push(c.get.bind(l)):c.value!==void 0&&m.push(()=>c.value))}}}const i={},r=Object.keys(s);for(let o=r.length-1;o>=0;o--){const l=r[o],f=s[l];f&&f.get?Object.defineProperty(i,l,f):i[l]=f?f.value:void 0}return i}function dt(e,...t){if(je&&te in e){const i=new Set(t.length>1?t.flat():t[0]),r=t.map(o=>new Proxy({get(l){return o.includes(l)?e[l]:void 0},has(l){return o.includes(l)&&l in e},keys(){return o.filter(l=>l in e)}},me));return r.push(new Proxy({get(o){return i.has(o)?void 0:e[o]},has(o){return i.has(o)?!1:o in e},keys(){return Object.keys(e).filter(o=>!i.has(o))}},me)),r}const n={},s=t.map(()=>({}));for(const i of Object.getOwnPropertyNames(e)){const r=Object.getOwnPropertyDescriptor(e,i),o=!r.get&&!r.set&&r.enumerable&&r.writable&&r.configurable;let l=!1,f=0;for(const d of t)d.includes(i)&&(l=!0,o?s[f][i]=r.value:Object.defineProperty(s[f],i,r)),++f;l||(o?n[i]=r.value:Object.defineProperty(n,i,r))}return[...s,n]}function Qt(e){let t,n;const s=i=>{const r=u.context;if(r){const[l,f]=M();u.count||(u.count=0),u.count++,(n||(n=e())).then(d=>{!u.done&&I(r),u.count--,f(()=>d.default),I()}),t=l}else if(!t){const[l]=ze(()=>(n||(n=e())).then(f=>f.default));t=l}let o;return C(()=>(o=t())?k(()=>{if(!r||u.done)return o(i);const l=u.context;I(r);const f=o(i);return I(l),f}):"")};return s.preload=()=>n||((n=e()).then(i=>t=()=>i.default),n),s}let ht=0;function Jt(){return u.context?u.getNextContextId():`cl-${ht++}`}const Ye=e=>`Stale read from <${e}>.`;function Zt(e){const t="fallback"in e&&{fallback:()=>e.fallback};return C(lt(()=>e.each,e.children,t||void 0))}function zt(e){const t="fallback"in e&&{fallback:()=>e.fallback};return C(ft(()=>e.each,e.children,t||void 0))}function en(e){const t=e.keyed,n=C(()=>e.when,void 0,{equals:(s,i)=>t?s===i:!s==!i});return C(()=>{const s=n();if(s){const i=e.children;return typeof i=="function"&&i.length>0?k(()=>i(t?s:()=>{if(!k(n))throw Ye("Show");return e.when})):i}return e.fallback},void 0,void 0)}function tn(e){let t=!1;const n=(r,o)=>(t?r[1]===o[1]:!r[1]==!o[1])&&r[2]===o[2],s=_e(()=>e.children),i=C(()=>{let r=s();Array.isArray(r)||(r=[r]);for(let o=0;o<r.length;o++){const l=r[o].when;if(l)return t=!!r[o].keyed,[o,l,r[o]]}return[-1]},void 0,{equals:n});return C(()=>{const[r,o,l]=i();if(r<0)return e.fallback;const f=l.children;return typeof f=="function"&&f.length>0?k(()=>f(t?o:()=>{if(k(i)[0]!==r)throw Ye("Match");return l.when})):f},void 0,void 0)}function nn(e){return e}let U;function sn(){U&&[...U].forEach(e=>e())}function rn(e){let t;u.context&&u.load&&(t=u.load(u.getContextId()));const[n,s]=M(t,void 0);return U||(U=new Set),U.add(s),Y(()=>U.delete(s)),C(()=>{let i;if(i=n()){const r=e.fallback;return typeof r=="function"&&r.length?k(()=>r(i,()=>s())):r}return et(()=>e.children,s)},void 0,void 0)}const gt=xe();function on(e){let t=0,n,s,i,r,o;const[l,f]=M(!1),d=st(),h={increment:()=>{++t===1&&f(!0)},decrement:()=>{--t===0&&f(!1)},inFallback:l,effects:[],resolved:!1},c=ce();if(u.context&&u.load){const b=u.getContextId();let E=u.load(b);if(E&&(typeof E!="object"||E.status!=="success"?i=E:u.gather(b)),i&&i!=="$$f"){const[N,$]=M(void 0,{equals:!1});r=N,i.then(()=>{if(u.done)return $();u.gather(b),I(s),$(),I()},O=>{o=O,$()})}}const m=J(gt);m&&(n=m.register(h.inFallback));let p;return Y(()=>p&&p()),Se(d.Provider,{value:h,get children(){return C(()=>{if(o)throw o;if(s=u.context,r)return r(),r=void 0;s&&i==="$$f"&&I();const b=C(()=>e.children);return C(E=>{const N=h.inFallback(),{showContent:$=!0,showFallback:O=!0}=n?n():{};if((!N||i&&i!=="$$f")&&$)return h.resolved=!0,p&&p(),p=s=i=void 0,nt(h.effects),b();if(O)return p?E:_(T=>(p=T,s&&(I({id:s.id+"F",count:0}),s=void 0),e.fallback),c)})})}})}const mt=["allowfullscreen","async","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","hidden","indeterminate","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected"],yt=new Set(["className","value","readOnly","formNoValidate","isMap","noModule","playsInline",...mt]),pt=new Set(["innerHTML","textContent","innerText","children"]),bt=Object.assign(Object.create(null),{className:"class",htmlFor:"for"}),wt=Object.assign(Object.create(null),{class:"className",formnovalidate:{$:"formNoValidate",BUTTON:1,INPUT:1},ismap:{$:"isMap",IMG:1},nomodule:{$:"noModule",SCRIPT:1},playsinline:{$:"playsInline",VIDEO:1},readonly:{$:"readOnly",INPUT:1,TEXTAREA:1}});function xt(e,t){const n=wt[e];return typeof n=="object"?n[t]?n.$:void 0:n}const St=new Set(["beforeinput","click","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"]),kt=new Set(["altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","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","hkern","image","line","linearGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","set","stop","svg","switch","symbol","text","textPath","tref","tspan","use","view","vkern"]),At={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"};function Ct(e,t,n){let s=n.length,i=t.length,r=s,o=0,l=0,f=t[i-1].nextSibling,d=null;for(;o<i||l<r;){if(t[o]===n[l]){o++,l++;continue}for(;t[i-1]===n[r-1];)i--,r--;if(i===o){const h=r<s?l?n[l-1].nextSibling:n[r-l]:f;for(;l<r;)e.insertBefore(n[l++],h)}else if(r===l)for(;o<i;)(!d||!d.has(t[o]))&&t[o].remove(),o++;else if(t[o]===n[r-1]&&n[l]===t[i-1]){const h=t[--i].nextSibling;e.insertBefore(n[l++],t[o++].nextSibling),e.insertBefore(n[--r],h),t[i]=n[r]}else{if(!d){d=new Map;let c=l;for(;c<r;)d.set(n[c],c++)}const h=d.get(t[o]);if(h!=null)if(l<h&&h<r){let c=o,m=1,p;for(;++c<i&&c<r&&!((p=d.get(t[c]))==null||p!==h+m);)m++;if(m>h-l){const b=t[o];for(;l<h;)e.insertBefore(n[l++],b)}else e.replaceChild(n[l++],t[o++])}else o++;else t[o++].remove()}}}const Te="_$DX_DELEGATE";function Pe(e,t,n,s={}){let i;return _(r=>{i=r,t===document?e():pe(t,e(),t.firstChild?null:void 0,n)},s.owner),()=>{i(),t.textContent=""}}function ln(e,t,n){let s;const i=()=>{const o=document.createElement("template");return o.innerHTML=e,n?o.content.firstChild.firstChild:o.content.firstChild},r=t?()=>k(()=>document.importNode(s||(s=i()),!0)):()=>(s||(s=i())).cloneNode(!0);return r.cloneNode=r,r}function Et(e,t=window.document){const n=t[Te]||(t[Te]=new Set);for(let s=0,i=e.length;s<i;s++){const r=e[s];n.has(r)||(n.add(r),t.addEventListener(r,Ke))}}function fn(e,t,n){F(e)||(e[t]=n)}function ye(e,t,n){F(e)||(n==null?e.removeAttribute(t):e.setAttribute(t,n))}function Ot(e,t,n,s){F(e)||(s==null?e.removeAttributeNS(t,n):e.setAttributeNS(t,n,s))}function vt(e,t,n){F(e)||(n?e.setAttribute(t,""):e.removeAttribute(t))}function Tt(e,t){F(e)||(t==null?e.removeAttribute("class"):e.className=t)}function Pt(e,t,n,s){if(s)Array.isArray(n)?(e[`$$${t}`]=n[0],e[`$$${t}Data`]=n[1]):e[`$$${t}`]=n;else if(Array.isArray(n)){const i=n[0];e.addEventListener(t,n[0]=r=>i.call(e,n[1],r))}else e.addEventListener(t,n,typeof n!="function"&&n)}function Nt(e,t,n={}){const s=Object.keys(t||{}),i=Object.keys(n);let r,o;for(r=0,o=i.length;r<o;r++){const l=i[r];!l||l==="undefined"||t[l]||(Ne(e,l,!1),delete n[l])}for(r=0,o=s.length;r<o;r++){const l=s[r],f=!!t[l];!l||l==="undefined"||n[l]===f||!f||(Ne(e,l,!0),n[l]=f)}return n}function $t(e,t,n){if(!t)return n?ye(e,"style"):t;const s=e.style;if(typeof t=="string")return s.cssText=t;typeof n=="string"&&(s.cssText=n=void 0),n||(n={}),t||(t={});let i,r;for(r in n)t[r]==null&&s.removeProperty(r),delete n[r];for(r in t)i=t[r],i!==n[r]&&(s.setProperty(r,i),n[r]=i);return n}function Lt(e,t={},n,s){const i={};return s||q(()=>i.children=Q(e,t.children,i.children)),q(()=>typeof t.ref=="function"&&Mt(t.ref,e)),q(()=>jt(e,t,n,!0,i,!0)),i}function Mt(e,t,n){return k(()=>e(t,n))}function pe(e,t,n,s){if(n!==void 0&&!s&&(s=[]),typeof t!="function")return Q(e,t,s,n);q(i=>Q(e,t(),i,n),s)}function jt(e,t,n,s,i={},r=!1){t||(t={});for(const o in i)if(!(o in t)){if(o==="children")continue;i[o]=$e(e,o,null,i[o],n,r,t)}for(const o in t){if(o==="children")continue;const l=t[o];i[o]=$e(e,o,l,i[o],n,r,t)}}function It(e,t,n={}){if(globalThis._$HY.done)return Pe(e,t,[...t.childNodes],n);u.completed=globalThis._$HY.completed,u.events=globalThis._$HY.events,u.load=s=>globalThis._$HY.r[s],u.has=s=>s in globalThis._$HY.r,u.gather=s=>Me(t,s),u.registry=new Map,u.context={id:n.renderId||"",count:0};try{return Me(t,n.renderId),Pe(e,t,[...t.childNodes],n)}finally{u.context=null}}function Dt(e){let t,n;return!F()||!(t=u.registry.get(n=Vt()))?e():(u.completed&&u.completed.add(t),u.registry.delete(n),t)}function un(e){let t=e,n=0,s=[];if(F(e))for(;t;){if(t.nodeType===8){const i=t.nodeValue;if(i==="$")n++;else if(i==="/"){if(n===0)return[t,s];n--}}s.push(t),t=t.nextSibling}return[t,s]}function an(){u.events&&!u.events.queued&&(queueMicrotask(()=>{const{completed:e,events:t}=u;if(t){for(t.queued=!1;t.length;){const[n,s]=t[0];if(!e.has(n))return;t.shift(),Ke(s)}u.done&&(u.events=_$HY.events=null,u.completed=_$HY.completed=null)}}),u.events.queued=!0)}function F(e){return!!u.context&&!u.done&&(!e||e.isConnected)}function Ft(e){return e.toLowerCase().replace(/-([a-z])/g,(t,n)=>n.toUpperCase())}function Ne(e,t,n){const s=t.trim().split(/\s+/);for(let i=0,r=s.length;i<r;i++)e.classList.toggle(s[i],n)}function $e(e,t,n,s,i,r,o){let l,f,d,h,c;if(t==="style")return $t(e,n,s);if(t==="classList")return Nt(e,n,s);if(n===s)return s;if(t==="ref")r||n(e);else if(t.slice(0,3)==="on:"){const m=t.slice(3);s&&e.removeEventListener(m,s,typeof s!="function"&&s),n&&e.addEventListener(m,n,typeof n!="function"&&n)}else if(t.slice(0,10)==="oncapture:"){const m=t.slice(10);s&&e.removeEventListener(m,s,!0),n&&e.addEventListener(m,n,!0)}else if(t.slice(0,2)==="on"){const m=t.slice(2).toLowerCase(),p=St.has(m);if(!p&&s){const b=Array.isArray(s)?s[0]:s;e.removeEventListener(m,b)}(p||n)&&(Pt(e,m,n,p),p&&Et([m]))}else if(t.slice(0,5)==="attr:")ye(e,t.slice(5),n);else if(t.slice(0,5)==="bool:")vt(e,t.slice(5),n);else if((c=t.slice(0,5)==="prop:")||(d=pt.has(t))||!i&&((h=xt(t,e.tagName))||(f=yt.has(t)))||(l=e.nodeName.includes("-")||"is"in o)){if(c)t=t.slice(5),f=!0;else if(F(e))return n;t==="class"||t==="className"?Tt(e,n):l&&!f&&!d?e[Ft(t)]=n:e[h||t]=n}else{const m=i&&t.indexOf(":")>-1&&At[t.split(":")[0]];m?Ot(e,m,t,n):ye(e,bt[t]||t,n)}return n}function Ke(e){if(u.registry&&u.events&&u.events.find(([f,d])=>d===e))return;let t=e.target;const n=`$$${e.type}`,s=e.target,i=e.currentTarget,r=f=>Object.defineProperty(e,"target",{configurable:!0,value:f}),o=()=>{const f=t[n];if(f&&!t.disabled){const d=t[`${n}Data`];if(d!==void 0?f.call(t,d,e):f.call(t,e),e.cancelBubble)return}return t.host&&typeof t.host!="string"&&!t.host._$host&&t.contains(e.target)&&r(t.host),!0},l=()=>{for(;o()&&(t=t._$host||t.parentNode||t.host););};if(Object.defineProperty(e,"currentTarget",{configurable:!0,get(){return t||document}}),u.registry&&!u.done&&(u.done=_$HY.done=!0),e.composedPath){const f=e.composedPath();r(f[0]);for(let d=0;d<f.length-2&&(t=f[d],!!o());d++){if(t._$host){t=t._$host,l();break}if(t.parentNode===i)break}}else l();r(s)}function Q(e,t,n,s,i){const r=F(e);if(r){!n&&(n=[...e.childNodes]);let f=[];for(let d=0;d<n.length;d++){const h=n[d];h.nodeType===8&&h.data.slice(0,2)==="!$"?h.remove():f.push(h)}n=f}for(;typeof n=="function";)n=n();if(t===n)return n;const o=typeof t,l=s!==void 0;if(e=l&&n[0]&&n[0].parentNode||e,o==="string"||o==="number"){if(r||o==="number"&&(t=t.toString(),t===n))return n;if(l){let f=n[0];f&&f.nodeType===3?f.data!==t&&(f.data=t):f=document.createTextNode(t),n=R(e,n,s,f)}else n!==""&&typeof n=="string"?n=e.firstChild.data=t:n=e.textContent=t}else if(t==null||o==="boolean"){if(r)return n;n=R(e,n,s)}else{if(o==="function")return q(()=>{let f=t();for(;typeof f=="function";)f=f();n=Q(e,f,n,s)}),()=>n;if(Array.isArray(t)){const f=[],d=n&&Array.isArray(n);if(be(f,t,n,i))return q(()=>n=Q(e,f,n,s,!0)),()=>n;if(r){if(!f.length)return n;if(s===void 0)return n=[...e.childNodes];let h=f[0];if(h.parentNode!==e)return n;const c=[h];for(;(h=h.nextSibling)!==s;)c.push(h);return n=c}if(f.length===0){if(n=R(e,n,s),l)return n}else d?n.length===0?Le(e,f,s):Ct(e,n,f):(n&&R(e),Le(e,f));n=f}else if(t.nodeType){if(r&&t.parentNode)return n=l?[t]:t;if(Array.isArray(n)){if(l)return n=R(e,n,s,t);R(e,n,null,t)}else n==null||n===""||!e.firstChild?e.appendChild(t):e.replaceChild(t,e.firstChild);n=t}}return n}function be(e,t,n,s){let i=!1;for(let r=0,o=t.length;r<o;r++){let l=t[r],f=n&&n[e.length],d;if(!(l==null||l===!0||l===!1))if((d=typeof l)=="object"&&l.nodeType)e.push(l);else if(Array.isArray(l))i=be(e,l,f)||i;else if(d==="function")if(s){for(;typeof l=="function";)l=l();i=be(e,Array.isArray(l)?l:[l],Array.isArray(f)?f:[f])||i}else e.push(l),i=!0;else{const h=String(l);f&&f.nodeType===3&&f.data===h?e.push(f):e.push(document.createTextNode(h))}}return i}function Le(e,t,n=null){for(let s=0,i=t.length;s<i;s++)e.insertBefore(t[s],n)}function R(e,t,n,s){if(n===void 0)return e.textContent="";const i=s||document.createTextNode("");if(t.length){let r=!1;for(let o=t.length-1;o>=0;o--){const l=t[o];if(i!==l){const f=l.parentNode===e;!r&&!o?f?e.replaceChild(i,l):e.insertBefore(i,n):f&&l.remove()}else r=!0}}else e.insertBefore(i,n);return[i]}function Me(e,t){const n=e.querySelectorAll("*[data-hk]");for(let s=0;s<n.length;s++){const i=n[s],r=i.getAttribute("data-hk");(!t||r.startsWith(t))&&!u.registry.has(r)&&u.registry.set(r,i)}}function Vt(){return u.getNextContextId()}const cn=()=>{},dn=!1,_t="http://www.w3.org/2000/svg";function Xe(e,t=!1){return t?document.createElementNS(_t,e):document.createElement(e)}const hn=(...e)=>(ut(),It(...e));function gn(e){const{useShadow:t}=e,n=document.createTextNode(""),s=()=>e.mount||document.body,i=ce();let r,o=!!u.context;return Ve(()=>{o&&(ce().user=o=!1),r||(r=tt(i,()=>C(()=>e.children)));const l=s();if(l instanceof HTMLHeadElement){const[f,d]=M(!1),h=()=>d(!0);_(c=>pe(l,()=>f()?c():r(),null)),Y(h)}else{const f=Xe(e.isSVG?"g":"div",e.isSVG),d=t&&f.attachShadow?f.attachShadow({mode:"open"}):f;Object.defineProperty(f,"_$host",{get(){return n.parentNode},configurable:!0}),pe(d,r),l.appendChild(f),e.ref&&e.ref(f),Y(()=>l.removeChild(f))}},void 0,{render:!o}),n}function Ht(e){const[t,n]=dt(e,["component"]),s=C(()=>t.component);return C(()=>{const i=s();switch(typeof i){case"function":return k(()=>i(n));case"string":const r=kt.has(i),o=u.context?Dt():Xe(i,r);return Lt(o,n,r),o}})}var qt=["html","base","head","link","meta","style","title","body","address","article","aside","footer","header","main","nav","section","body","blockquote","dd","div","dl","dt","figcaption","figure","hr","li","ol","p","pre","ul","a","abbr","b","bdi","bdo","br","cite","code","data","dfn","em","i","kbd","mark","q","rp","rt","ruby","s","samp","small","span","strong","sub","sup","time","u","var","wbr","area","audio","img","map","track","video","embed","iframe","object","param","picture","portal","source","svg","math","canvas","noscript","script","del","ins","caption","col","colgroup","table","tbody","td","tfoot","th","thead","tr","button","datalist","fieldset","form","input","label","legend","meter","optgroup","option","output","progress","select","textarea","details","dialog","menu","summary","details","slot","template","acronym","applet","basefont","bgsound","big","blink","center","content","dir","font","frame","frameset","hgroup","image","keygen","marquee","menuitem","nobr","noembed","noframes","plaintext","rb","rtc","shadow","spacer","strike","tt","xmp","a","abbr","acronym","address","applet","area","article","aside","audio","b","base","basefont","bdi","bdo","bgsound","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","del","details","dfn","dialog","dir","div","dl","dt","em","embed","fieldset","figcaption","figure","font","footer","form","frame","frameset","head","header","h1","h2","h3","h4","h5","h6","hgroup","hr","html","i","iframe","image","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","nobr","noembed","noframes","noscript","object","ol","optgroup","option","output","p","param","picture","plaintext","portal","pre","progress","q","rb","rp","rt","rtc","ruby","s","samp","script","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","tt","u","ul","var","video","wbr","xmp","input"],Gt=["allowfullscreen","async","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","hidden","indeterminate","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected"];new Set(Gt);var Bt=new Set(["altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","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","hkern","image","line","linearGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","set","stop","svg","switch","symbol","text","textPath","tref","tspan","use","view","vkern"]),we=xe(Object.fromEntries([...qt,...Bt.keys()].map(e=>[e,function(t){return t=ct(t,{component:e}),Se(Ht,t)}]))),mn=e=>{let t=J(we);return Se(we.Provider,{get value(){return{...t,...e.components??{}}},get children(){return e.children}})},yn=()=>J(we);export{te as $,ln as A,Ie as B,ze as C,pe as D,Qt as E,Jt as F,tn as G,Ve as H,Ht as I,Yt as J,Ce as K,ye as L,nn as M,un as N,Tt as O,gn as P,on as Q,Zt as R,en as S,Nt as T,fn as U,Mt as V,zt as W,rn as X,mn as Y,hn as Z,yn as _,xe as a,M as b,C as c,q as d,Ut as e,sn as f,ce as g,Rt as h,k as i,dn as j,Se as k,_e as l,_ as m,u as n,Y as o,Kt as p,Et as q,tt as r,Xt as s,ct as t,J as u,cn as v,dt as w,Dt as x,Lt as y,an as z};
