{"version":3,"sources":["../../../src/DOM/recycling.js","../../../src/util/isVoid.js","../../../src/util/isStringOrNumber.js","../../../src/util/isSVGElement.js","../../../src/util/isMathMLElement.js","../../../src/util/isArray.js","../../../src/core/variables.js","../../../src/util/ExecutionEnvironment.js","../../../src/util/isSVG.js","../../../src/util/inArray.js","../../../src/util/noop.js","../../../src/util/styleAccessor.js","../../../src/util/isValidAttribute.js","../../../src/DOM/DOMRegistry.js","../../../src/DOM/index.js","../../../src/shared/eventMapping.js","../../../src/DOM/events/infernoNodeID.js","../../../src/shared/listenersStorage.js","../../../src/shared/focusEvents.js","../../../src/shared/eventHooks.js","../../../src/DOM/events/setHandler.js","../../../src/DOM/events/EventRegistry.js","../../../src/DOM/events/eventInterface.js","../../../src/util/isFormElement.js","../../../src/DOM/getFormElementType.js","../../../src/DOM/getFormElementValues.js","../../../src/shared/setupHooks.js","../../../src/DOM/events/createListenerArguments.js","../../../src/DOM/events/addRootListener.js","../../../src/DOM/events/createEventListener.js","../../../src/DOM/events/addListener.js","../../../src/shared/eventListener.js","../../../src/DOM/events/removeListener.js","../../../src/DOM/addAttributes.js","../../../src/DOM/recreateRootNode.js","../../../src/DOM/shapes/rootNodeWithDynamicText.js","../../../src/DOM/shapes/nodeWithDynamicText.js","../../../src/DOM/shapes/rootNodeWithStaticChild.js","../../../src/DOM/shapes/nodeWithStaticChild.js","../../../src/shared/updateAndAppendDynamicChildren.js","../../../src/util/appendText.js","../../../src/core/removeChild.js","../../../src/core/replaceChild.js","../../../src/DOM/domMutate.js","../../../src/DOM/shapes/rootNodeWithDynamicChild.js","../../../src/DOM/recreateNode.js","../../../src/DOM/shapes/nodeWithDynamicChild.js","../../../src/shared/addShapeChildren.js","../../../src/DOM/shapes/rootNodeWithDynamicSubTreeForChildren.js","../../../src/DOM/shapes/nodeWithDynamicSubTreeForChildren.js","../../../src/DOM/shapes/dynamicNode.js","../../../src/DOM/shapes/rootNodeWithComponent.js","../../../src/DOM/shapes/nodeWithComponent.js","../../../src/DOM/shapes/rootDynamicTextNode.js","../../../src/DOM/shapes/rootVoidNode.js","../../../src/DOM/shapes/voidNode.js","../../../src/DOM/hydration.js","../../../src/DOM/shapes/rootStaticNode.js","../../../src/DOM/shapes/staticNode.js","../../../src/DOM/createTree.js","../../../src/DOM/createRef.js","../../../src/DOM/createFragment.js","../../../src/DOM/rendering.js","../../inferno-dom/src/index.js"],"names":["recyclingEnabled","DOMRegistry","styleAccessor","isSVG","eventMapping","global","updateComponent","pool","item","key","tree","dom","push","keyedPool","recycle","treeLifecycle","context","recyclableItem","undefined","keyPool","pop","update","rootNode","isRecyclingEnabled","isSVGElement","nodeName","isMathMLElement","getValueWithIndex","index","v0","v1","values","getTypeFromValue","value","isStringOrNumber","isVoid","ValueTypes","TEXT","isArray","ARRAY","babelHelpers_typeof","create","TREE","Object","keys","length","EMPTY_OBJECT","FRAGMENT","FUNCTION","getValueForProps","props","newProps","name","val","overrideItem","removeValueTree","i","child","remove","inArray","arr","len","isValidAttribute","strings","character","isNaN","toUpperCase","toLowerCase","checkBitmask","bitmask","infernoNodeID","node","get","INFERNO_PROP","counter","setHandler","type","handler","hook","eventHooks","hooked","originalHandler","getFocusBlur","nativeFocus","fn","_type","this","e","addRootListener","document","addEventListener","focusEvents","stopPropagation","_isPropagationStopped","_stopPropagation","cancelBubble","isPropagationStopped","stopImmediatePropagation","_isImmediatePropagationStopped","_stopImmediatePropagation","isImmediatePropagationStopped","preventDefault","_isDefaultPrevented","_preventDefault","returnValue","isDefaultPrevented","eventInterface","nativeEvent","isFormElement","getFormElementType","multiple","getAttribute","selectValues","result","selectedIndex","options","option","selected","disabled","parentNode","getFormElementValues","checked","createListenerArguments","target","event","tagHooks","setupHooks","registry","EventRegistry","nodeType","listenersCount","_counter","listeners","listener","nodeID","args","defaultArgs","listenersStorage","numArgs","apply","createEventListener","addListener","vNode","domNode","Error","_enabled","_focusBlur","_bubbles","destroy","removeListener","removeEventListener","eventListener","addDOMStaticAttributes","attrs","styleUpdates","attrName","attrVal","template","setProperty","setCSS","fastPropSet","setAttribute","className","element","handleHooks","dynamicAttrs","hookEvent","hookCallback","addDOMDynamicAttributes","hookTypes","clearListeners","updateDOMDynamicAttributes","lastItem","nextItem","nextDynamicAttrs","lastDynamicAttrs","removeProperty","styleName","lastAttrVal","nextAttrVal","recreateRootNode","lastDomNode","lastTree","replaceChild","recreateRootNodeFromHydration","hydrateNode","createRootNodeWithDynamicText","templateNode","valueIndex","cloneNode","appendChild","createTextNode","textContent","id","nextValue","lastValue","hooks","firstChild","nodeValue","createNodeWithDynamicText","domNodeMap","createRootNodeWithStaticChild","createNodeWithStaticChild","updateAndAppendDynamicChildren","appendText","removeChild","childNode","replaceNode","updateKeyed","items","oldItems","parentNextNode","stop","startIndex","oldStartIndex","itemsLength","oldItemsLength","startItem","endIndex","oldEndIndex","oldStartItem","endItem","oldEndItem","nextNode","oldItem","outer","insertOrAppend","oldItemsMap","oldNextItem","nextSibling","updateNonKeyed","domNodeList","Math","max","splice","newNode","insertBefore","innerHTML","createVirtualList","childNodeList","createDocumentFragment","keyedChildren","childType","childDomNode","updateVirtualList","nextDomNode","createRootNodeWithDynamicChild","childItem","textNode","childNodes","oldTree","recreateNode","createNodeWithDynamicChild","_tree","addShapeChildren","subTreeForChildren","subTree","createRootNodeWithDynamicSubTreeForChildren","newDomNode","createNodeWithDynamicSubTreeForChildren","createDynamicNode","virtualList","addTreeSuccessListener","nextType","lastType","createRootNodeWithComponent","componentIndex","currentItem","statelessRender","instanceMap","instance","toUseItem","Component","prototype","render","componentWillMount","nextRender","childContext","getChildContext","fragmentFirstChild","babelHelpers_extends","parent","_lastRender","DocumentFragment","componentDidMount","forceUpdate","call","constructor","prevProps","prevState","state","nextState","nextProps","_newDomNode","componentWillUnmount","createNodeWithComponent","createRootDynamicTextNode","createRootVoidNode","createVoidNode","canHydrate","hasAttribute","purgeCommentNodes","parentDom","validateHydrateNodeChildren","templateNodeChild","hydrateNodeChild","validateHydrateNode","createRootStaticNode","hydrate","createStaticNode","createElement","schema","domNamespace","MathNamespace","SVGNamespace","tag","is","xmlns","namespaceURI","createElementNS","namespace","createStaticAttributes","excludeAttrs","newAttrs","attr","createStaticTreeChildren","children","createStaticTreeNode","staticNode","Element","text","createDOMTree","isRoot","dynamicNodeMap","dynamicFlags","NODE","ObjectTypes","VARIABLE","lastAttrs","_attrs","_children","ATTRS","CHILDREN","childNodeDynamicFlags","createRef","createDOMFragment","treeSuccessListeners","removeTreeSuccessListener","treeSuccessListener","activeNode","activeElement","body","focus","getRootFragmentAtNode","rootFragmentsLength","rootFragments","rootFragment","removeRootFragment","fragment","x","Array","canUseDOM","window","ExecutionEnvironment","canUseWorkers","Worker","canUseEventListeners","canUseViewport","screen","canUseSymbol","Symbol","implementation","_document","hasFeature","isSVG$1","HOOK","reDash","unitlessProperties","animation-iteration-count","box-flex","box-flex-group","column-count","counter-increment","fill-opacity","flex","flex-grow","flex-order","flex-positive","flex-shrink","float","font-weight","grid-column","line-height","line-clamp","opacity","order","orphans","stop-opacity","stroke-dashoffset","stroke-opacity","stroke-width","tab-size","transform","transform-origin","widows","z-index","zoom","directions","dirMap","prefix","postfix","map","dir","shortCuts","font","padding","margin","border-width","border-style","cssToJSName","cssName","replace","str","documentElement","computed","getComputedStyle","slice","style","forEach","propName","substr","indexOf","stylePropName","unPrefixed","unitless","shorthand","lenMap",1,"prop",2,4,"cssText","split","noop","PROPERTY","BOOLEAN","NUMERIC_VALUE","POSITIVE_NUMERIC_VALUE","xlink","xml","DOMAttributeNamespaces","xlink:actuate","xlink:arcrole","xlink:href","xlink:role","xlink:show","xlink:title","xlink:type","xml:base","xml:lang","xml:space","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","DOMAttributeNames","acceptCharset","htmlFor","httpEquiv","clipPath","fillOpacity","fontFamily","fontSize","markerEnd","markerMid","markerStart","stopColor","stopOpacity","strokeDasharray","strokeLinecap","strokeOpacity","strokeWidth","textAnchor","viewBox","xmlBase","xmlLang","xmlSpace","DOMPropertyNames","autoComplete","autoFocus","autoSave","Whitelist","allowFullScreen","async","autoPlay","capture","controls","currentTime","default","defaultChecked","defaultMuted","defaultSelected","defer","download","enabled","formNoValidate","hidden","loop","muted","mediaGroup","noValidate","noShade","noResize","noWrap","typeMustMatch","open","paused","playbackRate","readOnly","required","reversed","radioGroup","icon","draggable","dropzone","scoped","visible","trueSpeed","sandbox","sortable","inert","indeterminate","nohref","compact","declare","ismap","pauseOnExit","seamless","translate","srcLang","srcObject","volume","itemScope","tabindex","cols","rows","rowspan","size","sizes","start","title","autocorrect","autoCapitalize","form","formAction","formEncType","formMethod","formTarget","frameBorder","unselectable","continuous","srcSet","inlist","minLength","marginWidth","marginHeight","list","keyType","inputMode","height","width","dateTime","contenteditable","contextMenu","classID","cellPadding","cellSpacing","charSet","allowTransparency","spellcheck","srcDoc","HTMLPropsContainer","propConfig","attributeName","attributeNamespace","propertyName","mustUseProperty","hasBooleanValue","hasNumericValue","hasPositiveNumericValue","useProperties","propertyInfo","tagName","setSelectValueForProperty","setAttributeNS","removeAttribute","styles","styleValue","removeSelectValueForProperty","isMultiple","optionNode","standardNativeEventMapping","onBlur","onChange","onClick","onCompositionEnd","onCompositionStart","onCompositionUpdate","onContextMenu","onCopy","onCut","onDoubleClick","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onFocus","onFocusIn","onFocusOut","onInput","onKeyDown","onKeyPress","onKeyUp","onMouseDown","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onMouseWheel","onPaste","onReset","onSelect","onSelectionChange","onSelectStart","onShow","onSubmit","onTextInput","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onWheel","nonBubbleableEventMapping","onAbort","onBeforeUnload","onCanPlay","onCanPlayThrough","onDurationChange","onEmptied","onEnded","onError","onInvalid","onLoad","onLoadedData","onLoadedMetadata","onLoadStart","onMouseEnter","onMouseLeave","onOrientationChange","onPause","onPlay","onPlaying","onProgress","onRateChange","onResize","onScroll","onSeeked","onSeeking","onStalled","onSuspend","onTimeUpdate","onUnload","onVolumeChange","onWaiting","propertyToEventType","mapping","reduce","property","blur","standardNativeEvents","nonBubbleableEvents","onCreated","onAttached","onDetached","onWillUpdate","onDidUpdate","onComponentWillMount","onComponentDidMount","onComponentWillUnmount","onComponentWillUpdate","onComponentDidUpdate","InfernoComponent","require","updateComponent$1","Inferno","addTreeConstructor"],"mappings":"qLAEO,SAASO,GAAKC,GACpB,GAAMC,GAAMD,EAAKC,IACXC,EAAOF,EAAKE,KAAKC,GAEvB,IAAY,OAARF,EACHC,EAAKH,KAAKK,KAAKJ,OACT,CACN,GAAMK,GAAYH,EAAKG,WAEtBA,EAAUJ,KAASI,EAAUJ,QAAYG,KAAKJ,IAI1C,QAASM,GAAQJ,EAAMF,EAAMO,EAAeC,GAElD,GAAMP,GAAMD,EAAKC,IACbQ,EAAcC,MAAC,IAGP,OAART,EAAc,CACjB,GAAMU,GAAUT,EAAKG,UAAUJ,EAE/BQ,GAAiBE,GAAWA,EAAQC,UAEpCH,GAAiBP,EAAKH,KAAKa,KAE5B,OAAIH,IACHP,EAAKW,OAAOJ,EAAgBT,EAAMO,EAAeC,GAC1CR,EAAKc,UAFb,OAKM,QAASC,KACf,MAAOvB,IGjCR,QAASwB,GAAaC,GACrB,MAAoB,QAAbA,GACU,aAAbA,GACa,WAAbA,GACa,SAAbA,GACa,SAAbA,GACa,YAAbA,GACa,WAAbA,GACa,MAAbA,GACa,SAAbA,GACa,mBAAbA,GACa,SAAbA,GACa,WAAbA,GACa,aAAbA,GACa,UAAbA,GACa,SAAbA,GACa,YAAbA,GACa,YAAbA,GACa,aAAbA,GACa,YAAbA,GACa,mBAAbA,GACa,SAAbA,GACa,QAAbA,GACa,SAAbA,GACa,WAAbA,GACa,WAAbA,GACa,SAAbA,GACa,UAAbA,GACa,QAAbA,GACa,SAAbA,EC9BL,QAASC,GAAgBD,GACxB,MAAoB,OAAbA,GACU,UAAbA,GACa,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G,OAAO,CAAC,SAAS,CAAC,CAAC;KAC7B,CAAC,OAAO,CAAC,EAAE;AACX,EAAA,UAAO,GAAG,IAAI;;AAAC,EAAA,GAEf;;AAED,EAAA,MAAI,OAAO,IAAI,IAAI,EAAE;AACpB,EAAA,OAAI,OAAO,OAAO,CAAC,kBAAkB,KAAK,UAAU,EAAE;AACrD,EAAA,UAAO,gGAAgG,CAAE;MACzG,MAAM;AACN,EAAA,WAAO,CAAC,kBAAkB,CAAC,KAAK,EAAE,aAAa,CAAC,CAAC;MACjD;KACD;IACD;;AAED,cAAe;AACd,EAAA,OAAM,EAAN,MAAM;AACN,EAAA,UAAS,EAAT,SAAS;GACT","file":"inferno-dom.min.js","sourcesContent":["const recyclingEnabled = true;\n\nexport function pool(item) {\n\tconst key = item.key;\n\tconst tree = item.tree.dom;\n\n\tif (key === null) {\n\t\ttree.pool.push(item);\n\t} else {\n\t\tconst keyedPool = tree.keyedPool; // TODO rename\n\n\t\t(keyedPool[key] || (keyedPool[key] = [])).push(item);\n\t}\n}\n\nexport function recycle(tree, item, treeLifecycle, context) {\n\t// TODO use depth as key\n\tconst key = item.key;\n\tlet recyclableItem;\n\n\t// TODO faster to check pool size first?\n\tif (key !== null) {\n\t\tconst keyPool = tree.keyedPool[key];\n\n\t\trecyclableItem = keyPool && keyPool.pop();\n\t} else {\n\t\trecyclableItem = tree.pool.pop();\n\t}\n\tif (recyclableItem) {\n\t\ttree.update(recyclableItem, item, treeLifecycle, context);\n\t\treturn item.rootNode;\n\t}\n}\nexport function isRecyclingEnabled() {\n\treturn recyclingEnabled;\n}\n","export default x => (x === null) || (x === undefined);\n","export default x => (typeof x === 'string') || (typeof x === 'number');\n","// To be compat with React, we support at least the same SVG elements\nfunction isSVGElement(nodeName) {\n\treturn nodeName === 'svg'\n\t\t|| nodeName === 'clipPath'\n\t\t|| nodeName === 'circle'\n\t\t|| nodeName === 'defs'\n\t\t|| nodeName === 'desc'\n\t\t|| nodeName === 'ellipse'\n\t\t|| nodeName === 'filter'\n\t\t|| nodeName === 'g'\n\t\t|| nodeName === 'line'\n\t\t|| nodeName === 'linearGradient'\n\t\t|| nodeName === 'mask'\n\t\t|| nodeName === 'marker'\n\t\t|| nodeName === 'metadata'\n\t\t|| nodeName === 'mpath'\n\t\t|| nodeName === 'path'\n\t\t|| nodeName === 'pattern'\n\t\t|| nodeName === 'polygon'\n\t\t|| nodeName === 'polyline'\n\t\t|| nodeName === 'pattern'\n\t\t|| nodeName === 'radialGradient'\n\t\t|| nodeName === 'rect'\n\t\t|| nodeName === 'set'\n\t\t|| nodeName === 'stop'\n\t\t|| nodeName === 'symbol'\n\t\t|| nodeName === 'switch'\n\t\t|| nodeName === 'text'\n\t\t|| nodeName === 'tspan'\n\t\t|| nodeName === 'use'\n\t\t|| nodeName === 'view';\n}\n\nexport default isSVGElement;\n","function isMathMLElement(nodeName) {\n\treturn nodeName === 'mo'\n\t\t|| nodeName === 'mover'\n\t\t|| nodeName === 'mn'\n\t\t|| nodeName === 'maction'\n\t\t|| nodeName === 'menclose'\n\t\t|| nodeName === 'merror'\n\t\t|| nodeName === 'mfrac'\n\t\t|| nodeName === 'mi'\n\t\t|| nodeName === 'mmultiscripts'\n\t\t|| nodeName === 'mpadded'\n\t\t|| nodeName === 'mphantom'\n\t\t|| nodeName === 'mroot'\n\t\t|| nodeName === 'mrow'\n\t\t|| nodeName === 'ms'\n\t\t|| nodeName === 'mtd'\n\t\t|| nodeName === 'mtable'\n\t\t|| nodeName === 'munder'\n\t\t|| nodeName === 'msub'\n\t\t|| nodeName === 'msup'\n\t\t|| nodeName === 'msubsup'\n\t\t|| nodeName === 'mtr'\n\t\t|| nodeName === 'mtext';\n}\n\nexport default isMathMLElement;\n","export default x => x.constructor === Array;\n","import isArray from '../util/isArray';\nimport isVoid from '../util/isVoid';\nimport isStringOrNumber from '../util/isStringOrNumber';\n\nexport const ObjectTypes = {\n\tVARIABLE: 1\n};\n\nexport const ValueTypes = {\n\tTEXT: 0,\n\tARRAY: 1,\n\tTREE: 2,\n\tEMPTY_OBJECT: 3,\n\tFUNCTION: 4,\n\tFRAGMENT: 5\n};\n\nexport function createVariable(index) {\n\treturn {\n\t\tindex,\n\t\ttype: ObjectTypes.VARIABLE\n\t};\n}\n\nexport function getValueWithIndex(item, index) {\n\treturn (index < 2) ? ((index === 0) ? item.v0 : item.v1) : item.values[index - 2];\n}\n\nexport function getTypeFromValue(value) {\n\n\tif (isStringOrNumber(value) || isVoid(value)) {\n\t\treturn ValueTypes.TEXT;\n\t} else if (isArray(value)) {\n\t\treturn ValueTypes.ARRAY;\n\t} else if (typeof value === 'object' && value.create) {\n\t\treturn ValueTypes.TREE;\n\t} else if (typeof value === 'object' && Object.keys(value).length === 0) {\n\t\treturn ValueTypes.EMPTY_OBJECT;\n\t} else if (typeof value === 'object' && value.tree.dom) {\n\t\treturn ValueTypes.FRAGMENT;\n\t} else if (typeof value === 'function') {\n\t\treturn ValueTypes.FUNCTION;\n\t}\n}\n\nexport function getValueForProps(props, item) {\n\tconst newProps = {};\n\n\tif (props.index) {\n\t\treturn getValueWithIndex(item, props.index);\n\t}\n\tfor (let name in props) {\n\t\tconst val = props[name];\n\n\t\tif (val && val.index) {\n\t\t\tnewProps[name] = getValueWithIndex(item, val.index);\n\t\t} else {\n\t\t\tnewProps[name] = val;\n\t\t}\n\n\t\tif (name === 'children') {\n\t\t\tnewProps[name].overrideItem = item;\n\t\t}\n\t}\n\treturn newProps;\n}\n\nexport function removeValueTree(value, treeLifecycle) {\n\tif (isVoid(value)) {\n\t\treturn;\n\t}\n\tif (isArray(value)) {\n\t\tfor (let i = 0; i < value.length; i++) {\n\t\t\tconst child = value[i];\n\n\t\t\tremoveValueTree(child, treeLifecycle);\n\t\t}\n\t} else if (typeof value === 'object') {\n\t\tconst tree = value.tree;\n\n\t\ttree.dom.remove(value, treeLifecycle);\n\t}\n}\n","const canUseDOM = !!(\n\ttypeof window !== 'undefined' &&\n\t// Nwjs doesn't add document as a global in their node context, but does have it on window.document,\n\t// As a workaround, check if document is undefined\n\ttypeof document !== 'undefined' &&\n\twindow.document.createElement\n);\n\nexport default {\n\tcanUseDOM: canUseDOM,\n\tcanUseWorkers: typeof Worker !== 'undefined',\n\tcanUseEventListeners: canUseDOM && !!(window.addEventListener),\n\tcanUseViewport: canUseDOM && !!window.screen,\n\tcanUseSymbol: typeof Symbol === 'function' && typeof Symbol['for'] === 'function'\n};\n","import ExecutionEnvironment from './ExecutionEnvironment';\n\nlet isSVG;\n\nif (ExecutionEnvironment.canUseDOM) {\n\tconst { implementation } = document;\n\n\tisSVG = (\n\t\timplementation &&\n\t\timplementation.hasFeature &&\n\t\timplementation.hasFeature(\n\t\t\t'http://www.w3.org/TR/SVG11/feature#BasicStructure',\n\t\t\t'1.1'\n\t\t)\n\t);\n}\n\nexport default isSVG;\n","export default function inArray(arr, item) {\n\tconst len = arr.length;\n\tlet i = 0;\n\n\twhile (i < len) {\n\t\tif (arr[i++] === item) {\n\t\t\treturn true;\n\t\t}\n\n\t}\n\n\treturn false;\n}\n","export default () => {};","import ExecutionEnvironment from './ExecutionEnvironment';\nimport noop from './noop';\n\nconst HOOK = {};\nconst reDash = /\\-./g;\n\n/* eslint-disable quote-props */\nexport const unitlessProperties = {\n\t'animation-iteration-count': true,\n\t'box-flex': true,\n\t'box-flex-group': true,\n\t'column-count': true,\n\t'counter-increment': true,\n\t'fill-opacity': true,\n\t'flex': true,\n\t'flex-grow': true,\n\t'flex-order': true,\n\t'flex-positive': true,\n\t'flex-shrink': true,\n\t'float': true,\n\t'font-weight': true,\n\t'grid-column': true,\n\t'line-height': true,\n\t'line-clamp': true,\n\t'opacity': true,\n\t'order': true,\n\t'orphans': true,\n\t'stop-opacity': true,\n\t'stroke-dashoffset': true,\n\t'stroke-opacity': true,\n\t'stroke-width': true,\n\t'tab-size': true,\n\t'transform': true,\n\t'transform-origin': true,\n\t'widows': true,\n\t'z-index': true,\n\t'zoom': true\n};\n\n/* eslint-enable quote-props */\n\nexport let directions = [ 'Top', 'Right', 'Bottom', 'Left' ];\nexport let dirMap = (prefix, postfix) =>\n directions.map(dir => (prefix || '') + dir + (postfix || ''));\nexport const shortCuts = {\n\t// rely on cssText\n\tfont: [/*\n\t\tfont-style\n\t\tfont-variant\n\t\tfont-weight\n\t\tfont-size/line-height\n\t\tfont-family|caption|icon|menu|message-box|small-caption|status-bar|initial|inherit;\n\t*/],\n\tpadding: dirMap('padding'),\n\tmargin: dirMap('margin'),\n\t'border-width': dirMap('border', 'Width'),\n\t'border-style': dirMap('border', 'Style')\n};\nexport const cssToJSName = cssName =>\n\tcssName.replace(reDash, str => str[1].toUpperCase());\n\n// Don't execute this in nodejS\nif (ExecutionEnvironment.canUseDOM) {\n\t// get browser supported CSS properties\n\tconst documentElement = document.documentElement;\n\tconst computed = window.getComputedStyle(documentElement);\n\tconst props = Array.prototype.slice.call(computed, 0);\n\tfor (let key in documentElement.style) {\n\t\tif (!computed[key]) {\n\t\t\tprops.push(key);\n\t\t}\n\t}\n\tprops.forEach(function (propName) {\n\t\tlet prefix = propName[0] === '-'\n\t\t\t? propName.substr(1, propName.indexOf('-', 1) - 1)\n\t\t\t: null;\n\t\tlet stylePropName = cssToJSName(propName);\n\n\t\tHOOK[stylePropName] = {\n\t\t\tunPrefixed: prefix\n\t\t\t\t? propName.substr(prefix.length + 2)\n\t\t\t\t: propName,\n\t\t\tunitless: unitlessProperties[propName] ? true : false,\n\t\t\tshorthand: null\n\t\t};\n\t});\n\n\tconst lenMap = {\n\t\t1: (values, props, style) => props.forEach(prop => style[prop] = values[0]),\n\t\t2: (values, props, style) => values.forEach((value, index) => {\n\t\t\tstyle[props[index]] = style[props[index + 2]] = value;\n\t\t}),\n\t\t4: (values, props, style) => props.forEach((prop, index) => {\n\t\t\tstyle[prop] = values[index];\n\t\t})\n\t};\n\n\t// normalize property shortcuts\n\tObject.keys(shortCuts).forEach(propName => {\n\t\tlet stylePropName = cssToJSName(propName);\n\n\t\tHOOK[stylePropName] = {\n\t\t\tunPrefixed: propName,\n\t\t\tunitless: false,\n\t\t\tshorthand: (value, style) => {\n\t\t\t\tlet type = typeof value;\n\n\t\t\t\tif (type === 'number') {\n\t\t\t\t\tvalue += 'px';\n\t\t\t\t}\n\t\t\t\tif (!value) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tif ('cssText' in style) {\n\t\t\t\t\t// normalize setting complex property across browsers\n\t\t\t\t\tstyle.cssText += ';' + propName + ':' + value;\n\t\t\t\t} else {\n\t\t\t\t\tlet values = value.split(' ');\n\n\t\t\t\t\t(lenMap[values.length] || noop)(values, shortCuts[propName], style);\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t});\n}\n\n// TODO! Find a way to solve this for SSR\n\nexport default HOOK;\n","/* eslint eqeqeq:0 */\nexport default function isValidAttribute(strings){\n\tlet i = 0;\n\tlet character;\n\n\twhile (i <= strings.length) {\n\t\tcharacter = strings[ i ];\n\t\tif (!isNaN(character * 1)) {\n\t\t\treturn false;\n\t\t} else {\n\t\t\tif (character == character.toUpperCase()) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tif (character === character.toLowerCase()) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\ti++;\n\t}\n\n\treturn false;\n}\n","/**\n * DOM registry\n * */\n\nconst PROPERTY = 0x1;\nconst BOOLEAN = 0x2;\nconst NUMERIC_VALUE = 0x4;\nconst POSITIVE_NUMERIC_VALUE = 0x6 | 0x4;\n\nconst xlink = 'http://www.w3.org/1999/xlink';\nconst xml = 'http://www.w3.org/XML/1998/namespace';\n\nconst DOMAttributeNamespaces = {\n\t// None-JSX compat\n\t'xlink:actuate': xlink,\n\t'xlink:arcrole': xlink,\n\t'xlink:href': xlink,\n\t'xlink:role': xlink,\n\t'xlink:show': xlink,\n\t'xlink:title': xlink,\n\t'xlink:type': xlink,\n\t'xml:base': xml,\n\t'xml:lang': xml,\n\t'xml:space': xml,\n\t// JSX compat\n\txlinkActuate: xlink,\n\txlinkArcrole: xlink,\n\txlinkHref: xlink,\n\txlinkRole: xlink,\n\txlinkShow: xlink,\n\txlinkTitle: xlink,\n\txlinkType: xlink\n};\n\nexport const DOMAttributeNames = {\n\tacceptCharset: 'accept-charset',\n\tclassName: 'class',\n\thtmlFor: 'for',\n\thttpEquiv: 'http-equiv',\n\n\t// SVG\n\tclipPath: 'clip-path',\n\tfillOpacity: 'fill-opacity',\n\tfontFamily: 'font-family',\n\tfontSize: 'font-size',\n\tmarkerEnd: 'marker-end',\n\tmarkerMid: 'marker-mid',\n\tmarkerStart: 'marker-start',\n\tstopColor: 'stop-color',\n\tstopOpacity: 'stop-opacity',\n\tstrokeDasharray: 'stroke-dasharray',\n\tstrokeLinecap: 'stroke-linecap',\n\tstrokeOpacity: 'stroke-opacity',\n\tstrokeWidth: 'stroke-width',\n\ttextAnchor: 'text-anchor',\n\tviewBox: 'viewBox', // Edge case. The letter 'b' need to be uppercase\n\n\t// JSX compat\n\txlinkActuate: 'xlink:actuate',\n\txlinkArcrole: 'xlink:arcrole',\n\txlinkHref: 'xlink:href',\n\txlinkRole: 'xlink:role',\n\txlinkShow: 'xlink:show',\n\txlinkTitle: 'xlink:title',\n\txlinkType: 'xlink:type',\n\txmlBase: 'xml:base',\n\txmlLang: 'xml:lang',\n\txmlSpace: 'xml:space'\n};\n\nconst DOMPropertyNames = {\n\tautoComplete: 'autocomplete',\n\tautoFocus: 'autofocus',\n\tautoSave: 'autosave'\n};\n\n// This 'whitelist' contains edge cases such as attributes\n// that should be seen as a property or boolean property.\n// ONLY EDIT THIS IF YOU KNOW WHAT YOU ARE DOING!!\nconst Whitelist = {\n\tallowFullScreen: BOOLEAN,\n\tasync: BOOLEAN,\n\tautoFocus: BOOLEAN,\n\tautoPlay: BOOLEAN,\n\tcapture: BOOLEAN,\n\tchecked: PROPERTY | BOOLEAN,\n\tcontrols: BOOLEAN,\n\tcurrentTime: PROPERTY | POSITIVE_NUMERIC_VALUE,\n\tdefault: BOOLEAN,\n\tdefaultChecked: BOOLEAN,\n\tdefaultMuted: BOOLEAN,\n\tdefaultSelected: BOOLEAN,\n\tdefer: BOOLEAN,\n\tdisabled: PROPERTY | BOOLEAN,\n\tdownload: BOOLEAN,\n\tenabled: BOOLEAN,\n\tformNoValidate: BOOLEAN,\n\thidden: PROPERTY | BOOLEAN, // 3.2.5 - Global attributes\n\tloop: BOOLEAN,\n\t// Caution; `option.selected` is not updated if `select.multiple` is\n\t// disabled with `removeAttribute`.\n\tmultiple: PROPERTY | BOOLEAN,\n\tmuted: PROPERTY | BOOLEAN,\n\tmediaGroup: PROPERTY,\n\tnoValidate: BOOLEAN,\n\tnoShade: PROPERTY | BOOLEAN,\n\tnoResize: BOOLEAN,\n\tnoWrap: BOOLEAN,\n\ttypeMustMatch: BOOLEAN,\n\topen: BOOLEAN,\n\tpaused: PROPERTY,\n\tplaybackRate: PROPERTY | NUMERIC_VALUE,\n\treadOnly: BOOLEAN,\n\trequired: PROPERTY | BOOLEAN,\n\treversed: BOOLEAN,\n\tradioGroup: PROPERTY,\n\ticon: PROPERTY,\n\tdraggable: BOOLEAN, // 3.2.5 - Global attributes\n\tdropzone: null, // 3.2.5 - Global attributes\n\tscoped: PROPERTY | BOOLEAN,\n\tvisible: BOOLEAN,\n\ttrueSpeed: BOOLEAN,\n\tsandbox: null,\n\tsortable: BOOLEAN,\n\tinert: BOOLEAN,\n\tindeterminate: BOOLEAN,\n\tnohref: BOOLEAN,\n\tcompact: BOOLEAN,\n\tdeclare: BOOLEAN,\n\tismap: PROPERTY | BOOLEAN,\n\tpauseOnExit: PROPERTY | BOOLEAN,\n\tseamless: BOOLEAN,\n\ttranslate: BOOLEAN, // 3.2.5 - Global attributes\n\tselected: PROPERTY | BOOLEAN,\n\tsrcLang: PROPERTY,\n\tsrcObject: PROPERTY,\n\tvalue: PROPERTY,\n\tvolume: PROPERTY | POSITIVE_NUMERIC_VALUE,\n\titemScope: BOOLEAN, // 3.2.5 - Global attributes\n\tclassName: null,\n\ttabindex: PROPERTY | NUMERIC_VALUE,\n\n\t/**\n\t * React compat for non-working JSX namespace support\n\t */\n\n\txlinkActuate: null,\n\txlinkArcrole: null,\n\txlinkHref: null,\n\txlinkRole: null,\n\txlinkShow: null,\n\txlinkTitle: null,\n\txlinkType: null,\n\txmlBase: null,\n\txmlLang: null,\n\txmlSpace: null,\n\n\t/**\n\t * SVG\n\t */\n\n\tclipPath: null,\n\tfillOpacity: null,\n\tfontFamily: null,\n\tfontSize: null,\n\tmarkerEnd: null,\n\tmarkerMid: null,\n\tmarkerStart: null,\n\tstopColor: null,\n\tstopOpacity: null,\n\tstrokeDasharray: null,\n\tstrokeLinecap: null,\n\tstrokeOpacity: null,\n\tstrokeWidth: null,\n\ttextAnchor: null,\n\n\t/**\n\t * Numeric attributes\n\t */\n\tcols: POSITIVE_NUMERIC_VALUE,\n\trows: NUMERIC_VALUE,\n\trowspan: NUMERIC_VALUE,\n\tsize: POSITIVE_NUMERIC_VALUE,\n\tsizes: NUMERIC_VALUE,\n\tstart: NUMERIC_VALUE,\n\n\t/**\n\t * Namespace attributes\n\t */\n\t'xlink:actuate': null,\n\t'xlink:arcrole': null,\n\t'xlink:href': null,\n\t'xlink:role': null,\n\t'xlink:show': null,\n\t'xlink:title': null,\n\t'xlink:type': null,\n\t'xml:base': null,\n\t'xml:lang': null,\n\t'xml:space': null,\n\n\t/**\n\t * 3.2.5 - Global attributes\n\t */\n\tid: null,\n\tdir: null,\n\ttitle: null,\n\n\t/**\n\t * Properties that MUST be set as attributes, due to:\n\t *\n\t * - browser bug\n\t * - strange spec outlier\n\t *\n\t * Nothing bad with this. This properties get a performance boost\n\t * compared to custom attributes because they are skipping the\n\t * validation check.\n\t */\n\n\t// Force 'autocorrect' and 'autoCapitalize' to be set as an attribute\n\t// to fix issues with Mobile Safari on iOS devices\n\tautocorrect: null,\n\t// autoCapitalize and autoCorrect are supported in Mobile Safari for\n\t// keyboard hints.\n\tautoCapitalize: null,\n\n\t// Some version of IE (like IE9) actually throw an exception\n\t// if you set input.type = 'something-unknown'\n\ttype: null,\n\n\t/**\n\t * Form\n\t */\n\tform: null,\n\tformAction: null,\n\tformEncType: null,\n\tformMethod: null,\n\tformTarget: null,\n\tframeBorder: null,\n\n\t/**\n\t * Internet Explorer / Edge\n\t */\n\n\t// IE-only attribute that controls focus behavior\n\tunselectable: null,\n\n\t/**\n\t * Firefox\n\t */\n\n\tcontinuous: BOOLEAN,\n\n\t/**\n\t * Others\n\t */\n\tsrcSet: null,\n\tinlist: null,\n\tminLength: null,\n\tmarginWidth: null,\n\tmarginHeight: null,\n\tlist: null,\n\tkeyType: null,\n\tis: null,\n\tinputMode: null,\n\theight: null,\n\twidth: null,\n\tdateTime: null,\n\tcontenteditable: null, // 3.2.5 - Global attributes\n\tcontextMenu: null,\n\tclassID: null,\n\tcellPadding: null,\n\tcellSpacing: null,\n\tcharSet: null,\n\tallowTransparency: null,\n\tspellcheck: null, // 3.2.5 - Global attributes\n\tsrcDoc: PROPERTY\n};\n\nconst HTMLPropsContainer = {};\n\nfunction checkBitmask(value, bitmask) {\n\treturn bitmask !== null && ((value & bitmask) === bitmask);\n}\n\nfor (const propName in Whitelist) {\n\n\tconst propConfig = Whitelist[propName];\n\n\tHTMLPropsContainer[propName] = {\n\t\tattributeName: DOMAttributeNames[propName] || propName.toLowerCase(),\n\t\tattributeNamespace: DOMAttributeNamespaces[propName] ? DOMAttributeNamespaces[propName] : null,\n\t\tpropertyName: DOMPropertyNames[propName] || propName,\n\n\t\tmustUseProperty: checkBitmask(propConfig, PROPERTY),\n\t\thasBooleanValue: checkBitmask(propConfig, BOOLEAN),\n\t\thasNumericValue: checkBitmask(propConfig, NUMERIC_VALUE),\n\t\thasPositiveNumericValue: checkBitmask(propConfig, POSITIVE_NUMERIC_VALUE)\n\t};\n}\n\nexport default HTMLPropsContainer;\n","import isVoid from '../util/isVoid';\nimport isArray from '../util/isArray';\nimport inArray from '../util/inArray';\nimport styleAccessor from '../util/styleAccessor';\nimport isValidAttribute from '../util/isValidAttribute';\nimport DOMRegistry from './DOMRegistry';\n\nconst template = {\n\t/**\n\t * Sets the value for a property on a node. If a value is specified as\n\t * '' (empty string), the corresponding style property will be unset.\n\t *\n\t * @param {DOMElement} node\n\t * @param {string} name\n\t * @param {*} value\n\t */\n\tsetProperty(vNode, domNode, name, value, useProperties) {\n\t\tconst propertyInfo = DOMRegistry[name] || null;\n\n\t\tif (propertyInfo) {\n\t\t\tif (isVoid(value) ||\n\t\t\t\tpropertyInfo.hasBooleanValue && !value ||\n\t\t\t\tpropertyInfo.hasNumericValue && (value !== value) ||\n\t\t\t\tpropertyInfo.hasPositiveNumericValue && value < 1 ||\n\t\t\t\tvalue.length === 0) {\n\t\t\t\ttemplate.removeProperty(vNode, domNode, name, useProperties);\n\t\t\t} else if (propertyInfo.mustUseProperty) {\n\n\t\t\t\tconst propName = propertyInfo.propertyName;\n\n\t\t\t\tif (propName === 'value' && ((!isVoid(vNode) && vNode.tag === 'select') || (domNode.tagName === 'SELECT'))) {\n\t\t\t\t\ttemplate.setSelectValueForProperty(vNode, domNode, value, useProperties);\n\t\t\t\t} else if (useProperties) {\n\n\t\t\t\t\tif (('' + domNode[propName]) !== ('' + value)) {\n\t\t\t\t\t\tdomNode[propName] = value;\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif (propertyInfo.hasBooleanValue && (value === true || value === 'true')) {\n\t\t\t\t\t\tvalue = propName;\n\t\t\t\t\t}\n\t\t\t\t\tdomNode.setAttribute(propName, value);\n\t\t\t\t}\n\t\t\t} else {\n\n\t\t\t\tconst attributeName = propertyInfo.attributeName;\n\t\t\t\tconst namespace = propertyInfo.attributeNamespace;\n\n\t\t\t\tif (namespace) {\n\t\t\t\t\tdomNode.setAttributeNS(namespace, attributeName, '' + value);\n\t\t\t\t} else {\n\n\t\t\t\t\t// if 'truthy' value, and boolean, it will be 'propName=propName'\n\t\t\t\t\tif (propertyInfo.hasBooleanValue && value === true) {\n\t\t\t\t\t\tvalue = attributeName;\n\t\t\t\t\t}\n\t\t\t\t\tdomNode.setAttribute(attributeName, '' + value);\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\tif (isValidAttribute(name)) {\n\t\t\t\tif (isVoid(value)){\n\t\t\t\t\tdomNode.removeAttribute(name);\n\t\t\t\t} else if (name) {\n\t\t\t\t\tdomNode.setAttribute(name, value);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t},\n\n\t/**\n\t * Sets the value for multiple styles on a node.\tIf a value is specified as\n\t * '' (empty string), the corresponding style property will be unset.\n\t *\n\t * @param {vNode} virtual node\n\t * @param {DOMElement} node\n\t * @param {object} styles\n\t */\n\tsetCSS(vNode, domNode, styles, useProperties) {\n\t\tfor (let styleName in styles) {\n\t\t\tlet styleValue = styles[styleName];\n\n\t\t\tconst style = domNode.style;\n\n\t\t\tif (isVoid(styleValue) ||\n\t\t\t\ttypeof styleValue === 'boolean') { // Todo! Should we check for typeof boolean?\n\t\t\t\tstyle[styleName] = '';\n\t\t\t} else {\n\n\t\t\t\t// The 'hook' contains all browser supported CSS properties.\n\t\t\t\t// No 'custom-css' are allowed or will work.\n\t\t\t\tconst hook = styleAccessor[styleName];\n\n\t\t\t\tif (hook) {\n\t\t\t\t\tif (hook.shorthand) {\n\n\t\t\t\t\t\thook.shorthand(styleValue, style);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (!hook.unitless) {\n\t\t\t\t\t\t\tif (typeof styleValue !== 'string') {\n\t\t\t\t\t\t\t\tstyleValue = styleValue + 'px';\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tstyle[hook.unPrefixed] = styleValue;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t},\n\n\t/**\n\t * Removes the value for a property on a node.\n\t *\n\t * @param {DOMElement} node\n\t * @param {string} name\n\t */\n\tremoveProperty(vNode, domNode, name, useProperties) {\n\t\tconst propertyInfo = DOMRegistry[name];\n\n\t\tif (propertyInfo) {\n\t\t\tif (propertyInfo.mustUseProperty) {\n\t\t\t\tconst propName = propertyInfo.propertyName;\n\t\t\t\t// Make sure we remove select / select multiiple properly\n\t\t\t\tif (name === 'value' && ((vNode !== null && vNode.tag === 'select') || (domNode.tagName === 'SELECT'))) {\n\t\t\t\t\ttemplate.removeSelectValueForProperty(vNode, domNode);\n\t\t\t\t} else {\n\t\t\t\t\tif (useProperties) {\n\t\t\t\t\t\tif (propertyInfo.hasBooleanValue) {\n\t\t\t\t\t\t\tdomNode[propName] = false;\n\t\t\t\t\t\t} else if ('' + domNode[propName] !== '') {\n\t\t\t\t\t\t\tdomNode[propName] = '';\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tdomNode.removeAttribute(propName);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tdomNode.removeAttribute(propertyInfo.attributeName);\n\t\t\t}\n\t\t} else {\n\t\t\t// HTML attributes and custom attributes\n\t\t\tdomNode.removeAttribute(name);\n\t\t}\n\t},\n\n\t/**\n\t * Set the value for a select / select multiple on a node.\n\t *\n\t * @param {DOMElement} node\n\t * @param {string} name\n\t */\n\tsetSelectValueForProperty(vNode, domNode, value, useProperties) {\n\t\tconst isMultiple = isArray(value);\n\t\tconst options = domNode.options;\n\t\tconst len = options.length;\n\n\t\tvalue = typeof value === 'number' ? '' + value : value;\n\n\t\tlet i = 0, optionNode;\n\n\t\twhile (i < len) {\n\t\t\toptionNode = options[i++];\n\t\t\tif (useProperties) {\n\t\t\t\toptionNode.selected = !isVoid(value) &&\n\t\t\t\t\t(isMultiple ? inArray(value, optionNode.value) : optionNode.value === value);\n\t\t\t} else {\n\t\t\t\tif (!isVoid(value) && (isMultiple ? inArray(value, optionNode.value) : optionNode.value === value)) {\n\t\t\t\t\toptionNode.setAttribute('selected', 'selected');\n\t\t\t\t} else {\n\t\t\t\t\toptionNode.removeAttribute('selected');\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t},\n\tremoveSelectValueForProperty(vNode, domNode/* , propName */) {\n\t\tconst options = domNode.options;\n\t\tconst len = options.length;\n\n\t\tlet i = 0;\n\n\t\twhile (i < len) {\n\t\t\toptions[i++].selected = false;\n\t\t}\n\t}\n};\n\nexport default template;\n","export const standardNativeEventMapping = {\n\tonBlur: 'blur',\n\tonChange: 'change',\n\tonClick: 'click',\n\tonCompositionEnd: 'compositionend',\n\tonCompositionStart: 'compositionstart',\n\tonCompositionUpdate: 'compositionupdate',\n\tonContextMenu: 'contextmenu',\n\tonCopy: 'copy',\n\tonCut: 'cut',\n\tonDoubleClick: 'dblclick',\n\tonDrag: 'drag',\n\tonDragEnd: 'dragend',\n\tonDragEnter: 'dragenter',\n\tonDragExit: 'dragexit',\n\tonDragLeave: 'dragleave',\n\tonDragOver: 'dragover',\n\tonDragStart: 'dragstart',\n\tonDrop: 'drop',\n\tonFocus: 'focus',\n\tonFocusIn: 'focusin',\n\tonFocusOut: 'focusout',\n\tonInput: 'input',\n\tonKeyDown: 'keydown',\n\tonKeyPress: 'keypress',\n\tonKeyUp: 'keyup',\n\tonMouseDown: 'mousedown',\n\tonMouseMove: 'mousemove',\n\tonMouseOut: 'mouseout',\n\tonMouseOver: 'mouseover',\n\tonMouseUp: 'mouseup',\n\tonMouseWheel: 'mousewheel',\n\tonPaste: 'paste',\n\tonReset: 'reset',\n\tonSelect: 'select',\n\tonSelectionChange: 'selectionchange',\n\tonSelectStart: 'selectstart',\n\tonShow: 'show',\n\tonSubmit: 'submit',\n\tonTextInput: 'textInput',\n\tonTouchCancel: 'touchcancel',\n\tonTouchEnd: 'touchend',\n\tonTouchMove: 'touchmove',\n\tonTouchStart: 'touchstart',\n\tonWheel: 'wheel'\n};\n\nexport const nonBubbleableEventMapping = {\n\tonAbort: 'abort',\n\tonBeforeUnload: 'beforeunload',\n\tonCanPlay: 'canplay',\n\tonCanPlayThrough: 'canplaythrough',\n\tonDurationChange: 'durationchange',\n\tonEmptied: 'emptied',\n\tonEnded: 'ended',\n\tonError: 'error',\n\tonInput: 'input',\n\tonInvalid: 'invalid',\n\tonLoad: 'load',\n\tonLoadedData: 'loadeddata',\n\tonLoadedMetadata: 'loadedmetadata',\n\tonLoadStart: 'loadstart',\n\tonMouseEnter: 'mouseenter',\n\tonMouseLeave: 'mouseleave',\n\tonOrientationChange: 'orientationchange',\n\tonPause: 'pause',\n\tonPlay: 'play',\n\tonPlaying: 'playing',\n\tonProgress: 'progress',\n\tonRateChange: 'ratechange',\n\tonResize: 'resize',\n\tonScroll: 'scroll',\n\tonSeeked: 'seeked',\n\tonSeeking: 'seeking',\n\tonSelect: 'select',\n\tonStalled: 'stalled',\n\tonSuspend: 'suspend',\n\tonTimeUpdate: 'timeupdate',\n\tonUnload: 'unload',\n\tonVolumeChange: 'volumechange',\n\tonWaiting: 'waiting'\n};\n\nconst propertyToEventType = {};\n\n[ standardNativeEventMapping, nonBubbleableEventMapping ].forEach(mapping => {\n\tObject.keys(mapping).reduce((state, property) => {\n\t\tstate[property] = mapping[property];\n\t\treturn state;\n\t}, propertyToEventType);\n});\n\nexport default propertyToEventType;\n","const INFERNO_PROP = '__Inferno__id__';\nlet counter = 1;\n\nexport default function infernoNodeID(node, get) {\n\treturn node[INFERNO_PROP] ||\n\t\t(get ? 0 : node[INFERNO_PROP] = counter++);\n}","/**\n * Internal store for event listeners\n * DOMNodeId -> type -> listener\n */\nexport default {};","export default {\n\tfocus: 'focusin', // DOM L3\n\tblur: 'focusout' // DOM L3\n};","export default {};","import eventHooks from '../../shared/eventHooks';\n\n/**\n * Creates a wrapped handler that hooks into the Inferno\n * eventHooks system based on the type of event being\n * attached.\n *\n * @param {string} type\n * @param {Function} handler\n * @return {Function} wrapped handler\n */\nexport default function setHandler(type, handler) {\n\tconst hook = eventHooks[type];\n\n\tif (hook) {\n\t\tconst hooked = hook(handler);\n\n\t\thooked.originalHandler = handler;\n\t\treturn hooked;\n\t}\n\n\treturn { handler, originalHandler: handler };\n}\n","import ExecutionEnvironment from '../../util/ExecutionEnvironment';\nimport addRootListener from './addRootListener';\nimport setHandler from './setHandler';\nimport focusEvents from '../../shared/focusEvents';\nimport {\n\tstandardNativeEventMapping,\n\tnonBubbleableEventMapping } from '../../shared/eventMapping';\n\nconst standardNativeEvents = Object.keys(standardNativeEventMapping)\n\t.map(key => standardNativeEventMapping[key]);\n\nconst nonBubbleableEvents = Object.keys(nonBubbleableEventMapping)\n\t.map(key => nonBubbleableEventMapping[key]);\n\nconst EventRegistry = {};\n\nfunction getFocusBlur(nativeFocus) {\n\tif (typeof getFocusBlur.fn === 'undefined') {\n\t\tgetFocusBlur.fn = nativeFocus ? function () {\n\t\t\tconst _type = this._type;\n\t\t\tconst handler = setHandler(_type, e => {\n\t\t\t\taddRootListener(e, _type);\n\t\t\t}).handler;\n\n\t\t\tdocument.addEventListener(focusEvents[_type], handler);\n\t\t} : function () {\n\t\t\tconst _type = this._type;\n\n\t\t\tdocument.addEventListener(\n\t\t\t\t_type,\n\t\t\t\tsetHandler(_type, addRootListener).handler,\n\t\t\t\ttrue);\n\t\t};\n\t}\n\treturn getFocusBlur.fn;\n}\n\nif (ExecutionEnvironment.canUseDOM) {\n\tlet i = 0;\n\tlet type;\n\tconst nativeFocus = 'onfocusin' in document.documentElement;\n\n\tfor (; i < standardNativeEvents.length; i++) {\n\t\ttype = standardNativeEvents[i];\n\t\tEventRegistry[type] = {\n\t\t\t_type: type,\n\t\t\t_bubbles: true,\n\t\t\t_counter: 0,\n\t\t\t_enabled: false\n\t\t};\n\t\t// 'focus' and 'blur'\n\t\tif (focusEvents[type]) {\n\t\t\t// IE has `focusin` and `focusout` events which bubble.\n\t\t\t// @see http://www.quirksmode.org/blog/archives/2008/04/delegating_the.html\n\t\t\tEventRegistry[type]._focusBlur = getFocusBlur(nativeFocus);\n\t\t}\n\t}\n\t// For non-bubbleable events - e.g. scroll - we are setting the events directly on the node\n\tfor (i = 0; i < nonBubbleableEvents.length; i++) {\n\t\ttype = nonBubbleableEvents[i];\n\t\tEventRegistry[type] = {\n\t\t\t_type: type,\n\t\t\t_bubbles: false,\n\t\t\t_enabled: false\n\t\t};\n\t}\n}\n\nexport default EventRegistry;\n","/* eslint no-invalid-this:0 */\n\nfunction stopPropagation() {\n\tthis._isPropagationStopped = true;\n\tif (this._stopPropagation) {\n\t\tthis._stopPropagation();\n\t} else {\n\t\tthis.cancelBubble = true;\n\t}\n}\n\nfunction isPropagationStopped() {\n\treturn this._isPropagationStopped;\n}\n\nfunction stopImmediatePropagation() {\n\tthis._isImmediatePropagationStopped = true;\n\tthis._isPropagationStopped = true;\n\tif (this._stopImmediatePropagation) {\n\t\tthis._stopImmediatePropagation();\n\t} else {\n\t\tthis.cancelBubble = true;\n\t}\n}\n\nfunction isImmediatePropagationStopped() {\n\treturn this._isImmediatePropagationStopped;\n}\n\nfunction preventDefault() {\n\tthis._isDefaultPrevented = true;\n\n\tif (this._preventDefault) {\n\t\tthis._preventDefault();\n\t} else {\n\t\tthis.returnValue = false;\n\t}\n}\n\nfunction isDefaultPrevented() {\n\treturn this._isDefaultPrevented;\n}\n\nfunction eventInterface(nativeEvent) {\n\n\t// Extend nativeEvent\n\tnativeEvent._stopPropagation = nativeEvent.stopPropagation;\n\tnativeEvent.stopPropagation = stopPropagation;\n\tnativeEvent.isPropagationStopped = isPropagationStopped;\n\n\tnativeEvent._stopImmediatePropagation = nativeEvent.stopImmediatePropagation;\n\tnativeEvent.stopImmediatePropagation = stopImmediatePropagation;\n\tnativeEvent.isImmediatePropagationStopped = isImmediatePropagationStopped;\n\n\tnativeEvent._preventDefault = nativeEvent.preventDefault;\n\tnativeEvent.preventDefault = preventDefault;\n\tnativeEvent.isDefaultPrevented = isDefaultPrevented;\n\n\treturn nativeEvent;\n}\n\nexport default eventInterface;\n","function isFormElement(nodeName) {\n\treturn nodeName === 'form'\n\t\t|| nodeName === 'input'\n\t\t|| nodeName === 'textarea'\n\t\t|| nodeName === 'label'\n\t\t|| nodeName === 'fieldset'\n\t\t|| nodeName === 'legend'\n\t\t|| nodeName === 'select'\n\t\t|| nodeName === 'optgroup'\n\t\t|| nodeName === 'option'\n\t\t|| nodeName === 'button'\n\t\t|| nodeName === 'datalist'\n\t\t|| nodeName === 'keygen'\n\t\t|| nodeName === 'output';\n}\n\nexport default isFormElement;","export default function getFormElementType(node) {\n\tconst name = node.nodeName.toLowerCase();\n\n\tif (name !== 'input') {\n\t\tif (name === 'select' && node.multiple) {\n\t\t\treturn 'select-multiple';\n\t\t}\n\t\treturn name;\n\t}\n\n\tconst type = node.getAttribute('type');\n\n\tif (!type) {\n\t\treturn 'text';\n\t}\n\n\treturn type.toLowerCase();\n}\n","import getFormElementType from './getFormElementType';\nimport isVoid from '../util/isVoid';\n\nfunction selectValues(node) {\n\n\tconst result = [];\n\tconst index = node.selectedIndex;\n\tconst options = node.options;\n\tconst length = options.length;\n\tlet option;\n\tlet i = index < 0 ? length : 0;\n\n\tfor (; i < length; i++) {\n\n\t\toption = options[i];\n\n\t\tlet selected = option.selected || option.getAttribute('selected');\n\n\t\t// IMPORTANT! IE9 doesn't update selected after form reset\n\t\tif ((option.selected || i === index) &&\n\t\t\t\t// Don't return options that are disabled or in a disabled optgroup\n\t\t\t!option.disabled && (!option.parentNode.disabled || option.parentNode.nodeName !== 'OPTGROUP')) {\n\t\t\tresult.push(option.value);\n\t\t}\n\t}\n\tif (result.length < 2) {\n\t\treturn result[0];\n\t}\n\treturn result;\n}\n\nexport default function getFormElementValues(node) {\n\n\tif (isVoid(node)) {\n\t\treturn null;\n\t}\n\n\tconst name = getFormElementType(node);\n\n\tswitch (name) {\n\t\tcase 'checkbox':\n\t\tcase 'radio':\n\t\t\tconst checked = node.getAttribute('checked') || node.checked;\n\n\t\t\tif (!isVoid(checked)) {\n\t\t\t\treturn (checked !== false) && (checked !== 'false');\n\t\t\t}\n\t\t\treturn false;\n\t\tcase 'select-multiple':\n\t\t\treturn selectValues(node);\n\t\tdefault:\n\t\t\treturn node.value;\n\t}\n}\n","// type -> node -> function(target, event)\nexport default {};","import isFormElement from '../../util/isFormElement';\nimport getFormElementValues from '../getFormElementValues';\nimport setupHooks from '../../shared/setupHooks';\n\nexport default function createListenerArguments(target, event) {\n\tconst type = event.type;\n\tconst nodeName = target.nodeName.toLowerCase();\n\n\tlet tagHooks;\n\n\tif ((tagHooks = setupHooks[type])) {\n\t\tconst hook = tagHooks[nodeName];\n\n\t\tif (hook) {\n\t\t\treturn hook(target, event);\n\t\t}\n\t}\n\t// Default behavior:\n\t// Form elements with a value attribute will have the arguments:\n\t// [event, value]\n\tif (isFormElement(nodeName)) {\n\t\treturn [ event, getFormElementValues(target) ];\n\t}\n\t// Fallback to just event\n\treturn [event];\n}\n","import infernoNodeID from './infernoNodeID';\nimport listenersStorage from '../../shared/listenersStorage';\nimport EventRegistry from './EventRegistry';\nimport eventInterface from './eventInterface';\nimport createListenerArguments from './createListenerArguments';\n\nexport default function addRootListener(e, type) {\n\n\tif (!type) {\n\t\ttype = e.type;\n\t}\n\n\tconst registry = EventRegistry[type];\n\n\t// Support: Safari 6-8+\n\t// Target should not be a text node\n\tif (e.target.nodeType === 3) {\n\t\te.target = e.target.parentNode;\n\t}\n\n\tlet target = e.target,\n\t\tlistenersCount = registry._counter,\n\t\tlisteners,\n\t\tlistener,\n\t\tnodeID,\n\t\tevent,\n\t\targs,\n\t\tdefaultArgs;\n\n\tif (listenersCount > 0) {\n\t\tevent = eventInterface(e, type);\n\t\tdefaultArgs = args = [event];\n\t}\n\t// NOTE: Only the event blubbling phase is modeled. This is done because\n\t// handlers specified on props can not specify they are handled on the\n\t// capture phase.\n\twhile (target !== null\n\t&& listenersCount > 0\n\t&& target !== document.parentNode) {\n\t\tif ((nodeID = infernoNodeID(target, true))) {\n\t\t\tlisteners = listenersStorage[nodeID];\n\t\t\tif (listeners && listeners[type]) {\n\n\t\t\t\tlistener = listeners[type];\n\n\t\t\t\t// lazily instantiate additional arguments in the case\n\t\t\t\t// where an event handler takes more than one argument\n\t\t\t\t// listener is a function, and length is the number of\n\t\t\t\t// arguments that function takes\n\t\t\t\tconst numArgs = listener.originalHandler.length;\n\n\t\t\t\targs = defaultArgs;\n\t\t\t\tif (numArgs > 1) {\n\t\t\t\t\targs = createListenerArguments(target, event);\n\t\t\t\t}\n\n\t\t\t\t// 'this' on an eventListener is the element handling the event\n\t\t\t\t// event.currentTarget is unwriteable, and since these are\n\t\t\t\t// native events, will always refer to the document. Therefore\n\t\t\t\t// 'this' is the only supported way of referring to the element\n\t\t\t\t// whose listener is handling the current event\n\t\t\t\tlistener.handler.apply(target, args);\n\n\t\t\t\t// Check if progagation stopped. There is only one listener per\n\t\t\t\t// type, so we do not need to check immediate propagation.\n\t\t\t\tif (event.isPropagationStopped()) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\t--listenersCount;\n\t\t\t}\n\t\t}\n\t\ttarget = target.parentNode;\n\t}\n}\n","import listenersStorage from '../../shared/listenersStorage';\nimport createListenerArguments from './createListenerArguments';\nimport infernoNodeID from './infernoNodeID';\n\nexport default function createEventListener(type) {\n\treturn e => {\n\t\tconst target = e.target;\n\t\tconst listener = listenersStorage[infernoNodeID(target)][type];\n\t\tconst args = listener.originalHandler.length > 1\n\t\t\t? createListenerArguments(target, e)\n\t\t\t: [e];\n\n\t\tlistener.originalHandler.apply(target, args);\n\t};\n}","import infernoNodeID from './infernoNodeID';\nimport addRootListener from './addRootListener';\nimport EventRegistry from './EventRegistry';\nimport listenersStorage from '../../shared/listenersStorage';\nimport setHandler from './setHandler';\nimport createEventListener from './createEventListener';\n\nexport default function addListener(vNode, domNode, type, listener) {\n\tif (!domNode) {\n\t\treturn null; // TODO! Should we throw?\n\t}\n\tconst registry = EventRegistry[type];\n\n\t// only add listeners for registered events\n\tif (registry) {\n\t\tif (!registry._enabled) {\n\t\t\t// handle focus / blur events\n\t\t\tif (registry._focusBlur) {\n\t\t\t\tregistry._focusBlur();\n\t\t\t} else if (registry._bubbles) {\n\t\t\t\tconst handler = setHandler(type, addRootListener).handler;\n\n\t\t\t\tdocument.addEventListener(type, handler, false);\n\t\t\t}\n\t\t\tregistry._enabled = true;\n\t\t}\n\t\tconst nodeID = infernoNodeID(domNode);\n\t\tlet\tlisteners;\n\n\t\tif (listenersStorage[nodeID]) {\n\t\t\tlisteners = listenersStorage[nodeID];\n\t\t} else {\n\t\t\tlistenersStorage[nodeID] = {};\n\t\t\tlisteners = listenersStorage[nodeID];\n\t\t}\n\n\t\tif (listeners[type]) {\n\t\t\tif (listeners[type].destroy) {\n\t\t\t\tlisteners[type].destroy();\n\t\t\t}\n\t\t}\n\t\tif (registry._bubbles) {\n\t\t\tif (!listeners[type]) {\n\t\t\t\t++registry._counter;\n\t\t\t}\n\t\t\tlisteners[type] = {\n\t\t\t\thandler: listener,\n\t\t\t\toriginalHandler: listener\n\t\t\t};\n\t\t} else {\n\t\t\tlisteners[type] = setHandler(type, createEventListener(type));\n\t\t\tlisteners[type].originalHandler = listener;\n\t\t\tdomNode.addEventListener(type, listeners[type].handler, false);\n\t\t}\n\t} else {\n\t\tthrow Error('Inferno Error: ' + type + ' has not been registered, and therefor not supported.');\n\t}\n}\n","export default {};","import infernoNodeID from './infernoNodeID';\nimport EventRegistry from './EventRegistry';\nimport listenersStorage from '../../shared/listenersStorage';\nimport eventListener from '../../shared/eventListener';\n// import focusEvents from '../../shared/focusEvents';\n\n/**\n * Remove event listeners from a node\n */\nexport default function removeListener(node, type) {\n\n\tif (!node) {\n\t\treturn null; // TODO! Should we throw?\n\t}\n\n\tconst nodeID = infernoNodeID(node, true);\n\n\tif (nodeID) {\n\t\tconst listeners = listenersStorage[nodeID];\n\n\t\tif (listeners && listeners[type]) {\n\t\t\tif (listeners[type] && listeners[type].destroy) {\n\t\t\t\tlisteners[type].destroy();\n\t\t\t}\n\t\t\tlisteners[type] = null;\n\n\t\t\tconst registry = EventRegistry[type];\n\n\t\t\tif (registry) {\n\t\t\t\tif (registry._bubbles) {\n\t\t\t\t\t--registry._counter;\n\t\t\t\t\t// TODO Run tests and check if this works, or code should be removed\n//\t\t\t\t} else if (registry._focusBlur) {\n//\t\t\t\t\tnode.removeEventListener(type, eventListener[focusEvents[type]]);\n\t\t\t\t} else {\n\t\t\t\t\tnode.removeEventListener(type, eventListener[type]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n","import isVoid from '../util/isVoid';\nimport isSVG from '../util/isSVG';\nimport template from './';\nimport eventMapping from '../shared/eventMapping';\nimport addListener from './events/addListener';\nimport removeListener from './events/removeListener';\n\nimport { getValueWithIndex } from '../core/variables';\n\nexport const hookTypes = {\n\t// DOM nodes\n\tonCreated: true,\n\tonAttached: true,\n\tonDetached: true,\n\tonWillUpdate: true,\n\tonDidUpdate: true,\n\t// Components\n\tonComponentWillMount: true,\n\tonComponentDidMount: true,\n\tonComponentWillUnmount: true,\n\tonComponentWillUpdate: true,\n\tonComponentDidUpdate: true\n};\n\n/**\n * Set HTML attributes on the template\n * @param{ HTMLElement } node\n * @param{ Object } attrs\n */\nexport function addDOMStaticAttributes(vNode, domNode, attrs) {\n\tlet styleUpdates;\n\n\tfor (const attrName in attrs) {\n\t\tconst attrVal = attrs[attrName];\n\n\t\tif (attrVal) {\n\t\t\tif (attrName === 'style') {\n\t\t\t\tstyleUpdates = attrVal;\n\t\t\t} else {\n\t\t\t\ttemplate.setProperty(vNode, domNode, attrName, attrVal, false);\n\t\t\t}\n\t\t}\n\t}\n\tif (styleUpdates) {\n\t\ttemplate.setCSS(vNode, domNode, styleUpdates, false);\n\t}\n}\n\n// A fast className setter as its the most common property to regularly change\nfunction fastPropSet(attrName, attrVal, domNode) {\n\tif (attrName === 'class' || attrName === 'className') {\n\t\tif (!isVoid(attrVal)) {\n\t\t\tif (isSVG) {\n\t\t\t\tdomNode.setAttribute('class', attrVal);\n\t\t\t} else {\n\t\t\t\tdomNode.className = attrVal;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t} else if (attrName === 'ref') {\n\n\t\tif (process.env.NODE_ENV === 'development') {\n\t\t\tif (isVoid(attrVal)) {\n\t\t\t\tthrow ('Inferno Error: Inferno.createRef() can not be null or undefined');\n\t\t\t}\n\t\t}\n\n\t\tif (typeof attrVal.element === 'undefined') {\n\t\t\tthrow Error('Inferno Error: Invalid ref object passed, expected InfernoDOM.createRef() object.');\n\t\t}\n\t\tattrVal.element = domNode;\n\t\treturn true;\n\t}\n\treturn false;\n}\n\nexport function handleHooks(item, dynamicAttrs, domNode, hookEvent) {\n\tconst event = dynamicAttrs[hookEvent];\n\tif (event !== undefined) {\n\t\tconst hookCallback = getValueWithIndex(item, event);\n\t\tif (hookCallback && typeof hookCallback === 'function') {\n\t\t\thookCallback(domNode);\n\t\t}\n\t}\n}\n\nexport function addDOMDynamicAttributes(item, domNode, dynamicAttrs, node, hookEvent) {\n\tlet styleUpdates;\n\n\tif (dynamicAttrs.index !== undefined) {\n\t\tdynamicAttrs = getValueWithIndex(item, dynamicAttrs.index);\n\t\taddDOMStaticAttributes(item, domNode, dynamicAttrs);\n\t\treturn;\n\t}\n\tfor (const attrName in dynamicAttrs) {\n\t\tif (!isVoid(attrName)) {\n\t\t\tif (hookEvent && hookTypes[attrName]) {\n\t\t\t\thandleHooks(item, dynamicAttrs, domNode, hookEvent);\n\t\t\t} else {\n\t\t\t\tconst attrVal = getValueWithIndex(item, dynamicAttrs[attrName]);\n\n\t\t\t\tif (attrVal !== undefined) {\n\t\t\t\t\tif (attrName === 'style') {\n\t\t\t\t\t\tstyleUpdates = attrVal;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (fastPropSet(attrName, attrVal, domNode) === false) {\n\t\t\t\t\t\t\tif (eventMapping[attrName]) {\n\t\t\t\t\t\t\t\taddListener(item, domNode, eventMapping[attrName], attrVal);\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\ttemplate.setProperty(null, domNode, attrName, attrVal, true);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\tif (styleUpdates) {\n\t\ttemplate.setCSS(item, domNode, styleUpdates, true);\n\t}\n}\n\nexport function clearListeners(item, domNode, dynamicAttrs) {\n\tfor (const attrName in dynamicAttrs) {\n\t\tif (!hookTypes[attrName]) {\n\t\t\tconst attrVal = getValueWithIndex(item, dynamicAttrs[attrName]);\n\n\t\t\tif (attrVal !== undefined && eventMapping[attrName]) {\n\t\t\t\tremoveListener(item, domNode, eventMapping[attrName], attrVal);\n\t\t\t}\n\t\t}\n\t}\n}\n\n/**\n * NOTE!! This function is probably the single most\n * critical path for performance optimization.\n */\nexport function updateDOMDynamicAttributes(lastItem, nextItem, domNode, dynamicAttrs, hookEvent) {\n\tif (dynamicAttrs.index !== undefined) {\n\t\tconst nextDynamicAttrs = getValueWithIndex(nextItem, dynamicAttrs.index);\n\n\t\tif (isVoid(nextDynamicAttrs)) {\n\t\t\tconst lastDynamicAttrs = getValueWithIndex(lastItem, dynamicAttrs.index);\n\n\t\t\tfor (let attrName in lastDynamicAttrs) {\n\t\t\t\tif (hookEvent && hookTypes[attrName]) {\n\t\t\t\t\thandleHooks(nextItem, dynamicAttrs, domNode, hookEvent);\n\t\t\t\t}\n\t\t\t\ttemplate.removeProperty(null, domNode, attrName, true);\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\t\taddDOMStaticAttributes(nextItem, domNode, nextDynamicAttrs);\n\t\treturn;\n\t}\n\n\t/**\n\t * TODO: Benchmark areas that can be improved with caching.\n\t */\n\tlet styleUpdates = {};\n\tlet styleName;\n\n\tfor (let attrName in dynamicAttrs) {\n\t\tconst lastAttrVal = getValueWithIndex(lastItem, dynamicAttrs[attrName]);\n\t\tconst nextAttrVal = getValueWithIndex(nextItem, dynamicAttrs[attrName]);\n\n\t\tif (!isVoid(lastAttrVal)) {\n\n\t\t\tif (isVoid(nextAttrVal)) {\n\t\t\t\tif (attrName === 'style') {\n\t\t\t\t\tfor (styleName in lastAttrVal) {\n\t\t\t\t\t\tif (!nextAttrVal || !nextAttrVal[styleName]) {\n\t\t\t\t\t\t\tstyleUpdates[styleName] = '';\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else if (eventMapping[attrName]) {\n\t\t\t\t\tremoveListener(nextItem, domNode, eventMapping[attrName], nextAttrVal);\n\t\t\t\t} else {\n\t\t\t\t\ttemplate.removeProperty(null, domNode, attrName, true);\n\t\t\t\t}\n\n\t\t\t} else if (attrName === 'style') {\n\n\t\t\t\t// Unset styles on `lastAttrVal` but not on `nextAttrVal`.\n\t\t\t\tfor (styleName in lastAttrVal) {\n\t\t\t\t\tif (lastAttrVal[styleName] &&\n\t\t\t\t\t\t(!nextAttrVal || !nextAttrVal[styleName])) {\n\t\t\t\t\t\tstyleUpdates[styleName] = '';\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// Update styles that changed since `lastAttrVal`.\n\t\t\t\tfor (styleName in nextAttrVal) {\n\t\t\t\t\tif (!nextAttrVal[styleName] || lastAttrVal[styleName] !== nextAttrVal[ styleName ]) {\n\t\t\t\t\t\tstyleUpdates[styleName] = nextAttrVal[styleName];\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t} else if (lastAttrVal !== nextAttrVal) {\n\n\t\t\t\tif (fastPropSet(attrName, nextAttrVal, domNode) === false) {\n\t\t\t\t\tif (eventMapping[attrName]) {\n\t\t\t\t\t\taddListener(nextItem, domNode, eventMapping[attrName], nextAttrVal); // TODO! Write tests for this!\n\t\t\t\t\t} else {\n\t\t\t\t\t\ttemplate.setProperty(null, domNode, attrName, nextAttrVal, true);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} else if (!isVoid(nextAttrVal)) {\n\t\t\tif (attrName === 'style') {\n\t\t\t\tstyleUpdates = nextAttrVal;\n\t\t\t} else {\n\n\t\t\t\tif (fastPropSet(attrName, nextAttrVal, domNode) === false) {\n\t\t\t\t\tif (eventMapping[attrName]) {\n\t\t\t\t\t\taddListener(nextItem, domNode, eventMapping[attrName], nextAttrVal);\n\t\t\t\t\t} else {\n\t\t\t\t\t\ttemplate.setProperty(null, domNode, attrName, nextAttrVal, true);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\tif (styleUpdates) {\n\t\ttemplate.setCSS(domNode, domNode, styleUpdates, true);\n\t}\n}\n","export default function recreateRootNode(lastItem, nextItem, node, treeLifecycle, context) {\n\tconst lastDomNode = lastItem.rootNode;\n\tconst lastTree = lastItem.tree.dom;\n\n\tlastTree.remove(lastItem, treeLifecycle);\n\n\tconst domNode = node.create(nextItem, treeLifecycle, context);\n\tconst parentNode = lastDomNode.parentNode;\n\n\tif (parentNode) {\n\t\tparentNode.replaceChild(domNode, lastDomNode);\n\t}\n\tnextItem.rootNode = domNode;\n\treturn domNode;\n}\n\nexport function recreateRootNodeFromHydration(hydrateNode, nextItem, node, treeLifecycle, context) {\n\tconst lastDomNode = hydrateNode;\n\n\tconst domNode = node.create(nextItem, treeLifecycle, context);\n\tconst parentNode = lastDomNode.parentNode;\n\n\tif (parentNode) {\n\t\tparentNode.replaceChild(domNode, lastDomNode);\n\t}\n\tnextItem.rootNode = domNode;\n\treturn domNode;\n}\n","import isVoid from '../../util/isVoid';\nimport isStringOrNumber from '../../util/isStringOrNumber';\nimport { recycle } from '../recycling';\nimport { getValueWithIndex } from '../../core/variables';\nimport { addDOMDynamicAttributes, updateDOMDynamicAttributes, clearListeners, handleHooks } from '../addAttributes';\nimport recreateRootNode from '../recreateRootNode';\n\nexport default function createRootNodeWithDynamicText(templateNode, valueIndex, dynamicAttrs, recyclingEnabled) {\n\tconst node = {\n\t\tpool: [],\n\t\tkeyedPool: [],\n\t\toverrideItem: null,\n\t\tcreate(item) {\n\t\t\tlet domNode;\n\n\t\t\tif (recyclingEnabled) {\n\t\t\t\tdomNode = recycle(node, item);\n\t\t\t\tif (domNode) {\n\t\t\t\t\treturn domNode;\n\t\t\t\t}\n\t\t\t}\n\t\t\tdomNode = templateNode.cloneNode(false);\n\t\t\tconst value = getValueWithIndex(item, valueIndex);\n\n\t\t\tif (!isVoid(value)) {\n\t\t\t\tif (process.env.NODE_ENV !== 'production') {\n\t\t\t\t\tif (!isStringOrNumber(value)) {\n\t\t\t\t\t\tthrow Error('Inferno Error: Template nodes with TEXT must only have a StringLiteral or NumericLiteral as a value, this is intended for low-level optimisation purposes.');\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (value === '') {\n\t\t\t\t\tdomNode.appendChild(document.createTextNode(''));\n\t\t\t\t} else {\n\t\t\t\t\tdomNode.textContent = value;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (dynamicAttrs) {\n\t\t\t\taddDOMDynamicAttributes(item, domNode, dynamicAttrs, node, 'created');\n\t\t\t}\n\t\t\titem.rootNode = domNode;\n\t\t\treturn domNode;\n\t\t},\n\t\tupdate(lastItem, nextItem, treeLifecycle) {\n\t\t\tif (node !== lastItem.tree.dom) {\n\t\t\t\trecreateRootNode(lastItem, nextItem, node, treeLifecycle);\n\t\t\t} else {\n\t\t\t\tconst domNode = lastItem.rootNode;\n\n\t\t\t\tnextItem.id = lastItem.id;\n\t\t\t\tnextItem.rootNode = domNode;\n\t\t\t\tconst nextValue = getValueWithIndex(nextItem, valueIndex);\n\t\t\t\tconst lastValue = getValueWithIndex(lastItem, valueIndex);\n\n\t\t\t\tif (dynamicAttrs && dynamicAttrs.hooks) {\n\t\t\t\t\thandleHooks(nextItem, dynamicAttrs, domNode, 'beforeUpdate');\n\t\t\t\t}\n\t\t\t\tif (nextValue !== lastValue) {\n\t\t\t\t\tif (isVoid(nextValue)) {\n\t\t\t\t\t\tif (isVoid(lastValue)) {\n\t\t\t\t\t\t\tdomNode.firstChild.nodeValue = '';\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tdomNode.textContent = '';\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (process.env.NODE_ENV !== 'production') {\n\t\t\t\t\t\t\tif (!isStringOrNumber(nextValue)) {\n\t\t\t\t\t\t\t\tthrow Error('Inferno Error: Template nodes with TEXT must only have a StringLiteral or NumericLiteral as a value, this is intended for low-level optimisation purposes.');\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif (isVoid(lastValue)) {\n\t\t\t\t\t\t\tdomNode.textContent = nextValue;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tdomNode.firstChild.nodeValue = nextValue;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (dynamicAttrs) {\n\t\t\t\t\tupdateDOMDynamicAttributes(lastItem, nextItem, domNode, dynamicAttrs, null);\n\t\t\t\t}\n\t\t\t\tif (dynamicAttrs && dynamicAttrs.hooks) {\n\t\t\t\t\thandleHooks(nextItem, dynamicAttrs, domNode, 'afterUpdate');\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\tremove(item) {\n\t\t\tif (dynamicAttrs) {\n\t\t\t\tconst domNode = item.rootNode;\n\n\t\t\t\tclearListeners(item, item.rootNode, dynamicAttrs);\n\t\t\t\tif (dynamicAttrs.hooks) {\n\t\t\t\t\thandleHooks(item, dynamicAttrs, domNode, 'detached');\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t};\n\n\treturn node;\n}\n","import isVoid from '../../util/isVoid';\nimport isStringOrNumber from '../../util/isStringOrNumber';\nimport { getValueWithIndex } from '../../core/variables';\nimport { addDOMDynamicAttributes, updateDOMDynamicAttributes, clearListeners } from '../addAttributes';\n\nconst errorMsg = 'Inferno Error: Template nodes with TEXT must only have a StringLiteral or NumericLiteral as a value, this is intended for low-level optimisation purposes.';\n\nexport default function createNodeWithDynamicText(templateNode, valueIndex, dynamicAttrs) {\n\tconst domNodeMap = {};\n\tconst node = {\n\t\toverrideItem: null,\n\t\tcreate(item) {\n\t\t\tconst domNode = templateNode.cloneNode(false);\n\t\t\tconst value = getValueWithIndex(item, valueIndex);\n\n\t\t\tif (!isVoid(value)) {\n\t\t\t\tif (process.env.NODE_ENV !== 'production') {\n\t\t\t\t\tif (!isStringOrNumber(value)) {\n\t\t\t\t\t\tthrow Error(errorMsg);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (value === '') {\n\t\t\t\t\tdomNode.appendChild(document.createTextNode(''));\n\t\t\t\t} else {\n\t\t\t\t\tdomNode.textContent = value;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (dynamicAttrs) {\n\t\t\t\taddDOMDynamicAttributes(item, domNode, dynamicAttrs, null);\n\t\t\t}\n\t\t\tdomNodeMap[item.id] = domNode;\n\t\t\treturn domNode;\n\t\t},\n\t\tupdate(lastItem, nextItem) {\n\t\t\tconst domNode = domNodeMap[lastItem.id];\n\t\t\tconst nextValue = getValueWithIndex(nextItem, valueIndex);\n\t\t\tconst lastValue = getValueWithIndex(lastItem, valueIndex);\n\n\t\t\tif (nextValue !== lastValue) {\n\t\t\t\tif (isVoid(nextValue)) {\n\t\t\t\t\tif (isVoid(lastValue)) {\n\t\t\t\t\t\tdomNode.firstChild.nodeValue = '';\n\t\t\t\t\t} else {\n\t\t\t\t\t\tdomNode.textContent = '';\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif (process.env.NODE_ENV !== 'production') {\n\t\t\t\t\t\tif (!isStringOrNumber(nextValue)) {\n\t\t\t\t\t\t\tthrow Error(errorMsg);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (isVoid(lastValue)) {\n\t\t\t\t\t\tdomNode.textContent = nextValue;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tdomNode.firstChild.nodeValue = nextValue;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (dynamicAttrs) {\n\t\t\t\tupdateDOMDynamicAttributes(lastItem, nextItem, domNode, dynamicAttrs);\n\t\t\t}\n\t\t},\n\t\tremove(item) {\n\t\t\tconst domNode = domNodeMap[item.id];\n\n\t\t\tif (dynamicAttrs) {\n\t\t\t\tclearListeners(item, domNode, dynamicAttrs);\n\t\t\t}\n\t\t}\n\t};\n\n\treturn node;\n}\n","import { recycle } from '../recycling';\nimport { addDOMDynamicAttributes, updateDOMDynamicAttributes, clearListeners } from '../addAttributes';\nimport recreateRootNode from '../recreateRootNode';\n\nexport default function createRootNodeWithStaticChild(templateNode, dynamicAttrs, recyclingEnabled) {\n\tconst node = {\n\t\tpool: [],\n\t\tkeyedPool: [],\n\t\toverrideItem: null,\n\t\tcreate(item) {\n\t\t\tlet domNode;\n\n\t\t\tif (recyclingEnabled) {\n\t\t\t\tdomNode = recycle(node, item);\n\t\t\t\tif (domNode) {\n\t\t\t\t\treturn domNode;\n\t\t\t\t}\n\t\t\t}\n\t\t\tdomNode = templateNode.cloneNode(true);\n\t\t\tif (dynamicAttrs) {\n\t\t\t\taddDOMDynamicAttributes(item, domNode, dynamicAttrs, node);\n\t\t\t}\n\t\t\titem.rootNode = domNode;\n\t\t\treturn domNode;\n\t\t},\n\t\tupdate(lastItem, nextItem, treeLifecycle) {\n\t\t\tif (node !== lastItem.tree.dom) {\n\t\t\t\trecreateRootNode(lastItem, nextItem, node, treeLifecycle);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tconst domNode = lastItem.rootNode;\n\n\t\t\tnextItem.rootNode = domNode;\n\t\t\tnextItem.id = lastItem.id;\n\t\t\tif (dynamicAttrs) {\n\t\t\t\tupdateDOMDynamicAttributes(lastItem, nextItem, domNode, dynamicAttrs);\n\t\t\t}\n\t\t},\n\t\tremove(item) {\n\t\t\tif (dynamicAttrs) {\n\t\t\t\tclearListeners(item, item.rootNode, dynamicAttrs);\n\t\t\t}\n\t\t}\n\t};\n\n\treturn node;\n}\n","import { addDOMDynamicAttributes, updateDOMDynamicAttributes, clearListeners } from '../addAttributes';\n\nexport default function createNodeWithStaticChild(templateNode, dynamicAttrs) {\n\tconst domNodeMap = {};\n\tconst node = {\n\t\toverrideItem: null,\n\t\tcreate(item) {\n\t\t\tconst domNode = templateNode.cloneNode(true);\n\n\t\t\tif (dynamicAttrs) {\n\t\t\t\taddDOMDynamicAttributes(item, domNode, dynamicAttrs, null);\n\t\t\t}\n\t\t\tdomNodeMap[item.id] = domNode;\n\t\t\treturn domNode;\n\t\t},\n\t\tupdate(lastItem, nextItem) {\n\t\t\tconst domNode = domNodeMap[lastItem.id];\n\n\t\t\tif (dynamicAttrs) {\n\t\t\t\tupdateDOMDynamicAttributes(lastItem, nextItem, domNode, dynamicAttrs);\n\t\t\t}\n\t\t},\n\t\tremove(item) {\n\t\t\tconst domNode = domNodeMap[item.id];\n\n\t\t\tif (dynamicAttrs) {\n\t\t\t\tclearListeners(item, domNode, dynamicAttrs);\n\t\t\t}\n\t\t}\n\t};\n\n\treturn node;\n}\n","import isStringOrNumber from '../util/isStringOrNumber';\n\nexport default function updateAndAppendDynamicChildren(domNode, nextValue) {\n\n\tfor (let i = 0; i < nextValue.length; i++) {\n\t\tif (isStringOrNumber(nextValue[i])) {\n\t\t\tdomNode.appendChild(document.createTextNode(nextValue[i]));\n\t\t} else {\n\t\t\t// Do nothing for now\n\t\t}\n\t}\n}","function appendText(domNode, value) {\n\tconst firstChild = domNode.firstChild;\n\tif (firstChild) {\n\t\tfirstChild.nodeValue = value;\n\t} else {\n\t\tdomNode.textContent = value;\n\t}\n}\nexport default appendText;","export default function removeChild(domNode) {\n\tconst firstChild = domNode.firstChild;\n\tif (firstChild) {\n\t\tdomNode.removeChild(firstChild);\n\t}\n}","export default function replaceChild(domNode, childNode) {\n\tconst replaceNode = domNode.firstChild;\n\n\tif (replaceNode) {\n\t\tdomNode.replaceChild(childNode, domNode.firstChild);\n\t} else {\n\t\tdomNode.appendChild(childNode);\n\t}\n}","import isVoid from '../util/isVoid';\nimport { getValueWithIndex, getTypeFromValue, ValueTypes } from '../core/variables';\nimport isArray from '../util/isArray';\nimport isStringOrNumber from '../util/isStringOrNumber';\nimport { isRecyclingEnabled, pool } from './recycling';\n\nconst recyclingEnabled = isRecyclingEnabled();\nconst infernoBadTemplate = 'Inferno Error: A valid template node must be returned. You may have returned undefined, an array or some other invalid object.';\n\nexport function updateKeyed(items, oldItems, parentNode, parentNextNode, treeLifecycle, context) {\n\tlet stop = false;\n\tlet startIndex = 0;\n\tlet oldStartIndex = 0;\n\n\tconst itemsLength = items.length;\n\tconst oldItemsLength = oldItems.length;\n\n\tlet startItem = itemsLength > 0 && items[startIndex];\n\n\t// Edge case! In cases where someone try to update from [null] to [null], 'startitem' will be null.\n\t// Also in cases where someone try to update from [{}] to [{}] (empty object to empty object)\n\t// We solve that with avoiding going into the iteration loop.\n\tif (isVoid(startItem) && (isVoid(startItem.tree))) {\n\t\treturn;\n\t}\n\n\t// TODO only if there are no other children\n\tif (itemsLength === 0 && oldItemsLength >= 5) {\n\t\tif (recyclingEnabled) {\n\t\t\tfor (let i = 0; i < oldItemsLength; i++) {\n\t\t\t\tpool(oldItems[i]);\n\t\t\t}\n\t\t}\n\t\tparentNode.textContent = '';\n\t\treturn;\n\t}\n\n\tlet endIndex = itemsLength - 1;\n\tlet oldEndIndex = oldItemsLength - 1;\n\tlet oldStartItem = oldItemsLength > 0 && oldItems[oldStartIndex];\n\tlet endItem;\n\tlet oldEndItem;\n\tlet nextNode;\n\tlet oldItem;\n\tlet item;\n\n\t// TODO don't read key too often\n\touter: while (!stop && startIndex <= endIndex && oldStartIndex <= oldEndIndex) {\n\t\tstop = true;\n\t\twhile (startItem.key === oldStartItem.key) {\n\t\t\tstartItem.tree.dom.update(oldStartItem, startItem, treeLifecycle, context);\n\t\t\tstartIndex++;\n\t\t\toldStartIndex++;\n\t\t\tif (startIndex > endIndex || oldStartIndex > oldEndIndex) {\n\t\t\t\tbreak outer;\n\t\t\t} else {\n\t\t\t\tstartItem = items[startIndex];\n\t\t\t\toldStartItem = oldItems[oldStartIndex];\n\t\t\t\tstop = false;\n\t\t\t}\n\t\t}\n\t\tendItem = items[endIndex];\n\t\toldEndItem = oldItems[oldEndIndex];\n\t\twhile (endItem.key === oldEndItem.key) {\n\t\t\tendItem.tree.dom.update(oldEndItem, endItem, treeLifecycle, context);\n\t\t\tendIndex--;\n\t\t\toldEndIndex--;\n\t\t\tif (startIndex > endIndex || oldStartIndex > oldEndIndex) {\n\t\t\t\tbreak outer;\n\t\t\t} else {\n\t\t\t\tendItem = items[endIndex];\n\t\t\t\toldEndItem = oldItems[oldEndIndex];\n\t\t\t\tstop = false;\n\t\t\t}\n\t\t}\n\t\twhile (endItem.key === oldStartItem.key) {\n\t\t\tnextNode = (endIndex + 1 < itemsLength) ? items[endIndex + 1].rootNode : parentNextNode;\n\t\t\tendItem.tree.dom.update(oldStartItem, endItem, treeLifecycle, context);\n\t\t\tinsertOrAppend(parentNode, endItem.rootNode, nextNode);\n\t\t\tendIndex--;\n\t\t\toldStartIndex++;\n\t\t\tif (startIndex > endIndex || oldStartIndex > oldEndIndex) {\n\t\t\t\tbreak outer;\n\t\t\t} else {\n\t\t\t\tendItem = items[endIndex];\n\t\t\t\toldStartItem = oldItems[oldStartIndex];\n\t\t\t\tstop = false;\n\t\t\t}\n\t\t}\n\t\twhile (startItem.key === oldEndItem.key) {\n\t\t\tnextNode = oldItems[oldStartIndex].rootNode;\n\t\t\tstartItem.tree.dom.update(oldEndItem, startItem, treeLifecycle, context);\n\t\t\tinsertOrAppend(parentNode, startItem.rootNode, nextNode);\n\t\t\tstartIndex++;\n\t\t\toldEndIndex--;\n\t\t\tif (startIndex > endIndex || oldStartIndex > oldEndIndex) {\n\t\t\t\tbreak outer;\n\t\t\t} else {\n\t\t\t\tstartItem = items[startIndex];\n\t\t\t\toldEndItem = oldItems[oldEndIndex];\n\t\t\t\tstop = false;\n\t\t\t}\n\t\t}\n\t}\n\n\tif (oldStartIndex > oldEndIndex) {\n\t\tif (startIndex <= endIndex) {\n\t\t\tnextNode = (endIndex + 1 < itemsLength) ? items[endIndex + 1].rootNode : parentNextNode;\n\t\t\tfor (; startIndex <= endIndex; startIndex++) {\n\t\t\t\titem = items[startIndex];\n\t\t\t\tinsertOrAppend(parentNode, item.tree.dom.create(item, treeLifecycle, context), nextNode);\n\t\t\t}\n\t\t}\n\t} else if (startIndex > endIndex) {\n\t\tfor (; oldStartIndex <= oldEndIndex; oldStartIndex++) {\n\t\t\toldItem = oldItems[oldStartIndex];\n\t\t\tremove(oldItem, parentNode);\n\t\t}\n\t} else {\n\t\tconst oldItemsMap = {};\n\t\tlet oldNextItem = (oldEndIndex + 1 < oldItemsLength) ? oldItems[oldEndIndex + 1] : null;\n\n\t\tfor (let i = oldEndIndex; i >= oldStartIndex; i--) {\n\t\t\toldItem = oldItems[i];\n\t\t\toldItem.nextItem = oldNextItem;\n\t\t\toldItemsMap[oldItem.key] = oldItem;\n\t\t\toldNextItem = oldItem;\n\t\t}\n\t\tlet nextItem = (endIndex + 1 < itemsLength) ? items[endIndex + 1] : null;\n\n\t\tfor (let i = endIndex; i >= startIndex; i--) {\n\t\t\titem = items[i];\n\t\t\tconst key = item.key;\n\n\t\t\toldItem = oldItemsMap[key];\n\t\t\tif (oldItem) {\n\t\t\t\toldItemsMap[key] = null;\n\t\t\t\toldNextItem = oldItem.nextItem;\n\n\t\t\t\titem.tree.dom.update(oldItem, item, treeLifecycle, context);\n\n\t\t\t\t/* eslint eqeqeq:0 */\n\t\t\t\t// TODO optimise\n\t\t\t\tif (item.rootNode.nextSibling != (nextItem && nextItem.rootNode)) {\n\t\t\t\t\tnextNode = (nextItem && nextItem.rootNode) || parentNextNode;\n\t\t\t\t\tinsertOrAppend(parentNode, item.rootNode, nextNode);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tnextNode = (nextItem && nextItem.rootNode) || parentNextNode;\n\t\t\t\tinsertOrAppend(parentNode, item.tree.dom.create(item, treeLifecycle, context), nextNode);\n\t\t\t}\n\t\t\tnextItem = item;\n\t\t}\n\t\tfor (let i = oldStartIndex; i <= oldEndIndex; i++) {\n\t\t\toldItem = oldItems[i];\n\t\t\tif (oldItemsMap[oldItem.key] !== null) {\n\t\t\t\toldItem = oldItems[oldStartIndex];\n\t\t\t\tremove(item, parentNode);\n\t\t\t}\n\t\t}\n\t}\n}\n\n// TODO can we improve performance here?\nexport function updateNonKeyed(items, oldItems, domNodeList, parentNode, parentNextNode, treeLifecycle, context) {\n\n\tlet itemsLength;\n\t// We can't calculate length of 0 in the cases either items or oldItems is 0.\n\t// In this cases we need workaround\n\tif (items && oldItems) {\n\t\titemsLength = Math.max(items.length, oldItems.length);\n\t} else if (items) {\n\t\titemsLength = items = itemsLength;\n\t} else if (oldItems) {\n\t\titemsLength = oldItems = itemsLength;\n\t}\n\n\tfor (let i = 0; i < itemsLength; i++) {\n\t\tconst item = items[i];\n\t\tconst oldItem = oldItems[i];\n\t\tif (item !== oldItem) {\n\t\t\tif (!isVoid(item)) {\n\n\t\t\t\tif (!isVoid(oldItem)) {\n\t\t\t\t\tif (isStringOrNumber(item)) {\n\n\t\t\t\t\t\tlet domNode = domNodeList[i];\n\n\t\t\t\t\t\tif (domNode) {\n\t\t\t\t\t\t\tdomNode.nodeValue = item;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t} else if (typeof item === 'object') {\n\n\t\t\t\t\t\titem.tree.dom.update(oldItem, item, treeLifecycle, context);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif (isStringOrNumber(item)) {\n\t\t\t\t\t\tconst childNode = document.createTextNode(item);\n\n\t\t\t\t\t\tdomNodeList[i] = childNode;\n\t\t\t\t\t\tinsertOrAppend(parentNode, childNode, parentNextNode);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\n\t\t\t\tif (domNodeList[i]) {\n\t\t\t\t\tparentNode.removeChild(domNodeList[i]);\n\t\t\t\t\tdomNodeList.splice(i, 1);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n\nexport function insertOrAppend(parentNode, newNode, nextNode) {\n\tif (nextNode) {\n\t\tparentNode.insertBefore(newNode, nextNode);\n\t} else {\n\t\tparentNode.appendChild(newNode);\n\t}\n}\n\nexport function remove(item, parentNode) {\n\tconst rootNode = item.rootNode;\n\n\tif (isVoid(rootNode) ||\n\t\t!(rootNode.nodeType)) {\n\t\treturn null;\n\t}\n\tif (rootNode === parentNode) {\n\t\tparentNode.innerHTML = '';\n\t} else {\n\t\tparentNode.removeChild(item.rootNode);\n\t\tif (recyclingEnabled) {\n\t\t\tpool(item);\n\t\t}\n\t}\n}\n\nexport function createVirtualList(value, item, childNodeList, treeLifecycle, context) {\n\tconst domNode = document.createDocumentFragment();\n\tlet keyedChildren = true;\n\n\tif (isVoid(value)) {\n\t\treturn;\n\t}\n\n\tfor (let i = 0; i < value.length; i++) {\n\t\tconst childNode = value[i];\n\t\tconst childType = getTypeFromValue(childNode);\n\t\tlet childDomNode;\n\n\t\tswitch (childType) {\n\t\t\tcase ValueTypes.TEXT:\n\t\t\t\tchildDomNode = document.createTextNode(childNode);\n\t\t\t\tchildNodeList.push(childDomNode);\n\t\t\t\tdomNode.appendChild(childDomNode);\n\t\t\t\tkeyedChildren = false;\n\t\t\t\tbreak;\n\t\t\tcase ValueTypes.TREE:\n\t\t\t\tkeyedChildren = false;\n\t\t\t\tchildDomNode = childNode.create(item, treeLifecycle, context);\n\t\t\t\tchildNodeList.push(childDomNode);\n\n\t\t\t\tif (process.env.NODE_ENV !== 'production') {\n\t\t\t\t\tif (childDomNode === undefined) {\n\t\t\t\t\t\tthrow Error('Inferno Error: Children must be provided as templates.');\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\tdomNode.appendChild(childDomNode);\n\t\t\t\tbreak;\n\t\t\tcase ValueTypes.FRAGMENT:\n\t\t\t\tif (childNode.key === undefined) {\n\t\t\t\t\tkeyedChildren = false;\n\t\t\t\t}\n\t\t\t\tchildDomNode = childNode.tree.dom.create(childNode, treeLifecycle, context);\n\t\t\t\tchildNodeList.push(childDomNode);\n\t\t\t\tdomNode.appendChild(childDomNode);\n\t\t\t\tbreak;\n\t\t\tcase ValueTypes.EMPTY_OBJECT:\n\t\t\t\tif (process.env.NODE_ENV !== 'production') {\n\t\t\t\t\tthrow Error(infernoBadTemplate);\n\t\t\t\t}\n\t\t\t\treturn;\n\t\t\tcase ValueTypes.FUNCTION:\n\t\t\t\tif (process.env.NODE_ENV !== 'production') {\n\t\t\t\t\tthrow Error(infernoBadTemplate);\n\t\t\t\t}\n\t\t\t\treturn;\n\t\t\tcase ValueTypes.ARRAY:\n\t\t\t\tif (process.env.NODE_ENV !== 'production') {\n\t\t\t\t\tthrow Error('Inferno Error: Deep nested arrays are not supported as a valid template values - e.g. [[[1, 2, 3]]]. Only shallow nested arrays are supported - e.g. [[1, 2, 3]].');\n\t\t\t\t}\n\t\t\t\treturn;\n\t\t}\n\t}\n\treturn { domNode, keyedChildren };\n}\n\nexport function updateVirtualList(lastValue, nextValue, childNodeList, domNode, nextDomNode, keyedChildren, treeLifecycle, context) {\n\tif (isVoid(lastValue)) {\n\t\treturn null;\n\t}\n\t// NOTE: if someone switches from keyed to non-keyed, the node order won't be right...\n\tif (isArray(lastValue)) {\n\t\tif (keyedChildren) {\n\t\t\tupdateKeyed(nextValue, lastValue, domNode, nextDomNode, treeLifecycle, context);\n\t\t} else {\n\t\t\tupdateNonKeyed(nextValue, lastValue, childNodeList, domNode, nextDomNode, treeLifecycle, context);\n\t\t}\n\t} else {\n\t\t// TODO\n\t}\n}\n","import isArray from '../../util/isArray';\nimport isVoid from '../../util/isVoid';\nimport updateAndAppendDynamicChildren from '../../shared/updateAndAppendDynamicChildren';\nimport appendText from '../../util/appendText';\nimport removeChild from '../../core/removeChild';\nimport replaceChild from '../../core/replaceChild';\nimport isStringOrNumber from '../../util/isStringOrNumber';\nimport { recycle } from '../recycling';\nimport { getValueWithIndex, removeValueTree } from '../../core/variables';\nimport { updateKeyed, updateNonKeyed } from '../domMutate';\nimport { addDOMDynamicAttributes, updateDOMDynamicAttributes, clearListeners } from '../addAttributes';\nimport recreateRootNode from '../recreateRootNode';\n\nexport default function createRootNodeWithDynamicChild(templateNode, valueIndex, dynamicAttrs, recyclingEnabled) {\n\tlet keyedChildren = true;\n\tlet childNodeList = [];\n\tconst node = {\n\t\tpool: [],\n\t\tkeyedPool: [],\n\t\toverrideItem: null,\n\t\tcreate(item, treeLifecycle, context) {\n\t\t\tlet domNode;\n\n\t\t\tif (recyclingEnabled) {\n\t\t\t\tdomNode = recycle(node, item, treeLifecycle, context);\n\t\t\t\tif (domNode) {\n\t\t\t\t\treturn domNode;\n\t\t\t\t}\n\t\t\t}\n\t\t\tdomNode = templateNode.cloneNode(false);\n\n\t\t\tconst value = getValueWithIndex(item, valueIndex);\n\n\t\t\tif (!isVoid(value)) {\n\t\t\t\tif (isArray(value)) {\n\t\t\t\t\tfor (let i = 0; i < value.length; i++) {\n\t\t\t\t\t\tconst childItem = value[i];\n\t\t\t\t\t\t// catches edge case where we e.g. have [null, null, null] as a starting point\n\t\t\t\t\t\tif (!isVoid(childItem) && typeof childItem === 'object') {\n\t\t\t\t\t\t\tconst tree = childItem && childItem.tree;\n\n\t\t\t\t\t\t\tif (tree) {\n\t\t\t\t\t\t\t\tconst childNode = childItem.tree.dom.create(childItem, treeLifecycle, context);\n\n\t\t\t\t\t\t\t\tif (childItem.key === undefined) {\n\t\t\t\t\t\t\t\t\tkeyedChildren = false;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tchildNodeList.push(childNode);\n\t\t\t\t\t\t\t\tdomNode.appendChild(childNode);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else if (isStringOrNumber(childItem)) {\n\t\t\t\t\t\t\tconst textNode = document.createTextNode(childItem);\n\n\t\t\t\t\t\t\tdomNode.appendChild(textNode);\n\t\t\t\t\t\t\tchildNodeList.push(textNode);\n\t\t\t\t\t\t\tkeyedChildren = false;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else if (typeof value === 'object') {\n\t\t\t\t\tconst tree = value && value.tree;\n\n\t\t\t\t\tif (tree) {\n\t\t\t\t\t\tdomNode.appendChild(value.tree.dom.create(value, treeLifecycle, context));\n\t\t\t\t\t}\n\n\t\t\t\t} else if (isStringOrNumber(value)) {\n\t\t\t\t\tdomNode.textContent = value;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (dynamicAttrs) {\n\t\t\t\taddDOMDynamicAttributes(item, domNode, dynamicAttrs, node);\n\t\t\t}\n\t\t\titem.rootNode = domNode;\n\t\t\treturn domNode;\n\t\t},\n\t\tupdate(lastItem, nextItem, treeLifecycle, context) {\n\t\t\tif (node !== lastItem.tree.dom) {\n\t\t\t\tchildNodeList = [];\n\t\t\t\trecreateRootNode(lastItem, nextItem, node, treeLifecycle, context);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tconst domNode = lastItem.rootNode;\n\n\t\t\tnextItem.rootNode = domNode;\n\t\t\tnextItem.id = lastItem.id;\n\t\t\tconst nextValue = getValueWithIndex(nextItem, valueIndex);\n\t\t\tconst lastValue = getValueWithIndex(lastItem, valueIndex);\n\n\t\t\tif (nextValue && isVoid(lastValue)) {\n\t\t\t\tif (typeof nextValue === 'object') {\n\t\t\t\t\tif (isArray(nextValue)) {\n\t\t\t\t\t\tupdateAndAppendDynamicChildren(domNode, nextValue);\n\t\t\t\t\t} else {\n\t\t\t\t\t\trecreateRootNode(lastItem, nextItem, node, treeLifecycle, context);\n\t\t\t\t\t}\n\n\t\t\t\t} else {\n\t\t\t\t\tdomNode.appendChild(document.createTextNode(nextValue));\n\t\t\t\t}\n\t\t\t} else if (lastValue && isVoid(nextValue)) {\n\t\t\t\tif (isArray(lastValue)) {\n\t\t\t\t\tfor (let i = 0; i < lastValue.length; i++) {\n\t\t\t\t\t\tif (!isVoid(domNode.childNodes[i])) {\n\t\t\t\t\t\t\tdomNode.removeChild(domNode.childNodes[i]);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tremoveChild(domNode);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tremoveChild(domNode);\n\t\t\t\t}\n\t\t\t} else if (nextValue !== lastValue) {\n\t\t\t\tif (isStringOrNumber(nextValue)) {\n\t\t\t\t\tappendText(domNode, nextValue);\n\t\t\t\t} else if (isVoid(nextValue)) {\n\t\t\t\t\tif (domNode !== null) {\n\t\t\t\t\t\treplaceChild(domNode, document.createTextNode(''));\n\t\t\t\t\t}\n\t\t\t\t\t// if we update from undefined, we will have an array with zero length.\n\t\t\t\t\t// If we check if it's an array, it will throw 'x' is undefined.\n\t\t\t\t} else if (isArray(nextValue)) {\n\t\t\t\t\tif (isArray(lastValue)) {\n\t\t\t\t\t\tif (keyedChildren) {\n\t\t\t\t\t\t\tupdateKeyed(nextValue, lastValue, domNode, null, treeLifecycle, context);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tupdateNonKeyed(nextValue, lastValue, childNodeList, domNode, null, treeLifecycle, context);\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tupdateNonKeyed(nextValue, [], childNodeList, domNode, null, treeLifecycle, context);\n\t\t\t\t\t}\n\t\t\t\t} else if (typeof nextValue === 'object') {\n\t\t\t\t\t// Sometimes 'nextValue' can be an empty array or nothing at all, then it will\n\t\t\t\t\t// throw ': nextValue.tree is undefined'.\n\t\t\t\t\tconst tree = nextValue && nextValue.tree;\n\t\t\t\t\tif (!isVoid(tree)) {\n\t\t\t\t\t\tif (!isVoid(lastValue)) {\n\t\t\t\t\t\t\t// If we update from 'null', there will be no 'tree', and the code will throw.\n\t\t\t\t\t\t\tconst oldTree = lastValue && lastValue.tree;\n\n\t\t\t\t\t\t\tif (!isVoid(oldTree)) {\n\t\t\t\t\t\t\t\ttree.dom.update(lastValue, nextValue, treeLifecycle, context);\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\trecreateRootNode(lastItem, nextItem, node, treeLifecycle, context);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\treplaceChild(domNode, tree.dom.create(nextValue, treeLifecycle, context));\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// Edge case! If we update from e.g object literal - {} - from a existing value, the\n\t\t\t\t\t\t// value will not be unset\n\t\t\t\t\t\tremoveChild(domNode);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (dynamicAttrs) {\n\t\t\t\tupdateDOMDynamicAttributes(lastItem, nextItem, domNode, dynamicAttrs);\n\t\t\t}\n\t\t},\n\t\tremove(item, treeLifecycle) {\n\t\t\tremoveValueTree(getValueWithIndex(item, valueIndex), treeLifecycle);\n\t\t\tif (dynamicAttrs) {\n\t\t\t\tclearListeners(item, item.rootNode, dynamicAttrs);\n\t\t\t}\n\t\t}\n\t};\n\n\treturn node;\n}\n","export default function recreateNode(lastDomNode, nextItem, node, treeLifecycle, context) {\n\tconst domNode = node.create(nextItem, treeLifecycle, context);\n\n\tlastDomNode.parentNode.replaceChild(domNode, lastDomNode);\n\t// TODO recycle old node\n}\n","import isArray from '../../util/isArray';\nimport isVoid from '../../util/isVoid';\nimport updateAndAppendDynamicChildren from '../../shared/updateAndAppendDynamicChildren';\nimport appendText from '../../util/appendText';\nimport recreateNode from '../recreateNode';\nimport isStringOrNumber from '../../util/isStringOrNumber';\nimport { getValueWithIndex, removeValueTree } from '../../core/variables';\nimport removeChild from '../../core/removeChild';\nimport { updateKeyed, updateNonKeyed } from '../domMutate';\nimport { addDOMDynamicAttributes, updateDOMDynamicAttributes, clearListeners } from '../addAttributes';\n\nexport default function createNodeWithDynamicChild(templateNode, valueIndex, dynamicAttrs) {\n\tlet keyedChildren = true;\n\tconst domNodeMap = {};\n\tconst childNodeList = [];\n\tconst node = {\n\t\toverrideItem: null,\n\t\tcreate(item, treeLifecycle, context) {\n\t\t\tconst domNode = templateNode.cloneNode(false);\n\t\t\tconst value = getValueWithIndex(item, valueIndex);\n\n\t\t\tif (!isVoid(value)) {\n\t\t\t\tif (isArray(value)) {\n\t\t\t\t\tfor (let i = 0; i < value.length; i++) {\n\t\t\t\t\t\tconst childItem = value[i];\n\t\t\t\t\t\t// catches edge case where we e.g. have [null, null, null] as a starting point\n\t\t\t\t\t\tif (!isVoid(childItem) && typeof childItem === 'object') {\n\n\t\t\t\t\t\t\tconst tree = childItem && childItem.tree;\n\n\t\t\t\t\t\t\tif (tree) {\n\t\t\t\t\t\t\t\tconst childNode = childItem.tree.dom.create(childItem, treeLifecycle, context);\n\n\t\t\t\t\t\t\t\tif (childItem.key === undefined) {\n\t\t\t\t\t\t\t\t\tkeyedChildren = false;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tchildNodeList.push(childNode);\n\t\t\t\t\t\t\t\tdomNode.appendChild(childNode);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else if (isStringOrNumber(childItem)) {\n\t\t\t\t\t\t\tconst textNode = document.createTextNode(childItem);\n\n\t\t\t\t\t\t\tdomNode.appendChild(textNode);\n\t\t\t\t\t\t\tchildNodeList.push(textNode);\n\t\t\t\t\t\t\tkeyedChildren = false;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else if (typeof value === 'object') {\n\n\t\t\t\t\tconst tree = value && value.tree;\n\n\t\t\t\t\tif (tree) {\n\t\t\t\t\t\tdomNode.appendChild(value.tree.dom.create(value, treeLifecycle, context));\n\t\t\t\t\t}\n\t\t\t\t} else if (isStringOrNumber(value)) {\n\t\t\t\t\tdomNode.textContent = value;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (dynamicAttrs) {\n\t\t\t\taddDOMDynamicAttributes(item, domNode, dynamicAttrs, null);\n\t\t\t}\n\t\t\tdomNodeMap[item.id] = domNode;\n\t\t\treturn domNode;\n\t\t},\n\t\tupdate(lastItem, nextItem, treeLifecycle, context) {\n\t\t\tconst domNode = domNodeMap[lastItem.id];\n\t\t\tconst nextValue = getValueWithIndex(nextItem, valueIndex);\n\t\t\tconst lastValue = getValueWithIndex(lastItem, valueIndex);\n\n\t\t\tif (nextValue && isVoid(lastValue)) {\n\n\t\t\t\tif (typeof nextValue === 'object') {\n\t\t\t\t\tif (isArray(nextValue)) {\n\t\t\t\t\t\tupdateAndAppendDynamicChildren(domNode, nextValue);\n\t\t\t\t\t} else {\n\t\t\t\t\t\trecreateNode(lastItem, nextItem, node, treeLifecycle, context);\n\t\t\t\t\t}\n\n\t\t\t\t} else {\n\t\t\t\t\tdomNode.appendChild(document.createTextNode(nextValue));\n\t\t\t\t}\n\t\t\t} else \tif (lastValue && isVoid(nextValue)) {\n\n\t\t\t\tif (isArray(lastValue)) {\n\n\t\t\t\t\tfor (let i = 0; i < lastValue.length; i++) {\n\n\t\t\t\t\t\tif (!isVoid(domNode.childNodes[i])) {\n\t\t\t\t\t\t\tdomNode.removeChild(domNode.childNodes[i]);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tremoveChild(domNode);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tremoveChild(domNode);\n\t\t\t\t}\n\t\t\t} else if (nextValue !== lastValue) {\n\t\t\t\tif (isStringOrNumber(nextValue)) {\n\t\t\t\t\tappendText(domNode, nextValue);\n\t\t\t\t} else if (isVoid(nextValue)) {\n\t\t\t\t\tremoveChild(domNode);\n\t\t\t\t\t// if we update from undefined, we will have an array with zero length.\n\t\t\t\t\t// If we check if it's an array, it will throw 'x' is undefined.\n\t\t\t\t} else if (nextValue.length !== 0 && isArray(nextValue)) {\n\t\t\t\t\tif (lastValue && isArray(lastValue)) {\n\t\t\t\t\t\tif (keyedChildren) {\n\t\t\t\t\t\t\tupdateKeyed(nextValue, lastValue, domNode, null, treeLifecycle, context);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tupdateNonKeyed(nextValue, lastValue, childNodeList, domNode, null, treeLifecycle, context);\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// lastValue is undefined, so set it to an empty array and update\n\t\t\t\t\t\tupdateNonKeyed(nextValue, [], childNodeList, domNode, null, treeLifecycle, context);\n\t\t\t\t\t}\n\t\t\t\t} else if (typeof nextValue === 'object') {\n\t\t\t\t\t// Sometimes 'nextValue' can be an empty array or nothing at all, then it will\n\t\t\t\t\t// throw ': nextValue.tree is undefined'.\n\t\t\t\t\tconst tree = nextValue && nextValue.tree;\n\n\t\t\t\t\tif (!isVoid(tree)) {\n\n\t\t\t\t\t\t// If we update from 'null', there will be no 'tree', and the code will throw.\n\t\t\t\t\t\tconst tree = lastValue && lastValue.tree;\n\n\t\t\t\t\t\tif (!isVoid(tree)) {\n\t\t\t\t\t\t\ttree.dom.update(lastValue, nextValue, treeLifecycle, context);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t// TODO implement\n\t\t\t\t\t\t\t// NOTE There will be no 'tree' if we update from a null value\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// Edge case! If we update from e.g object literal - {} - from a existing value, the\n\t\t\t\t\t\t// value will not be unset\n\t\t\t\t\t\tremoveChild(domNode);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (dynamicAttrs) {\n\t\t\t\tupdateDOMDynamicAttributes(lastItem, nextItem, domNode, dynamicAttrs);\n\t\t\t}\n\t\t},\n\t\tremove(item, treeLifecycle) {\n\t\t\tconst domNode = domNodeMap[item.id];\n\n\t\t\tremoveValueTree(getValueWithIndex(item, valueIndex), treeLifecycle);\n\t\t\tif (dynamicAttrs) {\n\t\t\t\tclearListeners(item, domNode, dynamicAttrs);\n\t\t\t}\n\t\t}\n\t};\n\n\treturn node;\n}\n","import isVoid from '../util/isVoid';\nimport isArray from '../util/isArray';\n\nexport default function addShapeChildren(domNode, subTreeForChildren, item, treeLifecycle, context) {\n\n\tif (!isVoid(subTreeForChildren)) {\n\t\tif (isArray(subTreeForChildren)) {\n\t\t\tfor (let i = 0; i < subTreeForChildren.length; i++) {\n\t\t\t\tconst subTree = subTreeForChildren[i];\n\t\t\t\tconst childNode = subTree.create(item, treeLifecycle, context);\n\n\t\t\t\tdomNode.appendChild(childNode);\n\t\t\t}\n\t\t} else if (typeof subTreeForChildren === 'object') {\n\t\t\tdomNode.appendChild(subTreeForChildren.create(item, treeLifecycle, context));\n\t\t}\n\t}\n}","import isArray from '../../util/isArray';\nimport isVoid from '../../util/isVoid';\nimport { recycle } from '../recycling';\nimport { addDOMDynamicAttributes, updateDOMDynamicAttributes, clearListeners } from '../addAttributes';\nimport recreateRootNode from '../recreateRootNode';\nimport addShapeChildren from '../../shared/addShapeChildren';\n\nexport default function createRootNodeWithDynamicSubTreeForChildren(templateNode, subTreeForChildren, dynamicAttrs, recyclingEnabled) {\n\tconst node = {\n\t\tpool: [],\n\t\tkeyedPool: [],\n\t\toverrideItem: null,\n\t\tcreate(item, treeLifecycle, context) {\n\t\t\tlet domNode;\n\n\t\t\tif (recyclingEnabled) {\n\t\t\t\tdomNode = recycle(node, item, treeLifecycle, context);\n\t\t\t\tif (domNode) {\n\t\t\t\t\treturn domNode;\n\t\t\t\t}\n\t\t\t}\n\t\t\tdomNode = templateNode.cloneNode(false);\n\n\t\t\taddShapeChildren(domNode, subTreeForChildren, item, treeLifecycle, context);\n\n\t\t\tif (dynamicAttrs) {\n\t\t\t\taddDOMDynamicAttributes(item, domNode, dynamicAttrs, node);\n\t\t\t}\n\t\t\titem.rootNode = domNode;\n\t\t\treturn domNode;\n\t\t},\n\t\tupdate(lastItem, nextItem, treeLifecycle, context) {\n\t\t\tnextItem.id = lastItem.id;\n\n\t\t\tif (node !== lastItem.tree.dom) {\n\t\t\t\tconst newDomNode = recreateRootNode(lastItem, nextItem, node, treeLifecycle, context);\n\n\t\t\t\tnextItem.rootNode = newDomNode;\n\t\t\t\treturn newDomNode;\n\t\t\t}\n\t\t\tconst domNode = lastItem.rootNode;\n\n\t\t\tnextItem.rootNode = domNode;\n\t\t\tif (!isVoid(subTreeForChildren)) {\n\t\t\t\tif (isArray(subTreeForChildren)) {\n\t\t\t\t\tfor (let i = 0; i < subTreeForChildren.length; i++) {\n\t\t\t\t\t\tconst subTree = subTreeForChildren[i];\n\n\t\t\t\t\t\tsubTree.update(lastItem, nextItem, treeLifecycle, context);\n\t\t\t\t\t}\n\t\t\t\t} else if (typeof subTreeForChildren === 'object') {\n\t\t\t\t\tsubTreeForChildren.update(lastItem, nextItem, treeLifecycle, context);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (dynamicAttrs) {\n\t\t\t\tupdateDOMDynamicAttributes(lastItem, nextItem, domNode, dynamicAttrs);\n\t\t\t}\n\t\t},\n\t\tremove(item, treeLifecycle) {\n\t\t\tif (!isVoid(subTreeForChildren)) {\n\t\t\t\tif (isArray(subTreeForChildren)) {\n\t\t\t\t\tfor (let i = 0; i < subTreeForChildren.length; i++) {\n\t\t\t\t\t\tconst subTree = subTreeForChildren[i];\n\n\t\t\t\t\t\tsubTree.remove(item, treeLifecycle);\n\t\t\t\t\t}\n\t\t\t\t} else if (typeof subTreeForChildren === 'object') {\n\t\t\t\t\tsubTreeForChildren.remove(item, treeLifecycle);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (dynamicAttrs) {\n\t\t\t\tclearListeners(item, item.rootNode, dynamicAttrs);\n\t\t\t}\n\t\t}\n\t};\n\n\treturn node;\n}\n","import isArray from '../../util/isArray';\nimport isVoid from '../../util/isVoid';\nimport addShapeChildren from '../../shared/addShapeChildren';\nimport replaceChild from '../../core/replaceChild';\nimport { addDOMDynamicAttributes, updateDOMDynamicAttributes, clearListeners } from '../addAttributes';\nimport recreateNode from '../recreateNode';\n\nexport default function createNodeWithDynamicSubTreeForChildren(templateNode, subTreeForChildren, dynamicAttrs) {\n\tconst domNodeMap = {};\n\tconst node = {\n\t\toverrideItem: null,\n\t\tcreate(item, treeLifecycle, context) {\n\t\t\tconst domNode = templateNode.cloneNode(false);\n\n\t\t\taddShapeChildren(domNode, subTreeForChildren, item, treeLifecycle, context);\n\t\t\tif (dynamicAttrs) {\n\t\t\t\taddDOMDynamicAttributes(item, domNode, dynamicAttrs, null);\n\t\t\t}\n\t\t\tdomNodeMap[item.id] = domNode;\n\t\t\treturn domNode;\n\t\t},\n\t\tupdate(lastItem, nextItem, treeLifecycle, context) {\n\t\t\tconst domNode = domNodeMap[lastItem.id];\n\n\t\t\tif (!isVoid(subTreeForChildren)) {\n\t\t\t\tif (isArray(subTreeForChildren)) {\n\t\t\t\t\tfor (let i = 0; i < subTreeForChildren.length; i++) {\n\t\t\t\t\t\tconst subTree = subTreeForChildren[i];\n\n\t\t\t\t\t\tsubTree.update(lastItem, nextItem, treeLifecycle, context);\n\t\t\t\t\t}\n\t\t\t\t} else if (typeof subTreeForChildren === 'object') {\n\t\t\t\t\tconst newDomNode = subTreeForChildren.update(lastItem, nextItem, treeLifecycle, context);\n\n\t\t\t\t\tif (newDomNode) {\n\t\t\t\t\t\treplaceChild(domNode, newDomNode);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (dynamicAttrs) {\n\t\t\t\tupdateDOMDynamicAttributes(lastItem, nextItem, domNode, dynamicAttrs);\n\t\t\t}\n\t\t},\n\t\tremove(item, treeLifecycle) {\n\t\t\tconst domNode = domNodeMap[item.id];\n\n\t\t\tif (!isVoid(subTreeForChildren)) {\n\t\t\t\tif (isArray(subTreeForChildren)) {\n\t\t\t\t\tfor (let i = 0; i < subTreeForChildren.length; i++) {\n\t\t\t\t\t\tconst subTree = subTreeForChildren[i];\n\n\t\t\t\t\t\tsubTree.remove(item, treeLifecycle);\n\t\t\t\t\t}\n\t\t\t\t} else if (typeof subTreeForChildren === 'object') {\n\t\t\t\t\tsubTreeForChildren.remove(item, treeLifecycle);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (dynamicAttrs) {\n\t\t\t\tclearListeners(item, domNode, dynamicAttrs);\n\t\t\t}\n\t\t}\n\t};\n\treturn node;\n}\n","import isVoid from '../../util/isVoid';\nimport { getValueWithIndex, getTypeFromValue, ValueTypes } from '../../core/variables';\nimport recreateNode from '../recreateNode';\nimport { createVirtualList, updateVirtualList } from '../domMutate';\n\nexport default function createDynamicNode(valueIndex) {\n\tconst domNodeMap = {};\n\tlet childNodeList = [];\n\tlet keyedChildren = true;\n\tlet nextDomNode;\n\tconst node = {\n\t\toverrideItem: null,\n\t\tcreate(item, treeLifecycle, context) {\n\t\t\tlet value = getValueWithIndex(item, valueIndex);\n\t\t\tlet domNode;\n\t\t\tconst type = getTypeFromValue(value);\n\n\t\t\tswitch (type) {\n\t\t\t\tcase ValueTypes.TEXT:\n\t\t\t\t\t// Testing the length property are actually faster than testing the\n\t\t\t\t\t// string against '', because the interpreter won't have to create a String\n\t\t\t\t\t// object from the string literal.\n\t\t\t\t\tif (isVoid(value) || value.length === 0) {\n\t\t\t\t\t\tvalue = '';\n\t\t\t\t\t}\n\t\t\t\t\tdomNode = document.createTextNode(value);\n\t\t\t\t\tbreak;\n\t\t\t\tcase ValueTypes.ARRAY:\n\t\t\t\t\tconst virtualList = createVirtualList(value, item, childNodeList, treeLifecycle, context);\n\t\t\t\t\tdomNode = virtualList.domNode;\n\t\t\t\t\tkeyedChildren = virtualList.keyedChildren;\n\t\t\t\t\ttreeLifecycle.addTreeSuccessListener(() => {\n\t\t\t\t\t\tif (childNodeList.length > 0) {\n\t\t\t\t\t\t\tnextDomNode = childNodeList[childNodeList.length - 1].nextSibling || null;\n\t\t\t\t\t\t\tdomNode = childNodeList[0].parentNode;\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t\tbreak;\n\t\t\t\tcase ValueTypes.TREE:\n\t\t\t\t\tdomNode = value.create(item, treeLifecycle, context);\n\t\t\t\t\tbreak;\n\t\t\t\tcase ValueTypes.EMPTY_OBJECT:\n\t\t\t\t\tif (process.env.NODE_ENV !== 'production') {\n\t\t\t\t\t\tthrow Error('Inferno Error: A valid template node must be returned. You may have returned undefined, an array or some other invalid object.');\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase ValueTypes.FUNCTION:\n\t\t\t\t\tif (process.env.NODE_ENV !== 'production') {\n\t\t\t\t\t\tthrow Error('Inferno Error: A valid template node must be returned. You may have returned undefined, an array or some other invalid object.');\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase ValueTypes.FRAGMENT:\n\t\t\t\t\tdomNode = value.tree.dom.create(value, treeLifecycle, context);\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\tdomNodeMap[item.id] = domNode;\n\t\t\treturn domNode;\n\t\t},\n\t\tupdate(lastItem, nextItem, treeLifecycle, context) {\n\t\t\tlet domNode = domNodeMap[lastItem.id];\n\t\t\tlet nextValue = getValueWithIndex(nextItem, valueIndex);\n\t\t\tconst lastValue = getValueWithIndex(lastItem, valueIndex);\n\n\t\t\tif (nextValue !== lastValue) {\n\t\t\t\tconst nextType = getTypeFromValue(nextValue);\n\t\t\t\tconst lastType = getTypeFromValue(lastValue);\n\n\t\t\t\tif (lastType !== nextType) {\n\t\t\t\t\trecreateNode(domNode, nextItem, node, treeLifecycle, context);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tswitch (nextType) {\n\t\t\t\t\tcase ValueTypes.TEXT:\n\t\t\t\t\t\t// Testing the length property are actually faster than testing the\n\t\t\t\t\t\t// string against '', because the interpreter won't have to create a String\n\t\t\t\t\t\t// object from the string literal.\n\t\t\t\t\t\tif (isVoid(nextValue) ||\n\t\t\t\t\t\t\tnextValue.length === 0) {\n\t\t\t\t\t\t\tnextValue = '';\n\t\t\t\t\t\t}\n\t\t\t\t\t\tdomNode.nodeValue = nextValue;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase ValueTypes.ARRAY:\n\t\t\t\t\t\tupdateVirtualList(lastValue, nextValue, childNodeList, domNode, nextDomNode, keyedChildren, treeLifecycle, context);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase ValueTypes.TREE:\n\t\t\t\t\t\t// TODO\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase ValueTypes.FRAGMENT:\n\t\t\t\t\t\tnextValue.tree.dom.update(lastValue, nextValue, treeLifecycle, context);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault: break;\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\tremove(item, treeLifecycle) {\n\t\t\tconst value = getValueWithIndex(item, valueIndex);\n\t\t\tconst type = getTypeFromValue(value);\n\n\t\t\tif (type === ValueTypes.TREE) {\n\t\t\t\tvalue.remove(item, treeLifecycle);\n\t\t\t} else if (type === ValueTypes.FRAGMENT) {\n\t\t\t\tvalue.tree.dom.remove(value, treeLifecycle);\n\t\t\t}\n\t\t}\n\t};\n\n\treturn node;\n}","/* eslint new-cap:0 */\nimport isVoid from '../../util/isVoid';\nimport { recycle } from '../recycling';\nimport { getValueWithIndex, getValueForProps } from '../../core/variables';\nimport recreateRootNode from '../recreateRootNode';\n\nlet updateComponent;\n\nconst global = global || (typeof window !== 'undefined' ? window : null);\n\nif (global && global.InfernoComponent) {\n\tupdateComponent = global.InfernoComponent.updateComponent;\n} else if (global && !global.InfernoComponent) {\n\ttry {\n\t\tupdateComponent = require('inferno-component').updateComponent;\n\t} catch (e) {\n\t\t// do nothing, this is fine, the person might be using stateless components\n\t}\n}\n\nexport default function createRootNodeWithComponent(componentIndex, props, recyclingEnabled) {\n\tlet currentItem;\n\tlet statelessRender;\n\tconst instanceMap = {};\n\tconst node = {\n\t\tpool: [],\n\t\tkeyedPool: [],\n\t\toverrideItem: null,\n\t\tcreate(item, treeLifecycle, context) {\n\t\t\tlet instance;\n\t\t\tlet domNode;\n\t\t\tlet toUseItem = item;\n\n\t\t\tif (node.overrideItem !== null) {\n\t\t\t\ttoUseItem = node.overrideItem;\n\t\t\t}\n\t\t\tif (recyclingEnabled) {\n\t\t\t\tdomNode = recycle(node, item, treeLifecycle, context);\n\t\t\t\tif (domNode) {\n\t\t\t\t\treturn domNode;\n\t\t\t\t}\n\t\t\t}\n\t\t\tconst Component = getValueWithIndex(toUseItem, componentIndex);\n\n\t\t\tcurrentItem = item;\n\t\t\tif (isVoid(Component)) {\n\t\t\t\t// bad component, make a text node\n\t\t\t\tdomNode = document.createTextNode('');\n\t\t\t\titem.rootNode = domNode;\n\t\t\t\tinstance = null;\n\t\t\t\treturn domNode;\n\t\t\t} else if (typeof Component === 'function') {\n\t\t\t\t// stateless component\n\t\t\t\tif (!Component.prototype.render) {\n\t\t\t\t\tconst nextRender = Component(getValueForProps(props, toUseItem), context);\n\n\t\t\t\t\tnextRender.parent = item;\n\t\t\t\t\tdomNode = nextRender.tree.dom.create(nextRender, treeLifecycle, context);\n\t\t\t\t\tstatelessRender = nextRender;\n\t\t\t\t\titem.rootNode = domNode;\n\t\t\t\t} else {\n\t\t\t\t\tinstance = new Component(getValueForProps(props, toUseItem));\n\t\t\t\t\tinstance.context = context;\n\t\t\t\t\tinstance.componentWillMount();\n\t\t\t\t\tconst nextRender = instance.render();\n\t\t\t\t\tconst childContext = instance.getChildContext();\n\t\t\t\t\tlet fragmentFirstChild;\n\n\t\t\t\t\tif (childContext) {\n\t\t\t\t\t\tcontext = { ...context, ...childContext };\n\t\t\t\t\t}\n\t\t\t\t\tnextRender.parent = item;\n\t\t\t\t\tdomNode = nextRender.tree.dom.create(nextRender, treeLifecycle, context);\n\t\t\t\t\titem.rootNode = domNode;\n\t\t\t\t\tinstance._lastRender = nextRender;\n\n\t\t\t\t\tif (domNode instanceof DocumentFragment) {\n\t\t\t\t\t\tfragmentFirstChild = domNode.childNodes[0];\n\t\t\t\t\t}\n\t\t\t\t\ttreeLifecycle.addTreeSuccessListener(() => {\n\t\t\t\t\t\tif (fragmentFirstChild) {\n\t\t\t\t\t\t\tdomNode = fragmentFirstChild.parentNode;\n\t\t\t\t\t\t\titem.rootNode = domNode;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tinstance.componentDidMount();\n\t\t\t\t\t});\n\t\t\t\t\tinstance.forceUpdate = () => {\n\t\t\t\t\t\tinstance.context = context;\n\t\t\t\t\t\tconst nextRender = instance.render.call(instance);\n\t\t\t\t\t\tconst childContext = instance.getChildContext();\n\n\t\t\t\t\t\tif (childContext) {\n\t\t\t\t\t\t\tcontext = { ...context, ...childContext };\n\t\t\t\t\t\t}\n\t\t\t\t\t\tnextRender.parent = currentItem;\n\t\t\t\t\t\tnextRender.tree.dom.update(instance._lastRender, nextRender, treeLifecycle, context);\n\t\t\t\t\t\tcurrentItem.rootNode = nextRender.rootNode;\n\t\t\t\t\t\tinstance._lastRender = nextRender;\n\t\t\t\t\t};\n\t\t\t\t}\n\t\t\t}\n\t\t\tinstanceMap[item.id] = instance;\n\t\t\treturn domNode;\n\t\t},\n\t\tupdate(lastItem, nextItem, treeLifecycle, context) {\n\t\t\tconst Component = getValueWithIndex(nextItem, componentIndex);\n\t\t\tconst instance = instanceMap[lastItem.id];\n\n\t\t\tnextItem.id = lastItem.id;\n\t\t\tcurrentItem = nextItem;\n\t\t\tif (!Component) {\n\t\t\t\trecreateRootNode(lastItem, nextItem, node, treeLifecycle, context);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (typeof Component === 'function') {\n\t\t\t\tif (!Component.prototype.render) {\n\t\t\t\t\tconst nextRender = Component(getValueForProps(props, nextItem), context);\n\n\t\t\t\t\tnextRender.parent = currentItem;\n\t\t\t\t\tif (!isVoid(statelessRender)) {\n\t\t\t\t\t\tconst newDomNode = nextRender.tree.dom.update(statelessRender || instance._lastRender, nextRender, treeLifecycle, context);\n\n\t\t\t\t\t\tif (newDomNode) {\n\t\t\t\t\t\t\tif (nextRender.rootNode.parentNode) {\n\t\t\t\t\t\t\t\tnextRender.rootNode.parentNode.replaceChild(newDomNode, nextRender.rootNode);\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tlastItem.rootNode.parentNode.replaceChild(newDomNode, lastItem.rootNode);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tcurrentItem.rootNode = newDomNode;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tconst newDomNode = nextRender.tree.dom.create(statelessRender, treeLifecycle, context);\n\n\t\t\t\t\t\t\tif (newDomNode) {\n\t\t\t\t\t\t\t\tif (nextRender.rootNode.parentNode) {\n\t\t\t\t\t\t\t\t\tnextRender.rootNode.parentNode.replaceChild(newDomNode, nextRender.rootNode);\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tlastItem.rootNode.parentNode.replaceChild(newDomNode, lastItem.rootNode);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tcurrentItem.rootNode = newDomNode;\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tcurrentItem.rootNode = nextRender.rootNode;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\trecreateRootNode(lastItem, nextItem, node, treeLifecycle, context);\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\n\t\t\t\t\tstatelessRender = nextRender;\n\t\t\t\t} else {\n\n\t\t\t\t\tif (!instance || node !== lastItem.tree.dom || Component !== instance.constructor) {\n\t\t\t\t\t\trecreateRootNode(lastItem, nextItem, node, treeLifecycle, context);\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\tconst domNode = lastItem.rootNode;\n\t\t\t\t\tconst prevProps = instance.props;\n\t\t\t\t\tconst prevState = instance.state;\n\t\t\t\t\tconst nextState = instance.state;\n\t\t\t\t\tconst nextProps = getValueForProps(props, nextItem);\n\n\t\t\t\t\tnextItem.rootNode = domNode;\n\t\t\t\t\tupdateComponent(instance, prevState, nextState, prevProps, nextProps, instance.forceUpdate);\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\tremove(item, treeLifecycle) {\n\t\t\tconst instance = instanceMap[item.id];\n\n\t\t\tif (instance) {\n\t\t\t\tinstance._lastRender.tree.dom.remove(instance._lastRender, treeLifecycle);\n\t\t\t\tinstance.componentWillUnmount();\n\t\t\t\tinstanceMap[item.id] = null;\n\t\t\t}\n\t\t}\n\t};\n\n\treturn node;\n}\n","/* eslint new-cap:0 */\nimport isVoid from '../../util/isVoid';\nimport { getValueWithIndex, getValueForProps } from '../../core/variables';\nimport recreateNode from '../recreateNode';\n\nlet updateComponent;\n\nconst global = global || (typeof window !== 'undefined' ? window : null);\n\nif (global && global.InfernoComponent) {\n\tupdateComponent = global.InfernoComponent.updateComponent;\n} else if (global && !global.InfernoComponent) {\n\ttry {\n\t\tupdateComponent = require('inferno-component').updateComponent;\n\t} catch (e) {\n\t\t// do nothing, this is fine, the person might be using stateless components\n\t}\n}\n\nexport default function createNodeWithComponent(componentIndex, props) {\n\tlet domNode;\n\tlet currentItem;\n\tlet statelessRender;\n\tconst instanceMap = {};\n\tconst node = {\n\t\toverrideItem: null,\n\t\tcreate(item, treeLifecycle, context) {\n\t\t\tlet toUseItem = item;\n\t\t\tlet nextRender;\n\t\t\tlet instance = node.instance;\n\n\t\t\tif (node.overrideItem !== null) {\n\t\t\t\ttoUseItem = node.overrideItem;\n\t\t\t}\n\t\t\tconst Component = getValueWithIndex(toUseItem, componentIndex);\n\n\t\t\tcurrentItem = item;\n\t\t\tif (isVoid(Component)) {\n\t\t\t\tdomNode = document.createTextNode('');\n\t\t\t\tinstance = null;\n\t\t\t\treturn domNode;\n\t\t\t} else if (typeof Component === 'function') {\n\t\t\t\t// stateless component\n\t\t\t\tif (!Component.prototype.render) {\n\t\t\t\t\tnextRender = Component(getValueForProps(props, toUseItem), context);\n\n\t\t\t\t\tnextRender.parent = item;\n\t\t\t\t\tdomNode = nextRender.tree.dom.create(nextRender, treeLifecycle, context);\n\t\t\t\t\tstatelessRender = nextRender;\n\t\t\t\t} else {\n\t\t\t\t\tinstance = new Component(getValueForProps(props, toUseItem));\n\t\t\t\t\tinstance.context = context;\n\t\t\t\t\tinstance.componentWillMount();\n\t\t\t\t\tnextRender = instance.render();\n\t\t\t\t\tconst childContext = instance.getChildContext();\n\t\t\t\t\tlet fragmentFirstChild;\n\n\t\t\t\t\tif (childContext) {\n\t\t\t\t\t\tcontext = { ...context, ...childContext };\n\t\t\t\t\t}\n\t\t\t\t\tnextRender.parent = item;\n\t\t\t\t\tdomNode = nextRender.tree.dom.create(nextRender, treeLifecycle, context);\n\t\t\t\t\tinstance._lastRender = nextRender;\n\n\t\t\t\t\tif (domNode instanceof DocumentFragment) {\n\t\t\t\t\t\tfragmentFirstChild = domNode.childNodes[0];\n\t\t\t\t\t}\n\t\t\t\t\ttreeLifecycle.addTreeSuccessListener(() => {\n\t\t\t\t\t\tif (fragmentFirstChild) {\n\t\t\t\t\t\t\tdomNode = fragmentFirstChild.parentNode;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tinstance.componentDidMount();\n\t\t\t\t\t});\n\t\t\t\t\tinstance.forceUpdate = () => {\n\t\t\t\t\t\tinstance.context = context;\n\t\t\t\t\t\tconst nextRender = instance.render.call(instance);\n\t\t\t\t\t\tconst childContext = instance.getChildContext();\n\n\t\t\t\t\t\tif (childContext) {\n\t\t\t\t\t\t\tcontext = { ...context, ...childContext };\n\t\t\t\t\t\t}\n\t\t\t\t\t\tnextRender.parent = currentItem;\n\t\t\t\t\t\tconst newDomNode = nextRender.tree.dom.update(instance._lastRender, nextRender, treeLifecycle, context);\n\n\t\t\t\t\t\tif (newDomNode) {\n\t\t\t\t\t\t\tdomNode = newDomNode;\n\t\t\t\t\t\t\tinstance._lastRender.rootNode = domNode;\n\t\t\t\t\t\t\tinstance._lastRender = nextRender;\n\t\t\t\t\t\t\treturn domNode;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tinstance._lastRender = nextRender;\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t}\n\t\t\t}\n\t\t\tinstanceMap[item.id] = instance;\n\t\t\treturn domNode;\n\t\t},\n\t\tupdate(lastItem, nextItem, treeLifecycle, context) {\n\t\t\tconst Component = getValueWithIndex(nextItem, componentIndex);\n\t\t\tconst instance = instanceMap[lastItem.id];\n\n\t\t\tcurrentItem = nextItem;\n\t\t\tif (!Component) {\n\t\t\t\trecreateNode(domNode, nextItem, node, treeLifecycle, context);\n\t\t\t\tif (instance) {\n\t\t\t\t\tinstance._lastRender.rootNode = domNode;\n\t\t\t\t}\n\t\t\t\treturn domNode;\n\t\t\t}\n\t\t\tif (typeof Component === 'function') {\n\t\t\t\t// stateless component\n\t\t\t\tif (!Component.prototype.render) {\n\t\t\t\t\tconst nextRender = Component(getValueForProps(props, nextItem), context);\n\t\t\t\t\tlet newDomNode;\n\n\t\t\t\t\tnextRender.parent = currentItem;\n\t\t\t\t\t// Edge case. If we update from a stateless component with a null value, we need to re-create it, not update it\n\t\t\t\t\t// E.g. start with 'render(template(null), container); ' will cause this.\n\t\t\t\t\tif (!isVoid(statelessRender)) {\n\t\t\t\t\t\tnewDomNode = nextRender.tree.dom.update(statelessRender || instance._lastRender, nextRender, treeLifecycle, context);\n\t\t\t\t\t} else {\n\t\t\t\t\t\trecreateNode(domNode, nextItem, node, treeLifecycle, context);\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\tstatelessRender = nextRender;\n\n\t\t\t\t\tif (!isVoid(newDomNode)) {\n\t\t\t\t\t\tif (domNode.parentNode) {\n\t\t\t\t\t\t\tdomNode.parentNode.replaceChild(newDomNode, domNode);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tdomNode = newDomNode;\n\t\t\t\t\t\treturn domNode;\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif (!instance || Component !== instance.constructor) {\n\t\t\t\t\t\trecreateNode(domNode, nextItem, node, treeLifecycle, context);\n\t\t\t\t\t\treturn domNode;\n\t\t\t\t\t}\n\t\t\t\t\tconst prevProps = instance.props;\n\t\t\t\t\tconst prevState = instance.state;\n\t\t\t\t\tconst nextState = instance.state;\n\t\t\t\t\tconst nextProps = getValueForProps(props, nextItem);\n\n\t\t\t\t\treturn updateComponent(instance, prevState, nextState, prevProps, nextProps, instance.forceUpdate);\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\tremove(item, treeLifecycle) {\n\t\t\tconst instance = instanceMap[item.id];\n\n\t\t\tif (instance) {\n\t\t\t\tinstance._lastRender.tree.dom.remove(instance._lastRender, treeLifecycle);\n\t\t\t\tinstance.componentWillUnmount();\n\t\t\t\tinstanceMap[item.id] = null;\n\t\t\t}\n\t\t}\n\t};\n\n\treturn node;\n}\n","import isVoid from '../../util/isVoid';\nimport isStringOrNumber from '../../util/isStringOrNumber';\nimport { recycle } from '../recycling';\nimport { getValueWithIndex } from '../../core/variables';\nimport recreateRootNode from '../recreateRootNode';\n\nexport default function createRootDynamicTextNode(templateNode, valueIndex, recyclingEnabled) {\n\tconst node = {\n\t\tpool: [],\n\t\tkeyedPool: [],\n\t\toverrideItem: null,\n\t\tcreate(item) {\n\t\t\tlet domNode;\n\n\t\t\tif (recyclingEnabled) {\n\t\t\t\tdomNode = recycle(node, item);\n\t\t\t\tif (domNode) {\n\t\t\t\t\treturn domNode;\n\t\t\t\t}\n\t\t\t}\n\t\t\tdomNode = templateNode.cloneNode(false);\n\t\t\tconst value = getValueWithIndex(item, valueIndex);\n\n\t\t\tif (!isVoid(value)) {\n\t\t\t\tif (isStringOrNumber(value)) {\n\t\t\t\t\tdomNode.nodeValue = value;\n\t\t\t\t}\n\t\t\t}\n\t\t\titem.rootNode = domNode;\n\t\t\treturn domNode;\n\t\t},\n\t\tupdate(lastItem, nextItem, treeLifecycle) {\n\n\t\t\tif (node !== lastItem.tree.dom) {\n\n\t\t\t\trecreateRootNode(lastItem, nextItem, node, treeLifecycle);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tconst domNode = lastItem.rootNode;\n\n\t\t\tnextItem.rootNode = domNode;\n\t\t\tnextItem.id = lastItem.id;\n\t\t\tconst nextValue = getValueWithIndex(nextItem, valueIndex);\n\n\t\t\tif (nextValue !== getValueWithIndex(lastItem, valueIndex)) {\n\t\t\t\tif (isStringOrNumber(nextValue)) {\n\t\t\t\t\tdomNode.nodeValue = nextValue;\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\tremove(/* lastItem */) {\n\n\t\t}\n\t};\n\n\treturn node;\n}\n","import { isRecyclingEnabled, recycle } from '../recycling';\nimport { addDOMDynamicAttributes, updateDOMDynamicAttributes, clearListeners, handleHooks, hookTypes } from '../addAttributes';\nimport recreateRootNode from '../recreateRootNode';\n\nexport default function createRootVoidNode(templateNode, dynamicAttrs, recyclingEnabled) {\n\tconst node = {\n\t\tpool: [],\n\t\tkeyedPool: [],\n\t\toverrideItem: null,\n\t\tcreate(item, treeLifecycle) {\n\t\t\tlet domNode;\n\n\t\t\tif (recyclingEnabled) {\n\t\t\t\tdomNode = recycle(node, item);\n\t\t\t\tif (domNode) {\n\t\t\t\t\treturn domNode;\n\t\t\t\t}\n\t\t\t}\n\t\t\tdomNode = templateNode.cloneNode(true);\n\t\t\titem.rootNode = domNode;\n\t\t\tif (dynamicAttrs) {\n\t\t\t\taddDOMDynamicAttributes(item, domNode, dynamicAttrs, node, 'onCreated');\n\t\t\t}\n\t\t\tif (dynamicAttrs) {\n\t\t\t\ttreeLifecycle.addTreeSuccessListener(() => {\n\t\t\t\t\thandleHooks(item, dynamicAttrs, domNode, 'onAttached');\n\t\t\t\t});\n\t\t\t}\n\t\t\treturn domNode;\n\t\t},\n\t\tupdate(lastItem, nextItem) {\n\t\t\tif (node !== lastItem.tree.dom) {\n\t\t\t\trecreateRootNode(lastItem, nextItem, node);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tconst domNode = lastItem.rootNode;\n\n\t\t\tnextItem.rootNode = domNode;\n\t\t\tnextItem.rootNode = lastItem.rootNode;\n\t\t\tif (dynamicAttrs) {\n\t\t\t\thandleHooks(nextItem, dynamicAttrs, domNode, 'onWillUpdate');\n\t\t\t}\n\t\t\tif (dynamicAttrs) {\n\t\t\t\tupdateDOMDynamicAttributes(lastItem, nextItem, domNode, dynamicAttrs, null);\n\t\t\t}\n\t\t\tif (dynamicAttrs) {\n\t\t\t\thandleHooks(nextItem, dynamicAttrs, domNode, 'onDidUpdate');\n\t\t\t}\n\t\t},\n\t\tremove(item) {\n\t\t\tif (dynamicAttrs) {\n\t\t\t\tconst domNode = item.rootNode;\n\n\t\t\t\tclearListeners(item, item.rootNode, dynamicAttrs);\n\t\t\t\tif (dynamicAttrs) {\n\t\t\t\t\thandleHooks(item, dynamicAttrs, domNode, 'onDetached');\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t};\n\n\treturn node;\n}\n","import { addDOMDynamicAttributes, updateDOMDynamicAttributes, clearListeners } from '../addAttributes';\n\nexport default function createVoidNode(templateNode, dynamicAttrs) {\n\tconst domNodeMap = {};\n\tconst node = {\n\t\toverrideItem: null,\n\t\tcreate(item) {\n\t\t\tconst domNode = templateNode.cloneNode(true);\n\n\t\t\tif (dynamicAttrs) {\n\t\t\t\taddDOMDynamicAttributes(item, domNode, dynamicAttrs, null);\n\t\t\t}\n\t\t\tdomNodeMap[item.id] = domNode;\n\t\t\treturn domNode;\n\t\t},\n\t\tupdate(lastItem, nextItem) {\n\t\t\tconst domNode = domNodeMap[lastItem.id];\n\n\t\t\tif (dynamicAttrs) {\n\t\t\t\tupdateDOMDynamicAttributes(lastItem, nextItem, domNode, dynamicAttrs);\n\t\t\t}\n\t\t},\n\t\tremove(item) {\n\t\t\tconst domNode = domNodeMap[item.id];\n\n\t\t\tif (dynamicAttrs) {\n\t\t\t\tclearListeners(item, domNode, dynamicAttrs);\n\t\t\t}\n\t\t}\n\t};\n\n\treturn node;\n}\n","export function canHydrate(domNode, nextDomNode) {\n\tif (nextDomNode) {\n\t\tif (nextDomNode.nodeType === 1 && nextDomNode.hasAttribute('data-inferno')) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\t// otherwise clear the DOM node\n\t\t\tdomNode.innerHTML = '';\n\t\t}\n\t}\n}\n\nfunction purgeCommentNodes(domNode, parentDom) {\n\tlet nextSibling = domNode.nextSibling;\n\n\tif (nextSibling && nextSibling.nodeType === 8) {\n\t\tnextSibling = purgeCommentNodes(nextSibling, parentDom);\n\t\tparentDom.removeChild(nextSibling);\n\t}\n\n\treturn nextSibling;\n}\n\nfunction validateHydrateNodeChildren(hydrateNode, templateNode) {\n\tlet templateNodeChild = templateNode.firstChild;\n\tlet hydrateNodeChild = hydrateNode.firstChild;\n\n\twhile (templateNodeChild) {\n\t\tconst result = validateHydrateNode(hydrateNodeChild, templateNodeChild);\n\t\tif (!result) {\n\t\t\treturn false;\n\t\t}\n\t\ttemplateNodeChild = templateNodeChild.nextSibling;\n\t\t// check when we reach a comment and remove it, as they are used to break up text nodes\n\t\thydrateNodeChild = purgeCommentNodes(hydrateNodeChild, hydrateNode);\n\t}\n\treturn true;\n}\n\nexport function validateHydrateNode(hydrateNode, templateNode, item, dynamicAttrs) {\n\t// check nodeNames, return false if not same\n\tif (hydrateNode.nodeName !== templateNode.nodeName) {\n\t\treturn false;\n\t}\n\tif (hydrateNode.nodeType === 1) {\n\t\t// check hydrateNode has all the same attrs as templateNode (as these will be static)\n\t\t// return false if not same\n\t\t// TODO\n\n\t\t// check hydrateNode has all the same attrs as dynamicAttrs+item (as these will be dyanmic),\n\t\t// passively update here and do not return false (as state could have changed) if not same\n\t\tif (dynamicAttrs && item) {\n\t\t\t// TODO\n\t\t}\n\t\t// check through children\n\t\treturn validateHydrateNodeChildren(hydrateNode, templateNode);\n\t} else if (hydrateNode.nodeType === 3) {\n\t\treturn hydrateNode.nodeValue === templateNode.nodeValue;\n\t}\n}","import { isRecyclingEnabled, recycle } from '../recycling';\nimport recreateRootNode, { recreateRootNodeFromHydration } from '../recreateRootNode';\nimport { validateHydrateNode } from '../hydration';\n\nexport default function createRootStaticNode(templateNode, recyclingEnabled) {\n\tconst node = {\n\t\tpool: [],\n\t\tkeyedPool: [],\n\t\toverrideItem: null,\n\t\tcreate(item) {\n\t\t\tlet domNode;\n\n\t\t\tif (recyclingEnabled) {\n\t\t\t\tdomNode = recycle(node, item);\n\t\t\t\tif (domNode) {\n\t\t\t\t\treturn domNode;\n\t\t\t\t}\n\t\t\t}\n\t\t\tdomNode = templateNode.cloneNode(true);\n\t\t\titem.rootNode = domNode;\n\t\t\treturn domNode;\n\t\t},\n\t\tupdate(lastItem, nextItem) {\n\t\t\t// wrong tree and it toggle\n\t\t\tif (node !== lastItem.tree.dom) {\n\t\t\t\trecreateRootNode(lastItem, nextItem, node);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tnextItem.rootNode = lastItem.rootNode;\n\t\t},\n\t\tremove() {},\n\t\thydrate(hydrateNode, item) {\n\t\t\tif (!validateHydrateNode(hydrateNode, templateNode, item)) {\n\t\t\t\trecreateRootNodeFromHydration(hydrateNode, item, node);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\titem.rootNode = hydrateNode;\n\t\t}\n\t};\n\n\treturn node;\n}\n","\nexport default function createStaticNode(templateNode) {\n\tconst node = {\n\t\toverrideItem: null,\n\t\tcreate() {\n\t\t\treturn templateNode.cloneNode(true);\n\t\t},\n\t\tupdate() {},\n\t\tremove() {},\n\t\thydrate() {}\n\t};\n\n\treturn node;\n}\n","import isVoid from '../util/isVoid';\nimport isStringOrNumber from '../util/isStringOrNumber';\nimport isSVGElement from '../util/isSVGElement';\nimport isMathMLElement from '../util/isMathMLElement';\nimport createRootNodeWithDynamicText from './shapes/rootNodeWithDynamicText';\nimport createNodeWithDynamicText from './shapes/nodeWithDynamicText';\nimport createRootNodeWithStaticChild from './shapes/rootNodeWithStaticChild';\nimport createNodeWithStaticChild from './shapes/nodeWithStaticChild';\nimport createRootNodeWithDynamicChild from './shapes/rootNodeWithDynamicChild';\nimport createNodeWithDynamicChild from './shapes/nodeWithDynamicChild';\nimport createRootNodeWithDynamicSubTreeForChildren from './shapes/rootNodeWithDynamicSubTreeForChildren';\nimport createNodeWithDynamicSubTreeForChildren from './shapes/nodeWithDynamicSubTreeForChildren';\n// import createRootDynamicNode from './shapes/rootDynamicNode';\nimport createDynamicNode from './shapes/dynamicNode';\nimport createRootNodeWithComponent from './shapes/rootNodeWithComponent';\nimport createNodeWithComponent from './shapes/nodeWithComponent';\nimport createRootDynamicTextNode from './shapes/rootDynamicTextNode';\n// import createDynamicTextNode from './shapes/dynamicTextNode';\nimport { ObjectTypes } \tfrom '../core/variables';\nimport isArray from '../util/isArray';\nimport { addDOMStaticAttributes } from './addAttributes';\nimport { isRecyclingEnabled } from './recycling';\nimport createRootVoidNode from './shapes/rootVoidNode';\nimport createVoidNode from './shapes/voidNode';\nimport createRootStaticNode from './shapes/rootStaticNode';\nimport createStaticNode from './shapes/staticNode';\n\nfunction createElement(schema, domNamespace, parentNode) {\n\tconst MathNamespace = 'http://www.w3.org/1998/Math/MathML';\n\tconst SVGNamespace = 'http://www.w3.org/2000/svg';\n\tconst nodeName = schema && typeof schema.tag === 'string' && schema.tag.toLowerCase();\n\tconst is = schema.attrs && schema.attrs.is;\n\n\tlet templateNode;\n\n\tif (domNamespace === undefined) {\n\t\tif (schema.attrs && schema.attrs.xmlns) {\n\t\t\tdomNamespace = schema.attrs.xmlns;\n\t\t} else {\n\t\t\tswitch (nodeName) {\n\t\t\t\tcase 'svg':\n\t\t\t\t\tdomNamespace = SVGNamespace;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'math':\n\t\t\t\t\tdomNamespace = MathNamespace;\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\t// Edge case. In case a namespace element are wrapped inside a non-namespace element, it will inherit wrong namespace.\n\t\t\t\t\t// E.g.
- will not work\n\t\t\t\t\tif (parentNode) { // only used by static children\n\t\t\t\t\t\t// check only for top-level element for both mathML and SVG\n\t\t\t\t\t\tif (nodeName === 'svg' && (parentNode.namespaceURI !== SVGNamespace)) {\n\t\t\t\t\t\t\tdomNamespace = SVGNamespace;\n\t\t\t\t\t\t} else if (nodeName === 'math' && (parentNode.namespaceURI !== MathNamespace)) {\n\t\t\t\t\t\t\tdomNamespace = MathNamespace;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (isSVGElement(nodeName)) {\n\t\t\t\t\t\tdomNamespace = SVGNamespace;\n\t\t\t\t\t} else if (isMathMLElement(nodeName)) {\n\t\t\t\t\t\tdomNamespace = MathNamespace;\n\t\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\ttemplateNode = domNamespace ?\n\t\tis ?\n\t\t\tdocument.createElementNS(domNamespace, nodeName, is) :\n\t\t\tdocument.createElementNS(domNamespace, nodeName) :\n\t\tis ?\n\t\t\tdocument.createElement(nodeName, is) :\n\t\t\tdocument.createElement(nodeName);\n\n\treturn {\n\t\tnamespace: domNamespace,\n\t\tnode: templateNode\n\t};\n}\n\nconst recyclingEnabled = isRecyclingEnabled();\nconst invalidTemplateError = 'Inferno Error: A valid template node must be returned. You may have returned undefined, an array or some other invalid object.';\n\nfunction createStaticAttributes(node, domNode, excludeAttrs) {\n\tconst attrs = node.attrs;\n\n\tif (!isVoid(attrs)) {\n\t\tif (excludeAttrs) {\n\t\t\tconst newAttrs = { ...attrs };\n\n\t\t\tfor (const attr in excludeAttrs) {\n\t\t\t\tif (newAttrs[attr]) {\n\t\t\t\t\tdelete newAttrs[attr];\n\t\t\t\t}\n\t\t\t}\n\t\t\taddDOMStaticAttributes(node, domNode, newAttrs);\n\t\t} else {\n\t\t\taddDOMStaticAttributes(node, domNode, attrs);\n\t\t}\n\t}\n}\n\nfunction createStaticTreeChildren(children, parentNode, domNamespace) {\n\tif (isArray(children)) {\n\t\tfor (let i = 0; i < children.length; i++) {\n\t\t\tconst childItem = children[i];\n\n\t\t\tif (isStringOrNumber(childItem)) {\n\t\t\t\tconst textNode = document.createTextNode(childItem);\n\n\t\t\t\tparentNode.appendChild(textNode);\n\t\t\t} else {\n\t\t\t\tcreateStaticTreeNode(childItem, parentNode, domNamespace);\n\t\t\t}\n\t\t}\n\t} else {\n\t\tif (isStringOrNumber(children)) {\n\t\t\tparentNode.textContent = children;\n\t\t} else {\n\t\t\tcreateStaticTreeNode(children, parentNode, domNamespace);\n\t\t}\n\t}\n}\n\nfunction createStaticTreeNode(node, parentNode, domNamespace) {\n\tlet staticNode;\n\n\tif (!isVoid(node)) {\n\t\tif (isStringOrNumber(node)) {\n\t\t\tstaticNode = document.createTextNode(node);\n\t\t} else {\n\t\t\tconst tag = node.tag;\n\n\t\t\tif (tag) {\n\t\t\t\tconst Element = createElement(node, domNamespace, parentNode);\n\n\t\t\t\tstaticNode = Element.node;\n\t\t\t\tdomNamespace = Element.namespace;\n\t\t\t\tconst text = node.text;\n\t\t\t\tconst children = node.children;\n\n\t\t\t\tif (!isVoid(text)) {\n\t\t\t\t\tif (process.env.NODE_ENV !== 'production') {\n\t\t\t\t\t\tif (!isVoid(children)) {\n\t\t\t\t\t\t\tthrow Error(invalidTemplateError);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (!isStringOrNumber(text)) {\n\t\t\t\t\t\t\tthrow Error('Inferno Error: Template nodes with TEXT must only have a StringLiteral or NumericLiteral as a value, this is intended for low-level optimisation purposes.');\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tstaticNode.textContent = text;\n\t\t\t\t} else {\n\t\t\t\t\tif (!isVoid(children)) {\n\t\t\t\t\t\tcreateStaticTreeChildren(children, staticNode, domNamespace);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcreateStaticAttributes(node, staticNode);\n\t\t\t} else if (node.text) {\n\t\t\t\tstaticNode = document.createTextNode(node.text);\n\t\t\t}\n\t\t}\n\t\tif (process.env.NODE_ENV !== 'production') {\n\t\t\tif (staticNode === undefined) {\n\t\t\t\tthrow Error(invalidTemplateError);\n\t\t\t}\n\t\t}\n\t\tif (parentNode === null) {\n\t\t\treturn staticNode;\n\t\t} else {\n\t\t\tparentNode.appendChild(staticNode);\n\t\t}\n\t}\n}\n\nexport default function createDOMTree(schema, isRoot, dynamicNodeMap, domNamespace) {\n\tif (process.env.NODE_ENV !== 'production') {\n\t\tif (isVoid(schema)) {\n\t\t\tthrow Error(invalidTemplateError);\n\t\t}\n\t\tif (isArray(schema)) {\n\t\t\tthrow Error(invalidTemplateError);\n\t\t}\n\t}\n\n\tconst dynamicFlags = dynamicNodeMap.get(schema);\n\tlet node;\n\tlet templateNode;\n\n\tif (!dynamicFlags) {\n\t\ttemplateNode = createStaticTreeNode(schema, null, domNamespace, schema);\n\t\tif (process.env.NODE_ENV !== 'production') {\n\t\t\tif (!templateNode) {\n\t\t\t\tthrow Error(invalidTemplateError);\n\t\t\t}\n\t\t}\n\t\tif (isRoot) {\n\t\t\tnode = createRootStaticNode(templateNode, recyclingEnabled);\n\t\t} else {\n\t\t\tnode = createStaticNode(templateNode);\n\t\t}\n\t} else {\n\t\tif (dynamicFlags.NODE === true) {\n\t\t\tif (isRoot) {\n\t\t\t\t//\t\tnode = createRootDynamicNode( schema.index, domNamespace, recyclingEnabled );\n\t\t\t} else {\n\t\t\t\tnode = createDynamicNode(schema.index, domNamespace);\n\t\t\t}\n\t\t} else {\n\t\t\tconst tag = schema.tag;\n\t\t\tconst text = schema.text;\n\n\t\t\tif (tag) {\n\t\t\t\tif (tag.type === ObjectTypes.VARIABLE) {\n\t\t\t\t\tconst lastAttrs = schema.attrs;\n\t\t\t\t\tconst attrs = { ...lastAttrs };\n\t\t\t\t\tconst children = schema.children;\n\n\t\t\t\t\tif (children) {\n\t\t\t\t\t\tif (isArray(children)) {\n\t\t\t\t\t\t\tif (children.length > 1) {\n\t\t\t\t\t\t\t\tattrs.children = [];\n\t\t\t\t\t\t\t\tfor (let i = 0; i < children.length; i++) {\n\t\t\t\t\t\t\t\t\tconst childNode = children[i];\n\n\t\t\t\t\t\t\t\t\tattrs.children.push(createDOMTree(childNode, false, dynamicNodeMap, domNamespace));\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else if (children.length === 1) {\n\t\t\t\t\t\t\t\tattrs.children = createDOMTree(children[0], false, dynamicNodeMap, domNamespace);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tattrs.children = createDOMTree(children, false, dynamicNodeMap, domNamespace);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (isRoot) {\n\t\t\t\t\t\treturn createRootNodeWithComponent(tag.index, attrs, children, domNamespace, recyclingEnabled);\n\t\t\t\t\t} else {\n\t\t\t\t\t\treturn createNodeWithComponent(tag.index, attrs, children, domNamespace);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\ttemplateNode = createElement(schema, domNamespace, null).node;\n\n\t\t\t\tconst attrs = schema.attrs;\n\t\t\t\tlet dynamicAttrs = null;\n\n\t\t\t\tif (!isVoid(attrs)) {\n\t\t\t\t\tif (dynamicFlags.ATTRS === true) {\n\t\t\t\t\t\tdynamicAttrs = attrs;\n\t\t\t\t\t} else if (dynamicFlags.ATTRS !== false) {\n\t\t\t\t\t\tdynamicAttrs = dynamicFlags.ATTRS;\n\t\t\t\t\t\tcreateStaticAttributes(schema, templateNode, dynamicAttrs);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tcreateStaticAttributes(schema, templateNode);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tconst children = schema.children;\n\n\t\t\t\tif (!isVoid(text)) {\n\t\t\t\t\tif (process.env.NODE_ENV !== 'production') {\n\t\t\t\t\t\tif (!isVoid(children)) {\n\t\t\t\t\t\t\tthrow Error('Inferno Error: Template nodes cannot contain both TEXT and a CHILDREN properties, they must only use one or the other.');\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (dynamicFlags.TEXT === true) {\n\t\t\t\t\t\tif (isRoot) {\n\t\t\t\t\t\t\tnode = createRootNodeWithDynamicText(templateNode, text.index, dynamicAttrs, recyclingEnabled);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tnode = createNodeWithDynamicText(templateNode, text.index, dynamicAttrs);\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (isStringOrNumber(text)) {\n\t\t\t\t\t\t\ttemplateNode.textContent = text;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tif (process.env.NODE_ENV !== 'production') {\n\t\t\t\t\t\t\t\tthrow Error('Inferno Error: Template nodes with TEXT must only have a StringLiteral or NumericLiteral as a value, this is intended for low-level optimisation purposes.');\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (isRoot) {\n\t\t\t\t\t\t\tnode = createRootNodeWithStaticChild(templateNode, dynamicAttrs, recyclingEnabled);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tnode = createNodeWithStaticChild(templateNode, dynamicAttrs);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif (!isVoid(children)) {\n\t\t\t\t\t\tif (children.type === ObjectTypes.VARIABLE) {\n\t\t\t\t\t\t\tif (isRoot) {\n\t\t\t\t\t\t\t\tnode = createRootNodeWithDynamicChild(\n\t\t\t\t\t\t\t\t\ttemplateNode, children.index, dynamicAttrs, recyclingEnabled\n\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tnode = createNodeWithDynamicChild(\n\t\t\t\t\t\t\t\t\ttemplateNode, children.index, dynamicAttrs\n\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else if (dynamicFlags.CHILDREN === true) {\n\t\t\t\t\t\t\tlet subTreeForChildren = [];\n\n\t\t\t\t\t\t\tif (typeof children === 'object') {\n\t\t\t\t\t\t\t\tif (isArray(children)) {\n\t\t\t\t\t\t\t\t\tfor (let i = 0; i < children.length; i++) {\n\t\t\t\t\t\t\t\t\t\tconst childItem = children[i];\n\n\t\t\t\t\t\t\t\t\t\tsubTreeForChildren.push(createDOMTree(childItem, false, dynamicNodeMap));\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tsubTreeForChildren = createDOMTree(children, false, dynamicNodeMap);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (isRoot) {\n\t\t\t\t\t\t\t\tnode = createRootNodeWithDynamicSubTreeForChildren(\n\t\t\t\t\t\t\t\t\ttemplateNode, subTreeForChildren, dynamicAttrs, recyclingEnabled\n\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tnode = createNodeWithDynamicSubTreeForChildren(\n\t\t\t\t\t\t\t\t\ttemplateNode, subTreeForChildren, dynamicAttrs\n\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else if (isStringOrNumber(children)) {\n\t\t\t\t\t\t\ttemplateNode.textContent = children;\n\t\t\t\t\t\t\tif (isRoot) {\n\t\t\t\t\t\t\t\tnode = createRootNodeWithStaticChild(templateNode, dynamicAttrs, recyclingEnabled);\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tnode = createNodeWithStaticChild(templateNode, dynamicAttrs);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tconst childNodeDynamicFlags = dynamicNodeMap.get(children);\n\n\t\t\t\t\t\t\tif (childNodeDynamicFlags === undefined) {\n\t\t\t\t\t\t\t\tcreateStaticTreeChildren(children, templateNode);\n\n\t\t\t\t\t\t\t\tif (isRoot) {\n\t\t\t\t\t\t\t\t\tnode = createRootNodeWithStaticChild(templateNode, dynamicAttrs, recyclingEnabled);\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tnode = createNodeWithStaticChild(templateNode, dynamicAttrs);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (isRoot) {\n\t\t\t\t\t\t\tnode = createRootVoidNode(templateNode, dynamicAttrs, recyclingEnabled);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tnode = createVoidNode(templateNode, dynamicAttrs);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else if (text) {\n\t\t\t\ttemplateNode = document.createTextNode('');\n\t\t\t\t// if ( isRoot ) {\n\t\t\t\tnode = createRootDynamicTextNode(templateNode, text.index);\n\t\t\t\t// } //else {\n//\t\t\t\t\tnode = createDynamicTextNode( templateNode, text.index );\n//\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\treturn node;\n}\n","export default function createRef() {\n\treturn {\n\t\telement: null\n\t};\n}\n","import { remove } from './domMutate';\nimport { canHydrate } from './hydration';\n\nexport default function createDOMFragment(parentNode, nextNode) {\n\tlet lastItem;\n\tlet treeSuccessListeners = [];\n\tconst context = {};\n\tconst treeLifecycle = {\n\t\taddTreeSuccessListener(listener) {\n\t\t\ttreeSuccessListeners.push(listener);\n\t\t},\n\t\tremoveTreeSuccessListener(listener) {\n\t\t\tfor (let i = 0; i < treeSuccessListeners.length; i++) {\n\t\t\t\tconst treeSuccessListener = treeSuccessListeners[i];\n\n\t\t\t\tif (treeSuccessListener === listener) {\n\t\t\t\t\ttreeSuccessListeners.splice(i, 1);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t};\n\treturn {\n\t\tparentNode,\n\t\trender(nextItem) {\n\t\t\tif (nextItem) {\n\t\t\t\tconst tree = nextItem.tree && nextItem.tree.dom;\n\n\t\t\t\tif (tree) {\n\t\t\t\t\tconst activeNode = document.activeElement;\n\n\t\t\t\t\tif (lastItem) {\n\t\t\t\t\t\ttree.update(lastItem, nextItem, treeLifecycle, context);\n\n\t\t\t\t\t\tif (!nextItem.rootNode) {\n\t\t\t\t\t\t\tlastItem = null;\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (tree) {\n\t\t\t\t\t\t\tconst hydrateNode = parentNode.firstChild;\n\n\t\t\t\t\t\t\tif (canHydrate(parentNode, hydrateNode)) {\n\t\t\t\t\t\t\t\ttree.hydrate(hydrateNode, nextItem, treeLifecycle, context);\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tconst dom = tree.create(nextItem, treeLifecycle, context);\n\n\t\t\t\t\t\t\t\tif (!dom) {\n\t\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (nextNode) {\n\t\t\t\t\t\t\t\t\tparentNode.insertBefore(dom, nextNode);\n\t\t\t\t\t\t\t\t} else if (parentNode) {\n\t\t\t\t\t\t\t\t\tparentNode.appendChild(dom);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (treeSuccessListeners.length > 0) {\n\t\t\t\t\t\tfor (let i = 0; i < treeSuccessListeners.length; i++) {\n\t\t\t\t\t\t\ttreeSuccessListeners[i]();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tlastItem = nextItem;\n\t\t\t\t\tif (activeNode !== document.body && document.activeElement !== activeNode) {\n\t\t\t\t\t\tactiveNode.focus();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\tremove() {\n\t\t\tif (lastItem) {\n\t\t\t\tconst tree = lastItem.tree.dom;\n\n\t\t\t\tif (lastItem) {\n\t\t\t\t\ttree.remove(lastItem, treeLifecycle);\n\t\t\t\t}\n\t\t\t\tif (lastItem.rootNode.parentNode) {\n\t\t\t\t\tremove(lastItem, parentNode);\n\t\t\t\t}\n\t\t\t}\n\t\t\ttreeSuccessListeners = [];\n\t\t}\n\t};\n}\n","import createDOMFragment from '../DOM/createFragment';\nimport isVoid from '../util/isVoid';\n\nconst rootFragments = [];\n\nexport function getRootFragmentAtNode(node) {\n\tconst rootFragmentsLength = rootFragments.length;\n\n\tif (rootFragmentsLength === 0) {\n\t\treturn null;\n\t}\n\tfor (let i = 0; i < rootFragmentsLength; i++) {\n\t\tconst rootFragment = rootFragments[i];\n\n\t\tif (rootFragment.parentNode === node) {\n\t\t\treturn rootFragment;\n\t\t}\n\t}\n\treturn null;\n}\n\nexport function removeRootFragment(rootFragment) {\n\tfor (let i = 0; i < rootFragments.length; i++) {\n\t\tif (rootFragments[i] === rootFragment) {\n\t\t\trootFragments.splice(i, 1);\n\t\t\treturn true;\n\t\t}\n\t}\n\treturn false;\n}\n\nexport function render(nextItem, parentNode) {\n\tconst rootFragment = getRootFragmentAtNode(parentNode);\n\n\tif (isVoid(rootFragment)) {\n\t\tconst fragment = createDOMFragment(parentNode);\n\n\t\tfragment.render(nextItem);\n\t\trootFragments.push(fragment);\n\t} else {\n\t\tif (isVoid(nextItem)) {\n\t\t\trootFragment.remove();\n\t\t\tremoveRootFragment(rootFragment);\n\t\t} else {\n\t\t\trootFragment.render(nextItem);\n\t\t}\n\t}\n}\n","import { render } from '../../../src/DOM/rendering';\nimport createRef from '../../../src/DOM/createRef';\nimport createDOMTree from '../../../src/DOM/createTree';\n\nconst global = global || (typeof window !== 'undefined' ? window : null);\n\n// browser\nif (global && global.Inferno) {\n\tglobal.Inferno.addTreeConstructor('dom', createDOMTree);\n// nodeJS\n// TODO! Find a better way to detect if we are running in Node, and test if this actually works!!!\n} else if ( global && !global.Inferno ) {\n\tlet Inferno;\n\n\t// TODO! Avoid try / catch\n\ttry {\n\t\tInferno = require('inferno');\n\t} catch (e) {\n\t\tInferno = null;\n\t\t// TODO Should we throw a warning and inform that the Inferno package is not installed?\n\t}\n\n\tif (Inferno != null) {\n\t\tif (typeof Inferno.addTreeConstructor !== 'function') {\n\t\t\tthrow ('Your package is out-of-date! Upgrade to latest Inferno in order to use the InfernoDOM package.');\n\t\t} else {\n\t\t\tInferno.addTreeConstructor('dom', createDOMTree);\n\t\t}\n\t}\n}\n\nexport default {\n\trender,\n\tcreateRef\n};\n"]}