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