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.10.2 to 0.10.3

4

async.js

@@ -1,4 +0,4 @@

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

@@ -1,4 +0,4 @@

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

@@ -625,94 +625,94 @@ self.uland = (function (exports) {

else if (bEnd === bStart) {
while (aStart < aEnd) {
// remove the node only if it's unknown or not live
if (!map || !map.has(a[aStart])) parentNode.removeChild(get(a[aStart], -1));
aStart++;
}
} // same node: fast path
else if (a[aStart] === b[bStart]) {
aStart++;
bStart++;
} // same tail: fast path
else if (a[aEnd - 1] === b[bEnd - 1]) {
aEnd--;
bEnd--;
} // The once here single last swap "fast path" has been removed in v1.1.0
// https://github.com/WebReflection/udomdiff/blob/single-final-swap/esm/index.js#L69-L85
// reverse swap: also fast path
else if (a[aStart] === b[bEnd - 1] && b[bStart] === a[aEnd - 1]) {
// this is a "shrink" operation that could happen in these cases:
// [1, 2, 3, 4, 5]
// [1, 4, 3, 2, 5]
// or asymmetric too
// [1, 2, 3, 4, 5]
// [1, 2, 3, 5, 6, 4]
var _node = get(a[--aEnd], -1).nextSibling;
parentNode.insertBefore(get(b[bStart++], 1), get(a[aStart++], -1).nextSibling);
parentNode.insertBefore(get(b[--bEnd], 1), _node); // mark the future index as identical (yeah, it's dirty, but cheap 👍)
// The main reason to do this, is that when a[aEnd] will be reached,
// the loop will likely be on the fast path, as identical to b[bEnd].
// In the best case scenario, the next loop will skip the tail,
// but in the worst one, this node will be considered as already
// processed, bailing out pretty quickly from the map index check
while (aStart < aEnd) {
// remove the node only if it's unknown or not live
if (!map || !map.has(a[aStart])) parentNode.removeChild(get(a[aStart], -1));
aStart++;
}
} // same node: fast path
else if (a[aStart] === b[bStart]) {
aStart++;
bStart++;
} // same tail: fast path
else if (a[aEnd - 1] === b[bEnd - 1]) {
aEnd--;
bEnd--;
} // The once here single last swap "fast path" has been removed in v1.1.0
// https://github.com/WebReflection/udomdiff/blob/single-final-swap/esm/index.js#L69-L85
// reverse swap: also fast path
else if (a[aStart] === b[bEnd - 1] && b[bStart] === a[aEnd - 1]) {
// this is a "shrink" operation that could happen in these cases:
// [1, 2, 3, 4, 5]
// [1, 4, 3, 2, 5]
// or asymmetric too
// [1, 2, 3, 4, 5]
// [1, 2, 3, 5, 6, 4]
var _node = get(a[--aEnd], -1).nextSibling;
parentNode.insertBefore(get(b[bStart++], 1), get(a[aStart++], -1).nextSibling);
parentNode.insertBefore(get(b[--bEnd], 1), _node); // mark the future index as identical (yeah, it's dirty, but cheap 👍)
// The main reason to do this, is that when a[aEnd] will be reached,
// the loop will likely be on the fast path, as identical to b[bEnd].
// In the best case scenario, the next loop will skip the tail,
// but in the worst one, this node will be considered as already
// processed, bailing out pretty quickly from the map index check
a[aEnd] = b[bEnd];
} // map based fallback, "slow" path
else {
// the map requires an O(bEnd - bStart) operation once
// to store all future nodes indexes for later purposes.
// In the worst case scenario, this is a full O(N) cost,
// and such scenario happens at least when all nodes are different,
// but also if both first and last items of the lists are different
if (!map) {
map = new Map();
var i = bStart;
a[aEnd] = b[bEnd];
} // map based fallback, "slow" path
else {
// the map requires an O(bEnd - bStart) operation once
// to store all future nodes indexes for later purposes.
// In the worst case scenario, this is a full O(N) cost,
// and such scenario happens at least when all nodes are different,
// but also if both first and last items of the lists are different
if (!map) {
map = new Map();
var i = bStart;
while (i < bEnd) {
map.set(b[i], i++);
}
} // if it's a future node, hence it needs some handling
while (i < bEnd) {
map.set(b[i], i++);
}
} // if it's a future node, hence it needs some handling
if (map.has(a[aStart])) {
// grab the index of such node, 'cause it might have been processed
var index = map.get(a[aStart]); // if it's not already processed, look on demand for the next LCS
if (map.has(a[aStart])) {
// grab the index of such node, 'cause it might have been processed
var index = map.get(a[aStart]); // if it's not already processed, look on demand for the next LCS
if (bStart < index && index < bEnd) {
var _i = aStart; // counts the amount of nodes that are the same in the future
if (bStart < index && index < bEnd) {
var _i = aStart; // counts the amount of nodes that are the same in the future
var sequence = 1;
var sequence = 1;
while (++_i < aEnd && _i < bEnd && map.get(a[_i]) === index + sequence) {
sequence++;
} // effort decision here: if the sequence is longer than replaces
// needed to reach such sequence, which would brings again this loop
// to the fast path, prepend the difference before a sequence,
// and move only the future list index forward, so that aStart
// and bStart will be aligned again, hence on the fast path.
// An example considering aStart and bStart are both 0:
// a: [1, 2, 3, 4]
// b: [7, 1, 2, 3, 6]
// this would place 7 before 1 and, from that time on, 1, 2, and 3
// will be processed at zero cost
while (++_i < aEnd && _i < bEnd && map.get(a[_i]) === index + sequence) {
sequence++;
} // effort decision here: if the sequence is longer than replaces
// needed to reach such sequence, which would brings again this loop
// to the fast path, prepend the difference before a sequence,
// and move only the future list index forward, so that aStart
// and bStart will be aligned again, hence on the fast path.
// An example considering aStart and bStart are both 0:
// a: [1, 2, 3, 4]
// b: [7, 1, 2, 3, 6]
// this would place 7 before 1 and, from that time on, 1, 2, and 3
// will be processed at zero cost
if (sequence > index - bStart) {
var _node2 = get(a[aStart], 0);
if (sequence > index - bStart) {
var _node2 = get(a[aStart], 0);
while (bStart < index) {
parentNode.insertBefore(get(b[bStart++], 1), _node2);
}
} // if the effort wasn't good enough, fallback to a replace,
// moving both source and target indexes forward, hoping that some
// similar node will be found later on, to go back to the fast path
else {
parentNode.replaceChild(get(b[bStart++], 1), get(a[aStart++], -1));
}
} // otherwise move the source forward, 'cause there's nothing to do
else aStart++;
} // this node has no meaning in the future list, so it's more than safe
// to remove it, and check the next live node out instead, meaning
// that only the live list index should be forwarded
else parentNode.removeChild(get(a[aStart++], -1));
}
while (bStart < index) {
parentNode.insertBefore(get(b[bStart++], 1), _node2);
}
} // if the effort wasn't good enough, fallback to a replace,
// moving both source and target indexes forward, hoping that some
// similar node will be found later on, to go back to the fast path
else {
parentNode.replaceChild(get(b[bStart++], 1), get(a[aStart++], -1));
}
} // otherwise move the source forward, 'cause there's nothing to do
else aStart++;
} // this node has no meaning in the future list, so it's more than safe
// to remove it, and check the next live node out instead, meaning
// that only the live list index should be forwarded
else parentNode.removeChild(get(a[aStart++], -1));
}
}

