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,a,r,i,o){try{vars=e[i](o),l=s.value}catch(e){returnvoidn(e)}s.done?t(l):Promise.resolve(l).then(a,r)}function_asyncToGenerator(e){returnfunction(){vart=this,n=arguments;returnnewPromise(function(a,r){vari=e.apply(t,n);functiono(e){asyncGeneratorStep(i,a,r,o,s,"next",e)}functions(e){asyncGeneratorStep(i,a,r,o,s,"throw",e)}o(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++){vara=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"ina&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}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(varainn)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}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=[],a=!0,r=!1,i=void0;try{for(varo,s=e[Symbol.iterator]();!(a=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);a=!0);}catch(e){r=!0,i=e}finally{try{a||null==s.return||s.return()}finally{if(r)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],a="";switch(e.type){case"touchstart":a="mousedown";break;case"touchmove":a="mousemove";break;case"touchend":a="mouseup";break;default:return}varr=n.screenX,i=n.screenY,o=n.clientX,s=n.clientY,l=newMouseEvent(a,{bubbles:!0,cancelable:!0,view:window,detail:1,screenX:r,screenY:i,clientX:o,clientY:s,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