@htmlbricks/hb-editor-video 0.66.2 → 0.66.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/main.iife.js +4 -4
- package/main.iife.js.map +1 -1
- package/manifest.json +3 -1
- package/package.json +1 -1
package/main.iife.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
(function(zr){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const Xn=1,Qn=4,es=8,ts=16,rs=1,ns=2,Dr="[",Or="[!",Vr="[?",Nr="]",lt={},Q=Symbol(),Ar="http://www.w3.org/1999/xhtml",ss=!1;var is=Array.isArray,os=Array.prototype.indexOf,ut=Array.prototype.includes,as=Array.from,Nt=Object.keys,At=Object.defineProperty,tt=Object.getOwnPropertyDescriptor,ls=Object.getOwnPropertyDescriptors,us=Object.prototype,fs=Array.prototype,Cr=Object.getPrototypeOf,Rr=Object.isExtensible;const cs=()=>{};function ds(e){for(var t=0;t<e.length;t++)e[t]()}function Lr(){var e,t,r=new Promise((s,n)=>{e=s,t=n});return{promise:r,resolve:e,reject:t}}const Z=2,ft=4,Ct=8,Pr=1<<24,Ye=16,ke=32,Fe=64,Qt=128,de=512,J=1024,ee=2048,Ee=4096,Se=8192,ye=16384,He=32768,Ir=1<<25,ct=65536,jr=1<<17,Yr=1<<18,qe=1<<19,vs=1<<20,rt=65536,er=1<<21,tr=1<<22,We=1<<23,Rt=Symbol("$state"),Fr=Symbol("legacy props"),hs=Symbol(""),Ve=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},bs=!!globalThis.document?.contentType&&globalThis.document.contentType.includes("xml"),rr=3,kt=8;function ms(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function _s(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function ps(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function gs(e){throw new Error("https://svelte.dev/e/effect_orphan")}function ys(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function ws(){throw new Error("https://svelte.dev/e/hydration_failed")}function $s(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function xs(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function ks(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Es(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Ss(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function Lt(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function Ts(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let R=!1;function Te(e){R=e}let Y;function ve(e){if(e===null)throw Lt(),lt;return Y=e}function nr(){return ve(Me(Y))}function ne(e){if(R){if(Me(Y)!==null)throw Lt(),lt;Y=e}}function sr(e=1){if(R){for(var t=e,r=Y;t--;)r=Me(r);Y=r}}function Hr(e=!0){for(var t=0,r=Y;;){if(r.nodeType===kt){var s=r.data;if(s===Nr){if(t===0)return r;t-=1}else(s===Dr||s===Or||s[0]==="["&&!isNaN(Number(s.slice(1))))&&(t+=1)}var n=Me(r);e&&r.remove(),r=n}}function Ms(e){if(!e||e.nodeType!==kt)throw Lt(),lt;return e.data}function qr(e){return e===this.v}function zs(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Wr(e){return!zs(e,this.v)}let Ds=!1,he=null;function dt(e){he=e}function Br(e,t=!1,r){he={p:he,i:!1,c:null,e:null,s:e,x:null,r:V,l:null}}function Ur(e){var t=he,r=t.e;if(r!==null){t.e=null;for(var s of r)gn(s)}return e!==void 0&&(t.x=e),t.i=!0,he=t.p,e??{}}function Jr(){return!0}let nt=[];function Gr(){var e=nt;nt=[],ds(e)}function Be(e){if(nt.length===0&&!Et){var t=nt;queueMicrotask(()=>{t===nt&&Gr()})}nt.push(e)}function Os(){for(;nt.length>0;)Gr()}function Zr(e){var t=V;if(t===null)return O.f|=We,e;if((t.f&He)===0&&(t.f&ft)===0)throw e;Ue(e,t)}function Ue(e,t){for(;t!==null;){if((t.f&Qt)!==0){if((t.f&He)===0)throw e;try{t.b.error(e);return}catch(r){e=r}}t=t.parent}throw e}const Vs=-7169;function U(e,t){e.f=e.f&Vs|t}function ir(e){(e.f&de)!==0||e.deps===null?U(e,J):U(e,Ee)}function Kr(e){if(e!==null)for(const t of e)(t.f&Z)===0||(t.f&rt)===0||(t.f^=rt,Kr(t.deps))}function Xr(e,t,r){(e.f&ee)!==0?t.add(e):(e.f&Ee)!==0&&r.add(e),Kr(e.deps),U(e,J)}let Pt=!1;function Ns(e){var t=Pt;try{return Pt=!1,[e(),Pt]}finally{Pt=t}}const Je=new Set;let P=null,we=null,or=null,Et=!1,ar=!1,vt=null,It=null;var Qr=0;let As=1;class Ne{id=As++;current=new Map;previous=new Map;#e=new Set;#r=new Set;#t=new Map;#s=new Map;#i=null;#n=[];#o=new Set;#a=new Set;#l=new Map;is_fork=!1;#c=!1;#u=new Set;#d(){return this.is_fork||this.#s.size>0}#h(){for(const s of this.#u)for(const n of s.#s.keys()){for(var t=!1,r=n;r.parent!==null;){if(this.#l.has(r)){t=!0;break}r=r.parent}if(!t)return!0}return!1}skip_effect(t){this.#l.has(t)||this.#l.set(t,{d:[],m:[]})}unskip_effect(t){var r=this.#l.get(t);if(r){this.#l.delete(t);for(var s of r.d)U(s,ee),this.schedule(s);for(s of r.m)U(s,Ee),this.schedule(s)}}#v(){if(Qr++>1e3&&(Je.delete(this),Cs()),!this.#d()){for(const o of this.#o)this.#a.delete(o),U(o,ee),this.schedule(o);for(const o of this.#a)U(o,Ee),this.schedule(o)}const t=this.#n;this.#n=[],this.apply();var r=vt=[],s=[],n=It=[];for(const o of t)try{this.#f(o,r,s)}catch(u){throw sn(o),u}if(P=null,n.length>0){var i=Ne.ensure();for(const o of n)i.schedule(o)}if(vt=null,It=null,this.#d()||this.#h()){this.#b(s),this.#b(r);for(const[o,u]of this.#l)nn(o,u)}else{this.#t.size===0&&Je.delete(this),this.#o.clear(),this.#a.clear();for(const o of this.#e)o(this);this.#e.clear(),en(s),en(r),this.#i?.resolve()}var a=P;if(this.#n.length>0){const o=a??=this;o.#n.push(...this.#n.filter(u=>!o.#n.includes(u)))}a!==null&&(Je.add(a),a.#v()),Je.has(this)||this.#m()}#f(t,r,s){t.f^=J;for(var n=t.first;n!==null;){var i=n.f,a=(i&(ke|Fe))!==0,o=a&&(i&J)!==0,u=o||(i&Se)!==0||this.#l.has(n);if(!u&&n.fn!==null){a?n.f^=J:(i&ft)!==0?r.push(n):zt(n)&&((i&Ye)!==0&&this.#a.add(n),_t(n));var l=n.first;if(l!==null){n=l;continue}}for(;n!==null;){var f=n.next;if(f!==null){n=f;break}n=n.parent}}}#b(t){for(var r=0;r<t.length;r+=1)Xr(t[r],this.#o,this.#a)}capture(t,r,s=!1){r!==Q&&!this.previous.has(t)&&this.previous.set(t,r),(t.f&We)===0&&(this.current.set(t,[t.v,s]),we?.set(t,t.v))}activate(){P=this}deactivate(){P=null,we=null}flush(){try{ar=!0,P=this,this.#v()}finally{Qr=0,or=null,vt=null,It=null,ar=!1,P=null,we=null,Ge.clear()}}discard(){for(const t of this.#r)t(this);this.#r.clear(),Je.delete(this)}#m(){for(const l of Je){var t=l.id<this.id,r=[];for(const[f,[m,c]]of this.current){if(l.current.has(f)){var s=l.current.get(f)[0];if(t&&m!==s)l.current.set(f,[m,c]);else continue}r.push(f)}var n=[...l.current.keys()].filter(f=>!this.current.has(f));if(n.length===0)t&&l.discard();else if(r.length>0){l.activate();var i=new Set,a=new Map;for(var o of r)tn(o,n,i,a);if(l.#n.length>0){l.apply();for(var u of l.#n)l.#f(u,[],[]);l.#n=[]}l.deactivate()}}for(const l of Je)l.#u.has(this)&&(l.#u.delete(this),l.#u.size===0&&!l.#d()&&(l.activate(),l.#v()))}increment(t,r){let s=this.#t.get(r)??0;if(this.#t.set(r,s+1),t){let n=this.#s.get(r)??0;this.#s.set(r,n+1)}}decrement(t,r,s){let n=this.#t.get(r)??0;if(n===1?this.#t.delete(r):this.#t.set(r,n-1),t){let i=this.#s.get(r)??0;i===1?this.#s.delete(r):this.#s.set(r,i-1)}this.#c||s||(this.#c=!0,Be(()=>{this.#c=!1,this.flush()}))}transfer_effects(t,r){for(const s of t)this.#o.add(s);for(const s of r)this.#a.add(s);t.clear(),r.clear()}oncommit(t){this.#e.add(t)}ondiscard(t){this.#r.add(t)}settled(){return(this.#i??=Lr()).promise}static ensure(){if(P===null){const t=P=new Ne;ar||(Je.add(P),Et||Be(()=>{P===t&&t.flush()}))}return P}apply(){{we=null;return}}schedule(t){if(or=t,t.b?.is_pending&&(t.f&(ft|Ct|Pr))!==0&&(t.f&He)===0){t.b.defer_effect(t);return}for(var r=t;r.parent!==null;){r=r.parent;var s=r.f;if(vt!==null&&r===V&&(O===null||(O.f&Z)===0))return;if((s&(Fe|ke))!==0){if((s&J)===0)return;r.f^=J}}this.#n.push(r)}}function ht(e){var t=Et;Et=!0;try{for(var r;;){if(Os(),P===null)return r;P.flush()}}finally{Et=t}}function Cs(){try{ys()}catch(e){Ue(e,or)}}let Ae=null;function en(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var s=e[r++];if((s.f&(ye|Se))===0&&zt(s)&&(Ae=new Set,_t(s),s.deps===null&&s.first===null&&s.nodes===null&&s.teardown===null&&s.ac===null&&wn(s),Ae?.size>0)){Ge.clear();for(const n of Ae){if((n.f&(ye|Se))!==0)continue;const i=[n];let a=n.parent;for(;a!==null;)Ae.has(a)&&(Ae.delete(a),i.push(a)),a=a.parent;for(let o=i.length-1;o>=0;o--){const u=i[o];(u.f&(ye|Se))===0&&_t(u)}}Ae.clear()}}Ae=null}}function tn(e,t,r,s){if(!r.has(e)&&(r.add(e),e.reactions!==null))for(const n of e.reactions){const i=n.f;(i&Z)!==0?tn(n,t,r,s):(i&(tr|Ye))!==0&&(i&ee)===0&&rn(n,t,s)&&(U(n,ee),lr(n))}}function rn(e,t,r){const s=r.get(e);if(s!==void 0)return s;if(e.deps!==null)for(const n of e.deps){if(ut.call(t,n))return!0;if((n.f&Z)!==0&&rn(n,t,r))return r.set(n,!0),!0}return r.set(e,!1),!1}function lr(e){P.schedule(e)}function nn(e,t){if(!((e.f&ke)!==0&&(e.f&J)!==0)){(e.f&ee)!==0?t.d.push(e):(e.f&Ee)!==0&&t.m.push(e),U(e,J);for(var r=e.first;r!==null;)nn(r,t),r=r.next}}function sn(e){U(e,J);for(var t=e.first;t!==null;)sn(t),t=t.next}function Rs(e){let t=0,r=St(0),s;return()=>{hr()&&(b(r),br(()=>(t===0&&(s=pr(()=>e(()=>Tt(r)))),t+=1,()=>{Be(()=>{t-=1,t===0&&(s?.(),s=void 0,Tt(r))})})))}}var Ls=ct|qe;function Ps(e,t,r,s){new Is(e,t,r,s)}class Is{parent;is_pending=!1;transform_error;#e;#r=R?Y:null;#t;#s;#i;#n=null;#o=null;#a=null;#l=null;#c=0;#u=0;#d=!1;#h=new Set;#v=new Set;#f=null;#b=Rs(()=>(this.#f=St(this.#c),()=>{this.#f=null}));constructor(t,r,s,n){this.#e=t,this.#t=r,this.#s=i=>{var a=V;a.b=this,a.f|=Qt,s(i)},this.parent=V.b,this.transform_error=n??this.parent?.transform_error??(i=>i),this.#i=mr(()=>{if(R){const i=this.#r;nr();const a=i.data===Or;if(i.data.startsWith(Vr)){const u=JSON.parse(i.data.slice(Vr.length));this.#w(u)}else a?this.#$():this.#m()}else this.#g()},Ls),R&&(this.#e=Y)}#m(){try{this.#n=Le(()=>this.#s(this.#e))}catch(t){this.error(t)}}#w(t){const r=this.#t.failed;r&&(this.#a=Le(()=>{r(this.#e,()=>t,()=>()=>{})}))}#$(){const t=this.#t.pending;t&&(this.is_pending=!0,this.#o=Le(()=>t(this.#e)),Be(()=>{var r=this.#l=document.createDocumentFragment(),s=Ce();r.append(s),this.#n=this.#p(()=>Le(()=>this.#s(s))),this.#u===0&&(this.#e.before(r),this.#l=null,Mt(this.#o,()=>{this.#o=null}),this.#_(P))}))}#g(){try{if(this.is_pending=this.has_pending_snippet(),this.#u=0,this.#c=0,this.#n=Le(()=>{this.#s(this.#e)}),this.#u>0){var t=this.#l=document.createDocumentFragment();kn(this.#n,t);const r=this.#t.pending;this.#o=Le(()=>r(this.#e))}else this.#_(P)}catch(r){this.error(r)}}#_(t){this.is_pending=!1,t.transfer_effects(this.#h,this.#v)}defer_effect(t){Xr(t,this.#h,this.#v)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#t.pending}#p(t){var r=V,s=O,n=he;be(this.#i),oe(this.#i),dt(this.#i.ctx);try{return Ne.ensure(),t()}catch(i){return Zr(i),null}finally{be(r),oe(s),dt(n)}}#y(t,r){if(!this.has_pending_snippet()){this.parent&&this.parent.#y(t,r);return}this.#u+=t,this.#u===0&&(this.#_(r),this.#o&&Mt(this.#o,()=>{this.#o=null}),this.#l&&(this.#e.before(this.#l),this.#l=null))}update_pending_count(t,r){this.#y(t,r),this.#c+=t,!(!this.#f||this.#d)&&(this.#d=!0,Be(()=>{this.#d=!1,this.#f&&Yt(this.#f,this.#c)}))}get_effect_pending(){return this.#b(),b(this.#f)}error(t){var r=this.#t.onerror;let s=this.#t.failed;if(!r&&!s)throw t;this.#n&&(ie(this.#n),this.#n=null),this.#o&&(ie(this.#o),this.#o=null),this.#a&&(ie(this.#a),this.#a=null),R&&(ve(this.#r),sr(),ve(Hr()));var n=!1,i=!1;const a=()=>{if(n){Ts();return}n=!0,i&&Ss(),this.#a!==null&&Mt(this.#a,()=>{this.#a=null}),this.#p(()=>{this.#g()})},o=u=>{try{i=!0,r?.(u,a),i=!1}catch(l){Ue(l,this.#i&&this.#i.parent)}s&&(this.#a=this.#p(()=>{try{return Le(()=>{var l=V;l.b=this,l.f|=Qt,s(this.#e,()=>u,()=>a)})}catch(l){return Ue(l,this.#i.parent),null}}))};Be(()=>{var u;try{u=this.transform_error(t)}catch(l){Ue(l,this.#i&&this.#i.parent);return}u!==null&&typeof u=="object"&&typeof u.then=="function"?u.then(o,l=>Ue(l,this.#i&&this.#i.parent)):o(u)})}}function js(e,t,r,s){const n=ur;var i=e.filter(c=>!c.settled);if(r.length===0&&i.length===0){s(t.map(n));return}var a=V,o=Ys(),u=i.length===1?i[0].promise:i.length>1?Promise.all(i.map(c=>c.promise)):null;function l(c){o();try{s(c)}catch(g){(a.f&ye)===0&&Ue(g,a)}jt()}if(r.length===0){u.then(()=>l(t.map(n)));return}var f=on();function m(){Promise.all(r.map(c=>Fs(c))).then(c=>l([...t.map(n),...c])).catch(c=>Ue(c,a)).finally(()=>f())}u?u.then(()=>{o(),m(),jt()}):m()}function Ys(){var e=V,t=O,r=he,s=P;return function(i=!0){be(e),oe(t),dt(r),i&&(e.f&ye)===0&&(s?.activate(),s?.apply())}}function jt(e=!0){be(null),oe(null),dt(null),e&&P?.deactivate()}function on(){var e=V,t=e.b,r=P,s=t.is_rendered();return t.update_pending_count(1,r),r.increment(s,e),(n=!1)=>{t.update_pending_count(-1,r),r.decrement(s,e,n)}}function ur(e){var t=Z|ee,r=O!==null&&(O.f&Z)!==0?O:null;return V!==null&&(V.f|=qe),{ctx:he,deps:null,effects:null,equals:qr,f:t,fn:e,reactions:null,rv:0,v:Q,wv:0,parent:r??V,ac:null}}function Fs(e,t,r){let s=V;s===null&&ms();var n=void 0,i=St(Q),a=!O,o=new Map;return si(()=>{var u=V,l=Lr();n=l.promise;try{Promise.resolve(e()).then(l.resolve,l.reject).finally(jt)}catch(g){l.reject(g),jt()}var f=P;if(a){if((u.f&He)!==0)var m=on();if(s.b.is_rendered())o.get(f)?.reject(Ve),o.delete(f);else{for(const g of o.values())g.reject(Ve);o.clear()}o.set(f,l)}const c=(g,p=void 0)=>{if(m){var S=p===Ve;m(S)}if(!(p===Ve||(u.f&ye)!==0)){if(f.activate(),p)i.f|=We,Yt(i,p);else{(i.f&We)!==0&&(i.f^=We),Yt(i,g);for(const[C,T]of o){if(o.delete(C),C===f)break;T.reject(Ve)}}f.deactivate()}};l.promise.then(c,g=>c(null,g||"unknown"))}),pn(()=>{for(const u of o.values())u.reject(Ve)}),new Promise(u=>{function l(f){function m(){f===n?u(i):l(n)}f.then(m,m)}l(n)})}function Hs(e){const t=ur(e);return t.equals=Wr,t}function qs(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)ie(t[r])}}function Ws(e){for(var t=e.parent;t!==null;){if((t.f&Z)===0)return(t.f&ye)===0?t:null;t=t.parent}return null}function fr(e){var t,r=V;be(Ws(e));try{e.f&=~rt,qs(e),t=Dn(e)}finally{be(r)}return t}function an(e){var t=e.v,r=fr(e);if(!e.equals(r)&&(e.wv=Mn(),(!P?.is_fork||e.deps===null)&&(e.v=r,P?.capture(e,t,!0),e.deps===null))){U(e,J);return}Ze||(we!==null?(hr()||P?.is_fork)&&we.set(e,r):ir(e))}function Bs(e){if(e.effects!==null)for(const t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(Ve),t.teardown=cs,t.ac=null,Dt(t,0),_r(t))}function ln(e){if(e.effects!==null)for(const t of e.effects)t.teardown&&_t(t)}let cr=new Set;const Ge=new Map;let un=!1;function St(e,t){var r={f:0,v:e,reactions:null,equals:qr,rv:0,wv:0};return r}function q(e,t){const r=St(e);return li(r),r}function Us(e,t=!1,r=!0){const s=St(e);return t||(s.equals=Wr),s}function N(e,t,r=!1){O!==null&&(!$e||(O.f&jr)!==0)&&Jr()&&(O.f&(Z|Ye|tr|jr))!==0&&(me===null||!ut.call(me,e))&&Es();let s=r?bt(t):t;return Yt(e,s,It)}function Yt(e,t,r=null){if(!e.equals(t)){var s=e.v;Ze?Ge.set(e,t):Ge.set(e,s),e.v=t;var n=Ne.ensure();if(n.capture(e,s),(e.f&Z)!==0){const i=e;(e.f&ee)!==0&&fr(i),we===null&&ir(i)}e.wv=Mn(),fn(e,ee,r),V!==null&&(V.f&J)!==0&&(V.f&(ke|Fe))===0&&(_e===null?ui([e]):_e.push(e)),!n.is_fork&&cr.size>0&&!un&&Js()}return t}function Js(){un=!1;for(const e of cr)(e.f&J)!==0&&U(e,Ee),zt(e)&&_t(e);cr.clear()}function Tt(e){N(e,e.v+1)}function fn(e,t,r){var s=e.reactions;if(s!==null)for(var n=s.length,i=0;i<n;i++){var a=s[i],o=a.f,u=(o&ee)===0;if(u&&U(a,t),(o&Z)!==0){var l=a;we?.delete(l),(o&rt)===0&&(o&de&&(a.f|=rt),fn(l,Ee,r))}else if(u){var f=a;(o&Ye)!==0&&Ae!==null&&Ae.add(f),r!==null?r.push(f):lr(f)}}}function bt(e){if(typeof e!="object"||e===null||Rt in e)return e;const t=Cr(e);if(t!==us&&t!==fs)return e;var r=new Map,s=is(e),n=q(0),i=it,a=o=>{if(it===i)return o();var u=O,l=it;oe(null),Tn(i);var f=o();return oe(u),Tn(l),f};return s&&r.set("length",q(e.length)),new Proxy(e,{defineProperty(o,u,l){(!("value"in l)||l.configurable===!1||l.enumerable===!1||l.writable===!1)&&xs();var f=r.get(u);return f===void 0?a(()=>{var m=q(l.value);return r.set(u,m),m}):N(f,l.value,!0),!0},deleteProperty(o,u){var l=r.get(u);if(l===void 0){if(u in o){const f=a(()=>q(Q));r.set(u,f),Tt(n)}}else N(l,Q),Tt(n);return!0},get(o,u,l){if(u===Rt)return e;var f=r.get(u),m=u in o;if(f===void 0&&(!m||tt(o,u)?.writable)&&(f=a(()=>{var g=bt(m?o[u]:Q),p=q(g);return p}),r.set(u,f)),f!==void 0){var c=b(f);return c===Q?void 0:c}return Reflect.get(o,u,l)},getOwnPropertyDescriptor(o,u){var l=Reflect.getOwnPropertyDescriptor(o,u);if(l&&"value"in l){var f=r.get(u);f&&(l.value=b(f))}else if(l===void 0){var m=r.get(u),c=m?.v;if(m!==void 0&&c!==Q)return{enumerable:!0,configurable:!0,value:c,writable:!0}}return l},has(o,u){if(u===Rt)return!0;var l=r.get(u),f=l!==void 0&&l.v!==Q||Reflect.has(o,u);if(l!==void 0||V!==null&&(!f||tt(o,u)?.writable)){l===void 0&&(l=a(()=>{var c=f?bt(o[u]):Q,g=q(c);return g}),r.set(u,l));var m=b(l);if(m===Q)return!1}return f},set(o,u,l,f){var m=r.get(u),c=u in o;if(s&&u==="length")for(var g=l;g<m.v;g+=1){var p=r.get(g+"");p!==void 0?N(p,Q):g in o&&(p=a(()=>q(Q)),r.set(g+"",p))}if(m===void 0)(!c||tt(o,u)?.writable)&&(m=a(()=>q(void 0)),N(m,bt(l)),r.set(u,m));else{c=m.v!==Q;var S=a(()=>bt(l));N(m,S)}var C=Reflect.getOwnPropertyDescriptor(o,u);if(C?.set&&C.set.call(f,l),!c){if(s&&typeof u=="string"){var T=r.get("length"),L=Number(u);Number.isInteger(L)&&L>=T.v&&N(T,L+1)}Tt(n)}return!0},ownKeys(o){b(n);var u=Reflect.ownKeys(o).filter(m=>{var c=r.get(m);return c===void 0||c.v!==Q});for(var[l,f]of r)f.v!==Q&&!(l in o)&&u.push(l);return u},setPrototypeOf(){ks()}})}var cn,dn,vn,hn;function dr(){if(cn===void 0){cn=window,dn=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;vn=tt(t,"firstChild").get,hn=tt(t,"nextSibling").get,Rr(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),Rr(r)&&(r.__t=void 0)}}function Ce(e=""){return document.createTextNode(e)}function mt(e){return vn.call(e)}function Me(e){return hn.call(e)}function se(e,t){if(!R)return mt(e);var r=mt(Y);return r===null&&(r=Y.appendChild(Ce())),ve(r),r}function te(e,t=1,r=!1){let s=R?Y:e;for(var n;t--;)n=s,s=Me(s);if(!R)return s;if(r){if(s?.nodeType!==rr){var i=Ce();return s===null?n?.after(i):s.before(i),ve(i),i}bn(s)}return ve(s),s}function Gs(e){e.textContent=""}function Zs(){return!1}function vr(e,t,r){return document.createElementNS(Ar,e,void 0)}function bn(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===rr;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}let mn=!1;function _n(){mn||(mn=!0,document.addEventListener("reset",e=>{Promise.resolve().then(()=>{if(!e.defaultPrevented)for(const t of e.target.elements)t.__on_r?.()})},{capture:!0}))}function Ft(e){var t=O,r=V;oe(null),be(null);try{return e()}finally{oe(t),be(r)}}function Ks(e,t,r,s=r){e.addEventListener(t,()=>Ft(r));const n=e.__on_r;n?e.__on_r=()=>{n(),s(!0)}:e.__on_r=()=>s(!0),_n()}function Xs(e){V===null&&(O===null&&gs(),ps()),Ze&&_s()}function Qs(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function ze(e,t){var r=V;r!==null&&(r.f&Se)!==0&&(e|=Se);var s={ctx:he,deps:null,nodes:null,f:e|ee|de,first:null,fn:t,last:null,next:null,parent:r,b:r&&r.b,prev:null,teardown:null,wv:0,ac:null},n=s;if((e&ft)!==0)vt!==null?vt.push(s):Ne.ensure().schedule(s);else if(t!==null){try{_t(s)}catch(a){throw ie(s),a}n.deps===null&&n.teardown===null&&n.nodes===null&&n.first===n.last&&(n.f&qe)===0&&(n=n.first,(e&Ye)!==0&&(e&ct)!==0&&n!==null&&(n.f|=ct))}if(n!==null&&(n.parent=r,r!==null&&Qs(n,r),O!==null&&(O.f&Z)!==0&&(e&Fe)===0)){var i=O;(i.effects??=[]).push(n)}return s}function hr(){return O!==null&&!$e}function pn(e){const t=ze(Ct,null);return U(t,J),t.teardown=e,t}function ei(e){Xs();var t=V.f,r=!O&&(t&ke)!==0&&(t&He)===0;if(r){var s=he;(s.e??=[]).push(e)}else return gn(e)}function gn(e){return ze(ft|vs,e)}function ti(e){Ne.ensure();const t=ze(Fe|qe,e);return()=>{ie(t)}}function ri(e){Ne.ensure();const t=ze(Fe|qe,e);return(r={})=>new Promise(s=>{r.outro?Mt(t,()=>{ie(t),s(void 0)}):(ie(t),s(void 0))})}function ni(e){return ze(ft,e)}function si(e){return ze(tr|qe,e)}function br(e,t=0){return ze(Ct|t,e)}function Re(e,t=[],r=[],s=[]){js(s,t,r,n=>{ze(Ct,()=>e(...n.map(b)))})}function mr(e,t=0){var r=ze(Ye|t,e);return r}function Le(e){return ze(ke|qe,e)}function yn(e){var t=e.teardown;if(t!==null){const r=Ze,s=O;En(!0),oe(null);try{t.call(null)}finally{En(r),oe(s)}}}function _r(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const n=r.ac;n!==null&&Ft(()=>{n.abort(Ve)});var s=r.next;(r.f&Fe)!==0?r.parent=null:ie(r,t),r=s}}function ii(e){for(var t=e.first;t!==null;){var r=t.next;(t.f&ke)===0&&ie(t),t=r}}function ie(e,t=!0){var r=!1;(t||(e.f&Yr)!==0)&&e.nodes!==null&&e.nodes.end!==null&&(oi(e.nodes.start,e.nodes.end),r=!0),U(e,Ir),_r(e,t&&!r),Dt(e,0);var s=e.nodes&&e.nodes.t;if(s!==null)for(const i of s)i.stop();yn(e),e.f^=Ir,e.f|=ye;var n=e.parent;n!==null&&n.first!==null&&wn(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function oi(e,t){for(;e!==null;){var r=e===t?null:Me(e);e.remove(),e=r}}function wn(e){var t=e.parent,r=e.prev,s=e.next;r!==null&&(r.next=s),s!==null&&(s.prev=r),t!==null&&(t.first===e&&(t.first=s),t.last===e&&(t.last=r))}function Mt(e,t,r=!0){var s=[];$n(e,s,!0);var n=()=>{r&&ie(e),t&&t()},i=s.length;if(i>0){var a=()=>--i||n();for(var o of s)o.out(a)}else n()}function $n(e,t,r){if((e.f&Se)===0){e.f^=Se;var s=e.nodes&&e.nodes.t;if(s!==null)for(const o of s)(o.is_global||r)&&t.push(o);for(var n=e.first;n!==null;){var i=n.next,a=(n.f&ct)!==0||(n.f&ke)!==0&&(e.f&Ye)!==0;$n(n,t,a?r:!1),n=i}}}function ai(e){xn(e,!0)}function xn(e,t){if((e.f&Se)!==0){e.f^=Se,(e.f&J)===0&&(U(e,ee),Ne.ensure().schedule(e));for(var r=e.first;r!==null;){var s=r.next,n=(r.f&ct)!==0||(r.f&ke)!==0;xn(r,n?t:!1),r=s}var i=e.nodes&&e.nodes.t;if(i!==null)for(const a of i)(a.is_global||t)&&a.in()}}function kn(e,t){if(e.nodes)for(var r=e.nodes.start,s=e.nodes.end;r!==null;){var n=r===s?null:Me(r);t.append(r),r=n}}let Ht=!1,Ze=!1;function En(e){Ze=e}let O=null,$e=!1;function oe(e){O=e}let V=null;function be(e){V=e}let me=null;function li(e){O!==null&&(me===null?me=[e]:me.push(e))}let ae=null,ue=0,_e=null;function ui(e){_e=e}let Sn=1,st=0,it=st;function Tn(e){it=e}function Mn(){return++Sn}function zt(e){var t=e.f;if((t&ee)!==0)return!0;if(t&Z&&(e.f&=~rt),(t&Ee)!==0){for(var r=e.deps,s=r.length,n=0;n<s;n++){var i=r[n];if(zt(i)&&an(i),i.wv>e.wv)return!0}(t&de)!==0&&we===null&&U(e,J)}return!1}function zn(e,t,r=!0){var s=e.reactions;if(s!==null&&!(me!==null&&ut.call(me,e)))for(var n=0;n<s.length;n++){var i=s[n];(i.f&Z)!==0?zn(i,t,!1):t===i&&(r?U(i,ee):(i.f&J)!==0&&U(i,Ee),lr(i))}}function Dn(e){var t=ae,r=ue,s=_e,n=O,i=me,a=he,o=$e,u=it,l=e.f;ae=null,ue=0,_e=null,O=(l&(ke|Fe))===0?e:null,me=null,dt(e.ctx),$e=!1,it=++st,e.ac!==null&&(Ft(()=>{e.ac.abort(Ve)}),e.ac=null);try{e.f|=er;var f=e.fn,m=f();e.f|=He;var c=e.deps,g=P?.is_fork;if(ae!==null){var p;if(g||Dt(e,ue),c!==null&&ue>0)for(c.length=ue+ae.length,p=0;p<ae.length;p++)c[ue+p]=ae[p];else e.deps=c=ae;if(hr()&&(e.f&de)!==0)for(p=ue;p<c.length;p++)(c[p].reactions??=[]).push(e)}else!g&&c!==null&&ue<c.length&&(Dt(e,ue),c.length=ue);if(Jr()&&_e!==null&&!$e&&c!==null&&(e.f&(Z|Ee|ee))===0)for(p=0;p<_e.length;p++)zn(_e[p],e);if(n!==null&&n!==e){if(st++,n.deps!==null)for(let S=0;S<r;S+=1)n.deps[S].rv=st;if(t!==null)for(const S of t)S.rv=st;_e!==null&&(s===null?s=_e:s.push(..._e))}return(e.f&We)!==0&&(e.f^=We),m}catch(S){return Zr(S)}finally{e.f^=er,ae=t,ue=r,_e=s,O=n,me=i,dt(a),$e=o,it=u}}function fi(e,t){let r=t.reactions;if(r!==null){var s=os.call(r,e);if(s!==-1){var n=r.length-1;n===0?r=t.reactions=null:(r[s]=r[n],r.pop())}}if(r===null&&(t.f&Z)!==0&&(ae===null||!ut.call(ae,t))){var i=t;(i.f&de)!==0&&(i.f^=de,i.f&=~rt),ir(i),Bs(i),Dt(i,0)}}function Dt(e,t){var r=e.deps;if(r!==null)for(var s=t;s<r.length;s++)fi(e,r[s])}function _t(e){var t=e.f;if((t&ye)===0){U(e,J);var r=V,s=Ht;V=e,Ht=!0;try{(t&(Ye|Pr))!==0?ii(e):_r(e),yn(e);var n=Dn(e);e.teardown=typeof n=="function"?n:null,e.wv=Sn;var i;ss&&Ds&&(e.f&ee)!==0&&e.deps}finally{Ht=s,V=r}}}async function ci(){await Promise.resolve(),ht()}function b(e){var t=e.f,r=(t&Z)!==0;if(O!==null&&!$e){var s=V!==null&&(V.f&ye)!==0;if(!s&&(me===null||!ut.call(me,e))){var n=O.deps;if((O.f&er)!==0)e.rv<st&&(e.rv=st,ae===null&&n!==null&&n[ue]===e?ue++:ae===null?ae=[e]:ae.push(e));else{(O.deps??=[]).push(e);var i=e.reactions;i===null?e.reactions=[O]:ut.call(i,O)||i.push(O)}}}if(Ze&&Ge.has(e))return Ge.get(e);if(r){var a=e;if(Ze){var o=a.v;return((a.f&J)===0&&a.reactions!==null||Vn(a))&&(o=fr(a)),Ge.set(a,o),o}var u=(a.f&de)===0&&!$e&&O!==null&&(Ht||(O.f&de)!==0),l=(a.f&He)===0;zt(a)&&(u&&(a.f|=de),an(a)),u&&!l&&(ln(a),On(a))}if(we?.has(e))return we.get(e);if((e.f&We)!==0)throw e.v;return e.v}function On(e){if(e.f|=de,e.deps!==null)for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&Z)!==0&&(t.f&de)===0&&(ln(t),On(t))}function Vn(e){if(e.v===Q)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(Ge.has(t)||(t.f&Z)!==0&&Vn(t))return!0;return!1}function pr(e){var t=$e;try{return $e=!0,e()}finally{$e=t}}const Ot=Symbol("events"),Nn=new Set,gr=new Set;function di(e,t,r,s={}){function n(i){if(s.capture||yr.call(t,i),!i.cancelBubble)return Ft(()=>r?.call(this,i))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?Be(()=>{t.addEventListener(e,n,s)}):t.addEventListener(e,n,s),n}function ot(e,t,r,s,n){var i={capture:s,passive:n},a=di(e,t,r,i);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&pn(()=>{t.removeEventListener(e,a,i)})}function fe(e,t,r){(t[Ot]??={})[e]=r}function vi(e){for(var t=0;t<e.length;t++)Nn.add(e[t]);for(var r of gr)r(e)}let An=null;function yr(e){var t=this,r=t.ownerDocument,s=e.type,n=e.composedPath?.()||[],i=n[0]||e.target;An=e;var a=0,o=An===e&&e[Ot];if(o){var u=n.indexOf(o);if(u!==-1&&(t===document||t===window)){e[Ot]=t;return}var l=n.indexOf(t);if(l===-1)return;u<=l&&(a=u)}if(i=n[a]||e.target,i!==t){At(e,"currentTarget",{configurable:!0,get(){return i||r}});var f=O,m=V;oe(null),be(null);try{for(var c,g=[];i!==null;){var p=i.assignedSlot||i.parentNode||i.host||null;try{var S=i[Ot]?.[s];S!=null&&(!i.disabled||e.target===i)&&S.call(i,e)}catch(C){c?g.push(C):c=C}if(e.cancelBubble||p===t||p===null)break;i=p}if(c){for(let C of g)queueMicrotask(()=>{throw C});throw c}}finally{e[Ot]=t,delete e.currentTarget,oe(f),be(m)}}}const hi=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:e=>e});function bi(e){return hi?.createHTML(e)??e}function mi(e){var t=vr("template");return t.innerHTML=bi(e.replaceAll("<!>","<!---->")),t.content}function pt(e,t){var r=V;r.nodes===null&&(r.nodes={start:e,end:t,a:null,t:null})}function Pe(e,t){var r=(t&rs)!==0,s=(t&ns)!==0,n,i=!e.startsWith("<!>");return()=>{if(R)return pt(Y,null),Y;n===void 0&&(n=mi(i?e:"<!>"+e),r||(n=mt(n)));var a=s||dn?document.importNode(n,!0):n.cloneNode(!0);if(r){var o=mt(a),u=a.lastChild;pt(o,u)}else pt(a,a);return a}}function _i(e=""){if(!R){var t=Ce(e+"");return pt(t,t),t}var r=Y;return r.nodeType!==rr?(r.before(r=Ce()),ve(r)):bn(r),pt(r,r),r}function xe(e,t){if(R){var r=V;((r.f&He)===0||r.nodes.end===null)&&(r.nodes.end=Y),nr();return}e!==null&&e.before(t)}const pi=["touchstart","touchmove"];function gi(e){return pi.includes(e)}function yi(e,t){var r=t==null?"":typeof t=="object"?`${t}`:t;r!==(e.__t??=e.nodeValue)&&(e.__t=r,e.nodeValue=`${r}`)}function Cn(e,t){return Rn(e,t)}function wi(e,t){dr(),t.intro=t.intro??!1;const r=t.target,s=R,n=Y;try{for(var i=mt(r);i&&(i.nodeType!==kt||i.data!==Dr);)i=Me(i);if(!i)throw lt;Te(!0),ve(i);const a=Rn(e,{...t,anchor:i});return Te(!1),a}catch(a){if(a instanceof Error&&a.message.split(`
|
|
2
|
-
`).some(o=>o.startsWith("https://svelte.dev/e/")))throw a;return a!==lt&&console.warn("Failed to hydrate: ",a),t.recover===!1&&ws(),dr(),Gs(r),Te(!1),Cn(e,t)}finally{Te(s),ve(n)}}const qt=new Map;function Rn(e,{target:t,anchor:r,props:s={},events:n,context:i,intro:a=!0,transformError:o}){dr();var u=void 0,l=ri(()=>{var f=r??t.appendChild(Ce());Ps(f,{pending:()=>{}},g=>{Br({});var p=he;if(i&&(p.c=i),n&&(s.$$events=n),R&&pt(g,null),u=e(g,s)||{},R&&(V.nodes.end=Y,Y===null||Y.nodeType!==kt||Y.data!==Nr))throw Lt(),lt;Ur()},o);var m=new Set,c=g=>{for(var p=0;p<g.length;p++){var S=g[p];if(!m.has(S)){m.add(S);var C=gi(S);for(const F of[t,document]){var T=qt.get(F);T===void 0&&(T=new Map,qt.set(F,T));var L=T.get(S);L===void 0?(F.addEventListener(S,yr,{passive:C}),T.set(S,1)):T.set(S,L+1)}}}};return c(as(Nn)),gr.add(c),()=>{for(var g of m)for(const C of[t,document]){var p=qt.get(C),S=p.get(g);--S==0?(C.removeEventListener(g,yr),p.delete(g),p.size===0&&qt.delete(C)):p.set(g,S)}gr.delete(c),f!==r&&f.parentNode?.removeChild(f)}});return wr.set(u,l),u}let wr=new WeakMap;function $i(e,t){const r=wr.get(e);return r?(wr.delete(e),r(t)):Promise.resolve()}class xi{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),s=this.#r.get(r);if(s)ai(s),this.#s.delete(r);else{var n=this.#t.get(r);n&&(this.#r.set(r,n.effect),this.#t.delete(r),n.fragment.lastChild.remove(),this.anchor.before(n.fragment),s=n.effect)}for(const[i,a]of this.#e){if(this.#e.delete(i),i===t)break;const o=this.#t.get(a);o&&(ie(o.effect),this.#t.delete(a))}for(const[i,a]of this.#r){if(i===r||this.#s.has(i))continue;const o=()=>{if(Array.from(this.#e.values()).includes(i)){var l=document.createDocumentFragment();kn(a,l),l.append(Ce()),this.#t.set(i,{effect:a,fragment:l})}else ie(a);this.#s.delete(i),this.#r.delete(i)};this.#i||!s?(this.#s.add(i),Mt(a,o,!1)):o()}}};#o=t=>{this.#e.delete(t);const r=Array.from(this.#e.values());for(const[s,n]of this.#t)r.includes(s)||(ie(n.effect),this.#t.delete(s))};ensure(t,r){var s=P,n=Zs();if(r&&!this.#r.has(t)&&!this.#t.has(t))if(n){var i=document.createDocumentFragment(),a=Ce();i.append(a),this.#t.set(t,{effect:Le(()=>r(a)),fragment:i})}else this.#r.set(t,Le(()=>r(this.anchor)));if(this.#e.set(s,t),n){for(const[o,u]of this.#r)o===t?s.unskip_effect(u):s.skip_effect(u);for(const[o,u]of this.#t)o===t?s.unskip_effect(u.effect):s.skip_effect(u.effect);s.oncommit(this.#n),s.ondiscard(this.#o)}else R&&(this.anchor=Y),this.#n(s)}}function gt(e,t,r=!1){var s;R&&(s=Y,nr());var n=new xi(e),i=r?ct:0;function a(o,u){if(R){var l=Ms(s);if(o!==parseInt(l.substring(1))){var f=Hr();ve(f),n.anchor=f,Te(!1),n.ensure(o,u),Te(!0);return}}n.ensure(o,u)}mr(()=>{var o=!1;t((u,l=0)=>{o=!0,a(l,u)}),o||a(-1,null)},i)}function ki(e,t){let r=null,s=R;var n;if(R){r=Y;for(var i=mt(document.head);i!==null&&(i.nodeType!==kt||i.data!==e);)i=Me(i);if(i===null)Te(!1);else{var a=Me(i);i.remove(),ve(a)}}R||(n=document.head.appendChild(Ce()));try{mr(()=>t(n),Yr|qe)}finally{s&&(Te(!0),ve(r))}}function Ei(e,t){ni(()=>{var r=e.getRootNode(),s=r.host?r:r.head??r.ownerDocument.head;if(!s.querySelector("#"+t.hash)){const n=vr("style");n.id=t.hash,n.textContent=t.code,s.appendChild(n)}})}function Si(e,t,r){var s=""+e;return s}function Ti(e,t){return e==null?null:String(e)}function Ln(e,t,r,s,n,i){var a=e.__className;if(R||a!==r||a===void 0){var o=Si(r);(!R||o!==e.getAttribute("class"))&&(o==null?e.removeAttribute("class"):e.className=o),e.__className=r}return i}function Pn(e,t,r,s){var n=e.__style;if(R||n!==t){var i=Ti(t);(!R||i!==e.getAttribute("style"))&&(i==null?e.removeAttribute("style"):e.style.cssText=i),e.__style=t}return s}const Mi=Symbol("is custom element"),zi=Symbol("is html"),Di=bs?"link":"LINK";function yt(e){if(R){var t=!1,r=()=>{if(!t){if(t=!0,e.hasAttribute("value")){var s=e.value;Wt(e,"value",null),e.value=s}if(e.hasAttribute("checked")){var n=e.checked;Wt(e,"checked",null),e.checked=n}}};e.__on_r=r,Be(r),_n()}}function Wt(e,t,r,s){var n=Oi(e);R&&(n[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName===Di)||n[t]!==(n[t]=r)&&(t==="loading"&&(e[hs]=r),r==null?e.removeAttribute(t):typeof r!="string"&&In(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function Ke(e,t,r){var s=O,n=V;let i=R;R&&Te(!1),oe(null),be(null);try{t!=="style"&&($r.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.nodeName.toLowerCase())?In(e).includes(t):r&&typeof r=="object")?e[t]=r:Wt(e,t,r==null?r:String(r))}finally{oe(s),be(n),i&&Te(!0)}}function Oi(e){return e.__attributes??={[Mi]:e.nodeName.includes("-"),[zi]:e.namespaceURI===Ar}}var $r=new Map;function In(e){var t=e.getAttribute("is")||e.nodeName,r=$r.get(t);if(r)return r;$r.set(t,r=[]);for(var s,n=e,i=Element.prototype;i!==n;){s=ls(n);for(var a in s)s[a].set&&r.push(a);n=Cr(n)}return r}function wt(e,t,r=t){var s=new WeakSet;Ks(e,"input",async n=>{var i=n?e.defaultValue:e.value;if(i=xr(e)?kr(i):i,r(i),P!==null&&s.add(P),await ci(),i!==(i=t())){var a=e.selectionStart,o=e.selectionEnd,u=e.value.length;if(e.value=i??"",o!==null){var l=e.value.length;a===o&&o===u&&l>u?(e.selectionStart=l,e.selectionEnd=l):(e.selectionStart=a,e.selectionEnd=Math.min(o,l))}}}),(R&&e.defaultValue!==e.value||pr(t)==null&&e.value)&&(r(xr(e)?kr(e.value):e.value),P!==null&&s.add(P)),br(()=>{var n=t();if(e===document.activeElement){var i=P;if(s.has(i))return}xr(e)&&n===kr(e.value)||e.type==="date"&&!n&&!e.value||n!==e.value&&(e.value=n??"")})}function xr(e){var t=e.type;return t==="number"||t==="range"}function kr(e){return e===""?null:+e}function Bt(e,t,r,s){var n=(r&es)!==0,i=(r&ts)!==0,a=s,o=!0,u=()=>(o&&(o=!1,a=i?pr(s):s),a);let l;if(n){var f=Rt in e||Fr in e;l=tt(e,t)?.set??(f&&t in e?L=>e[t]=L:void 0)}var m,c=!1;n?[m,c]=Ns(()=>e[t]):m=e[t],m===void 0&&s!==void 0&&(m=u(),l&&($s(),l(m)));var g;if(g=()=>{var L=e[t];return L===void 0?u():(o=!0,L)},(r&Qn)===0)return g;if(l){var p=e.$$legacy;return(function(L,F){return arguments.length>0?((!F||p||c)&&l(F?g():L),L):g()})}var S=!1,C=((r&Xn)!==0?ur:Hs)(()=>(S=!1,g()));n&&b(C);var T=V;return(function(L,F){if(arguments.length>0){const le=F?b(C):n?bt(L):L;return N(C,le),S=!0,a!==void 0&&(a=le),L}return Ze&&S||(T.f&ye)!==0?C.v:b(C)})}function Vi(e){return new Ni(e)}class Ni{#e;#r;constructor(t){var r=new Map,s=(i,a)=>{var o=Us(a,!1,!1);return r.set(i,o),o};const n=new Proxy({...t.props||{},$$events:{}},{get(i,a){return b(r.get(a)??s(a,Reflect.get(i,a)))},has(i,a){return a===Fr?!0:(b(r.get(a)??s(a,Reflect.get(i,a))),Reflect.has(i,a))},set(i,a,o){return N(r.get(a)??s(a,o),o),Reflect.set(i,a,o)}});this.#r=(t.hydrate?wi:Cn)(t.component,{target:t.target,anchor:t.anchor,props:n,context:t.context,intro:t.intro??!1,recover:t.recover,transformError:t.transformError}),(!t?.props?.$$host||t.sync===!1)&&ht(),this.#e=n.$$events;for(const i of Object.keys(this.#r))i==="$set"||i==="$destroy"||i==="$on"||At(this,i,{get(){return this.#r[i]},set(a){this.#r[i]=a},enumerable:!0});this.#r.$set=i=>{Object.assign(n,i)},this.#r.$destroy=()=>{$i(this.#r)}}$set(t){this.#r.$set(t)}$on(t,r){this.#e[t]=this.#e[t]||[];const s=(...n)=>r.call(this,...n);return this.#e[t].push(s),()=>{this.#e[t]=this.#e[t].filter(n=>n!==s)}}$destroy(){this.#r.$destroy()}}let jn;typeof HTMLElement=="function"&&(jn=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 s=this.$$c.$on(e,t);this.$$l_u.set(t,s)}super.addEventListener(e,t,r)}removeEventListener(e,t,r){if(super.removeEventListener(e,t,r),this.$$c){const s=this.$$l_u.get(t);s&&(s(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(s){return n=>{const i=vr("slot");s!=="default"&&(i.name=s),xe(n,i)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},r=Ai(this);for(const s of this.$$s)s in r&&(s==="default"&&!this.$$d.children?(this.$$d.children=e(s),t.default=!0):t[s]=e(s));for(const s of this.attributes){const n=this.$$g_p(s.name);n in this.$$d||(this.$$d[n]=Ut(n,s.value,this.$$p_d,"toProp"))}for(const s in this.$$p_d)!(s in this.$$d)&&this[s]!==void 0&&(this.$$d[s]=this[s],delete this[s]);this.$$c=Vi({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=ti(()=>{br(()=>{this.$$r=!0;for(const s of Nt(this.$$c)){if(!this.$$p_d[s]?.reflect)continue;this.$$d[s]=this.$$c[s];const n=Ut(s,this.$$d[s],this.$$p_d,"toAttribute");n==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,n)}this.$$r=!1})});for(const s in this.$$l)for(const n of this.$$l[s]){const i=this.$$c.$on(s,n);this.$$l_u.set(n,i)}this.$$l={}}}attributeChangedCallback(e,t,r){this.$$r||(e=this.$$g_p(e),this.$$d[e]=Ut(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 Nt(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function Ut(e,t,r,s){const n=r[e]?.type;if(t=n==="Boolean"&&typeof t!="boolean"?t!=null:t,!s||!r[e])return t;if(s==="toAttribute")switch(n){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(n){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function Ai(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function Ci(e,t,r,s,n,i){let a=class extends jn{constructor(){super(e,r,n),this.$$p_d=t}static get observedAttributes(){return Nt(t).map(o=>(t[o].attribute||o).toLowerCase())}};return Nt(t).forEach(o=>{At(a.prototype,o,{get(){return this.$$c&&o in this.$$c?this.$$c[o]:this.$$d[o]},set(u){u=Ut(o,u,t),this.$$d[o]=u;var l=this.$$c;if(l){var f=tt(l,o)?.get;f?l[o]=u:l.$set({[o]:u})}}})}),s.forEach(o=>{At(a.prototype,o,{get(){return this.$$c?.[o]}})}),e.element=a,a}function Yn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Jt={exports:{}},Ri=Jt.exports,Fn;function Li(){return Fn||(Fn=1,(function(e,t){(function(r,s){e.exports=s()})(Ri,(function(){var r=1e3,s=6e4,n=36e5,i="millisecond",a="second",o="minute",u="hour",l="day",f="week",m="month",c="quarter",g="year",p="date",S="Invalid Date",C=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,T=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,L={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function($){var h=["th","st","nd","rd"],d=$%100;return"["+$+(h[(d-20)%10]||h[d]||h[0])+"]"}},F=function($,h,d){var w=String($);return!w||w.length>=h?$:""+Array(h+1-w.length).join(d)+$},le={s:F,z:function($){var h=-$.utcOffset(),d=Math.abs(h),w=Math.floor(d/60),v=d%60;return(h<=0?"+":"-")+F(w,2,"0")+":"+F(v,2,"0")},m:function $(h,d){if(h.date()<d.date())return-$(d,h);var w=12*(d.year()-h.year())+(d.month()-h.month()),v=h.clone().add(w,m),M=d-v<0,E=h.clone().add(w+(M?-1:1),m);return+(-(w+(d-v)/(M?v-E:E-v))||0)},a:function($){return $<0?Math.ceil($)||0:Math.floor($)},p:function($){return{M:m,y:g,w:f,d:l,D:p,h:u,m:o,s:a,ms:i,Q:c}[$]||String($||"").toLowerCase().replace(/s$/,"")},u:function($){return $===void 0}},ce="en",z={};z[ce]=L;var x="$isDayjsObject",_=function($){return $ instanceof W||!(!$||!$[x])},A=function $(h,d,w){var v;if(!h)return ce;if(typeof h=="string"){var M=h.toLowerCase();z[M]&&(v=M),d&&(z[M]=d,v=M);var E=h.split("-");if(!v&&E.length>1)return $(E[0])}else{var I=h.name;z[I]=h,v=I}return!w&&v&&(ce=v),v||!w&&ce},D=function($,h){if(_($))return $.clone();var d=typeof h=="object"?h:{};return d.date=$,d.args=arguments,new W(d)},k=le;k.l=A,k.i=_,k.w=function($,h){return D($,{locale:h.$L,utc:h.$u,x:h.$x,$offset:h.$offset})};var W=(function(){function $(d){this.$L=A(d.locale,null,!0),this.parse(d),this.$x=this.$x||d.x||{},this[x]=!0}var h=$.prototype;return h.parse=function(d){this.$d=(function(w){var v=w.date,M=w.utc;if(v===null)return new Date(NaN);if(k.u(v))return new Date;if(v instanceof Date)return new Date(v);if(typeof v=="string"&&!/Z$/i.test(v)){var E=v.match(C);if(E){var I=E[2]-1||0,H=(E[7]||"0").substring(0,3);return M?new Date(Date.UTC(E[1],I,E[3]||1,E[4]||0,E[5]||0,E[6]||0,H)):new Date(E[1],I,E[3]||1,E[4]||0,E[5]||0,E[6]||0,H)}}return new Date(v)})(d),this.init()},h.init=function(){var d=this.$d;this.$y=d.getFullYear(),this.$M=d.getMonth(),this.$D=d.getDate(),this.$W=d.getDay(),this.$H=d.getHours(),this.$m=d.getMinutes(),this.$s=d.getSeconds(),this.$ms=d.getMilliseconds()},h.$utils=function(){return k},h.isValid=function(){return this.$d.toString()!==S},h.isSame=function(d,w){var v=D(d);return this.startOf(w)<=v&&v<=this.endOf(w)},h.isAfter=function(d,w){return D(d)<this.startOf(w)},h.isBefore=function(d,w){return this.endOf(w)<D(d)},h.$g=function(d,w,v){return k.u(d)?this[w]:this.set(v,d)},h.unix=function(){return Math.floor(this.valueOf()/1e3)},h.valueOf=function(){return this.$d.getTime()},h.startOf=function(d,w){var v=this,M=!!k.u(w)||w,E=k.p(d),I=function(pe,G){var ge=k.w(v.$u?Date.UTC(v.$y,G,pe):new Date(v.$y,G,pe),v);return M?ge:ge.endOf(l)},H=function(pe,G){return k.w(v.toDate()[pe].apply(v.toDate("s"),(M?[0,0,0,0]:[23,59,59,999]).slice(G)),v)},B=this.$W,X=this.$M,re=this.$D,De="set"+(this.$u?"UTC":"");switch(E){case g:return M?I(1,0):I(31,11);case m:return M?I(1,X):I(0,X+1);case f:var Oe=this.$locale().weekStart||0,Xe=(B<Oe?B+7:B)-Oe;return I(M?re-Xe:re+(6-Xe),X);case l:case p:return H(De+"Hours",0);case u:return H(De+"Minutes",1);case o:return H(De+"Seconds",2);case a:return H(De+"Milliseconds",3);default:return this.clone()}},h.endOf=function(d){return this.startOf(d,!1)},h.$set=function(d,w){var v,M=k.p(d),E="set"+(this.$u?"UTC":""),I=(v={},v[l]=E+"Date",v[p]=E+"Date",v[m]=E+"Month",v[g]=E+"FullYear",v[u]=E+"Hours",v[o]=E+"Minutes",v[a]=E+"Seconds",v[i]=E+"Milliseconds",v)[M],H=M===l?this.$D+(w-this.$W):w;if(M===m||M===g){var B=this.clone().set(p,1);B.$d[I](H),B.init(),this.$d=B.set(p,Math.min(this.$D,B.daysInMonth())).$d}else I&&this.$d[I](H);return this.init(),this},h.set=function(d,w){return this.clone().$set(d,w)},h.get=function(d){return this[k.p(d)]()},h.add=function(d,w){var v,M=this;d=Number(d);var E=k.p(w),I=function(X){var re=D(M);return k.w(re.date(re.date()+Math.round(X*d)),M)};if(E===m)return this.set(m,this.$M+d);if(E===g)return this.set(g,this.$y+d);if(E===l)return I(1);if(E===f)return I(7);var H=(v={},v[o]=s,v[u]=n,v[a]=r,v)[E]||1,B=this.$d.getTime()+d*H;return k.w(B,this)},h.subtract=function(d,w){return this.add(-1*d,w)},h.format=function(d){var w=this,v=this.$locale();if(!this.isValid())return v.invalidDate||S;var M=d||"YYYY-MM-DDTHH:mm:ssZ",E=k.z(this),I=this.$H,H=this.$m,B=this.$M,X=v.weekdays,re=v.months,De=v.meridiem,Oe=function(G,ge,Qe,Ie){return G&&(G[ge]||G(w,M))||Qe[ge].slice(0,Ie)},Xe=function(G){return k.s(I%12||12,G,"0")},pe=De||function(G,ge,Qe){var Ie=G<12?"AM":"PM";return Qe?Ie.toLowerCase():Ie};return M.replace(T,(function(G,ge){return ge||(function(Qe){switch(Qe){case"YY":return String(w.$y).slice(-2);case"YYYY":return k.s(w.$y,4,"0");case"M":return B+1;case"MM":return k.s(B+1,2,"0");case"MMM":return Oe(v.monthsShort,B,re,3);case"MMMM":return Oe(re,B);case"D":return w.$D;case"DD":return k.s(w.$D,2,"0");case"d":return String(w.$W);case"dd":return Oe(v.weekdaysMin,w.$W,X,2);case"ddd":return Oe(v.weekdaysShort,w.$W,X,3);case"dddd":return X[w.$W];case"H":return String(I);case"HH":return k.s(I,2,"0");case"h":return Xe(1);case"hh":return Xe(2);case"a":return pe(I,H,!0);case"A":return pe(I,H,!1);case"m":return String(H);case"mm":return k.s(H,2,"0");case"s":return String(w.$s);case"ss":return k.s(w.$s,2,"0");case"SSS":return k.s(w.$ms,3,"0");case"Z":return E}return null})(G)||E.replace(":","")}))},h.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},h.diff=function(d,w,v){var M,E=this,I=k.p(w),H=D(d),B=(H.utcOffset()-this.utcOffset())*s,X=this-H,re=function(){return k.m(E,H)};switch(I){case g:M=re()/12;break;case m:M=re();break;case c:M=re()/3;break;case f:M=(X-B)/6048e5;break;case l:M=(X-B)/864e5;break;case u:M=X/n;break;case o:M=X/s;break;case a:M=X/r;break;default:M=X}return v?M:k.a(M)},h.daysInMonth=function(){return this.endOf(m).$D},h.$locale=function(){return z[this.$L]},h.locale=function(d,w){if(!d)return this.$L;var v=this.clone(),M=A(d,w,!0);return M&&(v.$L=M),v},h.clone=function(){return k.w(this.$d,this)},h.toDate=function(){return new Date(this.valueOf())},h.toJSON=function(){return this.isValid()?this.toISOString():null},h.toISOString=function(){return this.$d.toISOString()},h.toString=function(){return this.$d.toUTCString()},$})(),K=W.prototype;return D.prototype=K,[["$ms",i],["$s",a],["$m",o],["$H",u],["$W",l],["$M",m],["$y",g],["$D",p]].forEach((function($){K[$[1]]=function(h){return this.$g(h,$[0],$[1])}})),D.extend=function($,h){return $.$i||($(h,W,D),$.$i=!0),D},D.locale=A,D.isDayjs=_,D.unix=function($){return D(1e3*$)},D.en=z[ce],D.Ls=z,D.p={},D}))})(Jt)),Jt.exports}var Pi=Li();const $t=Yn(Pi),Hn={version:"0.66.2"};var Gt={exports:{}},Ii=Gt.exports,qn;function ji(){return qn||(qn=1,(function(e,t){(function(r,s){e.exports=s()})(Ii,(function(){var r,s,n=1e3,i=6e4,a=36e5,o=864e5,u=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,l=31536e6,f=2628e6,m=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,c={years:l,months:f,days:o,hours:a,minutes:i,seconds:n,milliseconds:1,weeks:6048e5},g=function(z){return z instanceof le},p=function(z,x,_){return new le(z,_,x.$l)},S=function(z){return s.p(z)+"s"},C=function(z){return z<0},T=function(z){return C(z)?Math.ceil(z):Math.floor(z)},L=function(z){return Math.abs(z)},F=function(z,x){return z?C(z)?{negative:!0,format:""+L(z)+x}:{negative:!1,format:""+z+x}:{negative:!1,format:""}},le=(function(){function z(_,A,D){var k=this;if(this.$d={},this.$l=D,_===void 0&&(this.$ms=0,this.parseFromMilliseconds()),A)return p(_*c[S(A)],this);if(typeof _=="number")return this.$ms=_,this.parseFromMilliseconds(),this;if(typeof _=="object")return Object.keys(_).forEach((function($){k.$d[S($)]=_[$]})),this.calMilliseconds(),this;if(typeof _=="string"){var W=_.match(m);if(W){var K=W.slice(2).map((function($){return $!=null?Number($):0}));return this.$d.years=K[0],this.$d.months=K[1],this.$d.weeks=K[2],this.$d.days=K[3],this.$d.hours=K[4],this.$d.minutes=K[5],this.$d.seconds=K[6],this.calMilliseconds(),this}}return this}var x=z.prototype;return x.calMilliseconds=function(){var _=this;this.$ms=Object.keys(this.$d).reduce((function(A,D){return A+(_.$d[D]||0)*c[D]}),0)},x.parseFromMilliseconds=function(){var _=this.$ms;this.$d.years=T(_/l),_%=l,this.$d.months=T(_/f),_%=f,this.$d.days=T(_/o),_%=o,this.$d.hours=T(_/a),_%=a,this.$d.minutes=T(_/i),_%=i,this.$d.seconds=T(_/n),_%=n,this.$d.milliseconds=_},x.toISOString=function(){var _=F(this.$d.years,"Y"),A=F(this.$d.months,"M"),D=+this.$d.days||0;this.$d.weeks&&(D+=7*this.$d.weeks);var k=F(D,"D"),W=F(this.$d.hours,"H"),K=F(this.$d.minutes,"M"),$=this.$d.seconds||0;this.$d.milliseconds&&($+=this.$d.milliseconds/1e3,$=Math.round(1e3*$)/1e3);var h=F($,"S"),d=_.negative||A.negative||k.negative||W.negative||K.negative||h.negative,w=W.format||K.format||h.format?"T":"",v=(d?"-":"")+"P"+_.format+A.format+k.format+w+W.format+K.format+h.format;return v==="P"||v==="-P"?"P0D":v},x.toJSON=function(){return this.toISOString()},x.format=function(_){var A=_||"YYYY-MM-DDTHH:mm:ss",D={Y:this.$d.years,YY:s.s(this.$d.years,2,"0"),YYYY:s.s(this.$d.years,4,"0"),M:this.$d.months,MM:s.s(this.$d.months,2,"0"),D:this.$d.days,DD:s.s(this.$d.days,2,"0"),H:this.$d.hours,HH:s.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:s.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:s.s(this.$d.seconds,2,"0"),SSS:s.s(this.$d.milliseconds,3,"0")};return A.replace(u,(function(k,W){return W||String(D[k])}))},x.as=function(_){return this.$ms/c[S(_)]},x.get=function(_){var A=this.$ms,D=S(_);return D==="milliseconds"?A%=1e3:A=D==="weeks"?T(A/c[D]):this.$d[D],A||0},x.add=function(_,A,D){var k;return k=A?_*c[S(A)]:g(_)?_.$ms:p(_,this).$ms,p(this.$ms+k*(D?-1:1),this)},x.subtract=function(_,A){return this.add(_,A,!0)},x.locale=function(_){var A=this.clone();return A.$l=_,A},x.clone=function(){return p(this.$ms,this)},x.humanize=function(_){return r().add(this.$ms,"ms").locale(this.$l).fromNow(!_)},x.valueOf=function(){return this.asMilliseconds()},x.milliseconds=function(){return this.get("milliseconds")},x.asMilliseconds=function(){return this.as("milliseconds")},x.seconds=function(){return this.get("seconds")},x.asSeconds=function(){return this.as("seconds")},x.minutes=function(){return this.get("minutes")},x.asMinutes=function(){return this.as("minutes")},x.hours=function(){return this.get("hours")},x.asHours=function(){return this.as("hours")},x.days=function(){return this.get("days")},x.asDays=function(){return this.as("days")},x.weeks=function(){return this.get("weeks")},x.asWeeks=function(){return this.as("weeks")},x.months=function(){return this.get("months")},x.asMonths=function(){return this.as("months")},x.years=function(){return this.get("years")},x.asYears=function(){return this.as("years")},z})(),ce=function(z,x,_){return z.add(x.years()*_,"y").add(x.months()*_,"M").add(x.days()*_,"d").add(x.hours()*_,"h").add(x.minutes()*_,"m").add(x.seconds()*_,"s").add(x.milliseconds()*_,"ms")};return function(z,x,_){r=_,s=_().$utils(),_.duration=function(k,W){var K=_.locale();return p(k,{$l:K},W)},_.isDuration=g;var A=x.prototype.add,D=x.prototype.subtract;x.prototype.add=function(k,W){return g(k)?ce(this,k,1):A.bind(this)(k,W)},x.prototype.subtract=function(k,W){return g(k)?ce(this,k,-1):D.bind(this)(k,W)}}}))})(Gt)),Gt.exports}var Yi=ji();const Fi=Yn(Yi);var at={},Wn;function Hi(){if(Wn)return at;Wn=1,Object.defineProperty(at,"__esModule",{value:!0}),at.LanguageTranslator=void 0,at.getChildStyleToPass=e,at.addComponent=t;function e(s,n){var i,a,o="";try{if(s&&n?.length&&(!((i=Object.keys(s))===null||i===void 0)&&i.length)&&(!((a=n?.filter(function(c){return Object.keys(s).includes(c.name)}))===null||a===void 0)&&a.length))for(var u=function(c){var g=n?.filter(function(p){return p.name===c&&p.defaultValue!==s[c]});g&&(o+="".concat(c,":").concat(s[c],";"))},l=0,f=Object.keys(s);l<f.length;l++){var m=f[l];u(m)}}catch(c){console.error("error getting child style to pass",c)}finally{return o}}function t(s){var n,i=((n=s?.repoName.split("/"))===null||n===void 0?void 0:n[1])||s?.repoName;if(!i)throw new Error("wrong componentPath "+s?.repoName);if(!s?.version)throw new Error("wrong version "+s?.version);var a=s?.iifePath||"main.iife.js";if(!document.getElementById(i+"-script"))try{var o=document.createElement("script");if(o.id=i+"-script",o.src="https://cdn.jsdelivr.net/npm/".concat(s.repoName,"@").concat(s.version,"/").concat(a),s?.local)o.src="".concat(s.local);else if(location.href.includes("localhost:6006")){var u=i.split("-")[0];o.src="http://localhost:6006/webcomponents/".concat(i.replace(u+"-",""),"/").concat(a)}document.head.appendChild(o)}catch(l){console.warn(l)}}var r=(function(){function s(n){if(this.lang="",!n?.dictionary)throw new Error("no dictionary provided");this.dictionary=n.dictionary,this.setLang(n?.lang)}return s.prototype.setLang=function(n){n||(n=s.getDefaultLang()),this.lang=n},s.prototype.translateWord=function(n,i){return s.getDictionaryWord(n,this.dictionary,i||this.lang)},s.prototype.translateDate=function(n,i,a){return s.formatDate(n,i,a||this.lang)},s.getDefaultLang=function(){var n,i,a,o="en";return navigator?.languages&&(!((a=(i=(n=navigator.languages[0])===null||n===void 0?void 0:n.split("-")[0])===null||i===void 0?void 0:i.toLowerCase())===null||a===void 0)&&a.length)&&(o=navigator.languages[0].split("-")[0].toLowerCase()),o},s.getDictionaryWord=function(n,i,a){var o;if(!n)throw new Error("no wordKey provided");if(!i)throw new Error("no dictionary provided");if(a&&(!((o=i[a])===null||o===void 0)&&o[n]))return i[a][n];var u="",l=s.getDefaultLang();if(!a||l!==a){var f=i?.[l];f?.[n]&&(u=f[n])}return u},s.formatDate=function(n,i,a){if(!n)throw new Error("no date provided");if(typeof n.getMonth!="function")throw new Error("wrong date format");var o=new Intl.DateTimeFormat(a||s.getDefaultLang(),i);return o.format(n)},s})();return at.LanguageTranslator=r,at}var Bn=Hi(),qi=Pe('<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css" class="svelte-10svzuv"/>'),Wi=Pe('<i class="bi bi-play-fill svelte-10svzuv"></i>'),Bi=Pe('<i class="bi bi-pause-fill svelte-10svzuv"></i>'),Ui=Pe('<button class="btn btn-outline-dark svelte-10svzuv"><!></button>'),Ji=Pe('<div style="width: 100%;margin-bottom:15px" class="svelte-10svzuv"><div style="display:inline-block; width:50px;" class="svelte-10svzuv"><!></div> <div style="display:inline-block;width:calc(100% - 60px);position:relative" class="svelte-10svzuv"><hb-range-slider></hb-range-slider></div></div>',2),Gi=Pe("<hb-form></hb-form>",2),Zi=Pe('<button class="btn btn-sm btn-primary svelte-10svzuv">send</button>'),Ki=Pe('<button class="btn btn-sm btn-primary svelte-10svzuv" disabled="">send</button>'),Xi=Pe('<div id="card" class="card h-100 svelte-10svzuv"><div class="ratio ratio-16x9 svelte-10svzuv" style="background-color: black;"><video id="video" class="ratio ratio-16x9 svelte-10svzuv"><source type="video/mp4" class="svelte-10svzuv"/> <track kind="captions" src="" srclang="en" label="English" class="svelte-10svzuv"/> Your browser does not support the video tag.</video></div> <div class="card-body svelte-10svzuv"><!> <!> <div id="controls" class="svelte-10svzuv"><div style="flex-grow: 2" class="svelte-10svzuv"><button class="btn btn-sm btn-secondary svelte-10svzuv">▼</button> <button class="btn btn-sm btn-secondary svelte-10svzuv">▲</button> <input type="number" class="form-control form-custom-control-numbers svelte-10svzuv"/>h <input class="form-control form-custom-control-numbers svelte-10svzuv" type="number"/>m <input type="number" class="form-control form-custom-control-numbers svelte-10svzuv"/>s</div> <div style="flex-grow: 2;text-align:center" class="svelte-10svzuv"></div> <div style="flex-grow: 2;text-align:right" class="svelte-10svzuv"><input type="number" class="form-control form-custom-control-numbers svelte-10svzuv"/>h <input class="form-control form-custom-control-numbers svelte-10svzuv" type="number"/>m <input type="number" class="form-control form-custom-control-numbers svelte-10svzuv"/>s <button class="btn btn-sm btn-secondary svelte-10svzuv">▲</button> <button class="btn btn-sm btn-secondary svelte-10svzuv">▼</button></div></div></div> <div class="card-footer svelte-10svzuv"><span style="float:left;height:30px;line-height:30px" class="svelte-10svzuv"><!></span> <span style="float:right;height:30px;line-height:30px" class="svelte-10svzuv"><!></span></div></div>',2);const Qi={hash:"svelte-10svzuv",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(Mr){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const Kn=1,Zn=4,Xn=8,Qn=16,es=1,ts=2,zr="[",Dr="[!",Vr="[?",Or="]",at={},Q=Symbol(),Nr="http://www.w3.org/1999/xhtml",rs=!1;var ns=Array.isArray,ss=Array.prototype.indexOf,lt=Array.prototype.includes,is=Array.from,Ot=Object.keys,Nt=Object.defineProperty,tt=Object.getOwnPropertyDescriptor,os=Object.getOwnPropertyDescriptors,as=Object.prototype,ls=Array.prototype,Ar=Object.getPrototypeOf,Rr=Object.isExtensible;const us=()=>{};function fs(e){for(var t=0;t<e.length;t++)e[t]()}function Cr(){var e,t,r=new Promise((s,n)=>{e=s,t=n});return{promise:r,resolve:e,reject:t}}const K=2,ut=4,At=8,Ir=1<<24,Ye=16,ke=32,Fe=64,Xt=128,de=512,J=1024,ee=2048,Se=4096,Ee=8192,ye=16384,He=32768,Pr=1<<25,ft=65536,Lr=1<<17,jr=1<<18,qe=1<<19,cs=1<<20,rt=65536,Qt=1<<21,er=1<<22,Be=1<<23,Rt=Symbol("$state"),Yr=Symbol("legacy props"),ds=Symbol(""),Oe=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},hs=!!globalThis.document?.contentType&&globalThis.document.contentType.includes("xml"),tr=3,xt=8;function vs(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function bs(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function ms(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function _s(e){throw new Error("https://svelte.dev/e/effect_orphan")}function ps(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function gs(){throw new Error("https://svelte.dev/e/hydration_failed")}function ys(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function $s(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function ws(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function xs(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function ks(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function Ct(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function Ss(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let C=!1;function Te(e){C=e}let Y;function he(e){if(e===null)throw Ct(),at;return Y=e}function rr(){return he(Me(Y))}function ne(e){if(C){if(Me(Y)!==null)throw Ct(),at;Y=e}}function nr(e=1){if(C){for(var t=e,r=Y;t--;)r=Me(r);Y=r}}function Fr(e=!0){for(var t=0,r=Y;;){if(r.nodeType===xt){var s=r.data;if(s===Or){if(t===0)return r;t-=1}else(s===zr||s===Dr||s[0]==="["&&!isNaN(Number(s.slice(1))))&&(t+=1)}var n=Me(r);e&&r.remove(),r=n}}function Es(e){if(!e||e.nodeType!==xt)throw Ct(),at;return e.data}function Hr(e){return e===this.v}function Ts(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function qr(e){return!Ts(e,this.v)}let Ms=!1,ve=null;function ct(e){ve=e}function Br(e,t=!1,r){ve={p:ve,i:!1,c:null,e:null,s:e,x:null,r:O,l:null}}function Ur(e){var t=ve,r=t.e;if(r!==null){t.e=null;for(var s of r)pn(s)}return e!==void 0&&(t.x=e),t.i=!0,ve=t.p,e??{}}function Wr(){return!0}let nt=[];function Jr(){var e=nt;nt=[],fs(e)}function Ue(e){if(nt.length===0&&!kt){var t=nt;queueMicrotask(()=>{t===nt&&Jr()})}nt.push(e)}function zs(){for(;nt.length>0;)Jr()}function Gr(e){var t=O;if(t===null)return V.f|=Be,e;if((t.f&He)===0&&(t.f&ut)===0)throw e;We(e,t)}function We(e,t){for(;t!==null;){if((t.f&Xt)!==0){if((t.f&He)===0)throw e;try{t.b.error(e);return}catch(r){e=r}}t=t.parent}throw e}const Ds=-7169;function W(e,t){e.f=e.f&Ds|t}function sr(e){(e.f&de)!==0||e.deps===null?W(e,J):W(e,Se)}function Kr(e){if(e!==null)for(const t of e)(t.f&K)===0||(t.f&rt)===0||(t.f^=rt,Kr(t.deps))}function Zr(e,t,r){(e.f&ee)!==0?t.add(e):(e.f&Se)!==0&&r.add(e),Kr(e.deps),W(e,J)}let It=!1;function Vs(e){var t=It;try{return It=!1,[e(),It]}finally{It=t}}const Je=new Set;let P=null,$e=null,ir=null,kt=!1,or=!1,dt=null,Pt=null;var Xr=0;let Os=1;class Ne{id=Os++;current=new Map;previous=new Map;#e=new Set;#r=new Set;#t=new Map;#s=new Map;#i=null;#n=[];#o=new Set;#a=new Set;#l=new Map;is_fork=!1;#c=!1;#u=new Set;#d(){return this.is_fork||this.#s.size>0}#v(){for(const s of this.#u)for(const n of s.#s.keys()){for(var t=!1,r=n;r.parent!==null;){if(this.#l.has(r)){t=!0;break}r=r.parent}if(!t)return!0}return!1}skip_effect(t){this.#l.has(t)||this.#l.set(t,{d:[],m:[]})}unskip_effect(t){var r=this.#l.get(t);if(r){this.#l.delete(t);for(var s of r.d)W(s,ee),this.schedule(s);for(s of r.m)W(s,Se),this.schedule(s)}}#h(){if(Xr++>1e3&&(Je.delete(this),Ns()),!this.#d()){for(const o of this.#o)this.#a.delete(o),W(o,ee),this.schedule(o);for(const o of this.#a)W(o,Se),this.schedule(o)}const t=this.#n;this.#n=[],this.apply();var r=dt=[],s=[],n=Pt=[];for(const o of t)try{this.#f(o,r,s)}catch(u){throw nn(o),u}if(P=null,n.length>0){var i=Ne.ensure();for(const o of n)i.schedule(o)}if(dt=null,Pt=null,this.#d()||this.#v()){this.#b(s),this.#b(r);for(const[o,u]of this.#l)rn(o,u)}else{this.#t.size===0&&Je.delete(this),this.#o.clear(),this.#a.clear();for(const o of this.#e)o(this);this.#e.clear(),Qr(s),Qr(r),this.#i?.resolve()}var a=P;if(this.#n.length>0){const o=a??=this;o.#n.push(...this.#n.filter(u=>!o.#n.includes(u)))}a!==null&&(Je.add(a),a.#h()),Je.has(this)||this.#m()}#f(t,r,s){t.f^=J;for(var n=t.first;n!==null;){var i=n.f,a=(i&(ke|Fe))!==0,o=a&&(i&J)!==0,u=o||(i&Ee)!==0||this.#l.has(n);if(!u&&n.fn!==null){a?n.f^=J:(i&ut)!==0?r.push(n):Mt(n)&&((i&Ye)!==0&&this.#a.add(n),mt(n));var l=n.first;if(l!==null){n=l;continue}}for(;n!==null;){var f=n.next;if(f!==null){n=f;break}n=n.parent}}}#b(t){for(var r=0;r<t.length;r+=1)Zr(t[r],this.#o,this.#a)}capture(t,r,s=!1){r!==Q&&!this.previous.has(t)&&this.previous.set(t,r),(t.f&Be)===0&&(this.current.set(t,[t.v,s]),$e?.set(t,t.v))}activate(){P=this}deactivate(){P=null,$e=null}flush(){try{or=!0,P=this,this.#h()}finally{Xr=0,ir=null,dt=null,Pt=null,or=!1,P=null,$e=null,Ge.clear()}}discard(){for(const t of this.#r)t(this);this.#r.clear(),Je.delete(this)}#m(){for(const l of Je){var t=l.id<this.id,r=[];for(const[f,[_,b]]of this.current){if(l.current.has(f)){var s=l.current.get(f)[0];if(t&&_!==s)l.current.set(f,[_,b]);else continue}r.push(f)}var n=[...l.current.keys()].filter(f=>!this.current.has(f));if(n.length===0)t&&l.discard();else if(r.length>0){l.activate();var i=new Set,a=new Map;for(var o of r)en(o,n,i,a);if(l.#n.length>0){l.apply();for(var u of l.#n)l.#f(u,[],[]);l.#n=[]}l.deactivate()}}for(const l of Je)l.#u.has(this)&&(l.#u.delete(this),l.#u.size===0&&!l.#d()&&(l.activate(),l.#h()))}increment(t,r){let s=this.#t.get(r)??0;if(this.#t.set(r,s+1),t){let n=this.#s.get(r)??0;this.#s.set(r,n+1)}}decrement(t,r,s){let n=this.#t.get(r)??0;if(n===1?this.#t.delete(r):this.#t.set(r,n-1),t){let i=this.#s.get(r)??0;i===1?this.#s.delete(r):this.#s.set(r,i-1)}this.#c||s||(this.#c=!0,Ue(()=>{this.#c=!1,this.flush()}))}transfer_effects(t,r){for(const s of t)this.#o.add(s);for(const s of r)this.#a.add(s);t.clear(),r.clear()}oncommit(t){this.#e.add(t)}ondiscard(t){this.#r.add(t)}settled(){return(this.#i??=Cr()).promise}static ensure(){if(P===null){const t=P=new Ne;or||(Je.add(P),kt||Ue(()=>{P===t&&t.flush()}))}return P}apply(){{$e=null;return}}schedule(t){if(ir=t,t.b?.is_pending&&(t.f&(ut|At|Ir))!==0&&(t.f&He)===0){t.b.defer_effect(t);return}for(var r=t;r.parent!==null;){r=r.parent;var s=r.f;if(dt!==null&&r===O&&(V===null||(V.f&K)===0))return;if((s&(Fe|ke))!==0){if((s&J)===0)return;r.f^=J}}this.#n.push(r)}}function ht(e){var t=kt;kt=!0;try{for(var r;;){if(zs(),P===null)return r;P.flush()}}finally{kt=t}}function Ns(){try{ps()}catch(e){We(e,ir)}}let Ae=null;function Qr(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var s=e[r++];if((s.f&(ye|Ee))===0&&Mt(s)&&(Ae=new Set,mt(s),s.deps===null&&s.first===null&&s.nodes===null&&s.teardown===null&&s.ac===null&&yn(s),Ae?.size>0)){Ge.clear();for(const n of Ae){if((n.f&(ye|Ee))!==0)continue;const i=[n];let a=n.parent;for(;a!==null;)Ae.has(a)&&(Ae.delete(a),i.push(a)),a=a.parent;for(let o=i.length-1;o>=0;o--){const u=i[o];(u.f&(ye|Ee))===0&&mt(u)}}Ae.clear()}}Ae=null}}function en(e,t,r,s){if(!r.has(e)&&(r.add(e),e.reactions!==null))for(const n of e.reactions){const i=n.f;(i&K)!==0?en(n,t,r,s):(i&(er|Ye))!==0&&(i&ee)===0&&tn(n,t,s)&&(W(n,ee),ar(n))}}function tn(e,t,r){const s=r.get(e);if(s!==void 0)return s;if(e.deps!==null)for(const n of e.deps){if(lt.call(t,n))return!0;if((n.f&K)!==0&&tn(n,t,r))return r.set(n,!0),!0}return r.set(e,!1),!1}function ar(e){P.schedule(e)}function rn(e,t){if(!((e.f&ke)!==0&&(e.f&J)!==0)){(e.f&ee)!==0?t.d.push(e):(e.f&Se)!==0&&t.m.push(e),W(e,J);for(var r=e.first;r!==null;)rn(r,t),r=r.next}}function nn(e){W(e,J);for(var t=e.first;t!==null;)nn(t),t=t.next}function As(e){let t=0,r=St(0),s;return()=>{hr()&&(v(r),vr(()=>(t===0&&(s=_r(()=>e(()=>Et(r)))),t+=1,()=>{Ue(()=>{t-=1,t===0&&(s?.(),s=void 0,Et(r))})})))}}var Rs=ft|qe;function Cs(e,t,r,s){new Is(e,t,r,s)}class Is{parent;is_pending=!1;transform_error;#e;#r=C?Y:null;#t;#s;#i;#n=null;#o=null;#a=null;#l=null;#c=0;#u=0;#d=!1;#v=new Set;#h=new Set;#f=null;#b=As(()=>(this.#f=St(this.#c),()=>{this.#f=null}));constructor(t,r,s,n){this.#e=t,this.#t=r,this.#s=i=>{var a=O;a.b=this,a.f|=Xt,s(i)},this.parent=O.b,this.transform_error=n??this.parent?.transform_error??(i=>i),this.#i=br(()=>{if(C){const i=this.#r;rr();const a=i.data===Dr;if(i.data.startsWith(Vr)){const u=JSON.parse(i.data.slice(Vr.length));this.#$(u)}else a?this.#w():this.#m()}else this.#g()},Rs),C&&(this.#e=Y)}#m(){try{this.#n=Ie(()=>this.#s(this.#e))}catch(t){this.error(t)}}#$(t){const r=this.#t.failed;r&&(this.#a=Ie(()=>{r(this.#e,()=>t,()=>()=>{})}))}#w(){const t=this.#t.pending;t&&(this.is_pending=!0,this.#o=Ie(()=>t(this.#e)),Ue(()=>{var r=this.#l=document.createDocumentFragment(),s=Re();r.append(s),this.#n=this.#p(()=>Ie(()=>this.#s(s))),this.#u===0&&(this.#e.before(r),this.#l=null,Tt(this.#o,()=>{this.#o=null}),this.#_(P))}))}#g(){try{if(this.is_pending=this.has_pending_snippet(),this.#u=0,this.#c=0,this.#n=Ie(()=>{this.#s(this.#e)}),this.#u>0){var t=this.#l=document.createDocumentFragment();xn(this.#n,t);const r=this.#t.pending;this.#o=Ie(()=>r(this.#e))}else this.#_(P)}catch(r){this.error(r)}}#_(t){this.is_pending=!1,t.transfer_effects(this.#v,this.#h)}defer_effect(t){Zr(t,this.#v,this.#h)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#t.pending}#p(t){var r=O,s=V,n=ve;be(this.#i),oe(this.#i),ct(this.#i.ctx);try{return Ne.ensure(),t()}catch(i){return Gr(i),null}finally{be(r),oe(s),ct(n)}}#y(t,r){if(!this.has_pending_snippet()){this.parent&&this.parent.#y(t,r);return}this.#u+=t,this.#u===0&&(this.#_(r),this.#o&&Tt(this.#o,()=>{this.#o=null}),this.#l&&(this.#e.before(this.#l),this.#l=null))}update_pending_count(t,r){this.#y(t,r),this.#c+=t,!(!this.#f||this.#d)&&(this.#d=!0,Ue(()=>{this.#d=!1,this.#f&&jt(this.#f,this.#c)}))}get_effect_pending(){return this.#b(),v(this.#f)}error(t){var r=this.#t.onerror;let s=this.#t.failed;if(!r&&!s)throw t;this.#n&&(ie(this.#n),this.#n=null),this.#o&&(ie(this.#o),this.#o=null),this.#a&&(ie(this.#a),this.#a=null),C&&(he(this.#r),nr(),he(Fr()));var n=!1,i=!1;const a=()=>{if(n){Ss();return}n=!0,i&&ks(),this.#a!==null&&Tt(this.#a,()=>{this.#a=null}),this.#p(()=>{this.#g()})},o=u=>{try{i=!0,r?.(u,a),i=!1}catch(l){We(l,this.#i&&this.#i.parent)}s&&(this.#a=this.#p(()=>{try{return Ie(()=>{var l=O;l.b=this,l.f|=Xt,s(this.#e,()=>u,()=>a)})}catch(l){return We(l,this.#i.parent),null}}))};Ue(()=>{var u;try{u=this.transform_error(t)}catch(l){We(l,this.#i&&this.#i.parent);return}u!==null&&typeof u=="object"&&typeof u.then=="function"?u.then(o,l=>We(l,this.#i&&this.#i.parent)):o(u)})}}function Ps(e,t,r,s){const n=lr;var i=e.filter(b=>!b.settled);if(r.length===0&&i.length===0){s(t.map(n));return}var a=O,o=Ls(),u=i.length===1?i[0].promise:i.length>1?Promise.all(i.map(b=>b.promise)):null;function l(b){o();try{s(b)}catch(g){(a.f&ye)===0&&We(g,a)}Lt()}if(r.length===0){u.then(()=>l(t.map(n)));return}var f=sn();function _(){Promise.all(r.map(b=>js(b))).then(b=>l([...t.map(n),...b])).catch(b=>We(b,a)).finally(()=>f())}u?u.then(()=>{o(),_(),Lt()}):_()}function Ls(){var e=O,t=V,r=ve,s=P;return function(i=!0){be(e),oe(t),ct(r),i&&(e.f&ye)===0&&(s?.activate(),s?.apply())}}function Lt(e=!0){be(null),oe(null),ct(null),e&&P?.deactivate()}function sn(){var e=O,t=e.b,r=P,s=t.is_rendered();return t.update_pending_count(1,r),r.increment(s,e),(n=!1)=>{t.update_pending_count(-1,r),r.decrement(s,e,n)}}function lr(e){var t=K|ee,r=V!==null&&(V.f&K)!==0?V:null;return O!==null&&(O.f|=qe),{ctx:ve,deps:null,effects:null,equals:Hr,f:t,fn:e,reactions:null,rv:0,v:Q,wv:0,parent:r??O,ac:null}}function js(e,t,r){let s=O;s===null&&vs();var n=void 0,i=St(Q),a=!V,o=new Map;return ri(()=>{var u=O,l=Cr();n=l.promise;try{Promise.resolve(e()).then(l.resolve,l.reject).finally(Lt)}catch(g){l.reject(g),Lt()}var f=P;if(a){if((u.f&He)!==0)var _=sn();if(s.b.is_rendered())o.get(f)?.reject(Oe),o.delete(f);else{for(const g of o.values())g.reject(Oe);o.clear()}o.set(f,l)}const b=(g,y=void 0)=>{if(_){var E=y===Oe;_(E)}if(!(y===Oe||(u.f&ye)!==0)){if(f.activate(),y)i.f|=Be,jt(i,y);else{(i.f&Be)!==0&&(i.f^=Be),jt(i,g);for(const[R,T]of o){if(o.delete(R),R===f)break;T.reject(Oe)}}f.deactivate()}};l.promise.then(b,g=>b(null,g||"unknown"))}),_n(()=>{for(const u of o.values())u.reject(Oe)}),new Promise(u=>{function l(f){function _(){f===n?u(i):l(n)}f.then(_,_)}l(n)})}function Ys(e){const t=lr(e);return t.equals=qr,t}function Fs(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)ie(t[r])}}function Hs(e){for(var t=e.parent;t!==null;){if((t.f&K)===0)return(t.f&ye)===0?t:null;t=t.parent}return null}function ur(e){var t,r=O;be(Hs(e));try{e.f&=~rt,Fs(e),t=zn(e)}finally{be(r)}return t}function on(e){var t=e.v,r=ur(e);if(!e.equals(r)&&(e.wv=Tn(),(!P?.is_fork||e.deps===null)&&(e.v=r,P?.capture(e,t,!0),e.deps===null))){W(e,J);return}Ke||($e!==null?(hr()||P?.is_fork)&&$e.set(e,r):sr(e))}function qs(e){if(e.effects!==null)for(const t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(Oe),t.teardown=us,t.ac=null,zt(t,0),mr(t))}function an(e){if(e.effects!==null)for(const t of e.effects)t.teardown&&mt(t)}let fr=new Set;const Ge=new Map;let ln=!1;function St(e,t){var r={f:0,v:e,reactions:null,equals:Hr,rv:0,wv:0};return r}function q(e,t){const r=St(e);return oi(r),r}function Bs(e,t=!1,r=!0){const s=St(e);return t||(s.equals=qr),s}function N(e,t,r=!1){V!==null&&(!we||(V.f&Lr)!==0)&&Wr()&&(V.f&(K|Ye|er|Lr))!==0&&(me===null||!lt.call(me,e))&&xs();let s=r?vt(t):t;return jt(e,s,Pt)}function jt(e,t,r=null){if(!e.equals(t)){var s=e.v;Ke?Ge.set(e,t):Ge.set(e,s),e.v=t;var n=Ne.ensure();if(n.capture(e,s),(e.f&K)!==0){const i=e;(e.f&ee)!==0&&ur(i),$e===null&&sr(i)}e.wv=Tn(),un(e,ee,r),O!==null&&(O.f&J)!==0&&(O.f&(ke|Fe))===0&&(_e===null?ai([e]):_e.push(e)),!n.is_fork&&fr.size>0&&!ln&&Us()}return t}function Us(){ln=!1;for(const e of fr)(e.f&J)!==0&&W(e,Se),Mt(e)&&mt(e);fr.clear()}function Et(e){N(e,e.v+1)}function un(e,t,r){var s=e.reactions;if(s!==null)for(var n=s.length,i=0;i<n;i++){var a=s[i],o=a.f,u=(o&ee)===0;if(u&&W(a,t),(o&K)!==0){var l=a;$e?.delete(l),(o&rt)===0&&(o&de&&(a.f|=rt),un(l,Se,r))}else if(u){var f=a;(o&Ye)!==0&&Ae!==null&&Ae.add(f),r!==null?r.push(f):ar(f)}}}function vt(e){if(typeof e!="object"||e===null||Rt in e)return e;const t=Ar(e);if(t!==as&&t!==ls)return e;var r=new Map,s=ns(e),n=q(0),i=it,a=o=>{if(it===i)return o();var u=V,l=it;oe(null),En(i);var f=o();return oe(u),En(l),f};return s&&r.set("length",q(e.length)),new Proxy(e,{defineProperty(o,u,l){(!("value"in l)||l.configurable===!1||l.enumerable===!1||l.writable===!1)&&$s();var f=r.get(u);return f===void 0?a(()=>{var _=q(l.value);return r.set(u,_),_}):N(f,l.value,!0),!0},deleteProperty(o,u){var l=r.get(u);if(l===void 0){if(u in o){const f=a(()=>q(Q));r.set(u,f),Et(n)}}else N(l,Q),Et(n);return!0},get(o,u,l){if(u===Rt)return e;var f=r.get(u),_=u in o;if(f===void 0&&(!_||tt(o,u)?.writable)&&(f=a(()=>{var g=vt(_?o[u]:Q),y=q(g);return y}),r.set(u,f)),f!==void 0){var b=v(f);return b===Q?void 0:b}return Reflect.get(o,u,l)},getOwnPropertyDescriptor(o,u){var l=Reflect.getOwnPropertyDescriptor(o,u);if(l&&"value"in l){var f=r.get(u);f&&(l.value=v(f))}else if(l===void 0){var _=r.get(u),b=_?.v;if(_!==void 0&&b!==Q)return{enumerable:!0,configurable:!0,value:b,writable:!0}}return l},has(o,u){if(u===Rt)return!0;var l=r.get(u),f=l!==void 0&&l.v!==Q||Reflect.has(o,u);if(l!==void 0||O!==null&&(!f||tt(o,u)?.writable)){l===void 0&&(l=a(()=>{var b=f?vt(o[u]):Q,g=q(b);return g}),r.set(u,l));var _=v(l);if(_===Q)return!1}return f},set(o,u,l,f){var _=r.get(u),b=u in o;if(s&&u==="length")for(var g=l;g<_.v;g+=1){var y=r.get(g+"");y!==void 0?N(y,Q):g in o&&(y=a(()=>q(Q)),r.set(g+"",y))}if(_===void 0)(!b||tt(o,u)?.writable)&&(_=a(()=>q(void 0)),N(_,vt(l)),r.set(u,_));else{b=_.v!==Q;var E=a(()=>vt(l));N(_,E)}var R=Reflect.getOwnPropertyDescriptor(o,u);if(R?.set&&R.set.call(f,l),!b){if(s&&typeof u=="string"){var T=r.get("length"),I=Number(u);Number.isInteger(I)&&I>=T.v&&N(T,I+1)}Et(n)}return!0},ownKeys(o){v(n);var u=Reflect.ownKeys(o).filter(_=>{var b=r.get(_);return b===void 0||b.v!==Q});for(var[l,f]of r)f.v!==Q&&!(l in o)&&u.push(l);return u},setPrototypeOf(){ws()}})}var fn,cn,dn,hn;function cr(){if(fn===void 0){fn=window,cn=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;dn=tt(t,"firstChild").get,hn=tt(t,"nextSibling").get,Rr(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),Rr(r)&&(r.__t=void 0)}}function Re(e=""){return document.createTextNode(e)}function bt(e){return dn.call(e)}function Me(e){return hn.call(e)}function se(e,t){if(!C)return bt(e);var r=bt(Y);return r===null&&(r=Y.appendChild(Re())),he(r),r}function te(e,t=1,r=!1){let s=C?Y:e;for(var n;t--;)n=s,s=Me(s);if(!C)return s;if(r){if(s?.nodeType!==tr){var i=Re();return s===null?n?.after(i):s.before(i),he(i),i}vn(s)}return he(s),s}function Ws(e){e.textContent=""}function Js(){return!1}function dr(e,t,r){return document.createElementNS(Nr,e,void 0)}function vn(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===tr;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}let bn=!1;function mn(){bn||(bn=!0,document.addEventListener("reset",e=>{Promise.resolve().then(()=>{if(!e.defaultPrevented)for(const t of e.target.elements)t.__on_r?.()})},{capture:!0}))}function Yt(e){var t=V,r=O;oe(null),be(null);try{return e()}finally{oe(t),be(r)}}function Gs(e,t,r,s=r){e.addEventListener(t,()=>Yt(r));const n=e.__on_r;n?e.__on_r=()=>{n(),s(!0)}:e.__on_r=()=>s(!0),mn()}function Ks(e){O===null&&(V===null&&_s(),ms()),Ke&&bs()}function Zs(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function ze(e,t){var r=O;r!==null&&(r.f&Ee)!==0&&(e|=Ee);var s={ctx:ve,deps:null,nodes:null,f:e|ee|de,first:null,fn:t,last:null,next:null,parent:r,b:r&&r.b,prev:null,teardown:null,wv:0,ac:null},n=s;if((e&ut)!==0)dt!==null?dt.push(s):Ne.ensure().schedule(s);else if(t!==null){try{mt(s)}catch(a){throw ie(s),a}n.deps===null&&n.teardown===null&&n.nodes===null&&n.first===n.last&&(n.f&qe)===0&&(n=n.first,(e&Ye)!==0&&(e&ft)!==0&&n!==null&&(n.f|=ft))}if(n!==null&&(n.parent=r,r!==null&&Zs(n,r),V!==null&&(V.f&K)!==0&&(e&Fe)===0)){var i=V;(i.effects??=[]).push(n)}return s}function hr(){return V!==null&&!we}function _n(e){const t=ze(At,null);return W(t,J),t.teardown=e,t}function Xs(e){Ks();var t=O.f,r=!V&&(t&ke)!==0&&(t&He)===0;if(r){var s=ve;(s.e??=[]).push(e)}else return pn(e)}function pn(e){return ze(ut|cs,e)}function Qs(e){Ne.ensure();const t=ze(Fe|qe,e);return()=>{ie(t)}}function ei(e){Ne.ensure();const t=ze(Fe|qe,e);return(r={})=>new Promise(s=>{r.outro?Tt(t,()=>{ie(t),s(void 0)}):(ie(t),s(void 0))})}function ti(e){return ze(ut,e)}function ri(e){return ze(er|qe,e)}function vr(e,t=0){return ze(At|t,e)}function Ce(e,t=[],r=[],s=[]){Ps(s,t,r,n=>{ze(At,()=>e(...n.map(v)))})}function br(e,t=0){var r=ze(Ye|t,e);return r}function Ie(e){return ze(ke|qe,e)}function gn(e){var t=e.teardown;if(t!==null){const r=Ke,s=V;kn(!0),oe(null);try{t.call(null)}finally{kn(r),oe(s)}}}function mr(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const n=r.ac;n!==null&&Yt(()=>{n.abort(Oe)});var s=r.next;(r.f&Fe)!==0?r.parent=null:ie(r,t),r=s}}function ni(e){for(var t=e.first;t!==null;){var r=t.next;(t.f&ke)===0&&ie(t),t=r}}function ie(e,t=!0){var r=!1;(t||(e.f&jr)!==0)&&e.nodes!==null&&e.nodes.end!==null&&(si(e.nodes.start,e.nodes.end),r=!0),W(e,Pr),mr(e,t&&!r),zt(e,0);var s=e.nodes&&e.nodes.t;if(s!==null)for(const i of s)i.stop();gn(e),e.f^=Pr,e.f|=ye;var n=e.parent;n!==null&&n.first!==null&&yn(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function si(e,t){for(;e!==null;){var r=e===t?null:Me(e);e.remove(),e=r}}function yn(e){var t=e.parent,r=e.prev,s=e.next;r!==null&&(r.next=s),s!==null&&(s.prev=r),t!==null&&(t.first===e&&(t.first=s),t.last===e&&(t.last=r))}function Tt(e,t,r=!0){var s=[];$n(e,s,!0);var n=()=>{r&&ie(e),t&&t()},i=s.length;if(i>0){var a=()=>--i||n();for(var o of s)o.out(a)}else n()}function $n(e,t,r){if((e.f&Ee)===0){e.f^=Ee;var s=e.nodes&&e.nodes.t;if(s!==null)for(const o of s)(o.is_global||r)&&t.push(o);for(var n=e.first;n!==null;){var i=n.next,a=(n.f&ft)!==0||(n.f&ke)!==0&&(e.f&Ye)!==0;$n(n,t,a?r:!1),n=i}}}function ii(e){wn(e,!0)}function wn(e,t){if((e.f&Ee)!==0){e.f^=Ee,(e.f&J)===0&&(W(e,ee),Ne.ensure().schedule(e));for(var r=e.first;r!==null;){var s=r.next,n=(r.f&ft)!==0||(r.f&ke)!==0;wn(r,n?t:!1),r=s}var i=e.nodes&&e.nodes.t;if(i!==null)for(const a of i)(a.is_global||t)&&a.in()}}function xn(e,t){if(e.nodes)for(var r=e.nodes.start,s=e.nodes.end;r!==null;){var n=r===s?null:Me(r);t.append(r),r=n}}let Ft=!1,Ke=!1;function kn(e){Ke=e}let V=null,we=!1;function oe(e){V=e}let O=null;function be(e){O=e}let me=null;function oi(e){V!==null&&(me===null?me=[e]:me.push(e))}let ae=null,ue=0,_e=null;function ai(e){_e=e}let Sn=1,st=0,it=st;function En(e){it=e}function Tn(){return++Sn}function Mt(e){var t=e.f;if((t&ee)!==0)return!0;if(t&K&&(e.f&=~rt),(t&Se)!==0){for(var r=e.deps,s=r.length,n=0;n<s;n++){var i=r[n];if(Mt(i)&&on(i),i.wv>e.wv)return!0}(t&de)!==0&&$e===null&&W(e,J)}return!1}function Mn(e,t,r=!0){var s=e.reactions;if(s!==null&&!(me!==null&<.call(me,e)))for(var n=0;n<s.length;n++){var i=s[n];(i.f&K)!==0?Mn(i,t,!1):t===i&&(r?W(i,ee):(i.f&J)!==0&&W(i,Se),ar(i))}}function zn(e){var t=ae,r=ue,s=_e,n=V,i=me,a=ve,o=we,u=it,l=e.f;ae=null,ue=0,_e=null,V=(l&(ke|Fe))===0?e:null,me=null,ct(e.ctx),we=!1,it=++st,e.ac!==null&&(Yt(()=>{e.ac.abort(Oe)}),e.ac=null);try{e.f|=Qt;var f=e.fn,_=f();e.f|=He;var b=e.deps,g=P?.is_fork;if(ae!==null){var y;if(g||zt(e,ue),b!==null&&ue>0)for(b.length=ue+ae.length,y=0;y<ae.length;y++)b[ue+y]=ae[y];else e.deps=b=ae;if(hr()&&(e.f&de)!==0)for(y=ue;y<b.length;y++)(b[y].reactions??=[]).push(e)}else!g&&b!==null&&ue<b.length&&(zt(e,ue),b.length=ue);if(Wr()&&_e!==null&&!we&&b!==null&&(e.f&(K|Se|ee))===0)for(y=0;y<_e.length;y++)Mn(_e[y],e);if(n!==null&&n!==e){if(st++,n.deps!==null)for(let E=0;E<r;E+=1)n.deps[E].rv=st;if(t!==null)for(const E of t)E.rv=st;_e!==null&&(s===null?s=_e:s.push(..._e))}return(e.f&Be)!==0&&(e.f^=Be),_}catch(E){return Gr(E)}finally{e.f^=Qt,ae=t,ue=r,_e=s,V=n,me=i,ct(a),we=o,it=u}}function li(e,t){let r=t.reactions;if(r!==null){var s=ss.call(r,e);if(s!==-1){var n=r.length-1;n===0?r=t.reactions=null:(r[s]=r[n],r.pop())}}if(r===null&&(t.f&K)!==0&&(ae===null||!lt.call(ae,t))){var i=t;(i.f&de)!==0&&(i.f^=de,i.f&=~rt),sr(i),qs(i),zt(i,0)}}function zt(e,t){var r=e.deps;if(r!==null)for(var s=t;s<r.length;s++)li(e,r[s])}function mt(e){var t=e.f;if((t&ye)===0){W(e,J);var r=O,s=Ft;O=e,Ft=!0;try{(t&(Ye|Ir))!==0?ni(e):mr(e),gn(e);var n=zn(e);e.teardown=typeof n=="function"?n:null,e.wv=Sn;var i;rs&&Ms&&(e.f&ee)!==0&&e.deps}finally{Ft=s,O=r}}}async function ui(){await Promise.resolve(),ht()}function v(e){var t=e.f,r=(t&K)!==0;if(V!==null&&!we){var s=O!==null&&(O.f&ye)!==0;if(!s&&(me===null||!lt.call(me,e))){var n=V.deps;if((V.f&Qt)!==0)e.rv<st&&(e.rv=st,ae===null&&n!==null&&n[ue]===e?ue++:ae===null?ae=[e]:ae.push(e));else{(V.deps??=[]).push(e);var i=e.reactions;i===null?e.reactions=[V]:lt.call(i,V)||i.push(V)}}}if(Ke&&Ge.has(e))return Ge.get(e);if(r){var a=e;if(Ke){var o=a.v;return((a.f&J)===0&&a.reactions!==null||Vn(a))&&(o=ur(a)),Ge.set(a,o),o}var u=(a.f&de)===0&&!we&&V!==null&&(Ft||(V.f&de)!==0),l=(a.f&He)===0;Mt(a)&&(u&&(a.f|=de),on(a)),u&&!l&&(an(a),Dn(a))}if($e?.has(e))return $e.get(e);if((e.f&Be)!==0)throw e.v;return e.v}function Dn(e){if(e.f|=de,e.deps!==null)for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&K)!==0&&(t.f&de)===0&&(an(t),Dn(t))}function Vn(e){if(e.v===Q)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(Ge.has(t)||(t.f&K)!==0&&Vn(t))return!0;return!1}function _r(e){var t=we;try{return we=!0,e()}finally{we=t}}const Dt=Symbol("events"),On=new Set,pr=new Set;function fi(e,t,r,s={}){function n(i){if(s.capture||gr.call(t,i),!i.cancelBubble)return Yt(()=>r?.call(this,i))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?Ue(()=>{t.addEventListener(e,n,s)}):t.addEventListener(e,n,s),n}function ot(e,t,r,s,n){var i={capture:s,passive:n},a=fi(e,t,r,i);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&_n(()=>{t.removeEventListener(e,a,i)})}function fe(e,t,r){(t[Dt]??={})[e]=r}function ci(e){for(var t=0;t<e.length;t++)On.add(e[t]);for(var r of pr)r(e)}let Nn=null;function gr(e){var t=this,r=t.ownerDocument,s=e.type,n=e.composedPath?.()||[],i=n[0]||e.target;Nn=e;var a=0,o=Nn===e&&e[Dt];if(o){var u=n.indexOf(o);if(u!==-1&&(t===document||t===window)){e[Dt]=t;return}var l=n.indexOf(t);if(l===-1)return;u<=l&&(a=u)}if(i=n[a]||e.target,i!==t){Nt(e,"currentTarget",{configurable:!0,get(){return i||r}});var f=V,_=O;oe(null),be(null);try{for(var b,g=[];i!==null;){var y=i.assignedSlot||i.parentNode||i.host||null;try{var E=i[Dt]?.[s];E!=null&&(!i.disabled||e.target===i)&&E.call(i,e)}catch(R){b?g.push(R):b=R}if(e.cancelBubble||y===t||y===null)break;i=y}if(b){for(let R of g)queueMicrotask(()=>{throw R});throw b}}finally{e[Dt]=t,delete e.currentTarget,oe(f),be(_)}}}const di=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:e=>e});function hi(e){return di?.createHTML(e)??e}function vi(e){var t=dr("template");return t.innerHTML=hi(e.replaceAll("<!>","<!---->")),t.content}function _t(e,t){var r=O;r.nodes===null&&(r.nodes={start:e,end:t,a:null,t:null})}function Pe(e,t){var r=(t&es)!==0,s=(t&ts)!==0,n,i=!e.startsWith("<!>");return()=>{if(C)return _t(Y,null),Y;n===void 0&&(n=vi(i?e:"<!>"+e),r||(n=bt(n)));var a=s||cn?document.importNode(n,!0):n.cloneNode(!0);if(r){var o=bt(a),u=a.lastChild;_t(o,u)}else _t(a,a);return a}}function bi(e=""){if(!C){var t=Re(e+"");return _t(t,t),t}var r=Y;return r.nodeType!==tr?(r.before(r=Re()),he(r)):vn(r),_t(r,r),r}function xe(e,t){if(C){var r=O;((r.f&He)===0||r.nodes.end===null)&&(r.nodes.end=Y),rr();return}e!==null&&e.before(t)}const mi=["touchstart","touchmove"];function _i(e){return mi.includes(e)}function pi(e,t){var r=t==null?"":typeof t=="object"?`${t}`:t;r!==(e.__t??=e.nodeValue)&&(e.__t=r,e.nodeValue=`${r}`)}function An(e,t){return Rn(e,t)}function gi(e,t){cr(),t.intro=t.intro??!1;const r=t.target,s=C,n=Y;try{for(var i=bt(r);i&&(i.nodeType!==xt||i.data!==zr);)i=Me(i);if(!i)throw at;Te(!0),he(i);const a=Rn(e,{...t,anchor:i});return Te(!1),a}catch(a){if(a instanceof Error&&a.message.split(`
|
|
2
|
+
`).some(o=>o.startsWith("https://svelte.dev/e/")))throw a;return a!==at&&console.warn("Failed to hydrate: ",a),t.recover===!1&&gs(),cr(),Ws(r),Te(!1),An(e,t)}finally{Te(s),he(n)}}const Ht=new Map;function Rn(e,{target:t,anchor:r,props:s={},events:n,context:i,intro:a=!0,transformError:o}){cr();var u=void 0,l=ei(()=>{var f=r??t.appendChild(Re());Cs(f,{pending:()=>{}},g=>{Br({});var y=ve;if(i&&(y.c=i),n&&(s.$$events=n),C&&_t(g,null),u=e(g,s)||{},C&&(O.nodes.end=Y,Y===null||Y.nodeType!==xt||Y.data!==Or))throw Ct(),at;Ur()},o);var _=new Set,b=g=>{for(var y=0;y<g.length;y++){var E=g[y];if(!_.has(E)){_.add(E);var R=_i(E);for(const F of[t,document]){var T=Ht.get(F);T===void 0&&(T=new Map,Ht.set(F,T));var I=T.get(E);I===void 0?(F.addEventListener(E,gr,{passive:R}),T.set(E,1)):T.set(E,I+1)}}}};return b(is(On)),pr.add(b),()=>{for(var g of _)for(const R of[t,document]){var y=Ht.get(R),E=y.get(g);--E==0?(R.removeEventListener(g,gr),y.delete(g),y.size===0&&Ht.delete(R)):y.set(g,E)}pr.delete(b),f!==r&&f.parentNode?.removeChild(f)}});return yr.set(u,l),u}let yr=new WeakMap;function yi(e,t){const r=yr.get(e);return r?(yr.delete(e),r(t)):Promise.resolve()}class $i{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),s=this.#r.get(r);if(s)ii(s),this.#s.delete(r);else{var n=this.#t.get(r);n&&(this.#r.set(r,n.effect),this.#t.delete(r),n.fragment.lastChild.remove(),this.anchor.before(n.fragment),s=n.effect)}for(const[i,a]of this.#e){if(this.#e.delete(i),i===t)break;const o=this.#t.get(a);o&&(ie(o.effect),this.#t.delete(a))}for(const[i,a]of this.#r){if(i===r||this.#s.has(i))continue;const o=()=>{if(Array.from(this.#e.values()).includes(i)){var l=document.createDocumentFragment();xn(a,l),l.append(Re()),this.#t.set(i,{effect:a,fragment:l})}else ie(a);this.#s.delete(i),this.#r.delete(i)};this.#i||!s?(this.#s.add(i),Tt(a,o,!1)):o()}}};#o=t=>{this.#e.delete(t);const r=Array.from(this.#e.values());for(const[s,n]of this.#t)r.includes(s)||(ie(n.effect),this.#t.delete(s))};ensure(t,r){var s=P,n=Js();if(r&&!this.#r.has(t)&&!this.#t.has(t))if(n){var i=document.createDocumentFragment(),a=Re();i.append(a),this.#t.set(t,{effect:Ie(()=>r(a)),fragment:i})}else this.#r.set(t,Ie(()=>r(this.anchor)));if(this.#e.set(s,t),n){for(const[o,u]of this.#r)o===t?s.unskip_effect(u):s.skip_effect(u);for(const[o,u]of this.#t)o===t?s.unskip_effect(u.effect):s.skip_effect(u.effect);s.oncommit(this.#n),s.ondiscard(this.#o)}else C&&(this.anchor=Y),this.#n(s)}}function pt(e,t,r=!1){var s;C&&(s=Y,rr());var n=new $i(e),i=r?ft:0;function a(o,u){if(C){var l=Es(s);if(o!==parseInt(l.substring(1))){var f=Fr();he(f),n.anchor=f,Te(!1),n.ensure(o,u),Te(!0);return}}n.ensure(o,u)}br(()=>{var o=!1;t((u,l=0)=>{o=!0,a(l,u)}),o||a(-1,null)},i)}function wi(e,t){let r=null,s=C;var n;if(C){r=Y;for(var i=bt(document.head);i!==null&&(i.nodeType!==xt||i.data!==e);)i=Me(i);if(i===null)Te(!1);else{var a=Me(i);i.remove(),he(a)}}C||(n=document.head.appendChild(Re()));try{br(()=>t(n),jr|qe)}finally{s&&(Te(!0),he(r))}}function xi(e,t){ti(()=>{var r=e.getRootNode(),s=r.host?r:r.head??r.ownerDocument.head;if(!s.querySelector("#"+t.hash)){const n=dr("style");n.id=t.hash,n.textContent=t.code,s.appendChild(n)}})}function ki(e,t,r){var s=""+e;return s}function Si(e,t){return e==null?null:String(e)}function Cn(e,t,r,s,n,i){var a=e.__className;if(C||a!==r||a===void 0){var o=ki(r);(!C||o!==e.getAttribute("class"))&&(o==null?e.removeAttribute("class"):e.className=o),e.__className=r}return i}function In(e,t,r,s){var n=e.__style;if(C||n!==t){var i=Si(t);(!C||i!==e.getAttribute("style"))&&(i==null?e.removeAttribute("style"):e.style.cssText=i),e.__style=t}return s}const Ei=Symbol("is custom element"),Ti=Symbol("is html"),Mi=hs?"link":"LINK";function gt(e){if(C){var t=!1,r=()=>{if(!t){if(t=!0,e.hasAttribute("value")){var s=e.value;qt(e,"value",null),e.value=s}if(e.hasAttribute("checked")){var n=e.checked;qt(e,"checked",null),e.checked=n}}};e.__on_r=r,Ue(r),mn()}}function qt(e,t,r,s){var n=zi(e);C&&(n[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName===Mi)||n[t]!==(n[t]=r)&&(t==="loading"&&(e[ds]=r),r==null?e.removeAttribute(t):typeof r!="string"&&Pn(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function Ze(e,t,r){var s=V,n=O;let i=C;C&&Te(!1),oe(null),be(null);try{t!=="style"&&($r.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.nodeName.toLowerCase())?Pn(e).includes(t):r&&typeof r=="object")?e[t]=r:qt(e,t,r==null?r:String(r))}finally{oe(s),be(n),i&&Te(!0)}}function zi(e){return e.__attributes??={[Ei]:e.nodeName.includes("-"),[Ti]:e.namespaceURI===Nr}}var $r=new Map;function Pn(e){var t=e.getAttribute("is")||e.nodeName,r=$r.get(t);if(r)return r;$r.set(t,r=[]);for(var s,n=e,i=Element.prototype;i!==n;){s=os(n);for(var a in s)s[a].set&&r.push(a);n=Ar(n)}return r}function yt(e,t,r=t){var s=new WeakSet;Gs(e,"input",async n=>{var i=n?e.defaultValue:e.value;if(i=wr(e)?xr(i):i,r(i),P!==null&&s.add(P),await ui(),i!==(i=t())){var a=e.selectionStart,o=e.selectionEnd,u=e.value.length;if(e.value=i??"",o!==null){var l=e.value.length;a===o&&o===u&&l>u?(e.selectionStart=l,e.selectionEnd=l):(e.selectionStart=a,e.selectionEnd=Math.min(o,l))}}}),(C&&e.defaultValue!==e.value||_r(t)==null&&e.value)&&(r(wr(e)?xr(e.value):e.value),P!==null&&s.add(P)),vr(()=>{var n=t();if(e===document.activeElement){var i=P;if(s.has(i))return}wr(e)&&n===xr(e.value)||e.type==="date"&&!n&&!e.value||n!==e.value&&(e.value=n??"")})}function wr(e){var t=e.type;return t==="number"||t==="range"}function xr(e){return e===""?null:+e}function Bt(e,t,r,s){var n=(r&Xn)!==0,i=(r&Qn)!==0,a=s,o=!0,u=()=>(o&&(o=!1,a=i?_r(s):s),a);let l;if(n){var f=Rt in e||Yr in e;l=tt(e,t)?.set??(f&&t in e?I=>e[t]=I:void 0)}var _,b=!1;n?[_,b]=Vs(()=>e[t]):_=e[t],_===void 0&&s!==void 0&&(_=u(),l&&(ys(),l(_)));var g;if(g=()=>{var I=e[t];return I===void 0?u():(o=!0,I)},(r&Zn)===0)return g;if(l){var y=e.$$legacy;return(function(I,F){return arguments.length>0?((!F||y||b)&&l(F?g():I),I):g()})}var E=!1,R=((r&Kn)!==0?lr:Ys)(()=>(E=!1,g()));n&&v(R);var T=O;return(function(I,F){if(arguments.length>0){const le=F?v(R):n?vt(I):I;return N(R,le),E=!0,a!==void 0&&(a=le),I}return Ke&&E||(T.f&ye)!==0?R.v:v(R)})}function Di(e){return new Vi(e)}class Vi{#e;#r;constructor(t){var r=new Map,s=(i,a)=>{var o=Bs(a,!1,!1);return r.set(i,o),o};const n=new Proxy({...t.props||{},$$events:{}},{get(i,a){return v(r.get(a)??s(a,Reflect.get(i,a)))},has(i,a){return a===Yr?!0:(v(r.get(a)??s(a,Reflect.get(i,a))),Reflect.has(i,a))},set(i,a,o){return N(r.get(a)??s(a,o),o),Reflect.set(i,a,o)}});this.#r=(t.hydrate?gi:An)(t.component,{target:t.target,anchor:t.anchor,props:n,context:t.context,intro:t.intro??!1,recover:t.recover,transformError:t.transformError}),(!t?.props?.$$host||t.sync===!1)&&ht(),this.#e=n.$$events;for(const i of Object.keys(this.#r))i==="$set"||i==="$destroy"||i==="$on"||Nt(this,i,{get(){return this.#r[i]},set(a){this.#r[i]=a},enumerable:!0});this.#r.$set=i=>{Object.assign(n,i)},this.#r.$destroy=()=>{yi(this.#r)}}$set(t){this.#r.$set(t)}$on(t,r){this.#e[t]=this.#e[t]||[];const s=(...n)=>r.call(this,...n);return this.#e[t].push(s),()=>{this.#e[t]=this.#e[t].filter(n=>n!==s)}}$destroy(){this.#r.$destroy()}}let Ln;typeof HTMLElement=="function"&&(Ln=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 s=this.$$c.$on(e,t);this.$$l_u.set(t,s)}super.addEventListener(e,t,r)}removeEventListener(e,t,r){if(super.removeEventListener(e,t,r),this.$$c){const s=this.$$l_u.get(t);s&&(s(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(s){return n=>{const i=dr("slot");s!=="default"&&(i.name=s),xe(n,i)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},r=Oi(this);for(const s of this.$$s)s in r&&(s==="default"&&!this.$$d.children?(this.$$d.children=e(s),t.default=!0):t[s]=e(s));for(const s of this.attributes){const n=this.$$g_p(s.name);n in this.$$d||(this.$$d[n]=Ut(n,s.value,this.$$p_d,"toProp"))}for(const s in this.$$p_d)!(s in this.$$d)&&this[s]!==void 0&&(this.$$d[s]=this[s],delete this[s]);this.$$c=Di({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=Qs(()=>{vr(()=>{this.$$r=!0;for(const s of Ot(this.$$c)){if(!this.$$p_d[s]?.reflect)continue;this.$$d[s]=this.$$c[s];const n=Ut(s,this.$$d[s],this.$$p_d,"toAttribute");n==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,n)}this.$$r=!1})});for(const s in this.$$l)for(const n of this.$$l[s]){const i=this.$$c.$on(s,n);this.$$l_u.set(n,i)}this.$$l={}}}attributeChangedCallback(e,t,r){this.$$r||(e=this.$$g_p(e),this.$$d[e]=Ut(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 Ot(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function Ut(e,t,r,s){const n=r[e]?.type;if(t=n==="Boolean"&&typeof t!="boolean"?t!=null:t,!s||!r[e])return t;if(s==="toAttribute")switch(n){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(n){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function Oi(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function Ni(e,t,r,s,n,i){let a=class extends Ln{constructor(){super(e,r,n),this.$$p_d=t}static get observedAttributes(){return Ot(t).map(o=>(t[o].attribute||o).toLowerCase())}};return Ot(t).forEach(o=>{Nt(a.prototype,o,{get(){return this.$$c&&o in this.$$c?this.$$c[o]:this.$$d[o]},set(u){u=Ut(o,u,t),this.$$d[o]=u;var l=this.$$c;if(l){var f=tt(l,o)?.get;f?l[o]=u:l.$set({[o]:u})}}})}),s.forEach(o=>{Nt(a.prototype,o,{get(){return this.$$c?.[o]}})}),e.element=a,a}function jn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Wt={exports:{}},Ai=Wt.exports,Yn;function Ri(){return Yn||(Yn=1,(function(e,t){(function(r,s){e.exports=s()})(Ai,(function(){var r=1e3,s=6e4,n=36e5,i="millisecond",a="second",o="minute",u="hour",l="day",f="week",_="month",b="quarter",g="year",y="date",E="Invalid Date",R=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,T=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,I={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(w){var h=["th","st","nd","rd"],c=w%100;return"["+w+(h[(c-20)%10]||h[c]||h[0])+"]"}},F=function(w,h,c){var $=String(w);return!$||$.length>=h?w:""+Array(h+1-$.length).join(c)+w},le={s:F,z:function(w){var h=-w.utcOffset(),c=Math.abs(h),$=Math.floor(c/60),d=c%60;return(h<=0?"+":"-")+F($,2,"0")+":"+F(d,2,"0")},m:function w(h,c){if(h.date()<c.date())return-w(c,h);var $=12*(c.year()-h.year())+(c.month()-h.month()),d=h.clone().add($,_),M=c-d<0,S=h.clone().add($+(M?-1:1),_);return+(-($+(c-d)/(M?d-S:S-d))||0)},a:function(w){return w<0?Math.ceil(w)||0:Math.floor(w)},p:function(w){return{M:_,y:g,w:f,d:l,D:y,h:u,m:o,s:a,ms:i,Q:b}[w]||String(w||"").toLowerCase().replace(/s$/,"")},u:function(w){return w===void 0}},ce="en",z={};z[ce]=I;var x="$isDayjsObject",m=function(w){return w instanceof B||!(!w||!w[x])},A=function w(h,c,$){var d;if(!h)return ce;if(typeof h=="string"){var M=h.toLowerCase();z[M]&&(d=M),c&&(z[M]=c,d=M);var S=h.split("-");if(!d&&S.length>1)return w(S[0])}else{var L=h.name;z[L]=h,d=L}return!$&&d&&(ce=d),d||!$&&ce},D=function(w,h){if(m(w))return w.clone();var c=typeof h=="object"?h:{};return c.date=w,c.args=arguments,new B(c)},k=le;k.l=A,k.i=m,k.w=function(w,h){return D(w,{locale:h.$L,utc:h.$u,x:h.$x,$offset:h.$offset})};var B=(function(){function w(c){this.$L=A(c.locale,null,!0),this.parse(c),this.$x=this.$x||c.x||{},this[x]=!0}var h=w.prototype;return h.parse=function(c){this.$d=(function($){var d=$.date,M=$.utc;if(d===null)return new Date(NaN);if(k.u(d))return new Date;if(d instanceof Date)return new Date(d);if(typeof d=="string"&&!/Z$/i.test(d)){var S=d.match(R);if(S){var L=S[2]-1||0,H=(S[7]||"0").substring(0,3);return M?new Date(Date.UTC(S[1],L,S[3]||1,S[4]||0,S[5]||0,S[6]||0,H)):new Date(S[1],L,S[3]||1,S[4]||0,S[5]||0,S[6]||0,H)}}return new Date(d)})(c),this.init()},h.init=function(){var c=this.$d;this.$y=c.getFullYear(),this.$M=c.getMonth(),this.$D=c.getDate(),this.$W=c.getDay(),this.$H=c.getHours(),this.$m=c.getMinutes(),this.$s=c.getSeconds(),this.$ms=c.getMilliseconds()},h.$utils=function(){return k},h.isValid=function(){return this.$d.toString()!==E},h.isSame=function(c,$){var d=D(c);return this.startOf($)<=d&&d<=this.endOf($)},h.isAfter=function(c,$){return D(c)<this.startOf($)},h.isBefore=function(c,$){return this.endOf($)<D(c)},h.$g=function(c,$,d){return k.u(c)?this[$]:this.set(d,c)},h.unix=function(){return Math.floor(this.valueOf()/1e3)},h.valueOf=function(){return this.$d.getTime()},h.startOf=function(c,$){var d=this,M=!!k.u($)||$,S=k.p(c),L=function(pe,G){var ge=k.w(d.$u?Date.UTC(d.$y,G,pe):new Date(d.$y,G,pe),d);return M?ge:ge.endOf(l)},H=function(pe,G){return k.w(d.toDate()[pe].apply(d.toDate("s"),(M?[0,0,0,0]:[23,59,59,999]).slice(G)),d)},U=this.$W,X=this.$M,re=this.$D,De="set"+(this.$u?"UTC":"");switch(S){case g:return M?L(1,0):L(31,11);case _:return M?L(1,X):L(0,X+1);case f:var Ve=this.$locale().weekStart||0,Xe=(U<Ve?U+7:U)-Ve;return L(M?re-Xe:re+(6-Xe),X);case l:case y:return H(De+"Hours",0);case u:return H(De+"Minutes",1);case o:return H(De+"Seconds",2);case a:return H(De+"Milliseconds",3);default:return this.clone()}},h.endOf=function(c){return this.startOf(c,!1)},h.$set=function(c,$){var d,M=k.p(c),S="set"+(this.$u?"UTC":""),L=(d={},d[l]=S+"Date",d[y]=S+"Date",d[_]=S+"Month",d[g]=S+"FullYear",d[u]=S+"Hours",d[o]=S+"Minutes",d[a]=S+"Seconds",d[i]=S+"Milliseconds",d)[M],H=M===l?this.$D+($-this.$W):$;if(M===_||M===g){var U=this.clone().set(y,1);U.$d[L](H),U.init(),this.$d=U.set(y,Math.min(this.$D,U.daysInMonth())).$d}else L&&this.$d[L](H);return this.init(),this},h.set=function(c,$){return this.clone().$set(c,$)},h.get=function(c){return this[k.p(c)]()},h.add=function(c,$){var d,M=this;c=Number(c);var S=k.p($),L=function(X){var re=D(M);return k.w(re.date(re.date()+Math.round(X*c)),M)};if(S===_)return this.set(_,this.$M+c);if(S===g)return this.set(g,this.$y+c);if(S===l)return L(1);if(S===f)return L(7);var H=(d={},d[o]=s,d[u]=n,d[a]=r,d)[S]||1,U=this.$d.getTime()+c*H;return k.w(U,this)},h.subtract=function(c,$){return this.add(-1*c,$)},h.format=function(c){var $=this,d=this.$locale();if(!this.isValid())return d.invalidDate||E;var M=c||"YYYY-MM-DDTHH:mm:ssZ",S=k.z(this),L=this.$H,H=this.$m,U=this.$M,X=d.weekdays,re=d.months,De=d.meridiem,Ve=function(G,ge,Qe,Le){return G&&(G[ge]||G($,M))||Qe[ge].slice(0,Le)},Xe=function(G){return k.s(L%12||12,G,"0")},pe=De||function(G,ge,Qe){var Le=G<12?"AM":"PM";return Qe?Le.toLowerCase():Le};return M.replace(T,(function(G,ge){return ge||(function(Qe){switch(Qe){case"YY":return String($.$y).slice(-2);case"YYYY":return k.s($.$y,4,"0");case"M":return U+1;case"MM":return k.s(U+1,2,"0");case"MMM":return Ve(d.monthsShort,U,re,3);case"MMMM":return Ve(re,U);case"D":return $.$D;case"DD":return k.s($.$D,2,"0");case"d":return String($.$W);case"dd":return Ve(d.weekdaysMin,$.$W,X,2);case"ddd":return Ve(d.weekdaysShort,$.$W,X,3);case"dddd":return X[$.$W];case"H":return String(L);case"HH":return k.s(L,2,"0");case"h":return Xe(1);case"hh":return Xe(2);case"a":return pe(L,H,!0);case"A":return pe(L,H,!1);case"m":return String(H);case"mm":return k.s(H,2,"0");case"s":return String($.$s);case"ss":return k.s($.$s,2,"0");case"SSS":return k.s($.$ms,3,"0");case"Z":return S}return null})(G)||S.replace(":","")}))},h.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},h.diff=function(c,$,d){var M,S=this,L=k.p($),H=D(c),U=(H.utcOffset()-this.utcOffset())*s,X=this-H,re=function(){return k.m(S,H)};switch(L){case g:M=re()/12;break;case _:M=re();break;case b:M=re()/3;break;case f:M=(X-U)/6048e5;break;case l:M=(X-U)/864e5;break;case u:M=X/n;break;case o:M=X/s;break;case a:M=X/r;break;default:M=X}return d?M:k.a(M)},h.daysInMonth=function(){return this.endOf(_).$D},h.$locale=function(){return z[this.$L]},h.locale=function(c,$){if(!c)return this.$L;var d=this.clone(),M=A(c,$,!0);return M&&(d.$L=M),d},h.clone=function(){return k.w(this.$d,this)},h.toDate=function(){return new Date(this.valueOf())},h.toJSON=function(){return this.isValid()?this.toISOString():null},h.toISOString=function(){return this.$d.toISOString()},h.toString=function(){return this.$d.toUTCString()},w})(),Z=B.prototype;return D.prototype=Z,[["$ms",i],["$s",a],["$m",o],["$H",u],["$W",l],["$M",_],["$y",g],["$D",y]].forEach((function(w){Z[w[1]]=function(h){return this.$g(h,w[0],w[1])}})),D.extend=function(w,h){return w.$i||(w(h,B,D),w.$i=!0),D},D.locale=A,D.isDayjs=m,D.unix=function(w){return D(1e3*w)},D.en=z[ce],D.Ls=z,D.p={},D}))})(Wt)),Wt.exports}var Ci=Ri();const $t=jn(Ci),Fn={version:"0.66.4"};var Jt={exports:{}},Ii=Jt.exports,Hn;function Pi(){return Hn||(Hn=1,(function(e,t){(function(r,s){e.exports=s()})(Ii,(function(){var r,s,n=1e3,i=6e4,a=36e5,o=864e5,u=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,l=31536e6,f=2628e6,_=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,b={years:l,months:f,days:o,hours:a,minutes:i,seconds:n,milliseconds:1,weeks:6048e5},g=function(z){return z instanceof le},y=function(z,x,m){return new le(z,m,x.$l)},E=function(z){return s.p(z)+"s"},R=function(z){return z<0},T=function(z){return R(z)?Math.ceil(z):Math.floor(z)},I=function(z){return Math.abs(z)},F=function(z,x){return z?R(z)?{negative:!0,format:""+I(z)+x}:{negative:!1,format:""+z+x}:{negative:!1,format:""}},le=(function(){function z(m,A,D){var k=this;if(this.$d={},this.$l=D,m===void 0&&(this.$ms=0,this.parseFromMilliseconds()),A)return y(m*b[E(A)],this);if(typeof m=="number")return this.$ms=m,this.parseFromMilliseconds(),this;if(typeof m=="object")return Object.keys(m).forEach((function(w){k.$d[E(w)]=m[w]})),this.calMilliseconds(),this;if(typeof m=="string"){var B=m.match(_);if(B){var Z=B.slice(2).map((function(w){return w!=null?Number(w):0}));return this.$d.years=Z[0],this.$d.months=Z[1],this.$d.weeks=Z[2],this.$d.days=Z[3],this.$d.hours=Z[4],this.$d.minutes=Z[5],this.$d.seconds=Z[6],this.calMilliseconds(),this}}return this}var x=z.prototype;return x.calMilliseconds=function(){var m=this;this.$ms=Object.keys(this.$d).reduce((function(A,D){return A+(m.$d[D]||0)*b[D]}),0)},x.parseFromMilliseconds=function(){var m=this.$ms;this.$d.years=T(m/l),m%=l,this.$d.months=T(m/f),m%=f,this.$d.days=T(m/o),m%=o,this.$d.hours=T(m/a),m%=a,this.$d.minutes=T(m/i),m%=i,this.$d.seconds=T(m/n),m%=n,this.$d.milliseconds=m},x.toISOString=function(){var m=F(this.$d.years,"Y"),A=F(this.$d.months,"M"),D=+this.$d.days||0;this.$d.weeks&&(D+=7*this.$d.weeks);var k=F(D,"D"),B=F(this.$d.hours,"H"),Z=F(this.$d.minutes,"M"),w=this.$d.seconds||0;this.$d.milliseconds&&(w+=this.$d.milliseconds/1e3,w=Math.round(1e3*w)/1e3);var h=F(w,"S"),c=m.negative||A.negative||k.negative||B.negative||Z.negative||h.negative,$=B.format||Z.format||h.format?"T":"",d=(c?"-":"")+"P"+m.format+A.format+k.format+$+B.format+Z.format+h.format;return d==="P"||d==="-P"?"P0D":d},x.toJSON=function(){return this.toISOString()},x.format=function(m){var A=m||"YYYY-MM-DDTHH:mm:ss",D={Y:this.$d.years,YY:s.s(this.$d.years,2,"0"),YYYY:s.s(this.$d.years,4,"0"),M:this.$d.months,MM:s.s(this.$d.months,2,"0"),D:this.$d.days,DD:s.s(this.$d.days,2,"0"),H:this.$d.hours,HH:s.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:s.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:s.s(this.$d.seconds,2,"0"),SSS:s.s(this.$d.milliseconds,3,"0")};return A.replace(u,(function(k,B){return B||String(D[k])}))},x.as=function(m){return this.$ms/b[E(m)]},x.get=function(m){var A=this.$ms,D=E(m);return D==="milliseconds"?A%=1e3:A=D==="weeks"?T(A/b[D]):this.$d[D],A||0},x.add=function(m,A,D){var k;return k=A?m*b[E(A)]:g(m)?m.$ms:y(m,this).$ms,y(this.$ms+k*(D?-1:1),this)},x.subtract=function(m,A){return this.add(m,A,!0)},x.locale=function(m){var A=this.clone();return A.$l=m,A},x.clone=function(){return y(this.$ms,this)},x.humanize=function(m){return r().add(this.$ms,"ms").locale(this.$l).fromNow(!m)},x.valueOf=function(){return this.asMilliseconds()},x.milliseconds=function(){return this.get("milliseconds")},x.asMilliseconds=function(){return this.as("milliseconds")},x.seconds=function(){return this.get("seconds")},x.asSeconds=function(){return this.as("seconds")},x.minutes=function(){return this.get("minutes")},x.asMinutes=function(){return this.as("minutes")},x.hours=function(){return this.get("hours")},x.asHours=function(){return this.as("hours")},x.days=function(){return this.get("days")},x.asDays=function(){return this.as("days")},x.weeks=function(){return this.get("weeks")},x.asWeeks=function(){return this.as("weeks")},x.months=function(){return this.get("months")},x.asMonths=function(){return this.as("months")},x.years=function(){return this.get("years")},x.asYears=function(){return this.as("years")},z})(),ce=function(z,x,m){return z.add(x.years()*m,"y").add(x.months()*m,"M").add(x.days()*m,"d").add(x.hours()*m,"h").add(x.minutes()*m,"m").add(x.seconds()*m,"s").add(x.milliseconds()*m,"ms")};return function(z,x,m){r=m,s=m().$utils(),m.duration=function(k,B){var Z=m.locale();return y(k,{$l:Z},B)},m.isDuration=g;var A=x.prototype.add,D=x.prototype.subtract;x.prototype.add=function(k,B){return g(k)?ce(this,k,1):A.bind(this)(k,B)},x.prototype.subtract=function(k,B){return g(k)?ce(this,k,-1):D.bind(this)(k,B)}}}))})(Jt)),Jt.exports}var Li=Pi();const ji=jn(Li);function qn(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 s=document.createElement("script");if(s.id=t+"-script",s.src=`https://cdn.jsdelivr.net/npm/${e.repoName}@${e.version}/${r}`,e?.local)s.src=`${e.local}`;else if(location.href.includes("localhost:6006")){const n=t.split("-")[0];s.src=`http://localhost:6006/webcomponents/${t.replace(n+"-","")}/${r}`}document.head.appendChild(s)}catch(s){console.warn(s)}}var Yi=Pe('<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css" class="svelte-10svzuv"/>'),Fi=Pe('<i class="bi bi-play-fill svelte-10svzuv"></i>'),Hi=Pe('<i class="bi bi-pause-fill svelte-10svzuv"></i>'),qi=Pe('<button class="btn btn-outline-dark svelte-10svzuv"><!></button>'),Bi=Pe('<div style="width: 100%;margin-bottom:15px" class="svelte-10svzuv"><div style="display:inline-block; width:50px;" class="svelte-10svzuv"><!></div> <div style="display:inline-block;width:calc(100% - 60px);position:relative" class="svelte-10svzuv"><hb-range-slider></hb-range-slider></div></div>',2),Ui=Pe("<hb-form></hb-form>",2),Wi=Pe('<button class="btn btn-sm btn-primary svelte-10svzuv">send</button>'),Ji=Pe('<button class="btn btn-sm btn-primary svelte-10svzuv" disabled="">send</button>'),Gi=Pe('<div id="card" class="card h-100 svelte-10svzuv"><div class="ratio ratio-16x9 svelte-10svzuv" style="background-color: black;"><video id="video" class="ratio ratio-16x9 svelte-10svzuv"><source type="video/mp4" class="svelte-10svzuv"/> <track kind="captions" src="" srclang="en" label="English" class="svelte-10svzuv"/> Your browser does not support the video tag.</video></div> <div class="card-body svelte-10svzuv"><!> <!> <div id="controls" class="svelte-10svzuv"><div style="flex-grow: 2" class="svelte-10svzuv"><button class="btn btn-sm btn-secondary svelte-10svzuv">▼</button> <button class="btn btn-sm btn-secondary svelte-10svzuv">▲</button> <input type="number" class="form-control form-custom-control-numbers svelte-10svzuv"/>h <input class="form-control form-custom-control-numbers svelte-10svzuv" type="number"/>m <input type="number" class="form-control form-custom-control-numbers svelte-10svzuv"/>s</div> <div style="flex-grow: 2;text-align:center" class="svelte-10svzuv"></div> <div style="flex-grow: 2;text-align:right" class="svelte-10svzuv"><input type="number" class="form-control form-custom-control-numbers svelte-10svzuv"/>h <input class="form-control form-custom-control-numbers svelte-10svzuv" type="number"/>m <input type="number" class="form-control form-custom-control-numbers svelte-10svzuv"/>s <button class="btn btn-sm btn-secondary svelte-10svzuv">▲</button> <button class="btn btn-sm btn-secondary svelte-10svzuv">▼</button></div></div></div> <div class="card-footer svelte-10svzuv"><span style="float:left;height:30px;line-height:30px" class="svelte-10svzuv"><!></span> <span style="float:right;height:30px;line-height:30px" class="svelte-10svzuv"><!></span></div></div>',2);const Ki={hash:"svelte-10svzuv",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
3
|
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css");
|
|
4
4
|
/*!
|
|
5
5
|
* Bootstrap v5.3.8 (https://getbootstrap.com/)
|
|
@@ -65,8 +65,8 @@ button.svelte-10svzuv {margin:0;font-family:inherit;font-size:inherit;line-heigh
|
|
|
65
65
|
@media (min-width: 1200px) {
|
|
66
66
|
}
|
|
67
67
|
@media (min-width: 1400px) {
|
|
68
|
-
}:host {font-family:"Roboto", sans-serif;}.form-custom-control-numbers.svelte-10svzuv {width:40px;display:inline-block;padding:0px;}#controls.svelte-10svzuv {display:flex;justify-content:space-around;flex-flow:row wrap;align-items:stretch;}`};function
|
|
68
|
+
}:host {font-family:"Roboto", sans-serif;}.form-custom-control-numbers.svelte-10svzuv {width:40px;display:inline-block;padding:0px;}#controls.svelte-10svzuv {display:flex;justify-content:space-around;flex-flow:row wrap;align-items:stretch;}`};function Bn(e,t){Br(t,!0),xi(e,Ki);$t.extend(ji);let r=Bt(t,"id",7,""),s=Bt(t,"src",7,""),n=Bt(t,"track",23,()=>({maxValue:0,minValue:0})),i=Bt(t,"form",7),a=q(void 0),o=q(0),u=q(void 0),l=q(void 0),f=q(void 0),_=q(void 0),b=q(void 0),g=q(void 0),y=q(0),E=q("no"),R=q(!0),T=q(void 0),I=q(void 0),F=q(!0);Xs(()=>{i()&&N(R,!1),n()&&typeof n()=="string"&&n(JSON.parse(n())),console.log("reload all"),console.log(v(I),"log",v(o)),n()&&N(I,n().minValue<(v(I)||0)?v(I)||0:n().minValue,!0),console.log(v(I),"log2")});function le(){n().maxValue=(v(u)||0)*3600+(v(f)||0)*60+(v(b)||0),n().minValue=(v(l)||0)*3600+(v(_)||0)*60+(v(g)||0)}function ce(p,j){t.$$host.dispatchEvent(new CustomEvent(p,{detail:j}))}function z(p){v(T).currentTime=p}qn({repoName:"@htmlbricks/hb-range-slider",version:Fn.version}),qn({repoName:"@htmlbricks/hb-form",version:Fn.version});function x(p){n().minValue=p.minValue,n().maxValue=p.maxValue,v(T).currentTime=p.positionValReal,N(I,p.positionValReal,!0),A(),v(T).currentTime<n().minValue&&z(n().minValue),v(T).currentTime>n().maxValue&&z(n().maxValue),ce("changeTrackValues",{minVaule:n().minValue,maxValue:n().maxValue})}function m(){!n()||!n().minValue&&n().minValue!==0||!n().maxValue&&n().maxValue!==0||(i()?N(E,"yes"):(ce("dispatchTrack",n()),console.log(n())))}function A(){N(u,parseInt((n().maxValue/3600).toString()),!0),N(l,parseInt((n().maxValue/3600).toString()),!0),N(f,parseInt(((n().maxValue-Number(v(u))*60)/60).toString()),!0),N(_,parseInt(((n().minValue-Number(v(l))*60)/60).toString()),!0),N(b,n().maxValue-Number(v(u))*3600-Number(v(f))*60),N(g,n().minValue-Number(v(l))*3600-Number(v(_))*60)}function D(p){N(y,p.target.duration,!0),N(a,v(y),!0),(!n().maxValue||n().maxValue>v(a))&&(n().maxValue=v(a)),(!n().minValue||n().minValue<v(o))&&(n().minValue=v(o)),N(T,t.$$host?.shadowRoot?.querySelector("#video"),!0),A(),console.log("videoElement",v(T)),v(y)/5>100||v(y)/5}function k(p){switch(p){case"start":v(T).currentTime<n().maxValue&&(n().minValue=v(T).currentTime);break;case"end":v(T).currentTime>n().minValue&&(n().maxValue=v(T).currentTime);break;default:return console.error("no vaild point for cue")}A(),ce("changeTrackValues",{minVaule:n().minValue,maxValue:n().maxValue})}function B(p){console.log("formSubmit",p._valid),N(R,p._valid,!0),v(E)==="yes"&&(p._valid&&!(!n()||!n().minValue&&n().minValue!==0||!n().maxValue&&n().maxValue!==0)&&ce("dispatchTrack",Object.assign(n(),p)),console.log(n())),v(E)!=="no"&&N(E,"no")}function Z(p){N(R,p._valid,!0)}function w(){v(T).currentTime>n().maxValue?(v(T).pause(),z(n().maxValue)):v(T).currentTime<n().minValue-.01&&(v(T).pause(),z(n().minValue)),N(I,v(T).currentTime,!0)}var h={get id(){return r()},set id(p=""){r(p),ht()},get src(){return s()},set src(p=""){s(p),ht()},get track(){return n()},set track(p={maxValue:0,minValue:0}){n(p),ht()},get form(){return i()},set form(p){i(p),ht()}},c=Gi();wi("10svzuv",p=>{var j=Yi();xe(p,j)});var $=se(c),d=se($),M=se(d);nr(3),ne(d),ne($);var S=te($,2),L=se(S);{var H=p=>{var j=Bi(),je=se(j),Sr=se(je);{var Er=Vt=>{var Zt=qi(),no=se(Zt);{var so=wt=>{var Tr=Fi();xe(wt,Tr)},io=wt=>{var Tr=Hi();xe(wt,Tr)};pt(no,wt=>{v(F)?wt(so):wt(io,-1)})}ne(Zt),fe("click",Zt,()=>v(T).paused?v(T).play():v(T).pause()),xe(Vt,Zt)};pt(Sr,Vt=>{v(T)&&Vt(Er)})}ne(je);var Gn=te(je,2),et=se(Gn);In(et,"--hb-slider-background-color: red;"),Ce(()=>Ze(et,"max",v(a)?.toString?.()||"0")),Ce(()=>Ze(et,"min",v(o)?.toString?.()||"0")),Ce(()=>Ze(et,"maxval",n().maxValue?.toString?.()||"0")),Ce(()=>Ze(et,"minval",n().minValue?.toString?.()||"0")),Ce(()=>Ze(et,"position_value",v(I)?.toString()||"0")),Cn(et,1,"svelte-10svzuv"),ne(Gn),ne(j),ot("changeRangeValues",et,Vt=>{x(Vt.detail)}),xe(p,j)};pt(L,p=>{v(y)&&n()&&p(H)})}var U=te(L,2);{var X=p=>{var j=Ui();Ze(j,"hide_submit","yes"),In(j,"margin:40px auto 20px auto; display:block"),Ce(()=>Ze(j,"submitted",v(E))),Ce(()=>Ze(j,"schema",i())),Cn(j,1,"svelte-10svzuv"),ot("submit",j,je=>B(je.detail)),ot("update",j,je=>Z(je.detail)),xe(p,j)};pt(U,p=>{i()&&p(X)})}var re=te(U,2),De=se(re),Ve=se(De),Xe=te(Ve,2),pe=te(Xe,2);gt(pe);var G=te(pe,2);gt(G);var ge=te(G,2);gt(ge),nr(),ne(De);var Qe=te(De,4),Le=se(Qe);gt(Le);var Gt=te(Le,2);gt(Gt);var Kt=te(Gt,2);gt(Kt);var Un=te(Kt,2),Zi=te(Un,2);ne(Qe),ne(re),ne(S);var Wn=te(S,2),kr=se(Wn),Xi=se(kr);{var Qi=p=>{var j=bi();Ce((je,Sr,Er)=>pi(j,`duration:
|
|
69
69
|
${je??""}
|
|
70
70
|
${Sr??""}
|
|
71
|
-
${
|
|
71
|
+
${Er??""}`),[()=>$t.duration((n().maxValue-n().minValue)*1e3).hours()?$t.duration((n().maxValue-n().minValue)*1e3).format("H")+" hours":"",()=>$t.duration((n().maxValue-n().minValue)*1e3).minutes()?$t.duration((n().maxValue-n().minValue)*1e3).format("m")+" minutes":"",()=>$t.duration(parseInt(((n().maxValue-n().minValue)*1e3).toString())).format("s.SSS")+" seconds"]),xe(p,j)};pt(Xi,p=>{n()?.maxValue&&p(Qi)})}ne(kr);var Jn=te(kr,2),eo=se(Jn);{var to=p=>{var j=Wi();fe("click",j,m),xe(p,j)},ro=p=>{var j=Ji();fe("click",j,m),xe(p,j)};pt(eo,p=>{v(R)?p(to):p(ro,-1)})}return ne(Jn),ne(Wn),ne(c),Ce(()=>qt(M,"src",s())),ot("play",d,()=>N(F,!1)),ot("pause",d,()=>N(F,!0)),ot("timeupdate",d,p=>w()),ot("loadedmetadata",d,p=>D(p)),fe("click",Ve,()=>{k("start")}),fe("click",Xe,()=>{z(n().minValue)}),fe("change",pe,le),yt(pe,()=>v(l),p=>N(l,p)),fe("change",G,le),yt(G,()=>v(_),p=>N(_,p)),fe("change",ge,le),yt(ge,()=>v(g),p=>N(g,p)),fe("change",Le,le),yt(Le,()=>v(u),p=>N(u,p)),fe("change",Gt,le),yt(Gt,()=>v(f),p=>N(f,p)),fe("change",Kt,le),yt(Kt,()=>v(b),p=>N(b,p)),fe("click",Un,()=>{z(n().maxValue)}),fe("click",Zi,()=>{k("end")}),xe(e,c),Ur(h)}ci(["click","change"]),customElements.define("hb-editor-video",Ni(Bn,{id:{},src:{},track:{},form:{}},[],[],{mode:"open"})),Mr.Component=Bn,Object.defineProperty(Mr,Symbol.toStringTag,{value:"Module"})})(this["editor-video"]=this["editor-video"]||{});
|
|
72
72
|
//# sourceMappingURL=main.iife.js.map
|