@@ -812,99 +812,8 @@

/*! (c) Andrea Giammarchi - ISC */
var createContent = function (document) {
var FRAGMENT = 'fragment';
var TEMPLATE = 'template';
var HAS_CONTENT = ('content' in create(TEMPLATE));
var createHTML = HAS_CONTENT ? function (html) {
var template = create(TEMPLATE);
template.innerHTML = html;
return template.content;
} : function (html) {
var content = create(FRAGMENT);
var template = create(TEMPLATE);
var childNodes = null;
if (/^[^\S]*?<(col(?:group)?|t(?:head|body|foot|r|d|h))/i.test(html)) {
var selector = RegExp.$1;
template.innerHTML = '<table>' + html + '</table>';
childNodes = template.querySelectorAll(selector);
} else {
template.innerHTML = html;
childNodes = template.childNodes;
}
append(content, childNodes);
return content;
};
return function createContent(markup, type) {
return (type === 'svg' ? createSVG : createHTML)(markup);
};
function append(root, childNodes) {
var length = childNodes.length;
while (length--) {
root.appendChild(childNodes[0]);
}
}
function create(element) {
return element === FRAGMENT ? document.createDocumentFragment() : document.createElementNS('http://www.w3.org/1999/xhtml', element);
} // it could use createElementNS when hasNode is there
// but this fallback is equally fast and easier to maintain
// it is also battle tested already in all IE
function createSVG(svg) {
var content = create(FRAGMENT);
var template = create('div');
template.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg">' + svg + '</svg>';
append(content, template.firstChild.childNodes);
return content;
}
}(document);
var reducePath = function reducePath(_ref, i) {
var childNodes = _ref.childNodes;
return childNodes[i];
}; // from a fragment container, create an array of indexes
// related to its child nodes, so that it's possible
// to retrieve later on exact node via reducePath
}; // this helper avoid code bloat around handleAnything() callback
var createPath = function createPath(node) {
var path = [];
var _node = node,
parentNode = _node.parentNode;
while (parentNode) {
path.push(indexOf.call(parentNode.childNodes, node));
node = parentNode;
parentNode = node.parentNode;
}
return path;
};
var _document = document,
createTreeWalker = _document.createTreeWalker,
importNode = _document.importNode;
var isImportNodeLengthWrong = importNode.length != 1; // IE11 and old Edge discard empty nodes when cloning, potentially
// resulting in broken paths to find updates. The workaround here
// is to import once, upfront, the fragment that will be cloned
// later on, so that paths are retrieved from one already parsed,
// hence without missing child nodes once re-cloned.
var createFragment = isImportNodeLengthWrong ? function (text, type, normalize) {
return importNode.call(document, createContent(text, type, normalize), true);
} : createContent; // IE11 and old Edge have a different createTreeWalker signature that
// has been deprecated in other browsers. This export is needed only
// to guarantee the TreeWalker doesn't show warnings and, ultimately, works
var createWalker = isImportNodeLengthWrong ? function (fragment) {
return createTreeWalker.call(document, fragment, 1 | 128, null, false);
} : function (fragment) {
return createTreeWalker.call(document, fragment, 1 | 128);
};
var diff = function diff(comment, oldNodes, newNodes) {

@@ -971,3 +880,3 @@ return udomdiff(comment.parentNode, // TODO: there is a possible edge case where a node has been

else if (typeof(newValue[0]) === 'object') nodes = diff(comment, nodes, newValue); // in all other cases the content is stringified as is
else anyContent(String(newValue));
else anyContent(String(newValue));
break;

@@ -1050,2 +959,91 @@ } // if the new value is a DOM node, or a wire, and it's

/*! (c) Andrea Giammarchi - ISC */
var createContent = function (document) {
var FRAGMENT = 'fragment';
var TEMPLATE = 'template';
var HAS_CONTENT = ('content' in create(TEMPLATE));
var createHTML = HAS_CONTENT ? function (html) {
var template = create(TEMPLATE);
template.innerHTML = html;
return template.content;
} : function (html) {
var content = create(FRAGMENT);
var template = create(TEMPLATE);
var childNodes = null;
if (/^[^\S]*?<(col(?:group)?|t(?:head|body|foot|r|d|h))/i.test(html)) {
var selector = RegExp.$1;
template.innerHTML = '<table>' + html + '</table>';
childNodes = template.querySelectorAll(selector);
} else {
template.innerHTML = html;
childNodes = template.childNodes;
}
append(content, childNodes);
return content;
};
return function createContent(markup, type) {
return (type === 'svg' ? createSVG : createHTML)(markup);
};
function append(root, childNodes) {
var length = childNodes.length;
while (length--) {
root.appendChild(childNodes[0]);
}
}
function create(element) {
return element === FRAGMENT ? document.createDocumentFragment() : document.createElementNS('http://www.w3.org/1999/xhtml', element);
} // it could use createElementNS when hasNode is there
// but this fallback is equally fast and easier to maintain
// it is also battle tested already in all IE
function createSVG(svg) {
var content = create(FRAGMENT);
var template = create('div');
template.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg">' + svg + '</svg>';
append(content, template.firstChild.childNodes);
return content;
}
}(document);
var isImportNodeLengthWrong = document.importNode.length != 1; // IE11 and old Edge discard empty nodes when cloning, potentially
// resulting in broken paths to find updates. The workaround here
// is to import once, upfront, the fragment that will be cloned
// later on, so that paths are retrieved from one already parsed,
// hence without missing child nodes once re-cloned.
var createFragment = isImportNodeLengthWrong ? function (text, type, normalize) {
return document.importNode(createContent(text, type, normalize), true);
} : createContent; // IE11 and old Edge have a different createTreeWalker signature that
// has been deprecated in other browsers. This export is needed only
// to guarantee the TreeWalker doesn't show warnings and, ultimately, works
var createWalker = isImportNodeLengthWrong ? function (fragment) {
return document.createTreeWalker(fragment, 1 | 128, null, false);
} : function (fragment) {
return document.createTreeWalker(fragment, 1 | 128);
};
// related to its child nodes, so that it's possible
// to retrieve later on exact node via reducePath
var createPath = function createPath(node) {
var path = [];
var _node = node,
parentNode = _node.parentNode;
while (parentNode) {
path.push(indexOf.call(parentNode.childNodes, node));
node = parentNode;
parentNode = node.parentNode;
}
return path;
}; // the prefix is used to identify either comments, attributes, or nodes
// that contain the related unique id. In the attribute cases

@@ -1058,2 +1056,3 @@ // isµX="attribute-name" will be used to map current X update to that

var prefix = 'isµ'; // Template Literals are unique per scope and static, meaning a template

@@ -1182,3 +1181,3 @@ // should be parsed once, and once only, as it will always represent the same

var fragment = importNode.call(document, content, true); // and relate an update handler per each node that needs one
var fragment = document.importNode(content, true); // and relate an update handler per each node that needs one

@@ -1239,7 +1238,7 @@ var updates = nodes.map(handlers, fragment); // return the fragment and all updates to use within its nodes

else if (isArray(hole)) unrollValues(stack[i] || (stack[i] = createCache$1()), hole, hole.length); // if the value is nothing special, the stack doesn't need to retain data
// this is useful also to cleanup previously retained data, if the value
// was a Hole, or an Array, but not anymore, i.e.:
// const update = content => html`<div>${content}</div>`;
// update(listOfItems); update(null); update(html`hole`)
else stack[i] = null;
// this is useful also to cleanup previously retained data, if the value
// was a Hole, or an Array, but not anymore, i.e.:
// const update = content => html`<div>${content}</div>`;
// update(listOfItems); update(null); update(html`hole`)
else stack[i] = null;
}

