@htmlbricks/hb-dialogform 0.61.40 → 0.61.42

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,4 +1,4 @@
1
- (function(xt){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const Br=1,Ur=4,Hr=8,Gr=16,Vr=1,Wr=2,It="[",Mt="[!",Lt="]",Ne={},N=Symbol(),Xr="http://www.w3.org/1999/xhtml",Dt=!1;var Ft=Array.isArray,Kr=Array.prototype.indexOf,zr=Array.from,Ge=Object.keys,Ae=Object.defineProperty,de=Object.getOwnPropertyDescriptor,Jr=Object.getOwnPropertyDescriptors,Zr=Object.prototype,Qr=Array.prototype,jt=Object.getPrototypeOf,qt=Object.isExtensible;function Yt(e){for(var t=0;t<e.length;t++)e[t]()}function en(){var e,t,r=new Promise((n,i)=>{e=n,t=i});return{promise:r,resolve:e,reject:t}}const L=2,ot=4,ft=8,Re=16,ee=32,ne=64,Bt=128,q=256,Ve=512,O=1024,Y=2048,ie=4096,se=8192,ve=16384,ut=32768,ct=65536,Ut=1<<17,tn=1<<18,Oe=1<<19,rn=1<<20,dt=1<<21,vt=1<<22,_e=1<<23,We=Symbol("$state"),Ht=Symbol("legacy props"),nn=Symbol(""),_t=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},sn=3,Xe=8;function ln(){throw new Error("https://svelte.dev/e/await_outside_boundary")}function an(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function on(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function fn(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function un(e){throw new Error("https://svelte.dev/e/effect_orphan")}function cn(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function dn(){throw new Error("https://svelte.dev/e/hydration_failed")}function vn(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function _n(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function hn(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function mn(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Ke(e){console.warn("https://svelte.dev/e/hydration_mismatch")}let S=!1;function le(e){S=e}let A;function he(e){if(e===null)throw Ke(),Ne;return A=e}function ze(){return he(Ce(A))}function V(e){if(S){if(Ce(A)!==null)throw Ke(),Ne;A=e}}function pn(){for(var e=0,t=A;;){if(t.nodeType===Xe){var r=t.data;if(r===Lt){if(e===0)return t;e-=1}else(r===It||r===Mt)&&(e+=1)}var n=Ce(t);t.remove(),t=n}}function bn(e){if(!e||e.nodeType!==Xe)throw Ke(),Ne;return e.data}function Gt(e){return e===this.v}function gn(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Vt(e){return!gn(e,this.v)}let wn=!1,W=null;function Je(e){W=e}function Wt(e,t=!1,r){W={p:W,c:null,e:null,s:e,x:null,l:null}}function Xt(e){var t=W,r=t.e;if(r!==null){t.e=null;for(var n of r)ur(n)}return e!==void 0&&(t.x=e),W=t.p,e??{}}function Kt(){return!0}const yn=new WeakMap;function En(e){var t=g;if(t===null)return w.f|=_e,e;if((t.f&ut)===0){if((t.f&Bt)===0)throw!t.parent&&e instanceof Error&&zt(e),e;t.b.error(e)}else ht(e,t)}function ht(e,t){for(;t!==null;){if((t.f&Bt)!==0)try{t.b.error(e);return}catch(r){e=r}t=t.parent}throw e instanceof Error&&zt(e),e}function zt(e){const t=yn.get(e);t&&(Ae(e,"message",{value:t.message}),Ae(e,"stack",{value:t.stack}))}let qe=[],mt=[];function Jt(){var e=qe;qe=[],Yt(e)}function $n(){var e=mt;mt=[],Yt(e)}function Tn(e){qe.length===0&&queueMicrotask(Jt),qe.push(e)}function Sn(){qe.length>0&&Jt(),mt.length>0&&$n()}function Nn(){const e=g.b;return e===null&&ln(),e}function pt(e){var t=L|Y,r=w!==null&&(w.f&L)!==0?w:null;return g===null||r!==null&&(r.f&q)!==0?t|=q:g.f|=Oe,{ctx:W,deps:null,effects:null,equals:Gt,f:t,fn:e,reactions:null,rv:0,v:N,wv:0,parent:r??g,ac:null}}function An(e,t){let r=g;r===null&&an();var n=r.b,i=void 0,s=yt(N),l=null,o=!w;return Un(()=>{try{var a=e();l&&Promise.resolve(a).catch(()=>{})}catch(v){a=Promise.reject(v)}var f=()=>a;i=l?.then(f,f)??Promise.resolve(a),l=i;var u=R,d=n.is_pending();o&&(n.update_pending_count(1),d||u.increment());const h=(v,_=void 0)=>{l=null,d||u.activate(),_?_!==_t&&(s.f|=_e,Et(s,_)):((s.f&_e)!==0&&(s.f^=_e),Et(s,v)),o&&(n.update_pending_count(-1),d||u.decrement()),er()};if(i.then(h,v=>h(null,v||"unknown")),u)return()=>{queueMicrotask(()=>u.neuter())}}),new Promise(a=>{function f(u){function d(){u===i?a(s):f(i)}u.then(d,d)}f(i)})}function Rn(e){const t=pt(e);return t.equals=Vt,t}function Zt(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)fe(t[r])}}function On(e){for(var t=e.parent;t!==null;){if((t.f&L)===0)return t;t=t.parent}return null}function bt(e){var t,r=g;Z(On(e));try{Zt(e),t=$r(e)}finally{Z(r)}return t}function Qt(e){var t=bt(e);if(e.equals(t)||(e.v=t,e.wv=yr()),!ye){var r=(ue||(e.f&q)!==0)&&e.deps!==null?ie:O;x(e,r)}}function kn(e,t,r){const n=pt;if(t.length===0){r(e.map(n));return}var i=R,s=g,l=Cn(),o=Nn();Promise.all(t.map(a=>An(a))).then(a=>{i?.activate(),l();try{r([...e.map(n),...a])}catch(f){(s.f&ve)===0&&ht(f,s)}i?.deactivate(),er()}).catch(a=>{o.error(a)})}function Cn(){var e=g,t=w,r=W,n=R;return function(){Z(e),U(t),Je(r),n?.activate()}}function er(){Z(null),U(null),Je(null)}const gt=new Set;let R=null,tr=new Set,Ze=[];function rr(){const e=Ze.shift();Ze.length>0&&queueMicrotask(rr),e()}let me=[],Qe=null,wt=!1,et=!1;class pe{current=new Map;#t=new Map;#e=new Set;#r=0;#f=null;#u=!1;#i=[];#l=[];#s=[];#n=[];#a=[];#c=[];#d=[];skipped_effects=new Set;process(t){me=[];for(const i of t)this.#_(i);if(this.#i.length===0&&this.#r===0){this.#v();var r=this.#s,n=this.#n;this.#s=[],this.#n=[],this.#a=[],R=null,ir(r),ir(n),R===null?R=this:gt.delete(this),this.#f?.resolve()}else this.#o(this.#s),this.#o(this.#n),this.#o(this.#a);for(const i of this.#i)xe(i);for(const i of this.#l)xe(i);this.#i=[],this.#l=[]}#_(t){t.f^=O;for(var r=t.first;r!==null;){var n=r.f,i=(n&(ee|ne))!==0,s=i&&(n&O)!==0,l=s||(n&se)!==0||this.skipped_effects.has(r);if(!l&&r.fn!==null){if(i)r.f^=O;else if((n&ot)!==0)this.#n.push(r);else if((n&O)===0)if((n&vt)!==0){var o=r.b?.is_pending()?this.#l:this.#i;o.push(r)}else rt(r)&&((r.f&Re)!==0&&this.#a.push(r),xe(r));var a=r.first;if(a!==null){r=a;continue}}var f=r.parent;for(r=r.next;r===null&&f!==null;)r=f.next,f=f.parent}}#o(t){for(const r of t)((r.f&Y)!==0?this.#c:this.#d).push(r),x(r,O);t.length=0}capture(t,r){this.#t.has(t)||this.#t.set(t,r),this.current.set(t,t.v)}activate(){R=this}deactivate(){R=null;for(const t of tr)if(tr.delete(t),t(),R!==null)break}neuter(){this.#u=!0}flush(){me.length>0?nr():this.#v(),R===this&&(this.#r===0&&gt.delete(this),this.deactivate())}#v(){if(!this.#u)for(const t of this.#e)t();this.#e.clear()}increment(){this.#r+=1}decrement(){if(this.#r-=1,this.#r===0){for(const t of this.#c)x(t,Y),ke(t);for(const t of this.#d)x(t,ie),ke(t);this.#s=[],this.#n=[],this.flush()}else this.deactivate()}add_callback(t){this.#e.add(t)}settled(){return(this.#f??=en()).promise}static ensure(){if(R===null){const t=R=new pe;gt.add(R),et||pe.enqueue(()=>{R===t&&t.flush()})}return R}static enqueue(t){Ze.length===0&&queueMicrotask(rr),Ze.unshift(t)}}function D(e){var t=et;et=!0;try{for(var r;;){if(Sn(),me.length===0&&(R?.flush(),me.length===0))return Qe=null,r;nr()}}finally{et=t}}function nr(){var e=Pe;wt=!0;try{var t=0;for(pr(!0);me.length>0;){var r=pe.ensure();if(t++>1e3){var n,i;Pn()}r.process(me),ae.clear()}}finally{wt=!1,pr(e),Qe=null}}function Pn(){try{cn()}catch(e){ht(e,Qe)}}let be=null;function ir(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var n=e[r++];if((n.f&(ve|se))===0&&rt(n)&&(be=[],xe(n),n.deps===null&&n.first===null&&n.nodes_start===null&&(n.teardown===null&&n.ac===null?vr(n):n.fn=null),be?.length>0)){ae.clear();for(const i of be)xe(i);be=[]}}be=null}}function ke(e){for(var t=Qe=e;t.parent!==null;){t=t.parent;var r=t.f;if(wt&&t===g&&(r&Re)!==0)return;if((r&(ne|ee))!==0){if((r&O)===0)return;t.f^=O}}me.push(t)}const ae=new Map;function yt(e,t){var r={f:0,v:e,reactions:null,equals:Gt,rv:0,wv:0};return r}function B(e,t){const r=yt(e);return zn(r),r}function xn(e,t=!1,r=!0){const n=yt(e);return t||(n.equals=Vt),n}function X(e,t,r=!1){w!==null&&(!J||(w.f&Ut)!==0)&&Kt()&&(w.f&(L|Re|vt|Ut))!==0&&!te?.includes(e)&&mn();let n=r?ge(t):t;return Et(e,n)}function Et(e,t){if(!e.equals(t)){var r=e.v;ye?ae.set(e,t):ae.set(e,r),e.v=t;var n=pe.ensure();n.capture(e,r),(e.f&L)!==0&&((e.f&Y)!==0&&bt(e),x(e,(e.f&q)===0?O:ie)),e.wv=yr(),sr(e,Y),g!==null&&(g.f&O)!==0&&(g.f&(ee|ne))===0&&(H===null?Jn([e]):H.push(e))}return t}function $t(e){X(e,e.v+1)}function sr(e,t){var r=e.reactions;if(r!==null)for(var n=r.length,i=0;i<n;i++){var s=r[i],l=s.f,o=(l&Y)===0;o&&x(s,t),(l&L)!==0?sr(s,ie):o&&((l&Re)!==0&&be!==null&&be.push(s),ke(s))}}function ge(e){if(typeof e!="object"||e===null||We in e)return e;const t=jt(e);if(t!==Zr&&t!==Qr)return e;var r=new Map,n=Ft(e),i=B(0),s=Ee,l=o=>{if(Ee===s)return o();var a=w,f=Ee;U(null),wr(s);var u=o();return U(a),wr(f),u};return n&&r.set("length",B(e.length)),new Proxy(e,{defineProperty(o,a,f){(!("value"in f)||f.configurable===!1||f.enumerable===!1||f.writable===!1)&&_n();var u=r.get(a);return u===void 0?u=l(()=>{var d=B(f.value);return r.set(a,d),d}):X(u,f.value,!0),!0},deleteProperty(o,a){var f=r.get(a);if(f===void 0){if(a in o){const u=l(()=>B(N));r.set(a,u),$t(i)}}else X(f,N),$t(i);return!0},get(o,a,f){if(a===We)return e;var u=r.get(a),d=a in o;if(u===void 0&&(!d||de(o,a)?.writable)&&(u=l(()=>{var v=ge(d?o[a]:N),_=B(v);return _}),r.set(a,u)),u!==void 0){var h=j(u);return h===N?void 0:h}return Reflect.get(o,a,f)},getOwnPropertyDescriptor(o,a){var f=Reflect.getOwnPropertyDescriptor(o,a);if(f&&"value"in f){var u=r.get(a);u&&(f.value=j(u))}else if(f===void 0){var d=r.get(a),h=d?.v;if(d!==void 0&&h!==N)return{enumerable:!0,configurable:!0,value:h,writable:!0}}return f},has(o,a){if(a===We)return!0;var f=r.get(a),u=f!==void 0&&f.v!==N||Reflect.has(o,a);if(f!==void 0||g!==null&&(!u||de(o,a)?.writable)){f===void 0&&(f=l(()=>{var h=u?ge(o[a]):N,v=B(h);return v}),r.set(a,f));var d=j(f);if(d===N)return!1}return u},set(o,a,f,u){var d=r.get(a),h=a in o;if(n&&a==="length")for(var v=f;v<d.v;v+=1){var _=r.get(v+"");_!==void 0?X(_,N):v in o&&(_=l(()=>B(N)),r.set(v+"",_))}if(d===void 0)(!h||de(o,a)?.writable)&&(d=l(()=>B(void 0)),X(d,ge(f)),r.set(a,d));else{h=d.v!==N;var m=l(()=>ge(f));X(d,m)}var E=Reflect.getOwnPropertyDescriptor(o,a);if(E?.set&&E.set.call(u,f),!h){if(n&&typeof a=="string"){var $=r.get("length"),b=Number(a);Number.isInteger(b)&&b>=$.v&&X($,b+1)}$t(i)}return!0},ownKeys(o){j(i);var a=Reflect.ownKeys(o).filter(d=>{var h=r.get(d);return h===void 0||h.v!==N});for(var[f,u]of r)u.v!==N&&!(f in o)&&a.push(f);return a},setPrototypeOf(){hn()}})}var lr,ar,or,fr;function Tt(){if(lr===void 0){lr=window,ar=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;or=de(t,"firstChild").get,fr=de(t,"nextSibling").get,qt(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),qt(r)&&(r.__t=void 0)}}function tt(e=""){return document.createTextNode(e)}function Ye(e){return or.call(e)}function Ce(e){return fr.call(e)}function K(e,t){if(!S)return Ye(e);var r=Ye(A);return r===null&&(r=A.appendChild(tt())),he(r),r}function we(e,t=1,r=!1){let n=S?A:e;for(var i;t--;)i=n,n=Ce(n);if(!S)return n;if(r&&n?.nodeType!==sn){var s=tt();return n===null?i?.after(s):n.before(s),he(s),s}return he(n),n}function In(e){e.textContent=""}function Mn(){return!1}function St(e){var t=w,r=g;U(null),Z(null);try{return e()}finally{U(t),Z(r)}}function Ln(e){g===null&&w===null&&un(),w!==null&&(w.f&q)!==0&&g===null&&fn(),ye&&on()}function Dn(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function z(e,t,r,n=!0){var i=g;i!==null&&(i.f&se)!==0&&(e|=se);var s={ctx:W,deps:null,nodes_start:null,nodes_end:null,f:e|Y,first:null,fn:t,last:null,next:null,parent:i,b:i&&i.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(r)try{xe(s),s.f|=ut}catch(a){throw fe(s),a}else t!==null&&ke(s);if(n){var l=s;if(r&&l.deps===null&&l.teardown===null&&l.nodes_start===null&&l.first===l.last&&(l.f&Oe)===0&&(l=l.first),l!==null&&(l.parent=i,i!==null&&Dn(l,i),w!==null&&(w.f&L)!==0&&(e&ne)===0)){var o=w;(o.effects??=[]).push(l)}}return s}function Fn(e){const t=z(ft,null,!1);return x(t,O),t.teardown=e,t}function jn(e){Ln();var t=g.f,r=!w&&(t&ee)!==0&&(t&ut)===0;if(r){var n=W;(n.e??=[]).push(e)}else return ur(e)}function ur(e){return z(ot|rn,e,!1)}function qn(e){pe.ensure();const t=z(ne|Oe,e,!0);return()=>{fe(t)}}function Yn(e){pe.ensure();const t=z(ne|Oe,e,!0);return(r={})=>new Promise(n=>{r.outro?_r(t,()=>{fe(t),n(void 0)}):(fe(t),n(void 0))})}function Bn(e){return z(ot,e,!1)}function Un(e){return z(vt|Oe,e,!0)}function Hn(e,t=0){return z(ft|t,e,!0)}function oe(e,t=[],r=[]){kn(t,r,n=>{z(ft,()=>e(...n.map(j)),!0)})}function Gn(e,t=0){var r=z(Re|t,e,!0);return r}function Nt(e,t=!0){return z(ee|Oe,e,!0,t)}function cr(e){var t=e.teardown;if(t!==null){const r=ye,n=w;br(!0),U(null);try{t.call(null)}finally{br(r),U(n)}}}function dr(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const i=r.ac;i!==null&&St(()=>{i.abort(_t)});var n=r.next;(r.f&ne)!==0?r.parent=null:fe(r,t),r=n}}function Vn(e){for(var t=e.first;t!==null;){var r=t.next;(t.f&ee)===0&&fe(t),t=r}}function fe(e,t=!0){var r=!1;(t||(e.f&tn)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(Wn(e.nodes_start,e.nodes_end),r=!0),dr(e,t&&!r),nt(e,0),x(e,ve);var n=e.transitions;if(n!==null)for(const s of n)s.stop();cr(e);var i=e.parent;i!==null&&i.first!==null&&vr(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function Wn(e,t){for(;e!==null;){var r=e===t?null:Ce(e);e.remove(),e=r}}function vr(e){var t=e.parent,r=e.prev,n=e.next;r!==null&&(r.next=n),n!==null&&(n.prev=r),t!==null&&(t.first===e&&(t.first=n),t.last===e&&(t.last=r))}function _r(e,t){var r=[];hr(e,r,!0),Xn(r,()=>{fe(e),t&&t()})}function Xn(e,t){var r=e.length;if(r>0){var n=()=>--r||t();for(var i of e)i.out(n)}else t()}function hr(e,t,r){if((e.f&se)===0){if(e.f^=se,e.transitions!==null)for(const l of e.transitions)(l.is_global||r)&&t.push(l);for(var n=e.first;n!==null;){var i=n.next,s=(n.f&ct)!==0||(n.f&ee)!==0;hr(n,t,s?r:!1),n=i}}}function Kn(e){mr(e,!0)}function mr(e,t){if((e.f&se)!==0){e.f^=se,(e.f&O)===0&&(x(e,Y),ke(e));for(var r=e.first;r!==null;){var n=r.next,i=(r.f&ct)!==0||(r.f&ee)!==0;mr(r,i?t:!1),r=n}if(e.transitions!==null)for(const s of e.transitions)(s.is_global||t)&&s.in()}}let Pe=!1;function pr(e){Pe=e}let ye=!1;function br(e){ye=e}let w=null,J=!1;function U(e){w=e}let g=null;function Z(e){g=e}let te=null;function zn(e){w!==null&&(te===null?te=[e]:te.push(e))}let k=null,F=0,H=null;function Jn(e){H=e}let gr=1,Be=0,Ee=Be;function wr(e){Ee=e}let ue=!1;function yr(){return++gr}function rt(e){var t=e.f;if((t&Y)!==0)return!0;if((t&ie)!==0){var r=e.deps,n=(t&q)!==0;if(r!==null){var i,s,l=(t&Ve)!==0,o=n&&g!==null&&!ue,a=r.length;if((l||o)&&(g===null||(g.f&ve)===0)){var f=e,u=f.parent;for(i=0;i<a;i++)s=r[i],(l||!s?.reactions?.includes(f))&&(s.reactions??=[]).push(f);l&&(f.f^=Ve),o&&u!==null&&(u.f&q)===0&&(f.f^=q)}for(i=0;i<a;i++)if(s=r[i],rt(s)&&Qt(s),s.wv>e.wv)return!0}(!n||g!==null&&!ue)&&x(e,O)}return!1}function Er(e,t,r=!0){var n=e.reactions;if(n!==null&&!te?.includes(e))for(var i=0;i<n.length;i++){var s=n[i];(s.f&L)!==0?Er(s,t,!1):t===s&&(r?x(s,Y):(s.f&O)!==0&&x(s,ie),ke(s))}}function $r(e){var t=k,r=F,n=H,i=w,s=ue,l=te,o=W,a=J,f=Ee,u=e.f;k=null,F=0,H=null,ue=(u&q)!==0&&(J||!Pe||w===null),w=(u&(ee|ne))===0?e:null,te=null,Je(e.ctx),J=!1,Ee=++Be,e.ac!==null&&(St(()=>{e.ac.abort(_t)}),e.ac=null);try{e.f|=dt;var d=e.fn,h=d(),v=e.deps;if(k!==null){var _;if(nt(e,F),v!==null&&F>0)for(v.length=F+k.length,_=0;_<k.length;_++)v[F+_]=k[_];else e.deps=v=k;if(!ue||(u&L)!==0&&e.reactions!==null)for(_=F;_<v.length;_++)(v[_].reactions??=[]).push(e)}else v!==null&&F<v.length&&(nt(e,F),v.length=F);if(Kt()&&H!==null&&!J&&v!==null&&(e.f&(L|ie|Y))===0)for(_=0;_<H.length;_++)Er(H[_],e);return i!==null&&i!==e&&(Be++,H!==null&&(n===null?n=H:n.push(...H))),(e.f&_e)!==0&&(e.f^=_e),h}catch(m){return En(m)}finally{e.f^=dt,k=t,F=r,H=n,w=i,ue=s,te=l,Je(o),J=a,Ee=f}}function Zn(e,t){let r=t.reactions;if(r!==null){var n=Kr.call(r,e);if(n!==-1){var i=r.length-1;i===0?r=t.reactions=null:(r[n]=r[i],r.pop())}}r===null&&(t.f&L)!==0&&(k===null||!k.includes(t))&&(x(t,ie),(t.f&(q|Ve))===0&&(t.f^=Ve),Zt(t),nt(t,0))}function nt(e,t){var r=e.deps;if(r!==null)for(var n=t;n<r.length;n++)Zn(e,r[n])}function xe(e){var t=e.f;if((t&ve)===0){x(e,O);var r=g,n=Pe;g=e,Pe=!0;try{(t&Re)!==0?Vn(e):dr(e),cr(e);var i=$r(e);e.teardown=typeof i=="function"?i:null,e.wv=gr;var s;Dt&&wn&&(e.f&Y)!==0&&e.deps}finally{Pe=n,g=r}}}function j(e){var t=e.f,r=(t&L)!==0;if(w!==null&&!J){var n=g!==null&&(g.f&ve)!==0;if(!n&&!te?.includes(e)){var i=w.deps;if((w.f&dt)!==0)e.rv<Be&&(e.rv=Be,k===null&&i!==null&&i[F]===e?F++:k===null?k=[e]:(!ue||!k.includes(e))&&k.push(e));else{(w.deps??=[]).push(e);var s=e.reactions;s===null?e.reactions=[w]:s.includes(w)||s.push(w)}}}else if(r&&e.deps===null&&e.effects===null){var l=e,o=l.parent;o!==null&&(o.f&q)===0&&(l.f^=q)}if(ye){if(ae.has(e))return ae.get(e);if(r){l=e;var a=l.v;return((l.f&O)===0&&l.reactions!==null||Tr(l))&&(a=bt(l)),ae.set(l,a),a}}else r&&(l=e,rt(l)&&Qt(l));if((e.f&_e)!==0)throw e.v;return e.v}function Tr(e){if(e.v===N)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(ae.has(t)||(t.f&L)!==0&&Tr(t))return!0;return!1}function Qn(e){var t=J;try{return J=!0,e()}finally{J=t}}const ei=-7169;function x(e,t){e.f=e.f&ei|t}const ti=new Set,Sr=new Set;function ri(e,t,r,n={}){function i(s){if(n.capture||Ue.call(t,s),!s.cancelBubble)return St(()=>r?.call(this,s))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?Tn(()=>{t.addEventListener(e,i,n)}):t.addEventListener(e,i,n),i}function At(e,t,r,n,i){var s={capture:n,passive:i},l=ri(e,t,r,s);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&Fn(()=>{t.removeEventListener(e,l,s)})}let Nr=null;function Ue(e){var t=this,r=t.ownerDocument,n=e.type,i=e.composedPath?.()||[],s=i[0]||e.target;Nr=e;var l=0,o=Nr===e&&e.__root;if(o){var a=i.indexOf(o);if(a!==-1&&(t===document||t===window)){e.__root=t;return}var f=i.indexOf(t);if(f===-1)return;a<=f&&(l=a)}if(s=i[l]||e.target,s!==t){Ae(e,"currentTarget",{configurable:!0,get(){return s||r}});var u=w,d=g;U(null),Z(null);try{for(var h,v=[];s!==null;){var _=s.assignedSlot||s.parentNode||s.host||null;try{var m=s["__"+n];if(m!=null&&(!s.disabled||e.target===s))if(Ft(m)){var[E,...$]=m;E.apply(s,[e,...$])}else m.call(s,e)}catch(b){h?v.push(b):h=b}if(e.cancelBubble||_===t||_===null)break;s=_}if(h){for(let b of v)queueMicrotask(()=>{throw b});throw h}}finally{e.__root=t,delete e.currentTarget,U(u),Z(d)}}}function ni(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function it(e,t){var r=g;r.nodes_start===null&&(r.nodes_start=e,r.nodes_end=t)}function $e(e,t){var r=(t&Vr)!==0,n=(t&Wr)!==0,i,s=!e.startsWith("<!>");return()=>{if(S)return it(A,null),A;i===void 0&&(i=ni(s?e:"<!>"+e),r||(i=Ye(i)));var l=n||ar?document.importNode(i,!0):i.cloneNode(!0);if(r){var o=Ye(l),a=l.lastChild;it(o,a)}else it(l,l);return l}}function ce(e,t){if(S){g.nodes_end=A,ze();return}e!==null&&e.before(t)}const ii=["touchstart","touchmove"];function si(e){return ii.includes(e)}function Ar(e,t){return Rr(e,t)}function li(e,t){Tt(),t.intro=t.intro??!1;const r=t.target,n=S,i=A;try{for(var s=Ye(r);s&&(s.nodeType!==Xe||s.data!==It);)s=Ce(s);if(!s)throw Ne;le(!0),he(s),ze();const l=Rr(e,{...t,anchor:s});if(A===null||A.nodeType!==Xe||A.data!==Lt)throw Ke(),Ne;return le(!1),l}catch(l){if(l instanceof Error&&l.message.split(`
2
- `).some(o=>o.startsWith("https://svelte.dev/e/")))throw l;return l!==Ne&&console.warn("Failed to hydrate: ",l),t.recover===!1&&dn(),Tt(),In(r),le(!1),Ar(e,t)}finally{le(n),he(i)}}const Ie=new Map;function Rr(e,{target:t,anchor:r,props:n={},events:i,context:s,intro:l=!0}){Tt();var o=new Set,a=d=>{for(var h=0;h<d.length;h++){var v=d[h];if(!o.has(v)){o.add(v);var _=si(v);t.addEventListener(v,Ue,{passive:_});var m=Ie.get(v);m===void 0?(document.addEventListener(v,Ue,{passive:_}),Ie.set(v,1)):Ie.set(v,m+1)}}};a(zr(ti)),Sr.add(a);var f=void 0,u=Yn(()=>{var d=r??t.appendChild(tt());return Nt(()=>{if(s){Wt({});var h=W;h.c=s}i&&(n.$$events=i),S&&it(d,null),f=e(d,n)||{},S&&(g.nodes_end=A),s&&Xt()}),()=>{for(var h of o){t.removeEventListener(h,Ue);var v=Ie.get(h);--v===0?(document.removeEventListener(h,Ue),Ie.delete(h)):Ie.set(h,v)}Sr.delete(a),d!==r&&d.parentNode?.removeChild(d)}});return Rt.set(f,u),f}let Rt=new WeakMap;function ai(e,t){const r=Rt.get(e);return r?(Rt.delete(e),r(t)):Promise.resolve()}function Me(e,t,r=!1){S&&ze();var n=e,i=null,s=null,l=N,o=r?ct:0,a=!1;const f=(v,_=!0)=>{a=!0,h(_,v)};var u=null;function d(){u!==null&&(u.lastChild.remove(),n.before(u),u=null);var v=l?i:s,_=l?s:i;v&&Kn(v),_&&_r(_,()=>{l?s=null:i=null})}const h=(v,_)=>{if(l===(l=v))return;let m=!1;if(S){const De=bn(n)===Mt;!!l===De&&(n=pn(),he(n),le(!1),m=!0)}var E=Mn(),$=n;if(E&&(u=document.createDocumentFragment(),u.append($=tt())),l?i??=_&&Nt(()=>_($)):s??=_&&Nt(()=>_($)),E){var b=R,C=l?i:s,Q=l?s:i;C&&b.skipped_effects.delete(C),Q&&b.skipped_effects.add(Q),b.add_callback(d)}else d();m&&le(!0)};Gn(()=>{a=!1,t(f),a||h(null,null)},o),S&&(n=A)}function Te(e,t,r,n,i){S&&ze();var s=t.$$slots?.[r],l=!1;s===!0&&(s=t[r==="default"?"children":r],l=!0),s===void 0||s(e,l?()=>n:n)}function oi(e){const t={};e.children&&(t.default=!0);for(const r in e.$$slots)t[r]=!0;return t}function fi(e,t){Bn(()=>{var r=e.getRootNode(),n=r.host?r:r.head??r.ownerDocument.head;if(!n.querySelector("#"+t.hash)){const i=document.createElement("style");i.id=t.hash,i.textContent=t.code,n.appendChild(i)}})}function ui(e,t){return e==null?null:String(e)}function Or(e,t,r,n){var i=e.__style;if(S||i!==t){var s=ui(t);(!S||s!==e.getAttribute("style"))&&(s==null?e.removeAttribute("style"):e.style.cssText=s),e.__style=t}return n}const ci=Symbol("is custom element"),di=Symbol("is html");function vi(e,t,r,n){var i=_i(e);S&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||i[t]!==(i[t]=r)&&(t==="loading"&&(e[nn]=r),r==null?e.removeAttribute(t):typeof r!="string"&&kr(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function re(e,t,r){var n=w,i=g;let s=S;S&&le(!1),U(null),Z(null);try{t!=="style"&&(Ot.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.tagName.toLowerCase())?kr(e).includes(t):r&&typeof r=="object")?e[t]=r:vi(e,t,r==null?r:String(r))}finally{U(n),Z(i),s&&le(!0)}}function _i(e){return e.__attributes??={[ci]:e.nodeName.includes("-"),[di]:e.namespaceURI===Xr}}var Ot=new Map;function kr(e){var t=e.getAttribute("is")||e.nodeName,r=Ot.get(t);if(r)return r;Ot.set(t,r=[]);for(var n,i=e,s=Element.prototype;s!==i;){n=Jr(i);for(var l in n)n[l].set&&r.push(l);i=jt(i)}return r}let st=!1;function hi(e){var t=st;try{return st=!1,[e(),st]}finally{st=t}}function G(e,t,r,n){var i=(r&Hr)!==0,s=(r&Gr)!==0,l=n,o=!0,a=()=>(o&&(o=!1,l=s?Qn(n):n),l),f;if(i){var u=We in e||Ht in e;f=de(e,t)?.set??(u&&t in e?b=>e[t]=b:void 0)}var d,h=!1;i?[d,h]=hi(()=>e[t]):d=e[t],d===void 0&&n!==void 0&&(d=a(),f&&(vn(),f(d)));var v;if(v=()=>{var b=e[t];return b===void 0?a():(o=!0,b)},(r&Ur)===0)return v;if(f){var _=e.$$legacy;return(function(b,C){return arguments.length>0?((!C||_||h)&&f(C?v():b),b):v()})}var m=!1,E=((r&Br)!==0?pt:Rn)(()=>(m=!1,v()));i&&j(E);var $=g;return(function(b,C){if(arguments.length>0){const Q=C?j(E):i?ge(b):b;return X(E,Q),m=!0,l!==void 0&&(l=Q),b}return ye&&m||($.f&ve)!==0?E.v:j(E)})}function mi(e){return new pi(e)}class pi{#t;#e;constructor(t){var r=new Map,n=(s,l)=>{var o=xn(l,!1,!1);return r.set(s,o),o};const i=new Proxy({...t.props||{},$$events:{}},{get(s,l){return j(r.get(l)??n(l,Reflect.get(s,l)))},has(s,l){return l===Ht?!0:(j(r.get(l)??n(l,Reflect.get(s,l))),Reflect.has(s,l))},set(s,l,o){return X(r.get(l)??n(l,o),o),Reflect.set(s,l,o)}});this.#e=(t.hydrate?li:Ar)(t.component,{target:t.target,anchor:t.anchor,props:i,context:t.context,intro:t.intro??!1,recover:t.recover}),(!t?.props?.$$host||t.sync===!1)&&D(),this.#t=i.$$events;for(const s of Object.keys(this.#e))s==="$set"||s==="$destroy"||s==="$on"||Ae(this,s,{get(){return this.#e[s]},set(l){this.#e[s]=l},enumerable:!0});this.#e.$set=s=>{Object.assign(i,s)},this.#e.$destroy=()=>{ai(this.#e)}}$set(t){this.#e.$set(t)}$on(t,r){this.#t[t]=this.#t[t]||[];const n=(...i)=>r.call(this,...i);return this.#t[t].push(n),()=>{this.#t[t]=this.#t[t].filter(i=>i!==n)}}$destroy(){this.#e.$destroy()}}let Cr;typeof HTMLElement=="function"&&(Cr=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(e,t,r){super(),this.$$ctor=e,this.$$s=t,r&&this.attachShadow({mode:"open"})}addEventListener(e,t,r){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}super.addEventListener(e,t,r)}removeEventListener(e,t,r){if(super.removeEventListener(e,t,r),this.$$c){const n=this.$$l_u.get(t);n&&(n(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(n){return i=>{const s=document.createElement("slot");n!=="default"&&(s.name=n),ce(i,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},r=bi(this);for(const n of this.$$s)n in r&&(n==="default"&&!this.$$d.children?(this.$$d.children=e(n),t.default=!0):t[n]=e(n));for(const n of this.attributes){const i=this.$$g_p(n.name);i in this.$$d||(this.$$d[i]=lt(i,n.value,this.$$p_d,"toProp"))}for(const n in this.$$p_d)!(n in this.$$d)&&this[n]!==void 0&&(this.$$d[n]=this[n],delete this[n]);this.$$c=mi({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=qn(()=>{Hn(()=>{this.$$r=!0;for(const n of Ge(this.$$c)){if(!this.$$p_d[n]?.reflect)continue;this.$$d[n]=this.$$c[n];const i=lt(n,this.$$d[n],this.$$p_d,"toAttribute");i==null?this.removeAttribute(this.$$p_d[n].attribute||n):this.setAttribute(this.$$p_d[n].attribute||n,i)}this.$$r=!1})});for(const n in this.$$l)for(const i of this.$$l[n]){const s=this.$$c.$on(n,i);this.$$l_u.set(i,s)}this.$$l={}}}attributeChangedCallback(e,t,r){this.$$r||(e=this.$$g_p(e),this.$$d[e]=lt(e,r,this.$$p_d,"toProp"),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return Ge(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function lt(e,t,r,n){const i=r[e]?.type;if(t=i==="Boolean"&&typeof t!="boolean"?t!=null:t,!n||!r[e])return t;if(n==="toAttribute")switch(i){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t??null;default:return t}else switch(i){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function bi(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function gi(e,t,r,n,i,s){let l=class extends Cr{constructor(){super(e,r,i),this.$$p_d=t}static get observedAttributes(){return Ge(t).map(o=>(t[o].attribute||o).toLowerCase())}};return Ge(t).forEach(o=>{Ae(l.prototype,o,{get(){return this.$$c&&o in this.$$c?this.$$c[o]:this.$$d[o]},set(a){a=lt(o,a,t),this.$$d[o]=a;var f=this.$$c;if(f){var u=de(f,o)?.get;u?f[o]=a:f.$set({[o]:a})}}})}),n.forEach(o=>{Ae(l.prototype,o,{get(){return this.$$c?.[o]}})}),e.element=l,l}function Pr(e){const t=e?.repoName.split("/")?.[1]||e?.repoName;if(!t)throw new Error("wrong componentPath "+e?.repoName);if(!e?.version)throw new Error("wrong version "+e?.version);const r=e?.iifePath||"main.iife.js";if(!document.getElementById(t+"-script"))try{const n=document.createElement("script");if(n.id=t+"-script",n.src=`https://cdn.jsdelivr.net/npm/${e.repoName}@${e.version}/${r}`,e?.local)n.src=`${e.local}`;else if(location.href.includes("localhost:6006")){const i=t.split("-")[0];n.src=`http://localhost:6006/webcomponents/${t.replace(i+"-","")}/${r}`}document.head.appendChild(n)}catch(n){console.warn(n)}}const xr={version:"0.61.40"};function wi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Le={},kt,Ir;function yi(){if(Ir)return kt;Ir=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,r=/^\s*/,n=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,l=/^[;\s]*/,o=/^\s+|\s+$/g,a=`
3
- `,f="/",u="*",d="",h="comment",v="declaration";kt=function(m,E){if(typeof m!="string")throw new TypeError("First argument must be a string");if(!m)return[];E=E||{};var $=1,b=1;function C(y){var p=y.match(t);p&&($+=p.length);var I=y.lastIndexOf(a);b=~I?y.length-I:b+y.length}function Q(){var y={line:$,column:b};return function(p){return p.position=new De(y),Fe(),p}}function De(y){this.start=y,this.end={line:$,column:b},this.source=E.source}De.prototype.content=m;function at(y){var p=new Error(E.source+":"+$+":"+b+": "+y);if(p.reason=y,p.filename=E.source,p.line=$,p.column=b,p.source=m,!E.silent)throw p}function Se(y){var p=y.exec(m);if(p){var I=p[0];return C(I),m=m.slice(I.length),p}}function Fe(){Se(r)}function P(y){var p;for(y=y||[];p=je();)p!==!1&&y.push(p);return y}function je(){var y=Q();if(!(f!=m.charAt(0)||u!=m.charAt(1))){for(var p=2;d!=m.charAt(p)&&(u!=m.charAt(p)||f!=m.charAt(p+1));)++p;if(p+=2,d===m.charAt(p-1))return at("End of comment missing");var I=m.slice(2,p-2);return b+=2,C(I),m=m.slice(p),b+=2,y({type:h,comment:I})}}function He(){var y=Q(),p=Se(n);if(p){if(je(),!Se(i))return at("property missing ':'");var I=Se(s),Pt=y({type:v,property:_(p[0].replace(e,d)),value:I?_(I[0].replace(e,d)):d});return Se(l),Pt}}function Ct(){var y=[];P(y);for(var p;p=He();)p!==!1&&(y.push(p),P(y));return y}return Fe(),Ct()};function _(m){return m?m.replace(o,d):d}return kt}var Mr;function Ei(){if(Mr)return Le;Mr=1;var e=Le&&Le.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(Le,"__esModule",{value:!0}),Le.default=r;var t=e(yi());function r(n,i){var s=null;if(!n||typeof n!="string")return s;var l=(0,t.default)(n),o=typeof i=="function";return l.forEach(function(a){if(a.type==="declaration"){var f=a.property,u=a.value;o?i(f,u,a):u&&(s=s||{},s[f]=u)}}),s}return Le}var $i=Ei();const Lr=wi($i);Lr.default;var Ti=$e("<div><hb-form></hb-form></div>",2),Si=$e('<div slot="header"><!></div>'),Ni=$e('<div slot="modal-footer"><!></div>'),Ai=$e('<div slot="footer"><!></div>'),Ri=$e('<div slot="close-button-label"><!></div>'),Oi=$e('<div slot="confirm-button-label"><!></div>'),ki=$e('<span><hb-dialog><div slot="body-content"><div><!></div> <!> <div><!></div></div> <!> <!> <!> <!> <!></hb-dialog></span>',2);const Ci={hash:"svelte-40i2eu",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;}'};function Dr(e,t){const r=oi(t);Wt(t,!0),fi(e,Ci);function n(c,T){t.$$host.dispatchEvent(new CustomEvent(c,{detail:T}))}let i=B(""),s=B("");ge({});let l=G(t,"id",7,""),o=G(t,"schema",23,()=>[]),a=G(t,"describedby",7,""),f=G(t,"labelledby",7,""),u=G(t,"content",7,""),d=G(t,"closelabel",7,""),h=G(t,"confirmlabel",7,""),v=G(t,"dialogclasses",7,""),_=G(t,"title",7,""),m=G(t,"backdrop",7,!0),E=G(t,"keyboard",7,!0),$=G(t,"show",7,"no"),b=B(!1);jn(()=>{$()==="yes"||$()===""?$("yes"):$("no"),typeof m()=="string"?m(m()==="true"||m()==="yes"):m()===void 0&&m(!0),typeof E()=="string"?E(E()==="true"||E()==="yes"):E()===void 0&&E(!0)}),Pr({repoName:"@htmlbricks/hb-dialog",version:xr.version}),Pr({repoName:"@htmlbricks/hb-form",version:xr.version});let C;function Q(c){$(c.show?"yes":"no"),n("modalShow",c)}function De(c){n("updateForm",c),c._valid?X(b,!0):X(b,!1),c._id=void 0,C=Object.assign({},c,{_id:l()})}function at(c){c.confirm&&C&&C._valid?n("modalFormConfirm",C):c.confirm?(n("modalFormCancel",{id:l(),error:"invalid form"}),console.error("form submit invalid")):(n("modalFormCancel",{id:l()}),console.warn("form submit cancelled"))}var Se={get id(){return l()},set id(c=""){l(c),D()},get schema(){return o()},set schema(c=[]){o(c),D()},get describedby(){return a()},set describedby(c=""){a(c),D()},get labelledby(){return f()},set labelledby(c=""){f(c),D()},get content(){return u()},set content(c=""){u(c),D()},get closelabel(){return d()},set closelabel(c=""){d(c),D()},get confirmlabel(){return h()},set confirmlabel(c=""){h(c),D()},get dialogclasses(){return v()},set dialogclasses(c=""){v(c),D()},get title(){return _()},set title(c=""){_(c),D()},get backdrop(){return m()},set backdrop(c=!0){m(c),D()},get keyboard(){return E()},set keyboard(c=!0){E(c),D()},get show(){return $()},set show(c="no"){$(c),D()}},Fe=ki(),P=K(Fe);Or(P,j(i)),oe(()=>re(P,"disable_confirm",j(b)?"no":"yes")),oe(()=>re(P,"id",l()?l()+"_modalform":"modalform"+Date.now())),oe(()=>re(P,"show",$())),oe(()=>re(P,"title",_())),oe(()=>re(P,"confirmlabel",h())),oe(()=>re(P,"content",u())),oe(()=>re(P,"closelabel",d()));var je=K(P),He=K(je),Ct=K(He);Te(Ct,t,"form-header",{}),V(He);var y=we(He,2);{var p=c=>{var T=Ti(),M=K(T);Or(M,j(s)),oe(()=>re(M,"schema",o())),re(M,"hide_submit","yes"),V(T),At("update",M,Fi=>De(Fi.detail)),ce(c,T)};Me(y,c=>{o()?.length&&c(p)})}var I=we(y,2),Pt=K(I);Te(Pt,t,"form-footer",{}),V(I),V(je);var Fr=we(je,2);{var Pi=c=>{var T=Si(),M=K(T);Te(M,t,"header",{}),V(T),ce(c,T)};Me(Fr,c=>{r.header&&c(Pi)})}var jr=we(Fr,2);{var xi=c=>{var T=Ni(),M=K(T);Te(M,t,"modal-footer",{}),V(T),ce(c,T)};Me(jr,c=>{r["modal-footer"]&&c(xi)})}var qr=we(jr,2);{var Ii=c=>{var T=Ai(),M=K(T);Te(M,t,"footer",{}),V(T),ce(c,T)};Me(qr,c=>{r.footer&&c(Ii)})}var Yr=we(qr,2);{var Mi=c=>{var T=Ri(),M=K(T);Te(M,t,"close-button-label",{}),V(T),ce(c,T)};Me(Yr,c=>{r["close-button-label"]&&c(Mi)})}var Li=we(Yr,2);{var Di=c=>{var T=Oi(),M=K(T);Te(M,t,"confirm-button-label",{}),V(T),ce(c,T)};Me(Li,c=>{r["confirm-button-label"]&&c(Di)})}return V(P),V(Fe),At("modalConfirm",P,c=>{at(c.detail)}),At("modalShow",P,c=>{Q(c.detail)}),ce(e,Fe),Xt(Se)}customElements.define("hb-dialogform",gi(Dr,{id:{},schema:{},describedby:{},labelledby:{},content:{},closelabel:{},confirmlabel:{},dialogclasses:{},title:{},backdrop:{},keyboard:{},show:{}},["form-header","form-footer","header","modal-footer","footer","close-button-label","confirm-button-label"],[],!0)),xt.Component=Dr,Object.defineProperty(xt,Symbol.toStringTag,{value:"Module"})})(this.dialogform=this.dialogform||{});
1
+ (function(Lt){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const Wn=1,Gn=4,Vn=8,Xn=16,zn=1,Kn=2,Dt="[",It="[!",Mt="]",Re={},N=Symbol(),Jn="http://www.w3.org/1999/xhtml",jt=!1;var Ft=Array.isArray,Zn=Array.prototype.indexOf,Qn=Array.from,Ge=Object.keys,Ae=Object.defineProperty,de=Object.getOwnPropertyDescriptor,er=Object.getOwnPropertyDescriptors,tr=Object.prototype,nr=Array.prototype,qt=Object.getPrototypeOf,Yt=Object.isExtensible;function Bt(e){for(var t=0;t<e.length;t++)e[t]()}function rr(){var e,t,n=new Promise((r,i)=>{e=r,t=i});return{promise:n,resolve:e,reject:t}}const I=2,ut=4,ft=8,Oe=16,ee=32,re=64,Ut=128,q=256,Ve=512,O=1024,Y=2048,ie=4096,se=8192,ve=16384,ct=32768,dt=65536,Ht=1<<17,ir=1<<18,Ce=1<<19,sr=1<<20,vt=1<<21,ht=1<<22,he=1<<23,Xe=Symbol("$state"),Wt=Symbol("legacy props"),lr=Symbol(""),_t=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},or=3,ze=8;function ar(){throw new Error("https://svelte.dev/e/await_outside_boundary")}function ur(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function fr(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function cr(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function dr(e){throw new Error("https://svelte.dev/e/effect_orphan")}function vr(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function hr(){throw new Error("https://svelte.dev/e/hydration_failed")}function _r(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function mr(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function gr(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function br(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Ke(e){console.warn("https://svelte.dev/e/hydration_mismatch")}let S=!1;function le(e){S=e}let R;function _e(e){if(e===null)throw Ke(),Re;return R=e}function Je(){return _e(Pe(R))}function G(e){if(S){if(Pe(R)!==null)throw Ke(),Re;R=e}}function pr(){for(var e=0,t=R;;){if(t.nodeType===ze){var n=t.data;if(n===Mt){if(e===0)return t;e-=1}else(n===Dt||n===It)&&(e+=1)}var r=Pe(t);t.remove(),t=r}}function wr(e){if(!e||e.nodeType!==ze)throw Ke(),Re;return e.data}function Gt(e){return e===this.v}function yr(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Vt(e){return!yr(e,this.v)}let Er=!1,V=null;function Ze(e){V=e}function Xt(e,t=!1,n){V={p:V,c:null,e:null,s:e,x:null,l:null}}function zt(e){var t=V,n=t.e;if(n!==null){t.e=null;for(var r of n)dn(r)}return e!==void 0&&(t.x=e),V=t.p,e??{}}function Kt(){return!0}const $r=new WeakMap;function Tr(e){var t=p;if(t===null)return w.f|=he,e;if((t.f&ct)===0){if((t.f&Ut)===0)throw!t.parent&&e instanceof Error&&Jt(e),e;t.b.error(e)}else mt(e,t)}function mt(e,t){for(;t!==null;){if((t.f&Ut)!==0)try{t.b.error(e);return}catch(n){e=n}t=t.parent}throw e instanceof Error&&Jt(e),e}function Jt(e){const t=$r.get(e);t&&(Ae(e,"message",{value:t.message}),Ae(e,"stack",{value:t.stack}))}let Ye=[],gt=[];function Zt(){var e=Ye;Ye=[],Bt(e)}function Sr(){var e=gt;gt=[],Bt(e)}function Nr(e){Ye.length===0&&queueMicrotask(Zt),Ye.push(e)}function Rr(){Ye.length>0&&Zt(),gt.length>0&&Sr()}function Ar(){const e=p.b;return e===null&&ar(),e}function bt(e){var t=I|Y,n=w!==null&&(w.f&I)!==0?w:null;return p===null||n!==null&&(n.f&q)!==0?t|=q:p.f|=Ce,{ctx:V,deps:null,effects:null,equals:Gt,f:t,fn:e,reactions:null,rv:0,v:N,wv:0,parent:n??p,ac:null}}function Or(e,t){let n=p;n===null&&ur();var r=n.b,i=void 0,s=Et(N),l=null,o=!w;return Wr(()=>{try{var a=e();l&&Promise.resolve(a).catch(()=>{})}catch(v){a=Promise.reject(v)}var u=()=>a;i=l?.then(u,u)??Promise.resolve(a),l=i;var f=A,d=r.is_pending();o&&(r.update_pending_count(1),d||f.increment());const h=(v,_=void 0)=>{l=null,d||f.activate(),_?_!==_t&&(s.f|=he,$t(s,_)):((s.f&he)!==0&&(s.f^=he),$t(s,v)),o&&(r.update_pending_count(-1),d||f.decrement()),tn()};if(i.then(h,v=>h(null,v||"unknown")),f)return()=>{queueMicrotask(()=>f.neuter())}}),new Promise(a=>{function u(f){function d(){f===i?a(s):u(i)}f.then(d,d)}u(i)})}function Cr(e){const t=bt(e);return t.equals=Vt,t}function Qt(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)ue(t[n])}}function kr(e){for(var t=e.parent;t!==null;){if((t.f&I)===0)return t;t=t.parent}return null}function pt(e){var t,n=p;Z(kr(e));try{Qt(e),t=Sn(e)}finally{Z(n)}return t}function en(e){var t=pt(e);if(e.equals(t)||(e.v=t,e.wv=$n()),!ye){var n=(fe||(e.f&q)!==0)&&e.deps!==null?ie:O;x(e,n)}}function Pr(e,t,n){const r=bt;if(t.length===0){n(e.map(r));return}var i=A,s=p,l=xr(),o=Ar();Promise.all(t.map(a=>Or(a))).then(a=>{i?.activate(),l();try{n([...e.map(r),...a])}catch(u){(s.f&ve)===0&&mt(u,s)}i?.deactivate(),tn()}).catch(a=>{o.error(a)})}function xr(){var e=p,t=w,n=V,r=A;return function(){Z(e),U(t),Ze(n),r?.activate()}}function tn(){Z(null),U(null),Ze(null)}const wt=new Set;let A=null,nn=new Set,Qe=[];function rn(){const e=Qe.shift();Qe.length>0&&queueMicrotask(rn),e()}let me=[],et=null,yt=!1,tt=!1;class ge{current=new Map;#t=new Map;#e=new Set;#n=0;#u=null;#f=!1;#i=[];#l=[];#s=[];#r=[];#o=[];#c=[];#d=[];skipped_effects=new Set;process(t){me=[];for(const i of t)this.#h(i);if(this.#i.length===0&&this.#n===0){this.#v();var n=this.#s,r=this.#r;this.#s=[],this.#r=[],this.#o=[],A=null,ln(n),ln(r),A===null?A=this:wt.delete(this),this.#u?.resolve()}else this.#a(this.#s),this.#a(this.#r),this.#a(this.#o);for(const i of this.#i)Le(i);for(const i of this.#l)Le(i);this.#i=[],this.#l=[]}#h(t){t.f^=O;for(var n=t.first;n!==null;){var r=n.f,i=(r&(ee|re))!==0,s=i&&(r&O)!==0,l=s||(r&se)!==0||this.skipped_effects.has(n);if(!l&&n.fn!==null){if(i)n.f^=O;else if((r&ut)!==0)this.#r.push(n);else if((r&O)===0)if((r&ht)!==0){var o=n.b?.is_pending()?this.#l:this.#i;o.push(n)}else rt(n)&&((n.f&Oe)!==0&&this.#o.push(n),Le(n));var a=n.first;if(a!==null){n=a;continue}}var u=n.parent;for(n=n.next;n===null&&u!==null;)n=u.next,u=u.parent}}#a(t){for(const n of t)((n.f&Y)!==0?this.#c:this.#d).push(n),x(n,O);t.length=0}capture(t,n){this.#t.has(t)||this.#t.set(t,n),this.current.set(t,t.v)}activate(){A=this}deactivate(){A=null;for(const t of nn)if(nn.delete(t),t(),A!==null)break}neuter(){this.#f=!0}flush(){me.length>0?sn():this.#v(),A===this&&(this.#n===0&&wt.delete(this),this.deactivate())}#v(){if(!this.#f)for(const t of this.#e)t();this.#e.clear()}increment(){this.#n+=1}decrement(){if(this.#n-=1,this.#n===0){for(const t of this.#c)x(t,Y),ke(t);for(const t of this.#d)x(t,ie),ke(t);this.#s=[],this.#r=[],this.flush()}else this.deactivate()}add_callback(t){this.#e.add(t)}settled(){return(this.#u??=rr()).promise}static ensure(){if(A===null){const t=A=new ge;wt.add(A),tt||ge.enqueue(()=>{A===t&&t.flush()})}return A}static enqueue(t){Qe.length===0&&queueMicrotask(rn),Qe.unshift(t)}}function M(e){var t=tt;tt=!0;try{for(var n;;){if(Rr(),me.length===0&&(A?.flush(),me.length===0))return et=null,n;sn()}}finally{tt=t}}function sn(){var e=xe;yt=!0;try{var t=0;for(pn(!0);me.length>0;){var n=ge.ensure();if(t++>1e3){var r,i;Lr()}n.process(me),oe.clear()}}finally{yt=!1,pn(e),et=null}}function Lr(){try{vr()}catch(e){mt(e,et)}}let be=null;function ln(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if((r.f&(ve|se))===0&&rt(r)&&(be=[],Le(r),r.deps===null&&r.first===null&&r.nodes_start===null&&(r.teardown===null&&r.ac===null?_n(r):r.fn=null),be?.length>0)){oe.clear();for(const i of be)Le(i);be=[]}}be=null}}function ke(e){for(var t=et=e;t.parent!==null;){t=t.parent;var n=t.f;if(yt&&t===p&&(n&Oe)!==0)return;if((n&(re|ee))!==0){if((n&O)===0)return;t.f^=O}}me.push(t)}const oe=new Map;function Et(e,t){var n={f:0,v:e,reactions:null,equals:Gt,rv:0,wv:0};return n}function B(e,t){const n=Et(e);return Zr(n),n}function Dr(e,t=!1,n=!0){const r=Et(e);return t||(r.equals=Vt),r}function X(e,t,n=!1){w!==null&&(!J||(w.f&Ht)!==0)&&Kt()&&(w.f&(I|Oe|ht|Ht))!==0&&!te?.includes(e)&&br();let r=n?pe(t):t;return $t(e,r)}function $t(e,t){if(!e.equals(t)){var n=e.v;ye?oe.set(e,t):oe.set(e,n),e.v=t;var r=ge.ensure();r.capture(e,n),(e.f&I)!==0&&((e.f&Y)!==0&&pt(e),x(e,(e.f&q)===0?O:ie)),e.wv=$n(),on(e,Y),p!==null&&(p.f&O)!==0&&(p.f&(ee|re))===0&&(H===null?Qr([e]):H.push(e))}return t}function Tt(e){X(e,e.v+1)}function on(e,t){var n=e.reactions;if(n!==null)for(var r=n.length,i=0;i<r;i++){var s=n[i],l=s.f,o=(l&Y)===0;o&&x(s,t),(l&I)!==0?on(s,ie):o&&((l&Oe)!==0&&be!==null&&be.push(s),ke(s))}}function pe(e){if(typeof e!="object"||e===null||Xe in e)return e;const t=qt(e);if(t!==tr&&t!==nr)return e;var n=new Map,r=Ft(e),i=B(0),s=Ee,l=o=>{if(Ee===s)return o();var a=w,u=Ee;U(null),En(s);var f=o();return U(a),En(u),f};return r&&n.set("length",B(e.length)),new Proxy(e,{defineProperty(o,a,u){(!("value"in u)||u.configurable===!1||u.enumerable===!1||u.writable===!1)&&mr();var f=n.get(a);return f===void 0?f=l(()=>{var d=B(u.value);return n.set(a,d),d}):X(f,u.value,!0),!0},deleteProperty(o,a){var u=n.get(a);if(u===void 0){if(a in o){const f=l(()=>B(N));n.set(a,f),Tt(i)}}else X(u,N),Tt(i);return!0},get(o,a,u){if(a===Xe)return e;var f=n.get(a),d=a in o;if(f===void 0&&(!d||de(o,a)?.writable)&&(f=l(()=>{var v=pe(d?o[a]:N),_=B(v);return _}),n.set(a,f)),f!==void 0){var h=F(f);return h===N?void 0:h}return Reflect.get(o,a,u)},getOwnPropertyDescriptor(o,a){var u=Reflect.getOwnPropertyDescriptor(o,a);if(u&&"value"in u){var f=n.get(a);f&&(u.value=F(f))}else if(u===void 0){var d=n.get(a),h=d?.v;if(d!==void 0&&h!==N)return{enumerable:!0,configurable:!0,value:h,writable:!0}}return u},has(o,a){if(a===Xe)return!0;var u=n.get(a),f=u!==void 0&&u.v!==N||Reflect.has(o,a);if(u!==void 0||p!==null&&(!f||de(o,a)?.writable)){u===void 0&&(u=l(()=>{var h=f?pe(o[a]):N,v=B(h);return v}),n.set(a,u));var d=F(u);if(d===N)return!1}return f},set(o,a,u,f){var d=n.get(a),h=a in o;if(r&&a==="length")for(var v=u;v<d.v;v+=1){var _=n.get(v+"");_!==void 0?X(_,N):v in o&&(_=l(()=>B(N)),n.set(v+"",_))}if(d===void 0)(!h||de(o,a)?.writable)&&(d=l(()=>B(void 0)),X(d,pe(u)),n.set(a,d));else{h=d.v!==N;var m=l(()=>pe(u));X(d,m)}var E=Reflect.getOwnPropertyDescriptor(o,a);if(E?.set&&E.set.call(f,u),!h){if(r&&typeof a=="string"){var $=n.get("length"),b=Number(a);Number.isInteger(b)&&b>=$.v&&X($,b+1)}Tt(i)}return!0},ownKeys(o){F(i);var a=Reflect.ownKeys(o).filter(d=>{var h=n.get(d);return h===void 0||h.v!==N});for(var[u,f]of n)f.v!==N&&!(u in o)&&a.push(u);return a},setPrototypeOf(){gr()}})}var an,un,fn,cn;function St(){if(an===void 0){an=window,un=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;fn=de(t,"firstChild").get,cn=de(t,"nextSibling").get,Yt(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),Yt(n)&&(n.__t=void 0)}}function nt(e=""){return document.createTextNode(e)}function Be(e){return fn.call(e)}function Pe(e){return cn.call(e)}function z(e,t){if(!S)return Be(e);var n=Be(R);return n===null&&(n=R.appendChild(nt())),_e(n),n}function we(e,t=1,n=!1){let r=S?R:e;for(var i;t--;)i=r,r=Pe(r);if(!S)return r;if(n&&r?.nodeType!==or){var s=nt();return r===null?i?.after(s):r.before(s),_e(s),s}return _e(r),r}function Ir(e){e.textContent=""}function Mr(){return!1}function Nt(e){var t=w,n=p;U(null),Z(null);try{return e()}finally{U(t),Z(n)}}function jr(e){p===null&&w===null&&dr(),w!==null&&(w.f&q)!==0&&p===null&&cr(),ye&&fr()}function Fr(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function K(e,t,n,r=!0){var i=p;i!==null&&(i.f&se)!==0&&(e|=se);var s={ctx:V,deps:null,nodes_start:null,nodes_end:null,f:e|Y,first:null,fn:t,last:null,next:null,parent:i,b:i&&i.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(n)try{Le(s),s.f|=ct}catch(a){throw ue(s),a}else t!==null&&ke(s);if(r){var l=s;if(n&&l.deps===null&&l.teardown===null&&l.nodes_start===null&&l.first===l.last&&(l.f&Ce)===0&&(l=l.first),l!==null&&(l.parent=i,i!==null&&Fr(l,i),w!==null&&(w.f&I)!==0&&(e&re)===0)){var o=w;(o.effects??=[]).push(l)}}return s}function qr(e){const t=K(ft,null,!1);return x(t,O),t.teardown=e,t}function Yr(e){jr();var t=p.f,n=!w&&(t&ee)!==0&&(t&ct)===0;if(n){var r=V;(r.e??=[]).push(e)}else return dn(e)}function dn(e){return K(ut|sr,e,!1)}function Br(e){ge.ensure();const t=K(re|Ce,e,!0);return()=>{ue(t)}}function Ur(e){ge.ensure();const t=K(re|Ce,e,!0);return(n={})=>new Promise(r=>{n.outro?mn(t,()=>{ue(t),r(void 0)}):(ue(t),r(void 0))})}function Hr(e){return K(ut,e,!1)}function Wr(e){return K(ht|Ce,e,!0)}function Gr(e,t=0){return K(ft|t,e,!0)}function ae(e,t=[],n=[]){Pr(t,n,r=>{K(ft,()=>e(...r.map(F)),!0)})}function Vr(e,t=0){var n=K(Oe|t,e,!0);return n}function Rt(e,t=!0){return K(ee|Ce,e,!0,t)}function vn(e){var t=e.teardown;if(t!==null){const n=ye,r=w;wn(!0),U(null);try{t.call(null)}finally{wn(n),U(r)}}}function hn(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const i=n.ac;i!==null&&Nt(()=>{i.abort(_t)});var r=n.next;(n.f&re)!==0?n.parent=null:ue(n,t),n=r}}function Xr(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&ee)===0&&ue(t),t=n}}function ue(e,t=!0){var n=!1;(t||(e.f&ir)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(zr(e.nodes_start,e.nodes_end),n=!0),hn(e,t&&!n),it(e,0),x(e,ve);var r=e.transitions;if(r!==null)for(const s of r)s.stop();vn(e);var i=e.parent;i!==null&&i.first!==null&&_n(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function zr(e,t){for(;e!==null;){var n=e===t?null:Pe(e);e.remove(),e=n}}function _n(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 mn(e,t){var n=[];gn(e,n,!0),Kr(n,()=>{ue(e),t&&t()})}function Kr(e,t){var n=e.length;if(n>0){var r=()=>--n||t();for(var i of e)i.out(r)}else t()}function gn(e,t,n){if((e.f&se)===0){if(e.f^=se,e.transitions!==null)for(const l of e.transitions)(l.is_global||n)&&t.push(l);for(var r=e.first;r!==null;){var i=r.next,s=(r.f&dt)!==0||(r.f&ee)!==0;gn(r,t,s?n:!1),r=i}}}function Jr(e){bn(e,!0)}function bn(e,t){if((e.f&se)!==0){e.f^=se,(e.f&O)===0&&(x(e,Y),ke(e));for(var n=e.first;n!==null;){var r=n.next,i=(n.f&dt)!==0||(n.f&ee)!==0;bn(n,i?t:!1),n=r}if(e.transitions!==null)for(const s of e.transitions)(s.is_global||t)&&s.in()}}let xe=!1;function pn(e){xe=e}let ye=!1;function wn(e){ye=e}let w=null,J=!1;function U(e){w=e}let p=null;function Z(e){p=e}let te=null;function Zr(e){w!==null&&(te===null?te=[e]:te.push(e))}let C=null,j=0,H=null;function Qr(e){H=e}let yn=1,Ue=0,Ee=Ue;function En(e){Ee=e}let fe=!1;function $n(){return++yn}function rt(e){var t=e.f;if((t&Y)!==0)return!0;if((t&ie)!==0){var n=e.deps,r=(t&q)!==0;if(n!==null){var i,s,l=(t&Ve)!==0,o=r&&p!==null&&!fe,a=n.length;if((l||o)&&(p===null||(p.f&ve)===0)){var u=e,f=u.parent;for(i=0;i<a;i++)s=n[i],(l||!s?.reactions?.includes(u))&&(s.reactions??=[]).push(u);l&&(u.f^=Ve),o&&f!==null&&(f.f&q)===0&&(u.f^=q)}for(i=0;i<a;i++)if(s=n[i],rt(s)&&en(s),s.wv>e.wv)return!0}(!r||p!==null&&!fe)&&x(e,O)}return!1}function Tn(e,t,n=!0){var r=e.reactions;if(r!==null&&!te?.includes(e))for(var i=0;i<r.length;i++){var s=r[i];(s.f&I)!==0?Tn(s,t,!1):t===s&&(n?x(s,Y):(s.f&O)!==0&&x(s,ie),ke(s))}}function Sn(e){var t=C,n=j,r=H,i=w,s=fe,l=te,o=V,a=J,u=Ee,f=e.f;C=null,j=0,H=null,fe=(f&q)!==0&&(J||!xe||w===null),w=(f&(ee|re))===0?e:null,te=null,Ze(e.ctx),J=!1,Ee=++Ue,e.ac!==null&&(Nt(()=>{e.ac.abort(_t)}),e.ac=null);try{e.f|=vt;var d=e.fn,h=d(),v=e.deps;if(C!==null){var _;if(it(e,j),v!==null&&j>0)for(v.length=j+C.length,_=0;_<C.length;_++)v[j+_]=C[_];else e.deps=v=C;if(!fe||(f&I)!==0&&e.reactions!==null)for(_=j;_<v.length;_++)(v[_].reactions??=[]).push(e)}else v!==null&&j<v.length&&(it(e,j),v.length=j);if(Kt()&&H!==null&&!J&&v!==null&&(e.f&(I|ie|Y))===0)for(_=0;_<H.length;_++)Tn(H[_],e);return i!==null&&i!==e&&(Ue++,H!==null&&(r===null?r=H:r.push(...H))),(e.f&he)!==0&&(e.f^=he),h}catch(m){return Tr(m)}finally{e.f^=vt,C=t,j=n,H=r,w=i,fe=s,te=l,Ze(o),J=a,Ee=u}}function ei(e,t){let n=t.reactions;if(n!==null){var r=Zn.call(n,e);if(r!==-1){var i=n.length-1;i===0?n=t.reactions=null:(n[r]=n[i],n.pop())}}n===null&&(t.f&I)!==0&&(C===null||!C.includes(t))&&(x(t,ie),(t.f&(q|Ve))===0&&(t.f^=Ve),Qt(t),it(t,0))}function it(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)ei(e,n[r])}function Le(e){var t=e.f;if((t&ve)===0){x(e,O);var n=p,r=xe;p=e,xe=!0;try{(t&Oe)!==0?Xr(e):hn(e),vn(e);var i=Sn(e);e.teardown=typeof i=="function"?i:null,e.wv=yn;var s;jt&&Er&&(e.f&Y)!==0&&e.deps}finally{xe=r,p=n}}}function F(e){var t=e.f,n=(t&I)!==0;if(w!==null&&!J){var r=p!==null&&(p.f&ve)!==0;if(!r&&!te?.includes(e)){var i=w.deps;if((w.f&vt)!==0)e.rv<Ue&&(e.rv=Ue,C===null&&i!==null&&i[j]===e?j++:C===null?C=[e]:(!fe||!C.includes(e))&&C.push(e));else{(w.deps??=[]).push(e);var s=e.reactions;s===null?e.reactions=[w]:s.includes(w)||s.push(w)}}}else if(n&&e.deps===null&&e.effects===null){var l=e,o=l.parent;o!==null&&(o.f&q)===0&&(l.f^=q)}if(ye){if(oe.has(e))return oe.get(e);if(n){l=e;var a=l.v;return((l.f&O)===0&&l.reactions!==null||Nn(l))&&(a=pt(l)),oe.set(l,a),a}}else n&&(l=e,rt(l)&&en(l));if((e.f&he)!==0)throw e.v;return e.v}function Nn(e){if(e.v===N)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(oe.has(t)||(t.f&I)!==0&&Nn(t))return!0;return!1}function ti(e){var t=J;try{return J=!0,e()}finally{J=t}}const ni=-7169;function x(e,t){e.f=e.f&ni|t}const ri=new Set,Rn=new Set;function ii(e,t,n,r={}){function i(s){if(r.capture||He.call(t,s),!s.cancelBubble)return Nt(()=>n?.call(this,s))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?Nr(()=>{t.addEventListener(e,i,r)}):t.addEventListener(e,i,r),i}function At(e,t,n,r,i){var s={capture:r,passive:i},l=ii(e,t,n,s);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&qr(()=>{t.removeEventListener(e,l,s)})}let An=null;function He(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],s=i[0]||e.target;An=e;var l=0,o=An===e&&e.__root;if(o){var a=i.indexOf(o);if(a!==-1&&(t===document||t===window)){e.__root=t;return}var u=i.indexOf(t);if(u===-1)return;a<=u&&(l=a)}if(s=i[l]||e.target,s!==t){Ae(e,"currentTarget",{configurable:!0,get(){return s||n}});var f=w,d=p;U(null),Z(null);try{for(var h,v=[];s!==null;){var _=s.assignedSlot||s.parentNode||s.host||null;try{var m=s["__"+r];if(m!=null&&(!s.disabled||e.target===s))if(Ft(m)){var[E,...$]=m;E.apply(s,[e,...$])}else m.call(s,e)}catch(b){h?v.push(b):h=b}if(e.cancelBubble||_===t||_===null)break;s=_}if(h){for(let b of v)queueMicrotask(()=>{throw b});throw h}}finally{e.__root=t,delete e.currentTarget,U(f),Z(d)}}}function si(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function st(e,t){var n=p;n.nodes_start===null&&(n.nodes_start=e,n.nodes_end=t)}function $e(e,t){var n=(t&zn)!==0,r=(t&Kn)!==0,i,s=!e.startsWith("<!>");return()=>{if(S)return st(R,null),R;i===void 0&&(i=si(s?e:"<!>"+e),n||(i=Be(i)));var l=r||un?document.importNode(i,!0):i.cloneNode(!0);if(n){var o=Be(l),a=l.lastChild;st(o,a)}else st(l,l);return l}}function ce(e,t){if(S){p.nodes_end=R,Je();return}e!==null&&e.before(t)}const li=["touchstart","touchmove"];function oi(e){return li.includes(e)}function On(e,t){return Cn(e,t)}function ai(e,t){St(),t.intro=t.intro??!1;const n=t.target,r=S,i=R;try{for(var s=Be(n);s&&(s.nodeType!==ze||s.data!==Dt);)s=Pe(s);if(!s)throw Re;le(!0),_e(s),Je();const l=Cn(e,{...t,anchor:s});if(R===null||R.nodeType!==ze||R.data!==Mt)throw Ke(),Re;return le(!1),l}catch(l){if(l instanceof Error&&l.message.split(`
2
+ `).some(o=>o.startsWith("https://svelte.dev/e/")))throw l;return l!==Re&&console.warn("Failed to hydrate: ",l),t.recover===!1&&hr(),St(),Ir(n),le(!1),On(e,t)}finally{le(r),_e(i)}}const De=new Map;function Cn(e,{target:t,anchor:n,props:r={},events:i,context:s,intro:l=!0}){St();var o=new Set,a=d=>{for(var h=0;h<d.length;h++){var v=d[h];if(!o.has(v)){o.add(v);var _=oi(v);t.addEventListener(v,He,{passive:_});var m=De.get(v);m===void 0?(document.addEventListener(v,He,{passive:_}),De.set(v,1)):De.set(v,m+1)}}};a(Qn(ri)),Rn.add(a);var u=void 0,f=Ur(()=>{var d=n??t.appendChild(nt());return Rt(()=>{if(s){Xt({});var h=V;h.c=s}i&&(r.$$events=i),S&&st(d,null),u=e(d,r)||{},S&&(p.nodes_end=R),s&&zt()}),()=>{for(var h of o){t.removeEventListener(h,He);var v=De.get(h);--v===0?(document.removeEventListener(h,He),De.delete(h)):De.set(h,v)}Rn.delete(a),d!==n&&d.parentNode?.removeChild(d)}});return Ot.set(u,f),u}let Ot=new WeakMap;function ui(e,t){const n=Ot.get(e);return n?(Ot.delete(e),n(t)):Promise.resolve()}function Ie(e,t,n=!1){S&&Je();var r=e,i=null,s=null,l=N,o=n?dt:0,a=!1;const u=(v,_=!0)=>{a=!0,h(_,v)};var f=null;function d(){f!==null&&(f.lastChild.remove(),r.before(f),f=null);var v=l?i:s,_=l?s:i;v&&Jr(v),_&&mn(_,()=>{l?s=null:i=null})}const h=(v,_)=>{if(l===(l=v))return;let m=!1;if(S){const je=wr(r)===It;!!l===je&&(r=pr(),_e(r),le(!1),m=!0)}var E=Mr(),$=r;if(E&&(f=document.createDocumentFragment(),f.append($=nt())),l?i??=_&&Rt(()=>_($)):s??=_&&Rt(()=>_($)),E){var b=A,k=l?i:s,Q=l?s:i;k&&b.skipped_effects.delete(k),Q&&b.skipped_effects.add(Q),b.add_callback(d)}else d();m&&le(!0)};Vr(()=>{a=!1,t(u),a||h(null,null)},o),S&&(r=R)}function Te(e,t,n,r,i){S&&Je();var s=t.$$slots?.[n],l=!1;s===!0&&(s=t[n==="default"?"children":n],l=!0),s===void 0||s(e,l?()=>r:r)}function fi(e){const t={};e.children&&(t.default=!0);for(const n in e.$$slots)t[n]=!0;return t}function ci(e,t){Hr(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector("#"+t.hash)){const i=document.createElement("style");i.id=t.hash,i.textContent=t.code,r.appendChild(i)}})}function di(e,t){return e==null?null:String(e)}function kn(e,t,n,r){var i=e.__style;if(S||i!==t){var s=di(t);(!S||s!==e.getAttribute("style"))&&(s==null?e.removeAttribute("style"):e.style.cssText=s),e.__style=t}return r}const vi=Symbol("is custom element"),hi=Symbol("is html");function _i(e,t,n,r){var i=mi(e);S&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||i[t]!==(i[t]=n)&&(t==="loading"&&(e[lr]=n),n==null?e.removeAttribute(t):typeof n!="string"&&Pn(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function ne(e,t,n){var r=w,i=p;let s=S;S&&le(!1),U(null),Z(null);try{t!=="style"&&(Ct.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.tagName.toLowerCase())?Pn(e).includes(t):n&&typeof n=="object")?e[t]=n:_i(e,t,n==null?n:String(n))}finally{U(r),Z(i),s&&le(!0)}}function mi(e){return e.__attributes??={[vi]:e.nodeName.includes("-"),[hi]:e.namespaceURI===Jn}}var Ct=new Map;function Pn(e){var t=e.getAttribute("is")||e.nodeName,n=Ct.get(t);if(n)return n;Ct.set(t,n=[]);for(var r,i=e,s=Element.prototype;s!==i;){r=er(i);for(var l in r)r[l].set&&n.push(l);i=qt(i)}return n}let lt=!1;function gi(e){var t=lt;try{return lt=!1,[e(),lt]}finally{lt=t}}function W(e,t,n,r){var i=(n&Vn)!==0,s=(n&Xn)!==0,l=r,o=!0,a=()=>(o&&(o=!1,l=s?ti(r):r),l),u;if(i){var f=Xe in e||Wt in e;u=de(e,t)?.set??(f&&t in e?b=>e[t]=b:void 0)}var d,h=!1;i?[d,h]=gi(()=>e[t]):d=e[t],d===void 0&&r!==void 0&&(d=a(),u&&(_r(),u(d)));var v;if(v=()=>{var b=e[t];return b===void 0?a():(o=!0,b)},(n&Gn)===0)return v;if(u){var _=e.$$legacy;return(function(b,k){return arguments.length>0?((!k||_||h)&&u(k?v():b),b):v()})}var m=!1,E=((n&Wn)!==0?bt:Cr)(()=>(m=!1,v()));i&&F(E);var $=p;return(function(b,k){if(arguments.length>0){const Q=k?F(E):i?pe(b):b;return X(E,Q),m=!0,l!==void 0&&(l=Q),b}return ye&&m||($.f&ve)!==0?E.v:F(E)})}function bi(e){return new pi(e)}class pi{#t;#e;constructor(t){var n=new Map,r=(s,l)=>{var o=Dr(l,!1,!1);return n.set(s,o),o};const i=new Proxy({...t.props||{},$$events:{}},{get(s,l){return F(n.get(l)??r(l,Reflect.get(s,l)))},has(s,l){return l===Wt?!0:(F(n.get(l)??r(l,Reflect.get(s,l))),Reflect.has(s,l))},set(s,l,o){return X(n.get(l)??r(l,o),o),Reflect.set(s,l,o)}});this.#e=(t.hydrate?ai:On)(t.component,{target:t.target,anchor:t.anchor,props:i,context:t.context,intro:t.intro??!1,recover:t.recover}),(!t?.props?.$$host||t.sync===!1)&&M(),this.#t=i.$$events;for(const s of Object.keys(this.#e))s==="$set"||s==="$destroy"||s==="$on"||Ae(this,s,{get(){return this.#e[s]},set(l){this.#e[s]=l},enumerable:!0});this.#e.$set=s=>{Object.assign(i,s)},this.#e.$destroy=()=>{ui(this.#e)}}$set(t){this.#e.$set(t)}$on(t,n){this.#t[t]=this.#t[t]||[];const r=(...i)=>n.call(this,...i);return this.#t[t].push(r),()=>{this.#t[t]=this.#t[t].filter(i=>i!==r)}}$destroy(){this.#e.$destroy()}}let xn;typeof HTMLElement=="function"&&(xn=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(e,t,n){super(),this.$$ctor=e,this.$$s=t,n&&this.attachShadow({mode:"open"})}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=document.createElement("slot");r!=="default"&&(s.name=r),ce(i,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},n=wi(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]=ot(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=bi({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=Br(()=>{Gr(()=>{this.$$r=!0;for(const r of Ge(this.$$c)){if(!this.$$p_d[r]?.reflect)continue;this.$$d[r]=this.$$c[r];const i=ot(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]=ot(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 Ge(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function ot(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 wi(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}function yi(e,t,n,r,i,s){let l=class extends xn{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return Ge(t).map(o=>(t[o].attribute||o).toLowerCase())}};return Ge(t).forEach(o=>{Ae(l.prototype,o,{get(){return this.$$c&&o in this.$$c?this.$$c[o]:this.$$d[o]},set(a){a=ot(o,a,t),this.$$d[o]=a;var u=this.$$c;if(u){var f=de(u,o)?.get;f?u[o]=a:u.$set({[o]:a})}}})}),r.forEach(o=>{Ae(l.prototype,o,{get(){return this.$$c?.[o]}})}),e.element=l,l}function Ei(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Se={},Ln;function $i(){if(Ln)return Se;Ln=1,Object.defineProperty(Se,"__esModule",{value:!0}),Se.LanguageTranslator=void 0,Se.getChildStyleToPass=e,Se.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(h){return Object.keys(r).includes(h.name)}))===null||l===void 0)&&l.length))for(var a=function(h){var v=i?.filter(function(_){return _.name===h&&_.defaultValue!==r[h]});v&&(o+="".concat(h,":").concat(r[h],";"))},u=0,f=Object.keys(r);u<f.length;u++){var d=f[u];a(d)}}catch(h){console.error("error getting child style to pass",h)}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(u){console.warn(u)}}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,a,u="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)&&(u=(a=(o=navigator.languages[0])===null||o===void 0?void 0:o.split("-")[0])===null||a===void 0?void 0:a.toLowerCase()),u},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="",u=r.getDefaultLang();if(!l||u!==l){var f=s?.[u];f?.[i]&&(a=f[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 Se.LanguageTranslator=n,Se}var Dn=$i();const In={version:"0.61.42"};var Me={},kt,Mn;function Ti(){if(Mn)return kt;Mn=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,l=/^[;\s]*/,o=/^\s+|\s+$/g,a=`
3
+ `,u="/",f="*",d="",h="comment",v="declaration";kt=function(m,E){if(typeof m!="string")throw new TypeError("First argument must be a string");if(!m)return[];E=E||{};var $=1,b=1;function k(y){var g=y.match(t);g&&($+=g.length);var L=y.lastIndexOf(a);b=~L?y.length-L:b+y.length}function Q(){var y={line:$,column:b};return function(g){return g.position=new je(y),Fe(),g}}function je(y){this.start=y,this.end={line:$,column:b},this.source=E.source}je.prototype.content=m;function at(y){var g=new Error(E.source+":"+$+":"+b+": "+y);if(g.reason=y,g.filename=E.source,g.line=$,g.column=b,g.source=m,!E.silent)throw g}function Ne(y){var g=y.exec(m);if(g){var L=g[0];return k(L),m=m.slice(L.length),g}}function Fe(){Ne(n)}function P(y){var g;for(y=y||[];g=qe();)g!==!1&&y.push(g);return y}function qe(){var y=Q();if(!(u!=m.charAt(0)||f!=m.charAt(1))){for(var g=2;d!=m.charAt(g)&&(f!=m.charAt(g)||u!=m.charAt(g+1));)++g;if(g+=2,d===m.charAt(g-1))return at("End of comment missing");var L=m.slice(2,g-2);return b+=2,k(L),m=m.slice(g),b+=2,y({type:h,comment:L})}}function We(){var y=Q(),g=Ne(r);if(g){if(qe(),!Ne(i))return at("property missing ':'");var L=Ne(s),xt=y({type:v,property:_(g[0].replace(e,d)),value:L?_(L[0].replace(e,d)):d});return Ne(l),xt}}function Pt(){var y=[];P(y);for(var g;g=We();)g!==!1&&(y.push(g),P(y));return y}return Fe(),Pt()};function _(m){return m?m.replace(o,d):d}return kt}var jn;function Si(){if(jn)return Me;jn=1;var e=Me&&Me.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Me,"__esModule",{value:!0}),Me.default=n;var t=e(Ti());function n(r,i){var s=null;if(!r||typeof r!="string")return s;var l=(0,t.default)(r),o=typeof i=="function";return l.forEach(function(a){if(a.type==="declaration"){var u=a.property,f=a.value;o?i(u,f,a):f&&(s=s||{},s[u]=f)}}),s}return Me}var Ni=Si();const Fn=Ei(Ni);Fn.default;var Ri=$e("<div><hb-form></hb-form></div>",2),Ai=$e('<div slot="header"><!></div>'),Oi=$e('<div slot="modal-footer"><!></div>'),Ci=$e('<div slot="footer"><!></div>'),ki=$e('<div slot="close-button-label"><!></div>'),Pi=$e('<div slot="confirm-button-label"><!></div>'),xi=$e('<span><hb-dialog><div slot="body-content"><div><!></div> <!> <div><!></div></div> <!> <!> <!> <!> <!></hb-dialog></span>',2);const Li={hash:"svelte-40i2eu",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;}'};function qn(e,t){const n=fi(t);Xt(t,!0),ci(e,Li);function r(c,T){t.$$host.dispatchEvent(new CustomEvent(c,{detail:T}))}let i=B(""),s=B("");pe({});let l=W(t,"id",7,""),o=W(t,"schema",23,()=>[]),a=W(t,"describedby",7,""),u=W(t,"labelledby",7,""),f=W(t,"content",7,""),d=W(t,"closelabel",7,""),h=W(t,"confirmlabel",7,""),v=W(t,"dialogclasses",7,""),_=W(t,"title",7,""),m=W(t,"backdrop",7,!0),E=W(t,"keyboard",7,!0),$=W(t,"show",7,"no"),b=B(!1);Yr(()=>{$()==="yes"||$()===""?$("yes"):$("no"),typeof m()=="string"?m(m()==="true"||m()==="yes"):m()===void 0&&m(!0),typeof E()=="string"?E(E()==="true"||E()==="yes"):E()===void 0&&E(!0)}),Dn.addComponent({repoName:"@htmlbricks/hb-dialog",version:In.version}),Dn.addComponent({repoName:"@htmlbricks/hb-form",version:In.version});let k;function Q(c){$(c.show?"yes":"no"),r("modalShow",c)}function je(c){r("updateForm",c),c._valid?X(b,!0):X(b,!1),c._id=void 0,k=Object.assign({},c,{_id:l()})}function at(c){c.confirm&&k&&k._valid?r("modalFormConfirm",k):c.confirm?(r("modalFormCancel",{id:l(),error:"invalid form"}),console.error("form submit invalid")):(r("modalFormCancel",{id:l()}),console.warn("form submit cancelled"))}var Ne={get id(){return l()},set id(c=""){l(c),M()},get schema(){return o()},set schema(c=[]){o(c),M()},get describedby(){return a()},set describedby(c=""){a(c),M()},get labelledby(){return u()},set labelledby(c=""){u(c),M()},get content(){return f()},set content(c=""){f(c),M()},get closelabel(){return d()},set closelabel(c=""){d(c),M()},get confirmlabel(){return h()},set confirmlabel(c=""){h(c),M()},get dialogclasses(){return v()},set dialogclasses(c=""){v(c),M()},get title(){return _()},set title(c=""){_(c),M()},get backdrop(){return m()},set backdrop(c=!0){m(c),M()},get keyboard(){return E()},set keyboard(c=!0){E(c),M()},get show(){return $()},set show(c="no"){$(c),M()}},Fe=xi(),P=z(Fe);kn(P,F(i)),ae(()=>ne(P,"disable_confirm",F(b)?"no":"yes")),ae(()=>ne(P,"id",l()?l()+"_modalform":"modalform"+Date.now())),ae(()=>ne(P,"show",$())),ae(()=>ne(P,"title",_())),ae(()=>ne(P,"confirmlabel",h())),ae(()=>ne(P,"content",f())),ae(()=>ne(P,"closelabel",d()));var qe=z(P),We=z(qe),Pt=z(We);Te(Pt,t,"form-header",{}),G(We);var y=we(We,2);{var g=c=>{var T=Ri(),D=z(T);kn(D,F(s)),ae(()=>ne(D,"schema",o())),ne(D,"hide_submit","yes"),G(T),At("update",D,Yi=>je(Yi.detail)),ce(c,T)};Ie(y,c=>{o()?.length&&c(g)})}var L=we(y,2),xt=z(L);Te(xt,t,"form-footer",{}),G(L),G(qe);var Yn=we(qe,2);{var Di=c=>{var T=Ai(),D=z(T);Te(D,t,"header",{}),G(T),ce(c,T)};Ie(Yn,c=>{n.header&&c(Di)})}var Bn=we(Yn,2);{var Ii=c=>{var T=Oi(),D=z(T);Te(D,t,"modal-footer",{}),G(T),ce(c,T)};Ie(Bn,c=>{n["modal-footer"]&&c(Ii)})}var Un=we(Bn,2);{var Mi=c=>{var T=Ci(),D=z(T);Te(D,t,"footer",{}),G(T),ce(c,T)};Ie(Un,c=>{n.footer&&c(Mi)})}var Hn=we(Un,2);{var ji=c=>{var T=ki(),D=z(T);Te(D,t,"close-button-label",{}),G(T),ce(c,T)};Ie(Hn,c=>{n["close-button-label"]&&c(ji)})}var Fi=we(Hn,2);{var qi=c=>{var T=Pi(),D=z(T);Te(D,t,"confirm-button-label",{}),G(T),ce(c,T)};Ie(Fi,c=>{n["confirm-button-label"]&&c(qi)})}return G(P),G(Fe),At("modalConfirm",P,c=>{at(c.detail)}),At("modalShow",P,c=>{Q(c.detail)}),ce(e,Fe),zt(Ne)}customElements.define("hb-dialogform",yi(qn,{id:{},schema:{},describedby:{},labelledby:{},content:{},closelabel:{},confirmlabel:{},dialogclasses:{},title:{},backdrop:{},keyboard:{},show:{}},["form-header","form-footer","header","modal-footer","footer","close-button-label","confirm-button-label"],[],!0)),Lt.Component=qn,Object.defineProperty(Lt,Symbol.toStringTag,{value:"Module"})})(this.dialogform=this.dialogform||{});
4
4
  //# sourceMappingURL=main.iife.js.map