@htmlbricks/hb-dialogform 0.62.11 → 0.62.14

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