@htmlbricks/hb-uploader 0.66.6 → 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 CHANGED
@@ -1,5 +1,6 @@
1
- (function(kt){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const jr=1,Br=2,At="[",Nt="[!",Rt="[?",Ot="]",Ee={},N=Symbol(),Ct="http://www.w3.org/1999/xhtml",Hr=!1;var zr=Array.isArray,Ur=Array.prototype.indexOf,Te=Array.prototype.includes,Vr=Array.from,Ve=Object.keys,Ye=Object.defineProperty,Se=Object.getOwnPropertyDescriptor,Yr=Object.getOwnPropertyDescriptors,Gr=Object.prototype,Wr=Array.prototype,Mt=Object.getPrototypeOf,Pt=Object.isExtensible;const Kr=()=>{};function Jr(e){for(var t=0;t<e.length;t++)e[t]()}function Lt(){var e,t,r=new Promise((n,s)=>{e=n,t=s});return{promise:r,resolve:e,reject:t}}const A=2,xe=4,Ge=8,Dt=1<<24,ne=16,G=32,se=64,ot=128,F=512,k=1024,O=2048,W=4096,K=8192,U=16384,ie=32768,It=1<<25,ke=65536,Ft=1<<17,Xr=1<<18,ge=1<<19,Zr=1<<20,be=65536,lt=1<<21,at=1<<22,oe=1<<23,ft=Symbol("$state"),Qr=Symbol("legacy props"),en=Symbol(""),Z=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},tn=!!globalThis.document?.contentType&&globalThis.document.contentType.includes("xml"),ut=3,We=8;function rn(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function nn(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function sn(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function on(e){throw new Error("https://svelte.dev/e/effect_orphan")}function ln(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function an(){throw new Error("https://svelte.dev/e/hydration_failed")}function fn(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function un(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function cn(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function hn(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function Ke(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function dn(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let m=!1;function le(e){m=e}let T;function J(e){if(e===null)throw Ke(),Ee;return T=e}function Je(){return J(he(T))}function Le(e){if(m){if(he(T)!==null)throw Ke(),Ee;T=e}}function qt(e=1){if(m){for(var t=e,r=T;t--;)r=he(r);T=r}}function jt(e=!0){for(var t=0,r=T;;){if(r.nodeType===We){var n=r.data;if(n===Ot){if(t===0)return r;t-=1}else(n===At||n===Nt||n[0]==="["&&!isNaN(Number(n.slice(1))))&&(t+=1)}var s=he(r);e&&r.remove(),r=s}}function vn(e){if(!e||e.nodeType!==We)throw Ke(),Ee;return e.data}function Bt(e){return e===this.v}function _n(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function pn(e){return!_n(e,this.v)}let gn=!1,q=null;function Ae(e){q=e}function Ht(e,t=!1,r){q={p:q,i:!1,c:null,e:null,s:e,x:null,r:g,l:null}}function zt(e){var t=q,r=t.e;if(r!==null){t.e=null;for(var n of r)dr(n)}return e!==void 0&&(t.x=e),t.i=!0,q=t.p,e??{}}function Ut(){return!0}let we=[];function Vt(){var e=we;we=[],Jr(e)}function me(e){if(we.length===0&&!De){var t=we;queueMicrotask(()=>{t===we&&Vt()})}we.push(e)}function bn(){for(;we.length>0;)Vt()}function Yt(e){var t=g;if(t===null)return p.f|=oe,e;if((t.f&ie)===0&&(t.f&xe)===0)throw e;ae(e,t)}function ae(e,t){for(;t!==null;){if((t.f&ot)!==0){if((t.f&ie)===0)throw e;try{t.b.error(e);return}catch(r){e=r}}t=t.parent}throw e}const wn=-7169;function S(e,t){e.f=e.f&wn|t}function ct(e){(e.f&F)!==0||e.deps===null?S(e,k):S(e,W)}function Gt(e){if(e!==null)for(const t of e)(t.f&A)===0||(t.f&be)===0||(t.f^=be,Gt(t.deps))}function Wt(e,t,r){(e.f&O)!==0?t.add(e):(e.f&W)!==0&&r.add(e),Gt(e.deps),S(e,k)}const fe=new Set;let $=null,V=null,ht=null,De=!1,dt=!1,Ne=null,Xe=null;var Kt=0;let mn=1;class Q{id=mn++;current=new Map;previous=new Map;#e=new Set;#r=new Set;#t=new Map;#s=new Map;#i=null;#n=[];#o=new Set;#l=new Set;#a=new Map;is_fork=!1;#c=!1;#f=new Set;#h(){return this.is_fork||this.#s.size>0}#v(){for(const n of this.#f)for(const s of n.#s.keys()){for(var t=!1,r=s;r.parent!==null;){if(this.#a.has(r)){t=!0;break}r=r.parent}if(!t)return!0}return!1}skip_effect(t){this.#a.has(t)||this.#a.set(t,{d:[],m:[]})}unskip_effect(t){var r=this.#a.get(t);if(r){this.#a.delete(t);for(var n of r.d)S(n,O),this.schedule(n);for(n of r.m)S(n,W),this.schedule(n)}}#d(){if(Kt++>1e3&&(fe.delete(this),yn()),!this.#h()){for(const o of this.#o)this.#l.delete(o),S(o,O),this.schedule(o);for(const o of this.#l)S(o,W),this.schedule(o)}const t=this.#n;this.#n=[],this.apply();var r=Ne=[],n=[],s=Xe=[];for(const o of t)try{this.#u(o,r,n)}catch(a){throw er(o),a}if($=null,s.length>0){var i=Q.ensure();for(const o of s)i.schedule(o)}if(Ne=null,Xe=null,this.#h()||this.#v()){this.#_(n),this.#_(r);for(const[o,a]of this.#a)Qt(o,a)}else{this.#t.size===0&&fe.delete(this),this.#o.clear(),this.#l.clear();for(const o of this.#e)o(this);this.#e.clear(),Jt(n),Jt(r),this.#i?.resolve()}var l=$;if(this.#n.length>0){const o=l??=this;o.#n.push(...this.#n.filter(a=>!o.#n.includes(a)))}l!==null&&(fe.add(l),l.#d()),fe.has(this)||this.#p()}#u(t,r,n){t.f^=k;for(var s=t.first;s!==null;){var i=s.f,l=(i&(G|se))!==0,o=l&&(i&k)!==0,a=o||(i&K)!==0||this.#a.has(s);if(!a&&s.fn!==null){l?s.f^=k:(i&xe)!==0?r.push(s):ze(s)&&((i&ne)!==0&&this.#l.add(s),Re(s));var f=s.first;if(f!==null){s=f;continue}}for(;s!==null;){var u=s.next;if(u!==null){s=u;break}s=s.parent}}}#_(t){for(var r=0;r<t.length;r+=1)Wt(t[r],this.#o,this.#l)}capture(t,r,n=!1){r!==N&&!this.previous.has(t)&&this.previous.set(t,r),(t.f&oe)===0&&(this.current.set(t,[t.v,n]),V?.set(t,t.v))}activate(){$=this}deactivate(){$=null,V=null}flush(){try{dt=!0,$=this,this.#d()}finally{Kt=0,ht=null,Ne=null,Xe=null,dt=!1,$=null,V=null,ue.clear()}}discard(){for(const t of this.#r)t(this);this.#r.clear(),fe.delete(this)}#p(){for(const f of fe){var t=f.id<this.id,r=[];for(const[u,[h,c]]of this.current){if(f.current.has(u)){var n=f.current.get(u)[0];if(t&&h!==n)f.current.set(u,[h,c]);else continue}r.push(u)}var s=[...f.current.keys()].filter(u=>!this.current.has(u));if(s.length===0)t&&f.discard();else if(r.length>0){f.activate();var i=new Set,l=new Map;for(var o of r)Xt(o,s,i,l);if(f.#n.length>0){f.apply();for(var a of f.#n)f.#u(a,[],[]);f.#n=[]}f.deactivate()}}for(const f of fe)f.#f.has(this)&&(f.#f.delete(this),f.#f.size===0&&!f.#h()&&(f.activate(),f.#d()))}increment(t,r){let n=this.#t.get(r)??0;if(this.#t.set(r,n+1),t){let s=this.#s.get(r)??0;this.#s.set(r,s+1)}}decrement(t,r,n){let s=this.#t.get(r)??0;if(s===1?this.#t.delete(r):this.#t.set(r,s-1),t){let i=this.#s.get(r)??0;i===1?this.#s.delete(r):this.#s.set(r,i-1)}this.#c||n||(this.#c=!0,me(()=>{this.#c=!1,this.flush()}))}transfer_effects(t,r){for(const n of t)this.#o.add(n);for(const n of r)this.#l.add(n);t.clear(),r.clear()}oncommit(t){this.#e.add(t)}ondiscard(t){this.#r.add(t)}settled(){return(this.#i??=Lt()).promise}static ensure(){if($===null){const t=$=new Q;dt||(fe.add($),De||me(()=>{$===t&&t.flush()}))}return $}apply(){{V=null;return}}schedule(t){if(ht=t,t.b?.is_pending&&(t.f&(xe|Ge|Dt))!==0&&(t.f&ie)===0){t.b.defer_effect(t);return}for(var r=t;r.parent!==null;){r=r.parent;var n=r.f;if(Ne!==null&&r===g&&(p===null||(p.f&A)===0))return;if((n&(se|G))!==0){if((n&k)===0)return;r.f^=k}}this.#n.push(r)}}function Ze(e){var t=De;De=!0;try{for(var r;;){if(bn(),$===null)return r;$.flush()}}finally{De=t}}function yn(){try{ln()}catch(e){ae(e,ht)}}let ee=null;function Jt(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var n=e[r++];if((n.f&(U|K))===0&&ze(n)&&(ee=new Set,Re(n),n.deps===null&&n.first===null&&n.nodes===null&&n.teardown===null&&n.ac===null&&gr(n),ee?.size>0)){ue.clear();for(const s of ee){if((s.f&(U|K))!==0)continue;const i=[s];let l=s.parent;for(;l!==null;)ee.has(l)&&(ee.delete(l),i.push(l)),l=l.parent;for(let o=i.length-1;o>=0;o--){const a=i[o];(a.f&(U|K))===0&&Re(a)}}ee.clear()}}ee=null}}function Xt(e,t,r,n){if(!r.has(e)&&(r.add(e),e.reactions!==null))for(const s of e.reactions){const i=s.f;(i&A)!==0?Xt(s,t,r,n):(i&(at|ne))!==0&&(i&O)===0&&Zt(s,t,n)&&(S(s,O),vt(s))}}function Zt(e,t,r){const n=r.get(e);if(n!==void 0)return n;if(e.deps!==null)for(const s of e.deps){if(Te.call(t,s))return!0;if((s.f&A)!==0&&Zt(s,t,r))return r.set(s,!0),!0}return r.set(e,!1),!1}function vt(e){$.schedule(e)}function Qt(e,t){if(!((e.f&G)!==0&&(e.f&k)!==0)){(e.f&O)!==0?t.d.push(e):(e.f&W)!==0&&t.m.push(e),S(e,k);for(var r=e.first;r!==null;)Qt(r,t),r=r.next}}function er(e){S(e,k);for(var t=e.first;t!==null;)er(t),t=t.next}function $n(e){let t=0,r=Ie(0),n;return()=>{mt()&&(w(r),vr(()=>(t===0&&(n=Jn(()=>e(()=>Fe(r)))),t+=1,()=>{me(()=>{t-=1,t===0&&(n?.(),n=void 0,Fe(r))})})))}}var En=ke|ge;function Tn(e,t,r,n){new Sn(e,t,r,n)}class Sn{parent;is_pending=!1;transform_error;#e;#r=m?T:null;#t;#s;#i;#n=null;#o=null;#l=null;#a=null;#c=0;#f=0;#h=!1;#v=new Set;#d=new Set;#u=null;#_=$n(()=>(this.#u=Ie(this.#c),()=>{this.#u=null}));constructor(t,r,n,s){this.#e=t,this.#t=r,this.#s=i=>{var l=g;l.b=this,l.f|=ot,n(i)},this.parent=g.b,this.transform_error=s??this.parent?.transform_error??(i=>i),this.#i=_r(()=>{if(m){const i=this.#r;Je();const l=i.data===Nt;if(i.data.startsWith(Rt)){const a=JSON.parse(i.data.slice(Rt.length));this.#y(a)}else l?this.#$():this.#p()}else this.#w()},En),m&&(this.#e=T)}#p(){try{this.#n=te(()=>this.#s(this.#e))}catch(t){this.error(t)}}#y(t){const r=this.#t.failed;r&&(this.#l=te(()=>{r(this.#e,()=>t,()=>()=>{})}))}#$(){const t=this.#t.pending;t&&(this.is_pending=!0,this.#o=te(()=>t(this.#e)),me(()=>{var r=this.#a=document.createDocumentFragment(),n=ce();r.append(n),this.#n=this.#b(()=>te(()=>this.#s(n))),this.#f===0&&(this.#e.before(r),this.#a=null,He(this.#o,()=>{this.#o=null}),this.#g($))}))}#w(){try{if(this.is_pending=this.has_pending_snippet(),this.#f=0,this.#c=0,this.#n=te(()=>{this.#s(this.#e)}),this.#f>0){var t=this.#a=document.createDocumentFragment();mr(this.#n,t);const r=this.#t.pending;this.#o=te(()=>r(this.#e))}else this.#g($)}catch(r){this.error(r)}}#g(t){this.is_pending=!1,t.transfer_effects(this.#v,this.#d)}defer_effect(t){Wt(t,this.#v,this.#d)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#t.pending}#b(t){var r=g,n=p,s=q;B(this.#i),L(this.#i),Ae(this.#i.ctx);try{return Q.ensure(),t()}catch(i){return Yt(i),null}finally{B(r),L(n),Ae(s)}}#m(t,r){if(!this.has_pending_snippet()){this.parent&&this.parent.#m(t,r);return}this.#f+=t,this.#f===0&&(this.#g(r),this.#o&&He(this.#o,()=>{this.#o=null}),this.#a&&(this.#e.before(this.#a),this.#a=null))}update_pending_count(t,r){this.#m(t,r),this.#c+=t,!(!this.#u||this.#h)&&(this.#h=!0,me(()=>{this.#h=!1,this.#u&&et(this.#u,this.#c)}))}get_effect_pending(){return this.#_(),w(this.#u)}error(t){var r=this.#t.onerror;let n=this.#t.failed;if(!r&&!n)throw t;this.#n&&(P(this.#n),this.#n=null),this.#o&&(P(this.#o),this.#o=null),this.#l&&(P(this.#l),this.#l=null),m&&(J(this.#r),qt(),J(jt()));var s=!1,i=!1;const l=()=>{if(s){dn();return}s=!0,i&&hn(),this.#l!==null&&He(this.#l,()=>{this.#l=null}),this.#b(()=>{this.#w()})},o=a=>{try{i=!0,r?.(a,l),i=!1}catch(f){ae(f,this.#i&&this.#i.parent)}n&&(this.#l=this.#b(()=>{try{return te(()=>{var f=g;f.b=this,f.f|=ot,n(this.#e,()=>a,()=>l)})}catch(f){return ae(f,this.#i.parent),null}}))};me(()=>{var a;try{a=this.transform_error(t)}catch(f){ae(f,this.#i&&this.#i.parent);return}a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(o,f=>ae(f,this.#i&&this.#i.parent)):o(a)})}}function xn(e,t,r,n){const s=rr;var i=e.filter(c=>!c.settled);if(r.length===0&&i.length===0){n(t.map(s));return}var l=g,o=kn(),a=i.length===1?i[0].promise:i.length>1?Promise.all(i.map(c=>c.promise)):null;function f(c){o();try{n(c)}catch(_){(l.f&U)===0&&ae(_,l)}Qe()}if(r.length===0){a.then(()=>f(t.map(s)));return}var u=tr();function h(){Promise.all(r.map(c=>An(c))).then(c=>f([...t.map(s),...c])).catch(c=>ae(c,l)).finally(()=>u())}a?a.then(()=>{o(),h(),Qe()}):h()}function kn(){var e=g,t=p,r=q,n=$;return function(i=!0){B(e),L(t),Ae(r),i&&(e.f&U)===0&&(n?.activate(),n?.apply())}}function Qe(e=!0){B(null),L(null),Ae(null),e&&$?.deactivate()}function tr(){var e=g,t=e.b,r=$,n=t.is_rendered();return t.update_pending_count(1,r),r.increment(n,e),(s=!1)=>{t.update_pending_count(-1,r),r.decrement(n,e,s)}}function rr(e){var t=A|O,r=p!==null&&(p.f&A)!==0?p:null;return g!==null&&(g.f|=ge),{ctx:q,deps:null,effects:null,equals:Bt,f:t,fn:e,reactions:null,rv:0,v:N,wv:0,parent:r??g,ac:null}}function An(e,t,r){let n=g;n===null&&rn();var s=void 0,i=Ie(N),l=!p,o=new Map;return zn(()=>{var a=g,f=Lt();s=f.promise;try{Promise.resolve(e()).then(f.resolve,f.reject).finally(Qe)}catch(_){f.reject(_),Qe()}var u=$;if(l){if((a.f&ie)!==0)var h=tr();if(n.b.is_rendered())o.get(u)?.reject(Z),o.delete(u);else{for(const _ of o.values())_.reject(Z);o.clear()}o.set(u,f)}const c=(_,v=void 0)=>{if(h){var y=v===Z;h(y)}if(!(v===Z||(a.f&U)!==0)){if(u.activate(),v)i.f|=oe,et(i,v);else{(i.f&oe)!==0&&(i.f^=oe),et(i,_);for(const[E,M]of o){if(o.delete(E),E===u)break;M.reject(Z)}}u.deactivate()}};f.promise.then(c,_=>c(null,_||"unknown"))}),hr(()=>{for(const a of o.values())a.reject(Z)}),new Promise(a=>{function f(u){function h(){u===s?a(i):f(s)}u.then(h,h)}f(s)})}function Nn(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)P(t[r])}}function Rn(e){for(var t=e.parent;t!==null;){if((t.f&A)===0)return(t.f&U)===0?t:null;t=t.parent}return null}function _t(e){var t,r=g;B(Rn(e));try{e.f&=~be,Nn(e),t=xr(e)}finally{B(r)}return t}function nr(e){var t=e.v,r=_t(e);if(!e.equals(r)&&(e.wv=Tr(),(!$?.is_fork||e.deps===null)&&(e.v=r,$?.capture(e,t,!0),e.deps===null))){S(e,k);return}de||(V!==null?(mt()||$?.is_fork)&&V.set(e,r):ct(e))}function On(e){if(e.effects!==null)for(const t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(Z),t.teardown=Kr,t.ac=null,Ue(t,0),yt(t))}function sr(e){if(e.effects!==null)for(const t of e.effects)t.teardown&&Re(t)}let pt=new Set;const ue=new Map;let ir=!1;function Ie(e,t){var r={f:0,v:e,reactions:null,equals:Bt,rv:0,wv:0};return r}function j(e,t){const r=Ie(e);return Gn(r),r}function Cn(e,t=!1,r=!0){const n=Ie(e);return t||(n.equals=pn),n}function x(e,t,r=!1){p!==null&&(!Y||(p.f&Ft)!==0)&&Ut()&&(p.f&(A|ne|at|Ft))!==0&&(H===null||!Te.call(H,e))&&cn();let n=r?qe(t):t;return et(e,n,Xe)}function et(e,t,r=null){if(!e.equals(t)){var n=e.v;de?ue.set(e,t):ue.set(e,n),e.v=t;var s=Q.ensure();if(s.capture(e,n),(e.f&A)!==0){const i=e;(e.f&O)!==0&&_t(i),V===null&&ct(i)}e.wv=Tr(),or(e,O,r),g!==null&&(g.f&k)!==0&&(g.f&(G|se))===0&&(z===null?Wn([e]):z.push(e)),!s.is_fork&&pt.size>0&&!ir&&Mn()}return t}function Mn(){ir=!1;for(const e of pt)(e.f&k)!==0&&S(e,W),ze(e)&&Re(e);pt.clear()}function Fe(e){x(e,e.v+1)}function or(e,t,r){var n=e.reactions;if(n!==null)for(var s=n.length,i=0;i<s;i++){var l=n[i],o=l.f,a=(o&O)===0;if(a&&S(l,t),(o&A)!==0){var f=l;V?.delete(f),(o&be)===0&&(o&F&&(l.f|=be),or(f,W,r))}else if(a){var u=l;(o&ne)!==0&&ee!==null&&ee.add(u),r!==null?r.push(u):vt(u)}}}function qe(e){if(typeof e!="object"||e===null||ft in e)return e;const t=Mt(e);if(t!==Gr&&t!==Wr)return e;var r=new Map,n=zr(e),s=j(0),i=$e,l=o=>{if($e===i)return o();var a=p,f=$e;L(null),Er(i);var u=o();return L(a),Er(f),u};return n&&r.set("length",j(e.length)),new Proxy(e,{defineProperty(o,a,f){(!("value"in f)||f.configurable===!1||f.enumerable===!1||f.writable===!1)&&fn();var u=r.get(a);return u===void 0?l(()=>{var h=j(f.value);return r.set(a,h),h}):x(u,f.value,!0),!0},deleteProperty(o,a){var f=r.get(a);if(f===void 0){if(a in o){const u=l(()=>j(N));r.set(a,u),Fe(s)}}else x(f,N),Fe(s);return!0},get(o,a,f){if(a===ft)return e;var u=r.get(a),h=a in o;if(u===void 0&&(!h||Se(o,a)?.writable)&&(u=l(()=>{var _=qe(h?o[a]:N),v=j(_);return v}),r.set(a,u)),u!==void 0){var c=w(u);return c===N?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=r.get(a);u&&(f.value=w(u))}else if(f===void 0){var h=r.get(a),c=h?.v;if(h!==void 0&&c!==N)return{enumerable:!0,configurable:!0,value:c,writable:!0}}return f},has(o,a){if(a===ft)return!0;var f=r.get(a),u=f!==void 0&&f.v!==N||Reflect.has(o,a);if(f!==void 0||g!==null&&(!u||Se(o,a)?.writable)){f===void 0&&(f=l(()=>{var c=u?qe(o[a]):N,_=j(c);return _}),r.set(a,f));var h=w(f);if(h===N)return!1}return u},set(o,a,f,u){var h=r.get(a),c=a in o;if(n&&a==="length")for(var _=f;_<h.v;_+=1){var v=r.get(_+"");v!==void 0?x(v,N):_ in o&&(v=l(()=>j(N)),r.set(_+"",v))}if(h===void 0)(!c||Se(o,a)?.writable)&&(h=l(()=>j(void 0)),x(h,qe(f)),r.set(a,h));else{c=h.v!==N;var y=l(()=>qe(f));x(h,y)}var E=Reflect.getOwnPropertyDescriptor(o,a);if(E?.set&&E.set.call(u,f),!c){if(n&&typeof a=="string"){var M=r.get("length"),ve=Number(a);Number.isInteger(ve)&&ve>=M.v&&x(M,ve+1)}Fe(s)}return!0},ownKeys(o){w(s);var a=Reflect.ownKeys(o).filter(h=>{var c=r.get(h);return c===void 0||c.v!==N});for(var[f,u]of r)u.v!==N&&!(f in o)&&a.push(f);return a},setPrototypeOf(){un()}})}var lr,ar,fr,ur;function gt(){if(lr===void 0){lr=window,ar=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;fr=Se(t,"firstChild").get,ur=Se(t,"nextSibling").get,Pt(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),Pt(r)&&(r.__t=void 0)}}function ce(e=""){return document.createTextNode(e)}function je(e){return fr.call(e)}function he(e){return ur.call(e)}function Be(e,t){if(!m)return je(e);var r=je(T);return r===null&&(r=T.appendChild(ce())),J(r),r}function Pn(e,t=1,r=!1){let n=m?T:e;for(var s;t--;)s=n,n=he(n);if(!m)return n;if(r){if(n?.nodeType!==ut){var i=ce();return n===null?s?.after(i):n.before(i),J(i),i}cr(n)}return J(n),n}function Ln(e){e.textContent=""}function Dn(){return!1}function bt(e,t,r){return document.createElementNS(Ct,e,void 0)}function cr(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===ut;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function wt(e){var t=p,r=g;L(null),B(null);try{return e()}finally{L(t),B(r)}}function In(e){g===null&&(p===null&&on(),sn()),de&&nn()}function Fn(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function X(e,t){var r=g;r!==null&&(r.f&K)!==0&&(e|=K);var n={ctx:q,deps:null,nodes:null,f:e|O|F,first:null,fn:t,last:null,next:null,parent:r,b:r&&r.b,prev:null,teardown:null,wv:0,ac:null},s=n;if((e&xe)!==0)Ne!==null?Ne.push(n):Q.ensure().schedule(n);else if(t!==null){try{Re(n)}catch(l){throw P(n),l}s.deps===null&&s.teardown===null&&s.nodes===null&&s.first===s.last&&(s.f&ge)===0&&(s=s.first,(e&ne)!==0&&(e&ke)!==0&&s!==null&&(s.f|=ke))}if(s!==null&&(s.parent=r,r!==null&&Fn(s,r),p!==null&&(p.f&A)!==0&&(e&se)===0)){var i=p;(i.effects??=[]).push(s)}return n}function mt(){return p!==null&&!Y}function hr(e){const t=X(Ge,null);return S(t,k),t.teardown=e,t}function qn(e){In();var t=g.f,r=!p&&(t&G)!==0&&(t&ie)===0;if(r){var n=q;(n.e??=[]).push(e)}else return dr(e)}function dr(e){return X(xe|Zr,e)}function jn(e){Q.ensure();const t=X(se|ge,e);return()=>{P(t)}}function Bn(e){Q.ensure();const t=X(se|ge,e);return(r={})=>new Promise(n=>{r.outro?He(t,()=>{P(t),n(void 0)}):(P(t),n(void 0))})}function Hn(e){return X(xe,e)}function zn(e){return X(at|ge,e)}function vr(e,t=0){return X(Ge|t,e)}function tt(e,t=[],r=[],n=[]){xn(n,t,r,s=>{X(Ge,()=>e(...s.map(w)))})}function _r(e,t=0){var r=X(ne|t,e);return r}function te(e){return X(G|ge,e)}function pr(e){var t=e.teardown;if(t!==null){const r=de,n=p;yr(!0),L(null);try{t.call(null)}finally{yr(r),L(n)}}}function yt(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const s=r.ac;s!==null&&wt(()=>{s.abort(Z)});var n=r.next;(r.f&se)!==0?r.parent=null:P(r,t),r=n}}function Un(e){for(var t=e.first;t!==null;){var r=t.next;(t.f&G)===0&&P(t),t=r}}function P(e,t=!0){var r=!1;(t||(e.f&Xr)!==0)&&e.nodes!==null&&e.nodes.end!==null&&(Vn(e.nodes.start,e.nodes.end),r=!0),S(e,It),yt(e,t&&!r),Ue(e,0);var n=e.nodes&&e.nodes.t;if(n!==null)for(const i of n)i.stop();pr(e),e.f^=It,e.f|=U;var s=e.parent;s!==null&&s.first!==null&&gr(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function Vn(e,t){for(;e!==null;){var r=e===t?null:he(e);e.remove(),e=r}}function gr(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 He(e,t,r=!0){var n=[];br(e,n,!0);var s=()=>{r&&P(e),t&&t()},i=n.length;if(i>0){var l=()=>--i||s();for(var o of n)o.out(l)}else s()}function br(e,t,r){if((e.f&K)===0){e.f^=K;var n=e.nodes&&e.nodes.t;if(n!==null)for(const o of n)(o.is_global||r)&&t.push(o);for(var s=e.first;s!==null;){var i=s.next,l=(s.f&ke)!==0||(s.f&G)!==0&&(e.f&ne)!==0;br(s,t,l?r:!1),s=i}}}function Yn(e){wr(e,!0)}function wr(e,t){if((e.f&K)!==0){e.f^=K,(e.f&k)===0&&(S(e,O),Q.ensure().schedule(e));for(var r=e.first;r!==null;){var n=r.next,s=(r.f&ke)!==0||(r.f&G)!==0;wr(r,s?t:!1),r=n}var i=e.nodes&&e.nodes.t;if(i!==null)for(const l of i)(l.is_global||t)&&l.in()}}function mr(e,t){if(e.nodes)for(var r=e.nodes.start,n=e.nodes.end;r!==null;){var s=r===n?null:he(r);t.append(r),r=s}}let rt=!1,de=!1;function yr(e){de=e}let p=null,Y=!1;function L(e){p=e}let g=null;function B(e){g=e}let H=null;function Gn(e){p!==null&&(H===null?H=[e]:H.push(e))}let D=null,I=0,z=null;function Wn(e){z=e}let $r=1,ye=0,$e=ye;function Er(e){$e=e}function Tr(){return++$r}function ze(e){var t=e.f;if((t&O)!==0)return!0;if(t&A&&(e.f&=~be),(t&W)!==0){for(var r=e.deps,n=r.length,s=0;s<n;s++){var i=r[s];if(ze(i)&&nr(i),i.wv>e.wv)return!0}(t&F)!==0&&V===null&&S(e,k)}return!1}function Sr(e,t,r=!0){var n=e.reactions;if(n!==null&&!(H!==null&&Te.call(H,e)))for(var s=0;s<n.length;s++){var i=n[s];(i.f&A)!==0?Sr(i,t,!1):t===i&&(r?S(i,O):(i.f&k)!==0&&S(i,W),vt(i))}}function xr(e){var t=D,r=I,n=z,s=p,i=H,l=q,o=Y,a=$e,f=e.f;D=null,I=0,z=null,p=(f&(G|se))===0?e:null,H=null,Ae(e.ctx),Y=!1,$e=++ye,e.ac!==null&&(wt(()=>{e.ac.abort(Z)}),e.ac=null);try{e.f|=lt;var u=e.fn,h=u();e.f|=ie;var c=e.deps,_=$?.is_fork;if(D!==null){var v;if(_||Ue(e,I),c!==null&&I>0)for(c.length=I+D.length,v=0;v<D.length;v++)c[I+v]=D[v];else e.deps=c=D;if(mt()&&(e.f&F)!==0)for(v=I;v<c.length;v++)(c[v].reactions??=[]).push(e)}else!_&&c!==null&&I<c.length&&(Ue(e,I),c.length=I);if(Ut()&&z!==null&&!Y&&c!==null&&(e.f&(A|W|O))===0)for(v=0;v<z.length;v++)Sr(z[v],e);if(s!==null&&s!==e){if(ye++,s.deps!==null)for(let y=0;y<r;y+=1)s.deps[y].rv=ye;if(t!==null)for(const y of t)y.rv=ye;z!==null&&(n===null?n=z:n.push(...z))}return(e.f&oe)!==0&&(e.f^=oe),h}catch(y){return Yt(y)}finally{e.f^=lt,D=t,I=r,z=n,p=s,H=i,Ae(l),Y=o,$e=a}}function Kn(e,t){let r=t.reactions;if(r!==null){var n=Ur.call(r,e);if(n!==-1){var s=r.length-1;s===0?r=t.reactions=null:(r[n]=r[s],r.pop())}}if(r===null&&(t.f&A)!==0&&(D===null||!Te.call(D,t))){var i=t;(i.f&F)!==0&&(i.f^=F,i.f&=~be),ct(i),On(i),Ue(i,0)}}function Ue(e,t){var r=e.deps;if(r!==null)for(var n=t;n<r.length;n++)Kn(e,r[n])}function Re(e){var t=e.f;if((t&U)===0){S(e,k);var r=g,n=rt;g=e,rt=!0;try{(t&(ne|Dt))!==0?Un(e):yt(e),pr(e);var s=xr(e);e.teardown=typeof s=="function"?s:null,e.wv=$r;var i;Hr&&gn&&(e.f&O)!==0&&e.deps}finally{rt=n,g=r}}}function w(e){var t=e.f,r=(t&A)!==0;if(p!==null&&!Y){var n=g!==null&&(g.f&U)!==0;if(!n&&(H===null||!Te.call(H,e))){var s=p.deps;if((p.f&lt)!==0)e.rv<ye&&(e.rv=ye,D===null&&s!==null&&s[I]===e?I++:D===null?D=[e]:D.push(e));else{(p.deps??=[]).push(e);var i=e.reactions;i===null?e.reactions=[p]:Te.call(i,p)||i.push(p)}}}if(de&&ue.has(e))return ue.get(e);if(r){var l=e;if(de){var o=l.v;return((l.f&k)===0&&l.reactions!==null||Ar(l))&&(o=_t(l)),ue.set(l,o),o}var a=(l.f&F)===0&&!Y&&p!==null&&(rt||(p.f&F)!==0),f=(l.f&ie)===0;ze(l)&&(a&&(l.f|=F),nr(l)),a&&!f&&(sr(l),kr(l))}if(V?.has(e))return V.get(e);if((e.f&oe)!==0)throw e.v;return e.v}function kr(e){if(e.f|=F,e.deps!==null)for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&A)!==0&&(t.f&F)===0&&(sr(t),kr(t))}function Ar(e){if(e.v===N)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(ue.has(t)||(t.f&A)!==0&&Ar(t))return!0;return!1}function Jn(e){var t=Y;try{return Y=!0,e()}finally{Y=t}}const nt=Symbol("events"),Xn=new Set,Nr=new Set;function Zn(e,t,r,n={}){function s(i){if(n.capture||$t.call(t,i),!i.cancelBubble)return wt(()=>r?.call(this,i))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?me(()=>{t.addEventListener(e,s,n)}):t.addEventListener(e,s,n),s}function Qn(e,t,r,n,s){var i={capture:n,passive:s},l=Zn(e,t,r,i);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&hr(()=>{t.removeEventListener(e,l,i)})}let Rr=null;function $t(e){var t=this,r=t.ownerDocument,n=e.type,s=e.composedPath?.()||[],i=s[0]||e.target;Rr=e;var l=0,o=Rr===e&&e[nt];if(o){var a=s.indexOf(o);if(a!==-1&&(t===document||t===window)){e[nt]=t;return}var f=s.indexOf(t);if(f===-1)return;a<=f&&(l=a)}if(i=s[l]||e.target,i!==t){Ye(e,"currentTarget",{configurable:!0,get(){return i||r}});var u=p,h=g;L(null),B(null);try{for(var c,_=[];i!==null;){var v=i.assignedSlot||i.parentNode||i.host||null;try{var y=i[nt]?.[n];y!=null&&(!i.disabled||e.target===i)&&y.call(i,e)}catch(E){c?_.push(E):c=E}if(e.cancelBubble||v===t||v===null)break;i=v}if(c){for(let E of _)queueMicrotask(()=>{throw E});throw c}}finally{e[nt]=t,delete e.currentTarget,L(u),B(h)}}}const es=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:e=>e});function ts(e){return es?.createHTML(e)??e}function rs(e){var t=bt("template");return t.innerHTML=ts(e.replaceAll("<!>","<!---->")),t.content}function Oe(e,t){var r=g;r.nodes===null&&(r.nodes={start:e,end:t,a:null,t:null})}function Et(e,t){var r=(t&jr)!==0,n=(t&Br)!==0,s,i=!e.startsWith("<!>");return()=>{if(m)return Oe(T,null),T;s===void 0&&(s=rs(i?e:"<!>"+e),r||(s=je(s)));var l=n||ar?document.importNode(s,!0):s.cloneNode(!0);if(r){var o=je(l),a=l.lastChild;Oe(o,a)}else Oe(l,l);return l}}function Or(e=""){if(!m){var t=ce(e+"");return Oe(t,t),t}var r=T;return r.nodeType!==ut?(r.before(r=ce()),J(r)):cr(r),Oe(r,r),r}function Ce(e,t){if(m){var r=g;((r.f&ie)===0||r.nodes.end===null)&&(r.nodes.end=T),Je();return}e!==null&&e.before(t)}const ns=["touchstart","touchmove"];function ss(e){return ns.includes(e)}function Cr(e,t){var r=t==null?"":typeof t=="object"?`${t}`:t;r!==(e.__t??=e.nodeValue)&&(e.__t=r,e.nodeValue=`${r}`)}function Mr(e,t){return Pr(e,t)}function is(e,t){gt(),t.intro=t.intro??!1;const r=t.target,n=m,s=T;try{for(var i=je(r);i&&(i.nodeType!==We||i.data!==At);)i=he(i);if(!i)throw Ee;le(!0),J(i);const l=Pr(e,{...t,anchor:i});return le(!1),l}catch(l){if(l instanceof Error&&l.message.split(`
2
- `).some(o=>o.startsWith("https://svelte.dev/e/")))throw l;return l!==Ee&&console.warn("Failed to hydrate: ",l),t.recover===!1&&an(),gt(),Ln(r),le(!1),Mr(e,t)}finally{le(n),J(s)}}const st=new Map;function Pr(e,{target:t,anchor:r,props:n={},events:s,context:i,intro:l=!0,transformError:o}){gt();var a=void 0,f=Bn(()=>{var u=r??t.appendChild(ce());Tn(u,{pending:()=>{}},_=>{Ht({});var v=q;if(i&&(v.c=i),s&&(n.$$events=s),m&&Oe(_,null),a=e(_,n)||{},m&&(g.nodes.end=T,T===null||T.nodeType!==We||T.data!==Ot))throw Ke(),Ee;zt()},o);var h=new Set,c=_=>{for(var v=0;v<_.length;v++){var y=_[v];if(!h.has(y)){h.add(y);var E=ss(y);for(const Me of[t,document]){var M=st.get(Me);M===void 0&&(M=new Map,st.set(Me,M));var ve=M.get(y);ve===void 0?(Me.addEventListener(y,$t,{passive:E}),M.set(y,1)):M.set(y,ve+1)}}}};return c(Vr(Xn)),Nr.add(c),()=>{for(var _ of h)for(const E of[t,document]){var v=st.get(E),y=v.get(_);--y==0?(E.removeEventListener(_,$t),v.delete(_),v.size===0&&st.delete(E)):v.set(_,y)}Nr.delete(c),u!==r&&u.parentNode?.removeChild(u)}});return Tt.set(a,f),a}let Tt=new WeakMap;function os(e,t){const r=Tt.get(e);return r?(Tt.delete(e),r(t)):Promise.resolve()}class ls{anchor;#e=new Map;#r=new Map;#t=new Map;#s=new Set;#i=!0;constructor(t,r=!0){this.anchor=t,this.#i=r}#n=t=>{if(this.#e.has(t)){var r=this.#e.get(t),n=this.#r.get(r);if(n)Yn(n),this.#s.delete(r);else{var s=this.#t.get(r);s&&(this.#r.set(r,s.effect),this.#t.delete(r),s.fragment.lastChild.remove(),this.anchor.before(s.fragment),n=s.effect)}for(const[i,l]of this.#e){if(this.#e.delete(i),i===t)break;const o=this.#t.get(l);o&&(P(o.effect),this.#t.delete(l))}for(const[i,l]of this.#r){if(i===r||this.#s.has(i))continue;const o=()=>{if(Array.from(this.#e.values()).includes(i)){var f=document.createDocumentFragment();mr(l,f),f.append(ce()),this.#t.set(i,{effect:l,fragment:f})}else P(l);this.#s.delete(i),this.#r.delete(i)};this.#i||!n?(this.#s.add(i),He(l,o,!1)):o()}}};#o=t=>{this.#e.delete(t);const r=Array.from(this.#e.values());for(const[n,s]of this.#t)r.includes(n)||(P(s.effect),this.#t.delete(n))};ensure(t,r){var n=$,s=Dn();if(r&&!this.#r.has(t)&&!this.#t.has(t))if(s){var i=document.createDocumentFragment(),l=ce();i.append(l),this.#t.set(t,{effect:te(()=>r(l)),fragment:i})}else this.#r.set(t,te(()=>r(this.anchor)));if(this.#e.set(n,t),s){for(const[o,a]of this.#r)o===t?n.unskip_effect(a):n.skip_effect(a);for(const[o,a]of this.#t)o===t?n.unskip_effect(a.effect):n.skip_effect(a.effect);n.oncommit(this.#n),n.ondiscard(this.#o)}else m&&(this.anchor=T),this.#n(n)}}function as(e,t,r=!1){var n;m&&(n=T,Je());var s=new ls(e),i=r?ke:0;function l(o,a){if(m){var f=vn(n);if(o!==parseInt(f.substring(1))){var u=jt();J(u),s.anchor=u,le(!1),s.ensure(o,a),le(!0);return}}s.ensure(o,a)}_r(()=>{var o=!1;t((a,f=0)=>{o=!0,l(f,a)}),o||l(-1,null)},i)}function fs(e,t,r,n,s){m&&Je();var i=t.$$slots?.[r],l=!1;i===!0&&(i=t[r],l=!0),i===void 0?s!==null&&s(e):i(e,l?()=>n:n)}function us(e,t){Hn(()=>{var r=e.getRootNode(),n=r.host?r:r.head??r.ownerDocument.head;if(!n.querySelector("#"+t.hash)){const s=bt("style");s.id=t.hash,s.textContent=t.code,n.appendChild(s)}})}function cs(e,t,r){var n=""+e;return n}function hs(e,t){return e==null?null:String(e)}function ds(e,t,r,n,s,i){var l=e.__className;if(m||l!==r||l===void 0){var o=cs(r);(!m||o!==e.getAttribute("class"))&&(o==null?e.removeAttribute("class"):e.className=o),e.__className=r}return i}function vs(e,t,r,n){var s=e.__style;if(m||s!==t){var i=hs(t);(!m||i!==e.getAttribute("style"))&&(i==null?e.removeAttribute("style"):e.style.cssText=i),e.__style=t}return n}const _s=Symbol("is custom element"),ps=Symbol("is html"),gs=tn?"link":"LINK";function Lr(e,t,r,n){var s=bs(e);m&&(s[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName===gs)||s[t]!==(s[t]=r)&&(t==="loading"&&(e[en]=r),r==null?e.removeAttribute(t):typeof r!="string"&&Ir(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function Dr(e,t,r){var n=p,s=g;let i=m;m&&le(!1),L(null),B(null);try{t!=="style"&&(St.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.nodeName.toLowerCase())?Ir(e).includes(t):r&&typeof r=="object")?e[t]=r:Lr(e,t,r==null?r:String(r))}finally{L(n),B(s),i&&le(!0)}}function bs(e){return e.__attributes??={[_s]:e.nodeName.includes("-"),[ps]:e.namespaceURI===Ct}}var St=new Map;function Ir(e){var t=e.getAttribute("is")||e.nodeName,r=St.get(t);if(r)return r;St.set(t,r=[]);for(var n,s=e,i=Element.prototype;i!==s;){n=Yr(s);for(var l in n)n[l].set&&r.push(l);s=Mt(s)}return r}function xt(e,t,r,n){var s=n,i=!0,l=()=>(i&&(i=!1,s=n),s),o;o=e[t],o===void 0&&n!==void 0&&(o=l());var a;a=()=>{var c=e[t];return c===void 0?l():(i=!0,c)};var f=!1,u=rr(()=>(f=!1,a())),h=g;return(function(c,_){if(arguments.length>0){const v=_?w(u):c;return x(u,v),f=!0,s!==void 0&&(s=v),c}return de&&f||(h.f&U)!==0?u.v:w(u)})}function ws(e){return new ms(e)}class ms{#e;#r;constructor(t){var r=new Map,n=(i,l)=>{var o=Cn(l,!1,!1);return r.set(i,o),o};const s=new Proxy({...t.props||{},$$events:{}},{get(i,l){return w(r.get(l)??n(l,Reflect.get(i,l)))},has(i,l){return l===Qr?!0:(w(r.get(l)??n(l,Reflect.get(i,l))),Reflect.has(i,l))},set(i,l,o){return x(r.get(l)??n(l,o),o),Reflect.set(i,l,o)}});this.#r=(t.hydrate?is:Mr)(t.component,{target:t.target,anchor:t.anchor,props:s,context:t.context,intro:t.intro??!1,recover:t.recover,transformError:t.transformError}),(!t?.props?.$$host||t.sync===!1)&&Ze(),this.#e=s.$$events;for(const i of Object.keys(this.#r))i==="$set"||i==="$destroy"||i==="$on"||Ye(this,i,{get(){return this.#r[i]},set(l){this.#r[i]=l},enumerable:!0});this.#r.$set=i=>{Object.assign(s,i)},this.#r.$destroy=()=>{os(this.#r)}}$set(t){this.#r.$set(t)}$on(t,r){this.#e[t]=this.#e[t]||[];const n=(...s)=>r.call(this,...s);return this.#e[t].push(n),()=>{this.#e[t]=this.#e[t].filter(s=>s!==n)}}$destroy(){this.#r.$destroy()}}let Fr;typeof HTMLElement=="function"&&(Fr=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;$$shadowRoot=null;constructor(e,t,r){super(),this.$$ctor=e,this.$$s=t,r&&(this.$$shadowRoot=this.attachShadow(r))}addEventListener(e,t,r){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}super.addEventListener(e,t,r)}removeEventListener(e,t,r){if(super.removeEventListener(e,t,r),this.$$c){const n=this.$$l_u.get(t);n&&(n(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(n){return s=>{const i=bt("slot");n!=="default"&&(i.name=n),Ce(s,i)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},r=ys(this);for(const n of this.$$s)n in r&&(n==="default"&&!this.$$d.children?(this.$$d.children=e(n),t.default=!0):t[n]=e(n));for(const n of this.attributes){const s=this.$$g_p(n.name);s in this.$$d||(this.$$d[s]=it(s,n.value,this.$$p_d,"toProp"))}for(const n in this.$$p_d)!(n in this.$$d)&&this[n]!==void 0&&(this.$$d[n]=this[n],delete this[n]);this.$$c=ws({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=jn(()=>{vr(()=>{this.$$r=!0;for(const n of Ve(this.$$c)){if(!this.$$p_d[n]?.reflect)continue;this.$$d[n]=this.$$c[n];const s=it(n,this.$$d[n],this.$$p_d,"toAttribute");s==null?this.removeAttribute(this.$$p_d[n].attribute||n):this.setAttribute(this.$$p_d[n].attribute||n,s)}this.$$r=!1})});for(const n in this.$$l)for(const s of this.$$l[n]){const i=this.$$c.$on(n,s);this.$$l_u.set(s,i)}this.$$l={}}}attributeChangedCallback(e,t,r){this.$$r||(e=this.$$g_p(e),this.$$d[e]=it(e,r,this.$$p_d,"toProp"),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return Ve(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function it(e,t,r,n){const s=r[e]?.type;if(t=s==="Boolean"&&typeof t!="boolean"?t!=null:t,!n||!r[e])return t;if(n==="toAttribute")switch(s){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(s){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function ys(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function $s(e,t,r,n,s,i){let l=class extends Fr{constructor(){super(e,r,s),this.$$p_d=t}static get observedAttributes(){return Ve(t).map(o=>(t[o].attribute||o).toLowerCase())}};return Ve(t).forEach(o=>{Ye(l.prototype,o,{get(){return this.$$c&&o in this.$$c?this.$$c[o]:this.$$d[o]},set(a){a=it(o,a,t),this.$$d[o]=a;var f=this.$$c;if(f){var u=Se(f,o)?.get;u?f[o]=a:f.$set({[o]:a})}}})}),n.forEach(o=>{Ye(l.prototype,o,{get(){return this.$$c?.[o]}})}),e.element=l,l}const Es={version:"0.66.6"};function Ts(e){const t=e?.repoName.split("/")?.[1]||e?.repoName;if(!t)throw new Error("wrong componentPath "+e?.repoName);if(!e?.version)throw new Error("wrong version "+e?.version);const r=e?.iifePath||"main.iife.js";if(!document.getElementById(t+"-script"))try{const n=document.createElement("script");if(n.id=t+"-script",n.src=`https://cdn.jsdelivr.net/npm/${e.repoName}@${e.version}/${r}`,e?.local)n.src=`${e.local}`;else if(location.href.includes("localhost:6006")){const s=t.split("-")[0];n.src=`http://localhost:6006/webcomponents/${t.replace(s+"-","")}/${r}`}document.head.appendChild(n)}catch(n){console.warn(n)}}var Ss=Et('<div class="progress svelte-cq5tos"><div class="progress-bar progress-bar-striped progress-bar-animated svelte-cq5tos" role="progressbar" aria-valuenow="100" aria-valuemin="0" aria-valuemax="100" style="width: 100%"></div></div>'),xs=Et('<div class="progress svelte-cq5tos"><div class="progress-bar svelte-cq5tos" role="progressbar" aria-valuemin="0" aria-valuemax="100"> </div></div>'),ks=Et('<hb-dialog><span slot="title" class="svelte-cq5tos"><!></span> <div slot="body-content" class="svelte-cq5tos"><!></div> <span slot="modal-footer" class="svelte-cq5tos"></span></hb-dialog>',2);const As={hash:"svelte-cq5tos",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");
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)on(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):Pn(r)&&(i&16&&this.#s.add(r),zn(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)&&Pn(r)&&(P=new Set,zn(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&vn(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||zn(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=Pt(0),r;return()=>{nn()&&($(n),dn(()=>(t===0&&(r=Hn(()=>e(()=>Rt(n)))),t+=1,()=>{Ue(()=>{--t,t===0&&(r?.(),r=void 0,Rt(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=Pt(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=pn(()=>{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,yn(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();Cn(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&&yn(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&&It(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&&yn(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:Tt;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=Pt(n),s=!W,c=new Map;return un(()=>{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,It(o,n);else{o.f&8388608&&(o.f^=ue),It(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`))}),rn(()=>{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 t.equals=Fe,t}function Et(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)H(t[n])}}function Dt(e){for(var t=e.parent;t!==null;){if(!(t.f&2))return t.f&16384?null:t;t=t.parent}return null}function Ot(e){var t,n=q;J(Dt(e));try{e.f&=~se,Et(e),t=In(e)}finally{J(n)}return t}function kt(e){var t=e.v,n=Ot(e);if(!e.equals(n)&&(e.wv=Nn(),(!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):(nn()||M?.is_fork)&&N.set(e,n))}function At(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,Rn(t,0),hn(t))}function jt(e){if(e.effects!==null)for(let t of e.effects)t.teardown&&zn(t)}var Mt=new Set,F=new Map,Nt=!1;function Pt(e,t){return{f:0,v:e,reactions:null,equals:Ne,rv:0,wv:0}}function I(e,t){let n=Pt(e,t);return Dn(n),n}function Ft(e,t=!1,n=!0){let r=Pt(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(),It(e,n?Bt(t):t,rt)}function It(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&&Ot(t),N===null&&qe(t)}e.wv=Nn(),zt(e,b,n),Be()&&q!==null&&q.f&1024&&!(q.f&96)&&(Q===null?On([e]):Q.push(e)),!i.is_fork&&Mt.size>0&&!Nt&&Lt()}return t}function Lt(){Nt=!1;for(let e of Mt)e.f&1024&&A(e,x),Pn(e)&&zn(e);Mt.clear()}function Rt(e){L(e,e.v+1)}function zt(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),zt(u,x,n))}else if(l){var d=s;c&16&&P!==null&&P.add(d),n===null?ft(d):n.push(d)}}}}function Bt(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=jn,l=e=>{if(jn===c)return e();var t=W,n=jn;K(null),Mn(c);var r=e();return K(t),Mn(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),Rt(o)}}else L(i,n),Rt(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(Bt(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?Bt(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,Bt(i)),r.set(t,d));else{f=d.v!==n;var h=l(()=>Bt(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)}Rt(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 Vt,Ht,Ut,Wt;function Gt(){if(Vt===void 0){Vt=window,Ht=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;Ut=u(t,`firstChild`).get,Wt=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 Kt(e){return Ut.call(e)}function z(e){return Wt.call(e)}function qt(e,t){if(!C)return Kt(e);var n=Kt(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&&Qt(n),E(n),n}function Jt(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}Qt(r)}return E(r),r}function Yt(e){e.textContent=``}function Xt(){return!D||P!==null?!1:(q.f&ne)!==0}function Zt(e,t,n){let r=n?{is:n}:void 0;return document.createElementNS(t??`http://www.w3.org/1999/xhtml`,e,r)}function Qt(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 $t(e){var t=W,n=q;K(null),J(null);try{return e()}finally{K(t),J(n)}}function en(e){q===null&&(W===null&&ve(e),_e()),U&&ge(e)}function tn(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{zn(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&&tn(i,n),W!==null&&W.f&2&&!(e&64))){var a=W;(a.effects??=[]).push(i)}return r}function nn(){return W!==null&&!G}function rn(e){let t=B(8,null);return A(t,y),t.teardown=e,t}function an(e){en(`$effect`);var t=q.f;if(!W&&t&32&&!(t&32768)){var n=O;(n.e??=[]).push(e)}else return on(e)}function on(e){return B(4|oe,e)}function sn(e){ot.ensure();let t=B(64|ae,e);return()=>{H(t)}}function cn(e){ot.ensure();let t=B(64|ae,e);return(e={})=>new Promise(n=>{e.outro?yn(t,()=>{H(t),n(void 0)}):(H(t),n(void 0))})}function ln(e){return B(4,e)}function un(e){return B(le|ae,e)}function dn(e,t=0){return B(8|t,e)}function fn(e,t=[],n=[],r=[]){yt(r,t,n,t=>{B(8,()=>e(...t.map($)))})}function pn(e,t=0){return B(16|t,e)}function V(e){return B(32|ae,e)}function mn(e){var t=e.teardown;if(t!==null){let e=U,n=W;En(!0),K(null);try{t.call(null)}finally{En(e),K(n)}}}function hn(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){let e=n.ac;e!==null&&$t(()=>{e.abort(S)});var r=n.next;n.f&64?n.parent=null:H(n,t),n=r}}function gn(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&&(_n(e.nodes.start,e.nodes.end),n=!0),A(e,re),hn(e,t&&!n),Rn(e,0);var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)e.stop();mn(e),e.f^=re,e.f|=te;var i=e.parent;i!==null&&i.first!==null&&vn(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function _n(e,t){for(;e!==null;){var n=e===t?null:z(e);e.remove(),e=n}}function vn(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 yn(e,t,n=!0){var r=[];bn(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 bn(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;bn(i,t,o?n:!1),i=a}}}function xn(e){Sn(e,!0)}function Sn(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;Sn(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 Cn(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 wn=null,Tn=!1,U=!1;function En(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 Dn(e){W!==null&&(!D||W.f&2)&&(Y===null?Y=[e]:Y.push(e))}var X=null,Z=0,Q=null;function On(e){Q=e}var kn=1,An=0,jn=An;function Mn(e){jn=e}function Nn(){return++kn}function Pn(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(Pn(a)&&kt(a),a.wv>e.wv)return!0}t&512&&N===null&&A(e,y)}return!1}function Fn(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?Fn(a,t,!1):t===a&&(n?A(a,b):a.f&1024&&A(a,x),ft(a))}}function In(e){var t=X,n=Z,r=Q,i=W,a=Y,o=O,s=G,c=jn,l=e.f;X=null,Z=0,Q=null,W=l&96?null:e,Y=null,Le(e.ctx),G=!1,jn=++An,e.ac!==null&&($t(()=>{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||Rn(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(nn()&&e.f&512)for(m=Z;m<f.length;m++)(f[m].reactions??=[]).push(e)}else !p&&f!==null&&Z<f.length&&(Rn(e,Z),f.length=Z);if(Be()&&Q!==null&&!G&&f!==null&&!(e.f&6146))for(m=0;m<Q.length;m++)Fn(Q[m],e);if(i!==null&&i!==e){if(An++,i.deps!==null)for(let e=0;e<n;e+=1)i.deps[e].rv=An;if(t!==null)for(let e of t)e.rv=An;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,jn=c}}function Ln(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),At(s),Rn(s,0)}}function Rn(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)Ln(e,n[r])}function zn(e){var t=e.f;if(!(t&16384)){A(e,y);var n=q,r=Tn;q=e,Tn=!0;try{t&16777232?gn(e):hn(e),mn(e);var i=In(e);e.teardown=typeof i==`function`?i:null,e.wv=kn}finally{Tn=r,q=n}}}function $(e){var t=(e.f&2)!=0;if(wn?.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<An&&(e.rv=An,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||Vn(i))&&(a=Ot(i)),F.set(i,a),a}var s=(i.f&512)==0&&!G&&W!==null&&(Tn||(W.f&512)!=0),c=(i.f&ne)===0;Pn(i)&&(s&&(i.f|=512),kt(i)),s&&!c&&(jt(i),Bn(i))}if(N?.has(e))return N.get(e);if(e.f&8388608)throw e.v;return e.v}function Bn(e){if(e.f|=512,e.deps!==null)for(let t of e.deps)(t.reactions??=[]).push(e),t.f&2&&!(t.f&512)&&(jt(t),Bn(t))}function Vn(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&&Vn(t))return!0;return!1}function Hn(e){var t=G;try{return G=!0,e()}finally{G=t}}var Un=Symbol(`events`),Wn=new Set,Gn=new Set;function Kn(e,t,n,r={}){function i(e){if(r.capture||Yn.call(t,e),!e.cancelBubble)return $t(()=>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 qn(e,t,n,r,i){var a={capture:r,passive:i},o=Kn(e,t,n,a);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&rn(()=>{t.removeEventListener(e,o,a)})}var Jn=null;function Yn(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],a=i[0]||e.target;Jn=e;var o=0,s=Jn===e&&e[Un];if(s){var c=i.indexOf(s);if(c!==-1&&(t===document||t===window)){e[Un]=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[Un]?.[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[Un]=t,delete e.currentTarget,K(d),J(f)}}}var Xn=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy(`svelte-trusted-html`,{createHTML:e=>e});function Zn(e){return Xn?.createHTML(e)??e}function Qn(e){var t=Zt(`template`);return t.innerHTML=Zn(e.replaceAll(`<!>`,`<!---->`)),t.content}function $n(e,t){var n=q;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function er(e,t){var n=(t&1)!=0,r=(t&2)!=0,i,a=!e.startsWith(`<!>`);return()=>{if(C)return $n(T,null),T;i===void 0&&(i=Qn(a?e:`<!>`+e),n||(i=Kt(i)));var t=r||Ht?document.importNode(i,!0):i.cloneNode(!0);if(n){var o=Kt(t),s=t.lastChild;$n(o,s)}else $n(t,t);return t}}function tr(e=``){if(!C){var t=R(e+``);return $n(t,t),t}var n=T;return n.nodeType===3?Qt(n):(n.before(n=R()),E(n)),$n(n,n),n}function nr(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 rr=[`touchstart`,`touchmove`];function ir(e){return rr.includes(e)}function ar(e,t){var n=t==null?``:typeof t==`object`?`${t}`:t;n!==(e.__t??=e.nodeValue)&&(e.__t=n,e.nodeValue=`${n}`)}function or(e,t){return lr(e,t)}function sr(e,n){Gt(),n.intro=n.intro??!1;let r=n.target,i=C,a=T;try{for(var o=Kt(r);o&&(o.nodeType!==8||o.data!==`[`);)o=z(o);if(!o)throw t;w(!0),E(o);let i=lr(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(),Gt(),Yt(r),w(!1),or(e,n)}finally{w(i),E(a)}}var cr=new Map;function lr(e,{target:n,anchor:r,props:i={},events:a,context:o,intro:c=!0,transformError:l}){Gt();var u=void 0,d=cn(()=>{var c=r??n.appendChild(R());_t(c,{pending:()=>{}},n=>{Re({});var r=O;if(o&&(r.c=o),a&&(i.$$events=a),C&&$n(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=ir(r);for(let e of[n,document]){var a=cr.get(e);a===void 0&&(a=new Map,cr.set(e,a));var o=a.get(r);o===void 0?(e.addEventListener(r,Yn,{passive:i}),a.set(r,1)):a.set(r,o+1)}}}};return f(s(Wn)),Gn.add(f),()=>{for(var e of d)for(let r of[n,document]){var t=cr.get(r),i=t.get(e);--i==0?(r.removeEventListener(e,Yn),t.delete(e),t.size===0&&cr.delete(r)):t.set(e,i)}Gn.delete(f),c!==r&&c.parentNode?.removeChild(c)}});return ur.set(u,d),u}var ur=new WeakMap;function dr(e,t){let n=ur.get(e);return n?(ur.delete(e),n(t)):Promise.resolve()}var fr=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)xn(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();Cn(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),yn(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=Xt();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 pr(e,t,n=!1){var r;C&&(r=T,Oe());var i=new fr(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)}pn(()=>{var e=!1;t((t,n=0)=>{e=!0,o(n,t)}),e||o(-1,null)},a)}function mr(e,t,n,r,i){C&&Oe();var a=t.$$slots?.[n],o=!1;a===!0&&(a=t[n===`default`?`children`:n],o=!0),a===void 0?i!==null&&i(e):a(e,o?()=>r:r)}function hr(e,t){ln(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector(`#`+t.hash)){let e=Zt(`style`);e.id=t.hash,e.textContent=t.code,r.appendChild(e)}})}var gr=[...`
3
+ \r\f\xA0\v`];function _r(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||gr.includes(r[o-1]))&&(s===r.length||gr.includes(r[s]))?r=(o===0?``:r.substring(0,o))+r.substring(s+1):o=s}}return r===``?null:r}function vr(e,t=!1){var n=t?` !important;`:`;`,r=``;for(var i of Object.keys(e)){var a=e[i];a!=null&&a!==``&&(r+=` `+i+`: `+a+n)}return r}function yr(e){return e[0]!==`-`||e[1]!==`-`?e.toLowerCase():e}function br(e,t){if(t){var n=``,r,i;if(Array.isArray(t)?(r=t[0],i=t[1]):r=t,e){e=String(e).replaceAll(/\s*\/\*.*?\*\/\s*/g,``).trim();var a=!1,o=0,s=!1,c=[];r&&c.push(...Object.keys(r).map(yr)),i&&c.push(...Object.keys(i).map(yr));var l=0,u=-1;let t=e.length;for(var d=0;d<t;d++){var f=e[d];if(s?f===`/`&&e[d-1]===`*`&&(s=!1):a?a===f&&(a=!1):f===`/`&&e[d+1]===`*`?s=!0:f===`"`||f===`'`?a=f:f===`(`?o++:f===`)`&&o--,!s&&a===!1&&o===0){if(f===`:`&&u===-1)u=d;else if(f===`;`||d===t-1){if(u!==-1){var p=yr(e.substring(l,u).trim());if(!c.includes(p)){f!==`;`&&d++;var m=e.substring(l,d).trim();n+=` `+m+`;`}}l=d+1,u=-1}}}}return r&&(n+=vr(r)),i&&(n+=vr(i,!0)),n=n.trim(),n===``?null:n}return e==null?null:String(e)}function xr(e,t,n,r,i,a){var o=e.__className;if(C||o!==n||o===void 0){var s=_r(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}function Sr(e,t={},n,r){for(var i in n){var a=n[i];t[i]!==a&&(n[i]==null?e.style.removeProperty(i):e.style.setProperty(i,a,r))}}function Cr(e,t,n,r){var i=e.__style;if(C||i!==t){var a=br(t,r);(!C||a!==e.getAttribute(`style`))&&(a==null?e.removeAttribute(`style`):e.style.cssText=a),e.__style=t}else r&&(Array.isArray(r)?(Sr(e,n?.[0],r[0]),Sr(e,n?.[1],r[1],`important`)):Sr(e,n,r));return r}var wr=Symbol(`is custom element`),Tr=Symbol(`is html`),Er=me?`link`:`LINK`;function Dr(e,t,n,r){var i=kr(e);C&&(i[t]=e.getAttribute(t),t===`src`||t===`srcset`||t===`href`&&e.nodeName===Er)||i[t]!==(i[t]=n)&&(t===`loading`&&(e[pe]=n),n==null?e.removeAttribute(t):typeof n!=`string`&&jr(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function Or(e,t,n){var r=W,i=q;let a=C;C&&w(!1),K(null),J(null);try{t!==`style`&&(Ar.has(e.getAttribute(`is`)||e.nodeName)||!customElements||customElements.get(e.getAttribute(`is`)||e.nodeName.toLowerCase())?jr(e).includes(t):n&&typeof n==`object`)?e[t]=n:Dr(e,t,n==null?n:String(n))}finally{K(r),J(i),a&&w(!0)}}function kr(e){return e.__attributes??={[wr]:e.nodeName.includes(`-`),[Tr]:e.namespaceURI===r}}var Ar=new Map;function jr(e){var t=e.getAttribute(`is`)||e.nodeName,n=Ar.get(t);if(n)return n;Ar.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 Mr(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?Hn(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:Tt)(()=>(_=!1,h()));a&&$(v);var y=q;return(function(e,t){if(arguments.length>0){let n=t?$(v):i&&a?Bt(e):e;return L(v,n),_=!0,s!==void 0&&(s=n),e}return U&&_||y.f&16384?v.v:$(v)})}function Nr(e){return new Pr(e)}var Pr=class{#e;#t;constructor(e){var t=new Map,n=(e,n)=>{var r=Ft(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?sr:or)(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=()=>{dr(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()}},Fr;typeof HTMLElement==`function`&&(Fr=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;$$shadowRoot=null;constructor(e,t,n){super(),this.$$ctor=e,this.$$s=t,n&&(this.$$shadowRoot=this.attachShadow(n))}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){let n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){let e=this.$$l_u.get(t);e&&(e(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){if(await Promise.resolve(),!this.$$cn||this.$$c)return;function e(e){return t=>{let n=Zt(`slot`);e!==`default`&&(n.name=e),nr(t,n)}}let t={},n=Lr(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]=Ir(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=Nr({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=sn(()=>{dn(()=>{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=Ir(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]=Ir(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 Ir(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 Lr(e){let t={};return e.childNodes.forEach(e=>{t[e.slot||`default`]=!0}),t}function Rr(e,t,n,r,i,a){let o=class extends Fr{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=Ir(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 zr={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 Br(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 Vr=er(`<div class="progress svelte-cq5tos"><div class="progress-bar progress-bar-striped progress-bar-animated svelte-cq5tos" role="progressbar" aria-valuenow="100" aria-valuemin="0" aria-valuemax="100" style="width: 100%"></div></div>`),Hr=er(`<div class="progress svelte-cq5tos"><div class="progress-bar svelte-cq5tos" role="progressbar" aria-valuemin="0" aria-valuemax="100"> </div></div>`),Ur=er(`<hb-dialog><span slot="title" class="svelte-cq5tos"><!></span> <div slot="body-content" class="svelte-cq5tos"><!></div> <span slot="modal-footer" class="svelte-cq5tos"></span></hb-dialog>`,2),Wr={hash:`svelte-cq5tos`,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
@@ -16,5 +17,5 @@
16
17
  animation: 1s linear infinite svelte-cq5tos-progress-bar-stripes;}
17
18
  @media (prefers-reduced-motion: reduce) {.progress-bar-animated.svelte-cq5tos {
18
19
  animation: none;}
19
- }:host {font-family:"Roboto", sans-serif;}`};function qr(e,t){Ht(t,!0),us(e,As);function r(d){const b=new Headers;if(!d)return b;for(const[C,R]of Object.entries(d))R!=null&&R!==""&&b.set(C,R);return b}function n(d,b){if(d instanceof FormData)return{blob:new Blob,trackProgress:!1};if(typeof d=="string")return{blob:new Blob([d]),trackProgress:!0};if(d instanceof Blob)return{blob:d,trackProgress:!0};if(d instanceof ArrayBuffer)return{blob:new Blob([d]),trackProgress:!0};if(ArrayBuffer.isView(d)){const C=d,R=new Uint8Array(C.byteLength);return R.set(new Uint8Array(C.buffer,C.byteOffset,C.byteLength)),{blob:new Blob([R]),trackProgress:!0}}return b.has("Content-Type")||b.set("Content-Type","application/json"),{blob:new Blob([JSON.stringify(d)]),trackProgress:!0}}function s(d,b){const C=d.size,R=d.stream().getReader();let _e=0;return new ReadableStream({async pull(re){const{done:pe,value:Pe}=await R.read();if(pe){re.close();return}_e+=Pe.byteLength,b(_e,C),re.enqueue(Pe)},cancel(){R.cancel()}})}function i(d,b){t.$$host.dispatchEvent(new CustomEvent(d,{detail:b}))}Ts({repoName:"@htmlbricks/hb-dialog",version:Es.version});let l=xt(t,"id",7,""),o=xt(t,"upload_id",7,void 0),a=xt(t,"fetch_data",7,void 0),f=j(0),u=j(0),h=j(!1),c=j(null);qn(()=>{o()||o(l()+"_dialog"),w(h)||x(h,!1);try{a()&&typeof a()=="string"&&a(JSON.parse(a()))}catch(d){console.error(d)}});async function _(){function d(b){console.error(b),x(c,b?.message||"upload error",!0),i("uploadError",{completed:w(h),id:o(),error:b})}x(u,0);try{if(a()){const b=(a().method||"POST").toUpperCase(),C=r(a().headers),{blob:R,trackProgress:_e}=n(a().data,C);let re;a().data instanceof FormData?re=a().data:_e&&R.size>0?re=s(R,(Pe,Ms)=>{x(f,Ms,!0),x(u,Pe,!0)}):(re=R,_e&&R.size===0&&(x(f,0),x(u,0)));const pe=await fetch(a().url,{method:b,headers:C,body:re});if(!pe.ok){const Pe=await pe.text().catch(()=>"");throw new Error(Pe||pe.statusText||`Request failed (${pe.status})`)}return(a().data instanceof FormData||_e&&R.size===0)&&(x(f,Math.max(w(f),1),!0),x(u,w(f),!0)),i("uploadComplete",{completed:w(h),id:o()})}else return x(c,"No fetch data provided"),d(new Error(w(c)))}catch(b){return console.error("upload error ",b),d(b instanceof Error?b:new Error(String(b)))}}function v(d){x(c,null),d.show&&a()?.url&&_().catch(console.error),i("modalShow",d)}var y={get id(){return l()},set id(d=""){l(d),Ze()},get upload_id(){return o()},set upload_id(d=void 0){o(d),Ze()},get fetch_data(){return a()},set fetch_data(d=void 0){a(d),Ze()}},E=ks();tt(()=>Dr(E,"id",o())),tt(()=>Dr(E,"show",a()?.url||w(u)&&w(f)?"yes":"no")),ds(E,1,"svelte-cq5tos");var M=Be(E),ve=Be(M);fs(ve,t,"title",{},d=>{var b=Or("Uploading");Ce(d,b)}),Le(M);var Me=Pn(M,2),Ns=Be(Me);{var Rs=d=>{var b=Ss();Ce(d,b)},Os=d=>{var b=xs(),C=Be(b),R=Be(C);Le(C),Le(b),tt((_e,re,pe)=>{vs(C,`width:${_e??""}%`),Lr(C,"aria-valuenow",re),Cr(R,`${pe??""}%`)},[()=>Math.round(w(u)/w(f)*100),()=>Math.round(w(u)/w(f)*100),()=>Math.round(w(u)/w(f)*100)]),Ce(d,b)},Cs=d=>{var b=Or();tt(()=>Cr(b,w(c))),Ce(d,b)};as(Ns,d=>{!w(f)&&!w(c)?d(Rs):w(c)?w(c)&&d(Cs,2):d(Os,1)})}return Le(Me),qt(2),Le(E),Qn("modalShow",E,d=>v(d.detail)),Ce(e,E),zt(y)}customElements.define("hb-uploader",$s(qr,{id:{},upload_id:{},fetch_data:{}},["title"],[],{mode:"open"})),kt.Component=qr,Object.defineProperty(kt,Symbol.toStringTag,{value:"Module"})})(this.uploader=this.uploader||{});
20
- //# sourceMappingURL=main.iife.js.map
20
+ }:host {font-family:"Roboto", sans-serif;}`};function Gr(e,t){Re(t,!0),hr(e,Wr);function n(e){let t=new Headers;if(!e)return t;for(let[n,r]of Object.entries(e))r!=null&&r!==``&&t.set(n,r);return t}function r(e,t){if(e instanceof FormData)return{blob:new Blob,trackProgress:!1};if(typeof e==`string`)return{blob:new Blob([e]),trackProgress:!0};if(e instanceof Blob)return{blob:e,trackProgress:!0};if(e instanceof ArrayBuffer)return{blob:new Blob([e]),trackProgress:!0};if(ArrayBuffer.isView(e)){let t=e,n=new Uint8Array(t.byteLength);return n.set(new Uint8Array(t.buffer,t.byteOffset,t.byteLength)),{blob:new Blob([n]),trackProgress:!0}}return t.has(`Content-Type`)||t.set(`Content-Type`,`application/json`),{blob:new Blob([JSON.stringify(e)]),trackProgress:!0}}function i(e,t){let n=e.size,r=e.stream().getReader(),i=0;return new ReadableStream({async pull(e){let{done:a,value:o}=await r.read();if(a){e.close();return}i+=o.byteLength,t(i,n),e.enqueue(o)},cancel(){r.cancel()}})}function a(e,n){t.$$host.dispatchEvent(new CustomEvent(e,{detail:n}))}Br({repoName:`@htmlbricks/hb-dialog`,version:zr.version});let o=Mr(t,`id`,7,``),s=Mr(t,`upload_id`,7,void 0),c=Mr(t,`fetch_data`,7,void 0),l=I(0),u=I(0),d=I(!1),f=I(null);an(()=>{s()||s(o()+`_dialog`),$(d)||L(d,!1);try{c()&&typeof c()==`string`&&c(JSON.parse(c()))}catch(e){console.error(e)}});async function p(){function e(e){console.error(e),L(f,e?.message||`upload error`,!0),a(`uploadError`,{completed:$(d),id:s(),error:e})}L(u,0);try{if(c()){let e=(c().method||`POST`).toUpperCase(),t=n(c().headers),{blob:o,trackProgress:f}=r(c().data,t),p;c().data instanceof FormData?p=c().data:f&&o.size>0?p=i(o,(e,t)=>{L(l,t,!0),L(u,e,!0)}):(p=o,f&&o.size===0&&(L(l,0),L(u,0)));let m=await fetch(c().url,{method:e,headers:t,body:p});if(!m.ok){let e=await m.text().catch(()=>``);throw Error(e||m.statusText||`Request failed (${m.status})`)}return(c().data instanceof FormData||f&&o.size===0)&&(L(l,Math.max($(l),1),!0),L(u,$(l),!0)),a(`uploadComplete`,{completed:$(d),id:s()})}else return L(f,`No fetch data provided`),e(Error($(f)))}catch(t){return console.error(`upload error `,t),e(t instanceof Error?t:Error(String(t)))}}function m(e){L(f,null),e.show&&c()?.url&&p().catch(console.error),a(`modalShow`,e)}var h={get id(){return o()},set id(e=``){o(e),st()},get upload_id(){return s()},set upload_id(e=void 0){s(e),st()},get fetch_data(){return c()},set fetch_data(e=void 0){c(e),st()}},g=Ur();fn(()=>Or(g,`id`,s())),fn(()=>Or(g,`show`,c()?.url||$(u)&&$(l)?`yes`:`no`)),xr(g,1,`svelte-cq5tos`);var _=qt(g);mr(qt(_),t,`title`,{},e=>{nr(e,tr(`Uploading`))}),ke(_);var v=Jt(_,2),y=qt(v),b=e=>{nr(e,Vr())},x=e=>{var t=Hr(),n=qt(t),r=qt(n);ke(n),ke(t),fn((e,t,i)=>{Cr(n,`width:${e??``}%`),Dr(n,`aria-valuenow`,t),ar(r,`${i??``}%`)},[()=>Math.round($(u)/$(l)*100),()=>Math.round($(u)/$(l)*100),()=>Math.round($(u)/$(l)*100)]),nr(e,t)},ee=e=>{var t=tr();fn(()=>ar(t,$(f))),nr(e,t)};return pr(y,e=>{!$(l)&&!$(f)?e(b):$(f)?$(f)&&e(ee,2):e(x,1)}),ke(v),Ae(2),ke(g),qn(`modalShow`,g,e=>m(e.detail)),nr(e,g),ze(h)}customElements.define(`hb-uploader`,Rr(Gr,{id:{},upload_id:{},fetch_data:{}},[`title`],[],{mode:`open`})),e.Component=Gr})(this.uploader=this.uploader||{});
21
+ //# sourceMappingURL=main.iife.js.map