!function(t,e){"object"==typeofexports&&"object"==typeofmodule?module.exports=e():"function"==typeofdefine&&define.amd?define([],e):"object"==typeofexports?exports.clipboard=e():t.clipboard=e()}(this,function(){returnfunction(t){functione(r){if(n[r])returnn[r].exports;varo=n[r]={i:r,l:!1,exports:{}};returnt[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}varn={};returne.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){varn=t&&t.__esModule?function(){returnt.default}:function(){returnt};returne.d(n,"a",n),n},e.o=function(t,e){returnObject.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=0)}([function(t,e,n){"use strict";functionr(t,e,n){y("listener called"),t.success=!0,e.forEach(function(e,r){n.clipboardData.setData(r,e),r===_&&n.clipboardData.getData(r)!=e&&(y("setting text/plain failed"),t.success=!1)}),n.preventDefault()}functiono(t){vare=newx,n=r.bind(this,e,t);document.addEventListener("copy",n);try{document.execCommand("copy")}finally{document.removeEventListener("copy",n)}returne.success}functioni(t,e){c(t);varn=o(e);returna(),n}functionu(t){vare=document.createElement("div");e.setAttribute("style","-webkit-user-select: text !important"),e.textContent="temporary element",document.body.appendChild(e);varn=i(e,t);returndocument.body.removeChild(e),n}functions(t){y("copyTextUsingDOM");vare=document.createElement("div");e.setAttribute("style","-webkit-user-select: text !important");varn=e;e.attachShadow&&(y("Using shadow DOM."),n=e.attachShadow({mode:"open"}));varr=document.createElement("span");r.innerText=t,n.appendChild(r),document.body.appendChild(e),c(r);varo=document.execCommand("copy");returna(),document.body.removeChild(e),o}functionc(t){vare=document.getSelection(),n=document.createRange();n.selectNodeContents(t),e.removeAllRanges(),e.addRange(n)}functiona(){document.getSelection().removeAllRanges()}functionl(t){vare=newv.DT;returne.setData(_,t),e}functionf(){return"undefined"==typeofClipboardEvent&&void0!==window.clipboardData&&void0!==window.clipboardData.setData}functiond(t){vare=t.getData(_);if(void0!==e)returnwindow.clipboardData.setData("Text",e);throw"No `text/plain` value was specified."}functionp(){returnnewm(function(t,e){varn=window.clipboardData.getData("Text");""===n?e(newError("Empty clipboard or could not read plain text from clipboard")):t(n)})}Object.defineProperty(e,"__esModule",{value:!0});varh=n(1),v=n(5),m="undefined"==typeofPromise?h.Promise:Promise,y=function(t){},w=!0,b=function(){(console.warn||console.log).call(arguments)},g=b.bind(console,"[clipboard-polyfill]"),_="text/plain",T=function(){functiont(){}returnt.setDebugLog=function(t){y=t},t.suppressWarnings=function(){w=!1,v.suppressDTWarnings()},t.write=function(t){returnw&&!t.getData(_)&&g("clipboard.write() was called without a `text/plain` data type. On some platforms, this may result in an empty clipboard. Call clipboard.suppressWarnings() to suppress this warning."),newm(function(e,n){if(f())returnvoid(d(t)?e():n(newError("Copying failed, possibly because the user rejected it.")));if(o(t))returny("regular execCopy worked"),voide();if(navigator.userAgent.indexOf("Edge")>-1)returny('UA "Edge" => assuming success'),voide();if(i(document.body,t))returny("copyUsingTempSelection worked"),voide();if(u(t))returny("copyUsingTempElem worked"),voide();varr=t.getData(_);if(void0!==r&&s(r))returny("copyTextUsingDOM worked"),voide();n(newError("Copy command failed."))})},t.writeText=function(t){if(navigator.clipboard&&navigator.clipboard.writeText)returnnavigator.clipboard.writeText(t);vare=newv.DT;returne.setData(_,t),this.write(e)},t.read=function(){returnnewm(function(t,e){if(f())returnvoidp().then(function(e){returnt(l(e))},e);e("Read is not supported in your browser.")})},t.readText=function(){returnnavigator.clipboard&&navigator.clipboard.readText?navigator.clipboard.readText():f()?p():newm(function(t,e){e("Read is not supported in your browser.")})},t.DT=v.DT,t}();e.default=T;varx=function(){functiont(){this.success=!1}returnt}();t.exports=T},function(t,e,n){(function(e,r){/*! * @overview es6-promise - a tiny implementation of Promises/A+. * @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald) * @license Licensed under MIT license * See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE * @version 4.1.1 */!function(e,n){t.exports=n()}(0,function(){"use strict";functiont(t){vare=typeoft;returnnull!==t&&("object"===e||"function"===e)}functiono(t){return"function"==typeoft}functioni(t){G=t}functionu(t){H=t}functions(){returnvoid0!==B?function(){B(a)}:c()}functionc(){vart=setTimeout;returnfunction(){returnt(a,1)}}functiona(){for(vart=0;t<z;t+=2){(0,Z[t])(Z[t+1]),Z[t]=void0,Z[t+1]=void0}z=0}functionl(t,e){varn=arguments,r=this,o=newthis.constructor(d);void0===o[tt]&&M(o);vari=r._state;returni?function(){vart=n[i-1];H(function(){returnj(i,o,t,r._result)})}():D(r,o,t,e),o}functionf(t){vare=this;if(t&&"object"==typeoft&&t.constructor===e)returnt;varn=newe(d);returng(n,t),n}functiond(){}functionp(){returnnewTypeError("You cannot resolve a promise with itself")}functionh(){returnnewTypeError("A promises callback cannot return that same promise.")}functionv(t){try{returnt.then}catch(t){returnot.error=t,ot}}functionm(t,e,n,r){try{t.call(e,n,r)}catch(t){returnt}}functiony(t,e,n){H(function(t){varr=!1,o=m(n,e,function(n){r||(r=!0,e!==n?g(t,n):T(t,n))},function(e){r||(r=!0,x(t,e))},"Settle: "+(t._label||" unknown promise"));!r&&o&&(r=!0,x(t,o))},t)}functionw(t,e){e._state===nt?T(t,e._result):e._state===rt?x(t,e._result):D(e,void0,function(e){returng(t,e)},function(e){returnx(t,e)})}functionb(t,e,n){e.constructor===t.constructor&&n===l&&e.constructor.resolve===f?w(t,e):n===ot?(x(t,ot.error),ot.error=null):void0===n?T(t,e):o(n)?y(t,e,n):T(t,e)}functiong(e,n){e===n?x(e,p()):t(n)?b(e,n,v(n)):T(e,n)}function_(t){t._onerror&&t._onerror(t._result),A(t)}functionT(t,e){t._state===et&&(t._result=e,t._state=nt,0!==t._subscribers.length&&H(A,t))}functionx(t,e){t._state===et&&(t._state=rt,t._result=e,H(_,t))}functionD(t,e,n,r){varo=t._subscribers,i=o.length;t._onerror=null,o[i]=e,o[i+nt]=n,o[i+rt]=r,0===i&&t._state&&H(A,t)}functionA(t){vare=t._subscribers,n=t._state;if(0!==e.length){for(varr=void0,o=void0,i=t._result,u=0;u<e.length;u+=3)r=e[u],o=e[u+n],r?j(n,r,o,i):o(i);t._subscribers.length=0}}functionE(){this.error=null}functionC(t,e){try{returnt(e)}catch(t){returnit.error=t,it}}functionj(t,e,n,r){vari=o(n),u=void0,s=void0,c=void0,a=void0;if(i){if(u=C(n,r),u===it?(a=!0,s=u.error,u.error=null):c=!0,e===u)returnvoidx(e,h())}elseu=r,c=!0;e._state!==et||(i&&c?g(e,u):a?x(e,s):t===nt?T(e,u):t===rt&&x(e,u))}functionO(t,e){try{e(function(e){g(t,e)},function(e){x(t,e)})}catch(e){x(t,e)}}functionS(){returnut++}functionM(t){t[tt]=ut++,t._state=void0,t._result=void0,t._subscribers=[]}functionP(t,e){this._instanceConstructor=t,this.promise=newt(d),this.promise[tt]||M(this.promise),q(e)?(this.length=e.length,this._remaining=e.length,this._result=newArray(this.length),0===this.length?T(this.promise,this._result):(this.length=this.length||0,this._enumerate(e),0===this._remaining&&T(this.promise,this._result))):x(this.promise,k())}functionk(){returnnewError("Array Methods must be provided an Array")}functionL(t){returnnewP(this,t).promise}functionU(t){vare=this;returnnewe(q(t)?function(n,r){for(varo=t.length,i=0;i<o;i++)e.resolve(t[i]).then(n,r)}:function(t,e){returne(newTypeError("You must pass an array to race."))})}functionR(t){vare=this,n=newe(d);returnx(n,t),n}functionW(){thrownewTypeError("You must pass a resolver function as the first argument to the promise constructor")}functionF(){thrownewTypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}functionN(t){this[tt]=S(),this._result=this._state=void0,this._subscribers=[],d!==t&&("function"!=typeoft&&W(),thisinstanceofN?O(this,t):F())}functionY(){vart=void0;if(void0!==r)t=r;elseif("undefined"!=typeofself)t=self;elsetry{t=Function("return this")()}catch(t){thrownewError("polyfill failed because global object is unavailable in this environment")}vare=t.Promise;if(e){varn=null;try{n=Object.prototype.toString.call(e.resolve())}catch(t){}if("[object Promise]"===n&&!e.cast)return}t.Promise=N}varK=void0;K=Array.isArray?Array.isArray:function(t){return"[object Array]"===Object.prototype.toString.call(t)};varq=K,z=0,B=void0,G=void0,H=function(t,e){Z[z]=t,Z[z+1]=e,2===(z+=2)&&(G?G(a):$())},I="undefined"!=typeofwindow?window:void0,J=I||{},Q=J.MutationObserver||J.WebKitMutationObserver,V="undefined"==typeofself&&void0!==e&&"[object process]"==={}.toString.call(e),X="undefined"!=typeofUint8ClampedArray&&"undefined"!=typeofimportScripts&&"undefined"!=typeofMessageChannel,Z=newArray(1e3),$=void0;$=V?function(){returnfunction(){returne.nextTick(a)}}():Q?function(){vart=0,e=newQ(a),n=document.createTextNode("");returne.observe(n,{characterData:!0}),function(){n.data=t=++t%2}}():X?function(){vart=newMessageChannel;returnt.port1.onmessage=a,function(){returnt.port2.postMessage(0)}}():void0===I?function(){try{vart=n(4);returnB=t.runOnLoop||t.runOnContext,s()}catch(t){returnc()}}():c();vartt=Math.random().toString(36).substring(16),et=void0,nt=1,rt=2,ot=newE,it=newE,ut=0;returnP.prototype._enumerate=function(t){for(vare=0;this._state===et&&e<t.length;e++)this._eachEntry(t[e],e)},P.prototype._eachEntry=function(t,e){varn=this._instanceConstructor,r=n.resolve;if(r===f){varo=v(t);if(o===l&&t._state!==et)this._settledAt(t._state,e,t._result);elseif("function"!=typeofo)this._remaining--,this._result[e]=t;elseif(n===N){vari=newn(d);b(i,t,o),this._willSettleAt(i,e)}elsethis._willSettleAt(newn(function(e){returne(t)}),e)}elsethis._willSettleAt(r(t),e)},P.prototype._settledAt=function(t,e,n){varr=this.promise;r._state===et&&(this._remaining--,t===rt?x(r,n):this._result[e]=n),0===this._remaining&&T(r,this._result)},P.prototype._willSettleAt=function(t,e){varn=this;D(t,void0,function(t){returnn._settledAt(nt,e,t)},function(t){returnn._settledAt(rt,e,t)})},N.all=L,N.race=U,N.resolve=f,N.reject=R,N._setScheduler=i,N._setAsap=u,N._asap=H,N.prototype={constructor:N,then:l,catch:function(t){returnthis.then(null,t)}},N.polyfill=Y,N.Promise=N,N})}).call(e,n(2),n(3))},function(t,e){functionn(){thrownewError("setTimeout has not been defined")}functionr(){thrownewError("clearTimeout has not been defined")}functiono(t){if(l===setTimeout)returnsetTimeout(t,0);if((l===n||!l)&&setTimeout)returnl=setTimeout,setTimeout(t,0);try{returnl(t,0)}catch(e){try{returnl.call(null,t,0)}catch(e){returnl.call(this,t,0)}}}functioni(t){if(f===clearTimeout)returnclearTimeout(t);if((f===r||!f)&&clearTimeout)returnf=clearTimeout,clearTimeout(t);try{returnf(t)}catch(e){try{returnf.call(null,t)}catch(e){returnf.call(this,t)}}}functionu(){v&&p&&(v=!1,p.length?h=p.concat(h):m=-1,h.length&&s())}functions(){if(!v){vart=o(u);v=!0;for(vare=h.length;e;){for(p=h,h=[];++m<e;)p&&p[m].run();m=-1,e=h.length}p=null,v=!1,i(t)}}functionc(t,e){this.fun=t,this.array=e}functiona(){}varl,f,d=t.exports={};!function(){try{l="function"==typeofsetTimeout?setTimeout:n}catch(t){l=n}try{f="function"==typeofclearTimeout?clearTimeout:r}catch(t){f=r}}();varp,h=[],v=!1,m=-1;d.nextTick=function(t){vare=newArray(arguments.length-1);if(arguments.length>1)for(varn=1;n<arguments.length;n++)e[n-1]=arguments[n];h.push(newc(t,e)),1!==h.length||v||o(s)},c.prototype.run=function(){this.fun.apply(null,this.array)},d.title="browser",d.browser=!0,d.env={},d.argv=[],d.version="",d.versions={},d.on=a,d.addListener=a,d.once=a,d.off=a,d.removeListener=a,d.removeAllListeners=a,d.emit=a,d.prependListener=a,d.prependOnceListener=a,d.listeners=function(t){return[]},d.binding=function(t){thrownewError("process.binding is not supported")},d.cwd=function(){return"/"},d.chdir=function(t){thrownewError("process.chdir is not supported")},d.umask=function(){return0}},function(t,e){varn;n=function(){returnthis}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeofwindow&&(n=window)}t.exports=n},function(t,e){},function(t,e,n){"use strict";functionr(){s=!1}Object.defineProperty(e,"__esModule",{value:!0});varo=["text/plain","text/html"],i=function(){(console.warn||console.log).call(arguments)},u=i.bind(console,"[clipboard-polyfill]"),s=!0;e.suppressDTWarnings=r;varc=function(){functiont(){this.m={}}returnt.prototype.setData=function(t,e){s&&-1===o.indexOf(t)&&u("Unknown data type: "+t,"Call clipboard.suppressWarnings() to suppress this warning."),this.m[t]=e},t.prototype.getData=function(t){returnthis.m[t]},t.prototype.forEach=function(t){for(vareinthis.m)t(this.m[e],e)},t}();e.DT=c}])});