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