@htmlbricks/hb-form-composer 0.66.4 → 0.66.5

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