New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

inferno

Package Overview
Dependencies
Maintainers
3
Versions
340
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

inferno - npm Package Compare versions

Comparing version 0.7.12 to 0.7.13

2

dist/inferno-component.js
/*!
* inferno-component v0.7.12
* inferno-component v0.7.13
* (c) 2016 Dominic Gannaway

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*!
* inferno-create-class v0.7.12
* inferno-create-class v0.7.13
* (c) 2016 Dominic Gannaway

@@ -343,3 +343,3 @@ * Released under the MIT License.

for (var key in props) {
if (all === true || props[key] != null) {
if (all === true || !isNullOrUndefined(props[key])) {
base[key] = props[key];

@@ -361,3 +361,3 @@ }

function createClass(obj) {
function cl(props) {
function Cl(props) {
extend(this, obj);

@@ -372,6 +372,6 @@ Component.call(this, props);

F.prototype = Component.prototype;
cl.prototype = new F();
cl.prototype.constructor = cl;
cl.displayName = obj.displayName || 'Component';
return cl;
Cl.prototype = new F();
Cl.prototype.constructor = Cl;
Cl.displayName = obj.displayName || 'Component';
return Cl;
}

@@ -378,0 +378,0 @@

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

!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.InfernoCreateClass=e()}(this,function(){"use strict";function t(t){return void 0===t||e(t)}function e(t){return null===t}function n(t,e,n){t.split(",").forEach(function(t){return e[t]=n})}function o(){return{"null":!0,dom:document.createTextNode("")}}function i(){this._listeners=[],this.scrollX=null,this.scrollY=null,this.screenHeight=k,this.screenWidth=g}function r(){return document.activeElement}function l(t){t!==document.body&&document.activeElement!==t&&t.focus()}function a(t,e,n){for(var o in e)t._pendingState[o]=e[o];if(t._pendingSetState){var i=t._pendingState,r=t.state;t.state=Object.assign({},r,i),t._pendingState={}}else t._pendingSetState=!0,s(t,!1,n)}function s(e,n,a){if(!e._deferSetState||n){e._pendingSetState=!1;var s=e._pendingState,u=e.state,c=Object.assign({},u,s);e._pendingState={};var p=e._updateComponent(u,c,e.props,e.props,n);p===h?p=e._lastNode:t(p)&&(p=o());var d=e._lastNode,f=d.dom.parentNode,m=r(),y=new i;e._patch(d,p,f,y,e.context,e,null),e._lastNode=p,e._parentNode.dom=p.dom,y.trigger(),t(a)||a(),l(m)}}function u(){}function c(t,e,n){for(var o in e)n!==!0&&null==e[o]||(t[o]=e[o]);return t}function p(t){for(var e in t){var n=t[e];"function"!=typeof n||n.__bound||N.hasOwnProperty(e)||((t[e]=n.bind(t)).__bound=!0)}}function d(t){function e(e){c(this,t),U.call(this,e),p(this),this.getInitialState&&(this.state=this.getInitialState())}return u.prototype=U.prototype,e.prototype=new u,e.prototype.constructor=e,e.displayName=t.displayName||"Component",e}var f={};f.typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol?"symbol":typeof t},f.classCallCheck=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},f.createClass=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),f.inherits=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)},f.possibleConstructorReturn=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e};var h="NO_RENDER",m="undefined"!=typeof window&&window.document,y="http://www.w3.org/1999/xlink",w="http://www.w3.org/XML/1998/namespace",_={},b={},v={},S={};n("xlink:href,xlink:arcrole,xlink:actuate,xlink:role,xlink:titlef,xlink:type",v,y),n("xml:base,xml:lang,xml:space",v,w),n("volume,value",_,!0),n("muted,scoped,loop,open,checked,default,capture,disabled,selected,readonly,multiple,required,autoplay,controls,seamless,reversed,allowfullscreen,novalidate",b,!0),n("animationIterationCount,borderImageOutset,borderImageSlice,borderImageWidth,boxFlex,boxFlexGroup,boxOrdinalGroup,columnCount,flex,flexGrow,flexPositive,flexShrink,flexNegative,flexOrder,gridRow,gridColumn,fontWeight,lineClamp,lineHeight,opacity,order,orphans,tabSize,widows,zIndex,zoom,fillOpacity,floodOpacity,stopOpacity,strokeDasharray,strokeDashoffset,strokeMiterlimit,strokeOpacity,strokeWidth,",S,!0);var g=m&&window.screen.width,k=m&&window.screen.height,x=0,C=0,O=0;m&&(window.onscroll=function(t){x=window.scrollX,C=window.scrollY,O=performance.now()},window.resize=function(t){x=window.scrollX,C=window.scrollY,g=window.screen.width,k=window.screen.height,O=performance.now()}),i.prototype={refresh:function(){this.scrollX=m&&window.scrollX,this.scrollY=m&&window.scrollY},addListener:function(t){this._listeners.push(t)},trigger:function(){for(var t=0;t<this._listeners.length;t++)this._listeners[t]()}};var W="Inferno Error: Can only update a mounted or mounting component. This usually means you called setState() or forceUpdate() on an unmounted component. This is a no-op.",U=function(){function e(t){f.classCallCheck(this,e),this.props=t||{},this.state={},this.refs={},this._blockSetState=!1,this._deferSetState=!1,this._pendingSetState=!1,this._pendingState={},this._parentNode=null,this._lastNode=null,this._unmounted=!0,this.context={},this._patch=null,this._parentComponent=null}return f.createClass(e,[{key:"render",value:function(){}},{key:"forceUpdate",value:function(t){if(this._unmounted)throw Error(W);s(this,!0,t)}},{key:"setState",value:function(t,e){if(this._unmounted)throw Error(W);if(this._blockSetState!==!1)throw Error("Inferno Warning: Cannot update state via setState() in componentWillUpdate()");a(this,t,e)}},{key:"componentDidMount",value:function(){}},{key:"componentWillMount",value:function(){}},{key:"componentWillUnmount",value:function(){}},{key:"componentDidUpdate",value:function(){}},{key:"shouldComponentUpdate",value:function(){return!0}},{key:"componentWillReceiveProps",value:function(){}},{key:"componentWillUpdate",value:function(){}},{key:"getChildContext",value:function(){}},{key:"_updateComponent",value:function(e,n,o,i,r){if(this._unmounted===!0)return this._unmounted=!1,!1;if(!t(i)&&t(i.children)&&(i.children=o.children),o!==i||e!==n||r){o!==i&&(this._blockSetState=!0,this.componentWillReceiveProps(i),this._blockSetState=!1);var l=this.shouldComponentUpdate(i,n);if(l!==!1){this._blockSetState=!0,this.componentWillUpdate(i,n),this._blockSetState=!1,this.props=i,this.state=n;var a=this.render();return this.componentDidUpdate(o,e),a}}return h}}]),e}(),N={constructor:1,render:1,shouldComponentUpdate:1,componentWillRecieveProps:1,componentWillUpdate:1,componentDidUpdate:1,componentWillMount:1,componentDidMount:1,componentWillUnmount:1,componentDidUnmount:1};return d});
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.InfernoCreateClass=e()}(this,function(){"use strict";function t(t){return void 0===t||e(t)}function e(t){return null===t}function n(t,e,n){t.split(",").forEach(function(t){return e[t]=n})}function o(){return{"null":!0,dom:document.createTextNode("")}}function i(){this._listeners=[],this.scrollX=null,this.scrollY=null,this.screenHeight=k,this.screenWidth=g}function r(){return document.activeElement}function l(t){t!==document.body&&document.activeElement!==t&&t.focus()}function a(t,e,n){for(var o in e)t._pendingState[o]=e[o];if(t._pendingSetState){var i=t._pendingState,r=t.state;t.state=Object.assign({},r,i),t._pendingState={}}else t._pendingSetState=!0,s(t,!1,n)}function s(e,n,a){if(!e._deferSetState||n){e._pendingSetState=!1;var s=e._pendingState,u=e.state,c=Object.assign({},u,s);e._pendingState={};var p=e._updateComponent(u,c,e.props,e.props,n);p===h?p=e._lastNode:t(p)&&(p=o());var d=e._lastNode,f=d.dom.parentNode,m=r(),y=new i;e._patch(d,p,f,y,e.context,e,null),e._lastNode=p,e._parentNode.dom=p.dom,y.trigger(),t(a)||a(),l(m)}}function u(){}function c(e,n,o){for(var i in n)o!==!0&&t(n[i])||(e[i]=n[i]);return e}function p(t){for(var e in t){var n=t[e];"function"!=typeof n||n.__bound||N.hasOwnProperty(e)||((t[e]=n.bind(t)).__bound=!0)}}function d(t){function e(e){c(this,t),U.call(this,e),p(this),this.getInitialState&&(this.state=this.getInitialState())}return u.prototype=U.prototype,e.prototype=new u,e.prototype.constructor=e,e.displayName=t.displayName||"Component",e}var f={};f.typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol?"symbol":typeof t},f.classCallCheck=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},f.createClass=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),f.inherits=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)},f.possibleConstructorReturn=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e};var h="NO_RENDER",m="undefined"!=typeof window&&window.document,y="http://www.w3.org/1999/xlink",w="http://www.w3.org/XML/1998/namespace",_={},b={},v={},S={};n("xlink:href,xlink:arcrole,xlink:actuate,xlink:role,xlink:titlef,xlink:type",v,y),n("xml:base,xml:lang,xml:space",v,w),n("volume,value",_,!0),n("muted,scoped,loop,open,checked,default,capture,disabled,selected,readonly,multiple,required,autoplay,controls,seamless,reversed,allowfullscreen,novalidate",b,!0),n("animationIterationCount,borderImageOutset,borderImageSlice,borderImageWidth,boxFlex,boxFlexGroup,boxOrdinalGroup,columnCount,flex,flexGrow,flexPositive,flexShrink,flexNegative,flexOrder,gridRow,gridColumn,fontWeight,lineClamp,lineHeight,opacity,order,orphans,tabSize,widows,zIndex,zoom,fillOpacity,floodOpacity,stopOpacity,strokeDasharray,strokeDashoffset,strokeMiterlimit,strokeOpacity,strokeWidth,",S,!0);var g=m&&window.screen.width,k=m&&window.screen.height,x=0,C=0,O=0;m&&(window.onscroll=function(t){x=window.scrollX,C=window.scrollY,O=performance.now()},window.resize=function(t){x=window.scrollX,C=window.scrollY,g=window.screen.width,k=window.screen.height,O=performance.now()}),i.prototype={refresh:function(){this.scrollX=m&&window.scrollX,this.scrollY=m&&window.scrollY},addListener:function(t){this._listeners.push(t)},trigger:function(){for(var t=0;t<this._listeners.length;t++)this._listeners[t]()}};var W="Inferno Error: Can only update a mounted or mounting component. This usually means you called setState() or forceUpdate() on an unmounted component. This is a no-op.",U=function(){function e(t){f.classCallCheck(this,e),this.props=t||{},this.state={},this.refs={},this._blockSetState=!1,this._deferSetState=!1,this._pendingSetState=!1,this._pendingState={},this._parentNode=null,this._lastNode=null,this._unmounted=!0,this.context={},this._patch=null,this._parentComponent=null}return f.createClass(e,[{key:"render",value:function(){}},{key:"forceUpdate",value:function(t){if(this._unmounted)throw Error(W);s(this,!0,t)}},{key:"setState",value:function(t,e){if(this._unmounted)throw Error(W);if(this._blockSetState!==!1)throw Error("Inferno Warning: Cannot update state via setState() in componentWillUpdate()");a(this,t,e)}},{key:"componentDidMount",value:function(){}},{key:"componentWillMount",value:function(){}},{key:"componentWillUnmount",value:function(){}},{key:"componentDidUpdate",value:function(){}},{key:"shouldComponentUpdate",value:function(){return!0}},{key:"componentWillReceiveProps",value:function(){}},{key:"componentWillUpdate",value:function(){}},{key:"getChildContext",value:function(){}},{key:"_updateComponent",value:function(e,n,o,i,r){if(this._unmounted===!0)return this._unmounted=!1,!1;if(!t(i)&&t(i.children)&&(i.children=o.children),o!==i||e!==n||r){o!==i&&(this._blockSetState=!0,this.componentWillReceiveProps(i),this._blockSetState=!1);var l=this.shouldComponentUpdate(i,n);if(l!==!1){this._blockSetState=!0,this.componentWillUpdate(i,n),this._blockSetState=!1,this.props=i,this.state=n;var a=this.render();return this.componentDidUpdate(o,e),a}}return h}}]),e}(),N={constructor:1,render:1,shouldComponentUpdate:1,componentWillRecieveProps:1,componentWillUpdate:1,componentDidUpdate:1,componentWillMount:1,componentDidMount:1,componentWillUnmount:1,componentDidUnmount:1};return d});
/*!
* inferno-create-element v0.7.12
* inferno-create-element v0.7.13
* (c) 2016 Dominic Gannaway

@@ -78,3 +78,3 @@ * Released under the MIT License.

function isInvalidNode(obj) {
return isNull(obj) || obj === false || obj === void 0;
return isNull(obj) || obj === false || obj === true || obj === void 0;
}

@@ -81,0 +81,0 @@

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

!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):t.InfernoCreateElement=n()}(this,function(){"use strict";function t(t){return t instanceof Array}function n(t){return void 0===t||i(t)}function e(t){return i(t)||t===!1||void 0===t}function o(t){return"function"==typeof t}function r(t){return"o"===t[0]&&"n"===t[1]&&t.length>3}function i(t){return null===t}function l(t){return"onCreated"===t||"onAttached"===t||"onWillDetach"===t||"onWillUpdate"===t||"onDidUpdate"===t}function u(t){return"onComponentWillMount"===t||"onComponentDidMount"===t||"onComponentWillUnmount"===t||"onComponentShouldUpdate"===t||"onComponentWillUpdate"===t||"onComponentDidUpdate"===t}function s(t){this.bp=t,this.dom=null,this.instance=null,this.tag=null,this.children=null,this.style=null,this.className=null,this.attrs=null,this.events=null,this.hooks=null,this.key=null,this.clipData=null}function a(t){return new s(t)}function f(e,i){var s=null,a=null,f=null,c=null,h=null;if(!n(e)){if(t(e))return e;for(var p in e)"className"===p?c=e[p]:"style"===p?h=e[p]:l(p)&&!o(i)?(n(a)&&(a={}),a[p.substring(2).toLowerCase()]=e[p],delete e[p]):r(p)&&!o(i)?(n(s)&&(s={}),s[p.toLowerCase()]=e[p],delete e[p]):u(p)&&o(i)?(n(a)&&(a={}),a["c"+p.substring(3)]=e[p],delete e[p]):o(i)?f=e:(n(f)&&(f={}),f[p]=e[p])}return{attrs:f,events:s,className:c,style:h,hooks:a}}function c(o){var r=o.tag,i=o.attrs,l=o.children,u=o.className,s=o.style,c=o.events,p=o.hooks;if(void 0===r&&!n(i)&&!i.tpl&&!n(l)&&0===l.length)return null;var d=n(i)||n(i.key)?void 0:i.key;n(l)||0!==l.length?e(l)||(l=h(t(l)&&1===l.length?l[0]:l)):l=null,void 0!==d&&delete i.key;var y=f(i,r),m=a();return u=u||y.className,s=s||y.style,m.tag=r||null,m.attrs=y.attrs||null,m.events=y.events||c,m.hooks=y.hooks||p,m.children=void 0===l?null:l,m.key=void 0===d?null:d,m.className=void 0===u?null:u,m.style=void 0===s?null:s,m}function h(e){var o=!n(e);if(o&&t(e)){for(var r=[],i=0;i<e.length;i++){var l=e[i];n(l)||"object"!==("undefined"==typeof l?"undefined":d.typeof(l))?r.push(l):t(l)?l.length>0?r.push(h(l)):r.push(null):r.push(c(l))}return r}return o&&"object"===("undefined"==typeof e?"undefined":d.typeof(e))&&void 0===e.dom?c(e):e}function p(t,n){for(var e=arguments.length,o=Array(e>2?e-2:0),r=2;e>r;r++)o[r-2]=arguments[r];return c({tag:t,attrs:n,children:o})}var d={};return d.typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol?"symbol":typeof t},d.classCallCheck=function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")},d.createClass=function(){function t(t,n){for(var e=0;e<n.length;e++){var o=n[e];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(n,e,o){return e&&t(n.prototype,e),o&&t(n,o),n}}(),d.inherits=function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function, not "+typeof n);t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(t,n):t.__proto__=n)},d.possibleConstructorReturn=function(t,n){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!n||"object"!=typeof n&&"function"!=typeof n?t:n},s.prototype={setAttrs:function(t){return this.attrs=t,this},setTag:function(t){return this.tag=t,this},setStyle:function(t){return this.style=t,this},setClassName:function(t){return this.className=t,this},setChildren:function(t){return this.children=t,this},setHooks:function(t){return this.hooks=t,this},setEvents:function(t){return this.events=t,this},setKey:function(t){return this.key=t,this}},p});
!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):t.InfernoCreateElement=n()}(this,function(){"use strict";function t(t){return t instanceof Array}function n(t){return void 0===t||i(t)}function e(t){return i(t)||t===!1||t===!0||void 0===t}function o(t){return"function"==typeof t}function r(t){return"o"===t[0]&&"n"===t[1]&&t.length>3}function i(t){return null===t}function l(t){return"onCreated"===t||"onAttached"===t||"onWillDetach"===t||"onWillUpdate"===t||"onDidUpdate"===t}function u(t){return"onComponentWillMount"===t||"onComponentDidMount"===t||"onComponentWillUnmount"===t||"onComponentShouldUpdate"===t||"onComponentWillUpdate"===t||"onComponentDidUpdate"===t}function s(t){this.bp=t,this.dom=null,this.instance=null,this.tag=null,this.children=null,this.style=null,this.className=null,this.attrs=null,this.events=null,this.hooks=null,this.key=null,this.clipData=null}function a(t){return new s(t)}function f(e,i){var s=null,a=null,f=null,c=null,h=null;if(!n(e)){if(t(e))return e;for(var p in e)"className"===p?c=e[p]:"style"===p?h=e[p]:l(p)&&!o(i)?(n(a)&&(a={}),a[p.substring(2).toLowerCase()]=e[p],delete e[p]):r(p)&&!o(i)?(n(s)&&(s={}),s[p.toLowerCase()]=e[p],delete e[p]):u(p)&&o(i)?(n(a)&&(a={}),a["c"+p.substring(3)]=e[p],delete e[p]):o(i)?f=e:(n(f)&&(f={}),f[p]=e[p])}return{attrs:f,events:s,className:c,style:h,hooks:a}}function c(o){var r=o.tag,i=o.attrs,l=o.children,u=o.className,s=o.style,c=o.events,p=o.hooks;if(void 0===r&&!n(i)&&!i.tpl&&!n(l)&&0===l.length)return null;var d=n(i)||n(i.key)?void 0:i.key;n(l)||0!==l.length?e(l)||(l=h(t(l)&&1===l.length?l[0]:l)):l=null,void 0!==d&&delete i.key;var y=f(i,r),m=a();return u=u||y.className,s=s||y.style,m.tag=r||null,m.attrs=y.attrs||null,m.events=y.events||c,m.hooks=y.hooks||p,m.children=void 0===l?null:l,m.key=void 0===d?null:d,m.className=void 0===u?null:u,m.style=void 0===s?null:s,m}function h(e){var o=!n(e);if(o&&t(e)){for(var r=[],i=0;i<e.length;i++){var l=e[i];n(l)||"object"!==("undefined"==typeof l?"undefined":d.typeof(l))?r.push(l):t(l)?l.length>0?r.push(h(l)):r.push(null):r.push(c(l))}return r}return o&&"object"===("undefined"==typeof e?"undefined":d.typeof(e))&&void 0===e.dom?c(e):e}function p(t,n){for(var e=arguments.length,o=Array(e>2?e-2:0),r=2;e>r;r++)o[r-2]=arguments[r];return c({tag:t,attrs:n,children:o})}var d={};return d.typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol?"symbol":typeof t},d.classCallCheck=function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")},d.createClass=function(){function t(t,n){for(var e=0;e<n.length;e++){var o=n[e];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(n,e,o){return e&&t(n.prototype,e),o&&t(n,o),n}}(),d.inherits=function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function, not "+typeof n);t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(t,n):t.__proto__=n)},d.possibleConstructorReturn=function(t,n){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!n||"object"!=typeof n&&"function"!=typeof n?t:n},s.prototype={setAttrs:function(t){return this.attrs=t,this},setTag:function(t){return this.tag=t,this},setStyle:function(t){return this.style=t,this},setClassName:function(t){return this.className=t,this},setChildren:function(t){return this.children=t,this},setHooks:function(t){return this.hooks=t,this},setEvents:function(t){return this.events=t,this},setKey:function(t){return this.key=t,this}},p});

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

!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):e.InfernoDOM=n()}(this,function(){"use strict";function e(e,t){if(!o(e)){var r=n(e);(r&&e.length>0||!r)&&(t=t?Object.assign({},t,{children:e}):{children:e})}return t}function n(e){return e instanceof Array}function t(e){return void 0!==e.prototype.render}function r(e){return a(e)||s(e)}function o(e){return void 0===e||d(e)}function l(e){return d(e)||e===!1||void 0===e}function i(e){return"function"==typeof e}function a(e){return"string"==typeof e}function s(e){return"number"==typeof e}function d(e){return null===e}function c(e){return e instanceof Promise}function u(e,n,t){e.splice(e.indexOf(n),1,t)}function f(e,t){if(!l(e))if(n(e))for(var r=0;r<e.length;r++){var o=e[r];if(!l(o)){if(o===t)return!0;if(o.children)return f(o.children,t)}}else{if(e===t)return!0;if(e.children)return f(e.children,t)}return!1}function h(e,n){var t=n.props.children;return f(t,e)?h(e,n._parentComponent):n}function p(e,n,t,r,l){if(void 0!==n){var i=e.key,a=null===i?n.pools.nonKeyed:n.pools.keyed[i];if(!o(a)){var s=a.pop();if(!o(s))return de(s,e,null,t,r,l,!0,n.isSVG),e.dom}}return null}function v(e){var n=e.bp;if(!o(n)){var t=e.key,r=n.pools;if(null===t){var l=r.nonKeyed;l&&l.push(e)}else{var i=r.keyed;(i[t]||(i[t]=[])).push(e)}return!0}return!1}function m(e,t,r,o,i,a){if(n(e))return Q(e,t);if(l(e))return null;var s=e.bp;if(We){var d=p(e,s,r,o,i);if(null!==d)return null!==t&&t.appendChild(d),d}return void 0===s?w(e,t,r,o,i,a):C(e,s,t,r,o,i)}function y(e){"select"===e.tag&&J(e)}function g(e,n,t,r){y(e);var o=e.attrs;if(null===n.attrKeys){var l=Object.keys(o);n.attrKeys=n.attrKeys?n.attrKeys.concat(l):l}var i=n.attrKeys;j(e,o,i,t,r)}function b(e,n,t){var r=e.events;null===n.eventKeys&&(n.eventKeys=Object.keys(r));var o=n.eventKeys;S(r,o,t)}function C(e,n,t,r,o,l){var i=e.tag;if(n.isComponent===!0)return T(e,i,e.attrs||{},e.hooks,e.children,l,t,r,o);var a=A(n.tag,n.isSVG);switch(e.dom=a,n.hasHooks===!0&&Z(e.hooks,r,a),n.lazy===!0&&ge(e,r,a),n.childrenType){case 1:K(e.children,a,!0);break;case 2:m(e.children,a,r,o,l);break;case 3:x(e,e.children,a,r,o,l);break;case 4:N(e.children,a,r,o,l);break;case 5:_(e,e.children,a,r,o,l)}return n.hasAttrs===!0&&g(e,n,a,l),n.hasClassName===!0&&(a.className=e.className),n.hasStyle===!0&&ce(null,e.style,a),n.hasEvents===!0&&b(e,n,a),null!==t&&t.appendChild(a),a}function w(e,n,t,r,s,d){var c=e.tag;if(null===c)return Q(e,n);if(i(c))return T(e,c,e.attrs||{},e.hooks,e.children,s,n,t,r);if(!a(c)||""===c)throw Error("Inferno Error: Expected function or string for element tag type");"svg"===c&&(d=!0);var u=A(c,d),f=e.children,h=e.attrs,p=e.events,v=e.hooks,m=e.className,g=e.style;return e.dom=u,o(v)||Z(v,t,u),l(f)||_(e,f,u,t,r,s,d),o(h)||(y(e),j(e,h,Object.keys(h),u,s)),o(m)||(u.className=m),o(g)||ce(null,g,u),o(p)||S(p,Object.keys(p),u),null!==n&&n.appendChild(u),u}function k(e,n,t,r,o,i,a){var s=B();t&&t.push(s),e.then(function(e){var d=m(e,null,r,o,i,a);null===n||l(d)||n.replaceChild(d,s),t&&u(t,s,d)}),n.appendChild(s)}function N(e,n,t,r,o){for(var l=0;l<e.length;l++)m(e[l],n,t,r,o)}function x(e,t,i,a,s,d,u){for(var f=null,h=!1,p=!1,v=0;v<t.length;v++){var y=t[v];if(r(y))h=!0,f=f||[],f.push(K(y,i,!1));else if(!o(y)&&n(y)){var g=R();h=!0,x(e,y,g,a,s,d,u),D(i,g),f=f||[],f.push(g)}else if(c(y))k(y,i,f,a,s,d,u);else{var b=m(y,i,a,s,d,u);h||!p&&!o(y)&&o(y.key)?(h=!0,f=f||[],f.push(b)):l(y)?(h=!0,f=f||[],f.push(b)):p===!1&&(p=!0)}}null!==f&&f.length>1&&h===!0&&(e.domChildren=f)}function _(e,t,o,l,i,a,s){n(t)?x(e,t,o,l,i,a,s):r(t)?K(t,o,!0):c(t)?k(t,o,null,l,i,a,s):m(t,o,l,i,a,s)}function O(e,n,t){!l(e)&&a(n)&&(e.refs[n]=t)}function S(e,n,t){for(var r=0;r<n.length;r++){var o=n[r];t[o]=e[o]}}function T(n,r,i,a,s,d,c,u,f){i=e(s,i);var h=void 0;if(t(r)){var p=new r(i);p._patch=de,!o(d)&&i.ref&&O(d,i.ref,p);var v=p.getChildContext();o(v)||(f=Object.assign({},f,v)),p.context=f,p._unmounted=!1,p._parentNode=n,d&&(p._parentComponent=d),p._pendingSetState=!0,p.componentWillMount();var y=p.render();p._pendingSetState=!1,l(y)?(p._lastNode=U(),h=p._lastNode.dom):(h=m(y,null,u,f,p,!1),p._lastNode=y,p.componentDidMount()),null===c||l(h)||c.appendChild(h),n.dom=h,n.instance=p}else{o(a)||(o(a.componentWillMount)||a.componentWillMount(null,i),o(a.componentDidMount)||u.addListener(function(){a.componentDidMount(h,i)}));var g=r(i,f);h=m(g,null,u,f,null,!1),n.instance=g,null===c||l(h)||c.appendChild(h),n.dom=h}return h}function j(e,n,t,r,o){for(var l=0;l<t.length;l++){var i=t[l];"ref"===i?O(h(e,o),n[i],r):fe(i,null,n[i],r)}}function E(e,n,t){e.split(",").forEach(function(e){return n[e]=t})}function M(e){return!o(e.append)}function D(e,n,t){o(t)?M(n)?n.append(e):e.appendChild(n):M(n)?n.insert(e,t):M(t)?e.insertBefore(n,t.childNodes[0]||t.dom):e.insertBefore(n,t)}function U(){return{"null":!0,dom:document.createTextNode("")}}function W(e,n,t){o(t)?e.appendChild(n):e.insertBefore(n,t)}function A(e,n){var t=void 0;return t=n===!0?document.createElementNS("http://www.w3.org/2000/svg",e):document.createElement(e)}function K(e,n,t){if(null===n)return document.createTextNode(e);if(t){if(""!==e)return n.textContent=e,n.firstChild;var r=document.createTextNode("");return n.appendChild(r),r}var o=document.createTextNode(e);return n.appendChild(o),o}function H(e,n,t,r,l,i,a){var s=null,d=e._lastNode;o(d)||(s=e,e=d),L(e);var c=m(n,null,r,l,i,a);n.dom=c,V(t,c,e.dom),null!==s&&(s._lastNode=n)}function V(e,n,t){M(t)?t.replaceWith(n):e.replaceChild(n,t)}function L(e){if(!l(e)&&!r(e)){var t=e.instance,i=null,a=null;o(t)||(i=t.hooks,a=t.children,void 0!==t.render&&(t.componentWillUnmount(),t._unmounted=!0,L(t._lastNode)));var s=e.hooks||i;o(s)||(o(s.willDetach)||s.willDetach(e.dom),o(s.componentWillUnmount)||s.componentWillUnmount(e.dom,s));var d=e.children||a;if(!o(d))if(n(d))for(var c=0;c<d.length;c++)L(d[c]);else L(d)}}function B(){return document.createTextNode("")}function I(e,n){var t=e.dom;t===n?t.innerHTML="":(n.removeChild(t),We&&v(e)),L(e)}function Y(e,n,t){for(var r=n||Object.keys(e),o=0;o<r.length;o++){var l=r[o];t[l]=null}}function G(e,n,t){for(var r=0;r<n.length;r++)e.insertBefore(n[r],t)}function X(){return document.activeElement}function P(e,n){if(We){var t=n.length;if(t>5)for(var r=0;t>r;r++){var o=n[r];l(o)||v(o)}}e.textContent=""}function z(e){null!==e&&e!==document.body&&document.activeElement!==e&&e.focus()}function R(){var e=[],n=document.createTextNode(""),t=null,r={dom:n,childNodes:e,appendChild:function(r){e.push(r),t&&t.insertBefore(r,n)},removeChild:function(n){t&&t.removeChild(n),e.splice(e.indexOf(n),1)},insertBefore:function(n,r){t&&t.insertBefore(n,r),e.splice(e.indexOf(r),0,n)},replaceChild:function(n,r){t.replaceChild(n,r),u(e,r,n)},append:function(r){r.appendChild(n),t=r,G(t,e,n)},insert:function(r,o){r.insertBefore(n,o),t=r,G(t,e,n)},remove:function(){t.removeChild(n);for(var r=0;r<e.length;r++)t.removeChild(e[r]);t=null},replaceWith:function(r){t.replaceChild(r,n);for(var o=0;o<e.length;o++)t.removeChild(e[o]);t=null},getElementsByTagName:null};return Object.defineProperty(r,"parentNode",{get:function(){return t}}),Object.defineProperty(r,"firstChild",{get:function(){return e[0]}}),r}function q(e,n){return n.length&&!o(n[0])&&!o(n[0].key)||e.length&&!o(e[0])&&!o(e[0].key)}function F(e,n){if("option"===e.tag){var t=e.attrs&&e.attrs.value;n[t]?(e.attrs=e.attrs||{},e.attrs.selected="selected",e.dom.selected=!0):e.dom.selected=!1}else for(var r=0,o=e.children.length;o>r;r++)F(e.children[r],n)}function J(e){var t=e.attrs&&e.attrs.value,r={};if(n(t))for(var o=0,l=t.length;l>o;o++)r[t[o]]=t[o];else r[t]=t;for(var i=0,a=e.children.length;a>i;i++)F(e.children[i],r);e.attrs&&e.attrs[t]&&delete e.attrs.value}function Q(e,n){var t=B();return null!==n&&n.appendChild(t),l(e)||(e.dom=t),t}function Z(e,n,t){o(e.created)||e.created(t),o(e.attached)||n.addListener(function(){e.attached(t)})}function $(e){var n=e.attrs.value;o(n)||(e.dom.value=n)}function ee(e,n){if("input"===e){var t=n.attrs.type;if("text"===t)$(n);else if("checkbox"===t||"radio"===t){var r=n.attrs.checked;n.dom.checked=!!r}}else"textarea"===e&&$(n)}function ne(e,t,i,a,s,d,c){var u=t.children,f=e.children;if(f!==u){var h=null;e.domChildren&&(h=t.domChildren=e.domChildren),l(f)?r(u)?ae(i,f,u):o(u)||(n(u)?x(t,u,i,a,s,d,c):m(u,i,a,s,d,c)):l(u)?P(i,f):n(f)?n(u)?null===h&&f.length>1?ve(f,u,i,a,s,d,c):q(f,u)?ve(f,u,i,a,s,d,c):pe(f,u,i,h||(t.domChildren=[]),a,s,d,0,c):pe(f,[u],i,h||[],a,s,d,0):n(u)?pe([f],u,i,h||(t.domChildren=[i.firstChild]),a,s,d,0,c):r(u)?ae(i,f,u):r(f)?de(f,u,i,a,s,d,null,c):de(f,u,i,a,s,d,!0,c)}}function te(e,n,t,r){e&&(a(n)&&delete e.refs[n],a(t)&&(e.refs[t]=r))}function re(e,n,t,r,l){var i=n.events,a=e.events,s=!o(i),d=!o(a);s?d?ue(a,i,t,r,l):S(i,r,l):d&&Y(a,t,l)}function oe(e,n,t,r,l,i){"select"===e.tag&&J(n);var a=n.attrs,s=e.attrs,d=o(a),c=!o(s);if(!d)for(var u=r||Object.keys(a),f=u.length,p=0;f>p;p++){var v=u[p],m=c&&s[v],y=a[v];m!==y&&("ref"===v?te(i,m,y,l):fe(v,m,y,l))}if(c)for(var g=t||Object.keys(s),b=g.length,C=0;b>C;C++){var w=g[C];(d||o(a[w]))&&("ref"===w?te(h(node,i),s[w],null,l):l.removeAttribute(w))}}function le(e,n,r,i,a,s,d,c,u){var f=void 0;i.hasHooks===!0&&(f=n.hooks,f&&!o(f.willUpdate)&&f.willUpdate(e.dom));var h=n.tag||i.tag,p=e.tag||r.tag;if(p!==h)if(r.isComponent===!0){var v=e.instance;i.isComponent===!0?H(e,n,a,s,d,c,!1):t(p)?ie(v._lastNode,n,a,s,d,c,i.isSVG):ie(v,n,a,s,d,c,i.isSVG)}else H(e,n,a,s,d,c,i.isSVG);else if(o(p))n.dom=e.dom;else if(r.isComponent===!0){if(i.isComponent===!0){var y=e.instance;if(!o(y)&&y._unmounted){var g=T(n,p,n.attrs||{},n.hooks,n.children,y,a,s,d);null!==a&&V(a,g,e.dom)}else n.instance=y,n.dom=e.dom,he(!0,n,n.tag,r,i,y,e.attrs||{},n.attrs||{},n.hooks,n.children,a,s,d)}}else{var b=e.dom,C=r.childrenType,w=i.childrenType;if(n.dom=b,i.lazy===!0&&u===!1){var k=e.clipData;if(null===s.scrollY&&s.refresh(),n.clipData=k,(k.pending===!0||k.top-s.scrollY>s.screenHeight)&&ke(k,b,e,n,a,s))return;if(k.bottom<s.scrollY&&ke(k,b,e,n,a,s))return}if(C>0||w>0)if(5===w||5===C)ne(e,n,b,s,d,c);else{var N=e.children,_=n.children;0===C||l(N)?w>2?x(n,_,b,s,d,c):m(_,b,s,d,c):0===w||l(_)?C>2?P(b,N):I(N,b):N!==_&&(4===C&&4===w?ve(N,_,b,s,d,c):2===C&&2===w?de(N,_,b,s,d,c,!0,!1):1===C&&1===w?ae(b,N,_):ne(e,n,b,s,d,c))}if(r.hasAttrs!==!0&&i.hasAttrs!==!0||oe(e,n,r.attrKeys,i.attrKeys,b,c),r.hasEvents!==!0&&i.hasEvents!==!0||re(e,n,r.eventKeys,i.eventKeys,b),r.hasClassName===!0||i.hasClassName===!0){var O=n.className;e.className!==O&&(o(O)?b.removeAttribute("class"):b.className=O)}if(r.hasStyle===!0||i.hasStyle===!0){var S=n.style;e.style!==S&&ce(e.style,S,b)}i.hasHooks!==!0||o(f.didUpdate)||f.didUpdate(b),ee(h,n)}}function ie(e,n,r,l,a,s,d){if(c(n))n.then(function(n){de(e,n,r,l,a,s,null,!1)});else{var u=n.hooks,f=!o(u);f&&!o(u.willUpdate)&&u.willUpdate(e.dom);var h=n.tag||(o(n.bp)?null:n.bp.tag),p=e.tag||(o(e.bp)?null:e.bp.tag);if("svg"===h&&(d=!0),p!==h){var v=e.instance;i(p)?i(h)?H(e,n,r,l,a,s,d):t(p)?ie(v._lastNode,n,r,l,a,s,d):ie(v,n,r,l,a,s,d):H(v||e,n,r,l,a,s,d)}else if(o(p))n.dom=e.dom;else if(i(p)){if(i(h)){var m=e._instance;if(!o(m)&&m._unmounted){var y=T(n,p,n.attrs||{},n.hooks,n.children,m,r,l,a);null!==r&&V(r,y,e.dom)}else n.instance=e.instance,n.dom=e.dom,he(!1,n,n.tag,null,null,n.instance,e.attrs||{},n.attrs||{},n.hooks,n.children,r,l,a)}}else{var g=e.dom,b=n.className,C=n.style;n.dom=g,ne(e,n,g,l,a,s,d),oe(e,n,null,null,g,s),re(e,n,null,null,g),e.className!==b&&(o(b)?g.removeAttribute("class"):g.className=b),e.style!==C&&ce(e.style,C,g),f&&!o(u.didUpdate)&&u.didUpdate(g),ee(h,n)}}}function ae(e,n,t){r(n)?e.firstChild.nodeValue=t:e.textContent=t}function se(e,n,t,r,o,l,i,a){var s=e.bp,d=n.bp;void 0===s||void 0===d?ie(e,n,t,r,o,l,i):le(e,n,s,d,t,r,o,l,a)}function de(e,n,t,i,a,s,d,c){if(null!==d)se(e,n,t,i,a,s,c,!1);else if(l(e))m(n,t,i,a,s,c);else if(l(n))I(e,t);else if(r(e))if(r(n))t.firstChild.nodeValue=n;else{var u=m(n,null,i,a,s,c);n.dom=u,V(t,u,t.firstChild)}else if(r(n)){var f=document.createTextNode(n);V(t,f,e.dom)}else if(o(n.null))se(e,n,t,i,a,s,c,!1);else{var h=void 0;e.dom&&(L(e),h=e.dom),V(t,n.dom,h)}}function ce(e,n,t){if(a(n))t.style.cssText=n;else if(o(e)){if(!o(n))for(var r=Object.keys(n),l=0;l<r.length;l++){var i=r[l],d=n[i];s(d)&&!Be[i]?t.style[i]=d+"px":t.style[i]=d}}else if(o(n))t.removeAttribute("style");else{for(var c=Object.keys(n),u=0;u<c.length;u++){var f=c[u],h=n[f];s(h)&&!Be[f]?t.style[f]=h+"px":t.style[f]=h}for(var p=Object.keys(e),v=0;v<p.length;v++){var m=p[v];o(n[m])&&(t.style[m]="")}}}function ue(e,n,t,r,l){for(var i=r||Object.keys(n),a=0;a<i.length;a++){var s=i[a],d=e[s],c=n[s];d!==c&&(l[s]=c)}for(var u=t||Object.keys(e),f=0;f<u.length;f++){var h=u[f];o(n[h])&&(l[h]=null)}}function fe(e,n,t,r){if("dangerouslySetInnerHTML"===e){var l=n&&n.__html,i=t&&t.__html;if(o(i))throw new Error("Inferno Error: dangerouslySetInnerHTML requires an object with a __html propety containing the innerHTML content");l!==i&&(r.innerHTML=i)}else if(He[e])r[e]=null===t?"":t;else if(Ve[e])r[e]=!!t;else{var a=Le[e];t===!1||o(t)?void 0!==a?r.removeAttributeNS(a,e):r.removeAttribute(e):void 0!==a?r.setAttributeNS(a,e,t===!0?e:t):r.setAttribute(e,t===!0?e:t)}}function he(n,r,i,a,s,d,c,u,f,h,p,v,m){if(u=e(h,u),t(i)){var y=d.props,g=d.state,b=d.state,C=d.getChildContext();o(C)||(m=Object.assign({},m,C)),d.context=m;var w=d._updateComponent(g,b,y,u);w===De?d._lastNode=r:l(w)||(de(d._lastNode,w,p,v,m,d,null,!1),r.dom=w.dom,d._lastNode=w)}else{var k=!0,N=n&&s.hasHooks===!0||!o(f);if(N&&!o(f.componentShouldUpdate)&&(k=f.componentShouldUpdate(r.dom,c,u)),k!==!1){N&&!o(f.componentWillUpdate)&&f.componentWillUpdate(r.dom,c,u);var x=i(u,m);l(x)||(x.dom=r.dom,de(d,x,p,v,m,null,null,!1),r.instance=x,N&&!o(f.componentDidUpdate)&&f.componentDidUpdate(r.dom,c,u))}}}function pe(e,t,i,a,s,d,c,u,f){var h=void 0===i.append,p=e.length,v=t.length,y=p===v;if(y===!1)if(p>v)for(;p!==v;){var g=e[p-1];l(g)||(i.removeChild(a[p-1+u]),h&&a.splice(p-1+u,1),L(g),p--,e.pop())}else for(;p!==v;){var b=t[p],C=void 0;e.push(b),C=r(b)?document.createTextNode(b):m(b,null,s,d,c,f),l(C)||D(i,C),h&&(1===p&&a.push(i.firstChild),a.splice(p+u,0,C)),p++}for(var w=0;v>w;w++){var k=e[w],N=t[w],x=w+u;if(k===N&&l(k))u--;else if(l(N)){if(!l(k))if(n(k)&&0===k.length)for(var _=0;_<k.length;_++)I(k[_],i);else{var O=a[x];o(O)&&x--,i.removeChild(a[x]),h&&(a.splice(x,1),u--),L(k)}}else if(l(k))if(r(N)){var S=document.createTextNode(N),T=a[x];if(o(T)){var j=a[x+1];D(i,S,j),h&&a.splice(x,1,S)}else D(i,S,T),h&&a.splice(x,0,S)}else{var E=m(N,null,s,d,c,f),M=a[x];if(o(M)){var U=a[x+1];D(i,E,U),h&&a.splice(x,1,E)}else D(i,E,M),h&&a.splice(x,0,E)}else if(r(N))if(1===p)r(k)?void 0===i.getElementsByTagName?i.nodeValue=N:i.firstChild.nodeValue=N:(L(k),i.textContent=N);else{var W=document.createTextNode(N),A=a[x];o(A)?i.nodeValue=W.nodeValue:r(k)?A.nodeValue=N:void 0===A.append?(h&&a.splice(x,1,W),V(i,W,A)):(D(i,W,A.firstChild),A.remove(),a.splice(0,a.length,W)),L(k)}else if(n(N))if(q(k,N))ve(k,N,a[x],s,d,c,f);else if(n(k)){var K=a[x];if(void 0===K.append)if(N.length>1&&1===k.length){var H=R();H.insert(i,K),H.appendChild(K),h&&a.splice(x,1,H),pe(k,N,H,H.childNodes,s,d,c,0,f)}else pe(k,N,i,a,s,d,c,0,f);else pe(k,N,a[x],a[x].childNodes,s,d,c,0,f)}else if(N.length>1){var B=R();B.appendChild(i.firstChild),D(i,B,i.firstChild),h&&a.splice(x,1,B),pe([k],N,B,B.childNodes,s,d,c,w,f)}else pe([k],N,i,a,s,d,c,w,f);else n(k)?pe(k,[N],a,a[x].childNodes,s,d,c,0,f):(de(k,N,i,s,d,c,null,f),a[x]=N.dom)}}function ve(e,n,t,r,o,l,i){for(var a=e.length,s=n.length,d=void 0,c=a-1,u=s-1,f=0,h=0,p=null,v=null,y=null,g=null,b=void 0,C=void 0,w=0,k=void 0,N=void 0;c>=f&&u>=h&&(v=n[h],p=e[f],v.key===p.key);)de(p,v,t,r,o,l,!0,i),h++,f++;for(;c>=f&&u>=h&&(y=n[u],g=e[c],y.key===g.key);)de(g,y,t,r,o,l,!0,i),u--,c--;for(;c>=f&&u>=h&&(y=n[u],p=e[f],y.key===p.key);)C=s>u+1?n[u+1].dom:null,de(p,y,t,r,o,l,!0,i),W(t,y.dom,C),u--,f++;for(;c>=f&&u>=h&&(v=n[h],g=e[c],v.key===g.key);)C=e[f].dom,de(g,v,t,r,o,l,!0,i),W(t,v.dom,C),h++,c--;if(f>c){if(u>=h)for(C=s>u+1?n[u+1].dom:null;u>=h;h++)W(t,m(n[h],null,r,o,l,i),C)}else if(h>u)for(;c>=f;)I(e[f++],t);else{var x=c-f+1,_=u-h+1,O=new Array(_);for(d=0;_>d;d++)O[d]=-1;var S=!1,T=0;if(16>=x*_)for(d=f;c>=d;d++){var j=!0;for(g=e[d],b=h;u>=b;b++)if(y=n[b],g.key===y.key){O[b-h]=d,w>b?S=!0:w=b,de(g,y,t,r,o,l,!0,i),j=!1;break}j&&(I(g,t),T++)}else{var E=new Map;for(d=h;u>=d;d++)N=n[d],E.set(N.key,d);for(d=c;d>=f;d--)g=e[d],b=E.get(g.key),void 0===b?(I(g,t),T++):(y=n[b],O[b-h]=d,w>b?S=!0:w=b,de(g,y,t,r,o,l,!0,i))}if(S){var M=me(O);for(b=M.length-1,d=_-1;d>=0;d--)-1===O[d]?(k=d+h,C=s>k+1?n[k+1].dom:null,W(t,m(n[k],null,r,o,l,i),C)):0>b||d!==M[b]?(k=d+h,C=s>k+1?n[k+1].dom:null,W(t,n[k].dom,C)):b--}else if(x-T!==_)for(d=_-1;d>=0;d--)-1===O[d]&&(k=d+h,C=s>k+1?n[k+1].dom:null,W(t,m(n[k],null,r,o,l,i),C))}}function me(e){var n=e.slice(0),t=[];t.push(0);var r=void 0,o=void 0,l=void 0,i=void 0,a=void 0;for(r=0;r<e.length;r++)if(-1!==e[r])if(o=t[t.length-1],e[o]<e[r])n[r]=o,t.push(r);else{for(l=0,i=t.length-1;i>l;)a=(l+i)/2|0,e[t[a]]<e[r]?l=a+1:i=a;e[r]<e[t[l]]&&(l>0&&(n[r]=t[l-1]),t[l]=r)}for(l=t.length,i=t[l-1];l-- >0;)t[l]=i,i=n[i];return t}function ye(){this._listeners=[],this.scrollX=null,this.scrollY=null,this.screenHeight=Ye,this.screenWidth=Ie}function ge(e,n,t){n.addListener(function(){var r=t.getBoundingClientRect();null===n.scrollY&&n.refresh(),e.clipData={top:r.top+n.scrollY,left:r.left+n.scrollX,bottom:r.bottom+n.scrollY,right:r.right+n.scrollX,pending:!1}})}function be(e){se(e.lastNode,e.nextNode,e.parentDom,e.lifecycle,null,null,!1,!0),e.clipData.pending=!1}function Ce(){Re=!0,setTimeout(we,100)}function we(){ze.forEach(be),ze.clear(),Re=!1}function ke(e,n,t,r,o,l){if(performance.now()>Pe+2e3){var i=ze.get(n);return void 0===i?ze.set(n,{lastNode:t,nextNode:r,parentDom:o,clipData:e,lifecycle:l}):i.nextNode=r,e.pending=!0,Re===!1&&Ce(),!0}return we(),!1}function Ne(e,n,t,o,l,i,a){if(r(e))if(3===n.nodeType&&""!==e)n.nodeValue=e;else{var s=document.createTextNode(e);V(o,s,n),t.splice(t.indexOf(n),1,s)}else Oe(e,n,o,l,i,a,!1)}function xe(e){for(var n=[],t=e.childNodes,r=t.length,o=0;r>o;){var l=t[o];8===l.nodeType?(e.removeChild(l),r--):(n.push(l),o++)}return n}function _e(n,r,i,a,s,d,c,u,f,h,p){if(i=e(s,i),!t(r)){var v=n.instance=r(i);return o(a)||(o(a.componentWillMount)||a.componentWillMount(null,i),o(a.componentDidMount)||u.addListener(function(){a.componentDidMount(d,i)})),Oe(v,d,c,u,f,v,p)}var m=n.instance=new r(i);m._patch=de,!o(h)&&i.ref&&O(h,i.ref,m);var y=m.getChildContext();o(y)||(f=Object.assign({},f,y)),m.context=f,m._unmounted=!1,m._parentNode=n,h&&(m._parentComponent=h),m._pendingSetState=!0,m.componentWillMount();var g=m.render();m._pendingSetState=!1,l(g)?m._lastNode=U():(Oe(g,d,c,u,f,m,p),m._lastNode=g,m.componentDidMount())}function Oe(e,t,l,a,s,d,c){var u=e.bp,f=e.tag||u.tag;if(i(f))e.dom=t,_e(e,f,e.attrs||{},e.hooks,e.children,t,l,a,s,d,c);else if(1!==t.nodeType||f!==t.tagName.toLowerCase());else{e.dom=t;var h=e.hooks;u.hasHooks!==!0&&o(h)||Z(h,a,t);var p=e.children;if(!o(p))if(r(p))t.textContent!==p&&(t.textContent=p);else{var v=xe(t);if(n(p)){if(e.domChildren=v,v.length===p.length)for(var m=0;m<p.length;m++)Ne(p[m],v[m],v,t,a,s,d)}else 1===v.length&&Ne(p,v[0],v,t,a,s,d)}var C=e.className,w=e.style;if(o(C)||(t.className=C),o(w)||ce(null,w,t),u&&u.hasAttrs===!0)g(e,u,t,d);else{var k=e.attrs;o(k)||(y(e),j(e,k,Object.keys(k),t,d))}if(u&&u.hasEvents===!0)b(e,u,t);else{var N=e.events;o(N)||S(N,Object.keys(N),t)}}}function Se(e,n,t){if(n&&1===n.nodeType){var r=n.querySelector("[data-infernoroot]");if(r&&r.parentNode===n)return Oe(e,r,n,t,{},!0),!0}return n!==qe?n.textContent="":console.warn('Inferno Warning: rendering to the "document.body" is dangerous! Use a dedicated container element instead.'),!1}function Te(e){for(var n=0;n<Fe.length;n++){var t=Fe[n];if(t.dom===e)return t}return null}function je(e){for(var n=0;n<Fe.length;n++){var t=Fe[n];if(t===e)return void Fe.splice(n,1)}}function Ee(e,n){var t=Te(n),r=new ye;if(d(t)){Se(e,n,r)||m(e,n,r,{},null,!1),r.trigger(),Fe.push({node:e,dom:n})}else{var o=X();de(t.node,e,n,r,{},null,null,!1),r.trigger(),null===e&&je(t),t.node=e,z(o)}}var Me={};Me.typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},Me.classCallCheck=function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")},Me.createClass=function(){function e(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(n,t,r){return t&&e(n.prototype,t),r&&e(n,r),n}}(),Me.inherits=function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function, not "+typeof n);e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(e,n):e.__proto__=n)},Me.possibleConstructorReturn=function(e,n){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!n||"object"!=typeof n&&"function"!=typeof n?e:n};var De="NO_RENDER",Ue="undefined"!=typeof window&&window.document,We=!0,Ae="http://www.w3.org/1999/xlink",Ke="http://www.w3.org/XML/1998/namespace",He={},Ve={},Le={},Be={};E("xlink:href,xlink:arcrole,xlink:actuate,xlink:role,xlink:titlef,xlink:type",Le,Ae),E("xml:base,xml:lang,xml:space",Le,Ke),E("volume,value",He,!0),E("muted,scoped,loop,open,checked,default,capture,disabled,selected,readonly,multiple,required,autoplay,controls,seamless,reversed,allowfullscreen,novalidate",Ve,!0),E("animationIterationCount,borderImageOutset,borderImageSlice,borderImageWidth,boxFlex,boxFlexGroup,boxOrdinalGroup,columnCount,flex,flexGrow,flexPositive,flexShrink,flexNegative,flexOrder,gridRow,gridColumn,fontWeight,lineClamp,lineHeight,opacity,order,orphans,tabSize,widows,zIndex,zoom,fillOpacity,floodOpacity,stopOpacity,strokeDasharray,strokeDashoffset,strokeMiterlimit,strokeOpacity,strokeWidth,",Be,!0);var Ie=Ue&&window.screen.width,Ye=Ue&&window.screen.height,Ge=0,Xe=0,Pe=0;Ue&&(window.onscroll=function(e){Ge=window.scrollX,Xe=window.scrollY,Pe=performance.now()},window.resize=function(e){Ge=window.scrollX,Xe=window.scrollY,Ie=window.screen.width,Ye=window.screen.height,Pe=performance.now()}),ye.prototype={refresh:function(){this.scrollX=Ue&&window.scrollX,this.scrollY=Ue&&window.scrollY},addListener:function(e){this._listeners.push(e)},trigger:function(){for(var e=0;e<this._listeners.length;e++)this._listeners[e]()}};var ze=new Map,Re=!1,qe=document.body,Fe=[],Je={render:Ee};return Je});
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):e.InfernoDOM=n()}(this,function(){"use strict";function e(e,t){if(!o(e)){var r=n(e);(r&&e.length>0||!r)&&(t=t?Object.assign({},t,{children:e}):{children:e})}return t}function n(e){return e instanceof Array}function t(e){return void 0!==e.prototype.render}function r(e){return a(e)||s(e)}function o(e){return void 0===e||d(e)}function l(e){return d(e)||e===!1||e===!0||void 0===e}function i(e){return"function"==typeof e}function a(e){return"string"==typeof e}function s(e){return"number"==typeof e}function d(e){return null===e}function c(e){return e instanceof Promise}function u(e,n,t){e.splice(e.indexOf(n),1,t)}function f(e,t){if(!l(e))if(n(e))for(var r=0;r<e.length;r++){var o=e[r];if(!l(o)){if(o===t)return!0;if(o.children)return f(o.children,t)}}else{if(e===t)return!0;if(e.children)return f(e.children,t)}return!1}function h(e,n){var t=n.props.children;return f(t,e)?h(e,n._parentComponent):n}function p(e,n,t,r,l){if(void 0!==n){var i=e.key,a=null===i?n.pools.nonKeyed:n.pools.keyed[i];if(!o(a)){var s=a.pop();if(!o(s))return de(s,e,null,t,r,l,!0,n.isSVG),e.dom}}return null}function v(e){var n=e.bp;if(!o(n)){var t=e.key,r=n.pools;if(null===t){var l=r.nonKeyed;l&&l.push(e)}else{var i=r.keyed;(i[t]||(i[t]=[])).push(e)}return!0}return!1}function m(e,t,r,o,i,a){if(n(e))return Q(e,t);if(l(e))return null;var s=e.bp;if(We){var d=p(e,s,r,o,i);if(null!==d)return null!==t&&t.appendChild(d),d}return void 0===s?w(e,t,r,o,i,a):C(e,s,t,r,o,i)}function y(e){"select"===e.tag&&J(e)}function g(e,n,t,r){y(e);var o=e.attrs;if(null===n.attrKeys){var l=Object.keys(o);n.attrKeys=n.attrKeys?n.attrKeys.concat(l):l}var i=n.attrKeys;j(e,o,i,t,r)}function b(e,n,t){var r=e.events;null===n.eventKeys&&(n.eventKeys=Object.keys(r));var o=n.eventKeys;S(r,o,t)}function C(e,n,t,r,o,l){var i=e.tag;if(n.isComponent===!0)return T(e,i,e.attrs||{},e.hooks,e.children,l,t,r,o);var a=A(n.tag,n.isSVG);switch(e.dom=a,n.hasHooks===!0&&Z(e.hooks,r,a),n.lazy===!0&&ge(e,r,a),n.childrenType){case 1:K(e.children,a,!0);break;case 2:m(e.children,a,r,o,l);break;case 3:N(e,e.children,a,r,o,l);break;case 4:x(e.children,a,r,o,l);break;case 5:_(e,e.children,a,r,o,l)}return n.hasAttrs===!0&&g(e,n,a,l),n.hasClassName===!0&&(a.className=e.className),n.hasStyle===!0&&ce(null,e.style,a),n.hasEvents===!0&&b(e,n,a),null!==t&&t.appendChild(a),a}function w(e,n,t,r,s,d){var c=e.tag;if(null===c)return Q(e,n);if(i(c))return T(e,c,e.attrs||{},e.hooks,e.children,s,n,t,r);if(!a(c)||""===c)throw Error("Inferno Error: Expected function or string for element tag type");"svg"===c&&(d=!0);var u=A(c,d),f=e.children,h=e.attrs,p=e.events,v=e.hooks,m=e.className,g=e.style;return e.dom=u,o(v)||Z(v,t,u),l(f)||_(e,f,u,t,r,s,d),o(h)||(y(e),j(e,h,Object.keys(h),u,s)),o(m)||(u.className=m),o(g)||ce(null,g,u),o(p)||S(p,Object.keys(p),u),null!==n&&n.appendChild(u),u}function k(e,n,t,r,o,i,a){var s=B();t&&t.push(s),e.then(function(e){var d=m(e,null,r,o,i,a);null===n||l(d)||n.replaceChild(d,s),t&&u(t,s,d)}),n.appendChild(s)}function x(e,n,t,r,o){for(var l=0;l<e.length;l++)m(e[l],n,t,r,o)}function N(e,t,i,a,s,d,u){for(var f=null,h=!1,p=!1,v=0;v<t.length;v++){var y=t[v];if(r(y))h=!0,f=f||[],f.push(K(y,i,!1));else if(!o(y)&&n(y)){var g=R();h=!0,N(e,y,g,a,s,d,u),D(i,g),f=f||[],f.push(g)}else if(c(y))k(y,i,f,a,s,d,u);else{var b=m(y,i,a,s,d,u);h||!p&&!o(y)&&o(y.key)?(h=!0,f=f||[],f.push(b)):l(y)?(h=!0,f=f||[],f.push(b)):p===!1&&(p=!0)}}null!==f&&f.length>1&&h===!0&&(e.domChildren=f)}function _(e,t,o,l,i,a,s){n(t)?N(e,t,o,l,i,a,s):r(t)?K(t,o,!0):c(t)?k(t,o,null,l,i,a,s):m(t,o,l,i,a,s)}function O(e,n,t){!l(e)&&a(n)&&(e.refs[n]=t)}function S(e,n,t){for(var r=0;r<n.length;r++){var o=n[r];t[o]=e[o]}}function T(n,r,i,a,s,d,c,u,f){i=e(s,i);var h=void 0;if(t(r)){var p=new r(i);p._patch=de,!o(d)&&i.ref&&O(d,i.ref,p);var v=p.getChildContext();o(v)||(f=Object.assign({},f,v)),p.context=f,p._unmounted=!1,p._parentNode=n,d&&(p._parentComponent=d),p._pendingSetState=!0,p.componentWillMount();var y=p.render();p._pendingSetState=!1,l(y)?(p._lastNode=U(),h=p._lastNode.dom):(h=m(y,null,u,f,p,!1),p._lastNode=y,p.componentDidMount()),null===c||l(h)||c.appendChild(h),n.dom=h,n.instance=p}else{o(a)||(o(a.componentWillMount)||a.componentWillMount(null,i),o(a.componentDidMount)||u.addListener(function(){a.componentDidMount(h,i)}));var g=r(i,f);h=m(g,null,u,f,null,!1),n.instance=g,null===c||l(h)||c.appendChild(h),n.dom=h}return h}function j(e,n,t,r,o){for(var l=0;l<t.length;l++){var i=t[l];"ref"===i?O(h(e,o),n[i],r):fe(i,null,n[i],r)}}function E(e,n,t){e.split(",").forEach(function(e){return n[e]=t})}function M(e){return!o(e.append)}function D(e,n,t){o(t)?M(n)?n.append(e):e.appendChild(n):M(n)?n.insert(e,t):M(t)?e.insertBefore(n,t.childNodes[0]||t.dom):e.insertBefore(n,t)}function U(){return{"null":!0,dom:document.createTextNode("")}}function W(e,n,t){o(t)?e.appendChild(n):e.insertBefore(n,t)}function A(e,n){var t=void 0;return t=n===!0?document.createElementNS("http://www.w3.org/2000/svg",e):document.createElement(e)}function K(e,n,t){if(null===n)return document.createTextNode(e);if(t){if(""!==e)return n.textContent=e,n.firstChild;var r=document.createTextNode("");return n.appendChild(r),r}var o=document.createTextNode(e);return n.appendChild(o),o}function H(e,n,t,r,l,i,a){var s=null,d=e._lastNode;o(d)||(s=e,e=d),L(e);var c=m(n,null,r,l,i,a);n.dom=c,V(t,c,e.dom),null!==s&&(s._lastNode=n)}function V(e,n,t){M(t)?t.replaceWith(n):e.replaceChild(n,t)}function L(e){if(!l(e)&&!r(e)){var t=e.instance,i=null,a=null;o(t)||(i=t.hooks,a=t.children,void 0!==t.render&&(t.componentWillUnmount(),t._unmounted=!0,L(t._lastNode)));var s=e.hooks||i;o(s)||(o(s.willDetach)||s.willDetach(e.dom),o(s.componentWillUnmount)||s.componentWillUnmount(e.dom,s));var d=e.children||a;if(!o(d))if(n(d))for(var c=0;c<d.length;c++)L(d[c]);else L(d)}}function B(){return document.createTextNode("")}function I(e,n){var t=e.dom;t===n?t.innerHTML="":(n.removeChild(t),We&&v(e)),L(e)}function Y(e,n,t){for(var r=n||Object.keys(e),o=0;o<r.length;o++){var l=r[o];t[l]=null}}function G(e,n,t){for(var r=0;r<n.length;r++)e.insertBefore(n[r],t)}function X(){return document.activeElement}function P(e,n){if(We){var t=n.length;if(t>5)for(var r=0;t>r;r++){var o=n[r];l(o)||v(o)}}e.textContent=""}function z(e){null!==e&&e!==document.body&&document.activeElement!==e&&e.focus()}function R(){var e=[],n=document.createTextNode(""),t=null,r={dom:n,childNodes:e,appendChild:function(r){e.push(r),t&&t.insertBefore(r,n)},removeChild:function(n){t&&t.removeChild(n),e.splice(e.indexOf(n),1)},insertBefore:function(n,r){t&&t.insertBefore(n,r),e.splice(e.indexOf(r),0,n)},replaceChild:function(n,r){t.replaceChild(n,r),u(e,r,n)},append:function(r){r.appendChild(n),t=r,G(t,e,n)},insert:function(r,o){r.insertBefore(n,o),t=r,G(t,e,n)},remove:function(){t.removeChild(n);for(var r=0;r<e.length;r++)t.removeChild(e[r]);t=null},replaceWith:function(r){t.replaceChild(r,n);for(var o=0;o<e.length;o++)t.removeChild(e[o]);t=null},getElementsByTagName:null};return Object.defineProperty(r,"parentNode",{get:function(){return t}}),Object.defineProperty(r,"firstChild",{get:function(){return e[0]}}),r}function q(e,n){return n.length&&!o(n[0])&&!o(n[0].key)||e.length&&!o(e[0])&&!o(e[0].key)}function F(e,n){if("option"===e.tag){var t=e.attrs&&e.attrs.value;n[t]?(e.attrs=e.attrs||{},e.attrs.selected="selected",e.dom.selected=!0):e.dom.selected=!1}else for(var r=0,o=e.children.length;o>r;r++)F(e.children[r],n)}function J(e){var t=e.attrs&&e.attrs.value,r={};if(n(t))for(var o=0,l=t.length;l>o;o++)r[t[o]]=t[o];else r[t]=t;for(var i=0,a=e.children.length;a>i;i++)F(e.children[i],r);e.attrs&&e.attrs[t]&&delete e.attrs.value}function Q(e,n){var t=B();return null!==n&&n.appendChild(t),l(e)||(e.dom=t),t}function Z(e,n,t){o(e.created)||e.created(t),o(e.attached)||n.addListener(function(){e.attached(t)})}function $(e){var n=e.attrs.value;o(n)||(e.dom.value=n)}function ee(e,n){if("input"===e){var t=n.attrs.type;if("text"===t)$(n);else if("checkbox"===t||"radio"===t){var r=n.attrs.checked;n.dom.checked=!!r}}else"textarea"===e&&$(n)}function ne(e,t,i,a,s,d,c){var u=t.children,f=e.children;if(f!==u){var h=null;e.domChildren&&(h=t.domChildren=e.domChildren),l(f)?r(u)?ae(i,f,u):o(u)||(n(u)?N(t,u,i,a,s,d,c):m(u,i,a,s,d,c)):l(u)?P(i,f):n(f)?n(u)?null===h&&f.length>1?ve(f,u,i,a,s,d,c):q(f,u)?ve(f,u,i,a,s,d,c):pe(f,u,i,h||(t.domChildren=[]),a,s,d,0,c):pe(f,[u],i,h||[],a,s,d,0):n(u)?pe([f],u,i,h||(t.domChildren=[i.firstChild]),a,s,d,0,c):r(u)?ae(i,f,u):r(f)?de(f,u,i,a,s,d,null,c):de(f,u,i,a,s,d,!0,c)}}function te(e,n,t,r){e&&(a(n)&&delete e.refs[n],a(t)&&(e.refs[t]=r))}function re(e,n,t,r,l){var i=n.events,a=e.events,s=!o(i),d=!o(a);s?d?ue(a,i,t,r,l):S(i,r,l):d&&Y(a,t,l)}function oe(e,n,t,r,l,i){"select"===e.tag&&J(n);var a=n.attrs,s=e.attrs,d=o(a),c=!o(s);if(!d)for(var u=r||Object.keys(a),f=u.length,p=0;f>p;p++){var v=u[p],m=c&&s[v],y=a[v];m!==y&&("ref"===v?te(i,m,y,l):fe(v,m,y,l))}if(c)for(var g=t||Object.keys(s),b=g.length,C=0;b>C;C++){var w=g[C];(d||o(a[w]))&&("ref"===w?te(h(node,i),s[w],null,l):l.removeAttribute(w))}}function le(e,n,r,i,a,s,d,c,u){var f=void 0;i.hasHooks===!0&&(f=n.hooks,f&&!o(f.willUpdate)&&f.willUpdate(e.dom));var h=n.tag||i.tag,p=e.tag||r.tag;if(p!==h)if(r.isComponent===!0){var v=e.instance;i.isComponent===!0?H(e,n,a,s,d,c,!1):t(p)?ie(v._lastNode,n,a,s,d,c,i.isSVG):ie(v,n,a,s,d,c,i.isSVG)}else H(e,n,a,s,d,c,i.isSVG);else if(o(p))n.dom=e.dom;else if(r.isComponent===!0){if(i.isComponent===!0){var y=e.instance;if(!o(y)&&y._unmounted){var g=T(n,p,n.attrs||{},n.hooks,n.children,y,a,s,d);null!==a&&V(a,g,e.dom)}else n.instance=y,n.dom=e.dom,he(!0,n,n.tag,r,i,y,e.attrs||{},n.attrs||{},n.hooks,n.children,a,s,d)}}else{var b=e.dom,C=r.childrenType,w=i.childrenType;if(n.dom=b,i.lazy===!0&&u===!1){var k=e.clipData;if(null===s.scrollY&&s.refresh(),n.clipData=k,(k.pending===!0||k.top-s.scrollY>s.screenHeight)&&ke(k,b,e,n,a,s))return;if(k.bottom<s.scrollY&&ke(k,b,e,n,a,s))return}if(C>0||w>0)if(5===w||5===C)ne(e,n,b,s,d,c);else{var x=e.children,_=n.children;0===C||l(x)?w>2?N(n,_,b,s,d,c):m(_,b,s,d,c):0===w||l(_)?C>2?P(b,x):I(x,b):x!==_&&(4===C&&4===w?ve(x,_,b,s,d,c):2===C&&2===w?de(x,_,b,s,d,c,!0,!1):1===C&&1===w?ae(b,x,_):ne(e,n,b,s,d,c))}if(r.hasAttrs!==!0&&i.hasAttrs!==!0||oe(e,n,r.attrKeys,i.attrKeys,b,c),r.hasEvents!==!0&&i.hasEvents!==!0||re(e,n,r.eventKeys,i.eventKeys,b),r.hasClassName===!0||i.hasClassName===!0){var O=n.className;e.className!==O&&(o(O)?b.removeAttribute("class"):b.className=O)}if(r.hasStyle===!0||i.hasStyle===!0){var S=n.style;e.style!==S&&ce(e.style,S,b)}i.hasHooks!==!0||o(f.didUpdate)||f.didUpdate(b),ee(h,n)}}function ie(e,n,r,l,a,s,d){if(c(n))n.then(function(n){de(e,n,r,l,a,s,null,!1)});else{var u=n.hooks,f=!o(u);f&&!o(u.willUpdate)&&u.willUpdate(e.dom);var h=n.tag||(o(n.bp)?null:n.bp.tag),p=e.tag||(o(e.bp)?null:e.bp.tag);if("svg"===h&&(d=!0),p!==h){var v=e.instance;i(p)?i(h)?H(e,n,r,l,a,s,d):t(p)?ie(v._lastNode,n,r,l,a,s,d):ie(v,n,r,l,a,s,d):H(v||e,n,r,l,a,s,d)}else if(o(p))n.dom=e.dom;else if(i(p)){if(i(h)){var m=e._instance;if(!o(m)&&m._unmounted){var y=T(n,p,n.attrs||{},n.hooks,n.children,m,r,l,a);null!==r&&V(r,y,e.dom)}else n.instance=e.instance,n.dom=e.dom,he(!1,n,n.tag,null,null,n.instance,e.attrs||{},n.attrs||{},n.hooks,n.children,r,l,a)}}else{var g=e.dom,b=n.className,C=n.style;n.dom=g,ne(e,n,g,l,a,s,d),oe(e,n,null,null,g,s),re(e,n,null,null,g),e.className!==b&&(o(b)?g.removeAttribute("class"):g.className=b),e.style!==C&&ce(e.style,C,g),f&&!o(u.didUpdate)&&u.didUpdate(g),ee(h,n)}}}function ae(e,n,t){r(n)?e.firstChild.nodeValue=t:e.textContent=t}function se(e,n,t,r,o,l,i,a){var s=e.bp,d=n.bp;void 0===s||void 0===d?ie(e,n,t,r,o,l,i):le(e,n,s,d,t,r,o,l,a)}function de(e,n,t,i,a,s,d,c){if(null!==d)se(e,n,t,i,a,s,c,!1);else if(l(e))m(n,t,i,a,s,c);else if(l(n))I(e,t);else if(r(e))if(r(n))t.firstChild.nodeValue=n;else{var u=m(n,null,i,a,s,c);n.dom=u,V(t,u,t.firstChild)}else if(r(n)){var f=document.createTextNode(n);V(t,f,e.dom)}else if(o(n.null))se(e,n,t,i,a,s,c,!1);else{var h=void 0;e.dom&&(L(e),h=e.dom),V(t,n.dom,h)}}function ce(e,n,t){if(a(n))t.style.cssText=n;else if(o(e)){if(!o(n))for(var r=Object.keys(n),l=0;l<r.length;l++){var i=r[l],d=n[i];s(d)&&!Be[i]?t.style[i]=d+"px":t.style[i]=d}}else if(o(n))t.removeAttribute("style");else{for(var c=Object.keys(n),u=0;u<c.length;u++){var f=c[u],h=n[f];s(h)&&!Be[f]?t.style[f]=h+"px":t.style[f]=h}for(var p=Object.keys(e),v=0;v<p.length;v++){var m=p[v];o(n[m])&&(t.style[m]="")}}}function ue(e,n,t,r,l){for(var i=r||Object.keys(n),a=0;a<i.length;a++){var s=i[a],d=e[s],c=n[s];d!==c&&(l[s]=c)}for(var u=t||Object.keys(e),f=0;f<u.length;f++){var h=u[f];o(n[h])&&(l[h]=null)}}function fe(e,n,t,r){if("dangerouslySetInnerHTML"===e){var l=n&&n.__html,i=t&&t.__html;if(o(i))throw new Error("Inferno Error: dangerouslySetInnerHTML requires an object with a __html propety containing the innerHTML content");l!==i&&(r.innerHTML=i)}else if(He[e])r[e]=null===t?"":t;else if(Ve[e])r[e]=!!t;else{var a=Le[e];t===!1||o(t)?void 0!==a?r.removeAttributeNS(a,e):r.removeAttribute(e):void 0!==a?r.setAttributeNS(a,e,t===!0?e:t):r.setAttribute(e,t===!0?e:t)}}function he(n,r,i,a,s,d,c,u,f,h,p,v,m){if(u=e(h,u),t(i)){var y=d.props,g=d.state,b=d.state,C=d.getChildContext();o(C)||(m=Object.assign({},m,C)),d.context=m;var w=d._updateComponent(g,b,y,u);l(w)||w===De||(de(d._lastNode,w,p,v,m,d,null,!1),r.dom=w.dom,d._lastNode=w)}else{var k=!0,x=n&&s.hasHooks===!0||!o(f);if(x&&!o(f.componentShouldUpdate)&&(k=f.componentShouldUpdate(r.dom,c,u)),k!==!1){x&&!o(f.componentWillUpdate)&&f.componentWillUpdate(r.dom,c,u);var N=i(u,m);l(N)||(N.dom=r.dom,de(d,N,p,v,m,null,null,!1),r.instance=N,x&&!o(f.componentDidUpdate)&&f.componentDidUpdate(r.dom,c,u))}}}function pe(e,t,i,a,s,d,c,u,f){var h=void 0===i.append,p=e.length,v=t.length,y=p===v;if(y===!1)if(p>v)for(;p!==v;){var g=e[p-1];l(g)||(i.removeChild(a[p-1+u]),h&&a.splice(p-1+u,1),L(g),p--,e.pop())}else for(;p!==v;){var b=t[p],C=void 0;e.push(b),C=r(b)?document.createTextNode(b):m(b,null,s,d,c,f),l(C)||D(i,C),h&&(1===p&&a.push(i.firstChild),a.splice(p+u,0,C)),p++}for(var w=0;v>w;w++){var k=e[w],x=t[w],N=w+u;if(k===x&&l(k))u--;else if(l(x)){if(!l(k))if(n(k)&&0===k.length)for(var _=0;_<k.length;_++)I(k[_],i);else{var O=a[N];o(O)&&N--,i.removeChild(a[N]),h&&(a.splice(N,1),u--),L(k)}}else if(l(k))if(r(x)){var S=document.createTextNode(x),T=a[N];if(o(T)){var j=a[N+1];D(i,S,j),h&&a.splice(N,1,S)}else D(i,S,T),h&&a.splice(N,0,S)}else{var E=m(x,null,s,d,c,f),M=a[N];if(o(M)){var U=a[N+1];D(i,E,U),h&&a.splice(N,1,E)}else D(i,E,M),h&&a.splice(N,0,E)}else if(r(x))if(1===p)r(k)?void 0===i.getElementsByTagName?i.nodeValue=x:i.firstChild.nodeValue=x:(L(k),i.textContent=x);else{var W=document.createTextNode(x),A=a[N];o(A)?i.nodeValue=W.nodeValue:r(k)?A.nodeValue=x:void 0===A.append?(h&&a.splice(N,1,W),V(i,W,A)):(D(i,W,A.firstChild),A.remove(),a.splice(0,a.length,W)),L(k)}else if(n(x))if(q(k,x))ve(k,x,a[N],s,d,c,f);else if(n(k)){var K=a[N];if(void 0===K.append)if(x.length>1&&1===k.length){var H=R();H.insert(i,K),H.appendChild(K),h&&a.splice(N,1,H),pe(k,x,H,H.childNodes,s,d,c,0,f)}else pe(k,x,i,a,s,d,c,0,f);else pe(k,x,a[N],a[N].childNodes,s,d,c,0,f)}else if(x.length>1){var B=R();B.appendChild(i.firstChild),D(i,B,i.firstChild),h&&a.splice(N,1,B),pe([k],x,B,B.childNodes,s,d,c,w,f)}else pe([k],x,i,a,s,d,c,w,f);else n(k)?pe(k,[x],a,a[N].childNodes,s,d,c,0,f):(de(k,x,i,s,d,c,null,f),a[N]=x.dom)}}function ve(e,n,t,r,o,l,i){for(var a=e.length,s=n.length,d=void 0,c=a-1,u=s-1,f=0,h=0,p=null,v=null,y=null,g=null,b=void 0,C=void 0,w=0,k=void 0,x=void 0;c>=f&&u>=h&&(v=n[h],p=e[f],v.key===p.key);)de(p,v,t,r,o,l,!0,i),h++,f++;for(;c>=f&&u>=h&&(y=n[u],g=e[c],y.key===g.key);)de(g,y,t,r,o,l,!0,i),u--,c--;for(;c>=f&&u>=h&&(y=n[u],p=e[f],y.key===p.key);)C=s>u+1?n[u+1].dom:null,de(p,y,t,r,o,l,!0,i),W(t,y.dom,C),u--,f++;for(;c>=f&&u>=h&&(v=n[h],g=e[c],v.key===g.key);)C=e[f].dom,de(g,v,t,r,o,l,!0,i),W(t,v.dom,C),h++,c--;if(f>c){if(u>=h)for(C=s>u+1?n[u+1].dom:null;u>=h;h++)W(t,m(n[h],null,r,o,l,i),C)}else if(h>u)for(;c>=f;)I(e[f++],t);else{var N=c-f+1,_=u-h+1,O=new Array(_);for(d=0;_>d;d++)O[d]=-1;var S=!1,T=0;if(16>=N*_)for(d=f;c>=d;d++){var j=!0;for(g=e[d],b=h;u>=b;b++)if(y=n[b],g.key===y.key){O[b-h]=d,w>b?S=!0:w=b,de(g,y,t,r,o,l,!0,i),j=!1;break}j&&(I(g,t),T++)}else{var E=new Map;for(d=h;u>=d;d++)x=n[d],E.set(x.key,d);for(d=c;d>=f;d--)g=e[d],b=E.get(g.key),void 0===b?(I(g,t),T++):(y=n[b],O[b-h]=d,w>b?S=!0:w=b,de(g,y,t,r,o,l,!0,i))}if(S){var M=me(O);for(b=M.length-1,d=_-1;d>=0;d--)-1===O[d]?(k=d+h,C=s>k+1?n[k+1].dom:null,W(t,m(n[k],null,r,o,l,i),C)):0>b||d!==M[b]?(k=d+h,C=s>k+1?n[k+1].dom:null,W(t,n[k].dom,C)):b--}else if(N-T!==_)for(d=_-1;d>=0;d--)-1===O[d]&&(k=d+h,C=s>k+1?n[k+1].dom:null,W(t,m(n[k],null,r,o,l,i),C))}}function me(e){var n=e.slice(0),t=[];t.push(0);var r=void 0,o=void 0,l=void 0,i=void 0,a=void 0;for(r=0;r<e.length;r++)if(-1!==e[r])if(o=t[t.length-1],e[o]<e[r])n[r]=o,t.push(r);else{for(l=0,i=t.length-1;i>l;)a=(l+i)/2|0,e[t[a]]<e[r]?l=a+1:i=a;e[r]<e[t[l]]&&(l>0&&(n[r]=t[l-1]),t[l]=r)}for(l=t.length,i=t[l-1];l-- >0;)t[l]=i,i=n[i];return t}function ye(){this._listeners=[],this.scrollX=null,this.scrollY=null,this.screenHeight=Ye,this.screenWidth=Ie}function ge(e,n,t){n.addListener(function(){var r=t.getBoundingClientRect();null===n.scrollY&&n.refresh(),e.clipData={top:r.top+n.scrollY,left:r.left+n.scrollX,bottom:r.bottom+n.scrollY,right:r.right+n.scrollX,pending:!1}})}function be(e){se(e.lastNode,e.nextNode,e.parentDom,e.lifecycle,null,null,!1,!0),e.clipData.pending=!1}function Ce(){Re=!0,setTimeout(we,100)}function we(){ze.forEach(be),ze.clear(),Re=!1}function ke(e,n,t,r,o,l){if(performance.now()>Pe+2e3){var i=ze.get(n);return void 0===i?ze.set(n,{lastNode:t,nextNode:r,parentDom:o,clipData:e,lifecycle:l}):i.nextNode=r,e.pending=!0,Re===!1&&Ce(),!0}return we(),!1}function xe(e,n,t,o,l,i,a){if(r(e))if(3===n.nodeType&&""!==e)n.nodeValue=e;else{var s=document.createTextNode(e);V(o,s,n),t.splice(t.indexOf(n),1,s)}else Oe(e,n,o,l,i,a,!1)}function Ne(e){for(var n=[],t=e.childNodes,r=t.length,o=0;r>o;){var l=t[o];8===l.nodeType?(e.removeChild(l),r--):(n.push(l),o++)}return n}function _e(n,r,i,a,s,d,c,u,f,h,p){if(i=e(s,i),!t(r)){var v=n.instance=r(i);return o(a)||(o(a.componentWillMount)||a.componentWillMount(null,i),o(a.componentDidMount)||u.addListener(function(){a.componentDidMount(d,i)})),Oe(v,d,c,u,f,v,p)}var m=n.instance=new r(i);m._patch=de,!o(h)&&i.ref&&O(h,i.ref,m);var y=m.getChildContext();o(y)||(f=Object.assign({},f,y)),m.context=f,m._unmounted=!1,m._parentNode=n,h&&(m._parentComponent=h),m._pendingSetState=!0,m.componentWillMount();var g=m.render();m._pendingSetState=!1,l(g)?m._lastNode=U():(Oe(g,d,c,u,f,m,p),m._lastNode=g,m.componentDidMount())}function Oe(e,t,l,a,s,d,c){var u=e.bp,f=e.tag||u.tag;if(i(f))e.dom=t,_e(e,f,e.attrs||{},e.hooks,e.children,t,l,a,s,d,c);else if(1!==t.nodeType||f!==t.tagName.toLowerCase());else{e.dom=t;var h=e.hooks;u.hasHooks!==!0&&o(h)||Z(h,a,t);var p=e.children;if(!o(p))if(r(p))t.textContent!==p&&(t.textContent=p);else{var v=Ne(t);if(n(p)){if(e.domChildren=v,v.length===p.length)for(var m=0;m<p.length;m++)xe(p[m],v[m],v,t,a,s,d)}else 1===v.length&&xe(p,v[0],v,t,a,s,d)}var C=e.className,w=e.style;if(o(C)||(t.className=C),o(w)||ce(null,w,t),u&&u.hasAttrs===!0)g(e,u,t,d);else{var k=e.attrs;o(k)||(y(e),j(e,k,Object.keys(k),t,d))}if(u&&u.hasEvents===!0)b(e,u,t);else{var x=e.events;o(x)||S(x,Object.keys(x),t)}}}function Se(e,n,t){if(n&&1===n.nodeType){var r=n.querySelector("[data-infernoroot]");if(r&&r.parentNode===n)return Oe(e,r,n,t,{},!0),!0}return n!==qe?n.textContent="":console.warn('Inferno Warning: rendering to the "document.body" is dangerous! Use a dedicated container element instead.'),!1}function Te(e){for(var n=0;n<Fe.length;n++){var t=Fe[n];if(t.dom===e)return t}return null}function je(e){for(var n=0;n<Fe.length;n++){var t=Fe[n];if(t===e)return void Fe.splice(n,1)}}function Ee(e,n){var t=Te(n),r=new ye;if(d(t)){Se(e,n,r)||m(e,n,r,{},null,!1),r.trigger(),Fe.push({node:e,dom:n})}else{var o=X();de(t.node,e,n,r,{},null,null,!1),r.trigger(),null===e&&je(t),t.node=e,z(o)}}var Me={};Me.typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},Me.classCallCheck=function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")},Me.createClass=function(){function e(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(n,t,r){return t&&e(n.prototype,t),r&&e(n,r),n}}(),Me.inherits=function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function, not "+typeof n);e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(e,n):e.__proto__=n)},Me.possibleConstructorReturn=function(e,n){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!n||"object"!=typeof n&&"function"!=typeof n?e:n};var De="NO_RENDER",Ue="undefined"!=typeof window&&window.document,We=!0,Ae="http://www.w3.org/1999/xlink",Ke="http://www.w3.org/XML/1998/namespace",He={},Ve={},Le={},Be={};E("xlink:href,xlink:arcrole,xlink:actuate,xlink:role,xlink:titlef,xlink:type",Le,Ae),E("xml:base,xml:lang,xml:space",Le,Ke),E("volume,value",He,!0),E("muted,scoped,loop,open,checked,default,capture,disabled,selected,readonly,multiple,required,autoplay,controls,seamless,reversed,allowfullscreen,novalidate",Ve,!0),E("animationIterationCount,borderImageOutset,borderImageSlice,borderImageWidth,boxFlex,boxFlexGroup,boxOrdinalGroup,columnCount,flex,flexGrow,flexPositive,flexShrink,flexNegative,flexOrder,gridRow,gridColumn,fontWeight,lineClamp,lineHeight,opacity,order,orphans,tabSize,widows,zIndex,zoom,fillOpacity,floodOpacity,stopOpacity,strokeDasharray,strokeDashoffset,strokeMiterlimit,strokeOpacity,strokeWidth,",Be,!0);var Ie=Ue&&window.screen.width,Ye=Ue&&window.screen.height,Ge=0,Xe=0,Pe=0;Ue&&(window.onscroll=function(e){Ge=window.scrollX,Xe=window.scrollY,Pe=performance.now()},window.resize=function(e){Ge=window.scrollX,Xe=window.scrollY,Ie=window.screen.width,Ye=window.screen.height,Pe=performance.now()}),ye.prototype={refresh:function(){this.scrollX=Ue&&window.scrollX,this.scrollY=Ue&&window.scrollY},addListener:function(e){this._listeners.push(e)},trigger:function(){for(var e=0;e<this._listeners.length;e++)this._listeners[e]()}};var ze=new Map,Re=!1,qe=document.body,Fe=[],Je={render:Ee};return Je});
/*!
* inferno-router v0.7.12
* inferno-router v0.7.13
* (c) 2016 Dominic Gannaway

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*!
* inferno-server v0.7.12
* inferno-server v0.7.13
* (c) 2016 Dominic Gannaway

@@ -105,3 +105,3 @@ * Released under the MIT License.

function isInvalidNode(obj) {
return isNull(obj) || obj === false || obj === void 0;
return isNull(obj) || obj === false || obj === true || obj === void 0;
}

@@ -108,0 +108,0 @@

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

!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.InfernoServer=t()}(this,function(){"use strict";function e(e,n){if(!o(e)){var r=t(e);(r&&e.length>0||!r)&&(n=n?Object.assign({},n,{children:e}):{children:e})}return n}function t(e){return e instanceof Array}function n(e){return void 0!==e.prototype.render}function r(e){return l(e)||c(e)}function o(e){return void 0===e||a(e)}function i(e){return a(e)||e===!1||void 0===e}function u(e){return"function"==typeof e}function l(e){return"string"==typeof e}function c(e){return"number"==typeof e}function a(e){return null===e}function f(e,t,n){e.split(",").forEach(function(e){return t[e]=n})}function s(t,r,i,u,l){if(r=e(i,r),n(t)){var c=new t(r),a=c.getChildContext();o(a)||(u=Object.assign({},u,a)),c.context=u,c._pendingSetState=!0,c.componentWillMount();var f=c.render();return c._pendingSetState=!1,w(f,u,l)}return w(t(r),u,l)}function p(e,n){if(e&&t(e)){for(var o=[],u=!1,l=0;l<e.length;l++){var c=e[l];r(c)?(u===!0&&o.push("<!-- -->"),o.push(c),u=!0):(u=!1,o.push(w(c,n,!1)))}return o.join("")}return i(e)?"":r(e)?e:w(e,n,!1)||""}function d(e){return e.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()}function y(e){if(r(e))return e;for(var t=[],n=Object.keys(e),i=0;i<n.length;i++){var u=n[i],l=e[u],a=c(l)&&!z[u]?"px":"";o(l)||t.push(d(u)+":"+l+a+";")}return t.join()}function w(e,t,n){if(!i(e)){var r=function(){var r=e.bp,i=e.tag||r&&r.tag,l=[],c=e.className,a=e.style;if(u(i))return{v:s(i,e.attrs,e.children,t,n)};o(c)||l.push('class="'+c+'"'),o(a)||l.push('style="'+y(a)+'"');var f=e.attrs,d=f&&Object.keys(f)||[];return r&&r.hasAttrs===!0&&(d=r.attrKeys=r.attrKeys?r.attrKeys.concat(d):d),d.forEach(function(e,t){var n=d[t];l.push(n+'="'+f[n]+'"')}),n&&l.push("data-infernoroot"),{v:"<"+i+(l.length>0?" "+l.join(" "):"")+">"+p(e.children,t)+"</"+i+">"}}();if("object"===("undefined"==typeof r?"undefined":b.typeof(r)))return r.v}}function h(e,t){return w(e,null,!t)}var b={};b.typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},b.classCallCheck=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},b.createClass=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),b.inherits=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},b.possibleConstructorReturn=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t};var m="undefined"!=typeof window&&window.document,v=m&&window.screen.width,g=m&&window.screen.height,x=0,k=0,O=0;m&&(window.onscroll=function(e){x=window.scrollX,k=window.scrollY,O=performance.now()},window.resize=function(e){x=window.scrollX,k=window.scrollY,v=window.screen.width,g=window.screen.height,O=performance.now()});var j="http://www.w3.org/1999/xlink",S="http://www.w3.org/XML/1998/namespace",C={},I={},_={},z={};f("xlink:href,xlink:arcrole,xlink:actuate,xlink:role,xlink:titlef,xlink:type",_,j),f("xml:base,xml:lang,xml:space",_,S),f("volume,value",C,!0),f("muted,scoped,loop,open,checked,default,capture,disabled,selected,readonly,multiple,required,autoplay,controls,seamless,reversed,allowfullscreen,novalidate",I,!0),f("animationIterationCount,borderImageOutset,borderImageSlice,borderImageWidth,boxFlex,boxFlexGroup,boxOrdinalGroup,columnCount,flex,flexGrow,flexPositive,flexShrink,flexNegative,flexOrder,gridRow,gridColumn,fontWeight,lineClamp,lineHeight,opacity,order,orphans,tabSize,widows,zIndex,zoom,fillOpacity,floodOpacity,stopOpacity,strokeDasharray,strokeDashoffset,strokeMiterlimit,strokeOpacity,strokeWidth,",z,!0);var E={renderToString:h};return E});
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.InfernoServer=t()}(this,function(){"use strict";function e(e,n){if(!o(e)){var r=t(e);(r&&e.length>0||!r)&&(n=n?Object.assign({},n,{children:e}):{children:e})}return n}function t(e){return e instanceof Array}function n(e){return void 0!==e.prototype.render}function r(e){return l(e)||c(e)}function o(e){return void 0===e||a(e)}function i(e){return a(e)||e===!1||e===!0||void 0===e}function u(e){return"function"==typeof e}function l(e){return"string"==typeof e}function c(e){return"number"==typeof e}function a(e){return null===e}function f(e,t,n){e.split(",").forEach(function(e){return t[e]=n})}function s(t,r,i,u,l){if(r=e(i,r),n(t)){var c=new t(r),a=c.getChildContext();o(a)||(u=Object.assign({},u,a)),c.context=u,c._pendingSetState=!0,c.componentWillMount();var f=c.render();return c._pendingSetState=!1,w(f,u,l)}return w(t(r),u,l)}function p(e,n){if(e&&t(e)){for(var o=[],u=!1,l=0;l<e.length;l++){var c=e[l];r(c)?(u===!0&&o.push("<!-- -->"),o.push(c),u=!0):(u=!1,o.push(w(c,n,!1)))}return o.join("")}return i(e)?"":r(e)?e:w(e,n,!1)||""}function d(e){return e.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()}function y(e){if(r(e))return e;for(var t=[],n=Object.keys(e),i=0;i<n.length;i++){var u=n[i],l=e[u],a=c(l)&&!z[u]?"px":"";o(l)||t.push(d(u)+":"+l+a+";")}return t.join()}function w(e,t,n){if(!i(e)){var r=function(){var r=e.bp,i=e.tag||r&&r.tag,l=[],c=e.className,a=e.style;if(u(i))return{v:s(i,e.attrs,e.children,t,n)};o(c)||l.push('class="'+c+'"'),o(a)||l.push('style="'+y(a)+'"');var f=e.attrs,d=f&&Object.keys(f)||[];return r&&r.hasAttrs===!0&&(d=r.attrKeys=r.attrKeys?r.attrKeys.concat(d):d),d.forEach(function(e,t){var n=d[t];l.push(n+'="'+f[n]+'"')}),n&&l.push("data-infernoroot"),{v:"<"+i+(l.length>0?" "+l.join(" "):"")+">"+p(e.children,t)+"</"+i+">"}}();if("object"===("undefined"==typeof r?"undefined":b.typeof(r)))return r.v}}function h(e,t){return w(e,null,!t)}var b={};b.typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},b.classCallCheck=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},b.createClass=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),b.inherits=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},b.possibleConstructorReturn=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t};var m="undefined"!=typeof window&&window.document,v=m&&window.screen.width,g=m&&window.screen.height,x=0,k=0,O=0;m&&(window.onscroll=function(e){x=window.scrollX,k=window.scrollY,O=performance.now()},window.resize=function(e){x=window.scrollX,k=window.scrollY,v=window.screen.width,g=window.screen.height,O=performance.now()});var j="http://www.w3.org/1999/xlink",S="http://www.w3.org/XML/1998/namespace",C={},I={},_={},z={};f("xlink:href,xlink:arcrole,xlink:actuate,xlink:role,xlink:titlef,xlink:type",_,j),f("xml:base,xml:lang,xml:space",_,S),f("volume,value",C,!0),f("muted,scoped,loop,open,checked,default,capture,disabled,selected,readonly,multiple,required,autoplay,controls,seamless,reversed,allowfullscreen,novalidate",I,!0),f("animationIterationCount,borderImageOutset,borderImageSlice,borderImageWidth,boxFlex,boxFlexGroup,boxOrdinalGroup,columnCount,flex,flexGrow,flexPositive,flexShrink,flexNegative,flexOrder,gridRow,gridColumn,fontWeight,lineClamp,lineHeight,opacity,order,orphans,tabSize,widows,zIndex,zoom,fillOpacity,floodOpacity,stopOpacity,strokeDasharray,strokeDashoffset,strokeMiterlimit,strokeOpacity,strokeWidth,",z,!0);var E={renderToString:h};return E});
/*!
* inferno-test-utils v0.7.12
* inferno-test-utils v0.7.13
* (c) 2016 Dominic Gannaway

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*!
* inferno v0.7.12
* inferno v0.7.13
* (c) 2016 Dominic Gannaway

@@ -4,0 +4,0 @@ * Released under the MIT License.

{
"name": "inferno",
"version": "0.7.12",
"version": "0.7.13",
"license": "MIT",

@@ -5,0 +5,0 @@ "description": "An extremely fast, isomorphic JavaScript library for building modern user interfaces",

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc