!function(){"use strict";const e=Symbol("solid-proxy"),t=Symbol("solid-track"),o={equals:(e,t)=>e===t};let n=S;const i=1,r=2,c={owned:null,cleanups:null,context:null,owner:null};var s=null;let l=null,a=null,p=null,u=null,d=0;function h(e,t){const o=a,n=s,i=0===e.length,r=void 0===t?n:t,l=i?c:{owned:null,cleanups:null,context:r?r.context:null,owner:r},p=i?e:()=>e(()=>b(()=>$(l)));s=l,a=null;try{return A(p,!0)}finally{a=o,s=n}}function f(e,t){const n={value:e,observers:null,observerSlots:null,comparator:(t=t?Object.assign({},o,t):o).equals||void 0};return[y.bind(n),e=>("function"==typeof e&&(e=e(n.value)),w(n,e))]}function m(e,t,o){_(x(e,t,!1,i))}function g(e,t,n){n=n?Object.assign({},o,n):o;const i=x(e,t,!0,0);return i.observers=null,i.observerSlots=null,i.comparator=n.equals||void 0,_(i),y.bind(i)}function b(e){if(null===a)return e();const t=a;a=null;try{return e()}finally{a=t}}function v(){return a}function y(){if(this.sources&&this.state)if(this.state===i)_(this);else{const e=p;p=null,A(()=>z(this),!1),p=e}if(a){const e=this.observers?this.observers.length:0;a.sources?(a.sources.push(this),a.sourceSlots.push(e)):(a.sources=[this],a.sourceSlots=[e]),this.observers?(this.observers.push(a),this.observerSlots.push(a.sources.length-1)):(this.observers=[a],this.observerSlots=[a.sources.length-1])}return this.value}function w(e,t,o){let n=e.value;return(!e.comparator||!e.comparator(n,t))&&(e.value=t,e.observers&&e.observers.length&&A(()=>{for(let t=0;t1e6)throw p=[],new Error},!1)),t}function _(e){if(!e.fn)return;$(e);const t=d;!function(e,t,o){let n;const r=s,c=a;a=s=e;try{n=e.fn(t)}catch(t){return e.pure&&(e.state=i,e.owned&&e.owned.forEach($),e.owned=null),e.updatedAt=o+1,E(t)}finally{a=c,s=r}(!e.updatedAt||e.updatedAt<=o)&&(null!=e.updatedAt&&"observers"in e?w(e,n):e.value=n,e.updatedAt=o)}(e,e.value,t)}function x(e,t,o,n=i,r){const l={fn:e,state:n,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:t,owner:s,context:s?s.context:null,pure:o};return null===s||s!==c&&(s.owned?s.owned.push(l):s.owned=[l]),l}function k(e){if(0===e.state)return;if(e.state===r)return z(e);if(e.suspense&&b(e.suspense.inFallback))return e.suspense.effects.push(e);const t=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt=0;o--)if((e=t[o]).state===i)_(e);else if(e.state===r){const o=p;p=null,A(()=>z(e,t[0]),!1),p=o}}function A(e,t){if(p)return e();let o=!1;t||(p=[]),u?o=!0:u=[],d++;try{const t=e();return function(e){if(p&&(S(p),p=null),e)return;const t=u;u=null,t.length&&A(()=>n(t),!1)}(o),t}catch(e){o||(u=null),p=null,E(e)}}function S(e){for(let t=0;t=0;t--)$(e.tOwned[t]);delete e.tOwned}if(e.owned){for(t=e.owned.length-1;t>=0;t--)$(e.owned[t]);e.owned=null}if(e.cleanups){for(t=e.cleanups.length-1;t>=0;t--)e.cleanups[t]();e.cleanups=null}e.state=0}function E(e,t=s){throw function(e){return e instanceof Error?e:new Error("string"==typeof e?e:"Unknown error",{cause:e})}(e)}const j=Symbol("fallback");function P(e){for(let t=0;te(t||{}))}function I(e){const o="fallback"in e&&{fallback:()=>e.fallback};return g(function(e,o,n={}){let i=[],r=[],c=[],l=0,a=o.length>1?[]:null;return function(e){null===s||(null===s.cleanups?s.cleanups=[e]:s.cleanups.push(e))}(()=>P(c)),()=>{let s,p,u=e()||[],d=u.length;return u[t],b(()=>{let e,t,o,f,g,b,v,y,w;if(0===d)0!==l&&(P(c),c=[],i=[],r=[],l=0,a&&(a=[])),n.fallback&&(i=[j],r[0]=h(e=>(c[0]=e,n.fallback())),l=1);else if(0===l){for(r=new Array(d),p=0;p=b&&y>=b&&i[v]===u[y];v--,y--)o[y]=r[v],f[y]=c[v],a&&(g[y]=a[v]);for(e=new Map,t=new Array(y+1),p=y;p>=b;p--)w=u[p],s=e.get(w),t[p]=void 0===s?-1:s,e.set(w,p);for(s=b;s<=v;s++)w=i[s],p=e.get(w),void 0!==p&&-1!==p?(o[p]=r[s],f[p]=c[s],a&&(g[p]=a[s]),p=t[p],e.set(w,p)):c[s]();for(p=b;pe.each,e.children,o||void 0))}function C(e){const t=e.keyed,o=g(()=>e.when,void 0,void 0),n=t?o:g(o,void 0,{equals:(e,t)=>!e==!t});return g(()=>{const i=n();if(i){const r=e.children;return"function"==typeof r&&r.length>0?b(()=>r(t?i:()=>{if(!b(n))throw"Stale read from .";return o()})):r}return e.fallback},void 0,void 0)}const N=new Set(["innerHTML","textContent","innerText","children"]),T=Object.assign(Object.create(null),{className:"class",htmlFor:"for"}),L=new Set(["beforeinput","click","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"]),D={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"},M="_$DX_DELEGATE";function q(e,t,o,n){let i;const r=()=>(i||(i=(()=>{const t=document.createElement("template");return t.innerHTML=e,t.content.firstChild})())).cloneNode(!0);return r.cloneNode=r,r}function B(e,t,o){null==o?e.removeAttribute(t):e.setAttribute(t,o)}function R(e,t,o,n){if(void 0!==o&&!n&&(n=[]),"function"!=typeof t)return K(e,t,n,o);m(n=>K(e,t(),n,o),n)}function U(e,t,o){const n=t.trim().split(/\s+/);for(let t=0,i=n.length;tn.call(e,o[1],t))}else e.addEventListener(t,o,"function"!=typeof o&&o)}(e,i,o,r),r&&function(e,t=window.document){const o=t[M]||(t[M]=new Set);for(let n=0,i=e.length;nt.toUpperCase())}(t)]=o;else{const n=t.indexOf(":")>-1&&D[t.split(":")[0]];n?function(e,t,o,n){null==n?e.removeAttributeNS(t,o):e.setAttributeNS(t,o,n)}(e,n,t,o):B(e,T[t]||t,o)}return o}function H(e){let t=e.target;const o=`$$${e.type}`,n=e.target,i=e.currentTarget,r=t=>Object.defineProperty(e,"target",{configurable:!0,value:t}),c=()=>{const n=t[o];if(n&&!t.disabled){const i=t[`${o}Data`];if(void 0!==i?n.call(t,i,e):n.call(t,e),e.cancelBubble)return}return t.host&&"string"!=typeof t.host&&!t.host._$host&&t.contains(e.target)&&r(t.host),!0},s=()=>{for(;c()&&(t=t._$host||t.parentNode||t.host););};if(Object.defineProperty(e,"currentTarget",{configurable:!0,get(){return t||document}}),e.composedPath){const o=e.composedPath();r(o[0]);for(let e=0;e{let i=t();for(;"function"==typeof i;)i=i();o=K(e,i,o,n)}),()=>o;if(Array.isArray(t)){const r=[],s=o&&Array.isArray(o);if(X(r,t,o,i))return m(()=>o=K(e,r,o,n,!0)),()=>o;if(0===r.length){if(o=J(e,o,n),c)return o}else s?0===o.length?G(e,r,n):function(e,t,o){let n=o.length,i=t.length,r=n,c=0,s=0,l=t[i-1].nextSibling,a=null;for(;cn-s){const i=t[c];for(;s=0;r--){const c=t[r];if(i!==c){const t=c.parentNode===e;n||r?t&&c.remove():t?e.replaceChild(i,c):e.insertBefore(i,o)}else n=!0}}else e.insertBefore(i,o);return[i]}const Q=Symbol("store-raw"),V=Symbol("store-node"),Y=Symbol("store-has"),Z=Symbol("store-self");function ee(t){let o=t[e];if(!o&&(Object.defineProperty(t,e,{value:o=new Proxy(t,ce)}),!Array.isArray(t))){const e=Object.keys(t),n=Object.getOwnPropertyDescriptors(t);for(let i=0,r=e.length;it[e][o]),n}};function se(e,t,o,n=!1){if(!n&&e[t]===o)return;const i=e[t],r=e.length;void 0===o?(delete e[t],e[Y]&&e[Y][t]&&void 0!==i&&e[Y][t].$()):(e[t]=o,e[Y]&&e[Y][t]&&void 0===i&&e[Y][t].$());let c,s=ne(e,V);if((c=ie(s,t,i))&&c.$(()=>o),Array.isArray(e)&&e.length!==r){for(let t=e.length;t1){n=t.shift();const r=typeof n,c=Array.isArray(e);if(Array.isArray(n)){for(let i=0;i1)return void ae(e[n],t,[n].concat(o));i=e[n],o=[n].concat(o)}let r=t[0];"function"==typeof r&&(r=r(i,o),r===i)||void 0===n&&null==r||(r=oe(r),void 0===n||te(i)&&te(r)&&!Array.isArray(r)?le(i,r):se(e,n,r))}const pe=new WeakMap,ue={get(e,t){if(t===Q)return e;const o=e[t];let n;return te(o)?pe.get(o)||(pe.set(o,n=new Proxy(o,ue)),n):o},set(e,t,o){return se(e,t,oe(o)),!0},deleteProperty(e,t){return se(e,t,void 0,!0),!0}};function de(e){return t=>{if(te(t)){let o;(o=pe.get(t))||pe.set(t,o=new Proxy(t,ue)),e(o)}return t}}const[he,fe]=function(...[e,t]){const o=oe(e||{}),n=Array.isArray(o);return[ee(o),function(...e){A(()=>{n&&1===e.length?function(e,t){if("function"==typeof t&&(t=t(e)),t=oe(t),Array.isArray(t)){if(e===t)return;let o=0,n=t.length;for(;o');const ge=(e={})=>{return function(e,t={}){const o={};m(()=>"function"==typeof t.ref&&function(e,t){return b(()=>e(t,void 0))}(t.ref,e)),m(()=>function(e,t,o,n,i={},r=!1){t||(t={});for(const o in i)if(!(o in t)){if("children"===o)continue;i[o]=W(e,o,null,i[o],0,r,t)}for(const o in t){if("children"===o)continue;const n=t[o];i[o]=W(e,o,n,i[o],0,r,t)}}(e,t,0,0,o,!0))}(t=me(),e),t;var t};var be=q("