@htmlbricks/hb-dropdown-simple 0.20.18 → 0.50.0-alpha.11

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 ADDED
@@ -0,0 +1 @@
1
+ var Fn=Object.defineProperty;var dr=y=>{throw TypeError(y)};var Hn=(y,T,N)=>T in y?Fn(y,T,{enumerable:!0,configurable:!0,writable:!0,value:N}):y[T]=N;var U=(y,T,N)=>Hn(y,typeof T!="symbol"?T+"":T,N),hr=(y,T,N)=>T.has(y)||dr("Cannot "+N);var P=(y,T,N)=>(hr(y,T,"read from private field"),N?N.call(y):T.get(y)),wt=(y,T,N)=>T.has(y)?dr("Cannot add the same private member more than once"):T instanceof WeakSet?T.add(y):T.set(y,N),gt=(y,T,N,Oe)=>(hr(y,T,"write to private field"),Oe?Oe.call(y,N):T.set(y,N),N);(function(y){"use strict";var ee,H;const T="5";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(T);const N=1,Oe=2,$r=16,pr=1,wr=4,gr=8,yr=16,mr=2,yt="[",Ge="[!",Ze="]",ye={},C=Symbol(),Xe=!1,V=2,mt=4,Qe=8,et=16,K=32,oe=64,Re=128,q=256,Ce=512,D=1024,z=2048,ae=4096,J=8192,De=16384,br=32768,tt=65536,Er=1<<19,bt=1<<20,Pe=Symbol("$state"),Et=Symbol("legacy props"),xr=Symbol("");var rt=Array.isArray,Tr=Array.prototype.indexOf,nt=Array.from,Ie=Object.keys,Le=Object.defineProperty,ne=Object.getOwnPropertyDescriptor,kr=Object.getOwnPropertyDescriptors,Ar=Object.prototype,Sr=Array.prototype,xt=Object.getPrototypeOf;function Nr(e){for(var t=0;t<e.length;t++)e[t]()}let Me=!1,it=[];function Tt(){Me=!1;const e=it.slice();it=[],Nr(e)}function Or(e){Me||(Me=!0,queueMicrotask(Tt)),it.push(e)}function Rr(){Me&&Tt()}function kt(e){return e===this.v}function Cr(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function lt(e){return!Cr(e,this.v)}function Dr(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Pr(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Ir(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Lr(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Mr(){throw new Error("https://svelte.dev/e/hydration_failed")}function qr(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function Fr(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Hr(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Br(){throw new Error("https://svelte.dev/e/state_unsafe_local_read")}function Yr(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}let Ur=!1;function B(e,t){var r={f:0,v:e,reactions:null,equals:kt,rv:0,wv:0};return r}function st(e,t=!1){const r=B(e);return t||(r.equals=lt),r}function j(e,t){return m!==null&&!G&&rr()&&m.f&(V|et)&&(ue===null||!ue.includes(e))&&Yr(),At(e,t)}function At(e,t){return e.equals(t)||(e.v,e.v=t,e.wv=Bt(),St(e,z),g!==null&&g.f&D&&!(g.f&(K|oe))&&(Z===null?Wr([e]):Z.push(e))),t}function St(e,t){var r=e.reactions;if(r!==null)for(var n=r.length,i=0;i<n;i++){var l=r[i],s=l.f;s&z||(X(l,t),s&(D|q)&&(s&V?St(l,ae):Ue(l)))}}function ut(e){var t=V|z,r=m!==null&&m.f&V?m:null;return g===null||r!==null&&r.f&q?t|=q:g.f|=bt,{ctx:L,deps:null,effects:null,equals:kt,f:t,fn:e,reactions:null,rv:0,v:null,wv:0,parent:r??g}}function Vr(e){const t=ut(e);return t.equals=lt,t}function Nt(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)Q(t[r])}}function jr(e){for(var t=e.parent;t!==null;){if(!(t.f&V))return t;t=t.parent}return null}function Kr(e){var t,r=g;$e(jr(e));try{Nt(e),t=Ut(e)}finally{$e(r)}return t}function Ot(e){var t=Kr(e),r=(te||e.f&q)&&e.deps!==null?ae:D;X(e,r),e.equals(t)||(e.v=t,e.wv=Bt())}function ft(e){console.warn("https://svelte.dev/e/hydration_mismatch")}let b=!1;function W(e){b=e}let E;function F(e){if(e===null)throw ft(),ye;return E=e}function me(){return F(le(E))}function ce(e){if(b){if(le(E)!==null)throw ft(),ye;E=e}}function ot(){for(var e=0,t=E;;){if(t.nodeType===8){var r=t.data;if(r===Ze){if(e===0)return t;e-=1}else(r===yt||r===Ge)&&(e+=1)}var n=le(t);t.remove(),t=n}}function ve(e,t=null,r){if(typeof e!="object"||e===null||Pe in e)return e;const n=xt(e);if(n!==Ar&&n!==Sr)return e;var i=new Map,l=rt(e),s=B(0);l&&i.set("length",B(e.length));var a;return new Proxy(e,{defineProperty(c,o,f){(!("value"in f)||f.configurable===!1||f.enumerable===!1||f.writable===!1)&&Fr();var v=i.get(o);return v===void 0?(v=B(f.value),i.set(o,v)):j(v,ve(f.value,a)),!0},deleteProperty(c,o){var f=i.get(o);if(f===void 0)o in c&&i.set(o,B(C));else{if(l&&typeof o=="string"){var v=i.get("length"),u=Number(o);Number.isInteger(u)&&u<v.v&&j(v,u)}j(f,C),Rt(s)}return!0},get(c,o,f){var _;if(o===Pe)return e;var v=i.get(o),u=o in c;if(v===void 0&&(!u||(_=ne(c,o))!=null&&_.writable)&&(v=B(ve(u?c[o]:C,a)),i.set(o,v)),v!==void 0){var d=A(v);return d===C?void 0:d}return Reflect.get(c,o,f)},getOwnPropertyDescriptor(c,o){var f=Reflect.getOwnPropertyDescriptor(c,o);if(f&&"value"in f){var v=i.get(o);v&&(f.value=A(v))}else if(f===void 0){var u=i.get(o),d=u==null?void 0:u.v;if(u!==void 0&&d!==C)return{enumerable:!0,configurable:!0,value:d,writable:!0}}return f},has(c,o){var d;if(o===Pe)return!0;var f=i.get(o),v=f!==void 0&&f.v!==C||Reflect.has(c,o);if(f!==void 0||g!==null&&(!v||(d=ne(c,o))!=null&&d.writable)){f===void 0&&(f=B(v?ve(c[o],a):C),i.set(o,f));var u=A(f);if(u===C)return!1}return v},set(c,o,f,v){var S;var u=i.get(o),d=o in c;if(l&&o==="length")for(var _=f;_<u.v;_+=1){var $=i.get(_+"");$!==void 0?j($,C):_ in c&&($=B(C),i.set(_+"",$))}u===void 0?(!d||(S=ne(c,o))!=null&&S.writable)&&(u=B(void 0),j(u,ve(f,a)),i.set(o,u)):(d=u.v!==C,j(u,ve(f,a)));var w=Reflect.getOwnPropertyDescriptor(c,o);if(w!=null&&w.set&&w.set.call(v,f),!d){if(l&&typeof o=="string"){var h=i.get("length"),p=Number(o);Number.isInteger(p)&&p>=h.v&&j(h,p+1)}Rt(s)}return!0},ownKeys(c){A(s);var o=Reflect.ownKeys(c).filter(u=>{var d=i.get(u);return d===void 0||d.v!==C});for(var[f,v]of i)v.v!==C&&!(f in c)&&o.push(f);return o},setPrototypeOf(){Hr()}})}function Rt(e,t=1){j(e,e.v+t)}var Ct,Dt,Pt,It;function at(){if(Ct===void 0){Ct=window,Dt=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype;Pt=ne(t,"firstChild").get,It=ne(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 ie(e=""){return document.createTextNode(e)}function be(e){return Pt.call(e)}function le(e){return It.call(e)}function Ee(e,t){if(!b)return be(e);var r=be(E);if(r===null)r=E.appendChild(ie());else if(t&&r.nodeType!==3){var n=ie();return r==null||r.before(n),F(n),n}return F(r),r}function zr(e,t=1,r=!1){let n=b?E:e;for(var i;t--;)i=n,n=le(n);if(!b)return n;var l=n==null?void 0:n.nodeType;if(r&&l!==3){var s=ie();return n===null?i==null||i.after(s):n.before(s),F(s),s}return F(n),n}function Lt(e){e.textContent=""}const Mt=0,Jr=1;let qe=!1,Fe=Mt,xe=!1,Te=null,_e=!1,ct=!1;function qt(e){_e=e}function Ft(e){ct=e}let se=[],de=0,Bn=[],m=null,G=!1;function he(e){m=e}let g=null;function $e(e){g=e}let ue=null,O=null,I=0,Z=null;function Wr(e){Z=e}let Ht=1,He=0,te=!1;function Bt(){return++Ht}function ke(e){var v;var t=e.f;if(t&z)return!0;if(t&ae){var r=e.deps,n=(t&q)!==0;if(r!==null){var i,l,s=(t&Ce)!==0,a=n&&g!==null&&!te,c=r.length;if(s||a){var o=e,f=o.parent;for(i=0;i<c;i++)l=r[i],(s||!((v=l==null?void 0:l.reactions)!=null&&v.includes(o)))&&(l.reactions??(l.reactions=[])).push(o);s&&(o.f^=Ce),a&&f!==null&&!(f.f&q)&&(o.f^=q)}for(i=0;i<c;i++)if(l=r[i],ke(l)&&Ot(l),l.wv>e.wv)return!0}(!n||g!==null&&!te)&&X(e,D)}return!1}function Gr(e,t){for(var r=t;r!==null;){if(r.f&Re)try{r.fn(e);return}catch{r.f^=Re}r=r.parent}throw qe=!1,e}function Zr(e){return(e.f&De)===0&&(e.parent===null||(e.parent.f&Re)===0)}function Be(e,t,r,n){if(qe){if(r===null&&(qe=!1),Zr(t))throw e;return}r!==null&&(qe=!0);{Gr(e,t);return}}function Yt(e,t,r=!0){var n=e.reactions;if(n!==null)for(var i=0;i<n.length;i++){var l=n[i];l.f&V?Yt(l,t,!1):t===l&&(r?X(l,z):l.f&D&&X(l,ae),Ue(l))}}function Ut(e){var d;var t=O,r=I,n=Z,i=m,l=te,s=ue,a=L,c=G,o=e.f;O=null,I=0,Z=null,m=o&(K|oe)?null:e,te=(o&q)!==0&&(!_e||i===null||c),ue=null,Qt(e.ctx),G=!1,He++;try{var f=(0,e.fn)(),v=e.deps;if(O!==null){var u;if(Ye(e,I),v!==null&&I>0)for(v.length=I+O.length,u=0;u<O.length;u++)v[I+u]=O[u];else e.deps=v=O;if(!te)for(u=I;u<v.length;u++)((d=v[u]).reactions??(d.reactions=[])).push(e)}else v!==null&&I<v.length&&(Ye(e,I),v.length=I);if(rr()&&Z!==null&&!G&&v!==null&&!(e.f&(V|ae|z)))for(u=0;u<Z.length;u++)Yt(Z[u],e);return i!==null&&He++,f}finally{O=t,I=r,Z=n,m=i,te=l,ue=s,Qt(a),G=c}}function Xr(e,t){let r=t.reactions;if(r!==null){var n=Tr.call(r,e);if(n!==-1){var i=r.length-1;i===0?r=t.reactions=null:(r[n]=r[i],r.pop())}}r===null&&t.f&V&&(O===null||!O.includes(t))&&(X(t,ae),t.f&(q|Ce)||(t.f^=Ce),Nt(t),Ye(t,0))}function Ye(e,t){var r=e.deps;if(r!==null)for(var n=t;n<r.length;n++)Xr(e,r[n])}function vt(e){var t=e.f;if(!(t&De)){X(e,D);var r=g,n=L;g=e;try{t&et?an(e):Wt(e),Jt(e);var i=Ut(e);e.teardown=typeof i=="function"?i:null,e.wv=Ht;var l=e.deps,s;Xe&&Ur&&e.f&z}catch(a){Be(a,e,r,n||e.ctx)}finally{g=r}}}function Vt(){if(de>1e3){de=0;try{Lr()}catch(e){if(Te!==null)Be(e,Te,null);else throw e}}de++}function jt(e){var t=e.length;if(t!==0){Vt();var r=_e;_e=!0;try{for(var n=0;n<t;n++){var i=e[n];i.f&D||(i.f^=D);var l=tn(i);Qr(l)}}finally{_e=r}}}function Qr(e){var t=e.length;if(t!==0)for(var r=0;r<t;r++){var n=e[r];if(!(n.f&(De|J)))try{ke(n)&&(vt(n),n.deps===null&&n.first===null&&n.nodes_start===null&&(n.teardown===null?Gt(n):n.fn=null))}catch(i){Be(i,n,null,n.ctx)}}}function en(){if(xe=!1,de>1001)return;const e=se;se=[],jt(e),xe||(de=0,Te=null)}function Ue(e){Fe===Mt&&(xe||(xe=!0,queueMicrotask(en))),Te=e;for(var t=e;t.parent!==null;){t=t.parent;var r=t.f;if(r&(oe|K)){if(!(r&D))return;t.f^=D}}se.push(t)}function tn(e){var t=[],r=e.first;e:for(;r!==null;){var n=r.f,i=(n&K)!==0,l=i&&(n&D)!==0,s=r.next;if(!l&&!(n&J)){if(n&mt)t.push(r);else if(i)r.f^=D;else{var a=m;try{m=r,ke(r)&&vt(r)}catch(f){Be(f,r,null,r.ctx)}finally{m=a}}var c=r.first;if(c!==null){r=c;continue}}if(s===null){let f=r.parent;for(;f!==null;){if(e===f)break e;var o=f.next;if(o!==null){r=o;continue e}f=f.parent}}r=s}return t}function pe(e){var t=Fe,r=se;try{Vt();const i=[];Fe=Jr,se=i,xe=!1,jt(r);var n=e==null?void 0:e();return Rr(),(se.length>0||i.length>0)&&pe(),de=0,Te=null,n}finally{Fe=t,se=r}}function A(e){var t=e.f,r=(t&V)!==0;if(m!==null&&!G){ue!==null&&ue.includes(e)&&Br();var n=m.deps;e.rv<He&&(e.rv=He,O===null&&n!==null&&n[I]===e?I++:O===null?O=[e]:(!te||!O.includes(e))&&O.push(e))}else if(r&&e.deps===null&&e.effects===null){var i=e,l=i.parent;l!==null&&!(l.f&q)&&(i.f^=q)}return r&&(i=e,ke(i)&&Ot(i)),e.v}function Kt(e){var t=G;try{return G=!0,e()}finally{G=t}}const rn=-7169;function X(e,t){e.f=e.f&rn|t}function nn(e){g===null&&m===null&&Ir(),m!==null&&m.f&q&&g===null&&Pr(),ct&&Dr()}function ln(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function we(e,t,r,n=!0){var i=(e&oe)!==0,l=g,s={ctx:L,deps:null,nodes_start:null,nodes_end:null,f:e|z,first:null,fn:t,last:null,next:null,parent:i?null:l,prev:null,teardown:null,transitions:null,wv:0};if(r){var a=_e;try{qt(!0),vt(s),s.f|=br}catch(f){throw Q(s),f}finally{qt(a)}}else t!==null&&Ue(s);var c=r&&s.deps===null&&s.first===null&&s.nodes_start===null&&s.teardown===null&&(s.f&(bt|Re))===0;if(!c&&!i&&n&&(l!==null&&ln(s,l),m!==null&&m.f&V)){var o=m;(o.effects??(o.effects=[])).push(s)}return s}function sn(e){nn();var t=g!==null&&(g.f&K)!==0&&L!==null&&!L.m;if(t){var r=L;(r.e??(r.e=[])).push({fn:e,effect:g,reaction:m})}else{var n=zt(e);return n}}function un(e){const t=we(oe,e,!0);return()=>{Q(t)}}function fn(e){const t=we(oe,e,!0);return(r={})=>new Promise(n=>{r.outro?Ve(t,()=>{Q(t),n(void 0)}):(Q(t),n(void 0))})}function zt(e){return we(mt,e,!1)}function on(e){return we(Qe,e,!0)}function _t(e,t=[],r=ut){const n=t.map(r);return dt(()=>e(...n.map(A)))}function dt(e,t=0){return we(Qe|et|t,e,!0)}function Ae(e,t=!0){return we(Qe|K,e,!0,t)}function Jt(e){var t=e.teardown;if(t!==null){const r=ct,n=m;Ft(!0),he(null);try{t.call(null)}finally{Ft(r),he(n)}}}function Wt(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){var n=r.next;Q(r,t),r=n}}function an(e){for(var t=e.first;t!==null;){var r=t.next;t.f&K||Q(t),t=r}}function Q(e,t=!0){var r=!1;if((t||e.f&Er)&&e.nodes_start!==null){for(var n=e.nodes_start,i=e.nodes_end;n!==null;){var l=n===i?null:le(n);n.remove(),n=l}r=!0}Wt(e,t&&!r),Ye(e,0),X(e,De);var s=e.transitions;if(s!==null)for(const c of s)c.stop();Jt(e);var a=e.parent;a!==null&&a.first!==null&&Gt(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=null}function Gt(e){var t=e.parent,r=e.prev,n=e.next;r!==null&&(r.next=n),n!==null&&(n.prev=r),t!==null&&(t.first===e&&(t.first=n),t.last===e&&(t.last=r))}function Ve(e,t){var r=[];ht(e,r,!0),Zt(r,()=>{Q(e),t&&t()})}function Zt(e,t){var r=e.length;if(r>0){var n=()=>--r||t();for(var i of e)i.out(n)}else t()}function ht(e,t,r){if(!(e.f&J)){if(e.f^=J,e.transitions!==null)for(const s of e.transitions)(s.is_global||r)&&t.push(s);for(var n=e.first;n!==null;){var i=n.next,l=(n.f&tt)!==0||(n.f&K)!==0;ht(n,t,l?r:!1),n=i}}}function je(e){Xt(e,!0)}function Xt(e,t){if(e.f&J){e.f^=J,e.f&D||(e.f^=D),ke(e)&&(X(e,z),Ue(e));for(var r=e.first;r!==null;){var n=r.next,i=(r.f&tt)!==0||(r.f&K)!==0;Xt(r,i?t:!1),r=n}if(e.transitions!==null)for(const l of e.transitions)(l.is_global||t)&&l.in()}}let L=null;function Qt(e){L=e}function er(e,t=!1,r){L={p:L,c:null,e:null,m:!1,s:e,x:null,l:null}}function tr(e){const t=L;if(t!==null){e!==void 0&&(t.x=e);const s=t.e;if(s!==null){var r=g,n=m;t.e=null;try{for(var i=0;i<s.length;i++){var l=s[i];$e(l.effect),he(l.reaction),zt(l.fn)}}finally{$e(r),he(n)}}L=t.p,t.m=!0}return e||{}}function rr(){return!0}const cn=["touchstart","touchmove"];function vn(e){return cn.includes(e)}const nr=new Set,$t=new Set;function _n(e){for(var t=0;t<e.length;t++)nr.add(e[t]);for(var r of $t)r(e)}function Ke(e){var p;var t=this,r=t.ownerDocument,n=e.type,i=((p=e.composedPath)==null?void 0:p.call(e))||[],l=i[0]||e.target,s=0,a=e.__root;if(a){var c=i.indexOf(a);if(c!==-1&&(t===document||t===window)){e.__root=t;return}var o=i.indexOf(t);if(o===-1)return;c<=o&&(s=c)}if(l=i[s]||e.target,l!==t){Le(e,"currentTarget",{configurable:!0,get(){return l||r}});var f=m,v=g;he(null),$e(null);try{for(var u,d=[];l!==null;){var _=l.assignedSlot||l.parentNode||l.host||null;try{var $=l["__"+n];if($!==void 0&&!l.disabled)if(rt($)){var[w,...h]=$;w.apply(l,[e,...h])}else $.call(l,e)}catch(S){u?d.push(S):u=S}if(e.cancelBubble||_===t||_===null)break;l=_}if(u){for(let S of d)queueMicrotask(()=>{throw S});throw u}}finally{e.__root=t,delete e.currentTarget,he(f),$e(v)}}}function dn(e){var t=document.createElement("template");return t.innerHTML=e,t.content}function Se(e,t){var r=g;r.nodes_start===null&&(r.nodes_start=e,r.nodes_end=t)}function Ne(e,t){var r=(t&mr)!==0,n,i=!e.startsWith("<!>");return()=>{if(b)return Se(E,null),E;n===void 0&&(n=dn(i?e:"<!>"+e),n=be(n));var l=r||Dt?document.importNode(n,!0):n.cloneNode(!0);return Se(l,l),l}}function hn(e=""){if(!b){var t=ie(e+"");return Se(t,t),t}var r=E;return r.nodeType!==3&&(r.before(r=ie()),F(r)),Se(r,r),r}function fe(e,t){if(b){g.nodes_end=E,me();return}e!==null&&e.before(t)}function ir(e,t){var r=t==null?"":typeof t=="object"?t+"":t;r!==(e.__t??(e.__t=e.nodeValue))&&(e.__t=r,e.nodeValue=r+"")}function lr(e,t){return sr(e,t)}function $n(e,t){at(),t.intro=t.intro??!1;const r=t.target,n=b,i=E;try{for(var l=be(r);l&&(l.nodeType!==8||l.data!==yt);)l=le(l);if(!l)throw ye;W(!0),F(l),me();const s=sr(e,{...t,anchor:l});if(E===null||E.nodeType!==8||E.data!==Ze)throw ft(),ye;return W(!1),s}catch(s){if(s===ye)return t.recover===!1&&Mr(),at(),Lt(r),W(!1),lr(e,t);throw s}finally{W(n),F(i)}}const ge=new Map;function sr(e,{target:t,anchor:r,props:n={},events:i,context:l,intro:s=!0}){at();var a=new Set,c=v=>{for(var u=0;u<v.length;u++){var d=v[u];if(!a.has(d)){a.add(d);var _=vn(d);t.addEventListener(d,Ke,{passive:_});var $=ge.get(d);$===void 0?(document.addEventListener(d,Ke,{passive:_}),ge.set(d,1)):ge.set(d,$+1)}}};c(nt(nr)),$t.add(c);var o=void 0,f=fn(()=>{var v=r??t.appendChild(ie());return Ae(()=>{if(l){er({});var u=L;u.c=l}i&&(n.$$events=i),b&&Se(v,null),o=e(v,n)||{},b&&(g.nodes_end=E),l&&tr()}),()=>{var _;for(var u of a){t.removeEventListener(u,Ke);var d=ge.get(u);--d===0?(document.removeEventListener(u,Ke),ge.delete(u)):ge.set(u,d)}$t.delete(c),v!==r&&((_=v.parentNode)==null||_.removeChild(v))}});return pt.set(o,f),o}let pt=new WeakMap;function pn(e,t){const r=pt.get(e);return r?(pt.delete(e),r(t)):Promise.resolve()}function ur(e,t,r=!1){b&&me();var n=e,i=null,l=null,s=C,a=r?tt:0,c=!1;const o=(v,u=!0)=>{c=!0,f(u,v)},f=(v,u)=>{if(s===(s=v))return;let d=!1;if(b){const _=n.data===Ge;!!s===_&&(n=ot(),F(n),W(!1),d=!0)}s?(i?je(i):u&&(i=Ae(()=>u(n))),l&&Ve(l,()=>{l=null})):(l?je(l):u&&(l=Ae(()=>u(n))),i&&Ve(i,()=>{i=null})),d&&W(!0)};dt(()=>{c=!1,t(o),c||f(null,null)},a),b&&(n=E)}function wn(e,t,r,n){for(var i=[],l=t.length,s=0;s<l;s++)ht(t[s].e,i,!0);var a=l>0&&i.length===0&&r!==null;if(a){var c=r.parentNode;Lt(c),c.append(r),n.clear(),re(e,t[0].prev,t[l-1].next)}Zt(i,()=>{for(var o=0;o<l;o++){var f=t[o];a||(n.delete(f.k),re(e,f.prev,f.next)),Q(f.e,!a)}})}function gn(e,t,r,n,i,l=null){var s=e,a={items:new Map,first:null};{var c=e;s=b?F(be(c)):c.appendChild(ie())}b&&me();var o=null,f=!1,v=Vr(()=>{var u=r();return rt(u)?u:u==null?[]:nt(u)});dt(()=>{var u=A(v),d=u.length;if(f&&d===0)return;f=d===0;let _=!1;if(b){var $=s.data===Ge;$!==(d===0)&&(s=ot(),F(s),W(!1),_=!0)}if(b){for(var w=null,h,p=0;p<d;p++){if(E.nodeType===8&&E.data===Ze){s=E,_=!0,W(!1);break}var S=u[p],R=n(S,p);h=fr(E,a,w,null,S,R,p,i,t,r),a.items.set(R,h),w=h}d>0&&F(ot())}b||yn(u,a,s,i,t,n,r),l!==null&&(d===0?o?je(o):o=Ae(()=>l(s)):o!==null&&Ve(o,()=>{o=null})),_&&W(!0),A(v)}),b&&(s=E)}function yn(e,t,r,n,i,l,s){var a=e.length,c=t.items,o=t.first,f=o,v,u=null,d=[],_=[],$,w,h,p;for(p=0;p<a;p+=1){if($=e[p],w=l($,p),h=c.get(w),h===void 0){var S=f?f.e.nodes_start:r;u=fr(S,t,u,u===null?t.first:u.next,$,w,p,n,i,s),c.set(w,u),d=[],_=[],f=u.next;continue}if(mn(h,$,p),h.e.f&J&&je(h.e),h!==f){if(v!==void 0&&v.has(h)){if(d.length<_.length){var R=_[0],M;u=R.prev;var x=d[0],k=d[d.length-1];for(M=0;M<d.length;M+=1)or(d[M],R,r);for(M=0;M<_.length;M+=1)v.delete(_[M]);re(t,x.prev,k.next),re(t,u,x),re(t,k,R),f=R,u=k,p-=1,d=[],_=[]}else v.delete(h),or(h,f,r),re(t,h.prev,h.next),re(t,h,u===null?t.first:u.next),re(t,u,h),u=h;continue}for(d=[],_=[];f!==null&&f.k!==w;)f.e.f&J||(v??(v=new Set)).add(f),_.push(f),f=f.next;if(f===null)continue;h=f}d.push(h),u=h,f=h.next}if(f!==null||v!==void 0){for(var Y=v===void 0?[]:nt(v);f!==null;)f.e.f&J||Y.push(f),f=f.next;var Mn=Y.length;if(Mn>0){var qn=a===0?r:null;wn(t,Y,qn,c)}}g.first=t.first&&t.first.e,g.last=u&&u.e}function mn(e,t,r,n){At(e.v,t),e.i=r}function fr(e,t,r,n,i,l,s,a,c,o){var f=(c&N)!==0,v=(c&$r)===0,u=f?v?st(i):B(i):i,d=c&Oe?B(s):s,_={i:d,v:u,k:l,a:null,e:null,prev:r,next:n};try{return _.e=Ae(()=>a(e,u,d,o),b),_.e.prev=r&&r.e,_.e.next=n&&n.e,r===null?t.first=_:(r.next=_,r.e.next=_.e),n!==null&&(n.prev=_,n.e.prev=_.e),_}finally{}}function or(e,t,r){for(var n=e.next?e.next.e.nodes_start:r,i=t?t.e.nodes_start:r,l=e.e.nodes_start;l!==n;){var s=le(l);i.before(l),l=s}}function re(e,t,r){t===null?e.first=r:(t.next=r,t.e.next=r&&r.e),r!==null&&(r.prev=t,r.e.prev=t&&t.e)}function bn(e,t,r,n,i){var a;b&&me();var l=(a=t.$$slots)==null?void 0:a[r],s=!1;l===!0&&(l=t[r],s=!0),l===void 0?i!==null&&i(e):l(e,s?()=>n:n)}function En(e,t){Or(()=>{var r=e.getRootNode(),n=r.host?r:r.head??r.ownerDocument.head;if(!n.querySelector("#"+t.hash)){const i=document.createElement("style");i.id=t.hash,i.textContent=t.code,n.appendChild(i)}})}function ar(e,t,r,n){var i=e.__attributes??(e.__attributes={});b&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||i[t]!==(i[t]=r)&&(t==="style"&&"__styles"in e&&(e.__styles={}),t==="loading"&&(e[xr]=r),r==null?e.removeAttribute(t):typeof r!="string"&&xn(e).includes(t)?e[t]=r:e.setAttribute(t,r))}var cr=new Map;function xn(e){var t=cr.get(e.nodeName);if(t)return t;cr.set(e.nodeName,t=[]);for(var r,n=e,i=Element.prototype;i!==n;){r=kr(n);for(var l in r)r[l].set&&t.push(l);n=xt(n)}return t}let ze=!1;function Tn(e){var t=ze;try{return ze=!1,[e(),ze]}finally{ze=t}}function Je(e,t,r,n){var M;var i=(r&pr)!==0,l=!0,s=(r&gr)!==0,a=(r&yr)!==0,c=!1,o;s?[o,c]=Tn(()=>e[t]):o=e[t];var f=Pe in e||Et in e,v=s&&(((M=ne(e,t))==null?void 0:M.set)??(f&&t in e&&(x=>e[t]=x)))||void 0,u=n,d=!0,_=!1,$=()=>(_=!0,d&&(d=!1,a?u=Kt(n):u=n),u);o===void 0&&n!==void 0&&(v&&l&&qr(),o=$(),v&&v(o));var w;if(w=()=>{var x=e[t];return x===void 0?$():(d=!0,_=!1,x)},!(r&wr))return w;if(v){var h=e.$$legacy;return function(x,k){return arguments.length>0?((!k||h||c)&&v(k?w():x),x):w()}}var p=!1,S=st(o),R=ut(()=>{var x=w(),k=A(S);return p?(p=!1,k):S.v=x});return i||(R.equals=lt),function(x,k){if(arguments.length>0){const Y=k?A(R):s?ve(x):x;return R.equals(Y)||(p=!0,j(S,Y),_&&u!==void 0&&(u=Y),Kt(()=>A(R))),x}return A(R)}}function kn(e){return new An(e)}class An{constructor(t){wt(this,ee);wt(this,H);var l;var r=new Map,n=(s,a)=>{var c=st(a);return r.set(s,c),c};const i=new Proxy({...t.props||{},$$events:{}},{get(s,a){return A(r.get(a)??n(a,Reflect.get(s,a)))},has(s,a){return a===Et?!0:(A(r.get(a)??n(a,Reflect.get(s,a))),Reflect.has(s,a))},set(s,a,c){return j(r.get(a)??n(a,c),c),Reflect.set(s,a,c)}});gt(this,H,(t.hydrate?$n:lr)(t.component,{target:t.target,anchor:t.anchor,props:i,context:t.context,intro:t.intro??!1,recover:t.recover})),(!((l=t==null?void 0:t.props)!=null&&l.$$host)||t.sync===!1)&&pe(),gt(this,ee,i.$$events);for(const s of Object.keys(P(this,H)))s==="$set"||s==="$destroy"||s==="$on"||Le(this,s,{get(){return P(this,H)[s]},set(a){P(this,H)[s]=a},enumerable:!0});P(this,H).$set=s=>{Object.assign(i,s)},P(this,H).$destroy=()=>{pn(P(this,H))}}$set(t){P(this,H).$set(t)}$on(t,r){P(this,ee)[t]=P(this,ee)[t]||[];const n=(...i)=>r.call(this,...i);return P(this,ee)[t].push(n),()=>{P(this,ee)[t]=P(this,ee)[t].filter(i=>i!==n)}}$destroy(){P(this,H).$destroy()}}ee=new WeakMap,H=new WeakMap;let vr;typeof HTMLElement=="function"&&(vr=class extends HTMLElement{constructor(t,r,n){super();U(this,"$$ctor");U(this,"$$s");U(this,"$$c");U(this,"$$cn",!1);U(this,"$$d",{});U(this,"$$r",!1);U(this,"$$p_d",{});U(this,"$$l",{});U(this,"$$l_u",new Map);U(this,"$$me");this.$$ctor=t,this.$$s=r,n&&this.attachShadow({mode:"open"})}addEventListener(t,r,n){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(r),this.$$c){const i=this.$$c.$on(t,r);this.$$l_u.set(r,i)}super.addEventListener(t,r,n)}removeEventListener(t,r,n){if(super.removeEventListener(t,r,n),this.$$c){const i=this.$$l_u.get(r);i&&(i(),this.$$l_u.delete(r))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let t=function(i){return l=>{const s=document.createElement("slot");i!=="default"&&(s.name=i),fe(l,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const r={},n=Sn(this);for(const i of this.$$s)i in n&&(i==="default"&&!this.$$d.children?(this.$$d.children=t(i),r.default=!0):r[i]=t(i));for(const i of this.attributes){const l=this.$$g_p(i.name);l in this.$$d||(this.$$d[l]=We(l,i.value,this.$$p_d,"toProp"))}for(const i in this.$$p_d)!(i in this.$$d)&&this[i]!==void 0&&(this.$$d[i]=this[i],delete this[i]);this.$$c=kn({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:r,$$host:this}}),this.$$me=un(()=>{on(()=>{var i;this.$$r=!0;for(const l of Ie(this.$$c)){if(!((i=this.$$p_d[l])!=null&&i.reflect))continue;this.$$d[l]=this.$$c[l];const s=We(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 i in this.$$l)for(const l of this.$$l[i]){const s=this.$$c.$on(i,l);this.$$l_u.set(l,s)}this.$$l={}}}attributeChangedCallback(t,r,n){var i;this.$$r||(t=this.$$g_p(t),this.$$d[t]=We(t,n,this.$$p_d,"toProp"),(i=this.$$c)==null||i.$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 Ie(this.$$p_d).find(r=>this.$$p_d[r].attribute===t||!this.$$p_d[r].attribute&&r.toLowerCase()===t)||t}});function We(e,t,r,n){var l;const i=(l=r[e])==null?void 0:l.type;if(t=i==="Boolean"&&typeof t!="boolean"?t!=null:t,!n||!r[e])return t;if(n==="toAttribute")switch(i){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t??null;default:return t}else switch(i){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function Sn(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function Nn(e,t,r,n,i,l){let s=class extends vr{constructor(){super(e,r,i),this.$$p_d=t}static get observedAttributes(){return Ie(t).map(a=>(t[a].attribute||a).toLowerCase())}};return Ie(t).forEach(a=>{Le(s.prototype,a,{get(){return this.$$c&&a in this.$$c?this.$$c[a]:this.$$d[a]},set(c){var v;c=We(a,c,t),this.$$d[a]=c;var o=this.$$c;if(o){var f=(v=ne(o,a))==null?void 0:v.get;f?o[a]=c:o.$set({[a]:c})}}})}),n.forEach(a=>{Le(s.prototype,a,{get(){var c;return(c=this.$$c)==null?void 0:c[a]}})}),e.element=s,s}var On=(e,t,r)=>t(A(r).key),Rn=Ne('<a class="svelte-3hi786"> </a>'),Cn=Ne('<div class="svelte-3hi786"> </div>'),Dn=Ne('<div class="svelte-3hi786"><!></div>'),Pn=Ne('<div class="dropdown-content svelte-3hi786" part="dropdowncontent"></div>'),In=Ne('<div class="dropdown svelte-3hi786" part="dropdown"><div class="dropbtn svelte-3hi786" part="dropdownbutton"><!></div> <!></div>');const Ln={hash:"svelte-3hi786",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;}.dropbtn.svelte-3hi786 {cursor:pointer;}.dropdown.svelte-3hi786 {position:relative;display:inline-block;}.dropdown-content.svelte-3hi786 {display:block;position:absolute;right:0;margin-top:10px;background-color:#f9f9f9;min-width:120px;box-shadow:0px 4px 8px 0px rgba(0, 0, 0, 0.2);z-index:1;font-size:0.8em;}.dropdown-content.svelte-3hi786 div:where(.svelte-3hi786) {color:black;padding:6px 8px;text-decoration:none;display:block;border:none;background-color:none;cursor:pointer;}.dropdown-content.svelte-3hi786 a:where(.svelte-3hi786) {width:100%;color:black;padding:6px 8px;text-decoration:none;display:block;border:none;background-color:none;}.dropdown-content.svelte-3hi786 div:where(.svelte-3hi786):hover {background-color:#f1f1f1;}'};function _r(e,t){er(t,!0),En(e,Ln);let r=Je(t,"id",7,""),n=Je(t,"open",7,!1),i=Je(t,"position",7),l=Je(t,"list",23,()=>[]);sn(()=>{var _,$,w;console.log(n()),r()||r(""),i()||(($=(_=t.$$host)==null?void 0:_.style)!=null&&$.float&&t.$$host.style.float==="right"?i("right"):i("left")),n()==="yes"||n()===""||n()===!0?n(!0):n(!1);try{l()&&!((w=l()[0])!=null&&w.key)?l(JSON.parse(l())):l()||l([])}catch{l([])}});function s(_,$){t.$$host.dispatchEvent(new CustomEvent(_,{detail:$}))}function a(){n(!n()),s("dropdownSwitch",{open:n(),id:r()})}function c(_){s("dropDownClick",{key:_}),a()}var o=In(),f=Ee(o);f.__click=a;var v=Ee(f);bn(v,t,"dropdownbutton",{},_=>{var $=hn("btn");fe(_,$)}),ce(f);var u=zr(f,2);{var d=_=>{var $=Pn();gn($,21,l,w=>w.key,(w,h)=>{var p=Dn();p.__click=[On,c,h];var S=Ee(p);{var R=x=>{var k=Rn(),Y=Ee(k,!0);ce(k),_t(()=>{ar(k,"href",A(h).linkHref),ir(Y,A(h).label)}),fe(x,k)},M=x=>{var k=Cn(),Y=Ee(k,!0);ce(k),_t(()=>ir(Y,A(h).label)),fe(x,k)};ur(S,x=>{A(h).linkHref?x(R):x(M,!1)})}ce(p),fe(w,p)}),ce($),_t(()=>ar($,"style",i()==="right"?"":"left:0;")),fe(_,$)};ur(u,_=>{n()&&_(d)})}return ce(o),fe(e,o),tr({get id(){return r()},set id(_=""){r(_),pe()},get open(){return n()},set open(_=!1){n(_),pe()},get position(){return i()},set position(_){i(_),pe()},get list(){return l()},set list(_=[]){l(_),pe()}})}_n(["click"]),customElements.define("hb-dropdown-simple",Nn(_r,{id:{},open:{},position:{},list:{}},["dropdownbutton"],[],!0)),y.Component=_r,Object.defineProperty(y,Symbol.toStringTag,{value:"Module"})})(this["dropdown-simple"]=this["dropdown-simple"]||{});
@@ -61,11 +61,7 @@
61
61
  "type": "array"
62
62
  },
63
63
  "open": {
64
- "enum": [
65
- "yes",
66
- "no"
67
- ],
68
- "type": "string"
64
+ "type": "boolean"
69
65
  },
70
66
  "position": {
71
67
  "enum": [
@@ -111,6 +107,7 @@
111
107
  }
112
108
  }
113
109
  },
110
+ "description": "",
114
111
  "storybookArgs": {
115
112
  "open": {
116
113
  "control": {
@@ -146,9 +143,7 @@
146
143
  }
147
144
  ]
148
145
  },
149
- "author": "Dario Caruso <dev@dariocaruso.info> (https://dariocaruso.info)",
150
146
  "contributors": [],
151
- "owner": "Dario Caruso <dev@dariocaruso.info> (https://dariocaruso.info)",
152
147
  "htmlSlots": [],
153
148
  "i18n": [],
154
149
  "examples": [
@@ -189,7 +184,7 @@
189
184
  "basic"
190
185
  ],
191
186
  "size": {},
192
- "iifePath": "release/release.js",
187
+ "iifePath": "main.iife.js",
193
188
  "repoName": "@htmlbricks/hb-dropdown-simple",
194
- "version": "0.20.18"
189
+ "version": "0.50.0-alpha.11"
195
190
  }
package/package.json CHANGED
@@ -1,79 +1,16 @@
1
1
  {
2
- "name": "@htmlbricks/hb-dropdown-simple",
3
- "displayName": "Svelte Navbar WebComponent",
4
- "description": "Svelte Navbar WebComponent",
5
- "version": "0.20.18",
6
- "main": "release/release.js",
7
- "publishConfig": {
8
- "access": "public"
9
- },
10
- "author": "Dario Caruso <dev@dariocaruso.info> (https://dariocaruso.info)",
11
- "authorUrl": "https://dariocaruso.info",
12
- "license": "MIT",
13
- "license-docs": "CC BY 4.0",
14
- "license-translations": "CC BY 4.0",
15
- "license-images": "CC BY-NC 4.0",
16
- "engines": {
17
- "node": ">=16.0.0"
18
- },
19
- "scripts": {
20
- "start": "sirv dist",
21
- "dev": "rm -rf ./dist && rollup -c -w",
22
- "build": "rm -rf ./dist && rollup -c",
23
- "generate-manifest": "npm run generate-schemes && monorepo-wc-packages-manifester --dir $PWD",
24
- "generate-component-schema": "ts-json-schema-generator --type 'Component' --path 'app/types/webcomponent.type.d.ts' > dist/webcomponent.type.d.json",
25
- "generate-events-schema": "ts-json-schema-generator --type 'Events' --path 'app/types/webcomponent.type.d.ts' > dist/webcomponent_events.type.d.json",
26
- "generate-schemes": "npm run generate-events-schema && npm run generate-component-schema",
27
- "copydest": "rsync -avh dist/* ./release/ --delete",
28
- "build-extra": "tsc --moduleResolution node --module es2020 --esModuleInterop true --outDir dist --sourceMap --skipLibCheck extra/*",
29
- "build:release": "PRODUCTION=true npm run build && npm run build-extra && npm run generate-manifest && npm run copydest",
30
- "prepublish": "npm run build:release"
31
- },
32
- "devDependencies": {
33
- "@rollup/plugin-alias": "^3.1.2",
34
- "@rollup/plugin-commonjs": "^18.0.0",
35
- "@rollup/plugin-json": "^4.1.0",
36
- "@rollup/plugin-node-resolve": "^11.2.1",
37
- "@rollup/plugin-replace": "^4.0.0",
38
- "@rollup/plugin-typescript": "^8.2.1",
39
- "@tsconfig/svelte": "^1.0.10",
40
- "@types/node": "^16.7.1",
41
- "@typescript-eslint/eslint-plugin": "^4.22.0",
42
- "@typescript-eslint/parser": "^4.22.0",
43
- "eslint": "^7.25.0",
44
- "eslint-plugin-jsdoc": "^33.0.0",
45
- "eslint-plugin-svelte3": "^3.2.0",
46
- "monorepo-wc-packages-manifester": "^0.0.3",
47
- "node-sass": "^9.0.0",
48
- "postcss": "^8.2.13",
49
- "postcss-load-config": "^3.0.1",
50
- "prettier": "^2.8.4",
51
- "rollup": "^2.46.0",
52
- "rollup-plugin-copy": "^3.4.0",
53
- "rollup-plugin-css-only": "^3.1.0",
54
- "rollup-plugin-livereload": "^2.0.0",
55
- "rollup-plugin-svelte": "^7.1.0",
56
- "rollup-plugin-terser": "^7.0.2",
57
- "rollup-plugin-ts-paths": "^1.0.5",
58
- "rollup-plugin-typescript2": "^0.31.1",
59
- "sass": "^1.32.12",
60
- "sirv-cli": "^1.0.11",
61
- "svelte": "^3.46.2",
62
- "svelte-check": "^1.5.2",
63
- "svelte-preprocess": "^4.7.2",
64
- "ts-json-schema-generator": "^0.98.0",
65
- "ts-node": "^9.1.1",
66
- "tslib": "^2.2.0",
67
- "ttypescript": "^1.5.12",
68
- "typescript": "^4.3.5",
69
- "typescript-transform-paths": "^2.2.3",
70
- "wc-js-utils": "^0.0.1"
71
- },
72
- "keywords": [
73
- "svelte",
74
- "svelte-webcomponents",
75
- "webcomponents"
76
- ],
77
- "contributors": [],
78
- "gitHead": "89b0885aff646abbcaebdf63ab8602aa87d3e218"
79
- }
2
+ "name": "@htmlbricks/hb-dropdown-simple",
3
+ "version": "0.50.0-alpha.11",
4
+ "contributors": [],
5
+ "description": "",
6
+ "licenses": [
7
+ {
8
+ "type": "Apache-2.0",
9
+ "path": "LICENSE.md",
10
+ "cost": 0,
11
+ "currency": "EUR"
12
+ }
13
+ ],
14
+ "main": "main.iife.js",
15
+ "dependencies": []
16
+ }
@@ -0,0 +1,62 @@
1
+ {
2
+ "$ref": "#/definitions/Component",
3
+ "$schema": "http://json-schema.org/draft-07/schema#",
4
+ "definitions": {
5
+ "Component": {
6
+ "additionalProperties": false,
7
+ "properties": {
8
+ "id": {
9
+ "type": "string"
10
+ },
11
+ "list": {
12
+ "items": {
13
+ "$ref": "#/definitions/IDropDownMenuListItem"
14
+ },
15
+ "type": "array"
16
+ },
17
+ "open": {
18
+ "type": "boolean"
19
+ },
20
+ "position": {
21
+ "enum": [
22
+ "left",
23
+ "right"
24
+ ],
25
+ "type": "string"
26
+ },
27
+ "style": {
28
+ "type": "string"
29
+ }
30
+ },
31
+ "required": [
32
+ "list"
33
+ ],
34
+ "type": "object"
35
+ },
36
+ "IDropDownMenuListItem": {
37
+ "additionalProperties": false,
38
+ "properties": {
39
+ "badge": {
40
+ "type": "number"
41
+ },
42
+ "group": {
43
+ "type": "string"
44
+ },
45
+ "key": {
46
+ "type": "string"
47
+ },
48
+ "label": {
49
+ "type": "string"
50
+ },
51
+ "linkHref": {
52
+ "type": "string"
53
+ }
54
+ },
55
+ "required": [
56
+ "key",
57
+ "label"
58
+ ],
59
+ "type": "object"
60
+ }
61
+ }
62
+ }
@@ -0,0 +1,20 @@
1
+ export interface IDropDownMenuListItem {
2
+ key: string;
3
+ label: string;
4
+ badge?: number;
5
+ group?: string;
6
+ linkHref?: string;
7
+ }
8
+
9
+ export type Component = {
10
+ id?: string;
11
+ style?: string;
12
+ position?: "left" | "right";
13
+ list: IDropDownMenuListItem[];
14
+ open?: boolean;
15
+ };
16
+
17
+ export type Events = {
18
+ dropdownSwitch: { open: boolean; id: string };
19
+ dropDownClick: { key: string };
20
+ };
@@ -0,0 +1,44 @@
1
+ {
2
+ "$ref": "#/definitions/Events",
3
+ "$schema": "http://json-schema.org/draft-07/schema#",
4
+ "definitions": {
5
+ "Events": {
6
+ "additionalProperties": false,
7
+ "properties": {
8
+ "dropDownClick": {
9
+ "additionalProperties": false,
10
+ "properties": {
11
+ "key": {
12
+ "type": "string"
13
+ }
14
+ },
15
+ "required": [
16
+ "key"
17
+ ],
18
+ "type": "object"
19
+ },
20
+ "dropdownSwitch": {
21
+ "additionalProperties": false,
22
+ "properties": {
23
+ "id": {
24
+ "type": "string"
25
+ },
26
+ "open": {
27
+ "type": "boolean"
28
+ }
29
+ },
30
+ "required": [
31
+ "open",
32
+ "id"
33
+ ],
34
+ "type": "object"
35
+ }
36
+ },
37
+ "required": [
38
+ "dropdownSwitch",
39
+ "dropDownClick"
40
+ ],
41
+ "type": "object"
42
+ }
43
+ }
44
+ }
package/LICENSE.md DELETED
@@ -1,68 +0,0 @@
1
- ## MIT License
2
-
3
- > Code and Contributions
4
-
5
- Copyright (c) 2021 Dario Caruso (dottgonzo)
6
-
7
- Permission is hereby granted, free of charge, to any person obtaining a copy
8
- of this software and associated documentation files (the "Software"), to deal
9
- in the Software without restriction, including without limitation the rights
10
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11
- copies of the Software, and to permit persons to whom the Software is
12
- furnished to do so, subject to the following conditions:
13
-
14
- The above copyright notice and this permission notice shall be included in all
15
- copies or substantial portions of the Software.
16
-
17
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23
- SOFTWARE.
24
-
25
- ##### https://choosealicense.com/licenses/mit/
26
-
27
- ## Creative Commons BY-NC 4.0 License
28
-
29
- > Images, assets and logos
30
-
31
- Copyleft (c) 2021 Dario Caruso (dottgonzo)
32
-
33
- #### You are free to:
34
-
35
- - Share — copy and redistribute the material in any medium or format
36
- - Adapt — remix, transform, and build upon the material
37
-
38
- The licensor cannot revoke these freedoms as long as you follow the license terms.
39
-
40
- #### Under the following terms:
41
-
42
- - Attribution — You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that - suggests the licensor endorses you or your use.
43
- - NonCommercial — You may not use the material for commercial purposes.
44
-
45
- No additional restrictions — You may not apply legal terms or technological measures that legally restrict others from doing anything the license permits.
46
-
47
- ##### https://creativecommons.org/licenses/by-nc/4.0/
48
-
49
- ## Creative Commons BY 4.0 License
50
-
51
- > Documentation and Translations
52
-
53
- Copyleft (c) 2021 Dario Caruso (dottgonzo)
54
-
55
- #### You are free to:
56
-
57
- - Share — copy and redistribute the material in any medium or format
58
- - Adapt — remix, transform, and build upon the material for any purpose, even commercially.
59
-
60
- The licensor cannot revoke these freedoms as long as you follow the license terms.
61
-
62
- #### Under the following terms:
63
-
64
- - Attribution — You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
65
-
66
- No additional restrictions — You may not apply legal terms or technological measures that legally restrict others from doing anything the license permits.
67
-
68
- ##### https://creativecommons.org/licenses/by/4.0/
package/README.md DELETED
@@ -1,2 +0,0 @@
1
- # dropdown-simple web component
2
-
package/extra/docs.ts DELETED
@@ -1,67 +0,0 @@
1
- import type { CssPart, CssVar, HtmlSlot, i18nLang, StyleSetup, ComponentSetup } from "wc-js-utils/main";
2
- import type { Component } from "../app/types/webcomponent.type";
3
-
4
- export const storybookArgs = {
5
- open: { control: { type: "boolean" } },
6
- list: { control: { type: "array" } },
7
- dropdownSwitch: { action: "dropdownSwitchEvent" },
8
- dropDownClick: { action: "dropDownClickEvent" },
9
- };
10
-
11
- const cssVars: CssVar[] = [];
12
- export const cssParts: CssPart[] = [
13
- { name: "dropdown", description: "" },
14
- { name: "dropdownbutton", description: "" },
15
- { name: "dropdowncontent", description: "" },
16
- ];
17
- export const htmlSlots: HtmlSlot[] = [];
18
- export const i18nLanguages: i18nLang[] = [];
19
-
20
- export const styleSetup: StyleSetup = {
21
- vars: cssVars,
22
- parts: cssParts,
23
- };
24
-
25
- const examples: { name: string; description?: string; data: Component }[] = [
26
- {
27
- name: "default",
28
- data: {
29
- list: [
30
- {
31
- key: "ciao",
32
- label: "bao",
33
- },
34
- {
35
- key: "ciao2",
36
- label: "bao2",
37
- },
38
- {
39
- key: "ciao3",
40
- label: "bao3",
41
- linkHref: "fefeef",
42
- },
43
- ],
44
- },
45
- },
46
- ];
47
- export const componentSetup: ComponentSetup & { examples: { name: string; description?: string; data: Component }[] } = {
48
- definitions: null as any,
49
- storybookArgs,
50
- styleSetup,
51
- author: null as any,
52
- contributors: [],
53
- owner: null as any,
54
- htmlSlots,
55
- i18n: i18nLanguages,
56
- examples,
57
- screenshots: [],
58
- licenses: [{ type: "Apache-2.0", path: "LICENSE.md", cost: 0, currency: "EUR" }],
59
- readmePath: "README.md",
60
- name: "hb-dropdown-simple",
61
- category: "basic",
62
- tags: ["basic"],
63
- size: {},
64
- iifePath: "release/release.js",
65
- repoName: "@htmlbricks/hb-dropdown-simple",
66
- version: null as any,
67
- };
package/release/docs.js DELETED
@@ -1,62 +0,0 @@
1
- export var storybookArgs = {
2
- open: { control: { type: "boolean" } },
3
- list: { control: { type: "array" } },
4
- dropdownSwitch: { action: "dropdownSwitchEvent" },
5
- dropDownClick: { action: "dropDownClickEvent" }
6
- };
7
- var cssVars = [];
8
- export var cssParts = [
9
- { name: "dropdown", description: "" },
10
- { name: "dropdownbutton", description: "" },
11
- { name: "dropdowncontent", description: "" },
12
- ];
13
- export var htmlSlots = [];
14
- export var i18nLanguages = [];
15
- export var styleSetup = {
16
- vars: cssVars,
17
- parts: cssParts
18
- };
19
- var examples = [
20
- {
21
- name: "default",
22
- data: {
23
- list: [
24
- {
25
- key: "ciao",
26
- label: "bao"
27
- },
28
- {
29
- key: "ciao2",
30
- label: "bao2"
31
- },
32
- {
33
- key: "ciao3",
34
- label: "bao3",
35
- linkHref: "fefeef"
36
- },
37
- ]
38
- }
39
- },
40
- ];
41
- export var componentSetup = {
42
- definitions: null,
43
- storybookArgs: storybookArgs,
44
- styleSetup: styleSetup,
45
- author: null,
46
- contributors: [],
47
- owner: null,
48
- htmlSlots: htmlSlots,
49
- i18n: i18nLanguages,
50
- examples: examples,
51
- screenshots: [],
52
- licenses: [{ type: "Apache-2.0", path: "LICENSE.md", cost: 0, currency: "EUR" }],
53
- readmePath: "README.md",
54
- name: "hb-dropdown-simple",
55
- category: "basic",
56
- tags: ["basic"],
57
- size: {},
58
- iifePath: "release/release.js",
59
- repoName: "@htmlbricks/hb-dropdown-simple",
60
- version: null
61
- };
62
- //# sourceMappingURL=docs.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"docs.js","sourceRoot":"","sources":["../extra/docs.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,IAAM,aAAa,GAAG;IAC5B,IAAI,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;IACtC,IAAI,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE;IACpC,cAAc,E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,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IAChF,UAAU,EAAE,WAAW;IACvB,IAAI,EAAE,oBAAoB;IAC1B,QAAQ,EAAE,OAAO;IACjB,IAAI,EAAE,CAAC,OAAO,CAAC;IACf,IAAI,EAAE,EAAE;IACR,QAAQ,EAAE,oBAAoB;IAC9B,QAAQ,EAAE,gCAAgC;IAC1C,OAAO,EAAE,IAAW;CACpB,CAAC"}
package/release/docs.ts DELETED
@@ -1,67 +0,0 @@
1
- import type { CssPart, CssVar, HtmlSlot, i18nLang, StyleSetup, ComponentSetup } from "wc-js-utils/main";
2
- import type { Component } from "../app/types/webcomponent.type";
3
-
4
- export const storybookArgs = {
5
- open: { control: { type: "boolean" } },
6
- list: { control: { type: "array" } },
7
- dropdownSwitch: { action: "dropdownSwitchEvent" },
8
- dropDownClick: { action: "dropDownClickEvent" },
9
- };
10
-
11
- const cssVars: CssVar[] = [];
12
- export const cssParts: CssPart[] = [
13
- { name: "dropdown", description: "" },
14
- { name: "dropdownbutton", description: "" },
15
- { name: "dropdowncontent", description: "" },
16
- ];
17
- export const htmlSlots: HtmlSlot[] = [];
18
- export const i18nLanguages: i18nLang[] = [];
19
-
20
- export const styleSetup: StyleSetup = {
21
- vars: cssVars,
22
- parts: cssParts,
23
- };
24
-
25
- const examples: { name: string; description?: string; data: Component }[] = [
26
- {
27
- name: "default",
28
- data: {
29
- list: [
30
- {
31
- key: "ciao",
32
- label: "bao",
33
- },
34
- {
35
- key: "ciao2",
36
- label: "bao2",
37
- },
38
- {
39
- key: "ciao3",
40
- label: "bao3",
41
- linkHref: "fefeef",
42
- },
43
- ],
44
- },
45
- },
46
- ];
47
- export const componentSetup: ComponentSetup & { examples: { name: string; description?: string; data: Component }[] } = {
48
- definitions: null as any,
49
- storybookArgs,
50
- styleSetup,
51
- author: null as any,
52
- contributors: [],
53
- owner: null as any,
54
- htmlSlots,
55
- i18n: i18nLanguages,
56
- examples,
57
- screenshots: [],
58
- licenses: [{ type: "Apache-2.0", path: "LICENSE.md", cost: 0, currency: "EUR" }],
59
- readmePath: "README.md",
60
- name: "hb-dropdown-simple",
61
- category: "basic",
62
- tags: ["basic"],
63
- size: {},
64
- iifePath: "release/release.js",
65
- repoName: "@htmlbricks/hb-dropdown-simple",
66
- version: null as any,
67
- };
@@ -1,2 +0,0 @@
1
- var release=function(){"use strict";function t(){}function n(t){return t()}function e(){return Object.create(null)}function o(t){t.forEach(n)}function r(t){return"function"==typeof t}function i(t,n){return t!=t?n==n:t!==n||t&&"object"==typeof t||"function"==typeof t}function c(t,n){t.appendChild(n)}function s(t,n,e){t.insertBefore(n,e||null)}function l(t){t.parentNode&&t.parentNode.removeChild(t)}function a(t){return document.createElement(t)}function d(t){return document.createTextNode(t)}function u(){return d(" ")}function f(t,n,e,o){return t.addEventListener(n,e,o),()=>t.removeEventListener(n,e,o)}function p(t,n,e){null==e?t.removeAttribute(n):t.getAttribute(n)!==e&&t.setAttribute(n,e)}function h(t,n){n=""+n,t.data!==n&&(t.data=n)}function $(t){const n={};for(const e of t)n[e.name]=e.value;return n}let m;function g(t){m=t}function b(){if(!m)throw new Error("Function called outside component initialization");return m}function y(){const t=b();return(n,e,{cancelable:o=!1}={})=>{const r=t.$$.callbacks[n];if(r){const i=function(t,n,{bubbles:e=!1,cancelable:o=!1}={}){const r=document.createEvent("CustomEvent");return r.initCustomEvent(t,e,o,n),r}(n,e,{cancelable:o});return r.slice().forEach((n=>{n.call(t,i)})),!i.defaultPrevented}return!0}}const k=[],w=[];let x=[];const v=[],_=Promise.resolve();let E=!1;function C(t){x.push(t)}const M=new Set;let S=0;function H(){if(0!==S)return;const t=m;do{try{for(;S<k.length;){const t=k[S];S++,g(t),A(t.$$)}}catch(t){throw k.length=0,S=0,t}for(g(null),k.length=0,S=0;w.length;)w.pop()();for(let t=0;t<x.length;t+=1){const n=x[t];M.has(n)||(M.add(n),n())}x.length=0}while(k.length);for(;v.length;)v.pop()();E=!1,M.clear(),g(t)}function A(t){if(null!==t.fragment){t.update(),o(t.before_update);const n=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,n),t.after_update.forEach(C)}}const L=new Set;function N(t,n){t&&t.i&&(L.delete(t),t.i(n))}function O(t,n){t.d(1),n.delete(t.key)}function R(t,n){const e=t.$$;null!==e.fragment&&(!function(t){const n=[],e=[];x.forEach((o=>-1===t.indexOf(o)?n.push(o):e.push(o))),e.forEach((t=>t())),x=n}(e.after_update),o(e.on_destroy),e.fragment&&e.fragment.d(n),e.on_destroy=e.fragment=null,e.ctx=[])}function T(t,n){-1===t.$$.dirty[0]&&(k.push(t),E||(E=!0,_.then(H)),t.$$.dirty.fill(0)),t.$$.dirty[n/31|0]|=1<<n%31}function j(i,c,s,a,d,u,f,p=[-1]){const h=m;g(i);const $=i.$$={fragment:null,ctx:[],props:u,update:t,not_equal:d,bound:e(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(c.context||(h?h.$$.context:[])),callbacks:e(),dirty:p,skip_bound:!1,root:c.target||h.$$.root};f&&f($.root);let b=!1;if($.ctx=s?s(i,c.props||{},((t,n,...e)=>{const o=e.length?e[0]:n;return $.ctx&&d($.ctx[t],$.ctx[t]=o)&&(!$.skip_bound&&$.bound[t]&&$.bound[t](o),b&&T(i,t)),n})):[],$.update(),b=!0,o($.before_update),$.fragment=!!a&&a($.ctx),c.target){if(c.hydrate){const t=function(t){return Array.from(t.childNodes)}(c.target);$.fragment&&$.fragment.l(t),t.forEach(l)}else $.fragment&&$.fragment.c();c.intro&&N(i.$$.fragment),function(t,e,i,c){const{fragment:s,after_update:l}=t.$$;s&&s.m(e,i),c||C((()=>{const e=t.$$.on_mount.map(n).filter(r);t.$$.on_destroy?t.$$.on_destroy.push(...e):o(e),t.$$.on_mount=[]})),l.forEach(C)}(i,c.target,c.anchor,c.customElement),H()}g(h)}let z;function P(t,n,e){const o=t.slice();return o[12]=n[e],o}function q(t){let n,e,r=[],i=new Map,c=t[1];const d=t=>t[12].key;for(let n=0;n<c.length;n+=1){let e=P(t,c,n),o=d(e);i.set(o,r[n]=F(o,e))}return{c(){n=a("div");for(let t=0;t<r.length;t+=1)r[t].c();p(n,"class","dropdown-content"),p(n,"part","dropdowncontent"),p(n,"style",e="right"===t[0]?"":"left:0;")},m(t,e){s(t,n,e);for(let t=0;t<r.length;t+=1)r[t]&&r[t].m(n,null)},p(t,s){18&s&&(c=t[1],r=function(t,n,e,r,i,c,s,l,a,d,u,f){let p=t.length,h=c.length,$=p;const m={};for(;$--;)m[t[$].key]=$;const g=[],b=new Map,y=new Map,k=[];for($=h;$--;){const t=f(i,c,$),o=e(t);let l=s.get(o);l?r&&k.push((()=>l.p(t,n))):(l=d(o,t),l.c()),b.set(o,g[$]=l),o in m&&y.set(o,Math.abs($-m[o]))}const w=new Set,x=new Set;function v(t){N(t,1),t.m(l,u),s.set(t.key,t),u=t.first,h--}for(;p&&h;){const n=g[h-1],e=t[p-1],o=n.key,r=e.key;n===e?(u=n.first,p--,h--):b.has(r)?!s.has(o)||w.has(o)?v(n):x.has(r)?p--:y.get(o)>y.get(r)?(x.add(o),v(n)):(w.add(r),p--):(a(e,s),p--)}for(;p--;){const n=t[p];b.has(n.key)||a(n,s)}for(;h;)v(g[h-1]);return o(k),g}(r,s,d,1,t,c,i,n,O,F,null,P)),1&s&&e!==(e="right"===t[0]?"":"left:0;")&&p(n,"style",e)},d(t){t&&l(n);for(let t=0;t<r.length;t+=1)r[t].d()}}}function B(t){let n,e,o=t[12].label+"";return{c(){n=a("div"),e=d(o)},m(t,o){s(t,n,o),c(n,e)},p(t,n){2&n&&o!==(o=t[12].label+"")&&h(e,o)},d(t){t&&l(n)}}}function D(t){let n,e,o,r=t[12].label+"";return{c(){n=a("a"),e=d(r),p(n,"href",o=t[12].linkHref)},m(t,o){s(t,n,o),c(n,e)},p(t,i){2&i&&r!==(r=t[12].label+"")&&h(e,r),2&i&&o!==(o=t[12].linkHref)&&p(n,"href",o)},d(t){t&&l(n)}}}function F(t,n){let e,o,r,i;function d(t,n){return t[12].linkHref?D:B}let p=d(n),h=p(n);function $(){return n[8](n[12])}return{key:t,first:null,c(){e=a("div"),h.c(),o=u(),this.first=e},m(t,n){s(t,e,n),h.m(e,null),c(e,o),r||(i=f(e,"click",$),r=!0)},p(t,r){p===(p=d(n=t))&&h?h.p(n,r):(h.d(1),h=p(n),h&&(h.c(),h.m(e,o)))},d(t){t&&l(e),h.d(),r=!1,i()}}}function J(n){let e,o,r,i,d,h=n[2]&&q(n);return{c(){e=a("div"),o=a("div"),o.innerHTML='<slot name="dropdownbutton">btn</slot>',r=u(),h&&h.c(),this.c=t,p(o,"class","dropbtn"),p(o,"part","dropdownbutton"),p(e,"class","dropdown"),p(e,"part","dropdown")},m(t,l){s(t,e,l),c(e,o),c(e,r),h&&h.m(e,null),i||(d=f(o,"click",n[3]),i=!0)},p(t,[n]){t[2]?h?h.p(t,n):(h=q(t),h.c(),h.m(e,null)):h&&(h.d(1),h=null)},i:t,o:t,d(t){t&&l(e),h&&h.d(),i=!1,d()}}}function G(t,n,e){var o,r;let{id:i}=n,{position:c}=n,{list:s}=n,{open:l}=n;const a=b(),d=y();function u(t,n){d(t,n),a.dispatchEvent&&a.dispatchEvent(new CustomEvent(t,{detail:n}))}function f(){e(2,l=!l),u("dropdownSwitch",{open:l,id:i})}function p(t){u("dropDownClick",{key:t}),f()}return t.$$set=t=>{"id"in t&&e(5,i=t.id),"position"in t&&e(0,c=t.position),"list"in t&&e(1,s=t.list),"open"in t&&e(2,l=t.open)},t.$$.update=()=>{if(231&t.$$.dirty){console.log(l),i||e(5,i=""),c||((null===e(6,o=null==a?void 0:a.style)||void 0===o?void 0:o.float)&&"right"===a.style.float?e(0,c="right"):e(0,c="left")),e(2,l="yes"===l||""===l||!0===l);try{s&&!(null===e(7,r=s[0])||void 0===r?void 0:r.key)?e(1,s=JSON.parse(s)):s||e(1,s=[])}catch(t){e(1,s=[])}}},[c,s,l,f,p,i,o,r,t=>p(t.key)]}"function"==typeof HTMLElement&&(z=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:t}=this.$$;this.$$.on_disconnect=t.map(n).filter(r);for(const t in this.$$.slotted)this.appendChild(this.$$.slotted[t])}attributeChangedCallback(t,n,e){this[t]=e}disconnectedCallback(){o(this.$$.on_disconnect)}$destroy(){R(this,1),this.$destroy=t}$on(n,e){if(!r(e))return t;const o=this.$$.callbacks[n]||(this.$$.callbacks[n]=[]);return o.push(e),()=>{const t=o.indexOf(e);-1!==t&&o.splice(t,1)}}$set(t){var n;this.$$set&&(n=t,0!==Object.keys(n).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}});class I extends z{constructor(t){super();const n=document.createElement("style");n.textContent='@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}.dropbtn{cursor:pointer}.dropdown{position:relative;display:inline-block}.dropdown-content{display:block;position:absolute;right:0;margin-top:10px;background-color:#f9f9f9;min-width:120px;box-shadow:0px 4px 8px 0px rgba(0, 0, 0, 0.2);z-index:1;font-size:0.8em}.dropdown-content div{color:black;padding:6px 8px;text-decoration:none;display:block;border:none;background-color:none;cursor:pointer}.dropdown-content a{width:100%;color:black;padding:6px 8px;text-decoration:none;display:block;border:none;background-color:none}.dropdown-content div:hover{background-color:#f1f1f1}',this.shadowRoot.appendChild(n),j(this,{target:this.shadowRoot,props:$(this.attributes),customElement:!0},G,J,i,{id:5,position:0,list:1,open:2},null),t&&(t.target&&s(t.target,this,t.anchor),t.props&&(this.$set(t.props),H()))}static get observedAttributes(){return["id","position","list","open"]}get id(){return this.$$.ctx[5]}set id(t){this.$$set({id:t}),H()}get position(){return this.$$.ctx[0]}set position(t){this.$$set({position:t}),H()}get list(){return this.$$.ctx[1]}set list(t){this.$$set({list:t}),H()}get open(){return this.$$.ctx[2]}set open(t){this.$$set({open:t}),H()}}return customElements.define("hb-dropdown-simple",I),I}();
2
- //# sourceMappingURL=release.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"release.js","sources":["../../../node_modules/svelte/internal/index.mjs","../app/html/webcomponent.svelte"],"sourcesContent":["function noop() { }\nconst identity = x => x;\nfunction assign(tar, src) {\n // @ts-ignore\n for (const k in src)\n tar[k] = src[k];\n return tar;\n}\n// Adapted from https://github.com/then/is-promise/blob/master/index.js\n// Distributed under MIT License https://github.com/then/is-promise/blob/master/LICENSE\nfunction is_promise(value) {\n return !!value && (typeof value === 'object' || typeof value === 'function') && typeof value.then === 'function';\n}\nfunction add_location(element, file, line, column, char) {\n element.__svelte_meta = {\n loc: { file, line, column, char }\n };\n}\nfunction run(fn) {\n return fn();\n}\nfunction blank_object() {\n return Object.create(null);\n}\nfunction run_all(fns) {\n fns.forEach(run);\n}\nfunction is_function(thing) {\n return typeof thing === 'function';\n}\nfunction safe_not_equal(a, b) {\n return a != a ? b == b : a !== b || ((a && typeof a === 'object') || typeof a === 'function');\n}\nlet src_url_equal_anchor;\nfunction src_url_equal(element_src, url) {\n if (!src_url_equal_anchor) {\n src_url_equal_anchor = document.createElement('a');\n }\n src_url_equal_anchor.href = url;\n return element_src === src_url_equal_anchor.href;\n}\nfunction not_equal(a, b) {\n return a != a ? b == b : a !== b;\n}\nfunction is_empty(obj) {\n return Object.keys(obj).length === 0;\n}\nfunction validate_store(store, name) {\n if (store != null && typeof store.subscribe !== 'function') {\n throw new Error(`'${name}' is not a store with a 'subscribe' method`);\n }\n}\nfunction subscribe(store, ...callbacks) {\n if (store == null) {\n return noop;\n }\n const unsub = store.subscribe(...callbacks);\n return unsub.unsubscribe ? () => unsub.unsubscribe() : unsub;\n}\nfunction get_store_value(store) {\n let value;\n subscribe(store, _ => value = _)();\n return value;\n}\nfunction component_subscribe(component, store, callback) {\n component.$$.on_destroy.push(subscribe(store, callback));\n}\nfunction create_slot(definition, ctx, $$scope, fn) {\n if (definition) {\n const slot_ctx = get_slot_context(definition, ctx, $$scope, fn);\n return definition[0](slot_ctx);\n }\n}\nfunction get_slot_context(definition, ctx, $$scope, fn) {\n return definition[1] && fn\n ? assign($$scope.ctx.slice(), definition[1](fn(ctx)))\n : $$scope.ctx;\n}\nfunction get_slot_changes(definition, $$scope, dirty, fn) {\n if (definition[2] && fn) {\n const lets = definition[2](fn(dirty));\n if ($$scope.dirty === undefined) {\n return lets;\n }\n if (typeof lets === 'object') {\n const merged = [];\n const len = Math.max($$scope.dirty.length, lets.length);\n for (let i = 0; i < len; i += 1) {\n merged[i] = $$scope.dirty[i] | lets[i];\n }\n return merged;\n }\n return $$scope.dirty | lets;\n }\n return $$scope.dirty;\n}\nfunction update_slot_base(slot, slot_definition, ctx, $$scope, slot_changes, get_slot_context_fn) {\n if (slot_changes) {\n const slot_context = get_slot_context(slot_definition, ctx, $$scope, get_slot_context_fn);\n slot.p(slot_context, slot_changes);\n }\n}\nfunction update_slot(slot, slot_definition, ctx, $$scope, dirty, get_slot_changes_fn, get_slot_context_fn) {\n const slot_changes = get_slot_changes(slot_definition, $$scope, dirty, get_slot_changes_fn);\n update_slot_base(slot, slot_definition, ctx, $$scope, slot_changes, get_slot_context_fn);\n}\nfunction get_all_dirty_from_scope($$scope) {\n if ($$scope.ctx.length > 32) {\n const dirty = [];\n const length = $$scope.ctx.length / 32;\n for (let i = 0; i < length; i++) {\n dirty[i] = -1;\n }\n return dirty;\n }\n return -1;\n}\nfunction exclude_internal_props(props) {\n const result = {};\n for (const k in props)\n if (k[0] !== '$')\n result[k] = props[k];\n return result;\n}\nfunction compute_rest_props(props, keys) {\n const rest = {};\n keys = new Set(keys);\n for (const k in props)\n if (!keys.has(k) && k[0] !== '$')\n rest[k] = props[k];\n return rest;\n}\nfunction compute_slots(slots) {\n const result = {};\n for (const key in slots) {\n result[key] = true;\n }\n return result;\n}\nfunction once(fn) {\n let ran = false;\n return function (...args) {\n if (ran)\n return;\n ran = true;\n fn.call(this, ...args);\n };\n}\nfunction null_to_empty(value) {\n return value == null ? '' : value;\n}\nfunction set_store_value(store, ret, value) {\n store.set(value);\n return ret;\n}\nconst has_prop = (obj, prop) => Object.prototype.hasOwnProperty.call(obj, prop);\nfunction action_destroyer(action_result) {\n return action_result && is_function(action_result.destroy) ? action_result.destroy : noop;\n}\nfunction split_css_unit(value) {\n const split = typeof value === 'string' && value.match(/^\\s*(-?[\\d.]+)([^\\s]*)\\s*$/);\n return split ? [parseFloat(split[1]), split[2] || 'px'] : [value, 'px'];\n}\nconst contenteditable_truthy_values = ['', true, 1, 'true', 'contenteditable'];\n\nconst is_client = typeof window !== 'undefined';\nlet now = is_client\n ? () => window.performance.now()\n : () => Date.now();\nlet raf = is_client ? cb => requestAnimationFrame(cb) : noop;\n// used internally for testing\nfunction set_now(fn) {\n now = fn;\n}\nfunction set_raf(fn) {\n raf = fn;\n}\n\nconst tasks = new Set();\nfunction run_tasks(now) {\n tasks.forEach(task => {\n if (!task.c(now)) {\n tasks.delete(task);\n task.f();\n }\n });\n if (tasks.size !== 0)\n raf(run_tasks);\n}\n/**\n * For testing purposes only!\n */\nfunction clear_loops() {\n tasks.clear();\n}\n/**\n * Creates a new task that runs on each raf frame\n * until it returns a falsy value or is aborted\n */\nfunction loop(callback) {\n let task;\n if (tasks.size === 0)\n raf(run_tasks);\n return {\n promise: new Promise(fulfill => {\n tasks.add(task = { c: callback, f: fulfill });\n }),\n abort() {\n tasks.delete(task);\n }\n };\n}\n\nconst globals = (typeof window !== 'undefined'\n ? window\n : typeof globalThis !== 'undefined'\n ? globalThis\n : global);\n\n/**\n * Resize observer singleton.\n * One listener per element only!\n * https://groups.google.com/a/chromium.org/g/blink-dev/c/z6ienONUb5A/m/F5-VcUZtBAAJ\n */\nclass ResizeObserverSingleton {\n constructor(options) {\n this.options = options;\n this._listeners = 'WeakMap' in globals ? new WeakMap() : undefined;\n }\n observe(element, listener) {\n this._listeners.set(element, listener);\n this._getObserver().observe(element, this.options);\n return () => {\n this._listeners.delete(element);\n this._observer.unobserve(element); // this line can probably be removed\n };\n }\n _getObserver() {\n var _a;\n return (_a = this._observer) !== null && _a !== void 0 ? _a : (this._observer = new ResizeObserver((entries) => {\n var _a;\n for (const entry of entries) {\n ResizeObserverSingleton.entries.set(entry.target, entry);\n (_a = this._listeners.get(entry.target)) === null || _a === void 0 ? void 0 : _a(entry);\n }\n }));\n }\n}\n// Needs to be written like this to pass the tree-shake-test\nResizeObserverSingleton.entries = 'WeakMap' in globals ? new WeakMap() : undefined;\n\n// Track which nodes are claimed during hydration. Unclaimed nodes can then be removed from the DOM\n// at the end of hydration without touching the remaining nodes.\nlet is_hydrating = false;\nfunction start_hydrating() {\n is_hydrating = true;\n}\nfunction end_hydrating() {\n is_hydrating = false;\n}\nfunction upper_bound(low, high, key, value) {\n // Return first index of value larger than input value in the range [low, high)\n while (low < high) {\n const mid = low + ((high - low) >> 1);\n if (key(mid) <= value) {\n low = mid + 1;\n }\n else {\n high = mid;\n }\n }\n return low;\n}\nfunction init_hydrate(target) {\n if (target.hydrate_init)\n return;\n target.hydrate_init = true;\n // We know that all children have claim_order values since the unclaimed have been detached if target is not <head>\n let children = target.childNodes;\n // If target is <head>, there may be children without claim_order\n if (target.nodeName === 'HEAD') {\n const myChildren = [];\n for (let i = 0; i < children.length; i++) {\n const node = children[i];\n if (node.claim_order !== undefined) {\n myChildren.push(node);\n }\n }\n children = myChildren;\n }\n /*\n * Reorder claimed children optimally.\n * We can reorder claimed children optimally by finding the longest subsequence of\n * nodes that are already claimed in order and only moving the rest. The longest\n * subsequence of nodes that are claimed in order can be found by\n * computing the longest increasing subsequence of .claim_order values.\n *\n * This algorithm is optimal in generating the least amount of reorder operations\n * possible.\n *\n * Proof:\n * We know that, given a set of reordering operations, the nodes that do not move\n * always form an increasing subsequence, since they do not move among each other\n * meaning that they must be already ordered among each other. Thus, the maximal\n * set of nodes that do not move form a longest increasing subsequence.\n */\n // Compute longest increasing subsequence\n // m: subsequence length j => index k of smallest value that ends an increasing subsequence of length j\n const m = new Int32Array(children.length + 1);\n // Predecessor indices + 1\n const p = new Int32Array(children.length);\n m[0] = -1;\n let longest = 0;\n for (let i = 0; i < children.length; i++) {\n const current = children[i].claim_order;\n // Find the largest subsequence length such that it ends in a value less than our current value\n // upper_bound returns first greater value, so we subtract one\n // with fast path for when we are on the current longest subsequence\n const seqLen = ((longest > 0 && children[m[longest]].claim_order <= current) ? longest + 1 : upper_bound(1, longest, idx => children[m[idx]].claim_order, current)) - 1;\n p[i] = m[seqLen] + 1;\n const newLen = seqLen + 1;\n // We can guarantee that current is the smallest value. Otherwise, we would have generated a longer sequence.\n m[newLen] = i;\n longest = Math.max(newLen, longest);\n }\n // The longest increasing subsequence of nodes (initially reversed)\n const lis = [];\n // The rest of the nodes, nodes that will be moved\n const toMove = [];\n let last = children.length - 1;\n for (let cur = m[longest] + 1; cur != 0; cur = p[cur - 1]) {\n lis.push(children[cur - 1]);\n for (; last >= cur; last--) {\n toMove.push(children[last]);\n }\n last--;\n }\n for (; last >= 0; last--) {\n toMove.push(children[last]);\n }\n lis.reverse();\n // We sort the nodes being moved to guarantee that their insertion order matches the claim order\n toMove.sort((a, b) => a.claim_order - b.claim_order);\n // Finally, we move the nodes\n for (let i = 0, j = 0; i < toMove.length; i++) {\n while (j < lis.length && toMove[i].claim_order >= lis[j].claim_order) {\n j++;\n }\n const anchor = j < lis.length ? lis[j] : null;\n target.insertBefore(toMove[i], anchor);\n }\n}\nfunction append(target, node) {\n target.appendChild(node);\n}\nfunction append_styles(target, style_sheet_id, styles) {\n const append_styles_to = get_root_for_style(target);\n if (!append_styles_to.getElementById(style_sheet_id)) {\n const style = element('style');\n style.id = style_sheet_id;\n style.textContent = styles;\n append_stylesheet(append_styles_to, style);\n }\n}\nfunction get_root_for_style(node) {\n if (!node)\n return document;\n const root = node.getRootNode ? node.getRootNode() : node.ownerDocument;\n if (root && root.host) {\n return root;\n }\n return node.ownerDocument;\n}\nfunction append_empty_stylesheet(node) {\n const style_element = element('style');\n append_stylesheet(get_root_for_style(node), style_element);\n return style_element.sheet;\n}\nfunction append_stylesheet(node, style) {\n append(node.head || node, style);\n return style.sheet;\n}\nfunction append_hydration(target, node) {\n if (is_hydrating) {\n init_hydrate(target);\n if ((target.actual_end_child === undefined) || ((target.actual_end_child !== null) && (target.actual_end_child.parentNode !== target))) {\n target.actual_end_child = target.firstChild;\n }\n // Skip nodes of undefined ordering\n while ((target.actual_end_child !== null) && (target.actual_end_child.claim_order === undefined)) {\n target.actual_end_child = target.actual_end_child.nextSibling;\n }\n if (node !== target.actual_end_child) {\n // We only insert if the ordering of this node should be modified or the parent node is not target\n if (node.claim_order !== undefined || node.parentNode !== target) {\n target.insertBefore(node, target.actual_end_child);\n }\n }\n else {\n target.actual_end_child = node.nextSibling;\n }\n }\n else if (node.parentNode !== target || node.nextSibling !== null) {\n target.appendChild(node);\n }\n}\nfunction insert(target, node, anchor) {\n target.insertBefore(node, anchor || null);\n}\nfunction insert_hydration(target, node, anchor) {\n if (is_hydrating && !anchor) {\n append_hydration(target, node);\n }\n else if (node.parentNode !== target || node.nextSibling != anchor) {\n target.insertBefore(node, anchor || null);\n }\n}\nfunction detach(node) {\n if (node.parentNode) {\n node.parentNode.removeChild(node);\n }\n}\nfunction destroy_each(iterations, detaching) {\n for (let i = 0; i < iterations.length; i += 1) {\n if (iterations[i])\n iterations[i].d(detaching);\n }\n}\nfunction element(name) {\n return document.createElement(name);\n}\nfunction element_is(name, is) {\n return document.createElement(name, { is });\n}\nfunction object_without_properties(obj, exclude) {\n const target = {};\n for (const k in obj) {\n if (has_prop(obj, k)\n // @ts-ignore\n && exclude.indexOf(k) === -1) {\n // @ts-ignore\n target[k] = obj[k];\n }\n }\n return target;\n}\nfunction svg_element(name) {\n return document.createElementNS('http://www.w3.org/2000/svg', name);\n}\nfunction text(data) {\n return document.createTextNode(data);\n}\nfunction space() {\n return text(' ');\n}\nfunction empty() {\n return text('');\n}\nfunction comment(content) {\n return document.createComment(content);\n}\nfunction listen(node, event, handler, options) {\n node.addEventListener(event, handler, options);\n return () => node.removeEventListener(event, handler, options);\n}\nfunction prevent_default(fn) {\n return function (event) {\n event.preventDefault();\n // @ts-ignore\n return fn.call(this, event);\n };\n}\nfunction stop_propagation(fn) {\n return function (event) {\n event.stopPropagation();\n // @ts-ignore\n return fn.call(this, event);\n };\n}\nfunction stop_immediate_propagation(fn) {\n return function (event) {\n event.stopImmediatePropagation();\n // @ts-ignore\n return fn.call(this, event);\n };\n}\nfunction self(fn) {\n return function (event) {\n // @ts-ignore\n if (event.target === this)\n fn.call(this, event);\n };\n}\nfunction trusted(fn) {\n return function (event) {\n // @ts-ignore\n if (event.isTrusted)\n fn.call(this, event);\n };\n}\nfunction attr(node, attribute, value) {\n if (value == null)\n node.removeAttribute(attribute);\n else if (node.getAttribute(attribute) !== value)\n node.setAttribute(attribute, value);\n}\n/**\n * List of attributes that should always be set through the attr method,\n * because updating them through the property setter doesn't work reliably.\n * In the example of `width`/`height`, the problem is that the setter only\n * accepts numeric values, but the attribute can also be set to a string like `50%`.\n * If this list becomes too big, rethink this approach.\n */\nconst always_set_through_set_attribute = ['width', 'height'];\nfunction set_attributes(node, attributes) {\n // @ts-ignore\n const descriptors = Object.getOwnPropertyDescriptors(node.__proto__);\n for (const key in attributes) {\n if (attributes[key] == null) {\n node.removeAttribute(key);\n }\n else if (key === 'style') {\n node.style.cssText = attributes[key];\n }\n else if (key === '__value') {\n node.value = node[key] = attributes[key];\n }\n else if (descriptors[key] && descriptors[key].set && always_set_through_set_attribute.indexOf(key) === -1) {\n node[key] = attributes[key];\n }\n else {\n attr(node, key, attributes[key]);\n }\n }\n}\nfunction set_svg_attributes(node, attributes) {\n for (const key in attributes) {\n attr(node, key, attributes[key]);\n }\n}\nfunction set_custom_element_data_map(node, data_map) {\n Object.keys(data_map).forEach((key) => {\n set_custom_element_data(node, key, data_map[key]);\n });\n}\nfunction set_custom_element_data(node, prop, value) {\n if (prop in node) {\n node[prop] = typeof node[prop] === 'boolean' && value === '' ? true : value;\n }\n else {\n attr(node, prop, value);\n }\n}\nfunction set_dynamic_element_data(tag) {\n return (/-/.test(tag)) ? set_custom_element_data_map : set_attributes;\n}\nfunction xlink_attr(node, attribute, value) {\n node.setAttributeNS('http://www.w3.org/1999/xlink', attribute, value);\n}\nfunction get_binding_group_value(group, __value, checked) {\n const value = new Set();\n for (let i = 0; i < group.length; i += 1) {\n if (group[i].checked)\n value.add(group[i].__value);\n }\n if (!checked) {\n value.delete(__value);\n }\n return Array.from(value);\n}\nfunction init_binding_group(group) {\n let _inputs;\n return {\n /* push */ p(...inputs) {\n _inputs = inputs;\n _inputs.forEach(input => group.push(input));\n },\n /* remove */ r() {\n _inputs.forEach(input => group.splice(group.indexOf(input), 1));\n }\n };\n}\nfunction init_binding_group_dynamic(group, indexes) {\n let _group = get_binding_group(group);\n let _inputs;\n function get_binding_group(group) {\n for (let i = 0; i < indexes.length; i++) {\n group = group[indexes[i]] = group[indexes[i]] || [];\n }\n return group;\n }\n function push() {\n _inputs.forEach(input => _group.push(input));\n }\n function remove() {\n _inputs.forEach(input => _group.splice(_group.indexOf(input), 1));\n }\n return {\n /* update */ u(new_indexes) {\n indexes = new_indexes;\n const new_group = get_binding_group(group);\n if (new_group !== _group) {\n remove();\n _group = new_group;\n push();\n }\n },\n /* push */ p(...inputs) {\n _inputs = inputs;\n push();\n },\n /* remove */ r: remove\n };\n}\nfunction to_number(value) {\n return value === '' ? null : +value;\n}\nfunction time_ranges_to_array(ranges) {\n const array = [];\n for (let i = 0; i < ranges.length; i += 1) {\n array.push({ start: ranges.start(i), end: ranges.end(i) });\n }\n return array;\n}\nfunction children(element) {\n return Array.from(element.childNodes);\n}\nfunction init_claim_info(nodes) {\n if (nodes.claim_info === undefined) {\n nodes.claim_info = { last_index: 0, total_claimed: 0 };\n }\n}\nfunction claim_node(nodes, predicate, processNode, createNode, dontUpdateLastIndex = false) {\n // Try to find nodes in an order such that we lengthen the longest increasing subsequence\n init_claim_info(nodes);\n const resultNode = (() => {\n // We first try to find an element after the previous one\n for (let i = nodes.claim_info.last_index; i < nodes.length; i++) {\n const node = nodes[i];\n if (predicate(node)) {\n const replacement = processNode(node);\n if (replacement === undefined) {\n nodes.splice(i, 1);\n }\n else {\n nodes[i] = replacement;\n }\n if (!dontUpdateLastIndex) {\n nodes.claim_info.last_index = i;\n }\n return node;\n }\n }\n // Otherwise, we try to find one before\n // We iterate in reverse so that we don't go too far back\n for (let i = nodes.claim_info.last_index - 1; i >= 0; i--) {\n const node = nodes[i];\n if (predicate(node)) {\n const replacement = processNode(node);\n if (replacement === undefined) {\n nodes.splice(i, 1);\n }\n else {\n nodes[i] = replacement;\n }\n if (!dontUpdateLastIndex) {\n nodes.claim_info.last_index = i;\n }\n else if (replacement === undefined) {\n // Since we spliced before the last_index, we decrease it\n nodes.claim_info.last_index--;\n }\n return node;\n }\n }\n // If we can't find any matching node, we create a new one\n return createNode();\n })();\n resultNode.claim_order = nodes.claim_info.total_claimed;\n nodes.claim_info.total_claimed += 1;\n return resultNode;\n}\nfunction claim_element_base(nodes, name, attributes, create_element) {\n return claim_node(nodes, (node) => node.nodeName === name, (node) => {\n const remove = [];\n for (let j = 0; j < node.attributes.length; j++) {\n const attribute = node.attributes[j];\n if (!attributes[attribute.name]) {\n remove.push(attribute.name);\n }\n }\n remove.forEach(v => node.removeAttribute(v));\n return undefined;\n }, () => create_element(name));\n}\nfunction claim_element(nodes, name, attributes) {\n return claim_element_base(nodes, name, attributes, element);\n}\nfunction claim_svg_element(nodes, name, attributes) {\n return claim_element_base(nodes, name, attributes, svg_element);\n}\nfunction claim_text(nodes, data) {\n return claim_node(nodes, (node) => node.nodeType === 3, (node) => {\n const dataStr = '' + data;\n if (node.data.startsWith(dataStr)) {\n if (node.data.length !== dataStr.length) {\n return node.splitText(dataStr.length);\n }\n }\n else {\n node.data = dataStr;\n }\n }, () => text(data), true // Text nodes should not update last index since it is likely not worth it to eliminate an increasing subsequence of actual elements\n );\n}\nfunction claim_space(nodes) {\n return claim_text(nodes, ' ');\n}\nfunction claim_comment(nodes, data) {\n return claim_node(nodes, (node) => node.nodeType === 8, (node) => {\n node.data = '' + data;\n return undefined;\n }, () => comment(data), true);\n}\nfunction find_comment(nodes, text, start) {\n for (let i = start; i < nodes.length; i += 1) {\n const node = nodes[i];\n if (node.nodeType === 8 /* comment node */ && node.textContent.trim() === text) {\n return i;\n }\n }\n return nodes.length;\n}\nfunction claim_html_tag(nodes, is_svg) {\n // find html opening tag\n const start_index = find_comment(nodes, 'HTML_TAG_START', 0);\n const end_index = find_comment(nodes, 'HTML_TAG_END', start_index);\n if (start_index === end_index) {\n return new HtmlTagHydration(undefined, is_svg);\n }\n init_claim_info(nodes);\n const html_tag_nodes = nodes.splice(start_index, end_index - start_index + 1);\n detach(html_tag_nodes[0]);\n detach(html_tag_nodes[html_tag_nodes.length - 1]);\n const claimed_nodes = html_tag_nodes.slice(1, html_tag_nodes.length - 1);\n for (const n of claimed_nodes) {\n n.claim_order = nodes.claim_info.total_claimed;\n nodes.claim_info.total_claimed += 1;\n }\n return new HtmlTagHydration(claimed_nodes, is_svg);\n}\nfunction set_data(text, data) {\n data = '' + data;\n if (text.data === data)\n return;\n text.data = data;\n}\nfunction set_data_contenteditable(text, data) {\n data = '' + data;\n if (text.wholeText === data)\n return;\n text.data = data;\n}\nfunction set_data_maybe_contenteditable(text, data, attr_value) {\n if (~contenteditable_truthy_values.indexOf(attr_value)) {\n set_data_contenteditable(text, data);\n }\n else {\n set_data(text, data);\n }\n}\nfunction set_input_value(input, value) {\n input.value = value == null ? '' : value;\n}\nfunction set_input_type(input, type) {\n try {\n input.type = type;\n }\n catch (e) {\n // do nothing\n }\n}\nfunction set_style(node, key, value, important) {\n if (value == null) {\n node.style.removeProperty(key);\n }\n else {\n node.style.setProperty(key, value, important ? 'important' : '');\n }\n}\nfunction select_option(select, value, mounting) {\n for (let i = 0; i < select.options.length; i += 1) {\n const option = select.options[i];\n if (option.__value === value) {\n option.selected = true;\n return;\n }\n }\n if (!mounting || value !== undefined) {\n select.selectedIndex = -1; // no option should be selected\n }\n}\nfunction select_options(select, value) {\n for (let i = 0; i < select.options.length; i += 1) {\n const option = select.options[i];\n option.selected = ~value.indexOf(option.__value);\n }\n}\nfunction select_value(select) {\n const selected_option = select.querySelector(':checked');\n return selected_option && selected_option.__value;\n}\nfunction select_multiple_value(select) {\n return [].map.call(select.querySelectorAll(':checked'), option => option.__value);\n}\n// unfortunately this can't be a constant as that wouldn't be tree-shakeable\n// so we cache the result instead\nlet crossorigin;\nfunction is_crossorigin() {\n if (crossorigin === undefined) {\n crossorigin = false;\n try {\n if (typeof window !== 'undefined' && window.parent) {\n void window.parent.document;\n }\n }\n catch (error) {\n crossorigin = true;\n }\n }\n return crossorigin;\n}\nfunction add_iframe_resize_listener(node, fn) {\n const computed_style = getComputedStyle(node);\n if (computed_style.position === 'static') {\n node.style.position = 'relative';\n }\n const iframe = element('iframe');\n iframe.setAttribute('style', 'display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; ' +\n 'overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;');\n iframe.setAttribute('aria-hidden', 'true');\n iframe.tabIndex = -1;\n const crossorigin = is_crossorigin();\n let unsubscribe;\n if (crossorigin) {\n iframe.src = \"data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}</script>\";\n unsubscribe = listen(window, 'message', (event) => {\n if (event.source === iframe.contentWindow)\n fn();\n });\n }\n else {\n iframe.src = 'about:blank';\n iframe.onload = () => {\n unsubscribe = listen(iframe.contentWindow, 'resize', fn);\n // make sure an initial resize event is fired _after_ the iframe is loaded (which is asynchronous)\n // see https://github.com/sveltejs/svelte/issues/4233\n fn();\n };\n }\n append(node, iframe);\n return () => {\n if (crossorigin) {\n unsubscribe();\n }\n else if (unsubscribe && iframe.contentWindow) {\n unsubscribe();\n }\n detach(iframe);\n };\n}\nconst resize_observer_content_box = /* @__PURE__ */ new ResizeObserverSingleton({ box: 'content-box' });\nconst resize_observer_border_box = /* @__PURE__ */ new ResizeObserverSingleton({ box: 'border-box' });\nconst resize_observer_device_pixel_content_box = /* @__PURE__ */ new ResizeObserverSingleton({ box: 'device-pixel-content-box' });\nfunction toggle_class(element, name, toggle) {\n element.classList[toggle ? 'add' : 'remove'](name);\n}\nfunction custom_event(type, detail, { bubbles = false, cancelable = false } = {}) {\n const e = document.createEvent('CustomEvent');\n e.initCustomEvent(type, bubbles, cancelable, detail);\n return e;\n}\nfunction query_selector_all(selector, parent = document.body) {\n return Array.from(parent.querySelectorAll(selector));\n}\nfunction head_selector(nodeId, head) {\n const result = [];\n let started = 0;\n for (const node of head.childNodes) {\n if (node.nodeType === 8 /* comment node */) {\n const comment = node.textContent.trim();\n if (comment === `HEAD_${nodeId}_END`) {\n started -= 1;\n result.push(node);\n }\n else if (comment === `HEAD_${nodeId}_START`) {\n started += 1;\n result.push(node);\n }\n }\n else if (started > 0) {\n result.push(node);\n }\n }\n return result;\n}\nclass HtmlTag {\n constructor(is_svg = false) {\n this.is_svg = false;\n this.is_svg = is_svg;\n this.e = this.n = null;\n }\n c(html) {\n this.h(html);\n }\n m(html, target, anchor = null) {\n if (!this.e) {\n if (this.is_svg)\n this.e = svg_element(target.nodeName);\n /** #7364 target for <template> may be provided as #document-fragment(11) */\n else\n this.e = element((target.nodeType === 11 ? 'TEMPLATE' : target.nodeName));\n this.t = target.tagName !== 'TEMPLATE' ? target : target.content;\n this.c(html);\n }\n this.i(anchor);\n }\n h(html) {\n this.e.innerHTML = html;\n this.n = Array.from(this.e.nodeName === 'TEMPLATE' ? this.e.content.childNodes : this.e.childNodes);\n }\n i(anchor) {\n for (let i = 0; i < this.n.length; i += 1) {\n insert(this.t, this.n[i], anchor);\n }\n }\n p(html) {\n this.d();\n this.h(html);\n this.i(this.a);\n }\n d() {\n this.n.forEach(detach);\n }\n}\nclass HtmlTagHydration extends HtmlTag {\n constructor(claimed_nodes, is_svg = false) {\n super(is_svg);\n this.e = this.n = null;\n this.l = claimed_nodes;\n }\n c(html) {\n if (this.l) {\n this.n = this.l;\n }\n else {\n super.c(html);\n }\n }\n i(anchor) {\n for (let i = 0; i < this.n.length; i += 1) {\n insert_hydration(this.t, this.n[i], anchor);\n }\n }\n}\nfunction attribute_to_object(attributes) {\n const result = {};\n for (const attribute of attributes) {\n result[attribute.name] = attribute.value;\n }\n return result;\n}\nfunction get_custom_elements_slots(element) {\n const result = {};\n element.childNodes.forEach((node) => {\n result[node.slot || 'default'] = true;\n });\n return result;\n}\nfunction construct_svelte_component(component, props) {\n return new component(props);\n}\n\n// we need to store the information for multiple documents because a Svelte application could also contain iframes\n// https://github.com/sveltejs/svelte/issues/3624\nconst managed_styles = new Map();\nlet active = 0;\n// https://github.com/darkskyapp/string-hash/blob/master/index.js\nfunction hash(str) {\n let hash = 5381;\n let i = str.length;\n while (i--)\n hash = ((hash << 5) - hash) ^ str.charCodeAt(i);\n return hash >>> 0;\n}\nfunction create_style_information(doc, node) {\n const info = { stylesheet: append_empty_stylesheet(node), rules: {} };\n managed_styles.set(doc, info);\n return info;\n}\nfunction create_rule(node, a, b, duration, delay, ease, fn, uid = 0) {\n const step = 16.666 / duration;\n let keyframes = '{\\n';\n for (let p = 0; p <= 1; p += step) {\n const t = a + (b - a) * ease(p);\n keyframes += p * 100 + `%{${fn(t, 1 - t)}}\\n`;\n }\n const rule = keyframes + `100% {${fn(b, 1 - b)}}\\n}`;\n const name = `__svelte_${hash(rule)}_${uid}`;\n const doc = get_root_for_style(node);\n const { stylesheet, rules } = managed_styles.get(doc) || create_style_information(doc, node);\n if (!rules[name]) {\n rules[name] = true;\n stylesheet.insertRule(`@keyframes ${name} ${rule}`, stylesheet.cssRules.length);\n }\n const animation = node.style.animation || '';\n node.style.animation = `${animation ? `${animation}, ` : ''}${name} ${duration}ms linear ${delay}ms 1 both`;\n active += 1;\n return name;\n}\nfunction delete_rule(node, name) {\n const previous = (node.style.animation || '').split(', ');\n const next = previous.filter(name\n ? anim => anim.indexOf(name) < 0 // remove specific animation\n : anim => anim.indexOf('__svelte') === -1 // remove all Svelte animations\n );\n const deleted = previous.length - next.length;\n if (deleted) {\n node.style.animation = next.join(', ');\n active -= deleted;\n if (!active)\n clear_rules();\n }\n}\nfunction clear_rules() {\n raf(() => {\n if (active)\n return;\n managed_styles.forEach(info => {\n const { ownerNode } = info.stylesheet;\n // there is no ownerNode if it runs on jsdom.\n if (ownerNode)\n detach(ownerNode);\n });\n managed_styles.clear();\n });\n}\n\nfunction create_animation(node, from, fn, params) {\n if (!from)\n return noop;\n const to = node.getBoundingClientRect();\n if (from.left === to.left && from.right === to.right && from.top === to.top && from.bottom === to.bottom)\n return noop;\n const { delay = 0, duration = 300, easing = identity, \n // @ts-ignore todo: should this be separated from destructuring? Or start/end added to public api and documentation?\n start: start_time = now() + delay, \n // @ts-ignore todo:\n end = start_time + duration, tick = noop, css } = fn(node, { from, to }, params);\n let running = true;\n let started = false;\n let name;\n function start() {\n if (css) {\n name = create_rule(node, 0, 1, duration, delay, easing, css);\n }\n if (!delay) {\n started = true;\n }\n }\n function stop() {\n if (css)\n delete_rule(node, name);\n running = false;\n }\n loop(now => {\n if (!started && now >= start_time) {\n started = true;\n }\n if (started && now >= end) {\n tick(1, 0);\n stop();\n }\n if (!running) {\n return false;\n }\n if (started) {\n const p = now - start_time;\n const t = 0 + 1 * easing(p / duration);\n tick(t, 1 - t);\n }\n return true;\n });\n start();\n tick(0, 1);\n return stop;\n}\nfunction fix_position(node) {\n const style = getComputedStyle(node);\n if (style.position !== 'absolute' && style.position !== 'fixed') {\n const { width, height } = style;\n const a = node.getBoundingClientRect();\n node.style.position = 'absolute';\n node.style.width = width;\n node.style.height = height;\n add_transform(node, a);\n }\n}\nfunction add_transform(node, a) {\n const b = node.getBoundingClientRect();\n if (a.left !== b.left || a.top !== b.top) {\n const style = getComputedStyle(node);\n const transform = style.transform === 'none' ? '' : style.transform;\n node.style.transform = `${transform} translate(${a.left - b.left}px, ${a.top - b.top}px)`;\n }\n}\n\nlet current_component;\nfunction set_current_component(component) {\n current_component = component;\n}\nfunction get_current_component() {\n if (!current_component)\n throw new Error('Function called outside component initialization');\n return current_component;\n}\n/**\n * Schedules a callback to run immediately before the component is updated after any state change.\n *\n * The first time the callback runs will be before the initial `onMount`\n *\n * https://svelte.dev/docs#run-time-svelte-beforeupdate\n */\nfunction beforeUpdate(fn) {\n get_current_component().$$.before_update.push(fn);\n}\n/**\n * The `onMount` function schedules a callback to run as soon as the component has been mounted to the DOM.\n * It must be called during the component's initialisation (but doesn't need to live *inside* the component;\n * it can be called from an external module).\n *\n * `onMount` does not run inside a [server-side component](/docs#run-time-server-side-component-api).\n *\n * https://svelte.dev/docs#run-time-svelte-onmount\n */\nfunction onMount(fn) {\n get_current_component().$$.on_mount.push(fn);\n}\n/**\n * Schedules a callback to run immediately after the component has been updated.\n *\n * The first time the callback runs will be after the initial `onMount`\n */\nfunction afterUpdate(fn) {\n get_current_component().$$.after_update.push(fn);\n}\n/**\n * Schedules a callback to run immediately before the component is unmounted.\n *\n * Out of `onMount`, `beforeUpdate`, `afterUpdate` and `onDestroy`, this is the\n * only one that runs inside a server-side component.\n *\n * https://svelte.dev/docs#run-time-svelte-ondestroy\n */\nfunction onDestroy(fn) {\n get_current_component().$$.on_destroy.push(fn);\n}\n/**\n * Creates an event dispatcher that can be used to dispatch [component events](/docs#template-syntax-component-directives-on-eventname).\n * Event dispatchers are functions that can take two arguments: `name` and `detail`.\n *\n * Component events created with `createEventDispatcher` create a\n * [CustomEvent](https://developer.mozilla.org/en-US/docs/Web/API/CustomEvent).\n * These events do not [bubble](https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Building_blocks/Events#Event_bubbling_and_capture).\n * The `detail` argument corresponds to the [CustomEvent.detail](https://developer.mozilla.org/en-US/docs/Web/API/CustomEvent/detail)\n * property and can contain any type of data.\n *\n * https://svelte.dev/docs#run-time-svelte-createeventdispatcher\n */\nfunction createEventDispatcher() {\n const component = get_current_component();\n return (type, detail, { cancelable = false } = {}) => {\n const callbacks = component.$$.callbacks[type];\n if (callbacks) {\n // TODO are there situations where events could be dispatched\n // in a server (non-DOM) environment?\n const event = custom_event(type, detail, { cancelable });\n callbacks.slice().forEach(fn => {\n fn.call(component, event);\n });\n return !event.defaultPrevented;\n }\n return true;\n };\n}\n/**\n * Associates an arbitrary `context` object with the current component and the specified `key`\n * and returns that object. The context is then available to children of the component\n * (including slotted content) with `getContext`.\n *\n * Like lifecycle functions, this must be called during component initialisation.\n *\n * https://svelte.dev/docs#run-time-svelte-setcontext\n */\nfunction setContext(key, context) {\n get_current_component().$$.context.set(key, context);\n return context;\n}\n/**\n * Retrieves the context that belongs to the closest parent component with the specified `key`.\n * Must be called during component initialisation.\n *\n * https://svelte.dev/docs#run-time-svelte-getcontext\n */\nfunction getContext(key) {\n return get_current_component().$$.context.get(key);\n}\n/**\n * Retrieves the whole context map that belongs to the closest parent component.\n * Must be called during component initialisation. Useful, for example, if you\n * programmatically create a component and want to pass the existing context to it.\n *\n * https://svelte.dev/docs#run-time-svelte-getallcontexts\n */\nfunction getAllContexts() {\n return get_current_component().$$.context;\n}\n/**\n * Checks whether a given `key` has been set in the context of a parent component.\n * Must be called during component initialisation.\n *\n * https://svelte.dev/docs#run-time-svelte-hascontext\n */\nfunction hasContext(key) {\n return get_current_component().$$.context.has(key);\n}\n// TODO figure out if we still want to support\n// shorthand events, or if we want to implement\n// a real bubbling mechanism\nfunction bubble(component, event) {\n const callbacks = component.$$.callbacks[event.type];\n if (callbacks) {\n // @ts-ignore\n callbacks.slice().forEach(fn => fn.call(this, event));\n }\n}\n\nconst dirty_components = [];\nconst intros = { enabled: false };\nconst binding_callbacks = [];\nlet render_callbacks = [];\nconst flush_callbacks = [];\nconst resolved_promise = /* @__PURE__ */ Promise.resolve();\nlet update_scheduled = false;\nfunction schedule_update() {\n if (!update_scheduled) {\n update_scheduled = true;\n resolved_promise.then(flush);\n }\n}\nfunction tick() {\n schedule_update();\n return resolved_promise;\n}\nfunction add_render_callback(fn) {\n render_callbacks.push(fn);\n}\nfunction add_flush_callback(fn) {\n flush_callbacks.push(fn);\n}\n// flush() calls callbacks in this order:\n// 1. All beforeUpdate callbacks, in order: parents before children\n// 2. All bind:this callbacks, in reverse order: children before parents.\n// 3. All afterUpdate callbacks, in order: parents before children. EXCEPT\n// for afterUpdates called during the initial onMount, which are called in\n// reverse order: children before parents.\n// Since callbacks might update component values, which could trigger another\n// call to flush(), the following steps guard against this:\n// 1. During beforeUpdate, any updated components will be added to the\n// dirty_components array and will cause a reentrant call to flush(). Because\n// the flush index is kept outside the function, the reentrant call will pick\n// up where the earlier call left off and go through all dirty components. The\n// current_component value is saved and restored so that the reentrant call will\n// not interfere with the \"parent\" flush() call.\n// 2. bind:this callbacks cannot trigger new flush() calls.\n// 3. During afterUpdate, any updated components will NOT have their afterUpdate\n// callback called a second time; the seen_callbacks set, outside the flush()\n// function, guarantees this behavior.\nconst seen_callbacks = new Set();\nlet flushidx = 0; // Do *not* move this inside the flush() function\nfunction flush() {\n // Do not reenter flush while dirty components are updated, as this can\n // result in an infinite loop. Instead, let the inner flush handle it.\n // Reentrancy is ok afterwards for bindings etc.\n if (flushidx !== 0) {\n return;\n }\n const saved_component = current_component;\n do {\n // first, call beforeUpdate functions\n // and update components\n try {\n while (flushidx < dirty_components.length) {\n const component = dirty_components[flushidx];\n flushidx++;\n set_current_component(component);\n update(component.$$);\n }\n }\n catch (e) {\n // reset dirty state to not end up in a deadlocked state and then rethrow\n dirty_components.length = 0;\n flushidx = 0;\n throw e;\n }\n set_current_component(null);\n dirty_components.length = 0;\n flushidx = 0;\n while (binding_callbacks.length)\n binding_callbacks.pop()();\n // then, once components are updated, call\n // afterUpdate functions. This may cause\n // subsequent updates...\n for (let i = 0; i < render_callbacks.length; i += 1) {\n const callback = render_callbacks[i];\n if (!seen_callbacks.has(callback)) {\n // ...so guard against infinite loops\n seen_callbacks.add(callback);\n callback();\n }\n }\n render_callbacks.length = 0;\n } while (dirty_components.length);\n while (flush_callbacks.length) {\n flush_callbacks.pop()();\n }\n update_scheduled = false;\n seen_callbacks.clear();\n set_current_component(saved_component);\n}\nfunction update($$) {\n if ($$.fragment !== null) {\n $$.update();\n run_all($$.before_update);\n const dirty = $$.dirty;\n $$.dirty = [-1];\n $$.fragment && $$.fragment.p($$.ctx, dirty);\n $$.after_update.forEach(add_render_callback);\n }\n}\n/**\n * Useful for example to execute remaining `afterUpdate` callbacks before executing `destroy`.\n */\nfunction flush_render_callbacks(fns) {\n const filtered = [];\n const targets = [];\n render_callbacks.forEach((c) => fns.indexOf(c) === -1 ? filtered.push(c) : targets.push(c));\n targets.forEach((c) => c());\n render_callbacks = filtered;\n}\n\nlet promise;\nfunction wait() {\n if (!promise) {\n promise = Promise.resolve();\n promise.then(() => {\n promise = null;\n });\n }\n return promise;\n}\nfunction dispatch(node, direction, kind) {\n node.dispatchEvent(custom_event(`${direction ? 'intro' : 'outro'}${kind}`));\n}\nconst outroing = new Set();\nlet outros;\nfunction group_outros() {\n outros = {\n r: 0,\n c: [],\n p: outros // parent group\n };\n}\nfunction check_outros() {\n if (!outros.r) {\n run_all(outros.c);\n }\n outros = outros.p;\n}\nfunction transition_in(block, local) {\n if (block && block.i) {\n outroing.delete(block);\n block.i(local);\n }\n}\nfunction transition_out(block, local, detach, callback) {\n if (block && block.o) {\n if (outroing.has(block))\n return;\n outroing.add(block);\n outros.c.push(() => {\n outroing.delete(block);\n if (callback) {\n if (detach)\n block.d(1);\n callback();\n }\n });\n block.o(local);\n }\n else if (callback) {\n callback();\n }\n}\nconst null_transition = { duration: 0 };\nfunction create_in_transition(node, fn, params) {\n const options = { direction: 'in' };\n let config = fn(node, params, options);\n let running = false;\n let animation_name;\n let task;\n let uid = 0;\n function cleanup() {\n if (animation_name)\n delete_rule(node, animation_name);\n }\n function go() {\n const { delay = 0, duration = 300, easing = identity, tick = noop, css } = config || null_transition;\n if (css)\n animation_name = create_rule(node, 0, 1, duration, delay, easing, css, uid++);\n tick(0, 1);\n const start_time = now() + delay;\n const end_time = start_time + duration;\n if (task)\n task.abort();\n running = true;\n add_render_callback(() => dispatch(node, true, 'start'));\n task = loop(now => {\n if (running) {\n if (now >= end_time) {\n tick(1, 0);\n dispatch(node, true, 'end');\n cleanup();\n return running = false;\n }\n if (now >= start_time) {\n const t = easing((now - start_time) / duration);\n tick(t, 1 - t);\n }\n }\n return running;\n });\n }\n let started = false;\n return {\n start() {\n if (started)\n return;\n started = true;\n delete_rule(node);\n if (is_function(config)) {\n config = config(options);\n wait().then(go);\n }\n else {\n go();\n }\n },\n invalidate() {\n started = false;\n },\n end() {\n if (running) {\n cleanup();\n running = false;\n }\n }\n };\n}\nfunction create_out_transition(node, fn, params) {\n const options = { direction: 'out' };\n let config = fn(node, params, options);\n let running = true;\n let animation_name;\n const group = outros;\n group.r += 1;\n function go() {\n const { delay = 0, duration = 300, easing = identity, tick = noop, css } = config || null_transition;\n if (css)\n animation_name = create_rule(node, 1, 0, duration, delay, easing, css);\n const start_time = now() + delay;\n const end_time = start_time + duration;\n add_render_callback(() => dispatch(node, false, 'start'));\n loop(now => {\n if (running) {\n if (now >= end_time) {\n tick(0, 1);\n dispatch(node, false, 'end');\n if (!--group.r) {\n // this will result in `end()` being called,\n // so we don't need to clean up here\n run_all(group.c);\n }\n return false;\n }\n if (now >= start_time) {\n const t = easing((now - start_time) / duration);\n tick(1 - t, t);\n }\n }\n return running;\n });\n }\n if (is_function(config)) {\n wait().then(() => {\n // @ts-ignore\n config = config(options);\n go();\n });\n }\n else {\n go();\n }\n return {\n end(reset) {\n if (reset && config.tick) {\n config.tick(1, 0);\n }\n if (running) {\n if (animation_name)\n delete_rule(node, animation_name);\n running = false;\n }\n }\n };\n}\nfunction create_bidirectional_transition(node, fn, params, intro) {\n const options = { direction: 'both' };\n let config = fn(node, params, options);\n let t = intro ? 0 : 1;\n let running_program = null;\n let pending_program = null;\n let animation_name = null;\n function clear_animation() {\n if (animation_name)\n delete_rule(node, animation_name);\n }\n function init(program, duration) {\n const d = (program.b - t);\n duration *= Math.abs(d);\n return {\n a: t,\n b: program.b,\n d,\n duration,\n start: program.start,\n end: program.start + duration,\n group: program.group\n };\n }\n function go(b) {\n const { delay = 0, duration = 300, easing = identity, tick = noop, css } = config || null_transition;\n const program = {\n start: now() + delay,\n b\n };\n if (!b) {\n // @ts-ignore todo: improve typings\n program.group = outros;\n outros.r += 1;\n }\n if (running_program || pending_program) {\n pending_program = program;\n }\n else {\n // if this is an intro, and there's a delay, we need to do\n // an initial tick and/or apply CSS animation immediately\n if (css) {\n clear_animation();\n animation_name = create_rule(node, t, b, duration, delay, easing, css);\n }\n if (b)\n tick(0, 1);\n running_program = init(program, duration);\n add_render_callback(() => dispatch(node, b, 'start'));\n loop(now => {\n if (pending_program && now > pending_program.start) {\n running_program = init(pending_program, duration);\n pending_program = null;\n dispatch(node, running_program.b, 'start');\n if (css) {\n clear_animation();\n animation_name = create_rule(node, t, running_program.b, running_program.duration, 0, easing, config.css);\n }\n }\n if (running_program) {\n if (now >= running_program.end) {\n tick(t = running_program.b, 1 - t);\n dispatch(node, running_program.b, 'end');\n if (!pending_program) {\n // we're done\n if (running_program.b) {\n // intro — we can tidy up immediately\n clear_animation();\n }\n else {\n // outro — needs to be coordinated\n if (!--running_program.group.r)\n run_all(running_program.group.c);\n }\n }\n running_program = null;\n }\n else if (now >= running_program.start) {\n const p = now - running_program.start;\n t = running_program.a + running_program.d * easing(p / running_program.duration);\n tick(t, 1 - t);\n }\n }\n return !!(running_program || pending_program);\n });\n }\n }\n return {\n run(b) {\n if (is_function(config)) {\n wait().then(() => {\n // @ts-ignore\n config = config(options);\n go(b);\n });\n }\n else {\n go(b);\n }\n },\n end() {\n clear_animation();\n running_program = pending_program = null;\n }\n };\n}\n\nfunction handle_promise(promise, info) {\n const token = info.token = {};\n function update(type, index, key, value) {\n if (info.token !== token)\n return;\n info.resolved = value;\n let child_ctx = info.ctx;\n if (key !== undefined) {\n child_ctx = child_ctx.slice();\n child_ctx[key] = value;\n }\n const block = type && (info.current = type)(child_ctx);\n let needs_flush = false;\n if (info.block) {\n if (info.blocks) {\n info.blocks.forEach((block, i) => {\n if (i !== index && block) {\n group_outros();\n transition_out(block, 1, 1, () => {\n if (info.blocks[i] === block) {\n info.blocks[i] = null;\n }\n });\n check_outros();\n }\n });\n }\n else {\n info.block.d(1);\n }\n block.c();\n transition_in(block, 1);\n block.m(info.mount(), info.anchor);\n needs_flush = true;\n }\n info.block = block;\n if (info.blocks)\n info.blocks[index] = block;\n if (needs_flush) {\n flush();\n }\n }\n if (is_promise(promise)) {\n const current_component = get_current_component();\n promise.then(value => {\n set_current_component(current_component);\n update(info.then, 1, info.value, value);\n set_current_component(null);\n }, error => {\n set_current_component(current_component);\n update(info.catch, 2, info.error, error);\n set_current_component(null);\n if (!info.hasCatch) {\n throw error;\n }\n });\n // if we previously had a then/catch block, destroy it\n if (info.current !== info.pending) {\n update(info.pending, 0);\n return true;\n }\n }\n else {\n if (info.current !== info.then) {\n update(info.then, 1, info.value, promise);\n return true;\n }\n info.resolved = promise;\n }\n}\nfunction update_await_block_branch(info, ctx, dirty) {\n const child_ctx = ctx.slice();\n const { resolved } = info;\n if (info.current === info.then) {\n child_ctx[info.value] = resolved;\n }\n if (info.current === info.catch) {\n child_ctx[info.error] = resolved;\n }\n info.block.p(child_ctx, dirty);\n}\n\nfunction destroy_block(block, lookup) {\n block.d(1);\n lookup.delete(block.key);\n}\nfunction outro_and_destroy_block(block, lookup) {\n transition_out(block, 1, 1, () => {\n lookup.delete(block.key);\n });\n}\nfunction fix_and_destroy_block(block, lookup) {\n block.f();\n destroy_block(block, lookup);\n}\nfunction fix_and_outro_and_destroy_block(block, lookup) {\n block.f();\n outro_and_destroy_block(block, lookup);\n}\nfunction update_keyed_each(old_blocks, dirty, get_key, dynamic, ctx, list, lookup, node, destroy, create_each_block, next, get_context) {\n let o = old_blocks.length;\n let n = list.length;\n let i = o;\n const old_indexes = {};\n while (i--)\n old_indexes[old_blocks[i].key] = i;\n const new_blocks = [];\n const new_lookup = new Map();\n const deltas = new Map();\n const updates = [];\n i = n;\n while (i--) {\n const child_ctx = get_context(ctx, list, i);\n const key = get_key(child_ctx);\n let block = lookup.get(key);\n if (!block) {\n block = create_each_block(key, child_ctx);\n block.c();\n }\n else if (dynamic) {\n // defer updates until all the DOM shuffling is done\n updates.push(() => block.p(child_ctx, dirty));\n }\n new_lookup.set(key, new_blocks[i] = block);\n if (key in old_indexes)\n deltas.set(key, Math.abs(i - old_indexes[key]));\n }\n const will_move = new Set();\n const did_move = new Set();\n function insert(block) {\n transition_in(block, 1);\n block.m(node, next);\n lookup.set(block.key, block);\n next = block.first;\n n--;\n }\n while (o && n) {\n const new_block = new_blocks[n - 1];\n const old_block = old_blocks[o - 1];\n const new_key = new_block.key;\n const old_key = old_block.key;\n if (new_block === old_block) {\n // do nothing\n next = new_block.first;\n o--;\n n--;\n }\n else if (!new_lookup.has(old_key)) {\n // remove old block\n destroy(old_block, lookup);\n o--;\n }\n else if (!lookup.has(new_key) || will_move.has(new_key)) {\n insert(new_block);\n }\n else if (did_move.has(old_key)) {\n o--;\n }\n else if (deltas.get(new_key) > deltas.get(old_key)) {\n did_move.add(new_key);\n insert(new_block);\n }\n else {\n will_move.add(old_key);\n o--;\n }\n }\n while (o--) {\n const old_block = old_blocks[o];\n if (!new_lookup.has(old_block.key))\n destroy(old_block, lookup);\n }\n while (n)\n insert(new_blocks[n - 1]);\n run_all(updates);\n return new_blocks;\n}\nfunction validate_each_keys(ctx, list, get_context, get_key) {\n const keys = new Set();\n for (let i = 0; i < list.length; i++) {\n const key = get_key(get_context(ctx, list, i));\n if (keys.has(key)) {\n throw new Error('Cannot have duplicate keys in a keyed each');\n }\n keys.add(key);\n }\n}\n\nfunction get_spread_update(levels, updates) {\n const update = {};\n const to_null_out = {};\n const accounted_for = { $$scope: 1 };\n let i = levels.length;\n while (i--) {\n const o = levels[i];\n const n = updates[i];\n if (n) {\n for (const key in o) {\n if (!(key in n))\n to_null_out[key] = 1;\n }\n for (const key in n) {\n if (!accounted_for[key]) {\n update[key] = n[key];\n accounted_for[key] = 1;\n }\n }\n levels[i] = n;\n }\n else {\n for (const key in o) {\n accounted_for[key] = 1;\n }\n }\n }\n for (const key in to_null_out) {\n if (!(key in update))\n update[key] = undefined;\n }\n return update;\n}\nfunction get_spread_object(spread_props) {\n return typeof spread_props === 'object' && spread_props !== null ? spread_props : {};\n}\n\nconst _boolean_attributes = [\n 'allowfullscreen',\n 'allowpaymentrequest',\n 'async',\n 'autofocus',\n 'autoplay',\n 'checked',\n 'controls',\n 'default',\n 'defer',\n 'disabled',\n 'formnovalidate',\n 'hidden',\n 'inert',\n 'ismap',\n 'loop',\n 'multiple',\n 'muted',\n 'nomodule',\n 'novalidate',\n 'open',\n 'playsinline',\n 'readonly',\n 'required',\n 'reversed',\n 'selected'\n];\n/**\n * List of HTML boolean attributes (e.g. `<input disabled>`).\n * Source: https://html.spec.whatwg.org/multipage/indices.html\n */\nconst boolean_attributes = new Set([..._boolean_attributes]);\n\n/** regex of all html void element names */\nconst void_element_names = /^(?:area|base|br|col|command|embed|hr|img|input|keygen|link|meta|param|source|track|wbr)$/;\nfunction is_void(name) {\n return void_element_names.test(name) || name.toLowerCase() === '!doctype';\n}\n\nconst invalid_attribute_name_character = /[\\s'\">/=\\u{FDD0}-\\u{FDEF}\\u{FFFE}\\u{FFFF}\\u{1FFFE}\\u{1FFFF}\\u{2FFFE}\\u{2FFFF}\\u{3FFFE}\\u{3FFFF}\\u{4FFFE}\\u{4FFFF}\\u{5FFFE}\\u{5FFFF}\\u{6FFFE}\\u{6FFFF}\\u{7FFFE}\\u{7FFFF}\\u{8FFFE}\\u{8FFFF}\\u{9FFFE}\\u{9FFFF}\\u{AFFFE}\\u{AFFFF}\\u{BFFFE}\\u{BFFFF}\\u{CFFFE}\\u{CFFFF}\\u{DFFFE}\\u{DFFFF}\\u{EFFFE}\\u{EFFFF}\\u{FFFFE}\\u{FFFFF}\\u{10FFFE}\\u{10FFFF}]/u;\n// https://html.spec.whatwg.org/multipage/syntax.html#attributes-2\n// https://infra.spec.whatwg.org/#noncharacter\nfunction spread(args, attrs_to_add) {\n const attributes = Object.assign({}, ...args);\n if (attrs_to_add) {\n const classes_to_add = attrs_to_add.classes;\n const styles_to_add = attrs_to_add.styles;\n if (classes_to_add) {\n if (attributes.class == null) {\n attributes.class = classes_to_add;\n }\n else {\n attributes.class += ' ' + classes_to_add;\n }\n }\n if (styles_to_add) {\n if (attributes.style == null) {\n attributes.style = style_object_to_string(styles_to_add);\n }\n else {\n attributes.style = style_object_to_string(merge_ssr_styles(attributes.style, styles_to_add));\n }\n }\n }\n let str = '';\n Object.keys(attributes).forEach(name => {\n if (invalid_attribute_name_character.test(name))\n return;\n const value = attributes[name];\n if (value === true)\n str += ' ' + name;\n else if (boolean_attributes.has(name.toLowerCase())) {\n if (value)\n str += ' ' + name;\n }\n else if (value != null) {\n str += ` ${name}=\"${value}\"`;\n }\n });\n return str;\n}\nfunction merge_ssr_styles(style_attribute, style_directive) {\n const style_object = {};\n for (const individual_style of style_attribute.split(';')) {\n const colon_index = individual_style.indexOf(':');\n const name = individual_style.slice(0, colon_index).trim();\n const value = individual_style.slice(colon_index + 1).trim();\n if (!name)\n continue;\n style_object[name] = value;\n }\n for (const name in style_directive) {\n const value = style_directive[name];\n if (value) {\n style_object[name] = value;\n }\n else {\n delete style_object[name];\n }\n }\n return style_object;\n}\nconst ATTR_REGEX = /[&\"]/g;\nconst CONTENT_REGEX = /[&<]/g;\n/**\n * Note: this method is performance sensitive and has been optimized\n * https://github.com/sveltejs/svelte/pull/5701\n */\nfunction escape(value, is_attr = false) {\n const str = String(value);\n const pattern = is_attr ? ATTR_REGEX : CONTENT_REGEX;\n pattern.lastIndex = 0;\n let escaped = '';\n let last = 0;\n while (pattern.test(str)) {\n const i = pattern.lastIndex - 1;\n const ch = str[i];\n escaped += str.substring(last, i) + (ch === '&' ? '&amp;' : (ch === '\"' ? '&quot;' : '&lt;'));\n last = i + 1;\n }\n return escaped + str.substring(last);\n}\nfunction escape_attribute_value(value) {\n // keep booleans, null, and undefined for the sake of `spread`\n const should_escape = typeof value === 'string' || (value && typeof value === 'object');\n return should_escape ? escape(value, true) : value;\n}\nfunction escape_object(obj) {\n const result = {};\n for (const key in obj) {\n result[key] = escape_attribute_value(obj[key]);\n }\n return result;\n}\nfunction each(items, fn) {\n let str = '';\n for (let i = 0; i < items.length; i += 1) {\n str += fn(items[i], i);\n }\n return str;\n}\nconst missing_component = {\n $$render: () => ''\n};\nfunction validate_component(component, name) {\n if (!component || !component.$$render) {\n if (name === 'svelte:component')\n name += ' this={...}';\n throw new Error(`<${name}> is not a valid SSR component. You may need to review your build config to ensure that dependencies are compiled, rather than imported as pre-compiled modules. Otherwise you may need to fix a <${name}>.`);\n }\n return component;\n}\nfunction debug(file, line, column, values) {\n console.log(`{@debug} ${file ? file + ' ' : ''}(${line}:${column})`); // eslint-disable-line no-console\n console.log(values); // eslint-disable-line no-console\n return '';\n}\nlet on_destroy;\nfunction create_ssr_component(fn) {\n function $$render(result, props, bindings, slots, context) {\n const parent_component = current_component;\n const $$ = {\n on_destroy,\n context: new Map(context || (parent_component ? parent_component.$$.context : [])),\n // these will be immediately discarded\n on_mount: [],\n before_update: [],\n after_update: [],\n callbacks: blank_object()\n };\n set_current_component({ $$ });\n const html = fn(result, props, bindings, slots);\n set_current_component(parent_component);\n return html;\n }\n return {\n render: (props = {}, { $$slots = {}, context = new Map() } = {}) => {\n on_destroy = [];\n const result = { title: '', head: '', css: new Set() };\n const html = $$render(result, props, {}, $$slots, context);\n run_all(on_destroy);\n return {\n html,\n css: {\n code: Array.from(result.css).map(css => css.code).join('\\n'),\n map: null // TODO\n },\n head: result.title + result.head\n };\n },\n $$render\n };\n}\nfunction add_attribute(name, value, boolean) {\n if (value == null || (boolean && !value))\n return '';\n const assignment = (boolean && value === true) ? '' : `=\"${escape(value, true)}\"`;\n return ` ${name}${assignment}`;\n}\nfunction add_classes(classes) {\n return classes ? ` class=\"${classes}\"` : '';\n}\nfunction style_object_to_string(style_object) {\n return Object.keys(style_object)\n .filter(key => style_object[key])\n .map(key => `${key}: ${escape_attribute_value(style_object[key])};`)\n .join(' ');\n}\nfunction add_styles(style_object) {\n const styles = style_object_to_string(style_object);\n return styles ? ` style=\"${styles}\"` : '';\n}\n\nfunction bind(component, name, callback) {\n const index = component.$$.props[name];\n if (index !== undefined) {\n component.$$.bound[index] = callback;\n callback(component.$$.ctx[index]);\n }\n}\nfunction create_component(block) {\n block && block.c();\n}\nfunction claim_component(block, parent_nodes) {\n block && block.l(parent_nodes);\n}\nfunction mount_component(component, target, anchor, customElement) {\n const { fragment, after_update } = component.$$;\n fragment && fragment.m(target, anchor);\n if (!customElement) {\n // onMount happens before the initial afterUpdate\n add_render_callback(() => {\n const new_on_destroy = component.$$.on_mount.map(run).filter(is_function);\n // if the component was destroyed immediately\n // it will update the `$$.on_destroy` reference to `null`.\n // the destructured on_destroy may still reference to the old array\n if (component.$$.on_destroy) {\n component.$$.on_destroy.push(...new_on_destroy);\n }\n else {\n // Edge case - component was destroyed immediately,\n // most likely as a result of a binding initialising\n run_all(new_on_destroy);\n }\n component.$$.on_mount = [];\n });\n }\n after_update.forEach(add_render_callback);\n}\nfunction destroy_component(component, detaching) {\n const $$ = component.$$;\n if ($$.fragment !== null) {\n flush_render_callbacks($$.after_update);\n run_all($$.on_destroy);\n $$.fragment && $$.fragment.d(detaching);\n // TODO null out other refs, including component.$$ (but need to\n // preserve final state?)\n $$.on_destroy = $$.fragment = null;\n $$.ctx = [];\n }\n}\nfunction make_dirty(component, i) {\n if (component.$$.dirty[0] === -1) {\n dirty_components.push(component);\n schedule_update();\n component.$$.dirty.fill(0);\n }\n component.$$.dirty[(i / 31) | 0] |= (1 << (i % 31));\n}\nfunction init(component, options, instance, create_fragment, not_equal, props, append_styles, dirty = [-1]) {\n const parent_component = current_component;\n set_current_component(component);\n const $$ = component.$$ = {\n fragment: null,\n ctx: [],\n // state\n props,\n update: noop,\n not_equal,\n bound: blank_object(),\n // lifecycle\n on_mount: [],\n on_destroy: [],\n on_disconnect: [],\n before_update: [],\n after_update: [],\n context: new Map(options.context || (parent_component ? parent_component.$$.context : [])),\n // everything else\n callbacks: blank_object(),\n dirty,\n skip_bound: false,\n root: options.target || parent_component.$$.root\n };\n append_styles && append_styles($$.root);\n let ready = false;\n $$.ctx = instance\n ? instance(component, options.props || {}, (i, ret, ...rest) => {\n const value = rest.length ? rest[0] : ret;\n if ($$.ctx && not_equal($$.ctx[i], $$.ctx[i] = value)) {\n if (!$$.skip_bound && $$.bound[i])\n $$.bound[i](value);\n if (ready)\n make_dirty(component, i);\n }\n return ret;\n })\n : [];\n $$.update();\n ready = true;\n run_all($$.before_update);\n // `false` as a special case of no DOM component\n $$.fragment = create_fragment ? create_fragment($$.ctx) : false;\n if (options.target) {\n if (options.hydrate) {\n start_hydrating();\n const nodes = children(options.target);\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n $$.fragment && $$.fragment.l(nodes);\n nodes.forEach(detach);\n }\n else {\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n $$.fragment && $$.fragment.c();\n }\n if (options.intro)\n transition_in(component.$$.fragment);\n mount_component(component, options.target, options.anchor, options.customElement);\n end_hydrating();\n flush();\n }\n set_current_component(parent_component);\n}\nlet SvelteElement;\nif (typeof HTMLElement === 'function') {\n SvelteElement = class extends HTMLElement {\n constructor() {\n super();\n this.attachShadow({ mode: 'open' });\n }\n connectedCallback() {\n const { on_mount } = this.$$;\n this.$$.on_disconnect = on_mount.map(run).filter(is_function);\n // @ts-ignore todo: improve typings\n for (const key in this.$$.slotted) {\n // @ts-ignore todo: improve typings\n this.appendChild(this.$$.slotted[key]);\n }\n }\n attributeChangedCallback(attr, _oldValue, newValue) {\n this[attr] = newValue;\n }\n disconnectedCallback() {\n run_all(this.$$.on_disconnect);\n }\n $destroy() {\n destroy_component(this, 1);\n this.$destroy = noop;\n }\n $on(type, callback) {\n // TODO should this delegate to addEventListener?\n if (!is_function(callback)) {\n return noop;\n }\n const callbacks = (this.$$.callbacks[type] || (this.$$.callbacks[type] = []));\n callbacks.push(callback);\n return () => {\n const index = callbacks.indexOf(callback);\n if (index !== -1)\n callbacks.splice(index, 1);\n };\n }\n $set($$props) {\n if (this.$$set && !is_empty($$props)) {\n this.$$.skip_bound = true;\n this.$$set($$props);\n this.$$.skip_bound = false;\n }\n }\n };\n}\n/**\n * Base class for Svelte components. Used when dev=false.\n */\nclass SvelteComponent {\n $destroy() {\n destroy_component(this, 1);\n this.$destroy = noop;\n }\n $on(type, callback) {\n if (!is_function(callback)) {\n return noop;\n }\n const callbacks = (this.$$.callbacks[type] || (this.$$.callbacks[type] = []));\n callbacks.push(callback);\n return () => {\n const index = callbacks.indexOf(callback);\n if (index !== -1)\n callbacks.splice(index, 1);\n };\n }\n $set($$props) {\n if (this.$$set && !is_empty($$props)) {\n this.$$.skip_bound = true;\n this.$$set($$props);\n this.$$.skip_bound = false;\n }\n }\n}\n\nfunction dispatch_dev(type, detail) {\n document.dispatchEvent(custom_event(type, Object.assign({ version: '3.59.2' }, detail), { bubbles: true }));\n}\nfunction append_dev(target, node) {\n dispatch_dev('SvelteDOMInsert', { target, node });\n append(target, node);\n}\nfunction append_hydration_dev(target, node) {\n dispatch_dev('SvelteDOMInsert', { target, node });\n append_hydration(target, node);\n}\nfunction insert_dev(target, node, anchor) {\n dispatch_dev('SvelteDOMInsert', { target, node, anchor });\n insert(target, node, anchor);\n}\nfunction insert_hydration_dev(target, node, anchor) {\n dispatch_dev('SvelteDOMInsert', { target, node, anchor });\n insert_hydration(target, node, anchor);\n}\nfunction detach_dev(node) {\n dispatch_dev('SvelteDOMRemove', { node });\n detach(node);\n}\nfunction detach_between_dev(before, after) {\n while (before.nextSibling && before.nextSibling !== after) {\n detach_dev(before.nextSibling);\n }\n}\nfunction detach_before_dev(after) {\n while (after.previousSibling) {\n detach_dev(after.previousSibling);\n }\n}\nfunction detach_after_dev(before) {\n while (before.nextSibling) {\n detach_dev(before.nextSibling);\n }\n}\nfunction listen_dev(node, event, handler, options, has_prevent_default, has_stop_propagation, has_stop_immediate_propagation) {\n const modifiers = options === true ? ['capture'] : options ? Array.from(Object.keys(options)) : [];\n if (has_prevent_default)\n modifiers.push('preventDefault');\n if (has_stop_propagation)\n modifiers.push('stopPropagation');\n if (has_stop_immediate_propagation)\n modifiers.push('stopImmediatePropagation');\n dispatch_dev('SvelteDOMAddEventListener', { node, event, handler, modifiers });\n const dispose = listen(node, event, handler, options);\n return () => {\n dispatch_dev('SvelteDOMRemoveEventListener', { node, event, handler, modifiers });\n dispose();\n };\n}\nfunction attr_dev(node, attribute, value) {\n attr(node, attribute, value);\n if (value == null)\n dispatch_dev('SvelteDOMRemoveAttribute', { node, attribute });\n else\n dispatch_dev('SvelteDOMSetAttribute', { node, attribute, value });\n}\nfunction prop_dev(node, property, value) {\n node[property] = value;\n dispatch_dev('SvelteDOMSetProperty', { node, property, value });\n}\nfunction dataset_dev(node, property, value) {\n node.dataset[property] = value;\n dispatch_dev('SvelteDOMSetDataset', { node, property, value });\n}\nfunction set_data_dev(text, data) {\n data = '' + data;\n if (text.data === data)\n return;\n dispatch_dev('SvelteDOMSetData', { node: text, data });\n text.data = data;\n}\nfunction set_data_contenteditable_dev(text, data) {\n data = '' + data;\n if (text.wholeText === data)\n return;\n dispatch_dev('SvelteDOMSetData', { node: text, data });\n text.data = data;\n}\nfunction set_data_maybe_contenteditable_dev(text, data, attr_value) {\n if (~contenteditable_truthy_values.indexOf(attr_value)) {\n set_data_contenteditable_dev(text, data);\n }\n else {\n set_data_dev(text, data);\n }\n}\nfunction validate_each_argument(arg) {\n if (typeof arg !== 'string' && !(arg && typeof arg === 'object' && 'length' in arg)) {\n let msg = '{#each} only iterates over array-like objects.';\n if (typeof Symbol === 'function' && arg && Symbol.iterator in arg) {\n msg += ' You can use a spread to convert this iterable into an array.';\n }\n throw new Error(msg);\n }\n}\nfunction validate_slots(name, slot, keys) {\n for (const slot_key of Object.keys(slot)) {\n if (!~keys.indexOf(slot_key)) {\n console.warn(`<${name}> received an unexpected slot \"${slot_key}\".`);\n }\n }\n}\nfunction validate_dynamic_element(tag) {\n const is_string = typeof tag === 'string';\n if (tag && !is_string) {\n throw new Error('<svelte:element> expects \"this\" attribute to be a string.');\n }\n}\nfunction validate_void_dynamic_element(tag) {\n if (tag && is_void(tag)) {\n console.warn(`<svelte:element this=\"${tag}\"> is self-closing and cannot have content.`);\n }\n}\nfunction construct_svelte_component_dev(component, props) {\n const error_message = 'this={...} of <svelte:component> should specify a Svelte component.';\n try {\n const instance = new component(props);\n if (!instance.$$ || !instance.$set || !instance.$on || !instance.$destroy) {\n throw new Error(error_message);\n }\n return instance;\n }\n catch (err) {\n const { message } = err;\n if (typeof message === 'string' && message.indexOf('is not a constructor') !== -1) {\n throw new Error(error_message);\n }\n else {\n throw err;\n }\n }\n}\n/**\n * Base class for Svelte components with some minor dev-enhancements. Used when dev=true.\n */\nclass SvelteComponentDev extends SvelteComponent {\n constructor(options) {\n if (!options || (!options.target && !options.$$inline)) {\n throw new Error(\"'target' is a required option\");\n }\n super();\n }\n $destroy() {\n super.$destroy();\n this.$destroy = () => {\n console.warn('Component was already destroyed'); // eslint-disable-line no-console\n };\n }\n $capture_state() { }\n $inject_state() { }\n}\n/**\n * Base class to create strongly typed Svelte components.\n * This only exists for typing purposes and should be used in `.d.ts` files.\n *\n * ### Example:\n *\n * You have component library on npm called `component-library`, from which\n * you export a component called `MyComponent`. For Svelte+TypeScript users,\n * you want to provide typings. Therefore you create a `index.d.ts`:\n * ```ts\n * import { SvelteComponentTyped } from \"svelte\";\n * export class MyComponent extends SvelteComponentTyped<{foo: string}> {}\n * ```\n * Typing this makes it possible for IDEs like VS Code with the Svelte extension\n * to provide intellisense and to use the component like this in a Svelte file\n * with TypeScript:\n * ```svelte\n * <script lang=\"ts\">\n * \timport { MyComponent } from \"component-library\";\n * </script>\n * <MyComponent foo={'bar'} />\n * ```\n *\n * #### Why not make this part of `SvelteComponent(Dev)`?\n * Because\n * ```ts\n * class ASubclassOfSvelteComponent extends SvelteComponent<{foo: string}> {}\n * const component: typeof SvelteComponent = ASubclassOfSvelteComponent;\n * ```\n * will throw a type error, so we need to separate the more strictly typed class.\n */\nclass SvelteComponentTyped extends SvelteComponentDev {\n constructor(options) {\n super(options);\n }\n}\nfunction loop_guard(timeout) {\n const start = Date.now();\n return () => {\n if (Date.now() - start > timeout) {\n throw new Error('Infinite loop detected');\n }\n };\n}\n\nexport { HtmlTag, HtmlTagHydration, ResizeObserverSingleton, SvelteComponent, SvelteComponentDev, SvelteComponentTyped, SvelteElement, action_destroyer, add_attribute, add_classes, add_flush_callback, add_iframe_resize_listener, add_location, add_render_callback, add_styles, add_transform, afterUpdate, append, append_dev, append_empty_stylesheet, append_hydration, append_hydration_dev, append_styles, assign, attr, attr_dev, attribute_to_object, beforeUpdate, bind, binding_callbacks, blank_object, bubble, check_outros, children, claim_comment, claim_component, claim_element, claim_html_tag, claim_space, claim_svg_element, claim_text, clear_loops, comment, component_subscribe, compute_rest_props, compute_slots, construct_svelte_component, construct_svelte_component_dev, contenteditable_truthy_values, createEventDispatcher, create_animation, create_bidirectional_transition, create_component, create_in_transition, create_out_transition, create_slot, create_ssr_component, current_component, custom_event, dataset_dev, debug, destroy_block, destroy_component, destroy_each, detach, detach_after_dev, detach_before_dev, detach_between_dev, detach_dev, dirty_components, dispatch_dev, each, element, element_is, empty, end_hydrating, escape, escape_attribute_value, escape_object, exclude_internal_props, fix_and_destroy_block, fix_and_outro_and_destroy_block, fix_position, flush, flush_render_callbacks, getAllContexts, getContext, get_all_dirty_from_scope, get_binding_group_value, get_current_component, get_custom_elements_slots, get_root_for_style, get_slot_changes, get_spread_object, get_spread_update, get_store_value, globals, group_outros, handle_promise, hasContext, has_prop, head_selector, identity, init, init_binding_group, init_binding_group_dynamic, insert, insert_dev, insert_hydration, insert_hydration_dev, intros, invalid_attribute_name_character, is_client, is_crossorigin, is_empty, is_function, is_promise, is_void, listen, listen_dev, loop, loop_guard, merge_ssr_styles, missing_component, mount_component, noop, not_equal, now, null_to_empty, object_without_properties, onDestroy, onMount, once, outro_and_destroy_block, prevent_default, prop_dev, query_selector_all, raf, resize_observer_border_box, resize_observer_content_box, resize_observer_device_pixel_content_box, run, run_all, safe_not_equal, schedule_update, select_multiple_value, select_option, select_options, select_value, self, setContext, set_attributes, set_current_component, set_custom_element_data, set_custom_element_data_map, set_data, set_data_contenteditable, set_data_contenteditable_dev, set_data_dev, set_data_maybe_contenteditable, set_data_maybe_contenteditable_dev, set_dynamic_element_data, set_input_type, set_input_value, set_now, set_raf, set_store_value, set_style, set_svg_attributes, space, split_css_unit, spread, src_url_equal, start_hydrating, stop_immediate_propagation, stop_propagation, subscribe, svg_element, text, tick, time_ranges_to_array, to_number, toggle_class, transition_in, transition_out, trusted, update_await_block_branch, update_keyed_each, update_slot, update_slot_base, validate_component, validate_dynamic_element, validate_each_argument, validate_each_keys, validate_slots, validate_store, validate_void_dynamic_element, xlink_attr };\n","<svelte:options tag=\"hb-dropdown-simple\" />\n\n<script lang=\"ts\">\n\t/**\n\t * Svelte Video Gallery WebComponent\n\t * =====================\n\t *\n\t * @contributors: Dario Caruso <dev@dariocaruso.info> (https://dariocaruso.info)\n\t *\n\t * @license: MIT License\n\t *\n\t */\n\n\timport { get_current_component } from \"svelte/internal\";\n\timport { createEventDispatcher } from \"svelte\";\n\timport type { IDropDownMenuListItem } from \"@app/types/webcomponent.type\";\n\texport let id: string;\n\texport let position: \"left\" | \"right\";\n\texport let list: IDropDownMenuListItem[];\n\ttype stringinput = \"\" | \"yes\" | \"no\" | undefined;\n\texport let open: boolean;\n\t// let calcPosition: () => \"left\" | \"right\";\n\t$: {\n\t\tconsole.log(open);\n\n\t\tif (!id) id = \"\";\n\t\tif (!position) {\n\t\t\tif (component?.style?.float && component.style.float === \"right\") position = \"right\";\n\t\t\telse position = \"left\";\n\t\t}\n\n\t\tif ((open as unknown as stringinput) === \"yes\" || (open as unknown as stringinput) === \"\" || open === true) open = true;\n\t\telse open = false;\n\n\t\ttry {\n\t\t\tif (list && !list[0]?.key) list = JSON.parse(list as unknown as string);\n\t\t\telse if (!list) list = [];\n\t\t} catch (err) {\n\t\t\tlist = [];\n\t\t}\n\t\t// calcPosition = function () {\n\t\t// \tif (position) return position;\n\t\t// \tif (component?.style?.float && component.style.float === \"right\") return \"right\";\n\t\t// \telse return \"left\";\n\t\t// };\n\t}\n\n\t// if (!document.getElementById(\"spectrumelements\")) {\n\t// \tconst script = document.createElement(\"script\");\n\t// \tscript.id = \"spectrumelements\";\n\t// \tscript.src = `https://jspm.dev/@spectrum-web-components/bundle/elements.js`;\n\t// \tscript.type = \"module\";\n\n\t// \tdocument.head.appendChild(script);\n\t// }\n\tconst component = get_current_component();\n\tconst svelteDispatch = createEventDispatcher();\n\n\tfunction dispatch(name: string, detail: any) {\n\t\tsvelteDispatch(name, detail);\n\t\tcomponent.dispatchEvent && component.dispatchEvent(new CustomEvent(name, { detail }));\n\t}\n\tfunction switchDown() {\n\t\topen = !open;\n\t\tdispatch(\"dropdownSwitch\", {\n\t\t\topen,\n\t\t\tid,\n\t\t});\n\t}\n\tfunction clickMenu(key: string) {\n\t\tdispatch(\"dropDownClick\", {\n\t\t\tkey,\n\t\t});\n\t\tswitchDown();\n\t}\n\t// window.addEventListener(\n\t// \t\"click\",\n\t// \t() => {\n\t// \t\topen = false;\n\t// \t\tdispatch(\"dropdownSwitch\", {\n\t// \t\t\topen,\n\t// \t\t\tid,\n\t// \t\t});\n\t// \t},\n\t// \ttrue,\n\t// );\n</script>\n\n<div class=\"dropdown\" part=\"dropdown\">\n\t<div on:click={switchDown} class=\"dropbtn\" part=\"dropdownbutton\">\n\t\t<slot name=\"dropdownbutton\">btn</slot>\n\t</div>\n\t{#if open}\n\t\t<div class=\"dropdown-content\" part=\"dropdowncontent\" style={position === \"right\" ? \"\" : \"left:0;\"}>\n\t\t\t{#each list as listItem (listItem.key)}\n\t\t\t\t<div on:click={() => clickMenu(listItem.key)}>\n\t\t\t\t\t{#if listItem.linkHref}\n\t\t\t\t\t\t<a href={listItem.linkHref}>{listItem.label}</a>\n\t\t\t\t\t{:else}\n\t\t\t\t\t\t<div>{listItem.label}</div>\n\t\t\t\t\t{/if}\n\t\t\t\t</div>\n\t\t\t{/each}\n\t\t</div>\n\t{/if}\n</div>\n\n<style lang=\"scss\">\n\t// @import \"../styles/bootstrap.scss\";\n\t@import \"../styles/webcomponent.scss\";\n</style>\n"],"names":["noop","run","fn","blank_object","Object","create","run_all","fns","forEach","is_function","thing","safe_not_equal","a","b","append","target","node","appendChild","insert","anchor","insertBefore","detach","parentNode","removeChild","element","name","document","createElement","text","data","createTextNode","space","listen","event","handler","options","addEventListener","removeEventListener","attr","attribute","value","removeAttribute","getAttribute","setAttribute","set_data","attribute_to_object","attributes","result","current_component","set_current_component","component","get_current_component","Error","createEventDispatcher","type","detail","cancelable","callbacks","$$","bubbles","e","createEvent","initCustomEvent","custom_event","slice","call","defaultPrevented","dirty_components","binding_callbacks","render_callbacks","flush_callbacks","resolved_promise","Promise","resolve","update_scheduled","add_render_callback","push","seen_callbacks","Set","flushidx","flush","saved_component","length","update","pop","i","callback","has","add","clear","fragment","before_update","dirty","p","ctx","after_update","outroing","transition_in","block","local","delete","destroy_block","lookup","d","key","destroy_component","detaching","filtered","targets","c","indexOf","flush_render_callbacks","on_destroy","make_dirty","then","fill","init","instance","create_fragment","not_equal","props","append_styles","parent_component","bound","on_mount","on_disconnect","context","Map","skip_bound","root","ready","ret","rest","hydrate","nodes","Array","from","childNodes","children","l","intro","customElement","m","new_on_destroy","map","filter","mount_component","SvelteElement","get_key","div","div_style_value","old_blocks","dynamic","list","destroy","create_each_block","next","get_context","o","n","old_indexes","new_blocks","new_lookup","deltas","updates","child_ctx","get","set","Math","abs","will_move","did_move","first","new_block","old_block","new_key","old_key","t_value","label","t","a_href_value","linkHref","create_if_block_1","create_if_block","div1","div0","id","$$props","position","open","svelteDispatch","dispatch","dispatchEvent","CustomEvent","switchDown","$$invalidate","clickMenu","console","log","_a","style","float","_b","JSON","parse","err","listItem","HTMLElement","constructor","super","this","attachShadow","mode","connectedCallback","slotted","attributeChangedCallback","_oldValue","newValue","disconnectedCallback","$destroy","$on","index","splice","$set","obj","$$set","keys"],"mappings":"oCAAA,SAASA,IAAU,CAkBnB,SAASC,EAAIC,GACT,OAAOA,GACX,CACA,SAASC,IACL,OAAOC,OAAOC,OAAO,KACzB,CACA,SAASC,EAAQC,GACbA,EAAIC,QAAQP,EAChB,CACA,SAASQ,EAAYC,GACjB,MAAwB,mBAAVA,CAClB,CACA,SAASC,EAAeC,EAAGC,GACvB,OAAOD,GAAKA,EAAIC,GAAKA,EAAID,IAAMC,GAAOD,GAAkB,iBAANA,GAAgC,mBAANA,CAChF,CAgUA,SAASE,EAAOC,EAAQC,GACpBD,EAAOE,YAAYD,EACvB,CAoDA,SAASE,EAAOH,EAAQC,EAAMG,GAC1BJ,EAAOK,aAAaJ,EAAMG,GAAU,KACxC,CASA,SAASE,EAAOL,GACRA,EAAKM,YACLN,EAAKM,WAAWC,YAAYP,EAEpC,CAOA,SAASQ,EAAQC,GACb,OAAOC,SAASC,cAAcF,EAClC,CAmBA,SAASG,EAAKC,GACV,OAAOH,SAASI,eAAeD,EACnC,CACA,SAASE,IACL,OAAOH,EAAK,IAChB,CAOA,SAASI,EAAOhB,EAAMiB,EAAOC,EAASC,GAElC,OADAnB,EAAKoB,iBAAiBH,EAAOC,EAASC,GAC/B,IAAMnB,EAAKqB,oBAAoBJ,EAAOC,EAASC,EAC1D,CAoCA,SAASG,EAAKtB,EAAMuB,EAAWC,GACd,MAATA,EACAxB,EAAKyB,gBAAgBF,GAChBvB,EAAK0B,aAAaH,KAAeC,GACtCxB,EAAK2B,aAAaJ,EAAWC,EACrC,CAsPA,SAASI,EAAShB,EAAMC,GACpBA,EAAO,GAAKA,EACRD,EAAKC,OAASA,IAElBD,EAAKC,KAAOA,EAChB,CAiNA,SAASgB,EAAoBC,GACzB,MAAMC,EAAS,CAAA,EACf,IAAK,MAAMR,KAAaO,EACp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IAAAE,CAAKpC,GAnpEb,IAAkBqC,EAopEFd,KAAKe,QAppEHD,EAopEsBrC,EAnpED,IAA5BvL,OAAO8N,KAAKF,GAAK9I,UAopEZgI,KAAKxJ,GAAGsE,YAAa,EACrBkF,KAAKe,MAAMtC,GACXuB,KAAKxJ,GAAGsE,YAAa,EAE5B"}
@@ -1,20 +0,0 @@
1
- export interface IDropDownMenuListItem {
2
- key: string;
3
- label: string;
4
- badge?: number;
5
- group?: string;
6
- linkHref?: string;
7
- }
8
-
9
- export type Component = {
10
- id?: string;
11
- style?: string;
12
- position?: "left" | "right";
13
- list: IDropDownMenuListItem[];
14
- open?: "yes" | "no";
15
- };
16
-
17
- export type Events = {
18
- dropdownSwitch: { open: boolean; id: string };
19
- dropDownClick: { key: string };
20
- };