@@ -1382,5 +1381,3 @@

function (what) {
var value =
/*await*/
typeof what === 'function' ? what() : what;
var value = typeof what === 'function' ? what() : what;
return render$1(where, value instanceof Hook ?

@@ -1524,2 +1521,2 @@ /*await*/

}({}));
})({});
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&&null!=t[Symbol.iterator]||null!=t["@@iterator"])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;function o(t){this.observe(t,{subtree:!0,childList:!0})}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()}))},y=function(){return c},g=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=y(),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=y(),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=y(),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,L=new WeakMap,O=new WeakMap,W=function(t,n,e,r){var u=function(u){L.has(t)||(L.set(t,0),b.then((function(){L.delete(t),t.apply(n,e)}))),r(u)};return O.set(r,u),u},_=function(t,n,e,r){return t?[r[0],O.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=function(t,n,e,r){var u=new WeakMap,i=new WeakMap,c=new WeakMap,l=function(t){return u.has(t)},f=function(t){l(t)&&(s(t,t.removeEventListener,u.get(t)),u.delete(t))},s=function(t,n,e){n.call(t,"disconnected",e),n.call(t,"connected",e)},v=function(t,n,e,r){for(var u=t.length,o=0;o<u;o++)h(t[o],n,e,r)},h=function(t,r,u,o){l(t)&&!u.has(t)&&(o.delete(t),u.set(t,0),t.dispatchEvent(new(e||CustomEvent)(r))),v(t[n||"children"]||[],r,u,o)},d=new(r||MutationObserver)((function(t){for(var n=t.length,e=0;e<n;e++){var r=t[e],u=r.removedNodes,o=r.addedNodes;v(u,"disconnected",c,i),v(o,"connected",i,c)}}));d.add=o,d.add(t||document);var p=Element.prototype.attachShadow;return p&&(Element.prototype.attachShadow=function(t){var n=p.call(this,t);return d.add(n),n}),{has:l,connect:function(t,n){f(t),(n||(n={})).handleEvent||(n.handleEvent=a),s(t,t.addEventListener,n),u.set(t,n)},disconnect:f,kill:function(){d.disconnect()}}}(document,"children",u),B=function(t){var n=t.firstChild;if(n&&1!==n.nodeType&&!(n=n.nextElementSibling))throw"unobservable";return n},H=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)},z=function(t,n){var e=j(t,n);return function(){var t=e.apply(this,arguments);if(g(e)){var n=H(t);R.has(n)||R.connect(n,{disconnected:function(){m(e)}})}return t}},D=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,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]))}},et=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),rt=function(t,n){return t.childNodes[n]},ut=function(t){for(var n=[],e=t.parentNode;e;)n.push(q.call(e.childNodes,t)),e=(t=e).parentNode;return n},ot=document,at=ot.createTreeWalker,it=ot.importNode,ct=1!=it.length,lt=ct?function(t,n,e){return it.call(document,et(t,n,e),!0)}:et,ft=ct?function(t){return at.call(document,t,129,null,!1)}:function(t){return at.call(document,t,129)},st=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 y=r(n[c],0);l<d;)t.insertBefore(r(e[l++],1),y);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)},vt=function(t,n){switch(n[0]){case"?":return function(t,n,e){return function(r){e!==!!r&&((e=!!r)?t.setAttribute(n,""):t.removeAttribute(n))}}(t,n.slice(1),!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"@":return nt(t,"on"+n.slice(1));case"o":if("n"===n[1])return nt(t,n)}switch(n){case"ref":return function(t){var n;return function(e){n!==e&&(n=e,"function"==typeof e?e(t):e.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 ht(t){var n=t.type,e=t.path.reduceRight(rt,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=document.createTextNode("")),e.data=o,r=st(t,r,[e]));break;case"object":case"undefined":if(null==o){n!=o&&(n=o,r=st(t,r,[]));break}if(I(o)){n=o,0===o.length?r=st(t,r,[]):"object"==typeof o[0]?r=st(t,r,o):u(String(o));break}n!==o&&"ELEMENT_NODE"in o&&(n=o,r=st(t,r,11===o.nodeType?F.call(o.childNodes):[o]));break;case"function":u(o(t))}}}(e):"attr"===n?vt(e,t.name):function(t){var n;return function(e){n!=e&&(n=e,t.textContent=null==e?"":e)}}(e)}var dt="isµ",pt=D(new WeakMap),mt=/^(?:plaintext|script|style|textarea|title|xmp)$/i,yt=function(t,n){var e=pt.get(n)||pt.set(n,function(t,n){for(var e=Z(n,dt,"svg"===t),r=lt(e,t),u=ft(r),o=[],a=n.length-1,i=0,c="".concat(dt).concat(i);i<a;){var l=u.nextNode();if(!l)throw"bad template: ".concat(e);if(8===l.nodeType)l.data===c&&(o.push({type:"node",path:ut(l)}),c="".concat(dt).concat(++i));else{for(;l.hasAttribute(c);)o.push({type:"attr",path:ut(l),name:l.getAttribute(c)}),l.removeAttribute(c),c="".concat(dt).concat(++i);mt.test(l.tagName)&&l.textContent.trim()==="\x3c!--".concat(c,"--\x3e")&&(l.textContent="",o.push({type:"text",path:ut(l)}),c="".concat(dt).concat(++i))}}return{content:r,nodes:o}}(t,n)),r=e.content,u=e.nodes,o=it.call(document,r,!0);return{content:o,updates:u.map(ht,o)}},gt=function(t,n){var e=n.type,r=n.template,u=n.values,o=u.length;wt(t,u,o);var a=t.entry;a&&a.template===r&&a.type===e||(t.entry=a=function(t,n){var e=yt(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))},wt=function t(n,e,r){for(var u=n.stack,o=0;o<r;o++){var a=e[o];a instanceof bt?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 bt(t,n,e){this.type=t,this.template=n,this.values=e}var Et=Object.create,Ct=Object.defineProperties,At=function(t){var n=D(new WeakMap);return Ct((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 bt(t,n,r)}),{for:{value:function(e,r){var u=n.get(e)||n.set(e,Et(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()}}})},kt=D(new WeakMap),xt=At("html"),Nt=At("svg"),St=Object.create,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 bt("html",t,e)};Mt.for=Bt(xt);var $t=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 bt("svg",t,e)};$t.for=Bt(Nt);var Tt=D(new WeakMap),Lt=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 z((function(){var e=n.f.apply(this,arguments);return e instanceof bt?(Wt(t,e),n.$=jt(n,e)):n.$=e,n.$}))}(Lt(),o)),o.h.apply(r,u)},Wt=function(t,n){var e=n.values;_t(t,e)},_t=function t(n,e){for(var r=n.s,u=e.length,o=0;o<u;o++){var a=e[o];a instanceof Rt?e[o]=Ot(r[o]||(r[o]=Lt()),a):a instanceof bt?Wt(r[o]||(r[o]=Lt()),a):I(a)?t(r[o]||(r[o]=Lt()),a):r[o]=null}u<r.length&&r.splice(u)},jt=function(t,e){var r=e.type,u=e.template,o=e.values;return("svg"===r?Nt:xt).for(t,r).apply(void 0,[u].concat(n(o)))};function Rt(t,n,e){this.f=t,this.c=n,this.a=e}function Bt(t){var n=D(new WeakMap);return function(e,r){var u=n.get(e)||n.set(e,St(null)),o=u[r]||(u[r]=Lt());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 _t(o,a),t.for(e,r).apply(void 0,[n].concat(a))}}}return t.Component=function(t){return function(){return new Rt(t,this,arguments)}},t.createContext=function(t){return{_:new Set,provide:E,value:t}},t.html=Mt,t.render=function(t,n){return(Tt.get(t)||Tt.set(t,{c:Lt(),h:z((function(n){var e="function"==typeof n?n():n;return function(t,n){var e="function"==typeof n?n():n,r=kt.get(t)||kt.set(t,{stack:[],entry:null,wire:null}),u=e instanceof bt?gt(r,e):e;return u!==r.wire&&(r.wire=u,t.textContent="",t.appendChild(u.valueOf())),t}(t,e instanceof Rt?Ot(this.c,e):(Wt(this.c,e),e))}),t)})).h(n)},t.svg=$t,t.useCallback=function(t,n){return C((function(){return t}),n)},t.useContext=function(t){var n=t._,e=t.value;return n.add(y()),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=y(),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}({});
/*! (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;function o(t){this.observe(t,{subtree:!0,childList:!0})}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()}))},y=function(){return c},g=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=y(),r=e.i,u=e.s;return r!==u.length&&n&&!n.some(p,u[r]._)||(u[r]={$:t(),_:n}),u[e.i++].$},k=function(t){return function(n,e){var r=y(),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}},A=k(h),N=k(d),x=function(t,n){return w(n)?n(t):n},S=function(t,n,e){var r=y(),u=r.i,o=r.s;u===o.length&&o.push({$:w(e)?e(n):x(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,L=new WeakMap,O=new WeakMap,W=function(t,n,e,r){var u=function(u){L.has(t)||(L.set(t,0),b.then((function(){L.delete(t),t.apply(n,e)}))),r(u)};return O.set(r,u),u},_=function(t,n,e,r){return t?[r[0],O.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=function(t,n,e,r){var u=new WeakMap,i=new WeakMap,c=new WeakMap,l=function(t){return u.has(t)},f=function(t){l(t)&&(s(t,t.removeEventListener,u.get(t)),u.delete(t))},s=function(t,n,e){n.call(t,"disconnected",e),n.call(t,"connected",e)},v=function(t,n,e,r){for(var u=t.length,o=0;o<u;o++)h(t[o],n,e,r)},h=function(t,r,u,o){l(t)&&!u.has(t)&&(o.delete(t),u.set(t,0),t.dispatchEvent(new(e||CustomEvent)(r))),v(t[n||"children"]||[],r,u,o)},d=new(r||MutationObserver)((function(t){for(var n=t.length,e=0;e<n;e++){var r=t[e],u=r.removedNodes,o=r.addedNodes;v(u,"disconnected",c,i),v(o,"connected",i,c)}}));d.add=o,d.add(t||document);var p=Element.prototype.attachShadow;return p&&(Element.prototype.attachShadow=function(t){var n=p.call(this,t);return d.add(n),n}),{has:l,connect:function(t,n){f(t),(n||(n={})).handleEvent||(n.handleEvent=a),s(t,t.addEventListener,n),u.set(t,n)},disconnect:f,kill:function(){d.disconnect()}}}(document,"children",u),B=function(t){var n=t.firstChild;if(n&&1!==n.nodeType&&!(n=n.nextElementSibling))throw"unobservable";return n},H=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)},z=function(t,n){var e=j(t,n);return function(){var t=e.apply(this,arguments);if(g(e)){var n=H(t);R.has(n)||R.connect(n,{disconnected:function(){m(e)}})}return t}},D=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,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]))}},et=function(t,n){return t.childNodes[n]},rt=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 y=r(n[c],0);l<d;)t.insertBefore(r(e[l++],1),y);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)},ut=function(t,n){switch(n[0]){case"?":return function(t,n,e){return function(r){e!==!!r&&((e=!!r)?t.setAttribute(n,""):t.removeAttribute(n))}}(t,n.slice(1),!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"@":return nt(t,"on"+n.slice(1));case"o":if("n"===n[1])return nt(t,n)}switch(n){case"ref":return function(t){var n;return function(e){n!==e&&(n=e,"function"==typeof e?e(t):e.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 ot(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=document.createTextNode("")),e.data=o,r=rt(t,r,[e]));break;case"object":case"undefined":if(null==o){n!=o&&(n=o,r=rt(t,r,[]));break}if(I(o)){n=o,0===o.length?r=rt(t,r,[]):"object"==typeof o[0]?r=rt(t,r,o):u(String(o));break}n!==o&&"ELEMENT_NODE"in o&&(n=o,r=rt(t,r,11===o.nodeType?F.call(o.childNodes):[o]));break;case"function":u(o(t))}}}(e):"attr"===n?ut(e,t.name):function(t){var n;return function(e){n!=e&&(n=e,t.textContent=null==e?"":e)}}(e)}
/*! (c) Andrea Giammarchi - ISC */var at=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),it=1!=document.importNode.length,ct=it?function(t,n,e){return document.importNode(at(t,n,e),!0)}:at,lt=it?function(t){return document.createTreeWalker(t,129,null,!1)}:function(t){return document.createTreeWalker(t,129)},ft=function(t){for(var n=[],e=t.parentNode;e;)n.push(q.call(e.childNodes,t)),e=(t=e).parentNode;return n},st="isµ",vt=D(new WeakMap),ht=/^(?:plaintext|script|style|textarea|title|xmp)$/i,dt=function(t,n){var e=vt.get(n)||vt.set(n,function(t,n){for(var e=Z(n,st,"svg"===t),r=ct(e,t),u=lt(r),o=[],a=n.length-1,i=0,c="".concat(st).concat(i);i<a;){var l=u.nextNode();if(!l)throw"bad template: ".concat(e);if(8===l.nodeType)l.data===c&&(o.push({type:"node",path:ft(l)}),c="".concat(st).concat(++i));else{for(;l.hasAttribute(c);)o.push({type:"attr",path:ft(l),name:l.getAttribute(c)}),l.removeAttribute(c),c="".concat(st).concat(++i);ht.test(l.tagName)&&l.textContent.trim()==="\x3c!--".concat(c,"--\x3e")&&(l.textContent="",o.push({type:"text",path:ft(l)}),c="".concat(st).concat(++i))}}return{content:r,nodes:o}}(t,n)),r=e.content,u=e.nodes,o=document.importNode(r,!0);return{content:o,updates:u.map(ot,o)}},pt=function(t,n){var e=n.type,r=n.template,u=n.values,o=u.length;mt(t,u,o);var a=t.entry;a&&a.template===r&&a.type===e||(t.entry=a=function(t,n){var e=dt(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))},mt=function t(n,e,r){for(var u=n.stack,o=0;o<r;o++){var a=e[o];a instanceof yt?e[o]=pt(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 yt(t,n,e){this.type=t,this.template=n,this.values=e}var gt=Object.create,wt=Object.defineProperties,bt=function(t){var n=D(new WeakMap);return wt((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 yt(t,n,r)}),{for:{value:function(e,r){var u=n.get(e)||n.set(e,gt(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 pt(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 pt({stack:[],entry:null,wire:null},{type:t,template:n,values:r}).valueOf()}}})},Et=D(new WeakMap),Ct=bt("html"),kt=bt("svg"),At=Object.create,Nt=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 yt("html",t,e)};Nt.for=_t(Ct);var xt=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 yt("svg",t,e)};xt.for=_t(kt);var St=D(new WeakMap),Mt=function(){return{s:[],e:null}},$t=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 z((function(){var e=n.f.apply(this,arguments);return e instanceof yt?(Tt(t,e),n.$=Ot(n,e)):n.$=e,n.$}))}(Mt(),o)),o.h.apply(r,u)},Tt=function(t,n){var e=n.values;Lt(t,e)},Lt=function t(n,e){for(var r=n.s,u=e.length,o=0;o<u;o++){var a=e[o];a instanceof Wt?e[o]=$t(r[o]||(r[o]=Mt()),a):a instanceof yt?Tt(r[o]||(r[o]=Mt()),a):I(a)?t(r[o]||(r[o]=Mt()),a):r[o]=null}u<r.length&&r.splice(u)},Ot=function(t,e){var r=e.type,u=e.template,o=e.values;return("svg"===r?kt:Ct).for(t,r).apply(void 0,[u].concat(n(o)))};function Wt(t,n,e){this.f=t,this.c=n,this.a=e}function _t(t){var n=D(new WeakMap);return function(e,r){var u=n.get(e)||n.set(e,At(null)),o=u[r]||(u[r]=Mt());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 Lt(o,a),t.for(e,r).apply(void 0,[n].concat(a))}}}return t.Component=function(t){return function(){return new Wt(t,this,arguments)}},t.createContext=function(t){return{_:new Set,provide:E,value:t}},t.html=Nt,t.render=function(t,n){return(St.get(t)||St.set(t,{c:Mt(),h:z((function(n){var e="function"==typeof n?n():n;return function(t,n){var e="function"==typeof n?n():n,r=Et.get(t)||Et.set(t,{stack:[],entry:null,wire:null}),u=e instanceof yt?pt(r,e):e;return u!==r.wire&&(r.wire=u,t.textContent="",t.appendChild(u.valueOf())),t}(t,e instanceof Wt?$t(this.c,e):(Tt(this.c,e),e))}),t)})).h(n)},t.svg=xt,t.useCallback=function(t,n){return C((function(){return t}),n)},t.useContext=function(t){var n=t._,e=t.value;return n.add(y()),e},t.useEffect=A,t.useLayoutEffect=N,t.useMemo=C,t.useReducer=function(t,n,e){return _(M,$,T,S(t,n,e))},t.useRef=function(t){var n=y(),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(x,t)}(t))},t}({});
{
"name": "uland",
"version": "0.10.2",
"version": "0.10.3",
"main": "./cjs/index.js",

@@ -26,13 +26,13 @@ "types": "index.d.ts",

"devDependencies": {
"@babel/core": "^7.14.6",
"@babel/preset-env": "^7.14.5",
"@rollup/plugin-node-resolve": "^13.0.0",
"@ungap/degap": "^0.2.6",
"@babel/core": "^7.15.5",
"@babel/preset-env": "^7.15.6",
"@rollup/plugin-node-resolve": "^13.0.5",
"@ungap/degap": "^0.2.8",
"ascjs": "^5.0.1",
"drop-babel-typeof": "^1.0.3",
"rollup": "^2.51.2",
"rollup": "^2.57.0",
"rollup-plugin-babel": "^4.4.0",
"rollup-plugin-includepaths": "^0.2.4",
"rollup-plugin-terser": "^7.0.2",
"terser": "^5.7.0"
"terser": "^5.9.0"
},

@@ -58,6 +58,6 @@ "module": "./esm/index.js",

"dependencies": {
"jsx2tag": "^0.2.1",
"jsx2tag": "^0.3.0",
"uarray": "^1.0.0",
"uhooks-dom": "^0.3.0",
"uhtml": "^2.7.5",
"uhtml": "^2.7.6",
"umap": "^1.0.2"

@@ -64,0 +64,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