@hep-code-runner/react 3.1.3 → 3.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -650
- package/dist/index.mjs +2393 -1665
- package/package.json +3 -2
package/dist/index.js
CHANGED
|
@@ -1,650 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const E=require("react");var Je=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function vt(p){return p&&p.__esModule&&Object.prototype.hasOwnProperty.call(p,"default")?p.default:p}var Be={exports:{}},_e={};/**
|
|
2
|
-
* @license React
|
|
3
|
-
* react-jsx-runtime.production.min.js
|
|
4
|
-
*
|
|
5
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
|
-
*
|
|
7
|
-
* This source code is licensed under the MIT license found in the
|
|
8
|
-
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var Qe;function Et(){if(Qe)return _e;Qe=1;var p=E,h=Symbol.for("react.element"),n=Symbol.for("react.fragment"),u=Object.prototype.hasOwnProperty,v=p.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,T={key:!0,ref:!0,__self:!0,__source:!0};function _(s,m,k){var w,I={},L=null,z=null;k!==void 0&&(L=""+k),m.key!==void 0&&(L=""+m.key),m.ref!==void 0&&(z=m.ref);for(w in m)u.call(m,w)&&!T.hasOwnProperty(w)&&(I[w]=m[w]);if(s&&s.defaultProps)for(w in m=s.defaultProps,m)I[w]===void 0&&(I[w]=m[w]);return{$$typeof:h,type:s,key:L,ref:z,props:I,_owner:v.current}}return _e.Fragment=n,_e.jsx=_,_e.jsxs=_,_e}var Fe={};/**
|
|
10
|
-
* @license React
|
|
11
|
-
* react-jsx-runtime.development.js
|
|
12
|
-
*
|
|
13
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
14
|
-
*
|
|
15
|
-
* This source code is licensed under the MIT license found in the
|
|
16
|
-
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var et;function yt(){return et||(et=1,process.env.NODE_ENV!=="production"&&function(){var p=E,h=Symbol.for("react.element"),n=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),v=Symbol.for("react.strict_mode"),T=Symbol.for("react.profiler"),_=Symbol.for("react.provider"),s=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),k=Symbol.for("react.suspense"),w=Symbol.for("react.suspense_list"),I=Symbol.for("react.memo"),L=Symbol.for("react.lazy"),z=Symbol.for("react.offscreen"),Z=Symbol.iterator,P="@@iterator";function b(e){if(e===null||typeof e!="object")return null;var a=Z&&e[Z]||e[P];return typeof a=="function"?a:null}var A=p.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function t(e){{for(var a=arguments.length,d=new Array(a>1?a-1:0),y=1;y<a;y++)d[y-1]=arguments[y];r("error",e,d)}}function r(e,a,d){{var y=A.ReactDebugCurrentFrame,O=y.getStackAddendum();O!==""&&(a+="%s",d=d.concat([O]));var C=d.map(function(R){return String(R)});C.unshift("Warning: "+a),Function.prototype.apply.call(console[e],console,C)}}var i=!1,l=!1,o=!1,f=!1,x=!1,g;g=Symbol.for("react.module.reference");function N(e){return!!(typeof e=="string"||typeof e=="function"||e===u||e===T||x||e===v||e===k||e===w||f||e===z||i||l||o||typeof e=="object"&&e!==null&&(e.$$typeof===L||e.$$typeof===I||e.$$typeof===_||e.$$typeof===s||e.$$typeof===m||e.$$typeof===g||e.getModuleId!==void 0))}function j(e,a,d){var y=e.displayName;if(y)return y;var O=a.displayName||a.name||"";return O!==""?d+"("+O+")":d}function $(e){return e.displayName||"Context"}function V(e){if(e==null)return null;if(typeof e.tag=="number"&&t("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case u:return"Fragment";case n:return"Portal";case T:return"Profiler";case v:return"StrictMode";case k:return"Suspense";case w:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case s:var a=e;return $(a)+".Consumer";case _:var d=e;return $(d._context)+".Provider";case m:return j(e,e.render,"ForwardRef");case I:var y=e.displayName||null;return y!==null?y:V(e.type)||"Memo";case L:{var O=e,C=O._payload,R=O._init;try{return V(R(C))}catch{return null}}}return null}var q=Object.assign,ae=0,ie,oe,D,B,X,se,W;function Ee(){}Ee.__reactDisabledLog=!0;function G(){{if(ae===0){ie=console.log,oe=console.info,D=console.warn,B=console.error,X=console.group,se=console.groupCollapsed,W=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Ee,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}ae++}}function le(){{if(ae--,ae===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:q({},e,{value:ie}),info:q({},e,{value:oe}),warn:q({},e,{value:D}),error:q({},e,{value:B}),group:q({},e,{value:X}),groupCollapsed:q({},e,{value:se}),groupEnd:q({},e,{value:W})})}ae<0&&t("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var J=A.ReactCurrentDispatcher,te;function re(e,a,d){{if(te===void 0)try{throw Error()}catch(O){var y=O.stack.trim().match(/\n( *(at )?)/);te=y&&y[1]||""}return`
|
|
18
|
-
`+te+e}}var ne=!1,ce;{var ue=typeof WeakMap=="function"?WeakMap:Map;ce=new ue}function Q(e,a){if(!e||ne)return"";{var d=ce.get(e);if(d!==void 0)return d}var y;ne=!0;var O=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var C;C=J.current,J.current=null,G();try{if(a){var R=function(){throw Error()};if(Object.defineProperty(R.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(R,[])}catch(K){y=K}Reflect.construct(e,[],R)}else{try{R.call()}catch(K){y=K}e.call(R.prototype)}}else{try{throw Error()}catch(K){y=K}e()}}catch(K){if(K&&y&&typeof K.stack=="string"){for(var S=K.stack.split(`
|
|
19
|
-
`),Y=y.stack.split(`
|
|
20
|
-
`),M=S.length-1,H=Y.length-1;M>=1&&H>=0&&S[M]!==Y[H];)H--;for(;M>=1&&H>=0;M--,H--)if(S[M]!==Y[H]){if(M!==1||H!==1)do if(M--,H--,H<0||S[M]!==Y[H]){var ee=`
|
|
21
|
-
`+S[M].replace(" at new "," at ");return e.displayName&&ee.includes("<anonymous>")&&(ee=ee.replace("<anonymous>",e.displayName)),typeof e=="function"&&ce.set(e,ee),ee}while(M>=1&&H>=0);break}}}finally{ne=!1,J.current=C,le(),Error.prepareStackTrace=O}var Ae=e?e.displayName||e.name:"",ve=Ae?re(Ae):"";return typeof e=="function"&&ce.set(e,ve),ve}function ge(e,a,d){return Q(e,!1)}function Le(e){var a=e.prototype;return!!(a&&a.isReactComponent)}function ye(e,a,d){if(e==null)return"";if(typeof e=="function")return Q(e,Le(e));if(typeof e=="string")return re(e);switch(e){case k:return re("Suspense");case w:return re("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case m:return ge(e.render);case I:return ye(e.type,a,d);case L:{var y=e,O=y._payload,C=y._init;try{return ye(C(O),a,d)}catch{}}}return""}var me=Object.prototype.hasOwnProperty,Ie={},xe=A.ReactDebugCurrentFrame;function ke(e){if(e){var a=e._owner,d=ye(e.type,e._source,a?a.type:null);xe.setExtraStackFrame(d)}else xe.setExtraStackFrame(null)}function Te(e,a,d,y,O){{var C=Function.call.bind(me);for(var R in e)if(C(e,R)){var S=void 0;try{if(typeof e[R]!="function"){var Y=Error((y||"React class")+": "+d+" type `"+R+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[R]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Y.name="Invariant Violation",Y}S=e[R](a,R,y,d,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(M){S=M}S&&!(S instanceof Error)&&(ke(O),t("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",y||"React class",d,R,typeof S),ke(null)),S instanceof Error&&!(S.message in Ie)&&(Ie[S.message]=!0,ke(O),t("Failed %s type: %s",d,S.message),ke(null))}}}var Oe=Array.isArray;function F(e){return Oe(e)}function U(e){{var a=typeof Symbol=="function"&&Symbol.toStringTag,d=a&&e[Symbol.toStringTag]||e.constructor.name||"Object";return d}}function de(e){try{return pe(e),!1}catch{return!0}}function pe(e){return""+e}function Ne(e){if(de(e))return t("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",U(e)),pe(e)}var Se=A.ReactCurrentOwner,be={key:!0,ref:!0,__self:!0,__source:!0},he,fe;function Re(e){if(me.call(e,"ref")){var a=Object.getOwnPropertyDescriptor(e,"ref").get;if(a&&a.isReactWarning)return!1}return e.ref!==void 0}function Ce(e){if(me.call(e,"key")){var a=Object.getOwnPropertyDescriptor(e,"key").get;if(a&&a.isReactWarning)return!1}return e.key!==void 0}function Pe(e,a){typeof e.ref=="string"&&Se.current}function at(e,a){{var d=function(){he||(he=!0,t("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",a))};d.isReactWarning=!0,Object.defineProperty(e,"key",{get:d,configurable:!0})}}function it(e,a){{var d=function(){fe||(fe=!0,t("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",a))};d.isReactWarning=!0,Object.defineProperty(e,"ref",{get:d,configurable:!0})}}var ot=function(e,a,d,y,O,C,R){var S={$$typeof:h,type:e,key:a,ref:d,props:R,_owner:C};return S._store={},Object.defineProperty(S._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(S,"_self",{configurable:!1,enumerable:!1,writable:!1,value:y}),Object.defineProperty(S,"_source",{configurable:!1,enumerable:!1,writable:!1,value:O}),Object.freeze&&(Object.freeze(S.props),Object.freeze(S)),S};function st(e,a,d,y,O){{var C,R={},S=null,Y=null;d!==void 0&&(Ne(d),S=""+d),Ce(a)&&(Ne(a.key),S=""+a.key),Re(a)&&(Y=a.ref,Pe(a,O));for(C in a)me.call(a,C)&&!be.hasOwnProperty(C)&&(R[C]=a[C]);if(e&&e.defaultProps){var M=e.defaultProps;for(C in M)R[C]===void 0&&(R[C]=M[C])}if(S||Y){var H=typeof e=="function"?e.displayName||e.name||"Unknown":e;S&&at(R,H),Y&&it(R,H)}return ot(e,S,Y,O,y,Se.current,R)}}var De=A.ReactCurrentOwner,Ge=A.ReactDebugCurrentFrame;function we(e){if(e){var a=e._owner,d=ye(e.type,e._source,a?a.type:null);Ge.setExtraStackFrame(d)}else Ge.setExtraStackFrame(null)}var je;je=!1;function $e(e){return typeof e=="object"&&e!==null&&e.$$typeof===h}function Ye(){{if(De.current){var e=V(De.current.type);if(e)return`
|
|
22
|
-
|
|
23
|
-
Check the render method of \``+e+"`."}return""}}function lt(e){return""}var Ve={};function ct(e){{var a=Ye();if(!a){var d=typeof e=="string"?e:e.displayName||e.name;d&&(a=`
|
|
24
|
-
|
|
25
|
-
Check the top-level render call using <`+d+">.")}return a}}function Xe(e,a){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var d=ct(a);if(Ve[d])return;Ve[d]=!0;var y="";e&&e._owner&&e._owner!==De.current&&(y=" It was passed a child from "+V(e._owner.type)+"."),we(e),t('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',d,y),we(null)}}function Ke(e,a){{if(typeof e!="object")return;if(F(e))for(var d=0;d<e.length;d++){var y=e[d];$e(y)&&Xe(y,a)}else if($e(e))e._store&&(e._store.validated=!0);else if(e){var O=b(e);if(typeof O=="function"&&O!==e.entries)for(var C=O.call(e),R;!(R=C.next()).done;)$e(R.value)&&Xe(R.value,a)}}}function ut(e){{var a=e.type;if(a==null||typeof a=="string")return;var d;if(typeof a=="function")d=a.propTypes;else if(typeof a=="object"&&(a.$$typeof===m||a.$$typeof===I))d=a.propTypes;else return;if(d){var y=V(a);Te(d,e.props,"prop",y,e)}else if(a.PropTypes!==void 0&&!je){je=!0;var O=V(a);t("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",O||"Unknown")}typeof a.getDefaultProps=="function"&&!a.getDefaultProps.isReactClassApproved&&t("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function dt(e){{for(var a=Object.keys(e.props),d=0;d<a.length;d++){var y=a[d];if(y!=="children"&&y!=="key"){we(e),t("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",y),we(null);break}}e.ref!==null&&(we(e),t("Invalid attribute `ref` supplied to `React.Fragment`."),we(null))}}var Ze={};function qe(e,a,d,y,O,C){{var R=N(e);if(!R){var S="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(S+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var Y=lt();Y?S+=Y:S+=Ye();var M;e===null?M="null":F(e)?M="array":e!==void 0&&e.$$typeof===h?(M="<"+(V(e.type)||"Unknown")+" />",S=" Did you accidentally export a JSX literal instead of a component?"):M=typeof e,t("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",M,S)}var H=st(e,a,d,O,C);if(H==null)return H;if(R){var ee=a.children;if(ee!==void 0)if(y)if(F(ee)){for(var Ae=0;Ae<ee.length;Ae++)Ke(ee[Ae],e);Object.freeze&&Object.freeze(ee)}else t("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Ke(ee,e)}if(me.call(a,"key")){var ve=V(e),K=Object.keys(a).filter(function(bt){return bt!=="key"}),Me=K.length>0?"{key: someKey, "+K.join(": ..., ")+": ...}":"{key: someKey}";if(!Ze[ve+Me]){var mt=K.length>0?"{"+K.join(": ..., ")+": ...}":"{}";t(`A props object containing a "key" prop is being spread into JSX:
|
|
26
|
-
let props = %s;
|
|
27
|
-
<%s {...props} />
|
|
28
|
-
React keys must be passed directly to JSX without using spread:
|
|
29
|
-
let props = %s;
|
|
30
|
-
<%s key={someKey} {...props} />`,Me,ve,mt,ve),Ze[ve+Me]=!0}}return e===u?dt(H):ut(H),H}}function pt(e,a,d){return qe(e,a,d,!0)}function ht(e,a,d){return qe(e,a,d,!1)}var ft=ht,gt=pt;Fe.Fragment=u,Fe.jsx=ft,Fe.jsxs=gt}()),Fe}process.env.NODE_ENV==="production"?Be.exports=Et():Be.exports=yt();var c=Be.exports,rt={exports:{}};(function(p){var h=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/**
|
|
31
|
-
* Prism: Lightweight, robust, elegant syntax highlighting
|
|
32
|
-
*
|
|
33
|
-
* @license MIT <https://opensource.org/licenses/MIT>
|
|
34
|
-
* @author Lea Verou <https://lea.verou.me>
|
|
35
|
-
* @namespace
|
|
36
|
-
* @public
|
|
37
|
-
*/var n=function(u){var v=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,T=0,_={},s={manual:u.Prism&&u.Prism.manual,disableWorkerMessageHandler:u.Prism&&u.Prism.disableWorkerMessageHandler,util:{encode:function t(r){return r instanceof m?new m(r.type,t(r.content),r.alias):Array.isArray(r)?r.map(t):r.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(t){return Object.prototype.toString.call(t).slice(8,-1)},objId:function(t){return t.__id||Object.defineProperty(t,"__id",{value:++T}),t.__id},clone:function t(r,i){i=i||{};var l,o;switch(s.util.type(r)){case"Object":if(o=s.util.objId(r),i[o])return i[o];l={},i[o]=l;for(var f in r)r.hasOwnProperty(f)&&(l[f]=t(r[f],i));return l;case"Array":return o=s.util.objId(r),i[o]?i[o]:(l=[],i[o]=l,r.forEach(function(x,g){l[g]=t(x,i)}),l);default:return r}},getLanguage:function(t){for(;t;){var r=v.exec(t.className);if(r)return r[1].toLowerCase();t=t.parentElement}return"none"},setLanguage:function(t,r){t.className=t.className.replace(RegExp(v,"gi"),""),t.classList.add("language-"+r)},currentScript:function(){if(typeof document>"u")return null;if(document.currentScript&&document.currentScript.tagName==="SCRIPT")return document.currentScript;try{throw new Error}catch(l){var t=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(l.stack)||[])[1];if(t){var r=document.getElementsByTagName("script");for(var i in r)if(r[i].src==t)return r[i]}return null}},isActive:function(t,r,i){for(var l="no-"+r;t;){var o=t.classList;if(o.contains(r))return!0;if(o.contains(l))return!1;t=t.parentElement}return!!i}},languages:{plain:_,plaintext:_,text:_,txt:_,extend:function(t,r){var i=s.util.clone(s.languages[t]);for(var l in r)i[l]=r[l];return i},insertBefore:function(t,r,i,l){l=l||s.languages;var o=l[t],f={};for(var x in o)if(o.hasOwnProperty(x)){if(x==r)for(var g in i)i.hasOwnProperty(g)&&(f[g]=i[g]);i.hasOwnProperty(x)||(f[x]=o[x])}var N=l[t];return l[t]=f,s.languages.DFS(s.languages,function(j,$){$===N&&j!=t&&(this[j]=f)}),f},DFS:function t(r,i,l,o){o=o||{};var f=s.util.objId;for(var x in r)if(r.hasOwnProperty(x)){i.call(r,x,r[x],l||x);var g=r[x],N=s.util.type(g);N==="Object"&&!o[f(g)]?(o[f(g)]=!0,t(g,i,null,o)):N==="Array"&&!o[f(g)]&&(o[f(g)]=!0,t(g,i,x,o))}}},plugins:{},highlightAll:function(t,r){s.highlightAllUnder(document,t,r)},highlightAllUnder:function(t,r,i){var l={callback:i,container:t,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};s.hooks.run("before-highlightall",l),l.elements=Array.prototype.slice.apply(l.container.querySelectorAll(l.selector)),s.hooks.run("before-all-elements-highlight",l);for(var o=0,f;f=l.elements[o++];)s.highlightElement(f,r===!0,l.callback)},highlightElement:function(t,r,i){var l=s.util.getLanguage(t),o=s.languages[l];s.util.setLanguage(t,l);var f=t.parentElement;f&&f.nodeName.toLowerCase()==="pre"&&s.util.setLanguage(f,l);var x=t.textContent,g={element:t,language:l,grammar:o,code:x};function N($){g.highlightedCode=$,s.hooks.run("before-insert",g),g.element.innerHTML=g.highlightedCode,s.hooks.run("after-highlight",g),s.hooks.run("complete",g),i&&i.call(g.element)}if(s.hooks.run("before-sanity-check",g),f=g.element.parentElement,f&&f.nodeName.toLowerCase()==="pre"&&!f.hasAttribute("tabindex")&&f.setAttribute("tabindex","0"),!g.code){s.hooks.run("complete",g),i&&i.call(g.element);return}if(s.hooks.run("before-highlight",g),!g.grammar){N(s.util.encode(g.code));return}if(r&&u.Worker){var j=new Worker(s.filename);j.onmessage=function($){N($.data)},j.postMessage(JSON.stringify({language:g.language,code:g.code,immediateClose:!0}))}else N(s.highlight(g.code,g.grammar,g.language))},highlight:function(t,r,i){var l={code:t,grammar:r,language:i};if(s.hooks.run("before-tokenize",l),!l.grammar)throw new Error('The language "'+l.language+'" has no grammar.');return l.tokens=s.tokenize(l.code,l.grammar),s.hooks.run("after-tokenize",l),m.stringify(s.util.encode(l.tokens),l.language)},tokenize:function(t,r){var i=r.rest;if(i){for(var l in i)r[l]=i[l];delete r.rest}var o=new I;return L(o,o.head,t),w(t,o,r,o.head,0),Z(o)},hooks:{all:{},add:function(t,r){var i=s.hooks.all;i[t]=i[t]||[],i[t].push(r)},run:function(t,r){var i=s.hooks.all[t];if(!(!i||!i.length))for(var l=0,o;o=i[l++];)o(r)}},Token:m};u.Prism=s;function m(t,r,i,l){this.type=t,this.content=r,this.alias=i,this.length=(l||"").length|0}m.stringify=function t(r,i){if(typeof r=="string")return r;if(Array.isArray(r)){var l="";return r.forEach(function(N){l+=t(N,i)}),l}var o={type:r.type,content:t(r.content,i),tag:"span",classes:["token",r.type],attributes:{},language:i},f=r.alias;f&&(Array.isArray(f)?Array.prototype.push.apply(o.classes,f):o.classes.push(f)),s.hooks.run("wrap",o);var x="";for(var g in o.attributes)x+=" "+g+'="'+(o.attributes[g]||"").replace(/"/g,""")+'"';return"<"+o.tag+' class="'+o.classes.join(" ")+'"'+x+">"+o.content+"</"+o.tag+">"};function k(t,r,i,l){t.lastIndex=r;var o=t.exec(i);if(o&&l&&o[1]){var f=o[1].length;o.index+=f,o[0]=o[0].slice(f)}return o}function w(t,r,i,l,o,f){for(var x in i)if(!(!i.hasOwnProperty(x)||!i[x])){var g=i[x];g=Array.isArray(g)?g:[g];for(var N=0;N<g.length;++N){if(f&&f.cause==x+","+N)return;var j=g[N],$=j.inside,V=!!j.lookbehind,q=!!j.greedy,ae=j.alias;if(q&&!j.pattern.global){var ie=j.pattern.toString().match(/[imsuy]*$/)[0];j.pattern=RegExp(j.pattern.source,ie+"g")}for(var oe=j.pattern||j,D=l.next,B=o;D!==r.tail&&!(f&&B>=f.reach);B+=D.value.length,D=D.next){var X=D.value;if(r.length>t.length)return;if(!(X instanceof m)){var se=1,W;if(q){if(W=k(oe,B,t,V),!W||W.index>=t.length)break;var J=W.index,Ee=W.index+W[0].length,G=B;for(G+=D.value.length;J>=G;)D=D.next,G+=D.value.length;if(G-=D.value.length,B=G,D.value instanceof m)continue;for(var le=D;le!==r.tail&&(G<Ee||typeof le.value=="string");le=le.next)se++,G+=le.value.length;se--,X=t.slice(B,G),W.index-=B}else if(W=k(oe,0,X,V),!W)continue;var J=W.index,te=W[0],re=X.slice(0,J),ne=X.slice(J+te.length),ce=B+X.length;f&&ce>f.reach&&(f.reach=ce);var ue=D.prev;re&&(ue=L(r,ue,re),B+=re.length),z(r,ue,se);var Q=new m(x,$?s.tokenize(te,$):te,ae,te);if(D=L(r,ue,Q),ne&&L(r,D,ne),se>1){var ge={cause:x+","+N,reach:ce};w(t,r,i,D.prev,B,ge),f&&ge.reach>f.reach&&(f.reach=ge.reach)}}}}}}function I(){var t={value:null,prev:null,next:null},r={value:null,prev:t,next:null};t.next=r,this.head=t,this.tail=r,this.length=0}function L(t,r,i){var l=r.next,o={value:i,prev:r,next:l};return r.next=o,l.prev=o,t.length++,o}function z(t,r,i){for(var l=r.next,o=0;o<i&&l!==t.tail;o++)l=l.next;r.next=l,l.prev=r,t.length-=o}function Z(t){for(var r=[],i=t.head.next;i!==t.tail;)r.push(i.value),i=i.next;return r}if(!u.document)return u.addEventListener&&(s.disableWorkerMessageHandler||u.addEventListener("message",function(t){var r=JSON.parse(t.data),i=r.language,l=r.code,o=r.immediateClose;u.postMessage(s.highlight(l,s.languages[i],i)),o&&u.close()},!1)),s;var P=s.util.currentScript();P&&(s.filename=P.src,P.hasAttribute("data-manual")&&(s.manual=!0));function b(){s.manual||s.highlightAll()}if(!s.manual){var A=document.readyState;A==="loading"||A==="interactive"&&P&&P.defer?document.addEventListener("DOMContentLoaded",b):window.requestAnimationFrame?window.requestAnimationFrame(b):window.setTimeout(b,16)}return s}(h);p.exports&&(p.exports=n),typeof Je<"u"&&(Je.Prism=n),n.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},n.languages.markup.tag.inside["attr-value"].inside.entity=n.languages.markup.entity,n.languages.markup.doctype.inside["internal-subset"].inside=n.languages.markup,n.hooks.add("wrap",function(u){u.type==="entity"&&(u.attributes.title=u.content.replace(/&/,"&"))}),Object.defineProperty(n.languages.markup.tag,"addInlined",{value:function(v,T){var _={};_["language-"+T]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:n.languages[T]},_.cdata=/^<!\[CDATA\[|\]\]>$/i;var s={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:_}};s["language-"+T]={pattern:/[\s\S]+/,inside:n.languages[T]};var m={};m[v]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return v}),"i"),lookbehind:!0,greedy:!0,inside:s},n.languages.insertBefore("markup","cdata",m)}}),Object.defineProperty(n.languages.markup.tag,"addAttribute",{value:function(u,v){n.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+u+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[v,"language-"+v],inside:n.languages[v]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),n.languages.html=n.languages.markup,n.languages.mathml=n.languages.markup,n.languages.svg=n.languages.markup,n.languages.xml=n.languages.extend("markup",{}),n.languages.ssml=n.languages.xml,n.languages.atom=n.languages.xml,n.languages.rss=n.languages.xml,function(u){var v=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;u.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+v.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+v.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+v.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+v.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:v,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},u.languages.css.atrule.inside.rest=u.languages.css;var T=u.languages.markup;T&&(T.tag.addInlined("style","css"),T.tag.addAttribute("style","css"))}(n),n.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},n.languages.javascript=n.languages.extend("clike",{"class-name":[n.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),n.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,n.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:n.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:n.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:n.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:n.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:n.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),n.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:n.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),n.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),n.languages.markup&&(n.languages.markup.tag.addInlined("script","javascript"),n.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),n.languages.js=n.languages.javascript,function(){if(typeof n>"u"||typeof document>"u")return;Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var u="Loading…",v=function(P,b){return"✖ Error "+P+" while fetching file: "+b},T="✖ Error: File does not exist or is empty",_={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},s="data-src-status",m="loading",k="loaded",w="failed",I="pre[data-src]:not(["+s+'="'+k+'"]):not(['+s+'="'+m+'"])';function L(P,b,A){var t=new XMLHttpRequest;t.open("GET",P,!0),t.onreadystatechange=function(){t.readyState==4&&(t.status<400&&t.responseText?b(t.responseText):t.status>=400?A(v(t.status,t.statusText)):A(T))},t.send(null)}function z(P){var b=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(P||"");if(b){var A=Number(b[1]),t=b[2],r=b[3];return t?r?[A,Number(r)]:[A,void 0]:[A,A]}}n.hooks.add("before-highlightall",function(P){P.selector+=", "+I}),n.hooks.add("before-sanity-check",function(P){var b=P.element;if(b.matches(I)){P.code="",b.setAttribute(s,m);var A=b.appendChild(document.createElement("CODE"));A.textContent=u;var t=b.getAttribute("data-src"),r=P.language;if(r==="none"){var i=(/\.(\w+)$/.exec(t)||[,"none"])[1];r=_[i]||i}n.util.setLanguage(A,r),n.util.setLanguage(b,r);var l=n.plugins.autoloader;l&&l.loadLanguages(r),L(t,function(o){b.setAttribute(s,k);var f=z(b.getAttribute("data-range"));if(f){var x=o.split(/\r\n?|\n/g),g=f[0],N=f[1]==null?x.length:f[1];g<0&&(g+=x.length),g=Math.max(0,Math.min(g-1,x.length)),N<0&&(N+=x.length),N=Math.max(0,Math.min(N,x.length)),o=x.slice(g,N).join(`
|
|
38
|
-
`),b.hasAttribute("data-start")||b.setAttribute("data-start",String(g+1))}A.textContent=o,n.highlightElement(A)},function(o){b.setAttribute(s,w),A.textContent=o})}}),n.plugins.fileHighlight={highlight:function(b){for(var A=(b||document).querySelectorAll(I),t=0,r;r=A[t++];)n.highlightElement(r)}};var Z=!1;n.fileHighlight=function(){Z||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),Z=!0),n.plugins.fileHighlight.highlight.apply(this,arguments)}}()})(rt);var xt=rt.exports;const ze=vt(xt);Prism.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/};Prism.languages.javascript=Prism.languages.extend("clike",{"class-name":[Prism.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/});Prism.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/;Prism.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:Prism.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:Prism.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/});Prism.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:Prism.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}});Prism.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}});Prism.languages.markup&&(Prism.languages.markup.tag.addInlined("script","javascript"),Prism.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript"));Prism.languages.js=Prism.languages.javascript;Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern://,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/};Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest=Prism.languages.python;Prism.languages.py=Prism.languages.python;Prism.languages.go=Prism.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/});Prism.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}});delete Prism.languages.go["class-name"];(function(p){var h=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,n=/(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,u={pattern:RegExp(/(^|[^\w.])/.source+n+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};p.languages.java=p.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[u,{pattern:RegExp(/(^|[^\w.])/.source+n+/[A-Z]\w*(?=\s+\w+\s*[;,=()]|\s*(?:\[[\s,]*\]\s*)?::\s*new\b)/.source),lookbehind:!0,inside:u.inside},{pattern:RegExp(/(\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\s+)/.source+n+/[A-Z]\w*\b/.source),lookbehind:!0,inside:u.inside}],keyword:h,function:[p.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0},constant:/\b[A-Z][A-Z_\d]+\b/}),p.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),p.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":u,keyword:h,punctuation:/[<>(),.:]/,operator:/[?&|]/}},import:[{pattern:RegExp(/(\bimport\s+)/.source+n+/(?:[A-Z]\w*|\*)(?=\s*;)/.source),lookbehind:!0,inside:{namespace:u.inside.namespace,punctuation:/\./,operator:/\*/,"class-name":/\w+/}},{pattern:RegExp(/(\bimport\s+static\s+)/.source+n+/(?:\w+|\*)(?=\s*;)/.source),lookbehind:!0,alias:"static",inside:{namespace:u.inside.namespace,static:/\b\w+$/,punctuation:/\./,operator:/\*/,"class-name":/\w+/}}],namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g,function(){return h.source})),lookbehind:!0,inside:{punctuation:/\./}}})})(Prism);Prism.languages.c=Prism.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/});Prism.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}});Prism.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},Prism.languages.c.string],char:Prism.languages.c.char,comment:Prism.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:Prism.languages.c}}}});Prism.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/});delete Prism.languages.c.boolean;(function(p){for(var h=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,n=0;n<2;n++)h=h.replace(/<self>/g,function(){return h});h=h.replace(/<self>/g,function(){return/[^\s\S]/.source}),p.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+h),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},p.languages.rust["closure-params"].inside.rest=p.languages.rust,p.languages.rust.attribute.inside.string=p.languages.rust.string})(Prism);Prism.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/};(function(p){var h="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",n={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},u={bash:n,environment:{pattern:RegExp("\\$"+h),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+h),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};p.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+h),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},parameter:{pattern:/(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:u},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:n}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:u},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:u.entity}}],environment:{pattern:RegExp("\\$?"+h),alias:"constant"},variable:u.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},n.inside=p.languages.bash;for(var v=["comment","function-name","for-or-select","assign-left","parameter","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],T=u.variable[1].inside,_=0;_<v.length;_++)T[v[_]]=p.languages.bash[v[_]];p.languages.sh=p.languages.bash,p.languages.shell=p.languages.bash})(Prism);Prism.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}};Prism.languages.webmanifest=Prism.languages.json;const kt=`
|
|
39
|
-
/* 默认代码颜色 */
|
|
40
|
-
.hep-cr-editor .hep-cr-highlight code,
|
|
41
|
-
.hep-cr-editor .hep-cr-highlight pre {
|
|
42
|
-
color: #f8f8f2 !important;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
.hep-cr-editor .token.comment,
|
|
46
|
-
.hep-cr-editor .token.prolog,
|
|
47
|
-
.hep-cr-editor .token.doctype,
|
|
48
|
-
.hep-cr-editor .token.cdata {
|
|
49
|
-
color: #8292a2 !important;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
.hep-cr-editor .token.punctuation {
|
|
53
|
-
color: #f8f8f2 !important;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
.hep-cr-editor .token.property,
|
|
57
|
-
.hep-cr-editor .token.tag,
|
|
58
|
-
.hep-cr-editor .token.constant,
|
|
59
|
-
.hep-cr-editor .token.symbol,
|
|
60
|
-
.hep-cr-editor .token.deleted {
|
|
61
|
-
color: #f92672 !important;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
/* console 单独处理 - 必须是白色 */
|
|
65
|
-
.hep-cr-editor .token.property.console,
|
|
66
|
-
.hep-cr-editor .token.console {
|
|
67
|
-
color: #f8f8f2 !important;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
.hep-cr-editor .token.boolean,
|
|
71
|
-
.hep-cr-editor .token.number {
|
|
72
|
-
color: #ae81ff !important;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
.hep-cr-editor .token.selector,
|
|
76
|
-
.hep-cr-editor .token.attr-name,
|
|
77
|
-
.hep-cr-editor .token.string,
|
|
78
|
-
.hep-cr-editor .token.char,
|
|
79
|
-
.hep-cr-editor .token.builtin,
|
|
80
|
-
.hep-cr-editor .token.inserted {
|
|
81
|
-
color: #a6e22e !important;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
.hep-cr-editor .token.operator,
|
|
85
|
-
.hep-cr-editor .token.entity,
|
|
86
|
-
.hep-cr-editor .token.url,
|
|
87
|
-
.hep-cr-editor .language-css .hep-cr-editor .token.string,
|
|
88
|
-
.hep-cr-editor .style .hep-cr-editor .token.string,
|
|
89
|
-
.hep-cr-editor .token.variable {
|
|
90
|
-
color: #f8f8f2 !important;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
.hep-cr-editor .token.atrule,
|
|
94
|
-
.hep-cr-editor .token.attr-value,
|
|
95
|
-
.hep-cr-editor .token.function,
|
|
96
|
-
.hep-cr-editor .token.class-name {
|
|
97
|
-
color: #e6db74 !important;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
.hep-cr-editor .token.keyword,
|
|
101
|
-
.hep-cr-editor .token.keyword-control {
|
|
102
|
-
color: #66d9ef !important;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
.hep-cr-editor .token.regex,
|
|
106
|
-
.hep-cr-editor .token.important {
|
|
107
|
-
color: #fd971f !important;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
/* 覆盖用户项目的 text-shadow 样式,避免白边 */
|
|
111
|
-
.hep-cr-editor code[class*="language-"],
|
|
112
|
-
.hep-cr-editor pre[class*="language-"],
|
|
113
|
-
.hep-cr-editor .hep-cr-highlight code,
|
|
114
|
-
.hep-cr-editor .hep-cr-highlight pre {
|
|
115
|
-
text-shadow: none !important;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
/* 覆盖 console 等内置对象 */
|
|
119
|
-
.hep-cr-editor .token.console {
|
|
120
|
-
color: #f8f8f2 !important;
|
|
121
|
-
}
|
|
122
|
-
`,St=`
|
|
123
|
-
/* 默认代码颜色 */
|
|
124
|
-
.hep-cr-editor .hep-cr-highlight code,
|
|
125
|
-
.hep-cr-editor .hep-cr-highlight pre {
|
|
126
|
-
color: #333 !important;
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
.hep-cr-editor .token.comment,
|
|
130
|
-
.hep-cr-editor .token.prolog,
|
|
131
|
-
.hep-cr-editor .token.doctype,
|
|
132
|
-
.hep-cr-editor .token.cdata {
|
|
133
|
-
color: #708090;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
.hep-cr-editor .token.punctuation {
|
|
137
|
-
color: #333;
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
.hep-cr-editor .token.property,
|
|
141
|
-
.hep-cr-editor .token.tag,
|
|
142
|
-
.hep-cr-editor .token.constant,
|
|
143
|
-
.hep-cr-editor .token.symbol,
|
|
144
|
-
.hep-cr-editor .token.deleted {
|
|
145
|
-
color: #d73a49;
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
.hep-cr-editor .token.boolean,
|
|
149
|
-
.hep-cr-editor .token.number {
|
|
150
|
-
color: #005cc5;
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
.hep-cr-editor .token.selector,
|
|
154
|
-
.hep-cr-editor .token.attr-name,
|
|
155
|
-
.hep-cr-editor .token.string,
|
|
156
|
-
.hep-cr-editor .token.char,
|
|
157
|
-
.hep-cr-editor .token.builtin,
|
|
158
|
-
.hep-cr-editor .token.inserted {
|
|
159
|
-
color: #22863a;
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
.hep-cr-editor .token.operator,
|
|
163
|
-
.hep-cr-editor .token.entity,
|
|
164
|
-
.hep-cr-editor .token.url,
|
|
165
|
-
.hep-cr-editor .language-css .hep-cr-editor .token.string,
|
|
166
|
-
.hep-cr-editor .style .hep-cr-editor .token.string,
|
|
167
|
-
.hep-cr-editor .token.variable {
|
|
168
|
-
color: #333;
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
.hep-cr-editor .token.atrule,
|
|
172
|
-
.hep-cr-editor .token.attr-value,
|
|
173
|
-
.hep-cr-editor .token.function,
|
|
174
|
-
.hep-cr-editor .token.class-name {
|
|
175
|
-
color: #6f42c1;
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
.hep-cr-editor .token.keyword {
|
|
179
|
-
color: #d73a49;
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
.hep-cr-editor .token.regex,
|
|
183
|
-
.hep-cr-editor .token.important {
|
|
184
|
-
color: #e36209;
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
/* 覆盖用户项目的 text-shadow 样式,避免白边 */
|
|
188
|
-
.hep-cr-editor code[class*="language-"],
|
|
189
|
-
.hep-cr-editor pre[class*="language-"],
|
|
190
|
-
.hep-cr-editor .hep-cr-highlight code,
|
|
191
|
-
.hep-cr-editor .hep-cr-highlight pre {
|
|
192
|
-
text-shadow: none !important;
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
/* 覆盖 console 等内置对象 */
|
|
196
|
-
.hep-cr-editor .token.console {
|
|
197
|
-
color: #333 !important;
|
|
198
|
-
}
|
|
199
|
-
`;window.Prism=ze;function wt(p){if(typeof document>"u")return;const h="hep-cr-prism-styles",n=document.getElementById(h),u=p==="dark"?kt:St;n&&n.remove();const v=document.createElement("style");v.id=h,v.textContent=u,document.head.appendChild(v)}const At={javascript:"javascript",js:"javascript",typescript:"typescript",ts:"typescript",python:"python",py:"python",java:"java",c:"c",cpp:"cpp","c++":"cpp",csharp:"csharp","c#":"csharp",go:"go",golang:"go",rust:"rust",ruby:"ruby",rb:"ruby",php:"php",swift:"swift",kotlin:"kotlin",kt:"kotlin",sql:"sql",bash:"bash",sh:"bash",shell:"bash",json:"json",yaml:"yaml",yml:"yaml",markdown:"markdown",md:"markdown"};function Tt(p){const h=document.createElement("div");return h.textContent=p,h.innerHTML}const Rt=({value:p,language:h,theme:n="dark",disabled:u=!1,onChange:v,onCodeChange:T})=>{const _=E.useRef(null),s=E.useRef(null),m=E.useRef(null),k=E.useMemo(()=>At[h.toLowerCase()]||"javascript",[h]),w=n==="dark"?"#1e1e1e":"#fafafa",I=E.useMemo(()=>{try{const b=ze.languages[k];if(b)return ze.highlight(p||"",b,k)}catch{}return Tt(p||"")},[p,k]),L=E.useCallback(b=>{m.current&&clearTimeout(m.current),m.current=setTimeout(()=>{T==null||T(b)},500)},[T]),z=b=>{const A=b.target.value;v==null||v(A),L(A)},Z=()=>{_.current&&s.current&&(s.current.scrollTop=_.current.scrollTop,s.current.scrollLeft=_.current.scrollLeft)},P=b=>{if(b.key==="Tab"){b.preventDefault();const A=b.target,t=A.selectionStart,r=A.selectionEnd,i=p.substring(0,t)+" "+p.substring(r);v==null||v(i),L(i),requestAnimationFrame(()=>{A.selectionStart=A.selectionEnd=t+2})}};return E.useEffect(()=>()=>{m.current&&clearTimeout(m.current)},[]),E.useEffect(()=>{wt(n)},[n]),c.jsxs("div",{className:`hep-cr-editor theme-${n}`,style:{background:w},children:[c.jsx("pre",{ref:s,className:`hep-cr-highlight language-${k}`,"aria-hidden":"true",children:c.jsx("code",{dangerouslySetInnerHTML:{__html:I}})}),c.jsx("textarea",{ref:_,className:"hep-cr-input",value:p,disabled:u,onChange:z,onScroll:Z,onKeyDown:P,spellCheck:!1,placeholder:"Write your code here..."})]})},_t=`
|
|
200
|
-
.hep-cr-editor {
|
|
201
|
-
position: relative;
|
|
202
|
-
flex: 1;
|
|
203
|
-
overflow: hidden;
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
.hep-cr-highlight,
|
|
207
|
-
.hep-cr-input {
|
|
208
|
-
position: absolute;
|
|
209
|
-
top: 0;
|
|
210
|
-
left: 0;
|
|
211
|
-
width: 100%;
|
|
212
|
-
height: 100%;
|
|
213
|
-
padding: 12px 16px;
|
|
214
|
-
margin: 0;
|
|
215
|
-
border: none;
|
|
216
|
-
font-family: 'SF Mono', 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
|
|
217
|
-
font-size: 14px;
|
|
218
|
-
line-height: 1.6;
|
|
219
|
-
white-space: pre;
|
|
220
|
-
overflow: auto;
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
.hep-cr-highlight {
|
|
224
|
-
pointer-events: none;
|
|
225
|
-
z-index: 1;
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
.hep-cr-highlight.hep-cr-highlight {
|
|
229
|
-
background: transparent !important;
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
.hep-cr-highlight code {
|
|
233
|
-
display: block;
|
|
234
|
-
font-family: inherit;
|
|
235
|
-
background: transparent !important;
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
.hep-cr-input {
|
|
239
|
-
position: relative;
|
|
240
|
-
z-index: 2;
|
|
241
|
-
background: transparent;
|
|
242
|
-
color: transparent;
|
|
243
|
-
caret-color: #d4d4d4;
|
|
244
|
-
resize: none;
|
|
245
|
-
outline: none;
|
|
246
|
-
}
|
|
247
|
-
|
|
248
|
-
.hep-cr-input:disabled {
|
|
249
|
-
opacity: 0.7;
|
|
250
|
-
}
|
|
251
|
-
|
|
252
|
-
/* Light theme caret */
|
|
253
|
-
.theme-light .hep-cr-input {
|
|
254
|
-
caret-color: #333333;
|
|
255
|
-
}
|
|
256
|
-
`;if(typeof document<"u"){const p="hep-cr-editor-styles";if(!document.getElementById(p)){const h=document.createElement("style");h.id=p,h.textContent=_t,document.head.appendChild(h)}}var Ft=Object.defineProperty,It=(p,h,n)=>h in p?Ft(p,h,{enumerable:!0,configurable:!0,writable:!0,value:n}):p[h]=n,tt=(p,h,n)=>It(p,typeof h!="symbol"?h+"":h,n);let Ue=null;class Ot{constructor(h={}){tt(this,"baseUrl"),tt(this,"timeout"),this.baseUrl=h.pistonUrl||"/api/piston",this.timeout=h.timeout||3e3}async getRuntimes(h=!1){if(Ue&&!h)return Ue;try{const n=await fetch(`${this.baseUrl}/runtimes`,{method:"GET",headers:{"Content-Type":"application/json"}});if(!n.ok)throw new Error(`Failed to fetch runtimes: ${n.statusText}`);const u=await n.json();return Ue=u,u}catch(n){throw console.error("Failed to fetch runtimes:",n),n}}async execute(h,n,u={}){const v=(await this.getRuntimes()).find(m=>{var k;return m.language.toLowerCase()===h.toLowerCase()||((k=m.aliases)==null?void 0:k.some(w=>w.toLowerCase()===h.toLowerCase()))});if(!v)throw new Error(`Language '${h}' is not supported`);const T=this.getFileName(h),_={language:v.language,version:u.version||v.version,files:[{name:T,content:n}],stdin:u.stdin||"",args:u.args||[],run_timeout:u.runTimeout||this.timeout,compile_timeout:this.timeout},s=Date.now();try{const m=await fetch(`${this.baseUrl}/execute`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(_)});if(!m.ok)throw new Error(`Execute failed: ${m.statusText}`);const k=await m.json(),w=Date.now()-s,I=k.run.stdout||"",L=k.run.stderr||"";return{success:k.run.code===0,output:I,stderr:L,code:k.run.code,executionTime:w,compile:k.compile?{stdout:k.compile.stdout||"",stderr:k.compile.stderr||"",code:k.compile.code}:void 0}}catch(m){return{success:!1,output:"",stderr:m instanceof Error?m.message:"Unknown error",code:-1,executionTime:Date.now()-s}}}getFileName(h){return{javascript:"main.js",typescript:"main.ts",python:"main.py",python3:"main.py",go:"main.go",rust:"main.rs",java:"Main.java",c:"main.c",cpp:"main.cpp",csharp:"Main.cs",ruby:"main.rb",php:"main.php",bash:"main.sh",shell:"main.sh",perl:"main.pl",lua:"main.lua",swift:"main.swift",kotlin:"Main.kt",scala:"Main.scala",haskell:"main.hs",dart:"main.dart",html:"index.html",css:"style.css",sql:"query.sql",markdown:"readme.md"}[h.toLowerCase()]||`main.${h}`}}const Nt={javascript:'console.log("Hello, World!");',typescript:'console.log("Hello, World!");',python:'print("Hello, World!")',python3:'print("Hello, World!")',go:`package main
|
|
257
|
-
|
|
258
|
-
import "fmt"
|
|
259
|
-
|
|
260
|
-
func main() {
|
|
261
|
-
fmt.Println("Hello, World!")
|
|
262
|
-
}`,rust:`fn main() {
|
|
263
|
-
println!("Hello, World!");
|
|
264
|
-
}`,java:`public class Main {
|
|
265
|
-
public static void main(String[] args) {
|
|
266
|
-
System.out.println("Hello, World!");
|
|
267
|
-
}
|
|
268
|
-
}`,c:`#include <stdio.h>
|
|
269
|
-
|
|
270
|
-
int main() {
|
|
271
|
-
printf("Hello, World!\\n");
|
|
272
|
-
return 0;
|
|
273
|
-
}`,cpp:`#include <iostream>
|
|
274
|
-
|
|
275
|
-
int main() {
|
|
276
|
-
std::cout << "Hello, World!" << std::endl;
|
|
277
|
-
return 0;
|
|
278
|
-
}`,csharp:`using System;
|
|
279
|
-
|
|
280
|
-
class Main {
|
|
281
|
-
static void Main() {
|
|
282
|
-
Console.WriteLine("Hello, World!");
|
|
283
|
-
}
|
|
284
|
-
}`,ruby:'puts "Hello, World!"',php:`<?php
|
|
285
|
-
echo "Hello, World!";
|
|
286
|
-
?>`,bash:'echo "Hello, World!"',shell:'echo "Hello, World!"',perl:'print "Hello, World!\\n";',lua:'print("Hello, World!")',r:'print("Hello, World!")',swift:'print("Hello, World!")',kotlin:`fun main() {
|
|
287
|
-
println("Hello, World!")
|
|
288
|
-
}`,scala:`object Main extends App {
|
|
289
|
-
println("Hello, World!")
|
|
290
|
-
}`,haskell:'main = putStrLn "Hello, World!"',elixir:'IO.puts "Hello, World!"',erlang:'main() -> io:fwrite("Hello, World!~n").',clojure:'(println "Hello, World!")',fsharp:'printfn "Hello, World!"',dart:`void main() {
|
|
291
|
-
print("Hello, World!");
|
|
292
|
-
}`,assembly:`section .data
|
|
293
|
-
msg db 'Hello, World!', 0
|
|
294
|
-
section .text
|
|
295
|
-
global _start
|
|
296
|
-
_start:
|
|
297
|
-
mov rax, 1
|
|
298
|
-
mov rdi, 1
|
|
299
|
-
mov rsi, msg
|
|
300
|
-
mov rdx, 13
|
|
301
|
-
syscall
|
|
302
|
-
mov rax, 60
|
|
303
|
-
xor rdi, rdi
|
|
304
|
-
syscall`,html:`<!DOCTYPE html>
|
|
305
|
-
<html>
|
|
306
|
-
<head>
|
|
307
|
-
<title>Hello</title>
|
|
308
|
-
</head>
|
|
309
|
-
<body>
|
|
310
|
-
<h1>Hello, World!</h1>
|
|
311
|
-
</body>
|
|
312
|
-
</html>`,css:`body {
|
|
313
|
-
background-color: #f0f0f0;
|
|
314
|
-
font-family: Arial, sans-serif;
|
|
315
|
-
}
|
|
316
|
-
|
|
317
|
-
h1 {
|
|
318
|
-
color: #333;
|
|
319
|
-
}`,sql:"SELECT 'Hello, World!' AS message;",markdown:`# Hello, World!
|
|
320
|
-
|
|
321
|
-
This is a sample markdown document.`};function He(p){const h=p.toLowerCase();return Nt[h]||`// ${p}
|
|
322
|
-
// Write your code here`}const We=({pistonUrl:p="/api/piston",language:h="javascript",theme:n="light",themeColor:u="",showLanguageSelector:v=!0,showEditor:T=!0,editable:_=!0,defaultCode:s="",executorLabel:m="运行",onExecuteStart:k,onExecuteEnd:w,onLanguageChange:I,onChange:L})=>{const z="hep-cr-default-language",Z=()=>typeof window>"u"?h:localStorage.getItem(z)||h,P=()=>{typeof window<"u"&&localStorage.setItem(z,t)},[b,A]=E.useState([]),[t,r]=E.useState(Z()),[i,l]=E.useState(n),[o,f]=E.useState(s),[x,g]=E.useState(""),[N,j]=E.useState(""),[$,V]=E.useState(!1),[q,ae]=E.useState(null),[ie,oe]=E.useState("stdout"),[D,B]=E.useState(null),[X,se]=E.useState(!0),[W,Ee]=E.useState(60),[G,le]=E.useState(!1),[J,te]=E.useState(!1),re=E.useRef(!1),ne=E.useMemo(()=>new Ot({pistonUrl:p}),[p]),ce=E.useMemo(()=>b.map(F=>({value:`${F.language}:${F.version}`,label:`${F.language.charAt(0).toUpperCase()+F.language.slice(1)} ${F.version}`})),[b]),ue=E.useMemo(()=>{if(!u)return{};const F=n==="dark",U=(Se,be)=>{const he=parseInt(Se.replace("#",""),16),fe=Math.round(2.55*be),Re=Math.min(255,Math.max(0,(he>>16)+fe)),Ce=Math.min(255,Math.max(0,(he>>8&255)+fe)),Pe=Math.min(255,Math.max(0,(he&255)+fe));return"#"+(16777216+Re*65536+Ce*256+Pe).toString(16).slice(1)},Ne=(Se=>{const be=parseInt(Se.replace("#",""),16),he=be>>16&255,fe=be>>8&255,Re=be&255;return(.299*he+.587*fe+.114*Re)/255>.5})(u)?"#000":"#fff";return{"--hep-cr-theme-color":u,"--hep-cr-theme-color-hover":F?U(u,20):U(u,-20),"--hep-cr-tab-active-color":Ne}},[u,n]),Q=E.useMemo(()=>t.includes(":")?t.split(":")[0]:t,[t]);E.useEffect(()=>{async function F(){se(!0),B(null);try{const U=await ne.getRuntimes();A(U)}catch(U){B(U instanceof Error?U.message:"Failed to load runtimes")}finally{se(!1)}}F()},[ne]),E.useEffect(()=>{!o&&b.length>0&&f(s||He(Q))},[b,o,s,Q]),E.useEffect(()=>{L==null||L(o)},[]),E.useEffect(()=>{!X&&b.length>0&&I&&!re.current&&(re.current=!0,I(Q,o))},[X,b.length]);const ge=E.useCallback(F=>{const U=F.target.value,de=U.includes(":")?U.split(":")[0]:U;r(U);const pe=He(de);f(pe),I==null||I(de,pe)},[I]),Le=E.useCallback(async()=>{if(!$){V(!0),g(""),j(""),ae(null),B(null),oe("stdout"),k==null||k();try{const F=await ne.execute(Q,o);g(F.output),j(F.stderr),ae(F.executionTime||null),oe(F.stderr?"stderr":"stdout"),w==null||w(F)}catch(F){const U=F instanceof Error?F.message:"Execution failed";B(U),w==null||w({success:!1,output:"",stderr:U,code:-1})}finally{V(!1)}}},[$,t,o,ne,k,w]),ye=E.useCallback(async()=>{await navigator.clipboard.writeText(o),le(!0),setTimeout(()=>{le(!1)},2e3)},[o]),me=E.useCallback(async()=>{const F=ie==="stdout"?x:N;await navigator.clipboard.writeText(F),te(!0),setTimeout(()=>{te(!1)},2e3)},[ie,x,N]),Ie=E.useCallback(()=>{f(He(Q))},[t]),xe=E.useRef(!1),ke=E.useCallback(F=>{xe.current=!0,document.addEventListener("mousemove",Te),document.addEventListener("mouseup",Oe),document.body.style.cursor="col-resize",document.body.style.userSelect="none"},[]),Te=E.useCallback(F=>{if(!xe.current)return;const U=document.querySelector(".hep-cr-main");if(!U)return;const de=U.getBoundingClientRect(),pe=(F.clientX-de.left)/de.width*100;Ee(Math.max(20,Math.min(80,pe)))},[]),Oe=E.useCallback(()=>{xe.current=!1,document.removeEventListener("mousemove",Te),document.removeEventListener("mouseup",Oe),document.body.style.cursor="",document.body.style.userSelect=""},[Te]);return c.jsxs("div",{className:`hep-cr-runner hep-cr-runner-${i}`,style:ue,children:[c.jsxs("div",{className:"hep-cr-header",children:[c.jsx("div",{className:"hep-cr-controls",children:v&&c.jsxs(c.Fragment,{children:[c.jsxs("select",{value:t,onChange:ge,className:"hep-cr-language-select",disabled:$,children:[X&&c.jsx("option",{value:"",children:"加载中..."}),ce.map(F=>c.jsx("option",{value:F.value,children:F.label},F.value))]}),c.jsx("button",{className:"hep-cr-btn hep-cr-btn-set-default",disabled:$,onClick:P,title:"设为默认语言",children:"★"})]})}),c.jsxs("div",{className:"hep-cr-actions",children:[c.jsxs("button",{className:"hep-cr-btn hep-cr-btn-run",disabled:$||X,onClick:Le,children:[$?c.jsx("span",{className:"hep-cr-spinner"}):c.jsx("span",{className:"hep-cr-run-icon",children:"▶"}),$?"运行中...":m]}),T&&_&&c.jsx("button",{className:"hep-cr-btn hep-cr-btn-reset",onClick:Ie,children:"重置"}),c.jsx("button",{className:"hep-cr-btn hep-cr-btn-theme",onClick:()=>l(i==="light"?"dark":"light"),title:i==="light"?"Switch to dark mode":"Switch to light mode",children:i==="light"?c.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:c.jsx("path",{d:"M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"})}):c.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[c.jsx("circle",{cx:"12",cy:"12",r:"5"}),c.jsx("line",{x1:"12",y1:"1",x2:"12",y2:"3"}),c.jsx("line",{x1:"12",y1:"21",x2:"12",y2:"23"}),c.jsx("line",{x1:"4.22",y1:"4.22",x2:"5.64",y2:"5.64"}),c.jsx("line",{x1:"18.36",y1:"18.36",x2:"19.78",y2:"19.78"}),c.jsx("line",{x1:"1",y1:"12",x2:"3",y2:"12"}),c.jsx("line",{x1:"21",y1:"12",x2:"23",y2:"12"}),c.jsx("line",{x1:"4.22",y1:"19.78",x2:"5.64",y2:"18.36"}),c.jsx("line",{x1:"18.36",y1:"5.64",x2:"19.78",y2:"4.22"})]})})]})]}),D&&c.jsx("div",{className:"hep-cr-error-message",children:D}),c.jsxs("div",{className:"hep-cr-main",children:[T&&c.jsxs("div",{className:"hep-cr-editor-panel",style:{width:`${W}%`},children:[c.jsxs("div",{className:"hep-cr-panel-header",children:[c.jsx("span",{className:"hep-cr-panel-title",children:"编辑器"}),c.jsxs("div",{className:"hep-cr-output-actions",children:[c.jsx("span",{className:"hep-cr-language-badge",children:Q}),c.jsx("button",{className:`hep-cr-btn-icon ${G?"hep-cr-btn-copied":""}`,disabled:G,onClick:ye,title:G?"已复制":"复制",children:G?c.jsx("span",{className:"hep-cr-copied-text",children:"已复制"}):c.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[c.jsx("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2"}),c.jsx("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"})]})})]})]}),c.jsx(Rt,{value:o,language:Q,theme:i,disabled:!_||$,onChange:f,onCodeChange:L})]}),T&&c.jsx("div",{className:"hep-cr-resize-handle",onMouseDown:ke,children:c.jsx("div",{className:"hep-cr-resize-line"})}),c.jsxs("div",{className:"hep-cr-output-panel",style:{width:T?`${100-W}%`:"100%"},children:[c.jsxs("div",{className:"hep-cr-panel-header",children:[c.jsxs("div",{className:"hep-cr-output-tabs",children:[c.jsx("button",{className:`hep-cr-tab ${ie==="stdout"?"active":""}`,onClick:()=>oe("stdout"),children:"输出"}),N&&c.jsx("button",{className:`hep-cr-tab hep-cr-tab-error ${ie==="stderr"?"active":""}`,onClick:()=>oe("stderr"),children:"错误"})]}),c.jsxs("div",{className:"hep-cr-output-actions",children:[q!==null&&c.jsxs("span",{className:"hep-cr-execution-time",children:[q,"ms"]}),c.jsx("button",{className:`hep-cr-btn-icon ${J?"hep-cr-btn-copied":""}`,disabled:J,onClick:me,title:J?"已复制":"复制",children:J?c.jsx("span",{className:"hep-cr-copied-text",children:"已复制"}):c.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[c.jsx("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2"}),c.jsx("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"})]})})]})]}),c.jsx("div",{className:"hep-cr-output-content",children:c.jsx("pre",{children:ie==="stdout"?$?"代码执行中...":x||'点击"运行"执行代码':N})})]})]}),c.jsx("style",{children:`
|
|
323
|
-
.hep-cr-runner {
|
|
324
|
-
display: flex;
|
|
325
|
-
flex-direction: column;
|
|
326
|
-
border: 1px solid #e0e0e0;
|
|
327
|
-
border-radius: 12px;
|
|
328
|
-
overflow: hidden;
|
|
329
|
-
font-family: 'SF Mono', 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
|
|
330
|
-
}
|
|
331
|
-
.hep-cr-runner-dark { background: #1e1e1e; border-color: #333; }
|
|
332
|
-
.hep-cr-runner-light { background: #ffffff; }
|
|
333
|
-
.hep-cr-header {
|
|
334
|
-
display: flex;
|
|
335
|
-
justify-content: space-between;
|
|
336
|
-
align-items: center;
|
|
337
|
-
padding: 12px 16px;
|
|
338
|
-
background: #252526;
|
|
339
|
-
border-bottom: 1px solid #333;
|
|
340
|
-
}
|
|
341
|
-
.hep-cr-runner-light .hep-cr-header { background: #f3f3f3; border-color: #e0e0e0; }
|
|
342
|
-
.hep-cr-controls { display: flex; gap: 8px; }
|
|
343
|
-
.hep-cr-language-select {
|
|
344
|
-
padding: 6px 12px;
|
|
345
|
-
border: 1px solid #444;
|
|
346
|
-
border-radius: 6px;
|
|
347
|
-
background: #2d2d2d;
|
|
348
|
-
color: #d4d4d4;
|
|
349
|
-
font-size: 13px;
|
|
350
|
-
cursor: pointer;
|
|
351
|
-
outline: none;
|
|
352
|
-
}
|
|
353
|
-
.hep-cr-runner-light .hep-cr-language-select { background: white; color: #333; border-color: #ccc; }
|
|
354
|
-
.hep-cr-language-select:focus { border-color: #4fc3f7; }
|
|
355
|
-
.hep-cr-actions { display: flex; gap: 8px; }
|
|
356
|
-
.hep-cr-btn {
|
|
357
|
-
padding: 6px 16px;
|
|
358
|
-
border: none;
|
|
359
|
-
border-radius: 6px;
|
|
360
|
-
font-size: 13px;
|
|
361
|
-
font-weight: 500;
|
|
362
|
-
cursor: pointer;
|
|
363
|
-
display: flex;
|
|
364
|
-
align-items: center;
|
|
365
|
-
gap: 6px;
|
|
366
|
-
transition: all 0.2s;
|
|
367
|
-
}
|
|
368
|
-
.hep-cr-btn:disabled { opacity: 0.5; cursor: not-allowed; }
|
|
369
|
-
.hep-cr-btn-run {
|
|
370
|
-
background: var(--hep-cr-theme-color, #4caf50);
|
|
371
|
-
color: var(--hep-cr-tab-active-color, #fff);
|
|
372
|
-
font-weight: 600;
|
|
373
|
-
}
|
|
374
|
-
.hep-cr-btn-run:hover:not(:disabled) { background: var(--hep-cr-theme-color-hover, #43a047); }
|
|
375
|
-
.hep-cr-btn-reset { background: #3d3d3d; color: #aaa; }
|
|
376
|
-
.hep-cr-runner-light .hep-cr-btn-reset { background: #e0e0e0; color: #666; }
|
|
377
|
-
.hep-cr-btn-theme { background: transparent; color: #fdd835; padding: 6px 10px; font-size: 14px; line-height: 1; height: auto; min-height: 28px; display: flex; align-items: center; justify-content: center; }
|
|
378
|
-
.hep-cr-btn-theme svg { display: block; width: 18px; height: 18px; }
|
|
379
|
-
.hep-cr-runner-light .hep-cr-btn-theme { color: #f57c00; }
|
|
380
|
-
.hep-cr-btn-theme:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
|
|
381
|
-
.hep-cr-runner-light .hep-cr-btn-theme:hover { background: rgba(0, 0, 0, 0.05); }
|
|
382
|
-
.hep-cr-btn-set-default {
|
|
383
|
-
background: transparent;
|
|
384
|
-
color: #888;
|
|
385
|
-
padding: 6px 10px;
|
|
386
|
-
font-size: 16px;
|
|
387
|
-
line-height: 1;
|
|
388
|
-
min-height: 28px;
|
|
389
|
-
height: auto;
|
|
390
|
-
}
|
|
391
|
-
.hep-cr-runner-light .hep-cr-btn-set-default { color: #bbb; }
|
|
392
|
-
.hep-cr-btn-set-default:hover:not(:disabled) { color: #fdd835; background: transparent; }
|
|
393
|
-
.hep-cr-runner-light .hep-cr-btn-set-default:hover:not(:disabled) { color: #f57c00; }
|
|
394
|
-
.hep-cr-error-message {
|
|
395
|
-
padding: 10px 16px;
|
|
396
|
-
background: #c62828;
|
|
397
|
-
color: white;
|
|
398
|
-
font-size: 13px;
|
|
399
|
-
}
|
|
400
|
-
.hep-cr-main { display: flex; height: 400px; overflow: hidden; }
|
|
401
|
-
.hep-cr-editor-panel {
|
|
402
|
-
display: flex;
|
|
403
|
-
flex-direction: column;
|
|
404
|
-
min-width: 20%;
|
|
405
|
-
max-width: 80%;
|
|
406
|
-
}
|
|
407
|
-
.hep-cr-panel-header {
|
|
408
|
-
display: flex;
|
|
409
|
-
justify-content: space-between;
|
|
410
|
-
align-items: center;
|
|
411
|
-
padding: 8px 12px;
|
|
412
|
-
background: #2d2d2d;
|
|
413
|
-
border-bottom: 1px solid #333;
|
|
414
|
-
}
|
|
415
|
-
.hep-cr-runner-light .hep-cr-panel-header { background: #f0f0f0; border-color: #e0e0e0; }
|
|
416
|
-
.hep-cr-panel-title {
|
|
417
|
-
font-size: 12px;
|
|
418
|
-
font-weight: 600;
|
|
419
|
-
color: #888;
|
|
420
|
-
text-transform: uppercase;
|
|
421
|
-
letter-spacing: 0.5px;
|
|
422
|
-
}
|
|
423
|
-
.hep-cr-language-badge {
|
|
424
|
-
font-size: 11px;
|
|
425
|
-
padding: 2px 8px;
|
|
426
|
-
background: var(--hep-cr-theme-color, #4fc3f7);
|
|
427
|
-
color: var(--hep-cr-tab-active-color, #000);
|
|
428
|
-
border-radius: 10px;
|
|
429
|
-
font-weight: 600;
|
|
430
|
-
}
|
|
431
|
-
.hep-cr-editor {
|
|
432
|
-
flex: 1;
|
|
433
|
-
width: 100%;
|
|
434
|
-
background: #1e1e1e;
|
|
435
|
-
position: relative;
|
|
436
|
-
overflow: hidden;
|
|
437
|
-
}
|
|
438
|
-
.hep-cr-editor .hep-cr-highlight,
|
|
439
|
-
.hep-cr-editor .hep-cr-input {
|
|
440
|
-
position: absolute;
|
|
441
|
-
top: 0;
|
|
442
|
-
left: 0;
|
|
443
|
-
width: 100%;
|
|
444
|
-
height: 100%;
|
|
445
|
-
padding: 12px 16px;
|
|
446
|
-
margin: 0;
|
|
447
|
-
border: none;
|
|
448
|
-
font-family: 'SF Mono', 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
|
|
449
|
-
font-size: 14px;
|
|
450
|
-
line-height: 1.6;
|
|
451
|
-
white-space: pre;
|
|
452
|
-
overflow: auto;
|
|
453
|
-
}
|
|
454
|
-
.hep-cr-editor .hep-cr-highlight {
|
|
455
|
-
background: transparent !important;
|
|
456
|
-
pointer-events: none;
|
|
457
|
-
z-index: 1;
|
|
458
|
-
}
|
|
459
|
-
.hep-cr-editor .hep-cr-highlight code {
|
|
460
|
-
display: block;
|
|
461
|
-
font-family: inherit;
|
|
462
|
-
}
|
|
463
|
-
.hep-cr-editor .hep-cr-input {
|
|
464
|
-
background: transparent !important;
|
|
465
|
-
color: transparent !important;
|
|
466
|
-
caret-color: #d4d4d4;
|
|
467
|
-
resize: none;
|
|
468
|
-
outline: none;
|
|
469
|
-
z-index: 2;
|
|
470
|
-
}
|
|
471
|
-
.hep-cr-editor .hep-cr-input:disabled { opacity: 0.7; }
|
|
472
|
-
.hep-cr-runner-light .hep-cr-editor .hep-cr-highlight code {
|
|
473
|
-
color: #333333;
|
|
474
|
-
}
|
|
475
|
-
.hep-cr-runner-light .hep-cr-editor .hep-cr-input {
|
|
476
|
-
caret-color: #333333;
|
|
477
|
-
}
|
|
478
|
-
.hep-cr-resize-handle {
|
|
479
|
-
width: 8px;
|
|
480
|
-
background: #2d2d2d;
|
|
481
|
-
cursor: col-resize;
|
|
482
|
-
display: flex;
|
|
483
|
-
align-items: center;
|
|
484
|
-
justify-content: center;
|
|
485
|
-
border-left: 1px solid #3d3d3d;
|
|
486
|
-
border-right: 1px solid #3d3d3d;
|
|
487
|
-
}
|
|
488
|
-
.hep-cr-resize-handle:hover { background: var(--hep-cr-theme-color, #4fc3f7); }
|
|
489
|
-
.hep-cr-resize-line { width: 3px; height: 40px; background: #555; border-radius: 2px; transition: background 0.2s; }
|
|
490
|
-
.hep-cr-resize-handle:hover .hep-cr-resize-line { background: #fff; }
|
|
491
|
-
.hep-cr-runner-light .hep-cr-resize-handle { background: #e0e0e0; border-color: #ccc; }
|
|
492
|
-
.hep-cr-runner-light .hep-cr-resize-line { background: #bbb; }
|
|
493
|
-
.hep-cr-runner-light .hep-cr-resize-handle:hover { background: var(--hep-cr-theme-color, #4fc3f7); }
|
|
494
|
-
.hep-cr-runner-light .hep-cr-resize-handle:hover .hep-cr-resize-line { background: #fff; }
|
|
495
|
-
.hep-cr-output-panel {
|
|
496
|
-
display: flex;
|
|
497
|
-
flex-direction: column;
|
|
498
|
-
min-width: 20%;
|
|
499
|
-
border-left: 1px solid #333;
|
|
500
|
-
}
|
|
501
|
-
.hep-cr-runner-light .hep-cr-output-panel { border-color: #e0e0e0; }
|
|
502
|
-
.hep-cr-output-tabs { display: flex; gap: 4px; }
|
|
503
|
-
.hep-cr-tab {
|
|
504
|
-
padding: 4px 12px;
|
|
505
|
-
border: none;
|
|
506
|
-
background: transparent;
|
|
507
|
-
cursor: pointer;
|
|
508
|
-
font-size: 12px;
|
|
509
|
-
border-radius: 4px;
|
|
510
|
-
color: #888;
|
|
511
|
-
transition: all 0.2s;
|
|
512
|
-
}
|
|
513
|
-
.hep-cr-tab:hover { color: #d4d4d4; background: #3d3d3d; }
|
|
514
|
-
.hep-cr-runner-light .hep-cr-tab:hover { color: #333; background: #e0e0e0; }
|
|
515
|
-
.hep-cr-tab.active { background: var(--hep-cr-theme-color, #4fc3f7); color: var(--hep-cr-tab-active-color, #000); font-weight: 600; }
|
|
516
|
-
.hep-cr-tab-error.active { background: #f44336; color: #fff; }
|
|
517
|
-
.hep-cr-output-actions { display: flex; align-items: center; gap: 12px; }
|
|
518
|
-
.hep-cr-execution-time { font-size: 12px; color: var(--hep-cr-theme-color, #4caf50); font-weight: 500; }
|
|
519
|
-
.hep-cr-btn-icon {
|
|
520
|
-
background: transparent;
|
|
521
|
-
border: none;
|
|
522
|
-
cursor: pointer;
|
|
523
|
-
padding: 4px;
|
|
524
|
-
border-radius: 4px;
|
|
525
|
-
color: #888;
|
|
526
|
-
display: flex;
|
|
527
|
-
align-items: center;
|
|
528
|
-
justify-content: center;
|
|
529
|
-
transition: all 0.2s;
|
|
530
|
-
}
|
|
531
|
-
.hep-cr-btn-icon:hover { color: #fff; background: #3d3d3d; }
|
|
532
|
-
.hep-cr-runner-light .hep-cr-btn-icon:hover { color: #333; background: #e0e0e0; }
|
|
533
|
-
.hep-cr-btn-icon:disabled { cursor: not-allowed; opacity: 0.7; }
|
|
534
|
-
.hep-cr-btn-copied { color: #4caf50 !important; }
|
|
535
|
-
.hep-cr-copied-text { font-size: 12px; color: #4caf50; }
|
|
536
|
-
.hep-cr-output-content {
|
|
537
|
-
flex: 1;
|
|
538
|
-
padding: 12px 16px;
|
|
539
|
-
overflow: auto;
|
|
540
|
-
background: #1e1e1e;
|
|
541
|
-
}
|
|
542
|
-
.hep-cr-runner-light .hep-cr-output-content { background: #fff; }
|
|
543
|
-
.hep-cr-output-content pre {
|
|
544
|
-
margin: 0;
|
|
545
|
-
font-size: 13px;
|
|
546
|
-
line-height: 1.6;
|
|
547
|
-
white-space: pre-wrap;
|
|
548
|
-
word-break: break-all;
|
|
549
|
-
color: #d4d4d4;
|
|
550
|
-
}
|
|
551
|
-
.hep-cr-runner-light .hep-cr-output-content pre { color: #333; }
|
|
552
|
-
.hep-cr-output-content .stderr { color: #f44336; }
|
|
553
|
-
.hep-cr-spinner {
|
|
554
|
-
width: 12px;
|
|
555
|
-
height: 12px;
|
|
556
|
-
border: 2px solid rgba(255,255,255,0.3);
|
|
557
|
-
border-top-color: white;
|
|
558
|
-
border-radius: 50%;
|
|
559
|
-
animation: spin 0.8s linear infinite;
|
|
560
|
-
}
|
|
561
|
-
@keyframes spin { to { transform: rotate(360deg); } }
|
|
562
|
-
`})]})},nt=E.forwardRef(({open:p,defaultOpen:h=!1,title:n="代码执行器",width:u=800,onClose:v,footer:T,theme:_="light",...s},m)=>{const[k,w]=E.useState(h),I=p!==void 0,L=I?p:k;E.useEffect(()=>{I&&p!==k&&w(p)},[p,I]);const z=E.useCallback(()=>{I||w(!1),v==null||v()},[I,v]),Z=b=>{b.target===b.currentTarget&&z()};E.useImperativeHandle(m,()=>({close:z}));const P=typeof u=="number"?`${u}px`:u;return L?c.jsxs("div",{className:"hep-cr-dialog-overlay",onClick:Z,children:[c.jsxs("div",{className:"hep-cr-dialog-container",style:{width:P},children:[c.jsxs("div",{className:"hep-cr-dialog-header",children:[c.jsx("h3",{className:"hep-cr-dialog-title",children:n}),c.jsx("button",{className:"hep-cr-dialog-close",onClick:z,children:c.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[c.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),c.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})]}),c.jsx("div",{className:"hep-cr-dialog-body",children:c.jsx(We,{theme:_,...s})}),T&&c.jsx("div",{className:"hep-cr-dialog-footer",children:T})]}),c.jsx("style",{children:`
|
|
563
|
-
.hep-cr-dialog-overlay {
|
|
564
|
-
position: fixed;
|
|
565
|
-
top: 0;
|
|
566
|
-
left: 0;
|
|
567
|
-
right: 0;
|
|
568
|
-
bottom: 0;
|
|
569
|
-
background: rgba(0, 0, 0, 0.5);
|
|
570
|
-
display: flex;
|
|
571
|
-
align-items: center;
|
|
572
|
-
justify-content: center;
|
|
573
|
-
z-index: 9999;
|
|
574
|
-
animation: hep-cr-dialog-fade-in 0.2s ease;
|
|
575
|
-
}
|
|
576
|
-
|
|
577
|
-
.hep-cr-dialog-container {
|
|
578
|
-
background: #fff;
|
|
579
|
-
border-radius: 12px;
|
|
580
|
-
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
|
|
581
|
-
max-width: 90vw;
|
|
582
|
-
max-height: 90vh;
|
|
583
|
-
display: flex;
|
|
584
|
-
flex-direction: column;
|
|
585
|
-
overflow: hidden;
|
|
586
|
-
animation: hep-cr-dialog-scale-in 0.2s ease;
|
|
587
|
-
}
|
|
588
|
-
|
|
589
|
-
.hep-cr-dialog-header {
|
|
590
|
-
display: flex;
|
|
591
|
-
align-items: center;
|
|
592
|
-
justify-content: space-between;
|
|
593
|
-
padding: 16px 20px;
|
|
594
|
-
border-bottom: 1px solid #e0e0e0;
|
|
595
|
-
}
|
|
596
|
-
|
|
597
|
-
.hep-cr-dialog-title {
|
|
598
|
-
margin: 0;
|
|
599
|
-
font-size: 16px;
|
|
600
|
-
font-weight: 600;
|
|
601
|
-
color: #333;
|
|
602
|
-
}
|
|
603
|
-
|
|
604
|
-
.hep-cr-dialog-close {
|
|
605
|
-
background: none;
|
|
606
|
-
border: none;
|
|
607
|
-
cursor: pointer;
|
|
608
|
-
padding: 4px;
|
|
609
|
-
border-radius: 4px;
|
|
610
|
-
color: #666;
|
|
611
|
-
display: flex;
|
|
612
|
-
align-items: center;
|
|
613
|
-
justify-content: center;
|
|
614
|
-
transition: all 0.2s;
|
|
615
|
-
}
|
|
616
|
-
|
|
617
|
-
.hep-cr-dialog-close:hover {
|
|
618
|
-
background: #f0f0f0;
|
|
619
|
-
color: #333;
|
|
620
|
-
}
|
|
621
|
-
|
|
622
|
-
.hep-cr-dialog-body {
|
|
623
|
-
flex: 1;
|
|
624
|
-
overflow: auto;
|
|
625
|
-
padding: 0;
|
|
626
|
-
}
|
|
627
|
-
|
|
628
|
-
.hep-cr-dialog-body .hep-cr-runner {
|
|
629
|
-
border: none;
|
|
630
|
-
border-radius: 0;
|
|
631
|
-
}
|
|
632
|
-
|
|
633
|
-
.hep-cr-dialog-footer {
|
|
634
|
-
padding: 12px 20px;
|
|
635
|
-
border-top: 1px solid #e0e0e0;
|
|
636
|
-
display: flex;
|
|
637
|
-
justify-content: flex-end;
|
|
638
|
-
gap: 12px;
|
|
639
|
-
}
|
|
640
|
-
|
|
641
|
-
@keyframes hep-cr-dialog-fade-in {
|
|
642
|
-
from { opacity: 0; }
|
|
643
|
-
to { opacity: 1; }
|
|
644
|
-
}
|
|
645
|
-
|
|
646
|
-
@keyframes hep-cr-dialog-scale-in {
|
|
647
|
-
from { transform: scale(0.95); }
|
|
648
|
-
to { transform: scale(1); }
|
|
649
|
-
}
|
|
650
|
-
`})]}):null});nt.displayName="CodeRunnerDialog";exports.CodeRunner=We;exports.CodeRunnerDialog=nt;exports.default=We;
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react");var n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function t(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var r,a={exports:{}},o={};var i,s={};"production"===process.env.NODE_ENV?a.exports=function(){if(r)return o;r=1;var n=e,t=Symbol.for("react.element"),a=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,s=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,n,r){var a,o={},c=null,p=null;for(a in void 0!==r&&(c=""+r),void 0!==n.key&&(c=""+n.key),void 0!==n.ref&&(p=n.ref),n)i.call(n,a)&&!l.hasOwnProperty(a)&&(o[a]=n[a]);if(e&&e.defaultProps)for(a in n=e.defaultProps)void 0===o[a]&&(o[a]=n[a]);return{$$typeof:t,type:e,key:c,ref:p,props:o,_owner:s.current}}return o.Fragment=a,o.jsx=c,o.jsxs=c,o}():a.exports=(i||(i=1,"production"!==process.env.NODE_ENV&&function(){var n,t=e,r=Symbol.for("react.element"),a=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),p=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),b=Symbol.iterator,y=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function E(e){for(var n=arguments.length,t=new Array(n>1?n-1:0),r=1;r<n;r++)t[r-1]=arguments[r];!function(e,n,t){var r=y.ReactDebugCurrentFrame.getStackAddendum();""!==r&&(n+="%s",t=t.concat([r]));var a=t.map(function(e){return String(e)});a.unshift("Warning: "+n),Function.prototype.apply.call(console[e],console,a)}("error",e,t)}function v(e){return e.displayName||"Context"}function x(e){if(null==e)return null;if("number"==typeof e.tag&&E("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),"function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case o:return"Fragment";case a:return"Portal";case l:return"Profiler";case i:return"StrictMode";case d:return"Suspense";case h:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case p:return v(e)+".Consumer";case c:return v(e._context)+".Provider";case u:return function(e,n,t){var r=e.displayName;if(r)return r;var a=n.displayName||n.name||"";return""!==a?t+"("+a+")":t}(e,e.render,"ForwardRef");case g:var n=e.displayName||null;return null!==n?n:x(e.type)||"Memo";case f:var t=e,r=t._payload,s=t._init;try{return x(s(r))}catch(m){return null}}return null}n=Symbol.for("react.module.reference");var k,w,S,A,T,_,N,R=Object.assign,F=0;function O(){}O.__reactDisabledLog=!0;var I,C=y.ReactCurrentDispatcher;function L(e,n,t){if(void 0===I)try{throw Error()}catch(a){var r=a.stack.trim().match(/\n( *(at )?)/);I=r&&r[1]||""}return"\n"+I+e}var j,P=!1,D="function"==typeof WeakMap?WeakMap:Map;function $(e,n){if(!e||P)return"";var t,r=j.get(e);if(void 0!==r)return r;P=!0;var a,o=Error.prepareStackTrace;Error.prepareStackTrace=void 0,a=C.current,C.current=null,function(){if(0===F){k=console.log,w=console.info,S=console.warn,A=console.error,T=console.group,_=console.groupCollapsed,N=console.groupEnd;var e={configurable:!0,enumerable:!0,value:O,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}F++}();try{if(n){var i=function(){throw Error()};if(Object.defineProperty(i.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(i,[])}catch(g){t=g}Reflect.construct(e,[],i)}else{try{i.call()}catch(g){t=g}e.call(i.prototype)}}else{try{throw Error()}catch(g){t=g}e()}}catch(f){if(f&&t&&"string"==typeof f.stack){for(var s=f.stack.split("\n"),l=t.stack.split("\n"),c=s.length-1,p=l.length-1;c>=1&&p>=0&&s[c]!==l[p];)p--;for(;c>=1&&p>=0;c--,p--)if(s[c]!==l[p]){if(1!==c||1!==p)do{if(c--,--p<0||s[c]!==l[p]){var u="\n"+s[c].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),"function"==typeof e&&j.set(e,u),u}}while(c>=1&&p>=0);break}}}finally{P=!1,C.current=a,function(){if(0===--F){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:R({},e,{value:k}),info:R({},e,{value:w}),warn:R({},e,{value:S}),error:R({},e,{value:A}),group:R({},e,{value:T}),groupCollapsed:R({},e,{value:_}),groupEnd:R({},e,{value:N})})}F<0&&E("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=o}var d=e?e.displayName||e.name:"",h=d?L(d):"";return"function"==typeof e&&j.set(e,h),h}function M(e,n,t){if(null==e)return"";if("function"==typeof e)return $(e,!(!(r=e.prototype)||!r.isReactComponent));var r;if("string"==typeof e)return L(e);switch(e){case d:return L("Suspense");case h:return L("SuspenseList")}if("object"==typeof e)switch(e.$$typeof){case u:return $(e.render,!1);case g:return M(e.type,n,t);case f:var a=e,o=a._payload,i=a._init;try{return M(i(o),n,t)}catch(s){}}return""}j=new D;var U=Object.prototype.hasOwnProperty,z={},H=y.ReactDebugCurrentFrame;function B(e){if(e){var n=e._owner,t=M(e.type,e._source,n?n.type:null);H.setExtraStackFrame(t)}else H.setExtraStackFrame(null)}var G=Array.isArray;function W(e){return G(e)}function Y(e){return""+e}function X(e){if(function(e){try{return Y(e),!1}catch(n){return!0}}(e))return E("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",function(e){return"function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}(e)),Y(e)}var Z,K,q=y.ReactCurrentOwner,V={key:!0,ref:!0,__self:!0,__source:!0};function J(e,n,t,a,o){var i,s={},l=null,c=null;for(i in void 0!==t&&(X(t),l=""+t),function(e){if(U.call(e,"key")){var n=Object.getOwnPropertyDescriptor(e,"key").get;if(n&&n.isReactWarning)return!1}return void 0!==e.key}(n)&&(X(n.key),l=""+n.key),function(e){if(U.call(e,"ref")){var n=Object.getOwnPropertyDescriptor(e,"ref").get;if(n&&n.isReactWarning)return!1}return void 0!==e.ref}(n)&&(c=n.ref,function(e){"string"==typeof e.ref&&q.current}(n)),n)U.call(n,i)&&!V.hasOwnProperty(i)&&(s[i]=n[i]);if(e&&e.defaultProps){var p=e.defaultProps;for(i in p)void 0===s[i]&&(s[i]=p[i])}if(l||c){var u="function"==typeof e?e.displayName||e.name||"Unknown":e;l&&function(e,n){var t=function(){Z||(Z=!0,E("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",n))};t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}(s,u),c&&function(e,n){var t=function(){K||(K=!0,E("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",n))};t.isReactWarning=!0,Object.defineProperty(e,"ref",{get:t,configurable:!0})}(s,u)}return function(e,n,t,a,o,i,s){var l={$$typeof:r,type:e,key:n,ref:t,props:s,_owner:i,_store:{}};return Object.defineProperty(l._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(l,"_self",{configurable:!1,enumerable:!1,writable:!1,value:a}),Object.defineProperty(l,"_source",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.freeze&&(Object.freeze(l.props),Object.freeze(l)),l}(e,l,c,o,a,q.current,s)}var Q,ee=y.ReactCurrentOwner,ne=y.ReactDebugCurrentFrame;function te(e){if(e){var n=e._owner,t=M(e.type,e._source,n?n.type:null);ne.setExtraStackFrame(t)}else ne.setExtraStackFrame(null)}function re(e){return"object"==typeof e&&null!==e&&e.$$typeof===r}function ae(){if(ee.current){var e=x(ee.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}Q=!1;var oe={};function ie(e,n){if(e._store&&!e._store.validated&&null==e.key){e._store.validated=!0;var t=function(e){var n=ae();if(!n){var t="string"==typeof e?e:e.displayName||e.name;t&&(n="\n\nCheck the top-level render call using <"+t+">.")}return n}(n);if(!oe[t]){oe[t]=!0;var r="";e&&e._owner&&e._owner!==ee.current&&(r=" It was passed a child from "+x(e._owner.type)+"."),te(e),E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',t,r),te(null)}}}function se(e,n){if("object"==typeof e)if(W(e))for(var t=0;t<e.length;t++){var r=e[t];re(r)&&ie(r,n)}else if(re(e))e._store&&(e._store.validated=!0);else if(e){var a=function(e){if(null===e||"object"!=typeof e)return null;var n=b&&e[b]||e["@@iterator"];return"function"==typeof n?n:null}(e);if("function"==typeof a&&a!==e.entries)for(var o,i=a.call(e);!(o=i.next()).done;)re(o.value)&&ie(o.value,n)}}function le(e){var n,t=e.type;if(null!=t&&"string"!=typeof t){if("function"==typeof t)n=t.propTypes;else{if("object"!=typeof t||t.$$typeof!==u&&t.$$typeof!==g)return;n=t.propTypes}if(n){var r=x(t);!function(e,n,t,r,a){var o=Function.call.bind(U);for(var i in e)if(o(e,i)){var s=void 0;try{if("function"!=typeof e[i]){var l=Error((r||"React class")+": "+t+" type `"+i+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[i]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw l.name="Invariant Violation",l}s=e[i](n,i,r,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(c){s=c}!s||s instanceof Error||(B(a),E("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",r||"React class",t,i,typeof s),B(null)),s instanceof Error&&!(s.message in z)&&(z[s.message]=!0,B(a),E("Failed %s type: %s",t,s.message),B(null))}}(n,e.props,"prop",r,e)}else void 0===t.PropTypes||Q||(Q=!0,E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",x(t)||"Unknown"));"function"!=typeof t.getDefaultProps||t.getDefaultProps.isReactClassApproved||E("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}var ce={};function pe(e,t,a,s,b,y){var v=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===l||e===i||e===d||e===h||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===g||e.$$typeof===c||e.$$typeof===p||e.$$typeof===u||e.$$typeof===n||void 0!==e.getModuleId)}(e);if(!v){var k,w="";(void 0===e||"object"==typeof e&&null!==e&&0===Object.keys(e).length)&&(w+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),w+=ae(),null===e?k="null":W(e)?k="array":void 0!==e&&e.$$typeof===r?(k="<"+(x(e.type)||"Unknown")+" />",w=" Did you accidentally export a JSX literal instead of a component?"):k=typeof e,E("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",k,w)}var S=J(e,t,a,b,y);if(null==S)return S;if(v){var A=t.children;if(void 0!==A)if(s)if(W(A)){for(var T=0;T<A.length;T++)se(A[T],e);Object.freeze&&Object.freeze(A)}else E("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else se(A,e)}if(U.call(t,"key")){var _=x(e),N=Object.keys(t).filter(function(e){return"key"!==e}),R=N.length>0?"{key: someKey, "+N.join(": ..., ")+": ...}":"{key: someKey}";ce[_+R]||(E('A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />',R,_,N.length>0?"{"+N.join(": ..., ")+": ...}":"{}",_),ce[_+R]=!0)}return e===o?function(e){for(var n=Object.keys(e.props),t=0;t<n.length;t++){var r=n[t];if("children"!==r&&"key"!==r){te(e),E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",r),te(null);break}}null!==e.ref&&(te(e),E("Invalid attribute `ref` supplied to `React.Fragment`."),te(null))}(S):le(S),S}var ue=function(e,n,t){return pe(e,n,t,!1)},de=function(e,n,t){return pe(e,n,t,!0)};s.Fragment=o,s.jsx=ue,s.jsxs=de}()),s);var l,c,p=a.exports,u={exports:{}};l=u,c=function(e){var n=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,t=0,r={},a={manual:e.Prism&&e.Prism.manual,disableWorkerMessageHandler:e.Prism&&e.Prism.disableWorkerMessageHandler,util:{encode:function e(n){return n instanceof o?new o(n.type,e(n.content),n.alias):Array.isArray(n)?n.map(e):n.replace(/&/g,"&").replace(/</g,"<").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 e(n,t){var r,o;switch(t=t||{},a.util.type(n)){case"Object":if(o=a.util.objId(n),t[o])return t[o];for(var i in r={},t[o]=r,n)n.hasOwnProperty(i)&&(r[i]=e(n[i],t));return r;case"Array":return o=a.util.objId(n),t[o]?t[o]:(r=[],t[o]=r,n.forEach(function(n,a){r[a]=e(n,t)}),r);default:return n}},getLanguage:function(e){for(;e;){var t=n.exec(e.className);if(t)return t[1].toLowerCase();e=e.parentElement}return"none"},setLanguage:function(e,t){e.className=e.className.replace(RegExp(n,"gi"),""),e.classList.add("language-"+t)},currentScript:function(){if("undefined"==typeof document)return null;if(document.currentScript&&"SCRIPT"===document.currentScript.tagName)return document.currentScript;try{throw new Error}catch(r){var e=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(r.stack)||[])[1];if(e){var n=document.getElementsByTagName("script");for(var t in n)if(n[t].src==e)return n[t]}return null}},isActive:function(e,n,t){for(var r="no-"+n;e;){var a=e.classList;if(a.contains(n))return!0;if(a.contains(r))return!1;e=e.parentElement}return!!t}},languages:{plain:r,plaintext:r,text:r,txt:r,extend:function(e,n){var t=a.util.clone(a.languages[e]);for(var r in n)t[r]=n[r];return t},insertBefore:function(e,n,t,r){var o=(r=r||a.languages)[e],i={};for(var s in o)if(o.hasOwnProperty(s)){if(s==n)for(var l in t)t.hasOwnProperty(l)&&(i[l]=t[l]);t.hasOwnProperty(s)||(i[s]=o[s])}var c=r[e];return r[e]=i,a.languages.DFS(a.languages,function(n,t){t===c&&n!=e&&(this[n]=i)}),i},DFS:function e(n,t,r,o){o=o||{};var i=a.util.objId;for(var s in n)if(n.hasOwnProperty(s)){t.call(n,s,n[s],r||s);var l=n[s],c=a.util.type(l);"Object"!==c||o[i(l)]?"Array"!==c||o[i(l)]||(o[i(l)]=!0,e(l,t,s,o)):(o[i(l)]=!0,e(l,t,null,o))}}},plugins:{},highlightAll:function(e,n){a.highlightAllUnder(document,e,n)},highlightAllUnder:function(e,n,t){var r={callback:t,container:e,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};a.hooks.run("before-highlightall",r),r.elements=Array.prototype.slice.apply(r.container.querySelectorAll(r.selector)),a.hooks.run("before-all-elements-highlight",r);for(var o,i=0;o=r.elements[i++];)a.highlightElement(o,!0===n,r.callback)},highlightElement:function(n,t,r){var o=a.util.getLanguage(n),i=a.languages[o];a.util.setLanguage(n,o);var s=n.parentElement;s&&"pre"===s.nodeName.toLowerCase()&&a.util.setLanguage(s,o);var l={element:n,language:o,grammar:i,code:n.textContent};function c(e){l.highlightedCode=e,a.hooks.run("before-insert",l),l.element.innerHTML=l.highlightedCode,a.hooks.run("after-highlight",l),a.hooks.run("complete",l),r&&r.call(l.element)}if(a.hooks.run("before-sanity-check",l),(s=l.element.parentElement)&&"pre"===s.nodeName.toLowerCase()&&!s.hasAttribute("tabindex")&&s.setAttribute("tabindex","0"),!l.code)return a.hooks.run("complete",l),void(r&&r.call(l.element));if(a.hooks.run("before-highlight",l),l.grammar)if(t&&e.Worker){var p=new Worker(a.filename);p.onmessage=function(e){c(e.data)},p.postMessage(JSON.stringify({language:l.language,code:l.code,immediateClose:!0}))}else c(a.highlight(l.code,l.grammar,l.language));else c(a.util.encode(l.code))},highlight:function(e,n,t){var r={code:e,grammar:n,language:t};if(a.hooks.run("before-tokenize",r),!r.grammar)throw new Error('The language "'+r.language+'" has no grammar.');return r.tokens=a.tokenize(r.code,r.grammar),a.hooks.run("after-tokenize",r),o.stringify(a.util.encode(r.tokens),r.language)},tokenize:function(e,n){var t=n.rest;if(t){for(var r in t)n[r]=t[r];delete n.rest}var a=new l;return c(a,a.head,e),s(e,a,n,a.head,0),function(e){for(var n=[],t=e.head.next;t!==e.tail;)n.push(t.value),t=t.next;return n}(a)},hooks:{all:{},add:function(e,n){var t=a.hooks.all;t[e]=t[e]||[],t[e].push(n)},run:function(e,n){var t=a.hooks.all[e];if(t&&t.length)for(var r,o=0;r=t[o++];)r(n)}},Token:o};function o(e,n,t,r){this.type=e,this.content=n,this.alias=t,this.length=0|(r||"").length}function i(e,n,t,r){e.lastIndex=n;var a=e.exec(t);if(a&&r&&a[1]){var o=a[1].length;a.index+=o,a[0]=a[0].slice(o)}return a}function s(e,n,t,r,l,u){for(var d in t)if(t.hasOwnProperty(d)&&t[d]){var h=t[d];h=Array.isArray(h)?h:[h];for(var g=0;g<h.length;++g){if(u&&u.cause==d+","+g)return;var f=h[g],m=f.inside,b=!!f.lookbehind,y=!!f.greedy,E=f.alias;if(y&&!f.pattern.global){var v=f.pattern.toString().match(/[imsuy]*$/)[0];f.pattern=RegExp(f.pattern.source,v+"g")}for(var x=f.pattern||f,k=r.next,w=l;k!==n.tail&&!(u&&w>=u.reach);w+=k.value.length,k=k.next){var S=k.value;if(n.length>e.length)return;if(!(S instanceof o)){var A,T=1;if(y){if(!(A=i(x,w,e,b))||A.index>=e.length)break;var _=A.index,N=A.index+A[0].length,R=w;for(R+=k.value.length;_>=R;)R+=(k=k.next).value.length;if(w=R-=k.value.length,k.value instanceof o)continue;for(var F=k;F!==n.tail&&(R<N||"string"==typeof F.value);F=F.next)T++,R+=F.value.length;T--,S=e.slice(w,R),A.index-=w}else if(!(A=i(x,0,S,b)))continue;_=A.index;var O=A[0],I=S.slice(0,_),C=S.slice(_+O.length),L=w+S.length;u&&L>u.reach&&(u.reach=L);var j=k.prev;if(I&&(j=c(n,j,I),w+=I.length),p(n,j,T),k=c(n,j,new o(d,m?a.tokenize(O,m):O,E,O)),C&&c(n,k,C),T>1){var P={cause:d+","+g,reach:L};s(e,n,t,k.prev,w,P),u&&P.reach>u.reach&&(u.reach=P.reach)}}}}}}function l(){var e={value:null,prev:null,next:null},n={value:null,prev:e,next:null};e.next=n,this.head=e,this.tail=n,this.length=0}function c(e,n,t){var r=n.next,a={value:t,prev:n,next:r};return n.next=a,r.prev=a,e.length++,a}function p(e,n,t){for(var r=n.next,a=0;a<t&&r!==e.tail;a++)r=r.next;n.next=r,r.prev=n,e.length-=a}if(e.Prism=a,o.stringify=function e(n,t){if("string"==typeof n)return n;if(Array.isArray(n)){var r="";return n.forEach(function(n){r+=e(n,t)}),r}var o={type:n.type,content:e(n.content,t),tag:"span",classes:["token",n.type],attributes:{},language:t},i=n.alias;i&&(Array.isArray(i)?Array.prototype.push.apply(o.classes,i):o.classes.push(i)),a.hooks.run("wrap",o);var s="";for(var l in o.attributes)s+=" "+l+'="'+(o.attributes[l]||"").replace(/"/g,""")+'"';return"<"+o.tag+' class="'+o.classes.join(" ")+'"'+s+">"+o.content+"</"+o.tag+">"},!e.document)return e.addEventListener?(a.disableWorkerMessageHandler||e.addEventListener("message",function(n){var t=JSON.parse(n.data),r=t.language,o=t.code,i=t.immediateClose;e.postMessage(a.highlight(o,a.languages[r],r)),i&&e.close()},!1),a):a;var u=a.util.currentScript();function d(){a.manual||a.highlightAll()}if(u&&(a.filename=u.src,u.hasAttribute("data-manual")&&(a.manual=!0)),!a.manual){var h=document.readyState;"loading"===h||"interactive"===h&&u&&u.defer?document.addEventListener("DOMContentLoaded",d):window.requestAnimationFrame?window.requestAnimationFrame(d):window.setTimeout(d,16)}return a}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{}),l.exports&&(l.exports=c),void 0!==n&&(n.Prism=c),c.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},c.languages.markup.tag.inside["attr-value"].inside.entity=c.languages.markup.entity,c.languages.markup.doctype.inside["internal-subset"].inside=c.languages.markup,c.hooks.add("wrap",function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&/,"&"))}),Object.defineProperty(c.languages.markup.tag,"addInlined",{value:function(e,n){var t={};t["language-"+n]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:c.languages[n]},t.cdata=/^<!\[CDATA\[|\]\]>$/i;var r={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:t}};r["language-"+n]={pattern:/[\s\S]+/,inside:c.languages[n]};var a={};a[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return e}),"i"),lookbehind:!0,greedy:!0,inside:r},c.languages.insertBefore("markup","cdata",a)}}),Object.defineProperty(c.languages.markup.tag,"addAttribute",{value:function(e,n){c.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[n,"language-"+n],inside:c.languages[n]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),c.languages.html=c.languages.markup,c.languages.mathml=c.languages.markup,c.languages.svg=c.languages.markup,c.languages.xml=c.languages.extend("markup",{}),c.languages.ssml=c.languages.xml,c.languages.atom=c.languages.xml,c.languages.rss=c.languages.xml,function(e){var n=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+n.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+n.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+n.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+n.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:n,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var t=e.languages.markup;t&&(t.tag.addInlined("style","css"),t.tag.addAttribute("style","css"))}(c),c.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},c.languages.javascript=c.languages.extend("clike",{"class-name":[c.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),c.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,c.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:c.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:c.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:c.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:c.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:c.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),c.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:c.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),c.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),c.languages.markup&&(c.languages.markup.tag.addInlined("script","javascript"),c.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),c.languages.js=c.languages.javascript,function(){if(void 0!==c&&"undefined"!=typeof document){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var e={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},n="data-src-status",t="loading",r="loaded",a="pre[data-src]:not(["+n+'="'+r+'"]):not(['+n+'="'+t+'"])';c.hooks.add("before-highlightall",function(e){e.selector+=", "+a}),c.hooks.add("before-sanity-check",function(o){var i=o.element;if(i.matches(a)){o.code="",i.setAttribute(n,t);var s=i.appendChild(document.createElement("CODE"));s.textContent="Loading…";var l=i.getAttribute("data-src"),p=o.language;if("none"===p){var u=(/\.(\w+)$/.exec(l)||[,"none"])[1];p=e[u]||u}c.util.setLanguage(s,p),c.util.setLanguage(i,p);var d=c.plugins.autoloader;d&&d.loadLanguages(p),function(e,n,t){var r=new XMLHttpRequest;r.open("GET",e,!0),r.onreadystatechange=function(){4==r.readyState&&(r.status<400&&r.responseText?n(r.responseText):r.status>=400?t("✖ Error "+r.status+" while fetching file: "+r.statusText):t("✖ Error: File does not exist or is empty"))},r.send(null)}(l,function(e){i.setAttribute(n,r);var t=function(e){var n=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(e||"");if(n){var t=Number(n[1]),r=n[2],a=n[3];return r?a?[t,Number(a)]:[t,void 0]:[t,t]}}(i.getAttribute("data-range"));if(t){var a=e.split(/\r\n?|\n/g),o=t[0],l=null==t[1]?a.length:t[1];o<0&&(o+=a.length),o=Math.max(0,Math.min(o-1,a.length)),l<0&&(l+=a.length),l=Math.max(0,Math.min(l,a.length)),e=a.slice(o,l).join("\n"),i.hasAttribute("data-start")||i.setAttribute("data-start",String(o+1))}s.textContent=e,c.highlightElement(s)},function(e){i.setAttribute(n,"failed"),s.textContent=e})}}),c.plugins.fileHighlight={highlight:function(e){for(var n,t=(e||document).querySelectorAll(a),r=0;n=t[r++];)c.highlightElement(n)}};var o=!1;c.fileHighlight=function(){o||(o=!0),c.plugins.fileHighlight.highlight.apply(this,arguments)}}}();const d=t(u.exports);Prism.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},Prism.languages.javascript=Prism.languages.extend("clike",{"class-name":[Prism.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),Prism.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,Prism.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:Prism.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:Prism.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),Prism.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:Prism.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),Prism.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),Prism.languages.markup&&(Prism.languages.markup.tag.addInlined("script","javascript"),Prism.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),Prism.languages.js=Prism.languages.javascript,Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern://,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest=Prism.languages.python,Prism.languages.py=Prism.languages.python,Prism.languages.go=Prism.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),Prism.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete Prism.languages.go["class-name"],function(e){var n=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,t=/(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,r={pattern:RegExp(/(^|[^\w.])/.source+t+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};e.languages.java=e.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[r,{pattern:RegExp(/(^|[^\w.])/.source+t+/[A-Z]\w*(?=\s+\w+\s*[;,=()]|\s*(?:\[[\s,]*\]\s*)?::\s*new\b)/.source),lookbehind:!0,inside:r.inside},{pattern:RegExp(/(\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\s+)/.source+t+/[A-Z]\w*\b/.source),lookbehind:!0,inside:r.inside}],keyword:n,function:[e.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0},constant:/\b[A-Z][A-Z_\d]+\b/}),e.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),e.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":r,keyword:n,punctuation:/[<>(),.:]/,operator:/[?&|]/}},import:[{pattern:RegExp(/(\bimport\s+)/.source+t+/(?:[A-Z]\w*|\*)(?=\s*;)/.source),lookbehind:!0,inside:{namespace:r.inside.namespace,punctuation:/\./,operator:/\*/,"class-name":/\w+/}},{pattern:RegExp(/(\bimport\s+static\s+)/.source+t+/(?:\w+|\*)(?=\s*;)/.source),lookbehind:!0,alias:"static",inside:{namespace:r.inside.namespace,static:/\b\w+$/,punctuation:/\./,operator:/\*/,"class-name":/\w+/}}],namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g,function(){return n.source})),lookbehind:!0,inside:{punctuation:/\./}}})}(Prism),Prism.languages.c=Prism.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),Prism.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),Prism.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},Prism.languages.c.string],char:Prism.languages.c.char,comment:Prism.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:Prism.languages.c}}}}),Prism.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete Prism.languages.c.boolean,function(e){for(var n=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,t=0;t<2;t++)n=n.replace(/<self>/g,function(){return n});n=n.replace(/<self>/g,function(){return/[^\s\S]/.source}),e.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+n),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},e.languages.rust["closure-params"].inside.rest=e.languages.rust,e.languages.rust.attribute.inside.string=e.languages.rust.string}(Prism),Prism.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/},function(e){var n="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",t={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},r={bash:t,environment:{pattern:RegExp("\\$"+n),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+n),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};e.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+n),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},parameter:{pattern:/(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:r},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:t}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:r},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:r.entity}}],environment:{pattern:RegExp("\\$?"+n),alias:"constant"},variable:r.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},t.inside=e.languages.bash;for(var a=["comment","function-name","for-or-select","assign-left","parameter","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],o=r.variable[1].inside,i=0;i<a.length;i++)o[a[i]]=e.languages.bash[a[i]];e.languages.sh=e.languages.bash,e.languages.shell=e.languages.bash}(Prism),Prism.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},Prism.languages.webmanifest=Prism.languages.json;window.Prism=d;const h={javascript:"javascript",js:"javascript",typescript:"typescript",ts:"typescript",python:"python",py:"python",java:"java",c:"c",cpp:"cpp","c++":"cpp",csharp:"csharp","c#":"csharp",go:"go",golang:"go",rust:"rust",ruby:"ruby",rb:"ruby",php:"php",swift:"swift",kotlin:"kotlin",kt:"kotlin",sql:"sql",bash:"bash",sh:"bash",shell:"bash",json:"json",yaml:"yaml",yml:"yaml",markdown:"markdown",md:"markdown"};const g=({value:n,language:t,theme:r="dark",disabled:a=!1,onChange:o,onCodeChange:i})=>{const s=e.useRef(null),l=e.useRef(null),c=e.useRef(null),u=e.useMemo(()=>h[t.toLowerCase()]||"javascript",[t]),g="dark"===r?"#1e1e1e":"#fafafa",f=e.useMemo(()=>{try{const e=d.languages[u];if(e)return d.highlight(n||"",e,u)}catch(e){}return function(e){const n=document.createElement("div");return n.textContent=e,n.innerHTML}(n||"")},[n,u]),m=e.useCallback(e=>{c.current&&clearTimeout(c.current),c.current=setTimeout(()=>{null==i||i(e)},500)},[i]);return e.useEffect(()=>()=>{c.current&&clearTimeout(c.current)},[]),e.useEffect(()=>{!function(e){if("undefined"==typeof document)return;const n="hep-cr-prism-styles",t=document.getElementById(n),r="dark"===e?'\n/* 默认代码颜色 */\n.hep-cr-editor .hep-cr-highlight code,\n.hep-cr-editor .hep-cr-highlight pre {\n color: #f8f8f2 !important;\n}\n\n.hep-cr-editor .token.comment,\n.hep-cr-editor .token.prolog,\n.hep-cr-editor .token.doctype,\n.hep-cr-editor .token.cdata {\n color: #8292a2 !important;\n}\n\n.hep-cr-editor .token.punctuation {\n color: #f8f8f2 !important;\n}\n\n.hep-cr-editor .token.property,\n.hep-cr-editor .token.tag,\n.hep-cr-editor .token.constant,\n.hep-cr-editor .token.symbol,\n.hep-cr-editor .token.deleted {\n color: #f92672 !important;\n}\n\n/* console 单独处理 - 必须是白色 */\n.hep-cr-editor .token.property.console,\n.hep-cr-editor .token.console {\n color: #f8f8f2 !important;\n}\n\n.hep-cr-editor .token.boolean,\n.hep-cr-editor .token.number {\n color: #ae81ff !important;\n}\n\n.hep-cr-editor .token.selector,\n.hep-cr-editor .token.attr-name,\n.hep-cr-editor .token.string,\n.hep-cr-editor .token.char,\n.hep-cr-editor .token.builtin,\n.hep-cr-editor .token.inserted {\n color: #a6e22e !important;\n}\n\n.hep-cr-editor .token.operator,\n.hep-cr-editor .token.entity,\n.hep-cr-editor .token.url,\n.hep-cr-editor .language-css .hep-cr-editor .token.string,\n.hep-cr-editor .style .hep-cr-editor .token.string,\n.hep-cr-editor .token.variable {\n color: #f8f8f2 !important;\n}\n\n.hep-cr-editor .token.atrule,\n.hep-cr-editor .token.attr-value,\n.hep-cr-editor .token.function,\n.hep-cr-editor .token.class-name {\n color: #e6db74 !important;\n}\n\n.hep-cr-editor .token.keyword,\n.hep-cr-editor .token.keyword-control {\n color: #66d9ef !important;\n}\n\n.hep-cr-editor .token.regex,\n.hep-cr-editor .token.important {\n color: #fd971f !important;\n}\n\n/* 覆盖用户项目的 text-shadow 样式,避免白边 */\n.hep-cr-editor code[class*="language-"],\n.hep-cr-editor pre[class*="language-"],\n.hep-cr-editor .hep-cr-highlight code,\n.hep-cr-editor .hep-cr-highlight pre {\n text-shadow: none !important;\n}\n\n/* 覆盖 console 等内置对象 */\n.hep-cr-editor .token.console {\n color: #f8f8f2 !important;\n}\n':'\n/* 默认代码颜色 */\n.hep-cr-editor .hep-cr-highlight code,\n.hep-cr-editor .hep-cr-highlight pre {\n color: #333 !important;\n}\n\n.hep-cr-editor .token.comment,\n.hep-cr-editor .token.prolog,\n.hep-cr-editor .token.doctype,\n.hep-cr-editor .token.cdata {\n color: #708090;\n}\n\n.hep-cr-editor .token.punctuation {\n color: #333;\n}\n\n.hep-cr-editor .token.property,\n.hep-cr-editor .token.tag,\n.hep-cr-editor .token.constant,\n.hep-cr-editor .token.symbol,\n.hep-cr-editor .token.deleted {\n color: #d73a49;\n}\n\n.hep-cr-editor .token.boolean,\n.hep-cr-editor .token.number {\n color: #005cc5;\n}\n\n.hep-cr-editor .token.selector,\n.hep-cr-editor .token.attr-name,\n.hep-cr-editor .token.string,\n.hep-cr-editor .token.char,\n.hep-cr-editor .token.builtin,\n.hep-cr-editor .token.inserted {\n color: #22863a;\n}\n\n.hep-cr-editor .token.operator,\n.hep-cr-editor .token.entity,\n.hep-cr-editor .token.url,\n.hep-cr-editor .language-css .hep-cr-editor .token.string,\n.hep-cr-editor .style .hep-cr-editor .token.string,\n.hep-cr-editor .token.variable {\n color: #333;\n}\n\n.hep-cr-editor .token.atrule,\n.hep-cr-editor .token.attr-value,\n.hep-cr-editor .token.function,\n.hep-cr-editor .token.class-name {\n color: #6f42c1;\n}\n\n.hep-cr-editor .token.keyword {\n color: #d73a49;\n}\n\n.hep-cr-editor .token.regex,\n.hep-cr-editor .token.important {\n color: #e36209;\n}\n\n/* 覆盖用户项目的 text-shadow 样式,避免白边 */\n.hep-cr-editor code[class*="language-"],\n.hep-cr-editor pre[class*="language-"],\n.hep-cr-editor .hep-cr-highlight code,\n.hep-cr-editor .hep-cr-highlight pre {\n text-shadow: none !important;\n}\n\n/* 覆盖 console 等内置对象 */\n.hep-cr-editor .token.console {\n color: #333 !important;\n}\n';t&&t.remove();const a=document.createElement("style");a.id=n,a.textContent=r,document.head.appendChild(a)}(r)},[r]),p.jsxs("div",{className:`hep-cr-editor theme-${r}`,style:{background:g},children:[p.jsx("pre",{ref:l,className:`hep-cr-highlight language-${u}`,"aria-hidden":"true",children:p.jsx("code",{dangerouslySetInnerHTML:{__html:f}})}),p.jsx("textarea",{ref:s,className:"hep-cr-input",value:n,disabled:a,onChange:e=>{const n=e.target.value;null==o||o(n),m(n)},onScroll:()=>{s.current&&l.current&&(l.current.scrollTop=s.current.scrollTop,l.current.scrollLeft=s.current.scrollLeft)},onKeyDown:e=>{if("Tab"===e.key){e.preventDefault();const t=e.target,r=t.selectionStart,a=t.selectionEnd,i=n.substring(0,r)+" "+n.substring(a);null==o||o(i),m(i),requestAnimationFrame(()=>{t.selectionStart=t.selectionEnd=r+2})}},spellCheck:!1,placeholder:"Write your code here..."})]})};if("undefined"!=typeof document){const e="hep-cr-editor-styles";if(!document.getElementById(e)){const n=document.createElement("style");n.id=e,n.textContent="\n.hep-cr-editor {\n position: relative;\n flex: 1;\n overflow: hidden;\n}\n\n.hep-cr-highlight,\n.hep-cr-input {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n padding: 12px 16px;\n margin: 0;\n border: none;\n font-family: 'SF Mono', 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;\n font-size: 14px;\n line-height: 1.6;\n white-space: pre;\n overflow: auto;\n}\n\n.hep-cr-highlight {\n pointer-events: none;\n z-index: 1;\n}\n\n.hep-cr-highlight.hep-cr-highlight {\n background: transparent !important;\n}\n\n.hep-cr-highlight code {\n display: block;\n font-family: inherit;\n background: transparent !important;\n}\n\n.hep-cr-input {\n position: relative;\n z-index: 2;\n background: transparent;\n color: transparent;\n caret-color: #d4d4d4;\n resize: none;\n outline: none;\n}\n\n.hep-cr-input:disabled {\n opacity: 0.7;\n}\n\n/* Light theme caret */\n.theme-light .hep-cr-input {\n caret-color: #333333;\n}\n",document.head.appendChild(n)}}var f=Object.defineProperty,m=(e,n,t)=>((e,n,t)=>n in e?f(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t)(e,"symbol"!=typeof n?n+"":n,t);let b=null;class y{constructor(e={}){m(this,"baseUrl"),m(this,"timeout"),this.baseUrl=e.pistonUrl||"/api/piston",this.timeout=e.timeout||3e3}async getRuntimes(e=!1){if(b&&!e)return b;try{const e=await fetch(`${this.baseUrl}/runtimes`,{method:"GET",headers:{"Content-Type":"application/json"}});if(!e.ok)throw new Error(`Failed to fetch runtimes: ${e.statusText}`);const n=await e.json();return b=n,n}catch(n){throw n}}async execute(e,n,t={}){const r=(await this.getRuntimes()).find(n=>{var t;return n.language.toLowerCase()===e.toLowerCase()||(null==(t=n.aliases)?void 0:t.some(n=>n.toLowerCase()===e.toLowerCase()))});if(!r)throw new Error(`Language '${e}' is not supported`);const a=this.getFileName(e),o={language:r.language,version:t.version||r.version,files:[{name:a,content:n}],stdin:t.stdin||"",args:t.args||[],run_timeout:t.runTimeout||this.timeout,compile_timeout:this.timeout},i=Date.now();try{const e=await fetch(`${this.baseUrl}/execute`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(o)});if(!e.ok)throw new Error(`Execute failed: ${e.statusText}`);const n=await e.json(),t=Date.now()-i,r=n.run.stdout||"",a=n.run.stderr||"";return{success:0===n.run.code,output:r,stderr:a,code:n.run.code,executionTime:t,compile:n.compile?{stdout:n.compile.stdout||"",stderr:n.compile.stderr||"",code:n.compile.code}:void 0}}catch(s){return{success:!1,output:"",stderr:s instanceof Error?s.message:"Unknown error",code:-1,executionTime:Date.now()-i}}}getFileName(e){return{javascript:"main.js",typescript:"main.ts",python:"main.py",python3:"main.py",go:"main.go",rust:"main.rs",java:"Main.java",c:"main.c",cpp:"main.cpp",csharp:"Main.cs",ruby:"main.rb",php:"main.php",bash:"main.sh",shell:"main.sh",perl:"main.pl",lua:"main.lua",swift:"main.swift",kotlin:"Main.kt",scala:"Main.scala",haskell:"main.hs",dart:"main.dart",html:"index.html",css:"style.css",sql:"query.sql",markdown:"readme.md"}[e.toLowerCase()]||`main.${e}`}}const E={javascript:'console.log("Hello, World!");',typescript:'console.log("Hello, World!");',python:'print("Hello, World!")',python3:'print("Hello, World!")',go:'package main\n\nimport "fmt"\n\nfunc main() {\n\tfmt.Println("Hello, World!")\n}',rust:'fn main() {\n\tprintln!("Hello, World!");\n}',java:'public class Main {\n public static void main(String[] args) {\n System.out.println("Hello, World!");\n }\n}',c:'#include <stdio.h>\n\nint main() {\n printf("Hello, World!\\n");\n return 0;\n}',cpp:'#include <iostream>\n\nint main() {\n std::cout << "Hello, World!" << std::endl;\n return 0;\n}',csharp:'using System;\n\nclass Main {\n static void Main() {\n Console.WriteLine("Hello, World!");\n }\n}',ruby:'puts "Hello, World!"',php:'<?php\necho "Hello, World!";\n?>',bash:'echo "Hello, World!"',shell:'echo "Hello, World!"',perl:'print "Hello, World!\\n";',lua:'print("Hello, World!")',r:'print("Hello, World!")',swift:'print("Hello, World!")',kotlin:'fun main() {\n println("Hello, World!")\n}',scala:'object Main extends App {\n println("Hello, World!")\n}',haskell:'main = putStrLn "Hello, World!"',elixir:'IO.puts "Hello, World!"',erlang:'main() -> io:fwrite("Hello, World!~n").',clojure:'(println "Hello, World!")',fsharp:'printfn "Hello, World!"',dart:'void main() {\n print("Hello, World!");\n}',assembly:"section .data\n msg db 'Hello, World!', 0\nsection .text\n global _start\n_start:\n mov rax, 1\n mov rdi, 1\n mov rsi, msg\n mov rdx, 13\n syscall\n mov rax, 60\n xor rdi, rdi\n syscall",html:"<!DOCTYPE html>\n<html>\n<head>\n <title>Hello</title>\n</head>\n<body>\n <h1>Hello, World!</h1>\n</body>\n</html>",css:"body {\n background-color: #f0f0f0;\n font-family: Arial, sans-serif;\n}\n\nh1 {\n color: #333;\n}",sql:"SELECT 'Hello, World!' AS message;",markdown:"# Hello, World!\n\nThis is a sample markdown document."};function v(e){const n=e.toLowerCase();return E[n]||`// ${e}\n// Write your code here`}const x=({pistonUrl:n="/api/piston",language:t="javascript",theme:r="light",themeColor:a="",showLanguageSelector:o=!0,showEditor:i=!0,editable:s=!0,defaultCode:l="",executorLabel:c="运行",onExecuteStart:u,onExecuteEnd:d,onLanguageChange:h,onChange:f})=>{const m="hep-cr-default-language",[b,E]=e.useState([]),[x,k]=e.useState("undefined"==typeof window?t:localStorage.getItem(m)||t),[w,S]=e.useState(r),[A,T]=e.useState(l),[_,N]=e.useState(""),[R,F]=e.useState(""),[O,I]=e.useState(!1),[C,L]=e.useState(null),[j,P]=e.useState("stdout"),[D,$]=e.useState(null),[M,U]=e.useState(!0),[z,H]=e.useState(60),[B,G]=e.useState(!1),[W,Y]=e.useState(!1),X=e.useRef(!1),Z=e.useMemo(()=>new y({pistonUrl:n}),[n]),K=e.useMemo(()=>b.map(e=>({value:`${e.language}:${e.version}`,label:`${e.language.charAt(0).toUpperCase()+e.language.slice(1)} ${e.version}`})),[b]),q=e.useMemo(()=>{if(!a)return{};const e="dark"===r,n=(e,n)=>{const t=parseInt(e.replace("#",""),16),r=Math.round(2.55*n);return"#"+(16777216+65536*Math.min(255,Math.max(0,(t>>16)+r))+256*Math.min(255,Math.max(0,(t>>8&255)+r))+Math.min(255,Math.max(0,(255&t)+r))).toString(16).slice(1)},t=(e=>{const n=parseInt(e.replace("#",""),16);return(.299*(n>>16&255)+.587*(n>>8&255)+.114*(255&n))/255>.5})(a)?"#000":"#fff";return{"--hep-cr-theme-color":a,"--hep-cr-theme-color-hover":n(a,e?20:-20),"--hep-cr-tab-active-color":t}},[a,r]),V=e.useMemo(()=>x.includes(":")?x.split(":")[0]:x,[x]);e.useEffect(()=>{!async function(){U(!0),$(null);try{const e=await Z.getRuntimes();E(e)}catch(e){$(e instanceof Error?e.message:"Failed to load runtimes")}finally{U(!1)}}()},[Z]),e.useEffect(()=>{!A&&b.length>0&&T(l||v(V))},[b,A,l,V]),e.useEffect(()=>{null==f||f(A)},[]),e.useEffect(()=>{!M&&b.length>0&&h&&!X.current&&(X.current=!0,h(V,A))},[M,b.length]);const J=e.useCallback(e=>{const n=e.target.value,t=n.includes(":")?n.split(":")[0]:n;k(n);const r=v(t);T(r),null==h||h(t,r),"undefined"!=typeof window&&localStorage.setItem(m,n)},[h]),Q=e.useCallback(async()=>{if(!O){I(!0),N(""),F(""),L(null),$(null),P("stdout"),null==u||u();try{const e=await Z.execute(V,A);N(e.output),F(e.stderr),L(e.executionTime||null),P(e.stderr?"stderr":"stdout"),null==d||d(e)}catch(e){const n=e instanceof Error?e.message:"Execution failed";$(n),null==d||d({success:!1,output:"",stderr:n,code:-1})}finally{I(!1)}}},[O,x,A,Z,u,d]),ee=e.useCallback(async()=>{await navigator.clipboard.writeText(A),G(!0),setTimeout(()=>{G(!1)},2e3)},[A]),ne=e.useCallback(async()=>{const e="stdout"===j?_:R;await navigator.clipboard.writeText(e),Y(!0),setTimeout(()=>{Y(!1)},2e3)},[j,_,R]),te=e.useCallback(()=>{T(v(V))},[x]),re=e.useRef(!1),ae=e.useCallback(e=>{re.current=!0,document.addEventListener("mousemove",oe),document.addEventListener("mouseup",ie),document.body.style.cursor="col-resize",document.body.style.userSelect="none"},[]),oe=e.useCallback(e=>{if(!re.current)return;const n=document.querySelector(".hep-cr-main");if(!n)return;const t=n.getBoundingClientRect(),r=(e.clientX-t.left)/t.width*100;H(Math.max(20,Math.min(80,r)))},[]),ie=e.useCallback(()=>{re.current=!1,document.removeEventListener("mousemove",oe),document.removeEventListener("mouseup",ie),document.body.style.cursor="",document.body.style.userSelect=""},[oe]);return p.jsxs("div",{className:`hep-cr-runner hep-cr-runner-${w}`,style:q,children:[p.jsxs("div",{className:"hep-cr-header",children:[p.jsx("div",{className:"hep-cr-controls",children:o&&p.jsx(p.Fragment,{children:p.jsxs("select",{value:x,onChange:J,className:"hep-cr-language-select",disabled:O,children:[M&&p.jsx("option",{value:"",children:"加载中..."}),K.map(e=>p.jsx("option",{value:e.value,children:e.label},e.value))]})})}),p.jsxs("div",{className:"hep-cr-actions",children:[p.jsxs("button",{className:"hep-cr-btn hep-cr-btn-run",disabled:O||M,onClick:Q,children:[O?p.jsx("span",{className:"hep-cr-spinner"}):p.jsx("span",{className:"hep-cr-run-icon",children:"▶"}),O?"运行中...":c]}),i&&s&&p.jsx("button",{className:"hep-cr-btn hep-cr-btn-reset",onClick:te,children:"重置"}),p.jsx("button",{className:"hep-cr-btn hep-cr-btn-theme",onClick:()=>S("light"===w?"dark":"light"),title:"light"===w?"Switch to dark mode":"Switch to light mode",children:"light"===w?p.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:p.jsx("path",{d:"M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"})}):p.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[p.jsx("circle",{cx:"12",cy:"12",r:"5"}),p.jsx("line",{x1:"12",y1:"1",x2:"12",y2:"3"}),p.jsx("line",{x1:"12",y1:"21",x2:"12",y2:"23"}),p.jsx("line",{x1:"4.22",y1:"4.22",x2:"5.64",y2:"5.64"}),p.jsx("line",{x1:"18.36",y1:"18.36",x2:"19.78",y2:"19.78"}),p.jsx("line",{x1:"1",y1:"12",x2:"3",y2:"12"}),p.jsx("line",{x1:"21",y1:"12",x2:"23",y2:"12"}),p.jsx("line",{x1:"4.22",y1:"19.78",x2:"5.64",y2:"18.36"}),p.jsx("line",{x1:"18.36",y1:"5.64",x2:"19.78",y2:"4.22"})]})})]})]}),D&&p.jsx("div",{className:"hep-cr-error-message",children:D}),p.jsxs("div",{className:"hep-cr-main",children:[i&&p.jsxs("div",{className:"hep-cr-editor-panel",style:{width:`${z}%`},children:[p.jsxs("div",{className:"hep-cr-panel-header",children:[p.jsx("span",{className:"hep-cr-panel-title",children:"编辑器"}),p.jsxs("div",{className:"hep-cr-output-actions",children:[p.jsx("span",{className:"hep-cr-language-badge",children:V}),p.jsx("button",{className:"hep-cr-btn-icon "+(B?"hep-cr-btn-copied":""),disabled:B,onClick:ee,title:B?"已复制":"复制",children:B?p.jsx("span",{className:"hep-cr-copied-text",children:"已复制"}):p.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[p.jsx("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2"}),p.jsx("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"})]})})]})]}),p.jsx(g,{value:A,language:V,theme:w,disabled:!s||O,onChange:T,onCodeChange:f})]}),i&&p.jsx("div",{className:"hep-cr-resize-handle",onMouseDown:ae,children:p.jsx("div",{className:"hep-cr-resize-line"})}),p.jsxs("div",{className:"hep-cr-output-panel",style:{width:i?100-z+"%":"100%"},children:[p.jsxs("div",{className:"hep-cr-panel-header",children:[p.jsxs("div",{className:"hep-cr-output-tabs",children:[p.jsx("button",{className:"hep-cr-tab "+("stdout"===j?"active":""),onClick:()=>P("stdout"),children:"输出"}),R&&p.jsx("button",{className:"hep-cr-tab hep-cr-tab-error "+("stderr"===j?"active":""),onClick:()=>P("stderr"),children:"错误"})]}),p.jsxs("div",{className:"hep-cr-output-actions",children:[null!==C&&p.jsxs("span",{className:"hep-cr-execution-time",children:[C,"ms"]}),p.jsx("button",{className:"hep-cr-btn-icon "+(W?"hep-cr-btn-copied":""),disabled:W,onClick:ne,title:W?"已复制":"复制",children:W?p.jsx("span",{className:"hep-cr-copied-text",children:"已复制"}):p.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[p.jsx("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2"}),p.jsx("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"})]})})]})]}),p.jsx("div",{className:"hep-cr-output-content",children:p.jsx("pre",{children:"stdout"===j?O?"代码执行中...":_||'点击"运行"执行代码':R})})]})]}),p.jsx("style",{children:"\n .hep-cr-runner {\n display: flex;\n flex-direction: column;\n border: 1px solid #e0e0e0;\n border-radius: 12px;\n overflow: hidden;\n font-family: 'SF Mono', 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;\n }\n .hep-cr-runner-dark { background: #1e1e1e; border-color: #333; }\n .hep-cr-runner-light { background: #ffffff; }\n .hep-cr-header {\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 12px 16px;\n background: #252526;\n border-bottom: 1px solid #333;\n }\n .hep-cr-runner-light .hep-cr-header { background: #f3f3f3; border-color: #e0e0e0; }\n .hep-cr-controls { display: flex; gap: 8px; }\n .hep-cr-language-select {\n padding: 6px 12px;\n border: 1px solid #444;\n border-radius: 6px;\n background: #2d2d2d;\n color: #d4d4d4;\n font-size: 13px;\n cursor: pointer;\n outline: none;\n }\n .hep-cr-runner-light .hep-cr-language-select { background: white; color: #333; border-color: #ccc; }\n .hep-cr-language-select:focus { border-color: #4fc3f7; }\n .hep-cr-actions { display: flex; gap: 8px; }\n .hep-cr-btn {\n padding: 6px 16px;\n border: none;\n border-radius: 6px;\n font-size: 13px;\n font-weight: 500;\n cursor: pointer;\n display: flex;\n align-items: center;\n gap: 6px;\n transition: all 0.2s;\n }\n .hep-cr-btn:disabled { opacity: 0.5; cursor: not-allowed; }\n .hep-cr-btn-run {\n background: var(--hep-cr-theme-color, #4caf50);\n color: var(--hep-cr-tab-active-color, #fff);\n font-weight: 600;\n }\n .hep-cr-btn-run:hover:not(:disabled) { background: var(--hep-cr-theme-color-hover, #43a047); }\n .hep-cr-btn-reset { background: #3d3d3d; color: #aaa; }\n .hep-cr-runner-light .hep-cr-btn-reset { background: #e0e0e0; color: #666; }\n .hep-cr-btn-theme { background: transparent; color: #fdd835; padding: 6px 10px; font-size: 14px; line-height: 1; height: auto; min-height: 28px; display: flex; align-items: center; justify-content: center; }\n .hep-cr-btn-theme svg { display: block; width: 18px; height: 18px; }\n .hep-cr-runner-light .hep-cr-btn-theme { color: #f57c00; }\n .hep-cr-btn-theme:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }\n .hep-cr-runner-light .hep-cr-btn-theme:hover { background: rgba(0, 0, 0, 0.05); }\n .hep-cr-error-message {\n padding: 10px 16px;\n background: #c62828;\n color: white;\n font-size: 13px;\n }\n .hep-cr-main { display: flex; height: 400px; overflow: hidden; }\n .hep-cr-editor-panel {\n display: flex;\n flex-direction: column;\n min-width: 20%;\n max-width: 80%;\n }\n .hep-cr-panel-header {\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 8px 12px;\n background: #2d2d2d;\n border-bottom: 1px solid #333;\n }\n .hep-cr-runner-light .hep-cr-panel-header { background: #f0f0f0; border-color: #e0e0e0; }\n .hep-cr-panel-title {\n font-size: 12px;\n font-weight: 600;\n color: #888;\n text-transform: uppercase;\n letter-spacing: 0.5px;\n }\n .hep-cr-language-badge {\n font-size: 11px;\n padding: 2px 8px;\n background: var(--hep-cr-theme-color, #4fc3f7);\n color: var(--hep-cr-tab-active-color, #000);\n border-radius: 10px;\n font-weight: 600;\n }\n .hep-cr-editor {\n flex: 1;\n width: 100%;\n background: #1e1e1e;\n position: relative;\n overflow: hidden;\n }\n .hep-cr-editor .hep-cr-highlight,\n .hep-cr-editor .hep-cr-input {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n padding: 12px 16px;\n margin: 0;\n border: none;\n font-family: 'SF Mono', 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;\n font-size: 14px;\n line-height: 1.6;\n white-space: pre;\n overflow: auto;\n }\n .hep-cr-editor .hep-cr-highlight {\n background: transparent !important;\n pointer-events: none;\n z-index: 1;\n }\n .hep-cr-editor .hep-cr-highlight code {\n display: block;\n font-family: inherit;\n }\n .hep-cr-editor .hep-cr-input {\n background: transparent !important;\n color: transparent !important;\n caret-color: #d4d4d4;\n resize: none;\n outline: none;\n z-index: 2;\n }\n .hep-cr-editor .hep-cr-input:disabled { opacity: 0.7; }\n .hep-cr-runner-light .hep-cr-editor .hep-cr-highlight code {\n color: #333333;\n }\n .hep-cr-runner-light .hep-cr-editor .hep-cr-input {\n caret-color: #333333;\n }\n .hep-cr-resize-handle {\n width: 8px;\n background: #2d2d2d;\n cursor: col-resize;\n display: flex;\n align-items: center;\n justify-content: center;\n border-left: 1px solid #3d3d3d;\n border-right: 1px solid #3d3d3d;\n }\n .hep-cr-resize-handle:hover { background: var(--hep-cr-theme-color, #4fc3f7); }\n .hep-cr-resize-line { width: 3px; height: 40px; background: #555; border-radius: 2px; transition: background 0.2s; }\n .hep-cr-resize-handle:hover .hep-cr-resize-line { background: #fff; }\n .hep-cr-runner-light .hep-cr-resize-handle { background: #e0e0e0; border-color: #ccc; }\n .hep-cr-runner-light .hep-cr-resize-line { background: #bbb; }\n .hep-cr-runner-light .hep-cr-resize-handle:hover { background: var(--hep-cr-theme-color, #4fc3f7); }\n .hep-cr-runner-light .hep-cr-resize-handle:hover .hep-cr-resize-line { background: #fff; }\n .hep-cr-output-panel {\n display: flex;\n flex-direction: column;\n min-width: 20%;\n border-left: 1px solid #333;\n }\n .hep-cr-runner-light .hep-cr-output-panel { border-color: #e0e0e0; }\n .hep-cr-output-tabs { display: flex; gap: 4px; }\n .hep-cr-tab {\n padding: 4px 12px;\n border: none;\n background: transparent;\n cursor: pointer;\n font-size: 12px;\n border-radius: 4px;\n color: #888;\n transition: all 0.2s;\n }\n .hep-cr-tab:hover { color: #d4d4d4; background: #3d3d3d; }\n .hep-cr-runner-light .hep-cr-tab:hover { color: #333; background: #e0e0e0; }\n .hep-cr-tab.active { background: var(--hep-cr-theme-color, #4fc3f7); color: var(--hep-cr-tab-active-color, #000); font-weight: 600; }\n .hep-cr-tab-error.active { background: #f44336; color: #fff; }\n .hep-cr-output-actions { display: flex; align-items: center; gap: 12px; }\n .hep-cr-execution-time { font-size: 12px; color: var(--hep-cr-theme-color, #4caf50); font-weight: 500; }\n .hep-cr-btn-icon {\n background: transparent;\n border: none;\n cursor: pointer;\n padding: 4px;\n border-radius: 4px;\n color: #888;\n display: flex;\n align-items: center;\n justify-content: center;\n transition: all 0.2s;\n }\n .hep-cr-btn-icon:hover { color: #fff; background: #3d3d3d; }\n .hep-cr-runner-light .hep-cr-btn-icon:hover { color: #333; background: #e0e0e0; }\n .hep-cr-btn-icon:disabled { cursor: not-allowed; opacity: 0.7; }\n .hep-cr-btn-copied { color: #4caf50 !important; }\n .hep-cr-copied-text { font-size: 12px; color: #4caf50; }\n .hep-cr-output-content {\n flex: 1;\n padding: 12px 16px;\n overflow: auto;\n background: #1e1e1e;\n }\n .hep-cr-runner-light .hep-cr-output-content { background: #fff; }\n .hep-cr-output-content pre {\n margin: 0;\n font-size: 13px;\n line-height: 1.6;\n white-space: pre-wrap;\n word-break: break-all;\n color: #d4d4d4;\n }\n .hep-cr-runner-light .hep-cr-output-content pre { color: #333; }\n .hep-cr-output-content .stderr { color: #f44336; }\n .hep-cr-spinner {\n width: 12px;\n height: 12px;\n border: 2px solid rgba(255,255,255,0.3);\n border-top-color: white;\n border-radius: 50%;\n animation: spin 0.8s linear infinite;\n }\n @keyframes spin { to { transform: rotate(360deg); } }\n "})]})},k=e.forwardRef(({open:n,defaultOpen:t=!1,title:r="代码执行器",width:a=800,onClose:o,footer:i,theme:s="light",...l},c)=>{const[u,d]=e.useState(t),h=void 0!==n,g=h?n:u;e.useEffect(()=>{h&&n!==u&&d(n)},[n,h]);const f=e.useCallback(()=>{h||d(!1),null==o||o()},[h,o]);e.useImperativeHandle(c,()=>({close:f}));const m="number"==typeof a?`${a}px`:a;return g?p.jsxs("div",{className:"hep-cr-dialog-overlay",onClick:e=>{e.target===e.currentTarget&&f()},children:[p.jsxs("div",{className:"hep-cr-dialog-container",style:{width:m},children:[p.jsxs("div",{className:"hep-cr-dialog-header",children:[p.jsx("h3",{className:"hep-cr-dialog-title",children:r}),p.jsx("button",{className:"hep-cr-dialog-close",onClick:f,children:p.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[p.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),p.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})]}),p.jsx("div",{className:"hep-cr-dialog-body",children:p.jsx(x,{theme:s,...l})}),i&&p.jsx("div",{className:"hep-cr-dialog-footer",children:i})]}),p.jsx("style",{children:"\n .hep-cr-dialog-overlay {\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background: rgba(0, 0, 0, 0.5);\n display: flex;\n align-items: center;\n justify-content: center;\n z-index: 9999;\n animation: hep-cr-dialog-fade-in 0.2s ease;\n }\n\n .hep-cr-dialog-container {\n background: #fff;\n border-radius: 12px;\n box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);\n max-width: 90vw;\n max-height: 90vh;\n display: flex;\n flex-direction: column;\n overflow: hidden;\n animation: hep-cr-dialog-scale-in 0.2s ease;\n }\n\n .hep-cr-dialog-header {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 16px 20px;\n border-bottom: 1px solid #e0e0e0;\n }\n\n .hep-cr-dialog-title {\n margin: 0;\n font-size: 16px;\n font-weight: 600;\n color: #333;\n }\n\n .hep-cr-dialog-close {\n background: none;\n border: none;\n cursor: pointer;\n padding: 4px;\n border-radius: 4px;\n color: #666;\n display: flex;\n align-items: center;\n justify-content: center;\n transition: all 0.2s;\n }\n\n .hep-cr-dialog-close:hover {\n background: #f0f0f0;\n color: #333;\n }\n\n .hep-cr-dialog-body {\n flex: 1;\n overflow: auto;\n padding: 0;\n }\n\n .hep-cr-dialog-body .hep-cr-runner {\n border: none;\n border-radius: 0;\n }\n\n .hep-cr-dialog-footer {\n padding: 12px 20px;\n border-top: 1px solid #e0e0e0;\n display: flex;\n justify-content: flex-end;\n gap: 12px;\n }\n\n @keyframes hep-cr-dialog-fade-in {\n from { opacity: 0; }\n to { opacity: 1; }\n }\n\n @keyframes hep-cr-dialog-scale-in {\n from { transform: scale(0.95); }\n to { transform: scale(1); }\n }\n "})]}):null});k.displayName="CodeRunnerDialog",exports.CodeRunner=x,exports.CodeRunnerDialog=k,exports.default=x;
|