@htmlbricks/hb-payment-paypal 0.66.5 → 0.66.7
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 +4 -4
- package/main.iife.js.map +1 -1
- package/manifest.json +2 -2
- package/package.json +1 -1
package/main.iife.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
(function(nt){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const vn=2,rt="[",it="[!",st="[?",lt="]",xe={},$=Symbol(),_n="http://www.w3.org/1999/xhtml",pn=!1;var mn=Array.isArray,wn=Array.prototype.indexOf,le=Array.prototype.includes,bn=Array.from,Se=Object.keys,Te=Object.defineProperty,oe=Object.getOwnPropertyDescriptor,yn=Object.prototype,gn=Array.prototype,$n=Object.getPrototypeOf,ot=Object.isExtensible;const En=()=>{};function xn(e){for(var t=0;t<e.length;t++)e[t]()}function Sn(){var e,t,n=new Promise((r,i)=>{e=r,t=i});return{promise:n,resolve:e,reject:t}}const b=2,ae=4,at=8,ut=1<<24,H=16,B=32,Y=64,Fe=128,k=512,g=1024,E=2048,I=4096,z=8192,V=16384,X=32768,ft=1<<25,Oe=65536,ct=1<<17,Tn=1<<18,ue=1<<19,On=1<<20,ee=65536,Le=1<<21,dt=1<<22,pe=1<<23,Be=Symbol("$state"),kn=Symbol("legacy props"),qe=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},Ue=8;function An(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function Rn(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Nn(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Cn(e){throw new Error("https://svelte.dev/e/effect_orphan")}function jn(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Dn(){throw new Error("https://svelte.dev/e/hydration_failed")}function Mn(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Pn(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function In(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Fn(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function ht(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function Ln(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let C=!1;function ke(e){C=e}let x;function me(e){if(e===null)throw ht(),xe;return x=e}function vt(){return me(he(x))}function Bn(e=1){if(C){for(var t=e,n=x;t--;)n=he(n);x=n}}function qn(e=!0){for(var t=0,n=x;;){if(n.nodeType===Ue){var r=n.data;if(r===lt){if(t===0)return n;t-=1}else(r===rt||r===it||r[0]==="["&&!isNaN(Number(r.slice(1))))&&(t+=1)}var i=he(n);e&&n.remove(),n=i}}function _t(e){return e===this.v}function Un(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Hn(e){return!Un(e,this.v)}let Yn=!1,A=null;function Ae(e){A=e}function pt(e,t=!1,n){A={p:A,i:!1,c:null,e:null,s:e,x:null,r:p,l:null}}function mt(e){var t=A,n=t.e;if(n!==null){t.e=null;for(var r of n)Ut(r)}return e!==void 0&&(t.x=e),t.i=!0,A=t.p,e??{}}function wt(){return!0}let te=[];function bt(){var e=te;te=[],xn(e)}function fe(e){if(te.length===0&&!we){var t=te;queueMicrotask(()=>{t===te&&bt()})}te.push(e)}function zn(){for(;te.length>0;)bt()}function yt(e){var t=p;if(t===null)return _.f|=pe,e;if((t.f&X)===0&&(t.f&ae)===0)throw e;ce(e,t)}function ce(e,t){for(;t!==null;){if((t.f&Fe)!==0){if((t.f&X)===0)throw e;try{t.b.error(e);return}catch(n){e=n}}t=t.parent}throw e}const Vn=-7169;function y(e,t){e.f=e.f&Vn|t}function He(e){(e.f&k)!==0||e.deps===null?y(e,g):y(e,I)}function gt(e){if(e!==null)for(const t of e)(t.f&b)===0||(t.f&ee)===0||(t.f^=ee,gt(t.deps))}function $t(e,t,n){(e.f&E)!==0?t.add(e):(e.f&I)!==0&&n.add(e),gt(e.deps),y(e,g)}const W=new Set;let w=null,j=null,Ye=null,we=!1,ze=!1,de=null,Re=null;var Et=0;let Wn=1;class K{id=Wn++;current=new Map;previous=new Map;#e=new Set;#n=new Set;#s=new Map;#a=new Map;#l=null;#t=[];#r=new Set;#i=new Set;#o=new Map;is_fork=!1;#c=!1;#u=new Set;#d(){return this.is_fork||this.#a.size>0}#v(){for(const r of this.#u)for(const i of r.#a.keys()){for(var t=!1,n=i;n.parent!==null;){if(this.#o.has(n)){t=!0;break}n=n.parent}if(!t)return!0}return!1}skip_effect(t){this.#o.has(t)||this.#o.set(t,{d:[],m:[]})}unskip_effect(t){var n=this.#o.get(t);if(n){this.#o.delete(t);for(var r of n.d)y(r,E),this.schedule(r);for(r of n.m)y(r,I),this.schedule(r)}}#h(){if(Et++>1e3&&(W.delete(this),Kn()),!this.#d()){for(const l of this.#r)this.#i.delete(l),y(l,E),this.schedule(l);for(const l of this.#i)y(l,I),this.schedule(l)}const t=this.#t;this.#t=[],this.apply();var n=de=[],r=[],i=Re=[];for(const l of t)try{this.#f(l,n,r)}catch(u){throw kt(l),u}if(w=null,i.length>0){var s=K.ensure();for(const l of i)s.schedule(l)}if(de=null,Re=null,this.#d()||this.#v()){this.#_(r),this.#_(n);for(const[l,u]of this.#o)Ot(l,u)}else{this.#s.size===0&&W.delete(this),this.#r.clear(),this.#i.clear();for(const l of this.#e)l(this);this.#e.clear(),xt(r),xt(n),this.#l?.resolve()}var o=w;if(this.#t.length>0){const l=o??=this;l.#t.push(...this.#t.filter(u=>!l.#t.includes(u)))}o!==null&&(W.add(o),o.#h()),W.has(this)||this.#p()}#f(t,n,r){t.f^=g;for(var i=t.first;i!==null;){var s=i.f,o=(s&(B|Y))!==0,l=o&&(s&g)!==0,u=l||(s&z)!==0||this.#o.has(i);if(!u&&i.fn!==null){o?i.f^=g:(s&ae)!==0?n.push(i):$e(i)&&((s&H)!==0&&this.#i.add(i),ve(i));var a=i.first;if(a!==null){i=a;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)$t(t[n],this.#r,this.#i)}capture(t,n,r=!1){n!==$&&!this.previous.has(t)&&this.previous.set(t,n),(t.f&pe)===0&&(this.current.set(t,[t.v,r]),j?.set(t,t.v))}activate(){w=this}deactivate(){w=null,j=null}flush(){try{ze=!0,w=this,this.#h()}finally{Et=0,Ye=null,de=null,Re=null,ze=!1,w=null,j=null,G.clear()}}discard(){for(const t of this.#n)t(this);this.#n.clear(),W.delete(this)}#p(){for(const a of W){var t=a.id<this.id,n=[];for(const[f,[v,c]]of this.current){if(a.current.has(f)){var r=a.current.get(f)[0];if(t&&v!==r)a.current.set(f,[v,c]);else continue}n.push(f)}var i=[...a.current.keys()].filter(f=>!this.current.has(f));if(i.length===0)t&&a.discard();else if(n.length>0){a.activate();var s=new Set,o=new Map;for(var l of n)St(l,i,s,o);if(a.#t.length>0){a.apply();for(var u of a.#t)a.#f(u,[],[]);a.#t=[]}a.deactivate()}}for(const a of W)a.#u.has(this)&&(a.#u.delete(this),a.#u.size===0&&!a.#d()&&(a.activate(),a.#h()))}increment(t,n){let r=this.#s.get(n)??0;if(this.#s.set(n,r+1),t){let i=this.#a.get(n)??0;this.#a.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.#a.get(n)??0;s===1?this.#a.delete(n):this.#a.set(n,s-1)}this.#c||r||(this.#c=!0,fe(()=>{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.#l??=Sn()).promise}static ensure(){if(w===null){const t=w=new K;ze||(W.add(w),we||fe(()=>{w===t&&t.flush()}))}return w}apply(){{j=null;return}}schedule(t){if(Ye=t,t.b?.is_pending&&(t.f&(ae|at|ut))!==0&&(t.f&X)===0){t.b.defer_effect(t);return}for(var n=t;n.parent!==null;){n=n.parent;var r=n.f;if(de!==null&&n===p&&(_===null||(_.f&b)===0))return;if((r&(Y|B))!==0){if((r&g)===0)return;n.f^=g}}this.#t.push(n)}}function be(e){var t=we;we=!0;try{for(var n;;){if(zn(),w===null)return n;w.flush()}}finally{we=t}}function Kn(){try{jn()}catch(e){ce(e,Ye)}}let q=null;function xt(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if((r.f&(V|z))===0&&$e(r)&&(q=new Set,ve(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&zt(r),q?.size>0)){G.clear();for(const i of q){if((i.f&(V|z))!==0)continue;const s=[i];let o=i.parent;for(;o!==null;)q.has(o)&&(q.delete(o),s.push(o)),o=o.parent;for(let l=s.length-1;l>=0;l--){const u=s[l];(u.f&(V|z))===0&&ve(u)}}q.clear()}}q=null}}function St(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&b)!==0?St(i,t,n,r):(s&(dt|H))!==0&&(s&E)===0&&Tt(i,t,r)&&(y(i,E),Ve(i))}}function Tt(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(le.call(t,i))return!0;if((i.f&b)!==0&&Tt(i,t,n))return n.set(i,!0),!0}return n.set(e,!1),!1}function Ve(e){w.schedule(e)}function Ot(e,t){if(!((e.f&B)!==0&&(e.f&g)!==0)){(e.f&E)!==0?t.d.push(e):(e.f&I)!==0&&t.m.push(e),y(e,g);for(var n=e.first;n!==null;)Ot(n,t),n=n.next}}function kt(e){y(e,g);for(var t=e.first;t!==null;)kt(t),t=t.next}function Gn(e){let t=0,n=Ne(0),r;return()=>{Ze()&&(L(n),Ht(()=>(t===0&&(r=tn(()=>e(()=>ye(n)))),t+=1,()=>{fe(()=>{t-=1,t===0&&(r?.(),r=void 0,ye(n))})})))}}var Jn=Oe|ue;function Zn(e,t,n,r){new Qn(e,t,n,r)}class Qn{parent;is_pending=!1;transform_error;#e;#n=C?x:null;#s;#a;#l;#t=null;#r=null;#i=null;#o=null;#c=0;#u=0;#d=!1;#v=new Set;#h=new Set;#f=null;#_=Gn(()=>(this.#f=Ne(this.#c),()=>{this.#f=null}));constructor(t,n,r,i){this.#e=t,this.#s=n,this.#a=s=>{var o=p;o.b=this,o.f|=Fe,r(s)},this.parent=p.b,this.transform_error=i??this.parent?.transform_error??(s=>s),this.#l=cr(()=>{if(C){const s=this.#n;vt();const o=s.data===it;if(s.data.startsWith(st)){const u=JSON.parse(s.data.slice(st.length));this.#g(u)}else o?this.#$():this.#p()}else this.#b()},Jn),C&&(this.#e=x)}#p(){try{this.#t=re(()=>this.#a(this.#e))}catch(t){this.error(t)}}#g(t){const n=this.#s.failed;n&&(this.#i=re(()=>{n(this.#e,()=>t,()=>()=>{})}))}#$(){const t=this.#s.pending;t&&(this.is_pending=!0,this.#r=re(()=>t(this.#e)),fe(()=>{var n=this.#o=document.createDocumentFragment(),r=Ft();n.append(r),this.#t=this.#w(()=>re(()=>this.#a(r))),this.#u===0&&(this.#e.before(n),this.#o=null,Ce(this.#r,()=>{this.#r=null}),this.#m(w))}))}#b(){try{if(this.is_pending=this.has_pending_snippet(),this.#u=0,this.#c=0,this.#t=re(()=>{this.#a(this.#e)}),this.#u>0){var t=this.#o=document.createDocumentFragment();vr(this.#t,t);const n=this.#s.pending;this.#r=re(()=>n(this.#e))}else this.#m(w)}catch(n){this.error(n)}}#m(t){this.is_pending=!1,t.transfer_effects(this.#v,this.#h)}defer_effect(t){$t(t,this.#v,this.#h)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#s.pending}#w(t){var n=p,r=_,i=A;Q(this.#l),F(this.#l),Ae(this.#l.ctx);try{return K.ensure(),t()}catch(s){return yt(s),null}finally{Q(n),F(r),Ae(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&&Ce(this.#r,()=>{this.#r=null}),this.#o&&(this.#e.before(this.#o),this.#o=null))}update_pending_count(t,n){this.#y(t,n),this.#c+=t,!(!this.#f||this.#d)&&(this.#d=!0,fe(()=>{this.#d=!1,this.#f&&Ct(this.#f,this.#c)}))}get_effect_pending(){return this.#_(),L(this.#f)}error(t){var n=this.#s.onerror;let r=this.#s.failed;if(!n&&!r)throw t;this.#t&&(D(this.#t),this.#t=null),this.#r&&(D(this.#r),this.#r=null),this.#i&&(D(this.#i),this.#i=null),C&&(me(this.#n),Bn(),me(qn()));var i=!1,s=!1;const o=()=>{if(i){Ln();return}i=!0,s&&Fn(),this.#i!==null&&Ce(this.#i,()=>{this.#i=null}),this.#w(()=>{this.#b()})},l=u=>{try{s=!0,n?.(u,o),s=!1}catch(a){ce(a,this.#l&&this.#l.parent)}r&&(this.#i=this.#w(()=>{try{return re(()=>{var a=p;a.b=this,a.f|=Fe,r(this.#e,()=>u,()=>o)})}catch(a){return ce(a,this.#l.parent),null}}))};fe(()=>{var u;try{u=this.transform_error(t)}catch(a){ce(a,this.#l&&this.#l.parent);return}u!==null&&typeof u=="object"&&typeof u.then=="function"?u.then(l,a=>ce(a,this.#l&&this.#l.parent)):l(u)})}}function Xn(e){var t=b|E,n=_!==null&&(_.f&b)!==0?_:null;return p!==null&&(p.f|=ue),{ctx:A,deps:null,effects:null,equals:_t,f:t,fn:e,reactions:null,rv:0,v:$,wv:0,parent:n??p,ac:null}}function er(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)D(t[n])}}function tr(e){for(var t=e.parent;t!==null;){if((t.f&b)===0)return(t.f&V)===0?t:null;t=t.parent}return null}function We(e){var t,n=p;Q(tr(e));try{e.f&=~ee,er(e),t=Qt(e)}finally{Q(n)}return t}function At(e){var t=e.v,n=We(e);if(!e.equals(n)&&(e.wv=Jt(),(!w?.is_fork||e.deps===null)&&(e.v=n,w?.capture(e,t,!0),e.deps===null))){y(e,g);return}Z||(j!==null?(Ze()||w?.is_fork)&&j.set(e,n):He(e))}function nr(e){if(e.effects!==null)for(const t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(qe),t.teardown=En,t.ac=null,Ee(t,0),Qe(t))}function Rt(e){if(e.effects!==null)for(const t of e.effects)t.teardown&&ve(t)}let Ke=new Set;const G=new Map;let Nt=!1;function Ne(e,t){var n={f:0,v:e,reactions:null,equals:_t,rv:0,wv:0};return n}function J(e,t){const n=Ne(e);return _r(n),n}function rr(e,t=!1,n=!0){const r=Ne(e);return t||(r.equals=Hn),r}function U(e,t,n=!1){_!==null&&(!M||(_.f&ct)!==0)&&wt()&&(_.f&(b|H|dt|ct))!==0&&(R===null||!le.call(R,e))&&In();let r=n?ge(t):t;return Ct(e,r,Re)}function Ct(e,t,n=null){if(!e.equals(t)){var r=e.v;Z?G.set(e,t):G.set(e,r),e.v=t;var i=K.ensure();if(i.capture(e,r),(e.f&b)!==0){const s=e;(e.f&E)!==0&&We(s),j===null&&He(s)}e.wv=Jt(),jt(e,E,n),p!==null&&(p.f&g)!==0&&(p.f&(B|Y))===0&&(N===null?pr([e]):N.push(e)),!i.is_fork&&Ke.size>0&&!Nt&&ir()}return t}function ir(){Nt=!1;for(const e of Ke)(e.f&g)!==0&&y(e,I),$e(e)&&ve(e);Ke.clear()}function ye(e){U(e,e.v+1)}function jt(e,t,n){var r=e.reactions;if(r!==null)for(var i=r.length,s=0;s<i;s++){var o=r[s],l=o.f,u=(l&E)===0;if(u&&y(o,t),(l&b)!==0){var a=o;j?.delete(a),(l&ee)===0&&(l&k&&(o.f|=ee),jt(a,I,n))}else if(u){var f=o;(l&H)!==0&&q!==null&&q.add(f),n!==null?n.push(f):Ve(f)}}}function ge(e){if(typeof e!="object"||e===null||Be in e)return e;const t=$n(e);if(t!==yn&&t!==gn)return e;var n=new Map,r=mn(e),i=J(0),s=se,o=l=>{if(se===s)return l();var u=_,a=se;F(null),Gt(s);var f=l();return F(u),Gt(a),f};return r&&n.set("length",J(e.length)),new Proxy(e,{defineProperty(l,u,a){(!("value"in a)||a.configurable===!1||a.enumerable===!1||a.writable===!1)&&Mn();var f=n.get(u);return f===void 0?o(()=>{var v=J(a.value);return n.set(u,v),v}):U(f,a.value,!0),!0},deleteProperty(l,u){var a=n.get(u);if(a===void 0){if(u in l){const f=o(()=>J($));n.set(u,f),ye(i)}}else U(a,$),ye(i);return!0},get(l,u,a){if(u===Be)return e;var f=n.get(u),v=u in l;if(f===void 0&&(!v||oe(l,u)?.writable)&&(f=o(()=>{var h=ge(v?l[u]:$),d=J(h);return d}),n.set(u,f)),f!==void 0){var c=L(f);return c===$?void 0:c}return Reflect.get(l,u,a)},getOwnPropertyDescriptor(l,u){var a=Reflect.getOwnPropertyDescriptor(l,u);if(a&&"value"in a){var f=n.get(u);f&&(a.value=L(f))}else if(a===void 0){var v=n.get(u),c=v?.v;if(v!==void 0&&c!==$)return{enumerable:!0,configurable:!0,value:c,writable:!0}}return a},has(l,u){if(u===Be)return!0;var a=n.get(u),f=a!==void 0&&a.v!==$||Reflect.has(l,u);if(a!==void 0||p!==null&&(!f||oe(l,u)?.writable)){a===void 0&&(a=o(()=>{var c=f?ge(l[u]):$,h=J(c);return h}),n.set(u,a));var v=L(a);if(v===$)return!1}return f},set(l,u,a,f){var v=n.get(u),c=u in l;if(r&&u==="length")for(var h=a;h<v.v;h+=1){var d=n.get(h+"");d!==void 0?U(d,$):h in l&&(d=o(()=>J($)),n.set(h+"",d))}if(v===void 0)(!c||oe(l,u)?.writable)&&(v=o(()=>J(void 0)),U(v,ge(a)),n.set(u,v));else{c=v.v!==$;var m=o(()=>ge(a));U(v,m)}var S=Reflect.getOwnPropertyDescriptor(l,u);if(S?.set&&S.set.call(f,a),!c){if(r&&typeof u=="string"){var P=n.get("length"),_e=Number(u);Number.isInteger(_e)&&_e>=P.v&&U(P,_e+1)}ye(i)}return!0},ownKeys(l){L(i);var u=Reflect.ownKeys(l).filter(v=>{var c=n.get(v);return c===void 0||c.v!==$});for(var[a,f]of n)f.v!==$&&!(a in l)&&u.push(a);return u},setPrototypeOf(){Pn()}})}var Dt,Mt,Pt,It;function Ge(){if(Dt===void 0){Dt=window,Mt=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;Pt=oe(t,"firstChild").get,It=oe(t,"nextSibling").get,ot(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),ot(n)&&(n.__t=void 0)}}function Ft(e=""){return document.createTextNode(e)}function Lt(e){return Pt.call(e)}function he(e){return It.call(e)}function sr(e){e.textContent=""}function Je(e,t,n){return document.createElementNS(_n,e,void 0)}function Bt(e){var t=_,n=p;F(null),Q(null);try{return e()}finally{F(t),Q(n)}}function lr(e){p===null&&(_===null&&Cn(),Nn()),Z&&Rn()}function or(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function ne(e,t){var n=p;n!==null&&(n.f&z)!==0&&(e|=z);var r={ctx:A,deps:null,nodes:null,f:e|E|k,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&ae)!==0)de!==null?de.push(r):K.ensure().schedule(r);else if(t!==null){try{ve(r)}catch(o){throw D(r),o}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&(i.f&ue)===0&&(i=i.first,(e&H)!==0&&(e&Oe)!==0&&i!==null&&(i.f|=Oe))}if(i!==null&&(i.parent=n,n!==null&&or(i,n),_!==null&&(_.f&b)!==0&&(e&Y)===0)){var s=_;(s.effects??=[]).push(i)}return r}function Ze(){return _!==null&&!M}function qt(e){lr();var t=p.f,n=!_&&(t&B)!==0&&(t&X)===0;if(n){var r=A;(r.e??=[]).push(e)}else return Ut(e)}function Ut(e){return ne(ae|On,e)}function ar(e){K.ensure();const t=ne(Y|ue,e);return()=>{D(t)}}function ur(e){K.ensure();const t=ne(Y|ue,e);return(n={})=>new Promise(r=>{n.outro?Ce(t,()=>{D(t),r(void 0)}):(D(t),r(void 0))})}function fr(e){return ne(ae,e)}function Ht(e,t=0){return ne(at|t,e)}function cr(e,t=0){var n=ne(H|t,e);return n}function re(e){return ne(B|ue,e)}function Yt(e){var t=e.teardown;if(t!==null){const n=Z,r=_;Wt(!0),F(null);try{t.call(null)}finally{Wt(n),F(r)}}}function Qe(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const i=n.ac;i!==null&&Bt(()=>{i.abort(qe)});var r=n.next;(n.f&Y)!==0?n.parent=null:D(n,t),n=r}}function dr(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&B)===0&&D(t),t=n}}function D(e,t=!0){var n=!1;(t||(e.f&Tn)!==0)&&e.nodes!==null&&e.nodes.end!==null&&(hr(e.nodes.start,e.nodes.end),n=!0),y(e,ft),Qe(e,t&&!n),Ee(e,0);var r=e.nodes&&e.nodes.t;if(r!==null)for(const s of r)s.stop();Yt(e),e.f^=ft,e.f|=V;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=e.ac=e.b=null}function hr(e,t){for(;e!==null;){var n=e===t?null:he(e);e.remove(),e=n}}function zt(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 Ce(e,t,n=!0){var r=[];Vt(e,r,!0);var i=()=>{n&&D(e),t&&t()},s=r.length;if(s>0){var o=()=>--s||i();for(var l of r)l.out(o)}else i()}function Vt(e,t,n){if((e.f&z)===0){e.f^=z;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,o=(i.f&Oe)!==0||(i.f&B)!==0&&(e.f&H)!==0;Vt(i,t,o?n:!1),i=s}}}function vr(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var i=n===r?null:he(n);t.append(n),n=i}}let je=!1,Z=!1;function Wt(e){Z=e}let _=null,M=!1;function F(e){_=e}let p=null;function Q(e){p=e}let R=null;function _r(e){_!==null&&(R===null?R=[e]:R.push(e))}let T=null,O=0,N=null;function pr(e){N=e}let Kt=1,ie=0,se=ie;function Gt(e){se=e}function Jt(){return++Kt}function $e(e){var t=e.f;if((t&E)!==0)return!0;if(t&b&&(e.f&=~ee),(t&I)!==0){for(var n=e.deps,r=n.length,i=0;i<r;i++){var s=n[i];if($e(s)&&At(s),s.wv>e.wv)return!0}(t&k)!==0&&j===null&&y(e,g)}return!1}function Zt(e,t,n=!0){var r=e.reactions;if(r!==null&&!(R!==null&&le.call(R,e)))for(var i=0;i<r.length;i++){var s=r[i];(s.f&b)!==0?Zt(s,t,!1):t===s&&(n?y(s,E):(s.f&g)!==0&&y(s,I),Ve(s))}}function Qt(e){var t=T,n=O,r=N,i=_,s=R,o=A,l=M,u=se,a=e.f;T=null,O=0,N=null,_=(a&(B|Y))===0?e:null,R=null,Ae(e.ctx),M=!1,se=++ie,e.ac!==null&&(Bt(()=>{e.ac.abort(qe)}),e.ac=null);try{e.f|=Le;var f=e.fn,v=f();e.f|=X;var c=e.deps,h=w?.is_fork;if(T!==null){var d;if(h||Ee(e,O),c!==null&&O>0)for(c.length=O+T.length,d=0;d<T.length;d++)c[O+d]=T[d];else e.deps=c=T;if(Ze()&&(e.f&k)!==0)for(d=O;d<c.length;d++)(c[d].reactions??=[]).push(e)}else!h&&c!==null&&O<c.length&&(Ee(e,O),c.length=O);if(wt()&&N!==null&&!M&&c!==null&&(e.f&(b|I|E))===0)for(d=0;d<N.length;d++)Zt(N[d],e);if(i!==null&&i!==e){if(ie++,i.deps!==null)for(let m=0;m<n;m+=1)i.deps[m].rv=ie;if(t!==null)for(const m of t)m.rv=ie;N!==null&&(r===null?r=N:r.push(...N))}return(e.f&pe)!==0&&(e.f^=pe),v}catch(m){return yt(m)}finally{e.f^=Le,T=t,O=n,N=r,_=i,R=s,Ae(o),M=l,se=u}}function mr(e,t){let n=t.reactions;if(n!==null){var r=wn.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&b)!==0&&(T===null||!le.call(T,t))){var s=t;(s.f&k)!==0&&(s.f^=k,s.f&=~ee),He(s),nr(s),Ee(s,0)}}function Ee(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)mr(e,n[r])}function ve(e){var t=e.f;if((t&V)===0){y(e,g);var n=p,r=je;p=e,je=!0;try{(t&(H|ut))!==0?dr(e):Qe(e),Yt(e);var i=Qt(e);e.teardown=typeof i=="function"?i:null,e.wv=Kt;var s;pn&&Yn&&(e.f&E)!==0&&e.deps}finally{je=r,p=n}}}function L(e){var t=e.f,n=(t&b)!==0;if(_!==null&&!M){var r=p!==null&&(p.f&V)!==0;if(!r&&(R===null||!le.call(R,e))){var i=_.deps;if((_.f&Le)!==0)e.rv<ie&&(e.rv=ie,T===null&&i!==null&&i[O]===e?O++:T===null?T=[e]:T.push(e));else{(_.deps??=[]).push(e);var s=e.reactions;s===null?e.reactions=[_]:le.call(s,_)||s.push(_)}}}if(Z&&G.has(e))return G.get(e);if(n){var o=e;if(Z){var l=o.v;return((o.f&g)===0&&o.reactions!==null||en(o))&&(l=We(o)),G.set(o,l),l}var u=(o.f&k)===0&&!M&&_!==null&&(je||(_.f&k)!==0),a=(o.f&X)===0;$e(o)&&(u&&(o.f|=k),At(o)),u&&!a&&(Rt(o),Xt(o))}if(j?.has(e))return j.get(e);if((e.f&pe)!==0)throw e.v;return e.v}function Xt(e){if(e.f|=k,e.deps!==null)for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&b)!==0&&(t.f&k)===0&&(Rt(t),Xt(t))}function en(e){if(e.v===$)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(G.has(t)||(t.f&b)!==0&&en(t))return!0;return!1}function tn(e){var t=M;try{return M=!0,e()}finally{M=t}}const De=Symbol("events"),wr=new Set,nn=new Set;let rn=null;function sn(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],s=i[0]||e.target;rn=e;var o=0,l=rn===e&&e[De];if(l){var u=i.indexOf(l);if(u!==-1&&(t===document||t===window)){e[De]=t;return}var a=i.indexOf(t);if(a===-1)return;u<=a&&(o=u)}if(s=i[o]||e.target,s!==t){Te(e,"currentTarget",{configurable:!0,get(){return s||n}});var f=_,v=p;F(null),Q(null);try{for(var c,h=[];s!==null;){var d=s.assignedSlot||s.parentNode||s.host||null;try{var m=s[De]?.[r];m!=null&&(!s.disabled||e.target===s)&&m.call(s,e)}catch(S){c?h.push(S):c=S}if(e.cancelBubble||d===t||d===null)break;s=d}if(c){for(let S of h)queueMicrotask(()=>{throw S});throw c}}finally{e[De]=t,delete e.currentTarget,F(f),Q(v)}}}const br=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:e=>e});function yr(e){return br?.createHTML(e)??e}function gr(e){var t=Je("template");return t.innerHTML=yr(e.replaceAll("<!>","<!---->")),t.content}function Xe(e,t){var n=p;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function $r(e,t){var n=(t&vn)!==0,r,i=!e.startsWith("<!>");return()=>{if(C)return Xe(x,null),x;r===void 0&&(r=gr(i?e:"<!>"+e),r=Lt(r));var s=n||Mt?document.importNode(r,!0):r.cloneNode(!0);return Xe(s,s),s}}function ln(e,t){if(C){var n=p;((n.f&X)===0||n.nodes.end===null)&&(n.nodes.end=x),vt();return}e!==null&&e.before(t)}const Er=["touchstart","touchmove"];function xr(e){return Er.includes(e)}function on(e,t){return an(e,t)}function Sr(e,t){Ge(),t.intro=t.intro??!1;const n=t.target,r=C,i=x;try{for(var s=Lt(n);s&&(s.nodeType!==Ue||s.data!==rt);)s=he(s);if(!s)throw xe;ke(!0),me(s);const o=an(e,{...t,anchor:s});return ke(!1),o}catch(o){if(o instanceof Error&&o.message.split(`
|
|
2
|
-
`).some(
|
|
1
|
+
(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`}),typeof window<`u`&&((window.__svelte??={}).v??=new Set).add(`5`);var t={},n=Symbol(),r=Array.isArray,i=Array.prototype.indexOf,a=Array.prototype.includes,o=Array.from,s=Object.keys,c=Object.defineProperty,l=Object.getOwnPropertyDescriptor,u=Object.prototype,d=Array.prototype,f=Object.getPrototypeOf,p=Object.isExtensible,m=()=>{};function h(e){for(var t=0;t<e.length;t++)e[t]()}function g(){var e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}var _=1024,v=2048,y=4096,ee=8192,te=16384,ne=32768,re=1<<25,ie=65536,ae=1<<19,oe=1<<20,se=65536,ce=1<<21,le=1<<23,ue=Symbol(`$state`),de=Symbol(`legacy props`),fe=new class extends Error{name=`StaleReactionError`;message="The reaction that called `getAbortSignal()` was re-run or destroyed"};globalThis.document?.contentType;function pe(e){throw Error(`https://svelte.dev/e/lifecycle_outside_component`)}function me(e){throw Error(`https://svelte.dev/e/effect_in_teardown`)}function he(){throw Error(`https://svelte.dev/e/effect_in_unowned_derived`)}function ge(e){throw Error(`https://svelte.dev/e/effect_orphan`)}function _e(){throw Error(`https://svelte.dev/e/effect_update_depth_exceeded`)}function ve(){throw Error(`https://svelte.dev/e/hydration_failed`)}function ye(e){throw Error(`https://svelte.dev/e/props_invalid_value`)}function be(){throw Error(`https://svelte.dev/e/state_descriptors_fixed`)}function xe(){throw Error(`https://svelte.dev/e/state_prototype_fixed`)}function Se(){throw Error(`https://svelte.dev/e/state_unsafe_mutation`)}function Ce(){throw Error(`https://svelte.dev/e/svelte_boundary_reset_onerror`)}function we(e){console.warn(`https://svelte.dev/e/hydration_mismatch`)}function Te(){console.warn(`https://svelte.dev/e/svelte_boundary_reset_noop`)}var b=!1;function Ee(e){b=e}var x;function De(e){if(e===null)throw we(),t;return x=e}function Oe(){return De(I(x))}function ke(e=1){if(b){for(var t=e,n=x;t--;)n=I(n);x=n}}function Ae(e=!0){for(var t=0,n=x;;){if(n.nodeType===8){var r=n.data;if(r===`]`){if(t===0)return n;--t}else (r===`[`||r===`[!`||r[0]===`[`&&!isNaN(Number(r.slice(1))))&&(t+=1)}var i=I(n);e&&n.remove(),n=i}}function je(e){return e===this.v}function Me(e,t){return e==e?e!==t||typeof e==`object`&&!!e||typeof e==`function`:t==t}function Ne(e){return!Me(e,this.v)}var Pe=!1,Fe=!1,S=null;function Ie(e){S=e}function Le(e,t=!1,n){S={p:S,i:!1,c:null,e:null,s:e,x:null,r:W,l:Fe&&!t?{s:null,u:null,$:[]}:null}}function Re(e){var t=S,n=t.e;if(n!==null){t.e=null;for(var r of n)Gt(r)}return e!==void 0&&(t.x=e),t.i=!0,S=t.p,e??{}}function ze(){return!Fe||S!==null&&S.l===null}var C=[];function Be(){var e=C;C=[],h(e)}function w(e){if(C.length===0&&!Ze){var t=C;queueMicrotask(()=>{t===C&&Be()})}C.push(e)}function Ve(){for(;C.length>0;)Be()}function He(e){var t=W;if(t===null)return V.f|=le,e;if(!(t.f&32768)&&!(t.f&4))throw e;T(e,t)}function T(e,t){for(;t!==null;){if(t.f&128){if(!(t.f&32768))throw e;try{t.b.error(e);return}catch(t){e=t}}t=t.parent}throw e}var Ue=~(v|y|_);function E(e,t){e.f=e.f&Ue|t}function We(e){e.f&512||e.deps===null?E(e,_):E(e,y)}function Ge(e){if(e!==null)for(let t of e)!(t.f&2)||!(t.f&65536)||(t.f^=se,Ge(t.deps))}function Ke(e,t,n){e.f&2048?t.add(e):e.f&4096&&n.add(e),Ge(e.deps),E(e,_)}var qe=!1,Je=!1;function Ye(e){var t=Je;try{return Je=!1,[e(),Je]}finally{Je=t}}var D=new Set,O=null,k=null,Xe=null,Ze=!1,Qe=!1,A=null,$e=null,et=0,tt=1,nt=class e{id=tt++;current=new Map;previous=new Map;#e=new Set;#t=new Set;#n=new Map;#r=new Map;#i=null;#a=[];#o=new Set;#s=new Set;#c=new Map;is_fork=!1;#l=!1;#u=new Set;#d(){return this.is_fork||this.#r.size>0}#f(){for(let n of this.#u)for(let r of n.#r.keys()){for(var e=!1,t=r;t.parent!==null;){if(this.#c.has(t)){e=!0;break}t=t.parent}if(!e)return!0}return!1}skip_effect(e){this.#c.has(e)||this.#c.set(e,{d:[],m:[]})}unskip_effect(e){var t=this.#c.get(e);if(t){this.#c.delete(e);for(var n of t.d)E(n,v),this.schedule(n);for(n of t.m)E(n,y),this.schedule(n)}}#p(){if(et++>1e3&&(D.delete(this),it()),!this.#d()){for(let e of this.#o)this.#s.delete(e),E(e,v),this.schedule(e);for(let e of this.#s)E(e,y),this.schedule(e)}let t=this.#a;this.#a=[],this.apply();var n=A=[],r=[],i=$e=[];for(let e of t)try{this.#m(e,n,r)}catch(t){throw ut(e),t}if(O=null,i.length>0){var a=e.ensure();for(let e of i)a.schedule(e)}if(A=null,$e=null,this.#d()||this.#f()){this.#h(r),this.#h(n);for(let[e,t]of this.#c)lt(e,t)}else{this.#n.size===0&&D.delete(this),this.#o.clear(),this.#s.clear();for(let e of this.#e)e(this);this.#e.clear(),at(r),at(n),this.#i?.resolve()}var o=O;if(this.#a.length>0){let e=o??=this;e.#a.push(...this.#a.filter(t=>!e.#a.includes(t)))}o!==null&&(D.add(o),o.#p()),D.has(this)||this.#g()}#m(e,t,n){e.f^=_;for(var r=e.first;r!==null;){var i=r.f,a=(i&96)!=0;if(!(a&&i&1024||i&8192||this.#c.has(r))&&r.fn!==null){a?r.f^=_:i&4?t.push(r):Pe&&i&16777224?n.push(r):mn(r)&&(i&16&&this.#s.add(r),Q(r));var o=r.first;if(o!==null){r=o;continue}}for(;r!==null;){var s=r.next;if(s!==null){r=s;break}r=r.parent}}}#h(e){for(var t=0;t<e.length;t+=1)Ke(e[t],this.#o,this.#s)}capture(e,t,r=!1){t!==n&&!this.previous.has(e)&&this.previous.set(e,t),e.f&8388608||(this.current.set(e,[e.v,r]),k?.set(e,e.v))}activate(){O=this}deactivate(){O=null,k=null}flush(){try{Qe=!0,O=this,this.#p()}finally{et=0,Xe=null,A=null,$e=null,Qe=!1,O=null,k=null,M.clear()}}discard(){for(let e of this.#t)e(this);this.#t.clear(),D.delete(this)}#g(){for(let c of D){var e=c.id<this.id,t=[];for(let[r,[i,a]]of this.current){if(c.current.has(r)){var n=c.current.get(r)[0];if(e&&i!==n)c.current.set(r,[i,a]);else continue}t.push(r)}var r=[...c.current.keys()].filter(e=>!this.current.has(e));if(r.length===0)e&&c.discard();else if(t.length>0){c.activate();var i=new Set,a=new Map;for(var o of t)ot(o,r,i,a);if(c.#a.length>0){c.apply();for(var s of c.#a)c.#m(s,[],[]);c.#a=[]}c.deactivate()}}for(let e of D)e.#u.has(this)&&(e.#u.delete(this),e.#u.size===0&&!e.#d()&&(e.activate(),e.#p()))}increment(e,t){let n=this.#n.get(t)??0;if(this.#n.set(t,n+1),e){let e=this.#r.get(t)??0;this.#r.set(t,e+1)}}decrement(e,t,n){let r=this.#n.get(t)??0;if(r===1?this.#n.delete(t):this.#n.set(t,r-1),e){let e=this.#r.get(t)??0;e===1?this.#r.delete(t):this.#r.set(t,e-1)}this.#l||n||(this.#l=!0,w(()=>{this.#l=!1,this.flush()}))}transfer_effects(e,t){for(let t of e)this.#o.add(t);for(let e of t)this.#s.add(e);e.clear(),t.clear()}oncommit(e){this.#e.add(e)}ondiscard(e){this.#t.add(e)}settled(){return(this.#i??=g()).promise}static ensure(){if(O===null){let t=O=new e;Qe||(D.add(O),Ze||w(()=>{O===t&&t.flush()}))}return O}apply(){if(!Pe||!this.is_fork&&D.size===1){k=null;return}k=new Map;for(let[e,[t]]of this.current)k.set(e,t);for(let n of D)if(!(n===this||n.is_fork)){var e=!1,t=!1;if(n.id<this.id)for(let[r,[,i]]of n.current)i||(e||=this.current.has(r),t||=!this.current.has(r));if(e&&t)this.#u.add(n);else for(let[e,t]of n.previous)k.has(e)||k.set(e,t)}}schedule(e){if(Xe=e,e.b?.is_pending&&e.f&16777228&&!(e.f&32768)){e.b.defer_effect(e);return}for(var t=e;t.parent!==null;){t=t.parent;var n=t.f;if(A!==null&&t===W&&(Pe||(V===null||!(V.f&2))&&!qe))return;if(n&96){if(!(n&1024))return;t.f^=_}}this.#a.push(t)}};function rt(e){var t=Ze;Ze=!0;try{var n;for(e&&(O!==null&&!O.is_fork&&O.flush(),n=e());;){if(Ve(),O===null)return n;O.flush()}}finally{Ze=t}}function it(){try{_e()}catch(e){T(e,Xe)}}var j=null;function at(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if(!(r.f&24576)&&mn(r)&&(j=new Set,Q(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&tn(r),j?.size>0)){M.clear();for(let e of j){if(e.f&24576)continue;let t=[e],n=e.parent;for(;n!==null;)j.has(n)&&(j.delete(n),t.push(n)),n=n.parent;for(let e=t.length-1;e>=0;e--){let n=t[e];n.f&24576||Q(n)}}j.clear()}}j=null}}function ot(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(let i of e.reactions){let e=i.f;e&2?ot(i,t,n,r):e&4194320&&!(e&2048)&&st(i,t,r)&&(E(i,v),ct(i))}}function st(e,t,n){let r=n.get(e);if(r!==void 0)return r;if(e.deps!==null)for(let r of e.deps){if(a.call(t,r))return!0;if(r.f&2&&st(r,t,n))return n.set(r,!0),!0}return n.set(e,!1),!1}function ct(e){O.schedule(e)}function lt(e,t){if(!(e.f&32&&e.f&1024)){e.f&2048?t.d.push(e):e.f&4096&&t.m.push(e),E(e,_);for(var n=e.first;n!==null;)lt(n,t),n=n.next}}function ut(e){E(e,_);for(var t=e.first;t!==null;)ut(t),t=t.next}function dt(e){let t=0,n=Tt(0),r;return()=>{Ut()&&($(n),Yt(()=>(t===0&&(r=xn(()=>e(()=>kt(n)))),t+=1,()=>{w(()=>{--t,t===0&&(r?.(),r=void 0,kt(n))})})))}}var ft=ie|ae;function pt(e,t,n,r){new mt(e,t,n,r)}var mt=class{parent;is_pending=!1;transform_error;#e;#t=b?x:null;#n;#r;#i;#a=null;#o=null;#s=null;#c=null;#l=0;#u=0;#d=!1;#f=new Set;#p=new Set;#m=null;#h=dt(()=>(this.#m=Tt(this.#l),()=>{this.#m=null}));constructor(e,t,n,r){this.#e=e,this.#n=t,this.#r=e=>{var t=W;t.b=this,t.f|=128,n(e)},this.parent=W.b,this.transform_error=r??this.parent?.transform_error??(e=>e),this.#i=Xt(()=>{if(b){let e=this.#t;Oe();let t=e.data===`[!`;if(e.data.startsWith(`[?`)){let t=JSON.parse(e.data.slice(2));this.#_(t)}else t?this.#v():this.#g()}else this.#y()},ft),b&&(this.#e=x)}#g(){try{this.#a=R(()=>this.#r(this.#e))}catch(e){this.error(e)}}#_(e){let t=this.#n.failed;t&&(this.#s=R(()=>{t(this.#e,()=>e,()=>()=>{})}))}#v(){let e=this.#n.pending;e&&(this.is_pending=!0,this.#o=R(()=>e(this.#e)),w(()=>{var e=this.#c=document.createDocumentFragment(),t=It();e.append(t),this.#a=this.#x(()=>R(()=>this.#r(t))),this.#u===0&&(this.#e.before(e),this.#c=null,nn(this.#o,()=>{this.#o=null}),this.#b(O))}))}#y(){try{if(this.is_pending=this.has_pending_snippet(),this.#u=0,this.#l=0,this.#a=R(()=>{this.#r(this.#e)}),this.#u>0){var e=this.#c=document.createDocumentFragment();an(this.#a,e);let t=this.#n.pending;this.#o=R(()=>t(this.#e))}else this.#b(O)}catch(e){this.error(e)}}#b(e){this.is_pending=!1,e.transfer_effects(this.#f,this.#p)}defer_effect(e){Ke(e,this.#f,this.#p)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#n.pending}#x(e){var t=W,n=V,r=S;G(this.#i),U(this.#i),Ie(this.#i.ctx);try{return nt.ensure(),e()}catch(e){return He(e),null}finally{G(t),U(n),Ie(r)}}#S(e,t){if(!this.has_pending_snippet()){this.parent&&this.parent.#S(e,t);return}this.#u+=e,this.#u===0&&(this.#b(t),this.#o&&nn(this.#o,()=>{this.#o=null}),this.#c&&=(this.#e.before(this.#c),null))}update_pending_count(e,t){this.#S(e,t),this.#l+=e,!(!this.#m||this.#d)&&(this.#d=!0,w(()=>{this.#d=!1,this.#m&&Dt(this.#m,this.#l)}))}get_effect_pending(){return this.#h(),$(this.#m)}error(e){var t=this.#n.onerror;let n=this.#n.failed;if(!t&&!n)throw e;this.#a&&=(z(this.#a),null),this.#o&&=(z(this.#o),null),this.#s&&=(z(this.#s),null),b&&(De(this.#t),ke(),De(Ae()));var r=!1,i=!1;let a=()=>{if(r){Te();return}r=!0,i&&Ce(),this.#s!==null&&nn(this.#s,()=>{this.#s=null}),this.#x(()=>{this.#y()})},o=e=>{try{i=!0,t?.(e,a),i=!1}catch(e){T(e,this.#i&&this.#i.parent)}n&&(this.#s=this.#x(()=>{try{return R(()=>{var t=W;t.b=this,t.f|=128,n(this.#e,()=>e,()=>a)})}catch(e){return T(e,this.#i.parent),null}}))};w(()=>{var t;try{t=this.transform_error(e)}catch(e){T(e,this.#i&&this.#i.parent);return}typeof t==`object`&&t&&typeof t.then==`function`?t.then(o,e=>T(e,this.#i&&this.#i.parent)):o(t)})}};function ht(e){var t=2|v,r=V!==null&&V.f&2?V:null;return W!==null&&(W.f|=ae),{ctx:S,deps:null,effects:null,equals:je,f:t,fn:e,reactions:null,rv:0,v:n,wv:0,parent:r??W,ac:null}}function gt(e){let t=ht(e);return t.equals=Ne,t}function _t(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)z(t[n])}}function vt(e){for(var t=e.parent;t!==null;){if(!(t.f&2))return t.f&16384?null:t;t=t.parent}return null}function yt(e){var t,n=W;G(vt(e));try{e.f&=~se,_t(e),t=gn(e)}finally{G(n)}return t}function bt(e){var t=e.v,n=yt(e);if(!e.equals(n)&&(e.wv=pn(),(!O?.is_fork||e.deps===null)&&(e.v=n,O?.capture(e,t,!0),e.deps===null))){E(e,_);return}B||(k===null?We(e):(Ut()||O?.is_fork)&&k.set(e,n))}function xt(e){if(e.effects!==null)for(let t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(fe),t.teardown=m,t.ac=null,vn(t,0),Qt(t))}function St(e){if(e.effects!==null)for(let t of e.effects)t.teardown&&Q(t)}var Ct=new Set,M=new Map,wt=!1;function Tt(e,t){return{f:0,v:e,reactions:null,equals:je,rv:0,wv:0}}function N(e,t){let n=Tt(e,t);return ln(n),n}function Et(e,t=!1,n=!0){let r=Tt(e);return t||(r.equals=Ne),Fe&&n&&S!==null&&S.l!==null&&(S.l.s??=[]).push(r),r}function P(e,t,n=!1){return V!==null&&(!H||V.f&131072)&&ze()&&V.f&4325394&&(K===null||!a.call(K,e))&&Se(),Dt(e,n?F(t):t,$e)}function Dt(e,t,n=null){if(!e.equals(t)){var r=e.v;B?M.set(e,t):M.set(e,r),e.v=t;var i=nt.ensure();if(i.capture(e,r),e.f&2){let t=e;e.f&2048&&yt(t),k===null&&We(t)}e.wv=pn(),At(e,v,n),ze()&&W!==null&&W.f&1024&&!(W.f&96)&&(Y===null?un([e]):Y.push(e)),!i.is_fork&&Ct.size>0&&!wt&&Ot()}return t}function Ot(){wt=!1;for(let e of Ct)e.f&1024&&E(e,y),mn(e)&&Q(e);Ct.clear()}function kt(e){P(e,e.v+1)}function At(e,t,n){var r=e.reactions;if(r!==null)for(var i=ze(),a=r.length,o=0;o<a;o++){var s=r[o],c=s.f;if(!(!i&&s===W)){var l=(c&v)===0;if(l&&E(s,t),c&2){var u=s;k?.delete(u),c&65536||(c&512&&(s.f|=se),At(u,y,n))}else if(l){var d=s;c&16&&j!==null&&j.add(d),n===null?ct(d):n.push(d)}}}}function F(e){if(typeof e!=`object`||!e||ue in e)return e;let t=f(e);if(t!==u&&t!==d)return e;var i=new Map,a=r(e),o=N(0),s=null,c=Z,p=e=>{if(Z===c)return e();var t=V,n=Z;U(null),fn(c);var r=e();return U(t),fn(n),r};return a&&i.set(`length`,N(e.length,s)),new Proxy(e,{defineProperty(e,t,n){(!(`value`in n)||n.configurable===!1||n.enumerable===!1||n.writable===!1)&&be();var r=i.get(t);return r===void 0?p(()=>{var e=N(n.value,s);return i.set(t,e),e}):P(r,n.value,!0),!0},deleteProperty(e,t){var r=i.get(t);if(r===void 0){if(t in e){let e=p(()=>N(n,s));i.set(t,e),kt(o)}}else P(r,n),kt(o);return!0},get(t,r,a){if(r===ue)return e;var o=i.get(r),c=r in t;if(o===void 0&&(!c||l(t,r)?.writable)&&(o=p(()=>N(F(c?t[r]:n),s)),i.set(r,o)),o!==void 0){var u=$(o);return u===n?void 0:u}return Reflect.get(t,r,a)},getOwnPropertyDescriptor(e,t){var r=Reflect.getOwnPropertyDescriptor(e,t);if(r&&`value`in r){var a=i.get(t);a&&(r.value=$(a))}else if(r===void 0){var o=i.get(t),s=o?.v;if(o!==void 0&&s!==n)return{enumerable:!0,configurable:!0,value:s,writable:!0}}return r},has(e,t){if(t===ue)return!0;var r=i.get(t),a=r!==void 0&&r.v!==n||Reflect.has(e,t);return(r!==void 0||W!==null&&(!a||l(e,t)?.writable))&&(r===void 0&&(r=p(()=>N(a?F(e[t]):n,s)),i.set(t,r)),$(r)===n)?!1:a},set(e,t,r,c){var u=i.get(t),d=t in e;if(a&&t===`length`)for(var f=r;f<u.v;f+=1){var m=i.get(f+``);m===void 0?f in e&&(m=p(()=>N(n,s)),i.set(f+``,m)):P(m,n)}if(u===void 0)(!d||l(e,t)?.writable)&&(u=p(()=>N(void 0,s)),P(u,F(r)),i.set(t,u));else{d=u.v!==n;var h=p(()=>F(r));P(u,h)}var g=Reflect.getOwnPropertyDescriptor(e,t);if(g?.set&&g.set.call(c,r),!d){if(a&&typeof t==`string`){var _=i.get(`length`),v=Number(t);Number.isInteger(v)&&v>=_.v&&P(_,v+1)}kt(o)}return!0},ownKeys(e){$(o);var t=Reflect.ownKeys(e).filter(e=>{var t=i.get(e);return t===void 0||t.v!==n});for(var[r,a]of i)a.v!==n&&!(r in e)&&t.push(r);return t},setPrototypeOf(){xe()}})}var jt,Mt,Nt,Pt;function Ft(){if(jt===void 0){jt=window,Mt=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;Nt=l(t,`firstChild`).get,Pt=l(t,`nextSibling`).get,p(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),p(n)&&(n.__t=void 0)}}function It(e=``){return document.createTextNode(e)}function Lt(e){return Nt.call(e)}function I(e){return Pt.call(e)}function Rt(e){e.textContent=``}function zt(e,t,n){let r=n?{is:n}:void 0;return document.createElementNS(t??`http://www.w3.org/1999/xhtml`,e,r)}function Bt(e){var t=V,n=W;U(null),G(null);try{return e()}finally{U(t),G(n)}}function Vt(e){W===null&&(V===null&&ge(e),he()),B&&me(e)}function Ht(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function L(e,t){var n=W;n!==null&&n.f&8192&&(e|=ee);var r={ctx:S,deps:null,nodes:null,f:e|v|512,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&4)A===null?nt.ensure().schedule(r):A.push(r);else if(t!==null){try{Q(r)}catch(e){throw z(r),e}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&!(i.f&524288)&&(i=i.first,e&16&&e&65536&&i!==null&&(i.f|=ie))}if(i!==null&&(i.parent=n,n!==null&&Ht(i,n),V!==null&&V.f&2&&!(e&64))){var a=V;(a.effects??=[]).push(i)}return r}function Ut(){return V!==null&&!H}function Wt(e){Vt(`$effect`);var t=W.f;if(!V&&t&32&&!(t&32768)){var n=S;(n.e??=[]).push(e)}else return Gt(e)}function Gt(e){return L(4|oe,e)}function Kt(e){nt.ensure();let t=L(64|ae,e);return()=>{z(t)}}function qt(e){nt.ensure();let t=L(64|ae,e);return(e={})=>new Promise(n=>{e.outro?nn(t,()=>{z(t),n(void 0)}):(z(t),n(void 0))})}function Jt(e){return L(4,e)}function Yt(e,t=0){return L(8|t,e)}function Xt(e,t=0){return L(16|t,e)}function R(e){return L(32|ae,e)}function Zt(e){var t=e.teardown;if(t!==null){let e=B,n=V;cn(!0),U(null);try{t.call(null)}finally{cn(e),U(n)}}}function Qt(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){let e=n.ac;e!==null&&Bt(()=>{e.abort(fe)});var r=n.next;n.f&64?n.parent=null:z(n,t),n=r}}function $t(e){for(var t=e.first;t!==null;){var n=t.next;t.f&32||z(t),t=n}}function z(e,t=!0){var n=!1;(t||e.f&262144)&&e.nodes!==null&&e.nodes.end!==null&&(en(e.nodes.start,e.nodes.end),n=!0),E(e,re),Qt(e,t&&!n),vn(e,0);var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)e.stop();Zt(e),e.f^=re,e.f|=te;var i=e.parent;i!==null&&i.first!==null&&tn(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function en(e,t){for(;e!==null;){var n=e===t?null:I(e);e.remove(),e=n}}function tn(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 nn(e,t,n=!0){var r=[];rn(e,r,!0);var i=()=>{n&&z(e),t&&t()},a=r.length;if(a>0){var o=()=>--a||i();for(var s of r)s.out(o)}else i()}function rn(e,t,n){if(!(e.f&8192)){e.f^=ee;var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)(e.is_global||n)&&t.push(e);for(var i=e.first;i!==null;){var a=i.next,o=(i.f&65536)!=0||(i.f&32)!=0&&(e.f&16)!=0;rn(i,t,o?n:!1),i=a}}}function an(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var i=n===r?null:I(n);t.append(n),n=i}}var on=null,sn=!1,B=!1;function cn(e){B=e}var V=null,H=!1;function U(e){V=e}var W=null;function G(e){W=e}var K=null;function ln(e){V!==null&&(!Pe||V.f&2)&&(K===null?K=[e]:K.push(e))}var q=null,J=0,Y=null;function un(e){Y=e}var dn=1,X=0,Z=X;function fn(e){Z=e}function pn(){return++dn}function mn(e){var t=e.f;if(t&2048)return!0;if(t&2&&(e.f&=~se),t&4096){for(var n=e.deps,r=n.length,i=0;i<r;i++){var a=n[i];if(mn(a)&&bt(a),a.wv>e.wv)return!0}t&512&&k===null&&E(e,_)}return!1}function hn(e,t,n=!0){var r=e.reactions;if(r!==null&&!(!Pe&&K!==null&&a.call(K,e)))for(var i=0;i<r.length;i++){var o=r[i];o.f&2?hn(o,t,!1):t===o&&(n?E(o,v):o.f&1024&&E(o,y),ct(o))}}function gn(e){var t=q,n=J,r=Y,i=V,a=K,o=S,s=H,c=Z,l=e.f;q=null,J=0,Y=null,V=l&96?null:e,K=null,Ie(e.ctx),H=!1,Z=++X,e.ac!==null&&(Bt(()=>{e.ac.abort(fe)}),e.ac=null);try{e.f|=ce;var u=e.fn,d=u();e.f|=ne;var f=e.deps,p=O?.is_fork;if(q!==null){var m;if(p||vn(e,J),f!==null&&J>0)for(f.length=J+q.length,m=0;m<q.length;m++)f[J+m]=q[m];else e.deps=f=q;if(Ut()&&e.f&512)for(m=J;m<f.length;m++)(f[m].reactions??=[]).push(e)}else !p&&f!==null&&J<f.length&&(vn(e,J),f.length=J);if(ze()&&Y!==null&&!H&&f!==null&&!(e.f&6146))for(m=0;m<Y.length;m++)hn(Y[m],e);if(i!==null&&i!==e){if(X++,i.deps!==null)for(let e=0;e<n;e+=1)i.deps[e].rv=X;if(t!==null)for(let e of t)e.rv=X;Y!==null&&(r===null?r=Y:r.push(...Y))}return e.f&8388608&&(e.f^=le),d}catch(e){return He(e)}finally{e.f^=ce,q=t,J=n,Y=r,V=i,K=a,Ie(o),H=s,Z=c}}function _n(e,t){let n=t.reactions;if(n!==null){var r=i.call(n,e);if(r!==-1){var o=n.length-1;o===0?n=t.reactions=null:(n[r]=n[o],n.pop())}}if(n===null&&t.f&2&&(q===null||!a.call(q,t))){var s=t;s.f&512&&(s.f^=512,s.f&=~se),We(s),xt(s),vn(s,0)}}function vn(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)_n(e,n[r])}function Q(e){var t=e.f;if(!(t&16384)){E(e,_);var n=W,r=sn;W=e,sn=!0;try{t&16777232?$t(e):Qt(e),Zt(e);var i=gn(e);e.teardown=typeof i==`function`?i:null,e.wv=dn}finally{sn=r,W=n}}}function $(e){var t=(e.f&2)!=0;if(on?.add(e),V!==null&&!H&&!(W!==null&&W.f&16384)&&(K===null||!a.call(K,e))){var n=V.deps;if(V.f&2097152)e.rv<X&&(e.rv=X,q===null&&n!==null&&n[J]===e?J++:q===null?q=[e]:q.push(e));else{(V.deps??=[]).push(e);var r=e.reactions;r===null?e.reactions=[V]:a.call(r,V)||r.push(V)}}if(B&&M.has(e))return M.get(e);if(t){var i=e;if(B){var o=i.v;return(!(i.f&1024)&&i.reactions!==null||bn(i))&&(o=yt(i)),M.set(i,o),o}var s=(i.f&512)==0&&!H&&V!==null&&(sn||(V.f&512)!=0),c=(i.f&ne)===0;mn(i)&&(s&&(i.f|=512),bt(i)),s&&!c&&(St(i),yn(i))}if(k?.has(e))return k.get(e);if(e.f&8388608)throw e.v;return e.v}function yn(e){if(e.f|=512,e.deps!==null)for(let t of e.deps)(t.reactions??=[]).push(e),t.f&2&&!(t.f&512)&&(St(t),yn(t))}function bn(e){if(e.v===n)return!0;if(e.deps===null)return!1;for(let t of e.deps)if(M.has(t)||t.f&2&&bn(t))return!0;return!1}function xn(e){var t=H;try{return H=!0,e()}finally{H=t}}var Sn=Symbol(`events`),Cn=new Set,wn=new Set,Tn=null;function En(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],a=i[0]||e.target;Tn=e;var o=0,s=Tn===e&&e[Sn];if(s){var l=i.indexOf(s);if(l!==-1&&(t===document||t===window)){e[Sn]=t;return}var u=i.indexOf(t);if(u===-1)return;l<=u&&(o=l)}if(a=i[o]||e.target,a!==t){c(e,`currentTarget`,{configurable:!0,get(){return a||n}});var d=V,f=W;U(null),G(null);try{for(var p,m=[];a!==null;){var h=a.assignedSlot||a.parentNode||a.host||null;try{var g=a[Sn]?.[r];g!=null&&(!a.disabled||e.target===a)&&g.call(a,e)}catch(e){p?m.push(e):p=e}if(e.cancelBubble||h===t||h===null)break;a=h}if(p){for(let e of m)queueMicrotask(()=>{throw e});throw p}}finally{e[Sn]=t,delete e.currentTarget,U(d),G(f)}}}var Dn=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy(`svelte-trusted-html`,{createHTML:e=>e});function On(e){return Dn?.createHTML(e)??e}function kn(e){var t=zt(`template`);return t.innerHTML=On(e.replaceAll(`<!>`,`<!---->`)),t.content}function An(e,t){var n=W;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function jn(e,t){var n=(t&1)!=0,r=(t&2)!=0,i,a=!e.startsWith(`<!>`);return()=>{if(b)return An(x,null),x;i===void 0&&(i=kn(a?e:`<!>`+e),n||(i=Lt(i)));var t=r||Mt?document.importNode(i,!0):i.cloneNode(!0);if(n){var o=Lt(t),s=t.lastChild;An(o,s)}else An(t,t);return t}}function Mn(e,t){if(b){var n=W;(!(n.f&32768)||n.nodes.end===null)&&(n.nodes.end=x),Oe();return}e!==null&&e.before(t)}[...`allowfullscreen.async.autofocus.autoplay.checked.controls.default.disabled.formnovalidate.indeterminate.inert.ismap.loop.multiple.muted.nomodule.novalidate.open.playsinline.readonly.required.reversed.seamless.selected.webkitdirectory.defer.disablepictureinpicture.disableremoteplayback`.split(`.`)];var Nn=[`touchstart`,`touchmove`];function Pn(e){return Nn.includes(e)}function Fn(e,t){return Rn(e,t)}function In(e,n){Ft(),n.intro=n.intro??!1;let r=n.target,i=b,a=x;try{for(var o=Lt(r);o&&(o.nodeType!==8||o.data!==`[`);)o=I(o);if(!o)throw t;Ee(!0),De(o);let i=Rn(e,{...n,anchor:o});return Ee(!1),i}catch(i){if(i instanceof Error&&i.message.split(`
|
|
2
|
+
`).some(e=>e.startsWith(`https://svelte.dev/e/`)))throw i;return i!==t&&console.warn(`Failed to hydrate: `,i),n.recover===!1&&ve(),Ft(),Rt(r),Ee(!1),Fn(e,n)}finally{Ee(i),De(a)}}var Ln=new Map;function Rn(e,{target:n,anchor:r,props:i={},events:a,context:s,intro:c=!0,transformError:l}){Ft();var u=void 0,d=qt(()=>{var c=r??n.appendChild(It());pt(c,{pending:()=>{}},n=>{Le({});var r=S;if(s&&(r.c=s),a&&(i.$$events=a),b&&An(n,null),u=e(n,i)||{},b&&(W.nodes.end=x,x===null||x.nodeType!==8||x.data!==`]`))throw we(),t;Re()},l);var d=new Set,f=e=>{for(var t=0;t<e.length;t++){var r=e[t];if(!d.has(r)){d.add(r);var i=Pn(r);for(let e of[n,document]){var a=Ln.get(e);a===void 0&&(a=new Map,Ln.set(e,a));var o=a.get(r);o===void 0?(e.addEventListener(r,En,{passive:i}),a.set(r,1)):a.set(r,o+1)}}}};return f(o(Cn)),wn.add(f),()=>{for(var e of d)for(let r of[n,document]){var t=Ln.get(r),i=t.get(e);--i==0?(r.removeEventListener(e,En),t.delete(e),t.size===0&&Ln.delete(r)):t.set(e,i)}wn.delete(f),c!==r&&c.parentNode?.removeChild(c)}});return zn.set(u,d),u}var zn=new WeakMap;function Bn(e,t){let n=zn.get(e);return n?(zn.delete(e),n(t)):Promise.resolve()}function Vn(e){S===null&&pe(`onMount`),Fe&&S.l!==null?Hn(S).m.push(e):Wt(()=>{let t=xn(e);if(typeof t==`function`)return t})}function Hn(e){var t=e.l;return t.u??={a:[],b:[],m:[]}}function Un(e,t){Jt(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector(`#`+t.hash)){let e=zt(`style`);e.id=t.hash,e.textContent=t.code,r.appendChild(e)}})}function Wn(e,t,n,r){var i=!Fe||(n&2)!=0,a=(n&8)!=0,o=(n&16)!=0,s=r,c=!0,u=()=>(c&&(c=!1,s=o?xn(r):r),s);let d;if(a){var f=ue in e||de in e;d=l(e,t)?.set??(f&&t in e?n=>e[t]=n:void 0)}var p,m=!1;a?[p,m]=Ye(()=>e[t]):p=e[t],p===void 0&&r!==void 0&&(p=u(),d&&(i&&ye(t),d(p)));var h=i?()=>{var n=e[t];return n===void 0?u():(c=!0,n)}:()=>{var n=e[t];return n!==void 0&&(s=void 0),n===void 0?s:n};if(i&&!(n&4))return h;if(d){var g=e.$$legacy;return(function(e,t){return arguments.length>0?((!i||!t||g||m)&&d(t?h():e),e):h()})}var _=!1,v=(n&1?ht:gt)(()=>(_=!1,h()));a&&$(v);var y=W;return(function(e,t){if(arguments.length>0){let n=t?$(v):i&&a?F(e):e;return P(v,n),_=!0,s!==void 0&&(s=n),e}return B&&_||y.f&16384?v.v:$(v)})}function Gn(e){return new Kn(e)}var Kn=class{#e;#t;constructor(e){var t=new Map,n=(e,n)=>{var r=Et(n,!1,!1);return t.set(e,r),r};let r=new Proxy({...e.props||{},$$events:{}},{get(e,r){return $(t.get(r)??n(r,Reflect.get(e,r)))},has(e,r){return r===de?!0:($(t.get(r)??n(r,Reflect.get(e,r))),Reflect.has(e,r))},set(e,r,i){return P(t.get(r)??n(r,i),i),Reflect.set(e,r,i)}});this.#t=(e.hydrate?In:Fn)(e.component,{target:e.target,anchor:e.anchor,props:r,context:e.context,intro:e.intro??!1,recover:e.recover,transformError:e.transformError}),!Pe&&(!e?.props?.$$host||e.sync===!1)&&rt(),this.#e=r.$$events;for(let e of Object.keys(this.#t))e===`$set`||e===`$destroy`||e===`$on`||c(this,e,{get(){return this.#t[e]},set(t){this.#t[e]=t},enumerable:!0});this.#t.$set=e=>{Object.assign(r,e)},this.#t.$destroy=()=>{Bn(this.#t)}}$set(e){this.#t.$set(e)}$on(e,t){this.#e[e]=this.#e[e]||[];let n=(...e)=>t.call(this,...e);return this.#e[e].push(n),()=>{this.#e[e]=this.#e[e].filter(e=>e!==n)}}$destroy(){this.#t.$destroy()}},qn;typeof HTMLElement==`function`&&(qn=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){let n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){let e=this.$$l_u.get(t);e&&(e(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){if(await Promise.resolve(),!this.$$cn||this.$$c)return;function e(e){return t=>{let n=zt(`slot`);e!==`default`&&(n.name=e),Mn(t,n)}}let t={},n=Yn(this);for(let 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(let e of this.attributes){let t=this.$$g_p(e.name);t in this.$$d||(this.$$d[t]=Jn(t,e.value,this.$$p_d,`toProp`))}for(let e in this.$$p_d)!(e in this.$$d)&&this[e]!==void 0&&(this.$$d[e]=this[e],delete this[e]);this.$$c=Gn({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=Kt(()=>{Yt(()=>{this.$$r=!0;for(let e of s(this.$$c)){if(!this.$$p_d[e]?.reflect)continue;this.$$d[e]=this.$$c[e];let t=Jn(e,this.$$d[e],this.$$p_d,`toAttribute`);t==null?this.removeAttribute(this.$$p_d[e].attribute||e):this.setAttribute(this.$$p_d[e].attribute||e,t)}this.$$r=!1})});for(let e in this.$$l)for(let t of this.$$l[e]){let n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}this.$$l={}}}attributeChangedCallback(e,t,n){this.$$r||(e=this.$$g_p(e),this.$$d[e]=Jn(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 s(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function Jn(e,t,n,r){let 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 Yn(e){let t={};return e.childNodes.forEach(e=>{t[e.slot||`default`]=!0}),t}function Xn(e,t,n,r,i,a){let o=class extends qn{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return s(t).map(e=>(t[e].attribute||e).toLowerCase())}};return s(t).forEach(e=>{c(o.prototype,e,{get(){return this.$$c&&e in this.$$c?this.$$c[e]:this.$$d[e]},set(n){n=Jn(e,n,t),this.$$d[e]=n;var r=this.$$c;r&&(l(r,e)?.get?r[e]=n:r.$set({[e]:n}))}})}),r.forEach(e=>{c(o.prototype,e,{get(){return this.$$c?.[e]}})}),a&&(o=a(o)),e.element=o,o}function Zn(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function Qn(e,t){var n=document.querySelector(`script[src="${e}"]`);if(n===null)return null;var r=ir(e,t),i=n.cloneNode();if(delete i.dataset.uidAuto,Object.keys(i.dataset).length!==Object.keys(r.dataset).length)return null;var a=!0;return Object.keys(i.dataset).forEach(function(e){i.dataset[e]!==r.dataset[e]&&(a=!1)}),a?n:null}function $n(e){var t=e.url,n=e.attributes,r=e.onSuccess,i=e.onError,a=ir(t,n);a.onerror=i,a.onload=r,document.head.insertBefore(a,document.head.firstElementChild)}function er(e){var t=e.sdkBaseUrl,n=e.environment,r=Zn(e,[`sdkBaseUrl`,`environment`]),i=t||rr(n),a=r,o=Object.keys(a).filter(function(e){return a[e]!==void 0&&a[e]!==null&&a[e]!==``}).reduce(function(e,t){var n=a[t].toString();return t=tr(t),t.substring(0,4)===`data`||t===`crossorigin`?e.attributes[t]=n:e.queryParams[t]=n,e},{queryParams:{},attributes:{}}),s=o.queryParams,c=o.attributes;return s[`merchant-id`]&&s[`merchant-id`].indexOf(`,`)!==-1&&(c[`data-merchant-id`]=s[`merchant-id`],s[`merchant-id`]=`*`),{url:`${i}?${nr(s)}`,attributes:c}}function tr(e){return e.replace(/[A-Z]+(?![a-z])|[A-Z]/g,function(e,t){return(t?`-`:``)+e.toLowerCase()})}function nr(e){var t=``;return Object.keys(e).forEach(function(n){t.length!==0&&(t+=`&`),t+=n+`=`+e[n]}),t}function rr(e){return e===`sandbox`?`https://www.sandbox.paypal.com/sdk/js`:`https://www.paypal.com/sdk/js`}function ir(e,t){t===void 0&&(t={});var n=document.createElement(`script`);return n.src=e,Object.keys(t).forEach(function(e){n.setAttribute(e,t[e]),e===`data-csp-nonce`&&n.setAttribute(`nonce`,t[`data-csp-nonce`])}),n}function ar(e,t){if(t===void 0&&(t=Promise),cr(e,t),typeof document>`u`)return t.resolve(null);var n=er(e),r=n.url,i=n.attributes,a=i[`data-namespace`]||`paypal`,o=sr(a);return i[`data-js-sdk-library`]||=`paypal-js`,Qn(r,i)&&o?t.resolve(o):or({url:r,attributes:i},t).then(function(){var e=sr(a);if(e)return e;throw Error(`The window.${a} global variable is not available.`)})}function or(e,t){t===void 0&&(t=Promise),cr(e,t);var n=e.url,r=e.attributes;if(typeof n!=`string`||n.length===0)throw Error(`Invalid url.`);if(r!==void 0&&typeof r!=`object`)throw Error(`Expected attributes to be an object.`);return new t(function(e,t){if(typeof document>`u`)return e();$n({url:n,attributes:r,onSuccess:function(){return e()},onError:function(){return t(Error(`The script "${n}" failed to load. Check the HTTP status code and response body in DevTools to learn more.`))}})})}function sr(e){return window[e]}function cr(e,t){if(typeof e!=`object`||!e)throw Error(`Expected an options object.`);var n=e.environment;if(n&&n!==`production`&&n!==`sandbox`)throw Error('The `environment` option must be either "production" or "sandbox".');if(t!==void 0&&typeof t!=`function`)throw Error(`Expected PromisePonyfill to be a function.`)}var lr=jn(`<div part="btn" id="paypalbtn" class="svelte-d34b58"></div>`),ur={hash:`svelte-d34b58`,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
|
/*!
|
|
@@ -65,5 +65,5 @@
|
|
|
65
65
|
@media (min-width: 1200px) {
|
|
66
66
|
}
|
|
67
67
|
@media print {
|
|
68
|
-
}:host {--hb-checkout-border: 0.5px solid rgba(197, 197, 197, 0.808);font-family:"Roboto", sans-serif;}`};function
|
|
69
|
-
//# sourceMappingURL=main.iife.js.map
|
|
68
|
+
}:host {--hb-checkout-border: 0.5px solid rgba(197, 197, 197, 0.808);font-family:"Roboto", sans-serif;}`};function dr(e,t){Le(t,!0),Un(e,ur);let n=Wn(t,`id`,7,``),r=Wn(t,`paypalid`,7),i=Wn(t,`total`,7,0),a=Wn(t,`currency`,7,`EUR`),o=!1,s,c;Wt(()=>{typeof i()==`string`&&i(Number(i())),a()?a(a().toUpperCase()):a(`EUR`),r()&&l()});function l(){s&&s.Buttons?.().close?.(),r()&&c&&!o&&(o=!0,ar({"client-id":r(),currency:a()}).then(e=>{console.info(`configured paypal payment`),s=e,o=!1,s?.Buttons?.({style:{layout:`horizontal`,tagline:!1,height:40},createOrder(e,t){return t.order.create({intent:`CAPTURE`,purchase_units:[{amount:{currency_code:a(),value:i().toString()}}]})},onApprove(e,t){return t?.order?t.order.capture().then(function(e){u(`paymentCompleted`,{method:`paypal`,total:i()})}):new Promise((e,t)=>{t(`no order`)})}}).render(c).catch(e=>{console.error(`failed to render the PayPal Buttons`,e)})}).catch(e=>{console.error(`failed to load the PayPal JS SDK script`,e)}))}Vn(()=>(c=t.$$host?.shadowRoot?.querySelector(`#paypalbtn`),l(),()=>{try{s.Buttons?.().close?.()}catch{}}));function u(e,n){t.$$host.dispatchEvent(new CustomEvent(e,{detail:n}))}return Mn(e,lr()),Re({get id(){return n()},set id(e=``){n(e),rt()},get paypalid(){return r()},set paypalid(e){r(e),rt()},get total(){return i()},set total(e=0){i(e),rt()},get currency(){return a()},set currency(e=`EUR`){a(e),rt()}})}customElements.define(`hb-payment-paypal`,Xn(dr,{id:{},paypalid:{},total:{},currency:{}},[],[],{mode:`open`})),e.Component=dr})(this[`payment-paypal`]=this[`payment-paypal`]||{});
|
|
69
|
+
//# sourceMappingURL=main.iife.js.map
|