@htmlbricks/hb-form-composer 0.66.1 → 0.66.3

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,5 @@
1
1
  (function(nn){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const gr=1,mr=2,yr=16,wr=1,$r=4,Er=8,xr=16,Tr=1,Sr=2,rn="[",xt="[!",sn="[?",Tt="]",Fe={},M=Symbol(),on="http://www.w3.org/1999/xhtml",kr=!1;var ln=Array.isArray,Nr=Array.prototype.indexOf,qe=Array.prototype.includes,st=Array.from,ot=Object.keys,lt=Object.defineProperty,Te=Object.getOwnPropertyDescriptor,Ar=Object.getOwnPropertyDescriptors,Cr=Object.prototype,Rr=Array.prototype,an=Object.getPrototypeOf,fn=Object.isExtensible;const Or=()=>{};function Mr(e){for(var t=0;t<e.length;t++)e[t]()}function un(){var e,t,n=new Promise((r,i)=>{e=r,t=i});return{promise:n,resolve:e,reject:t}}const C=2,je=4,at=8,cn=1<<24,ve=16,ee=32,pe=64,St=128,U=512,A=1024,L=2048,ie=4096,z=8192,J=16384,_e=32768,dn=1<<25,ze=65536,hn=1<<17,Lr=1<<18,Se=1<<19,Pr=1<<20,fe=1<<25,ke=65536,kt=1<<21,Nt=1<<22,be=1<<23,ft=Symbol("$state"),vn=Symbol("legacy props"),Dr=Symbol(""),ue=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},Ir=!!globalThis.document?.contentType&&globalThis.document.contentType.includes("xml"),ut=3,We=8;function Fr(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function qr(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function jr(e,t,n){throw new Error("https://svelte.dev/e/each_key_duplicate")}function zr(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Br(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Hr(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Vr(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Yr(){throw new Error("https://svelte.dev/e/hydration_failed")}function Ur(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function Jr(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Wr(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Gr(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Kr(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function ct(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function Xr(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let T=!1;function te(e){T=e}let $;function B(e){if(e===null)throw ct(),Fe;return $=e}function dt(){return B(se($))}function pn(e){if(T){if(se($)!==null)throw ct(),Fe;$=e}}function Zr(e=1){if(T){for(var t=e,n=$;t--;)n=se(n);$=n}}function ht(e=!0){for(var t=0,n=$;;){if(n.nodeType===We){var r=n.data;if(r===Tt){if(t===0)return n;t-=1}else(r===rn||r===xt||r[0]==="["&&!isNaN(Number(r.slice(1))))&&(t+=1)}var i=se(n);e&&n.remove(),n=i}}function _n(e){if(!e||e.nodeType!==We)throw ct(),Fe;return e.data}function bn(e){return e===this.v}function Qr(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function gn(e){return!Qr(e,this.v)}let ei=!1,H=null;function Be(e){H=e}function mn(e,t=!1,n){H={p:H,i:!1,c:null,e:null,s:e,x:null,r:m,l:null}}function yn(e){var t=H,n=t.e;if(n!==null){t.e=null;for(var r of n)Wn(r)}return e!==void 0&&(t.x=e),t.i=!0,H=t.p,e??{}}function wn(){return!0}let Ne=[];function $n(){var e=Ne;Ne=[],Mr(e)}function Ae(e){if(Ne.length===0&&!Ge){var t=Ne;queueMicrotask(()=>{t===Ne&&$n()})}Ne.push(e)}function ti(){for(;Ne.length>0;)$n()}function En(e){var t=m;if(t===null)return g.f|=be,e;if((t.f&_e)===0&&(t.f&je)===0)throw e;ge(e,t)}function ge(e,t){for(;t!==null;){if((t.f&St)!==0){if((t.f&_e)===0)throw e;try{t.b.error(e);return}catch(n){e=n}}t=t.parent}throw e}const ni=-7169;function N(e,t){e.f=e.f&ni|t}function At(e){(e.f&U)!==0||e.deps===null?N(e,A):N(e,ie)}function xn(e){if(e!==null)for(const t of e)(t.f&C)===0||(t.f&ke)===0||(t.f^=ke,xn(t.deps))}function Tn(e,t,n){(e.f&L)!==0?t.add(e):(e.f&ie)!==0&&n.add(e),xn(e.deps),N(e,A)}let vt=!1;function ri(e){var t=vt;try{return vt=!1,[e(),vt]}finally{vt=t}}const me=new Set;let S=null,ne=null,Ct=null,Ge=!1,Rt=!1,He=null,pt=null;var Sn=0;let ii=1;class ce{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;#l=new Set;#a=new Map;is_fork=!1;#c=!1;#f=new Set;#d(){return this.is_fork||this.#i.size>0}#v(){for(const r of this.#f)for(const i of r.#i.keys()){for(var t=!1,n=i;n.parent!==null;){if(this.#a.has(n)){t=!0;break}n=n.parent}if(!t)return!0}return!1}skip_effect(t){this.#a.has(t)||this.#a.set(t,{d:[],m:[]})}unskip_effect(t){var n=this.#a.get(t);if(n){this.#a.delete(t);for(var r of n.d)N(r,L),this.schedule(r);for(r of n.m)N(r,ie),this.schedule(r)}}#h(){if(Sn++>1e3&&(me.delete(this),si()),!this.#d()){for(const o of this.#o)this.#l.delete(o),N(o,L),this.schedule(o);for(const o of this.#l)N(o,ie),this.schedule(o)}const t=this.#r;this.#r=[],this.apply();var n=He=[],r=[],i=pt=[];for(const o of t)try{this.#u(o,n,r)}catch(a){throw Rn(o),a}if(S=null,i.length>0){var s=ce.ensure();for(const o of i)s.schedule(o)}if(He=null,pt=null,this.#d()||this.#v()){this.#p(r),this.#p(n);for(const[o,a]of this.#a)Cn(o,a)}else{this.#t.size===0&&me.delete(this),this.#o.clear(),this.#l.clear();for(const o of this.#e)o(this);this.#e.clear(),kn(r),kn(n),this.#s?.resolve()}var l=S;if(this.#r.length>0){const o=l??=this;o.#r.push(...this.#r.filter(a=>!o.#r.includes(a)))}l!==null&&(me.add(l),l.#h()),me.has(this)||this.#_()}#u(t,n,r){t.f^=A;for(var i=t.first;i!==null;){var s=i.f,l=(s&(ee|pe))!==0,o=l&&(s&A)!==0,a=o||(s&z)!==0||this.#a.has(i);if(!a&&i.fn!==null){l?i.f^=A:(s&je)!==0?n.push(i):Ze(i)&&((s&ve)!==0&&this.#l.add(i),Ue(i));var f=i.first;if(f!==null){i=f;continue}}for(;i!==null;){var u=i.next;if(u!==null){i=u;break}i=i.parent}}}#p(t){for(var n=0;n<t.length;n+=1)Tn(t[n],this.#o,this.#l)}capture(t,n,r=!1){n!==M&&!this.previous.has(t)&&this.previous.set(t,n),(t.f&be)===0&&(this.current.set(t,[t.v,r]),ne?.set(t,t.v))}activate(){S=this}deactivate(){S=null,ne=null}flush(){try{Rt=!0,S=this,this.#h()}finally{Sn=0,Ct=null,He=null,pt=null,Rt=!1,S=null,ne=null,ye.clear()}}discard(){for(const t of this.#n)t(this);this.#n.clear(),me.delete(this)}#_(){for(const f of me){var t=f.id<this.id,n=[];for(const[u,[h,d]]of this.current){if(f.current.has(u)){var r=f.current.get(u)[0];if(t&&h!==r)f.current.set(u,[h,d]);else continue}n.push(u)}var i=[...f.current.keys()].filter(u=>!this.current.has(u));if(i.length===0)t&&f.discard();else if(n.length>0){f.activate();var s=new Set,l=new Map;for(var o of n)Nn(o,i,s,l);if(f.#r.length>0){f.apply();for(var a of f.#r)f.#u(a,[],[]);f.#r=[]}f.deactivate()}}for(const f of me)f.#f.has(this)&&(f.#f.delete(this),f.#f.size===0&&!f.#d()&&(f.activate(),f.#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,Ae(()=>{this.#c=!1,this.flush()}))}transfer_effects(t,n){for(const r of t)this.#o.add(r);for(const r of n)this.#l.add(r);t.clear(),n.clear()}oncommit(t){this.#e.add(t)}ondiscard(t){this.#n.add(t)}settled(){return(this.#s??=un()).promise}static ensure(){if(S===null){const t=S=new ce;Rt||(me.add(S),Ge||Ae(()=>{S===t&&t.flush()}))}return S}apply(){{ne=null;return}}schedule(t){if(Ct=t,t.b?.is_pending&&(t.f&(je|at|cn))!==0&&(t.f&_e)===0){t.b.defer_effect(t);return}for(var n=t;n.parent!==null;){n=n.parent;var r=n.f;if(He!==null&&n===m&&(g===null||(g.f&C)===0))return;if((r&(pe|ee))!==0){if((r&A)===0)return;n.f^=A}}this.#r.push(n)}}function _t(e){var t=Ge;Ge=!0;try{for(var n;;){if(ti(),S===null)return n;S.flush()}}finally{Ge=t}}function si(){try{Vr()}catch(e){ge(e,Ct)}}let de=null;function kn(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if((r.f&(J|z))===0&&Ze(r)&&(de=new Set,Ue(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&Xn(r),de?.size>0)){ye.clear();for(const i of de){if((i.f&(J|z))!==0)continue;const s=[i];let l=i.parent;for(;l!==null;)de.has(l)&&(de.delete(l),s.push(l)),l=l.parent;for(let o=s.length-1;o>=0;o--){const a=s[o];(a.f&(J|z))===0&&Ue(a)}}de.clear()}}de=null}}function Nn(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&C)!==0?Nn(i,t,n,r):(s&(Nt|ve))!==0&&(s&L)===0&&An(i,t,r)&&(N(i,L),Ot(i))}}function An(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(qe.call(t,i))return!0;if((i.f&C)!==0&&An(i,t,n))return n.set(i,!0),!0}return n.set(e,!1),!1}function Ot(e){S.schedule(e)}function Cn(e,t){if(!((e.f&ee)!==0&&(e.f&A)!==0)){(e.f&L)!==0?t.d.push(e):(e.f&ie)!==0&&t.m.push(e),N(e,A);for(var n=e.first;n!==null;)Cn(n,t),n=n.next}}function Rn(e){N(e,A);for(var t=e.first;t!==null;)Rn(t),t=t.next}function oi(e){let t=0,n=Ce(0),r;return()=>{zt()&&(x(n),Gn(()=>(t===0&&(r=Ut(()=>e(()=>Ke(n)))),t+=1,()=>{Ae(()=>{t-=1,t===0&&(r?.(),r=void 0,Ke(n))})})))}}var li=ze|Se;function ai(e,t,n,r){new fi(e,t,n,r)}class fi{parent;is_pending=!1;transform_error;#e;#n=T?$:null;#t;#i;#s;#r=null;#o=null;#l=null;#a=null;#c=0;#f=0;#d=!1;#v=new Set;#h=new Set;#u=null;#p=oi(()=>(this.#u=Ce(this.#c),()=>{this.#u=null}));constructor(t,n,r,i){this.#e=t,this.#t=n,this.#i=s=>{var l=m;l.b=this,l.f|=St,r(s)},this.parent=m.b,this.transform_error=i??this.parent?.transform_error??(s=>s),this.#s=Bt(()=>{if(T){const s=this.#n;dt();const l=s.data===xt;if(s.data.startsWith(sn)){const a=JSON.parse(s.data.slice(sn.length));this.#w(a)}else l?this.#$():this.#_()}else this.#m()},li),T&&(this.#e=$)}#_(){try{this.#r=K(()=>this.#i(this.#e))}catch(t){this.error(t)}}#w(t){const n=this.#t.failed;n&&(this.#l=K(()=>{n(this.#e,()=>t,()=>()=>{})}))}#$(){const t=this.#t.pending;t&&(this.is_pending=!0,this.#o=K(()=>t(this.#e)),Ae(()=>{var n=this.#a=document.createDocumentFragment(),r=G();n.append(r),this.#r=this.#g(()=>K(()=>this.#i(r))),this.#f===0&&(this.#e.before(n),this.#a=null,Oe(this.#o,()=>{this.#o=null}),this.#b(S))}))}#m(){try{if(this.is_pending=this.has_pending_snippet(),this.#f=0,this.#c=0,this.#r=K(()=>{this.#i(this.#e)}),this.#f>0){var t=this.#a=document.createDocumentFragment();Yt(this.#r,t);const n=this.#t.pending;this.#o=K(()=>n(this.#e))}else this.#b(S)}catch(n){this.error(n)}}#b(t){this.is_pending=!1,t.transfer_effects(this.#v,this.#h)}defer_effect(t){Tn(t,this.#v,this.#h)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#t.pending}#g(t){var n=m,r=g,i=H;X(this.#s),I(this.#s),Be(this.#s.ctx);try{return ce.ensure(),t()}catch(s){return En(s),null}finally{X(n),I(r),Be(i)}}#y(t,n){if(!this.has_pending_snippet()){this.parent&&this.parent.#y(t,n);return}this.#f+=t,this.#f===0&&(this.#b(n),this.#o&&Oe(this.#o,()=>{this.#o=null}),this.#a&&(this.#e.before(this.#a),this.#a=null))}update_pending_count(t,n){this.#y(t,n),this.#c+=t,!(!this.#u||this.#d)&&(this.#d=!0,Ae(()=>{this.#d=!1,this.#u&&Ve(this.#u,this.#c)}))}get_effect_pending(){return this.#p(),x(this.#u)}error(t){var n=this.#t.onerror;let r=this.#t.failed;if(!n&&!r)throw t;this.#r&&(P(this.#r),this.#r=null),this.#o&&(P(this.#o),this.#o=null),this.#l&&(P(this.#l),this.#l=null),T&&(B(this.#n),Zr(),B(ht()));var i=!1,s=!1;const l=()=>{if(i){Xr();return}i=!0,s&&Kr(),this.#l!==null&&Oe(this.#l,()=>{this.#l=null}),this.#g(()=>{this.#m()})},o=a=>{try{s=!0,n?.(a,l),s=!1}catch(f){ge(f,this.#s&&this.#s.parent)}r&&(this.#l=this.#g(()=>{try{return K(()=>{var f=m;f.b=this,f.f|=St,r(this.#e,()=>a,()=>l)})}catch(f){return ge(f,this.#s.parent),null}}))};Ae(()=>{var a;try{a=this.transform_error(t)}catch(f){ge(f,this.#s&&this.#s.parent);return}a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(o,f=>ge(f,this.#s&&this.#s.parent)):o(a)})}}function ui(e,t,n,r){const i=Mt;var s=e.filter(d=>!d.settled);if(n.length===0&&s.length===0){r(t.map(i));return}var l=m,o=ci(),a=s.length===1?s[0].promise:s.length>1?Promise.all(s.map(d=>d.promise)):null;function f(d){o();try{r(d)}catch(p){(l.f&J)===0&&ge(p,l)}bt()}if(n.length===0){a.then(()=>f(t.map(i)));return}var u=On();function h(){Promise.all(n.map(d=>di(d))).then(d=>f([...t.map(i),...d])).catch(d=>ge(d,l)).finally(()=>u())}a?a.then(()=>{o(),h(),bt()}):h()}function ci(){var e=m,t=g,n=H,r=S;return function(s=!0){X(e),I(t),Be(n),s&&(e.f&J)===0&&(r?.activate(),r?.apply())}}function bt(e=!0){X(null),I(null),Be(null),e&&S?.deactivate()}function On(){var e=m,t=e.b,n=S,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 Mt(e){var t=C|L,n=g!==null&&(g.f&C)!==0?g:null;return m!==null&&(m.f|=Se),{ctx:H,deps:null,effects:null,equals:bn,f:t,fn:e,reactions:null,rv:0,v:M,wv:0,parent:n??m,ac:null}}function di(e,t,n){let r=m;r===null&&qr();var i=void 0,s=Ce(M),l=!g,o=new Map;return $i(()=>{var a=m,f=un();i=f.promise;try{Promise.resolve(e()).then(f.resolve,f.reject).finally(bt)}catch(p){f.reject(p),bt()}var u=S;if(l){if((a.f&_e)!==0)var h=On();if(r.b.is_rendered())o.get(u)?.reject(ue),o.delete(u);else{for(const p of o.values())p.reject(ue);o.clear()}o.set(u,f)}const d=(p,c=void 0)=>{if(h){var b=c===ue;h(b)}if(!(c===ue||(a.f&J)!==0)){if(u.activate(),c)s.f|=be,Ve(s,c);else{(s.f&be)!==0&&(s.f^=be),Ve(s,p);for(const[y,_]of o){if(o.delete(y),y===u)break;_.reject(ue)}}u.deactivate()}};f.promise.then(d,p=>d(null,p||"unknown"))}),Un(()=>{for(const a of o.values())a.reject(ue)}),new Promise(a=>{function f(u){function h(){u===i?a(s):f(i)}u.then(h,h)}f(i)})}function Mn(e){const t=Mt(e);return t.equals=gn,t}function hi(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)P(t[n])}}function vi(e){for(var t=e.parent;t!==null;){if((t.f&C)===0)return(t.f&J)===0?t:null;t=t.parent}return null}function Lt(e){var t,n=m;X(vi(e));try{e.f&=~ke,hi(e),t=sr(e)}finally{X(n)}return t}function Ln(e){var t=e.v,n=Lt(e);if(!e.equals(n)&&(e.wv=rr(),(!S?.is_fork||e.deps===null)&&(e.v=n,S?.capture(e,t,!0),e.deps===null))){N(e,A);return}we||(ne!==null?(zt()||S?.is_fork)&&ne.set(e,n):At(e))}function pi(e){if(e.effects!==null)for(const t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(ue),t.teardown=Or,t.ac=null,Qe(t,0),Ht(t))}function Pn(e){if(e.effects!==null)for(const t of e.effects)t.teardown&&Ue(t)}let Pt=new Set;const ye=new Map;let Dn=!1;function Ce(e,t){var n={f:0,v:e,reactions:null,equals:bn,rv:0,wv:0};return n}function W(e,t){const n=Ce(e);return Ti(n),n}function In(e,t=!1,n=!0){const r=Ce(e);return t||(r.equals=gn),r}function R(e,t,n=!1){g!==null&&(!re||(g.f&hn)!==0)&&wn()&&(g.f&(C|ve|Nt|hn))!==0&&(Z===null||!qe.call(Z,e))&&Gr();let r=n?Re(t):t;return Ve(e,r,pt)}function Ve(e,t,n=null){if(!e.equals(t)){var r=e.v;we?ye.set(e,t):ye.set(e,r),e.v=t;var i=ce.ensure();if(i.capture(e,r),(e.f&C)!==0){const s=e;(e.f&L)!==0&&Lt(s),ne===null&&At(s)}e.wv=rr(),Fn(e,L,n),m!==null&&(m.f&A)!==0&&(m.f&(ee|pe))===0&&(Q===null?Si([e]):Q.push(e)),!i.is_fork&&Pt.size>0&&!Dn&&_i()}return t}function _i(){Dn=!1;for(const e of Pt)(e.f&A)!==0&&N(e,ie),Ze(e)&&Ue(e);Pt.clear()}function Ke(e){R(e,e.v+1)}function Fn(e,t,n){var r=e.reactions;if(r!==null)for(var i=r.length,s=0;s<i;s++){var l=r[s],o=l.f,a=(o&L)===0;if(a&&N(l,t),(o&C)!==0){var f=l;ne?.delete(f),(o&ke)===0&&(o&U&&(l.f|=ke),Fn(f,ie,n))}else if(a){var u=l;(o&ve)!==0&&de!==null&&de.add(u),n!==null?n.push(u):Ot(u)}}}function Re(e){if(typeof e!="object"||e===null||ft in e)return e;const t=an(e);if(t!==Cr&&t!==Rr)return e;var n=new Map,r=ln(e),i=W(0),s=Le,l=o=>{if(Le===s)return o();var a=g,f=Le;I(null),nr(s);var u=o();return I(a),nr(f),u};return r&&n.set("length",W(e.length)),new Proxy(e,{defineProperty(o,a,f){(!("value"in f)||f.configurable===!1||f.enumerable===!1||f.writable===!1)&&Jr();var u=n.get(a);return u===void 0?l(()=>{var h=W(f.value);return n.set(a,h),h}):R(u,f.value,!0),!0},deleteProperty(o,a){var f=n.get(a);if(f===void 0){if(a in o){const u=l(()=>W(M));n.set(a,u),Ke(i)}}else R(f,M),Ke(i);return!0},get(o,a,f){if(a===ft)return e;var u=n.get(a),h=a in o;if(u===void 0&&(!h||Te(o,a)?.writable)&&(u=l(()=>{var p=Re(h?o[a]:M),c=W(p);return c}),n.set(a,u)),u!==void 0){var d=x(u);return d===M?void 0:d}return Reflect.get(o,a,f)},getOwnPropertyDescriptor(o,a){var f=Reflect.getOwnPropertyDescriptor(o,a);if(f&&"value"in f){var u=n.get(a);u&&(f.value=x(u))}else if(f===void 0){var h=n.get(a),d=h?.v;if(h!==void 0&&d!==M)return{enumerable:!0,configurable:!0,value:d,writable:!0}}return f},has(o,a){if(a===ft)return!0;var f=n.get(a),u=f!==void 0&&f.v!==M||Reflect.has(o,a);if(f!==void 0||m!==null&&(!u||Te(o,a)?.writable)){f===void 0&&(f=l(()=>{var d=u?Re(o[a]):M,p=W(d);return p}),n.set(a,f));var h=x(f);if(h===M)return!1}return u},set(o,a,f,u){var h=n.get(a),d=a in o;if(r&&a==="length")for(var p=f;p<h.v;p+=1){var c=n.get(p+"");c!==void 0?R(c,M):p in o&&(c=l(()=>W(M)),n.set(p+"",c))}if(h===void 0)(!d||Te(o,a)?.writable)&&(h=l(()=>W(void 0)),R(h,Re(f)),n.set(a,h));else{d=h.v!==M;var b=l(()=>Re(f));R(h,b)}var y=Reflect.getOwnPropertyDescriptor(o,a);if(y?.set&&y.set.call(u,f),!d){if(r&&typeof a=="string"){var _=n.get("length"),w=Number(a);Number.isInteger(w)&&w>=_.v&&R(_,w+1)}Ke(i)}return!0},ownKeys(o){x(i);var a=Reflect.ownKeys(o).filter(h=>{var d=n.get(h);return d===void 0||d.v!==M});for(var[f,u]of n)u.v!==M&&!(f in o)&&a.push(f);return a},setPrototypeOf(){Wr()}})}var qn,jn,zn,Bn;function Dt(){if(qn===void 0){qn=window,jn=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;zn=Te(t,"firstChild").get,Bn=Te(t,"nextSibling").get,fn(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),fn(n)&&(n.__t=void 0)}}function G(e=""){return document.createTextNode(e)}function Ye(e){return zn.call(e)}function se(e){return Bn.call(e)}function Hn(e,t){if(!T)return Ye(e);var n=Ye($);return n===null&&(n=$.appendChild(G())),B(n),n}function gt(e,t=!1){if(!T){var n=Ye(e);return n instanceof Comment&&n.data===""?se(n):n}if(t){if($?.nodeType!==ut){var r=G();return $?.before(r),B(r),r}qt($)}return $}function It(e,t=1,n=!1){let r=T?$:e;for(var i;t--;)i=r,r=se(r);if(!T)return r;if(n){if(r?.nodeType!==ut){var s=G();return r===null?i?.after(s):r.before(s),B(s),s}qt(r)}return B(r),r}function Vn(e){e.textContent=""}function Yn(){return!1}function Ft(e,t,n){return document.createElementNS(on,e,void 0)}function qt(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===ut;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function jt(e){var t=g,n=m;I(null),X(null);try{return e()}finally{I(t),X(n)}}function bi(e){m===null&&(g===null&&Hr(),Br()),we&&zr()}function gi(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function oe(e,t){var n=m;n!==null&&(n.f&z)!==0&&(e|=z);var r={ctx:H,deps:null,nodes:null,f:e|L|U,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&je)!==0)He!==null?He.push(r):ce.ensure().schedule(r);else if(t!==null){try{Ue(r)}catch(l){throw P(r),l}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&(i.f&Se)===0&&(i=i.first,(e&ve)!==0&&(e&ze)!==0&&i!==null&&(i.f|=ze))}if(i!==null&&(i.parent=n,n!==null&&gi(i,n),g!==null&&(g.f&C)!==0&&(e&pe)===0)){var s=g;(s.effects??=[]).push(i)}return r}function zt(){return g!==null&&!re}function Un(e){const t=oe(at,null);return N(t,A),t.teardown=e,t}function Jn(e){bi();var t=m.f,n=!g&&(t&ee)!==0&&(t&_e)===0;if(n){var r=H;(r.e??=[]).push(e)}else return Wn(e)}function Wn(e){return oe(je|Pr,e)}function mi(e){ce.ensure();const t=oe(pe|Se,e);return()=>{P(t)}}function yi(e){ce.ensure();const t=oe(pe|Se,e);return(n={})=>new Promise(r=>{n.outro?Oe(t,()=>{P(t),r(void 0)}):(P(t),r(void 0))})}function wi(e){return oe(je,e)}function $i(e){return oe(Nt|Se,e)}function Gn(e,t=0){return oe(at|t,e)}function Xe(e,t=[],n=[],r=[]){ui(r,t,n,i=>{oe(at,()=>e(...i.map(x)))})}function Bt(e,t=0){var n=oe(ve|t,e);return n}function K(e){return oe(ee|Se,e)}function Kn(e){var t=e.teardown;if(t!==null){const n=we,r=g;er(!0),I(null);try{t.call(null)}finally{er(n),I(r)}}}function Ht(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const i=n.ac;i!==null&&jt(()=>{i.abort(ue)});var r=n.next;(n.f&pe)!==0?n.parent=null:P(n,t),n=r}}function Ei(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&ee)===0&&P(t),t=n}}function P(e,t=!0){var n=!1;(t||(e.f&Lr)!==0)&&e.nodes!==null&&e.nodes.end!==null&&(xi(e.nodes.start,e.nodes.end),n=!0),N(e,dn),Ht(e,t&&!n),Qe(e,0);var r=e.nodes&&e.nodes.t;if(r!==null)for(const s of r)s.stop();Kn(e),e.f^=dn,e.f|=J;var i=e.parent;i!==null&&i.first!==null&&Xn(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function xi(e,t){for(;e!==null;){var n=e===t?null:se(e);e.remove(),e=n}}function Xn(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 Oe(e,t,n=!0){var r=[];Zn(e,r,!0);var i=()=>{n&&P(e),t&&t()},s=r.length;if(s>0){var l=()=>--s||i();for(var o of r)o.out(l)}else i()}function Zn(e,t,n){if((e.f&z)===0){e.f^=z;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,l=(i.f&ze)!==0||(i.f&ee)!==0&&(e.f&ve)!==0;Zn(i,t,l?n:!1),i=s}}}function Vt(e){Qn(e,!0)}function Qn(e,t){if((e.f&z)!==0){e.f^=z,(e.f&A)===0&&(N(e,L),ce.ensure().schedule(e));for(var n=e.first;n!==null;){var r=n.next,i=(n.f&ze)!==0||(n.f&ee)!==0;Qn(n,i?t:!1),n=r}var s=e.nodes&&e.nodes.t;if(s!==null)for(const l of s)(l.is_global||t)&&l.in()}}function Yt(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var i=n===r?null:se(n);t.append(n),n=i}}let mt=!1,we=!1;function er(e){we=e}let g=null,re=!1;function I(e){g=e}let m=null;function X(e){m=e}let Z=null;function Ti(e){g!==null&&(Z===null?Z=[e]:Z.push(e))}let F=null,V=0,Q=null;function Si(e){Q=e}let tr=1,Me=0,Le=Me;function nr(e){Le=e}function rr(){return++tr}function Ze(e){var t=e.f;if((t&L)!==0)return!0;if(t&C&&(e.f&=~ke),(t&ie)!==0){for(var n=e.deps,r=n.length,i=0;i<r;i++){var s=n[i];if(Ze(s)&&Ln(s),s.wv>e.wv)return!0}(t&U)!==0&&ne===null&&N(e,A)}return!1}function ir(e,t,n=!0){var r=e.reactions;if(r!==null&&!(Z!==null&&qe.call(Z,e)))for(var i=0;i<r.length;i++){var s=r[i];(s.f&C)!==0?ir(s,t,!1):t===s&&(n?N(s,L):(s.f&A)!==0&&N(s,ie),Ot(s))}}function sr(e){var t=F,n=V,r=Q,i=g,s=Z,l=H,o=re,a=Le,f=e.f;F=null,V=0,Q=null,g=(f&(ee|pe))===0?e:null,Z=null,Be(e.ctx),re=!1,Le=++Me,e.ac!==null&&(jt(()=>{e.ac.abort(ue)}),e.ac=null);try{e.f|=kt;var u=e.fn,h=u();e.f|=_e;var d=e.deps,p=S?.is_fork;if(F!==null){var c;if(p||Qe(e,V),d!==null&&V>0)for(d.length=V+F.length,c=0;c<F.length;c++)d[V+c]=F[c];else e.deps=d=F;if(zt()&&(e.f&U)!==0)for(c=V;c<d.length;c++)(d[c].reactions??=[]).push(e)}else!p&&d!==null&&V<d.length&&(Qe(e,V),d.length=V);if(wn()&&Q!==null&&!re&&d!==null&&(e.f&(C|ie|L))===0)for(c=0;c<Q.length;c++)ir(Q[c],e);if(i!==null&&i!==e){if(Me++,i.deps!==null)for(let b=0;b<n;b+=1)i.deps[b].rv=Me;if(t!==null)for(const b of t)b.rv=Me;Q!==null&&(r===null?r=Q:r.push(...Q))}return(e.f&be)!==0&&(e.f^=be),h}catch(b){return En(b)}finally{e.f^=kt,F=t,V=n,Q=r,g=i,Z=s,Be(l),re=o,Le=a}}function ki(e,t){let n=t.reactions;if(n!==null){var r=Nr.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&C)!==0&&(F===null||!qe.call(F,t))){var s=t;(s.f&U)!==0&&(s.f^=U,s.f&=~ke),At(s),pi(s),Qe(s,0)}}function Qe(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)ki(e,n[r])}function Ue(e){var t=e.f;if((t&J)===0){N(e,A);var n=m,r=mt;m=e,mt=!0;try{(t&(ve|cn))!==0?Ei(e):Ht(e),Kn(e);var i=sr(e);e.teardown=typeof i=="function"?i:null,e.wv=tr;var s;kr&&ei&&(e.f&L)!==0&&e.deps}finally{mt=r,m=n}}}function x(e){var t=e.f,n=(t&C)!==0;if(g!==null&&!re){var r=m!==null&&(m.f&J)!==0;if(!r&&(Z===null||!qe.call(Z,e))){var i=g.deps;if((g.f&kt)!==0)e.rv<Me&&(e.rv=Me,F===null&&i!==null&&i[V]===e?V++:F===null?F=[e]:F.push(e));else{(g.deps??=[]).push(e);var s=e.reactions;s===null?e.reactions=[g]:qe.call(s,g)||s.push(g)}}}if(we&&ye.has(e))return ye.get(e);if(n){var l=e;if(we){var o=l.v;return((l.f&A)===0&&l.reactions!==null||lr(l))&&(o=Lt(l)),ye.set(l,o),o}var a=(l.f&U)===0&&!re&&g!==null&&(mt||(g.f&U)!==0),f=(l.f&_e)===0;Ze(l)&&(a&&(l.f|=U),Ln(l)),a&&!f&&(Pn(l),or(l))}if(ne?.has(e))return ne.get(e);if((e.f&be)!==0)throw e.v;return e.v}function or(e){if(e.f|=U,e.deps!==null)for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&C)!==0&&(t.f&U)===0&&(Pn(t),or(t))}function lr(e){if(e.v===M)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(ye.has(t)||(t.f&C)!==0&&lr(t))return!0;return!1}function Ut(e){var t=re;try{return re=!0,e()}finally{re=t}}const et=Symbol("events"),ar=new Set,Jt=new Set;function Ni(e,t,n,r={}){function i(s){if(r.capture||Wt.call(t,s),!s.cancelBubble)return jt(()=>n?.call(this,s))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?Ae(()=>{t.addEventListener(e,i,r)}):t.addEventListener(e,i,r),i}function tt(e,t,n,r,i){var s={capture:r,passive:i},l=Ni(e,t,n,s);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&Un(()=>{t.removeEventListener(e,l,s)})}function Ai(e,t,n){(t[et]??={})[e]=n}function Ci(e){for(var t=0;t<e.length;t++)ar.add(e[t]);for(var n of Jt)n(e)}let fr=null;function Wt(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],s=i[0]||e.target;fr=e;var l=0,o=fr===e&&e[et];if(o){var a=i.indexOf(o);if(a!==-1&&(t===document||t===window)){e[et]=t;return}var f=i.indexOf(t);if(f===-1)return;a<=f&&(l=a)}if(s=i[l]||e.target,s!==t){lt(e,"currentTarget",{configurable:!0,get(){return s||n}});var u=g,h=m;I(null),X(null);try{for(var d,p=[];s!==null;){var c=s.assignedSlot||s.parentNode||s.host||null;try{var b=s[et]?.[r];b!=null&&(!s.disabled||e.target===s)&&b.call(s,e)}catch(y){d?p.push(y):d=y}if(e.cancelBubble||c===t||c===null)break;s=c}if(d){for(let y of p)queueMicrotask(()=>{throw y});throw d}}finally{e[et]=t,delete e.currentTarget,I(u),X(h)}}}const Ri=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:e=>e});function Oi(e){return Ri?.createHTML(e)??e}function Mi(e){var t=Ft("template");return t.innerHTML=Oi(e.replaceAll("<!>","<!---->")),t.content}function $e(e,t){var n=m;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function yt(e,t){var n=(t&Tr)!==0,r=(t&Sr)!==0,i,s=!e.startsWith("<!>");return()=>{if(T)return $e($,null),$;i===void 0&&(i=Mi(s?e:"<!>"+e),n||(i=Ye(i)));var l=r||jn?document.importNode(i,!0):i.cloneNode(!0);if(n){var o=Ye(l),a=l.lastChild;$e(o,a)}else $e(l,l);return l}}function Li(e=""){if(!T){var t=G(e+"");return $e(t,t),t}var n=$;return n.nodeType!==ut?(n.before(n=G()),B(n)):qt(n),$e(n,n),n}function ur(){if(T)return $e($,null),$;var e=document.createDocumentFragment(),t=document.createComment(""),n=G();return e.append(t,n),$e(t,n),e}function Ee(e,t){if(T){var n=m;((n.f&_e)===0||n.nodes.end===null)&&(n.nodes.end=$),dt();return}e!==null&&e.before(t)}const Pi=["touchstart","touchmove"];function Di(e){return Pi.includes(e)}function cr(e,t){return dr(e,t)}function Ii(e,t){Dt(),t.intro=t.intro??!1;const n=t.target,r=T,i=$;try{for(var s=Ye(n);s&&(s.nodeType!==We||s.data!==rn);)s=se(s);if(!s)throw Fe;te(!0),B(s);const l=dr(e,{...t,anchor:s});return te(!1),l}catch(l){if(l instanceof Error&&l.message.split(`
2
- `).some(o=>o.startsWith("https://svelte.dev/e/")))throw l;return l!==Fe&&console.warn("Failed to hydrate: ",l),t.recover===!1&&Yr(),Dt(),Vn(n),te(!1),cr(e,t)}finally{te(r),B(i)}}const wt=new Map;function dr(e,{target:t,anchor:n,props:r={},events:i,context:s,intro:l=!0,transformError:o}){Dt();var a=void 0,f=yi(()=>{var u=n??t.appendChild(G());ai(u,{pending:()=>{}},p=>{mn({});var c=H;if(s&&(c.c=s),i&&(r.$$events=i),T&&$e(p,null),a=e(p,r)||{},T&&(m.nodes.end=$,$===null||$.nodeType!==We||$.data!==Tt))throw ct(),Fe;yn()},o);var h=new Set,d=p=>{for(var c=0;c<p.length;c++){var b=p[c];if(!h.has(b)){h.add(b);var y=Di(b);for(const D of[t,document]){var _=wt.get(D);_===void 0&&(_=new Map,wt.set(D,_));var w=_.get(b);w===void 0?(D.addEventListener(b,Wt,{passive:y}),_.set(b,1)):_.set(b,w+1)}}}};return d(st(ar)),Jt.add(d),()=>{for(var p of h)for(const y of[t,document]){var c=wt.get(y),b=c.get(p);--b==0?(y.removeEventListener(p,Wt),c.delete(p),c.size===0&&wt.delete(y)):c.set(p,b)}Jt.delete(d),u!==n&&u.parentNode?.removeChild(u)}});return Gt.set(a,f),a}let Gt=new WeakMap;function Fi(e,t){const n=Gt.get(e);return n?(Gt.delete(e),n(t)):Promise.resolve()}class qi{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)Vt(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,l]of this.#e){if(this.#e.delete(s),s===t)break;const o=this.#t.get(l);o&&(P(o.effect),this.#t.delete(l))}for(const[s,l]of this.#n){if(s===n||this.#i.has(s))continue;const o=()=>{if(Array.from(this.#e.values()).includes(s)){var f=document.createDocumentFragment();Yt(l,f),f.append(G()),this.#t.set(s,{effect:l,fragment:f})}else P(l);this.#i.delete(s),this.#n.delete(s)};this.#s||!r?(this.#i.add(s),Oe(l,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)||(P(i.effect),this.#t.delete(r))};ensure(t,n){var r=S,i=Yn();if(n&&!this.#n.has(t)&&!this.#t.has(t))if(i){var s=document.createDocumentFragment(),l=G();s.append(l),this.#t.set(t,{effect:K(()=>n(l)),fragment:s})}else this.#n.set(t,K(()=>n(this.anchor)));if(this.#e.set(r,t),i){for(const[o,a]of this.#n)o===t?r.unskip_effect(a):r.skip_effect(a);for(const[o,a]of this.#t)o===t?r.unskip_effect(a.effect):r.skip_effect(a.effect);r.oncommit(this.#r),r.ondiscard(this.#o)}else T&&(this.anchor=$),this.#r(r)}}function ji(e){H===null&&Fr(),Jn(()=>{const t=Ut(e);if(typeof t=="function")return t})}function $t(e,t,n=!1){var r;T&&(r=$,dt());var i=new qi(e),s=n?ze:0;function l(o,a){if(T){var f=_n(r);if(o!==parseInt(f.substring(1))){var u=ht();B(u),i.anchor=u,te(!1),i.ensure(o,a),te(!0);return}}i.ensure(o,a)}Bt(()=>{var o=!1;t((a,f=0)=>{o=!0,l(f,a)}),o||l(-1,null)},s)}function zi(e,t,n){for(var r=[],i=t.length,s,l=t.length,o=0;o<i;o++){let h=t[o];Oe(h,()=>{if(s){if(s.pending.delete(h),s.done.add(h),s.pending.size===0){var d=e.outrogroups;Kt(e,st(s.done)),d.delete(s),d.size===0&&(e.outrogroups=null)}}else l-=1},!1)}if(l===0){var a=r.length===0&&n!==null;if(a){var f=n,u=f.parentNode;Vn(u),u.append(f),e.items.clear()}Kt(e,t,!a)}else s={pending:new Set(t),done:new Set},(e.outrogroups??=new Set).add(s)}function Kt(e,t,n=!0){var r;if(e.pending.size>0){r=new Set;for(const l of e.pending.values())for(const o of l)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|=fe;const l=document.createDocumentFragment();Yt(s,l)}else P(t[i],n)}}var hr;function Bi(e,t,n,r,i,s=null){var l=e,o=new Map;T&&dt();var a=null,f=Mn(()=>{var _=n();return ln(_)?_:_==null?[]:st(_)}),u,h=new Map,d=!0;function p(_){(y.effect.f&J)===0&&(y.pending.delete(_),y.fallback=a,Hi(y,u,l,t,r),a!==null&&(u.length===0?(a.f&fe)===0?Vt(a):(a.f^=fe,rt(a,null,l)):Oe(a,()=>{a=null})))}function c(_){y.pending.delete(_)}var b=Bt(()=>{u=x(f);var _=u.length;let w=!1;if(T){var D=_n(l)===xt;D!==(_===0)&&(l=ht(),B(l),te(!1),w=!0)}for(var q=new Set,Y=S,Je=Yn(),ae=0;ae<_;ae+=1){T&&$.nodeType===We&&$.data===Tt&&(l=$,w=!0,te(!1));var v=u[ae],E=r(v,ae),k=d?null:o.get(E);k?(k.v&&Ve(k.v,v),k.i&&Ve(k.i,ae),Je&&Y.unskip_effect(k.e)):(k=Vi(o,d?l:hr??=G(),v,E,ae,i,t,n),d||(k.e.f|=fe),o.set(E,k)),q.add(E)}if(_===0&&s&&!a&&(d?a=K(()=>s(l)):(a=K(()=>s(hr??=G())),a.f|=fe)),_>q.size&&jr(),T&&_>0&&B(ht()),!d)if(h.set(Y,q),Je){for(const[j,O]of o)q.has(j)||Y.skip_effect(O.e);Y.oncommit(p),Y.ondiscard(c)}else p(Y);w&&te(!0),x(f)}),y={effect:b,items:o,pending:h,outrogroups:null,fallback:a};d=!1,T&&(l=$)}function nt(e){for(;e!==null&&(e.f&ee)===0;)e=e.next;return e}function Hi(e,t,n,r,i){var s=t.length,l=e.items,o=nt(e.effect.first),a,f=null,u=[],h=[],d,p,c,b;for(b=0;b<s;b+=1){if(d=t[b],p=i(d,b),c=l.get(p).e,e.outrogroups!==null)for(const v of e.outrogroups)v.pending.delete(c),v.done.delete(c);if((c.f&z)!==0&&Vt(c),(c.f&fe)!==0)if(c.f^=fe,c===o)rt(c,null,n);else{var y=f?f.next:o;c===e.effect.last&&(e.effect.last=c.prev),c.prev&&(c.prev.next=c.next),c.next&&(c.next.prev=c.prev),xe(e,f,c),xe(e,c,y),rt(c,y,n),f=c,u=[],h=[],o=nt(f.next);continue}if(c!==o){if(a!==void 0&&a.has(c)){if(u.length<h.length){var _=h[0],w;f=_.prev;var D=u[0],q=u[u.length-1];for(w=0;w<u.length;w+=1)rt(u[w],_,n);for(w=0;w<h.length;w+=1)a.delete(h[w]);xe(e,D.prev,q.next),xe(e,f,D),xe(e,q,_),o=_,f=q,b-=1,u=[],h=[]}else a.delete(c),rt(c,o,n),xe(e,c.prev,c.next),xe(e,c,f===null?e.effect.first:f.next),xe(e,f,c),f=c;continue}for(u=[],h=[];o!==null&&o!==c;)(a??=new Set).add(o),h.push(o),o=nt(o.next);if(o===null)continue}(c.f&fe)===0&&u.push(c),f=c,o=nt(c.next)}if(e.outrogroups!==null){for(const v of e.outrogroups)v.pending.size===0&&(Kt(e,st(v.done)),e.outrogroups?.delete(v));e.outrogroups.size===0&&(e.outrogroups=null)}if(o!==null||a!==void 0){var Y=[];if(a!==void 0)for(c of a)(c.f&z)===0&&Y.push(c);for(;o!==null;)(o.f&z)===0&&o!==e.fallback&&Y.push(o),o=nt(o.next);var Je=Y.length;if(Je>0){var ae=null;zi(e,Y,ae)}}}function Vi(e,t,n,r,i,s,l,o){var a=(l&gr)!==0?(l&yr)===0?In(n,!1,!1):Ce(n):null,f=(l&mr)!==0?Ce(i):null;return{v:a,i:f,e:K(()=>(s(t,a??n,f??i,o),()=>{e.delete(r)}))}}function rt(e,t,n){if(e.nodes)for(var r=e.nodes.start,i=e.nodes.end,s=t&&(t.f&fe)===0?t.nodes.start:n;r!==null;){var l=se(r);if(s.before(r),r===i)return;r=l}}function xe(e,t,n){t===null?e.effect.first=n:t.next=n,n===null?e.effect.last=t:n.prev=t}function Yi(e,t){wi(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector("#"+t.hash)){const i=Ft("style");i.id=t.hash,i.textContent=t.code,r.appendChild(i)}})}const Ui=Symbol("is custom element"),Ji=Symbol("is html"),Wi=Ir?"link":"LINK";function Gi(e,t,n,r){var i=Ki(e);T&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName===Wi)||i[t]!==(i[t]=n)&&(t==="loading"&&(e[Dr]=n),n==null?e.removeAttribute(t):typeof n!="string"&&vr(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function le(e,t,n){var r=g,i=m;let s=T;T&&te(!1),I(null),X(null);try{t!=="style"&&(Xt.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.nodeName.toLowerCase())?vr(e).includes(t):n&&typeof n=="object")?e[t]=n:Gi(e,t,n==null?n:String(n))}finally{I(r),X(i),s&&te(!0)}}function Ki(e){return e.__attributes??={[Ui]:e.nodeName.includes("-"),[Ji]:e.namespaceURI===on}}var Xt=new Map;function vr(e){var t=e.getAttribute("is")||e.nodeName,n=Xt.get(t);if(n)return n;Xt.set(t,n=[]);for(var r,i=e,s=Element.prototype;s!==i;){r=Ar(i);for(var l in r)r[l].set&&n.push(l);i=an(i)}return n}function Zt(e,t,n,r){var i=(n&Er)!==0,s=(n&xr)!==0,l=r,o=!0,a=()=>(o&&(o=!1,l=s?Ut(r):r),l);let f;if(i){var u=ft in e||vn in e;f=Te(e,t)?.set??(u&&t in e?w=>e[t]=w:void 0)}var h,d=!1;i?[h,d]=ri(()=>e[t]):h=e[t],h===void 0&&r!==void 0&&(h=a(),f&&(Ur(),f(h)));var p;if(p=()=>{var w=e[t];return w===void 0?a():(o=!0,w)},(n&$r)===0)return p;if(f){var c=e.$$legacy;return(function(w,D){return arguments.length>0?((!D||c||d)&&f(D?p():w),w):p()})}var b=!1,y=((n&wr)!==0?Mt:Mn)(()=>(b=!1,p()));i&&x(y);var _=m;return(function(w,D){if(arguments.length>0){const q=D?x(y):i?Re(w):w;return R(y,q),b=!0,l!==void 0&&(l=q),w}return we&&b||(_.f&J)!==0?y.v:x(y)})}function Xi(e){return new Zi(e)}class Zi{#e;#n;constructor(t){var n=new Map,r=(s,l)=>{var o=In(l,!1,!1);return n.set(s,o),o};const i=new Proxy({...t.props||{},$$events:{}},{get(s,l){return x(n.get(l)??r(l,Reflect.get(s,l)))},has(s,l){return l===vn?!0:(x(n.get(l)??r(l,Reflect.get(s,l))),Reflect.has(s,l))},set(s,l,o){return R(n.get(l)??r(l,o),o),Reflect.set(s,l,o)}});this.#n=(t.hydrate?Ii:cr)(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)&&_t(),this.#e=i.$$events;for(const s of Object.keys(this.#n))s==="$set"||s==="$destroy"||s==="$on"||lt(this,s,{get(){return this.#n[s]},set(l){this.#n[s]=l},enumerable:!0});this.#n.$set=s=>{Object.assign(i,s)},this.#n.$destroy=()=>{Fi(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 pr;typeof HTMLElement=="function"&&(pr=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=Ft("slot");r!=="default"&&(s.name=r),Ee(i,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},n=Qi(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]=Et(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=Xi({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=mi(()=>{Gn(()=>{this.$$r=!0;for(const r of ot(this.$$c)){if(!this.$$p_d[r]?.reflect)continue;this.$$d[r]=this.$$c[r];const i=Et(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]=Et(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 ot(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function Et(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 Qi(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}function es(e,t,n,r,i,s){let l=class extends pr{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return ot(t).map(o=>(t[o].attribute||o).toLowerCase())}};return ot(t).forEach(o=>{lt(l.prototype,o,{get(){return this.$$c&&o in this.$$c?this.$$c[o]:this.$$d[o]},set(a){a=Et(o,a,t),this.$$d[o]=a;var f=this.$$c;if(f){var u=Te(f,o)?.get;u?f[o]=a:f.$set({[o]:a})}}})}),r.forEach(o=>{lt(l.prototype,o,{get(){return this.$$c?.[o]}})}),e.element=l,l}const Qt={version:"0.66.1"};var Pe={},_r;function ts(){if(_r)return Pe;_r=1,Object.defineProperty(Pe,"__esModule",{value:!0}),Pe.LanguageTranslator=void 0,Pe.getChildStyleToPass=e,Pe.addComponent=t;function e(r,i){var s,l,o="";try{if(r&&i?.length&&(!((s=Object.keys(r))===null||s===void 0)&&s.length)&&(!((l=i?.filter(function(d){return Object.keys(r).includes(d.name)}))===null||l===void 0)&&l.length))for(var a=function(d){var p=i?.filter(function(c){return c.name===d&&c.defaultValue!==r[d]});p&&(o+="".concat(d,":").concat(r[d],";"))},f=0,u=Object.keys(r);f<u.length;f++){var h=u[f];a(h)}}catch(d){console.error("error getting child style to pass",d)}finally{return o}}function t(r){var i,s=((i=r?.repoName.split("/"))===null||i===void 0?void 0:i[1])||r?.repoName;if(!s)throw new Error("wrong componentPath "+r?.repoName);if(!r?.version)throw new Error("wrong version "+r?.version);var l=r?.iifePath||"main.iife.js";if(!document.getElementById(s+"-script"))try{var o=document.createElement("script");if(o.id=s+"-script",o.src="https://cdn.jsdelivr.net/npm/".concat(r.repoName,"@").concat(r.version,"/").concat(l),r?.local)o.src="".concat(r.local);else if(location.href.includes("localhost:6006")){var a=s.split("-")[0];o.src="http://localhost:6006/webcomponents/".concat(s.replace(a+"-",""),"/").concat(l)}document.head.appendChild(o)}catch(f){console.warn(f)}}var n=(function(){function r(i){if(this.lang="",!i?.dictionary)throw new Error("no dictionary provided");this.dictionary=i.dictionary,this.setLang(i?.lang)}return r.prototype.setLang=function(i){i||(i=r.getDefaultLang()),this.lang=i},r.prototype.translateWord=function(i,s){return r.getDictionaryWord(i,this.dictionary,s||this.lang)},r.prototype.translateDate=function(i,s,l){return r.formatDate(i,s,l||this.lang)},r.getDefaultLang=function(){var i,s,l,o="en";return navigator?.languages&&(!((l=(s=(i=navigator.languages[0])===null||i===void 0?void 0:i.split("-")[0])===null||s===void 0?void 0:s.toLowerCase())===null||l===void 0)&&l.length)&&(o=navigator.languages[0].split("-")[0].toLowerCase()),o},r.getDictionaryWord=function(i,s,l){var o;if(!i)throw new Error("no wordKey provided");if(!s)throw new Error("no dictionary provided");if(l&&(!((o=s[l])===null||o===void 0)&&o[i]))return s[l][i];var a="",f=r.getDefaultLang();if(!l||f!==l){var u=s?.[f];u?.[i]&&(a=u[i])}return a},r.formatDate=function(i,s,l){if(!i)throw new Error("no date provided");if(typeof i.getMonth!="function")throw new Error("wrong date format");var o=new Intl.DateTimeFormat(l||r.getDefaultLang(),s);return o.format(i)},r})();return Pe.LanguageTranslator=n,Pe}var en=ts(),ns=yt("<hb-dialogform></hb-dialogform>",2),rs=yt("<hb-form></hb-form>",2),is=yt('<h2 style="margin:60px;text-align:center;color:blue">output</h2> <!>',1),ss=yt('<hb-table><span slot="buttons-container"><button class="btn btn-outline-primary btn-sm svelte-1f1dlex">done</button></span></hb-table> <!> <!>',3);const os={hash:"svelte-1f1dlex",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");:host {font-family:"Roboto", sans-serif;}
2
+ `).some(o=>o.startsWith("https://svelte.dev/e/")))throw l;return l!==Fe&&console.warn("Failed to hydrate: ",l),t.recover===!1&&Yr(),Dt(),Vn(n),te(!1),cr(e,t)}finally{te(r),B(i)}}const wt=new Map;function dr(e,{target:t,anchor:n,props:r={},events:i,context:s,intro:l=!0,transformError:o}){Dt();var a=void 0,f=yi(()=>{var u=n??t.appendChild(G());ai(u,{pending:()=>{}},p=>{mn({});var c=H;if(s&&(c.c=s),i&&(r.$$events=i),T&&$e(p,null),a=e(p,r)||{},T&&(m.nodes.end=$,$===null||$.nodeType!==We||$.data!==Tt))throw ct(),Fe;yn()},o);var h=new Set,d=p=>{for(var c=0;c<p.length;c++){var b=p[c];if(!h.has(b)){h.add(b);var y=Di(b);for(const D of[t,document]){var _=wt.get(D);_===void 0&&(_=new Map,wt.set(D,_));var w=_.get(b);w===void 0?(D.addEventListener(b,Wt,{passive:y}),_.set(b,1)):_.set(b,w+1)}}}};return d(st(ar)),Jt.add(d),()=>{for(var p of h)for(const y of[t,document]){var c=wt.get(y),b=c.get(p);--b==0?(y.removeEventListener(p,Wt),c.delete(p),c.size===0&&wt.delete(y)):c.set(p,b)}Jt.delete(d),u!==n&&u.parentNode?.removeChild(u)}});return Gt.set(a,f),a}let Gt=new WeakMap;function Fi(e,t){const n=Gt.get(e);return n?(Gt.delete(e),n(t)):Promise.resolve()}class qi{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)Vt(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,l]of this.#e){if(this.#e.delete(s),s===t)break;const o=this.#t.get(l);o&&(P(o.effect),this.#t.delete(l))}for(const[s,l]of this.#n){if(s===n||this.#i.has(s))continue;const o=()=>{if(Array.from(this.#e.values()).includes(s)){var f=document.createDocumentFragment();Yt(l,f),f.append(G()),this.#t.set(s,{effect:l,fragment:f})}else P(l);this.#i.delete(s),this.#n.delete(s)};this.#s||!r?(this.#i.add(s),Oe(l,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)||(P(i.effect),this.#t.delete(r))};ensure(t,n){var r=S,i=Yn();if(n&&!this.#n.has(t)&&!this.#t.has(t))if(i){var s=document.createDocumentFragment(),l=G();s.append(l),this.#t.set(t,{effect:K(()=>n(l)),fragment:s})}else this.#n.set(t,K(()=>n(this.anchor)));if(this.#e.set(r,t),i){for(const[o,a]of this.#n)o===t?r.unskip_effect(a):r.skip_effect(a);for(const[o,a]of this.#t)o===t?r.unskip_effect(a.effect):r.skip_effect(a.effect);r.oncommit(this.#r),r.ondiscard(this.#o)}else T&&(this.anchor=$),this.#r(r)}}function ji(e){H===null&&Fr(),Jn(()=>{const t=Ut(e);if(typeof t=="function")return t})}function $t(e,t,n=!1){var r;T&&(r=$,dt());var i=new qi(e),s=n?ze:0;function l(o,a){if(T){var f=_n(r);if(o!==parseInt(f.substring(1))){var u=ht();B(u),i.anchor=u,te(!1),i.ensure(o,a),te(!0);return}}i.ensure(o,a)}Bt(()=>{var o=!1;t((a,f=0)=>{o=!0,l(f,a)}),o||l(-1,null)},s)}function zi(e,t,n){for(var r=[],i=t.length,s,l=t.length,o=0;o<i;o++){let h=t[o];Oe(h,()=>{if(s){if(s.pending.delete(h),s.done.add(h),s.pending.size===0){var d=e.outrogroups;Kt(e,st(s.done)),d.delete(s),d.size===0&&(e.outrogroups=null)}}else l-=1},!1)}if(l===0){var a=r.length===0&&n!==null;if(a){var f=n,u=f.parentNode;Vn(u),u.append(f),e.items.clear()}Kt(e,t,!a)}else s={pending:new Set(t),done:new Set},(e.outrogroups??=new Set).add(s)}function Kt(e,t,n=!0){var r;if(e.pending.size>0){r=new Set;for(const l of e.pending.values())for(const o of l)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|=fe;const l=document.createDocumentFragment();Yt(s,l)}else P(t[i],n)}}var hr;function Bi(e,t,n,r,i,s=null){var l=e,o=new Map;T&&dt();var a=null,f=Mn(()=>{var _=n();return ln(_)?_:_==null?[]:st(_)}),u,h=new Map,d=!0;function p(_){(y.effect.f&J)===0&&(y.pending.delete(_),y.fallback=a,Hi(y,u,l,t,r),a!==null&&(u.length===0?(a.f&fe)===0?Vt(a):(a.f^=fe,rt(a,null,l)):Oe(a,()=>{a=null})))}function c(_){y.pending.delete(_)}var b=Bt(()=>{u=x(f);var _=u.length;let w=!1;if(T){var D=_n(l)===xt;D!==(_===0)&&(l=ht(),B(l),te(!1),w=!0)}for(var q=new Set,Y=S,Je=Yn(),ae=0;ae<_;ae+=1){T&&$.nodeType===We&&$.data===Tt&&(l=$,w=!0,te(!1));var v=u[ae],E=r(v,ae),k=d?null:o.get(E);k?(k.v&&Ve(k.v,v),k.i&&Ve(k.i,ae),Je&&Y.unskip_effect(k.e)):(k=Vi(o,d?l:hr??=G(),v,E,ae,i,t,n),d||(k.e.f|=fe),o.set(E,k)),q.add(E)}if(_===0&&s&&!a&&(d?a=K(()=>s(l)):(a=K(()=>s(hr??=G())),a.f|=fe)),_>q.size&&jr(),T&&_>0&&B(ht()),!d)if(h.set(Y,q),Je){for(const[j,O]of o)q.has(j)||Y.skip_effect(O.e);Y.oncommit(p),Y.ondiscard(c)}else p(Y);w&&te(!0),x(f)}),y={effect:b,items:o,pending:h,outrogroups:null,fallback:a};d=!1,T&&(l=$)}function nt(e){for(;e!==null&&(e.f&ee)===0;)e=e.next;return e}function Hi(e,t,n,r,i){var s=t.length,l=e.items,o=nt(e.effect.first),a,f=null,u=[],h=[],d,p,c,b;for(b=0;b<s;b+=1){if(d=t[b],p=i(d,b),c=l.get(p).e,e.outrogroups!==null)for(const v of e.outrogroups)v.pending.delete(c),v.done.delete(c);if((c.f&z)!==0&&Vt(c),(c.f&fe)!==0)if(c.f^=fe,c===o)rt(c,null,n);else{var y=f?f.next:o;c===e.effect.last&&(e.effect.last=c.prev),c.prev&&(c.prev.next=c.next),c.next&&(c.next.prev=c.prev),xe(e,f,c),xe(e,c,y),rt(c,y,n),f=c,u=[],h=[],o=nt(f.next);continue}if(c!==o){if(a!==void 0&&a.has(c)){if(u.length<h.length){var _=h[0],w;f=_.prev;var D=u[0],q=u[u.length-1];for(w=0;w<u.length;w+=1)rt(u[w],_,n);for(w=0;w<h.length;w+=1)a.delete(h[w]);xe(e,D.prev,q.next),xe(e,f,D),xe(e,q,_),o=_,f=q,b-=1,u=[],h=[]}else a.delete(c),rt(c,o,n),xe(e,c.prev,c.next),xe(e,c,f===null?e.effect.first:f.next),xe(e,f,c),f=c;continue}for(u=[],h=[];o!==null&&o!==c;)(a??=new Set).add(o),h.push(o),o=nt(o.next);if(o===null)continue}(c.f&fe)===0&&u.push(c),f=c,o=nt(c.next)}if(e.outrogroups!==null){for(const v of e.outrogroups)v.pending.size===0&&(Kt(e,st(v.done)),e.outrogroups?.delete(v));e.outrogroups.size===0&&(e.outrogroups=null)}if(o!==null||a!==void 0){var Y=[];if(a!==void 0)for(c of a)(c.f&z)===0&&Y.push(c);for(;o!==null;)(o.f&z)===0&&o!==e.fallback&&Y.push(o),o=nt(o.next);var Je=Y.length;if(Je>0){var ae=null;zi(e,Y,ae)}}}function Vi(e,t,n,r,i,s,l,o){var a=(l&gr)!==0?(l&yr)===0?In(n,!1,!1):Ce(n):null,f=(l&mr)!==0?Ce(i):null;return{v:a,i:f,e:K(()=>(s(t,a??n,f??i,o),()=>{e.delete(r)}))}}function rt(e,t,n){if(e.nodes)for(var r=e.nodes.start,i=e.nodes.end,s=t&&(t.f&fe)===0?t.nodes.start:n;r!==null;){var l=se(r);if(s.before(r),r===i)return;r=l}}function xe(e,t,n){t===null?e.effect.first=n:t.next=n,n===null?e.effect.last=t:n.prev=t}function Yi(e,t){wi(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector("#"+t.hash)){const i=Ft("style");i.id=t.hash,i.textContent=t.code,r.appendChild(i)}})}const Ui=Symbol("is custom element"),Ji=Symbol("is html"),Wi=Ir?"link":"LINK";function Gi(e,t,n,r){var i=Ki(e);T&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName===Wi)||i[t]!==(i[t]=n)&&(t==="loading"&&(e[Dr]=n),n==null?e.removeAttribute(t):typeof n!="string"&&vr(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function le(e,t,n){var r=g,i=m;let s=T;T&&te(!1),I(null),X(null);try{t!=="style"&&(Xt.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.nodeName.toLowerCase())?vr(e).includes(t):n&&typeof n=="object")?e[t]=n:Gi(e,t,n==null?n:String(n))}finally{I(r),X(i),s&&te(!0)}}function Ki(e){return e.__attributes??={[Ui]:e.nodeName.includes("-"),[Ji]:e.namespaceURI===on}}var Xt=new Map;function vr(e){var t=e.getAttribute("is")||e.nodeName,n=Xt.get(t);if(n)return n;Xt.set(t,n=[]);for(var r,i=e,s=Element.prototype;s!==i;){r=Ar(i);for(var l in r)r[l].set&&n.push(l);i=an(i)}return n}function Zt(e,t,n,r){var i=(n&Er)!==0,s=(n&xr)!==0,l=r,o=!0,a=()=>(o&&(o=!1,l=s?Ut(r):r),l);let f;if(i){var u=ft in e||vn in e;f=Te(e,t)?.set??(u&&t in e?w=>e[t]=w:void 0)}var h,d=!1;i?[h,d]=ri(()=>e[t]):h=e[t],h===void 0&&r!==void 0&&(h=a(),f&&(Ur(),f(h)));var p;if(p=()=>{var w=e[t];return w===void 0?a():(o=!0,w)},(n&$r)===0)return p;if(f){var c=e.$$legacy;return(function(w,D){return arguments.length>0?((!D||c||d)&&f(D?p():w),w):p()})}var b=!1,y=((n&wr)!==0?Mt:Mn)(()=>(b=!1,p()));i&&x(y);var _=m;return(function(w,D){if(arguments.length>0){const q=D?x(y):i?Re(w):w;return R(y,q),b=!0,l!==void 0&&(l=q),w}return we&&b||(_.f&J)!==0?y.v:x(y)})}function Xi(e){return new Zi(e)}class Zi{#e;#n;constructor(t){var n=new Map,r=(s,l)=>{var o=In(l,!1,!1);return n.set(s,o),o};const i=new Proxy({...t.props||{},$$events:{}},{get(s,l){return x(n.get(l)??r(l,Reflect.get(s,l)))},has(s,l){return l===vn?!0:(x(n.get(l)??r(l,Reflect.get(s,l))),Reflect.has(s,l))},set(s,l,o){return R(n.get(l)??r(l,o),o),Reflect.set(s,l,o)}});this.#n=(t.hydrate?Ii:cr)(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)&&_t(),this.#e=i.$$events;for(const s of Object.keys(this.#n))s==="$set"||s==="$destroy"||s==="$on"||lt(this,s,{get(){return this.#n[s]},set(l){this.#n[s]=l},enumerable:!0});this.#n.$set=s=>{Object.assign(i,s)},this.#n.$destroy=()=>{Fi(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 pr;typeof HTMLElement=="function"&&(pr=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=Ft("slot");r!=="default"&&(s.name=r),Ee(i,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},n=Qi(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]=Et(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=Xi({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=mi(()=>{Gn(()=>{this.$$r=!0;for(const r of ot(this.$$c)){if(!this.$$p_d[r]?.reflect)continue;this.$$d[r]=this.$$c[r];const i=Et(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]=Et(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 ot(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function Et(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 Qi(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}function es(e,t,n,r,i,s){let l=class extends pr{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return ot(t).map(o=>(t[o].attribute||o).toLowerCase())}};return ot(t).forEach(o=>{lt(l.prototype,o,{get(){return this.$$c&&o in this.$$c?this.$$c[o]:this.$$d[o]},set(a){a=Et(o,a,t),this.$$d[o]=a;var f=this.$$c;if(f){var u=Te(f,o)?.get;u?f[o]=a:f.$set({[o]:a})}}})}),r.forEach(o=>{lt(l.prototype,o,{get(){return this.$$c?.[o]}})}),e.element=l,l}const Qt={version:"0.66.3"};var Pe={},_r;function ts(){if(_r)return Pe;_r=1,Object.defineProperty(Pe,"__esModule",{value:!0}),Pe.LanguageTranslator=void 0,Pe.getChildStyleToPass=e,Pe.addComponent=t;function e(r,i){var s,l,o="";try{if(r&&i?.length&&(!((s=Object.keys(r))===null||s===void 0)&&s.length)&&(!((l=i?.filter(function(d){return Object.keys(r).includes(d.name)}))===null||l===void 0)&&l.length))for(var a=function(d){var p=i?.filter(function(c){return c.name===d&&c.defaultValue!==r[d]});p&&(o+="".concat(d,":").concat(r[d],";"))},f=0,u=Object.keys(r);f<u.length;f++){var h=u[f];a(h)}}catch(d){console.error("error getting child style to pass",d)}finally{return o}}function t(r){var i,s=((i=r?.repoName.split("/"))===null||i===void 0?void 0:i[1])||r?.repoName;if(!s)throw new Error("wrong componentPath "+r?.repoName);if(!r?.version)throw new Error("wrong version "+r?.version);var l=r?.iifePath||"main.iife.js";if(!document.getElementById(s+"-script"))try{var o=document.createElement("script");if(o.id=s+"-script",o.src="https://cdn.jsdelivr.net/npm/".concat(r.repoName,"@").concat(r.version,"/").concat(l),r?.local)o.src="".concat(r.local);else if(location.href.includes("localhost:6006")){var a=s.split("-")[0];o.src="http://localhost:6006/webcomponents/".concat(s.replace(a+"-",""),"/").concat(l)}document.head.appendChild(o)}catch(f){console.warn(f)}}var n=(function(){function r(i){if(this.lang="",!i?.dictionary)throw new Error("no dictionary provided");this.dictionary=i.dictionary,this.setLang(i?.lang)}return r.prototype.setLang=function(i){i||(i=r.getDefaultLang()),this.lang=i},r.prototype.translateWord=function(i,s){return r.getDictionaryWord(i,this.dictionary,s||this.lang)},r.prototype.translateDate=function(i,s,l){return r.formatDate(i,s,l||this.lang)},r.getDefaultLang=function(){var i,s,l,o="en";return navigator?.languages&&(!((l=(s=(i=navigator.languages[0])===null||i===void 0?void 0:i.split("-")[0])===null||s===void 0?void 0:s.toLowerCase())===null||l===void 0)&&l.length)&&(o=navigator.languages[0].split("-")[0].toLowerCase()),o},r.getDictionaryWord=function(i,s,l){var o;if(!i)throw new Error("no wordKey provided");if(!s)throw new Error("no dictionary provided");if(l&&(!((o=s[l])===null||o===void 0)&&o[i]))return s[l][i];var a="",f=r.getDefaultLang();if(!l||f!==l){var u=s?.[f];u?.[i]&&(a=u[i])}return a},r.formatDate=function(i,s,l){if(!i)throw new Error("no date provided");if(typeof i.getMonth!="function")throw new Error("wrong date format");var o=new Intl.DateTimeFormat(l||r.getDefaultLang(),s);return o.format(i)},r})();return Pe.LanguageTranslator=n,Pe}var en=ts(),ns=yt("<hb-dialogform></hb-dialogform>",2),rs=yt("<hb-form></hb-form>",2),is=yt('<h2 style="margin:60px;text-align:center;color:blue">output</h2> <!>',1),ss=yt('<hb-table><span slot="buttons-container"><button class="btn btn-outline-primary btn-sm svelte-1f1dlex">done</button></span></hb-table> <!> <!>',3);const os={hash:"svelte-1f1dlex",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");:host {font-family:"Roboto", sans-serif;}
3
3
  /*!
4
4
  * Bootstrap v5.1.2 (https://getbootstrap.com/)
5
5
  * Copyright 2011-2021 The Bootstrap Authors
package/manifest.json CHANGED
@@ -128,5 +128,5 @@
128
128
  "size": {},
129
129
  "iifePath": "main.iife.js",
130
130
  "repoName": "@htmlbricks/hb-form-composer",
131
- "version": "0.66.1"
131
+ "version": "0.66.3"
132
132
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@htmlbricks/hb-form-composer",
3
- "version": "0.66.1",
3
+ "version": "0.66.3",
4
4
  "contributors": [],
5
5
  "description": "Visual form-schema builder: internal `hb-form` defines field types, validation flags, and options, mirrored into an `hb-table` preview and editable via `hb-dialogform`. Accumulates `output_schema` as the composed `hb-form` schema array and can emit debug-oriented events for each sub-component interaction.",
6
6
  "licenses": [
@@ -23,4 +23,3 @@
23
23
  }
24
24
  }
25
25
  }
26
-
@@ -27,4 +27,3 @@
27
27
  }
28
28
  }
29
29
  }
30
-