function_typeof(e){return(_typeof="function"==typeofSymbol&&"symbol"==typeofSymbol.iterator?function(e){returntypeofe}:function(e){returne&&"function"==typeofSymbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeofe})(e)}functionasyncGeneratorStep(e,t,n,r,a,i,s){try{varo=e[i](s),l=o.value}catch(e){returnvoidn(e)}o.done?t(l):Promise.resolve(l).then(r,a)}function_asyncToGenerator(e){returnfunction(){vart=this,n=arguments;returnnewPromise(function(r,a){vari=e.apply(t,n);functions(e){asyncGeneratorStep(i,r,a,s,o,"next",e)}functiono(e){asyncGeneratorStep(i,r,a,s,o,"throw",e)}s(void0)})}}function_classCallCheck(e,t){if(!(einstanceoft))thrownewTypeError("Cannot call a class as a function")}function_defineProperties(e,t){for(varn=0;n<t.length;n++){varr=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"inr&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function_createClass(e,t,n){returnt&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),e}function_extends(){return(_extends=Object.assign||function(e){for(vart=1;t<arguments.length;t++){varn=arguments[t];for(varrinn)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}returne}).apply(this,arguments)}function_inherits(e,t){if("function"!=typeoft&&null!==t)thrownewTypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_setPrototypeOf(e,t)}function_getPrototypeOf(e){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(e){returne.__proto__||Object.getPrototypeOf(e)})(e)}function_setPrototypeOf(e,t){return(_setPrototypeOf=Object.setPrototypeOf||function(e,t){returne.__proto__=t,e})(e,t)}function_assertThisInitialized(e){if(void0===e)thrownewReferenceError("this hasn't been initialised - super() hasn't been called");returne}function_possibleConstructorReturn(e,t){return!t||"object"!=typeoft&&"function"!=typeoft?_assertThisInitialized(e):t}function_slicedToArray(e,t){return_arrayWithHoles(e)||_iterableToArrayLimit(e,t)||_nonIterableRest()}function_toConsumableArray(e){return_arrayWithoutHoles(e)||_iterableToArray(e)||_nonIterableSpread()}function_arrayWithoutHoles(e){if(Array.isArray(e)){for(vart=0,n=newArray(e.length);t<e.length;t++)n[t]=e[t];returnn}}function_arrayWithHoles(e){if(Array.isArray(e))returne}function_iterableToArray(e){if(Symbol.iteratorinObject(e)||"[object Arguments]"===Object.prototype.toString.call(e))returnArray.from(e)}function_iterableToArrayLimit(e,t){varn=[],r=!0,a=!1,i=void0;try{for(vars,o=e[Symbol.iterator]();!(r=(s=o.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(e){a=!0,i=e}finally{try{r||null==o.return||o.return()}finally{if(a)throwi}}returnn}function_nonIterableSpread(){thrownewTypeError("Invalid attempt to spread non-iterable instance")}function_nonIterableRest(){thrownewTypeError("Invalid attempt to destructure non-iterable instance")}functiontouchHandler(e){vart=e.changedTouches,n=t[0],r="";switch(e.type){case"touchstart":r="mousedown";break;case"touchmove":r="mousemove";break;case"touchend":r="mouseup";break;default:return}vara=n.screenX,i=n.screenY,s=n.clientX,o=n.clientY,l=newMouseEvent(r,{bubbles:!0,cancelable:!0,view:window,detail:1,screenX:a,screenY:i,clientX:s,clientY:o,ctrlKey:!1,altKey:!1,shiftKey:!1,metaKey:!1,button:0,relatedTarget:null});t.length<2&&(n.target.dispatchEvent(l),e.preventDefault())}document.addEventListener("touchstart",touchHandler,!0),document.addEventListener("touchmove",touchHandler,!0),document.addEventListener("touchend",touchHandler,!0),document.addEventListener("touchcancel",touchHandler,!0);varNS={HTML:"http://www.w3.org/1999/xhtml",MATH:"http://www.w3.org/1998/Math/MathML",SE:"http://svg-edit.googlecode.com",SVG:"http://www.w3.org/2000/svg",XLINK:"http://www.w3.org/1999/xlink",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"},getReverseNS=function(){vare={};returnObject.entries(NS).forEach(function(t){varn=_slicedToArray(t