@htmlbricks/hb-dialogform 0.61.47 → 0.61.48

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
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.47"};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=`
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.48"};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
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
package/manifest.json CHANGED
@@ -439,5 +439,5 @@
439
439
  "size": {},
440
440
  "iifePath": "main.iife.js",
441
441
  "repoName": "@htmlbricks/hb-dialogform",
442
- "version": "0.61.47"
442
+ "version": "0.61.48"
443
443
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@htmlbricks/hb-dialogform",
3
- "version": "0.61.47",
3
+ "version": "0.61.48",
4
4
  "contributors": [],
5
5
  "description": "",
6
6
  "licenses": [