@htmlbricks/hb-page-checkout 0.61.40 → 0.61.41

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,6 +1,6 @@
1
- (function(bt){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const $r=1,Er=4,xr=8,kr=16,Sr=2,Nr="[",Tr="]",ke={},k=Symbol(),Or="http://www.w3.org/1999/xhtml",pt=!1;var gt=Array.isArray,Ar=Array.prototype.indexOf,Cr=Array.from,Re=Object.keys,ve=Object.defineProperty,re=Object.getOwnPropertyDescriptor,Rr=Object.getOwnPropertyDescriptors,Pr=Object.prototype,Ir=Array.prototype,mt=Object.getPrototypeOf,yt=Object.isExtensible;function wt(e){for(var t=0;t<e.length;t++)e[t]()}function Mr(){var e,t,r=new Promise((n,i)=>{e=n,t=i});return{promise:r,resolve:e,reject:t}}const C=2,We=4,Ve=8,Se=16,K=32,z=64,$t=128,I=256,Pe=512,T=1024,j=2048,Z=4096,_e=8192,ne=16384,Je=32768,Lr=65536,Et=1<<17,Dr=1<<18,be=1<<19,jr=1<<20,Xe=1<<21,Ke=1<<22,ie=1<<23,Ie=Symbol("$state"),xt=Symbol("legacy props"),Fr=Symbol(""),ze=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},qr=3,kt=8;function Ur(){throw new Error("https://svelte.dev/e/await_outside_boundary")}function Br(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Yr(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Hr(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Gr(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Wr(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Vr(){throw new Error("https://svelte.dev/e/hydration_failed")}function Jr(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function Xr(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Kr(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function zr(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Ze(e){console.warn("https://svelte.dev/e/hydration_mismatch")}let x=!1;function pe(e){x=e}let O;function ge(e){if(e===null)throw Ze(),ke;return O=e}function St(){return ge(Oe(O))}function Me(e){if(x){if(Oe(O)!==null)throw Ze(),ke;O=e}}function Nt(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 Tt(e){return!Zr(e,this.v)}let Qr=!1,F=null;function Le(e){F=e}function Ot(e,t=!1,r){F={p:F,c:null,e:null,s:e,x:null,l:null}}function At(e){var t=F,r=t.e;if(r!==null){t.e=null;for(var n of r)Wt(n)}return e!==void 0&&(t.x=e),F=t.p,e??{}}function Ct(){return!0}const en=new WeakMap;function tn(e){var t=g;if(t===null)return m.f|=ie,e;if((t.f&Je)===0){if((t.f&$t)===0)throw!t.parent&&e instanceof Error&&Rt(e),e;t.b.error(e)}else Qe(e,t)}function Qe(e,t){for(;t!==null;){if((t.f&$t)!==0)try{t.b.error(e);return}catch(r){e=r}t=t.parent}throw e instanceof Error&&Rt(e),e}function Rt(e){const t=en.get(e);t&&(ve(e,"message",{value:t.message}),ve(e,"stack",{value:t.stack}))}let Ne=[],et=[];function Pt(){var e=Ne;Ne=[],wt(e)}function rn(){var e=et;et=[],wt(e)}function nn(e){Ne.length===0&&queueMicrotask(Pt),Ne.push(e)}function sn(){Ne.length>0&&Pt(),et.length>0&&rn()}function an(){const e=g.b;return e===null&&Ur(),e}function tt(e){var t=C|j,r=m!==null&&(m.f&C)!==0?m:null;return g===null||r!==null&&(r.f&I)!==0?t|=I:g.f|=be,{ctx:F,deps:null,effects:null,equals:Nt,f:t,fn:e,reactions:null,rv:0,v:k,wv:0,parent:r??g,ac:null}}function on(e,t){let r=g;r===null&&Br();var n=r.b,i=void 0,s=st(k),a=null,l=!m;return En(()=>{try{var o=e();a&&Promise.resolve(o).catch(()=>{})}catch(d){o=Promise.reject(d)}var u=()=>o;i=a?.then(u,u)??Promise.resolve(o),a=i;var f=S,c=n.is_pending();l&&(n.update_pending_count(1),c||f.increment());const h=(d,b=void 0)=>{a=null,c||f.activate(),b?b!==ze&&(s.f|=ie,at(s,b)):((s.f&ie)!==0&&(s.f^=ie),at(s,d)),l&&(n.update_pending_count(-1),c||f.decrement()),Lt()};if(i.then(h,d=>h(null,d||"unknown")),f)return()=>{queueMicrotask(()=>f.neuter())}}),new Promise(o=>{function u(f){function c(){f===i?o(s):u(i)}f.then(c,c)}u(i)})}function ln(e){const t=tt(e);return t.equals=Tt,t}function It(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)ee(t[r])}}function un(e){for(var t=e.parent;t!==null;){if((t.f&C)===0)return t;t=t.parent}return null}function rt(e){var t,r=g;Y(un(e));try{It(e),t=nr(e)}finally{Y(r)}return t}function Mt(e){var t=rt(e);if(e.equals(t)||(e.v=t,e.wv=tr()),!ce){var r=(te||(e.f&I)!==0)&&e.deps!==null?Z:T;P(e,r)}}function fn(e,t,r){const n=tt;if(t.length===0){r(e.map(n));return}var i=S,s=g,a=cn(),l=an();Promise.all(t.map(o=>on(o))).then(o=>{i?.activate(),a();try{r([...e.map(n),...o])}catch(u){(s.f&ne)===0&&Qe(u,s)}i?.deactivate(),Lt()}).catch(o=>{l.error(o)})}function cn(){var e=g,t=m,r=F,n=S;return function(){Y(e),M(t),Le(r),n?.activate()}}function Lt(){Y(null),M(null),Le(null)}const nt=new Set;let S=null,Dt=new Set,De=[];function jt(){const e=De.shift();De.length>0&&queueMicrotask(jt),e()}let se=[],je=null,it=!1,Fe=!1;class ae{current=new Map;#t=new Map;#e=new Set;#r=0;#u=null;#f=!1;#i=[];#a=[];#s=[];#n=[];#o=[];#c=[];#d=[];skipped_effects=new Set;process(t){se=[];for(const i of t)this.#v(i);if(this.#i.length===0&&this.#r===0){this.#h();var r=this.#s,n=this.#n;this.#s=[],this.#n=[],this.#o=[],S=null,qt(r),qt(n),S===null?S=this:nt.delete(this),this.#u?.resolve()}else this.#l(this.#s),this.#l(this.#n),this.#l(this.#o);for(const i of this.#i)ye(i);for(const i of this.#a)ye(i);this.#i=[],this.#a=[]}#v(t){t.f^=T;for(var r=t.first;r!==null;){var n=r.f,i=(n&(K|z))!==0,s=i&&(n&T)!==0,a=s||(n&_e)!==0||this.skipped_effects.has(r);if(!a&&r.fn!==null){if(i)r.f^=T;else if((n&We)!==0)this.#n.push(r);else if((n&T)===0)if((n&Ke)!==0){var l=r.b?.is_pending()?this.#a:this.#i;l.push(r)}else Be(r)&&((r.f&Se)!==0&&this.#o.push(r),ye(r));var o=r.first;if(o!==null){r=o;continue}}var u=r.parent;for(r=r.next;r===null&&u!==null;)r=u.next,u=u.parent}}#l(t){for(const r of t)((r.f&j)!==0?this.#c:this.#d).push(r),P(r,T);t.length=0}capture(t,r){this.#t.has(t)||this.#t.set(t,r),this.current.set(t,t.v)}activate(){S=this}deactivate(){S=null;for(const t of Dt)if(Dt.delete(t),t(),S!==null)break}neuter(){this.#f=!0}flush(){se.length>0?Ft():this.#h(),S===this&&(this.#r===0&&nt.delete(this),this.deactivate())}#h(){if(!this.#f)for(const t of this.#e)t();this.#e.clear()}increment(){this.#r+=1}decrement(){if(this.#r-=1,this.#r===0){for(const t of this.#c)P(t,j),Te(t);for(const t of this.#d)P(t,Z),Te(t);this.#s=[],this.#n=[],this.flush()}else this.deactivate()}add_callback(t){this.#e.add(t)}settled(){return(this.#u??=Mr()).promise}static ensure(){if(S===null){const t=S=new ae;nt.add(S),Fe||ae.enqueue(()=>{S===t&&t.flush()})}return S}static enqueue(t){De.length===0&&queueMicrotask(jt),De.unshift(t)}}function oe(e){var t=Fe;Fe=!0;try{for(var r;;){if(sn(),se.length===0&&(S?.flush(),se.length===0))return je=null,r;Ft()}}finally{Fe=t}}function Ft(){var e=me;it=!0;try{var t=0;for(zt(!0);se.length>0;){var r=ae.ensure();if(t++>1e3){var n,i;dn()}r.process(se),Q.clear()}}finally{it=!1,zt(e),je=null}}function dn(){try{Wr()}catch(e){Qe(e,je)}}let le=null;function qt(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var n=e[r++];if((n.f&(ne|_e))===0&&Be(n)&&(le=[],ye(n),n.deps===null&&n.first===null&&n.nodes_start===null&&(n.teardown===null&&n.ac===null?Xt(n):n.fn=null),le?.length>0)){Q.clear();for(const i of le)ye(i);le=[]}}le=null}}function Te(e){for(var t=je=e;t.parent!==null;){t=t.parent;var r=t.f;if(it&&t===g&&(r&Se)!==0)return;if((r&(z|K))!==0){if((r&T)===0)return;t.f^=T}}se.push(t)}const Q=new Map;function st(e,t){var r={f:0,v:e,reactions:null,equals:Nt,rv:0,wv:0};return r}function q(e,t){const r=st(e);return An(r),r}function hn(e,t=!1,r=!0){const n=st(e);return t||(n.equals=Tt),n}function W(e,t,r=!1){m!==null&&(!B||(m.f&Et)!==0)&&Ct()&&(m.f&(C|Se|Ke|Et))!==0&&!J?.includes(e)&&zr();let n=r?ue(t):t;return at(e,n)}function at(e,t){if(!e.equals(t)){var r=e.v;ce?Q.set(e,t):Q.set(e,r),e.v=t;var n=ae.ensure();n.capture(e,r),(e.f&C)!==0&&((e.f&j)!==0&&rt(e),P(e,(e.f&I)===0?T:Z)),e.wv=tr(),Ut(e,j),g!==null&&(g.f&T)!==0&&(g.f&(K|z))===0&&(L===null?Cn([e]):L.push(e))}return t}function ot(e){W(e,e.v+1)}function Ut(e,t){var r=e.reactions;if(r!==null)for(var n=r.length,i=0;i<n;i++){var s=r[i],a=s.f,l=(a&j)===0;l&&P(s,t),(a&C)!==0?Ut(s,Z):l&&((a&Se)!==0&&le!==null&&le.push(s),Te(s))}}function ue(e){if(typeof e!="object"||e===null||Ie in e)return e;const t=mt(e);if(t!==Pr&&t!==Ir)return e;var r=new Map,n=gt(e),i=q(0),s=de,a=l=>{if(de===s)return l();var o=m,u=de;M(null),er(s);var f=l();return M(o),er(u),f};return n&&r.set("length",q(e.length)),new Proxy(e,{defineProperty(l,o,u){(!("value"in u)||u.configurable===!1||u.enumerable===!1||u.writable===!1)&&Xr();var f=r.get(o);return f===void 0?f=a(()=>{var c=q(u.value);return r.set(o,c),c}):W(f,u.value,!0),!0},deleteProperty(l,o){var u=r.get(o);if(u===void 0){if(o in l){const f=a(()=>q(k));r.set(o,f),ot(i)}}else W(u,k),ot(i);return!0},get(l,o,u){if(o===Ie)return e;var f=r.get(o),c=o in l;if(f===void 0&&(!c||re(l,o)?.writable)&&(f=a(()=>{var d=ue(c?l[o]:k),b=q(d);return b}),r.set(o,f)),f!==void 0){var h=D(f);return h===k?void 0:h}return Reflect.get(l,o,u)},getOwnPropertyDescriptor(l,o){var u=Reflect.getOwnPropertyDescriptor(l,o);if(u&&"value"in u){var f=r.get(o);f&&(u.value=D(f))}else if(u===void 0){var c=r.get(o),h=c?.v;if(c!==void 0&&h!==k)return{enumerable:!0,configurable:!0,value:h,writable:!0}}return u},has(l,o){if(o===Ie)return!0;var u=r.get(o),f=u!==void 0&&u.v!==k||Reflect.has(l,o);if(u!==void 0||g!==null&&(!f||re(l,o)?.writable)){u===void 0&&(u=a(()=>{var h=f?ue(l[o]):k,d=q(h);return d}),r.set(o,u));var c=D(u);if(c===k)return!1}return f},set(l,o,u,f){var c=r.get(o),h=o in l;if(n&&o==="length")for(var d=u;d<c.v;d+=1){var b=r.get(d+"");b!==void 0?W(b,k):d in l&&(b=a(()=>q(k)),r.set(d+"",b))}if(c===void 0)(!h||re(l,o)?.writable)&&(c=a(()=>q(void 0)),W(c,ue(u)),r.set(o,c));else{h=c.v!==k;var _=a(()=>ue(u));W(c,_)}var E=Reflect.getOwnPropertyDescriptor(l,o);if(E?.set&&E.set.call(f,u),!h){if(n&&typeof o=="string"){var N=r.get("length"),v=Number(o);Number.isInteger(v)&&v>=N.v&&W(N,v+1)}ot(i)}return!0},ownKeys(l){D(i);var o=Reflect.ownKeys(l).filter(c=>{var h=r.get(c);return h===void 0||h.v!==k});for(var[u,f]of r)f.v!==k&&!(u in l)&&o.push(u);return o},setPrototypeOf(){Kr()}})}var Bt,Yt,Ht,Gt;function lt(){if(Bt===void 0){Bt=window,Yt=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;Ht=re(t,"firstChild").get,Gt=re(t,"nextSibling").get,yt(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),yt(r)&&(r.__t=void 0)}}function ut(e=""){return document.createTextNode(e)}function qe(e){return Ht.call(e)}function Oe(e){return Gt.call(e)}function Ue(e,t){if(!x)return qe(e);var r=qe(O);return r===null&&(r=O.appendChild(ut())),ge(r),r}function vn(e,t=1,r=!1){let n=x?O:e;for(var i;t--;)i=n,n=Oe(n);if(!x)return n;if(r&&n?.nodeType!==qr){var s=ut();return n===null?i?.after(s):n.before(s),ge(s),s}return ge(n),n}function _n(e){e.textContent=""}function ft(e){var t=m,r=g;M(null),Y(null);try{return e()}finally{M(t),Y(r)}}function bn(e){g===null&&m===null&&Gr(),m!==null&&(m.f&I)!==0&&g===null&&Hr(),ce&&Yr()}function pn(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function V(e,t,r,n=!0){var i=g;i!==null&&(i.f&_e)!==0&&(e|=_e);var s={ctx:F,deps:null,nodes_start:null,nodes_end:null,f:e|j,first:null,fn:t,last:null,next:null,parent:i,b:i&&i.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(r)try{ye(s),s.f|=Je}catch(o){throw ee(s),o}else t!==null&&Te(s);if(n){var a=s;if(r&&a.deps===null&&a.teardown===null&&a.nodes_start===null&&a.first===a.last&&(a.f&be)===0&&(a=a.first),a!==null&&(a.parent=i,i!==null&&pn(a,i),m!==null&&(m.f&C)!==0&&(e&z)===0)){var l=m;(l.effects??=[]).push(a)}}return s}function gn(e){const t=V(Ve,null,!1);return P(t,T),t.teardown=e,t}function mn(e){bn();var t=g.f,r=!m&&(t&K)!==0&&(t&Je)===0;if(r){var n=F;(n.e??=[]).push(e)}else return Wt(e)}function Wt(e){return V(We|jr,e,!1)}function yn(e){ae.ensure();const t=V(z|be,e,!0);return()=>{ee(t)}}function wn(e){ae.ensure();const t=V(z|be,e,!0);return(r={})=>new Promise(n=>{r.outro?Tn(t,()=>{ee(t),n(void 0)}):(ee(t),n(void 0))})}function $n(e){return V(We,e,!1)}function En(e){return V(Ke|be,e,!0)}function xn(e,t=0){return V(Ve|t,e,!0)}function fe(e,t=[],r=[]){fn(t,r,n=>{V(Ve,()=>e(...n.map(D)),!0)})}function kn(e,t=!0){return V(K|be,e,!0,t)}function Vt(e){var t=e.teardown;if(t!==null){const r=ce,n=m;Zt(!0),M(null);try{t.call(null)}finally{Zt(r),M(n)}}}function Jt(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const i=r.ac;i!==null&&ft(()=>{i.abort(ze)});var n=r.next;(r.f&z)!==0?r.parent=null:ee(r,t),r=n}}function Sn(e){for(var t=e.first;t!==null;){var r=t.next;(t.f&K)===0&&ee(t),t=r}}function ee(e,t=!0){var r=!1;(t||(e.f&Dr)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(Nn(e.nodes_start,e.nodes_end),r=!0),Jt(e,t&&!r),Ye(e,0),P(e,ne);var n=e.transitions;if(n!==null)for(const s of n)s.stop();Vt(e);var i=e.parent;i!==null&&i.first!==null&&Xt(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function Nn(e,t){for(;e!==null;){var r=e===t?null:Oe(e);e.remove(),e=r}}function Xt(e){var t=e.parent,r=e.prev,n=e.next;r!==null&&(r.next=n),n!==null&&(n.prev=r),t!==null&&(t.first===e&&(t.first=n),t.last===e&&(t.last=r))}function Tn(e,t){var r=[];Kt(e,r,!0),On(r,()=>{ee(e),t&&t()})}function On(e,t){var r=e.length;if(r>0){var n=()=>--r||t();for(var i of e)i.out(n)}else t()}function Kt(e,t,r){if((e.f&_e)===0){if(e.f^=_e,e.transitions!==null)for(const a of e.transitions)(a.is_global||r)&&t.push(a);for(var n=e.first;n!==null;){var i=n.next,s=(n.f&Lr)!==0||(n.f&K)!==0;Kt(n,t,s?r:!1),n=i}}}let me=!1;function zt(e){me=e}let ce=!1;function Zt(e){ce=e}let m=null,B=!1;function M(e){m=e}let g=null;function Y(e){g=e}let J=null;function An(e){m!==null&&(J===null?J=[e]:J.push(e))}let A=null,R=0,L=null;function Cn(e){L=e}let Qt=1,Ae=0,de=Ae;function er(e){de=e}let te=!1;function tr(){return++Qt}function Be(e){var t=e.f;if((t&j)!==0)return!0;if((t&Z)!==0){var r=e.deps,n=(t&I)!==0;if(r!==null){var i,s,a=(t&Pe)!==0,l=n&&g!==null&&!te,o=r.length;if((a||l)&&(g===null||(g.f&ne)===0)){var u=e,f=u.parent;for(i=0;i<o;i++)s=r[i],(a||!s?.reactions?.includes(u))&&(s.reactions??=[]).push(u);a&&(u.f^=Pe),l&&f!==null&&(f.f&I)===0&&(u.f^=I)}for(i=0;i<o;i++)if(s=r[i],Be(s)&&Mt(s),s.wv>e.wv)return!0}(!n||g!==null&&!te)&&P(e,T)}return!1}function rr(e,t,r=!0){var n=e.reactions;if(n!==null&&!J?.includes(e))for(var i=0;i<n.length;i++){var s=n[i];(s.f&C)!==0?rr(s,t,!1):t===s&&(r?P(s,j):(s.f&T)!==0&&P(s,Z),Te(s))}}function nr(e){var t=A,r=R,n=L,i=m,s=te,a=J,l=F,o=B,u=de,f=e.f;A=null,R=0,L=null,te=(f&I)!==0&&(B||!me||m===null),m=(f&(K|z))===0?e:null,J=null,Le(e.ctx),B=!1,de=++Ae,e.ac!==null&&(ft(()=>{e.ac.abort(ze)}),e.ac=null);try{e.f|=Xe;var c=e.fn,h=c(),d=e.deps;if(A!==null){var b;if(Ye(e,R),d!==null&&R>0)for(d.length=R+A.length,b=0;b<A.length;b++)d[R+b]=A[b];else e.deps=d=A;if(!te||(f&C)!==0&&e.reactions!==null)for(b=R;b<d.length;b++)(d[b].reactions??=[]).push(e)}else d!==null&&R<d.length&&(Ye(e,R),d.length=R);if(Ct()&&L!==null&&!B&&d!==null&&(e.f&(C|Z|j))===0)for(b=0;b<L.length;b++)rr(L[b],e);return i!==null&&i!==e&&(Ae++,L!==null&&(n===null?n=L:n.push(...L))),(e.f&ie)!==0&&(e.f^=ie),h}catch(_){return tn(_)}finally{e.f^=Xe,A=t,R=r,L=n,m=i,te=s,J=a,Le(l),B=o,de=u}}function Rn(e,t){let r=t.reactions;if(r!==null){var n=Ar.call(r,e);if(n!==-1){var i=r.length-1;i===0?r=t.reactions=null:(r[n]=r[i],r.pop())}}r===null&&(t.f&C)!==0&&(A===null||!A.includes(t))&&(P(t,Z),(t.f&(I|Pe))===0&&(t.f^=Pe),It(t),Ye(t,0))}function Ye(e,t){var r=e.deps;if(r!==null)for(var n=t;n<r.length;n++)Rn(e,r[n])}function ye(e){var t=e.f;if((t&ne)===0){P(e,T);var r=g,n=me;g=e,me=!0;try{(t&Se)!==0?Sn(e):Jt(e),Vt(e);var i=nr(e);e.teardown=typeof i=="function"?i:null,e.wv=Qt;var s;pt&&Qr&&(e.f&j)!==0&&e.deps}finally{me=n,g=r}}}function D(e){var t=e.f,r=(t&C)!==0;if(m!==null&&!B){var n=g!==null&&(g.f&ne)!==0;if(!n&&!J?.includes(e)){var i=m.deps;if((m.f&Xe)!==0)e.rv<Ae&&(e.rv=Ae,A===null&&i!==null&&i[R]===e?R++:A===null?A=[e]:(!te||!A.includes(e))&&A.push(e));else{(m.deps??=[]).push(e);var s=e.reactions;s===null?e.reactions=[m]:s.includes(m)||s.push(m)}}}else if(r&&e.deps===null&&e.effects===null){var a=e,l=a.parent;l!==null&&(l.f&I)===0&&(a.f^=I)}if(ce){if(Q.has(e))return Q.get(e);if(r){a=e;var o=a.v;return((a.f&T)===0&&a.reactions!==null||ir(a))&&(o=rt(a)),Q.set(a,o),o}}else r&&(a=e,Be(a)&&Mt(a));if((e.f&ie)!==0)throw e.v;return e.v}function ir(e){if(e.v===k)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(Q.has(t)||(t.f&C)!==0&&ir(t))return!0;return!1}function Pn(e){var t=B;try{return B=!0,e()}finally{B=t}}const In=-7169;function P(e,t){e.f=e.f&In|t}const Mn=new Set,sr=new Set;function Ln(e,t,r,n={}){function i(s){if(n.capture||Ce.call(t,s),!s.cancelBubble)return ft(()=>r?.call(this,s))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?nn(()=>{t.addEventListener(e,i,n)}):t.addEventListener(e,i,n),i}function ct(e,t,r,n,i){var s={capture:n,passive:i},a=Ln(e,t,r,s);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&gn(()=>{t.removeEventListener(e,a,s)})}let ar=null;function Ce(e){var t=this,r=t.ownerDocument,n=e.type,i=e.composedPath?.()||[],s=i[0]||e.target;ar=e;var a=0,l=ar===e&&e.__root;if(l){var o=i.indexOf(l);if(o!==-1&&(t===document||t===window)){e.__root=t;return}var u=i.indexOf(t);if(u===-1)return;o<=u&&(a=o)}if(s=i[a]||e.target,s!==t){ve(e,"currentTarget",{configurable:!0,get(){return s||r}});var f=m,c=g;M(null),Y(null);try{for(var h,d=[];s!==null;){var b=s.assignedSlot||s.parentNode||s.host||null;try{var _=s["__"+n];if(_!=null&&(!s.disabled||e.target===s))if(gt(_)){var[E,...N]=_;E.apply(s,[e,...N])}else _.call(s,e)}catch(v){h?d.push(v):h=v}if(e.cancelBubble||b===t||b===null)break;s=b}if(h){for(let v of d)queueMicrotask(()=>{throw v});throw h}}finally{e.__root=t,delete e.currentTarget,M(f),Y(c)}}}function Dn(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function dt(e,t){var r=g;r.nodes_start===null&&(r.nodes_start=e,r.nodes_end=t)}function jn(e,t){var r=(t&Sr)!==0,n,i=!e.startsWith("<!>");return()=>{if(x)return dt(O,null),O;n===void 0&&(n=Dn(i?e:"<!>"+e),n=qe(n));var s=r||Yt?document.importNode(n,!0):n.cloneNode(!0);return dt(s,s),s}}function or(e,t){if(x){g.nodes_end=O,St();return}e!==null&&e.before(t)}const Fn=["touchstart","touchmove"];function qn(e){return Fn.includes(e)}function lr(e,t){return ur(e,t)}function Un(e,t){lt(),t.intro=t.intro??!1;const r=t.target,n=x,i=O;try{for(var s=qe(r);s&&(s.nodeType!==kt||s.data!==Nr);)s=Oe(s);if(!s)throw ke;pe(!0),ge(s),St();const a=ur(e,{...t,anchor:s});if(O===null||O.nodeType!==kt||O.data!==Tr)throw Ze(),ke;return pe(!1),a}catch(a){if(a instanceof Error&&a.message.split(`
2
- `).some(l=>l.startsWith("https://svelte.dev/e/")))throw a;return a!==ke&&console.warn("Failed to hydrate: ",a),t.recover===!1&&Vr(),lt(),_n(r),pe(!1),lr(e,t)}finally{pe(n),ge(i)}}const we=new Map;function ur(e,{target:t,anchor:r,props:n={},events:i,context:s,intro:a=!0}){lt();var l=new Set,o=c=>{for(var h=0;h<c.length;h++){var d=c[h];if(!l.has(d)){l.add(d);var b=qn(d);t.addEventListener(d,Ce,{passive:b});var _=we.get(d);_===void 0?(document.addEventListener(d,Ce,{passive:b}),we.set(d,1)):we.set(d,_+1)}}};o(Cr(Mn)),sr.add(o);var u=void 0,f=wn(()=>{var c=r??t.appendChild(ut());return kn(()=>{if(s){Ot({});var h=F;h.c=s}i&&(n.$$events=i),x&&dt(c,null),u=e(c,n)||{},x&&(g.nodes_end=O),s&&At()}),()=>{for(var h of l){t.removeEventListener(h,Ce);var d=we.get(h);--d===0?(document.removeEventListener(h,Ce),we.delete(h)):we.set(h,d)}sr.delete(o),c!==r&&c.parentNode?.removeChild(c)}});return ht.set(u,f),u}let ht=new WeakMap;function Bn(e,t){const r=ht.get(e);return r?(ht.delete(e),r(t)):Promise.resolve()}function Yn(e,t){$n(()=>{var r=e.getRootNode(),n=r.host?r:r.head??r.ownerDocument.head;if(!n.querySelector("#"+t.hash)){const i=document.createElement("style");i.id=t.hash,i.textContent=t.code,n.appendChild(i)}})}function Hn(e,t,r){var n=""+e;return n}function Gn(e,t){return e==null?null:String(e)}function fr(e,t,r,n,i,s){var a=e.__className;if(x||a!==r||a===void 0){var l=Hn(r);(!x||l!==e.getAttribute("class"))&&(l==null?e.removeAttribute("class"):e.className=l),e.__className=r}return s}function cr(e,t,r,n){var i=e.__style;if(x||i!==t){var s=Gn(t);(!x||s!==e.getAttribute("style"))&&(s==null?e.removeAttribute("style"):e.style.cssText=s),e.__style=t}return n}const Wn=Symbol("is custom element"),Vn=Symbol("is html");function Jn(e,t,r,n){var i=Xn(e);x&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||i[t]!==(i[t]=r)&&(t==="loading"&&(e[Fr]=r),r==null?e.removeAttribute(t):typeof r!="string"&&dr(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function he(e,t,r){var n=m,i=g;let s=x;x&&pe(!1),M(null),Y(null);try{t!=="style"&&(vt.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.tagName.toLowerCase())?dr(e).includes(t):r&&typeof r=="object")?e[t]=r:Jn(e,t,r==null?r:String(r))}finally{M(n),Y(i),s&&pe(!0)}}function Xn(e){return e.__attributes??={[Wn]:e.nodeName.includes("-"),[Vn]:e.namespaceURI===Or}}var vt=new Map;function dr(e){var t=e.getAttribute("is")||e.nodeName,r=vt.get(t);if(r)return r;vt.set(t,r=[]);for(var n,i=e,s=Element.prototype;s!==i;){n=Rr(i);for(var a in n)n[a].set&&r.push(a);i=mt(i)}return r}let He=!1;function Kn(e){var t=He;try{return He=!1,[e(),He]}finally{He=t}}function $e(e,t,r,n){var i=(r&xr)!==0,s=(r&kr)!==0,a=n,l=!0,o=()=>(l&&(l=!1,a=s?Pn(n):n),a),u;if(i){var f=Ie in e||xt in e;u=re(e,t)?.set??(f&&t in e?v=>e[t]=v:void 0)}var c,h=!1;i?[c,h]=Kn(()=>e[t]):c=e[t],c===void 0&&n!==void 0&&(c=o(),u&&(Jr(),u(c)));var d;if(d=()=>{var v=e[t];return v===void 0?o():(l=!0,v)},(r&Er)===0)return d;if(u){var b=e.$$legacy;return(function(v,H){return arguments.length>0?((!H||b||h)&&u(H?d():v),v):d()})}var _=!1,E=((r&$r)!==0?tt:ln)(()=>(_=!1,d()));i&&D(E);var N=g;return(function(v,H){if(arguments.length>0){const G=H?D(E):i?ue(v):v;return W(E,G),_=!0,a!==void 0&&(a=G),v}return ce&&_||(N.f&ne)!==0?E.v:D(E)})}function zn(e){return new Zn(e)}class Zn{#t;#e;constructor(t){var r=new Map,n=(s,a)=>{var l=hn(a,!1,!1);return r.set(s,l),l};const i=new Proxy({...t.props||{},$$events:{}},{get(s,a){return D(r.get(a)??n(a,Reflect.get(s,a)))},has(s,a){return a===xt?!0:(D(r.get(a)??n(a,Reflect.get(s,a))),Reflect.has(s,a))},set(s,a,l){return W(r.get(a)??n(a,l),l),Reflect.set(s,a,l)}});this.#e=(t.hydrate?Un:lr)(t.component,{target:t.target,anchor:t.anchor,props:i,context:t.context,intro:t.intro??!1,recover:t.recover}),(!t?.props?.$$host||t.sync===!1)&&oe(),this.#t=i.$$events;for(const s of Object.keys(this.#e))s==="$set"||s==="$destroy"||s==="$on"||ve(this,s,{get(){return this.#e[s]},set(a){this.#e[s]=a},enumerable:!0});this.#e.$set=s=>{Object.assign(i,s)},this.#e.$destroy=()=>{Bn(this.#e)}}$set(t){this.#e.$set(t)}$on(t,r){this.#t[t]=this.#t[t]||[];const n=(...i)=>r.call(this,...i);return this.#t[t].push(n),()=>{this.#t[t]=this.#t[t].filter(i=>i!==n)}}$destroy(){this.#e.$destroy()}}let hr;typeof HTMLElement=="function"&&(hr=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(e,t,r){super(),this.$$ctor=e,this.$$s=t,r&&this.attachShadow({mode:"open"})}addEventListener(e,t,r){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}super.addEventListener(e,t,r)}removeEventListener(e,t,r){if(super.removeEventListener(e,t,r),this.$$c){const n=this.$$l_u.get(t);n&&(n(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(n){return i=>{const s=document.createElement("slot");n!=="default"&&(s.name=n),or(i,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},r=Qn(this);for(const n of this.$$s)n in r&&(n==="default"&&!this.$$d.children?(this.$$d.children=e(n),t.default=!0):t[n]=e(n));for(const n of this.attributes){const i=this.$$g_p(n.name);i in this.$$d||(this.$$d[i]=Ge(i,n.value,this.$$p_d,"toProp"))}for(const n in this.$$p_d)!(n in this.$$d)&&this[n]!==void 0&&(this.$$d[n]=this[n],delete this[n]);this.$$c=zn({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=yn(()=>{xn(()=>{this.$$r=!0;for(const n of Re(this.$$c)){if(!this.$$p_d[n]?.reflect)continue;this.$$d[n]=this.$$c[n];const i=Ge(n,this.$$d[n],this.$$p_d,"toAttribute");i==null?this.removeAttribute(this.$$p_d[n].attribute||n):this.setAttribute(this.$$p_d[n].attribute||n,i)}this.$$r=!1})});for(const n in this.$$l)for(const i of this.$$l[n]){const s=this.$$c.$on(n,i);this.$$l_u.set(i,s)}this.$$l={}}}attributeChangedCallback(e,t,r){this.$$r||(e=this.$$g_p(e),this.$$d[e]=Ge(e,r,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 Re(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function Ge(e,t,r,n){const i=r[e]?.type;if(t=i==="Boolean"&&typeof t!="boolean"?t!=null:t,!n||!r[e])return t;if(n==="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 Qn(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function ei(e,t,r,n,i,s){let a=class extends hr{constructor(){super(e,r,i),this.$$p_d=t}static get observedAttributes(){return Re(t).map(l=>(t[l].attribute||l).toLowerCase())}};return Re(t).forEach(l=>{ve(a.prototype,l,{get(){return this.$$c&&l in this.$$c?this.$$c[l]:this.$$d[l]},set(o){o=Ge(l,o,t),this.$$d[l]=o;var u=this.$$c;if(u){var f=re(u,l)?.get;f?u[l]=o:u.$set({[l]:o})}}})}),n.forEach(l=>{ve(a.prototype,l,{get(){return this.$$c?.[l]}})}),e.element=a,a}const vr={version:"0.61.40"};function _r(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 r=e?.iifePath||"main.iife.js";if(!document.getElementById(t+"-script"))try{const n=document.createElement("script");if(n.id=t+"-script",n.src=`https://cdn.jsdelivr.net/npm/${e.repoName}@${e.version}/${r}`,e?.local)n.src=`${e.local}`;else if(location.href.includes("localhost:6006")){const i=t.split("-")[0];n.src=`http://localhost:6006/webcomponents/${t.replace(i+"-","")}/${r}`}document.head.appendChild(n)}catch(n){console.warn(n)}}function ti(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ee={},_t,br;function ri(){if(br)return _t;br=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,r=/^\s*/,n=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,a=/^[;\s]*/,l=/^\s+|\s+$/g,o=`
3
- `,u="/",f="*",c="",h="comment",d="declaration";_t=function(_,E){if(typeof _!="string")throw new TypeError("First argument must be a string");if(!_)return[];E=E||{};var N=1,v=1;function H(w){var p=w.match(t);p&&(N+=p.length);var U=w.lastIndexOf(o);v=~U?w.length-U:v+w.length}function G(){var w={line:N,column:v};return function(p){return p.position=new y(w),xe(),p}}function y(w){this.start=w,this.end={line:N,column:v},this.source=E.source}y.prototype.content=_;function X(w){var p=new Error(E.source+":"+N+":"+v+": "+w);if(p.reason=w,p.filename=E.source,p.line=N,p.column=v,p.source=_,!E.silent)throw p}function $(w){var p=w.exec(_);if(p){var U=p[0];return H(U),_=_.slice(U.length),p}}function xe(){$(r)}function yr(w){var p;for(w=w||[];p=wr();)p!==!1&&w.push(p);return w}function wr(){var w=G();if(!(u!=_.charAt(0)||f!=_.charAt(1))){for(var p=2;c!=_.charAt(p)&&(f!=_.charAt(p)||u!=_.charAt(p+1));)++p;if(p+=2,c===_.charAt(p-1))return X("End of comment missing");var U=_.slice(2,p-2);return v+=2,H(U),_=_.slice(p),v+=2,w({type:h,comment:U})}}function oi(){var w=G(),p=$(n);if(p){if(wr(),!$(i))return X("property missing ':'");var U=$(s),ui=w({type:d,property:b(p[0].replace(e,c)),value:U?b(U[0].replace(e,c)):c});return $(a),ui}}function li(){var w=[];yr(w);for(var p;p=oi();)p!==!1&&(w.push(p),yr(w));return w}return xe(),li()};function b(_){return _?_.replace(l,c):c}return _t}var pr;function ni(){if(pr)return Ee;pr=1;var e=Ee&&Ee.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(Ee,"__esModule",{value:!0}),Ee.default=r;var t=e(ri());function r(n,i){var s=null;if(!n||typeof n!="string")return s;var a=(0,t.default)(n),l=typeof i=="function";return a.forEach(function(o){if(o.type==="declaration"){var u=o.property,f=o.value;l?i(u,f,o):f&&(s=s||{},s[u]=f)}}),s}return Ee}var ii=ni();const gr=ti(ii);gr.default;var si=jn('<div class="container svelte-1eai32y"><div class="row svelte-1eai32y"><div class="col-7 svelte-1eai32y" style="padding-right:30px"><hb-checkout></hb-checkout></div> <div class="col-5 svelte-1eai32y" style="padding-left:30px"><hb-checkout-shopping-cart></hb-checkout-shopping-cart></div></div></div>',2);const ai={hash:"svelte-1eai32y",code:`@charset "UTF-8";
1
+ (function(gt){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const xr=1,kr=4,Tr=8,Sr=16,Nr=2,Cr="[",Or="]",Te={},k=Symbol(),Rr="http://www.w3.org/1999/xhtml",pt=!1;var mt=Array.isArray,Ar=Array.prototype.indexOf,Pr=Array.from,Pe=Object.keys,_e=Object.defineProperty,re=Object.getOwnPropertyDescriptor,Lr=Object.getOwnPropertyDescriptors,Ir=Object.prototype,Mr=Array.prototype,yt=Object.getPrototypeOf,wt=Object.isExtensible;function $t(e){for(var t=0;t<e.length;t++)e[t]()}function Dr(){var e,t,r=new Promise((n,i)=>{e=n,t=i});return{promise:r,resolve:e,reject:t}}const R=2,Ve=4,Je=8,Se=16,z=32,K=64,Et=128,L=256,Le=512,N=1024,j=2048,Z=4096,be=8192,ne=16384,Xe=32768,jr=65536,xt=1<<17,Fr=1<<18,ge=1<<19,qr=1<<20,ze=1<<21,Ke=1<<22,ie=1<<23,Ie=Symbol("$state"),kt=Symbol("legacy props"),Ur=Symbol(""),Ze=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},Br=3,Tt=8;function Yr(){throw new Error("https://svelte.dev/e/await_outside_boundary")}function Hr(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Wr(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Gr(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Vr(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Jr(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Xr(){throw new Error("https://svelte.dev/e/hydration_failed")}function zr(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function Kr(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Zr(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Qr(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Qe(e){console.warn("https://svelte.dev/e/hydration_mismatch")}let x=!1;function pe(e){x=e}let C;function me(e){if(e===null)throw Qe(),Te;return C=e}function St(){return me(Oe(C))}function Me(e){if(x){if(Oe(C)!==null)throw Qe(),Te;C=e}}function Nt(e){return e===this.v}function en(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Ct(e){return!en(e,this.v)}let tn=!1,F=null;function De(e){F=e}function Ot(e,t=!1,r){F={p:F,c:null,e:null,s:e,x:null,l:null}}function Rt(e){var t=F,r=t.e;if(r!==null){t.e=null;for(var n of r)Vt(n)}return e!==void 0&&(t.x=e),F=t.p,e??{}}function At(){return!0}const rn=new WeakMap;function nn(e){var t=p;if(t===null)return m.f|=ie,e;if((t.f&Xe)===0){if((t.f&Et)===0)throw!t.parent&&e instanceof Error&&Pt(e),e;t.b.error(e)}else et(e,t)}function et(e,t){for(;t!==null;){if((t.f&Et)!==0)try{t.b.error(e);return}catch(r){e=r}t=t.parent}throw e instanceof Error&&Pt(e),e}function Pt(e){const t=rn.get(e);t&&(_e(e,"message",{value:t.message}),_e(e,"stack",{value:t.stack}))}let Ne=[],tt=[];function Lt(){var e=Ne;Ne=[],$t(e)}function sn(){var e=tt;tt=[],$t(e)}function an(e){Ne.length===0&&queueMicrotask(Lt),Ne.push(e)}function on(){Ne.length>0&&Lt(),tt.length>0&&sn()}function ln(){const e=p.b;return e===null&&Yr(),e}function rt(e){var t=R|j,r=m!==null&&(m.f&R)!==0?m:null;return p===null||r!==null&&(r.f&L)!==0?t|=L:p.f|=ge,{ctx:F,deps:null,effects:null,equals:Nt,f:t,fn:e,reactions:null,rv:0,v:k,wv:0,parent:r??p,ac:null}}function un(e,t){let r=p;r===null&&Hr();var n=r.b,i=void 0,s=at(k),a=null,o=!m;return kn(()=>{try{var l=e();a&&Promise.resolve(l).catch(()=>{})}catch(d){l=Promise.reject(d)}var u=()=>l;i=a?.then(u,u)??Promise.resolve(l),a=i;var f=T,c=n.is_pending();o&&(n.update_pending_count(1),c||f.increment());const h=(d,v=void 0)=>{a=null,c||f.activate(),v?v!==Ze&&(s.f|=ie,ot(s,v)):((s.f&ie)!==0&&(s.f^=ie),ot(s,d)),o&&(n.update_pending_count(-1),c||f.decrement()),Dt()};if(i.then(h,d=>h(null,d||"unknown")),f)return()=>{queueMicrotask(()=>f.neuter())}}),new Promise(l=>{function u(f){function c(){f===i?l(s):u(i)}f.then(c,c)}u(i)})}function fn(e){const t=rt(e);return t.equals=Ct,t}function It(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)ee(t[r])}}function cn(e){for(var t=e.parent;t!==null;){if((t.f&R)===0)return t;t=t.parent}return null}function nt(e){var t,r=p;Y(cn(e));try{It(e),t=ir(e)}finally{Y(r)}return t}function Mt(e){var t=nt(e);if(e.equals(t)||(e.v=t,e.wv=rr()),!ce){var r=(te||(e.f&L)!==0)&&e.deps!==null?Z:N;P(e,r)}}function dn(e,t,r){const n=rt;if(t.length===0){r(e.map(n));return}var i=T,s=p,a=hn(),o=ln();Promise.all(t.map(l=>un(l))).then(l=>{i?.activate(),a();try{r([...e.map(n),...l])}catch(u){(s.f&ne)===0&&et(u,s)}i?.deactivate(),Dt()}).catch(l=>{o.error(l)})}function hn(){var e=p,t=m,r=F,n=T;return function(){Y(e),I(t),De(r),n?.activate()}}function Dt(){Y(null),I(null),De(null)}const it=new Set;let T=null,jt=new Set,je=[];function Ft(){const e=je.shift();je.length>0&&queueMicrotask(Ft),e()}let se=[],Fe=null,st=!1,qe=!1;class ae{current=new Map;#t=new Map;#e=new Set;#r=0;#u=null;#f=!1;#i=[];#a=[];#s=[];#n=[];#o=[];#c=[];#d=[];skipped_effects=new Set;process(t){se=[];for(const i of t)this.#v(i);if(this.#i.length===0&&this.#r===0){this.#h();var r=this.#s,n=this.#n;this.#s=[],this.#n=[],this.#o=[],T=null,Ut(r),Ut(n),T===null?T=this:it.delete(this),this.#u?.resolve()}else this.#l(this.#s),this.#l(this.#n),this.#l(this.#o);for(const i of this.#i)we(i);for(const i of this.#a)we(i);this.#i=[],this.#a=[]}#v(t){t.f^=N;for(var r=t.first;r!==null;){var n=r.f,i=(n&(z|K))!==0,s=i&&(n&N)!==0,a=s||(n&be)!==0||this.skipped_effects.has(r);if(!a&&r.fn!==null){if(i)r.f^=N;else if((n&Ve)!==0)this.#n.push(r);else if((n&N)===0)if((n&Ke)!==0){var o=r.b?.is_pending()?this.#a:this.#i;o.push(r)}else Ye(r)&&((r.f&Se)!==0&&this.#o.push(r),we(r));var l=r.first;if(l!==null){r=l;continue}}var u=r.parent;for(r=r.next;r===null&&u!==null;)r=u.next,u=u.parent}}#l(t){for(const r of t)((r.f&j)!==0?this.#c:this.#d).push(r),P(r,N);t.length=0}capture(t,r){this.#t.has(t)||this.#t.set(t,r),this.current.set(t,t.v)}activate(){T=this}deactivate(){T=null;for(const t of jt)if(jt.delete(t),t(),T!==null)break}neuter(){this.#f=!0}flush(){se.length>0?qt():this.#h(),T===this&&(this.#r===0&&it.delete(this),this.deactivate())}#h(){if(!this.#f)for(const t of this.#e)t();this.#e.clear()}increment(){this.#r+=1}decrement(){if(this.#r-=1,this.#r===0){for(const t of this.#c)P(t,j),Ce(t);for(const t of this.#d)P(t,Z),Ce(t);this.#s=[],this.#n=[],this.flush()}else this.deactivate()}add_callback(t){this.#e.add(t)}settled(){return(this.#u??=Dr()).promise}static ensure(){if(T===null){const t=T=new ae;it.add(T),qe||ae.enqueue(()=>{T===t&&t.flush()})}return T}static enqueue(t){je.length===0&&queueMicrotask(Ft),je.unshift(t)}}function oe(e){var t=qe;qe=!0;try{for(var r;;){if(on(),se.length===0&&(T?.flush(),se.length===0))return Fe=null,r;qt()}}finally{qe=t}}function qt(){var e=ye;st=!0;try{var t=0;for(Zt(!0);se.length>0;){var r=ae.ensure();if(t++>1e3){var n,i;vn()}r.process(se),Q.clear()}}finally{st=!1,Zt(e),Fe=null}}function vn(){try{Jr()}catch(e){et(e,Fe)}}let le=null;function Ut(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var n=e[r++];if((n.f&(ne|be))===0&&Ye(n)&&(le=[],we(n),n.deps===null&&n.first===null&&n.nodes_start===null&&(n.teardown===null&&n.ac===null?zt(n):n.fn=null),le?.length>0)){Q.clear();for(const i of le)we(i);le=[]}}le=null}}function Ce(e){for(var t=Fe=e;t.parent!==null;){t=t.parent;var r=t.f;if(st&&t===p&&(r&Se)!==0)return;if((r&(K|z))!==0){if((r&N)===0)return;t.f^=N}}se.push(t)}const Q=new Map;function at(e,t){var r={f:0,v:e,reactions:null,equals:Nt,rv:0,wv:0};return r}function q(e,t){const r=at(e);return An(r),r}function _n(e,t=!1,r=!0){const n=at(e);return t||(n.equals=Ct),n}function G(e,t,r=!1){m!==null&&(!B||(m.f&xt)!==0)&&At()&&(m.f&(R|Se|Ke|xt))!==0&&!J?.includes(e)&&Qr();let n=r?ue(t):t;return ot(e,n)}function ot(e,t){if(!e.equals(t)){var r=e.v;ce?Q.set(e,t):Q.set(e,r),e.v=t;var n=ae.ensure();n.capture(e,r),(e.f&R)!==0&&((e.f&j)!==0&&nt(e),P(e,(e.f&L)===0?N:Z)),e.wv=rr(),Bt(e,j),p!==null&&(p.f&N)!==0&&(p.f&(z|K))===0&&(M===null?Pn([e]):M.push(e))}return t}function lt(e){G(e,e.v+1)}function Bt(e,t){var r=e.reactions;if(r!==null)for(var n=r.length,i=0;i<n;i++){var s=r[i],a=s.f,o=(a&j)===0;o&&P(s,t),(a&R)!==0?Bt(s,Z):o&&((a&Se)!==0&&le!==null&&le.push(s),Ce(s))}}function ue(e){if(typeof e!="object"||e===null||Ie in e)return e;const t=yt(e);if(t!==Ir&&t!==Mr)return e;var r=new Map,n=mt(e),i=q(0),s=de,a=o=>{if(de===s)return o();var l=m,u=de;I(null),tr(s);var f=o();return I(l),tr(u),f};return n&&r.set("length",q(e.length)),new Proxy(e,{defineProperty(o,l,u){(!("value"in u)||u.configurable===!1||u.enumerable===!1||u.writable===!1)&&Kr();var f=r.get(l);return f===void 0?f=a(()=>{var c=q(u.value);return r.set(l,c),c}):G(f,u.value,!0),!0},deleteProperty(o,l){var u=r.get(l);if(u===void 0){if(l in o){const f=a(()=>q(k));r.set(l,f),lt(i)}}else G(u,k),lt(i);return!0},get(o,l,u){if(l===Ie)return e;var f=r.get(l),c=l in o;if(f===void 0&&(!c||re(o,l)?.writable)&&(f=a(()=>{var d=ue(c?o[l]:k),v=q(d);return v}),r.set(l,f)),f!==void 0){var h=D(f);return h===k?void 0:h}return Reflect.get(o,l,u)},getOwnPropertyDescriptor(o,l){var u=Reflect.getOwnPropertyDescriptor(o,l);if(u&&"value"in u){var f=r.get(l);f&&(u.value=D(f))}else if(u===void 0){var c=r.get(l),h=c?.v;if(c!==void 0&&h!==k)return{enumerable:!0,configurable:!0,value:h,writable:!0}}return u},has(o,l){if(l===Ie)return!0;var u=r.get(l),f=u!==void 0&&u.v!==k||Reflect.has(o,l);if(u!==void 0||p!==null&&(!f||re(o,l)?.writable)){u===void 0&&(u=a(()=>{var h=f?ue(o[l]):k,d=q(h);return d}),r.set(l,u));var c=D(u);if(c===k)return!1}return f},set(o,l,u,f){var c=r.get(l),h=l in o;if(n&&l==="length")for(var d=u;d<c.v;d+=1){var v=r.get(d+"");v!==void 0?G(v,k):d in o&&(v=a(()=>q(k)),r.set(d+"",v))}if(c===void 0)(!h||re(o,l)?.writable)&&(c=a(()=>q(void 0)),G(c,ue(u)),r.set(l,c));else{h=c.v!==k;var b=a(()=>ue(u));G(c,b)}var E=Reflect.getOwnPropertyDescriptor(o,l);if(E?.set&&E.set.call(f,u),!h){if(n&&typeof l=="string"){var S=r.get("length"),_=Number(l);Number.isInteger(_)&&_>=S.v&&G(S,_+1)}lt(i)}return!0},ownKeys(o){D(i);var l=Reflect.ownKeys(o).filter(c=>{var h=r.get(c);return h===void 0||h.v!==k});for(var[u,f]of r)f.v!==k&&!(u in o)&&l.push(u);return l},setPrototypeOf(){Zr()}})}var Yt,Ht,Wt,Gt;function ut(){if(Yt===void 0){Yt=window,Ht=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;Wt=re(t,"firstChild").get,Gt=re(t,"nextSibling").get,wt(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),wt(r)&&(r.__t=void 0)}}function ft(e=""){return document.createTextNode(e)}function Ue(e){return Wt.call(e)}function Oe(e){return Gt.call(e)}function Be(e,t){if(!x)return Ue(e);var r=Ue(C);return r===null&&(r=C.appendChild(ft())),me(r),r}function bn(e,t=1,r=!1){let n=x?C:e;for(var i;t--;)i=n,n=Oe(n);if(!x)return n;if(r&&n?.nodeType!==Br){var s=ft();return n===null?i?.after(s):n.before(s),me(s),s}return me(n),n}function gn(e){e.textContent=""}function ct(e){var t=m,r=p;I(null),Y(null);try{return e()}finally{I(t),Y(r)}}function pn(e){p===null&&m===null&&Vr(),m!==null&&(m.f&L)!==0&&p===null&&Gr(),ce&&Wr()}function mn(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function V(e,t,r,n=!0){var i=p;i!==null&&(i.f&be)!==0&&(e|=be);var s={ctx:F,deps:null,nodes_start:null,nodes_end:null,f:e|j,first:null,fn:t,last:null,next:null,parent:i,b:i&&i.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(r)try{we(s),s.f|=Xe}catch(l){throw ee(s),l}else t!==null&&Ce(s);if(n){var a=s;if(r&&a.deps===null&&a.teardown===null&&a.nodes_start===null&&a.first===a.last&&(a.f&ge)===0&&(a=a.first),a!==null&&(a.parent=i,i!==null&&mn(a,i),m!==null&&(m.f&R)!==0&&(e&K)===0)){var o=m;(o.effects??=[]).push(a)}}return s}function yn(e){const t=V(Je,null,!1);return P(t,N),t.teardown=e,t}function wn(e){pn();var t=p.f,r=!m&&(t&z)!==0&&(t&Xe)===0;if(r){var n=F;(n.e??=[]).push(e)}else return Vt(e)}function Vt(e){return V(Ve|qr,e,!1)}function $n(e){ae.ensure();const t=V(K|ge,e,!0);return()=>{ee(t)}}function En(e){ae.ensure();const t=V(K|ge,e,!0);return(r={})=>new Promise(n=>{r.outro?On(t,()=>{ee(t),n(void 0)}):(ee(t),n(void 0))})}function xn(e){return V(Ve,e,!1)}function kn(e){return V(Ke|ge,e,!0)}function Tn(e,t=0){return V(Je|t,e,!0)}function fe(e,t=[],r=[]){dn(t,r,n=>{V(Je,()=>e(...n.map(D)),!0)})}function Sn(e,t=!0){return V(z|ge,e,!0,t)}function Jt(e){var t=e.teardown;if(t!==null){const r=ce,n=m;Qt(!0),I(null);try{t.call(null)}finally{Qt(r),I(n)}}}function Xt(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const i=r.ac;i!==null&&ct(()=>{i.abort(Ze)});var n=r.next;(r.f&K)!==0?r.parent=null:ee(r,t),r=n}}function Nn(e){for(var t=e.first;t!==null;){var r=t.next;(t.f&z)===0&&ee(t),t=r}}function ee(e,t=!0){var r=!1;(t||(e.f&Fr)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(Cn(e.nodes_start,e.nodes_end),r=!0),Xt(e,t&&!r),He(e,0),P(e,ne);var n=e.transitions;if(n!==null)for(const s of n)s.stop();Jt(e);var i=e.parent;i!==null&&i.first!==null&&zt(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function Cn(e,t){for(;e!==null;){var r=e===t?null:Oe(e);e.remove(),e=r}}function zt(e){var t=e.parent,r=e.prev,n=e.next;r!==null&&(r.next=n),n!==null&&(n.prev=r),t!==null&&(t.first===e&&(t.first=n),t.last===e&&(t.last=r))}function On(e,t){var r=[];Kt(e,r,!0),Rn(r,()=>{ee(e),t&&t()})}function Rn(e,t){var r=e.length;if(r>0){var n=()=>--r||t();for(var i of e)i.out(n)}else t()}function Kt(e,t,r){if((e.f&be)===0){if(e.f^=be,e.transitions!==null)for(const a of e.transitions)(a.is_global||r)&&t.push(a);for(var n=e.first;n!==null;){var i=n.next,s=(n.f&jr)!==0||(n.f&z)!==0;Kt(n,t,s?r:!1),n=i}}}let ye=!1;function Zt(e){ye=e}let ce=!1;function Qt(e){ce=e}let m=null,B=!1;function I(e){m=e}let p=null;function Y(e){p=e}let J=null;function An(e){m!==null&&(J===null?J=[e]:J.push(e))}let O=null,A=0,M=null;function Pn(e){M=e}let er=1,Re=0,de=Re;function tr(e){de=e}let te=!1;function rr(){return++er}function Ye(e){var t=e.f;if((t&j)!==0)return!0;if((t&Z)!==0){var r=e.deps,n=(t&L)!==0;if(r!==null){var i,s,a=(t&Le)!==0,o=n&&p!==null&&!te,l=r.length;if((a||o)&&(p===null||(p.f&ne)===0)){var u=e,f=u.parent;for(i=0;i<l;i++)s=r[i],(a||!s?.reactions?.includes(u))&&(s.reactions??=[]).push(u);a&&(u.f^=Le),o&&f!==null&&(f.f&L)===0&&(u.f^=L)}for(i=0;i<l;i++)if(s=r[i],Ye(s)&&Mt(s),s.wv>e.wv)return!0}(!n||p!==null&&!te)&&P(e,N)}return!1}function nr(e,t,r=!0){var n=e.reactions;if(n!==null&&!J?.includes(e))for(var i=0;i<n.length;i++){var s=n[i];(s.f&R)!==0?nr(s,t,!1):t===s&&(r?P(s,j):(s.f&N)!==0&&P(s,Z),Ce(s))}}function ir(e){var t=O,r=A,n=M,i=m,s=te,a=J,o=F,l=B,u=de,f=e.f;O=null,A=0,M=null,te=(f&L)!==0&&(B||!ye||m===null),m=(f&(z|K))===0?e:null,J=null,De(e.ctx),B=!1,de=++Re,e.ac!==null&&(ct(()=>{e.ac.abort(Ze)}),e.ac=null);try{e.f|=ze;var c=e.fn,h=c(),d=e.deps;if(O!==null){var v;if(He(e,A),d!==null&&A>0)for(d.length=A+O.length,v=0;v<O.length;v++)d[A+v]=O[v];else e.deps=d=O;if(!te||(f&R)!==0&&e.reactions!==null)for(v=A;v<d.length;v++)(d[v].reactions??=[]).push(e)}else d!==null&&A<d.length&&(He(e,A),d.length=A);if(At()&&M!==null&&!B&&d!==null&&(e.f&(R|Z|j))===0)for(v=0;v<M.length;v++)nr(M[v],e);return i!==null&&i!==e&&(Re++,M!==null&&(n===null?n=M:n.push(...M))),(e.f&ie)!==0&&(e.f^=ie),h}catch(b){return nn(b)}finally{e.f^=ze,O=t,A=r,M=n,m=i,te=s,J=a,De(o),B=l,de=u}}function Ln(e,t){let r=t.reactions;if(r!==null){var n=Ar.call(r,e);if(n!==-1){var i=r.length-1;i===0?r=t.reactions=null:(r[n]=r[i],r.pop())}}r===null&&(t.f&R)!==0&&(O===null||!O.includes(t))&&(P(t,Z),(t.f&(L|Le))===0&&(t.f^=Le),It(t),He(t,0))}function He(e,t){var r=e.deps;if(r!==null)for(var n=t;n<r.length;n++)Ln(e,r[n])}function we(e){var t=e.f;if((t&ne)===0){P(e,N);var r=p,n=ye;p=e,ye=!0;try{(t&Se)!==0?Nn(e):Xt(e),Jt(e);var i=ir(e);e.teardown=typeof i=="function"?i:null,e.wv=er;var s;pt&&tn&&(e.f&j)!==0&&e.deps}finally{ye=n,p=r}}}function D(e){var t=e.f,r=(t&R)!==0;if(m!==null&&!B){var n=p!==null&&(p.f&ne)!==0;if(!n&&!J?.includes(e)){var i=m.deps;if((m.f&ze)!==0)e.rv<Re&&(e.rv=Re,O===null&&i!==null&&i[A]===e?A++:O===null?O=[e]:(!te||!O.includes(e))&&O.push(e));else{(m.deps??=[]).push(e);var s=e.reactions;s===null?e.reactions=[m]:s.includes(m)||s.push(m)}}}else if(r&&e.deps===null&&e.effects===null){var a=e,o=a.parent;o!==null&&(o.f&L)===0&&(a.f^=L)}if(ce){if(Q.has(e))return Q.get(e);if(r){a=e;var l=a.v;return((a.f&N)===0&&a.reactions!==null||sr(a))&&(l=nt(a)),Q.set(a,l),l}}else r&&(a=e,Ye(a)&&Mt(a));if((e.f&ie)!==0)throw e.v;return e.v}function sr(e){if(e.v===k)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(Q.has(t)||(t.f&R)!==0&&sr(t))return!0;return!1}function In(e){var t=B;try{return B=!0,e()}finally{B=t}}const Mn=-7169;function P(e,t){e.f=e.f&Mn|t}const Dn=new Set,ar=new Set;function jn(e,t,r,n={}){function i(s){if(n.capture||Ae.call(t,s),!s.cancelBubble)return ct(()=>r?.call(this,s))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?an(()=>{t.addEventListener(e,i,n)}):t.addEventListener(e,i,n),i}function dt(e,t,r,n,i){var s={capture:n,passive:i},a=jn(e,t,r,s);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&yn(()=>{t.removeEventListener(e,a,s)})}let or=null;function Ae(e){var t=this,r=t.ownerDocument,n=e.type,i=e.composedPath?.()||[],s=i[0]||e.target;or=e;var a=0,o=or===e&&e.__root;if(o){var l=i.indexOf(o);if(l!==-1&&(t===document||t===window)){e.__root=t;return}var u=i.indexOf(t);if(u===-1)return;l<=u&&(a=l)}if(s=i[a]||e.target,s!==t){_e(e,"currentTarget",{configurable:!0,get(){return s||r}});var f=m,c=p;I(null),Y(null);try{for(var h,d=[];s!==null;){var v=s.assignedSlot||s.parentNode||s.host||null;try{var b=s["__"+n];if(b!=null&&(!s.disabled||e.target===s))if(mt(b)){var[E,...S]=b;E.apply(s,[e,...S])}else b.call(s,e)}catch(_){h?d.push(_):h=_}if(e.cancelBubble||v===t||v===null)break;s=v}if(h){for(let _ of d)queueMicrotask(()=>{throw _});throw h}}finally{e.__root=t,delete e.currentTarget,I(f),Y(c)}}}function Fn(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function ht(e,t){var r=p;r.nodes_start===null&&(r.nodes_start=e,r.nodes_end=t)}function qn(e,t){var r=(t&Nr)!==0,n,i=!e.startsWith("<!>");return()=>{if(x)return ht(C,null),C;n===void 0&&(n=Fn(i?e:"<!>"+e),n=Ue(n));var s=r||Ht?document.importNode(n,!0):n.cloneNode(!0);return ht(s,s),s}}function lr(e,t){if(x){p.nodes_end=C,St();return}e!==null&&e.before(t)}const Un=["touchstart","touchmove"];function Bn(e){return Un.includes(e)}function ur(e,t){return fr(e,t)}function Yn(e,t){ut(),t.intro=t.intro??!1;const r=t.target,n=x,i=C;try{for(var s=Ue(r);s&&(s.nodeType!==Tt||s.data!==Cr);)s=Oe(s);if(!s)throw Te;pe(!0),me(s),St();const a=fr(e,{...t,anchor:s});if(C===null||C.nodeType!==Tt||C.data!==Or)throw Qe(),Te;return pe(!1),a}catch(a){if(a instanceof Error&&a.message.split(`
2
+ `).some(o=>o.startsWith("https://svelte.dev/e/")))throw a;return a!==Te&&console.warn("Failed to hydrate: ",a),t.recover===!1&&Xr(),ut(),gn(r),pe(!1),ur(e,t)}finally{pe(n),me(i)}}const $e=new Map;function fr(e,{target:t,anchor:r,props:n={},events:i,context:s,intro:a=!0}){ut();var o=new Set,l=c=>{for(var h=0;h<c.length;h++){var d=c[h];if(!o.has(d)){o.add(d);var v=Bn(d);t.addEventListener(d,Ae,{passive:v});var b=$e.get(d);b===void 0?(document.addEventListener(d,Ae,{passive:v}),$e.set(d,1)):$e.set(d,b+1)}}};l(Pr(Dn)),ar.add(l);var u=void 0,f=En(()=>{var c=r??t.appendChild(ft());return Sn(()=>{if(s){Ot({});var h=F;h.c=s}i&&(n.$$events=i),x&&ht(c,null),u=e(c,n)||{},x&&(p.nodes_end=C),s&&Rt()}),()=>{for(var h of o){t.removeEventListener(h,Ae);var d=$e.get(h);--d===0?(document.removeEventListener(h,Ae),$e.delete(h)):$e.set(h,d)}ar.delete(l),c!==r&&c.parentNode?.removeChild(c)}});return vt.set(u,f),u}let vt=new WeakMap;function Hn(e,t){const r=vt.get(e);return r?(vt.delete(e),r(t)):Promise.resolve()}function Wn(e,t){xn(()=>{var r=e.getRootNode(),n=r.host?r:r.head??r.ownerDocument.head;if(!n.querySelector("#"+t.hash)){const i=document.createElement("style");i.id=t.hash,i.textContent=t.code,n.appendChild(i)}})}function Gn(e,t,r){var n=""+e;return n}function Vn(e,t){return e==null?null:String(e)}function cr(e,t,r,n,i,s){var a=e.__className;if(x||a!==r||a===void 0){var o=Gn(r);(!x||o!==e.getAttribute("class"))&&(o==null?e.removeAttribute("class"):e.className=o),e.__className=r}return s}function dr(e,t,r,n){var i=e.__style;if(x||i!==t){var s=Vn(t);(!x||s!==e.getAttribute("style"))&&(s==null?e.removeAttribute("style"):e.style.cssText=s),e.__style=t}return n}const Jn=Symbol("is custom element"),Xn=Symbol("is html");function zn(e,t,r,n){var i=Kn(e);x&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||i[t]!==(i[t]=r)&&(t==="loading"&&(e[Ur]=r),r==null?e.removeAttribute(t):typeof r!="string"&&hr(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function he(e,t,r){var n=m,i=p;let s=x;x&&pe(!1),I(null),Y(null);try{t!=="style"&&(_t.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.tagName.toLowerCase())?hr(e).includes(t):r&&typeof r=="object")?e[t]=r:zn(e,t,r==null?r:String(r))}finally{I(n),Y(i),s&&pe(!0)}}function Kn(e){return e.__attributes??={[Jn]:e.nodeName.includes("-"),[Xn]:e.namespaceURI===Rr}}var _t=new Map;function hr(e){var t=e.getAttribute("is")||e.nodeName,r=_t.get(t);if(r)return r;_t.set(t,r=[]);for(var n,i=e,s=Element.prototype;s!==i;){n=Lr(i);for(var a in n)n[a].set&&r.push(a);i=yt(i)}return r}let We=!1;function Zn(e){var t=We;try{return We=!1,[e(),We]}finally{We=t}}function Ee(e,t,r,n){var i=(r&Tr)!==0,s=(r&Sr)!==0,a=n,o=!0,l=()=>(o&&(o=!1,a=s?In(n):n),a),u;if(i){var f=Ie in e||kt in e;u=re(e,t)?.set??(f&&t in e?_=>e[t]=_:void 0)}var c,h=!1;i?[c,h]=Zn(()=>e[t]):c=e[t],c===void 0&&n!==void 0&&(c=l(),u&&(zr(),u(c)));var d;if(d=()=>{var _=e[t];return _===void 0?l():(o=!0,_)},(r&kr)===0)return d;if(u){var v=e.$$legacy;return(function(_,H){return arguments.length>0?((!H||v||h)&&u(H?d():_),_):d()})}var b=!1,E=((r&xr)!==0?rt:fn)(()=>(b=!1,d()));i&&D(E);var S=p;return(function(_,H){if(arguments.length>0){const W=H?D(E):i?ue(_):_;return G(E,W),b=!0,a!==void 0&&(a=W),_}return ce&&b||(S.f&ne)!==0?E.v:D(E)})}function Qn(e){return new ei(e)}class ei{#t;#e;constructor(t){var r=new Map,n=(s,a)=>{var o=_n(a,!1,!1);return r.set(s,o),o};const i=new Proxy({...t.props||{},$$events:{}},{get(s,a){return D(r.get(a)??n(a,Reflect.get(s,a)))},has(s,a){return a===kt?!0:(D(r.get(a)??n(a,Reflect.get(s,a))),Reflect.has(s,a))},set(s,a,o){return G(r.get(a)??n(a,o),o),Reflect.set(s,a,o)}});this.#e=(t.hydrate?Yn:ur)(t.component,{target:t.target,anchor:t.anchor,props:i,context:t.context,intro:t.intro??!1,recover:t.recover}),(!t?.props?.$$host||t.sync===!1)&&oe(),this.#t=i.$$events;for(const s of Object.keys(this.#e))s==="$set"||s==="$destroy"||s==="$on"||_e(this,s,{get(){return this.#e[s]},set(a){this.#e[s]=a},enumerable:!0});this.#e.$set=s=>{Object.assign(i,s)},this.#e.$destroy=()=>{Hn(this.#e)}}$set(t){this.#e.$set(t)}$on(t,r){this.#t[t]=this.#t[t]||[];const n=(...i)=>r.call(this,...i);return this.#t[t].push(n),()=>{this.#t[t]=this.#t[t].filter(i=>i!==n)}}$destroy(){this.#e.$destroy()}}let vr;typeof HTMLElement=="function"&&(vr=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(e,t,r){super(),this.$$ctor=e,this.$$s=t,r&&this.attachShadow({mode:"open"})}addEventListener(e,t,r){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}super.addEventListener(e,t,r)}removeEventListener(e,t,r){if(super.removeEventListener(e,t,r),this.$$c){const n=this.$$l_u.get(t);n&&(n(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(n){return i=>{const s=document.createElement("slot");n!=="default"&&(s.name=n),lr(i,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},r=ti(this);for(const n of this.$$s)n in r&&(n==="default"&&!this.$$d.children?(this.$$d.children=e(n),t.default=!0):t[n]=e(n));for(const n of this.attributes){const i=this.$$g_p(n.name);i in this.$$d||(this.$$d[i]=Ge(i,n.value,this.$$p_d,"toProp"))}for(const n in this.$$p_d)!(n in this.$$d)&&this[n]!==void 0&&(this.$$d[n]=this[n],delete this[n]);this.$$c=Qn({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=$n(()=>{Tn(()=>{this.$$r=!0;for(const n of Pe(this.$$c)){if(!this.$$p_d[n]?.reflect)continue;this.$$d[n]=this.$$c[n];const i=Ge(n,this.$$d[n],this.$$p_d,"toAttribute");i==null?this.removeAttribute(this.$$p_d[n].attribute||n):this.setAttribute(this.$$p_d[n].attribute||n,i)}this.$$r=!1})});for(const n in this.$$l)for(const i of this.$$l[n]){const s=this.$$c.$on(n,i);this.$$l_u.set(i,s)}this.$$l={}}}attributeChangedCallback(e,t,r){this.$$r||(e=this.$$g_p(e),this.$$d[e]=Ge(e,r,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 Pe(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function Ge(e,t,r,n){const i=r[e]?.type;if(t=i==="Boolean"&&typeof t!="boolean"?t!=null:t,!n||!r[e])return t;if(n==="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 ti(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function ri(e,t,r,n,i,s){let a=class extends vr{constructor(){super(e,r,i),this.$$p_d=t}static get observedAttributes(){return Pe(t).map(o=>(t[o].attribute||o).toLowerCase())}};return Pe(t).forEach(o=>{_e(a.prototype,o,{get(){return this.$$c&&o in this.$$c?this.$$c[o]:this.$$d[o]},set(l){l=Ge(o,l,t),this.$$d[o]=l;var u=this.$$c;if(u){var f=re(u,o)?.get;f?u[o]=l:u.$set({[o]:l})}}})}),n.forEach(o=>{_e(a.prototype,o,{get(){return this.$$c?.[o]}})}),e.element=a,a}const _r={version:"0.61.41"};function ni(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ve={},br;function ii(){if(br)return ve;br=1,Object.defineProperty(ve,"__esModule",{value:!0}),ve.LanguageTranslator=void 0,ve.getChildStyleToPass=e,ve.addComponent=t;function e(n,i){var s,a,o="";try{if(n&&i?.length&&(!((s=Object.keys(n))===null||s===void 0)&&s.length)&&(!((a=i?.filter(function(h){return Object.keys(n).includes(h.name)}))===null||a===void 0)&&a.length))for(var l=function(h){var d=i?.filter(function(v){return v.name===h&&v.defaultValue!==n[h]});d&&(o+="".concat(h,":").concat(n[h],";"))},u=0,f=Object.keys(n);u<f.length;u++){var c=f[u];l(c)}}catch(h){console.error("error getting child style to pass",h)}finally{return o}}function t(n){var i,s=((i=n?.repoName.split("/"))===null||i===void 0?void 0:i[1])||n?.repoName;if(!s)throw new Error("wrong componentPath "+n?.repoName);if(!n?.version)throw new Error("wrong version "+n?.version);var a=n?.iifePath||"main.iife.js";if(!document.getElementById(s+"-script"))try{var o=document.createElement("script");if(o.id=s+"-script",o.src="https://cdn.jsdelivr.net/npm/".concat(n.repoName,"@").concat(n.version,"/").concat(a),n?.local)o.src="".concat(n.local);else if(location.href.includes("localhost:6006")){var l=s.split("-")[0];o.src="http://localhost:6006/webcomponents/".concat(s.replace(l+"-",""),"/").concat(a)}document.head.appendChild(o)}catch(u){console.warn(u)}}var r=(function(){function n(i){if(this.lang="",!i?.dictionary)throw new Error("no dictionary provided");this.dictionary=i.dictionary,this.setLang(i?.lang)}return n.prototype.setLang=function(i){i||(i=n.getDefaultLang()),this.lang=i},n.prototype.translateWord=function(i,s){return n.getDictionaryWord(i,this.dictionary,s||this.lang)},n.prototype.translateDate=function(i,s,a){return n.formatDate(i,s,a||this.lang)},n.getDefaultLang=function(){var i,s,a,o,l,u="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)&&(u=(l=(o=navigator.languages[0])===null||o===void 0?void 0:o.split("-")[0])===null||l===void 0?void 0:l.toLowerCase()),u},n.getDictionaryWord=function(i,s,a){var o;if(!i)throw new Error("no wordKey provided");if(!s)throw new Error("no dictionary provided");if(a&&(!((o=s[a])===null||o===void 0)&&o[i]))return s[a][i];var l="",u=n.getDefaultLang();if(!a||u!==a){var f=s?.[u];f?.[i]&&(l=f[i])}return l},n.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 o=new Intl.DateTimeFormat(a||n.getDefaultLang(),s);return o.format(i)},n})();return ve.LanguageTranslator=r,ve}var gr=ii(),xe={},bt,pr;function si(){if(pr)return bt;pr=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,r=/^\s*/,n=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,a=/^[;\s]*/,o=/^\s+|\s+$/g,l=`
3
+ `,u="/",f="*",c="",h="comment",d="declaration";bt=function(b,E){if(typeof b!="string")throw new TypeError("First argument must be a string");if(!b)return[];E=E||{};var S=1,_=1;function H(w){var g=w.match(t);g&&(S+=g.length);var U=w.lastIndexOf(l);_=~U?w.length-U:_+w.length}function W(){var w={line:S,column:_};return function(g){return g.position=new y(w),ke(),g}}function y(w){this.start=w,this.end={line:S,column:_},this.source=E.source}y.prototype.content=b;function X(w){var g=new Error(E.source+":"+S+":"+_+": "+w);if(g.reason=w,g.filename=E.source,g.line=S,g.column=_,g.source=b,!E.silent)throw g}function $(w){var g=w.exec(b);if(g){var U=g[0];return H(U),b=b.slice(U.length),g}}function ke(){$(r)}function $r(w){var g;for(w=w||[];g=Er();)g!==!1&&w.push(g);return w}function Er(){var w=W();if(!(u!=b.charAt(0)||f!=b.charAt(1))){for(var g=2;c!=b.charAt(g)&&(f!=b.charAt(g)||u!=b.charAt(g+1));)++g;if(g+=2,c===b.charAt(g-1))return X("End of comment missing");var U=b.slice(2,g-2);return _+=2,H(U),b=b.slice(g),_+=2,w({type:h,comment:U})}}function fi(){var w=W(),g=$(n);if(g){if(Er(),!$(i))return X("property missing ':'");var U=$(s),di=w({type:d,property:v(g[0].replace(e,c)),value:U?v(U[0].replace(e,c)):c});return $(a),di}}function ci(){var w=[];$r(w);for(var g;g=fi();)g!==!1&&(w.push(g),$r(w));return w}return ke(),ci()};function v(b){return b?b.replace(o,c):c}return bt}var mr;function ai(){if(mr)return xe;mr=1;var e=xe&&xe.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(xe,"__esModule",{value:!0}),xe.default=r;var t=e(si());function r(n,i){var s=null;if(!n||typeof n!="string")return s;var a=(0,t.default)(n),o=typeof i=="function";return a.forEach(function(l){if(l.type==="declaration"){var u=l.property,f=l.value;o?i(u,f,l):f&&(s=s||{},s[u]=f)}}),s}return xe}var oi=ai();const yr=ni(oi);yr.default;var li=qn('<div class="container svelte-1eai32y"><div class="row svelte-1eai32y"><div class="col-7 svelte-1eai32y" style="padding-right:30px"><hb-checkout></hb-checkout></div> <div class="col-5 svelte-1eai32y" style="padding-left:30px"><hb-checkout-shopping-cart></hb-checkout-shopping-cart></div></div></div>',2);const ui={hash:"svelte-1eai32y",code:`@charset "UTF-8";
4
4
  @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");
5
5
  /*!
6
6
  * Bootstrap v5.3.8 (https://getbootstrap.com/)
@@ -85,7 +85,7 @@
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);}hb-checkout-shopping-cart.svelte-1eai32y {border:var(--hb-checkout-border);--hb-checkout-border: 0.5px solid rgba(197, 197, 197, 0.808);}`};function mr(e,t){Ot(t,!0),Yn(e,ai);/**
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);}hb-checkout-shopping-cart.svelte-1eai32y {border:var(--hb-checkout-border);--hb-checkout-border: 0.5px solid rgba(197, 197, 197, 0.808);}`};function wr(e,t){Ot(t,!0),Wn(e,ui);/**
89
89
  * Svelte Payment Page WebComponent
90
90
  * =====================
91
91
  *
@@ -93,5 +93,5 @@
93
93
  *
94
94
  * @license: MIT License
95
95
  *
96
- */const r={merchantName:"merchant",countryCode:"IT",total:0,currencyCode:"EUR",items:[]};let n=$e(t,"id",7,""),i=$e(t,"shipments",23,()=>[]),s=$e(t,"user",7),a=$e(t,"payment",7,r),l=$e(t,"gateways",23,()=>[]),o=$e(t,"completed",7,"no");ue({});let u=q(""),f=q("");mn(()=>{typeof i()=="string"&&i(JSON.parse(i())||[]),typeof l()=="string"&&l(JSON.parse(l())||[]),typeof a()=="string"&&a(JSON.parse(a())),a()&&(i().find($=>$.selected)||i().find($=>$.standard))&&(a().shipmentFee=(i()?.find($=>$.selected)||i().find($=>$.standard))?.price);let y=a()?.shipmentFee||0;for(const $ of a().items)y+=$.unitaryPrice*($.quantity||1)+Math.round($.taxPercentage*.01*$.unitaryPrice*($.quantity||1)*100)/100;let X;switch(a()?.countryCode?.toUpperCase()){default:X="EUR"}a().total=Math.round(y*100)/100,a().currencyCode=X});function c(y,X){t.$$host.dispatchEvent(new CustomEvent(y,{detail:X}))}_r({repoName:"@htmlbricks/hb-checkout-shopping-cart",version:vr.version}),_r({repoName:"@htmlbricks/hb-checkout",version:vr.version});function h(y){const X=i().findIndex(xe=>xe.id===y.id),$=i()[X];i().forEach(xe=>xe.selected=!1),$.selected=!0,a().shipmentFee=$.price,console.log("sss",$,y)}function d(y){y.completed?(o("yes"),c("paymentCompleted",y)):console.warn(y)}var b={get id(){return n()},set id(y=""){n(y),oe()},get shipments(){return i()},set shipments(y=[]){i(y),oe()},get user(){return s()},set user(y){s(y),oe()},get payment(){return a()},set payment(y=r){a(y),oe()},get gateways(){return l()},set gateways(y=[]){l(y),oe()},get completed(){return o()},set completed(y="no"){o(y),oe()}},_=si(),E=Ue(_),N=Ue(E),v=Ue(N);cr(v,D(u)),fe(()=>he(v,"completed",o())),fe(()=>he(v,"user",s())),fe(()=>he(v,"shipments",JSON.stringify(i()))),fe(()=>he(v,"gateways",JSON.stringify(l()))),fe(()=>he(v,"payment",JSON.stringify(a()))),fr(v,1,"svelte-1eai32y"),Me(N);var H=vn(N,2),G=Ue(H);return cr(G,D(f)),fe(()=>he(G,"completed",o())),fe(()=>he(G,"payment",JSON.stringify(a()))),fr(G,1,"svelte-1eai32y"),Me(H),Me(E),Me(_),ct("paymentCompleted",v,y=>d(y.detail)),ct("saveUser",v,y=>c("saveUser",y.detail)),ct("saveShipment",v,y=>h(y.detail)),or(e,_),At(b)}customElements.define("hb-page-checkout",ei(mr,{id:{},shipments:{},user:{},payment:{},gateways:{},completed:{}},[],[],!0)),bt.Component=mr,Object.defineProperty(bt,Symbol.toStringTag,{value:"Module"})})(this["page-checkout"]=this["page-checkout"]||{});
96
+ */const r={merchantName:"merchant",countryCode:"IT",total:0,currencyCode:"EUR",items:[]};let n=Ee(t,"id",7,""),i=Ee(t,"shipments",23,()=>[]),s=Ee(t,"user",7),a=Ee(t,"payment",7,r),o=Ee(t,"gateways",23,()=>[]),l=Ee(t,"completed",7,"no");ue({});let u=q(""),f=q("");wn(()=>{typeof i()=="string"&&i(JSON.parse(i())||[]),typeof o()=="string"&&o(JSON.parse(o())||[]),typeof a()=="string"&&a(JSON.parse(a())),a()&&(i().find($=>$.selected)||i().find($=>$.standard))&&(a().shipmentFee=(i()?.find($=>$.selected)||i().find($=>$.standard))?.price);let y=a()?.shipmentFee||0;for(const $ of a().items)y+=$.unitaryPrice*($.quantity||1)+Math.round($.taxPercentage*.01*$.unitaryPrice*($.quantity||1)*100)/100;let X;switch(a()?.countryCode?.toUpperCase()){default:X="EUR"}a().total=Math.round(y*100)/100,a().currencyCode=X});function c(y,X){t.$$host.dispatchEvent(new CustomEvent(y,{detail:X}))}gr.addComponent({repoName:"@htmlbricks/hb-checkout-shopping-cart",version:_r.version}),gr.addComponent({repoName:"@htmlbricks/hb-checkout",version:_r.version});function h(y){const X=i().findIndex(ke=>ke.id===y.id),$=i()[X];i().forEach(ke=>ke.selected=!1),$.selected=!0,a().shipmentFee=$.price,console.log("sss",$,y)}function d(y){y.completed?(l("yes"),c("paymentCompleted",y)):console.warn(y)}var v={get id(){return n()},set id(y=""){n(y),oe()},get shipments(){return i()},set shipments(y=[]){i(y),oe()},get user(){return s()},set user(y){s(y),oe()},get payment(){return a()},set payment(y=r){a(y),oe()},get gateways(){return o()},set gateways(y=[]){o(y),oe()},get completed(){return l()},set completed(y="no"){l(y),oe()}},b=li(),E=Be(b),S=Be(E),_=Be(S);dr(_,D(u)),fe(()=>he(_,"completed",l())),fe(()=>he(_,"user",s())),fe(()=>he(_,"shipments",JSON.stringify(i()))),fe(()=>he(_,"gateways",JSON.stringify(o()))),fe(()=>he(_,"payment",JSON.stringify(a()))),cr(_,1,"svelte-1eai32y"),Me(S);var H=bn(S,2),W=Be(H);return dr(W,D(f)),fe(()=>he(W,"completed",l())),fe(()=>he(W,"payment",JSON.stringify(a()))),cr(W,1,"svelte-1eai32y"),Me(H),Me(E),Me(b),dt("paymentCompleted",_,y=>d(y.detail)),dt("saveUser",_,y=>c("saveUser",y.detail)),dt("saveShipment",_,y=>h(y.detail)),lr(e,b),Rt(v)}customElements.define("hb-page-checkout",ri(wr,{id:{},shipments:{},user:{},payment:{},gateways:{},completed:{}},[],[],!0)),gt.Component=wr,Object.defineProperty(gt,Symbol.toStringTag,{value:"Module"})})(this["page-checkout"]=this["page-checkout"]||{});
97
97
  //# sourceMappingURL=main.iife.js.map