Socket
Socket
Sign inDemoInstall

uland

Package Overview
Dependencies
Maintainers
1
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

uland - npm Package Compare versions

Comparing version 0.7.0 to 0.8.0

6

async.js

@@ -1,7 +0,7 @@

self.uland=function(e){"use strict";var t=CustomEvent;const n=(e,t,n,s)=>{const l=new WeakMap,o=new WeakMap,a=new WeakMap,c=e=>l.has(e),i=e=>{c(e)&&(u(e,e.removeEventListener,l.get(e)),l.delete(e))},u=(e,t,n)=>{t.call(e,"disconnected",n),t.call(e,"connected",n)},h=(e,t,n,r)=>{for(let{length:s}=e,l=0;l<s;l++)f(e[l],t,n,r)},f=(e,r,s,l)=>{c(e)&&!s.has(e)&&(l.delete(e),s.set(e,0),e.dispatchEvent(new(n||CustomEvent)(r))),h(e[t||"children"]||[],r,s,l)},d=new(s||MutationObserver)((e=>{for(let{length:t}=e,n=0;n<t;n++){const{removedNodes:t,addedNodes:r}=e[n];h(t,"disconnected",a,o),h(r,"connected",o,a)}}));return d.observe(e||document,{subtree:!0,childList:!0}),{has:c,connect:(e,t)=>{i(e),(t||(t={})).handleEvent||(t.handleEvent=r),u(e,e.addEventListener,t),l.set(e,t)},disconnect:i,kill(){d.disconnect()}}};function r(e){e.type in this&&this[e.type](e)}var s=Promise;let l=null,o=new Set;const a=e=>{const{$:t,r:n,h:r}=e;p(n)&&(i.get(r).delete(e),n()),p(e.r=t())&&i.get(r).add(e)},c=()=>{const e=o;o=new Set,e.forEach((({h:e,c:t,a:n,e:r})=>{r&&e.apply(t,n)}))},i=new WeakMap,u=[],h=[];function f(e,t){return e!==this[t]}const d=()=>l,p=e=>"function"==typeof e,g=e=>{const t={h:n,c:null,a:null,e:0,i:0,s:[]};return n;function n(){const n=l;l=t,t.e=t.i=0;try{return e.apply(t.c=this,t.a=arguments)}finally{l=n,u.length&&w.then(u.forEach.bind(u.splice(0),a)),h.length&&h.splice(0).forEach(a)}}},w=new s((e=>e()));function v(e){const{_:t,value:n}=this;n!==e&&(this._=new Set,this.value=e,t.forEach((({h:e,c:t,a:n})=>{e.apply(t,n)})))}const m=(e,t)=>{const n=d(),{i:r,s:s}=n;return r!==s.length&&t&&!t.some(f,s[r]._)||(s[r]={$:e(),_:t}),s[n.i++].$},y=e=>(t,n)=>{const r=d(),{i:s,s:l,h:o}=r,a=s===l.length;r.i++,a&&(i.has(o)||i.set(o,new Set),l[s]={$:t,_:n,r:null,h:o}),(a||!n||n.some(f,l[s]._))&&e.push(l[s]),l[s].$=t,l[s]._=n},b=y(u),$=y(h),C=(e,t)=>p(t)?t(e):t,E=(e,t,n)=>{const r=d(),{i:s,s:l}=r;s===l.length&&l.push({$:p(n)?n(t):C(void 0,t),set:t=>{l[s].$=e(l[s].$,t),(e=>{o.has(e)||(e.e=1,o.add(e),w.then(c))})(r)}});const{$:a,set:i}=l[r.i++];return[a,i]},k=new WeakMap,x=e=>(e=>{const t=i.get(e);t&&w.then((()=>{t.forEach((e=>{e.r(),e.r=null})),t.clear()}))})(k.get(e)),N=e=>(e=>i.has(e))(k.get(e)),M=e=>{const t=g(e);return k.set(n,t),n;async function n(){return await t.apply(this,arguments)}};
self.uland=function(e){"use strict";var t=CustomEvent;const n=(e,t,n,s)=>{const l=new WeakMap,a=new WeakMap,o=new WeakMap,c=e=>l.has(e),i=e=>{c(e)&&(u(e,e.removeEventListener,l.get(e)),l.delete(e))},u=(e,t,n)=>{t.call(e,"disconnected",n),t.call(e,"connected",n)},h=(e,t,n,r)=>{for(let{length:s}=e,l=0;l<s;l++)d(e[l],t,n,r)},d=(e,r,s,l)=>{c(e)&&!s.has(e)&&(l.delete(e),s.set(e,0),e.dispatchEvent(new(n||CustomEvent)(r))),h(e[t||"children"]||[],r,s,l)},f=new(s||MutationObserver)((e=>{for(let{length:t}=e,n=0;n<t;n++){const{removedNodes:t,addedNodes:r}=e[n];h(t,"disconnected",o,a),h(r,"connected",a,o)}}));return f.observe(e||document,{subtree:!0,childList:!0}),{has:c,connect:(e,t)=>{i(e),(t||(t={})).handleEvent||(t.handleEvent=r),u(e,e.addEventListener,t),l.set(e,t)},disconnect:i,kill(){f.disconnect()}}};function r(e){e.type in this&&this[e.type](e)}var s=Promise;let l=null,a=new Set;const o=e=>{const{$:t,r:n,h:r}=e;p(n)&&(i.get(r).delete(e),n()),p(e.r=t())&&i.get(r).add(e)},c=()=>{const e=a;a=new Set,e.forEach((({h:e,c:t,a:n,e:r})=>{r&&e.apply(t,n)}))},i=new WeakMap,u=[],h=[];function d(e,t){return e!==this[t]}const f=()=>l,p=e=>"function"==typeof e,g=e=>{const t={h:n,c:null,a:null,e:0,i:0,s:[]};return n;function n(){const n=l;l=t,t.e=t.i=0;try{return e.apply(t.c=this,t.a=arguments)}finally{l=n,u.length&&w.then(u.forEach.bind(u.splice(0),o)),h.length&&h.splice(0).forEach(o)}}},w=new s((e=>e()));function v(e){const{_:t,value:n}=this;n!==e&&(this._=new Set,this.value=e,t.forEach((({h:e,c:t,a:n})=>{e.apply(t,n)})))}const m=(e,t)=>{const n=f(),{i:r,s:s}=n;return r!==s.length&&t&&!t.some(d,s[r]._)||(s[r]={$:e(),_:t}),s[n.i++].$},y=e=>(t,n)=>{const r=f(),{i:s,s:l,h:a}=r,o=s===l.length;r.i++,o&&(i.has(a)||i.set(a,new Set),l[s]={$:t,_:n,r:null,h:a}),(o||!n||n.some(d,l[s]._))&&e.push(l[s]),l[s].$=t,l[s]._=n},b=y(u),$=y(h),k=(e,t)=>p(t)?t(e):t,E=(e,t,n)=>{const r=f(),{i:s,s:l}=r;s===l.length&&l.push({$:p(n)?n(t):k(void 0,t),set:t=>{l[s].$=e(l[s].$,t),(e=>{a.has(e)||(e.e=1,a.add(e),w.then(c))})(r)}});const{$:o,set:i}=l[r.i++];return[o,i]},C=new WeakMap,x=e=>(e=>{const t=i.get(e);t&&w.then((()=>{t.forEach((e=>{e.r(),e.r=null})),t.clear()}))})(C.get(e)),N=e=>(e=>i.has(e))(C.get(e)),M=e=>{const t=g(e);return C.set(n,t),n;async function n(){return await t.apply(this,arguments)}};
/*! (c) Andrea Giammarchi - ISC */
let S=null,A=null,L=null;const T=new WeakMap,W=new WeakMap,_=(e,t,n,r)=>{const s=s=>{T.has(e)||(T.set(e,0),w.then((()=>{T.delete(e),e.apply(t,n)}))),r(s)};return W.set(r,s),s},O=(e,t,n,r)=>e?[r[0],W.get(r[1])||_(e,t,n,r[1])]:r,j=(e,t)=>{const n=M(t?async function(){const[t,r,s]=[S,A,L];[S,A,L]=[n,this,arguments];try{return await e.apply(A,L)}finally{[S,A,L]=[t,r,s]}}:e);return n};
/*! (c) Andrea Giammarchi - ISC */
let R=null;const B=({firstChild:e})=>{if(e&&1!==e.nodeType&&!(e=e.nextElementSibling))throw"unobservable";return e},D=e=>{const{nodeType:t}=e;if(t)return 1===t?e:B(e);{const t=e.valueOf();return t!==e?D(t):B(t)}},H=(e,r)=>{const s=j(e,r);return async function(){const e=await s.apply(this,arguments);if(N(s)){const r=D(e);R||(R=n(r.ownerDocument,"children",t)),R.has(r)||R.connect(r,{disconnected(){x(s)}})}return e}};var z=e=>({get:t=>e.get(t),set:(t,n)=>(e.set(t,n),n)});const{isArray:P}=Array,{indexOf:q,slice:F}=[],G=/([^\s\\>"'=]+)\s*=\s*(['"]?)$/,I=/^(?:area|base|br|col|embed|hr|img|input|keygen|link|menuitem|meta|param|source|track|wbr)$/i,J=/<[a-z][^>]+$/i,K=/>[^<>]*$/,Q=/<([a-z]+[a-z0-9:._-]*)([^>]*?)(\/>)/gi,U=/\s+$/,V=(e,t)=>0<t--&&(J.test(e[t])||!K.test(e[t])&&V(e,t)),X=(e,t,n)=>I.test(t)?e:`<${t}${n.replace(U,"")}></${t}>`;const Y=(e,t)=>111===e.nodeType?1/t<0?t?(({firstChild:e,lastChild:t})=>{const n=document.createRange();return n.setStartAfter(e),n.setEndAfter(t),n.deleteContents(),e})(e):e.lastChild:t?e.valueOf():e.firstChild:e;
let R=null;const B=({firstChild:e})=>{if(e&&1!==e.nodeType&&!(e=e.nextElementSibling))throw"unobservable";return e},D=e=>{const{nodeType:t}=e;if(t)return 1===t?e:B(e);{const t=e.valueOf();return t!==e?D(t):B(t)}},H=(e,r)=>{const s=j(e,r);return async function(){const e=await s.apply(this,arguments);if(N(s)){const r=D(e);R||(R=n(r.ownerDocument,"children",t)),R.has(r)||R.connect(r,{disconnected(){x(s)}})}return e}};var z=e=>({get:t=>e.get(t),set:(t,n)=>(e.set(t,n),n)});const{isArray:P}=Array,{indexOf:V,slice:q}=[],F=/([^\s\\>"'=]+)\s*=\s*(['"]?)$/,G=/^(?:area|base|br|col|embed|hr|img|input|keygen|link|menuitem|meta|param|source|track|wbr)$/i,I=/<[a-z][^>]+$/i,J=/>[^<>]*$/,K=/<([a-z]+[a-z0-9:._-]*)([^>]*?)(\/>)/gi,Q=/\s+$/,U=(e,t)=>0<t--&&(I.test(e[t])||!J.test(e[t])&&U(e,t)),X=(e,t,n)=>G.test(t)?e:`<${t}${n.replace(Q,"")}></${t}>`;const Y=(e,t)=>111===e.nodeType?1/t<0?t?(({firstChild:e,lastChild:t})=>{const n=document.createRange();return n.setStartAfter(e),n.setEndAfter(t),n.deleteContents(),e})(e):e.lastChild:t?e.valueOf():e.firstChild:e;
/*! (c) Andrea Giammarchi - ISC */
self.Z=function(e){var t="fragment",n="template",r="content"in l(n)?function(e){var t=l(n);return t.innerHTML=e,t.content}:function(e){var r=l(t),o=l(n),a=null;if(/^[^\S]*?<(col(?:group)?|t(?:head|body|foot|r|d|h))/i.test(e)){var c=RegExp.$1;o.innerHTML="<table>"+e+"</table>",a=o.querySelectorAll(c)}else o.innerHTML=e,a=o.childNodes;return s(r,a),r};return function(e,t){return("svg"===t?o:r)(e)};function s(e,t){for(var n=t.length;n--;)e.appendChild(t[0])}function l(n){return n===t?e.createDocumentFragment():e.createElementNS("http://www.w3.org/1999/xhtml",n)}function o(e){var n=l(t),r=l("div");return r.innerHTML='<svg xmlns="http://www.w3.org/2000/svg">'+e+"</svg>",s(n,r.firstChild.childNodes),n}}(document);const ee=({childNodes:e},t)=>e[t],te=e=>{const t=[];let{parentNode:n}=e;for(;n;)t.push(q.call(n.childNodes,e)),n=(e=n).parentNode;return t},{createTreeWalker:ne,importNode:re}=document,se=1!=re.length,le=se?(e,t,n)=>re.call(document,Z(e,t,n),!0):Z,oe=se?e=>ne.call(document,e,129,null,!1):e=>ne.call(document,e,129),ae=(e,t,n)=>((e,t,n,r,s)=>{const l=n.length;let o=t.length,a=l,c=0,i=0,u=null;for(;c<o||i<a;)if(o===c){const t=a<l?i?r(n[i-1],-0).nextSibling:r(n[a-i],0):s;for(;i<a;)e.insertBefore(r(n[i++],1),t)}else if(a===i)for(;c<o;)u&&u.has(t[c])||e.removeChild(r(t[c],-1)),c++;else if(t[c]===n[i])c++,i++;else if(t[o-1]===n[a-1])o--,a--;else if(t[c]===n[a-1]&&n[i]===t[o-1]){const s=r(t[--o],-1).nextSibling;e.insertBefore(r(n[i++],1),r(t[c++],-1).nextSibling),e.insertBefore(r(n[--a],1),s),t[o]=n[a]}else{if(!u){u=new Map;let e=i;for(;e<a;)u.set(n[e],e++)}if(u.has(t[c])){const s=u.get(t[c]);if(i<s&&s<a){let l=c,h=1;for(;++l<o&&l<a&&u.get(t[l])===s+h;)h++;if(h>s-i){const l=r(t[c],0);for(;i<s;)e.insertBefore(r(n[i++],1),l)}else e.replaceChild(r(n[i++],1),r(t[c++],-1))}else c++}else e.removeChild(r(t[c++],-1))}return n})(e.parentNode,t,n,Y,e),ce=(e,t)=>{switch(t[0]){case"?":return((e,t)=>n=>{n?e.setAttribute(t,""):e.removeAttribute(t)})(e,t.slice(1));case".":return((e,t)=>"dataset"===t?(({dataset:e})=>t=>{for(const n in t){const r=t[n];null==r?delete e[n]:e[n]=r}})(e):n=>{e[t]=n})(e,t.slice(1));case"o":if("n"===t[1])return((e,t)=>{let n,r=t.slice(2);return!(t in e)&&t.toLowerCase()in e&&(r=r.toLowerCase()),t=>{const s=P(t)?t:[t,!1];n!==s[0]&&(n&&e.removeEventListener(r,n,s[1]),(n=s[0])&&e.addEventListener(r,n,s[1]))}})(e,t)}switch(t){case"ref":return(e=>t=>{"function"==typeof t?t(e):t.current=e})(e);case"aria":return(e=>t=>{for(const n in t){const r="role"===n?n:`aria-${n}`,s=t[n];null==s?e.removeAttribute(r):e.setAttribute(r,s)}})(e)}return((e,t)=>{let n,r=!0;const s=document.createAttributeNS(null,t);return t=>{n!==t&&(n=t,null==n?r||(e.removeAttributeNode(s),r=!0):(s.value=t,r&&(e.setAttributeNodeNS(s),r=!1)))}})(e,t)};function ie(e){const{type:t,path:n}=e,r=n.reduceRight(ee,this);return"node"===t?(e=>{let t,n,r=[];const s=l=>{switch(typeof l){case"string":case"number":case"boolean":t!==l&&(t=l,n?n.textContent=l:n=document.createTextNode(l),r=ae(e,r,[n]));break;case"object":case"undefined":if(null==l){t!=l&&(t=l,r=ae(e,r,[]));break}if(P(l)){t=l,0===l.length?r=ae(e,r,[]):"object"==typeof l[0]?r=ae(e,r,l):s(String(l));break}"ELEMENT_NODE"in l&&t!==l&&(t=l,r=ae(e,r,11===l.nodeType?F.call(l.childNodes):[l]))}};return s})(r):"attr"===t?ce(r,e.name):(e=>{let t;return n=>{t!=n&&(t=n,e.textContent=null==n?"":n)}})(r)}const ue="isµ",he=z(new WeakMap),fe=/^(?:plaintext|script|style|textarea|title|xmp)$/i,de=(e,t)=>{const n=((e,t,n)=>{const r=[],{length:s}=e;for(let n=1;n<s;n++){const s=e[n-1];r.push(G.test(s)&&V(e,n)?s.replace(G,((e,r,s)=>`${t}${n-1}=${s||'"'}${r}${s?"":'"'}`)):`${s}\x3c!--${t}${n-1}--\x3e`)}r.push(e[s-1]);const l=r.join("").trim();return n?l:l.replace(Q,X)})(t,ue,"svg"===e),r=le(n,e),s=oe(r),l=[],o=t.length-1;let a=0,c=`isµ${a}`;for(;a<o;){const e=s.nextNode();if(!e)throw`bad template: ${n}`;if(8===e.nodeType)e.textContent===c&&(l.push({type:"node",path:te(e)}),c="isµ"+ ++a);else{for(;e.hasAttribute(c);)l.push({type:"attr",path:te(e),name:e.getAttribute(c)}),e.removeAttribute(c),c="isµ"+ ++a;fe.test(e.tagName)&&e.textContent.trim()===`\x3c!--${c}--\x3e`&&(e.textContent="",l.push({type:"text",path:te(e)}),c="isµ"+ ++a)}}return{content:r,nodes:l}},pe=(e,t)=>{const{content:n,nodes:r}=he.get(t)||he.set(t,de(e,t)),s=re.call(document,n,!0);return{content:s,updates:r.map(ie,s)}},ge=(e,{type:t,template:n,values:r})=>{const{length:s}=r;we(e,r,s);let{entry:l}=e;l&&l.template===n&&l.type===t||(e.entry=l=((e,t)=>{const{content:n,updates:r}=pe(e,t);return{type:e,template:t,content:n,updates:r,wire:null}})(t,n));const{content:o,updates:a,wire:c}=l;for(let e=0;e<s;e++)a[e](r[e]);return c||(l.wire=(e=>{const{childNodes:t}=e,{length:n}=t;if(n<2)return n?t[0]:e;const r=F.call(t,0);return{ELEMENT_NODE:1,nodeType:111,firstChild:r[0],lastChild:r[n-1],valueOf(){if(t.length!==n){let t=0;for(;t<n;)e.appendChild(r[t++])}return e}}})(o))},we=({stack:e},t,n)=>{for(let r=0;r<n;r++){const n=t[r];n instanceof ve?t[r]=ge(e[r]||(e[r]={stack:[],entry:null,wire:null}),n):P(n)?we(e[r]||(e[r]={stack:[],entry:null,wire:null}),n,n.length):e[r]=null}n<e.length&&e.splice(n)};function ve(e,t,n){this.type=e,this.template=t,this.values=n}const{create:me,defineProperties:ye}=Object,be=e=>{const t=z(new WeakMap);return ye(((t,...n)=>new ve(e,t,n)),{for:{value(n,r){const s=t.get(n)||t.set(n,me(null));return s[r]||(s[r]=(t=>(n,...r)=>ge(t,{type:e,template:n,values:r}))({stack:[],entry:null,wire:null}))}},node:{value:(t,...n)=>ge({stack:[],entry:null,wire:null},{type:e,template:t,values:n}).valueOf()}})},$e=z(new WeakMap),Ce=be("html"),Ee=be("svg"),{create:ke}=Object,xe=(e,...t)=>new ve("html",e,t);xe.for=je(Ce);const Ne=(e,...t)=>new ve("svg",e,t);Ne.for=je(Ee);const Me=z(new WeakMap),Se=(e,t)=>H((async function(){const n=await t.f.apply(this,arguments);return n instanceof ve?(await Te(e,n),t.$=_e(t,n)):t.$=n,t.$})),Ae=()=>({s:[],e:null}),Le=(e,{f:t,c:n,a:r})=>{let{e:s}=e;return s&&s.f===t||(e.e=s={f:t,h:null,$:null},s.h=Se(Ae(),s)),s.h.apply(n,r)},Te=async(e,{values:t})=>{await We(e,t,t.length)},We=async(e,t,n)=>{const{s:r}=e;for(let e=0;e<n;e++){const n=await t[e];n instanceof Oe?t[e]=await Le(r[e]||(r[e]=Ae()),n):n instanceof ve?await Te(r[e]||(r[e]=Ae()),n):P(n)?await We(r[e]||(r[e]=Ae()),n,n.length):r[e]=null}n<r.length&&r.splice(n)},_e=(e,{type:t,template:n,values:r})=>("svg"===t?Ee:Ce).for(e,t)(n,...r);function Oe(e,t,n){this.f=e,this.c=t,this.a=n}function je(e){const t=z(new WeakMap);return(n,r)=>{const s=t.get(n)||t.set(n,ke(null)),l=s[r]||(s[r]=Ae());return async(t,...s)=>(await We(l,s),e.for(n,r)(t,...s))}}return e.Component=function(e){return function(){return new Oe(e,this,arguments)}},e.createContext=e=>({_:new Set,provide:v,value:e}),e.html=xe,e.render=(e,t)=>(Me.get(e)||Me.set(e,{c:Ae(),h:H((async function(t){const n=await("function"==typeof t?t():t);return((e,t)=>{const n="function"==typeof t?t():t,r=$e.get(e)||$e.set(e,{stack:[],entry:null,wire:null}),s=n instanceof ve?ge(r,n):n;return s!==r.wire&&(r.wire=s,e.textContent="",e.appendChild(s.valueOf())),e})(e,n instanceof Oe?await Le(this.c,n):(await Te(this.c,n),n))}),e)})).h(t),e.svg=Ne,e.useCallback=(e,t)=>m((()=>e),t),e.useContext=({_:e,value:t})=>(e.add(d()),t),e.useEffect=b,e.useLayoutEffect=$,e.useMemo=m,e.useReducer=(e,t,n)=>O(S,A,L,E(e,t,n)),e.useRef=e=>{const t=d(),{i:n,s:r}=t;return n===r.length&&r.push({current:e}),r[t.i++]},e.useState=e=>O(S,A,L,(e=>E(C,e))(e)),e}({});
self.Z=function(e){var t="fragment",n="template",r="content"in l(n)?function(e){var t=l(n);return t.innerHTML=e,t.content}:function(e){var r=l(t),a=l(n),o=null;if(/^[^\S]*?<(col(?:group)?|t(?:head|body|foot|r|d|h))/i.test(e)){var c=RegExp.$1;a.innerHTML="<table>"+e+"</table>",o=a.querySelectorAll(c)}else a.innerHTML=e,o=a.childNodes;return s(r,o),r};return function(e,t){return("svg"===t?a:r)(e)};function s(e,t){for(var n=t.length;n--;)e.appendChild(t[0])}function l(n){return n===t?e.createDocumentFragment():e.createElementNS("http://www.w3.org/1999/xhtml",n)}function a(e){var n=l(t),r=l("div");return r.innerHTML='<svg xmlns="http://www.w3.org/2000/svg">'+e+"</svg>",s(n,r.firstChild.childNodes),n}}(document);const ee=({childNodes:e},t)=>e[t],te=e=>{const t=[];let{parentNode:n}=e;for(;n;)t.push(V.call(n.childNodes,e)),n=(e=n).parentNode;return t},{createTreeWalker:ne,importNode:re}=document,se=1!=re.length,le=se?(e,t,n)=>re.call(document,Z(e,t,n),!0):Z,ae=se?e=>ne.call(document,e,129,null,!1):e=>ne.call(document,e,129),oe=(e,t,n)=>((e,t,n,r,s)=>{const l=n.length;let a=t.length,o=l,c=0,i=0,u=null;for(;c<a||i<o;)if(a===c){const t=o<l?i?r(n[i-1],-0).nextSibling:r(n[o-i],0):s;for(;i<o;)e.insertBefore(r(n[i++],1),t)}else if(o===i)for(;c<a;)u&&u.has(t[c])||e.removeChild(r(t[c],-1)),c++;else if(t[c]===n[i])c++,i++;else if(t[a-1]===n[o-1])a--,o--;else if(t[c]===n[o-1]&&n[i]===t[a-1]){const s=r(t[--a],-1).nextSibling;e.insertBefore(r(n[i++],1),r(t[c++],-1).nextSibling),e.insertBefore(r(n[--o],1),s),t[a]=n[o]}else{if(!u){u=new Map;let e=i;for(;e<o;)u.set(n[e],e++)}if(u.has(t[c])){const s=u.get(t[c]);if(i<s&&s<o){let l=c,h=1;for(;++l<a&&l<o&&u.get(t[l])===s+h;)h++;if(h>s-i){const l=r(t[c],0);for(;i<s;)e.insertBefore(r(n[i++],1),l)}else e.replaceChild(r(n[i++],1),r(t[c++],-1))}else c++}else e.removeChild(r(t[c++],-1))}return n})(e.parentNode,t,n,Y,e),ce=e=>{let t,n,r=[];const s=l=>{switch(typeof l){case"string":case"number":case"boolean":t!==l&&(t=l,n?n.nodeValue=l:n=document.createTextNode(l),r=oe(e,r,[n]));break;case"function":s(l(node));break;case"object":case"undefined":if(null==l){t!=l&&(t=l,r=oe(e,r,[]));break}if(P(l)){t=l,0===l.length?r=oe(e,r,[]):"object"==typeof l[0]?r=oe(e,r,l):s(String(l));break}"ELEMENT_NODE"in l&&t!==l&&(t=l,r=oe(e,r,11===l.nodeType?q.call(l.childNodes):[l]))}};return s},ie=(e,t)=>{switch(t[0]){case"?":return((e,t,n)=>r=>{n!==!!r&&((n=!!r)?e.setAttribute(t,""):e.removeAttribute(t))})(e,t.slice(1),!1);case".":return((e,t)=>"dataset"===t?(({dataset:e})=>t=>{for(const n in t){const r=t[n];null==r?delete e[n]:e[n]=r}})(e):n=>{e[t]=n})(e,t.slice(1));case"o":if("n"===t[1])return((e,t)=>{let n,r=t.slice(2);return!(t in e)&&t.toLowerCase()in e&&(r=r.toLowerCase()),t=>{const s=P(t)?t:[t,!1];n!==s[0]&&(n&&e.removeEventListener(r,n,s[1]),(n=s[0])&&e.addEventListener(r,n,s[1]))}})(e,t)}switch(t){case"ref":return(e=>t=>{"function"==typeof t?t(e):t.current=e})(e);case"aria":return(e=>t=>{for(const n in t){const r="role"===n?n:`aria-${n}`,s=t[n];null==s?e.removeAttribute(r):e.setAttribute(r,s)}})(e)}return((e,t)=>{let n,r=!0;const s=document.createAttributeNS(null,t);return t=>{n!==t&&(n=t,null==n?r||(e.removeAttributeNode(s),r=!0):(s.value=t,r&&(e.setAttributeNodeNS(s),r=!1)))}})(e,t)};function ue(e){const{type:t,path:n}=e,r=n.reduceRight(ee,this);return"node"===t?ce(r):"attr"===t?ie(r,e.name):(e=>{let t;return n=>{t!=n&&(t=n,e.textContent=null==n?"":n)}})(r)}const he="isµ",de=z(new WeakMap),fe=/^(?:plaintext|script|style|textarea|title|xmp)$/i,pe=(e,t)=>{const n=((e,t,n)=>{const r=[],{length:s}=e;for(let n=1;n<s;n++){const s=e[n-1];r.push(F.test(s)&&U(e,n)?s.replace(F,((e,r,s)=>`${t}${n-1}=${s||'"'}${r}${s?"":'"'}`)):`${s}\x3c!--${t}${n-1}--\x3e`)}r.push(e[s-1]);const l=r.join("").trim();return n?l:l.replace(K,X)})(t,he,"svg"===e),r=le(n,e),s=ae(r),l=[],a=t.length-1;let o=0,c=`isµ${o}`;for(;o<a;){const e=s.nextNode();if(!e)throw`bad template: ${n}`;if(8===e.nodeType)e.nodeValue===c&&(l.push({type:"node",path:te(e)}),c="isµ"+ ++o);else{for(;e.hasAttribute(c);)l.push({type:"attr",path:te(e),name:e.getAttribute(c)}),e.removeAttribute(c),c="isµ"+ ++o;fe.test(e.tagName)&&e.textContent.trim()===`\x3c!--${c}--\x3e`&&(e.textContent="",l.push({type:"text",path:te(e)}),c="isµ"+ ++o)}}return{content:r,nodes:l}},ge=(e,t)=>{const{content:n,nodes:r}=de.get(t)||de.set(t,pe(e,t)),s=re.call(document,n,!0);return{content:s,updates:r.map(ue,s)}},we=(e,{type:t,template:n,values:r})=>{const{length:s}=r;ve(e,r,s);let{entry:l}=e;l&&l.template===n&&l.type===t||(e.entry=l=((e,t)=>{const{content:n,updates:r}=ge(e,t);return{type:e,template:t,content:n,updates:r,wire:null}})(t,n));const{content:a,updates:o,wire:c}=l;for(let e=0;e<s;e++)o[e](r[e]);return c||(l.wire=(e=>{const{childNodes:t}=e,{length:n}=t;if(n<2)return n?t[0]:e;const r=q.call(t,0);return{ELEMENT_NODE:1,nodeType:111,firstChild:r[0],lastChild:r[n-1],valueOf(){if(t.length!==n){let t=0;for(;t<n;)e.appendChild(r[t++])}return e}}})(a))},ve=({stack:e},t,n)=>{for(let r=0;r<n;r++){const n=t[r];n instanceof me?t[r]=we(e[r]||(e[r]={stack:[],entry:null,wire:null}),n):P(n)?ve(e[r]||(e[r]={stack:[],entry:null,wire:null}),n,n.length):e[r]=null}n<e.length&&e.splice(n)};function me(e,t,n){this.type=e,this.template=t,this.values=n}const{create:ye,defineProperties:be}=Object,$e=e=>{const t=z(new WeakMap);return be(((t,...n)=>new me(e,t,n)),{for:{value(n,r){const s=t.get(n)||t.set(n,ye(null));return s[r]||(s[r]=(t=>(n,...r)=>we(t,{type:e,template:n,values:r}))({stack:[],entry:null,wire:null}))}},node:{value:(t,...n)=>we({stack:[],entry:null,wire:null},{type:e,template:t,values:n}).valueOf()}})},ke=z(new WeakMap),Ee=$e("html"),Ce=$e("svg"),{create:xe}=Object,Ne=(e,...t)=>new me("html",e,t);Ne.for=Re(Ee);const Me=(e,...t)=>new me("svg",e,t);Me.for=Re(Ce);const Se=z(new WeakMap),Ae=(e,t)=>H((async function(){const n=await t.f.apply(this,arguments);return n instanceof me?(await We(e,n),t.$=Oe(t,n)):t.$=n,t.$})),Le=()=>({s:[],e:null}),Te=(e,{f:t,c:n,a:r})=>{let{e:s}=e;return s&&s.f===t||(e.e=s={f:t,h:null,$:null},s.h=Ae(Le(),s)),s.h.apply(n,r)},We=async(e,{values:t})=>{await _e(e,t,t.length)},_e=async(e,t,n)=>{const{s:r}=e;for(let e=0;e<n;e++){const n=await t[e];n instanceof je?t[e]=await Te(r[e]||(r[e]=Le()),n):n instanceof me?await We(r[e]||(r[e]=Le()),n):P(n)?await _e(r[e]||(r[e]=Le()),n,n.length):r[e]=null}n<r.length&&r.splice(n)},Oe=(e,{type:t,template:n,values:r})=>("svg"===t?Ce:Ee).for(e,t)(n,...r);function je(e,t,n){this.f=e,this.c=t,this.a=n}function Re(e){const t=z(new WeakMap);return(n,r)=>{const s=t.get(n)||t.set(n,xe(null)),l=s[r]||(s[r]=Le());return async(t,...s)=>(await _e(l,s),e.for(n,r)(t,...s))}}return e.Component=function(e){return function(){return new je(e,this,arguments)}},e.createContext=e=>({_:new Set,provide:v,value:e}),e.html=Ne,e.render=(e,t)=>(Se.get(e)||Se.set(e,{c:Le(),h:H((async function(t){const n=await("function"==typeof t?t():t);return((e,t)=>{const n="function"==typeof t?t():t,r=ke.get(e)||ke.set(e,{stack:[],entry:null,wire:null}),s=n instanceof me?we(r,n):n;return s!==r.wire&&(r.wire=s,e.textContent="",e.appendChild(s.valueOf())),e})(e,n instanceof je?await Te(this.c,n):(await We(this.c,n),n))}),e)})).h(t),e.svg=Me,e.useCallback=(e,t)=>m((()=>e),t),e.useContext=({_:e,value:t})=>(e.add(f()),t),e.useEffect=b,e.useLayoutEffect=$,e.useMemo=m,e.useReducer=(e,t,n)=>O(S,A,L,E(e,t,n)),e.useRef=e=>{const t=f(),{i:n,s:r}=t;return n===r.length&&r.push({current:e}),r[t.i++]},e.useState=e=>O(S,A,L,(e=>E(k,e))(e)),e}({});
'use strict';
const {hooked} = require('uhooks-dom/async');
const umap = (m => m.__esModule ? /* c8 ignore next */ m.default : /* c8 ignore next */ m)(require('umap'));
const umap = (m => /* c8 ignore start */ m.__esModule ? m.default : m /* c8 ignore stop */)(require('umap'));
const {isArray} = require('uarray');

