@htmlbricks/hb-checkout-shopping-cart 0.66.2 → 0.66.4

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/main.iife.js CHANGED
@@ -1,5 +1,5 @@
1
- (function(Qt){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const vr=1,_r=4,pr=8,mr=16,gr=1,wr=2,en="[",tn="[!",nn="[?",rn="]",tt={},H=Symbol(),sn="http://www.w3.org/1999/xhtml",yr=!1;var br=Array.isArray,$r=Array.prototype.indexOf,ze=Array.prototype.includes,xr=Array.from,ft=Object.keys,ct=Object.defineProperty,Le=Object.getOwnPropertyDescriptor,Sr=Object.getOwnPropertyDescriptors,Er=Object.prototype,Tr=Array.prototype,an=Object.getPrototypeOf,ln=Object.isExtensible;const Mr=()=>{};function kr(e){for(var t=0;t<e.length;t++)e[t]()}function on(){var e,t,n=new Promise((r,i)=>{e=r,t=i});return{promise:n,resolve:e,reject:t}}const I=2,Be=4,dt=8,un=1<<24,we=16,he=32,ye=64,Nt=128,X=512,j=1024,U=2048,fe=4096,be=8192,se=16384,$e=32768,fn=1<<25,ht=65536,cn=1<<17,dn=1<<18,xe=1<<19,Dr=1<<20,Re=65536,At=1<<21,Ct=1<<22,Se=1<<23,vt=Symbol("$state"),hn=Symbol("legacy props"),Or=Symbol(""),ve=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},Nr=!!globalThis.document?.contentType&&globalThis.document.contentType.includes("xml"),Lt=3,_t=8;function Ar(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Cr(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Lr(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Rr(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Pr(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Ir(){throw new Error("https://svelte.dev/e/hydration_failed")}function jr(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function Yr(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Fr(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Hr(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function qr(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function Rt(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function Ur(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let O=!1;function Ee(e){O=e}let A;function ae(e){if(e===null)throw Rt(),tt;return A=e}function vn(){return ae(ce(A))}function J(e){if(O){if(ce(A)!==null)throw Rt(),tt;A=e}}function zr(e=1){if(O){for(var t=e,n=A;t--;)n=ce(n);A=n}}function Br(e=!0){for(var t=0,n=A;;){if(n.nodeType===_t){var r=n.data;if(r===rn){if(t===0)return n;t-=1}else(r===en||r===tn||r[0]==="["&&!isNaN(Number(r.slice(1))))&&(t+=1)}var i=ce(n);e&&n.remove(),n=i}}function _n(e){return e===this.v}function Vr(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function pn(e){return!Vr(e,this.v)}let Wr=!1,Q=null;function Ve(e){Q=e}function mn(e,t=!1,n){Q={p:Q,i:!1,c:null,e:null,s:e,x:null,r:S,l:null}}function gn(e){var t=Q,n=t.e;if(n!==null){t.e=null;for(var r of n)Hn(r)}return e!==void 0&&(t.x=e),t.i=!0,Q=t.p,e??{}}function wn(){return!0}let Pe=[];function yn(){var e=Pe;Pe=[],kr(e)}function We(e){if(Pe.length===0&&!nt){var t=Pe;queueMicrotask(()=>{t===Pe&&yn()})}Pe.push(e)}function Jr(){for(;Pe.length>0;)yn()}function bn(e){var t=S;if(t===null)return x.f|=Se,e;if((t.f&$e)===0&&(t.f&Be)===0)throw e;Te(e,t)}function Te(e,t){for(;t!==null;){if((t.f&Nt)!==0){if((t.f&$e)===0)throw e;try{t.b.error(e);return}catch(n){e=n}}t=t.parent}throw e}const Gr=-7169;function R(e,t){e.f=e.f&Gr|t}function Pt(e){(e.f&X)!==0||e.deps===null?R(e,j):R(e,fe)}function $n(e){if(e!==null)for(const t of e)(t.f&I)===0||(t.f&Re)===0||(t.f^=Re,$n(t.deps))}function xn(e,t,n){(e.f&U)!==0?t.add(e):(e.f&fe)!==0&&n.add(e),$n(e.deps),R(e,j)}let pt=!1;function Zr(e){var t=pt;try{return pt=!1,[e(),pt]}finally{pt=t}}const Me=new Set;let D=null,le=null,It=null,nt=!1,jt=!1,Je=null,mt=null;var Sn=0;let Kr=1;class ke{id=Kr++;current=new Map;previous=new Map;#e=new Set;#n=new Set;#s=new Map;#o=new Map;#a=null;#t=[];#r=new Set;#i=new Set;#l=new Map;is_fork=!1;#c=!1;#u=new Set;#d(){return this.is_fork||this.#o.size>0}#v(){for(const r of this.#u)for(const i of r.#o.keys()){for(var t=!1,n=i;n.parent!==null;){if(this.#l.has(n)){t=!0;break}n=n.parent}if(!t)return!0}return!1}skip_effect(t){this.#l.has(t)||this.#l.set(t,{d:[],m:[]})}unskip_effect(t){var n=this.#l.get(t);if(n){this.#l.delete(t);for(var r of n.d)R(r,U),this.schedule(r);for(r of n.m)R(r,fe),this.schedule(r)}}#h(){if(Sn++>1e3&&(Me.delete(this),Xr()),!this.#d()){for(const l of this.#r)this.#i.delete(l),R(l,U),this.schedule(l);for(const l of this.#i)R(l,fe),this.schedule(l)}const t=this.#t;this.#t=[],this.apply();var n=Je=[],r=[],i=mt=[];for(const l of t)try{this.#f(l,n,r)}catch(u){throw Dn(l),u}if(D=null,i.length>0){var s=ke.ensure();for(const l of i)s.schedule(l)}if(Je=null,mt=null,this.#d()||this.#v()){this.#_(r),this.#_(n);for(const[l,u]of this.#l)kn(l,u)}else{this.#s.size===0&&Me.delete(this),this.#r.clear(),this.#i.clear();for(const l of this.#e)l(this);this.#e.clear(),En(r),En(n),this.#a?.resolve()}var a=D;if(this.#t.length>0){const l=a??=this;l.#t.push(...this.#t.filter(u=>!l.#t.includes(u)))}a!==null&&(Me.add(a),a.#h()),Me.has(this)||this.#p()}#f(t,n,r){t.f^=j;for(var i=t.first;i!==null;){var s=i.f,a=(s&(he|ye))!==0,l=a&&(s&j)!==0,u=l||(s&be)!==0||this.#l.has(i);if(!u&&i.fn!==null){a?i.f^=j:(s&Be)!==0?n.push(i):st(i)&&((s&we)!==0&&this.#i.add(i),Ke(i));var o=i.first;if(o!==null){i=o;continue}}for(;i!==null;){var f=i.next;if(f!==null){i=f;break}i=i.parent}}}#_(t){for(var n=0;n<t.length;n+=1)xn(t[n],this.#r,this.#i)}capture(t,n,r=!1){n!==H&&!this.previous.has(t)&&this.previous.set(t,n),(t.f&Se)===0&&(this.current.set(t,[t.v,r]),le?.set(t,t.v))}activate(){D=this}deactivate(){D=null,le=null}flush(){try{jt=!0,D=this,this.#h()}finally{Sn=0,It=null,Je=null,mt=null,jt=!1,D=null,le=null,De.clear()}}discard(){for(const t of this.#n)t(this);this.#n.clear(),Me.delete(this)}#p(){for(const o of Me){var t=o.id<this.id,n=[];for(const[f,[_,d]]of this.current){if(o.current.has(f)){var r=o.current.get(f)[0];if(t&&_!==r)o.current.set(f,[_,d]);else continue}n.push(f)}var i=[...o.current.keys()].filter(f=>!this.current.has(f));if(i.length===0)t&&o.discard();else if(n.length>0){o.activate();var s=new Set,a=new Map;for(var l of n)Tn(l,i,s,a);if(o.#t.length>0){o.apply();for(var u of o.#t)o.#f(u,[],[]);o.#t=[]}o.deactivate()}}for(const o of Me)o.#u.has(this)&&(o.#u.delete(this),o.#u.size===0&&!o.#d()&&(o.activate(),o.#h()))}increment(t,n){let r=this.#s.get(n)??0;if(this.#s.set(n,r+1),t){let i=this.#o.get(n)??0;this.#o.set(n,i+1)}}decrement(t,n,r){let i=this.#s.get(n)??0;if(i===1?this.#s.delete(n):this.#s.set(n,i-1),t){let s=this.#o.get(n)??0;s===1?this.#o.delete(n):this.#o.set(n,s-1)}this.#c||r||(this.#c=!0,We(()=>{this.#c=!1,this.flush()}))}transfer_effects(t,n){for(const r of t)this.#r.add(r);for(const r of n)this.#i.add(r);t.clear(),n.clear()}oncommit(t){this.#e.add(t)}ondiscard(t){this.#n.add(t)}settled(){return(this.#a??=on()).promise}static ensure(){if(D===null){const t=D=new ke;jt||(Me.add(D),nt||We(()=>{D===t&&t.flush()}))}return D}apply(){{le=null;return}}schedule(t){if(It=t,t.b?.is_pending&&(t.f&(Be|dt|un))!==0&&(t.f&$e)===0){t.b.defer_effect(t);return}for(var n=t;n.parent!==null;){n=n.parent;var r=n.f;if(Je!==null&&n===S&&(x===null||(x.f&I)===0))return;if((r&(ye|he))!==0){if((r&j)===0)return;n.f^=j}}this.#t.push(n)}}function gt(e){var t=nt;nt=!0;try{for(var n;;){if(Jr(),D===null)return n;D.flush()}}finally{nt=t}}function Xr(){try{Pr()}catch(e){Te(e,It)}}let _e=null;function En(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if((r.f&(se|be))===0&&st(r)&&(_e=new Set,Ke(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&Bn(r),_e?.size>0)){De.clear();for(const i of _e){if((i.f&(se|be))!==0)continue;const s=[i];let a=i.parent;for(;a!==null;)_e.has(a)&&(_e.delete(a),s.push(a)),a=a.parent;for(let l=s.length-1;l>=0;l--){const u=s[l];(u.f&(se|be))===0&&Ke(u)}}_e.clear()}}_e=null}}function Tn(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(const i of e.reactions){const s=i.f;(s&I)!==0?Tn(i,t,n,r):(s&(Ct|we))!==0&&(s&U)===0&&Mn(i,t,r)&&(R(i,U),Yt(i))}}function Mn(e,t,n){const r=n.get(e);if(r!==void 0)return r;if(e.deps!==null)for(const i of e.deps){if(ze.call(t,i))return!0;if((i.f&I)!==0&&Mn(i,t,n))return n.set(i,!0),!0}return n.set(e,!1),!1}function Yt(e){D.schedule(e)}function kn(e,t){if(!((e.f&he)!==0&&(e.f&j)!==0)){(e.f&U)!==0?t.d.push(e):(e.f&fe)!==0&&t.m.push(e),R(e,j);for(var n=e.first;n!==null;)kn(n,t),n=n.next}}function Dn(e){R(e,j);for(var t=e.first;t!==null;)Dn(t),t=t.next}function Qr(e){let t=0,n=rt(0),r;return()=>{Bt()&&(Y(n),qn(()=>(t===0&&(r=tr(()=>e(()=>it(n)))),t+=1,()=>{We(()=>{t-=1,t===0&&(r?.(),r=void 0,it(n))})})))}}var ei=ht|xe;function ti(e,t,n,r){new ni(e,t,n,r)}class ni{parent;is_pending=!1;transform_error;#e;#n=O?A:null;#s;#o;#a;#t=null;#r=null;#i=null;#l=null;#c=0;#u=0;#d=!1;#v=new Set;#h=new Set;#f=null;#_=Qr(()=>(this.#f=rt(this.#c),()=>{this.#f=null}));constructor(t,n,r,i){this.#e=t,this.#s=n,this.#o=s=>{var a=S;a.b=this,a.f|=Nt,r(s)},this.parent=S.b,this.transform_error=i??this.parent?.transform_error??(s=>s),this.#a=Un(()=>{if(O){const s=this.#n;vn();const a=s.data===tn;if(s.data.startsWith(nn)){const u=JSON.parse(s.data.slice(nn.length));this.#b(u)}else a?this.#$():this.#p()}else this.#w()},ei),O&&(this.#e=A)}#p(){try{this.#t=je(()=>this.#o(this.#e))}catch(t){this.error(t)}}#b(t){const n=this.#s.failed;n&&(this.#i=je(()=>{n(this.#e,()=>t,()=>()=>{})}))}#$(){const t=this.#s.pending;t&&(this.is_pending=!0,this.#r=je(()=>t(this.#e)),We(()=>{var n=this.#l=document.createDocumentFragment(),r=Ge();n.append(r),this.#t=this.#g(()=>je(()=>this.#o(r))),this.#u===0&&(this.#e.before(n),this.#l=null,bt(this.#r,()=>{this.#r=null}),this.#m(D))}))}#w(){try{if(this.is_pending=this.has_pending_snippet(),this.#u=0,this.#c=0,this.#t=je(()=>{this.#o(this.#e)}),this.#u>0){var t=this.#l=document.createDocumentFragment();xi(this.#t,t);const n=this.#s.pending;this.#r=je(()=>n(this.#e))}else this.#m(D)}catch(n){this.error(n)}}#m(t){this.is_pending=!1,t.transfer_effects(this.#v,this.#h)}defer_effect(t){xn(t,this.#v,this.#h)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#s.pending}#g(t){var n=S,r=x,i=Q;te(this.#a),z(this.#a),Ve(this.#a.ctx);try{return ke.ensure(),t()}catch(s){return bn(s),null}finally{te(n),z(r),Ve(i)}}#y(t,n){if(!this.has_pending_snippet()){this.parent&&this.parent.#y(t,n);return}this.#u+=t,this.#u===0&&(this.#m(n),this.#r&&bt(this.#r,()=>{this.#r=null}),this.#l&&(this.#e.before(this.#l),this.#l=null))}update_pending_count(t,n){this.#y(t,n),this.#c+=t,!(!this.#f||this.#d)&&(this.#d=!0,We(()=>{this.#d=!1,this.#f&&yt(this.#f,this.#c)}))}get_effect_pending(){return this.#_(),Y(this.#f)}error(t){var n=this.#s.onerror;let r=this.#s.failed;if(!n&&!r)throw t;this.#t&&(oe(this.#t),this.#t=null),this.#r&&(oe(this.#r),this.#r=null),this.#i&&(oe(this.#i),this.#i=null),O&&(ae(this.#n),zr(),ae(Br()));var i=!1,s=!1;const a=()=>{if(i){Ur();return}i=!0,s&&qr(),this.#i!==null&&bt(this.#i,()=>{this.#i=null}),this.#g(()=>{this.#w()})},l=u=>{try{s=!0,n?.(u,a),s=!1}catch(o){Te(o,this.#a&&this.#a.parent)}r&&(this.#i=this.#g(()=>{try{return je(()=>{var o=S;o.b=this,o.f|=Nt,r(this.#e,()=>u,()=>a)})}catch(o){return Te(o,this.#a.parent),null}}))};We(()=>{var u;try{u=this.transform_error(t)}catch(o){Te(o,this.#a&&this.#a.parent);return}u!==null&&typeof u=="object"&&typeof u.then=="function"?u.then(l,o=>Te(o,this.#a&&this.#a.parent)):l(u)})}}function ri(e,t,n,r){const i=Ft;var s=e.filter(d=>!d.settled);if(n.length===0&&s.length===0){r(t.map(i));return}var a=S,l=ii(),u=s.length===1?s[0].promise:s.length>1?Promise.all(s.map(d=>d.promise)):null;function o(d){l();try{r(d)}catch(p){(a.f&se)===0&&Te(p,a)}wt()}if(n.length===0){u.then(()=>o(t.map(i)));return}var f=On();function _(){Promise.all(n.map(d=>si(d))).then(d=>o([...t.map(i),...d])).catch(d=>Te(d,a)).finally(()=>f())}u?u.then(()=>{l(),_(),wt()}):_()}function ii(){var e=S,t=x,n=Q,r=D;return function(s=!0){te(e),z(t),Ve(n),s&&(e.f&se)===0&&(r?.activate(),r?.apply())}}function wt(e=!0){te(null),z(null),Ve(null),e&&D?.deactivate()}function On(){var e=S,t=e.b,n=D,r=t.is_rendered();return t.update_pending_count(1,n),n.increment(r,e),(i=!1)=>{t.update_pending_count(-1,n),n.decrement(r,e,i)}}function Ft(e){var t=I|U,n=x!==null&&(x.f&I)!==0?x:null;return S!==null&&(S.f|=xe),{ctx:Q,deps:null,effects:null,equals:_n,f:t,fn:e,reactions:null,rv:0,v:H,wv:0,parent:n??S,ac:null}}function si(e,t,n){let r=S;r===null&&Ar();var i=void 0,s=rt(H),a=!x,l=new Map;return yi(()=>{var u=S,o=on();i=o.promise;try{Promise.resolve(e()).then(o.resolve,o.reject).finally(wt)}catch(p){o.reject(p),wt()}var f=D;if(a){if((u.f&$e)!==0)var _=On();if(r.b.is_rendered())l.get(f)?.reject(ve),l.delete(f);else{for(const p of l.values())p.reject(ve);l.clear()}l.set(f,o)}const d=(p,m=void 0)=>{if(_){var E=m===ve;_(E)}if(!(m===ve||(u.f&se)!==0)){if(f.activate(),m)s.f|=Se,yt(s,m);else{(s.f&Se)!==0&&(s.f^=Se),yt(s,p);for(const[M,P]of l){if(l.delete(M),M===f)break;P.reject(ve)}}f.deactivate()}};o.promise.then(d,p=>d(null,p||"unknown"))}),_i(()=>{for(const u of l.values())u.reject(ve)}),new Promise(u=>{function o(f){function _(){f===i?u(s):o(i)}f.then(_,_)}o(i)})}function ai(e){const t=Ft(e);return t.equals=pn,t}function li(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)oe(t[n])}}function oi(e){for(var t=e.parent;t!==null;){if((t.f&I)===0)return(t.f&se)===0?t:null;t=t.parent}return null}function Ht(e){var t,n=S;te(oi(e));try{e.f&=~Re,li(e),t=Xn(e)}finally{te(n)}return t}function Nn(e){var t=e.v,n=Ht(e);if(!e.equals(n)&&(e.wv=Zn(),(!D?.is_fork||e.deps===null)&&(e.v=n,D?.capture(e,t,!0),e.deps===null))){R(e,j);return}Oe||(le!==null?(Bt()||D?.is_fork)&&le.set(e,n):Pt(e))}function ui(e){if(e.effects!==null)for(const t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(ve),t.teardown=Mr,t.ac=null,at(t,0),Wt(t))}function An(e){if(e.effects!==null)for(const t of e.effects)t.teardown&&Ke(t)}let qt=new Set;const De=new Map;let Cn=!1;function rt(e,t){var n={f:0,v:e,reactions:null,equals:_n,rv:0,wv:0};return n}function ee(e,t){const n=rt(e);return Si(n),n}function fi(e,t=!1,n=!0){const r=rt(e);return t||(r.equals=pn),r}function G(e,t,n=!1){x!==null&&(!ue||(x.f&cn)!==0)&&wn()&&(x.f&(I|we|Ct|cn))!==0&&(ne===null||!ze.call(ne,e))&&Hr();let r=n?Ie(t):t;return yt(e,r,mt)}function yt(e,t,n=null){if(!e.equals(t)){var r=e.v;Oe?De.set(e,t):De.set(e,r),e.v=t;var i=ke.ensure();if(i.capture(e,r),(e.f&I)!==0){const s=e;(e.f&U)!==0&&Ht(s),le===null&&Pt(s)}e.wv=Zn(),Ln(e,U,n),S!==null&&(S.f&j)!==0&&(S.f&(he|ye))===0&&(re===null?Ei([e]):re.push(e)),!i.is_fork&&qt.size>0&&!Cn&&ci()}return t}function ci(){Cn=!1;for(const e of qt)(e.f&j)!==0&&R(e,fe),st(e)&&Ke(e);qt.clear()}function it(e){G(e,e.v+1)}function Ln(e,t,n){var r=e.reactions;if(r!==null)for(var i=r.length,s=0;s<i;s++){var a=r[s],l=a.f,u=(l&U)===0;if(u&&R(a,t),(l&I)!==0){var o=a;le?.delete(o),(l&Re)===0&&(l&X&&(a.f|=Re),Ln(o,fe,n))}else if(u){var f=a;(l&we)!==0&&_e!==null&&_e.add(f),n!==null?n.push(f):Yt(f)}}}function Ie(e){if(typeof e!="object"||e===null||vt in e)return e;const t=an(e);if(t!==Er&&t!==Tr)return e;var n=new Map,r=br(e),i=ee(0),s=Fe,a=l=>{if(Fe===s)return l();var u=x,o=Fe;z(null),Gn(s);var f=l();return z(u),Gn(o),f};return r&&n.set("length",ee(e.length)),new Proxy(e,{defineProperty(l,u,o){(!("value"in o)||o.configurable===!1||o.enumerable===!1||o.writable===!1)&&Yr();var f=n.get(u);return f===void 0?a(()=>{var _=ee(o.value);return n.set(u,_),_}):G(f,o.value,!0),!0},deleteProperty(l,u){var o=n.get(u);if(o===void 0){if(u in l){const f=a(()=>ee(H));n.set(u,f),it(i)}}else G(o,H),it(i);return!0},get(l,u,o){if(u===vt)return e;var f=n.get(u),_=u in l;if(f===void 0&&(!_||Le(l,u)?.writable)&&(f=a(()=>{var p=Ie(_?l[u]:H),m=ee(p);return m}),n.set(u,f)),f!==void 0){var d=Y(f);return d===H?void 0:d}return Reflect.get(l,u,o)},getOwnPropertyDescriptor(l,u){var o=Reflect.getOwnPropertyDescriptor(l,u);if(o&&"value"in o){var f=n.get(u);f&&(o.value=Y(f))}else if(o===void 0){var _=n.get(u),d=_?.v;if(_!==void 0&&d!==H)return{enumerable:!0,configurable:!0,value:d,writable:!0}}return o},has(l,u){if(u===vt)return!0;var o=n.get(u),f=o!==void 0&&o.v!==H||Reflect.has(l,u);if(o!==void 0||S!==null&&(!f||Le(l,u)?.writable)){o===void 0&&(o=a(()=>{var d=f?Ie(l[u]):H,p=ee(d);return p}),n.set(u,o));var _=Y(o);if(_===H)return!1}return f},set(l,u,o,f){var _=n.get(u),d=u in l;if(r&&u==="length")for(var p=o;p<_.v;p+=1){var m=n.get(p+"");m!==void 0?G(m,H):p in l&&(m=a(()=>ee(H)),n.set(p+"",m))}if(_===void 0)(!d||Le(l,u)?.writable)&&(_=a(()=>ee(void 0)),G(_,Ie(o)),n.set(u,_));else{d=_.v!==H;var E=a(()=>Ie(o));G(_,E)}var M=Reflect.getOwnPropertyDescriptor(l,u);if(M?.set&&M.set.call(f,o),!d){if(r&&typeof u=="string"){var P=n.get("length"),N=Number(u);Number.isInteger(N)&&N>=P.v&&G(P,N+1)}it(i)}return!0},ownKeys(l){Y(i);var u=Reflect.ownKeys(l).filter(_=>{var d=n.get(_);return d===void 0||d.v!==H});for(var[o,f]of n)f.v!==H&&!(o in l)&&u.push(o);return u},setPrototypeOf(){Fr()}})}var Rn,Pn,In,jn;function Ut(){if(Rn===void 0){Rn=window,Pn=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;In=Le(t,"firstChild").get,jn=Le(t,"nextSibling").get,ln(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),ln(n)&&(n.__t=void 0)}}function Ge(e=""){return document.createTextNode(e)}function Ze(e){return In.call(e)}function ce(e){return jn.call(e)}function Z(e,t){if(!O)return Ze(e);var n=Ze(A);if(n===null)n=A.appendChild(Ge());else if(t&&n.nodeType!==Lt){var r=Ge();return n?.before(r),ae(r),r}return t&&Yn(n),ae(n),n}function pe(e,t=1,n=!1){let r=O?A:e;for(var i;t--;)i=r,r=ce(r);if(!O)return r;if(n){if(r?.nodeType!==Lt){var s=Ge();return r===null?i?.after(s):r.before(s),ae(s),s}Yn(r)}return ae(r),r}function di(e){e.textContent=""}function zt(e,t,n){return document.createElementNS(sn,e,void 0)}function Yn(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===Lt;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function Fn(e){var t=x,n=S;z(null),te(null);try{return e()}finally{z(t),te(n)}}function hi(e){S===null&&(x===null&&Rr(),Lr()),Oe&&Cr()}function vi(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function de(e,t){var n=S;n!==null&&(n.f&be)!==0&&(e|=be);var r={ctx:Q,deps:null,nodes:null,f:e|U|X,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null},i=r;if((e&Be)!==0)Je!==null?Je.push(r):ke.ensure().schedule(r);else if(t!==null){try{Ke(r)}catch(a){throw oe(r),a}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&(i.f&xe)===0&&(i=i.first,(e&we)!==0&&(e&ht)!==0&&i!==null&&(i.f|=ht))}if(i!==null&&(i.parent=n,n!==null&&vi(i,n),x!==null&&(x.f&I)!==0&&(e&ye)===0)){var s=x;(s.effects??=[]).push(i)}return r}function Bt(){return x!==null&&!ue}function _i(e){const t=de(dt,null);return R(t,j),t.teardown=e,t}function pi(e){hi();var t=S.f,n=!x&&(t&he)!==0&&(t&$e)===0;if(n){var r=Q;(r.e??=[]).push(e)}else return Hn(e)}function Hn(e){return de(Be|Dr,e)}function mi(e){ke.ensure();const t=de(ye|xe,e);return()=>{oe(t)}}function gi(e){ke.ensure();const t=de(ye|xe,e);return(n={})=>new Promise(r=>{n.outro?bt(t,()=>{oe(t),r(void 0)}):(oe(t),r(void 0))})}function wi(e){return de(Be,e)}function yi(e){return de(Ct|xe,e)}function qn(e,t=0){return de(dt|t,e)}function Vt(e,t=[],n=[],r=[]){ri(r,t,n,i=>{de(dt,()=>e(...i.map(Y)))})}function Un(e,t=0){var n=de(we|t,e);return n}function je(e){return de(he|xe,e)}function zn(e){var t=e.teardown;if(t!==null){const n=Oe,r=x;Wn(!0),z(null);try{t.call(null)}finally{Wn(n),z(r)}}}function Wt(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const i=n.ac;i!==null&&Fn(()=>{i.abort(ve)});var r=n.next;(n.f&ye)!==0?n.parent=null:oe(n,t),n=r}}function bi(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&he)===0&&oe(t),t=n}}function oe(e,t=!0){var n=!1;(t||(e.f&dn)!==0)&&e.nodes!==null&&e.nodes.end!==null&&($i(e.nodes.start,e.nodes.end),n=!0),R(e,fn),Wt(e,t&&!n),at(e,0);var r=e.nodes&&e.nodes.t;if(r!==null)for(const s of r)s.stop();zn(e),e.f^=fn,e.f|=se;var i=e.parent;i!==null&&i.first!==null&&Bn(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function $i(e,t){for(;e!==null;){var n=e===t?null:ce(e);e.remove(),e=n}}function Bn(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function bt(e,t,n=!0){var r=[];Vn(e,r,!0);var i=()=>{n&&oe(e),t&&t()},s=r.length;if(s>0){var a=()=>--s||i();for(var l of r)l.out(a)}else i()}function Vn(e,t,n){if((e.f&be)===0){e.f^=be;var r=e.nodes&&e.nodes.t;if(r!==null)for(const l of r)(l.is_global||n)&&t.push(l);for(var i=e.first;i!==null;){var s=i.next,a=(i.f&ht)!==0||(i.f&he)!==0&&(e.f&we)!==0;Vn(i,t,a?n:!1),i=s}}}function xi(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var i=n===r?null:ce(n);t.append(n),n=i}}let $t=!1,Oe=!1;function Wn(e){Oe=e}let x=null,ue=!1;function z(e){x=e}let S=null;function te(e){S=e}let ne=null;function Si(e){x!==null&&(ne===null?ne=[e]:ne.push(e))}let B=null,K=0,re=null;function Ei(e){re=e}let Jn=1,Ye=0,Fe=Ye;function Gn(e){Fe=e}function Zn(){return++Jn}function st(e){var t=e.f;if((t&U)!==0)return!0;if(t&I&&(e.f&=~Re),(t&fe)!==0){for(var n=e.deps,r=n.length,i=0;i<r;i++){var s=n[i];if(st(s)&&Nn(s),s.wv>e.wv)return!0}(t&X)!==0&&le===null&&R(e,j)}return!1}function Kn(e,t,n=!0){var r=e.reactions;if(r!==null&&!(ne!==null&&ze.call(ne,e)))for(var i=0;i<r.length;i++){var s=r[i];(s.f&I)!==0?Kn(s,t,!1):t===s&&(n?R(s,U):(s.f&j)!==0&&R(s,fe),Yt(s))}}function Xn(e){var t=B,n=K,r=re,i=x,s=ne,a=Q,l=ue,u=Fe,o=e.f;B=null,K=0,re=null,x=(o&(he|ye))===0?e:null,ne=null,Ve(e.ctx),ue=!1,Fe=++Ye,e.ac!==null&&(Fn(()=>{e.ac.abort(ve)}),e.ac=null);try{e.f|=At;var f=e.fn,_=f();e.f|=$e;var d=e.deps,p=D?.is_fork;if(B!==null){var m;if(p||at(e,K),d!==null&&K>0)for(d.length=K+B.length,m=0;m<B.length;m++)d[K+m]=B[m];else e.deps=d=B;if(Bt()&&(e.f&X)!==0)for(m=K;m<d.length;m++)(d[m].reactions??=[]).push(e)}else!p&&d!==null&&K<d.length&&(at(e,K),d.length=K);if(wn()&&re!==null&&!ue&&d!==null&&(e.f&(I|fe|U))===0)for(m=0;m<re.length;m++)Kn(re[m],e);if(i!==null&&i!==e){if(Ye++,i.deps!==null)for(let E=0;E<n;E+=1)i.deps[E].rv=Ye;if(t!==null)for(const E of t)E.rv=Ye;re!==null&&(r===null?r=re:r.push(...re))}return(e.f&Se)!==0&&(e.f^=Se),_}catch(E){return bn(E)}finally{e.f^=At,B=t,K=n,re=r,x=i,ne=s,Ve(a),ue=l,Fe=u}}function Ti(e,t){let n=t.reactions;if(n!==null){var r=$r.call(n,e);if(r!==-1){var i=n.length-1;i===0?n=t.reactions=null:(n[r]=n[i],n.pop())}}if(n===null&&(t.f&I)!==0&&(B===null||!ze.call(B,t))){var s=t;(s.f&X)!==0&&(s.f^=X,s.f&=~Re),Pt(s),ui(s),at(s,0)}}function at(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)Ti(e,n[r])}function Ke(e){var t=e.f;if((t&se)===0){R(e,j);var n=S,r=$t;S=e,$t=!0;try{(t&(we|un))!==0?bi(e):Wt(e),zn(e);var i=Xn(e);e.teardown=typeof i=="function"?i:null,e.wv=Jn;var s;yr&&Wr&&(e.f&U)!==0&&e.deps}finally{$t=r,S=n}}}function Y(e){var t=e.f,n=(t&I)!==0;if(x!==null&&!ue){var r=S!==null&&(S.f&se)!==0;if(!r&&(ne===null||!ze.call(ne,e))){var i=x.deps;if((x.f&At)!==0)e.rv<Ye&&(e.rv=Ye,B===null&&i!==null&&i[K]===e?K++:B===null?B=[e]:B.push(e));else{(x.deps??=[]).push(e);var s=e.reactions;s===null?e.reactions=[x]:ze.call(s,x)||s.push(x)}}}if(Oe&&De.has(e))return De.get(e);if(n){var a=e;if(Oe){var l=a.v;return((a.f&j)===0&&a.reactions!==null||er(a))&&(l=Ht(a)),De.set(a,l),l}var u=(a.f&X)===0&&!ue&&x!==null&&($t||(x.f&X)!==0),o=(a.f&$e)===0;st(a)&&(u&&(a.f|=X),Nn(a)),u&&!o&&(An(a),Qn(a))}if(le?.has(e))return le.get(e);if((e.f&Se)!==0)throw e.v;return e.v}function Qn(e){if(e.f|=X,e.deps!==null)for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&I)!==0&&(t.f&X)===0&&(An(t),Qn(t))}function er(e){if(e.v===H)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(De.has(t)||(t.f&I)!==0&&er(t))return!0;return!1}function tr(e){var t=ue;try{return ue=!0,e()}finally{ue=t}}const xt=Symbol("events"),Mi=new Set,nr=new Set;let rr=null;function ir(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],s=i[0]||e.target;rr=e;var a=0,l=rr===e&&e[xt];if(l){var u=i.indexOf(l);if(u!==-1&&(t===document||t===window)){e[xt]=t;return}var o=i.indexOf(t);if(o===-1)return;u<=o&&(a=u)}if(s=i[a]||e.target,s!==t){ct(e,"currentTarget",{configurable:!0,get(){return s||n}});var f=x,_=S;z(null),te(null);try{for(var d,p=[];s!==null;){var m=s.assignedSlot||s.parentNode||s.host||null;try{var E=s[xt]?.[r];E!=null&&(!s.disabled||e.target===s)&&E.call(s,e)}catch(M){d?p.push(M):d=M}if(e.cancelBubble||m===t||m===null)break;s=m}if(d){for(let M of p)queueMicrotask(()=>{throw M});throw d}}finally{e[xt]=t,delete e.currentTarget,z(f),te(_)}}}const ki=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:e=>e});function Di(e){return ki?.createHTML(e)??e}function Oi(e){var t=zt("template");return t.innerHTML=Di(e.replaceAll("<!>","<!---->")),t.content}function St(e,t){var n=S;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function sr(e,t){var n=(t&gr)!==0,r=(t&wr)!==0,i,s=!e.startsWith("<!>");return()=>{if(O)return St(A,null),A;i===void 0&&(i=Oi(s?e:"<!>"+e),n||(i=Ze(i)));var a=r||Pn?document.importNode(i,!0):i.cloneNode(!0);if(n){var l=Ze(a),u=a.lastChild;St(l,u)}else St(a,a);return a}}function Jt(e,t){if(O){var n=S;((n.f&$e)===0||n.nodes.end===null)&&(n.nodes.end=A),vn();return}e!==null&&e.before(t)}const Ni=["touchstart","touchmove"];function Ai(e){return Ni.includes(e)}function Et(e,t){var n=t==null?"":typeof t=="object"?`${t}`:t;n!==(e.__t??=e.nodeValue)&&(e.__t=n,e.nodeValue=`${n}`)}function ar(e,t){return lr(e,t)}function Ci(e,t){Ut(),t.intro=t.intro??!1;const n=t.target,r=O,i=A;try{for(var s=Ze(n);s&&(s.nodeType!==_t||s.data!==en);)s=ce(s);if(!s)throw tt;Ee(!0),ae(s);const a=lr(e,{...t,anchor:s});return Ee(!1),a}catch(a){if(a instanceof Error&&a.message.split(`
2
- `).some(l=>l.startsWith("https://svelte.dev/e/")))throw a;return a!==tt&&console.warn("Failed to hydrate: ",a),t.recover===!1&&Ir(),Ut(),di(n),Ee(!1),ar(e,t)}finally{Ee(r),ae(i)}}const Tt=new Map;function lr(e,{target:t,anchor:n,props:r={},events:i,context:s,intro:a=!0,transformError:l}){Ut();var u=void 0,o=gi(()=>{var f=n??t.appendChild(Ge());ti(f,{pending:()=>{}},p=>{mn({});var m=Q;if(s&&(m.c=s),i&&(r.$$events=i),O&&St(p,null),u=e(p,r)||{},O&&(S.nodes.end=A,A===null||A.nodeType!==_t||A.data!==rn))throw Rt(),tt;gn()},l);var _=new Set,d=p=>{for(var m=0;m<p.length;m++){var E=p[m];if(!_.has(E)){_.add(E);var M=Ai(E);for(const V of[t,document]){var P=Tt.get(V);P===void 0&&(P=new Map,Tt.set(V,P));var N=P.get(E);N===void 0?(V.addEventListener(E,ir,{passive:M}),P.set(E,1)):P.set(E,N+1)}}}};return d(xr(Mi)),nr.add(d),()=>{for(var p of _)for(const M of[t,document]){var m=Tt.get(M),E=m.get(p);--E==0?(M.removeEventListener(p,ir),m.delete(p),m.size===0&&Tt.delete(M)):m.set(p,E)}nr.delete(d),f!==n&&f.parentNode?.removeChild(f)}});return Gt.set(u,o),u}let Gt=new WeakMap;function Li(e,t){const n=Gt.get(e);return n?(Gt.delete(e),n(t)):Promise.resolve()}function Ri(e,t){let n=null,r=O;var i;if(O){n=A;for(var s=Ze(document.head);s!==null&&(s.nodeType!==_t||s.data!==e);)s=ce(s);if(s===null)Ee(!1);else{var a=ce(s);s.remove(),ae(a)}}O||(i=document.head.appendChild(Ge()));try{Un(()=>t(i),dn|xe)}finally{r&&(Ee(!0),ae(n))}}function Pi(e,t){wi(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector("#"+t.hash)){const i=zt("style");i.id=t.hash,i.textContent=t.code,r.appendChild(i)}})}function Ii(e,t,n){var r=""+e;return r}function ji(e,t,n,r,i,s){var a=e.__className;if(O||a!==n||a===void 0){var l=Ii(n);(!O||l!==e.getAttribute("class"))&&(l==null?e.removeAttribute("class"):e.className=l),e.__className=n}return s}const Yi=Symbol("is custom element"),Fi=Symbol("is html"),Hi=Nr?"link":"LINK";function qi(e,t,n,r){var i=Ui(e);O&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName===Hi)||i[t]!==(i[t]=n)&&(t==="loading"&&(e[Or]=n),n==null?e.removeAttribute(t):typeof n!="string"&&or(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function Zt(e,t,n){var r=x,i=S;let s=O;O&&Ee(!1),z(null),te(null);try{t!=="style"&&(Kt.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.nodeName.toLowerCase())?or(e).includes(t):n&&typeof n=="object")?e[t]=n:qi(e,t,n==null?n:String(n))}finally{z(r),te(i),s&&Ee(!0)}}function Ui(e){return e.__attributes??={[Yi]:e.nodeName.includes("-"),[Fi]:e.namespaceURI===sn}}var Kt=new Map;function or(e){var t=e.getAttribute("is")||e.nodeName,n=Kt.get(t);if(n)return n;Kt.set(t,n=[]);for(var r,i=e,s=Element.prototype;s!==i;){r=Sr(i);for(var a in r)r[a].set&&n.push(a);i=an(i)}return n}function Xt(e,t,n,r){var i=(n&pr)!==0,s=(n&mr)!==0,a=r,l=!0,u=()=>(l&&(l=!1,a=s?tr(r):r),a);let o;if(i){var f=vt in e||hn in e;o=Le(e,t)?.set??(f&&t in e?N=>e[t]=N:void 0)}var _,d=!1;i?[_,d]=Zr(()=>e[t]):_=e[t],_===void 0&&r!==void 0&&(_=u(),o&&(jr(),o(_)));var p;if(p=()=>{var N=e[t];return N===void 0?u():(l=!0,N)},(n&_r)===0)return p;if(o){var m=e.$$legacy;return(function(N,V){return arguments.length>0?((!V||m||d)&&o(V?p():N),N):p()})}var E=!1,M=((n&vr)!==0?Ft:ai)(()=>(E=!1,p()));i&&Y(M);var P=S;return(function(N,V){if(arguments.length>0){const Ne=V?Y(M):i?Ie(N):N;return G(M,Ne),E=!0,a!==void 0&&(a=Ne),N}return Oe&&E||(P.f&se)!==0?M.v:Y(M)})}function zi(e){return new Bi(e)}class Bi{#e;#n;constructor(t){var n=new Map,r=(s,a)=>{var l=fi(a,!1,!1);return n.set(s,l),l};const i=new Proxy({...t.props||{},$$events:{}},{get(s,a){return Y(n.get(a)??r(a,Reflect.get(s,a)))},has(s,a){return a===hn?!0:(Y(n.get(a)??r(a,Reflect.get(s,a))),Reflect.has(s,a))},set(s,a,l){return G(n.get(a)??r(a,l),l),Reflect.set(s,a,l)}});this.#n=(t.hydrate?Ci:ar)(t.component,{target:t.target,anchor:t.anchor,props:i,context:t.context,intro:t.intro??!1,recover:t.recover,transformError:t.transformError}),(!t?.props?.$$host||t.sync===!1)&&gt(),this.#e=i.$$events;for(const s of Object.keys(this.#n))s==="$set"||s==="$destroy"||s==="$on"||ct(this,s,{get(){return this.#n[s]},set(a){this.#n[s]=a},enumerable:!0});this.#n.$set=s=>{Object.assign(i,s)},this.#n.$destroy=()=>{Li(this.#n)}}$set(t){this.#n.$set(t)}$on(t,n){this.#e[t]=this.#e[t]||[];const r=(...i)=>n.call(this,...i);return this.#e[t].push(r),()=>{this.#e[t]=this.#e[t].filter(i=>i!==r)}}$destroy(){this.#n.$destroy()}}let ur;typeof HTMLElement=="function"&&(ur=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;$$shadowRoot=null;constructor(e,t,n){super(),this.$$ctor=e,this.$$s=t,n&&(this.$$shadowRoot=this.attachShadow(n))}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const r=this.$$c.$on(e,t);this.$$l_u.set(t,r)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){const r=this.$$l_u.get(t);r&&(r(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(r){return i=>{const s=zt("slot");r!=="default"&&(s.name=r),Jt(i,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},n=Vi(this);for(const r of this.$$s)r in n&&(r==="default"&&!this.$$d.children?(this.$$d.children=e(r),t.default=!0):t[r]=e(r));for(const r of this.attributes){const i=this.$$g_p(r.name);i in this.$$d||(this.$$d[i]=Mt(i,r.value,this.$$p_d,"toProp"))}for(const r in this.$$p_d)!(r in this.$$d)&&this[r]!==void 0&&(this.$$d[r]=this[r],delete this[r]);this.$$c=zi({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=mi(()=>{qn(()=>{this.$$r=!0;for(const r of ft(this.$$c)){if(!this.$$p_d[r]?.reflect)continue;this.$$d[r]=this.$$c[r];const i=Mt(r,this.$$d[r],this.$$p_d,"toAttribute");i==null?this.removeAttribute(this.$$p_d[r].attribute||r):this.setAttribute(this.$$p_d[r].attribute||r,i)}this.$$r=!1})});for(const r in this.$$l)for(const i of this.$$l[r]){const s=this.$$c.$on(r,i);this.$$l_u.set(i,s)}this.$$l={}}}attributeChangedCallback(e,t,n){this.$$r||(e=this.$$g_p(e),this.$$d[e]=Mt(e,n,this.$$p_d,"toProp"),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return ft(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function Mt(e,t,n,r){const i=n[e]?.type;if(t=i==="Boolean"&&typeof t!="boolean"?t!=null:t,!r||!n[e])return t;if(r==="toAttribute")switch(i){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t??null;default:return t}else switch(i){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function Vi(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}function Wi(e,t,n,r,i,s){let a=class extends ur{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return ft(t).map(l=>(t[l].attribute||l).toLowerCase())}};return ft(t).forEach(l=>{ct(a.prototype,l,{get(){return this.$$c&&l in this.$$c?this.$$c[l]:this.$$d[l]},set(u){u=Mt(l,u,t),this.$$d[l]=u;var o=this.$$c;if(o){var f=Le(o,l)?.get;f?o[l]=u:o.$set({[l]:u})}}})}),r.forEach(l=>{ct(a.prototype,l,{get(){return this.$$c?.[l]}})}),e.element=a,a}const Ji={version:"0.66.2"};var kt={exports:{}},Dt={exports:{}},Gi=Dt.exports,fr;function Zi(){return fr||(fr=1,(function(e,t){(function(n,r){e.exports=r()})(Gi,(function(){var n=1e3,r=6e4,i=36e5,s="millisecond",a="second",l="minute",u="hour",o="day",f="week",_="month",d="quarter",p="year",m="date",E="Invalid Date",M=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,P=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,N={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(w){var v=["th","st","nd","rd"],c=w%100;return"["+w+(v[(c-20)%10]||v[c]||v[0])+"]"}},V=function(w,v,c){var g=String(w);return!g||g.length>=v?w:""+Array(v+1-g.length).join(c)+w},Ne={s:V,z:function(w){var v=-w.utcOffset(),c=Math.abs(v),g=Math.floor(c/60),h=c%60;return(v<=0?"+":"-")+V(g,2,"0")+":"+V(h,2,"0")},m:function w(v,c){if(v.date()<c.date())return-w(c,v);var g=12*(c.year()-v.year())+(c.month()-v.month()),h=v.clone().add(g,_),y=c-h<0,b=v.clone().add(g+(y?-1:1),_);return+(-(g+(c-h)/(y?h-b:b-h))||0)},a:function(w){return w<0?Math.ceil(w)||0:Math.floor(w)},p:function(w){return{M:_,y:p,w:f,d:o,D:m,h:u,m:l,s:a,ms:s,Q:d}[w]||String(w||"").toLowerCase().replace(/s$/,"")},u:function(w){return w===void 0}},Ae="en",me={};me[Ae]=N;var lt="$isDayjsObject",Xe=function(w){return w instanceof ge||!(!w||!w[lt])},Qe=function w(v,c,g){var h;if(!v)return Ae;if(typeof v=="string"){var y=v.toLowerCase();me[y]&&(h=y),c&&(me[y]=c,h=y);var b=v.split("-");if(!h&&b.length>1)return w(b[0])}else{var k=v.name;me[k]=v,h=k}return!g&&h&&(Ae=h),h||!g&&Ae},C=function(w,v){if(Xe(w))return w.clone();var c=typeof v=="object"?v:{};return c.date=w,c.args=arguments,new ge(c)},T=Ne;T.l=Qe,T.i=Xe,T.w=function(w,v){return C(w,{locale:v.$L,utc:v.$u,x:v.$x,$offset:v.$offset})};var ge=(function(){function w(c){this.$L=Qe(c.locale,null,!0),this.parse(c),this.$x=this.$x||c.x||{},this[lt]=!0}var v=w.prototype;return v.parse=function(c){this.$d=(function(g){var h=g.date,y=g.utc;if(h===null)return new Date(NaN);if(T.u(h))return new Date;if(h instanceof Date)return new Date(h);if(typeof h=="string"&&!/Z$/i.test(h)){var b=h.match(M);if(b){var k=b[2]-1||0,L=(b[7]||"0").substring(0,3);return y?new Date(Date.UTC(b[1],k,b[3]||1,b[4]||0,b[5]||0,b[6]||0,L)):new Date(b[1],k,b[3]||1,b[4]||0,b[5]||0,b[6]||0,L)}}return new Date(h)})(c),this.init()},v.init=function(){var c=this.$d;this.$y=c.getFullYear(),this.$M=c.getMonth(),this.$D=c.getDate(),this.$W=c.getDay(),this.$H=c.getHours(),this.$m=c.getMinutes(),this.$s=c.getSeconds(),this.$ms=c.getMilliseconds()},v.$utils=function(){return T},v.isValid=function(){return this.$d.toString()!==E},v.isSame=function(c,g){var h=C(c);return this.startOf(g)<=h&&h<=this.endOf(g)},v.isAfter=function(c,g){return C(c)<this.startOf(g)},v.isBefore=function(c,g){return this.endOf(g)<C(c)},v.$g=function(c,g,h){return T.u(c)?this[g]:this.set(h,c)},v.unix=function(){return Math.floor(this.valueOf()/1e3)},v.valueOf=function(){return this.$d.getTime()},v.startOf=function(c,g){var h=this,y=!!T.u(g)||g,b=T.p(c),k=function(Ue,W){var Ce=T.w(h.$u?Date.UTC(h.$y,W,Ue):new Date(h.$y,W,Ue),h);return y?Ce:Ce.endOf(o)},L=function(Ue,W){return T.w(h.toDate()[Ue].apply(h.toDate("s"),(y?[0,0,0,0]:[23,59,59,999]).slice(W)),h)},F=this.$W,q=this.$M,ie=this.$D,et="set"+(this.$u?"UTC":"");switch(b){case p:return y?k(1,0):k(31,11);case _:return y?k(1,q):k(0,q+1);case f:var qe=this.$locale().weekStart||0,ot=(F<qe?F+7:F)-qe;return k(y?ie-ot:ie+(6-ot),q);case o:case m:return L(et+"Hours",0);case u:return L(et+"Minutes",1);case l:return L(et+"Seconds",2);case a:return L(et+"Milliseconds",3);default:return this.clone()}},v.endOf=function(c){return this.startOf(c,!1)},v.$set=function(c,g){var h,y=T.p(c),b="set"+(this.$u?"UTC":""),k=(h={},h[o]=b+"Date",h[m]=b+"Date",h[_]=b+"Month",h[p]=b+"FullYear",h[u]=b+"Hours",h[l]=b+"Minutes",h[a]=b+"Seconds",h[s]=b+"Milliseconds",h)[y],L=y===o?this.$D+(g-this.$W):g;if(y===_||y===p){var F=this.clone().set(m,1);F.$d[k](L),F.init(),this.$d=F.set(m,Math.min(this.$D,F.daysInMonth())).$d}else k&&this.$d[k](L);return this.init(),this},v.set=function(c,g){return this.clone().$set(c,g)},v.get=function(c){return this[T.p(c)]()},v.add=function(c,g){var h,y=this;c=Number(c);var b=T.p(g),k=function(q){var ie=C(y);return T.w(ie.date(ie.date()+Math.round(q*c)),y)};if(b===_)return this.set(_,this.$M+c);if(b===p)return this.set(p,this.$y+c);if(b===o)return k(1);if(b===f)return k(7);var L=(h={},h[l]=r,h[u]=i,h[a]=n,h)[b]||1,F=this.$d.getTime()+c*L;return T.w(F,this)},v.subtract=function(c,g){return this.add(-1*c,g)},v.format=function(c){var g=this,h=this.$locale();if(!this.isValid())return h.invalidDate||E;var y=c||"YYYY-MM-DDTHH:mm:ssZ",b=T.z(this),k=this.$H,L=this.$m,F=this.$M,q=h.weekdays,ie=h.months,et=h.meridiem,qe=function(W,Ce,ut,Ot){return W&&(W[Ce]||W(g,y))||ut[Ce].slice(0,Ot)},ot=function(W){return T.s(k%12||12,W,"0")},Ue=et||function(W,Ce,ut){var Ot=W<12?"AM":"PM";return ut?Ot.toLowerCase():Ot};return y.replace(P,(function(W,Ce){return Ce||(function(ut){switch(ut){case"YY":return String(g.$y).slice(-2);case"YYYY":return T.s(g.$y,4,"0");case"M":return F+1;case"MM":return T.s(F+1,2,"0");case"MMM":return qe(h.monthsShort,F,ie,3);case"MMMM":return qe(ie,F);case"D":return g.$D;case"DD":return T.s(g.$D,2,"0");case"d":return String(g.$W);case"dd":return qe(h.weekdaysMin,g.$W,q,2);case"ddd":return qe(h.weekdaysShort,g.$W,q,3);case"dddd":return q[g.$W];case"H":return String(k);case"HH":return T.s(k,2,"0");case"h":return ot(1);case"hh":return ot(2);case"a":return Ue(k,L,!0);case"A":return Ue(k,L,!1);case"m":return String(L);case"mm":return T.s(L,2,"0");case"s":return String(g.$s);case"ss":return T.s(g.$s,2,"0");case"SSS":return T.s(g.$ms,3,"0");case"Z":return b}return null})(W)||b.replace(":","")}))},v.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},v.diff=function(c,g,h){var y,b=this,k=T.p(g),L=C(c),F=(L.utcOffset()-this.utcOffset())*r,q=this-L,ie=function(){return T.m(b,L)};switch(k){case p:y=ie()/12;break;case _:y=ie();break;case d:y=ie()/3;break;case f:y=(q-F)/6048e5;break;case o:y=(q-F)/864e5;break;case u:y=q/i;break;case l:y=q/r;break;case a:y=q/n;break;default:y=q}return h?y:T.a(y)},v.daysInMonth=function(){return this.endOf(_).$D},v.$locale=function(){return me[this.$L]},v.locale=function(c,g){if(!c)return this.$L;var h=this.clone(),y=Qe(c,g,!0);return y&&(h.$L=y),h},v.clone=function(){return T.w(this.$d,this)},v.toDate=function(){return new Date(this.valueOf())},v.toJSON=function(){return this.isValid()?this.toISOString():null},v.toISOString=function(){return this.$d.toISOString()},v.toString=function(){return this.$d.toUTCString()},w})(),$=ge.prototype;return C.prototype=$,[["$ms",s],["$s",a],["$m",l],["$H",u],["$W",o],["$M",_],["$y",p],["$D",m]].forEach((function(w){$[w[1]]=function(v){return this.$g(v,w[0],w[1])}})),C.extend=function(w,v){return w.$i||(w(v,ge,C),w.$i=!0),C},C.locale=Qe,C.isDayjs=Xe,C.unix=function(w){return C(1e3*w)},C.en=me[Ae],C.Ls=me,C.p={},C}))})(Dt)),Dt.exports}var Ki=kt.exports,cr;function Xi(){return cr||(cr=1,(function(e,t){(function(n,r){e.exports=r(Zi())})(Ki,(function(n){function r(a){return a&&typeof a=="object"&&"default"in a?a:{default:a}}var i=r(n),s={name:"it",weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),weekStart:1,monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"tra %s",past:"%s fa",s:"qualche secondo",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},ordinal:function(a){return a+"º"}};return i.default.locale(s,null,!0),s}))})(kt)),kt.exports}Xi();var He={},dr;function Qi(){if(dr)return He;dr=1,Object.defineProperty(He,"__esModule",{value:!0}),He.LanguageTranslator=void 0,He.getChildStyleToPass=e,He.addComponent=t;function e(r,i){var s,a,l="";try{if(r&&i?.length&&(!((s=Object.keys(r))===null||s===void 0)&&s.length)&&(!((a=i?.filter(function(d){return Object.keys(r).includes(d.name)}))===null||a===void 0)&&a.length))for(var u=function(d){var p=i?.filter(function(m){return m.name===d&&m.defaultValue!==r[d]});p&&(l+="".concat(d,":").concat(r[d],";"))},o=0,f=Object.keys(r);o<f.length;o++){var _=f[o];u(_)}}catch(d){console.error("error getting child style to pass",d)}finally{return l}}function t(r){var i,s=((i=r?.repoName.split("/"))===null||i===void 0?void 0:i[1])||r?.repoName;if(!s)throw new Error("wrong componentPath "+r?.repoName);if(!r?.version)throw new Error("wrong version "+r?.version);var a=r?.iifePath||"main.iife.js";if(!document.getElementById(s+"-script"))try{var l=document.createElement("script");if(l.id=s+"-script",l.src="https://cdn.jsdelivr.net/npm/".concat(r.repoName,"@").concat(r.version,"/").concat(a),r?.local)l.src="".concat(r.local);else if(location.href.includes("localhost:6006")){var u=s.split("-")[0];l.src="http://localhost:6006/webcomponents/".concat(s.replace(u+"-",""),"/").concat(a)}document.head.appendChild(l)}catch(o){console.warn(o)}}var n=(function(){function r(i){if(this.lang="",!i?.dictionary)throw new Error("no dictionary provided");this.dictionary=i.dictionary,this.setLang(i?.lang)}return r.prototype.setLang=function(i){i||(i=r.getDefaultLang()),this.lang=i},r.prototype.translateWord=function(i,s){return r.getDictionaryWord(i,this.dictionary,s||this.lang)},r.prototype.translateDate=function(i,s,a){return r.formatDate(i,s,a||this.lang)},r.getDefaultLang=function(){var i,s,a,l="en";return navigator?.languages&&(!((a=(s=(i=navigator.languages[0])===null||i===void 0?void 0:i.split("-")[0])===null||s===void 0?void 0:s.toLowerCase())===null||a===void 0)&&a.length)&&(l=navigator.languages[0].split("-")[0].toLowerCase()),l},r.getDictionaryWord=function(i,s,a){var l;if(!i)throw new Error("no wordKey provided");if(!s)throw new Error("no dictionary provided");if(a&&(!((l=s[a])===null||l===void 0)&&l[i]))return s[a][i];var u="",o=r.getDefaultLang();if(!a||o!==a){var f=s?.[o];f?.[i]&&(u=f[i])}return u},r.formatDate=function(i,s,a){if(!i)throw new Error("no date provided");if(typeof i.getMonth!="function")throw new Error("wrong date format");var l=new Intl.DateTimeFormat(a||r.getDefaultLang(),s);return l.format(i)},r})();return He.LanguageTranslator=n,He}var es=Qi(),ts=sr('<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css" class="svelte-1w6m2e2"/>'),ns=sr('<div id="page" class="container svelte-1w6m2e2"><h3 class="svelte-1w6m2e2"><i style="font-size:0.9em;margin-right:0.2em" class="bi bi-cart-fill svelte-1w6m2e2"></i>Shopping Cart</h3> <div class="row svelte-1w6m2e2" style="margin:40px auto 20px auto"><div class="col svelte-1w6m2e2"><div style="line-height:25px" class="svelte-1w6m2e2"><span style="display:inline-block" class="svelte-1w6m2e2">SubTotale</span> <span style="float:right" class="svelte-1w6m2e2"> </span></div> <div style="line-height:25px" class="svelte-1w6m2e2"><span style="display:inline-block" class="svelte-1w6m2e2">Tasse</span> <span style="float:right" class="svelte-1w6m2e2"> </span></div> <div style="line-height:25px;" class="svelte-1w6m2e2"><span style="display:inline-block" class="svelte-1w6m2e2">Spedizione</span> <span style="float:right" class="svelte-1w6m2e2"> </span></div> <div style="line-height:25px;font-weight:bold" class="svelte-1w6m2e2"><span style="display:inline-block" class="svelte-1w6m2e2">Totale</span> <span style="float:right" class="svelte-1w6m2e2"> </span></div></div></div> <div class="row cart_divider svelte-1w6m2e2"><div class="col svelte-1w6m2e2"><hb-table></hb-table></div></div></div>',2);const rs={hash:"svelte-1w6m2e2",code:`@charset "UTF-8";
1
+ (function(Xt){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const dr=1,hr=4,vr=8,_r=16,pr=1,mr=2,Qt="[",en="[!",tn="[?",nn="]",et={},H=Symbol(),rn="http://www.w3.org/1999/xhtml",gr=!1;var wr=Array.isArray,yr=Array.prototype.indexOf,Ue=Array.prototype.includes,$r=Array.from,ut=Object.keys,ft=Object.defineProperty,Re=Object.getOwnPropertyDescriptor,br=Object.getOwnPropertyDescriptors,xr=Object.prototype,Sr=Array.prototype,sn=Object.getPrototypeOf,an=Object.isExtensible;const Er=()=>{};function Tr(e){for(var t=0;t<e.length;t++)e[t]()}function ln(){var e,t,n=new Promise((r,i)=>{e=r,t=i});return{promise:n,resolve:e,reject:t}}const I=2,ze=4,ct=8,on=1<<24,we=16,he=32,ye=64,Ot=128,X=512,Y=1024,U=2048,fe=4096,$e=8192,se=16384,be=32768,un=1<<25,dt=65536,fn=1<<17,cn=1<<18,xe=1<<19,Mr=1<<20,Le=65536,Nt=1<<21,At=1<<22,Se=1<<23,ht=Symbol("$state"),dn=Symbol("legacy props"),kr=Symbol(""),ve=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},Dr=!!globalThis.document?.contentType&&globalThis.document.contentType.includes("xml"),Ct=3,vt=8;function Or(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Nr(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Ar(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Cr(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Rr(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Lr(){throw new Error("https://svelte.dev/e/hydration_failed")}function Pr(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function Ir(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Yr(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function jr(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Fr(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function Rt(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function Hr(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let O=!1;function Ee(e){O=e}let A;function ae(e){if(e===null)throw Rt(),et;return A=e}function hn(){return ae(ce(A))}function J(e){if(O){if(ce(A)!==null)throw Rt(),et;A=e}}function qr(e=1){if(O){for(var t=e,n=A;t--;)n=ce(n);A=n}}function Ur(e=!0){for(var t=0,n=A;;){if(n.nodeType===vt){var r=n.data;if(r===nn){if(t===0)return n;t-=1}else(r===Qt||r===en||r[0]==="["&&!isNaN(Number(r.slice(1))))&&(t+=1)}var i=ce(n);e&&n.remove(),n=i}}function vn(e){return e===this.v}function zr(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function _n(e){return!zr(e,this.v)}let Br=!1,Q=null;function Be(e){Q=e}function pn(e,t=!1,n){Q={p:Q,i:!1,c:null,e:null,s:e,x:null,r:S,l:null}}function mn(e){var t=Q,n=t.e;if(n!==null){t.e=null;for(var r of n)Fn(r)}return e!==void 0&&(t.x=e),t.i=!0,Q=t.p,e??{}}function gn(){return!0}let Pe=[];function wn(){var e=Pe;Pe=[],Tr(e)}function Ve(e){if(Pe.length===0&&!tt){var t=Pe;queueMicrotask(()=>{t===Pe&&wn()})}Pe.push(e)}function Vr(){for(;Pe.length>0;)wn()}function yn(e){var t=S;if(t===null)return x.f|=Se,e;if((t.f&be)===0&&(t.f&ze)===0)throw e;Te(e,t)}function Te(e,t){for(;t!==null;){if((t.f&Ot)!==0){if((t.f&be)===0)throw e;try{t.b.error(e);return}catch(n){e=n}}t=t.parent}throw e}const Wr=-7169;function L(e,t){e.f=e.f&Wr|t}function Lt(e){(e.f&X)!==0||e.deps===null?L(e,Y):L(e,fe)}function $n(e){if(e!==null)for(const t of e)(t.f&I)===0||(t.f&Le)===0||(t.f^=Le,$n(t.deps))}function bn(e,t,n){(e.f&U)!==0?t.add(e):(e.f&fe)!==0&&n.add(e),$n(e.deps),L(e,Y)}let _t=!1;function Jr(e){var t=_t;try{return _t=!1,[e(),_t]}finally{_t=t}}const Me=new Set;let D=null,le=null,Pt=null,tt=!1,It=!1,We=null,pt=null;var xn=0;let Gr=1;class ke{id=Gr++;current=new Map;previous=new Map;#e=new Set;#n=new Set;#s=new Map;#o=new Map;#a=null;#t=[];#r=new Set;#i=new Set;#l=new Map;is_fork=!1;#c=!1;#u=new Set;#d(){return this.is_fork||this.#o.size>0}#v(){for(const r of this.#u)for(const i of r.#o.keys()){for(var t=!1,n=i;n.parent!==null;){if(this.#l.has(n)){t=!0;break}n=n.parent}if(!t)return!0}return!1}skip_effect(t){this.#l.has(t)||this.#l.set(t,{d:[],m:[]})}unskip_effect(t){var n=this.#l.get(t);if(n){this.#l.delete(t);for(var r of n.d)L(r,U),this.schedule(r);for(r of n.m)L(r,fe),this.schedule(r)}}#h(){if(xn++>1e3&&(Me.delete(this),Kr()),!this.#d()){for(const l of this.#r)this.#i.delete(l),L(l,U),this.schedule(l);for(const l of this.#i)L(l,fe),this.schedule(l)}const t=this.#t;this.#t=[],this.apply();var n=We=[],r=[],i=pt=[];for(const l of t)try{this.#f(l,n,r)}catch(u){throw kn(l),u}if(D=null,i.length>0){var s=ke.ensure();for(const l of i)s.schedule(l)}if(We=null,pt=null,this.#d()||this.#v()){this.#_(r),this.#_(n);for(const[l,u]of this.#l)Mn(l,u)}else{this.#s.size===0&&Me.delete(this),this.#r.clear(),this.#i.clear();for(const l of this.#e)l(this);this.#e.clear(),Sn(r),Sn(n),this.#a?.resolve()}var a=D;if(this.#t.length>0){const l=a??=this;l.#t.push(...this.#t.filter(u=>!l.#t.includes(u)))}a!==null&&(Me.add(a),a.#h()),Me.has(this)||this.#p()}#f(t,n,r){t.f^=Y;for(var i=t.first;i!==null;){var s=i.f,a=(s&(he|ye))!==0,l=a&&(s&Y)!==0,u=l||(s&$e)!==0||this.#l.has(i);if(!u&&i.fn!==null){a?i.f^=Y:(s&ze)!==0?n.push(i):it(i)&&((s&we)!==0&&this.#i.add(i),Ke(i));var o=i.first;if(o!==null){i=o;continue}}for(;i!==null;){var c=i.next;if(c!==null){i=c;break}i=i.parent}}}#_(t){for(var n=0;n<t.length;n+=1)bn(t[n],this.#r,this.#i)}capture(t,n,r=!1){n!==H&&!this.previous.has(t)&&this.previous.set(t,n),(t.f&Se)===0&&(this.current.set(t,[t.v,r]),le?.set(t,t.v))}activate(){D=this}deactivate(){D=null,le=null}flush(){try{It=!0,D=this,this.#h()}finally{xn=0,Pt=null,We=null,pt=null,It=!1,D=null,le=null,De.clear()}}discard(){for(const t of this.#n)t(this);this.#n.clear(),Me.delete(this)}#p(){for(const o of Me){var t=o.id<this.id,n=[];for(const[c,[v,_]]of this.current){if(o.current.has(c)){var r=o.current.get(c)[0];if(t&&v!==r)o.current.set(c,[v,_]);else continue}n.push(c)}var i=[...o.current.keys()].filter(c=>!this.current.has(c));if(i.length===0)t&&o.discard();else if(n.length>0){o.activate();var s=new Set,a=new Map;for(var l of n)En(l,i,s,a);if(o.#t.length>0){o.apply();for(var u of o.#t)o.#f(u,[],[]);o.#t=[]}o.deactivate()}}for(const o of Me)o.#u.has(this)&&(o.#u.delete(this),o.#u.size===0&&!o.#d()&&(o.activate(),o.#h()))}increment(t,n){let r=this.#s.get(n)??0;if(this.#s.set(n,r+1),t){let i=this.#o.get(n)??0;this.#o.set(n,i+1)}}decrement(t,n,r){let i=this.#s.get(n)??0;if(i===1?this.#s.delete(n):this.#s.set(n,i-1),t){let s=this.#o.get(n)??0;s===1?this.#o.delete(n):this.#o.set(n,s-1)}this.#c||r||(this.#c=!0,Ve(()=>{this.#c=!1,this.flush()}))}transfer_effects(t,n){for(const r of t)this.#r.add(r);for(const r of n)this.#i.add(r);t.clear(),n.clear()}oncommit(t){this.#e.add(t)}ondiscard(t){this.#n.add(t)}settled(){return(this.#a??=ln()).promise}static ensure(){if(D===null){const t=D=new ke;It||(Me.add(D),tt||Ve(()=>{D===t&&t.flush()}))}return D}apply(){{le=null;return}}schedule(t){if(Pt=t,t.b?.is_pending&&(t.f&(ze|ct|on))!==0&&(t.f&be)===0){t.b.defer_effect(t);return}for(var n=t;n.parent!==null;){n=n.parent;var r=n.f;if(We!==null&&n===S&&(x===null||(x.f&I)===0))return;if((r&(ye|he))!==0){if((r&Y)===0)return;n.f^=Y}}this.#t.push(n)}}function mt(e){var t=tt;tt=!0;try{for(var n;;){if(Vr(),D===null)return n;D.flush()}}finally{tt=t}}function Kr(){try{Rr()}catch(e){Te(e,Pt)}}let _e=null;function Sn(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if((r.f&(se|$e))===0&&it(r)&&(_e=new Set,Ke(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&zn(r),_e?.size>0)){De.clear();for(const i of _e){if((i.f&(se|$e))!==0)continue;const s=[i];let a=i.parent;for(;a!==null;)_e.has(a)&&(_e.delete(a),s.push(a)),a=a.parent;for(let l=s.length-1;l>=0;l--){const u=s[l];(u.f&(se|$e))===0&&Ke(u)}}_e.clear()}}_e=null}}function En(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(const i of e.reactions){const s=i.f;(s&I)!==0?En(i,t,n,r):(s&(At|we))!==0&&(s&U)===0&&Tn(i,t,r)&&(L(i,U),Yt(i))}}function Tn(e,t,n){const r=n.get(e);if(r!==void 0)return r;if(e.deps!==null)for(const i of e.deps){if(Ue.call(t,i))return!0;if((i.f&I)!==0&&Tn(i,t,n))return n.set(i,!0),!0}return n.set(e,!1),!1}function Yt(e){D.schedule(e)}function Mn(e,t){if(!((e.f&he)!==0&&(e.f&Y)!==0)){(e.f&U)!==0?t.d.push(e):(e.f&fe)!==0&&t.m.push(e),L(e,Y);for(var n=e.first;n!==null;)Mn(n,t),n=n.next}}function kn(e){L(e,Y);for(var t=e.first;t!==null;)kn(t),t=t.next}function Zr(e){let t=0,n=nt(0),r;return()=>{zt()&&(j(n),Hn(()=>(t===0&&(r=er(()=>e(()=>rt(n)))),t+=1,()=>{Ve(()=>{t-=1,t===0&&(r?.(),r=void 0,rt(n))})})))}}var Xr=dt|xe;function Qr(e,t,n,r){new ei(e,t,n,r)}class ei{parent;is_pending=!1;transform_error;#e;#n=O?A:null;#s;#o;#a;#t=null;#r=null;#i=null;#l=null;#c=0;#u=0;#d=!1;#v=new Set;#h=new Set;#f=null;#_=Zr(()=>(this.#f=nt(this.#c),()=>{this.#f=null}));constructor(t,n,r,i){this.#e=t,this.#s=n,this.#o=s=>{var a=S;a.b=this,a.f|=Ot,r(s)},this.parent=S.b,this.transform_error=i??this.parent?.transform_error??(s=>s),this.#a=qn(()=>{if(O){const s=this.#n;hn();const a=s.data===en;if(s.data.startsWith(tn)){const u=JSON.parse(s.data.slice(tn.length));this.#$(u)}else a?this.#b():this.#p()}else this.#w()},Xr),O&&(this.#e=A)}#p(){try{this.#t=Ye(()=>this.#o(this.#e))}catch(t){this.error(t)}}#$(t){const n=this.#s.failed;n&&(this.#i=Ye(()=>{n(this.#e,()=>t,()=>()=>{})}))}#b(){const t=this.#s.pending;t&&(this.is_pending=!0,this.#r=Ye(()=>t(this.#e)),Ve(()=>{var n=this.#l=document.createDocumentFragment(),r=Je();n.append(r),this.#t=this.#g(()=>Ye(()=>this.#o(r))),this.#u===0&&(this.#e.before(n),this.#l=null,yt(this.#r,()=>{this.#r=null}),this.#m(D))}))}#w(){try{if(this.is_pending=this.has_pending_snippet(),this.#u=0,this.#c=0,this.#t=Ye(()=>{this.#o(this.#e)}),this.#u>0){var t=this.#l=document.createDocumentFragment();$i(this.#t,t);const n=this.#s.pending;this.#r=Ye(()=>n(this.#e))}else this.#m(D)}catch(n){this.error(n)}}#m(t){this.is_pending=!1,t.transfer_effects(this.#v,this.#h)}defer_effect(t){bn(t,this.#v,this.#h)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#s.pending}#g(t){var n=S,r=x,i=Q;te(this.#a),z(this.#a),Be(this.#a.ctx);try{return ke.ensure(),t()}catch(s){return yn(s),null}finally{te(n),z(r),Be(i)}}#y(t,n){if(!this.has_pending_snippet()){this.parent&&this.parent.#y(t,n);return}this.#u+=t,this.#u===0&&(this.#m(n),this.#r&&yt(this.#r,()=>{this.#r=null}),this.#l&&(this.#e.before(this.#l),this.#l=null))}update_pending_count(t,n){this.#y(t,n),this.#c+=t,!(!this.#f||this.#d)&&(this.#d=!0,Ve(()=>{this.#d=!1,this.#f&&wt(this.#f,this.#c)}))}get_effect_pending(){return this.#_(),j(this.#f)}error(t){var n=this.#s.onerror;let r=this.#s.failed;if(!n&&!r)throw t;this.#t&&(oe(this.#t),this.#t=null),this.#r&&(oe(this.#r),this.#r=null),this.#i&&(oe(this.#i),this.#i=null),O&&(ae(this.#n),qr(),ae(Ur()));var i=!1,s=!1;const a=()=>{if(i){Hr();return}i=!0,s&&Fr(),this.#i!==null&&yt(this.#i,()=>{this.#i=null}),this.#g(()=>{this.#w()})},l=u=>{try{s=!0,n?.(u,a),s=!1}catch(o){Te(o,this.#a&&this.#a.parent)}r&&(this.#i=this.#g(()=>{try{return Ye(()=>{var o=S;o.b=this,o.f|=Ot,r(this.#e,()=>u,()=>a)})}catch(o){return Te(o,this.#a.parent),null}}))};Ve(()=>{var u;try{u=this.transform_error(t)}catch(o){Te(o,this.#a&&this.#a.parent);return}u!==null&&typeof u=="object"&&typeof u.then=="function"?u.then(l,o=>Te(o,this.#a&&this.#a.parent)):l(u)})}}function ti(e,t,n,r){const i=jt;var s=e.filter(_=>!_.settled);if(n.length===0&&s.length===0){r(t.map(i));return}var a=S,l=ni(),u=s.length===1?s[0].promise:s.length>1?Promise.all(s.map(_=>_.promise)):null;function o(_){l();try{r(_)}catch(p){(a.f&se)===0&&Te(p,a)}gt()}if(n.length===0){u.then(()=>o(t.map(i)));return}var c=Dn();function v(){Promise.all(n.map(_=>ri(_))).then(_=>o([...t.map(i),..._])).catch(_=>Te(_,a)).finally(()=>c())}u?u.then(()=>{l(),v(),gt()}):v()}function ni(){var e=S,t=x,n=Q,r=D;return function(s=!0){te(e),z(t),Be(n),s&&(e.f&se)===0&&(r?.activate(),r?.apply())}}function gt(e=!0){te(null),z(null),Be(null),e&&D?.deactivate()}function Dn(){var e=S,t=e.b,n=D,r=t.is_rendered();return t.update_pending_count(1,n),n.increment(r,e),(i=!1)=>{t.update_pending_count(-1,n),n.decrement(r,e,i)}}function jt(e){var t=I|U,n=x!==null&&(x.f&I)!==0?x:null;return S!==null&&(S.f|=xe),{ctx:Q,deps:null,effects:null,equals:vn,f:t,fn:e,reactions:null,rv:0,v:H,wv:0,parent:n??S,ac:null}}function ri(e,t,n){let r=S;r===null&&Or();var i=void 0,s=nt(H),a=!x,l=new Map;return gi(()=>{var u=S,o=ln();i=o.promise;try{Promise.resolve(e()).then(o.resolve,o.reject).finally(gt)}catch(p){o.reject(p),gt()}var c=D;if(a){if((u.f&be)!==0)var v=Dn();if(r.b.is_rendered())l.get(c)?.reject(ve),l.delete(c);else{for(const p of l.values())p.reject(ve);l.clear()}l.set(c,o)}const _=(p,m=void 0)=>{if(v){var E=m===ve;v(E)}if(!(m===ve||(u.f&se)!==0)){if(c.activate(),m)s.f|=Se,wt(s,m);else{(s.f&Se)!==0&&(s.f^=Se),wt(s,p);for(const[M,P]of l){if(l.delete(M),M===c)break;P.reject(ve)}}c.deactivate()}};o.promise.then(_,p=>_(null,p||"unknown"))}),hi(()=>{for(const u of l.values())u.reject(ve)}),new Promise(u=>{function o(c){function v(){c===i?u(s):o(i)}c.then(v,v)}o(i)})}function ii(e){const t=jt(e);return t.equals=_n,t}function si(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)oe(t[n])}}function ai(e){for(var t=e.parent;t!==null;){if((t.f&I)===0)return(t.f&se)===0?t:null;t=t.parent}return null}function Ft(e){var t,n=S;te(ai(e));try{e.f&=~Le,si(e),t=Zn(e)}finally{te(n)}return t}function On(e){var t=e.v,n=Ft(e);if(!e.equals(n)&&(e.wv=Gn(),(!D?.is_fork||e.deps===null)&&(e.v=n,D?.capture(e,t,!0),e.deps===null))){L(e,Y);return}Oe||(le!==null?(zt()||D?.is_fork)&&le.set(e,n):Lt(e))}function li(e){if(e.effects!==null)for(const t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(ve),t.teardown=Er,t.ac=null,st(t,0),Vt(t))}function Nn(e){if(e.effects!==null)for(const t of e.effects)t.teardown&&Ke(t)}let Ht=new Set;const De=new Map;let An=!1;function nt(e,t){var n={f:0,v:e,reactions:null,equals:vn,rv:0,wv:0};return n}function ee(e,t){const n=nt(e);return bi(n),n}function oi(e,t=!1,n=!0){const r=nt(e);return t||(r.equals=_n),r}function G(e,t,n=!1){x!==null&&(!ue||(x.f&fn)!==0)&&gn()&&(x.f&(I|we|At|fn))!==0&&(ne===null||!Ue.call(ne,e))&&jr();let r=n?Ie(t):t;return wt(e,r,pt)}function wt(e,t,n=null){if(!e.equals(t)){var r=e.v;Oe?De.set(e,t):De.set(e,r),e.v=t;var i=ke.ensure();if(i.capture(e,r),(e.f&I)!==0){const s=e;(e.f&U)!==0&&Ft(s),le===null&&Lt(s)}e.wv=Gn(),Cn(e,U,n),S!==null&&(S.f&Y)!==0&&(S.f&(he|ye))===0&&(re===null?xi([e]):re.push(e)),!i.is_fork&&Ht.size>0&&!An&&ui()}return t}function ui(){An=!1;for(const e of Ht)(e.f&Y)!==0&&L(e,fe),it(e)&&Ke(e);Ht.clear()}function rt(e){G(e,e.v+1)}function Cn(e,t,n){var r=e.reactions;if(r!==null)for(var i=r.length,s=0;s<i;s++){var a=r[s],l=a.f,u=(l&U)===0;if(u&&L(a,t),(l&I)!==0){var o=a;le?.delete(o),(l&Le)===0&&(l&X&&(a.f|=Le),Cn(o,fe,n))}else if(u){var c=a;(l&we)!==0&&_e!==null&&_e.add(c),n!==null?n.push(c):Yt(c)}}}function Ie(e){if(typeof e!="object"||e===null||ht in e)return e;const t=sn(e);if(t!==xr&&t!==Sr)return e;var n=new Map,r=wr(e),i=ee(0),s=Fe,a=l=>{if(Fe===s)return l();var u=x,o=Fe;z(null),Jn(s);var c=l();return z(u),Jn(o),c};return r&&n.set("length",ee(e.length)),new Proxy(e,{defineProperty(l,u,o){(!("value"in o)||o.configurable===!1||o.enumerable===!1||o.writable===!1)&&Ir();var c=n.get(u);return c===void 0?a(()=>{var v=ee(o.value);return n.set(u,v),v}):G(c,o.value,!0),!0},deleteProperty(l,u){var o=n.get(u);if(o===void 0){if(u in l){const c=a(()=>ee(H));n.set(u,c),rt(i)}}else G(o,H),rt(i);return!0},get(l,u,o){if(u===ht)return e;var c=n.get(u),v=u in l;if(c===void 0&&(!v||Re(l,u)?.writable)&&(c=a(()=>{var p=Ie(v?l[u]:H),m=ee(p);return m}),n.set(u,c)),c!==void 0){var _=j(c);return _===H?void 0:_}return Reflect.get(l,u,o)},getOwnPropertyDescriptor(l,u){var o=Reflect.getOwnPropertyDescriptor(l,u);if(o&&"value"in o){var c=n.get(u);c&&(o.value=j(c))}else if(o===void 0){var v=n.get(u),_=v?.v;if(v!==void 0&&_!==H)return{enumerable:!0,configurable:!0,value:_,writable:!0}}return o},has(l,u){if(u===ht)return!0;var o=n.get(u),c=o!==void 0&&o.v!==H||Reflect.has(l,u);if(o!==void 0||S!==null&&(!c||Re(l,u)?.writable)){o===void 0&&(o=a(()=>{var _=c?Ie(l[u]):H,p=ee(_);return p}),n.set(u,o));var v=j(o);if(v===H)return!1}return c},set(l,u,o,c){var v=n.get(u),_=u in l;if(r&&u==="length")for(var p=o;p<v.v;p+=1){var m=n.get(p+"");m!==void 0?G(m,H):p in l&&(m=a(()=>ee(H)),n.set(p+"",m))}if(v===void 0)(!_||Re(l,u)?.writable)&&(v=a(()=>ee(void 0)),G(v,Ie(o)),n.set(u,v));else{_=v.v!==H;var E=a(()=>Ie(o));G(v,E)}var M=Reflect.getOwnPropertyDescriptor(l,u);if(M?.set&&M.set.call(c,o),!_){if(r&&typeof u=="string"){var P=n.get("length"),N=Number(u);Number.isInteger(N)&&N>=P.v&&G(P,N+1)}rt(i)}return!0},ownKeys(l){j(i);var u=Reflect.ownKeys(l).filter(v=>{var _=n.get(v);return _===void 0||_.v!==H});for(var[o,c]of n)c.v!==H&&!(o in l)&&u.push(o);return u},setPrototypeOf(){Yr()}})}var Rn,Ln,Pn,In;function qt(){if(Rn===void 0){Rn=window,Ln=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;Pn=Re(t,"firstChild").get,In=Re(t,"nextSibling").get,an(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),an(n)&&(n.__t=void 0)}}function Je(e=""){return document.createTextNode(e)}function Ge(e){return Pn.call(e)}function ce(e){return In.call(e)}function K(e,t){if(!O)return Ge(e);var n=Ge(A);if(n===null)n=A.appendChild(Je());else if(t&&n.nodeType!==Ct){var r=Je();return n?.before(r),ae(r),r}return t&&Yn(n),ae(n),n}function pe(e,t=1,n=!1){let r=O?A:e;for(var i;t--;)i=r,r=ce(r);if(!O)return r;if(n){if(r?.nodeType!==Ct){var s=Je();return r===null?i?.after(s):r.before(s),ae(s),s}Yn(r)}return ae(r),r}function fi(e){e.textContent=""}function Ut(e,t,n){return document.createElementNS(rn,e,void 0)}function Yn(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===Ct;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function jn(e){var t=x,n=S;z(null),te(null);try{return e()}finally{z(t),te(n)}}function ci(e){S===null&&(x===null&&Cr(),Ar()),Oe&&Nr()}function di(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function de(e,t){var n=S;n!==null&&(n.f&$e)!==0&&(e|=$e);var r={ctx:Q,deps:null,nodes:null,f:e|U|X,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null},i=r;if((e&ze)!==0)We!==null?We.push(r):ke.ensure().schedule(r);else if(t!==null){try{Ke(r)}catch(a){throw oe(r),a}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&(i.f&xe)===0&&(i=i.first,(e&we)!==0&&(e&dt)!==0&&i!==null&&(i.f|=dt))}if(i!==null&&(i.parent=n,n!==null&&di(i,n),x!==null&&(x.f&I)!==0&&(e&ye)===0)){var s=x;(s.effects??=[]).push(i)}return r}function zt(){return x!==null&&!ue}function hi(e){const t=de(ct,null);return L(t,Y),t.teardown=e,t}function vi(e){ci();var t=S.f,n=!x&&(t&he)!==0&&(t&be)===0;if(n){var r=Q;(r.e??=[]).push(e)}else return Fn(e)}function Fn(e){return de(ze|Mr,e)}function _i(e){ke.ensure();const t=de(ye|xe,e);return()=>{oe(t)}}function pi(e){ke.ensure();const t=de(ye|xe,e);return(n={})=>new Promise(r=>{n.outro?yt(t,()=>{oe(t),r(void 0)}):(oe(t),r(void 0))})}function mi(e){return de(ze,e)}function gi(e){return de(At|xe,e)}function Hn(e,t=0){return de(ct|t,e)}function Bt(e,t=[],n=[],r=[]){ti(r,t,n,i=>{de(ct,()=>e(...i.map(j)))})}function qn(e,t=0){var n=de(we|t,e);return n}function Ye(e){return de(he|xe,e)}function Un(e){var t=e.teardown;if(t!==null){const n=Oe,r=x;Vn(!0),z(null);try{t.call(null)}finally{Vn(n),z(r)}}}function Vt(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const i=n.ac;i!==null&&jn(()=>{i.abort(ve)});var r=n.next;(n.f&ye)!==0?n.parent=null:oe(n,t),n=r}}function wi(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&he)===0&&oe(t),t=n}}function oe(e,t=!0){var n=!1;(t||(e.f&cn)!==0)&&e.nodes!==null&&e.nodes.end!==null&&(yi(e.nodes.start,e.nodes.end),n=!0),L(e,un),Vt(e,t&&!n),st(e,0);var r=e.nodes&&e.nodes.t;if(r!==null)for(const s of r)s.stop();Un(e),e.f^=un,e.f|=se;var i=e.parent;i!==null&&i.first!==null&&zn(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function yi(e,t){for(;e!==null;){var n=e===t?null:ce(e);e.remove(),e=n}}function zn(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function yt(e,t,n=!0){var r=[];Bn(e,r,!0);var i=()=>{n&&oe(e),t&&t()},s=r.length;if(s>0){var a=()=>--s||i();for(var l of r)l.out(a)}else i()}function Bn(e,t,n){if((e.f&$e)===0){e.f^=$e;var r=e.nodes&&e.nodes.t;if(r!==null)for(const l of r)(l.is_global||n)&&t.push(l);for(var i=e.first;i!==null;){var s=i.next,a=(i.f&dt)!==0||(i.f&he)!==0&&(e.f&we)!==0;Bn(i,t,a?n:!1),i=s}}}function $i(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var i=n===r?null:ce(n);t.append(n),n=i}}let $t=!1,Oe=!1;function Vn(e){Oe=e}let x=null,ue=!1;function z(e){x=e}let S=null;function te(e){S=e}let ne=null;function bi(e){x!==null&&(ne===null?ne=[e]:ne.push(e))}let B=null,Z=0,re=null;function xi(e){re=e}let Wn=1,je=0,Fe=je;function Jn(e){Fe=e}function Gn(){return++Wn}function it(e){var t=e.f;if((t&U)!==0)return!0;if(t&I&&(e.f&=~Le),(t&fe)!==0){for(var n=e.deps,r=n.length,i=0;i<r;i++){var s=n[i];if(it(s)&&On(s),s.wv>e.wv)return!0}(t&X)!==0&&le===null&&L(e,Y)}return!1}function Kn(e,t,n=!0){var r=e.reactions;if(r!==null&&!(ne!==null&&Ue.call(ne,e)))for(var i=0;i<r.length;i++){var s=r[i];(s.f&I)!==0?Kn(s,t,!1):t===s&&(n?L(s,U):(s.f&Y)!==0&&L(s,fe),Yt(s))}}function Zn(e){var t=B,n=Z,r=re,i=x,s=ne,a=Q,l=ue,u=Fe,o=e.f;B=null,Z=0,re=null,x=(o&(he|ye))===0?e:null,ne=null,Be(e.ctx),ue=!1,Fe=++je,e.ac!==null&&(jn(()=>{e.ac.abort(ve)}),e.ac=null);try{e.f|=Nt;var c=e.fn,v=c();e.f|=be;var _=e.deps,p=D?.is_fork;if(B!==null){var m;if(p||st(e,Z),_!==null&&Z>0)for(_.length=Z+B.length,m=0;m<B.length;m++)_[Z+m]=B[m];else e.deps=_=B;if(zt()&&(e.f&X)!==0)for(m=Z;m<_.length;m++)(_[m].reactions??=[]).push(e)}else!p&&_!==null&&Z<_.length&&(st(e,Z),_.length=Z);if(gn()&&re!==null&&!ue&&_!==null&&(e.f&(I|fe|U))===0)for(m=0;m<re.length;m++)Kn(re[m],e);if(i!==null&&i!==e){if(je++,i.deps!==null)for(let E=0;E<n;E+=1)i.deps[E].rv=je;if(t!==null)for(const E of t)E.rv=je;re!==null&&(r===null?r=re:r.push(...re))}return(e.f&Se)!==0&&(e.f^=Se),v}catch(E){return yn(E)}finally{e.f^=Nt,B=t,Z=n,re=r,x=i,ne=s,Be(a),ue=l,Fe=u}}function Si(e,t){let n=t.reactions;if(n!==null){var r=yr.call(n,e);if(r!==-1){var i=n.length-1;i===0?n=t.reactions=null:(n[r]=n[i],n.pop())}}if(n===null&&(t.f&I)!==0&&(B===null||!Ue.call(B,t))){var s=t;(s.f&X)!==0&&(s.f^=X,s.f&=~Le),Lt(s),li(s),st(s,0)}}function st(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)Si(e,n[r])}function Ke(e){var t=e.f;if((t&se)===0){L(e,Y);var n=S,r=$t;S=e,$t=!0;try{(t&(we|on))!==0?wi(e):Vt(e),Un(e);var i=Zn(e);e.teardown=typeof i=="function"?i:null,e.wv=Wn;var s;gr&&Br&&(e.f&U)!==0&&e.deps}finally{$t=r,S=n}}}function j(e){var t=e.f,n=(t&I)!==0;if(x!==null&&!ue){var r=S!==null&&(S.f&se)!==0;if(!r&&(ne===null||!Ue.call(ne,e))){var i=x.deps;if((x.f&Nt)!==0)e.rv<je&&(e.rv=je,B===null&&i!==null&&i[Z]===e?Z++:B===null?B=[e]:B.push(e));else{(x.deps??=[]).push(e);var s=e.reactions;s===null?e.reactions=[x]:Ue.call(s,x)||s.push(x)}}}if(Oe&&De.has(e))return De.get(e);if(n){var a=e;if(Oe){var l=a.v;return((a.f&Y)===0&&a.reactions!==null||Qn(a))&&(l=Ft(a)),De.set(a,l),l}var u=(a.f&X)===0&&!ue&&x!==null&&($t||(x.f&X)!==0),o=(a.f&be)===0;it(a)&&(u&&(a.f|=X),On(a)),u&&!o&&(Nn(a),Xn(a))}if(le?.has(e))return le.get(e);if((e.f&Se)!==0)throw e.v;return e.v}function Xn(e){if(e.f|=X,e.deps!==null)for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&I)!==0&&(t.f&X)===0&&(Nn(t),Xn(t))}function Qn(e){if(e.v===H)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(De.has(t)||(t.f&I)!==0&&Qn(t))return!0;return!1}function er(e){var t=ue;try{return ue=!0,e()}finally{ue=t}}const bt=Symbol("events"),Ei=new Set,tr=new Set;let nr=null;function rr(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],s=i[0]||e.target;nr=e;var a=0,l=nr===e&&e[bt];if(l){var u=i.indexOf(l);if(u!==-1&&(t===document||t===window)){e[bt]=t;return}var o=i.indexOf(t);if(o===-1)return;u<=o&&(a=u)}if(s=i[a]||e.target,s!==t){ft(e,"currentTarget",{configurable:!0,get(){return s||n}});var c=x,v=S;z(null),te(null);try{for(var _,p=[];s!==null;){var m=s.assignedSlot||s.parentNode||s.host||null;try{var E=s[bt]?.[r];E!=null&&(!s.disabled||e.target===s)&&E.call(s,e)}catch(M){_?p.push(M):_=M}if(e.cancelBubble||m===t||m===null)break;s=m}if(_){for(let M of p)queueMicrotask(()=>{throw M});throw _}}finally{e[bt]=t,delete e.currentTarget,z(c),te(v)}}}const Ti=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:e=>e});function Mi(e){return Ti?.createHTML(e)??e}function ki(e){var t=Ut("template");return t.innerHTML=Mi(e.replaceAll("<!>","<!---->")),t.content}function xt(e,t){var n=S;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function ir(e,t){var n=(t&pr)!==0,r=(t&mr)!==0,i,s=!e.startsWith("<!>");return()=>{if(O)return xt(A,null),A;i===void 0&&(i=ki(s?e:"<!>"+e),n||(i=Ge(i)));var a=r||Ln?document.importNode(i,!0):i.cloneNode(!0);if(n){var l=Ge(a),u=a.lastChild;xt(l,u)}else xt(a,a);return a}}function Wt(e,t){if(O){var n=S;((n.f&be)===0||n.nodes.end===null)&&(n.nodes.end=A),hn();return}e!==null&&e.before(t)}const Di=["touchstart","touchmove"];function Oi(e){return Di.includes(e)}function St(e,t){var n=t==null?"":typeof t=="object"?`${t}`:t;n!==(e.__t??=e.nodeValue)&&(e.__t=n,e.nodeValue=`${n}`)}function sr(e,t){return ar(e,t)}function Ni(e,t){qt(),t.intro=t.intro??!1;const n=t.target,r=O,i=A;try{for(var s=Ge(n);s&&(s.nodeType!==vt||s.data!==Qt);)s=ce(s);if(!s)throw et;Ee(!0),ae(s);const a=ar(e,{...t,anchor:s});return Ee(!1),a}catch(a){if(a instanceof Error&&a.message.split(`
2
+ `).some(l=>l.startsWith("https://svelte.dev/e/")))throw a;return a!==et&&console.warn("Failed to hydrate: ",a),t.recover===!1&&Lr(),qt(),fi(n),Ee(!1),sr(e,t)}finally{Ee(r),ae(i)}}const Et=new Map;function ar(e,{target:t,anchor:n,props:r={},events:i,context:s,intro:a=!0,transformError:l}){qt();var u=void 0,o=pi(()=>{var c=n??t.appendChild(Je());Qr(c,{pending:()=>{}},p=>{pn({});var m=Q;if(s&&(m.c=s),i&&(r.$$events=i),O&&xt(p,null),u=e(p,r)||{},O&&(S.nodes.end=A,A===null||A.nodeType!==vt||A.data!==nn))throw Rt(),et;mn()},l);var v=new Set,_=p=>{for(var m=0;m<p.length;m++){var E=p[m];if(!v.has(E)){v.add(E);var M=Oi(E);for(const V of[t,document]){var P=Et.get(V);P===void 0&&(P=new Map,Et.set(V,P));var N=P.get(E);N===void 0?(V.addEventListener(E,rr,{passive:M}),P.set(E,1)):P.set(E,N+1)}}}};return _($r(Ei)),tr.add(_),()=>{for(var p of v)for(const M of[t,document]){var m=Et.get(M),E=m.get(p);--E==0?(M.removeEventListener(p,rr),m.delete(p),m.size===0&&Et.delete(M)):m.set(p,E)}tr.delete(_),c!==n&&c.parentNode?.removeChild(c)}});return Jt.set(u,o),u}let Jt=new WeakMap;function Ai(e,t){const n=Jt.get(e);return n?(Jt.delete(e),n(t)):Promise.resolve()}function Ci(e,t){let n=null,r=O;var i;if(O){n=A;for(var s=Ge(document.head);s!==null&&(s.nodeType!==vt||s.data!==e);)s=ce(s);if(s===null)Ee(!1);else{var a=ce(s);s.remove(),ae(a)}}O||(i=document.head.appendChild(Je()));try{qn(()=>t(i),cn|xe)}finally{r&&(Ee(!0),ae(n))}}function Ri(e,t){mi(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector("#"+t.hash)){const i=Ut("style");i.id=t.hash,i.textContent=t.code,r.appendChild(i)}})}function Li(e,t,n){var r=""+e;return r}function Pi(e,t,n,r,i,s){var a=e.__className;if(O||a!==n||a===void 0){var l=Li(n);(!O||l!==e.getAttribute("class"))&&(l==null?e.removeAttribute("class"):e.className=l),e.__className=n}return s}const Ii=Symbol("is custom element"),Yi=Symbol("is html"),ji=Dr?"link":"LINK";function Fi(e,t,n,r){var i=Hi(e);O&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName===ji)||i[t]!==(i[t]=n)&&(t==="loading"&&(e[kr]=n),n==null?e.removeAttribute(t):typeof n!="string"&&lr(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function Gt(e,t,n){var r=x,i=S;let s=O;O&&Ee(!1),z(null),te(null);try{t!=="style"&&(Kt.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.nodeName.toLowerCase())?lr(e).includes(t):n&&typeof n=="object")?e[t]=n:Fi(e,t,n==null?n:String(n))}finally{z(r),te(i),s&&Ee(!0)}}function Hi(e){return e.__attributes??={[Ii]:e.nodeName.includes("-"),[Yi]:e.namespaceURI===rn}}var Kt=new Map;function lr(e){var t=e.getAttribute("is")||e.nodeName,n=Kt.get(t);if(n)return n;Kt.set(t,n=[]);for(var r,i=e,s=Element.prototype;s!==i;){r=br(i);for(var a in r)r[a].set&&n.push(a);i=sn(i)}return n}function Zt(e,t,n,r){var i=(n&vr)!==0,s=(n&_r)!==0,a=r,l=!0,u=()=>(l&&(l=!1,a=s?er(r):r),a);let o;if(i){var c=ht in e||dn in e;o=Re(e,t)?.set??(c&&t in e?N=>e[t]=N:void 0)}var v,_=!1;i?[v,_]=Jr(()=>e[t]):v=e[t],v===void 0&&r!==void 0&&(v=u(),o&&(Pr(),o(v)));var p;if(p=()=>{var N=e[t];return N===void 0?u():(l=!0,N)},(n&hr)===0)return p;if(o){var m=e.$$legacy;return(function(N,V){return arguments.length>0?((!V||m||_)&&o(V?p():N),N):p()})}var E=!1,M=((n&dr)!==0?jt:ii)(()=>(E=!1,p()));i&&j(M);var P=S;return(function(N,V){if(arguments.length>0){const Ne=V?j(M):i?Ie(N):N;return G(M,Ne),E=!0,a!==void 0&&(a=Ne),N}return Oe&&E||(P.f&se)!==0?M.v:j(M)})}function qi(e){return new Ui(e)}class Ui{#e;#n;constructor(t){var n=new Map,r=(s,a)=>{var l=oi(a,!1,!1);return n.set(s,l),l};const i=new Proxy({...t.props||{},$$events:{}},{get(s,a){return j(n.get(a)??r(a,Reflect.get(s,a)))},has(s,a){return a===dn?!0:(j(n.get(a)??r(a,Reflect.get(s,a))),Reflect.has(s,a))},set(s,a,l){return G(n.get(a)??r(a,l),l),Reflect.set(s,a,l)}});this.#n=(t.hydrate?Ni:sr)(t.component,{target:t.target,anchor:t.anchor,props:i,context:t.context,intro:t.intro??!1,recover:t.recover,transformError:t.transformError}),(!t?.props?.$$host||t.sync===!1)&&mt(),this.#e=i.$$events;for(const s of Object.keys(this.#n))s==="$set"||s==="$destroy"||s==="$on"||ft(this,s,{get(){return this.#n[s]},set(a){this.#n[s]=a},enumerable:!0});this.#n.$set=s=>{Object.assign(i,s)},this.#n.$destroy=()=>{Ai(this.#n)}}$set(t){this.#n.$set(t)}$on(t,n){this.#e[t]=this.#e[t]||[];const r=(...i)=>n.call(this,...i);return this.#e[t].push(r),()=>{this.#e[t]=this.#e[t].filter(i=>i!==r)}}$destroy(){this.#n.$destroy()}}let or;typeof HTMLElement=="function"&&(or=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;$$shadowRoot=null;constructor(e,t,n){super(),this.$$ctor=e,this.$$s=t,n&&(this.$$shadowRoot=this.attachShadow(n))}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const r=this.$$c.$on(e,t);this.$$l_u.set(t,r)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){const r=this.$$l_u.get(t);r&&(r(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(r){return i=>{const s=Ut("slot");r!=="default"&&(s.name=r),Wt(i,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},n=zi(this);for(const r of this.$$s)r in n&&(r==="default"&&!this.$$d.children?(this.$$d.children=e(r),t.default=!0):t[r]=e(r));for(const r of this.attributes){const i=this.$$g_p(r.name);i in this.$$d||(this.$$d[i]=Tt(i,r.value,this.$$p_d,"toProp"))}for(const r in this.$$p_d)!(r in this.$$d)&&this[r]!==void 0&&(this.$$d[r]=this[r],delete this[r]);this.$$c=qi({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=_i(()=>{Hn(()=>{this.$$r=!0;for(const r of ut(this.$$c)){if(!this.$$p_d[r]?.reflect)continue;this.$$d[r]=this.$$c[r];const i=Tt(r,this.$$d[r],this.$$p_d,"toAttribute");i==null?this.removeAttribute(this.$$p_d[r].attribute||r):this.setAttribute(this.$$p_d[r].attribute||r,i)}this.$$r=!1})});for(const r in this.$$l)for(const i of this.$$l[r]){const s=this.$$c.$on(r,i);this.$$l_u.set(i,s)}this.$$l={}}}attributeChangedCallback(e,t,n){this.$$r||(e=this.$$g_p(e),this.$$d[e]=Tt(e,n,this.$$p_d,"toProp"),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return ut(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function Tt(e,t,n,r){const i=n[e]?.type;if(t=i==="Boolean"&&typeof t!="boolean"?t!=null:t,!r||!n[e])return t;if(r==="toAttribute")switch(i){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t??null;default:return t}else switch(i){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function zi(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}function Bi(e,t,n,r,i,s){let a=class extends or{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return ut(t).map(l=>(t[l].attribute||l).toLowerCase())}};return ut(t).forEach(l=>{ft(a.prototype,l,{get(){return this.$$c&&l in this.$$c?this.$$c[l]:this.$$d[l]},set(u){u=Tt(l,u,t),this.$$d[l]=u;var o=this.$$c;if(o){var c=Re(o,l)?.get;c?o[l]=u:o.$set({[l]:u})}}})}),r.forEach(l=>{ft(a.prototype,l,{get(){return this.$$c?.[l]}})}),e.element=a,a}const Vi={version:"0.66.4"};var Mt={exports:{}},kt={exports:{}},Wi=kt.exports,ur;function Ji(){return ur||(ur=1,(function(e,t){(function(n,r){e.exports=r()})(Wi,(function(){var n=1e3,r=6e4,i=36e5,s="millisecond",a="second",l="minute",u="hour",o="day",c="week",v="month",_="quarter",p="year",m="date",E="Invalid Date",M=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,P=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,N={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(w){var h=["th","st","nd","rd"],f=w%100;return"["+w+(h[(f-20)%10]||h[f]||h[0])+"]"}},V=function(w,h,f){var g=String(w);return!g||g.length>=h?w:""+Array(h+1-g.length).join(f)+w},Ne={s:V,z:function(w){var h=-w.utcOffset(),f=Math.abs(h),g=Math.floor(f/60),d=f%60;return(h<=0?"+":"-")+V(g,2,"0")+":"+V(d,2,"0")},m:function w(h,f){if(h.date()<f.date())return-w(f,h);var g=12*(f.year()-h.year())+(f.month()-h.month()),d=h.clone().add(g,v),y=f-d<0,$=h.clone().add(g+(y?-1:1),v);return+(-(g+(f-d)/(y?d-$:$-d))||0)},a:function(w){return w<0?Math.ceil(w)||0:Math.floor(w)},p:function(w){return{M:v,y:p,w:c,d:o,D:m,h:u,m:l,s:a,ms:s,Q:_}[w]||String(w||"").toLowerCase().replace(/s$/,"")},u:function(w){return w===void 0}},Ae="en",me={};me[Ae]=N;var at="$isDayjsObject",Ze=function(w){return w instanceof ge||!(!w||!w[at])},Xe=function w(h,f,g){var d;if(!h)return Ae;if(typeof h=="string"){var y=h.toLowerCase();me[y]&&(d=y),f&&(me[y]=f,d=y);var $=h.split("-");if(!d&&$.length>1)return w($[0])}else{var k=h.name;me[k]=h,d=k}return!g&&d&&(Ae=d),d||!g&&Ae},C=function(w,h){if(Ze(w))return w.clone();var f=typeof h=="object"?h:{};return f.date=w,f.args=arguments,new ge(f)},T=Ne;T.l=Xe,T.i=Ze,T.w=function(w,h){return C(w,{locale:h.$L,utc:h.$u,x:h.$x,$offset:h.$offset})};var ge=(function(){function w(f){this.$L=Xe(f.locale,null,!0),this.parse(f),this.$x=this.$x||f.x||{},this[at]=!0}var h=w.prototype;return h.parse=function(f){this.$d=(function(g){var d=g.date,y=g.utc;if(d===null)return new Date(NaN);if(T.u(d))return new Date;if(d instanceof Date)return new Date(d);if(typeof d=="string"&&!/Z$/i.test(d)){var $=d.match(M);if($){var k=$[2]-1||0,R=($[7]||"0").substring(0,3);return y?new Date(Date.UTC($[1],k,$[3]||1,$[4]||0,$[5]||0,$[6]||0,R)):new Date($[1],k,$[3]||1,$[4]||0,$[5]||0,$[6]||0,R)}}return new Date(d)})(f),this.init()},h.init=function(){var f=this.$d;this.$y=f.getFullYear(),this.$M=f.getMonth(),this.$D=f.getDate(),this.$W=f.getDay(),this.$H=f.getHours(),this.$m=f.getMinutes(),this.$s=f.getSeconds(),this.$ms=f.getMilliseconds()},h.$utils=function(){return T},h.isValid=function(){return this.$d.toString()!==E},h.isSame=function(f,g){var d=C(f);return this.startOf(g)<=d&&d<=this.endOf(g)},h.isAfter=function(f,g){return C(f)<this.startOf(g)},h.isBefore=function(f,g){return this.endOf(g)<C(f)},h.$g=function(f,g,d){return T.u(f)?this[g]:this.set(d,f)},h.unix=function(){return Math.floor(this.valueOf()/1e3)},h.valueOf=function(){return this.$d.getTime()},h.startOf=function(f,g){var d=this,y=!!T.u(g)||g,$=T.p(f),k=function(qe,W){var Ce=T.w(d.$u?Date.UTC(d.$y,W,qe):new Date(d.$y,W,qe),d);return y?Ce:Ce.endOf(o)},R=function(qe,W){return T.w(d.toDate()[qe].apply(d.toDate("s"),(y?[0,0,0,0]:[23,59,59,999]).slice(W)),d)},F=this.$W,q=this.$M,ie=this.$D,Qe="set"+(this.$u?"UTC":"");switch($){case p:return y?k(1,0):k(31,11);case v:return y?k(1,q):k(0,q+1);case c:var He=this.$locale().weekStart||0,lt=(F<He?F+7:F)-He;return k(y?ie-lt:ie+(6-lt),q);case o:case m:return R(Qe+"Hours",0);case u:return R(Qe+"Minutes",1);case l:return R(Qe+"Seconds",2);case a:return R(Qe+"Milliseconds",3);default:return this.clone()}},h.endOf=function(f){return this.startOf(f,!1)},h.$set=function(f,g){var d,y=T.p(f),$="set"+(this.$u?"UTC":""),k=(d={},d[o]=$+"Date",d[m]=$+"Date",d[v]=$+"Month",d[p]=$+"FullYear",d[u]=$+"Hours",d[l]=$+"Minutes",d[a]=$+"Seconds",d[s]=$+"Milliseconds",d)[y],R=y===o?this.$D+(g-this.$W):g;if(y===v||y===p){var F=this.clone().set(m,1);F.$d[k](R),F.init(),this.$d=F.set(m,Math.min(this.$D,F.daysInMonth())).$d}else k&&this.$d[k](R);return this.init(),this},h.set=function(f,g){return this.clone().$set(f,g)},h.get=function(f){return this[T.p(f)]()},h.add=function(f,g){var d,y=this;f=Number(f);var $=T.p(g),k=function(q){var ie=C(y);return T.w(ie.date(ie.date()+Math.round(q*f)),y)};if($===v)return this.set(v,this.$M+f);if($===p)return this.set(p,this.$y+f);if($===o)return k(1);if($===c)return k(7);var R=(d={},d[l]=r,d[u]=i,d[a]=n,d)[$]||1,F=this.$d.getTime()+f*R;return T.w(F,this)},h.subtract=function(f,g){return this.add(-1*f,g)},h.format=function(f){var g=this,d=this.$locale();if(!this.isValid())return d.invalidDate||E;var y=f||"YYYY-MM-DDTHH:mm:ssZ",$=T.z(this),k=this.$H,R=this.$m,F=this.$M,q=d.weekdays,ie=d.months,Qe=d.meridiem,He=function(W,Ce,ot,Dt){return W&&(W[Ce]||W(g,y))||ot[Ce].slice(0,Dt)},lt=function(W){return T.s(k%12||12,W,"0")},qe=Qe||function(W,Ce,ot){var Dt=W<12?"AM":"PM";return ot?Dt.toLowerCase():Dt};return y.replace(P,(function(W,Ce){return Ce||(function(ot){switch(ot){case"YY":return String(g.$y).slice(-2);case"YYYY":return T.s(g.$y,4,"0");case"M":return F+1;case"MM":return T.s(F+1,2,"0");case"MMM":return He(d.monthsShort,F,ie,3);case"MMMM":return He(ie,F);case"D":return g.$D;case"DD":return T.s(g.$D,2,"0");case"d":return String(g.$W);case"dd":return He(d.weekdaysMin,g.$W,q,2);case"ddd":return He(d.weekdaysShort,g.$W,q,3);case"dddd":return q[g.$W];case"H":return String(k);case"HH":return T.s(k,2,"0");case"h":return lt(1);case"hh":return lt(2);case"a":return qe(k,R,!0);case"A":return qe(k,R,!1);case"m":return String(R);case"mm":return T.s(R,2,"0");case"s":return String(g.$s);case"ss":return T.s(g.$s,2,"0");case"SSS":return T.s(g.$ms,3,"0");case"Z":return $}return null})(W)||$.replace(":","")}))},h.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},h.diff=function(f,g,d){var y,$=this,k=T.p(g),R=C(f),F=(R.utcOffset()-this.utcOffset())*r,q=this-R,ie=function(){return T.m($,R)};switch(k){case p:y=ie()/12;break;case v:y=ie();break;case _:y=ie()/3;break;case c:y=(q-F)/6048e5;break;case o:y=(q-F)/864e5;break;case u:y=q/i;break;case l:y=q/r;break;case a:y=q/n;break;default:y=q}return d?y:T.a(y)},h.daysInMonth=function(){return this.endOf(v).$D},h.$locale=function(){return me[this.$L]},h.locale=function(f,g){if(!f)return this.$L;var d=this.clone(),y=Xe(f,g,!0);return y&&(d.$L=y),d},h.clone=function(){return T.w(this.$d,this)},h.toDate=function(){return new Date(this.valueOf())},h.toJSON=function(){return this.isValid()?this.toISOString():null},h.toISOString=function(){return this.$d.toISOString()},h.toString=function(){return this.$d.toUTCString()},w})(),b=ge.prototype;return C.prototype=b,[["$ms",s],["$s",a],["$m",l],["$H",u],["$W",o],["$M",v],["$y",p],["$D",m]].forEach((function(w){b[w[1]]=function(h){return this.$g(h,w[0],w[1])}})),C.extend=function(w,h){return w.$i||(w(h,ge,C),w.$i=!0),C},C.locale=Xe,C.isDayjs=Ze,C.unix=function(w){return C(1e3*w)},C.en=me[Ae],C.Ls=me,C.p={},C}))})(kt)),kt.exports}var Gi=Mt.exports,fr;function Ki(){return fr||(fr=1,(function(e,t){(function(n,r){e.exports=r(Ji())})(Gi,(function(n){function r(a){return a&&typeof a=="object"&&"default"in a?a:{default:a}}var i=r(n),s={name:"it",weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),weekStart:1,monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"tra %s",past:"%s fa",s:"qualche secondo",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},ordinal:function(a){return a+"º"}};return i.default.locale(s,null,!0),s}))})(Mt)),Mt.exports}Ki();function Zi(e){const t=e?.repoName.split("/")?.[1]||e?.repoName;if(!t)throw new Error("wrong componentPath "+e?.repoName);if(!e?.version)throw new Error("wrong version "+e?.version);const n=e?.iifePath||"main.iife.js";if(!document.getElementById(t+"-script"))try{const r=document.createElement("script");if(r.id=t+"-script",r.src=`https://cdn.jsdelivr.net/npm/${e.repoName}@${e.version}/${n}`,e?.local)r.src=`${e.local}`;else if(location.href.includes("localhost:6006")){const i=t.split("-")[0];r.src=`http://localhost:6006/webcomponents/${t.replace(i+"-","")}/${n}`}document.head.appendChild(r)}catch(r){console.warn(r)}}var Xi=ir('<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css" class="svelte-1w6m2e2"/>'),Qi=ir('<div id="page" class="container svelte-1w6m2e2"><h3 class="svelte-1w6m2e2"><i style="font-size:0.9em;margin-right:0.2em" class="bi bi-cart-fill svelte-1w6m2e2"></i>Shopping Cart</h3> <div class="row svelte-1w6m2e2" style="margin:40px auto 20px auto"><div class="col svelte-1w6m2e2"><div style="line-height:25px" class="svelte-1w6m2e2"><span style="display:inline-block" class="svelte-1w6m2e2">SubTotale</span> <span style="float:right" class="svelte-1w6m2e2"> </span></div> <div style="line-height:25px" class="svelte-1w6m2e2"><span style="display:inline-block" class="svelte-1w6m2e2">Tasse</span> <span style="float:right" class="svelte-1w6m2e2"> </span></div> <div style="line-height:25px;" class="svelte-1w6m2e2"><span style="display:inline-block" class="svelte-1w6m2e2">Spedizione</span> <span style="float:right" class="svelte-1w6m2e2"> </span></div> <div style="line-height:25px;font-weight:bold" class="svelte-1w6m2e2"><span style="display:inline-block" class="svelte-1w6m2e2">Totale</span> <span style="float:right" class="svelte-1w6m2e2"> </span></div></div></div> <div class="row cart_divider svelte-1w6m2e2"><div class="col svelte-1w6m2e2"><hb-table></hb-table></div></div></div>',2);const es={hash:"svelte-1w6m2e2",code:`@charset "UTF-8";
3
3
  @import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");
4
4
  @import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css");
5
5
  /*!
@@ -85,5 +85,5 @@
85
85
  @media (min-width: 1200px) {
86
86
  }
87
87
  @media print {
88
- }:host {font-family:"Roboto", sans-serif;display:block;margin:40px 0px 40px 0px;--hb-checkout-border: 0.5px solid rgba(197, 197, 197, 0.808);}#page.svelte-1w6m2e2 {padding-top:20px;}.cart_divider.svelte-1w6m2e2 {padding-top:40px;border-top:var(--hb-checkout-border);}`};function hr(e,t){mn(t,!0),Pi(e,rs);let n=Xt(t,"id",7,void 0),r=Xt(t,"completed",7,"no"),i=Xt(t,"payment",23,()=>({countryCode:"IT",currencySymbol:"€",items:[]}));const s=[{key:"name",label:"nome",nosort:!0},{key:"quantity",label:"n.",nosort:!0},{key:"total",label:"totale",nosort:!0}];let a=ee(Ie([])),l=ee(0),u=ee(0),o=ee(0);pi(()=>{if(!i())i({countryCode:"IT",currencySymbol:"€",items:[]});else if(typeof i()=="string"&&(i(JSON.parse(i())||{}),i().countryCode||(i().countryCode="IT"),!i().currencySymbol))switch(i().countryCode){case"IT":i().currencySymbol="€";break;case"EU":i().currencySymbol="€";break;case"US":i().currencySymbol="$";break}i()?.items?.length&&G(a,i().items.map(($,w)=>({_id:w.toString(),price:$.unitaryPrice.toString()+i().currencySymbol+" / "+($.unit?$.unit:"unità"),name:$.name,quantity:$.quantity?.toString?.()||"1",subtotal:($.unitaryPrice*($.quantity||1)).toString()+i().currencySymbol,vat:`${(Math.round($.taxPercentage*.01*$.unitaryPrice*($.quantity||1)*100)/100).toString()} (${$.taxPercentage}%)`,total:($.unitaryPrice*($.quantity||1)+Math.round($.taxPercentage*.01*$.unitaryPrice*($.quantity||1)*100)/100).toString()+i().currencySymbol})),!0),G(l,i()?.items?.map($=>$.unitaryPrice*($.quantity||1)).reduce(($,w)=>$+w,0),!0),G(u,i()?.items?Math.round(i()?.items.map($=>$.unitaryPrice*($.quantity||1)*$.taxPercentage*.01).reduce(($,w)=>$+w,0)*100)/100:0,!0),G(o,Y(l)+Y(u)+(i().shipmentFee||0))}),es.addComponent({repoName:"@htmlbricks/hb-table",version:Ji.version});var f={get id(){return n()},set id($=void 0){n($),gt()},get completed(){return r()},set completed($="no"){r($),gt()},get payment(){return i()},set payment($={countryCode:"IT",currencySymbol:"€",items:[]}){i($),gt()}},_=ns();Ri("1w6m2e2",$=>{var w=ts();Jt($,w)});var d=pe(Z(_),2),p=Z(d),m=Z(p),E=pe(Z(m),2),M=Z(E);J(E),J(m);var P=pe(m,2),N=pe(Z(P),2),V=Z(N);J(N),J(P);var Ne=pe(P,2),Ae=pe(Z(Ne),2),me=Z(Ae,!0);J(Ae),J(Ne);var lt=pe(Ne,2),Xe=pe(Z(lt),2),Qe=Z(Xe);J(Xe),J(lt),J(p),J(d);var C=pe(d,2),T=Z(C),ge=Z(T);return Zt(ge,"disablepagination","yes"),Vt(()=>Zt(ge,"rows",JSON.stringify(Y(a)))),Vt(()=>Zt(ge,"headers",JSON.stringify(s))),ji(ge,1,"svelte-1w6m2e2"),J(T),J(C),J(_),Vt(()=>{Et(M,`${Y(l)??""}${i().currencySymbol??""}`),Et(V,`${Y(u)??""}${i().currencySymbol??""}`),Et(me,i()?.shipmentFee?i()?.shipmentFee+(i()?.currencySymbol||""):"-"),Et(Qe,`${Y(o)??""}${i().currencySymbol??""}`)}),Jt(e,_),gn(f)}customElements.define("hb-checkout-shopping-cart",Wi(hr,{id:{},completed:{},payment:{}},[],[],{mode:"open"})),Qt.Component=hr,Object.defineProperty(Qt,Symbol.toStringTag,{value:"Module"})})(this["checkout-shopping-cart"]=this["checkout-shopping-cart"]||{});
88
+ }:host {font-family:"Roboto", sans-serif;display:block;margin:40px 0px 40px 0px;--hb-checkout-border: 0.5px solid rgba(197, 197, 197, 0.808);}#page.svelte-1w6m2e2 {padding-top:20px;}.cart_divider.svelte-1w6m2e2 {padding-top:40px;border-top:var(--hb-checkout-border);}`};function cr(e,t){pn(t,!0),Ri(e,es);let n=Zt(t,"id",7,void 0),r=Zt(t,"completed",7,"no"),i=Zt(t,"payment",23,()=>({countryCode:"IT",currencySymbol:"€",items:[]}));const s=[{key:"name",label:"nome",nosort:!0},{key:"quantity",label:"n.",nosort:!0},{key:"total",label:"totale",nosort:!0}];let a=ee(Ie([])),l=ee(0),u=ee(0),o=ee(0);vi(()=>{if(!i())i({countryCode:"IT",currencySymbol:"€",items:[]});else if(typeof i()=="string"&&(i(JSON.parse(i())||{}),i().countryCode||(i().countryCode="IT"),!i().currencySymbol))switch(i().countryCode){case"IT":i().currencySymbol="€";break;case"EU":i().currencySymbol="€";break;case"US":i().currencySymbol="$";break}i()?.items?.length&&G(a,i().items.map((b,w)=>({_id:w.toString(),price:b.unitaryPrice.toString()+i().currencySymbol+" / "+(b.unit?b.unit:"unità"),name:b.name,quantity:b.quantity?.toString?.()||"1",subtotal:(b.unitaryPrice*(b.quantity||1)).toString()+i().currencySymbol,vat:`${(Math.round(b.taxPercentage*.01*b.unitaryPrice*(b.quantity||1)*100)/100).toString()} (${b.taxPercentage}%)`,total:(b.unitaryPrice*(b.quantity||1)+Math.round(b.taxPercentage*.01*b.unitaryPrice*(b.quantity||1)*100)/100).toString()+i().currencySymbol})),!0),G(l,i()?.items?.map(b=>b.unitaryPrice*(b.quantity||1)).reduce((b,w)=>b+w,0),!0),G(u,i()?.items?Math.round(i()?.items.map(b=>b.unitaryPrice*(b.quantity||1)*b.taxPercentage*.01).reduce((b,w)=>b+w,0)*100)/100:0,!0),G(o,j(l)+j(u)+(i().shipmentFee||0))}),Zi({repoName:"@htmlbricks/hb-table",version:Vi.version});var c={get id(){return n()},set id(b=void 0){n(b),mt()},get completed(){return r()},set completed(b="no"){r(b),mt()},get payment(){return i()},set payment(b={countryCode:"IT",currencySymbol:"€",items:[]}){i(b),mt()}},v=Qi();Ci("1w6m2e2",b=>{var w=Xi();Wt(b,w)});var _=pe(K(v),2),p=K(_),m=K(p),E=pe(K(m),2),M=K(E);J(E),J(m);var P=pe(m,2),N=pe(K(P),2),V=K(N);J(N),J(P);var Ne=pe(P,2),Ae=pe(K(Ne),2),me=K(Ae,!0);J(Ae),J(Ne);var at=pe(Ne,2),Ze=pe(K(at),2),Xe=K(Ze);J(Ze),J(at),J(p),J(_);var C=pe(_,2),T=K(C),ge=K(T);return Gt(ge,"disablepagination","yes"),Bt(()=>Gt(ge,"rows",JSON.stringify(j(a)))),Bt(()=>Gt(ge,"headers",JSON.stringify(s))),Pi(ge,1,"svelte-1w6m2e2"),J(T),J(C),J(v),Bt(()=>{St(M,`${j(l)??""}${i().currencySymbol??""}`),St(V,`${j(u)??""}${i().currencySymbol??""}`),St(me,i()?.shipmentFee?i()?.shipmentFee+(i()?.currencySymbol||""):"-"),St(Xe,`${j(o)??""}${i().currencySymbol??""}`)}),Wt(e,v),mn(c)}customElements.define("hb-checkout-shopping-cart",Bi(cr,{id:{},completed:{},payment:{}},[],[],{mode:"open"})),Xt.Component=cr,Object.defineProperty(Xt,Symbol.toStringTag,{value:"Module"})})(this["checkout-shopping-cart"]=this["checkout-shopping-cart"]||{});
89
89
  //# sourceMappingURL=main.iife.js.map