text: (()=>{var Y=(k,y)=>()=>(y||k((y={exports:{}}).exports,y),y.exports);var L=Y((T,C)=>{(function(y,m){typeof T=="object"&&typeof C=="object"?C.exports=m():typeof define=="function"&&define.amd?define([],m):typeof T=="object"?T.ClipboardJS=m():y.ClipboardJS=m()})(T,function(){return function(){var k={134:function(l,a,e){"use strict";e.d(a,{default:function(){return z}});var o=e(279),c=e.n(o),s=e(370),v=e.n(s),h=e(817),b=e.n(h);function f(r){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?f=function(t){return typeof t}:f=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},f(r)}function p(r,n){if(!(r instanceof n))throw new TypeError("Cannot call a class as a function")}function d(r,n){for(var t=0;t<n.length;t++){var i=n[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(r,i.key,i)}}function E(r,n,t){return n&&d(r.prototype,n),t&&d(r,t),r}var R=function(){function r(n){p(this,r),this.resolveOptions(n),this.initSelection()}return E(r,[{key:"resolveOptions",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};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(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"createFakeElement",value:function(){var t=document.documentElement.getAttribute("dir")==="rtl";this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[t?"right":"left"]="-9999px";var i=window.pageYOffset||document.documentElement.scrollTop;return this.fakeElem.style.top="".concat(i,"px"),this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.fakeElem}},{key:"selectFake",value:function(){var t=this,i=this.createFakeElement();this.fakeHandlerCallback=function(){return t.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.container.appendChild(i),this.selectedText=b()(i),this.copyText(),this.removeFake()}},{key:"removeFake",value:function(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=b()(this.target),this.copyText()}},{key:"copyText",value:function(){var t;try{t=document.execCommand(this.action)}catch(i){t=!1}this.handleResult(t)}},{key:"handleResult",value:function(t){this.emitter.emit(t?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.trigger&&this.trigger.focus(),document.activeElement.blur(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"copy";if(this._action=t,this._action!=="copy"&&this._action!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(t){if(t!==void 0)if(t&&f(t)==="object"&&t.nodeType===1){if(this.action==="copy"&&t.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if(this.action==="cut"&&(t.hasAttribute("readonly")||t.hasAttribute("disabled")))throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`);this._target=t}else throw new Error('Invalid "target" value, use a valid Element')},get:function(){return this._target}}]),r}(),F=R;function S(r){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?S=function(t){return typeof t}:S=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},S(r)}function P(r,n){if(!(r instanceof n))throw new TypeError("Cannot call a class as a function")}function O(r,n){for(var t=0;t<n.length;t++){var i=n[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(r,i.key,i)}}function j(r,n,t){return n&&O(r.prototype,n),t&&O(r,t),r}function N(r,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(n&&n.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),n&&w(r,n)}function w(r,n){return w=Object.setPrototypeOf||function(i,u){return i.__proto__=u,i},w(r,n)}function M(r){var n=I();return function(){var i=x(r),u;if(n){var g=x(this).constructor;u=Reflect.construct(i,arguments,g)}else u=i.apply(this,arguments);return H(this,u)}}function H(r,n){return n&&(S(n)==="object"||typeof n=="function")?n:D(r)}function D(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}function I(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(r){return!1}}function x(r){return x=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},x(r)}function A(r,n){var t="data-clipboard-".concat(r);if(!!n.hasAttribute(t))return n.getAttribute(t)}var J=function(r){N(t,r);var n=M(t);function t(i,u){var g;return P(this,t),g=n.call(this),g.resolveOptions(u),g.listenClick(i),g}return j(t,[{key:"resolveOptions",value:function(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.action=typeof u.action=="function"?u.action:this.defaultAction,this.target=typeof u.target=="function"?u.target:this.defaultTarget,this.text=typeof u.text=="function"?u.text:this.defaultText,this.container=S(u.container)==="object"?u.container:document.body}},{key:"listenClick",value:function(u){var g=this;this.listener=v()(u,"click",function(_){return g.onClick(_)})}},{key:"onClick",value:function(u){var g=u.delegateTarget||u.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new F({action:this.action(g),target:this.target(g),text:this.text(g),container:this.container,trigger:g,emitter:this})}},{key:"defaultAction",value:function(u){return A("action",u)}},{key:"defaultTarget",value:function(u){var g=A("target",u);if(g)return document.querySelector(g)}},{key:"defaultText",value:function(u){return A("text",u)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["copy","cut"],g=typeof u=="string"?[u]:u,_=!!document.queryCommandSupported;return g.forEach(function(U){_=_&&!!document.queryCommandSupported(U)}),_}}]),t}(c()),z=J},828:function(l){var a=9;if(typeof Element!="undefined"&&!Element.prototype.matches){var e=Element.prototype;e.matches=e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector}function o(c,s){for(;c&&c.nodeType!==a;){if(typeof c.matches=="function"&&c.matches(s))return c;c=c.parentNode}}l.exports=o},438:function(l,a,e){var o=e(828);function c(h,b,f,p,d){var E=v.apply(this,arguments);return h.addEventListener(f,E,d),{destroy:function(){h.removeEventListener(f,E,d)}}}function s(h,b,f,p,d){return typeof h.addEventListener=="function"?c.apply(null,arguments):typeof f=="function"?c.bind(null,document).apply(null,arguments):(typeof h=="string"&&(h=document.querySelectorAll(h)),Array.prototype.map.call(h,function(E){return c(E,b,f,p,d)}))}function v(h,b,f,p){return function(d){d.delegateTarget=o(d.target,b),d.delegateTarget&&p.call(h,d)}}l.exports=s},879:function(l,a){a.node=function(e){return e!==void 0&&e instanceof HTMLElement&&e.nodeType===1},a.nodeList=function(e){var o=Object.prototype.toString.call(e);return e!==void 0&&(o==="[object NodeList]"||o==="[object HTMLCollection]")&&"length"in e&&(e.length===0||a.node(e[0]))},a.string=function(e){return typeof e=="string"||e instanceof String},a.fn=function(e){var o=Object.prototype.toString.call(e);return o==="[object Function]"}},370:function(l,a,e){var o=e(879),c=e(438);function s(f,p,d){if(!f&&!p&&!d)throw new Error("Missing required arguments");if(!o.string(p))throw new TypeError("Second argument must be a String");if(!o.fn(d))throw new TypeError("Third argument must be a Function");if(o.node(f))return v(f,p,d);if(o.nodeList(f))return h(f,p,d);if(o.string(f))return b(f,p,d);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function v(f,p,d){return f.addEventListener(p,d),{destroy:function(){f.removeEventListener(p,d)}}}function h(f,p,d){return Array.prototype.forEach.call(f,function(E){E.addEventListener(p,d)}),{destroy:function(){Array.prototype.forEach.call(f,function(E){E.removeEventListener(p,d)})}}}function b(f,p,d){return c(document.body,f,p,d)}l.exports=s},817:function(l){function a(e){var o;if(e.nodeName==="SELECT")e.focus(),o=e.value;else if(e.nodeName==="INPUT"||e.nodeName==="TEXTAREA"){var c=e.hasAttribute("readonly");c||e.setAttribute("readonly",""),e.select(),e.setSelectionRange(0,e.value.length),c||e.removeAttribute("readonly"),o=e.value}else{e.hasAttribute("contenteditable")&&e.focus();var s=window.getSelection(),v=document.createRange();v.selectNodeContents(e),s.removeAllRanges(),s.addRange(v),o=s.toString()}return o}l.exports=a},279:function(l){function a(){}a.prototype={on:function(e,o,c){var s=this.e||(this.e={});return(s[e]||(s[e]=[])).push({fn:o,ctx:c}),this},once:function(e,o,c){var s=this;function v(){s.off(e,v),o.apply(c,arguments)}return v._=o,this.on(e,v,c)},emit:function(e){var o=[].slice.call(arguments,1),c=((this.e||(this.e={}))[e]||[]).slice(),s=0,v=c.length;for(s;s<v;s++)c[s].fn.apply(c[s].ctx,o);return this},off:function(e,o){var c=this.e||(this.e={}),s=c[e],v=[];if(s&&o)for(var h=0,b=s.length;h<b;h++)s[h].fn!==o&&s[h].fn._!==o&&v.push(s[h]);return v.length?c[e]=v:delete c[e],this}},l.exports=a,l.exports.TinyEmitter=a}},y={};function m(l){if(y[l])return y[l].exports;var a=y[l]={exports:{}};return k[l](a,a.exports,m),a.exports}return function(){m.n=function(l){var a=l&&l.__esModule?function(){return l.default}:function(){return l};return m.d(a,{a}),a}}(),function(){m.d=function(l,a){for(var e in a)m.o(a,e)&&!m.o(l,e)&&Object.defineProperty(l,e,{enumerable:!0,get:a[e]})}}(),function(){m.o=function(l,a){return Object.prototype.hasOwnProperty.call(l,a)}}(),m(134)}().default})});ClipboardJS=L();(function(){"use strict";let k=new ClipboardJS(".code-clipper");k.on("success",y=>{let m=y.trigger.textContent;y.trigger.textContent="Copied",y.clearSelection(),setTimeout(function(){y.trigger.textContent=m},1e3)}),k.on("error",y=>{console.error("Action:",y.action),console.error("Trigger:",y.trigger)})})();})();
  /*!
   * clipboard.js v2.0.8
   * https://clipboardjs.com/
   *
   * Licensed MIT © Zeno Rocha
   */
  //# sourceMappingURL=clipper.min.js.map
  