@@ -5,0 +5,0 @@

'use strict';
const {hooked} = require('uhooks-dom');
const umap = (m => m.__esModule ? /* c8 ignore next */ m.default : /* c8 ignore next */ m)(require('umap'));
const umap = (m => /* c8 ignore start */ m.__esModule ? m.default : m /* c8 ignore stop */)(require('umap'));
const {isArray} = require('uarray');

@@ -5,0 +5,0 @@

@@ -1,7 +0,7 @@

self.uland=function(e){"use strict";var t=CustomEvent;const n=(e,t,n,s)=>{const l=new WeakMap,o=new WeakMap,c=new WeakMap,a=e=>l.has(e),i=e=>{a(e)&&(u(e,e.removeEventListener,l.get(e)),l.delete(e))},u=(e,t,n)=>{t.call(e,"disconnected",n),t.call(e,"connected",n)},h=(e,t,n,r)=>{for(let{length:s}=e,l=0;l<s;l++)f(e[l],t,n,r)},f=(e,r,s,l)=>{a(e)&&!s.has(e)&&(l.delete(e),s.set(e,0),e.dispatchEvent(new(n||CustomEvent)(r))),h(e[t||"children"]||[],r,s,l)},d=new(s||MutationObserver)((e=>{for(let{length:t}=e,n=0;n<t;n++){const{removedNodes:t,addedNodes:r}=e[n];h(t,"disconnected",c,o),h(r,"connected",o,c)}}));return d.observe(e||document,{subtree:!0,childList:!0}),{has:a,connect:(e,t)=>{i(e),(t||(t={})).handleEvent||(t.handleEvent=r),u(e,e.addEventListener,t),l.set(e,t)},disconnect:i,kill(){d.disconnect()}}};function r(e){e.type in this&&this[e.type](e)}var s=Promise;let l=null,o=new Set;const c=e=>{const{$:t,r:n,h:r}=e;v(n)&&(i.get(r).delete(e),n()),v(e.r=t())&&i.get(r).add(e)},a=()=>{const e=o;o=new Set,e.forEach((({h:e,c:t,a:n,e:r})=>{r&&e.apply(t,n)}))},i=new WeakMap,u=[],h=[];function f(e,t){return e!==this[t]}const d=e=>{const t=i.get(e);t&&w.then((()=>{t.forEach((e=>{e.r(),e.r=null})),t.clear()}))},p=()=>l,g=e=>i.has(e),v=e=>"function"==typeof e,m=e=>{const t={h:n,c:null,a:null,e:0,i:0,s:[]};return n;function n(){const n=l;l=t,t.e=t.i=0;try{return e.apply(t.c=this,t.a=arguments)}finally{l=n,u.length&&w.then(u.forEach.bind(u.splice(0),c)),h.length&&h.splice(0).forEach(c)}}},w=new s((e=>e()));function y(e){const{_:t,value:n}=this;n!==e&&(this._=new Set,this.value=e,t.forEach((({h:e,c:t,a:n})=>{e.apply(t,n)})))}const b=(e,t)=>{const n=p(),{i:r,s:s}=n;return r!==s.length&&t&&!t.some(f,s[r]._)||(s[r]={$:e(),_:t}),s[n.i++].$},$=e=>(t,n)=>{const r=p(),{i:s,s:l,h:o}=r,c=s===l.length;r.i++,c&&(i.has(o)||i.set(o,new Set),l[s]={$:t,_:n,r:null,h:o}),(c||!n||n.some(f,l[s]._))&&e.push(l[s]),l[s].$=t,l[s]._=n},C=$(u),E=$(h),k=(e,t)=>v(t)?t(e):t,x=(e,t,n)=>{const r=p(),{i:s,s:l}=r;s===l.length&&l.push({$:v(n)?n(t):k(void 0,t),set:t=>{l[s].$=e(l[s].$,t),(e=>{o.has(e)||(e.e=1,o.add(e),w.then(a))})(r)}});const{$:c,set:i}=l[r.i++];return[c,i]};
self.uland=function(e){"use strict";var t=CustomEvent;const n=(e,t,n,s)=>{const l=new WeakMap,o=new WeakMap,c=new WeakMap,a=e=>l.has(e),i=e=>{a(e)&&(u(e,e.removeEventListener,l.get(e)),l.delete(e))},u=(e,t,n)=>{t.call(e,"disconnected",n),t.call(e,"connected",n)},h=(e,t,n,r)=>{for(let{length:s}=e,l=0;l<s;l++)d(e[l],t,n,r)},d=(e,r,s,l)=>{a(e)&&!s.has(e)&&(l.delete(e),s.set(e,0),e.dispatchEvent(new(n||CustomEvent)(r))),h(e[t||"children"]||[],r,s,l)},f=new(s||MutationObserver)((e=>{for(let{length:t}=e,n=0;n<t;n++){const{removedNodes:t,addedNodes:r}=e[n];h(t,"disconnected",c,o),h(r,"connected",o,c)}}));return f.observe(e||document,{subtree:!0,childList:!0}),{has:a,connect:(e,t)=>{i(e),(t||(t={})).handleEvent||(t.handleEvent=r),u(e,e.addEventListener,t),l.set(e,t)},disconnect:i,kill(){f.disconnect()}}};function r(e){e.type in this&&this[e.type](e)}var s=Promise;let l=null,o=new Set;const c=e=>{const{$:t,r:n,h:r}=e;v(n)&&(i.get(r).delete(e),n()),v(e.r=t())&&i.get(r).add(e)},a=()=>{const e=o;o=new Set,e.forEach((({h:e,c:t,a:n,e:r})=>{r&&e.apply(t,n)}))},i=new WeakMap,u=[],h=[];function d(e,t){return e!==this[t]}const f=e=>{const t=i.get(e);t&&w.then((()=>{t.forEach((e=>{e.r(),e.r=null})),t.clear()}))},p=()=>l,g=e=>i.has(e),v=e=>"function"==typeof e,m=e=>{const t={h:n,c:null,a:null,e:0,i:0,s:[]};return n;function n(){const n=l;l=t,t.e=t.i=0;try{return e.apply(t.c=this,t.a=arguments)}finally{l=n,u.length&&w.then(u.forEach.bind(u.splice(0),c)),h.length&&h.splice(0).forEach(c)}}},w=new s((e=>e()));function y(e){const{_:t,value:n}=this;n!==e&&(this._=new Set,this.value=e,t.forEach((({h:e,c:t,a:n})=>{e.apply(t,n)})))}const b=(e,t)=>{const n=p(),{i:r,s:s}=n;return r!==s.length&&t&&!t.some(d,s[r]._)||(s[r]={$:e(),_:t}),s[n.i++].$},$=e=>(t,n)=>{const r=p(),{i:s,s:l,h:o}=r,c=s===l.length;r.i++,c&&(i.has(o)||i.set(o,new Set),l[s]={$:t,_:n,r:null,h:o}),(c||!n||n.some(d,l[s]._))&&e.push(l[s]),l[s].$=t,l[s]._=n},E=$(u),k=$(h),C=(e,t)=>v(t)?t(e):t,x=(e,t,n)=>{const r=p(),{i:s,s:l}=r;s===l.length&&l.push({$:v(n)?n(t):C(void 0,t),set:t=>{l[s].$=e(l[s].$,t),(e=>{o.has(e)||(e.e=1,o.add(e),w.then(a))})(r)}});const{$:c,set:i}=l[r.i++];return[c,i]};
/*! (c) Andrea Giammarchi - ISC */
let N=null,M=null,S=null;const A=new WeakMap,L=new WeakMap,T=(e,t,n,r)=>{const s=s=>{A.has(e)||(A.set(e,0),w.then((()=>{A.delete(e),e.apply(t,n)}))),r(s)};return L.set(r,s),s},W=(e,t,n,r)=>e?[r[0],L.get(r[1])||T(e,t,n,r[1])]:r,_=(e,t)=>{const n=m(t?function(){const[t,r,s]=[N,M,S];[N,M,S]=[n,this,arguments];try{return e.apply(M,S)}finally{[N,M,S]=[t,r,s]}}:e);return n};
/*! (c) Andrea Giammarchi - ISC */
let O=null;const j=({firstChild:e})=>{if(e&&1!==e.nodeType&&!(e=e.nextElementSibling))throw"unobservable";return e},R=e=>{const{nodeType:t}=e;if(t)return 1===t?e:j(e);{const t=e.valueOf();return t!==e?R(t):j(t)}},B=(e,r)=>{const s=_(e,r);return function(){const e=s.apply(this,arguments);if(g(s)){const r=R(e);O||(O=n(r.ownerDocument,"children",t)),O.has(r)||O.connect(r,{disconnected(){d(s)}})}return e}};var D=e=>({get:t=>e.get(t),set:(t,n)=>(e.set(t,n),n)});const{isArray:H}=Array,{indexOf:z,slice:P}=[],q=/([^\s\\>"'=]+)\s*=\s*(['"]?)$/,F=/^(?:area|base|br|col|embed|hr|img|input|keygen|link|menuitem|meta|param|source|track|wbr)$/i,G=/<[a-z][^>]+$/i,I=/>[^<>]*$/,J=/<([a-z]+[a-z0-9:._-]*)([^>]*?)(\/>)/gi,K=/\s+$/,Q=(e,t)=>0<t--&&(G.test(e[t])||!I.test(e[t])&&Q(e,t)),U=(e,t,n)=>F.test(t)?e:`<${t}${n.replace(K,"")}></${t}>`;const V=(e,t)=>111===e.nodeType?1/t<0?t?(({firstChild:e,lastChild:t})=>{const n=document.createRange();return n.setStartAfter(e),n.setEndAfter(t),n.deleteContents(),e})(e):e.lastChild:t?e.valueOf():e.firstChild:e;
let O=null;const j=({firstChild:e})=>{if(e&&1!==e.nodeType&&!(e=e.nextElementSibling))throw"unobservable";return e},R=e=>{const{nodeType:t}=e;if(t)return 1===t?e:j(e);{const t=e.valueOf();return t!==e?R(t):j(t)}},B=(e,r)=>{const s=_(e,r);return function(){const e=s.apply(this,arguments);if(g(s)){const r=R(e);O||(O=n(r.ownerDocument,"children",t)),O.has(r)||O.connect(r,{disconnected(){f(s)}})}return e}};var D=e=>({get:t=>e.get(t),set:(t,n)=>(e.set(t,n),n)});const{isArray:H}=Array,{indexOf:z,slice:P}=[],V=/([^\s\\>"'=]+)\s*=\s*(['"]?)$/,q=/^(?:area|base|br|col|embed|hr|img|input|keygen|link|menuitem|meta|param|source|track|wbr)$/i,F=/<[a-z][^>]+$/i,G=/>[^<>]*$/,I=/<([a-z]+[a-z0-9:._-]*)([^>]*?)(\/>)/gi,J=/\s+$/,K=(e,t)=>0<t--&&(F.test(e[t])||!G.test(e[t])&&K(e,t)),Q=(e,t,n)=>q.test(t)?e:`<${t}${n.replace(J,"")}></${t}>`;const U=(e,t)=>111===e.nodeType?1/t<0?t?(({firstChild:e,lastChild:t})=>{const n=document.createRange();return n.setStartAfter(e),n.setEndAfter(t),n.deleteContents(),e})(e):e.lastChild:t?e.valueOf():e.firstChild:e;
/*! (c) Andrea Giammarchi - ISC */
self.X=function(e){var t="fragment",n="template",r="content"in l(n)?function(e){var t=l(n);return t.innerHTML=e,t.content}:function(e){var r=l(t),o=l(n),c=null;if(/^[^\S]*?<(col(?:group)?|t(?:head|body|foot|r|d|h))/i.test(e)){var a=RegExp.$1;o.innerHTML="<table>"+e+"</table>",c=o.querySelectorAll(a)}else o.innerHTML=e,c=o.childNodes;return s(r,c),r};return function(e,t){return("svg"===t?o:r)(e)};function s(e,t){for(var n=t.length;n--;)e.appendChild(t[0])}function l(n){return n===t?e.createDocumentFragment():e.createElementNS("http://www.w3.org/1999/xhtml",n)}function o(e){var n=l(t),r=l("div");return r.innerHTML='<svg xmlns="http://www.w3.org/2000/svg">'+e+"</svg>",s(n,r.firstChild.childNodes),n}}(document);const Y=({childNodes:e},t)=>e[t],Z=e=>{const t=[];let{parentNode:n}=e;for(;n;)t.push(z.call(n.childNodes,e)),n=(e=n).parentNode;return t},{createTreeWalker:ee,importNode:te}=document,ne=1!=te.length,re=ne?(e,t,n)=>te.call(document,X(e,t,n),!0):X,se=ne?e=>ee.call(document,e,129,null,!1):e=>ee.call(document,e,129),le=(e,t,n)=>((e,t,n,r,s)=>{const l=n.length;let o=t.length,c=l,a=0,i=0,u=null;for(;a<o||i<c;)if(o===a){const t=c<l?i?r(n[i-1],-0).nextSibling:r(n[c-i],0):s;for(;i<c;)e.insertBefore(r(n[i++],1),t)}else if(c===i)for(;a<o;)u&&u.has(t[a])||e.removeChild(r(t[a],-1)),a++;else if(t[a]===n[i])a++,i++;else if(t[o-1]===n[c-1])o--,c--;else if(t[a]===n[c-1]&&n[i]===t[o-1]){const s=r(t[--o],-1).nextSibling;e.insertBefore(r(n[i++],1),r(t[a++],-1).nextSibling),e.insertBefore(r(n[--c],1),s),t[o]=n[c]}else{if(!u){u=new Map;let e=i;for(;e<c;)u.set(n[e],e++)}if(u.has(t[a])){const s=u.get(t[a]);if(i<s&&s<c){let l=a,h=1;for(;++l<o&&l<c&&u.get(t[l])===s+h;)h++;if(h>s-i){const l=r(t[a],0);for(;i<s;)e.insertBefore(r(n[i++],1),l)}else e.replaceChild(r(n[i++],1),r(t[a++],-1))}else a++}else e.removeChild(r(t[a++],-1))}return n})(e.parentNode,t,n,V,e),oe=(e,t)=>{switch(t[0]){case"?":return((e,t)=>n=>{n?e.setAttribute(t,""):e.removeAttribute(t)})(e,t.slice(1));case".":return((e,t)=>"dataset"===t?(({dataset:e})=>t=>{for(const n in t){const r=t[n];null==r?delete e[n]:e[n]=r}})(e):n=>{e[t]=n})(e,t.slice(1));case"o":if("n"===t[1])return((e,t)=>{let n,r=t.slice(2);return!(t in e)&&t.toLowerCase()in e&&(r=r.toLowerCase()),t=>{const s=H(t)?t:[t,!1];n!==s[0]&&(n&&e.removeEventListener(r,n,s[1]),(n=s[0])&&e.addEventListener(r,n,s[1]))}})(e,t)}switch(t){case"ref":return(e=>t=>{"function"==typeof t?t(e):t.current=e})(e);case"aria":return(e=>t=>{for(const n in t){const r="role"===n?n:`aria-${n}`,s=t[n];null==s?e.removeAttribute(r):e.setAttribute(r,s)}})(e)}return((e,t)=>{let n,r=!0;const s=document.createAttributeNS(null,t);return t=>{n!==t&&(n=t,null==n?r||(e.removeAttributeNode(s),r=!0):(s.value=t,r&&(e.setAttributeNodeNS(s),r=!1)))}})(e,t)};function ce(e){const{type:t,path:n}=e,r=n.reduceRight(Y,this);return"node"===t?(e=>{let t,n,r=[];const s=l=>{switch(typeof l){case"string":case"number":case"boolean":t!==l&&(t=l,n?n.textContent=l:n=document.createTextNode(l),r=le(e,r,[n]));break;case"object":case"undefined":if(null==l){t!=l&&(t=l,r=le(e,r,[]));break}if(H(l)){t=l,0===l.length?r=le(e,r,[]):"object"==typeof l[0]?r=le(e,r,l):s(String(l));break}"ELEMENT_NODE"in l&&t!==l&&(t=l,r=le(e,r,11===l.nodeType?P.call(l.childNodes):[l]))}};return s})(r):"attr"===t?oe(r,e.name):(e=>{let t;return n=>{t!=n&&(t=n,e.textContent=null==n?"":n)}})(r)}const ae="isµ",ie=D(new WeakMap),ue=/^(?:plaintext|script|style|textarea|title|xmp)$/i,he=(e,t)=>{const n=((e,t,n)=>{const r=[],{length:s}=e;for(let n=1;n<s;n++){const s=e[n-1];r.push(q.test(s)&&Q(e,n)?s.replace(q,((e,r,s)=>`${t}${n-1}=${s||'"'}${r}${s?"":'"'}`)):`${s}\x3c!--${t}${n-1}--\x3e`)}r.push(e[s-1]);const l=r.join("").trim();return n?l:l.replace(J,U)})(t,ae,"svg"===e),r=re(n,e),s=se(r),l=[],o=t.length-1;let c=0,a=`isµ${c}`;for(;c<o;){const e=s.nextNode();if(!e)throw`bad template: ${n}`;if(8===e.nodeType)e.textContent===a&&(l.push({type:"node",path:Z(e)}),a="isµ"+ ++c);else{for(;e.hasAttribute(a);)l.push({type:"attr",path:Z(e),name:e.getAttribute(a)}),e.removeAttribute(a),a="isµ"+ ++c;ue.test(e.tagName)&&e.textContent.trim()===`\x3c!--${a}--\x3e`&&(e.textContent="",l.push({type:"text",path:Z(e)}),a="isµ"+ ++c)}}return{content:r,nodes:l}},fe=(e,t)=>{const{content:n,nodes:r}=ie.get(t)||ie.set(t,he(e,t)),s=te.call(document,n,!0);return{content:s,updates:r.map(ce,s)}},de=(e,{type:t,template:n,values:r})=>{const{length:s}=r;pe(e,r,s);let{entry:l}=e;l&&l.template===n&&l.type===t||(e.entry=l=((e,t)=>{const{content:n,updates:r}=fe(e,t);return{type:e,template:t,content:n,updates:r,wire:null}})(t,n));const{content:o,updates:c,wire:a}=l;for(let e=0;e<s;e++)c[e](r[e]);return a||(l.wire=(e=>{const{childNodes:t}=e,{length:n}=t;if(n<2)return n?t[0]:e;const r=P.call(t,0);return{ELEMENT_NODE:1,nodeType:111,firstChild:r[0],lastChild:r[n-1],valueOf(){if(t.length!==n){let t=0;for(;t<n;)e.appendChild(r[t++])}return e}}})(o))},pe=({stack:e},t,n)=>{for(let r=0;r<n;r++){const n=t[r];n instanceof ge?t[r]=de(e[r]||(e[r]={stack:[],entry:null,wire:null}),n):H(n)?pe(e[r]||(e[r]={stack:[],entry:null,wire:null}),n,n.length):e[r]=null}n<e.length&&e.splice(n)};function ge(e,t,n){this.type=e,this.template=t,this.values=n}const{create:ve,defineProperties:me}=Object,we=e=>{const t=D(new WeakMap);return me(((t,...n)=>new ge(e,t,n)),{for:{value(n,r){const s=t.get(n)||t.set(n,ve(null));return s[r]||(s[r]=(t=>(n,...r)=>de(t,{type:e,template:n,values:r}))({stack:[],entry:null,wire:null}))}},node:{value:(t,...n)=>de({stack:[],entry:null,wire:null},{type:e,template:t,values:n}).valueOf()}})},ye=D(new WeakMap),be=we("html"),$e=we("svg"),{create:Ce}=Object,Ee=(e,...t)=>new ge("html",e,t);Ee.for=_e(be);const ke=(e,...t)=>new ge("svg",e,t);ke.for=_e($e);const xe=D(new WeakMap),Ne=(e,t)=>B((function(){const n=t.f.apply(this,arguments);return n instanceof ge?(Ae(e,n),t.$=Te(t,n)):t.$=n,t.$})),Me=()=>({s:[],e:null}),Se=(e,{f:t,c:n,a:r})=>{let{e:s}=e;return s&&s.f===t||(e.e=s={f:t,h:null,$:null},s.h=Ne(Me(),s)),s.h.apply(n,r)},Ae=(e,{values:t})=>{Le(e,t,t.length)},Le=(e,t,n)=>{const{s:r}=e;for(let e=0;e<n;e++){const n=t[e];n instanceof We?t[e]=Se(r[e]||(r[e]=Me()),n):n instanceof ge?Ae(r[e]||(r[e]=Me()),n):H(n)?Le(r[e]||(r[e]=Me()),n,n.length):r[e]=null}n<r.length&&r.splice(n)},Te=(e,{type:t,template:n,values:r})=>("svg"===t?$e:be).for(e,t)(n,...r);function We(e,t,n){this.f=e,this.c=t,this.a=n}function _e(e){const t=D(new WeakMap);return(n,r)=>{const s=t.get(n)||t.set(n,Ce(null)),l=s[r]||(s[r]=Me());return(t,...s)=>(Le(l,s),e.for(n,r)(t,...s))}}return e.Component=function(e){return function(){return new We(e,this,arguments)}},e.createContext=e=>({_:new Set,provide:y,value:e}),e.html=Ee,e.render=(e,t)=>(xe.get(e)||xe.set(e,{c:Me(),h:B((function(t){const n="function"==typeof t?t():t;return((e,t)=>{const n="function"==typeof t?t():t,r=ye.get(e)||ye.set(e,{stack:[],entry:null,wire:null}),s=n instanceof ge?de(r,n):n;return s!==r.wire&&(r.wire=s,e.textContent="",e.appendChild(s.valueOf())),e})(e,n instanceof We?Se(this.c,n):(Ae(this.c,n),n))}),e)})).h(t),e.svg=ke,e.useCallback=(e,t)=>b((()=>e),t),e.useContext=({_:e,value:t})=>(e.add(p()),t),e.useEffect=C,e.useLayoutEffect=E,e.useMemo=b,e.useReducer=(e,t,n)=>W(N,M,S,x(e,t,n)),e.useRef=e=>{const t=p(),{i:n,s:r}=t;return n===r.length&&r.push({current:e}),r[t.i++]},e.useState=e=>W(N,M,S,(e=>x(k,e))(e)),e}({});
self.X=function(e){var t="fragment",n="template",r="content"in l(n)?function(e){var t=l(n);return t.innerHTML=e,t.content}:function(e){var r=l(t),o=l(n),c=null;if(/^[^\S]*?<(col(?:group)?|t(?:head|body|foot|r|d|h))/i.test(e)){var a=RegExp.$1;o.innerHTML="<table>"+e+"</table>",c=o.querySelectorAll(a)}else o.innerHTML=e,c=o.childNodes;return s(r,c),r};return function(e,t){return("svg"===t?o:r)(e)};function s(e,t){for(var n=t.length;n--;)e.appendChild(t[0])}function l(n){return n===t?e.createDocumentFragment():e.createElementNS("http://www.w3.org/1999/xhtml",n)}function o(e){var n=l(t),r=l("div");return r.innerHTML='<svg xmlns="http://www.w3.org/2000/svg">'+e+"</svg>",s(n,r.firstChild.childNodes),n}}(document);const Y=({childNodes:e},t)=>e[t],Z=e=>{const t=[];let{parentNode:n}=e;for(;n;)t.push(z.call(n.childNodes,e)),n=(e=n).parentNode;return t},{createTreeWalker:ee,importNode:te}=document,ne=1!=te.length,re=ne?(e,t,n)=>te.call(document,X(e,t,n),!0):X,se=ne?e=>ee.call(document,e,129,null,!1):e=>ee.call(document,e,129),le=(e,t,n)=>((e,t,n,r,s)=>{const l=n.length;let o=t.length,c=l,a=0,i=0,u=null;for(;a<o||i<c;)if(o===a){const t=c<l?i?r(n[i-1],-0).nextSibling:r(n[c-i],0):s;for(;i<c;)e.insertBefore(r(n[i++],1),t)}else if(c===i)for(;a<o;)u&&u.has(t[a])||e.removeChild(r(t[a],-1)),a++;else if(t[a]===n[i])a++,i++;else if(t[o-1]===n[c-1])o--,c--;else if(t[a]===n[c-1]&&n[i]===t[o-1]){const s=r(t[--o],-1).nextSibling;e.insertBefore(r(n[i++],1),r(t[a++],-1).nextSibling),e.insertBefore(r(n[--c],1),s),t[o]=n[c]}else{if(!u){u=new Map;let e=i;for(;e<c;)u.set(n[e],e++)}if(u.has(t[a])){const s=u.get(t[a]);if(i<s&&s<c){let l=a,h=1;for(;++l<o&&l<c&&u.get(t[l])===s+h;)h++;if(h>s-i){const l=r(t[a],0);for(;i<s;)e.insertBefore(r(n[i++],1),l)}else e.replaceChild(r(n[i++],1),r(t[a++],-1))}else a++}else e.removeChild(r(t[a++],-1))}return n})(e.parentNode,t,n,U,e),oe=e=>{let t,n,r=[];const s=l=>{switch(typeof l){case"string":case"number":case"boolean":t!==l&&(t=l,n?n.nodeValue=l:n=document.createTextNode(l),r=le(e,r,[n]));break;case"function":s(l(node));break;case"object":case"undefined":if(null==l){t!=l&&(t=l,r=le(e,r,[]));break}if(H(l)){t=l,0===l.length?r=le(e,r,[]):"object"==typeof l[0]?r=le(e,r,l):s(String(l));break}"ELEMENT_NODE"in l&&t!==l&&(t=l,r=le(e,r,11===l.nodeType?P.call(l.childNodes):[l]))}};return s},ce=(e,t)=>{switch(t[0]){case"?":return((e,t,n)=>r=>{n!==!!r&&((n=!!r)?e.setAttribute(t,""):e.removeAttribute(t))})(e,t.slice(1),!1);case".":return((e,t)=>"dataset"===t?(({dataset:e})=>t=>{for(const n in t){const r=t[n];null==r?delete e[n]:e[n]=r}})(e):n=>{e[t]=n})(e,t.slice(1));case"o":if("n"===t[1])return((e,t)=>{let n,r=t.slice(2);return!(t in e)&&t.toLowerCase()in e&&(r=r.toLowerCase()),t=>{const s=H(t)?t:[t,!1];n!==s[0]&&(n&&e.removeEventListener(r,n,s[1]),(n=s[0])&&e.addEventListener(r,n,s[1]))}})(e,t)}switch(t){case"ref":return(e=>t=>{"function"==typeof t?t(e):t.current=e})(e);case"aria":return(e=>t=>{for(const n in t){const r="role"===n?n:`aria-${n}`,s=t[n];null==s?e.removeAttribute(r):e.setAttribute(r,s)}})(e)}return((e,t)=>{let n,r=!0;const s=document.createAttributeNS(null,t);return t=>{n!==t&&(n=t,null==n?r||(e.removeAttributeNode(s),r=!0):(s.value=t,r&&(e.setAttributeNodeNS(s),r=!1)))}})(e,t)};function ae(e){const{type:t,path:n}=e,r=n.reduceRight(Y,this);return"node"===t?oe(r):"attr"===t?ce(r,e.name):(e=>{let t;return n=>{t!=n&&(t=n,e.textContent=null==n?"":n)}})(r)}const ie="isµ",ue=D(new WeakMap),he=/^(?:plaintext|script|style|textarea|title|xmp)$/i,de=(e,t)=>{const n=((e,t,n)=>{const r=[],{length:s}=e;for(let n=1;n<s;n++){const s=e[n-1];r.push(V.test(s)&&K(e,n)?s.replace(V,((e,r,s)=>`${t}${n-1}=${s||'"'}${r}${s?"":'"'}`)):`${s}\x3c!--${t}${n-1}--\x3e`)}r.push(e[s-1]);const l=r.join("").trim();return n?l:l.replace(I,Q)})(t,ie,"svg"===e),r=re(n,e),s=se(r),l=[],o=t.length-1;let c=0,a=`isµ${c}`;for(;c<o;){const e=s.nextNode();if(!e)throw`bad template: ${n}`;if(8===e.nodeType)e.nodeValue===a&&(l.push({type:"node",path:Z(e)}),a="isµ"+ ++c);else{for(;e.hasAttribute(a);)l.push({type:"attr",path:Z(e),name:e.getAttribute(a)}),e.removeAttribute(a),a="isµ"+ ++c;he.test(e.tagName)&&e.textContent.trim()===`\x3c!--${a}--\x3e`&&(e.textContent="",l.push({type:"text",path:Z(e)}),a="isµ"+ ++c)}}return{content:r,nodes:l}},fe=(e,t)=>{const{content:n,nodes:r}=ue.get(t)||ue.set(t,de(e,t)),s=te.call(document,n,!0);return{content:s,updates:r.map(ae,s)}},pe=(e,{type:t,template:n,values:r})=>{const{length:s}=r;ge(e,r,s);let{entry:l}=e;l&&l.template===n&&l.type===t||(e.entry=l=((e,t)=>{const{content:n,updates:r}=fe(e,t);return{type:e,template:t,content:n,updates:r,wire:null}})(t,n));const{content:o,updates:c,wire:a}=l;for(let e=0;e<s;e++)c[e](r[e]);return a||(l.wire=(e=>{const{childNodes:t}=e,{length:n}=t;if(n<2)return n?t[0]:e;const r=P.call(t,0);return{ELEMENT_NODE:1,nodeType:111,firstChild:r[0],lastChild:r[n-1],valueOf(){if(t.length!==n){let t=0;for(;t<n;)e.appendChild(r[t++])}return e}}})(o))},ge=({stack:e},t,n)=>{for(let r=0;r<n;r++){const n=t[r];n instanceof ve?t[r]=pe(e[r]||(e[r]={stack:[],entry:null,wire:null}),n):H(n)?ge(e[r]||(e[r]={stack:[],entry:null,wire:null}),n,n.length):e[r]=null}n<e.length&&e.splice(n)};function ve(e,t,n){this.type=e,this.template=t,this.values=n}const{create:me,defineProperties:we}=Object,ye=e=>{const t=D(new WeakMap);return we(((t,...n)=>new ve(e,t,n)),{for:{value(n,r){const s=t.get(n)||t.set(n,me(null));return s[r]||(s[r]=(t=>(n,...r)=>pe(t,{type:e,template:n,values:r}))({stack:[],entry:null,wire:null}))}},node:{value:(t,...n)=>pe({stack:[],entry:null,wire:null},{type:e,template:t,values:n}).valueOf()}})},be=D(new WeakMap),$e=ye("html"),Ee=ye("svg"),{create:ke}=Object,Ce=(e,...t)=>new ve("html",e,t);Ce.for=Oe($e);const xe=(e,...t)=>new ve("svg",e,t);xe.for=Oe(Ee);const Ne=D(new WeakMap),Me=(e,t)=>B((function(){const n=t.f.apply(this,arguments);return n instanceof ve?(Le(e,n),t.$=We(t,n)):t.$=n,t.$})),Se=()=>({s:[],e:null}),Ae=(e,{f:t,c:n,a:r})=>{let{e:s}=e;return s&&s.f===t||(e.e=s={f:t,h:null,$:null},s.h=Me(Se(),s)),s.h.apply(n,r)},Le=(e,{values:t})=>{Te(e,t,t.length)},Te=(e,t,n)=>{const{s:r}=e;for(let e=0;e<n;e++){const n=t[e];n instanceof _e?t[e]=Ae(r[e]||(r[e]=Se()),n):n instanceof ve?Le(r[e]||(r[e]=Se()),n):H(n)?Te(r[e]||(r[e]=Se()),n,n.length):r[e]=null}n<r.length&&r.splice(n)},We=(e,{type:t,template:n,values:r})=>("svg"===t?Ee:$e).for(e,t)(n,...r);function _e(e,t,n){this.f=e,this.c=t,this.a=n}function Oe(e){const t=D(new WeakMap);return(n,r)=>{const s=t.get(n)||t.set(n,ke(null)),l=s[r]||(s[r]=Se());return(t,...s)=>(Te(l,s),e.for(n,r)(t,...s))}}return e.Component=function(e){return function(){return new _e(e,this,arguments)}},e.createContext=e=>({_:new Set,provide:y,value:e}),e.html=Ce,e.render=(e,t)=>(Ne.get(e)||Ne.set(e,{c:Se(),h:B((function(t){const n="function"==typeof t?t():t;return((e,t)=>{const n="function"==typeof t?t():t,r=be.get(e)||be.set(e,{stack:[],entry:null,wire:null}),s=n instanceof ve?pe(r,n):n;return s!==r.wire&&(r.wire=s,e.textContent="",e.appendChild(s.valueOf())),e})(e,n instanceof _e?Ae(this.c,n):(Le(this.c,n),n))}),e)})).h(t),e.svg=xe,e.useCallback=(e,t)=>b((()=>e),t),e.useContext=({_:e,value:t})=>(e.add(p()),t),e.useEffect=E,e.useLayoutEffect=k,e.useMemo=b,e.useReducer=(e,t,n)=>W(N,M,S,x(e,t,n)),e.useRef=e=>{const t=p(),{i:n,s:r}=t;return n===r.length&&r.push({current:e}),r[t.i++]},e.useState=e=>W(N,M,S,(e=>x(C,e))(e)),e}({});

