!function(e){if("object"==typeofexports&&"undefined"!=typeofmodule)module.exports=e();elseif("function"==typeofdefine&&define.amd)define([],e);else{vart;t="undefined"!=typeofwindow?window:"undefined"!=typeofglobal?global:"undefined"!=typeofself?self:this,t.Clipboard=e()}}(function(){vare,t,n;returnfunctione(t,n,r){functioni(a,u){if(!n[a]){if(!t[a]){varc="function"==typeofrequire&&require;if(!u&&c)returnc(a,!0);if(o)returno(a,!0);vars=newError("Cannot find module '"+a+"'");throws.code="MODULE_NOT_FOUND",s}varl=n[a]={exports:{}};t[a][0].call(l.exports,function(e){varn=t[a][1][e];returni(n?n:e)},l,l.exports,e,t,n,r)}returnn[a].exports}for(varo="function"==typeofrequire&&require,a=0;a<r.length;a++)i(r[a]);returni}({1:[function(e,t,n){varr=e("matches-selector");t.exports=function(e,t,n){for(vari=n?e:e.parentNode;i&&i!==document;){if(r(i,t))returni;i=i.parentNode}}},{"matches-selector":5}],2:[function(e,t,n){functionr(e,t,n,r,o){vara=i.apply(this,arguments);returne.addEventListener(n,a,o),{destroy:function(){e.removeEventListener(n,a,o)}}}functioni(e,t,n,r){returnfunction(n){n.delegateTarget=o(n.target,t,!0),n.delegateTarget&&r.call(e,n)}}varo=e("closest");t.exports=r},{closest:1}],3:[function(e,t,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){vart=Object.prototype.toString.call(e);return"[object Function]"===t}},{}],4:[function(e,t,n){functionr(e,t,n){if(!e&&!t&&!n)thrownewError("Missing required arguments");if(!u.string(t))thrownewTypeError("Second argument must be a String");if(!u.fn(n))thrownewTypeError("Third argument must be a Function");if(u.node(e))returni(e,t,n);if(u.nodeList(e))returno(e,t,n);if(u.string(e))returna(e,t,n);thrownewTypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}functioni(e,t,n){returne.addEventListener(t,n),{destroy:function(){e.removeEventListener(t,n)}}}functiono(e,t,n){returnArray.prototype.forEach.call(e,function(e){e.addEventListener(t,n)}),{destroy:function(){Array.prototype.forEach.call(e,function(e){e.removeEventListener(t,n)})}}}functiona(e,t,n){returnc(document.body,e,t,n)}varu=e("./is"),c=e("delegate");t.exports=r},{"./is":3,delegate:2}],5:[function(e,t,n){functionr(e,t){if(o)returno.call(e,t);for(varn=e.parentNode.querySelectorAll(t),r=0;r<n.length;++r)if(n[r]==e)return!0;return!1}vari=Element.prototype,o=i.matchesSelector||i.webkitMatchesSelector||i.mozMatchesSelector||i.msMatchesSelector||i.oMatchesSelector;t.exports=r},{}],6:[function(e,t,n){functionr(e){vart;if("INPUT"===e.nodeName||"TEXTAREA"===e.nodeName)e.focus(),e.setSelectionRange(0,e.value.length),t=e.value;else{e.hasAttribute("contenteditable")&&e.focus();varn=window.getSelection(),r=document.createRange();r.selectNodeContents(e),n.removeAllRanges(),n.addRange(r),t=n.toString()}returnt}t.exports=r},{}],7:[function(e,t,n){functionr(){}r.prototype={on:function(e,t,n){varr=this.e||(this.e={});return(r[e]||(r[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){functionr(){i.off(e,r),t.apply(n,arguments)}vari=this;returnr._=t,this.on(e,r,n)},emit:function(e){vart=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),r=0,i=n.length;for(r;i>r;r++)n[r].fn.apply(n[r].ctx,t);returnthis},off:function(e,t){varn=this.e||(this.e={}),r=n[e],i=[];if(r&&t)for(varo=0,a=r.length;a>o;o++)r[o].fn!==t&&r[o].fn._!==t&&i.push(r[o]);returni.length?n[e]=i:deleten[e],this}},t.exports=r},{}],8:[function(e,t,n){"use strict";functionr(e){returne&&e.__esModule?e:{"default":e}}functioni(e,t){if(!(einstanceoft))thrownewTypeError("Cannot call a class as a function")}varo="function"==typeofSymbol&&"symbol"==typeofSymbol.iterator?function(e){returntypeofe}:function(e){returne&&"function"==typeofSymbol&&e.constructor===Symbo