From d44205cfcf802fd533cc9bd4b27d973fa44cfefe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sampo=20Kivist=C3=B6?= Date: Wed, 24 Nov 2021 20:46:45 +0200 Subject: [PATCH] v8.0.0-alpha.3 --- docs/1kcomponents/dist/bundle.js | 2 +- docs/dbmonster/dist/bundle.js | 2 +- docs/event-test/dist/bundle.js | 2 +- 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-animation/package.json | 12 +++++------ packages/inferno-clone-vnode/package.json | 8 +++---- packages/inferno-compat/package.json | 22 ++++++++++---------- 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 +++---- 25 files changed, 88 insertions(+), 88 deletions(-) diff --git a/docs/1kcomponents/dist/bundle.js b/docs/1kcomponents/dist/bundle.js index 8a8d6fab1..1a7fe2395 100644 --- a/docs/1kcomponents/dist/bundle.js +++ b/docs/1kcomponents/dist/bundle.js @@ -1 +1 @@ -!function(){"use strict";function e(){return e=Object.assign||function(e){for(var n=1;n0,p=d(s),b=l(s)&&s[0]===L;h||p||b?(t=t||n.slice(0,o),(h||b)&&(u=R(u)),(p||b)&&(u.key=L+o),t.push(u)):t&&t.push(u),u.flags|=65536}}a=0===(t=t||n).length?1:8}else(t=n).flags|=65536,81920&n.flags&&(t=R(n)),a=2;return e.children=t,e.childFlags=a,e}function G(e){if(i(e)||r(e))return B(e,null);if(f(e))return O(e,0,null);return 16384&e.flags?R(e):e}var Q="http://www.w3.org/1999/xlink",X="http://www.w3.org/XML/1998/namespace",K={"xlink:actuate":Q,"xlink:arcrole":Q,"xlink:href":Q,"xlink:role":Q,"xlink:show":Q,"xlink:title":Q,"xlink:type":Q,"xml:base":X,"xml:lang":X,"xml:space":X};function z(e){return{onClick:e,onDblClick:e,onFocusIn:e,onFocusOut:e,onKeyDown:e,onKeyPress:e,onKeyUp:e,onMouseDown:e,onMouseMove:e,onMouseUp:e,onTouchEnd:e,onTouchMove:e,onTouchStart:e}}var J=z(0),Y=z(null),Z=z(!0);function ee(e,n){var t=n.$EV;return t||(t=n.$EV=z(null)),t[e]||1===++J[e]&&(Y[e]=ue(e)),t}function ne(e,n){var t=n.$EV;t&&t[e]&&(0===--J[e]&&(document.removeEventListener(p(e),Y[e]),Y[e]=null),t[e]=null)}function te(e,n,t,a){if(o(t))ee(e,a)[e]=t;else if(s(t)){if(T(n,t))return;ee(e,a)[e]=t}else ne(e,a)}function ae(e){return o(e.composedPath)?e.composedPath()[0]:e.target}function fe(e,n,t,a){var f=ae(e);do{if(n&&f.disabled)return;var r=f.$EV;if(r){var c=r[t];if(c&&(a.dom=f,c.event?c.event(c.data,e):c(e),e.cancelBubble))return}f=f.parentNode}while(!d(f))}function re(){this.cancelBubble=!0,this.immediatePropagationStopped||this.stopImmediatePropagation()}function ce(){return this.defaultPrevented}function ie(){return this.cancelBubble}function oe(e){var n={dom:document};return e.isDefaultPrevented=ce,e.isPropagationStopped=ie,e.stopPropagation=re,Object.defineProperty(e,"currentTarget",{configurable:!0,get:function(){return n.dom}}),n}function le(e){return function(n){if(0!==n.button)return void n.stopPropagation();fe(n,!0,e,oe(n))}}function de(e){return function(n){fe(n,!1,e,oe(n))}}function ue(e){var n="onClick"===e||"onDblClick"===e?le(e):de(e);return document.addEventListener(p(e),n),n}function se(e,n){var t=document.createElement("i");return t.innerHTML=n,t.innerHTML===e.innerHTML}function he(e,n,t){if(e[n]){var a=e[n];a.event?a.event(a.data,t):a(t)}else{var f=n.toLowerCase();e[f]&&e[f](t)}}function pe(e,n){var t=function(t){var a=this.$V;if(!a)return;var f=a.props||h,r=a.dom;if(l(e))he(f,e,t);else for(var c=0;c-1&&n.options[r]&&(i=n.options[r].value),t&&c(i)&&(i=e.defaultValue),ke(a,i)}}var Se,Fe,Te=pe("onInput",Le),Ue=pe("onChange");function Ne(e,n){be(e,"input",Te),n.onChange&&be(e,"change",Ue)}function Le(e,n,t){var a=e.value,f=n.value;if(c(a)){if(t){var r=e.defaultValue;c(r)||r===f||(n.defaultValue=r,n.value=r)}}else f!==a&&(n.defaultValue=a,n.value=a)}function Ve(e,n,t,a,f,r){64&e?$e(a,t):256&e?Pe(a,t,f,n):128&e&&Le(a,t,f),r&&(t.$V=n)}function _e(e,n,t){64&e?xe(n,t):256&e?Me(n):128&e&&Ne(n,t)}function Ie(e){return e.type&&ve(e.type)?!c(e.checked):!c(e.value)}function He(e){e&&!N(e,null)&&e.current&&(e.current=null)}function Ee(e,n,t){e&&(o(e)||void 0!==e.current)&&t.push((function(){N(e,n)||void 0===e.current||(e.current=n)}))}function Ae(e,n){Be(e),w(e,n)}function Be(e){var n,t=e.flags,a=e.children;if(481&t){n=e.ref;var f=e.props;He(n);var r=e.childFlags;if(!d(f))for(var i=Object.keys(f),l=0,u=i.length;l0;for(var i in c&&(r=Ie(t))&&_e(n,a,t),t)Qe(i,null,t[i],a,f,r,null);c&&Ve(n,e,a,t,!0,r)}function Ke(e,n,t){var a=G(e.render(n,e.state,t)),f=t;return o(e.getChildContext)&&(f=u(t,e.getChildContext())),e.$CX=f,a}function ze(e,n,t,a,f,r){var c=new n(t,a),i=c.$N=Boolean(n.getDerivedStateFromProps||c.getSnapshotBeforeUpdate);if(c.$SVG=f,c.$L=r,e.children=c,c.$BS=!1,c.context=a,c.props===h&&(c.props=t),i)c.state=M(c,t,c.state);else if(o(c.componentWillMount)){c.$BR=!0,c.componentWillMount();var l=c.$PS;if(!d(l)){var u=c.state;if(d(u))c.state=l;else for(var s in l)u[s]=l[s];c.$PS=null}c.$BR=!1}return c.$LI=Ke(c,t,a),c}function Je(e,n){var t=e.props||h;return 32768&e.flags?e.type.render(t,e.ref,n):e.type(t,n)}function Ye(e,n,t,a,f,r){var c=e.flags|=16384;481&c?tn(e,n,t,a,f,r):4&c?fn(e,n,t,a,f,r):8&c?(rn(e,n,t,a,f,r),dn(e,r)):512&c||16&c?nn(e,n,f):8192&c?en(e,t,n,a,f,r):1024&c&&Ze(e,t,n,f,r)}function Ze(e,n,t,a,f){Ye(e.children,e.ref,n,!1,null,f);var r=W();nn(r,t,a),e.dom=r.dom}function en(e,n,t,a,f,r){var c=e.children,i=e.childFlags;12&i&&0===c.length&&(i=e.childFlags=2,c=e.children=W()),2===i?Ye(c,t,f,a,f,r):an(c,t,n,a,f,r)}function nn(e,n,t){var a=e.dom=document.createTextNode(e.children);d(n)||v(n,a,t)}function tn(e,n,t,a,f,r){var i=e.flags,o=e.props,l=e.className,u=e.childFlags,s=e.dom=m(e.type,a=a||(32&i)>0),h=e.children;if(c(l)||""===l||(a?s.setAttribute("class",l):s.className=l),16===u)F(s,h);else if(1!==u){var p=a&&"foreignObject"!==e.type;2===u?(16384&h.flags&&(e.children=h=R(h)),Ye(h,s,t,p,null,r)):8!==u&&4!==u||an(h,s,t,p,null,r)}d(n)||v(n,s,f),d(o)||Xe(e,i,o,s,a),Ee(e.ref,s,r)}function an(e,n,t,a,f,r){for(var c=0;cs)&&(d=k(c[s-1],!1).nextSibling)}yn(o,l,c,i,t,a,f,d,e,r)}function vn(e,n,t,a){var f=e.ref,r=n.ref,c=n.children;if(yn(e.childFlags,n.childFlags,e.children,c,f,t,!1,null,e,a),n.dom=e.dom,f!==r&&!i(c)){var o=c.dom;y(f,o),b(r,o)}}function mn(e,n,t,a,f,r){var i,o=n.dom=e.dom,l=e.props,d=n.props,u=!1,s=!1;if(a=a||(32&f)>0,l!==d){var p=l||h;if((i=d||h)!==h)for(var b in(u=(448&f)>0)&&(s=Ie(i)),i){var v=p[b],m=i[b];v!==m&&Qe(b,v,m,o,a,s,e)}if(p!==h)for(var g in p)c(i[g])&&!c(p[g])&&Qe(g,p[g],null,o,a,s,e)}var y=n.children,x=n.className;e.className!==x&&(c(x)?o.removeAttribute("class"):a?o.setAttribute("class",x):o.className=x),4096&f?pn(o,y):yn(e.childFlags,n.childFlags,e.children,y,o,t,a&&"foreignObject"!==n.type,null,e,r),u&&Ve(f,n,o,i,!1,s);var $=n.ref,k=e.ref;k!==$&&(He(k),Ee($,o,r))}function gn(e,n,t,a,f,r){Be(e),an(n,t,a,f,k(e,!0),r),w(e,t)}function yn(e,n,t,a,f,r,c,i,o,l){switch(e){case 2:switch(n){case 2:sn(t,a,f,r,c,i,l);break;case 1:Ae(t,f);break;case 16:Be(t),F(f,a);break;default:gn(t,a,f,r,c,l)}break;case 1:switch(n){case 2:Ye(a,f,r,c,i,l);break;case 1:break;case 16:F(f,a);break;default:an(a,f,r,c,i,l)}break;case 16:switch(n){case 16:hn(t,a,f);break;case 2:De(f),Ye(a,f,r,c,i,l);break;case 1:De(f);break;default:De(f),an(a,f,r,c,i,l)}break;default:switch(n){case 16:Oe(t),F(f,a);break;case 2:Re(f,o,t),Ye(a,f,r,c,i,l);break;case 1:Re(f,o,t);break;default:var d=0|t.length,u=0|a.length;0===d?u>0&&an(a,f,r,c,i,l):0===u?Re(f,o,t):8===n&&8===e?Pn(t,a,f,r,c,d,u,i,o,l):Mn(t,a,f,r,c,d,u,i,l)}}}function xn(e,n,t,a,f){f.push((function(){e.componentDidUpdate(n,t,a)}))}function $n(e,n,t,a,f,r,c,i,l){var d=e.state,s=e.props,h=Boolean(e.$N),p=o(e.shouldComponentUpdate);if(h&&(n=M(e,t,n!==d?u(d,n):n)),c||!p||p&&e.shouldComponentUpdate(t,n,f)){!h&&o(e.componentWillUpdate)&&e.componentWillUpdate(t,n,f),e.props=t,e.state=n,e.context=f;var b=null,v=Ke(e,t,f);h&&o(e.getSnapshotBeforeUpdate)&&(b=e.getSnapshotBeforeUpdate(s,d)),sn(e.$LI,v,a,e.$CX,r,i,l),e.$LI=v,o(e.componentDidUpdate)&&xn(e,s,d,b,l)}else e.props=t,e.state=n,e.context=f}function kn(e,n,t,a,f,r,c){var i=n.children=e.children;if(d(i))return;i.$L=c;var l=n.props||h,s=n.ref,p=e.ref,b=i.state;if(!i.$N){if(o(i.componentWillReceiveProps)){if(i.$BR=!0,i.componentWillReceiveProps(l,a),i.$UN)return;i.$BR=!1}d(i.$PS)||(b=u(b,i.$PS),i.$PS=null)}$n(i,b,l,t,a,f,!1,r,c),p!==s&&(He(p),Ee(s,i,c))}function wn(e,n,t,a,f,r,i){var l=!0,d=n.props||h,u=n.ref,s=e.props,p=!c(u),b=e.children;if(p&&o(u.onComponentShouldUpdate)&&(l=u.onComponentShouldUpdate(s,d)),!1!==l){p&&o(u.onComponentWillUpdate)&&u.onComponentWillUpdate(s,d);var v=G(Je(n,a));sn(b,v,t,a,f,r,i),n.children=v,p&&o(u.onComponentDidUpdate)&&u.onComponentDidUpdate(s,d)}else n.children=b}function Cn(e,n){var t=n.children,a=n.dom=e.dom;t!==e.children&&(a.nodeValue=t)}function Mn(e,n,t,a,f,r,c,i,o){for(var l,d,u=r>c?c:r,s=0;sc)for(s=u;ss||p>h)break e;b=e[p],v=n[p]}for(b=e[s],v=n[h];b.key===v.key;){if(16384&v.flags&&(n[h]=v=R(v)),sn(b,v,t,a,f,i,l),e[s]=v,h--,p>--s||p>h)break e;b=e[s],v=n[h]}}if(p>s){if(p<=h)for(u=(d=h+1)h)for(;p<=s;)Ae(e[p++],t);else Sn(e,n,a,r,c,s,h,p,t,f,i,o,l)}function Sn(e,n,t,a,f,r,c,i,o,l,d,u,s){var h,p,b,v=0,m=i,g=i,y=r-i+1,x=c-i+1,$=new Int32Array(x+1),w=y===a,M=!1,P=0,S=0;if(f<4||(y|x)<32)for(v=m;v<=r;++v)if(h=e[v],Si?M=!0:P=i,16384&p.flags&&(n[i]=p=R(p)),sn(h,p,o,t,l,d,s),++S;break}!w&&i>c&&Ae(h,o)}else w||Ae(h,o);else{var F={};for(v=g;v<=c;++v)F[n[v].key]=v;for(v=m;v<=r;++v)if(h=e[v],Sm;)Ae(e[m++],o);$[i-g]=v+1,P>i?M=!0:P=i,16384&(p=n[i]).flags&&(n[i]=p=R(p)),sn(h,p,o,t,l,d,s),++S}else w||Ae(h,o);else w||Ae(h,o)}if(w)Re(o,u,e),an(n,o,t,l,d,s);else if(M){var T=Tn($);for(i=T.length-1,v=x-1;v>=0;v--)0===$[v]?(16384&(p=n[P=v+g]).flags&&(n[P]=p=R(p)),Ye(p,o,t,l,(b=P+1)=0;v--)0===$[v]&&(16384&(p=n[P=v+g]).flags&&(n[P]=p=R(p)),Ye(p,o,t,l,(b=P+1)Fn&&(Fn=o,Se=new Int32Array(o),Fe=new Int32Array(o));t>1]]0&&(Fe[t]=Se[r-1]),Se[r]=t)}r=f+1;var l=new Int32Array(r);for(c=Se[r-1];r-- >0;)l[r]=c,c=Fe[c],Se[r]=0;return l}"undefined"!==typeof document&&window.Node&&(Node.prototype.$EV=null,Node.prototype.$V=null);var Un=[],Nn="undefined"!==typeof Promise?Promise.resolve().then.bind(Promise.resolve()):function(e){window.setTimeout(e,0)},Ln=!1;function Vn(e,n,t,a){var f=e.$PS;if(o(n)&&(n=n(f?u(e.state,f):e.state,e.props,e.context)),c(f))e.$PS=n;else for(var r in n)f[r]=n[r];if(e.$BR)o(t)&&e.$L.push(t.bind(e));else{if(!P.v&&0===Un.length)return Hn(e,a),void(o(t)&&t.call(e));if(-1===Un.indexOf(e)&&Un.push(e),a&&(e.$F=!0),Ln||(Ln=!0,Nn(In)),o(t)){var i=e.$QU;i||(i=e.$QU=[]),i.push(t)}}}function _n(e){for(var n=e.$QU,t=0;tt&&(t=r),a+=r}var c=e[this._i],i=a/e.length;return new On(n,t,i,c)},e}(),Rn=[],Wn=-1,jn=(An=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)n.hasOwnProperty(t)&&(e[t]=n[t])},function(e,n){function t(){this.constructor=e}An(e,n),e.prototype=null===n?Object.create(n):(t.prototype=n.prototype,new t)}),qn=function(){function e(e){var n=this;this._sync=function(){n.sync(),n._dirty=!1},this.name=e,this.element=document.createElement("div"),this.element.style.cssText="padding: 2px;background-color: #020;font-family: monospace;font-size: 12px;color: #0f0",this._dirty=!1,this.invalidate()}return e.prototype.invalidate=function(){var e;this._dirty||(this._dirty=!0,e=this._sync,Rn.push(e),-1===Wn&&requestAnimationFrame((function(e){Wn=-1;var n=Rn;Rn=[];for(var t=0;t0&&(f+=.01652892561983471*(1e3/(r-a)-f)),a=r,n.addSample(f),t.invalidate(),requestAnimationFrame(e)}))}(),function(e){if(void 0===e&&(e=Bn.HideMin|Bn.HideMean),Xn(),void 0===performance.memory)return;var n=new Dn(100),t=new Gn("Memory",e,"MB",n);Qn.appendChild(t.element),function e(){n.addSample(Math.round(performance.memory.usedJSHeapSize/1048576)),t.invalidate(),setTimeout(e,30)}()}();var Zn=function(e){function t(n,t){var f;return(f=e.call(this,n,t)||this).state={numPoints:0},f.updateCount=f.updateCount.bind(a(f)),f}n(t,e);var f=t.prototype;return f.updateCount=function(e){this.setState({numPoints:e.target.value})},f.componentDidMount=function(){this.setState({numPoints:1e3})},f.render=function(e,n){return _(1,"div","app-wrapper",[A(2,nt,{count:n.numPoints},null,null),_(1,"div","controls",[B("# Points"),_(64,"input",null,null,1,{type:"range",min:10,max:1e4,value:n.numPoints,onInput:this.updateCount},null,null),n.numPoints],0,null,null,null),_(1,"div","about",[B("InfernoJS 1k Components Demo based on the Glimmer demo by "),_(1,"a",null,"Michael Lange",16,{href:"http://mlange.io",target:"_blank"},null,null),B(".")],4,null,null,null)],4,null,null,null)},t}(En),et=[0,3,0,1,2],nt=function(t){function a(e,n){var a;return(a=t.call(this,e,n)||this).layout=0,a.phyllotaxis=ut(100),a.grid=st(100),a.wave=ht(100),a.spiral=pt(100),a.points=[],a.step=0,a.numSteps=120,a}n(a,t);var f=a.prototype;return f.next=function(){var n=this;this.step=(this.step+1)%this.numSteps,0===this.step&&(this.layout=(this.layout+1)%et.length);var t=Math.min(1,this.step/(.8*this.numSteps)),a=et[this.layout],f=et[(this.layout+1)%et.length],r=ot(a),c=ot(f),i=lt(a),o=lt(f);this.points=this.points.map((function(n){var a=e({},n);return a.x=dt(a,t,r,c),a.y=dt(a,t,i,o),a})),this.setState(),requestAnimationFrame((function(){n.next()}))},f.setAnchors=function(e){var n=this;e.map((function(e,t){var a=mt(n.grid(t)),f=a[0],r=a[1],c=mt(n.wave(t)),i=c[0],o=c[1],l=mt(n.spiral(t)),d=l[0],u=l[1],s=mt(n.phyllotaxis(t)),h=s[0],p=s[1];Object.assign(e,{gx:f,gy:r,wx:i,wy:o,sx:d,sy:u,px:h,py:p})})),this.points=e},f.makePoints=function(e){for(var n=[],t=0;t0,p=d(s),b=l(s)&&s[0]===L;h||p||b?(t=t||n.slice(0,o),(h||b)&&(u=R(u)),(p||b)&&(u.key=L+o),t.push(u)):t&&t.push(u),u.flags|=65536}}a=0===(t=t||n).length?1:8}else(t=n).flags|=65536,81920&n.flags&&(t=R(n)),a=2;return e.children=t,e.childFlags=a,e}function G(e){if(i(e)||r(e))return B(e,null);if(f(e))return O(e,0,null);return 16384&e.flags?R(e):e}var Q="http://www.w3.org/1999/xlink",X="http://www.w3.org/XML/1998/namespace",K={"xlink:actuate":Q,"xlink:arcrole":Q,"xlink:href":Q,"xlink:role":Q,"xlink:show":Q,"xlink:title":Q,"xlink:type":Q,"xml:base":X,"xml:lang":X,"xml:space":X};function z(e){return{onClick:e,onDblClick:e,onFocusIn:e,onFocusOut:e,onKeyDown:e,onKeyPress:e,onKeyUp:e,onMouseDown:e,onMouseMove:e,onMouseUp:e,onTouchEnd:e,onTouchMove:e,onTouchStart:e}}var J=z(0),Y=z(null),Z=z(!0);function ee(e,n){var t=n.$EV;return t||(t=n.$EV=z(null)),t[e]||1===++J[e]&&(Y[e]=ue(e)),t}function ne(e,n){var t=n.$EV;t&&t[e]&&(0===--J[e]&&(document.removeEventListener(p(e),Y[e]),Y[e]=null),t[e]=null)}function te(e,n,t,a){if(o(t))ee(e,a)[e]=t;else if(s(t)){if(T(n,t))return;ee(e,a)[e]=t}else ne(e,a)}function ae(e){return o(e.composedPath)?e.composedPath()[0]:e.target}function fe(e,n,t,a){var f=ae(e);do{if(n&&f.disabled)return;var r=f.$EV;if(r){var c=r[t];if(c&&(a.dom=f,c.event?c.event(c.data,e):c(e),e.cancelBubble))return}f=f.parentNode}while(!d(f))}function re(){this.cancelBubble=!0,this.immediatePropagationStopped||this.stopImmediatePropagation()}function ce(){return this.defaultPrevented}function ie(){return this.cancelBubble}function oe(e){var n={dom:document};return e.isDefaultPrevented=ce,e.isPropagationStopped=ie,e.stopPropagation=re,Object.defineProperty(e,"currentTarget",{configurable:!0,get:function(){return n.dom}}),n}function le(e){return function(n){if(0!==n.button)return void n.stopPropagation();fe(n,!0,e,oe(n))}}function de(e){return function(n){fe(n,!1,e,oe(n))}}function ue(e){var n="onClick"===e||"onDblClick"===e?le(e):de(e);return document.addEventListener(p(e),n),n}function se(e,n){var t=document.createElement("i");return t.innerHTML=n,t.innerHTML===e.innerHTML}function he(e,n,t){if(e[n]){var a=e[n];a.event?a.event(a.data,t):a(t)}else{var f=n.toLowerCase();e[f]&&e[f](t)}}function pe(e,n){var t=function(t){var a=this.$V;if(!a)return;var f=a.props||h,r=a.dom;if(l(e))he(f,e,t);else for(var c=0;c-1&&n.options[r]&&(i=n.options[r].value),t&&c(i)&&(i=e.defaultValue),ke(a,i)}}var Se,Fe,Te=pe("onInput",Le),Ue=pe("onChange");function Ne(e,n){be(e,"input",Te),n.onChange&&be(e,"change",Ue)}function Le(e,n,t){var a=e.value,f=n.value;if(c(a)){if(t){var r=e.defaultValue;c(r)||r===f||(n.defaultValue=r,n.value=r)}}else f!==a&&(n.defaultValue=a,n.value=a)}function Ve(e,n,t,a,f,r){64&e?$e(a,t):256&e?Pe(a,t,f,n):128&e&&Le(a,t,f),r&&(t.$V=n)}function _e(e,n,t){64&e?xe(n,t):256&e?Me(n):128&e&&Ne(n,t)}function Ie(e){return e.type&&ve(e.type)?!c(e.checked):!c(e.value)}function He(e){e&&!N(e,null)&&e.current&&(e.current=null)}function Ee(e,n,t){e&&(o(e)||void 0!==e.current)&&t.push((function(){N(e,n)||void 0===e.current||(e.current=n)}))}function Ae(e,n){Be(e),w(e,n)}function Be(e){var n,t=e.flags,a=e.children;if(481&t){n=e.ref;var f=e.props;He(n);var r=e.childFlags;if(!d(f))for(var i=Object.keys(f),l=0,u=i.length;l0;for(var i in c&&(r=Ie(t))&&_e(n,a,t),t)Qe(i,null,t[i],a,f,r,null);c&&Ve(n,e,a,t,!0,r)}function Ke(e,n,t){var a=G(e.render(n,e.state,t)),f=t;return o(e.getChildContext)&&(f=u(t,e.getChildContext())),e.$CX=f,a}function ze(e,n,t,a,f,r){var c=new n(t,a),i=c.$N=Boolean(n.getDerivedStateFromProps||c.getSnapshotBeforeUpdate);if(c.$SVG=f,c.$L=r,e.children=c,c.$BS=!1,c.context=a,c.props===h&&(c.props=t),i)c.state=M(c,t,c.state);else if(o(c.componentWillMount)){c.$BR=!0,c.componentWillMount();var l=c.$PS;if(!d(l)){var u=c.state;if(d(u))c.state=l;else for(var s in l)u[s]=l[s];c.$PS=null}c.$BR=!1}return c.$LI=Ke(c,t,a),c}function Je(e,n){var t=e.props||h;return 32768&e.flags?e.type.render(t,e.ref,n):e.type(t,n)}function Ye(e,n,t,a,f,r){var c=e.flags|=16384;481&c?tn(e,n,t,a,f,r):4&c?fn(e,n,t,a,f,r):8&c?(rn(e,n,t,a,f,r),dn(e,r)):512&c||16&c?nn(e,n,f):8192&c?en(e,t,n,a,f,r):1024&c&&Ze(e,t,n,f,r)}function Ze(e,n,t,a,f){Ye(e.children,e.ref,n,!1,null,f);var r=W();nn(r,t,a),e.dom=r.dom}function en(e,n,t,a,f,r){var c=e.children,i=e.childFlags;12&i&&0===c.length&&(i=e.childFlags=2,c=e.children=W()),2===i?Ye(c,t,n,a,f,r):an(c,t,n,a,f,r)}function nn(e,n,t){var a=e.dom=document.createTextNode(e.children);d(n)||v(n,a,t)}function tn(e,n,t,a,f,r){var i=e.flags,o=e.props,l=e.className,u=e.childFlags,s=e.dom=m(e.type,a=a||(32&i)>0),h=e.children;if(c(l)||""===l||(a?s.setAttribute("class",l):s.className=l),16===u)F(s,h);else if(1!==u){var p=a&&"foreignObject"!==e.type;2===u?(16384&h.flags&&(e.children=h=R(h)),Ye(h,s,t,p,null,r)):8!==u&&4!==u||an(h,s,t,p,null,r)}d(n)||v(n,s,f),d(o)||Xe(e,i,o,s,a),Ee(e.ref,s,r)}function an(e,n,t,a,f,r){for(var c=0;cs)&&(d=k(c[s-1],!1).nextSibling)}yn(o,l,c,i,t,a,f,d,e,r)}function vn(e,n,t,a){var f=e.ref,r=n.ref,c=n.children;if(yn(e.childFlags,n.childFlags,e.children,c,f,t,!1,null,e,a),n.dom=e.dom,f!==r&&!i(c)){var o=c.dom;y(f,o),b(r,o)}}function mn(e,n,t,a,f,r){var i,o=n.dom=e.dom,l=e.props,d=n.props,u=!1,s=!1;if(a=a||(32&f)>0,l!==d){var p=l||h;if((i=d||h)!==h)for(var b in(u=(448&f)>0)&&(s=Ie(i)),i){var v=p[b],m=i[b];v!==m&&Qe(b,v,m,o,a,s,e)}if(p!==h)for(var g in p)c(i[g])&&!c(p[g])&&Qe(g,p[g],null,o,a,s,e)}var y=n.children,x=n.className;e.className!==x&&(c(x)?o.removeAttribute("class"):a?o.setAttribute("class",x):o.className=x),4096&f?pn(o,y):yn(e.childFlags,n.childFlags,e.children,y,o,t,a&&"foreignObject"!==n.type,null,e,r),u&&Ve(f,n,o,i,!1,s);var $=n.ref,k=e.ref;k!==$&&(He(k),Ee($,o,r))}function gn(e,n,t,a,f,r){Be(e),an(n,t,a,f,k(e,!0),r),w(e,t)}function yn(e,n,t,a,f,r,c,i,o,l){switch(e){case 2:switch(n){case 2:sn(t,a,f,r,c,i,l);break;case 1:Ae(t,f);break;case 16:Be(t),F(f,a);break;default:gn(t,a,f,r,c,l)}break;case 1:switch(n){case 2:Ye(a,f,r,c,i,l);break;case 1:break;case 16:F(f,a);break;default:an(a,f,r,c,i,l)}break;case 16:switch(n){case 16:hn(t,a,f);break;case 2:De(f),Ye(a,f,r,c,i,l);break;case 1:De(f);break;default:De(f),an(a,f,r,c,i,l)}break;default:switch(n){case 16:Oe(t),F(f,a);break;case 2:Re(f,o,t),Ye(a,f,r,c,i,l);break;case 1:Re(f,o,t);break;default:var d=0|t.length,u=0|a.length;0===d?u>0&&an(a,f,r,c,i,l):0===u?Re(f,o,t):8===n&&8===e?Pn(t,a,f,r,c,d,u,i,o,l):Mn(t,a,f,r,c,d,u,i,l)}}}function xn(e,n,t,a,f){f.push((function(){e.componentDidUpdate(n,t,a)}))}function $n(e,n,t,a,f,r,c,i,l){var d=e.state,s=e.props,h=Boolean(e.$N),p=o(e.shouldComponentUpdate);if(h&&(n=M(e,t,n!==d?u(d,n):n)),c||!p||p&&e.shouldComponentUpdate(t,n,f)){!h&&o(e.componentWillUpdate)&&e.componentWillUpdate(t,n,f),e.props=t,e.state=n,e.context=f;var b=null,v=Ke(e,t,f);h&&o(e.getSnapshotBeforeUpdate)&&(b=e.getSnapshotBeforeUpdate(s,d)),sn(e.$LI,v,a,e.$CX,r,i,l),e.$LI=v,o(e.componentDidUpdate)&&xn(e,s,d,b,l)}else e.props=t,e.state=n,e.context=f}function kn(e,n,t,a,f,r,c){var i=n.children=e.children;if(d(i))return;i.$L=c;var l=n.props||h,s=n.ref,p=e.ref,b=i.state;if(!i.$N){if(o(i.componentWillReceiveProps)){if(i.$BR=!0,i.componentWillReceiveProps(l,a),i.$UN)return;i.$BR=!1}d(i.$PS)||(b=u(b,i.$PS),i.$PS=null)}$n(i,b,l,t,a,f,!1,r,c),p!==s&&(He(p),Ee(s,i,c))}function wn(e,n,t,a,f,r,i){var l=!0,d=n.props||h,u=n.ref,s=e.props,p=!c(u),b=e.children;if(p&&o(u.onComponentShouldUpdate)&&(l=u.onComponentShouldUpdate(s,d)),!1!==l){p&&o(u.onComponentWillUpdate)&&u.onComponentWillUpdate(s,d);var v=G(Je(n,a));sn(b,v,t,a,f,r,i),n.children=v,p&&o(u.onComponentDidUpdate)&&u.onComponentDidUpdate(s,d)}else n.children=b}function Cn(e,n){var t=n.children,a=n.dom=e.dom;t!==e.children&&(a.nodeValue=t)}function Mn(e,n,t,a,f,r,c,i,o){for(var l,d,u=r>c?c:r,s=0;sc)for(s=u;ss||p>h)break e;b=e[p],v=n[p]}for(b=e[s],v=n[h];b.key===v.key;){if(16384&v.flags&&(n[h]=v=R(v)),sn(b,v,t,a,f,i,l),e[s]=v,h--,p>--s||p>h)break e;b=e[s],v=n[h]}}if(p>s){if(p<=h)for(u=(d=h+1)h)for(;p<=s;)Ae(e[p++],t);else Sn(e,n,a,r,c,s,h,p,t,f,i,o,l)}function Sn(e,n,t,a,f,r,c,i,o,l,d,u,s){var h,p,b,v=0,m=i,g=i,y=r-i+1,x=c-i+1,$=new Int32Array(x+1),w=y===a,M=!1,P=0,S=0;if(f<4||(y|x)<32)for(v=m;v<=r;++v)if(h=e[v],Si?M=!0:P=i,16384&p.flags&&(n[i]=p=R(p)),sn(h,p,o,t,l,d,s),++S;break}!w&&i>c&&Ae(h,o)}else w||Ae(h,o);else{var F={};for(v=g;v<=c;++v)F[n[v].key]=v;for(v=m;v<=r;++v)if(h=e[v],Sm;)Ae(e[m++],o);$[i-g]=v+1,P>i?M=!0:P=i,16384&(p=n[i]).flags&&(n[i]=p=R(p)),sn(h,p,o,t,l,d,s),++S}else w||Ae(h,o);else w||Ae(h,o)}if(w)Re(o,u,e),an(n,o,t,l,d,s);else if(M){var T=Tn($);for(i=T.length-1,v=x-1;v>=0;v--)0===$[v]?(16384&(p=n[P=v+g]).flags&&(n[P]=p=R(p)),Ye(p,o,t,l,(b=P+1)=0;v--)0===$[v]&&(16384&(p=n[P=v+g]).flags&&(n[P]=p=R(p)),Ye(p,o,t,l,(b=P+1)Fn&&(Fn=o,Se=new Int32Array(o),Fe=new Int32Array(o));t>1]]0&&(Fe[t]=Se[r-1]),Se[r]=t)}r=f+1;var l=new Int32Array(r);for(c=Se[r-1];r-- >0;)l[r]=c,c=Fe[c],Se[r]=0;return l}"undefined"!==typeof document&&window.Node&&(Node.prototype.$EV=null,Node.prototype.$V=null);var Un=[],Nn="undefined"!==typeof Promise?Promise.resolve().then.bind(Promise.resolve()):function(e){window.setTimeout(e,0)},Ln=!1;function Vn(e,n,t,a){var f=e.$PS;if(o(n)&&(n=n(f?u(e.state,f):e.state,e.props,e.context)),c(f))e.$PS=n;else for(var r in n)f[r]=n[r];if(e.$BR)o(t)&&e.$L.push(t.bind(e));else{if(!P.v&&0===Un.length)return Hn(e,a),void(o(t)&&t.call(e));if(-1===Un.indexOf(e)&&Un.push(e),a&&(e.$F=!0),Ln||(Ln=!0,Nn(In)),o(t)){var i=e.$QU;i||(i=e.$QU=[]),i.push(t)}}}function _n(e){for(var n=e.$QU,t=0;tt&&(t=r),a+=r}var c=e[this._i],i=a/e.length;return new On(n,t,i,c)},e}(),Rn=[],Wn=-1,jn=(An=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)n.hasOwnProperty(t)&&(e[t]=n[t])},function(e,n){function t(){this.constructor=e}An(e,n),e.prototype=null===n?Object.create(n):(t.prototype=n.prototype,new t)}),qn=function(){function e(e){var n=this;this._sync=function(){n.sync(),n._dirty=!1},this.name=e,this.element=document.createElement("div"),this.element.style.cssText="padding: 2px;background-color: #020;font-family: monospace;font-size: 12px;color: #0f0",this._dirty=!1,this.invalidate()}return e.prototype.invalidate=function(){var e;this._dirty||(this._dirty=!0,e=this._sync,Rn.push(e),-1===Wn&&requestAnimationFrame((function(e){Wn=-1;var n=Rn;Rn=[];for(var t=0;t0&&(f+=.01652892561983471*(1e3/(r-a)-f)),a=r,n.addSample(f),t.invalidate(),requestAnimationFrame(e)}))}(),function(e){if(void 0===e&&(e=Bn.HideMin|Bn.HideMean),Xn(),void 0===performance.memory)return;var n=new Dn(100),t=new Gn("Memory",e,"MB",n);Qn.appendChild(t.element),function e(){n.addSample(Math.round(performance.memory.usedJSHeapSize/1048576)),t.invalidate(),setTimeout(e,30)}()}();var Zn=function(e){function t(n,t){var f;return(f=e.call(this,n,t)||this).state={numPoints:0},f.updateCount=f.updateCount.bind(a(f)),f}n(t,e);var f=t.prototype;return f.updateCount=function(e){this.setState({numPoints:e.target.value})},f.componentDidMount=function(){this.setState({numPoints:1e3})},f.render=function(e,n){return _(1,"div","app-wrapper",[A(2,nt,{count:n.numPoints},null,null),_(1,"div","controls",[B("# Points"),_(64,"input",null,null,1,{type:"range",min:10,max:1e4,value:n.numPoints,onInput:this.updateCount},null,null),n.numPoints],0,null,null,null),_(1,"div","about",[B("InfernoJS 1k Components Demo based on the Glimmer demo by "),_(1,"a",null,"Michael Lange",16,{href:"http://mlange.io",target:"_blank"},null,null),B(".")],4,null,null,null)],4,null,null,null)},t}(En),et=[0,3,0,1,2],nt=function(t){function a(e,n){var a;return(a=t.call(this,e,n)||this).layout=0,a.phyllotaxis=ut(100),a.grid=st(100),a.wave=ht(100),a.spiral=pt(100),a.points=[],a.step=0,a.numSteps=120,a}n(a,t);var f=a.prototype;return f.next=function(){var n=this;this.step=(this.step+1)%this.numSteps,0===this.step&&(this.layout=(this.layout+1)%et.length);var t=Math.min(1,this.step/(.8*this.numSteps)),a=et[this.layout],f=et[(this.layout+1)%et.length],r=ot(a),c=ot(f),i=lt(a),o=lt(f);this.points=this.points.map((function(n){var a=e({},n);return a.x=dt(a,t,r,c),a.y=dt(a,t,i,o),a})),this.setState(),requestAnimationFrame((function(){n.next()}))},f.setAnchors=function(e){var n=this;e.map((function(e,t){var a=mt(n.grid(t)),f=a[0],r=a[1],c=mt(n.wave(t)),i=c[0],o=c[1],l=mt(n.spiral(t)),d=l[0],u=l[1],s=mt(n.phyllotaxis(t)),h=s[0],p=s[1];Object.assign(e,{gx:f,gy:r,wx:i,wy:o,sx:d,sy:u,px:h,py:p})})),this.points=e},f.makePoints=function(e){for(var n=[],t=0;tr&&(r=a),i+=a}var o=e[this._i],u=i/e.length;return new t(n,r,u,o)},e}(),i=[],l=-1,a=(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)n.hasOwnProperty(t)&&(e[t]=n[t])},function(n,t){function r(){this.constructor=n}e(n,t),n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),o=function(){function e(e){var n=this;this._sync=function(){n.sync(),n._dirty=!1},this.name=e,this.element=document.createElement("div"),this.element.style.cssText="padding: 2px;background-color: #020;font-family: monospace;font-size: 12px;color: #0f0",this._dirty=!1,this.invalidate()}return e.prototype.invalidate=function(){var e;this._dirty||(this._dirty=!0,e=this._sync,i.push(e),-1===l&&requestAnimationFrame((function(e){l=-1;var n=i;i=[];for(var t=0;t0,c=b(o),s=x(o)&&o[0]===D;u||c||s?(t=t||n.slice(0,l),(u||s)&&(a=G(a)),(c||s)&&(a.key=D+l),t.push(a)):t&&t.push(a),a.flags|=65536}}r=0===(t=t||n).length?1:8}else(t=n).flags|=65536,81920&n.flags&&(t=G(n)),r=2;return e.children=t,e.childFlags=r,e}function Q(e){if(g(e)||v(e))return R(e,null);if(h(e))return j(e,0,null);return 16384&e.flags?G(e):e}var J="http://www.w3.org/1999/xlink",Y="http://www.w3.org/XML/1998/namespace",Z={"xlink:actuate":J,"xlink:arcrole":J,"xlink:href":J,"xlink:role":J,"xlink:show":J,"xlink:title":J,"xlink:type":J,"xml:base":Y,"xml:lang":Y,"xml:space":Y};function ee(e){return{onClick:e,onDblClick:e,onFocusIn:e,onFocusOut:e,onKeyDown:e,onKeyPress:e,onKeyUp:e,onMouseDown:e,onMouseMove:e,onMouseUp:e,onTouchEnd:e,onTouchMove:e,onTouchStart:e}}var ne=ee(0),te=ee(null),re=ee(!0);function ie(e,n){var t=n.$EV;return t||(t=n.$EV=ee(null)),t[e]||1===++ne[e]&&(te[e]=ve(e)),t}function le(e,n){var t=n.$EV;t&&t[e]&&(0===--ne[e]&&(document.removeEventListener($(e),te[e]),te[e]=null),t[e]=null)}function ae(e,n,t,r){if(y(t))ie(e,r)[e]=t;else if(C(t)){if(A(n,t))return;ie(e,r)[e]=t}else le(e,r)}function oe(e){return y(e.composedPath)?e.composedPath()[0]:e.target}function ue(e,n,t,r){var i=oe(e);do{if(n&&i.disabled)return;var l=i.$EV;if(l){var a=l[t];if(a&&(r.dom=i,a.event?a.event(a.data,e):a(e),e.cancelBubble))return}i=i.parentNode}while(!b(i))}function ce(){this.cancelBubble=!0,this.immediatePropagationStopped||this.stopImmediatePropagation()}function se(){return this.defaultPrevented}function fe(){return this.cancelBubble}function de(e){var n={dom:document};return e.isDefaultPrevented=se,e.isPropagationStopped=fe,e.stopPropagation=ce,Object.defineProperty(e,"currentTarget",{configurable:!0,get:function(){return n.dom}}),n}function pe(e){return function(n){if(0!==n.button)return void n.stopPropagation();ue(n,!0,e,de(n))}}function he(e){return function(n){ue(n,!1,e,de(n))}}function ve(e){var n="onClick"===e||"onDblClick"===e?pe(e):he(e);return document.addEventListener($(e),n),n}function me(e,n){var t=document.createElement("i");return t.innerHTML=n,t.innerHTML===e.innerHTML}function ge(e,n,t){if(e[n]){var r=e[n];r.event?r.event(r.data,t):r(t)}else{var i=n.toLowerCase();e[i]&&e[i](t)}}function ye(e,n){var t=function(t){var r=this.$V;if(!r)return;var i=r.props||w,l=r.dom;if(x(e))ge(i,e,t);else for(var a=0;a-1&&n.options[l]&&(a=n.options[l].value),t&&m(a)&&(a=e.defaultValue),Te(r,a)}}var Ne,Ee,He=ye("onInput",Ie),Le=ye("onChange");function _e(e,n){xe(e,"input",He),n.onChange&&xe(e,"change",Le)}function Ie(e,n,t){var r=e.value,i=n.value;if(m(r)){if(t){var l=e.defaultValue;m(l)||l===i||(n.defaultValue=l,n.value=l)}}else i!==r&&(n.defaultValue=r,n.value=r)}function Ue(e,n,t,r,i,l){64&e?Fe(r,t):256&e?Ve(r,t,i,n):128&e&&Ie(r,t,i),l&&(t.$V=n)}function Ae(e,n,t){64&e?$e(n,t):256&e?Pe(n):128&e&&_e(n,t)}function Be(e){return e.type&&be(e.type)?!m(e.checked):!m(e.value)}function De(e){e&&!B(e,null)&&e.current&&(e.current=null)}function We(e,n,t){e&&(y(e)||void 0!==e.current)&&t.push((function(){B(e,n)||void 0===e.current||(e.current=n)}))}function Oe(e,n){Re(e),H(e,n)}function Re(e){var n,t=e.flags,r=e.children;if(481&t){n=e.ref;var i=e.props;De(n);var l=e.childFlags;if(!b(i))for(var a=Object.keys(i),o=0,u=a.length;o0;for(var o in a&&(l=Be(t))&&Ae(n,r,t),t)Je(o,null,t[o],r,i,l,null);a&&Ue(n,e,r,t,!0,l)}function Ze(e,n,t){var r=Q(e.render(n,e.state,t)),i=t;return y(e.getChildContext)&&(i=k(t,e.getChildContext())),e.$CX=i,r}function en(e,n,t,r,i,l){var a=new n(t,r),o=a.$N=Boolean(n.getDerivedStateFromProps||a.getSnapshotBeforeUpdate);if(a.$SVG=i,a.$L=l,e.children=a,a.$BS=!1,a.context=r,a.props===w&&(a.props=t),o)a.state=_(a,t,a.state);else if(y(a.componentWillMount)){a.$BR=!0,a.componentWillMount();var u=a.$PS;if(!b(u)){var c=a.state;if(b(c))a.state=u;else for(var s in u)c[s]=u[s];a.$PS=null}a.$BR=!1}return a.$LI=Ze(a,t,r),a}function nn(e,n){var t=e.props||w;return 32768&e.flags?e.type.render(t,e.ref,n):e.type(t,n)}function tn(e,n,t,r,i,l){var a=e.flags|=16384;481&a?on(e,n,t,r,i,l):4&a?cn(e,n,t,r,i,l):8&a?(sn(e,n,t,r,i,l),hn(e,l)):512&a||16&a?an(e,n,i):8192&a?ln(e,t,n,r,i,l):1024&a&&rn(e,t,n,i,l)}function rn(e,n,t,r,i){tn(e.children,e.ref,n,!1,null,i);var l=X();an(l,t,r),e.dom=l.dom}function ln(e,n,t,r,i,l){var a=e.children,o=e.childFlags;12&o&&0===a.length&&(o=e.childFlags=2,a=e.children=X()),2===o?tn(a,t,i,r,i,l):un(a,t,n,r,i,l)}function an(e,n,t){var r=e.dom=document.createTextNode(e.children);b(n)||T(n,r,t)}function on(e,n,t,r,i,l){var a=e.flags,o=e.props,u=e.className,c=e.childFlags,s=e.dom=M(e.type,r=r||(32&a)>0),f=e.children;if(m(u)||""===u||(r?s.setAttribute("class",u):s.className=u),16===c)U(s,f);else if(1!==c){var d=r&&"foreignObject"!==e.type;2===c?(16384&f.flags&&(e.children=f=G(f)),tn(f,s,t,d,null,l)):8!==c&&4!==c||un(f,s,t,d,null,l)}b(n)||T(n,s,i),b(o)||Ye(e,a,o,s,r),We(e.ref,s,l)}function un(e,n,t,r,i,l){for(var a=0;ad)&&(s=E(a[d-1],!1).nextSibling)}wn(u,c,a,o,t,r,i,s,e,l)}function bn(e,n,t,r){var i=e.ref,l=n.ref,a=n.children;if(wn(e.childFlags,n.childFlags,e.children,a,i,t,!1,null,e,r),n.dom=e.dom,i!==l&&!g(a)){var o=a.dom;P(i,o),F(l,o)}}function kn(e,n,t,r,i,l){var a,o=n.dom=e.dom,u=e.props,c=n.props,s=!1,f=!1;if(r=r||(32&i)>0,u!==c){var d=u||w;if((a=c||w)!==w)for(var p in(s=(448&i)>0)&&(f=Be(a)),a){var h=d[p],v=a[p];h!==v&&Je(p,h,v,o,r,f,e)}if(d!==w)for(var g in d)m(a[g])&&!m(d[g])&&Je(g,d[g],null,o,r,f,e)}var y=n.children,x=n.className;e.className!==x&&(m(x)?o.removeAttribute("class"):r?o.setAttribute("class",x):o.className=x),4096&i?yn(o,y):wn(e.childFlags,n.childFlags,e.children,y,o,t,r&&"foreignObject"!==n.type,null,e,l),s&&Ue(i,n,o,a,!1,f);var b=n.ref,k=e.ref;k!==b&&(De(k),We(b,o,l))}function Cn(e,n,t,r,i,l){Re(e),un(n,t,r,i,E(e,!0),l),H(e,t)}function wn(e,n,t,r,i,l,a,o,u,c){switch(e){case 2:switch(n){case 2:mn(t,r,i,l,a,o,c);break;case 1:Oe(t,i);break;case 16:Re(t),U(i,r);break;default:Cn(t,r,i,l,a,c)}break;case 1:switch(n){case 2:tn(r,i,l,a,o,c);break;case 1:break;case 16:U(i,r);break;default:un(r,i,l,a,o,c)}break;case 16:switch(n){case 16:gn(t,r,i);break;case 2:qe(i),tn(r,i,l,a,o,c);break;case 1:qe(i);break;default:qe(i),un(r,i,l,a,o,c)}break;default:switch(n){case 16:je(t),U(i,r);break;case 2:Ge(i,u,t),tn(r,i,l,a,o,c);break;case 1:Ge(i,u,t);break;default:var s=0|t.length,f=0|r.length;0===s?f>0&&un(r,i,l,a,o,c):0===f?Ge(i,u,t):8===n&&8===e?Vn(t,r,i,l,a,s,f,o,u,c):Pn(t,r,i,l,a,s,f,o,c)}}}function $n(e,n,t,r,i){i.push((function(){e.componentDidUpdate(n,t,r)}))}function Fn(e,n,t,r,i,l,a,o,u){var c=e.state,s=e.props,f=Boolean(e.$N),d=y(e.shouldComponentUpdate);if(f&&(n=_(e,t,n!==c?k(c,n):n)),a||!d||d&&e.shouldComponentUpdate(t,n,i)){!f&&y(e.componentWillUpdate)&&e.componentWillUpdate(t,n,i),e.props=t,e.state=n,e.context=i;var p=null,h=Ze(e,t,i);f&&y(e.getSnapshotBeforeUpdate)&&(p=e.getSnapshotBeforeUpdate(s,c)),mn(e.$LI,h,r,e.$CX,l,o,u),e.$LI=h,y(e.componentDidUpdate)&&$n(e,s,c,p,u)}else e.props=t,e.state=n,e.context=i}function Tn(e,n,t,r,i,l,a){var o=n.children=e.children;if(b(o))return;o.$L=a;var u=n.props||w,c=n.ref,s=e.ref,f=o.state;if(!o.$N){if(y(o.componentWillReceiveProps)){if(o.$BR=!0,o.componentWillReceiveProps(u,r),o.$UN)return;o.$BR=!1}b(o.$PS)||(f=k(f,o.$PS),o.$PS=null)}Fn(o,f,u,t,r,i,!1,l,a),s!==c&&(De(s),We(c,o,a))}function Mn(e,n,t,r,i,l,a){var o=!0,u=n.props||w,c=n.ref,s=e.props,f=!m(c),d=e.children;if(f&&y(c.onComponentShouldUpdate)&&(o=c.onComponentShouldUpdate(s,u)),!1!==o){f&&y(c.onComponentWillUpdate)&&c.onComponentWillUpdate(s,u);var p=Q(nn(n,r));mn(d,p,t,r,i,l,a),n.children=p,f&&y(c.onComponentDidUpdate)&&c.onComponentDidUpdate(s,u)}else n.children=d}function Sn(e,n){var t=n.children,r=n.dom=e.dom;t!==e.children&&(r.nodeValue=t)}function Pn(e,n,t,r,i,l,a,o,u){for(var c,s,f=l>a?a:l,d=0;da)for(d=f;dd||h>p)break e;v=e[h],m=n[h]}for(v=e[d],m=n[p];v.key===m.key;){if(16384&m.flags&&(n[p]=m=G(m)),mn(v,m,t,r,i,o,c),e[d]=m,p--,h>--d||h>p)break e;v=e[d],m=n[p]}}if(h>d){if(h<=p)for(f=(s=p+1)p)for(;h<=d;)Oe(e[h++],t);else Nn(e,n,r,l,a,d,p,h,t,i,o,u,c)}function Nn(e,n,t,r,i,l,a,o,u,c,s,f,d){var p,h,v,m=0,g=o,y=o,x=l-o+1,b=a-o+1,k=new Int32Array(b+1),C=x===r,w=!1,$=0,F=0;if(i<4||(x|b)<32)for(m=g;m<=l;++m)if(p=e[m],Fo?w=!0:$=o,16384&h.flags&&(n[o]=h=G(h)),mn(p,h,u,t,c,s,d),++F;break}!C&&o>a&&Oe(p,u)}else C||Oe(p,u);else{var T={};for(m=y;m<=a;++m)T[n[m].key]=m;for(m=g;m<=l;++m)if(p=e[m],Fg;)Oe(e[g++],u);k[o-y]=m+1,$>o?w=!0:$=o,16384&(h=n[o]).flags&&(n[o]=h=G(h)),mn(p,h,u,t,c,s,d),++F}else C||Oe(p,u);else C||Oe(p,u)}if(C)Ge(u,f,e),un(n,u,t,c,s,d);else if(w){var M=Hn(k);for(o=M.length-1,m=b-1;m>=0;m--)0===k[m]?(16384&(h=n[$=m+y]).flags&&(n[$]=h=G(h)),tn(h,u,t,c,(v=$+1)=0;m--)0===k[m]&&(16384&(h=n[$=m+y]).flags&&(n[$]=h=G(h)),tn(h,u,t,c,(v=$+1)En&&(En=u,Ne=new Int32Array(u),Ee=new Int32Array(u));t>1]]0&&(Ee[t]=Ne[l-1]),Ne[l]=t)}l=i+1;var c=new Int32Array(l);for(a=Ne[l-1];l-- >0;)c[l]=a,a=Ee[a],Ne[l]=0;return c}function Ln(e,n,t,r){var i=[],l=n.$V;m(l)?m(e)||(16384&e.flags&&(e=G(e)),tn(e,n,r,!1,null,i),n.$V=e,l=e):m(e)?(Oe(l,n),n.$V=null):(16384&e.flags&&(e=G(e)),mn(l,e,n,r,!1,null,i),l=n.$V=e),V(i),y(t)&&t(),y(I.renderComplete)&&I.renderComplete(l,n)}"undefined"!==typeof document&&window.Node&&(Node.prototype.$EV=null,Node.prototype.$V=null),"undefined"!==typeof Promise&&Promise.resolve().then.bind(Promise.resolve());var _n=document.getElementById("app");function In(e){for(var n,t,r,i=e.length,l=[],a=0;a0&&(a+=.01652892561983471*(1e3/(n-l)-a)),l=n,t.addSample(a),i.invalidate(),requestAnimationFrame(e)}))}(),function(e){if(void 0===e&&(e=n.HideMin|n.HideMean),s(),void 0===performance.memory)return;var t=new r(100),i=new u("Memory",e,"MB",t);c.appendChild(i.element),function e(){t.addSample(Math.round(performance.memory.usedJSHeapSize/1048576)),i.invalidate(),setTimeout(e,30)}()}(),function(e,n){void 0===n&&(n=0),s();var t=d[e];void 0===t&&(d[e]=t=new f(e,"ms",n),c.appendChild(t.widget.element))}("view update"),setInterval((function(){var e,n=ENV.generateData(!1).toArray();void 0!==(e=d["view update"])&&(e.startTime=performance.now()),In(n),p("view update")}),0)}(); +!function(){"use strict";var e,n,t=function(e,n,t,r){this.min=e,this.max=n,this.mean=t,this.last=r},r=function(){function e(e){this.samples=[],this.maxSamples=e,this._i=-1}return e.prototype.addSample=function(e){this._i=(this._i+1)%this.maxSamples,this.samples[this._i]=e},e.prototype.each=function(e){for(var n=this.samples,t=0;tr&&(r=a),i+=a}var o=e[this._i],u=i/e.length;return new t(n,r,u,o)},e}(),i=[],l=-1,a=(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)n.hasOwnProperty(t)&&(e[t]=n[t])},function(n,t){function r(){this.constructor=n}e(n,t),n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),o=function(){function e(e){var n=this;this._sync=function(){n.sync(),n._dirty=!1},this.name=e,this.element=document.createElement("div"),this.element.style.cssText="padding: 2px;background-color: #020;font-family: monospace;font-size: 12px;color: #0f0",this._dirty=!1,this.invalidate()}return e.prototype.invalidate=function(){var e;this._dirty||(this._dirty=!0,e=this._sync,i.push(e),-1===l&&requestAnimationFrame((function(e){l=-1;var n=i;i=[];for(var t=0;t0,c=b(o),s=x(o)&&o[0]===D;u||c||s?(t=t||n.slice(0,l),(u||s)&&(a=G(a)),(c||s)&&(a.key=D+l),t.push(a)):t&&t.push(a),a.flags|=65536}}r=0===(t=t||n).length?1:8}else(t=n).flags|=65536,81920&n.flags&&(t=G(n)),r=2;return e.children=t,e.childFlags=r,e}function Q(e){if(g(e)||v(e))return R(e,null);if(h(e))return j(e,0,null);return 16384&e.flags?G(e):e}var J="http://www.w3.org/1999/xlink",Y="http://www.w3.org/XML/1998/namespace",Z={"xlink:actuate":J,"xlink:arcrole":J,"xlink:href":J,"xlink:role":J,"xlink:show":J,"xlink:title":J,"xlink:type":J,"xml:base":Y,"xml:lang":Y,"xml:space":Y};function ee(e){return{onClick:e,onDblClick:e,onFocusIn:e,onFocusOut:e,onKeyDown:e,onKeyPress:e,onKeyUp:e,onMouseDown:e,onMouseMove:e,onMouseUp:e,onTouchEnd:e,onTouchMove:e,onTouchStart:e}}var ne=ee(0),te=ee(null),re=ee(!0);function ie(e,n){var t=n.$EV;return t||(t=n.$EV=ee(null)),t[e]||1===++ne[e]&&(te[e]=ve(e)),t}function le(e,n){var t=n.$EV;t&&t[e]&&(0===--ne[e]&&(document.removeEventListener($(e),te[e]),te[e]=null),t[e]=null)}function ae(e,n,t,r){if(y(t))ie(e,r)[e]=t;else if(C(t)){if(A(n,t))return;ie(e,r)[e]=t}else le(e,r)}function oe(e){return y(e.composedPath)?e.composedPath()[0]:e.target}function ue(e,n,t,r){var i=oe(e);do{if(n&&i.disabled)return;var l=i.$EV;if(l){var a=l[t];if(a&&(r.dom=i,a.event?a.event(a.data,e):a(e),e.cancelBubble))return}i=i.parentNode}while(!b(i))}function ce(){this.cancelBubble=!0,this.immediatePropagationStopped||this.stopImmediatePropagation()}function se(){return this.defaultPrevented}function fe(){return this.cancelBubble}function de(e){var n={dom:document};return e.isDefaultPrevented=se,e.isPropagationStopped=fe,e.stopPropagation=ce,Object.defineProperty(e,"currentTarget",{configurable:!0,get:function(){return n.dom}}),n}function pe(e){return function(n){if(0!==n.button)return void n.stopPropagation();ue(n,!0,e,de(n))}}function he(e){return function(n){ue(n,!1,e,de(n))}}function ve(e){var n="onClick"===e||"onDblClick"===e?pe(e):he(e);return document.addEventListener($(e),n),n}function me(e,n){var t=document.createElement("i");return t.innerHTML=n,t.innerHTML===e.innerHTML}function ge(e,n,t){if(e[n]){var r=e[n];r.event?r.event(r.data,t):r(t)}else{var i=n.toLowerCase();e[i]&&e[i](t)}}function ye(e,n){var t=function(t){var r=this.$V;if(!r)return;var i=r.props||w,l=r.dom;if(x(e))ge(i,e,t);else for(var a=0;a-1&&n.options[l]&&(a=n.options[l].value),t&&m(a)&&(a=e.defaultValue),Te(r,a)}}var Ne,Ee,He=ye("onInput",Ie),Le=ye("onChange");function _e(e,n){xe(e,"input",He),n.onChange&&xe(e,"change",Le)}function Ie(e,n,t){var r=e.value,i=n.value;if(m(r)){if(t){var l=e.defaultValue;m(l)||l===i||(n.defaultValue=l,n.value=l)}}else i!==r&&(n.defaultValue=r,n.value=r)}function Ue(e,n,t,r,i,l){64&e?Fe(r,t):256&e?Ve(r,t,i,n):128&e&&Ie(r,t,i),l&&(t.$V=n)}function Ae(e,n,t){64&e?$e(n,t):256&e?Pe(n):128&e&&_e(n,t)}function Be(e){return e.type&&be(e.type)?!m(e.checked):!m(e.value)}function De(e){e&&!B(e,null)&&e.current&&(e.current=null)}function We(e,n,t){e&&(y(e)||void 0!==e.current)&&t.push((function(){B(e,n)||void 0===e.current||(e.current=n)}))}function Oe(e,n){Re(e),H(e,n)}function Re(e){var n,t=e.flags,r=e.children;if(481&t){n=e.ref;var i=e.props;De(n);var l=e.childFlags;if(!b(i))for(var a=Object.keys(i),o=0,u=a.length;o0;for(var o in a&&(l=Be(t))&&Ae(n,r,t),t)Je(o,null,t[o],r,i,l,null);a&&Ue(n,e,r,t,!0,l)}function Ze(e,n,t){var r=Q(e.render(n,e.state,t)),i=t;return y(e.getChildContext)&&(i=k(t,e.getChildContext())),e.$CX=i,r}function en(e,n,t,r,i,l){var a=new n(t,r),o=a.$N=Boolean(n.getDerivedStateFromProps||a.getSnapshotBeforeUpdate);if(a.$SVG=i,a.$L=l,e.children=a,a.$BS=!1,a.context=r,a.props===w&&(a.props=t),o)a.state=_(a,t,a.state);else if(y(a.componentWillMount)){a.$BR=!0,a.componentWillMount();var u=a.$PS;if(!b(u)){var c=a.state;if(b(c))a.state=u;else for(var s in u)c[s]=u[s];a.$PS=null}a.$BR=!1}return a.$LI=Ze(a,t,r),a}function nn(e,n){var t=e.props||w;return 32768&e.flags?e.type.render(t,e.ref,n):e.type(t,n)}function tn(e,n,t,r,i,l){var a=e.flags|=16384;481&a?on(e,n,t,r,i,l):4&a?cn(e,n,t,r,i,l):8&a?(sn(e,n,t,r,i,l),hn(e,l)):512&a||16&a?an(e,n,i):8192&a?ln(e,t,n,r,i,l):1024&a&&rn(e,t,n,i,l)}function rn(e,n,t,r,i){tn(e.children,e.ref,n,!1,null,i);var l=X();an(l,t,r),e.dom=l.dom}function ln(e,n,t,r,i,l){var a=e.children,o=e.childFlags;12&o&&0===a.length&&(o=e.childFlags=2,a=e.children=X()),2===o?tn(a,t,n,r,i,l):un(a,t,n,r,i,l)}function an(e,n,t){var r=e.dom=document.createTextNode(e.children);b(n)||T(n,r,t)}function on(e,n,t,r,i,l){var a=e.flags,o=e.props,u=e.className,c=e.childFlags,s=e.dom=M(e.type,r=r||(32&a)>0),f=e.children;if(m(u)||""===u||(r?s.setAttribute("class",u):s.className=u),16===c)U(s,f);else if(1!==c){var d=r&&"foreignObject"!==e.type;2===c?(16384&f.flags&&(e.children=f=G(f)),tn(f,s,t,d,null,l)):8!==c&&4!==c||un(f,s,t,d,null,l)}b(n)||T(n,s,i),b(o)||Ye(e,a,o,s,r),We(e.ref,s,l)}function un(e,n,t,r,i,l){for(var a=0;ad)&&(s=E(a[d-1],!1).nextSibling)}wn(u,c,a,o,t,r,i,s,e,l)}function bn(e,n,t,r){var i=e.ref,l=n.ref,a=n.children;if(wn(e.childFlags,n.childFlags,e.children,a,i,t,!1,null,e,r),n.dom=e.dom,i!==l&&!g(a)){var o=a.dom;P(i,o),F(l,o)}}function kn(e,n,t,r,i,l){var a,o=n.dom=e.dom,u=e.props,c=n.props,s=!1,f=!1;if(r=r||(32&i)>0,u!==c){var d=u||w;if((a=c||w)!==w)for(var p in(s=(448&i)>0)&&(f=Be(a)),a){var h=d[p],v=a[p];h!==v&&Je(p,h,v,o,r,f,e)}if(d!==w)for(var g in d)m(a[g])&&!m(d[g])&&Je(g,d[g],null,o,r,f,e)}var y=n.children,x=n.className;e.className!==x&&(m(x)?o.removeAttribute("class"):r?o.setAttribute("class",x):o.className=x),4096&i?yn(o,y):wn(e.childFlags,n.childFlags,e.children,y,o,t,r&&"foreignObject"!==n.type,null,e,l),s&&Ue(i,n,o,a,!1,f);var b=n.ref,k=e.ref;k!==b&&(De(k),We(b,o,l))}function Cn(e,n,t,r,i,l){Re(e),un(n,t,r,i,E(e,!0),l),H(e,t)}function wn(e,n,t,r,i,l,a,o,u,c){switch(e){case 2:switch(n){case 2:mn(t,r,i,l,a,o,c);break;case 1:Oe(t,i);break;case 16:Re(t),U(i,r);break;default:Cn(t,r,i,l,a,c)}break;case 1:switch(n){case 2:tn(r,i,l,a,o,c);break;case 1:break;case 16:U(i,r);break;default:un(r,i,l,a,o,c)}break;case 16:switch(n){case 16:gn(t,r,i);break;case 2:qe(i),tn(r,i,l,a,o,c);break;case 1:qe(i);break;default:qe(i),un(r,i,l,a,o,c)}break;default:switch(n){case 16:je(t),U(i,r);break;case 2:Ge(i,u,t),tn(r,i,l,a,o,c);break;case 1:Ge(i,u,t);break;default:var s=0|t.length,f=0|r.length;0===s?f>0&&un(r,i,l,a,o,c):0===f?Ge(i,u,t):8===n&&8===e?Vn(t,r,i,l,a,s,f,o,u,c):Pn(t,r,i,l,a,s,f,o,c)}}}function $n(e,n,t,r,i){i.push((function(){e.componentDidUpdate(n,t,r)}))}function Fn(e,n,t,r,i,l,a,o,u){var c=e.state,s=e.props,f=Boolean(e.$N),d=y(e.shouldComponentUpdate);if(f&&(n=_(e,t,n!==c?k(c,n):n)),a||!d||d&&e.shouldComponentUpdate(t,n,i)){!f&&y(e.componentWillUpdate)&&e.componentWillUpdate(t,n,i),e.props=t,e.state=n,e.context=i;var p=null,h=Ze(e,t,i);f&&y(e.getSnapshotBeforeUpdate)&&(p=e.getSnapshotBeforeUpdate(s,c)),mn(e.$LI,h,r,e.$CX,l,o,u),e.$LI=h,y(e.componentDidUpdate)&&$n(e,s,c,p,u)}else e.props=t,e.state=n,e.context=i}function Tn(e,n,t,r,i,l,a){var o=n.children=e.children;if(b(o))return;o.$L=a;var u=n.props||w,c=n.ref,s=e.ref,f=o.state;if(!o.$N){if(y(o.componentWillReceiveProps)){if(o.$BR=!0,o.componentWillReceiveProps(u,r),o.$UN)return;o.$BR=!1}b(o.$PS)||(f=k(f,o.$PS),o.$PS=null)}Fn(o,f,u,t,r,i,!1,l,a),s!==c&&(De(s),We(c,o,a))}function Mn(e,n,t,r,i,l,a){var o=!0,u=n.props||w,c=n.ref,s=e.props,f=!m(c),d=e.children;if(f&&y(c.onComponentShouldUpdate)&&(o=c.onComponentShouldUpdate(s,u)),!1!==o){f&&y(c.onComponentWillUpdate)&&c.onComponentWillUpdate(s,u);var p=Q(nn(n,r));mn(d,p,t,r,i,l,a),n.children=p,f&&y(c.onComponentDidUpdate)&&c.onComponentDidUpdate(s,u)}else n.children=d}function Sn(e,n){var t=n.children,r=n.dom=e.dom;t!==e.children&&(r.nodeValue=t)}function Pn(e,n,t,r,i,l,a,o,u){for(var c,s,f=l>a?a:l,d=0;da)for(d=f;dd||h>p)break e;v=e[h],m=n[h]}for(v=e[d],m=n[p];v.key===m.key;){if(16384&m.flags&&(n[p]=m=G(m)),mn(v,m,t,r,i,o,c),e[d]=m,p--,h>--d||h>p)break e;v=e[d],m=n[p]}}if(h>d){if(h<=p)for(f=(s=p+1)p)for(;h<=d;)Oe(e[h++],t);else Nn(e,n,r,l,a,d,p,h,t,i,o,u,c)}function Nn(e,n,t,r,i,l,a,o,u,c,s,f,d){var p,h,v,m=0,g=o,y=o,x=l-o+1,b=a-o+1,k=new Int32Array(b+1),C=x===r,w=!1,$=0,F=0;if(i<4||(x|b)<32)for(m=g;m<=l;++m)if(p=e[m],Fo?w=!0:$=o,16384&h.flags&&(n[o]=h=G(h)),mn(p,h,u,t,c,s,d),++F;break}!C&&o>a&&Oe(p,u)}else C||Oe(p,u);else{var T={};for(m=y;m<=a;++m)T[n[m].key]=m;for(m=g;m<=l;++m)if(p=e[m],Fg;)Oe(e[g++],u);k[o-y]=m+1,$>o?w=!0:$=o,16384&(h=n[o]).flags&&(n[o]=h=G(h)),mn(p,h,u,t,c,s,d),++F}else C||Oe(p,u);else C||Oe(p,u)}if(C)Ge(u,f,e),un(n,u,t,c,s,d);else if(w){var M=Hn(k);for(o=M.length-1,m=b-1;m>=0;m--)0===k[m]?(16384&(h=n[$=m+y]).flags&&(n[$]=h=G(h)),tn(h,u,t,c,(v=$+1)=0;m--)0===k[m]&&(16384&(h=n[$=m+y]).flags&&(n[$]=h=G(h)),tn(h,u,t,c,(v=$+1)En&&(En=u,Ne=new Int32Array(u),Ee=new Int32Array(u));t>1]]0&&(Ee[t]=Ne[l-1]),Ne[l]=t)}l=i+1;var c=new Int32Array(l);for(a=Ne[l-1];l-- >0;)c[l]=a,a=Ee[a],Ne[l]=0;return c}function Ln(e,n,t,r){var i=[],l=n.$V;m(l)?m(e)||(16384&e.flags&&(e=G(e)),tn(e,n,r,!1,null,i),n.$V=e,l=e):m(e)?(Oe(l,n),n.$V=null):(16384&e.flags&&(e=G(e)),mn(l,e,n,r,!1,null,i),l=n.$V=e),V(i),y(t)&&t(),y(I.renderComplete)&&I.renderComplete(l,n)}"undefined"!==typeof document&&window.Node&&(Node.prototype.$EV=null,Node.prototype.$V=null),"undefined"!==typeof Promise&&Promise.resolve().then.bind(Promise.resolve());var _n=document.getElementById("app");function In(e){for(var n,t,r,i=e.length,l=[],a=0;a0&&(a+=.01652892561983471*(1e3/(n-l)-a)),l=n,t.addSample(a),i.invalidate(),requestAnimationFrame(e)}))}(),function(e){if(void 0===e&&(e=n.HideMin|n.HideMean),s(),void 0===performance.memory)return;var t=new r(100),i=new u("Memory",e,"MB",t);c.appendChild(i.element),function e(){t.addSample(Math.round(performance.memory.usedJSHeapSize/1048576)),i.invalidate(),setTimeout(e,30)}()}(),function(e,n){void 0===n&&(n=0),s();var t=d[e];void 0===t&&(d[e]=t=new f(e,"ms",n),c.appendChild(t.widget.element))}("view update"),setInterval((function(){var e,n=ENV.generateData(!1).toArray();void 0!==(e=d["view update"])&&(e.startTime=performance.now()),In(n),p("view update")}),0)}(); diff --git a/docs/event-test/dist/bundle.js b/docs/event-test/dist/bundle.js index e08e387dc..8f1419119 100644 --- a/docs/event-test/dist/bundle.js +++ b/docs/event-test/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 u(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 a(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){if(n)return document.createElementNS("http://www.w3.org/2000/svg",e);return document.createElement(e)}function h(e,n,t){e.replaceChild(n,t)}function m(e,n){e.removeChild(n)}function g(e){for(var n=0;n0,v=i(d),h=o(d)&&d[0]===L;p||v||h?(u=u||l.slice(0,f),(p||h)&&(s=B(s)),(v||h)&&(s.key=L+f),u.push(s)):u&&u.push(s),s.flags|=65536}}a=0===(u=u||l).length?1:8}else(u=l).flags|=65536,81920&l.flags&&(u=B(l)),a=2;return t.children=u,t.childFlags=a,t}function H(t){if(r(t)||n(t))return E(t,null);if(e(t))return D(t,0,null);return 16384&t.flags?B(t):t}var R="http://www.w3.org/1999/xlink",X="http://www.w3.org/XML/1998/namespace",_={"xlink:actuate":R,"xlink:arcrole":R,"xlink:href":R,"xlink:role":R,"xlink:show":R,"xlink:title":R,"xlink:type":R,"xml:base":X,"xml:lang":X,"xml:space":X};function K(e){return{onClick:e,onDblClick:e,onFocusIn:e,onFocusOut:e,onKeyDown:e,onKeyPress:e,onKeyUp:e,onMouseDown:e,onMouseMove:e,onMouseUp:e,onTouchEnd:e,onTouchMove:e,onTouchStart:e}}var q=K(0),G=K(null),z=K(!0);function J(e,n){var t=n.$EV;return t||(t=n.$EV=K(null)),t[e]||1===++q[e]&&(G[e]=ue(e)),t}function Q(e,n){var t=n.$EV;t&&t[e]&&(0===--q[e]&&(document.removeEventListener(s(e),G[e]),G[e]=null),t[e]=null)}function Y(e,n,t,r){if(l(t))J(e,r)[e]=t;else if(c(t)){if(x(n,t))return;J(e,r)[e]=t}else Q(e,r)}function Z(e){return l(e.composedPath)?e.composedPath()[0]:e.target}function ee(e,n,t,r){var l=Z(e);do{if(n&&l.disabled)return;var o=l.$EV;if(o){var u=o[t];if(u&&(r.dom=l,u.event?u.event(u.data,e):u(e),e.cancelBubble))return}l=l.parentNode}while(!i(l))}function ne(){this.cancelBubble=!0,this.immediatePropagationStopped||this.stopImmediatePropagation()}function te(){return this.defaultPrevented}function re(){return this.cancelBubble}function le(e){var n={dom:document};return e.isDefaultPrevented=te,e.isPropagationStopped=re,e.stopPropagation=ne,Object.defineProperty(e,"currentTarget",{configurable:!0,get:function(){return n.dom}}),n}function oe(e){return function(n){if(0!==n.button)return void n.stopPropagation();ee(n,!0,e,le(n))}}function ie(e){return function(n){ee(n,!1,e,le(n))}}function ue(e){var n="onClick"===e||"onDblClick"===e?oe(e):ie(e);return document.addEventListener(s(e),n),n}function ae(e,n){var t=document.createElement("i");return t.innerHTML=n,t.innerHTML===e.innerHTML}function ce(e,n,t){if(e[n]){var r=e[n];r.event?r.event(r.data,t):r(t)}else{var l=n.toLowerCase();e[l]&&e[l](t)}}function fe(e,n){var t=function(t){var r=this.$V;if(!r)return;var i=r.props||f,u=r.dom;if(o(e))ce(i,e,t);else for(var a=0;a-1&&n.options[i]&&(u=n.options[i].value),r&&t(u)&&(u=e.defaultValue),ye(l,u)}}var $e,Fe,xe=fe("onInput",Le),Pe=fe("onChange");function Se(e,n){se(e,"input",xe),n.onChange&&se(e,"change",Pe)}function Le(e,n,r){var l=e.value,o=n.value;if(t(l)){if(r){var i=e.defaultValue;t(i)||i===o||(n.defaultValue=i,n.value=i)}}else o!==l&&(n.defaultValue=l,n.value=l)}function Me(e,n,t,r,l,o){64&e?ge(r,t):256&e?Ce(r,t,l,n):128&e&&Le(r,t,l),o&&(t.$V=n)}function Ve(e,n,t){64&e?me(n,t):256&e?we(n):128&e&&Se(n,t)}function Ne(e){return e.type&&de(e.type)?!t(e.checked):!t(e.value)}function Ue(e){e&&!S(e,null)&&e.current&&(e.current=null)}function Ie(e,n,t){e&&(l(e)||void 0!==e.current)&&t.push((function(){S(e,n)||void 0===e.current||(e.current=n)}))}function Ae(e,n){Ee(e),b(e,n)}function Ee(e){var n,r=e.flags,o=e.children;if(481&r){n=e.ref;var u=e.props;Ue(n);var a=e.childFlags;if(!i(u))for(var c=Object.keys(u),s=0,d=c.length;s0;for(var u in i&&(o=Ne(t))&&Ve(n,r,t),t)Re(u,null,t[u],r,l,o,null);i&&Me(n,e,r,t,!0,o)}function _e(e,n,t){var r=H(e.render(n,e.state,t)),o=t;return l(e.getChildContext)&&(o=u(t,e.getChildContext())),e.$CX=o,r}function Ke(e,n,t,r,o,u){var a=new n(t,r),c=a.$N=Boolean(n.getDerivedStateFromProps||a.getSnapshotBeforeUpdate);if(a.$SVG=o,a.$L=u,e.children=a,a.$BS=!1,a.context=r,a.props===f&&(a.props=t),c)a.state=C(a,t,a.state);else if(l(a.componentWillMount)){a.$BR=!0,a.componentWillMount();var s=a.$PS;if(!i(s)){var d=a.state;if(i(d))a.state=s;else for(var p in s)d[p]=s[p];a.$PS=null}a.$BR=!1}return a.$LI=_e(a,t,r),a}function qe(e,n){var t=e.props||f;return 32768&e.flags?e.type.render(t,e.ref,n):e.type(t,n)}function Ge(e,n,t,r,l,o){var i=e.flags|=16384;481&i?Ye(e,n,t,r,l,o):4&i?en(e,n,t,r,l,o):8&i?(nn(e,n,t,r,l,o),on(e,o)):512&i||16&i?Qe(e,n,l):8192&i?Je(e,t,n,r,l,o):1024&i&&ze(e,t,n,l,o)}function ze(e,n,t,r,l){Ge(e.children,e.ref,n,!1,null,l);var o=W();Qe(o,t,r),e.dom=o.dom}function Je(e,n,t,r,l,o){var i=e.children,u=e.childFlags;12&u&&0===i.length&&(u=e.childFlags=2,i=e.children=W()),2===u?Ge(i,t,l,r,l,o):Ze(i,t,n,r,l,o)}function Qe(e,n,t){var r=e.dom=document.createTextNode(e.children);i(n)||p(n,r,t)}function Ye(e,n,r,l,o,u){var a=e.flags,c=e.props,f=e.className,s=e.childFlags,d=e.dom=v(e.type,l=l||(32&a)>0),h=e.children;if(t(f)||""===f||(l?d.setAttribute("class",f):d.className=f),16===s)F(d,h);else if(1!==s){var m=l&&"foreignObject"!==e.type;2===s?(16384&h.flags&&(e.children=h=B(h)),Ge(h,d,r,m,null,u)):8!==s&&4!==s||Ze(h,d,r,m,null,u)}i(n)||p(n,d,o),i(c)||Xe(e,a,c,d,l),Ie(e.ref,d,u)}function Ze(e,n,t,r,l,o){for(var i=0;id)&&(f=k(i[d-1],!1).nextSibling)}hn(a,c,i,u,t,r,l,f,e,o)}function dn(e,n,t,l){var o=e.ref,i=n.ref,u=n.children;if(hn(e.childFlags,n.childFlags,e.children,u,o,t,!1,null,e,l),n.dom=e.dom,o!==i&&!r(u)){var a=u.dom;m(o,a),d(i,a)}}function pn(e,n,r,l,o,i){var u,a=n.dom=e.dom,c=e.props,s=n.props,d=!1,p=!1;if(l=l||(32&o)>0,c!==s){var v=c||f;if((u=s||f)!==f)for(var h in(d=(448&o)>0)&&(p=Ne(u)),u){var m=v[h],g=u[h];m!==g&&Re(h,m,g,a,l,p,e)}if(v!==f)for(var y in v)t(u[y])&&!t(v[y])&&Re(y,v[y],null,a,l,p,e)}var k=n.children,b=n.className;e.className!==b&&(t(b)?a.removeAttribute("class"):l?a.setAttribute("class",b):a.className=b),4096&o?fn(a,k):hn(e.childFlags,n.childFlags,e.children,k,a,r,l&&"foreignObject"!==n.type,null,e,i),d&&Me(o,n,a,u,!1,p);var w=n.ref,C=e.ref;C!==w&&(Ue(C),Ie(w,a,i))}function vn(e,n,t,r,l,o){Ee(e),Ze(n,t,r,l,k(e,!0),o),b(e,t)}function hn(e,n,t,r,l,o,i,u,a,c){switch(e){case 2:switch(n){case 2:an(t,r,l,o,i,u,c);break;case 1:Ae(t,l);break;case 16:Ee(t),F(l,r);break;default:vn(t,r,l,o,i,c)}break;case 1:switch(n){case 2:Ge(r,l,o,i,u,c);break;case 1:break;case 16:F(l,r);break;default:Ze(r,l,o,i,u,c)}break;case 16:switch(n){case 16:cn(t,r,l);break;case 2:Te(l),Ge(r,l,o,i,u,c);break;case 1:Te(l);break;default:Te(l),Ze(r,l,o,i,u,c)}break;default:switch(n){case 16:De(t),F(l,r);break;case 2:Be(l,a,t),Ge(r,l,o,i,u,c);break;case 1:Be(l,a,t);break;default:var f=0|t.length,s=0|r.length;0===f?s>0&&Ze(r,l,o,i,u,c):0===s?Be(l,a,t):8===n&&8===e?Cn(t,r,l,o,i,f,s,u,a,c):wn(t,r,l,o,i,f,s,u,c)}}}function mn(e,n,t,r,l){l.push((function(){e.componentDidUpdate(n,t,r)}))}function gn(e,n,t,r,o,i,a,c,f){var s=e.state,d=e.props,p=Boolean(e.$N),v=l(e.shouldComponentUpdate);if(p&&(n=C(e,t,n!==s?u(s,n):n)),a||!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=_e(e,t,o);p&&l(e.getSnapshotBeforeUpdate)&&(h=e.getSnapshotBeforeUpdate(d,s)),an(e.$LI,m,r,e.$CX,i,c,f),e.$LI=m,l(e.componentDidUpdate)&&mn(e,d,s,h,f)}else e.props=t,e.state=n,e.context=o}function yn(e,n,t,r,o,a,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=u(h,s.$PS),s.$PS=null)}gn(s,h,d,t,r,o,!1,a,c),v!==p&&(Ue(v),Ie(p,s,c))}function kn(e,n,r,o,i,u,a){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=H(qe(n,o));an(h,m,r,o,i,u,a),n.children=m,v&&l(d.onComponentDidUpdate)&&d.onComponentDidUpdate(p,s)}else n.children=h}function bn(e,n){var t=n.children,r=n.dom=e.dom;t!==e.children&&(r.nodeValue=t)}function wn(e,n,t,r,l,o,i,u,a){for(var c,f,s=o>i?i:o,d=0;di)for(d=s;dd||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=B(m)),an(h,m,t,r,l,u,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;)Ae(e[v++],t);else $n(e,n,r,o,i,d,p,v,t,l,u,a,c)}function $n(e,n,t,r,l,o,i,u,a,c,f,s,d){var p,v,h,m=0,g=u,y=u,b=o-u+1,C=i-u+1,$=new Int32Array(C+1),F=b===r,x=!1,P=0,S=0;if(l<4||(b|C)<32)for(m=g;m<=o;++m)if(p=e[m],Su?x=!0:P=u,16384&v.flags&&(n[u]=v=B(v)),an(p,v,a,t,c,f,d),++S;break}!F&&u>i&&Ae(p,a)}else F||Ae(p,a);else{var L={};for(m=y;m<=i;++m)L[n[m].key]=m;for(m=g;m<=o;++m)if(p=e[m],Sg;)Ae(e[g++],a);$[u-y]=m+1,P>u?x=!0:P=u,16384&(v=n[u]).flags&&(n[u]=v=B(v)),an(p,v,a,t,c,f,d),++S}else F||Ae(p,a);else F||Ae(p,a)}if(F)Be(a,s,e),Ze(n,a,t,c,f,d);else if(x){var M=xn($);for(u=M.length-1,m=C-1;m>=0;m--)0===$[m]?(16384&(v=n[P=m+y]).flags&&(n[P]=v=B(v)),Ge(v,a,t,c,(h=P+1)=0;m--)0===$[m]&&(16384&(v=n[P=m+y]).flags&&(n[P]=v=B(v)),Ge(v,a,t,c,(h=P+1)Fn&&(Fn=a,$e=new Int32Array(a),Fe=new Int32Array(a));t>1]]0&&(Fe[t]=$e[o-1]),$e[o]=t)}o=l+1;var c=new Int32Array(o);for(i=$e[o-1];o-- >0;)c[o]=i,i=Fe[i],$e[o]=0;return c}function Pn(e,n,r,o){var i=[],u=n.$V;t(u)?t(e)||(16384&e.flags&&(e=B(e)),Ge(e,n,o,!1,null,i),n.$V=e,u=e):t(e)?(Ae(u,n),n.$V=null):(16384&e.flags&&(e=B(e)),an(u,e,n,o,!1,null,i),u=n.$V=e),g(i),l(r)&&r(),l($.renderComplete)&&$.renderComplete(u,n)}function Sn(e,n,t,r){void 0===t&&(t=null),void 0===r&&(r=f),Pn(e,n,t,r)}function Ln(e){console.log("ok",e)}"undefined"!==typeof document&&window.Node&&(Node.prototype.$EV=null,Node.prototype.$V=null),"undefined"!==typeof Promise&&Promise.resolve().then.bind(Promise.resolve());var Mn=500,Vn=[function(){for(var e=[],n=0;n0,v=i(d),h=o(d)&&d[0]===L;p||v||h?(u=u||l.slice(0,f),(p||h)&&(s=B(s)),(v||h)&&(s.key=L+f),u.push(s)):u&&u.push(s),s.flags|=65536}}a=0===(u=u||l).length?1:8}else(u=l).flags|=65536,81920&l.flags&&(u=B(l)),a=2;return t.children=u,t.childFlags=a,t}function H(t){if(r(t)||n(t))return E(t,null);if(e(t))return D(t,0,null);return 16384&t.flags?B(t):t}var R="http://www.w3.org/1999/xlink",X="http://www.w3.org/XML/1998/namespace",_={"xlink:actuate":R,"xlink:arcrole":R,"xlink:href":R,"xlink:role":R,"xlink:show":R,"xlink:title":R,"xlink:type":R,"xml:base":X,"xml:lang":X,"xml:space":X};function K(e){return{onClick:e,onDblClick:e,onFocusIn:e,onFocusOut:e,onKeyDown:e,onKeyPress:e,onKeyUp:e,onMouseDown:e,onMouseMove:e,onMouseUp:e,onTouchEnd:e,onTouchMove:e,onTouchStart:e}}var q=K(0),G=K(null),z=K(!0);function J(e,n){var t=n.$EV;return t||(t=n.$EV=K(null)),t[e]||1===++q[e]&&(G[e]=ue(e)),t}function Q(e,n){var t=n.$EV;t&&t[e]&&(0===--q[e]&&(document.removeEventListener(s(e),G[e]),G[e]=null),t[e]=null)}function Y(e,n,t,r){if(l(t))J(e,r)[e]=t;else if(c(t)){if(x(n,t))return;J(e,r)[e]=t}else Q(e,r)}function Z(e){return l(e.composedPath)?e.composedPath()[0]:e.target}function ee(e,n,t,r){var l=Z(e);do{if(n&&l.disabled)return;var o=l.$EV;if(o){var u=o[t];if(u&&(r.dom=l,u.event?u.event(u.data,e):u(e),e.cancelBubble))return}l=l.parentNode}while(!i(l))}function ne(){this.cancelBubble=!0,this.immediatePropagationStopped||this.stopImmediatePropagation()}function te(){return this.defaultPrevented}function re(){return this.cancelBubble}function le(e){var n={dom:document};return e.isDefaultPrevented=te,e.isPropagationStopped=re,e.stopPropagation=ne,Object.defineProperty(e,"currentTarget",{configurable:!0,get:function(){return n.dom}}),n}function oe(e){return function(n){if(0!==n.button)return void n.stopPropagation();ee(n,!0,e,le(n))}}function ie(e){return function(n){ee(n,!1,e,le(n))}}function ue(e){var n="onClick"===e||"onDblClick"===e?oe(e):ie(e);return document.addEventListener(s(e),n),n}function ae(e,n){var t=document.createElement("i");return t.innerHTML=n,t.innerHTML===e.innerHTML}function ce(e,n,t){if(e[n]){var r=e[n];r.event?r.event(r.data,t):r(t)}else{var l=n.toLowerCase();e[l]&&e[l](t)}}function fe(e,n){var t=function(t){var r=this.$V;if(!r)return;var i=r.props||f,u=r.dom;if(o(e))ce(i,e,t);else for(var a=0;a-1&&n.options[i]&&(u=n.options[i].value),r&&t(u)&&(u=e.defaultValue),ye(l,u)}}var $e,Fe,xe=fe("onInput",Le),Pe=fe("onChange");function Se(e,n){se(e,"input",xe),n.onChange&&se(e,"change",Pe)}function Le(e,n,r){var l=e.value,o=n.value;if(t(l)){if(r){var i=e.defaultValue;t(i)||i===o||(n.defaultValue=i,n.value=i)}}else o!==l&&(n.defaultValue=l,n.value=l)}function Me(e,n,t,r,l,o){64&e?ge(r,t):256&e?Ce(r,t,l,n):128&e&&Le(r,t,l),o&&(t.$V=n)}function Ve(e,n,t){64&e?me(n,t):256&e?we(n):128&e&&Se(n,t)}function Ne(e){return e.type&&de(e.type)?!t(e.checked):!t(e.value)}function Ue(e){e&&!S(e,null)&&e.current&&(e.current=null)}function Ie(e,n,t){e&&(l(e)||void 0!==e.current)&&t.push((function(){S(e,n)||void 0===e.current||(e.current=n)}))}function Ae(e,n){Ee(e),b(e,n)}function Ee(e){var n,r=e.flags,o=e.children;if(481&r){n=e.ref;var u=e.props;Ue(n);var a=e.childFlags;if(!i(u))for(var c=Object.keys(u),s=0,d=c.length;s0;for(var u in i&&(o=Ne(t))&&Ve(n,r,t),t)Re(u,null,t[u],r,l,o,null);i&&Me(n,e,r,t,!0,o)}function _e(e,n,t){var r=H(e.render(n,e.state,t)),o=t;return l(e.getChildContext)&&(o=u(t,e.getChildContext())),e.$CX=o,r}function Ke(e,n,t,r,o,u){var a=new n(t,r),c=a.$N=Boolean(n.getDerivedStateFromProps||a.getSnapshotBeforeUpdate);if(a.$SVG=o,a.$L=u,e.children=a,a.$BS=!1,a.context=r,a.props===f&&(a.props=t),c)a.state=C(a,t,a.state);else if(l(a.componentWillMount)){a.$BR=!0,a.componentWillMount();var s=a.$PS;if(!i(s)){var d=a.state;if(i(d))a.state=s;else for(var p in s)d[p]=s[p];a.$PS=null}a.$BR=!1}return a.$LI=_e(a,t,r),a}function qe(e,n){var t=e.props||f;return 32768&e.flags?e.type.render(t,e.ref,n):e.type(t,n)}function Ge(e,n,t,r,l,o){var i=e.flags|=16384;481&i?Ye(e,n,t,r,l,o):4&i?en(e,n,t,r,l,o):8&i?(nn(e,n,t,r,l,o),on(e,o)):512&i||16&i?Qe(e,n,l):8192&i?Je(e,t,n,r,l,o):1024&i&&ze(e,t,n,l,o)}function ze(e,n,t,r,l){Ge(e.children,e.ref,n,!1,null,l);var o=W();Qe(o,t,r),e.dom=o.dom}function Je(e,n,t,r,l,o){var i=e.children,u=e.childFlags;12&u&&0===i.length&&(u=e.childFlags=2,i=e.children=W()),2===u?Ge(i,t,n,r,l,o):Ze(i,t,n,r,l,o)}function Qe(e,n,t){var r=e.dom=document.createTextNode(e.children);i(n)||p(n,r,t)}function Ye(e,n,r,l,o,u){var a=e.flags,c=e.props,f=e.className,s=e.childFlags,d=e.dom=v(e.type,l=l||(32&a)>0),h=e.children;if(t(f)||""===f||(l?d.setAttribute("class",f):d.className=f),16===s)F(d,h);else if(1!==s){var m=l&&"foreignObject"!==e.type;2===s?(16384&h.flags&&(e.children=h=B(h)),Ge(h,d,r,m,null,u)):8!==s&&4!==s||Ze(h,d,r,m,null,u)}i(n)||p(n,d,o),i(c)||Xe(e,a,c,d,l),Ie(e.ref,d,u)}function Ze(e,n,t,r,l,o){for(var i=0;id)&&(f=k(i[d-1],!1).nextSibling)}hn(a,c,i,u,t,r,l,f,e,o)}function dn(e,n,t,l){var o=e.ref,i=n.ref,u=n.children;if(hn(e.childFlags,n.childFlags,e.children,u,o,t,!1,null,e,l),n.dom=e.dom,o!==i&&!r(u)){var a=u.dom;m(o,a),d(i,a)}}function pn(e,n,r,l,o,i){var u,a=n.dom=e.dom,c=e.props,s=n.props,d=!1,p=!1;if(l=l||(32&o)>0,c!==s){var v=c||f;if((u=s||f)!==f)for(var h in(d=(448&o)>0)&&(p=Ne(u)),u){var m=v[h],g=u[h];m!==g&&Re(h,m,g,a,l,p,e)}if(v!==f)for(var y in v)t(u[y])&&!t(v[y])&&Re(y,v[y],null,a,l,p,e)}var k=n.children,b=n.className;e.className!==b&&(t(b)?a.removeAttribute("class"):l?a.setAttribute("class",b):a.className=b),4096&o?fn(a,k):hn(e.childFlags,n.childFlags,e.children,k,a,r,l&&"foreignObject"!==n.type,null,e,i),d&&Me(o,n,a,u,!1,p);var w=n.ref,C=e.ref;C!==w&&(Ue(C),Ie(w,a,i))}function vn(e,n,t,r,l,o){Ee(e),Ze(n,t,r,l,k(e,!0),o),b(e,t)}function hn(e,n,t,r,l,o,i,u,a,c){switch(e){case 2:switch(n){case 2:an(t,r,l,o,i,u,c);break;case 1:Ae(t,l);break;case 16:Ee(t),F(l,r);break;default:vn(t,r,l,o,i,c)}break;case 1:switch(n){case 2:Ge(r,l,o,i,u,c);break;case 1:break;case 16:F(l,r);break;default:Ze(r,l,o,i,u,c)}break;case 16:switch(n){case 16:cn(t,r,l);break;case 2:Te(l),Ge(r,l,o,i,u,c);break;case 1:Te(l);break;default:Te(l),Ze(r,l,o,i,u,c)}break;default:switch(n){case 16:De(t),F(l,r);break;case 2:Be(l,a,t),Ge(r,l,o,i,u,c);break;case 1:Be(l,a,t);break;default:var f=0|t.length,s=0|r.length;0===f?s>0&&Ze(r,l,o,i,u,c):0===s?Be(l,a,t):8===n&&8===e?Cn(t,r,l,o,i,f,s,u,a,c):wn(t,r,l,o,i,f,s,u,c)}}}function mn(e,n,t,r,l){l.push((function(){e.componentDidUpdate(n,t,r)}))}function gn(e,n,t,r,o,i,a,c,f){var s=e.state,d=e.props,p=Boolean(e.$N),v=l(e.shouldComponentUpdate);if(p&&(n=C(e,t,n!==s?u(s,n):n)),a||!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=_e(e,t,o);p&&l(e.getSnapshotBeforeUpdate)&&(h=e.getSnapshotBeforeUpdate(d,s)),an(e.$LI,m,r,e.$CX,i,c,f),e.$LI=m,l(e.componentDidUpdate)&&mn(e,d,s,h,f)}else e.props=t,e.state=n,e.context=o}function yn(e,n,t,r,o,a,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=u(h,s.$PS),s.$PS=null)}gn(s,h,d,t,r,o,!1,a,c),v!==p&&(Ue(v),Ie(p,s,c))}function kn(e,n,r,o,i,u,a){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=H(qe(n,o));an(h,m,r,o,i,u,a),n.children=m,v&&l(d.onComponentDidUpdate)&&d.onComponentDidUpdate(p,s)}else n.children=h}function bn(e,n){var t=n.children,r=n.dom=e.dom;t!==e.children&&(r.nodeValue=t)}function wn(e,n,t,r,l,o,i,u,a){for(var c,f,s=o>i?i:o,d=0;di)for(d=s;dd||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=B(m)),an(h,m,t,r,l,u,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;)Ae(e[v++],t);else $n(e,n,r,o,i,d,p,v,t,l,u,a,c)}function $n(e,n,t,r,l,o,i,u,a,c,f,s,d){var p,v,h,m=0,g=u,y=u,b=o-u+1,C=i-u+1,$=new Int32Array(C+1),F=b===r,x=!1,P=0,S=0;if(l<4||(b|C)<32)for(m=g;m<=o;++m)if(p=e[m],Su?x=!0:P=u,16384&v.flags&&(n[u]=v=B(v)),an(p,v,a,t,c,f,d),++S;break}!F&&u>i&&Ae(p,a)}else F||Ae(p,a);else{var L={};for(m=y;m<=i;++m)L[n[m].key]=m;for(m=g;m<=o;++m)if(p=e[m],Sg;)Ae(e[g++],a);$[u-y]=m+1,P>u?x=!0:P=u,16384&(v=n[u]).flags&&(n[u]=v=B(v)),an(p,v,a,t,c,f,d),++S}else F||Ae(p,a);else F||Ae(p,a)}if(F)Be(a,s,e),Ze(n,a,t,c,f,d);else if(x){var M=xn($);for(u=M.length-1,m=C-1;m>=0;m--)0===$[m]?(16384&(v=n[P=m+y]).flags&&(n[P]=v=B(v)),Ge(v,a,t,c,(h=P+1)=0;m--)0===$[m]&&(16384&(v=n[P=m+y]).flags&&(n[P]=v=B(v)),Ge(v,a,t,c,(h=P+1)Fn&&(Fn=a,$e=new Int32Array(a),Fe=new Int32Array(a));t>1]]0&&(Fe[t]=$e[o-1]),$e[o]=t)}o=l+1;var c=new Int32Array(o);for(i=$e[o-1];o-- >0;)c[o]=i,i=Fe[i],$e[o]=0;return c}function Pn(e,n,r,o){var i=[],u=n.$V;t(u)?t(e)||(16384&e.flags&&(e=B(e)),Ge(e,n,o,!1,null,i),n.$V=e,u=e):t(e)?(Ae(u,n),n.$V=null):(16384&e.flags&&(e=B(e)),an(u,e,n,o,!1,null,i),u=n.$V=e),g(i),l(r)&&r(),l($.renderComplete)&&$.renderComplete(u,n)}function Sn(e,n,t,r){void 0===t&&(t=null),void 0===r&&(r=f),Pn(e,n,t,r)}function Ln(e){console.log("ok",e)}"undefined"!==typeof document&&window.Node&&(Node.prototype.$EV=null,Node.prototype.$V=null),"undefined"!==typeof Promise&&Promise.resolve().then.bind(Promise.resolve());var Mn=500,Vn=[function(){for(var e=[],n=0;n0,v=i(d),h=o(d)&&d[0]===U;p||v||h?(a=a||l.slice(0,f),(p||h)&&(s=E(s)),(v||h)&&(s.key=U+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=E(l)),u=2;return t.children=a,t.childFlags=u,t}function j(t){if(r(t)||n(t))return T(t,null);if(e(t))return D(t,0,null);return 16384&t.flags?E(t):t}var H="http://www.w3.org/1999/xlink",X="http://www.w3.org/XML/1998/namespace",_={"xlink:actuate":H,"xlink:arcrole":H,"xlink:href":H,"xlink:role":H,"xlink:show":H,"xlink:title":H,"xlink:type":H,"xml:base":X,"xml:lang":X,"xml:space":X};function K(e){return{onClick:e,onDblClick:e,onFocusIn:e,onFocusOut:e,onKeyDown:e,onKeyPress:e,onKeyUp:e,onMouseDown:e,onMouseMove:e,onMouseUp:e,onTouchEnd:e,onTouchMove:e,onTouchStart:e}}var q=K(0),z=K(null),G=K(!0);function J(e,n){var t=n.$EV;return t||(t=n.$EV=K(null)),t[e]||1===++q[e]&&(z[e]=ae(e)),t}function Q(e,n){var t=n.$EV;t&&t[e]&&(0===--q[e]&&(document.removeEventListener(s(e),z[e]),z[e]=null),t[e]=null)}function Y(e,n,t,r){if(l(t))J(e,r)[e]=t;else if(c(t)){if(P(n,t))return;J(e,r)[e]=t}else Q(e,r)}function Z(e){return l(e.composedPath)?e.composedPath()[0]:e.target}function ee(e,n,t,r){var l=Z(e);do{if(n&&l.disabled)return;var o=l.$EV;if(o){var a=o[t];if(a&&(r.dom=l,a.event?a.event(a.data,e):a(e),e.cancelBubble))return}l=l.parentNode}while(!i(l))}function ne(){this.cancelBubble=!0,this.immediatePropagationStopped||this.stopImmediatePropagation()}function te(){return this.defaultPrevented}function re(){return this.cancelBubble}function le(e){var n={dom:document};return e.isDefaultPrevented=te,e.isPropagationStopped=re,e.stopPropagation=ne,Object.defineProperty(e,"currentTarget",{configurable:!0,get:function(){return n.dom}}),n}function oe(e){return function(n){if(0!==n.button)return void n.stopPropagation();ee(n,!0,e,le(n))}}function ie(e){return function(n){ee(n,!1,e,le(n))}}function ae(e){var n="onClick"===e||"onDblClick"===e?oe(e):ie(e);return document.addEventListener(s(e),n),n}function ue(e,n){var t=document.createElement("i");return t.innerHTML=n,t.innerHTML===e.innerHTML}function ce(e,n,t){if(e[n]){var r=e[n];r.event?r.event(r.data,t):r(t)}else{var l=n.toLowerCase();e[l]&&e[l](t)}}function fe(e,n){var t=function(t){var r=this.$V;if(!r)return;var i=r.props||f,a=r.dom;if(o(e))ce(i,e,t);else for(var u=0;u-1&&n.options[i]&&(a=n.options[i].value),r&&t(a)&&(a=e.defaultValue),ye(l,a)}}var $e,Fe,Pe=fe("onInput",Ue),Se=fe("onChange");function xe(e,n){se(e,"input",Pe),n.onChange&&se(e,"change",Se)}function Ue(e,n,r){var l=e.value,o=n.value;if(t(l)){if(r){var i=e.defaultValue;t(i)||i===o||(n.defaultValue=i,n.value=i)}}else o!==l&&(n.defaultValue=l,n.value=l)}function Le(e,n,t,r,l,o){64&e?ge(r,t):256&e?we(r,t,l,n):128&e&&Ue(r,t,l),o&&(t.$V=n)}function Ve(e,n,t){64&e?me(n,t):256&e?Ce(n):128&e&&xe(n,t)}function Ae(e){return e.type&&de(e.type)?!t(e.checked):!t(e.value)}function Ne(e){e&&!x(e,null)&&e.current&&(e.current=null)}function Ie(e,n,t){e&&(l(e)||void 0!==e.current)&&t.push((function(){x(e,n)||void 0===e.current||(e.current=n)}))}function Me(e,n){Te(e),k(e,n)}function Te(e){var n,r=e.flags,o=e.children;if(481&r){n=e.ref;var a=e.props;Ne(n);var u=e.childFlags;if(!i(a))for(var c=Object.keys(a),s=0,d=c.length;s0;for(var a in i&&(o=Ae(t))&&Ve(n,r,t),t)He(a,null,t[a],r,l,o,null);i&&Le(n,e,r,t,!0,o)}function _e(e,n,t){var r=j(e.render(n,e.state,t)),o=t;return l(e.getChildContext)&&(o=a(t,e.getChildContext())),e.$CX=o,r}function Ke(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=w(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=_e(u,t,r),u}function qe(e,n){var t=e.props||f;return 32768&e.flags?e.type.render(t,e.ref,n):e.type(t,n)}function ze(e,n,t,r,l,o){var i=e.flags|=16384;481&i?Ye(e,n,t,r,l,o):4&i?en(e,n,t,r,l,o):8&i?(nn(e,n,t,r,l,o),on(e,o)):512&i||16&i?Qe(e,n,l):8192&i?Je(e,t,n,r,l,o):1024&i&&Ge(e,t,n,l,o)}function Ge(e,n,t,r,l){ze(e.children,e.ref,n,!1,null,l);var o=W();Qe(o,t,r),e.dom=o.dom}function Je(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=W()),2===a?ze(i,t,l,r,l,o):Ze(i,t,n,r,l,o)}function Qe(e,n,t){var r=e.dom=document.createTextNode(e.children);i(n)||p(n,r,t)}function Ye(e,n,r,l,o,a){var u=e.flags,c=e.props,f=e.className,s=e.childFlags,d=e.dom=v(e.type,l=l||(32&u)>0),h=e.children;if(t(f)||""===f||(l?d.setAttribute("class",f):d.className=f),16===s)F(d,h);else if(1!==s){var m=l&&"foreignObject"!==e.type;2===s?(16384&h.flags&&(e.children=h=E(h)),ze(h,d,r,m,null,a)):8!==s&&4!==s||Ze(h,d,r,m,null,a)}i(n)||p(n,d,o),i(c)||Xe(e,u,c,d,l),Ie(e.ref,d,a)}function Ze(e,n,t,r,l,o){for(var i=0;id)&&(f=b(i[d-1],!1).nextSibling)}hn(u,c,i,a,t,r,l,f,e,o)}function dn(e,n,t,l){var o=e.ref,i=n.ref,a=n.children;if(hn(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;m(o,u),d(i,u)}}function pn(e,n,r,l,o,i){var a,u=n.dom=e.dom,c=e.props,s=n.props,d=!1,p=!1;if(l=l||(32&o)>0,c!==s){var v=c||f;if((a=s||f)!==f)for(var h in(d=(448&o)>0)&&(p=Ae(a)),a){var m=v[h],g=a[h];m!==g&&He(h,m,g,u,l,p,e)}if(v!==f)for(var y in v)t(a[y])&&!t(v[y])&&He(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?fn(u,b):hn(e.childFlags,n.childFlags,e.children,b,u,r,l&&"foreignObject"!==n.type,null,e,i),d&&Le(o,n,u,a,!1,p);var C=n.ref,w=e.ref;w!==C&&(Ne(w),Ie(C,u,i))}function vn(e,n,t,r,l,o){Te(e),Ze(n,t,r,l,b(e,!0),o),k(e,t)}function hn(e,n,t,r,l,o,i,a,u,c){switch(e){case 2:switch(n){case 2:un(t,r,l,o,i,a,c);break;case 1:Me(t,l);break;case 16:Te(t),F(l,r);break;default:vn(t,r,l,o,i,c)}break;case 1:switch(n){case 2:ze(r,l,o,i,a,c);break;case 1:break;case 16:F(l,r);break;default:Ze(r,l,o,i,a,c)}break;case 16:switch(n){case 16:cn(t,r,l);break;case 2:Be(l),ze(r,l,o,i,a,c);break;case 1:Be(l);break;default:Be(l),Ze(r,l,o,i,a,c)}break;default:switch(n){case 16:De(t),F(l,r);break;case 2:Ee(l,u,t),ze(r,l,o,i,a,c);break;case 1:Ee(l,u,t);break;default:var f=0|t.length,s=0|r.length;0===f?s>0&&Ze(r,l,o,i,a,c):0===s?Ee(l,u,t):8===n&&8===e?wn(t,r,l,o,i,f,s,a,u,c):Cn(t,r,l,o,i,f,s,a,c)}}}function mn(e,n,t,r,l){l.push((function(){e.componentDidUpdate(n,t,r)}))}function gn(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=w(e,t,n!==s?a(s,n):n)),u||!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=_e(e,t,o);p&&l(e.getSnapshotBeforeUpdate)&&(h=e.getSnapshotBeforeUpdate(d,s)),un(e.$LI,m,r,e.$CX,i,c,f),e.$LI=m,l(e.componentDidUpdate)&&mn(e,d,s,h,f)}else e.props=t,e.state=n,e.context=o}function yn(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)}gn(s,h,d,t,r,o,!1,u,c),v!==p&&(Ne(v),Ie(p,s,c))}function bn(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=j(qe(n,o));un(h,m,r,o,i,a,u),n.children=m,v&&l(d.onComponentDidUpdate)&&d.onComponentDidUpdate(p,s)}else n.children=h}function kn(e,n){var t=n.children,r=n.dom=e.dom;t!==e.children&&(r.nodeValue=t)}function Cn(e,n,t,r,l,o,i,a,u){for(var c,f,s=o>i?i:o,d=0;di)for(d=s;dd||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=E(m)),un(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;)Me(e[v++],t);else $n(e,n,r,o,i,d,p,v,t,l,a,u,c)}function $n(e,n,t,r,l,o,i,a,u,c,f,s,d){var p,v,h,m=0,g=a,y=a,k=o-a+1,w=i-a+1,$=new Int32Array(w+1),F=k===r,P=!1,S=0,x=0;if(l<4||(k|w)<32)for(m=g;m<=o;++m)if(p=e[m],xa?P=!0:S=a,16384&v.flags&&(n[a]=v=E(v)),un(p,v,u,t,c,f,d),++x;break}!F&&a>i&&Me(p,u)}else F||Me(p,u);else{var U={};for(m=y;m<=i;++m)U[n[m].key]=m;for(m=g;m<=o;++m)if(p=e[m],xg;)Me(e[g++],u);$[a-y]=m+1,S>a?P=!0:S=a,16384&(v=n[a]).flags&&(n[a]=v=E(v)),un(p,v,u,t,c,f,d),++x}else F||Me(p,u);else F||Me(p,u)}if(F)Ee(u,s,e),Ze(n,u,t,c,f,d);else if(P){var L=Pn($);for(a=L.length-1,m=w-1;m>=0;m--)0===$[m]?(16384&(v=n[S=m+y]).flags&&(n[S]=v=E(v)),ze(v,u,t,c,(h=S+1)=0;m--)0===$[m]&&(16384&(v=n[S=m+y]).flags&&(n[S]=v=E(v)),ze(v,u,t,c,(h=S+1)Fn&&(Fn=u,$e=new Int32Array(u),Fe=new Int32Array(u));t>1]]0&&(Fe[t]=$e[o-1]),$e[o]=t)}o=l+1;var c=new Int32Array(o);for(i=$e[o-1];o-- >0;)c[o]=i,i=Fe[i],$e[o]=0;return c}function Sn(e,n,r,o){var i=[],a=n.$V;t(a)?t(e)||(16384&e.flags&&(e=E(e)),ze(e,n,o,!1,null,i),n.$V=e,a=e):t(e)?(Me(a,n),n.$V=null):(16384&e.flags&&(e=E(e)),un(a,e,n,o,!1,null,i),a=n.$V=e),g(i),l(r)&&r(),l($.renderComplete)&&$.renderComplete(a,n)}function xn(e,n,t,r){void 0===t&&(t=null),void 0===r&&(r=f),Sn(e,n,t,r)}function Un(e){return V(1,"li","TreeLeaf",e.children,0,null,null,null)}function Ln(e,n){return e!==n}function Vn(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]===U;p||v||h?(a=a||l.slice(0,f),(p||h)&&(s=E(s)),(v||h)&&(s.key=U+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=E(l)),u=2;return t.children=a,t.childFlags=u,t}function j(t){if(r(t)||n(t))return T(t,null);if(e(t))return D(t,0,null);return 16384&t.flags?E(t):t}var H="http://www.w3.org/1999/xlink",X="http://www.w3.org/XML/1998/namespace",_={"xlink:actuate":H,"xlink:arcrole":H,"xlink:href":H,"xlink:role":H,"xlink:show":H,"xlink:title":H,"xlink:type":H,"xml:base":X,"xml:lang":X,"xml:space":X};function K(e){return{onClick:e,onDblClick:e,onFocusIn:e,onFocusOut:e,onKeyDown:e,onKeyPress:e,onKeyUp:e,onMouseDown:e,onMouseMove:e,onMouseUp:e,onTouchEnd:e,onTouchMove:e,onTouchStart:e}}var q=K(0),z=K(null),G=K(!0);function J(e,n){var t=n.$EV;return t||(t=n.$EV=K(null)),t[e]||1===++q[e]&&(z[e]=ae(e)),t}function Q(e,n){var t=n.$EV;t&&t[e]&&(0===--q[e]&&(document.removeEventListener(s(e),z[e]),z[e]=null),t[e]=null)}function Y(e,n,t,r){if(l(t))J(e,r)[e]=t;else if(c(t)){if(P(n,t))return;J(e,r)[e]=t}else Q(e,r)}function Z(e){return l(e.composedPath)?e.composedPath()[0]:e.target}function ee(e,n,t,r){var l=Z(e);do{if(n&&l.disabled)return;var o=l.$EV;if(o){var a=o[t];if(a&&(r.dom=l,a.event?a.event(a.data,e):a(e),e.cancelBubble))return}l=l.parentNode}while(!i(l))}function ne(){this.cancelBubble=!0,this.immediatePropagationStopped||this.stopImmediatePropagation()}function te(){return this.defaultPrevented}function re(){return this.cancelBubble}function le(e){var n={dom:document};return e.isDefaultPrevented=te,e.isPropagationStopped=re,e.stopPropagation=ne,Object.defineProperty(e,"currentTarget",{configurable:!0,get:function(){return n.dom}}),n}function oe(e){return function(n){if(0!==n.button)return void n.stopPropagation();ee(n,!0,e,le(n))}}function ie(e){return function(n){ee(n,!1,e,le(n))}}function ae(e){var n="onClick"===e||"onDblClick"===e?oe(e):ie(e);return document.addEventListener(s(e),n),n}function ue(e,n){var t=document.createElement("i");return t.innerHTML=n,t.innerHTML===e.innerHTML}function ce(e,n,t){if(e[n]){var r=e[n];r.event?r.event(r.data,t):r(t)}else{var l=n.toLowerCase();e[l]&&e[l](t)}}function fe(e,n){var t=function(t){var r=this.$V;if(!r)return;var i=r.props||f,a=r.dom;if(o(e))ce(i,e,t);else for(var u=0;u-1&&n.options[i]&&(a=n.options[i].value),r&&t(a)&&(a=e.defaultValue),ye(l,a)}}var $e,Fe,Pe=fe("onInput",Ue),Se=fe("onChange");function xe(e,n){se(e,"input",Pe),n.onChange&&se(e,"change",Se)}function Ue(e,n,r){var l=e.value,o=n.value;if(t(l)){if(r){var i=e.defaultValue;t(i)||i===o||(n.defaultValue=i,n.value=i)}}else o!==l&&(n.defaultValue=l,n.value=l)}function Le(e,n,t,r,l,o){64&e?ge(r,t):256&e?we(r,t,l,n):128&e&&Ue(r,t,l),o&&(t.$V=n)}function Ve(e,n,t){64&e?me(n,t):256&e?Ce(n):128&e&&xe(n,t)}function Ae(e){return e.type&&de(e.type)?!t(e.checked):!t(e.value)}function Ne(e){e&&!x(e,null)&&e.current&&(e.current=null)}function Ie(e,n,t){e&&(l(e)||void 0!==e.current)&&t.push((function(){x(e,n)||void 0===e.current||(e.current=n)}))}function Me(e,n){Te(e),k(e,n)}function Te(e){var n,r=e.flags,o=e.children;if(481&r){n=e.ref;var a=e.props;Ne(n);var u=e.childFlags;if(!i(a))for(var c=Object.keys(a),s=0,d=c.length;s0;for(var a in i&&(o=Ae(t))&&Ve(n,r,t),t)He(a,null,t[a],r,l,o,null);i&&Le(n,e,r,t,!0,o)}function _e(e,n,t){var r=j(e.render(n,e.state,t)),o=t;return l(e.getChildContext)&&(o=a(t,e.getChildContext())),e.$CX=o,r}function Ke(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=w(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=_e(u,t,r),u}function qe(e,n){var t=e.props||f;return 32768&e.flags?e.type.render(t,e.ref,n):e.type(t,n)}function ze(e,n,t,r,l,o){var i=e.flags|=16384;481&i?Ye(e,n,t,r,l,o):4&i?en(e,n,t,r,l,o):8&i?(nn(e,n,t,r,l,o),on(e,o)):512&i||16&i?Qe(e,n,l):8192&i?Je(e,t,n,r,l,o):1024&i&&Ge(e,t,n,l,o)}function Ge(e,n,t,r,l){ze(e.children,e.ref,n,!1,null,l);var o=W();Qe(o,t,r),e.dom=o.dom}function Je(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=W()),2===a?ze(i,t,n,r,l,o):Ze(i,t,n,r,l,o)}function Qe(e,n,t){var r=e.dom=document.createTextNode(e.children);i(n)||p(n,r,t)}function Ye(e,n,r,l,o,a){var u=e.flags,c=e.props,f=e.className,s=e.childFlags,d=e.dom=v(e.type,l=l||(32&u)>0),h=e.children;if(t(f)||""===f||(l?d.setAttribute("class",f):d.className=f),16===s)F(d,h);else if(1!==s){var m=l&&"foreignObject"!==e.type;2===s?(16384&h.flags&&(e.children=h=E(h)),ze(h,d,r,m,null,a)):8!==s&&4!==s||Ze(h,d,r,m,null,a)}i(n)||p(n,d,o),i(c)||Xe(e,u,c,d,l),Ie(e.ref,d,a)}function Ze(e,n,t,r,l,o){for(var i=0;id)&&(f=b(i[d-1],!1).nextSibling)}hn(u,c,i,a,t,r,l,f,e,o)}function dn(e,n,t,l){var o=e.ref,i=n.ref,a=n.children;if(hn(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;m(o,u),d(i,u)}}function pn(e,n,r,l,o,i){var a,u=n.dom=e.dom,c=e.props,s=n.props,d=!1,p=!1;if(l=l||(32&o)>0,c!==s){var v=c||f;if((a=s||f)!==f)for(var h in(d=(448&o)>0)&&(p=Ae(a)),a){var m=v[h],g=a[h];m!==g&&He(h,m,g,u,l,p,e)}if(v!==f)for(var y in v)t(a[y])&&!t(v[y])&&He(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?fn(u,b):hn(e.childFlags,n.childFlags,e.children,b,u,r,l&&"foreignObject"!==n.type,null,e,i),d&&Le(o,n,u,a,!1,p);var C=n.ref,w=e.ref;w!==C&&(Ne(w),Ie(C,u,i))}function vn(e,n,t,r,l,o){Te(e),Ze(n,t,r,l,b(e,!0),o),k(e,t)}function hn(e,n,t,r,l,o,i,a,u,c){switch(e){case 2:switch(n){case 2:un(t,r,l,o,i,a,c);break;case 1:Me(t,l);break;case 16:Te(t),F(l,r);break;default:vn(t,r,l,o,i,c)}break;case 1:switch(n){case 2:ze(r,l,o,i,a,c);break;case 1:break;case 16:F(l,r);break;default:Ze(r,l,o,i,a,c)}break;case 16:switch(n){case 16:cn(t,r,l);break;case 2:Be(l),ze(r,l,o,i,a,c);break;case 1:Be(l);break;default:Be(l),Ze(r,l,o,i,a,c)}break;default:switch(n){case 16:De(t),F(l,r);break;case 2:Ee(l,u,t),ze(r,l,o,i,a,c);break;case 1:Ee(l,u,t);break;default:var f=0|t.length,s=0|r.length;0===f?s>0&&Ze(r,l,o,i,a,c):0===s?Ee(l,u,t):8===n&&8===e?wn(t,r,l,o,i,f,s,a,u,c):Cn(t,r,l,o,i,f,s,a,c)}}}function mn(e,n,t,r,l){l.push((function(){e.componentDidUpdate(n,t,r)}))}function gn(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=w(e,t,n!==s?a(s,n):n)),u||!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=_e(e,t,o);p&&l(e.getSnapshotBeforeUpdate)&&(h=e.getSnapshotBeforeUpdate(d,s)),un(e.$LI,m,r,e.$CX,i,c,f),e.$LI=m,l(e.componentDidUpdate)&&mn(e,d,s,h,f)}else e.props=t,e.state=n,e.context=o}function yn(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)}gn(s,h,d,t,r,o,!1,u,c),v!==p&&(Ne(v),Ie(p,s,c))}function bn(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=j(qe(n,o));un(h,m,r,o,i,a,u),n.children=m,v&&l(d.onComponentDidUpdate)&&d.onComponentDidUpdate(p,s)}else n.children=h}function kn(e,n){var t=n.children,r=n.dom=e.dom;t!==e.children&&(r.nodeValue=t)}function Cn(e,n,t,r,l,o,i,a,u){for(var c,f,s=o>i?i:o,d=0;di)for(d=s;dd||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=E(m)),un(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;)Me(e[v++],t);else $n(e,n,r,o,i,d,p,v,t,l,a,u,c)}function $n(e,n,t,r,l,o,i,a,u,c,f,s,d){var p,v,h,m=0,g=a,y=a,k=o-a+1,w=i-a+1,$=new Int32Array(w+1),F=k===r,P=!1,S=0,x=0;if(l<4||(k|w)<32)for(m=g;m<=o;++m)if(p=e[m],xa?P=!0:S=a,16384&v.flags&&(n[a]=v=E(v)),un(p,v,u,t,c,f,d),++x;break}!F&&a>i&&Me(p,u)}else F||Me(p,u);else{var U={};for(m=y;m<=i;++m)U[n[m].key]=m;for(m=g;m<=o;++m)if(p=e[m],xg;)Me(e[g++],u);$[a-y]=m+1,S>a?P=!0:S=a,16384&(v=n[a]).flags&&(n[a]=v=E(v)),un(p,v,u,t,c,f,d),++x}else F||Me(p,u);else F||Me(p,u)}if(F)Ee(u,s,e),Ze(n,u,t,c,f,d);else if(P){var L=Pn($);for(a=L.length-1,m=w-1;m>=0;m--)0===$[m]?(16384&(v=n[S=m+y]).flags&&(n[S]=v=E(v)),ze(v,u,t,c,(h=S+1)=0;m--)0===$[m]&&(16384&(v=n[S=m+y]).flags&&(n[S]=v=E(v)),ze(v,u,t,c,(h=S+1)Fn&&(Fn=u,$e=new Int32Array(u),Fe=new Int32Array(u));t>1]]0&&(Fe[t]=$e[o-1]),$e[o]=t)}o=l+1;var c=new Int32Array(o);for(i=$e[o-1];o-- >0;)c[o]=i,i=Fe[i],$e[o]=0;return c}function Sn(e,n,r,o){var i=[],a=n.$V;t(a)?t(e)||(16384&e.flags&&(e=E(e)),ze(e,n,o,!1,null,i),n.$V=e,a=e):t(e)?(Me(a,n),n.$V=null):(16384&e.flags&&(e=E(e)),un(a,e,n,o,!1,null,i),a=n.$V=e),g(i),l(r)&&r(),l($.renderComplete)&&$.renderComplete(a,n)}function xn(e,n,t,r){void 0===t&&(t=null),void 0===r&&(r=f),Sn(e,n,t,r)}function Un(e){return V(1,"li","TreeLeaf",e.children,0,null,null,null)}function Ln(e,n){return e!==n}function Vn(e){for(var n=e.data,t=n.children.length,r=new Array(t),l=0;l0,h=c(d),v=u(d)&&d[0]===V;p||h||v?(t=t||e.slice(0,s),(p||v)&&(f=R(f)),(h||v)&&(f.key=V+s),t.push(f)):t&&t.push(f),f.flags|=65536}}l=0===(t=t||e).length?1:8}else(t=e).flags|=65536,81920&e.flags&&(t=R(e)),l=2;return n.children=t,n.childFlags=l,n}function Q(n){if(i(n)||o(n))return E(n,null);if(r(n))return O(n,0,null);return 16384&n.flags?R(n):n}var X="http://www.w3.org/1999/xlink",G="http://www.w3.org/XML/1998/namespace",K={"xlink:actuate":X,"xlink:arcrole":X,"xlink:href":X,"xlink:role":X,"xlink:show":X,"xlink:title":X,"xlink:type":X,"xml:base":G,"xml:lang":G,"xml:space":G};function q(n){return{onClick:n,onDblClick:n,onFocusIn:n,onFocusOut:n,onKeyDown:n,onKeyPress:n,onKeyUp:n,onMouseDown:n,onMouseMove:n,onMouseUp:n,onTouchEnd:n,onTouchMove:n,onTouchStart:n}}var J=q(0),z=q(null),Y=q(!0);function Z(n,e){var t=e.$EV;return t||(t=e.$EV=q(null)),t[n]||1===++J[n]&&(z[n]=fn(n)),t}function nn(n,e){var t=e.$EV;t&&t[n]&&(0===--J[n]&&(document.removeEventListener(p(n),z[n]),z[n]=null),t[n]=null)}function en(n,e,t,r){if(a(t))Z(n,r)[n]=t;else if(f(t)){if(S(e,t))return;Z(n,r)[n]=t}else nn(n,r)}function tn(n){return a(n.composedPath)?n.composedPath()[0]:n.target}function rn(n,e,t,r){var o=tn(n);do{if(e&&o.disabled)return;var l=o.$EV;if(l){var i=l[t];if(i&&(r.dom=o,i.event?i.event(i.data,n):i(n),n.cancelBubble))return}o=o.parentNode}while(!c(o))}function on(){this.cancelBubble=!0,this.immediatePropagationStopped||this.stopImmediatePropagation()}function ln(){return this.defaultPrevented}function an(){return this.cancelBubble}function un(n){var e={dom:document};return n.isDefaultPrevented=ln,n.isPropagationStopped=an,n.stopPropagation=on,Object.defineProperty(n,"currentTarget",{configurable:!0,get:function(){return e.dom}}),e}function cn(n){return function(e){if(0!==e.button)return void e.stopPropagation();rn(e,!0,n,un(e))}}function sn(n){return function(e){rn(e,!1,n,un(e))}}function fn(n){var e="onClick"===n||"onDblClick"===n?cn(n):sn(n);return document.addEventListener(p(n),e),e}function dn(n,e){var t=document.createElement("i");return t.innerHTML=e,t.innerHTML===n.innerHTML}function pn(n,e,t){if(n[e]){var r=n[e];r.event?r.event(r.data,t):r(t)}else{var o=e.toLowerCase();n[o]&&n[o](t)}}function hn(n,e){var t=function(t){var r=this.$V;if(!r)return;var o=r.props||d,l=r.dom;if(u(n))pn(o,n,t);else for(var i=0;i-1&&e.options[i]&&(a=e.options[i].value),t&&l(a)&&(a=n.defaultValue),Cn(r,a)}}var Fn,Sn,Ln=hn("onInput",In),Nn=hn("onChange");function Vn(n,e){vn(n,"input",Ln),e.onChange&&vn(n,"change",Nn)}function In(n,e,t){var r=n.value,o=e.value;if(l(r)){if(t){var i=n.defaultValue;l(i)||i===o||(e.defaultValue=i,e.value=i)}}else o!==r&&(e.defaultValue=r,e.value=r)}function Bn(n,e,t,r,o,l){64&n?kn(r,t):256&n?Pn(r,t,o,e):128&n&&In(r,t,o),l&&(t.$V=e)}function Mn(n,e,t){64&n?$n(e,t):256&n?xn(e):128&n&&Vn(e,t)}function Tn(n){return n.type&&mn(n.type)?!l(n.checked):!l(n.value)}function An(n){n&&!N(n,null)&&n.current&&(n.current=null)}function Dn(n,e,t){n&&(a(n)||void 0!==n.current)&&t.push((function(){N(n,e)||void 0===n.current||(n.current=e)}))}function En(n,e){On(n),C(n,e)}function On(n){var e,t=n.flags,r=n.children;if(481&t){e=n.ref;var o=n.props;An(e);var i=n.childFlags;if(!c(o))for(var u=Object.keys(o),s=0,f=u.length;s0;for(var a in i&&(l=Tn(t))&&Mn(e,r,t),t)Gn(a,null,t[a],r,o,l,null);i&&Bn(e,n,r,t,!0,l)}function qn(n,e,t){var r=Q(n.render(e,n.state,t)),o=t;return a(n.getChildContext)&&(o=s(t,n.getChildContext())),n.$CX=o,r}function Jn(n,e,t,r,o,l){var i=new e(t,r),u=i.$N=Boolean(e.getDerivedStateFromProps||i.getSnapshotBeforeUpdate);if(i.$SVG=o,i.$L=l,n.children=i,i.$BS=!1,i.context=r,i.props===d&&(i.props=t),u)i.state=U(i,t,i.state);else if(a(i.componentWillMount)){i.$BR=!0,i.componentWillMount();var s=i.$PS;if(!c(s)){var f=i.state;if(c(f))i.state=s;else for(var p in s)f[p]=s[p];i.$PS=null}i.$BR=!1}return i.$LI=qn(i,t,r),i}function zn(n,e){var t=n.props||d;return 32768&n.flags?n.type.render(t,n.ref,e):n.type(t,e)}function Yn(n,e,t,r,o,l){var i=n.flags|=16384;481&i?te(n,e,t,r,o,l):4&i?oe(n,e,t,r,o,l):8&i?(le(n,e,t,r,o,l),ce(n,l)):512&i||16&i?ee(n,e,o):8192&i?ne(n,t,e,r,o,l):1024&i&&Zn(n,t,e,o,l)}function Zn(n,e,t,r,o){Yn(n.children,n.ref,e,!1,null,o);var l=j();ee(l,t,r),n.dom=l.dom}function ne(n,e,t,r,o,l){var i=n.children,a=n.childFlags;12&a&&0===i.length&&(a=n.childFlags=2,i=n.children=j()),2===a?Yn(i,t,o,r,o,l):re(i,t,e,r,o,l)}function ee(n,e,t){var r=n.dom=document.createTextNode(n.children);c(e)||v(e,r,t)}function te(n,e,t,r,o,i){var a=n.flags,u=n.props,s=n.className,f=n.childFlags,d=n.dom=m(n.type,r=r||(32&a)>0),p=n.children;if(l(s)||""===s||(r?d.setAttribute("class",s):d.className=s),16===f)F(d,p);else if(1!==f){var h=r&&"foreignObject"!==n.type;2===f?(16384&p.flags&&(n.children=p=R(p)),Yn(p,d,t,h,null,i)):8!==f&&4!==f||re(p,d,t,h,null,i)}c(e)||v(e,d,o),c(u)||Kn(n,a,u,d,r),Dn(n.ref,d,i)}function re(n,e,t,r,o,l){for(var i=0;id)&&(s=k(i[d-1],!1).nextSibling)}ye(u,c,i,a,t,r,o,s,n,l)}function ve(n,e,t,r){var o=n.ref,l=e.ref,a=e.children;if(ye(n.childFlags,e.childFlags,n.children,a,o,t,!1,null,n,r),e.dom=n.dom,o!==l&&!i(a)){var u=a.dom;y(o,u),h(l,u)}}function me(n,e,t,r,o,i){var a,u=e.dom=n.dom,c=n.props,s=e.props,f=!1,p=!1;if(r=r||(32&o)>0,c!==s){var h=c||d;if((a=s||d)!==d)for(var v in(f=(448&o)>0)&&(p=Tn(a)),a){var m=h[v],g=a[v];m!==g&&Gn(v,m,g,u,r,p,n)}if(h!==d)for(var y in h)l(a[y])&&!l(h[y])&&Gn(y,h[y],null,u,r,p,n)}var b=e.children,$=e.className;n.className!==$&&(l($)?u.removeAttribute("class"):r?u.setAttribute("class",$):u.className=$),4096&o?pe(u,b):ye(n.childFlags,e.childFlags,n.children,b,u,t,r&&"foreignObject"!==e.type,null,n,i),f&&Bn(o,e,u,a,!1,p);var k=e.ref,C=n.ref;C!==k&&(An(C),Dn(k,u,i))}function ge(n,e,t,r,o,l){On(n),re(e,t,r,o,k(n,!0),l),C(n,t)}function ye(n,e,t,r,o,l,i,a,u,c){switch(n){case 2:switch(e){case 2:fe(t,r,o,l,i,a,c);break;case 1:En(t,o);break;case 16:On(t),F(o,r);break;default:ge(t,r,o,l,i,c)}break;case 1:switch(e){case 2:Yn(r,o,l,i,a,c);break;case 1:break;case 16:F(o,r);break;default:re(r,o,l,i,a,c)}break;case 16:switch(e){case 16:de(t,r,o);break;case 2:Rn(o),Yn(r,o,l,i,a,c);break;case 1:Rn(o);break;default:Rn(o),re(r,o,l,i,a,c)}break;default:switch(e){case 16:Wn(t),F(o,r);break;case 2:jn(o,u,t),Yn(r,o,l,i,a,c);break;case 1:jn(o,u,t);break;default:var s=0|t.length,f=0|r.length;0===s?f>0&&re(r,o,l,i,a,c):0===f?jn(o,u,t):8===e&&8===n?xe(t,r,o,l,i,s,f,a,u,c):Ue(t,r,o,l,i,s,f,a,c)}}}function be(n,e,t,r,o){o.push((function(){n.componentDidUpdate(e,t,r)}))}function $e(n,e,t,r,o,l,i,u,c){var f=n.state,d=n.props,p=Boolean(n.$N),h=a(n.shouldComponentUpdate);if(p&&(e=U(n,t,e!==f?s(f,e):e)),i||!h||h&&n.shouldComponentUpdate(t,e,o)){!p&&a(n.componentWillUpdate)&&n.componentWillUpdate(t,e,o),n.props=t,n.state=e,n.context=o;var v=null,m=qn(n,t,o);p&&a(n.getSnapshotBeforeUpdate)&&(v=n.getSnapshotBeforeUpdate(d,f)),fe(n.$LI,m,r,n.$CX,l,u,c),n.$LI=m,a(n.componentDidUpdate)&&be(n,d,f,v,c)}else n.props=t,n.state=e,n.context=o}function ke(n,e,t,r,o,l,i){var u=e.children=n.children;if(c(u))return;u.$L=i;var f=e.props||d,p=e.ref,h=n.ref,v=u.state;if(!u.$N){if(a(u.componentWillReceiveProps)){if(u.$BR=!0,u.componentWillReceiveProps(f,r),u.$UN)return;u.$BR=!1}c(u.$PS)||(v=s(v,u.$PS),u.$PS=null)}$e(u,v,f,t,r,o,!1,l,i),h!==p&&(An(h),Dn(p,u,i))}function Ce(n,e,t,r,o,i,u){var c=!0,s=e.props||d,f=e.ref,p=n.props,h=!l(f),v=n.children;if(h&&a(f.onComponentShouldUpdate)&&(c=f.onComponentShouldUpdate(p,s)),!1!==c){h&&a(f.onComponentWillUpdate)&&f.onComponentWillUpdate(p,s);var m=Q(zn(e,r));fe(v,m,t,r,o,i,u),e.children=m,h&&a(f.onComponentDidUpdate)&&f.onComponentDidUpdate(p,s)}else e.children=v}function we(n,e){var t=e.children,r=e.dom=n.dom;t!==n.children&&(r.nodeValue=t)}function Ue(n,e,t,r,o,l,i,a,u){for(var c,s,f=l>i?i:l,d=0;di)for(d=f;dd||h>p)break n;v=n[h],m=e[h]}for(v=n[d],m=e[p];v.key===m.key;){if(16384&m.flags&&(e[p]=m=R(m)),fe(v,m,t,r,o,a,c),n[d]=m,p--,h>--d||h>p)break n;v=n[d],m=e[p]}}if(h>d){if(h<=p)for(f=(s=p+1)p)for(;h<=d;)En(n[h++],t);else Pe(n,e,r,l,i,d,p,h,t,o,a,u,c)}function Pe(n,e,t,r,o,l,i,a,u,c,s,f,d){var p,h,v,m=0,g=a,y=a,b=l-a+1,$=i-a+1,C=new Int32Array($+1),U=b===r,x=!1,P=0,F=0;if(o<4||(b|$)<32)for(m=g;m<=l;++m)if(p=n[m],F<$){for(a=y;a<=i;a++)if(h=e[a],p.key===h.key){if(C[a-y]=m+1,U)for(U=!1;ga?x=!0:P=a,16384&h.flags&&(e[a]=h=R(h)),fe(p,h,u,t,c,s,d),++F;break}!U&&a>i&&En(p,u)}else U||En(p,u);else{var S={};for(m=y;m<=i;++m)S[e[m].key]=m;for(m=g;m<=l;++m)if(p=n[m],F<$)if(void 0!==(a=S[p.key])){if(U)for(U=!1;m>g;)En(n[g++],u);C[a-y]=m+1,P>a?x=!0:P=a,16384&(h=e[a]).flags&&(e[a]=h=R(h)),fe(p,h,u,t,c,s,d),++F}else U||En(p,u);else U||En(p,u)}if(U)jn(u,f,n),re(e,u,t,c,s,d);else if(x){var L=Se(C);for(a=L.length-1,m=$-1;m>=0;m--)0===C[m]?(16384&(h=e[P=m+y]).flags&&(e[P]=h=R(h)),Yn(h,u,t,c,(v=P+1)=0;m--)0===C[m]&&(16384&(h=e[P=m+y]).flags&&(e[P]=h=R(h)),Yn(h,u,t,c,(v=P+1)Fe&&(Fe=u,Fn=new Int32Array(u),Sn=new Int32Array(u));t>1]]0&&(Sn[t]=Fn[l-1]),Fn[l]=t)}l=o+1;var c=new Int32Array(l);for(i=Fn[l-1];l-- >0;)c[l]=i,i=Sn[i],Fn[l]=0;return c}function Le(n,e,t,r){var o=[],i=e.$V;x.v=!0,l(i)?l(n)||(16384&n.flags&&(n=R(n)),Yn(n,e,r,!1,null,o),e.$V=n,i=n):l(n)?(En(i,e),e.$V=null):(16384&n.flags&&(n=R(n)),fe(i,n,e,r,!1,null,o),i=e.$V=n),b(o),x.v=!1,a(t)&&t(),a(P.renderComplete)&&P.renderComplete(i,e)}function Ne(n,e,t,r){void 0===t&&(t=null),void 0===r&&(r=d),Le(n,e,t,r)}"undefined"!==typeof document&&window.Node&&(Node.prototype.$EV=null,Node.prototype.$V=null);var Ve=[],Ie="undefined"!==typeof Promise?Promise.resolve().then.bind(Promise.resolve()):function(n){window.setTimeout(n,0)},Be=!1;function Me(n,e,t,r){var o=n.$PS;if(a(e)&&(e=e(o?s(n.state,o):n.state,n.props,n.context)),l(o))n.$PS=e;else for(var i in e)o[i]=e[i];if(n.$BR)a(t)&&n.$L.push(t.bind(n));else{if(!x.v&&0===Ve.length)return De(n,r),void(a(t)&&t.call(n));if(-1===Ve.indexOf(n)&&Ve.push(n),r&&(n.$F=!0),Be||(Be=!0,Ie(Ae)),a(t)){var u=n.$QU;u||(u=n.$QU=[]),u.push(t)}}}function Te(n){for(var e=n.$QU,t=0;t0,h=c(d),v=u(d)&&d[0]===V;p||h||v?(t=t||e.slice(0,s),(p||v)&&(f=R(f)),(h||v)&&(f.key=V+s),t.push(f)):t&&t.push(f),f.flags|=65536}}l=0===(t=t||e).length?1:8}else(t=e).flags|=65536,81920&e.flags&&(t=R(e)),l=2;return n.children=t,n.childFlags=l,n}function Q(n){if(i(n)||o(n))return E(n,null);if(r(n))return O(n,0,null);return 16384&n.flags?R(n):n}var X="http://www.w3.org/1999/xlink",G="http://www.w3.org/XML/1998/namespace",K={"xlink:actuate":X,"xlink:arcrole":X,"xlink:href":X,"xlink:role":X,"xlink:show":X,"xlink:title":X,"xlink:type":X,"xml:base":G,"xml:lang":G,"xml:space":G};function q(n){return{onClick:n,onDblClick:n,onFocusIn:n,onFocusOut:n,onKeyDown:n,onKeyPress:n,onKeyUp:n,onMouseDown:n,onMouseMove:n,onMouseUp:n,onTouchEnd:n,onTouchMove:n,onTouchStart:n}}var J=q(0),z=q(null),Y=q(!0);function Z(n,e){var t=e.$EV;return t||(t=e.$EV=q(null)),t[n]||1===++J[n]&&(z[n]=fn(n)),t}function nn(n,e){var t=e.$EV;t&&t[n]&&(0===--J[n]&&(document.removeEventListener(p(n),z[n]),z[n]=null),t[n]=null)}function en(n,e,t,r){if(a(t))Z(n,r)[n]=t;else if(f(t)){if(S(e,t))return;Z(n,r)[n]=t}else nn(n,r)}function tn(n){return a(n.composedPath)?n.composedPath()[0]:n.target}function rn(n,e,t,r){var o=tn(n);do{if(e&&o.disabled)return;var l=o.$EV;if(l){var i=l[t];if(i&&(r.dom=o,i.event?i.event(i.data,n):i(n),n.cancelBubble))return}o=o.parentNode}while(!c(o))}function on(){this.cancelBubble=!0,this.immediatePropagationStopped||this.stopImmediatePropagation()}function ln(){return this.defaultPrevented}function an(){return this.cancelBubble}function un(n){var e={dom:document};return n.isDefaultPrevented=ln,n.isPropagationStopped=an,n.stopPropagation=on,Object.defineProperty(n,"currentTarget",{configurable:!0,get:function(){return e.dom}}),e}function cn(n){return function(e){if(0!==e.button)return void e.stopPropagation();rn(e,!0,n,un(e))}}function sn(n){return function(e){rn(e,!1,n,un(e))}}function fn(n){var e="onClick"===n||"onDblClick"===n?cn(n):sn(n);return document.addEventListener(p(n),e),e}function dn(n,e){var t=document.createElement("i");return t.innerHTML=e,t.innerHTML===n.innerHTML}function pn(n,e,t){if(n[e]){var r=n[e];r.event?r.event(r.data,t):r(t)}else{var o=e.toLowerCase();n[o]&&n[o](t)}}function hn(n,e){var t=function(t){var r=this.$V;if(!r)return;var o=r.props||d,l=r.dom;if(u(n))pn(o,n,t);else for(var i=0;i-1&&e.options[i]&&(a=e.options[i].value),t&&l(a)&&(a=n.defaultValue),Cn(r,a)}}var Fn,Sn,Ln=hn("onInput",In),Nn=hn("onChange");function Vn(n,e){vn(n,"input",Ln),e.onChange&&vn(n,"change",Nn)}function In(n,e,t){var r=n.value,o=e.value;if(l(r)){if(t){var i=n.defaultValue;l(i)||i===o||(e.defaultValue=i,e.value=i)}}else o!==r&&(e.defaultValue=r,e.value=r)}function Bn(n,e,t,r,o,l){64&n?kn(r,t):256&n?Pn(r,t,o,e):128&n&&In(r,t,o),l&&(t.$V=e)}function Mn(n,e,t){64&n?$n(e,t):256&n?xn(e):128&n&&Vn(e,t)}function Tn(n){return n.type&&mn(n.type)?!l(n.checked):!l(n.value)}function An(n){n&&!N(n,null)&&n.current&&(n.current=null)}function Dn(n,e,t){n&&(a(n)||void 0!==n.current)&&t.push((function(){N(n,e)||void 0===n.current||(n.current=e)}))}function En(n,e){On(n),C(n,e)}function On(n){var e,t=n.flags,r=n.children;if(481&t){e=n.ref;var o=n.props;An(e);var i=n.childFlags;if(!c(o))for(var u=Object.keys(o),s=0,f=u.length;s0;for(var a in i&&(l=Tn(t))&&Mn(e,r,t),t)Gn(a,null,t[a],r,o,l,null);i&&Bn(e,n,r,t,!0,l)}function qn(n,e,t){var r=Q(n.render(e,n.state,t)),o=t;return a(n.getChildContext)&&(o=s(t,n.getChildContext())),n.$CX=o,r}function Jn(n,e,t,r,o,l){var i=new e(t,r),u=i.$N=Boolean(e.getDerivedStateFromProps||i.getSnapshotBeforeUpdate);if(i.$SVG=o,i.$L=l,n.children=i,i.$BS=!1,i.context=r,i.props===d&&(i.props=t),u)i.state=U(i,t,i.state);else if(a(i.componentWillMount)){i.$BR=!0,i.componentWillMount();var s=i.$PS;if(!c(s)){var f=i.state;if(c(f))i.state=s;else for(var p in s)f[p]=s[p];i.$PS=null}i.$BR=!1}return i.$LI=qn(i,t,r),i}function zn(n,e){var t=n.props||d;return 32768&n.flags?n.type.render(t,n.ref,e):n.type(t,e)}function Yn(n,e,t,r,o,l){var i=n.flags|=16384;481&i?te(n,e,t,r,o,l):4&i?oe(n,e,t,r,o,l):8&i?(le(n,e,t,r,o,l),ce(n,l)):512&i||16&i?ee(n,e,o):8192&i?ne(n,t,e,r,o,l):1024&i&&Zn(n,t,e,o,l)}function Zn(n,e,t,r,o){Yn(n.children,n.ref,e,!1,null,o);var l=j();ee(l,t,r),n.dom=l.dom}function ne(n,e,t,r,o,l){var i=n.children,a=n.childFlags;12&a&&0===i.length&&(a=n.childFlags=2,i=n.children=j()),2===a?Yn(i,t,e,r,o,l):re(i,t,e,r,o,l)}function ee(n,e,t){var r=n.dom=document.createTextNode(n.children);c(e)||v(e,r,t)}function te(n,e,t,r,o,i){var a=n.flags,u=n.props,s=n.className,f=n.childFlags,d=n.dom=m(n.type,r=r||(32&a)>0),p=n.children;if(l(s)||""===s||(r?d.setAttribute("class",s):d.className=s),16===f)F(d,p);else if(1!==f){var h=r&&"foreignObject"!==n.type;2===f?(16384&p.flags&&(n.children=p=R(p)),Yn(p,d,t,h,null,i)):8!==f&&4!==f||re(p,d,t,h,null,i)}c(e)||v(e,d,o),c(u)||Kn(n,a,u,d,r),Dn(n.ref,d,i)}function re(n,e,t,r,o,l){for(var i=0;id)&&(s=k(i[d-1],!1).nextSibling)}ye(u,c,i,a,t,r,o,s,n,l)}function ve(n,e,t,r){var o=n.ref,l=e.ref,a=e.children;if(ye(n.childFlags,e.childFlags,n.children,a,o,t,!1,null,n,r),e.dom=n.dom,o!==l&&!i(a)){var u=a.dom;y(o,u),h(l,u)}}function me(n,e,t,r,o,i){var a,u=e.dom=n.dom,c=n.props,s=e.props,f=!1,p=!1;if(r=r||(32&o)>0,c!==s){var h=c||d;if((a=s||d)!==d)for(var v in(f=(448&o)>0)&&(p=Tn(a)),a){var m=h[v],g=a[v];m!==g&&Gn(v,m,g,u,r,p,n)}if(h!==d)for(var y in h)l(a[y])&&!l(h[y])&&Gn(y,h[y],null,u,r,p,n)}var b=e.children,$=e.className;n.className!==$&&(l($)?u.removeAttribute("class"):r?u.setAttribute("class",$):u.className=$),4096&o?pe(u,b):ye(n.childFlags,e.childFlags,n.children,b,u,t,r&&"foreignObject"!==e.type,null,n,i),f&&Bn(o,e,u,a,!1,p);var k=e.ref,C=n.ref;C!==k&&(An(C),Dn(k,u,i))}function ge(n,e,t,r,o,l){On(n),re(e,t,r,o,k(n,!0),l),C(n,t)}function ye(n,e,t,r,o,l,i,a,u,c){switch(n){case 2:switch(e){case 2:fe(t,r,o,l,i,a,c);break;case 1:En(t,o);break;case 16:On(t),F(o,r);break;default:ge(t,r,o,l,i,c)}break;case 1:switch(e){case 2:Yn(r,o,l,i,a,c);break;case 1:break;case 16:F(o,r);break;default:re(r,o,l,i,a,c)}break;case 16:switch(e){case 16:de(t,r,o);break;case 2:Rn(o),Yn(r,o,l,i,a,c);break;case 1:Rn(o);break;default:Rn(o),re(r,o,l,i,a,c)}break;default:switch(e){case 16:Wn(t),F(o,r);break;case 2:jn(o,u,t),Yn(r,o,l,i,a,c);break;case 1:jn(o,u,t);break;default:var s=0|t.length,f=0|r.length;0===s?f>0&&re(r,o,l,i,a,c):0===f?jn(o,u,t):8===e&&8===n?xe(t,r,o,l,i,s,f,a,u,c):Ue(t,r,o,l,i,s,f,a,c)}}}function be(n,e,t,r,o){o.push((function(){n.componentDidUpdate(e,t,r)}))}function $e(n,e,t,r,o,l,i,u,c){var f=n.state,d=n.props,p=Boolean(n.$N),h=a(n.shouldComponentUpdate);if(p&&(e=U(n,t,e!==f?s(f,e):e)),i||!h||h&&n.shouldComponentUpdate(t,e,o)){!p&&a(n.componentWillUpdate)&&n.componentWillUpdate(t,e,o),n.props=t,n.state=e,n.context=o;var v=null,m=qn(n,t,o);p&&a(n.getSnapshotBeforeUpdate)&&(v=n.getSnapshotBeforeUpdate(d,f)),fe(n.$LI,m,r,n.$CX,l,u,c),n.$LI=m,a(n.componentDidUpdate)&&be(n,d,f,v,c)}else n.props=t,n.state=e,n.context=o}function ke(n,e,t,r,o,l,i){var u=e.children=n.children;if(c(u))return;u.$L=i;var f=e.props||d,p=e.ref,h=n.ref,v=u.state;if(!u.$N){if(a(u.componentWillReceiveProps)){if(u.$BR=!0,u.componentWillReceiveProps(f,r),u.$UN)return;u.$BR=!1}c(u.$PS)||(v=s(v,u.$PS),u.$PS=null)}$e(u,v,f,t,r,o,!1,l,i),h!==p&&(An(h),Dn(p,u,i))}function Ce(n,e,t,r,o,i,u){var c=!0,s=e.props||d,f=e.ref,p=n.props,h=!l(f),v=n.children;if(h&&a(f.onComponentShouldUpdate)&&(c=f.onComponentShouldUpdate(p,s)),!1!==c){h&&a(f.onComponentWillUpdate)&&f.onComponentWillUpdate(p,s);var m=Q(zn(e,r));fe(v,m,t,r,o,i,u),e.children=m,h&&a(f.onComponentDidUpdate)&&f.onComponentDidUpdate(p,s)}else e.children=v}function we(n,e){var t=e.children,r=e.dom=n.dom;t!==n.children&&(r.nodeValue=t)}function Ue(n,e,t,r,o,l,i,a,u){for(var c,s,f=l>i?i:l,d=0;di)for(d=f;dd||h>p)break n;v=n[h],m=e[h]}for(v=n[d],m=e[p];v.key===m.key;){if(16384&m.flags&&(e[p]=m=R(m)),fe(v,m,t,r,o,a,c),n[d]=m,p--,h>--d||h>p)break n;v=n[d],m=e[p]}}if(h>d){if(h<=p)for(f=(s=p+1)p)for(;h<=d;)En(n[h++],t);else Pe(n,e,r,l,i,d,p,h,t,o,a,u,c)}function Pe(n,e,t,r,o,l,i,a,u,c,s,f,d){var p,h,v,m=0,g=a,y=a,b=l-a+1,$=i-a+1,C=new Int32Array($+1),U=b===r,x=!1,P=0,F=0;if(o<4||(b|$)<32)for(m=g;m<=l;++m)if(p=n[m],F<$){for(a=y;a<=i;a++)if(h=e[a],p.key===h.key){if(C[a-y]=m+1,U)for(U=!1;ga?x=!0:P=a,16384&h.flags&&(e[a]=h=R(h)),fe(p,h,u,t,c,s,d),++F;break}!U&&a>i&&En(p,u)}else U||En(p,u);else{var S={};for(m=y;m<=i;++m)S[e[m].key]=m;for(m=g;m<=l;++m)if(p=n[m],F<$)if(void 0!==(a=S[p.key])){if(U)for(U=!1;m>g;)En(n[g++],u);C[a-y]=m+1,P>a?x=!0:P=a,16384&(h=e[a]).flags&&(e[a]=h=R(h)),fe(p,h,u,t,c,s,d),++F}else U||En(p,u);else U||En(p,u)}if(U)jn(u,f,n),re(e,u,t,c,s,d);else if(x){var L=Se(C);for(a=L.length-1,m=$-1;m>=0;m--)0===C[m]?(16384&(h=e[P=m+y]).flags&&(e[P]=h=R(h)),Yn(h,u,t,c,(v=P+1)=0;m--)0===C[m]&&(16384&(h=e[P=m+y]).flags&&(e[P]=h=R(h)),Yn(h,u,t,c,(v=P+1)Fe&&(Fe=u,Fn=new Int32Array(u),Sn=new Int32Array(u));t>1]]0&&(Sn[t]=Fn[l-1]),Fn[l]=t)}l=o+1;var c=new Int32Array(l);for(i=Fn[l-1];l-- >0;)c[l]=i,i=Sn[i],Fn[l]=0;return c}function Le(n,e,t,r){var o=[],i=e.$V;x.v=!0,l(i)?l(n)||(16384&n.flags&&(n=R(n)),Yn(n,e,r,!1,null,o),e.$V=n,i=n):l(n)?(En(i,e),e.$V=null):(16384&n.flags&&(n=R(n)),fe(i,n,e,r,!1,null,o),i=e.$V=n),b(o),x.v=!1,a(t)&&t(),a(P.renderComplete)&&P.renderComplete(i,e)}function Ne(n,e,t,r){void 0===t&&(t=null),void 0===r&&(r=d),Le(n,e,t,r)}"undefined"!==typeof document&&window.Node&&(Node.prototype.$EV=null,Node.prototype.$V=null);var Ve=[],Ie="undefined"!==typeof Promise?Promise.resolve().then.bind(Promise.resolve()):function(n){window.setTimeout(n,0)},Be=!1;function Me(n,e,t,r){var o=n.$PS;if(a(e)&&(e=e(o?s(n.state,o):n.state,n.props,n.context)),l(o))n.$PS=e;else for(var i in e)o[i]=e[i];if(n.$BR)a(t)&&n.$L.push(t.bind(n));else{if(!x.v&&0===Ve.length)return De(n,r),void(a(t)&&t.call(n));if(-1===Ve.indexOf(n)&&Ve.push(n),r&&(n.$F=!0),Be||(Be=!0,Ie(Ae)),a(t)){var u=n.$QU;u||(u=n.$QU=[]),u.push(t)}}}function Te(n){for(var e=n.$QU,t=0;t0,v=i(d),h=o(d)&&d[0]===S;p||v||h?(a=a||l.slice(0,f),(p||h)&&(s=E(s)),(v||h)&&(s.key=S+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=E(l)),u=2;return t.children=a,t.childFlags=u,t}function R(t){if(r(t)||n(t))return T(t,null);if(e(t))return D(t,0,null);return 16384&t.flags?E(t):t}var j="http://www.w3.org/1999/xlink",X="http://www.w3.org/XML/1998/namespace",_={"xlink:actuate":j,"xlink:arcrole":j,"xlink:href":j,"xlink:role":j,"xlink:show":j,"xlink:title":j,"xlink:type":j,"xml:base":X,"xml:lang":X,"xml:space":X};function K(e){return{onClick:e,onDblClick:e,onFocusIn:e,onFocusOut:e,onKeyDown:e,onKeyPress:e,onKeyUp:e,onMouseDown:e,onMouseMove:e,onMouseUp:e,onTouchEnd:e,onTouchMove:e,onTouchStart:e}}var q=K(0),G=K(null),J=K(!0);function z(e,n){var t=n.$EV;return t||(t=n.$EV=K(null)),t[e]||1===++q[e]&&(G[e]=ae(e)),t}function Q(e,n){var t=n.$EV;t&&t[e]&&(0===--q[e]&&(document.removeEventListener(s(e),G[e]),G[e]=null),t[e]=null)}function Y(e,n,t,r){if(l(t))z(e,r)[e]=t;else if(c(t)){if(P(n,t))return;z(e,r)[e]=t}else Q(e,r)}function Z(e){return l(e.composedPath)?e.composedPath()[0]:e.target}function ee(e,n,t,r){var l=Z(e);do{if(n&&l.disabled)return;var o=l.$EV;if(o){var a=o[t];if(a&&(r.dom=l,a.event?a.event(a.data,e):a(e),e.cancelBubble))return}l=l.parentNode}while(!i(l))}function ne(){this.cancelBubble=!0,this.immediatePropagationStopped||this.stopImmediatePropagation()}function te(){return this.defaultPrevented}function re(){return this.cancelBubble}function le(e){var n={dom:document};return e.isDefaultPrevented=te,e.isPropagationStopped=re,e.stopPropagation=ne,Object.defineProperty(e,"currentTarget",{configurable:!0,get:function(){return n.dom}}),n}function oe(e){return function(n){if(0!==n.button)return void n.stopPropagation();ee(n,!0,e,le(n))}}function ie(e){return function(n){ee(n,!1,e,le(n))}}function ae(e){var n="onClick"===e||"onDblClick"===e?oe(e):ie(e);return document.addEventListener(s(e),n),n}function ue(e,n){var t=document.createElement("i");return t.innerHTML=n,t.innerHTML===e.innerHTML}function ce(e,n,t){if(e[n]){var r=e[n];r.event?r.event(r.data,t):r(t)}else{var l=n.toLowerCase();e[l]&&e[l](t)}}function fe(e,n){var t=function(t){var r=this.$V;if(!r)return;var i=r.props||f,a=r.dom;if(o(e))ce(i,e,t);else for(var u=0;u-1&&n.options[i]&&(a=n.options[i].value),r&&t(a)&&(a=e.defaultValue),ke(l,a)}}var $e,Fe,Pe=fe("onInput",Se),xe=fe("onChange");function Le(e,n){se(e,"input",Pe),n.onChange&&se(e,"change",xe)}function Se(e,n,r){var l=e.value,o=n.value;if(t(l)){if(r){var i=e.defaultValue;t(i)||i===o||(n.defaultValue=i,n.value=i)}}else o!==l&&(n.defaultValue=l,n.value=l)}function Ve(e,n,t,r,l,o){64&e?me(r,t):256&e?we(r,t,l,n):128&e&&Se(r,t,l),o&&(t.$V=n)}function Ue(e,n,t){64&e?ge(n,t):256&e?Ce(n):128&e&&Le(n,t)}function Ne(e){return e.type&&de(e.type)?!t(e.checked):!t(e.value)}function Ie(e){e&&!L(e,null)&&e.current&&(e.current=null)}function Ae(e,n,t){e&&(l(e)||void 0!==e.current)&&t.push((function(){L(e,n)||void 0===e.current||(e.current=n)}))}function Me(e,n){Te(e),y(e,n)}function Te(e){var n,r=e.flags,o=e.children;if(481&r){n=e.ref;var a=e.props;Ie(n);var u=e.childFlags;if(!i(a))for(var c=Object.keys(a),s=0,d=c.length;s0;for(var a in i&&(o=Ne(t))&&Ue(n,r,t),t)je(a,null,t[a],r,l,o,null);i&&Ve(n,e,r,t,!0,o)}function _e(e,n,t){var r=R(e.render(n,e.state,t)),o=t;return l(e.getChildContext)&&(o=a(t,e.getChildContext())),e.$CX=o,r}function Ke(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=w(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=_e(u,t,r),u}function qe(e,n){var t=e.props||f;return 32768&e.flags?e.type.render(t,e.ref,n):e.type(t,n)}function Ge(e,n,t,r,l,o){var i=e.flags|=16384;481&i?Ye(e,n,t,r,l,o):4&i?en(e,n,t,r,l,o):8&i?(nn(e,n,t,r,l,o),on(e,o)):512&i||16&i?Qe(e,n,l):8192&i?ze(e,t,n,r,l,o):1024&i&&Je(e,t,n,l,o)}function Je(e,n,t,r,l){Ge(e.children,e.ref,n,!1,null,l);var o=W();Qe(o,t,r),e.dom=o.dom}function ze(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=W()),2===a?Ge(i,t,l,r,l,o):Ze(i,t,n,r,l,o)}function Qe(e,n,t){var r=e.dom=document.createTextNode(e.children);i(n)||p(n,r,t)}function Ye(e,n,r,l,o,a){var u=e.flags,c=e.props,f=e.className,s=e.childFlags,d=e.dom=v(e.type,l=l||(32&u)>0),h=e.children;if(t(f)||""===f||(l?d.setAttribute("class",f):d.className=f),16===s)F(d,h);else if(1!==s){var g=l&&"foreignObject"!==e.type;2===s?(16384&h.flags&&(e.children=h=E(h)),Ge(h,d,r,g,null,a)):8!==s&&4!==s||Ze(h,d,r,g,null,a)}i(n)||p(n,d,o),i(c)||Xe(e,u,c,d,l),Ae(e.ref,d,a)}function Ze(e,n,t,r,l,o){for(var i=0;id)&&(f=b(i[d-1],!1).nextSibling)}hn(u,c,i,a,t,r,l,f,e,o)}function dn(e,n,t,l){var o=e.ref,i=n.ref,a=n.children;if(hn(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;g(o,u),d(i,u)}}function pn(e,n,r,l,o,i){var a,u=n.dom=e.dom,c=e.props,s=n.props,d=!1,p=!1;if(l=l||(32&o)>0,c!==s){var v=c||f;if((a=s||f)!==f)for(var h in(d=(448&o)>0)&&(p=Ne(a)),a){var g=v[h],m=a[h];g!==m&&je(h,g,m,u,l,p,e)}if(v!==f)for(var k in v)t(a[k])&&!t(v[k])&&je(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?fn(u,b):hn(e.childFlags,n.childFlags,e.children,b,u,r,l&&"foreignObject"!==n.type,null,e,i),d&&Ve(o,n,u,a,!1,p);var C=n.ref,w=e.ref;w!==C&&(Ie(w),Ae(C,u,i))}function vn(e,n,t,r,l,o){Te(e),Ze(n,t,r,l,b(e,!0),o),y(e,t)}function hn(e,n,t,r,l,o,i,a,u,c){switch(e){case 2:switch(n){case 2:un(t,r,l,o,i,a,c);break;case 1:Me(t,l);break;case 16:Te(t),F(l,r);break;default:vn(t,r,l,o,i,c)}break;case 1:switch(n){case 2:Ge(r,l,o,i,a,c);break;case 1:break;case 16:F(l,r);break;default:Ze(r,l,o,i,a,c)}break;case 16:switch(n){case 16:cn(t,r,l);break;case 2:Be(l),Ge(r,l,o,i,a,c);break;case 1:Be(l);break;default:Be(l),Ze(r,l,o,i,a,c)}break;default:switch(n){case 16:De(t),F(l,r);break;case 2:Ee(l,u,t),Ge(r,l,o,i,a,c);break;case 1:Ee(l,u,t);break;default:var f=0|t.length,s=0|r.length;0===f?s>0&&Ze(r,l,o,i,a,c):0===s?Ee(l,u,t):8===n&&8===e?wn(t,r,l,o,i,f,s,a,u,c):Cn(t,r,l,o,i,f,s,a,c)}}}function gn(e,n,t,r,l){l.push((function(){e.componentDidUpdate(n,t,r)}))}function mn(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=w(e,t,n!==s?a(s,n):n)),u||!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=_e(e,t,o);p&&l(e.getSnapshotBeforeUpdate)&&(h=e.getSnapshotBeforeUpdate(d,s)),un(e.$LI,g,r,e.$CX,i,c,f),e.$LI=g,l(e.componentDidUpdate)&&gn(e,d,s,h,f)}else e.props=t,e.state=n,e.context=o}function kn(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)}mn(s,h,d,t,r,o,!1,u,c),v!==p&&(Ie(v),Ae(p,s,c))}function bn(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=R(qe(n,o));un(h,g,r,o,i,a,u),n.children=g,v&&l(d.onComponentDidUpdate)&&d.onComponentDidUpdate(p,s)}else n.children=h}function yn(e,n){var t=n.children,r=n.dom=e.dom;t!==e.children&&(r.nodeValue=t)}function Cn(e,n,t,r,l,o,i,a,u){for(var c,f,s=o>i?i:o,d=0;di)for(d=s;dd||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=E(g)),un(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;)Me(e[v++],t);else $n(e,n,r,o,i,d,p,v,t,l,a,u,c)}function $n(e,n,t,r,l,o,i,a,u,c,f,s,d){var p,v,h,g=0,m=a,k=a,y=o-a+1,w=i-a+1,$=new Int32Array(w+1),F=y===r,P=!1,x=0,L=0;if(l<4||(y|w)<32)for(g=m;g<=o;++g)if(p=e[g],La?P=!0:x=a,16384&v.flags&&(n[a]=v=E(v)),un(p,v,u,t,c,f,d),++L;break}!F&&a>i&&Me(p,u)}else F||Me(p,u);else{var S={};for(g=k;g<=i;++g)S[n[g].key]=g;for(g=m;g<=o;++g)if(p=e[g],Lm;)Me(e[m++],u);$[a-k]=g+1,x>a?P=!0:x=a,16384&(v=n[a]).flags&&(n[a]=v=E(v)),un(p,v,u,t,c,f,d),++L}else F||Me(p,u);else F||Me(p,u)}if(F)Ee(u,s,e),Ze(n,u,t,c,f,d);else if(P){var V=Pn($);for(a=V.length-1,g=w-1;g>=0;g--)0===$[g]?(16384&(v=n[x=g+k]).flags&&(n[x]=v=E(v)),Ge(v,u,t,c,(h=x+1)=0;g--)0===$[g]&&(16384&(v=n[x=g+k]).flags&&(n[x]=v=E(v)),Ge(v,u,t,c,(h=x+1)Fn&&(Fn=u,$e=new Int32Array(u),Fe=new Int32Array(u));t>1]]0&&(Fe[t]=$e[o-1]),$e[o]=t)}o=l+1;var c=new Int32Array(o);for(i=$e[o-1];o-- >0;)c[o]=i,i=Fe[i],$e[o]=0;return c}function xn(e,n,r,o){var i=[],a=n.$V;t(a)?t(e)||(16384&e.flags&&(e=E(e)),Ge(e,n,o,!1,null,i),n.$V=e,a=e):t(e)?(Me(a,n),n.$V=null):(16384&e.flags&&(e=E(e)),un(a,e,n,o,!1,null,i),a=n.$V=e),m(i),l(r)&&r(),l($.renderComplete)&&$.renderComplete(a,n)}function Ln(e,n,t,r){void 0===t&&(t=null),void 0===r&&(r=f),xn(e,n,t,r)}"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.10");var Sn={onComponentShouldUpdate:function(e,n){return e!==n}};function Vn(e){return U(1,"li","TreeLeaf",e.children,16,null,null,null)}function Un(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]===S;p||v||h?(a=a||l.slice(0,f),(p||h)&&(s=E(s)),(v||h)&&(s.key=S+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=E(l)),u=2;return t.children=a,t.childFlags=u,t}function R(t){if(r(t)||n(t))return T(t,null);if(e(t))return D(t,0,null);return 16384&t.flags?E(t):t}var j="http://www.w3.org/1999/xlink",X="http://www.w3.org/XML/1998/namespace",_={"xlink:actuate":j,"xlink:arcrole":j,"xlink:href":j,"xlink:role":j,"xlink:show":j,"xlink:title":j,"xlink:type":j,"xml:base":X,"xml:lang":X,"xml:space":X};function K(e){return{onClick:e,onDblClick:e,onFocusIn:e,onFocusOut:e,onKeyDown:e,onKeyPress:e,onKeyUp:e,onMouseDown:e,onMouseMove:e,onMouseUp:e,onTouchEnd:e,onTouchMove:e,onTouchStart:e}}var q=K(0),G=K(null),J=K(!0);function z(e,n){var t=n.$EV;return t||(t=n.$EV=K(null)),t[e]||1===++q[e]&&(G[e]=ae(e)),t}function Q(e,n){var t=n.$EV;t&&t[e]&&(0===--q[e]&&(document.removeEventListener(s(e),G[e]),G[e]=null),t[e]=null)}function Y(e,n,t,r){if(l(t))z(e,r)[e]=t;else if(c(t)){if(P(n,t))return;z(e,r)[e]=t}else Q(e,r)}function Z(e){return l(e.composedPath)?e.composedPath()[0]:e.target}function ee(e,n,t,r){var l=Z(e);do{if(n&&l.disabled)return;var o=l.$EV;if(o){var a=o[t];if(a&&(r.dom=l,a.event?a.event(a.data,e):a(e),e.cancelBubble))return}l=l.parentNode}while(!i(l))}function ne(){this.cancelBubble=!0,this.immediatePropagationStopped||this.stopImmediatePropagation()}function te(){return this.defaultPrevented}function re(){return this.cancelBubble}function le(e){var n={dom:document};return e.isDefaultPrevented=te,e.isPropagationStopped=re,e.stopPropagation=ne,Object.defineProperty(e,"currentTarget",{configurable:!0,get:function(){return n.dom}}),n}function oe(e){return function(n){if(0!==n.button)return void n.stopPropagation();ee(n,!0,e,le(n))}}function ie(e){return function(n){ee(n,!1,e,le(n))}}function ae(e){var n="onClick"===e||"onDblClick"===e?oe(e):ie(e);return document.addEventListener(s(e),n),n}function ue(e,n){var t=document.createElement("i");return t.innerHTML=n,t.innerHTML===e.innerHTML}function ce(e,n,t){if(e[n]){var r=e[n];r.event?r.event(r.data,t):r(t)}else{var l=n.toLowerCase();e[l]&&e[l](t)}}function fe(e,n){var t=function(t){var r=this.$V;if(!r)return;var i=r.props||f,a=r.dom;if(o(e))ce(i,e,t);else for(var u=0;u-1&&n.options[i]&&(a=n.options[i].value),r&&t(a)&&(a=e.defaultValue),ke(l,a)}}var $e,Fe,Pe=fe("onInput",Se),xe=fe("onChange");function Le(e,n){se(e,"input",Pe),n.onChange&&se(e,"change",xe)}function Se(e,n,r){var l=e.value,o=n.value;if(t(l)){if(r){var i=e.defaultValue;t(i)||i===o||(n.defaultValue=i,n.value=i)}}else o!==l&&(n.defaultValue=l,n.value=l)}function Ve(e,n,t,r,l,o){64&e?me(r,t):256&e?we(r,t,l,n):128&e&&Se(r,t,l),o&&(t.$V=n)}function Ue(e,n,t){64&e?ge(n,t):256&e?Ce(n):128&e&&Le(n,t)}function Ne(e){return e.type&&de(e.type)?!t(e.checked):!t(e.value)}function Ie(e){e&&!L(e,null)&&e.current&&(e.current=null)}function Ae(e,n,t){e&&(l(e)||void 0!==e.current)&&t.push((function(){L(e,n)||void 0===e.current||(e.current=n)}))}function Me(e,n){Te(e),y(e,n)}function Te(e){var n,r=e.flags,o=e.children;if(481&r){n=e.ref;var a=e.props;Ie(n);var u=e.childFlags;if(!i(a))for(var c=Object.keys(a),s=0,d=c.length;s0;for(var a in i&&(o=Ne(t))&&Ue(n,r,t),t)je(a,null,t[a],r,l,o,null);i&&Ve(n,e,r,t,!0,o)}function _e(e,n,t){var r=R(e.render(n,e.state,t)),o=t;return l(e.getChildContext)&&(o=a(t,e.getChildContext())),e.$CX=o,r}function Ke(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=w(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=_e(u,t,r),u}function qe(e,n){var t=e.props||f;return 32768&e.flags?e.type.render(t,e.ref,n):e.type(t,n)}function Ge(e,n,t,r,l,o){var i=e.flags|=16384;481&i?Ye(e,n,t,r,l,o):4&i?en(e,n,t,r,l,o):8&i?(nn(e,n,t,r,l,o),on(e,o)):512&i||16&i?Qe(e,n,l):8192&i?ze(e,t,n,r,l,o):1024&i&&Je(e,t,n,l,o)}function Je(e,n,t,r,l){Ge(e.children,e.ref,n,!1,null,l);var o=W();Qe(o,t,r),e.dom=o.dom}function ze(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=W()),2===a?Ge(i,t,n,r,l,o):Ze(i,t,n,r,l,o)}function Qe(e,n,t){var r=e.dom=document.createTextNode(e.children);i(n)||p(n,r,t)}function Ye(e,n,r,l,o,a){var u=e.flags,c=e.props,f=e.className,s=e.childFlags,d=e.dom=v(e.type,l=l||(32&u)>0),h=e.children;if(t(f)||""===f||(l?d.setAttribute("class",f):d.className=f),16===s)F(d,h);else if(1!==s){var g=l&&"foreignObject"!==e.type;2===s?(16384&h.flags&&(e.children=h=E(h)),Ge(h,d,r,g,null,a)):8!==s&&4!==s||Ze(h,d,r,g,null,a)}i(n)||p(n,d,o),i(c)||Xe(e,u,c,d,l),Ae(e.ref,d,a)}function Ze(e,n,t,r,l,o){for(var i=0;id)&&(f=b(i[d-1],!1).nextSibling)}hn(u,c,i,a,t,r,l,f,e,o)}function dn(e,n,t,l){var o=e.ref,i=n.ref,a=n.children;if(hn(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;g(o,u),d(i,u)}}function pn(e,n,r,l,o,i){var a,u=n.dom=e.dom,c=e.props,s=n.props,d=!1,p=!1;if(l=l||(32&o)>0,c!==s){var v=c||f;if((a=s||f)!==f)for(var h in(d=(448&o)>0)&&(p=Ne(a)),a){var g=v[h],m=a[h];g!==m&&je(h,g,m,u,l,p,e)}if(v!==f)for(var k in v)t(a[k])&&!t(v[k])&&je(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?fn(u,b):hn(e.childFlags,n.childFlags,e.children,b,u,r,l&&"foreignObject"!==n.type,null,e,i),d&&Ve(o,n,u,a,!1,p);var C=n.ref,w=e.ref;w!==C&&(Ie(w),Ae(C,u,i))}function vn(e,n,t,r,l,o){Te(e),Ze(n,t,r,l,b(e,!0),o),y(e,t)}function hn(e,n,t,r,l,o,i,a,u,c){switch(e){case 2:switch(n){case 2:un(t,r,l,o,i,a,c);break;case 1:Me(t,l);break;case 16:Te(t),F(l,r);break;default:vn(t,r,l,o,i,c)}break;case 1:switch(n){case 2:Ge(r,l,o,i,a,c);break;case 1:break;case 16:F(l,r);break;default:Ze(r,l,o,i,a,c)}break;case 16:switch(n){case 16:cn(t,r,l);break;case 2:Be(l),Ge(r,l,o,i,a,c);break;case 1:Be(l);break;default:Be(l),Ze(r,l,o,i,a,c)}break;default:switch(n){case 16:De(t),F(l,r);break;case 2:Ee(l,u,t),Ge(r,l,o,i,a,c);break;case 1:Ee(l,u,t);break;default:var f=0|t.length,s=0|r.length;0===f?s>0&&Ze(r,l,o,i,a,c):0===s?Ee(l,u,t):8===n&&8===e?wn(t,r,l,o,i,f,s,a,u,c):Cn(t,r,l,o,i,f,s,a,c)}}}function gn(e,n,t,r,l){l.push((function(){e.componentDidUpdate(n,t,r)}))}function mn(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=w(e,t,n!==s?a(s,n):n)),u||!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=_e(e,t,o);p&&l(e.getSnapshotBeforeUpdate)&&(h=e.getSnapshotBeforeUpdate(d,s)),un(e.$LI,g,r,e.$CX,i,c,f),e.$LI=g,l(e.componentDidUpdate)&&gn(e,d,s,h,f)}else e.props=t,e.state=n,e.context=o}function kn(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)}mn(s,h,d,t,r,o,!1,u,c),v!==p&&(Ie(v),Ae(p,s,c))}function bn(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=R(qe(n,o));un(h,g,r,o,i,a,u),n.children=g,v&&l(d.onComponentDidUpdate)&&d.onComponentDidUpdate(p,s)}else n.children=h}function yn(e,n){var t=n.children,r=n.dom=e.dom;t!==e.children&&(r.nodeValue=t)}function Cn(e,n,t,r,l,o,i,a,u){for(var c,f,s=o>i?i:o,d=0;di)for(d=s;dd||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=E(g)),un(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;)Me(e[v++],t);else $n(e,n,r,o,i,d,p,v,t,l,a,u,c)}function $n(e,n,t,r,l,o,i,a,u,c,f,s,d){var p,v,h,g=0,m=a,k=a,y=o-a+1,w=i-a+1,$=new Int32Array(w+1),F=y===r,P=!1,x=0,L=0;if(l<4||(y|w)<32)for(g=m;g<=o;++g)if(p=e[g],La?P=!0:x=a,16384&v.flags&&(n[a]=v=E(v)),un(p,v,u,t,c,f,d),++L;break}!F&&a>i&&Me(p,u)}else F||Me(p,u);else{var S={};for(g=k;g<=i;++g)S[n[g].key]=g;for(g=m;g<=o;++g)if(p=e[g],Lm;)Me(e[m++],u);$[a-k]=g+1,x>a?P=!0:x=a,16384&(v=n[a]).flags&&(n[a]=v=E(v)),un(p,v,u,t,c,f,d),++L}else F||Me(p,u);else F||Me(p,u)}if(F)Ee(u,s,e),Ze(n,u,t,c,f,d);else if(P){var V=Pn($);for(a=V.length-1,g=w-1;g>=0;g--)0===$[g]?(16384&(v=n[x=g+k]).flags&&(n[x]=v=E(v)),Ge(v,u,t,c,(h=x+1)=0;g--)0===$[g]&&(16384&(v=n[x=g+k]).flags&&(n[x]=v=E(v)),Ge(v,u,t,c,(h=x+1)Fn&&(Fn=u,$e=new Int32Array(u),Fe=new Int32Array(u));t>1]]0&&(Fe[t]=$e[o-1]),$e[o]=t)}o=l+1;var c=new Int32Array(o);for(i=$e[o-1];o-- >0;)c[o]=i,i=Fe[i],$e[o]=0;return c}function xn(e,n,r,o){var i=[],a=n.$V;t(a)?t(e)||(16384&e.flags&&(e=E(e)),Ge(e,n,o,!1,null,i),n.$V=e,a=e):t(e)?(Me(a,n),n.$V=null):(16384&e.flags&&(e=E(e)),un(a,e,n,o,!1,null,i),a=n.$V=e),m(i),l(r)&&r(),l($.renderComplete)&&$.renderComplete(a,n)}function Ln(e,n,t,r){void 0===t&&(t=null),void 0===r&&(r=f),xn(e,n,t,r)}"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.11");var Sn={onComponentShouldUpdate:function(e,n){return e!==n}};function Vn(e){return U(1,"li","TreeLeaf",e.children,16,null,null,null)}function Un(e){for(var n=e.data,t=n.children.length,r=new Array(t),l=0;l (https://terinstock.com/)", @@ -28,11 +28,11 @@ "directory": "packages/inferno-hyperscript" }, "dependencies": { - "inferno": "8.0.0-alpha.2" + "inferno": "8.0.0-alpha.3" }, "devDependencies": { - "inferno-shared": "8.0.0-alpha.2", - "inferno-vnode-flags": "8.0.0-alpha.2" + "inferno-shared": "8.0.0-alpha.3", + "inferno-vnode-flags": "8.0.0-alpha.3" }, "rollup": { "bundledDependencies": [ diff --git a/packages/inferno-mobx/package.json b/packages/inferno-mobx/package.json index d36fa2998..246bc60c2 100644 --- a/packages/inferno-mobx/package.json +++ b/packages/inferno-mobx/package.json @@ -1,6 +1,6 @@ { "name": "inferno-mobx", - "version": "8.0.0-alpha.2", + "version": "8.0.0-alpha.3", "license": "MIT", "description": "Official Inferno bindings for Mobx", "author": { @@ -40,11 +40,11 @@ }, "dependencies": { "hoist-non-inferno-statics": "^1.1.3", - "inferno": "8.0.0-alpha.2", - "inferno-create-class": "8.0.0-alpha.2", - "inferno-create-element": "8.0.0-alpha.2", - "inferno-shared": "8.0.0-alpha.2", - "inferno-vnode-flags": "8.0.0-alpha.2" + "inferno": "8.0.0-alpha.3", + "inferno-create-class": "8.0.0-alpha.3", + "inferno-create-element": "8.0.0-alpha.3", + "inferno-shared": "8.0.0-alpha.3", + "inferno-vnode-flags": "8.0.0-alpha.3" }, "devDependencies": { "mobx": "*" diff --git a/packages/inferno-redux/package.json b/packages/inferno-redux/package.json index 106618244..ca82587ba 100644 --- a/packages/inferno-redux/package.json +++ b/packages/inferno-redux/package.json @@ -1,6 +1,6 @@ { "name": "inferno-redux", - "version": "8.0.0-alpha.2", + "version": "8.0.0-alpha.3", "license": "MIT", "description": "Official Inferno bindings for Redux", "author": { @@ -40,12 +40,12 @@ }, "dependencies": { "hoist-non-inferno-statics": "^1.1.3", - "inferno": "8.0.0-alpha.2" + "inferno": "8.0.0-alpha.3" }, "devDependencies": { - "inferno-create-class": "8.0.0-alpha.2", - "inferno-create-element": "8.0.0-alpha.2", - "inferno-shared": "8.0.0-alpha.2", + "inferno-create-class": "8.0.0-alpha.3", + "inferno-create-element": "8.0.0-alpha.3", + "inferno-shared": "8.0.0-alpha.3", "redux": "^4" }, "rollup": { diff --git a/packages/inferno-router/package.json b/packages/inferno-router/package.json index 49c8e73cb..b179e646d 100644 --- a/packages/inferno-router/package.json +++ b/packages/inferno-router/package.json @@ -1,6 +1,6 @@ { "name": "inferno-router", - "version": "8.0.0-alpha.2", + "version": "8.0.0-alpha.3", "license": "MIT", "description": "Provides routing functionality for Inferno", "author": { @@ -42,11 +42,11 @@ "dependencies": { "history": "^5.1.0", "hoist-non-inferno-statics": "^1.1.3", - "inferno": "8.0.0-alpha.2", + "inferno": "8.0.0-alpha.3", "path-to-regexp-es6": "1.7.0" }, "devDependencies": { - "inferno-vnode-flags": "8.0.0-alpha.2", + "inferno-vnode-flags": "8.0.0-alpha.3", "mobx": "*" }, "rollup": { diff --git a/packages/inferno-server/package.json b/packages/inferno-server/package.json index e26696bd6..f3f700e0c 100644 --- a/packages/inferno-server/package.json +++ b/packages/inferno-server/package.json @@ -1,6 +1,6 @@ { "name": "inferno-server", - "version": "8.0.0-alpha.2", + "version": "8.0.0-alpha.3", "license": "MIT", "description": "Provides methods to render HTML strings from Inferno elements", "author": { @@ -45,15 +45,15 @@ "node": ">=8" }, "devDependencies": { - "inferno-create-class": "8.0.0-alpha.2", - "inferno-create-element": "8.0.0-alpha.2", - "inferno-hydrate": "8.0.0-alpha.2", - "inferno-shared": "8.0.0-alpha.2", - "inferno-vnode-flags": "8.0.0-alpha.2", + "inferno-create-class": "8.0.0-alpha.3", + "inferno-create-element": "8.0.0-alpha.3", + "inferno-hydrate": "8.0.0-alpha.3", + "inferno-shared": "8.0.0-alpha.3", + "inferno-vnode-flags": "8.0.0-alpha.3", "mobx": "*" }, "dependencies": { - "inferno": "8.0.0-alpha.2" + "inferno": "8.0.0-alpha.3" }, "rollup": { "bundledDependencies": [ diff --git a/packages/inferno-shared/package.json b/packages/inferno-shared/package.json index c51b2615c..b1b243898 100644 --- a/packages/inferno-shared/package.json +++ b/packages/inferno-shared/package.json @@ -1,6 +1,6 @@ { "name": "inferno-shared", - "version": "8.0.0-alpha.2", + "version": "8.0.0-alpha.3", "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 1a42dd702..dec008528 100644 --- a/packages/inferno-test-utils/package.json +++ b/packages/inferno-test-utils/package.json @@ -1,6 +1,6 @@ { "name": "inferno-test-utils", - "version": "8.0.0-alpha.2", + "version": "8.0.0-alpha.3", "license": "MIT", "description": "Suite of utilities for testing Inferno applications", "author": { @@ -21,11 +21,11 @@ "utils" ], "devDependencies": { - "inferno-shared": "8.0.0-alpha.2", - "inferno-vnode-flags": "8.0.0-alpha.2" + "inferno-shared": "8.0.0-alpha.3", + "inferno-vnode-flags": "8.0.0-alpha.3" }, "dependencies": { - "inferno": "8.0.0-alpha.2" + "inferno": "8.0.0-alpha.3" }, "rollup": { "bundledDependencies": [ diff --git a/packages/inferno-utils/package.json b/packages/inferno-utils/package.json index 788491f3a..a49ee5411 100644 --- a/packages/inferno-utils/package.json +++ b/packages/inferno-utils/package.json @@ -1,6 +1,6 @@ { "name": "inferno-utils", - "version": "8.0.0-alpha.2", + "version": "8.0.0-alpha.3", "description": "Meta test utilities which are not for userland", "scripts": { "test": "echo \"Error: no test specified\" && exit 1" @@ -11,8 +11,8 @@ "directory": "packages/inferno-utils" }, "devDependencies": { - "inferno-shared": "8.0.0-alpha.2", - "inferno-vnode-flags": "8.0.0-alpha.2" + "inferno-shared": "8.0.0-alpha.3", + "inferno-vnode-flags": "8.0.0-alpha.3" }, "keywords": [], "author": "", diff --git a/packages/inferno-vnode-flags/package.json b/packages/inferno-vnode-flags/package.json index 539916dde..b127f8b62 100644 --- a/packages/inferno-vnode-flags/package.json +++ b/packages/inferno-vnode-flags/package.json @@ -1,6 +1,6 @@ { "name": "inferno-vnode-flags", - "version": "8.0.0-alpha.2", + "version": "8.0.0-alpha.3", "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 42870f524..26270090b 100644 --- a/packages/inferno/package.json +++ b/packages/inferno/package.json @@ -1,6 +1,6 @@ { "name": "inferno", - "version": "8.0.0-alpha.2", + "version": "8.0.0-alpha.3", "license": "MIT", "description": "An extremely fast, React-like JavaScript library for building modern user interfaces", "author": { @@ -57,11 +57,11 @@ "directory": "packages/inferno" }, "devDependencies": { - "inferno-utils": "8.0.0-alpha.2" + "inferno-utils": "8.0.0-alpha.3" }, "dependencies": { - "inferno-shared": "8.0.0-alpha.2", - "inferno-vnode-flags": "8.0.0-alpha.2", + "inferno-shared": "8.0.0-alpha.3", + "inferno-vnode-flags": "8.0.0-alpha.3", "opencollective-postinstall": "^2.0.3" } }