@htmlbricks/hb-input-area 0.66.6 → 0.66.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/main.iife.js +5 -4
- package/main.iife.js.map +1 -1
- package/manifest.json +2 -2
- package/package.json +1 -1
package/main.iife.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
(function(bt){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const Cr=1,Mr=2,wt="[",yt="[!",$t="[?",kt="]",_e={},T=Symbol(),Et="http://www.w3.org/1999/xhtml",Lr=!1;var Pr=Array.isArray,Dr=Array.prototype.indexOf,pe=Array.prototype.includes,Ir=Array.from,Ce=Object.keys,Me=Object.defineProperty,me=Object.getOwnPropertyDescriptor,Fr=Object.getOwnPropertyDescriptors,zr=Object.prototype,Br=Array.prototype,xt=Object.getPrototypeOf,Tt=Object.isExtensible;const qr=()=>{};function Vr(e){for(var t=0;t<e.length;t++)e[t]()}function St(){var e,t,r=new Promise((n,i)=>{e=n,t=i});return{promise:r,resolve:e,reject:t}}const E=2,ge=4,Le=8,jt=1<<24,Q=16,q=32,ee=64,Ke=128,R=512,k=1024,S=2048,V=4096,H=8192,D=16384,te=32768,At=1<<25,be=65536,Nt=1<<17,Hr=1<<18,ae=1<<19,Yr=1<<20,fe=65536,We=1<<21,Je=1<<22,re=1<<23,Xe=Symbol("$state"),Ur=Symbol("legacy props"),Gr=Symbol(""),G=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},Kr=!!globalThis.document?.contentType&&globalThis.document.contentType.includes("xml"),Pe=3,De=8;function Wr(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Jr(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Xr(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Zr(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Qr(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function en(){throw new Error("https://svelte.dev/e/hydration_failed")}function tn(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function rn(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function nn(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function sn(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function Ie(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function ln(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let y=!1;function we(e){y=e}let b;function I(e){if(e===null)throw Ie(),_e;return b=e}function Ze(){return I(X(b))}function on(e){if(y){if(X(b)!==null)throw Ie(),_e;b=e}}function an(e=1){if(y){for(var t=e,r=b;t--;)r=X(r);b=r}}function Rt(e=!0){for(var t=0,r=b;;){if(r.nodeType===De){var n=r.data;if(n===kt){if(t===0)return r;t-=1}else(n===wt||n===yt||n[0]==="["&&!isNaN(Number(n.slice(1))))&&(t+=1)}var i=X(r);e&&r.remove(),r=i}}function fn(e){if(!e||e.nodeType!==De)throw Ie(),_e;return e.data}function Ot(e){return e===this.v}function un(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function cn(e){return!un(e,this.v)}let dn=!1,O=null;function ye(e){O=e}function Ct(e,t=!1,r){O={p:O,i:!1,c:null,e:null,s:e,x:null,r:p,l:null}}function Mt(e){var t=O,r=t.e;if(r!==null){t.e=null;for(var n of r)lr(n)}return e!==void 0&&(t.x=e),t.i=!0,O=t.p,e??{}}function Lt(){return!0}let ue=[];function Pt(){var e=ue;ue=[],Vr(e)}function ce(e){if(ue.length===0&&!xe){var t=ue;queueMicrotask(()=>{t===ue&&Pt()})}ue.push(e)}function hn(){for(;ue.length>0;)Pt()}function Dt(e){var t=p;if(t===null)return _.f|=re,e;if((t.f&te)===0&&(t.f&ge)===0)throw e;ne(e,t)}function ne(e,t){for(;t!==null;){if((t.f&Ke)!==0){if((t.f&te)===0)throw e;try{t.b.error(e);return}catch(r){e=r}}t=t.parent}throw e}const vn=-7169;function $(e,t){e.f=e.f&vn|t}function Qe(e){(e.f&R)!==0||e.deps===null?$(e,k):$(e,V)}function It(e){if(e!==null)for(const t of e)(t.f&E)===0||(t.f&fe)===0||(t.f^=fe,It(t.deps))}function Ft(e,t,r){(e.f&S)!==0?t.add(e):(e.f&V)!==0&&r.add(e),It(e.deps),$(e,k)}const ie=new Set;let g=null,F=null,et=null,xe=!1,tt=!1,$e=null,Fe=null;var zt=0;let _n=1;class K{id=_n++;current=new Map;previous=new Map;#e=new Set;#r=new Set;#t=new Map;#i=new Map;#s=null;#n=[];#l=new Set;#o=new Set;#a=new Map;is_fork=!1;#c=!1;#f=new Set;#d(){return this.is_fork||this.#i.size>0}#v(){for(const n of this.#f)for(const i of n.#i.keys()){for(var t=!1,r=i;r.parent!==null;){if(this.#a.has(r)){t=!0;break}r=r.parent}if(!t)return!0}return!1}skip_effect(t){this.#a.has(t)||this.#a.set(t,{d:[],m:[]})}unskip_effect(t){var r=this.#a.get(t);if(r){this.#a.delete(t);for(var n of r.d)$(n,S),this.schedule(n);for(n of r.m)$(n,V),this.schedule(n)}}#h(){if(zt++>1e3&&(ie.delete(this),pn()),!this.#d()){for(const l of this.#l)this.#o.delete(l),$(l,S),this.schedule(l);for(const l of this.#o)$(l,V),this.schedule(l)}const t=this.#n;this.#n=[],this.apply();var r=$e=[],n=[],i=Fe=[];for(const l of t)try{this.#u(l,r,n)}catch(a){throw Yt(l),a}if(g=null,i.length>0){var s=K.ensure();for(const l of i)s.schedule(l)}if($e=null,Fe=null,this.#d()||this.#v()){this.#_(n),this.#_(r);for(const[l,a]of this.#a)Ht(l,a)}else{this.#t.size===0&&ie.delete(this),this.#l.clear(),this.#o.clear();for(const l of this.#e)l(this);this.#e.clear(),Bt(n),Bt(r),this.#s?.resolve()}var o=g;if(this.#n.length>0){const l=o??=this;l.#n.push(...this.#n.filter(a=>!l.#n.includes(a)))}o!==null&&(ie.add(o),o.#h()),ie.has(this)||this.#p()}#u(t,r,n){t.f^=k;for(var i=t.first;i!==null;){var s=i.f,o=(s&(q|ee))!==0,l=o&&(s&k)!==0,a=l||(s&H)!==0||this.#a.has(i);if(!a&&i.fn!==null){o?i.f^=k:(s&ge)!==0?r.push(i):Re(i)&&((s&Q)!==0&&this.#o.add(i),ke(i));var f=i.first;if(f!==null){i=f;continue}}for(;i!==null;){var u=i.next;if(u!==null){i=u;break}i=i.parent}}}#_(t){for(var r=0;r<t.length;r+=1)Ft(t[r],this.#l,this.#o)}capture(t,r,n=!1){r!==T&&!this.previous.has(t)&&this.previous.set(t,r),(t.f&re)===0&&(this.current.set(t,[t.v,n]),F?.set(t,t.v))}activate(){g=this}deactivate(){g=null,F=null}flush(){try{tt=!0,g=this,this.#h()}finally{zt=0,et=null,$e=null,Fe=null,tt=!1,g=null,F=null,se.clear()}}discard(){for(const t of this.#r)t(this);this.#r.clear(),ie.delete(this)}#p(){for(const f of ie){var t=f.id<this.id,r=[];for(const[u,[h,d]]of this.current){if(f.current.has(u)){var n=f.current.get(u)[0];if(t&&h!==n)f.current.set(u,[h,d]);else continue}r.push(u)}var i=[...f.current.keys()].filter(u=>!this.current.has(u));if(i.length===0)t&&f.discard();else if(r.length>0){f.activate();var s=new Set,o=new Map;for(var l of r)qt(l,i,s,o);if(f.#n.length>0){f.apply();for(var a of f.#n)f.#u(a,[],[]);f.#n=[]}f.deactivate()}}for(const f of ie)f.#f.has(this)&&(f.#f.delete(this),f.#f.size===0&&!f.#d()&&(f.activate(),f.#h()))}increment(t,r){let n=this.#t.get(r)??0;if(this.#t.set(r,n+1),t){let i=this.#i.get(r)??0;this.#i.set(r,i+1)}}decrement(t,r,n){let i=this.#t.get(r)??0;if(i===1?this.#t.delete(r):this.#t.set(r,i-1),t){let s=this.#i.get(r)??0;s===1?this.#i.delete(r):this.#i.set(r,s-1)}this.#c||n||(this.#c=!0,ce(()=>{this.#c=!1,this.flush()}))}transfer_effects(t,r){for(const n of t)this.#l.add(n);for(const n of r)this.#o.add(n);t.clear(),r.clear()}oncommit(t){this.#e.add(t)}ondiscard(t){this.#r.add(t)}settled(){return(this.#s??=St()).promise}static ensure(){if(g===null){const t=g=new K;tt||(ie.add(g),xe||ce(()=>{g===t&&t.flush()}))}return g}apply(){{F=null;return}}schedule(t){if(et=t,t.b?.is_pending&&(t.f&(ge|Le|jt))!==0&&(t.f&te)===0){t.b.defer_effect(t);return}for(var r=t;r.parent!==null;){r=r.parent;var n=r.f;if($e!==null&&r===p&&(_===null||(_.f&E)===0))return;if((n&(ee|q))!==0){if((n&k)===0)return;r.f^=k}}this.#n.push(r)}}function Te(e){var t=xe;xe=!0;try{for(var r;;){if(hn(),g===null)return r;g.flush()}}finally{xe=t}}function pn(){try{Qr()}catch(e){ne(e,et)}}let W=null;function Bt(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var n=e[r++];if((n.f&(D|H))===0&&Re(n)&&(W=new Set,ke(n),n.deps===null&&n.first===null&&n.nodes===null&&n.teardown===null&&n.ac===null&&ur(n),W?.size>0)){se.clear();for(const i of W){if((i.f&(D|H))!==0)continue;const s=[i];let o=i.parent;for(;o!==null;)W.has(o)&&(W.delete(o),s.push(o)),o=o.parent;for(let l=s.length-1;l>=0;l--){const a=s[l];(a.f&(D|H))===0&&ke(a)}}W.clear()}}W=null}}function qt(e,t,r,n){if(!r.has(e)&&(r.add(e),e.reactions!==null))for(const i of e.reactions){const s=i.f;(s&E)!==0?qt(i,t,r,n):(s&(Je|Q))!==0&&(s&S)===0&&Vt(i,t,n)&&($(i,S),rt(i))}}function Vt(e,t,r){const n=r.get(e);if(n!==void 0)return n;if(e.deps!==null)for(const i of e.deps){if(pe.call(t,i))return!0;if((i.f&E)!==0&&Vt(i,t,r))return r.set(i,!0),!0}return r.set(e,!1),!1}function rt(e){g.schedule(e)}function Ht(e,t){if(!((e.f&q)!==0&&(e.f&k)!==0)){(e.f&S)!==0?t.d.push(e):(e.f&V)!==0&&t.m.push(e),$(e,k);for(var r=e.first;r!==null;)Ht(r,t),r=r.next}}function Yt(e){$(e,k);for(var t=e.first;t!==null;)Yt(t),t=t.next}function mn(e){let t=0,r=Se(0),n;return()=>{ft()&&(w(r),ut(()=>(t===0&&(n=kr(()=>e(()=>je(r)))),t+=1,()=>{ce(()=>{t-=1,t===0&&(n?.(),n=void 0,je(r))})})))}}var gn=be|ae;function bn(e,t,r,n){new wn(e,t,r,n)}class wn{parent;is_pending=!1;transform_error;#e;#r=y?b:null;#t;#i;#s;#n=null;#l=null;#o=null;#a=null;#c=0;#f=0;#d=!1;#v=new Set;#h=new Set;#u=null;#_=mn(()=>(this.#u=Se(this.#c),()=>{this.#u=null}));constructor(t,r,n,i){this.#e=t,this.#t=r,this.#i=s=>{var o=p;o.b=this,o.f|=Ke,n(s)},this.parent=p.b,this.transform_error=i??this.parent?.transform_error??(s=>s),this.#s=ar(()=>{if(y){const s=this.#r;Ze();const o=s.data===yt;if(s.data.startsWith($t)){const a=JSON.parse(s.data.slice($t.length));this.#y(a)}else o?this.#$():this.#p()}else this.#b()},gn),y&&(this.#e=b)}#p(){try{this.#n=Z(()=>this.#i(this.#e))}catch(t){this.error(t)}}#y(t){const r=this.#t.failed;r&&(this.#o=Z(()=>{r(this.#e,()=>t,()=>()=>{})}))}#$(){const t=this.#t.pending;t&&(this.is_pending=!0,this.#l=Z(()=>t(this.#e)),ce(()=>{var r=this.#a=document.createDocumentFragment(),n=le();r.append(n),this.#n=this.#g(()=>Z(()=>this.#i(n))),this.#f===0&&(this.#e.before(r),this.#a=null,Ne(this.#l,()=>{this.#l=null}),this.#m(g))}))}#b(){try{if(this.is_pending=this.has_pending_snippet(),this.#f=0,this.#c=0,this.#n=Z(()=>{this.#i(this.#e)}),this.#f>0){var t=this.#a=document.createDocumentFragment();hr(this.#n,t);const r=this.#t.pending;this.#l=Z(()=>r(this.#e))}else this.#m(g)}catch(r){this.error(r)}}#m(t){this.is_pending=!1,t.transfer_effects(this.#v,this.#h)}defer_effect(t){Ft(t,this.#v,this.#h)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#t.pending}#g(t){var r=p,n=_,i=O;U(this.#s),M(this.#s),ye(this.#s.ctx);try{return K.ensure(),t()}catch(s){return Dt(s),null}finally{U(r),M(n),ye(i)}}#w(t,r){if(!this.has_pending_snippet()){this.parent&&this.parent.#w(t,r);return}this.#f+=t,this.#f===0&&(this.#m(r),this.#l&&Ne(this.#l,()=>{this.#l=null}),this.#a&&(this.#e.before(this.#a),this.#a=null))}update_pending_count(t,r){this.#w(t,r),this.#c+=t,!(!this.#u||this.#d)&&(this.#d=!0,ce(()=>{this.#d=!1,this.#u&&Be(this.#u,this.#c)}))}get_effect_pending(){return this.#_(),w(this.#u)}error(t){var r=this.#t.onerror;let n=this.#t.failed;if(!r&&!n)throw t;this.#n&&(j(this.#n),this.#n=null),this.#l&&(j(this.#l),this.#l=null),this.#o&&(j(this.#o),this.#o=null),y&&(I(this.#r),an(),I(Rt()));var i=!1,s=!1;const o=()=>{if(i){ln();return}i=!0,s&&sn(),this.#o!==null&&Ne(this.#o,()=>{this.#o=null}),this.#g(()=>{this.#b()})},l=a=>{try{s=!0,r?.(a,o),s=!1}catch(f){ne(f,this.#s&&this.#s.parent)}n&&(this.#o=this.#g(()=>{try{return Z(()=>{var f=p;f.b=this,f.f|=Ke,n(this.#e,()=>a,()=>o)})}catch(f){return ne(f,this.#s.parent),null}}))};ce(()=>{var a;try{a=this.transform_error(t)}catch(f){ne(f,this.#s&&this.#s.parent);return}a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(l,f=>ne(f,this.#s&&this.#s.parent)):l(a)})}}function yn(e,t,r,n){const i=nt;var s=e.filter(d=>!d.settled);if(r.length===0&&s.length===0){n(t.map(i));return}var o=p,l=$n(),a=s.length===1?s[0].promise:s.length>1?Promise.all(s.map(d=>d.promise)):null;function f(d){l();try{n(d)}catch(v){(o.f&D)===0&&ne(v,o)}ze()}if(r.length===0){a.then(()=>f(t.map(i)));return}var u=Ut();function h(){Promise.all(r.map(d=>kn(d))).then(d=>f([...t.map(i),...d])).catch(d=>ne(d,o)).finally(()=>u())}a?a.then(()=>{l(),h(),ze()}):h()}function $n(){var e=p,t=_,r=O,n=g;return function(s=!0){U(e),M(t),ye(r),s&&(e.f&D)===0&&(n?.activate(),n?.apply())}}function ze(e=!0){U(null),M(null),ye(null),e&&g?.deactivate()}function Ut(){var e=p,t=e.b,r=g,n=t.is_rendered();return t.update_pending_count(1,r),r.increment(n,e),(i=!1)=>{t.update_pending_count(-1,r),r.decrement(n,e,i)}}function nt(e){var t=E|S,r=_!==null&&(_.f&E)!==0?_:null;return p!==null&&(p.f|=ae),{ctx:O,deps:null,effects:null,equals:Ot,f:t,fn:e,reactions:null,rv:0,v:T,wv:0,parent:r??p,ac:null}}function kn(e,t,r){let n=p;n===null&&Wr();var i=void 0,s=Se(T),o=!_,l=new Map;return Bn(()=>{var a=p,f=St();i=f.promise;try{Promise.resolve(e()).then(f.resolve,f.reject).finally(ze)}catch(v){f.reject(v),ze()}var u=g;if(o){if((a.f&te)!==0)var h=Ut();if(n.b.is_rendered())l.get(u)?.reject(G),l.delete(u);else{for(const v of l.values())v.reject(G);l.clear()}l.set(u,f)}const d=(v,c=void 0)=>{if(h){var m=c===G;h(m)}if(!(c===G||(a.f&D)!==0)){if(u.activate(),c)s.f|=re,Be(s,c);else{(s.f&re)!==0&&(s.f^=re),Be(s,v);for(const[x,B]of l){if(l.delete(x),x===u)break;B.reject(G)}}u.deactivate()}};f.promise.then(d,v=>d(null,v||"unknown"))}),ir(()=>{for(const a of l.values())a.reject(G)}),new Promise(a=>{function f(u){function h(){u===i?a(s):f(i)}u.then(h,h)}f(i)})}function Gt(e){const t=nt(e);return _r(t),t}function En(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)j(t[r])}}function xn(e){for(var t=e.parent;t!==null;){if((t.f&E)===0)return(t.f&D)===0?t:null;t=t.parent}return null}function it(e){var t,r=p;U(xn(e));try{e.f&=~fe,En(e),t=wr(e)}finally{U(r)}return t}function Kt(e){var t=e.v,r=it(e);if(!e.equals(r)&&(e.wv=gr(),(!g?.is_fork||e.deps===null)&&(e.v=r,g?.capture(e,t,!0),e.deps===null))){$(e,k);return}oe||(F!==null?(ft()||g?.is_fork)&&F.set(e,r):Qe(e))}function Tn(e){if(e.effects!==null)for(const t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(G),t.teardown=qr,t.ac=null,Oe(t,0),ct(t))}function Wt(e){if(e.effects!==null)for(const t of e.effects)t.teardown&&ke(t)}let st=new Set;const se=new Map;let Jt=!1;function Se(e,t){var r={f:0,v:e,reactions:null,equals:Ot,rv:0,wv:0};return r}function J(e,t){const r=Se(e);return _r(r),r}function Sn(e,t=!1,r=!0){const n=Se(e);return t||(n.equals=cn),n}function C(e,t,r=!1){_!==null&&(!z||(_.f&Nt)!==0)&&Lt()&&(_.f&(E|Q|Je|Nt))!==0&&(L===null||!pe.call(L,e))&&nn();let n=r?Ae(t):t;return Be(e,n,Fe)}function Be(e,t,r=null){if(!e.equals(t)){var n=e.v;oe?se.set(e,t):se.set(e,n),e.v=t;var i=K.ensure();if(i.capture(e,n),(e.f&E)!==0){const s=e;(e.f&S)!==0&&it(s),F===null&&Qe(s)}e.wv=gr(),Xt(e,S,r),p!==null&&(p.f&k)!==0&&(p.f&(q|ee))===0&&(P===null?Yn([e]):P.push(e)),!i.is_fork&&st.size>0&&!Jt&&jn()}return t}function jn(){Jt=!1;for(const e of st)(e.f&k)!==0&&$(e,V),Re(e)&&ke(e);st.clear()}function je(e){C(e,e.v+1)}function Xt(e,t,r){var n=e.reactions;if(n!==null)for(var i=n.length,s=0;s<i;s++){var o=n[s],l=o.f,a=(l&S)===0;if(a&&$(o,t),(l&E)!==0){var f=o;F?.delete(f),(l&fe)===0&&(l&R&&(o.f|=fe),Xt(f,V,r))}else if(a){var u=o;(l&Q)!==0&&W!==null&&W.add(u),r!==null?r.push(u):rt(u)}}}function Ae(e){if(typeof e!="object"||e===null||Xe in e)return e;const t=xt(e);if(t!==zr&&t!==Br)return e;var r=new Map,n=Pr(e),i=J(0),s=ve,o=l=>{if(ve===s)return l();var a=_,f=ve;M(null),mr(s);var u=l();return M(a),mr(f),u};return n&&r.set("length",J(e.length)),new Proxy(e,{defineProperty(l,a,f){(!("value"in f)||f.configurable===!1||f.enumerable===!1||f.writable===!1)&&tn();var u=r.get(a);return u===void 0?o(()=>{var h=J(f.value);return r.set(a,h),h}):C(u,f.value,!0),!0},deleteProperty(l,a){var f=r.get(a);if(f===void 0){if(a in l){const u=o(()=>J(T));r.set(a,u),je(i)}}else C(f,T),je(i);return!0},get(l,a,f){if(a===Xe)return e;var u=r.get(a),h=a in l;if(u===void 0&&(!h||me(l,a)?.writable)&&(u=o(()=>{var v=Ae(h?l[a]:T),c=J(v);return c}),r.set(a,u)),u!==void 0){var d=w(u);return d===T?void 0:d}return Reflect.get(l,a,f)},getOwnPropertyDescriptor(l,a){var f=Reflect.getOwnPropertyDescriptor(l,a);if(f&&"value"in f){var u=r.get(a);u&&(f.value=w(u))}else if(f===void 0){var h=r.get(a),d=h?.v;if(h!==void 0&&d!==T)return{enumerable:!0,configurable:!0,value:d,writable:!0}}return f},has(l,a){if(a===Xe)return!0;var f=r.get(a),u=f!==void 0&&f.v!==T||Reflect.has(l,a);if(f!==void 0||p!==null&&(!u||me(l,a)?.writable)){f===void 0&&(f=o(()=>{var d=u?Ae(l[a]):T,v=J(d);return v}),r.set(a,f));var h=w(f);if(h===T)return!1}return u},set(l,a,f,u){var h=r.get(a),d=a in l;if(n&&a==="length")for(var v=f;v<h.v;v+=1){var c=r.get(v+"");c!==void 0?C(c,T):v in l&&(c=o(()=>J(T)),r.set(v+"",c))}if(h===void 0)(!d||me(l,a)?.writable)&&(h=o(()=>J(void 0)),C(h,Ae(f)),r.set(a,h));else{d=h.v!==T;var m=o(()=>Ae(f));C(h,m)}var x=Reflect.getOwnPropertyDescriptor(l,a);if(x?.set&&x.set.call(u,f),!d){if(n&&typeof a=="string"){var B=r.get("length"),Ee=Number(a);Number.isInteger(Ee)&&Ee>=B.v&&C(B,Ee+1)}je(i)}return!0},ownKeys(l){w(i);var a=Reflect.ownKeys(l).filter(h=>{var d=r.get(h);return d===void 0||d.v!==T});for(var[f,u]of r)u.v!==T&&!(f in l)&&a.push(f);return a},setPrototypeOf(){rn()}})}var Zt,Qt,er,tr;function lt(){if(Zt===void 0){Zt=window,Qt=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;er=me(t,"firstChild").get,tr=me(t,"nextSibling").get,Tt(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),Tt(r)&&(r.__t=void 0)}}function le(e=""){return document.createTextNode(e)}function de(e){return er.call(e)}function X(e){return tr.call(e)}function An(e,t){if(!y)return de(e);var r=de(b);if(r===null)r=b.appendChild(le());else if(r.nodeType!==Pe){var n=le();return r?.before(n),I(n),n}return at(r),I(r),r}function Nn(e,t=!1){if(!y){var r=de(e);return r instanceof Comment&&r.data===""?X(r):r}if(t){if(b?.nodeType!==Pe){var n=le();return b?.before(n),I(n),n}at(b)}return b}function Rn(e,t=1,r=!1){let n=y?b:e;for(var i;t--;)i=n,n=X(n);if(!y)return n;if(r){if(n?.nodeType!==Pe){var s=le();return n===null?i?.after(s):n.before(s),I(s),s}at(n)}return I(n),n}function rr(e){e.textContent=""}function On(){return!1}function ot(e,t,r){return document.createElementNS(Et,e,void 0)}function at(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===Pe;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function Cn(e){y&&de(e)!==null&&rr(e)}let nr=!1;function Mn(){nr||(nr=!0,document.addEventListener("reset",e=>{Promise.resolve().then(()=>{if(!e.defaultPrevented)for(const t of e.target.elements)t.__on_r?.()})},{capture:!0}))}function qe(e){var t=_,r=p;M(null),U(null);try{return e()}finally{M(t),U(r)}}function Ln(e,t,r,n=r){e.addEventListener(t,()=>qe(r));const i=e.__on_r;i?e.__on_r=()=>{i(),n(!0)}:e.__on_r=()=>n(!0),Mn()}function Pn(e){p===null&&(_===null&&Zr(),Xr()),oe&&Jr()}function Dn(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function Y(e,t){var r=p;r!==null&&(r.f&H)!==0&&(e|=H);var n={ctx:O,deps:null,nodes:null,f:e|S|R,first:null,fn:t,last:null,next:null,parent:r,b:r&&r.b,prev:null,teardown:null,wv:0,ac:null},i=n;if((e&ge)!==0)$e!==null?$e.push(n):K.ensure().schedule(n);else if(t!==null){try{ke(n)}catch(o){throw j(n),o}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&(i.f&ae)===0&&(i=i.first,(e&Q)!==0&&(e&be)!==0&&i!==null&&(i.f|=be))}if(i!==null&&(i.parent=r,r!==null&&Dn(i,r),_!==null&&(_.f&E)!==0&&(e&ee)===0)){var s=_;(s.effects??=[]).push(i)}return n}function ft(){return _!==null&&!z}function ir(e){const t=Y(Le,null);return $(t,k),t.teardown=e,t}function sr(e){Pn();var t=p.f,r=!_&&(t&q)!==0&&(t&te)===0;if(r){var n=O;(n.e??=[]).push(e)}else return lr(e)}function lr(e){return Y(ge|Yr,e)}function In(e){K.ensure();const t=Y(ee|ae,e);return()=>{j(t)}}function Fn(e){K.ensure();const t=Y(ee|ae,e);return(r={})=>new Promise(n=>{r.outro?Ne(t,()=>{j(t),n(void 0)}):(j(t),n(void 0))})}function zn(e){return Y(ge,e)}function Bn(e){return Y(Je|ae,e)}function ut(e,t=0){return Y(Le|t,e)}function or(e,t=[],r=[],n=[]){yn(n,t,r,i=>{Y(Le,()=>e(...i.map(w)))})}function ar(e,t=0){var r=Y(Q|t,e);return r}function Z(e){return Y(q|ae,e)}function fr(e){var t=e.teardown;if(t!==null){const r=oe,n=_;vr(!0),M(null);try{t.call(null)}finally{vr(r),M(n)}}}function ct(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const i=r.ac;i!==null&&qe(()=>{i.abort(G)});var n=r.next;(r.f&ee)!==0?r.parent=null:j(r,t),r=n}}function qn(e){for(var t=e.first;t!==null;){var r=t.next;(t.f&q)===0&&j(t),t=r}}function j(e,t=!0){var r=!1;(t||(e.f&Hr)!==0)&&e.nodes!==null&&e.nodes.end!==null&&(Vn(e.nodes.start,e.nodes.end),r=!0),$(e,At),ct(e,t&&!r),Oe(e,0);var n=e.nodes&&e.nodes.t;if(n!==null)for(const s of n)s.stop();fr(e),e.f^=At,e.f|=D;var i=e.parent;i!==null&&i.first!==null&&ur(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function Vn(e,t){for(;e!==null;){var r=e===t?null:X(e);e.remove(),e=r}}function ur(e){var t=e.parent,r=e.prev,n=e.next;r!==null&&(r.next=n),n!==null&&(n.prev=r),t!==null&&(t.first===e&&(t.first=n),t.last===e&&(t.last=r))}function Ne(e,t,r=!0){var n=[];cr(e,n,!0);var i=()=>{r&&j(e),t&&t()},s=n.length;if(s>0){var o=()=>--s||i();for(var l of n)l.out(o)}else i()}function cr(e,t,r){if((e.f&H)===0){e.f^=H;var n=e.nodes&&e.nodes.t;if(n!==null)for(const l of n)(l.is_global||r)&&t.push(l);for(var i=e.first;i!==null;){var s=i.next,o=(i.f&be)!==0||(i.f&q)!==0&&(e.f&Q)!==0;cr(i,t,o?r:!1),i=s}}}function Hn(e){dr(e,!0)}function dr(e,t){if((e.f&H)!==0){e.f^=H,(e.f&k)===0&&($(e,S),K.ensure().schedule(e));for(var r=e.first;r!==null;){var n=r.next,i=(r.f&be)!==0||(r.f&q)!==0;dr(r,i?t:!1),r=n}var s=e.nodes&&e.nodes.t;if(s!==null)for(const o of s)(o.is_global||t)&&o.in()}}function hr(e,t){if(e.nodes)for(var r=e.nodes.start,n=e.nodes.end;r!==null;){var i=r===n?null:X(r);t.append(r),r=i}}let Ve=!1,oe=!1;function vr(e){oe=e}let _=null,z=!1;function M(e){_=e}let p=null;function U(e){p=e}let L=null;function _r(e){_!==null&&(L===null?L=[e]:L.push(e))}let A=null,N=0,P=null;function Yn(e){P=e}let pr=1,he=0,ve=he;function mr(e){ve=e}function gr(){return++pr}function Re(e){var t=e.f;if((t&S)!==0)return!0;if(t&E&&(e.f&=~fe),(t&V)!==0){for(var r=e.deps,n=r.length,i=0;i<n;i++){var s=r[i];if(Re(s)&&Kt(s),s.wv>e.wv)return!0}(t&R)!==0&&F===null&&$(e,k)}return!1}function br(e,t,r=!0){var n=e.reactions;if(n!==null&&!(L!==null&&pe.call(L,e)))for(var i=0;i<n.length;i++){var s=n[i];(s.f&E)!==0?br(s,t,!1):t===s&&(r?$(s,S):(s.f&k)!==0&&$(s,V),rt(s))}}function wr(e){var t=A,r=N,n=P,i=_,s=L,o=O,l=z,a=ve,f=e.f;A=null,N=0,P=null,_=(f&(q|ee))===0?e:null,L=null,ye(e.ctx),z=!1,ve=++he,e.ac!==null&&(qe(()=>{e.ac.abort(G)}),e.ac=null);try{e.f|=We;var u=e.fn,h=u();e.f|=te;var d=e.deps,v=g?.is_fork;if(A!==null){var c;if(v||Oe(e,N),d!==null&&N>0)for(d.length=N+A.length,c=0;c<A.length;c++)d[N+c]=A[c];else e.deps=d=A;if(ft()&&(e.f&R)!==0)for(c=N;c<d.length;c++)(d[c].reactions??=[]).push(e)}else!v&&d!==null&&N<d.length&&(Oe(e,N),d.length=N);if(Lt()&&P!==null&&!z&&d!==null&&(e.f&(E|V|S))===0)for(c=0;c<P.length;c++)br(P[c],e);if(i!==null&&i!==e){if(he++,i.deps!==null)for(let m=0;m<r;m+=1)i.deps[m].rv=he;if(t!==null)for(const m of t)m.rv=he;P!==null&&(n===null?n=P:n.push(...P))}return(e.f&re)!==0&&(e.f^=re),h}catch(m){return Dt(m)}finally{e.f^=We,A=t,N=r,P=n,_=i,L=s,ye(o),z=l,ve=a}}function Un(e,t){let r=t.reactions;if(r!==null){var n=Dr.call(r,e);if(n!==-1){var i=r.length-1;i===0?r=t.reactions=null:(r[n]=r[i],r.pop())}}if(r===null&&(t.f&E)!==0&&(A===null||!pe.call(A,t))){var s=t;(s.f&R)!==0&&(s.f^=R,s.f&=~fe),Qe(s),Tn(s),Oe(s,0)}}function Oe(e,t){var r=e.deps;if(r!==null)for(var n=t;n<r.length;n++)Un(e,r[n])}function ke(e){var t=e.f;if((t&D)===0){$(e,k);var r=p,n=Ve;p=e,Ve=!0;try{(t&(Q|jt))!==0?qn(e):ct(e),fr(e);var i=wr(e);e.teardown=typeof i=="function"?i:null,e.wv=pr;var s;Lr&&dn&&(e.f&S)!==0&&e.deps}finally{Ve=n,p=r}}}async function Gn(){await Promise.resolve(),Te()}function w(e){var t=e.f,r=(t&E)!==0;if(_!==null&&!z){var n=p!==null&&(p.f&D)!==0;if(!n&&(L===null||!pe.call(L,e))){var i=_.deps;if((_.f&We)!==0)e.rv<he&&(e.rv=he,A===null&&i!==null&&i[N]===e?N++:A===null?A=[e]:A.push(e));else{(_.deps??=[]).push(e);var s=e.reactions;s===null?e.reactions=[_]:pe.call(s,_)||s.push(_)}}}if(oe&&se.has(e))return se.get(e);if(r){var o=e;if(oe){var l=o.v;return((o.f&k)===0&&o.reactions!==null||$r(o))&&(l=it(o)),se.set(o,l),l}var a=(o.f&R)===0&&!z&&_!==null&&(Ve||(_.f&R)!==0),f=(o.f&te)===0;Re(o)&&(a&&(o.f|=R),Kt(o)),a&&!f&&(Wt(o),yr(o))}if(F?.has(e))return F.get(e);if((e.f&re)!==0)throw e.v;return e.v}function yr(e){if(e.f|=R,e.deps!==null)for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&E)!==0&&(t.f&R)===0&&(Wt(t),yr(t))}function $r(e){if(e.v===T)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(se.has(t)||(t.f&E)!==0&&$r(t))return!0;return!1}function kr(e){var t=z;try{return z=!0,e()}finally{z=t}}const He=Symbol("events"),Kn=new Set,Er=new Set;function Wn(e,t,r,n={}){function i(s){if(n.capture||dt.call(t,s),!s.cancelBubble)return qe(()=>r?.call(this,s))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?ce(()=>{t.addEventListener(e,i,n)}):t.addEventListener(e,i,n),i}function Jn(e,t,r,n,i){var s={capture:n,passive:i},o=Wn(e,t,r,s);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&ir(()=>{t.removeEventListener(e,o,s)})}let xr=null;function dt(e){var t=this,r=t.ownerDocument,n=e.type,i=e.composedPath?.()||[],s=i[0]||e.target;xr=e;var o=0,l=xr===e&&e[He];if(l){var a=i.indexOf(l);if(a!==-1&&(t===document||t===window)){e[He]=t;return}var f=i.indexOf(t);if(f===-1)return;a<=f&&(o=a)}if(s=i[o]||e.target,s!==t){Me(e,"currentTarget",{configurable:!0,get(){return s||r}});var u=_,h=p;M(null),U(null);try{for(var d,v=[];s!==null;){var c=s.assignedSlot||s.parentNode||s.host||null;try{var m=s[He]?.[n];m!=null&&(!s.disabled||e.target===s)&&m.call(s,e)}catch(x){d?v.push(x):d=x}if(e.cancelBubble||c===t||c===null)break;s=c}if(d){for(let x of v)queueMicrotask(()=>{throw x});throw d}}finally{e[He]=t,delete e.currentTarget,M(u),U(h)}}}const Xn=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:e=>e});function Zn(e){return Xn?.createHTML(e)??e}function Qn(e){var t=ot("template");return t.innerHTML=Zn(e.replaceAll("<!>","<!---->")),t.content}function Ye(e,t){var r=p;r.nodes===null&&(r.nodes={start:e,end:t,a:null,t:null})}function Tr(e,t){var r=(t&Cr)!==0,n=(t&Mr)!==0,i,s=!e.startsWith("<!>");return()=>{if(y)return Ye(b,null),b;i===void 0&&(i=Qn(s?e:"<!>"+e),r||(i=de(i)));var o=n||Qt?document.importNode(i,!0):i.cloneNode(!0);if(r){var l=de(o),a=o.lastChild;Ye(l,a)}else Ye(o,o);return o}}function ht(e,t){if(y){var r=p;((r.f&te)===0||r.nodes.end===null)&&(r.nodes.end=b),Ze();return}e!==null&&e.before(t)}const ei=["touchstart","touchmove"];function ti(e){return ei.includes(e)}function ri(e,t){var r=t==null?"":typeof t=="object"?`${t}`:t;r!==(e.__t??=e.nodeValue)&&(e.__t=r,e.nodeValue=`${r}`)}function Sr(e,t){return jr(e,t)}function ni(e,t){lt(),t.intro=t.intro??!1;const r=t.target,n=y,i=b;try{for(var s=de(r);s&&(s.nodeType!==De||s.data!==wt);)s=X(s);if(!s)throw _e;we(!0),I(s);const o=jr(e,{...t,anchor:s});return we(!1),o}catch(o){if(o instanceof Error&&o.message.split(`
|
|
2
|
-
`).some(
|
|
1
|
+
(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`}),typeof window<`u`&&((window.__svelte??={}).v??=new Set).add(`5`);var t={},n=Symbol(),r=`http://www.w3.org/1999/xhtml`,i=Array.isArray,a=Array.prototype.indexOf,o=Array.prototype.includes,s=Array.from,c=Object.keys,l=Object.defineProperty,u=Object.getOwnPropertyDescriptor,d=Object.getOwnPropertyDescriptors,f=Object.prototype,p=Array.prototype,m=Object.getPrototypeOf,h=Object.isExtensible,ee=()=>{};function te(e){for(var t=0;t<e.length;t++)e[t]()}function g(){var e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}var _=1024,v=2048,y=4096,ne=8192,re=16384,ie=32768,ae=1<<25,oe=65536,se=1<<19,ce=1<<20,le=65536,ue=1<<21,de=1<<22,fe=1<<23,pe=Symbol(`$state`),me=Symbol(`legacy props`),he=Symbol(``),b=new class extends Error{name=`StaleReactionError`;message="The reaction that called `getAbortSignal()` was re-run or destroyed"},ge=!!globalThis.document?.contentType&&globalThis.document.contentType.includes(`xml`);function _e(){throw Error(`https://svelte.dev/e/async_derived_orphan`)}function ve(e){throw Error(`https://svelte.dev/e/effect_in_teardown`)}function ye(){throw Error(`https://svelte.dev/e/effect_in_unowned_derived`)}function be(e){throw Error(`https://svelte.dev/e/effect_orphan`)}function xe(){throw Error(`https://svelte.dev/e/effect_update_depth_exceeded`)}function Se(){throw Error(`https://svelte.dev/e/hydration_failed`)}function Ce(e){throw Error(`https://svelte.dev/e/props_invalid_value`)}function we(){throw Error(`https://svelte.dev/e/state_descriptors_fixed`)}function Te(){throw Error(`https://svelte.dev/e/state_prototype_fixed`)}function Ee(){throw Error(`https://svelte.dev/e/state_unsafe_mutation`)}function De(){throw Error(`https://svelte.dev/e/svelte_boundary_reset_onerror`)}function Oe(e){console.warn(`https://svelte.dev/e/hydration_mismatch`)}function ke(){console.warn(`https://svelte.dev/e/svelte_boundary_reset_noop`)}var x=!1;function Ae(e){x=e}var S;function C(e){if(e===null)throw Oe(),t;return S=e}function je(){return C(R(S))}function Me(e){if(x){if(R(S)!==null)throw Oe(),t;S=e}}function Ne(e=1){if(x){for(var t=e,n=S;t--;)n=R(n);S=n}}function Pe(e=!0){for(var t=0,n=S;;){if(n.nodeType===8){var r=n.data;if(r===`]`){if(t===0)return n;--t}else (r===`[`||r===`[!`||r[0]===`[`&&!isNaN(Number(r.slice(1))))&&(t+=1)}var i=R(n);e&&n.remove(),n=i}}function Fe(e){if(!e||e.nodeType!==8)throw Oe(),t;return e.data}function Ie(e){return e===this.v}function Le(e,t){return e==e?e!==t||typeof e==`object`&&!!e||typeof e==`function`:t==t}function Re(e){return!Le(e,this.v)}var w=!1,ze=!1,T=null;function Be(e){T=e}function Ve(e,t=!1,n){T={p:T,i:!1,c:null,e:null,s:e,x:null,r:K,l:ze&&!t?{s:null,u:null,$:[]}:null}}function He(e){var t=T,n=t.e;if(n!==null){t.e=null;for(var r of n)mn(r)}return e!==void 0&&(t.x=e),t.i=!0,T=t.p,e??{}}function Ue(){return!ze||T!==null&&T.l===null}var E=[];function We(){var e=E;E=[],te(e)}function Ge(e){if(E.length===0&&!rt){var t=E;queueMicrotask(()=>{t===E&&We()})}E.push(e)}function Ke(){for(;E.length>0;)We()}function qe(e){var t=K;if(t===null)return U.f|=fe,e;if(!(t.f&32768)&&!(t.f&4))throw e;D(e,t)}function D(e,t){for(;t!==null;){if(t.f&128){if(!(t.f&32768))throw e;try{t.b.error(e);return}catch(t){e=t}}t=t.parent}throw e}var Je=~(v|y|_);function O(e,t){e.f=e.f&Je|t}function Ye(e){e.f&512||e.deps===null?O(e,_):O(e,y)}function Xe(e){if(e!==null)for(let t of e)!(t.f&2)||!(t.f&65536)||(t.f^=le,Xe(t.deps))}function Ze(e,t,n){e.f&2048?t.add(e):e.f&4096&&n.add(e),Xe(e.deps),O(e,_)}var Qe=!1,$e=!1;function et(e){var t=$e;try{return $e=!1,[e(),$e]}finally{$e=t}}var k=new Set,A=null,tt=null,j=null,nt=null,rt=!1,it=!1,at=null,ot=null,st=0,ct=1,lt=class e{id=ct++;current=new Map;previous=new Map;#e=new Set;#t=new Set;#n=new Map;#r=new Map;#i=null;#a=[];#o=new Set;#s=new Set;#c=new Map;is_fork=!1;#l=!1;#u=new Set;#d(){return this.is_fork||this.#r.size>0}#f(){for(let n of this.#u)for(let r of n.#r.keys()){for(var e=!1,t=r;t.parent!==null;){if(this.#c.has(t)){e=!0;break}t=t.parent}if(!e)return!0}return!1}skip_effect(e){this.#c.has(e)||this.#c.set(e,{d:[],m:[]})}unskip_effect(e){var t=this.#c.get(e);if(t){this.#c.delete(e);for(var n of t.d)O(n,v),this.schedule(n);for(n of t.m)O(n,y),this.schedule(n)}}#p(){if(st++>1e3&&(k.delete(this),dt()),!this.#d()){for(let e of this.#o)this.#s.delete(e),O(e,v),this.schedule(e);for(let e of this.#s)O(e,y),this.schedule(e)}let t=this.#a;this.#a=[],this.apply();var n=at=[],r=[],i=ot=[];for(let e of t)try{this.#m(e,n,r)}catch(t){throw _t(e),t}if(A=null,i.length>0){var a=e.ensure();for(let e of i)a.schedule(e)}if(at=null,ot=null,this.#d()||this.#f()){this.#h(r),this.#h(n);for(let[e,t]of this.#c)gt(e,t)}else{this.#n.size===0&&k.delete(this),this.#o.clear(),this.#s.clear();for(let e of this.#e)e(this);this.#e.clear(),tt=this,ft(r),ft(n),tt=null,this.#i?.resolve()}var o=A;if(this.#a.length>0){let e=o??=this;e.#a.push(...this.#a.filter(t=>!e.#a.includes(t)))}o!==null&&(k.add(o),o.#p()),k.has(this)||this.#g()}#m(e,t,n){e.f^=_;for(var r=e.first;r!==null;){var i=r.f,a=(i&96)!=0;if(!(a&&i&1024||i&8192||this.#c.has(r))&&r.fn!==null){a?r.f^=_:i&4?t.push(r):w&&i&16777224?n.push(r):Vn(r)&&(i&16&&this.#s.add(r),Kn(r));var o=r.first;if(o!==null){r=o;continue}}for(;r!==null;){var s=r.next;if(s!==null){r=s;break}r=r.parent}}}#h(e){for(var t=0;t<e.length;t+=1)Ze(e[t],this.#o,this.#s)}capture(e,t,r=!1){t!==n&&!this.previous.has(e)&&this.previous.set(e,t),e.f&8388608||(this.current.set(e,[e.v,r]),j?.set(e,e.v))}activate(){A=this}deactivate(){A=null,j=null}flush(){try{it=!0,A=this,this.#p()}finally{st=0,nt=null,at=null,ot=null,it=!1,A=null,j=null,N.clear()}}discard(){for(let e of this.#t)e(this);this.#t.clear(),k.delete(this)}#g(){for(let c of k){var e=c.id<this.id,t=[];for(let[r,[i,a]]of this.current){if(c.current.has(r)){var n=c.current.get(r)[0];if(e&&i!==n)c.current.set(r,[i,a]);else continue}t.push(r)}var r=[...c.current.keys()].filter(e=>!this.current.has(e));if(r.length===0)e&&c.discard();else if(t.length>0){c.activate();var i=new Set,a=new Map;for(var o of t)pt(o,r,i,a);if(c.#a.length>0){c.apply();for(var s of c.#a)c.#m(s,[],[]);c.#a=[]}c.deactivate()}}for(let e of k)e.#u.has(this)&&(e.#u.delete(this),e.#u.size===0&&!e.#d()&&(e.activate(),e.#p()))}increment(e,t){let n=this.#n.get(t)??0;if(this.#n.set(t,n+1),e){let e=this.#r.get(t)??0;this.#r.set(t,e+1)}}decrement(e,t,n){let r=this.#n.get(t)??0;if(r===1?this.#n.delete(t):this.#n.set(t,r-1),e){let e=this.#r.get(t)??0;e===1?this.#r.delete(t):this.#r.set(t,e-1)}this.#l||n||(this.#l=!0,Ge(()=>{this.#l=!1,this.flush()}))}transfer_effects(e,t){for(let t of e)this.#o.add(t);for(let e of t)this.#s.add(e);e.clear(),t.clear()}oncommit(e){this.#e.add(e)}ondiscard(e){this.#t.add(e)}settled(){return(this.#i??=g()).promise}static ensure(){if(A===null){let t=A=new e;it||(k.add(A),rt||Ge(()=>{A===t&&t.flush()}))}return A}apply(){if(!w||!this.is_fork&&k.size===1){j=null;return}j=new Map;for(let[e,[t]]of this.current)j.set(e,t);for(let n of k)if(!(n===this||n.is_fork)){var e=!1,t=!1;if(n.id<this.id)for(let[r,[,i]]of n.current)i||(e||=this.current.has(r),t||=!this.current.has(r));if(e&&t)this.#u.add(n);else for(let[e,t]of n.previous)j.has(e)||j.set(e,t)}}schedule(e){if(nt=e,e.b?.is_pending&&e.f&16777228&&!(e.f&32768)){e.b.defer_effect(e);return}for(var t=e;t.parent!==null;){t=t.parent;var n=t.f;if(at!==null&&t===K&&(w||(U===null||!(U.f&2))&&!Qe))return;if(n&96){if(!(n&1024))return;t.f^=_}}this.#a.push(t)}};function ut(e){var t=rt;rt=!0;try{var n;for(e&&(A!==null&&!A.is_fork&&A.flush(),n=e());;){if(Ke(),A===null)return n;A.flush()}}finally{rt=t}}function dt(){try{xe()}catch(e){D(e,nt)}}var M=null;function ft(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if(!(r.f&24576)&&Vn(r)&&(M=new Set,Kn(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&En(r),M?.size>0)){N.clear();for(let e of M){if(e.f&24576)continue;let t=[e],n=e.parent;for(;n!==null;)M.has(n)&&(M.delete(n),t.push(n)),n=n.parent;for(let e=t.length-1;e>=0;e--){let n=t[e];n.f&24576||Kn(n)}}M.clear()}}M=null}}function pt(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(let i of e.reactions){let e=i.f;e&2?pt(i,t,n,r):e&4194320&&!(e&2048)&&mt(i,t,r)&&(O(i,v),ht(i))}}function mt(e,t,n){let r=n.get(e);if(r!==void 0)return r;if(e.deps!==null)for(let r of e.deps){if(o.call(t,r))return!0;if(r.f&2&&mt(r,t,n))return n.set(r,!0),!0}return n.set(e,!1),!1}function ht(e){A.schedule(e)}function gt(e,t){if(!(e.f&32&&e.f&1024)){e.f&2048?t.d.push(e):e.f&4096&&t.m.push(e),O(e,_);for(var n=e.first;n!==null;)gt(n,t),n=n.next}}function _t(e){O(e,_);for(var t=e.first;t!==null;)_t(t),t=t.next}function vt(e){let t=0,n=Rt(0),r;return()=>{dn()&&($(n),yn(()=>(t===0&&(r=Xn(()=>e(()=>Ht(n)))),t+=1,()=>{Ge(()=>{--t,t===0&&(r?.(),r=void 0,Ht(n))})})))}}var yt=oe|se;function bt(e,t,n,r){new xt(e,t,n,r)}var xt=class{parent;is_pending=!1;transform_error;#e;#t=x?S:null;#n;#r;#i;#a=null;#o=null;#s=null;#c=null;#l=0;#u=0;#d=!1;#f=new Set;#p=new Set;#m=null;#h=vt(()=>(this.#m=Rt(this.#l),()=>{this.#m=null}));constructor(e,t,n,r){this.#e=e,this.#n=t,this.#r=e=>{var t=K;t.b=this,t.f|=128,n(e)},this.parent=K.b,this.transform_error=r??this.parent?.transform_error??(e=>e),this.#i=xn(()=>{if(x){let e=this.#t;je();let t=e.data===`[!`;if(e.data.startsWith(`[?`)){let t=JSON.parse(e.data.slice(2));this.#_(t)}else t?this.#v():this.#g()}else this.#y()},yt),x&&(this.#e=S)}#g(){try{this.#a=B(()=>this.#r(this.#e))}catch(e){this.error(e)}}#_(e){let t=this.#n.failed;t&&(this.#s=B(()=>{t(this.#e,()=>e,()=>()=>{})}))}#v(){let e=this.#n.pending;e&&(this.is_pending=!0,this.#o=B(()=>e(this.#e)),Ge(()=>{var e=this.#c=document.createDocumentFragment(),t=I();e.append(t),this.#a=this.#x(()=>B(()=>this.#r(t))),this.#u===0&&(this.#e.before(e),this.#c=null,Dn(this.#o,()=>{this.#o=null}),this.#b(A))}))}#y(){try{if(this.is_pending=this.has_pending_snippet(),this.#u=0,this.#l=0,this.#a=B(()=>{this.#r(this.#e)}),this.#u>0){var e=this.#c=document.createDocumentFragment();jn(this.#a,e);let t=this.#n.pending;this.#o=B(()=>t(this.#e))}else this.#b(A)}catch(e){this.error(e)}}#b(e){this.is_pending=!1,e.transfer_effects(this.#f,this.#p)}defer_effect(e){Ze(e,this.#f,this.#p)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#n.pending}#x(e){var t=K,n=U,r=T;q(this.#i),G(this.#i),Be(this.#i.ctx);try{return lt.ensure(),e()}catch(e){return qe(e),null}finally{q(t),G(n),Be(r)}}#S(e,t){if(!this.has_pending_snippet()){this.parent&&this.parent.#S(e,t);return}this.#u+=e,this.#u===0&&(this.#b(t),this.#o&&Dn(this.#o,()=>{this.#o=null}),this.#c&&=(this.#e.before(this.#c),null))}update_pending_count(e,t){this.#S(e,t),this.#l+=e,!(!this.#m||this.#d)&&(this.#d=!0,Ge(()=>{this.#d=!1,this.#m&&Bt(this.#m,this.#l)}))}get_effect_pending(){return this.#h(),$(this.#m)}error(e){var t=this.#n.onerror;let n=this.#n.failed;if(!t&&!n)throw e;this.#a&&=(V(this.#a),null),this.#o&&=(V(this.#o),null),this.#s&&=(V(this.#s),null),x&&(C(this.#t),Ne(),C(Pe()));var r=!1,i=!1;let a=()=>{if(r){ke();return}r=!0,i&&De(),this.#s!==null&&Dn(this.#s,()=>{this.#s=null}),this.#x(()=>{this.#y()})},o=e=>{try{i=!0,t?.(e,a),i=!1}catch(e){D(e,this.#i&&this.#i.parent)}n&&(this.#s=this.#x(()=>{try{return B(()=>{var t=K;t.b=this,t.f|=128,n(this.#e,()=>e,()=>a)})}catch(e){return D(e,this.#i.parent),null}}))};Ge(()=>{var t;try{t=this.transform_error(e)}catch(e){D(e,this.#i&&this.#i.parent);return}typeof t==`object`&&t&&typeof t.then==`function`?t.then(o,e=>D(e,this.#i&&this.#i.parent)):o(t)})}};function St(e,t,n,r){let i=Ue()?Et:kt;var a=e.filter(e=>!e.settled);if(n.length===0&&a.length===0){r(t.map(i));return}var o=K,s=Ct(),c=a.length===1?a[0].promise:a.length>1?Promise.all(a.map(e=>e.promise)):null;function l(e){s();try{r(e)}catch(e){o.f&16384||D(e,o)}wt()}if(n.length===0){c.then(()=>l(t.map(i)));return}var u=Tt();function d(){Promise.all(n.map(e=>Dt(e))).then(e=>l([...t.map(i),...e])).catch(e=>D(e,o)).finally(()=>u())}c?c.then(()=>{s(),d(),wt()}):d()}function Ct(){var e=K,t=U,n=T,r=A;return function(i=!0){q(e),G(t),Be(n),i&&!(e.f&16384)&&(r?.activate(),r?.apply())}}function wt(e=!0){q(null),G(null),Be(null),e&&A?.deactivate()}function Tt(){var e=K,t=e.b,n=A,r=t.is_rendered();return t.update_pending_count(1,n),n.increment(r,e),(i=!1)=>{t.update_pending_count(-1,n),n.decrement(r,e,i)}}function Et(e){var t=2|v,r=U!==null&&U.f&2?U:null;return K!==null&&(K.f|=se),{ctx:T,deps:null,effects:null,equals:Ie,f:t,fn:e,reactions:null,rv:0,v:n,wv:0,parent:r??K,ac:null}}function Dt(e,t,r){let i=K;i===null&&_e();var a=void 0,o=Rt(n),s=!U,c=new Map;return vn(()=>{var t=K,n=g();a=n.promise;try{Promise.resolve(e()).then(n.resolve,n.reject).finally(wt)}catch(e){n.reject(e),wt()}var r=A;if(s){if(t.f&32768)var l=Tt();if(i.b.is_rendered())c.get(r)?.reject(b),c.delete(r);else{for(let e of c.values())e.reject(b);c.clear()}c.set(r,n)}let u=(e,n=void 0)=>{if(l&&l(n===b),!(n===b||t.f&16384)){if(r.activate(),n)o.f|=fe,Bt(o,n);else{o.f&8388608&&(o.f^=fe),Bt(o,e);for(let[e,t]of c){if(c.delete(e),e===r)break;t.reject(b)}}r.deactivate()}};n.promise.then(u,e=>u(null,e||`unknown`))}),fn(()=>{for(let e of c.values())e.reject(b)}),new Promise(e=>{function t(n){function r(){n===a?e(o):t(a)}n.then(r,r)}t(a)})}function Ot(e){let t=Et(e);return w||Fn(t),t}function kt(e){let t=Et(e);return t.equals=Re,t}function At(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)V(t[n])}}function jt(e){for(var t=e.parent;t!==null;){if(!(t.f&2))return t.f&16384?null:t;t=t.parent}return null}function Mt(e){var t,n=K;q(jt(e));try{e.f&=~le,At(e),t=Un(e)}finally{q(n)}return t}function Nt(e){var t=e.v,n=Mt(e);if(!e.equals(n)&&(e.wv=Bn(),(!A?.is_fork||e.deps===null)&&(e.v=n,A?.capture(e,t,!0),e.deps===null))){O(e,_);return}H||(j===null?Ye(e):(dn()||A?.is_fork)&&j.set(e,n))}function Pt(e){if(e.effects!==null)for(let t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(b),t.teardown=ee,t.ac=null,Gn(t,0),Cn(t))}function Ft(e){if(e.effects!==null)for(let t of e.effects)t.teardown&&Kn(t)}var It=new Set,N=new Map,Lt=!1;function Rt(e,t){return{f:0,v:e,reactions:null,equals:Ie,rv:0,wv:0}}function P(e,t){let n=Rt(e,t);return Fn(n),n}function zt(e,t=!1,n=!0){let r=Rt(e);return t||(r.equals=Re),ze&&n&&T!==null&&T.l!==null&&(T.l.s??=[]).push(r),r}function F(e,t,n=!1){return U!==null&&(!W||U.f&131072)&&Ue()&&U.f&4325394&&(J===null||!o.call(J,e))&&Ee(),Bt(e,n?Wt(t):t,ot)}function Bt(e,t,n=null){if(!e.equals(t)){var r=e.v;H?N.set(e,t):N.set(e,r),e.v=t;var i=lt.ensure();if(i.capture(e,r),e.f&2){let t=e;e.f&2048&&Mt(t),j===null&&Ye(t)}e.wv=Bn(),Ut(e,v,n),Ue()&&K!==null&&K.f&1024&&!(K.f&96)&&(Z===null?In([e]):Z.push(e)),!i.is_fork&&It.size>0&&!Lt&&Vt()}return t}function Vt(){Lt=!1;for(let e of It)e.f&1024&&O(e,y),Vn(e)&&Kn(e);It.clear()}function Ht(e){F(e,e.v+1)}function Ut(e,t,n){var r=e.reactions;if(r!==null)for(var i=Ue(),a=r.length,o=0;o<a;o++){var s=r[o],c=s.f;if(!(!i&&s===K)){var l=(c&v)===0;if(l&&O(s,t),c&2){var u=s;j?.delete(u),c&65536||(c&512&&(s.f|=le),Ut(u,y,n))}else if(l){var d=s;c&16&&M!==null&&M.add(d),n===null?ht(d):n.push(d)}}}}function Wt(e){if(typeof e!=`object`||!e||pe in e)return e;let t=m(e);if(t!==f&&t!==p)return e;var r=new Map,a=i(e),o=P(0),s=null,c=Q,l=e=>{if(Q===c)return e();var t=U,n=Q;G(null),zn(c);var r=e();return G(t),zn(n),r};return a&&r.set(`length`,P(e.length,s)),new Proxy(e,{defineProperty(e,t,n){(!(`value`in n)||n.configurable===!1||n.enumerable===!1||n.writable===!1)&&we();var i=r.get(t);return i===void 0?l(()=>{var e=P(n.value,s);return r.set(t,e),e}):F(i,n.value,!0),!0},deleteProperty(e,t){var i=r.get(t);if(i===void 0){if(t in e){let e=l(()=>P(n,s));r.set(t,e),Ht(o)}}else F(i,n),Ht(o);return!0},get(t,i,a){if(i===pe)return e;var o=r.get(i),c=i in t;if(o===void 0&&(!c||u(t,i)?.writable)&&(o=l(()=>P(Wt(c?t[i]:n),s)),r.set(i,o)),o!==void 0){var d=$(o);return d===n?void 0:d}return Reflect.get(t,i,a)},getOwnPropertyDescriptor(e,t){var i=Reflect.getOwnPropertyDescriptor(e,t);if(i&&`value`in i){var a=r.get(t);a&&(i.value=$(a))}else if(i===void 0){var o=r.get(t),s=o?.v;if(o!==void 0&&s!==n)return{enumerable:!0,configurable:!0,value:s,writable:!0}}return i},has(e,t){if(t===pe)return!0;var i=r.get(t),a=i!==void 0&&i.v!==n||Reflect.has(e,t);return(i!==void 0||K!==null&&(!a||u(e,t)?.writable))&&(i===void 0&&(i=l(()=>P(a?Wt(e[t]):n,s)),r.set(t,i)),$(i)===n)?!1:a},set(e,t,i,c){var d=r.get(t),f=t in e;if(a&&t===`length`)for(var p=i;p<d.v;p+=1){var m=r.get(p+``);m===void 0?p in e&&(m=l(()=>P(n,s)),r.set(p+``,m)):F(m,n)}if(d===void 0)(!f||u(e,t)?.writable)&&(d=l(()=>P(void 0,s)),F(d,Wt(i)),r.set(t,d));else{f=d.v!==n;var h=l(()=>Wt(i));F(d,h)}var ee=Reflect.getOwnPropertyDescriptor(e,t);if(ee?.set&&ee.set.call(c,i),!f){if(a&&typeof t==`string`){var te=r.get(`length`),g=Number(t);Number.isInteger(g)&&g>=te.v&&F(te,g+1)}Ht(o)}return!0},ownKeys(e){$(o);var t=Reflect.ownKeys(e).filter(e=>{var t=r.get(e);return t===void 0||t.v!==n});for(var[i,a]of r)a.v!==n&&!(i in e)&&t.push(i);return t},setPrototypeOf(){Te()}})}var Gt,Kt,qt,Jt;function Yt(){if(Gt===void 0){Gt=window,Kt=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;qt=u(t,`firstChild`).get,Jt=u(t,`nextSibling`).get,h(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),h(n)&&(n.__t=void 0)}}function I(e=``){return document.createTextNode(e)}function L(e){return qt.call(e)}function R(e){return Jt.call(e)}function Xt(e,t){if(!x)return L(e);var n=L(S);if(n===null)n=S.appendChild(I());else if(t&&n.nodeType!==3){var r=I();return n?.before(r),C(r),r}return t&&nn(n),C(n),n}function Zt(e,t=!1){if(!x){var n=L(e);return n instanceof Comment&&n.data===``?R(n):n}if(t){if(S?.nodeType!==3){var r=I();return S?.before(r),C(r),r}nn(S)}return S}function Qt(e,t=1,n=!1){let r=x?S:e;for(var i;t--;)i=r,r=R(r);if(!x)return r;if(n){if(r?.nodeType!==3){var a=I();return r===null?i?.after(a):r.before(a),C(a),a}nn(r)}return C(r),r}function $t(e){e.textContent=``}function en(){return!w||M!==null?!1:(K.f&ie)!==0}function tn(e,t,n){let r=n?{is:n}:void 0;return document.createElementNS(t??`http://www.w3.org/1999/xhtml`,e,r)}function nn(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===3;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function rn(e){x&&L(e)!==null&&$t(e)}var an=!1;function on(){an||(an=!0,document.addEventListener(`reset`,e=>{Promise.resolve().then(()=>{if(!e.defaultPrevented)for(let t of e.target.elements)t.__on_r?.()})},{capture:!0}))}function sn(e){var t=U,n=K;G(null),q(null);try{return e()}finally{G(t),q(n)}}function cn(e,t,n,r=n){e.addEventListener(t,()=>sn(n));let i=e.__on_r;i?e.__on_r=()=>{i(),r(!0)}:e.__on_r=()=>r(!0),on()}function ln(e){K===null&&(U===null&&be(e),ye()),H&&ve(e)}function un(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function z(e,t){var n=K;n!==null&&n.f&8192&&(e|=ne);var r={ctx:T,deps:null,nodes:null,f:e|v|512,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null},i=r;if(e&4)at===null?lt.ensure().schedule(r):at.push(r);else if(t!==null){try{Kn(r)}catch(e){throw V(r),e}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&!(i.f&524288)&&(i=i.first,e&16&&e&65536&&i!==null&&(i.f|=oe))}if(i!==null&&(i.parent=n,n!==null&&un(i,n),U!==null&&U.f&2&&!(e&64))){var a=U;(a.effects??=[]).push(i)}return r}function dn(){return U!==null&&!W}function fn(e){let t=z(8,null);return O(t,_),t.teardown=e,t}function pn(e){ln(`$effect`);var t=K.f;if(!U&&t&32&&!(t&32768)){var n=T;(n.e??=[]).push(e)}else return mn(e)}function mn(e){return z(4|ce,e)}function hn(e){lt.ensure();let t=z(64|se,e);return()=>{V(t)}}function gn(e){lt.ensure();let t=z(64|se,e);return(e={})=>new Promise(n=>{e.outro?Dn(t,()=>{V(t),n(void 0)}):(V(t),n(void 0))})}function _n(e){return z(4,e)}function vn(e){return z(de|se,e)}function yn(e,t=0){return z(8|t,e)}function bn(e,t=[],n=[],r=[]){St(r,t,n,t=>{z(8,()=>e(...t.map($)))})}function xn(e,t=0){return z(16|t,e)}function B(e){return z(32|se,e)}function Sn(e){var t=e.teardown;if(t!==null){let e=H,n=U;Pn(!0),G(null);try{t.call(null)}finally{Pn(e),G(n)}}}function Cn(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){let e=n.ac;e!==null&&sn(()=>{e.abort(b)});var r=n.next;n.f&64?n.parent=null:V(n,t),n=r}}function wn(e){for(var t=e.first;t!==null;){var n=t.next;t.f&32||V(t),t=n}}function V(e,t=!0){var n=!1;(t||e.f&262144)&&e.nodes!==null&&e.nodes.end!==null&&(Tn(e.nodes.start,e.nodes.end),n=!0),O(e,ae),Cn(e,t&&!n),Gn(e,0);var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)e.stop();Sn(e),e.f^=ae,e.f|=re;var i=e.parent;i!==null&&i.first!==null&&En(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function Tn(e,t){for(;e!==null;){var n=e===t?null:R(e);e.remove(),e=n}}function En(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function Dn(e,t,n=!0){var r=[];On(e,r,!0);var i=()=>{n&&V(e),t&&t()},a=r.length;if(a>0){var o=()=>--a||i();for(var s of r)s.out(o)}else i()}function On(e,t,n){if(!(e.f&8192)){e.f^=ne;var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)(e.is_global||n)&&t.push(e);for(var i=e.first;i!==null;){var a=i.next,o=(i.f&65536)!=0||(i.f&32)!=0&&(e.f&16)!=0;On(i,t,o?n:!1),i=a}}}function kn(e){An(e,!0)}function An(e,t){if(e.f&8192){e.f^=ne,e.f&1024||(O(e,v),lt.ensure().schedule(e));for(var n=e.first;n!==null;){var r=n.next,i=(n.f&65536)!=0||(n.f&32)!=0;An(n,i?t:!1),n=r}var a=e.nodes&&e.nodes.t;if(a!==null)for(let e of a)(e.is_global||t)&&e.in()}}function jn(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var i=n===r?null:R(n);t.append(n),n=i}}var Mn=null,Nn=!1,H=!1;function Pn(e){H=e}var U=null,W=!1;function G(e){U=e}var K=null;function q(e){K=e}var J=null;function Fn(e){U!==null&&(!w||U.f&2)&&(J===null?J=[e]:J.push(e))}var Y=null,X=0,Z=null;function In(e){Z=e}var Ln=1,Rn=0,Q=Rn;function zn(e){Q=e}function Bn(){return++Ln}function Vn(e){var t=e.f;if(t&2048)return!0;if(t&2&&(e.f&=~le),t&4096){for(var n=e.deps,r=n.length,i=0;i<r;i++){var a=n[i];if(Vn(a)&&Nt(a),a.wv>e.wv)return!0}t&512&&j===null&&O(e,_)}return!1}function Hn(e,t,n=!0){var r=e.reactions;if(r!==null&&!(!w&&J!==null&&o.call(J,e)))for(var i=0;i<r.length;i++){var a=r[i];a.f&2?Hn(a,t,!1):t===a&&(n?O(a,v):a.f&1024&&O(a,y),ht(a))}}function Un(e){var t=Y,n=X,r=Z,i=U,a=J,o=T,s=W,c=Q,l=e.f;Y=null,X=0,Z=null,U=l&96?null:e,J=null,Be(e.ctx),W=!1,Q=++Rn,e.ac!==null&&(sn(()=>{e.ac.abort(b)}),e.ac=null);try{e.f|=ue;var u=e.fn,d=u();e.f|=ie;var f=e.deps,p=A?.is_fork;if(Y!==null){var m;if(p||Gn(e,X),f!==null&&X>0)for(f.length=X+Y.length,m=0;m<Y.length;m++)f[X+m]=Y[m];else e.deps=f=Y;if(dn()&&e.f&512)for(m=X;m<f.length;m++)(f[m].reactions??=[]).push(e)}else !p&&f!==null&&X<f.length&&(Gn(e,X),f.length=X);if(Ue()&&Z!==null&&!W&&f!==null&&!(e.f&6146))for(m=0;m<Z.length;m++)Hn(Z[m],e);if(i!==null&&i!==e){if(Rn++,i.deps!==null)for(let e=0;e<n;e+=1)i.deps[e].rv=Rn;if(t!==null)for(let e of t)e.rv=Rn;Z!==null&&(r===null?r=Z:r.push(...Z))}return e.f&8388608&&(e.f^=fe),d}catch(e){return qe(e)}finally{e.f^=ue,Y=t,X=n,Z=r,U=i,J=a,Be(o),W=s,Q=c}}function Wn(e,t){let n=t.reactions;if(n!==null){var r=a.call(n,e);if(r!==-1){var i=n.length-1;i===0?n=t.reactions=null:(n[r]=n[i],n.pop())}}if(n===null&&t.f&2&&(Y===null||!o.call(Y,t))){var s=t;s.f&512&&(s.f^=512,s.f&=~le),Ye(s),Pt(s),Gn(s,0)}}function Gn(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)Wn(e,n[r])}function Kn(e){var t=e.f;if(!(t&16384)){O(e,_);var n=K,r=Nn;K=e,Nn=!0;try{t&16777232?wn(e):Cn(e),Sn(e);var i=Un(e);e.teardown=typeof i==`function`?i:null,e.wv=Ln}finally{Nn=r,K=n}}}async function qn(){if(w)return new Promise(e=>{requestAnimationFrame(()=>e()),setTimeout(()=>e())});await Promise.resolve(),ut()}function $(e){var t=(e.f&2)!=0;if(Mn?.add(e),U!==null&&!W&&!(K!==null&&K.f&16384)&&(J===null||!o.call(J,e))){var n=U.deps;if(U.f&2097152)e.rv<Rn&&(e.rv=Rn,Y===null&&n!==null&&n[X]===e?X++:Y===null?Y=[e]:Y.push(e));else{(U.deps??=[]).push(e);var r=e.reactions;r===null?e.reactions=[U]:o.call(r,U)||r.push(U)}}if(H&&N.has(e))return N.get(e);if(t){var i=e;if(H){var a=i.v;return(!(i.f&1024)&&i.reactions!==null||Yn(i))&&(a=Mt(i)),N.set(i,a),a}var s=(i.f&512)==0&&!W&&U!==null&&(Nn||(U.f&512)!=0),c=(i.f&ie)===0;Vn(i)&&(s&&(i.f|=512),Nt(i)),s&&!c&&(Ft(i),Jn(i))}if(j?.has(e))return j.get(e);if(e.f&8388608)throw e.v;return e.v}function Jn(e){if(e.f|=512,e.deps!==null)for(let t of e.deps)(t.reactions??=[]).push(e),t.f&2&&!(t.f&512)&&(Ft(t),Jn(t))}function Yn(e){if(e.v===n)return!0;if(e.deps===null)return!1;for(let t of e.deps)if(N.has(t)||t.f&2&&Yn(t))return!0;return!1}function Xn(e){var t=W;try{return W=!0,e()}finally{W=t}}var Zn=Symbol(`events`),Qn=new Set,$n=new Set;function er(e,t,n,r={}){function i(e){if(r.capture||rr.call(t,e),!e.cancelBubble)return sn(()=>n?.call(this,e))}return e.startsWith(`pointer`)||e.startsWith(`touch`)||e===`wheel`?Ge(()=>{t.addEventListener(e,i,r)}):t.addEventListener(e,i,r),i}function tr(e,t,n,r,i){var a={capture:r,passive:i},o=er(e,t,n,a);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&fn(()=>{t.removeEventListener(e,o,a)})}var nr=null;function rr(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],a=i[0]||e.target;nr=e;var o=0,s=nr===e&&e[Zn];if(s){var c=i.indexOf(s);if(c!==-1&&(t===document||t===window)){e[Zn]=t;return}var u=i.indexOf(t);if(u===-1)return;c<=u&&(o=c)}if(a=i[o]||e.target,a!==t){l(e,`currentTarget`,{configurable:!0,get(){return a||n}});var d=U,f=K;G(null),q(null);try{for(var p,m=[];a!==null;){var h=a.assignedSlot||a.parentNode||a.host||null;try{var ee=a[Zn]?.[r];ee!=null&&(!a.disabled||e.target===a)&&ee.call(a,e)}catch(e){p?m.push(e):p=e}if(e.cancelBubble||h===t||h===null)break;a=h}if(p){for(let e of m)queueMicrotask(()=>{throw e});throw p}}finally{e[Zn]=t,delete e.currentTarget,G(d),q(f)}}}var ir=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy(`svelte-trusted-html`,{createHTML:e=>e});function ar(e){return ir?.createHTML(e)??e}function or(e){var t=tn(`template`);return t.innerHTML=ar(e.replaceAll(`<!>`,`<!---->`)),t.content}function sr(e,t){var n=K;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function cr(e,t){var n=(t&1)!=0,r=(t&2)!=0,i,a=!e.startsWith(`<!>`);return()=>{if(x)return sr(S,null),S;i===void 0&&(i=or(a?e:`<!>`+e),n||(i=L(i)));var t=r||Kt?document.importNode(i,!0):i.cloneNode(!0);if(n){var o=L(t),s=t.lastChild;sr(o,s)}else sr(t,t);return t}}function lr(e,t){if(x){var n=K;(!(n.f&32768)||n.nodes.end===null)&&(n.nodes.end=S),je();return}e!==null&&e.before(t)}[...`allowfullscreen.async.autofocus.autoplay.checked.controls.default.disabled.formnovalidate.indeterminate.inert.ismap.loop.multiple.muted.nomodule.novalidate.open.playsinline.readonly.required.reversed.seamless.selected.webkitdirectory.defer.disablepictureinpicture.disableremoteplayback`.split(`.`)];var ur=[`touchstart`,`touchmove`];function dr(e){return ur.includes(e)}function fr(e,t){var n=t==null?``:typeof t==`object`?`${t}`:t;n!==(e.__t??=e.nodeValue)&&(e.__t=n,e.nodeValue=`${n}`)}function pr(e,t){return gr(e,t)}function mr(e,n){Yt(),n.intro=n.intro??!1;let r=n.target,i=x,a=S;try{for(var o=L(r);o&&(o.nodeType!==8||o.data!==`[`);)o=R(o);if(!o)throw t;Ae(!0),C(o);let i=gr(e,{...n,anchor:o});return Ae(!1),i}catch(i){if(i instanceof Error&&i.message.split(`
|
|
2
|
+
`).some(e=>e.startsWith(`https://svelte.dev/e/`)))throw i;return i!==t&&console.warn(`Failed to hydrate: `,i),n.recover===!1&&Se(),Yt(),$t(r),Ae(!1),pr(e,n)}finally{Ae(i),C(a)}}var hr=new Map;function gr(e,{target:n,anchor:r,props:i={},events:a,context:o,intro:c=!0,transformError:l}){Yt();var u=void 0,d=gn(()=>{var c=r??n.appendChild(I());bt(c,{pending:()=>{}},n=>{Ve({});var r=T;if(o&&(r.c=o),a&&(i.$$events=a),x&&sr(n,null),u=e(n,i)||{},x&&(K.nodes.end=S,S===null||S.nodeType!==8||S.data!==`]`))throw Oe(),t;He()},l);var d=new Set,f=e=>{for(var t=0;t<e.length;t++){var r=e[t];if(!d.has(r)){d.add(r);var i=dr(r);for(let e of[n,document]){var a=hr.get(e);a===void 0&&(a=new Map,hr.set(e,a));var o=a.get(r);o===void 0?(e.addEventListener(r,rr,{passive:i}),a.set(r,1)):a.set(r,o+1)}}}};return f(s(Qn)),$n.add(f),()=>{for(var e of d)for(let r of[n,document]){var t=hr.get(r),i=t.get(e);--i==0?(r.removeEventListener(e,rr),t.delete(e),t.size===0&&hr.delete(r)):t.set(e,i)}$n.delete(f),c!==r&&c.parentNode?.removeChild(c)}});return _r.set(u,d),u}var _r=new WeakMap;function vr(e,t){let n=_r.get(e);return n?(_r.delete(e),n(t)):Promise.resolve()}var yr=class{anchor;#e=new Map;#t=new Map;#n=new Map;#r=new Set;#i=!0;constructor(e,t=!0){this.anchor=e,this.#i=t}#a=e=>{if(this.#e.has(e)){var t=this.#e.get(e),n=this.#t.get(t);if(n)kn(n),this.#r.delete(t);else{var r=this.#n.get(t);r&&(this.#t.set(t,r.effect),this.#n.delete(t),r.fragment.lastChild.remove(),this.anchor.before(r.fragment),n=r.effect)}for(let[t,n]of this.#e){if(this.#e.delete(t),t===e)break;let r=this.#n.get(n);r&&(V(r.effect),this.#n.delete(n))}for(let[e,r]of this.#t){if(e===t||this.#r.has(e))continue;let i=()=>{if(Array.from(this.#e.values()).includes(e)){var t=document.createDocumentFragment();jn(r,t),t.append(I()),this.#n.set(e,{effect:r,fragment:t})}else V(r);this.#r.delete(e),this.#t.delete(e)};this.#i||!n?(this.#r.add(e),Dn(r,i,!1)):i()}}};#o=e=>{this.#e.delete(e);let t=Array.from(this.#e.values());for(let[e,n]of this.#n)t.includes(e)||(V(n.effect),this.#n.delete(e))};ensure(e,t){var n=A,r=en();if(t&&!this.#t.has(e)&&!this.#n.has(e))if(r){var i=document.createDocumentFragment(),a=I();i.append(a),this.#n.set(e,{effect:B(()=>t(a)),fragment:i})}else this.#t.set(e,B(()=>t(this.anchor)));if(this.#e.set(n,e),r){for(let[t,r]of this.#t)t===e?n.unskip_effect(r):n.skip_effect(r);for(let[t,r]of this.#n)t===e?n.unskip_effect(r.effect):n.skip_effect(r.effect);n.oncommit(this.#a),n.ondiscard(this.#o)}else x&&(this.anchor=S),this.#a(n)}};function br(e,t,n=!1){var r;x&&(r=S,je());var i=new yr(e),a=n?oe:0;function o(e,t){if(x){var n=Fe(r);if(e!==parseInt(n.substring(1))){var a=Pe();C(a),i.anchor=a,Ae(!1),i.ensure(e,t),Ae(!0);return}}i.ensure(e,t)}xn(()=>{var e=!1;t((t,n=0)=>{e=!0,o(n,t)}),e||o(-1,null)},a)}function xr(e,t){_n(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector(`#`+t.hash)){let e=tn(`style`);e.id=t.hash,e.textContent=t.code,r.appendChild(e)}})}var Sr=[...`
|
|
3
|
+
\r\f\xA0\v`];function Cr(e,t,n){var r=e==null?``:``+e;if(t&&(r=r?r+` `+t:t),n){for(var i of Object.keys(n))if(n[i])r=r?r+` `+i:i;else if(r.length)for(var a=i.length,o=0;(o=r.indexOf(i,o))>=0;){var s=o+a;(o===0||Sr.includes(r[o-1]))&&(s===r.length||Sr.includes(r[s]))?r=(o===0?``:r.substring(0,o))+r.substring(s+1):o=s}}return r===``?null:r}function wr(e,t,n,r,i,a){var o=e.__className;if(x||o!==n||o===void 0){var s=Cr(n,r,a);(!x||s!==e.getAttribute(`class`))&&(s==null?e.removeAttribute(`class`):t?e.className=s:e.setAttribute(`class`,s)),e.__className=n}else if(a&&i!==a)for(var c in a){var l=!!a[c];(i==null||l!==!!i[c])&&e.classList.toggle(c,l)}return a}var Tr=Symbol(`is custom element`),Er=Symbol(`is html`),Dr=ge?`link`:`LINK`;function Or(e,t,n,r){var i=kr(e);x&&(i[t]=e.getAttribute(t),t===`src`||t===`srcset`||t===`href`&&e.nodeName===Dr)||i[t]!==(i[t]=n)&&(t===`loading`&&(e[he]=n),n==null?e.removeAttribute(t):typeof n!=`string`&&jr(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function kr(e){return e.__attributes??={[Tr]:e.nodeName.includes(`-`),[Er]:e.namespaceURI===r}}var Ar=new Map;function jr(e){var t=e.getAttribute(`is`)||e.nodeName,n=Ar.get(t);if(n)return n;Ar.set(t,n=[]);for(var r,i=e,a=Element.prototype;a!==i;){for(var o in r=d(i),r)r[o].set&&n.push(o);i=m(i)}return n}function Mr(e,t,n=t){var r=new WeakSet;cn(e,`input`,async i=>{var a=i?e.defaultValue:e.value;if(a=Nr(e)?Pr(a):a,n(a),A!==null&&r.add(A),await qn(),a!==(a=t())){var o=e.selectionStart,s=e.selectionEnd,c=e.value.length;if(e.value=a??``,s!==null){var l=e.value.length;o===s&&s===c&&l>c?(e.selectionStart=l,e.selectionEnd=l):(e.selectionStart=o,e.selectionEnd=Math.min(s,l))}}}),(x&&e.defaultValue!==e.value||Xn(t)==null&&e.value)&&(n(Nr(e)?Pr(e.value):e.value),A!==null&&r.add(A)),yn(()=>{var n=t();if(e===document.activeElement){var i=w?tt:A;if(r.has(i))return}Nr(e)&&n===Pr(e.value)||e.type===`date`&&!n&&!e.value||n!==e.value&&(e.value=n??``)})}function Nr(e){var t=e.type;return t===`number`||t===`range`}function Pr(e){return e===``?null:+e}function Fr(e,t,n,r){var i=!ze||(n&2)!=0,a=(n&8)!=0,o=(n&16)!=0,s=r,c=!0,l=()=>(c&&(c=!1,s=o?Xn(r):r),s);let d;if(a){var f=pe in e||me in e;d=u(e,t)?.set??(f&&t in e?n=>e[t]=n:void 0)}var p,m=!1;a?[p,m]=et(()=>e[t]):p=e[t],p===void 0&&r!==void 0&&(p=l(),d&&(i&&Ce(t),d(p)));var h=i?()=>{var n=e[t];return n===void 0?l():(c=!0,n)}:()=>{var n=e[t];return n!==void 0&&(s=void 0),n===void 0?s:n};if(i&&!(n&4))return h;if(d){var ee=e.$$legacy;return(function(e,t){return arguments.length>0?((!i||!t||ee||m)&&d(t?h():e),e):h()})}var te=!1,g=(n&1?Et:kt)(()=>(te=!1,h()));a&&$(g);var _=K;return(function(e,t){if(arguments.length>0){let n=t?$(g):i&&a?Wt(e):e;return F(g,n),te=!0,s!==void 0&&(s=n),e}return H&&te||_.f&16384?g.v:$(g)})}function Ir(e){return new Lr(e)}var Lr=class{#e;#t;constructor(e){var t=new Map,n=(e,n)=>{var r=zt(n,!1,!1);return t.set(e,r),r};let r=new Proxy({...e.props||{},$$events:{}},{get(e,r){return $(t.get(r)??n(r,Reflect.get(e,r)))},has(e,r){return r===me?!0:($(t.get(r)??n(r,Reflect.get(e,r))),Reflect.has(e,r))},set(e,r,i){return F(t.get(r)??n(r,i),i),Reflect.set(e,r,i)}});this.#t=(e.hydrate?mr:pr)(e.component,{target:e.target,anchor:e.anchor,props:r,context:e.context,intro:e.intro??!1,recover:e.recover,transformError:e.transformError}),!w&&(!e?.props?.$$host||e.sync===!1)&&ut(),this.#e=r.$$events;for(let e of Object.keys(this.#t))e===`$set`||e===`$destroy`||e===`$on`||l(this,e,{get(){return this.#t[e]},set(t){this.#t[e]=t},enumerable:!0});this.#t.$set=e=>{Object.assign(r,e)},this.#t.$destroy=()=>{vr(this.#t)}}$set(e){this.#t.$set(e)}$on(e,t){this.#e[e]=this.#e[e]||[];let n=(...e)=>t.call(this,...e);return this.#e[e].push(n),()=>{this.#e[e]=this.#e[e].filter(e=>e!==n)}}$destroy(){this.#t.$destroy()}},Rr;typeof HTMLElement==`function`&&(Rr=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;$$shadowRoot=null;constructor(e,t,n){super(),this.$$ctor=e,this.$$s=t,n&&(this.$$shadowRoot=this.attachShadow(n))}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){let n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){let e=this.$$l_u.get(t);e&&(e(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){if(await Promise.resolve(),!this.$$cn||this.$$c)return;function e(e){return t=>{let n=tn(`slot`);e!==`default`&&(n.name=e),lr(t,n)}}let t={},n=Br(this);for(let r of this.$$s)r in n&&(r===`default`&&!this.$$d.children?(this.$$d.children=e(r),t.default=!0):t[r]=e(r));for(let e of this.attributes){let t=this.$$g_p(e.name);t in this.$$d||(this.$$d[t]=zr(t,e.value,this.$$p_d,`toProp`))}for(let e in this.$$p_d)!(e in this.$$d)&&this[e]!==void 0&&(this.$$d[e]=this[e],delete this[e]);this.$$c=Ir({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=hn(()=>{yn(()=>{this.$$r=!0;for(let e of c(this.$$c)){if(!this.$$p_d[e]?.reflect)continue;this.$$d[e]=this.$$c[e];let t=zr(e,this.$$d[e],this.$$p_d,`toAttribute`);t==null?this.removeAttribute(this.$$p_d[e].attribute||e):this.setAttribute(this.$$p_d[e].attribute||e,t)}this.$$r=!1})});for(let e in this.$$l)for(let t of this.$$l[e]){let n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}this.$$l={}}}attributeChangedCallback(e,t,n){this.$$r||(e=this.$$g_p(e),this.$$d[e]=zr(e,n,this.$$p_d,`toProp`),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return c(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function zr(e,t,n,r){let i=n[e]?.type;if(t=i===`Boolean`&&typeof t!=`boolean`?t!=null:t,!r||!n[e])return t;if(r===`toAttribute`)switch(i){case`Object`:case`Array`:return t==null?null:JSON.stringify(t);case`Boolean`:return t?``:null;case`Number`:return t??null;default:return t}else switch(i){case`Object`:case`Array`:return t&&JSON.parse(t);case`Boolean`:return t;case`Number`:return t==null?t:+t;default:return t}}function Br(e){let t={};return e.childNodes.forEach(e=>{t[e.slot||`default`]=!0}),t}function Vr(e,t,n,r,i,a){let o=class extends Rr{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return c(t).map(e=>(t[e].attribute||e).toLowerCase())}};return c(t).forEach(e=>{l(o.prototype,e,{get(){return this.$$c&&e in this.$$c?this.$$c[e]:this.$$d[e]},set(n){n=zr(e,n,t),this.$$d[e]=n;var r=this.$$c;r&&(u(r,e)?.get?r[e]=n:r.$set({[e]:n}))}})}),r.forEach(e=>{l(o.prototype,e,{get(){return this.$$c?.[e]}})}),a&&(o=a(o)),e.element=o,o}var Hr=cr(`<div part="invalid-feedback" class="invalid-feedback mb-1 svelte-1k6jt4"> </div>`),Ur=cr(`<textarea part="input"></textarea> <!>`,1),Wr={hash:`svelte-1k6jt4`,code:`@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");
|
|
3
4
|
/*!
|
|
4
5
|
* Bootstrap v5.1.2 (https://getbootstrap.com/)
|
|
5
6
|
* Copyright 2011-2021 The Bootstrap Authors
|
|
@@ -73,5 +74,5 @@ textarea.svelte-1k6jt4 {margin:0;font-family:inherit;font-size:inherit;line-heig
|
|
|
73
74
|
@media (min-width: 1200px) {
|
|
74
75
|
}
|
|
75
76
|
@media (min-width: 1400px) {
|
|
76
|
-
}:host {font-family:"Roboto", sans-serif;}textarea.svelte-1k6jt4 {height:100%;}`};function
|
|
77
|
-
//# sourceMappingURL=main.iife.js.map
|
|
77
|
+
}:host {font-family:"Roboto", sans-serif;}textarea.svelte-1k6jt4 {height:100%;}`};function Gr(e,t){Ve(t,!0),xr(e,Wr);let n=Fr(t,`schemaentry`,7),r=Fr(t,`show_validation`,7,`no`),i=Fr(t,`id`,7,void 0),a=P(``),o=Ot(()=>{if(n()&&typeof n()==`object`&&n()?.validationRegex)return new RegExp(n().validationRegex)});function s(e,n){t.$$host.dispatchEvent(new CustomEvent(e,{detail:n}))}let c=Ot(()=>n()?n()?.required?$(a)?$(o)&&!$(o).test($(a))||n().params?.min&&!($(a).length>=n().params.min)?!1:!(n()?.params?.max&&$(a)&&!($(a).length<=n().params.max)):!1:!0:!1);pn(()=>{if(n()&&n()&&typeof n()==`string`)try{n(JSON.parse(n())),n()?.value&&F(a,n().value,!0),n()?.id&&i(n().id)}catch{}F(a,$(a)==null?n()?.value:$(a),!0)}),pn(()=>{s(`setVal`,{value:$(a),valid:$(c),id:i()})});var l={get schemaentry(){return n()},set schemaentry(e){n(e),ut()},get show_validation(){return r()},set show_validation(e=`no`){r(e),ut()},get id(){return i()},set id(e=void 0){i(e),ut()}},u=Ur(),d=Zt(u);rn(d);var f=Qt(d,2),p=e=>{var t=Hr(),r=Xt(t,!0);Me(t),bn(()=>fr(r,n().validationTip)),lr(e,t)};return br(f,e=>{n()?.validationTip&&r()===`yes`&&e(p)}),bn(()=>{wr(d,1,`form-control ${r()===`yes`&&n()?.required?$(c)?`is-valid`:`is-invalid`:``}`,`svelte-1k6jt4`),Or(d,`id`,i()),d.required=n()?.required,Or(d,`placeholder`,n()?.placeholder),d.readOnly=n()?.readonly}),tr(`keypress`,d,e=>{e.key===`Enter`&&!e.shiftKey&&(e.preventDefault(),s(`clickEnter`,{value:$(a),valid:$(c),id:i()}))}),Mr(d,()=>$(a),e=>F(a,e)),lr(e,u),He(l)}customElements.define(`hb-input-area`,Vr(Gr,{schemaentry:{},show_validation:{},id:{}},[],[],{mode:`open`})),e.Component=Gr})(this[`input-area`]=this[`input-area`]||{});
|
|
78
|
+
//# sourceMappingURL=main.iife.js.map
|