@htmlbricks/hb-input-array-objects 0.66.6 → 0.66.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/main.iife.js CHANGED
@@ -1,5 +1,6 @@
1
- (function(Nt){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const Yr=1,qr=2,At="[",Ot="[!",Rt="[?",Ct="]",Ee={},A=Symbol(),Mt="http://www.w3.org/1999/xhtml",Ur=!1;var Gr=Array.isArray,Kr=Array.prototype.indexOf,Se=Array.prototype.includes,Wr=Array.from,qe=Object.keys,Ue=Object.defineProperty,xe=Object.getOwnPropertyDescriptor,Xr=Object.getOwnPropertyDescriptors,Zr=Object.prototype,Qr=Array.prototype,It=Object.getPrototypeOf,jt=Object.isExtensible;const en=()=>{};function tn(e){for(var t=0;t<e.length;t++)e[t]()}function Pt(){var e,t,r=new Promise((n,i)=>{e=n,t=i});return{promise:r,resolve:e,reject:t}}const k=2,Te=4,Ge=8,Dt=1<<24,le=16,K=32,ae=64,at=128,L=512,T=1024,O=2048,W=4096,X=8192,Y=16384,fe=32768,Lt=1<<25,ke=65536,Ft=1<<17,rn=1<<18,be=1<<19,nn=1<<20,ge=65536,ft=1<<21,ut=1<<22,ue=1<<23,ct=Symbol("$state"),sn=Symbol("legacy props"),on=Symbol(""),te=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},ln=!!globalThis.document?.contentType&&globalThis.document.contentType.includes("xml"),Ie=3,Ke=8;function an(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function fn(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function un(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function cn(e){throw new Error("https://svelte.dev/e/effect_orphan")}function dn(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function hn(){throw new Error("https://svelte.dev/e/hydration_failed")}function vn(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function _n(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function pn(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function bn(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function We(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function gn(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let y=!1;function ce(e){y=e}let m;function F(e){if(e===null)throw We(),Ee;return m=e}function Xe(){return F(se(m))}function je(e){if(y){if(se(m)!==null)throw We(),Ee;m=e}}function mn(e=1){if(y){for(var t=e,r=m;t--;)r=se(r);m=r}}function Jt(e=!0){for(var t=0,r=m;;){if(r.nodeType===Ke){var n=r.data;if(n===Ct){if(t===0)return r;t-=1}else(n===At||n===Ot||n[0]==="["&&!isNaN(Number(n.slice(1))))&&(t+=1)}var i=se(r);e&&r.remove(),r=i}}function wn(e){if(!e||e.nodeType!==Ke)throw We(),Ee;return e.data}function Ht(e){return e===this.v}function yn(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function $n(e){return!yn(e,this.v)}let En=!1,J=null;function Ne(e){J=e}function Bt(e,t=!1,r){J={p:J,i:!1,c:null,e:null,s:e,x:null,r:b,l:null}}function zt(e){var t=J,r=t.e;if(r!==null){t.e=null;for(var n of r)hr(n)}return e!==void 0&&(t.x=e),t.i=!0,J=t.p,e??{}}function Vt(){return!0}let me=[];function Yt(){var e=me;me=[],tn(e)}function we(e){if(me.length===0&&!Pe){var t=me;queueMicrotask(()=>{t===me&&Yt()})}me.push(e)}function Sn(){for(;me.length>0;)Yt()}function qt(e){var t=b;if(t===null)return p.f|=ue,e;if((t.f&fe)===0&&(t.f&Te)===0)throw e;de(e,t)}function de(e,t){for(;t!==null;){if((t.f&at)!==0){if((t.f&fe)===0)throw e;try{t.b.error(e);return}catch(r){e=r}}t=t.parent}throw e}const xn=-7169;function S(e,t){e.f=e.f&xn|t}function dt(e){(e.f&L)!==0||e.deps===null?S(e,T):S(e,W)}function Ut(e){if(e!==null)for(const t of e)(t.f&k)===0||(t.f&ge)===0||(t.f^=ge,Ut(t.deps))}function Gt(e,t,r){(e.f&O)!==0?t.add(e):(e.f&W)!==0&&r.add(e),Ut(e.deps),S(e,T)}const he=new Set;let $=null,q=null,ht=null,Pe=!1,vt=!1,Ae=null,Ze=null;var Kt=0;let Tn=1;class re{id=Tn++;current=new Map;previous=new Map;#e=new Set;#r=new Set;#t=new Map;#i=new Map;#s=null;#n=[];#o=new Set;#l=new Set;#a=new Map;is_fork=!1;#c=!1;#f=new Set;#d(){return this.is_fork||this.#i.size>0}#v(){for(const 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)S(n,O),this.schedule(n);for(n of r.m)S(n,W),this.schedule(n)}}#h(){if(Kt++>1e3&&(he.delete(this),kn()),!this.#d()){for(const l of this.#o)this.#l.delete(l),S(l,O),this.schedule(l);for(const l of this.#l)S(l,W),this.schedule(l)}const t=this.#n;this.#n=[],this.apply();var r=Ae=[],n=[],i=Ze=[];for(const l of t)try{this.#u(l,r,n)}catch(a){throw er(l),a}if($=null,i.length>0){var s=re.ensure();for(const l of i)s.schedule(l)}if(Ae=null,Ze=null,this.#d()||this.#v()){this.#_(n),this.#_(r);for(const[l,a]of this.#a)Qt(l,a)}else{this.#t.size===0&&he.delete(this),this.#o.clear(),this.#l.clear();for(const l of this.#e)l(this);this.#e.clear(),Wt(n),Wt(r),this.#s?.resolve()}var o=$;if(this.#n.length>0){const l=o??=this;l.#n.push(...this.#n.filter(a=>!l.#n.includes(a)))}o!==null&&(he.add(o),o.#h()),he.has(this)||this.#p()}#u(t,r,n){t.f^=T;for(var i=t.first;i!==null;){var s=i.f,o=(s&(K|ae))!==0,l=o&&(s&T)!==0,a=l||(s&X)!==0||this.#a.has(i);if(!a&&i.fn!==null){o?i.f^=T:(s&Te)!==0?r.push(i):He(i)&&((s&le)!==0&&this.#l.add(i),Ce(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)Gt(t[r],this.#o,this.#l)}capture(t,r,n=!1){r!==A&&!this.previous.has(t)&&this.previous.set(t,r),(t.f&ue)===0&&(this.current.set(t,[t.v,n]),q?.set(t,t.v))}activate(){$=this}deactivate(){$=null,q=null}flush(){try{vt=!0,$=this,this.#h()}finally{Kt=0,ht=null,Ae=null,Ze=null,vt=!1,$=null,q=null,ve.clear()}}discard(){for(const t of this.#r)t(this);this.#r.clear(),he.delete(this)}#p(){for(const f of he){var t=f.id<this.id,r=[];for(const[u,[d,c]]of this.current){if(f.current.has(u)){var n=f.current.get(u)[0];if(t&&d!==n)f.current.set(u,[d,c]);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)Xt(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 he)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,we(()=>{this.#c=!1,this.flush()}))}transfer_effects(t,r){for(const n of t)this.#o.add(n);for(const n of r)this.#l.add(n);t.clear(),r.clear()}oncommit(t){this.#e.add(t)}ondiscard(t){this.#r.add(t)}settled(){return(this.#s??=Pt()).promise}static ensure(){if($===null){const t=$=new re;vt||(he.add($),Pe||we(()=>{$===t&&t.flush()}))}return $}apply(){{q=null;return}}schedule(t){if(ht=t,t.b?.is_pending&&(t.f&(Te|Ge|Dt))!==0&&(t.f&fe)===0){t.b.defer_effect(t);return}for(var r=t;r.parent!==null;){r=r.parent;var n=r.f;if(Ae!==null&&r===b&&(p===null||(p.f&k)===0))return;if((n&(ae|K))!==0){if((n&T)===0)return;r.f^=T}}this.#n.push(r)}}function Qe(e){var t=Pe;Pe=!0;try{for(var r;;){if(Sn(),$===null)return r;$.flush()}}finally{Pe=t}}function kn(){try{dn()}catch(e){de(e,ht)}}let ne=null;function Wt(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var n=e[r++];if((n.f&(Y|X))===0&&He(n)&&(ne=new Set,Ce(n),n.deps===null&&n.first===null&&n.nodes===null&&n.teardown===null&&n.ac===null&&br(n),ne?.size>0)){ve.clear();for(const i of ne){if((i.f&(Y|X))!==0)continue;const s=[i];let o=i.parent;for(;o!==null;)ne.has(o)&&(ne.delete(o),s.push(o)),o=o.parent;for(let l=s.length-1;l>=0;l--){const a=s[l];(a.f&(Y|X))===0&&Ce(a)}}ne.clear()}}ne=null}}function Xt(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&k)!==0?Xt(i,t,r,n):(s&(ut|le))!==0&&(s&O)===0&&Zt(i,t,n)&&(S(i,O),_t(i))}}function Zt(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(Se.call(t,i))return!0;if((i.f&k)!==0&&Zt(i,t,r))return r.set(i,!0),!0}return r.set(e,!1),!1}function _t(e){$.schedule(e)}function Qt(e,t){if(!((e.f&K)!==0&&(e.f&T)!==0)){(e.f&O)!==0?t.d.push(e):(e.f&W)!==0&&t.m.push(e),S(e,T);for(var r=e.first;r!==null;)Qt(r,t),r=r.next}}function er(e){S(e,T);for(var t=e.first;t!==null;)er(t),t=t.next}function Nn(e){let t=0,r=De(0),n;return()=>{$t()&&(_(r),vr(()=>(t===0&&(n=ti(()=>e(()=>Le(r)))),t+=1,()=>{we(()=>{t-=1,t===0&&(n?.(),n=void 0,Le(r))})})))}}var An=ke|be;function On(e,t,r,n){new Rn(e,t,r,n)}class Rn{parent;is_pending=!1;transform_error;#e;#r=y?m:null;#t;#i;#s;#n=null;#o=null;#l=null;#a=null;#c=0;#f=0;#d=!1;#v=new Set;#h=new Set;#u=null;#_=Nn(()=>(this.#u=De(this.#c),()=>{this.#u=null}));constructor(t,r,n,i){this.#e=t,this.#t=r,this.#i=s=>{var o=b;o.b=this,o.f|=at,n(s)},this.parent=b.b,this.transform_error=i??this.parent?.transform_error??(s=>s),this.#s=_r(()=>{if(y){const s=this.#r;Xe();const o=s.data===Ot;if(s.data.startsWith(Rt)){const a=JSON.parse(s.data.slice(Rt.length));this.#y(a)}else o?this.#$():this.#p()}else this.#m()},An),y&&(this.#e=m)}#p(){try{this.#n=oe(()=>this.#i(this.#e))}catch(t){this.error(t)}}#y(t){const r=this.#t.failed;r&&(this.#l=oe(()=>{r(this.#e,()=>t,()=>()=>{})}))}#$(){const t=this.#t.pending;t&&(this.is_pending=!0,this.#o=oe(()=>t(this.#e)),we(()=>{var r=this.#a=document.createDocumentFragment(),n=Z();r.append(n),this.#n=this.#g(()=>oe(()=>this.#i(n))),this.#f===0&&(this.#e.before(r),this.#a=null,Je(this.#o,()=>{this.#o=null}),this.#b($))}))}#m(){try{if(this.is_pending=this.has_pending_snippet(),this.#f=0,this.#c=0,this.#n=oe(()=>{this.#i(this.#e)}),this.#f>0){var t=this.#a=document.createDocumentFragment();wr(this.#n,t);const r=this.#t.pending;this.#o=oe(()=>r(this.#e))}else this.#b($)}catch(r){this.error(r)}}#b(t){this.is_pending=!1,t.transfer_effects(this.#v,this.#h)}defer_effect(t){Gt(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=b,n=p,i=J;H(this.#s),M(this.#s),Ne(this.#s.ctx);try{return re.ensure(),t()}catch(s){return qt(s),null}finally{H(r),M(n),Ne(i)}}#w(t,r){if(!this.has_pending_snippet()){this.parent&&this.parent.#w(t,r);return}this.#f+=t,this.#f===0&&(this.#b(r),this.#o&&Je(this.#o,()=>{this.#o=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,we(()=>{this.#d=!1,this.#u&&tt(this.#u,this.#c)}))}get_effect_pending(){return this.#_(),_(this.#u)}error(t){var r=this.#t.onerror;let n=this.#t.failed;if(!r&&!n)throw t;this.#n&&(C(this.#n),this.#n=null),this.#o&&(C(this.#o),this.#o=null),this.#l&&(C(this.#l),this.#l=null),y&&(F(this.#r),mn(),F(Jt()));var i=!1,s=!1;const o=()=>{if(i){gn();return}i=!0,s&&bn(),this.#l!==null&&Je(this.#l,()=>{this.#l=null}),this.#g(()=>{this.#m()})},l=a=>{try{s=!0,r?.(a,o),s=!1}catch(f){de(f,this.#s&&this.#s.parent)}n&&(this.#l=this.#g(()=>{try{return oe(()=>{var f=b;f.b=this,f.f|=at,n(this.#e,()=>a,()=>o)})}catch(f){return de(f,this.#s.parent),null}}))};we(()=>{var a;try{a=this.transform_error(t)}catch(f){de(f,this.#s&&this.#s.parent);return}a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(l,f=>de(f,this.#s&&this.#s.parent)):l(a)})}}function Cn(e,t,r,n){const i=pt;var s=e.filter(c=>!c.settled);if(r.length===0&&s.length===0){n(t.map(i));return}var o=b,l=Mn(),a=s.length===1?s[0].promise:s.length>1?Promise.all(s.map(c=>c.promise)):null;function f(c){l();try{n(c)}catch(v){(o.f&Y)===0&&de(v,o)}et()}if(r.length===0){a.then(()=>f(t.map(i)));return}var u=tr();function d(){Promise.all(r.map(c=>In(c))).then(c=>f([...t.map(i),...c])).catch(c=>de(c,o)).finally(()=>u())}a?a.then(()=>{l(),d(),et()}):d()}function Mn(){var e=b,t=p,r=J,n=$;return function(s=!0){H(e),M(t),Ne(r),s&&(e.f&Y)===0&&(n?.activate(),n?.apply())}}function et(e=!0){H(null),M(null),Ne(null),e&&$?.deactivate()}function tr(){var e=b,t=e.b,r=$,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 pt(e){var t=k|O,r=p!==null&&(p.f&k)!==0?p:null;return b!==null&&(b.f|=be),{ctx:J,deps:null,effects:null,equals:Ht,f:t,fn:e,reactions:null,rv:0,v:A,wv:0,parent:r??b,ac:null}}function In(e,t,r){let n=b;n===null&&an();var i=void 0,s=De(A),o=!p,l=new Map;return Kn(()=>{var a=b,f=Pt();i=f.promise;try{Promise.resolve(e()).then(f.resolve,f.reject).finally(et)}catch(v){f.reject(v),et()}var u=$;if(o){if((a.f&fe)!==0)var d=tr();if(n.b.is_rendered())l.get(u)?.reject(te),l.delete(u);else{for(const v of l.values())v.reject(te);l.clear()}l.set(u,f)}const c=(v,h=void 0)=>{if(d){var w=h===te;d(w)}if(!(h===te||(a.f&Y)!==0)){if(u.activate(),h)s.f|=ue,tt(s,h);else{(s.f&ue)!==0&&(s.f^=ue),tt(s,v);for(const[N,j]of l){if(l.delete(N),N===u)break;j.reject(te)}}u.deactivate()}};f.promise.then(c,v=>c(null,v||"unknown"))}),cr(()=>{for(const a of l.values())a.reject(te)}),new Promise(a=>{function f(u){function d(){u===i?a(s):f(i)}u.then(d,d)}f(i)})}function jn(e){const t=pt(e);return $r(t),t}function Pn(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)C(t[r])}}function Dn(e){for(var t=e.parent;t!==null;){if((t.f&k)===0)return(t.f&Y)===0?t:null;t=t.parent}return null}function bt(e){var t,r=b;H(Dn(e));try{e.f&=~ge,Pn(e),t=kr(e)}finally{H(r)}return t}function rr(e){var t=e.v,r=bt(e);if(!e.equals(r)&&(e.wv=xr(),(!$?.is_fork||e.deps===null)&&(e.v=r,$?.capture(e,t,!0),e.deps===null))){S(e,T);return}_e||(q!==null?($t()||$?.is_fork)&&q.set(e,r):dt(e))}function Ln(e){if(e.effects!==null)for(const t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(te),t.teardown=en,t.ac=null,Be(t,0),Et(t))}function nr(e){if(e.effects!==null)for(const t of e.effects)t.teardown&&Ce(t)}let gt=new Set;const ve=new Map;let ir=!1;function De(e,t){var r={f:0,v:e,reactions:null,equals:Ht,rv:0,wv:0};return r}function P(e,t){const r=De(e);return $r(r),r}function Fn(e,t=!1,r=!0){const n=De(e);return t||(n.equals=$n),n}function x(e,t,r=!1){p!==null&&(!U||(p.f&Ft)!==0)&&Vt()&&(p.f&(k|le|ut|Ft))!==0&&(B===null||!Se.call(B,e))&&pn();let n=r?ie(t):t;return tt(e,n,Ze)}function tt(e,t,r=null){if(!e.equals(t)){var n=e.v;_e?ve.set(e,t):ve.set(e,n),e.v=t;var i=re.ensure();if(i.capture(e,n),(e.f&k)!==0){const s=e;(e.f&O)!==0&&bt(s),q===null&&dt(s)}e.wv=xr(),sr(e,O,r),b!==null&&(b.f&T)!==0&&(b.f&(K|ae))===0&&(z===null?Qn([e]):z.push(e)),!i.is_fork&&gt.size>0&&!ir&&Jn()}return t}function Jn(){ir=!1;for(const e of gt)(e.f&T)!==0&&S(e,W),He(e)&&Ce(e);gt.clear()}function Le(e){x(e,e.v+1)}function sr(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&O)===0;if(a&&S(o,t),(l&k)!==0){var f=o;q?.delete(f),(l&ge)===0&&(l&L&&(o.f|=ge),sr(f,W,r))}else if(a){var u=o;(l&le)!==0&&ne!==null&&ne.add(u),r!==null?r.push(u):_t(u)}}}function ie(e){if(typeof e!="object"||e===null||ct in e)return e;const t=It(e);if(t!==Zr&&t!==Qr)return e;var r=new Map,n=Gr(e),i=P(0),s=$e,o=l=>{if($e===s)return l();var a=p,f=$e;M(null),Sr(s);var u=l();return M(a),Sr(f),u};return n&&r.set("length",P(e.length)),new Proxy(e,{defineProperty(l,a,f){(!("value"in f)||f.configurable===!1||f.enumerable===!1||f.writable===!1)&&vn();var u=r.get(a);return u===void 0?o(()=>{var d=P(f.value);return r.set(a,d),d}):x(u,f.value,!0),!0},deleteProperty(l,a){var f=r.get(a);if(f===void 0){if(a in l){const u=o(()=>P(A));r.set(a,u),Le(i)}}else x(f,A),Le(i);return!0},get(l,a,f){if(a===ct)return e;var u=r.get(a),d=a in l;if(u===void 0&&(!d||xe(l,a)?.writable)&&(u=o(()=>{var v=ie(d?l[a]:A),h=P(v);return h}),r.set(a,u)),u!==void 0){var c=_(u);return c===A?void 0:c}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=_(u))}else if(f===void 0){var d=r.get(a),c=d?.v;if(d!==void 0&&c!==A)return{enumerable:!0,configurable:!0,value:c,writable:!0}}return f},has(l,a){if(a===ct)return!0;var f=r.get(a),u=f!==void 0&&f.v!==A||Reflect.has(l,a);if(f!==void 0||b!==null&&(!u||xe(l,a)?.writable)){f===void 0&&(f=o(()=>{var c=u?ie(l[a]):A,v=P(c);return v}),r.set(a,f));var d=_(f);if(d===A)return!1}return u},set(l,a,f,u){var d=r.get(a),c=a in l;if(n&&a==="length")for(var v=f;v<d.v;v+=1){var h=r.get(v+"");h!==void 0?x(h,A):v in l&&(h=o(()=>P(A)),r.set(v+"",h))}if(d===void 0)(!c||xe(l,a)?.writable)&&(d=o(()=>P(void 0)),x(d,ie(f)),r.set(a,d));else{c=d.v!==A;var w=o(()=>ie(f));x(d,w)}var N=Reflect.getOwnPropertyDescriptor(l,a);if(N?.set&&N.set.call(u,f),!c){if(n&&typeof a=="string"){var j=r.get("length"),ee=Number(a);Number.isInteger(ee)&&ee>=j.v&&x(j,ee+1)}Le(i)}return!0},ownKeys(l){_(i);var a=Reflect.ownKeys(l).filter(d=>{var c=r.get(d);return c===void 0||c.v!==A});for(var[f,u]of r)u.v!==A&&!(f in l)&&a.push(f);return a},setPrototypeOf(){_n()}})}var or,lr,ar,fr;function mt(){if(or===void 0){or=window,lr=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;ar=xe(t,"firstChild").get,fr=xe(t,"nextSibling").get,jt(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),jt(r)&&(r.__t=void 0)}}function Z(e=""){return document.createTextNode(e)}function Oe(e){return ar.call(e)}function se(e){return fr.call(e)}function Fe(e,t){if(!y)return Oe(e);var r=Oe(m);if(r===null)r=m.appendChild(Z());else if(t&&r.nodeType!==Ie){var n=Z();return r?.before(n),F(n),n}return t&&rt(r),F(r),r}function Hn(e,t=!1){if(!y){var r=Oe(e);return r instanceof Comment&&r.data===""?se(r):r}if(t){if(m?.nodeType!==Ie){var n=Z();return m?.before(n),F(n),n}rt(m)}return m}function ur(e,t=1,r=!1){let n=y?m:e;for(var i;t--;)i=n,n=se(n);if(!y)return n;if(r){if(n?.nodeType!==Ie){var s=Z();return n===null?i?.after(s):n.before(s),F(s),s}rt(n)}return F(n),n}function Bn(e){e.textContent=""}function zn(){return!1}function wt(e,t,r){return document.createElementNS(Mt,e,void 0)}function rt(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===Ie;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function yt(e){var t=p,r=b;M(null),H(null);try{return e()}finally{M(t),H(r)}}function Vn(e){b===null&&(p===null&&cn(),un()),_e&&fn()}function Yn(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function Q(e,t){var r=b;r!==null&&(r.f&X)!==0&&(e|=X);var n={ctx:J,deps:null,nodes:null,f:e|O|L,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&Te)!==0)Ae!==null?Ae.push(n):re.ensure().schedule(n);else if(t!==null){try{Ce(n)}catch(o){throw C(n),o}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&(i.f&be)===0&&(i=i.first,(e&le)!==0&&(e&ke)!==0&&i!==null&&(i.f|=ke))}if(i!==null&&(i.parent=r,r!==null&&Yn(i,r),p!==null&&(p.f&k)!==0&&(e&ae)===0)){var s=p;(s.effects??=[]).push(i)}return n}function $t(){return p!==null&&!U}function cr(e){const t=Q(Ge,null);return S(t,T),t.teardown=e,t}function dr(e){Vn();var t=b.f,r=!p&&(t&K)!==0&&(t&fe)===0;if(r){var n=J;(n.e??=[]).push(e)}else return hr(e)}function hr(e){return Q(Te|nn,e)}function qn(e){re.ensure();const t=Q(ae|be,e);return()=>{C(t)}}function Un(e){re.ensure();const t=Q(ae|be,e);return(r={})=>new Promise(n=>{r.outro?Je(t,()=>{C(t),n(void 0)}):(C(t),n(void 0))})}function Gn(e){return Q(Te,e)}function Kn(e){return Q(ut|be,e)}function vr(e,t=0){return Q(Ge|t,e)}function Re(e,t=[],r=[],n=[]){Cn(n,t,r,i=>{Q(Ge,()=>e(...i.map(_)))})}function _r(e,t=0){var r=Q(le|t,e);return r}function oe(e){return Q(K|be,e)}function pr(e){var t=e.teardown;if(t!==null){const r=_e,n=p;yr(!0),M(null);try{t.call(null)}finally{yr(r),M(n)}}}function Et(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const i=r.ac;i!==null&&yt(()=>{i.abort(te)});var n=r.next;(r.f&ae)!==0?r.parent=null:C(r,t),r=n}}function Wn(e){for(var t=e.first;t!==null;){var r=t.next;(t.f&K)===0&&C(t),t=r}}function C(e,t=!0){var r=!1;(t||(e.f&rn)!==0)&&e.nodes!==null&&e.nodes.end!==null&&(Xn(e.nodes.start,e.nodes.end),r=!0),S(e,Lt),Et(e,t&&!r),Be(e,0);var n=e.nodes&&e.nodes.t;if(n!==null)for(const s of n)s.stop();pr(e),e.f^=Lt,e.f|=Y;var i=e.parent;i!==null&&i.first!==null&&br(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function Xn(e,t){for(;e!==null;){var r=e===t?null:se(e);e.remove(),e=r}}function br(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 Je(e,t,r=!0){var n=[];gr(e,n,!0);var i=()=>{r&&C(e),t&&t()},s=n.length;if(s>0){var o=()=>--s||i();for(var l of n)l.out(o)}else i()}function gr(e,t,r){if((e.f&X)===0){e.f^=X;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&ke)!==0||(i.f&K)!==0&&(e.f&le)!==0;gr(i,t,o?r:!1),i=s}}}function Zn(e){mr(e,!0)}function mr(e,t){if((e.f&X)!==0){e.f^=X,(e.f&T)===0&&(S(e,O),re.ensure().schedule(e));for(var r=e.first;r!==null;){var n=r.next,i=(r.f&ke)!==0||(r.f&K)!==0;mr(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 wr(e,t){if(e.nodes)for(var r=e.nodes.start,n=e.nodes.end;r!==null;){var i=r===n?null:se(r);t.append(r),r=i}}let nt=!1,_e=!1;function yr(e){_e=e}let p=null,U=!1;function M(e){p=e}let b=null;function H(e){b=e}let B=null;function $r(e){p!==null&&(B===null?B=[e]:B.push(e))}let I=null,D=0,z=null;function Qn(e){z=e}let Er=1,ye=0,$e=ye;function Sr(e){$e=e}function xr(){return++Er}function He(e){var t=e.f;if((t&O)!==0)return!0;if(t&k&&(e.f&=~ge),(t&W)!==0){for(var r=e.deps,n=r.length,i=0;i<n;i++){var s=r[i];if(He(s)&&rr(s),s.wv>e.wv)return!0}(t&L)!==0&&q===null&&S(e,T)}return!1}function Tr(e,t,r=!0){var n=e.reactions;if(n!==null&&!(B!==null&&Se.call(B,e)))for(var i=0;i<n.length;i++){var s=n[i];(s.f&k)!==0?Tr(s,t,!1):t===s&&(r?S(s,O):(s.f&T)!==0&&S(s,W),_t(s))}}function kr(e){var t=I,r=D,n=z,i=p,s=B,o=J,l=U,a=$e,f=e.f;I=null,D=0,z=null,p=(f&(K|ae))===0?e:null,B=null,Ne(e.ctx),U=!1,$e=++ye,e.ac!==null&&(yt(()=>{e.ac.abort(te)}),e.ac=null);try{e.f|=ft;var u=e.fn,d=u();e.f|=fe;var c=e.deps,v=$?.is_fork;if(I!==null){var h;if(v||Be(e,D),c!==null&&D>0)for(c.length=D+I.length,h=0;h<I.length;h++)c[D+h]=I[h];else e.deps=c=I;if($t()&&(e.f&L)!==0)for(h=D;h<c.length;h++)(c[h].reactions??=[]).push(e)}else!v&&c!==null&&D<c.length&&(Be(e,D),c.length=D);if(Vt()&&z!==null&&!U&&c!==null&&(e.f&(k|W|O))===0)for(h=0;h<z.length;h++)Tr(z[h],e);if(i!==null&&i!==e){if(ye++,i.deps!==null)for(let w=0;w<r;w+=1)i.deps[w].rv=ye;if(t!==null)for(const w of t)w.rv=ye;z!==null&&(n===null?n=z:n.push(...z))}return(e.f&ue)!==0&&(e.f^=ue),d}catch(w){return qt(w)}finally{e.f^=ft,I=t,D=r,z=n,p=i,B=s,Ne(o),U=l,$e=a}}function ei(e,t){let r=t.reactions;if(r!==null){var n=Kr.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&k)!==0&&(I===null||!Se.call(I,t))){var s=t;(s.f&L)!==0&&(s.f^=L,s.f&=~ge),dt(s),Ln(s),Be(s,0)}}function Be(e,t){var r=e.deps;if(r!==null)for(var n=t;n<r.length;n++)ei(e,r[n])}function Ce(e){var t=e.f;if((t&Y)===0){S(e,T);var r=b,n=nt;b=e,nt=!0;try{(t&(le|Dt))!==0?Wn(e):Et(e),pr(e);var i=kr(e);e.teardown=typeof i=="function"?i:null,e.wv=Er;var s;Ur&&En&&(e.f&O)!==0&&e.deps}finally{nt=n,b=r}}}function _(e){var t=e.f,r=(t&k)!==0;if(p!==null&&!U){var n=b!==null&&(b.f&Y)!==0;if(!n&&(B===null||!Se.call(B,e))){var i=p.deps;if((p.f&ft)!==0)e.rv<ye&&(e.rv=ye,I===null&&i!==null&&i[D]===e?D++:I===null?I=[e]:I.push(e));else{(p.deps??=[]).push(e);var s=e.reactions;s===null?e.reactions=[p]:Se.call(s,p)||s.push(p)}}}if(_e&&ve.has(e))return ve.get(e);if(r){var o=e;if(_e){var l=o.v;return((o.f&T)===0&&o.reactions!==null||Ar(o))&&(l=bt(o)),ve.set(o,l),l}var a=(o.f&L)===0&&!U&&p!==null&&(nt||(p.f&L)!==0),f=(o.f&fe)===0;He(o)&&(a&&(o.f|=L),rr(o)),a&&!f&&(nr(o),Nr(o))}if(q?.has(e))return q.get(e);if((e.f&ue)!==0)throw e.v;return e.v}function Nr(e){if(e.f|=L,e.deps!==null)for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&k)!==0&&(t.f&L)===0&&(nr(t),Nr(t))}function Ar(e){if(e.v===A)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(ve.has(t)||(t.f&k)!==0&&Ar(t))return!0;return!1}function ti(e){var t=U;try{return U=!0,e()}finally{U=t}}const it=Symbol("events"),ri=new Set,Or=new Set;function ni(e,t,r,n={}){function i(s){if(n.capture||St.call(t,s),!s.cancelBubble)return yt(()=>r?.call(this,s))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?we(()=>{t.addEventListener(e,i,n)}):t.addEventListener(e,i,n),i}function Rr(e,t,r,n,i){var s={capture:n,passive:i},o=ni(e,t,r,s);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&cr(()=>{t.removeEventListener(e,o,s)})}let Cr=null;function St(e){var t=this,r=t.ownerDocument,n=e.type,i=e.composedPath?.()||[],s=i[0]||e.target;Cr=e;var o=0,l=Cr===e&&e[it];if(l){var a=i.indexOf(l);if(a!==-1&&(t===document||t===window)){e[it]=t;return}var f=i.indexOf(t);if(f===-1)return;a<=f&&(o=a)}if(s=i[o]||e.target,s!==t){Ue(e,"currentTarget",{configurable:!0,get(){return s||r}});var u=p,d=b;M(null),H(null);try{for(var c,v=[];s!==null;){var h=s.assignedSlot||s.parentNode||s.host||null;try{var w=s[it]?.[n];w!=null&&(!s.disabled||e.target===s)&&w.call(s,e)}catch(N){c?v.push(N):c=N}if(e.cancelBubble||h===t||h===null)break;s=h}if(c){for(let N of v)queueMicrotask(()=>{throw N});throw c}}finally{e[it]=t,delete e.currentTarget,M(u),H(d)}}}const ii=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:e=>e});function si(e){return ii?.createHTML(e)??e}function oi(e){var t=wt("template");return t.innerHTML=si(e.replaceAll("<!>","<!---->")),t.content}function Me(e,t){var r=b;r.nodes===null&&(r.nodes={start:e,end:t,a:null,t:null})}function Mr(e,t){var r=(t&Yr)!==0,n=(t&qr)!==0,i,s=!e.startsWith("<!>");return()=>{if(y)return Me(m,null),m;i===void 0&&(i=oi(s?e:"<!>"+e),r||(i=Oe(i)));var o=n||lr?document.importNode(i,!0):i.cloneNode(!0);if(r){var l=Oe(o),a=o.lastChild;Me(l,a)}else Me(o,o);return o}}function li(e=""){if(!y){var t=Z(e+"");return Me(t,t),t}var r=m;return r.nodeType!==Ie?(r.before(r=Z()),F(r)):rt(r),Me(r,r),r}function st(e,t){if(y){var r=b;((r.f&fe)===0||r.nodes.end===null)&&(r.nodes.end=m),Xe();return}e!==null&&e.before(t)}const ai=["touchstart","touchmove"];function fi(e){return ai.includes(e)}function Ir(e,t){var r=t==null?"":typeof t=="object"?`${t}`:t;r!==(e.__t??=e.nodeValue)&&(e.__t=r,e.nodeValue=`${r}`)}function jr(e,t){return Pr(e,t)}function ui(e,t){mt(),t.intro=t.intro??!1;const r=t.target,n=y,i=m;try{for(var s=Oe(r);s&&(s.nodeType!==Ke||s.data!==At);)s=se(s);if(!s)throw Ee;ce(!0),F(s);const o=Pr(e,{...t,anchor:s});return ce(!1),o}catch(o){if(o instanceof Error&&o.message.split(`
2
- `).some(l=>l.startsWith("https://svelte.dev/e/")))throw o;return o!==Ee&&console.warn("Failed to hydrate: ",o),t.recover===!1&&hn(),mt(),Bn(r),ce(!1),jr(e,t)}finally{ce(n),F(i)}}const ot=new Map;function Pr(e,{target:t,anchor:r,props:n={},events:i,context:s,intro:o=!0,transformError:l}){mt();var a=void 0,f=Un(()=>{var u=r??t.appendChild(Z());On(u,{pending:()=>{}},v=>{Bt({});var h=J;if(s&&(h.c=s),i&&(n.$$events=i),y&&Me(v,null),a=e(v,n)||{},y&&(b.nodes.end=m,m===null||m.nodeType!==Ke||m.data!==Ct))throw We(),Ee;zt()},l);var d=new Set,c=v=>{for(var h=0;h<v.length;h++){var w=v[h];if(!d.has(w)){d.add(w);var N=fi(w);for(const G of[t,document]){var j=ot.get(G);j===void 0&&(j=new Map,ot.set(G,j));var ee=j.get(w);ee===void 0?(G.addEventListener(w,St,{passive:N}),j.set(w,1)):j.set(w,ee+1)}}}};return c(Wr(ri)),Or.add(c),()=>{for(var v of d)for(const N of[t,document]){var h=ot.get(N),w=h.get(v);--w==0?(N.removeEventListener(v,St),h.delete(v),h.size===0&&ot.delete(N)):h.set(v,w)}Or.delete(c),u!==r&&u.parentNode?.removeChild(u)}});return xt.set(a,f),a}let xt=new WeakMap;function ci(e,t){const r=xt.get(e);return r?(xt.delete(e),r(t)):Promise.resolve()}class di{anchor;#e=new Map;#r=new Map;#t=new Map;#i=new Set;#s=!0;constructor(t,r=!0){this.anchor=t,this.#s=r}#n=t=>{if(this.#e.has(t)){var r=this.#e.get(t),n=this.#r.get(r);if(n)Zn(n),this.#i.delete(r);else{var i=this.#t.get(r);i&&(this.#r.set(r,i.effect),this.#t.delete(r),i.fragment.lastChild.remove(),this.anchor.before(i.fragment),n=i.effect)}for(const[s,o]of this.#e){if(this.#e.delete(s),s===t)break;const l=this.#t.get(o);l&&(C(l.effect),this.#t.delete(o))}for(const[s,o]of this.#r){if(s===r||this.#i.has(s))continue;const l=()=>{if(Array.from(this.#e.values()).includes(s)){var f=document.createDocumentFragment();wr(o,f),f.append(Z()),this.#t.set(s,{effect:o,fragment:f})}else C(o);this.#i.delete(s),this.#r.delete(s)};this.#s||!n?(this.#i.add(s),Je(o,l,!1)):l()}}};#o=t=>{this.#e.delete(t);const r=Array.from(this.#e.values());for(const[n,i]of this.#t)r.includes(n)||(C(i.effect),this.#t.delete(n))};ensure(t,r){var n=$,i=zn();if(r&&!this.#r.has(t)&&!this.#t.has(t))if(i){var s=document.createDocumentFragment(),o=Z();s.append(o),this.#t.set(t,{effect:oe(()=>r(o)),fragment:s})}else this.#r.set(t,oe(()=>r(this.anchor)));if(this.#e.set(n,t),i){for(const[l,a]of this.#r)l===t?n.unskip_effect(a):n.skip_effect(a);for(const[l,a]of this.#t)l===t?n.unskip_effect(a.effect):n.skip_effect(a.effect);n.oncommit(this.#n),n.ondiscard(this.#o)}else y&&(this.anchor=m),this.#n(n)}}function hi(e,t,r=!1){var n;y&&(n=m,Xe());var i=new di(e),s=r?ke:0;function o(l,a){if(y){var f=wn(n);if(l!==parseInt(f.substring(1))){var u=Jt();F(u),i.anchor=u,ce(!1),i.ensure(l,a),ce(!0);return}}i.ensure(l,a)}_r(()=>{var l=!1;t((a,f=0)=>{l=!0,o(f,a)}),l||o(-1,null)},s)}function vi(e,t,r,n,i){y&&Xe();var s=t.$$slots?.[r],o=!1;s===!0&&(s=t[r],o=!0),s===void 0?i!==null&&i(e):s(e,o?()=>n:n)}function _i(e,t){Gn(()=>{var r=e.getRootNode(),n=r.host?r:r.head??r.ownerDocument.head;if(!n.querySelector("#"+t.hash)){const i=wt("style");i.id=t.hash,i.textContent=t.code,n.appendChild(i)}})}function pi(e,t,r){var n=""+e;return n}function Dr(e,t,r,n,i,s){var o=e.__className;if(y||o!==r||o===void 0){var l=pi(r);(!y||l!==e.getAttribute("class"))&&(l==null?e.removeAttribute("class"):e.className=l),e.__className=r}return s}const bi=Symbol("is custom element"),gi=Symbol("is html"),mi=ln?"link":"LINK";function wi(e,t,r,n){var i=yi(e);y&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName===mi)||i[t]!==(i[t]=r)&&(t==="loading"&&(e[on]=r),r==null?e.removeAttribute(t):typeof r!="string"&&Lr(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function ze(e,t,r){var n=p,i=b;let s=y;y&&ce(!1),M(null),H(null);try{t!=="style"&&(Tt.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.nodeName.toLowerCase())?Lr(e).includes(t):r&&typeof r=="object")?e[t]=r:wi(e,t,r==null?r:String(r))}finally{M(n),H(i),s&&ce(!0)}}function yi(e){return e.__attributes??={[bi]:e.nodeName.includes("-"),[gi]:e.namespaceURI===Mt}}var Tt=new Map;function Lr(e){var t=e.getAttribute("is")||e.nodeName,r=Tt.get(t);if(r)return r;Tt.set(t,r=[]);for(var n,i=e,s=Element.prototype;s!==i;){n=Xr(i);for(var o in n)n[o].set&&r.push(o);i=It(i)}return r}function kt(e,t,r,n){var i=n,s=!0,o=()=>(s&&(s=!1,i=n),i),l;l=e[t],l===void 0&&n!==void 0&&(l=o());var a;a=()=>{var c=e[t];return c===void 0?o():(s=!0,c)};var f=!1,u=pt(()=>(f=!1,a())),d=b;return(function(c,v){if(arguments.length>0){const h=v?_(u):c;return x(u,h),f=!0,i!==void 0&&(i=h),c}return _e&&f||(d.f&Y)!==0?u.v:_(u)})}function $i(e){return new Ei(e)}class Ei{#e;#r;constructor(t){var r=new Map,n=(s,o)=>{var l=Fn(o,!1,!1);return r.set(s,l),l};const i=new Proxy({...t.props||{},$$events:{}},{get(s,o){return _(r.get(o)??n(o,Reflect.get(s,o)))},has(s,o){return o===sn?!0:(_(r.get(o)??n(o,Reflect.get(s,o))),Reflect.has(s,o))},set(s,o,l){return x(r.get(o)??n(o,l),l),Reflect.set(s,o,l)}});this.#r=(t.hydrate?ui:jr)(t.component,{target:t.target,anchor:t.anchor,props:i,context:t.context,intro:t.intro??!1,recover:t.recover,transformError:t.transformError}),(!t?.props?.$$host||t.sync===!1)&&Qe(),this.#e=i.$$events;for(const s of Object.keys(this.#r))s==="$set"||s==="$destroy"||s==="$on"||Ue(this,s,{get(){return this.#r[s]},set(o){this.#r[s]=o},enumerable:!0});this.#r.$set=s=>{Object.assign(i,s)},this.#r.$destroy=()=>{ci(this.#r)}}$set(t){this.#r.$set(t)}$on(t,r){this.#e[t]=this.#e[t]||[];const n=(...i)=>r.call(this,...i);return this.#e[t].push(n),()=>{this.#e[t]=this.#e[t].filter(i=>i!==n)}}$destroy(){this.#r.$destroy()}}let Fr;typeof HTMLElement=="function"&&(Fr=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;$$shadowRoot=null;constructor(e,t,r){super(),this.$$ctor=e,this.$$s=t,r&&(this.$$shadowRoot=this.attachShadow(r))}addEventListener(e,t,r){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}super.addEventListener(e,t,r)}removeEventListener(e,t,r){if(super.removeEventListener(e,t,r),this.$$c){const n=this.$$l_u.get(t);n&&(n(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(n){return i=>{const s=wt("slot");n!=="default"&&(s.name=n),st(i,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},r=Si(this);for(const n of this.$$s)n in r&&(n==="default"&&!this.$$d.children?(this.$$d.children=e(n),t.default=!0):t[n]=e(n));for(const n of this.attributes){const i=this.$$g_p(n.name);i in this.$$d||(this.$$d[i]=lt(i,n.value,this.$$p_d,"toProp"))}for(const n in this.$$p_d)!(n in this.$$d)&&this[n]!==void 0&&(this.$$d[n]=this[n],delete this[n]);this.$$c=$i({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=qn(()=>{vr(()=>{this.$$r=!0;for(const n of qe(this.$$c)){if(!this.$$p_d[n]?.reflect)continue;this.$$d[n]=this.$$c[n];const i=lt(n,this.$$d[n],this.$$p_d,"toAttribute");i==null?this.removeAttribute(this.$$p_d[n].attribute||n):this.setAttribute(this.$$p_d[n].attribute||n,i)}this.$$r=!1})});for(const n in this.$$l)for(const i of this.$$l[n]){const s=this.$$c.$on(n,i);this.$$l_u.set(i,s)}this.$$l={}}}attributeChangedCallback(e,t,r){this.$$r||(e=this.$$g_p(e),this.$$d[e]=lt(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 qe(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function lt(e,t,r,n){const i=r[e]?.type;if(t=i==="Boolean"&&typeof t!="boolean"?t!=null:t,!n||!r[e])return t;if(n==="toAttribute")switch(i){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t??null;default:return t}else switch(i){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function Si(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function xi(e,t,r,n,i,s){let o=class extends Fr{constructor(){super(e,r,i),this.$$p_d=t}static get observedAttributes(){return qe(t).map(l=>(t[l].attribute||l).toLowerCase())}};return qe(t).forEach(l=>{Ue(o.prototype,l,{get(){return this.$$c&&l in this.$$c?this.$$c[l]:this.$$d[l]},set(a){a=lt(l,a,t),this.$$d[l]=a;var f=this.$$c;if(f){var u=xe(f,l)?.get;u?f[l]=a:f.$set({[l]:a})}}})}),n.forEach(l=>{Ue(o.prototype,l,{get(){return this.$$c?.[l]}})}),e.element=o,o}const Jr={version:"0.66.6"};function Hr(e){const t=e?.repoName.split("/")?.[1]||e?.repoName;if(!t)throw new Error("wrong componentPath "+e?.repoName);if(!e?.version)throw new Error("wrong version "+e?.version);const r=e?.iifePath||"main.iife.js";if(!document.getElementById(t+"-script"))try{const n=document.createElement("script");if(n.id=t+"-script",n.src=`https://cdn.jsdelivr.net/npm/${e.repoName}@${e.version}/${r}`,e?.local)n.src=`${e.local}`;else if(location.href.includes("localhost:6006")){const i=t.split("-")[0];n.src=`http://localhost:6006/webcomponents/${t.replace(i+"-","")}/${r}`}document.head.appendChild(n)}catch(n){console.warn(n)}}var Ti=Mr('<div part="invalid-feedback" class="invalid-feedback mb-1 svelte-1if0grr"> </div>'),ki=Mr('<div part="properties-container" class="properties-container svelte-1if0grr"><hb-table></hb-table> <hb-form><span class="slotted-submit svelte-1if0grr" slot="submit_button"><button type="button" class="btn btn-info svelte-1if0grr"><!></button></span></hb-form></div> <!>',3);const Ni={hash:"svelte-1if0grr",code:`@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");
1
+ (function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`}),typeof window<`u`&&((window.__svelte??={}).v??=new Set).add(`5`);var t={},n=Symbol(),r=`http://www.w3.org/1999/xhtml`,i=Array.isArray,a=Array.prototype.indexOf,o=Array.prototype.includes,s=Array.from,c=Object.keys,l=Object.defineProperty,u=Object.getOwnPropertyDescriptor,d=Object.getOwnPropertyDescriptors,f=Object.prototype,p=Array.prototype,m=Object.getPrototypeOf,h=Object.isExtensible,ee=()=>{};function g(e){for(var t=0;t<e.length;t++)e[t]()}function _(){var e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}var v=1024,y=2048,b=4096,te=8192,ne=16384,re=32768,ie=1<<25,ae=65536,oe=1<<19,se=1<<20,ce=65536,le=1<<21,ue=1<<22,de=1<<23,fe=Symbol(`$state`),pe=Symbol(`legacy props`),me=Symbol(``),x=new class extends Error{name=`StaleReactionError`;message="The reaction that called `getAbortSignal()` was re-run or destroyed"},he=!!globalThis.document?.contentType&&globalThis.document.contentType.includes(`xml`);function ge(){throw Error(`https://svelte.dev/e/async_derived_orphan`)}function _e(e){throw Error(`https://svelte.dev/e/effect_in_teardown`)}function ve(){throw Error(`https://svelte.dev/e/effect_in_unowned_derived`)}function ye(e){throw Error(`https://svelte.dev/e/effect_orphan`)}function be(){throw Error(`https://svelte.dev/e/effect_update_depth_exceeded`)}function xe(){throw Error(`https://svelte.dev/e/hydration_failed`)}function Se(e){throw Error(`https://svelte.dev/e/props_invalid_value`)}function Ce(){throw Error(`https://svelte.dev/e/state_descriptors_fixed`)}function we(){throw Error(`https://svelte.dev/e/state_prototype_fixed`)}function Te(){throw Error(`https://svelte.dev/e/state_unsafe_mutation`)}function Ee(){throw Error(`https://svelte.dev/e/svelte_boundary_reset_onerror`)}function De(e){console.warn(`https://svelte.dev/e/hydration_mismatch`)}function Oe(){console.warn(`https://svelte.dev/e/svelte_boundary_reset_noop`)}var S=!1;function C(e){S=e}var w;function T(e){if(e===null)throw De(),t;return w=e}function ke(){return T(z(w))}function Ae(e){if(S){if(z(w)!==null)throw De(),t;w=e}}function je(e=1){if(S){for(var t=e,n=w;t--;)n=z(n);w=n}}function Me(e=!0){for(var t=0,n=w;;){if(n.nodeType===8){var r=n.data;if(r===`]`){if(t===0)return n;--t}else (r===`[`||r===`[!`||r[0]===`[`&&!isNaN(Number(r.slice(1))))&&(t+=1)}var i=z(n);e&&n.remove(),n=i}}function Ne(e){if(!e||e.nodeType!==8)throw De(),t;return e.data}function Pe(e){return e===this.v}function Fe(e,t){return e==e?e!==t||typeof e==`object`&&!!e||typeof e==`function`:t==t}function Ie(e){return!Fe(e,this.v)}var E=!1,Le=!1,D=null;function Re(e){D=e}function ze(e,t=!1,n){D={p:D,i:!1,c:null,e:null,s:e,x:null,r:q,l:Le&&!t?{s:null,u:null,$:[]}:null}}function Be(e){var t=D,n=t.e;if(n!==null){t.e=null;for(var r of n)cn(r)}return e!==void 0&&(t.x=e),t.i=!0,D=t.p,e??{}}function Ve(){return!Le||D!==null&&D.l===null}var He=[];function Ue(){var e=He;He=[],g(e)}function We(e){if(He.length===0&&!tt){var t=He;queueMicrotask(()=>{t===He&&Ue()})}He.push(e)}function Ge(){for(;He.length>0;)Ue()}function Ke(e){var t=q;if(t===null)return W.f|=de,e;if(!(t.f&32768)&&!(t.f&4))throw e;O(e,t)}function O(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 qe=~(y|b|v);function k(e,t){e.f=e.f&qe|t}function Je(e){e.f&512||e.deps===null?k(e,v):k(e,b)}function Ye(e){if(e!==null)for(let t of e)!(t.f&2)||!(t.f&65536)||(t.f^=ce,Ye(t.deps))}function Xe(e,t,n){e.f&2048?t.add(e):e.f&4096&&n.add(e),Ye(e.deps),k(e,v)}var Ze=!1,Qe=!1;function $e(e){var t=Qe;try{return Qe=!1,[e(),Qe]}finally{Qe=t}}var A=new Set,j=null,M=null,et=null,tt=!1,nt=!1,rt=null,it=null,at=0,ot=1,st=class e{id=ot++;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)k(n,y),this.schedule(n);for(n of t.m)k(n,b),this.schedule(n)}}#p(){if(at++>1e3&&(A.delete(this),lt()),!this.#d()){for(let e of this.#o)this.#s.delete(e),k(e,y),this.schedule(e);for(let e of this.#s)k(e,b),this.schedule(e)}let t=this.#a;this.#a=[],this.apply();var n=rt=[],r=[],i=it=[];for(let e of t)try{this.#m(e,n,r)}catch(t){throw ht(e),t}if(j=null,i.length>0){var a=e.ensure();for(let e of i)a.schedule(e)}if(rt=null,it=null,this.#d()||this.#f()){this.#h(r),this.#h(n);for(let[e,t]of this.#c)mt(e,t)}else{this.#n.size===0&&A.delete(this),this.#o.clear(),this.#s.clear();for(let e of this.#e)e(this);this.#e.clear(),ut(r),ut(n),this.#i?.resolve()}var o=j;if(this.#a.length>0){let e=o??=this;e.#a.push(...this.#a.filter(t=>!e.#a.includes(t)))}o!==null&&(A.add(o),o.#p()),A.has(this)||this.#g()}#m(e,t,n){e.f^=v;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^=v:i&4?t.push(r):E&&i&16777224?n.push(r):In(r)&&(i&16&&this.#s.add(r),Vn(r));var o=r.first;if(o!==null){r=o;continue}}for(;r!==null;){var s=r.next;if(s!==null){r=s;break}r=r.parent}}}#h(e){for(var t=0;t<e.length;t+=1)Xe(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]),M?.set(e,e.v))}activate(){j=this}deactivate(){j=null,M=null}flush(){try{nt=!0,j=this,this.#p()}finally{at=0,et=null,rt=null,it=null,nt=!1,j=null,M=null,P.clear()}}discard(){for(let e of this.#t)e(this);this.#t.clear(),A.delete(this)}#g(){for(let c of A){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)dt(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 A)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,We(()=>{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??=_()).promise}static ensure(){if(j===null){let t=j=new e;nt||(A.add(j),tt||We(()=>{j===t&&t.flush()}))}return j}apply(){if(!E||!this.is_fork&&A.size===1){M=null;return}M=new Map;for(let[e,[t]]of this.current)M.set(e,t);for(let n of A)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)M.has(e)||M.set(e,t)}}schedule(e){if(et=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(rt!==null&&t===q&&(E||(W===null||!(W.f&2))&&!Ze))return;if(n&96){if(!(n&1024))return;t.f^=v}}this.#a.push(t)}};function ct(e){var t=tt;tt=!0;try{var n;for(e&&(j!==null&&!j.is_fork&&j.flush(),n=e());;){if(Ge(),j===null)return n;j.flush()}}finally{tt=t}}function lt(){try{be()}catch(e){O(e,et)}}var N=null;function ut(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if(!(r.f&24576)&&In(r)&&(N=new Set,Vn(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&bn(r),N?.size>0)){P.clear();for(let e of N){if(e.f&24576)continue;let t=[e],n=e.parent;for(;n!==null;)N.has(n)&&(N.delete(n),t.push(n)),n=n.parent;for(let e=t.length-1;e>=0;e--){let n=t[e];n.f&24576||Vn(n)}}N.clear()}}N=null}}function dt(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?dt(i,t,n,r):e&4194320&&!(e&2048)&&ft(i,t,r)&&(k(i,y),pt(i))}}function ft(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&&ft(r,t,n))return n.set(r,!0),!0}return n.set(e,!1),!1}function pt(e){j.schedule(e)}function mt(e,t){if(!(e.f&32&&e.f&1024)){e.f&2048?t.d.push(e):e.f&4096&&t.m.push(e),k(e,v);for(var n=e.first;n!==null;)mt(n,t),n=n.next}}function ht(e){k(e,v);for(var t=e.first;t!==null;)ht(t),t=t.next}function gt(e){let t=0,n=It(0),r;return()=>{an()&&($(n),pn(()=>(t===0&&(r=Wn(()=>e(()=>Bt(n)))),t+=1,()=>{We(()=>{--t,t===0&&(r?.(),r=void 0,Bt(n))})})))}}var _t=ae|oe;function vt(e,t,n,r){new yt(e,t,n,r)}var yt=class{parent;is_pending=!1;transform_error;#e;#t=S?w: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=gt(()=>(this.#m=It(this.#l),()=>{this.#m=null}));constructor(e,t,n,r){this.#e=e,this.#n=t,this.#r=e=>{var t=q;t.b=this,t.f|=128,n(e)},this.parent=q.b,this.transform_error=r??this.parent?.transform_error??(e=>e),this.#i=hn(()=>{if(S){let e=this.#t;ke();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()},_t),S&&(this.#e=w)}#g(){try{this.#a=V(()=>this.#r(this.#e))}catch(e){this.error(e)}}#_(e){let t=this.#n.failed;t&&(this.#s=V(()=>{t(this.#e,()=>e,()=>()=>{})}))}#v(){let e=this.#n.pending;e&&(this.is_pending=!0,this.#o=V(()=>e(this.#e)),We(()=>{var e=this.#c=document.createDocumentFragment(),t=R();e.append(t),this.#a=this.#x(()=>V(()=>this.#r(t))),this.#u===0&&(this.#e.before(e),this.#c=null,xn(this.#o,()=>{this.#o=null}),this.#b(j))}))}#y(){try{if(this.is_pending=this.has_pending_snippet(),this.#u=0,this.#l=0,this.#a=V(()=>{this.#r(this.#e)}),this.#u>0){var e=this.#c=document.createDocumentFragment();Tn(this.#a,e);let t=this.#n.pending;this.#o=V(()=>t(this.#e))}else this.#b(j)}catch(e){this.error(e)}}#b(e){this.is_pending=!1,e.transfer_effects(this.#f,this.#p)}defer_effect(e){Xe(e,this.#f,this.#p)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#n.pending}#x(e){var t=q,n=W,r=D;J(this.#i),K(this.#i),Re(this.#i.ctx);try{return st.ensure(),e()}catch(e){return Ke(e),null}finally{J(t),K(n),Re(r)}}#S(e,t){if(!this.has_pending_snippet()){this.parent&&this.parent.#S(e,t);return}this.#u+=e,this.#u===0&&(this.#b(t),this.#o&&xn(this.#o,()=>{this.#o=null}),this.#c&&=(this.#e.before(this.#c),null))}update_pending_count(e,t){this.#S(e,t),this.#l+=e,!(!this.#m||this.#d)&&(this.#d=!0,We(()=>{this.#d=!1,this.#m&&Rt(this.#m,this.#l)}))}get_effect_pending(){return this.#h(),$(this.#m)}error(e){var t=this.#n.onerror;let n=this.#n.failed;if(!t&&!n)throw e;this.#a&&=(H(this.#a),null),this.#o&&=(H(this.#o),null),this.#s&&=(H(this.#s),null),S&&(T(this.#t),je(),T(Me()));var r=!1,i=!1;let a=()=>{if(r){Oe();return}r=!0,i&&Ee(),this.#s!==null&&xn(this.#s,()=>{this.#s=null}),this.#x(()=>{this.#y()})},o=e=>{try{i=!0,t?.(e,a),i=!1}catch(e){O(e,this.#i&&this.#i.parent)}n&&(this.#s=this.#x(()=>{try{return V(()=>{var t=q;t.b=this,t.f|=128,n(this.#e,()=>e,()=>a)})}catch(e){return O(e,this.#i.parent),null}}))};We(()=>{var t;try{t=this.transform_error(e)}catch(e){O(e,this.#i&&this.#i.parent);return}typeof t==`object`&&t&&typeof t.then==`function`?t.then(o,e=>O(e,this.#i&&this.#i.parent)):o(t)})}};function bt(e,t,n,r){let i=Ve()?wt:Dt;var a=e.filter(e=>!e.settled);if(n.length===0&&a.length===0){r(t.map(i));return}var o=q,s=xt(),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||O(e,o)}St()}if(n.length===0){c.then(()=>l(t.map(i)));return}var u=Ct();function d(){Promise.all(n.map(e=>Tt(e))).then(e=>l([...t.map(i),...e])).catch(e=>O(e,o)).finally(()=>u())}c?c.then(()=>{s(),d(),St()}):d()}function xt(){var e=q,t=W,n=D,r=j;return function(i=!0){J(e),K(t),Re(n),i&&!(e.f&16384)&&(r?.activate(),r?.apply())}}function St(e=!0){J(null),K(null),Re(null),e&&j?.deactivate()}function Ct(){var e=q,t=e.b,n=j,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 wt(e){var t=2|y,r=W!==null&&W.f&2?W:null;return q!==null&&(q.f|=oe),{ctx:D,deps:null,effects:null,equals:Pe,f:t,fn:e,reactions:null,rv:0,v:n,wv:0,parent:r??q,ac:null}}function Tt(e,t,r){let i=q;i===null&&ge();var a=void 0,o=It(n),s=!W,c=new Map;return fn(()=>{var t=q,n=_();a=n.promise;try{Promise.resolve(e()).then(n.resolve,n.reject).finally(St)}catch(e){n.reject(e),St()}var r=j;if(s){if(t.f&32768)var l=Ct();if(i.b.is_rendered())c.get(r)?.reject(x),c.delete(r);else{for(let e of c.values())e.reject(x);c.clear()}c.set(r,n)}let u=(e,n=void 0)=>{if(l&&l(n===x),!(n===x||t.f&16384)){if(r.activate(),n)o.f|=de,Rt(o,n);else{o.f&8388608&&(o.f^=de),Rt(o,e);for(let[e,t]of c){if(c.delete(e),e===r)break;t.reject(x)}}r.deactivate()}};n.promise.then(u,e=>u(null,e||`unknown`))}),on(()=>{for(let e of c.values())e.reject(x)}),new Promise(e=>{function t(n){function r(){n===a?e(o):t(a)}n.then(r,r)}t(a)})}function Et(e){let t=wt(e);return E||kn(t),t}function Dt(e){let t=wt(e);return t.equals=Ie,t}function Ot(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)H(t[n])}}function kt(e){for(var t=e.parent;t!==null;){if(!(t.f&2))return t.f&16384?null:t;t=t.parent}return null}function At(e){var t,n=q;J(kt(e));try{e.f&=~ce,Ot(e),t=Rn(e)}finally{J(n)}return t}function jt(e){var t=e.v,n=At(e);if(!e.equals(n)&&(e.wv=Fn(),(!j?.is_fork||e.deps===null)&&(e.v=n,j?.capture(e,t,!0),e.deps===null))){k(e,v);return}U||(M===null?Je(e):(an()||j?.is_fork)&&M.set(e,n))}function Mt(e){if(e.effects!==null)for(let t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(x),t.teardown=ee,t.ac=null,Bn(t,0),_n(t))}function Nt(e){if(e.effects!==null)for(let t of e.effects)t.teardown&&Vn(t)}var Pt=new Set,P=new Map,Ft=!1;function It(e,t){return{f:0,v:e,reactions:null,equals:Pe,rv:0,wv:0}}function F(e,t){let n=It(e,t);return kn(n),n}function Lt(e,t=!1,n=!0){let r=It(e);return t||(r.equals=Ie),Le&&n&&D!==null&&D.l!==null&&(D.l.s??=[]).push(r),r}function I(e,t,n=!1){return W!==null&&(!G||W.f&131072)&&Ve()&&W.f&4325394&&(Y===null||!o.call(Y,e))&&Te(),Rt(e,n?L(t):t,it)}function Rt(e,t,n=null){if(!e.equals(t)){var r=e.v;U?P.set(e,t):P.set(e,r),e.v=t;var i=st.ensure();if(i.capture(e,r),e.f&2){let t=e;e.f&2048&&At(t),M===null&&Je(t)}e.wv=Fn(),Vt(e,y,n),Ve()&&q!==null&&q.f&1024&&!(q.f&96)&&(Q===null?An([e]):Q.push(e)),!i.is_fork&&Pt.size>0&&!Ft&&zt()}return t}function zt(){Ft=!1;for(let e of Pt)e.f&1024&&k(e,b),In(e)&&Vn(e);Pt.clear()}function Bt(e){I(e,e.v+1)}function Vt(e,t,n){var r=e.reactions;if(r!==null)for(var i=Ve(),a=r.length,o=0;o<a;o++){var s=r[o],c=s.f;if(!(!i&&s===q)){var l=(c&y)===0;if(l&&k(s,t),c&2){var u=s;M?.delete(u),c&65536||(c&512&&(s.f|=ce),Vt(u,b,n))}else if(l){var d=s;c&16&&N!==null&&N.add(d),n===null?pt(d):n.push(d)}}}}function L(e){if(typeof e!=`object`||!e||fe in e)return e;let t=m(e);if(t!==f&&t!==p)return e;var r=new Map,a=i(e),o=F(0),s=null,c=Nn,l=e=>{if(Nn===c)return e();var t=W,n=Nn;K(null),Pn(c);var r=e();return K(t),Pn(n),r};return a&&r.set(`length`,F(e.length,s)),new Proxy(e,{defineProperty(e,t,n){(!(`value`in n)||n.configurable===!1||n.enumerable===!1||n.writable===!1)&&Ce();var i=r.get(t);return i===void 0?l(()=>{var e=F(n.value,s);return r.set(t,e),e}):I(i,n.value,!0),!0},deleteProperty(e,t){var i=r.get(t);if(i===void 0){if(t in e){let e=l(()=>F(n,s));r.set(t,e),Bt(o)}}else I(i,n),Bt(o);return!0},get(t,i,a){if(i===fe)return e;var o=r.get(i),c=i in t;if(o===void 0&&(!c||u(t,i)?.writable)&&(o=l(()=>F(L(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===fe)return!0;var i=r.get(t),a=i!==void 0&&i.v!==n||Reflect.has(e,t);return(i!==void 0||q!==null&&(!a||u(e,t)?.writable))&&(i===void 0&&(i=l(()=>F(a?L(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(()=>F(n,s)),r.set(p+``,m)):I(m,n)}if(d===void 0)(!f||u(e,t)?.writable)&&(d=l(()=>F(void 0,s)),I(d,L(i)),r.set(t,d));else{f=d.v!==n;var h=l(()=>L(i));I(d,h)}var ee=Reflect.getOwnPropertyDescriptor(e,t);if(ee?.set&&ee.set.call(c,i),!f){if(a&&typeof t==`string`){var g=r.get(`length`),_=Number(t);Number.isInteger(_)&&_>=g.v&&I(g,_+1)}Bt(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(){we()}})}var Ht,Ut,Wt,Gt;function Kt(){if(Ht===void 0){Ht=window,Ut=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;Wt=u(t,`firstChild`).get,Gt=u(t,`nextSibling`).get,h(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),h(n)&&(n.__t=void 0)}}function R(e=``){return document.createTextNode(e)}function qt(e){return Wt.call(e)}function z(e){return Gt.call(e)}function Jt(e,t){if(!S)return qt(e);var n=qt(w);if(n===null)n=w.appendChild(R());else if(t&&n.nodeType!==3){var r=R();return n?.before(r),T(r),r}return t&&en(n),T(n),n}function Yt(e,t=!1){if(!S){var n=qt(e);return n instanceof Comment&&n.data===``?z(n):n}if(t){if(w?.nodeType!==3){var r=R();return w?.before(r),T(r),r}en(w)}return w}function Xt(e,t=1,n=!1){let r=S?w:e;for(var i;t--;)i=r,r=z(r);if(!S)return r;if(n){if(r?.nodeType!==3){var a=R();return r===null?i?.after(a):r.before(a),T(a),a}en(r)}return T(r),r}function Zt(e){e.textContent=``}function Qt(){return!E||N!==null?!1:(q.f&re)!==0}function $t(e,t,n){let r=n?{is:n}:void 0;return document.createElementNS(t??`http://www.w3.org/1999/xhtml`,e,r)}function en(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===3;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function tn(e){var t=W,n=q;K(null),J(null);try{return e()}finally{K(t),J(n)}}function nn(e){q===null&&(W===null&&ye(e),ve()),U&&_e(e)}function rn(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function B(e,t){var n=q;n!==null&&n.f&8192&&(e|=te);var r={ctx:D,deps:null,nodes:null,f:e|y|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)rt===null?st.ensure().schedule(r):rt.push(r);else if(t!==null){try{Vn(r)}catch(e){throw H(r),e}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&!(i.f&524288)&&(i=i.first,e&16&&e&65536&&i!==null&&(i.f|=ae))}if(i!==null&&(i.parent=n,n!==null&&rn(i,n),W!==null&&W.f&2&&!(e&64))){var a=W;(a.effects??=[]).push(i)}return r}function an(){return W!==null&&!G}function on(e){let t=B(8,null);return k(t,v),t.teardown=e,t}function sn(e){nn(`$effect`);var t=q.f;if(!W&&t&32&&!(t&32768)){var n=D;(n.e??=[]).push(e)}else return cn(e)}function cn(e){return B(4|se,e)}function ln(e){st.ensure();let t=B(64|oe,e);return()=>{H(t)}}function un(e){st.ensure();let t=B(64|oe,e);return(e={})=>new Promise(n=>{e.outro?xn(t,()=>{H(t),n(void 0)}):(H(t),n(void 0))})}function dn(e){return B(4,e)}function fn(e){return B(ue|oe,e)}function pn(e,t=0){return B(8|t,e)}function mn(e,t=[],n=[],r=[]){bt(r,t,n,t=>{B(8,()=>e(...t.map($)))})}function hn(e,t=0){return B(16|t,e)}function V(e){return B(32|oe,e)}function gn(e){var t=e.teardown;if(t!==null){let e=U,n=W;On(!0),K(null);try{t.call(null)}finally{On(e),K(n)}}}function _n(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){let e=n.ac;e!==null&&tn(()=>{e.abort(x)});var r=n.next;n.f&64?n.parent=null:H(n,t),n=r}}function vn(e){for(var t=e.first;t!==null;){var n=t.next;t.f&32||H(t),t=n}}function H(e,t=!0){var n=!1;(t||e.f&262144)&&e.nodes!==null&&e.nodes.end!==null&&(yn(e.nodes.start,e.nodes.end),n=!0),k(e,ie),_n(e,t&&!n),Bn(e,0);var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)e.stop();gn(e),e.f^=ie,e.f|=ne;var i=e.parent;i!==null&&i.first!==null&&bn(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function yn(e,t){for(;e!==null;){var n=e===t?null:z(e);e.remove(),e=n}}function bn(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function xn(e,t,n=!0){var r=[];Sn(e,r,!0);var i=()=>{n&&H(e),t&&t()},a=r.length;if(a>0){var o=()=>--a||i();for(var s of r)s.out(o)}else i()}function Sn(e,t,n){if(!(e.f&8192)){e.f^=te;var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)(e.is_global||n)&&t.push(e);for(var i=e.first;i!==null;){var a=i.next,o=(i.f&65536)!=0||(i.f&32)!=0&&(e.f&16)!=0;Sn(i,t,o?n:!1),i=a}}}function Cn(e){wn(e,!0)}function wn(e,t){if(e.f&8192){e.f^=te,e.f&1024||(k(e,y),st.ensure().schedule(e));for(var n=e.first;n!==null;){var r=n.next,i=(n.f&65536)!=0||(n.f&32)!=0;wn(n,i?t:!1),n=r}var a=e.nodes&&e.nodes.t;if(a!==null)for(let e of a)(e.is_global||t)&&e.in()}}function Tn(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var i=n===r?null:z(n);t.append(n),n=i}}var En=null,Dn=!1,U=!1;function On(e){U=e}var W=null,G=!1;function K(e){W=e}var q=null;function J(e){q=e}var Y=null;function kn(e){W!==null&&(!E||W.f&2)&&(Y===null?Y=[e]:Y.push(e))}var X=null,Z=0,Q=null;function An(e){Q=e}var jn=1,Mn=0,Nn=Mn;function Pn(e){Nn=e}function Fn(){return++jn}function In(e){var t=e.f;if(t&2048)return!0;if(t&2&&(e.f&=~ce),t&4096){for(var n=e.deps,r=n.length,i=0;i<r;i++){var a=n[i];if(In(a)&&jt(a),a.wv>e.wv)return!0}t&512&&M===null&&k(e,v)}return!1}function Ln(e,t,n=!0){var r=e.reactions;if(r!==null&&!(!E&&Y!==null&&o.call(Y,e)))for(var i=0;i<r.length;i++){var a=r[i];a.f&2?Ln(a,t,!1):t===a&&(n?k(a,y):a.f&1024&&k(a,b),pt(a))}}function Rn(e){var t=X,n=Z,r=Q,i=W,a=Y,o=D,s=G,c=Nn,l=e.f;X=null,Z=0,Q=null,W=l&96?null:e,Y=null,Re(e.ctx),G=!1,Nn=++Mn,e.ac!==null&&(tn(()=>{e.ac.abort(x)}),e.ac=null);try{e.f|=le;var u=e.fn,d=u();e.f|=re;var f=e.deps,p=j?.is_fork;if(X!==null){var m;if(p||Bn(e,Z),f!==null&&Z>0)for(f.length=Z+X.length,m=0;m<X.length;m++)f[Z+m]=X[m];else e.deps=f=X;if(an()&&e.f&512)for(m=Z;m<f.length;m++)(f[m].reactions??=[]).push(e)}else !p&&f!==null&&Z<f.length&&(Bn(e,Z),f.length=Z);if(Ve()&&Q!==null&&!G&&f!==null&&!(e.f&6146))for(m=0;m<Q.length;m++)Ln(Q[m],e);if(i!==null&&i!==e){if(Mn++,i.deps!==null)for(let e=0;e<n;e+=1)i.deps[e].rv=Mn;if(t!==null)for(let e of t)e.rv=Mn;Q!==null&&(r===null?r=Q:r.push(...Q))}return e.f&8388608&&(e.f^=de),d}catch(e){return Ke(e)}finally{e.f^=le,X=t,Z=n,Q=r,W=i,Y=a,Re(o),G=s,Nn=c}}function zn(e,t){let n=t.reactions;if(n!==null){var r=a.call(n,e);if(r!==-1){var i=n.length-1;i===0?n=t.reactions=null:(n[r]=n[i],n.pop())}}if(n===null&&t.f&2&&(X===null||!o.call(X,t))){var s=t;s.f&512&&(s.f^=512,s.f&=~ce),Je(s),Mt(s),Bn(s,0)}}function Bn(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)zn(e,n[r])}function Vn(e){var t=e.f;if(!(t&16384)){k(e,v);var n=q,r=Dn;q=e,Dn=!0;try{t&16777232?vn(e):_n(e),gn(e);var i=Rn(e);e.teardown=typeof i==`function`?i:null,e.wv=jn}finally{Dn=r,q=n}}}function $(e){var t=(e.f&2)!=0;if(En?.add(e),W!==null&&!G&&!(q!==null&&q.f&16384)&&(Y===null||!o.call(Y,e))){var n=W.deps;if(W.f&2097152)e.rv<Mn&&(e.rv=Mn,X===null&&n!==null&&n[Z]===e?Z++:X===null?X=[e]:X.push(e));else{(W.deps??=[]).push(e);var r=e.reactions;r===null?e.reactions=[W]:o.call(r,W)||r.push(W)}}if(U&&P.has(e))return P.get(e);if(t){var i=e;if(U){var a=i.v;return(!(i.f&1024)&&i.reactions!==null||Un(i))&&(a=At(i)),P.set(i,a),a}var s=(i.f&512)==0&&!G&&W!==null&&(Dn||(W.f&512)!=0),c=(i.f&re)===0;In(i)&&(s&&(i.f|=512),jt(i)),s&&!c&&(Nt(i),Hn(i))}if(M?.has(e))return M.get(e);if(e.f&8388608)throw e.v;return e.v}function Hn(e){if(e.f|=512,e.deps!==null)for(let t of e.deps)(t.reactions??=[]).push(e),t.f&2&&!(t.f&512)&&(Nt(t),Hn(t))}function Un(e){if(e.v===n)return!0;if(e.deps===null)return!1;for(let t of e.deps)if(P.has(t)||t.f&2&&Un(t))return!0;return!1}function Wn(e){var t=G;try{return G=!0,e()}finally{G=t}}var Gn=Symbol(`events`),Kn=new Set,qn=new Set;function Jn(e,t,n,r={}){function i(e){if(r.capture||Zn.call(t,e),!e.cancelBubble)return tn(()=>n?.call(this,e))}return e.startsWith(`pointer`)||e.startsWith(`touch`)||e===`wheel`?We(()=>{t.addEventListener(e,i,r)}):t.addEventListener(e,i,r),i}function Yn(e,t,n,r,i){var a={capture:r,passive:i},o=Jn(e,t,n,a);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&on(()=>{t.removeEventListener(e,o,a)})}var Xn=null;function Zn(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],a=i[0]||e.target;Xn=e;var o=0,s=Xn===e&&e[Gn];if(s){var c=i.indexOf(s);if(c!==-1&&(t===document||t===window)){e[Gn]=t;return}var u=i.indexOf(t);if(u===-1)return;c<=u&&(o=c)}if(a=i[o]||e.target,a!==t){l(e,`currentTarget`,{configurable:!0,get(){return a||n}});var d=W,f=q;K(null),J(null);try{for(var p,m=[];a!==null;){var h=a.assignedSlot||a.parentNode||a.host||null;try{var ee=a[Gn]?.[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[Gn]=t,delete e.currentTarget,K(d),J(f)}}}var Qn=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy(`svelte-trusted-html`,{createHTML:e=>e});function $n(e){return Qn?.createHTML(e)??e}function er(e){var t=$t(`template`);return t.innerHTML=$n(e.replaceAll(`<!>`,`<!---->`)),t.content}function tr(e,t){var n=q;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function nr(e,t){var n=(t&1)!=0,r=(t&2)!=0,i,a=!e.startsWith(`<!>`);return()=>{if(S)return tr(w,null),w;i===void 0&&(i=er(a?e:`<!>`+e),n||(i=qt(i)));var t=r||Ut?document.importNode(i,!0):i.cloneNode(!0);if(n){var o=qt(t),s=t.lastChild;tr(o,s)}else tr(t,t);return t}}function rr(e=``){if(!S){var t=R(e+``);return tr(t,t),t}var n=w;return n.nodeType===3?en(n):(n.before(n=R()),T(n)),tr(n,n),n}function ir(e,t){if(S){var n=q;(!(n.f&32768)||n.nodes.end===null)&&(n.nodes.end=w),ke();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 ar=[`touchstart`,`touchmove`];function or(e){return ar.includes(e)}function sr(e,t){var n=t==null?``:typeof t==`object`?`${t}`:t;n!==(e.__t??=e.nodeValue)&&(e.__t=n,e.nodeValue=`${n}`)}function cr(e,t){return dr(e,t)}function lr(e,n){Kt(),n.intro=n.intro??!1;let r=n.target,i=S,a=w;try{for(var o=qt(r);o&&(o.nodeType!==8||o.data!==`[`);)o=z(o);if(!o)throw t;C(!0),T(o);let i=dr(e,{...n,anchor:o});return C(!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&&xe(),Kt(),Zt(r),C(!1),cr(e,n)}finally{C(i),T(a)}}var ur=new Map;function dr(e,{target:n,anchor:r,props:i={},events:a,context:o,intro:c=!0,transformError:l}){Kt();var u=void 0,d=un(()=>{var c=r??n.appendChild(R());vt(c,{pending:()=>{}},n=>{ze({});var r=D;if(o&&(r.c=o),a&&(i.$$events=a),S&&tr(n,null),u=e(n,i)||{},S&&(q.nodes.end=w,w===null||w.nodeType!==8||w.data!==`]`))throw De(),t;Be()},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=or(r);for(let e of[n,document]){var a=ur.get(e);a===void 0&&(a=new Map,ur.set(e,a));var o=a.get(r);o===void 0?(e.addEventListener(r,Zn,{passive:i}),a.set(r,1)):a.set(r,o+1)}}}};return f(s(Kn)),qn.add(f),()=>{for(var e of d)for(let r of[n,document]){var t=ur.get(r),i=t.get(e);--i==0?(r.removeEventListener(e,Zn),t.delete(e),t.size===0&&ur.delete(r)):t.set(e,i)}qn.delete(f),c!==r&&c.parentNode?.removeChild(c)}});return fr.set(u,d),u}var fr=new WeakMap;function pr(e,t){let n=fr.get(e);return n?(fr.delete(e),n(t)):Promise.resolve()}var mr=class{anchor;#e=new Map;#t=new Map;#n=new Map;#r=new Set;#i=!0;constructor(e,t=!0){this.anchor=e,this.#i=t}#a=e=>{if(this.#e.has(e)){var t=this.#e.get(e),n=this.#t.get(t);if(n)Cn(n),this.#r.delete(t);else{var r=this.#n.get(t);r&&(this.#t.set(t,r.effect),this.#n.delete(t),r.fragment.lastChild.remove(),this.anchor.before(r.fragment),n=r.effect)}for(let[t,n]of this.#e){if(this.#e.delete(t),t===e)break;let r=this.#n.get(n);r&&(H(r.effect),this.#n.delete(n))}for(let[e,r]of this.#t){if(e===t||this.#r.has(e))continue;let i=()=>{if(Array.from(this.#e.values()).includes(e)){var t=document.createDocumentFragment();Tn(r,t),t.append(R()),this.#n.set(e,{effect:r,fragment:t})}else H(r);this.#r.delete(e),this.#t.delete(e)};this.#i||!n?(this.#r.add(e),xn(r,i,!1)):i()}}};#o=e=>{this.#e.delete(e);let t=Array.from(this.#e.values());for(let[e,n]of this.#n)t.includes(e)||(H(n.effect),this.#n.delete(e))};ensure(e,t){var n=j,r=Qt();if(t&&!this.#t.has(e)&&!this.#n.has(e))if(r){var i=document.createDocumentFragment(),a=R();i.append(a),this.#n.set(e,{effect:V(()=>t(a)),fragment:i})}else this.#t.set(e,V(()=>t(this.anchor)));if(this.#e.set(n,e),r){for(let[t,r]of this.#t)t===e?n.unskip_effect(r):n.skip_effect(r);for(let[t,r]of this.#n)t===e?n.unskip_effect(r.effect):n.skip_effect(r.effect);n.oncommit(this.#a),n.ondiscard(this.#o)}else S&&(this.anchor=w),this.#a(n)}};function hr(e,t,n=!1){var r;S&&(r=w,ke());var i=new mr(e),a=n?ae:0;function o(e,t){if(S){var n=Ne(r);if(e!==parseInt(n.substring(1))){var a=Me();T(a),i.anchor=a,C(!1),i.ensure(e,t),C(!0);return}}i.ensure(e,t)}hn(()=>{var e=!1;t((t,n=0)=>{e=!0,o(n,t)}),e||o(-1,null)},a)}function gr(e,t,n,r,i){S&&ke();var a=t.$$slots?.[n],o=!1;a===!0&&(a=t[n===`default`?`children`:n],o=!0),a===void 0?i!==null&&i(e):a(e,o?()=>r:r)}function _r(e,t){dn(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector(`#`+t.hash)){let e=$t(`style`);e.id=t.hash,e.textContent=t.code,r.appendChild(e)}})}var vr=[...`
3
+ \r\f\xA0\v`];function yr(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||vr.includes(r[o-1]))&&(s===r.length||vr.includes(r[s]))?r=(o===0?``:r.substring(0,o))+r.substring(s+1):o=s}}return r===``?null:r}function br(e,t,n,r,i,a){var o=e.__className;if(S||o!==n||o===void 0){var s=yr(n,r,a);(!S||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 xr=Symbol(`is custom element`),Sr=Symbol(`is html`),Cr=he?`link`:`LINK`;function wr(e,t,n,r){var i=Er(e);S&&(i[t]=e.getAttribute(t),t===`src`||t===`srcset`||t===`href`&&e.nodeName===Cr)||i[t]!==(i[t]=n)&&(t===`loading`&&(e[me]=n),n==null?e.removeAttribute(t):typeof n!=`string`&&Or(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function Tr(e,t,n){var r=W,i=q;let a=S;S&&C(!1),K(null),J(null);try{t!==`style`&&(Dr.has(e.getAttribute(`is`)||e.nodeName)||!customElements||customElements.get(e.getAttribute(`is`)||e.nodeName.toLowerCase())?Or(e).includes(t):n&&typeof n==`object`)?e[t]=n:wr(e,t,n==null?n:String(n))}finally{K(r),J(i),a&&C(!0)}}function Er(e){return e.__attributes??={[xr]:e.nodeName.includes(`-`),[Sr]:e.namespaceURI===r}}var Dr=new Map;function Or(e){var t=e.getAttribute(`is`)||e.nodeName,n=Dr.get(t);if(n)return n;Dr.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 kr(e,t,n,r){var i=!Le||(n&2)!=0,a=(n&8)!=0,o=(n&16)!=0,s=r,c=!0,l=()=>(c&&(c=!1,s=o?Wn(r):r),s);let d;if(a){var f=fe in e||pe in e;d=u(e,t)?.set??(f&&t in e?n=>e[t]=n:void 0)}var p,m=!1;a?[p,m]=$e(()=>e[t]):p=e[t],p===void 0&&r!==void 0&&(p=l(),d&&(i&&Se(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 g=!1,_=(n&1?wt:Dt)(()=>(g=!1,h()));a&&$(_);var v=q;return(function(e,t){if(arguments.length>0){let n=t?$(_):i&&a?L(e):e;return I(_,n),g=!0,s!==void 0&&(s=n),e}return U&&g||v.f&16384?_.v:$(_)})}function Ar(e){return new jr(e)}var jr=class{#e;#t;constructor(e){var t=new Map,n=(e,n)=>{var r=Lt(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===pe?!0:($(t.get(r)??n(r,Reflect.get(e,r))),Reflect.has(e,r))},set(e,r,i){return I(t.get(r)??n(r,i),i),Reflect.set(e,r,i)}});this.#t=(e.hydrate?lr:cr)(e.component,{target:e.target,anchor:e.anchor,props:r,context:e.context,intro:e.intro??!1,recover:e.recover,transformError:e.transformError}),!E&&(!e?.props?.$$host||e.sync===!1)&&ct(),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=()=>{pr(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()}},Mr;typeof HTMLElement==`function`&&(Mr=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;$$shadowRoot=null;constructor(e,t,n){super(),this.$$ctor=e,this.$$s=t,n&&(this.$$shadowRoot=this.attachShadow(n))}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){let n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){let e=this.$$l_u.get(t);e&&(e(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){if(await Promise.resolve(),!this.$$cn||this.$$c)return;function e(e){return t=>{let n=$t(`slot`);e!==`default`&&(n.name=e),ir(t,n)}}let t={},n=Pr(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]=Nr(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=Ar({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=ln(()=>{pn(()=>{this.$$r=!0;for(let e of c(this.$$c)){if(!this.$$p_d[e]?.reflect)continue;this.$$d[e]=this.$$c[e];let t=Nr(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]=Nr(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 Nr(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 Pr(e){let t={};return e.childNodes.forEach(e=>{t[e.slot||`default`]=!0}),t}function Fr(e,t,n,r,i,a){let o=class extends Mr{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=Nr(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 Ir={name:`@htmlbricks/svelte-webcomponent`,private:!0,version:`0.66.8`,type:`module`,scripts:{dev:`vite --open`,build:`vite build`,"publish:wc":`node publish.ts`,"build:wc":`node build.ts`,"watch:wc":`node watch.ts`,preview:`vite preview`,check:`svelte-check --tsconfig ./tsconfig.app.json && tsc -p tsconfig.node.json`,"release:patch":`npm version patch && git push && git push --tags && npm run build:wc && npm run publish:wc`,"release:minor":`npm version minor && git push && git push --tags && npm run build:wc && npm run publish:wc`,"release:major":`npm version major && git push && git push --tags && npm run build:wc && npm run publish:wc`},devDependencies:{"@google-pay/button-element":`^3.2.1`,"@paypal/paypal-js":`^9.5.0`,"@sveltejs/vite-plugin-svelte":`^7.0.0`,"@tsconfig/svelte":`^5.0.8`,"@types/debounce":`^1.2.4`,"@types/node":`^24.10.1`,"@types/rgb-hex":`^3.0.0`,"chart.js":`^4.5.1`,"date-holidays":`^3.26.12`,dayjs:`^1.11.20`,"hls.js":`^1.6.15`,"html5-joystick-new":`^0.0.6`,ol:`^10.8.0`,"perfect-freehand":`^1.2.3`,prettier:`^3.8.1`,"rollup-plugin-terser":`^7.0.2`,"sass-embedded":`^1.98.0`,"simple-serverless-auth-client":`^0.0.6`,"simple-webrtc-element":`^0.0.1`,"simple-webrtc-element-whep":`^0.2.3`,"style-to-object":`^1.0.14`,svelte:`^5.55.0`,"svelte-check":`^4.4.5`,terser:`^5.46.1`,"ts-json-schema-generator":`^2.9.0`,typescript:`^6.0.2`,vite:`^8.0.3`},dependencies:{"@floating-ui/dom":`^1.7.6`,"@popperjs/core":`^2.11.8`,bootstrap:`^5.3.8`,debounce:`^3.0.0`,"html-colors":`^0.0.6`,marked:`^17.0.5`,raphael:`^2.3.0`,"rgb-hex":`^4.1.0`,"wc-js-utils":`^0.4.7`}};function Lr(e){let t=e?.repoName.split(`/`)?.[1]||e?.repoName;if(!t)throw Error(`wrong componentPath `+e?.repoName);if(!e?.version)throw Error(`wrong version `+e?.version);let n=e?.iifePath||`main.iife.js`;if(!document.getElementById(t+`-script`))try{let r=document.createElement(`script`);if(r.id=t+`-script`,r.src=`https://cdn.jsdelivr.net/npm/${e.repoName}@${e.version}/${n}`,e?.local)r.src=`${e.local}`;else if(location.href.includes(`localhost:6006`)){let e=t.split(`-`)[0];r.src=`http://localhost:6006/webcomponents/${t.replace(e+`-`,``)}/${n}`}document.head.appendChild(r)}catch(e){console.warn(e)}}var Rr=nr(`<div part="invalid-feedback" class="invalid-feedback mb-1 svelte-1if0grr"> </div>`),zr=nr(`<div part="properties-container" class="properties-container svelte-1if0grr"><hb-table></hb-table> <hb-form><span class="slotted-submit svelte-1if0grr" slot="submit_button"><button type="button" class="btn btn-info svelte-1if0grr"><!></button></span></hb-form></div> <!>`,3),Br={hash:`svelte-1if0grr`,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
@@ -74,5 +75,5 @@ button.svelte-1if0grr {margin:0;font-family:inherit;font-size:inherit;line-heigh
74
75
  @media (min-width: 1200px) {
75
76
  }
76
77
  @media (min-width: 1400px) {
77
- }:host {font-family:"Roboto", sans-serif;}.properties-container.svelte-1if0grr {padding:15px 10px 50px 10px;display:block;border:1px solid #e0e0e0;}hb-form.svelte-1if0grr::part(button_container) {float:right;}`};function Br(e,t){Bt(t,!0),_i(e,Ni);let r=kt(t,"schemaentry",7,void 0),n=kt(t,"show_validation",7,"no"),i=kt(t,"id",7,void 0);function s(g,E){t.$$host.dispatchEvent(new CustomEvent(g,{detail:E}))}let o=P(ie([])),l=P(ie([])),a=P(ie([]));const f=[{name:"delete",type:"icon",iconOrText:"x-octagon-fill"}];let u=P(ie([])),d=jn(()=>r()?r()?.required?!!(_(o)?.length&&typeof _(o)=="object"):!0:!1);function c(){if(x(o,_(o)&&Array.isArray(_(o))&&_(o).length?_(o):r()?.value?r().value:[],!0),r()?.id&&i(r().id),!_(u).length&&r().params?.schema?.length){const V={schema:r().params.schema,id:Date.now().toString()};x(u,[V],!0)}const g=[];if(_(o)&&Array.isArray(_(o))&&_(o).length)for(const R of _(o)){const V={_id:R._objId||Date.now().toString()};if(r()&&typeof r()=="object"&&r().params?.schema?.length)for(const pe of r().params.schema)if(pe.type==="row"&&pe.params?.columns?.length)for(const Ye of pe.params.columns)V[Ye.id]=R[Ye.id];else V[pe.id]=R[pe.id];g.push(V)}x(a,g,!0);const E=[];if(r()&&typeof r()=="object"&&r().params?.schema?.length)for(const R of r().params.schema)if(R.type==="row"&&R.params?.columns?.length)for(const V of R.params.columns)E.push({key:V.id,label:V.label||V.id});else E.push({key:R.id,label:R.label||R.id});x(l,E,!0)}let v=P(null);dr(()=>{if(typeof r()=="string")try{r()!==_(v)&&(r(JSON.parse(r())),x(v,JSON.stringify(r()),!0),c())}catch(g){console.error("error parsing JSON for schemaentry hb-input-array-objects",g)}console.log(_(d),_(o),"validinput4arrayobjects")}),dr(()=>{s("setVal",{value:_(o),valid:_(d),id:i()})});function h(g){const E=Date.now().toString(),R={schema:r()?.params?.schema,id:E};x(u,[..._(u),R],!0);const V=JSON.parse(JSON.stringify(_(a))),pe={_id:E};for(const Ye of Object.keys(g))pe[Ye]=g[Ye];g._objId=E,x(o,[...JSON.parse(JSON.stringify(_(o))),g],!0),V.push(pe),x(a,V,!0),console.log("addSchema",_(o),JSON.stringify(_(a)))}function w(g){x(u,JSON.parse(JSON.stringify(_(u).filter(E=>E.id!==g.itemId))),!0),x(a,JSON.parse(JSON.stringify(_(a).filter(E=>E._id!==g.itemId))),!0),x(o,JSON.parse(JSON.stringify(_(o).filter(E=>E._objId!==g.itemId))),!0)}Hr({repoName:"@htmlbricks/hb-form",version:Jr.version}),Hr({repoName:"@htmlbricks/hb-table",version:Jr.version});var N={get schemaentry(){return r()},set schemaentry(g=void 0){r(g),Qe()},get show_validation(){return n()},set show_validation(g="no"){n(g),Qe()},get id(){return i()},set id(g=void 0){i(g),Qe()}},j=ki(),ee=Hn(j),G=Fe(ee);ze(G,"disablepagination","yes"),Re(()=>ze(G,"actions",JSON.stringify(f))),Re(()=>ze(G,"headers",JSON.stringify(_(l)))),Re(()=>ze(G,"rows",JSON.stringify(_(a)))),Dr(G,1,"svelte-1if0grr");var Ve=ur(G,2);Re(()=>ze(Ve,"schema",JSON.stringify(_(u)?.length?_(u)[_(u).length-1].schema:[]))),Dr(Ve,1,"svelte-1if0grr");var zr=Fe(Ve),Vr=Fe(zr),Ai=Fe(Vr);vi(Ai,t,"add-object-label",{},g=>{var E=li();Re(()=>Ir(E,r()?.params?.addPropertyLabel?r().params.addPropertyLabel:"add Property")),st(g,E)}),je(Vr),je(zr),je(Ve),je(ee);var Oi=ur(ee,2);{var Ri=g=>{var E=Ti(),R=Fe(E,!0);je(E),Re(()=>Ir(R,r().validationTip)),st(g,E)};hi(Oi,g=>{r()?.validationTip&&n()==="yes"&&g(Ri)})}return Rr("tableaction",G,g=>{w(g.detail)}),Rr("submit",Ve,g=>{h(g.detail)}),st(e,j),zt(N)}customElements.define("hb-input-array-objects",xi(Br,{schemaentry:{},show_validation:{},id:{}},["add-object-label"],[],{mode:"open"})),Nt.Component=Br,Object.defineProperty(Nt,Symbol.toStringTag,{value:"Module"})})(this["input-array-objects"]=this["input-array-objects"]||{});
78
- //# sourceMappingURL=main.iife.js.map
78
+ }:host {font-family:"Roboto", sans-serif;}.properties-container.svelte-1if0grr {padding:15px 10px 50px 10px;display:block;border:1px solid #e0e0e0;}hb-form.svelte-1if0grr::part(button_container) {float:right;}`};function Vr(e,t){ze(t,!0),_r(e,Br);let n=kr(t,`schemaentry`,7,void 0),r=kr(t,`show_validation`,7,`no`),i=kr(t,`id`,7,void 0);function a(e,n){t.$$host.dispatchEvent(new CustomEvent(e,{detail:n}))}let o=F(L([])),s=F(L([])),c=F(L([])),l=[{name:`delete`,type:`icon`,iconOrText:`x-octagon-fill`}],u=F(L([])),d=Et(()=>n()?n()?.required?!!($(o)?.length&&typeof $(o)==`object`):!0:!1);function f(){I(o,$(o)&&Array.isArray($(o))&&$(o).length?$(o):n()?.value?n().value:[],!0),n()?.id&&i(n().id),!$(u).length&&n().params?.schema?.length&&I(u,[{schema:n().params.schema,id:Date.now().toString()}],!0);let e=[];if($(o)&&Array.isArray($(o))&&$(o).length)for(let t of $(o)){let r={_id:t._objId||Date.now().toString()};if(n()&&typeof n()==`object`&&n().params?.schema?.length)for(let e of n().params.schema)if(e.type===`row`&&e.params?.columns?.length)for(let n of e.params.columns)r[n.id]=t[n.id];else r[e.id]=t[e.id];e.push(r)}I(c,e,!0);let t=[];if(n()&&typeof n()==`object`&&n().params?.schema?.length)for(let e of n().params.schema)if(e.type===`row`&&e.params?.columns?.length)for(let n of e.params.columns)t.push({key:n.id,label:n.label||n.id});else t.push({key:e.id,label:e.label||e.id});I(s,t,!0)}let p=F(null);sn(()=>{if(typeof n()==`string`)try{n()!==$(p)&&(n(JSON.parse(n())),I(p,JSON.stringify(n()),!0),f())}catch(e){console.error(`error parsing JSON for schemaentry hb-input-array-objects`,e)}console.log($(d),$(o),`validinput4arrayobjects`)}),sn(()=>{a(`setVal`,{value:$(o),valid:$(d),id:i()})});function m(e){let t=Date.now().toString(),r={schema:n()?.params?.schema,id:t};I(u,[...$(u),r],!0);let i=JSON.parse(JSON.stringify($(c))),a={_id:t};for(let t of Object.keys(e))a[t]=e[t];e._objId=t,I(o,[...JSON.parse(JSON.stringify($(o))),e],!0),i.push(a),I(c,i,!0),console.log(`addSchema`,$(o),JSON.stringify($(c)))}function h(e){I(u,JSON.parse(JSON.stringify($(u).filter(t=>t.id!==e.itemId))),!0),I(c,JSON.parse(JSON.stringify($(c).filter(t=>t._id!==e.itemId))),!0),I(o,JSON.parse(JSON.stringify($(o).filter(t=>t._objId!==e.itemId))),!0)}Lr({repoName:`@htmlbricks/hb-form`,version:Ir.version}),Lr({repoName:`@htmlbricks/hb-table`,version:Ir.version});var ee={get schemaentry(){return n()},set schemaentry(e=void 0){n(e),ct()},get show_validation(){return r()},set show_validation(e=`no`){r(e),ct()},get id(){return i()},set id(e=void 0){i(e),ct()}},g=zr(),_=Yt(g),v=Jt(_);Tr(v,`disablepagination`,`yes`),mn(()=>Tr(v,`actions`,JSON.stringify(l))),mn(()=>Tr(v,`headers`,JSON.stringify($(s)))),mn(()=>Tr(v,`rows`,JSON.stringify($(c)))),br(v,1,`svelte-1if0grr`);var y=Xt(v,2);mn(()=>Tr(y,`schema`,JSON.stringify($(u)?.length?$(u)[$(u).length-1].schema:[]))),br(y,1,`svelte-1if0grr`);var b=Jt(y),te=Jt(b);gr(Jt(te),t,`add-object-label`,{},e=>{var t=rr();mn(()=>sr(t,n()?.params?.addPropertyLabel?n().params.addPropertyLabel:`add Property`)),ir(e,t)}),Ae(te),Ae(b),Ae(y),Ae(_);var ne=Xt(_,2),re=e=>{var t=Rr(),r=Jt(t,!0);Ae(t),mn(()=>sr(r,n().validationTip)),ir(e,t)};return hr(ne,e=>{n()?.validationTip&&r()===`yes`&&e(re)}),Yn(`tableaction`,v,e=>{h(e.detail)}),Yn(`submit`,y,e=>{m(e.detail)}),ir(e,g),Be(ee)}customElements.define(`hb-input-array-objects`,Fr(Vr,{schemaentry:{},show_validation:{},id:{}},[`add-object-label`],[],{mode:`open`})),e.Component=Vr})(this[`input-array-objects`]=this[`input-array-objects`]||{});
79
+ //# sourceMappingURL=main.iife.js.map