From df7b1c7bb1244a0f193adef7dfb4baa4b7ac00c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sampo=20Kivist=C3=B6?= Date: Tue, 28 Jan 2020 20:52:50 +0200 Subject: [PATCH] v7.4.0 --- docs/uibench-normalization/dist/bundle.js | 2 +- docs/uibench-reactlike/dist/bundle.js | 2 +- docs/uibench/dist/bundle.js | 2 +- lerna.json | 2 +- packages/inferno-clone-vnode/package.json | 8 ++++---- packages/inferno-compat/package.json | 20 ++++++++++---------- packages/inferno-component/package.json | 4 ++-- packages/inferno-create-class/package.json | 8 ++++---- packages/inferno-create-element/package.json | 8 ++++---- packages/inferno-devtools/package.json | 10 +++++----- packages/inferno-extras/package.json | 6 +++--- packages/inferno-hydrate/package.json | 12 ++++++------ packages/inferno-hyperscript/package.json | 8 ++++---- packages/inferno-mobx/package.json | 12 ++++++------ packages/inferno-redux/package.json | 10 +++++----- packages/inferno-router/package.json | 6 +++--- packages/inferno-server/package.json | 14 +++++++------- packages/inferno-shared/package.json | 2 +- packages/inferno-test-utils/package.json | 8 ++++---- packages/inferno-utils/package.json | 6 +++--- packages/inferno-vnode-flags/package.json | 2 +- packages/inferno/package.json | 8 ++++---- 22 files changed, 80 insertions(+), 80 deletions(-) diff --git a/docs/uibench-normalization/dist/bundle.js b/docs/uibench-normalization/dist/bundle.js index e19f9cb0c..250b59f72 100644 --- a/docs/uibench-normalization/dist/bundle.js +++ b/docs/uibench-normalization/dist/bundle.js @@ -1 +1 @@ -!function(){"use strict";var e=Array.isArray;function n(e){var n=typeof e;return"string"===n||"number"===n}function t(e){return void 0===e||null===e}function r(e){return null===e||!1===e||!0===e||void 0===e}function l(e){return"function"===typeof e}function o(e){return"string"===typeof e}function i(e){return null===e}function a(e,n){var t={};if(e)for(var r in e)t[r]=e[r];if(n)for(var l in n)t[l]=n[l];return t}function u(e,n){if(l(n))return{data:e,event:n};return null}function c(e){return!i(e)&&"object"===typeof e}var f={};function s(e){return e.substr(2).toLowerCase()}function d(e,n){e.appendChild(n)}function p(e,n,t){i(t)?d(e,n):e.insertBefore(n,t)}function v(e,n){e.removeChild(n)}function h(e,n,t){var r=e.children;if(4&t)return r.$LI;if(8192&t)return 2===e.childFlags?r:r[n?0:r.length-1];return r}function m(e,n){for(var t;e;){if(2033&(t=e.flags))return e.dom;e=h(e,n,t)}return null}function g(e,n){do{var t=e.flags;if(2033&t)return void v(n,e.dom);var r=e.children;if(4&t&&(e=r.$LI),8&t&&(e=r),8192&t){if(2!==e.childFlags){for(var l=0,o=r.length;l0,v=i(d),h=o(d)&&"$"===d[0];p||v||h?(a=a||l.slice(0,f),(p||h)&&(s=N(s)),(v||h)&&(s.key="$"+f),a.push(s)):a&&a.push(s),s.flags|=65536}}u=0===(a=a||l).length?1:8}else(a=l).flags|=65536,81920&l.flags&&(a=N(l)),u=2;t.children=a,t.childFlags=u}(v,v.children),v}function x(e,n,r,l,o){var i=new P(1,null,null,e=function(e,n){if(12&e)return e;if(n.prototype&&n.prototype.render)return 4;if(n.render)return 32776;return 8}(e,n),l,function(e,n,r){var l=(32768&e?n.render:n).defaultProps;if(t(l))return r;if(t(r))return a(l,null);return $(r,l)}(e,n,r),function(e,n,r){if(4&e)return r;var l=(32768&e?n.render:n).defaultHooks;if(t(l))return r;if(t(r))return l;return $(r,l)}(e,n,o),n);return k.createVNode&&k.createVNode(i),i}function U(e,n){return new P(1,t(e)||!0===e||!1===e?"":e,null,16,n,null,null,null)}function V(e,n,t){var r=S(8192,8192,null,e,n,null,t,null);switch(r.childFlags){case 1:r.children=L(),r.childFlags=2;break;case 16:r.children=[U(e)],r.childFlags=4}return r}function N(e){var n=-16385&e.flags,t=e.props;if(14&n&&!i(t)){var r=t;for(var l in t={},r)t[l]=r[l]}if(0===(8192&n))return new P(e.childFlags,e.children,e.className,n,e.key,t,e.ref,e.type);return function(e){var n,t=e.children,r=e.childFlags;if(2===r)n=N(t);else if(12&r){n=[];for(var l=0,o=t.length;l-1&&r.options[a]&&(u=r.options[a].value),l&&t(u)&&(u=n.defaultValue),function n(r,l){if("option"===r.type)!function(n,r){var l=n.props||f,o=n.dom;o.value=l.value,l.value===r||e(r)&&-1!==r.indexOf(l.value)?o.selected=!0:t(r)&&t(l.selected)||(o.selected=l.selected||!1)}(r,l);else{var o=r.children,i=r.flags;if(4&i)n(o.$LI,l);else if(8&i)n(o,l);else if(2===r.childFlags)n(o,l);else if(12&r.childFlags)for(var a=0,u=o.length;a0);if(t(f)||""===f||(l?v.setAttribute("class",f):v.className=f),16===d)C(v,s);else if(1!==d){var h=l&&"foreignObject"!==e.type;2===d?(16384&s.flags&&(e.children=s=N(s)),ke(s,v,r,h,null,a)):8!==d&&4!==d||we(s,v,r,h,null,a)}i(n)||p(n,v,o),i(c)||function(e,n,t,r,l){var o=!1,i=(448&n)>0;for(var a in i&&(o=fe(t))&&function(e,n,t){64&e?function(e,n){Q(n.type)?(J(e,"change",Z),J(e,"click",ee)):J(e,"input",Y)}(n,t):256&e?function(e){J(e,"change",te)}(n):128&e&&function(e,n){J(e,"input",ie),n.onChange&&J(e,"change",ae)}(n,t)}(n,r,t),t)ye(a,null,t[a],r,l,o,null);i&&ce(n,e,r,t,!0,o)}(e,u,c,v,l),de(e.ref,v,a)}(e,n,r,o,a,u):4&c?function(e,n,t,r,o,a){var u=function(e,n,t,r,o,a){var u=new n(t,r),c=u.$N=Boolean(n.getDerivedStateFromProps||u.getSnapshotBeforeUpdate);if(u.$SVG=o,u.$L=a,e.children=u,u.$BS=!1,u.context=r,u.props===f&&(u.props=t),c)u.state=b(u,t,u.state);else if(l(u.componentWillMount)){u.$BR=!0,u.componentWillMount();var s=u.$PS;if(!i(s)){var d=u.state;if(i(d))u.state=s;else for(var p in s)d[p]=s[p];u.$PS=null}u.$BR=!1}return u.$LI=be(u,t,r),u}(e,e.type,e.props||f,t,r,a);ke(u.$LI,n,u.$CX,r,o,a),function(e,n,t){de(e,n,t),l(n.componentDidMount)&&t.push(function(e){return function(){e.componentDidMount()}}(n))}(e.ref,u,a)}(e,n,r,o,a,u):8&c?(function(e,n,t,r,l,o){ke(e.children=I(function(e,n){return 32768&e.flags?e.type.render(e.props||f,e.ref,n):e.type(e.props||f,n)}(e,t)),n,t,r,l,o)}(e,n,r,o,a,u),function(e,n){var r=e.ref;t(r)||(F(r.onComponentWillMount,e.props||f),l(r.onComponentDidMount)&&n.push(function(e,n){return function(){e.onComponentDidMount(m(n,!0),n.props||f)}}(r,e)))}(e,u)):512&c||16&c?Ce(e,n,a):8192&c?function(e,n,t,r,l,o){var i=e.children,a=e.childFlags;12&a&&0===i.length&&(a=e.childFlags=2,i=e.children=L()),2===a?ke(i,t,l,r,l,o):we(i,t,n,r,l,o)}(e,r,n,o,a,u):1024&c&&function(e,n,t,r,l){ke(e.children,e.ref,n,!1,null,l);var o=L();Ce(o,t,r),e.dom=o.dom}(e,r,n,a,u)}function Ce(e,n,t){var r=e.dom=document.createTextNode(e.children);i(n)||p(n,r,t)}function we(e,n,t,r,l,o){for(var i=0;i0,c!==s){var v=c||f;if((a=s||f)!==f)for(var h in(d=(448&o)>0)&&(p=fe(a)),a){var m=v[h],g=a[h];m!==g&&ye(h,m,g,u,l,p,e)}if(v!==f)for(var y in v)t(a[y])&&!t(v[y])&&ye(y,v[y],null,u,l,p,e)}var b=n.children,k=n.className;e.className!==k&&(t(k)?u.removeAttribute("class"):l?u.setAttribute("class",k):u.className=k),4096&o?function(e,n){e.textContent!==n&&(e.textContent=n)}(u,b):Fe(e.childFlags,n.childFlags,e.children,b,u,r,l&&"foreignObject"!==n.type,null,e,i),d&&ce(o,n,u,a,!1,p);var C=n.ref,w=e.ref;w!==C&&(se(w),de(C,u,i))}(e,n,u,c,h,p):4&h?function(e,n,t,r,o,u,c){var s=n.children=e.children;if(i(s))return;s.$L=c;var d=n.props||f,p=n.ref,v=e.ref,h=s.state;if(!s.$N){if(l(s.componentWillReceiveProps)){if(s.$BR=!0,s.componentWillReceiveProps(d,r),s.$UN)return;s.$BR=!1}i(s.$PS)||(h=a(h,s.$PS),s.$PS=null)}(function(e,n,t,r,o,i,u,c,f){var s=e.state,d=e.props,p=Boolean(e.$N),v=l(e.shouldComponentUpdate);if(p&&(n=b(e,t,n!==s?a(s,n):n)),!v||v&&e.shouldComponentUpdate(t,n,o)){!p&&l(e.componentWillUpdate)&&e.componentWillUpdate(t,n,o),e.props=t,e.state=n,e.context=o;var h=null,m=be(e,t,o);p&&l(e.getSnapshotBeforeUpdate)&&(h=e.getSnapshotBeforeUpdate(d,s)),$e(e.$LI,m,r,e.$CX,i,c,f),e.$LI=m,l(e.componentDidUpdate)&&function(e,n,t,r,l){l.push((function(){e.componentDidUpdate(n,t,r)}))}(e,d,s,h,f)}else e.props=t,e.state=n,e.context=o})(s,h,d,t,r,o,0,u,c),v!==p&&(se(v),de(p,s,c))}(e,n,o,u,c,s,p):8&h?function(e,n,r,o,i,a,u){var c=!0,s=n.props||f,d=n.ref,p=e.props,v=!t(d),h=e.children;if(v&&l(d.onComponentShouldUpdate)&&(c=d.onComponentShouldUpdate(p,s)),!1!==c){v&&l(d.onComponentWillUpdate)&&d.onComponentWillUpdate(p,s);var m=n.type,g=I(32768&n.flags?m.render(s,d,o):m(s,o));$e(h,g,r,o,i,a,u),n.children=g,v&&l(d.onComponentDidUpdate)&&d.onComponentDidUpdate(p,s)}else n.children=h}(e,n,o,u,c,s,p):16&h?function(e,n){var t=n.children,r=n.dom=e.dom;t!==e.children&&(r.nodeValue=t)}(e,n):512&h?n.dom=e.dom:8192&h?function(e,n,t,r,l,o){var i=e.children,a=n.children,u=e.childFlags,c=n.childFlags,f=null;12&c&&0===a.length&&(c=n.childFlags=2,a=n.children=L());var s=0!==(2&c);if(12&u){var d=i.length;(8&u&&8&c||s||!s&&a.length>d)&&(f=m(i[d-1],!1).nextSibling)}Fe(u,c,i,a,t,r,l,f,e,o)}(e,n,o,u,c,p):function(e,n,t,l){var o=e.ref,i=n.ref,a=n.children;if(Fe(e.childFlags,n.childFlags,e.children,a,o,t,!1,null,e,l),n.dom=e.dom,o!==i&&!r(a)){var u=a.dom;v(o,u),d(i,u)}}(e,n,u,p)}function Fe(e,n,t,r,l,o,i,a,u,c){switch(e){case 2:switch(n){case 2:$e(t,r,l,o,i,a,c);break;case 1:pe(t,l);break;case 16:ve(t),C(l,r);break;default:!function(e,n,t,r,l,o){ve(e),we(n,t,r,l,m(e,!0),o),g(e,t)}(t,r,l,o,i,c)}break;case 1:switch(n){case 2:ke(r,l,o,i,a,c);break;case 1:break;case 16:C(l,r);break;default:we(r,l,o,i,a,c)}break;case 16:switch(n){case 16:!function(e,n,t){e!==n&&(""!==e?t.firstChild.nodeValue=n:C(t,n))}(t,r,l);break;case 2:me(l),ke(r,l,o,i,a,c);break;case 1:me(l);break;default:me(l),we(r,l,o,i,a,c)}break;default:switch(n){case 16:he(t),C(l,r);break;case 2:ge(l,u,t),ke(r,l,o,i,a,c);break;case 1:ge(l,u,t);break;default:var f=0|t.length,s=0|r.length;0===f?s>0&&we(r,l,o,i,a,c):0===s?ge(l,u,t):8===n&&8===e?function(e,n,t,r,l,o,i,a,u,c){var f,s,d=o-1,p=i-1,v=0,h=e[v],g=n[v];e:{for(;h.key===g.key;){if(16384&g.flags&&(n[v]=g=N(g)),$e(h,g,t,r,l,a,c),e[v]=g,++v>d||v>p)break e;h=e[v],g=n[v]}for(h=e[d],g=n[p];h.key===g.key;){if(16384&g.flags&&(n[p]=g=N(g)),$e(h,g,t,r,l,a,c),e[d]=g,p--,v>--d||v>p)break e;h=e[d],g=n[p]}}if(v>d){if(v<=p)for(s=(f=p+1)p)for(;v<=d;)pe(e[v++],t);else!function(e,n,t,r,l,o,i,a,u,c,f,s,d){var p,v,h,g=0,b=a,k=a,C=o-a+1,w=i-a+1,$=new Int32Array(w+1),F=C===r,P=!1,S=0,x=0;if(l<4||(C|w)<32)for(g=b;g<=o;++g)if(p=e[g],xa?P=!0:S=a,16384&v.flags&&(n[a]=v=N(v)),$e(p,v,u,t,c,f,d),++x;break}!F&&a>i&&pe(p,u)}else F||pe(p,u);else{var U={};for(g=k;g<=i;++g)U[n[g].key]=g;for(g=b;g<=o;++g)if(p=e[g],xb;)pe(e[b++],u);$[a-k]=g+1,S>a?P=!0:S=a,16384&(v=n[a]).flags&&(n[a]=v=N(v)),$e(p,v,u,t,c,f,d),++x}else F||pe(p,u);else F||pe(p,u)}if(F)ge(u,s,e),we(n,u,t,c,f,d);else if(P){var V=function(e){var n=0,t=0,r=0,l=0,o=0,i=0,a=0,u=e.length;for(u>Pe&&(Pe=u,le=new Int32Array(u),oe=new Int32Array(u));t>1]]0&&(oe[t]=le[o-1]),le[o]=t)}o=l+1;var c=new Int32Array(o);for(i=le[o-1];o-- >0;)c[o]=i,i=oe[i],le[o]=0;return c}($);for(a=V.length-1,g=w-1;g>=0;g--)0===$[g]?(16384&(v=n[S=g+k]).flags&&(n[S]=v=N(v)),ke(v,u,t,c,(h=S+1)=0;g--)0===$[g]&&(16384&(v=n[S=g+k]).flags&&(n[S]=v=N(v)),ke(v,u,t,c,(h=S+1)i?i:o,d=0;di)for(d=s;d0&&function(e){for(var n;void 0!==(n=e.shift());)n()}(i),l(r)&&r(),l(k.renderComplete)&&k.renderComplete(a,n)}(e,n,r,o)}function xe(e){return S(1,"li","TreeLeaf",e.children,0,null,null,null)}function Ue(e,n){return e!==n}function Ve(e){for(var n=e.data,t=n.children.length,r=new Array(t),l=0;l0,v=i(d),h=o(d)&&"$"===d[0];p||v||h?(a=a||l.slice(0,f),(p||h)&&(s=N(s)),(v||h)&&(s.key="$"+f),a.push(s)):a&&a.push(s),s.flags|=65536}}u=0===(a=a||l).length?1:8}else(a=l).flags|=65536,81920&l.flags&&(a=N(l)),u=2;t.children=a,t.childFlags=u}(v,v.children),v}function x(e,n,r,l,o){var i=new P(1,null,null,e=function(e,n){if(12&e)return e;if(n.prototype&&n.prototype.render)return 4;if(n.render)return 32776;return 8}(e,n),l,function(e,n,r){var l=(32768&e?n.render:n).defaultProps;if(t(l))return r;if(t(r))return a(l,null);return $(r,l)}(e,n,r),function(e,n,r){if(4&e)return r;var l=(32768&e?n.render:n).defaultHooks;if(t(l))return r;if(t(r))return l;return $(r,l)}(e,n,o),n);return k.createVNode&&k.createVNode(i),i}function U(e,n){return new P(1,t(e)||!0===e||!1===e?"":e,null,16,n,null,null,null)}function V(e,n,t){var r=S(8192,8192,null,e,n,null,t,null);switch(r.childFlags){case 1:r.children=L(),r.childFlags=2;break;case 16:r.children=[U(e)],r.childFlags=4}return r}function N(e){var n=-16385&e.flags,t=e.props;if(14&n&&!i(t)){var r=t;for(var l in t={},r)t[l]=r[l]}if(0===(8192&n))return new P(e.childFlags,e.children,e.className,n,e.key,t,e.ref,e.type);return function(e){var n,t=e.children,r=e.childFlags;if(2===r)n=N(t);else if(12&r){n=[];for(var l=0,o=t.length;l-1&&r.options[a]&&(u=r.options[a].value),l&&t(u)&&(u=n.defaultValue),function n(r,l){if("option"===r.type)!function(n,r){var l=n.props||f,o=n.dom;o.value=l.value,l.value===r||e(r)&&-1!==r.indexOf(l.value)?o.selected=!0:t(r)&&t(l.selected)||(o.selected=l.selected||!1)}(r,l);else{var o=r.children,i=r.flags;if(4&i)n(o.$LI,l);else if(8&i)n(o,l);else if(2===r.childFlags)n(o,l);else if(12&r.childFlags)for(var a=0,u=o.length;a0);if(t(f)||""===f||(l?v.setAttribute("class",f):v.className=f),16===d)C(v,s);else if(1!==d){var h=l&&"foreignObject"!==e.type;2===d?(16384&s.flags&&(e.children=s=N(s)),ke(s,v,r,h,null,a)):8!==d&&4!==d||we(s,v,r,h,null,a)}i(n)||p(n,v,o),i(c)||function(e,n,t,r,l){var o=!1,i=(448&n)>0;for(var a in i&&(o=fe(t))&&function(e,n,t){64&e?function(e,n){Q(n.type)?(J(e,"change",Z),J(e,"click",ee)):J(e,"input",Y)}(n,t):256&e?function(e){J(e,"change",te)}(n):128&e&&function(e,n){J(e,"input",ie),n.onChange&&J(e,"change",ae)}(n,t)}(n,r,t),t)ye(a,null,t[a],r,l,o,null);i&&ce(n,e,r,t,!0,o)}(e,u,c,v,l),de(e.ref,v,a)}(e,n,r,o,a,u):4&c?function(e,n,t,r,o,a){var u=function(e,n,t,r,o,a){var u=new n(t,r),c=u.$N=Boolean(n.getDerivedStateFromProps||u.getSnapshotBeforeUpdate);if(u.$SVG=o,u.$L=a,e.children=u,u.$BS=!1,u.context=r,u.props===f&&(u.props=t),c)u.state=b(u,t,u.state);else if(l(u.componentWillMount)){u.$BR=!0,u.componentWillMount();var s=u.$PS;if(!i(s)){var d=u.state;if(i(d))u.state=s;else for(var p in s)d[p]=s[p];u.$PS=null}u.$BR=!1}return u.$LI=be(u,t,r),u}(e,e.type,e.props||f,t,r,a);ke(u.$LI,n,u.$CX,r,o,a),function(e,n,t){de(e,n,t),l(n.componentDidMount)&&t.push(function(e){return function(){e.componentDidMount()}}(n))}(e.ref,u,a)}(e,n,r,o,a,u):8&c?(function(e,n,t,r,l,o){ke(e.children=I(function(e,n){return 32768&e.flags?e.type.render(e.props||f,e.ref,n):e.type(e.props||f,n)}(e,t)),n,t,r,l,o)}(e,n,r,o,a,u),function(e,n){var r=e.ref;t(r)||(F(r.onComponentWillMount,e.props||f),l(r.onComponentDidMount)&&n.push(function(e,n){return function(){e.onComponentDidMount(m(n,!0),n.props||f)}}(r,e)))}(e,u)):512&c||16&c?Ce(e,n,a):8192&c?function(e,n,t,r,l,o){var i=e.children,a=e.childFlags;12&a&&0===i.length&&(a=e.childFlags=2,i=e.children=L()),2===a?ke(i,t,l,r,l,o):we(i,t,n,r,l,o)}(e,r,n,o,a,u):1024&c&&function(e,n,t,r,l){ke(e.children,e.ref,n,!1,null,l);var o=L();Ce(o,t,r),e.dom=o.dom}(e,r,n,a,u)}function Ce(e,n,t){var r=e.dom=document.createTextNode(e.children);i(n)||p(n,r,t)}function we(e,n,t,r,l,o){for(var i=0;i0,c!==s){var v=c||f;if((a=s||f)!==f)for(var h in(d=(448&o)>0)&&(p=fe(a)),a){var m=v[h],g=a[h];m!==g&&ye(h,m,g,u,l,p,e)}if(v!==f)for(var y in v)t(a[y])&&!t(v[y])&&ye(y,v[y],null,u,l,p,e)}var b=n.children,k=n.className;e.className!==k&&(t(k)?u.removeAttribute("class"):l?u.setAttribute("class",k):u.className=k),4096&o?function(e,n){e.textContent!==n&&(e.textContent=n)}(u,b):Fe(e.childFlags,n.childFlags,e.children,b,u,r,l&&"foreignObject"!==n.type,null,e,i),d&&ce(o,n,u,a,!1,p);var C=n.ref,w=e.ref;w!==C&&(se(w),de(C,u,i))}(e,n,u,c,h,p):4&h?function(e,n,t,r,o,u,c){var s=n.children=e.children;if(i(s))return;s.$L=c;var d=n.props||f,p=n.ref,v=e.ref,h=s.state;if(!s.$N){if(l(s.componentWillReceiveProps)){if(s.$BR=!0,s.componentWillReceiveProps(d,r),s.$UN)return;s.$BR=!1}i(s.$PS)||(h=a(h,s.$PS),s.$PS=null)}(function(e,n,t,r,o,i,u,c,f){var s=e.state,d=e.props,p=Boolean(e.$N),v=l(e.shouldComponentUpdate);if(p&&(n=b(e,t,n!==s?a(s,n):n)),!v||v&&e.shouldComponentUpdate(t,n,o)){!p&&l(e.componentWillUpdate)&&e.componentWillUpdate(t,n,o),e.props=t,e.state=n,e.context=o;var h=null,m=be(e,t,o);p&&l(e.getSnapshotBeforeUpdate)&&(h=e.getSnapshotBeforeUpdate(d,s)),$e(e.$LI,m,r,e.$CX,i,c,f),e.$LI=m,l(e.componentDidUpdate)&&function(e,n,t,r,l){l.push((function(){e.componentDidUpdate(n,t,r)}))}(e,d,s,h,f)}else e.props=t,e.state=n,e.context=o})(s,h,d,t,r,o,0,u,c),v!==p&&(se(v),de(p,s,c))}(e,n,o,u,c,s,p):8&h?function(e,n,r,o,i,a,u){var c=!0,s=n.props||f,d=n.ref,p=e.props,v=!t(d),h=e.children;if(v&&l(d.onComponentShouldUpdate)&&(c=d.onComponentShouldUpdate(p,s)),!1!==c){v&&l(d.onComponentWillUpdate)&&d.onComponentWillUpdate(p,s);var m=n.type,g=I(32768&n.flags?m.render(s,d,o):m(s,o));$e(h,g,r,o,i,a,u),n.children=g,v&&l(d.onComponentDidUpdate)&&d.onComponentDidUpdate(p,s)}else n.children=h}(e,n,o,u,c,s,p):16&h?function(e,n){var t=n.children,r=n.dom=e.dom;t!==e.children&&(r.nodeValue=t)}(e,n):512&h?n.dom=e.dom:8192&h?function(e,n,t,r,l,o){var i=e.children,a=n.children,u=e.childFlags,c=n.childFlags,f=null;12&c&&0===a.length&&(c=n.childFlags=2,a=n.children=L());var s=0!==(2&c);if(12&u){var d=i.length;(8&u&&8&c||s||!s&&a.length>d)&&(f=m(i[d-1],!1).nextSibling)}Fe(u,c,i,a,t,r,l,f,e,o)}(e,n,o,u,c,p):function(e,n,t,l){var o=e.ref,i=n.ref,a=n.children;if(Fe(e.childFlags,n.childFlags,e.children,a,o,t,!1,null,e,l),n.dom=e.dom,o!==i&&!r(a)){var u=a.dom;v(o,u),d(i,u)}}(e,n,u,p)}function Fe(e,n,t,r,l,o,i,a,u,c){switch(e){case 2:switch(n){case 2:$e(t,r,l,o,i,a,c);break;case 1:pe(t,l);break;case 16:ve(t),C(l,r);break;default:!function(e,n,t,r,l,o){ve(e),we(n,t,r,l,m(e,!0),o),g(e,t)}(t,r,l,o,i,c)}break;case 1:switch(n){case 2:ke(r,l,o,i,a,c);break;case 1:break;case 16:C(l,r);break;default:we(r,l,o,i,a,c)}break;case 16:switch(n){case 16:!function(e,n,t){e!==n&&(""!==e?t.firstChild.nodeValue=n:C(t,n))}(t,r,l);break;case 2:me(l),ke(r,l,o,i,a,c);break;case 1:me(l);break;default:me(l),we(r,l,o,i,a,c)}break;default:switch(n){case 16:he(t),C(l,r);break;case 2:ge(l,u,t),ke(r,l,o,i,a,c);break;case 1:ge(l,u,t);break;default:var f=0|t.length,s=0|r.length;0===f?s>0&&we(r,l,o,i,a,c):0===s?ge(l,u,t):8===n&&8===e?function(e,n,t,r,l,o,i,a,u,c){var f,s,d=o-1,p=i-1,v=0,h=e[v],g=n[v];e:{for(;h.key===g.key;){if(16384&g.flags&&(n[v]=g=N(g)),$e(h,g,t,r,l,a,c),e[v]=g,++v>d||v>p)break e;h=e[v],g=n[v]}for(h=e[d],g=n[p];h.key===g.key;){if(16384&g.flags&&(n[p]=g=N(g)),$e(h,g,t,r,l,a,c),e[d]=g,p--,v>--d||v>p)break e;h=e[d],g=n[p]}}if(v>d){if(v<=p)for(s=(f=p+1)p)for(;v<=d;)pe(e[v++],t);else!function(e,n,t,r,l,o,i,a,u,c,f,s,d){var p,v,h,g=0,b=a,k=a,C=o-a+1,w=i-a+1,$=new Int32Array(w+1),F=C===r,P=!1,S=0,x=0;if(l<4||(C|w)<32)for(g=b;g<=o;++g)if(p=e[g],xa?P=!0:S=a,16384&v.flags&&(n[a]=v=N(v)),$e(p,v,u,t,c,f,d),++x;break}!F&&a>i&&pe(p,u)}else F||pe(p,u);else{var U={};for(g=k;g<=i;++g)U[n[g].key]=g;for(g=b;g<=o;++g)if(p=e[g],xb;)pe(e[b++],u);$[a-k]=g+1,S>a?P=!0:S=a,16384&(v=n[a]).flags&&(n[a]=v=N(v)),$e(p,v,u,t,c,f,d),++x}else F||pe(p,u);else F||pe(p,u)}if(F)ge(u,s,e),we(n,u,t,c,f,d);else if(P){var V=function(e){var n=0,t=0,r=0,l=0,o=0,i=0,a=0,u=e.length;for(u>Pe&&(Pe=u,le=new Int32Array(u),oe=new Int32Array(u));t>1]]0&&(oe[t]=le[o-1]),le[o]=t)}o=l+1;var c=new Int32Array(o);for(i=le[o-1];o-- >0;)c[o]=i,i=oe[i],le[o]=0;return c}($);for(a=V.length-1,g=w-1;g>=0;g--)0===$[g]?(16384&(v=n[S=g+k]).flags&&(n[S]=v=N(v)),ke(v,u,t,c,(h=S+1)=0;g--)0===$[g]&&(16384&(v=n[S=g+k]).flags&&(n[S]=v=N(v)),ke(v,u,t,c,(h=S+1)i?i:o,d=0;di)for(d=s;d0&&function(e){for(var n;void 0!==(n=e.shift());)n()}(i),l(r)&&r(),l(k.renderComplete)&&k.renderComplete(a,n)}(e,n,r,o)}function xe(e){return S(1,"li","TreeLeaf",e.children,0,null,null,null)}function Ue(e,n){return e!==n}function Ve(e){for(var n=e.data,t=n.children.length,r=new Array(t),l=0;l0,h=a(d),v=i(d)&&"$"===d[0];p||h||v?(l=l||r.slice(0,s),(p||v)&&(f=I(f)),(h||v)&&(f.key="$"+s),l.push(f)):l&&l.push(f),f.flags|=65536}}u=0===(l=l||r).length?1:8}else(l=r).flags|=65536,81920&r.flags&&(l=I(r)),u=2;e.children=l,e.childFlags=u}(h,h.children),h}function N(e,n,t,o,l){var i=new S(1,null,null,e=function(e,n){if(12&e)return e;if(n.prototype&&n.prototype.render)return 4;if(n.render)return 32776;return 8}(e,n),o,function(e,n,t){var o=(32768&e?n.render:n).defaultProps;if(r(o))return t;if(r(t))return u(o,null);return x(t,o)}(e,n,t),function(e,n,t){if(4&e)return t;var o=(32768&e?n.render:n).defaultHooks;if(r(o))return t;if(r(t))return o;return x(t,o)}(e,n,l),n);return C.createVNode&&C.createVNode(i),i}function V(e,n){return new S(1,r(e)||!0===e||!1===e?"":e,null,16,n,null,null,null)}function L(e,n,t){var r=F(8192,8192,null,e,n,null,t,null);switch(r.childFlags){case 1:r.children=B(),r.childFlags=2;break;case 16:r.children=[V(e)],r.childFlags=4}return r}function I(e){var n=-16385&e.flags,t=e.props;if(14&n&&!a(t)){var r=t;for(var o in t={},r)t[o]=r[o]}if(0===(8192&n))return new S(e.childFlags,e.children,e.className,n,e.key,t,e.ref,e.type);return function(e){var n,t=e.children,r=e.childFlags;if(2===r)n=I(t);else if(12&r){n=[];for(var o=0,l=t.length;o-1&&t.options[a]&&(u=t.options[a].value),o&&r(u)&&(u=e.defaultValue),function e(t,o){if("option"===t.type)!function(e,t){var o=e.props||s,l=e.dom;l.value=o.value,o.value===t||n(t)&&-1!==t.indexOf(o.value)?l.selected=!0:r(t)&&r(o.selected)||(l.selected=o.selected||!1)}(t,o);else{var l=t.children,i=t.flags;if(4&i)e(l.$LI,o);else if(8&i)e(l,o);else if(2===t.childFlags)e(l,o);else if(12&t.childFlags)for(var a=0,u=l.length;a0);if(r(s)||""===s||(o?h.setAttribute("class",s):h.className=s),16===d)w(h,f);else if(1!==d){var v=o&&"foreignObject"!==e.type;2===d?(16384&f.flags&&(e.children=f=I(f)),Ce(f,h,t,v,null,i)):8!==d&&4!==d||Ue(f,h,t,v,null,i)}a(n)||p(n,h,l),a(c)||function(e,n,t,r,o){var l=!1,i=(448&n)>0;for(var a in i&&(l=de(t))&&function(e,n,t){64&e?function(e,n){Z(n.type)?(Y(e,"change",ne),Y(e,"click",te)):Y(e,"input",ee)}(n,t):256&e?function(e){Y(e,"change",oe)}(n):128&e&&function(e,n){Y(e,"input",ue),n.onChange&&Y(e,"change",ce)}(n,t)}(n,r,t),t)$e(a,null,t[a],r,o,l,null);i&&fe(n,e,r,t,!0,l)}(e,u,c,h,o),he(e.ref,h,i)}(e,n,t,o,i,u):4&c?function(e,n,t,r,o,i){var u=function(e,n,t,r,o,i){var u=new n(t,r),c=u.$N=Boolean(n.getDerivedStateFromProps||u.getSnapshotBeforeUpdate);if(u.$SVG=o,u.$L=i,e.children=u,u.$BS=!1,u.context=r,u.props===s&&(u.props=t),c)u.state=$(u,t,u.state);else if(l(u.componentWillMount)){u.$BR=!0,u.componentWillMount();var f=u.$PS;if(!a(f)){var d=u.state;if(a(d))u.state=f;else for(var p in f)d[p]=f[p];u.$PS=null}u.$BR=!1}return u.$LI=ke(u,t,r),u}(e,e.type,e.props||s,t,r,i);Ce(u.$LI,n,u.$CX,r,o,i),function(e,n,t){he(e,n,t),l(n.componentDidMount)&&t.push(function(e){return function(){e.componentDidMount()}}(n))}(e.ref,u,i)}(e,n,t,o,i,u):8&c?(function(e,n,t,r,o,l){Ce(e.children=T(function(e,n){return 32768&e.flags?e.type.render(e.props||s,e.ref,n):e.type(e.props||s,n)}(e,t)),n,t,r,o,l)}(e,n,t,o,i,u),function(e,n){var t=e.ref;r(t)||(P(t.onComponentWillMount,e.props||s),l(t.onComponentDidMount)&&n.push(function(e,n){return function(){e.onComponentDidMount(m(n,!0),n.props||s)}}(t,e)))}(e,u)):512&c||16&c?we(e,n,i):8192&c?function(e,n,t,r,o,l){var i=e.children,a=e.childFlags;12&a&&0===i.length&&(a=e.childFlags=2,i=e.children=B()),2===a?Ce(i,t,o,r,o,l):Ue(i,t,n,r,o,l)}(e,t,n,o,i,u):1024&c&&function(e,n,t,r,o){Ce(e.children,e.ref,n,!1,null,o);var l=B();we(l,t,r),e.dom=l.dom}(e,t,n,i,u)}function we(e,n,t){var r=e.dom=document.createTextNode(e.children);a(n)||p(n,r,t)}function Ue(e,n,t,r,o,l){for(var i=0;i0,c!==f){var h=c||s;if((a=f||s)!==s)for(var v in(d=(448&l)>0)&&(p=de(a)),a){var g=h[v],m=a[v];g!==m&&$e(v,g,m,u,o,p,e)}if(h!==s)for(var y in h)r(a[y])&&!r(h[y])&&$e(y,h[y],null,u,o,p,e)}var b=n.children,$=n.className;e.className!==$&&(r($)?u.removeAttribute("class"):o?u.setAttribute("class",$):u.className=$),4096&l?function(e,n){e.textContent!==n&&(e.textContent=n)}(u,b):Pe(e.childFlags,n.childFlags,e.children,b,u,t,o&&"foreignObject"!==n.type,null,e,i),d&&fe(l,n,u,a,!1,p);var k=n.ref,C=e.ref;C!==k&&(pe(C),he(k,u,i))}(e,n,i,c,v,p):4&v?function(e,n,t,r,o,i,c){var f=n.children=e.children;if(a(f))return;f.$L=c;var d=n.props||s,p=n.ref,h=e.ref,v=f.state;if(!f.$N){if(l(f.componentWillReceiveProps)){if(f.$BR=!0,f.componentWillReceiveProps(d,r),f.$UN)return;f.$BR=!1}a(f.$PS)||(v=u(v,f.$PS),f.$PS=null)}Se(f,v,d,t,r,o,!1,i,c),h!==p&&(pe(h),he(p,f,c))}(e,n,t,i,c,f,p):8&v?function(e,n,t,o,i,a,u){var c=!0,f=n.props||s,d=n.ref,p=e.props,h=!r(d),v=e.children;if(h&&l(d.onComponentShouldUpdate)&&(c=d.onComponentShouldUpdate(p,f)),!1!==c){h&&l(d.onComponentWillUpdate)&&d.onComponentWillUpdate(p,f);var g=n.type,m=T(32768&n.flags?g.render(f,d,o):g(f,o));xe(v,m,t,o,i,a,u),n.children=m,h&&l(d.onComponentDidUpdate)&&d.onComponentDidUpdate(p,f)}else n.children=v}(e,n,t,i,c,f,p):16&v?function(e,n){var t=n.children,r=n.dom=e.dom;t!==e.children&&(r.nodeValue=t)}(e,n):512&v?n.dom=e.dom:8192&v?function(e,n,t,r,o,l){var i=e.children,a=n.children,u=e.childFlags,c=n.childFlags,s=null;12&c&&0===a.length&&(c=n.childFlags=2,a=n.children=B());var f=0!==(2&c);if(12&u){var d=i.length;(8&u&&8&c||f||!f&&a.length>d)&&(s=m(i[d-1],!1).nextSibling)}Pe(u,c,i,a,t,r,o,s,e,l)}(e,n,t,i,c,p):function(e,n,t,r){var l=e.ref,i=n.ref,a=n.children;if(Pe(e.childFlags,n.childFlags,e.children,a,l,t,!1,null,e,r),n.dom=e.dom,l!==i&&!o(a)){var u=a.dom;h(l,u),d(i,u)}}(e,n,i,p)}function Pe(e,n,t,r,o,l,i,a,u,c){switch(e){case 2:switch(n){case 2:xe(t,r,o,l,i,a,c);break;case 1:ve(t,o);break;case 16:ge(t),w(o,r);break;default:!function(e,n,t,r,o,l){ge(e),Ue(n,t,r,o,m(e,!0),l),y(e,t)}(t,r,o,l,i,c)}break;case 1:switch(n){case 2:Ce(r,o,l,i,a,c);break;case 1:break;case 16:w(o,r);break;default:Ue(r,o,l,i,a,c)}break;case 16:switch(n){case 16:!function(e,n,t){e!==n&&(""!==e?t.firstChild.nodeValue=n:w(t,n))}(t,r,o);break;case 2:ye(o),Ce(r,o,l,i,a,c);break;case 1:ye(o);break;default:ye(o),Ue(r,o,l,i,a,c)}break;default:switch(n){case 16:me(t),w(o,r);break;case 2:be(o,u,t),Ce(r,o,l,i,a,c);break;case 1:be(o,u,t);break;default:var s=0|t.length,f=0|r.length;0===s?f>0&&Ue(r,o,l,i,a,c):0===f?be(o,u,t):8===n&&8===e?function(e,n,t,r,o,l,i,a,u,c){var s,f,d=l-1,p=i-1,h=0,v=e[h],g=n[h];e:{for(;v.key===g.key;){if(16384&g.flags&&(n[h]=g=I(g)),xe(v,g,t,r,o,a,c),e[h]=g,++h>d||h>p)break e;v=e[h],g=n[h]}for(v=e[d],g=n[p];v.key===g.key;){if(16384&g.flags&&(n[p]=g=I(g)),xe(v,g,t,r,o,a,c),e[d]=g,p--,h>--d||h>p)break e;v=e[d],g=n[p]}}if(h>d){if(h<=p)for(f=(s=p+1)p)for(;h<=d;)ve(e[h++],t);else!function(e,n,t,r,o,l,i,a,u,c,s,f,d){var p,h,v,g=0,y=a,$=a,k=l-a+1,C=i-a+1,w=new Int32Array(C+1),U=k===r,x=!1,P=0,S=0;if(o<4||(k|C)<32)for(g=y;g<=l;++g)if(p=e[g],Sa?x=!0:P=a,16384&h.flags&&(n[a]=h=I(h)),xe(p,h,u,t,c,s,d),++S;break}!U&&a>i&&ve(p,u)}else U||ve(p,u);else{var F={};for(g=$;g<=i;++g)F[n[g].key]=g;for(g=y;g<=l;++g)if(p=e[g],Sy;)ve(e[y++],u);w[a-$]=g+1,P>a?x=!0:P=a,16384&(h=n[a]).flags&&(n[a]=h=I(h)),xe(p,h,u,t,c,s,d),++S}else U||ve(p,u);else U||ve(p,u)}if(U)be(u,f,e),Ue(n,u,t,c,s,d);else if(x){var N=function(e){var n=0,t=0,r=0,o=0,l=0,i=0,a=0,u=e.length;for(u>Fe&&(Fe=u,ie=new Int32Array(u),ae=new Int32Array(u));t>1]]0&&(ae[t]=ie[l-1]),ie[l]=t)}l=o+1;var c=new Int32Array(l);for(i=ie[l-1];l-- >0;)c[l]=i,i=ae[i],ie[l]=0;return c}(w);for(a=N.length-1,g=C-1;g>=0;g--)0===w[g]?(16384&(h=n[P=g+$]).flags&&(n[P]=h=I(h)),Ce(h,u,t,c,(v=P+1)=0;g--)0===w[g]&&(16384&(h=n[P=g+$]).flags&&(n[P]=h=I(h)),Ce(h,u,t,c,(v=P+1)i?i:l,d=0;di)for(d=f;d0&&v(i),k.v=!1,l(t)&&t(),l(C.renderComplete)&&C.renderComplete(a,n)}(e,n,t,o)}"undefined"!==typeof document&&window.Node&&(Node.prototype.$EV=null,Node.prototype.$V=null);var Ve=[],Le="undefined"!==typeof Promise?Promise.resolve().then.bind(Promise.resolve()):function(e){window.setTimeout(e,0)},Ie=!1;function Be(e,n,t,o){var i=e.$PS;if(l(n)&&(n=n(i?u(e.state,i):e.state,e.props,e.context)),r(i))e.$PS=n;else for(var a in n)i[a]=n[a];if(e.$BR)l(t)&&e.$L.push(t.bind(e));else{if(!k.v&&0===Ve.length)return void Ae(e,o,t);if(-1===Ve.indexOf(e)&&Ve.push(e),Ie||(Ie=!0,Le(Te)),l(t)){var c=e.$QU;c||(c=e.$QU=[]),c.push(t)}}}function Me(e){for(var n=e.$QU,t=0,r=n.length;t0&&v(o),k.v=!1}else e.state=e.$PS,e.$PS=null;l(t)&&t.call(e)}var De=function(e,n){this.state=null,this.$BR=!1,this.$BS=!0,this.$PS=null,this.$LI=null,this.$UN=!1,this.$CX=null,this.$QU=null,this.$N=!1,this.$L=null,this.$SVG=!1,this.props=e||s,this.context=n||s};De.prototype.forceUpdate=function(e){if(this.$UN)return;Be(this,{},e,!0)},De.prototype.setState=function(e,n){if(this.$UN)return;this.$BS||Be(this,e,n,!1)},De.prototype.render=function(e,n,t){return null},uibench.init("Inferno [same as react]","7.3.3");var Ee=function(n){function t(e){var t;return(t=n.call(this,e)||this).onClick=t.onClick.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t)),t}e(t,n);var r=t.prototype;return r.shouldComponentUpdate=function(e,n){return this.props.text!==e.text},r.onClick=function(e){console.log("Clicked"+this.props.text),e.stopPropagation()},r.render=function(){return F(1,"td","TableCell",this.props.text,0,{onClick:this.onClick},null,null)},t}(De),We=function(n){function t(){return n.apply(this,arguments)||this}e(t,n);var r=t.prototype;return r.shouldComponentUpdate=function(e,n){return this.props.data!==e.data},r.render=function(){for(var e=this.props.data,n=e.active?"TableRow active":"TableRow",t=e.props,r=[N(2,Ee,{text:"#"+e.id},-1,null)],o=0;o0,h=a(d),v=i(d)&&"$"===d[0];p||h||v?(l=l||r.slice(0,s),(p||v)&&(f=I(f)),(h||v)&&(f.key="$"+s),l.push(f)):l&&l.push(f),f.flags|=65536}}u=0===(l=l||r).length?1:8}else(l=r).flags|=65536,81920&r.flags&&(l=I(r)),u=2;e.children=l,e.childFlags=u}(h,h.children),h}function N(e,n,t,o,l){var i=new S(1,null,null,e=function(e,n){if(12&e)return e;if(n.prototype&&n.prototype.render)return 4;if(n.render)return 32776;return 8}(e,n),o,function(e,n,t){var o=(32768&e?n.render:n).defaultProps;if(r(o))return t;if(r(t))return u(o,null);return x(t,o)}(e,n,t),function(e,n,t){if(4&e)return t;var o=(32768&e?n.render:n).defaultHooks;if(r(o))return t;if(r(t))return o;return x(t,o)}(e,n,l),n);return C.createVNode&&C.createVNode(i),i}function V(e,n){return new S(1,r(e)||!0===e||!1===e?"":e,null,16,n,null,null,null)}function L(e,n,t){var r=F(8192,8192,null,e,n,null,t,null);switch(r.childFlags){case 1:r.children=B(),r.childFlags=2;break;case 16:r.children=[V(e)],r.childFlags=4}return r}function I(e){var n=-16385&e.flags,t=e.props;if(14&n&&!a(t)){var r=t;for(var o in t={},r)t[o]=r[o]}if(0===(8192&n))return new S(e.childFlags,e.children,e.className,n,e.key,t,e.ref,e.type);return function(e){var n,t=e.children,r=e.childFlags;if(2===r)n=I(t);else if(12&r){n=[];for(var o=0,l=t.length;o-1&&t.options[a]&&(u=t.options[a].value),o&&r(u)&&(u=e.defaultValue),function e(t,o){if("option"===t.type)!function(e,t){var o=e.props||s,l=e.dom;l.value=o.value,o.value===t||n(t)&&-1!==t.indexOf(o.value)?l.selected=!0:r(t)&&r(o.selected)||(l.selected=o.selected||!1)}(t,o);else{var l=t.children,i=t.flags;if(4&i)e(l.$LI,o);else if(8&i)e(l,o);else if(2===t.childFlags)e(l,o);else if(12&t.childFlags)for(var a=0,u=l.length;a0);if(r(s)||""===s||(o?h.setAttribute("class",s):h.className=s),16===d)w(h,f);else if(1!==d){var v=o&&"foreignObject"!==e.type;2===d?(16384&f.flags&&(e.children=f=I(f)),Ce(f,h,t,v,null,i)):8!==d&&4!==d||Ue(f,h,t,v,null,i)}a(n)||p(n,h,l),a(c)||function(e,n,t,r,o){var l=!1,i=(448&n)>0;for(var a in i&&(l=de(t))&&function(e,n,t){64&e?function(e,n){Z(n.type)?(Y(e,"change",ne),Y(e,"click",te)):Y(e,"input",ee)}(n,t):256&e?function(e){Y(e,"change",oe)}(n):128&e&&function(e,n){Y(e,"input",ue),n.onChange&&Y(e,"change",ce)}(n,t)}(n,r,t),t)$e(a,null,t[a],r,o,l,null);i&&fe(n,e,r,t,!0,l)}(e,u,c,h,o),he(e.ref,h,i)}(e,n,t,o,i,u):4&c?function(e,n,t,r,o,i){var u=function(e,n,t,r,o,i){var u=new n(t,r),c=u.$N=Boolean(n.getDerivedStateFromProps||u.getSnapshotBeforeUpdate);if(u.$SVG=o,u.$L=i,e.children=u,u.$BS=!1,u.context=r,u.props===s&&(u.props=t),c)u.state=$(u,t,u.state);else if(l(u.componentWillMount)){u.$BR=!0,u.componentWillMount();var f=u.$PS;if(!a(f)){var d=u.state;if(a(d))u.state=f;else for(var p in f)d[p]=f[p];u.$PS=null}u.$BR=!1}return u.$LI=ke(u,t,r),u}(e,e.type,e.props||s,t,r,i);Ce(u.$LI,n,u.$CX,r,o,i),function(e,n,t){he(e,n,t),l(n.componentDidMount)&&t.push(function(e){return function(){e.componentDidMount()}}(n))}(e.ref,u,i)}(e,n,t,o,i,u):8&c?(function(e,n,t,r,o,l){Ce(e.children=T(function(e,n){return 32768&e.flags?e.type.render(e.props||s,e.ref,n):e.type(e.props||s,n)}(e,t)),n,t,r,o,l)}(e,n,t,o,i,u),function(e,n){var t=e.ref;r(t)||(P(t.onComponentWillMount,e.props||s),l(t.onComponentDidMount)&&n.push(function(e,n){return function(){e.onComponentDidMount(m(n,!0),n.props||s)}}(t,e)))}(e,u)):512&c||16&c?we(e,n,i):8192&c?function(e,n,t,r,o,l){var i=e.children,a=e.childFlags;12&a&&0===i.length&&(a=e.childFlags=2,i=e.children=B()),2===a?Ce(i,t,o,r,o,l):Ue(i,t,n,r,o,l)}(e,t,n,o,i,u):1024&c&&function(e,n,t,r,o){Ce(e.children,e.ref,n,!1,null,o);var l=B();we(l,t,r),e.dom=l.dom}(e,t,n,i,u)}function we(e,n,t){var r=e.dom=document.createTextNode(e.children);a(n)||p(n,r,t)}function Ue(e,n,t,r,o,l){for(var i=0;i0,c!==f){var h=c||s;if((a=f||s)!==s)for(var v in(d=(448&l)>0)&&(p=de(a)),a){var g=h[v],m=a[v];g!==m&&$e(v,g,m,u,o,p,e)}if(h!==s)for(var y in h)r(a[y])&&!r(h[y])&&$e(y,h[y],null,u,o,p,e)}var b=n.children,$=n.className;e.className!==$&&(r($)?u.removeAttribute("class"):o?u.setAttribute("class",$):u.className=$),4096&l?function(e,n){e.textContent!==n&&(e.textContent=n)}(u,b):Pe(e.childFlags,n.childFlags,e.children,b,u,t,o&&"foreignObject"!==n.type,null,e,i),d&&fe(l,n,u,a,!1,p);var k=n.ref,C=e.ref;C!==k&&(pe(C),he(k,u,i))}(e,n,i,c,v,p):4&v?function(e,n,t,r,o,i,c){var f=n.children=e.children;if(a(f))return;f.$L=c;var d=n.props||s,p=n.ref,h=e.ref,v=f.state;if(!f.$N){if(l(f.componentWillReceiveProps)){if(f.$BR=!0,f.componentWillReceiveProps(d,r),f.$UN)return;f.$BR=!1}a(f.$PS)||(v=u(v,f.$PS),f.$PS=null)}Se(f,v,d,t,r,o,!1,i,c),h!==p&&(pe(h),he(p,f,c))}(e,n,t,i,c,f,p):8&v?function(e,n,t,o,i,a,u){var c=!0,f=n.props||s,d=n.ref,p=e.props,h=!r(d),v=e.children;if(h&&l(d.onComponentShouldUpdate)&&(c=d.onComponentShouldUpdate(p,f)),!1!==c){h&&l(d.onComponentWillUpdate)&&d.onComponentWillUpdate(p,f);var g=n.type,m=T(32768&n.flags?g.render(f,d,o):g(f,o));xe(v,m,t,o,i,a,u),n.children=m,h&&l(d.onComponentDidUpdate)&&d.onComponentDidUpdate(p,f)}else n.children=v}(e,n,t,i,c,f,p):16&v?function(e,n){var t=n.children,r=n.dom=e.dom;t!==e.children&&(r.nodeValue=t)}(e,n):512&v?n.dom=e.dom:8192&v?function(e,n,t,r,o,l){var i=e.children,a=n.children,u=e.childFlags,c=n.childFlags,s=null;12&c&&0===a.length&&(c=n.childFlags=2,a=n.children=B());var f=0!==(2&c);if(12&u){var d=i.length;(8&u&&8&c||f||!f&&a.length>d)&&(s=m(i[d-1],!1).nextSibling)}Pe(u,c,i,a,t,r,o,s,e,l)}(e,n,t,i,c,p):function(e,n,t,r){var l=e.ref,i=n.ref,a=n.children;if(Pe(e.childFlags,n.childFlags,e.children,a,l,t,!1,null,e,r),n.dom=e.dom,l!==i&&!o(a)){var u=a.dom;h(l,u),d(i,u)}}(e,n,i,p)}function Pe(e,n,t,r,o,l,i,a,u,c){switch(e){case 2:switch(n){case 2:xe(t,r,o,l,i,a,c);break;case 1:ve(t,o);break;case 16:ge(t),w(o,r);break;default:!function(e,n,t,r,o,l){ge(e),Ue(n,t,r,o,m(e,!0),l),y(e,t)}(t,r,o,l,i,c)}break;case 1:switch(n){case 2:Ce(r,o,l,i,a,c);break;case 1:break;case 16:w(o,r);break;default:Ue(r,o,l,i,a,c)}break;case 16:switch(n){case 16:!function(e,n,t){e!==n&&(""!==e?t.firstChild.nodeValue=n:w(t,n))}(t,r,o);break;case 2:ye(o),Ce(r,o,l,i,a,c);break;case 1:ye(o);break;default:ye(o),Ue(r,o,l,i,a,c)}break;default:switch(n){case 16:me(t),w(o,r);break;case 2:be(o,u,t),Ce(r,o,l,i,a,c);break;case 1:be(o,u,t);break;default:var s=0|t.length,f=0|r.length;0===s?f>0&&Ue(r,o,l,i,a,c):0===f?be(o,u,t):8===n&&8===e?function(e,n,t,r,o,l,i,a,u,c){var s,f,d=l-1,p=i-1,h=0,v=e[h],g=n[h];e:{for(;v.key===g.key;){if(16384&g.flags&&(n[h]=g=I(g)),xe(v,g,t,r,o,a,c),e[h]=g,++h>d||h>p)break e;v=e[h],g=n[h]}for(v=e[d],g=n[p];v.key===g.key;){if(16384&g.flags&&(n[p]=g=I(g)),xe(v,g,t,r,o,a,c),e[d]=g,p--,h>--d||h>p)break e;v=e[d],g=n[p]}}if(h>d){if(h<=p)for(f=(s=p+1)p)for(;h<=d;)ve(e[h++],t);else!function(e,n,t,r,o,l,i,a,u,c,s,f,d){var p,h,v,g=0,y=a,$=a,k=l-a+1,C=i-a+1,w=new Int32Array(C+1),U=k===r,x=!1,P=0,S=0;if(o<4||(k|C)<32)for(g=y;g<=l;++g)if(p=e[g],Sa?x=!0:P=a,16384&h.flags&&(n[a]=h=I(h)),xe(p,h,u,t,c,s,d),++S;break}!U&&a>i&&ve(p,u)}else U||ve(p,u);else{var F={};for(g=$;g<=i;++g)F[n[g].key]=g;for(g=y;g<=l;++g)if(p=e[g],Sy;)ve(e[y++],u);w[a-$]=g+1,P>a?x=!0:P=a,16384&(h=n[a]).flags&&(n[a]=h=I(h)),xe(p,h,u,t,c,s,d),++S}else U||ve(p,u);else U||ve(p,u)}if(U)be(u,f,e),Ue(n,u,t,c,s,d);else if(x){var N=function(e){var n=0,t=0,r=0,o=0,l=0,i=0,a=0,u=e.length;for(u>Fe&&(Fe=u,ie=new Int32Array(u),ae=new Int32Array(u));t>1]]0&&(ae[t]=ie[l-1]),ie[l]=t)}l=o+1;var c=new Int32Array(l);for(i=ie[l-1];l-- >0;)c[l]=i,i=ae[i],ie[l]=0;return c}(w);for(a=N.length-1,g=C-1;g>=0;g--)0===w[g]?(16384&(h=n[P=g+$]).flags&&(n[P]=h=I(h)),Ce(h,u,t,c,(v=P+1)=0;g--)0===w[g]&&(16384&(h=n[P=g+$]).flags&&(n[P]=h=I(h)),Ce(h,u,t,c,(v=P+1)i?i:l,d=0;di)for(d=f;d0&&v(i),k.v=!1,l(t)&&t(),l(C.renderComplete)&&C.renderComplete(a,n)}(e,n,t,o)}"undefined"!==typeof document&&window.Node&&(Node.prototype.$EV=null,Node.prototype.$V=null);var Ve=[],Le="undefined"!==typeof Promise?Promise.resolve().then.bind(Promise.resolve()):function(e){window.setTimeout(e,0)},Ie=!1;function Be(e,n,t,o){var i=e.$PS;if(l(n)&&(n=n(i?u(e.state,i):e.state,e.props,e.context)),r(i))e.$PS=n;else for(var a in n)i[a]=n[a];if(e.$BR)l(t)&&e.$L.push(t.bind(e));else{if(!k.v&&0===Ve.length)return void Ae(e,o,t);if(-1===Ve.indexOf(e)&&Ve.push(e),Ie||(Ie=!0,Le(Te)),l(t)){var c=e.$QU;c||(c=e.$QU=[]),c.push(t)}}}function Me(e){for(var n=e.$QU,t=0,r=n.length;t0&&v(o),k.v=!1}else e.state=e.$PS,e.$PS=null;l(t)&&t.call(e)}var De=function(e,n){this.state=null,this.$BR=!1,this.$BS=!0,this.$PS=null,this.$LI=null,this.$UN=!1,this.$CX=null,this.$QU=null,this.$N=!1,this.$L=null,this.$SVG=!1,this.props=e||s,this.context=n||s};De.prototype.forceUpdate=function(e){if(this.$UN)return;Be(this,{},e,!0)},De.prototype.setState=function(e,n){if(this.$UN)return;this.$BS||Be(this,e,n,!1)},De.prototype.render=function(e,n,t){return null},uibench.init("Inferno [same as react]","7.4.0");var Ee=function(n){function t(e){var t;return(t=n.call(this,e)||this).onClick=t.onClick.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t)),t}e(t,n);var r=t.prototype;return r.shouldComponentUpdate=function(e,n){return this.props.text!==e.text},r.onClick=function(e){console.log("Clicked"+this.props.text),e.stopPropagation()},r.render=function(){return F(1,"td","TableCell",this.props.text,0,{onClick:this.onClick},null,null)},t}(De),We=function(n){function t(){return n.apply(this,arguments)||this}e(t,n);var r=t.prototype;return r.shouldComponentUpdate=function(e,n){return this.props.data!==e.data},r.render=function(){for(var e=this.props.data,n=e.active?"TableRow active":"TableRow",t=e.props,r=[N(2,Ee,{text:"#"+e.id},-1,null)],o=0;o0,v=i(d),h=o(d)&&"$"===d[0];p||v||h?(a=a||l.slice(0,f),(p||h)&&(s=S(s)),(v||h)&&(s.key="$"+f),a.push(s)):a&&a.push(s),s.flags|=65536}}u=0===(a=a||l).length?1:8}else(a=l).flags|=65536,81920&l.flags&&(a=S(l)),u=2;t.children=a,t.childFlags=u}(v,v.children),v}function V(e,n,r,l,o){var i=new P(1,null,null,e=function(e,n){if(12&e)return e;if(n.prototype&&n.prototype.render)return 4;if(n.render)return 32776;return 8}(e,n),l,function(e,n,r){var l=(32768&e?n.render:n).defaultProps;if(t(l))return r;if(t(r))return a(l,null);return w(r,l)}(e,n,r),function(e,n,r){if(4&e)return r;var l=(32768&e?n.render:n).defaultHooks;if(t(l))return r;if(t(r))return l;return w(r,l)}(e,n,o),n);return y.createVNode&&y.createVNode(i),i}function N(e,n){return new P(1,t(e)||!0===e||!1===e?"":e,null,16,n,null,null,null)}function L(e,n,t){var r=x(8192,8192,null,e,n,null,t,null);switch(r.childFlags){case 1:r.children=U(),r.childFlags=2;break;case 16:r.children=[N(e)],r.childFlags=4}return r}function S(e){var n=-16385&e.flags,t=e.props;if(14&n&&!i(t)){var r=t;for(var l in t={},r)t[l]=r[l]}if(0===(8192&n))return new P(e.childFlags,e.children,e.className,n,e.key,t,e.ref,e.type);return function(e){var n,t=e.children,r=e.childFlags;if(2===r)n=S(t);else if(12&r){n=[];for(var l=0,o=t.length;l-1&&r.options[a]&&(u=r.options[a].value),l&&t(u)&&(u=n.defaultValue),function n(r,l){if("option"===r.type)!function(n,r){var l=n.props||f,o=n.dom;o.value=l.value,l.value===r||e(r)&&-1!==r.indexOf(l.value)?o.selected=!0:t(r)&&t(l.selected)||(o.selected=l.selected||!1)}(r,l);else{var o=r.children,i=r.flags;if(4&i)n(o.$LI,l);else if(8&i)n(o,l);else if(2===r.childFlags)n(o,l);else if(12&r.childFlags)for(var a=0,u=o.length;a0);if(t(f)||""===f||(l?v.setAttribute("class",f):v.className=f),16===d)C(v,s);else if(1!==d){var h=l&&"foreignObject"!==e.type;2===d?(16384&s.flags&&(e.children=s=S(s)),ye(s,v,r,h,null,a)):8!==d&&4!==d||$e(s,v,r,h,null,a)}i(n)||p(n,v,o),i(c)||function(e,n,t,r,l){var o=!1,i=(448&n)>0;for(var a in i&&(o=fe(t))&&function(e,n,t){64&e?function(e,n){Q(n.type)?(z(e,"change",Z),z(e,"click",ee)):z(e,"input",Y)}(n,t):256&e?function(e){z(e,"change",te)}(n):128&e&&function(e,n){z(e,"input",ie),n.onChange&&z(e,"change",ae)}(n,t)}(n,r,t),t)ke(a,null,t[a],r,l,o,null);i&&ce(n,e,r,t,!0,o)}(e,u,c,v,l),de(e.ref,v,a)}(e,n,r,o,a,u):4&c?function(e,n,t,r,o,a){var u=function(e,n,t,r,o,a){var u=new n(t,r),c=u.$N=Boolean(n.getDerivedStateFromProps||u.getSnapshotBeforeUpdate);if(u.$SVG=o,u.$L=a,e.children=u,u.$BS=!1,u.context=r,u.props===f&&(u.props=t),c)u.state=b(u,t,u.state);else if(l(u.componentWillMount)){u.$BR=!0,u.componentWillMount();var s=u.$PS;if(!i(s)){var d=u.state;if(i(d))u.state=s;else for(var p in s)d[p]=s[p];u.$PS=null}u.$BR=!1}return u.$LI=be(u,t,r),u}(e,e.type,e.props||f,t,r,a);ye(u.$LI,n,u.$CX,r,o,a),function(e,n,t){de(e,n,t),l(n.componentDidMount)&&t.push(function(e){return function(){e.componentDidMount()}}(n))}(e.ref,u,a)}(e,n,r,o,a,u):8&c?(function(e,n,t,r,l,o){ye(e.children=A(function(e,n){return 32768&e.flags?e.type.render(e.props||f,e.ref,n):e.type(e.props||f,n)}(e,t)),n,t,r,l,o)}(e,n,r,o,a,u),function(e,n){var r=e.ref;t(r)||(F(r.onComponentWillMount,e.props||f),l(r.onComponentDidMount)&&n.push(function(e,n){return function(){e.onComponentDidMount(g(n,!0),n.props||f)}}(r,e)))}(e,u)):512&c||16&c?Ce(e,n,a):8192&c?function(e,n,t,r,l,o){var i=e.children,a=e.childFlags;12&a&&0===i.length&&(a=e.childFlags=2,i=e.children=U()),2===a?ye(i,t,l,r,l,o):$e(i,t,n,r,l,o)}(e,r,n,o,a,u):1024&c&&function(e,n,t,r,l){ye(e.children,e.ref,n,!1,null,l);var o=U();Ce(o,t,r),e.dom=o.dom}(e,r,n,a,u)}function Ce(e,n,t){var r=e.dom=document.createTextNode(e.children);i(n)||p(n,r,t)}function $e(e,n,t,r,l,o){for(var i=0;i0,c!==s){var v=c||f;if((a=s||f)!==f)for(var h in(d=(448&o)>0)&&(p=fe(a)),a){var g=v[h],m=a[h];g!==m&&ke(h,g,m,u,l,p,e)}if(v!==f)for(var k in v)t(a[k])&&!t(v[k])&&ke(k,v[k],null,u,l,p,e)}var b=n.children,y=n.className;e.className!==y&&(t(y)?u.removeAttribute("class"):l?u.setAttribute("class",y):u.className=y),4096&o?function(e,n){e.textContent!==n&&(e.textContent=n)}(u,b):Fe(e.childFlags,n.childFlags,e.children,b,u,r,l&&"foreignObject"!==n.type,null,e,i),d&&ce(o,n,u,a,!1,p);var C=n.ref,$=e.ref;$!==C&&(se($),de(C,u,i))}(e,n,u,c,h,p):4&h?function(e,n,t,r,o,u,c){var s=n.children=e.children;if(i(s))return;s.$L=c;var d=n.props||f,p=n.ref,v=e.ref,h=s.state;if(!s.$N){if(l(s.componentWillReceiveProps)){if(s.$BR=!0,s.componentWillReceiveProps(d,r),s.$UN)return;s.$BR=!1}i(s.$PS)||(h=a(h,s.$PS),s.$PS=null)}(function(e,n,t,r,o,i,u,c,f){var s=e.state,d=e.props,p=Boolean(e.$N),v=l(e.shouldComponentUpdate);if(p&&(n=b(e,t,n!==s?a(s,n):n)),!v||v&&e.shouldComponentUpdate(t,n,o)){!p&&l(e.componentWillUpdate)&&e.componentWillUpdate(t,n,o),e.props=t,e.state=n,e.context=o;var h=null,g=be(e,t,o);p&&l(e.getSnapshotBeforeUpdate)&&(h=e.getSnapshotBeforeUpdate(d,s)),we(e.$LI,g,r,e.$CX,i,c,f),e.$LI=g,l(e.componentDidUpdate)&&function(e,n,t,r,l){l.push((function(){e.componentDidUpdate(n,t,r)}))}(e,d,s,h,f)}else e.props=t,e.state=n,e.context=o})(s,h,d,t,r,o,0,u,c),v!==p&&(se(v),de(p,s,c))}(e,n,o,u,c,s,p):8&h?function(e,n,r,o,i,a,u){var c=!0,s=n.props||f,d=n.ref,p=e.props,v=!t(d),h=e.children;if(v&&l(d.onComponentShouldUpdate)&&(c=d.onComponentShouldUpdate(p,s)),!1!==c){v&&l(d.onComponentWillUpdate)&&d.onComponentWillUpdate(p,s);var g=n.type,m=A(32768&n.flags?g.render(s,d,o):g(s,o));we(h,m,r,o,i,a,u),n.children=m,v&&l(d.onComponentDidUpdate)&&d.onComponentDidUpdate(p,s)}else n.children=h}(e,n,o,u,c,s,p):16&h?function(e,n){var t=n.children,r=n.dom=e.dom;t!==e.children&&(r.nodeValue=t)}(e,n):512&h?n.dom=e.dom:8192&h?function(e,n,t,r,l,o){var i=e.children,a=n.children,u=e.childFlags,c=n.childFlags,f=null;12&c&&0===a.length&&(c=n.childFlags=2,a=n.children=U());var s=0!==(2&c);if(12&u){var d=i.length;(8&u&&8&c||s||!s&&a.length>d)&&(f=g(i[d-1],!1).nextSibling)}Fe(u,c,i,a,t,r,l,f,e,o)}(e,n,o,u,c,p):function(e,n,t,l){var o=e.ref,i=n.ref,a=n.children;if(Fe(e.childFlags,n.childFlags,e.children,a,o,t,!1,null,e,l),n.dom=e.dom,o!==i&&!r(a)){var u=a.dom;v(o,u),d(i,u)}}(e,n,u,p)}function Fe(e,n,t,r,l,o,i,a,u,c){switch(e){case 2:switch(n){case 2:we(t,r,l,o,i,a,c);break;case 1:pe(t,l);break;case 16:ve(t),C(l,r);break;default:!function(e,n,t,r,l,o){ve(e),$e(n,t,r,l,g(e,!0),o),m(e,t)}(t,r,l,o,i,c)}break;case 1:switch(n){case 2:ye(r,l,o,i,a,c);break;case 1:break;case 16:C(l,r);break;default:$e(r,l,o,i,a,c)}break;case 16:switch(n){case 16:!function(e,n,t){e!==n&&(""!==e?t.firstChild.nodeValue=n:C(t,n))}(t,r,l);break;case 2:ge(l),ye(r,l,o,i,a,c);break;case 1:ge(l);break;default:ge(l),$e(r,l,o,i,a,c)}break;default:switch(n){case 16:he(t),C(l,r);break;case 2:me(l,u,t),ye(r,l,o,i,a,c);break;case 1:me(l,u,t);break;default:var f=0|t.length,s=0|r.length;0===f?s>0&&$e(r,l,o,i,a,c):0===s?me(l,u,t):8===n&&8===e?function(e,n,t,r,l,o,i,a,u,c){var f,s,d=o-1,p=i-1,v=0,h=e[v],m=n[v];e:{for(;h.key===m.key;){if(16384&m.flags&&(n[v]=m=S(m)),we(h,m,t,r,l,a,c),e[v]=m,++v>d||v>p)break e;h=e[v],m=n[v]}for(h=e[d],m=n[p];h.key===m.key;){if(16384&m.flags&&(n[p]=m=S(m)),we(h,m,t,r,l,a,c),e[d]=m,p--,v>--d||v>p)break e;h=e[d],m=n[p]}}if(v>d){if(v<=p)for(s=(f=p+1)p)for(;v<=d;)pe(e[v++],t);else!function(e,n,t,r,l,o,i,a,u,c,f,s,d){var p,v,h,m=0,b=a,y=a,C=o-a+1,$=i-a+1,w=new Int32Array($+1),F=C===r,P=!1,x=0,V=0;if(l<4||(C|$)<32)for(m=b;m<=o;++m)if(p=e[m],V<$){for(a=y;a<=i;a++)if(v=n[a],p.key===v.key){if(w[a-y]=m+1,F)for(F=!1;ba?P=!0:x=a,16384&v.flags&&(n[a]=v=S(v)),we(p,v,u,t,c,f,d),++V;break}!F&&a>i&&pe(p,u)}else F||pe(p,u);else{var N={};for(m=y;m<=i;++m)N[n[m].key]=m;for(m=b;m<=o;++m)if(p=e[m],V<$)if(void 0!==(a=N[p.key])){if(F)for(F=!1;m>b;)pe(e[b++],u);w[a-y]=m+1,x>a?P=!0:x=a,16384&(v=n[a]).flags&&(n[a]=v=S(v)),we(p,v,u,t,c,f,d),++V}else F||pe(p,u);else F||pe(p,u)}if(F)me(u,s,e),$e(n,u,t,c,f,d);else if(P){var L=function(e){var n=0,t=0,r=0,l=0,o=0,i=0,a=0,u=e.length;for(u>Pe&&(Pe=u,le=new Int32Array(u),oe=new Int32Array(u));t>1]]0&&(oe[t]=le[o-1]),le[o]=t)}o=l+1;var c=new Int32Array(o);for(i=le[o-1];o-- >0;)c[o]=i,i=oe[i],le[o]=0;return c}(w);for(a=L.length-1,m=$-1;m>=0;m--)0===w[m]?(16384&(v=n[x=m+y]).flags&&(n[x]=v=S(v)),ye(v,u,t,c,(h=x+1)=0;m--)0===w[m]&&(16384&(v=n[x=m+y]).flags&&(n[x]=v=S(v)),ye(v,u,t,c,(h=x+1)i?i:o,d=0;di)for(d=s;d0&&function(e){for(var n;void 0!==(n=e.shift());)n()}(i),l(r)&&r(),l(y.renderComplete)&&y.renderComplete(a,n)}(e,n,r,o)}"undefined"!==typeof document&&window.Node&&(Node.prototype.$EV=null,Node.prototype.$V=null),"undefined"!==typeof Promise&&Promise.resolve().then.bind(Promise.resolve()),uibench.init("Inferno","7.3.3");var Ve={onComponentShouldUpdate:function(e,n){return e!==n}};function Ne(e){return x(1,"li","TreeLeaf",e.children,16,null,null,null)}function Le(e){for(var n=e.data,t=n.children.length,r=new Array(t),l=0;l0,v=i(d),h=o(d)&&"$"===d[0];p||v||h?(a=a||l.slice(0,f),(p||h)&&(s=S(s)),(v||h)&&(s.key="$"+f),a.push(s)):a&&a.push(s),s.flags|=65536}}u=0===(a=a||l).length?1:8}else(a=l).flags|=65536,81920&l.flags&&(a=S(l)),u=2;t.children=a,t.childFlags=u}(v,v.children),v}function V(e,n,r,l,o){var i=new P(1,null,null,e=function(e,n){if(12&e)return e;if(n.prototype&&n.prototype.render)return 4;if(n.render)return 32776;return 8}(e,n),l,function(e,n,r){var l=(32768&e?n.render:n).defaultProps;if(t(l))return r;if(t(r))return a(l,null);return w(r,l)}(e,n,r),function(e,n,r){if(4&e)return r;var l=(32768&e?n.render:n).defaultHooks;if(t(l))return r;if(t(r))return l;return w(r,l)}(e,n,o),n);return y.createVNode&&y.createVNode(i),i}function N(e,n){return new P(1,t(e)||!0===e||!1===e?"":e,null,16,n,null,null,null)}function L(e,n,t){var r=x(8192,8192,null,e,n,null,t,null);switch(r.childFlags){case 1:r.children=U(),r.childFlags=2;break;case 16:r.children=[N(e)],r.childFlags=4}return r}function S(e){var n=-16385&e.flags,t=e.props;if(14&n&&!i(t)){var r=t;for(var l in t={},r)t[l]=r[l]}if(0===(8192&n))return new P(e.childFlags,e.children,e.className,n,e.key,t,e.ref,e.type);return function(e){var n,t=e.children,r=e.childFlags;if(2===r)n=S(t);else if(12&r){n=[];for(var l=0,o=t.length;l-1&&r.options[a]&&(u=r.options[a].value),l&&t(u)&&(u=n.defaultValue),function n(r,l){if("option"===r.type)!function(n,r){var l=n.props||f,o=n.dom;o.value=l.value,l.value===r||e(r)&&-1!==r.indexOf(l.value)?o.selected=!0:t(r)&&t(l.selected)||(o.selected=l.selected||!1)}(r,l);else{var o=r.children,i=r.flags;if(4&i)n(o.$LI,l);else if(8&i)n(o,l);else if(2===r.childFlags)n(o,l);else if(12&r.childFlags)for(var a=0,u=o.length;a0);if(t(f)||""===f||(l?v.setAttribute("class",f):v.className=f),16===d)C(v,s);else if(1!==d){var h=l&&"foreignObject"!==e.type;2===d?(16384&s.flags&&(e.children=s=S(s)),ye(s,v,r,h,null,a)):8!==d&&4!==d||$e(s,v,r,h,null,a)}i(n)||p(n,v,o),i(c)||function(e,n,t,r,l){var o=!1,i=(448&n)>0;for(var a in i&&(o=fe(t))&&function(e,n,t){64&e?function(e,n){Q(n.type)?(z(e,"change",Z),z(e,"click",ee)):z(e,"input",Y)}(n,t):256&e?function(e){z(e,"change",te)}(n):128&e&&function(e,n){z(e,"input",ie),n.onChange&&z(e,"change",ae)}(n,t)}(n,r,t),t)ke(a,null,t[a],r,l,o,null);i&&ce(n,e,r,t,!0,o)}(e,u,c,v,l),de(e.ref,v,a)}(e,n,r,o,a,u):4&c?function(e,n,t,r,o,a){var u=function(e,n,t,r,o,a){var u=new n(t,r),c=u.$N=Boolean(n.getDerivedStateFromProps||u.getSnapshotBeforeUpdate);if(u.$SVG=o,u.$L=a,e.children=u,u.$BS=!1,u.context=r,u.props===f&&(u.props=t),c)u.state=b(u,t,u.state);else if(l(u.componentWillMount)){u.$BR=!0,u.componentWillMount();var s=u.$PS;if(!i(s)){var d=u.state;if(i(d))u.state=s;else for(var p in s)d[p]=s[p];u.$PS=null}u.$BR=!1}return u.$LI=be(u,t,r),u}(e,e.type,e.props||f,t,r,a);ye(u.$LI,n,u.$CX,r,o,a),function(e,n,t){de(e,n,t),l(n.componentDidMount)&&t.push(function(e){return function(){e.componentDidMount()}}(n))}(e.ref,u,a)}(e,n,r,o,a,u):8&c?(function(e,n,t,r,l,o){ye(e.children=A(function(e,n){return 32768&e.flags?e.type.render(e.props||f,e.ref,n):e.type(e.props||f,n)}(e,t)),n,t,r,l,o)}(e,n,r,o,a,u),function(e,n){var r=e.ref;t(r)||(F(r.onComponentWillMount,e.props||f),l(r.onComponentDidMount)&&n.push(function(e,n){return function(){e.onComponentDidMount(g(n,!0),n.props||f)}}(r,e)))}(e,u)):512&c||16&c?Ce(e,n,a):8192&c?function(e,n,t,r,l,o){var i=e.children,a=e.childFlags;12&a&&0===i.length&&(a=e.childFlags=2,i=e.children=U()),2===a?ye(i,t,l,r,l,o):$e(i,t,n,r,l,o)}(e,r,n,o,a,u):1024&c&&function(e,n,t,r,l){ye(e.children,e.ref,n,!1,null,l);var o=U();Ce(o,t,r),e.dom=o.dom}(e,r,n,a,u)}function Ce(e,n,t){var r=e.dom=document.createTextNode(e.children);i(n)||p(n,r,t)}function $e(e,n,t,r,l,o){for(var i=0;i0,c!==s){var v=c||f;if((a=s||f)!==f)for(var h in(d=(448&o)>0)&&(p=fe(a)),a){var g=v[h],m=a[h];g!==m&&ke(h,g,m,u,l,p,e)}if(v!==f)for(var k in v)t(a[k])&&!t(v[k])&&ke(k,v[k],null,u,l,p,e)}var b=n.children,y=n.className;e.className!==y&&(t(y)?u.removeAttribute("class"):l?u.setAttribute("class",y):u.className=y),4096&o?function(e,n){e.textContent!==n&&(e.textContent=n)}(u,b):Fe(e.childFlags,n.childFlags,e.children,b,u,r,l&&"foreignObject"!==n.type,null,e,i),d&&ce(o,n,u,a,!1,p);var C=n.ref,$=e.ref;$!==C&&(se($),de(C,u,i))}(e,n,u,c,h,p):4&h?function(e,n,t,r,o,u,c){var s=n.children=e.children;if(i(s))return;s.$L=c;var d=n.props||f,p=n.ref,v=e.ref,h=s.state;if(!s.$N){if(l(s.componentWillReceiveProps)){if(s.$BR=!0,s.componentWillReceiveProps(d,r),s.$UN)return;s.$BR=!1}i(s.$PS)||(h=a(h,s.$PS),s.$PS=null)}(function(e,n,t,r,o,i,u,c,f){var s=e.state,d=e.props,p=Boolean(e.$N),v=l(e.shouldComponentUpdate);if(p&&(n=b(e,t,n!==s?a(s,n):n)),!v||v&&e.shouldComponentUpdate(t,n,o)){!p&&l(e.componentWillUpdate)&&e.componentWillUpdate(t,n,o),e.props=t,e.state=n,e.context=o;var h=null,g=be(e,t,o);p&&l(e.getSnapshotBeforeUpdate)&&(h=e.getSnapshotBeforeUpdate(d,s)),we(e.$LI,g,r,e.$CX,i,c,f),e.$LI=g,l(e.componentDidUpdate)&&function(e,n,t,r,l){l.push((function(){e.componentDidUpdate(n,t,r)}))}(e,d,s,h,f)}else e.props=t,e.state=n,e.context=o})(s,h,d,t,r,o,0,u,c),v!==p&&(se(v),de(p,s,c))}(e,n,o,u,c,s,p):8&h?function(e,n,r,o,i,a,u){var c=!0,s=n.props||f,d=n.ref,p=e.props,v=!t(d),h=e.children;if(v&&l(d.onComponentShouldUpdate)&&(c=d.onComponentShouldUpdate(p,s)),!1!==c){v&&l(d.onComponentWillUpdate)&&d.onComponentWillUpdate(p,s);var g=n.type,m=A(32768&n.flags?g.render(s,d,o):g(s,o));we(h,m,r,o,i,a,u),n.children=m,v&&l(d.onComponentDidUpdate)&&d.onComponentDidUpdate(p,s)}else n.children=h}(e,n,o,u,c,s,p):16&h?function(e,n){var t=n.children,r=n.dom=e.dom;t!==e.children&&(r.nodeValue=t)}(e,n):512&h?n.dom=e.dom:8192&h?function(e,n,t,r,l,o){var i=e.children,a=n.children,u=e.childFlags,c=n.childFlags,f=null;12&c&&0===a.length&&(c=n.childFlags=2,a=n.children=U());var s=0!==(2&c);if(12&u){var d=i.length;(8&u&&8&c||s||!s&&a.length>d)&&(f=g(i[d-1],!1).nextSibling)}Fe(u,c,i,a,t,r,l,f,e,o)}(e,n,o,u,c,p):function(e,n,t,l){var o=e.ref,i=n.ref,a=n.children;if(Fe(e.childFlags,n.childFlags,e.children,a,o,t,!1,null,e,l),n.dom=e.dom,o!==i&&!r(a)){var u=a.dom;v(o,u),d(i,u)}}(e,n,u,p)}function Fe(e,n,t,r,l,o,i,a,u,c){switch(e){case 2:switch(n){case 2:we(t,r,l,o,i,a,c);break;case 1:pe(t,l);break;case 16:ve(t),C(l,r);break;default:!function(e,n,t,r,l,o){ve(e),$e(n,t,r,l,g(e,!0),o),m(e,t)}(t,r,l,o,i,c)}break;case 1:switch(n){case 2:ye(r,l,o,i,a,c);break;case 1:break;case 16:C(l,r);break;default:$e(r,l,o,i,a,c)}break;case 16:switch(n){case 16:!function(e,n,t){e!==n&&(""!==e?t.firstChild.nodeValue=n:C(t,n))}(t,r,l);break;case 2:ge(l),ye(r,l,o,i,a,c);break;case 1:ge(l);break;default:ge(l),$e(r,l,o,i,a,c)}break;default:switch(n){case 16:he(t),C(l,r);break;case 2:me(l,u,t),ye(r,l,o,i,a,c);break;case 1:me(l,u,t);break;default:var f=0|t.length,s=0|r.length;0===f?s>0&&$e(r,l,o,i,a,c):0===s?me(l,u,t):8===n&&8===e?function(e,n,t,r,l,o,i,a,u,c){var f,s,d=o-1,p=i-1,v=0,h=e[v],m=n[v];e:{for(;h.key===m.key;){if(16384&m.flags&&(n[v]=m=S(m)),we(h,m,t,r,l,a,c),e[v]=m,++v>d||v>p)break e;h=e[v],m=n[v]}for(h=e[d],m=n[p];h.key===m.key;){if(16384&m.flags&&(n[p]=m=S(m)),we(h,m,t,r,l,a,c),e[d]=m,p--,v>--d||v>p)break e;h=e[d],m=n[p]}}if(v>d){if(v<=p)for(s=(f=p+1)p)for(;v<=d;)pe(e[v++],t);else!function(e,n,t,r,l,o,i,a,u,c,f,s,d){var p,v,h,m=0,b=a,y=a,C=o-a+1,$=i-a+1,w=new Int32Array($+1),F=C===r,P=!1,x=0,V=0;if(l<4||(C|$)<32)for(m=b;m<=o;++m)if(p=e[m],V<$){for(a=y;a<=i;a++)if(v=n[a],p.key===v.key){if(w[a-y]=m+1,F)for(F=!1;ba?P=!0:x=a,16384&v.flags&&(n[a]=v=S(v)),we(p,v,u,t,c,f,d),++V;break}!F&&a>i&&pe(p,u)}else F||pe(p,u);else{var N={};for(m=y;m<=i;++m)N[n[m].key]=m;for(m=b;m<=o;++m)if(p=e[m],V<$)if(void 0!==(a=N[p.key])){if(F)for(F=!1;m>b;)pe(e[b++],u);w[a-y]=m+1,x>a?P=!0:x=a,16384&(v=n[a]).flags&&(n[a]=v=S(v)),we(p,v,u,t,c,f,d),++V}else F||pe(p,u);else F||pe(p,u)}if(F)me(u,s,e),$e(n,u,t,c,f,d);else if(P){var L=function(e){var n=0,t=0,r=0,l=0,o=0,i=0,a=0,u=e.length;for(u>Pe&&(Pe=u,le=new Int32Array(u),oe=new Int32Array(u));t>1]]0&&(oe[t]=le[o-1]),le[o]=t)}o=l+1;var c=new Int32Array(o);for(i=le[o-1];o-- >0;)c[o]=i,i=oe[i],le[o]=0;return c}(w);for(a=L.length-1,m=$-1;m>=0;m--)0===w[m]?(16384&(v=n[x=m+y]).flags&&(n[x]=v=S(v)),ye(v,u,t,c,(h=x+1)=0;m--)0===w[m]&&(16384&(v=n[x=m+y]).flags&&(n[x]=v=S(v)),ye(v,u,t,c,(h=x+1)i?i:o,d=0;di)for(d=s;d0&&function(e){for(var n;void 0!==(n=e.shift());)n()}(i),l(r)&&r(),l(y.renderComplete)&&y.renderComplete(a,n)}(e,n,r,o)}"undefined"!==typeof document&&window.Node&&(Node.prototype.$EV=null,Node.prototype.$V=null),"undefined"!==typeof Promise&&Promise.resolve().then.bind(Promise.resolve()),uibench.init("Inferno","7.4.0");var Ve={onComponentShouldUpdate:function(e,n){return e!==n}};function Ne(e){return x(1,"li","TreeLeaf",e.children,16,null,null,null)}function Le(e){for(var n=e.data,t=n.children.length,r=new Array(t),l=0;l (https://terinstock.com/)", @@ -24,11 +24,11 @@ ], "repository": "https://github.com/infernojs/inferno", "dependencies": { - "inferno": "7.3.3" + "inferno": "7.4.0" }, "devDependencies": { - "inferno-shared": "7.3.3", - "inferno-vnode-flags": "7.3.3" + "inferno-shared": "7.4.0", + "inferno-vnode-flags": "7.4.0" }, "rollup": { "bundledDependencies": [ diff --git a/packages/inferno-mobx/package.json b/packages/inferno-mobx/package.json index 8b31909d2..158b369fe 100644 --- a/packages/inferno-mobx/package.json +++ b/packages/inferno-mobx/package.json @@ -1,6 +1,6 @@ { "name": "inferno-mobx", - "version": "7.3.3", + "version": "7.4.0", "license": "MIT", "description": "Official Inferno bindings for Mobx", "author": { @@ -36,11 +36,11 @@ }, "dependencies": { "hoist-non-inferno-statics": "^1.1.3", - "inferno": "7.3.3", - "inferno-create-class": "7.3.3", - "inferno-create-element": "7.3.3", - "inferno-shared": "7.3.3", - "inferno-vnode-flags": "7.3.3", + "inferno": "7.4.0", + "inferno-create-class": "7.4.0", + "inferno-create-element": "7.4.0", + "inferno-shared": "7.4.0", + "inferno-vnode-flags": "7.4.0", "mobx": "*" }, "rollup": { diff --git a/packages/inferno-redux/package.json b/packages/inferno-redux/package.json index 303695506..6ee88c07b 100644 --- a/packages/inferno-redux/package.json +++ b/packages/inferno-redux/package.json @@ -1,6 +1,6 @@ { "name": "inferno-redux", - "version": "7.3.3", + "version": "7.4.0", "license": "MIT", "description": "Official Inferno bindings for Redux", "author": { @@ -36,12 +36,12 @@ }, "dependencies": { "hoist-non-inferno-statics": "^1.1.3", - "inferno": "7.3.3" + "inferno": "7.4.0" }, "devDependencies": { - "inferno-create-class": "7.3.3", - "inferno-create-element": "7.3.3", - "inferno-shared": "7.3.3", + "inferno-create-class": "7.4.0", + "inferno-create-element": "7.4.0", + "inferno-shared": "7.4.0", "redux": "^4" }, "rollup": { diff --git a/packages/inferno-router/package.json b/packages/inferno-router/package.json index 56ea20e61..051be406f 100644 --- a/packages/inferno-router/package.json +++ b/packages/inferno-router/package.json @@ -1,6 +1,6 @@ { "name": "inferno-router", - "version": "7.3.3", + "version": "7.4.0", "license": "MIT", "description": "Provides routing functionality for Inferno", "author": { @@ -38,11 +38,11 @@ "dependencies": { "history": "^4.10.1", "hoist-non-inferno-statics": "^1.1.3", - "inferno": "7.3.3", + "inferno": "7.4.0", "path-to-regexp-es6": "1.7.0" }, "devDependencies": { - "inferno-vnode-flags": "7.3.3", + "inferno-vnode-flags": "7.4.0", "mobx": "*" }, "rollup": { diff --git a/packages/inferno-server/package.json b/packages/inferno-server/package.json index 6946af19b..9d3d18975 100644 --- a/packages/inferno-server/package.json +++ b/packages/inferno-server/package.json @@ -1,6 +1,6 @@ { "name": "inferno-server", - "version": "7.3.3", + "version": "7.4.0", "license": "MIT", "description": "Provides methods to render HTML strings from Inferno elements", "author": { @@ -41,15 +41,15 @@ "node": ">=8" }, "devDependencies": { - "inferno-create-class": "7.3.3", - "inferno-create-element": "7.3.3", - "inferno-hydrate": "7.3.3", - "inferno-shared": "7.3.3", - "inferno-vnode-flags": "7.3.3", + "inferno-create-class": "7.4.0", + "inferno-create-element": "7.4.0", + "inferno-hydrate": "7.4.0", + "inferno-shared": "7.4.0", + "inferno-vnode-flags": "7.4.0", "mobx": "*" }, "dependencies": { - "inferno": "7.3.3" + "inferno": "7.4.0" }, "rollup": { "bundledDependencies": [ diff --git a/packages/inferno-shared/package.json b/packages/inferno-shared/package.json index 7f9ea99b4..8a703f5ed 100644 --- a/packages/inferno-shared/package.json +++ b/packages/inferno-shared/package.json @@ -1,6 +1,6 @@ { "name": "inferno-shared", - "version": "7.3.3", + "version": "7.4.0", "license": "MIT", "description": "Helpers functions for Inferno", "author": { diff --git a/packages/inferno-test-utils/package.json b/packages/inferno-test-utils/package.json index 1de7c0067..30c4fe18e 100644 --- a/packages/inferno-test-utils/package.json +++ b/packages/inferno-test-utils/package.json @@ -1,6 +1,6 @@ { "name": "inferno-test-utils", - "version": "7.3.3", + "version": "7.4.0", "license": "MIT", "description": "Suite of utilities for testing Inferno applications", "author": { @@ -21,11 +21,11 @@ "utils" ], "devDependencies": { - "inferno-shared": "7.3.3", - "inferno-vnode-flags": "7.3.3" + "inferno-shared": "7.4.0", + "inferno-vnode-flags": "7.4.0" }, "dependencies": { - "inferno": "7.3.3" + "inferno": "7.4.0" }, "rollup": { "bundledDependencies": [ diff --git a/packages/inferno-utils/package.json b/packages/inferno-utils/package.json index 457258610..4c57ce430 100644 --- a/packages/inferno-utils/package.json +++ b/packages/inferno-utils/package.json @@ -1,13 +1,13 @@ { "name": "inferno-utils", - "version": "7.3.3", + "version": "7.4.0", "description": "Meta test utilities which are not for userland", "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, "devDependencies": { - "inferno-shared": "7.3.3", - "inferno-vnode-flags": "7.3.3" + "inferno-shared": "7.4.0", + "inferno-vnode-flags": "7.4.0" }, "keywords": [], "author": "", diff --git a/packages/inferno-vnode-flags/package.json b/packages/inferno-vnode-flags/package.json index 00ad7fbe2..c8cd8ba51 100644 --- a/packages/inferno-vnode-flags/package.json +++ b/packages/inferno-vnode-flags/package.json @@ -1,6 +1,6 @@ { "name": "inferno-vnode-flags", - "version": "7.3.3", + "version": "7.4.0", "license": "MIT", "description": "Provides an enum of all possible VNode Flags used when calling Inferno.createVNode", "author": { diff --git a/packages/inferno/package.json b/packages/inferno/package.json index adb6f94d6..09fe690c1 100644 --- a/packages/inferno/package.json +++ b/packages/inferno/package.json @@ -1,6 +1,6 @@ { "name": "inferno", - "version": "7.3.3", + "version": "7.4.0", "license": "MIT", "description": "An extremely fast, React-like JavaScript library for building modern user interfaces", "author": { @@ -53,11 +53,11 @@ "typings": "dist/index.d.ts", "repository": "https://github.com/infernojs/inferno", "devDependencies": { - "inferno-utils": "7.3.3" + "inferno-utils": "7.4.0" }, "dependencies": { - "inferno-shared": "7.3.3", - "inferno-vnode-flags": "7.3.3", + "inferno-shared": "7.4.0", + "inferno-vnode-flags": "7.4.0", "opencollective-postinstall": "^2.0.2" } }