{"version":3,"sources":["webpack:///webpack/universalModuleDefinition","webpack:///jsoneditor-minimalist.js","webpack:///webpack/bootstrap 7cc2b40e4573e7b2bd6f","webpack:///./src/index.js","webpack:///./~/preact/dist/preact.js","webpack:///./~/timers-browserify/main.js","webpack:///./~/process/browser.js","webpack:///./src/TreeMode.js","webpack:///./src/utils/objectUtils.js","webpack:///./src/utils/typeUtils.js","webpack:///./src/utils/arrayUtils.js","webpack:///./src/utils/bindMethods.js","webpack:///./src/JSONNode.js","webpack:///./src/ContextMenu.js","webpack:///./src/utils/stringUtils.js","webpack:///./src/utils/jsonUtils.js","webpack:///./src/utils/domUtils.js","webpack:///./src/jsoneditor.less?e043","webpack:///./src/jsoneditor.less","webpack:///./~/css-loader/lib/css-base.js","webpack:///./src/img/jsoneditor-icons.svg","webpack:///./~/style-loader/addStyles.js"],"names":["root","factory","exports","module","define","amd","this","modules","__webpack_require__","moduleId","installedModules","id","loaded","call","m","c","p","_interopRequireDefault","obj","__esModule","default","jsoneditor","container","options","elem","_preact","render","h","_TreeMode2","_component","_TreeMode","setImmediate","global","VNode","nodeName","attributes","children","key","extend","props","i","clone","delve","split","length","toArray","offset","slice","isFunction","isString","empty","x","falsey","value","hashToClassName","str","prop","firstChild","arr","lastSimple","len","arguments","type","String","_p","join","SHARED_TEMP_ARRAY","j","child","simple","push","className","vnode","cloneElement","createLinkedState","component","eventPath","path","p0","e","_component$setState","v","t","currentTarget","s","state","match","checked","setState","enqueueRender","items","debounceRendering","rerender","currentItems","itemsOffline","pop","_dirty","renderComponent","isFunctionalComponent","prototype","buildFunctionalComponent","context","getNodeProps","EMPTY","ensureNodeData","node","data","ATTR_KEY","getNodeType","Text","Element","removeNode","parentNode","removeChild","setAccessor","name","old","isSvg","style","cssText","NON_DIMENSION_PROPS","innerHTML","__html","l","_listeners","toLowerCase","substring","addEventListener","eventProxy","removeEventListener","setProperty","removeAttribute","ns","removeAttributeNS","setAttributeNS","setAttribute","event","getRawNodeAttributes","attrs","isSameNodeType","isNamedNode","_componentConstructor","normalizedNodeName","defaultProps","collectNode","cleanNode","list","nodes","createNode","document","createElementNS","createElement","flushMounts","mounts","componentDidMount","diff","dom","mountAll","parent","diffLevel","ret","idiff","appendChild","originalAttributes","createComment","nodeValue","createTextNode","svgMode","out","buildComponentFromVNode","isSvgMode","recollectNodeTree","childNodes","innerDiffNode","diffAttributes","ref","vchildren","vchild","originalChildren","keyed","keyedLen","min","childrenLen","vlen","_child","__key","insertBefore","removeOrphanedChildren","unmountOnly","unmountComponent","_name","_name2","collectComponent","constructor","components","createComponent","Ctor","inst","nextBase","splice","triggerComponentRender","setComponentProps","opts","b","base","_disableRendering","__ref","componentWillMount","componentWillReceiveProps","prevContext","prevProps","syncComponentUpdates","skip","rendered","previousProps","previousState","prevState","previousContext","isUpdate","initialBase","nextSibling","baseParent","initialComponent","initialChildComponent","shouldComponentUpdate","componentWillUpdate","getChildContext","toUnmount","childComponent","childProps","_parentComponent","cbase","componentRef","unshift","componentDidUpdate","fn","cb","_renderCallbacks","oldDom","isDirectOwner","isOwner","remove","componentWillUnmount","inner","componentDidUnmount","Component","_linkedStates","getInitialState","merge","lcCache","resolved","Promise","resolve","f","then","setTimeout","Symbol","boxFlex","boxFlexGroup","columnCount","fillOpacity","flex","flexGrow","flexPositive","flexShrink","flexNegative","fontWeight","lineClamp","lineHeight","opacity","order","orphans","strokeOpacity","widows","zIndex","zoom","linkState","cacheKey","callback","forceUpdate","clearImmediate","Timeout","clearFn","_id","_clearFn","nextTick","apply","Function","Array","immediateIds","nextImmediateId","window","clearTimeout","setInterval","clearInterval","timeout","close","unref","enroll","item","msecs","_idleTimeoutId","_idleTimeout","unenroll","_unrefActive","active","_onTimeout","args","runTimeout","fun","cachedSetTimeout","runClearTimeout","marker","cachedClearTimeout","cleanUpNextTick","draining","currentQueue","queue","concat","queueIndex","drainQueue","run","Item","array","noop","process","Error","title","browser","env","argv","version","versions","on","addListener","once","off","removeListener","removeAllListeners","emit","binding","cwd","chdir","dir","umask","_classCallCheck","instance","Constructor","TypeError","_possibleConstructorReturn","self","ReferenceError","_inherits","subClass","superClass","Object","create","enumerable","writable","configurable","setPrototypeOf","__proto__","toDataPath","index","findIndex","jsonToData","json","expand","isArray","expanded","map","_typeUtils","isObject","keys","dataToJson","_ret","object","forEach","_typeof","createDataEntry","convertDataEntry","entry","convertedEntry","stringConvert","defineProperty","iterator","_createClass","defineProperties","target","descriptor","protoProps","staticProps","_objectUtils","_arrayUtils","_bindMethods","_bindMethods2","_JSONNode","_JSONNode2","TreeMode","_Component","_this","getPrototypeOf","events","onChangeProperty","handleChangeProperty","onChangeValue","handleChangeValue","onChangeType","handleChangeType","onInsert","handleInsert","onAppend","handleAppend","onDuplicate","handleDuplicate","onRemove","handleRemove","onSort","handleSort","onExpand","handleExpand","search","class","contentEditable","onClick","hideContextMenu","console","log","dataPath","setIn","oldProp","newProp","getIn","oldEntry","newEntry","afterProp","updateIn","parseInt","updatedItems","updatedProps","original","duplicate","cloneDeep","updated","deleteIn","_dataPath","undefined","_order","ordered","compare","compareDesc","compareAsc","sort","a","orderedProps","cloned","_ret2","_key","_updated","valueType","RegExp","toString","isUrl","text","isUrlRegex","test","num","Number","numFloat","parseFloat","isNaN","last","bindMethods","getOwnPropertyNames","bind","_ContextMenu","_ContextMenu2","_stringUtils","_domUtils","TYPE_TITLES","string","activeContextMenu","JSONNode","menu","appendMenu","handleClickValue","handleKeyDownValue","handleContextMenu","handleAppendContextMenu","renderJSONArray","renderJSONObject","renderJSONValue","_ref","_this2","childCount","contents","renderExpandButton","renderContextMenuButton","renderProperty","renderReadonly","renderAppend","_ref2","_this3","_ref3","renderPlaceholder","renderSeparator","renderValue","renderAppendContextMenuButton","isIndex","spellCheck","onInput","content","_rootName","_isUrl","valueClass","onKeyDown","escapeHTML","renderContextMenu","renderAppendContextMenu","_this4","_state$menu","anchor","getPath","hasParent","submenu","click","direction","sortOrder","parentPath","submenuTitle","_state$appendMenu","nextProps","nextState","hasOwnProperty","unescapeHTML","getInnerText","_getValueFromEvent","ctrlKey","button","_openLinkIfUrl","which","stopPropagation","_findRootElement","preventDefault","open","stringValue","isEditorElement","indexOf","CONTEXT_MENU_HEIGHT","ContextMenu","anchorRect","getBoundingClientRect","rootRect","orientation","bottom","top","expanding","collapsing","renderMenuItem","createExpandHandler","renderSubMenu","prev","escapeUnicode","htmlEscaped","replace","JSON","stringify","html","escapeUnicodeChars","charCodeAt","escapedText","escapeJSON","_jsonUtils","parseJSON","escaped","charAt","jsonString","parse","err","validate","jsonlint","element","buffer","first","flush","set","hasChildNodes","innerText","iMax","prevChild","prevName","getInternetExplorerVersion","_ieVersion","rv","navigator","appName","ua","userAgent","re","exec","$1","locals","result","mediaQuery","alreadyImportedModules","addStylesToDom","styles","domStyle","stylesInDom","refs","parts","addStyle","listToStyles","newStyles","css","media","sourceMap","part","insertStyleElement","styleElement","head","getHeadElement","lastStyleElementInsertedAtTop","styleElementsInsertedAtTop","insertAt","removeStyleElement","idx","createStyleElement","createLinkElement","linkElement","rel","update","singleton","styleIndex","singletonCounter","singletonElement","applyToSingletonTag","URL","createObjectURL","revokeObjectURL","Blob","btoa","updateLink","href","applyToTag","newObj","styleSheet","replaceText","cssNode","unescape","encodeURIComponent","blob","oldSrc","memoize","memo","isOldIE","getElementsByTagName","newList","mayRemove","textStore","replacement","filter","Boolean"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAA,SAAAA,EAAAC,GACA,gBAAAC,UAAA,gBAAAC,QACAA,OAAAD,QAAAD,IACA,kBAAAG,gBAAAC,IACAD,UAAAH,GACA,gBAAAC,SACAA,QAAA,WAAAD,IAEAD,EAAA,WAAAC,KACCK,KAAA,WACD,MC6BgB,UAAUC,GCnC1B,QAAAC,GAAAC,GAGA,GAAAC,EAAAD,GACA,MAAAC,GAAAD,GAAAP,OAGA,IAAAC,GAAAO,EAAAD,IACAP,WACAS,GAAAF,EACAG,QAAA,EAUA,OANAL,GAAAE,GAAAI,KAAAV,EAAAD,QAAAC,IA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ist.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"jsoneditor\"] = factory();\n\telse\n\t\troot[\"jsoneditor\"] = factory();\n})(this, function() {\nreturn \n\n\n/** WEBPACK FOOTER **\n ** webpack/universalModuleDefinition\n **/","/*!\n * jsoneditor.js\n *\n * @brief\n * JSONEditor is a web-based tool to view, edit, format, and validate JSON.\n * It has various modes such as a tree editor, a code editor, and a plain text\n * editor.\n *\n * Supported browsers: Chrome, Firefox, Safari, Opera, Internet Explorer 8+\n *\n * @license\n * Licensed under the Apache License, Version 2.0 (the \"License\"); you may not\n * use this file except in compliance with the License. You may obtain a copy\n * of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the\n * License for the specific language governing permissions and limitations under\n * the License.\n *\n * Copyright (c) 2011-2016 Jos de Jong, http://jsoneditoronline.org\n *\n * @author Jos de Jong, \n * @version 6.0.0-BETA\n * @date 2016-08-13\n */\n(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"jsoneditor\"] = factory();\n\telse\n\t\troot[\"jsoneditor\"] = factory();\n})(this, function() {\nreturn /******/ (function(modules) { // webpackBootstrap\n/******/ \t// The module cache\n/******/ \tvar installedModules = {};\n/******/\n/******/ \t// The require function\n/******/ \tfunction __webpack_require__(moduleId) {\n/******/\n/******/ \t\t// Check if module is in cache\n/******/ \t\tif(installedModules[moduleId])\n/******/ \t\t\treturn installedModules[moduleId].exports;\n/******/\n/******/ \t\t// Create a new module (and put it into the cache)\n/******/ \t\tvar module = installedModules[moduleId] = {\n/******/ \t\t\texports: {},\n/******/ \t\t\tid: moduleId,\n/******/ \t\t\tloaded: false\n/******/ \t\t};\n/******/\n/******/ \t\t// Execute the module function\n/******/ \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n/******/\n/******/ \t\t// Flag the module as loaded\n/******/ \t\tmodule.loaded = true;\n/******/\n/******/ \t\t// Return the exports of the module\n/******/ \t\treturn module.exports;\n/******/ \t}\n/******/\n/******/\n/******/ \t// expose the modules object (__webpack_modules__)\n/******/ \t__webpack_require__.m = modules;\n/******/\n/******/ \t// expose the module cache\n/******/ \t__webpack_require__.c = installedModules;\n/******/\n/******/ \t// __webpack_public_path__\n/******/ \t__webpack_require__.p = \"\";\n/******/\n/******/ \t// Load entry module and return exports\n/******/ \treturn __webpack_require__(0);\n/******/ })\n/************************************************************************/\n/******/ ([\n/* 0 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar _preact = __webpack_require__(1);\n\t\n\tvar _TreeMode = __webpack_require__(4);\n\t\n\tvar _TreeMode2 = _interopRequireDefault(_TreeMode);\n\t\n\t__webpack_require__(14);\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\t\n\t/**\n\t * Factory function to create a new JSONEditor\n\t * @param container\n\t * @param {Options} options\n\t * @return {*}\n\t * @constructor\n\t */\n\tfunction jsoneditor(container, options) {\n\t // TODO: use JSONEditor instead of TreeMode\n\t var elem = (0, _preact.render)((0, _preact.h)(_TreeMode2.default, { options: options }), container);\n\t return elem._component;\n\t}\n\t\n\t// TODO: use export default jsoneditor, doesn't work out of the box in webpack\n\tmodule.exports = jsoneditor;\n\n/***/ },\n/* 1 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/* WEBPACK VAR INJECTION */(function(setImmediate) {!function(global, factory) {\n\t true ? factory(exports) : 'function' == typeof define && define.amd ? define([ 'exports' ], factory) : factory(global.preact = global.preact || {});\n\t}(this, function(exports) {\n\t function VNode(nodeName, attributes, children) {\n\t this.nodeName = nodeName;\n\t this.attributes = attributes;\n\t this.children = children;\n\t this.key = attributes && attributes.key;\n\t }\n\t function extend(obj, props) {\n\t if (props) for (var i in props) if (void 0 !== props[i]) obj[i] = props[i];\n\t return obj;\n\t }\n\t function clone(obj) {\n\t return extend({}, obj);\n\t }\n\t function delve(obj, key) {\n\t for (var p = key.split('.'), i = 0; i < p.length && obj; i++) obj = obj[p[i]];\n\t return obj;\n\t }\n\t function toArray(obj, offset) {\n\t return [].slice.call(obj, offset);\n\t }\n\t function isFunction(obj) {\n\t return 'function' == typeof obj;\n\t }\n\t function isString(obj) {\n\t return 'string' == typeof obj;\n\t }\n\t function empty(x) {\n\t return void 0 === x || null === x;\n\t }\n\t function falsey(value) {\n\t return value === !1 || empty(value);\n\t }\n\t function hashToClassName(c) {\n\t var str = '';\n\t for (var prop in c) if (c[prop]) {\n\t if (str) str += ' ';\n\t str += prop;\n\t }\n\t return str;\n\t }\n\t function h(nodeName, attributes, firstChild) {\n\t var children, arr, lastSimple, len = arguments.length;\n\t if (len > 2) {\n\t var type = typeof firstChild;\n\t if (3 === len && 'object' !== type && 'function' !== type) {\n\t if (!falsey(firstChild)) children = [ String(firstChild) ];\n\t } else {\n\t children = [];\n\t for (var i = 2; i < len; i++) {\n\t var _p = arguments[i];\n\t if (!falsey(_p)) {\n\t if (_p.join) arr = _p; else (arr = SHARED_TEMP_ARRAY)[0] = _p;\n\t for (var j = 0; j < arr.length; j++) {\n\t var child = arr[j], simple = !(falsey(child) || isFunction(child) || child instanceof VNode);\n\t if (simple && !isString(child)) child = String(child);\n\t if (simple && lastSimple) children[children.length - 1] += child; else if (!falsey(child)) {\n\t children.push(child);\n\t lastSimple = simple;\n\t }\n\t }\n\t } else ;\n\t }\n\t }\n\t } else if (attributes && attributes.children) return h(nodeName, attributes, attributes.children);\n\t if (attributes) {\n\t if (attributes.children) delete attributes.children;\n\t if (!isFunction(nodeName)) {\n\t if ('className' in attributes) {\n\t attributes.class = attributes.className;\n\t delete attributes.className;\n\t }\n\t lastSimple = attributes.class;\n\t if (lastSimple && !isString(lastSimple)) attributes.class = hashToClassName(lastSimple);\n\t }\n\t }\n\t var p = new VNode(nodeName, attributes || void 0, children);\n\t if (options.vnode) options.vnode(p);\n\t return p;\n\t }\n\t function cloneElement(vnode, props) {\n\t return h(vnode.nodeName, extend(clone(vnode.attributes), props), arguments.length > 2 ? toArray(arguments, 2) : vnode.children);\n\t }\n\t function createLinkedState(component, key, eventPath) {\n\t var path = key.split('.'), p0 = path[0];\n\t return function(e) {\n\t var _component$setState;\n\t var v, i, t = e && e.currentTarget || this, s = component.state, obj = s;\n\t if (isString(eventPath)) {\n\t v = delve(e, eventPath);\n\t if (empty(v) && (t = t._component)) v = delve(t, eventPath);\n\t } else v = t.nodeName ? (t.nodeName + t.type).match(/^input(check|rad)/i) ? t.checked : t.value : e;\n\t if (isFunction(v)) v = v.call(t);\n\t if (path.length > 1) {\n\t for (i = 0; i < path.length - 1; i++) obj = obj[path[i]] || (obj[path[i]] = {});\n\t obj[path[i]] = v;\n\t v = s[p0];\n\t }\n\t component.setState((_component$setState = {}, _component$setState[p0] = v, _component$setState));\n\t };\n\t }\n\t function enqueueRender(component) {\n\t if (1 === items.push(component)) (options.debounceRendering || setImmediate)(rerender);\n\t }\n\t function rerender() {\n\t if (items.length) {\n\t var p, currentItems = items;\n\t items = itemsOffline;\n\t itemsOffline = currentItems;\n\t while (p = currentItems.pop()) if (p._dirty) renderComponent(p);\n\t }\n\t }\n\t function isFunctionalComponent(vnode) {\n\t var nodeName = vnode && vnode.nodeName;\n\t return nodeName && isFunction(nodeName) && !(nodeName.prototype && nodeName.prototype.render);\n\t }\n\t function buildFunctionalComponent(vnode, context) {\n\t return vnode.nodeName(getNodeProps(vnode), context || EMPTY);\n\t }\n\t function ensureNodeData(node, data) {\n\t return node[ATTR_KEY] || (node[ATTR_KEY] = data || {});\n\t }\n\t function getNodeType(node) {\n\t if (node instanceof Text) return 3;\n\t if (node instanceof Element) return 1; else return 0;\n\t }\n\t function removeNode(node) {\n\t var p = node.parentNode;\n\t if (p) p.removeChild(node);\n\t }\n\t function setAccessor(node, name, value, old, isSvg) {\n\t ensureNodeData(node)[name] = value;\n\t if ('key' !== name && 'children' !== name) if ('class' === name && !isSvg) node.className = value || ''; else if ('style' === name) {\n\t if (!value || isString(value) || isString(old)) node.style.cssText = value || '';\n\t if (value && 'object' == typeof value) {\n\t if (!isString(old)) for (var i in old) if (!(i in value)) node.style[i] = '';\n\t for (var i in value) node.style[i] = 'number' == typeof value[i] && !NON_DIMENSION_PROPS[i] ? value[i] + 'px' : value[i];\n\t }\n\t } else if ('dangerouslySetInnerHTML' === name) {\n\t if (value) node.innerHTML = value.__html;\n\t } else if ('o' === name[0] && 'n' === name[1]) {\n\t var l = node._listeners || (node._listeners = {});\n\t name = toLowerCase(name.substring(2));\n\t if (value) {\n\t if (!l[name]) node.addEventListener(name, eventProxy);\n\t } else if (l[name]) node.removeEventListener(name, eventProxy);\n\t l[name] = value;\n\t } else if ('type' !== name && !isSvg && name in node) {\n\t setProperty(node, name, empty(value) ? '' : value);\n\t if (falsey(value)) node.removeAttribute(name);\n\t } else {\n\t var ns = isSvg && name.match(/^xlink\\:?(.+)/);\n\t if (falsey(value)) if (ns) node.removeAttributeNS('http://www.w3.org/1999/xlink', toLowerCase(ns[1])); else node.removeAttribute(name); else if ('object' != typeof value && !isFunction(value)) if (ns) node.setAttributeNS('http://www.w3.org/1999/xlink', toLowerCase(ns[1]), value); else node.setAttribute(name, value);\n\t }\n\t }\n\t function setProperty(node, name, value) {\n\t try {\n\t node[name] = value;\n\t } catch (e) {}\n\t }\n\t function eventProxy(e) {\n\t return this._listeners[e.type](options.event && options.event(e) || e);\n\t }\n\t function getRawNodeAttributes(node) {\n\t var attrs = {};\n\t for (var i = node.attributes.length; i--; ) attrs[node.attributes[i].name] = node.attributes[i].value;\n\t return attrs;\n\t }\n\t function isSameNodeType(node, vnode) {\n\t if (isString(vnode)) return 3 === getNodeType(node);\n\t if (isString(vnode.nodeName)) return isNamedNode(node, vnode.nodeName);\n\t if (isFunction(vnode.nodeName)) return node._componentConstructor === vnode.nodeName || isFunctionalComponent(vnode); else ;\n\t }\n\t function isNamedNode(node, nodeName) {\n\t return node.normalizedNodeName === nodeName || toLowerCase(node.nodeName) === toLowerCase(nodeName);\n\t }\n\t function getNodeProps(vnode) {\n\t var defaultProps = vnode.nodeName.defaultProps, props = clone(defaultProps || vnode.attributes);\n\t if (defaultProps) extend(props, vnode.attributes);\n\t if (vnode.children) props.children = vnode.children;\n\t return props;\n\t }\n\t function collectNode(node) {\n\t cleanNode(node);\n\t var name = toLowerCase(node.nodeName), list = nodes[name];\n\t if (list) list.push(node); else nodes[name] = [ node ];\n\t }\n\t function createNode(nodeName, isSvg) {\n\t var name = toLowerCase(nodeName), node = nodes[name] && nodes[name].pop() || (isSvg ? document.createElementNS('http://www.w3.org/2000/svg', nodeName) : document.createElement(nodeName));\n\t ensureNodeData(node);\n\t node.normalizedNodeName = name;\n\t return node;\n\t }\n\t function cleanNode(node) {\n\t removeNode(node);\n\t if (1 === getNodeType(node)) {\n\t ensureNodeData(node, getRawNodeAttributes(node));\n\t node._component = node._componentConstructor = null;\n\t }\n\t }\n\t function flushMounts() {\n\t var c;\n\t while (c = mounts.pop()) if (c.componentDidMount) c.componentDidMount();\n\t }\n\t function diff(dom, vnode, context, mountAll, parent) {\n\t diffLevel++;\n\t var ret = idiff(dom, vnode, context, mountAll);\n\t if (parent && ret.parentNode !== parent) parent.appendChild(ret);\n\t if (!--diffLevel) flushMounts();\n\t return ret;\n\t }\n\t function idiff(dom, vnode, context, mountAll) {\n\t var originalAttributes = vnode && vnode.attributes;\n\t while (isFunctionalComponent(vnode)) vnode = buildFunctionalComponent(vnode, context);\n\t if (empty(vnode)) return document.createComment('');\n\t if (isString(vnode)) {\n\t if (dom) {\n\t if (3 === getNodeType(dom) && dom.parentNode) {\n\t if (dom.nodeValue != vnode) dom.nodeValue = vnode;\n\t return dom;\n\t }\n\t collectNode(dom);\n\t }\n\t return document.createTextNode(vnode);\n\t }\n\t var svgMode, out = dom, nodeName = vnode.nodeName;\n\t if (isFunction(nodeName)) return buildComponentFromVNode(dom, vnode, context, mountAll);\n\t if (!isString(nodeName)) nodeName = String(nodeName);\n\t svgMode = 'svg' === toLowerCase(nodeName);\n\t if (svgMode) isSvgMode = !0;\n\t if (!dom) out = createNode(nodeName, isSvgMode); else if (!isNamedNode(dom, nodeName)) {\n\t out = createNode(nodeName, isSvgMode);\n\t while (dom.firstChild) out.appendChild(dom.firstChild);\n\t recollectNodeTree(dom);\n\t }\n\t if (vnode.children && 1 === vnode.children.length && 'string' == typeof vnode.children[0] && 1 === out.childNodes.length && out.firstChild instanceof Text) out.firstChild.nodeValue = vnode.children[0]; else if (vnode.children || out.firstChild) innerDiffNode(out, vnode.children, context, mountAll);\n\t diffAttributes(out, vnode.attributes);\n\t if (originalAttributes && originalAttributes.ref) (out[ATTR_KEY].ref = originalAttributes.ref)(out);\n\t if (svgMode) isSvgMode = !1;\n\t return out;\n\t }\n\t function innerDiffNode(dom, vchildren, context, mountAll) {\n\t var j, c, vchild, child, originalChildren = dom.childNodes, children = [], keyed = {}, keyedLen = 0, min = 0, len = originalChildren.length, childrenLen = 0, vlen = vchildren && vchildren.length;\n\t if (len) for (var i = 0; i < len; i++) {\n\t var _child = originalChildren[i], key = vlen ? (c = _child._component) ? c.__key : (c = _child[ATTR_KEY]) ? c.key : null : null;\n\t if (key || 0 === key) {\n\t keyedLen++;\n\t keyed[key] = _child;\n\t } else children[childrenLen++] = _child;\n\t }\n\t if (vlen) for (var i = 0; i < vlen; i++) {\n\t vchild = vchildren[i];\n\t child = null;\n\t if (keyedLen && vchild.attributes) {\n\t var key = vchild.key;\n\t if (!empty(key) && key in keyed) {\n\t child = keyed[key];\n\t keyed[key] = void 0;\n\t keyedLen--;\n\t }\n\t }\n\t if (!child && min < childrenLen) for (j = min; j < childrenLen; j++) {\n\t c = children[j];\n\t if (c && isSameNodeType(c, vchild)) {\n\t child = c;\n\t children[j] = void 0;\n\t if (j === childrenLen - 1) childrenLen--;\n\t if (j === min) min++;\n\t break;\n\t }\n\t }\n\t child = idiff(child, vchild, context, mountAll);\n\t if (child !== originalChildren[i]) dom.insertBefore(child, originalChildren[i] || null);\n\t }\n\t if (keyedLen) for (var i in keyed) if (keyed[i]) children[min = childrenLen++] = keyed[i];\n\t if (min < childrenLen) removeOrphanedChildren(children);\n\t }\n\t function removeOrphanedChildren(children, unmountOnly) {\n\t for (var i = children.length; i--; ) {\n\t var child = children[i];\n\t if (child) recollectNodeTree(child, unmountOnly);\n\t }\n\t }\n\t function recollectNodeTree(node, unmountOnly) {\n\t var component = node._component;\n\t if (component) unmountComponent(component, !unmountOnly); else {\n\t if (node[ATTR_KEY] && node[ATTR_KEY].ref) node[ATTR_KEY].ref(null);\n\t if (!unmountOnly) collectNode(node);\n\t if (node.childNodes && node.childNodes.length) removeOrphanedChildren(node.childNodes, unmountOnly);\n\t }\n\t }\n\t function diffAttributes(dom, attrs) {\n\t var old = dom[ATTR_KEY] || getRawNodeAttributes(dom);\n\t for (var _name in old) if (!(attrs && _name in attrs)) setAccessor(dom, _name, null, old[_name], isSvgMode);\n\t if (attrs) for (var _name2 in attrs) if (!(_name2 in old) || attrs[_name2] != ('value' === _name2 || 'selected' === _name2 || 'checked' === _name2 ? dom[_name2] : old[_name2])) setAccessor(dom, _name2, attrs[_name2], old[_name2], isSvgMode);\n\t }\n\t function collectComponent(component) {\n\t var name = component.constructor.name, list = components[name];\n\t if (list) list.push(component); else components[name] = [ component ];\n\t }\n\t function createComponent(Ctor, props, context) {\n\t var inst = new Ctor(props, context), list = components[Ctor.name];\n\t if (list) for (var i = list.length; i--; ) if (list[i].constructor === Ctor) {\n\t inst.nextBase = list[i].nextBase;\n\t list.splice(i, 1);\n\t break;\n\t }\n\t return inst;\n\t }\n\t function triggerComponentRender(component) {\n\t if (!component._dirty) {\n\t component._dirty = !0;\n\t enqueueRender(component);\n\t }\n\t }\n\t function setComponentProps(component, props, opts, context, mountAll) {\n\t var b = component.base;\n\t if (!component._disableRendering) {\n\t component._disableRendering = !0;\n\t if (component.__ref = props.ref) delete props.ref;\n\t if (component.__key = props.key) delete props.key;\n\t if (empty(b) || mountAll) {\n\t if (component.componentWillMount) component.componentWillMount();\n\t } else if (component.componentWillReceiveProps) component.componentWillReceiveProps(props, context);\n\t if (context && context !== component.context) {\n\t if (!component.prevContext) component.prevContext = component.context;\n\t component.context = context;\n\t }\n\t if (!component.prevProps) component.prevProps = component.props;\n\t component.props = props;\n\t component._disableRendering = !1;\n\t if (0 !== opts) if (1 === opts || options.syncComponentUpdates !== !1 || !b) renderComponent(component, 1, mountAll); else triggerComponentRender(component);\n\t if (component.__ref) component.__ref(component);\n\t }\n\t }\n\t function renderComponent(component, opts, mountAll) {\n\t if (!component._disableRendering) {\n\t var skip, rendered, props = component.props, state = component.state, context = component.context, previousProps = component.prevProps || props, previousState = component.prevState || state, previousContext = component.prevContext || context, isUpdate = component.base, initialBase = isUpdate || component.nextBase, nextSibling = initialBase && initialBase.nextSibling, baseParent = initialBase && initialBase.parentNode, initialComponent = initialBase && initialBase._component, initialChildComponent = component._component;\n\t if (isUpdate) {\n\t component.props = previousProps;\n\t component.state = previousState;\n\t component.context = previousContext;\n\t if (2 !== opts && component.shouldComponentUpdate && component.shouldComponentUpdate(props, state, context) === !1) skip = !0; else if (component.componentWillUpdate) component.componentWillUpdate(props, state, context);\n\t component.props = props;\n\t component.state = state;\n\t component.context = context;\n\t }\n\t component.prevProps = component.prevState = component.prevContext = component.nextBase = null;\n\t component._dirty = !1;\n\t if (!skip) {\n\t if (component.render) rendered = component.render(props, state, context);\n\t if (component.getChildContext) context = extend(clone(context), component.getChildContext());\n\t while (isFunctionalComponent(rendered)) rendered = buildFunctionalComponent(rendered, context);\n\t var toUnmount, base, childComponent = rendered && rendered.nodeName;\n\t if (isFunction(childComponent) && childComponent.prototype.render) {\n\t var inst = initialChildComponent, childProps = getNodeProps(rendered);\n\t if (inst && inst.constructor === childComponent) setComponentProps(inst, childProps, 1, context); else {\n\t toUnmount = inst;\n\t inst = createComponent(childComponent, childProps, context);\n\t inst._parentComponent = component;\n\t component._component = inst;\n\t setComponentProps(inst, childProps, 0, context);\n\t renderComponent(inst, 1);\n\t }\n\t base = inst.base;\n\t } else {\n\t var cbase = initialBase;\n\t toUnmount = initialChildComponent;\n\t if (toUnmount) cbase = component._component = null;\n\t if (initialBase || 1 === opts) {\n\t if (cbase) cbase._component = null;\n\t base = diff(cbase, rendered, context, mountAll || !isUpdate);\n\t }\n\t }\n\t if (initialBase && base !== initialBase) {\n\t if (baseParent && base !== baseParent) baseParent.insertBefore(base, nextSibling || null);\n\t if (!toUnmount && initialComponent === component && !initialChildComponent && initialBase.parentNode) {\n\t initialBase._component = null;\n\t recollectNodeTree(initialBase);\n\t }\n\t }\n\t if (toUnmount) unmountComponent(toUnmount, !0);\n\t component.base = base;\n\t if (base) {\n\t var componentRef = component, t = component;\n\t while (t = t._parentComponent) componentRef = t;\n\t base._component = componentRef;\n\t base._componentConstructor = componentRef.constructor;\n\t }\n\t }\n\t if (!isUpdate || mountAll) {\n\t mounts.unshift(component);\n\t if (!diffLevel) flushMounts();\n\t } else if (!skip && component.componentDidUpdate) component.componentDidUpdate(previousProps, previousState, previousContext);\n\t var fn, cb = component._renderCallbacks;\n\t if (cb) while (fn = cb.pop()) fn.call(component);\n\t return rendered;\n\t }\n\t }\n\t function buildComponentFromVNode(dom, vnode, context, mountAll) {\n\t var c = dom && dom._component, oldDom = dom, isDirectOwner = c && dom._componentConstructor === vnode.nodeName, isOwner = isDirectOwner, props = getNodeProps(vnode);\n\t while (c && !isOwner && (c = c._parentComponent)) isOwner = c.constructor === vnode.nodeName;\n\t if (isOwner && (!mountAll || c._component)) {\n\t setComponentProps(c, props, 3, context, mountAll);\n\t dom = c.base;\n\t } else {\n\t if (c && !isDirectOwner) {\n\t unmountComponent(c, !0);\n\t dom = oldDom = null;\n\t }\n\t c = createComponent(vnode.nodeName, props, context);\n\t if (dom && !c.nextBase) c.nextBase = dom;\n\t setComponentProps(c, props, 1, context, mountAll);\n\t dom = c.base;\n\t if (oldDom && dom !== oldDom) {\n\t oldDom._component = null;\n\t recollectNodeTree(oldDom);\n\t }\n\t }\n\t return dom;\n\t }\n\t function unmountComponent(component, remove) {\n\t var base = component.base;\n\t component._disableRendering = !0;\n\t if (component.componentWillUnmount) component.componentWillUnmount();\n\t component.base = null;\n\t var inner = component._component;\n\t if (inner) unmountComponent(inner, remove); else if (base) {\n\t if (base[ATTR_KEY] && base[ATTR_KEY].ref) base[ATTR_KEY].ref(null);\n\t component.nextBase = base;\n\t if (remove) {\n\t removeNode(base);\n\t collectComponent(component);\n\t }\n\t removeOrphanedChildren(base.childNodes, !remove);\n\t }\n\t if (component.__ref) component.__ref(null);\n\t if (component.componentDidUnmount) component.componentDidUnmount();\n\t }\n\t function Component(props, context) {\n\t this._dirty = !0;\n\t this._disableRendering = !1;\n\t this.prevState = this.prevProps = this.prevContext = this.base = this.nextBase = this._parentComponent = this._component = this.__ref = this.__key = this._linkedStates = this._renderCallbacks = null;\n\t this.context = context || {};\n\t this.props = props;\n\t this.state = this.getInitialState && this.getInitialState() || {};\n\t }\n\t function render(vnode, parent, merge) {\n\t return diff(merge, vnode, {}, !1, parent);\n\t }\n\t var lcCache = {};\n\t var toLowerCase = function(s) {\n\t return lcCache[s] || (lcCache[s] = s.toLowerCase());\n\t };\n\t var resolved = 'undefined' != typeof Promise && Promise.resolve();\n\t var setImmediate = resolved ? function(f) {\n\t resolved.then(f);\n\t } : setTimeout;\n\t var options = {\n\t vnode: empty\n\t };\n\t var SHARED_TEMP_ARRAY = [];\n\t var EMPTY = {};\n\t var ATTR_KEY = 'undefined' != typeof Symbol ? Symbol.for('preactattr') : '__preactattr_';\n\t var NON_DIMENSION_PROPS = {\n\t boxFlex: 1,\n\t boxFlexGroup: 1,\n\t columnCount: 1,\n\t fillOpacity: 1,\n\t flex: 1,\n\t flexGrow: 1,\n\t flexPositive: 1,\n\t flexShrink: 1,\n\t flexNegative: 1,\n\t fontWeight: 1,\n\t lineClamp: 1,\n\t lineHeight: 1,\n\t opacity: 1,\n\t order: 1,\n\t orphans: 1,\n\t strokeOpacity: 1,\n\t widows: 1,\n\t zIndex: 1,\n\t zoom: 1\n\t };\n\t var items = [];\n\t var itemsOffline = [];\n\t var nodes = {};\n\t var mounts = [];\n\t var diffLevel = 0;\n\t var isSvgMode = !1;\n\t var components = {};\n\t extend(Component.prototype, {\n\t linkState: function(key, eventPath) {\n\t var c = this._linkedStates || (this._linkedStates = {}), cacheKey = key + '|' + eventPath;\n\t return c[cacheKey] || (c[cacheKey] = createLinkedState(this, key, eventPath));\n\t },\n\t setState: function(state, callback) {\n\t var s = this.state;\n\t if (!this.prevState) this.prevState = clone(s);\n\t extend(s, isFunction(state) ? state(s, this.props) : state);\n\t if (callback) (this._renderCallbacks = this._renderCallbacks || []).push(callback);\n\t triggerComponentRender(this);\n\t },\n\t forceUpdate: function() {\n\t renderComponent(this, 2);\n\t },\n\t render: function() {\n\t return null;\n\t }\n\t });\n\t exports.h = h;\n\t exports.cloneElement = cloneElement;\n\t exports.Component = Component;\n\t exports.render = render;\n\t exports.rerender = rerender;\n\t exports.options = options;\n\t});\n\t//# sourceMappingURL=preact.js.map\n\t/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(2).setImmediate))\n\n/***/ },\n/* 2 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/* WEBPACK VAR INJECTION */(function(setImmediate, clearImmediate) {var nextTick = __webpack_require__(3).nextTick;\n\tvar apply = Function.prototype.apply;\n\tvar slice = Array.prototype.slice;\n\tvar immediateIds = {};\n\tvar nextImmediateId = 0;\n\t\n\t// DOM APIs, for completeness\n\t\n\texports.setTimeout = function() {\n\t return new Timeout(apply.call(setTimeout, window, arguments), clearTimeout);\n\t};\n\texports.setInterval = function() {\n\t return new Timeout(apply.call(setInterval, window, arguments), clearInterval);\n\t};\n\texports.clearTimeout =\n\texports.clearInterval = function(timeout) { timeout.close(); };\n\t\n\tfunction Timeout(id, clearFn) {\n\t this._id = id;\n\t this._clearFn = clearFn;\n\t}\n\tTimeout.prototype.unref = Timeout.prototype.ref = function() {};\n\tTimeout.prototype.close = function() {\n\t this._clearFn.call(window, this._id);\n\t};\n\t\n\t// Does not start the time, just sets up the members needed.\n\texports.enroll = function(item, msecs) {\n\t clearTimeout(item._idleTimeoutId);\n\t item._idleTimeout = msecs;\n\t};\n\t\n\texports.unenroll = function(item) {\n\t clearTimeout(item._idleTimeoutId);\n\t item._idleTimeout = -1;\n\t};\n\t\n\texports._unrefActive = exports.active = function(item) {\n\t clearTimeout(item._idleTimeoutId);\n\t\n\t var msecs = item._idleTimeout;\n\t if (msecs >= 0) {\n\t item._idleTimeoutId = setTimeout(function onTimeout() {\n\t if (item._onTimeout)\n\t item._onTimeout();\n\t }, msecs);\n\t }\n\t};\n\t\n\t// That's not how node.js implements it but the exposed api is the same.\n\texports.setImmediate = typeof setImmediate === \"function\" ? setImmediate : function(fn) {\n\t var id = nextImmediateId++;\n\t var args = arguments.length < 2 ? false : slice.call(arguments, 1);\n\t\n\t immediateIds[id] = true;\n\t\n\t nextTick(function onNextTick() {\n\t if (immediateIds[id]) {\n\t // fn.call() is faster so we optimize for the common use-case\n\t // @see http://jsperf.com/call-apply-segu\n\t if (args) {\n\t fn.apply(null, args);\n\t } else {\n\t fn.call(null);\n\t }\n\t // Prevent ids from leaking\n\t exports.clearImmediate(id);\n\t }\n\t });\n\t\n\t return id;\n\t};\n\t\n\texports.clearImmediate = typeof clearImmediate === \"function\" ? clearImmediate : function(id) {\n\t delete immediateIds[id];\n\t};\n\t/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(2).setImmediate, __webpack_require__(2).clearImmediate))\n\n/***/ },\n/* 3 */\n/***/ function(module, exports) {\n\n\t// shim for using process in browser\n\tvar process = module.exports = {};\n\t\n\t// cached from whatever global is present so that test runners that stub it\n\t// don't break things. But we need to wrap it in a try catch in case it is\n\t// wrapped in strict mode code which doesn't define any globals. It's inside a\n\t// function because try/catches deoptimize in certain engines.\n\t\n\tvar cachedSetTimeout;\n\tvar cachedClearTimeout;\n\t\n\t(function () {\n\t try {\n\t cachedSetTimeout = setTimeout;\n\t } catch (e) {\n\t cachedSetTimeout = function () {\n\t throw new Error('setTimeout is not defined');\n\t }\n\t }\n\t try {\n\t cachedClearTimeout = clearTimeout;\n\t } catch (e) {\n\t cachedClearTimeout = function () {\n\t throw new Error('clearTimeout is not defined');\n\t }\n\t }\n\t} ())\n\tfunction runTimeout(fun) {\n\t if (cachedSetTimeout === setTimeout) {\n\t //normal enviroments in sane situations\n\t return setTimeout(fun, 0);\n\t }\n\t try {\n\t // when when somebody has screwed with setTimeout but no I.E. maddness\n\t return cachedSetTimeout(fun, 0);\n\t } catch(e){\n\t try {\n\t // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n\t return cachedSetTimeout.call(null, fun, 0);\n\t } catch(e){\n\t // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error\n\t return cachedSetTimeout.call(this, fun, 0);\n\t }\n\t }\n\t\n\t\n\t}\n\tfunction runClearTimeout(marker) {\n\t if (cachedClearTimeout === clearTimeout) {\n\t //normal enviroments in sane situations\n\t return clearTimeout(marker);\n\t }\n\t try {\n\t // when when somebody has screwed with setTimeout but no I.E. maddness\n\t return cachedClearTimeout(marker);\n\t } catch (e){\n\t try {\n\t // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n\t return cachedClearTimeout.call(null, marker);\n\t } catch (e){\n\t // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.\n\t // Some versions of I.E. have different rules for clearTimeout vs setTimeout\n\t return cachedClearTimeout.call(this, marker);\n\t }\n\t }\n\t\n\t\n\t\n\t}\n\tvar queue = [];\n\tvar draining = false;\n\tvar currentQueue;\n\tvar queueIndex = -1;\n\t\n\tfunction cleanUpNextTick() {\n\t if (!draining || !currentQueue) {\n\t return;\n\t }\n\t draining = false;\n\t if (currentQueue.length) {\n\t queue = currentQueue.concat(queue);\n\t } else {\n\t queueIndex = -1;\n\t }\n\t if (queue.length) {\n\t drainQueue();\n\t }\n\t}\n\t\n\tfunction drainQueue() {\n\t if (draining) {\n\t return;\n\t }\n\t var timeout = runTimeout(cleanUpNextTick);\n\t draining = true;\n\t\n\t var len = queue.length;\n\t while(len) {\n\t currentQueue = queue;\n\t queue = [];\n\t while (++queueIndex < len) {\n\t if (currentQueue) {\n\t currentQueue[queueIndex].run();\n\t }\n\t }\n\t queueIndex = -1;\n\t len = queue.length;\n\t }\n\t currentQueue = null;\n\t draining = false;\n\t runClearTimeout(timeout);\n\t}\n\t\n\tprocess.nextTick = function (fun) {\n\t var args = new Array(arguments.length - 1);\n\t if (arguments.length > 1) {\n\t for (var i = 1; i < arguments.length; i++) {\n\t args[i - 1] = arguments[i];\n\t }\n\t }\n\t queue.push(new Item(fun, args));\n\t if (queue.length === 1 && !draining) {\n\t runTimeout(drainQueue);\n\t }\n\t};\n\t\n\t// v8 likes predictible objects\n\tfunction Item(fun, array) {\n\t this.fun = fun;\n\t this.array = array;\n\t}\n\tItem.prototype.run = function () {\n\t this.fun.apply(null, this.array);\n\t};\n\tprocess.title = 'browser';\n\tprocess.browser = true;\n\tprocess.env = {};\n\tprocess.argv = [];\n\tprocess.version = ''; // empty string to avoid regexp issues\n\tprocess.versions = {};\n\t\n\tfunction noop() {}\n\t\n\tprocess.on = noop;\n\tprocess.addListener = noop;\n\tprocess.once = noop;\n\tprocess.off = noop;\n\tprocess.removeListener = noop;\n\tprocess.removeAllListeners = noop;\n\tprocess.emit = noop;\n\t\n\tprocess.binding = function (name) {\n\t throw new Error('process.binding is not supported');\n\t};\n\t\n\tprocess.cwd = function () { return '/' };\n\tprocess.chdir = function (dir) {\n\t throw new Error('process.chdir is not supported');\n\t};\n\tprocess.umask = function() { return 0; };\n\n\n/***/ },\n/* 4 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\t\n\tvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol ? \"symbol\" : typeof obj; };\n\t\n\tvar _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\t\n\tvar _preact = __webpack_require__(1);\n\t\n\tvar _objectUtils = __webpack_require__(5);\n\t\n\tvar _arrayUtils = __webpack_require__(7);\n\t\n\tvar _typeUtils = __webpack_require__(6);\n\t\n\tvar _bindMethods = __webpack_require__(8);\n\t\n\tvar _bindMethods2 = _interopRequireDefault(_bindMethods);\n\t\n\tvar _JSONNode = __webpack_require__(9);\n\t\n\tvar _JSONNode2 = _interopRequireDefault(_JSONNode);\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\t\n\tfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\t\n\tfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\t\n\tfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\t\n\tvar TreeMode = function (_Component) {\n\t _inherits(TreeMode, _Component);\n\t\n\t // TODO: define propTypes\n\t\n\t function TreeMode(props) {\n\t _classCallCheck(this, TreeMode);\n\t\n\t var _this = _possibleConstructorReturn(this, Object.getPrototypeOf(TreeMode).call(this, props));\n\t\n\t (0, _bindMethods2.default)(_this);\n\t\n\t var name = _this.props.options && _this.props.options.name || null;\n\t var expand = _this.props.options && _this.props.options.expand || TreeMode.expand;\n\t\n\t _this.state = {\n\t options: {\n\t name: name\n\t },\n\t\n\t data: jsonToData([], _this.props.data || {}, expand),\n\t\n\t events: {\n\t onChangeProperty: _this.handleChangeProperty,\n\t onChangeValue: _this.handleChangeValue,\n\t onChangeType: _this.handleChangeType,\n\t onInsert: _this.handleInsert,\n\t onAppend: _this.handleAppend,\n\t onDuplicate: _this.handleDuplicate,\n\t onRemove: _this.handleRemove,\n\t onSort: _this.handleSort,\n\t\n\t onExpand: _this.handleExpand\n\t },\n\t\n\t search: null\n\t };\n\t return _this;\n\t }\n\t\n\t _createClass(TreeMode, [{\n\t key: 'render',\n\t value: function render() {\n\t return (0, _preact.h)('div', { class: 'jsoneditor', contentEditable: 'false', onClick: _JSONNode2.default.hideContextMenu }, [(0, _preact.h)('ul', { class: 'jsoneditor-list', contentEditable: 'false' }, [(0, _preact.h)(_JSONNode2.default, {\n\t data: this.state.data,\n\t events: this.state.events,\n\t options: this.state.options,\n\t parent: null,\n\t prop: null\n\t })])]);\n\t }\n\t }, {\n\t key: 'handleChangeValue',\n\t value: function handleChangeValue(path, value) {\n\t console.log('handleChangeValue', path, value);\n\t\n\t var dataPath = toDataPath(this.state.data, path);\n\t\n\t this.setState({\n\t data: (0, _objectUtils.setIn)(this.state.data, dataPath.concat(['value']), value)\n\t });\n\t }\n\t }, {\n\t key: 'handleChangeProperty',\n\t value: function handleChangeProperty(path, oldProp, newProp) {\n\t console.log('handleChangeProperty', path, oldProp, newProp);\n\t\n\t var dataPath = toDataPath(this.state.data, path);\n\t var object = (0, _objectUtils.getIn)(this.state.data, dataPath);\n\t var index = object.props.findIndex(function (p) {\n\t return p.name === oldProp;\n\t });\n\t\n\t this.setState({\n\t data: (0, _objectUtils.setIn)(this.state.data, dataPath.concat(['props', index, 'name']), newProp)\n\t });\n\t }\n\t }, {\n\t key: 'handleChangeType',\n\t value: function handleChangeType(path, type) {\n\t console.log('handleChangeType', path, type);\n\t\n\t var dataPath = toDataPath(this.state.data, path);\n\t var oldEntry = (0, _objectUtils.getIn)(this.state.data, dataPath);\n\t var newEntry = convertDataEntry(oldEntry, type);\n\t\n\t this.setState({\n\t data: (0, _objectUtils.setIn)(this.state.data, dataPath, newEntry)\n\t });\n\t }\n\t }, {\n\t key: 'handleInsert',\n\t value: function handleInsert(path, afterProp, type) {\n\t console.log('handleInsert', path, afterProp, type);\n\t\n\t var dataPath = toDataPath(this.state.data, path);\n\t var parent = (0, _objectUtils.getIn)(this.state.data, dataPath);\n\t\n\t if (parent.type === 'array') {\n\t this.setState({\n\t data: (0, _objectUtils.updateIn)(this.state.data, dataPath.concat(['items']), function (items) {\n\t var index = parseInt(afterProp);\n\t var updatedItems = items.slice(0);\n\t\n\t updatedItems.splice(index + 1, 0, createDataEntry(type));\n\t\n\t return updatedItems;\n\t })\n\t });\n\t } else {\n\t // parent.type === 'object'\n\t this.setState({\n\t data: (0, _objectUtils.updateIn)(this.state.data, dataPath.concat(['props']), function (props) {\n\t var index = props.findIndex(function (p) {\n\t return p.name === afterProp;\n\t });\n\t var updatedProps = props.slice(0);\n\t\n\t updatedProps.splice(index + 1, 0, {\n\t name: '',\n\t value: createDataEntry(type)\n\t });\n\t\n\t return updatedProps;\n\t })\n\t });\n\t }\n\t }\n\t }, {\n\t key: 'handleAppend',\n\t value: function handleAppend(path, type) {\n\t console.log('handleAppend', path, type);\n\t\n\t var dataPath = toDataPath(this.state.data, path);\n\t var object = (0, _objectUtils.getIn)(this.state.data, dataPath);\n\t\n\t if (object.type === 'array') {\n\t this.setState({\n\t data: (0, _objectUtils.updateIn)(this.state.data, dataPath.concat(['items']), function (items) {\n\t var updatedItems = items.slice(0);\n\t\n\t updatedItems.push(createDataEntry(type));\n\t\n\t return updatedItems;\n\t })\n\t });\n\t } else {\n\t // object.type === 'object'\n\t this.setState({\n\t data: (0, _objectUtils.updateIn)(this.state.data, dataPath.concat(['props']), function (props) {\n\t var updatedProps = props.slice(0);\n\t\n\t updatedProps.push({\n\t name: '',\n\t value: createDataEntry(type)\n\t });\n\t\n\t return updatedProps;\n\t })\n\t });\n\t }\n\t }\n\t }, {\n\t key: 'handleDuplicate',\n\t value: function handleDuplicate(path, prop) {\n\t console.log('handleDuplicate', path);\n\t\n\t var dataPath = toDataPath(this.state.data, path);\n\t var object = (0, _objectUtils.getIn)(this.state.data, dataPath);\n\t\n\t if (object.type === 'array') {\n\t this.setState({\n\t data: (0, _objectUtils.updateIn)(this.state.data, dataPath.concat(['items']), function (items) {\n\t var index = parseInt(prop);\n\t var updatedItems = items.slice(0);\n\t var original = items[index];\n\t var duplicate = (0, _objectUtils.cloneDeep)(original);\n\t\n\t updatedItems.splice(index + 1, 0, duplicate);\n\t\n\t return updatedItems;\n\t })\n\t });\n\t } else {\n\t // object.type === 'object'\n\t this.setState({\n\t data: (0, _objectUtils.updateIn)(this.state.data, dataPath.concat(['props']), function (props) {\n\t var index = props.findIndex(function (p) {\n\t return p.name === prop;\n\t });\n\t var updated = props.slice(0);\n\t var original = props[index];\n\t var duplicate = (0, _objectUtils.cloneDeep)(original);\n\t\n\t updated.splice(index + 1, 0, duplicate);\n\t\n\t return updated;\n\t })\n\t });\n\t }\n\t }\n\t }, {\n\t key: 'handleRemove',\n\t value: function handleRemove(path, prop) {\n\t console.log('handleRemove', path);\n\t\n\t var object = (0, _objectUtils.getIn)(this.state.data, toDataPath(this.state.data, path));\n\t\n\t if (object.type === 'array') {\n\t var dataPath = toDataPath(this.state.data, path.concat(prop));\n\t\n\t this.setState({\n\t data: (0, _objectUtils.deleteIn)(this.state.data, dataPath)\n\t });\n\t } else {\n\t // object.type === 'object'\n\t var _dataPath = toDataPath(this.state.data, path.concat(prop));\n\t\n\t _dataPath.pop(); // remove the 'value' property, we want to remove the whole object property\n\t this.setState({\n\t data: (0, _objectUtils.deleteIn)(this.state.data, _dataPath)\n\t });\n\t }\n\t }\n\t\n\t /**\n\t * Order the items of an array or the properties of an object in ascending\n\t * or descending order\n\t * @param {Array.} path\n\t * @param {'asc' | 'desc' | null} [order=null] If not provided, will toggle current ordering\n\t */\n\t\n\t }, {\n\t key: 'handleSort',\n\t value: function handleSort(path) {\n\t var order = arguments.length <= 1 || arguments[1] === undefined ? null : arguments[1];\n\t\n\t console.log('handleSort', path, order);\n\t\n\t var dataPath = toDataPath(this.state.data, path);\n\t var object = (0, _objectUtils.getIn)(this.state.data, dataPath);\n\t\n\t var _order = void 0;\n\t if (order === 'asc' || order === 'desc') {\n\t _order = order;\n\t } else {\n\t // toggle previous order\n\t _order = object.order !== 'asc' ? 'asc' : 'desc';\n\t\n\t this.setState({\n\t data: (0, _objectUtils.setIn)(this.state.data, dataPath.concat(['order']), _order)\n\t });\n\t }\n\t\n\t if (object.type === 'array') {\n\t this.setState({\n\t data: (0, _objectUtils.updateIn)(this.state.data, dataPath.concat(['items']), function (items) {\n\t var ordered = items.slice(0);\n\t var compare = _order === 'desc' ? _arrayUtils.compareDesc : _arrayUtils.compareAsc;\n\t\n\t ordered.sort(function (a, b) {\n\t return compare(a.value, b.value);\n\t });\n\t\n\t return ordered;\n\t })\n\t });\n\t } else {\n\t // object.type === 'object'\n\t this.setState({\n\t data: (0, _objectUtils.updateIn)(this.state.data, dataPath.concat(['props']), function (props) {\n\t var orderedProps = props.slice(0);\n\t var compare = _order === 'desc' ? _arrayUtils.compareDesc : _arrayUtils.compareAsc;\n\t\n\t orderedProps.sort(function (a, b) {\n\t return compare(a.name, b.name);\n\t });\n\t\n\t return orderedProps;\n\t })\n\t });\n\t }\n\t }\n\t }, {\n\t key: 'handleExpand',\n\t value: function handleExpand(path, expand) {\n\t console.log('handleExpand', path, expand);\n\t\n\t var dataPath = toDataPath(this.state.data, path);\n\t\n\t this.setState({\n\t data: (0, _objectUtils.setIn)(this.state.data, dataPath.concat(['expanded']), expand)\n\t });\n\t }\n\t\n\t /**\n\t * Set JSON object in editor\n\t * @param {Object | Array | string | number | boolean | null} json JSON data\n\t * @param {SetOptions} [options]\n\t */\n\t\n\t }, {\n\t key: 'set',\n\t value: function set(json) {\n\t var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1];\n\t\n\t this.setState({\n\t options: (0, _objectUtils.setIn)(this.state.options, ['name'], options && options.name || null),\n\t\n\t data: jsonToData([], json, options.expand || TreeMode.expand)\n\t });\n\t }\n\t\n\t /**\n\t * Get JSON from the editor\n\t * @returns {Object | Array | string | number | boolean | null} json\n\t */\n\t\n\t }, {\n\t key: 'get',\n\t value: function get() {\n\t return dataToJson(this.state.data);\n\t }\n\t\n\t // TODO: implement expand\n\t // TODO: implement getText and setText\n\t\n\t /**\n\t * Default function to determine whether or not to expand a node initially\n\t *\n\t * Rule: expand the root node only\n\t *\n\t * @param {Array.} path\n\t * @return {boolean}\n\t */\n\t\n\t }], [{\n\t key: 'expand',\n\t value: function expand(path) {\n\t return path.length === 0;\n\t }\n\t }]);\n\t\n\t return TreeMode;\n\t}(_preact.Component);\n\t\n\t/**\n\t * Convert a path of a JSON object into a path in the corresponding data model\n\t * @param {Data} data\n\t * @param {Array.} path\n\t * @return {Array.} dataPath\n\t * @private\n\t */\n\t\n\t\n\texports.default = TreeMode;\n\tfunction toDataPath(data, path) {\n\t if (path.length === 0) {\n\t return [];\n\t }\n\t\n\t var index = void 0;\n\t if (data.type === 'array') {\n\t // index of an array\n\t index = path[0];\n\t\n\t return ['items', index].concat(toDataPath(data.items[index], path.slice(1)));\n\t } else {\n\t // object property. find the index of this property\n\t index = data.props.findIndex(function (prop) {\n\t return prop.name === path[0];\n\t });\n\t\n\t return ['props', index, 'value'].concat(toDataPath(data.props[index].value, path.slice(1)));\n\t }\n\t}\n\t\n\t/**\n\t * Convert a JSON object into the internally used data model\n\t * @param {Array.} path\n\t * @param {Object | Array | string | number | boolean | null} json\n\t * @param {function(path: Array.)} expand\n\t * @return {Data}\n\t */\n\tfunction jsonToData(path, json, expand) {\n\t if (Array.isArray(json)) {\n\t return {\n\t type: 'array',\n\t expanded: expand(path),\n\t items: json.map(function (child, index) {\n\t return jsonToData(path.concat(index), child, expand);\n\t })\n\t };\n\t } else if ((0, _typeUtils.isObject)(json)) {\n\t return {\n\t type: 'object',\n\t expanded: expand(path),\n\t props: Object.keys(json).map(function (name) {\n\t return {\n\t name: name,\n\t value: jsonToData(path.concat(name), json[name], expand)\n\t };\n\t })\n\t };\n\t } else {\n\t return {\n\t type: 'value',\n\t value: json\n\t };\n\t }\n\t}\n\t\n\t/**\n\t * Convert the internal data model to a regular JSON object\n\t * @param {Data} data\n\t * @return {Object | Array | string | number | boolean | null} json\n\t */\n\tfunction dataToJson(data) {\n\t var _ret = function () {\n\t switch (data.type) {\n\t case 'array':\n\t return {\n\t v: data.items.map(dataToJson)\n\t };\n\t\n\t case 'object':\n\t var object = {};\n\t\n\t data.props.forEach(function (prop) {\n\t object[prop.name] = dataToJson(prop.value);\n\t });\n\t\n\t return {\n\t v: object\n\t };\n\t\n\t default:\n\t // type 'string' or 'value'\n\t return {\n\t v: data.value\n\t };\n\t }\n\t }();\n\t\n\t if ((typeof _ret === 'undefined' ? 'undefined' : _typeof(_ret)) === \"object\") return _ret.v;\n\t}\n\t\n\t/**\n\t * Create a new data entry\n\t * @param {'object' | 'array' | 'value' | 'string'} [type='value']\n\t * @return {*}\n\t */\n\tfunction createDataEntry(type) {\n\t if (type === 'array') {\n\t return {\n\t type: type,\n\t expanded: true,\n\t items: []\n\t };\n\t } else if (type === 'object') {\n\t return {\n\t type: type,\n\t expanded: true,\n\t props: []\n\t };\n\t } else {\n\t return {\n\t type: type,\n\t value: ''\n\t };\n\t }\n\t}\n\t\n\t/**\n\t * Convert an entry into a different type. When possible, data is retained\n\t * @param {Data} entry\n\t * @param {'object' | 'array' | 'value' | 'string'} type\n\t */\n\tfunction convertDataEntry(entry, type) {\n\t var convertedEntry = createDataEntry(type);\n\t\n\t // convert contents from old value to new value where possible\n\t if (type === 'value' && entry.type === 'string') {\n\t convertedEntry.value = (0, _typeUtils.stringConvert)(entry.value);\n\t }\n\t\n\t if (type === 'string' && entry.type === 'value') {\n\t convertedEntry.value = entry.value + '';\n\t }\n\t\n\t if (type === 'object' && entry.type === 'array') {\n\t convertedEntry.props = entry.items.map(function (item, index) {\n\t return {\n\t name: index + '',\n\t value: item\n\t };\n\t });\n\t }\n\t\n\t if (type === 'array' && entry.type === 'object') {\n\t convertedEntry.items = entry.props.map(function (prop) {\n\t return prop.value;\n\t });\n\t }\n\t\n\t return convertedEntry;\n\t}\n\n/***/ },\n/* 5 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\t\n\tvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol ? \"symbol\" : typeof obj; };\n\t\n\texports.clone = clone;\n\texports.cloneDeep = cloneDeep;\n\texports.getIn = getIn;\n\texports.setIn = setIn;\n\texports.updateIn = updateIn;\n\texports.deleteIn = deleteIn;\n\t\n\tvar _typeUtils = __webpack_require__(6);\n\t\n\t// inspiration:\n\t//\n\t// https://www.npmjs.com/package/seamless-immutable\n\t// https://www.npmjs.com/package/ih\n\t// https://www.npmjs.com/package/mutatis\n\t\n\t// TODO: unit test clone\n\t\n\t/**\n\t * Flat clone the properties of an object or array\n\t * @param {Object | Array} value\n\t * @return {Object | Array} Returns a flat clone of the object or Array\n\t */\n\tfunction clone(value) {\n\t if (Array.isArray(value)) {\n\t return value.slice(0);\n\t } else if ((0, _typeUtils.isObject)(value)) {\n\t var _ret = function () {\n\t var cloned = {};\n\t\n\t Object.keys(value).forEach(function (key) {\n\t cloned[key] = value[key];\n\t });\n\t\n\t return {\n\t v: cloned\n\t };\n\t }();\n\t\n\t if ((typeof _ret === 'undefined' ? 'undefined' : _typeof(_ret)) === \"object\") return _ret.v;\n\t } else {\n\t // a primitive value\n\t return value;\n\t }\n\t}\n\t\n\t// TODO: test cloneDeep\n\t\n\t/**\n\t * Deep clone the properties of an object or array\n\t * @param {Object | Array} value\n\t * @return {Object | Array} Returns a deep clone of the object or Array\n\t */\n\tfunction cloneDeep(value) {\n\t if (Array.isArray(value)) {\n\t return value.map(cloneDeep);\n\t } else if ((0, _typeUtils.isObject)(value)) {\n\t var _ret2 = function () {\n\t var cloned = {};\n\t\n\t Object.keys(value).forEach(function (key) {\n\t cloned[key] = cloneDeep(value[key]);\n\t });\n\t\n\t return {\n\t v: cloned\n\t };\n\t }();\n\t\n\t if ((typeof _ret2 === 'undefined' ? 'undefined' : _typeof(_ret2)) === \"object\") return _ret2.v;\n\t } else {\n\t // a primitive value\n\t return value;\n\t }\n\t}\n\t\n\t// TODO: unit test getIn\n\t\n\t/**\n\t * helper function to get a nested property in an object or array\n\t *\n\t * @param {Object | Array} object\n\t * @param {Array.} path\n\t * @return {* | undefined} Returns the field when found, or undefined when the\n\t * path doesn't exist\n\t */\n\tfunction getIn(object, path) {\n\t var value = object;\n\t var i = 0;\n\t\n\t while (i < path.length) {\n\t if (Array.isArray(value) || (0, _typeUtils.isObject)(value)) {\n\t value = value[path[i]];\n\t } else {\n\t value = undefined;\n\t }\n\t\n\t i++;\n\t }\n\t\n\t return value;\n\t}\n\t\n\t// TODO: unit test setIn\n\t\n\t/**\n\t * helper function to replace a nested property in an object with a new value\n\t * without mutating the object itself.\n\t *\n\t * @param {Object | Array} object\n\t * @param {Array.} path\n\t * @param {*} value\n\t * @return {Object | Array} Returns a new, updated object or array\n\t */\n\tfunction setIn(object, path, value) {\n\t if (path.length === 0) {\n\t return value;\n\t }\n\t\n\t var key = path[0];\n\t var updated = void 0;\n\t if (typeof key === 'string' && !(0, _typeUtils.isObject)(object)) {\n\t updated = {}; // change into an object\n\t } else if (typeof key === 'number' && !Array.isArray(object)) {\n\t updated = []; // change into an array\n\t } else {\n\t updated = clone(object);\n\t }\n\t\n\t updated[key] = setIn(updated[key], path.slice(1), value);\n\t\n\t return updated;\n\t}\n\t\n\t// TODO: unit test updateIn\n\t\n\t/**\n\t * helper function to replace a nested property in an object with a new value\n\t * without mutating the object itself.\n\t *\n\t * @param {Object | Array} object\n\t * @param {Array.} path\n\t * @param {function} callback\n\t * @return {Object | Array} Returns a new, updated object or array\n\t */\n\tfunction updateIn(object, path, callback) {\n\t if (path.length === 0) {\n\t return callback(object);\n\t }\n\t\n\t var key = path[0];\n\t var updated = void 0;\n\t if (typeof key === 'string' && !(0, _typeUtils.isObject)(object)) {\n\t updated = {}; // change into an object\n\t } else if (typeof key === 'number' && !Array.isArray(object)) {\n\t updated = []; // change into an array\n\t } else {\n\t updated = clone(object);\n\t }\n\t\n\t updated[key] = updateIn(updated[key], path.slice(1), callback);\n\t\n\t return updated;\n\t}\n\t\n\t// TODO: unit test deleteIn\n\t\n\t/**\n\t * helper function to delete a nested property in an object\n\t * without mutating the object itself.\n\t *\n\t * @param {Object | Array} object\n\t * @param {Array.} path\n\t * @return {Object | Array} Returns a new, updated object or array\n\t */\n\tfunction deleteIn(object, path) {\n\t if (path.length === 0) {\n\t return object;\n\t }\n\t\n\t if (path.length === 1) {\n\t var _key = path[0];\n\t var updated = clone(object);\n\t if (Array.isArray(updated)) {\n\t updated.splice(_key, 1);\n\t } else {\n\t delete updated[_key];\n\t }\n\t\n\t return updated;\n\t }\n\t\n\t var key = path[0];\n\t var child = object[key];\n\t if (Array.isArray(child) || (0, _typeUtils.isObject)(child)) {\n\t var _updated = clone(object);\n\t _updated[key] = deleteIn(child, path.slice(1));\n\t return _updated;\n\t } else {\n\t // child property doesn't exist. just do nothing\n\t return object;\n\t }\n\t}\n\n/***/ },\n/* 6 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\t\n\tvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol ? \"symbol\" : typeof obj; };\n\t\n\texports.valueType = valueType;\n\texports.isObject = isObject;\n\texports.isUrl = isUrl;\n\texports.stringConvert = stringConvert;\n\t\n\t/**\n\t * Get the type of a value\n\t * @param {*} value\n\t * @return {String} type\n\t */\n\tfunction valueType(value) {\n\t if (value === null) {\n\t return 'null';\n\t }\n\t if (value === undefined) {\n\t return 'undefined';\n\t }\n\t if (typeof value === 'number') {\n\t return 'number';\n\t }\n\t if (typeof value === 'string') {\n\t return 'string';\n\t }\n\t if (typeof value === 'boolean') {\n\t return 'boolean';\n\t }\n\t if (value instanceof RegExp) {\n\t return 'regexp';\n\t }\n\t if (Array.isArray(value)) {\n\t return 'array';\n\t }\n\t\n\t return 'object';\n\t}\n\t\n\t/**\n\t * Test whether a value is an object (and not an Array or Date or primitive value)\n\t *\n\t * @param {*} value\n\t * @return {boolean}\n\t */\n\tfunction isObject(value) {\n\t return (typeof value === 'undefined' ? 'undefined' : _typeof(value)) === 'object' && value && // not null\n\t !Array.isArray(value) && value.toString() === '[object Object]';\n\t}\n\t\n\t/**\n\t * Test whether a text contains a url (matches when a string starts\n\t * with 'http://*' or 'https://*' and has no whitespace characters)\n\t * @param {String} text\n\t */\n\tvar isUrlRegex = /^https?:\\/\\/\\S+$/;\n\tfunction isUrl(text) {\n\t return typeof text === 'string' && isUrlRegex.test(text);\n\t}\n\t\n\t/**\n\t * Convert contents of a string to the correct JSON type. This can be a string,\n\t * a number, a boolean, etc\n\t * @param {String} str\n\t * @return {*} castedStr\n\t * @private\n\t */\n\tfunction stringConvert(str) {\n\t var num = Number(str); // will nicely fail with '123ab'\n\t var numFloat = parseFloat(str); // will nicely fail with ' '\n\t\n\t if (str == '') {\n\t return '';\n\t } else if (str == 'null') {\n\t return null;\n\t } else if (str == 'true') {\n\t return true;\n\t } else if (str == 'false') {\n\t return false;\n\t } else if (!isNaN(num) && !isNaN(numFloat)) {\n\t return num;\n\t } else {\n\t return str;\n\t }\n\t}\n\n/***/ },\n/* 7 */\n/***/ function(module, exports) {\n\n\t\"use strict\";\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\texports.last = last;\n\texports.compareAsc = compareAsc;\n\texports.compareDesc = compareDesc;\n\t/**\n\t * Returns the last item of an array\n\t * @param {Array} array\n\t * @return {*}\n\t */\n\tfunction last(array) {\n\t return array[array.length - 1];\n\t}\n\t\n\t/**\n\t * Comparator to sort an array in ascending order\n\t *\n\t * Usage:\n\t * [4,2,5].sort(compareAsc) // [2,4,5]\n\t *\n\t * @param a\n\t * @param b\n\t * @return {number}\n\t */\n\tfunction compareAsc(a, b) {\n\t return a > b ? 1 : a < b ? -1 : 0;\n\t}\n\t\n\t/**\n\t * Comparator to sort an array in ascending order\n\t *\n\t * Usage:\n\t * [4,2,5].sort(compareDesc) // [5,4,2]\n\t *\n\t * @param a\n\t * @param b\n\t * @return {number}\n\t */\n\tfunction compareDesc(a, b) {\n\t return a > b ? -1 : a < b ? 1 : 0;\n\t}\n\n/***/ },\n/* 8 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\texports.default = bindMethods;\n\t/**\n\t * Helper function to bind all methods of a class instance to the instance\n\t *\n\t * Usage:\n\t *\n\t * import bindMethods from './bindMethods'\n\t *\n\t * class MyClass {\n\t * constructor () {\n\t * bindMethods(this)\n\t * }\n\t *\n\t * myMethod () {\n\t * // ...\n\t * }\n\t * }\n\t *\n\t * @param {Object} instance Instance of an ES6 class or prototype\n\t */\n\tfunction bindMethods(instance) {\n\t var prototype = Object.getPrototypeOf(instance);\n\t\n\t Object.getOwnPropertyNames(prototype).forEach(function (name) {\n\t if (typeof instance[name] === 'function') {\n\t instance[name] = instance[name].bind(instance);\n\t }\n\t });\n\t}\n\n/***/ },\n/* 9 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\t\n\tvar _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\t\n\tvar _preact = __webpack_require__(1);\n\t\n\tvar _ContextMenu = __webpack_require__(10);\n\t\n\tvar _ContextMenu2 = _interopRequireDefault(_ContextMenu);\n\t\n\tvar _stringUtils = __webpack_require__(11);\n\t\n\tvar _arrayUtils = __webpack_require__(7);\n\t\n\tvar _domUtils = __webpack_require__(13);\n\t\n\tvar _typeUtils = __webpack_require__(6);\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\t\n\tfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\t\n\tfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\t\n\tfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\t\n\t// TYPE_TITLES with explanation for the different types\n\tvar TYPE_TITLES = {\n\t 'value': 'Item type \"value\". ' + 'The item type is automatically determined from the value ' + 'and can be a string, number, boolean, or null.',\n\t 'object': 'Item type \"object\". ' + 'An object contains an unordered set of key/value pairs.',\n\t 'array': 'Item type \"array\". ' + 'An array contains an ordered collection of values.',\n\t 'string': 'Item type \"string\". ' + 'Item type is not determined from the value, ' + 'but always returned as string.'\n\t};\n\t\n\t/**\n\t * @type {JSONNode | null} activeContextMenu singleton holding the JSONNode having\n\t * the active (visible) context menu\n\t */\n\tvar activeContextMenu = null;\n\t\n\tvar JSONNode = function (_Component) {\n\t _inherits(JSONNode, _Component);\n\t\n\t // TODO: define propTypes\n\t\n\t function JSONNode(props) {\n\t _classCallCheck(this, JSONNode);\n\t\n\t var _this = _possibleConstructorReturn(this, Object.getPrototypeOf(JSONNode).call(this, props));\n\t\n\t _this.state = {\n\t menu: null, // context menu\n\t appendMenu: null };\n\t\n\t // TODO: use function bindMethods(this). Gives issues for some reason, we lose focus whilst typing\n\t _this.handleChangeProperty = _this.handleChangeProperty.bind(_this);\n\t _this.handleChangeValue = _this.handleChangeValue.bind(_this);\n\t _this.handleClickValue = _this.handleClickValue.bind(_this);\n\t _this.handleKeyDownValue = _this.handleKeyDownValue.bind(_this);\n\t _this.handleExpand = _this.handleExpand.bind(_this);\n\t _this.handleContextMenu = _this.handleContextMenu.bind(_this);\n\t _this.handleAppendContextMenu = _this.handleAppendContextMenu.bind(_this);\n\t return _this;\n\t }\n\t\n\t _createClass(JSONNode, [{\n\t key: 'render',\n\t value: function render(props) {\n\t if (props.data.type === 'array') {\n\t return this.renderJSONArray(props);\n\t } else if (props.data.type === 'object') {\n\t return this.renderJSONObject(props);\n\t } else {\n\t return this.renderJSONValue(props);\n\t }\n\t }\n\t }, {\n\t key: 'renderJSONObject',\n\t value: function renderJSONObject(_ref) {\n\t var _this2 = this;\n\t\n\t var prop = _ref.prop;\n\t var data = _ref.data;\n\t var options = _ref.options;\n\t var events = _ref.events;\n\t\n\t var childCount = data.props.length;\n\t var contents = [(0, _preact.h)('div', { class: 'jsoneditor-node jsoneditor-object' }, [this.renderExpandButton(), this.renderContextMenuButton(), this.renderProperty(prop, data, options), this.renderReadonly('{' + childCount + '}', 'Array containing ' + childCount + ' items')])];\n\t\n\t if (data.expanded) {\n\t var props = data.props.map(function (prop) {\n\t return (0, _preact.h)(JSONNode, {\n\t parent: _this2,\n\t prop: prop.name,\n\t data: prop.value,\n\t options: options,\n\t events: events\n\t });\n\t });\n\t\n\t if (props.length === 0) {\n\t props.push(this.renderAppend('(empty object)'));\n\t }\n\t\n\t contents.push((0, _preact.h)('ul', { class: 'jsoneditor-list' }, props));\n\t }\n\t\n\t return (0, _preact.h)('li', {}, contents);\n\t }\n\t }, {\n\t key: 'renderJSONArray',\n\t value: function renderJSONArray(_ref2) {\n\t var _this3 = this;\n\t\n\t var prop = _ref2.prop;\n\t var data = _ref2.data;\n\t var options = _ref2.options;\n\t var events = _ref2.events;\n\t\n\t var childCount = data.items.length;\n\t var contents = [(0, _preact.h)('div', { class: 'jsoneditor-node jsoneditor-array' }, [this.renderExpandButton(), this.renderContextMenuButton(), this.renderProperty(prop, data, options), this.renderReadonly('[' + childCount + ']', 'Array containing ' + childCount + ' items')])];\n\t\n\t if (data.expanded) {\n\t var items = data.items.map(function (child, index) {\n\t return (0, _preact.h)(JSONNode, {\n\t parent: _this3,\n\t prop: index,\n\t data: child,\n\t options: options,\n\t events: events\n\t });\n\t });\n\t\n\t if (items.length === 0) {\n\t items.push(this.renderAppend('(empty array)'));\n\t }\n\t\n\t contents.push((0, _preact.h)('ul', { class: 'jsoneditor-list' }, items));\n\t }\n\t\n\t return (0, _preact.h)('li', {}, contents);\n\t }\n\t }, {\n\t key: 'renderJSONValue',\n\t value: function renderJSONValue(_ref3) {\n\t var prop = _ref3.prop;\n\t var data = _ref3.data;\n\t var options = _ref3.options;\n\t\n\t return (0, _preact.h)('li', {}, [(0, _preact.h)('div', { class: 'jsoneditor-node' }, [this.renderPlaceholder(), this.renderContextMenuButton(), this.renderProperty(prop, data, options), this.renderSeparator(), this.renderValue(data.value)])]);\n\t }\n\t\n\t /**\n\t * Render contents for an empty object or array\n\t * @param {string} text\n\t * @return {*}\n\t */\n\t\n\t }, {\n\t key: 'renderAppend',\n\t value: function renderAppend(text) {\n\t return (0, _preact.h)('li', {}, [(0, _preact.h)('div', { class: 'jsoneditor-node' }, [this.renderPlaceholder(), this.renderAppendContextMenuButton(), this.renderReadonly(text)])]);\n\t }\n\t }, {\n\t key: 'renderPlaceholder',\n\t value: function renderPlaceholder() {\n\t return (0, _preact.h)('div', { class: 'jsoneditor-button-placeholder' });\n\t }\n\t }, {\n\t key: 'renderReadonly',\n\t value: function renderReadonly(text) {\n\t var title = arguments.length <= 1 || arguments[1] === undefined ? null : arguments[1];\n\t\n\t return (0, _preact.h)('div', { class: 'jsoneditor-readonly', title: title }, text);\n\t }\n\t }, {\n\t key: 'renderProperty',\n\t value: function renderProperty(prop, data, options) {\n\t if (prop !== null) {\n\t var isIndex = typeof prop === 'number';\n\t\n\t if (isIndex) {\n\t // array item\n\t return (0, _preact.h)('div', {\n\t class: 'jsoneditor-property jsoneditor-readonly',\n\t spellCheck: 'false'\n\t }, prop);\n\t } else {\n\t // object property\n\t return (0, _preact.h)('div', {\n\t class: 'jsoneditor-property',\n\t contentEditable: 'true',\n\t spellCheck: 'false',\n\t onInput: this.handleChangeProperty\n\t }, prop);\n\t }\n\t } else {\n\t // root node\n\t var content = JSONNode._rootName(data, options);\n\t\n\t return (0, _preact.h)('div', {\n\t class: 'jsoneditor-property jsoneditor-readonly',\n\t spellCheck: 'false',\n\t onInput: this.handleChangeProperty\n\t }, content);\n\t }\n\t }\n\t }, {\n\t key: 'renderSeparator',\n\t value: function renderSeparator() {\n\t return (0, _preact.h)('div', { class: 'jsoneditor-separator' }, ':');\n\t }\n\t }, {\n\t key: 'renderValue',\n\t value: function renderValue(value) {\n\t var type = (0, _typeUtils.valueType)(value);\n\t var _isUrl = (0, _typeUtils.isUrl)(value);\n\t var valueClass = 'jsoneditor-value jsoneditor-' + type + (_isUrl ? ' jsoneditor-url' : '');\n\t\n\t return (0, _preact.h)('div', {\n\t class: valueClass,\n\t contentEditable: 'true',\n\t spellCheck: 'false',\n\t onInput: this.handleChangeValue,\n\t onClick: this.handleClickValue,\n\t onKeyDown: this.handleKeyDownValue,\n\t title: _isUrl ? 'Ctrl+Click or ctrl+Enter to open url' : null\n\t }, (0, _stringUtils.escapeHTML)(value));\n\t }\n\t }, {\n\t key: 'renderExpandButton',\n\t value: function renderExpandButton() {\n\t var className = 'jsoneditor-button jsoneditor-' + (this.props.data.expanded ? 'expanded' : 'collapsed');\n\t return (0, _preact.h)('div', { class: 'jsoneditor-button-container' }, (0, _preact.h)('button', { class: className, onClick: this.handleExpand }));\n\t }\n\t }, {\n\t key: 'renderContextMenuButton',\n\t value: function renderContextMenuButton() {\n\t var className = 'jsoneditor-button jsoneditor-contextmenu' + (this.state.menu ? ' jsoneditor-visible' : '');\n\t\n\t return (0, _preact.h)('div', { class: 'jsoneditor-button-container' }, [this.renderContextMenu(this.state.menu), (0, _preact.h)('button', { class: className, onClick: this.handleContextMenu })]);\n\t }\n\t }, {\n\t key: 'renderAppendContextMenuButton',\n\t value: function renderAppendContextMenuButton() {\n\t var className = 'jsoneditor-button jsoneditor-contextmenu' + (this.state.appendMenu ? ' jsoneditor-visible' : '');\n\t\n\t return (0, _preact.h)('div', { class: 'jsoneditor-button-container' }, [this.renderAppendContextMenu(), (0, _preact.h)('button', { class: className, onClick: this.handleAppendContextMenu })]);\n\t }\n\t }, {\n\t key: 'renderContextMenu',\n\t value: function renderContextMenu() {\n\t var _this4 = this;\n\t\n\t if (!this.state.menu) {\n\t return null;\n\t }\n\t\n\t var _state$menu = this.state.menu;\n\t var anchor = _state$menu.anchor;\n\t var root = _state$menu.root;\n\t\n\t var path = this.getPath();\n\t var hasParent = this.props.parent !== null;\n\t var type = this.props.data.type;\n\t var events = this.props.events;\n\t var items = []; // array with menu items\n\t\n\t items.push({\n\t text: 'Type',\n\t title: 'Change the type of this field',\n\t className: 'jsoneditor-type-' + type,\n\t submenu: [{\n\t text: 'Value',\n\t className: 'jsoneditor-type-value' + (type == 'value' ? ' jsoneditor-selected' : ''),\n\t title: TYPE_TITLES.value,\n\t click: function click() {\n\t return events.onChangeType(path, 'value');\n\t }\n\t }, {\n\t text: 'Array',\n\t className: 'jsoneditor-type-array' + (type == 'array' ? ' jsoneditor-selected' : ''),\n\t title: TYPE_TITLES.array,\n\t click: function click() {\n\t return events.onChangeType(path, 'array');\n\t }\n\t }, {\n\t text: 'Object',\n\t className: 'jsoneditor-type-object' + (type == 'object' ? ' jsoneditor-selected' : ''),\n\t title: TYPE_TITLES.object,\n\t click: function click() {\n\t return events.onChangeType(path, 'object');\n\t }\n\t }, {\n\t text: 'String',\n\t className: 'jsoneditor-type-string' + (type == 'string' ? ' jsoneditor-selected' : ''),\n\t title: TYPE_TITLES.string,\n\t click: function click() {\n\t return events.onChangeType(path, 'string');\n\t }\n\t }]\n\t });\n\t\n\t if (type === 'array' || type === 'object') {\n\t var direction = this.sortOrder == 'asc' ? 'desc' : 'asc';\n\t items.push({\n\t text: 'Sort',\n\t title: 'Sort the childs of this ' + TYPE_TITLES.type,\n\t className: 'jsoneditor-sort-' + direction,\n\t click: function click() {\n\t return events.onSort(path);\n\t },\n\t submenu: [{\n\t text: 'Ascending',\n\t className: 'jsoneditor-sort-asc',\n\t title: 'Sort the childs of this ' + TYPE_TITLES.type + ' in ascending order',\n\t click: function click() {\n\t return events.onSort(path, 'asc');\n\t }\n\t }, {\n\t text: 'Descending',\n\t className: 'jsoneditor-sort-desc',\n\t title: 'Sort the childs of this ' + TYPE_TITLES.type + ' in descending order',\n\t click: function click() {\n\t return events.onSort(path, 'desc');\n\t }\n\t }]\n\t });\n\t }\n\t\n\t if (hasParent) {\n\t (function () {\n\t var parentPath = _this4.props.parent.getPath();\n\t var prop = _this4.props.prop;\n\t\n\t if (items.length) {\n\t // create a separator\n\t items.push({\n\t 'type': 'separator'\n\t });\n\t }\n\t\n\t // create insert button\n\t items.push({\n\t text: 'Insert',\n\t title: 'Insert a new item with type \\'value\\' after this item (Ctrl+Ins)',\n\t submenuTitle: 'Select the type of the item to be inserted',\n\t className: 'jsoneditor-insert',\n\t click: function click() {\n\t return events.onInsert(parentPath, prop, 'value');\n\t },\n\t submenu: [{\n\t text: 'Value',\n\t className: 'jsoneditor-type-value',\n\t title: TYPE_TITLES.value,\n\t click: function click() {\n\t return events.onInsert(parentPath, prop, 'value');\n\t }\n\t }, {\n\t text: 'Array',\n\t className: 'jsoneditor-type-array',\n\t title: TYPE_TITLES.array,\n\t click: function click() {\n\t return events.onInsert(parentPath, prop, 'array');\n\t }\n\t }, {\n\t text: 'Object',\n\t className: 'jsoneditor-type-object',\n\t title: TYPE_TITLES.object,\n\t click: function click() {\n\t return events.onInsert(parentPath, prop, 'object');\n\t }\n\t }, {\n\t text: 'String',\n\t className: 'jsoneditor-type-string',\n\t title: TYPE_TITLES.string,\n\t click: function click() {\n\t return events.onInsert(parentPath, prop, 'string');\n\t }\n\t }]\n\t });\n\t\n\t // create duplicate button\n\t items.push({\n\t text: 'Duplicate',\n\t title: 'Duplicate this item (Ctrl+D)',\n\t className: 'jsoneditor-duplicate',\n\t click: function click() {\n\t return events.onDuplicate(parentPath, prop);\n\t }\n\t });\n\t\n\t // create remove button\n\t items.push({\n\t text: 'Remove',\n\t title: 'Remove this item (Ctrl+Del)',\n\t className: 'jsoneditor-remove',\n\t click: function click() {\n\t return events.onRemove(parentPath, prop);\n\t }\n\t });\n\t })();\n\t }\n\t\n\t // TODO: implement a hook to adjust the context menu\n\t\n\t return (0, _preact.h)(_ContextMenu2.default, { anchor: anchor, root: root, items: items });\n\t }\n\t }, {\n\t key: 'renderAppendContextMenu',\n\t value: function renderAppendContextMenu() {\n\t if (!this.state.appendMenu) {\n\t return null;\n\t }\n\t\n\t var _state$appendMenu = this.state.appendMenu;\n\t var anchor = _state$appendMenu.anchor;\n\t var root = _state$appendMenu.root;\n\t\n\t var path = this.getPath();\n\t var events = this.props.events;\n\t var items = []; // array with menu items\n\t\n\t // create insert button\n\t items.push({\n\t text: 'Insert',\n\t title: 'Insert a new item with type \\'value\\' after this item (Ctrl+Ins)',\n\t submenuTitle: 'Select the type of the item to be inserted',\n\t className: 'jsoneditor-insert',\n\t click: function click() {\n\t return events.onAppend(path, 'value');\n\t },\n\t submenu: [{\n\t text: 'Value',\n\t className: 'jsoneditor-type-value',\n\t title: TYPE_TITLES.value,\n\t click: function click() {\n\t return events.onAppend(path, 'value');\n\t }\n\t }, {\n\t text: 'Array',\n\t className: 'jsoneditor-type-array',\n\t title: TYPE_TITLES.array,\n\t click: function click() {\n\t return events.onAppend(path, 'array');\n\t }\n\t }, {\n\t text: 'Object',\n\t className: 'jsoneditor-type-object',\n\t title: TYPE_TITLES.object,\n\t click: function click() {\n\t return events.onAppend(path, 'object');\n\t }\n\t }, {\n\t text: 'String',\n\t className: 'jsoneditor-type-string',\n\t title: TYPE_TITLES.string,\n\t click: function click() {\n\t return events.onAppend(path, 'string');\n\t }\n\t }]\n\t });\n\t\n\t // TODO: implement a hook to adjust the context menu\n\t\n\t return (0, _preact.h)(_ContextMenu2.default, { anchor: anchor, root: root, items: items });\n\t }\n\t }, {\n\t key: 'shouldComponentUpdate',\n\t value: function shouldComponentUpdate(nextProps, nextState) {\n\t var prop = void 0;\n\t\n\t for (prop in nextProps) {\n\t if (nextProps.hasOwnProperty(prop) && this.props[prop] !== nextProps[prop]) {\n\t return true;\n\t }\n\t }\n\t\n\t for (prop in nextState) {\n\t if (nextState.hasOwnProperty(prop) && this.state[prop] !== nextState[prop]) {\n\t return true;\n\t }\n\t }\n\t\n\t return false;\n\t }\n\t }, {\n\t key: 'handleChangeProperty',\n\t value: function handleChangeProperty(event) {\n\t var parentPath = this.props.parent.getPath();\n\t var oldProp = this.props.prop;\n\t var newProp = (0, _stringUtils.unescapeHTML)((0, _domUtils.getInnerText)(event.target));\n\t\n\t this.props.events.onChangeProperty(parentPath, oldProp, newProp);\n\t }\n\t }, {\n\t key: 'handleChangeValue',\n\t value: function handleChangeValue(event) {\n\t var value = this._getValueFromEvent(event);\n\t\n\t this.props.events.onChangeValue(this.getPath(), value);\n\t }\n\t }, {\n\t key: 'handleClickValue',\n\t value: function handleClickValue(event) {\n\t if (event.ctrlKey && event.button === 0) {\n\t // Ctrl+Left click\n\t this._openLinkIfUrl(event);\n\t }\n\t }\n\t }, {\n\t key: 'handleKeyDownValue',\n\t value: function handleKeyDownValue(event) {\n\t if (event.ctrlKey && event.which === 13) {\n\t // Ctrl+Enter\n\t this._openLinkIfUrl(event);\n\t }\n\t }\n\t }, {\n\t key: 'handleExpand',\n\t value: function handleExpand(event) {\n\t this.props.events.onExpand(this.getPath(), !this.props.data.expanded);\n\t }\n\t }, {\n\t key: 'handleContextMenu',\n\t value: function handleContextMenu(event) {\n\t event.stopPropagation();\n\t\n\t if (this.state.menu) {\n\t // hide context menu\n\t JSONNode.hideContextMenu();\n\t } else {\n\t // hide any currently visible context menu\n\t JSONNode.hideContextMenu();\n\t\n\t // show context menu\n\t this.setState({\n\t menu: {\n\t anchor: event.target,\n\t root: JSONNode._findRootElement(event)\n\t }\n\t });\n\t activeContextMenu = this;\n\t }\n\t }\n\t }, {\n\t key: 'handleAppendContextMenu',\n\t value: function handleAppendContextMenu(event) {\n\t event.stopPropagation();\n\t\n\t if (this.state.appendMenu) {\n\t // hide append context menu\n\t JSONNode.hideContextMenu();\n\t } else {\n\t // hide any currently visible context menu\n\t JSONNode.hideContextMenu();\n\t\n\t // show append context menu\n\t this.setState({\n\t appendMenu: {\n\t anchor: event.target,\n\t root: JSONNode._findRootElement(event)\n\t }\n\t });\n\t activeContextMenu = this;\n\t }\n\t }\n\t\n\t /**\n\t * Singleton function to hide the currently visible context menu if any.\n\t */\n\t\n\t }, {\n\t key: '_openLinkIfUrl',\n\t\n\t\n\t /**\n\t * When this JSONNode holds an URL as value, open this URL in a new browser tab\n\t * @param event\n\t * @private\n\t */\n\t value: function _openLinkIfUrl(event) {\n\t var value = this._getValueFromEvent(event);\n\t\n\t if ((0, _typeUtils.isUrl)(value)) {\n\t event.preventDefault();\n\t event.stopPropagation();\n\t\n\t window.open(value, '_blank');\n\t }\n\t }\n\t\n\t /**\n\t * Get the path of this JSONNode\n\t * @return {Array.}\n\t */\n\t\n\t }, {\n\t key: 'getPath',\n\t value: function getPath() {\n\t var path = this.props.parent ? this.props.parent.getPath() : [];\n\t\n\t if (this.props.prop !== null) {\n\t path.push(this.props.prop);\n\t }\n\t\n\t return path;\n\t }\n\t\n\t /**\n\t * Get the value of the target of an event, and convert it to it's type\n\t * @param event\n\t * @return {string | number | boolean | null}\n\t * @private\n\t */\n\t\n\t }, {\n\t key: '_getValueFromEvent',\n\t value: function _getValueFromEvent(event) {\n\t var stringValue = (0, _stringUtils.unescapeHTML)((0, _domUtils.getInnerText)(event.target));\n\t return this.props.data.type === 'string' ? stringValue : (0, _typeUtils.stringConvert)(stringValue);\n\t }\n\t\n\t /**\n\t * Find the root DOM element of the JSONEditor\n\t * Search is done based on the CSS class 'jsoneditor'\n\t * @param event\n\t * @return {*}\n\t * @private\n\t */\n\t\n\t }], [{\n\t key: '_rootName',\n\t value: function _rootName(data, options) {\n\t return typeof options.name === 'string' ? options.name : data.type === 'object' || data.type === 'array' ? data.type : (0, _typeUtils.valueType)(data.value);\n\t }\n\t }, {\n\t key: 'hideContextMenu',\n\t value: function hideContextMenu() {\n\t if (activeContextMenu) {\n\t activeContextMenu.setState({\n\t menu: null,\n\t appendMenu: null\n\t });\n\t activeContextMenu = null;\n\t }\n\t }\n\t }, {\n\t key: '_findRootElement',\n\t value: function _findRootElement(event) {\n\t function isEditorElement(elem) {\n\t return elem.className.split(' ').indexOf('jsoneditor') !== -1;\n\t }\n\t\n\t var elem = event.target;\n\t while (elem) {\n\t if (isEditorElement(elem)) {\n\t return elem;\n\t }\n\t\n\t elem = elem.parentNode;\n\t }\n\t\n\t return null;\n\t }\n\t }]);\n\t\n\t return JSONNode;\n\t}(_preact.Component);\n\t\n\texports.default = JSONNode;\n\n/***/ },\n/* 10 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\texports.CONTEXT_MENU_HEIGHT = undefined;\n\t\n\tvar _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\t\n\tvar _preact = __webpack_require__(1);\n\t\n\tfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\t\n\tfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\t\n\tfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\t\n\tvar CONTEXT_MENU_HEIGHT = exports.CONTEXT_MENU_HEIGHT = 240;\n\t\n\tvar ContextMenu = function (_Component) {\n\t _inherits(ContextMenu, _Component);\n\t\n\t function ContextMenu(props) {\n\t _classCallCheck(this, ContextMenu);\n\t\n\t // determine orientation\n\t var _this = _possibleConstructorReturn(this, Object.getPrototypeOf(ContextMenu).call(this, props));\n\t\n\t var anchorRect = _this.props.anchor.getBoundingClientRect();\n\t var rootRect = _this.props.root.getBoundingClientRect();\n\t var orientation = rootRect.bottom - anchorRect.bottom < CONTEXT_MENU_HEIGHT && anchorRect.top - rootRect.top > CONTEXT_MENU_HEIGHT ? 'top' : 'bottom';\n\t\n\t _this.state = {\n\t orientation: orientation,\n\t expanded: null, // menu index of expanded menu item\n\t expanding: null, // menu index of expanding menu item\n\t collapsing: null // menu index of collapsing menu item\n\t };\n\t\n\t _this.renderMenuItem = _this.renderMenuItem.bind(_this);\n\t return _this;\n\t }\n\t\n\t _createClass(ContextMenu, [{\n\t key: 'render',\n\t value: function render() {\n\t if (!this.props.items) {\n\t return null;\n\t }\n\t\n\t // TODO: create a non-visible button to set the focus to the menu\n\t // TODO: implement (customizable) quick keys\n\t\n\t var className = 'jsoneditor-contextmenu ' + (this.state.orientation === 'top' ? 'jsoneditor-contextmenu-top' : 'jsoneditor-contextmenu-bottom');\n\t\n\t return (0, _preact.h)('div', { class: className }, this.props.items.map(this.renderMenuItem));\n\t }\n\t }, {\n\t key: 'renderMenuItem',\n\t value: function renderMenuItem(item, index) {\n\t if (item.type === 'separator') {\n\t return (0, _preact.h)('div', { class: 'jsoneditor-menu-separator' });\n\t }\n\t\n\t if (item.click && item.submenu) {\n\t // two buttons: direct click and a small button to expand the submenu\n\t return (0, _preact.h)('div', { class: 'jsoneditor-menu-item' }, [(0, _preact.h)('button', { class: 'jsoneditor-menu-button jsoneditor-menu-default ' + item.className, title: item.title, onClick: item.click }, [(0, _preact.h)('span', { class: 'jsoneditor-icon' }), (0, _preact.h)('span', { class: 'jsoneditor-text' }, item.text)]), (0, _preact.h)('button', { class: 'jsoneditor-menu-button jsoneditor-menu-expand', onClick: this.createExpandHandler(index) }, [(0, _preact.h)('span', { class: 'jsoneditor-icon jsoneditor-icon-expand' })]), this.renderSubMenu(item.submenu, index)]);\n\t } else if (item.submenu) {\n\t // button expands the submenu\n\t return (0, _preact.h)('div', { class: 'jsoneditor-menu-item' }, [(0, _preact.h)('button', { class: 'jsoneditor-menu-button ' + item.className, title: item.title, onClick: this.createExpandHandler(index) }, [(0, _preact.h)('span', { class: 'jsoneditor-icon' }), (0, _preact.h)('span', { class: 'jsoneditor-text' }, item.text), (0, _preact.h)('span', { class: 'jsoneditor-icon jsoneditor-icon-expand' })]), this.renderSubMenu(item.submenu, index)]);\n\t } else {\n\t // just a button (no submenu)\n\t return (0, _preact.h)('div', { class: 'jsoneditor-menu-item' }, [(0, _preact.h)('button', { class: 'jsoneditor-menu-button ' + item.className, title: item.title, onClick: item.click }, [(0, _preact.h)('span', { class: 'jsoneditor-icon' }), (0, _preact.h)('span', { class: 'jsoneditor-text' }, item.text)])]);\n\t }\n\t }\n\t\n\t /**\n\t * @param {Array} submenu\n\t * @param {number} index\n\t */\n\t\n\t }, {\n\t key: 'renderSubMenu',\n\t value: function renderSubMenu(submenu, index) {\n\t var expanded = this.state.expanded === index;\n\t var collapsing = this.state.collapsing === index;\n\t\n\t var contents = submenu.map(function (item) {\n\t return (0, _preact.h)('div', { class: 'jsoneditor-menu-item' }, [(0, _preact.h)('button', { class: 'jsoneditor-menu-button ' + item.className, title: item.title, onClick: item.click }, [(0, _preact.h)('span', { class: 'jsoneditor-icon' }), (0, _preact.h)('span', { class: 'jsoneditor-text' }, item.text)])]);\n\t });\n\t\n\t var className = 'jsoneditor-submenu ' + (expanded ? ' jsoneditor-expanded' : '') + (collapsing ? ' jsoneditor-collapsing' : '');\n\t\n\t return (0, _preact.h)('div', { class: className }, contents);\n\t }\n\t }, {\n\t key: 'createExpandHandler',\n\t value: function createExpandHandler(index) {\n\t var _this2 = this;\n\t\n\t return function (event) {\n\t event.stopPropagation();\n\t\n\t var prev = _this2.state.expanded;\n\t\n\t _this2.setState({\n\t expanded: prev === index ? null : index,\n\t collapsing: prev\n\t });\n\t\n\t // timeout after unit is collapsed\n\t setTimeout(function () {\n\t if (prev === _this2.state.collapsing) {\n\t _this2.setState({\n\t collapsing: null\n\t });\n\t }\n\t }, 300);\n\t };\n\t }\n\t }]);\n\t\n\t return ContextMenu;\n\t}(_preact.Component);\n\t\n\texports.default = ContextMenu;\n\n/***/ },\n/* 11 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\texports.escapeHTML = escapeHTML;\n\texports.unescapeHTML = unescapeHTML;\n\texports.escapeJSON = escapeJSON;\n\t\n\tvar _jsonUtils = __webpack_require__(12);\n\t\n\t/**\n\t * escape a text, such that it can be displayed safely in an HTML element\n\t * @param {String} text\n\t * @param {boolean} [escapeUnicode=false]\n\t * @return {String} escapedText\n\t */\n\tfunction escapeHTML(text) {\n\t var escapeUnicode = arguments.length <= 1 || arguments[1] === undefined ? false : arguments[1];\n\t\n\t if (typeof text !== 'string') {\n\t return String(text);\n\t } else {\n\t var htmlEscaped = String(text).replace(/ /g, '  ') // replace double space with an nbsp and space\n\t .replace(/^ /, ' ') // space at start\n\t .replace(/ $/, ' '); // space at end\n\t\n\t var json = JSON.stringify(htmlEscaped);\n\t var html = json.substring(1, json.length - 1);\n\t if (escapeUnicode === true) {\n\t html = escapeUnicodeChars(html);\n\t }\n\t return html;\n\t }\n\t}\n\t\n\t/**\n\t * Escape unicode characters.\n\t * For example input '\\u2661' (length 1) will output '\\\\u2661' (length 5).\n\t * @param {string} text\n\t * @return {string}\n\t */\n\tfunction escapeUnicodeChars(text) {\n\t // see https://www.wikiwand.com/en/UTF-16\n\t // note: we leave surrogate pairs as two individual chars,\n\t // as JSON doesn't interpret them as a single unicode char.\n\t return text.replace(/[\\u007F-\\uFFFF]/g, function (c) {\n\t return '\\\\u' + ('0000' + c.charCodeAt(0).toString(16)).slice(-4);\n\t });\n\t}\n\t\n\t/**\n\t * unescape a string.\n\t * @param {String} escapedText\n\t * @return {String} text\n\t */\n\tfunction unescapeHTML(escapedText) {\n\t var json = '\"' + escapeJSON(escapedText) + '\"';\n\t var htmlEscaped = (0, _jsonUtils.parseJSON)(json);\n\t\n\t return htmlEscaped.replace(/\\u00A0/g, ' '); // nbsp character\n\t}\n\t\n\t/**\n\t * escape a text to make it a valid JSON string. The method will:\n\t * - replace unescaped double quotes with '\\\"'\n\t * - replace unescaped backslash with '\\\\'\n\t * - replace returns with '\\n'\n\t * @param {String} text\n\t * @return {String} escapedText\n\t * @private\n\t */\n\tfunction escapeJSON(text) {\n\t // TODO: replace with some smart regex (only when a new solution is faster!)\n\t var escaped = '';\n\t var i = 0;\n\t while (i < text.length) {\n\t var c = text.charAt(i);\n\t if (c == '\\n') {\n\t escaped += '\\\\n';\n\t } else if (c == '\\\\') {\n\t escaped += c;\n\t i++;\n\t\n\t c = text.charAt(i);\n\t if (c === '' || '\"\\\\/bfnrtu'.indexOf(c) == -1) {\n\t escaped += '\\\\'; // no valid escape character\n\t }\n\t escaped += c;\n\t } else if (c == '\"') {\n\t escaped += '\\\\\"';\n\t } else {\n\t escaped += c;\n\t }\n\t i++;\n\t }\n\t\n\t return escaped;\n\t}\n\n/***/ },\n/* 12 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\texports.parseJSON = parseJSON;\n\texports.validate = validate;\n\t/**\n\t * Parse JSON using the parser built-in in the browser.\n\t * On exception, the jsonString is validated and a detailed error is thrown.\n\t * @param {String} jsonString\n\t * @return {JSON} json\n\t */\n\tfunction parseJSON(jsonString) {\n\t try {\n\t return JSON.parse(jsonString);\n\t } catch (err) {\n\t // try to throw a more detailed error message using validate\n\t validate(jsonString);\n\t\n\t // rethrow the original error\n\t throw err;\n\t }\n\t}\n\t\n\t/**\n\t * Validate a string containing a JSON object\n\t * This method uses JSONLint to validate the String. If JSONLint is not\n\t * available, the built-in JSON parser of the browser is used.\n\t * @param {String} jsonString String with an (invalid) JSON object\n\t * @throws Error\n\t */\n\tfunction validate(jsonString) {\n\t if (typeof window.jsonlint !== 'undefined') {\n\t window.jsonlint.parse(jsonString);\n\t } else {\n\t JSON.parse(jsonString);\n\t }\n\t}\n\n/***/ },\n/* 13 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\texports.getInnerText = getInnerText;\n\texports.getInternetExplorerVersion = getInternetExplorerVersion;\n\t/**\n\t * Get the inner text of an HTML element (for example a div element)\n\t * @param {Element} element\n\t * @param {Object} [buffer]\n\t * @return {String} innerText\n\t */\n\tfunction getInnerText(element, buffer) {\n\t var first = buffer == undefined;\n\t if (first) {\n\t buffer = {\n\t 'text': '',\n\t 'flush': function flush() {\n\t var text = this.text;\n\t this.text = '';\n\t return text;\n\t },\n\t 'set': function set(text) {\n\t this.text = text;\n\t }\n\t };\n\t }\n\t\n\t // text node\n\t if (element.nodeValue) {\n\t return buffer.flush() + element.nodeValue;\n\t }\n\t\n\t // divs or other HTML elements\n\t if (element.hasChildNodes()) {\n\t var childNodes = element.childNodes;\n\t var innerText = '';\n\t\n\t for (var i = 0, iMax = childNodes.length; i < iMax; i++) {\n\t var child = childNodes[i];\n\t\n\t if (child.nodeName == 'DIV' || child.nodeName == 'P') {\n\t var prevChild = childNodes[i - 1];\n\t var prevName = prevChild ? prevChild.nodeName : undefined;\n\t if (prevName && prevName != 'DIV' && prevName != 'P' && prevName != 'BR') {\n\t innerText += '\\n';\n\t buffer.flush();\n\t }\n\t innerText += getInnerText(child, buffer);\n\t buffer.set('\\n');\n\t } else if (child.nodeName == 'BR') {\n\t innerText += buffer.flush();\n\t buffer.set('\\n');\n\t } else {\n\t innerText += getInnerText(child, buffer);\n\t }\n\t }\n\t\n\t return innerText;\n\t } else {\n\t if (element.nodeName == 'P' && getInternetExplorerVersion() != -1) {\n\t // On Internet Explorer, a

with hasChildNodes()==false is\n\t // rendered with a new line. Note that a

with\n\t // hasChildNodes()==true is rendered without a new line\n\t // Other browsers always ensure there is a
inside the

,\n\t // and if not, the

does not render a new line\n\t return buffer.flush();\n\t }\n\t }\n\t\n\t // br or unknown\n\t return '';\n\t}\n\t\n\t/**\n\t * Returns the version of Internet Explorer or a -1\n\t * (indicating the use of another browser).\n\t * Source: http://msdn.microsoft.com/en-us/library/ms537509(v=vs.85).aspx\n\t * @return {Number} Internet Explorer version, or -1 in case of an other browser\n\t */\n\tfunction getInternetExplorerVersion() {\n\t if (_ieVersion == -1) {\n\t var rv = -1; // Return value assumes failure.\n\t if (navigator.appName == 'Microsoft Internet Explorer') {\n\t var ua = navigator.userAgent;\n\t var re = new RegExp(\"MSIE ([0-9]{1,}[\\.0-9]{0,})\");\n\t if (re.exec(ua) != null) {\n\t rv = parseFloat(RegExp.$1);\n\t }\n\t }\n\t\n\t _ieVersion = rv;\n\t }\n\t\n\t return _ieVersion;\n\t}\n\t\n\t/**\n\t * cached internet explorer version\n\t * @type {Number}\n\t * @private\n\t */\n\tvar _ieVersion = -1;\n\n/***/ },\n/* 14 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// style-loader: Adds some css to the DOM by adding a