@htmlbricks/hb-downloader 0.61.50 → 0.61.52
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 +9 -10
- package/main.iife.js.map +1 -1
- package/manifest.json +1 -1
- package/package.json +1 -1
package/main.iife.js
CHANGED
|
@@ -1,21 +1,20 @@
|
|
|
1
|
-
(function(Ct){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const qr=1,Ir=2,Rt="[",Nt="[!",At="]",me={},N=Symbol(),jr="http://www.w3.org/1999/xhtml",Ot=!1;var St=Array.isArray,Fr=Array.prototype.indexOf,Hr=Array.from,He=Object.keys,we=Object.defineProperty,be=Object.getOwnPropertyDescriptor,Ur=Object.getOwnPropertyDescriptors,Yr=Object.prototype,Br=Array.prototype,Lt=Object.getPrototypeOf,Pt=Object.isExtensible;function Mt(e){for(var t=0;t<e.length;t++)e[t]()}function Gr(){var e,t,r=new Promise((n,i)=>{e=n,t=i});return{promise:r,resolve:e,reject:t}}const D=2,nt=4,it=8,ye=16,G=32,V=64,Dt=128,I=256,Ue=512,O=1024,j=2048,X=4096,z=8192,se=16384,st=32768,at=65536,qt=1<<17,Wr=1<<18,Ee=1<<19,Vr=1<<20,ot=1<<21,lt=1<<22,ae=1<<23,ut=Symbol("$state"),Xr=Symbol("legacy props"),zr=Symbol(""),ft=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},It=3,Ye=8;function Jr(){throw new Error("https://svelte.dev/e/await_outside_boundary")}function Kr(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Zr(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Qr(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function en(e){throw new Error("https://svelte.dev/e/effect_orphan")}function tn(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function rn(){throw new Error("https://svelte.dev/e/hydration_failed")}function nn(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function sn(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function an(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Be(e){console.warn("https://svelte.dev/e/hydration_mismatch")}let $=!1;function J(e){$=e}let x;function K(e){if(e===null)throw Be(),me;return x=e}function Ge(){return K(Q(x))}function Se(e){if($){if(Q(x)!==null)throw Be(),me;x=e}}function on(e=1){if($){for(var t=e,r=x;t--;)r=Q(r);x=r}}function ln(){for(var e=0,t=x;;){if(t.nodeType===Ye){var r=t.data;if(r===At){if(e===0)return t;e-=1}else(r===Rt||r===Nt)&&(e+=1)}var n=Q(t);t.remove(),t=n}}function un(e){if(!e||e.nodeType!==Ye)throw Be(),me;return e.data}function jt(e){return e===this.v}function fn(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function cn(e){return!fn(e,this.v)}let dn=!1,U=null;function We(e){U=e}function Ft(e,t=!1,r){U={p:U,c:null,e:null,s:e,x:null,l:null}}function Ht(e){var t=U,r=t.e;if(r!==null){t.e=null;for(var n of r)sr(n)}return e!==void 0&&(t.x=e),U=t.p,e??{}}function Ut(){return!0}const vn=new WeakMap;function hn(e){var t=w;if(t===null)return b.f|=ae,e;if((t.f&st)===0){if((t.f&Dt)===0)throw!t.parent&&e instanceof Error&&Yt(e),e;t.b.error(e)}else ct(e,t)}function ct(e,t){for(;t!==null;){if((t.f&Dt)!==0)try{t.b.error(e);return}catch(r){e=r}t=t.parent}throw e instanceof Error&&Yt(e),e}function Yt(e){const t=vn.get(e);t&&(we(e,"message",{value:t.message}),we(e,"stack",{value:t.stack}))}let Le=[],dt=[];function Bt(){var e=Le;Le=[],Mt(e)}function _n(){var e=dt;dt=[],Mt(e)}function pn(e){Le.length===0&&queueMicrotask(Bt),Le.push(e)}function gn(){Le.length>0&&Bt(),dt.length>0&&_n()}function mn(){const e=w.b;return e===null&&Jr(),e}function Gt(e){var t=D|j,r=b!==null&&(b.f&D)!==0?b:null;return w===null||r!==null&&(r.f&I)!==0?t|=I:w.f|=Ee,{ctx:U,deps:null,effects:null,equals:jt,f:t,fn:e,reactions:null,rv:0,v:N,wv:0,parent:r??w,ac:null}}function wn(e,t){let r=w;r===null&&Kr();var n=r.b,i=void 0,s=pt(N),a=null,o=!b;return Mn(()=>{try{var l=e();a&&Promise.resolve(l).catch(()=>{})}catch(d){l=Promise.reject(d)}var u=()=>l;i=a?.then(u,u)??Promise.resolve(l),a=i;var f=A,c=n.is_pending();o&&(n.update_pending_count(1),c||f.increment());const v=(d,h=void 0)=>{a=null,c||f.activate(),h?h!==ft&&(s.f|=ae,gt(s,h)):((s.f&ae)!==0&&(s.f^=ae),gt(s,d)),o&&(n.update_pending_count(-1),c||f.decrement()),Xt()};if(i.then(v,d=>v(null,d||"unknown")),f)return()=>{queueMicrotask(()=>f.neuter())}}),new Promise(l=>{function u(f){function c(){f===i?l(s):u(i)}f.then(c,c)}u(i)})}function Wt(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)ee(t[r])}}function bn(e){for(var t=e.parent;t!==null;){if((t.f&D)===0)return t;t=t.parent}return null}function vt(e){var t,r=w;B(bn(e));try{Wt(e),t=mr(e)}finally{B(r)}return t}function Vt(e){var t=vt(e);if(e.equals(t)||(e.v=t,e.wv=pr()),!ce){var r=(te||(e.f&I)!==0)&&e.deps!==null?X:O;M(e,r)}}function yn(e,t,r){const n=Gt;if(t.length===0){r(e.map(n));return}var i=A,s=w,a=En(),o=mn();Promise.all(t.map(l=>wn(l))).then(l=>{i?.activate(),a();try{r([...e.map(n),...l])}catch(u){(s.f&se)===0&&ct(u,s)}i?.deactivate(),Xt()}).catch(l=>{o.error(l)})}function En(){var e=w,t=b,r=U,n=A;return function(){B(e),F(t),We(r),n?.activate()}}function Xt(){B(null),F(null),We(null)}const ht=new Set;let A=null,zt=new Set,Ve=[];function Jt(){const e=Ve.shift();Ve.length>0&&queueMicrotask(Jt),e()}let oe=[],Xe=null,_t=!1,ze=!1;class le{current=new Map;#t=new Map;#e=new Set;#r=0;#u=null;#f=!1;#i=[];#a=[];#s=[];#n=[];#o=[];#c=[];#d=[];skipped_effects=new Set;process(t){oe=[];for(const i of t)this.#h(i);if(this.#i.length===0&&this.#r===0){this.#v();var r=this.#s,n=this.#n;this.#s=[],this.#n=[],this.#o=[],A=null,Zt(r),Zt(n),A===null?A=this:ht.delete(this),this.#u?.resolve()}else this.#l(this.#s),this.#l(this.#n),this.#l(this.#o);for(const i of this.#i)Re(i);for(const i of this.#a)Re(i);this.#i=[],this.#a=[]}#h(t){t.f^=O;for(var r=t.first;r!==null;){var n=r.f,i=(n&(G|V))!==0,s=i&&(n&O)!==0,a=s||(n&z)!==0||this.skipped_effects.has(r);if(!a&&r.fn!==null){if(i)r.f^=O;else if((n&nt)!==0)this.#n.push(r);else if((n&O)===0)if((n<)!==0){var o=r.b?.is_pending()?this.#a:this.#i;o.push(r)}else Ke(r)&&((r.f&ye)!==0&&this.#o.push(r),Re(r));var l=r.first;if(l!==null){r=l;continue}}var u=r.parent;for(r=r.next;r===null&&u!==null;)r=u.next,u=u.parent}}#l(t){for(const r of t)((r.f&j)!==0?this.#c:this.#d).push(r),M(r,O);t.length=0}capture(t,r){this.#t.has(t)||this.#t.set(t,r),this.current.set(t,t.v)}activate(){A=this}deactivate(){A=null;for(const t of zt)if(zt.delete(t),t(),A!==null)break}neuter(){this.#f=!0}flush(){oe.length>0?Kt():this.#v(),A===this&&(this.#r===0&&ht.delete(this),this.deactivate())}#v(){if(!this.#f)for(const t of this.#e)t();this.#e.clear()}increment(){this.#r+=1}decrement(){if(this.#r-=1,this.#r===0){for(const t of this.#c)M(t,j),Te(t);for(const t of this.#d)M(t,X),Te(t);this.#s=[],this.#n=[],this.flush()}else this.deactivate()}add_callback(t){this.#e.add(t)}settled(){return(this.#u??=Gr()).promise}static ensure(){if(A===null){const t=A=new le;ht.add(A),ze||le.enqueue(()=>{A===t&&t.flush()})}return A}static enqueue(t){Ve.length===0&&queueMicrotask(Jt),Ve.unshift(t)}}function $e(e){var t=ze;ze=!0;try{for(var r;;){if(gn(),oe.length===0&&(A?.flush(),oe.length===0))return Xe=null,r;Kt()}}finally{ze=t}}function Kt(){var e=Ce;_t=!0;try{var t=0;for(dr(!0);oe.length>0;){var r=le.ensure();if(t++>1e3){var n,i;$n()}r.process(oe),Z.clear()}}finally{_t=!1,dr(e),Xe=null}}function $n(){try{tn()}catch(e){ct(e,Xe)}}let ue=null;function Zt(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var n=e[r++];if((n.f&(se|z))===0&&Ke(n)&&(ue=[],Re(n),n.deps===null&&n.first===null&&n.nodes_start===null&&(n.teardown===null&&n.ac===null?lr(n):n.fn=null),ue?.length>0)){Z.clear();for(const i of ue)Re(i);ue=[]}}ue=null}}function Te(e){for(var t=Xe=e;t.parent!==null;){t=t.parent;var r=t.f;if(_t&&t===w&&(r&ye)!==0)return;if((r&(V|G))!==0){if((r&O)===0)return;t.f^=O}}oe.push(t)}const Z=new Map;function pt(e,t){var r={f:0,v:e,reactions:null,equals:jt,rv:0,wv:0};return r}function L(e,t){const r=pt(e);return Un(r),r}function Tn(e,t=!1,r=!0){const n=pt(e);return t||(n.equals=cn),n}function C(e,t,r=!1){b!==null&&(!de||(b.f&qt)!==0)&&Ut()&&(b.f&(D|ye|lt|qt))!==0&&!W?.includes(e)&&an();let n=r?xe(t):t;return gt(e,n)}function gt(e,t){if(!e.equals(t)){var r=e.v;ce?Z.set(e,t):Z.set(e,r),e.v=t;var n=le.ensure();n.capture(e,r),(e.f&D)!==0&&((e.f&j)!==0&&vt(e),M(e,(e.f&I)===0?O:X)),e.wv=pr(),Qt(e,j),w!==null&&(w.f&O)!==0&&(w.f&(G|V))===0&&(H===null?Yn([e]):H.push(e))}return t}function mt(e){C(e,e.v+1)}function Qt(e,t){var r=e.reactions;if(r!==null)for(var n=r.length,i=0;i<n;i++){var s=r[i],a=s.f,o=(a&j)===0;o&&M(s,t),(a&D)!==0?Qt(s,X):o&&((a&ye)!==0&&ue!==null&&ue.push(s),Te(s))}}function xe(e){if(typeof e!="object"||e===null||ut in e)return e;const t=Lt(e);if(t!==Yr&&t!==Br)return e;var r=new Map,n=St(e),i=L(0),s=ve,a=o=>{if(ve===s)return o();var l=b,u=ve;F(null),_r(s);var f=o();return F(l),_r(u),f};return n&&r.set("length",L(e.length)),new Proxy(e,{defineProperty(o,l,u){(!("value"in u)||u.configurable===!1||u.enumerable===!1||u.writable===!1)&&nn();var f=r.get(l);return f===void 0?f=a(()=>{var c=L(u.value);return r.set(l,c),c}):C(f,u.value,!0),!0},deleteProperty(o,l){var u=r.get(l);if(u===void 0){if(l in o){const f=a(()=>L(N));r.set(l,f),mt(i)}}else C(u,N),mt(i);return!0},get(o,l,u){if(l===ut)return e;var f=r.get(l),c=l in o;if(f===void 0&&(!c||be(o,l)?.writable)&&(f=a(()=>{var d=xe(c?o[l]:N),h=L(d);return h}),r.set(l,f)),f!==void 0){var v=g(f);return v===N?void 0:v}return Reflect.get(o,l,u)},getOwnPropertyDescriptor(o,l){var u=Reflect.getOwnPropertyDescriptor(o,l);if(u&&"value"in u){var f=r.get(l);f&&(u.value=g(f))}else if(u===void 0){var c=r.get(l),v=c?.v;if(c!==void 0&&v!==N)return{enumerable:!0,configurable:!0,value:v,writable:!0}}return u},has(o,l){if(l===ut)return!0;var u=r.get(l),f=u!==void 0&&u.v!==N||Reflect.has(o,l);if(u!==void 0||w!==null&&(!f||be(o,l)?.writable)){u===void 0&&(u=a(()=>{var v=f?xe(o[l]):N,d=L(v);return d}),r.set(l,u));var c=g(u);if(c===N)return!1}return f},set(o,l,u,f){var c=r.get(l),v=l in o;if(n&&l==="length")for(var d=u;d<c.v;d+=1){var h=r.get(d+"");h!==void 0?C(h,N):d in o&&(h=a(()=>L(N)),r.set(d+"",h))}if(c===void 0)(!v||be(o,l)?.writable)&&(c=a(()=>L(void 0)),C(c,xe(u)),r.set(l,c));else{v=c.v!==N;var m=a(()=>xe(u));C(c,m)}var S=Reflect.getOwnPropertyDescriptor(o,l);if(S?.set&&S.set.call(f,u),!v){if(n&&typeof l=="string"){var k=r.get("length"),T=Number(l);Number.isInteger(T)&&T>=k.v&&C(k,T+1)}mt(i)}return!0},ownKeys(o){g(i);var l=Reflect.ownKeys(o).filter(c=>{var v=r.get(c);return v===void 0||v.v!==N});for(var[u,f]of r)f.v!==N&&!(u in o)&&l.push(u);return l},setPrototypeOf(){sn()}})}var er,tr,rr,nr;function wt(){if(er===void 0){er=window,tr=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;rr=be(t,"firstChild").get,nr=be(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 fe(e=""){return document.createTextNode(e)}function ke(e){return rr.call(e)}function Q(e){return nr.call(e)}function Pe(e,t){if(!$)return ke(e);var r=ke(x);return r===null&&(r=x.appendChild(fe())),K(r),r}function ir(e,t){if(!$){var r=ke(e);return r instanceof Comment&&r.data===""?Q(r):r}return x}function xn(e,t=1,r=!1){let n=$?x:e;for(var i;t--;)i=n,n=Q(n);if(!$)return n;if(r&&n?.nodeType!==It){var s=fe();return n===null?i?.after(s):n.before(s),K(s),s}return K(n),n}function kn(e){e.textContent=""}function Cn(){return!1}function bt(e){var t=b,r=w;F(null),B(null);try{return e()}finally{F(t),B(r)}}function Rn(e){w===null&&b===null&&en(),b!==null&&(b.f&I)!==0&&w===null&&Qr(),ce&&Zr()}function Nn(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function Y(e,t,r,n=!0){var i=w;i!==null&&(i.f&z)!==0&&(e|=z);var s={ctx:U,deps:null,nodes_start:null,nodes_end:null,f:e|j,first:null,fn:t,last:null,next:null,parent:i,b:i&&i.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(r)try{Re(s),s.f|=st}catch(l){throw ee(s),l}else t!==null&&Te(s);if(n){var a=s;if(r&&a.deps===null&&a.teardown===null&&a.nodes_start===null&&a.first===a.last&&(a.f&Ee)===0&&(a=a.first),a!==null&&(a.parent=i,i!==null&&Nn(a,i),b!==null&&(b.f&D)!==0&&(e&V)===0)){var o=b;(o.effects??=[]).push(a)}}return s}function An(e){const t=Y(it,null,!1);return M(t,O),t.teardown=e,t}function On(e){Rn();var t=w.f,r=!b&&(t&G)!==0&&(t&st)===0;if(r){var n=U;(n.e??=[]).push(e)}else return sr(e)}function sr(e){return Y(nt|Vr,e,!1)}function Sn(e){le.ensure();const t=Y(V|Ee,e,!0);return()=>{ee(t)}}function Ln(e){le.ensure();const t=Y(V|Ee,e,!0);return(r={})=>new Promise(n=>{r.outro?ur(t,()=>{ee(t),n(void 0)}):(ee(t),n(void 0))})}function Pn(e){return Y(nt,e,!1)}function Mn(e){return Y(lt|Ee,e,!0)}function Dn(e,t=0){return Y(it|t,e,!0)}function Je(e,t=[],r=[]){yn(t,r,n=>{Y(it,()=>e(...n.map(g)),!0)})}function qn(e,t=0){var r=Y(ye|t,e,!0);return r}function yt(e,t=!0){return Y(G|Ee,e,!0,t)}function ar(e){var t=e.teardown;if(t!==null){const r=ce,n=b;vr(!0),F(null);try{t.call(null)}finally{vr(r),F(n)}}}function or(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const i=r.ac;i!==null&&bt(()=>{i.abort(ft)});var n=r.next;(r.f&V)!==0?r.parent=null:ee(r,t),r=n}}function In(e){for(var t=e.first;t!==null;){var r=t.next;(t.f&G)===0&&ee(t),t=r}}function ee(e,t=!0){var r=!1;(t||(e.f&Wr)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(jn(e.nodes_start,e.nodes_end),r=!0),or(e,t&&!r),Ze(e,0),M(e,se);var n=e.transitions;if(n!==null)for(const s of n)s.stop();ar(e);var i=e.parent;i!==null&&i.first!==null&&lr(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function jn(e,t){for(;e!==null;){var r=e===t?null:Q(e);e.remove(),e=r}}function lr(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 ur(e,t){var r=[];fr(e,r,!0),Fn(r,()=>{ee(e),t&&t()})}function Fn(e,t){var r=e.length;if(r>0){var n=()=>--r||t();for(var i of e)i.out(n)}else t()}function fr(e,t,r){if((e.f&z)===0){if(e.f^=z,e.transitions!==null)for(const a of e.transitions)(a.is_global||r)&&t.push(a);for(var n=e.first;n!==null;){var i=n.next,s=(n.f&at)!==0||(n.f&G)!==0;fr(n,t,s?r:!1),n=i}}}function Hn(e){cr(e,!0)}function cr(e,t){if((e.f&z)!==0){e.f^=z,(e.f&O)===0&&(M(e,j),Te(e));for(var r=e.first;r!==null;){var n=r.next,i=(r.f&at)!==0||(r.f&G)!==0;cr(r,i?t:!1),r=n}if(e.transitions!==null)for(const s of e.transitions)(s.is_global||t)&&s.in()}}let Ce=!1;function dr(e){Ce=e}let ce=!1;function vr(e){ce=e}let b=null,de=!1;function F(e){b=e}let w=null;function B(e){w=e}let W=null;function Un(e){b!==null&&(W===null?W=[e]:W.push(e))}let P=null,q=0,H=null;function Yn(e){H=e}let hr=1,Me=0,ve=Me;function _r(e){ve=e}let te=!1;function pr(){return++hr}function Ke(e){var t=e.f;if((t&j)!==0)return!0;if((t&X)!==0){var r=e.deps,n=(t&I)!==0;if(r!==null){var i,s,a=(t&Ue)!==0,o=n&&w!==null&&!te,l=r.length;if((a||o)&&(w===null||(w.f&se)===0)){var u=e,f=u.parent;for(i=0;i<l;i++)s=r[i],(a||!s?.reactions?.includes(u))&&(s.reactions??=[]).push(u);a&&(u.f^=Ue),o&&f!==null&&(f.f&I)===0&&(u.f^=I)}for(i=0;i<l;i++)if(s=r[i],Ke(s)&&Vt(s),s.wv>e.wv)return!0}(!n||w!==null&&!te)&&M(e,O)}return!1}function gr(e,t,r=!0){var n=e.reactions;if(n!==null&&!W?.includes(e))for(var i=0;i<n.length;i++){var s=n[i];(s.f&D)!==0?gr(s,t,!1):t===s&&(r?M(s,j):(s.f&O)!==0&&M(s,X),Te(s))}}function mr(e){var t=P,r=q,n=H,i=b,s=te,a=W,o=U,l=de,u=ve,f=e.f;P=null,q=0,H=null,te=(f&I)!==0&&(de||!Ce||b===null),b=(f&(G|V))===0?e:null,W=null,We(e.ctx),de=!1,ve=++Me,e.ac!==null&&(bt(()=>{e.ac.abort(ft)}),e.ac=null);try{e.f|=ot;var c=e.fn,v=c(),d=e.deps;if(P!==null){var h;if(Ze(e,q),d!==null&&q>0)for(d.length=q+P.length,h=0;h<P.length;h++)d[q+h]=P[h];else e.deps=d=P;if(!te||(f&D)!==0&&e.reactions!==null)for(h=q;h<d.length;h++)(d[h].reactions??=[]).push(e)}else d!==null&&q<d.length&&(Ze(e,q),d.length=q);if(Ut()&&H!==null&&!de&&d!==null&&(e.f&(D|X|j))===0)for(h=0;h<H.length;h++)gr(H[h],e);return i!==null&&i!==e&&(Me++,H!==null&&(n===null?n=H:n.push(...H))),(e.f&ae)!==0&&(e.f^=ae),v}catch(m){return hn(m)}finally{e.f^=ot,P=t,q=r,H=n,b=i,te=s,W=a,We(o),de=l,ve=u}}function Bn(e,t){let r=t.reactions;if(r!==null){var n=Fr.call(r,e);if(n!==-1){var i=r.length-1;i===0?r=t.reactions=null:(r[n]=r[i],r.pop())}}r===null&&(t.f&D)!==0&&(P===null||!P.includes(t))&&(M(t,X),(t.f&(I|Ue))===0&&(t.f^=Ue),Wt(t),Ze(t,0))}function Ze(e,t){var r=e.deps;if(r!==null)for(var n=t;n<r.length;n++)Bn(e,r[n])}function Re(e){var t=e.f;if((t&se)===0){M(e,O);var r=w,n=Ce;w=e,Ce=!0;try{(t&ye)!==0?In(e):or(e),ar(e);var i=mr(e);e.teardown=typeof i=="function"?i:null,e.wv=hr;var s;Ot&&dn&&(e.f&j)!==0&&e.deps}finally{Ce=n,w=r}}}function g(e){var t=e.f,r=(t&D)!==0;if(b!==null&&!de){var n=w!==null&&(w.f&se)!==0;if(!n&&!W?.includes(e)){var i=b.deps;if((b.f&ot)!==0)e.rv<Me&&(e.rv=Me,P===null&&i!==null&&i[q]===e?q++:P===null?P=[e]:(!te||!P.includes(e))&&P.push(e));else{(b.deps??=[]).push(e);var s=e.reactions;s===null?e.reactions=[b]:s.includes(b)||s.push(b)}}}else if(r&&e.deps===null&&e.effects===null){var a=e,o=a.parent;o!==null&&(o.f&I)===0&&(a.f^=I)}if(ce){if(Z.has(e))return Z.get(e);if(r){a=e;var l=a.v;return((a.f&O)===0&&a.reactions!==null||wr(a))&&(l=vt(a)),Z.set(a,l),l}}else r&&(a=e,Ke(a)&&Vt(a));if((e.f&ae)!==0)throw e.v;return e.v}function wr(e){if(e.v===N)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(Z.has(t)||(t.f&D)!==0&&wr(t))return!0;return!1}const Gn=-7169;function M(e,t){e.f=e.f&Gn|t}const Wn=new Set,br=new Set;function Vn(e,t,r,n={}){function i(s){if(n.capture||De.call(t,s),!s.cancelBubble)return bt(()=>r?.call(this,s))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?pn(()=>{t.addEventListener(e,i,n)}):t.addEventListener(e,i,n),i}function Xn(e,t,r,n,i){var s={capture:n,passive:i},a=Vn(e,t,r,s);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&An(()=>{t.removeEventListener(e,a,s)})}let yr=null;function De(e){var t=this,r=t.ownerDocument,n=e.type,i=e.composedPath?.()||[],s=i[0]||e.target;yr=e;var a=0,o=yr===e&&e.__root;if(o){var l=i.indexOf(o);if(l!==-1&&(t===document||t===window)){e.__root=t;return}var u=i.indexOf(t);if(u===-1)return;l<=u&&(a=l)}if(s=i[a]||e.target,s!==t){we(e,"currentTarget",{configurable:!0,get(){return s||r}});var f=b,c=w;F(null),B(null);try{for(var v,d=[];s!==null;){var h=s.assignedSlot||s.parentNode||s.host||null;try{var m=s["__"+n];if(m!=null&&(!s.disabled||e.target===s))if(St(m)){var[S,...k]=m;S.apply(s,[e,...k])}else m.call(s,e)}catch(T){v?d.push(T):v=T}if(e.cancelBubble||h===t||h===null)break;s=h}if(v){for(let T of d)queueMicrotask(()=>{throw T});throw v}}finally{e.__root=t,delete e.currentTarget,F(f),B(c)}}}function zn(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function re(e,t){var r=w;r.nodes_start===null&&(r.nodes_start=e,r.nodes_end=t)}function Et(e,t){var r=(t&qr)!==0,n=(t&Ir)!==0,i,s=!e.startsWith("<!>");return()=>{if($)return re(x,null),x;i===void 0&&(i=zn(s?e:"<!>"+e),r||(i=ke(i)));var a=n||tr?document.importNode(i,!0):i.cloneNode(!0);if(r){var o=ke(a),l=a.lastChild;re(o,l)}else re(a,a);return a}}function Er(e=""){if(!$){var t=fe(e+"");return re(t,t),t}var r=x;return r.nodeType!==It&&(r.before(r=fe()),K(r)),re(r,r),r}function $r(){if($)return re(x,null),x;var e=document.createDocumentFragment(),t=document.createComment(""),r=fe();return e.append(t,r),re(t,r),e}function ne(e,t){if($){w.nodes_end=x,Ge();return}e!==null&&e.before(t)}const Jn=["touchstart","touchmove"];function Kn(e){return Jn.includes(e)}function Tr(e,t){var r=t==null?"":typeof t=="object"?t+"":t;r!==(e.__t??=e.nodeValue)&&(e.__t=r,e.nodeValue=r+"")}function xr(e,t){return kr(e,t)}function Zn(e,t){wt(),t.intro=t.intro??!1;const r=t.target,n=$,i=x;try{for(var s=ke(r);s&&(s.nodeType!==Ye||s.data!==Rt);)s=Q(s);if(!s)throw me;J(!0),K(s),Ge();const a=kr(e,{...t,anchor:s});if(x===null||x.nodeType!==Ye||x.data!==At)throw Be(),me;return J(!1),a}catch(a){if(a instanceof Error&&a.message.split(`
|
|
2
|
-
`).some(o=>o.startsWith("https://svelte.dev/e/")))throw a;return a!==me&&console.warn("Failed to hydrate: ",a),t.recover===!1&&rn(),wt(),kn(r),J(!1),xr(e,t)}finally{J(n),K(i)}}const Ne=new Map;function kr(e,{target:t,anchor:r,props:n={},events:i,context:s,intro:a=!0}){wt();var o=new Set,l=c=>{for(var v=0;v<c.length;v++){var d=c[v];if(!o.has(d)){o.add(d);var h=Kn(d);t.addEventListener(d,De,{passive:h});var m=Ne.get(d);m===void 0?(document.addEventListener(d,De,{passive:h}),Ne.set(d,1)):Ne.set(d,m+1)}}};l(Hr(Wn)),br.add(l);var u=void 0,f=Ln(()=>{var c=r??t.appendChild(fe());return yt(()=>{if(s){Ft({});var v=U;v.c=s}i&&(n.$$events=i),$&&re(c,null),u=e(c,n)||{},$&&(w.nodes_end=x),s&&Ht()}),()=>{for(var v of o){t.removeEventListener(v,De);var d=Ne.get(v);--d===0?(document.removeEventListener(v,De),Ne.delete(v)):Ne.set(v,d)}br.delete(l),c!==r&&c.parentNode?.removeChild(c)}});return $t.set(u,f),u}let $t=new WeakMap;function Qn(e,t){const r=$t.get(e);return r?($t.delete(e),r(t)):Promise.resolve()}function Tt(e,t,r=!1){$&&Ge();var n=e,i=null,s=null,a=N,o=r?at:0,l=!1;const u=(d,h=!0)=>{l=!0,v(h,d)};var f=null;function c(){f!==null&&(f.lastChild.remove(),n.before(f),f=null);var d=a?i:s,h=a?s:i;d&&Hn(d),h&&ur(h,()=>{a?s=null:i=null})}const v=(d,h)=>{if(a===(a=d))return;let m=!1;if($){const Oe=un(n)===Nt;!!a===Oe&&(n=ln(),K(n),J(!1),m=!0)}var S=Cn(),k=n;if(S&&(f=document.createDocumentFragment(),f.append(k=fe())),a?i??=h&&yt(()=>h(k)):s??=h&&yt(()=>h(k)),S){var T=A,_e=a?i:s,ie=a?s:i;_e&&T.skipped_effects.delete(_e),ie&&T.skipped_effects.add(ie),T.add_callback(c)}else c();m&&J(!0)};qn(()=>{l=!1,t(u),l||v(null,null)},o),$&&(n=x)}function ei(e,t,r,n,i){$&&Ge();var s=t.$$slots?.[r],a=!1;s===!0&&(s=t[r],a=!0),s===void 0?i!==null&&i(e):s(e,a?()=>n:n)}function ti(e,t){Pn(()=>{var r=e.getRootNode(),n=r.host?r:r.head??r.ownerDocument.head;if(!n.querySelector("#"+t.hash)){const i=document.createElement("style");i.id=t.hash,i.textContent=t.code,n.appendChild(i)}})}function ri(e,t,r){var n=""+e;return n}function ni(e,t){return e==null?null:String(e)}function ii(e,t,r,n,i,s){var a=e.__className;if($||a!==r||a===void 0){var o=ri(r);(!$||o!==e.getAttribute("class"))&&(o==null?e.removeAttribute("class"):e.className=o),e.__className=r}return s}function Cr(e,t,r,n){var i=e.__style;if($||i!==t){var s=ni(t);(!$||s!==e.getAttribute("style"))&&(s==null?e.removeAttribute("style"):e.style.cssText=s),e.__style=t}return n}const si=Symbol("is custom element"),ai=Symbol("is html");function Rr(e,t,r,n){var i=oi(e);$&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||i[t]!==(i[t]=r)&&(t==="loading"&&(e[zr]=r),r==null?e.removeAttribute(t):typeof r!="string"&&Ar(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function Nr(e,t,r){var n=b,i=w;let s=$;$&&J(!1),F(null),B(null);try{t!=="style"&&(xt.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.tagName.toLowerCase())?Ar(e).includes(t):r&&typeof r=="object")?e[t]=r:Rr(e,t,r==null?r:String(r))}finally{F(n),B(i),s&&J(!0)}}function oi(e){return e.__attributes??={[si]:e.nodeName.includes("-"),[ai]:e.namespaceURI===jr}}var xt=new Map;function Ar(e){var t=e.getAttribute("is")||e.nodeName,r=xt.get(t);if(r)return r;xt.set(t,r=[]);for(var n,i=e,s=Element.prototype;s!==i;){n=Ur(i);for(var a in n)n[a].set&&r.push(a);i=Lt(i)}return r}function qe(e,t,r,n){var i=n,s=!0,a=()=>(s&&(s=!1,i=n),i),o;o=e[t],o===void 0&&n!==void 0&&(o=a());var l;l=()=>{var v=e[t];return v===void 0?a():(s=!0,v)};var u=!1,f=Gt(()=>(u=!1,l())),c=w;return(function(v,d){if(arguments.length>0){const h=d?g(f):v;return C(f,h),u=!0,i!==void 0&&(i=h),v}return ce&&u||(c.f&se)!==0?f.v:g(f)})}function li(e){return new ui(e)}class ui{#t;#e;constructor(t){var r=new Map,n=(s,a)=>{var o=Tn(a,!1,!1);return r.set(s,o),o};const i=new Proxy({...t.props||{},$$events:{}},{get(s,a){return g(r.get(a)??n(a,Reflect.get(s,a)))},has(s,a){return a===Xr?!0:(g(r.get(a)??n(a,Reflect.get(s,a))),Reflect.has(s,a))},set(s,a,o){return C(r.get(a)??n(a,o),o),Reflect.set(s,a,o)}});this.#e=(t.hydrate?Zn:xr)(t.component,{target:t.target,anchor:t.anchor,props:i,context:t.context,intro:t.intro??!1,recover:t.recover}),(!t?.props?.$$host||t.sync===!1)&&$e(),this.#t=i.$$events;for(const s of Object.keys(this.#e))s==="$set"||s==="$destroy"||s==="$on"||we(this,s,{get(){return this.#e[s]},set(a){this.#e[s]=a},enumerable:!0});this.#e.$set=s=>{Object.assign(i,s)},this.#e.$destroy=()=>{Qn(this.#e)}}$set(t){this.#e.$set(t)}$on(t,r){this.#t[t]=this.#t[t]||[];const n=(...i)=>r.call(this,...i);return this.#t[t].push(n),()=>{this.#t[t]=this.#t[t].filter(i=>i!==n)}}$destroy(){this.#e.$destroy()}}let Or;typeof HTMLElement=="function"&&(Or=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(e,t,r){super(),this.$$ctor=e,this.$$s=t,r&&this.attachShadow({mode:"open"})}addEventListener(e,t,r){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}super.addEventListener(e,t,r)}removeEventListener(e,t,r){if(super.removeEventListener(e,t,r),this.$$c){const n=this.$$l_u.get(t);n&&(n(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(n){return i=>{const s=document.createElement("slot");n!=="default"&&(s.name=n),ne(i,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},r=fi(this);for(const n of this.$$s)n in r&&(n==="default"&&!this.$$d.children?(this.$$d.children=e(n),t.default=!0):t[n]=e(n));for(const n of this.attributes){const i=this.$$g_p(n.name);i in this.$$d||(this.$$d[i]=Qe(i,n.value,this.$$p_d,"toProp"))}for(const n in this.$$p_d)!(n in this.$$d)&&this[n]!==void 0&&(this.$$d[n]=this[n],delete this[n]);this.$$c=li({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=Sn(()=>{Dn(()=>{this.$$r=!0;for(const n of He(this.$$c)){if(!this.$$p_d[n]?.reflect)continue;this.$$d[n]=this.$$c[n];const i=Qe(n,this.$$d[n],this.$$p_d,"toAttribute");i==null?this.removeAttribute(this.$$p_d[n].attribute||n):this.setAttribute(this.$$p_d[n].attribute||n,i)}this.$$r=!1})});for(const n in this.$$l)for(const i of this.$$l[n]){const s=this.$$c.$on(n,i);this.$$l_u.set(i,s)}this.$$l={}}}attributeChangedCallback(e,t,r){this.$$r||(e=this.$$g_p(e),this.$$d[e]=Qe(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 He(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function Qe(e,t,r,n){const i=r[e]?.type;if(t=i==="Boolean"&&typeof t!="boolean"?t!=null:t,!n||!r[e])return t;if(n==="toAttribute")switch(i){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t??null;default:return t}else switch(i){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function fi(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function ci(e,t,r,n,i,s){let a=class extends Or{constructor(){super(e,r,i),this.$$p_d=t}static get observedAttributes(){return He(t).map(o=>(t[o].attribute||o).toLowerCase())}};return He(t).forEach(o=>{we(a.prototype,o,{get(){return this.$$c&&o in this.$$c?this.$$c[o]:this.$$d[o]},set(l){l=Qe(o,l,t),this.$$d[o]=l;var u=this.$$c;if(u){var f=be(u,o)?.get;f?u[o]=l:u.$set({[o]:l})}}})}),n.forEach(o=>{we(a.prototype,o,{get(){return this.$$c?.[o]}})}),e.element=a,a}const di={version:"0.61.50"};function vi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var he={},Sr;function hi(){if(Sr)return he;Sr=1,Object.defineProperty(he,"__esModule",{value:!0}),he.LanguageTranslator=void 0,he.getChildStyleToPass=e,he.addComponent=t;function e(n,i){var s,a,o="";try{if(n&&i?.length&&(!((s=Object.keys(n))===null||s===void 0)&&s.length)&&(!((a=i?.filter(function(v){return Object.keys(n).includes(v.name)}))===null||a===void 0)&&a.length))for(var l=function(v){var d=i?.filter(function(h){return h.name===v&&h.defaultValue!==n[v]});d&&(o+="".concat(v,":").concat(n[v],";"))},u=0,f=Object.keys(n);u<f.length;u++){var c=f[u];l(c)}}catch(v){console.error("error getting child style to pass",v)}finally{return o}}function t(n){var i,s=((i=n?.repoName.split("/"))===null||i===void 0?void 0:i[1])||n?.repoName;if(!s)throw new Error("wrong componentPath "+n?.repoName);if(!n?.version)throw new Error("wrong version "+n?.version);var a=n?.iifePath||"main.iife.js";if(!document.getElementById(s+"-script"))try{var o=document.createElement("script");if(o.id=s+"-script",o.src="https://cdn.jsdelivr.net/npm/".concat(n.repoName,"@").concat(n.version,"/").concat(a),n?.local)o.src="".concat(n.local);else if(location.href.includes("localhost:6006")){var l=s.split("-")[0];o.src="http://localhost:6006/webcomponents/".concat(s.replace(l+"-",""),"/").concat(a)}document.head.appendChild(o)}catch(u){console.warn(u)}}var r=(function(){function n(i){if(this.lang="",!i?.dictionary)throw new Error("no dictionary provided");this.dictionary=i.dictionary,this.setLang(i?.lang)}return n.prototype.setLang=function(i){i||(i=n.getDefaultLang()),this.lang=i},n.prototype.translateWord=function(i,s){return n.getDictionaryWord(i,this.dictionary,s||this.lang)},n.prototype.translateDate=function(i,s,a){return n.formatDate(i,s,a||this.lang)},n.getDefaultLang=function(){var i,s,a,o,l,u="en";return navigator?.languages&&(!((a=(s=(i=navigator.languages[0])===null||i===void 0?void 0:i.split("-")[0])===null||s===void 0?void 0:s.toLowerCase())===null||a===void 0)&&a.length)&&(u=(l=(o=navigator.languages[0])===null||o===void 0?void 0:o.split("-")[0])===null||l===void 0?void 0:l.toLowerCase()),u},n.getDictionaryWord=function(i,s,a){var o;if(!i)throw new Error("no wordKey provided");if(!s)throw new Error("no dictionary provided");if(a&&(!((o=s[a])===null||o===void 0)&&o[i]))return s[a][i];var l="",u=n.getDefaultLang();if(!a||u!==a){var f=s?.[u];f?.[i]&&(l=f[i])}return l},n.formatDate=function(i,s,a){if(!i)throw new Error("no date provided");if(typeof i.getMonth!="function")throw new Error("wrong date format");var o=new Intl.DateTimeFormat(a||n.getDefaultLang(),s);return o.format(i)},n})();return he.LanguageTranslator=r,he}var _i=hi(),Ae={},kt,Lr;function pi(){if(Lr)return kt;Lr=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,r=/^\s*/,n=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,a=/^[;\s]*/,o=/^\s+|\s+$/g,l=`
|
|
3
|
-
`,u="/",f="*",c="",v="comment",d="declaration";kt=function(m,S){if(typeof m!="string")throw new TypeError("First argument must be a string");if(!m)return[];S=S||{};var k=1,T=1;function _e(p){var _=p.match(t);_&&(k+=_.length);var R=p.lastIndexOf(l);T=~R?p.length-R:T+p.length}function ie(){var p={line:k,column:T};return function(_){return _.position=new Oe(p),y(),_}}function Oe(p){this.start=p,this.end={line:k,column:T},this.source=S.source}Oe.prototype.content=m;function et(p){var _=new Error(S.source+":"+k+":"+T+": "+p);if(_.reason=p,_.filename=S.source,_.line=k,_.column=T,_.source=m,!S.silent)throw _}function pe(p){var _=p.exec(m);if(_){var R=_[0];return _e(R),m=m.slice(R.length),_}}function y(){pe(r)}function E(p){var _;for(p=p||[];_=ge();)_!==!1&&p.push(_);return p}function ge(){var p=ie();if(!(u!=m.charAt(0)||f!=m.charAt(1))){for(var _=2;c!=m.charAt(_)&&(f!=m.charAt(_)||u!=m.charAt(_+1));)++_;if(_+=2,c===m.charAt(_-1))return et("End of comment missing");var R=m.slice(2,_-2);return T+=2,_e(R),m=m.slice(_),T+=2,p({type:v,comment:R})}}function tt(){var p=ie(),_=pe(n);if(_){if(ge(),!pe(i))return et("property missing ':'");var R=pe(s),je=p({type:d,property:h(_[0].replace(e,c)),value:R?h(R[0].replace(e,c)):c});return pe(a),je}}function Ie(){var p=[];E(p);for(var _;_=tt();)_!==!1&&(p.push(_),E(p));return p}return y(),Ie()};function h(m){return m?m.replace(o,c):c}return kt}var Pr;function gi(){if(Pr)return Ae;Pr=1;var e=Ae&&Ae.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(Ae,"__esModule",{value:!0}),Ae.default=r;var t=e(pi());function r(n,i){var s=null;if(!n||typeof n!="string")return s;var a=(0,t.default)(n),o=typeof i=="function";return a.forEach(function(l){if(l.type==="declaration"){var u=l.property,f=l.value;o?i(u,f,l):f&&(s=s||{},s[u]=f)}}),s}return Ae}var mi=gi();const Mr=vi(mi);Mr.default;var wi=Et('<div class="progress svelte-qxv4dk"><div class="progress-bar progress-bar-striped progress-bar-animated svelte-qxv4dk" role="progressbar" aria-valuenow="100" aria-valuemin="0" aria-valuemax="100" style="width: 100%"></div></div>'),bi=Et('<div class="progress svelte-qxv4dk"><div class="progress-bar svelte-qxv4dk" role="progressbar" aria-valuemin="0" aria-valuemax="100"> </div></div>'),yi=Et('<hb-dialog><span slot="title" class="svelte-qxv4dk"><!></span> <div slot="body-content" class="svelte-qxv4dk"><!></div> <span slot="modal-footer" class="svelte-qxv4dk"></span></hb-dialog>',2);const Ei={hash:"svelte-qxv4dk",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(xt){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const Pr=1,Fr=2,kt="[",at="[!",Ct="]",we={},T=Symbol(),Ir="http://www.w3.org/1999/xhtml",At=!1;var qr=Array.isArray,Br=Array.prototype.indexOf,Hr=Array.from,Ye=Object.keys,Ve=Object.defineProperty,be=Object.getOwnPropertyDescriptor,Ur=Object.getOwnPropertyDescriptors,Yr=Object.prototype,Vr=Array.prototype,Nt=Object.getPrototypeOf,Rt=Object.isExtensible;function Wr(e){for(var t=0;t<e.length;t++)e[t]()}function St(){var e,t,r=new Promise((n,s)=>{e=n,t=s});return{promise:r,resolve:e,reject:t}}const x=2,We=4,lt=8,K=16,X=32,se=64,ze=128,I=512,k=1024,S=2048,Z=4096,Y=8192,ie=16384,ft=32768,ye=65536,Ot=1<<17,Lt=1<<18,ce=1<<19,zr=1<<20,Re=32768,ut=1<<21,ct=1<<22,oe=1<<23,dt=Symbol("$state"),Gr=Symbol("legacy props"),Jr=Symbol(""),$e=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},ht=3,Se=8;function Kr(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Xr(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Zr(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Qr(e){throw new Error("https://svelte.dev/e/effect_orphan")}function en(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function tn(){throw new Error("https://svelte.dev/e/hydration_failed")}function rn(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function nn(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function sn(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function on(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function Ge(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function an(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let m=!1;function ae(e){m=e}let b;function q(e){if(e===null)throw Ge(),we;return b=e}function Je(){return q(ee(b))}function Oe(e){if(m){if(ee(b)!==null)throw Ge(),we;b=e}}function jt(e=1){if(m){for(var t=e,r=b;t--;)r=ee(r);b=r}}function Mt(e=!0){for(var t=0,r=b;;){if(r.nodeType===Se){var n=r.data;if(n===Ct){if(t===0)return r;t-=1}else(n===kt||n===at)&&(t+=1)}var s=ee(r);e&&r.remove(),r=s}}function ln(e){if(!e||e.nodeType!==Se)throw Ge(),we;return e.data}function Dt(e){return e===this.v}function fn(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function un(e){return!fn(e,this.v)}let cn=!1,D=null;function Ee(e){D=e}function Pt(e,t=!1,r){D={p:D,i:!1,c:null,e:null,s:e,x:null,l:null}}function Ft(e){var t=D,r=t.e;if(r!==null){t.e=null;for(var n of r)nr(n)}return e!==void 0&&(t.x=e),t.i=!0,D=t.p,e??{}}function It(){return!0}let de=[];function qt(){var e=de;de=[],Wr(e)}function Ke(e){if(de.length===0&&!Le){var t=de;queueMicrotask(()=>{t===de&&qt()})}de.push(e)}function dn(){for(;de.length>0;)qt()}function Bt(e){var t=p;if(t===null)return _.f|=oe,e;if((t.f&ft)===0){if((t.f&ze)===0)throw e;t.b.error(e)}else Te(e,t)}function Te(e,t){for(;t!==null;){if((t.f&ze)!==0)try{t.b.error(e);return}catch(r){e=r}t=t.parent}throw e}const Xe=new Set;let E=null,L=null,V=[],Ze=null,vt=!1,Le=!1;class B{committed=!1;current=new Map;previous=new Map;#t=new Set;#e=new Set;#r=0;#n=0;#l=null;#o=[];#a=[];skipped_effects=new Set;is_fork=!1;process(t){V=[],this.apply();var r={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const n of t)this.#s(n,r);this.is_fork||this.#f(),this.#n>0||this.is_fork?(this.#i(r.effects),this.#i(r.render_effects),this.#i(r.block_effects)):(E=null,Ut(r.render_effects),Ut(r.effects),this.#l?.resolve()),L=null}#s(t,r){t.f^=k;for(var n=t.first;n!==null;){var s=n.f,i=(s&(X|se))!==0,o=i&&(s&k)!==0,a=o||(s&Y)!==0||this.skipped_effects.has(n);if((n.f&ze)!==0&&n.b?.is_pending()&&(r={parent:r,effect:n,effects:[],render_effects:[],block_effects:[]}),!a&&n.fn!==null){i?n.f^=k:(s&We)!==0?r.effects.push(n):Ie(n)&&((n.f&K)!==0&&r.block_effects.push(n),qe(n));var l=n.first;if(l!==null){n=l;continue}}var f=n.parent;for(n=n.next;n===null&&f!==null;)f===r.effect&&(this.#i(r.effects),this.#i(r.render_effects),this.#i(r.block_effects),r=r.parent),n=f.next,f=f.parent}}#i(t){for(const r of t)((r.f&S)!==0?this.#o:this.#a).push(r),A(r,k)}capture(t,r){this.previous.has(t)||this.previous.set(t,r),(t.f&oe)===0&&(this.current.set(t,t.v),L?.set(t,t.v))}activate(){E=this,this.apply()}deactivate(){E=null,L=null}flush(){if(this.activate(),V.length>0){if(Ht(),E!==null&&E!==this)return}else this.#r===0&&this.process([]);this.deactivate()}discard(){for(const t of this.#e)t(this);this.#e.clear()}#f(){if(this.#n===0){for(const t of this.#t)t();this.#t.clear()}this.#r===0&&this.#u()}#u(){if(Xe.size>1){this.previous.clear();var t=L,r=!0,n={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const s of Xe){if(s===this){r=!1;continue}const i=[];for(const[a,l]of this.current){if(s.current.has(a))if(r&&l!==s.current.get(a))s.current.set(a,l);else continue;i.push(a)}if(i.length===0)continue;const o=[...s.current.keys()].filter(a=>!this.current.has(a));if(o.length>0){const a=new Set,l=new Map;for(const f of i)Yt(f,o,a,l);if(V.length>0){E=s,s.apply();for(const f of V)s.#s(f,n);V=[],s.deactivate()}}}E=null,L=t}this.committed=!0,Xe.delete(this)}increment(t){this.#r+=1,t&&(this.#n+=1)}decrement(t){this.#r-=1,t&&(this.#n-=1),this.revive()}revive(){for(const t of this.#o)A(t,S),he(t);for(const t of this.#a)A(t,Z),he(t);this.#o=[],this.#a=[],this.flush()}oncommit(t){this.#t.add(t)}ondiscard(t){this.#e.add(t)}settled(){return(this.#l??=St()).promise}static ensure(){if(E===null){const t=E=new B;Xe.add(E),Le||B.enqueue(()=>{E===t&&t.flush()})}return E}static enqueue(t){Ke(t)}apply(){}}function xe(e){var t=Le;Le=!0;try{for(var r;;){if(dn(),V.length===0&&(E?.flush(),V.length===0))return Ze=null,r;Ht()}}finally{Le=t}}function Ht(){var e=ve;vt=!0;try{var t=0;for(dr(!0);V.length>0;){var r=B.ensure();if(t++>1e3){var n,s;hn()}r.process(V),le.clear()}}finally{vt=!1,dr(e),Ze=null}}function hn(){try{en()}catch(e){Te(e,Ze)}}let Q=null;function Ut(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var n=e[r++];if((n.f&(ie|Y))===0&&Ie(n)&&(Q=new Set,qe(n),n.deps===null&&n.first===null&&n.nodes_start===null&&(n.teardown===null&&n.ac===null?lr(n):n.fn=null),Q?.size>0)){le.clear();for(const s of Q){if((s.f&(ie|Y))!==0)continue;const i=[s];let o=s.parent;for(;o!==null;)Q.has(o)&&(Q.delete(o),i.push(o)),o=o.parent;for(let a=i.length-1;a>=0;a--){const l=i[a];(l.f&(ie|Y))===0&&qe(l)}}Q.clear()}}Q=null}}function Yt(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&x)!==0?Yt(s,t,r,n):(i&(ct|K))!==0&&(i&S)===0&&Vt(s,t,n)&&(A(s,S),he(s))}}function Vt(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(t.includes(s))return!0;if((s.f&x)!==0&&Vt(s,t,r))return r.set(s,!0),!0}return r.set(e,!1),!1}function he(e){for(var t=Ze=e;t.parent!==null;){t=t.parent;var r=t.f;if(vt&&t===p&&(r&K)!==0&&(r&Lt)===0)return;if((r&(se|X))!==0){if((r&k)===0)return;t.f^=k}}V.push(t)}function vn(e){let t=0,r=je(0),n;return()=>{tt()&&(v(r),sr(()=>(t===0&&(n=Bn(()=>e(()=>Me(r)))),t+=1,()=>{Ke(()=>{t-=1,t===0&&(n?.(),n=void 0,Me(r))})})))}}var _n=ye|ce|ze;function pn(e,t,r){new gn(e,t,r)}class gn{parent;#t=!1;#e;#r=m?b:null;#n;#l;#o;#a=null;#s=null;#i=null;#f=null;#u=null;#h=0;#c=0;#v=!1;#d=null;#w=vn(()=>(this.#d=je(this.#h),()=>{this.#d=null}));constructor(t,r,n){this.#e=t,this.#n=r,this.#l=n,this.parent=p.b,this.#t=!!this.#n.pending,this.#o=ir(()=>{if(p.b=this,m){const i=this.#r;Je(),i.nodeType===Se&&i.data===at?this.#y():this.#b()}else{var s=this.#g();try{this.#a=te(()=>n(s))}catch(i){this.error(i)}this.#c>0?this.#p():this.#t=!1}return()=>{this.#u?.remove()}},_n),m&&(this.#e=b)}#b(){try{this.#a=te(()=>this.#l(this.#e))}catch(t){this.error(t)}this.#t=!1}#y(){const t=this.#n.pending;t&&(this.#s=te(()=>t(this.#e)),B.enqueue(()=>{var r=this.#g();this.#a=this.#_(()=>(B.ensure(),te(()=>this.#l(r)))),this.#c>0?this.#p():(Pe(this.#s,()=>{this.#s=null}),this.#t=!1)}))}#g(){var t=this.#e;return this.#t&&(this.#u=W(),this.#e.before(this.#u),t=this.#u),t}is_pending(){return this.#t||!!this.parent&&this.parent.is_pending()}has_pending_snippet(){return!!this.#n.pending}#_(t){var r=p,n=_,s=D;P(this.#o),C(this.#o),Ee(this.#o.ctx);try{return t()}catch(i){return Bt(i),null}finally{P(r),C(n),Ee(s)}}#p(){const t=this.#n.pending;this.#a!==null&&(this.#f=document.createDocumentFragment(),this.#f.append(this.#u),cr(this.#a,this.#f)),this.#s===null&&(this.#s=te(()=>t(this.#e)))}#m(t){if(!this.has_pending_snippet()){this.parent&&this.parent.#m(t);return}this.#c+=t,this.#c===0&&(this.#t=!1,this.#s&&Pe(this.#s,()=>{this.#s=null}),this.#f&&(this.#e.before(this.#f),this.#f=null))}update_pending_count(t){this.#m(t),this.#h+=t,this.#d&&et(this.#d,this.#h)}get_effect_pending(){return this.#w(),v(this.#d)}error(t){var r=this.#n.onerror;let n=this.#n.failed;if(this.#v||!r&&!n)throw t;this.#a&&(O(this.#a),this.#a=null),this.#s&&(O(this.#s),this.#s=null),this.#i&&(O(this.#i),this.#i=null),m&&(q(this.#r),jt(),q(Mt()));var s=!1,i=!1;const o=()=>{if(s){an();return}s=!0,i&&on(),B.ensure(),this.#h=0,this.#i!==null&&Pe(this.#i,()=>{this.#i=null}),this.#t=this.has_pending_snippet(),this.#a=this.#_(()=>(this.#v=!1,te(()=>this.#l(this.#e)))),this.#c>0?this.#p():this.#t=!1};var a=_;try{C(null),i=!0,r?.(t,o),i=!1}catch(l){Te(l,this.#o&&this.#o.parent)}finally{C(a)}n&&Ke(()=>{this.#i=this.#_(()=>{B.ensure(),this.#v=!0;try{return te(()=>{n(this.#e,()=>t,()=>o)})}catch(l){return Te(l,this.#o.parent),null}finally{this.#v=!1}})})}}function mn(e,t,r,n){const s=Wt;if(r.length===0&&e.length===0){n(t.map(s));return}var i=E,o=p,a=wn();function l(){Promise.all(r.map(f=>bn(f))).then(f=>{a();try{n([...t.map(s),...f])}catch(d){(o.f&ie)===0&&Te(d,o)}i?.deactivate(),Qe()}).catch(f=>{Te(f,o)})}e.length>0?Promise.all(e).then(()=>{a();try{return l()}finally{i?.deactivate(),Qe()}}):l()}function wn(){var e=p,t=_,r=D,n=E;return function(i=!0){P(e),C(t),Ee(r),i&&n?.activate()}}function Qe(){P(null),C(null),Ee(null)}function Wt(e){var t=x|S,r=_!==null&&(_.f&x)!==0?_:null;return p!==null&&(p.f|=ce),{ctx:D,deps:null,effects:null,equals:Dt,f:t,fn:e,reactions:null,rv:0,v:T,wv:0,parent:r??p,ac:null}}function bn(e,t){let r=p;r===null&&Kr();var n=r.b,s=void 0,i=je(T),o=!_,a=new Map;return Ln(()=>{var l=St();s=l.promise;try{Promise.resolve(e()).then(l.resolve,l.reject).then(()=>{f===E&&f.committed&&f.deactivate(),Qe()})}catch(u){l.reject(u),Qe()}var f=E;if(o){var d=!n.is_pending();n.update_pending_count(1),f.increment(d),a.get(f)?.reject($e),a.delete(f),a.set(f,l)}const c=(u,h=void 0)=>{if(f.activate(),h)h!==$e&&(i.f|=oe,et(i,h));else{(i.f&oe)!==0&&(i.f^=oe),et(i,u);for(const[y,H]of a){if(a.delete(y),y===f)break;H.reject($e)}}o&&(n.update_pending_count(-1),f.decrement(d))};l.promise.then(c,u=>c(null,u||"unknown"))}),rr(()=>{for(const l of a.values())l.reject($e)}),new Promise(l=>{function f(d){function c(){d===s?l(i):f(s)}d.then(c,c)}f(s)})}function zt(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)O(t[r])}}function yn(e){for(var t=e.parent;t!==null;){if((t.f&x)===0)return t;t=t.parent}return null}function _t(e){var t,r=p;P(yn(e));try{e.f&=~Re,zt(e),t=mr(e)}finally{P(r)}return t}function Gt(e){var t=_t(e);if(e.equals(t)||(e.v=t,e.wv=pr()),!_e)if(L!==null)tt()&&L.set(e,e.v);else{var r=(e.f&I)===0?Z:k;A(e,r)}}let pt=new Set;const le=new Map;let Jt=!1;function je(e,t){var r={f:0,v:e,reactions:null,equals:Dt,rv:0,wv:0};return r}function N(e,t){const r=je(e);return Fn(r),r}function $n(e,t=!1,r=!0){const n=je(e);return t||(n.equals=un),n}function $(e,t,r=!1){_!==null&&(!G||(_.f&Ot)!==0)&&It()&&(_.f&(x|K|ct|Ot))!==0&&!re?.includes(e)&&sn();let n=r?ke(t):t;return et(e,n)}function et(e,t){if(!e.equals(t)){var r=e.v;_e?le.set(e,t):le.set(e,r),e.v=t;var n=B.ensure();n.capture(e,r),(e.f&x)!==0&&((e.f&S)!==0&&_t(e),A(e,(e.f&I)!==0?k:Z)),e.wv=pr(),Kt(e,S),p!==null&&(p.f&k)!==0&&(p.f&(X|se))===0&&(F===null?In([e]):F.push(e)),!n.is_fork&&pt.size>0&&!Jt&&En()}return t}function En(){Jt=!1;const e=Array.from(pt);for(const t of e)(t.f&k)!==0&&A(t,Z),Ie(t)&&qe(t);pt.clear()}function Me(e){$(e,e.v+1)}function Kt(e,t){var r=e.reactions;if(r!==null)for(var n=r.length,s=0;s<n;s++){var i=r[s],o=i.f,a=(o&S)===0;if(a&&A(i,t),(o&x)!==0){var l=i;L?.delete(l),(o&Re)===0&&(o&I&&(i.f|=Re),Kt(l,Z))}else a&&((o&K)!==0&&Q!==null&&Q.add(i),he(i))}}function ke(e){if(typeof e!="object"||e===null||dt in e)return e;const t=Nt(e);if(t!==Yr&&t!==Vr)return e;var r=new Map,n=qr(e),s=N(0),i=pe,o=a=>{if(pe===i)return a();var l=_,f=pe;C(null),_r(i);var d=a();return C(l),_r(f),d};return n&&r.set("length",N(e.length)),new Proxy(e,{defineProperty(a,l,f){(!("value"in f)||f.configurable===!1||f.enumerable===!1||f.writable===!1)&&rn();var d=r.get(l);return d===void 0?d=o(()=>{var c=N(f.value);return r.set(l,c),c}):$(d,f.value,!0),!0},deleteProperty(a,l){var f=r.get(l);if(f===void 0){if(l in a){const d=o(()=>N(T));r.set(l,d),Me(s)}}else $(f,T),Me(s);return!0},get(a,l,f){if(l===dt)return e;var d=r.get(l),c=l in a;if(d===void 0&&(!c||be(a,l)?.writable)&&(d=o(()=>{var h=ke(c?a[l]:T),y=N(h);return y}),r.set(l,d)),d!==void 0){var u=v(d);return u===T?void 0:u}return Reflect.get(a,l,f)},getOwnPropertyDescriptor(a,l){var f=Reflect.getOwnPropertyDescriptor(a,l);if(f&&"value"in f){var d=r.get(l);d&&(f.value=v(d))}else if(f===void 0){var c=r.get(l),u=c?.v;if(c!==void 0&&u!==T)return{enumerable:!0,configurable:!0,value:u,writable:!0}}return f},has(a,l){if(l===dt)return!0;var f=r.get(l),d=f!==void 0&&f.v!==T||Reflect.has(a,l);if(f!==void 0||p!==null&&(!d||be(a,l)?.writable)){f===void 0&&(f=o(()=>{var u=d?ke(a[l]):T,h=N(u);return h}),r.set(l,f));var c=v(f);if(c===T)return!1}return d},set(a,l,f,d){var c=r.get(l),u=l in a;if(n&&l==="length")for(var h=f;h<c.v;h+=1){var y=r.get(h+"");y!==void 0?$(y,T):h in a&&(y=o(()=>N(T)),r.set(h+"",y))}if(c===void 0)(!u||be(a,l)?.writable)&&(c=o(()=>N(void 0)),$(c,ke(f)),r.set(l,c));else{u=c.v!==T;var H=o(()=>ke(f));$(c,H)}var ne=Reflect.getOwnPropertyDescriptor(a,l);if(ne?.set&&ne.set.call(d,f),!u){if(n&&typeof l=="string"){var U=r.get("length"),me=Number(l);Number.isInteger(me)&&me>=U.v&&$(U,me+1)}Me(s)}return!0},ownKeys(a){v(s);var l=Reflect.ownKeys(a).filter(c=>{var u=r.get(c);return u===void 0||u.v!==T});for(var[f,d]of r)d.v!==T&&!(f in a)&&l.push(f);return l},setPrototypeOf(){nn()}})}var Xt,Zt,Qt,er;function gt(){if(Xt===void 0){Xt=window,Zt=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;Qt=be(t,"firstChild").get,er=be(t,"nextSibling").get,Rt(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),Rt(r)&&(r.__t=void 0)}}function W(e=""){return document.createTextNode(e)}function Ce(e){return Qt.call(e)}function ee(e){return er.call(e)}function De(e,t){if(!m)return Ce(e);var r=Ce(b);return r===null&&(r=b.appendChild(W())),q(r),r}function tr(e,t=!1){if(!m){var r=Ce(e);return r instanceof Comment&&r.data===""?ee(r):r}if(t&&b?.nodeType!==ht){var n=W();return b?.before(n),q(n),n}return b}function Tn(e,t=1,r=!1){let n=m?b:e;for(var s;t--;)s=n,n=ee(n);if(!m)return n;if(r&&n?.nodeType!==ht){var i=W();return n===null?s?.after(i):n.before(i),q(i),i}return q(n),n}function xn(e){e.textContent=""}function kn(){return!1}function mt(e){var t=_,r=p;C(null),P(null);try{return e()}finally{C(t),P(r)}}function Cn(e){p===null&&(_===null&&Qr(),Zr()),_e&&Xr()}function An(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function z(e,t,r,n=!0){var s=p;s!==null&&(s.f&Y)!==0&&(e|=Y);var i={ctx:D,deps:null,nodes_start:null,nodes_end:null,f:e|S|I,first:null,fn:t,last:null,next:null,parent:s,b:s&&s.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(r)try{qe(i),i.f|=ft}catch(l){throw O(i),l}else t!==null&&he(i);if(n){var o=i;if(r&&o.deps===null&&o.teardown===null&&o.nodes_start===null&&o.first===o.last&&(o.f&ce)===0&&(o=o.first,(e&K)!==0&&(e&ye)!==0&&o!==null&&(o.f|=ye)),o!==null&&(o.parent=s,s!==null&&An(o,s),_!==null&&(_.f&x)!==0&&(e&se)===0)){var a=_;(a.effects??=[]).push(o)}}return i}function tt(){return _!==null&&!G}function rr(e){const t=z(lt,null,!1);return A(t,k),t.teardown=e,t}function Nn(e){Cn();var t=p.f,r=!_&&(t&X)!==0&&(t&ft)===0;if(r){var n=D;(n.e??=[]).push(e)}else return nr(e)}function nr(e){return z(We|zr,e,!1)}function Rn(e){B.ensure();const t=z(se|ce,e,!0);return()=>{O(t)}}function Sn(e){B.ensure();const t=z(se|ce,e,!0);return(r={})=>new Promise(n=>{r.outro?Pe(t,()=>{O(t),n(void 0)}):(O(t),n(void 0))})}function On(e){return z(We,e,!1)}function Ln(e){return z(ct|ce,e,!0)}function sr(e,t=0){return z(lt|t,e,!0)}function rt(e,t=[],r=[],n=[],s=!1){mn(n,t,r,i=>{z(s?We:lt,()=>e(...i.map(v)),!0)})}function ir(e,t=0){var r=z(K|t,e,!0);return r}function te(e,t=!0){return z(X|ce,e,!0,t)}function or(e){var t=e.teardown;if(t!==null){const r=_e,n=_;hr(!0),C(null);try{t.call(null)}finally{hr(r),C(n)}}}function ar(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const s=r.ac;s!==null&&mt(()=>{s.abort($e)});var n=r.next;(r.f&se)!==0?r.parent=null:O(r,t),r=n}}function jn(e){for(var t=e.first;t!==null;){var r=t.next;(t.f&X)===0&&O(t),t=r}}function O(e,t=!0){var r=!1;(t||(e.f&Lt)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(Mn(e.nodes_start,e.nodes_end),r=!0),ar(e,t&&!r),nt(e,0),A(e,ie);var n=e.transitions;if(n!==null)for(const i of n)i.stop();or(e);var s=e.parent;s!==null&&s.first!==null&&lr(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function Mn(e,t){for(;e!==null;){var r=e===t?null:ee(e);e.remove(),e=r}}function lr(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 Pe(e,t,r=!0){var n=[];fr(e,n,!0),Dn(n,()=>{r&&O(e),t&&t()})}function Dn(e,t){var r=e.length;if(r>0){var n=()=>--r||t();for(var s of e)s.out(n)}else t()}function fr(e,t,r){if((e.f&Y)===0){if(e.f^=Y,e.transitions!==null)for(const o of e.transitions)(o.is_global||r)&&t.push(o);for(var n=e.first;n!==null;){var s=n.next,i=(n.f&ye)!==0||(n.f&X)!==0&&(e.f&K)!==0;fr(n,t,i?r:!1),n=s}}}function Pn(e){ur(e,!0)}function ur(e,t){if((e.f&Y)!==0){e.f^=Y,(e.f&k)===0&&(A(e,S),he(e));for(var r=e.first;r!==null;){var n=r.next,s=(r.f&ye)!==0||(r.f&X)!==0;ur(r,s?t:!1),r=n}if(e.transitions!==null)for(const i of e.transitions)(i.is_global||t)&&i.in()}}function cr(e,t){for(var r=e.nodes_start,n=e.nodes_end;r!==null;){var s=r===n?null:ee(r);t.append(r),r=s}}let ve=!1;function dr(e){ve=e}let _e=!1;function hr(e){_e=e}let _=null,G=!1;function C(e){_=e}let p=null;function P(e){p=e}let re=null;function Fn(e){_!==null&&(re===null?re=[e]:re.push(e))}let R=null,j=0,F=null;function In(e){F=e}let vr=1,Fe=0,pe=Fe;function _r(e){pe=e}function pr(){return++vr}function Ie(e){var t=e.f;if((t&S)!==0)return!0;if(t&x&&(e.f&=~Re),(t&Z)!==0){var r=e.deps;if(r!==null)for(var n=r.length,s=0;s<n;s++){var i=r[s];if(Ie(i)&&Gt(i),i.wv>e.wv)return!0}(t&I)!==0&&L===null&&A(e,k)}return!1}function gr(e,t,r=!0){var n=e.reactions;if(n!==null&&!re?.includes(e))for(var s=0;s<n.length;s++){var i=n[s];(i.f&x)!==0?gr(i,t,!1):t===i&&(r?A(i,S):(i.f&k)!==0&&A(i,Z),he(i))}}function mr(e){var t=R,r=j,n=F,s=_,i=re,o=D,a=G,l=pe,f=e.f;R=null,j=0,F=null,_=(f&(X|se))===0?e:null,re=null,Ee(e.ctx),G=!1,pe=++Fe,e.ac!==null&&(mt(()=>{e.ac.abort($e)}),e.ac=null);try{e.f|=ut;var d=e.fn,c=d(),u=e.deps;if(R!==null){var h;if(nt(e,j),u!==null&&j>0)for(u.length=j+R.length,h=0;h<R.length;h++)u[j+h]=R[h];else e.deps=u=R;if(ve&&tt()&&(e.f&I)!==0)for(h=j;h<u.length;h++)(u[h].reactions??=[]).push(e)}else u!==null&&j<u.length&&(nt(e,j),u.length=j);if(It()&&F!==null&&!G&&u!==null&&(e.f&(x|Z|S))===0)for(h=0;h<F.length;h++)gr(F[h],e);return s!==null&&s!==e&&(Fe++,F!==null&&(n===null?n=F:n.push(...F))),(e.f&oe)!==0&&(e.f^=oe),c}catch(y){return Bt(y)}finally{e.f^=ut,R=t,j=r,F=n,_=s,re=i,Ee(o),G=a,pe=l}}function qn(e,t){let r=t.reactions;if(r!==null){var n=Br.call(r,e);if(n!==-1){var s=r.length-1;s===0?r=t.reactions=null:(r[n]=r[s],r.pop())}}r===null&&(t.f&x)!==0&&(R===null||!R.includes(t))&&(A(t,Z),(t.f&I)!==0&&(t.f^=I,t.f&=~Re),zt(t),nt(t,0))}function nt(e,t){var r=e.deps;if(r!==null)for(var n=t;n<r.length;n++)qn(e,r[n])}function qe(e){var t=e.f;if((t&ie)===0){A(e,k);var r=p,n=ve;p=e,ve=!0;try{(t&K)!==0?jn(e):ar(e),or(e);var s=mr(e);e.teardown=typeof s=="function"?s:null,e.wv=vr;var i;At&&cn&&(e.f&S)!==0&&e.deps}finally{ve=n,p=r}}}function v(e){var t=e.f,r=(t&x)!==0;if(_!==null&&!G){var n=p!==null&&(p.f&ie)!==0;if(!n&&!re?.includes(e)){var s=_.deps;if((_.f&ut)!==0)e.rv<Fe&&(e.rv=Fe,R===null&&s!==null&&s[j]===e?j++:R===null?R=[e]:R.includes(e)||R.push(e));else{(_.deps??=[]).push(e);var i=e.reactions;i===null?e.reactions=[_]:i.includes(_)||i.push(_)}}}if(_e){if(le.has(e))return le.get(e);if(r){var o=e,a=o.v;return((o.f&k)===0&&o.reactions!==null||br(o))&&(a=_t(o)),le.set(o,a),a}}else if(r){if(o=e,L?.has(o))return L.get(o);Ie(o)&&Gt(o),ve&&tt()&&(o.f&I)===0&&wr(o)}else if(L?.has(e))return L.get(e);if((e.f&oe)!==0)throw e.v;return e.v}function wr(e){if(e.deps!==null){e.f^=I;for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&x)!==0&&(t.f&I)===0&&wr(t)}}function br(e){if(e.v===T)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(le.has(t)||(t.f&x)!==0&&br(t))return!0;return!1}function Bn(e){var t=G;try{return G=!0,e()}finally{G=t}}const Hn=-7169;function A(e,t){e.f=e.f&Hn|t}const Un=new Set,yr=new Set;function Yn(e,t,r,n={}){function s(i){if(n.capture||Be.call(t,i),!i.cancelBubble)return mt(()=>r?.call(this,i))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?Ke(()=>{t.addEventListener(e,s,n)}):t.addEventListener(e,s,n),s}function Vn(e,t,r,n,s){var i={capture:n,passive:s},o=Yn(e,t,r,i);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&rr(()=>{t.removeEventListener(e,o,i)})}let $r=null;function Be(e){var t=this,r=t.ownerDocument,n=e.type,s=e.composedPath?.()||[],i=s[0]||e.target;$r=e;var o=0,a=$r===e&&e.__root;if(a){var l=s.indexOf(a);if(l!==-1&&(t===document||t===window)){e.__root=t;return}var f=s.indexOf(t);if(f===-1)return;l<=f&&(o=l)}if(i=s[o]||e.target,i!==t){Ve(e,"currentTarget",{configurable:!0,get(){return i||r}});var d=_,c=p;C(null),P(null);try{for(var u,h=[];i!==null;){var y=i.assignedSlot||i.parentNode||i.host||null;try{var H=i["__"+n];H!=null&&(!i.disabled||e.target===i)&&H.call(i,e)}catch(ne){u?h.push(ne):u=ne}if(e.cancelBubble||y===t||y===null)break;i=y}if(u){for(let ne of h)queueMicrotask(()=>{throw ne});throw u}}finally{e.__root=t,delete e.currentTarget,C(d),P(c)}}}function Wn(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function fe(e,t){var r=p;r.nodes_start===null&&(r.nodes_start=e,r.nodes_end=t)}function wt(e,t){var r=(t&Pr)!==0,n=(t&Fr)!==0,s,i=!e.startsWith("<!>");return()=>{if(m)return fe(b,null),b;s===void 0&&(s=Wn(i?e:"<!>"+e),r||(s=Ce(s)));var o=n||Zt?document.importNode(s,!0):s.cloneNode(!0);if(r){var a=Ce(o),l=o.lastChild;fe(a,l)}else fe(o,o);return o}}function Er(e=""){if(!m){var t=W(e+"");return fe(t,t),t}var r=b;return r.nodeType!==ht&&(r.before(r=W()),q(r)),fe(r,r),r}function Tr(){if(m)return fe(b,null),b;var e=document.createDocumentFragment(),t=document.createComment(""),r=W();return e.append(t,r),fe(t,r),e}function ue(e,t){if(m){p.nodes_end=b,Je();return}e!==null&&e.before(t)}const zn=["touchstart","touchmove"];function Gn(e){return zn.includes(e)}function xr(e,t){var r=t==null?"":typeof t=="object"?t+"":t;r!==(e.__t??=e.nodeValue)&&(e.__t=r,e.nodeValue=r+"")}function kr(e,t){return Cr(e,t)}function Jn(e,t){gt(),t.intro=t.intro??!1;const r=t.target,n=m,s=b;try{for(var i=Ce(r);i&&(i.nodeType!==Se||i.data!==kt);)i=ee(i);if(!i)throw we;ae(!0),q(i);const o=Cr(e,{...t,anchor:i});return ae(!1),o}catch(o){if(o instanceof Error&&o.message.split(`
|
|
2
|
+
`).some(a=>a.startsWith("https://svelte.dev/e/")))throw o;return o!==we&&console.warn("Failed to hydrate: ",o),t.recover===!1&&tn(),gt(),xn(r),ae(!1),kr(e,t)}finally{ae(n),q(s)}}const Ae=new Map;function Cr(e,{target:t,anchor:r,props:n={},events:s,context:i,intro:o=!0}){gt();var a=new Set,l=c=>{for(var u=0;u<c.length;u++){var h=c[u];if(!a.has(h)){a.add(h);var y=Gn(h);t.addEventListener(h,Be,{passive:y});var H=Ae.get(h);H===void 0?(document.addEventListener(h,Be,{passive:y}),Ae.set(h,1)):Ae.set(h,H+1)}}};l(Hr(Un)),yr.add(l);var f=void 0,d=Sn(()=>{var c=r??t.appendChild(W());return pn(c,{pending:()=>{}},u=>{if(i){Pt({});var h=D;h.c=i}if(s&&(n.$$events=s),m&&fe(u,null),f=e(u,n)||{},m&&(p.nodes_end=b,b===null||b.nodeType!==Se||b.data!==Ct))throw Ge(),we;i&&Ft()}),()=>{for(var u of a){t.removeEventListener(u,Be);var h=Ae.get(u);--h===0?(document.removeEventListener(u,Be),Ae.delete(u)):Ae.set(u,h)}yr.delete(l),c!==r&&c.parentNode?.removeChild(c)}});return bt.set(f,d),f}let bt=new WeakMap;function Kn(e,t){const r=bt.get(e);return r?(bt.delete(e),r(t)):Promise.resolve()}class Xn{anchor;#t=new Map;#e=new Map;#r=new Map;#n=!0;constructor(t,r=!0){this.anchor=t,this.#n=r}#l=()=>{var t=E;if(this.#t.has(t)){var r=this.#t.get(t),n=this.#e.get(r);if(n)Pn(n);else{var s=this.#r.get(r);s&&(this.#e.set(r,s.effect),this.#r.delete(r),s.fragment.lastChild.remove(),this.anchor.before(s.fragment),n=s.effect)}for(const[i,o]of this.#t){if(this.#t.delete(i),i===t)break;const a=this.#r.get(o);a&&(O(a.effect),this.#r.delete(o))}for(const[i,o]of this.#e){if(i===r)continue;const a=()=>{if(Array.from(this.#t.values()).includes(i)){var f=document.createDocumentFragment();cr(o,f),f.append(W()),this.#r.set(i,{effect:o,fragment:f})}else O(o);this.#e.delete(i)};this.#n||!n?Pe(o,a,!1):a()}}};#o=t=>{this.#t.delete(t);const r=Array.from(this.#t.values());for(const[n,s]of this.#r)r.includes(n)||(O(s.effect),this.#r.delete(n))};ensure(t,r){var n=E,s=kn();if(r&&!this.#e.has(t)&&!this.#r.has(t))if(s){var i=document.createDocumentFragment(),o=W();i.append(o),this.#r.set(t,{effect:te(()=>r(o)),fragment:i})}else this.#e.set(t,te(()=>r(this.anchor)));if(this.#t.set(n,t),s){for(const[a,l]of this.#e)a===t?n.skipped_effects.delete(l):n.skipped_effects.add(l);for(const[a,l]of this.#r)a===t?n.skipped_effects.delete(l.effect):n.skipped_effects.add(l.effect);n.oncommit(this.#l),n.ondiscard(this.#o)}else m&&(this.anchor=b),this.#l()}}function yt(e,t,r=!1){m&&Je();var n=new Xn(e),s=r?ye:0;function i(o,a){if(m){const f=ln(e)===at;if(o===f){var l=Mt();q(l),n.anchor=l,ae(!1),n.ensure(o,a),ae(!0);return}}n.ensure(o,a)}ir(()=>{var o=!1;t((a,l=!0)=>{o=!0,i(l,a)}),o||i(!1,null)},s)}function Zn(e,t,r,n,s){m&&Je();var i=t.$$slots?.[r],o=!1;i===!0&&(i=t[r],o=!0),i===void 0?s!==null&&s(e):i(e,o?()=>n:n)}function Qn(e,t){On(()=>{var r=e.getRootNode(),n=r.host?r:r.head??r.ownerDocument.head;if(!n.querySelector("#"+t.hash)){const s=document.createElement("style");s.id=t.hash,s.textContent=t.code,n.appendChild(s)}})}function es(e,t,r){var n=""+e;return n}function ts(e,t){return e==null?null:String(e)}function rs(e,t,r,n,s,i){var o=e.__className;if(m||o!==r||o===void 0){var a=es(r);(!m||a!==e.getAttribute("class"))&&(a==null?e.removeAttribute("class"):e.className=a),e.__className=r}return i}function Ar(e,t,r,n){var s=e.__style;if(m||s!==t){var i=ts(t);(!m||i!==e.getAttribute("style"))&&(i==null?e.removeAttribute("style"):e.style.cssText=i),e.__style=t}return n}const ns=Symbol("is custom element"),ss=Symbol("is html");function Nr(e,t,r,n){var s=is(e);m&&(s[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||s[t]!==(s[t]=r)&&(t==="loading"&&(e[Jr]=r),r==null?e.removeAttribute(t):typeof r!="string"&&Sr(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function Rr(e,t,r){var n=_,s=p;let i=m;m&&ae(!1),C(null),P(null);try{t!=="style"&&($t.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.tagName.toLowerCase())?Sr(e).includes(t):r&&typeof r=="object")?e[t]=r:Nr(e,t,r==null?r:String(r))}finally{C(n),P(s),i&&ae(!0)}}function is(e){return e.__attributes??={[ns]:e.nodeName.includes("-"),[ss]:e.namespaceURI===Ir}}var $t=new Map;function Sr(e){var t=e.getAttribute("is")||e.nodeName,r=$t.get(t);if(r)return r;$t.set(t,r=[]);for(var n,s=e,i=Element.prototype;i!==s;){n=Ur(s);for(var o in n)n[o].set&&r.push(o);s=Nt(s)}return r}function He(e,t,r,n){var s=n,i=!0,o=()=>(i&&(i=!1,s=n),s),a;a=e[t],a===void 0&&n!==void 0&&(a=o());var l;l=()=>{var u=e[t];return u===void 0?o():(i=!0,u)};var f=!1,d=Wt(()=>(f=!1,l())),c=p;return(function(u,h){if(arguments.length>0){const y=h?v(d):u;return $(d,y),f=!0,s!==void 0&&(s=y),u}return _e&&f||(c.f&ie)!==0?d.v:v(d)})}function os(e){return new as(e)}class as{#t;#e;constructor(t){var r=new Map,n=(i,o)=>{var a=$n(o,!1,!1);return r.set(i,a),a};const s=new Proxy({...t.props||{},$$events:{}},{get(i,o){return v(r.get(o)??n(o,Reflect.get(i,o)))},has(i,o){return o===Gr?!0:(v(r.get(o)??n(o,Reflect.get(i,o))),Reflect.has(i,o))},set(i,o,a){return $(r.get(o)??n(o,a),a),Reflect.set(i,o,a)}});this.#e=(t.hydrate?Jn:kr)(t.component,{target:t.target,anchor:t.anchor,props:s,context:t.context,intro:t.intro??!1,recover:t.recover}),(!t?.props?.$$host||t.sync===!1)&&xe(),this.#t=s.$$events;for(const i of Object.keys(this.#e))i==="$set"||i==="$destroy"||i==="$on"||Ve(this,i,{get(){return this.#e[i]},set(o){this.#e[i]=o},enumerable:!0});this.#e.$set=i=>{Object.assign(s,i)},this.#e.$destroy=()=>{Kn(this.#e)}}$set(t){this.#e.$set(t)}$on(t,r){this.#t[t]=this.#t[t]||[];const n=(...s)=>r.call(this,...s);return this.#t[t].push(n),()=>{this.#t[t]=this.#t[t].filter(s=>s!==n)}}$destroy(){this.#e.$destroy()}}let Or;typeof HTMLElement=="function"&&(Or=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(e,t,r){super(),this.$$ctor=e,this.$$s=t,r&&this.attachShadow({mode:"open"})}addEventListener(e,t,r){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}super.addEventListener(e,t,r)}removeEventListener(e,t,r){if(super.removeEventListener(e,t,r),this.$$c){const n=this.$$l_u.get(t);n&&(n(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(n){return s=>{const i=document.createElement("slot");n!=="default"&&(i.name=n),ue(s,i)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},r=ls(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]=st(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=os({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=Rn(()=>{sr(()=>{this.$$r=!0;for(const n of Ye(this.$$c)){if(!this.$$p_d[n]?.reflect)continue;this.$$d[n]=this.$$c[n];const s=st(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]=st(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 Ye(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function st(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 ls(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function fs(e,t,r,n,s,i){let o=class extends Or{constructor(){super(e,r,s),this.$$p_d=t}static get observedAttributes(){return Ye(t).map(a=>(t[a].attribute||a).toLowerCase())}};return Ye(t).forEach(a=>{Ve(o.prototype,a,{get(){return this.$$c&&a in this.$$c?this.$$c[a]:this.$$d[a]},set(l){l=st(a,l,t),this.$$d[a]=l;var f=this.$$c;if(f){var d=be(f,a)?.get;d?f[a]=l:f.$set({[a]:l})}}})}),n.forEach(a=>{Ve(o.prototype,a,{get(){return this.$$c?.[a]}})}),e.element=o,o}const us={version:"0.61.52"};var ge={},Lr;function cs(){if(Lr)return ge;Lr=1,Object.defineProperty(ge,"__esModule",{value:!0}),ge.LanguageTranslator=void 0,ge.getChildStyleToPass=e,ge.addComponent=t;function e(n,s){var i,o,a="";try{if(n&&s?.length&&(!((i=Object.keys(n))===null||i===void 0)&&i.length)&&(!((o=s?.filter(function(u){return Object.keys(n).includes(u.name)}))===null||o===void 0)&&o.length))for(var l=function(u){var h=s?.filter(function(y){return y.name===u&&y.defaultValue!==n[u]});h&&(a+="".concat(u,":").concat(n[u],";"))},f=0,d=Object.keys(n);f<d.length;f++){var c=d[f];l(c)}}catch(u){console.error("error getting child style to pass",u)}finally{return a}}function t(n){var s,i=((s=n?.repoName.split("/"))===null||s===void 0?void 0:s[1])||n?.repoName;if(!i)throw new Error("wrong componentPath "+n?.repoName);if(!n?.version)throw new Error("wrong version "+n?.version);var o=n?.iifePath||"main.iife.js";if(!document.getElementById(i+"-script"))try{var a=document.createElement("script");if(a.id=i+"-script",a.src="https://cdn.jsdelivr.net/npm/".concat(n.repoName,"@").concat(n.version,"/").concat(o),n?.local)a.src="".concat(n.local);else if(location.href.includes("localhost:6006")){var l=i.split("-")[0];a.src="http://localhost:6006/webcomponents/".concat(i.replace(l+"-",""),"/").concat(o)}document.head.appendChild(a)}catch(f){console.warn(f)}}var r=(function(){function n(s){if(this.lang="",!s?.dictionary)throw new Error("no dictionary provided");this.dictionary=s.dictionary,this.setLang(s?.lang)}return n.prototype.setLang=function(s){s||(s=n.getDefaultLang()),this.lang=s},n.prototype.translateWord=function(s,i){return n.getDictionaryWord(s,this.dictionary,i||this.lang)},n.prototype.translateDate=function(s,i,o){return n.formatDate(s,i,o||this.lang)},n.getDefaultLang=function(){var s,i,o,a="en";return navigator?.languages&&(!((o=(i=(s=navigator.languages[0])===null||s===void 0?void 0:s.split("-")[0])===null||i===void 0?void 0:i.toLowerCase())===null||o===void 0)&&o.length)&&(a=navigator.languages[0].split("-")[0].toLowerCase()),a},n.getDictionaryWord=function(s,i,o){var a;if(!s)throw new Error("no wordKey provided");if(!i)throw new Error("no dictionary provided");if(o&&(!((a=i[o])===null||a===void 0)&&a[s]))return i[o][s];var l="",f=n.getDefaultLang();if(!o||f!==o){var d=i?.[f];d?.[s]&&(l=d[s])}return l},n.formatDate=function(s,i,o){if(!s)throw new Error("no date provided");if(typeof s.getMonth!="function")throw new Error("wrong date format");var a=new Intl.DateTimeFormat(o||n.getDefaultLang(),i);return a.format(s)},n})();return ge.LanguageTranslator=r,ge}var ds=cs(),hs=wt('<div class="progress svelte-vj77ev"><div class="progress-bar progress-bar-striped progress-bar-animated svelte-vj77ev" role="progressbar" aria-valuenow="100" aria-valuemin="0" aria-valuemax="100" style="width: 100%"></div></div>'),vs=wt('<div class="progress svelte-vj77ev"><div class="progress-bar svelte-vj77ev" role="progressbar" aria-valuemin="0" aria-valuemax="100"> </div></div>'),_s=wt('<hb-dialog><span slot="title" class="svelte-vj77ev"><!></span> <div slot="body-content" class="svelte-vj77ev"><!></div> <span slot="modal-footer" class="svelte-vj77ev"></span></hb-dialog>',2);const ps={hash:"svelte-vj77ev",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");
|
|
4
3
|
/*!
|
|
5
4
|
* Bootstrap v5.1.2 (https://getbootstrap.com/)
|
|
6
5
|
* Copyright 2011-2021 The Bootstrap Authors
|
|
7
6
|
* Copyright 2011-2021 Twitter, Inc.
|
|
8
7
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
9
8
|
*/
|
|
10
|
-
@keyframes svelte-
|
|
9
|
+
@keyframes svelte-vj77ev-progress-bar-stripes {
|
|
11
10
|
0% {
|
|
12
11
|
background-position-x: var(--bs-progress-height);
|
|
13
12
|
}
|
|
14
|
-
}.progress.svelte-
|
|
15
|
-
@media (prefers-reduced-motion: reduce) {.progress-bar.svelte-
|
|
16
|
-
}.progress-bar-striped.svelte-
|
|
17
|
-
animation: 1s linear infinite svelte-
|
|
18
|
-
@media (prefers-reduced-motion: reduce) {.progress-bar-animated.svelte-
|
|
13
|
+
}.progress.svelte-vj77ev {--bs-progress-height: 1rem;--bs-progress-font-size: 0.75rem;--bs-progress-bg: var(--bs-secondary-bg);--bs-progress-border-radius: var(--bs-border-radius);--bs-progress-box-shadow: var(--bs-box-shadow-inset);--bs-progress-bar-color: #fff;--bs-progress-bar-bg: #0d6efd;--bs-progress-bar-transition: width 0.6s ease;display:flex;height:var(--bs-progress-height);overflow:hidden;font-size:var(--bs-progress-font-size);background-color:var(--bs-progress-bg);border-radius:var(--bs-progress-border-radius);}.progress-bar.svelte-vj77ev {display:flex;flex-direction:column;justify-content:center;overflow:hidden;color:var(--bs-progress-bar-color);text-align:center;white-space:nowrap;background-color:var(--bs-progress-bar-bg);transition:var(--bs-progress-bar-transition);}
|
|
14
|
+
@media (prefers-reduced-motion: reduce) {.progress-bar.svelte-vj77ev {transition:none;}
|
|
15
|
+
}.progress-bar-striped.svelte-vj77ev {background-image:linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);background-size:var(--bs-progress-height) var(--bs-progress-height);}.progress-bar-animated.svelte-vj77ev {
|
|
16
|
+
animation: 1s linear infinite svelte-vj77ev-progress-bar-stripes;}
|
|
17
|
+
@media (prefers-reduced-motion: reduce) {.progress-bar-animated.svelte-vj77ev {
|
|
19
18
|
animation: none;}
|
|
20
|
-
}:host {font-family:"Roboto", sans-serif;}`};function
|
|
19
|
+
}:host {font-family:"Roboto", sans-serif;}`};function jr(e,t){Pt(t,!0),Qn(e,ps);function r(g,w){t.$$host.dispatchEvent(new CustomEvent(g,{detail:w}))}ds.addComponent({repoName:"@htmlbricks/hb-dialog",version:us.version});let n=He(t,"id",7,""),s=He(t,"downloadid",7,""),i=He(t,"uri",7,""),o=He(t,"headers",7,void 0),a=He(t,"targetfilename",7,void 0);ke({});let l=N(""),f=N(0),d=N(0),c=N(null),u=N(!1),h=N(null);Nn(()=>{try{o()&&typeof o()=="string"&&o(JSON.parse(o()))}catch{}!a()&&i()&&a(i().split("/")[i().split("/").length-1].split("?")[0])});function y(){function g(w){console.error(w),w&&$(h,w,!0),$(c,null),r("downloadError",{downloaded:v(u),id:s(),error:w})}$(d,0),$(c,new XMLHttpRequest,!0);try{if(v(c).open("GET",i(),!0),o())for(const w of Object.keys(o()))v(c).setRequestHeader(w,o()[w]);v(c).responseType="blob",v(c).onload=function(){if(!v(c))return;if(v(c).status>299||v(c).status<200)return g("request error");let w=a();const it=v(c).getResponseHeader("Content-Disposition");if(it){const J=it.match(/filename="([^"]+)"/);J&&J[1]&&(w=J[1])}else console.warn("no content disposition, try adding header 'Access-Control-Expose-Headers: Content-Disposition'");const Et=(window.URL||window.webkitURL).createObjectURL(this.response),M=document.createElement("a");return M.href=Et,M.target="_blank",M.download=w,document.body.appendChild(M),M.click(),document.body.removeChild(M),console.log("loadEnd"),s(""),i(""),$(c,null),$(u,!0),$(h,null),r("downloadComplete",{downloaded:v(u),id:s()||"default"})},v(c).onerror=w=>g(w),v(c).onprogress=function(w){$(f,w?.total||0,!0),$(d,w?.loaded||0,!0)},v(c).onloadend=function(w){},v(c).send()}catch(w){return console.error("download err ",w),g(w)}}function H(g){g.show?(s(g.id),y()):(i(""),s(""),$(h,null),v(c)&&v(c).abort(),$(c,null)),r("modalShow",g)}var ne={get id(){return n()},set id(g=""){n(g),xe()},get downloadid(){return s()},set downloadid(g=""){s(g),xe()},get uri(){return i()},set uri(g=""){i(g),xe()},get headers(){return o()},set headers(g=void 0){o(g),xe()},get targetfilename(){return a()},set targetfilename(g=void 0){a(g),xe()}},U=_s();Ar(U,v(l)),rt(()=>Rr(U,"id",s())),rt(()=>Rr(U,"show",i()?"yes":"no")),rs(U,1,"svelte-vj77ev");var me=De(U),gs=De(me);Zn(gs,t,"title",{},g=>{var w=Er("Downloading");ue(g,w)}),Oe(me);var Mr=Tn(me,2),ms=De(Mr);{var ws=g=>{var w=hs();ue(g,w)},bs=g=>{var w=Tr(),it=tr(w);{var Dr=M=>{var J=vs(),Ne=De(J),Tt=De(Ne);Oe(Ne),Oe(J),rt((Ue,ot,ys)=>{Ar(Ne,`width:${Ue??""}%`),Nr(Ne,"aria-valuenow",ot),xr(Tt,`${ys??""}%`)},[()=>Math.round(v(d)/v(f)*100),()=>Math.round(v(d)/v(f)*100),()=>Math.round(v(d)/v(f)*100)]),ue(M,J)},Et=M=>{var J=Tr(),Ne=tr(J);{var Tt=Ue=>{var ot=Er();rt(()=>xr(ot,v(h))),ue(Ue,ot)};yt(Ne,Ue=>{v(h)&&Ue(Tt)},!0)}ue(M,J)};yt(it,M=>{v(h)?M(Et,!1):M(Dr)},!0)}ue(g,w)};yt(ms,g=>{!v(f)&&!v(h)?g(ws):g(bs,!1)})}return Oe(Mr),jt(2),Oe(U),Vn("modalShow",U,g=>H(g.detail)),ue(e,U),Ft(ne)}customElements.define("hb-downloader",fs(jr,{id:{},downloadid:{},uri:{},headers:{},targetfilename:{}},["title"],[],!0)),xt.Component=jr,Object.defineProperty(xt,Symbol.toStringTag,{value:"Module"})})(this.downloader=this.downloader||{});
|
|
21
20
|
//# sourceMappingURL=main.iife.js.map
|