Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (()=>{var e,t,n={6737:()=>{"object"!=typeof globalThis&&(Object.defineProperty(Object.prototype,"__magic__",{get:function(){return this},configurable:!0}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__)},1592:e=>{function t(e){return e instanceof Map?e.clear=e.delete=e.set=function(){throw new Error("map is read-only")}:e instanceof Set&&(e.add=e.clear=e.delete=function(){throw new Error("set is read-only")}),Object.freeze(e),Object.getOwnPropertyNames(e).forEach((n=>{const r=e[n],o=typeof r;"object"!==o&&"function"!==o||Object.isFrozen(r)||t(r)})),e}class n{constructor(e){void 0===e.data&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function r(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function o(e){const t=Object.create(null);for(const n in e)t[n]=e[n];for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return r.forEach((function(e){for(const n in e)t[n]=e[n]})),t}const i=e=>!!e.scope;class s{constructor(e,t){this.buffer="",this.classPrefix=t.classPrefix,e.walk(this)}addText(e){this.buffer+=r(e)}openNode(e){if(!i(e))return;const t=((e,t)=>{let{prefix:n}=t;if(e.startsWith("language:"))return e.replace("language:","language-");if(e.includes(".")){const t=e.split(".");return["".concat(n).concat(t.shift()),...t.map(((e,t)=>"".concat(e).concat("_".repeat(t+1))))].join(" ")}return"".concat(n).concat(e)})(e.scope,{prefix:this.classPrefix});this.span(t)}closeNode(e){i(e)&&(this.buffer+="</span>")}value(){return this.buffer}span(e){this.buffer+='<span class="'.concat(e,'">')}}const a=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t={children:[]};return Object.assign(t,e),t};class c{constructor(){this.rootNode=a(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(e){this.top.children.push(e)}openNode(e){const t=a({scope:e});this.add(t),this.stack.push(t)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(e){return this.constructor._walk(e,this.rootNode)}static _walk(e,t){return"string"==typeof t?e.addText(t):t.children&&(e.openNode(t),t.children.forEach((t=>this._walk(e,t))),e.closeNode(t)),e}static _collapse(e){"string"!=typeof e&&e.children&&(e.children.every((e=>"string"==typeof e))?e.children=[e.children.join("")]:e.children.forEach((e=>{c._collapse(e)})))}}class l extends c{constructor(e){super(),this.options=e}addText(e){""!==e&&this.add(e)}startScope(e){this.openNode(e)}endScope(){this.closeNode()}__addSublanguage(e,t){const n=e.root;t&&(n.scope="language:".concat(t)),this.add(n)}toHTML(){return new s(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function u(e){return e?"string"==typeof e?e:e.source:null}function d(e){return f("(?=",e,")")}function g(e){return f("(?:",e,")*")}function h(e){return f("(?:",e,")?")}function f(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.map((e=>u(e))).join("")}function p(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=function(e){const t=e[e.length-1];return"object"==typeof t&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}(t);return"("+(r.capture?"":"?:")+t.map((e=>u(e))).join("|")+")"}function b(e){return new RegExp(e.toString()+"|").exec("").length-1}const m=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function y(e,t){let{joinWith:n}=t,r=0;return e.map((e=>{r+=1;const t=r;let n=u(e),o="";for(;n.length>0;){const e=m.exec(n);if(!e){o+=n;break}o+=n.substring(0,e.index),n=n.substring(e.index+e[0].length),"\\"===e[0][0]&&e[1]?o+="\\"+String(Number(e[1])+t):(o+=e[0],"("===e[0]&&r++)}return o})).map((e=>"(".concat(e,")"))).join(n)}const w="[a-zA-Z]\\w*",v="[a-zA-Z_]\\w*",_="\\b\\d+(\\.\\d+)?",E="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",j="\\b(0b[01]+)",x={begin:"\\\\[\\s\\S]",relevance:0},M={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[x]},L={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[x]},N=function(e,t){const n=o({scope:"comment",begin:e,end:t,contains:[]},arguments.length>2&&void 0!==arguments[2]?arguments[2]:{});n.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const r=p("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return n.contains.push({begin:f(/[ ]+/,"(",r,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),n},T=N("//","$"),S=N("/\\*","\\*/"),I=N("#","$"),A={scope:"number",begin:_,relevance:0},C={scope:"number",begin:E,relevance:0},R={scope:"number",begin:j,relevance:0},O={begin:/(?=\/[^/\n]*\/)/,contains:[{scope:"regexp",begin:/\//,end:/\/[gimuy]*/,illegal:/\n/,contains:[x,{begin:/\[/,end:/\]/,relevance:0,contains:[x]}]}]},k={scope:"title",begin:w,relevance:0},B={scope:"title",begin:v,relevance:0},D={begin:"\\.\\s*"+v,relevance:0};var z=Object.freeze({__proto__:null,MATCH_NOTHING_RE:/\b\B/,IDENT_RE:w,UNDERSCORE_IDENT_RE:v,NUMBER_RE:_,C_NUMBER_RE:E,BINARY_NUMBER_RE:j,RE_STARTERS_RE:"!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",SHEBANG:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=/^#![ ]*\//;return e.binary&&(e.begin=f(t,/.*\b/,e.binary,/\b.*/)),o({scope:"meta",begin:t,end:/$/,relevance:0,"on:begin":(e,t)=>{0!==e.index&&t.ignoreMatch()}},e)},BACKSLASH_ESCAPE:x,APOS_STRING_MODE:M,QUOTE_STRING_MODE:L,PHRASAL_WORDS_MODE:{begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},COMMENT:N,C_LINE_COMMENT_MODE:T,C_BLOCK_COMMENT_MODE:S,HASH_COMMENT_MODE:I,NUMBER_MODE:A,C_NUMBER_MODE:C,BINARY_NUMBER_MODE:R,REGEXP_MODE:O,TITLE_MODE:k,UNDERSCORE_TITLE_MODE:B,METHOD_GUARD:D,END_SAME_AS_BEGIN:function(e){return Object.assign(e,{"on:begin":(e,t)=>{t.data._beginMatch=e[1]},"on:end":(e,t)=>{t.data._beginMatch!==e[1]&&t.ignoreMatch()}})}});function P(e,t){"."===e.input[e.index-1]&&t.ignoreMatch()}function H(e,t){void 0!==e.className&&(e.scope=e.className,delete e.className)}function U(e,t){t&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",e.__beforeBegin=P,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,void 0===e.relevance&&(e.relevance=0))}function q(e,t){Array.isArray(e.illegal)&&(e.illegal=p(...e.illegal))}function Z(e,t){if(e.match){if(e.begin||e.end)throw new Error("begin & end are not supported with match");e.begin=e.match,delete e.match}}function Q(e,t){void 0===e.relevance&&(e.relevance=1)}const W=(e,t)=>{if(!e.beforeMatch)return;if(e.starts)throw new Error("beforeMatch cannot be used with starts");const n=Object.assign({},e);Object.keys(e).forEach((t=>{delete e[t]})),e.keywords=n.keywords,e.begin=f(n.beforeMatch,d(n.begin)),e.starts={relevance:0,contains:[Object.assign(n,{endsParent:!0})]},e.relevance=0,delete n.beforeMatch},G=["of","and","for","in","not","or","if","then","parent","list","value"],Y="keyword";function X(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Y;const r=Object.create(null);return"string"==typeof e?o(n,e.split(" ")):Array.isArray(e)?o(n,e):Object.keys(e).forEach((function(n){Object.assign(r,X(e[n],t,n))})),r;function o(e,n){t&&(n=n.map((e=>e.toLowerCase()))),n.forEach((function(t){const n=t.split("|");r[n[0]]=[e,F(n[0],n[1])]}))}}function F(e,t){return t?Number(t):function(e){return G.includes(e.toLowerCase())}(e)?0:1}const V={},J=e=>{console.error(e)},K=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];console.log("WARN: ".concat(e),...n)},$=(e,t)=>{V["".concat(e,"/").concat(t)]||(console.log("Deprecated as of ".concat(e,". ").concat(t)),V["".concat(e,"/").concat(t)]=!0)},ee=new Error;function te(e,t,n){let{key:r}=n,o=0;const i=e[r],s={},a={};for(let e=1;e<=t.length;e++)a[e+o]=i[e],s[e+o]=!0,o+=b(t[e-1]);e[r]=a,e[r]._emit=s,e[r]._multi=!0}function ne(e){!function(e){e.scope&&"object"==typeof e.scope&&null!==e.scope&&(e.beginScope=e.scope,delete e.scope)}(e),"string"==typeof e.beginScope&&(e.beginScope={_wrap:e.beginScope}),"string"==typeof e.endScope&&(e.endScope={_wrap:e.endScope}),function(e){if(Array.isArray(e.begin)){if(e.skip||e.excludeBegin||e.returnBegin)throw J("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),ee;if("object"!=typeof e.beginScope||null===e.beginScope)throw J("beginScope must be object"),ee;te(e,e.begin,{key:"beginScope"}),e.begin=y(e.begin,{joinWith:""})}}(e),function(e){if(Array.isArray(e.end)){if(e.skip||e.excludeEnd||e.returnEnd)throw J("skip, excludeEnd, returnEnd not compatible with endScope: {}"),ee;if("object"!=typeof e.endScope||null===e.endScope)throw J("endScope must be object"),ee;te(e,e.end,{key:"endScope"}),e.end=y(e.end,{joinWith:""})}}(e)}function re(e){function t(t,n){return new RegExp(u(t),"m"+(e.case_insensitive?"i":"")+(e.unicodeRegex?"u":"")+(n?"g":""))}class n{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(e,t){t.position=this.position++,this.matchIndexes[this.matchAt]=t,this.regexes.push([t,e]),this.matchAt+=b(e)+1}compile(){0===this.regexes.length&&(this.exec=()=>null);const e=this.regexes.map((e=>e[1]));this.matcherRe=t(y(e,{joinWith:"|"}),!0),this.lastIndex=0}exec(e){this.matcherRe.lastIndex=this.lastIndex;const t=this.matcherRe.exec(e);if(!t)return null;const n=t.findIndex(((e,t)=>t>0&&void 0!==e)),r=this.matchIndexes[n];return t.splice(0,n),Object.assign(t,r)}}class r{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(e){if(this.multiRegexes[e])return this.multiRegexes[e];const t=new n;return this.rules.slice(e).forEach((e=>{let[n,r]=e;return t.addRule(n,r)})),t.compile(),this.multiRegexes[e]=t,t}resumingScanAtSamePosition(){return 0!==this.regexIndex}considerAll(){this.regexIndex=0}addRule(e,t){this.rules.push([e,t]),"begin"===t.type&&this.count++}exec(e){const t=this.getMatcher(this.regexIndex);t.lastIndex=this.lastIndex;let n=t.exec(e);if(this.resumingScanAtSamePosition())if(n&&n.index===this.lastIndex);else{const t=this.getMatcher(0);t.lastIndex=this.lastIndex+1,n=t.exec(e)}return n&&(this.regexIndex+=n.position+1,this.regexIndex===this.count&&this.considerAll()),n}}if(e.compilerExtensions||(e.compilerExtensions=[]),e.contains&&e.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return e.classNameAliases=o(e.classNameAliases||{}),function n(i,s){const a=i;if(i.isCompiled)return a;[H,Z,ne,W].forEach((e=>e(i,s))),e.compilerExtensions.forEach((e=>e(i,s))),i.__beforeBegin=null,[U,q,Q].forEach((e=>e(i,s))),i.isCompiled=!0;let c=null;return"object"==typeof i.keywords&&i.keywords.$pattern&&(i.keywords=Object.assign({},i.keywords),c=i.keywords.$pattern,delete i.keywords.$pattern),c=c||/\w+/,i.keywords&&(i.keywords=X(i.keywords,e.case_insensitive)),a.keywordPatternRe=t(c,!0),s&&(i.begin||(i.begin=/\B|\b/),a.beginRe=t(a.begin),i.end||i.endsWithParent||(i.end=/\B|\b/),i.end&&(a.endRe=t(a.end)),a.terminatorEnd=u(a.end)||"",i.endsWithParent&&s.terminatorEnd&&(a.terminatorEnd+=(i.end?"|":"")+s.terminatorEnd)),i.illegal&&(a.illegalRe=t(i.illegal)),i.contains||(i.contains=[]),i.contains=[].concat(...i.contains.map((function(e){return function(e){e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map((function(t){return o(e,{variants:null},t)})));if(e.cachedVariants)return e.cachedVariants;if(oe(e))return o(e,{starts:e.starts?o(e.starts):null});if(Object.isFrozen(e))return o(e);return e}("self"===e?i:e)}))),i.contains.forEach((function(e){n(e,a)})),i.starts&&n(i.starts,s),a.matcher=function(e){const t=new r;return e.contains.forEach((e=>t.addRule(e.begin,{rule:e,type:"begin"}))),e.terminatorEnd&&t.addRule(e.terminatorEnd,{type:"end"}),e.illegal&&t.addRule(e.illegal,{type:"illegal"}),t}(a),a}(e)}function oe(e){return!!e&&(e.endsWithParent||oe(e.starts))}class ie extends Error{constructor(e,t){super(e),this.name="HTMLInjectionError",this.html=t}}const se=r,ae=o,ce=Symbol("nomatch"),le=function(e){const r=Object.create(null),o=Object.create(null),i=[];let s=!0;const a="Could not find the language '{}', did you forget to load/include a language module?",c={disableAutodetect:!0,name:"Plain text",contains:[]};let u={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:l};function b(e){return u.noHighlightRe.test(e)}function m(e,t,n){let r="",o="";"object"==typeof t?(r=e,n=t.ignoreIllegals,o=t.language):($("10.7.0","highlight(lang, code, ...args) has been deprecated."),$("10.7.0","Please use highlight(code, options) instead.\nhttps://github.com/highlightjs/highlight.js/issues/2277"),o=e,r=t),void 0===n&&(n=!0);const i={code:r,language:o};L("before:highlight",i);const s=i.result?i.result:y(i.language,i.code,n);return s.code=i.code,L("after:highlight",s),s}function y(e,t,o,i){const c=Object.create(null);function l(){if(!L.keywords)return void T.addText(S);let e=0;L.keywordPatternRe.lastIndex=0;let t=L.keywordPatternRe.exec(S),n="";for(;t;){n+=S.substring(e,t.index);const o=E.case_insensitive?t[0].toLowerCase():t[0],i=(r=o,L.keywords[r]);if(i){const[e,r]=i;if(T.addText(n),n="",c[o]=(c[o]||0)+1,c[o]<=7&&(I+=r),e.startsWith("_"))n+=t[0];else{const n=E.classNameAliases[e]||e;g(t[0],n)}}else n+=t[0];e=L.keywordPatternRe.lastIndex,t=L.keywordPatternRe.exec(S)}var r;n+=S.substring(e),T.addText(n)}function d(){null!=L.subLanguage?function(){if(""===S)return;let e=null;if("string"==typeof L.subLanguage){if(!r[L.subLanguage])return void T.addText(S);e=y(L.subLanguage,S,!0,N[L.subLanguage]),N[L.subLanguage]=e._top}else e=w(S,L.subLanguage.length?L.subLanguage:null);L.relevance>0&&(I+=e.relevance),T.__addSublanguage(e._emitter,e.language)}():l(),S=""}function g(e,t){""!==e&&(T.startScope(t),T.addText(e),T.endScope())}function h(e,t){let n=1;const r=t.length-1;for(;n<=r;){if(!e._emit[n]){n++;continue}const r=E.classNameAliases[e[n]]||e[n],o=t[n];r?g(o,r):(S=o,l(),S=""),n++}}function f(e,t){return e.scope&&"string"==typeof e.scope&&T.openNode(E.classNameAliases[e.scope]||e.scope),e.beginScope&&(e.beginScope._wrap?(g(S,E.classNameAliases[e.beginScope._wrap]||e.beginScope._wrap),S=""):e.beginScope._multi&&(h(e.beginScope,t),S="")),L=Object.create(e,{parent:{value:L}}),L}function p(e,t,r){let o=function(e,t){const n=e&&e.exec(t);return n&&0===n.index}(e.endRe,r);if(o){if(e["on:end"]){const r=new n(e);e["on:end"](t,r),r.isMatchIgnored&&(o=!1)}if(o){for(;e.endsParent&&e.parent;)e=e.parent;return e}}if(e.endsWithParent)return p(e.parent,t,r)}function b(e){return 0===L.matcher.regexIndex?(S+=e[0],1):(R=!0,0)}function m(e){const n=e[0],r=t.substring(e.index),o=p(L,e,r);if(!o)return ce;const i=L;L.endScope&&L.endScope._wrap?(d(),g(n,L.endScope._wrap)):L.endScope&&L.endScope._multi?(d(),h(L.endScope,e)):i.skip?S+=n:(i.returnEnd||i.excludeEnd||(S+=n),d(),i.excludeEnd&&(S=n));do{L.scope&&T.closeNode(),L.skip||L.subLanguage||(I+=L.relevance),L=L.parent}while(L!==o.parent);return o.starts&&f(o.starts,e),i.returnEnd?0:n.length}let v={};function _(r,i){const a=i&&i[0];if(S+=r,null==a)return d(),0;if("begin"===v.type&&"end"===i.type&&v.index===i.index&&""===a){if(S+=t.slice(i.index,i.index+1),!s){const t=new Error("0 width match regex (".concat(e,")"));throw t.languageName=e,t.badRule=v.rule,t}return 1}if(v=i,"begin"===i.type)return function(e){const t=e[0],r=e.rule,o=new n(r),i=[r.__beforeBegin,r["on:begin"]];for(const n of i)if(n&&(n(e,o),o.isMatchIgnored))return b(t);return r.skip?S+=t:(r.excludeBegin&&(S+=t),d(),r.returnBegin||r.excludeBegin||(S=t)),f(r,e),r.returnBegin?0:t.length}(i);if("illegal"===i.type&&!o){const e=new Error('Illegal lexeme "'+a+'" for mode "'+(L.scope||"<unnamed>")+'"');throw e.mode=L,e}if("end"===i.type){const e=m(i);if(e!==ce)return e}if("illegal"===i.type&&""===a)return 1;if(C>1e5&&C>3*i.index){throw new Error("potential infinite loop, way more iterations than matches")}return S+=a,a.length}const E=j(e);if(!E)throw J(a.replace("{}",e)),new Error('Unknown language: "'+e+'"');const x=re(E);let M="",L=i||x;const N={},T=new u.__emitter(u);!function(){const e=[];for(let t=L;t!==E;t=t.parent)t.scope&&e.unshift(t.scope);e.forEach((e=>T.openNode(e)))}();let S="",I=0,A=0,C=0,R=!1;try{if(E.__emitTokens)E.__emitTokens(t,T);else{for(L.matcher.considerAll();;){C++,R?R=!1:L.matcher.considerAll(),L.matcher.lastIndex=A;const e=L.matcher.exec(t);if(!e)break;const n=_(t.substring(A,e.index),e);A=e.index+n}_(t.substring(A))}return T.finalize(),M=T.toHTML(),{language:e,value:M,relevance:I,illegal:!1,_emitter:T,_top:L}}catch(n){if(n.message&&n.message.includes("Illegal"))return{language:e,value:se(t),illegal:!0,relevance:0,_illegalBy:{message:n.message,index:A,context:t.slice(A-100,A+100),mode:n.mode,resultSoFar:M},_emitter:T};if(s)return{language:e,value:se(t),illegal:!1,relevance:0,errorRaised:n,_emitter:T,_top:L};throw n}}function w(e,t){t=t||u.languages||Object.keys(r);const n=function(e){const t={value:se(e),illegal:!1,relevance:0,_top:c,_emitter:new u.__emitter(u)};return t._emitter.addText(e),t}(e),o=t.filter(j).filter(M).map((t=>y(t,e,!1)));o.unshift(n);const i=o.sort(((e,t)=>{if(e.relevance!==t.relevance)return t.relevance-e.relevance;if(e.language&&t.language){if(j(e.language).supersetOf===t.language)return 1;if(j(t.language).supersetOf===e.language)return-1}return 0})),[s,a]=i,l=s;return l.secondBest=a,l}function v(e){let t=null;const n=function(e){let t=e.className+" ";t+=e.parentNode?e.parentNode.className:"";const n=u.languageDetectRe.exec(t);if(n){const t=j(n[1]);return t||(K(a.replace("{}",n[1])),K("Falling back to no-highlight mode for this block.",e)),t?n[1]:"no-highlight"}return t.split(/\s+/).find((e=>b(e)||j(e)))}(e);if(b(n))return;if(L("before:highlightElement",{el:e,language:n}),e.children.length>0&&(u.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(e)),u.throwUnescapedHTML)){throw new ie("One of your code blocks includes unescaped HTML.",e.innerHTML)}t=e;const r=t.textContent,i=n?m(r,{language:n,ignoreIllegals:!0}):w(r);e.innerHTML=i.value,function(e,t,n){const r=t&&o[t]||n;e.classList.add("hljs"),e.classList.add("language-".concat(r))}(e,n,i.language),e.result={language:i.language,re:i.relevance,relevance:i.relevance},i.secondBest&&(e.secondBest={language:i.secondBest.language,relevance:i.secondBest.relevance}),L("after:highlightElement",{el:e,result:i,text:r})}let _=!1;function E(){if("loading"===document.readyState)return void(_=!0);document.querySelectorAll(u.cssSelector).forEach(v)}function j(e){return e=(e||"").toLowerCase(),r[e]||r[o[e]]}function x(e,t){let{languageName:n}=t;"string"==typeof e&&(e=[e]),e.forEach((e=>{o[e.toLowerCase()]=n}))}function M(e){const t=j(e);return t&&!t.disableAutodetect}function L(e,t){const n=e;i.forEach((function(e){e[n]&&e[n](t)}))}"undefined"!=typeof window&&window.addEventListener&&window.addEventListener("DOMContentLoaded",(function(){_&&E()}),!1),Object.assign(e,{highlight:m,highlightAuto:w,highlightAll:E,highlightElement:v,highlightBlock:function(e){return $("10.7.0","highlightBlock will be removed entirely in v12.0"),$("10.7.0","Please use highlightElement now."),v(e)},configure:function(e){u=ae(u,e)},initHighlighting:()=>{E(),$("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")},initHighlightingOnLoad:function(){E(),$("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")},registerLanguage:function(t,n){let o=null;try{o=n(e)}catch(e){if(J("Language definition for '{}' could not be registered.".replace("{}",t)),!s)throw e;J(e),o=c}o.name||(o.name=t),r[t]=o,o.rawDefinition=n.bind(null,e),o.aliases&&x(o.aliases,{languageName:t})},unregisterLanguage:function(e){delete r[e];for(const t of Object.keys(o))o[t]===e&&delete o[t]},listLanguages:function(){return Object.keys(r)},getLanguage:j,registerAliases:x,autoDetection:M,inherit:ae,addPlugin:function(e){!function(e){e["before:highlightBlock"]&&!e["before:highlightElement"]&&(e["before:highlightElement"]=t=>{e["before:highlightBlock"](Object.assign({block:t.el},t))}),e["after:highlightBlock"]&&!e["after:highlightElement"]&&(e["after:highlightElement"]=t=>{e["after:highlightBlock"](Object.assign({block:t.el},t))})}(e),i.push(e)},removePlugin:function(e){const t=i.indexOf(e);-1!==t&&i.splice(t,1)}}),e.debugMode=function(){s=!1},e.safeMode=function(){s=!0},e.versionString="11.8.0",e.regex={concat:f,lookahead:d,either:p,optional:h,anyNumberOfTimes:g};for(const e in z)"object"==typeof z[e]&&t(z[e]);return Object.assign(e,z),e},ue=le({});ue.newInstance=()=>le({}),e.exports=ue,ue.HighlightJS=ue,ue.default=ue}},r={};function o(e){var t=r[e];if(void 0!==t)return t.exports;var i=r[e]={exports:{}};return n[e](i,i.exports,o),i.exports}o.m=n,o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.f={},o.e=e=>Promise.all(Object.keys(o.f).reduce(((t,n)=>(o.f[n](e,t),t)),[])),o.u=e=>9882===e?"3e4u96olxtrti741.js":803===e?"5axnezre4ex97tio.js":1156===e?"565116a8946nlk0m.js":2857===e?"0w544klzsb6x7z04.js":9735===e?"4qbhfe4w91s64hpc.js":2074===e?"1s09tdwq0sgahgyx.js":8594===e?"2szyw7j0k9fyl178.js":9312===e?"09ugfftn3nnpwv0v.js":9377===e?"4hcm2olo9gmjxaf2.js":914===e?"4x2diq9bjeci3b42.js":2679===e?"0v0bgygf7oykyjkq.js":4403===e?"2b9ah3gu7bp4imrb.js":7266===e?"3ukhfo29mf44fz6l.js":6848===e?"2k770o0ebaffpvyc.js":9172===e?"1nhoi8jke1m5bx50.js":7688===e?"4pcjc933nm5yllhi.js":9713===e?"3q52h336d75ziyj1.js":6874===e?"1raycrfz4js2mkm6.js":298===e?"3nanfl9w4wl350s9.js":7700===e?"383ut4z0a8skqnea.js":3854===e?"2acpnrypx4sgu2yv.js":5844===e?"5874e8jdw1ngj6vt.js":8712===e?"0vq2ulwmdabkqboa.js":9253===e?"01s64n5dk1m4w28v.js":void 0,o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e={},t="mycompiler:",o.l=(n,r,i,s)=>{if(e[n])e[n].push(r);else{var a,c;if(void 0!==i)for(var l=document.getElementsByTagName("script"),u=0;u<l.length;u++){var d=l[u];if(d.getAttribute("src")==n||d.getAttribute("data-webpack")==t+i){a=d;break}}a||(c=!0,(a=document.createElement("script")).charset="utf-8",a.timeout=120,o.nc&&a.setAttribute("nonce",o.nc),a.setAttribute("data-webpack",t+i),a.src=n),e[n]=[r];var g=(t,r)=>{a.onerror=a.onload=null,clearTimeout(h);var o=e[n];if(delete e[n],a.parentNode&&a.parentNode.removeChild(a),o&&o.forEach((e=>e(r))),t)return t(r)},h=setTimeout(g.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=g.bind(null,a.onerror),a.onload=g.bind(null,a.onload),c&&document.head.appendChild(a)}},o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;o.g.importScripts&&(e=o.g.location+"");var t=o.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");if(n.length)for(var r=n.length-1;r>-1&&!e;)e=n[r--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),o.p=e})(),(()=>{var e={7291:0};o.f.j=(t,n)=>{var r=o.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var i=new Promise(((n,o)=>r=e[t]=[n,o]));n.push(r[2]=i);var s=o.p+o.u(t),a=new Error;o.l(s,(n=>{if(o.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var i=n&&("load"===n.type?"missing":n.type),s=n&&n.target&&n.target.src;a.message="Loading chunk "+t+" failed.\n("+i+": "+s+")",a.name="ChunkLoadError",a.type=i,a.request=s,r[1](a)}}),"chunk-"+t,t)}};var t=(t,n)=>{var r,i,s=n[0],a=n[1],c=n[2],l=0;if(s.some((t=>0!==e[t]))){for(r in a)o.o(a,r)&&(o.m[r]=a[r]);if(c)c(o)}for(t&&t(n);l<s.length;l++)i=s[l],o.o(e,i)&&e[i]&&e[i][0](),e[i]=0},n=self.webpackChunkmycompiler=self.webpackChunkmycompiler||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),(()=>{"use strict";o(6737);class e extends Error{constructor(e,t,n){const r=e.status||0===e.status?e.status:"",o=e.statusText||"",i="".concat(r," ").concat(o).trim(),s=i?"status code ".concat(i):"an unknown error";super("Request failed with ".concat(s)),Object.defineProperty(this,"response",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"request",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"options",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.name="HTTPError",this.response=e,this.request=t,this.options=n}}class t extends Error{constructor(e){super("Request timed out"),Object.defineProperty(this,"request",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.name="TimeoutError",this.request=e}}const n=e=>null!==e&&"object"==typeof e,r=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];for(const e of t)if((!n(e)||Array.isArray(e))&&void 0!==e)throw new TypeError("The `options` argument must be an object");return s({},...t)},i=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=new globalThis.Headers(e),r=t instanceof globalThis.Headers,o=new globalThis.Headers(t);for(const[e,t]of o.entries())r&&"undefined"===t||void 0===t?n.delete(e):n.set(e,t);return n},s=function(){let e={},t={};for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];for(const r of o)if(Array.isArray(r))Array.isArray(e)||(e=[]),e=[...e,...r];else if(n(r)){for(let[t,o]of Object.entries(r))n(o)&&t in e&&(o=s(e[t],o)),e={...e,[t]:o};n(r.headers)&&(t=i(t,r.headers),e.headers=t)}return e},a=(()=>{let e=!1,t=!1;const n="function"==typeof globalThis.ReadableStream,r="function"==typeof globalThis.Request;return n&&r&&(t=new globalThis.Request("https://a.com",{body:new globalThis.ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type")),e&&!t})(),c="function"==typeof globalThis.AbortController,l="function"==typeof globalThis.ReadableStream,u="function"==typeof globalThis.FormData,d=["get","post","put","patch","head","delete"],g={json:"application/json",text:"text/*",formData:"multipart/form-data",arrayBuffer:"*/*",blob:"*/*"},h=2147483647,f=Symbol("stop"),p=e=>d.includes(e)?e.toUpperCase():e,b=[413,429,503],m={limit:2,methods:["get","put","head","delete","options","trace"],statusCodes:[408,413,429,500,502,503,504],afterStatusCodes:b,maxRetryAfter:Number.POSITIVE_INFINITY,backoffLimit:Number.POSITIVE_INFINITY},y=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if("number"==typeof e)return{...m,limit:e};if(e.methods&&!Array.isArray(e.methods))throw new Error("retry.methods must be an array");if(e.statusCodes&&!Array.isArray(e.statusCodes))throw new Error("retry.statusCodes must be an array");return{...m,...e,afterStatusCodes:b}};const w=Boolean(globalThis.DOMException);function v(e){var t,n;if(w)return new DOMException(null!==(n=null==e?void 0:e.reason)&&void 0!==n?n:"The operation was aborted.","AbortError");const r=new Error(null!==(t=null==e?void 0:e.reason)&&void 0!==t?t:"The operation was aborted.");return r.name="AbortError",r}class _{static create(t,n){const r=new _(t,n),o=async()=>{if(r._options.timeout>h)throw new RangeError("The `timeout` option cannot be greater than ".concat(h));await Promise.resolve();let t=await r._fetch();for(const e of r._options.hooks.afterResponse){const n=await e(r.request,r._options,r._decorateResponse(t.clone()));n instanceof globalThis.Response&&(t=n)}if(r._decorateResponse(t),!t.ok&&r._options.throwHttpErrors){let n=new e(t,r.request,r._options);for(const e of r._options.hooks.beforeError)n=await e(n);throw n}if(r._options.onDownloadProgress){if("function"!=typeof r._options.onDownloadProgress)throw new TypeError("The `onDownloadProgress` option must be a function");if(!l)throw new Error("Streams are not supported in your environment. `ReadableStream` is missing.");return r._stream(t.clone(),r._options.onDownloadProgress)}return t},i=r._options.retry.methods.includes(r.request.method.toLowerCase())?r._retry(o):o();for(const[e,t]of Object.entries(g))i[e]=async()=>{r.request.headers.set("accept",r.request.headers.get("accept")||t);const o=(await i).clone();if("json"===e){if(204===o.status)return"";if(0===(await o.clone().arrayBuffer()).byteLength)return"";if(n.parseJson)return n.parseJson(await o.text())}return o[e]()};return i}constructor(e){var t,n;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Object.defineProperty(this,"request",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"abortController",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_retryCount",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_input",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_options",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._input=e,this._options={credentials:this._input.credentials||"same-origin",...r,headers:i(this._input.headers,r.headers),hooks:s({beforeRequest:[],beforeRetry:[],beforeError:[],afterResponse:[]},r.hooks),method:p(null!==(t=r.method)&&void 0!==t?t:this._input.method),prefixUrl:String(r.prefixUrl||""),retry:y(r.retry),throwHttpErrors:!1!==r.throwHttpErrors,timeout:void 0===r.timeout?1e4:r.timeout,fetch:null!==(n=r.fetch)&&void 0!==n?n:globalThis.fetch.bind(globalThis)},"string"!=typeof this._input&&!(this._input instanceof URL||this._input instanceof globalThis.Request))throw new TypeError("`input` must be a string, URL, or Request");if(this._options.prefixUrl&&"string"==typeof this._input){if(this._input.startsWith("/"))throw new Error("`input` must not begin with a slash when using `prefixUrl`");this._options.prefixUrl.endsWith("/")||(this._options.prefixUrl+="/"),this._input=this._options.prefixUrl+this._input}if(c){if(this.abortController=new globalThis.AbortController,this._options.signal){const e=this._options.signal;this._options.signal.addEventListener("abort",(()=>{this.abortController.abort(e.reason)}))}this._options.signal=this.abortController.signal}if(a&&(this._options.duplex="half"),this.request=new globalThis.Request(this._input,this._options),this._options.searchParams){const e="?"+("string"==typeof this._options.searchParams?this._options.searchParams.replace(/^\?/,""):new URLSearchParams(this._options.searchParams).toString()),t=this.request.url.replace(/(?:\?.*?)?(?=#|$)/,e);!(u&&this._options.body instanceof globalThis.FormData||this._options.body instanceof URLSearchParams)||this._options.headers&&this._options.headers["content-type"]||this.request.headers.delete("content-type"),this.request=new globalThis.Request(new globalThis.Request(t,{...this.request}),this._options)}var o;void 0!==this._options.json&&(this._options.body=JSON.stringify(this._options.json),this.request.headers.set("content-type",null!==(o=this._options.headers.get("content-type"))&&void 0!==o?o:"application/json"),this.request=new globalThis.Request(this.request,{body:this._options.body}))}_calculateRetryDelay(n){if(this._retryCount++,this._retryCount<this._options.retry.limit&&!(n instanceof t)){if(n instanceof e){if(!this._options.retry.statusCodes.includes(n.response.status))return 0;const e=n.response.headers.get("Retry-After");if(e&&this._options.retry.afterStatusCodes.includes(n.response.status)){let t=Number(e);return Number.isNaN(t)?t=Date.parse(e)-Date.now():t*=1e3,void 0!==this._options.retry.maxRetryAfter&&t>this._options.retry.maxRetryAfter?0:t}if(413===n.response.status)return 0}const t=.3;return Math.min(this._options.retry.backoffLimit,t*2**(this._retryCount-1)*1e3)}return 0}_decorateResponse(e){return this._options.parseJson&&(e.json=async()=>this._options.parseJson(await e.text())),e}async _retry(e){try{return await e()}catch(t){const n=Math.min(this._calculateRetryDelay(t),h);if(0!==n&&this._retryCount>0){await async function(e,t){let{signal:n}=t;return new Promise(((t,r)=>{if(n){if(n.aborted)return void r(v(n));n.addEventListener("abort",o,{once:!0})}function o(){r(v(n)),clearTimeout(i)}const i=setTimeout((()=>{null==n||n.removeEventListener("abort",o),t()}),e)}))}(n,{signal:this._options.signal});for(const e of this._options.hooks.beforeRetry){if(await e({request:this.request,options:this._options,error:t,retryCount:this._retryCount})===f)return}return this._retry(e)}throw t}}async _fetch(){for(const e of this._options.hooks.beforeRequest){const t=await e(this.request,this._options);if(t instanceof Request){this.request=t;break}if(t instanceof Response)return t}return!1===this._options.timeout?this._options.fetch(this.request.clone()):async function(e,n,r){return new Promise(((o,i)=>{const s=setTimeout((()=>{n&&n.abort(),i(new t(e))}),r.timeout);r.fetch(e).then(o).catch(i).then((()=>{clearTimeout(s)}))}))}(this.request.clone(),this.abortController,this._options)}_stream(e,t){const n=Number(e.headers.get("content-length"))||0;let r=0;return 204===e.status?(t&&t({percent:1,totalBytes:n,transferredBytes:r},new Uint8Array),new globalThis.Response(null,{status:e.status,statusText:e.statusText,headers:e.headers})):new globalThis.Response(new globalThis.ReadableStream({async start(o){const i=e.body.getReader();t&&t({percent:0,transferredBytes:0,totalBytes:n},new Uint8Array),await async function e(){const{done:s,value:a}=await i.read();if(s)o.close();else{if(t){r+=a.byteLength;t({percent:0===n?0:r/n,transferredBytes:r,totalBytes:n},a)}o.enqueue(a),await e()}}()}}),{status:e.status,statusText:e.statusText,headers:e.headers})}} /*! MIT License © Sindre Sorhus */ const E=e=>{const t=(t,n)=>_.create(t,r(e,n));for(const n of d)t[n]=(t,o)=>_.create(t,r(e,o,{method:n}));return t.create=e=>E(r(e)),t.extend=t=>E(r(e,t)),t.stop=f,t},j=E();const x=o(1592);const M="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzODQgNTEyIj48IS0tISBGb250IEF3ZXNvbWUgRnJlZSA2LjQuMCBieSBAZm9udGF3ZXNvbWUgLSBodHRwczovL2ZvbnRhd2Vzb21lLmNvbSBMaWNlbnNlIC0gaHR0cHM6Ly9mb250YXdlc29tZS5jb20vbGljZW5zZS9mcmVlIChJY29uczogQ0MgQlkgNC4wLCBGb250czogU0lMIE9GTCAxLjEsIENvZGU6IE1JVCBMaWNlbnNlKSBDb3B5cmlnaHQgMjAyMyBGb250aWNvbnMsIEluYy4gLS0+PHBhdGggZD0iTTczIDM5Yy0xNC44LTkuMS0zMy40LTkuNC00OC41LS45UzAgNjIuNiAwIDgwVjQzMmMwIDE3LjQgOS40IDMzLjQgMjQuNSA0MS45czMzLjcgOC4xIDQ4LjUtLjlMMzYxIDI5N2MxNC4zLTguNyAyMy0yNC4yIDIzLTQxcy04LjctMzIuMi0yMy00MUw3MyAzOXoiLz48L3N2Zz4=",L="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA1MTIgNTEyIj48IS0tISBGb250IEF3ZXNvbWUgRnJlZSA2LjQuMCBieSBAZm9udGF3ZXNvbWUgLSBodHRwczovL2ZvbnRhd2Vzb21lLmNvbSBMaWNlbnNlIC0gaHR0cHM6Ly9mb250YXdlc29tZS5jb20vbGljZW5zZS9mcmVlIChJY29uczogQ0MgQlkgNC4wLCBGb250czogU0lMIE9GTCAxLjEsIENvZGU6IE1JVCBMaWNlbnNlKSBDb3B5cmlnaHQgMjAyMyBGb250aWNvbnMsIEluYy4gLS0+PHBhdGggZD0iTTI3MiAwSDM5Ni4xYzEyLjcgMCAyNC45IDUuMSAzMy45IDE0LjFsNjcuOSA2Ny45YzkgOSAxNC4xIDIxLjIgMTQuMSAzMy45VjMzNmMwIDI2LjUtMjEuNSA0OC00OCA0OEgyNzJjLTI2LjUgMC00OC0yMS41LTQ4LTQ4VjQ4YzAtMjYuNSAyMS41LTQ4IDQ4LTQ4ek00OCAxMjhIMTkydjY0SDY0VjQ0OEgyNTZWNDE2aDY0djQ4YzAgMjYuNS0yMS41IDQ4LTQ4IDQ4SDQ4Yy0yNi41IDAtNDgtMjEuNS00OC00OFYxNzZjMC0yNi41IDIxLjUtNDggNDgtNDh6Ii8+PC9zdmc+",N="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA0NDggNTEyIj48IS0tISBGb250IEF3ZXNvbWUgRnJlZSA2LjQuMCBieSBAZm9udGF3ZXNvbWUgLSBodHRwczovL2ZvbnRhd2Vzb21lLmNvbSBMaWNlbnNlIC0gaHR0cHM6Ly9mb250YXdlc29tZS5jb20vbGljZW5zZS9mcmVlIChJY29uczogQ0MgQlkgNC4wLCBGb250czogU0lMIE9GTCAxLjEsIENvZGU6IE1JVCBMaWNlbnNlKSBDb3B5cmlnaHQgMjAyMyBGb250aWNvbnMsIEluYy4gLS0+PHBhdGggZD0iTTQzOC42IDEwNS40YzEyLjUgMTIuNSAxMi41IDMyLjggMCA0NS4zbC0yNTYgMjU2Yy0xMi41IDEyLjUtMzIuOCAxMi41LTQ1LjMgMGwtMTI4LTEyOGMtMTIuNS0xMi41LTEyLjUtMzIuOCAwLTQ1LjNzMzIuOC0xMi41IDQ1LjMgMEwxNjAgMzM4LjcgMzkzLjQgMTA1LjRjMTIuNS0xMi41IDMyLjgtMTIuNSA0NS4zIDB6Ii8+PC9zdmc+";function T(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=document.createElement("a");n.classList.add("button"),t.href&&(n.href=t.href),t.newTab&&t.href&&(n.target="_blank"),t.parent&&t.parent.appendChild(n);const r=document.createElement("img");if(r.src=e,n.appendChild(r),t.tooltip){n.classList.add("tooltip");const e=document.createElement("span");e.classList.add("tooltiptext"),e.textContent=t.tooltip,n.appendChild(e)}return n}function S(e,t,n,r,o){const i=document.createElement("div");i.classList.add("meta");const s=document.createElement("div");s.classList.add("left"),i.appendChild(s);const a=document.createElement("a");a.href=e+"/view/".concat(t),a.target="_blank",a.textContent=n,s.appendChild(a);const c=document.createElement("div");if(c.classList.add("right"),i.appendChild(c),T(M,{newTab:!0,href:e+"/view/".concat(t),parent:c,tooltip:"Run on myCompiler"}),o){const e=T(L,{parent:c,tooltip:"Copy code"});e.addEventListener("click",(()=>{var t;(t=r.children[0].textContent,new Promise(((e,n)=>{var r;if(null!==(r=navigator)&&void 0!==r&&null!==(r=r.clipboard)&&void 0!==r&&r.writeText)return void navigator.clipboard.writeText(t).then((()=>e())).catch(n);const o=document.createElement("textarea");o.value=t,o.select(),document.execCommand&&document.execCommand("copy")?e():n(new Error("Copy via document.execCommand failed"))}))).then((()=>{e.children[0].src=N,window.setTimeout((()=>{e.children[0].src=L}),1500)}))}))}return i}!async function(t){const n=new URL(t.src);!function(e){const t="mycompiler-embed-style";if(document.getElementById(t))return;const n=document.createElement("link");n.id=t,n.rel="stylesheet",n.href=e+"/static/css/embed.css",document.head.appendChild(n)}(n.origin);const r=document.createElement("div");r.classList.add("mycompiler-embed"),t.parentNode.insertBefore(r,t);const{id:i}=function(e){const t={},n=e.split(":");for(let e=0;e+1<n.length;e+=2)t["#"===n[e][0]?n[e].slice(1):n[e]]=n[e+1];return t}(n.hash);if(!i)return void r.appendChild(document.createTextNode("Invalid embed URL"));const s=await async function(){try{const{state:e}=await navigator.permissions.query({name:"clipboard-write"});return"denied"!==e}catch(e){return!0}}();try{const e=await j.get(n.origin+"/download/embed/".concat(i,".json")),{code:t,title:a,language:c}=await e.json();await function(e){if(!x.listLanguages().includes(e))switch(e){case"asm-x86_64":return o.e(9882).then(o.bind(o,9882)).then((e=>{x.registerLanguage("asm-x86_64",e.default)}));case"bash":return o.e(803).then(o.bind(o,803)).then((e=>{x.registerLanguage("bash",e.default)}));case"c":return o.e(1156).then(o.bind(o,1156)).then((e=>{x.registerLanguage("c",e.default)}));case"clojure":return o.e(2857).then(o.bind(o,2857)).then((e=>{x.registerLanguage("clojure",e.default)}));case"cpp":return o.e(9735).then(o.bind(o,9735)).then((e=>{x.registerLanguage("cpp",e.default)}));case"csharp":return o.e(2074).then(o.bind(o,2074)).then((e=>{x.registerLanguage("csharp",e.default)}));case"d":return o.e(8594).then(o.bind(o,8594)).then((e=>{x.registerLanguage("d",e.default)}));case"deno":return o.e(9312).then(o.bind(o,9312)).then((e=>{x.registerLanguage("deno",e.default)}));case"erlang":return o.e(9377).then(o.bind(o,9377)).then((e=>{x.registerLanguage("erlang",e.default)}));case"fortran":return o.e(914).then(o.bind(o,914)).then((e=>{x.registerLanguage("fortran",e.default)}));case"go":return o.e(2679).then(o.bind(o,2679)).then((e=>{x.registerLanguage("go",e.default)}));case"java":return o.e(4403).then(o.bind(o,4403)).then((e=>{x.registerLanguage("java",e.default)}));case"lua":return o.e(7266).then(o.bind(o,7266)).then((e=>{x.registerLanguage("lua",e.default)}));case"mongodb":return o.e(6848).then(o.bind(o,6848)).then((e=>{x.registerLanguage("mongodb",e.default)}));case"mysql":return o.e(9172).then(o.bind(o,9172)).then((e=>{x.registerLanguage("mysql",e.default)}));case"nodejs":return o.e(6848).then(o.bind(o,6848)).then((e=>{x.registerLanguage("nodejs",e.default)}));case"octave":return o.e(7688).then(o.bind(o,7688)).then((e=>{x.registerLanguage("octave",e.default)}));case"perl":return o.e(9713).then(o.bind(o,9713)).then((e=>{x.registerLanguage("perl",e.default)}));case"php":return o.e(6874).then(o.bind(o,6874)).then((e=>{x.registerLanguage("php",e.default)}));case"python":return o.e(298).then(o.bind(o,298)).then((e=>{x.registerLanguage("python",e.default)}));case"r":return o.e(7700).then(o.bind(o,7700)).then((e=>{x.registerLanguage("r",e.default)}));case"ruby":return o.e(3854).then(o.bind(o,3854)).then((e=>{x.registerLanguage("ruby",e.default)}));case"rust":return o.e(5844).then(o.bind(o,5844)).then((e=>{x.registerLanguage("rust",e.default)}));case"sql":return o.e(9172).then(o.bind(o,9172)).then((e=>{x.registerLanguage("sql",e.default)}));case"typescript":return o.e(9312).then(o.bind(o,9312)).then((e=>{x.registerLanguage("typescript",e.default)}));case"kotlin":return o.e(8712).then(o.bind(o,8712)).then((e=>{x.registerLanguage("kotlin",e.default)}));case"swift":return o.e(9253).then(o.bind(o,9253)).then((e=>{x.registerLanguage("swift",e.default)}));default:return Promise.resolve()}}(c);const l=function(e,t){const n=document.createElement("div");n.classList.add("preview");const r=document.createElement("pre");return r.classList.add("language-".concat(t)),r.textContent=e,n.appendChild(r),x.highlightElement(r),n}(t,c);r.appendChild(S(n.origin,i,a,l,s)),r.appendChild(l)}catch(t){if(!(t instanceof e))throw t;const n=t.response.status,o=404===n?"Program with ID ".concat(i," was not found"):"HTTP ".concat(n," while fetching data");r.appendChild(document.createTextNode(o))}}(document.currentScript)})()})();
Add Comment
Please, Sign In to add comment