@htmlbricks/hb-funnel 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 +5 -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,6 @@
|
|
|
1
|
-
(function(Ct){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const Vn=1,qn=2,Mt="[",It="[!",Lt="[?",Pt="]",ye={},S=Symbol(),Dt="http://www.w3.org/1999/xhtml",Un=!1;var Gn=Array.isArray,Kn=Array.prototype.indexOf,$e=Array.prototype.includes,Wn=Array.from,Ye=Object.keys,Ve=Object.defineProperty,ke=Object.getOwnPropertyDescriptor,Jn=Object.getOwnPropertyDescriptors,Xn=Object.prototype,Zn=Array.prototype,Ft=Object.getPrototypeOf,jt=Object.isExtensible;const Qn=()=>{};function er(e){for(var t=0;t<e.length;t++)e[t]()}function Bt(){var e,t,n=new Promise((r,i)=>{e=r,t=i});return{promise:n,resolve:e,reject:t}}const x=2,Ee=4,qe=8,Ht=1<<24,ie=16,U=32,se=64,st=128,P=512,E=1024,A=2048,G=4096,K=8192,z=16384,oe=32768,zt=1<<25,xe=65536,Yt=1<<17,tr=1<<18,ve=1<<19,nr=1<<20,be=65536,ot=1<<21,lt=1<<22,le=1<<23,at=Symbol("$state"),rr=Symbol("legacy props"),ir=Symbol(""),Z=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},sr=!!globalThis.document?.contentType&&globalThis.document.contentType.includes("xml"),ft=3,Ue=8;function or(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function lr(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function ar(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function fr(e){throw new Error("https://svelte.dev/e/effect_orphan")}function ur(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function cr(){throw new Error("https://svelte.dev/e/hydration_failed")}function dr(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function hr(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function vr(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function br(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function Ge(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function _r(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let y=!1;function ae(e){y=e}let g;function W(e){if(e===null)throw Ge(),ye;return g=e}function ut(){return W(ne(g))}function ct(e){if(y){if(ne(g)!==null)throw Ge(),ye;g=e}}function pr(e=1){if(y){for(var t=e,n=g;t--;)n=ne(n);g=n}}function Vt(e=!0){for(var t=0,n=g;;){if(n.nodeType===Ue){var r=n.data;if(r===Pt){if(t===0)return n;t-=1}else(r===Mt||r===It||r[0]==="["&&!isNaN(Number(r.slice(1))))&&(t+=1)}var i=ne(n);e&&n.remove(),n=i}}function mr(e){if(!e||e.nodeType!==Ue)throw Ge(),ye;return e.data}function qt(e){return e===this.v}function gr(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function wr(e){return!gr(e,this.v)}let yr=!1,D=null;function Ne(e){D=e}function Ut(e,t=!1,n){D={p:D,i:!1,c:null,e:null,s:e,x:null,r:_,l:null}}function Gt(e){var t=D,n=t.e;if(n!==null){t.e=null;for(var r of n)mn(r)}return e!==void 0&&(t.x=e),t.i=!0,D=t.p,e??{}}function Kt(){return!0}let _e=[];function Wt(){var e=_e;_e=[],er(e)}function pe(e){if(_e.length===0&&!Ie){var t=_e;queueMicrotask(()=>{t===_e&&Wt()})}_e.push(e)}function $r(){for(;_e.length>0;)Wt()}function Jt(e){var t=_;if(t===null)return b.f|=le,e;if((t.f&oe)===0&&(t.f&Ee)===0)throw e;fe(e,t)}function fe(e,t){for(;t!==null;){if((t.f&st)!==0){if((t.f&oe)===0)throw e;try{t.b.error(e);return}catch(n){e=n}}t=t.parent}throw e}const kr=-7169;function k(e,t){e.f=e.f&kr|t}function dt(e){(e.f&P)!==0||e.deps===null?k(e,E):k(e,G)}function Xt(e){if(e!==null)for(const t of e)(t.f&x)===0||(t.f&be)===0||(t.f^=be,Xt(t.deps))}function Zt(e,t,n){(e.f&A)!==0?t.add(e):(e.f&G)!==0&&n.add(e),Xt(e.deps),k(e,E)}const ue=new Set;let $=null,Y=null,ht=null,Ie=!1,vt=!1,Te=null,Ke=null;var Qt=0;let Er=1;class Q{id=Er++;current=new Map;previous=new Map;#e=new Set;#n=new Set;#t=new Map;#i=new Map;#s=null;#r=[];#o=new Set;#l=new Set;#a=new Map;is_fork=!1;#c=!1;#f=new Set;#d(){return this.is_fork||this.#i.size>0}#v(){for(const r of this.#f)for(const i of r.#i.keys()){for(var t=!1,n=i;n.parent!==null;){if(this.#a.has(n)){t=!0;break}n=n.parent}if(!t)return!0}return!1}skip_effect(t){this.#a.has(t)||this.#a.set(t,{d:[],m:[]})}unskip_effect(t){var n=this.#a.get(t);if(n){this.#a.delete(t);for(var r of n.d)k(r,A),this.schedule(r);for(r of n.m)k(r,G),this.schedule(r)}}#h(){if(Qt++>1e3&&(ue.delete(this),xr()),!this.#d()){for(const o of this.#o)this.#l.delete(o),k(o,A),this.schedule(o);for(const o of this.#l)k(o,G),this.schedule(o)}const t=this.#r;this.#r=[],this.apply();var n=Te=[],r=[],i=Ke=[];for(const o of t)try{this.#u(o,n,r)}catch(a){throw sn(o),a}if($=null,i.length>0){var s=Q.ensure();for(const o of i)s.schedule(o)}if(Te=null,Ke=null,this.#d()||this.#v()){this.#b(r),this.#b(n);for(const[o,a]of this.#a)rn(o,a)}else{this.#t.size===0&&ue.delete(this),this.#o.clear(),this.#l.clear();for(const o of this.#e)o(this);this.#e.clear(),en(r),en(n),this.#s?.resolve()}var l=$;if(this.#r.length>0){const o=l??=this;o.#r.push(...this.#r.filter(a=>!o.#r.includes(a)))}l!==null&&(ue.add(l),l.#h()),ue.has(this)||this.#_()}#u(t,n,r){t.f^=E;for(var i=t.first;i!==null;){var s=i.f,l=(s&(U|se))!==0,o=l&&(s&E)!==0,a=o||(s&K)!==0||this.#a.has(i);if(!a&&i.fn!==null){l?i.f^=E:(s&Ee)!==0?n.push(i):Fe(i)&&((s&ie)!==0&&this.#l.add(i),Oe(i));var f=i.first;if(f!==null){i=f;continue}}for(;i!==null;){var u=i.next;if(u!==null){i=u;break}i=i.parent}}}#b(t){for(var n=0;n<t.length;n+=1)Zt(t[n],this.#o,this.#l)}capture(t,n,r=!1){n!==S&&!this.previous.has(t)&&this.previous.set(t,n),(t.f&le)===0&&(this.current.set(t,[t.v,r]),Y?.set(t,t.v))}activate(){$=this}deactivate(){$=null,Y=null}flush(){try{vt=!0,$=this,this.#h()}finally{Qt=0,ht=null,Te=null,Ke=null,vt=!1,$=null,Y=null,ce.clear()}}discard(){for(const t of this.#n)t(this);this.#n.clear(),ue.delete(this)}#_(){for(const f of ue){var t=f.id<this.id,n=[];for(const[u,[d,c]]of this.current){if(f.current.has(u)){var r=f.current.get(u)[0];if(t&&d!==r)f.current.set(u,[d,c]);else continue}n.push(u)}var i=[...f.current.keys()].filter(u=>!this.current.has(u));if(i.length===0)t&&f.discard();else if(n.length>0){f.activate();var s=new Set,l=new Map;for(var o of n)tn(o,i,s,l);if(f.#r.length>0){f.apply();for(var a of f.#r)f.#u(a,[],[]);f.#r=[]}f.deactivate()}}for(const f of ue)f.#f.has(this)&&(f.#f.delete(this),f.#f.size===0&&!f.#d()&&(f.activate(),f.#h()))}increment(t,n){let r=this.#t.get(n)??0;if(this.#t.set(n,r+1),t){let i=this.#i.get(n)??0;this.#i.set(n,i+1)}}decrement(t,n,r){let i=this.#t.get(n)??0;if(i===1?this.#t.delete(n):this.#t.set(n,i-1),t){let s=this.#i.get(n)??0;s===1?this.#i.delete(n):this.#i.set(n,s-1)}this.#c||r||(this.#c=!0,pe(()=>{this.#c=!1,this.flush()}))}transfer_effects(t,n){for(const r of t)this.#o.add(r);for(const r of n)this.#l.add(r);t.clear(),n.clear()}oncommit(t){this.#e.add(t)}ondiscard(t){this.#n.add(t)}settled(){return(this.#s??=Bt()).promise}static ensure(){if($===null){const t=$=new Q;vt||(ue.add($),Ie||pe(()=>{$===t&&t.flush()}))}return $}apply(){{Y=null;return}}schedule(t){if(ht=t,t.b?.is_pending&&(t.f&(Ee|qe|Ht))!==0&&(t.f&oe)===0){t.b.defer_effect(t);return}for(var n=t;n.parent!==null;){n=n.parent;var r=n.f;if(Te!==null&&n===_&&(b===null||(b.f&x)===0))return;if((r&(se|U))!==0){if((r&E)===0)return;n.f^=E}}this.#r.push(n)}}function Se(e){var t=Ie;Ie=!0;try{for(var n;;){if($r(),$===null)return n;$.flush()}}finally{Ie=t}}function xr(){try{ur()}catch(e){fe(e,ht)}}let ee=null;function en(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if((r.f&(z|K))===0&&Fe(r)&&(ee=new Set,Oe(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&$n(r),ee?.size>0)){ce.clear();for(const i of ee){if((i.f&(z|K))!==0)continue;const s=[i];let l=i.parent;for(;l!==null;)ee.has(l)&&(ee.delete(l),s.push(l)),l=l.parent;for(let o=s.length-1;o>=0;o--){const a=s[o];(a.f&(z|K))===0&&Oe(a)}}ee.clear()}}ee=null}}function tn(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(const i of e.reactions){const s=i.f;(s&x)!==0?tn(i,t,n,r):(s&(lt|ie))!==0&&(s&A)===0&&nn(i,t,r)&&(k(i,A),bt(i))}}function nn(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($e.call(t,i))return!0;if((i.f&x)!==0&&nn(i,t,n))return n.set(i,!0),!0}return n.set(e,!1),!1}function bt(e){$.schedule(e)}function rn(e,t){if(!((e.f&U)!==0&&(e.f&E)!==0)){(e.f&A)!==0?t.d.push(e):(e.f&G)!==0&&t.m.push(e),k(e,E);for(var n=e.first;n!==null;)rn(n,t),n=n.next}}function sn(e){k(e,E);for(var t=e.first;t!==null;)sn(t),t=t.next}function Nr(e){let t=0,n=Le(0),r;return()=>{Et()&&(m(n),gn(()=>(t===0&&(r=Zr(()=>e(()=>Pe(n)))),t+=1,()=>{pe(()=>{t-=1,t===0&&(r?.(),r=void 0,Pe(n))})})))}}var Tr=xe|ve;function Sr(e,t,n,r){new Ar(e,t,n,r)}class Ar{parent;is_pending=!1;transform_error;#e;#n=y?g:null;#t;#i;#s;#r=null;#o=null;#l=null;#a=null;#c=0;#f=0;#d=!1;#v=new Set;#h=new Set;#u=null;#b=Nr(()=>(this.#u=Le(this.#c),()=>{this.#u=null}));constructor(t,n,r,i){this.#e=t,this.#t=n,this.#i=s=>{var l=_;l.b=this,l.f|=st,r(s)},this.parent=_.b,this.transform_error=i??this.parent?.transform_error??(s=>s),this.#s=wn(()=>{if(y){const s=this.#n;ut();const l=s.data===It;if(s.data.startsWith(Lt)){const a=JSON.parse(s.data.slice(Lt.length));this.#y(a)}else l?this.#$():this.#_()}else this.#g()},Tr),y&&(this.#e=g)}#_(){try{this.#r=re(()=>this.#i(this.#e))}catch(t){this.error(t)}}#y(t){const n=this.#t.failed;n&&(this.#l=re(()=>{n(this.#e,()=>t,()=>()=>{})}))}#$(){const t=this.#t.pending;t&&(this.is_pending=!0,this.#o=re(()=>t(this.#e)),pe(()=>{var n=this.#a=document.createDocumentFragment(),r=de();n.append(r),this.#r=this.#m(()=>re(()=>this.#i(r))),this.#f===0&&(this.#e.before(n),this.#a=null,De(this.#o,()=>{this.#o=null}),this.#p($))}))}#g(){try{if(this.is_pending=this.has_pending_snippet(),this.#f=0,this.#c=0,this.#r=re(()=>{this.#i(this.#e)}),this.#f>0){var t=this.#a=document.createDocumentFragment();xn(this.#r,t);const n=this.#t.pending;this.#o=re(()=>n(this.#e))}else this.#p($)}catch(n){this.error(n)}}#p(t){this.is_pending=!1,t.transfer_effects(this.#v,this.#h)}defer_effect(t){Zt(t,this.#v,this.#h)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#t.pending}#m(t){var n=_,r=b,i=D;F(this.#s),O(this.#s),Ne(this.#s.ctx);try{return Q.ensure(),t()}catch(s){return Jt(s),null}finally{F(n),O(r),Ne(i)}}#w(t,n){if(!this.has_pending_snippet()){this.parent&&this.parent.#w(t,n);return}this.#f+=t,this.#f===0&&(this.#p(n),this.#o&&De(this.#o,()=>{this.#o=null}),this.#a&&(this.#e.before(this.#a),this.#a=null))}update_pending_count(t,n){this.#w(t,n),this.#c+=t,!(!this.#u||this.#d)&&(this.#d=!0,pe(()=>{this.#d=!1,this.#u&&Xe(this.#u,this.#c)}))}get_effect_pending(){return this.#b(),m(this.#u)}error(t){var n=this.#t.onerror;let r=this.#t.failed;if(!n&&!r)throw t;this.#r&&(R(this.#r),this.#r=null),this.#o&&(R(this.#o),this.#o=null),this.#l&&(R(this.#l),this.#l=null),y&&(W(this.#n),pr(),W(Vt()));var i=!1,s=!1;const l=()=>{if(i){_r();return}i=!0,s&&br(),this.#l!==null&&De(this.#l,()=>{this.#l=null}),this.#m(()=>{this.#g()})},o=a=>{try{s=!0,n?.(a,l),s=!1}catch(f){fe(f,this.#s&&this.#s.parent)}r&&(this.#l=this.#m(()=>{try{return re(()=>{var f=_;f.b=this,f.f|=st,r(this.#e,()=>a,()=>l)})}catch(f){return fe(f,this.#s.parent),null}}))};pe(()=>{var a;try{a=this.transform_error(t)}catch(f){fe(f,this.#s&&this.#s.parent);return}a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(o,f=>fe(f,this.#s&&this.#s.parent)):o(a)})}}function Rr(e,t,n,r){const i=_t;var s=e.filter(c=>!c.settled);if(n.length===0&&s.length===0){r(t.map(i));return}var l=_,o=Or(),a=s.length===1?s[0].promise:s.length>1?Promise.all(s.map(c=>c.promise)):null;function f(c){o();try{r(c)}catch(v){(l.f&z)===0&&fe(v,l)}We()}if(n.length===0){a.then(()=>f(t.map(i)));return}var u=on();function d(){Promise.all(n.map(c=>Cr(c))).then(c=>f([...t.map(i),...c])).catch(c=>fe(c,l)).finally(()=>u())}a?a.then(()=>{o(),d(),We()}):d()}function Or(){var e=_,t=b,n=D,r=$;return function(s=!0){F(e),O(t),Ne(n),s&&(e.f&z)===0&&(r?.activate(),r?.apply())}}function We(e=!0){F(null),O(null),Ne(null),e&&$?.deactivate()}function on(){var e=_,t=e.b,n=$,r=t.is_rendered();return t.update_pending_count(1,n),n.increment(r,e),(i=!1)=>{t.update_pending_count(-1,n),n.decrement(r,e,i)}}function _t(e){var t=x|A,n=b!==null&&(b.f&x)!==0?b:null;return _!==null&&(_.f|=ve),{ctx:D,deps:null,effects:null,equals:qt,f:t,fn:e,reactions:null,rv:0,v:S,wv:0,parent:n??_,ac:null}}function Cr(e,t,n){let r=_;r===null&&or();var i=void 0,s=Le(S),l=!b,o=new Map;return Ur(()=>{var a=_,f=Bt();i=f.promise;try{Promise.resolve(e()).then(f.resolve,f.reject).finally(We)}catch(v){f.reject(v),We()}var u=$;if(l){if((a.f&oe)!==0)var d=on();if(r.b.is_rendered())o.get(u)?.reject(Z),o.delete(u);else{for(const v of o.values())v.reject(Z);o.clear()}o.set(u,f)}const c=(v,h=void 0)=>{if(d){var w=h===Z;d(w)}if(!(h===Z||(a.f&z)!==0)){if(u.activate(),h)s.f|=le,Xe(s,h);else{(s.f&le)!==0&&(s.f^=le),Xe(s,v);for(const[N,L]of o){if(o.delete(N),N===u)break;L.reject(Z)}}u.deactivate()}};f.promise.then(c,v=>c(null,v||"unknown"))}),pn(()=>{for(const a of o.values())a.reject(Z)}),new Promise(a=>{function f(u){function d(){u===i?a(s):f(i)}u.then(d,d)}f(i)})}function Je(e){const t=_t(e);return Tn(t),t}function Mr(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)R(t[n])}}function Ir(e){for(var t=e.parent;t!==null;){if((t.f&x)===0)return(t.f&z)===0?t:null;t=t.parent}return null}function pt(e){var t,n=_;F(Ir(e));try{e.f&=~be,Mr(e),t=Cn(e)}finally{F(n)}return t}function ln(e){var t=e.v,n=pt(e);if(!e.equals(n)&&(e.wv=Rn(),(!$?.is_fork||e.deps===null)&&(e.v=n,$?.capture(e,t,!0),e.deps===null))){k(e,E);return}he||(Y!==null?(Et()||$?.is_fork)&&Y.set(e,n):dt(e))}function Lr(e){if(e.effects!==null)for(const t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(Z),t.teardown=Qn,t.ac=null,je(t,0),xt(t))}function an(e){if(e.effects!==null)for(const t of e.effects)t.teardown&&Oe(t)}let mt=new Set;const ce=new Map;let fn=!1;function Le(e,t){var n={f:0,v:e,reactions:null,equals:qt,rv:0,wv:0};return n}function te(e,t){const n=Le(e);return Tn(n),n}function Pr(e,t=!1,n=!0){const r=Le(e);return t||(r.equals=wr),r}function J(e,t,n=!1){b!==null&&(!V||(b.f&Yt)!==0)&&Kt()&&(b.f&(x|ie|lt|Yt))!==0&&(j===null||!$e.call(j,e))&&vr();let r=n?Ae(t):t;return Xe(e,r,Ke)}function Xe(e,t,n=null){if(!e.equals(t)){var r=e.v;he?ce.set(e,t):ce.set(e,r),e.v=t;var i=Q.ensure();if(i.capture(e,r),(e.f&x)!==0){const s=e;(e.f&A)!==0&&pt(s),Y===null&&dt(s)}e.wv=Rn(),un(e,A,n),_!==null&&(_.f&E)!==0&&(_.f&(U|se))===0&&(B===null?Jr([e]):B.push(e)),!i.is_fork&&mt.size>0&&!fn&&Dr()}return t}function Dr(){fn=!1;for(const e of mt)(e.f&E)!==0&&k(e,G),Fe(e)&&Oe(e);mt.clear()}function Pe(e){J(e,e.v+1)}function un(e,t,n){var r=e.reactions;if(r!==null)for(var i=r.length,s=0;s<i;s++){var l=r[s],o=l.f,a=(o&A)===0;if(a&&k(l,t),(o&x)!==0){var f=l;Y?.delete(f),(o&be)===0&&(o&P&&(l.f|=be),un(f,G,n))}else if(a){var u=l;(o&ie)!==0&&ee!==null&&ee.add(u),n!==null?n.push(u):bt(u)}}}function Ae(e){if(typeof e!="object"||e===null||at in e)return e;const t=Ft(e);if(t!==Xn&&t!==Zn)return e;var n=new Map,r=Gn(e),i=te(0),s=ge,l=o=>{if(ge===s)return o();var a=b,f=ge;O(null),An(s);var u=o();return O(a),An(f),u};return r&&n.set("length",te(e.length)),new Proxy(e,{defineProperty(o,a,f){(!("value"in f)||f.configurable===!1||f.enumerable===!1||f.writable===!1)&&dr();var u=n.get(a);return u===void 0?l(()=>{var d=te(f.value);return n.set(a,d),d}):J(u,f.value,!0),!0},deleteProperty(o,a){var f=n.get(a);if(f===void 0){if(a in o){const u=l(()=>te(S));n.set(a,u),Pe(i)}}else J(f,S),Pe(i);return!0},get(o,a,f){if(a===at)return e;var u=n.get(a),d=a in o;if(u===void 0&&(!d||ke(o,a)?.writable)&&(u=l(()=>{var v=Ae(d?o[a]:S),h=te(v);return h}),n.set(a,u)),u!==void 0){var c=m(u);return c===S?void 0:c}return Reflect.get(o,a,f)},getOwnPropertyDescriptor(o,a){var f=Reflect.getOwnPropertyDescriptor(o,a);if(f&&"value"in f){var u=n.get(a);u&&(f.value=m(u))}else if(f===void 0){var d=n.get(a),c=d?.v;if(d!==void 0&&c!==S)return{enumerable:!0,configurable:!0,value:c,writable:!0}}return f},has(o,a){if(a===at)return!0;var f=n.get(a),u=f!==void 0&&f.v!==S||Reflect.has(o,a);if(f!==void 0||_!==null&&(!u||ke(o,a)?.writable)){f===void 0&&(f=l(()=>{var c=u?Ae(o[a]):S,v=te(c);return v}),n.set(a,f));var d=m(f);if(d===S)return!1}return u},set(o,a,f,u){var d=n.get(a),c=a in o;if(r&&a==="length")for(var v=f;v<d.v;v+=1){var h=n.get(v+"");h!==void 0?J(h,S):v in o&&(h=l(()=>te(S)),n.set(v+"",h))}if(d===void 0)(!c||ke(o,a)?.writable)&&(d=l(()=>te(void 0)),J(d,Ae(f)),n.set(a,d));else{c=d.v!==S;var w=l(()=>Ae(f));J(d,w)}var N=Reflect.getOwnPropertyDescriptor(o,a);if(N?.set&&N.set.call(u,f),!c){if(r&&typeof a=="string"){var L=n.get("length"),p=Number(a);Number.isInteger(p)&&p>=L.v&&J(L,p+1)}Pe(i)}return!0},ownKeys(o){m(i);var a=Reflect.ownKeys(o).filter(d=>{var c=n.get(d);return c===void 0||c.v!==S});for(var[f,u]of n)u.v!==S&&!(f in o)&&a.push(f);return a},setPrototypeOf(){hr()}})}var cn,dn,hn,vn;function gt(){if(cn===void 0){cn=window,dn=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;hn=ke(t,"firstChild").get,vn=ke(t,"nextSibling").get,jt(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),jt(n)&&(n.__t=void 0)}}function de(e=""){return document.createTextNode(e)}function Re(e){return hn.call(e)}function ne(e){return vn.call(e)}function wt(e,t){if(!y)return Re(e);var n=Re(g);return n===null&&(n=g.appendChild(de())),W(n),n}function bn(e,t=!1){if(!y){var n=Re(e);return n instanceof Comment&&n.data===""?ne(n):n}if(t){if(g?.nodeType!==ft){var r=de();return g?.before(r),W(r),r}_n(g)}return g}function yt(e,t=1,n=!1){let r=y?g:e;for(var i;t--;)i=r,r=ne(r);if(!y)return r;if(n){if(r?.nodeType!==ft){var s=de();return r===null?i?.after(s):r.before(s),W(s),s}_n(r)}return W(r),r}function Fr(e){e.textContent=""}function jr(){return!1}function $t(e,t,n){return document.createElementNS(Dt,e,void 0)}function _n(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===ft;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function kt(e){var t=b,n=_;O(null),F(null);try{return e()}finally{O(t),F(n)}}function Br(e){_===null&&(b===null&&fr(),ar()),he&&lr()}function Hr(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function X(e,t){var n=_;n!==null&&(n.f&K)!==0&&(e|=K);var r={ctx:D,deps:null,nodes:null,f:e|A|P,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&Ee)!==0)Te!==null?Te.push(r):Q.ensure().schedule(r);else if(t!==null){try{Oe(r)}catch(l){throw R(r),l}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&(i.f&ve)===0&&(i=i.first,(e&ie)!==0&&(e&xe)!==0&&i!==null&&(i.f|=xe))}if(i!==null&&(i.parent=n,n!==null&&Hr(i,n),b!==null&&(b.f&x)!==0&&(e&se)===0)){var s=b;(s.effects??=[]).push(i)}return r}function Et(){return b!==null&&!V}function pn(e){const t=X(qe,null);return k(t,E),t.teardown=e,t}function zr(e){Br();var t=_.f,n=!b&&(t&U)!==0&&(t&oe)===0;if(n){var r=D;(r.e??=[]).push(e)}else return mn(e)}function mn(e){return X(Ee|nr,e)}function Yr(e){Q.ensure();const t=X(se|ve,e);return()=>{R(t)}}function Vr(e){Q.ensure();const t=X(se|ve,e);return(n={})=>new Promise(r=>{n.outro?De(t,()=>{R(t),r(void 0)}):(R(t),r(void 0))})}function qr(e){return X(Ee,e)}function Ur(e){return X(lt|ve,e)}function gn(e,t=0){return X(qe|t,e)}function Ze(e,t=[],n=[],r=[]){Rr(r,t,n,i=>{X(qe,()=>e(...i.map(m)))})}function wn(e,t=0){var n=X(ie|t,e);return n}function re(e){return X(U|ve,e)}function yn(e){var t=e.teardown;if(t!==null){const n=he,r=b;Nn(!0),O(null);try{t.call(null)}finally{Nn(n),O(r)}}}function xt(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const i=n.ac;i!==null&&kt(()=>{i.abort(Z)});var r=n.next;(n.f&se)!==0?n.parent=null:R(n,t),n=r}}function Gr(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&U)===0&&R(t),t=n}}function R(e,t=!0){var n=!1;(t||(e.f&tr)!==0)&&e.nodes!==null&&e.nodes.end!==null&&(Kr(e.nodes.start,e.nodes.end),n=!0),k(e,zt),xt(e,t&&!n),je(e,0);var r=e.nodes&&e.nodes.t;if(r!==null)for(const s of r)s.stop();yn(e),e.f^=zt,e.f|=z;var i=e.parent;i!==null&&i.first!==null&&$n(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function Kr(e,t){for(;e!==null;){var n=e===t?null:ne(e);e.remove(),e=n}}function $n(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 De(e,t,n=!0){var r=[];kn(e,r,!0);var i=()=>{n&&R(e),t&&t()},s=r.length;if(s>0){var l=()=>--s||i();for(var o of r)o.out(l)}else i()}function kn(e,t,n){if((e.f&K)===0){e.f^=K;var r=e.nodes&&e.nodes.t;if(r!==null)for(const o of r)(o.is_global||n)&&t.push(o);for(var i=e.first;i!==null;){var s=i.next,l=(i.f&xe)!==0||(i.f&U)!==0&&(e.f&ie)!==0;kn(i,t,l?n:!1),i=s}}}function Wr(e){En(e,!0)}function En(e,t){if((e.f&K)!==0){e.f^=K,(e.f&E)===0&&(k(e,A),Q.ensure().schedule(e));for(var n=e.first;n!==null;){var r=n.next,i=(n.f&xe)!==0||(n.f&U)!==0;En(n,i?t:!1),n=r}var s=e.nodes&&e.nodes.t;if(s!==null)for(const l of s)(l.is_global||t)&&l.in()}}function xn(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var i=n===r?null:ne(n);t.append(n),n=i}}let Qe=!1,he=!1;function Nn(e){he=e}let b=null,V=!1;function O(e){b=e}let _=null;function F(e){_=e}let j=null;function Tn(e){b!==null&&(j===null?j=[e]:j.push(e))}let C=null,I=0,B=null;function Jr(e){B=e}let Sn=1,me=0,ge=me;function An(e){ge=e}function Rn(){return++Sn}function Fe(e){var t=e.f;if((t&A)!==0)return!0;if(t&x&&(e.f&=~be),(t&G)!==0){for(var n=e.deps,r=n.length,i=0;i<r;i++){var s=n[i];if(Fe(s)&&ln(s),s.wv>e.wv)return!0}(t&P)!==0&&Y===null&&k(e,E)}return!1}function On(e,t,n=!0){var r=e.reactions;if(r!==null&&!(j!==null&&$e.call(j,e)))for(var i=0;i<r.length;i++){var s=r[i];(s.f&x)!==0?On(s,t,!1):t===s&&(n?k(s,A):(s.f&E)!==0&&k(s,G),bt(s))}}function Cn(e){var t=C,n=I,r=B,i=b,s=j,l=D,o=V,a=ge,f=e.f;C=null,I=0,B=null,b=(f&(U|se))===0?e:null,j=null,Ne(e.ctx),V=!1,ge=++me,e.ac!==null&&(kt(()=>{e.ac.abort(Z)}),e.ac=null);try{e.f|=ot;var u=e.fn,d=u();e.f|=oe;var c=e.deps,v=$?.is_fork;if(C!==null){var h;if(v||je(e,I),c!==null&&I>0)for(c.length=I+C.length,h=0;h<C.length;h++)c[I+h]=C[h];else e.deps=c=C;if(Et()&&(e.f&P)!==0)for(h=I;h<c.length;h++)(c[h].reactions??=[]).push(e)}else!v&&c!==null&&I<c.length&&(je(e,I),c.length=I);if(Kt()&&B!==null&&!V&&c!==null&&(e.f&(x|G|A))===0)for(h=0;h<B.length;h++)On(B[h],e);if(i!==null&&i!==e){if(me++,i.deps!==null)for(let w=0;w<n;w+=1)i.deps[w].rv=me;if(t!==null)for(const w of t)w.rv=me;B!==null&&(r===null?r=B:r.push(...B))}return(e.f&le)!==0&&(e.f^=le),d}catch(w){return Jt(w)}finally{e.f^=ot,C=t,I=n,B=r,b=i,j=s,Ne(l),V=o,ge=a}}function Xr(e,t){let n=t.reactions;if(n!==null){var r=Kn.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&x)!==0&&(C===null||!$e.call(C,t))){var s=t;(s.f&P)!==0&&(s.f^=P,s.f&=~be),dt(s),Lr(s),je(s,0)}}function je(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)Xr(e,n[r])}function Oe(e){var t=e.f;if((t&z)===0){k(e,E);var n=_,r=Qe;_=e,Qe=!0;try{(t&(ie|Ht))!==0?Gr(e):xt(e),yn(e);var i=Cn(e);e.teardown=typeof i=="function"?i:null,e.wv=Sn;var s;Un&&yr&&(e.f&A)!==0&&e.deps}finally{Qe=r,_=n}}}function m(e){var t=e.f,n=(t&x)!==0;if(b!==null&&!V){var r=_!==null&&(_.f&z)!==0;if(!r&&(j===null||!$e.call(j,e))){var i=b.deps;if((b.f&ot)!==0)e.rv<me&&(e.rv=me,C===null&&i!==null&&i[I]===e?I++:C===null?C=[e]:C.push(e));else{(b.deps??=[]).push(e);var s=e.reactions;s===null?e.reactions=[b]:$e.call(s,b)||s.push(b)}}}if(he&&ce.has(e))return ce.get(e);if(n){var l=e;if(he){var o=l.v;return((l.f&E)===0&&l.reactions!==null||In(l))&&(o=pt(l)),ce.set(l,o),o}var a=(l.f&P)===0&&!V&&b!==null&&(Qe||(b.f&P)!==0),f=(l.f&oe)===0;Fe(l)&&(a&&(l.f|=P),ln(l)),a&&!f&&(an(l),Mn(l))}if(Y?.has(e))return Y.get(e);if((e.f&le)!==0)throw e.v;return e.v}function Mn(e){if(e.f|=P,e.deps!==null)for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&x)!==0&&(t.f&P)===0&&(an(t),Mn(t))}function In(e){if(e.v===S)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(ce.has(t)||(t.f&x)!==0&&In(t))return!0;return!1}function Zr(e){var t=V;try{return V=!0,e()}finally{V=t}}const Be=Symbol("events"),Ln=new Set,Nt=new Set;function Qr(e,t,n,r={}){function i(s){if(r.capture||Tt.call(t,s),!s.cancelBubble)return kt(()=>n?.call(this,s))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?pe(()=>{t.addEventListener(e,i,r)}):t.addEventListener(e,i,r),i}function Pn(e,t,n,r,i){var s={capture:r,passive:i},l=Qr(e,t,n,s);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&pn(()=>{t.removeEventListener(e,l,s)})}function et(e,t,n){(t[Be]??={})[e]=n}function ei(e){for(var t=0;t<e.length;t++)Ln.add(e[t]);for(var n of Nt)n(e)}let Dn=null;function Tt(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],s=i[0]||e.target;Dn=e;var l=0,o=Dn===e&&e[Be];if(o){var a=i.indexOf(o);if(a!==-1&&(t===document||t===window)){e[Be]=t;return}var f=i.indexOf(t);if(f===-1)return;a<=f&&(l=a)}if(s=i[l]||e.target,s!==t){Ve(e,"currentTarget",{configurable:!0,get(){return s||n}});var u=b,d=_;O(null),F(null);try{for(var c,v=[];s!==null;){var h=s.assignedSlot||s.parentNode||s.host||null;try{var w=s[Be]?.[r];w!=null&&(!s.disabled||e.target===s)&&w.call(s,e)}catch(N){c?v.push(N):c=N}if(e.cancelBubble||h===t||h===null)break;s=h}if(c){for(let N of v)queueMicrotask(()=>{throw N});throw c}}finally{e[Be]=t,delete e.currentTarget,O(u),F(d)}}}const ti=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:e=>e});function ni(e){return ti?.createHTML(e)??e}function ri(e){var t=$t("template");return t.innerHTML=ni(e.replaceAll("<!>","<!---->")),t.content}function Ce(e,t){var n=_;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function He(e,t){var n=(t&Vn)!==0,r=(t&qn)!==0,i,s=!e.startsWith("<!>");return()=>{if(y)return Ce(g,null),g;i===void 0&&(i=ri(s?e:"<!>"+e),n||(i=Re(i)));var l=r||dn?document.importNode(i,!0):i.cloneNode(!0);if(n){var o=Re(l),a=l.lastChild;Ce(o,a)}else Ce(l,l);return l}}function ii(){if(y)return Ce(g,null),g;var e=document.createDocumentFragment(),t=document.createComment(""),n=de();return e.append(t,n),Ce(t,n),e}function we(e,t){if(y){var n=_;((n.f&oe)===0||n.nodes.end===null)&&(n.nodes.end=g),ut();return}e!==null&&e.before(t)}const si=["touchstart","touchmove"];function oi(e){return si.includes(e)}function li(e,t){var n=t==null?"":typeof t=="object"?`${t}`:t;n!==(e.__t??=e.nodeValue)&&(e.__t=n,e.nodeValue=`${n}`)}function Fn(e,t){return jn(e,t)}function ai(e,t){gt(),t.intro=t.intro??!1;const n=t.target,r=y,i=g;try{for(var s=Re(n);s&&(s.nodeType!==Ue||s.data!==Mt);)s=ne(s);if(!s)throw ye;ae(!0),W(s);const l=jn(e,{...t,anchor:s});return ae(!1),l}catch(l){if(l instanceof Error&&l.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=`http://www.w3.org/1999/xhtml`,i=Array.isArray,a=Array.prototype.indexOf,o=Array.prototype.includes,s=Array.from,c=Object.keys,l=Object.defineProperty,u=Object.getOwnPropertyDescriptor,d=Object.getOwnPropertyDescriptors,f=Object.prototype,p=Array.prototype,m=Object.getPrototypeOf,h=Object.isExtensible,g=()=>{};function _(e){for(var t=0;t<e.length;t++)e[t]()}function v(){var e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}var y=1024,b=2048,x=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<<22,ue=1<<23,de=Symbol(`$state`),fe=Symbol(`legacy props`),pe=Symbol(``),S=new class extends Error{name=`StaleReactionError`;message="The reaction that called `getAbortSignal()` was re-run or destroyed"},me=!!globalThis.document?.contentType&&globalThis.document.contentType.includes(`xml`);function he(){throw Error(`https://svelte.dev/e/async_derived_orphan`)}function ge(e){throw Error(`https://svelte.dev/e/effect_in_teardown`)}function _e(){throw Error(`https://svelte.dev/e/effect_in_unowned_derived`)}function ve(e){throw Error(`https://svelte.dev/e/effect_orphan`)}function ye(){throw Error(`https://svelte.dev/e/effect_update_depth_exceeded`)}function be(){throw Error(`https://svelte.dev/e/hydration_failed`)}function xe(e){throw Error(`https://svelte.dev/e/props_invalid_value`)}function Se(){throw Error(`https://svelte.dev/e/state_descriptors_fixed`)}function Ce(){throw Error(`https://svelte.dev/e/state_prototype_fixed`)}function we(){throw Error(`https://svelte.dev/e/state_unsafe_mutation`)}function Te(){throw Error(`https://svelte.dev/e/svelte_boundary_reset_onerror`)}function Ee(e){console.warn(`https://svelte.dev/e/hydration_mismatch`)}function De(){console.warn(`https://svelte.dev/e/svelte_boundary_reset_noop`)}var C=!1;function w(e){C=e}var T;function E(e){if(e===null)throw Ee(),t;return T=e}function Oe(){return E(z(T))}function ke(e){if(C){if(z(T)!==null)throw Ee(),t;T=e}}function Ae(e=1){if(C){for(var t=e,n=T;t--;)n=z(n);T=n}}function je(e=!0){for(var t=0,n=T;;){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=z(n);e&&n.remove(),n=i}}function Me(e){if(!e||e.nodeType!==8)throw Ee(),t;return e.data}function Ne(e){return e===this.v}function Pe(e,t){return e==e?e!==t||typeof e==`object`&&!!e||typeof e==`function`:t==t}function Fe(e){return!Pe(e,this.v)}var D=!1,Ie=!1,O=null;function Le(e){O=e}function Re(e,t=!1,n){O={p:O,i:!1,c:null,e:null,s:e,x:null,r:q,l:Ie&&!t?{s:null,u:null,$:[]}:null}}function ze(e){var t=O,n=t.e;if(n!==null){t.e=null;for(var r of n)cn(r)}return e!==void 0&&(t.x=e),t.i=!0,O=t.p,e??{}}function Be(){return!Ie||O!==null&&O.l===null}var Ve=[];function He(){var e=Ve;Ve=[],_(e)}function Ue(e){if(Ve.length===0&&!et){var t=Ve;queueMicrotask(()=>{t===Ve&&He()})}Ve.push(e)}function We(){for(;Ve.length>0;)He()}function Ge(e){var t=q;if(t===null)return W.f|=ue,e;if(!(t.f&32768)&&!(t.f&4))throw e;k(e,t)}function k(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 Ke=~(b|x|y);function A(e,t){e.f=e.f&Ke|t}function qe(e){e.f&512||e.deps===null?A(e,y):A(e,x)}function Je(e){if(e!==null)for(let t of e)!(t.f&2)||!(t.f&65536)||(t.f^=se,Je(t.deps))}function Ye(e,t,n){e.f&2048?t.add(e):e.f&4096&&n.add(e),Je(e.deps),A(e,y)}var Xe=!1,Ze=!1;function Qe(e){var t=Ze;try{return Ze=!1,[e(),Ze]}finally{Ze=t}}var j=new Set,M=null,N=null,$e=null,et=!1,tt=!1,nt=null,rt=null,it=0,at=1,ot=class e{id=at++;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)A(n,b),this.schedule(n);for(n of t.m)A(n,x),this.schedule(n)}}#p(){if(it++>1e3&&(j.delete(this),ct()),!this.#d()){for(let e of this.#o)this.#s.delete(e),A(e,b),this.schedule(e);for(let e of this.#s)A(e,x),this.schedule(e)}let t=this.#a;this.#a=[],this.apply();var n=nt=[],r=[],i=rt=[];for(let e of t)try{this.#m(e,n,r)}catch(t){throw mt(e),t}if(M=null,i.length>0){var a=e.ensure();for(let e of i)a.schedule(e)}if(nt=null,rt=null,this.#d()||this.#f()){this.#h(r),this.#h(n);for(let[e,t]of this.#c)pt(e,t)}else{this.#n.size===0&&j.delete(this),this.#o.clear(),this.#s.clear();for(let e of this.#e)e(this);this.#e.clear(),lt(r),lt(n),this.#i?.resolve()}var o=M;if(this.#a.length>0){let e=o??=this;e.#a.push(...this.#a.filter(t=>!e.#a.includes(t)))}o!==null&&(j.add(o),o.#p()),j.has(this)||this.#g()}#m(e,t,n){e.f^=y;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^=y:i&4?t.push(r):D&&i&16777224?n.push(r):In(r)&&(i&16&&this.#s.add(r),Vn(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)Ye(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]),N?.set(e,e.v))}activate(){M=this}deactivate(){M=null,N=null}flush(){try{tt=!0,M=this,this.#p()}finally{it=0,$e=null,nt=null,rt=null,tt=!1,M=null,N=null,F.clear()}}discard(){for(let e of this.#t)e(this);this.#t.clear(),j.delete(this)}#g(){for(let c of j){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)ut(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 j)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,Ue(()=>{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??=v()).promise}static ensure(){if(M===null){let t=M=new e;tt||(j.add(M),et||Ue(()=>{M===t&&t.flush()}))}return M}apply(){if(!D||!this.is_fork&&j.size===1){N=null;return}N=new Map;for(let[e,[t]]of this.current)N.set(e,t);for(let n of j)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)N.has(e)||N.set(e,t)}}schedule(e){if($e=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(nt!==null&&t===q&&(D||(W===null||!(W.f&2))&&!Xe))return;if(n&96){if(!(n&1024))return;t.f^=y}}this.#a.push(t)}};function st(e){var t=et;et=!0;try{var n;for(e&&(M!==null&&!M.is_fork&&M.flush(),n=e());;){if(We(),M===null)return n;M.flush()}}finally{et=t}}function ct(){try{ye()}catch(e){k(e,$e)}}var P=null;function lt(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if(!(r.f&24576)&&In(r)&&(P=new Set,Vn(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&bn(r),P?.size>0)){F.clear();for(let e of P){if(e.f&24576)continue;let t=[e],n=e.parent;for(;n!==null;)P.has(n)&&(P.delete(n),t.push(n)),n=n.parent;for(let e=t.length-1;e>=0;e--){let n=t[e];n.f&24576||Vn(n)}}P.clear()}}P=null}}function ut(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?ut(i,t,n,r):e&4194320&&!(e&2048)&&dt(i,t,r)&&(A(i,b),ft(i))}}function dt(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(o.call(t,r))return!0;if(r.f&2&&dt(r,t,n))return n.set(r,!0),!0}return n.set(e,!1),!1}function ft(e){M.schedule(e)}function pt(e,t){if(!(e.f&32&&e.f&1024)){e.f&2048?t.d.push(e):e.f&4096&&t.m.push(e),A(e,y);for(var n=e.first;n!==null;)pt(n,t),n=n.next}}function mt(e){A(e,y);for(var t=e.first;t!==null;)mt(t),t=t.next}function ht(e){let t=0,n=Ft(0),r;return()=>{an()&&($(n),pn(()=>(t===0&&(r=Wn(()=>e(()=>zt(n)))),t+=1,()=>{Ue(()=>{--t,t===0&&(r?.(),r=void 0,zt(n))})})))}}var gt=ie|ae;function _t(e,t,n,r){new vt(e,t,n,r)}var vt=class{parent;is_pending=!1;transform_error;#e;#t=C?T: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=ht(()=>(this.#m=Ft(this.#l),()=>{this.#m=null}));constructor(e,t,n,r){this.#e=e,this.#n=t,this.#r=e=>{var t=q;t.b=this,t.f|=128,n(e)},this.parent=q.b,this.transform_error=r??this.parent?.transform_error??(e=>e),this.#i=hn(()=>{if(C){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()},gt),C&&(this.#e=T)}#g(){try{this.#a=V(()=>this.#r(this.#e))}catch(e){this.error(e)}}#_(e){let t=this.#n.failed;t&&(this.#s=V(()=>{t(this.#e,()=>e,()=>()=>{})}))}#v(){let e=this.#n.pending;e&&(this.is_pending=!0,this.#o=V(()=>e(this.#e)),Ue(()=>{var e=this.#c=document.createDocumentFragment(),t=R();e.append(t),this.#a=this.#x(()=>V(()=>this.#r(t))),this.#u===0&&(this.#e.before(e),this.#c=null,xn(this.#o,()=>{this.#o=null}),this.#b(M))}))}#y(){try{if(this.is_pending=this.has_pending_snippet(),this.#u=0,this.#l=0,this.#a=V(()=>{this.#r(this.#e)}),this.#u>0){var e=this.#c=document.createDocumentFragment();Tn(this.#a,e);let t=this.#n.pending;this.#o=V(()=>t(this.#e))}else this.#b(M)}catch(e){this.error(e)}}#b(e){this.is_pending=!1,e.transfer_effects(this.#f,this.#p)}defer_effect(e){Ye(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=q,n=W,r=O;J(this.#i),K(this.#i),Le(this.#i.ctx);try{return ot.ensure(),e()}catch(e){return Ge(e),null}finally{J(t),K(n),Le(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&&xn(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,Ue(()=>{this.#d=!1,this.#m&&Lt(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&&=(H(this.#a),null),this.#o&&=(H(this.#o),null),this.#s&&=(H(this.#s),null),C&&(E(this.#t),Ae(),E(je()));var r=!1,i=!1;let a=()=>{if(r){De();return}r=!0,i&&Te(),this.#s!==null&&xn(this.#s,()=>{this.#s=null}),this.#x(()=>{this.#y()})},o=e=>{try{i=!0,t?.(e,a),i=!1}catch(e){k(e,this.#i&&this.#i.parent)}n&&(this.#s=this.#x(()=>{try{return V(()=>{var t=q;t.b=this,t.f|=128,n(this.#e,()=>e,()=>a)})}catch(e){return k(e,this.#i.parent),null}}))};Ue(()=>{var t;try{t=this.transform_error(e)}catch(e){k(e,this.#i&&this.#i.parent);return}typeof t==`object`&&t&&typeof t.then==`function`?t.then(o,e=>k(e,this.#i&&this.#i.parent)):o(t)})}};function yt(e,t,n,r){let i=Be()?Ct:Et;var a=e.filter(e=>!e.settled);if(n.length===0&&a.length===0){r(t.map(i));return}var o=q,s=bt(),c=a.length===1?a[0].promise:a.length>1?Promise.all(a.map(e=>e.promise)):null;function l(e){s();try{r(e)}catch(e){o.f&16384||k(e,o)}xt()}if(n.length===0){c.then(()=>l(t.map(i)));return}var u=St();function d(){Promise.all(n.map(e=>wt(e))).then(e=>l([...t.map(i),...e])).catch(e=>k(e,o)).finally(()=>u())}c?c.then(()=>{s(),d(),xt()}):d()}function bt(){var e=q,t=W,n=O,r=M;return function(i=!0){J(e),K(t),Le(n),i&&!(e.f&16384)&&(r?.activate(),r?.apply())}}function xt(e=!0){J(null),K(null),Le(null),e&&M?.deactivate()}function St(){var e=q,t=e.b,n=M,r=t.is_rendered();return t.update_pending_count(1,n),n.increment(r,e),(i=!1)=>{t.update_pending_count(-1,n),n.decrement(r,e,i)}}function Ct(e){var t=2|b,r=W!==null&&W.f&2?W:null;return q!==null&&(q.f|=ae),{ctx:O,deps:null,effects:null,equals:Ne,f:t,fn:e,reactions:null,rv:0,v:n,wv:0,parent:r??q,ac:null}}function wt(e,t,r){let i=q;i===null&&he();var a=void 0,o=Ft(n),s=!W,c=new Map;return fn(()=>{var t=q,n=v();a=n.promise;try{Promise.resolve(e()).then(n.resolve,n.reject).finally(xt)}catch(e){n.reject(e),xt()}var r=M;if(s){if(t.f&32768)var l=St();if(i.b.is_rendered())c.get(r)?.reject(S),c.delete(r);else{for(let e of c.values())e.reject(S);c.clear()}c.set(r,n)}let u=(e,n=void 0)=>{if(l&&l(n===S),!(n===S||t.f&16384)){if(r.activate(),n)o.f|=ue,Lt(o,n);else{o.f&8388608&&(o.f^=ue),Lt(o,e);for(let[e,t]of c){if(c.delete(e),e===r)break;t.reject(S)}}r.deactivate()}};n.promise.then(u,e=>u(null,e||`unknown`))}),on(()=>{for(let e of c.values())e.reject(S)}),new Promise(e=>{function t(n){function r(){n===a?e(o):t(a)}n.then(r,r)}t(a)})}function Tt(e){let t=Ct(e);return D||kn(t),t}function Et(e){let t=Ct(e);return t.equals=Fe,t}function Dt(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)H(t[n])}}function Ot(e){for(var t=e.parent;t!==null;){if(!(t.f&2))return t.f&16384?null:t;t=t.parent}return null}function kt(e){var t,n=q;J(Ot(e));try{e.f&=~se,Dt(e),t=Rn(e)}finally{J(n)}return t}function At(e){var t=e.v,n=kt(e);if(!e.equals(n)&&(e.wv=Fn(),(!M?.is_fork||e.deps===null)&&(e.v=n,M?.capture(e,t,!0),e.deps===null))){A(e,y);return}U||(N===null?qe(e):(an()||M?.is_fork)&&N.set(e,n))}function jt(e){if(e.effects!==null)for(let t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(S),t.teardown=g,t.ac=null,Bn(t,0),_n(t))}function Mt(e){if(e.effects!==null)for(let t of e.effects)t.teardown&&Vn(t)}var Nt=new Set,F=new Map,Pt=!1;function Ft(e,t){return{f:0,v:e,reactions:null,equals:Ne,rv:0,wv:0}}function I(e,t){let n=Ft(e,t);return kn(n),n}function It(e,t=!1,n=!0){let r=Ft(e);return t||(r.equals=Fe),Ie&&n&&O!==null&&O.l!==null&&(O.l.s??=[]).push(r),r}function L(e,t,n=!1){return W!==null&&(!G||W.f&131072)&&Be()&&W.f&4325394&&(Y===null||!o.call(Y,e))&&we(),Lt(e,n?Vt(t):t,rt)}function Lt(e,t,n=null){if(!e.equals(t)){var r=e.v;U?F.set(e,t):F.set(e,r),e.v=t;var i=ot.ensure();if(i.capture(e,r),e.f&2){let t=e;e.f&2048&&kt(t),N===null&&qe(t)}e.wv=Fn(),Bt(e,b,n),Be()&&q!==null&&q.f&1024&&!(q.f&96)&&(Q===null?An([e]):Q.push(e)),!i.is_fork&&Nt.size>0&&!Pt&&Rt()}return t}function Rt(){Pt=!1;for(let e of Nt)e.f&1024&&A(e,x),In(e)&&Vn(e);Nt.clear()}function zt(e){L(e,e.v+1)}function Bt(e,t,n){var r=e.reactions;if(r!==null)for(var i=Be(),a=r.length,o=0;o<a;o++){var s=r[o],c=s.f;if(!(!i&&s===q)){var l=(c&b)===0;if(l&&A(s,t),c&2){var u=s;N?.delete(u),c&65536||(c&512&&(s.f|=se),Bt(u,x,n))}else if(l){var d=s;c&16&&P!==null&&P.add(d),n===null?ft(d):n.push(d)}}}}function Vt(e){if(typeof e!=`object`||!e||de in e)return e;let t=m(e);if(t!==f&&t!==p)return e;var r=new Map,a=i(e),o=I(0),s=null,c=Nn,l=e=>{if(Nn===c)return e();var t=W,n=Nn;K(null),Pn(c);var r=e();return K(t),Pn(n),r};return a&&r.set(`length`,I(e.length,s)),new Proxy(e,{defineProperty(e,t,n){(!(`value`in n)||n.configurable===!1||n.enumerable===!1||n.writable===!1)&&Se();var i=r.get(t);return i===void 0?l(()=>{var e=I(n.value,s);return r.set(t,e),e}):L(i,n.value,!0),!0},deleteProperty(e,t){var i=r.get(t);if(i===void 0){if(t in e){let e=l(()=>I(n,s));r.set(t,e),zt(o)}}else L(i,n),zt(o);return!0},get(t,i,a){if(i===de)return e;var o=r.get(i),c=i in t;if(o===void 0&&(!c||u(t,i)?.writable)&&(o=l(()=>I(Vt(c?t[i]:n),s)),r.set(i,o)),o!==void 0){var d=$(o);return d===n?void 0:d}return Reflect.get(t,i,a)},getOwnPropertyDescriptor(e,t){var i=Reflect.getOwnPropertyDescriptor(e,t);if(i&&`value`in i){var a=r.get(t);a&&(i.value=$(a))}else if(i===void 0){var o=r.get(t),s=o?.v;if(o!==void 0&&s!==n)return{enumerable:!0,configurable:!0,value:s,writable:!0}}return i},has(e,t){if(t===de)return!0;var i=r.get(t),a=i!==void 0&&i.v!==n||Reflect.has(e,t);return(i!==void 0||q!==null&&(!a||u(e,t)?.writable))&&(i===void 0&&(i=l(()=>I(a?Vt(e[t]):n,s)),r.set(t,i)),$(i)===n)?!1:a},set(e,t,i,c){var d=r.get(t),f=t in e;if(a&&t===`length`)for(var p=i;p<d.v;p+=1){var m=r.get(p+``);m===void 0?p in e&&(m=l(()=>I(n,s)),r.set(p+``,m)):L(m,n)}if(d===void 0)(!f||u(e,t)?.writable)&&(d=l(()=>I(void 0,s)),L(d,Vt(i)),r.set(t,d));else{f=d.v!==n;var h=l(()=>Vt(i));L(d,h)}var g=Reflect.getOwnPropertyDescriptor(e,t);if(g?.set&&g.set.call(c,i),!f){if(a&&typeof t==`string`){var _=r.get(`length`),v=Number(t);Number.isInteger(v)&&v>=_.v&&L(_,v+1)}zt(o)}return!0},ownKeys(e){$(o);var t=Reflect.ownKeys(e).filter(e=>{var t=r.get(e);return t===void 0||t.v!==n});for(var[i,a]of r)a.v!==n&&!(i in e)&&t.push(i);return t},setPrototypeOf(){Ce()}})}var Ht,Ut,Wt,Gt;function Kt(){if(Ht===void 0){Ht=window,Ut=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;Wt=u(t,`firstChild`).get,Gt=u(t,`nextSibling`).get,h(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),h(n)&&(n.__t=void 0)}}function R(e=``){return document.createTextNode(e)}function qt(e){return Wt.call(e)}function z(e){return Gt.call(e)}function Jt(e,t){if(!C)return qt(e);var n=qt(T);if(n===null)n=T.appendChild(R());else if(t&&n.nodeType!==3){var r=R();return n?.before(r),E(r),r}return t&&en(n),E(n),n}function Yt(e,t=!1){if(!C){var n=qt(e);return n instanceof Comment&&n.data===``?z(n):n}if(t){if(T?.nodeType!==3){var r=R();return T?.before(r),E(r),r}en(T)}return T}function Xt(e,t=1,n=!1){let r=C?T:e;for(var i;t--;)i=r,r=z(r);if(!C)return r;if(n){if(r?.nodeType!==3){var a=R();return r===null?i?.after(a):r.before(a),E(a),a}en(r)}return E(r),r}function Zt(e){e.textContent=``}function Qt(){return!D||P!==null?!1:(q.f&ne)!==0}function $t(e,t,n){let r=n?{is:n}:void 0;return document.createElementNS(t??`http://www.w3.org/1999/xhtml`,e,r)}function en(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===3;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function tn(e){var t=W,n=q;K(null),J(null);try{return e()}finally{K(t),J(n)}}function nn(e){q===null&&(W===null&&ve(e),_e()),U&&ge(e)}function rn(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function B(e,t){var n=q;n!==null&&n.f&8192&&(e|=ee);var r={ctx:O,deps:null,nodes:null,f:e|b|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)nt===null?ot.ensure().schedule(r):nt.push(r);else if(t!==null){try{Vn(r)}catch(e){throw H(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&&rn(i,n),W!==null&&W.f&2&&!(e&64))){var a=W;(a.effects??=[]).push(i)}return r}function an(){return W!==null&&!G}function on(e){let t=B(8,null);return A(t,y),t.teardown=e,t}function sn(e){nn(`$effect`);var t=q.f;if(!W&&t&32&&!(t&32768)){var n=O;(n.e??=[]).push(e)}else return cn(e)}function cn(e){return B(4|oe,e)}function ln(e){ot.ensure();let t=B(64|ae,e);return()=>{H(t)}}function un(e){ot.ensure();let t=B(64|ae,e);return(e={})=>new Promise(n=>{e.outro?xn(t,()=>{H(t),n(void 0)}):(H(t),n(void 0))})}function dn(e){return B(4,e)}function fn(e){return B(le|ae,e)}function pn(e,t=0){return B(8|t,e)}function mn(e,t=[],n=[],r=[]){yt(r,t,n,t=>{B(8,()=>e(...t.map($)))})}function hn(e,t=0){return B(16|t,e)}function V(e){return B(32|ae,e)}function gn(e){var t=e.teardown;if(t!==null){let e=U,n=W;On(!0),K(null);try{t.call(null)}finally{On(e),K(n)}}}function _n(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){let e=n.ac;e!==null&&tn(()=>{e.abort(S)});var r=n.next;n.f&64?n.parent=null:H(n,t),n=r}}function vn(e){for(var t=e.first;t!==null;){var n=t.next;t.f&32||H(t),t=n}}function H(e,t=!0){var n=!1;(t||e.f&262144)&&e.nodes!==null&&e.nodes.end!==null&&(yn(e.nodes.start,e.nodes.end),n=!0),A(e,re),_n(e,t&&!n),Bn(e,0);var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)e.stop();gn(e),e.f^=re,e.f|=te;var i=e.parent;i!==null&&i.first!==null&&bn(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function yn(e,t){for(;e!==null;){var n=e===t?null:z(e);e.remove(),e=n}}function bn(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function xn(e,t,n=!0){var r=[];Sn(e,r,!0);var i=()=>{n&&H(e),t&&t()},a=r.length;if(a>0){var o=()=>--a||i();for(var s of r)s.out(o)}else i()}function Sn(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;Sn(i,t,o?n:!1),i=a}}}function Cn(e){wn(e,!0)}function wn(e,t){if(e.f&8192){e.f^=ee,e.f&1024||(A(e,b),ot.ensure().schedule(e));for(var n=e.first;n!==null;){var r=n.next,i=(n.f&65536)!=0||(n.f&32)!=0;wn(n,i?t:!1),n=r}var a=e.nodes&&e.nodes.t;if(a!==null)for(let e of a)(e.is_global||t)&&e.in()}}function Tn(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var i=n===r?null:z(n);t.append(n),n=i}}var En=null,Dn=!1,U=!1;function On(e){U=e}var W=null,G=!1;function K(e){W=e}var q=null;function J(e){q=e}var Y=null;function kn(e){W!==null&&(!D||W.f&2)&&(Y===null?Y=[e]:Y.push(e))}var X=null,Z=0,Q=null;function An(e){Q=e}var jn=1,Mn=0,Nn=Mn;function Pn(e){Nn=e}function Fn(){return++jn}function In(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(In(a)&&At(a),a.wv>e.wv)return!0}t&512&&N===null&&A(e,y)}return!1}function Ln(e,t,n=!0){var r=e.reactions;if(r!==null&&!(!D&&Y!==null&&o.call(Y,e)))for(var i=0;i<r.length;i++){var a=r[i];a.f&2?Ln(a,t,!1):t===a&&(n?A(a,b):a.f&1024&&A(a,x),ft(a))}}function Rn(e){var t=X,n=Z,r=Q,i=W,a=Y,o=O,s=G,c=Nn,l=e.f;X=null,Z=0,Q=null,W=l&96?null:e,Y=null,Le(e.ctx),G=!1,Nn=++Mn,e.ac!==null&&(tn(()=>{e.ac.abort(S)}),e.ac=null);try{e.f|=ce;var u=e.fn,d=u();e.f|=ne;var f=e.deps,p=M?.is_fork;if(X!==null){var m;if(p||Bn(e,Z),f!==null&&Z>0)for(f.length=Z+X.length,m=0;m<X.length;m++)f[Z+m]=X[m];else e.deps=f=X;if(an()&&e.f&512)for(m=Z;m<f.length;m++)(f[m].reactions??=[]).push(e)}else !p&&f!==null&&Z<f.length&&(Bn(e,Z),f.length=Z);if(Be()&&Q!==null&&!G&&f!==null&&!(e.f&6146))for(m=0;m<Q.length;m++)Ln(Q[m],e);if(i!==null&&i!==e){if(Mn++,i.deps!==null)for(let e=0;e<n;e+=1)i.deps[e].rv=Mn;if(t!==null)for(let e of t)e.rv=Mn;Q!==null&&(r===null?r=Q:r.push(...Q))}return e.f&8388608&&(e.f^=ue),d}catch(e){return Ge(e)}finally{e.f^=ce,X=t,Z=n,Q=r,W=i,Y=a,Le(o),G=s,Nn=c}}function zn(e,t){let n=t.reactions;if(n!==null){var r=a.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&2&&(X===null||!o.call(X,t))){var s=t;s.f&512&&(s.f^=512,s.f&=~se),qe(s),jt(s),Bn(s,0)}}function Bn(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)zn(e,n[r])}function Vn(e){var t=e.f;if(!(t&16384)){A(e,y);var n=q,r=Dn;q=e,Dn=!0;try{t&16777232?vn(e):_n(e),gn(e);var i=Rn(e);e.teardown=typeof i==`function`?i:null,e.wv=jn}finally{Dn=r,q=n}}}function $(e){var t=(e.f&2)!=0;if(En?.add(e),W!==null&&!G&&!(q!==null&&q.f&16384)&&(Y===null||!o.call(Y,e))){var n=W.deps;if(W.f&2097152)e.rv<Mn&&(e.rv=Mn,X===null&&n!==null&&n[Z]===e?Z++:X===null?X=[e]:X.push(e));else{(W.deps??=[]).push(e);var r=e.reactions;r===null?e.reactions=[W]:o.call(r,W)||r.push(W)}}if(U&&F.has(e))return F.get(e);if(t){var i=e;if(U){var a=i.v;return(!(i.f&1024)&&i.reactions!==null||Un(i))&&(a=kt(i)),F.set(i,a),a}var s=(i.f&512)==0&&!G&&W!==null&&(Dn||(W.f&512)!=0),c=(i.f&ne)===0;In(i)&&(s&&(i.f|=512),At(i)),s&&!c&&(Mt(i),Hn(i))}if(N?.has(e))return N.get(e);if(e.f&8388608)throw e.v;return e.v}function Hn(e){if(e.f|=512,e.deps!==null)for(let t of e.deps)(t.reactions??=[]).push(e),t.f&2&&!(t.f&512)&&(Mt(t),Hn(t))}function Un(e){if(e.v===n)return!0;if(e.deps===null)return!1;for(let t of e.deps)if(F.has(t)||t.f&2&&Un(t))return!0;return!1}function Wn(e){var t=G;try{return G=!0,e()}finally{G=t}}var Gn=Symbol(`events`),Kn=new Set,qn=new Set;function Jn(e,t,n,r={}){function i(e){if(r.capture||$n.call(t,e),!e.cancelBubble)return tn(()=>n?.call(this,e))}return e.startsWith(`pointer`)||e.startsWith(`touch`)||e===`wheel`?Ue(()=>{t.addEventListener(e,i,r)}):t.addEventListener(e,i,r),i}function Yn(e,t,n,r,i){var a={capture:r,passive:i},o=Jn(e,t,n,a);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&on(()=>{t.removeEventListener(e,o,a)})}function Xn(e,t,n){(t[Gn]??={})[e]=n}function Zn(e){for(var t=0;t<e.length;t++)Kn.add(e[t]);for(var n of qn)n(e)}var Qn=null;function $n(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],a=i[0]||e.target;Qn=e;var o=0,s=Qn===e&&e[Gn];if(s){var c=i.indexOf(s);if(c!==-1&&(t===document||t===window)){e[Gn]=t;return}var u=i.indexOf(t);if(u===-1)return;c<=u&&(o=c)}if(a=i[o]||e.target,a!==t){l(e,`currentTarget`,{configurable:!0,get(){return a||n}});var d=W,f=q;K(null),J(null);try{for(var p,m=[];a!==null;){var h=a.assignedSlot||a.parentNode||a.host||null;try{var g=a[Gn]?.[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[Gn]=t,delete e.currentTarget,K(d),J(f)}}}var er=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy(`svelte-trusted-html`,{createHTML:e=>e});function tr(e){return er?.createHTML(e)??e}function nr(e){var t=$t(`template`);return t.innerHTML=tr(e.replaceAll(`<!>`,`<!---->`)),t.content}function rr(e,t){var n=q;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function ir(e,t){var n=(t&1)!=0,r=(t&2)!=0,i,a=!e.startsWith(`<!>`);return()=>{if(C)return rr(T,null),T;i===void 0&&(i=nr(a?e:`<!>`+e),n||(i=qt(i)));var t=r||Ut?document.importNode(i,!0):i.cloneNode(!0);if(n){var o=qt(t),s=t.lastChild;rr(o,s)}else rr(t,t);return t}}function ar(){if(C)return rr(T,null),T;var e=document.createDocumentFragment(),t=document.createComment(``),n=R();return e.append(t,n),rr(t,n),e}function or(e,t){if(C){var n=q;(!(n.f&32768)||n.nodes.end===null)&&(n.nodes.end=T),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 sr=[`touchstart`,`touchmove`];function cr(e){return sr.includes(e)}function lr(e,t){var n=t==null?``:typeof t==`object`?`${t}`:t;n!==(e.__t??=e.nodeValue)&&(e.__t=n,e.nodeValue=`${n}`)}function ur(e,t){return pr(e,t)}function dr(e,n){Kt(),n.intro=n.intro??!1;let r=n.target,i=C,a=T;try{for(var o=qt(r);o&&(o.nodeType!==8||o.data!==`[`);)o=z(o);if(!o)throw t;w(!0),E(o);let i=pr(e,{...n,anchor:o});return w(!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&&be(),Kt(),Zt(r),w(!1),ur(e,n)}finally{w(i),E(a)}}var fr=new Map;function pr(e,{target:n,anchor:r,props:i={},events:a,context:o,intro:c=!0,transformError:l}){Kt();var u=void 0,d=un(()=>{var c=r??n.appendChild(R());_t(c,{pending:()=>{}},n=>{Re({});var r=O;if(o&&(r.c=o),a&&(i.$$events=a),C&&rr(n,null),u=e(n,i)||{},C&&(q.nodes.end=T,T===null||T.nodeType!==8||T.data!==`]`))throw Ee(),t;ze()},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=cr(r);for(let e of[n,document]){var a=fr.get(e);a===void 0&&(a=new Map,fr.set(e,a));var o=a.get(r);o===void 0?(e.addEventListener(r,$n,{passive:i}),a.set(r,1)):a.set(r,o+1)}}}};return f(s(Kn)),qn.add(f),()=>{for(var e of d)for(let r of[n,document]){var t=fr.get(r),i=t.get(e);--i==0?(r.removeEventListener(e,$n),t.delete(e),t.size===0&&fr.delete(r)):t.set(e,i)}qn.delete(f),c!==r&&c.parentNode?.removeChild(c)}});return mr.set(u,d),u}var mr=new WeakMap;function hr(e,t){let n=mr.get(e);return n?(mr.delete(e),n(t)):Promise.resolve()}var gr=class{anchor;#e=new Map;#t=new Map;#n=new Map;#r=new Set;#i=!0;constructor(e,t=!0){this.anchor=e,this.#i=t}#a=e=>{if(this.#e.has(e)){var t=this.#e.get(e),n=this.#t.get(t);if(n)Cn(n),this.#r.delete(t);else{var r=this.#n.get(t);r&&(this.#t.set(t,r.effect),this.#n.delete(t),r.fragment.lastChild.remove(),this.anchor.before(r.fragment),n=r.effect)}for(let[t,n]of this.#e){if(this.#e.delete(t),t===e)break;let r=this.#n.get(n);r&&(H(r.effect),this.#n.delete(n))}for(let[e,r]of this.#t){if(e===t||this.#r.has(e))continue;let i=()=>{if(Array.from(this.#e.values()).includes(e)){var t=document.createDocumentFragment();Tn(r,t),t.append(R()),this.#n.set(e,{effect:r,fragment:t})}else H(r);this.#r.delete(e),this.#t.delete(e)};this.#i||!n?(this.#r.add(e),xn(r,i,!1)):i()}}};#o=e=>{this.#e.delete(e);let t=Array.from(this.#e.values());for(let[e,n]of this.#n)t.includes(e)||(H(n.effect),this.#n.delete(e))};ensure(e,t){var n=M,r=Qt();if(t&&!this.#t.has(e)&&!this.#n.has(e))if(r){var i=document.createDocumentFragment(),a=R();i.append(a),this.#n.set(e,{effect:V(()=>t(a)),fragment:i})}else this.#t.set(e,V(()=>t(this.anchor)));if(this.#e.set(n,e),r){for(let[t,r]of this.#t)t===e?n.unskip_effect(r):n.skip_effect(r);for(let[t,r]of this.#n)t===e?n.unskip_effect(r.effect):n.skip_effect(r.effect);n.oncommit(this.#a),n.ondiscard(this.#o)}else C&&(this.anchor=T),this.#a(n)}};function _r(e,t,n=!1){var r;C&&(r=T,Oe());var i=new gr(e),a=n?ie:0;function o(e,t){if(C){var n=Me(r);if(e!==parseInt(n.substring(1))){var a=je();E(a),i.anchor=a,w(!1),i.ensure(e,t),w(!0);return}}i.ensure(e,t)}hn(()=>{var e=!1;t((t,n=0)=>{e=!0,o(n,t)}),e||o(-1,null)},a)}function vr(e,t){dn(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector(`#`+t.hash)){let e=$t(`style`);e.id=t.hash,e.textContent=t.code,r.appendChild(e)}})}var yr=[...`
|
|
3
|
+
\r\f\xA0\v`];function br(e,t,n){var r=e==null?``:``+e;if(t&&(r=r?r+` `+t:t),n){for(var i of Object.keys(n))if(n[i])r=r?r+` `+i:i;else if(r.length)for(var a=i.length,o=0;(o=r.indexOf(i,o))>=0;){var s=o+a;(o===0||yr.includes(r[o-1]))&&(s===r.length||yr.includes(r[s]))?r=(o===0?``:r.substring(0,o))+r.substring(s+1):o=s}}return r===``?null:r}function xr(e,t,n,r,i,a){var o=e.__className;if(C||o!==n||o===void 0){var s=br(n,r,a);(!C||s!==e.getAttribute(`class`))&&(s==null?e.removeAttribute(`class`):t?e.className=s:e.setAttribute(`class`,s)),e.__className=n}else if(a&&i!==a)for(var c in a){var l=!!a[c];(i==null||l!==!!i[c])&&e.classList.toggle(c,l)}return a}var Sr=Symbol(`is custom element`),Cr=Symbol(`is html`),wr=me?`link`:`LINK`;function Tr(e,t,n,r){var i=Dr(e);C&&(i[t]=e.getAttribute(t),t===`src`||t===`srcset`||t===`href`&&e.nodeName===wr)||i[t]!==(i[t]=n)&&(t===`loading`&&(e[pe]=n),n==null?e.removeAttribute(t):typeof n!=`string`&&kr(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function Er(e,t,n){var r=W,i=q;let a=C;C&&w(!1),K(null),J(null);try{t!==`style`&&(Or.has(e.getAttribute(`is`)||e.nodeName)||!customElements||customElements.get(e.getAttribute(`is`)||e.nodeName.toLowerCase())?kr(e).includes(t):n&&typeof n==`object`)?e[t]=n:Tr(e,t,n==null?n:String(n))}finally{K(r),J(i),a&&w(!0)}}function Dr(e){return e.__attributes??={[Sr]:e.nodeName.includes(`-`),[Cr]:e.namespaceURI===r}}var Or=new Map;function kr(e){var t=e.getAttribute(`is`)||e.nodeName,n=Or.get(t);if(n)return n;Or.set(t,n=[]);for(var r,i=e,a=Element.prototype;a!==i;){for(var o in r=d(i),r)r[o].set&&n.push(o);i=m(i)}return n}function Ar(e,t,n,r){var i=!Ie||(n&2)!=0,a=(n&8)!=0,o=(n&16)!=0,s=r,c=!0,l=()=>(c&&(c=!1,s=o?Wn(r):r),s);let d;if(a){var f=de in e||fe in e;d=u(e,t)?.set??(f&&t in e?n=>e[t]=n:void 0)}var p,m=!1;a?[p,m]=Qe(()=>e[t]):p=e[t],p===void 0&&r!==void 0&&(p=l(),d&&(i&&xe(t),d(p)));var h=i?()=>{var n=e[t];return n===void 0?l():(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?Ct:Et)(()=>(_=!1,h()));a&&$(v);var y=q;return(function(e,t){if(arguments.length>0){let n=t?$(v):i&&a?Vt(e):e;return L(v,n),_=!0,s!==void 0&&(s=n),e}return U&&_||y.f&16384?v.v:$(v)})}function jr(e){return new Mr(e)}var Mr=class{#e;#t;constructor(e){var t=new Map,n=(e,n)=>{var r=It(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===fe?!0:($(t.get(r)??n(r,Reflect.get(e,r))),Reflect.has(e,r))},set(e,r,i){return L(t.get(r)??n(r,i),i),Reflect.set(e,r,i)}});this.#t=(e.hydrate?dr:ur)(e.component,{target:e.target,anchor:e.anchor,props:r,context:e.context,intro:e.intro??!1,recover:e.recover,transformError:e.transformError}),!D&&(!e?.props?.$$host||e.sync===!1)&&st(),this.#e=r.$$events;for(let e of Object.keys(this.#t))e===`$set`||e===`$destroy`||e===`$on`||l(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=()=>{hr(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()}},Nr;typeof HTMLElement==`function`&&(Nr=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=$t(`slot`);e!==`default`&&(n.name=e),or(t,n)}}let t={},n=Fr(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]=Pr(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=jr({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=ln(()=>{pn(()=>{this.$$r=!0;for(let e of c(this.$$c)){if(!this.$$p_d[e]?.reflect)continue;this.$$d[e]=this.$$c[e];let t=Pr(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]=Pr(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 c(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function Pr(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 Fr(e){let t={};return e.childNodes.forEach(e=>{t[e.slot||`default`]=!0}),t}function Ir(e,t,n,r,i,a){let o=class extends Nr{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return c(t).map(e=>(t[e].attribute||e).toLowerCase())}};return c(t).forEach(e=>{l(o.prototype,e,{get(){return this.$$c&&e in this.$$c?this.$$c[e]:this.$$d[e]},set(n){n=Pr(e,n,t),this.$$d[e]=n;var r=this.$$c;r&&(u(r,e)?.get?r[e]=n:r.$set({[e]:n}))}})}),r.forEach(e=>{l(o.prototype,e,{get(){return this.$$c?.[e]}})}),a&&(o=a(o)),e.element=o,o}var Lr={name:`@htmlbricks/svelte-webcomponent`,private:!0,version:`0.66.7`,type:`module`,scripts:{dev:`vite --open`,build:`vite build`,"publish:wc":`node publish.ts`,"build:wc":`node build.ts`,"watch:wc":`node watch.ts`,preview:`vite preview`,check:`svelte-check --tsconfig ./tsconfig.app.json && tsc -p tsconfig.node.json`,"release:patch":`npm version patch && git push && git push --tags && npm run build:wc && npm run publish:wc`,"release:minor":`npm version minor && git push && git push --tags && npm run build:wc && npm run publish:wc`,"release:major":`npm version major && git push && git push --tags && npm run build:wc && npm run publish:wc`},devDependencies:{"@google-pay/button-element":`^3.2.1`,"@paypal/paypal-js":`^9.5.0`,"@sveltejs/vite-plugin-svelte":`^7.0.0`,"@tsconfig/svelte":`^5.0.8`,"@types/debounce":`^1.2.4`,"@types/node":`^24.10.1`,"@types/rgb-hex":`^3.0.0`,"chart.js":`^4.5.1`,"date-holidays":`^3.26.12`,dayjs:`^1.11.20`,"hls.js":`^1.6.15`,"html5-joystick-new":`^0.0.6`,ol:`^10.8.0`,"perfect-freehand":`^1.2.3`,prettier:`^3.8.1`,"rollup-plugin-terser":`^7.0.2`,"sass-embedded":`^1.98.0`,"simple-serverless-auth-client":`^0.0.6`,"simple-webrtc-element":`^0.0.1`,"simple-webrtc-element-whep":`^0.2.3`,"style-to-object":`^1.0.14`,svelte:`^5.55.0`,"svelte-check":`^4.4.5`,terser:`^5.46.1`,"ts-json-schema-generator":`^2.9.0`,typescript:`^6.0.2`,vite:`^8.0.3`},dependencies:{"@floating-ui/dom":`^1.7.6`,"@popperjs/core":`^2.11.8`,bootstrap:`^5.3.8`,debounce:`^3.0.0`,"html-colors":`^0.0.6`,marked:`^17.0.5`,raphael:`^2.3.0`,"rgb-hex":`^4.1.0`,"wc-js-utils":`^0.4.7`}};function Rr(e){let t=e?.repoName.split(`/`)?.[1]||e?.repoName;if(!t)throw Error(`wrong componentPath `+e?.repoName);if(!e?.version)throw Error(`wrong version `+e?.version);let n=e?.iifePath||`main.iife.js`;if(!document.getElementById(t+`-script`))try{let r=document.createElement(`script`);if(r.id=t+`-script`,r.src=`https://cdn.jsdelivr.net/npm/${e.repoName}@${e.version}/${n}`,e?.local)r.src=`${e.local}`;else if(location.href.includes(`localhost:6006`)){let e=t.split(`-`)[0];r.src=`http://localhost:6006/webcomponents/${t.replace(e+`-`,``)}/${n}`}document.head.appendChild(r)}catch(e){console.warn(e)}}var zr=ir(`<button class="btn btn-primary svelte-67k34i">Indietro</button>`),Br=ir(`<button class="btn btn-primary svelte-67k34i" disabled="">Indietro</button>`),Vr=ir(`<button class="btn btn-primary svelte-67k34i">Salva</button>`),Hr=ir(`<button class="btn btn-primary svelte-67k34i">Avanti</button>`),Ur=ir(`<hb-form></hb-form> <div class="svelte-67k34i"><span class="svelte-67k34i"><span class="btn btn-secondary svelte-67k34i"> </span> <!> <!></span></div>`,3),Wr={hash:`svelte-67k34i`,code:`@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");
|
|
3
4
|
/*!
|
|
4
5
|
* Bootstrap v5.1.2 (https://getbootstrap.com/)
|
|
5
6
|
* Copyright 2011-2021 The Bootstrap Authors
|
|
@@ -108,5 +109,5 @@ button.svelte-67k34i {margin:0;font-family:inherit;font-size:inherit;line-height
|
|
|
108
109
|
@media (min-width: 1200px) {
|
|
109
110
|
}
|
|
110
111
|
@media print {
|
|
111
|
-
}:host {font-family:"Roboto", sans-serif;}`};function
|
|
112
|
-
//# sourceMappingURL=main.iife.js.map
|
|
112
|
+
}:host {font-family:"Roboto", sans-serif;}`};function Gr(e,t){Re(t,!0),vr(e,Wr);function n(e,n){t.$$host.dispatchEvent(new CustomEvent(e,{detail:n}))}Rr({repoName:`@htmlbricks/hb-form`,version:Lr.version});let r=Ar(t,`steps`,7),i=Ar(t,`schemes`,7),a=Ar(t,`submitstep`,7,`no`),o=Ar(t,`id`,7,``),s=Ar(t,`step`,7,1),c=I(Vt([])),l=Tt(()=>$(c)?.length?$(c).length:typeof r()==`string`?Number(r()):r()||r()===0?r():1);sn(()=>{i()&&typeof i()==`string`&&(L(c,JSON.parse(i()).map(e=>({schema:e,valid:!1})),!0),i([])),a()!==`yes`&&a(`no`)});function u(e){if(!$(c))return console.error(`Schemes not found`);let t=$(c)[Number(s())-1];console.info(`schemeUpdate`,JSON.stringify(t),e,Number(s()));for(let n of Object.keys(e)){let r=t.schema.find(e=>e.id===n);r&&(console.info(`setting value`,r,e[n]),r.value=e[n])}t.valid=e._valid,a()===`yes`&&a(`no`),n(`update`,{step:Number(s()),scheme:t,valid:t.valid})}function d(){console.info(`submitFunnel`,Number(s()),$(l)),$(l)===Number(s())?n(`submit`,{schemes:$(c),steps:$(l),step:Number(s())}):f(Number(s())+1),a(`no`)}function f(e){console.info(`setStep`,e),s(e)}var p={get steps(){return r()},set steps(e){r(e),st()},get schemes(){return i()},set schemes(e){i(e),st()},get submitstep(){return a()},set submitstep(e=`no`){a(e),st()},get id(){return o()},set id(e=``){o(e),st()},get step(){return s()},set step(e=1){s(e),st()}},m=ar(),h=Yt(m),g=e=>{var t=Ur(),n=Yt(t);mn(()=>Er(n,`id`,`scheme-${Number(s())}-${$(l)}`)),mn(()=>Er(n,`schema`,JSON.stringify($(c)[Number(s())-1].schema))),mn(()=>Er(n,`submitted`,a())),Er(n,`hide_submit`,`yes`),xr(n,1,`svelte-67k34i`);var r=Xt(n,2),i=Jt(r),o=Jt(i),p=Jt(o);ke(o);var m=Xt(o,2),h=e=>{var t=zr();Xn(`click`,t,()=>f(Number(s())-1)),or(e,t)},g=Tt(()=>Number(s())>1),_=e=>{var t=Br();Xn(`click`,t,()=>f(Number(s())-1)),or(e,t)};_r(m,e=>{$(g)?e(h):e(_,-1)});var v=Xt(m,2),y=e=>{var t=Vr();Xn(`click`,t,()=>{a(`yes`),d()}),or(e,t)},b=Tt(()=>$(l)===Number(s())),x=e=>{var t=Hr();Xn(`click`,t,()=>{a(`yes`),d()}),or(e,t)};_r(v,e=>{$(b)?e(y):e(x,-1)}),ke(i),ke(r),mn(e=>lr(p,`${e??``}/${$(l)??``}`),[()=>Number(s())]),Yn(`submit`,n,e=>d()),Yn(`update`,n,e=>u(e.detail)),or(e,t)},_=Tt(()=>i()&&typeof $(c)==`object`&&$(c).length&&$(c)[Number(s())-1]);return _r(h,e=>{$(_)&&e(g)}),or(e,m),ze(p)}Zn([`click`]),customElements.define(`hb-funnel`,Ir(Gr,{steps:{},schemes:{},submitstep:{},id:{},step:{}},[],[],{mode:`open`})),e.Component=Gr})(this.funnel=this.funnel||{});
|
|
113
|
+
//# sourceMappingURL=main.iife.js.map
|