@htmlbricks/hb-payment-paypal 0.65.23 → 0.66.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/main.iife.js +4 -4
- package/main.iife.js.map +1 -1
- package/manifest.json +3 -4
- package/package.json +1 -1
package/main.iife.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
(function(Ze){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const rr=2,Qe="[",Xe="[!",et="]",ge={},g=Symbol(),Le=!1;var nr=Array.isArray,sr=Array.prototype.indexOf,ir=Array.from,me=Object.keys,ye=Object.defineProperty,se=Object.getOwnPropertyDescriptor,or=Object.prototype,lr=Array.prototype,ar=Object.getPrototypeOf,tt=Object.isExtensible;function fr(e){for(var t=0;t<e.length;t++)e[t]()}function ur(){var e,t,r=new Promise((n,i)=>{e=n,t=i});return{promise:r,resolve:e,reject:t}}const p=2,Be=4,cr=8,F=16,H=32,V=64,we=128,N=512,$=1024,x=2048,L=4096,z=8192,W=16384,$e=32768,Ee=65536,rt=1<<17,nt=1<<18,ie=1<<19,dr=1<<20,Q=32768,Ue=1<<21,st=1<<22,fe=1<<23,qe=Symbol("$state"),hr=Symbol("legacy props"),it=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},xe=8;function br(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function _r(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function vr(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function pr(e){throw new Error("https://svelte.dev/e/effect_orphan")}function gr(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function mr(){throw new Error("https://svelte.dev/e/hydration_failed")}function yr(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function wr(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function $r(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Er(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function ot(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function xr(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let j=!1;function Se(e){j=e}let m;function ue(e){if(e===null)throw ot(),ge;return m=e}function lt(){return ue(le(m))}function Sr(e=1){if(j){for(var t=e,r=m;t--;)r=le(r);m=r}}function kr(e=!0){for(var t=0,r=m;;){if(r.nodeType===xe){var n=r.data;if(n===et){if(t===0)return r;t-=1}else(n===Qe||n===Xe)&&(t+=1)}var i=le(r);e&&r.remove(),r=i}}function at(e){return e===this.v}function Tr(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Or(e){return!Tr(e,this.v)}let Cr=!1,k=null;function ke(e){k=e}function ft(e,t=!1,r){k={p:k,i:!1,c:null,e:null,s:e,x:null,l:null}}function ut(e){var t=k,r=t.e;if(r!==null){t.e=null;for(var n of r)At(n)}return e!==void 0&&(t.x=e),t.i=!0,k=t.p,e??{}}function ct(){return!0}let X=[];function dt(){var e=X;X=[],fr(e)}function Ye(e){if(X.length===0&&!ce){var t=X;queueMicrotask(()=>{t===X&&dt()})}X.push(e)}function Rr(){for(;X.length>0;)dt()}function ht(e){var t=_;if(t===null)return b.f|=fe,e;if((t.f&$e)===0){if((t.f&we)===0)throw e;t.b.error(e)}else Te(e,t)}function Te(e,t){for(;t!==null;){if((t.f&we)!==0)try{t.b.error(e);return}catch(r){e=r}t=t.parent}throw e}const Oe=new Set;let y=null,T=null,O=[],Ce=null,He=!1,ce=!1;class P{committed=!1;current=new Map;previous=new Map;#t=new Set;#e=new Set;#a=0;#i=0;#f=null;#o=[];#s=[];skipped_effects=new Set;is_fork=!1;is_deferred(){return this.is_fork||this.#i>0}process(t){O=[],this.apply();var r={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const n of t)this.#r(n,r);this.is_fork||this.#u(),this.is_deferred()?(this.#n(r.effects),this.#n(r.render_effects),this.#n(r.block_effects)):(y=null,_t(r.render_effects),_t(r.effects),this.#f?.resolve()),T=null}#r(t,r){t.f^=$;for(var n=t.first;n!==null;){var i=n.f,s=(i&(H|V))!==0,o=s&&(i&$)!==0,l=o||(i&z)!==0||this.skipped_effects.has(n);if((n.f&we)!==0&&n.b?.is_pending()&&(r={parent:r,effect:n,effects:[],render_effects:[],block_effects:[]}),!l&&n.fn!==null){s?n.f^=$:(i&Be)!==0?r.effects.push(n):ve(n)&&((n.f&F)!==0&&r.block_effects.push(n),pe(n));var a=n.first;if(a!==null){n=a;continue}}var f=n.parent;for(n=n.next;n===null&&f!==null;)f===r.effect&&(this.#n(r.effects),this.#n(r.render_effects),this.#n(r.block_effects),r=r.parent),n=f.next,f=f.parent}}#n(t){for(const r of t)((r.f&x)!==0?this.#o:this.#s).push(r),this.#l(r.deps),E(r,$)}#l(t){if(t!==null)for(const r of t)(r.f&p)===0||(r.f&Q)===0||(r.f^=Q,this.#l(r.deps))}capture(t,r){this.previous.has(t)||this.previous.set(t,r),(t.f&fe)===0&&(this.current.set(t,t.v),T?.set(t,t.v))}activate(){y=this,this.apply()}deactivate(){y===this&&(y=null,T=null)}flush(){if(this.activate(),O.length>0){if(bt(),y!==null&&y!==this)return}else this.#a===0&&this.process([]);this.deactivate()}discard(){for(const t of this.#e)t(this);this.#e.clear()}#u(){if(this.#i===0){for(const t of this.#t)t();this.#t.clear()}this.#a===0&&this.#c()}#c(){if(Oe.size>1){this.previous.clear();var t=T,r=!0,n={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const s of Oe){if(s===this){r=!1;continue}const o=[];for(const[a,f]of this.current){if(s.current.has(a))if(r&&f!==s.current.get(a))s.current.set(a,f);else continue;o.push(a)}if(o.length===0)continue;const l=[...s.current.keys()].filter(a=>!this.current.has(a));if(l.length>0){var i=O;O=[];const a=new Set,f=new Map;for(const c of o)vt(c,l,a,f);if(O.length>0){y=s,s.apply();for(const c of O)s.#r(c,n);s.deactivate()}O=i}}y=null,T=t}this.committed=!0,Oe.delete(this)}increment(t){this.#a+=1,t&&(this.#i+=1)}decrement(t){this.#a-=1,t&&(this.#i-=1),this.revive()}revive(){for(const t of this.#o)E(t,x),oe(t);for(const t of this.#s)E(t,L),oe(t);this.#o=[],this.#s=[],this.flush()}oncommit(t){this.#t.add(t)}ondiscard(t){this.#e.add(t)}settled(){return(this.#f??=ur()).promise}static ensure(){if(y===null){const t=y=new P;Oe.add(y),ce||P.enqueue(()=>{y===t&&t.flush()})}return y}static enqueue(t){Ye(t)}apply(){}}function de(e){var t=ce;ce=!0;try{for(var r;;){if(Rr(),O.length===0&&(y?.flush(),O.length===0))return Ce=null,r;bt()}}finally{ce=t}}function bt(){var e=G;He=!0;var t=null;try{var r=0;for(je(!0);O.length>0;){var n=P.ensure();if(r++>1e3){var i,s;Ar()}n.process(O),K.clear()}}finally{He=!1,je(e),Ce=null}}function Ar(){try{gr()}catch(e){Te(e,Ce)}}let B=null;function _t(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var n=e[r++];if((n.f&(W|z))===0&&ve(n)&&(B=new Set,pe(n),n.deps===null&&n.first===null&&n.nodes_start===null&&(n.teardown===null&&n.ac===null?It(n):n.fn=null),B?.size>0)){K.clear();for(const i of B){if((i.f&(W|z))!==0)continue;const s=[i];let o=i.parent;for(;o!==null;)B.has(o)&&(B.delete(o),s.push(o)),o=o.parent;for(let l=s.length-1;l>=0;l--){const a=s[l];(a.f&(W|z))===0&&pe(a)}}B.clear()}}B=null}}function vt(e,t,r,n){if(!r.has(e)&&(r.add(e),e.reactions!==null))for(const i of e.reactions){const s=i.f;(s&p)!==0?vt(i,t,r,n):(s&(st|F))!==0&&(s&x)===0&&pt(i,t,n)&&(E(i,x),oe(i))}}function pt(e,t,r){const n=r.get(e);if(n!==void 0)return n;if(e.deps!==null)for(const i of e.deps){if(t.includes(i))return!0;if((i.f&p)!==0&&pt(i,t,r))return r.set(i,!0),!0}return r.set(e,!1),!1}function oe(e){for(var t=Ce=e;t.parent!==null;){t=t.parent;var r=t.f;if(He&&t===_&&(r&F)!==0&&(r&nt)===0)return;if((r&(V|H))!==0){if((r&$)===0)return;t.f^=$}}O.push(t)}function Nr(e){let t=0,r=Re(0),n;return()=>{Ae()&&(M(r),Nt(()=>(t===0&&(n=Vt(()=>e(()=>he(r)))),t+=1,()=>{Ye(()=>{t-=1,t===0&&(n?.(),n=void 0,he(r))})})))}}var jr=Ee|ie|we;function Pr(e,t,r){new Ir(e,t,r)}class Ir{parent;#t=!1;#e;#a=j?m:null;#i;#f;#o;#s=null;#r=null;#n=null;#l=null;#u=null;#c=0;#d=0;#b=!1;#h=null;#m=Nr(()=>(this.#h=Re(this.#c),()=>{this.#h=null}));constructor(t,r,n){this.#e=t,this.#i=r,this.#f=n,this.parent=_.b,this.#t=!!this.#i.pending,this.#o=zr(()=>{if(_.b=this,j){const s=this.#a;lt(),s.nodeType===xe&&s.data===Xe?this.#w():this.#y()}else{var i=this.#p();try{this.#s=te(()=>n(i))}catch(s){this.error(s)}this.#d>0?this.#v():this.#t=!1}return()=>{this.#u?.remove()}},jr),j&&(this.#e=m)}#y(){try{this.#s=te(()=>this.#f(this.#e))}catch(t){this.error(t)}this.#t=!1}#w(){const t=this.#i.pending;t&&(this.#r=te(()=>t(this.#e)),P.enqueue(()=>{var r=this.#p();this.#s=this.#_(()=>(P.ensure(),te(()=>this.#f(r)))),this.#d>0?this.#v():(Ne(this.#r,()=>{this.#r=null}),this.#t=!1)}))}#p(){var t=this.#e;return this.#t&&(this.#u=Tt(),this.#e.before(this.#u),t=this.#u),t}is_pending(){return this.#t||!!this.parent&&this.parent.is_pending()}has_pending_snippet(){return!!this.#i.pending}#_(t){var r=_,n=b,i=k;Z(this.#o),C(this.#o),ke(this.#o.ctx);try{return t()}catch(s){return ht(s),null}finally{Z(r),C(n),ke(i)}}#v(){const t=this.#i.pending;this.#s!==null&&(this.#l=document.createDocumentFragment(),this.#l.append(this.#u),Gr(this.#s,this.#l)),this.#r===null&&(this.#r=te(()=>t(this.#e)))}#g(t){if(!this.has_pending_snippet()){this.parent&&this.parent.#g(t);return}this.#d+=t,this.#d===0&&(this.#t=!1,this.#r&&Ne(this.#r,()=>{this.#r=null}),this.#l&&(this.#e.before(this.#l),this.#l=null))}update_pending_count(t){this.#g(t),this.#c+=t,this.#h&&wt(this.#h,this.#c)}get_effect_pending(){return this.#m(),M(this.#h)}error(t){var r=this.#i.onerror;let n=this.#i.failed;if(this.#b||!r&&!n)throw t;this.#s&&(I(this.#s),this.#s=null),this.#r&&(I(this.#r),this.#r=null),this.#n&&(I(this.#n),this.#n=null),j&&(ue(this.#a),Sr(),ue(kr()));var i=!1,s=!1;const o=()=>{if(i){xr();return}i=!0,s&&Er(),P.ensure(),this.#c=0,this.#n!==null&&Ne(this.#n,()=>{this.#n=null}),this.#t=this.has_pending_snippet(),this.#s=this.#_(()=>(this.#b=!1,te(()=>this.#f(this.#e)))),this.#d>0?this.#v():this.#t=!1};var l=b;try{C(null),s=!0,r?.(t,o),s=!1}catch(a){Te(a,this.#o&&this.#o.parent)}finally{C(l)}n&&Ye(()=>{this.#n=this.#_(()=>{P.ensure(),this.#b=!0;try{return te(()=>{n(this.#e,()=>t,()=>o)})}catch(a){return Te(a,this.#o.parent),null}finally{this.#b=!1}})})}}function Dr(e){var t=p|x,r=b!==null&&(b.f&p)!==0?b:null;return _!==null&&(_.f|=ie),{ctx:k,deps:null,effects:null,equals:at,f:t,fn:e,reactions:null,rv:0,v:g,wv:0,parent:r??_,ac:null}}function gt(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)I(t[r])}}function Mr(e){for(var t=e.parent;t!==null;){if((t.f&p)===0)return(t.f&W)===0?t:null;t=t.parent}return null}function Ve(e){var t,r=_;Z(Mr(e));try{e.f&=~Q,gt(e),t=qt(e)}finally{Z(r)}return t}function mt(e){var t=Ve(e);if(e.equals(t)||(y?.is_fork||(e.v=t),e.wv=Bt()),!re)if(T!==null)Ae()&&T.set(e,t);else{var r=(e.f&N)===0?L:$;E(e,r)}}let ze=new Set;const K=new Map;let yt=!1;function Re(e,t){var r={f:0,v:e,reactions:null,equals:at,rv:0,wv:0};return r}function J(e,t){const r=Re(e);return Zr(r),r}function Fr(e,t=!1,r=!0){const n=Re(e);return t||(n.equals=Or),n}function U(e,t,r=!1){b!==null&&(!D||(b.f&rt)!==0)&&ct()&&(b.f&(p|F|st|rt))!==0&&!q?.includes(e)&&$r();let n=r?be(t):t;return wt(e,n)}function wt(e,t){if(!e.equals(t)){var r=e.v;re?K.set(e,t):K.set(e,r),e.v=t;var n=P.ensure();n.capture(e,r),(e.f&p)!==0&&((e.f&x)!==0&&Ve(e),E(e,(e.f&N)!==0?$:L)),e.wv=Bt(),$t(e,x),_!==null&&(_.f&$)!==0&&(_.f&(H|V))===0&&(R===null?Qr([e]):R.push(e)),!n.is_fork&&ze.size>0&&!yt&&Lr()}return t}function Lr(){yt=!1;var e=G;je(!0);const t=Array.from(ze);try{for(const r of t)(r.f&$)!==0&&E(r,L),ve(r)&&pe(r)}finally{je(e)}ze.clear()}function he(e){U(e,e.v+1)}function $t(e,t){var r=e.reactions;if(r!==null)for(var n=r.length,i=0;i<n;i++){var s=r[i],o=s.f,l=(o&x)===0;if(l&&E(s,t),(o&p)!==0){var a=s;T?.delete(a),(o&Q)===0&&(o&N&&(s.f|=Q),$t(a,L))}else l&&((o&F)!==0&&B!==null&&B.add(s),oe(s))}}function be(e){if(typeof e!="object"||e===null||qe in e)return e;const t=ar(e);if(t!==or&&t!==lr)return e;var r=new Map,n=nr(e),i=J(0),s=ne,o=l=>{if(ne===s)return l();var a=b,f=ne;C(null),Lt(s);var c=l();return C(a),Lt(f),c};return n&&r.set("length",J(e.length)),new Proxy(e,{defineProperty(l,a,f){(!("value"in f)||f.configurable===!1||f.enumerable===!1||f.writable===!1)&&yr();var c=r.get(a);return c===void 0?c=o(()=>{var h=J(f.value);return r.set(a,h),h}):U(c,f.value,!0),!0},deleteProperty(l,a){var f=r.get(a);if(f===void 0){if(a in l){const c=o(()=>J(g));r.set(a,c),he(i)}}else U(f,g),he(i);return!0},get(l,a,f){if(a===qe)return e;var c=r.get(a),h=a in l;if(c===void 0&&(!h||se(l,a)?.writable)&&(c=o(()=>{var u=be(h?l[a]:g),v=J(u);return v}),r.set(a,c)),c!==void 0){var d=M(c);return d===g?void 0:d}return Reflect.get(l,a,f)},getOwnPropertyDescriptor(l,a){var f=Reflect.getOwnPropertyDescriptor(l,a);if(f&&"value"in f){var c=r.get(a);c&&(f.value=M(c))}else if(f===void 0){var h=r.get(a),d=h?.v;if(h!==void 0&&d!==g)return{enumerable:!0,configurable:!0,value:d,writable:!0}}return f},has(l,a){if(a===qe)return!0;var f=r.get(a),c=f!==void 0&&f.v!==g||Reflect.has(l,a);if(f!==void 0||_!==null&&(!c||se(l,a)?.writable)){f===void 0&&(f=o(()=>{var d=c?be(l[a]):g,u=J(d);return u}),r.set(a,f));var h=M(f);if(h===g)return!1}return c},set(l,a,f,c){var h=r.get(a),d=a in l;if(n&&a==="length")for(var u=f;u<h.v;u+=1){var v=r.get(u+"");v!==void 0?U(v,g):u in l&&(v=o(()=>J(g)),r.set(u+"",v))}if(h===void 0)(!d||se(l,a)?.writable)&&(h=o(()=>J(void 0)),U(h,be(f)),r.set(a,h));else{d=h.v!==g;var A=o(()=>be(f));U(h,A)}var Y=Reflect.getOwnPropertyDescriptor(l,a);if(Y?.set&&Y.set.call(c,f),!d){if(n&&typeof a=="string"){var Fe=r.get("length"),Ge=Number(a);Number.isInteger(Ge)&&Ge>=Fe.v&&U(Fe,Ge+1)}he(i)}return!0},ownKeys(l){M(i);var a=Reflect.ownKeys(l).filter(h=>{var d=r.get(h);return d===void 0||d.v!==g});for(var[f,c]of r)c.v!==g&&!(f in l)&&a.push(f);return a},setPrototypeOf(){wr()}})}var Et,xt,St,kt;function We(){if(Et===void 0){Et=window,xt=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;St=se(t,"firstChild").get,kt=se(t,"nextSibling").get,tt(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),tt(r)&&(r.__t=void 0)}}function Tt(e=""){return document.createTextNode(e)}function Ot(e){return St.call(e)}function le(e){return kt.call(e)}function Br(e){e.textContent=""}function Ct(e){var t=b,r=_;C(null),Z(null);try{return e()}finally{C(t),Z(r)}}function Ur(e){_===null&&(b===null&&pr(),vr()),re&&_r()}function qr(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function ee(e,t,r){var n=_;n!==null&&(n.f&z)!==0&&(e|=z);var i={ctx:k,deps:null,nodes_start:null,nodes_end:null,f:e|x|N,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(r)try{pe(i),i.f|=$e}catch(l){throw I(i),l}else t!==null&&oe(i);var s=i;if(r&&s.deps===null&&s.teardown===null&&s.nodes_start===null&&s.first===s.last&&(s.f&ie)===0&&(s=s.first,(e&F)!==0&&(e&Ee)!==0&&s!==null&&(s.f|=Ee)),s!==null&&(s.parent=n,n!==null&&qr(s,n),b!==null&&(b.f&p)!==0&&(e&V)===0)){var o=b;(o.effects??=[]).push(s)}return i}function Ae(){return b!==null&&!D}function Rt(e){Ur();var t=_.f,r=!b&&(t&H)!==0&&(t&$e)===0;if(r){var n=k;(n.e??=[]).push(e)}else return At(e)}function At(e){return ee(Be|dr,e,!1)}function Yr(e){P.ensure();const t=ee(V|ie,e,!0);return()=>{I(t)}}function Hr(e){P.ensure();const t=ee(V|ie,e,!0);return(r={})=>new Promise(n=>{r.outro?Ne(t,()=>{I(t),n(void 0)}):(I(t),n(void 0))})}function Vr(e){return ee(Be,e,!1)}function Nt(e,t=0){return ee(cr|t,e,!0)}function zr(e,t=0){var r=ee(F|t,e,!0);return r}function te(e){return ee(H|ie,e,!0)}function jt(e){var t=e.teardown;if(t!==null){const r=re,n=b;Mt(!0),C(null);try{t.call(null)}finally{Mt(r),C(n)}}}function Pt(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const i=r.ac;i!==null&&Ct(()=>{i.abort(it)});var n=r.next;(r.f&V)!==0?r.parent=null:I(r,t),r=n}}function Wr(e){for(var t=e.first;t!==null;){var r=t.next;(t.f&H)===0&&I(t),t=r}}function I(e,t=!0){var r=!1;(t||(e.f&nt)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(Kr(e.nodes_start,e.nodes_end),r=!0),Pt(e,t&&!r),Pe(e,0),E(e,W);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&&It(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function Kr(e,t){for(;e!==null;){var r=e===t?null:le(e);e.remove(),e=r}}function It(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 Ne(e,t,r=!0){var n=[];Dt(e,n,!0),Jr(n,()=>{r&&I(e),t&&t()})}function Jr(e,t){var r=e.length;if(r>0){var n=()=>--r||t();for(var i of e)i.out(n)}else t()}function Dt(e,t,r){if((e.f&z)===0){if(e.f^=z,e.transitions!==null)for(const o of e.transitions)(o.is_global||r)&&t.push(o);for(var n=e.first;n!==null;){var i=n.next,s=(n.f&Ee)!==0||(n.f&H)!==0&&(e.f&F)!==0;Dt(n,t,s?r:!1),n=i}}}function Gr(e,t){for(var r=e.nodes_start,n=e.nodes_end;r!==null;){var i=r===n?null:le(r);t.append(r),r=i}}let G=!1;function je(e){G=e}let re=!1;function Mt(e){re=e}let b=null,D=!1;function C(e){b=e}let _=null;function Z(e){_=e}let q=null;function Zr(e){b!==null&&(q===null?q=[e]:q.push(e))}let w=null,S=0,R=null;function Qr(e){R=e}let Ft=1,_e=0,ne=_e;function Lt(e){ne=e}function Bt(){return++Ft}function ve(e){var t=e.f;if((t&x)!==0)return!0;if(t&p&&(e.f&=~Q),(t&L)!==0){var r=e.deps;if(r!==null)for(var n=r.length,i=0;i<n;i++){var s=r[i];if(ve(s)&&mt(s),s.wv>e.wv)return!0}(t&N)!==0&&T===null&&E(e,$)}return!1}function Ut(e,t,r=!0){var n=e.reactions;if(n!==null&&!q?.includes(e))for(var i=0;i<n.length;i++){var s=n[i];(s.f&p)!==0?Ut(s,t,!1):t===s&&(r?E(s,x):(s.f&$)!==0&&E(s,L),oe(s))}}function qt(e){var t=w,r=S,n=R,i=b,s=q,o=k,l=D,a=ne,f=e.f;w=null,S=0,R=null,b=(f&(H|V))===0?e:null,q=null,ke(e.ctx),D=!1,ne=++_e,e.ac!==null&&(Ct(()=>{e.ac.abort(it)}),e.ac=null);try{e.f|=Ue;var c=e.fn,h=c(),d=e.deps;if(w!==null){var u;if(Pe(e,S),d!==null&&S>0)for(d.length=S+w.length,u=0;u<w.length;u++)d[S+u]=w[u];else e.deps=d=w;if(G&&Ae()&&(e.f&N)!==0)for(u=S;u<d.length;u++)(d[u].reactions??=[]).push(e)}else d!==null&&S<d.length&&(Pe(e,S),d.length=S);if(ct()&&R!==null&&!D&&d!==null&&(e.f&(p|L|x))===0)for(u=0;u<R.length;u++)Ut(R[u],e);return i!==null&&i!==e&&(_e++,R!==null&&(n===null?n=R:n.push(...R))),(e.f&fe)!==0&&(e.f^=fe),h}catch(v){return ht(v)}finally{e.f^=Ue,w=t,S=r,R=n,b=i,q=s,ke(o),D=l,ne=a}}function Xr(e,t){let r=t.reactions;if(r!==null){var n=sr.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&p)!==0&&(w===null||!w.includes(t))&&(E(t,L),(t.f&N)!==0&&(t.f^=N,t.f&=~Q),gt(t),Pe(t,0))}function Pe(e,t){var r=e.deps;if(r!==null)for(var n=t;n<r.length;n++)Xr(e,r[n])}function pe(e){var t=e.f;if((t&W)===0){E(e,$);var r=_,n=G;_=e,G=!0;try{(t&F)!==0?Wr(e):Pt(e),jt(e);var i=qt(e);e.teardown=typeof i=="function"?i:null,e.wv=Ft;var s;Le&&Cr&&(e.f&x)!==0&&e.deps}finally{G=n,_=r}}}function M(e){var t=e.f,r=(t&p)!==0;if(b!==null&&!D){var n=_!==null&&(_.f&W)!==0;if(!n&&!q?.includes(e)){var i=b.deps;if((b.f&Ue)!==0)e.rv<_e&&(e.rv=_e,w===null&&i!==null&&i[S]===e?S++:w===null?w=[e]:w.includes(e)||w.push(e));else{(b.deps??=[]).push(e);var s=e.reactions;s===null?e.reactions=[b]:s.includes(b)||s.push(b)}}}if(re){if(K.has(e))return K.get(e);if(r){var o=e,l=o.v;return((o.f&$)===0&&o.reactions!==null||Ht(o))&&(l=Ve(o)),K.set(o,l),l}}else r&&!T?.has(e)&&(o=e,ve(o)&&mt(o),G&&Ae()&&(o.f&N)===0&&Yt(o));if(T?.has(e))return T.get(e);if((e.f&fe)!==0)throw e.v;return e.v}function Yt(e){if(e.deps!==null){e.f^=N;for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&p)!==0&&(t.f&N)===0&&Yt(t)}}function Ht(e){if(e.v===g)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(K.has(t)||(t.f&p)!==0&&Ht(t))return!0;return!1}function Vt(e){var t=D;try{return D=!0,e()}finally{D=t}}const en=-7169;function E(e,t){e.f=e.f&en|t}const tn=new Set,zt=new Set;let Wt=null;function Ie(e){var t=this,r=t.ownerDocument,n=e.type,i=e.composedPath?.()||[],s=i[0]||e.target;Wt=e;var o=0,l=Wt===e&&e.__root;if(l){var a=i.indexOf(l);if(a!==-1&&(t===document||t===window)){e.__root=t;return}var f=i.indexOf(t);if(f===-1)return;a<=f&&(o=a)}if(s=i[o]||e.target,s!==t){ye(e,"currentTarget",{configurable:!0,get(){return s||r}});var c=b,h=_;C(null),Z(null);try{for(var d,u=[];s!==null;){var v=s.assignedSlot||s.parentNode||s.host||null;try{var A=s["__"+n];A!=null&&(!s.disabled||e.target===s)&&A.call(s,e)}catch(Y){d?u.push(Y):d=Y}if(e.cancelBubble||v===t||v===null)break;s=v}if(d){for(let Y of u)queueMicrotask(()=>{throw Y});throw d}}finally{e.__root=t,delete e.currentTarget,C(c),Z(h)}}}function rn(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function Ke(e,t){var r=_;r.nodes_start===null&&(r.nodes_start=e,r.nodes_end=t)}function nn(e,t){var r=(t&rr)!==0,n,i=!e.startsWith("<!>");return()=>{if(j)return Ke(m,null),m;n===void 0&&(n=rn(i?e:"<!>"+e),n=Ot(n));var s=r||xt?document.importNode(n,!0):n.cloneNode(!0);return Ke(s,s),s}}function Kt(e,t){if(j){var r=_;((r.f&$e)===0||r.nodes_end===null)&&(r.nodes_end=m),lt();return}e!==null&&e.before(t)}const sn=["touchstart","touchmove"];function on(e){return sn.includes(e)}function Jt(e,t){return Gt(e,t)}function ln(e,t){We(),t.intro=t.intro??!1;const r=t.target,n=j,i=m;try{for(var s=Ot(r);s&&(s.nodeType!==xe||s.data!==Qe);)s=le(s);if(!s)throw ge;Se(!0),ue(s);const o=Gt(e,{...t,anchor:s});return Se(!1),o}catch(o){if(o instanceof Error&&o.message.split(`
|
|
2
|
-
`).some(l=>l.startsWith("https://svelte.dev/e/")))throw o;return o!==
|
|
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(l=>l.startsWith("https://svelte.dev/e/")))throw o;return o!==xe&&console.warn("Failed to hydrate: ",o),t.recover===!1&&Dn(),Ge(),sr(n),ke(!1),on(e,t)}finally{ke(r),me(i)}}const Me=new Map;function an(e,{target:t,anchor:n,props:r={},events:i,context:s,intro:o=!0,transformError:l}){Ge();var u=void 0,a=ur(()=>{var f=n??t.appendChild(Ft());Zn(f,{pending:()=>{}},h=>{pt({});var d=A;if(s&&(d.c=s),i&&(r.$$events=i),C&&Xe(h,null),u=e(h,r)||{},C&&(p.nodes.end=x,x===null||x.nodeType!==Ue||x.data!==lt))throw ht(),xe;mt()},l);var v=new Set,c=h=>{for(var d=0;d<h.length;d++){var m=h[d];if(!v.has(m)){v.add(m);var S=xr(m);for(const tt of[t,document]){var P=Me.get(tt);P===void 0&&(P=new Map,Me.set(tt,P));var _e=P.get(m);_e===void 0?(tt.addEventListener(m,sn,{passive:S}),P.set(m,1)):P.set(m,_e+1)}}}};return c(bn(wr)),nn.add(c),()=>{for(var h of v)for(const S of[t,document]){var d=Me.get(S),m=d.get(h);--m==0?(S.removeEventListener(h,sn),d.delete(h),d.size===0&&Me.delete(S)):d.set(h,m)}nn.delete(c),f!==n&&f.parentNode?.removeChild(f)}});return et.set(u,a),u}let et=new WeakMap;function Tr(e,t){const n=et.get(e);return n?(et.delete(e),n(t)):Promise.resolve()}function Or(e){A===null&&An(),qt(()=>{const t=tn(e);if(typeof t=="function")return t})}function kr(e,t){fr(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector("#"+t.hash)){const i=Je("style");i.id=t.hash,i.textContent=t.code,r.appendChild(i)}})}function Pe(e,t,n,r){var i=r,s=!0,o=()=>(s&&(s=!1,i=r),i),l;l=e[t],l===void 0&&r!==void 0&&(l=o());var u;u=()=>{var c=e[t];return c===void 0?o():(s=!0,c)};var a=!1,f=Xn(()=>(a=!1,u())),v=p;return(function(c,h){if(arguments.length>0){const d=h?L(f):c;return U(f,d),a=!0,i!==void 0&&(i=d),c}return Z&&a||(v.f&V)!==0?f.v:L(f)})}function Ar(e){return new Rr(e)}class Rr{#e;#n;constructor(t){var n=new Map,r=(s,o)=>{var l=rr(o,!1,!1);return n.set(s,l),l};const i=new Proxy({...t.props||{},$$events:{}},{get(s,o){return L(n.get(o)??r(o,Reflect.get(s,o)))},has(s,o){return o===kn?!0:(L(n.get(o)??r(o,Reflect.get(s,o))),Reflect.has(s,o))},set(s,o,l){return U(n.get(o)??r(o,l),l),Reflect.set(s,o,l)}});this.#n=(t.hydrate?Sr:on)(t.component,{target:t.target,anchor:t.anchor,props:i,context:t.context,intro:t.intro??!1,recover:t.recover,transformError:t.transformError}),(!t?.props?.$$host||t.sync===!1)&&be(),this.#e=i.$$events;for(const s of Object.keys(this.#n))s==="$set"||s==="$destroy"||s==="$on"||Te(this,s,{get(){return this.#n[s]},set(o){this.#n[s]=o},enumerable:!0});this.#n.$set=s=>{Object.assign(i,s)},this.#n.$destroy=()=>{Tr(this.#n)}}$set(t){this.#n.$set(t)}$on(t,n){this.#e[t]=this.#e[t]||[];const r=(...i)=>n.call(this,...i);return this.#e[t].push(r),()=>{this.#e[t]=this.#e[t].filter(i=>i!==r)}}$destroy(){this.#n.$destroy()}}let un;typeof HTMLElement=="function"&&(un=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;$$shadowRoot=null;constructor(e,t,n){super(),this.$$ctor=e,this.$$s=t,n&&(this.$$shadowRoot=this.attachShadow(n))}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const r=this.$$c.$on(e,t);this.$$l_u.set(t,r)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){const r=this.$$l_u.get(t);r&&(r(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(r){return i=>{const s=Je("slot");r!=="default"&&(s.name=r),ln(i,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},n=Nr(this);for(const r of this.$$s)r in n&&(r==="default"&&!this.$$d.children?(this.$$d.children=e(r),t.default=!0):t[r]=e(r));for(const r of this.attributes){const i=this.$$g_p(r.name);i in this.$$d||(this.$$d[i]=Ie(i,r.value,this.$$p_d,"toProp"))}for(const r in this.$$p_d)!(r in this.$$d)&&this[r]!==void 0&&(this.$$d[r]=this[r],delete this[r]);this.$$c=Ar({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=ar(()=>{Ht(()=>{this.$$r=!0;for(const r of Se(this.$$c)){if(!this.$$p_d[r]?.reflect)continue;this.$$d[r]=this.$$c[r];const i=Ie(r,this.$$d[r],this.$$p_d,"toAttribute");i==null?this.removeAttribute(this.$$p_d[r].attribute||r):this.setAttribute(this.$$p_d[r].attribute||r,i)}this.$$r=!1})});for(const r in this.$$l)for(const i of this.$$l[r]){const s=this.$$c.$on(r,i);this.$$l_u.set(i,s)}this.$$l={}}}attributeChangedCallback(e,t,n){this.$$r||(e=this.$$g_p(e),this.$$d[e]=Ie(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 Se(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function Ie(e,t,n,r){const i=n[e]?.type;if(t=i==="Boolean"&&typeof t!="boolean"?t!=null:t,!r||!n[e])return t;if(r==="toAttribute")switch(i){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t??null;default:return t}else switch(i){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function Nr(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}function Cr(e,t,n,r,i,s){let o=class extends un{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return Se(t).map(l=>(t[l].attribute||l).toLowerCase())}};return Se(t).forEach(l=>{Te(o.prototype,l,{get(){return this.$$c&&l in this.$$c?this.$$c[l]:this.$$d[l]},set(u){u=Ie(l,u,t),this.$$d[l]=u;var a=this.$$c;if(a){var f=oe(a,l)?.get;f?a[l]=u:a.$set({[l]:u})}}})}),r.forEach(l=>{Te(o.prototype,l,{get(){return this.$$c?.[l]}})}),e.element=o,o}function jr(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}typeof SuppressedError=="function"&&SuppressedError;function Dr(e,t){var n=document.querySelector('script[src="'.concat(e,'"]'));if(n===null)return null;var r=fn(e,t),i=n.cloneNode();if(delete i.dataset.uidAuto,Object.keys(i.dataset).length!==Object.keys(r.dataset).length)return null;var s=!0;return Object.keys(i.dataset).forEach(function(o){i.dataset[o]!==r.dataset[o]&&(s=!1)}),s?n:null}function Mr(e){var t=e.url,n=e.attributes,r=e.onSuccess,i=e.onError,s=fn(t,n);s.onerror=i,s.onload=r,document.head.insertBefore(s,document.head.firstElementChild)}function Pr(e){var t=e.sdkBaseUrl,n=e.environment,r=jr(e,["sdkBaseUrl","environment"]),i=t||Lr(n),s=r,o=Object.keys(s).filter(function(a){return typeof s[a]<"u"&&s[a]!==null&&s[a]!==""}).reduce(function(a,f){var v=s[f].toString();return f=Ir(f),f.substring(0,4)==="data"||f==="crossorigin"?a.attributes[f]=v:a.queryParams[f]=v,a},{queryParams:{},attributes:{}}),l=o.queryParams,u=o.attributes;return l["merchant-id"]&&l["merchant-id"].indexOf(",")!==-1&&(u["data-merchant-id"]=l["merchant-id"],l["merchant-id"]="*"),{url:"".concat(i,"?").concat(Fr(l)),attributes:u}}function Ir(e){var t=function(n,r){return(r?"-":"")+n.toLowerCase()};return e.replace(/[A-Z]+(?![a-z])|[A-Z]/g,t)}function Fr(e){var t="";return Object.keys(e).forEach(function(n){t.length!==0&&(t+="&"),t+=n+"="+e[n]}),t}function Lr(e){return e==="sandbox"?"https://www.sandbox.paypal.com/sdk/js":"https://www.paypal.com/sdk/js"}function fn(e,t){t===void 0&&(t={});var n=document.createElement("script");return n.src=e,Object.keys(t).forEach(function(r){n.setAttribute(r,t[r]),r==="data-csp-nonce"&&n.setAttribute("nonce",t["data-csp-nonce"])}),n}function Br(e,t){if(t===void 0&&(t=Promise),dn(e,t),typeof document>"u")return t.resolve(null);var n=Pr(e),r=n.url,i=n.attributes,s=i["data-namespace"]||"paypal",o=cn(s);return i["data-js-sdk-library"]||(i["data-js-sdk-library"]="paypal-js"),Dr(r,i)&&o?t.resolve(o):qr({url:r,attributes:i},t).then(function(){var l=cn(s);if(l)return l;throw new Error("The window.".concat(s," global variable is not available."))})}function qr(e,t){t===void 0&&(t=Promise),dn(e,t);var n=e.url,r=e.attributes;if(typeof n!="string"||n.length===0)throw new Error("Invalid url.");if(typeof r<"u"&&typeof r!="object")throw new Error("Expected attributes to be an object.");return new t(function(i,s){if(typeof document>"u")return i();Mr({url:n,attributes:r,onSuccess:function(){return i()},onError:function(){var o=new Error('The script "'.concat(n,'" failed to load. Check the HTTP status code and response body in DevTools to learn more.'));return s(o)}})})}function cn(e){return window[e]}function dn(e,t){if(typeof e!="object"||e===null)throw new Error("Expected an options object.");var n=e.environment;if(n&&n!=="production"&&n!=="sandbox")throw new Error('The `environment` option must be either "production" or "sandbox".');if(typeof t<"u"&&typeof t!="function")throw new Error("Expected PromisePonyfill to be a function.")}var Ur=$r('<div part="btn" id="paypalbtn" class="svelte-d34b58"></div>');const Hr={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
|
/*!
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* Copyright 2011-2021 The Bootstrap Authors
|
|
8
8
|
* Copyright 2011-2021 Twitter, Inc.
|
|
9
9
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
10
|
-
|
|
10
|
+
*/.svelte-d34b58,
|
|
11
11
|
.svelte-d34b58::before,
|
|
12
12
|
.svelte-d34b58::after {box-sizing:border-box;}
|
|
13
13
|
@media (prefers-reduced-motion: no-preference) {:host {scroll-behavior:smooth;}
|
|
@@ -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
|
|
68
|
+
}:host {--hb-checkout-border: 0.5px solid rgba(197, 197, 197, 0.808);font-family:"Roboto", sans-serif;}`};function hn(e,t){pt(t,!0),kr(e,Hr);let n=Pe(t,"id",7,""),r=Pe(t,"paypalid"),i=Pe(t,"total",7,0),s=Pe(t,"currency",7,"EUR"),o=!1,l,u;qt(()=>{typeof i()=="string"&&i(Number(i())),s()?s(s().toUpperCase()):s("EUR"),r()&&a()});function a(){l&&l.Buttons?.().close?.(),r()&&u&&!o&&(o=!0,Br({"client-id":r(),currency:s()}).then(h=>{console.info("configured paypal payment"),l=h,o=!1,l?.Buttons?.({style:{layout:"horizontal",tagline:!1,height:40},createOrder(d,m){return m.order.create({intent:"CAPTURE",purchase_units:[{amount:{currency_code:s(),value:i().toString()}}]})},onApprove(d,m){return m?.order?m.order.capture().then(function(S){f("paymentCompleted",{method:"paypal",total:i()})}):new Promise((S,P)=>{P("no order")})}}).render(u).catch(d=>{console.error("failed to render the PayPal Buttons",d)})}).catch(h=>{console.error("failed to load the PayPal JS SDK script",h)}))}Or(()=>(u=t.$$host?.shadowRoot?.querySelector("#paypalbtn"),a(),()=>{try{l.Buttons?.().close?.()}catch{}}));function f(h,d){t.$$host.dispatchEvent(new CustomEvent(h,{detail:d}))}var v={get id(){return n()},set id(h=""){n(h),be()},get paypalid(){return r()},set paypalid(h){r(h),be()},get total(){return i()},set total(h=0){i(h),be()},get currency(){return s()},set currency(h="EUR"){s(h),be()}},c=Ur();return ln(e,c),mt(v)}customElements.define("hb-payment-paypal",Cr(hn,{id:{},paypalid:{},total:{},currency:{}},[],[],{mode:"open"})),nt.Component=hn,Object.defineProperty(nt,Symbol.toStringTag,{value:"Module"})})(this["payment-paypal"]=this["payment-paypal"]||{});
|
|
69
69
|
//# sourceMappingURL=main.iife.js.map
|