vendor: 4,321 bytes, line 1
1import{d as pn,u as hn,U as fn,a as ce,r as Xe,c as qe,o as U,K as Ee,l as n,p as _,m as k,j as K,x as he,q,k as j,n as bn,F as fe,s as Je,y as bt,E as we,J as _n,W as mn}from"./DZ7mik94.js";import{_ as xn}from"./CvFJ8Mle.js";import{g as En}from"./Lmt8mlL8.js";import{a as _t,e as yn}from"./C_HCVPZZ.js";import{_ as Ve}from"./BDcM2FMb.js";import{g as vn}from"./CqkleIqs.js";var Qe,mt;function wn(){if(mt)return Qe;mt=1;function g(e){return e instanceof Map?e.clear=e.delete=e.set=function(){throw new Error("map is read-only")}:e instanceof Set&&(e.add=e.clear=e.delete=function(){throw new Error("set is read-only")}),Object.freeze(e),Object.getOwnPropertyNames(e).forEach(t=>{const i=e[t],h=typeof i;(h==="object"||h==="function")&&!Object.isFrozen(i)&&g(i)}),e}class d{constructor(t){t.data===void 0&&(t.data={}),this.data=t.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function B(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function x(e,...t){const i=Object.create(null);for(const h in e)i[h]=e[h];return t.forEach(function(h){for(const O in h)i[O]=h[O]}),i}const W="</span>",J=e=>!!e.scope,N=(e,{prefix:t})=>{if(e.startsWith("language:"))return e.replace("language:","language-");if(e.includes(".")){const i=e.split(".");return[`${t}${i.shift()}`,...i.map((h,O)=>`${h}${"_".repeat(O+1)}`)].join(" ")}return`${t}${e}`};class M{constructor(t,i){this.buffer="",this.classPrefix=i.classPrefix,t.walk(this)}addText(t){this.buffer+=B(t)}openNode(t){if(!J(t))return;const i=N(t.scope,{prefix:this.classPrefix});this.span(i)}closeNode(t){J(t)&&(this.buffer+=W)}value(){return this.buffer}span(t){this.buffer+=`<span class="${t}">`}}const C=(e={})=>{const t={children:[]};return Object.assign(t,e),t};class D{constructor(){this.rootNode=C(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(t){this.top.children.push(t)}openNode(t){const i=C({scope:t});this.add(i),this.stack.push(i)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(t){return this.constructor._walk(t,this.rootNode)}static _walk(t,i){return typeof i=="string"?t.addText(i):i.children&&(t.openNode(i),i.children.forEach(h=>this._walk(t,h)),t.closeNode(i)),t}static _collapse(t){typeof t!="string"&&t.children&&(t.children.every(i=>typeof i=="string")?t.children=[t.children.join("")]:t.children.forEach(i=>{D._collapse(i)}))}}class Z extends D{constructor(t){super(),this.options=t}addText(t){t!==""&&this.add(t)}startScope(t){this.openNode(t)}endScope(){this.closeNode()}__addSublanguage(t,i){const h=t.root;i&&(h.scope=`language:${i}`),this.add(h)}toHTML(){return new M(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function H(e){return e?typeof e=="string"?e:e.source:null}function I(e){return b("(?=",e,")")}function V(e){return b("(?:",e,")*")}function y(e){return b("(?:",e,")?")}function b(...e){return e.map(i=>H(i)).join("")}function A(e){const t=e[e.length-1];return typeof t=="object"&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function X(...e){return"("+(A(e).capture?"":"?:")+e.map(h=>H(h)).join("|")+")"}function ee(e){return new RegExp(e.toString()+"|").exec("").length-1}function r(e,t){const i=e&&e.exec(t);return i&&i.index===0}const R=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function te(e,{joinWith:t}){let i=0;return e.map(h=>{i+=1;const O=i;let T=H(h),c="";for(;T.length>0;){const a=R.exec(T);if(!a){c+=T;break}c+=T.substring(0,a.index),T=T.substring(a.index+a[0].length),a[0][0]==="\\"&&a[1]?c+="\\"+String(Number(a[1])+O):(c+=a[0],a[0]==="("&&i++)}return c}).map(h=>`(${h})`).join(t)}const le=/\b\B/,Se="[a-zA-Z]\\w*",be="[a-zA-Z_]\\w*",Ae="\\b\\d+(\\.\\d+)?",ke="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",Ne="\\b(0b[01]+)",$e="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",Ue=(e={})=>{const t=/^#![ ]*\//;return e.binary&&(e.begin=b(t,/.*\b/,e.binary,/\b.*/)),x({scope:"meta",begin:t,end:/$/,relevance:0,"on:begin":(i,h)=>{i.index!==0&&h.ignoreMatch()}},e)},de={begin:"\\\\[\\s\\S]",relevance:0}
vendor: 13,952 bytes, lines 1-3
1,He={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[de]},Re={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[de]},ze={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},z=function(e,t,i={}){const h=x({scope:"comment",begin:e,end:t,contains:[]},i);h.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const O=X("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return h.contains.push({begin:b(/[ ]+/,"(",O,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),h},oe=z("//","$"),ue=z("/\\*","\\*/"),_e=z("#","$"),ye={scope:"number",begin:Ae,relevance:0},Me={scope:"number",begin:ke,relevance:0},wt={scope:"number",begin:Ne,relevance:0},St={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[de,{begin:/\[/,end:/\]/,relevance:0,contains:[de]}]},At={scope:"title",begin:Se,relevance:0},kt={scope:"title",begin:be,relevance:0},Nt={begin:"\\.\\s*"+be,relevance:0};var Oe=Object.freeze({__proto__:null,APOS_STRING_MODE:He,BACKSLASH_ESCAPE:de,BINARY_NUMBER_MODE:wt,BINARY_NUMBER_RE:Ne,COMMENT:z,C_BLOCK_COMMENT_MODE:ue,C_LINE_COMMENT_MODE:oe,C_NUMBER_MODE:Me,C_NUMBER_RE:ke,END_SAME_AS_BEGIN:function(e){return Object.assign(e,{"on:begin":(t,i)=>{i.data._beginMatch=t[1]},"on:end":(t,i)=>{i.data._beginMatch!==t[1]&&i.ignoreMatch()}})},HASH_COMMENT_MODE:_e,IDENT_RE:Se,MATCH_NOTHING_RE:le,METHOD_GUARD:Nt,NUMBER_MODE:ye,NUMBER_RE:Ae,PHRASAL_WORDS_MODE:ze,QUOTE_STRING_MODE:Re,REGEXP_MODE:St,RE_STARTERS_RE:$e,SHEBANG:Ue,TITLE_MODE:At,UNDERSCORE_IDENT_RE:be,UNDERSCORE_TITLE_MODE:kt});function Rt(e,t){e.input[e.index-1]==="."&&t.ignoreMatch()}function Mt(e,t){e.className!==void 0&&(e.scope=e.className,delete e.className)}function Ot(e,t){t&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",e.__beforeBegin=Rt,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,e.relevance===void 0&&(e.relevance=0))}function Tt(e,t){Array.isArray(e.illegal)&&(e.illegal=X(...e.illegal))}function Ct(e,t){if(e.match){if(e.begin||e.end)throw new Error("begin & end are not supported with match");e.begin=e.match,delete e.match}}function It(e,t){e.relevance===void 0&&(e.relevance=1)}const Lt=(e,t)=>{if(!e.beforeMatch)return;if(e.starts)throw new Error("beforeMatch cannot be used with starts");const i=Object.assign({},e);Object.keys(e).forEach(h=>{delete e[h]}),e.keywords=i.keywords,e.begin=b(i.beforeMatch,I(i.begin)),e.starts={relevance:0,contains:[Object.assign(i,{endsParent:!0})]},e.relevance=0,delete i.beforeMatch},Bt=["of","and","for","in","not","or","if","then","parent","list","value"],Dt="keyword";function et(e,t,i=Dt){const h=Object.create(null);return typeof e=="string"?O(i,e.split(" ")):Array.isArray(e)?O(i,e):Object.keys(e).forEach(function(T){Object.assign(h,et(e[T],t,T))}),h;function O(T,c){t&&(c=c.map(a=>a.toLowerCase())),c.forEach(function(a){const p=a.split("|");h[p[0]]=[T,Pt(p[0],p[1])]})}}function Pt(e,t){return t?Number(t):$t(e)?0:1}function $t(e){return Bt.includes(e.toLowerCase())}const tt={},ge=e=>{console.error(e)},nt=(e,...t)=>{console.log(`WARN: ${e}`,...t)},me=(e,t)=>{tt[`${e}/${t}`]||(console.log(`Deprecated as of ${e}. ${t}`),tt[`${e}/${t}`]=!0)},Te=new Error;function st(e,t,{key:i}){let h=0;const O=e[i],T={},c={};for(let a=1;a<=t.length;a++)c[a+h]=O[a],T[a+h]=!0,h+=ee(t[a-1]);e[i]=c,e[i]._emit=T,e[i]._multi=!0}function Ut(e){if(Array.isArray(e.begin)){if(e.skip||e.excludeBegin||e.returnBegin)throw ge("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),Te;if(typeof e.beginScope!="object"||e.beginScope===null)throw ge("beginScope must be object"),Te;st(e,e.begin,{key:"beginScope"}),e.begin=te(e.begin,{joinWith:""})}}function Ht(e){if(Array.isArray(e.end)){if(e.skip||e.excludeEnd||e.returnEnd)throw ge("skip, excludeEnd, returnEnd not compatible with endScope: {}"),Te;if(typeof e.endScope!="object"||e.endScope===null)throw ge("endScope must be object"),Te;st(e,e.end,{key:"endScope"}),e.end=te(e.end,{joinWith:""})}}function zt(e){e.scope&&typeof e.scope=="object"&&e.scope!==null&&(e.beginScope=e.scope,delete e.scope)}function Gt(e){zt(e),typeof e.beginScope=="string"&&(e.beginScope={_wrap:e.beginScope}),typeof e.endScope=="string"&&(e.endScope={_wrap:e.endScope}),Ut(e),Ht(e)}function Ft(e){function t(c,a){return new RegExp(H(c),"m"+(e.case_insensitive?"i":"")+(e.unicodeRegex?"u":"")+(a?"g":""))}class i{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(a,p){p.position=this.position++,this.matchIndexes[this.matchAt]=p,this.regexes.push([p,a]),this.matchAt+=ee(a)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const a=this.regexes.map(p=>p[1]);this.matcherRe=t(te(a,{joinWith:"|"}),!0),this.lastIndex=0}exec(a){this.matcherRe.lastIndex=this.lastIndex;const p=this.matcherRe.exec(a);if(!p)return null;const $=p.findIndex((ve,Fe)=>Fe>0&&ve!==void 0),L=this.matchIndexes[$];return p.splice(0,$),Object.assign(p,L)}}class h{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(a){if(this.multiRegexes[a])return this.multiRegexes[a];const p=new i;return this.rules.slice(a).forEach(([$,L])=>p.addRule($,L)),p.compile(),this.multiRegexes[a]=p,p}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(a,p){this.rules.push([a,p]),p.type==="begin"&&this.count++}exec(a){const p=this.getMatcher(this.regexIndex);p.lastIndex=this.lastIndex;let $=p.exec(a);if(this.resumingScanAtSamePosition()&&!($&&$.index===this.lastIndex)){const L=this.getMatcher(0);L.lastIndex=this.lastIndex+1,$=L.exec(a)}return $&&(this.regexIndex+=$.position+1,this.regexIndex===this.count&&this.considerAll()),$}}function O(c){const a=new h;return c.contains.forEach(p=>a.addRule(p.begin,{rule:p,type:"begin"})),c.terminatorEnd&&a.addRule(c.terminatorEnd,{type:"end"}),c.illegal&&a.addRule(c.illegal,{type:"illegal"}),a}function T(c,a){const p=c;if(c.isCompiled)return p;[Mt,Ct,Gt,Lt].forEach(L=>L(c,a)),e.compilerExtensions.forEach(L=>L(c,a)),c.__beforeBegin=null,[Ot,Tt,It].forEach(L=>L(c,a)),c.isCompiled=!0;let $=null;return typeof c.keywords=="object"&&c.keywords.$pattern&&(c.keywords=Object.assign({},c.keywords),$=c.keywords.$pattern,delete c.keywords.$pattern),$=$||/\w+/,c.keywords&&(c.keywords=et(c.keywords,e.case_insensitive)),p.keywordPatternRe=t($,!0),a&&(c.begin||(c.begin=/\B|\b/),p.beginRe=t(p.begin),!c.end&&!c.endsWithParent&&(c.end=/\B|\b/),c.end&&(p.endRe=t(p.end)),p.terminatorEnd=H(p.end)||"",c.endsWithParent&&a.terminatorEnd&&(p.terminatorEnd+=(c.end?"|":"")+a.terminatorEnd)),c.illegal&&(p.illegalRe=t(c.illegal)),c.contains||(c.contains=[]),c.contains=[].concat(...c.contains.map(function(L){return Kt(L==="self"?c:L)})),c.contains.forEach(function(L){T(L,p)}),c.starts&&T(c.starts,a),p.matcher=O(p),p}if(e.compilerExtensions||(e.compilerExtensions=[]),e.contains&&e.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return e.classNameAliases=x(e.classNameAliases||{}),T(e)}function it(e){return e?e.endsWithParent||it(e.starts):!1}function Kt(e){return e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map(function(t){return x(e,{variants:null},t)})),e.cachedVariants?e.cachedVariants:it(e)?x(e,{starts:e.starts?x(e.starts):null}):Object.isFrozen(e)?x(e):e}var jt="11.11.1";class Wt extends Error{constructor(t,i){super(t),this.name="HTMLInjectionError",this.html=i}}const Ge=B,ot=x,rt=Symbol("nomatch"),Zt=7,at=function(e){const t=Object.create(null),i=Object.create(null),h=[];let O=!0;const T="Could not find the language '{}', did you forget to load/include a language module?",c={disableAutodetect:!0,name:"Plain text",contains:[]};let a={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:Z};function p(s){return a.noHighlightRe.test(s)}function $(s){let u=s.className+" ";u+=s.parentNode?s.parentNode.className:"";const E=a.languageDetectRe.exec(u);if(E){const w=re(E[1]);return w||(nt(T.replace("{}",E[1])),nt("Falling back to no-highlight mode for this block.",s)),w?E[1]:"no-highlight"}return u.split(/\s+/).find(w=>p(w)||re(w))}function L(s,u,E){let w="",P="";typeof u=="object"?(w=s,E=u.ignoreIllegals,P=u.language):(me("10.7.0","highlight(lang, code, ...args) has been deprecated."),me("10.7.0",`Please use highlight(code, options) instead. 2https://github.com/highlightjs/highlight.js/issues/2277`),P=s,w=u),E===void 0&&(E=!0);const Q={code:w,language:P};Ie("before:highlight",Q);const ae=Q.result?Q.result:ve(Q.language,Q.code,E);return ae.code=Q.code,Ie("after:highlight",ae),ae}function ve(s,u,E,w){const P=Object.create(null);function Q(o,l){return o.keywords[l]}function ae(){if(!f.keywords){G.addText(S);return}let o=0;f.keywordPatternRe.lastIndex=0;let l=f.keywordPatternRe.exec(S),m="";for(;l;){m+=S.substring(o,l.index);const v=se.case_insensitive?l[0].toLowerCase():l[0],F=Q(f,v);if(F){const[ie,un]=F;if(G.addText(m),m="",P[v]=(P[v]||0)+1,P[v]<=Zt&&(De+=un),ie.startsWith("_"))m+=l[0];else{const gn=se.classNameAliases[ie]||ie;ne(l[0],gn)}}else m+=l[0];o=f.keywordPatternRe.lastIndex,l=f.keywordPatternRe.exec(S)}m+=S.substring(o),G.addText(m)}function Le(){if(S==="")return;let o=null;if(typeof f.subLanguage=="string"){if(!t[f.subLanguage]){G.addText(S);return}o=ve(f.subLanguage,S,!0,ft[f.subLanguage]),ft[f.subLanguage]=o._top}else o=Ke(S,f.subLanguage.length?f.subLanguage:null);f.relevance>0&&(De+=o.relevance),G.__addSublanguage(o._emitter,o.language)}function Y(){f.subLanguage!=null?Le():ae(),S=""}function ne(o,l){o!==""&&(G.startScope(l),G.addText(o),G.endScope())}function ut(o,l){let m=1;const v=l.length-1;for(;m<=v;){if(!o._emit[m]){m++;continue}const F=se.classNameAliases[o[m]]||o[m],ie=l[m];F?ne(ie,F):(S=ie,ae(),S=""),m++}}function gt(o,l){return o.scope&&typeof o.scope=="string"&&G.openNode(se.classNameAliases[o.scope]||o.scope),o.beginScope&&(o.beginScope._wrap?(ne(S,se.classNameAliases[o.beginScope._wrap]||o.beginScope._wrap),S=""):o.beginScope._multi&&(ut(o.beginScope,l),S="")),f=Object.create(o,{parent:{value:f}}),f}function pt(o,l,m){let v=r(o.endRe,m);if(v){if(o["on:end"]){const F=new d(o);o["on:end"](l,F),F.isMatchIgnored&&(v=!1)}if(v){for(;o.endsParent&&o.parent;)o=o.parent;return o}}if(o.endsWithParent)return pt(o.parent,l,m)}function rn(o){return f.matcher.regexIndex===0?(S+=o[0],1):(Ye=!0,0)}function an(o){const l=o[0],m=o.rule,v=new d(m),F=[m.__beforeBegin,m["on:begin"]];for(const ie of F)if(ie&&(ie(o,v),v.isMatchIgnored))return rn(l);return m.skip?S+=l:(m.excludeBegin&&(S+=l),Y(),!m.returnBegin&&!m.excludeBegin&&(S=l)),gt(m,o),m.returnBegin?0:l.length}function cn(o){const l=o[0],m=u.substring(o.index),v=pt(f,o,m);if(!v)return rt;const F=f;f.endScope&&f.endScope._wrap?(Y(),ne(l,f.endScope._wrap)):f.endScope&&f.endScope._multi?(Y(),ut(f.endScope,o)):F.skip?S+=l:(F.returnEnd||F.excludeEnd||(S+=l),Y(),F.excludeEnd&&(S=l));do f.scope&&G.closeNode(),!f.skip&&!f.subLanguage&&(De+=f.relevance),f=f.parent;while(f!==v.parent);return v.starts&>(v.starts,o),F.returnEnd?0:l.length}function ln(){const o=[];for(let l=f;l!==se;l=l.parent)l.scope&&o.unshift(l.scope);o.forEach(l=>G.openNode(l))}let Be={};function ht(o,l){const m=l&&l[0];if(S+=o,m==null)return Y(),0;if(Be.type==="begin"&&l.type==="end"&&Be.index===l.index&&m===""){if(S+=u.slice(l.index,l.index+1),!O){const v=new Error(`0 width match regex (${s})`);throw v.languageName=s,v.badRule=Be.rule,v}return 1}if(Be=l,l.type==="begin")return an(l);if(l.type==="illegal"&&!E){const v=new Error('Illegal lexeme "'+m+'" for mode "'+(f.scope||"<unnamed>")+'"');throw v.mode=f,v}else if(l.type==="end"){const v=cn(l);if(v!==rt)return v}if(l.type==="illegal"&&m==="")return S+=` 3`,1;if(Ze>1e5&&Ze>l.index*3)throw new Error("potential infinite loop, way more iterations than matches");return S+=m,m.length}const se=re(s);if(!se)throw ge(T.replace("{}",s)),new Error('Unknown language: "'+s+'"');const dn=Ft(se);let We="",f=w||dn;const ft={},G=new a.__emitter(a);ln();let S="",De=0,pe=0,Ze=0,Ye=!1;try{if(se.__emitTokens)se.__emitTokens(u,G);else{for(f.matcher.considerAll();;){Ze++,Ye?Ye=!1:f.matcher.considerAll(),f.matcher.lastIndex=pe;const o=f.matcher.exec(u);if(!o)break;const l=u.substring(pe,o.index),m=ht(l,o);pe=o.index+m}ht(u.substring(pe))}return G.finalize(),We=G.toHTML(),{language:s,value:We,relevance:De,illegal:!1,_emitter:G,_top:f}}catch(o){if(o.message&&o.message.includes("Illegal"))return{language:s,value:Ge(u),illegal:!0,relevance:0,_illegalBy:{message:o.message,index:pe,context:u.slice(pe-100,pe+100),mode:o.mode,resultSoFar:We},_emitter:G};if(O)return{language:s,value:Ge(u),illegal:!1,relevance:0,errorRaised:o,_emitter:G,_top:f};throw o}}function Fe(s){const u={value:Ge(s),illegal:!1,relevance:0,_top:c,_emitter:new a.__emitter(a)};return u._emitter.addText(s),u}function Ke(s,u){u=u||a.languages||Object.keys(t);const E=Fe(s),w=u.filter(re).filter(dt).map(Y=>ve(Y,s,!1));w.unshift(E);const P=w.sort((Y,ne)=>{if(Y.relevance!==ne.relevance)return ne.relevance-Y.relevance;if(Y.language&&ne.language){if(re(Y.language).supersetOf===ne.language)return 1;if(re(ne.language).supersetOf===Y.language)return-1}return 0}),[Q,ae]=P,Le=Q;return Le.secondBest=ae,Le}function Yt(s,u,E){const w=u&&i[u]||E;s.classList.add("hljs"),s.classList.add(`language-${w}`)}function je(s){let u=null;const E=$(s);if(p(E))return;if(Ie("before:highlightElement",{el:s,language:E}),s.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",s);return}if(s.children.length>
vendor: 10,678 bytes, line 3
30&&(a.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(s)),a.throwUnescapedHTML))throw new Wt("One of your code blocks includes unescaped HTML.",s.innerHTML);u=s;const w=u.textContent,P=E?L(w,{language:E,ignoreIllegals:!0}):Ke(w);s.innerHTML=P.value,s.dataset.highlighted="yes",Yt(s,E,P.language),s.result={language:P.language,re:P.relevance,relevance:P.relevance},P.secondBest&&(s.secondBest={language:P.secondBest.language,relevance:P.secondBest.relevance}),Ie("after:highlightElement",{el:s,result:P,text:w})}function Xt(s){a=ot(a,s)}const qt=()=>{Ce(),me("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function Jt(){Ce(),me("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let ct=!1;function Ce(){function s(){Ce()}if(document.readyState==="loading"){ct||window.addEventListener("DOMContentLoaded",s,!1),ct=!0;return}document.querySelectorAll(a.cssSelector).forEach(je)}function Vt(s,u){let E=null;try{E=u(e)}catch(w){if(ge("Language definition for '{}' could not be registered.".replace("{}",s)),O)ge(w);else throw w;E=c}E.name||(E.name=s),t[s]=E,E.rawDefinition=u.bind(null,e),E.aliases&<(E.aliases,{languageName:s})}function Qt(s){delete t[s];for(const u of Object.keys(i))i[u]===s&&delete i[u]}function en(){return Object.keys(t)}function re(s){return s=(s||"").toLowerCase(),t[s]||t[i[s]]}function lt(s,{languageName:u}){typeof s=="string"&&(s=[s]),s.forEach(E=>{i[E.toLowerCase()]=u})}function dt(s){const u=re(s);return u&&!u.disableAutodetect}function tn(s){s["before:highlightBlock"]&&!s["before:highlightElement"]&&(s["before:highlightElement"]=u=>{s["before:highlightBlock"](Object.assign({block:u.el},u))}),s["after:highlightBlock"]&&!s["after:highlightElement"]&&(s["after:highlightElement"]=u=>{s["after:highlightBlock"](Object.assign({block:u.el},u))})}function nn(s){tn(s),h.push(s)}function sn(s){const u=h.indexOf(s);u!==-1&&h.splice(u,1)}function Ie(s,u){const E=s;h.forEach(function(w){w[E]&&w[E](u)})}function on(s){return me("10.7.0","highlightBlock will be removed entirely in v12.0"),me("10.7.0","Please use highlightElement now."),je(s)}Object.assign(e,{highlight:L,highlightAuto:Ke,highlightAll:Ce,highlightElement:je,highlightBlock:on,configure:Xt,initHighlighting:qt,initHighlightingOnLoad:Jt,registerLanguage:Vt,unregisterLanguage:Qt,listLanguages:en,getLanguage:re,registerAliases:lt,autoDetection:dt,inherit:ot,addPlugin:nn,removePlugin:sn}),e.debugMode=function(){O=!1},e.safeMode=function(){O=!0},e.versionString=jt,e.regex={concat:b,lookahead:I,either:X,optional:y,anyNumberOfTimes:V};for(const s in Oe)typeof Oe[s]=="object"&&g(Oe[s]);return Object.assign(e,Oe),e},xe=at({});return xe.newInstance=()=>at({}),Qe=xe,xe.HighlightJS=xe,xe.default=xe,Qe}var Sn=wn();const Pe=vn(Sn);function An(g){const d=g.regex,B={},x={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[B]}]};Object.assign(B,{className:"variable",variants:[{begin:d.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},x]});const W={className:"subst",begin:/\$\(/,end:/\)/,contains:[g.BACKSLASH_ESCAPE]},J=g.inherit(g.COMMENT(),{match:[/(^|\s)/,/#.*$/],scope:{2:"comment"}}),N={begin:/<<-?\s*(?=\w+)/,starts:{contains:[g.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},M={className:"string",begin:/"/,end:/"/,contains:[g.BACKSLASH_ESCAPE,B,W]};W.contains.push(M);const C={match:/\\"/},D={className:"string",begin:/'/,end:/'/},Z={match:/\\'/},H={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},g.NUMBER_MODE,B]},I=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],V=g.SHEBANG({binary:`(${I.join("|")})`,relevance:10}),y={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[g.inherit(g.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0},b=["if","then","else","elif","fi","time","for","while","until","in","do","done","case","esac","coproc","function","select"],A=["true","false"],X={match:/(\/[a-z._-]+)+/},ee=["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset"],r=["alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","sudo","type","typeset","ulimit","unalias"],R=["autoload","bg","bindkey","bye","cap","chdir","clone","comparguments","compcall","compctl","compdescribe","compfiles","compgroups","compquote","comptags","comptry","compvalues","dirs","disable","disown","echotc","echoti","emulate","fc","fg","float","functions","getcap","getln","history","integer","jobs","kill","limit","log","noglob","popd","print","pushd","pushln","rehash","sched","setcap","setopt","stat","suspend","ttyctl","unfunction","unhash","unlimit","unsetopt","vared","wait","whence","where","which","zcompile","zformat","zftp","zle","zmodload","zparseopts","zprof","zpty","zregexparse","zsocket","zstyle","ztcp"],te=["chcon","chgrp","chown","chmod","cp","dd","df","dir","dircolors","ln","ls","mkdir","mkfifo","mknod","mktemp","mv","realpath","rm","rmdir","shred","sync","touch","truncate","vdir","b2sum","base32","base64","cat","cksum","comm","csplit","cut","expand","fmt","fold","head","join","md5sum","nl","numfmt","od","paste","ptx","pr","sha1sum","sha224sum","sha256sum","sha384sum","sha512sum","shuf","sort","split","sum","tac","tail","tr","tsort","unexpand","uniq","wc","arch","basename","chroot","date","dirname","du","echo","env","expr","factor","groups","hostid","id","link","logname","nice","nohup","nproc","pathchk","pinky","printenv","printf","pwd","readlink","runcon","seq","sleep","stat","stdbuf","stty","tee","test","timeout","tty","uname","unlink","uptime","users","who","whoami","yes"];return{name:"Bash",aliases:["sh","zsh"],keywords:{$pattern:/\b[a-z][a-z0-9._-]+\b/,keyword:b,literal:A,built_in:[...ee,...r,"set","shopt",...R,...te]},contains:[V,g.SHEBANG(),y,H,J,N,X,M,C,D,Z,B]}}function kn(g){const d=g.regex,B=new RegExp("[\\p{XID_Start}_]\\p{XID_Continue}*","u"),x=["and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","match","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"],M={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:x,built_in:["__import__","abs","all","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"],literal:["__debug__","Ellipsis","False","None","NotImplemented","True"],type:["Any","Callable","Coroutine","Dict","List","Literal","Generic","Optional","Sequence","Set","Tuple","Type","Union"]},C={className:"meta",begin:/^(>>>|\.\.\.) /},D={className:"subst",begin:/\{/,end:/\}/,keywords:M,illegal:/#/},Z={begin:/\{\{/,relevance:0},H={className:"string",contains:[g.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[g.BACKSLASH_ESCAPE,C],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[g.BACKSLASH_ESCAPE,C],relevance:10},{begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,contains:[g.BACKSLASH_ESCAPE,C,Z,D]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[g.BACKSLASH_ESCAPE,C,Z,D]},{begin:/([uU]|[rR])'/,end:/'/,relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/,end:/"/},{begin:/([fF][rR]|[rR][fF]|[fF])'/,end:/'/,contains:[g.BACKSLASH_ESCAPE,Z,D]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[g.BACKSLASH_ESCAPE,Z,D]},g.APOS_STRING_MODE,g.QUOTE_STRING_MODE]},I="[0-9](_?[0-9])*",V=`(\\b(${I}))?\\.(${I})|\\b(${I})\\.`,y=`\\b|${x.join("|")}`,b={className:"number",relevance:0,variants:[{begin:`(\\b(${I})|(${V}))[eE][+-]?(${I})[jJ]?(?=${y})`},{begin:`(${V})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${y})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${y})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${y})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${y})`},{begin:`\\b(${I})[jJ](?=${y})`}]},A={className:"comment",begin:d.lookahead(/# type:/),end:/$/,keywords:M,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},X={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:M,contains:["self",C,b,H,g.HASH_COMMENT_MODE]}]};return D.contains=[H,b,C],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:M,illegal:/(<\/|\?)|=>/,contains:[C,b,{scope:"variable.language",match:/\bself\b/},{beginKeywords:"if",relevance:0},{match:/\bor\b/,scope:"keyword"},H,A,g.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,B],scope:{1:"keyword",3:"title.function"},contains:[X]},{variants:[{match:[/\bclass/,/\s+/,B,/\s*/,/\(\s*/,B,/\s*\)/]},{match:[/\bclass/,/\s+/,B]}],scope:{1:"keyword",3:"title.class",6:"title.class.inherited"}},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[b,X,H]}]}}const xt="[A-Za-z$_][0-9A-Za-z$_]*",Nn=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],Rn=["true","false","null","undefined","NaN","Infinity"],Et=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],yt=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],vt=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decode
3URI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],Mn=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],On=[].concat(vt,Et,yt);function Tn(g){const d=g.regex,B=(z,{after:oe})=>{const ue="</"+z[0].slice(1);return z.input.indexOf(ue,oe)!==-1},x=xt,W={begin:"<>",end:"</>"},J=/<[A-Za-z0-9\\._:-]+\s*\/>/,N={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(z,oe)=>{const ue=z[0].length+z.index,_e=z.input[ue];if(_e==="<"||_e===","){oe.ignoreMatch();return}_e===">"&&(B(z,{after:ue})||oe.ignoreMatch());let ye;const Me=z.input.substring(ue);if(ye=Me.match(/^\s*=/)){oe.ignoreMatch();return}if((ye=Me.match(/^\s+extends\s+/))&&ye.index===0){oe.ignoreMatch();return}}},M={$pattern:xt,keyword:Nn,literal:Rn,built_in:On,"variable.language":Mn},C="[0-9](_?[0-9])*",D=`\\.(${C})`,Z="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",H={className:"number",variants:[{begin:`(\\b(${Z})((${D})|\\.)?|(${D}))[eE][+-]?(${C})\\b`},{begin:`\\b(${Z})\\b((${D})\\b|\\.)?|(${D})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},I={className:"subst",begin:"\\$\\{",end:"\\}",keywords:M,contains:[]},V={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[g.BACKSLASH_ESCAPE,I],subLanguage:"xml"}},y={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[g.BACKSLASH_ESCAPE,I],subLanguage:"css"}},b={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[g.BACKSLASH_ESCAPE,I],subLanguage:"graphql"}},A={className:"string",begin:"`",end:"`",contains:[g.BACKSLASH_ESCAPE,I]},ee={className:"comment",variants:[g.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:x+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),g.C_BLOCK_COMMENT_MODE,g.C_LINE_COMMENT_MODE]},r=[g.APOS_STRING_MODE,g.QUOTE_STRING_MODE,V,y,b,A,{match:/\$\d+/},H];I.contains=r.concat({begin:/\{/,end:/\}/,keywords:M,contains:["self"].concat(r)});const R=[].concat(ee,I.contains),te=R.concat([{begin:/(\s*)\(/,end:/\)/,keywords:M,contains:["self"].concat(R)}]),le={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:M,contains:te},Se={variants:[{match:[/class/,/\s+/,x,/\s+/,/extends/,/\s+/,d.concat(x,"(",d.concat(/\./,x),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,x],scope:{1:"keyword",3:"title.class"}}]},be={relevance:0,match:d.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...Et,...yt]}},Ae={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},ke={variants:[{match:[/function/,/\s+/,x,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[le],illegal:/%/},Ne={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function $e(z){return d.concat("(?!",z.join("|"),")")}const Ue={match:d.concat(/\b/,$e([...vt,"super","import"].map(z=>`${z}\\s*\\(`)),x,d.lookahead(/\s*\(/)),className:"title.function",relevance:0},de={begin:d.concat(/\./,d.lookahead(d.concat(x,/(?![0-9A-Za-z$_(])/))),end:x,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0}
3,He={match:[/get|set/,/\s+/,x,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},le]},Re="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+g.UNDERSCORE_IDENT_RE+")\\s*=>",ze={match:[/const|var|let/,/\s+/,x,/\s*/,/=\s*/,/(async\s*)?/,d.lookahead(Re)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[le]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:M,exports:{PARAMS_CONTAINS:te,CLASS_REFERENCE:be},illegal:/#(?![$_A-z])/,contains:[g.SHEBANG({label:"shebang",binary:"node",relevance:5}),Ae,g.APOS_STRING_MODE,g.QUOTE_STRING_MODE,V,y,b,A,ee,{match:/\$\d+/},H,be,{scope:"attr",match:x+d.lookahead(":"),relevance:0},ze,{begin:"("+g.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[ee,g.REGEXP_MODE,{className:"function",begin:Re,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:g.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:M,contains:te}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:W.begin,end:W.end},{match:J},{begin:N.begin,"on:begin":N.isTrulyOpeningTag,end:N.end}],subLanguage:"xml",contains:[{begin:N.begin,end:N.end,skip:!0,contains:["self"]}]}]},ke,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+g.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[le,g.inherit(g.TITLE_MODE,{begin:x,className:"title.function"})]},{match:/\.\.\./,relevance:0},de,{match:"\\$"+x,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[le]},Ue,Ne,Se,He,{match:/\$[(.]/}]}}const Cn={class:"animate-fade-in-up delay-100"},In={class:"text-balance"},Ln={class:"animate-fade-in-up delay-200"},Bn={class:"py-16"},Dn={class:"text-center mb-12"},Pn={class:"text-3xl font-bold tracking-tight text-slate-900"},$n={class:"text-slate-500 max-w-2xl mx-auto mt-3"},Un={class:"grid md:grid-cols-3 gap-5"},Hn={class:"relative z-10 flex flex-col flex-1"},zn={class:"flex items-center justify-between mb-5"},Gn={class:"size-12 rounded-xl bg-slate-50 border border-slate-100 flex items-center justify-center group-hover:scale-105 transition-transform duration-300"},Fn={class:"text-sm font-bold text-slate-900 mb-2"},Kn={class:"text-sm text-slate-500 leading-relaxed flex-1"},jn={class:"flex items-center gap-1.5 text-xs text-slate-400 mt-5 pt-4 border-t border-slate-100"},Wn={class:"pb-16"},Zn={class:"text-center mb-12"},Yn={class:"text-3xl font-bold tracking-tight text-slate-900"},Xn={class:"text-slate-500 max-w-2xl mx-auto mt-3"},qn={class:"grid sm:grid-cols-2 gap-5"},Jn=["onClick"],Vn={class:"flex items-center justify-between mb-4"},Qn={class:"flex items-center gap-2.5"},es={class:"text-sm font-bold text-slate-800 truncate"},ts={class:"flex items-center gap-2"},ns={key:0,class:"inline-flex items-center px-2 py-0.5 rounded-full text-[10px] font-bold bg-emerald-50 text-emerald-600 shrink-0"},ss={class:"text-xs text-slate-400 leading-relaxed mb-1"},is={class:"list-disc list-inside text-[11px] text-slate-400/70 leading-relaxed mb-5 space-y-0.5 pl-1"},os={class:"space-y-2"},rs=["onClick"],as={class:"text-[10px] font-bold text-slate-400 uppercase tracking-wider w-8 shrink-0"},cs={class:"text-xs font-mono flex-1 truncate text-slate-600"},ls=["onClick"],ds={class:"text-[10px] font-bold text-slate-400 uppercase tracking-wider w-8 shrink-0"},us={class:"text-xs font-mono flex-1 truncate text-slate-600"},gs={class:"pb-16"},ps={class:"text-center mb-12"},hs={class:"text-3xl font-bold tracking-tight text-slate-900"},fs={class:"text-slate-500 max-w-2xl mx-auto mt-3"},bs={class:"space-y-5"},_s={class:"flex items-center gap-3 px-6 py-4 border-b border-slate-100 bg-slate-50/50"},ms={class:"size-9 rounded-lg flex items-center justify-center border border-slate-100 bg-white shrink-0"},xs={class:"flex-1 min-w-0"},Es={class:"text-sm font-bold text-slate-700"},ys={class:"text-[11px] text-slate-400 font-medium bg-white border border-slate-100 px-2.5 py-1 rounded-full"},vs={class:"divide-y divide-slate-50"},ws=["onClick"],Ss={class:"shrink-0 mt-0.5 text-[10px] font-bold px-2 py-1 rounded-md bg-emerald-50 text-emerald-700 border border-emerald-100 uppercase tracking-wider"},As={class:"flex-1 min-w-0"},ks={class:"flex items-center gap-2 mb-1"},Ns={class:"text-sm font-semibold text-slate-800"},Rs={class:"text-xs text-slate-400 leading-relaxed"},Ms={class:"flex items-center gap-2 shrink-0"},Os={class:"text-xs text-slate-500 font-mono hidden md:block bg-slate-50 px-2.5 py-1 rounded-md border border-slate-100"},Ts={class:"text-xs text-slate-400 mt-4 text-center"},Cs={class:"pb-16"},Is={class:"text-center mb-12"},Ls={class:"text-3xl font-bold tracking-tight text-slate-900"},Bs={class:"text-slate-500 max-w-2xl mx-auto mt-3"},Ds={class:"code-container rounded-2xl overflow-hidden border border-[#1e293b] shadow-lg shadow-slate-900/10"},Ps={class:"flex items-center gap-1 px-4 pt-4 pb-0 bg-[#0f172a]"},$s=["onClick"],Us={class:"bg-[#0f172a] px-5 py-6 overflow-x-auto border-t border-[#1e293b]"},Hs={class:"text-sm leading-relaxed font-mono whitespace-pre"},zs=["innerHTML"],Gs={class:"pb-16"},Fs={class:"text-center mb-12"},Ks={class:"text-3xl font-bold tracking-tight text-slate-900"},js={class:"text-slate-500 max-w-2xl mx-auto mt-3"},Ws={class:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-4"},Zs={class:"flex items-center gap-3 mb-3"},Ys={class:"text-sm font-bold text-slate-900"},Xs={class:"text-xs text-slate-500 leading-relaxed"},qs={class:"pb-16 md:pb-20"},Js={class:"bg-slate-900 rounded-2xl p-10 md:p-16 text-center relative overflow-hidden"},Vs={class:"relative z-10 max-w-2xl mx-auto"},Qs={class:"text-3xl font-bold tracking-tight text-white"},ei={class:"text-slate-400 mt-4 max-w-lg mx-auto"},ti={class:"flex flex-col sm:flex-row gap-3 justify-center mt-8"},ni={href:"https://docs.wisgate.ai",target:"_blank",rel:"noopener",class:"inline-flex items-center justify-center gap-2 px-6 py-3 border border-slate-700 text-slate-400 hover:text-slate-200 hover:border-slate-500 rounded-xl text-sm font-medium transition-all duration-200"},si=pn({__name:"index",setup(g){Pe.registerLanguage("bash",An),Pe.registerLanguage("python",kn),Pe.registerLanguage("javascript",Tn);const{t:d}=hn();fn(ce(()=>En(d).endpoints));const B=ce(()=>_t.map(y=>({...y,desc:d(y.descKey),advantages:y.advantagesKeys.map(b=>d(b))}))),x=Xe(_t[0].id),W=ce(()=>B.value.find(y=>y.id===x.value)||B.value[0]),J=ce(()=>W.value.url),N=Xe(""),M=async(y,b)=>{try{await navigator.clipboard.writeText(y),N.value=b,setTimeout(()=>{N.value=""},2e3)}catch(A){console.error("Failed to copy endpoint URL:",A)}},C=Xe("python"),D=ce(()=>({curl:{lang:"bash",code:`curl ${J.value}/v1/chat/completions \\ 4 -H "Content-Type: application/json" \\ 5 -H "Authorization: Bearer YOUR_API_KEY" \\ 6 -d '{ 7 "model": "gpt-4o", 8 "messages": [ 9 {"role": "user", "content": "Hello!"} 10 ] 11 }'`},python:{lang:"python",code:`from openai import OpenAI 12 13client = OpenAI( 14 api_key="YOUR_API_KEY", 15 base_url="${J.value}/v1" 16) 17
18response = client.chat.completions.create( 19 model="gpt-4o", 20 messages=[ 21 {"role": "user", "content": "Hello!"} 22 ] 23) 24 25print(response.choices[0].message.content)`},node:{lang:"javascript",code:`import OpenAI from 'openai'; 26 27const client = new OpenAI({ 28 apiKey: 'YOUR_API_KEY', 29 baseURL: '${J.value}/v1', 30}); 31 32const response = await client.chat.completions.create({ 33 model: 'gpt-4o', 34 messages: [ 35 { role: 'user', content: 'Hello!' }, 36 ], 37}); 38 39console.log(response.choices[0].message.content);`}})),Z=ce(()=>{const y=D.value[C.value];return Pe.highlight(y.code,{language:y.lang}).value}),H=ce(()=>[{id:"openai",name:"OpenAI",logo:"openai",color:"emerald",endpoints:6,tag:"OpenAI Compatible",desc:d("site.endpoints.format_openai_desc")},{id:"claude",name:"Claude",logo:"anthropic",color:"orange",endpoints:1,tag:"Anthropic Compatible",desc:d("site.endpoints.format_claude_desc")},{id:"gemini",name:"Gemini",logo:"google",color:"blue",endpoints:1,tag:"Google Compatible",desc:d("site.endpoints.format_gemini_desc")}]),I={endpoint_chat:"site.endpoints.method_chat_desc",endpoint_completion:"site.endpoints.method_responses_desc",endpoint_embedding:"site.endpoints.method_embeddings_desc",endpoint_image:"site.endpoints.method_image_gen_desc",endpoint_image_edit:"site.endpoints.method_image_edit_desc",endpoint_videos:"site.endpoints.method_videos_desc",endpoint_claude_messages:"site.endpoints.method_messages_desc",endpoint_gemini:"site.endpoints.method_gemini_desc"},V=ce(()=>[{key:"openai",name:"OpenAI SDK",icon:"d2:openai",desc:d("site.endpoints.sdk_openai"),color:"slate"},{key:"anthropic",name:"Anthropic SDK",icon:"d2:anthropic",desc:d("site.endpoints.sdk_anthropic"),color:"orange"},{key:"langchain",name:"LangChain",icon:"lucide:link",desc:d("site.endpoints.sdk_langchain"),color:"emerald"},{key:"vercel",name:"Vercel AI SDK",icon:"lucide:triangle",desc:d("site.endpoints.sdk_vercel"),color:"violet"},{key:"cursor",name:"Cursor",icon:"d2:cursor",desc:d("site.endpoints.sdk_cursor"),color:"blue"},{key:"copilot",name:"GitHub Copilot",icon:"lucide:github",desc:d("site.endpoints.sdk_copilot"),color:"slate"},{key:"continue",name:"Continue.dev",icon:"lucide:play",desc:d("site.endpoints.sdk_continue"),color:"amber"},{key:"aider",name:"Aider",icon:"lucide:terminal",desc:d("site.endpoints.sdk_aider"),color:"rose"}]);return(y,b)=>{const A=bn,X=_n,ee=xn;return U(),qe(ee,{"max-content-width":"max-w-5xl","content-padding":"px-4 sm:px-6 lg:px-8"},{"header-extra":Ee(()=>[...b[1]||(b[1]=[n("div",{class:"inline-flex items-center gap-2 animate-fade-in-up"},[n("span",{class:"w-1.5 h-1.5 rounded-full bg-emerald-500"}),n("span",{class:"text-xs font-bold uppercase tracking-wider text-slate-500"},"Developer Reference")],-1)])]),title:Ee(()=>[n("div",Cn,[n("span",In,_(y.$t("site.endpoints.title")),1)])]),subtitle:Ee(()=>[n("span",Ln,_(y.$t("site.endpoints.subtitle")),1)]),default:Ee(()=>[n("section",Bn,[n("div",Dn,[b[2]||(b[2]=n("span",{class:"text-xs font-bold uppercase tracking-wider text-slate-500 mb-4 block"},"Compatibility",-1)),n("h2",Pn,_(k(d)("site.endpoints.formats_title")),1),n("p",$n,_(k(d)("site.endpoints.formats_subtitle")),1)]),n("div",Un,[(U(!0),K(fe,null,he(H.value,r=>(U(),K("div",{key:r.id,class:"bg-white border border-slate-100 rounded-2xl p-6 hover:shadow-md transition-all duration-200 group relative overflow-hidden flex flex-col"},[n("div",{class:q(["absolute top-0 right-0 w-24 h-24 rounded-full opacity-[0.04] -mr-6 -mt-6 transition-transform duration-500 group-hover:scale-125",{"bg-emerald-500":r.color==="emerald","bg-orange-500":r.color==="orange","bg-blue-500":r.color==="blue"}])},null,2),n("div",Hn,[n("div",zn,[n("div",Gn,[j(Ve,{name:r.logo,class:"size-7"},null,8,["name"])]),n("span",{class:q(["text-[10px] font-bold uppercase tracking-wider px-2.5 py-1 rounded-full border",{"text-emerald-600 bg-emerald-50 border-emerald-100":r.color==="emerald","text-orange-600 bg-orange-50 border-orange-100":r.color==="orange","text-blue-600 bg-blue-50 border-blue-100":r.color==="blue"}])},_(r.tag),3)]),n("h3",Fn,_(r.name),1),n("p",Kn,_(r.desc),1),n("div",jn,[j(A,{name:"lucide:route",class:"size-3.5"}),n("span",null,_(r.endpoints)+" endpoints",1)])])]))),128))])]),n("section",Wn,[n("div",Zn,[b[3]||(b[3]=n("span",{class:"text-xs font-bold uppercase tracking-wider text-slate-500 mb-4 block"},"Hosts",-1)),n("h2",Yn,_(k(d)("site.endpoints.hosts_title")),1),n("p",Xn,_(k(d)("site.endpoints.hosts_subtitle")),1)]),n("div",qn,[(U(!0),K(fe,null,he(B.value,r=>(U(),K("div",{key:r.id,onClick:R=>
39x.value=r.id,class:q(["bg-white rounded-2xl border-2 p-6 cursor-pointer transition-all duration-200 group",x.value===r.id?"border-slate-900 shadow-md":"border-slate-100 hover:border-slate-200"])},[n("div",Vn,[n("div",Qn,[n("div",{class:q(["size-9 rounded-lg flex items-center justify-center",x.value===r.id?"bg-slate-900 text-white":"bg-slate-100 text-slate-400"])},[j(A,{name:"lucide:server",class:"size-4"})],2),n("span",es,_(r.url.replace("https://","")),1),r.id==="wisgate"?(U(),qe(Ve,{key:0,name:"cloudflare",class:"h-5 aspect-[3/1] shrink-0 opacity-60"})):Je("",!0)]),n("div",ts,[r.recommended?(U(),K("span",ns,_(y.$t("tokens.endpoints.recommended")),1)):Je("",!0),x.value===r.id?(U(),qe(A,{key:1,name:"lucide:check-circle",class:"size-4 text-slate-900 shrink-0"})):Je("",!0)])]),n("p",ss,_(r.desc),1),n("ul",is,[(U(!0),K(fe,null,he(r.advantages,R=>(U(),K("li",{key:R},_(R),1))),128))]),n("div",os,[n("button",{class:q(["w-full flex items-center gap-2.5 px-3 py-2.5 rounded-lg text-left transition-colors duration-200 cursor-pointer border",x.value===r.id?"bg-slate-50 border-slate-200 hover:bg-slate-100":"bg-white border-slate-100 hover:bg-slate-50"]),onClick:bt(R=>M(r.url,r.id+"-base"),["stop"])},[n("span",as,_(k(d)("site.endpoints.copy_base")),1),n("code",cs,_(r.url),1),j(A,{name:N.value===r.id+"-base"?"lucide:check":"lucide:copy",class:q(["size-3.5 shrink-0 transition-colors",N.value===r.id+"-base"?"text-emerald-500":"text-slate-300"])},null,8,["name","class"])],10,rs),n("button",{class:q(["w-full flex items-center gap-2.5 px-3 py-2.5 rounded-lg text-left transition-colors duration-200 cursor-pointer border",x.value===r.id?"bg-slate-50 border-slate-200 hover:bg-slate-100":"bg-white border-slate-100 hover:bg-slate-50"]),onClick:bt(R=>M(r.url+"/v1",r.id+"-base-v1"),["stop"])},[n("span",ds,_(k(d)("site.endpoints.copy_v1")),1),n("code",us,_(r.url)+"/v1",1),j(A,{name:N.value===r.id+"-base-v1"?"lucide:check":"lucide:copy",class:q(["size-3.5 shrink-0 transition-colors",N.value===r.id+"-base-v1"?"text-emerald-500":"text-slate-300"])},null,8,["name","class"])],10,ls)])],10,Jn))),128))])]),n("section",gs,[n("div",ps,[b[4]||(b[4]=n("span",{class:"text-xs font-bold uppercase tracking-wider text-slate-500 mb-4 block"},"Reference",-1)),n("h2",hs,_(k(d)("site.endpoints.methods_title")),1),n("p",fs,_(k(d)("site.endpoints.methods_subtitle")),1)]),n("div",bs,[(U(!0),K(fe,null,he(k(yn),r=>(U(),K("div",{key:r.id,class:"bg-white rounded-2xl border border-slate-100 overflow-hidden hover:shadow-md transition-all duration-200"},[n("div",_s,[n("div",ms,[j(Ve,{class:"size-4.5",name:r.logo.toLowerCase()},null,8,["name"])]),n("div",xs,[n("span",Es,_(r.name),1)]),n("span",ys,_(r.endpoints.length)+" endpoints",1)]),n("div",vs,[(U(!0),K(fe,null,he(r.endpoints,R=>(U(),K("div",{key:R.key,class:"flex items-start gap-4 px-6 py-4 cursor-pointer transition-colors duration-200 hover:bg-slate-50/50 group/row",onClick:te=>M(W.value.url+R.path,W.value.id+"-"+R.key)},[n("span",Ss,_(k(d)("site.endpoints.method_post")),1),n("div",As,[n("div",ks,[n("span",Ns,_(R.name),1)]),n("p",Rs,_(k(d)(I[R.key]||"site.endpoints.subtitle")),1)]),n("div",Ms,[n("code",Os,_(R.path),1),j(A,{name:N.value===W.value.id+"-"+R.key?"lucide:check":"lucide:copy",class:q(["size-3.5 shrink-0 transition-colors",N.value===W.value.id+"-"+R.key?"text-emerald-500":"text-slate-300 group-hover/row:text-slate-500"])},null,8,["name","class"])])],8,ws))),128))])]))),128))]),n("p",Ts,_(y.$t("tokens.endpoints.copy_includes_host")),1)]),n("section",Cs,[n("div",Is,[b[5]||(b[5]=n("span",{class:"text-xs font-bold uppercase tracking-wider text-slate-500 mb-4 block"},"Quick Start",-1)),n("h2",Ls,_(k(d)("site.endpoints.quickstart_title")),1),n("p",Bs,_(k(d)("site.endpoints.quickstart_subtitle")),1)]),n("div",Ds,[n("div",Ps,[(U(!0),K(fe,null,he([{key:"python",label:k(d)("site.endpoints.quickstart_python"),icon:"lucide:file-code"},{key:"node",label:k(d)("site.endpoints.quickstart_node"),icon:"lucide:file-code-2"},{key:"curl",label:k(d)("site.endpoints.quickstart_curl"),icon:"lucide:terminal"}],r=>(U(),K("div",{key:r.key},[n("button",{onClick:R=>C.value=r.key,class:q(["flex items-center gap-1.5 px-3.5 py-2 rounded-t-lg text-xs font-medium transition-all duration-200 cursor-pointer",C.value===r.key?"bg-slate-800 text-white border border-slate-700 border-b-transparent":"text-slate-400 hover:text-slate-200"])},[j(A,{name:r.icon,class:"size-3.5"},null,8,["name"]),we(" "+_(r.label),1)],10,$s)]))),128)),n("button",{onClick:b[0]||(b[0]=r=>M(D.value[C.value].code,"code-snippet")),class:q(["ml-auto flex items-center gap-1.5 px-3 py-1.5 rounded-lg text-[11px] font-medium transition-colors cursor-pointer",N.value==="code-snippet"?"text-emerald-400":"text-slate-500 hover:text-slate-300"])},[j(A,{name:N.value==="code-snippet"?"lucide:check":"lucide:copy",class:"size-3.5"},null,8,["name"]),we(" "+_(N.value==="code-snippet"?"Copied!":"Copy"),1)],2)]),n("div",Us,[n("pre",Hs,[n("code",{class:"hljs",innerHTML:Z.value},null,8,zs)])])])]),n("section",Gs,[n("div",Fs,[b[6]||(b[6]=n("span",{class:"text-xs font-bold uppercase tracking-wider text-slate-500 mb-4 block"},"Integrations",-1)),n("h2",Ks,_(k(d)("site.endpoints.sdks_title")),1),n("p",js,_(k(d)("site.endpoints.sdks_subtitle")),1)]),n("div",Ws,[(U(!0),K(fe,null,he(V.value,r=>(U(),K("div",{key:r.key,class:"bg-white border border-slate-100 rounded-xl p-5 hover:shadow-md hover:border-slate-200 transition-all duration-200 group"},[n("div",Zs,[n("div",{class:q(["size-9 rounded-lg flex items-center justify-center shrink-0 transition-colors duration-200",{"bg-slate-100 text-slate-600 group-hover:bg-slate-900 group-hover:text-white":r.color==="slate","bg-orange-50 text-orange-600 group-hover:bg-orange-500 group-hover:text-white":r.color==="orange","bg-emerald-50 text-emerald-600 group-hover:bg-emerald-500 group-hover:text-white":r.color==="emerald","bg-vi
39olet-50 text-violet-600 group-hover:bg-violet-500 group-hover:text-white":r.color==="violet","bg-blue-50 text-blue-600 group-hover:bg-blue-500 group-hover:text-white":r.color==="blue","bg-amber-50 text-amber-600 group-hover:bg-amber-500 group-hover:text-white":r.color==="amber","bg-rose-50 text-rose-600 group-hover:bg-rose-500 group-hover:text-white":r.color==="rose"}])},[j(A,{name:r.icon,class:"size-4.5"},null,8,["name"])],2),n("h4",Ys,_(r.name),1)]),n("p",Xs,_(r.desc),1)]))),128))])]),n("section",qs,[n("div",Js,[b[7]||(b[7]=n("div",{class:"absolute top-0 right-0 w-72 h-72 bg-slate-800/50 rounded-full blur-3xl -translate-y-1/3 translate-x-1/3"},null,-1)),b[8]||(b[8]=n("div",{class:"absolute bottom-0 left-0 w-72 h-72 bg-slate-800/30 rounded-full blur-3xl translate-y-1/3 -translate-x-1/3"},null,-1)),n("div",Vs,[n("h2",Qs,_(k(d)("site.endpoints.cta_title")),1),n("p",ei,_(k(d)("site.endpoints.cta_desc")),1),n("div",ti,[j(X,{to:y.$localePath("/hall/tokens"),class:"inline-flex items-center justify-center gap-2 px-6 py-3 bg-white hover:bg-slate-100 text-slate-900 rounded-xl text-sm font-medium transition-all duration-200 shadow-sm"},{default:Ee(()=>[j(A,{name:"lucide:key",class:"size-4"}),we(" "+_(k(d)("site.endpoints.get_api_key")),1)]),_:1},8,["to"]),j(X,{to:y.$localePath("/hall/dashboard"),class:"inline-flex items-center justify-center gap-2 px-6 py-3 border border-slate-600 text-slate-300 hover:text-white hover:border-slate-500 rounded-xl text-sm font-medium transition-all duration-200"},{default:Ee(()=>[we(_(k(d)("site.endpoints.cta_create"))+" ",1),j(A,{name:"lucide:arrow-right",class:"size-3.5"})]),_:1},8,["to"]),n("a",ni,[j(A,{name:"lucide:book-open",class:"size-4"}),we(" "+_(k(d)("site.endpoints.view_docs")),1)])])])])])]),_:1})}}}),ui=mn(si,[["__scopeId","data-v-25009c4b"]]);export{ui as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.