@@ -491,3 +491,3 @@ self.uland = (function (exports) {

var empty = /^(?:area|base|br|col|embed|hr|img|input|keygen|link|menuitem|meta|param|source|track|wbr)$/i;
var node = /<[a-z][^>]+$/i;
var node$1 = /<[a-z][^>]+$/i;
var notNode = />[^<>]*$/;

@@ -498,3 +498,3 @@ var selfClosing = /<([a-z]+[a-z0-9:._-]*)([^>]*?)(\/>)/ig;

var isNode = function isNode(template, i) {
return 0 < i-- && (node.test(template[i]) || !notNode.test(template[i]) && isNode(template, i));
return 0 < i-- && (node$1.test(template[i]) || !notNode.test(template[i]) && isNode(template, i));
};

@@ -748,5 +748,9 @@

var _boolean = function _boolean(node, key) {
return function (value) {
if (value) node.setAttribute(key, '');else node.removeAttribute(key);
var _boolean = function _boolean(node, key, oldValue) {
return function (newValue) {
if (oldValue !== !!newValue) {
// when IE won't be around anymore ...
// node.toggleAttribute(key, oldValue = !!newValue);
if (oldValue = !!newValue) node.setAttribute(key, '');else node.removeAttribute(key);
}
};

@@ -929,3 +933,3 @@ };

oldValue = newValue;
if (text) text.textContent = newValue;else text = document.createTextNode(newValue);
if (text) text.nodeValue = newValue;else text = document.createTextNode(newValue);
nodes = diff(comment, nodes, [text]);

@@ -935,2 +939,6 @@ }

break;
case 'function':
anyContent(newValue(node));
break;
// null, and undefined are used to cleanup previous content

@@ -976,2 +984,3 @@

// * aria=${...} for aria attributes
// * ?boolean=${...} for boolean attributes
// * .dataset=${...} for dataset related attributes

@@ -989,3 +998,3 @@ // * .setter=${...} for Custom Elements setters or nodes with setters

case '?':
return _boolean(node, name.slice(1));
return _boolean(node, name.slice(1), false);

@@ -1100,3 +1109,3 @@ case '.':

// which content is exactly the same as the searched one.
if (node.textContent === search) {
if (node.nodeValue === search) {
nodes.push({

@@ -1103,0 +1112,0 @@ type: 'node',

@@ -1,2 +0,2 @@

self.uland=function(t){"use strict";function n(t){return function(t){if(Array.isArray(t))return e(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,n){if(!t)return;if("string"==typeof t)return e(t,n);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return e(t,n)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}
/*! (c) Andrea Giammarchi - ISC */()}function e(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=new Array(n);e<n;e++)r[e]=t[e];return r}var r={};r.CustomEvent="function"==typeof CustomEvent?CustomEvent:function(t){return n[t]=new n("").constructor[t],n;function n(t,n){n||(n={});var e=document.createEvent("CustomEvent");return e.initCustomEvent(t,!!n.bubbles,!!n.cancelable,n.detail),e}}("prototype");var u=r.CustomEvent,o=function(t,n,e,r){var u=new WeakMap,o=new WeakMap,i=new WeakMap,c=function(t){return u.has(t)},l=function(t){c(t)&&(f(t,t.removeEventListener,u.get(t)),u.delete(t))},f=function(t,n,e){n.call(t,"disconnected",e),n.call(t,"connected",e)},s=function(t,n,e,r){for(var u=t.length,o=0;o<u;o++)v(t[o],n,e,r)},v=function(t,r,u,o){c(t)&&!u.has(t)&&(o.delete(t),u.set(t,0),t.dispatchEvent(new(e||CustomEvent)(r))),s(t[n||"children"]||[],r,u,o)},h=new(r||MutationObserver)((function(t){for(var n=t.length,e=0;e<n;e++){var r=t[e],u=r.removedNodes,a=r.addedNodes;s(u,"disconnected",i,o),s(a,"connected",o,i)}}));return h.observe(t||document,{subtree:!0,childList:!0}),{has:c,connect:function(t,n){l(t),(n||(n={})).handleEvent||(n.handleEvent=a),f(t,t.addEventListener,n),u.set(t,n)},disconnect:l,kill:function(){h.disconnect()}}};function a(t){t.type in this&&this[t.type](t)}var i="function"==typeof Promise?Promise:function(t){var n,e=[],r=0;return t((function(t){n=t,r=1,e.splice(0).forEach(u)})),{then:u};function u(t){return r?setTimeout(t,0,n):e.push(t),this}},c=null,l=new Set,f=function(t){var n=t.$,e=t.r,r=t.h;w(e)&&(v.get(r).delete(t),e()),w(t.r=n())&&v.get(r).add(t)},s=function(){var t=l;l=new Set,t.forEach((function(t){var n=t.h,e=t.c,r=t.a;t.e&&n.apply(e,r)}))},v=new WeakMap,h=[],d=[];function p(t,n){return t!==this[n]}var m=function(t){var n=v.get(t);n&&b.then((function(){n.forEach((function(t){t.r(),t.r=null})),n.clear()}))},g=function(){return c},y=function(t){return v.has(t)},w=function(t){return"function"==typeof t},b=new i((function(t){return t()}));function E(t){var n=this._;this.value!==t&&(this._=new Set,this.value=t,n.forEach((function(t){var n=t.h,e=t.c,r=t.a;n.apply(e,r)})))}var C=function(t,n){var e=g(),r=e.i,u=e.s;return r!==u.length&&n&&!n.some(p,u[r]._)||(u[r]={$:t(),_:n}),u[e.i++].$},A=function(t){return function(n,e){var r=g(),u=r.i,o=r.s,a=r.h,i=u===o.length;r.i++,i&&(v.has(a)||v.set(a,new Set),o[u]={$:n,_:e,r:null,h:a}),(i||!e||e.some(p,o[u]._))&&t.push(o[u]),o[u].$=n,o[u]._=e}},k=A(h),x=A(d),N=function(t,n){return w(n)?n(t):n},S=function(t,n,e){var r=g(),u=r.i,o=r.s;u===o.length&&o.push({$:w(e)?e(n):N(void 0,n),set:function(n){o[u].$=t(o[u].$,n),function(t){l.has(t)||(t.e=1,l.add(t),b.then(s))}(r)}});var a=o[r.i++];return[a.$,a.set]},M=null,$=null,T=null,O=new WeakMap,L=new WeakMap,W=function(t,n,e,r){var u=function(u){O.has(t)||(O.set(t,0),b.then((function(){O.delete(t),t.apply(n,e)}))),r(u)};return L.set(r,u),u},_=function(t,n,e,r){return t?[r[0],L.get(r[1])||W(t,n,e,r[1])]:r},j=function(t,n){var e=function(t){var n={h:e,c:null,a:null,e:0,i:0,s:[]};return e;function e(){var e=c;c=n,n.e=n.i=0;try{return t.apply(n.c=this,n.a=arguments)}finally{c=e,h.length&&b.then(h.forEach.bind(h.splice(0),f)),d.length&&d.splice(0).forEach(f)}}}(n?function(){var n=M,r=$,u=T;M=e,$=this,T=arguments;try{return t.apply($,T)}finally{M=n,$=r,T=u}}:t);return e},R=null,B=function(t){var n=t.firstChild;if(n&&1!==n.nodeType&&!(n=n.nextElementSibling))throw"unobservable";return n},D=function t(n){var e=n.nodeType;if(e)return 1===e?n:B(n);var r=n.valueOf();return r!==n?t(r):B(r)},H=function(t,n){var e=j(t,n);return function(){var t=e.apply(this,arguments);if(y(e)){var n=D(t);R||(R=o(n.ownerDocument,"children",u)),R.has(n)||R.connect(n,{disconnected:function(){m(e)}})}return t}},z=function(t){return{get:function(n){return t.get(n)},set:function(n,e){return t.set(n,e),e}}},I=Array.isArray,P=[],q=P.indexOf,F=P.slice,U=/([^\s\\>"'=]+)\s*=\s*(['"]?)$/,G=/^(?:area|base|br|col|embed|hr|img|input|keygen|link|menuitem|meta|param|source|track|wbr)$/i,J=/<[a-z][^>]+$/i,K=/>[^<>]*$/,Q=/<([a-z]+[a-z0-9:._-]*)([^>]*?)(\/>)/gi,V=/\s+$/,X=function t(n,e){return 0<e--&&(J.test(n[e])||!K.test(n[e])&&t(n,e))},Y=function(t,n,e){return G.test(n)?t:"<".concat(n).concat(e.replace(V,""),"></").concat(n,">")},Z=function(t,n,e){for(var r=[],u=t.length,o=function(e){var u=t[e-1];r.push(U.test(u)&&X(t,e)?u.replace(U,(function(t,r,u){return"".concat(n).concat(e-1,"=").concat(u||'"').concat(r).concat(u?"":'"')})):"".concat(u,"\x3c!--").concat(n).concat(e-1,"--\x3e"))},a=1;a<u;a++)o(a);r.push(t[u-1]);var i=r.join("").trim();return e?i:i.replace(Q,Y)},tt=function(t,n){return 111===t.nodeType?1/n<0?n?function(t){var n=t.firstChild,e=t.lastChild,r=document.createRange();return r.setStartAfter(n),r.setEndAfter(e),r.deleteContents(),n}(t):t.lastChild:n?t.valueOf():t.firstChild:t},nt=function(t){var n="fragment",e="template",r="content"in o(e)?function(t){var n=o(e);return n.innerHTML=t,n.content}:function(t){var r=o(n),a=o(e),i=null;if(/^[^\S]*?<(col(?:group)?|t(?:head|body|foot|r|d|h))/i.test(t)){var c=RegExp.$1;a.innerHTML="<table>"+t+"</table>",i=a.querySelectorAll(c)}else a.innerHTML=t,i=a.childNodes;return u(r,i),r};return function(t,n){return("svg"===n?a:r)(t)};function u(t,n){for(var e=n.length;e--;)t.appendChild(n[0])}function o(e){return e===n?t.createDocumentFragment():t.createElementNS("http://www.w3.org/1999/xhtml",e)}function a(t){var e=o(n),r=o("div");return r.innerHTML='<svg xmlns="http://www.w3.org/2000/svg">'+t+"</svg>",u(e,r.firstChild.childNodes),e}}(document),et=function(t,n){return t.childNodes[n]},rt=function(t){for(var n=[],e=t.parentNode;e;)n.push(q.call(e.childNodes,t)),e=(t=e).parentNode;return n},ut=document,ot=ut.createTreeWalker,at=ut.importNode,it=1!=at.length,ct=it?function(t,n,e){return at.call(document,nt(t,n,e),!0)}:nt,lt=it?function(t){return ot.call(document,t,129,null,!1)}:function(t){return ot.call(document,t,129)},ft=function(t,n,e){return function(t,n,e,r,u){for(var o=e.length,a=n.length,i=o,c=0,l=0,f=null;c<a||l<i;)if(a===c)for(var s=i<o?l?r(e[l-1],-0).nextSibling:r(e[i-l],0):u;l<i;)t.insertBefore(r(e[l++],1),s);else if(i===l)for(;c<a;)f&&f.has(n[c])||t.removeChild(r(n[c],-1)),c++;else if(n[c]===e[l])c++,l++;else if(n[a-1]===e[i-1])a--,i--;else if(n[c]===e[i-1]&&e[l]===n[a-1]){var v=r(n[--a],-1).nextSibling;t.insertBefore(r(e[l++],1),r(n[c++],-1).nextSibling),t.insertBefore(r(e[--i],1),v),n[a]=e[i]}else{if(!f){f=new Map;for(var h=l;h<i;)f.set(e[h],h++)}if(f.has(n[c])){var d=f.get(n[c]);if(l<d&&d<i){for(var p=c,m=1;++p<a&&p<i&&f.get(n[p])===d+m;)m++;if(m>d-l)for(var g=r(n[c],0);l<d;)t.insertBefore(r(e[l++],1),g);else t.replaceChild(r(e[l++],1),r(n[c++],-1))}else c++}else t.removeChild(r(n[c++],-1))}return e}(t.parentNode,n,e,tt,t)},st=function(t,n){switch(n[0]){case"?":return function(t,n){return function(e){e?t.setAttribute(n,""):t.removeAttribute(n)}}(t,n.slice(1));case".":return function(t,n){return"dataset"===n?function(t){var n=t.dataset;return function(t){for(var e in t){var r=t[e];null==r?delete n[e]:n[e]=r}}}(t):function(e){t[n]=e}}(t,n.slice(1));case"o":if("n"===n[1])return function(t,n){var e,r=n.slice(2);return!(n in t)&&n.toLowerCase()in t&&(r=r.toLowerCase()),function(n){var u=I(n)?n:[n,!1];e!==u[0]&&(e&&t.removeEventListener(r,e,u[1]),(e=u[0])&&t.addEventListener(r,e,u[1]))}}(t,n)}switch(n){case"ref":return function(t){return function(n){"function"==typeof n?n(t):n.current=t}}(t);case"aria":return function(t){return function(n){for(var e in n){var r="role"===e?e:"aria-".concat(e),u=n[e];null==u?t.removeAttribute(r):t.setAttribute(r,u)}}}(t)}return function(t,n){var e,r=!0,u=document.createAttributeNS(null,n);return function(n){e!==n&&(null==(e=n)?r||(t.removeAttributeNode(u),r=!0):(u.value=n,r&&(t.setAttributeNodeNS(u),r=!1)))}}(t,n)};function vt(t){var n=t.type,e=t.path.reduceRight(et,this);return"node"===n?function(t){var n,e,r=[];return function u(o){switch(typeof o){case"string":case"number":case"boolean":n!==o&&(n=o,e?e.textContent=o:e=document.createTextNode(o),r=ft(t,r,[e]));break;case"object":case"undefined":if(null==o){n!=o&&(n=o,r=ft(t,r,[]));break}if(I(o)){n=o,0===o.length?r=ft(t,r,[]):"object"==typeof o[0]?r=ft(t,r,o):u(String(o));break}"ELEMENT_NODE"in o&&n!==o&&(n=o,r=ft(t,r,11===o.nodeType?F.call(o.childNodes):[o]))}}}(e):"attr"===n?st(e,t.name):function(t){var n;return function(e){n!=e&&(n=e,t.textContent=null==e?"":e)}}(e)}var ht="isµ",dt=z(new WeakMap),pt=/^(?:plaintext|script|style|textarea|title|xmp)$/i,mt=function(t,n){var e=dt.get(n)||dt.set(n,function(t,n){for(var e=Z(n,ht,"svg"===t),r=ct(e,t),u=lt(r),o=[],a=n.length-1,i=0,c="".concat(ht).concat(i);i<a;){var l=u.nextNode();if(!l)throw"bad template: ".concat(e);if(8===l.nodeType)l.textContent===c&&(o.push({type:"node",path:rt(l)}),c="".concat(ht).concat(++i));else{for(;l.hasAttribute(c);)o.push({type:"attr",path:rt(l),name:l.getAttribute(c)}),l.removeAttribute(c),c="".concat(ht).concat(++i);pt.test(l.tagName)&&l.textContent.trim()==="\x3c!--".concat(c,"--\x3e")&&(l.textContent="",o.push({type:"text",path:rt(l)}),c="".concat(ht).concat(++i))}}return{content:r,nodes:o}}(t,n)),r=e.content,u=e.nodes,o=at.call(document,r,!0);return{content:o,updates:u.map(vt,o)}},gt=function(t,n){var e=n.type,r=n.template,u=n.values,o=u.length;yt(t,u,o);var a=t.entry;a&&a.template===r&&a.type===e||(t.entry=a=function(t,n){var e=mt(t,n);return{type:t,template:n,content:e.content,updates:e.updates,wire:null}}(e,r));for(var i=a,c=i.content,l=i.updates,f=i.wire,s=0;s<o;s++)l[s](u[s]);return f||(a.wire=function(t){var n=t.childNodes,e=n.length;if(e<2)return e?n[0]:t;var r=F.call(n,0);return{ELEMENT_NODE:1,nodeType:111,firstChild:r[0],lastChild:r[e-1],valueOf:function(){if(n.length!==e)for(var u=0;u<e;)t.appendChild(r[u++]);return t}}}(c))},yt=function t(n,e,r){for(var u=n.stack,o=0;o<r;o++){var a=e[o];a instanceof wt?e[o]=gt(u[o]||(u[o]={stack:[],entry:null,wire:null}),a):I(a)?t(u[o]||(u[o]={stack:[],entry:null,wire:null}),a,a.length):u[o]=null}r<u.length&&u.splice(r)};function wt(t,n,e){this.type=t,this.template=n,this.values=e}var bt=Object.create,Et=Object.defineProperties,Ct=function(t){var n=z(new WeakMap);return Et((function(n){for(var e=arguments.length,r=new Array(e>1?e-1:0),u=1;u<e;u++)r[u-1]=arguments[u];return new wt(t,n,r)}),{for:{value:function(e,r){var u=n.get(e)||n.set(e,bt(null));return u[r]||(u[r]=function(n){return function(e){for(var r=arguments.length,u=new Array(r>1?r-1:0),o=1;o<r;o++)u[o-1]=arguments[o];return gt(n,{type:t,template:e,values:u})}}({stack:[],entry:null,wire:null}))}},node:{value:function(n){for(var e=arguments.length,r=new Array(e>1?e-1:0),u=1;u<e;u++)r[u-1]=arguments[u];return gt({stack:[],entry:null,wire:null},{type:t,template:n,values:r}).valueOf()}}})},At=z(new WeakMap),kt=Ct("html"),xt=Ct("svg"),Nt=Object.create,St=function(t){for(var n=arguments.length,e=new Array(n>1?n-1:0),r=1;r<n;r++)e[r-1]=arguments[r];return new wt("html",t,e)};St.for=Rt(kt);var Mt=function(t){for(var n=arguments.length,e=new Array(n>1?n-1:0),r=1;r<n;r++)e[r-1]=arguments[r];return new wt("svg",t,e)};Mt.for=Rt(xt);var $t=z(new WeakMap),Tt=function(){return{s:[],e:null}},Ot=function(t,n){var e=n.f,r=n.c,u=n.a,o=t.e;return o&&o.f===e||(t.e=o={f:e,h:null,$:null},o.h=function(t,n){return H((function(){var e=n.f.apply(this,arguments);return e instanceof wt?(Lt(t,e),n.$=_t(n,e)):n.$=e,n.$}))}(Tt(),o)),o.h.apply(r,u)},Lt=function(t,n){var e=n.values;Wt(t,e,e.length)},Wt=function t(n,e,r){for(var u=n.s,o=0;o<r;o++){var a=e[o];a instanceof jt?e[o]=Ot(u[o]||(u[o]=Tt()),a):a instanceof wt?Lt(u[o]||(u[o]=Tt()),a):I(a)?t(u[o]||(u[o]=Tt()),a,a.length):u[o]=null}r<u.length&&u.splice(r)},_t=function(t,e){var r=e.type,u=e.template,o=e.values;return("svg"===r?xt:kt).for(t,r).apply(void 0,[u].concat(n(o)))};function jt(t,n,e){this.f=t,this.c=n,this.a=e}function Rt(t){var n=z(new WeakMap);return function(e,r){var u=n.get(e)||n.set(e,Nt(null)),o=u[r]||(u[r]=Tt());return function(n){for(var u=arguments.length,a=new Array(u>1?u-1:0),i=1;i<u;i++)a[i-1]=arguments[i];return Wt(o,a),t.for(e,r).apply(void 0,[n].concat(a))}}}return t.Component=function(t){return function(){return new jt(t,this,arguments)}},t.createContext=function(t){return{_:new Set,provide:E,value:t}},t.html=St,t.render=function(t,n){return($t.get(t)||$t.set(t,{c:Tt(),h:H((function(n){var e="function"==typeof n?n():n;return function(t,n){var e="function"==typeof n?n():n,r=At.get(t)||At.set(t,{stack:[],entry:null,wire:null}),u=e instanceof wt?gt(r,e):e;return u!==r.wire&&(r.wire=u,t.textContent="",t.appendChild(u.valueOf())),t}(t,e instanceof jt?Ot(this.c,e):(Lt(this.c,e),e))}),t)})).h(n)},t.svg=Mt,t.useCallback=function(t,n){return C((function(){return t}),n)},t.useContext=function(t){var n=t._,e=t.value;return n.add(g()),e},t.useEffect=k,t.useLayoutEffect=x,t.useMemo=C,t.useReducer=function(t,n,e){return _(M,$,T,S(t,n,e))},t.useRef=function(t){var n=g(),e=n.i,r=n.s;return e===r.length&&r.push({current:t}),r[n.i++]},t.useState=function(t){return _(M,$,T,function(t){return S(N,t)}(t))},t}({});
self.uland=function(n){"use strict";function t(n){return function(n){if(Array.isArray(n))return e(n)}(n)||function(n){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(n))return Array.from(n)}(n)||function(n,t){if(!n)return;if("string"==typeof n)return e(n,t);var r=Object.prototype.toString.call(n).slice(8,-1);"Object"===r&&n.constructor&&(r=n.constructor.name);if("Map"===r||"Set"===r)return Array.from(n);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return e(n,t)}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}
/*! (c) Andrea Giammarchi - ISC */()}function e(n,t){(null==t||t>n.length)&&(t=n.length);for(var e=0,r=new Array(t);e<t;e++)r[e]=n[e];return r}var r={};r.CustomEvent="function"==typeof CustomEvent?CustomEvent:function(n){return t[n]=new t("").constructor[n],t;function t(n,t){t||(t={});var e=document.createEvent("CustomEvent");return e.initCustomEvent(n,!!t.bubbles,!!t.cancelable,t.detail),e}}("prototype");var u=r.CustomEvent,o=function(n,t,e,r){var u=new WeakMap,o=new WeakMap,i=new WeakMap,c=function(n){return u.has(n)},l=function(n){c(n)&&(f(n,n.removeEventListener,u.get(n)),u.delete(n))},f=function(n,t,e){t.call(n,"disconnected",e),t.call(n,"connected",e)},s=function(n,t,e,r){for(var u=n.length,o=0;o<u;o++)v(n[o],t,e,r)},v=function(n,r,u,o){c(n)&&!u.has(n)&&(o.delete(n),u.set(n,0),n.dispatchEvent(new(e||CustomEvent)(r))),s(n[t||"children"]||[],r,u,o)},h=new(r||MutationObserver)((function(n){for(var t=n.length,e=0;e<t;e++){var r=n[e],u=r.removedNodes,a=r.addedNodes;s(u,"disconnected",i,o),s(a,"connected",o,i)}}));return h.observe(n||document,{subtree:!0,childList:!0}),{has:c,connect:function(n,t){l(n),(t||(t={})).handleEvent||(t.handleEvent=a),f(n,n.addEventListener,t),u.set(n,t)},disconnect:l,kill:function(){h.disconnect()}}};function a(n){n.type in this&&this[n.type](n)}var i="function"==typeof Promise?Promise:function(n){var t,e=[],r=0;return n((function(n){t=n,r=1,e.splice(0).forEach(u)})),{then:u};function u(n){return r?setTimeout(n,0,t):e.push(n),this}},c=null,l=new Set,f=function(n){var t=n.$,e=n.r,r=n.h;w(e)&&(v.get(r).delete(n),e()),w(n.r=t())&&v.get(r).add(n)},s=function(){var n=l;l=new Set,n.forEach((function(n){var t=n.h,e=n.c,r=n.a;n.e&&t.apply(e,r)}))},v=new WeakMap,h=[],d=[];function p(n,t){return n!==this[t]}var m=function(n){var t=v.get(n);t&&b.then((function(){t.forEach((function(n){n.r(),n.r=null})),t.clear()}))},g=function(){return c},y=function(n){return v.has(n)},w=function(n){return"function"==typeof n},b=new i((function(n){return n()}));function E(n){var t=this._;this.value!==n&&(this._=new Set,this.value=n,t.forEach((function(n){var t=n.h,e=n.c,r=n.a;t.apply(e,r)})))}var C=function(n,t){var e=g(),r=e.i,u=e.s;return r!==u.length&&t&&!t.some(p,u[r]._)||(u[r]={$:n(),_:t}),u[e.i++].$},A=function(n){return function(t,e){var r=g(),u=r.i,o=r.s,a=r.h,i=u===o.length;r.i++,i&&(v.has(a)||v.set(a,new Set),o[u]={$:t,_:e,r:null,h:a}),(i||!e||e.some(p,o[u]._))&&n.push(o[u]),o[u].$=t,o[u]._=e}},k=A(h),x=A(d),N=function(n,t){return w(t)?t(n):t},S=function(n,t,e){var r=g(),u=r.i,o=r.s;u===o.length&&o.push({$:w(e)?e(t):N(void 0,t),set:function(t){o[u].$=n(o[u].$,t),function(n){l.has(n)||(n.e=1,l.add(n),b.then(s))}(r)}});var a=o[r.i++];return[a.$,a.set]},M=null,$=null,T=null,O=new WeakMap,L=new WeakMap,W=function(n,t,e,r){var u=function(u){O.has(n)||(O.set(n,0),b.then((function(){O.delete(n),n.apply(t,e)}))),r(u)};return L.set(r,u),u},_=function(n,t,e,r){return n?[r[0],L.get(r[1])||W(n,t,e,r[1])]:r},j=function(n,t){var e=function(n){var t={h:e,c:null,a:null,e:0,i:0,s:[]};return e;function e(){var e=c;c=t,t.e=t.i=0;try{return n.apply(t.c=this,t.a=arguments)}finally{c=e,h.length&&b.then(h.forEach.bind(h.splice(0),f)),d.length&&d.splice(0).forEach(f)}}}(t?function(){var t=M,r=$,u=T;M=e,$=this,T=arguments;try{return n.apply($,T)}finally{M=t,$=r,T=u}}:n);return e},R=null,B=function(n){var t=n.firstChild;if(t&&1!==t.nodeType&&!(t=t.nextElementSibling))throw"unobservable";return t},D=function n(t){var e=t.nodeType;if(e)return 1===e?t:B(t);var r=t.valueOf();return r!==t?n(r):B(r)},H=function(n,t){var e=j(n,t);return function(){var n=e.apply(this,arguments);if(y(e)){var t=D(n);R||(R=o(t.ownerDocument,"children",u)),R.has(t)||R.connect(t,{disconnected:function(){m(e)}})}return n}},z=function(n){return{get:function(t){return n.get(t)},set:function(t,e){return n.set(t,e),e}}},I=Array.isArray,P=[],V=P.indexOf,q=P.slice,F=/([^\s\\>"'=]+)\s*=\s*(['"]?)$/,U=/^(?:area|base|br|col|embed|hr|img|input|keygen|link|menuitem|meta|param|source|track|wbr)$/i,G=/<[a-z][^>]+$/i,J=/>[^<>]*$/,K=/<([a-z]+[a-z0-9:._-]*)([^>]*?)(\/>)/gi,Q=/\s+$/,X=function n(t,e){return 0<e--&&(G.test(t[e])||!J.test(t[e])&&n(t,e))},Y=function(n,t,e){return U.test(t)?n:"<".concat(t).concat(e.replace(Q,""),"></").concat(t,">")},Z=function(n,t,e){for(var r=[],u=n.length,o=function(e){var u=n[e-1];r.push(F.test(u)&&X(n,e)?u.replace(F,(function(n,r,u){return"".concat(t).concat(e-1,"=").concat(u||'"').concat(r).concat(u?"":'"')})):"".concat(u,"\x3c!--").concat(t).concat(e-1,"--\x3e"))},a=1;a<u;a++)o(a);r.push(n[u-1]);var i=r.join("").trim();return e?i:i.replace(K,Y)},nn=function(n,t){return 111===n.nodeType?1/t<0?t?function(n){var t=n.firstChild,e=n.lastChild,r=document.createRange();return r.setStartAfter(t),r.setEndAfter(e),r.deleteContents(),t}(n):n.lastChild:t?n.valueOf():n.firstChild:n},tn=function(n){var t="fragment",e="template",r="content"in o(e)?function(n){var t=o(e);return t.innerHTML=n,t.content}:function(n){var r=o(t),a=o(e),i=null;if(/^[^\S]*?<(col(?:group)?|t(?:head|body|foot|r|d|h))/i.test(n)){var c=RegExp.$1;a.innerHTML="<table>"+n+"</table>",i=a.querySelectorAll(c)}else a.innerHTML=n,i=a.childNodes;return u(r,i),r};return function(n,t){return("svg"===t?a:r)(n)};function u(n,t){for(var e=t.length;e--;)n.appendChild(t[0])}function o(e){return e===t?n.createDocumentFragment():n.createElementNS("http://www.w3.org/1999/xhtml",e)}function a(n){var e=o(t),r=o("div");return r.innerHTML='<svg xmlns="http://www.w3.org/2000/svg">'+n+"</svg>",u(e,r.firstChild.childNodes),e}}(document),en=function(n,t){return n.childNodes[t]},rn=function(n){for(var t=[],e=n.parentNode;e;)t.push(V.call(e.childNodes,n)),e=(n=e).parentNode;return t},un=document,on=un.createTreeWalker,an=un.importNode,cn=1!=an.length,ln=cn?function(n,t,e){return an.call(document,tn(n,t,e),!0)}:tn,fn=cn?function(n){return on.call(document,n,129,null,!1)}:function(n){return on.call(document,n,129)},sn=function(n,t,e){return function(n,t,e,r,u){for(var o=e.length,a=t.length,i=o,c=0,l=0,f=null;c<a||l<i;)if(a===c)for(var s=i<o?l?r(e[l-1],-0).nextSibling:r(e[i-l],0):u;l<i;)n.insertBefore(r(e[l++],1),s);else if(i===l)for(;c<a;)f&&f.has(t[c])||n.removeChild(r(t[c],-1)),c++;else if(t[c]===e[l])c++,l++;else if(t[a-1]===e[i-1])a--,i--;else if(t[c]===e[i-1]&&e[l]===t[a-1]){var v=r(t[--a],-1).nextSibling;n.insertBefore(r(e[l++],1),r(t[c++],-1).nextSibling),n.insertBefore(r(e[--i],1),v),t[a]=e[i]}else{if(!f){f=new Map;for(var h=l;h<i;)f.set(e[h],h++)}if(f.has(t[c])){var d=f.get(t[c]);if(l<d&&d<i){for(var p=c,m=1;++p<a&&p<i&&f.get(t[p])===d+m;)m++;if(m>d-l)for(var g=r(t[c],0);l<d;)n.insertBefore(r(e[l++],1),g);else n.replaceChild(r(e[l++],1),r(t[c++],-1))}else c++}else n.removeChild(r(t[c++],-1))}return e}(n.parentNode,t,e,nn,n)},vn=function(n){var t,e,r=[];return function u(o){switch(typeof o){case"string":case"number":case"boolean":t!==o&&(t=o,e?e.nodeValue=o:e=document.createTextNode(o),r=sn(n,r,[e]));break;case"function":u(o(node));break;case"object":case"undefined":if(null==o){t!=o&&(t=o,r=sn(n,r,[]));break}if(I(o)){t=o,0===o.length?r=sn(n,r,[]):"object"==typeof o[0]?r=sn(n,r,o):u(String(o));break}"ELEMENT_NODE"in o&&t!==o&&(t=o,r=sn(n,r,11===o.nodeType?q.call(o.childNodes):[o]))}}},hn=function(n,t){switch(t[0]){case"?":return function(n,t,e){return function(r){e!==!!r&&((e=!!r)?n.setAttribute(t,""):n.removeAttribute(t))}}(n,t.slice(1),!1);case".":return function(n,t){return"dataset"===t?function(n){var t=n.dataset;return function(n){for(var e in n){var r=n[e];null==r?delete t[e]:t[e]=r}}}(n):function(e){n[t]=e}}(n,t.slice(1));case"o":if("n"===t[1])return function(n,t){var e,r=t.slice(2);return!(t in n)&&t.toLowerCase()in n&&(r=r.toLowerCase()),function(t){var u=I(t)?t:[t,!1];e!==u[0]&&(e&&n.removeEventListener(r,e,u[1]),(e=u[0])&&n.addEventListener(r,e,u[1]))}}(n,t)}switch(t){case"ref":return function(n){return function(t){"function"==typeof t?t(n):t.current=n}}(n);case"aria":return function(n){return function(t){for(var e in t){var r="role"===e?e:"aria-".concat(e),u=t[e];null==u?n.removeAttribute(r):n.setAttribute(r,u)}}}(n)}return function(n,t){var e,r=!0,u=document.createAttributeNS(null,t);return function(t){e!==t&&(null==(e=t)?r||(n.removeAttributeNode(u),r=!0):(u.value=t,r&&(n.setAttributeNodeNS(u),r=!1)))}}(n,t)};function dn(n){var t=n.type,e=n.path.reduceRight(en,this);return"node"===t?vn(e):"attr"===t?hn(e,n.name):function(n){var t;return function(e){t!=e&&(t=e,n.textContent=null==e?"":e)}}(e)}var pn="isµ",mn=z(new WeakMap),gn=/^(?:plaintext|script|style|textarea|title|xmp)$/i,yn=function(n,t){var e=mn.get(t)||mn.set(t,function(n,t){for(var e=Z(t,pn,"svg"===n),r=ln(e,n),u=fn(r),o=[],a=t.length-1,i=0,c="".concat(pn).concat(i);i<a;){var l=u.nextNode();if(!l)throw"bad template: ".concat(e);if(8===l.nodeType)l.nodeValue===c&&(o.push({type:"node",path:rn(l)}),c="".concat(pn).concat(++i));else{for(;l.hasAttribute(c);)o.push({type:"attr",path:rn(l),name:l.getAttribute(c)}),l.removeAttribute(c),c="".concat(pn).concat(++i);gn.test(l.tagName)&&l.textContent.trim()==="\x3c!--".concat(c,"--\x3e")&&(l.textContent="",o.push({type:"text",path:rn(l)}),c="".concat(pn).concat(++i))}}return{content:r,nodes:o}}(n,t)),r=e.content,u=e.nodes,o=an.call(document,r,!0);return{content:o,updates:u.map(dn,o)}},wn=function(n,t){var e=t.type,r=t.template,u=t.values,o=u.length;bn(n,u,o);var a=n.entry;a&&a.template===r&&a.type===e||(n.entry=a=function(n,t){var e=yn(n,t);return{type:n,template:t,content:e.content,updates:e.updates,wire:null}}(e,r));for(var i=a,c=i.content,l=i.updates,f=i.wire,s=0;s<o;s++)l[s](u[s]);return f||(a.wire=function(n){var t=n.childNodes,e=t.length;if(e<2)return e?t[0]:n;var r=q.call(t,0);return{ELEMENT_NODE:1,nodeType:111,firstChild:r[0],lastChild:r[e-1],valueOf:function(){if(t.length!==e)for(var u=0;u<e;)n.appendChild(r[u++]);return n}}}(c))},bn=function n(t,e,r){for(var u=t.stack,o=0;o<r;o++){var a=e[o];a instanceof En?e[o]=wn(u[o]||(u[o]={stack:[],entry:null,wire:null}),a):I(a)?n(u[o]||(u[o]={stack:[],entry:null,wire:null}),a,a.length):u[o]=null}r<u.length&&u.splice(r)};function En(n,t,e){this.type=n,this.template=t,this.values=e}var Cn=Object.create,An=Object.defineProperties,kn=function(n){var t=z(new WeakMap);return An((function(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),u=1;u<e;u++)r[u-1]=arguments[u];return new En(n,t,r)}),{for:{value:function(e,r){var u=t.get(e)||t.set(e,Cn(null));return u[r]||(u[r]=function(t){return function(e){for(var r=arguments.length,u=new Array(r>1?r-1:0),o=1;o<r;o++)u[o-1]=arguments[o];return wn(t,{type:n,template:e,values:u})}}({stack:[],entry:null,wire:null}))}},node:{value:function(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),u=1;u<e;u++)r[u-1]=arguments[u];return wn({stack:[],entry:null,wire:null},{type:n,template:t,values:r}).valueOf()}}})},xn=z(new WeakMap),Nn=kn("html"),Sn=kn("svg"),Mn=Object.create,$n=function(n){for(var t=arguments.length,e=new Array(t>1?t-1:0),r=1;r<t;r++)e[r-1]=arguments[r];return new En("html",n,e)};$n.for=Dn(Nn);var Tn=function(n){for(var t=arguments.length,e=new Array(t>1?t-1:0),r=1;r<t;r++)e[r-1]=arguments[r];return new En("svg",n,e)};Tn.for=Dn(Sn);var On=z(new WeakMap),Ln=function(){return{s:[],e:null}},Wn=function(n,t){var e=t.f,r=t.c,u=t.a,o=n.e;return o&&o.f===e||(n.e=o={f:e,h:null,$:null},o.h=function(n,t){return H((function(){var e=t.f.apply(this,arguments);return e instanceof En?(_n(n,e),t.$=Rn(t,e)):t.$=e,t.$}))}(Ln(),o)),o.h.apply(r,u)},_n=function(n,t){var e=t.values;jn(n,e,e.length)},jn=function n(t,e,r){for(var u=t.s,o=0;o<r;o++){var a=e[o];a instanceof Bn?e[o]=Wn(u[o]||(u[o]=Ln()),a):a instanceof En?_n(u[o]||(u[o]=Ln()),a):I(a)?n(u[o]||(u[o]=Ln()),a,a.length):u[o]=null}r<u.length&&u.splice(r)},Rn=function(n,e){var r=e.type,u=e.template,o=e.values;return("svg"===r?Sn:Nn).for(n,r).apply(void 0,[u].concat(t(o)))};function Bn(n,t,e){this.f=n,this.c=t,this.a=e}function Dn(n){var t=z(new WeakMap);return function(e,r){var u=t.get(e)||t.set(e,Mn(null)),o=u[r]||(u[r]=Ln());return function(t){for(var u=arguments.length,a=new Array(u>1?u-1:0),i=1;i<u;i++)a[i-1]=arguments[i];return jn(o,a),n.for(e,r).apply(void 0,[t].concat(a))}}}return n.Component=function(n){return function(){return new Bn(n,this,arguments)}},n.createContext=function(n){return{_:new Set,provide:E,value:n}},n.html=$n,n.render=function(n,t){return(On.get(n)||On.set(n,{c:Ln(),h:H((function(t){var e="function"==typeof t?t():t;return function(n,t){var e="function"==typeof t?t():t,r=xn.get(n)||xn.set(n,{stack:[],entry:null,wire:null}),u=e instanceof En?wn(r,e):e;return u!==r.wire&&(r.wire=u,n.textContent="",n.appendChild(u.valueOf())),n}(n,e instanceof Bn?Wn(this.c,e):(_n(this.c,e),e))}),n)})).h(t)},n.svg=Tn,n.useCallback=function(n,t){return C((function(){return n}),t)},n.useContext=function(n){var t=n._,e=n.value;return t.add(g()),e},n.useEffect=k,n.useLayoutEffect=x,n.useMemo=C,n.useReducer=function(n,t,e){return _(M,$,T,S(n,t,e))},n.useRef=function(n){var t=g(),e=t.i,r=t.s;return e===r.length&&r.push({current:n}),r[t.i++]},n.useState=function(n){return _(M,$,T,function(n){return S(N,n)}(n))},n}({});
{
"name": "uland",
"version": "0.7.0",
"version": "0.8.0",
"main": "./cjs/index.js",

@@ -27,11 +27,11 @@ "scripts": {

"@babel/preset-env": "^7.12.16",
"@rollup/plugin-node-resolve": "^11.1.1",
"@rollup/plugin-node-resolve": "^11.2.0",
"@ungap/degap": "^0.2.3",
"ascjs": "^5.0.0",
"ascjs": "^5.0.1",
"drop-babel-typeof": "^1.0.3",
"rollup": "^2.38.5",
"rollup": "^2.39.0",
"rollup-plugin-babel": "^4.4.0",
"rollup-plugin-includepaths": "^0.2.4",
"rollup-plugin-terser": "^7.0.2",
"terser": "^5.6.0-beta"
"terser": "^5.6.0"
},

@@ -55,3 +55,3 @@ "module": "./esm/index.js",

"uhooks-dom": "^0.2.4",
"uhtml": "^2.4.0",
"uhtml": "^2.5.0",
"umap": "^1.0.2"

@@ -58,0 +58,0 @@ },

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc