vara;a=function(){returna={},r.m=n=[function(e,t){e.exports=function(e){vart,n,a,r="SELECT"===e.nodeName?(e.focus(),e.value):"INPUT"===e.nodeName||"TEXTAREA"===e.nodeName?((t=e.hasAttribute("readonly"))||e.setAttribute("readonly",""),e.select(),e.setSelectionRange(0,e.value.length),t||e.removeAttribute("readonly"),e.value):(e.hasAttribute("contenteditable")&&e.focus(),n=window.getSelection(),(a=document.createRange()).selectNodeContents(e),n.removeAllRanges(),n.addRange(a),n.toString());returnr}},function(e,t){functionn(){}n.prototype={on:function(e,t,n){vara=this.e||(this.e={});return(a[e]||(a[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){vara=this;functionr(){a.off(e,r),t.apply(n,arguments)}returnr._=t,this.on(e,r,n)},emit:function(e){for(vart=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),a=0,r=n.length;a<r;a++)n[a].fn.apply(n[a].ctx,t);returnthis},off:function(e,t){varn=this.e||(this.e={}),a=n[e],r=[];if(a&&t)for(vari=0,o=a.length;i<o;i++)a[i].fn!==t&&a[i].fn._!==t&&r.push(a[i]);returnr.length?n[e]=r:deleten[e],this}},e.exports=n,e.exports.TinyEmitter=n},function(e,t,n){varp=n(3),g=n(4);e.exports=function(e,t,n){if(!e&&!t&&!n)thrownewError("Missing required arguments");if(!p.string(t))thrownewTypeError("Second argument must be a String");if(!p.fn(n))thrownewTypeError("Third argument must be a Function");if(p.node(e))returnu=t,c=n,(d=e).addEventListener(u,c),{destroy:function(){d.removeEventListener(u,c)}};if(p.nodeList(e))returno=e,s=t,l=n,Array.prototype.forEach.call(o,function(e){e.addEventListener(s,l)}),{destroy:function(){Array.prototype.forEach.call(o,function(e){e.removeEventListener(s,l)})}};if(p.string(e))returna=e,r=t,i=n,g(document.body,a,r,i);thrownewTypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList");vara,r,i,o,s,l,d,u,c}},function(e,n){n.node=function(e){returnvoid0!==e&&einstanceofHTMLElement&&1===e.nodeType},n.nodeList=function(e){vart=Object.prototype.toString.call(e);returnvoid0!==e&&("[object NodeList]"===t||"[object HTMLCollection]"===t)&&"length"ine&&(0===e.length||n.node(e[0]))},n.string=function(e){return"string"==typeofe||einstanceofString},n.fn=function(e){return"[object Function]"===Object.prototype.toString.call(e)}},function(e,t,n){varo=n(5);functioni(e,t,n,a,r){vari=function(t,n,e,a){returnfunction(e){e.delegateTarget=o(e.target,n),e.delegateTarget&&a.call(t,e)}}.apply(this,arguments);returne.addEventListener(n,i,r),{destroy:function(){e.removeEventListener(n,i,r)}}}e.exports=function(e,t,n,a,r){return"function"==typeofe.addEventListener?i.apply(null,arguments):"function"==typeofn?i.bind(null,document).apply(null,arguments):("string"==typeofe&&(e=document.querySelectorAll(e)),Array.prototype.map.call(e,function(e){returni(e,t,n,a,r)}))}},function(e,t){varn;"undefined"==typeofElement||Element.prototype.matches||((n=Element.prototype).matches=n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector),e.exports=function(e,t){for(;e&&9!==e.nodeType;){if("function"==typeofe.matches&&e.matches(t))returne;e=e.parentNode}}},function(e,t,n){"use strict";n.r(t);vara=n(0),r=n.n(a),i="function"==typeofSymbol&&"symbol"==typeofSymbol.iterator?function(e){returntypeofe}:function(e){returne&&"function"==typeofSymbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeofe};functiono(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)}}functions(e){!function(e,t){if(!(einstanceoft))thrownewTypeError("Cannot call a class as a function")}(this,s),this.resolveOptions(e),this.initSelection()}varl=(function(e,t,n){returnt&&o(e.prototype,t),n&&o(e,n),e}(s,[{key:"resolveOptions",value:function(e){vart=0<arguments.length&&void0!==e?e:{};this.action=t.action,this.container=t.container,this.emitter=t.emitter,this.target=t.target,this.text=t.text,this.trigger=t.trigger,this.selectedText=""}},{key:"initSelection",value:function(){t