From 18bd10ccdbe70ae60116151c34034678f098ac14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sampo=20Kivist=C3=B6?= Date: Wed, 25 May 2022 00:09:43 +0300 Subject: [PATCH] v8.0.0-alpha.6 --- docs/1kcomponents/dist/bundle.js | 2 +- docs/dbmonster-mobx/dist/bundle.js | 5 ++--- docs/dbmonster/dist/bundle.js | 2 +- docs/event-test/dist/bundle.js | 2 +- docs/uibench-inferno-compat/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-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 +++---- 26 files changed, 86 insertions(+), 87 deletions(-) diff --git a/docs/1kcomponents/dist/bundle.js b/docs/1kcomponents/dist/bundle.js index 1a7fe2395..3e1bf41a0 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,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;t0?k(t.componentWillDisappear,S(e,n)):P(e,n,!1)}function D(e,n,t,a,f,r,c,i){e.componentWillMove.push({dom:a,fn:function(){4&c?t.componentWillMove(n,f,a,i):8&c&&t.onComponentWillMove(n,f,a,i)},next:r,parent:f})}function T(e,n,t,a,f){var r,i,l=n.flags;do{var d=n.flags;if(1521&d)return void(c(r)||!o(r.componentWillMove)&&!o(r.onComponentWillMove)?m(t,n.dom,a):D(f,e,r,n.dom,t,a,l,i));var u=n.children;if(4&d)r=n.children,i=n.props,n=u.$LI;else if(8&d)r=n.ref,i=n.props,n=u;else if(8192&d){if(2!==n.childFlags){for(var s=0,p=u.length;s0,h=d(s),b=l(s)&&s[0]===_;p||h||b?(t=t||n.slice(0,o),(p||b)&&(u=X(u)),(h||b)&&(u.key=_+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=X(n)),a=2;return e.children=t,e.childFlags=a,e}function Y(e){if(i(e)||r(e))return q(e,null);if(f(e))return G(e,0,null);return 16384&e.flags?X(e):e}var Z="http://www.w3.org/1999/xlink",ee="http://www.w3.org/XML/1998/namespace",ne={"xlink:actuate":Z,"xlink:arcrole":Z,"xlink:href":Z,"xlink:role":Z,"xlink:show":Z,"xlink:title":Z,"xlink:type":Z,"xml:base":ee,"xml:lang":ee,"xml:space":ee};function te(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 ae=te(0),fe=te(null),re=te(!0);function ce(e,n){var t=n.$EV;return t||(t=n.$EV=te(null)),t[e]||1===++ae[e]&&(fe[e]=me(e)),t}function ie(e,n){var t=n.$EV;t&&t[e]&&(0===--ae[e]&&(document.removeEventListener(b(e),fe[e]),fe[e]=null),t[e]=null)}function oe(e,n,t,a){if(o(t))ce(e,a)[e]=t;else if(s(t)){if(W(n,t))return;ce(e,a)[e]=t}else ie(e,a)}function le(e){return o(e.composedPath)?e.composedPath()[0]:e.target}function de(e,n,t,a){var f=le(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 ue(){this.cancelBubble=!0,this.immediatePropagationStopped||this.stopImmediatePropagation()}function se(){return this.defaultPrevented}function pe(){return this.cancelBubble}function he(e){var n={dom:document};return e.isDefaultPrevented=se,e.isPropagationStopped=pe,e.stopPropagation=ue,Object.defineProperty(e,"currentTarget",{configurable:!0,get:function(){return n.dom}}),n}function be(e){return function(n){if(0!==n.button)return void n.stopPropagation();de(n,!0,e,he(n))}}function ve(e){return function(n){de(n,!1,e,he(n))}}function me(e){var n="onClick"===e||"onDblClick"===e?be(e):ve(e);return document.addEventListener(b(e),n),n}function ge(e,n){var t=document.createElement("i");return t.innerHTML=n,t.innerHTML===e.innerHTML}function ye(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 xe(e,n){var t=function(t){var a=this.$V;if(!a)return;var f=a.props||p,r=a.dom;if(l(e))ye(f,e,t);else for(var c=0;c-1&&n.options[r]&&(i=n.options[r].value),t&&c(i)&&(i=e.defaultValue),Fe(a,i)}}var Le,Ne,We=xe("onInput",_e),Ie=xe("onChange");function Ve(e,n){$e(e,"input",We),n.onChange&&$e(e,"change",Ie)}function _e(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 He(e,n,t,a,f,r){64&e?Se(a,t):256&e?Ue(a,t,f,n):128&e&&_e(a,t,f),r&&(t.$V=n)}function Ee(e,n,t){64&e?Pe(n,t):256&e?Ae(n):128&e&&Ve(n,t)}function Be(e){return e.type&&we(e.type)?!c(e.checked):!c(e.value)}function Oe(e){e&&!V(e,null)&&e.current&&(e.current=null)}function Re(e,n,t){e&&(o(e)||void 0!==e.current)&&t.push((function(){V(e,n)||void 0===e.current||(e.current=n)}))}function je(e,n,t){qe(e,t),F(e,n,t)}function qe(e,n){var t,a=e.flags,f=e.children;if(481&a){t=e.ref;var r=e.props;Oe(t);var i=e.childFlags;if(!d(r))for(var l=Object.keys(r),u=0,s=l.length;u0?k(t.componentWillDisappear,Qe(n,e)):e.textContent=""}function Ke(e,n,t,a){Ge(t,a),8192&n.flags?F(n,e,a):Xe(e,t,a)}function ze(e,n,t,a,f){e.componentWillDisappear.push((function(e){4&a?n.componentWillDisappear(t,e):8&a&&n.onComponentWillDisappear(t,f,e)}))}function Je(e){var n=e.event;return function(t){n(e.data,t)}}function Ye(e,n,t,a){if(s(t)){if(W(n,t))return;t=Je(t)}$e(a,b(e),t)}function Ze(e,n,t){if(c(n))return void t.removeAttribute("style");var a,f,r=t.style;if(l(n))return void(r.cssText=n);if(c(e)||l(e))for(a in n)f=n[a],r.setProperty(a,f);else{for(a in n)(f=n[a])!==e[a]&&r.setProperty(a,f);for(a in e)c(n[a])&&r.removeProperty(a)}}function en(e,n,t,a,f){var r=e&&e.__html||"",i=n&&n.__html||"";r!==i&&(c(i)||ge(a,i)||(d(t)||(12&t.childFlags?Ge(t.children,f):2===t.childFlags&&qe(t.children,f),t.children=null,t.childFlags=1),a.innerHTML=i))}function nn(e,n,t,a,f,r,i,o){switch(e){case"children":case"childrenType":case"className":case"defaultValue":case"key":case"multiple":case"ref":case"selectedIndex":break;case"autoFocus":a.autofocus=!!t;break;case"allowfullscreen":case"autoplay":case"capture":case"checked":case"controls":case"default":case"disabled":case"hidden":case"indeterminate":case"loop":case"muted":case"novalidate":case"open":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"selected":a[e]=!!t;break;case"defaultChecked":case"value":case"volume":if(r&&"value"===e)break;var l=c(t)?"":t;a[e]!==l&&(a[e]=l);break;case"style":Ze(n,t,a);break;case"dangerouslySetInnerHTML":en(n,t,i,a,o);break;default:re[e]?oe(e,n,t,a):111===e.charCodeAt(0)&&110===e.charCodeAt(1)?Ye(e,n,t,a):c(t)?a.removeAttribute(e):f&&ne[e]?a.setAttributeNS(ne[e],e,t):a.setAttribute(e,t)}}function tn(e,n,t,a,f,r){var c=!1,i=(448&n)>0;for(var o in i&&(c=Be(t))&&Ee(n,a,t),t)nn(o,null,t[o],a,f,c,null,r);i&&He(n,e,a,t,!0,c)}function an(e,n,t){var a=Y(e.render(n,e.state,t)),f=t;return o(e.getChildContext)&&(f=u(t,e.getChildContext())),e.$CX=f,a}function fn(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===p&&(c.props=t),i)c.state=A(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=an(c,t,a),c}function rn(e,n){var t=e.props||p;return 32768&e.flags?e.type.render(t,e.ref,n):e.type(t,n)}function cn(e,n,t,a,f,r,c){var i=e.flags|=16384;481&i?un(e,n,t,a,f,r,c):4&i?pn(e,n,t,a,f,r,c):8&i?hn(e,n,t,a,f,r,c):16&i?dn(e,n,f):8192&i?ln(e,t,n,a,f,r,c):1024&i&&on(e,t,n,f,r,c)}function on(e,n,t,a,f,r){cn(e.children,e.ref,n,!1,null,f,r);var c=K();dn(c,t,a),e.dom=c.dom}function ln(e,n,t,a,f,r,c){var i=e.children,o=e.childFlags;12&o&&0===i.length&&(o=e.childFlags=2,i=e.children=K()),2===o?cn(i,t,n,a,f,r,c):sn(i,t,n,a,f,r,c)}function dn(e,n,t){var a=e.dom=document.createTextNode(e.children);d(n)||m(n,a,t)}function un(e,n,t,a,f,r,i){var o=e.flags,l=e.props,u=e.className,s=e.childFlags,p=e.dom=g(e.type,a=a||(32&o)>0),h=e.children;if(c(u)||""===u||(a?p.setAttribute("class",u):p.className=u),16===s)N(p,h);else if(1!==s){var b=a&&"foreignObject"!==e.type;2===s?(16384&h.flags&&(e.children=h=X(h)),cn(h,p,t,b,null,r,i)):8!==s&&4!==s||sn(h,p,t,b,null,r,i)}d(n)||m(n,p,f),d(l)||tn(e,o,l,p,a,i),Re(e.ref,p,r)}function sn(e,n,t,a,f,r,c){for(var i=0;ip)&&(u=C(i[p-1],!1).nextSibling)}Fn(l,d,i,o,t,a,f,u,e,r,c)}function Mn(e,n,t,a,f){var r=e.ref,c=n.ref,o=n.children;if(Fn(e.childFlags,n.childFlags,e.children,o,r,t,!1,null,e,a,f),n.dom=e.dom,r!==c&&!i(o)){var l=o.dom;x(r,l),v(c,l)}}function Pn(e,n,t,a,f,r,i){var o,l=n.dom=e.dom,d=e.props,u=n.props,s=!1,h=!1;if(a=a||(32&f)>0,d!==u){var b=d||p;if((o=u||p)!==p)for(var v in(s=(448&f)>0)&&(h=Be(o)),o){var m=b[v],g=o[v];m!==g&&nn(v,m,g,l,a,h,e,i)}if(b!==p)for(var y in b)c(o[y])&&!c(b[y])&&nn(y,b[y],null,l,a,h,e,i)}var x=n.children,$=n.className;e.className!==$&&(c($)?l.removeAttribute("class"):a?l.setAttribute("class",$):l.className=$),4096&f?Cn(l,x):Fn(e.childFlags,n.childFlags,e.children,x,l,t,a&&"foreignObject"!==n.type,null,e,r,i),s&&He(f,n,l,o,!1,h);var w=n.ref,C=e.ref;C!==w&&(Oe(C),Re(w,l,r))}function Sn(e,n,t,a,f,r,c){qe(e,c),sn(n,t,a,f,C(e,!0),r,c),F(e,t,c)}function Fn(e,n,t,a,f,r,c,i,o,l,d){switch(e){case 2:switch(n){case 2:$n(t,a,f,r,c,i,l,d);break;case 1:je(t,f,d);break;case 16:qe(t,d),N(f,a);break;default:Sn(t,a,f,r,c,l,d)}break;case 1:switch(n){case 2:cn(a,f,r,c,i,l,d);break;case 1:break;case 16:N(f,a);break;default:sn(a,f,r,c,i,l,d)}break;case 16:switch(n){case 16:wn(t,a,f);break;case 2:Xe(f,t,d),cn(a,f,r,c,i,l,d);break;case 1:Xe(f,t,d);break;default:Xe(f,t,d),sn(a,f,r,c,i,l,d)}break;default:switch(n){case 16:Ge(t,d),N(f,a);break;case 2:Ke(f,o,t,d),cn(a,f,r,c,i,l,d);break;case 1:Ke(f,o,t,d);break;default:var u=0|t.length,s=0|a.length;0===u?s>0&&sn(a,f,r,c,i,l,d):0===s?Ke(f,o,t,d):8===n&&8===e?Wn(t,a,f,r,c,u,s,i,o,l,d):Nn(t,a,f,r,c,u,s,i,l,d)}}}function Dn(e,n,t,a,f){f.push((function(){e.componentDidUpdate(n,t,a)}))}function Tn(e,n,t,a,f,r,c,i,l,d){var s=e.state,p=e.props,h=Boolean(e.$N),b=o(e.shouldComponentUpdate);if(h&&(n=A(e,t,n!==s?u(s,n):n)),c||!b||b&&e.shouldComponentUpdate(t,n,f)){!h&&o(e.componentWillUpdate)&&e.componentWillUpdate(t,n,f),e.props=t,e.state=n,e.context=f;var v=null,m=an(e,t,f);h&&o(e.getSnapshotBeforeUpdate)&&(v=e.getSnapshotBeforeUpdate(p,s)),$n(e.$LI,m,a,e.$CX,r,i,l,d),e.$LI=m,o(e.componentDidUpdate)&&Dn(e,p,s,v,l)}else e.props=t,e.state=n,e.context=f}function An(e,n,t,a,f,r,c,i){var l=n.children=e.children;if(d(l))return;l.$L=c;var s=n.props||p,h=n.ref,b=e.ref,v=l.state;if(!l.$N){if(o(l.componentWillReceiveProps)){if(l.$BR=!0,l.componentWillReceiveProps(s,a),l.$UN)return;l.$BR=!1}d(l.$PS)||(v=u(v,l.$PS),l.$PS=null)}Tn(l,v,s,t,a,f,!1,r,c,i),b!==h&&(Oe(b),Re(h,l,c))}function Un(e,n,t,a,f,r,i,l){var d=!0,u=n.props||p,s=n.ref,h=e.props,b=!c(s),v=e.children;if(b&&o(s.onComponentShouldUpdate)&&(d=s.onComponentShouldUpdate(h,u)),!1!==d){b&&o(s.onComponentWillUpdate)&&s.onComponentWillUpdate(h,u);var m=Y(rn(n,a));$n(v,m,t,a,f,r,i,l),n.children=m,b&&o(s.onComponentDidUpdate)&&s.onComponentDidUpdate(h,u)}else n.children=v}function Ln(e,n){var t=n.children,a=n.dom=e.dom;t!==e.children&&(a.nodeValue=t)}function Nn(e,n,t,a,f,r,c,i,o,l){for(var d,u,s=r>c?c:r,p=0;pc)for(p=s;pp||b>h)break e;v=e[b],m=n[b]}for(v=e[p],m=n[h];v.key===m.key;){if(16384&m.flags&&(n[h]=m=X(m)),$n(v,m,t,a,f,i,l,d),e[p]=m,h--,b>--p||b>h)break e;v=e[p],m=n[h]}}if(b>p){if(b<=h)for(s=(u=h+1)h)for(;b<=p;)je(e[b++],t,d);else In(e,n,a,r,c,p,h,b,t,f,i,o,l,d)}function In(e,n,t,a,f,r,c,i,o,l,d,u,s,p){var h,b,v=0,m=0,g=i,y=i,x=r-i+1,$=c-i+1,w=new Int32Array($+1),k=x===a,P=!1,S=0,F=0;if(f<4||(x|$)<32)for(m=g;m<=r;++m)if(h=e[m],F<$){for(i=y;i<=c;i++)if(b=n[i],h.key===b.key){if(w[i-y]=m+1,k)for(k=!1;gi?P=!0:S=i,16384&b.flags&&(n[i]=b=X(b)),$n(h,b,o,t,l,d,s,p),++F;break}!k&&i>c&&je(h,o,p)}else k||je(h,o,p);else{var D={};for(m=y;m<=c;++m)D[n[m].key]=m;for(m=g;m<=r;++m)if(h=e[m],F<$)if(void 0!==(i=D[h.key])){if(k)for(k=!1;m>g;)je(e[g++],o,p);w[i-y]=m+1,S>i?P=!0:S=i,16384&(b=n[i]).flags&&(n[i]=b=X(b)),$n(h,b,o,t,l,d,s,p),++F}else k||je(h,o,p);else k||je(h,o,p)}if(k)Ke(o,u,e,p),sn(n,o,t,l,d,s,p);else if(P){var A=_n(w);for(i=A.length-1,m=$-1;m>=0;m--)0===w[m]?(16384&(b=n[S=m+y]).flags&&(n[S]=b=X(b)),cn(b,o,t,l,(v=S+1)0&&M(p.componentWillMove)}else if(F!==$)for(m=$-1;m>=0;m--)0===w[m]&&(16384&(b=n[S=m+y]).flags&&(n[S]=b=X(b)),cn(b,o,t,l,(v=S+1)Vn&&(Vn=o,Le=new Int32Array(o),Ne=new Int32Array(o));t>1]]0&&(Ne[t]=Le[r-1]),Le[r]=t)}r=f+1;var l=new Int32Array(r);for(c=Le[r-1];r-- >0;)l[r]=c,c=Ne[c],Le[r]=0;return l}"undefined"!==typeof document&&window.Node&&(Node.prototype.$EV=null,Node.prototype.$V=null);var Hn=[],En="undefined"!==typeof Promise?Promise.resolve().then.bind(Promise.resolve()):function(e){window.setTimeout(e,0)},Bn=!1;function On(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(!U.v&&0===Hn.length)return qn(e,a),void(o(t)&&t.call(e));if(-1===Hn.indexOf(e)&&Hn.push(e),a&&(e.$F=!0),Bn||(Bn=!0,En(jn)),o(t)){var i=e.$QU;i||(i=e.$QU=[]),i.push(t)}}}function Rn(e){for(var n=e.$QU,t=0;tt&&(t=r),a+=r}var c=e[this._i],i=a/e.length;return new Kn(n,t,i,c)},e}(),Jn=[],Yn=-1,Zn=(Qn=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}Qn(e,n),e.prototype=null===n?Object.create(n):(t.prototype=n.prototype,new t)}),et=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,Jn.push(e),-1===Yn&&requestAnimationFrame((function(e){Yn=-1;var n=Jn;Jn=[];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=Xn.HideMin|Xn.HideMean),at(),void 0===performance.memory)return;var n=new zn(100),t=new nt("Memory",e,"MB",n);tt.appendChild(t.element),function e(){n.addSample(Math.round(performance.memory.usedJSHeapSize/1048576)),t.invalidate(),setTimeout(e,30)}()}();var ot=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 E(1,"div","app-wrapper",[j(2,dt,{count:n.numPoints},null,null),E(1,"div","controls",[q("# Points"),E(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),E(1,"div","about",[q("InfernoJS 1k Components Demo based on the Glimmer demo by "),E(1,"a",null,"Michael Lange",16,{href:"http://mlange.io",target:"_blank"},null,null),q(".")],4,null,null,null)],4,null,null,null)},t}(Gn),lt=[0,3,0,1,2],dt=function(t){function a(e,n){var a;return(a=t.call(this,e,n)||this).layout=0,a.phyllotaxis=xt(100),a.grid=$t(100),a.wave=wt(100),a.spiral=Ct(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)%lt.length);var t=Math.min(1,this.step/(.8*this.numSteps)),a=lt[this.layout],f=lt[(this.layout+1)%lt.length],r=mt(a),c=mt(f),i=gt(a),o=gt(f);this.points=this.points.map((function(n){var a=e({},n);return a.x=yt(a,t,r,c),a.y=yt(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=Pt(n.grid(t)),f=a[0],r=a[1],c=Pt(n.wave(t)),i=c[0],o=c[1],l=Pt(n.spiral(t)),d=l[0],u=l[1],s=Pt(n.phyllotaxis(t)),p=s[0],h=s[1];Object.assign(e,{gx:f,gy:r,wx:i,wy:o,sx:d,sy:u,px:p,py:h})})),this.points=e},f.makePoints=function(e){for(var n=[],t=0;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length)return{done:!0};return{done:!1,value:e[o++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=function(e,t,n,r){this.min=e,this.max=t,this.mean=n,this.last=r},u=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 t=this.samples,n=0;nn&&(n=i),r+=i}var u=e[this._i],l=r/e.length;return new a(t,n,l,u)},e}(),l=[],s=-1,c=function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),f=function(){function e(e){var t=this;this._sync=function(){t.sync(),t._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,l.push(e),-1===s&&requestAnimationFrame((function(e){s=-1;var t=l;l=[];for(var n=0;n0,s=S(u),c=C(u)&&u[0]===q;l||s||c?(n=n||t.slice(0,i),(l||c)&&(a=te(a)),(s||c)&&(a.key=q+i),n.push(a)):n&&n.push(a),a.flags|=65536}}r=0===(n=n||t).length?1:8}else(n=t).flags|=65536,81920&t.flags&&(n=te(t)),r=2;return e.children=n,e.childFlags=r,e}function ie(e){if(w(e)||g(e))return Y(e,null);if(y(e))return Z(e,0,null);return 16384&e.flags?te(e):e}var ae="http://www.w3.org/1999/xlink",ue="http://www.w3.org/XML/1998/namespace",le={"xlink:actuate":ae,"xlink:arcrole":ae,"xlink:href":ae,"xlink:role":ae,"xlink:show":ae,"xlink:title":ae,"xlink:type":ae,"xml:base":ue,"xml:lang":ue,"xml:space":ue};function se(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 ce=se(0),fe=se(null),pe=se(!0);function de(e,t){var n=t.$EV;return n||(n=t.$EV=se(null)),n[e]||1===++ce[e]&&(fe[e]=ke(e)),n}function he(e,t){var n=t.$EV;n&&n[e]&&(0===--ce[e]&&(document.removeEventListener($(e),fe[e]),fe[e]=null),n[e]=null)}function ve(e,t,n,r){if(x(n))de(e,r)[e]=n;else if(_(n)){if(R(t,n))return;de(e,r)[e]=n}else he(e,r)}function me(e){return x(e.composedPath)?e.composedPath()[0]:e.target}function ye(e,t,n,r){var o=me(e);do{if(t&&o.disabled)return;var i=o.$EV;if(i){var a=i[n];if(a&&(r.dom=o,a.event?a.event(a.data,e):a(e),e.cancelBubble))return}o=o.parentNode}while(!S(o))}function ge(){this.cancelBubble=!0,this.immediatePropagationStopped||this.stopImmediatePropagation()}function be(){return this.defaultPrevented}function we(){return this.cancelBubble}function xe(e){var t={dom:document};return e.isDefaultPrevented=be,e.isPropagationStopped=we,e.stopPropagation=ge,Object.defineProperty(e,"currentTarget",{configurable:!0,get:function(){return t.dom}}),t}function Ce(e){return function(t){if(0!==t.button)return void t.stopPropagation();ye(t,!0,e,xe(t))}}function Se(e){return function(t){ye(t,!1,e,xe(t))}}function ke(e){var t="onClick"===e||"onDblClick"===e?Ce(e):Se(e);return document.addEventListener($(e),t),t}function _e(e,t){var n=document.createElement("i");return n.innerHTML=t,n.innerHTML===e.innerHTML}function Oe(e,t,n){if(e[t]){var r=e[t];r.event?r.event(r.data,n):r(n)}else{var o=t.toLowerCase();e[o]&&e[o](n)}}function $e(e,t){var n=function(n){var r=this.$V;if(!r)return;var o=r.props||O,i=r.dom;if(C(e))Oe(o,e,n);else for(var a=0;a-1&&t.options[i]&&(a=t.options[i].value),n&&b(a)&&(a=e.defaultValue),Ve(r,a)}}var Fe,Be,Re=$e("onInput",qe),He=$e("onChange");function We(e,t){Ae(e,"input",Re),t.onChange&&Ae(e,"change",He)}function qe(e,t,n){var r=e.value,o=t.value;if(b(r)){if(n){var i=e.defaultValue;b(i)||i===o||(t.defaultValue=i,t.value=i)}}else o!==r&&(t.defaultValue=r,t.value=r)}function Ge(e,t,n,r,o,i){64&e?De(r,n):256&e?Ie(r,n,o,t):128&e&&qe(r,n,o),i&&(n.$V=t)}function Ke(e,t,n){64&e?Ue(t,n):256&e?Le(t):128&e&&We(t,n)}function ze(e){return e.type&&Ee(e.type)?!b(e.checked):!b(e.value)}function Qe(e){e&&!W(e,null)&&e.current&&(e.current=null)}function Xe(e,t,n){e&&(x(e)||void 0!==e.current)&&n.push((function(){W(e,t)||void 0===e.current||(e.current=t)}))}function Je(e,t){Ye(e),j(e,t)}function Ye(e){var t,n=e.flags,r=e.children;if(481&n){t=e.ref;var o=e.props;Qe(t);var i=e.childFlags;if(!S(o))for(var a=Object.keys(o),u=0,l=a.length;u0;for(var u in a&&(i=ze(n))&&Ke(t,r,n),n)at(u,null,n[u],r,o,i,null);a&&Ge(t,e,r,n,!0,i)}function lt(e,t,n){var r=ie(e.render(t,e.state,n)),o=n;return x(e.getChildContext)&&(o=k(n,e.getChildContext())),e.$CX=o,r}function st(e,t,n,r,o,i){var a=new t(n,r),u=a.$N=Boolean(t.getDerivedStateFromProps||a.getSnapshotBeforeUpdate);if(a.$SVG=o,a.$L=i,e.children=a,a.$BS=!1,a.context=r,a.props===O&&(a.props=n),u)a.state=L(a,n,a.state);else if(x(a.componentWillMount)){a.$BR=!0,a.componentWillMount();var l=a.$PS;if(!S(l)){var s=a.state;if(S(s))a.state=l;else for(var c in l)s[c]=l[c];a.$PS=null}a.$BR=!1}return a.$LI=lt(a,n,r),a}function ct(e,t){var n=e.props||O;return 32768&e.flags?e.type.render(n,e.ref,t):e.type(n,t)}function ft(e,t,n,r,o,i){var a=e.flags|=16384;481&a?vt(e,t,n,r,o,i):4&a?yt(e,t,n,r,o,i):8&a?(gt(e,t,n,r,o,i),Ct(e,i)):512&a||16&a?ht(e,t,o):8192&a?dt(e,n,t,r,o,i):1024&a&&pt(e,n,t,o,i)}function pt(e,t,n,r,o){ft(e.children,e.ref,t,!1,null,o);var i=ne();ht(i,n,r),e.dom=i.dom}function dt(e,t,n,r,o,i){var a=e.children,u=e.childFlags;12&u&&0===a.length&&(u=e.childFlags=2,a=e.children=ne()),2===u?ft(a,n,t,r,o,i):mt(a,n,t,r,o,i)}function ht(e,t,n){var r=e.dom=document.createTextNode(e.children);S(t)||E(t,r,n)}function vt(e,t,n,r,o,i){var a=e.flags,u=e.props,l=e.className,s=e.childFlags,c=e.dom=T(e.type,r=r||(32&a)>0),f=e.children;if(b(l)||""===l||(r?c.setAttribute("class",l):c.className=l),16===s)B(c,f);else if(1!==s){var p=r&&"foreignObject"!==e.type;2===s?(16384&f.flags&&(e.children=f=te(f)),ft(f,c,n,p,null,i)):8!==s&&4!==s||mt(f,c,n,p,null,i)}S(t)||E(t,c,o),S(u)||ut(e,a,u,c,r),Xe(e.ref,c,i)}function mt(e,t,n,r,o,i){for(var a=0;ap)&&(c=V(a[p-1],!1).nextSibling)}Nt(l,s,a,u,n,r,o,c,e,i)}function At(e,t,n,r){var o=e.ref,i=t.ref,a=t.children;if(Nt(e.childFlags,t.childFlags,e.children,a,o,n,!1,null,e,r),t.dom=e.dom,o!==i&&!w(a)){var u=a.dom;P(o,u),A(i,u)}}function Et(e,t,n,r,o,i){var a,u=t.dom=e.dom,l=e.props,s=t.props,c=!1,f=!1;if(r=r||(32&o)>0,l!==s){var p=l||O;if((a=s||O)!==O)for(var d in(c=(448&o)>0)&&(f=ze(a)),a){var h=p[d],v=a[d];h!==v&&at(d,h,v,u,r,f,e)}if(p!==O)for(var m in p)b(a[m])&&!b(p[m])&&at(m,p[m],null,u,r,f,e)}var y=t.children,g=t.className;e.className!==g&&(b(g)?u.removeAttribute("class"):r?u.setAttribute("class",g):u.className=g),4096&o?Ot(u,y):Nt(e.childFlags,t.childFlags,e.children,y,u,n,r&&"foreignObject"!==t.type,null,e,i),c&&Ge(o,t,u,a,!1,f);var w=t.ref,x=e.ref;x!==w&&(Qe(x),Xe(w,u,i))}function Tt(e,t,n,r,o,i){Ye(e),mt(t,n,r,o,V(e,!0),i),j(e,n)}function Nt(e,t,n,r,o,i,a,u,l,s){switch(e){case 2:switch(t){case 2:kt(n,r,o,i,a,u,s);break;case 1:Je(n,o);break;case 16:Ye(n),B(o,r);break;default:Tt(n,r,o,i,a,s)}break;case 1:switch(t){case 2:ft(r,o,i,a,u,s);break;case 1:break;case 16:B(o,r);break;default:mt(r,o,i,a,u,s)}break;case 16:switch(t){case 16:_t(n,r,o);break;case 2:et(o),ft(r,o,i,a,u,s);break;case 1:et(o);break;default:et(o),mt(r,o,i,a,u,s)}break;default:switch(t){case 16:Ze(n),B(o,r);break;case 2:tt(o,l,n),ft(r,o,i,a,u,s);break;case 1:tt(o,l,n);break;default:var c=0|n.length,f=0|r.length;0===c?f>0&&mt(r,o,i,a,u,s):0===f?tt(o,l,n):8===t&&8===e?Lt(n,r,o,i,a,c,f,u,l,s):Mt(n,r,o,i,a,c,f,u,s)}}}function Pt(e,t,n,r,o){o.push((function(){e.componentDidUpdate(t,n,r)}))}function Ut(e,t,n,r,o,i,a,u,l){var s=e.state,c=e.props,f=Boolean(e.$N),p=x(e.shouldComponentUpdate);if(f&&(t=L(e,n,t!==s?k(s,t):t)),a||!p||p&&e.shouldComponentUpdate(n,t,o)){!f&&x(e.componentWillUpdate)&&e.componentWillUpdate(n,t,o),e.props=n,e.state=t,e.context=o;var d=null,h=lt(e,n,o);f&&x(e.getSnapshotBeforeUpdate)&&(d=e.getSnapshotBeforeUpdate(c,s)),kt(e.$LI,h,r,e.$CX,i,u,l),e.$LI=h,x(e.componentDidUpdate)&&Pt(e,c,s,d,l)}else e.props=n,e.state=t,e.context=o}function Dt(e,t,n,r,o,i,a){var u=t.children=e.children;if(S(u))return;u.$L=a;var l=t.props||O,s=t.ref,c=e.ref,f=u.state;if(!u.$N){if(x(u.componentWillReceiveProps)){if(u.$BR=!0,u.componentWillReceiveProps(l,r),u.$UN)return;u.$BR=!1}S(u.$PS)||(f=k(f,u.$PS),u.$PS=null)}Ut(u,f,l,n,r,o,!1,i,a),c!==s&&(Qe(c),Xe(s,u,a))}function Vt(e,t,n,r,o,i,a){var u=!0,l=t.props||O,s=t.ref,c=e.props,f=!b(s),p=e.children;if(f&&x(s.onComponentShouldUpdate)&&(u=s.onComponentShouldUpdate(c,l)),!1!==u){f&&x(s.onComponentWillUpdate)&&s.onComponentWillUpdate(c,l);var d=ie(ct(t,r));kt(p,d,n,r,o,i,a),t.children=d,f&&x(s.onComponentDidUpdate)&&s.onComponentDidUpdate(c,l)}else t.children=p}function jt(e,t){var n=t.children,r=t.dom=e.dom;n!==e.children&&(r.nodeValue=n)}function Mt(e,t,n,r,o,i,a,u,l){for(var s,c,f=i>a?a:i,p=0;pa)for(p=f;pp||h>d)break e;v=e[h],m=t[h]}for(v=e[p],m=t[d];v.key===m.key;){if(16384&m.flags&&(t[d]=m=te(m)),kt(v,m,n,r,o,u,s),e[p]=m,d--,h>--p||h>d)break e;v=e[p],m=t[d]}}if(h>p){if(h<=d)for(f=(c=d+1)d)for(;h<=p;)Je(e[h++],n);else It(e,t,r,i,a,p,d,h,n,o,u,l,s)}function It(e,t,n,r,o,i,a,u,l,s,c,f,p){var d,h,v,m=0,y=u,g=u,b=i-u+1,w=a-u+1,x=new Int32Array(w+1),C=b===r,S=!1,k=0,_=0;if(o<4||(b|w)<32)for(m=y;m<=i;++m)if(d=e[m],_u?S=!0:k=u,16384&h.flags&&(t[u]=h=te(h)),kt(d,h,l,n,s,c,p),++_;break}!C&&u>a&&Je(d,l)}else C||Je(d,l);else{var O={};for(m=g;m<=a;++m)O[t[m].key]=m;for(m=y;m<=i;++m)if(d=e[m],_y;)Je(e[y++],l);x[u-g]=m+1,k>u?S=!0:k=u,16384&(h=t[u]).flags&&(t[u]=h=te(h)),kt(d,h,l,n,s,c,p),++_}else C||Je(d,l);else C||Je(d,l)}if(C)tt(l,f,e),mt(t,l,n,s,c,p);else if(S){var $=Bt(x);for(u=$.length-1,m=w-1;m>=0;m--)0===x[m]?(16384&(h=t[k=m+g]).flags&&(t[k]=h=te(h)),ft(h,l,n,s,(v=k+1)=0;m--)0===x[m]&&(16384&(h=t[k=m+g]).flags&&(t[k]=h=te(h)),ft(h,l,n,s,(v=k+1)Ft&&(Ft=l,Fe=new Int32Array(l),Be=new Int32Array(l));n>1]]0&&(Be[n]=Fe[i-1]),Fe[i]=n)}i=o+1;var s=new Int32Array(i);for(a=Fe[i-1];i-- >0;)s[i]=a,a=Be[a],Fe[i]=0;return s}"undefined"!==typeof document&&window.Node&&(Node.prototype.$EV=null,Node.prototype.$V=null);var Rt=[],Ht="undefined"!==typeof Promise?Promise.resolve().then.bind(Promise.resolve()):function(e){window.setTimeout(e,0)},Wt=!1;function qt(e,t,n,r){var o=e.$PS;if(x(t)&&(t=t(o?k(e.state,o):e.state,e.props,e.context)),b(o))e.$PS=t;else for(var i in t)o[i]=t[i];if(e.$BR)x(n)&&e.$L.push(n.bind(e));else{if(!I.v&&0===Rt.length)return zt(e,r),void(x(n)&&n.call(e));if(-1===Rt.indexOf(e)&&Rt.push(e),r&&(e.$F=!0),Wt||(Wt=!0,Ht(Kt)),x(n)){var a=e.$QU;a||(a=e.$QU=[]),a.push(n)}}}function Gt(e){for(var t=e.$QU,n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length)return{done:!0};return{done:!1,value:e[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=function(e,t,n,r){this.min=e,this.max=t,this.mean=n,this.last=r},s=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 t=this.samples,n=0;nn&&(n=o),r+=o}var s=e[this._i],u=r/e.length;return new a(t,n,u,s)},e}(),u=[],l=-1,c=function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),f=function(){function e(e){var t=this;this._sync=function(){t.sync(),t._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,u.push(e),-1===l&&requestAnimationFrame((function(e){l=-1;var t=u;u=[];for(var n=0;n0?U(n.componentWillDisappear,B(e,t)):I(e,t,!1)}function H(e,t,n,r,i,o,a,s){e.componentWillMove.push({dom:r,fn:function(){4&a?n.componentWillMove(t,i,r,s):8&a&&n.onComponentWillMove(t,i,r,s)},next:o,parent:i})}function F(e,t,n,r,i){var o,a,s=t.flags;do{var u=t.flags;if(1521&u)return void(_(o)||!w(o.componentWillMove)&&!w(o.onComponentWillMove)?T(n,t.dom,r):H(i,e,o,t.dom,n,r,s,a));var l=t.children;if(4&u)o=t.children,a=t.props,t=l.$LI;else if(8&u)o=t.ref,a=t.props,t=l;else if(8192&u){if(2!==t.childFlags){for(var c=0,f=l.length;c0,l=x(s),c=O(s)&&s[0]===Y;u||l||c?(n=n||t.slice(0,o),(u||c)&&(a=se(a)),(l||c)&&(a.key=Y+o),n.push(a)):n&&n.push(a),a.flags|=65536}}r=0===(n=n||t).length?1:8}else(n=t).flags|=65536,81920&t.flags&&(n=se(t)),r=2;return e.children=n,e.childFlags=r,e}function fe(e){if(g(e)||b(e))return ie(e,null);if(m(e))return oe(e,0,null);return 16384&e.flags?se(e):e}var he="http://www.w3.org/1999/xlink",pe="http://www.w3.org/XML/1998/namespace",de={"xlink:actuate":he,"xlink:arcrole":he,"xlink:href":he,"xlink:role":he,"xlink:show":he,"xlink:title":he,"xlink:type":he,"xml:base":pe,"xml:lang":pe,"xml:space":pe};function ve(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 ye=ve(0),me=ve(null),be=ve(!0);function _e(e,t){var n=t.$EV;return n||(n=t.$EV=ve(null)),n[e]||1===++ye[e]&&(me[e]=Te(e)),n}function ge(e,t){var n=t.$EV;n&&n[e]&&(0===--ye[e]&&(document.removeEventListener(j(e),me[e]),me[e]=null),n[e]=null)}function we(e,t,n,r){if(w(n))_e(e,r)[e]=n;else if(A(n)){if(z(t,n))return;_e(e,r)[e]=n}else ge(e,r)}function Oe(e){return w(e.composedPath)?e.composedPath()[0]:e.target}function xe(e,t,n,r){var i=Oe(e);do{if(t&&i.disabled)return;var o=i.$EV;if(o){var a=o[n];if(a&&(r.dom=i,a.event?a.event(a.data,e):a(e),e.cancelBubble))return}i=i.parentNode}while(!x(i))}function Se(){this.cancelBubble=!0,this.immediatePropagationStopped||this.stopImmediatePropagation()}function Ae(){return this.defaultPrevented}function Ce(){return this.cancelBubble}function ke(e){var t={dom:document};return e.isDefaultPrevented=Ae,e.isPropagationStopped=Ce,e.stopPropagation=Se,Object.defineProperty(e,"currentTarget",{configurable:!0,get:function(){return t.dom}}),t}function je(e){return function(t){if(0!==t.button)return void t.stopPropagation();xe(t,!0,e,ke(t))}}function Ee(e){return function(t){xe(t,!1,e,ke(t))}}function Te(e){var t="onClick"===e||"onDblClick"===e?je(e):Ee(e);return document.addEventListener(j(e),t),t}function Ne(e,t){var n=document.createElement("i");return n.innerHTML=t,n.innerHTML===e.innerHTML}function Pe(e,t,n){if(e[t]){var r=e[t];r.event?r.event(r.data,n):r(n)}else{var i=t.toLowerCase();e[i]&&e[i](n)}}function Ve(e,t){var n=function(n){var r=this.$V;if(!r)return;var i=r.props||C,o=r.dom;if(O(e))Pe(i,e,n);else for(var a=0;a-1&&t.options[o]&&(a=t.options[o].value),n&&_(a)&&(a=e.defaultValue),$e(r,a)}}var Ke,qe,ze=Ve("onInput",Ye),Xe=Ve("onChange");function Je(e,t){De(e,"input",ze),t.onChange&&De(e,"change",Xe)}function Ye(e,t,n){var r=e.value,i=t.value;if(_(r)){if(n){var o=e.defaultValue;_(o)||o===i||(t.defaultValue=o,t.value=o)}}else i!==r&&(t.defaultValue=r,t.value=r)}function Qe(e,t,n,r,i,o){64&e?Be(r,n):256&e?Ge(r,n,i,t):128&e&&Ye(r,n,i),o&&(n.$V=t)}function Ze(e,t,n){64&e?Ie(t,n):256&e?We(t):128&e&&Je(t,n)}function et(e){return e.type&&Me(e.type)?!_(e.checked):!_(e.value)}function tt(e){e&&!J(e,null)&&e.current&&(e.current=null)}function nt(e,t,n){e&&(w(e)||void 0!==e.current)&&n.push((function(){J(e,t)||void 0===e.current||(e.current=t)}))}function rt(e,t,n){it(e,n),$(e,t,n)}function it(e,t){var n,r=e.flags,i=e.children;if(481&r){n=e.ref;var o=e.props;tt(n);var a=e.childFlags;if(!x(o))for(var s=Object.keys(o),u=0,l=s.length;u0?U(n.componentWillDisappear,at(t,e)):e.textContent=""}function ut(e,t,n,r){ot(n,r),8192&t.flags?$(t,e,r):st(e,n,r)}function lt(e,t,n,r,i){e.componentWillDisappear.push((function(e){4&r?t.componentWillDisappear(n,e):8&r&&t.onComponentWillDisappear(n,i,e)}))}function ct(e){var t=e.event;return function(n){t(e.data,n)}}function ft(e,t,n,r){if(A(n)){if(z(t,n))return;n=ct(n)}De(r,j(e),n)}function ht(e,t,n){if(_(t))return void n.removeAttribute("style");var r,i,o=n.style;if(O(t))return void(o.cssText=t);if(_(e)||O(e))for(r in t)i=t[r],o.setProperty(r,i);else{for(r in t)(i=t[r])!==e[r]&&o.setProperty(r,i);for(r in e)_(t[r])&&o.removeProperty(r)}}function pt(e,t,n,r,i){var o=e&&e.__html||"",a=t&&t.__html||"";o!==a&&(_(a)||Ne(r,a)||(x(n)||(12&n.childFlags?ot(n.children,i):2===n.childFlags&&it(n.children,i),n.children=null,n.childFlags=1),r.innerHTML=a))}function dt(e,t,n,r,i,o,a,s){switch(e){case"children":case"childrenType":case"className":case"defaultValue":case"key":case"multiple":case"ref":case"selectedIndex":break;case"autoFocus":r.autofocus=!!n;break;case"allowfullscreen":case"autoplay":case"capture":case"checked":case"controls":case"default":case"disabled":case"hidden":case"indeterminate":case"loop":case"muted":case"novalidate":case"open":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"selected":r[e]=!!n;break;case"defaultChecked":case"value":case"volume":if(o&&"value"===e)break;var u=_(n)?"":n;r[e]!==u&&(r[e]=u);break;case"style":ht(t,n,r);break;case"dangerouslySetInnerHTML":pt(t,n,a,r,s);break;default:be[e]?we(e,t,n,r):111===e.charCodeAt(0)&&110===e.charCodeAt(1)?ft(e,t,n,r):_(n)?r.removeAttribute(e):i&&de[e]?r.setAttributeNS(de[e],e,n):r.setAttribute(e,n)}}function vt(e,t,n,r,i,o){var a=!1,s=(448&t)>0;for(var u in s&&(a=et(n))&&Ze(t,r,n),n)dt(u,null,n[u],r,i,a,null,o);s&&Qe(t,e,r,n,!0,a)}function yt(e,t,n){var r=fe(e.render(t,e.state,n)),i=n;return w(e.getChildContext)&&(i=S(n,e.getChildContext())),e.$CX=i,r}function mt(e,t,n,r,i,o){var a=new t(n,r),s=a.$N=Boolean(t.getDerivedStateFromProps||a.getSnapshotBeforeUpdate);if(a.$SVG=i,a.$L=o,e.children=a,a.$BS=!1,a.context=r,a.props===C&&(a.props=n),s)a.state=W(a,n,a.state);else if(w(a.componentWillMount)){a.$BR=!0,a.componentWillMount();var u=a.$PS;if(!x(u)){var l=a.state;if(x(l))a.state=u;else for(var c in u)l[c]=u[c];a.$PS=null}a.$BR=!1}return a.$LI=yt(a,n,r),a}function bt(e,t){var n=e.props||C;return 32768&e.flags?e.type.render(n,e.ref,t):e.type(n,t)}function _t(e,t,n,r,i,o,a){var s=e.flags|=16384;481&s?xt(e,t,n,r,i,o,a):4&s?At(e,t,n,r,i,o,a):8&s?Ct(e,t,n,r,i,o,a):16&s?Ot(e,t,i):8192&s?wt(e,n,t,r,i,o,a):1024&s&>(e,n,t,i,o,a)}function gt(e,t,n,r,i,o){_t(e.children,e.ref,t,!1,null,i,o);var a=ue();Ot(a,n,r),e.dom=a.dom}function wt(e,t,n,r,i,o,a){var s=e.children,u=e.childFlags;12&u&&0===s.length&&(u=e.childFlags=2,s=e.children=ue()),2===u?_t(s,n,t,r,i,o,a):St(s,n,t,r,i,o,a)}function Ot(e,t,n){var r=e.dom=document.createTextNode(e.children);x(t)||T(t,r,n)}function xt(e,t,n,r,i,o,a){var s=e.flags,u=e.props,l=e.className,c=e.childFlags,f=e.dom=N(e.type,r=r||(32&s)>0),h=e.children;if(_(l)||""===l||(r?f.setAttribute("class",l):f.className=l),16===c)q(f,h);else if(1!==c){var p=r&&"foreignObject"!==e.type;2===c?(16384&h.flags&&(e.children=h=se(h)),_t(h,f,n,p,null,o,a)):8!==c&&4!==c||St(h,f,n,p,null,o,a)}x(t)||T(t,f,i),x(u)||vt(e,s,u,f,r,a),nt(e.ref,f,o)}function St(e,t,n,r,i,o,a){for(var s=0;sp)&&(f=L(s[p-1],!1).nextSibling)}Bt(l,c,s,u,n,r,i,f,e,o,a)}function Ut(e,t,n,r,i){var o=e.ref,a=t.ref,s=t.children;if(Bt(e.childFlags,t.childFlags,e.children,s,o,n,!1,null,e,r,i),t.dom=e.dom,o!==a&&!g(s)){var u=s.dom;V(o,u),E(a,u)}}function Rt(e,t,n,r,i,o,a){var s,u=t.dom=e.dom,l=e.props,c=t.props,f=!1,h=!1;if(r=r||(32&i)>0,l!==c){var p=l||C;if((s=c||C)!==C)for(var d in(f=(448&i)>0)&&(h=et(s)),s){var v=p[d],y=s[d];v!==y&&dt(d,v,y,u,r,h,e,a)}if(p!==C)for(var m in p)_(s[m])&&!_(p[m])&&dt(m,p[m],null,u,r,h,e,a)}var b=t.children,g=t.className;e.className!==g&&(_(g)?u.removeAttribute("class"):r?u.setAttribute("class",g):u.className=g),4096&i?Mt(u,b):Bt(e.childFlags,t.childFlags,e.children,b,u,n,r&&"foreignObject"!==t.type,null,e,o,a),f&&Qe(i,t,u,s,!1,h);var w=t.ref,O=e.ref;O!==w&&(tt(O),nt(w,u,o))}function It(e,t,n,r,i,o,a){it(e,a),St(t,n,r,i,L(e,!0),o,a),$(e,n,a)}function Bt(e,t,n,r,i,o,a,s,u,l,c){switch(e){case 2:switch(t){case 2:Vt(n,r,i,o,a,s,l,c);break;case 1:rt(n,i,c);break;case 16:it(n,c),q(i,r);break;default:It(n,r,i,o,a,l,c)}break;case 1:switch(t){case 2:_t(r,i,o,a,s,l,c);break;case 1:break;case 16:q(i,r);break;default:St(r,i,o,a,s,l,c)}break;case 16:switch(t){case 16:Dt(n,r,i);break;case 2:st(i,n,c),_t(r,i,o,a,s,l,c);break;case 1:st(i,n,c);break;default:st(i,n,c),St(r,i,o,a,s,l,c)}break;default:switch(t){case 16:ot(n,c),q(i,r);break;case 2:ut(i,u,n,c),_t(r,i,o,a,s,l,c);break;case 1:ut(i,u,n,c);break;default:var f=0|n.length,h=0|r.length;0===f?h>0&&St(r,i,o,a,s,l,c):0===h?ut(i,u,n,c):8===t&&8===e?qt(n,r,i,o,a,f,h,s,u,l,c):Kt(n,r,i,o,a,f,h,s,l,c)}}}function $t(e,t,n,r,i){i.push((function(){e.componentDidUpdate(t,n,r)}))}function Ht(e,t,n,r,i,o,a,s,u,l){var c=e.state,f=e.props,h=Boolean(e.$N),p=w(e.shouldComponentUpdate);if(h&&(t=W(e,n,t!==c?S(c,t):t)),a||!p||p&&e.shouldComponentUpdate(n,t,i)){!h&&w(e.componentWillUpdate)&&e.componentWillUpdate(n,t,i),e.props=n,e.state=t,e.context=i;var d=null,v=yt(e,n,i);h&&w(e.getSnapshotBeforeUpdate)&&(d=e.getSnapshotBeforeUpdate(f,c)),Vt(e.$LI,v,r,e.$CX,o,s,u,l),e.$LI=v,w(e.componentDidUpdate)&&$t(e,f,c,d,u)}else e.props=n,e.state=t,e.context=i}function Ft(e,t,n,r,i,o,a,s){var u=t.children=e.children;if(x(u))return;u.$L=a;var l=t.props||C,c=t.ref,f=e.ref,h=u.state;if(!u.$N){if(w(u.componentWillReceiveProps)){if(u.$BR=!0,u.componentWillReceiveProps(l,r),u.$UN)return;u.$BR=!1}x(u.$PS)||(h=S(h,u.$PS),u.$PS=null)}Ht(u,h,l,n,r,i,!1,o,a,s),f!==c&&(tt(f),nt(c,u,a))}function Wt(e,t,n,r,i,o,a,s){var u=!0,l=t.props||C,c=t.ref,f=e.props,h=!_(c),p=e.children;if(h&&w(c.onComponentShouldUpdate)&&(u=c.onComponentShouldUpdate(f,l)),!1!==u){h&&w(c.onComponentWillUpdate)&&c.onComponentWillUpdate(f,l);var d=fe(bt(t,r));Vt(p,d,n,r,i,o,a,s),t.children=d,h&&w(c.onComponentDidUpdate)&&c.onComponentDidUpdate(f,l)}else t.children=p}function Gt(e,t){var n=t.children,r=t.dom=e.dom;n!==e.children&&(r.nodeValue=n)}function Kt(e,t,n,r,i,o,a,s,u,l){for(var c,f,h=o>a?a:o,p=0;pa)for(p=h;pp||v>d)break e;y=e[v],m=t[v]}for(y=e[p],m=t[d];y.key===m.key;){if(16384&m.flags&&(t[d]=m=se(m)),Vt(y,m,n,r,i,s,l,c),e[p]=m,d--,v>--p||v>d)break e;y=e[p],m=t[d]}}if(v>p){if(v<=d)for(h=(f=d+1)d)for(;v<=p;)rt(e[v++],n,c);else zt(e,t,r,o,a,p,d,v,n,i,s,u,l,c)}function zt(e,t,n,r,i,o,a,s,u,l,c,f,h,p){var d,v,y=0,m=0,b=s,_=s,g=o-s+1,w=a-s+1,O=new Int32Array(w+1),x=g===r,S=!1,A=0,C=0;if(i<4||(g|w)<32)for(m=b;m<=o;++m)if(d=e[m],Cs?S=!0:A=s,16384&v.flags&&(t[s]=v=se(v)),Vt(d,v,u,n,l,c,h,p),++C;break}!x&&s>a&&rt(d,u,p)}else x||rt(d,u,p);else{var k={};for(m=_;m<=a;++m)k[t[m].key]=m;for(m=b;m<=o;++m)if(d=e[m],Cb;)rt(e[b++],u,p);O[s-_]=m+1,A>s?S=!0:A=s,16384&(v=t[s]).flags&&(t[s]=v=se(v)),Vt(d,v,u,n,l,c,h,p),++C}else x||rt(d,u,p);else x||rt(d,u,p)}if(x)ut(u,f,e,p),St(t,u,n,l,c,h,p);else if(S){var j=Jt(O);for(s=j.length-1,m=w-1;m>=0;m--)0===O[m]?(16384&(v=t[A=m+_]).flags&&(t[A]=v=se(v)),_t(v,u,n,l,(y=A+1)0&&R(p.componentWillMove)}else if(C!==w)for(m=w-1;m>=0;m--)0===O[m]&&(16384&(v=t[A=m+_]).flags&&(t[A]=v=se(v)),_t(v,u,n,l,(y=A+1)Xt&&(Xt=u,Ke=new Int32Array(u),qe=new Int32Array(u));n>1]]0&&(qe[n]=Ke[o-1]),Ke[o]=n)}o=i+1;var l=new Int32Array(o);for(a=Ke[o-1];o-- >0;)l[o]=a,a=qe[a],Ke[o]=0;return l}function Yt(e,t,n,r){var i=[],o=new k,a=t.$V;G.v=!0,_(a)?_(e)||(16384&e.flags&&(e=se(e)),_t(e,t,r,!1,null,i,o),t.$V=e,a=e):_(e)?(rt(a,t,o),t.$V=null):(16384&e.flags&&(e=se(e)),Vt(a,e,t,r,!1,null,i,o),a=t.$V=e),D(i),U(o.componentDidAppear),G.v=!1,w(n)&&n(),w(K.renderComplete)&&K.renderComplete(a,t)}function Qt(e,t,n,r){void 0===n&&(n=null),void 0===r&&(r=C),Yt(e,t,n,r)}"undefined"!==typeof document&&window.Node&&(Node.prototype.$EV=null,Node.prototype.$V=null);var Zt=[],en="undefined"!==typeof Promise?Promise.resolve().then.bind(Promise.resolve()):function(e){window.setTimeout(e,0)},tn=!1;function nn(e,t,n,r){var i=e.$PS;if(w(t)&&(t=t(i?S(e.state,i):e.state,e.props,e.context)),_(i))e.$PS=t;else for(var o in t)i[o]=t[o];if(e.$BR)w(n)&&e.$L.push(n.bind(e));else{if(!G.v&&0===Zt.length)return an(e,r),void(w(n)&&n.call(e));if(-1===Zt.indexOf(e)&&Zt.push(e),r&&(e.$F=!0),tn||(tn=!0,en(on)),w(n)){var a=e.$QU;a||(a=e.$QU=[]),a.push(n)}}}function rn(e){for(var t=e.$QU,n=0;n1?t-1:0),r=1;re.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length)return{done:!0};return{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var qn=Symbol("mobx-stored-annotations");function zn(e){return Object.assign((function(t,n){Xn(t,n,e)}),e)}function Xn(e,t,n){Ln(e,qn)||kn(e,qn,Bn({},e[qn])),rr(n)||(e[qn][t]=n)}var Jn=Symbol("mobx administration"),Yn=function(){function e(e){void 0===e&&(e="Atom"),this.name_=void 0,this.isPendingUnobservation_=!1,this.isBeingObserved_=!1,this.observers_=new Set,this.diffValue_=0,this.lastAccessedBy_=0,this.lowestObserverState_=ei.NOT_TRACKING_,this.onBOL=void 0,this.onBUOL=void 0,this.name_=e}var t=e.prototype;return t.onBO=function(){this.onBOL&&this.onBOL.forEach((function(e){return e()}))},t.onBUO=function(){this.onBUOL&&this.onBUOL.forEach((function(e){return e()}))},t.reportObserved=function(){return Si(this)},t.reportChanged=function(){Oi(),Ai(this),xi()},t.toString=function(){return this.name_},e}(),Qn=En("Atom",Yn);function Zn(e,t,n){void 0===t&&(t=wn),void 0===n&&(n=wn);var r=new Yn(e);return t!==wn&&Ki("onBO",r,t,void 0),n!==wn&&Gi(r,n),r}var er={identity:function(e,t){return e===t},structural:function(e,t){return ua(e,t)},default:function(e,t){if(Object.is)return Object.is(e,t);return e===t?0!==e||1/e===1/t:e!==e&&t!==t},shallow:function(e,t){return ua(e,t,1)}};function tr(e,t,n){if(no(e))return e;if(Array.isArray(e))return Mr.array(e,{name:n});if(An(e))return Mr.object(e,void 0,{name:n});if(Tn(e))return Mr.map(e,{name:n});if(Nn(e))return Mr.set(e,{name:n});if("function"===typeof e&&!$i(e)&&!eo(e))return Cn(e)?Qi(e):Bi(n,e);return e}function nr(e){return e}function rr(e){return"override"===e.annotationType_}function ir(e,t){return{annotationType_:e,options_:t,make_:or,extend_:ar}}function or(e,t,n,r){var i;if(null!=(i=this.options_)&&i.bound)return null===this.extend_(e,t,n,!1)?0:1;if(r===e.target_)return null===this.extend_(e,t,n,!1)?0:2;if($i(n.value))return 1;var o=sr(e,this,t,n,!1);return pn(r,t,o),2}function ar(e,t,n,r){var i=sr(e,this,t,n);return e.defineProperty_(t,i,r)}function sr(e,t,n,r,i){var o,a,s,u,l,c,f,h;void 0===i&&(i=bi.safeDescriptors),h=r,t.annotationType_,h.value;var p,d=r.value;return null!=(o=t.options_)&&o.bound&&(d=d.bind(null!=(p=e.proxy_)?p:e.target_)),{value:Gr(null!=(a=null==(s=t.options_)?void 0:s.name)?a:n.toString(),d,null!=(u=null==(l=t.options_)?void 0:l.autoAction)&&u,null!=(c=t.options_)&&c.bound?null!=(f=e.proxy_)?f:e.target_:void 0),configurable:!i||e.isPlainObject_,enumerable:!1,writable:!i}}function ur(e,t){return{annotationType_:e,options_:t,make_:lr,extend_:cr}}function lr(e,t,n,r){var i;if(r===e.target_)return null===this.extend_(e,t,n,!1)?0:2;if(null!=(i=this.options_)&&i.bound&&(!Ln(e.target_,t)||!eo(e.target_[t]))&&null===this.extend_(e,t,n,!1))return 0;if(eo(n.value))return 1;var o=fr(e,this,0,n,!1,!1);return pn(r,t,o),2}function cr(e,t,n,r){var i,o=fr(e,this,0,n,null==(i=this.options_)?void 0:i.bound);return e.defineProperty_(t,o,r)}function fr(e,t,n,r,i,o){var a;void 0===o&&(o=bi.safeDescriptors),a=r,t.annotationType_,a.value;var s,u=r.value;return eo(u)||(u=Qi(u)),i&&((u=u.bind(null!=(s=e.proxy_)?s:e.target_)).isMobXFlow=!0),{value:u,configurable:!o||e.isPlainObject_,enumerable:!1,writable:!o}}function hr(e,t){return{annotationType_:e,options_:t,make_:pr,extend_:dr}}function pr(e,t,n){return null===this.extend_(e,t,n,!1)?0:1}function dr(e,t,n,r){return i=n,this.annotationType_,i.get,e.defineComputedProperty_(t,Bn({},this.options_,{get:n.get,set:n.set}),r);var i}function vr(e,t){return{annotationType_:e,options_:t,make_:yr,extend_:mr}}function yr(e,t,n){return null===this.extend_(e,t,n,!1)?0:1}function mr(e,t,n,r){var i,o;return this.annotationType_,e.defineObservableProperty_(t,n.value,null!=(i=null==(o=this.options_)?void 0:o.enhancer)?i:tr,r)}var br=_r();function _r(e){return{annotationType_:"true",options_:e,make_:gr,extend_:wr}}function gr(e,t,n,r){var i,o;if(n.get)return Ir.make_(e,t,n,r);if(n.set){var a=Gr(t.toString(),n.set);if(r===e.target_)return null===e.defineProperty_(t,{configurable:!bi.safeDescriptors||e.isPlainObject_,set:a})?0:2;return pn(r,t,{configurable:!0,set:a}),2}if(r!==e.target_&&"function"===typeof n.value){var s,u;if(Cn(n.value))return(null!=(u=this.options_)&&u.autoBind?Qi.bound:Qi).make_(e,t,n,r);return(null!=(s=this.options_)&&s.autoBind?Bi.bound:Bi).make_(e,t,n,r)}var l,c=!1===(null==(i=this.options_)?void 0:i.deep)?Mr.ref:Mr;return"function"===typeof n.value&&null!=(o=this.options_)&&o.autoBind&&(n.value=n.value.bind(null!=(l=e.proxy_)?l:e.target_)),c.make_(e,t,n,r)}function wr(e,t,n,r){var i,o,a;if(n.get)return Ir.extend_(e,t,n,r);if(n.set)return e.defineProperty_(t,{configurable:!bi.safeDescriptors||e.isPlainObject_,set:Gr(t.toString(),n.set)},r);return"function"===typeof n.value&&null!=(i=this.options_)&&i.autoBind&&(n.value=n.value.bind(null!=(a=e.proxy_)?a:e.target_)),(!1===(null==(o=this.options_)?void 0:o.deep)?Mr.ref:Mr).extend_(e,t,n,r)}var Or={deep:!0,name:void 0,defaultDecorator:void 0,proxy:!0};function xr(e){return e||Or}Object.freeze(Or);var Sr=vr("observable"),Ar=vr("observable.ref",{enhancer:nr}),Cr=vr("observable.shallow",{enhancer:function(e,t,n){if(void 0===e||null===e)return e;if(qo(e)||Eo(e)||Lo(e)||Bo(e))return e;if(Array.isArray(e))return Mr.array(e,{name:n,deep:!1});if(An(e))return Mr.object(e,void 0,{name:n,deep:!1});if(Tn(e))return Mr.map(e,{name:n,deep:!1});if(Nn(e))return Mr.set(e,{name:n,deep:!1})}}),kr=vr("observable.struct",{enhancer:function(e,t){if(ua(e,t))return t;return e}}),jr=zn(Sr);function Er(e){return!0===e.deep?tr:!1===e.deep?nr:(t=e.defaultDecorator)&&null!=(n=null==(r=t.options_)?void 0:r.enhancer)?n:tr;var t,n,r}function Tr(e){var t;return e?null!=(t=e.defaultDecorator)?t:_r(e):void 0}function Nr(e,t,n){if(xn(t))return void Xn(e,t,Sr);if(no(e))return e;if(An(e))return Mr.object(e,t,n);if(Array.isArray(e))return Mr.array(e,t);if(Tn(e))return Mr.map(e,t);if(Nn(e))return Mr.set(e,t);if("object"===typeof e&&null!==e)return e;return Mr.box(e,t)}Object.assign(Nr,jr);var Pr,Vr,Dr={box:function(e,t){var n=xr(t);return new Zr(e,Er(n),n.name,!0,n.equals)},array:function(e,t){var n=xr(t);return(!1===bi.useProxies||!1===n.proxy?ra:go)(e,Er(n),n.name)},map:function(e,t){var n=xr(t);return new Mo(e,Er(n),n.name)},set:function(e,t){var n=xr(t);return new Io(e,Er(n),n.name)},object:function(e,t,n){return qi(!1===bi.useProxies||!1===(null==n?void 0:n.proxy)?Wo({},n):uo({},n),e,t)},ref:zn(Ar),shallow:zn(Cr),deep:jr,struct:zn(kr)},Mr=fn(Nr,Dr),Lr="computed",Ur=hr(Lr),Rr=hr("computed.struct",{equals:er.structural}),Ir=function(e,t){if(xn(t))return Xn(e,t,Ur);if(An(e))return zn(hr(Lr,e));var n=An(t)?t:{};return n.get=e,n.name||(n.name=e.name||""),new ni(n)};Object.assign(Ir,Ur),Ir.struct=zn(Rr);var Br,$r=0,Hr=1,Fr=null!=(Pr=null==(Vr=hn((function(){}),"name"))?void 0:Vr.configurable)&&Pr,Wr={value:"action",configurable:!0,writable:!1,enumerable:!1};function Gr(e,t,n,r){function i(){return Kr(0,n,t,r||this,arguments)}return void 0===n&&(n=!1),i.isMobxAction=!0,Fr&&(Wr.value=e,Object.defineProperty(i,"name",Wr)),i}function Kr(e,t,n,r,i){var o=qr(0,t);try{return n.apply(r,i)}catch(e){throw o.error_=e,e}finally{zr(o)}}function qr(e,t,n,r){var i=bi.trackingDerivation,o=!t||!i;Oi();var a=bi.allowStateChanges;o&&(fi(),a=Jr(!0));var s={runAsAction_:o,prevDerivation_:i,prevAllowStateChanges_:a,prevAllowStateReads_:pi(!0),notifySpy_:!1,startTime_:0,actionId_:Hr++,parentActionId_:$r};return $r=s.actionId_,s}function zr(e){$r!==e.actionId_&&un(30),$r=e.parentActionId_,void 0!==e.error_&&(bi.suppressReactionErrors=!0),Yr(e.prevAllowStateChanges_),di(e.prevAllowStateReads_),xi(),e.runAsAction_&&hi(e.prevDerivation_),bi.suppressReactionErrors=!1}function Xr(e,t){var n=Jr(e);try{return t()}finally{Yr(n)}}function Jr(e){var t=bi.allowStateChanges;return bi.allowStateChanges=e,t}function Yr(e){bi.allowStateChanges=e}Br=Symbol.toPrimitive;var Qr,Zr=function(e){function t(t,n,r,i,o){var a;return void 0===r&&(r="ObservableValue"),void 0===o&&(o=er.default),(a=e.call(this,r)||this).enhancer=void 0,a.name_=void 0,a.equals=void 0,a.hasUnreportedChange_=!1,a.interceptors_=void 0,a.changeListeners_=void 0,a.value_=void 0,a.dehancer=void 0,a.enhancer=n,a.name_=r,a.equals=o,a.value_=n(t,void 0,r),a}$n(t,e);var n=t.prototype;return n.dehanceValue=function(e){if(void 0!==this.dehancer)return this.dehancer(e);return e},n.set=function(e){this.value_,(e=this.prepareNewValue_(e))!==bi.UNCHANGED&&this.setNewValue_(e)},n.prepareNewValue_=function(e){if(lo(this)){var t=fo(this,{object:this,type:mo,newValue:e});if(!t)return bi.UNCHANGED;e=t.newValue}return e=this.enhancer(e,this.value_,this.name_),this.equals(this.value_,e)?bi.UNCHANGED:e},n.setNewValue_=function(e){var t=this.value_;this.value_=e,this.reportChanged(),ho(this)&&vo(this,{type:mo,object:this,newValue:e,oldValue:t})},n.get=function(){return this.reportObserved(),this.dehanceValue(this.value_)},n.intercept_=function(e){return co(this,e)},n.observe_=function(e,t){return t&&e({observableKind:"value",debugObjectName:this.name_,object:this,type:mo,newValue:this.value_,oldValue:void 0}),po(this,e)},n.raw=function(){return this.value_},n.toJSON=function(){return this.get()},n.toString=function(){return this.name_+"["+this.value_+"]"},n.valueOf=function(){return Mn(this.get())},n[Br]=function(){return this.valueOf()},t}(Yn);Qr=Symbol.toPrimitive;var ei,ti,ni=function(){function e(e){this.dependenciesState_=ei.NOT_TRACKING_,this.observing_=[],this.newObserving_=null,this.isBeingObserved_=!1,this.isPendingUnobservation_=!1,this.observers_=new Set,this.diffValue_=0,this.runId_=0,this.lastAccessedBy_=0,this.lowestObserverState_=ei.UP_TO_DATE_,this.unboundDepsCount_=0,this.value_=new ii(null),this.name_=void 0,this.triggeredBy_=void 0,this.isComputing_=!1,this.isRunningSetter_=!1,this.derivation=void 0,this.setter_=void 0,this.isTracing_=ti.NONE,this.scope_=void 0,this.equals_=void 0,this.requiresReaction_=void 0,this.keepAlive_=void 0,this.onBOL=void 0,this.onBUOL=void 0,e.get||un(31),this.derivation=e.get,this.name_=e.name||"ComputedValue",e.set&&(this.setter_=Gr("ComputedValue-setter",e.set)),this.equals_=e.equals||(e.compareStructural||e.struct?er.structural:er.default),this.scope_=e.context,this.requiresReaction_=e.requiresReaction,this.keepAlive_=!!e.keepAlive}var t=e.prototype;return t.onBecomeStale_=function(){ki(this)},t.onBO=function(){this.onBOL&&this.onBOL.forEach((function(e){return e()}))},t.onBUO=function(){this.onBUOL&&this.onBUOL.forEach((function(e){return e()}))},t.get=function(){if(this.isComputing_&&un(32,this.name_,this.derivation),0!==bi.inBatch||0!==this.observers_.size||this.keepAlive_){if(Si(this),ai(this)){var e=bi.trackingContext;this.keepAlive_&&!e&&(bi.trackingContext=this),this.trackAndCompute()&&Ci(this),bi.trackingContext=e}}else ai(this)&&(this.warnAboutUntrackedRead_(),Oi(),this.value_=this.computeValue_(!1),xi());var t=this.value_;if(oi(t))throw t.cause;return t},t.set=function(e){if(this.setter_){this.isRunningSetter_&&un(33,this.name_),this.isRunningSetter_=!0;try{this.setter_.call(this.scope_,e)}finally{this.isRunningSetter_=!1}}else un(34,this.name_)},t.trackAndCompute=function(){var e=this.value_,t=this.dependenciesState_===ei.NOT_TRACKING_,n=this.computeValue_(!0),r=t||oi(e)||oi(n)||!this.equals_(e,n);return r&&(this.value_=n),r},t.computeValue_=function(e){this.isComputing_=!0;var t,n=Jr(!1);if(e)t=si(this,this.derivation,this.scope_);else if(!0===bi.disableErrorBoundaries)t=this.derivation.call(this.scope_);else try{t=this.derivation.call(this.scope_)}catch(e){t=new ii(e)}return Yr(n),this.isComputing_=!1,t},t.suspend_=function(){this.keepAlive_||(li(this),this.value_=void 0)},t.observe_=function(e,t){var n=this,r=!0,i=void 0;return Hi((function(){var o=n.get();if(!r||t){var a=fi();e({observableKind:"computed",debugObjectName:n.name_,type:mo,object:n,newValue:o,oldValue:i}),hi(a)}r=!1,i=o}))},t.warnAboutUntrackedRead_=function(){return},t.toString=function(){return this.name_+"["+this.derivation.toString()+"]"},t.valueOf=function(){return Mn(this.get())},t[Qr]=function(){return this.valueOf()},e}(),ri=En("ComputedValue",ni);!function(e){e[e.NOT_TRACKING_=-1]="NOT_TRACKING_",e[e.UP_TO_DATE_=0]="UP_TO_DATE_",e[e.POSSIBLY_STALE_=1]="POSSIBLY_STALE_",e[e.STALE_=2]="STALE_"}(ei||(ei={})),function(e){e[e.NONE=0]="NONE",e[e.LOG=1]="LOG",e[e.BREAK=2]="BREAK"}(ti||(ti={}));var ii=function(e){this.cause=void 0,this.cause=e};function oi(e){return e instanceof ii}function ai(e){switch(e.dependenciesState_){case ei.UP_TO_DATE_:return!1;case ei.NOT_TRACKING_:case ei.STALE_:return!0;case ei.POSSIBLY_STALE_:for(var t=pi(!0),n=fi(),r=e.observing_,i=r.length,o=0;or&&(r=s.dependenciesState_)}for(n.length=i,e.newObserving_=null,o=t.length;o--;){var u=t[o];0===u.diffValue_&&gi(u,e),u.diffValue_=0}for(;i--;){var l=n[i];1===l.diffValue_&&(l.diffValue_=0,_i(l,e))}r!==ei.UP_TO_DATE_&&(e.dependenciesState_=r,e.onBecomeStale_())}function li(e){var t=e.observing_;e.observing_=[];for(var n=t.length;n--;)gi(t[n],e);e.dependenciesState_=ei.NOT_TRACKING_}function ci(e){var t=fi();try{return e()}finally{hi(t)}}function fi(){var e=bi.trackingDerivation;return bi.trackingDerivation=null,e}function hi(e){bi.trackingDerivation=e}function pi(e){var t=bi.allowStateReads;return bi.allowStateReads=e,t}function di(e){bi.allowStateReads=e}function vi(e){if(e.dependenciesState_===ei.UP_TO_DATE_)return;e.dependenciesState_=ei.UP_TO_DATE_;for(var t=e.observing_,n=t.length;n--;)t[n].lowestObserverState_=ei.UP_TO_DATE_}var yi=function(){this.version=6,this.UNCHANGED={},this.trackingDerivation=null,this.trackingContext=null,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.allowStateChanges=!1,this.allowStateReads=!0,this.enforceActions=!0,this.spyListeners=[],this.globalReactionErrorHandlers=[],this.computedRequiresReaction=!1,this.reactionRequiresObservable=!1,this.observableRequiresReaction=!1,this.disableErrorBoundaries=!1,this.suppressReactionErrors=!1,this.useProxies=!0,this.verifyProxies=!1,this.safeDescriptors=!0},mi=!0,bi=function(){var e=cn();return e.__mobxInstanceCount>0&&!e.__mobxGlobals&&(mi=!1),e.__mobxGlobals&&e.__mobxGlobals.version!==(new yi).version&&(mi=!1),mi?e.__mobxGlobals?(e.__mobxInstanceCount+=1,e.__mobxGlobals.UNCHANGED||(e.__mobxGlobals.UNCHANGED={}),e.__mobxGlobals):(e.__mobxInstanceCount=1,e.__mobxGlobals=new yi):(setTimeout((function(){un(35)}),1),new yi)}();function _i(e,t){e.observers_.add(t),e.lowestObserverState_>t.dependenciesState_&&(e.lowestObserverState_=t.dependenciesState_)}function gi(e,t){e.observers_.delete(t),0===e.observers_.size&&wi(e)}function wi(e){!1===e.isPendingUnobservation_&&(e.isPendingUnobservation_=!0,bi.pendingUnobservations.push(e))}function Oi(){bi.inBatch++}function xi(){if(0===--bi.inBatch){Ei();for(var e=bi.pendingUnobservations,t=0;t0&&wi(e),!1}function Ai(e){if(e.lowestObserverState_===ei.STALE_)return;e.lowestObserverState_=ei.STALE_,e.observers_.forEach((function(e){e.dependenciesState_===ei.UP_TO_DATE_&&e.onBecomeStale_(),e.dependenciesState_=ei.STALE_}))}function Ci(e){if(e.lowestObserverState_===ei.STALE_)return;e.lowestObserverState_=ei.STALE_,e.observers_.forEach((function(t){t.dependenciesState_===ei.POSSIBLY_STALE_?t.dependenciesState_=ei.STALE_:t.dependenciesState_===ei.UP_TO_DATE_&&(e.lowestObserverState_=ei.UP_TO_DATE_)}))}function ki(e){if(e.lowestObserverState_!==ei.UP_TO_DATE_)return;e.lowestObserverState_=ei.POSSIBLY_STALE_,e.observers_.forEach((function(e){e.dependenciesState_===ei.UP_TO_DATE_&&(e.dependenciesState_=ei.POSSIBLY_STALE_,e.onBecomeStale_())}))}var ji=function(){function e(e,t,n,r){void 0===e&&(e="Reaction"),this.name_=void 0,this.onInvalidate_=void 0,this.errorHandler_=void 0,this.requiresObservable_=void 0,this.observing_=[],this.newObserving_=[],this.dependenciesState_=ei.NOT_TRACKING_,this.diffValue_=0,this.runId_=0,this.unboundDepsCount_=0,this.isDisposed_=!1,this.isScheduled_=!1,this.isTrackPending_=!1,this.isRunning_=!1,this.isTracing_=ti.NONE,this.name_=e,this.onInvalidate_=t,this.errorHandler_=n,this.requiresObservable_=r}var t=e.prototype;return t.onBecomeStale_=function(){this.schedule_()},t.schedule_=function(){this.isScheduled_||(this.isScheduled_=!0,bi.pendingReactions.push(this),Ei())},t.isScheduled=function(){return this.isScheduled_},t.runReaction_=function(){if(!this.isDisposed_){Oi(),this.isScheduled_=!1;var e=bi.trackingContext;if(bi.trackingContext=this,ai(this)){this.isTrackPending_=!0;try{this.onInvalidate_()}catch(e){this.reportExceptionInDerivation_(e)}}bi.trackingContext=e,xi()}},t.track=function(e){if(this.isDisposed_)return;Oi(),this.isRunning_=!0;var t=bi.trackingContext;bi.trackingContext=this;var n=si(this,e,void 0);bi.trackingContext=t,this.isRunning_=!1,this.isTrackPending_=!1,this.isDisposed_&&li(this),oi(n)&&this.reportExceptionInDerivation_(n.cause),xi()},t.reportExceptionInDerivation_=function(e){var t=this;if(this.errorHandler_)return void this.errorHandler_(e,this);if(bi.disableErrorBoundaries)throw e;var n="[mobx] uncaught error in '"+this+"'";bi.suppressReactionErrors||console.error(n,e),bi.globalReactionErrorHandlers.forEach((function(n){return n(e,t)}))},t.dispose=function(){this.isDisposed_||(this.isDisposed_=!0,this.isRunning_||(Oi(),li(this),xi()))},t.getDisposer_=function(){var e=this.dispose.bind(this);return e[Jn]=this,e},t.toString=function(){return"Reaction["+this.name_+"]"},t.trace=function(e){void 0===e&&(e=!1),ro(this,e)},e}();function Ei(){if(bi.inBatch>0||bi.isRunningReactions)return;Ti()}function Ti(){bi.isRunningReactions=!0;for(var e=bi.pendingReactions,t=0;e.length>0;){100===++t&&(console.error("[mobx] cycle in reaction: "+e[0]),e.splice(0));for(var n=e.splice(0),r=0,i=n.length;r",t,e);if(On(n))return Gr(t,n,e);if(xn(n))return Xn(t,n,e?Li:Di);if(xn(t))return zn(ir(e?Vi:Pi,{name:t,autoAction:e}))}}var Ii=Ri(!1);Object.assign(Ii,Di);var Bi=Ri(!0);function $i(e){return On(e)&&!0===e.isMobxAction}function Hi(e,t){var n,r;void 0===t&&(t=yn);var i,o=null!=(n=null==(r=t)?void 0:r.name)?n:"Autorun";if(t.scheduler||t.delay){var a=Wi(t),s=!1;i=new ji(o,(function(){s||(s=!0,a((function(){s=!1,i.isDisposed_||i.track(u)})))}),t.onError,t.requiresObservable)}else i=new ji(o,(function(){this.track(u)}),t.onError,t.requiresObservable);function u(){e(i)}return i.schedule_(),i.getDisposer_()}Object.assign(Bi,Li),Ii.bound=zn(Mi),Bi.bound=zn(Ui);var Fi=function(e){return e()};function Wi(e){return e.scheduler?e.scheduler:e.delay?function(t){return setTimeout(t,e.delay)}:Fi}function Gi(e,t,n){return Ki("onBUO",e,t,n)}function Ki(e,t,n,r){var i="function"===typeof r?ia(t,n):ia(t),o=On(r)?r:n,a=e+"L";return i[a]?i[a].add(o):i[a]=new Set([o]),function(){var e=i[a];e&&(e.delete(o),0===e.size&&delete i[a])}}function qi(e,t,n,r){var i=Un(t),o=Wo(e,r)[Jn];Oi();try{Dn(i).forEach((function(e){o.extend_(e,i[e],!n||!(e in n)||n[e])}))}finally{xi()}return e}var zi=0;function Xi(){this.message="FLOW_CANCELLED"}Xi.prototype=Object.create(Error.prototype);var Ji=ur("flow"),Yi=ur("flow.bound",{bound:!0}),Qi=Object.assign((function(e,t){if(xn(t))return Xn(e,t,Ji);var n=e,r=n.name||"",i=function(){var e,t=this,i=arguments,o=++zi,a=Ii(r+" - runid: "+o+" - init",n).apply(t,i),s=void 0,u=new Promise((function(t,n){var i=0;function u(e){var t;s=void 0;try{t=Ii(r+" - runid: "+o+" - yield "+i++,a.next).call(a,e)}catch(e){return n(e)}c(t)}function l(e){var t;s=void 0;try{t=Ii(r+" - runid: "+o+" - yield "+i++,a.throw).call(a,e)}catch(e){return n(e)}c(t)}function c(e){if(On(null==e?void 0:e.then))return void e.then(c,n);if(e.done)return t(e.value);return(s=Promise.resolve(e.value)).then(u,l)}e=n,u(void 0)}));return u.cancel=Ii(r+" - runid: "+o+" - cancel",(function(){try{s&&Zi(s);var t=a.return(void 0),n=Promise.resolve(t.value);n.then(wn,wn),Zi(n),e(new Xi)}catch(t){e(t)}})),u};return i.isMobXFlow=!0,i}),Ji);function Zi(e){On(e.cancel)&&e.cancel()}function eo(e){return!0===(null==e?void 0:e.isMobXFlow)}function to(e,t){if(!e)return!1;if(void 0!==t){if(qo(e))return e[Jn].values_.has(t);return!1}return qo(e)||!!e[Jn]||Qn(e)||Ni(e)||ri(e)}function no(e){return to(e)}function ro(){un("trace() is not available in production builds");for(var e=!1,t=arguments.length,n=new Array(t),r=0;r0}function co(e,t){var n=e.interceptors_||(e.interceptors_=[]);return n.push(t),gn((function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)}))}function fo(e,t){var n=fi();try{for(var r=[].concat(e.interceptors_||[]),i=0,o=r.length;i0}function po(e,t){var n=e.changeListeners_||(e.changeListeners_=[]);return n.push(t),gn((function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)}))}function vo(e,t){var n=fi(),r=e.changeListeners_;if(!r)return;for(var i=0,o=(r=r.slice()).length;i0)return e.map(this.dehancer);return e},t.intercept_=function(e){return co(this,e)},t.observe_=function(e,t){return void 0===t&&(t=!1),t&&e({observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:"splice",index:0,added:this.values_.slice(),addedCount:this.values_.length,removed:[],removedCount:0}),po(this,e)},t.getArrayLength_=function(){return this.atom_.reportObserved(),this.values_.length},t.setArrayLength_=function(e){("number"!==typeof e||isNaN(e)||e<0)&&un("Out of range: "+e);var t=this.values_.length;if(e===t)return;if(e>t){for(var n=new Array(e-t),r=0;r0&&na(e+t+1)},t.spliceWithArray_=function(e,t,n){var r=this;this.atom_;var i=this.values_.length;if(void 0===e?e=0:e>i?e=i:e<0&&(e=Math.max(0,i+e)),t=1===arguments.length?i-e:void 0===t||null===t?0:Math.max(0,Math.min(t,i-e)),void 0===n&&(n=vn),lo(this)){var o=fo(this,{object:this.proxy_,type:yo,index:e,removedCount:t,added:n});if(!o)return vn;t=o.removedCount,n=o.added}if(n=0===n.length?n:n.map((function(e){return r.enhancer_(e,void 0)})),this.legacyMode_){var a=n.length-t;this.updateArrayLength_(i,a)}var s=this.spliceItemsIntoValues_(e,t,n);return 0===t&&0===n.length||this.notifyArraySplice_(e,n,s),this.dehanceValues_(s)},t.spliceItemsIntoValues_=function(e,t,n){var r;if(n.length<1e4)return(r=this.values_).splice.apply(r,[e,t].concat(n));var i=this.values_.slice(e,e+t),o=this.values_.slice(e+t);this.values_.length+=n.length-t;for(var a=0;a2?n-2:0),i=2;i-1)return this.splice(n,1),!0;return!1}};function Oo(e,t){"function"===typeof Array.prototype[e]&&(wo[e]=t(e))}function xo(e){return function(){var t=this[Jn];t.atom_.reportObserved();var n=t.dehanceValues_(t.values_);return n[e].apply(n,arguments)}}function So(e){return function(t,n){var r=this,i=this[Jn];return i.atom_.reportObserved(),i.dehanceValues_(i.values_)[e]((function(e,i){return t.call(n,e,i,r)}))}}function Ao(e){return function(){var t=this,n=this[Jn];n.atom_.reportObserved();var r=n.dehanceValues_(n.values_),i=arguments[0];return arguments[0]=function(e,n,r){return i(e,n,r,t)},r[e].apply(r,arguments)}}Oo("concat",xo),Oo("flat",xo),Oo("includes",xo),Oo("indexOf",xo),Oo("join",xo),Oo("lastIndexOf",xo),Oo("slice",xo),Oo("toString",xo),Oo("toLocaleString",xo),Oo("every",So),Oo("filter",So),Oo("find",So),Oo("findIndex",So),Oo("flatMap",So),Oo("forEach",So),Oo("map",So),Oo("some",So),Oo("reduce",Ao),Oo("reduceRight",Ao);var Co,ko,jo=En("ObservableArrayAdministration",_o);function Eo(e){return Sn(e)&&jo(e[Jn])}var To={},No="add",Po="delete";Co=Symbol.iterator,ko=Symbol.toStringTag;var Vo,Do,Mo=function(){function e(e,t,n){var r=this;void 0===t&&(t=tr),void 0===n&&(n="ObservableMap"),this.enhancer_=void 0,this.name_=void 0,this[Jn]=To,this.data_=void 0,this.hasMap_=void 0,this.keysAtom_=void 0,this.interceptors_=void 0,this.changeListeners_=void 0,this.dehancer=void 0,this.enhancer_=t,this.name_=n,On(Map)||un(18),this.keysAtom_=Zn("ObservableMap.keys()"),this.data_=new Map,this.hasMap_=new Map,Xr(!0,(function(){r.merge(e)}))}var t=e.prototype;return t.has_=function(e){return this.data_.has(e)},t.has=function(e){var t=this;if(!bi.trackingDerivation)return this.has_(e);var n=this.hasMap_.get(e);if(!n){var r=n=new Zr(this.has_(e),nr,"ObservableMap.key?",!1);this.hasMap_.set(e,r),Gi(r,(function(){return t.hasMap_.delete(e)}))}return n.get()},t.set=function(e,t){var n=this.has_(e);if(lo(this)){var r=fo(this,{type:n?mo:No,object:this,newValue:t,name:e});if(!r)return this;t=r.newValue}return n?this.updateValue_(e,t):this.addValue_(e,t),this},t.delete=function(e){var t=this;if(this.keysAtom_,lo(this)&&!fo(this,{type:Po,object:this,name:e}))return!1;if(this.has_(e)){var n=ho(this),r=n?{observableKind:"map",debugObjectName:this.name_,type:Po,object:this,oldValue:this.data_.get(e).value_,name:e}:null;return oo((function(){var n;t.keysAtom_.reportChanged(),null==(n=t.hasMap_.get(e))||n.setNewValue_(!1),t.data_.get(e).setNewValue_(void 0),t.data_.delete(e)})),n&&vo(this,r),!0}return!1},t.updateValue_=function(e,t){var n=this.data_.get(e);if((t=n.prepareNewValue_(t))!==bi.UNCHANGED){var r=ho(this),i=r?{observableKind:"map",debugObjectName:this.name_,type:mo,object:this,oldValue:n.value_,name:e,newValue:t}:null;n.setNewValue_(t),r&&vo(this,i)}},t.addValue_=function(e,t){var n=this;this.keysAtom_,oo((function(){var r,i=new Zr(t,n.enhancer_,"ObservableMap.key",!1);n.data_.set(e,i),t=i.value_,null==(r=n.hasMap_.get(e))||r.setNewValue_(!0),n.keysAtom_.reportChanged()}));var r=ho(this),i=r?{observableKind:"map",debugObjectName:this.name_,type:No,object:this,name:e,newValue:t}:null;r&&vo(this,i)},t.get=function(e){if(this.has(e))return this.dehanceValue_(this.data_.get(e).get());return this.dehanceValue_(void 0)},t.dehanceValue_=function(e){if(void 0!==this.dehancer)return this.dehancer(e);return e},t.keys=function(){return this.keysAtom_.reportObserved(),this.data_.keys()},t.values=function(){var e=this,t=this.keys();return fa({next:function(){var n=t.next(),r=n.done,i=n.value;return{done:r,value:r?void 0:e.get(i)}}})},t.entries=function(){var e=this,t=this.keys();return fa({next:function(){var n=t.next(),r=n.done,i=n.value;return{done:r,value:r?void 0:[i,e.get(i)]}}})},t[Co]=function(){return this.entries()},t.forEach=function(e,t){for(var n,r=Kn(this);!(n=r()).done;){var i=n.value,o=i[0],a=i[1];e.call(t,a,o,this)}},t.merge=function(e){var t=this;return Lo(e)&&(e=new Map(e)),oo((function(){An(e)?Vn(e).forEach((function(n){return t.set(n,e[n])})):Array.isArray(e)?e.forEach((function(e){var n=e[0],r=e[1];return t.set(n,r)})):Tn(e)?(e.constructor!==Map&&un(19,e),e.forEach((function(e,n){return t.set(n,e)}))):null!==e&&void 0!==e&&un(20,e)})),this},t.clear=function(){var e=this;oo((function(){ci((function(){for(var t,n=Kn(e.keys());!(t=n()).done;){var r=t.value;e.delete(r)}}))}))},t.replace=function(e){var t=this;return oo((function(){for(var n,r=Uo(e),i=new Map,o=!1,a=Kn(t.data_.keys());!(n=a()).done;){var s=n.value;if(!r.has(s))if(t.delete(s))o=!0;else{var u=t.data_.get(s);i.set(s,u)}}for(var l,c=Kn(r.entries());!(l=c()).done;){var f=l.value,h=f[0],p=f[1],d=t.data_.has(h);if(t.set(h,p),t.data_.has(h)){var v=t.data_.get(h);i.set(h,v),d||(o=!0)}}if(!o)if(t.data_.size!==i.size)t.keysAtom_.reportChanged();else for(var y=t.data_.keys(),m=i.keys(),b=y.next(),_=m.next();!b.done;){if(b.value!==_.value){t.keysAtom_.reportChanged();break}b=y.next(),_=m.next()}t.data_=i})),this},t.toString=function(){return"[object ObservableMap]"},t.toJSON=function(){return Array.from(this)},t.observe_=function(e,t){return po(this,e)},t.intercept_=function(e){return co(this,e)},In(e,[{key:"size",get:function(){return this.keysAtom_.reportObserved(),this.data_.size}},{key:ko,get:function(){return"Map"}}]),e}(),Lo=En("ObservableMap",Mo);function Uo(e){if(Tn(e)||Lo(e))return e;if(Array.isArray(e))return new Map(e);if(An(e)){var t=new Map;for(var n in e)t.set(n,e[n]);return t}return un(21,e)}var Ro={};Vo=Symbol.iterator,Do=Symbol.toStringTag;var Io=function(){function e(e,t,n){void 0===t&&(t=tr),void 0===n&&(n="ObservableSet"),this.name_=void 0,this[Jn]=Ro,this.data_=new Set,this.atom_=void 0,this.changeListeners_=void 0,this.interceptors_=void 0,this.dehancer=void 0,this.enhancer_=void 0,this.name_=n,On(Set)||un(22),this.atom_=Zn(this.name_),this.enhancer_=function(e,r){return t(e,r,n)},e&&this.replace(e)}var t=e.prototype;return t.dehanceValue_=function(e){if(void 0!==this.dehancer)return this.dehancer(e);return e},t.clear=function(){var e=this;oo((function(){ci((function(){for(var t,n=Kn(e.data_.values());!(t=n()).done;){var r=t.value;e.delete(r)}}))}))},t.forEach=function(e,t){for(var n,r=Kn(this);!(n=r()).done;){var i=n.value;e.call(t,i,i,this)}},t.add=function(e){var t=this;if(this.atom_,lo(this)&&!fo(this,{type:No,object:this,newValue:e}))return this;if(!this.has(e)){oo((function(){t.data_.add(t.enhancer_(e,void 0)),t.atom_.reportChanged()}));var n=ho(this),r=n?{observableKind:"set",debugObjectName:this.name_,type:No,object:this,newValue:e}:null;n&&vo(this,r)}return this},t.delete=function(e){var t=this;if(lo(this)&&!fo(this,{type:Po,object:this,oldValue:e}))return!1;if(this.has(e)){var n=ho(this),r=n?{observableKind:"set",debugObjectName:this.name_,type:Po,object:this,oldValue:e}:null;return oo((function(){t.atom_.reportChanged(),t.data_.delete(e)})),n&&vo(this,r),!0}return!1},t.has=function(e){return this.atom_.reportObserved(),this.data_.has(this.dehanceValue_(e))},t.entries=function(){var e=0,t=Array.from(this.keys()),n=Array.from(this.values());return fa({next:function(){var r=e;return e+=1,rYo){for(var t=Yo;t=0&&n++}e=ca(e),t=ca(t);var s="[object Array]"===a;if(!s){if("object"!=typeof e||"object"!=typeof t)return!1;var u=e.constructor,l=t.constructor;if(u!==l&&!(On(u)&&u instanceof u&&On(l)&&l instanceof l)&&"constructor"in e&&"constructor"in t)return!1}if(0===n)return!1;n<0&&(n=-1),i=i||[];for(var c=(r=r||[]).length;c--;)if(r[c]===e)return i[c]===t;if(r.push(e),i.push(t),s){if((c=e.length)!==t.length)return!1;for(;c--;)if(!la(e[c],t[c],n-1,r,i))return!1}else{var f,h=Object.keys(e);if(c=h.length,Object.keys(t).length!==c)return!1;for(;c--;)if(!Ln(t,f=h[c])||!la(e[f],t[f],n-1,r,i))return!1}return r.pop(),i.pop(),!0}function ca(e){if(Eo(e))return e.slice();if(Tn(e)||Lo(e))return Array.from(e.entries());if(Nn(e)||Bo(e))return Array.from(e.entries());return e}function fa(e){return e[Symbol.iterator]=ha,e}function ha(){return this}["Symbol","Map","Set"].forEach((function(e){"undefined"===typeof cn()[e]&&un("MobX requires global '"+e+"' to be available or polyfilled")})),"object"===typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:function(e){return console.warn("[mobx.spy] Is a no-op in production builds"),function(){}},extras:{getDebugName:aa},$mobx:Jn});var pa,da,va=(pa=function(e){var t={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,arguments:!0,arity:!0},r="function"===typeof Object.getOwnPropertySymbols;e.exports=function(e,i,o){if("string"!==typeof i){var a=Object.getOwnPropertyNames(i);r&&(a=a.concat(Object.getOwnPropertySymbols(i)));for(var s=0;s=0;i--)if(t[n=r[i]]!==e[n])return!0;return!1}var xa={componentWillMount:function(){var e=this,t=this.displayName||this.name||this.constructor&&(this.constructor.displayName||this.constructor.name)||"",n=!1;function r(e){var t=this[e],r=Zn("reactive "+e);Object.defineProperty(this,e,{configurable:!0,enumerable:!0,get:function(){return r.reportObserved(),t},set:function(e){Oa(t,e)?(t=e,n=!0,r.reportChanged(),n=!1):t=e}})}r.call(this,"props"),r.call(this,"state");var i=this,o=this.render.bind(this),a=function(){return o(i.props,i.state,i.context)},s=null,u=!1,l=function(){var e;u=!1;var t=null;if(s.track((function(){try{t=Xr(!1,a)}catch(t){e=t}})),e)throw ga.emit(e),e;return t};this.render=function(){return(s=new ji(t+".render()",(function(){u||(u=!0,"function"===typeof e.componentWillReact&&e.componentWillReact(),n||e.forceUpdate())}))).reactComponent=e,l.$mobx=s,l.$base=e.render,e.render=l,l()}},componentWillUnmount:function(){this.render.$mobx&&(this.render.$mobx.dispose(),this.render=this.render.$base)},componentDidMount:function(){},componentDidUpdate:function(){},shouldComponentUpdate:function(e,t){if(this.state!==t)return!0;return Oa(this.props,e)}};function Sa(e,t){var n;if("string"===typeof e)throw new Error("Store names should be provided as array");if(Array.isArray(e))return _a||(_a=!0,ma('Mobx observer: Using observer to inject stores is deprecated since 4.0. Use `@inject("store1", "store2") @observer ComponentClass` or `inject("store1", "store2")(observer(componentClass))` instead of `@observer(["store1", "store2"]) ComponentClass`')),t?ja.apply(null,e)(Sa(t)):function(t){return Sa(e,t)};var r,i=e;if(!0===i.isMobxInjector&&ma("Mobx observer: You are trying to use 'observer' on a component that already has 'inject'. Please apply 'observer' before applying 'inject'"),"function"===typeof i&&(!i.prototype||!i.prototype.render))return Sa((n=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.render=function(e,t,n){return i(e,n)},t}(sn),n.displayName=i.displayName||i.name,n.defaultProps=i.defaultProps,n));if(!i)throw new Error("Please pass a valid component to 'observer'");return wa(r=i.prototype||i,"componentWillMount",!0),wa(r,"componentDidMount",!1),wa(r,"componentWillUnmount",!1),wa(r,"componentDidUpdate",!1),r.shouldComponentUpdate||(r.shouldComponentUpdate=xa.shouldComponentUpdate),i.isMobXReactObserver=!0,i}Sa((function(e){return(0,e.children)()})).displayName="Observer";var Aa={isMobxInjector:{configurable:!0,enumerable:!0,value:!0,writable:!0}};function Ca(e,t,n){var r="inject-"+(t.displayName||t.name||t.constructor&&t.constructor.name||"Unknown");n&&(r+="-with-"+n);var i=function(n){function r(e,t){n.call(this,e,t),this.storeRef=this.storeRef.bind(this)}return n&&(r.__proto__=n),r.prototype=Object.create(n&&n.prototype),r.prototype.constructor=r,r.prototype.storeRef=function(e){this.wrappedInstance=e},r.prototype.render=function(n,r,i){var o,a={};for(o in n)a[o]=n[o];var s=e(i.mobxStores||{},a,i)||{};for(o in s)a[o]=s[o];return re(2,t,a,null,ba(t)?null:this.storeRef)},r}(sn);return i.displayName=r,i.isMobxInjector=!1,va(i,t),i.wrappedComponent=t,Object.defineProperties(i,Aa),i}function ka(e){return function(t,n){for(var r=0,i=e.length;r0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function en(){for(var e=[],t=0;t0)for(var l=0;l",e);if(2===arguments.length&&"function"===typeof t)return dn(e,t);if(1===arguments.length&&"string"===typeof e)return xn(e);if(!0!==r)return xn(t).apply(null,arguments);e[t]=dn(e.name||t,n.value)};function kn(e,t,n){ro(e,t,dn(t,n.bind(e)))}Sn.bound=function(e,t,n,r){if(!0===r)return kn(e,t,n.value),null;if(n)return{configurable:!0,enumerable:!1,get:function(){return kn(this,t,n.value||n.initializer.call(this)),this[t]},set:wn};return{enumerable:!1,configurable:!0,set:function(e){kn(this,t,e)},get:function(){return}}};var _n=Object.prototype.toString;function On(e,t){return $n(e,t)}function $n(e,t,n,r){if(e===t)return 0!==e||1/e===1/t;if(null==e||null==t)return!1;if(e!==e)return t!==t;var o=typeof e;if("function"!==o&&"object"!==o&&"object"!=typeof t)return!1;return An(e,t,n,r)}function An(e,t,n,r){e=En(e),t=En(t);var o=_n.call(e);if(o!==_n.call(t))return!1;switch(o){case"[object RegExp]":case"[object String]":return""+e===""+t;case"[object Number]":if(+e!==+e)return+t!==+t;return 0===+e?1/+e===1/t:+e===+t;case"[object Date]":case"[object Boolean]":return+e===+t;case"[object Symbol]":return"undefined"!==typeof Symbol&&Symbol.valueOf.call(e)===Symbol.valueOf.call(t)}var i="[object Array]"===o;if(!i){if("object"!=typeof e||"object"!=typeof t)return!1;var a=e.constructor,u=t.constructor;if(a!==u&&!("function"===typeof a&&a instanceof a&&"function"===typeof u&&u instanceof u)&&"constructor"in e&&"constructor"in t)return!1}r=r||[];for(var l=(n=n||[]).length;l--;)if(n[l]===e)return r[l]===t;if(n.push(e),r.push(t),i){if((l=e.length)!==t.length)return!1;for(;l--;)if(!$n(e[l],t[l],n,r))return!1}else{var s,c=Object.keys(e);if(l=c.length,Object.keys(t).length!==l)return!1;for(;l--;)if(!Tn(t,s=c[l])||!$n(e[s],t[s],n,r))return!1}return n.pop(),r.pop(),!0}function En(e){if(Gr(e))return e.peek();if(uo(e)||Er(e))return so(e.entries());return e}function Tn(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Nn(e,t){return e===t}var Pn={identity:Nn,structural:function(e,t){return On(e,t)},default:function(e,t){return ao(e,t)||Nn(e,t)}};function Un(e,t){void 0===t&&(t=zr);var n,r=t&&t.name||e.name||"Autorun@"+Xr();if(t.scheduler||t.delay){var o=Vn(t),i=!1;n=new Ho(r,(function(){i||(i=!0,o((function(){i=!1,n.isDisposed||n.track(a)})))}),t.onError)}else n=new Ho(r,(function(){this.track(a)}),t.onError);function a(){e(n)}return n.schedule(),n.getDisposer()}var Dn=function(e){return e()};function Vn(e){return e.scheduler?e.scheduler:e.delay?function(t){return setTimeout(t,e.delay)}:Dn}var jn=function(){function e(e){this.dependenciesState=po.NOT_TRACKING,this.observing=[],this.newObserving=null,this.isBeingObserved=!1,this.isPendingUnobservation=!1,this.observers=[],this.observersIndexes={},this.diffValue=0,this.runId=0,this.lastAccessedBy=0,this.lowestObserverState=po.UP_TO_DATE,this.unboundDepsCount=0,this.__mapid="#"+Xr(),this.value=new To(null),this.isComputing=!1,this.isRunningSetter=!1,this.isTracing=ho.NONE,this.derivation=e.get,this.name=e.name||"ComputedValue@"+Xr(),e.set&&(this.setter=dn(this.name+"-setter",e.set)),this.equals=e.equals||(e.compareStructural||e.struct?Pn.structural:Pn.default),this.scope=e.context,this.requiresReaction=!!e.requiresReaction,this.keepAlive=!!e.keepAlive}return e.prototype.onBecomeStale=function(){$o(this)},e.prototype.onBecomeUnobserved=function(){},e.prototype.onBecomeObserved=function(){},e.prototype.get=function(){this.isComputing&&Jr("Cycle detected in computation "+this.name+": "+this.derivation),0!==yo.inBatch||0!==this.observers.length||this.keepAlive?(ko(this),Po(this)&&this.trackAndCompute()&&Oo(this)):Po(this)&&(this.warnAboutUntrackedRead(),Co(),this.value=this.computeValue(!1),So());var e=this.value;if(No(e))throw e.cause;return e},e.prototype.peek=function(){var e=this.computeValue(!1);if(No(e))throw e.cause;return e},e.prototype.set=function(e){if(this.setter){Yr(!this.isRunningSetter,"The setter of computed value '"+this.name+"' is trying to update itself. Did you intend to update an _observable_ value, instead of the computed property?"),this.isRunningSetter=!0;try{this.setter.call(this.scope,e)}finally{this.isRunningSetter=!1}}else Yr(!1,!1)},e.prototype.trackAndCompute=function(){ln()&&sn({object:this.scope,type:"compute",name:this.name});var e=this.value,t=this.dependenciesState===po.NOT_TRACKING,n=this.computeValue(!0),r=t||No(e)||No(n)||!this.equals(e,n);return r&&(this.value=n),r},e.prototype.computeValue=function(e){var t;if(this.isComputing=!0,yo.computationDepth++,e)t=Do(this,this.derivation,this.scope);else if(!0===yo.disableErrorBoundaries)t=this.derivation.call(this.scope);else try{t=this.derivation.call(this.scope)}catch(e){t=new To(e)}return yo.computationDepth--,this.isComputing=!1,t},e.prototype.suspend=function(){this.keepAlive||(jo(this),this.value=void 0)},e.prototype.observe=function(e,t){var n=this,r=!0,o=void 0;return Un((function(){var i=n.get();if(!r||t){var a=Lo();e({type:"update",object:n,newValue:i,oldValue:o}),Io(a)}r=!1,o=i}))},e.prototype.warnAboutUntrackedRead=function(){return},e.prototype.toJSON=function(){return this.get()},e.prototype.toString=function(){return this.name+"["+this.derivation.toString()+"]"},e.prototype.valueOf=function(){return fo(this.get())},e}();jn.prototype[co()]=jn.prototype.valueOf;var Mn=io("ComputedValue",jn);function Ln(e){return void 0!==e.interceptors&&e.interceptors.length>0}function In(e,t){var n=e.interceptors||(e.interceptors=[]);return n.push(t),Zr((function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)}))}function Fn(e,t){var n=Lo();try{var r=e.interceptors;if(r)for(var o=0,i=r.length;o0}function Rn(e,t){var n=e.changeListeners||(e.changeListeners=[]);return n.push(t),Zr((function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)}))}function Hn(e,t){var n=Lo(),r=e.changeListeners;if(!r)return;for(var o=0,i=(r=r.slice()).length;o2&&yr("box");var n=sr(t);return new Wn(e,cr(n),n.name)},shallowBox:function(e,t){return arguments.length>2&&yr("shallowBox"),mr.box(e,{name:t,deep:!1})},array:function(e,t){arguments.length>2&&yr("array");var n=sr(t);return new Fr(e,cr(n),n.name)},shallowArray:function(e,t){return arguments.length>2&&yr("shallowArray"),mr.array(e,{name:t,deep:!1})},map:function(e,t){arguments.length>2&&yr("map");var n=sr(t);return new Or(e,cr(n),n.name)},shallowMap:function(e,t){return arguments.length>2&&yr("shallowMap"),mr.map(e,{name:t,deep:!1})},object:function(e,t,n){"string"===typeof arguments[1]&&yr("object");var r=sr(n);return ur({},e,t,r)},shallowObject:function(e,t){return"string"===typeof arguments[1]&&yr("shallowObject"),mr.object(e,{},{name:t,deep:!1})},ref:dr,shallow:pr,deep:fr,struct:hr},mr=function(e,t,n){if("string"===typeof arguments[1])return fr.apply(null,arguments);if(ir(e))return e;var r=no(e)?mr.object(e,t,n):Array.isArray(e)?mr.array(e,t):uo(e)?mr.map(e,t):e;if(r!==e)return r;Jr(!1)};function yr(e){Jr("Expected one or two arguments to observable."+e+". Did you accidentally try to use observable."+e+" as decorator?")}function gr(e,t,n){if(ir(e))return e;if(Array.isArray(e))return mr.array(e,{name:n});if(no(e))return mr.object(e,void 0,{name:n});if(uo(e))return mr.map(e,{name:n});return e}function br(e){return e}function wr(){return"function"===typeof Symbol&&Symbol.iterator||"@@iterator"}function xr(e,t){oo(e,wr(),t)}function Cr(e){return e[wr()]=Sr,e}function Sr(){return this}function kr(e,t){void 0===t&&(t=void 0),Co();try{return e.apply(t)}finally{So()}}Object.keys(vr).forEach((function(e){return mr[e]=vr[e]}));var _r={},Or=function(){function e(e,t,n){if(void 0===t&&(t=gr),void 0===n&&(n="ObservableMap@"+Xr()),this.enhancer=t,this.name=n,this.$mobx=_r,this._keys=new Fr(void 0,br,this.name+".keys()",!0),"function"!==typeof Map)throw new Error("mobx.map requires Map polyfill for the current browser. Check babel-polyfill or core-js/es6/map.js");this._data=new Map,this._hasMap=new Map,this.merge(e)}return e.prototype._has=function(e){return this._data.has(e)},e.prototype.has=function(e){if(this._hasMap.has(e))return this._hasMap.get(e).get();return this._updateHasMapEntry(e,!1).get()},e.prototype.set=function(e,t){var n=this._has(e);if(Ln(this)){var r=Fn(this,{type:n?"update":"add",object:this,newValue:t,name:e});if(!r)return this;t=r.newValue}return n?this._updateValue(e,t):this._addValue(e,t),this},e.prototype.delete=function(e){var t=this;if(Ln(this)&&!(o=Fn(this,{type:"delete",object:this,name:e})))return!1;if(this._has(e)){var n=ln(),r=Bn(this),o=r||n?{type:"delete",object:this,oldValue:this._data.get(e).value,name:e}:null;return n&&cn(Yt({},o,{name:this.name,key:e})),kr((function(){t._keys.remove(e),t._updateHasMapEntry(e,!1),t._data.get(e).setNewValue(void 0),t._data.delete(e)})),r&&Hn(this,o),n&&pn(),!0}return!1},e.prototype._updateHasMapEntry=function(e,t){var n=this._hasMap.get(e);return n?n.setNewValue(t):(n=new Wn(t,br,this.name+"."+e+"?",!1),this._hasMap.set(e,n)),n},e.prototype._updateValue=function(e,t){var n=this._data.get(e);if((t=n.prepareNewValue(t))!==yo.UNCHANGED){var r=ln(),o=Bn(this),i=o||r?{type:"update",object:this,oldValue:n.value,name:e,newValue:t}:null;r&&cn(Yt({},i,{name:this.name,key:e})),n.setNewValue(t),o&&Hn(this,i),r&&pn()}},e.prototype._addValue=function(e,t){var n=this;kr((function(){var r=new Wn(t,n.enhancer,n.name+"."+e,!1);n._data.set(e,r),t=r.value,n._updateHasMapEntry(e,!0),n._keys.push(e)}));var r=ln(),o=Bn(this),i=o||r?{type:"add",object:this,name:e,newValue:t}:null;r&&cn(Yt({},i,{name:this.name,key:e})),o&&Hn(this,i),r&&pn()},e.prototype.get=function(e){if(this.has(e))return this.dehanceValue(this._data.get(e).get());return this.dehanceValue(void 0)},e.prototype.dehanceValue=function(e){if(void 0!==this.dehancer)return this.dehancer(e);return e},e.prototype.keys=function(){return this._keys[wr()]()},e.prototype.values=function(){var e=this,t=0;return Cr({next:function(){return t0)return e.map(this.dehancer);return e},e.prototype.intercept=function(e){return In(this,e)},e.prototype.observe=function(e,t){return void 0===t&&(t=!1),t&&e({object:this.array,type:"splice",index:0,added:this.values.slice(),addedCount:this.values.length,removed:[],removedCount:0}),Rn(this,e)},e.prototype.getArrayLength=function(){return this.atom.reportObserved(),this.values.length},e.prototype.setArrayLength=function(e){if("number"!==typeof e||e<0)throw new Error("[mobx.array] Out of range: "+e);var t=this.values.length;if(e===t)return;if(e>t){for(var n=new Array(e-t),r=0;r0&&e+t+1>Mr&&Wr(e+t+1)},e.prototype.spliceWithArray=function(e,t,n){var r=this;Uo(this.atom);var o=this.values.length;if(void 0===e?e=0:e>o?e=o:e<0&&(e=Math.max(0,o+e)),t=1===arguments.length?o-e:void 0===t||null===t?0:Math.max(0,Math.min(t,o-e)),void 0===n&&(n=Kr),Ln(this)){var i=Fn(this,{object:this.array,type:"splice",index:e,removedCount:t,added:n});if(!i)return Kr;t=i.removedCount,n=i.added}var a=(n=0===n.length?n:n.map((function(e){return r.enhancer(e,void 0)}))).length-t;this.updateArrayLength(o,a);var u=this.spliceItemsIntoValues(e,t,n);return 0===t&&0===n.length||this.notifyArraySplice(e,n,u),this.dehanceValues(u)},e.prototype.spliceItemsIntoValues=function(e,t,n){var r;if(n.length<1e4)return(r=this.values).splice.apply(r,en([e,t],n));var o=this.values.slice(e,e+t);return this.values=this.values.slice(0,e).concat(n,this.values.slice(e+t)),o},e.prototype.notifyArrayChildUpdate=function(e,t,n){var r=!this.owned&&ln(),o=Bn(this),i=o||r?{object:this.array,type:"update",index:e,newValue:t,oldValue:n}:null;r&&cn(Yt({},i,{name:this.atom.name})),this.atom.reportChanged(),o&&Hn(this,i),r&&pn()},e.prototype.notifyArraySplice=function(e,t,n){var r=!this.owned&&ln(),o=Bn(this),i=o||r?{object:this.array,type:"splice",index:e,removed:n,added:t,removedCount:n.length,addedCount:t.length}:null;r&&cn(Yt({},i,{name:this.atom.name})),this.atom.reportChanged(),o&&Hn(this,i),r&&pn()},e}(),Fr=function(e){function t(t,n,r,o){void 0===r&&(r="ObservableArray@"+Xr()),void 0===o&&(o=!1);var i=e.call(this)||this,a=new Ir(r,n,i,o);if(oo(i,"$mobx",a),t&&t.length){var u=gn(!0);i.spliceWithArray(0,0,t),bn(u)}return jr&&Object.defineProperty(a.array,"0",Br),i}return Jt(t,e),t.prototype.intercept=function(e){return this.$mobx.intercept(e)},t.prototype.observe=function(e,t){return void 0===t&&(t=!1),this.$mobx.observe(e,t)},t.prototype.clear=function(){return this.splice(0)},t.prototype.concat=function(){for(var e=[],t=0;t-1)return this.splice(t,1),!0;return!1},t.prototype.move=function(e,t){function n(e){if(e<0)throw new Error("[mobx.array] Index out of bounds: "+e+" is negative");var t=this.$mobx.values.length;if(e>=t)throw new Error("[mobx.array] Index out of bounds: "+e+" is not smaller than "+t)}if(n.call(this,e),n.call(this,t),e===t)return;var r,o=this.$mobx.values;r=e0&&!e.__mobxGlobals&&(mo=!1),e.__mobxGlobals&&e.__mobxGlobals.version!==(new vo).version&&(mo=!1),mo?e.__mobxGlobals?(e.__mobxInstanceCount+=1,e.__mobxGlobals.UNCHANGED||(e.__mobxGlobals.UNCHANGED={}),e.__mobxGlobals):(e.__mobxInstanceCount=1,e.__mobxGlobals=new vo):(setTimeout((function(){Jr("There are multiple, different versions of MobX active. Make sure MobX is loaded only once or use `configure({ isolateGlobalState: true })`")}),1),new vo)}();function go(e){var t,n,r={name:e.name};return e.observing&&e.observing.length>0&&(r.dependencies=(t=e.observing,n=[],t.forEach((function(e){-1===n.indexOf(e)&&n.push(e)})),n).map(go)),r}function bo(e,t){var n=e.observers.length;n&&(e.observersIndexes[t.__mapid]=n),e.observers[n]=t,e.lowestObserverState>t.dependenciesState&&(e.lowestObserverState=t.dependenciesState)}function wo(e,t){if(1===e.observers.length)e.observers.length=0,xo(e);else{var n=e.observers,r=e.observersIndexes,o=n.pop();if(o!==t){var i=r[t.__mapid]||0;i?r[o.__mapid]=i:delete r[o.__mapid],n[i]=o}delete r[t.__mapid]}}function xo(e){!1===e.isPendingUnobservation&&(e.isPendingUnobservation=!0,yo.pendingUnobservations.push(e))}function Co(){yo.inBatch++}function So(){if(0===--yo.inBatch){Wo();for(var e=yo.pendingUnobservations,t=0;t0&&xo(e),!1}function _o(e){if(e.lowestObserverState===po.STALE)return;e.lowestObserverState=po.STALE;for(var t=e.observers,n=t.length;n--;){var r=t[n];r.dependenciesState===po.UP_TO_DATE&&(r.isTracing!==ho.NONE&&Ao(r,e),r.onBecomeStale()),r.dependenciesState=po.STALE}}function Oo(e){if(e.lowestObserverState===po.STALE)return;e.lowestObserverState=po.STALE;for(var t=e.observers,n=t.length;n--;){var r=t[n];r.dependenciesState===po.POSSIBLY_STALE?r.dependenciesState=po.STALE:r.dependenciesState===po.UP_TO_DATE&&(e.lowestObserverState=po.UP_TO_DATE)}}function $o(e){if(e.lowestObserverState!==po.UP_TO_DATE)return;e.lowestObserverState=po.POSSIBLY_STALE;for(var t=e.observers,n=t.length;n--;){var r=t[n];r.dependenciesState===po.UP_TO_DATE&&(r.dependenciesState=po.POSSIBLY_STALE,r.isTracing!==ho.NONE&&Ao(r,e),r.onBecomeStale())}}function Ao(e,t){if(console.log("[mobx.trace] '"+e.name+"' is invalidated due to a change in: '"+t.name+"'"),e.isTracing===ho.BREAK){var n=[];Eo(go(Tr(e,void 0)),n,1),new Function("debugger;\n/*\nTracing '"+e.name+"'\n\nYou are entering this break point because derivation '"+e.name+"' is being traced and '"+t.name+"' is now forcing it to update.\nJust follow the stacktrace you should now see in the devtools to see precisely what piece of your code is causing this update\nThe stackframe you are looking for is at least ~6-8 stack-frames up.\n\n"+(e instanceof jn?e.derivation.toString():"")+"\n\nThe dependencies for this derivation are:\n\n"+n.join("\n")+"\n*/\n ")()}}function Eo(e,t,n){if(t.length>=1e3)return void t.push("(and many more)");t.push(""+new Array(n).join("\t")+e.name),e.dependencies&&e.dependencies.forEach((function(e){return Eo(e,t,n+1)}))}!function(e){e[e.NOT_TRACKING=-1]="NOT_TRACKING",e[e.UP_TO_DATE=0]="UP_TO_DATE",e[e.POSSIBLY_STALE=1]="POSSIBLY_STALE",e[e.STALE=2]="STALE"}(po||(po={})),function(e){e[e.NONE=0]="NONE",e[e.LOG=1]="LOG",e[e.BREAK=2]="BREAK"}(ho||(ho={}));var To=function(e){this.cause=e};function No(e){return e instanceof To}function Po(e){switch(e.dependenciesState){case po.UP_TO_DATE:return!1;case po.NOT_TRACKING:case po.STALE:return!0;case po.POSSIBLY_STALE:for(var t=Lo(),n=e.observing,r=n.length,o=0;o0;yo.computationDepth>0&&t&&Jr(!1),yo.allowStateChanges||!t&&"strict"!==yo.enforceActions||Jr(!1)}function Do(e,t,n){Fo(e),e.newObserving=new Array(e.observing.length+100),e.unboundDepsCount=0,e.runId=++yo.runId;var r,o=yo.trackingDerivation;if(yo.trackingDerivation=e,!0===yo.disableErrorBoundaries)r=t.call(n);else try{r=t.call(n)}catch(e){r=new To(e)}return yo.trackingDerivation=o,Vo(e),r}function Vo(e){for(var t=e.observing,n=e.observing=e.newObserving,r=po.UP_TO_DATE,o=0,i=e.unboundDepsCount,a=0;ar&&(r=u.dependenciesState);for(n.length=o,e.newObserving=null,i=t.length;i--;)0===(u=t[i]).diffValue&&wo(u,e),u.diffValue=0;for(;o--;){var u;1===(u=n[o]).diffValue&&(u.diffValue=0,bo(u,e))}r!==po.UP_TO_DATE&&(e.dependenciesState=r,e.onBecomeStale())}function jo(e){var t=e.observing;e.observing=[];for(var n=t.length;n--;)wo(t[n],e);e.dependenciesState=po.NOT_TRACKING}function Mo(e){var t=Lo(),n=e();return Io(t),n}function Lo(){var e=yo.trackingDerivation;return yo.trackingDerivation=null,e}function Io(e){yo.trackingDerivation=e}function Fo(e){if(e.dependenciesState===po.UP_TO_DATE)return;e.dependenciesState=po.UP_TO_DATE;for(var t=e.observing,n=t.length;n--;)t[n].lowestObserverState=po.UP_TO_DATE}function Bo(){for(var e=[],t=0;t0||yo.isRunningReactions)return;qo()}function qo(){yo.isRunningReactions=!0;for(var e=yo.pendingReactions,t=0;e.length>0;){100===++t&&(console.error("Reaction doesn't converge to a stable state after 100 iterations. Probably there is a cycle in the reactive function: "+e[0]),e.splice(0));for(var n=e.splice(0),r=0,o=n.length;r0?di(n.componentWillDisappear,mi(e,t)):vi(e,t,!1)}function gi(e,t,n,r,o,i,a,u){e.componentWillMove.push({dom:r,fn:function(){4&a?n.componentWillMove(t,o,r,u):8&a&&n.onComponentWillMove(t,o,r,u)},next:i,parent:o})}function bi(e,t,n,r,o){var i,a,u=t.flags;do{var l=t.flags;if(1521&l)return void(Qo(i)||!Jo(i.componentWillMove)&&!Jo(i.onComponentWillMove)?ai(n,t.dom,r):gi(o,e,i,t.dom,n,r,u,a));var s=t.children;if(4&l&&(i=t.children,a=t.props,t=s.$LI),8&l&&(i=t.ref,a=t.props,t=s),8192&l){if(2!==t.childFlags){for(var c=0,f=s.length;c0,s=Zo(u),c=Yo(u)&&u[0]===$i;l||s||c?(n=n||t.slice(0,i),(l||c)&&(a=Mi(a)),(s||c)&&(a.key=$i+i),n.push(a)):n&&n.push(a),a.flags|=65536}}r=0===(n=n||t).length?1:8}else(n=t).flags|=65536,81920&t.flags&&(n=Mi(t)),r=2;return e.children=n,e.childFlags=r,e}function Bi(e){if(Xo(e)||zo(e))return Di(e,null);if(Ko(e))return Vi(e,0,null);return 16384&e.flags?Mi(e):e}var Ri="http://www.w3.org/1999/xlink",Hi="http://www.w3.org/XML/1998/namespace",Wi={"xlink:actuate":Ri,"xlink:arcrole":Ri,"xlink:href":Ri,"xlink:role":Ri,"xlink:show":Ri,"xlink:title":Ri,"xlink:type":Ri,"xml:base":Hi,"xml:lang":Hi,"xml:space":Hi};function qi(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 Gi=qi(0),Ki=qi(null),zi=qi(!0);function Qi(e,t){var n=t.$EV;return n||(n=t.$EV=qi(null)),n[e]||1===++Gi[e]&&(Ki[e]=aa(e)),n}function Xi(e,t){var n=t.$EV;n&&n[e]&&(0===--Gi[e]&&(document.removeEventListener(oi(e),Ki[e]),Ki[e]=null),n[e]=null)}function Ji(e,t,n,r){if(Jo(n))Qi(e,r)[e]=n;else if(ti(n)){if(ki(t,n))return;Qi(e,r)[e]=n}else Xi(e,r)}function Yi(e){return Jo(e.composedPath)?e.composedPath()[0]:e.target}function Zi(e,t,n,r){var o=Yi(e);do{if(t&&o.disabled)return;var i=o.$EV;if(i){var a=i[n];if(a&&(r.dom=o,a.event?a.event(a.data,e):a(e),e.cancelBubble))return}o=o.parentNode}while(!Zo(o))}function ea(){this.cancelBubble=!0,this.immediatePropagationStopped||this.stopImmediatePropagation()}function ta(){return this.defaultPrevented}function na(){return this.cancelBubble}function ra(e){var t={dom:document};return e.isDefaultPrevented=ta,e.isPropagationStopped=na,e.stopPropagation=ea,Object.defineProperty(e,"currentTarget",{configurable:!0,get:function(){return t.dom}}),t}function oa(e){return function(t){if(0!==t.button)return void t.stopPropagation();Zi(t,!0,e,ra(t))}}function ia(e){return function(t){Zi(t,!1,e,ra(t))}}function aa(e){var t="onClick"===e||"onDblClick"===e?oa(e):ia(e);return document.addEventListener(oi(e),t),t}function ua(e,t){var n=document.createElement("i");return n.innerHTML=t,n.innerHTML===e.innerHTML}function la(e,t,n){if(e[t]){var r=e[t];r.event?r.event(r.data,n):r(n)}else{var o=t.toLowerCase();e[o]&&e[o](n)}}function sa(e,t){var n=function(n){var r=this.$V;if(!r)return;var o=r.props||ni,i=r.dom;if(Yo(e))la(o,e,n);else for(var a=0;a-1&&t.options[i]&&(a=t.options[i].value),n&&Qo(a)&&(a=e.defaultValue),ya(r,a)}}var Ca,Sa,ka=sa("onInput",$a),_a=sa("onChange");function Oa(e,t){ca(e,"input",ka),t.onChange&&ca(e,"change",_a)}function $a(e,t,n){var r=e.value,o=t.value;if(Qo(r)){if(n){var i=e.defaultValue;Qo(i)||i===o||(t.defaultValue=i,t.value=i)}}else o!==r&&(t.defaultValue=r,t.value=r)}function Aa(e,t,n,r,o,i){64&e?ma(r,n):256&e?xa(r,n,o,t):128&e&&$a(r,n,o),i&&(n.$V=t)}function Ea(e,t,n){64&e?va(t,n):256&e?wa(t):128&e&&Oa(t,n)}function Ta(e){return e.type&&fa(e.type)?!Qo(e.checked):!Qo(e.value)}function Na(e){e&&!Oi(e,null)&&e.current&&(e.current=null)}function Pa(e,t,n){e&&(Jo(e)||void 0!==e.current)&&n.push((function(){Oi(e,t)||void 0===e.current||(e.current=t)}))}function Ua(e,t,n){Da(e,n),yi(e,t,n)}function Da(e,t){var n,r=e.flags,o=e.children;if(481&r){n=e.ref;var i=e.props;Na(n);var a=e.childFlags;if(!Zo(i))for(var u=Object.keys(i),l=0,s=u.length;l0?di(n.componentWillDisappear,ja(t,e)):e.textContent=""}function La(e,t,n,r){Va(n,r),8192&t.flags?yi(t,e,r):Ma(e,n,r)}function Ia(e,t,n,r,o){e.componentWillDisappear.push((function(e){4&r?t.componentWillDisappear(n,e):8&r&&t.onComponentWillDisappear(n,o,e)}))}function Fa(e){var t=e.event;return function(n){t(e.data,n)}}function Ba(e,t,n,r){if(ti(n)){if(ki(t,n))return;n=Fa(n)}ca(r,oi(e),n)}function Ra(e,t,n){if(Qo(t))return void n.removeAttribute("style");var r,o,i=n.style;if(Yo(t))return void(i.cssText=t);if(Qo(e)||Yo(e))for(r in t)o=t[r],i.setProperty(r,o);else{for(r in t)(o=t[r])!==e[r]&&i.setProperty(r,o);for(r in e)Qo(t[r])&&i.removeProperty(r)}}function Ha(e,t,n,r,o){var i=e&&e.__html||"",a=t&&t.__html||"";i!==a&&(Qo(a)||ua(r,a)||(Zo(n)||(12&n.childFlags?Va(n.children,o):2===n.childFlags&&Da(n.children,o),n.children=null,n.childFlags=1),r.innerHTML=a))}function Wa(e,t,n,r,o,i,a,u){switch(e){case"children":case"childrenType":case"className":case"defaultValue":case"key":case"multiple":case"ref":case"selectedIndex":break;case"autoFocus":r.autofocus=!!n;break;case"allowfullscreen":case"autoplay":case"capture":case"checked":case"controls":case"default":case"disabled":case"hidden":case"indeterminate":case"loop":case"muted":case"novalidate":case"open":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"selected":r[e]=!!n;break;case"defaultChecked":case"value":case"volume":if(i&&"value"===e)break;var l=Qo(n)?"":n;r[e]!==l&&(r[e]=l);break;case"style":Ra(t,n,r);break;case"dangerouslySetInnerHTML":Ha(t,n,a,r,u);break;default:zi[e]?Ji(e,t,n,r):111===e.charCodeAt(0)&&110===e.charCodeAt(1)?Ba(e,t,n,r):Qo(n)?r.removeAttribute(e):o&&Wi[e]?r.setAttributeNS(Wi[e],e,n):r.setAttribute(e,n)}}function qa(e,t,n,r,o,i){var a=!1,u=(448&t)>0;for(var l in u&&(a=Ta(n))&&Ea(t,r,n),n)Wa(l,null,n[l],r,o,a,null,i);u&&Aa(t,e,r,n,!0,a)}function Ga(e,t,n){var r=Bi(e.render(t,e.state,n)),o=n;return Jo(e.getChildContext)&&(o=ei(n,e.getChildContext())),e.$CX=o,r}function Ka(e,t,n,r,o,i){var a=new t(n,r),u=a.$N=Boolean(t.getDerivedStateFromProps||a.getSnapshotBeforeUpdate);if(a.$SVG=o,a.$L=i,e.children=a,a.$BS=!1,a.context=r,a.props===ni&&(a.props=n),u)a.state=wi(a,n,a.state);else if(Jo(a.componentWillMount)){a.$BR=!0,a.componentWillMount();var l=a.$PS;if(!Zo(l)){var s=a.state;if(Zo(s))a.state=l;else for(var c in l)s[c]=l[c];a.$PS=null}a.$BR=!1}return a.$LI=Ga(a,n,r),a}function za(e,t){var n=e.props||ni;return 32768&e.flags?e.type.render(n,e.ref,t):e.type(n,t)}function Qa(e,t,n,r,o,i,a){var u=e.flags|=16384;481&u?Za(e,t,n,r,o,i,a):4&u?tu(e,t,n,r,o,i,a):8&u?nu(e,t,n,r,o,i,a):16&u?Ya(e,t,o):8192&u?Ja(e,n,t,r,o,i,a):1024&u&&Xa(e,n,t,o,i,a)}function Xa(e,t,n,r,o,i){Qa(e.children,e.ref,t,!1,null,o,i);var a=Li();Ya(a,n,r),e.dom=a.dom}function Ja(e,t,n,r,o,i,a){var u=e.children,l=e.childFlags;12&l&&0===u.length&&(l=e.childFlags=2,u=e.children=Li()),2===l?Qa(u,n,t,r,o,i,a):eu(u,n,t,r,o,i,a)}function Ya(e,t,n){var r=e.dom=document.createTextNode(e.children);Zo(t)||ai(t,r,n)}function Za(e,t,n,r,o,i,a){var u=e.flags,l=e.props,s=e.className,c=e.childFlags,f=e.dom=ui(e.type,r=r||(32&u)>0),p=e.children;if(Qo(s)||""===s||(r?f.setAttribute("class",s):f.className=s),16===c)Si(f,p);else if(1!==c){var d=r&&"foreignObject"!==e.type;2===c?(16384&p.flags&&(e.children=p=Mi(p)),Qa(p,f,n,d,null,i,a)):8!==c&&4!==c||eu(p,f,n,d,null,i,a)}Zo(t)||ai(t,f,o),Zo(l)||qa(e,u,l,f,r,a),Pa(e.ref,f,i)}function eu(e,t,n,r,o,i,a){for(var u=0;u0&&hi(u.componentWillMove)}function cu(e,t,n){e!==t&&(""!==e?n.firstChild.nodeValue=t:Si(n,t))}function fu(e,t){e.textContent!==t&&(e.textContent=t)}function pu(e,t,n,r,o,i,a){var u=e.children,l=t.children,s=e.childFlags,c=t.childFlags,f=null;12&c&&0===l.length&&(c=t.childFlags=2,l=t.children=Li());var p=0!==(2&c);if(12&s){var d=u.length;(8&s&&8&c||p||!p&&l.length>d)&&(f=pi(u[d-1],!1).nextSibling)}mu(s,c,u,l,n,r,o,f,e,i,a)}function du(e,t,n,r,o){var i=e.ref,a=t.ref,u=t.children;if(mu(e.childFlags,t.childFlags,e.children,u,i,n,!1,null,e,r,o),t.dom=e.dom,i!==a&&!Xo(u)){var l=u.dom;si(i,l),ii(a,l)}}function hu(e,t,n,r,o,i,a){var u,l=t.dom=e.dom,s=e.props,c=t.props,f=!1,p=!1;if(r=r||(32&o)>0,s!==c){var d=s||ni;if((u=c||ni)!==ni)for(var h in(f=(448&o)>0)&&(p=Ta(u)),u){var v=d[h],m=u[h];v!==m&&Wa(h,v,m,l,r,p,e,a)}if(d!==ni)for(var y in d)Qo(u[y])&&!Qo(d[y])&&Wa(y,d[y],null,l,r,p,e,a)}var g=t.children,b=t.className;e.className!==b&&(Qo(b)?l.removeAttribute("class"):r?l.setAttribute("class",b):l.className=b),4096&o?fu(l,g):mu(e.childFlags,t.childFlags,e.children,g,l,n,r&&"foreignObject"!==t.type,null,e,i,a),f&&Aa(o,t,l,u,!1,p);var w=t.ref,x=e.ref;x!==w&&(Na(x),Pa(w,l,i))}function vu(e,t,n,r,o,i,a){Da(e,a),eu(t,n,r,o,pi(e,!0),i,a),yi(e,n,a)}function mu(e,t,n,r,o,i,a,u,l,s,c){switch(e){case 2:switch(t){case 2:su(n,r,o,i,a,u,s,c);break;case 1:Ua(n,o,c);break;case 16:Da(n,c),Si(o,r);break;default:vu(n,r,o,i,a,s,c)}break;case 1:switch(t){case 2:Qa(r,o,i,a,u,s,c);break;case 1:break;case 16:Si(o,r);break;default:eu(r,o,i,a,u,s,c)}break;case 16:switch(t){case 16:cu(n,r,o);break;case 2:Ma(o,n,c),Qa(r,o,i,a,u,s,c);break;case 1:Ma(o,n,c);break;default:Ma(o,n,c),eu(r,o,i,a,u,s,c)}break;default:switch(t){case 16:Va(n,c),Si(o,r);break;case 2:La(o,l,n,c),Qa(r,o,i,a,u,s,c);break;case 1:La(o,l,n,c);break;default:var f=0|n.length,p=0|r.length;0===f?p>0&&eu(r,o,i,a,u,s,c):0===p?La(o,l,n,c):8===t&&8===e?Su(n,r,o,i,a,f,p,u,l,s,c):Cu(n,r,o,i,a,f,p,u,s,c)}}}function yu(e,t,n,r,o){o.push((function(){e.componentDidUpdate(t,n,r)}))}function gu(e,t,n,r,o,i,a,u,l,s){var c=e.state,f=e.props,p=Boolean(e.$N),d=Jo(e.shouldComponentUpdate);if(p&&(t=wi(e,n,t!==c?ei(c,t):t)),a||!d||d&&e.shouldComponentUpdate(n,t,o)){!p&&Jo(e.componentWillUpdate)&&e.componentWillUpdate(n,t,o),e.props=n,e.state=t,e.context=o;var h=null,v=Ga(e,n,o);p&&Jo(e.getSnapshotBeforeUpdate)&&(h=e.getSnapshotBeforeUpdate(f,c)),su(e.$LI,v,r,e.$CX,i,u,l,s),e.$LI=v,Jo(e.componentDidUpdate)&&yu(e,f,c,h,l)}else e.props=n,e.state=t,e.context=o}function bu(e,t,n,r,o,i,a,u){var l=t.children=e.children;if(Zo(l))return;l.$L=a;var s=t.props||ni,c=t.ref,f=e.ref,p=l.state;if(!l.$N){if(Jo(l.componentWillReceiveProps)){if(l.$BR=!0,l.componentWillReceiveProps(s,r),l.$UN)return;l.$BR=!1}Zo(l.$PS)||(p=ei(p,l.$PS),l.$PS=null)}gu(l,p,s,n,r,o,!1,i,a,u),f!==c&&(Na(f),Pa(c,l,a))}function wu(e,t,n,r,o,i,a,u){var l=!0,s=t.props||ni,c=t.ref,f=e.props,p=!Qo(c),d=e.children;if(p&&Jo(c.onComponentShouldUpdate)&&(l=c.onComponentShouldUpdate(f,s)),!1!==l){p&&Jo(c.onComponentWillUpdate)&&c.onComponentWillUpdate(f,s);var h=Bi(za(t,r));su(d,h,n,r,o,i,a,u),t.children=h,p&&Jo(c.onComponentDidUpdate)&&c.onComponentDidUpdate(f,s)}else t.children=d}function xu(e,t){var n=t.children,r=t.dom=e.dom;n!==e.children&&(r.nodeValue=n)}function Cu(e,t,n,r,o,i,a,u,l,s){for(var c,f,p=i>a?a:i,d=0;da)for(d=p;dd||v>h)break e;m=e[v],y=t[v]}for(m=e[d],y=t[h];m.key===y.key;){if(16384&y.flags&&(t[h]=y=Mi(y)),su(m,y,n,r,o,u,s,c),e[d]=y,h--,v>--d||v>h)break e;m=e[d],y=t[h]}}if(v>d){if(v<=h)for(p=(f=h+1)h)for(;v<=d;)Ua(e[v++],n,c);else ku(e,t,r,i,a,d,h,v,n,o,u,l,s,c)}function ku(e,t,n,r,o,i,a,u,l,s,c,f,p,d){var h,v,m=0,y=0,g=u,b=u,w=i-u+1,x=a-u+1,C=new Int32Array(x+1),S=w===r,k=!1,_=0,O=0;if(o<4||(w|x)<32)for(y=g;y<=i;++y)if(h=e[y],Ou?k=!0:_=u,16384&v.flags&&(t[u]=v=Mi(v)),su(h,v,l,n,s,c,p,d),++O;break}!S&&u>a&&Ua(h,l,d)}else S||Ua(h,l,d);else{var $={};for(y=b;y<=a;++y)$[t[y].key]=y;for(y=g;y<=i;++y)if(h=e[y],Og;)Ua(e[g++],l,d);C[u-b]=y+1,_>u?k=!0:_=u,16384&(v=t[u]).flags&&(t[u]=v=Mi(v)),su(h,v,l,n,s,c,p,d),++O}else S||Ua(h,l,d);else S||Ua(h,l,d)}if(S)La(l,f,e,d),eu(t,l,n,s,c,p,d);else if(k){var A=Ou(C);for(u=A.length-1,y=x-1;y>=0;y--)0===C[y]?(16384&(v=t[_=y+b]).flags&&(t[_]=v=Mi(v)),Qa(v,l,n,s,(m=_+1)=0;y--)0===C[y]&&(16384&(v=t[_=y+b]).flags&&(t[_]=v=Mi(v)),Qa(v,l,n,s,(m=_+1)_u&&(_u=l,Ca=new Int32Array(l),Sa=new Int32Array(l));n>1]]0&&(Sa[n]=Ca[i-1]),Ca[i]=n)}i=o+1;var s=new Int32Array(i);for(a=Ca[i-1];i-- >0;)s[i]=a,a=Sa[a],Ca[i]=0;return s}function $u(e,t,n,r){var o=[],i=new ri,a=t.$V;xi.v=!0,Qo(a)?Qo(e)||(16384&e.flags&&(e=Mi(e)),Qa(e,t,r,!1,null,o,i),t.$V=e,a=e):Qo(e)?(Ua(a,t,i),t.$V=null):(16384&e.flags&&(e=Mi(e)),su(a,e,t,r,!1,null,o,i),a=t.$V=e),ci(o),di(i.componentDidAppear),xi.v=!1,Jo(n)&&n(),Jo(Ci.renderComplete)&&Ci.renderComplete(a,t)}function Au(e,t,n,r){void 0===n&&(n=null),void 0===r&&(r=ni),$u(e,t,n,r)}"undefined"!==typeof document&&window.Node&&(Node.prototype.$EV=null,Node.prototype.$V=null);var Eu=[],Tu="undefined"!==typeof Promise?Promise.resolve().then.bind(Promise.resolve()):function(e){window.setTimeout(e,0)},Nu=!1;function Pu(e,t,n,r){var o=e.$PS;if(Jo(t)&&(t=t(o?ei(e.state,o):e.state,e.props,e.context)),Qo(o))e.$PS=t;else for(var i in t)o[i]=t[i];if(e.$BR)Jo(n)&&e.$L.push(n.bind(e));else{if(!xi.v&&0===Eu.length)return Vu(e,r),void(Jo(n)&&n.call(e));if(-1===Eu.indexOf(e)&&Eu.push(e),r&&(e.$F=!0),Nu||(Nu=!0,Tu(Du)),Jo(n)){var a=e.$QU;a||(a=e.$QU=[]),a.push(n)}}}function Uu(e){for(var t=e.$QU,n=0;n=0;o--)if(t[n=r[o]]!==e[n])return!0;return!1}var Ku={componentWillMount:function(){var e=this,t=this.displayName||this.name||this.constructor&&(this.constructor.displayName||this.constructor.name)||"",n=!1;function r(e){var t=this[e],r=Ur("reactive "+e);Object.defineProperty(this,e,{configurable:!0,enumerable:!0,get:function(){return r.reportObserved(),t},set:function(e){Gu(t,e)?(t=e,n=!0,r.reportChanged(),n=!1):t=e}})}r.call(this,"props"),r.call(this,"state");var o=this,i=this.render.bind(this),a=function(){return i(o.props,o.state,o.context)},u=null,l=!1,s=function(){var e;l=!1;var t=null;if(u.track((function(){try{t=yn(!1,a)}catch(t){e=t}})),e)throw Wu.emit(e),e;return t};this.render=function(){return(u=new Ho(t+".render()",(function(){l||(l=!0,"function"===typeof e.componentWillReact&&e.componentWillReact(),n||e.forceUpdate())}))).reactComponent=e,s.$mobx=u,s.$base=e.render,e.render=s,s()}},componentWillUnmount:function(){this.render.$mobx&&(this.render.$mobx.dispose(),this.render=this.render.$base)},componentDidMount:function(){},componentDidUpdate:function(){},shouldComponentUpdate:function(e,t){if(this.state!==t)return!0;return Gu(this.props,e)}};function zu(e,t){var n;if("string"===typeof e)throw new Error("Store names should be provided as array");if(Array.isArray(e))return Hu||(Hu=!0,Bu('Mobx observer: Using observer to inject stores is deprecated since 4.0. Use `@inject("store1", "store2") @observer ComponentClass` or `inject("store1", "store2")(observer(componentClass))` instead of `@observer(["store1", "store2"]) ComponentClass`')),t?el.apply(null,e)(zu(t)):function(t){return zu(e,t)};var r,o=e;if(!0===o.isMobxInjector&&Bu("Mobx observer: You are trying to use 'observer' on a component that already has 'inject'. Please apply 'observer' before applying 'inject'"),"function"===typeof o&&(!o.prototype||!o.prototype.render))return zu((n=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.render=function(e,t,n){return o(e,n)},t}(ju),n.displayName=o.displayName||o.name,n.defaultProps=o.defaultProps,n));if(!o)throw new Error("Please pass a valid component to 'observer'");return qu(r=o.prototype||o,"componentWillMount",!0),qu(r,"componentDidMount",!1),qu(r,"componentWillUnmount",!1),qu(r,"componentDidUpdate",!1),r.shouldComponentUpdate||(r.shouldComponentUpdate=Ku.shouldComponentUpdate),o.isMobXReactObserver=!0,o}zu((function(e){return(0,e.children)()})).displayName="Observer";var Qu,Xu,Ju={isMobxInjector:{configurable:!0,enumerable:!0,value:!0,writable:!0}};function Yu(e,t,n){var r="inject-"+(t.displayName||t.name||t.constructor&&t.constructor.name||"Unknown");n&&(r+="-with-"+n);var o=function(n){function r(e,t){n.call(this,e,t),this.storeRef=this.storeRef.bind(this)}return n&&(r.__proto__=n),r.prototype=Object.create(n&&n.prototype),r.prototype.constructor=r,r.prototype.storeRef=function(e){this.wrappedInstance=e},r.prototype.render=function(n,r,o){var i,a={};for(i in n)a[i]=n[i];var u=e(o.mobxStores||{},a,o)||{};for(i in u)a[i]=u[i];return Ui(2,t,a,null,Ru(t)?null:this.storeRef)},r}(ju);return o.displayName=r,o.isMobxInjector=!1,Iu(o,t),o.wrappedComponent=t,Object.defineProperties(o,Ju),o}function Zu(e){return function(t,n){for(var r=0,o=e.length;r60)return t=(e%60).toFixed(2).split("."),Math.floor(e/60)+":"+t[0].lpad("0",2)+"."+t[1];return parseFloat(e).toFixed(2)}function sl(e){return"Query elapsed"+(e>=10?" warn_long":e>=1?" warn":" short")}function cl(e){return"label"+(e>=20?" label-important":e>=10?" label-warning":" label-success")}function fl(e){var t=15*Math.random();return e.elapsed=t,e.formatElapsed=ll(t),e.elapsedClassName=sl(t),e.query="SELECT blah FROM something",e.waiting=Math.random()<.5,Math.random()<.2&&(e.query=" in transaction"),Math.random()<.1&&(e.query="vacuum"),e}function pl(e){e.formatElapsed="",e.elapsedClassName="",e.query="",e.elapsed=null,e.waiting=null}function dl(e,t,n){e.lastMutationId=t;for(var r=0;r<12;r++){var o=e.lastSample.queries[r];r<=n?fl(o):pl(o)}return e.lastSample.nbQueries=n,e.lastSample.countClassName=cl(n),e}function hl(){for(var e,t=o(ul);!(e=t()).done;){var n=e.value;Math.random()0&&(o+=.01652892561983471*(1e3/(i-r)-o)),r=i,t.addSample(o),n.invalidate(),requestAnimationFrame(e)}))}(),function(e){if(void 0===e&&(e=i.HideMin|i.HideMean),h(),void 0===performance.memory)return;var t=new u(100),n=new p("Memory",e,"MB",t);d.appendChild(n.element),function e(){t.addSample(Math.round(performance.memory.usedJSHeapSize/1048576)),n.invalidate(),setTimeout(e,30)}()}(),function(e,t){void 0===t&&(t=0),h();var n=m[e];void 0===n&&(m[e]=n=new v(e,"ms",t),d.appendChild(n.widget.element))}("view update"),Ll=J(Qu.ComponentFunction,Bl,{list:ul}),void 0===Il&&(Il=null),void 0===Fl&&(Fl=O),function(e,t,n,r){var o=[],i=t.$V;I.v=!0,b(i)?b(e)||(16384&e.flags&&(e=te(e)),ft(e,t,r,!1,null,o),t.$V=e,i=e):b(e)?(Je(i,t),t.$V=null):(16384&e.flags&&(e=te(e)),kt(i,e,t,r,!1,null,o),i=t.$V=e),U(o),I.v=!1,x(n)&&n(),x(F.renderComplete)&&F.renderComplete(i,t)}(Ll,yl,Il,Fl),setInterval((function(){var e,t;Rl(),e=performance.now(),void 0!==(t=m["view update"])&&-1!==t.startTime&&(t.data.addSample(e-t.startTime),t.widget.invalidate())}),0)}(); + ***************************************************************************** */var Da=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};function Ma(e,t){function n(){this.constructor=e}Da(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var La=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function Ra(){for(var e=[],t=0;t0)for(var u=0;u",e);if(2===arguments.length&&"function"===typeof t)return Ja(e,t);if(1===arguments.length&&"string"===typeof e)return rs(e);if(!0!==r)return rs(t).apply(null,arguments);e[t]=Ja(e.name||t,n.value)};function as(e,t,n){Du(e,t,Ja(t,n.bind(e)))}os.bound=function(e,t,n,r){if(!0===r)return as(e,t,n.value),null;if(n)return{configurable:!0,enumerable:!1,get:function(){return as(this,t,n.value||n.initializer.call(this)),this[t]},set:ns};return{enumerable:!1,configurable:!0,set:function(e){as(this,t,e)},get:function(){return}}};var ss=Object.prototype.toString;function us(e,t){return ls(e,t)}function ls(e,t,n,r){if(e===t)return 0!==e||1/e===1/t;if(null==e||null==t)return!1;if(e!==e)return t!==t;var i=typeof e;if("function"!==i&&"object"!==i&&"object"!=typeof t)return!1;return cs(e,t,n,r)}function cs(e,t,n,r){e=fs(e),t=fs(t);var i=ss.call(e);if(i!==ss.call(t))return!1;switch(i){case"[object RegExp]":case"[object String]":return""+e===""+t;case"[object Number]":if(+e!==+e)return+t!==+t;return 0===+e?1/+e===1/t:+e===+t;case"[object Date]":case"[object Boolean]":return+e===+t;case"[object Symbol]":return"undefined"!==typeof Symbol&&Symbol.valueOf.call(e)===Symbol.valueOf.call(t)}var o="[object Array]"===i;if(!o){if("object"!=typeof e||"object"!=typeof t)return!1;var a=e.constructor,s=t.constructor;if(a!==s&&!("function"===typeof a&&a instanceof a&&"function"===typeof s&&s instanceof s)&&"constructor"in e&&"constructor"in t)return!1}r=r||[];for(var u=(n=n||[]).length;u--;)if(n[u]===e)return r[u]===t;if(n.push(e),r.push(t),o){if((u=e.length)!==t.length)return!1;for(;u--;)if(!ls(e[u],t[u],n,r))return!1}else{var l,c=Object.keys(e);if(u=c.length,Object.keys(t).length!==u)return!1;for(;u--;)if(!hs(t,l=c[u])||!ls(e[l],t[l],n,r))return!1}return n.pop(),r.pop(),!0}function fs(e){if(Su(e))return e.peek();if(Ru(e)||fu(e))return Bu(e.entries());return e}function hs(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function ps(e,t){return e===t}var ds={identity:ps,structural:function(e,t){return us(e,t)},default:function(e,t){return Uu(e,t)||ps(e,t)}};function vs(e,t){void 0===t&&(t=Cu);var n,r=t&&t.name||e.name||"Autorun@"+ju();if(t.scheduler||t.delay){var i=ms(t),o=!1;n=new _l(r,(function(){o||(o=!0,i((function(){o=!1,n.isDisposed||n.track(a)})))}),t.onError)}else n=new _l(r,(function(){this.track(a)}),t.onError);function a(){e(n)}return n.schedule(),n.getDisposer()}var ys=function(e){return e()};function ms(e){return e.scheduler?e.scheduler:e.delay?function(t){return setTimeout(t,e.delay)}:ys}var bs=function(){function e(e){this.dependenciesState=Fu.NOT_TRACKING,this.observing=[],this.newObserving=null,this.isBeingObserved=!1,this.isPendingUnobservation=!1,this.observers=[],this.observersIndexes={},this.diffValue=0,this.runId=0,this.lastAccessedBy=0,this.lowestObserverState=Fu.UP_TO_DATE,this.unboundDepsCount=0,this.__mapid="#"+ju(),this.value=new al(null),this.isComputing=!1,this.isRunningSetter=!1,this.isTracing=Wu.NONE,this.derivation=e.get,this.name=e.name||"ComputedValue@"+ju(),e.set&&(this.setter=Ja(this.name+"-setter",e.set)),this.equals=e.equals||(e.compareStructural||e.struct?ds.structural:ds.default),this.scope=e.context,this.requiresReaction=!!e.requiresReaction,this.keepAlive=!!e.keepAlive}return e.prototype.onBecomeStale=function(){rl(this)},e.prototype.onBecomeUnobserved=function(){},e.prototype.onBecomeObserved=function(){},e.prototype.get=function(){this.isComputing&&Eu("Cycle detected in computation "+this.name+": "+this.derivation),0!==qu.inBatch||0!==this.observers.length||this.keepAlive?(el(this),ul(this)&&this.trackAndCompute()&&nl(this)):ul(this)&&(this.warnAboutUntrackedRead(),Qu(),this.value=this.computeValue(!1),Zu());var e=this.value;if(sl(e))throw e.cause;return e},e.prototype.peek=function(){var e=this.computeValue(!1);if(sl(e))throw e.cause;return e},e.prototype.set=function(e){if(this.setter){Tu(!this.isRunningSetter,"The setter of computed value '"+this.name+"' is trying to update itself. Did you intend to update an _observable_ value, instead of the computed property?"),this.isRunningSetter=!0;try{this.setter.call(this.scope,e)}finally{this.isRunningSetter=!1}}else Tu(!1,!1)},e.prototype.trackAndCompute=function(){Ga()&&Ka({object:this.scope,type:"compute",name:this.name});var e=this.value,t=this.dependenciesState===Fu.NOT_TRACKING,n=this.computeValue(!0),r=t||sl(e)||sl(n)||!this.equals(e,n);return r&&(this.value=n),r},e.prototype.computeValue=function(e){var t;if(this.isComputing=!0,qu.computationDepth++,e)t=cl(this,this.derivation,this.scope);else if(!0===qu.disableErrorBoundaries)t=this.derivation.call(this.scope);else try{t=this.derivation.call(this.scope)}catch(e){t=new al(e)}return qu.computationDepth--,this.isComputing=!1,t},e.prototype.suspend=function(){this.keepAlive||(hl(this),this.value=void 0)},e.prototype.observe=function(e,t){var n=this,r=!0,i=void 0;return vs((function(){var o=n.get();if(!r||t){var a=dl();e({type:"update",object:n,newValue:o,oldValue:i}),vl(a)}r=!1,i=o}))},e.prototype.warnAboutUntrackedRead=function(){return},e.prototype.toJSON=function(){return this.get()},e.prototype.toString=function(){return this.name+"["+this.derivation.toString()+"]"},e.prototype.valueOf=function(){return Hu(this.get())},e}();bs.prototype[$u()]=bs.prototype.valueOf;var _s=Lu("ComputedValue",bs);function gs(e){return void 0!==e.interceptors&&e.interceptors.length>0}function ws(e,t){var n=e.interceptors||(e.interceptors=[]);return n.push(t),Nu((function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)}))}function Os(e,t){var n=dl();try{var r=e.interceptors;if(r)for(var i=0,o=r.length;i0}function Ss(e,t){var n=e.changeListeners||(e.changeListeners=[]);return n.push(t),Nu((function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)}))}function As(e,t){var n=dl(),r=e.changeListeners;if(!r)return;for(var i=0,o=(r=r.slice()).length;i2&&Zs("box");var n=Gs(t);return new Cs(e,Ks(n),n.name)},shallowBox:function(e,t){return arguments.length>2&&Zs("shallowBox"),Qs.box(e,{name:t,deep:!1})},array:function(e,t){arguments.length>2&&Zs("array");var n=Gs(t);return new bu(e,Ks(n),n.name)},shallowArray:function(e,t){return arguments.length>2&&Zs("shallowArray"),Qs.array(e,{name:t,deep:!1})},map:function(e,t){arguments.length>2&&Zs("map");var n=Gs(t);return new uu(e,Ks(n),n.name)},shallowMap:function(e,t){return arguments.length>2&&Zs("shallowMap"),Qs.map(e,{name:t,deep:!1})},object:function(e,t,n){"string"===typeof arguments[1]&&Zs("object");var r=Gs(n);return Fs({},e,t,r)},shallowObject:function(e,t){return"string"===typeof arguments[1]&&Zs("shallowObject"),Qs.object(e,{},{name:t,deep:!1})},ref:Xs,shallow:zs,deep:qs,struct:Js},Qs=function(e,t,n){if("string"===typeof arguments[1])return qs.apply(null,arguments);if($s(e))return e;var r=Vu(e)?Qs.object(e,t,n):Array.isArray(e)?Qs.array(e,t):Ru(e)?Qs.map(e,t):e;if(r!==e)return r;Eu(!1)};function Zs(e){Eu("Expected one or two arguments to observable."+e+". Did you accidentally try to use observable."+e+" as decorator?")}function eu(e,t,n){if($s(e))return e;if(Array.isArray(e))return Qs.array(e,{name:n});if(Vu(e))return Qs.object(e,void 0,{name:n});if(Ru(e))return Qs.map(e,{name:n});return e}function tu(e){return e}function nu(){return"function"===typeof Symbol&&Symbol.iterator||"@@iterator"}function ru(e,t){Mu(e,nu(),t)}function iu(e){return e[nu()]=ou,e}function ou(){return this}function au(e,t){void 0===t&&(t=void 0),Qu();try{return e.apply(t)}finally{Zu()}}Object.keys(Ys).forEach((function(e){return Qs[e]=Ys[e]}));var su={},uu=function(){function e(e,t,n){if(void 0===t&&(t=eu),void 0===n&&(n="ObservableMap@"+ju()),this.enhancer=t,this.name=n,this.$mobx=su,this._keys=new bu(void 0,tu,this.name+".keys()",!0),"function"!==typeof Map)throw new Error("mobx.map requires Map polyfill for the current browser. Check babel-polyfill or core-js/es6/map.js");this._data=new Map,this._hasMap=new Map,this.merge(e)}return e.prototype._has=function(e){return this._data.has(e)},e.prototype.has=function(e){if(this._hasMap.has(e))return this._hasMap.get(e).get();return this._updateHasMapEntry(e,!1).get()},e.prototype.set=function(e,t){var n=this._has(e);if(gs(this)){var r=Os(this,{type:n?"update":"add",object:this,newValue:t,name:e});if(!r)return this;t=r.newValue}return n?this._updateValue(e,t):this._addValue(e,t),this},e.prototype.delete=function(e){var t=this;if(gs(this)&&!(i=Os(this,{type:"delete",object:this,name:e})))return!1;if(this._has(e)){var n=Ga(),r=xs(this),i=r||n?{type:"delete",object:this,oldValue:this._data.get(e).value,name:e}:null;return n&&qa(La({},i,{name:this.name,key:e})),au((function(){t._keys.remove(e),t._updateHasMapEntry(e,!1),t._data.get(e).setNewValue(void 0),t._data.delete(e)})),r&&As(this,i),n&&Xa(),!0}return!1},e.prototype._updateHasMapEntry=function(e,t){var n=this._hasMap.get(e);return n?n.setNewValue(t):(n=new Cs(t,tu,this.name+"."+e+"?",!1),this._hasMap.set(e,n)),n},e.prototype._updateValue=function(e,t){var n=this._data.get(e);if((t=n.prepareNewValue(t))!==qu.UNCHANGED){var r=Ga(),i=xs(this),o=i||r?{type:"update",object:this,oldValue:n.value,name:e,newValue:t}:null;r&&qa(La({},o,{name:this.name,key:e})),n.setNewValue(t),i&&As(this,o),r&&Xa()}},e.prototype._addValue=function(e,t){var n=this;au((function(){var r=new Cs(t,n.enhancer,n.name+"."+e,!1);n._data.set(e,r),t=r.value,n._updateHasMapEntry(e,!0),n._keys.push(e)}));var r=Ga(),i=xs(this),o=i||r?{type:"add",object:this,name:e,newValue:t}:null;r&&qa(La({},o,{name:this.name,key:e})),i&&As(this,o),r&&Xa()},e.prototype.get=function(e){if(this.has(e))return this.dehanceValue(this._data.get(e).get());return this.dehanceValue(void 0)},e.prototype.dehanceValue=function(e){if(void 0!==this.dehancer)return this.dehancer(e);return e},e.prototype.keys=function(){return this._keys[nu()]()},e.prototype.values=function(){var e=this,t=0;return iu({next:function(){return t0)return e.map(this.dehancer);return e},e.prototype.intercept=function(e){return ws(this,e)},e.prototype.observe=function(e,t){return void 0===t&&(t=!1),t&&e({object:this.array,type:"splice",index:0,added:this.values.slice(),addedCount:this.values.length,removed:[],removedCount:0}),Ss(this,e)},e.prototype.getArrayLength=function(){return this.atom.reportObserved(),this.values.length},e.prototype.setArrayLength=function(e){if("number"!==typeof e||e<0)throw new Error("[mobx.array] Out of range: "+e);var t=this.values.length;if(e===t)return;if(e>t){for(var n=new Array(e-t),r=0;r0&&e+t+1>vu&&Ou(e+t+1)},e.prototype.spliceWithArray=function(e,t,n){var r=this;ll(this.atom);var i=this.values.length;if(void 0===e?e=0:e>i?e=i:e<0&&(e=Math.max(0,i+e)),t=1===arguments.length?i-e:void 0===t||null===t?0:Math.max(0,Math.min(t,i-e)),void 0===n&&(n=Au),gs(this)){var o=Os(this,{object:this.array,type:"splice",index:e,removedCount:t,added:n});if(!o)return Au;t=o.removedCount,n=o.added}var a=(n=0===n.length?n:n.map((function(e){return r.enhancer(e,void 0)}))).length-t;this.updateArrayLength(i,a);var s=this.spliceItemsIntoValues(e,t,n);return 0===t&&0===n.length||this.notifyArraySplice(e,n,s),this.dehanceValues(s)},e.prototype.spliceItemsIntoValues=function(e,t,n){var r;if(n.length<1e4)return(r=this.values).splice.apply(r,Ra([e,t],n));var i=this.values.slice(e,e+t);return this.values=this.values.slice(0,e).concat(n,this.values.slice(e+t)),i},e.prototype.notifyArrayChildUpdate=function(e,t,n){var r=!this.owned&&Ga(),i=xs(this),o=i||r?{object:this.array,type:"update",index:e,newValue:t,oldValue:n}:null;r&&qa(La({},o,{name:this.atom.name})),this.atom.reportChanged(),i&&As(this,o),r&&Xa()},e.prototype.notifyArraySplice=function(e,t,n){var r=!this.owned&&Ga(),i=xs(this),o=i||r?{object:this.array,type:"splice",index:e,removed:n,added:t,removedCount:n.length,addedCount:t.length}:null;r&&qa(La({},o,{name:this.atom.name})),this.atom.reportChanged(),i&&As(this,o),r&&Xa()},e}(),bu=function(e){function t(t,n,r,i){void 0===r&&(r="ObservableArray@"+ju()),void 0===i&&(i=!1);var o=e.call(this)||this,a=new mu(r,n,o,i);if(Mu(o,"$mobx",a),t&&t.length){var s=es(!0);o.spliceWithArray(0,0,t),ts(s)}return du&&Object.defineProperty(a.array,"0",_u),o}return Ma(t,e),t.prototype.intercept=function(e){return this.$mobx.intercept(e)},t.prototype.observe=function(e,t){return void 0===t&&(t=!1),this.$mobx.observe(e,t)},t.prototype.clear=function(){return this.splice(0)},t.prototype.concat=function(){for(var e=[],t=0;t-1)return this.splice(t,1),!0;return!1},t.prototype.move=function(e,t){function n(e){if(e<0)throw new Error("[mobx.array] Index out of bounds: "+e+" is negative");var t=this.$mobx.values.length;if(e>=t)throw new Error("[mobx.array] Index out of bounds: "+e+" is not smaller than "+t)}if(n.call(this,e),n.call(this,t),e===t)return;var r,i=this.$mobx.values;r=e0&&!e.__mobxGlobals&&(Ku=!1),e.__mobxGlobals&&e.__mobxGlobals.version!==(new Gu).version&&(Ku=!1),Ku?e.__mobxGlobals?(e.__mobxInstanceCount+=1,e.__mobxGlobals.UNCHANGED||(e.__mobxGlobals.UNCHANGED={}),e.__mobxGlobals):(e.__mobxInstanceCount=1,e.__mobxGlobals=new Gu):(setTimeout((function(){Eu("There are multiple, different versions of MobX active. Make sure MobX is loaded only once or use `configure({ isolateGlobalState: true })`")}),1),new Gu)}();function zu(e){var t,n,r={name:e.name};return e.observing&&e.observing.length>0&&(r.dependencies=(t=e.observing,n=[],t.forEach((function(e){-1===n.indexOf(e)&&n.push(e)})),n).map(zu)),r}function Xu(e,t){var n=e.observers.length;n&&(e.observersIndexes[t.__mapid]=n),e.observers[n]=t,e.lowestObserverState>t.dependenciesState&&(e.lowestObserverState=t.dependenciesState)}function Ju(e,t){if(1===e.observers.length)e.observers.length=0,Yu(e);else{var n=e.observers,r=e.observersIndexes,i=n.pop();if(i!==t){var o=r[t.__mapid]||0;o?r[i.__mapid]=o:delete r[i.__mapid],n[o]=i}delete r[t.__mapid]}}function Yu(e){!1===e.isPendingUnobservation&&(e.isPendingUnobservation=!0,qu.pendingUnobservations.push(e))}function Qu(){qu.inBatch++}function Zu(){if(0===--qu.inBatch){gl();for(var e=qu.pendingUnobservations,t=0;t0&&Yu(e),!1}function tl(e){if(e.lowestObserverState===Fu.STALE)return;e.lowestObserverState=Fu.STALE;for(var t=e.observers,n=t.length;n--;){var r=t[n];r.dependenciesState===Fu.UP_TO_DATE&&(r.isTracing!==Wu.NONE&&il(r,e),r.onBecomeStale()),r.dependenciesState=Fu.STALE}}function nl(e){if(e.lowestObserverState===Fu.STALE)return;e.lowestObserverState=Fu.STALE;for(var t=e.observers,n=t.length;n--;){var r=t[n];r.dependenciesState===Fu.POSSIBLY_STALE?r.dependenciesState=Fu.STALE:r.dependenciesState===Fu.UP_TO_DATE&&(e.lowestObserverState=Fu.UP_TO_DATE)}}function rl(e){if(e.lowestObserverState!==Fu.UP_TO_DATE)return;e.lowestObserverState=Fu.POSSIBLY_STALE;for(var t=e.observers,n=t.length;n--;){var r=t[n];r.dependenciesState===Fu.UP_TO_DATE&&(r.dependenciesState=Fu.POSSIBLY_STALE,r.isTracing!==Wu.NONE&&il(r,e),r.onBecomeStale())}}function il(e,t){if(console.log("[mobx.trace] '"+e.name+"' is invalidated due to a change in: '"+t.name+"'"),e.isTracing===Wu.BREAK){var n=[];ol(zu(hu(e,void 0)),n,1),new Function("debugger;\n/*\nTracing '"+e.name+"'\n\nYou are entering this break point because derivation '"+e.name+"' is being traced and '"+t.name+"' is now forcing it to update.\nJust follow the stacktrace you should now see in the devtools to see precisely what piece of your code is causing this update\nThe stackframe you are looking for is at least ~6-8 stack-frames up.\n\n"+(e instanceof bs?e.derivation.toString():"")+"\n\nThe dependencies for this derivation are:\n\n"+n.join("\n")+"\n*/\n ")()}}function ol(e,t,n){if(t.length>=1e3)return void t.push("(and many more)");t.push(""+new Array(n).join("\t")+e.name),e.dependencies&&e.dependencies.forEach((function(e){return ol(e,t,n+1)}))}!function(e){e[e.NOT_TRACKING=-1]="NOT_TRACKING",e[e.UP_TO_DATE=0]="UP_TO_DATE",e[e.POSSIBLY_STALE=1]="POSSIBLY_STALE",e[e.STALE=2]="STALE"}(Fu||(Fu={})),function(e){e[e.NONE=0]="NONE",e[e.LOG=1]="LOG",e[e.BREAK=2]="BREAK"}(Wu||(Wu={}));var al=function(e){this.cause=e};function sl(e){return e instanceof al}function ul(e){switch(e.dependenciesState){case Fu.UP_TO_DATE:return!1;case Fu.NOT_TRACKING:case Fu.STALE:return!0;case Fu.POSSIBLY_STALE:for(var t=dl(),n=e.observing,r=n.length,i=0;i0;qu.computationDepth>0&&t&&Eu(!1),qu.allowStateChanges||!t&&"strict"!==qu.enforceActions||Eu(!1)}function cl(e,t,n){yl(e),e.newObserving=new Array(e.observing.length+100),e.unboundDepsCount=0,e.runId=++qu.runId;var r,i=qu.trackingDerivation;if(qu.trackingDerivation=e,!0===qu.disableErrorBoundaries)r=t.call(n);else try{r=t.call(n)}catch(e){r=new al(e)}return qu.trackingDerivation=i,fl(e),r}function fl(e){for(var t=e.observing,n=e.observing=e.newObserving,r=Fu.UP_TO_DATE,i=0,o=e.unboundDepsCount,a=0;ar&&(r=s.dependenciesState);for(n.length=i,e.newObserving=null,o=t.length;o--;)0===(s=t[o]).diffValue&&Ju(s,e),s.diffValue=0;for(;i--;){var s;1===(s=n[i]).diffValue&&(s.diffValue=0,Xu(s,e))}r!==Fu.UP_TO_DATE&&(e.dependenciesState=r,e.onBecomeStale())}function hl(e){var t=e.observing;e.observing=[];for(var n=t.length;n--;)Ju(t[n],e);e.dependenciesState=Fu.NOT_TRACKING}function pl(e){var t=dl(),n=e();return vl(t),n}function dl(){var e=qu.trackingDerivation;return qu.trackingDerivation=null,e}function vl(e){qu.trackingDerivation=e}function yl(e){if(e.dependenciesState===Fu.UP_TO_DATE)return;e.dependenciesState=Fu.UP_TO_DATE;for(var t=e.observing,n=t.length;n--;)t[n].lowestObserverState=Fu.UP_TO_DATE}function ml(){for(var e=[],t=0;t0||qu.isRunningReactions)return;wl()}function wl(){qu.isRunningReactions=!0;for(var e=qu.pendingReactions,t=0;e.length>0;){100===++t&&(console.error("Reaction doesn't converge to a stable state after 100 iterations. Probably there is a cycle in the reactive function: "+e[0]),e.splice(0));for(var n=e.splice(0),r=0,i=n.length;r60)return t=(e%60).toFixed(2).split("."),Math.floor(e/60)+":"+t[0].lpad("0",2)+"."+t[1];return parseFloat(e).toFixed(2)}function jl(e){return"Query elapsed"+(e>=10?" warn_long":e>=1?" warn":" short")}function El(e){return"label"+(e>=20?" label-important":e>=10?" label-warning":" label-success")}function Tl(e){var t=15*Math.random();return e.elapsed=t,e.formatElapsed=kl(t),e.elapsedClassName=jl(t),e.query="SELECT blah FROM something",e.waiting=Math.random()<.5,Math.random()<.2&&(e.query=" in transaction"),Math.random()<.1&&(e.query="vacuum"),e}function Nl(e){e.formatElapsed="",e.elapsedClassName="",e.query="",e.elapsed=null,e.waiting=null}function Pl(e,t,n){e.lastMutationId=t;for(var r=0;r<12;r++){var i=e.lastSample.queries[r];r<=n?Tl(i):Nl(i)}return e.lastSample.nbQueries=n,e.lastSample.countClassName=El(n),e}function Vl(){for(var e,t=i(Cl);!(e=t()).done;){var n=e.value;Math.random()0&&(i+=.01652892561983471*(1e3/(o-r)-i)),r=o,t.addSample(i),n.invalidate(),requestAnimationFrame(e)}))}(),function(e){if(void 0===e&&(e=o.HideMin|o.HideMean),d(),void 0===performance.memory)return;var t=new s(100),n=new h("Memory",e,"MB",t);p.appendChild(n.element),function e(){t.addSample(Math.round(performance.memory.usedJSHeapSize/1048576)),n.invalidate(),setTimeout(e,30)}()}(),function(e,t){void 0===t&&(t=0),d();var n=y[e];void 0===n&&(y[e]=n=new v(e,"ms",t),p.appendChild(n.widget.element))}("view update"),Qt(re(Ol.ComponentFunction,rc,{list:Cl}),Ll),setInterval((function(){var e,t;ic(),e=performance.now(),void 0!==(t=y["view update"])&&-1!==t.startTime&&(t.data.addSample(e-t.startTime),t.widget.invalidate())}),0)}(); diff --git a/docs/dbmonster/dist/bundle.js b/docs/dbmonster/dist/bundle.js index dcd52dcda..971826ddb 100644 --- a/docs/dbmonster/dist/bundle.js +++ b/docs/dbmonster/dist/bundle.js @@ -1 +1 @@ -!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)}(); +!function(){"use strict";var e,n,t=function(e,n,t,i){this.min=e,this.max=n,this.mean=t,this.last=i},i=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;ti&&(i=l),o+=l}var a=e[this._i],u=o/e.length;return new t(n,i,u,a)},e}(),o=[],r=-1,l=(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 i(){this.constructor=n}e(n,t),n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),a=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,o.push(e),-1===r&&requestAnimationFrame((function(e){r=-1;var n=o;o=[];for(var t=0;t0?V(t.componentWillDisappear,H(e,n)):E(e,n,!1)}function I(e,n,t,i,o,r,l,a){e.componentWillMove.push({dom:i,fn:function(){4&l?t.componentWillMove(n,o,i,a):8&l&&t.onComponentWillMove(n,o,i,a)},next:r,parent:o})}function U(e,n,t,i,o){var r,l,a=n.flags;do{var u=n.flags;if(1521&u)return void(m(r)||!y(r.componentWillMove)&&!y(r.onComponentWillMove)?T(t,n.dom,i):I(o,e,r,n.dom,t,i,a,l));var c=n.children;if(4&u)r=n.children,l=n.props,n=c.$LI;else if(8&u)r=n.ref,l=n.props,n=c;else if(8192&u){if(2!==n.childFlags){for(var s=0,f=c.length;s0,c=b(a),s=x(a)&&a[0]===G;u||c||s?(t=t||n.slice(0,r),(u||s)&&(l=Y(l)),(c||s)&&(l.key=G+r),t.push(l)):t&&t.push(l),l.flags|=65536}}i=0===(t=t||n).length?1:8}else(t=n).flags|=65536,81920&n.flags&&(t=Y(n)),i=2;return e.children=t,e.childFlags=i,e}function te(e){if(g(e)||v(e))return z(e,null);if(h(e))return Q(e,0,null);return 16384&e.flags?Y(e):e}var ie="http://www.w3.org/1999/xlink",oe="http://www.w3.org/XML/1998/namespace",re={"xlink:actuate":ie,"xlink:arcrole":ie,"xlink:href":ie,"xlink:role":ie,"xlink:show":ie,"xlink:title":ie,"xlink:type":ie,"xml:base":oe,"xml:lang":oe,"xml:space":oe};function le(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 ae=le(0),ue=le(null),ce=le(!0);function se(e,n){var t=n.$EV;return t||(t=n.$EV=le(null)),t[e]||1===++ae[e]&&(ue[e]=Ce(e)),t}function fe(e,n){var t=n.$EV;t&&t[e]&&(0===--ae[e]&&(document.removeEventListener($(e),ue[e]),ue[e]=null),t[e]=null)}function de(e,n,t,i){if(y(t))se(e,i)[e]=t;else if(k(t)){if(j(n,t))return;se(e,i)[e]=t}else fe(e,i)}function pe(e){return y(e.composedPath)?e.composedPath()[0]:e.target}function he(e,n,t,i){var o=pe(e);do{if(n&&o.disabled)return;var r=o.$EV;if(r){var l=r[t];if(l&&(i.dom=o,l.event?l.event(l.data,e):l(e),e.cancelBubble))return}o=o.parentNode}while(!b(o))}function ve(){this.cancelBubble=!0,this.immediatePropagationStopped||this.stopImmediatePropagation()}function me(){return this.defaultPrevented}function ge(){return this.cancelBubble}function ye(e){var n={dom:document};return e.isDefaultPrevented=me,e.isPropagationStopped=ge,e.stopPropagation=ve,Object.defineProperty(e,"currentTarget",{configurable:!0,get:function(){return n.dom}}),n}function xe(e){return function(n){if(0!==n.button)return void n.stopPropagation();he(n,!0,e,ye(n))}}function be(e){return function(n){he(n,!1,e,ye(n))}}function Ce(e){var n="onClick"===e||"onDblClick"===e?xe(e):be(e);return document.addEventListener($(e),n),n}function ke(e,n){var t=document.createElement("i");return t.innerHTML=n,t.innerHTML===e.innerHTML}function we(e,n,t){if(e[n]){var i=e[n];i.event?i.event(i.data,t):i(t)}else{var o=n.toLowerCase();e[o]&&e[o](t)}}function Me(e,n){var t=function(t){var i=this.$V;if(!i)return;var o=i.props||w,r=i.dom;if(x(e))we(o,e,t);else for(var l=0;l-1&&n.options[r]&&(l=n.options[r].value),t&&m(l)&&(l=e.defaultValue),Ae(i,l)}}var He,_e,Ie=Me("onInput",Oe),Ue=Me("onChange");function Be(e,n){$e(e,"input",Ie),n.onChange&&$e(e,"change",Ue)}function Oe(e,n,t){var i=e.value,o=n.value;if(m(i)){if(t){var r=e.defaultValue;m(r)||r===o||(n.defaultValue=r,n.value=r)}}else o!==i&&(n.defaultValue=i,n.value=i)}function Re(e,n,t,i,o,r){64&e?We(i,t):256&e?Ee(i,t,o,n):128&e&&Oe(i,t,o),r&&(t.$V=n)}function je(e,n,t){64&e?Pe(n,t):256&e?Le(n):128&e&&Be(n,t)}function qe(e){return e.type&&Fe(e.type)?!m(e.checked):!m(e.value)}function Ge(e){e&&!q(e,null)&&e.current&&(e.current=null)}function Xe(e,n,t){e&&(y(e)||void 0!==e.current)&&t.push((function(){q(e,n)||void 0===e.current||(e.current=n)}))}function Ke(e,n,t){ze(e,t),_(e,n,t)}function ze(e,n){var t,i=e.flags,o=e.children;if(481&i){t=e.ref;var r=e.props;Ge(t);var l=e.childFlags;if(!b(r))for(var a=Object.keys(r),u=0,c=a.length;u0?V(t.componentWillDisappear,Je(n,e)):e.textContent=""}function Ze(e,n,t,i){Qe(t,i),8192&n.flags?_(n,e,i):Ye(e,t,i)}function en(e,n,t,i,o){e.componentWillDisappear.push((function(e){4&i?n.componentWillDisappear(t,e):8&i&&n.onComponentWillDisappear(t,o,e)}))}function nn(e){var n=e.event;return function(t){n(e.data,t)}}function tn(e,n,t,i){if(k(t)){if(j(n,t))return;t=nn(t)}$e(i,$(e),t)}function on(e,n,t){if(m(n))return void t.removeAttribute("style");var i,o,r=t.style;if(x(n))return void(r.cssText=n);if(m(e)||x(e))for(i in n)o=n[i],r.setProperty(i,o);else{for(i in n)(o=n[i])!==e[i]&&r.setProperty(i,o);for(i in e)m(n[i])&&r.removeProperty(i)}}function rn(e,n,t,i,o){var r=e&&e.__html||"",l=n&&n.__html||"";r!==l&&(m(l)||ke(i,l)||(b(t)||(12&t.childFlags?Qe(t.children,o):2===t.childFlags&&ze(t.children,o),t.children=null,t.childFlags=1),i.innerHTML=l))}function ln(e,n,t,i,o,r,l,a){switch(e){case"children":case"childrenType":case"className":case"defaultValue":case"key":case"multiple":case"ref":case"selectedIndex":break;case"autoFocus":i.autofocus=!!t;break;case"allowfullscreen":case"autoplay":case"capture":case"checked":case"controls":case"default":case"disabled":case"hidden":case"indeterminate":case"loop":case"muted":case"novalidate":case"open":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"selected":i[e]=!!t;break;case"defaultChecked":case"value":case"volume":if(r&&"value"===e)break;var u=m(t)?"":t;i[e]!==u&&(i[e]=u);break;case"style":on(n,t,i);break;case"dangerouslySetInnerHTML":rn(n,t,l,i,a);break;default:ce[e]?de(e,n,t,i):111===e.charCodeAt(0)&&110===e.charCodeAt(1)?tn(e,n,t,i):m(t)?i.removeAttribute(e):o&&re[e]?i.setAttributeNS(re[e],e,t):i.setAttribute(e,t)}}function an(e,n,t,i,o,r){var l=!1,a=(448&n)>0;for(var u in a&&(l=qe(t))&&je(n,i,t),t)ln(u,null,t[u],i,o,l,null,r);a&&Re(n,e,i,t,!0,l)}function un(e,n,t){var i=te(e.render(n,e.state,t)),o=t;return y(e.getChildContext)&&(o=C(t,e.getChildContext())),e.$CX=o,i}function cn(e,n,t,i,o,r){var l=new n(t,i),a=l.$N=Boolean(n.getDerivedStateFromProps||l.getSnapshotBeforeUpdate);if(l.$SVG=o,l.$L=r,e.children=l,l.$BS=!1,l.context=i,l.props===w&&(l.props=t),a)l.state=B(l,t,l.state);else if(y(l.componentWillMount)){l.$BR=!0,l.componentWillMount();var u=l.$PS;if(!b(u)){var c=l.state;if(b(c))l.state=u;else for(var s in u)c[s]=u[s];l.$PS=null}l.$BR=!1}return l.$LI=un(l,t,i),l}function sn(e,n){var t=e.props||w;return 32768&e.flags?e.type.render(t,e.ref,n):e.type(t,n)}function fn(e,n,t,i,o,r,l){var a=e.flags|=16384;481&a?vn(e,n,t,i,o,r,l):4&a?gn(e,n,t,i,o,r,l):8&a?yn(e,n,t,i,o,r,l):16&a?hn(e,n,o):8192&a?pn(e,t,n,i,o,r,l):1024&a&&dn(e,t,n,o,r,l)}function dn(e,n,t,i,o,r){fn(e.children,e.ref,n,!1,null,o,r);var l=Z();hn(l,t,i),e.dom=l.dom}function pn(e,n,t,i,o,r,l){var a=e.children,u=e.childFlags;12&u&&0===a.length&&(u=e.childFlags=2,a=e.children=Z()),2===u?fn(a,t,n,i,o,r,l):mn(a,t,n,i,o,r,l)}function hn(e,n,t){var i=e.dom=document.createTextNode(e.children);b(n)||T(n,i,t)}function vn(e,n,t,i,o,r,l){var a=e.flags,u=e.props,c=e.className,s=e.childFlags,f=e.dom=S(e.type,i=i||(32&a)>0),d=e.children;if(m(c)||""===c||(i?f.setAttribute("class",c):f.className=c),16===s)R(f,d);else if(1!==s){var p=i&&"foreignObject"!==e.type;2===s?(16384&d.flags&&(e.children=d=Y(d)),fn(d,f,t,p,null,r,l)):8!==s&&4!==s||mn(d,f,t,p,null,r,l)}b(n)||T(n,f,o),b(u)||an(e,a,u,f,i,l),Xe(e.ref,f,r)}function mn(e,n,t,i,o,r,l){for(var a=0;ap)&&(f=N(a[p-1],!1).nextSibling)}An(c,s,a,u,t,i,o,f,e,r,l)}function Dn(e,n,t,i,o){var r=e.ref,l=n.ref,a=n.children;if(An(e.childFlags,n.childFlags,e.children,a,r,t,!1,null,e,i,o),n.dom=e.dom,r!==l&&!g(a)){var u=a.dom;P(r,u),F(l,u)}}function Pn(e,n,t,i,o,r,l){var a,u=n.dom=e.dom,c=e.props,s=n.props,f=!1,d=!1;if(i=i||(32&o)>0,c!==s){var p=c||w;if((a=s||w)!==w)for(var h in(f=(448&o)>0)&&(d=qe(a)),a){var v=p[h],g=a[h];v!==g&&ln(h,v,g,u,i,d,e,l)}if(p!==w)for(var y in p)m(a[y])&&!m(p[y])&&ln(y,p[y],null,u,i,d,e,l)}var x=n.children,b=n.className;e.className!==b&&(m(b)?u.removeAttribute("class"):i?u.setAttribute("class",b):u.className=b),4096&o?Tn(u,x):An(e.childFlags,n.childFlags,e.children,x,u,t,i&&"foreignObject"!==n.type,null,e,r,l),f&&Re(o,n,u,a,!1,d);var C=n.ref,k=e.ref;k!==C&&(Ge(k),Xe(C,u,r))}function Wn(e,n,t,i,o,r,l){ze(e,l),mn(n,t,i,o,N(e,!0),r,l),_(e,t,l)}function An(e,n,t,i,o,r,l,a,u,c,s){switch(e){case 2:switch(n){case 2:$n(t,i,o,r,l,a,c,s);break;case 1:Ke(t,o,s);break;case 16:ze(t,s),R(o,i);break;default:Wn(t,i,o,r,l,c,s)}break;case 1:switch(n){case 2:fn(i,o,r,l,a,c,s);break;case 1:break;case 16:R(o,i);break;default:mn(i,o,r,l,a,c,s)}break;case 16:switch(n){case 16:Fn(t,i,o);break;case 2:Ye(o,t,s),fn(i,o,r,l,a,c,s);break;case 1:Ye(o,t,s);break;default:Ye(o,t,s),mn(i,o,r,l,a,c,s)}break;default:switch(n){case 16:Qe(t,s),R(o,i);break;case 2:Ze(o,u,t,s),fn(i,o,r,l,a,c,s);break;case 1:Ze(o,u,t,s);break;default:var f=0|t.length,d=0|i.length;0===f?d>0&&mn(i,o,r,l,a,c,s):0===d?Ze(o,u,t,s):8===n&&8===e?In(t,i,o,r,l,f,d,a,u,c,s):_n(t,i,o,r,l,f,d,a,c,s)}}}function Nn(e,n,t,i,o){o.push((function(){e.componentDidUpdate(n,t,i)}))}function Vn(e,n,t,i,o,r,l,a,u,c){var s=e.state,f=e.props,d=Boolean(e.$N),p=y(e.shouldComponentUpdate);if(d&&(n=B(e,t,n!==s?C(s,n):n)),l||!p||p&&e.shouldComponentUpdate(t,n,o)){!d&&y(e.componentWillUpdate)&&e.componentWillUpdate(t,n,o),e.props=t,e.state=n,e.context=o;var h=null,v=un(e,t,o);d&&y(e.getSnapshotBeforeUpdate)&&(h=e.getSnapshotBeforeUpdate(f,s)),$n(e.$LI,v,i,e.$CX,r,a,u,c),e.$LI=v,y(e.componentDidUpdate)&&Nn(e,f,s,h,u)}else e.props=t,e.state=n,e.context=o}function Ln(e,n,t,i,o,r,l,a){var u=n.children=e.children;if(b(u))return;u.$L=l;var c=n.props||w,s=n.ref,f=e.ref,d=u.state;if(!u.$N){if(y(u.componentWillReceiveProps)){if(u.$BR=!0,u.componentWillReceiveProps(c,i),u.$UN)return;u.$BR=!1}b(u.$PS)||(d=C(d,u.$PS),u.$PS=null)}Vn(u,d,c,t,i,o,!1,r,l,a),f!==s&&(Ge(f),Xe(s,u,l))}function En(e,n,t,i,o,r,l,a){var u=!0,c=n.props||w,s=n.ref,f=e.props,d=!m(s),p=e.children;if(d&&y(s.onComponentShouldUpdate)&&(u=s.onComponentShouldUpdate(f,c)),!1!==u){d&&y(s.onComponentWillUpdate)&&s.onComponentWillUpdate(f,c);var h=te(sn(n,i));$n(p,h,t,i,o,r,l,a),n.children=h,d&&y(s.onComponentDidUpdate)&&s.onComponentDidUpdate(f,c)}else n.children=p}function Hn(e,n){var t=n.children,i=n.dom=e.dom;t!==e.children&&(i.nodeValue=t)}function _n(e,n,t,i,o,r,l,a,u,c){for(var s,f,d=r>l?l:r,p=0;pl)for(p=d;pp||v>h)break e;m=e[v],g=n[v]}for(m=e[p],g=n[h];m.key===g.key;){if(16384&g.flags&&(n[h]=g=Y(g)),$n(m,g,t,i,o,a,c,s),e[p]=g,h--,v>--p||v>h)break e;m=e[p],g=n[h]}}if(v>p){if(v<=h)for(d=(f=h+1)h)for(;v<=p;)Ke(e[v++],t,s);else Un(e,n,i,r,l,p,h,v,t,o,a,u,c,s)}function Un(e,n,t,i,o,r,l,a,u,c,s,f,d,p){var h,v,m=0,g=0,y=a,x=a,b=r-a+1,C=l-a+1,k=new Int32Array(C+1),w=b===i,M=!1,$=0,F=0;if(o<4||(b|C)<32)for(g=y;g<=r;++g)if(h=e[g],Fa?M=!0:$=a,16384&v.flags&&(n[a]=v=Y(v)),$n(h,v,u,t,c,s,d,p),++F;break}!w&&a>l&&Ke(h,u,p)}else w||Ke(h,u,p);else{var T={};for(g=x;g<=l;++g)T[n[g].key]=g;for(g=y;g<=r;++g)if(h=e[g],Fy;)Ke(e[y++],u,p);k[a-x]=g+1,$>a?M=!0:$=a,16384&(v=n[a]).flags&&(n[a]=v=Y(v)),$n(h,v,u,t,c,s,d,p),++F}else w||Ke(h,u,p);else w||Ke(h,u,p)}if(w)Ze(u,f,e,p),mn(n,u,t,c,s,d,p);else if(M){var S=On(k);for(a=S.length-1,g=C-1;g>=0;g--)0===k[g]?(16384&(v=n[$=g+x]).flags&&(n[$]=v=Y(v)),fn(v,u,t,c,(m=$+1)0&&L(p.componentWillMove)}else if(F!==C)for(g=C-1;g>=0;g--)0===k[g]&&(16384&(v=n[$=g+x]).flags&&(n[$]=v=Y(v)),fn(v,u,t,c,(m=$+1)Bn&&(Bn=u,He=new Int32Array(u),_e=new Int32Array(u));t>1]]0&&(_e[t]=He[r-1]),He[r]=t)}r=o+1;var c=new Int32Array(r);for(l=He[r-1];r-- >0;)c[r]=l,l=_e[l],He[r]=0;return c}function Rn(e,n,t,i){var o=[],r=new M,l=n.$V;m(l)?m(e)||(16384&e.flags&&(e=Y(e)),fn(e,n,i,!1,null,o,r),n.$V=e,l=e):m(e)?(Ke(l,n,r),n.$V=null):(16384&e.flags&&(e=Y(e)),$n(l,e,n,i,!1,null,o,r),l=n.$V=e),W(o),V(r.componentDidAppear),y(t)&&t(),y(O.renderComplete)&&O.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 jn=document.getElementById("app");function qn(e){for(var n,t,i,o=e.length,r=[],l=0;l0&&(l+=.01652892561983471*(1e3/(n-r)-l)),r=n,t.addSample(l),o.invalidate(),requestAnimationFrame(e)}))}(),function(e){if(void 0===e&&(e=n.HideMin|n.HideMean),s(),void 0===performance.memory)return;var t=new i(100),o=new u("Memory",e,"MB",t);c.appendChild(o.element),function e(){t.addSample(Math.round(performance.memory.usedJSHeapSize/1048576)),o.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()),qn(n),p("view update")}),0)}(); diff --git a/docs/event-test/dist/bundle.js b/docs/event-test/dist/bundle.js index 8f1419119..bc332296c 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,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?w(t.componentWillDisappear,x(n,e)):$(n,e,!1)}function F(n,e,t,r,o,l,i,a){n.componentWillMove.push({dom:r,fn:function(){4&i?t.componentWillMove(e,o,r,a):8&i&&t.onComponentWillMove(e,o,r,a)},next:l,parent:o})}function M(n,e,r,l,i){var a,u,c=e.flags;do{var f=e.flags;if(1521&f)return void(t(a)||!o(a.componentWillMove)&&!o(a.onComponentWillMove)?v(r,e.dom,l):F(i,n,a,e.dom,r,l,c,u));var s=e.children;if(4&f)a=e.children,u=e.props,e=s.$LI;else if(8&f)a=e.ref,u=e.props,e=s;else if(8192&f){if(2!==e.childFlags){for(var p=0,d=s.length;p0,v=i(p),h=l(p)&&p[0]===V;d||v||h?(a=a||o.slice(0,f),(d||h)&&(s=X(s)),(v||h)&&(s.key=V+f),a.push(s)):a&&a.push(s),s.flags|=65536}}u=0===(a=a||o).length?1:8}else(a=o).flags|=65536,81920&o.flags&&(a=X(o)),u=2;return t.children=a,t.childFlags=u,t}function G(t){if(r(t)||e(t))return j(t,null);if(n(t))return H(t,0,null);return 16384&t.flags?X(t):t}var z="http://www.w3.org/1999/xlink",J="http://www.w3.org/XML/1998/namespace",Q={"xlink:actuate":z,"xlink:arcrole":z,"xlink:href":z,"xlink:role":z,"xlink:show":z,"xlink:title":z,"xlink:type":z,"xml:base":J,"xml:lang":J,"xml:space":J};function Y(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 Z=Y(0),nn=Y(null),en=Y(!0);function tn(n,e){var t=e.$EV;return t||(t=e.$EV=Y(null)),t[n]||1===++Z[n]&&(nn[n]=vn(n)),t}function rn(n,e){var t=e.$EV;t&&t[n]&&(0===--Z[n]&&(document.removeEventListener(p(n),nn[n]),nn[n]=null),t[n]=null)}function on(n,e,t,r){if(o(t))tn(n,r)[n]=t;else if(c(t)){if(A(e,t))return;tn(n,r)[n]=t}else rn(n,r)}function ln(n){return o(n.composedPath)?n.composedPath()[0]:n.target}function an(n,e,t,r){var o=ln(n);do{if(e&&o.disabled)return;var l=o.$EV;if(l){var a=l[t];if(a&&(r.dom=o,a.event?a.event(a.data,n):a(n),n.cancelBubble))return}o=o.parentNode}while(!i(o))}function un(){this.cancelBubble=!0,this.immediatePropagationStopped||this.stopImmediatePropagation()}function cn(){return this.defaultPrevented}function fn(){return this.cancelBubble}function sn(n){var e={dom:document};return n.isDefaultPrevented=cn,n.isPropagationStopped=fn,n.stopPropagation=un,Object.defineProperty(n,"currentTarget",{configurable:!0,get:function(){return e.dom}}),e}function pn(n){return function(e){if(0!==e.button)return void e.stopPropagation();an(e,!0,n,sn(e))}}function dn(n){return function(e){an(e,!1,n,sn(e))}}function vn(n){var e="onClick"===n||"onDblClick"===n?pn(n):dn(n);return document.addEventListener(p(n),e),e}function hn(n,e){var t=document.createElement("i");return t.innerHTML=e,t.innerHTML===n.innerHTML}function mn(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 gn(n,e){var t=function(t){var r=this.$V;if(!r)return;var i=r.props||f,a=r.dom;if(l(n))mn(i,n,t);else for(var u=0;u-1&&e.options[i]&&(a=e.options[i].value),r&&t(a)&&(a=n.defaultValue),Dn(o,a)}}var Ln,An,Sn=gn("onInput",In),Nn=gn("onChange");function Vn(n,e){yn(n,"input",Sn),e.onChange&&yn(n,"change",Nn)}function In(n,e,r){var o=n.value,l=e.value;if(t(o)){if(r){var i=n.defaultValue;t(i)||i===l||(e.defaultValue=i,e.value=i)}}else l!==o&&(e.defaultValue=o,e.value=o)}function Un(n,e,t,r,o,l){64&n?xn(r,t):256&n?Pn(r,t,o,e):128&n&&In(r,t,o),l&&(t.$V=e)}function En(n,e,t){64&n?$n(e,t):256&n?Wn(e):128&n&&Vn(e,t)}function Tn(n){return n.type&&kn(n.type)?!t(n.checked):!t(n.value)}function Bn(n){n&&!N(n,null)&&n.current&&(n.current=null)}function On(n,e,t){n&&(o(n)||void 0!==n.current)&&t.push((function(){N(n,e)||void 0===n.current||(n.current=e)}))}function jn(n,e,t){Hn(n,t),D(n,e,t)}function Hn(n,e){var r,l=n.flags,a=n.children;if(481&l){r=n.ref;var u=n.props;Bn(r);var c=n.childFlags;if(!i(u))for(var p=Object.keys(u),d=0,v=p.length;d0?w(t.componentWillDisappear,Xn(e,n)):n.textContent=""}function Kn(n,e,t,r){Rn(t,r),8192&e.flags?D(e,n,r):_n(n,t,r)}function qn(n,e,t,r,o){n.componentWillDisappear.push((function(n){4&r?e.componentWillDisappear(t,n):8&r&&e.onComponentWillDisappear(t,o,n)}))}function Gn(n){var e=n.event;return function(t){e(n.data,t)}}function zn(n,e,t,r){if(c(t)){if(A(e,t))return;t=Gn(t)}yn(r,p(n),t)}function Jn(n,e,r){if(t(e))return void r.removeAttribute("style");var o,i,a=r.style;if(l(e))return void(a.cssText=e);if(t(n)||l(n))for(o in e)i=e[o],a.setProperty(o,i);else{for(o in e)(i=e[o])!==n[o]&&a.setProperty(o,i);for(o in n)t(e[o])&&a.removeProperty(o)}}function Qn(n,e,r,o,l){var a=n&&n.__html||"",u=e&&e.__html||"";a!==u&&(t(u)||hn(o,u)||(i(r)||(12&r.childFlags?Rn(r.children,l):2===r.childFlags&&Hn(r.children,l),r.children=null,r.childFlags=1),o.innerHTML=u))}function Yn(n,e,r,o,l,i,a,u){switch(n){case"children":case"childrenType":case"className":case"defaultValue":case"key":case"multiple":case"ref":case"selectedIndex":break;case"autoFocus":o.autofocus=!!r;break;case"allowfullscreen":case"autoplay":case"capture":case"checked":case"controls":case"default":case"disabled":case"hidden":case"indeterminate":case"loop":case"muted":case"novalidate":case"open":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"selected":o[n]=!!r;break;case"defaultChecked":case"value":case"volume":if(i&&"value"===n)break;var c=t(r)?"":r;o[n]!==c&&(o[n]=c);break;case"style":Jn(e,r,o);break;case"dangerouslySetInnerHTML":Qn(e,r,a,o,u);break;default:en[n]?on(n,e,r,o):111===n.charCodeAt(0)&&110===n.charCodeAt(1)?zn(n,e,r,o):t(r)?o.removeAttribute(n):l&&Q[n]?o.setAttributeNS(Q[n],n,r):o.setAttribute(n,r)}}function Zn(n,e,t,r,o,l){var i=!1,a=(448&e)>0;for(var u in a&&(i=Tn(t))&&En(e,r,t),t)Yn(u,null,t[u],r,o,i,null,l);a&&Un(e,n,r,t,!0,i)}function ne(n,e,t){var r=G(n.render(e,n.state,t)),l=t;return o(n.getChildContext)&&(l=a(t,n.getChildContext())),n.$CX=l,r}function ee(n,e,t,r,l,a){var u=new e(t,r),c=u.$N=Boolean(e.getDerivedStateFromProps||u.getSnapshotBeforeUpdate);if(u.$SVG=l,u.$L=a,n.children=u,u.$BS=!1,u.context=r,u.props===f&&(u.props=t),c)u.state=W(u,t,u.state);else if(o(u.componentWillMount)){u.$BR=!0,u.componentWillMount();var s=u.$PS;if(!i(s)){var p=u.state;if(i(p))u.state=s;else for(var d in s)p[d]=s[d];u.$PS=null}u.$BR=!1}return u.$LI=ne(u,t,r),u}function te(n,e){var t=n.props||f;return 32768&n.flags?n.type.render(t,n.ref,e):n.type(t,e)}function re(n,e,t,r,o,l,i){var a=n.flags|=16384;481&a?ae(n,e,t,r,o,l,i):4&a?ce(n,e,t,r,o,l,i):8&a?fe(n,e,t,r,o,l,i):16&a?ie(n,e,o):8192&a?le(n,t,e,r,o,l,i):1024&a&&oe(n,t,e,o,l,i)}function oe(n,e,t,r,o,l){re(n.children,n.ref,e,!1,null,o,l);var i=_();ie(i,t,r),n.dom=i.dom}function le(n,e,t,r,o,l,i){var a=n.children,u=n.childFlags;12&u&&0===a.length&&(u=n.childFlags=2,a=n.children=_()),2===u?re(a,t,e,r,o,l,i):ue(a,t,e,r,o,l,i)}function ie(n,e,t){var r=n.dom=document.createTextNode(n.children);i(e)||v(e,r,t)}function ae(n,e,r,o,l,a,u){var c=n.flags,f=n.props,s=n.className,p=n.childFlags,d=n.dom=h(n.type,o=o||(32&c)>0),m=n.children;if(t(s)||""===s||(o?d.setAttribute("class",s):d.className=s),16===p)L(d,m);else if(1!==p){var g=o&&"foreignObject"!==n.type;2===p?(16384&m.flags&&(n.children=m=X(m)),re(m,d,r,g,null,a,u)):8!==p&&4!==p||ue(m,d,r,g,null,a,u)}i(e)||v(e,d,l),i(f)||Zn(n,c,f,d,o,u),On(n.ref,d,a)}function ue(n,e,t,r,o,l,i){for(var a=0;ad)&&(s=b(a[d-1],!1).nextSibling)}xe(c,f,a,u,t,r,o,s,n,l,i)}function we(n,e,t,o,l){var i=n.ref,a=e.ref,u=e.children;if(xe(n.childFlags,e.childFlags,n.children,u,i,t,!1,null,n,o,l),e.dom=n.dom,i!==a&&!r(u)){var c=u.dom;g(i,c),d(a,c)}}function Ce(n,e,r,o,l,i,a){var u,c=e.dom=n.dom,s=n.props,p=e.props,d=!1,v=!1;if(o=o||(32&l)>0,s!==p){var h=s||f;if((u=p||f)!==f)for(var m in(d=(448&l)>0)&&(v=Tn(u)),u){var g=h[m],y=u[m];g!==y&&Yn(m,g,y,c,o,v,n,a)}if(h!==f)for(var k in h)t(u[k])&&!t(h[k])&&Yn(k,h[k],null,c,o,v,n,a)}var b=e.children,w=e.className;n.className!==w&&(t(w)?c.removeAttribute("class"):o?c.setAttribute("class",w):c.className=w),4096&l?ke(c,b):xe(n.childFlags,e.childFlags,n.children,b,c,r,o&&"foreignObject"!==e.type,null,n,i,a),d&&Un(l,e,c,u,!1,v);var C=e.ref,$=n.ref;$!==C&&(Bn($),On(C,c,i))}function $e(n,e,t,r,o,l,i){Hn(n,i),ue(e,t,r,o,b(n,!0),l,i),D(n,t,i)}function xe(n,e,t,r,o,l,i,a,u,c,f){switch(n){case 2:switch(e){case 2:ge(t,r,o,l,i,a,c,f);break;case 1:jn(t,o,f);break;case 16:Hn(t,f),L(o,r);break;default:$e(t,r,o,l,i,c,f)}break;case 1:switch(e){case 2:re(r,o,l,i,a,c,f);break;case 1:break;case 16:L(o,r);break;default:ue(r,o,l,i,a,c,f)}break;case 16:switch(e){case 16:ye(t,r,o);break;case 2:_n(o,t,f),re(r,o,l,i,a,c,f);break;case 1:_n(o,t,f);break;default:_n(o,t,f),ue(r,o,l,i,a,c,f)}break;default:switch(e){case 16:Rn(t,f),L(o,r);break;case 2:Kn(o,u,t,f),re(r,o,l,i,a,c,f);break;case 1:Kn(o,u,t,f);break;default:var s=0|t.length,p=0|r.length;0===s?p>0&&ue(r,o,l,i,a,c,f):0===p?Kn(o,u,t,f):8===e&&8===n?Ae(t,r,o,l,i,s,p,a,u,c,f):Le(t,r,o,l,i,s,p,a,c,f)}}}function De(n,e,t,r,o){o.push((function(){n.componentDidUpdate(e,t,r)}))}function Fe(n,e,t,r,l,i,u,c,f,s){var p=n.state,d=n.props,v=Boolean(n.$N),h=o(n.shouldComponentUpdate);if(v&&(e=W(n,t,e!==p?a(p,e):e)),u||!h||h&&n.shouldComponentUpdate(t,e,l)){!v&&o(n.componentWillUpdate)&&n.componentWillUpdate(t,e,l),n.props=t,n.state=e,n.context=l;var m=null,g=ne(n,t,l);v&&o(n.getSnapshotBeforeUpdate)&&(m=n.getSnapshotBeforeUpdate(d,p)),ge(n.$LI,g,r,n.$CX,i,c,f,s),n.$LI=g,o(n.componentDidUpdate)&&De(n,d,p,m,f)}else n.props=t,n.state=e,n.context=l}function Me(n,e,t,r,l,u,c,s){var p=e.children=n.children;if(i(p))return;p.$L=c;var d=e.props||f,v=e.ref,h=n.ref,m=p.state;if(!p.$N){if(o(p.componentWillReceiveProps)){if(p.$BR=!0,p.componentWillReceiveProps(d,r),p.$UN)return;p.$BR=!1}i(p.$PS)||(m=a(m,p.$PS),p.$PS=null)}Fe(p,m,d,t,r,l,!1,u,c,s),h!==v&&(Bn(h),On(v,p,c))}function We(n,e,r,l,i,a,u,c){var s=!0,p=e.props||f,d=e.ref,v=n.props,h=!t(d),m=n.children;if(h&&o(d.onComponentShouldUpdate)&&(s=d.onComponentShouldUpdate(v,p)),!1!==s){h&&o(d.onComponentWillUpdate)&&d.onComponentWillUpdate(v,p);var g=G(te(e,l));ge(m,g,r,l,i,a,u,c),e.children=g,h&&o(d.onComponentDidUpdate)&&d.onComponentDidUpdate(v,p)}else e.children=m}function Pe(n,e){var t=e.children,r=e.dom=n.dom;t!==n.children&&(r.nodeValue=t)}function Le(n,e,t,r,o,l,i,a,u,c){for(var f,s,p=l>i?i:l,d=0;di)for(d=p;dd||h>v)break n;m=n[h],g=e[h]}for(m=n[d],g=e[v];m.key===g.key;){if(16384&g.flags&&(e[v]=g=X(g)),ge(m,g,t,r,o,a,c,f),n[d]=g,v--,h>--d||h>v)break n;m=n[d],g=e[v]}}if(h>d){if(h<=v)for(p=(s=v+1)v)for(;h<=d;)jn(n[h++],t,f);else Se(n,e,r,l,i,d,v,h,t,o,a,u,c,f)}function Se(n,e,t,r,o,l,i,a,u,c,f,s,p,d){var v,h,m=0,g=0,y=a,k=a,w=l-a+1,$=i-a+1,x=new Int32Array($+1),D=w===r,F=!1,W=0,P=0;if(o<4||(w|$)<32)for(g=y;g<=l;++g)if(v=n[g],P<$){for(a=k;a<=i;a++)if(h=e[a],v.key===h.key){if(x[a-k]=g+1,D)for(D=!1;ya?F=!0:W=a,16384&h.flags&&(e[a]=h=X(h)),ge(v,h,u,t,c,f,p,d),++P;break}!D&&a>i&&jn(v,u,d)}else D||jn(v,u,d);else{var L={};for(g=k;g<=i;++g)L[e[g].key]=g;for(g=y;g<=l;++g)if(v=n[g],P<$)if(void 0!==(a=L[v.key])){if(D)for(D=!1;g>y;)jn(n[y++],u,d);x[a-k]=g+1,W>a?F=!0:W=a,16384&(h=e[a]).flags&&(e[a]=h=X(h)),ge(v,h,u,t,c,f,p,d),++P}else D||jn(v,u,d);else D||jn(v,u,d)}if(D)Kn(u,s,n,d),ue(e,u,t,c,f,p,d);else if(F){var A=Ve(x);for(a=A.length-1,g=$-1;g>=0;g--)0===x[g]?(16384&(h=e[W=g+k]).flags&&(e[W]=h=X(h)),re(h,u,t,c,(m=W+1)0&&C(d.componentWillMove)}else if(P!==$)for(g=$-1;g>=0;g--)0===x[g]&&(16384&(h=e[W=g+k]).flags&&(e[W]=h=X(h)),re(h,u,t,c,(m=W+1)Ne&&(Ne=u,Ln=new Int32Array(u),An=new Int32Array(u));t>1]]0&&(An[t]=Ln[l-1]),Ln[l]=t)}l=o+1;var c=new Int32Array(l);for(i=Ln[l-1];l-- >0;)c[l]=i,i=An[i],Ln[l]=0;return c}function Ie(n,e,r,l){var i=[],a=new s,u=e.$V;t(u)?t(n)||(16384&n.flags&&(n=X(n)),re(n,e,l,!1,null,i,a),e.$V=n,u=n):t(n)?(jn(u,e,a),e.$V=null):(16384&n.flags&&(n=X(n)),ge(u,n,e,l,!1,null,i,a),u=e.$V=n),y(i),w(a.componentDidAppear),o(r)&&r(),o(P.renderComplete)&&P.renderComplete(u,e)}function Ue(n,e,t,r){void 0===t&&(t=null),void 0===r&&(r=f),Ie(n,e,t,r)}function Ee(n){console.log("ok",n)}"undefined"!==typeof document&&window.Node&&(Node.prototype.$EV=null,Node.prototype.$V=null),"undefined"!==typeof Promise&&Promise.resolve().then.bind(Promise.resolve());var Te=500,Be=[function(){for(var n=[],e=0;e0,h=i(p),g=o(p)&&p[0]===c;v||h||g?(a=a||l.slice(0,s),(v||g)&&(d=b(d)),(h||g)&&(d.key=c+s),a.push(d)):a&&a.push(d),d.flags|=65536}}u=0===(a=a||l).length?1:8}else(a=l).flags|=65536,81920&l.flags&&(a=b(l)),u=2;return t.children=a,t.childFlags=u,t}function w(e,n,t){if(e[n]){var r=e[n];r.event?r.event(r.data,t):r(t)}else{var o=n.toLowerCase();e[o]&&e[o](t)}}function x(e,n){var t=function(t){var r=this.$V;if(!r)return;var i=r.props||a,l=r.dom;if(o(e))w(i,e,t);else for(var u=0;u-1&&n.options[l]&&(a=n.options[l].value),r&&t(a)&&(a=e.defaultValue),P(o,a)}})),x("onInput",(function(e,n,r){var o=e.value,i=n.value;if(t(o)){if(r){var l=e.defaultValue;t(l)||l===i||(n.defaultValue=l,n.value=l)}}else i!==o&&(n.defaultValue=o,n.value=o)})),x("onChange"),"undefined"!==typeof document&&window.Node&&(Node.prototype.$EV=null,Node.prototype.$V=null),"undefined"!==typeof Promise&&Promise.resolve().then.bind(Promise.resolve());var F=Array.isArray;function V(e){var n=typeof e;return"string"===n||"number"===n}function U(e){return void 0===e||null===e}function D(e){return null===e||!1===e||!0===e||void 0===e}function M(e){return"function"===typeof e}function I(e){return"string"===typeof e}function A(e){return null===e}function L(e,n){var t={};if(e)for(var r in e)t[r]=e[r];if(n)for(var o in n)t[o]=n[o];return t}function T(e,n){if(M(n))return{data:e,event:n};return null}function W(e){return!A(e)&&"object"===typeof e}var _={},E=function(){this.componentDidAppear=[],this.componentWillDisappear=[],this.componentWillMove=[]};function O(e){return e.substr(2).toLowerCase()}function B(e,n){e.appendChild(n)}function R(e,n,t){A(t)?B(e,n):e.insertBefore(n,t)}function j(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 z(e,n){e.removeChild(n)}function Q(e){for(var n=0;n0?G(t.componentWillDisappear,Y(e,n)):J(e,n,!1)}function ee(e,n,t,r,o,i,l,a){e.componentWillMove.push({dom:r,fn:function(){4&l?t.componentWillMove(n,o,r,a):8&l&&t.onComponentWillMove(n,o,r,a)},next:i,parent:o})}function ne(e,n,t,r,o){var i,l,a=n.flags;do{var u=n.flags;if(1521&u)return void(U(i)||!M(i.componentWillMove)&&!M(i.onComponentWillMove)?R(t,n.dom,r):ee(o,e,i,n.dom,t,r,a,l));var c=n.children;if(4&u&&(i=n.children,l=n.props,n=c.$LI),8&u&&(i=n.ref,l=n.props,n=c),8192&u){if(2!==n.childFlags){for(var f=0,s=c.length;f0,c=A(a),f=I(a)&&a[0]===ce;u||c||f?(t=t||n.slice(0,i),(u||f)&&(l=ke(l)),(c||f)&&(l.key=ce+i),t.push(l)):t&&t.push(l),l.flags|=65536}}r=0===(t=t||n).length?1:8}else(t=n).flags|=65536,81920&n.flags&&(t=ke(n)),r=2;return e.children=t,e.childFlags=r,e}function Ne(e){if(D(e)||V(e))return me(e,null);if(F(e))return ge(e,0,null);return 16384&e.flags?ke(e):e}var Pe="http://www.w3.org/1999/xlink",Se="http://www.w3.org/XML/1998/namespace",Fe={"xlink:actuate":Pe,"xlink:arcrole":Pe,"xlink:href":Pe,"xlink:role":Pe,"xlink:show":Pe,"xlink:title":Pe,"xlink:type":Pe,"xml:base":Se,"xml:lang":Se,"xml:space":Se};function Ve(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 Ue=Ve(0),De=Ve(null),Me=Ve(!0);function Ie(e,n){var t=n.$EV;return t||(t=n.$EV=Ve(null)),t[e]||1===++Ue[e]&&(De[e]=He(e)),t}function Ae(e,n){var t=n.$EV;t&&t[e]&&(0===--Ue[e]&&(document.removeEventListener(O(e),De[e]),De[e]=null),t[e]=null)}function Le(e,n,t,r){if(M(t))Ie(e,r)[e]=t;else if(W(t)){if(le(n,t))return;Ie(e,r)[e]=t}else Ae(e,r)}function Te(e){return M(e.composedPath)?e.composedPath()[0]:e.target}function We(e,n,t,r){var o=Te(e);do{if(n&&o.disabled)return;var i=o.$EV;if(i){var l=i[t];if(l&&(r.dom=o,l.event?l.event(l.data,e):l(e),e.cancelBubble))return}o=o.parentNode}while(!A(o))}function _e(){this.cancelBubble=!0,this.immediatePropagationStopped||this.stopImmediatePropagation()}function Ee(){return this.defaultPrevented}function Oe(){return this.cancelBubble}function Be(e){var n={dom:document};return e.isDefaultPrevented=Ee,e.isPropagationStopped=Oe,e.stopPropagation=_e,Object.defineProperty(e,"currentTarget",{configurable:!0,get:function(){return n.dom}}),n}function Re(e){return function(n){if(0!==n.button)return void n.stopPropagation();We(n,!0,e,Be(n))}}function je(e){return function(n){We(n,!1,e,Be(n))}}function He(e){var n="onClick"===e||"onDblClick"===e?Re(e):je(e);return document.addEventListener(O(e),n),n}function ze(e,n){var t=document.createElement("i");return t.innerHTML=n,t.innerHTML===e.innerHTML}function Qe(e,n,t){if(e[n]){var r=e[n];r.event?r.event(r.data,t):r(t)}else{var o=n.toLowerCase();e[o]&&e[o](t)}}function Xe(e,n){var t=function(t){var r=this.$V;if(!r)return;var o=r.props||_,i=r.dom;if(I(e))Qe(o,e,t);else for(var l=0;l-1&&n.options[i]&&(l=n.options[i].value),t&&U(l)&&(l=e.defaultValue),nn(r,l)}}var an,un,cn=Xe("onInput",dn),fn=Xe("onChange");function sn(e,n){qe(e,"input",cn),n.onChange&&qe(e,"change",fn)}function dn(e,n,t){var r=e.value,o=n.value;if(U(r)){if(t){var i=e.defaultValue;U(i)||i===o||(n.defaultValue=i,n.value=i)}}else o!==r&&(n.defaultValue=r,n.value=r)}function pn(e,n,t,r,o,i){64&e?en(r,t):256&e?ln(r,t,o,n):128&e&&dn(r,t,o),i&&(t.$V=n)}function vn(e,n,t){64&e?Ze(n,t):256&e?on(n):128&e&&sn(n,t)}function hn(e){return e.type&&Ge(e.type)?!U(e.checked):!U(e.value)}function mn(e){e&&!ue(e,null)&&e.current&&(e.current=null)}function gn(e,n,t){e&&(M(e)||void 0!==e.current)&&t.push((function(){ue(e,n)||void 0===e.current||(e.current=n)}))}function yn(e,n,t){bn(e,t),Z(e,n,t)}function bn(e,n){var t,r=e.flags,o=e.children;if(481&r){t=e.ref;var i=e.props;mn(t);var l=e.childFlags;if(!A(i))for(var a=Object.keys(i),u=0,c=a.length;u0?G(t.componentWillDisappear,Cn(n,e)):e.textContent=""}function xn(e,n,t,r){kn(t,r),8192&n.flags?Z(n,e,r):wn(e,t,r)}function $n(e,n,t,r,o){e.componentWillDisappear.push((function(e){4&r?n.componentWillDisappear(t,e):8&r&&n.onComponentWillDisappear(t,o,e)}))}function Nn(e){var n=e.event;return function(t){n(e.data,t)}}function Pn(e,n,t,r){if(W(t)){if(le(n,t))return;t=Nn(t)}qe(r,O(e),t)}function Sn(e,n,t){if(U(n))return void t.removeAttribute("style");var r,o,i=t.style;if(I(n))return void(i.cssText=n);if(U(e)||I(e))for(r in n)o=n[r],i.setProperty(r,o);else{for(r in n)(o=n[r])!==e[r]&&i.setProperty(r,o);for(r in e)U(n[r])&&i.removeProperty(r)}}function Fn(e,n,t,r,o){var i=e&&e.__html||"",l=n&&n.__html||"";i!==l&&(U(l)||ze(r,l)||(A(t)||(12&t.childFlags?kn(t.children,o):2===t.childFlags&&bn(t.children,o),t.children=null,t.childFlags=1),r.innerHTML=l))}function Vn(e,n,t,r,o,i,l,a){switch(e){case"children":case"childrenType":case"className":case"defaultValue":case"key":case"multiple":case"ref":case"selectedIndex":break;case"autoFocus":r.autofocus=!!t;break;case"allowfullscreen":case"autoplay":case"capture":case"checked":case"controls":case"default":case"disabled":case"hidden":case"indeterminate":case"loop":case"muted":case"novalidate":case"open":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"selected":r[e]=!!t;break;case"defaultChecked":case"value":case"volume":if(i&&"value"===e)break;var u=U(t)?"":t;r[e]!==u&&(r[e]=u);break;case"style":Sn(n,t,r);break;case"dangerouslySetInnerHTML":Fn(n,t,l,r,a);break;default:Me[e]?Le(e,n,t,r):111===e.charCodeAt(0)&&110===e.charCodeAt(1)?Pn(e,n,t,r):U(t)?r.removeAttribute(e):o&&Fe[e]?r.setAttributeNS(Fe[e],e,t):r.setAttribute(e,t)}}function Un(e,n,t,r,o,i){var l=!1,a=(448&n)>0;for(var u in a&&(l=hn(t))&&vn(n,r,t),t)Vn(u,null,t[u],r,o,l,null,i);a&&pn(n,e,r,t,!0,l)}function Dn(e,n,t){var r=Ne(e.render(n,e.state,t)),o=t;return M(e.getChildContext)&&(o=L(t,e.getChildContext())),e.$CX=o,r}function Mn(e,n,t,r,o,i){var l=new n(t,r),a=l.$N=Boolean(n.getDerivedStateFromProps||l.getSnapshotBeforeUpdate);if(l.$SVG=o,l.$L=i,e.children=l,l.$BS=!1,l.context=r,l.props===_&&(l.props=t),a)l.state=te(l,t,l.state);else if(M(l.componentWillMount)){l.$BR=!0,l.componentWillMount();var u=l.$PS;if(!A(u)){var c=l.state;if(A(c))l.state=u;else for(var f in u)c[f]=u[f];l.$PS=null}l.$BR=!1}return l.$LI=Dn(l,t,r),l}function In(e,n){var t=e.props||_;return 32768&e.flags?e.type.render(t,e.ref,n):e.type(t,n)}function An(e,n,t,r,o,i,l){var a=e.flags|=16384;481&a?_n(e,n,t,r,o,i,l):4&a?On(e,n,t,r,o,i,l):8&a?Bn(e,n,t,r,o,i,l):16&a?Wn(e,n,o):8192&a?Tn(e,t,n,r,o,i,l):1024&a&&Ln(e,t,n,o,i,l)}function Ln(e,n,t,r,o,i){An(e.children,e.ref,n,!1,null,o,i);var l=Ce();Wn(l,t,r),e.dom=l.dom}function Tn(e,n,t,r,o,i,l){var a=e.children,u=e.childFlags;12&u&&0===a.length&&(u=e.childFlags=2,a=e.children=Ce()),2===u?An(a,t,n,r,o,i,l):En(a,t,n,r,o,i,l)}function Wn(e,n,t){var r=e.dom=document.createTextNode(e.children);A(n)||R(n,r,t)}function _n(e,n,t,r,o,i,l){var a=e.flags,u=e.props,c=e.className,f=e.childFlags,s=e.dom=j(e.type,r=r||(32&a)>0),d=e.children;if(U(c)||""===c||(r?s.setAttribute("class",c):s.className=c),16===f)ie(s,d);else if(1!==f){var p=r&&"foreignObject"!==e.type;2===f?(16384&d.flags&&(e.children=d=ke(d)),An(d,s,t,p,null,i,l)):8!==f&&4!==f||En(d,s,t,p,null,i,l)}A(n)||R(n,s,o),A(u)||Un(e,a,u,s,r,l),gn(e.ref,s,i)}function En(e,n,t,r,o,i,l){for(var a=0;a0&&K(a.componentWillMove)}function Gn(e,n,t){e!==n&&(""!==e?t.firstChild.nodeValue=n:ie(t,n))}function Kn(e,n){e.textContent!==n&&(e.textContent=n)}function Jn(e,n,t,r,o,i,l){var a=e.children,u=n.children,c=e.childFlags,f=n.childFlags,s=null;12&f&&0===u.length&&(f=n.childFlags=2,u=n.children=Ce());var d=0!==(2&f);if(12&c){var p=a.length;(8&c&&8&f||d||!d&&u.length>p)&&(s=q(a[p-1],!1).nextSibling)}nt(c,f,a,u,t,r,o,s,e,i,l)}function Yn(e,n,t,r,o){var i=e.ref,l=n.ref,a=n.children;if(nt(e.childFlags,n.childFlags,e.children,a,i,t,!1,null,e,r,o),n.dom=e.dom,i!==l&&!D(a)){var u=a.dom;z(i,u),B(l,u)}}function Zn(e,n,t,r,o,i,l){var a,u=n.dom=e.dom,c=e.props,f=n.props,s=!1,d=!1;if(r=r||(32&o)>0,c!==f){var p=c||_;if((a=f||_)!==_)for(var v in(s=(448&o)>0)&&(d=hn(a)),a){var h=p[v],m=a[v];h!==m&&Vn(v,h,m,u,r,d,e,l)}if(p!==_)for(var g in p)U(a[g])&&!U(p[g])&&Vn(g,p[g],null,u,r,d,e,l)}var y=n.children,b=n.className;e.className!==b&&(U(b)?u.removeAttribute("class"):r?u.setAttribute("class",b):u.className=b),4096&o?Kn(u,y):nt(e.childFlags,n.childFlags,e.children,y,u,t,r&&"foreignObject"!==n.type,null,e,i,l),s&&pn(o,n,u,a,!1,d);var k=n.ref,C=e.ref;C!==k&&(mn(C),gn(k,u,i))}function et(e,n,t,r,o,i,l){bn(e,l),En(n,t,r,o,q(e,!0),i,l),Z(e,t,l)}function nt(e,n,t,r,o,i,l,a,u,c,f){switch(e){case 2:switch(n){case 2:qn(t,r,o,i,l,a,c,f);break;case 1:yn(t,o,f);break;case 16:bn(t,f),ie(o,r);break;default:et(t,r,o,i,l,c,f)}break;case 1:switch(n){case 2:An(r,o,i,l,a,c,f);break;case 1:break;case 16:ie(o,r);break;default:En(r,o,i,l,a,c,f)}break;case 16:switch(n){case 16:Gn(t,r,o);break;case 2:wn(o,t,f),An(r,o,i,l,a,c,f);break;case 1:wn(o,t,f);break;default:wn(o,t,f),En(r,o,i,l,a,c,f)}break;default:switch(n){case 16:kn(t,f),ie(o,r);break;case 2:xn(o,u,t,f),An(r,o,i,l,a,c,f);break;case 1:xn(o,u,t,f);break;default:var s=0|t.length,d=0|r.length;0===s?d>0&&En(r,o,i,l,a,c,f):0===d?xn(o,u,t,f):8===n&&8===e?ut(t,r,o,i,l,s,d,a,u,c,f):at(t,r,o,i,l,s,d,a,c,f)}}}function tt(e,n,t,r,o){o.push((function(){e.componentDidUpdate(n,t,r)}))}function rt(e,n,t,r,o,i,l,a,u,c){var f=e.state,s=e.props,d=Boolean(e.$N),p=M(e.shouldComponentUpdate);if(d&&(n=te(e,t,n!==f?L(f,n):n)),l||!p||p&&e.shouldComponentUpdate(t,n,o)){!d&&M(e.componentWillUpdate)&&e.componentWillUpdate(t,n,o),e.props=t,e.state=n,e.context=o;var v=null,h=Dn(e,t,o);d&&M(e.getSnapshotBeforeUpdate)&&(v=e.getSnapshotBeforeUpdate(s,f)),qn(e.$LI,h,r,e.$CX,i,a,u,c),e.$LI=h,M(e.componentDidUpdate)&&tt(e,s,f,v,u)}else e.props=t,e.state=n,e.context=o}function ot(e,n,t,r,o,i,l,a){var u=n.children=e.children;if(A(u))return;u.$L=l;var c=n.props||_,f=n.ref,s=e.ref,d=u.state;if(!u.$N){if(M(u.componentWillReceiveProps)){if(u.$BR=!0,u.componentWillReceiveProps(c,r),u.$UN)return;u.$BR=!1}A(u.$PS)||(d=L(d,u.$PS),u.$PS=null)}rt(u,d,c,t,r,o,!1,i,l,a),s!==f&&(mn(s),gn(f,u,l))}function it(e,n,t,r,o,i,l,a){var u=!0,c=n.props||_,f=n.ref,s=e.props,d=!U(f),p=e.children;if(d&&M(f.onComponentShouldUpdate)&&(u=f.onComponentShouldUpdate(s,c)),!1!==u){d&&M(f.onComponentWillUpdate)&&f.onComponentWillUpdate(s,c);var v=Ne(In(n,r));qn(p,v,t,r,o,i,l,a),n.children=v,d&&M(f.onComponentDidUpdate)&&f.onComponentDidUpdate(s,c)}else n.children=p}function lt(e,n){var t=n.children,r=n.dom=e.dom;t!==e.children&&(r.nodeValue=t)}function at(e,n,t,r,o,i,l,a,u,c){for(var f,s,d=i>l?l:i,p=0;pl)for(p=d;pp||h>v)break e;m=e[h],g=n[h]}for(m=e[p],g=n[v];m.key===g.key;){if(16384&g.flags&&(n[v]=g=ke(g)),qn(m,g,t,r,o,a,c,f),e[p]=g,v--,h>--p||h>v)break e;m=e[p],g=n[v]}}if(h>p){if(h<=v)for(d=(s=v+1)v)for(;h<=p;)yn(e[h++],t,f);else ct(e,n,r,i,l,p,v,h,t,o,a,u,c,f)}function ct(e,n,t,r,o,i,l,a,u,c,f,s,d,p){var v,h,m=0,g=0,y=a,b=a,k=i-a+1,C=l-a+1,w=new Int32Array(C+1),x=k===r,$=!1,N=0,P=0;if(o<4||(k|C)<32)for(g=y;g<=i;++g)if(v=e[g],Pa?$=!0:N=a,16384&h.flags&&(n[a]=h=ke(h)),qn(v,h,u,t,c,f,d,p),++P;break}!x&&a>l&&yn(v,u,p)}else x||yn(v,u,p);else{var S={};for(g=b;g<=l;++g)S[n[g].key]=g;for(g=y;g<=i;++g)if(v=e[g],Py;)yn(e[y++],u,p);w[a-b]=g+1,N>a?$=!0:N=a,16384&(h=n[a]).flags&&(n[a]=h=ke(h)),qn(v,h,u,t,c,f,d,p),++P}else x||yn(v,u,p);else x||yn(v,u,p)}if(x)xn(u,s,e,p),En(n,u,t,c,f,d,p);else if($){var F=st(w);for(a=F.length-1,g=C-1;g>=0;g--)0===w[g]?(16384&(h=n[N=g+b]).flags&&(n[N]=h=ke(h)),An(h,u,t,c,(m=N+1)=0;g--)0===w[g]&&(16384&(h=n[N=g+b]).flags&&(n[N]=h=ke(h)),An(h,u,t,c,(m=N+1)ft&&(ft=u,an=new Int32Array(u),un=new Int32Array(u));t>1]]0&&(un[t]=an[i-1]),an[i]=t)}i=o+1;var c=new Int32Array(i);for(l=an[i-1];i-- >0;)c[i]=l,l=un[l],an[i]=0;return c}function dt(e,n,t,r){var o=[],i=new E,l=n.$V;re.v=!0,U(l)?U(e)||(16384&e.flags&&(e=ke(e)),An(e,n,r,!1,null,o,i),n.$V=e,l=e):U(e)?(yn(l,n,i),n.$V=null):(16384&e.flags&&(e=ke(e)),qn(l,e,n,r,!1,null,o,i),l=n.$V=e),Q(o),G(i.componentDidAppear),re.v=!1,M(t)&&t(),M(oe.renderComplete)&&oe.renderComplete(l,n)}function pt(e,n,t,r){void 0===t&&(t=null),void 0===r&&(r=_),dt(e,n,t,r)}"undefined"!==typeof document&&window.Node&&(Node.prototype.$EV=null,Node.prototype.$V=null);var vt=[],ht="undefined"!==typeof Promise?Promise.resolve().then.bind(Promise.resolve()):function(e){window.setTimeout(e,0)},mt=!1;function gt(e,n,t,r){var o=e.$PS;if(M(n)&&(n=n(o?L(e.state,o):e.state,e.props,e.context)),U(o))e.$PS=n;else for(var i in n)o[i]=n[i];if(e.$BR)M(t)&&e.$L.push(t.bind(e));else{if(!re.v&&0===vt.length)return kt(e,r),void(M(t)&&t.call(e));if(-1===vt.indexOf(e)&&vt.push(e),r&&(e.$F=!0),mt||(mt=!0,ht(bt)),M(t)){var l=e.$QU;l||(l=e.$QU=[]),l.push(t)}}}function yt(e){for(var n=e.$QU,t=0;t0?An(v,n,r,o,t,i,l):t=(t=It(v,n,t,r,o,i,l))?t.nextSibling:null,s=(16&v.flags)>0}if(0===(8192&f))for(var h=null;t;)h=t.nextSibling,n.removeChild(t),t=h}else xt(n.firstChild)||St(n,c)||(n.textContent="",448&f&&(n.defaultValue=""))}function Ut(e,n,t,r,o,i,l){var a,u=e.props,c=e.className,f=e.flags,s=e.ref;return o=o||(32&f)>0,1!==t.nodeType||t.tagName.toLowerCase()!==e.type?(_n(e,null,r,o,null,i,l),n.replaceChild(e.dom,t)):(e.dom=t,Vt(e,t,t.firstChild,r,o,i,l),xt(u)||Un(e,f,u,t,o,l),void 0===(a=c)||null===a?""!==t.className&&t.removeAttribute("class"):o?t.setAttribute("class",c):t.className=c,gn(s,t,i)),e.dom}function Dt(e,n,t){if(3!==t.nodeType)n.replaceChild(e.dom=document.createTextNode(e.children),t);else{var r=e.children;t.nodeValue!==r&&(t.nodeValue=r),e.dom=t}return e.dom}function Mt(e,n,t,r,o,i,l){var a=e.children;if(2===e.childFlags)return Dt(a,n,t),a.dom;return Vt(e,n,t,r,o,i,l),Pt(a[a.length-1])}function It(e,n,t,r,o,i,l){var a=e.flags|=16384;if(14&a)return Ft(e,n,t,r,o,(4&a)>0,i,l);if(481&a)return Ut(e,n,t,r,o,i,l);if(16&a)return Dt(e,n,t);if(8192&a)return Mt(e,n,t,r,o,i,l);return $t(),null}function At(e,n){var t={};if(e)for(var r in e)t[r]=e[r];if(n)for(var o in n)t[o]=n[o];return t}function Lt(e,n,t){var r=arguments,o=e.flags,i=14&o?e.props&&e.props.children:e.children,l=arguments.length-2,a=e.className,u=e.key,c=e.ref;if(n?(void 0!==n.className&&(a=n.className),void 0!==n.ref&&(c=n.ref),void 0!==n.key&&(u=n.key),void 0!==n.children&&(i=n.children)):n={},1===l)i=t;else if(l>1)for(i=[];l-- >0;)i[l]=r[l+2];if(n.children=i,14&o)return he(o,e.type,e.props||n?At(e.props,n):_,u,c);if(16&o)return me(i);if(8192&o)return ge(1===l?[i]:i,0,u);return ye(se(o,e.type,a,null,1,At(e.props,n),u,c))}function Tt(e){throw e||(e="a runtime error occured! Use Inferno in development environment to find the error."),new Error("Inferno Error: "+e)}Ct.prototype.forceUpdate=function(e){if(this.$UN)return;gt(this,{},e,!0)},Ct.prototype.setState=function(e,n){if(this.$UN)return;this.$BS||gt(this,e,n,!1)},Ct.prototype.render=function(e,n,t){return null};var Wt={componentDidMount:1,componentDidUnmount:1,componentDidUpdate:1,componentWillMount:1,componentWillUnmount:1,componentWillUpdate:1,constructor:1,render:1,shouldComponentUpdate:1};function _t(e,n){for(var t in n)e[t]=n[t];return e}function Et(e){for(var n in e){var t=e[n];"function"!==typeof t||t.__bound||Wt[n]||((e[n]=t.bind(e)).__bound=!0)}}function Ot(e,n){void 0===n&&(n={});for(var t=0,r=e.length;t1)for(r=[];f-- >0;)r[f]=i[f+2];if(!Qt(e)){if(c=2,Xt(r)||(n||(n={}),n.children=r),!zt(n))for(var s in o={},n)"key"===s?a=n.key:"ref"===s?l=n.ref:1===qt[s]?(l||(l={}),l[s]=n[s]):o[s]=n[s];return he(c,e,o,a,l)}if(c=xe(e),!zt(n))for(var d in o={},n)"className"===d||"class"===d?u=n[d]:"key"===d?a=n.key:"children"===d&&Xt(r)?r=n.children:"ref"===d?l=n.ref:("contenteditable"===d&&(c|=4096),o[d]=n[d]);if(8192&c)return ge(1===f?[r]:r,0,a);return se(c,e,u,r,0,o,a,l)}var Kt=Array.isArray;function Jt(e){return void 0===e||null===e}function Yt(e){return"string"===typeof e}function Zt(e){return null===e}function er(){}er.isRequired=er;var nr=function(){return er},tr={any:nr,array:er,arrayOf:nr,bool:er,checkPropTypes:function(){return null},element:nr,func:er,instanceOf:nr,node:nr,number:er,object:er,objectOf:nr,oneOf:nr,oneOfType:nr,shape:nr,string:er,symbol:er},rr={htmlFor:"for",onDoubleClick:"onDblClick"},or=/[\-:]([a-z])/g,ir=function(e){return e[1].toUpperCase()};function lr(e,n){switch(e){case"animation-iteration-count":case"border-image-outset":case"border-image-slice":case"border-image-width":case"box-flex":case"box-flex-group":case"box-ordinal-group":case"column-count":case"fill-opacity":case"flex":case"flex-grow":case"flex-negative":case"flex-order":case"flex-positive":case"flex-shrink":case"flood-opacity":case"font-weight":case"grid-column":case"grid-row":case"line-clamp":case"line-height":case"opacity":case"order":case"orphans":case"stop-opacity":case"stroke-dasharray":case"stroke-dashoffset":case"stroke-miterlimit":case"stroke-opacity":case"stroke-width":case"tab-size":case"widows":case"z-index":case"zoom":return n;default:return n+"px"}}["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-constiant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","x-height","xlink:actuate","xlink:arcrole","xlink:href","xlink:role","xlink:show","xlink:title","xlink:type","xml:base","xmlns:xlink","xml:lang","xml:space"].forEach((function(e){var n=e.replace(or,ir);rr[n]=e}));var ar=/[A-Z]/g;function ur(e,n){for(var t=0,r=e.length;t0)for(var a;void 0!==(a=i.shift());)a()}n.$V=e,wt(t)&&t()},isValidElement:function(e){if("object"!==typeof e||Zt(e))return!1;return(495&e.flags)>0},linkEvent:T,normalizeProps:ye,options:oe,render:$r,rerender:bt,unmountComponentAtNode:function(e){return dt(null,e,null,null),!0},unstable_renderSubtreeIntoContainer:function(e,n,t,r){$r(he(4,xr,{children:n,context:e.context}),t,null);var o=n.children;return r&&r.call(o),o},version:sr};window.React=Nr,window.ReactDOM=Nr}function Pr(e){return s(1,"li","TreeLeaf",me(e.children),0,null,null,null)}function Sr(e,n){return e!==n}function Fr(e){for(var n=e.data,t=n.children.length,r=new Array(t),o=0;o0?C(t.componentWillDisappear,$(e,n)):x(e,n,!1)}function S(e,n,t,r,o,i,l,a){e.componentWillMove.push({dom:r,fn:function(){4&l?t.componentWillMove(n,o,r,a):8&l&&t.onComponentWillMove(n,o,r,a)},next:i,parent:o})}function P(e,n,r,i,l){var a,u,c=n.flags;do{var f=n.flags;if(1521&f)return void(t(a)||!o(a.componentWillMove)&&!o(a.onComponentWillMove)?v(r,n.dom,i):S(l,e,a,n.dom,r,i,c,u));var s=n.children;if(4&f)a=n.children,u=n.props,n=s.$LI;else if(8&f)a=n.ref,u=n.props,n=s;else if(8192&f){if(2!==n.childFlags){for(var d=0,p=s.length;d0,v=l(d),h=i(d)&&d[0]===I;p||v||h?(a=a||o.slice(0,f),(p||h)&&(s=Q(s)),(v||h)&&(s.key=I+f),a.push(s)):a&&a.push(s),s.flags|=65536}}u=0===(a=a||o).length?1:8}else(a=o).flags|=65536,81920&o.flags&&(a=Q(o)),u=2;return t.children=a,t.childFlags=u,t}function J(t){if(r(t)||n(t))return R(t,null);if(e(t))return j(t,0,null);return 16384&t.flags?Q(t):t}var Y="http://www.w3.org/1999/xlink",Z="http://www.w3.org/XML/1998/namespace",ee={"xlink:actuate":Y,"xlink:arcrole":Y,"xlink:href":Y,"xlink:role":Y,"xlink:show":Y,"xlink:title":Y,"xlink:type":Y,"xml:base":Z,"xml:lang":Z,"xml:space":Z};function ne(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 te=ne(0),re=ne(null),oe=ne(!0);function ie(e,n){var t=n.$EV;return t||(t=n.$EV=ne(null)),t[e]||1===++te[e]&&(re[e]=me(e)),t}function le(e,n){var t=n.$EV;t&&t[e]&&(0===--te[e]&&(document.removeEventListener(d(e),re[e]),re[e]=null),t[e]=null)}function ae(e,n,t,r){if(o(t))ie(e,r)[e]=t;else if(c(t)){if(V(n,t))return;ie(e,r)[e]=t}else le(e,r)}function ue(e){return o(e.composedPath)?e.composedPath()[0]:e.target}function ce(e,n,t,r){var o=ue(e);do{if(n&&o.disabled)return;var i=o.$EV;if(i){var a=i[t];if(a&&(r.dom=o,a.event?a.event(a.data,e):a(e),e.cancelBubble))return}o=o.parentNode}while(!l(o))}function fe(){this.cancelBubble=!0,this.immediatePropagationStopped||this.stopImmediatePropagation()}function se(){return this.defaultPrevented}function de(){return this.cancelBubble}function pe(e){var n={dom:document};return e.isDefaultPrevented=se,e.isPropagationStopped=de,e.stopPropagation=fe,Object.defineProperty(e,"currentTarget",{configurable:!0,get:function(){return n.dom}}),n}function ve(e){return function(n){if(0!==n.button)return void n.stopPropagation();ce(n,!0,e,pe(n))}}function he(e){return function(n){ce(n,!1,e,pe(n))}}function me(e){var n="onClick"===e||"onDblClick"===e?ve(e):he(e);return document.addEventListener(d(e),n),n}function ge(e,n){var t=document.createElement("i");return t.innerHTML=n,t.innerHTML===e.innerHTML}function ye(e,n,t){if(e[n]){var r=e[n];r.event?r.event(r.data,t):r(t)}else{var o=n.toLowerCase();e[o]&&e[o](t)}}function be(e,n){var t=function(t){var r=this.$V;if(!r)return;var l=r.props||f,a=r.dom;if(i(e))ye(l,e,t);else for(var u=0;u-1&&n.options[l]&&(a=n.options[l].value),r&&t(a)&&(a=e.defaultValue),Pe(o,a)}}var Ve,Le,Ae=be("onInput",We),Ie=be("onChange");function Te(e,n){ke(e,"input",Ae),n.onChange&&ke(e,"change",Ie)}function We(e,n,r){var o=e.value,i=n.value;if(t(o)){if(r){var l=e.defaultValue;t(l)||l===i||(n.defaultValue=l,n.value=l)}}else i!==o&&(n.defaultValue=o,n.value=o)}function _e(e,n,t,r,o,i){64&e?Se(r,t):256&e?Me(r,t,o,n):128&e&&We(r,t,o),i&&(t.$V=n)}function Ee(e,n,t){64&e?Ne(n,t):256&e?Fe(n):128&e&&Te(n,t)}function Oe(e){return e.type&&Ce(e.type)?!t(e.checked):!t(e.value)}function Be(e){e&&!A(e,null)&&e.current&&(e.current=null)}function Re(e,n,t){e&&(o(e)||void 0!==e.current)&&t.push((function(){A(e,n)||void 0===e.current||(e.current=n)}))}function je(e,n,t){He(e,t),N(e,n,t)}function He(e,n){var r,i=e.flags,a=e.children;if(481&i){r=e.ref;var u=e.props;Be(r);var c=e.childFlags;if(!l(u))for(var d=Object.keys(u),p=0,v=d.length;p0?C(t.componentWillDisappear,Qe(n,e)):e.textContent=""}function qe(e,n,t,r){ze(t,r),8192&n.flags?N(n,e,r):Xe(e,t,r)}function Ge(e,n,t,r,o){e.componentWillDisappear.push((function(e){4&r?n.componentWillDisappear(t,e):8&r&&n.onComponentWillDisappear(t,o,e)}))}function Ke(e){var n=e.event;return function(t){n(e.data,t)}}function Je(e,n,t,r){if(c(t)){if(V(n,t))return;t=Ke(t)}ke(r,d(e),t)}function Ye(e,n,r){if(t(n))return void r.removeAttribute("style");var o,l,a=r.style;if(i(n))return void(a.cssText=n);if(t(e)||i(e))for(o in n)l=n[o],a.setProperty(o,l);else{for(o in n)(l=n[o])!==e[o]&&a.setProperty(o,l);for(o in e)t(n[o])&&a.removeProperty(o)}}function Ze(e,n,r,o,i){var a=e&&e.__html||"",u=n&&n.__html||"";a!==u&&(t(u)||ge(o,u)||(l(r)||(12&r.childFlags?ze(r.children,i):2===r.childFlags&&He(r.children,i),r.children=null,r.childFlags=1),o.innerHTML=u))}function en(e,n,r,o,i,l,a,u){switch(e){case"children":case"childrenType":case"className":case"defaultValue":case"key":case"multiple":case"ref":case"selectedIndex":break;case"autoFocus":o.autofocus=!!r;break;case"allowfullscreen":case"autoplay":case"capture":case"checked":case"controls":case"default":case"disabled":case"hidden":case"indeterminate":case"loop":case"muted":case"novalidate":case"open":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"selected":o[e]=!!r;break;case"defaultChecked":case"value":case"volume":if(l&&"value"===e)break;var c=t(r)?"":r;o[e]!==c&&(o[e]=c);break;case"style":Ye(n,r,o);break;case"dangerouslySetInnerHTML":Ze(n,r,a,o,u);break;default:oe[e]?ae(e,n,r,o):111===e.charCodeAt(0)&&110===e.charCodeAt(1)?Je(e,n,r,o):t(r)?o.removeAttribute(e):i&&ee[e]?o.setAttributeNS(ee[e],e,r):o.setAttribute(e,r)}}function nn(e,n,t,r,o,i){var l=!1,a=(448&n)>0;for(var u in a&&(l=Oe(t))&&Ee(n,r,t),t)en(u,null,t[u],r,o,l,null,i);a&&_e(n,e,r,t,!0,l)}function tn(e,n,t){var r=J(e.render(n,e.state,t)),i=t;return o(e.getChildContext)&&(i=a(t,e.getChildContext())),e.$CX=i,r}function rn(e,n,t,r,i,a){var u=new n(t,r),c=u.$N=Boolean(n.getDerivedStateFromProps||u.getSnapshotBeforeUpdate);if(u.$SVG=i,u.$L=a,e.children=u,u.$BS=!1,u.context=r,u.props===f&&(u.props=t),c)u.state=U(u,t,u.state);else if(o(u.componentWillMount)){u.$BR=!0,u.componentWillMount();var s=u.$PS;if(!l(s)){var d=u.state;if(l(d))u.state=s;else for(var p in s)d[p]=s[p];u.$PS=null}u.$BR=!1}return u.$LI=tn(u,t,r),u}function on(e,n){var t=e.props||f;return 32768&e.flags?e.type.render(t,e.ref,n):e.type(t,n)}function ln(e,n,t,r,o,i,l){var a=e.flags|=16384;481&a?fn(e,n,t,r,o,i,l):4&a?dn(e,n,t,r,o,i,l):8&a?pn(e,n,t,r,o,i,l):16&a?cn(e,n,o):8192&a?un(e,t,n,r,o,i,l):1024&a&&an(e,t,n,o,i,l)}function an(e,n,t,r,o,i){ln(e.children,e.ref,n,!1,null,o,i);var l=X();cn(l,t,r),e.dom=l.dom}function un(e,n,t,r,o,i,l){var a=e.children,u=e.childFlags;12&u&&0===a.length&&(u=e.childFlags=2,a=e.children=X()),2===u?ln(a,t,n,r,o,i,l):sn(a,t,n,r,o,i,l)}function cn(e,n,t){var r=e.dom=document.createTextNode(e.children);l(n)||v(n,r,t)}function fn(e,n,r,o,i,a,u){var c=e.flags,f=e.props,s=e.className,d=e.childFlags,p=e.dom=h(e.type,o=o||(32&c)>0),m=e.children;if(t(s)||""===s||(o?p.setAttribute("class",s):p.className=s),16===d)M(p,m);else if(1!==d){var g=o&&"foreignObject"!==e.type;2===d?(16384&m.flags&&(e.children=m=Q(m)),ln(m,p,r,g,null,a,u)):8!==d&&4!==d||sn(m,p,r,g,null,a,u)}l(n)||v(n,p,i),l(f)||nn(e,c,f,p,o,u),Re(e.ref,p,a)}function sn(e,n,t,r,o,i,l){for(var a=0;ap)&&(s=k(a[p-1],!1).nextSibling)}Pn(c,f,a,u,t,r,o,s,e,i,l)}function $n(e,n,t,o,i){var l=e.ref,a=n.ref,u=n.children;if(Pn(e.childFlags,n.childFlags,e.children,u,l,t,!1,null,e,o,i),n.dom=e.dom,l!==a&&!r(u)){var c=u.dom;g(l,c),p(a,c)}}function Nn(e,n,r,o,i,l,a){var u,c=n.dom=e.dom,s=e.props,d=n.props,p=!1,v=!1;if(o=o||(32&i)>0,s!==d){var h=s||f;if((u=d||f)!==f)for(var m in(p=(448&i)>0)&&(v=Oe(u)),u){var g=h[m],y=u[m];g!==y&&en(m,g,y,c,o,v,e,a)}if(h!==f)for(var b in h)t(u[b])&&!t(h[b])&&en(b,h[b],null,c,o,v,e,a)}var k=n.children,C=n.className;e.className!==C&&(t(C)?c.removeAttribute("class"):o?c.setAttribute("class",C):c.className=C),4096&i?wn(c,k):Pn(e.childFlags,n.childFlags,e.children,k,c,r,o&&"foreignObject"!==n.type,null,e,l,a),p&&_e(i,n,c,u,!1,v);var w=n.ref,x=e.ref;x!==w&&(Be(x),Re(w,c,l))}function Sn(e,n,t,r,o,i,l){He(e,l),sn(n,t,r,o,k(e,!0),i,l),N(e,t,l)}function Pn(e,n,t,r,o,i,l,a,u,c,f){switch(e){case 2:switch(n){case 2:kn(t,r,o,i,l,a,c,f);break;case 1:je(t,o,f);break;case 16:He(t,f),M(o,r);break;default:Sn(t,r,o,i,l,c,f)}break;case 1:switch(n){case 2:ln(r,o,i,l,a,c,f);break;case 1:break;case 16:M(o,r);break;default:sn(r,o,i,l,a,c,f)}break;case 16:switch(n){case 16:Cn(t,r,o);break;case 2:Xe(o,t,f),ln(r,o,i,l,a,c,f);break;case 1:Xe(o,t,f);break;default:Xe(o,t,f),sn(r,o,i,l,a,c,f)}break;default:switch(n){case 16:ze(t,f),M(o,r);break;case 2:qe(o,u,t,f),ln(r,o,i,l,a,c,f);break;case 1:qe(o,u,t,f);break;default:var s=0|t.length,d=0|r.length;0===s?d>0&&sn(r,o,i,l,a,c,f):0===d?qe(o,u,t,f):8===n&&8===e?An(t,r,o,i,l,s,d,a,u,c,f):Ln(t,r,o,i,l,s,d,a,c,f)}}}function Un(e,n,t,r,o){o.push((function(){e.componentDidUpdate(n,t,r)}))}function Dn(e,n,t,r,i,l,u,c,f,s){var d=e.state,p=e.props,v=Boolean(e.$N),h=o(e.shouldComponentUpdate);if(v&&(n=U(e,t,n!==d?a(d,n):n)),u||!h||h&&e.shouldComponentUpdate(t,n,i)){!v&&o(e.componentWillUpdate)&&e.componentWillUpdate(t,n,i),e.props=t,e.state=n,e.context=i;var m=null,g=tn(e,t,i);v&&o(e.getSnapshotBeforeUpdate)&&(m=e.getSnapshotBeforeUpdate(p,d)),kn(e.$LI,g,r,e.$CX,l,c,f,s),e.$LI=g,o(e.componentDidUpdate)&&Un(e,p,d,m,f)}else e.props=t,e.state=n,e.context=i}function Fn(e,n,t,r,i,u,c,s){var d=n.children=e.children;if(l(d))return;d.$L=c;var p=n.props||f,v=n.ref,h=e.ref,m=d.state;if(!d.$N){if(o(d.componentWillReceiveProps)){if(d.$BR=!0,d.componentWillReceiveProps(p,r),d.$UN)return;d.$BR=!1}l(d.$PS)||(m=a(m,d.$PS),d.$PS=null)}Dn(d,m,p,t,r,i,!1,u,c,s),h!==v&&(Be(h),Re(v,d,c))}function Mn(e,n,r,i,l,a,u,c){var s=!0,d=n.props||f,p=n.ref,v=e.props,h=!t(p),m=e.children;if(h&&o(p.onComponentShouldUpdate)&&(s=p.onComponentShouldUpdate(v,d)),!1!==s){h&&o(p.onComponentWillUpdate)&&p.onComponentWillUpdate(v,d);var g=J(on(n,i));kn(m,g,r,i,l,a,u,c),n.children=g,h&&o(p.onComponentDidUpdate)&&p.onComponentDidUpdate(v,d)}else n.children=m}function Vn(e,n){var t=n.children,r=n.dom=e.dom;t!==e.children&&(r.nodeValue=t)}function Ln(e,n,t,r,o,i,l,a,u,c){for(var f,s,d=i>l?l:i,p=0;pl)for(p=d;pp||h>v)break e;m=e[h],g=n[h]}for(m=e[p],g=n[v];m.key===g.key;){if(16384&g.flags&&(n[v]=g=Q(g)),kn(m,g,t,r,o,a,c,f),e[p]=g,v--,h>--p||h>v)break e;m=e[p],g=n[v]}}if(h>p){if(h<=v)for(d=(s=v+1)v)for(;h<=p;)je(e[h++],t,f);else In(e,n,r,i,l,p,v,h,t,o,a,u,c,f)}function In(e,n,t,r,o,i,l,a,u,c,f,s,d,p){var v,h,m=0,g=0,y=a,b=a,C=i-a+1,x=l-a+1,$=new Int32Array(x+1),N=C===r,S=!1,U=0,D=0;if(o<4||(C|x)<32)for(g=y;g<=i;++g)if(v=e[g],Da?S=!0:U=a,16384&h.flags&&(n[a]=h=Q(h)),kn(v,h,u,t,c,f,d,p),++D;break}!N&&a>l&&je(v,u,p)}else N||je(v,u,p);else{var F={};for(g=b;g<=l;++g)F[n[g].key]=g;for(g=y;g<=i;++g)if(v=e[g],Dy;)je(e[y++],u,p);$[a-b]=g+1,U>a?S=!0:U=a,16384&(h=n[a]).flags&&(n[a]=h=Q(h)),kn(v,h,u,t,c,f,d,p),++D}else N||je(v,u,p);else N||je(v,u,p)}if(N)qe(u,s,e,p),sn(n,u,t,c,f,d,p);else if(S){var M=Wn($);for(a=M.length-1,g=x-1;g>=0;g--)0===$[g]?(16384&(h=n[U=g+b]).flags&&(n[U]=h=Q(h)),ln(h,u,t,c,(m=U+1)0&&w(p.componentWillMove)}else if(D!==x)for(g=x-1;g>=0;g--)0===$[g]&&(16384&(h=n[U=g+b]).flags&&(n[U]=h=Q(h)),ln(h,u,t,c,(m=U+1)Tn&&(Tn=u,Ve=new Int32Array(u),Le=new Int32Array(u));t>1]]0&&(Le[t]=Ve[i-1]),Ve[i]=t)}i=o+1;var c=new Int32Array(i);for(l=Ve[i-1];i-- >0;)c[i]=l,l=Le[l],Ve[i]=0;return c}function _n(e,n,r,i){var l=[],a=new s,u=n.$V;D.v=!0,t(u)?t(e)||(16384&e.flags&&(e=Q(e)),ln(e,n,i,!1,null,l,a),n.$V=e,u=e):t(e)?(je(u,n,a),n.$V=null):(16384&e.flags&&(e=Q(e)),kn(u,e,n,i,!1,null,l,a),u=n.$V=e),y(l),C(a.componentDidAppear),D.v=!1,o(r)&&r(),o(F.renderComplete)&&F.renderComplete(u,n)}function En(e,n,t,r){void 0===t&&(t=null),void 0===r&&(r=f),_n(e,n,t,r)}"undefined"!==typeof document&&window.Node&&(Node.prototype.$EV=null,Node.prototype.$V=null);var On=[],Bn="undefined"!==typeof Promise?Promise.resolve().then.bind(Promise.resolve()):function(e){window.setTimeout(e,0)},Rn=!1;function jn(e,n,r,i){var l=e.$PS;if(o(n)&&(n=n(l?a(e.state,l):e.state,e.props,e.context)),t(l))e.$PS=n;else for(var u in n)l[u]=n[u];if(e.$BR)o(r)&&e.$L.push(r.bind(e));else{if(!D.v&&0===On.length)return Qn(e,i),void(o(r)&&r.call(e));if(-1===On.indexOf(e)&&On.push(e),i&&(e.$F=!0),Rn||(Rn=!0,Bn(zn)),o(r)){var c=e.$QU;c||(c=e.$QU=[]),c.push(r)}}}function Hn(e){for(var n=e.$QU,t=0;t0?ln(v,n,r,o,t,i,l):t=(t=it(v,n,t,r,o,i,l))?t.nextSibling:null,s=(16&v.flags)>0}if(0===(8192&f))for(var h=null;t;)h=t.nextSibling,n.removeChild(t),t=h}else Gn(n.firstChild)||Zn(n,c)||(n.textContent="",448&f&&(n.defaultValue=""))}function tt(e,n,t,r,o,i,l){var a,u=e.props,c=e.className,f=e.flags,s=e.ref;return o=o||(32&f)>0,1!==t.nodeType||t.tagName.toLowerCase()!==e.type?(fn(e,null,r,o,null,i,l),n.replaceChild(e.dom,t)):(e.dom=t,nt(e,t,t.firstChild,r,o,i,l),Gn(u)||nn(e,f,u,t,o,l),void 0===(a=c)||null===a?""!==t.className&&t.removeAttribute("class"):o?t.setAttribute("class",c):t.className=c,Re(s,t,i)),e.dom}function rt(e,n,t){if(3!==t.nodeType)n.replaceChild(e.dom=document.createTextNode(e.children),t);else{var r=e.children;t.nodeValue!==r&&(t.nodeValue=r),e.dom=t}return e.dom}function ot(e,n,t,r,o,i,l){var a=e.children;if(2===e.childFlags)return rt(a,n,t),a.dom;return nt(e,n,t,r,o,i,l),Yn(a[a.length-1])}function it(e,n,t,r,o,i,l){var a=e.flags|=16384;if(14&a)return et(e,n,t,r,o,(4&a)>0,i,l);if(481&a)return tt(e,n,t,r,o,i,l);if(16&a)return rt(e,n,t);if(8192&a)return ot(e,n,t,r,o,i,l);return Kn(),null}function lt(e,n){var t={};if(e)for(var r in e)t[r]=e[r];if(n)for(var o in n)t[o]=n[o];return t}function at(e,n,t){var r=arguments,o=e.flags,i=14&o?e.props&&e.props.children:e.children,l=arguments.length-2,a=e.className,u=e.key,c=e.ref;if(n?(void 0!==n.className&&(a=n.className),void 0!==n.ref&&(c=n.ref),void 0!==n.key&&(u=n.key),void 0!==n.children&&(i=n.children)):n={},1===l)i=t;else if(l>1)for(i=[];l-- >0;)i[l]=r[l+2];if(n.children=i,14&o)return B(o,e.type,e.props||n?lt(e.props,n):f,u,c);if(16&o)return R(i);if(8192&o)return j(1===l?[i]:i,0,u);return H(W(o,e.type,a,null,1,lt(e.props,n),u,c))}function ut(e){throw e||(e="a runtime error occured! Use Inferno in development environment to find the error."),new Error("Inferno Error: "+e)}Xn.prototype.forceUpdate=function(e){if(this.$UN)return;jn(this,{},e,!0)},Xn.prototype.setState=function(e,n){if(this.$UN)return;this.$BS||jn(this,e,n,!1)},Xn.prototype.render=function(e,n,t){return null};var ct={componentDidMount:1,componentDidUnmount:1,componentDidUpdate:1,componentWillMount:1,componentWillUnmount:1,componentWillUpdate:1,constructor:1,render:1,shouldComponentUpdate:1};function ft(e,n){for(var t in n)e[t]=n[t];return e}function st(e){for(var n in e){var t=e[n];"function"!==typeof t||t.__bound||ct[n]||((e[n]=t.bind(e)).__bound=!0)}}function dt(e,n){void 0===n&&(n={});for(var t=0,r=e.length;t1)for(r=[];f-- >0;)r[f]=i[f+2];if(!yt(e)){if(c=2,bt(r)||(n||(n={}),n.children=r),!gt(n))for(var s in o={},n)"key"===s?a=n.key:"ref"===s?l=n.ref:1===kt[s]?(l||(l={}),l[s]=n[s]):o[s]=n[s];return B(c,e,o,a,l)}if(c=G(e),!gt(n))for(var d in o={},n)"className"===d||"class"===d?u=n[d]:"key"===d?a=n.key:"children"===d&&bt(r)?r=n.children:"ref"===d?l=n.ref:("contenteditable"===d&&(c|=4096),o[d]=n[d]);if(8192&c)return j(1===f?[r]:r,0,a);return W(c,e,u,r,0,o,a,l)}var wt=Array.isArray;function xt(e){return void 0===e||null===e}function $t(e){return"string"===typeof e}function Nt(e){return null===e}function St(){}St.isRequired=St;var Pt=function(){return St},Ut={any:Pt,array:St,arrayOf:Pt,bool:St,checkPropTypes:function(){return null},element:Pt,func:St,instanceOf:Pt,node:Pt,number:St,object:St,objectOf:Pt,oneOf:Pt,oneOfType:Pt,shape:Pt,string:St,symbol:St},Dt={htmlFor:"for",onDoubleClick:"onDblClick"},Ft=/[\-:]([a-z])/g,Mt=function(e){return e[1].toUpperCase()};function Vt(e,n){switch(e){case"animation-iteration-count":case"border-image-outset":case"border-image-slice":case"border-image-width":case"box-flex":case"box-flex-group":case"box-ordinal-group":case"column-count":case"fill-opacity":case"flex":case"flex-grow":case"flex-negative":case"flex-order":case"flex-positive":case"flex-shrink":case"flood-opacity":case"font-weight":case"grid-column":case"grid-row":case"line-clamp":case"line-height":case"opacity":case"order":case"orphans":case"stop-opacity":case"stroke-dasharray":case"stroke-dashoffset":case"stroke-miterlimit":case"stroke-opacity":case"stroke-width":case"tab-size":case"widows":case"z-index":case"zoom":return n;default:return n+"px"}}["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-constiant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","x-height","xlink:actuate","xlink:arcrole","xlink:href","xlink:role","xlink:show","xlink:title","xlink:type","xml:base","xmlns:xlink","xml:lang","xml:space"].forEach((function(e){var n=e.replace(Ft,Mt);Dt[n]=e}));var Lt=/[A-Z]/g;function At(e,n){for(var t=0,r=e.length;t0)for(var a;void 0!==(a=i.shift());)a()}n.$V=e,qn(t)&&t()},isValidElement:function(e){if("object"!==typeof e||Nt(e))return!1;return(495&e.flags)>0},linkEvent:u,normalizeProps:H,options:F,render:Kt,rerender:zn,unmountComponentAtNode:function(e){return _n(null,e,null,null),!0},unstable_renderSubtreeIntoContainer:function(e,n,t,r){Kt(B(4,Gt,{children:n,context:e.context}),t,null);var o=n.children;return r&&r.call(o),o},version:Wt};window.React=Jt,window.ReactDOM=Jt}function Yt(e){return W(1,"li","TreeLeaf",R(e.children),0,null,null,null)}function Zt(e,n){return e!==n}function er(e){for(var n=e.data,t=n.children.length,r=new Array(t),o=0;o0,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?C(t.componentWillDisappear,D(e,n)):$(e,n,!1)}function x(e,n,t,r,o,l,i,a){e.componentWillMove.push({dom:r,fn:function(){4&i?t.componentWillMove(n,o,r,a):8&i&&t.onComponentWillMove(n,o,r,a)},next:l,parent:o})}function A(e,n,r,l,i){var a,u,c=n.flags;do{var f=n.flags;if(1521&f)return void(t(a)||!o(a.componentWillMove)&&!o(a.onComponentWillMove)?v(r,n.dom,l):x(i,e,a,n.dom,r,l,c,u));var s=n.children;if(4&f)a=n.children,u=n.props,n=s.$LI;else if(8&f)a=n.ref,u=n.props,n=s;else if(8192&f){if(2!==n.childFlags){for(var d=0,p=s.length;d0,v=i(d),h=l(d)&&d[0]===V;p||v||h?(a=a||o.slice(0,f),(p||h)&&(s=X(s)),(v||h)&&(s.key=V+f),a.push(s)):a&&a.push(s),s.flags|=65536}}u=0===(a=a||o).length?1:8}else(a=o).flags|=65536,81920&o.flags&&(a=X(o)),u=2;return t.children=a,t.childFlags=u,t}function z(t){if(r(t)||n(t))return R(t,null);if(e(t))return j(t,0,null);return 16384&t.flags?X(t):t}var G="http://www.w3.org/1999/xlink",J="http://www.w3.org/XML/1998/namespace",Q={"xlink:actuate":G,"xlink:arcrole":G,"xlink:href":G,"xlink:role":G,"xlink:show":G,"xlink:title":G,"xlink:type":G,"xml:base":J,"xml:lang":J,"xml:space":J};function Y(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 Z=Y(0),ee=Y(null),ne=Y(!0);function te(e,n){var t=n.$EV;return t||(t=n.$EV=Y(null)),t[e]||1===++Z[e]&&(ee[e]=pe(e)),t}function re(e,n){var t=n.$EV;t&&t[e]&&(0===--Z[e]&&(document.removeEventListener(d(e),ee[e]),ee[e]=null),t[e]=null)}function oe(e,n,t,r){if(o(t))te(e,r)[e]=t;else if(c(t)){if(U(n,t))return;te(e,r)[e]=t}else re(e,r)}function le(e){return o(e.composedPath)?e.composedPath()[0]:e.target}function ie(e,n,t,r){var o=le(e);do{if(n&&o.disabled)return;var l=o.$EV;if(l){var a=l[t];if(a&&(r.dom=o,a.event?a.event(a.data,e):a(e),e.cancelBubble))return}o=o.parentNode}while(!i(o))}function ae(){this.cancelBubble=!0,this.immediatePropagationStopped||this.stopImmediatePropagation()}function ue(){return this.defaultPrevented}function ce(){return this.cancelBubble}function fe(e){var n={dom:document};return e.isDefaultPrevented=ue,e.isPropagationStopped=ce,e.stopPropagation=ae,Object.defineProperty(e,"currentTarget",{configurable:!0,get:function(){return n.dom}}),n}function se(e){return function(n){if(0!==n.button)return void n.stopPropagation();ie(n,!0,e,fe(n))}}function de(e){return function(n){ie(n,!1,e,fe(n))}}function pe(e){var n="onClick"===e||"onDblClick"===e?se(e):de(e);return document.addEventListener(d(e),n),n}function ve(e,n){var t=document.createElement("i");return t.innerHTML=n,t.innerHTML===e.innerHTML}function he(e,n,t){if(e[n]){var r=e[n];r.event?r.event(r.data,t):r(t)}else{var o=n.toLowerCase();e[o]&&e[o](t)}}function me(e,n){var t=function(t){var r=this.$V;if(!r)return;var i=r.props||f,a=r.dom;if(l(e))he(i,e,t);else for(var u=0;u-1&&n.options[i]&&(a=n.options[i].value),r&&t(a)&&(a=e.defaultValue),De(o,a)}}var Se,We,Ue=me("onInput",Ve),Le=me("onChange");function Me(e,n){ge(e,"input",Ue),n.onChange&&ge(e,"change",Le)}function Ve(e,n,r){var o=e.value,l=n.value;if(t(o)){if(r){var i=e.defaultValue;t(i)||i===l||(n.defaultValue=i,n.value=i)}}else l!==o&&(n.defaultValue=o,n.value=o)}function Ie(e,n,t,r,o,l){64&e?$e(r,t):256&e?Pe(r,t,o,n):128&e&&Ve(r,t,o),l&&(t.$V=n)}function Ne(e,n,t){64&e?we(n,t):256&e?Ae(n):128&e&&Me(n,t)}function Te(e){return e.type&&ye(e.type)?!t(e.checked):!t(e.value)}function Be(e){e&&!M(e,null)&&e.current&&(e.current=null)}function Ee(e,n,t){e&&(o(e)||void 0!==e.current)&&t.push((function(){M(e,n)||void 0===e.current||(e.current=n)}))}function Oe(e,n,t){Re(e,t),F(e,n,t)}function Re(e,n){var r,l=e.flags,a=e.children;if(481&l){r=e.ref;var u=e.props;Be(r);var c=e.childFlags;if(!i(u))for(var d=Object.keys(u),p=0,v=d.length;p0?C(t.componentWillDisappear,He(n,e)):e.textContent=""}function _e(e,n,t,r){je(t,r),8192&n.flags?F(n,e,r):Xe(e,t,r)}function Ke(e,n,t,r,o){e.componentWillDisappear.push((function(e){4&r?n.componentWillDisappear(t,e):8&r&&n.onComponentWillDisappear(t,o,e)}))}function qe(e){var n=e.event;return function(t){n(e.data,t)}}function ze(e,n,t,r){if(c(t)){if(U(n,t))return;t=qe(t)}ge(r,d(e),t)}function Ge(e,n,r){if(t(n))return void r.removeAttribute("style");var o,i,a=r.style;if(l(n))return void(a.cssText=n);if(t(e)||l(e))for(o in n)i=n[o],a.setProperty(o,i);else{for(o in n)(i=n[o])!==e[o]&&a.setProperty(o,i);for(o in e)t(n[o])&&a.removeProperty(o)}}function Je(e,n,r,o,l){var a=e&&e.__html||"",u=n&&n.__html||"";a!==u&&(t(u)||ve(o,u)||(i(r)||(12&r.childFlags?je(r.children,l):2===r.childFlags&&Re(r.children,l),r.children=null,r.childFlags=1),o.innerHTML=u))}function Qe(e,n,r,o,l,i,a,u){switch(e){case"children":case"childrenType":case"className":case"defaultValue":case"key":case"multiple":case"ref":case"selectedIndex":break;case"autoFocus":o.autofocus=!!r;break;case"allowfullscreen":case"autoplay":case"capture":case"checked":case"controls":case"default":case"disabled":case"hidden":case"indeterminate":case"loop":case"muted":case"novalidate":case"open":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"selected":o[e]=!!r;break;case"defaultChecked":case"value":case"volume":if(i&&"value"===e)break;var c=t(r)?"":r;o[e]!==c&&(o[e]=c);break;case"style":Ge(n,r,o);break;case"dangerouslySetInnerHTML":Je(n,r,a,o,u);break;default:ne[e]?oe(e,n,r,o):111===e.charCodeAt(0)&&110===e.charCodeAt(1)?ze(e,n,r,o):t(r)?o.removeAttribute(e):l&&Q[e]?o.setAttributeNS(Q[e],e,r):o.setAttribute(e,r)}}function Ye(e,n,t,r,o,l){var i=!1,a=(448&n)>0;for(var u in a&&(i=Te(t))&&Ne(n,r,t),t)Qe(u,null,t[u],r,o,i,null,l);a&&Ie(n,e,r,t,!0,i)}function Ze(e,n,t){var r=z(e.render(n,e.state,t)),l=t;return o(e.getChildContext)&&(l=a(t,e.getChildContext())),e.$CX=l,r}function en(e,n,t,r,l,a){var u=new n(t,r),c=u.$N=Boolean(n.getDerivedStateFromProps||u.getSnapshotBeforeUpdate);if(u.$SVG=l,u.$L=a,e.children=u,u.$BS=!1,u.context=r,u.props===f&&(u.props=t),c)u.state=P(u,t,u.state);else if(o(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=Ze(u,t,r),u}function nn(e,n){var t=e.props||f;return 32768&e.flags?e.type.render(t,e.ref,n):e.type(t,n)}function tn(e,n,t,r,o,l,i){var a=e.flags|=16384;481&a?an(e,n,t,r,o,l,i):4&a?cn(e,n,t,r,o,l,i):8&a?fn(e,n,t,r,o,l,i):16&a?ln(e,n,o):8192&a?on(e,t,n,r,o,l,i):1024&a&&rn(e,t,n,o,l,i)}function rn(e,n,t,r,o,l){tn(e.children,e.ref,n,!1,null,o,l);var i=_();ln(i,t,r),e.dom=i.dom}function on(e,n,t,r,o,l,i){var a=e.children,u=e.childFlags;12&u&&0===a.length&&(u=e.childFlags=2,a=e.children=_()),2===u?tn(a,t,n,r,o,l,i):un(a,t,n,r,o,l,i)}function ln(e,n,t){var r=e.dom=document.createTextNode(e.children);i(n)||v(n,r,t)}function an(e,n,r,o,l,a,u){var c=e.flags,f=e.props,s=e.className,d=e.childFlags,p=e.dom=h(e.type,o=o||(32&c)>0),m=e.children;if(t(s)||""===s||(o?p.setAttribute("class",s):p.className=s),16===d)W(p,m);else if(1!==d){var g=o&&"foreignObject"!==e.type;2===d?(16384&m.flags&&(e.children=m=X(m)),tn(m,p,r,g,null,a,u)):8!==d&&4!==d||un(m,p,r,g,null,a,u)}i(n)||v(n,p,l),i(f)||Ye(e,c,f,p,o,u),Ee(e.ref,p,a)}function un(e,n,t,r,o,l,i){for(var a=0;ap)&&(s=k(a[p-1],!1).nextSibling)}Dn(c,f,a,u,t,r,o,s,e,l,i)}function Cn(e,n,t,o,l){var i=e.ref,a=n.ref,u=n.children;if(Dn(e.childFlags,n.childFlags,e.children,u,i,t,!1,null,e,o,l),n.dom=e.dom,i!==a&&!r(u)){var c=u.dom;g(i,c),p(a,c)}}function wn(e,n,r,o,l,i,a){var u,c=n.dom=e.dom,s=e.props,d=n.props,p=!1,v=!1;if(o=o||(32&l)>0,s!==d){var h=s||f;if((u=d||f)!==f)for(var m in(p=(448&l)>0)&&(v=Te(u)),u){var g=h[m],y=u[m];g!==y&&Qe(m,g,y,c,o,v,e,a)}if(h!==f)for(var b in h)t(u[b])&&!t(h[b])&&Qe(b,h[b],null,c,o,v,e,a)}var k=n.children,C=n.className;e.className!==C&&(t(C)?c.removeAttribute("class"):o?c.setAttribute("class",C):c.className=C),4096&l?bn(c,k):Dn(e.childFlags,n.childFlags,e.children,k,c,r,o&&"foreignObject"!==n.type,null,e,i,a),p&&Ie(l,n,c,u,!1,v);var w=n.ref,$=e.ref;$!==w&&(Be($),Ee(w,c,i))}function $n(e,n,t,r,o,l,i){Re(e,i),un(n,t,r,o,k(e,!0),l,i),F(e,t,i)}function Dn(e,n,t,r,o,l,i,a,u,c,f){switch(e){case 2:switch(n){case 2:gn(t,r,o,l,i,a,c,f);break;case 1:Oe(t,o,f);break;case 16:Re(t,f),W(o,r);break;default:$n(t,r,o,l,i,c,f)}break;case 1:switch(n){case 2:tn(r,o,l,i,a,c,f);break;case 1:break;case 16:W(o,r);break;default:un(r,o,l,i,a,c,f)}break;case 16:switch(n){case 16:yn(t,r,o);break;case 2:Xe(o,t,f),tn(r,o,l,i,a,c,f);break;case 1:Xe(o,t,f);break;default:Xe(o,t,f),un(r,o,l,i,a,c,f)}break;default:switch(n){case 16:je(t,f),W(o,r);break;case 2:_e(o,u,t,f),tn(r,o,l,i,a,c,f);break;case 1:_e(o,u,t,f);break;default:var s=0|t.length,d=0|r.length;0===s?d>0&&un(r,o,l,i,a,c,f):0===d?_e(o,u,t,f):8===n&&8===e?Un(t,r,o,l,i,s,d,a,u,c,f):Wn(t,r,o,l,i,s,d,a,c,f)}}}function Fn(e,n,t,r,o){o.push((function(){e.componentDidUpdate(n,t,r)}))}function xn(e,n,t,r,l,i,u,c,f,s){var d=e.state,p=e.props,v=Boolean(e.$N),h=o(e.shouldComponentUpdate);if(v&&(n=P(e,t,n!==d?a(d,n):n)),u||!h||h&&e.shouldComponentUpdate(t,n,l)){!v&&o(e.componentWillUpdate)&&e.componentWillUpdate(t,n,l),e.props=t,e.state=n,e.context=l;var m=null,g=Ze(e,t,l);v&&o(e.getSnapshotBeforeUpdate)&&(m=e.getSnapshotBeforeUpdate(p,d)),gn(e.$LI,g,r,e.$CX,i,c,f,s),e.$LI=g,o(e.componentDidUpdate)&&Fn(e,p,d,m,f)}else e.props=t,e.state=n,e.context=l}function An(e,n,t,r,l,u,c,s){var d=n.children=e.children;if(i(d))return;d.$L=c;var p=n.props||f,v=n.ref,h=e.ref,m=d.state;if(!d.$N){if(o(d.componentWillReceiveProps)){if(d.$BR=!0,d.componentWillReceiveProps(p,r),d.$UN)return;d.$BR=!1}i(d.$PS)||(m=a(m,d.$PS),d.$PS=null)}xn(d,m,p,t,r,l,!1,u,c,s),h!==v&&(Be(h),Ee(v,d,c))}function Pn(e,n,r,l,i,a,u,c){var s=!0,d=n.props||f,p=n.ref,v=e.props,h=!t(p),m=e.children;if(h&&o(p.onComponentShouldUpdate)&&(s=p.onComponentShouldUpdate(v,d)),!1!==s){h&&o(p.onComponentWillUpdate)&&p.onComponentWillUpdate(v,d);var g=z(nn(n,l));gn(m,g,r,l,i,a,u,c),n.children=g,h&&o(p.onComponentDidUpdate)&&p.onComponentDidUpdate(v,d)}else n.children=m}function Sn(e,n){var t=n.children,r=n.dom=e.dom;t!==e.children&&(r.nodeValue=t)}function Wn(e,n,t,r,o,l,i,a,u,c){for(var f,s,d=l>i?i:l,p=0;pi)for(p=d;pp||h>v)break e;m=e[h],g=n[h]}for(m=e[p],g=n[v];m.key===g.key;){if(16384&g.flags&&(n[v]=g=X(g)),gn(m,g,t,r,o,a,c,f),e[p]=g,v--,h>--p||h>v)break e;m=e[p],g=n[v]}}if(h>p){if(h<=v)for(d=(s=v+1)v)for(;h<=p;)Oe(e[h++],t,f);else Ln(e,n,r,l,i,p,v,h,t,o,a,u,c,f)}function Ln(e,n,t,r,o,l,i,a,u,c,f,s,d,p){var v,h,m=0,g=0,y=a,b=a,C=l-a+1,$=i-a+1,D=new Int32Array($+1),F=C===r,x=!1,P=0,S=0;if(o<4||(C|$)<32)for(g=y;g<=l;++g)if(v=e[g],S<$){for(a=b;a<=i;a++)if(h=n[a],v.key===h.key){if(D[a-b]=g+1,F)for(F=!1;ya?x=!0:P=a,16384&h.flags&&(n[a]=h=X(h)),gn(v,h,u,t,c,f,d,p),++S;break}!F&&a>i&&Oe(v,u,p)}else F||Oe(v,u,p);else{var W={};for(g=b;g<=i;++g)W[n[g].key]=g;for(g=y;g<=l;++g)if(v=e[g],S<$)if(void 0!==(a=W[v.key])){if(F)for(F=!1;g>y;)Oe(e[y++],u,p);D[a-b]=g+1,P>a?x=!0:P=a,16384&(h=n[a]).flags&&(n[a]=h=X(h)),gn(v,h,u,t,c,f,d,p),++S}else F||Oe(v,u,p);else F||Oe(v,u,p)}if(F)_e(u,s,e,p),un(n,u,t,c,f,d,p);else if(x){var U=Vn(D);for(a=U.length-1,g=$-1;g>=0;g--)0===D[g]?(16384&(h=n[P=g+b]).flags&&(n[P]=h=X(h)),tn(h,u,t,c,(m=P+1)0&&w(p.componentWillMove)}else if(S!==$)for(g=$-1;g>=0;g--)0===D[g]&&(16384&(h=n[P=g+b]).flags&&(n[P]=h=X(h)),tn(h,u,t,c,(m=P+1)Mn&&(Mn=u,Se=new Int32Array(u),We=new Int32Array(u));t>1]]0&&(We[t]=Se[l-1]),Se[l]=t)}l=o+1;var c=new Int32Array(l);for(i=Se[l-1];l-- >0;)c[l]=i,i=We[i],Se[l]=0;return c}function In(e,n,r,l){var i=[],a=new s,u=n.$V;t(u)?t(e)||(16384&e.flags&&(e=X(e)),tn(e,n,l,!1,null,i,a),n.$V=e,u=e):t(e)?(Oe(u,n,a),n.$V=null):(16384&e.flags&&(e=X(e)),gn(u,e,n,l,!1,null,i,a),u=n.$V=e),y(i),C(a.componentDidAppear),o(r)&&r(),o(S.renderComplete)&&S.renderComplete(u,n)}function Nn(e,n,t,r){void 0===t&&(t=null),void 0===r&&(r=f),In(e,n,t,r)}function Tn(e){return N(1,"li","TreeLeaf",e.children,0,null,null,null)}function Bn(e,n){return e!==n}function En(e){for(var n=e.data,t=n.children.length,r=new Array(t),o=0;o0,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?w(t.componentWillDisappear,P(n,e)):x(n,e,!1)}function S(n,e,t,r,o,i,l,a){n.componentWillMove.push({dom:r,fn:function(){4&l?t.componentWillMove(e,o,r,a):8&l&&t.onComponentWillMove(e,o,r,a)},next:i,parent:o})}function D(n,e,t,r,o){var l,u,c=e.flags;do{var s=e.flags;if(1521&s)return void(i(l)||!a(l.componentWillMove)&&!a(l.onComponentWillMove)?m(t,e.dom,r):S(o,n,l,e.dom,t,r,c,u));var f=e.children;if(4&s)l=e.children,u=e.props,e=f.$LI;else if(8&s)l=e.ref,u=e.props,e=f;else if(8192&s){if(2!==e.childFlags){for(var p=0,d=f.length;p0,h=c(p),v=u(p)&&p[0]===B;d||h||v?(t=t||e.slice(0,s),(d||v)&&(f=G(f)),(h||v)&&(f.key=B+s),t.push(f)):t&&t.push(f),f.flags|=65536}}i=0===(t=t||e).length?1:8}else(t=e).flags|=65536,81920&e.flags&&(t=G(e)),i=2;return n.children=t,n.childFlags=i,n}function z(n){if(l(n)||o(n))return H(n,null);if(r(n))return Q(n,0,null);return 16384&n.flags?G(n):n}var Y="http://www.w3.org/1999/xlink",Z="http://www.w3.org/XML/1998/namespace",nn={"xlink:actuate":Y,"xlink:arcrole":Y,"xlink:href":Y,"xlink:role":Y,"xlink:show":Y,"xlink:title":Y,"xlink:type":Y,"xml:base":Z,"xml:lang":Z,"xml:space":Z};function en(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 tn=en(0),rn=en(null),on=en(!0);function ln(n,e){var t=e.$EV;return t||(t=e.$EV=en(null)),t[n]||1===++tn[n]&&(rn[n]=gn(n)),t}function an(n,e){var t=e.$EV;t&&t[n]&&(0===--tn[n]&&(document.removeEventListener(h(n),rn[n]),rn[n]=null),t[n]=null)}function un(n,e,t,r){if(a(t))ln(n,r)[n]=t;else if(f(t)){if(M(e,t))return;ln(n,r)[n]=t}else an(n,r)}function cn(n){return a(n.composedPath)?n.composedPath()[0]:n.target}function sn(n,e,t,r){var o=cn(n);do{if(e&&o.disabled)return;var i=o.$EV;if(i){var l=i[t];if(l&&(r.dom=o,l.event?l.event(l.data,n):l(n),n.cancelBubble))return}o=o.parentNode}while(!c(o))}function fn(){this.cancelBubble=!0,this.immediatePropagationStopped||this.stopImmediatePropagation()}function pn(){return this.defaultPrevented}function dn(){return this.cancelBubble}function hn(n){var e={dom:document};return n.isDefaultPrevented=pn,n.isPropagationStopped=dn,n.stopPropagation=fn,Object.defineProperty(n,"currentTarget",{configurable:!0,get:function(){return e.dom}}),e}function vn(n){return function(e){if(0!==e.button)return void e.stopPropagation();sn(e,!0,n,hn(e))}}function mn(n){return function(e){sn(e,!1,n,hn(e))}}function gn(n){var e="onClick"===n||"onDblClick"===n?vn(n):mn(n);return document.addEventListener(h(n),e),e}function yn(n,e){var t=document.createElement("i");return t.innerHTML=e,t.innerHTML===n.innerHTML}function bn(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 $n(n,e){var t=function(t){var r=this.$V;if(!r)return;var o=r.props||p,i=r.dom;if(u(n))bn(o,n,t);else for(var l=0;l-1&&e.options[l]&&(a=e.options[l].value),t&&i(a)&&(a=n.defaultValue),Sn(r,a)}}var An,Mn,Vn=$n("onInput",Tn),In=$n("onChange");function Bn(n,e){kn(n,"input",Vn),e.onChange&&kn(n,"change",In)}function Tn(n,e,t){var r=n.value,o=e.value;if(i(r)){if(t){var l=n.defaultValue;i(l)||l===o||(e.defaultValue=l,e.value=l)}}else o!==r&&(e.defaultValue=r,e.value=r)}function En(n,e,t,r,o,i){64&n?Fn(r,t):256&n?Nn(r,t,o,e):128&n&&Tn(r,t,o),i&&(t.$V=e)}function On(n,e,t){64&n?Pn(e,t):256&n?Wn(e):128&n&&Bn(e,t)}function Rn(n){return n.type&&Cn(n.type)?!i(n.checked):!i(n.value)}function jn(n){n&&!I(n,null)&&n.current&&(n.current=null)}function _n(n,e,t){n&&(a(n)||void 0!==n.current)&&t.push((function(){I(n,e)||void 0===n.current||(n.current=e)}))}function Hn(n,e,t){Qn(n,t),F(n,e,t)}function Qn(n,e){var t,r=n.flags,o=n.children;if(481&r){t=n.ref;var l=n.props;jn(t);var u=n.childFlags;if(!c(l))for(var s=Object.keys(l),f=0,h=s.length;f0?w(t.componentWillDisappear,Gn(e,n)):n.textContent=""}function qn(n,e,t,r){Xn(t,r),8192&e.flags?F(e,n,r):Kn(n,t,r)}function Jn(n,e,t,r,o){n.componentWillDisappear.push((function(n){4&r?e.componentWillDisappear(t,n):8&r&&e.onComponentWillDisappear(t,o,n)}))}function zn(n){var e=n.event;return function(t){e(n.data,t)}}function Yn(n,e,t,r){if(f(t)){if(M(e,t))return;t=zn(t)}kn(r,h(n),t)}function Zn(n,e,t){if(i(e))return void t.removeAttribute("style");var r,o,l=t.style;if(u(e))return void(l.cssText=e);if(i(n)||u(n))for(r in e)o=e[r],l.setProperty(r,o);else{for(r in e)(o=e[r])!==n[r]&&l.setProperty(r,o);for(r in n)i(e[r])&&l.removeProperty(r)}}function ne(n,e,t,r,o){var l=n&&n.__html||"",a=e&&e.__html||"";l!==a&&(i(a)||yn(r,a)||(c(t)||(12&t.childFlags?Xn(t.children,o):2===t.childFlags&&Qn(t.children,o),t.children=null,t.childFlags=1),r.innerHTML=a))}function ee(n,e,t,r,o,l,a,u){switch(n){case"children":case"childrenType":case"className":case"defaultValue":case"key":case"multiple":case"ref":case"selectedIndex":break;case"autoFocus":r.autofocus=!!t;break;case"allowfullscreen":case"autoplay":case"capture":case"checked":case"controls":case"default":case"disabled":case"hidden":case"indeterminate":case"loop":case"muted":case"novalidate":case"open":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"selected":r[n]=!!t;break;case"defaultChecked":case"value":case"volume":if(l&&"value"===n)break;var c=i(t)?"":t;r[n]!==c&&(r[n]=c);break;case"style":Zn(e,t,r);break;case"dangerouslySetInnerHTML":ne(e,t,a,r,u);break;default:on[n]?un(n,e,t,r):111===n.charCodeAt(0)&&110===n.charCodeAt(1)?Yn(n,e,t,r):i(t)?r.removeAttribute(n):o&&nn[n]?r.setAttributeNS(nn[n],n,t):r.setAttribute(n,t)}}function te(n,e,t,r,o,i){var l=!1,a=(448&e)>0;for(var u in a&&(l=Rn(t))&&On(e,r,t),t)ee(u,null,t[u],r,o,l,null,i);a&&En(e,n,r,t,!0,l)}function re(n,e,t){var r=z(n.render(e,n.state,t)),o=t;return a(n.getChildContext)&&(o=s(t,n.getChildContext())),n.$CX=o,r}function oe(n,e,t,r,o,i){var l=new e(t,r),u=l.$N=Boolean(e.getDerivedStateFromProps||l.getSnapshotBeforeUpdate);if(l.$SVG=o,l.$L=i,n.children=l,l.$BS=!1,l.context=r,l.props===p&&(l.props=t),u)l.state=L(l,t,l.state);else if(a(l.componentWillMount)){l.$BR=!0,l.componentWillMount();var s=l.$PS;if(!c(s)){var f=l.state;if(c(f))l.state=s;else for(var d in s)f[d]=s[d];l.$PS=null}l.$BR=!1}return l.$LI=re(l,t,r),l}function ie(n,e){var t=n.props||p;return 32768&n.flags?n.type.render(t,n.ref,e):n.type(t,e)}function le(n,e,t,r,o,i,l){var a=n.flags|=16384;481&a?se(n,e,t,r,o,i,l):4&a?pe(n,e,t,r,o,i,l):8&a?de(n,e,t,r,o,i,l):16&a?ce(n,e,o):8192&a?ue(n,t,e,r,o,i,l):1024&a&&ae(n,t,e,o,i,l)}function ae(n,e,t,r,o,i){le(n.children,n.ref,e,!1,null,o,i);var l=K();ce(l,t,r),n.dom=l.dom}function ue(n,e,t,r,o,i,l){var a=n.children,u=n.childFlags;12&u&&0===a.length&&(u=n.childFlags=2,a=n.children=K()),2===u?le(a,t,e,r,o,i,l):fe(a,t,e,r,o,i,l)}function ce(n,e,t){var r=n.dom=document.createTextNode(n.children);c(e)||m(e,r,t)}function se(n,e,t,r,o,l,a){var u=n.flags,s=n.props,f=n.className,p=n.childFlags,d=n.dom=g(n.type,r=r||(32&u)>0),h=n.children;if(i(f)||""===f||(r?d.setAttribute("class",f):d.className=f),16===p)A(d,h);else if(1!==p){var v=r&&"foreignObject"!==n.type;2===p?(16384&h.flags&&(n.children=h=G(h)),le(h,d,t,v,null,l,a)):8!==p&&4!==p||fe(h,d,t,v,null,l,a)}c(e)||m(e,d,o),c(s)||te(n,u,s,d,r,a),_n(n.ref,d,l)}function fe(n,e,t,r,o,i,l){for(var a=0;ad)&&(f=C(a[d-1],!1).nextSibling)}Fe(c,s,a,u,t,r,o,f,n,i,l)}function Ue(n,e,t,r,o){var i=n.ref,a=e.ref,u=e.children;if(Fe(n.childFlags,e.childFlags,n.children,u,i,t,!1,null,n,r,o),e.dom=n.dom,i!==a&&!l(u)){var c=u.dom;b(i,c),v(a,c)}}function xe(n,e,t,r,o,l,a){var u,c=e.dom=n.dom,s=n.props,f=e.props,d=!1,h=!1;if(r=r||(32&o)>0,s!==f){var v=s||p;if((u=f||p)!==p)for(var m in(d=(448&o)>0)&&(h=Rn(u)),u){var g=v[m],y=u[m];g!==y&&ee(m,g,y,c,r,h,n,a)}if(v!==p)for(var b in v)i(u[b])&&!i(v[b])&&ee(b,v[b],null,c,r,h,n,a)}var $=e.children,k=e.className;n.className!==k&&(i(k)?c.removeAttribute("class"):r?c.setAttribute("class",k):c.className=k),4096&o?Ce(c,$):Fe(n.childFlags,e.childFlags,n.children,$,c,t,r&&"foreignObject"!==e.type,null,n,l,a),d&&En(o,e,c,u,!1,h);var C=e.ref,w=n.ref;w!==C&&(jn(w),_n(C,c,l))}function Pe(n,e,t,r,o,i,l){Qn(n,l),fe(e,t,r,o,C(n,!0),i,l),F(n,t,l)}function Fe(n,e,t,r,o,i,l,a,u,c,s){switch(n){case 2:switch(e){case 2:$e(t,r,o,i,l,a,c,s);break;case 1:Hn(t,o,s);break;case 16:Qn(t,s),A(o,r);break;default:Pe(t,r,o,i,l,c,s)}break;case 1:switch(e){case 2:le(r,o,i,l,a,c,s);break;case 1:break;case 16:A(o,r);break;default:fe(r,o,i,l,a,c,s)}break;case 16:switch(e){case 16:ke(t,r,o);break;case 2:Kn(o,t,s),le(r,o,i,l,a,c,s);break;case 1:Kn(o,t,s);break;default:Kn(o,t,s),fe(r,o,i,l,a,c,s)}break;default:switch(e){case 16:Xn(t,s),A(o,r);break;case 2:qn(o,u,t,s),le(r,o,i,l,a,c,s);break;case 1:qn(o,u,t,s);break;default:var f=0|t.length,p=0|r.length;0===f?p>0&&fe(r,o,i,l,a,c,s):0===p?qn(o,u,t,s):8===e&&8===n?Me(t,r,o,i,l,f,p,a,u,c,s):Ae(t,r,o,i,l,f,p,a,c,s)}}}function Se(n,e,t,r,o){o.push((function(){n.componentDidUpdate(e,t,r)}))}function De(n,e,t,r,o,i,l,u,c,f){var p=n.state,d=n.props,h=Boolean(n.$N),v=a(n.shouldComponentUpdate);if(h&&(e=L(n,t,e!==p?s(p,e):e)),l||!v||v&&n.shouldComponentUpdate(t,e,o)){!h&&a(n.componentWillUpdate)&&n.componentWillUpdate(t,e,o),n.props=t,n.state=e,n.context=o;var m=null,g=re(n,t,o);h&&a(n.getSnapshotBeforeUpdate)&&(m=n.getSnapshotBeforeUpdate(d,p)),$e(n.$LI,g,r,n.$CX,i,u,c,f),n.$LI=g,a(n.componentDidUpdate)&&Se(n,d,p,m,c)}else n.props=t,n.state=e,n.context=o}function Le(n,e,t,r,o,i,l,u){var f=e.children=n.children;if(c(f))return;f.$L=l;var d=e.props||p,h=e.ref,v=n.ref,m=f.state;if(!f.$N){if(a(f.componentWillReceiveProps)){if(f.$BR=!0,f.componentWillReceiveProps(d,r),f.$UN)return;f.$BR=!1}c(f.$PS)||(m=s(m,f.$PS),f.$PS=null)}De(f,m,d,t,r,o,!1,i,l,u),v!==h&&(jn(v),_n(h,f,l))}function We(n,e,t,r,o,l,u,c){var s=!0,f=e.props||p,d=e.ref,h=n.props,v=!i(d),m=n.children;if(v&&a(d.onComponentShouldUpdate)&&(s=d.onComponentShouldUpdate(h,f)),!1!==s){v&&a(d.onComponentWillUpdate)&&d.onComponentWillUpdate(h,f);var g=z(ie(e,r));$e(m,g,t,r,o,l,u,c),e.children=g,v&&a(d.onComponentDidUpdate)&&d.onComponentDidUpdate(h,f)}else e.children=m}function Ne(n,e){var t=e.children,r=e.dom=n.dom;t!==n.children&&(r.nodeValue=t)}function Ae(n,e,t,r,o,i,l,a,u,c){for(var s,f,p=i>l?l:i,d=0;dl)for(d=p;dd||v>h)break n;m=n[v],g=e[v]}for(m=n[d],g=e[h];m.key===g.key;){if(16384&g.flags&&(e[h]=g=G(g)),$e(m,g,t,r,o,a,c,s),n[d]=g,h--,v>--d||v>h)break n;m=n[d],g=e[h]}}if(v>d){if(v<=h)for(p=(f=h+1)h)for(;v<=d;)Hn(n[v++],t,s);else Ve(n,e,r,i,l,d,h,v,t,o,a,u,c,s)}function Ve(n,e,t,r,o,i,l,a,u,c,s,f,p,d){var h,v,m=0,g=0,y=a,b=a,$=i-a+1,k=l-a+1,w=new Int32Array(k+1),x=$===r,P=!1,F=0,S=0;if(o<4||($|k)<32)for(g=y;g<=i;++g)if(h=n[g],Sa?P=!0:F=a,16384&v.flags&&(e[a]=v=G(v)),$e(h,v,u,t,c,s,p,d),++S;break}!x&&a>l&&Hn(h,u,d)}else x||Hn(h,u,d);else{var L={};for(g=b;g<=l;++g)L[e[g].key]=g;for(g=y;g<=i;++g)if(h=n[g],Sy;)Hn(n[y++],u,d);w[a-b]=g+1,F>a?P=!0:F=a,16384&(v=e[a]).flags&&(e[a]=v=G(v)),$e(h,v,u,t,c,s,p,d),++S}else x||Hn(h,u,d);else x||Hn(h,u,d)}if(x)qn(u,f,n,d),fe(e,u,t,c,s,p,d);else if(P){var W=Be(w);for(a=W.length-1,g=k-1;g>=0;g--)0===w[g]?(16384&(v=e[F=g+b]).flags&&(e[F]=v=G(v)),le(v,u,t,c,(m=F+1)0&&U(d.componentWillMove)}else if(S!==k)for(g=k-1;g>=0;g--)0===w[g]&&(16384&(v=e[F=g+b]).flags&&(e[F]=v=G(v)),le(v,u,t,c,(m=F+1)Ie&&(Ie=u,An=new Int32Array(u),Mn=new Int32Array(u));t>1]]0&&(Mn[t]=An[i-1]),An[i]=t)}i=o+1;var c=new Int32Array(i);for(l=An[i-1];i-- >0;)c[i]=l,l=Mn[l],An[i]=0;return c}function Te(n,e,t,r){var o=[],l=new d,u=e.$V;W.v=!0,i(u)?i(n)||(16384&n.flags&&(n=G(n)),le(n,e,r,!1,null,o,l),e.$V=n,u=n):i(n)?(Hn(u,e,l),e.$V=null):(16384&n.flags&&(n=G(n)),$e(u,n,e,r,!1,null,o,l),u=e.$V=n),$(o),w(l.componentDidAppear),W.v=!1,a(t)&&t(),a(N.renderComplete)&&N.renderComplete(u,e)}function Ee(n,e,t,r){void 0===t&&(t=null),void 0===r&&(r=p),Te(n,e,t,r)}"undefined"!==typeof document&&window.Node&&(Node.prototype.$EV=null,Node.prototype.$V=null);var Oe=[],Re="undefined"!==typeof Promise?Promise.resolve().then.bind(Promise.resolve()):function(n){window.setTimeout(n,0)},je=!1;function _e(n,e,t,r){var o=n.$PS;if(a(e)&&(e=e(o?s(n.state,o):n.state,n.props,n.context)),i(o))n.$PS=e;else for(var l in e)o[l]=e[l];if(n.$BR)a(t)&&n.$L.push(t.bind(n));else{if(!W.v&&0===Oe.length)return Xe(n,r),void(a(t)&&t.call(n));if(-1===Oe.indexOf(n)&&Oe.push(n),r&&(n.$F=!0),je||(je=!0,Re(Qe)),a(t)){var u=n.$QU;u||(u=n.$QU=[]),u.push(t)}}}function He(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,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;l0?C(t.componentWillDisappear,D(e,n)):$(e,n,!1)}function x(e,n,t,r,o,l,i,a){e.componentWillMove.push({dom:r,fn:function(){4&i?t.componentWillMove(n,o,r,a):8&i&&t.onComponentWillMove(n,o,r,a)},next:l,parent:o})}function P(e,n,r,l,i){var a,u,c=n.flags;do{var f=n.flags;if(1521&f)return void(t(a)||!o(a.componentWillMove)&&!o(a.onComponentWillMove)?v(r,n.dom,l):x(i,e,a,n.dom,r,l,c,u));var s=n.children;if(4&f)a=n.children,u=n.props,n=s.$LI;else if(8&f)a=n.ref,u=n.props,n=s;else if(8192&f){if(2!==n.childFlags){for(var d=0,p=s.length;d0,v=i(d),h=l(d)&&d[0]===I;p||v||h?(a=a||o.slice(0,f),(p||h)&&(s=X(s)),(v||h)&&(s.key=I+f),a.push(s)):a&&a.push(s),s.flags|=65536}}u=0===(a=a||o).length?1:8}else(a=o).flags|=65536,81920&o.flags&&(a=X(o)),u=2;return t.children=a,t.childFlags=u,t}function G(t){if(r(t)||n(t))return O(t,null);if(e(t))return R(t,0,null);return 16384&t.flags?X(t):t}var J="http://www.w3.org/1999/xlink",z="http://www.w3.org/XML/1998/namespace",Q={"xlink:actuate":J,"xlink:arcrole":J,"xlink:href":J,"xlink:role":J,"xlink:show":J,"xlink:title":J,"xlink:type":J,"xml:base":z,"xml:lang":z,"xml:space":z};function Y(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 Z=Y(0),ee=Y(null),ne=Y(!0);function te(e,n){var t=n.$EV;return t||(t=n.$EV=Y(null)),t[e]||1===++Z[e]&&(ee[e]=pe(e)),t}function re(e,n){var t=n.$EV;t&&t[e]&&(0===--Z[e]&&(document.removeEventListener(d(e),ee[e]),ee[e]=null),t[e]=null)}function oe(e,n,t,r){if(o(t))te(e,r)[e]=t;else if(c(t)){if(M(n,t))return;te(e,r)[e]=t}else re(e,r)}function le(e){return o(e.composedPath)?e.composedPath()[0]:e.target}function ie(e,n,t,r){var o=le(e);do{if(n&&o.disabled)return;var l=o.$EV;if(l){var a=l[t];if(a&&(r.dom=o,a.event?a.event(a.data,e):a(e),e.cancelBubble))return}o=o.parentNode}while(!i(o))}function ae(){this.cancelBubble=!0,this.immediatePropagationStopped||this.stopImmediatePropagation()}function ue(){return this.defaultPrevented}function ce(){return this.cancelBubble}function fe(e){var n={dom:document};return e.isDefaultPrevented=ue,e.isPropagationStopped=ce,e.stopPropagation=ae,Object.defineProperty(e,"currentTarget",{configurable:!0,get:function(){return n.dom}}),n}function se(e){return function(n){if(0!==n.button)return void n.stopPropagation();ie(n,!0,e,fe(n))}}function de(e){return function(n){ie(n,!1,e,fe(n))}}function pe(e){var n="onClick"===e||"onDblClick"===e?se(e):de(e);return document.addEventListener(d(e),n),n}function ve(e,n){var t=document.createElement("i");return t.innerHTML=n,t.innerHTML===e.innerHTML}function he(e,n,t){if(e[n]){var r=e[n];r.event?r.event(r.data,t):r(t)}else{var o=n.toLowerCase();e[o]&&e[o](t)}}function me(e,n){var t=function(t){var r=this.$V;if(!r)return;var i=r.props||f,a=r.dom;if(l(e))he(i,e,t);else for(var u=0;u-1&&n.options[i]&&(a=n.options[i].value),r&&t(a)&&(a=e.defaultValue),De(o,a)}}var Ae,Le,Me=me("onInput",Ie),Se=me("onChange");function Ve(e,n){ge(e,"input",Me),n.onChange&&ge(e,"change",Se)}function Ie(e,n,r){var o=e.value,l=n.value;if(t(o)){if(r){var i=e.defaultValue;t(i)||i===l||(n.defaultValue=i,n.value=i)}}else l!==o&&(n.defaultValue=o,n.value=o)}function Ne(e,n,t,r,o,l){64&e?$e(r,t):256&e?We(r,t,o,n):128&e&&Ie(r,t,o),l&&(t.$V=n)}function Ue(e,n,t){64&e?we(n,t):256&e?Pe(n):128&e&&Ve(n,t)}function Te(e){return e.type&&ke(e.type)?!t(e.checked):!t(e.value)}function Be(e){e&&!V(e,null)&&e.current&&(e.current=null)}function Ee(e,n,t){e&&(o(e)||void 0!==e.current)&&t.push((function(){V(e,n)||void 0===e.current||(e.current=n)}))}function He(e,n,t){Oe(e,t),F(e,n,t)}function Oe(e,n){var r,l=e.flags,a=e.children;if(481&l){r=e.ref;var u=e.props;Be(r);var c=e.childFlags;if(!i(u))for(var d=Object.keys(u),p=0,v=d.length;p0?C(t.componentWillDisappear,je(n,e)):e.textContent=""}function _e(e,n,t,r){Re(t,r),8192&n.flags?F(n,e,r):Xe(e,t,r)}function Ke(e,n,t,r,o){e.componentWillDisappear.push((function(e){4&r?n.componentWillDisappear(t,e):8&r&&n.onComponentWillDisappear(t,o,e)}))}function qe(e){var n=e.event;return function(t){n(e.data,t)}}function Ge(e,n,t,r){if(c(t)){if(M(n,t))return;t=qe(t)}ge(r,d(e),t)}function Je(e,n,r){if(t(n))return void r.removeAttribute("style");var o,i,a=r.style;if(l(n))return void(a.cssText=n);if(t(e)||l(e))for(o in n)i=n[o],a.setProperty(o,i);else{for(o in n)(i=n[o])!==e[o]&&a.setProperty(o,i);for(o in e)t(n[o])&&a.removeProperty(o)}}function ze(e,n,r,o,l){var a=e&&e.__html||"",u=n&&n.__html||"";a!==u&&(t(u)||ve(o,u)||(i(r)||(12&r.childFlags?Re(r.children,l):2===r.childFlags&&Oe(r.children,l),r.children=null,r.childFlags=1),o.innerHTML=u))}function Qe(e,n,r,o,l,i,a,u){switch(e){case"children":case"childrenType":case"className":case"defaultValue":case"key":case"multiple":case"ref":case"selectedIndex":break;case"autoFocus":o.autofocus=!!r;break;case"allowfullscreen":case"autoplay":case"capture":case"checked":case"controls":case"default":case"disabled":case"hidden":case"indeterminate":case"loop":case"muted":case"novalidate":case"open":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"selected":o[e]=!!r;break;case"defaultChecked":case"value":case"volume":if(i&&"value"===e)break;var c=t(r)?"":r;o[e]!==c&&(o[e]=c);break;case"style":Je(n,r,o);break;case"dangerouslySetInnerHTML":ze(n,r,a,o,u);break;default:ne[e]?oe(e,n,r,o):111===e.charCodeAt(0)&&110===e.charCodeAt(1)?Ge(e,n,r,o):t(r)?o.removeAttribute(e):l&&Q[e]?o.setAttributeNS(Q[e],e,r):o.setAttribute(e,r)}}function Ye(e,n,t,r,o,l){var i=!1,a=(448&n)>0;for(var u in a&&(i=Te(t))&&Ue(n,r,t),t)Qe(u,null,t[u],r,o,i,null,l);a&&Ne(n,e,r,t,!0,i)}function Ze(e,n,t){var r=G(e.render(n,e.state,t)),l=t;return o(e.getChildContext)&&(l=a(t,e.getChildContext())),e.$CX=l,r}function en(e,n,t,r,l,a){var u=new n(t,r),c=u.$N=Boolean(n.getDerivedStateFromProps||u.getSnapshotBeforeUpdate);if(u.$SVG=l,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(o(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=Ze(u,t,r),u}function nn(e,n){var t=e.props||f;return 32768&e.flags?e.type.render(t,e.ref,n):e.type(t,n)}function tn(e,n,t,r,o,l,i){var a=e.flags|=16384;481&a?an(e,n,t,r,o,l,i):4&a?cn(e,n,t,r,o,l,i):8&a?fn(e,n,t,r,o,l,i):16&a?ln(e,n,o):8192&a?on(e,t,n,r,o,l,i):1024&a&&rn(e,t,n,o,l,i)}function rn(e,n,t,r,o,l){tn(e.children,e.ref,n,!1,null,o,l);var i=_();ln(i,t,r),e.dom=i.dom}function on(e,n,t,r,o,l,i){var a=e.children,u=e.childFlags;12&u&&0===a.length&&(u=e.childFlags=2,a=e.children=_()),2===u?tn(a,t,n,r,o,l,i):un(a,t,n,r,o,l,i)}function ln(e,n,t){var r=e.dom=document.createTextNode(e.children);i(n)||v(n,r,t)}function an(e,n,r,o,l,a,u){var c=e.flags,f=e.props,s=e.className,d=e.childFlags,p=e.dom=h(e.type,o=o||(32&c)>0),m=e.children;if(t(s)||""===s||(o?p.setAttribute("class",s):p.className=s),16===d)L(p,m);else if(1!==d){var g=o&&"foreignObject"!==e.type;2===d?(16384&m.flags&&(e.children=m=X(m)),tn(m,p,r,g,null,a,u)):8!==d&&4!==d||un(m,p,r,g,null,a,u)}i(n)||v(n,p,l),i(f)||Ye(e,c,f,p,o,u),Ee(e.ref,p,a)}function un(e,n,t,r,o,l,i){for(var a=0;ap)&&(s=y(a[p-1],!1).nextSibling)}Dn(c,f,a,u,t,r,o,s,e,l,i)}function Cn(e,n,t,o,l){var i=e.ref,a=n.ref,u=n.children;if(Dn(e.childFlags,n.childFlags,e.children,u,i,t,!1,null,e,o,l),n.dom=e.dom,i!==a&&!r(u)){var c=u.dom;g(i,c),p(a,c)}}function wn(e,n,r,o,l,i,a){var u,c=n.dom=e.dom,s=e.props,d=n.props,p=!1,v=!1;if(o=o||(32&l)>0,s!==d){var h=s||f;if((u=d||f)!==f)for(var m in(p=(448&l)>0)&&(v=Te(u)),u){var g=h[m],k=u[m];g!==k&&Qe(m,g,k,c,o,v,e,a)}if(h!==f)for(var b in h)t(u[b])&&!t(h[b])&&Qe(b,h[b],null,c,o,v,e,a)}var y=n.children,C=n.className;e.className!==C&&(t(C)?c.removeAttribute("class"):o?c.setAttribute("class",C):c.className=C),4096&l?bn(c,y):Dn(e.childFlags,n.childFlags,e.children,y,c,r,o&&"foreignObject"!==n.type,null,e,i,a),p&&Ne(l,n,c,u,!1,v);var w=n.ref,$=e.ref;$!==w&&(Be($),Ee(w,c,i))}function $n(e,n,t,r,o,l,i){Oe(e,i),un(n,t,r,o,y(e,!0),l,i),F(e,t,i)}function Dn(e,n,t,r,o,l,i,a,u,c,f){switch(e){case 2:switch(n){case 2:gn(t,r,o,l,i,a,c,f);break;case 1:He(t,o,f);break;case 16:Oe(t,f),L(o,r);break;default:$n(t,r,o,l,i,c,f)}break;case 1:switch(n){case 2:tn(r,o,l,i,a,c,f);break;case 1:break;case 16:L(o,r);break;default:un(r,o,l,i,a,c,f)}break;case 16:switch(n){case 16:kn(t,r,o);break;case 2:Xe(o,t,f),tn(r,o,l,i,a,c,f);break;case 1:Xe(o,t,f);break;default:Xe(o,t,f),un(r,o,l,i,a,c,f)}break;default:switch(n){case 16:Re(t,f),L(o,r);break;case 2:_e(o,u,t,f),tn(r,o,l,i,a,c,f);break;case 1:_e(o,u,t,f);break;default:var s=0|t.length,d=0|r.length;0===s?d>0&&un(r,o,l,i,a,c,f):0===d?_e(o,u,t,f):8===n&&8===e?Mn(t,r,o,l,i,s,d,a,u,c,f):Ln(t,r,o,l,i,s,d,a,c,f)}}}function Fn(e,n,t,r,o){o.push((function(){e.componentDidUpdate(n,t,r)}))}function xn(e,n,t,r,l,i,u,c,f,s){var d=e.state,p=e.props,v=Boolean(e.$N),h=o(e.shouldComponentUpdate);if(v&&(n=W(e,t,n!==d?a(d,n):n)),u||!h||h&&e.shouldComponentUpdate(t,n,l)){!v&&o(e.componentWillUpdate)&&e.componentWillUpdate(t,n,l),e.props=t,e.state=n,e.context=l;var m=null,g=Ze(e,t,l);v&&o(e.getSnapshotBeforeUpdate)&&(m=e.getSnapshotBeforeUpdate(p,d)),gn(e.$LI,g,r,e.$CX,i,c,f,s),e.$LI=g,o(e.componentDidUpdate)&&Fn(e,p,d,m,f)}else e.props=t,e.state=n,e.context=l}function Pn(e,n,t,r,l,u,c,s){var d=n.children=e.children;if(i(d))return;d.$L=c;var p=n.props||f,v=n.ref,h=e.ref,m=d.state;if(!d.$N){if(o(d.componentWillReceiveProps)){if(d.$BR=!0,d.componentWillReceiveProps(p,r),d.$UN)return;d.$BR=!1}i(d.$PS)||(m=a(m,d.$PS),d.$PS=null)}xn(d,m,p,t,r,l,!1,u,c,s),h!==v&&(Be(h),Ee(v,d,c))}function Wn(e,n,r,l,i,a,u,c){var s=!0,d=n.props||f,p=n.ref,v=e.props,h=!t(p),m=e.children;if(h&&o(p.onComponentShouldUpdate)&&(s=p.onComponentShouldUpdate(v,d)),!1!==s){h&&o(p.onComponentWillUpdate)&&p.onComponentWillUpdate(v,d);var g=G(nn(n,l));gn(m,g,r,l,i,a,u,c),n.children=g,h&&o(p.onComponentDidUpdate)&&p.onComponentDidUpdate(v,d)}else n.children=m}function An(e,n){var t=n.children,r=n.dom=e.dom;t!==e.children&&(r.nodeValue=t)}function Ln(e,n,t,r,o,l,i,a,u,c){for(var f,s,d=l>i?i:l,p=0;pi)for(p=d;pp||h>v)break e;m=e[h],g=n[h]}for(m=e[p],g=n[v];m.key===g.key;){if(16384&g.flags&&(n[v]=g=X(g)),gn(m,g,t,r,o,a,c,f),e[p]=g,v--,h>--p||h>v)break e;m=e[p],g=n[v]}}if(h>p){if(h<=v)for(d=(s=v+1)v)for(;h<=p;)He(e[h++],t,f);else Sn(e,n,r,l,i,p,v,h,t,o,a,u,c,f)}function Sn(e,n,t,r,o,l,i,a,u,c,f,s,d,p){var v,h,m=0,g=0,k=a,b=a,C=l-a+1,$=i-a+1,D=new Int32Array($+1),F=C===r,x=!1,W=0,A=0;if(o<4||(C|$)<32)for(g=k;g<=l;++g)if(v=e[g],A<$){for(a=b;a<=i;a++)if(h=n[a],v.key===h.key){if(D[a-b]=g+1,F)for(F=!1;ka?x=!0:W=a,16384&h.flags&&(n[a]=h=X(h)),gn(v,h,u,t,c,f,d,p),++A;break}!F&&a>i&&He(v,u,p)}else F||He(v,u,p);else{var L={};for(g=b;g<=i;++g)L[n[g].key]=g;for(g=k;g<=l;++g)if(v=e[g],A<$)if(void 0!==(a=L[v.key])){if(F)for(F=!1;g>k;)He(e[k++],u,p);D[a-b]=g+1,W>a?x=!0:W=a,16384&(h=n[a]).flags&&(n[a]=h=X(h)),gn(v,h,u,t,c,f,d,p),++A}else F||He(v,u,p);else F||He(v,u,p)}if(F)_e(u,s,e,p),un(n,u,t,c,f,d,p);else if(x){var M=In(D);for(a=M.length-1,g=$-1;g>=0;g--)0===D[g]?(16384&(h=n[W=g+b]).flags&&(n[W]=h=X(h)),tn(h,u,t,c,(m=W+1)0&&w(p.componentWillMove)}else if(A!==$)for(g=$-1;g>=0;g--)0===D[g]&&(16384&(h=n[W=g+b]).flags&&(n[W]=h=X(h)),tn(h,u,t,c,(m=W+1)Vn&&(Vn=u,Ae=new Int32Array(u),Le=new Int32Array(u));t>1]]0&&(Le[t]=Ae[l-1]),Ae[l]=t)}l=o+1;var c=new Int32Array(l);for(i=Ae[l-1];l-- >0;)c[l]=i,i=Le[i],Ae[l]=0;return c}function Nn(e,n,r,l){var i=[],a=new s,u=n.$V;t(u)?t(e)||(16384&e.flags&&(e=X(e)),tn(e,n,l,!1,null,i,a),n.$V=e,u=e):t(e)?(He(u,n,a),n.$V=null):(16384&e.flags&&(e=X(e)),gn(u,e,n,l,!1,null,i,a),u=n.$V=e),k(i),C(a.componentDidAppear),o(r)&&r(),o(A.renderComplete)&&A.renderComplete(u,n)}function Un(e,n,t,r){void 0===t&&(t=null),void 0===r&&(r=f),Nn(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","8.0.0-alpha.6");var Tn={onComponentShouldUpdate:function(e,n){return e!==n}};function Bn(e){return U(1,"li","TreeLeaf",e.children,16,null,null,null)}function En(e){for(var n=e.data,t=n.children.length,r=new Array(t),o=0;o (https://terinstock.com/)", @@ -28,11 +28,11 @@ "directory": "packages/inferno-hyperscript" }, "dependencies": { - "inferno": "8.0.0-alpha.5" + "inferno": "8.0.0-alpha.6" }, "devDependencies": { - "inferno-shared": "8.0.0-alpha.5", - "inferno-vnode-flags": "8.0.0-alpha.5" + "inferno-shared": "8.0.0-alpha.6", + "inferno-vnode-flags": "8.0.0-alpha.6" }, "rollup": { "bundledDependencies": [ diff --git a/packages/inferno-mobx/package.json b/packages/inferno-mobx/package.json index 0b9d57886..8a4c3de06 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.5", + "version": "8.0.0-alpha.6", "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.5", - "inferno-create-class": "8.0.0-alpha.5", - "inferno-create-element": "8.0.0-alpha.5", - "inferno-shared": "8.0.0-alpha.5", - "inferno-vnode-flags": "8.0.0-alpha.5" + "inferno": "8.0.0-alpha.6", + "inferno-create-class": "8.0.0-alpha.6", + "inferno-create-element": "8.0.0-alpha.6", + "inferno-shared": "8.0.0-alpha.6", + "inferno-vnode-flags": "8.0.0-alpha.6" }, "devDependencies": { "mobx": "*" diff --git a/packages/inferno-redux/package.json b/packages/inferno-redux/package.json index 12d001f73..23130c5c7 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.5", + "version": "8.0.0-alpha.6", "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.5" + "inferno": "8.0.0-alpha.6" }, "devDependencies": { - "inferno-create-class": "8.0.0-alpha.5", - "inferno-create-element": "8.0.0-alpha.5", - "inferno-shared": "8.0.0-alpha.5", + "inferno-create-class": "8.0.0-alpha.6", + "inferno-create-element": "8.0.0-alpha.6", + "inferno-shared": "8.0.0-alpha.6", "redux": "^4" }, "rollup": { diff --git a/packages/inferno-router/package.json b/packages/inferno-router/package.json index 3a332ecd6..875c901a3 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.5", + "version": "8.0.0-alpha.6", "license": "MIT", "description": "Provides routing functionality for Inferno", "author": { @@ -42,11 +42,11 @@ "dependencies": { "history": "^5.2.0", "hoist-non-inferno-statics": "^1.1.3", - "inferno": "8.0.0-alpha.5", + "inferno": "8.0.0-alpha.6", "path-to-regexp-es6": "1.7.0" }, "devDependencies": { - "inferno-vnode-flags": "8.0.0-alpha.5", + "inferno-vnode-flags": "8.0.0-alpha.6", "mobx": "*" }, "rollup": { diff --git a/packages/inferno-server/package.json b/packages/inferno-server/package.json index cf825b113..8360652fd 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.5", + "version": "8.0.0-alpha.6", "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.5", - "inferno-create-element": "8.0.0-alpha.5", - "inferno-hydrate": "8.0.0-alpha.5", - "inferno-shared": "8.0.0-alpha.5", - "inferno-vnode-flags": "8.0.0-alpha.5", + "inferno-create-class": "8.0.0-alpha.6", + "inferno-create-element": "8.0.0-alpha.6", + "inferno-hydrate": "8.0.0-alpha.6", + "inferno-shared": "8.0.0-alpha.6", + "inferno-vnode-flags": "8.0.0-alpha.6", "mobx": "*" }, "dependencies": { - "inferno": "8.0.0-alpha.5" + "inferno": "8.0.0-alpha.6" }, "rollup": { "bundledDependencies": [ diff --git a/packages/inferno-shared/package.json b/packages/inferno-shared/package.json index 76fa82725..1a0e4e938 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.5", + "version": "8.0.0-alpha.6", "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 877509655..83dc46b34 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.5", + "version": "8.0.0-alpha.6", "license": "MIT", "description": "Suite of utilities for testing Inferno applications", "author": { @@ -21,11 +21,11 @@ "utils" ], "devDependencies": { - "inferno-shared": "8.0.0-alpha.5", - "inferno-vnode-flags": "8.0.0-alpha.5" + "inferno-shared": "8.0.0-alpha.6", + "inferno-vnode-flags": "8.0.0-alpha.6" }, "dependencies": { - "inferno": "8.0.0-alpha.5" + "inferno": "8.0.0-alpha.6" }, "rollup": { "bundledDependencies": [ diff --git a/packages/inferno-utils/package.json b/packages/inferno-utils/package.json index 4b5688165..d1ae2083e 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.5", + "version": "8.0.0-alpha.6", "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.5", - "inferno-vnode-flags": "8.0.0-alpha.5" + "inferno-shared": "8.0.0-alpha.6", + "inferno-vnode-flags": "8.0.0-alpha.6" }, "keywords": [], "author": "", diff --git a/packages/inferno-vnode-flags/package.json b/packages/inferno-vnode-flags/package.json index d50a62ba1..4067c9eec 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.5", + "version": "8.0.0-alpha.6", "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 2dcdf8caa..f67fc008d 100644 --- a/packages/inferno/package.json +++ b/packages/inferno/package.json @@ -1,6 +1,6 @@ { "name": "inferno", - "version": "8.0.0-alpha.5", + "version": "8.0.0-alpha.6", "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.5" + "inferno-utils": "8.0.0-alpha.6" }, "dependencies": { - "inferno-shared": "8.0.0-alpha.5", - "inferno-vnode-flags": "8.0.0-alpha.5", + "inferno-shared": "8.0.0-alpha.6", + "inferno-vnode-flags": "8.0.0-alpha.6", "opencollective-postinstall": "^2.0.3" } }