You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

7 lines
160 KiB

4 years ago
  1. !function(){var n={213:function(e,t,n){var a,g,i,r,l,o,m=function(l){var d=/\blang(?:uage)?-([\w-]+)\b/i,t=0,I={manual:l.Prism&&l.Prism.manual,disableWorkerMessageHandler:l.Prism&&l.Prism.disableWorkerMessageHandler,util:{encode:function e(t){return t instanceof N?new N(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++t}),e.__id},clone:function n(e,a){var i,t;switch(a=a||{},I.util.type(e)){case"Object":if(t=I.util.objId(e),a[t])return a[t];for(var r in a[t]=i={},e)e.hasOwnProperty(r)&&(i[r]=n(e[r],a));return i;case"Array":return t=I.util.objId(e),a[t]||(a[t]=i=[],e.forEach(function(e,t){i[t]=n(e,a)}),i);default:return e}},getLanguage:function(e){for(;e&&!d.test(e.className);)e=e.parentElement;return e?(e.className.match(d)||[,"none"])[1].toLowerCase():"none"},currentScript:function(){if("undefined"==typeof document)return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(e){var t=(/at [^(\r\n]*\((.*):.+:.+\)$/i.exec(e.stack)||[])[1];if(t){var n,a=document.getElementsByTagName("script");for(n in a)if(a[n].src==t)return a[n]}return null}},isActive:function(e,t,n){for(var a="no-"+t;e;){var i=e.classList;if(i.contains(t))return!0;if(i.contains(a))return!1;e=e.parentElement}return!!n}},languages:{extend:function(e,t){var n,a=I.util.clone(I.languages[e]);for(n in t)a[n]=t[n];return a},insertBefore:function(n,e,t,a){var i,r=(a=a||I.languages)[n],o={};for(i in r)if(r.hasOwnProperty(i)){if(i==e)for(var s in t)t.hasOwnProperty(s)&&(o[s]=t[s]);t.hasOwnProperty(i)||(o[i]=r[i])}var l=a[n];return a[n]=o,I.languages.DFS(I.languages,function(e,t){t===l&&e!=n&&(this[e]=o)}),o},DFS:function e(t,n,a,i){i=i||{};var r,o,s,l=I.util.objId;for(r in t)t.hasOwnProperty(r)&&(n.call(t,r,t[r],a||r),o=t[r],"Object"!==(s=I.util.type(o))||i[l(o)]?"Array"!==s||i[l(o)]||(i[l(o)]=!0,e(o,n,r,i)):(i[l(o)]=!0,e(o,n,null,i)))}},plugins:{},highlightAll:function(e,t){I.highlightAllUnder(document,e,t)},highlightAllUnder:function(e,t,n){var a={callback:n,container:e,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};I.hooks.run("before-highlightall",a),a.elements=Array.prototype.slice.apply(a.container.querySelectorAll(a.selector)),I.hooks.run("before-all-elements-highlight",a);for(var i,r=0;i=a.elements[r++];)I.highlightElement(i,!0===t,a.callback)},highlightElement:function(e,t,n){var a=I.util.getLanguage(e),i=I.languages[a];e.className=e.className.replace(d,"").replace(/\s+/g," ")+" language-"+a;var r=e.parentElement;r&&"pre"===r.nodeName.toLowerCase()&&(r.className=r.className.replace(d,"").replace(/\s+/g," ")+" language-"+a);var o={element:e,language:a,grammar:i,code:e.textContent};function s(e){o.highlightedCode=e,I.hooks.run("before-insert",o),o.element.innerHTML=o.highlightedCode,I.hooks.run("after-highlight",o),I.hooks.run("complete",o),n&&n.call(o.element)}if(I.hooks.run("before-sanity-check",o),!o.code)return I.hooks.run("complete",o),void(n&&n.call(o.element));I.hooks.run("before-highlight",o),o.grammar?t&&l.Worker?((t=new Worker(I.filename)).onmessage=function(e){s(e.data)},t.postMessage(JSON.stringify({language:o.language,code:o.code,immediateClose:!0}))):s(I.highlight(o.code,o.grammar,o.language)):s(I.util.encode(o.code))},highlight:function(e,t,n){n={code:e,grammar:t,language:n};return I.hooks.run("before-tokenize",n),n.tokens=I.tokenize(n.code,n.grammar),I.hooks.run("after-tokenize",n),N.stringify(I.util.encode(n.tokens),n.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var a in n)t[a]=n[a];delete t.rest}var i=new r;return F(i,i.head,e),function e(t,n,a,i,r,o){for(var s in a)if(a.hasOwnProperty(s)&&a[s])for(var l=a[s],l=Array.isArray(l)?l:[l],d=0;d<l.length;++d){if(o&&o.cause==s+","+d)return;var u,c=l[d],p=c.inside,g=!!c.lookbehind,f=!!c.greedy,m=0,b=c.alias;f&&!c.pattern.global&&(u=c.pattern.toString().match(/[imsuy]*$/)[0]
  2. /*!
  3. * clipboard.js v2.0.8
  4. * https://clipboardjs.com/
  5. *
  6. * Licensed MIT © Zeno Rocha
  7. */
  8. var t;t=function(){return n={134:function(e,t,n){"use strict";n.d(t,{default:function(){return a}});var t=n(279),r=n.n(t),t=n(370),o=n.n(t),t=n(817),i=n.n(t);function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}var d=function(){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),this.resolveOptions(e),this.initSelection()}var e,n,a;return e=t,(n=[{key:"resolveOptions",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};this.action=e.action,this.container=e.container,this.emitter=e.emitter,this.target=e.target,this.text=e.text,this.trigger=e.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"createFakeElement",value:function(){var e="rtl"===document.documentElement.getAttribute("dir");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[e?"right":"left"]="-9999px";e=window.pageYOffset||document.documentElement.scrollTop;return this.fakeElem.style.top="".concat(e,"px"),this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.fakeElem}},{key:"selectFake",value:function(){var e=this,t=this.createFakeElement();this.fakeHandlerCallback=function(){return e.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.container.appendChild(t),this.selectedText=i()(t),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=i()(this.target),this.copyText()}},{key:"copyText",value:function(){var t;try{t=document.execCommand(this.action)}catch(e){t=!1}this.handleResult(t)}},{key:"handleResult",value:function(e){this.emitter.emit(e?"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(){if(this._action=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"copy","copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(e){if(void 0!==e){if(!e||"object"!==s(e)||1!==e.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&e.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(e.hasAttribute("readonly")||e.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=e}},get:function(){return this._target}}])&&l(e.prototype,n),a&&l(e,a),t}();function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function p(e,