New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

@ficusjs/renderers

Package Overview
Dependencies
Maintainers
4
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ficusjs/renderers - npm Package Compare versions

Comparing version
5.3.1
to
5.4.0
+1
dist/css.mjs.map
{"version":3,"file":"css.mjs","sources":["../src/css.mjs"],"sourcesContent":["function createStyle (css) {\n const style = document.createElement('style')\n style.appendChild(document.createTextNode(css))\n return style\n}\n\nexport function css (literals, ...vars) {\n const raw = literals.raw\n let result = ''\n let i = 1\n const len = arguments.length\n let str\n let variable\n\n while (i < len) {\n str = raw[i - 1]\n variable = vars[i - 1]\n result += str + variable\n i++\n }\n result += raw[raw.length - 1]\n\n return createStyle(result)\n}\n"],"names":["createStyle","css","style","document","createElement","appendChild","createTextNode","literals","vars","raw","result","i","len","arguments","length","str","variable"],"mappings":"AAAA,SAASA,YAAaC,GACpB,MAAMC,EAAQC,SAASC,cAAc,SAErC,OADAF,EAAMG,YAAYF,SAASG,eAAeL,IACnCC,CACT,CAEO,SAASD,IAAKM,KAAaC,GAChC,MAAMC,EAAMF,EAASE,IACrB,IAAIC,EAAS,GACTC,EAAI,EACR,MAAMC,EAAMC,UAAUC,OACtB,IAAIC,EACAC,EAEJ,KAAOL,EAAIC,GACTG,EAAMN,EAAIE,EAAI,GACdK,EAAWR,EAAKG,EAAI,GACpBD,GAAUK,EAAMC,EAChBL,IAIF,OAFAD,GAAUD,EAAIA,EAAIK,OAAS,GAEpBd,YAAYU,EACrB"}
{"version":3,"file":"htm-preact.mjs","sources":["../node_modules/htm/preact/standalone.mjs"],"sourcesContent":["var e,n,_,t,o,r,u,l={},i=[],c=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function s(e,n){for(var _ in n)e[_]=n[_];return e}function f(e){var n=e.parentNode;n&&n.removeChild(e)}function a(n,_,t){var o,r,u,l={};for(u in _)\"key\"==u?o=_[u]:\"ref\"==u?r=_[u]:l[u]=_[u];if(arguments.length>2&&(l.children=arguments.length>3?e.call(arguments,2):t),\"function\"==typeof n&&null!=n.defaultProps)for(u in n.defaultProps)void 0===l[u]&&(l[u]=n.defaultProps[u]);return p(n,l,o,r,null)}function p(e,t,o,r,u){var l={type:e,props:t,key:o,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==u?++_:u};return null!=n.vnode&&n.vnode(l),l}function h(e){return e.children}function d(e,n){this.props=e,this.context=n}function v(e,n){if(null==n)return e.__?v(e.__,e.__.__k.indexOf(e)+1):null;for(var _;n<e.__k.length;n++)if(null!=(_=e.__k[n])&&null!=_.__e)return _.__e;return\"function\"==typeof e.type?v(e):null}function y(e){var n,_;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,n=0;n<e.__k.length;n++)if(null!=(_=e.__k[n])&&null!=_.__e){e.__e=e.__c.base=_.__e;break}return y(e)}}function m(e){(!e.__d&&(e.__d=!0)&&t.push(e)&&!g.__r++||r!==n.debounceRendering)&&((r=n.debounceRendering)||o)(g)}function g(){for(var e;g.__r=t.length;)e=t.sort(function(e,n){return e.__v.__b-n.__v.__b}),t=[],e.some(function(e){var n,_,t,o,r,u;e.__d&&(r=(o=(n=e).__v).__e,(u=n.__P)&&(_=[],(t=s({},o)).__v=o.__v+1,P(u,o,t,n.__n,void 0!==u.ownerSVGElement,null!=o.__h?[r]:null,_,null==r?v(o):r,o.__h),D(_,o),o.__e!=r&&y(o)))})}function k(e,n,_,t,o,r,u,c,s,f){var a,d,y,m,g,k,x,H=t&&t.__k||i,E=H.length;for(_.__k=[],a=0;a<n.length;a++)if(null!=(m=_.__k[a]=null==(m=n[a])||\"boolean\"==typeof m?null:\"string\"==typeof m||\"number\"==typeof m||\"bigint\"==typeof m?p(null,m,null,null,m):Array.isArray(m)?p(h,{children:m},null,null,null):m.__b>0?p(m.type,m.props,m.key,null,m.__v):m)){if(m.__=_,m.__b=_.__b+1,null===(y=H[a])||y&&m.key==y.key&&m.type===y.type)H[a]=void 0;else for(d=0;d<E;d++){if((y=H[d])&&m.key==y.key&&m.type===y.type){H[d]=void 0;break}y=null}P(e,m,y=y||l,o,r,u,c,s,f),g=m.__e,(d=m.ref)&&y.ref!=d&&(x||(x=[]),y.ref&&x.push(y.ref,null,m),x.push(d,m.__c||g,m)),null!=g?(null==k&&(k=g),\"function\"==typeof m.type&&null!=m.__k&&m.__k===y.__k?m.__d=s=b(m,s,e):s=C(e,m,y,H,g,s),f||\"option\"!==_.type?\"function\"==typeof _.type&&(_.__d=s):e.value=\"\"):s&&y.__e==s&&s.parentNode!=e&&(s=v(y))}for(_.__e=k,a=E;a--;)null!=H[a]&&(\"function\"==typeof _.type&&null!=H[a].__e&&H[a].__e==_.__d&&(_.__d=v(t,a+1)),U(H[a],H[a]));if(x)for(a=0;a<x.length;a++)T(x[a],x[++a],x[++a])}function b(e,n,_){var t,o;for(t=0;t<e.__k.length;t++)(o=e.__k[t])&&(o.__=e,n=\"function\"==typeof o.type?b(o,n,_):C(_,o,o,e.__k,o.__e,n));return n}function C(e,n,_,t,o,r){var u,l,i;if(void 0!==n.__d)u=n.__d,n.__d=void 0;else if(null==_||o!=r||null==o.parentNode)e:if(null==r||r.parentNode!==e)e.appendChild(o),u=null;else{for(l=r,i=0;(l=l.nextSibling)&&i<t.length;i+=2)if(l==o)break e;e.insertBefore(o,r),u=r}return void 0!==u?u:o.nextSibling}function x(e,n,_){\"-\"===n[0]?e.setProperty(n,_):e[n]=null==_?\"\":\"number\"!=typeof _||c.test(n)?_:_+\"px\"}function H(e,n,_,t,o){var r;e:if(\"style\"===n)if(\"string\"==typeof _)e.style.cssText=_;else{if(\"string\"==typeof t&&(e.style.cssText=t=\"\"),t)for(n in t)_&&n in _||x(e.style,n,\"\");if(_)for(n in _)t&&_[n]===t[n]||x(e.style,n,_[n])}else if(\"o\"===n[0]&&\"n\"===n[1])r=n!==(n=n.replace(/Capture$/,\"\")),n=n.toLowerCase()in e?n.toLowerCase().slice(2):n.slice(2),e.l||(e.l={}),e.l[n+r]=_,_?t||e.addEventListener(n,r?S:E,r):e.removeEventListener(n,r?S:E,r);else if(\"dangerouslySetInnerHTML\"!==n){if(o)n=n.replace(/xlink[H:h]/,\"h\").replace(/sName$/,\"s\");else if(\"href\"!==n&&\"list\"!==n&&\"form\"!==n&&\"tabIndex\"!==n&&\"download\"!==n&&n in e)try{e[n]=null==_?\"\":_;break e}catch(e){}\"function\"==typeof _||(null!=_&&(!1!==_||\"a\"===n[0]&&\"r\"===n[1])?e.setAttribute(n,_):e.removeAttribute(n))}}function E(e){this.l[e.type+!1](n.event?n.event(e):e)}function S(e){this.l[e.type+!0](n.event?n.event(e):e)}function P(e,_,t,o,r,u,l,i,c){var f,a,p,v,y,m,g,b,C,x,H,E=_.type;if(void 0!==_.constructor)return null;null!=t.__h&&(c=t.__h,i=_.__e=t.__e,_.__h=null,u=[i]),(f=n.__b)&&f(_);try{e:if(\"function\"==typeof E){if(b=_.props,C=(f=E.contextType)&&o[f.__c],x=f?C?C.props.value:f.__:o,t.__c?g=(a=_.__c=t.__c).__=a.__E:(\"prototype\"in E&&E.prototype.render?_.__c=a=new E(b,x):(_.__c=a=new d(b,x),a.constructor=E,a.render=A),C&&C.sub(a),a.props=b,a.state||(a.state={}),a.context=x,a.__n=o,p=a.__d=!0,a.__h=[]),null==a.__s&&(a.__s=a.state),null!=E.getDerivedStateFromProps&&(a.__s==a.state&&(a.__s=s({},a.__s)),s(a.__s,E.getDerivedStateFromProps(b,a.__s))),v=a.props,y=a.state,p)null==E.getDerivedStateFromProps&&null!=a.componentWillMount&&a.componentWillMount(),null!=a.componentDidMount&&a.__h.push(a.componentDidMount);else{if(null==E.getDerivedStateFromProps&&b!==v&&null!=a.componentWillReceiveProps&&a.componentWillReceiveProps(b,x),!a.__e&&null!=a.shouldComponentUpdate&&!1===a.shouldComponentUpdate(b,a.__s,x)||_.__v===t.__v){a.props=b,a.state=a.__s,_.__v!==t.__v&&(a.__d=!1),a.__v=_,_.__e=t.__e,_.__k=t.__k,_.__k.forEach(function(e){e&&(e.__=_)}),a.__h.length&&l.push(a);break e}null!=a.componentWillUpdate&&a.componentWillUpdate(b,a.__s,x),null!=a.componentDidUpdate&&a.__h.push(function(){a.componentDidUpdate(v,y,m)})}a.context=x,a.props=b,a.state=a.__s,(f=n.__r)&&f(_),a.__d=!1,a.__v=_,a.__P=e,f=a.render(a.props,a.state,a.context),a.state=a.__s,null!=a.getChildContext&&(o=s(s({},o),a.getChildContext())),p||null==a.getSnapshotBeforeUpdate||(m=a.getSnapshotBeforeUpdate(v,y)),H=null!=f&&f.type===h&&null==f.key?f.props.children:f,k(e,Array.isArray(H)?H:[H],_,t,o,r,u,l,i,c),a.base=_.__e,_.__h=null,a.__h.length&&l.push(a),g&&(a.__E=a.__=null),a.__e=!1}else null==u&&_.__v===t.__v?(_.__k=t.__k,_.__e=t.__e):_.__e=w(t.__e,_,t,o,r,u,l,c);(f=n.diffed)&&f(_)}catch(e){_.__v=null,(c||null!=u)&&(_.__e=i,_.__h=!!c,u[u.indexOf(i)]=null),n.__e(e,_,t)}}function D(e,_){n.__c&&n.__c(_,e),e.some(function(_){try{e=_.__h,_.__h=[],e.some(function(e){e.call(_)})}catch(e){n.__e(e,_.__v)}})}function w(n,_,t,o,r,u,i,c){var s,a,p,h=t.props,d=_.props,y=_.type,m=0;if(\"svg\"===y&&(r=!0),null!=u)for(;m<u.length;m++)if((s=u[m])&&(s===n||(y?s.localName==y:3==s.nodeType))){n=s,u[m]=null;break}if(null==n){if(null===y)return document.createTextNode(d);n=r?document.createElementNS(\"http://www.w3.org/2000/svg\",y):document.createElement(y,d.is&&d),u=null,c=!1}if(null===y)h===d||c&&n.data===d||(n.data=d);else{if(u=u&&e.call(n.childNodes),a=(h=t.props||l).dangerouslySetInnerHTML,p=d.dangerouslySetInnerHTML,!c){if(null!=u)for(h={},m=0;m<n.attributes.length;m++)h[n.attributes[m].name]=n.attributes[m].value;(p||a)&&(p&&(a&&p.__html==a.__html||p.__html===n.innerHTML)||(n.innerHTML=p&&p.__html||\"\"))}if(function(e,n,_,t,o){var r;for(r in _)\"children\"===r||\"key\"===r||r in n||H(e,r,null,_[r],t);for(r in n)o&&\"function\"!=typeof n[r]||\"children\"===r||\"key\"===r||\"value\"===r||\"checked\"===r||_[r]===n[r]||H(e,r,n[r],_[r],t)}(n,d,h,r,c),p)_.__k=[];else if(m=_.props.children,k(n,Array.isArray(m)?m:[m],_,t,o,r&&\"foreignObject\"!==y,u,i,u?u[0]:t.__k&&v(t,0),c),null!=u)for(m=u.length;m--;)null!=u[m]&&f(u[m]);c||(\"value\"in d&&void 0!==(m=d.value)&&(m!==n.value||\"progress\"===y&&!m)&&H(n,\"value\",m,h.value,!1),\"checked\"in d&&void 0!==(m=d.checked)&&m!==n.checked&&H(n,\"checked\",m,h.checked,!1))}return n}function T(e,_,t){try{\"function\"==typeof e?e(_):e.current=_}catch(e){n.__e(e,t)}}function U(e,_,t){var o,r;if(n.unmount&&n.unmount(e),(o=e.ref)&&(o.current&&o.current!==e.__e||T(o,null,_)),null!=(o=e.__c)){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(e){n.__e(e,_)}o.base=o.__P=null}if(o=e.__k)for(r=0;r<o.length;r++)o[r]&&U(o[r],_,\"function\"!=typeof e.type);t||null==e.__e||f(e.__e),e.__e=e.__d=void 0}function A(e,n,_){return this.constructor(e,_)}function M(_,t,o){var r,u,i;n.__&&n.__(_,t),u=(r=\"function\"==typeof o)?null:o&&o.__k||t.__k,i=[],P(t,_=(!r&&o||t).__k=a(h,null,[_]),u||l,l,void 0!==t.ownerSVGElement,!r&&o?[o]:u?null:t.firstChild?e.call(t.childNodes):null,i,!r&&o?o:u?u.__e:t.firstChild,r),D(i,_)}function F(e,n){var _={__c:n=\"__cC\"+u++,__:e,Consumer:function(e,n){return e.children(n)},Provider:function(e){var _,t;return this.getChildContext||(_=[],(t={})[n]=this,this.getChildContext=function(){return t},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&_.some(m)},this.sub=function(e){_.push(e);var n=e.componentWillUnmount;e.componentWillUnmount=function(){_.splice(_.indexOf(e),1),n&&n.call(e)}}),e.children}};return _.Provider.__=_.Consumer.contextType=_}e=i.slice,n={__e:function(e,n){for(var _,t,o;n=n.__;)if((_=n.__c)&&!_.__)try{if((t=_.constructor)&&null!=t.getDerivedStateFromError&&(_.setState(t.getDerivedStateFromError(e)),o=_.__d),null!=_.componentDidCatch&&(_.componentDidCatch(e),o=_.__d),o)return _.__E=_}catch(n){e=n}throw e}},_=0,d.prototype.setState=function(e,n){var _;_=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=s({},this.state),\"function\"==typeof e&&(e=e(s({},_),this.props)),e&&s(_,e),null!=e&&this.__v&&(n&&this.__h.push(n),m(this))},d.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),m(this))},d.prototype.render=h,t=[],o=\"function\"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,g.__r=0,u=0;var L,N,W,R=0,I=[],O=n.__b,V=n.__r,q=n.diffed,B=n.__c,$=n.unmount;function j(e,_){n.__h&&n.__h(N,e,R||_),R=0;var t=N.__H||(N.__H={__:[],__h:[]});return e>=t.__.length&&t.__.push({}),t.__[e]}function G(e){return R=1,z(ie,e)}function z(e,n,_){var t=j(L++,2);return t.t=e,t.__c||(t.__=[_?_(n):ie(void 0,n),function(e){var n=t.t(t.__[0],e);t.__[0]!==n&&(t.__=[n,t.__[1]],t.__c.setState({}))}],t.__c=N),t.__}function J(e,_){var t=j(L++,3);!n.__s&&le(t.__H,_)&&(t.__=e,t.__H=_,N.__H.__h.push(t))}function K(e,_){var t=j(L++,4);!n.__s&&le(t.__H,_)&&(t.__=e,t.__H=_,N.__h.push(t))}function Q(e){return R=5,Y(function(){return{current:e}},[])}function X(e,n,_){R=6,K(function(){\"function\"==typeof e?e(n()):e&&(e.current=n())},null==_?_:_.concat(e))}function Y(e,n){var _=j(L++,7);return le(_.__H,n)&&(_.__=e(),_.__H=n,_.__h=e),_.__}function Z(e,n){return R=8,Y(function(){return e},n)}function ee(e){var n=N.context[e.__c],_=j(L++,9);return _.c=e,n?(null==_.__&&(_.__=!0,n.sub(N)),n.props.value):e.__}function ne(e,_){n.useDebugValue&&n.useDebugValue(_?_(e):e)}function _e(e){var n=j(L++,10),_=G();return n.__=e,N.componentDidCatch||(N.componentDidCatch=function(e){n.__&&n.__(e),_[1](e)}),[_[0],function(){_[1](void 0)}]}function te(){I.forEach(function(e){if(e.__P)try{e.__H.__h.forEach(re),e.__H.__h.forEach(ue),e.__H.__h=[]}catch(_){e.__H.__h=[],n.__e(_,e.__v)}}),I=[]}n.__b=function(e){N=null,O&&O(e)},n.__r=function(e){V&&V(e),L=0;var n=(N=e.__c).__H;n&&(n.__h.forEach(re),n.__h.forEach(ue),n.__h=[])},n.diffed=function(e){q&&q(e);var _=e.__c;_&&_.__H&&_.__H.__h.length&&(1!==I.push(_)&&W===n.requestAnimationFrame||((W=n.requestAnimationFrame)||function(e){var n,_=function(){clearTimeout(t),oe&&cancelAnimationFrame(n),setTimeout(e)},t=setTimeout(_,100);oe&&(n=requestAnimationFrame(_))})(te)),N=void 0},n.__c=function(e,_){_.some(function(e){try{e.__h.forEach(re),e.__h=e.__h.filter(function(e){return!e.__||ue(e)})}catch(t){_.some(function(e){e.__h&&(e.__h=[])}),_=[],n.__e(t,e.__v)}}),B&&B(e,_)},n.unmount=function(e){$&&$(e);var _=e.__c;if(_&&_.__H)try{_.__H.__.forEach(re)}catch(e){n.__e(e,_.__v)}};var oe=\"function\"==typeof requestAnimationFrame;function re(e){var n=N;\"function\"==typeof e.__c&&e.__c(),N=n}function ue(e){var n=N;e.__c=e.__(),N=n}function le(e,n){return!e||e.length!==n.length||n.some(function(n,_){return n!==e[_]})}function ie(e,n){return\"function\"==typeof n?n(e):n}var ce=function(e,n,_,t){var o;n[0]=0;for(var r=1;r<n.length;r++){var u=n[r++],l=n[r]?(n[0]|=u?1:2,_[n[r++]]):n[++r];3===u?t[0]=l:4===u?t[1]=Object.assign(t[1]||{},l):5===u?(t[1]=t[1]||{})[n[++r]]=l:6===u?t[1][n[++r]]+=l+\"\":u?(o=e.apply(l,ce(e,l,_,[\"\",null])),t.push(o),l[0]?n[0]|=2:(n[r-2]=0,n[r]=o)):t.push(l)}return t},se=new Map,fe=function(e){var n=se.get(this);return n||(n=new Map,se.set(this,n)),(n=ce(this,n.get(e)||(n.set(e,n=function(e){for(var n,_,t=1,o=\"\",r=\"\",u=[0],l=function(e){1===t&&(e||(o=o.replace(/^\\s*\\n\\s*|\\s*\\n\\s*$/g,\"\")))?u.push(0,e,o):3===t&&(e||o)?(u.push(3,e,o),t=2):2===t&&\"...\"===o&&e?u.push(4,e,0):2===t&&o&&!e?u.push(5,0,!0,o):t>=5&&((o||!e&&5===t)&&(u.push(t,0,o,_),t=6),e&&(u.push(t,e,0,_),t=6)),o=\"\"},i=0;i<e.length;i++){i&&(1===t&&l(),l(i));for(var c=0;c<e[i].length;c++)n=e[i][c],1===t?\"<\"===n?(l(),u=[u],t=3):o+=n:4===t?\"--\"===o&&\">\"===n?(t=1,o=\"\"):o=n+o[0]:r?n===r?r=\"\":o+=n:'\"'===n||\"'\"===n?r=n:\">\"===n?(l(),t=1):t&&(\"=\"===n?(t=5,_=o,o=\"\"):\"/\"===n&&(t<5||\">\"===e[i][c+1])?(l(),3===t&&(u=u[0]),t=u,(u=u[0]).push(2,0,t),t=0):\" \"===n||\"\\t\"===n||\"\\n\"===n||\"\\r\"===n?(l(),t=2):o+=n),3===t&&\"!--\"===o&&(t=4,u=u[0])}return l(),u}(e)),n),arguments,[])).length>1?n:n[0]}.bind(a);export{a as h,fe as html,M as render,d as Component,F as createContext,G as useState,z as useReducer,J as useEffect,K as useLayoutEffect,Q as useRef,X as useImperativeHandle,Y as useMemo,Z as useCallback,ee as useContext,ne as useDebugValue,_e as useErrorBoundary};\n"],"names":["e","n","_","t","o","r","l","i","c","s","f","parentNode","removeChild","a","u","arguments","length","children","call","defaultProps","p","type","props","key","ref","__k","__","__b","__e","__d","__c","__h","constructor","__v","vnode","h","d","this","context","v","indexOf","y","base","m","push","g","__r","debounceRendering","sort","some","__P","P","__n","ownerSVGElement","D","k","x","H","E","Array","isArray","b","C","value","U","T","appendChild","nextSibling","insertBefore","setProperty","test","style","cssText","replace","toLowerCase","slice","addEventListener","S","removeEventListener","setAttribute","removeAttribute","event","contextType","__E","prototype","render","A","sub","state","__s","getDerivedStateFromProps","componentWillMount","componentDidMount","componentWillReceiveProps","shouldComponentUpdate","forEach","componentWillUpdate","componentDidUpdate","getChildContext","getSnapshotBeforeUpdate","w","diffed","localName","nodeType","document","createTextNode","createElementNS","createElement","is","data","childNodes","dangerouslySetInnerHTML","attributes","name","__html","innerHTML","checked","current","unmount","componentWillUnmount","M","firstChild","getDerivedStateFromError","setState","componentDidCatch","forceUpdate","Promise","then","bind","resolve","setTimeout","W","I","O","V","q","B","$","te","__H","re","ue","requestAnimationFrame","clearTimeout","oe","cancelAnimationFrame","filter","ce","Object","assign","apply","se","Map","fe","get","set"],"mappings":"AAAG,IAACA,EAAEC,EAAEC,EAAEC,EAAEC,EAAEC,EAAIC,EAAE,GAAGC,EAAE,GAAGC,EAAE,oEAAoE,SAASC,EAAET,EAAEC,GAAG,IAAI,IAAIC,KAAKD,EAAED,EAAEE,GAAGD,EAAEC,GAAG,OAAOF,CAAC,CAAC,SAASU,EAAEV,GAAG,IAAIC,EAAED,EAAEW,WAAWV,GAAGA,EAAEW,YAAYZ,EAAE,CAAC,SAASa,EAAEZ,EAAEC,EAAEC,GAAG,IAAIC,EAAEC,EAAES,EAAER,EAAE,CAAA,EAAG,IAAIQ,KAAKZ,EAAE,OAAOY,EAAEV,EAAEF,EAAEY,GAAG,OAAOA,EAAET,EAAEH,EAAEY,GAAGR,EAAEQ,GAAGZ,EAAEY,GAAG,GAA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GAAGE,EAAE,EAAED,EAAEE,EAAEA,EAAE,IAAI,MAAMH,IAAIE,EAAE,GAAG,MAAMH,EAAEO,GAAGC,EAAE,KAAKF,IAAI,IAAIH,IAAIW,EAAEA,EAAE,IAAIX,EAAEW,GAAGA,EAAEA,EAAE,IAAI8B,KAAK,EAAE,EAAEzC,GAAGA,EAAE,GAAG,MAAMF,GAAG,OAAOA,GAAG,OAAOA,GAAG,OAAOA,GAAGK,IAAIH,EAAE,GAAGC,GAAGH,GAAG,IAAIE,GAAG,QAAQC,IAAID,EAAE,EAAEW,EAAEA,EAAE,GAAG,CAAC,OAAOR,IAAIQ,CAAC,CAAptB,CAAstBd,IAAIC,GAAGc,UAAU,KAAKC,OAAO,EAAEf,EAAEA,EAAE,EAAE,EAAE+H,KAAKnH"}
{"version":3,"file":"htm.mjs","sources":["../node_modules/htm/src/index.mjs","../node_modules/htm/src/build.mjs","../src/jsx-dom.mjs","../src/htm.mjs"],"sourcesContent":["/**\n * Copyright 2018 Google Inc. All Rights Reserved.\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * http://www.apache.org/licenses/LICENSE-2.0\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { MINI } from './constants.mjs';\nimport { build, evaluate } from './build.mjs';\n\nconst CACHES = new Map();\n\nconst regular = function(statics) {\n\tlet tmp = CACHES.get(this);\n\tif (!tmp) {\n\t\ttmp = new Map();\n\t\tCACHES.set(this, tmp);\n\t}\n\ttmp = evaluate(this, tmp.get(statics) || (tmp.set(statics, tmp = build(statics)), tmp), arguments, []);\n\treturn tmp.length > 1 ? tmp : tmp[0];\n};\n\nexport default MINI ? build : regular;\n","import { MINI } from './constants.mjs';\n\nconst MODE_SLASH = 0;\nconst MODE_TEXT = 1;\nconst MODE_WHITESPACE = 2;\nconst MODE_TAGNAME = 3;\nconst MODE_COMMENT = 4;\nconst MODE_PROP_SET = 5;\nconst MODE_PROP_APPEND = 6;\n\nconst CHILD_APPEND = 0;\nconst CHILD_RECURSE = 2;\nconst TAG_SET = 3;\nconst PROPS_ASSIGN = 4;\nconst PROP_SET = MODE_PROP_SET;\nconst PROP_APPEND = MODE_PROP_APPEND;\n\n// Turn a result of a build(...) call into a tree that is more\n// convenient to analyze and transform (e.g. Babel plugins).\n// For example:\n// \ttreeify(\n//\t\tbuild`<div href=\"1${a}\" ...${b}><${x} /></div>`,\n//\t\t[X, Y, Z]\n//\t)\n// returns:\n// \t{\n// \t\ttag: 'div',\n//\t\tprops: [ { href: [\"1\", X] }, Y ],\n// \t\tchildren: [ { tag: Z, props: [], children: [] } ]\n// \t}\nexport const treeify = (built, fields) => {\n\tconst _treeify = built => {\n\t\tlet tag = '';\n\t\tlet currentProps = null;\n\t\tconst props = [];\n\t\tconst children = [];\n\n\t\tfor (let i = 1; i < built.length; i++) {\n\t\t\tconst type = built[i++];\n\t\t\tconst value = built[i] ? fields[built[i++]-1] : built[++i];\n\n\t\t\tif (type === TAG_SET) {\n\t\t\t\ttag = value;\n\t\t\t}\n\t\t\telse if (type === PROPS_ASSIGN) {\n\t\t\t\tprops.push(value);\n\t\t\t\tcurrentProps = null;\n\t\t\t}\n\t\t\telse if (type === PROP_SET) {\n\t\t\t\tif (!currentProps) {\n\t\t\t\t\tcurrentProps = Object.create(null);\n\t\t\t\t\tprops.push(currentProps);\n\t\t\t\t}\n\t\t\t\tcurrentProps[built[++i]] = [value];\n\t\t\t}\n\t\t\telse if (type === PROP_APPEND) {\n\t\t\t\tcurrentProps[built[++i]].push(value);\n\t\t\t}\n\t\t\telse if (type === CHILD_RECURSE) {\n\t\t\t\tchildren.push(_treeify(value));\n\t\t\t}\n\t\t\telse if (type === CHILD_APPEND) {\n\t\t\t\tchildren.push(value);\n\t\t\t}\n\t\t}\n\n\t\treturn { tag, props, children };\n\t};\n\tconst { children } = _treeify(built);\n\treturn children.length > 1 ? children : children[0];\n};\n\nexport const evaluate = (h, built, fields, args) => {\n\tlet tmp;\n\n\t// `build()` used the first element of the operation list as\n\t// temporary workspace. Now that `build()` is done we can use\n\t// that space to track whether the current element is \"dynamic\"\n\t// (i.e. it or any of its descendants depend on dynamic values).\n\tbuilt[0] = 0;\n\n\tfor (let i = 1; i < built.length; i++) {\n\t\tconst type = built[i++];\n\n\t\t// Set `built[0]`'s appropriate bits if this element depends on a dynamic value.\n\t\tconst value = built[i] ? ((built[0] |= type ? 1 : 2), fields[built[i++]]) : built[++i];\n\n\t\tif (type === TAG_SET) {\n\t\t\targs[0] = value;\n\t\t}\n\t\telse if (type === PROPS_ASSIGN) {\n\t\t\targs[1] = Object.assign(args[1] || {}, value);\n\t\t}\n\t\telse if (type === PROP_SET) {\n\t\t\t(args[1] = args[1] || {})[built[++i]] = value;\n\t\t}\n\t\telse if (type === PROP_APPEND) {\n\t\t\targs[1][built[++i]] += (value + '');\n\t\t}\n\t\telse if (type) { // type === CHILD_RECURSE\n\t\t\t// Set the operation list (including the staticness bits) as\n\t\t\t// `this` for the `h` call.\n\t\t\ttmp = h.apply(value, evaluate(h, value, fields, ['', null]));\n\t\t\targs.push(tmp);\n\n\t\t\tif (value[0]) {\n\t\t\t\t// Set the 2nd lowest bit it the child element is dynamic.\n\t\t\t\tbuilt[0] |= 2;\n\t\t\t}\n\t\t\telse {\n\t\t\t\t// Rewrite the operation list in-place if the child element is static.\n\t\t\t\t// The currently evaluated piece `CHILD_RECURSE, 0, [...]` becomes\n\t\t\t\t// `CHILD_APPEND, 0, tmp`.\n\t\t\t\t// Essentially the operation list gets optimized for potential future\n\t\t\t\t// re-evaluations.\n\t\t\t\tbuilt[i-2] = CHILD_APPEND;\n\t\t\t\tbuilt[i] = tmp;\n\t\t\t}\n\t\t}\n\t\telse { // type === CHILD_APPEND\n\t\t\targs.push(value);\n\t\t}\n\t}\n\n\treturn args;\n};\n\nexport const build = function(statics) {\n\tconst fields = arguments;\n\tconst h = this;\n\n\tlet mode = MODE_TEXT;\n\tlet buffer = '';\n\tlet quote = '';\n\tlet current = [0];\n\tlet char, propName;\n\n\tconst commit = field => {\n\t\tif (mode === MODE_TEXT && (field || (buffer = buffer.replace(/^\\s*\\n\\s*|\\s*\\n\\s*$/g,'')))) {\n\t\t\tif (MINI) {\n\t\t\t\tcurrent.push(field ? fields[field] : buffer);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tcurrent.push(CHILD_APPEND, field, buffer);\n\t\t\t}\n\t\t}\n\t\telse if (mode === MODE_TAGNAME && (field || buffer)) {\n\t\t\tif (MINI) {\n\t\t\t\tcurrent[1] = field ? fields[field] : buffer;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tcurrent.push(TAG_SET, field, buffer);\n\t\t\t}\n\t\t\tmode = MODE_WHITESPACE;\n\t\t}\n\t\telse if (mode === MODE_WHITESPACE && buffer === '...' && field) {\n\t\t\tif (MINI) {\n\t\t\t\tcurrent[2] = Object.assign(current[2] || {}, fields[field]);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tcurrent.push(PROPS_ASSIGN, field, 0);\n\t\t\t}\n\t\t}\n\t\telse if (mode === MODE_WHITESPACE && buffer && !field) {\n\t\t\tif (MINI) {\n\t\t\t\t(current[2] = current[2] || {})[buffer] = true;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tcurrent.push(PROP_SET, 0, true, buffer);\n\t\t\t}\n\t\t}\n\t\telse if (mode >= MODE_PROP_SET) {\n\t\t\tif (MINI) {\n\t\t\t\tif (mode === MODE_PROP_SET) {\n\t\t\t\t\t(current[2] = current[2] || {})[propName] = field ? buffer ? (buffer + fields[field]) : fields[field] : buffer;\n\t\t\t\t\tmode = MODE_PROP_APPEND;\n\t\t\t\t}\n\t\t\t\telse if (field || buffer) {\n\t\t\t\t\tcurrent[2][propName] += field ? buffer + fields[field] : buffer;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\tif (buffer || (!field && mode === MODE_PROP_SET)) {\n\t\t\t\t\tcurrent.push(mode, 0, buffer, propName);\n\t\t\t\t\tmode = MODE_PROP_APPEND;\n\t\t\t\t}\n\t\t\t\tif (field) {\n\t\t\t\t\tcurrent.push(mode, field, 0, propName);\n\t\t\t\t\tmode = MODE_PROP_APPEND;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuffer = '';\n\t};\n\n\tfor (let i=0; i<statics.length; i++) {\n\t\tif (i) {\n\t\t\tif (mode === MODE_TEXT) {\n\t\t\t\tcommit();\n\t\t\t}\n\t\t\tcommit(i);\n\t\t}\n\n\t\tfor (let j=0; j<statics[i].length;j++) {\n\t\t\tchar = statics[i][j];\n\n\t\t\tif (mode === MODE_TEXT) {\n\t\t\t\tif (char === '<') {\n\t\t\t\t\t// commit buffer\n\t\t\t\t\tcommit();\n\t\t\t\t\tif (MINI) {\n\t\t\t\t\t\tcurrent = [current, '', null];\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tcurrent = [current];\n\t\t\t\t\t}\n\t\t\t\t\tmode = MODE_TAGNAME;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tbuffer += char;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if (mode === MODE_COMMENT) {\n\t\t\t\t// Ignore everything until the last three characters are '-', '-' and '>'\n\t\t\t\tif (buffer === '--' && char === '>') {\n\t\t\t\t\tmode = MODE_TEXT;\n\t\t\t\t\tbuffer = '';\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tbuffer = char + buffer[0];\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if (quote) {\n\t\t\t\tif (char === quote) {\n\t\t\t\t\tquote = '';\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tbuffer += char;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if (char === '\"' || char === \"'\") {\n\t\t\t\tquote = char;\n\t\t\t}\n\t\t\telse if (char === '>') {\n\t\t\t\tcommit();\n\t\t\t\tmode = MODE_TEXT;\n\t\t\t}\n\t\t\telse if (!mode) {\n\t\t\t\t// Ignore everything until the tag ends\n\t\t\t}\n\t\t\telse if (char === '=') {\n\t\t\t\tmode = MODE_PROP_SET;\n\t\t\t\tpropName = buffer;\n\t\t\t\tbuffer = '';\n\t\t\t}\n\t\t\telse if (char === '/' && (mode < MODE_PROP_SET || statics[i][j+1] === '>')) {\n\t\t\t\tcommit();\n\t\t\t\tif (mode === MODE_TAGNAME) {\n\t\t\t\t\tcurrent = current[0];\n\t\t\t\t}\n\t\t\t\tmode = current;\n\t\t\t\tif (MINI) {\n\t\t\t\t\t(current = current[0]).push(h.apply(null, mode.slice(1)));\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t(current = current[0]).push(CHILD_RECURSE, 0, mode);\n\t\t\t\t}\n\t\t\t\tmode = MODE_SLASH;\n\t\t\t}\n\t\t\telse if (char === ' ' || char === '\\t' || char === '\\n' || char === '\\r') {\n\t\t\t\t// <a disabled>\n\t\t\t\tcommit();\n\t\t\t\tmode = MODE_WHITESPACE;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tbuffer += char;\n\t\t\t}\n\n\t\t\tif (mode === MODE_TAGNAME && buffer === '!--') {\n\t\t\t\tmode = MODE_COMMENT;\n\t\t\t\tcurrent = current[0];\n\t\t\t}\n\t\t}\n\t}\n\tcommit();\n\n\tif (MINI) {\n\t\treturn current.length > 2 ? current.slice(1) : current[1];\n\t}\n\treturn current;\n};\n","/* global Node */\nconst flatten = arr => arr.flat(1)\n\nconst h = (tag, attrs, ...children) => {\n let elm = null\n let isSvg = false\n if (['svg', 'use', 'symbol', 'path', 'g', 'defs', 'title'].indexOf(tag) > -1) {\n elm = document.createElementNS('http://www.w3.org/2000/svg', tag)\n isSvg = true\n } else {\n elm = document.createElement(tag)\n }\n for (const key in attrs) {\n if (key.slice(0, 2) === 'on') {\n const evtName = key.slice(2)\n const cb = attrs[key]\n if (cb == null) continue // we can use null or undefined to suppress\n elm.addEventListener(evtName, cb)\n } else if (['disabled', 'selected', 'checked'].indexOf(key) > -1) {\n if (attrs[key]) {\n elm.setAttribute(key, key)\n }\n } else if (key === 'xlinkHref' && isSvg) {\n if (attrs[key]) {\n elm.setAttributeNS('http://www.w3.org/1999/xlink', 'xlink:href', attrs[key])\n }\n } else if (key === 'href' && isSvg) {\n if (attrs[key]) {\n elm.setAttributeNS('http://www.w3.org/1999/xlink', 'href', attrs[key])\n }\n } else {\n if (attrs[key] == null) continue // Don't set undefined or null attributes\n elm.setAttribute(key, attrs[key])\n }\n }\n if (children.length === 0) {\n return elm\n }\n const fc = flatten(children)\n fc.forEach(child => {\n if (child instanceof Node) {\n elm.appendChild(child)\n } else {\n elm.appendChild(document.createTextNode(child))\n }\n })\n if (tag == null) {\n return elm.children\n }\n return elm\n}\n\nconst fragment = null\n\nexport { h, fragment }\n","import htm from 'htm/src/index.mjs'\nimport { h } from './jsx-dom.mjs'\n\nconst html = htm.bind(h)\n\nfunction renderer (what, where) {\n // remove any existing elements\n while (where.firstChild) where.removeChild(where.firstChild)\n\n // add the element to the DOM\n Array.isArray(what) ? what.forEach(w => where.appendChild(w)) : where.appendChild(what)\n}\n\nexport { html, renderer }\n"],"names":["htm","statics","fields","arguments","h","this","char","propName","mode","buffer","quote","current","commit","field","replace","push","Object","assign","i","length","j","apply","slice","html","bind","tag","attrs","children","elm","isSvg","indexOf","document","createElementNS","createElement","key","evtName","cb","addEventListener","setAttribute","setAttributeNS","flat","forEach","child","Node","appendChild","createTextNode","renderer","what","where","firstChild","removeChild","Array","isArray","w"],"mappings":"AA4BA,IAAAA,ICmGqB,SAASC,GAC7B,MAAMC,EAASC,UACTC,EAAIC,KAEV,IAIIC,EAAMC,EAJNC,EAhIa,EAiIbC,EAAS,GACTC,EAAQ,GACRC,EAAU,CAAC,GAGf,MAAMC,OAASC,IAtIE,IAuIZL,IAAuBK,IAAUJ,EAASA,EAAOK,QAAQ,uBAAuB,M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sC3BC,SAAQC,IACLA,aAAiBC,KACnBf,EAAIgB,YAAYF,GAEhBd,EAAIgB,YAAYb,SAASc,eAAeH,GACzC,IAEQ,MAAPjB,EACKG,EAAID,SAENC,KC5CT,SAASkB,SAAUC,EAAMC,GAEvB,KAAOA,EAAMC,YAAYD,EAAME,YAAYF,EAAMC,YAGjDE,MAAMC,QAAQL,GAAQA,EAAKN,SAAQY,GAAKL,EAAMJ,YAAYS,KAAML,EAAMJ,YAAYG,EACpF"}
{"version":3,"file":"lit-html.mjs","sources":["../node_modules/lit-html/lit-html.js"],"sourcesContent":["/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\nvar t;const i=window,s=i.trustedTypes,e=s?s.createPolicy(\"lit-html\",{createHTML:t=>t}):void 0,o=`lit$${(Math.random()+\"\").slice(9)}$`,n=\"?\"+o,l=`<${n}>`,h=document,r=(t=\"\")=>h.createComment(t),d=t=>null===t||\"object\"!=typeof t&&\"function\"!=typeof t,u=Array.isArray,c=t=>u(t)||\"function\"==typeof(null==t?void 0:t[Symbol.iterator]),v=/<(?:(!--|\\/[^a-zA-Z])|(\\/?[a-zA-Z][^>\\s]*)|(\\/?$))/g,a=/-->/g,f=/>/g,_=RegExp(\">|[ \\t\\n\\f\\r](?:([^\\\\s\\\"'>=/]+)([ \\t\\n\\f\\r]*=[ \\t\\n\\f\\r]*(?:[^ \\t\\n\\f\\r\\\"'`<>=]|(\\\"|')|))|$)\",\"g\"),m=/'/g,p=/\"/g,$=/^(?:script|style|textarea|title)$/i,g=t=>(i,...s)=>({_$litType$:t,strings:i,values:s}),y=g(1),w=g(2),x=Symbol.for(\"lit-noChange\"),b=Symbol.for(\"lit-nothing\"),T=new WeakMap,A=h.createTreeWalker(h,129,null,!1),E=(t,i)=>{const s=t.length-1,n=[];let h,r=2===i?\"<svg>\":\"\",d=v;for(let i=0;i<s;i++){const s=t[i];let e,u,c=-1,g=0;for(;g<s.length&&(d.lastIndex=g,u=d.exec(s),null!==u);)g=d.lastIndex,d===v?\"!--\"===u[1]?d=a:void 0!==u[1]?d=f:void 0!==u[2]?($.test(u[2])&&(h=RegExp(\"</\"+u[2],\"g\")),d=_):void 0!==u[3]&&(d=_):d===_?\">\"===u[0]?(d=null!=h?h:v,c=-1):void 0===u[1]?c=-2:(c=d.lastIndex-u[2].length,e=u[1],d=void 0===u[3]?_:'\"'===u[3]?p:m):d===p||d===m?d=_:d===a||d===f?d=v:(d=_,h=void 0);const y=d===_&&t[i+1].startsWith(\"/>\")?\" \":\"\";r+=d===v?s+l:c>=0?(n.push(e),s.slice(0,c)+\"$lit$\"+s.slice(c)+o+y):s+o+(-2===c?(n.push(void 0),i):y)}const u=r+(t[s]||\"<?>\")+(2===i?\"</svg>\":\"\");if(!Array.isArray(t)||!t.hasOwnProperty(\"raw\"))throw Error(\"invalid template strings array\");return[void 0!==e?e.createHTML(u):u,n]};class C{constructor({strings:t,_$litType$:i},e){let l;this.parts=[];let h=0,d=0;const u=t.length-1,c=this.parts,[v,a]=E(t,i);if(this.el=C.createElement(v,e),A.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(l=A.nextNode())&&c.length<u;){if(1===l.nodeType){if(l.hasAttributes()){const t=[];for(const i of l.getAttributeNames())if(i.endsWith(\"$lit$\")||i.startsWith(o)){const s=a[d++];if(t.push(i),void 0!==s){const t=l.getAttribute(s.toLowerCase()+\"$lit$\").split(o),i=/([.?@])?(.*)/.exec(s);c.push({type:1,index:h,name:i[2],strings:t,ctor:\".\"===i[1]?M:\"?\"===i[1]?k:\"@\"===i[1]?H:S})}else c.push({type:6,index:h})}for(const i of t)l.removeAttribute(i)}if($.test(l.tagName)){const t=l.textContent.split(o),i=t.length-1;if(i>0){l.textContent=s?s.emptyScript:\"\";for(let s=0;s<i;s++)l.append(t[s],r()),A.nextNode(),c.push({type:2,index:++h});l.append(t[i],r())}}}else if(8===l.nodeType)if(l.data===n)c.push({type:2,index:h});else{let t=-1;for(;-1!==(t=l.data.indexOf(o,t+1));)c.push({type:7,index:h}),t+=o.length-1}h++}}static createElement(t,i){const s=h.createElement(\"template\");return s.innerHTML=t,s}}function P(t,i,s=t,e){var o,n,l,h;if(i===x)return i;let r=void 0!==e?null===(o=s._$Co)||void 0===o?void 0:o[e]:s._$Cl;const u=d(i)?void 0:i._$litDirective$;return(null==r?void 0:r.constructor)!==u&&(null===(n=null==r?void 0:r._$AO)||void 0===n||n.call(r,!1),void 0===u?r=void 0:(r=new u(t),r._$AT(t,s,e)),void 0!==e?(null!==(l=(h=s)._$Co)&&void 0!==l?l:h._$Co=[])[e]=r:s._$Cl=r),void 0!==r&&(i=P(t,r._$AS(t,i.values),r,e)),i}class V{constructor(t,i){this.u=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(t){var i;const{el:{content:s},parts:e}=this._$AD,o=(null!==(i=null==t?void 0:t.creationScope)&&void 0!==i?i:h).importNode(s,!0);A.currentNode=o;let n=A.nextNode(),l=0,r=0,d=e[0];for(;void 0!==d;){if(l===d.index){let i;2===d.type?i=new N(n,n.nextSibling,this,t):1===d.type?i=new d.ctor(n,d.name,d.strings,this,t):6===d.type&&(i=new I(n,this,t)),this.u.push(i),d=e[++r]}l!==(null==d?void 0:d.index)&&(n=A.nextNode(),l++)}return o}p(t){let i=0;for(const s of this.u)void 0!==s&&(void 0!==s.strings?(s._$AI(t,s,i),i+=s.strings.length-2):s._$AI(t[i])),i++}}class N{constructor(t,i,s,e){var o;this.type=2,this._$AH=b,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=s,this.options=e,this._$Cm=null===(o=null==e?void 0:e.isConnected)||void 0===o||o}get _$AU(){var t,i;return null!==(i=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==i?i:this._$Cm}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===t.nodeType&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=P(this,t,i),d(t)?t===b||null==t||\"\"===t?(this._$AH!==b&&this._$AR(),this._$AH=b):t!==this._$AH&&t!==x&&this.g(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):c(t)?this.k(t):this.g(t)}O(t,i=this._$AB){return this._$AA.parentNode.insertBefore(t,i)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}g(t){this._$AH!==b&&d(this._$AH)?this._$AA.nextSibling.data=t:this.T(h.createTextNode(t)),this._$AH=t}$(t){var i;const{values:s,_$litType$:e}=t,o=\"number\"==typeof e?this._$AC(t):(void 0===e.el&&(e.el=C.createElement(e.h,this.options)),e);if((null===(i=this._$AH)||void 0===i?void 0:i._$AD)===o)this._$AH.p(s);else{const t=new V(o,this),i=t.v(this.options);t.p(s),this.T(i),this._$AH=t}}_$AC(t){let i=T.get(t.strings);return void 0===i&&T.set(t.strings,i=new C(t)),i}k(t){u(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let s,e=0;for(const o of t)e===i.length?i.push(s=new N(this.O(r()),this.O(r()),this,this.options)):s=i[e],s._$AI(o),e++;e<i.length&&(this._$AR(s&&s._$AB.nextSibling,e),i.length=e)}_$AR(t=this._$AA.nextSibling,i){var s;for(null===(s=this._$AP)||void 0===s||s.call(this,!1,!0,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var i;void 0===this._$AM&&(this._$Cm=t,null===(i=this._$AP)||void 0===i||i.call(this,t))}}class S{constructor(t,i,s,e,o){this.type=1,this._$AH=b,this._$AN=void 0,this.element=t,this.name=i,this._$AM=e,this.options=o,s.length>2||\"\"!==s[0]||\"\"!==s[1]?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=b}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,i=this,s,e){const o=this.strings;let n=!1;if(void 0===o)t=P(this,t,i,0),n=!d(t)||t!==this._$AH&&t!==x,n&&(this._$AH=t);else{const e=t;let l,h;for(t=o[0],l=0;l<o.length-1;l++)h=P(this,e[s+l],i,l),h===x&&(h=this._$AH[l]),n||(n=!d(h)||h!==this._$AH[l]),h===b?t=b:t!==b&&(t+=(null!=h?h:\"\")+o[l+1]),this._$AH[l]=h}n&&!e&&this.j(t)}j(t){t===b?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:\"\")}}class M extends S{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===b?void 0:t}}const R=s?s.emptyScript:\"\";class k extends S{constructor(){super(...arguments),this.type=4}j(t){t&&t!==b?this.element.setAttribute(this.name,R):this.element.removeAttribute(this.name)}}class H extends S{constructor(t,i,s,e,o){super(t,i,s,e,o),this.type=5}_$AI(t,i=this){var s;if((t=null!==(s=P(this,t,i,0))&&void 0!==s?s:b)===x)return;const e=this._$AH,o=t===b&&e!==b||t.capture!==e.capture||t.once!==e.once||t.passive!==e.passive,n=t!==b&&(e===b||o);o&&this.element.removeEventListener(this.name,this,e),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var i,s;\"function\"==typeof this._$AH?this._$AH.call(null!==(s=null===(i=this.options)||void 0===i?void 0:i.host)&&void 0!==s?s:this.element,t):this._$AH.handleEvent(t)}}class I{constructor(t,i,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){P(this,t)}}const L={P:\"$lit$\",A:o,M:n,C:1,L:E,R:V,D:c,V:P,I:N,H:S,N:k,U:H,B:M,F:I},z=i.litHtmlPolyfillSupport;null==z||z(C,N),(null!==(t=i.litHtmlVersions)&&void 0!==t?t:i.litHtmlVersions=[]).push(\"2.4.0\");const Z=(t,i,s)=>{var e,o;const n=null!==(e=null==s?void 0:s.renderBefore)&&void 0!==e?e:i;let l=n._$litPart$;if(void 0===l){const t=null!==(o=null==s?void 0:s.renderBefore)&&void 0!==o?o:null;n._$litPart$=l=new N(i.insertBefore(r(),t),t,void 0,null!=s?s:{})}return l._$AI(t),l};export{L as _$LH,y as html,x as noChange,b as nothing,Z as render,w as svg};\n//# sourceMappingURL=lit-html.js.map\n"],"names":["t","i","window","s","trustedTypes","e","createPolicy","createHTML","o","Math","random","slice","n","l","h","document","r","createComment","d","u","Array","isArray","v","a","f","_","RegExp","m","p","$","y","_$litType$","strings","values","g","x","Symbol","for","b","T","WeakMap","A","createTreeWalker","E","length","c","lastIndex","exec","test","startsWith","push","hasOwnProperty","Error","C","constructor","this","parts","el","createElement","currentNode","content","firstChild","remove","append","childNodes","nextNode","nodeType","hasAttributes","getAttributeNames","endsWith","getAttribute","toLowerCase","split","type","index","name","ctor","M","k","H","S","removeAttribute","tagName","textContent","emptyScript","data","indexOf","static","innerHTML","P","_$Co","_$Cl","_$litDirective$","_$AO","call","_$AT","_$AS","V","_$AN","_$AD","_$AM","parentNode","_$AU","creationScope","importNode","N","nextSibling","I","_$AI","_$AH","_$AA","_$AB","options","_$Cm","isConnected","startNode","endNode","_$AR","iterator","O","insertBefore","createTextNode","_$AC","get","set","_$AP","setConnected","element","fill","String","j","setAttribute","super","arguments","R","capture","once","passive","removeEventListener","addEventListener","handleEvent","host","z","litHtmlPolyfillSupport","litHtmlVersions","Z","renderBefore","_$litPart$"],"mappings":";;;;;AAKA,IAAIA,EAAO,MAACC,EAAEC,OAAOC,EAAEF,EAAEG,aAAaC,EAAEF,EAAEA,EAAEG,aAAa,WAAW,CAACC,WAAWP,GAAGA,SAAI,EAAOQ,EAAE,QAAQC,KAAKC,SAAS,IAAIC,MAAM,MAAMC,EAAE,IAAIJ,EAAEK,EAAE,IAAID,KAAKE,EAAEC,SAASC,EAAE,CAAChB,EAAE,KAAKc,EAAEG,cAAcjB,GAAGkB,EAAElB,GAAG,OAAOA,GAAG,iBAAiBA,GAAG,mBAAmBA,EAAEmB,EAAEC,MAAMC,QAAyEC,EAAE,sDAAsDC,EAAE,OAAOC,EAAE,KAAKC,E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EA,EAAEJ,EAAE,IAAIY,EAAED,EAAEuI,WAAW,QAAG,IAAStI,EAAE,CAAC,MAAMb,EAAE,QAAQQ,EAAE,MAAML,OAAE,EAAOA,EAAE+I,oBAAe,IAAS1I,EAAEA,EAAE,KAAKI,EAAEuI,WAAWtI,EAAE,IAAI4F,EAAExG,EAAEuH,aAAaxG,IAAIhB,GAAGA,OAAE,EAAO,MAAMG,EAAEA,EAAE,CAAA,EAAG,CAAC,OAAOU,EAAE+F,KAAK5G,GAAGa"}
{"version":3,"file":"uhtml.mjs","sources":["../node_modules/@webreflection/mapset/esm/index.js","../node_modules/@webreflection/uparser/esm/index.js","../node_modules/@webreflection/uwire/esm/index.js","../node_modules/uarray/esm/index.js","../node_modules/uhandlers/esm/index.js","../node_modules/uhtml/esm/utils.js","../node_modules/uhtml/esm/handlers.js","../node_modules/udomdiff/esm/index.js","../node_modules/uhtml/esm/rabbit.js","../node_modules/uhtml/esm/index.js","../src/uhtml.mjs"],"sourcesContent":["export class MapSet extends Map {\n set(key, value) {\n super.set(key, value);\n return value;\n }\n}\n\nexport class WeakMapSet extends WeakMap {\n set(key, value) {\n super.set(key, value);\n return value;\n }\n}\n","/*! (c) Andrea Giammarchi - ISC */\nconst empty = /^(?:area|base|br|col|embed|hr|img|input|keygen|link|menuitem|meta|param|source|track|wbr)$/i;\nconst elements = /<([a-z]+[a-z0-9:._-]*)([^>]*?)(\\/?)>/g;\nconst attributes = /([^\\s\\\\>\"'=]+)\\s*=\\s*(['\"]?)\\x01/g;\nconst holes = /[\\x01\\x02]/g;\n\n// \\x01 Node.ELEMENT_NODE\n// \\x02 Node.ATTRIBUTE_NODE\n\n/**\n * Given a template, find holes as both nodes and attributes and\n * return a string with holes as either comment nodes or named attributes.\n * @param {string[]} template a template literal tag array\n * @param {string} prefix prefix to use per each comment/attribute\n * @param {boolean} svg enforces self-closing tags\n * @returns {string} X/HTML with prefixed comments or attributes\n */\nexport default (template, prefix, svg) => {\n let i = 0;\n return template\n .join('\\x01')\n .trim()\n .replace(\n elements,\n (_, name, attrs, selfClosing) => {\n let ml = name + attrs.replace(attributes, '\\x02=$2$1').trimEnd();\n if (selfClosing.length)\n ml += (svg || empty.test(name)) ? ' /' : ('></' + name);\n return '<' + ml + '>';\n }\n )\n .replace(\n holes,\n hole => hole === '\\x01' ?\n ('<!--' + prefix + i++ + '-->') :\n (prefix + i++)\n );\n};\n","const ELEMENT_NODE = 1;\nconst nodeType = 111;\n\nconst remove = ({firstChild, lastChild}) => {\n const range = document.createRange();\n range.setStartAfter(firstChild);\n range.setEndAfter(lastChild);\n range.deleteContents();\n return firstChild;\n};\n\nexport const diffable = (node, operation) => node.nodeType === nodeType ?\n ((1 / operation) < 0 ?\n (operation ? remove(node) : node.lastChild) :\n (operation ? node.valueOf() : node.firstChild)) :\n node\n;\n\nexport const persistent = fragment => {\n const {firstChild, lastChild} = fragment;\n if (firstChild === lastChild)\n return lastChild || fragment;\n const {childNodes} = fragment;\n const nodes = [...childNodes];\n return {\n ELEMENT_NODE,\n nodeType,\n firstChild,\n lastChild,\n valueOf() {\n if (childNodes.length !== nodes.length)\n fragment.append(...nodes);\n return fragment;\n }\n };\n};\n","const {isArray} = Array;\nconst {indexOf, slice} = [];\n\nexport {isArray, indexOf, slice};\n","import {isArray} from 'uarray';\n\n// flag for foreign checks (slower path, fast by default)\nlet useForeign = false;\n\nexport class Foreign {\n constructor(handler, value) {\n useForeign = true;\n this._ = (...args) => handler(...args, value);\n }\n}\n\nexport const foreign = (handler, value) => new Foreign(handler, value);\n\nexport const aria = node => values => {\n for (const key in values) {\n const name = key === 'role' ? key : `aria-${key}`;\n const value = values[key];\n if (value == null)\n node.removeAttribute(name);\n else\n node.setAttribute(name, value);\n }\n};\n\nconst getValue = value => value == null ? value : value.valueOf();\n\nexport const attribute = (node, name) => {\n let oldValue, orphan = true;\n const attributeNode = document.createAttributeNS(null, name);\n return newValue => {\n const value = useForeign && (newValue instanceof Foreign) ?\n newValue._(node, name) : getValue(newValue);\n if (oldValue !== value) {\n if ((oldValue = value) == null) {\n if (!orphan) {\n node.removeAttributeNode(attributeNode);\n orphan = true;\n }\n }\n else {\n attributeNode.value = value;\n if (orphan) {\n node.setAttributeNodeNS(attributeNode);\n orphan = false;\n }\n }\n }\n };\n};\n\nexport const boolean = (node, key, oldValue) => newValue => {\n const value = !!getValue(newValue);\n if (oldValue !== value) {\n // when IE won't be around anymore ...\n // node.toggleAttribute(key, oldValue = !!value);\n if ((oldValue = value))\n node.setAttribute(key, '');\n else\n node.removeAttribute(key);\n }\n};\n\nexport const data = ({dataset}) => values => {\n for (const key in values) {\n const value = values[key];\n if (value == null)\n delete dataset[key];\n else\n dataset[key] = value;\n }\n};\n\nexport const event = (node, name) => {\n let oldValue, lower, type = name.slice(2);\n if (!(name in node) && (lower = name.toLowerCase()) in node)\n type = lower.slice(2);\n return newValue => {\n const info = isArray(newValue) ? newValue : [newValue, false];\n if (oldValue !== info[0]) {\n if (oldValue)\n node.removeEventListener(type, oldValue, info[1]);\n if (oldValue = info[0])\n node.addEventListener(type, oldValue, info[1]);\n }\n };\n};\n\nexport const ref = node => {\n let oldValue;\n return value => {\n if (oldValue !== value) {\n oldValue = value;\n if (typeof value === 'function')\n value(node);\n else\n value.current = node;\n }\n };\n};\n\nexport const setter = (node, key) => key === 'dataset' ?\n data(node) :\n value => {\n node[key] = value;\n };\n\nexport const text = node => {\n let oldValue;\n return newValue => {\n const value = getValue(newValue);\n if (oldValue != value) {\n oldValue = value;\n node.textContent = value == null ? '' : value;\n }\n };\n};\n","const {isArray, prototype} = Array;\nconst {indexOf} = prototype;\n\nexport {isArray, indexOf};\n\nconst {\n createDocumentFragment,\n createElement,\n createElementNS,\n createTextNode,\n createTreeWalker,\n importNode\n} = new Proxy(document, {\n get: (target, method) => target[method].bind(target)\n});\n\nexport {createTextNode, createTreeWalker, importNode};\n\nconst createHTML = html => {\n const template = createElement('template');\n template.innerHTML = html;\n return template.content;\n};\n\nlet xml;\nconst createSVG = svg => {\n if (!xml) xml = createElementNS('http://www.w3.org/2000/svg', 'svg');\n xml.innerHTML = svg;\n const content = createDocumentFragment();\n content.append(...xml.childNodes);\n return content;\n};\n\nexport const createContent = (text, svg) => svg ?\n createSVG(text) : createHTML(text);\n","import {diffable} from '@webreflection/uwire';\n\nimport {aria, attribute, boolean, event, ref, setter, text} from 'uhandlers';\nimport udomdiff from 'udomdiff';\n\nimport {isArray, createTextNode} from './utils.js';\n\n// from a generic path, retrieves the exact targeted node\nconst reducePath = ({childNodes}, i) => childNodes[i];\n\n// this helper avoid code bloat around handleAnything() callback\nconst diff = (comment, oldNodes, newNodes) => udomdiff(\n comment.parentNode,\n // TODO: there is a possible edge case where a node has been\n // removed manually, or it was a keyed one, attached\n // to a shared reference between renders.\n // In this case udomdiff might fail at removing such node\n // as its parent won't be the expected one.\n // The best way to avoid this issue is to filter oldNodes\n // in search of those not live, or not in the current parent\n // anymore, but this would require both a change to uwire,\n // exposing a parentNode from the firstChild, as example,\n // but also a filter per each diff that should exclude nodes\n // that are not in there, penalizing performance quite a lot.\n // As this has been also a potential issue with domdiff,\n // and both lighterhtml and hyperHTML might fail with this\n // very specific edge case, I might as well document this possible\n // \"diffing shenanigan\" and call it a day.\n oldNodes,\n newNodes,\n diffable,\n comment\n);\n\n// if an interpolation represents a comment, the whole\n// diffing will be related to such comment.\n// This helper is in charge of understanding how the new\n// content for such interpolation/hole should be updated\nconst handleAnything = comment => {\n let oldValue, text, nodes = [];\n const anyContent = newValue => {\n switch (typeof newValue) {\n // primitives are handled as text content\n case 'string':\n case 'number':\n case 'boolean':\n if (oldValue !== newValue) {\n oldValue = newValue;\n if (!text)\n text = createTextNode('');\n text.data = newValue;\n nodes = diff(comment, nodes, [text]);\n }\n break;\n // null, and undefined are used to cleanup previous content\n case 'object':\n case 'undefined':\n if (newValue == null) {\n if (oldValue != newValue) {\n oldValue = newValue;\n nodes = diff(comment, nodes, []);\n }\n break;\n }\n // arrays and nodes have a special treatment\n if (isArray(newValue)) {\n oldValue = newValue;\n // arrays can be used to cleanup, if empty\n if (newValue.length === 0)\n nodes = diff(comment, nodes, []);\n // or diffed, if these contains nodes or \"wires\"\n else if (typeof newValue[0] === 'object')\n nodes = diff(comment, nodes, newValue);\n // in all other cases the content is stringified as is\n else\n anyContent(String(newValue));\n break;\n }\n // if the new value is a DOM node, or a wire, and it's\n // different from the one already live, then it's diffed.\n // if the node is a fragment, it's appended once via its childNodes\n // There is no `else` here, meaning if the content\n // is not expected one, nothing happens, as easy as that.\n if (oldValue !== newValue) {\n if ('ELEMENT_NODE' in newValue) {\n oldValue = newValue;\n nodes = diff(\n comment,\n nodes,\n newValue.nodeType === 11 ?\n [...newValue.childNodes] :\n [newValue]\n );\n }\n else {\n const value = newValue.valueOf();\n if (value !== newValue)\n anyContent(value);\n }\n }\n break;\n case 'function':\n anyContent(newValue(comment));\n break;\n }\n };\n return anyContent;\n};\n\n// attributes can be:\n// * ref=${...} for hooks and other purposes\n// * aria=${...} for aria attributes\n// * ?boolean=${...} for boolean attributes\n// * .dataset=${...} for dataset related attributes\n// * .setter=${...} for Custom Elements setters or nodes with setters\n// such as buttons, details, options, select, etc\n// * @event=${...} to explicitly handle event listeners\n// * onevent=${...} to automatically handle event listeners\n// * generic=${...} to handle an attribute just like an attribute\nconst handleAttribute = (node, name/*, svg*/) => {\n switch (name[0]) {\n case '?': return boolean(node, name.slice(1), false);\n case '.': return setter(node, name.slice(1));\n case '@': return event(node, 'on' + name.slice(1));\n case 'o': if (name[1] === 'n') return event(node, name);\n }\n\n switch (name) {\n case 'ref': return ref(node);\n case 'aria': return aria(node);\n }\n\n return attribute(node, name/*, svg*/);\n};\n\n// each mapped update carries the update type and its path\n// the type is either node, attribute, or text, while\n// the path is how to retrieve the related node to update.\n// In the attribute case, the attribute name is also carried along.\nexport function handlers(options) {\n const {type, path} = options;\n const node = path.reduceRight(reducePath, this);\n return type === 'node' ?\n handleAnything(node) :\n (type === 'attr' ?\n handleAttribute(node, options.name/*, options.svg*/) :\n text(node));\n};\n","/**\n * ISC License\n *\n * Copyright (c) 2020, Andrea Giammarchi, @WebReflection\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\n * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\n * AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\n * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\n * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE\n * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\n * PERFORMANCE OF THIS SOFTWARE.\n */\n\n/**\n * @param {Node} parentNode The container where children live\n * @param {Node[]} a The list of current/live children\n * @param {Node[]} b The list of future children\n * @param {(entry: Node, action: number) => Node} get\n * The callback invoked per each entry related DOM operation.\n * @param {Node} [before] The optional node used as anchor to insert before.\n * @returns {Node[]} The same list of future children.\n */\nexport default (parentNode, a, b, get, before) => {\n const bLength = b.length;\n let aEnd = a.length;\n let bEnd = bLength;\n let aStart = 0;\n let bStart = 0;\n let map = null;\n while (aStart < aEnd || bStart < bEnd) {\n // append head, tail, or nodes in between: fast path\n if (aEnd === aStart) {\n // we could be in a situation where the rest of nodes that\n // need to be added are not at the end, and in such case\n // the node to `insertBefore`, if the index is more than 0\n // must be retrieved, otherwise it's gonna be the first item.\n const node = bEnd < bLength ?\n (bStart ?\n (get(b[bStart - 1], -0).nextSibling) :\n get(b[bEnd - bStart], 0)) :\n before;\n while (bStart < bEnd)\n parentNode.insertBefore(get(b[bStart++], 1), node);\n }\n // remove head or tail: fast path\n else if (bEnd === bStart) {\n while (aStart < aEnd) {\n // remove the node only if it's unknown or not live\n if (!map || !map.has(a[aStart]))\n parentNode.removeChild(get(a[aStart], -1));\n aStart++;\n }\n }\n // same node: fast path\n else if (a[aStart] === b[bStart]) {\n aStart++;\n bStart++;\n }\n // same tail: fast path\n else if (a[aEnd - 1] === b[bEnd - 1]) {\n aEnd--;\n bEnd--;\n }\n // The once here single last swap \"fast path\" has been removed in v1.1.0\n // https://github.com/WebReflection/udomdiff/blob/single-final-swap/esm/index.js#L69-L85\n // reverse swap: also fast path\n else if (\n a[aStart] === b[bEnd - 1] &&\n b[bStart] === a[aEnd - 1]\n ) {\n // this is a \"shrink\" operation that could happen in these cases:\n // [1, 2, 3, 4, 5]\n // [1, 4, 3, 2, 5]\n // or asymmetric too\n // [1, 2, 3, 4, 5]\n // [1, 2, 3, 5, 6, 4]\n const node = get(a[--aEnd], -1).nextSibling;\n parentNode.insertBefore(\n get(b[bStart++], 1),\n get(a[aStart++], -1).nextSibling\n );\n parentNode.insertBefore(get(b[--bEnd], 1), node);\n // mark the future index as identical (yeah, it's dirty, but cheap 👍)\n // The main reason to do this, is that when a[aEnd] will be reached,\n // the loop will likely be on the fast path, as identical to b[bEnd].\n // In the best case scenario, the next loop will skip the tail,\n // but in the worst one, this node will be considered as already\n // processed, bailing out pretty quickly from the map index check\n a[aEnd] = b[bEnd];\n }\n // map based fallback, \"slow\" path\n else {\n // the map requires an O(bEnd - bStart) operation once\n // to store all future nodes indexes for later purposes.\n // In the worst case scenario, this is a full O(N) cost,\n // and such scenario happens at least when all nodes are different,\n // but also if both first and last items of the lists are different\n if (!map) {\n map = new Map;\n let i = bStart;\n while (i < bEnd)\n map.set(b[i], i++);\n }\n // if it's a future node, hence it needs some handling\n if (map.has(a[aStart])) {\n // grab the index of such node, 'cause it might have been processed\n const index = map.get(a[aStart]);\n // if it's not already processed, look on demand for the next LCS\n if (bStart < index && index < bEnd) {\n let i = aStart;\n // counts the amount of nodes that are the same in the future\n let sequence = 1;\n while (++i < aEnd && i < bEnd && map.get(a[i]) === (index + sequence))\n sequence++;\n // effort decision here: if the sequence is longer than replaces\n // needed to reach such sequence, which would brings again this loop\n // to the fast path, prepend the difference before a sequence,\n // and move only the future list index forward, so that aStart\n // and bStart will be aligned again, hence on the fast path.\n // An example considering aStart and bStart are both 0:\n // a: [1, 2, 3, 4]\n // b: [7, 1, 2, 3, 6]\n // this would place 7 before 1 and, from that time on, 1, 2, and 3\n // will be processed at zero cost\n if (sequence > (index - bStart)) {\n const node = get(a[aStart], 0);\n while (bStart < index)\n parentNode.insertBefore(get(b[bStart++], 1), node);\n }\n // if the effort wasn't good enough, fallback to a replace,\n // moving both source and target indexes forward, hoping that some\n // similar node will be found later on, to go back to the fast path\n else {\n parentNode.replaceChild(\n get(b[bStart++], 1),\n get(a[aStart++], -1)\n );\n }\n }\n // otherwise move the source forward, 'cause there's nothing to do\n else\n aStart++;\n }\n // this node has no meaning in the future list, so it's more than safe\n // to remove it, and check the next live node out instead, meaning\n // that only the live list index should be forwarded\n else\n parentNode.removeChild(get(a[aStart++], -1));\n }\n }\n return b;\n};\n","import {WeakMapSet} from '@webreflection/mapset';\nimport instrument from '@webreflection/uparser';\nimport {persistent} from '@webreflection/uwire';\n\nimport {handlers} from './handlers.js';\nimport {isArray, indexOf, createContent, createTreeWalker, importNode} from './utils.js';\n\n// from a fragment container, create an array of indexes\n// related to its child nodes, so that it's possible\n// to retrieve later on exact node via reducePath\nconst createPath = node => {\n const path = [];\n let {parentNode} = node;\n while (parentNode) {\n path.push(indexOf.call(parentNode.childNodes, node));\n node = parentNode;\n ({parentNode} = node);\n }\n return path;\n};\n\n// the prefix is used to identify either comments, attributes, or nodes\n// that contain the related unique id. In the attribute cases\n// isµX=\"attribute-name\" will be used to map current X update to that\n// attribute name, while comments will be like <!--isµX-->, to map\n// the update to that specific comment node, hence its parent.\n// style and textarea will have <!--isµX--> text content, and are handled\n// directly through text-only updates.\nconst prefix = 'isµ';\n\n// Template Literals are unique per scope and static, meaning a template\n// should be parsed once, and once only, as it will always represent the same\n// content, within the exact same amount of updates each time.\n// This cache relates each template to its unique content and updates.\nconst cache = new WeakMapSet;\n\n// a RegExp that helps checking nodes that cannot contain comments\nconst textOnly = /^(?:textarea|script|style|title|plaintext|xmp)$/;\n\nexport const createCache = () => ({\n stack: [], // each template gets a stack for each interpolation \"hole\"\n\n entry: null, // each entry contains details, such as:\n // * the template that is representing\n // * the type of node it represents (html or svg)\n // * the content fragment with all nodes\n // * the list of updates per each node (template holes)\n // * the \"wired\" node or fragment that will get updates\n // if the template or type are different from the previous one\n // the entry gets re-created each time\n\n wire: null // each rendered node represent some wired content and\n // this reference to the latest one. If different, the node\n // will be cleaned up and the new \"wire\" will be appended\n});\n\n// the entry stored in the rendered node cache, and per each \"hole\"\nconst createEntry = (type, template) => {\n const {content, updates} = mapUpdates(type, template);\n return {type, template, content, updates, wire: null};\n};\n\n// a template is instrumented to be able to retrieve where updates are needed.\n// Each unique template becomes a fragment, cloned once per each other\n// operation based on the same template, i.e. data => html`<p>${data}</p>`\nconst mapTemplate = (type, template) => {\n const svg = type === 'svg';\n const text = instrument(template, prefix, svg);\n const content = createContent(text, svg);\n // once instrumented and reproduced as fragment, it's crawled\n // to find out where each update is in the fragment tree\n const tw = createTreeWalker(content, 1 | 128);\n const nodes = [];\n const length = template.length - 1;\n let i = 0;\n // updates are searched via unique names, linearly increased across the tree\n // <div isµ0=\"attr\" isµ1=\"other\"><!--isµ2--><style><!--isµ3--</style></div>\n let search = `${prefix}${i}`;\n while (i < length) {\n const node = tw.nextNode();\n // if not all updates are bound but there's nothing else to crawl\n // it means that there is something wrong with the template.\n if (!node)\n throw `bad template: ${text}`;\n // if the current node is a comment, and it contains isµX\n // it means the update should take care of any content\n if (node.nodeType === 8) {\n // The only comments to be considered are those\n // which content is exactly the same as the searched one.\n if (node.data === search) {\n nodes.push({type: 'node', path: createPath(node)});\n search = `${prefix}${++i}`;\n }\n }\n else {\n // if the node is not a comment, loop through all its attributes\n // named isµX and relate attribute updates to this node and the\n // attribute name, retrieved through node.getAttribute(\"isµX\")\n // the isµX attribute will be removed as irrelevant for the layout\n // let svg = -1;\n while (node.hasAttribute(search)) {\n nodes.push({\n type: 'attr',\n path: createPath(node),\n name: node.getAttribute(search)\n });\n node.removeAttribute(search);\n search = `${prefix}${++i}`;\n }\n // if the node was a style, textarea, or others, check its content\n // and if it is <!--isµX--> then update tex-only this node\n if (\n textOnly.test(node.localName) &&\n node.textContent.trim() === `<!--${search}-->`\n ){\n node.textContent = '';\n nodes.push({type: 'text', path: createPath(node)});\n search = `${prefix}${++i}`;\n }\n }\n }\n // once all nodes to update, or their attributes, are known, the content\n // will be cloned in the future to represent the template, and all updates\n // related to such content retrieved right away without needing to re-crawl\n // the exact same template, and its content, more than once.\n return {content, nodes};\n};\n\n// if a template is unknown, perform the previous mapping, otherwise grab\n// its details such as the fragment with all nodes, and updates info.\nconst mapUpdates = (type, template) => {\n const {content, nodes} = (\n cache.get(template) ||\n cache.set(template, mapTemplate(type, template))\n );\n // clone deeply the fragment\n const fragment = importNode(content, true);\n // and relate an update handler per each node that needs one\n const updates = nodes.map(handlers, fragment);\n // return the fragment and all updates to use within its nodes\n return {content: fragment, updates};\n};\n\n// as html and svg can be nested calls, but no parent node is known\n// until rendered somewhere, the unroll operation is needed to\n// discover what to do with each interpolation, which will result\n// into an update operation.\nexport const unroll = (info, {type, template, values}) => {\n // interpolations can contain holes and arrays, so these need\n // to be recursively discovered\n const length = unrollValues(info, values);\n let {entry} = info;\n // if the cache entry is either null or different from the template\n // and the type this unroll should resolve, create a new entry\n // assigning a new content fragment and the list of updates.\n if (!entry || (entry.template !== template || entry.type !== type))\n info.entry = (entry = createEntry(type, template));\n const {content, updates, wire} = entry;\n // even if the fragment and its nodes is not live yet,\n // it is already possible to update via interpolations values.\n for (let i = 0; i < length; i++)\n updates[i](values[i]);\n // if the entry was new, or representing a different template or type,\n // create a new persistent entity to use during diffing.\n // This is simply a DOM node, when the template has a single container,\n // as in `<p></p>`, or a \"wire\" in `<p></p><p></p>` and similar cases.\n return wire || (entry.wire = persistent(content));\n};\n\n// the stack retains, per each interpolation value, the cache\n// related to each interpolation value, or null, if the render\n// was conditional and the value is not special (Array or Hole)\nconst unrollValues = ({stack}, values) => {\n const {length} = values;\n for (let i = 0; i < length; i++) {\n const hole = values[i];\n // each Hole gets unrolled and re-assigned as value\n // so that domdiff will deal with a node/wire, not with a hole\n if (hole instanceof Hole)\n values[i] = unroll(\n stack[i] || (stack[i] = createCache()),\n hole\n );\n // arrays are recursively resolved so that each entry will contain\n // also a DOM node or a wire, hence it can be diffed if/when needed\n else if (isArray(hole))\n unrollValues(stack[i] || (stack[i] = createCache()), hole);\n // if the value is nothing special, the stack doesn't need to retain data\n // this is useful also to cleanup previously retained data, if the value\n // was a Hole, or an Array, but not anymore, i.e.:\n // const update = content => html`<div>${content}</div>`;\n // update(listOfItems); update(null); update(html`hole`)\n else\n stack[i] = null;\n }\n if (length < stack.length)\n stack.splice(length);\n return length;\n};\n\n/**\n * Holds all details wrappers needed to render the content further on.\n * @constructor\n * @param {string} type The hole type, either `html` or `svg`.\n * @param {string[]} template The template literals used to the define the content.\n * @param {Array} values Zero, one, or more interpolated values to render.\n */\nexport class Hole {\n constructor(type, template, values) {\n this.type = type;\n this.template = template;\n this.values = values;\n }\n};\n","import {MapSet, WeakMapSet} from '@webreflection/mapset';\n\nimport {Hole, createCache, unroll} from './rabbit.js';\n\n// both `html` and `svg` template literal tags are polluted\n// with a `for(ref[, id])` and a `node` tag too\nconst tag = type => {\n // both `html` and `svg` tags have their own cache\n const keyed = new WeakMapSet;\n // keyed operations always re-use the same cache and unroll\n // the template and its interpolations right away\n const fixed = cache => (template, ...values) => unroll(\n cache,\n {type, template, values}\n );\n return Object.assign(\n // non keyed operations are recognized as instance of Hole\n // during the \"unroll\", recursively resolved and updated\n (template, ...values) => new Hole(type, template, values),\n {\n // keyed operations need a reference object, usually the parent node\n // which is showing keyed results, and optionally a unique id per each\n // related node, handy with JSON results and mutable list of objects\n // that usually carry a unique identifier\n for(ref, id) {\n const memo = keyed.get(ref) || keyed.set(ref, new MapSet);\n return memo.get(id) || memo.set(id, fixed(createCache()));\n },\n // it is possible to create one-off content out of the box via node tag\n // this might return the single created node, or a fragment with all\n // nodes present at the root level and, of course, their child nodes\n node: (template, ...values) => unroll(createCache(), new Hole(type, template, values)).valueOf()\n }\n );\n};\n\n// each rendered node gets its own cache\nconst cache = new WeakMapSet;\n\n// rendering means understanding what `html` or `svg` tags returned\n// and it relates a specific node to its own unique cache.\n// Each time the content to render changes, the node is cleaned up\n// and the new new content is appended, and if such content is a Hole\n// then it's \"unrolled\" to resolve all its inner nodes.\nconst render = (where, what) => {\n const hole = typeof what === 'function' ? what() : what;\n const info = cache.get(where) || cache.set(where, createCache());\n const wire = hole instanceof Hole ? unroll(info, hole) : hole;\n if (wire !== info.wire) {\n info.wire = wire;\n // valueOf() simply returns the node itself, but in case it was a \"wire\"\n // it will eventually re-append all nodes to its fragment so that such\n // fragment can be re-appended many times in a meaningful way\n // (wires are basically persistent fragments facades with special behavior)\n where.replaceChildren(wire.valueOf());\n }\n return where;\n};\n\nconst html = tag('html');\nconst svg = tag('svg');\n\nexport {Hole, render, html, svg};\n","import { html, render as uhtmlRenderer } from 'uhtml'\n\nfunction renderer (what, where) {\n uhtmlRenderer(where, what)\n}\n\nexport { html, renderer }\n"],"names":["MapSet","Map","set","key","value","super","WeakMapSet","WeakMap","empty","elements","attributes","holes","diffable","node","operation","nodeType","firstChild","lastChild","range","document","createRange","setStartAfter","setEndAfter","deleteContents","remove","valueOf","isArray","Array","getValue","event","name","oldValue","lower","type","slice","toLowerCase","newValue","info","removeEventListener","addEventListener","prototype","indexOf","createDocumentFragment","createElement","createElementNS","createTextNode","createTreeWalker","importNode","Proxy","get","target","method","bind","xml","createContent","text","svg","innerHTML","content","append","childNodes","createSVG","html","template","createHTML","reducePath","i","diff","comment","oldNodes","newNodes","parentNode","a","b","before","bLength","length","aEnd","bEnd","aStart","bStart","map","insertBefore","has","removeChild","nextSibling","index","sequence","replaceChild","udomdiff","handleAttribute","setAttribute","removeAttribute","boolean","dataset","values","data","setter","current","ref","aria","orphan","attributeNode","createAttributeNS","removeAttributeNode","setAttributeNodeNS","attribute","handlers","options","path","reduceRight","this","nodes","anyContent","String","handleAnything","textContent","createPath","push","call","cache","textOnly","mapTemplate","prefix","join","trim","replace","_","attrs","selfClosing","ml","trimEnd","test","hole","instrument","tw","search","nextNode","hasAttribute","getAttribute","localName","mapUpdates","fragment","updates","unroll","unrollValues","entry","wire","createEntry","ELEMENT_NODE","persistent","stack","Hole","splice","constructor","tag","keyed","Object","assign","for","id","memo","fixed","renderer","what","where","replaceChildren","uhtmlRenderer"],"mappings":"AAAO,MAAMA,UAAeC,IAC1BC,IAAIC,EAAKC,GAEP,OADAC,MAAMH,IAAIC,EAAKC,GACRA,CACR,EAGI,MAAME,UAAmBC,QAC9BL,IAAIC,EAAKC,GAEP,OADAC,MAAMH,IAAIC,EAAKC,GACRA,CACR;kCCVH,MAAMI,EAAQ,8FACRC,EAAW,wCACXC,EAAa,oCACbC,EAAQ,cCJd,MAWaC,SAAW,CAACC,EAAMC,IAVd,MAU4BD,EAAKE,SAC9C,EAAID,EAAa,EAChBA,EAVU,GAAEE,aAAYC,gBAC3B,MAAMC,EAAQC,SAASC,cAIvB,OAHAF,EAAMG,cAAcL,GACpBE,EAAMI,YAAYL,GAClBC,EAAMK,iBACCP,CAAU,EAKFQ,CAAOX,GAAQA,EAAKI,UAChCH,EAAYD,EAAKY,UAAYZ,EAAKG,WACrCH,GCfKa,QAAAA,GAAWC,MCyBZC,SAAWxB,GAAkB,MAATA,EAAgBA,EAAQA,EAAMqB,UAgD3CI,MAAQ,CAAChB,EAAMiB,KAC1B,IAAIC,EAAUC,EAAOC,EAAOH,EAAKI,MAAM,GAGvC,QAFMJ,KAAQjB,KAAUmB,EAAQF,EAAKK,iBAAkBtB,IACrDoB,EAAOD,EAAME,MAAM,IACdE,IACL,MAAMC,EAAOX,EAAQU,GAAYA,EAAW,CAACA,G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AKhH,IAAI+G,IAAOC,EAAK/J,IAAI8J,EAfxBxC,IAAS,CAACzD,KAAagC,IAAWiD,OAC9CxB,EACA,CAACvF,OAAM8B,WAAUgC,WAauBmE,CDaV,CAChCX,MAAO,GAEPL,MAAO,KASPC,KAAM,OCxBD,EAIDtI,KAAM,CAACkD,KAAagC,IAAWiD,ODQH,CAChCO,MAAO,GAEPL,MAAO,KASPC,KAAM,MCpBmD,IAAIK,EAAKvH,EAAM8B,EAAUgC,IAAStE,WAE1F,EAIG+F,EAAQ,IAAIlH,EAsBZwD,EAAO6F,IAAI,QCzDjB,SAASQ,SAAUC,EAAMC,GD0CV,EAACA,EAAOD,KACrB,MAAM/B,EAAuB,mBAAT+B,EAAsBA,IAASA,EAC7C/H,EAAOmF,EAAMvE,IAAIoH,IAAU7C,EAAMtH,IAAImK,EDPX,CAChCd,MAAO,GAEPL,MAAO,KASPC,KAAM,OCJAA,EAAOd,aAAgBmB,EAAOR,OAAO3G,EAAMgG,GAAQA,EACrDc,IAAS9G,EAAK8G,OAChB9G,EAAK8G,KAAOA,EAKZkB,EAAMC,gBAAgBnB,EAAK1H,WAEjB,ECrDZ8I,CAAcF,EAAOD,EACvB,CDwDYT,IAAI"}
+1
-0
function createStyle(e){const t=document.createElement("style");return t.appendChild(document.createTextNode(e)),t}function css(e,...t){const n=e.raw;let c="",r=1;const o=arguments.length;let l,s;for(;r<o;)l=n[r-1],s=t[r-1],c+=l+s,r++;return c+=n[n.length-1],createStyle(c)}export{css};
//# sourceMappingURL=css.mjs.map
var e,n,t,o,r,u,i={},c=[],F=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function s(e,n){for(var t in n)e[t]=n[t];return e}function f(e){var n=e.parentNode;n&&n.removeChild(e)}function a(n,t,o){var r,u,i,c={};for(i in t)"key"==i?r=t[i]:"ref"==i?u=t[i]:c[i]=t[i];if(arguments.length>2&&(c.children=arguments.length>3?e.call(arguments,2):o),"function"==typeof n&&null!=n.defaultProps)for(i in n.defaultProps)void 0===c[i]&&(c[i]=n.defaultProps[i]);return p(n,c,r,u,null)}function p(e,o,r,u,i){var c={type:e,props:o,key:r,ref:u,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==i?++t:i};return null!=n.vnode&&n.vnode(c),c}function h(e){return e.children}function d(e,n){this.props=e,this.context=n}function v(e,n){if(null==n)return e.__?v(e.__,e.__.__k.indexOf(e)+1):null;for(var t;n<e.__k.length;n++)if(null!=(t=e.__k[n])&&null!=t.__e)return t.__e;return"function"==typeof e.type?v(e):null}function y(e){var n,t;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,n=0;n<e.__k.length;n++)if(null!=(t=e.__k[n])&&null!=t.__e){e.__e=e.__c.base=t.__e;break}return y(e)}}function m(e){(!e.__d&&(e.__d=!0)&&o.push(e)&&!g.__r++||u!==n.debounceRendering)&&((u=n.debounceRendering)||r)(g)}function g(){for(var e;g.__r=o.length;)e=o.sort((function(e,n){return e.__v.__b-n.__v.__b})),o=[],e.some((function(e){var n,t,o,r,u,i;e.__d&&(u=(r=(n=e).__v).__e,(i=n.__P)&&(t=[],(o=s({},r)).__v=r.__v+1,P(i,r,o,n.__n,void 0!==i.ownerSVGElement,null!=r.__h?[u]:null,t,null==u?v(r):u,r.__h),D(t,r),r.__e!=u&&y(r)))}))}function k(e,n,t,o,r,u,F,N,L,W){var q,I,O,R,$,B,j,G=o&&o.__k||c,V=G.length;for(t.__k=[],q=0;q<n.length;q++)if(null!=(R=t.__k[q]=null==(R=n[q])||"boolean"==typeof R?null:"string"==typeof R||"number"==typeof R||"bigint"==typeof R?p(null,R,null,null,R):Array.isArray(R)?p(h,{children:R},null,null,null):R.__b>0?p(R.type,R.props,R.key,null,R.__v):R)){if(R.__=t,R.__b=t.__b+1,null===(O=G[q])||O&&R.key==O.key&&R.type===O.type)G[q]=void 0;else for(I=0;I<V;I++){if((O=G[I])&&R.key==O.key&&R.type===O.type){G[I]=void 0;break}O=null}P(e,R,O=O||i,r,u,F,N,L,W),$=R.__e,(I=R.ref)&&O.ref!=I&&(j||(j=[]),O.ref&&j.push(O.ref,null,R),j.push(I,R.__c||$,R)),null!=$?(null==B&&(B=$),"function"==typeof R.type&&null!=R.__k&&R.__k===O.__k?R.__d=L=b(R,L,e):L=C(e,R,O,G,$,L),W||"option"!==t.type?"function"==typeof t.type&&(t.__d=L):e.value=""):L&&O.__e==L&&L.parentNode!=e&&(L=v(O))}for(t.__e=B,q=V;q--;)null!=G[q]&&("function"==typeof t.type&&null!=G[q].__e&&G[q].__e==t.__d&&(t.__d=v(o,q+1)),U(G[q],G[q]));if(j)for(q=0;q<j.length;q++)T(j[q],j[++q],j[++q])}function b(e,n,t){var o,r;for(o=0;o<e.__k.length;o++)(r=e.__k[o])&&(r.__=e,n="function"==typeof r.type?b(r,n,t):C(t,r,r,e.__k,r.__e,n));return n}function C(e,n,t,o,r,u){var i,c,F;if(void 0!==n.__d)i=n.__d,n.__d=void 0;else if(null==t||r!=u||null==r.parentNode)e:if(null==u||u.parentNode!==e)e.appendChild(r),i=null;else{for(c=u,F=0;(c=c.nextSibling)&&F<o.length;F+=2)if(c==r)break e;e.insertBefore(r,u),i=u}return void 0!==i?i:r.nextSibling}function x(e,n,t){"-"===n[0]?e.setProperty(n,t):e[n]=null==t?"":"number"!=typeof t||F.test(n)?t:t+"px"}function H(e,n,t,o,r){var u;e:if("style"===n)if("string"==typeof t)e.style.cssText=t;else{if("string"==typeof o&&(e.style.cssText=o=""),o)for(n in o)t&&n in t||x(e.style,n,"");if(t)for(n in t)o&&t[n]===o[n]||x(e.style,n,t[n])}else if("o"===n[0]&&"n"===n[1])u=n!==(n=n.replace(/Capture$/,"")),n=n.toLowerCase()in e?n.toLowerCase().slice(2):n.slice(2),e.l||(e.l={}),e.l[n+u]=t,t?o||e.addEventListener(n,u?S:E,u):e.removeEventListener(n,u?S:E,u);else if("dangerouslySetInnerHTML"!==n){if(r)n=n.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if("href"!==n&&"list"!==n&&"form"!==n&&"tabIndex"!==n&&"download"!==n&&n in e)try{e[n]=null==t?"":t;break e}catch(e){}"function"==typeof t||(null!=t&&(!1!==t||"a"===n[0]&&"r"===n[1])?e.setAttribute(n,t):e.removeAttribute(n))}}function E(e){this.l[e.type+!1](n.event?n.event(e):e)}function S(e){this.l[e.type+!0](n.event?n.event(e):e)}function P(e,t,o,r,u,i,c,F,N){var L,W,q,I,O,R,$,B,j,G,V,z=t.type;if(void 0!==t.constructor)return null;null!=o.__h&&(N=o.__h,F=t.__e=o.__e,t.__h=null,i=[F]),(L=n.__b)&&L(t);try{e:if("function"==typeof z){if(B=t.props,j=(L=z.contextType)&&r[L.__c],G=L?j?j.props.value:L.__:r,o.__c?$=(W=t.__c=o.__c).__=W.__E:("prototype"in z&&z.prototype.render?t.__c=W=new z(B,G):(t.__c=W=new d(B,G),W.constructor=z,W.render=A),j&&j.sub(W),W.props=B,W.state||(W.state={}),W.context=G,W.__n=r,q=W.__d=!0,W.__h=[]),null==W.__s&&(W.__s=W.state),null!=z.getDerivedStateFromProps&&(W.__s==W.state&&(W.__s=s({},W.__s)),s(W.__s,z.getDerivedStateFromProps(B,W.__s))),I=W.props,O=W.state,q)null==z.getDerivedStateFromProps&&null!=W.componentWillMount&&W.componentWillMount(),null!=W.componentDidMount&&W.__h.push(W.componentDidMount);else{if(null==z.getDerivedStateFromProps&&B!==I&&null!=W.componentWillReceiveProps&&W.componentWillReceiveProps(B,G),!W.__e&&null!=W.shouldComponentUpdate&&!1===W.shouldComponentUpdate(B,W.__s,G)||t.__v===o.__v){W.props=B,W.state=W.__s,t.__v!==o.__v&&(W.__d=!1),W.__v=t,t.__e=o.__e,t.__k=o.__k,t.__k.forEach((function(e){e&&(e.__=t)})),W.__h.length&&c.push(W);break e}null!=W.componentWillUpdate&&W.componentWillUpdate(B,W.__s,G),null!=W.componentDidUpdate&&W.__h.push((function(){W.componentDidUpdate(I,O,R)}))}W.context=G,W.props=B,W.state=W.__s,(L=n.__r)&&L(t),W.__d=!1,W.__v=t,W.__P=e,L=W.render(W.props,W.state,W.context),W.state=W.__s,null!=W.getChildContext&&(r=s(s({},r),W.getChildContext())),q||null==W.getSnapshotBeforeUpdate||(R=W.getSnapshotBeforeUpdate(I,O)),V=null!=L&&L.type===h&&null==L.key?L.props.children:L,k(e,Array.isArray(V)?V:[V],t,o,r,u,i,c,F,N),W.base=t.__e,t.__h=null,W.__h.length&&c.push(W),$&&(W.__E=W.__=null),W.__e=!1}else null==i&&t.__v===o.__v?(t.__k=o.__k,t.__e=o.__e):t.__e=w(o.__e,t,o,r,u,i,c,N);(L=n.diffed)&&L(t)}catch(e){t.__v=null,(N||null!=i)&&(t.__e=F,t.__h=!!N,i[i.indexOf(F)]=null),n.__e(e,t,o)}}function D(e,t){n.__c&&n.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){n.__e(e,t.__v)}}))}function w(n,t,o,r,u,c,F,N){var L,W,q,I=o.props,O=t.props,R=t.type,$=0;if("svg"===R&&(u=!0),null!=c)for(;$<c.length;$++)if((L=c[$])&&(L===n||(R?L.localName==R:3==L.nodeType))){n=L,c[$]=null;break}if(null==n){if(null===R)return document.createTextNode(O);n=u?document.createElementNS("http://www.w3.org/2000/svg",R):document.createElement(R,O.is&&O),c=null,N=!1}if(null===R)I===O||N&&n.data===O||(n.data=O);else{if(c=c&&e.call(n.childNodes),W=(I=o.props||i).dangerouslySetInnerHTML,q=O.dangerouslySetInnerHTML,!N){if(null!=c)for(I={},$=0;$<n.attributes.length;$++)I[n.attributes[$].name]=n.attributes[$].value;(q||W)&&(q&&(W&&q.__html==W.__html||q.__html===n.innerHTML)||(n.innerHTML=q&&q.__html||""))}if(function(e,n,t,o,r){var u;for(u in t)"children"===u||"key"===u||u in n||H(e,u,null,t[u],o);for(u in n)r&&"function"!=typeof n[u]||"children"===u||"key"===u||"value"===u||"checked"===u||t[u]===n[u]||H(e,u,n[u],t[u],o)}(n,O,I,u,N),q)t.__k=[];else if($=t.props.children,k(n,Array.isArray($)?$:[$],t,o,r,u&&"foreignObject"!==R,c,F,c?c[0]:o.__k&&v(o,0),N),null!=c)for($=c.length;$--;)null!=c[$]&&f(c[$]);N||("value"in O&&void 0!==($=O.value)&&($!==n.value||"progress"===R&&!$)&&H(n,"value",$,I.value,!1),"checked"in O&&void 0!==($=O.checked)&&$!==n.checked&&H(n,"checked",$,I.checked,!1))}return n}function T(e,t,o){try{"function"==typeof e?e(t):e.current=t}catch(e){n.__e(e,o)}}function U(e,t,o){var r,u;if(n.unmount&&n.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||T(r,null,t)),null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){n.__e(e,t)}r.base=r.__P=null}if(r=e.__k)for(u=0;u<r.length;u++)r[u]&&U(r[u],t,"function"!=typeof e.type);o||null==e.__e||f(e.__e),e.__e=e.__d=void 0}function A(e,n,t){return this.constructor(e,t)}function M(t,o,r){var u,c,F;n.__&&n.__(t,o),c=(u="function"==typeof r)?null:r&&r.__k||o.__k,F=[],P(o,t=(!u&&r||o).__k=a(h,null,[t]),c||i,i,void 0!==o.ownerSVGElement,!u&&r?[r]:c?null:o.firstChild?e.call(o.childNodes):null,F,!u&&r?r:c?c.__e:o.firstChild,u),D(F,t)}e=c.slice,n={__e:function(e,n){for(var t,o,r;n=n.__;)if((t=n.__c)&&!t.__)try{if((o=t.constructor)&&null!=o.getDerivedStateFromError&&(t.setState(o.getDerivedStateFromError(e)),r=t.__d),null!=t.componentDidCatch&&(t.componentDidCatch(e),r=t.__d),r)return t.__E=t}catch(n){e=n}throw e}},t=0,d.prototype.setState=function(e,n){var t;t=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=s({},this.state),"function"==typeof e&&(e=e(s({},t),this.props)),e&&s(t,e),null!=e&&this.__v&&(n&&this.__h.push(n),m(this))},d.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),m(this))},d.prototype.render=h,o=[],r="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,g.__r=0;var N,L=[],W=n.__b,q=n.__r,I=n.diffed,O=n.__c,R=n.unmount;function te(){L.forEach((function(e){if(e.__P)try{e.__H.__h.forEach(re),e.__H.__h.forEach(ue),e.__H.__h=[]}catch(t){e.__H.__h=[],n.__e(t,e.__v)}})),L=[]}n.__b=function(e){W&&W(e)},n.__r=function(e){q&&q(e);var n=e.__c.__H;n&&(n.__h.forEach(re),n.__h.forEach(ue),n.__h=[])},n.diffed=function(e){I&&I(e);var t=e.__c;t&&t.__H&&t.__H.__h.length&&(1!==L.push(t)&&N===n.requestAnimationFrame||((N=n.requestAnimationFrame)||function(e){var n,_=function(){clearTimeout(t),$&&cancelAnimationFrame(n),setTimeout(e)},t=setTimeout(_,100);$&&(n=requestAnimationFrame(_))})(te))},n.__c=function(e,t){t.some((function(e){try{e.__h.forEach(re),e.__h=e.__h.filter((function(e){return!e.__||ue(e)}))}catch(o){t.some((function(e){e.__h&&(e.__h=[])})),t=[],n.__e(o,e.__v)}})),O&&O(e,t)},n.unmount=function(e){R&&R(e);var t=e.__c;if(t&&t.__H)try{t.__H.__.forEach(re)}catch(e){n.__e(e,t.__v)}};var $="function"==typeof requestAnimationFrame;function re(e){"function"==typeof e.__c&&e.__c()}function ue(e){e.__c=e.__()}var ce=function(e,n,t,o){var r;n[0]=0;for(var u=1;u<n.length;u++){var i=n[u++],c=n[u]?(n[0]|=i?1:2,t[n[u++]]):n[++u];3===i?o[0]=c:4===i?o[1]=Object.assign(o[1]||{},c):5===i?(o[1]=o[1]||{})[n[++u]]=c:6===i?o[1][n[++u]]+=c+"":i?(r=e.apply(c,ce(e,c,t,["",null])),o.push(r),c[0]?n[0]|=2:(n[u-2]=0,n[u]=r)):o.push(c)}return o},B=new Map,j=function(e){var n=B.get(this);return n||(n=new Map,B.set(this,n)),(n=ce(this,n.get(e)||(n.set(e,n=function(e){for(var n,t,o=1,r="",u="",i=[0],l=function(e){1===o&&(e||(r=r.replace(/^\s*\n\s*|\s*\n\s*$/g,"")))?i.push(0,e,r):3===o&&(e||r)?(i.push(3,e,r),o=2):2===o&&"..."===r&&e?i.push(4,e,0):2===o&&r&&!e?i.push(5,0,!0,r):o>=5&&((r||!e&&5===o)&&(i.push(o,0,r,t),o=6),e&&(i.push(o,e,0,t),o=6)),r=""},c=0;c<e.length;c++){c&&(1===o&&l(),l(c));for(var F=0;F<e[c].length;F++)n=e[c][F],1===o?"<"===n?(l(),i=[i],o=3):r+=n:4===o?"--"===r&&">"===n?(o=1,r=""):r=n+r[0]:u?n===u?u="":r+=n:'"'===n||"'"===n?u=n:">"===n?(l(),o=1):o&&("="===n?(o=5,t=r,r=""):"/"===n&&(o<5||">"===e[c][F+1])?(l(),3===o&&(i=i[0]),o=i,(i=i[0]).push(2,0,o),o=0):" "===n||"\t"===n||"\n"===n||"\r"===n?(l(),o=2):r+=n),3===o&&"!--"===r&&(o=4,i=i[0])}return l(),i}(e)),n),arguments,[])).length>1?n:n[0]}.bind(a);export{j as html,M as renderer};
//# sourceMappingURL=htm-preact.mjs.map
var htm=function(e){const t=arguments,n=this;let l,r,i=1,s="",d="",c=[0];const commit=e=>{1===i&&(e||(s=s.replace(/^\s*\n\s*|\s*\n\s*$/g,"")))?c.push(e?t[e]:s):3===i&&(e||s)?(c[1]=e?t[e]:s,i=2):2===i&&"..."===s&&e?c[2]=Object.assign(c[2]||{},t[e]):2===i&&s&&!e?(c[2]=c[2]||{})[s]=!0:i>=5&&(5===i?((c[2]=c[2]||{})[r]=e?s?s+t[e]:t[e]:s,i=6):(e||s)&&(c[2][r]+=e?s+t[e]:s)),s=""};for(let t=0;t<e.length;t++){t&&(1===i&&commit(),commit(t));for(let o=0;o<e[t].length;o++)l=e[t][o],1===i?"<"===l?(commit(),c=[c,"",null],i=3):s+=l:4===i?"--"===s&&">"===l?(i=1,s=""):s=l+s[0]:d?l===d?d="":s+=l:'"'===l||"'"===l?d=l:">"===l?(commit(),i=1):i&&("="===l?(i=5,r=s,s=""):"/"===l&&(i<5||">"===e[t][o+1])?(commit(),3===i&&(c=c[0]),i=c,(c=c[0]).push(n.apply(null,i.slice(1))),i=0):" "===l||"\t"===l||"\n"===l||"\r"===l?(commit(),i=2):s+=l),3===i&&"!--"===s&&(i=4,c=c[0])}return commit(),c.length>2?c.slice(1):c[1]};const e=htm.bind(((e,t,...n)=>{let l=null,r=!1;["svg","use","symbol","path","g","defs","title"].indexOf(e)>-1?(l=document.createElementNS("http://www.w3.org/2000/svg",e),r=!0):l=document.createElement(e);for(const e in t)if("on"===e.slice(0,2)){const n=e.slice(2),r=t[e];if(null==r)continue;l.addEventListener(n,r)}else if(["disabled","selected","checked"].indexOf(e)>-1)t[e]&&l.setAttribute(e,e);else if("xlinkHref"===e&&r)t[e]&&l.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",t[e]);else if("href"===e&&r)t[e]&&l.setAttributeNS("http://www.w3.org/1999/xlink","href",t[e]);else{if(null==t[e])continue;l.setAttribute(e,t[e])}if(0===n.length)return l;return n.flat(1).forEach((e=>{e instanceof Node?l.appendChild(e):l.appendChild(document.createTextNode(e))})),null==e?l.children:l}));function renderer(e,t){for(;t.firstChild;)t.removeChild(t.firstChild);Array.isArray(e)?e.forEach((e=>t.appendChild(e))):t.appendChild(e)}export{e as html,renderer};
//# sourceMappingURL=htm.mjs.map

@@ -7,1 +7,2 @@ /**

var t;const e=window,i=e.trustedTypes,s=i?i.createPolicy("lit-html",{createHTML:t=>t}):void 0,n=`lit$${(Math.random()+"").slice(9)}$`,o="?"+n,l=`<${o}>`,h=document,r=(t="")=>h.createComment(t),d=t=>null===t||"object"!=typeof t&&"function"!=typeof t,$=Array.isArray,a=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,A=/-->/g,c=/>/g,u=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),_=/'/g,v=/"/g,p=/^(?:script|style|textarea|title)$/i,g=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),m=Symbol.for("lit-noChange"),f=Symbol.for("lit-nothing"),y=new WeakMap,H=h.createTreeWalker(h,129,null,!1),E=(t,e)=>{const i=t.length-1,o=[];let h,$=2===e?"<svg>":"",g=a;for(let e=0;e<i;e++){const i=t[e];let s,m,f=-1,y=0;for(;y<i.length&&(g.lastIndex=y,m=g.exec(i),null!==m);)y=g.lastIndex,g===a?"!--"===m[1]?g=A:void 0!==m[1]?g=c:void 0!==m[2]?(p.test(m[2])&&(h=RegExp("</"+m[2],"g")),g=u):void 0!==m[3]&&(g=u):g===u?">"===m[0]?(g=null!=h?h:a,f=-1):void 0===m[1]?f=-2:(f=g.lastIndex-m[2].length,s=m[1],g=void 0===m[3]?u:'"'===m[3]?v:_):g===v||g===_?g=u:g===A||g===c?g=a:(g=u,h=void 0);const H=g===u&&t[e+1].startsWith("/>")?" ":"";$+=g===a?i+l:f>=0?(o.push(s),i.slice(0,f)+"$lit$"+i.slice(f)+n+H):i+n+(-2===f?(o.push(void 0),e):H)}const m=$+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==s?s.createHTML(m):m,o]};class x{constructor({strings:t,_$litType$:e},s){let l;this.parts=[];let h=0,$=0;const a=t.length-1,A=this.parts,[c,u]=E(t,e);if(this.el=x.createElement(c,s),H.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(l=H.nextNode())&&A.length<a;){if(1===l.nodeType){if(l.hasAttributes()){const t=[];for(const e of l.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(n)){const i=u[$++];if(t.push(e),void 0!==i){const t=l.getAttribute(i.toLowerCase()+"$lit$").split(n),e=/([.?@])?(.*)/.exec(i);A.push({type:1,index:h,name:e[2],strings:t,ctor:"."===e[1]?C:"?"===e[1]?M:"@"===e[1]?S:b})}else A.push({type:6,index:h})}for(const e of t)l.removeAttribute(e)}if(p.test(l.tagName)){const t=l.textContent.split(n),e=t.length-1;if(e>0){l.textContent=i?i.emptyScript:"";for(let i=0;i<e;i++)l.append(t[i],r()),H.nextNode(),A.push({type:2,index:++h});l.append(t[e],r())}}}else if(8===l.nodeType)if(l.data===o)A.push({type:2,index:h});else{let t=-1;for(;-1!==(t=l.data.indexOf(n,t+1));)A.push({type:7,index:h}),t+=n.length-1}h++}}static createElement(t,e){const i=h.createElement("template");return i.innerHTML=t,i}}function P(t,e,i=t,s){var n,o,l,h;if(e===m)return e;let $=void 0!==s?null===(n=i._$Co)||void 0===n?void 0:n[s]:i._$Cl;const a=d(e)?void 0:e._$litDirective$;return(null==$?void 0:$.constructor)!==a&&(null===(o=null==$?void 0:$._$AO)||void 0===o||o.call($,!1),void 0===a?$=void 0:($=new a(t),$._$AT(t,i,s)),void 0!==s?(null!==(l=(h=i)._$Co)&&void 0!==l?l:h._$Co=[])[s]=$:i._$Cl=$),void 0!==$&&(e=P(t,$._$AS(t,e.values),$,s)),e}class N{constructor(t,e){this.u=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(t){var e;const{el:{content:i},parts:s}=this._$AD,n=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:h).importNode(i,!0);H.currentNode=n;let o=H.nextNode(),l=0,$=0,a=s[0];for(;void 0!==a;){if(l===a.index){let e;2===a.type?e=new T(o,o.nextSibling,this,t):1===a.type?e=new a.ctor(o,a.name,a.strings,this,t):6===a.type&&(e=new I(o,this,t)),this.u.push(e),a=s[++$]}l!==(null==a?void 0:a.index)&&(o=H.nextNode(),l++)}return n}p(t){let e=0;for(const i of this.u)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class T{constructor(t,e,i,s){var n;this.type=2,this._$AH=f,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=s,this._$Cm=null===(n=null==s?void 0:s.isConnected)||void 0===n||n}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cm}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=P(this,t,e),d(t)?t===f||null==t||""===t?(this._$AH!==f&&this._$AR(),this._$AH=f):t!==this._$AH&&t!==m&&this.g(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>$(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.k(t):this.g(t)}O(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}g(t){this._$AH!==f&&d(this._$AH)?this._$AA.nextSibling.data=t:this.T(h.createTextNode(t)),this._$AH=t}$(t){var e;const{values:i,_$litType$:s}=t,n="number"==typeof s?this._$AC(t):(void 0===s.el&&(s.el=x.createElement(s.h,this.options)),s);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===n)this._$AH.p(i);else{const t=new N(n,this),e=t.v(this.options);t.p(i),this.T(e),this._$AH=t}}_$AC(t){let e=y.get(t.strings);return void 0===e&&y.set(t.strings,e=new x(t)),e}k(t){$(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,s=0;for(const n of t)s===e.length?e.push(i=new T(this.O(r()),this.O(r()),this,this.options)):i=e[s],i._$AI(n),s++;s<e.length&&(this._$AR(i&&i._$AB.nextSibling,s),e.length=s)}_$AR(t=this._$AA.nextSibling,e){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cm=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class b{constructor(t,e,i,s,n){this.type=1,this._$AH=f,this._$AN=void 0,this.element=t,this.name=e,this._$AM=s,this.options=n,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=f}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,s){const n=this.strings;let o=!1;if(void 0===n)t=P(this,t,e,0),o=!d(t)||t!==this._$AH&&t!==m,o&&(this._$AH=t);else{const s=t;let l,h;for(t=n[0],l=0;l<n.length-1;l++)h=P(this,s[i+l],e,l),h===m&&(h=this._$AH[l]),o||(o=!d(h)||h!==this._$AH[l]),h===f?t=f:t!==f&&(t+=(null!=h?h:"")+n[l+1]),this._$AH[l]=h}o&&!s&&this.j(t)}j(t){t===f?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class C extends b{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===f?void 0:t}}const w=i?i.emptyScript:"";class M extends b{constructor(){super(...arguments),this.type=4}j(t){t&&t!==f?this.element.setAttribute(this.name,w):this.element.removeAttribute(this.name)}}class S extends b{constructor(t,e,i,s,n){super(t,e,i,s,n),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=P(this,t,e,0))&&void 0!==i?i:f)===m)return;const s=this._$AH,n=t===f&&s!==f||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,o=t!==f&&(s===f||n);n&&this.element.removeEventListener(this.name,this,s),o&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==i?i:this.element,t):this._$AH.handleEvent(t)}}class I{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){P(this,t)}}const B=e.litHtmlPolyfillSupport;null==B||B(x,T),(null!==(t=e.litHtmlVersions)&&void 0!==t?t:e.litHtmlVersions=[]).push("2.4.0");const Z=(t,e,i)=>{var s,n;const o=null!==(s=null==i?void 0:i.renderBefore)&&void 0!==s?s:e;let l=o._$litPart$;if(void 0===l){const t=null!==(n=null==i?void 0:i.renderBefore)&&void 0!==n?n:null;o._$litPart$=l=new T(e.insertBefore(r(),t),t,void 0,null!=i?i:{})}return l._$AI(t),l};export{g as html,Z as renderer};
//# sourceMappingURL=lit-html.mjs.map
class e extends Map{set(e,t){return super.set(e,t),t}}class t extends WeakMap{set(e,t){return super.set(e,t),t}}
/*! (c) Andrea Giammarchi - ISC */const n=/^(?:area|base|br|col|embed|hr|img|input|keygen|link|menuitem|meta|param|source|track|wbr)$/i,r=/<([a-z]+[a-z0-9:._-]*)([^>]*?)(\/?)>/g,s=/([^\s\\>"'=]+)\s*=\s*(['"]?)\x01/g,l=/[\x01\x02]/g;const diffable=(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,{isArray:o}=Array,getValue=e=>null==e?e:e.valueOf(),event=(e,t)=>{let n,r,s=t.slice(2);return!(t in e)&&(r=t.toLowerCase())in e&&(s=r.slice(2)),t=>{const r=o(t)?t:[t,!1];n!==r[0]&&(n&&e.removeEventListener(s,n,r[1]),(n=r[0])&&e.addEventListener(s,n,r[1]))}};const{isArray:a,prototype:i}=Array,{indexOf:c}=i,{createDocumentFragment:u,createElement:d,createElementNS:p,createTextNode:f,createTreeWalker:h,importNode:m}=new Proxy(document,{get:(e,t)=>e[t].bind(e)});let g;const createContent=(e,t)=>t?(e=>{g||(g=p("http://www.w3.org/2000/svg","svg")),g.innerHTML=e;const t=u();return t.append(...g.childNodes),t})(e):(e=>{const t=d("template");return t.innerHTML=e,t.content})(e),reducePath=({childNodes:e},t)=>e[t],diff=(e,t,n)=>((e,t,n,r,s)=>{const l=n.length;let o=t.length,a=l,i=0,c=0,u=null;for(;i<o||c<a;)if(o===i){const t=a<l?c?r(n[c-1],-0).nextSibling:r(n[a-c],0):s;for(;c<a;)e.insertBefore(r(n[c++],1),t)}else if(a===c)for(;i<o;)u&&u.has(t[i])||e.removeChild(r(t[i],-1)),i++;else if(t[i]===n[c])i++,c++;else if(t[o-1]===n[a-1])o--,a--;else if(t[i]===n[a-1]&&n[c]===t[o-1]){const s=r(t[--o],-1).nextSibling;e.insertBefore(r(n[c++],1),r(t[i++],-1).nextSibling),e.insertBefore(r(n[--a],1),s),t[o]=n[a]}else{if(!u){u=new Map;let e=c;for(;e<a;)u.set(n[e],e++)}if(u.has(t[i])){const s=u.get(t[i]);if(c<s&&s<a){let l=i,d=1;for(;++l<o&&l<a&&u.get(t[l])===s+d;)d++;if(d>s-c){const l=r(t[i],0);for(;c<s;)e.insertBefore(r(n[c++],1),l)}else e.replaceChild(r(n[c++],1),r(t[i++],-1))}else i++}else e.removeChild(r(t[i++],-1))}return n})(e.parentNode,t,n,diffable,e),handleAttribute=(e,t)=>{switch(t[0]){case"?":return((e,t,n)=>r=>{const s=!!getValue(r);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 r=t[n];null==r?delete e[n]:e[n]=r}})(e):n=>{e[t]=n})(e,t.slice(1));case"@":return event(e,"on"+t.slice(1));case"o":if("n"===t[1])return event(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 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=>{const l=getValue(t);n!==l&&(null==(n=l)?r||(e.removeAttributeNode(s),r=!0):(s.value=l,r&&(e.setAttributeNodeNS(s),r=!1)))}})(e,t)};function handlers(e){const{type:t,path:n}=e,r=n.reduceRight(reducePath,this);return"node"===t?(e=>{let t,n,r=[];const anyContent=s=>{switch(typeof s){case"string":case"number":case"boolean":t!==s&&(t=s,n||(n=f("")),n.data=s,r=diff(e,r,[n]));break;case"object":case"undefined":if(null==s){t!=s&&(t=s,r=diff(e,r,[]));break}if(a(s)){t=s,0===s.length?r=diff(e,r,[]):"object"==typeof s[0]?r=diff(e,r,s):anyContent(String(s));break}if(t!==s)if("ELEMENT_NODE"in s)t=s,r=diff(e,r,11===s.nodeType?[...s.childNodes]:[s]);else{const e=s.valueOf();e!==s&&anyContent(e)}break;case"function":anyContent(s(e))}};return anyContent})(r):"attr"===t?handleAttribute(r,e.name):(e=>{let t;return n=>{const r=getValue(n);t!=r&&(t=r,e.textContent=null==r?"":r)}})(r)}const createPath=e=>{const t=[];let{parentNode:n}=e;for(;n;)t.push(c.call(n.childNodes,e)),e=n,({parentNode:n}=e);return t},y=new t,b=/^(?:textarea|script|style|title|plaintext|xmp)$/,mapTemplate=(e,t)=>{const o="svg"===e,a=((e,t,o)=>{let a=0;return e.join("").trim().replace(r,((e,t,r,l)=>{let a=t+r.replace(s,"=$2$1").trimEnd();return l.length&&(a+=o||n.test(t)?" /":"></"+t),"<"+a+">"})).replace(l,(e=>""===e?"\x3c!--"+t+a+++"--\x3e":t+a++))})(t,"isµ",o),i=createContent(a,o),c=h(i,129),u=[],d=t.length-1;let p=0,f=`isµ${p}`;for(;p<d;){const e=c.nextNode();if(!e)throw`bad template: ${a}`;if(8===e.nodeType)e.data===f&&(u.push({type:"node",path:createPath(e)}),f="isµ"+ ++p);else{for(;e.hasAttribute(f);)u.push({type:"attr",path:createPath(e),name:e.getAttribute(f)}),e.removeAttribute(f),f="isµ"+ ++p;b.test(e.localName)&&e.textContent.trim()===`\x3c!--${f}--\x3e`&&(e.textContent="",u.push({type:"text",path:createPath(e)}),f="isµ"+ ++p)}}return{content:i,nodes:u}},mapUpdates=(e,t)=>{const{content:n,nodes:r}=y.get(t)||y.set(t,mapTemplate(e,t)),s=m(n,!0);return{content:s,updates:r.map(handlers,s)}},unroll=(e,{type:t,template:n,values:r})=>{const s=unrollValues(e,r);let{entry:l}=e;l&&l.template===n&&l.type===t||(e.entry=l=((e,t)=>{const{content:n,updates:r}=mapUpdates(e,t);return{type:e,template:t,content:n,updates:r,wire:null}})(t,n));const{content:o,updates:a,wire:i}=l;for(let e=0;e<s;e++)a[e](r[e]);return i||(l.wire=(e=>{const{firstChild:t,lastChild:n}=e;if(t===n)return n||e;const{childNodes:r}=e,s=[...r];return{ELEMENT_NODE:1,nodeType:111,firstChild:t,lastChild:n,valueOf:()=>(r.length!==s.length&&e.append(...s),e)}})(o))},unrollValues=({stack:e},t)=>{const{length:n}=t;for(let r=0;r<n;r++){const n=t[r];n instanceof w?t[r]=unroll(e[r]||(e[r]={stack:[],entry:null,wire:null}),n):a(n)?unrollValues(e[r]||(e[r]={stack:[],entry:null,wire:null}),n):e[r]=null}return n<e.length&&e.splice(n),n};class w{constructor(e,t,n){this.type=e,this.template=t,this.values=n}}const tag=n=>{const r=new t;return Object.assign(((e,...t)=>new w(n,e,t)),{for(t,s){const l=r.get(t)||r.set(t,new e);return l.get(s)||l.set(s,(e=>(t,...r)=>unroll(e,{type:n,template:t,values:r}))({stack:[],entry:null,wire:null}))},node:(e,...t)=>unroll({stack:[],entry:null,wire:null},new w(n,e,t)).valueOf()})},x=new t,v=tag("html");function renderer(e,t){((e,t)=>{const n="function"==typeof t?t():t,r=x.get(e)||x.set(e,{stack:[],entry:null,wire:null}),s=n instanceof w?unroll(r,n):n;s!==r.wire&&(r.wire=s,e.replaceChildren(s.valueOf()))})(t,e)}tag("svg");export{v as html,renderer};
//# sourceMappingURL=uhtml.mjs.map
+6
-6
{
"name": "@ficusjs/renderers",
"version": "5.3.1",
"version": "5.4.0",
"description": "Minified ES module renderers for FicusJS",

@@ -12,7 +12,7 @@ "type": "module",

"build": "run-p build:*",
"build:htm": "rollup -i src/htm.mjs -o dist/htm.mjs -f es -p \"alias={entries:{'./constants.mjs':'./constants-mini.mjs'}}\" -p \"commonjs={}\" -p \"node-resolve={}\" -p \"terser={mangle: { keep_fnames: true, toplevel: true, module: true }}\" -p \"filesize={}\"",
"build:htm-preact": "rollup -i src/htm-preact.mjs -o dist/htm-preact.mjs -f es -p \"node-resolve={}\" -p \"terser={mangle: { keep_fnames: true, toplevel: true, module: true }}\" -p \"filesize={}\"",
"build:uhtml": "rollup -i src/uhtml.mjs -o dist/uhtml.mjs -f es -p \"node-resolve={}\" -p \"terser={mangle: { keep_fnames: true, toplevel: true, module: true }}\" -p \"filesize={}\"",
"build:lit-html": "rollup -i src/lit-html.mjs -o dist/lit-html.mjs -f es -p \"node-resolve={}\" -p \"terser={mangle: { keep_fnames: true, toplevel: true, module: true }}\" -p \"filesize={}\"",
"build:css": "rollup -i src/css.mjs -o dist/css.mjs -f es -p \"node-resolve={}\" -p \"terser={mangle: { keep_fnames: true, toplevel: true, module: true }}\" -p \"filesize={}\"",
"build:htm": "rollup -i src/htm.mjs -o dist/htm.mjs -f es -m -p \"alias={entries:{'./constants.mjs':'./constants-mini.mjs'}}\" -p \"commonjs={}\" -p \"node-resolve={}\" -p \"terser={mangle: { keep_fnames: true, toplevel: true, module: true }}\" -p \"filesize={}\"",
"build:htm-preact": "rollup -i src/htm-preact.mjs -o dist/htm-preact.mjs -f es -m -p \"node-resolve={}\" -p \"terser={mangle: { keep_fnames: true, toplevel: true, module: true }}\" -p \"filesize={}\"",
"build:uhtml": "rollup -i src/uhtml.mjs -o dist/uhtml.mjs -f es -m -p \"node-resolve={}\" -p \"terser={mangle: { keep_fnames: true, toplevel: true, module: true }}\" -p \"filesize={}\"",
"build:lit-html": "rollup -i src/lit-html.mjs -o dist/lit-html.mjs -f es -m -p \"node-resolve={}\" -p \"terser={mangle: { keep_fnames: true, toplevel: true, module: true }}\" -p \"filesize={}\"",
"build:css": "rollup -i src/css.mjs -o dist/css.mjs -f es -m -p \"node-resolve={}\" -p \"terser={mangle: { keep_fnames: true, toplevel: true, module: true }}\" -p \"filesize={}\"",
"build:jsx-dom": "cp src/jsx-dom.mjs dist/jsx-dom.mjs",

@@ -19,0 +19,0 @@ "cy:open": "cypress open",