@htmlbricks/hb-form 0.66.5 → 0.66.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/main.iife.js CHANGED
@@ -1,5 +1,6 @@
1
- (function(Pn){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const ti=1,ni=2,Jn=4,ri=8,ii=16,si=1,oi=2,Bn="[",Xt="[!",Hn="[?",Zt="]",at={},W=Symbol(),zn="http://www.w3.org/1999/xhtml",ai=!1;var Yn=Array.isArray,li=Array.prototype.indexOf,lt=Array.prototype.includes,Rt=Array.from,Mt=Object.keys,It=Object.defineProperty,ut=Object.getOwnPropertyDescriptor,ui=Object.getOwnPropertyDescriptors,fi=Object.prototype,ci=Array.prototype,Un=Object.getPrototypeOf,Gn=Object.isExtensible;const di=()=>{};function hi(e){for(var t=0;t<e.length;t++)e[t]()}function Kn(){var e,t,n=new Promise((r,i)=>{e=r,t=i});return{promise:n,resolve:e,reject:t}}const U=2,ft=4,Vt=8,Wn=1<<24,Re=16,ge=32,Me=64,Qt=128,ce=512,Y=1024,Z=2048,xe=4096,oe=8192,de=16384,Ie=32768,Xn=1<<25,ct=65536,Zn=1<<17,vi=1<<18,We=1<<19,pi=1<<20,ke=1<<25,Xe=65536,en=1<<21,tn=1<<22,Ve=1<<23,nn=Symbol("$state"),_i=Symbol("legacy props"),bi=Symbol(""),$e=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},mi=!!globalThis.document?.contentType&&globalThis.document.contentType.includes("xml"),Dt=3,jt=8;function gi(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function wi(e,t,n){throw new Error("https://svelte.dev/e/each_key_duplicate")}function yi(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function ji(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Ei(e){throw new Error("https://svelte.dev/e/effect_orphan")}function xi(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function ki(){throw new Error("https://svelte.dev/e/hydration_failed")}function Ni(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Si(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function $i(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Ti(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function Lt(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function qi(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let R=!1;function we(e){R=e}let I;function re(e){if(e===null)throw Lt(),at;return I=e}function Et(){return re(Ne(I))}function Te(e){if(R){if(Ne(I)!==null)throw Lt(),at;I=e}}function Oi(e=1){if(R){for(var t=e,n=I;t--;)n=Ne(n);I=n}}function Ft(e=!0){for(var t=0,n=I;;){if(n.nodeType===jt){var r=n.data;if(r===Zt){if(t===0)return n;t-=1}else(r===Bn||r===Xt||r[0]==="["&&!isNaN(Number(r.slice(1))))&&(t+=1)}var i=Ne(n);e&&n.remove(),n=i}}function Qn(e){if(!e||e.nodeType!==jt)throw Lt(),at;return e.data}function er(e){return e===this.v}function Ai(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function tr(e){return!Ai(e,this.v)}let Ci=!1,he=null;function dt(e){he=e}function nr(e,t=!1,n){he={p:he,i:!1,c:null,e:null,s:e,x:null,r:A,l:null}}function rr(e){var t=he,n=t.e;if(n!==null){t.e=null;for(var r of n)$r(r)}return e!==void 0&&(t.x=e),t.i=!0,he=t.p,e??{}}function ir(){return!0}let Ze=[];function sr(){var e=Ze;Ze=[],hi(e)}function De(e){if(Ze.length===0&&!xt){var t=Ze;queueMicrotask(()=>{t===Ze&&sr()})}Ze.push(e)}function Ri(){for(;Ze.length>0;)sr()}function or(e){var t=A;if(t===null)return O.f|=Ve,e;if((t.f&Ie)===0&&(t.f&ft)===0)throw e;Le(e,t)}function Le(e,t){for(;t!==null;){if((t.f&Qt)!==0){if((t.f&Ie)===0)throw e;try{t.b.error(e);return}catch(n){e=n}}t=t.parent}throw e}const Mi=-7169;function H(e,t){e.f=e.f&Mi|t}function rn(e){(e.f&ce)!==0||e.deps===null?H(e,Y):H(e,xe)}function ar(e){if(e!==null)for(const t of e)(t.f&U)===0||(t.f&Xe)===0||(t.f^=Xe,ar(t.deps))}function lr(e,t,n){(e.f&Z)!==0?t.add(e):(e.f&xe)!==0&&n.add(e),ar(e.deps),H(e,Y)}const Fe=new Set;let F=null,ye=null,sn=null,xt=!1,on=!1,ht=null,Pt=null;var ur=0;let Ii=1;class qe{id=Ii++;current=new Map;previous=new Map;#e=new Set;#n=new Set;#t=new Map;#i=new Map;#s=null;#r=[];#o=new Set;#a=new Set;#l=new Map;is_fork=!1;#c=!1;#u=new Set;#d(){return this.is_fork||this.#i.size>0}#v(){for(const r of this.#u)for(const i of r.#i.keys()){for(var t=!1,n=i;n.parent!==null;){if(this.#l.has(n)){t=!0;break}n=n.parent}if(!t)return!0}return!1}skip_effect(t){this.#l.has(t)||this.#l.set(t,{d:[],m:[]})}unskip_effect(t){var n=this.#l.get(t);if(n){this.#l.delete(t);for(var r of n.d)H(r,Z),this.schedule(r);for(r of n.m)H(r,xe),this.schedule(r)}}#h(){if(ur++>1e3&&(Fe.delete(this),Vi()),!this.#d()){for(const o of this.#o)this.#a.delete(o),H(o,Z),this.schedule(o);for(const o of this.#a)H(o,xe),this.schedule(o)}const t=this.#r;this.#r=[],this.apply();var n=ht=[],r=[],i=Pt=[];for(const o of t)try{this.#f(o,n,r)}catch(l){throw vr(o),l}if(F=null,i.length>0){var s=qe.ensure();for(const o of i)s.schedule(o)}if(ht=null,Pt=null,this.#d()||this.#v()){this.#p(r),this.#p(n);for(const[o,l]of this.#l)hr(o,l)}else{this.#t.size===0&&Fe.delete(this),this.#o.clear(),this.#a.clear();for(const o of this.#e)o(this);this.#e.clear(),fr(r),fr(n),this.#s?.resolve()}var a=F;if(this.#r.length>0){const o=a??=this;o.#r.push(...this.#r.filter(l=>!o.#r.includes(l)))}a!==null&&(Fe.add(a),a.#h()),Fe.has(this)||this.#_()}#f(t,n,r){t.f^=Y;for(var i=t.first;i!==null;){var s=i.f,a=(s&(ge|Me))!==0,o=a&&(s&Y)!==0,l=o||(s&oe)!==0||this.#l.has(i);if(!l&&i.fn!==null){a?i.f^=Y:(s&ft)!==0?n.push(i):St(i)&&((s&Re)!==0&&this.#a.add(i),pt(i));var u=i.first;if(u!==null){i=u;continue}}for(;i!==null;){var c=i.next;if(c!==null){i=c;break}i=i.parent}}}#p(t){for(var n=0;n<t.length;n+=1)lr(t[n],this.#o,this.#a)}capture(t,n,r=!1){n!==W&&!this.previous.has(t)&&this.previous.set(t,n),(t.f&Ve)===0&&(this.current.set(t,[t.v,r]),ye?.set(t,t.v))}activate(){F=this}deactivate(){F=null,ye=null}flush(){try{on=!0,F=this,this.#h()}finally{ur=0,sn=null,ht=null,Pt=null,on=!1,F=null,ye=null,Je.clear()}}discard(){for(const t of this.#n)t(this);this.#n.clear(),Fe.delete(this)}#_(){for(const u of Fe){var t=u.id<this.id,n=[];for(const[c,[_,v]]of this.current){if(u.current.has(c)){var r=u.current.get(c)[0];if(t&&_!==r)u.current.set(c,[_,v]);else continue}n.push(c)}var i=[...u.current.keys()].filter(c=>!this.current.has(c));if(i.length===0)t&&u.discard();else if(n.length>0){u.activate();var s=new Set,a=new Map;for(var o of n)cr(o,i,s,a);if(u.#r.length>0){u.apply();for(var l of u.#r)u.#f(l,[],[]);u.#r=[]}u.deactivate()}}for(const u of Fe)u.#u.has(this)&&(u.#u.delete(this),u.#u.size===0&&!u.#d()&&(u.activate(),u.#h()))}increment(t,n){let r=this.#t.get(n)??0;if(this.#t.set(n,r+1),t){let i=this.#i.get(n)??0;this.#i.set(n,i+1)}}decrement(t,n,r){let i=this.#t.get(n)??0;if(i===1?this.#t.delete(n):this.#t.set(n,i-1),t){let s=this.#i.get(n)??0;s===1?this.#i.delete(n):this.#i.set(n,s-1)}this.#c||r||(this.#c=!0,De(()=>{this.#c=!1,this.flush()}))}transfer_effects(t,n){for(const r of t)this.#o.add(r);for(const r of n)this.#a.add(r);t.clear(),n.clear()}oncommit(t){this.#e.add(t)}ondiscard(t){this.#n.add(t)}settled(){return(this.#s??=Kn()).promise}static ensure(){if(F===null){const t=F=new qe;on||(Fe.add(F),xt||De(()=>{F===t&&t.flush()}))}return F}apply(){{ye=null;return}}schedule(t){if(sn=t,t.b?.is_pending&&(t.f&(ft|Vt|Wn))!==0&&(t.f&Ie)===0){t.b.defer_effect(t);return}for(var n=t;n.parent!==null;){n=n.parent;var r=n.f;if(ht!==null&&n===A&&(O===null||(O.f&U)===0))return;if((r&(Me|ge))!==0){if((r&Y)===0)return;n.f^=Y}}this.#r.push(n)}}function Pe(e){var t=xt;xt=!0;try{for(var n;;){if(Ri(),F===null)return n;F.flush()}}finally{xt=t}}function Vi(){try{xi()}catch(e){Le(e,sn)}}let Oe=null;function fr(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if((r.f&(de|oe))===0&&St(r)&&(Oe=new Set,pt(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&Or(r),Oe?.size>0)){Je.clear();for(const i of Oe){if((i.f&(de|oe))!==0)continue;const s=[i];let a=i.parent;for(;a!==null;)Oe.has(a)&&(Oe.delete(a),s.push(a)),a=a.parent;for(let o=s.length-1;o>=0;o--){const l=s[o];(l.f&(de|oe))===0&&pt(l)}}Oe.clear()}}Oe=null}}function cr(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(const i of e.reactions){const s=i.f;(s&U)!==0?cr(i,t,n,r):(s&(tn|Re))!==0&&(s&Z)===0&&dr(i,t,r)&&(H(i,Z),an(i))}}function dr(e,t,n){const r=n.get(e);if(r!==void 0)return r;if(e.deps!==null)for(const i of e.deps){if(lt.call(t,i))return!0;if((i.f&U)!==0&&dr(i,t,n))return n.set(i,!0),!0}return n.set(e,!1),!1}function an(e){F.schedule(e)}function hr(e,t){if(!((e.f&ge)!==0&&(e.f&Y)!==0)){(e.f&Z)!==0?t.d.push(e):(e.f&xe)!==0&&t.m.push(e),H(e,Y);for(var n=e.first;n!==null;)hr(n,t),n=n.next}}function vr(e){H(e,Y);for(var t=e.first;t!==null;)vr(t),t=t.next}function Di(e){let t=0,n=Qe(0),r;return()=>{pn()&&(h(n),Tr(()=>(t===0&&(r=as(()=>e(()=>Nt(n)))),t+=1,()=>{De(()=>{t-=1,t===0&&(r?.(),r=void 0,Nt(n))})})))}}var Li=ct|We;function Fi(e,t,n,r){new Pi(e,t,n,r)}class Pi{parent;is_pending=!1;transform_error;#e;#n=R?I:null;#t;#i;#s;#r=null;#o=null;#a=null;#l=null;#c=0;#u=0;#d=!1;#v=new Set;#h=new Set;#f=null;#p=Di(()=>(this.#f=Qe(this.#c),()=>{this.#f=null}));constructor(t,n,r,i){this.#e=t,this.#t=n,this.#i=s=>{var a=A;a.b=this,a.f|=Qt,r(s)},this.parent=A.b,this.transform_error=i??this.parent?.transform_error??(s=>s),this.#s=_n(()=>{if(R){const s=this.#n;Et();const a=s.data===Xt;if(s.data.startsWith(Hn)){const l=JSON.parse(s.data.slice(Hn.length));this.#y(l)}else a?this.#j():this.#_()}else this.#g()},Li),R&&(this.#e=I)}#_(){try{this.#r=pe(()=>this.#i(this.#e))}catch(t){this.error(t)}}#y(t){const n=this.#t.failed;n&&(this.#a=pe(()=>{n(this.#e,()=>t,()=>()=>{})}))}#j(){const t=this.#t.pending;t&&(this.is_pending=!0,this.#o=pe(()=>t(this.#e)),De(()=>{var n=this.#l=document.createDocumentFragment(),r=le();n.append(r),this.#r=this.#m(()=>pe(()=>this.#i(r))),this.#u===0&&(this.#e.before(n),this.#l=null,tt(this.#o,()=>{this.#o=null}),this.#b(F))}))}#g(){try{if(this.is_pending=this.has_pending_snippet(),this.#u=0,this.#c=0,this.#r=pe(()=>{this.#i(this.#e)}),this.#u>0){var t=this.#l=document.createDocumentFragment();gn(this.#r,t);const n=this.#t.pending;this.#o=pe(()=>n(this.#e))}else this.#b(F)}catch(n){this.error(n)}}#b(t){this.is_pending=!1,t.transfer_effects(this.#v,this.#h)}defer_effect(t){lr(t,this.#v,this.#h)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#t.pending}#m(t){var n=A,r=O,i=he;_e(this.#s),ie(this.#s),dt(this.#s.ctx);try{return qe.ensure(),t()}catch(s){return or(s),null}finally{_e(n),ie(r),dt(i)}}#w(t,n){if(!this.has_pending_snippet()){this.parent&&this.parent.#w(t,n);return}this.#u+=t,this.#u===0&&(this.#b(n),this.#o&&tt(this.#o,()=>{this.#o=null}),this.#l&&(this.#e.before(this.#l),this.#l=null))}update_pending_count(t,n){this.#w(t,n),this.#c+=t,!(!this.#f||this.#d)&&(this.#d=!0,De(()=>{this.#d=!1,this.#f&&vt(this.#f,this.#c)}))}get_effect_pending(){return this.#p(),h(this.#f)}error(t){var n=this.#t.onerror;let r=this.#t.failed;if(!n&&!r)throw t;this.#r&&(Q(this.#r),this.#r=null),this.#o&&(Q(this.#o),this.#o=null),this.#a&&(Q(this.#a),this.#a=null),R&&(re(this.#n),Oi(),re(Ft()));var i=!1,s=!1;const a=()=>{if(i){qi();return}i=!0,s&&Ti(),this.#a!==null&&tt(this.#a,()=>{this.#a=null}),this.#m(()=>{this.#g()})},o=l=>{try{s=!0,n?.(l,a),s=!1}catch(u){Le(u,this.#s&&this.#s.parent)}r&&(this.#a=this.#m(()=>{try{return pe(()=>{var u=A;u.b=this,u.f|=Qt,r(this.#e,()=>l,()=>a)})}catch(u){return Le(u,this.#s.parent),null}}))};De(()=>{var l;try{l=this.transform_error(t)}catch(u){Le(u,this.#s&&this.#s.parent);return}l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(o,u=>Le(u,this.#s&&this.#s.parent)):o(l)})}}function Ji(e,t,n,r){const i=Bt;var s=e.filter(v=>!v.settled);if(n.length===0&&s.length===0){r(t.map(i));return}var a=A,o=Bi(),l=s.length===1?s[0].promise:s.length>1?Promise.all(s.map(v=>v.promise)):null;function u(v){o();try{r(v)}catch(p){(a.f&de)===0&&Le(p,a)}Jt()}if(n.length===0){l.then(()=>u(t.map(i)));return}var c=pr();function _(){Promise.all(n.map(v=>Hi(v))).then(v=>u([...t.map(i),...v])).catch(v=>Le(v,a)).finally(()=>c())}l?l.then(()=>{o(),_(),Jt()}):_()}function Bi(){var e=A,t=O,n=he,r=F;return function(s=!0){_e(e),ie(t),dt(n),s&&(e.f&de)===0&&(r?.activate(),r?.apply())}}function Jt(e=!0){_e(null),ie(null),dt(null),e&&F?.deactivate()}function pr(){var e=A,t=e.b,n=F,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 Bt(e){var t=U|Z,n=O!==null&&(O.f&U)!==0?O:null;return A!==null&&(A.f|=We),{ctx:he,deps:null,effects:null,equals:er,f:t,fn:e,reactions:null,rv:0,v:W,wv:0,parent:n??A,ac:null}}function Hi(e,t,n){let r=A;r===null&&gi();var i=void 0,s=Qe(W),a=!O,o=new Map;return ns(()=>{var l=A,u=Kn();i=u.promise;try{Promise.resolve(e()).then(u.resolve,u.reject).finally(Jt)}catch(p){u.reject(p),Jt()}var c=F;if(a){if((l.f&Ie)!==0)var _=pr();if(r.b.is_rendered())o.get(c)?.reject($e),o.delete(c);else{for(const p of o.values())p.reject($e);o.clear()}o.set(c,u)}const v=(p,y=void 0)=>{if(_){var C=y===$e;_(C)}if(!(y===$e||(l.f&de)!==0)){if(c.activate(),y)s.f|=Ve,vt(s,y);else{(s.f&Ve)!==0&&(s.f^=Ve),vt(s,p);for(const[m,M]of o){if(o.delete(m),m===c)break;M.reject($e)}}c.deactivate()}};u.promise.then(v,p=>v(null,p||"unknown"))}),Sr(()=>{for(const l of o.values())l.reject($e)}),new Promise(l=>{function u(c){function _(){c===i?l(s):u(i)}c.then(_,_)}u(i)})}function kt(e){const t=Bt(e);return Mr(t),t}function zi(e){const t=Bt(e);return t.equals=tr,t}function Yi(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)Q(t[n])}}function Ui(e){for(var t=e.parent;t!==null;){if((t.f&U)===0)return(t.f&de)===0?t:null;t=t.parent}return null}function ln(e){var t,n=A;_e(Ui(e));try{e.f&=~Xe,Yi(e),t=Fr(e)}finally{_e(n)}return t}function _r(e){var t=e.v,n=ln(e);if(!e.equals(n)&&(e.wv=Dr(),(!F?.is_fork||e.deps===null)&&(e.v=n,F?.capture(e,t,!0),e.deps===null))){H(e,Y);return}ze||(ye!==null?(pn()||F?.is_fork)&&ye.set(e,n):rn(e))}function Gi(e){if(e.effects!==null)for(const t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort($e),t.teardown=di,t.ac=null,$t(t,0),bn(t))}function br(e){if(e.effects!==null)for(const t of e.effects)t.teardown&&pt(t)}let un=new Set;const Je=new Map;let mr=!1;function Qe(e,t){var n={f:0,v:e,reactions:null,equals:er,rv:0,wv:0};return n}function ve(e,t){const n=Qe(e);return Mr(n),n}function gr(e,t=!1,n=!0){const r=Qe(e);return t||(r.equals=tr),r}function ae(e,t,n=!1){O!==null&&(!je||(O.f&Zn)!==0)&&ir()&&(O.f&(U|Re|tn|Zn))!==0&&(be===null||!lt.call(be,e))&&$i();let r=n?Be(t):t;return vt(e,r,Pt)}function vt(e,t,n=null){if(!e.equals(t)){var r=e.v;ze?Je.set(e,t):Je.set(e,r),e.v=t;var i=qe.ensure();if(i.capture(e,r),(e.f&U)!==0){const s=e;(e.f&Z)!==0&&ln(s),ye===null&&rn(s)}e.wv=Dr(),wr(e,Z,n),A!==null&&(A.f&Y)!==0&&(A.f&(ge|Me))===0&&(me===null?ss([e]):me.push(e)),!i.is_fork&&un.size>0&&!mr&&Ki()}return t}function Ki(){mr=!1;for(const e of un)(e.f&Y)!==0&&H(e,xe),St(e)&&pt(e);un.clear()}function Nt(e){ae(e,e.v+1)}function wr(e,t,n){var r=e.reactions;if(r!==null)for(var i=r.length,s=0;s<i;s++){var a=r[s],o=a.f,l=(o&Z)===0;if(l&&H(a,t),(o&U)!==0){var u=a;ye?.delete(u),(o&Xe)===0&&(o&ce&&(a.f|=Xe),wr(u,xe,n))}else if(l){var c=a;(o&Re)!==0&&Oe!==null&&Oe.add(c),n!==null?n.push(c):an(c)}}}function Be(e){if(typeof e!="object"||e===null||nn in e)return e;const t=Un(e);if(t!==fi&&t!==ci)return e;var n=new Map,r=Yn(e),i=ve(0),s=rt,a=o=>{if(rt===s)return o();var l=O,u=rt;ie(null),Vr(s);var c=o();return ie(l),Vr(u),c};return r&&n.set("length",ve(e.length)),new Proxy(e,{defineProperty(o,l,u){(!("value"in u)||u.configurable===!1||u.enumerable===!1||u.writable===!1)&&Ni();var c=n.get(l);return c===void 0?a(()=>{var _=ve(u.value);return n.set(l,_),_}):ae(c,u.value,!0),!0},deleteProperty(o,l){var u=n.get(l);if(u===void 0){if(l in o){const c=a(()=>ve(W));n.set(l,c),Nt(i)}}else ae(u,W),Nt(i);return!0},get(o,l,u){if(l===nn)return e;var c=n.get(l),_=l in o;if(c===void 0&&(!_||ut(o,l)?.writable)&&(c=a(()=>{var p=Be(_?o[l]:W),y=ve(p);return y}),n.set(l,c)),c!==void 0){var v=h(c);return v===W?void 0:v}return Reflect.get(o,l,u)},getOwnPropertyDescriptor(o,l){var u=Reflect.getOwnPropertyDescriptor(o,l);if(u&&"value"in u){var c=n.get(l);c&&(u.value=h(c))}else if(u===void 0){var _=n.get(l),v=_?.v;if(_!==void 0&&v!==W)return{enumerable:!0,configurable:!0,value:v,writable:!0}}return u},has(o,l){if(l===nn)return!0;var u=n.get(l),c=u!==void 0&&u.v!==W||Reflect.has(o,l);if(u!==void 0||A!==null&&(!c||ut(o,l)?.writable)){u===void 0&&(u=a(()=>{var v=c?Be(o[l]):W,p=ve(v);return p}),n.set(l,u));var _=h(u);if(_===W)return!1}return c},set(o,l,u,c){var _=n.get(l),v=l in o;if(r&&l==="length")for(var p=u;p<_.v;p+=1){var y=n.get(p+"");y!==void 0?ae(y,W):p in o&&(y=a(()=>ve(W)),n.set(p+"",y))}if(_===void 0)(!v||ut(o,l)?.writable)&&(_=a(()=>ve(void 0)),ae(_,Be(u)),n.set(l,_));else{v=_.v!==W;var C=a(()=>Be(u));ae(_,C)}var m=Reflect.getOwnPropertyDescriptor(o,l);if(m?.set&&m.set.call(c,u),!v){if(r&&typeof l=="string"){var M=n.get("length"),B=Number(l);Number.isInteger(B)&&B>=M.v&&ae(M,B+1)}Nt(i)}return!0},ownKeys(o){h(i);var l=Reflect.ownKeys(o).filter(_=>{var v=n.get(_);return v===void 0||v.v!==W});for(var[u,c]of n)c.v!==W&&!(u in o)&&l.push(u);return l},setPrototypeOf(){Si()}})}var yr,jr,Er,xr;function fn(){if(yr===void 0){yr=window,jr=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;Er=ut(t,"firstChild").get,xr=ut(t,"nextSibling").get,Gn(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),Gn(n)&&(n.__t=void 0)}}function le(e=""){return document.createTextNode(e)}function et(e){return Er.call(e)}function Ne(e){return xr.call(e)}function He(e,t){if(!R)return et(e);var n=et(I);return n===null&&(n=I.appendChild(le())),re(n),n}function cn(e,t=!1){if(!R){var n=et(e);return n instanceof Comment&&n.data===""?Ne(n):n}if(t){if(I?.nodeType!==Dt){var r=le();return I?.before(r),re(r),r}hn(I)}return I}function Ht(e,t=1,n=!1){let r=R?I:e;for(var i;t--;)i=r,r=Ne(r);if(!R)return r;if(n){if(r?.nodeType!==Dt){var s=le();return r===null?i?.after(s):r.before(s),re(s),s}hn(r)}return re(r),r}function kr(e){e.textContent=""}function Nr(){return!1}function dn(e,t,n){return document.createElementNS(zn,e,void 0)}function hn(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===Dt;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function vn(e){var t=O,n=A;ie(null),_e(null);try{return e()}finally{ie(t),_e(n)}}function Wi(e){A===null&&(O===null&&Ei(),ji()),ze&&yi()}function Xi(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function Se(e,t){var n=A;n!==null&&(n.f&oe)!==0&&(e|=oe);var r={ctx:he,deps:null,nodes:null,f:e|Z|ce,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&ft)!==0)ht!==null?ht.push(r):qe.ensure().schedule(r);else if(t!==null){try{pt(r)}catch(a){throw Q(r),a}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&(i.f&We)===0&&(i=i.first,(e&Re)!==0&&(e&ct)!==0&&i!==null&&(i.f|=ct))}if(i!==null&&(i.parent=n,n!==null&&Xi(i,n),O!==null&&(O.f&U)!==0&&(e&Me)===0)){var s=O;(s.effects??=[]).push(i)}return r}function pn(){return O!==null&&!je}function Sr(e){const t=Se(Vt,null);return H(t,Y),t.teardown=e,t}function Zi(e){Wi();var t=A.f,n=!O&&(t&ge)!==0&&(t&Ie)===0;if(n){var r=he;(r.e??=[]).push(e)}else return $r(e)}function $r(e){return Se(ft|pi,e)}function Qi(e){qe.ensure();const t=Se(Me|We,e);return()=>{Q(t)}}function es(e){qe.ensure();const t=Se(Me|We,e);return(n={})=>new Promise(r=>{n.outro?tt(t,()=>{Q(t),r(void 0)}):(Q(t),r(void 0))})}function ts(e){return Se(ft,e)}function ns(e){return Se(tn|We,e)}function Tr(e,t=0){return Se(Vt|t,e)}function g(e,t=[],n=[],r=[]){Ji(r,t,n,i=>{Se(Vt,()=>e(...i.map(h)))})}function _n(e,t=0){var n=Se(Re|t,e);return n}function pe(e){return Se(ge|We,e)}function qr(e){var t=e.teardown;if(t!==null){const n=ze,r=O;Rr(!0),ie(null);try{t.call(null)}finally{Rr(n),ie(r)}}}function bn(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const i=n.ac;i!==null&&vn(()=>{i.abort($e)});var r=n.next;(n.f&Me)!==0?n.parent=null:Q(n,t),n=r}}function rs(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&ge)===0&&Q(t),t=n}}function Q(e,t=!0){var n=!1;(t||(e.f&vi)!==0)&&e.nodes!==null&&e.nodes.end!==null&&(is(e.nodes.start,e.nodes.end),n=!0),H(e,Xn),bn(e,t&&!n),$t(e,0);var r=e.nodes&&e.nodes.t;if(r!==null)for(const s of r)s.stop();qr(e),e.f^=Xn,e.f|=de;var i=e.parent;i!==null&&i.first!==null&&Or(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function is(e,t){for(;e!==null;){var n=e===t?null:Ne(e);e.remove(),e=n}}function Or(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 tt(e,t,n=!0){var r=[];Ar(e,r,!0);var i=()=>{n&&Q(e),t&&t()},s=r.length;if(s>0){var a=()=>--s||i();for(var o of r)o.out(a)}else i()}function Ar(e,t,n){if((e.f&oe)===0){e.f^=oe;var r=e.nodes&&e.nodes.t;if(r!==null)for(const o of r)(o.is_global||n)&&t.push(o);for(var i=e.first;i!==null;){var s=i.next,a=(i.f&ct)!==0||(i.f&ge)!==0&&(e.f&Re)!==0;Ar(i,t,a?n:!1),i=s}}}function mn(e){Cr(e,!0)}function Cr(e,t){if((e.f&oe)!==0){e.f^=oe,(e.f&Y)===0&&(H(e,Z),qe.ensure().schedule(e));for(var n=e.first;n!==null;){var r=n.next,i=(n.f&ct)!==0||(n.f&ge)!==0;Cr(n,i?t:!1),n=r}var s=e.nodes&&e.nodes.t;if(s!==null)for(const a of s)(a.is_global||t)&&a.in()}}function gn(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var i=n===r?null:Ne(n);t.append(n),n=i}}let zt=!1,ze=!1;function Rr(e){ze=e}let O=null,je=!1;function ie(e){O=e}let A=null;function _e(e){A=e}let be=null;function Mr(e){O!==null&&(be===null?be=[e]:be.push(e))}let se=null,ue=0,me=null;function ss(e){me=e}let Ir=1,nt=0,rt=nt;function Vr(e){rt=e}function Dr(){return++Ir}function St(e){var t=e.f;if((t&Z)!==0)return!0;if(t&U&&(e.f&=~Xe),(t&xe)!==0){for(var n=e.deps,r=n.length,i=0;i<r;i++){var s=n[i];if(St(s)&&_r(s),s.wv>e.wv)return!0}(t&ce)!==0&&ye===null&&H(e,Y)}return!1}function Lr(e,t,n=!0){var r=e.reactions;if(r!==null&&!(be!==null&&lt.call(be,e)))for(var i=0;i<r.length;i++){var s=r[i];(s.f&U)!==0?Lr(s,t,!1):t===s&&(n?H(s,Z):(s.f&Y)!==0&&H(s,xe),an(s))}}function Fr(e){var t=se,n=ue,r=me,i=O,s=be,a=he,o=je,l=rt,u=e.f;se=null,ue=0,me=null,O=(u&(ge|Me))===0?e:null,be=null,dt(e.ctx),je=!1,rt=++nt,e.ac!==null&&(vn(()=>{e.ac.abort($e)}),e.ac=null);try{e.f|=en;var c=e.fn,_=c();e.f|=Ie;var v=e.deps,p=F?.is_fork;if(se!==null){var y;if(p||$t(e,ue),v!==null&&ue>0)for(v.length=ue+se.length,y=0;y<se.length;y++)v[ue+y]=se[y];else e.deps=v=se;if(pn()&&(e.f&ce)!==0)for(y=ue;y<v.length;y++)(v[y].reactions??=[]).push(e)}else!p&&v!==null&&ue<v.length&&($t(e,ue),v.length=ue);if(ir()&&me!==null&&!je&&v!==null&&(e.f&(U|xe|Z))===0)for(y=0;y<me.length;y++)Lr(me[y],e);if(i!==null&&i!==e){if(nt++,i.deps!==null)for(let C=0;C<n;C+=1)i.deps[C].rv=nt;if(t!==null)for(const C of t)C.rv=nt;me!==null&&(r===null?r=me:r.push(...me))}return(e.f&Ve)!==0&&(e.f^=Ve),_}catch(C){return or(C)}finally{e.f^=en,se=t,ue=n,me=r,O=i,be=s,dt(a),je=o,rt=l}}function os(e,t){let n=t.reactions;if(n!==null){var r=li.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&U)!==0&&(se===null||!lt.call(se,t))){var s=t;(s.f&ce)!==0&&(s.f^=ce,s.f&=~Xe),rn(s),Gi(s),$t(s,0)}}function $t(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)os(e,n[r])}function pt(e){var t=e.f;if((t&de)===0){H(e,Y);var n=A,r=zt;A=e,zt=!0;try{(t&(Re|Wn))!==0?rs(e):bn(e),qr(e);var i=Fr(e);e.teardown=typeof i=="function"?i:null,e.wv=Ir;var s;ai&&Ci&&(e.f&Z)!==0&&e.deps}finally{zt=r,A=n}}}function h(e){var t=e.f,n=(t&U)!==0;if(O!==null&&!je){var r=A!==null&&(A.f&de)!==0;if(!r&&(be===null||!lt.call(be,e))){var i=O.deps;if((O.f&en)!==0)e.rv<nt&&(e.rv=nt,se===null&&i!==null&&i[ue]===e?ue++:se===null?se=[e]:se.push(e));else{(O.deps??=[]).push(e);var s=e.reactions;s===null?e.reactions=[O]:lt.call(s,O)||s.push(O)}}}if(ze&&Je.has(e))return Je.get(e);if(n){var a=e;if(ze){var o=a.v;return((a.f&Y)===0&&a.reactions!==null||Jr(a))&&(o=ln(a)),Je.set(a,o),o}var l=(a.f&ce)===0&&!je&&O!==null&&(zt||(O.f&ce)!==0),u=(a.f&Ie)===0;St(a)&&(l&&(a.f|=ce),_r(a)),l&&!u&&(br(a),Pr(a))}if(ye?.has(e))return ye.get(e);if((e.f&Ve)!==0)throw e.v;return e.v}function Pr(e){if(e.f|=ce,e.deps!==null)for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&U)!==0&&(t.f&ce)===0&&(br(t),Pr(t))}function Jr(e){if(e.v===W)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(Je.has(t)||(t.f&U)!==0&&Jr(t))return!0;return!1}function as(e){var t=je;try{return je=!0,e()}finally{je=t}}const Tt=Symbol("events"),Br=new Set,wn=new Set;function ls(e,t,n,r={}){function i(s){if(r.capture||yn.call(t,s),!s.cancelBubble)return vn(()=>n?.call(this,s))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?De(()=>{t.addEventListener(e,i,r)}):t.addEventListener(e,i,r),i}function $(e,t,n,r,i){var s={capture:r,passive:i},a=ls(e,t,n,s);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&Sr(()=>{t.removeEventListener(e,a,s)})}function us(e,t,n){(t[Tt]??={})[e]=n}function fs(e){for(var t=0;t<e.length;t++)Br.add(e[t]);for(var n of wn)n(e)}let Hr=null;function yn(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],s=i[0]||e.target;Hr=e;var a=0,o=Hr===e&&e[Tt];if(o){var l=i.indexOf(o);if(l!==-1&&(t===document||t===window)){e[Tt]=t;return}var u=i.indexOf(t);if(u===-1)return;l<=u&&(a=l)}if(s=i[a]||e.target,s!==t){It(e,"currentTarget",{configurable:!0,get(){return s||n}});var c=O,_=A;ie(null),_e(null);try{for(var v,p=[];s!==null;){var y=s.assignedSlot||s.parentNode||s.host||null;try{var C=s[Tt]?.[r];C!=null&&(!s.disabled||e.target===s)&&C.call(s,e)}catch(m){v?p.push(m):v=m}if(e.cancelBubble||y===t||y===null)break;s=y}if(v){for(let m of p)queueMicrotask(()=>{throw m});throw v}}finally{e[Tt]=t,delete e.currentTarget,ie(c),_e(_)}}}const cs=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:e=>e});function ds(e){return cs?.createHTML(e)??e}function hs(e){var t=dn("template");return t.innerHTML=ds(e.replaceAll("<!>","<!---->")),t.content}function Ye(e,t){var n=A;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function q(e,t){var n=(t&si)!==0,r=(t&oi)!==0,i,s=!e.startsWith("<!>");return()=>{if(R)return Ye(I,null),I;i===void 0&&(i=hs(s?e:"<!>"+e),n||(i=et(i)));var a=r||jr?document.importNode(i,!0):i.cloneNode(!0);if(n){var o=et(a),l=a.lastChild;Ye(o,l)}else Ye(a,a);return a}}function vs(e=""){if(!R){var t=le(e+"");return Ye(t,t),t}var n=I;return n.nodeType!==Dt?(n.before(n=le()),re(n)):hn(n),Ye(n,n),n}function zr(){if(R)return Ye(I,null),I;var e=document.createDocumentFragment(),t=document.createComment(""),n=le();return e.append(t,n),Ye(t,n),e}function S(e,t){if(R){var n=A;((n.f&Ie)===0||n.nodes.end===null)&&(n.nodes.end=I),Et();return}e!==null&&e.before(t)}const ps=["touchstart","touchmove"];function _s(e){return ps.includes(e)}function Yr(e,t){var n=t==null?"":typeof t=="object"?`${t}`:t;n!==(e.__t??=e.nodeValue)&&(e.__t=n,e.nodeValue=`${n}`)}function Ur(e,t){return Gr(e,t)}function bs(e,t){fn(),t.intro=t.intro??!1;const n=t.target,r=R,i=I;try{for(var s=et(n);s&&(s.nodeType!==jt||s.data!==Bn);)s=Ne(s);if(!s)throw at;we(!0),re(s);const a=Gr(e,{...t,anchor:s});return we(!1),a}catch(a){if(a instanceof Error&&a.message.split(`
2
- `).some(o=>o.startsWith("https://svelte.dev/e/")))throw a;return a!==at&&console.warn("Failed to hydrate: ",a),t.recover===!1&&ki(),fn(),kr(n),we(!1),Ur(e,t)}finally{we(r),re(i)}}const Yt=new Map;function Gr(e,{target:t,anchor:n,props:r={},events:i,context:s,intro:a=!0,transformError:o}){fn();var l=void 0,u=es(()=>{var c=n??t.appendChild(le());Fi(c,{pending:()=>{}},p=>{nr({});var y=he;if(s&&(y.c=s),i&&(r.$$events=i),R&&Ye(p,null),l=e(p,r)||{},R&&(A.nodes.end=I,I===null||I.nodeType!==jt||I.data!==Zt))throw Lt(),at;rr()},o);var _=new Set,v=p=>{for(var y=0;y<p.length;y++){var C=p[y];if(!_.has(C)){_.add(C);var m=_s(C);for(const P of[t,document]){var M=Yt.get(P);M===void 0&&(M=new Map,Yt.set(P,M));var B=M.get(C);B===void 0?(P.addEventListener(C,yn,{passive:m}),M.set(C,1)):M.set(C,B+1)}}}};return v(Rt(Br)),wn.add(v),()=>{for(var p of _)for(const m of[t,document]){var y=Yt.get(m),C=y.get(p);--C==0?(m.removeEventListener(p,yn),y.delete(p),y.size===0&&Yt.delete(m)):y.set(p,C)}wn.delete(v),c!==n&&c.parentNode?.removeChild(c)}});return jn.set(l,u),l}let jn=new WeakMap;function ms(e,t){const n=jn.get(e);return n?(jn.delete(e),n(t)):Promise.resolve()}class gs{anchor;#e=new Map;#n=new Map;#t=new Map;#i=new Set;#s=!0;constructor(t,n=!0){this.anchor=t,this.#s=n}#r=t=>{if(this.#e.has(t)){var n=this.#e.get(t),r=this.#n.get(n);if(r)mn(r),this.#i.delete(n);else{var i=this.#t.get(n);i&&(this.#n.set(n,i.effect),this.#t.delete(n),i.fragment.lastChild.remove(),this.anchor.before(i.fragment),r=i.effect)}for(const[s,a]of this.#e){if(this.#e.delete(s),s===t)break;const o=this.#t.get(a);o&&(Q(o.effect),this.#t.delete(a))}for(const[s,a]of this.#n){if(s===n||this.#i.has(s))continue;const o=()=>{if(Array.from(this.#e.values()).includes(s)){var u=document.createDocumentFragment();gn(a,u),u.append(le()),this.#t.set(s,{effect:a,fragment:u})}else Q(a);this.#i.delete(s),this.#n.delete(s)};this.#s||!r?(this.#i.add(s),tt(a,o,!1)):o()}}};#o=t=>{this.#e.delete(t);const n=Array.from(this.#e.values());for(const[r,i]of this.#t)n.includes(r)||(Q(i.effect),this.#t.delete(r))};ensure(t,n){var r=F,i=Nr();if(n&&!this.#n.has(t)&&!this.#t.has(t))if(i){var s=document.createDocumentFragment(),a=le();s.append(a),this.#t.set(t,{effect:pe(()=>n(a)),fragment:s})}else this.#n.set(t,pe(()=>n(this.anchor)));if(this.#e.set(r,t),i){for(const[o,l]of this.#n)o===t?r.unskip_effect(l):r.skip_effect(l);for(const[o,l]of this.#t)o===t?r.unskip_effect(l.effect):r.skip_effect(l.effect);r.oncommit(this.#r),r.ondiscard(this.#o)}else R&&(this.anchor=I),this.#r(r)}}function Ue(e,t,n=!1){var r;R&&(r=I,Et());var i=new gs(e),s=n?ct:0;function a(o,l){if(R){var u=Qn(r);if(o!==parseInt(u.substring(1))){var c=Ft();re(c),i.anchor=c,we(!1),i.ensure(o,l),we(!0);return}}i.ensure(o,l)}_n(()=>{var o=!1;t((l,u=0)=>{o=!0,a(u,l)}),o||a(-1,null)},s)}function ws(e,t,n){for(var r=[],i=t.length,s,a=t.length,o=0;o<i;o++){let _=t[o];tt(_,()=>{if(s){if(s.pending.delete(_),s.done.add(_),s.pending.size===0){var v=e.outrogroups;En(e,Rt(s.done)),v.delete(s),v.size===0&&(e.outrogroups=null)}}else a-=1},!1)}if(a===0){var l=r.length===0&&n!==null;if(l){var u=n,c=u.parentNode;kr(c),c.append(u),e.items.clear()}En(e,t,!l)}else s={pending:new Set(t),done:new Set},(e.outrogroups??=new Set).add(s)}function En(e,t,n=!0){var r;if(e.pending.size>0){r=new Set;for(const a of e.pending.values())for(const o of a)r.add(e.items.get(o).e)}for(var i=0;i<t.length;i++){var s=t[i];if(r?.has(s)){s.f|=ke;const a=document.createDocumentFragment();gn(s,a)}else Q(t[i],n)}}var Kr;function Wr(e,t,n,r,i,s=null){var a=e,o=new Map,l=(t&Jn)!==0;if(l){var u=e;a=R?re(et(u)):u.appendChild(le())}R&&Et();var c=null,_=zi(()=>{var P=n();return Yn(P)?P:P==null?[]:Rt(P)}),v,p=new Map,y=!0;function C(P){(B.effect.f&de)===0&&(B.pending.delete(P),B.fallback=c,ys(B,v,a,t,r),c!==null&&(v.length===0?(c.f&ke)===0?mn(c):(c.f^=ke,Ot(c,null,a)):tt(c,()=>{c=null})))}function m(P){B.pending.delete(P)}var M=_n(()=>{v=h(_);var P=v.length;let ne=!1;if(R){var _t=Qn(a)===Xt;_t!==(P===0)&&(a=Ft(),re(a),we(!1),ne=!0)}for(var Ee=new Set,X=F,Ae=Nr(),J=0;J<P;J+=1){R&&I.nodeType===jt&&I.data===Zt&&(a=I,ne=!0,we(!1));var T=v[J],bt=r(T,J),fe=y?null:o.get(bt);fe?(fe.v&&vt(fe.v,T),fe.i&&vt(fe.i,J),Ae&&X.unskip_effect(fe.e)):(fe=js(o,y?a:Kr??=le(),T,bt,J,i,t,n),y||(fe.e.f|=ke),o.set(bt,fe)),Ee.add(bt)}if(P===0&&s&&!c&&(y?c=pe(()=>s(a)):(c=pe(()=>s(Kr??=le())),c.f|=ke)),P>Ee.size&&wi(),R&&P>0&&re(Ft()),!y)if(p.set(X,Ee),Ae){for(const[Sn,$n]of o)Ee.has(Sn)||X.skip_effect($n.e);X.oncommit(C),X.ondiscard(m)}else C(X);ne&&we(!0),h(_)}),B={effect:M,items:o,pending:p,outrogroups:null,fallback:c};y=!1,R&&(a=I)}function qt(e){for(;e!==null&&(e.f&ge)===0;)e=e.next;return e}function ys(e,t,n,r,i){var s=(r&ri)!==0,a=t.length,o=e.items,l=qt(e.effect.first),u,c=null,_,v=[],p=[],y,C,m,M;if(s)for(M=0;M<a;M+=1)y=t[M],C=i(y,M),m=o.get(C).e,(m.f&ke)===0&&(m.nodes?.a?.measure(),(_??=new Set).add(m));for(M=0;M<a;M+=1){if(y=t[M],C=i(y,M),m=o.get(C).e,e.outrogroups!==null)for(const T of e.outrogroups)T.pending.delete(m),T.done.delete(m);if((m.f&oe)!==0&&(mn(m),s&&(m.nodes?.a?.unfix(),(_??=new Set).delete(m))),(m.f&ke)!==0)if(m.f^=ke,m===l)Ot(m,null,n);else{var B=c?c.next:l;m===e.effect.last&&(e.effect.last=m.prev),m.prev&&(m.prev.next=m.next),m.next&&(m.next.prev=m.prev),Ge(e,c,m),Ge(e,m,B),Ot(m,B,n),c=m,v=[],p=[],l=qt(c.next);continue}if(m!==l){if(u!==void 0&&u.has(m)){if(v.length<p.length){var P=p[0],ne;c=P.prev;var _t=v[0],Ee=v[v.length-1];for(ne=0;ne<v.length;ne+=1)Ot(v[ne],P,n);for(ne=0;ne<p.length;ne+=1)u.delete(p[ne]);Ge(e,_t.prev,Ee.next),Ge(e,c,_t),Ge(e,Ee,P),l=P,c=Ee,M-=1,v=[],p=[]}else u.delete(m),Ot(m,l,n),Ge(e,m.prev,m.next),Ge(e,m,c===null?e.effect.first:c.next),Ge(e,c,m),c=m;continue}for(v=[],p=[];l!==null&&l!==m;)(u??=new Set).add(l),p.push(l),l=qt(l.next);if(l===null)continue}(m.f&ke)===0&&v.push(m),c=m,l=qt(m.next)}if(e.outrogroups!==null){for(const T of e.outrogroups)T.pending.size===0&&(En(e,Rt(T.done)),e.outrogroups?.delete(T));e.outrogroups.size===0&&(e.outrogroups=null)}if(l!==null||u!==void 0){var X=[];if(u!==void 0)for(m of u)(m.f&oe)===0&&X.push(m);for(;l!==null;)(l.f&oe)===0&&l!==e.fallback&&X.push(l),l=qt(l.next);var Ae=X.length;if(Ae>0){var J=(r&Jn)!==0&&a===0?n:null;if(s){for(M=0;M<Ae;M+=1)X[M].nodes?.a?.measure();for(M=0;M<Ae;M+=1)X[M].nodes?.a?.fix()}ws(e,X,J)}}s&&De(()=>{if(_!==void 0)for(m of _)m.nodes?.a?.apply()})}function js(e,t,n,r,i,s,a,o){var l=(a&ti)!==0?(a&ii)===0?gr(n,!1,!1):Qe(n):null,u=(a&ni)!==0?Qe(i):null;return{v:l,i:u,e:pe(()=>(s(t,l??n,u??i,o),()=>{e.delete(r)}))}}function Ot(e,t,n){if(e.nodes)for(var r=e.nodes.start,i=e.nodes.end,s=t&&(t.f&ke)===0?t.nodes.start:n;r!==null;){var a=Ne(r);if(s.before(r),r===i)return;r=a}}function Ge(e,t,n){t===null?e.effect.first=n:t.next=n,n===null?e.effect.last=t:n.prev=t}function xn(e,t,n,r,i){R&&Et();var s=t.$$slots?.[n],a=!1;s===!0&&(s=t[n==="default"?"children":n],a=!0),s===void 0?i!==null&&i(e):s(e,a?()=>r:r)}function Es(e,t){ts(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector("#"+t.hash)){const i=dn("style");i.id=t.hash,i.textContent=t.code,r.appendChild(i)}})}function xs(e,t,n){var r=e==null?"":""+e;return r===""?null:r}function ks(e,t){return e==null?null:String(e)}function L(e,t,n,r,i,s){var a=e.__className;if(R||a!==n||a===void 0){var o=xs(n);(!R||o!==e.getAttribute("class"))&&(o==null?e.removeAttribute("class"):e.className=o),e.__className=n}return s}function Ns(e,t,n,r){var i=e.__style;if(R||i!==t){var s=ks(t);(!R||s!==e.getAttribute("style"))&&(s==null?e.removeAttribute("style"):e.style.cssText=s),e.__style=t}return r}const Ss=Symbol("is custom element"),$s=Symbol("is html"),Ts=mi?"link":"LINK";function kn(e,t,n,r){var i=qs(e);R&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName===Ts)||i[t]!==(i[t]=n)&&(t==="loading"&&(e[bi]=n),n==null?e.removeAttribute(t):typeof n!="string"&&Xr(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function w(e,t,n){var r=O,i=A;let s=R;R&&we(!1),ie(null),_e(null);try{t!=="style"&&(Nn.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.nodeName.toLowerCase())?Xr(e).includes(t):n&&typeof n=="object")?e[t]=n:kn(e,t,n==null?n:String(n))}finally{ie(r),_e(i),s&&we(!0)}}function qs(e){return e.__attributes??={[Ss]:e.nodeName.includes("-"),[$s]:e.namespaceURI===zn}}var Nn=new Map;function Xr(e){var t=e.getAttribute("is")||e.nodeName,n=Nn.get(t);if(n)return n;Nn.set(t,n=[]);for(var r,i=e,s=Element.prototype;s!==i;){r=ui(i);for(var a in r)r[a].set&&n.push(a);i=Un(i)}return n}function it(e,t,n,r){var i=r,s=!0,a=()=>(s&&(s=!1,i=r),i),o;o=e[t],o===void 0&&r!==void 0&&(o=a());var l;l=()=>{var v=e[t];return v===void 0?a():(s=!0,v)};var u=!1,c=Bt(()=>(u=!1,l())),_=A;return(function(v,p){if(arguments.length>0){const y=p?h(c):v;return ae(c,y),u=!0,i!==void 0&&(i=y),v}return ze&&u||(_.f&de)!==0?c.v:h(c)})}function Os(e){return new As(e)}class As{#e;#n;constructor(t){var n=new Map,r=(s,a)=>{var o=gr(a,!1,!1);return n.set(s,o),o};const i=new Proxy({...t.props||{},$$events:{}},{get(s,a){return h(n.get(a)??r(a,Reflect.get(s,a)))},has(s,a){return a===_i?!0:(h(n.get(a)??r(a,Reflect.get(s,a))),Reflect.has(s,a))},set(s,a,o){return ae(n.get(a)??r(a,o),o),Reflect.set(s,a,o)}});this.#n=(t.hydrate?bs:Ur)(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)&&Pe(),this.#e=i.$$events;for(const s of Object.keys(this.#n))s==="$set"||s==="$destroy"||s==="$on"||It(this,s,{get(){return this.#n[s]},set(a){this.#n[s]=a},enumerable:!0});this.#n.$set=s=>{Object.assign(i,s)},this.#n.$destroy=()=>{ms(this.#n)}}$set(t){this.#n.$set(t)}$on(t,n){this.#e[t]=this.#e[t]||[];const r=(...i)=>n.call(this,...i);return this.#e[t].push(r),()=>{this.#e[t]=this.#e[t].filter(i=>i!==r)}}$destroy(){this.#n.$destroy()}}let Zr;typeof HTMLElement=="function"&&(Zr=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){const r=this.$$c.$on(e,t);this.$$l_u.set(t,r)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){const r=this.$$l_u.get(t);r&&(r(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(r){return i=>{const s=dn("slot");r!=="default"&&(s.name=r),S(i,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},n=Cs(this);for(const 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(const r of this.attributes){const i=this.$$g_p(r.name);i in this.$$d||(this.$$d[i]=Ut(i,r.value,this.$$p_d,"toProp"))}for(const r in this.$$p_d)!(r in this.$$d)&&this[r]!==void 0&&(this.$$d[r]=this[r],delete this[r]);this.$$c=Os({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=Qi(()=>{Tr(()=>{this.$$r=!0;for(const r of Mt(this.$$c)){if(!this.$$p_d[r]?.reflect)continue;this.$$d[r]=this.$$c[r];const i=Ut(r,this.$$d[r],this.$$p_d,"toAttribute");i==null?this.removeAttribute(this.$$p_d[r].attribute||r):this.setAttribute(this.$$p_d[r].attribute||r,i)}this.$$r=!1})});for(const r in this.$$l)for(const i of this.$$l[r]){const s=this.$$c.$on(r,i);this.$$l_u.set(i,s)}this.$$l={}}}attributeChangedCallback(e,t,n){this.$$r||(e=this.$$g_p(e),this.$$d[e]=Ut(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 Mt(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function Ut(e,t,n,r){const 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 Cs(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}function Rs(e,t,n,r,i,s){let a=class extends Zr{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return Mt(t).map(o=>(t[o].attribute||o).toLowerCase())}};return Mt(t).forEach(o=>{It(a.prototype,o,{get(){return this.$$c&&o in this.$$c?this.$$c[o]:this.$$d[o]},set(l){l=Ut(o,l,t),this.$$d[o]=l;var u=this.$$c;if(u){var c=ut(u,o)?.get;c?u[o]=l:u.$set({[o]:l})}}})}),r.forEach(o=>{It(a.prototype,o,{get(){return this.$$c?.[o]}})}),e.element=a,a}const ee={version:"0.66.5"},Ms=(e,t)=>e.reduce((n,r)=>{for(const i of t(r))(n[i]=n[i]||[]).push(r);return n},{});function te(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 n=e?.iifePath||"main.iife.js";if(!document.getElementById(t+"-script"))try{const 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")){const i=t.split("-")[0];r.src=`http://localhost:6006/webcomponents/${t.replace(i+"-","")}/${n}`}document.head.appendChild(r)}catch(r){console.warn(r)}}var Is=q('<label class="svelte-yjqjiw"> </label>'),Vs=q("<hb-input-array-objects></hb-input-array-objects>",2),Ds=q("<hb-input-array-tags></hb-input-array-tags>",2),Ls=q("<hb-input-text></hb-input-text>",2),Fs=q("<hb-input-color></hb-input-color>",2),Ps=q("<hb-input-range></hb-input-range>",2),Js=q("<hb-input-file></hb-input-file>",2),Bs=q("<hb-input-email></hb-input-email>",2),Hs=q("<hb-input-date></hb-input-date>",2),zs=q("<hb-input-datetime></hb-input-datetime>",2),Ys=q("<hb-input-checkbox></hb-input-checkbox>",2),Us=q("<hb-input-number></hb-input-number>",2),Gs=q("<hb-input-area></hb-input-area>",2),Ks=q("<hb-input-radio></hb-input-radio>",2),Ws=q("<hb-input-select></hb-input-select>",2),Xs=q("<hb-input-coords></hb-input-coords>",2),Zs=q('<div class="col mb-3 svelte-yjqjiw"><!> <!></div>'),Qs=q('<div class="row svelte-yjqjiw"></div>'),eo=q('<label class="svelte-yjqjiw"> </label>'),to=q("<hb-input-text></hb-input-text>",2),no=q("<hb-input-array-objects></hb-input-array-objects>",2),ro=q("<hb-input-array-tags></hb-input-array-tags>",2),io=q("<hb-input-color></hb-input-color>",2),so=q("<hb-input-range></hb-input-range>",2),oo=q("<hb-input-file></hb-input-file>",2),ao=q("<hb-input-email></hb-input-email>",2),lo=q("<hb-input-date></hb-input-date>",2),uo=q("<hb-input-datetime></hb-input-datetime>",2),fo=q("<hb-input-checkbox></hb-input-checkbox>",2),co=q("<hb-input-number></hb-input-number>",2),ho=q("<hb-input-area></hb-input-area>",2),vo=q("<hb-input-radio></hb-input-radio>",2),po=q("<hb-input-select></hb-input-select>",2),_o=q("<hb-input-coords></hb-input-coords>",2),bo=q('<div class="col mb-3 svelte-yjqjiw"><!> <!></div>'),mo=q('<button part="main_button" type="button" class="btn btn-primary svelte-yjqjiw"><!></button>'),go=q('<div id="button_container" part="button_container" class="svelte-yjqjiw"><span class="svelte-yjqjiw"><!></span> <!></div>'),wo=q("<!> <!>",1),yo=q('<div class="container-fluid svelte-yjqjiw"><!></div>');const jo={hash:"svelte-yjqjiw",code:`@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");
1
+ (function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`}),typeof window<`u`&&((window.__svelte??={}).v??=new Set).add(`5`);var t={},n=Symbol(),r=`http://www.w3.org/1999/xhtml`,i=Array.isArray,a=Array.prototype.indexOf,o=Array.prototype.includes,s=Array.from,c=Object.keys,l=Object.defineProperty,u=Object.getOwnPropertyDescriptor,d=Object.getOwnPropertyDescriptors,f=Object.prototype,p=Array.prototype,m=Object.getPrototypeOf,h=Object.isExtensible,g=()=>{};function _(e){for(var t=0;t<e.length;t++)e[t]()}function v(){var e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}var y=1024,b=2048,x=4096,S=8192,ee=16384,C=32768,w=1<<25,T=65536,te=1<<19,ne=1<<20,re=1<<25,ie=65536,ae=1<<21,oe=1<<22,se=1<<23,ce=Symbol(`$state`),le=Symbol(`legacy props`),ue=Symbol(``),de=new class extends Error{name=`StaleReactionError`;message="The reaction that called `getAbortSignal()` was re-run or destroyed"},fe=!!globalThis.document?.contentType&&globalThis.document.contentType.includes(`xml`);function pe(){throw Error(`https://svelte.dev/e/async_derived_orphan`)}function me(e,t,n){throw Error(`https://svelte.dev/e/each_key_duplicate`)}function he(e){throw Error(`https://svelte.dev/e/effect_in_teardown`)}function ge(){throw Error(`https://svelte.dev/e/effect_in_unowned_derived`)}function _e(e){throw Error(`https://svelte.dev/e/effect_orphan`)}function ve(){throw Error(`https://svelte.dev/e/effect_update_depth_exceeded`)}function ye(){throw Error(`https://svelte.dev/e/hydration_failed`)}function be(e){throw Error(`https://svelte.dev/e/props_invalid_value`)}function xe(){throw Error(`https://svelte.dev/e/state_descriptors_fixed`)}function Se(){throw Error(`https://svelte.dev/e/state_prototype_fixed`)}function Ce(){throw Error(`https://svelte.dev/e/state_unsafe_mutation`)}function we(){throw Error(`https://svelte.dev/e/svelte_boundary_reset_onerror`)}function Te(e){console.warn(`https://svelte.dev/e/hydration_mismatch`)}function Ee(){console.warn(`https://svelte.dev/e/svelte_boundary_reset_noop`)}var E=!1;function De(e){E=e}var D;function O(e){if(e===null)throw Te(),t;return D=e}function Oe(){return O($t(D))}function ke(e){if(E){if($t(D)!==null)throw Te(),t;D=e}}function Ae(e=1){if(E){for(var t=e,n=D;t--;)n=$t(n);D=n}}function je(e=!0){for(var t=0,n=D;;){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=$t(n);e&&n.remove(),n=i}}function Me(e){if(!e||e.nodeType!==8)throw Te(),t;return e.data}function Ne(e){return e===this.v}function Pe(e,t){return e==e?e!==t||typeof e==`object`&&!!e||typeof e==`function`:t==t}function Fe(e){return!Pe(e,this.v)}var Ie=!1,Le=!1,k=null;function Re(e){k=e}function ze(e,t=!1,n){k={p:k,i:!1,c:null,e:null,s:e,x:null,r:B,l:Le&&!t?{s:null,u:null,$:[]}:null}}function Be(e){var t=k,n=t.e;if(n!==null){t.e=null;for(var r of n)hn(r)}return e!==void 0&&(t.x=e),t.i=!0,k=t.p,e??{}}function Ve(){return!Le||k!==null&&k.l===null}var He=[];function Ue(){var e=He;He=[],_(e)}function We(e){if(He.length===0&&!rt){var t=He;queueMicrotask(()=>{t===He&&Ue()})}He.push(e)}function Ge(){for(;He.length>0;)Ue()}function Ke(e){var t=B;if(t===null)return R.f|=se,e;if(!(t.f&32768)&&!(t.f&4))throw e;qe(e,t)}function qe(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=~(b|x|y);function A(e,t){e.f=e.f&Je|t}function Ye(e){e.f&512||e.deps===null?A(e,y):A(e,x)}function Xe(e){if(e!==null)for(let t of e)!(t.f&2)||!(t.f&65536)||(t.f^=ie,Xe(t.deps))}function Ze(e,t,n){e.f&2048?t.add(e):e.f&4096&&n.add(e),Xe(e.deps),A(e,y)}var Qe=!1,$e=!1;function et(e){var t=$e;try{return $e=!1,[e(),$e]}finally{$e=t}}var tt=new Set,j=null,M=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)A(n,b),this.schedule(n);for(n of t.m)A(n,x),this.schedule(n)}}#p(){if(st++>1e3&&(tt.delete(this),dt()),!this.#d()){for(let e of this.#o)this.#s.delete(e),A(e,b),this.schedule(e);for(let e of this.#s)A(e,x),this.schedule(e)}let t=this.#a;this.#a=[],this.apply();var n=at=[],r=[],i=ot=[];for(let e of t)try{this.#m(e,n,r)}catch(t){throw vt(e),t}if(j=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)_t(e,t)}else{this.#n.size===0&&tt.delete(this),this.#o.clear(),this.#s.clear();for(let e of this.#e)e(this);this.#e.clear(),pt(r),pt(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&&(tt.add(o),o.#p()),tt.has(this)||this.#g()}#m(e,t,n){e.f^=y;for(var r=e.first;r!==null;){var i=r.f,a=(i&96)!=0;if(!(a&&i&1024||i&8192||this.#c.has(r))&&r.fn!==null){a?r.f^=y:i&4?t.push(r):Ie&&i&16777224?n.push(r):Gn(r)&&(i&16&&this.#s.add(r),Xn(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]),M?.set(e,e.v))}activate(){j=this}deactivate(){j=null,M=null}flush(){try{it=!0,j=this,this.#p()}finally{st=0,nt=null,at=null,ot=null,it=!1,j=null,M=null,Rt.clear()}}discard(){for(let e of this.#t)e(this);this.#t.clear(),tt.delete(this)}#g(){for(let c of tt){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)mt(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 tt)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??=v()).promise}static ensure(){if(j===null){let t=j=new e;it||(tt.add(j),rt||We(()=>{j===t&&t.flush()}))}return j}apply(){if(!Ie||!this.is_fork&&tt.size===1){M=null;return}M=new Map;for(let[e,[t]]of this.current)M.set(e,t);for(let n of tt)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(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===B&&(Ie||(R===null||!(R.f&2))&&!Qe))return;if(n&96){if(!(n&1024))return;t.f^=y}}this.#a.push(t)}};function ut(e){var t=rt;rt=!0;try{var n;for(e&&(j!==null&&!j.is_fork&&j.flush(),n=e());;){if(Ge(),j===null)return n;j.flush()}}finally{rt=t}}function dt(){try{ve()}catch(e){qe(e,nt)}}var ft=null;function pt(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if(!(r.f&24576)&&Gn(r)&&(ft=new Set,Xn(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&Dn(r),ft?.size>0)){Rt.clear();for(let e of ft){if(e.f&24576)continue;let t=[e],n=e.parent;for(;n!==null;)ft.has(n)&&(ft.delete(n),t.push(n)),n=n.parent;for(let e=t.length-1;e>=0;e--){let n=t[e];n.f&24576||Xn(n)}}ft.clear()}}ft=null}}function mt(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?mt(i,t,n,r):e&4194320&&!(e&2048)&&ht(i,t,r)&&(A(i,b),gt(i))}}function ht(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&&ht(r,t,n))return n.set(r,!0),!0}return n.set(e,!1),!1}function gt(e){j.schedule(e)}function _t(e,t){if(!(e.f&32&&e.f&1024)){e.f&2048?t.d.push(e):e.f&4096&&t.m.push(e),A(e,y);for(var n=e.first;n!==null;)_t(n,t),n=n.next}}function vt(e){A(e,y);for(var t=e.first;t!==null;)vt(t),t=t.next}function yt(e){let t=0,n=Bt(0),r;return()=>{fn()&&(K(n),bn(()=>(t===0&&(r=$n(()=>e(()=>Wt(n)))),t+=1,()=>{We(()=>{--t,t===0&&(r?.(),r=void 0,Wt(n))})})))}}var bt=T|te;function xt(e,t,n,r){new St(e,t,n,r)}var St=class{parent;is_pending=!1;transform_error;#e;#t=E?D: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=yt(()=>(this.#m=Bt(this.#l),()=>{this.#m=null}));constructor(e,t,n,r){this.#e=e,this.#n=t,this.#r=e=>{var t=B;t.b=this,t.f|=128,n(e)},this.parent=B.b,this.transform_error=r??this.parent?.transform_error??(e=>e),this.#i=xn(()=>{if(E){let e=this.#t;Oe();let t=e.data===`[!`;if(e.data.startsWith(`[?`)){let t=JSON.parse(e.data.slice(2));this.#_(t)}else t?this.#v():this.#g()}else this.#y()},bt),E&&(this.#e=D)}#g(){try{this.#a=Sn(()=>this.#r(this.#e))}catch(e){this.error(e)}}#_(e){let t=this.#n.failed;t&&(this.#s=Sn(()=>{t(this.#e,()=>e,()=>()=>{})}))}#v(){let e=this.#n.pending;e&&(this.is_pending=!0,this.#o=Sn(()=>e(this.#e)),We(()=>{var e=this.#c=document.createDocumentFragment(),t=F();e.append(t),this.#a=this.#x(()=>Sn(()=>this.#r(t))),this.#u===0&&(this.#e.before(e),this.#c=null,On(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=Sn(()=>{this.#r(this.#e)}),this.#u>0){var e=this.#c=document.createDocumentFragment();Mn(this.#a,e);let t=this.#n.pending;this.#o=Sn(()=>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){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=B,n=R,r=k;V(this.#i),z(this.#i),Re(this.#i.ctx);try{return lt.ensure(),e()}catch(e){return Ke(e),null}finally{V(t),z(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&&On(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&&Ht(this.#m,this.#l)}))}get_effect_pending(){return this.#h(),K(this.#m)}error(e){var t=this.#n.onerror;let n=this.#n.failed;if(!t&&!n)throw e;this.#a&&=(L(this.#a),null),this.#o&&=(L(this.#o),null),this.#s&&=(L(this.#s),null),E&&(O(this.#t),Ae(),O(je()));var r=!1,i=!1;let a=()=>{if(r){Ee();return}r=!0,i&&we(),this.#s!==null&&On(this.#s,()=>{this.#s=null}),this.#x(()=>{this.#y()})},o=e=>{try{i=!0,t?.(e,a),i=!1}catch(e){qe(e,this.#i&&this.#i.parent)}n&&(this.#s=this.#x(()=>{try{return Sn(()=>{var t=B;t.b=this,t.f|=128,n(this.#e,()=>e,()=>a)})}catch(e){return qe(e,this.#i.parent),null}}))};We(()=>{var t;try{t=this.transform_error(e)}catch(e){qe(e,this.#i&&this.#i.parent);return}typeof t==`object`&&t&&typeof t.then==`function`?t.then(o,e=>qe(e,this.#i&&this.#i.parent)):o(t)})}};function Ct(e,t,n,r){let i=Ve()?Dt:At;var a=e.filter(e=>!e.settled);if(n.length===0&&a.length===0){r(t.map(i));return}var o=B,s=wt(),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||qe(e,o)}Tt()}if(n.length===0){c.then(()=>l(t.map(i)));return}var u=Et();function d(){Promise.all(n.map(e=>Ot(e))).then(e=>l([...t.map(i),...e])).catch(e=>qe(e,o)).finally(()=>u())}c?c.then(()=>{s(),d(),Tt()}):d()}function wt(){var e=B,t=R,n=k,r=j;return function(i=!0){V(e),z(t),Re(n),i&&!(e.f&16384)&&(r?.activate(),r?.apply())}}function Tt(e=!0){V(null),z(null),Re(null),e&&j?.deactivate()}function Et(){var e=B,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 Dt(e){var t=2|b,r=R!==null&&R.f&2?R:null;return B!==null&&(B.f|=te),{ctx:k,deps:null,effects:null,equals:Ne,f:t,fn:e,reactions:null,rv:0,v:n,wv:0,parent:r??B,ac:null}}function Ot(e,t,r){let i=B;i===null&&pe();var a=void 0,o=Bt(n),s=!R,c=new Map;return yn(()=>{var t=B,n=v();a=n.promise;try{Promise.resolve(e()).then(n.resolve,n.reject).finally(Tt)}catch(e){n.reject(e),Tt()}var r=j;if(s){if(t.f&32768)var l=Et();if(i.b.is_rendered())c.get(r)?.reject(de),c.delete(r);else{for(let e of c.values())e.reject(de);c.clear()}c.set(r,n)}let u=(e,n=void 0)=>{if(l&&l(n===de),!(n===de||t.f&16384)){if(r.activate(),n)o.f|=se,Ht(o,n);else{o.f&8388608&&(o.f^=se),Ht(o,e);for(let[e,t]of c){if(c.delete(e),e===r)break;t.reject(de)}}r.deactivate()}};n.promise.then(u,e=>u(null,e||`unknown`))}),pn(()=>{for(let e of c.values())e.reject(de)}),new Promise(e=>{function t(n){function r(){n===a?e(o):t(a)}n.then(r,r)}t(a)})}function kt(e){let t=Dt(e);return Ie||Rn(t),t}function At(e){let t=Dt(e);return t.equals=Fe,t}function jt(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)L(t[n])}}function Mt(e){for(var t=e.parent;t!==null;){if(!(t.f&2))return t.f&16384?null:t;t=t.parent}return null}function Nt(e){var t,n=B;V(Mt(e));try{e.f&=~ie,jt(e),t=qn(e)}finally{V(n)}return t}function Pt(e){var t=e.v,n=Nt(e);if(!e.equals(n)&&(e.wv=Wn(),(!j?.is_fork||e.deps===null)&&(e.v=n,j?.capture(e,t,!0),e.deps===null))){A(e,y);return}Fn||(M===null?Ye(e):(fn()||j?.is_fork)&&M.set(e,n))}function Ft(e){if(e.effects!==null)for(let t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(de),t.teardown=g,t.ac=null,Yn(t,0),wn(t))}function It(e){if(e.effects!==null)for(let t of e.effects)t.teardown&&Xn(t)}var Lt=new Set,Rt=new Map,zt=!1;function Bt(e,t){return{f:0,v:e,reactions:null,equals:Ne,rv:0,wv:0}}function N(e,t){let n=Bt(e,t);return Rn(n),n}function Vt(e,t=!1,n=!0){let r=Bt(e);return t||(r.equals=Fe),Le&&n&&k!==null&&k.l!==null&&(k.l.s??=[]).push(r),r}function P(e,t,n=!1){return R!==null&&(!Ln||R.f&131072)&&Ve()&&R.f&4325394&&(H===null||!o.call(H,e))&&Ce(),Ht(e,n?Kt(t):t,ot)}function Ht(e,t,n=null){if(!e.equals(t)){var r=e.v;Fn?Rt.set(e,t):Rt.set(e,r),e.v=t;var i=lt.ensure();if(i.capture(e,r),e.f&2){let t=e;e.f&2048&&Nt(t),M===null&&Ye(t)}e.wv=Wn(),Gt(e,b,n),Ve()&&B!==null&&B.f&1024&&!(B.f&96)&&(G===null?zn([e]):G.push(e)),!i.is_fork&&Lt.size>0&&!zt&&Ut()}return t}function Ut(){zt=!1;for(let e of Lt)e.f&1024&&A(e,x),Gn(e)&&Xn(e);Lt.clear()}function Wt(e){P(e,e.v+1)}function Gt(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===B)){var l=(c&b)===0;if(l&&A(s,t),c&2){var u=s;M?.delete(u),c&65536||(c&512&&(s.f|=ie),Gt(u,x,n))}else if(l){var d=s;c&16&&ft!==null&&ft.add(d),n===null?gt(d):n.push(d)}}}}function Kt(e){if(typeof e!=`object`||!e||ce in e)return e;let t=m(e);if(t!==f&&t!==p)return e;var r=new Map,a=i(e),o=N(0),s=null,c=Hn,l=e=>{if(Hn===c)return e();var t=R,n=Hn;z(null),Un(c);var r=e();return z(t),Un(n),r};return a&&r.set(`length`,N(e.length,s)),new Proxy(e,{defineProperty(e,t,n){(!(`value`in n)||n.configurable===!1||n.enumerable===!1||n.writable===!1)&&xe();var i=r.get(t);return i===void 0?l(()=>{var e=N(n.value,s);return r.set(t,e),e}):P(i,n.value,!0),!0},deleteProperty(e,t){var i=r.get(t);if(i===void 0){if(t in e){let e=l(()=>N(n,s));r.set(t,e),Wt(o)}}else P(i,n),Wt(o);return!0},get(t,i,a){if(i===ce)return e;var o=r.get(i),c=i in t;if(o===void 0&&(!c||u(t,i)?.writable)&&(o=l(()=>N(Kt(c?t[i]:n),s)),r.set(i,o)),o!==void 0){var d=K(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=K(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===ce)return!0;var i=r.get(t),a=i!==void 0&&i.v!==n||Reflect.has(e,t);return(i!==void 0||B!==null&&(!a||u(e,t)?.writable))&&(i===void 0&&(i=l(()=>N(a?Kt(e[t]):n,s)),r.set(t,i)),K(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(()=>N(n,s)),r.set(p+``,m)):P(m,n)}if(d===void 0)(!f||u(e,t)?.writable)&&(d=l(()=>N(void 0,s)),P(d,Kt(i)),r.set(t,d));else{f=d.v!==n;var h=l(()=>Kt(i));P(d,h)}var g=Reflect.getOwnPropertyDescriptor(e,t);if(g?.set&&g.set.call(c,i),!f){if(a&&typeof t==`string`){var _=r.get(`length`),v=Number(t);Number.isInteger(v)&&v>=_.v&&P(_,v+1)}Wt(o)}return!0},ownKeys(e){K(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(){Se()}})}var qt,Jt,Yt,Xt;function Zt(){if(qt===void 0){qt=window,Jt=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;Yt=u(t,`firstChild`).get,Xt=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 F(e=``){return document.createTextNode(e)}function Qt(e){return Yt.call(e)}function $t(e){return Xt.call(e)}function en(e,t){if(!E)return Qt(e);var n=Qt(D);if(n===null)n=D.appendChild(F());else if(t&&n.nodeType!==3){var r=F();return n?.before(r),O(r),r}return t&&sn(n),O(n),n}function tn(e,t=!1){if(!E){var n=Qt(e);return n instanceof Comment&&n.data===``?$t(n):n}if(t){if(D?.nodeType!==3){var r=F();return D?.before(r),O(r),r}sn(D)}return D}function nn(e,t=1,n=!1){let r=E?D:e;for(var i;t--;)i=r,r=$t(r);if(!E)return r;if(n){if(r?.nodeType!==3){var a=F();return r===null?i?.after(a):r.before(a),O(a),a}sn(r)}return O(r),r}function rn(e){e.textContent=``}function an(){return!Ie||ft!==null?!1:(B.f&C)!==0}function on(e,t,n){let r=n?{is:n}:void 0;return document.createElementNS(t??`http://www.w3.org/1999/xhtml`,e,r)}function sn(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 cn(e){var t=R,n=B;z(null),V(null);try{return e()}finally{z(t),V(n)}}function ln(e){B===null&&(R===null&&_e(e),ge()),Fn&&he(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 dn(e,t){var n=B;n!==null&&n.f&8192&&(e|=S);var r={ctx:k,deps:null,nodes:null,f:e|b|512,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null},i=r;if(e&4)at===null?lt.ensure().schedule(r):at.push(r);else if(t!==null){try{Xn(r)}catch(e){throw L(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|=T))}if(i!==null&&(i.parent=n,n!==null&&un(i,n),R!==null&&R.f&2&&!(e&64))){var a=R;(a.effects??=[]).push(i)}return r}function fn(){return R!==null&&!Ln}function pn(e){let t=dn(8,null);return A(t,y),t.teardown=e,t}function mn(e){ln(`$effect`);var t=B.f;if(!R&&t&32&&!(t&32768)){var n=k;(n.e??=[]).push(e)}else return hn(e)}function hn(e){return dn(4|ne,e)}function gn(e){lt.ensure();let t=dn(64|te,e);return()=>{L(t)}}function _n(e){lt.ensure();let t=dn(64|te,e);return(e={})=>new Promise(n=>{e.outro?On(t,()=>{L(t),n(void 0)}):(L(t),n(void 0))})}function vn(e){return dn(4,e)}function yn(e){return dn(oe|te,e)}function bn(e,t=0){return dn(8|t,e)}function I(e,t=[],n=[],r=[]){Ct(r,t,n,t=>{dn(8,()=>e(...t.map(K)))})}function xn(e,t=0){return dn(16|t,e)}function Sn(e){return dn(32|te,e)}function Cn(e){var t=e.teardown;if(t!==null){let e=Fn,n=R;In(!0),z(null);try{t.call(null)}finally{In(e),z(n)}}}function wn(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){let e=n.ac;e!==null&&cn(()=>{e.abort(de)});var r=n.next;n.f&64?n.parent=null:L(n,t),n=r}}function Tn(e){for(var t=e.first;t!==null;){var n=t.next;t.f&32||L(t),t=n}}function L(e,t=!0){var n=!1;(t||e.f&262144)&&e.nodes!==null&&e.nodes.end!==null&&(En(e.nodes.start,e.nodes.end),n=!0),A(e,w),wn(e,t&&!n),Yn(e,0);var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)e.stop();Cn(e),e.f^=w,e.f|=ee;var i=e.parent;i!==null&&i.first!==null&&Dn(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function En(e,t){for(;e!==null;){var n=e===t?null:$t(e);e.remove(),e=n}}function Dn(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 On(e,t,n=!0){var r=[];kn(e,r,!0);var i=()=>{n&&L(e),t&&t()},a=r.length;if(a>0){var o=()=>--a||i();for(var s of r)s.out(o)}else i()}function kn(e,t,n){if(!(e.f&8192)){e.f^=S;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;kn(i,t,o?n:!1),i=a}}}function An(e){jn(e,!0)}function jn(e,t){if(e.f&8192){e.f^=S,e.f&1024||(A(e,b),lt.ensure().schedule(e));for(var n=e.first;n!==null;){var r=n.next,i=(n.f&65536)!=0||(n.f&32)!=0;jn(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 Mn(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var i=n===r?null:$t(n);t.append(n),n=i}}var Nn=null,Pn=!1,Fn=!1;function In(e){Fn=e}var R=null,Ln=!1;function z(e){R=e}var B=null;function V(e){B=e}var H=null;function Rn(e){R!==null&&(!Ie||R.f&2)&&(H===null?H=[e]:H.push(e))}var U=null,W=0,G=null;function zn(e){G=e}var Bn=1,Vn=0,Hn=Vn;function Un(e){Hn=e}function Wn(){return++Bn}function Gn(e){var t=e.f;if(t&2048)return!0;if(t&2&&(e.f&=~ie),t&4096){for(var n=e.deps,r=n.length,i=0;i<r;i++){var a=n[i];if(Gn(a)&&Pt(a),a.wv>e.wv)return!0}t&512&&M===null&&A(e,y)}return!1}function Kn(e,t,n=!0){var r=e.reactions;if(r!==null&&!(!Ie&&H!==null&&o.call(H,e)))for(var i=0;i<r.length;i++){var a=r[i];a.f&2?Kn(a,t,!1):t===a&&(n?A(a,b):a.f&1024&&A(a,x),gt(a))}}function qn(e){var t=U,n=W,r=G,i=R,a=H,o=k,s=Ln,c=Hn,l=e.f;U=null,W=0,G=null,R=l&96?null:e,H=null,Re(e.ctx),Ln=!1,Hn=++Vn,e.ac!==null&&(cn(()=>{e.ac.abort(de)}),e.ac=null);try{e.f|=ae;var u=e.fn,d=u();e.f|=C;var f=e.deps,p=j?.is_fork;if(U!==null){var m;if(p||Yn(e,W),f!==null&&W>0)for(f.length=W+U.length,m=0;m<U.length;m++)f[W+m]=U[m];else e.deps=f=U;if(fn()&&e.f&512)for(m=W;m<f.length;m++)(f[m].reactions??=[]).push(e)}else !p&&f!==null&&W<f.length&&(Yn(e,W),f.length=W);if(Ve()&&G!==null&&!Ln&&f!==null&&!(e.f&6146))for(m=0;m<G.length;m++)Kn(G[m],e);if(i!==null&&i!==e){if(Vn++,i.deps!==null)for(let e=0;e<n;e+=1)i.deps[e].rv=Vn;if(t!==null)for(let e of t)e.rv=Vn;G!==null&&(r===null?r=G:r.push(...G))}return e.f&8388608&&(e.f^=se),d}catch(e){return Ke(e)}finally{e.f^=ae,U=t,W=n,G=r,R=i,H=a,Re(o),Ln=s,Hn=c}}function Jn(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&&(U===null||!o.call(U,t))){var s=t;s.f&512&&(s.f^=512,s.f&=~ie),Ye(s),Ft(s),Yn(s,0)}}function Yn(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)Jn(e,n[r])}function Xn(e){var t=e.f;if(!(t&16384)){A(e,y);var n=B,r=Pn;B=e,Pn=!0;try{t&16777232?Tn(e):wn(e),Cn(e);var i=qn(e);e.teardown=typeof i==`function`?i:null,e.wv=Bn}finally{Pn=r,B=n}}}function K(e){var t=(e.f&2)!=0;if(Nn?.add(e),R!==null&&!Ln&&!(B!==null&&B.f&16384)&&(H===null||!o.call(H,e))){var n=R.deps;if(R.f&2097152)e.rv<Vn&&(e.rv=Vn,U===null&&n!==null&&n[W]===e?W++:U===null?U=[e]:U.push(e));else{(R.deps??=[]).push(e);var r=e.reactions;r===null?e.reactions=[R]:o.call(r,R)||r.push(R)}}if(Fn&&Rt.has(e))return Rt.get(e);if(t){var i=e;if(Fn){var a=i.v;return(!(i.f&1024)&&i.reactions!==null||Qn(i))&&(a=Nt(i)),Rt.set(i,a),a}var s=(i.f&512)==0&&!Ln&&R!==null&&(Pn||(R.f&512)!=0),c=(i.f&C)===0;Gn(i)&&(s&&(i.f|=512),Pt(i)),s&&!c&&(It(i),Zn(i))}if(M?.has(e))return M.get(e);if(e.f&8388608)throw e.v;return e.v}function Zn(e){if(e.f|=512,e.deps!==null)for(let t of e.deps)(t.reactions??=[]).push(e),t.f&2&&!(t.f&512)&&(It(t),Zn(t))}function Qn(e){if(e.v===n)return!0;if(e.deps===null)return!1;for(let t of e.deps)if(Rt.has(t)||t.f&2&&Qn(t))return!0;return!1}function $n(e){var t=Ln;try{return Ln=!0,e()}finally{Ln=t}}var er=Symbol(`events`),tr=new Set,nr=new Set;function rr(e,t,n,r={}){function i(e){if(r.capture||sr.call(t,e),!e.cancelBubble)return cn(()=>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 q(e,t,n,r,i){var a={capture:r,passive:i},o=rr(e,t,n,a);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&pn(()=>{t.removeEventListener(e,o,a)})}function ir(e,t,n){(t[er]??={})[e]=n}function ar(e){for(var t=0;t<e.length;t++)tr.add(e[t]);for(var n of nr)n(e)}var or=null;function sr(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],a=i[0]||e.target;or=e;var o=0,s=or===e&&e[er];if(s){var c=i.indexOf(s);if(c!==-1&&(t===document||t===window)){e[er]=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=R,f=B;z(null),V(null);try{for(var p,m=[];a!==null;){var h=a.assignedSlot||a.parentNode||a.host||null;try{var g=a[er]?.[r];g!=null&&(!a.disabled||e.target===a)&&g.call(a,e)}catch(e){p?m.push(e):p=e}if(e.cancelBubble||h===t||h===null)break;a=h}if(p){for(let e of m)queueMicrotask(()=>{throw e});throw p}}finally{e[er]=t,delete e.currentTarget,z(d),V(f)}}}var cr=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy(`svelte-trusted-html`,{createHTML:e=>e});function lr(e){return cr?.createHTML(e)??e}function ur(e){var t=on(`template`);return t.innerHTML=lr(e.replaceAll(`<!>`,`<!---->`)),t.content}function dr(e,t){var n=B;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function J(e,t){var n=(t&1)!=0,r=(t&2)!=0,i,a=!e.startsWith(`<!>`);return()=>{if(E)return dr(D,null),D;i===void 0&&(i=ur(a?e:`<!>`+e),n||(i=Qt(i)));var t=r||Jt?document.importNode(i,!0):i.cloneNode(!0);if(n){var o=Qt(t),s=t.lastChild;dr(o,s)}else dr(t,t);return t}}function fr(e=``){if(!E){var t=F(e+``);return dr(t,t),t}var n=D;return n.nodeType===3?sn(n):(n.before(n=F()),O(n)),dr(n,n),n}function pr(){if(E)return dr(D,null),D;var e=document.createDocumentFragment(),t=document.createComment(``),n=F();return e.append(t,n),dr(t,n),e}function Y(e,t){if(E){var n=B;(!(n.f&32768)||n.nodes.end===null)&&(n.nodes.end=D),Oe();return}e!==null&&e.before(t)}[...`allowfullscreen.async.autofocus.autoplay.checked.controls.default.disabled.formnovalidate.indeterminate.inert.ismap.loop.multiple.muted.nomodule.novalidate.open.playsinline.readonly.required.reversed.seamless.selected.webkitdirectory.defer.disablepictureinpicture.disableremoteplayback`.split(`.`)];var mr=[`touchstart`,`touchmove`];function hr(e){return mr.includes(e)}function gr(e,t){var n=t==null?``:typeof t==`object`?`${t}`:t;n!==(e.__t??=e.nodeValue)&&(e.__t=n,e.nodeValue=`${n}`)}function _r(e,t){return br(e,t)}function vr(e,n){Zt(),n.intro=n.intro??!1;let r=n.target,i=E,a=D;try{for(var o=Qt(r);o&&(o.nodeType!==8||o.data!==`[`);)o=$t(o);if(!o)throw t;De(!0),O(o);let i=br(e,{...n,anchor:o});return De(!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&&ye(),Zt(),rn(r),De(!1),_r(e,n)}finally{De(i),O(a)}}var yr=new Map;function br(e,{target:n,anchor:r,props:i={},events:a,context:o,intro:c=!0,transformError:l}){Zt();var u=void 0,d=_n(()=>{var c=r??n.appendChild(F());xt(c,{pending:()=>{}},n=>{ze({});var r=k;if(o&&(r.c=o),a&&(i.$$events=a),E&&dr(n,null),u=e(n,i)||{},E&&(B.nodes.end=D,D===null||D.nodeType!==8||D.data!==`]`))throw Te(),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=hr(r);for(let e of[n,document]){var a=yr.get(e);a===void 0&&(a=new Map,yr.set(e,a));var o=a.get(r);o===void 0?(e.addEventListener(r,sr,{passive:i}),a.set(r,1)):a.set(r,o+1)}}}};return f(s(tr)),nr.add(f),()=>{for(var e of d)for(let r of[n,document]){var t=yr.get(r),i=t.get(e);--i==0?(r.removeEventListener(e,sr),t.delete(e),t.size===0&&yr.delete(r)):t.set(e,i)}nr.delete(f),c!==r&&c.parentNode?.removeChild(c)}});return xr.set(u,d),u}var xr=new WeakMap;function Sr(e,t){let n=xr.get(e);return n?(xr.delete(e),n(t)):Promise.resolve()}var Cr=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)An(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&&(L(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();Mn(r,t),t.append(F()),this.#n.set(e,{effect:r,fragment:t})}else L(r);this.#r.delete(e),this.#t.delete(e)};this.#i||!n?(this.#r.add(e),On(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)||(L(n.effect),this.#n.delete(e))};ensure(e,t){var n=j,r=an();if(t&&!this.#t.has(e)&&!this.#n.has(e))if(r){var i=document.createDocumentFragment(),a=F();i.append(a),this.#n.set(e,{effect:Sn(()=>t(a)),fragment:i})}else this.#t.set(e,Sn(()=>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 E&&(this.anchor=D),this.#a(n)}};function wr(e,t,n=!1){var r;E&&(r=D,Oe());var i=new Cr(e),a=n?T:0;function o(e,t){if(E){var n=Me(r);if(e!==parseInt(n.substring(1))){var a=je();O(a),i.anchor=a,De(!1),i.ensure(e,t),De(!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 Tr(e,t,n){for(var r=[],i=t.length,a,o=t.length,c=0;c<i;c++){let n=t[c];On(n,()=>{if(a){if(a.pending.delete(n),a.done.add(n),a.pending.size===0){var t=e.outrogroups;Er(e,s(a.done)),t.delete(a),t.size===0&&(e.outrogroups=null)}}else --o},!1)}if(o===0){var l=r.length===0&&n!==null;if(l){var u=n,d=u.parentNode;rn(d),d.append(u),e.items.clear()}Er(e,t,!l)}else a={pending:new Set(t),done:new Set},(e.outrogroups??=new Set).add(a)}function Er(e,t,n=!0){var r;if(e.pending.size>0){r=new Set;for(let t of e.pending.values())for(let n of t)r.add(e.items.get(n).e)}for(var i=0;i<t.length;i++){var a=t[i];r?.has(a)?(a.f|=re,Mn(a,document.createDocumentFragment())):L(t[i],n)}}var Dr;function Or(e,t,n,r,a,o=null){var c=e,l=new Map;if(t&4){var u=e;c=E?O(Qt(u)):u.appendChild(F())}E&&Oe();var d=null,f=At(()=>{var e=n();return i(e)?e:e==null?[]:s(e)}),p,m=new Map,h=!0;function g(e){v.effect.f&16384||(v.pending.delete(e),v.fallback=d,Ar(v,p,c,t,r),d!==null&&(p.length===0?d.f&33554432?(d.f^=re,Mr(d,null,c)):An(d):On(d,()=>{d=null})))}function _(e){v.pending.delete(e)}var v={effect:xn(()=>{p=K(f);var e=p.length;let i=!1;E&&Me(c)===`[!`!=(e===0)&&(c=je(),O(c),De(!1),i=!0);for(var s=new Set,u=j,v=an(),y=0;y<e;y+=1){E&&D.nodeType===8&&D.data===`]`&&(c=D,i=!0,De(!1));var b=p[y],x=r(b,y),S=h?null:l.get(x);S?(S.v&&Ht(S.v,b),S.i&&Ht(S.i,y),v&&u.unskip_effect(S.e)):(S=jr(l,h?c:Dr??=F(),b,x,y,a,t,n),h||(S.e.f|=re),l.set(x,S)),s.add(x)}if(e===0&&o&&!d&&(h?d=Sn(()=>o(c)):(d=Sn(()=>o(Dr??=F())),d.f|=re)),e>s.size&&me(``,``,``),E&&e>0&&O(je()),!h)if(m.set(u,s),v){for(let[e,t]of l)s.has(e)||u.skip_effect(t.e);u.oncommit(g),u.ondiscard(_)}else g(u);i&&De(!0),K(f)}),flags:t,items:l,pending:m,outrogroups:null,fallback:d};h=!1,E&&(c=D)}function kr(e){for(;e!==null&&!(e.f&32);)e=e.next;return e}function Ar(e,t,n,r,i){var a=(r&8)!=0,o=t.length,c=e.items,l=kr(e.effect.first),u,d=null,f,p=[],m=[],h,g,_,v;if(a)for(v=0;v<o;v+=1)h=t[v],g=i(h,v),_=c.get(g).e,_.f&33554432||(_.nodes?.a?.measure(),(f??=new Set).add(_));for(v=0;v<o;v+=1){if(h=t[v],g=i(h,v),_=c.get(g).e,e.outrogroups!==null)for(let t of e.outrogroups)t.pending.delete(_),t.done.delete(_);if(_.f&8192&&(An(_),a&&(_.nodes?.a?.unfix(),(f??=new Set).delete(_))),_.f&33554432)if(_.f^=re,_===l)Mr(_,null,n);else{var y=d?d.next:l;_===e.effect.last&&(e.effect.last=_.prev),_.prev&&(_.prev.next=_.next),_.next&&(_.next.prev=_.prev),Nr(e,d,_),Nr(e,_,y),Mr(_,y,n),d=_,p=[],m=[],l=kr(d.next);continue}if(_!==l){if(u!==void 0&&u.has(_)){if(p.length<m.length){var b=m[0],x;d=b.prev;var S=p[0],ee=p[p.length-1];for(x=0;x<p.length;x+=1)Mr(p[x],b,n);for(x=0;x<m.length;x+=1)u.delete(m[x]);Nr(e,S.prev,ee.next),Nr(e,d,S),Nr(e,ee,b),l=b,d=ee,--v,p=[],m=[]}else u.delete(_),Mr(_,l,n),Nr(e,_.prev,_.next),Nr(e,_,d===null?e.effect.first:d.next),Nr(e,d,_),d=_;continue}for(p=[],m=[];l!==null&&l!==_;)(u??=new Set).add(l),m.push(l),l=kr(l.next);if(l===null)continue}_.f&33554432||p.push(_),d=_,l=kr(_.next)}if(e.outrogroups!==null){for(let t of e.outrogroups)t.pending.size===0&&(Er(e,s(t.done)),e.outrogroups?.delete(t));e.outrogroups.size===0&&(e.outrogroups=null)}if(l!==null||u!==void 0){var C=[];if(u!==void 0)for(_ of u)_.f&8192||C.push(_);for(;l!==null;)!(l.f&8192)&&l!==e.fallback&&C.push(l),l=kr(l.next);var w=C.length;if(w>0){var T=r&4&&o===0?n:null;if(a){for(v=0;v<w;v+=1)C[v].nodes?.a?.measure();for(v=0;v<w;v+=1)C[v].nodes?.a?.fix()}Tr(e,C,T)}}a&&We(()=>{if(f!==void 0)for(_ of f)_.nodes?.a?.apply()})}function jr(e,t,n,r,i,a,o,s){var c=o&1?o&16?Bt(n):Vt(n,!1,!1):null,l=o&2?Bt(i):null;return{v:c,i:l,e:Sn(()=>(a(t,c??n,l??i,s),()=>{e.delete(r)}))}}function Mr(e,t,n){if(e.nodes)for(var r=e.nodes.start,i=e.nodes.end,a=t&&!(t.f&33554432)?t.nodes.start:n;r!==null;){var o=$t(r);if(a.before(r),r===i)return;r=o}}function Nr(e,t,n){t===null?e.effect.first=n:t.next=n,n===null?e.effect.last=t:n.prev=t}function Pr(e,t,n,r,i){E&&Oe();var a=t.$$slots?.[n],o=!1;a===!0&&(a=t[n===`default`?`children`:n],o=!0),a===void 0?i!==null&&i(e):a(e,o?()=>r:r)}function Fr(e,t){vn(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector(`#`+t.hash)){let e=on(`style`);e.id=t.hash,e.textContent=t.code,r.appendChild(e)}})}var Ir=[...`
3
+ \r\f\xA0\v`];function Lr(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||Ir.includes(r[o-1]))&&(s===r.length||Ir.includes(r[s]))?r=(o===0?``:r.substring(0,o))+r.substring(s+1):o=s}}return r===``?null:r}function Rr(e,t=!1){var n=t?` !important;`:`;`,r=``;for(var i of Object.keys(e)){var a=e[i];a!=null&&a!==``&&(r+=` `+i+`: `+a+n)}return r}function zr(e){return e[0]!==`-`||e[1]!==`-`?e.toLowerCase():e}function Br(e,t){if(t){var n=``,r,i;if(Array.isArray(t)?(r=t[0],i=t[1]):r=t,e){e=String(e).replaceAll(/\s*\/\*.*?\*\/\s*/g,``).trim();var a=!1,o=0,s=!1,c=[];r&&c.push(...Object.keys(r).map(zr)),i&&c.push(...Object.keys(i).map(zr));var l=0,u=-1;let t=e.length;for(var d=0;d<t;d++){var f=e[d];if(s?f===`/`&&e[d-1]===`*`&&(s=!1):a?a===f&&(a=!1):f===`/`&&e[d+1]===`*`?s=!0:f===`"`||f===`'`?a=f:f===`(`?o++:f===`)`&&o--,!s&&a===!1&&o===0){if(f===`:`&&u===-1)u=d;else if(f===`;`||d===t-1){if(u!==-1){var p=zr(e.substring(l,u).trim());if(!c.includes(p)){f!==`;`&&d++;var m=e.substring(l,d).trim();n+=` `+m+`;`}}l=d+1,u=-1}}}}return r&&(n+=Rr(r)),i&&(n+=Rr(i,!0)),n=n.trim(),n===``?null:n}return e==null?null:String(e)}function X(e,t,n,r,i,a){var o=e.__className;if(E||o!==n||o===void 0){var s=Lr(n,r,a);(!E||s!==e.getAttribute(`class`))&&(s==null?e.removeAttribute(`class`):t?e.className=s:e.setAttribute(`class`,s)),e.__className=n}else if(a&&i!==a)for(var c in a){var l=!!a[c];(i==null||l!==!!i[c])&&e.classList.toggle(c,l)}return a}function Vr(e,t={},n,r){for(var i in n){var a=n[i];t[i]!==a&&(n[i]==null?e.style.removeProperty(i):e.style.setProperty(i,a,r))}}function Hr(e,t,n,r){var i=e.__style;if(E||i!==t){var a=Br(t,r);(!E||a!==e.getAttribute(`style`))&&(a==null?e.removeAttribute(`style`):e.style.cssText=a),e.__style=t}else r&&(Array.isArray(r)?(Vr(e,n?.[0],r[0]),Vr(e,n?.[1],r[1],`important`)):Vr(e,n,r));return r}var Ur=Symbol(`is custom element`),Wr=Symbol(`is html`),Gr=fe?`link`:`LINK`;function Kr(e,t,n,r){var i=qr(e);E&&(i[t]=e.getAttribute(t),t===`src`||t===`srcset`||t===`href`&&e.nodeName===Gr)||i[t]!==(i[t]=n)&&(t===`loading`&&(e[ue]=n),n==null?e.removeAttribute(t):typeof n!=`string`&&Yr(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function Z(e,t,n){var r=R,i=B;let a=E;E&&De(!1),z(null),V(null);try{t!==`style`&&(Jr.has(e.getAttribute(`is`)||e.nodeName)||!customElements||customElements.get(e.getAttribute(`is`)||e.nodeName.toLowerCase())?Yr(e).includes(t):n&&typeof n==`object`)?e[t]=n:Kr(e,t,n==null?n:String(n))}finally{z(r),V(i),a&&De(!0)}}function qr(e){return e.__attributes??={[Ur]:e.nodeName.includes(`-`),[Wr]:e.namespaceURI===r}}var Jr=new Map;function Yr(e){var t=e.getAttribute(`is`)||e.nodeName,n=Jr.get(t);if(n)return n;Jr.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 Xr(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?$n(r):r),s);let d;if(a){var f=ce in e||le 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&&be(t),d(p)));var h=i?()=>{var n=e[t];return n===void 0?l():(c=!0,n)}:()=>{var n=e[t];return n!==void 0&&(s=void 0),n===void 0?s:n};if(i&&!(n&4))return h;if(d){var g=e.$$legacy;return(function(e,t){return arguments.length>0?((!i||!t||g||m)&&d(t?h():e),e):h()})}var _=!1,v=(n&1?Dt:At)(()=>(_=!1,h()));a&&K(v);var y=B;return(function(e,t){if(arguments.length>0){let n=t?K(v):i&&a?Kt(e):e;return P(v,n),_=!0,s!==void 0&&(s=n),e}return Fn&&_||y.f&16384?v.v:K(v)})}function Zr(e){return new Qr(e)}var Qr=class{#e;#t;constructor(e){var t=new Map,n=(e,n)=>{var r=Vt(n,!1,!1);return t.set(e,r),r};let r=new Proxy({...e.props||{},$$events:{}},{get(e,r){return K(t.get(r)??n(r,Reflect.get(e,r)))},has(e,r){return r===le?!0:(K(t.get(r)??n(r,Reflect.get(e,r))),Reflect.has(e,r))},set(e,r,i){return P(t.get(r)??n(r,i),i),Reflect.set(e,r,i)}});this.#t=(e.hydrate?vr:_r)(e.component,{target:e.target,anchor:e.anchor,props:r,context:e.context,intro:e.intro??!1,recover:e.recover,transformError:e.transformError}),!Ie&&(!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=()=>{Sr(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()}},$r;typeof HTMLElement==`function`&&($r=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=on(`slot`);e!==`default`&&(n.name=e),Y(t,n)}}let t={},n=ti(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]=ei(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=Zr({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=gn(()=>{bn(()=>{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=ei(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]=ei(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 ei(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 ti(e){let t={};return e.childNodes.forEach(e=>{t[e.slot||`default`]=!0}),t}function ni(e,t,n,r,i,a){let o=class extends $r{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=ei(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 Q={name:`@htmlbricks/svelte-webcomponent`,private:!0,version:`0.66.7`,type:`module`,scripts:{dev:`vite --open`,build:`vite build`,"publish:wc":`node publish.ts`,"build:wc":`node build.ts`,"watch:wc":`node watch.ts`,preview:`vite preview`,check:`svelte-check --tsconfig ./tsconfig.app.json && tsc -p tsconfig.node.json`,"release:patch":`npm version patch && git push && git push --tags && npm run build:wc && npm run publish:wc`,"release:minor":`npm version minor && git push && git push --tags && npm run build:wc && npm run publish:wc`,"release:major":`npm version major && git push && git push --tags && npm run build:wc && npm run publish:wc`},devDependencies:{"@google-pay/button-element":`^3.2.1`,"@paypal/paypal-js":`^9.5.0`,"@sveltejs/vite-plugin-svelte":`^7.0.0`,"@tsconfig/svelte":`^5.0.8`,"@types/debounce":`^1.2.4`,"@types/node":`^24.10.1`,"@types/rgb-hex":`^3.0.0`,"chart.js":`^4.5.1`,"date-holidays":`^3.26.12`,dayjs:`^1.11.20`,"hls.js":`^1.6.15`,"html5-joystick-new":`^0.0.6`,ol:`^10.8.0`,"perfect-freehand":`^1.2.3`,prettier:`^3.8.1`,"rollup-plugin-terser":`^7.0.2`,"sass-embedded":`^1.98.0`,"simple-serverless-auth-client":`^0.0.6`,"simple-webrtc-element":`^0.0.1`,"simple-webrtc-element-whep":`^0.2.3`,"style-to-object":`^1.0.14`,svelte:`^5.55.0`,"svelte-check":`^4.4.5`,terser:`^5.46.1`,"ts-json-schema-generator":`^2.9.0`,typescript:`^6.0.2`,vite:`^8.0.3`},dependencies:{"@floating-ui/dom":`^1.7.6`,"@popperjs/core":`^2.11.8`,bootstrap:`^5.3.8`,debounce:`^3.0.0`,"html-colors":`^0.0.6`,marked:`^17.0.5`,raphael:`^2.3.0`,"rgb-hex":`^4.1.0`,"wc-js-utils":`^0.4.7`}},ri=(e,t)=>e.reduce((e,n)=>{for(let r of t(n))(e[r]=e[r]||[]).push(n);return e},{});function $(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 ii=J(`<label class="svelte-yjqjiw"> </label>`),ai=J(`<hb-input-array-objects></hb-input-array-objects>`,2),oi=J(`<hb-input-array-tags></hb-input-array-tags>`,2),si=J(`<hb-input-text></hb-input-text>`,2),ci=J(`<hb-input-color></hb-input-color>`,2),li=J(`<hb-input-range></hb-input-range>`,2),ui=J(`<hb-input-file></hb-input-file>`,2),di=J(`<hb-input-email></hb-input-email>`,2),fi=J(`<hb-input-date></hb-input-date>`,2),pi=J(`<hb-input-datetime></hb-input-datetime>`,2),mi=J(`<hb-input-checkbox></hb-input-checkbox>`,2),hi=J(`<hb-input-number></hb-input-number>`,2),gi=J(`<hb-input-area></hb-input-area>`,2),_i=J(`<hb-input-radio></hb-input-radio>`,2),vi=J(`<hb-input-select></hb-input-select>`,2),yi=J(`<hb-input-coords></hb-input-coords>`,2),bi=J(`<div class="col mb-3 svelte-yjqjiw"><!> <!></div>`),xi=J(`<div class="row svelte-yjqjiw"></div>`),Si=J(`<label class="svelte-yjqjiw"> </label>`),Ci=J(`<hb-input-text></hb-input-text>`,2),wi=J(`<hb-input-array-objects></hb-input-array-objects>`,2),Ti=J(`<hb-input-array-tags></hb-input-array-tags>`,2),Ei=J(`<hb-input-color></hb-input-color>`,2),Di=J(`<hb-input-range></hb-input-range>`,2),Oi=J(`<hb-input-file></hb-input-file>`,2),ki=J(`<hb-input-email></hb-input-email>`,2),Ai=J(`<hb-input-date></hb-input-date>`,2),ji=J(`<hb-input-datetime></hb-input-datetime>`,2),Mi=J(`<hb-input-checkbox></hb-input-checkbox>`,2),Ni=J(`<hb-input-number></hb-input-number>`,2),Pi=J(`<hb-input-area></hb-input-area>`,2),Fi=J(`<hb-input-radio></hb-input-radio>`,2),Ii=J(`<hb-input-select></hb-input-select>`,2),Li=J(`<hb-input-coords></hb-input-coords>`,2),Ri=J(`<div class="col mb-3 svelte-yjqjiw"><!> <!></div>`),zi=J(`<button part="main_button" type="button" class="btn btn-primary svelte-yjqjiw"><!></button>`),Bi=J(`<div id="button_container" part="button_container" class="svelte-yjqjiw"><span class="svelte-yjqjiw"><!></span> <!></div>`),Vi=J(`<!> <!>`,1),Hi=J(`<div class="container-fluid svelte-yjqjiw"><!></div>`),Ui={hash:`svelte-yjqjiw`,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
@@ -95,5 +96,5 @@ button.svelte-yjqjiw {margin:0;font-family:inherit;font-size:inherit;line-height
95
96
  @media (min-width: 1200px) {
96
97
  }
97
98
  @media (min-width: 1400px) {
98
- }:host {font-family:"Roboto", sans-serif;}`};function Qr(e,t){nr(t,!0),Es(e,jo);const n={row:{component:void 0,options:{row:!0}},select:{component:"hb-input-select"},arrayobjects:{component:"hb-input-array-objects"},arraytags:{component:"hb-input-array-tags"},date:{component:"hb-input-date"},datetime:{component:"hb-input-datetime"},text:{component:"hb-input-text"},number:{component:"hb-input-number"},email:{component:"hb-input-email"},color:{component:"hb-input-color"},file:{component:"hb-input-file"},textarea:{component:"hb-input-area"},range:{component:"hb-input-range"},checkbox:{component:"hb-input-checkbox",options:{labelIsHandledByComponent:!0}},radio:{component:"hb-input-radio"},coords:{component:"hb-input-coords"}};let r=kt(()=>{const b={};for(const E of s())if(E.type!=="row")b[E.id]=E.value;else if(E.type==="row"&&E.params?.columns?.length)for(const z of E.params.columns)b[z.id]=z.value;return b}),i=it(t,"id",7,""),s=it(t,"schema"),a=it(t,"i18nlang"),o=it(t,"show_validation",7,"no"),l=it(t,"hide_submit",7,!1),u=it(t,"submitted",7,"no"),c=it(t,"getvals",7,"no"),_=ve(Be({})),v=ve(Be({})),p=ve(Be({})),y=kt(()=>{const b=[];for(const E of s())E.type==="row"&&E.params?.columns?.length?b.push(...E.params.columns):b.push(E);return Ms(b.filter(E=>E.dependencies?.length),E=>E.dependencies.map(z=>z.id))});function C(b){b?.forEach?.(E=>{const z=n[E.type];if(!z)throw new Error(`FormRenderer: Tried to render an unknown component type ${E.type}!`);z.options?.row&&C(E.params?.columns??[]),h(_)[E.id]=h(_)[E.id]||!E.dependencies?.length})}function m(b){return b?.map?.(E=>{const z=n[E.type];if(!z)throw new Error(`FormRenderer: Tried to render an unknown component type ${E.type}!`);return z.options?.row?{entry:E,columns:m(E.params?.columns??[]),options:z.options}:{entry:E,component:z.component,options:z.options||{}}})||[]}let M=kt(()=>m(s()));l()===!0||l()==="yes"||l()==="true"?l(!0):l(!1),s()||console.warn("no schema provided"),Zi(()=>{if(typeof s()=="string")try{s(JSON.parse(s())),ae(v,{},!0),ae(p,{},!0),ae(_,{},!0),u()&&u()==="yes"&&s()&&typeof s()!="string"?J():u()==="yes"&&u("no"),console.log("effectform"),C(s())}catch(b){console.error("error with schema",s(),b)}});let B=kt(()=>!h(v)||!Object.entries(h(v))?.length?!0:!!Object.entries(h(v)).find(([b,E])=>!E&&h(_)&&h(_)[b]));const P=b=>{console.log("canShow",b);for(const E of b.dependencies||[])if(h(_)&&!h(_)[E.id]||h(r)&&!h(r)[E.id]||h(r)&&E?.values&&!E?.values?.includes(h(r)[E.id]))return!1;return!0},ne=b=>{P(b)?_t(b,b.value):Ee(b)},_t=(b,E)=>{h(_)[b.id]=!0,b.type!=="row"&&(h(r)[b.id]=h(p)[b.id]??E);for(const z of h(y)[b.id]||[])ne(z)},Ee=b=>{h(_)[b.id]=!1,delete h(r)[b.id];for(const E of h(y)[b.id]||[])Ee(E)};te({repoName:"@htmlbricks/hb-input-text",version:ee.version}),te({repoName:"@htmlbricks/hb-input-date",version:ee.version}),te({repoName:"@htmlbricks/hb-input-email",version:ee.version}),te({repoName:"@htmlbricks/hb-input-checkbox",version:ee.version}),te({repoName:"@htmlbricks/hb-input-number",version:ee.version}),te({repoName:"@htmlbricks/hb-input-area",version:ee.version}),te({repoName:"@htmlbricks/hb-input-radio",version:ee.version}),te({repoName:"@htmlbricks/hb-input-select",version:ee.version}),te({repoName:"@htmlbricks/hb-input-file",version:ee.version}),te({repoName:"@htmlbricks/hb-input-color",version:ee.version}),te({repoName:"@htmlbricks/hb-input-range",version:ee.version}),te({repoName:"@htmlbricks/hb-input-datetime",version:ee.version}),te({repoName:"@htmlbricks/hb-input-array-objects",version:ee.version}),te({repoName:"@htmlbricks/hb-input-array-tags",version:ee.version}),te({repoName:"@htmlbricks/hb-input-coords",version:ee.version});let X=ve(void 0);function Ae(b,E){b==="update"?(console.log("update",E),h(X)&&clearTimeout(h(X)),ae(X,setTimeout(()=>{t.$$host.dispatchEvent(new CustomEvent(b,{detail:E}))},300),!0)):t.$$host.dispatchEvent(new CustomEvent(b,{detail:E}))}const J=()=>{if(console.log("submitting form"),o("yes"),u("no"),console.log(h(B),JSON.stringify(h(v)),h(_),h(r)),h(B))return console.warn("Form is invalid");const b=Object.assign({_valid:!h(B)},h(r));Ae("submit",b)};function T(b){console.info("setValByMessage",b);let E;if(h(p)[b.id]!==b.value){if(h(p)[b.id]=b.value,h(_)[b.id]&&(h(r)[b.id]=b.value),h(y)[b.id])for(const z of h(y)[b.id])ne(z);E=Object.assign({_valid:!h(B),_id:i()},h(r))}h(v)[b.id]!==b.valid&&(h(v)[b.id]=b.valid,E=Object.assign({_valid:!h(B),_id:i()},h(r))),E&&Ae("update",E)}var bt={get id(){return i()},set id(b=""){i(b),Pe()},get schema(){return s()},set schema(b){s(b),Pe()},get i18nlang(){return a()},set i18nlang(b){a(b),Pe()},get show_validation(){return o()},set show_validation(b="no"){o(b),Pe()},get hide_submit(){return l()},set hide_submit(b=!1){l(b),Pe()},get submitted(){return u()},set submitted(b="no"){u(b),Pe()},get getvals(){return c()},set getvals(b="no"){c(b),Pe()}},fe=yo(),Sn=He(fe);{var $n=b=>{var E=wo(),z=cn(E);Wr(z,17,()=>h(M),({entry:st,component:Ce,options:j,columns:G})=>st.id,(st,Ce)=>{let j=()=>h(Ce).entry,G=()=>h(Ce).component,Gt=()=>h(Ce).options,At=()=>h(Ce).columns;var mt=zr(),Tn=cn(mt);{var qn=Ke=>{var ot=Qs();Wr(ot,21,At,({entry:gt,component:wt,options:An})=>gt.id,(gt,wt,An,ei)=>{let x=()=>h(wt).entry,K=()=>h(wt).component,Cn=()=>h(wt).options;var Kt=zr(),Rn=cn(Kt);{var Mn=Ct=>{var yt=Zs(),Wt=He(yt);{var In=N=>{var d=Is(),D=He(d);Te(d),g(()=>{kn(d,"for",x().id),Yr(D,`${x().label??""}${x().required?"*":""}`)}),S(N,d)};Ue(Wt,N=>{Cn().labelIsHandledByComponent||N(In)})}var Vn=Ht(Wt,2);{var Dn=N=>{var d=Vs();g(()=>w(d,"schemaentry",JSON.stringify({...x(),value:h(p)[x().id]??x().value}))),g(()=>w(d,"show_validation",o())),L(d,1,"svelte-yjqjiw"),$("setVal",d,D=>T(D.detail)),S(N,d)},Ln=N=>{var d=Ds();g(()=>w(d,"schemaentry",JSON.stringify({...x(),value:h(p)[x().id]??x().value}))),g(()=>w(d,"show_validation",o())),L(d,1,"svelte-yjqjiw"),$("setVal",d,D=>T(D.detail)),S(N,d)},Fn=N=>{var d=Ls();g(()=>w(d,"schemaentry",JSON.stringify({...x(),value:h(p)[x().id]??x().value}))),g(()=>w(d,"show_validation",o())),L(d,1,"svelte-yjqjiw"),$("setVal",d,D=>T(D.detail)),$("clickEnter",d,()=>J()),S(N,d)},k=N=>{var d=Fs();g(()=>w(d,"schemaentry",JSON.stringify({...x(),value:h(p)[x().id]??x().value}))),g(()=>w(d,"show_validation",o())),L(d,1,"svelte-yjqjiw"),$("setVal",d,D=>T(D.detail)),S(N,d)},f=N=>{var d=Ps();g(()=>w(d,"schemaentry",JSON.stringify({...x(),value:h(p)[x().id]??x().value}))),g(()=>w(d,"show_validation",o())),L(d,1,"svelte-yjqjiw"),$("setVal",d,D=>T(D.detail)),S(N,d)},V=N=>{var d=Js();g(()=>w(d,"schemaentry",JSON.stringify({...x(),value:h(p)[x().id]??x().value}))),g(()=>w(d,"show_validation",o())),L(d,1,"svelte-yjqjiw"),$("setVal",d,D=>T(D.detail)),S(N,d)},No=N=>{var d=Bs();g(()=>w(d,"schemaentry",JSON.stringify({...x(),value:h(p)[x().id]??x().value}))),g(()=>w(d,"show_validation",o())),L(d,1,"svelte-yjqjiw"),$("setVal",d,D=>T(D.detail)),$("clickEnter",d,()=>J()),S(N,d)},So=N=>{var d=Hs();g(()=>w(d,"schemaentry",JSON.stringify({...x(),value:h(p)[x().id]??x().value}))),g(()=>w(d,"show_validation",o())),L(d,1,"svelte-yjqjiw"),$("setVal",d,D=>T(D.detail)),$("clickEnter",d,()=>J()),S(N,d)},$o=N=>{var d=zs();g(()=>w(d,"schemaentry",JSON.stringify({...x(),value:h(p)[x().id]??x().value}))),g(()=>w(d,"show_validation",o())),L(d,1,"svelte-yjqjiw"),$("setVal",d,D=>T(D.detail)),$("clickEnter",d,()=>J()),S(N,d)},To=N=>{var d=Ys();L(d,1,"checkbox-inline svelte-yjqjiw"),g(()=>w(d,"schemaentry",JSON.stringify({...x(),value:h(p)[x().id]??x().value}))),g(()=>w(d,"show_validation",o())),$("setVal",d,D=>T(D.detail)),S(N,d)},qo=N=>{var d=Us();g(()=>w(d,"schemaentry",JSON.stringify({...x(),value:h(p)[x().id]??x().value}))),g(()=>w(d,"show_validation",o())),L(d,1,"svelte-yjqjiw"),$("setVal",d,D=>T(D.detail)),$("clickEnter",d,()=>J()),S(N,d)},Oo=N=>{var d=Gs();g(()=>w(d,"schemaentry",JSON.stringify({...x(),value:h(p)[x().id]??x().value}))),g(()=>w(d,"show_validation",o())),L(d,1,"svelte-yjqjiw"),$("setVal",d,D=>T(D.detail)),$("clickEnter",d,()=>J()),S(N,d)},Ao=N=>{var d=Ks();g(()=>w(d,"schemaentry",JSON.stringify({...x(),value:h(p)[x().id]??x().value}))),g(()=>w(d,"show_validation",o())),L(d,1,"svelte-yjqjiw"),$("setVal",d,D=>T(D.detail)),S(N,d)},Co=N=>{var d=Ws();g(()=>w(d,"schemaentry",JSON.stringify({...x(),value:h(p)[x().id]??x().value}))),g(()=>w(d,"show_validation",o())),L(d,1,"svelte-yjqjiw"),$("setVal",d,D=>T(D.detail)),S(N,d)},Ro=N=>{var d=Xs();g(()=>w(d,"schemaentry",JSON.stringify({...x(),value:h(p)[x().id]??x().value}))),g(()=>w(d,"i18nlang",a())),g(()=>w(d,"show_validation",o())),L(d,1,"svelte-yjqjiw"),$("setVal",d,D=>T(D.detail)),S(N,d)};Ue(Vn,N=>{K()==="hb-array-objects"?N(Dn):K()==="hb-input-array-tags"?N(Ln,1):K()==="hb-input-text"?N(Fn,2):K()==="hb-input-color"?N(k,3):K()==="hb-input-range"?N(f,4):K()==="hb-input-file"?N(V,5):K()==="hb-input-email"?N(No,6):K()==="hb-input-date"?N(So,7):K()==="hb-input-datetime"?N($o,8):K()==="hb-input-checkbox"?N(To,9):K()==="hb-input-number"?N(qo,10):K()==="hb-input-area"?N(Oo,11):K()==="hb-input-radio"?N(Ao,12):K()==="hb-input-select"?N(Co,13):K()==="hb-input-coords"&&N(Ro,14)})}Te(yt),g(()=>Ns(yt,K()==="hb-input-checkbox"?"line-height:52px;":"")),S(Ct,yt)};Ue(Rn,Ct=>{h(_)[x().id]&&Ct(Mn)})}S(gt,Kt)}),Te(ot),S(Ke,ot)},On=kt(()=>Gt()?.row&&(h(_)[j().id]||h(_)[j().id]!==!1)&&At()?.length?At().some(Ke=>h(_)[Ke.entry.id]):!1),ko=Ke=>{var ot=bo(),gt=He(ot);{var wt=k=>{var f=eo(),V=He(f);Te(f),g(()=>{kn(f,"for",j().id),Yr(V,`${j().label??""}${j().required?"*":""}`)}),S(k,f)};Ue(gt,k=>{Gt()?.labelIsHandledByComponent||k(wt)})}var An=Ht(gt,2);{var ei=k=>{var f=to();g(()=>w(f,"schemaentry",JSON.stringify({...j(),value:h(p)[j().id]??j().value},null,0))),g(()=>w(f,"show_validation",o())),L(f,1,"svelte-yjqjiw"),$("setVal",f,V=>T(V.detail)),$("clickEnter",f,()=>J()),S(k,f)},x=k=>{var f=no();g(()=>w(f,"schemaentry",JSON.stringify({...j(),value:h(p)[j().id]??j().value},null,0))),g(()=>w(f,"show_validation",o())),L(f,1,"svelte-yjqjiw"),$("setVal",f,V=>T(V.detail)),S(k,f)},K=k=>{var f=ro();g(()=>w(f,"schemaentry",JSON.stringify({...j(),value:h(p)[j().id]??j().value},null,0))),g(()=>w(f,"show_validation",o())),L(f,1,"svelte-yjqjiw"),$("setVal",f,V=>T(V.detail)),S(k,f)},Cn=k=>{var f=io();g(()=>w(f,"schemaentry",JSON.stringify({...j(),value:h(p)[j().id]??j().value},null,0))),g(()=>w(f,"show_validation",o())),L(f,1,"svelte-yjqjiw"),$("setVal",f,V=>T(V.detail)),S(k,f)},Kt=k=>{var f=so();g(()=>w(f,"schemaentry",JSON.stringify({...j(),value:h(p)[j().id]??j().value},null,0))),g(()=>w(f,"show_validation",o())),L(f,1,"svelte-yjqjiw"),$("setVal",f,V=>T(V.detail)),S(k,f)},Rn=k=>{var f=oo();g(()=>w(f,"schemaentry",JSON.stringify({...j(),value:h(p)[j().id]??j().value},null,0))),g(()=>w(f,"show_validation",o())),L(f,1,"svelte-yjqjiw"),$("setVal",f,V=>T(V.detail)),S(k,f)},Mn=k=>{var f=ao();g(()=>w(f,"schemaentry",JSON.stringify({...j(),value:h(p)[j().id]??j().value},null,0))),g(()=>w(f,"show_validation",o())),L(f,1,"svelte-yjqjiw"),$("setVal",f,V=>T(V.detail)),$("clickEnter",f,()=>J()),S(k,f)},Ct=k=>{var f=lo();g(()=>w(f,"schemaentry",JSON.stringify({...j(),value:h(p)[j().id]??j().value},null,0))),g(()=>w(f,"show_validation",o())),L(f,1,"svelte-yjqjiw"),$("setVal",f,V=>T(V.detail)),$("clickEnter",f,()=>J()),S(k,f)},yt=k=>{var f=uo();g(()=>w(f,"schemaentry",JSON.stringify({...j(),value:h(p)[j().id]??j().value},null,0))),g(()=>w(f,"show_validation",o())),L(f,1,"svelte-yjqjiw"),$("setVal",f,V=>T(V.detail)),$("clickEnter",f,()=>J()),S(k,f)},Wt=k=>{var f=fo();g(()=>w(f,"schemaentry",JSON.stringify({...j(),value:h(p)[j().id]??j().value},null,0))),g(()=>w(f,"show_validation",o())),L(f,1,"svelte-yjqjiw"),$("setVal",f,V=>T(V.detail)),S(k,f)},In=k=>{var f=co();g(()=>w(f,"schemaentry",JSON.stringify({...j(),value:h(p)[j().id]??j().value},null,0))),g(()=>w(f,"show_validation",o())),L(f,1,"svelte-yjqjiw"),$("setVal",f,V=>T(V.detail)),$("clickEnter",f,()=>J()),S(k,f)},Vn=k=>{var f=ho();g(()=>w(f,"schemaentry",JSON.stringify({...j(),value:h(p)[j().id]??j().value},null,0))),g(()=>w(f,"show_validation",o())),L(f,1,"svelte-yjqjiw"),$("setVal",f,V=>T(V.detail)),$("clickEnter",f,()=>J()),S(k,f)},Dn=k=>{var f=vo();g(()=>w(f,"schemaentry",JSON.stringify({...j(),value:h(p)[j().id]??j().value},null,0))),g(()=>w(f,"show_validation",o())),L(f,1,"svelte-yjqjiw"),$("setVal",f,V=>T(V.detail)),S(k,f)},Ln=k=>{var f=po();g(()=>w(f,"schemaentry",JSON.stringify({...j(),value:h(p)[j().id]??j().value},null,0))),g(()=>w(f,"show_validation",o())),L(f,1,"svelte-yjqjiw"),$("setVal",f,V=>T(V.detail)),S(k,f)},Fn=k=>{var f=_o();g(()=>w(f,"schemaentry",JSON.stringify({...j(),value:h(p)[j().id]??j().value},null,0))),g(()=>w(f,"i18nlang",a())),g(()=>w(f,"show_validation",o())),L(f,1,"svelte-yjqjiw"),$("setVal",f,V=>T(V.detail)),S(k,f)};Ue(An,k=>{G()==="hb-input-text"?k(ei):G()==="hb-input-array-objects"?k(x,1):G()==="hb-input-array-tags"?k(K,2):G()==="hb-input-color"?k(Cn,3):G()==="hb-input-range"?k(Kt,4):G()==="hb-input-file"?k(Rn,5):G()==="hb-input-email"?k(Mn,6):G()==="hb-input-date"?k(Ct,7):G()==="hb-input-datetime"?k(yt,8):G()==="hb-input-checkbox"?k(Wt,9):G()==="hb-input-number"?k(In,10):G()==="hb-input-area"?k(Vn,11):G()==="hb-input-radio"?k(Dn,12):G()==="hb-input-select"?k(Ln,13):G()==="hb-input-coords"&&k(Fn,14)})}Te(ot),S(Ke,ot)};Ue(Tn,Ke=>{h(On)?Ke(qn):h(_)&&h(_)[j().id]&&Ke(ko,1)})}S(st,mt)});var Eo=Ht(z,2);{var xo=st=>{var Ce=go(),j=He(Ce),G=He(j);xn(G,t,"submit_button",{},At=>{var mt=mo(),Tn=He(mt);xn(Tn,t,"submit_label",{},qn=>{var On=vs("Submit");S(qn,On)}),Te(mt),S(At,mt)}),Te(j);var Gt=Ht(j,2);xn(Gt,t,"other_buttons",{},null),Te(Ce),us("click",j,()=>J()),S(st,Ce)};Ue(Eo,st=>{l()||st(xo)})}S(b,E)};Ue(Sn,b=>{s()&&typeof s()=="object"&&s()?.length&&b($n)})}return Te(fe),S(e,fe),rr(bt)}fs(["click"]),customElements.define("hb-form",Rs(Qr,{id:{},schema:{},i18nlang:{},show_validation:{},hide_submit:{},submitted:{},getvals:{}},["submit_button","submit_label","other_buttons"],[],{mode:"open"})),Pn.Component=Qr,Object.defineProperty(Pn,Symbol.toStringTag,{value:"Module"})})(this.form=this.form||{});
99
- //# sourceMappingURL=main.iife.js.map
99
+ }:host {font-family:"Roboto", sans-serif;}`};function Wi(e,t){ze(t,!0),Fr(e,Ui);let n={row:{component:void 0,options:{row:!0}},select:{component:`hb-input-select`},arrayobjects:{component:`hb-input-array-objects`},arraytags:{component:`hb-input-array-tags`},date:{component:`hb-input-date`},datetime:{component:`hb-input-datetime`},text:{component:`hb-input-text`},number:{component:`hb-input-number`},email:{component:`hb-input-email`},color:{component:`hb-input-color`},file:{component:`hb-input-file`},textarea:{component:`hb-input-area`},range:{component:`hb-input-range`},checkbox:{component:`hb-input-checkbox`,options:{labelIsHandledByComponent:!0}},radio:{component:`hb-input-radio`},coords:{component:`hb-input-coords`}},r=kt(()=>{let e={};for(let t of a())if(t.type!==`row`)e[t.id]=t.value;else if(t.type===`row`&&t.params?.columns?.length)for(let n of t.params.columns)e[n.id]=n.value;return e}),i=Xr(t,`id`,7,``),a=Xr(t,`schema`,7),o=Xr(t,`i18nlang`,7),s=Xr(t,`show_validation`,7,`no`),c=Xr(t,`hide_submit`,7,!1),l=Xr(t,`submitted`,7,`no`),u=Xr(t,`getvals`,7,`no`),d=N(Kt({})),f=N(Kt({})),p=N(Kt({})),m=kt(()=>{let e=[];for(let t of a())t.type===`row`&&t.params?.columns?.length?e.push(...t.params.columns):e.push(t);return ri(e.filter(e=>e.dependencies?.length),e=>e.dependencies.map(e=>e.id))});function h(e){e?.forEach?.(e=>{let t=n[e.type];if(!t)throw Error(`FormRenderer: Tried to render an unknown component type ${e.type}!`);t.options?.row&&h(e.params?.columns??[]),K(d)[e.id]=K(d)[e.id]||!e.dependencies?.length})}function g(e){return e?.map?.(e=>{let t=n[e.type];if(!t)throw Error(`FormRenderer: Tried to render an unknown component type ${e.type}!`);return t.options?.row?{entry:e,columns:g(e.params?.columns??[]),options:t.options}:{entry:e,component:t.component,options:t.options||{}}})||[]}let _=kt(()=>g(a()));c()===!0||c()===`yes`||c()===`true`?c(!0):c(!1),a()||console.warn(`no schema provided`),mn(()=>{if(typeof a()==`string`)try{a(JSON.parse(a())),P(f,{},!0),P(p,{},!0),P(d,{},!0),l()&&l()===`yes`&&a()&&typeof a()!=`string`?w():l()===`yes`&&l(`no`),console.log(`effectform`),h(a())}catch(e){console.error(`error with schema`,a(),e)}});let v=kt(()=>!K(f)||!Object.entries(K(f))?.length?!0:!!Object.entries(K(f)).find(([e,t])=>!t&&K(d)&&K(d)[e])),y=e=>{console.log(`canShow`,e);for(let t of e.dependencies||[])if(K(d)&&!K(d)[t.id]||K(r)&&!K(r)[t.id]||K(r)&&t?.values&&!t?.values?.includes(K(r)[t.id]))return!1;return!0},b=e=>{y(e)?x(e,e.value):S(e)},x=(e,t)=>{K(d)[e.id]=!0,e.type!==`row`&&(K(r)[e.id]=K(p)[e.id]??t);for(let t of K(m)[e.id]||[])b(t)},S=e=>{K(d)[e.id]=!1,delete K(r)[e.id];for(let t of K(m)[e.id]||[])S(t)};$({repoName:`@htmlbricks/hb-input-text`,version:Q.version}),$({repoName:`@htmlbricks/hb-input-date`,version:Q.version}),$({repoName:`@htmlbricks/hb-input-email`,version:Q.version}),$({repoName:`@htmlbricks/hb-input-checkbox`,version:Q.version}),$({repoName:`@htmlbricks/hb-input-number`,version:Q.version}),$({repoName:`@htmlbricks/hb-input-area`,version:Q.version}),$({repoName:`@htmlbricks/hb-input-radio`,version:Q.version}),$({repoName:`@htmlbricks/hb-input-select`,version:Q.version}),$({repoName:`@htmlbricks/hb-input-file`,version:Q.version}),$({repoName:`@htmlbricks/hb-input-color`,version:Q.version}),$({repoName:`@htmlbricks/hb-input-range`,version:Q.version}),$({repoName:`@htmlbricks/hb-input-datetime`,version:Q.version}),$({repoName:`@htmlbricks/hb-input-array-objects`,version:Q.version}),$({repoName:`@htmlbricks/hb-input-array-tags`,version:Q.version}),$({repoName:`@htmlbricks/hb-input-coords`,version:Q.version});let ee=N(void 0);function C(e,n){e===`update`?(console.log(`update`,n),K(ee)&&clearTimeout(K(ee)),P(ee,setTimeout(()=>{t.$$host.dispatchEvent(new CustomEvent(e,{detail:n}))},300),!0)):t.$$host.dispatchEvent(new CustomEvent(e,{detail:n}))}let w=()=>{if(console.log(`submitting form`),s(`yes`),l(`no`),console.log(K(v),JSON.stringify(K(f)),K(d),K(r)),K(v))return console.warn(`Form is invalid`);C(`submit`,Object.assign({_valid:!K(v)},K(r)))};function T(e){console.info(`setValByMessage`,e);let t;if(K(p)[e.id]!==e.value){if(K(p)[e.id]=e.value,K(d)[e.id]&&(K(r)[e.id]=e.value),K(m)[e.id])for(let t of K(m)[e.id])b(t);t=Object.assign({_valid:!K(v),_id:i()},K(r))}K(f)[e.id]!==e.valid&&(K(f)[e.id]=e.valid,t=Object.assign({_valid:!K(v),_id:i()},K(r))),t&&C(`update`,t)}var te={get id(){return i()},set id(e=``){i(e),ut()},get schema(){return a()},set schema(e){a(e),ut()},get i18nlang(){return o()},set i18nlang(e){o(e),ut()},get show_validation(){return s()},set show_validation(e=`no`){s(e),ut()},get hide_submit(){return c()},set hide_submit(e=!1){c(e),ut()},get submitted(){return l()},set submitted(e=`no`){l(e),ut()},get getvals(){return u()},set getvals(e=`no`){u(e),ut()}},ne=Hi(),re=en(ne),ie=e=>{var n=Vi(),r=tn(n);Or(r,17,()=>K(_),({entry:e,component:t,options:n,columns:r})=>e.id,(e,t)=>{let n=()=>K(t).entry,r=()=>K(t).component,i=()=>K(t).options,a=()=>K(t).columns;var c=pr(),l=tn(c),u=e=>{var t=xi();Or(t,21,a,({entry:e,component:t,options:n})=>e.id,(e,t,n,r)=>{let i=()=>K(t).entry,a=()=>K(t).component,c=()=>K(t).options;var l=pr(),u=tn(l),f=e=>{var t=bi(),n=en(t),r=e=>{var t=ii(),n=en(t);ke(t),I(()=>{Kr(t,`for`,i().id),gr(n,`${i().label??``}${i().required?`*`:``}`)}),Y(e,t)};wr(n,e=>{c().labelIsHandledByComponent||e(r)});var l=nn(n,2),u=e=>{var t=ai();I(()=>Z(t,`schemaentry`,JSON.stringify({...i(),value:K(p)[i().id]??i().value}))),I(()=>Z(t,`show_validation`,s())),X(t,1,`svelte-yjqjiw`),q(`setVal`,t,e=>T(e.detail)),Y(e,t)},d=e=>{var t=oi();I(()=>Z(t,`schemaentry`,JSON.stringify({...i(),value:K(p)[i().id]??i().value}))),I(()=>Z(t,`show_validation`,s())),X(t,1,`svelte-yjqjiw`),q(`setVal`,t,e=>T(e.detail)),Y(e,t)},f=e=>{var t=si();I(()=>Z(t,`schemaentry`,JSON.stringify({...i(),value:K(p)[i().id]??i().value}))),I(()=>Z(t,`show_validation`,s())),X(t,1,`svelte-yjqjiw`),q(`setVal`,t,e=>T(e.detail)),q(`clickEnter`,t,()=>w()),Y(e,t)},m=e=>{var t=ci();I(()=>Z(t,`schemaentry`,JSON.stringify({...i(),value:K(p)[i().id]??i().value}))),I(()=>Z(t,`show_validation`,s())),X(t,1,`svelte-yjqjiw`),q(`setVal`,t,e=>T(e.detail)),Y(e,t)},h=e=>{var t=li();I(()=>Z(t,`schemaentry`,JSON.stringify({...i(),value:K(p)[i().id]??i().value}))),I(()=>Z(t,`show_validation`,s())),X(t,1,`svelte-yjqjiw`),q(`setVal`,t,e=>T(e.detail)),Y(e,t)},g=e=>{var t=ui();I(()=>Z(t,`schemaentry`,JSON.stringify({...i(),value:K(p)[i().id]??i().value}))),I(()=>Z(t,`show_validation`,s())),X(t,1,`svelte-yjqjiw`),q(`setVal`,t,e=>T(e.detail)),Y(e,t)},_=e=>{var t=di();I(()=>Z(t,`schemaentry`,JSON.stringify({...i(),value:K(p)[i().id]??i().value}))),I(()=>Z(t,`show_validation`,s())),X(t,1,`svelte-yjqjiw`),q(`setVal`,t,e=>T(e.detail)),q(`clickEnter`,t,()=>w()),Y(e,t)},v=e=>{var t=fi();I(()=>Z(t,`schemaentry`,JSON.stringify({...i(),value:K(p)[i().id]??i().value}))),I(()=>Z(t,`show_validation`,s())),X(t,1,`svelte-yjqjiw`),q(`setVal`,t,e=>T(e.detail)),q(`clickEnter`,t,()=>w()),Y(e,t)},y=e=>{var t=pi();I(()=>Z(t,`schemaentry`,JSON.stringify({...i(),value:K(p)[i().id]??i().value}))),I(()=>Z(t,`show_validation`,s())),X(t,1,`svelte-yjqjiw`),q(`setVal`,t,e=>T(e.detail)),q(`clickEnter`,t,()=>w()),Y(e,t)},b=e=>{var t=mi();X(t,1,`checkbox-inline svelte-yjqjiw`),I(()=>Z(t,`schemaentry`,JSON.stringify({...i(),value:K(p)[i().id]??i().value}))),I(()=>Z(t,`show_validation`,s())),q(`setVal`,t,e=>T(e.detail)),Y(e,t)},x=e=>{var t=hi();I(()=>Z(t,`schemaentry`,JSON.stringify({...i(),value:K(p)[i().id]??i().value}))),I(()=>Z(t,`show_validation`,s())),X(t,1,`svelte-yjqjiw`),q(`setVal`,t,e=>T(e.detail)),q(`clickEnter`,t,()=>w()),Y(e,t)},S=e=>{var t=gi();I(()=>Z(t,`schemaentry`,JSON.stringify({...i(),value:K(p)[i().id]??i().value}))),I(()=>Z(t,`show_validation`,s())),X(t,1,`svelte-yjqjiw`),q(`setVal`,t,e=>T(e.detail)),q(`clickEnter`,t,()=>w()),Y(e,t)},ee=e=>{var t=_i();I(()=>Z(t,`schemaentry`,JSON.stringify({...i(),value:K(p)[i().id]??i().value}))),I(()=>Z(t,`show_validation`,s())),X(t,1,`svelte-yjqjiw`),q(`setVal`,t,e=>T(e.detail)),Y(e,t)},C=e=>{var t=vi();I(()=>Z(t,`schemaentry`,JSON.stringify({...i(),value:K(p)[i().id]??i().value}))),I(()=>Z(t,`show_validation`,s())),X(t,1,`svelte-yjqjiw`),q(`setVal`,t,e=>T(e.detail)),Y(e,t)},te=e=>{var t=yi();I(()=>Z(t,`schemaentry`,JSON.stringify({...i(),value:K(p)[i().id]??i().value}))),I(()=>Z(t,`i18nlang`,o())),I(()=>Z(t,`show_validation`,s())),X(t,1,`svelte-yjqjiw`),q(`setVal`,t,e=>T(e.detail)),Y(e,t)};wr(l,e=>{a()===`hb-array-objects`?e(u):a()===`hb-input-array-tags`?e(d,1):a()===`hb-input-text`?e(f,2):a()===`hb-input-color`?e(m,3):a()===`hb-input-range`?e(h,4):a()===`hb-input-file`?e(g,5):a()===`hb-input-email`?e(_,6):a()===`hb-input-date`?e(v,7):a()===`hb-input-datetime`?e(y,8):a()===`hb-input-checkbox`?e(b,9):a()===`hb-input-number`?e(x,10):a()===`hb-input-area`?e(S,11):a()===`hb-input-radio`?e(ee,12):a()===`hb-input-select`?e(C,13):a()===`hb-input-coords`&&e(te,14)}),ke(t),I(()=>Hr(t,a()===`hb-input-checkbox`?`line-height:52px;`:``)),Y(e,t)};wr(u,e=>{K(d)[i().id]&&e(f)}),Y(e,l)}),ke(t),Y(e,t)},f=kt(()=>i()?.row&&(K(d)[n().id]||K(d)[n().id]!==!1)&&a()?.length?a().some(e=>K(d)[e.entry.id]):!1),m=e=>{var t=Ri(),a=en(t),c=e=>{var t=Si(),r=en(t);ke(t),I(()=>{Kr(t,`for`,n().id),gr(r,`${n().label??``}${n().required?`*`:``}`)}),Y(e,t)};wr(a,e=>{i()?.labelIsHandledByComponent||e(c)});var l=nn(a,2),u=e=>{var t=Ci();I(()=>Z(t,`schemaentry`,JSON.stringify({...n(),value:K(p)[n().id]??n().value},null,0))),I(()=>Z(t,`show_validation`,s())),X(t,1,`svelte-yjqjiw`),q(`setVal`,t,e=>T(e.detail)),q(`clickEnter`,t,()=>w()),Y(e,t)},d=e=>{var t=wi();I(()=>Z(t,`schemaentry`,JSON.stringify({...n(),value:K(p)[n().id]??n().value},null,0))),I(()=>Z(t,`show_validation`,s())),X(t,1,`svelte-yjqjiw`),q(`setVal`,t,e=>T(e.detail)),Y(e,t)},f=e=>{var t=Ti();I(()=>Z(t,`schemaentry`,JSON.stringify({...n(),value:K(p)[n().id]??n().value},null,0))),I(()=>Z(t,`show_validation`,s())),X(t,1,`svelte-yjqjiw`),q(`setVal`,t,e=>T(e.detail)),Y(e,t)},m=e=>{var t=Ei();I(()=>Z(t,`schemaentry`,JSON.stringify({...n(),value:K(p)[n().id]??n().value},null,0))),I(()=>Z(t,`show_validation`,s())),X(t,1,`svelte-yjqjiw`),q(`setVal`,t,e=>T(e.detail)),Y(e,t)},h=e=>{var t=Di();I(()=>Z(t,`schemaentry`,JSON.stringify({...n(),value:K(p)[n().id]??n().value},null,0))),I(()=>Z(t,`show_validation`,s())),X(t,1,`svelte-yjqjiw`),q(`setVal`,t,e=>T(e.detail)),Y(e,t)},g=e=>{var t=Oi();I(()=>Z(t,`schemaentry`,JSON.stringify({...n(),value:K(p)[n().id]??n().value},null,0))),I(()=>Z(t,`show_validation`,s())),X(t,1,`svelte-yjqjiw`),q(`setVal`,t,e=>T(e.detail)),Y(e,t)},_=e=>{var t=ki();I(()=>Z(t,`schemaentry`,JSON.stringify({...n(),value:K(p)[n().id]??n().value},null,0))),I(()=>Z(t,`show_validation`,s())),X(t,1,`svelte-yjqjiw`),q(`setVal`,t,e=>T(e.detail)),q(`clickEnter`,t,()=>w()),Y(e,t)},v=e=>{var t=Ai();I(()=>Z(t,`schemaentry`,JSON.stringify({...n(),value:K(p)[n().id]??n().value},null,0))),I(()=>Z(t,`show_validation`,s())),X(t,1,`svelte-yjqjiw`),q(`setVal`,t,e=>T(e.detail)),q(`clickEnter`,t,()=>w()),Y(e,t)},y=e=>{var t=ji();I(()=>Z(t,`schemaentry`,JSON.stringify({...n(),value:K(p)[n().id]??n().value},null,0))),I(()=>Z(t,`show_validation`,s())),X(t,1,`svelte-yjqjiw`),q(`setVal`,t,e=>T(e.detail)),q(`clickEnter`,t,()=>w()),Y(e,t)},b=e=>{var t=Mi();I(()=>Z(t,`schemaentry`,JSON.stringify({...n(),value:K(p)[n().id]??n().value},null,0))),I(()=>Z(t,`show_validation`,s())),X(t,1,`svelte-yjqjiw`),q(`setVal`,t,e=>T(e.detail)),Y(e,t)},x=e=>{var t=Ni();I(()=>Z(t,`schemaentry`,JSON.stringify({...n(),value:K(p)[n().id]??n().value},null,0))),I(()=>Z(t,`show_validation`,s())),X(t,1,`svelte-yjqjiw`),q(`setVal`,t,e=>T(e.detail)),q(`clickEnter`,t,()=>w()),Y(e,t)},S=e=>{var t=Pi();I(()=>Z(t,`schemaentry`,JSON.stringify({...n(),value:K(p)[n().id]??n().value},null,0))),I(()=>Z(t,`show_validation`,s())),X(t,1,`svelte-yjqjiw`),q(`setVal`,t,e=>T(e.detail)),q(`clickEnter`,t,()=>w()),Y(e,t)},ee=e=>{var t=Fi();I(()=>Z(t,`schemaentry`,JSON.stringify({...n(),value:K(p)[n().id]??n().value},null,0))),I(()=>Z(t,`show_validation`,s())),X(t,1,`svelte-yjqjiw`),q(`setVal`,t,e=>T(e.detail)),Y(e,t)},C=e=>{var t=Ii();I(()=>Z(t,`schemaentry`,JSON.stringify({...n(),value:K(p)[n().id]??n().value},null,0))),I(()=>Z(t,`show_validation`,s())),X(t,1,`svelte-yjqjiw`),q(`setVal`,t,e=>T(e.detail)),Y(e,t)},te=e=>{var t=Li();I(()=>Z(t,`schemaentry`,JSON.stringify({...n(),value:K(p)[n().id]??n().value},null,0))),I(()=>Z(t,`i18nlang`,o())),I(()=>Z(t,`show_validation`,s())),X(t,1,`svelte-yjqjiw`),q(`setVal`,t,e=>T(e.detail)),Y(e,t)};wr(l,e=>{r()===`hb-input-text`?e(u):r()===`hb-input-array-objects`?e(d,1):r()===`hb-input-array-tags`?e(f,2):r()===`hb-input-color`?e(m,3):r()===`hb-input-range`?e(h,4):r()===`hb-input-file`?e(g,5):r()===`hb-input-email`?e(_,6):r()===`hb-input-date`?e(v,7):r()===`hb-input-datetime`?e(y,8):r()===`hb-input-checkbox`?e(b,9):r()===`hb-input-number`?e(x,10):r()===`hb-input-area`?e(S,11):r()===`hb-input-radio`?e(ee,12):r()===`hb-input-select`?e(C,13):r()===`hb-input-coords`&&e(te,14)}),ke(t),Y(e,t)};wr(l,e=>{K(f)?e(u):K(d)&&K(d)[n().id]&&e(m,1)}),Y(e,c)});var i=nn(r,2),a=e=>{var n=Bi(),r=en(n);Pr(en(r),t,`submit_button`,{},e=>{var n=zi();Pr(en(n),t,`submit_label`,{},e=>{Y(e,fr(`Submit`))}),ke(n),Y(e,n)}),ke(r),Pr(nn(r,2),t,`other_buttons`,{},null),ke(n),ir(`click`,r,()=>w()),Y(e,n)};wr(i,e=>{c()||e(a)}),Y(e,n)};return wr(re,e=>{a()&&typeof a()==`object`&&a()?.length&&e(ie)}),ke(ne),Y(e,ne),Be(te)}ar([`click`]),customElements.define(`hb-form`,ni(Wi,{id:{},schema:{},i18nlang:{},show_validation:{},hide_submit:{},submitted:{},getvals:{}},[`submit_button`,`submit_label`,`other_buttons`],[],{mode:`open`})),e.Component=Wi})(this.form=this.form||{});
100
+ //# sourceMappingURL=main.iife.js.map