457 lines
700 KiB
JavaScript
457 lines
700 KiB
JavaScript
|
|
import{e as gg,w as xs,i as Rd,r as Ge,s as Dd,c as ht,d as Er,h as Pd,F as fr,g as ui,a as yg,o as mo,b as X0,f as bg,j as pe,T as wg,k as dt,l as at,m as ke,t as Vt,n as Se,p as Ke,q as fi,u as ii,v as ks,x as bt,y as Ht,z as $d,A as s0,E as Fd,B as i0,C as a0,D as vg,G as o0,H as Bd,I as _g,J as xg,K as da,L as ma,M as kg,N as Sg,O as Ag,P as Tg,Q as Eg,R as Ng}from"./vendor-DwrfALIr.js";import{M as Va}from"./markdown-_Dy2zPzC.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const i of s)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(s){const i={};return s.integrity&&(i.integrity=s.integrity),s.referrerPolicy&&(i.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?i.credentials="include":s.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(s){if(s.ep)return;s.ep=!0;const i=n(s);fetch(s.href,i)}})();/*!
|
|||
|
|
* shared v9.14.5
|
|||
|
|
* (c) 2025 kazuya kawaguchi
|
|||
|
|
* Released under the MIT License.
|
|||
|
|
*/function Cg(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const ja=typeof window<"u",Nr=(e,t=!1)=>t?Symbol.for(e):Symbol(e),Ig=(e,t,n)=>Mg({l:e,k:t,s:n}),Mg=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),Tt=e=>typeof e=="number"&&isFinite(e),Og=e=>qd(e)==="[object Date]",Tr=e=>qd(e)==="[object RegExp]",po=e=>ze(e)&&Object.keys(e).length===0,Xt=Object.assign,Lg=Object.create,ot=(e=null)=>Lg(e);let _f;const lr=()=>_f||(_f=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:ot());function xf(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/").replace(/=/g,"=")}function kf(e){return e.replace(/&(?![a-zA-Z0-9#]{2,6};)/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function Rg(e){return e=e.replace(/(\w+)\s*=\s*"([^"]*)"/g,(r,s,i)=>`${s}="${kf(i)}"`),e=e.replace(/(\w+)\s*=\s*'([^']*)'/g,(r,s,i)=>`${s}='${kf(i)}'`),/\s*on\w+\s*=\s*["']?[^"'>]+["']?/gi.test(e)&&(e=e.replace(/(\s+)(on)(\w+\s*=)/gi,"$1on$3")),[/(\s+(?:href|src|action|formaction)\s*=\s*["']?)\s*javascript:/gi,/(style\s*=\s*["'][^"']*url\s*\(\s*)javascript:/gi].forEach(r=>{e=e.replace(r,"$1javascript:")}),e}const Dg=Object.prototype.hasOwnProperty;function Pn(e,t){return Dg.call(e,t)}const mt=Array.isArray,ct=e=>typeof e=="function",be=e=>typeof e=="string",Ve=e=>typeof e=="boolean",Ye=e=>e!==null&&typeof e=="object",Pg=e=>Ye(e)&&ct(e.then)&&ct(e.catch),zd=Object.prototype.toString,qd=e=>zd.call(e),ze=e=>{if(!Ye(e))return!1;const t=Object.getPrototypeOf(e);return t===null||t.constructor===Object},$g=e=>e==null?"":mt(e)||ze(e)&&e.toString===zd?JSON.stringify(e,null,2):String(e);function Fg(e,t=""){return e.reduce((n,r,s)=>s===0?n+r:n+t+r,"")}function go(e){let t=e;return()=>++t}const pa=e=>!Ye(e)||mt(e);function Oa(e,t){if(pa(e)||pa(t))throw new Error("Invalid value");const n=[{src:e,des:t}];for(;n.length;){const{src:r,des:s}=n.pop();Object.keys(r).forEach(i=>{i!=="__proto__"&&(Ye(r[i])&&!Ye(s[i])&&(s[i]=Array.isArray(r[i])?[]:ot()),pa(s[i])||pa(r[i])?s[i]=r[i]:n.push({src:r[i],des:s[i]}))})}}/*!
|
|||
|
|
* message-compiler v9.14.5
|
|||
|
|
* (c) 2025 kazuya kawaguchi
|
|||
|
|
* Released under the MIT License.
|
|||
|
|
*/function Bg(e,t,n){return{line:e,column:t,offset:n}}function Wa(e,t,n){return{start:e,end:t}}const zg=/\{([0-9a-zA-Z]+)\}/g;function Ud(e,...t){return t.length===1&&qg(t[0])&&(t=t[0]),(!t||!t.hasOwnProperty)&&(t={}),e.replace(zg,(n,r)=>t.hasOwnProperty(r)?t[r]:"")}const Hd=Object.assign,Sf=e=>typeof e=="string",qg=e=>e!==null&&typeof e=="object";function Vd(e,t=""){return e.reduce((n,r,s)=>s===0?n+r:n+t+r,"")}const Y0={USE_MODULO_SYNTAX:1,__EXTEND_POINT__:2},Ug={[Y0.USE_MODULO_SYNTAX]:"Use modulo before '{{0}}'."};function Hg(e,t,...n){const r=Ud(Ug[e],...n||[]),s={message:String(r),code:e};return t&&(s.location=t),s}const Le={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16,__EXTEND_POINT__:17},Vg={[Le.EXPECTED_TOKEN]:"Expected token: '{0}'",[Le.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[Le.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[Le.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[Le.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[Le.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[Le.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[Le.EMPTY_PLACEHOLDER]:"Empty placeholder",[Le.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[Le.INVALID_LINKED_FORMAT]:"Invalid linked format",[Le.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[Le.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[Le.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[Le.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'",[Le.UNHANDLED_CODEGEN_NODE_TYPE]:"unhandled codegen node type: '{0}'",[Le.UNHANDLED_MINIFIER_NODE_TYPE]:"unhandled mimifier node type: '{0}'"};function Os(e,t,n={}){const{domain:r,messages:s,args:i}=n,o=Ud((s||Vg)[e]||"",...i||[]),u=new SyntaxError(String(o));return u.code=e,t&&(u.location=t),u.domain=r,u}function jg(e){throw e}const sr=" ",Wg="\r",nn=`
|
|||
|
|
`,Gg="\u2028",Kg="\u2029";function Xg(e){const t=e;let n=0,r=1,s=1,i=0;const o=j=>t[j]===Wg&&t[j+1]===nn,u=j=>t[j]===nn,h=j=>t[j]===Kg,d=j=>t[j]===Gg,p=j=>o(j)||u(j)||h(j)||d(j),b=()=>n,v=()=>r,k=()=>s,x=()=>i,A=j=>o(j)||h(j)||d(j)?nn:t[j],E=()=>A(n),M=()=>A(n+i);function q(){return i=0,p(n)&&(r++,s=0),o(n)&&n++,n++,s++,t[n]}function L(){return o(n+i)&&i++,i++,t[n+i]}function O(){n=0,r=1,s=1,i=0}function F(j=0){i=j}function z(){const j=n+i;for(;j!==n;)q();i=0}return{index:b,line:v,column:k,peekOffset:x,charAt:A,currentChar:E,currentPeek:M,next:q,peek:L,reset:O,resetPeek:F,skipToPeek:z}}const wr=void 0,Yg=".",Af="'",Jg="tokenizer";function Qg(e,t={}){const n=t.location!==!1,r=Xg(e),s=()=>r.index(),i=()=>Bg(r.line(),r.column(),r.index()),o=i(),u=s(),h={currentType:14,offset:u,startLoc:o,endLoc:o,lastType:14,lastOffset:u,lastStartLoc:o,lastEndLoc:o,braceNest:0,inLinked:!1,text:""},d=()=>h,{onError:p}=t;function b(C,$,Z,..._e){const Xe=d();if($.column+=Z,$.offset+=Z,p){const Pe=n?Wa(Xe.startLoc,$):null,J=Os(C,Pe,{domain:Jg,args:_e});p(J)}}function v(C,$,Z){C.endLoc=i(),C.currentType=$;const _e={type:$};return n&&(_e.loc=Wa(C.startLoc,C.endLoc)),Z!=null&&(_e.value=Z),_e}const k=C=>v(C,14);function x(C,$){return C.currentChar()===$?(C.next(),$):(b(Le.EXPECTED_TOKEN,i(),0,$),"")}function A(C){let $="";for(;C.currentPeek()===sr||C.currentPeek()===nn;)$+=C.currentPeek(),C.peek();return $}function E(C){const $=A(C);return C.skipToPeek(),$}function M(C){if(C===wr)return!1;const $=C.charCodeAt(0);return $>=97&&$<=122||$>=65&&$<=90||$===95}function q(C){if(C===wr)return!1;const $=C.charCodeAt(0);return $>=48&&$<=57}function L(C,$){const{currentType:Z}=$;if(Z!==2)return!1;A(C);const _e=M(C.currentPeek());return C.resetPeek(),_e}function O(C,$){const{currentType:Z}=$;if(Z!==2)return!1;A(C);const _e=C.currentPeek()==="-"?C.peek():C.currentPeek(),Xe=q(_e);return C.resetPeek(),Xe}function F(C,$){const{currentType:Z}=$;if(Z!==2)return!1;A(C);const _e=C.currentPeek()===Af;return C.resetPeek(),_e}function z(C,$){const{currentType:Z}=$;if(Z!==8)return!1;A(C);const _e=C.currentPeek()===".";return C.resetPeek(),_e}function j(C,$){const{currentType:Z}=$;if(Z!==9)return!1;A(C);const _e=M(C.currentPeek());return C.resetPeek(),_e}function G(C,$){const{currentType:Z}=$;if(!(Z===8||Z===12))return!1;A(C);const _e=C.currentPeek()===":";return C.resetPeek(),_e}function Q(C,$){const{currentType:Z}=$;if(Z!==10)return!1;const _e=()=>{const Pe=C.currentPeek();return Pe==="{"?M(C.peek()):Pe==="@"||Pe==="%"||Pe==="|"||Pe===":"||Pe==="."||Pe===sr||!Pe?!1:Pe===nn?(C.peek(),_e()):te(C,!1)},Xe=_e();return C.resetPeek(),Xe}function ye(C){A(C);const $=C.currentPeek()==="|";return C.resetPeek(),$}function ce(C){const $=A(C),Z=C.currentPeek()==="%"&&C.peek()==="{";return C.resetPeek(),{isModulo:Z,hasSpace:$.length>0}}function te(C,$=!0){const Z=(Xe=!1,Pe="",J=!1)=>{const se=C.currentPeek();return se==="{"?Pe==="%"?!1:Xe:se==="@"||!se?Pe==="%"?!0:Xe:se==="%"?(C.peek(),Z(Xe,"%",!0)):se==="|"?Pe==="%"||J?!0:!(Pe===sr||Pe===nn):se===sr?(C.peek(),Z(!0,sr,J)):se===nn?(C.peek(),Z(!0,nn,J)):!0},_e=Z();return $&&C.resetPeek(),_e}function he(C,$){const Z=C.currentChar();return Z===wr?wr:$(Z)?(C.next(),Z):null}function V(C){const $=C.charCodeAt(0);return $>=97&&$<=122||$>=65&&$<=90||$>=48&&$<=57||$===95||$===36}function oe(C){return he(C,V)}function Y(C){const $=C.charCodeAt(0);return $>=97&&$<=122||$>=65&&$<=90||$>=48&&$<=57||$===95||$===36||$===45}function fe(C){return he(C,Y)}function ee(C){const $=C.charCodeAt(0);return $>=48&&$<=57}function Ae(C){return he(C,ee)}function Oe(C){const $=C.charCodeAt(0);return $>=48&&$<=57||$>=65&&$<=70||$>=97&&$<=102}function Te(C){return he(C,Oe)}function H(C){let $="",Z="";for(;$=Ae(C);)Z+=$;return Z}function me(C){E(C);const $=C.currentChar();return $!=="%"&&b(Le.EXPECTED_TOKEN,i(),0,$),C.next(),"%"}function Ee(C){let $="";for(;;){const Z=C.currentChar();if(Z==="{"||Z==="}"||Z==="@"||Z==="|"||!Z)break;if(Z==="%")if(te(C))$+=Z,C.next();else break;else if(Z===sr||Z===nn)if(te(C))$+=Z,C.next();else{if(ye(C))break;$+=Z,C.next()}else $+=Z,C.n
|
|||
|
|
`,i=t.needIndent?t.needIndent:n!=="arrow",o=e.helpers||[],u=l2(e,{filename:r,breakLineCode:s,needIndent:i});u.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),u.indent(i),o.length>0&&(u.push(`const { ${Vd(o.map(p=>`${p}: _${p}`),", ")} } = ctx`),u.newline()),u.push("return "),Ss(u,e),u.deindent(i),u.push("}"),delete e.helpers;const{code:h,map:d}=u.context();return{ast:e,code:h,map:d?d.toJSON():void 0}};function m2(e,t={}){const n=Hd({},t),r=!!n.jit,s=!!n.minify,i=n.optimize==null?!0:n.optimize,u=n2(n).parse(e);return r?(i&&i2(u),s&&fs(u),{ast:u,code:""}):(s2(u,n),d2(u,n))}/*!
|
|||
|
|
* core-base v9.14.5
|
|||
|
|
* (c) 2025 kazuya kawaguchi
|
|||
|
|
* Released under the MIT License.
|
|||
|
|
*/function p2(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(lr().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(lr().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(lr().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function Xn(e){return Ye(e)&&Q0(e)===0&&(Pn(e,"b")||Pn(e,"body"))}const jd=["b","body"];function g2(e){return Cr(e,jd)}const Wd=["c","cases"];function y2(e){return Cr(e,Wd,[])}const Gd=["s","static"];function b2(e){return Cr(e,Gd)}const Kd=["i","items"];function w2(e){return Cr(e,Kd,[])}const Xd=["t","type"];function Q0(e){return Cr(e,Xd)}const Yd=["v","value"];function ga(e,t){const n=Cr(e,Yd);if(n!=null)return n;throw hi(t)}const Jd=["m","modifier"];function v2(e){return Cr(e,Jd)}const Qd=["k","key"];function _2(e){const t=Cr(e,Qd);if(t)return t;throw hi(6)}function Cr(e,t,n){for(let r=0;r<t.length;r++){const s=t[r];if(Pn(e,s)&&e[s]!=null)return e[s]}return n}const Zd=[...jd,...Wd,...Gd,...Kd,...Qd,...Jd,...Yd,...Xd];function hi(e){return new Error(`unhandled node type: ${e}`)}const Ir=[];Ir[0]={w:[0],i:[3,0],"[":[4],o:[7]};Ir[1]={w:[1],".":[2],"[":[4],o:[7]};Ir[2]={w:[2],i:[3,0],0:[3,0]};Ir[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]};Ir[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]};Ir[5]={"'":[4,0],o:8,l:[5,0]};Ir[6]={'"':[4,0],o:8,l:[6,0]};const x2=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function k2(e){return x2.test(e)}function S2(e){const t=e.charCodeAt(0),n=e.charCodeAt(e.length-1);return t===n&&(t===34||t===39)?e.slice(1,-1):e}function A2(e){if(e==null)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function T2(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:k2(t)?S2(t):"*"+t}function E2(e){const t=[];let n=-1,r=0,s=0,i,o,u,h,d,p,b;const v=[];v[0]=()=>{o===void 0?o=u:o+=u},v[1]=()=>{o!==void 0&&(t.push(o),o=void 0)},v[2]=()=>{v[0](),s++},v[3]=()=>{if(s>0)s--,r=4,v[0]();else{if(s=0,o===void 0||(o=T2(o),o===!1))return!1;v[1]()}};function k(){const x=e[n+1];if(r===5&&x==="'"||r===6&&x==='"')return n++,u="\\"+x,v[0](),!0}for(;r!==null;)if(n++,i=e[n],!(i==="\\"&&k())){if(h=A2(i),b=Ir[r],d=b[h]||b.l||8,d===8||(r=d[0],d[1]!==void 0&&(p=v[d[1]],p&&(u=i,p()===!1))))return;if(r===7)return t}}const Nf=new Map;function N2(e,t){return Ye(e)?e[t]:null}function C2(e,t){if(!Ye(e))return null;let n=Nf.get(t);if(n||(n=E2(t),n&&Nf.set(t,n)),!n)return null;const r=n.length;let s=e,i=0;for(;i<r;){const o=n[i];if(Zd.includes(o)&&Xn(s))return null;const u=s[o];if(u===void 0||ct(s))return null;s=u,i++}return s}const I2=e=>e,M2=e=>"",O2="text",L2=e=>e.length===0?"":Fg(e),R2=$g;function Cf(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function D2(e){const t=Tt(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(Tt(e.named.count)||Tt(e.named.n))?Tt(e.named.count)?e.named.count:Tt(e.named.n)?e.named.n:t:t}function P2(e,t){t.count||(t.count=e),t.n||(t.n=e)}function $2(e={}){const t=e.locale,n=D2(e),r=Ye(e.pluralRules)&&be(t)&&ct(e.pluralRules[t])?e.pluralRules[t]:Cf,s=Ye(e.pluralRules)&&be(t)&&ct(e.pluralRules[t])?Cf:void 0,i=M=>M[r(n,M.length,s)],o=e.list||[],u=M=>o[M],h=e.named||ot();Tt(e.pluralIndex)&&P2(n,h);const d=M=>h[M];function p(M){const q=ct(e.messages)?e.messages(M):Ye(e.messages)?e.messages[M]:!1;return q||(e.parent?e.parent.message(M):M2)}const b=M=>e.modifiers?e.modifiers[M]:I2,v=ze(e.processor)&&ct(e.processor.normalize)?e.processor.normalize:L2,k=ze(e.processor)&&ct(e.processor.interpolate)?e.processor.interpolate:R2,x=ze(e.processor)&&be(e.processor.type)?e.processor.type:O2,E={list:u,named:d,plural:i,linked:(M,...q)=>{const[L,O]=q;let F="text",z="";q.length===1?Ye(L)?(z=L.modifier||z,F=L.type||F):be(L)&&(z=L||z):q.length===2&&(be(L)&&(z=L||z),be(O)&&(F=O||F));const j=p(M)(E),G=F==="vnode"&&mt(j)&&z?j[0]:j;return z?b(z)(G,F):G},message:p,type:x,interpolate:k,normalize:v,values:Xt(ot(),o,h)};return E}let di=null;function F2(e){di=e}f
|
|||
|
|
* vue-i18n v9.14.5
|
|||
|
|
* (c) 2025 kazuya kawaguchi
|
|||
|
|
* Released under the MIT License.
|
|||
|
|
*/const u5="9.14.5";function f5(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(lr().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(lr().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(lr().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(lr().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(lr().__INTLIFY_PROD_DEVTOOLS__=!1)}const h5=H2.__EXTEND_POINT__,ir=go(h5);ir(),ir(),ir(),ir(),ir(),ir(),ir(),ir(),ir();const d1=$n.__EXTEND_POINT__,ln=go(d1),qt={UNEXPECTED_RETURN_TYPE:d1,INVALID_ARGUMENT:ln(),MUST_BE_CALL_SETUP_TOP:ln(),NOT_INSTALLED:ln(),NOT_AVAILABLE_IN_LEGACY_MODE:ln(),REQUIRED_VALUE:ln(),INVALID_VALUE:ln(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:ln(),NOT_INSTALLED_WITH_PROVIDE:ln(),UNEXPECTED_ERROR:ln(),NOT_COMPATIBLE_LEGACY_VUE_I18N:ln(),BRIDGE_SUPPORT_VUE_2_ONLY:ln(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:ln(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:ln(),__EXTEND_POINT__:ln()};function Wt(e,...t){return Os(e,null,void 0)}const h0=Nr("__translateVNode"),d0=Nr("__datetimeParts"),m0=Nr("__numberParts"),m1=Nr("__setPluralRules"),p1=Nr("__injectWithOption"),p0=Nr("__dispose");function mi(e){if(!Ye(e)||Xn(e))return e;for(const t in e)if(Pn(e,t))if(!t.includes("."))Ye(e[t])&&mi(e[t]);else{const n=t.split("."),r=n.length-1;let s=e,i=!1;for(let o=0;o<r;o++){if(n[o]==="__proto__")throw new Error(`unsafe key: ${n[o]}`);if(n[o]in s||(s[n[o]]=ot()),!Ye(s[n[o]])){i=!0;break}s=s[n[o]]}if(i||(Xn(s)?Zd.includes(n[r])||delete e[t]:(s[n[r]]=e[t],delete e[t])),!Xn(s)){const o=s[n[r]];Ye(o)&&mi(o)}}return e}function bo(e,t){const{messages:n,__i18n:r,messageResolver:s,flatJson:i}=t,o=ze(n)?n:mt(r)?ot():{[e]:ot()};if(mt(r)&&r.forEach(u=>{if("locale"in u&&"resource"in u){const{locale:h,resource:d}=u;h?(o[h]=o[h]||ot(),Oa(d,o[h])):Oa(d,o)}else be(u)&&Oa(JSON.parse(u),o)}),s==null&&i)for(const u in o)Pn(o,u)&&mi(o[u]);return o}function g1(e){return e.type}function y1(e,t,n){let r=Ye(t.messages)?t.messages:ot();"__i18nGlobal"in n&&(r=bo(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const s=Object.keys(r);s.length&&s.forEach(i=>{e.mergeLocaleMessage(i,r[i])});{if(Ye(t.datetimeFormats)){const i=Object.keys(t.datetimeFormats);i.length&&i.forEach(o=>{e.mergeDateTimeFormat(o,t.datetimeFormats[o])})}if(Ye(t.numberFormats)){const i=Object.keys(t.numberFormats);i.length&&i.forEach(o=>{e.mergeNumberFormat(o,t.numberFormats[o])})}}}function Vf(e){return pe(wg,null,e,0)}const jf="__INTLIFY_META__",Wf=()=>[],d5=()=>!1;let Gf=0;function Kf(e){return(t,n,r,s)=>e(n,r,ui()||void 0,s)}const m5=()=>{const e=ui();let t=null;return e&&(t=g1(e)[jf])?{[jf]:t}:null};function tc(e={},t){const{__root:n,__injectWithOption:r}=e,s=n===void 0,i=e.flatJson,o=ja?Ge:Dd,u=!!e.translateExistCompatible;let h=Ve(e.inheritLocale)?e.inheritLocale:!0;const d=o(n&&h?n.locale.value:be(e.locale)?e.locale:As),p=o(n&&h?n.fallbackLocale.value:be(e.fallbackLocale)||mt(e.fallbackLocale)||ze(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:d.value),b=o(bo(d.value,e)),v=o(ze(e.datetimeFormats)?e.datetimeFormats:{[d.value]:{}}),k=o(ze(e.numberFormats)?e.numberFormats:{[d.value]:{}});let x=n?n.missingWarn:Ve(e.missingWarn)||Tr(e.missingWarn)?e.missingWarn:!0,A=n?n.fallbackWarn:Ve(e.fallbackWarn)||Tr(e.fallbackWarn)?e.fallbackWarn:!0,E=n?n.fallbackRoot:Ve(e.fallbackRoot)?e.fallbackRoot:!0,M=!!e.fallbackFormat,q=ct(e.missing)?e.missing:null,L=ct(e.missing)?Kf(e.missing):null,O=ct(e.postTranslation)?e.postTranslation:null,F=n?n.warnHtmlMessage:Ve(e.warnHtmlMessage)?e.warnHtmlMessage:!0,z=!!e.escapeParameter;const j=n?n.modifiers:ze(e.modifiers)?e.modifiers:{};let G=e.pluralRules||n&&n.pluralRules,Q;Q=(()=>{s&&Df(null);const J={version:u5,locale:d.value,fallbackLocale:p.value,messages:b.value,modifiers:j,pluralRules:G,missing:L===null?void 0:L,missingWarn:x,fallbackWarn:A,fallbackFormat:M,unresolving:!0,postTranslation:O===null?void 0:O,warnHtmlMessage:F,escapeParameter:z,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framew
|
|||
|
|
<div style="font-family: 'Microsoft YaHei', Arial, sans-serif; padding: 20px;">
|
|||
|
|
${s}
|
|||
|
|
</div>
|
|||
|
|
`,i.style.width="595px",document.body.appendChild(i),console.log("Temporary container created"),console.log("Generating PDF...");const o={margin:10,filename:e.name.replace(/\.(docx?|doc)$/i,".pdf"),image:{type:"jpeg",quality:.98},html2canvas:{scale:2,useCORS:!0},jsPDF:{unit:"mm",format:"a4",orientation:"portrait"}},u=await window.html2pdf().set(o).from(i).outputPdf("blob");console.log("PDF generated successfully, blob size:",u.size),document.body.removeChild(i),console.log("Temporary container removed");const h=new File([u],o.filename,{type:"application/pdf"});return console.log("PDF file created:",h.name,h.size),h}const Y5={class:"markdown-renderer"},J5={class:"render-actions"},Q5={class:"render-actions-left"},Z5={class:"render-content"},e3={key:0,class:"render-shell"},t3=["innerHTML"],n3={key:1,class:"render-shell"},r3=["innerHTML"],s3={key:2,class:"render-shell"},i3={class:"pdf-stage"},a3=["innerHTML"],o3=["innerHTML"],l3={key:3,class:"render-shell"},c3={class:"richtext-stage"},u3=["innerHTML"],f3={key:1,class:"empty-state"},h3=Er({__name:"MarkdownRenderer",props:{content:{type:String,default:""},mode:{type:String,default:"markdown"},flavor:{type:String,default:"gfm"}},setup(e){const t=e,n=Ge(t.flavor),r=Ge("word"),s=Ge(null),i=Ge(null),o=Ge(null),u=Ge(null),h=Ge(null),d=Ge([]);xs(()=>t.flavor,ce=>{n.value=ce});const p=[{label:"CommonMark",value:"commonmark"},{label:"GFM",value:"gfm"}],b=[{label:"Word",value:"word"},{label:"RTF",value:"rtf"}];function v(ce){ce.use(function(te){te.inline.ruler.after("escape","math_inline",function(he,V){const oe=he.pos;if(he.src.charCodeAt(oe)!==36||he.src.charCodeAt(oe+1)!==36)return!1;let Y=oe+2,fe=!1;for(;Y<he.posMax;){if(he.src.charCodeAt(Y)===36&&he.src.charCodeAt(Y+1)===36){fe=!0;break}Y++}if(!fe)return!1;if(!V){const ee=he.push("math_inline","span",0);ee.content=he.src.slice(oe+2,Y),ee.markup="$$"}return he.pos=Y+2,!0}),te.inline.ruler.after("escape","math_inline_single",function(he,V){const oe=he.pos;if(he.src.charCodeAt(oe)!==36||he.src.charCodeAt(oe+1)===36)return!1;let Y=oe+1,fe=!1;for(;Y<he.posMax;){if(he.src.charCodeAt(Y)===36){fe=!0;break}Y++}if(!fe)return!1;if(!V){const ee=he.push("math_inline_single","span",0);ee.content=he.src.slice(oe+1,Y),ee.markup="$"}return he.pos=Y+1,!0})}),ce.renderer.rules.math_inline=function(te,he){return`<span class="math-inline">$$${te[he].content}$$</span>`},ce.renderer.rules.math_inline_single=function(te,he){return`<span class="math-inline">$${te[he].content}$</span>`}}function k(ce){const te=ce==="commonmark"?new Va("commonmark",{html:!0,linkify:!0,typographer:!0,breaks:!1}):new Va({html:!0,linkify:!0,typographer:!0,breaks:!0});return v(te),te}const x=ht(()=>{if(!t.content)return"";const ce=t.mode==="markdown"?n.value:"gfm";return k(ce).render(t.content)});async function A(){if(t.mode!=="pdf"){d.value=[];return}await s0();const ce=u.value;if(!ce){d.value=x.value?[x.value]:[];return}const te=Array.from(ce.children);if(te.length===0){d.value=x.value?[x.value]:[];return}const he=980,V=[];let oe="",Y=0;te.forEach(fe=>{const ee=fe.offsetHeight||fe.scrollHeight||0,Ae=fe.outerHTML;if(oe&&Y+ee>he){V.push(oe),oe=Ae,Y=ee;return}oe+=Ae,Y+=ee}),oe&&V.push(oe),d.value=V.length>0?V:[x.value]}xs(()=>[t.mode,x.value],()=>{A()},{immediate:!0}),mo(()=>{A()});const E=ht(()=>`markdown_render_${new Date().getTime()}`);function M(ce,te){const he=URL.createObjectURL(ce),V=document.createElement("a");V.href=he,V.download=te,document.body.appendChild(V),V.click(),document.body.removeChild(V),URL.revokeObjectURL(he)}function q(ce,te){return`<!DOCTYPE html>
|
|||
|
|
<html lang="zh-CN">
|
|||
|
|
<head>
|
|||
|
|
<meta charset="UTF-8" />
|
|||
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|||
|
|
<title>${te}</title>
|
|||
|
|
<style>
|
|||
|
|
body { font-family: "Microsoft YaHei", Arial, sans-serif; color: #1f2937; padding: 32px; line-height: 1.75; }
|
|||
|
|
h1, h2, h3, h4, h5, h6 { color: #111827; }
|
|||
|
|
pre { background: #f5f7fa; padding: 16px; border-radius: 8px; overflow: auto; }
|
|||
|
|
code { background: #f5f7fa; padding: 2px 4px; border-radius: 4px; }
|
|||
|
|
table { border-collapse: collapse; width: 100%; }
|
|||
|
|
th, td { border: 1px solid #dcdfe6; padding: 8px 12px; text-align: left; }
|
|||
|
|
blockquote { border-left: 4px solid #dcdfe6; margin: 1em 0; padding-left: 1em; color: #606266; }
|
|||
|
|
img { max-width: 100%; }
|
|||
|
|
</style>
|
|||
|
|
</head>
|
|||
|
|
<body>${ce}</body>
|
|||
|
|
</html>`}function L(ce){const te=document.createElement("div");return te.innerHTML=ce,te.innerText||te.textContent||""}function O(ce){return ce.replace(/\\/g,"\\\\").replace(/\{/g,"\\{").replace(/\}/g,"\\}").replace(/\n/g,`\\par
|
|||
|
|
`)}async function F(ce,te){const he=q(ce,te);M(new Blob([he],{type:"text/html;charset=utf-8"}),te)}async function z(ce,te){M(new Blob([ce],{type:"text/markdown;charset=utf-8"}),te)}async function j(ce,te){if(!ce){Fd.error("当前没有可导出的 PDF 内容");return}await s0(),await v1();const he=await window.html2pdf().set({margin:10,filename:te,image:{type:"jpeg",quality:.98},html2canvas:{scale:2,useCORS:!0},jsPDF:{unit:"mm",format:"a4",orientation:"portrait"}}).from(ce).outputPdf("blob");M(he,te)}async function G(ce,te){const he=q(ce,te);M(new Blob(["\uFEFF",he],{type:"application/msword"}),te)}async function Q(ce,te){const he=L(ce),V=`{\\rtf1\\ansi\\deff0 {\\fonttbl{\\f0 Calibri;}}
|
|||
|
|
\\fs24 ${O(he)}}`;M(new Blob([V],{type:"application/rtf"}),te)}async function ye(){if(t.mode==="markdown"){const ce=n.value==="commonmark"?"_commonmark":"_gfm";await z(t.content,`${E.value}${ce}.md`);return}if(t.mode==="html"){await F(x.value,`${E.value}.html`);return}if(t.mode==="pdf"){await j(o.value,`${E.value}.pdf`);return}if(r.value==="word"){await G(x.value,`${E.value}.doc`);return}await Q(x.value,`${E.value}.rtf`)}return(ce,te)=>{const he=dt("el-segmented"),V=dt("el-icon"),oe=dt("el-button"),Y=dt("el-empty");return Ke(),at("div",Y5,[e.content?(Ke(),at(fr,{key:0},[ke("div",J5,[ke("div",Q5,[e.mode==="markdown"?(Ke(),ii(he,{key:0,modelValue:n.value,"onUpdate:modelValue":te[0]||(te[0]=fe=>n.value=fe),options:p,size:"small"},null,8,["modelValue"])):e.mode==="richtext"?(Ke(),ii(he,{key:1,modelValue:r.value,"onUpdate:modelValue":te[1]||(te[1]=fe=>r.value=fe),options:b,size:"small"},null,8,["modelValue"])):ks("",!0)]),pe(oe,{type:"primary",size:"small",class:"action-button primary",onClick:te[2]||(te[2]=fe=>ye())},{icon:Se(()=>[pe(V,null,{default:Se(()=>[pe(Ht($d))]),_:1})]),default:Se(()=>[te[3]||(te[3]=bt(" 下载 ",-1))]),_:1})]),ke("div",Z5,[e.mode==="markdown"?(Ke(),at("div",e3,[ke("div",{ref_key:"markdownRef",ref:s,class:"markdown-content rendered-html",innerHTML:x.value},null,8,t3)])):e.mode==="html"?(Ke(),at("div",n3,[ke("div",{ref_key:"htmlRef",ref:i,class:"markdown-content rendered-html",innerHTML:x.value},null,8,r3)])):e.mode==="pdf"?(Ke(),at("div",s3,[ke("div",i3,[ke("div",{ref_key:"pdfRef",ref:o,class:"pdf-preview-pages"},[(Ke(!0),at(fr,null,fi(d.value,(fe,ee)=>(Ke(),at("div",{key:`pdf-page-${ee}`,class:"pdf-page"},[ke("div",{class:"markdown-content pdf-content",innerHTML:fe},null,8,a3)]))),128))],512)]),ke("div",{ref_key:"pdfMeasureRef",ref:u,class:"pdf-measure markdown-content pdf-content",innerHTML:x.value},null,8,o3)])):(Ke(),at("div",l3,[ke("div",c3,[ke("article",{ref_key:"richtextRef",ref:h,class:"richtext-document"},[ke("div",{class:"markdown-content richtext-content",innerHTML:x.value},null,8,u3)],512)])]))])],64)):(Ke(),at("div",f3,[pe(Y,{description:ce.$t("results.noResults")},null,8,["description"])]))])}}}),d3=wo(h3,[["__scopeId","data-v-12093408"]]),m3="npm2url/dist/index.cjs",p3={jsdelivr:e=>`https://cdn.jsdelivr.net/npm/${e}`,unpkg:e=>`https://unpkg.com/${e}`};async function g3(e,t){const n=await fetch(e,{signal:t});if(!n.ok)throw n;await n.text()}class y3{constructor(){this.providers={...p3},this.provider="jsdelivr"}async getFastestProvider(t=5e3,n=m3){const r=new AbortController;let s=0;try{return await new Promise((i,o)=>{Promise.all(Object.entries(this.providers).map(async([u,h])=>{try{await g3(h(n),r.signal),i(u)}catch{}})).then(()=>o(new Error("All providers failed"))),s=setTimeout(o,t,new Error("Timed out"))})}finally{r.abort(),clearTimeout(s)}}async findFastestProvider(t,n){return this.provider=await this.getFastestProvider(t,n),this.provider}setProvider(t,n){n?this.providers[t]=n:delete this.providers[t]}getFullUrl(t,n=this.provider){if(t.includes("://"))return t;const r=this.providers[n];if(!r)throw new Error(`Provider ${n} not found`);return r(t)}}class Qs{constructor(){this.listeners=[]}tap(t){return this.listeners.push(t),()=>this.revoke(t)}revoke(t){const n=this.listeners.indexOf(t);n>=0&&this.listeners.splice(n,1)}revokeAll(){this.listeners.splice(0)}call(...t){for(const n of this.listeners)n(...t)}}const b3=Math.random().toString(36).slice(2,8);let nh=0;function w3(){return nh+=1,`mm-${b3}-${nh}`}function ms(){}function Zs(e,t){const n=(r,s)=>t(r,()=>{var i;return(i=r.children)==null?void 0:i.map(o=>n(o,r))},s);return n(e)}function v3(e,...t){const n=(e||"").split(" ").filter(Boolean);return t.forEach(r=>{r&&n.indexOf(r)<0&&n.push(r)}),n.join(" ")}function rh(e,t){return(...n)=>t(e,...n)}function _1(){const e={};return e.promise=new Promise((t,n)=>{e.resolve=t,e.reject=n}),e}function _3(e){const t={};return function(...r){const s=`${r[0]}`;let i=t[s];return i||(i={value:e(...r)},t[s]=i),i.value}}function x3(e,t){const n={timer:0};function r(){n.timer&&(window.clearTimeout(n.tim
|
|||
|
|
`:La(e.children):vo(e)?La(e.children):Gr(e)?e.data:""}function Ts(e){return Array.isArray(e)?e.map(Ts).join(""):Gt(e)&&!cc(e)?Ts(e.children):Gr(e)?e.data:""}function Xa(e){return Array.isArray(e)?e.map(Xa).join(""):Gt(e)&&(e.type===tt.Tag||vo(e))?Xa(e.children):Gr(e)?e.data:""}function xo(e){return Gt(e)?e.children:[]}function $1(e){return e.parent||null}function F1(e){const t=$1(e);if(t!=null)return xo(t);const n=[e];let{prev:r,next:s}=e;for(;r!=null;)n.unshift(r),{prev:r}=r;for(;s!=null;)n.push(s),{next:s}=s;return n}function A6(e,t){var n;return(n=e.attribs)===null||n===void 0?void 0:n[t]}function T6(e,t){return e.attribs!=null&&Object.prototype.hasOwnProperty.call(e.attribs,t)&&e.attribs[t]!=null}function E6(e){return e.name}function uc(e){let{next:t}=e;for(;t!==null&&!Fe(t);)({next:t}=t);return t}function fc(e){let{prev:t}=e;for(;t!==null&&!Fe(t);)({prev:t}=t);return t}function Zr(e){if(e.prev&&(e.prev.next=e.next),e.next&&(e.next.prev=e.prev),e.parent){const t=e.parent.children,n=t.lastIndexOf(e);n>=0&&t.splice(n,1)}e.next=null,e.prev=null,e.parent=null}function N6(e,t){const n=t.prev=e.prev;n&&(n.next=t);const r=t.next=e.next;r&&(r.prev=t);const s=t.parent=e.parent;if(s){const i=s.children;i[i.lastIndexOf(e)]=t,e.parent=null}}function C6(e,t){if(Zr(t),t.next=null,t.parent=e,e.children.push(t)>1){const n=e.children[e.children.length-2];n.next=t,t.prev=n}else t.prev=null}function I6(e,t){Zr(t);const{parent:n}=e,r=e.next;if(t.next=r,t.prev=e,e.next=t,t.parent=n,r){if(r.prev=t,n){const s=n.children;s.splice(s.lastIndexOf(r),0,t)}}else n&&n.children.push(t)}function M6(e,t){if(Zr(t),t.parent=e,t.prev=null,e.children.unshift(t)!==1){const n=e.children[1];n.prev=t,t.next=n}else t.next=null}function O6(e,t){Zr(t);const{parent:n}=e;if(n){const r=n.children;r.splice(r.indexOf(e),0,t)}e.prev&&(e.prev.next=t),t.parent=n,t.prev=e.prev,t.next=e,e.prev=t}function ko(e,t,n=!0,r=1/0){return hc(e,Array.isArray(t)?t:[t],n,r)}function hc(e,t,n,r){const s=[],i=[t],o=[0];for(;;){if(o[0]>=i[0].length){if(o.length===1)return s;i.shift(),o.shift();continue}const u=i[0][o[0]++];if(e(u)&&(s.push(u),--r<=0))return s;n&&Gt(u)&&u.children.length>0&&(o.unshift(0),i.unshift(u.children))}}function L6(e,t){return t.find(e)}function dc(e,t,n=!0){let r=null;for(let s=0;s<t.length&&!r;s++){const i=t[s];if(Fe(i))e(i)?r=i:n&&i.children.length>0&&(r=dc(e,i.children,!0));else continue}return r}function B1(e,t){return t.some(n=>Fe(n)&&(e(n)||B1(e,n.children)))}function R6(e,t){const n=[],r=[t],s=[0];for(;;){if(s[0]>=r[0].length){if(r.length===1)return n;r.shift(),s.shift();continue}const i=r[0][s[0]++];Fe(i)&&(e(i)&&n.push(i),i.children.length>0&&(s.unshift(0),r.unshift(i.children)))}}const Ya={tag_name(e){return typeof e=="function"?t=>Fe(t)&&e(t.name):e==="*"?Fe:t=>Fe(t)&&t.name===e},tag_type(e){return typeof e=="function"?t=>e(t.type):t=>t.type===e},tag_contains(e){return typeof e=="function"?t=>Gr(t)&&e(t.data):t=>Gr(t)&&t.data===e}};function z1(e,t){return typeof t=="function"?n=>Fe(n)&&t(n.attribs[e]):n=>Fe(n)&&n.attribs[e]===t}function D6(e,t){return n=>e(n)||t(n)}function q1(e){const t=Object.keys(e).map(n=>{const r=e[n];return Object.prototype.hasOwnProperty.call(Ya,n)?Ya[n](r):z1(n,r)});return t.length===0?null:t.reduce(D6)}function P6(e,t){const n=q1(e);return n?n(t):!0}function $6(e,t,n,r=1/0){const s=q1(e);return s?ko(s,t,n,r):[]}function F6(e,t,n=!0){return Array.isArray(t)||(t=[t]),dc(z1("id",e),t,n)}function Ls(e,t,n=!0,r=1/0){return ko(Ya.tag_name(e),t,n,r)}function B6(e,t,n=!0,r=1/0){return ko(Ya.tag_type(e),t,n,r)}function z6(e){let t=e.length;for(;--t>=0;){const n=e[t];if(t>0&&e.lastIndexOf(n,t-1)>=0){e.splice(t,1);continue}for(let r=n.parent;r;r=r.parent)if(e.includes(r)){e.splice(t,1);break}}return e}var Tn;(function(e){e[e.DISCONNECTED=1]="DISCONNECTED",e[e.PRECEDING=2]="PRECEDING",e[e.FOLLOWING=4]="FOLLOWING",e[e.CONTAINS=8]="CONTAINS",e[e.CONTAINED_BY=16]="CONTAINED_BY"})(Tn||(Tn={}));function U1(e,t){const n=[],r=[];if(e===t)return 0;let s=Gt(e)?e:e.parent;for(;s;)n.unshift(s),s=s.parent;for(s=Gt(t)?t:t.parent;s;)r.unshift(s),s=
|
|||
|
|
:is(button, input, select, textarea, optgroup, option)[disabled],
|
|||
|
|
optgroup[disabled] > option,
|
|||
|
|
fieldset[disabled]:not(fieldset[disabled] legend:first-of-type *)
|
|||
|
|
)`,enabled:":not(:disabled)",checked:":is(:is(input[type=radio], input[type=checkbox])[checked], option:selected)",required:":is(input, select, textarea)[required]",optional:":is(input, select, textarea):not([required])",selected:"option:is([selected], select:not([multiple]):not(:has(> option[selected])) > :first-of-type)",checkbox:"[type=checkbox]",file:"[type=file]",password:"[type=password]",radio:"[type=radio]",reset:"[type=reset]",image:"[type=image]",submit:"[type=submit]",parent:":not(:empty)",header:":is(h1, h2, h3, h4, h5, h6)",button:":is(button, input[type=button])",input:":is(input, textarea, select, button)",text:"input:is(:not([type!='']), [type=text])"},em={};function I7(e,t){return e===He.falseFunc?He.falseFunc:n=>t.isTag(n)&&e(n)}function tm(e,t){const n=t.getSiblings(e);if(n.length<=1)return[];const r=n.indexOf(e);return r<0||r===n.length-1?[]:n.slice(r+1).filter(t.isTag)}function S0(e){return{xmlMode:!!e.xmlMode,lowerCaseAttributeNames:!!e.lowerCaseAttributeNames,lowerCaseTags:!!e.lowerCaseTags,quirksMode:!!e.quirksMode,cacheResults:!!e.cacheResults,pseudos:e.pseudos,adapter:e.adapter,equals:e.equals}}const Fl=(e,t,n,r,s)=>{const i=s(t,S0(n),r);return i===He.trueFunc?e:i===He.falseFunc?He.falseFunc:o=>i(o)&&e(o)},Bl={is:Fl,matches:Fl,where:Fl,not(e,t,n,r,s){const i=s(t,S0(n),r);return i===He.falseFunc?e:i===He.trueFunc?He.falseFunc:o=>!i(o)&&e(o)},has(e,t,n,r,s){const{adapter:i}=n,o=S0(n);o.relativeSelector=!0;const u=t.some(p=>p.some(pc))?[em]:void 0,h=s(t,o,u);if(h===He.falseFunc)return He.falseFunc;const d=I7(h,i);if(u&&h!==He.trueFunc){const{shouldTestNextSiblings:p=!1}=h;return b=>{if(!e(b))return!1;u[0]=b;const v=i.getChildren(b),k=p?[...v,...tm(b,i)]:v;return i.existsOne(d,k)}}return p=>e(p)&&i.existsOne(d,i.getChildren(p))}};function M7(e,t,n,r,s){var i;const{name:o,data:u}=t;if(Array.isArray(u)){if(!(o in Bl))throw new Error(`Unknown pseudo-class :${o}(${u})`);return Bl[o](e,u,n,r,s)}const h=(i=n.pseudos)===null||i===void 0?void 0:i[o],d=typeof h=="string"?h:C7[o];if(typeof d=="string"){if(u!=null)throw new Error(`Pseudo ${o} doesn't have any arguments`);const p=Ao(d);return Bl.is(e,p,n,r,s)}if(typeof h=="function")return wh(h,o,u,1),p=>h(p,u)&&e(p);if(o in k0)return k0[o](e,u,n,r);if(o in bh){const p=bh[o];return wh(p,o,u,2),b=>p(b,n,u)&&e(b)}throw new Error(`Unknown pseudo-class :${o}`)}function zl(e,t){const n=t.getParent(e);return n&&t.isTag(n)?n:null}function O7(e,t,n,r,s){const{adapter:i,equals:o}=n;switch(t.type){case Ie.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case Ie.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case Ie.Attribute:{if(t.namespace!=null)throw new Error("Namespaced attributes are not yet supported by css-select");return(!n.xmlMode||n.lowerCaseAttributeNames)&&(t.name=t.name.toLowerCase()),S7[t.action](e,t,n)}case Ie.Pseudo:return M7(e,t,n,r,s);case Ie.Tag:{if(t.namespace!=null)throw new Error("Namespaced tag names are not yet supported by css-select");let{name:u}=t;return(!n.xmlMode||n.lowerCaseTags)&&(u=u.toLowerCase()),function(d){return i.getName(d)===u&&e(d)}}case Ie.Descendant:{if(n.cacheResults===!1||typeof WeakSet>"u")return function(d){let p=d;for(;p=zl(p,i);)if(e(p))return!0;return!1};const u=new WeakSet;return function(d){let p=d;for(;p=zl(p,i);)if(!u.has(p)){if(i.isTag(p)&&e(p))return!0;u.add(p)}return!1}}case"_flexibleDescendant":return function(h){let d=h;do if(e(d))return!0;while(d=zl(d,i));return!1};case Ie.Parent:return function(h){return i.getChildren(h).some(d=>i.isTag(d)&&e(d))};case Ie.Child:return function(h){const d=i.getParent(h);return d!=null&&i.isTag(d)&&e(d)};case Ie.Sibling:return function(h){const d=i.getSiblings(h);for(let p=0;p<d.length;p++){const b=d[p];if(o(h,b))break;if(i.isTag(b)&&e(b))return!0}return!1};case Ie.Adjacent:return i.prevElementSibling?function(h){const d=i.prevElementSibling(h);return d!=null&&e(d)}:function(h){const d=i.getSiblings(h);let p;for(let b=0;b<d.length;b++){const v=d[b];if(o(h,v))break;i.isTag(v)&&(p=v)}return!!p&&e(p)};ca
|
|||
|
|
`)})):{name:s,value:i.replace(_h,`\r
|
|||
|
|
`)}}).toArray()}const sy=Object.freeze(Object.defineProperty({__proto__:null,serialize:ny,serializeArray:ry},Symbol.toStringTag,{value:"Module"}));function iy(e){var t;return typeof e=="string"?{selector:e,value:"textContent"}:{selector:e.selector,value:(t=e.value)!==null&&t!==void 0?t:"textContent"}}function ay(e){const t={};for(const n in e){const r=e[n],s=Array.isArray(r),{selector:i,value:o}=iy(s?r[0]:r),u=typeof o=="function"?o:typeof o=="string"?h=>this._make(h).prop(o):h=>this._make(h).extract(o);if(s)t[n]=this._findBySelector(i,Number.POSITIVE_INFINITY).map((h,d)=>u(d,n,t)).get();else{const h=this._findBySelector(i,1);t[n]=h.length>0?u(h[0],n,t):void 0}}return t}const oy=Object.freeze(Object.defineProperty({__proto__:null,extract:ay},Symbol.toStringTag,{value:"Module"}));class Ni{constructor(t,n,r){if(this.length=0,this.options=r,this._root=n,t){for(let s=0;s<t.length;s++)this[s]=t[s];this.length=t.length}}}Ni.prototype.cheerio="[cheerio object]";Ni.prototype.splice=Array.prototype.splice;Ni.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator];Object.assign(Ni.prototype,h7,N8,Y8,ey,sy,oy);function ly(e,t){return function n(r,s,i=!0){if(r==null)throw new Error("cheerio.load() expects a string");const o=b0(s),u=e(r,o,i,null);class h extends Ni{_make(b,v){const k=d(b,v);return k.prevObject=this,k}_parse(b,v,k,x){return e(b,v,k,x)}_render(b){return t(b,this.options)}}function d(p,b,v=u,k){if(p&&hr(p))return p;const x=b0(k,o),A=typeof v=="string"?[e(v,x,!1,null)]:"length"in v?v:[v],E=hr(A)?A:new h(A,null,x);if(E._root=E,!p)return new h(void 0,E,x);const M=typeof p=="string"&&_0(p)?e(p,x,!1,null).children:cy(p)?[p]:Array.isArray(p)?p:void 0,q=new h(M,E,x);if(M)return q;if(typeof p!="string")throw new TypeError("Unexpected type of selector");let L=p;const O=b?typeof b=="string"?_0(b)?new h([e(b,x,!1,null)],E,x):(L=`${b} ${L}`,E):hr(b)?b:new h(Array.isArray(b)?b:[b],E,x):E;return O?O.find(L):q}return Object.assign(d,e7,{load:n,_root:u,_options:o,fn:h.prototype,prototype:h.prototype}),d}}function cy(e){return!!e.name||e.type==="root"||e.type==="text"||e.type==="comment"}var Me;(function(e){e[e.Tab=9]="Tab",e[e.NewLine=10]="NewLine",e[e.FormFeed=12]="FormFeed",e[e.CarriageReturn=13]="CarriageReturn",e[e.Space=32]="Space",e[e.ExclamationMark=33]="ExclamationMark",e[e.Number=35]="Number",e[e.Amp=38]="Amp",e[e.SingleQuote=39]="SingleQuote",e[e.DoubleQuote=34]="DoubleQuote",e[e.Dash=45]="Dash",e[e.Slash=47]="Slash",e[e.Zero=48]="Zero",e[e.Nine=57]="Nine",e[e.Semi=59]="Semi",e[e.Lt=60]="Lt",e[e.Eq=61]="Eq",e[e.Gt=62]="Gt",e[e.Questionmark=63]="Questionmark",e[e.UpperA=65]="UpperA",e[e.LowerA=97]="LowerA",e[e.UpperF=70]="UpperF",e[e.LowerF=102]="LowerF",e[e.UpperZ=90]="UpperZ",e[e.LowerZ=122]="LowerZ",e[e.LowerX=120]="LowerX",e[e.OpeningSquareBracket=91]="OpeningSquareBracket"})(Me||(Me={}));var ae;(function(e){e[e.Text=1]="Text",e[e.BeforeTagName=2]="BeforeTagName",e[e.InTagName=3]="InTagName",e[e.InSelfClosingTag=4]="InSelfClosingTag",e[e.BeforeClosingTagName=5]="BeforeClosingTagName",e[e.InClosingTagName=6]="InClosingTagName",e[e.AfterClosingTagName=7]="AfterClosingTagName",e[e.BeforeAttributeName=8]="BeforeAttributeName",e[e.InAttributeName=9]="InAttributeName",e[e.AfterAttributeName=10]="AfterAttributeName",e[e.BeforeAttributeValue=11]="BeforeAttributeValue",e[e.InAttributeValueDq=12]="InAttributeValueDq",e[e.InAttributeValueSq=13]="InAttributeValueSq",e[e.InAttributeValueNq=14]="InAttributeValueNq",e[e.BeforeDeclaration=15]="BeforeDeclaration",e[e.InDeclaration=16]="InDeclaration",e[e.InProcessingInstruction=17]="InProcessingInstruction",e[e.BeforeComment=18]="BeforeComment",e[e.CDATASequence=19]="CDATASequence",e[e.InSpecialComment=20]="InSpecialComment",e[e.InCommentLike=21]="InCommentLike",e[e.BeforeSpecialS=22]="BeforeSpecialS",e[e.BeforeSpecialT=23]="BeforeSpecialT",e[e.SpecialStartSequence=24]="SpecialStartSequence",e[e.InSpecialTag=25]="InSpecialTag",e[e.InEntity=26]="InEntity"})(ae||(ae={}));function or(e){return e===Me.Space||e===Me.NewLine||e===Me.Tab||e===Me.FormFeed||e===Me.CarriageReturn}function wa(e)
|
|||
|
|
`)}}rn.defaultYaml={explicit:!1,version:"1.2"};rn.defaultTags={"!!":"tag:yaml.org,2002:"};function bm(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){const n=`Anchor must not contain whitespace or control characters: ${JSON.stringify(e)}`;throw new Error(n)}return!0}function wm(e){const t=new Set;return $s(e,{Value(n,r){r.anchor&&t.add(r.anchor)}}),t}function vm(e,t){for(let n=1;;++n){const r=`${e}${n}`;if(!t.has(r))return r}}function qy(e,t){const n=[],r=new Map;let s=null;return{onAnchor:i=>{n.push(i),s??(s=wm(e));const o=vm(t,s);return s.add(o),o},setAnchors:()=>{for(const i of n){const o=r.get(i);if(typeof o=="object"&&o.anchor&&(ut(o.node)||Et(o.node)))o.node.anchor=o.anchor;else{const u=new Error("Failed to resolve repeated object (this should not happen)");throw u.source=i,u}}},sourceObjects:r}}function gs(e,t,n,r){if(r&&typeof r=="object")if(Array.isArray(r))for(let s=0,i=r.length;s<i;++s){const o=r[s],u=gs(e,r,String(s),o);u===void 0?delete r[s]:u!==o&&(r[s]=u)}else if(r instanceof Map)for(const s of Array.from(r.keys())){const i=r.get(s),o=gs(e,r,s,i);o===void 0?r.delete(s):o!==i&&r.set(s,o)}else if(r instanceof Set)for(const s of Array.from(r)){const i=gs(e,r,s,s);i===void 0?r.delete(s):i!==s&&(r.delete(s),r.add(i))}else for(const[s,i]of Object.entries(r)){const o=gs(e,r,s,i);o===void 0?delete r[s]:o!==i&&(r[s]=o)}return e.call(t,n,r)}function Cn(e,t,n){if(Array.isArray(e))return e.map((r,s)=>Cn(r,String(s),n));if(e&&typeof e.toJSON=="function"){if(!n||!ym(e))return e.toJSON(t,n);const r={aliasCount:0,count:1,res:void 0};n.anchors.set(e,r),n.onCreate=i=>{r.res=i,delete n.onCreate};const s=e.toJSON(t,n);return n.onCreate&&n.onCreate(s),s}return typeof e=="bigint"&&!(n!=null&&n.keep)?Number(e):e}class kc{constructor(t){Object.defineProperty(this,In,{value:t})}clone(){const t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(t.range=this.range.slice()),t}toJS(t,{mapAsMap:n,maxAliasCount:r,onAnchor:s,reviver:i}={}){if(!To(t))throw new TypeError("A document argument is required");const o={anchors:new Map,doc:t,keep:!0,mapAsMap:n===!0,mapKeyWarned:!1,maxAliasCount:typeof r=="number"?r:100},u=Cn(this,"",o);if(typeof s=="function")for(const{count:h,res:d}of o.anchors.values())s(d,h);return typeof i=="function"?gs(i,{"":u},"",u):u}}class Sc extends kc{constructor(t){super(xc),this.source=t,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(t,n){let r;n!=null&&n.aliasResolveCache?r=n.aliasResolveCache:(r=[],$s(t,{Node:(i,o)=>{(es(o)||ym(o))&&r.push(o)}}),n&&(n.aliasResolveCache=r));let s;for(const i of r){if(i===this)break;i.anchor===this.source&&(s=i)}return s}toJSON(t,n){if(!n)return{source:this.source};const{anchors:r,doc:s,maxAliasCount:i}=n,o=this.resolve(s,n);if(!o){const h=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(h)}let u=r.get(o);if(u||(Cn(o,null,n),u=r.get(o)),(u==null?void 0:u.res)===void 0){const h="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(h)}if(i>=0&&(u.count+=1,u.aliasCount===0&&(u.aliasCount=Ra(s,o,r)),u.count*u.aliasCount>i)){const h="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(h)}return u.res}toString(t,n,r){const s=`*${this.source}`;if(t){if(bm(this.source),t.options.verifyAliasOrder&&!t.anchors.has(this.source)){const i=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(i)}if(t.implicitKey)return`${s} `}return s}}function Ra(e,t,n){if(es(t)){const r=t.resolve(e),s=n&&r&&n.get(r);return s?s.count*s.aliasCount:0}else if(Et(t)){let r=0;for(const s of t.items){const i=Ra(e,s,n);i>r&&(r=i)}return r}else if(Ct(t)){const r=Ra(e,t.key,n),s=Ra(e,t.value,n);return Math.max(r,s)}return 1}const _m=e=>!e||typeof e!="function"&&typeof e!="object";class qe extends kc{constructor(t){super(Jn),this.value=t}toJSON(t,n){return n!=null&&n.keep?this.value:Cn(this.value,t,n)}toString(){return String(this.value)}}qe.BLOCK_FOLDED="BLOCK_FOLDED";qe.BLOCK_L
|
|||
|
|
`)?cr(n,t):n.includes(`
|
|||
|
|
`)?`
|
|||
|
|
`+cr(n,t):(e.endsWith(" ")?"":" ")+n,km="flow",N0="block",Da="quoted";function Eo(e,t,n="flow",{indentAtStart:r,lineWidth:s=80,minContentWidth:i=20,onFold:o,onOverflow:u}={}){if(!s||s<0)return e;s<i&&(i=0);const h=Math.max(1+i,1+s-t.length);if(e.length<=h)return e;const d=[],p={};let b=s-t.length;typeof r=="number"&&(r>s-Math.max(2,i)?d.push(0):b=s-r);let v,k,x=!1,A=-1,E=-1,M=-1;n===N0&&(A=Nh(e,A,t.length),A!==-1&&(b=A+h));for(let L;L=e[A+=1];){if(n===Da&&L==="\\"){switch(E=A,e[A+1]){case"x":A+=3;break;case"u":A+=5;break;case"U":A+=9;break;default:A+=1}M=A}if(L===`
|
|||
|
|
`)n===N0&&(A=Nh(e,A,t.length)),b=A+t.length+h,v=void 0;else{if(L===" "&&k&&k!==" "&&k!==`
|
|||
|
|
`&&k!==" "){const O=e[A+1];O&&O!==" "&&O!==`
|
|||
|
|
`&&O!==" "&&(v=A)}if(A>=b)if(v)d.push(v),b=v+h,v=void 0;else if(n===Da){for(;k===" "||k===" ";)k=L,L=e[A+=1],x=!0;const O=A>M+1?A-2:E-1;if(p[O])return e;d.push(O),p[O]=!0,b=O+h,v=void 0}else x=!0}k=L}if(x&&u&&u(),d.length===0)return e;o&&o();let q=e.slice(0,d[0]);for(let L=0;L<d.length;++L){const O=d[L],F=d[L+1]||e.length;O===0?q=`
|
|||
|
|
${t}${e.slice(0,F)}`:(n===Da&&p[O]&&(q+=`${e[O]}\\`),q+=`
|
|||
|
|
${t}${e.slice(O+1,F)}`)}return q}function Nh(e,t,n){let r=t,s=t+1,i=e[s];for(;i===" "||i===" ";)if(t<s+n)i=e[++t];else{do i=e[++t];while(i&&i!==`
|
|||
|
|
`);r=t,s=t+1,i=e[s]}return r}const No=(e,t)=>({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth}),Co=e=>/^(%|---|\.\.\.)/m.test(e);function jy(e,t,n){if(!t||t<0)return!1;const r=t-n,s=e.length;if(s<=r)return!1;for(let i=0,o=0;i<s;++i)if(e[i]===`
|
|||
|
|
`){if(i-o>r)return!0;if(o=i+1,s-o<=r)return!1}return!0}function li(e,t){const n=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return n;const{implicitKey:r}=t,s=t.options.doubleQuotedMinMultiLineLength,i=t.indent||(Co(e)?" ":"");let o="",u=0;for(let h=0,d=n[h];d;d=n[++h])if(d===" "&&n[h+1]==="\\"&&n[h+2]==="n"&&(o+=n.slice(u,h)+"\\ ",h+=1,u=h,d="\\"),d==="\\")switch(n[h+1]){case"u":{o+=n.slice(u,h);const p=n.substr(h+2,4);switch(p){case"0000":o+="\\0";break;case"0007":o+="\\a";break;case"000b":o+="\\v";break;case"001b":o+="\\e";break;case"0085":o+="\\N";break;case"00a0":o+="\\_";break;case"2028":o+="\\L";break;case"2029":o+="\\P";break;default:p.substr(0,2)==="00"?o+="\\x"+p.substr(2):o+=n.substr(h,6)}h+=5,u=h+1}break;case"n":if(r||n[h+2]==='"'||n.length<s)h+=1;else{for(o+=n.slice(u,h)+`
|
|||
|
|
|
|||
|
|
`;n[h+2]==="\\"&&n[h+3]==="n"&&n[h+4]!=='"';)o+=`
|
|||
|
|
`,h+=2;o+=i,n[h+2]===" "&&(o+="\\"),h+=1,u=h+1}break;default:h+=1}return o=u?o+n.slice(u):n,r?o:Eo(o,i,Da,No(t,!1))}function C0(e,t){if(t.options.singleQuote===!1||t.implicitKey&&e.includes(`
|
|||
|
|
`)||/[ \t]\n|\n[ \t]/.test(e))return li(e,t);const n=t.indent||(Co(e)?" ":""),r="'"+e.replace(/'/g,"''").replace(/\n+/g,`$&
|
|||
|
|
${n}`)+"'";return t.implicitKey?r:Eo(r,n,km,No(t,!1))}function ys(e,t){const{singleQuote:n}=t.options;let r;if(n===!1)r=li;else{const s=e.includes('"'),i=e.includes("'");s&&!i?r=C0:i&&!s?r=li:r=n?C0:li}return r(e,t)}let I0;try{I0=new RegExp(`(^|(?<!
|
|||
|
|
))
|
|||
|
|
+(?!
|
|||
|
|
|$)`,"g")}catch{I0=/\n+(?!\n|$)/g}function Pa({comment:e,type:t,value:n},r,s,i){const{blockQuote:o,commentString:u,lineWidth:h}=r.options;if(!o||/\n[\t ]+$/.test(n))return ys(n,r);const d=r.indent||(r.forceBlockIndent||Co(n)?" ":""),p=o==="literal"?!0:o==="folded"||t===qe.BLOCK_FOLDED?!1:t===qe.BLOCK_LITERAL?!0:!jy(n,h,d.length);if(!n)return p?`|
|
|||
|
|
`:`>
|
|||
|
|
`;let b,v;for(v=n.length;v>0;--v){const F=n[v-1];if(F!==`
|
|||
|
|
`&&F!==" "&&F!==" ")break}let k=n.substring(v);const x=k.indexOf(`
|
|||
|
|
`);x===-1?b="-":n===k||x!==k.length-1?(b="+",i&&i()):b="",k&&(n=n.slice(0,-k.length),k[k.length-1]===`
|
|||
|
|
`&&(k=k.slice(0,-1)),k=k.replace(I0,`$&${d}`));let A=!1,E,M=-1;for(E=0;E<n.length;++E){const F=n[E];if(F===" ")A=!0;else if(F===`
|
|||
|
|
`)M=E;else break}let q=n.substring(0,M<E?M+1:E);q&&(n=n.substring(q.length),q=q.replace(/\n+/g,`$&${d}`));let O=(A?d?"2":"1":"")+b;if(e&&(O+=" "+u(e.replace(/ ?[\r\n]+/g," ")),s&&s()),!p){const F=n.replace(/\n+/g,`
|
|||
|
|
$&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${d}`);let z=!1;const j=No(r,!0);o!=="folded"&&t!==qe.BLOCK_FOLDED&&(j.onOverflow=()=>{z=!0});const G=Eo(`${q}${F}${k}`,d,N0,j);if(!z)return`>${O}
|
|||
|
|
${d}${G}`}return n=n.replace(/\n+/g,`$&${d}`),`|${O}
|
|||
|
|
${d}${q}${n}${k}`}function Wy(e,t,n,r){const{type:s,value:i}=e,{actualString:o,implicitKey:u,indent:h,indentStep:d,inFlow:p}=t;if(u&&i.includes(`
|
|||
|
|
`)||p&&/[[\]{},]/.test(i))return ys(i,t);if(/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(i))return u||p||!i.includes(`
|
|||
|
|
`)?ys(i,t):Pa(e,t,n,r);if(!u&&!p&&s!==qe.PLAIN&&i.includes(`
|
|||
|
|
`))return Pa(e,t,n,r);if(Co(i)){if(h==="")return t.forceBlockIndent=!0,Pa(e,t,n,r);if(u&&h===d)return ys(i,t)}const b=i.replace(/\n+/g,`$&
|
|||
|
|
${h}`);if(o){const v=A=>{var E;return A.default&&A.tag!=="tag:yaml.org,2002:str"&&((E=A.test)==null?void 0:E.test(b))},{compat:k,tags:x}=t.doc.schema;if(x.some(v)||k!=null&&k.some(v))return ys(i,t)}return u?b:Eo(b,h,km,No(t,!1))}function Ac(e,t,n,r){const{implicitKey:s,inFlow:i}=t,o=typeof e.value=="string"?e:Object.assign({},e,{value:String(e.value)});let{type:u}=e;u!==qe.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(o.value)&&(u=qe.QUOTE_DOUBLE);const h=p=>{switch(p){case qe.BLOCK_FOLDED:case qe.BLOCK_LITERAL:return s||i?ys(o.value,t):Pa(o,t,n,r);case qe.QUOTE_DOUBLE:return li(o.value,t);case qe.QUOTE_SINGLE:return C0(o.value,t);case qe.PLAIN:return Wy(o,t,n,r);default:return null}};let d=h(u);if(d===null){const{defaultKeyType:p,defaultStringType:b}=t.options,v=s&&p||b;if(d=h(v),d===null)throw new Error(`Unsupported default string type ${v}`)}return d}function Sm(e,t){const n=Object.assign({blockQuote:!0,commentString:Vy,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:!1,singleQuote:null,trueStr:"true",verifyAliasOrder:!0},e.schema.toStringOptions,t);let r;switch(n.collectionStyle){case"block":r=!1;break;case"flow":r=!0;break;default:r=null}return{anchors:new Set,doc:e,flowCollectionPadding:n.flowCollectionPadding?" ":"",indent:"",indentStep:typeof n.indent=="number"?" ".repeat(n.indent):" ",inFlow:r,options:n}}function Gy(e,t){var s;if(t.tag){const i=e.filter(o=>o.tag===t.tag);if(i.length>0)return i.find(o=>o.format===t.format)??i[0]}let n,r;if(ut(t)){r=t.value;let i=e.filter(o=>{var u;return(u=o.identify)==null?void 0:u.call(o,r)});if(i.length>1){const o=i.filter(u=>u.test);o.length>0&&(i=o)}n=i.find(o=>o.format===t.format)??i.find(o=>!o.format)}else r=t,n=e.find(i=>i.nodeClass&&r instanceof i.nodeClass);if(!n){const i=((s=r==null?void 0:r.constructor)==null?void 0:s.name)??(r===null?"null":typeof r);throw new Error(`Tag not resolved for ${i} value`)}return n}function Ky(e,t,{anchors:n,doc:r}){if(!r.directives)return"";const s=[],i=(ut(e)||Et(e))&&e.anchor;i&&bm(i)&&(n.add(i),s.push(`&${i}`));const o=e.tag??(t.default?null:t.tag);return o&&s.push(r.directives.tagString(o)),s.join(" ")}function Es(e,t,n,r){var h;if(Ct(e))return e.toString(t,n,r);if(es(e)){if(t.doc.directives)return e.toString(t);if((h=t.resolvedAliases)!=null&&h.has(e))throw new TypeError("Cannot stringify circular structure without alias nodes");t.resolvedAliases?t.resolvedAliases.add(e):t.resolvedAliases=new Set([e]),e=e.resolve(t.doc)}let s;const i=Nt(e)?e:t.doc.createNode(e,{onTagObj:d=>s=d});s??(s=Gy(t.doc.schema.tags,i));const o=Ky(i,s,t);o.length>0&&(t.indentAtStart=(t.indentAtStart??0)+o.length+1);const u=typeof s.stringify=="function"?s.stringify(i,t,n,r):ut(i)?Ac(i,t,n,r):i.toString(t,n,r);return o?ut(i)||u[0]==="{"||u[0]==="["?`${o} ${u}`:`${o}
|
|||
|
|
${t.indent}${u}`:u}function Xy({key:e,value:t},n,r,s){const{allNullValues:i,doc:o,indent:u,indentStep:h,options:{commentString:d,indentSeq:p,simpleKeys:b}}=n;let v=Nt(e)&&e.comment||null;if(b){if(v)throw new Error("With simple keys, key nodes cannot have comments");if(Et(e)||!Nt(e)&&typeof e=="object"){const j="With simple keys, collection cannot be used as a key value";throw new Error(j)}}let k=!b&&(!e||v&&t==null&&!n.inFlow||Et(e)||(ut(e)?e.type===qe.BLOCK_FOLDED||e.type===qe.BLOCK_LITERAL:typeof e=="object"));n=Object.assign({},n,{allNullValues:!1,implicitKey:!k&&(b||!i),indent:u+h});let x=!1,A=!1,E=Es(e,n,()=>x=!0,()=>A=!0);if(!k&&!n.inFlow&&E.length>1024){if(b)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");k=!0}if(n.inFlow){if(i||t==null)return x&&r&&r(),E===""?"?":k?`? ${E}`:E}else if(i&&!b||t==null&&k)return E=`? ${E}`,v&&!x?E+=qr(E,n.indent,d(v)):A&&s&&s(),E;x&&(v=null),k?(v&&(E+=qr(E,n.indent,d(v))),E=`? ${E}
|
|||
|
|
${u}:`):(E=`${E}:`,v&&(E+=qr(E,n.indent,d(v))));let M,q,L;Nt(t)?(M=!!t.spaceBefore,q=t.commentBefore,L=t.comment):(M=!1,q=null,L=null,t&&typeof t=="object"&&(t=o.createNode(t))),n.implicitKey=!1,!k&&!v&&ut(t)&&(n.indentAtStart=E.length+1),A=!1,!p&&h.length>=2&&!n.inFlow&&!k&&Ii(t)&&!t.flow&&!t.tag&&!t.anchor&&(n.indent=n.indent.substring(2));let O=!1;const F=Es(t,n,()=>O=!0,()=>A=!0);let z=" ";if(v||M||q){if(z=M?`
|
|||
|
|
`:"",q){const j=d(q);z+=`
|
|||
|
|
${cr(j,n.indent)}`}F===""&&!n.inFlow?z===`
|
|||
|
|
`&&L&&(z=`
|
|||
|
|
|
|||
|
|
`):z+=`
|
|||
|
|
${n.indent}`}else if(!k&&Et(t)){const j=F[0],G=F.indexOf(`
|
|||
|
|
`),Q=G!==-1,ye=n.inFlow??t.flow??t.items.length===0;if(Q||!ye){let ce=!1;if(Q&&(j==="&"||j==="!")){let te=F.indexOf(" ");j==="&"&&te!==-1&&te<G&&F[te+1]==="!"&&(te=F.indexOf(" ",te+1)),(te===-1||G<te)&&(ce=!0)}ce||(z=`
|
|||
|
|
${n.indent}`)}}else(F===""||F[0]===`
|
|||
|
|
`)&&(z="");return E+=z+F,n.inFlow?O&&r&&r():L&&!O?E+=qr(E,n.indent,d(L)):A&&s&&s(),E}function Am(e,t){(e==="debug"||e==="warn")&&console.warn(t)}const va="<<",dr={identify:e=>e===va||typeof e=="symbol"&&e.description===va,default:"key",tag:"tag:yaml.org,2002:merge",test:/^<<$/,resolve:()=>Object.assign(new qe(Symbol(va)),{addToJSMap:Tm}),stringify:()=>va},Yy=(e,t)=>(dr.identify(t)||ut(t)&&(!t.type||t.type===qe.PLAIN)&&dr.identify(t.value))&&(e==null?void 0:e.doc.schema.tags.some(n=>n.tag===dr.tag&&n.default));function Tm(e,t,n){if(n=e&&es(n)?n.resolve(e.doc):n,Ii(n))for(const r of n.items)ql(e,t,r);else if(Array.isArray(n))for(const r of n)ql(e,t,r);else ql(e,t,n)}function ql(e,t,n){const r=e&&es(n)?n.resolve(e.doc):n;if(!Ci(r))throw new Error("Merge sources must be maps or map aliases");const s=r.toJSON(null,e,Map);for(const[i,o]of s)t instanceof Map?t.has(i)||t.set(i,o):t instanceof Set?t.add(i):Object.prototype.hasOwnProperty.call(t,i)||Object.defineProperty(t,i,{value:o,writable:!0,enumerable:!0,configurable:!0});return t}function Em(e,t,{key:n,value:r}){if(Nt(n)&&n.addToJSMap)n.addToJSMap(e,t,r);else if(Yy(e,n))Tm(e,t,r);else{const s=Cn(n,"",e);if(t instanceof Map)t.set(s,Cn(r,s,e));else if(t instanceof Set)t.add(s);else{const i=Jy(n,s,e),o=Cn(r,i,e);i in t?Object.defineProperty(t,i,{value:o,writable:!0,enumerable:!0,configurable:!0}):t[i]=o}}return t}function Jy(e,t,n){if(t===null)return"";if(typeof t!="object")return String(t);if(Nt(e)&&(n!=null&&n.doc)){const r=Sm(n.doc,{});r.anchors=new Set;for(const i of n.anchors.keys())r.anchors.add(i.anchor);r.inFlow=!0,r.inStringifyKey=!0;const s=e.toString(r);if(!n.mapKeyWarned){let i=JSON.stringify(s);i.length>40&&(i=i.substring(0,36)+'..."'),Am(n.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${i}. Set mapAsMap: true to use object keys.`),n.mapKeyWarned=!0}return s}return JSON.stringify(t)}function Tc(e,t,n){const r=vi(e,void 0,n),s=vi(t,void 0,n);return new sn(r,s)}class sn{constructor(t,n=null){Object.defineProperty(this,In,{value:gm}),this.key=t,this.value=n}clone(t){let{key:n,value:r}=this;return Nt(n)&&(n=n.clone(t)),Nt(r)&&(r=r.clone(t)),new sn(n,r)}toJSON(t,n){const r=n!=null&&n.mapAsMap?new Map:{};return Em(n,r,this)}toString(t,n,r){return t!=null&&t.doc?Xy(this,t,n,r):JSON.stringify(this)}}function Nm(e,t,n){return(t.inFlow??e.flow?Zy:Qy)(e,t,n)}function Qy({comment:e,items:t},n,{blockItemPrefix:r,flowChars:s,itemIndent:i,onChompKeep:o,onComment:u}){const{indent:h,options:{commentString:d}}=n,p=Object.assign({},n,{indent:i,type:null});let b=!1;const v=[];for(let x=0;x<t.length;++x){const A=t[x];let E=null;if(Nt(A))!b&&A.spaceBefore&&v.push(""),so(n,v,A.commentBefore,b),A.comment&&(E=A.comment);else if(Ct(A)){const q=Nt(A.key)?A.key:null;q&&(!b&&q.spaceBefore&&v.push(""),so(n,v,q.commentBefore,b))}b=!1;let M=Es(A,p,()=>E=null,()=>b=!0);E&&(M+=qr(M,i,d(E))),b&&E&&(b=!1),v.push(r+M)}let k;if(v.length===0)k=s.start+s.end;else{k=v[0];for(let x=1;x<v.length;++x){const A=v[x];k+=A?`
|
|||
|
|
${h}${A}`:`
|
|||
|
|
`}}return e?(k+=`
|
|||
|
|
`+cr(d(e),h),u&&u()):b&&o&&o(),k}function Zy({items:e},t,{flowChars:n,itemIndent:r}){const{indent:s,indentStep:i,flowCollectionPadding:o,options:{commentString:u}}=t;r+=i;const h=Object.assign({},t,{indent:r,inFlow:!0,type:null});let d=!1,p=0;const b=[];for(let x=0;x<e.length;++x){const A=e[x];let E=null;if(Nt(A))A.spaceBefore&&b.push(""),so(t,b,A.commentBefore,!1),A.comment&&(E=A.comment);else if(Ct(A)){const q=Nt(A.key)?A.key:null;q&&(q.spaceBefore&&b.push(""),so(t,b,q.commentBefore,!1),q.comment&&(d=!0));const L=Nt(A.value)?A.value:null;L?(L.comment&&(E=L.comment),L.commentBefore&&(d=!0)):A.value==null&&(q!=null&&q.comment)&&(E=q.comment)}E&&(d=!0);let M=Es(A,h,()=>E=null);x<e.length-1&&(M+=","),E&&(M+=qr(M,r,u(E))),!d&&(b.length>p||M.includes(`
|
|||
|
|
`))&&(d=!0),b.push(M),p=b.length}const{start:v,end:k}=n;if(b.length===0)return v+k;if(!d){const x=b.reduce((A,E)=>A+E.length+2,2);d=t.options.lineWidth>0&&x>t.options.lineWidth}if(d){let x=v;for(const A of b)x+=A?`
|
|||
|
|
${i}${s}${A}`:`
|
|||
|
|
`;return`${x}
|
|||
|
|
${s}${k}`}else return`${v}${o}${b.join(" ")}${o}${k}`}function so({indent:e,options:{commentString:t}},n,r,s){if(r&&s&&(r=r.replace(/^\n+/,"")),r){const i=cr(t(r),e);n.push(i.trimStart())}}function Ur(e,t){const n=ut(t)?t.value:t;for(const r of e)if(Ct(r)&&(r.key===t||r.key===n||ut(r.key)&&r.key.value===n))return r}class Nn extends xm{static get tagName(){return"tag:yaml.org,2002:map"}constructor(t){super(Ar,t),this.items=[]}static from(t,n,r){const{keepUndefined:s,replacer:i}=r,o=new this(t),u=(h,d)=>{if(typeof i=="function")d=i.call(n,h,d);else if(Array.isArray(i)&&!i.includes(h))return;(d!==void 0||s)&&o.items.push(Tc(h,d,r))};if(n instanceof Map)for(const[h,d]of n)u(h,d);else if(n&&typeof n=="object")for(const h of Object.keys(n))u(h,n[h]);return typeof t.sortMapEntries=="function"&&o.items.sort(t.sortMapEntries),o}add(t,n){var o;let r;Ct(t)?r=t:!t||typeof t!="object"||!("key"in t)?r=new sn(t,t==null?void 0:t.value):r=new sn(t.key,t.value);const s=Ur(this.items,r.key),i=(o=this.schema)==null?void 0:o.sortMapEntries;if(s){if(!n)throw new Error(`Key ${r.key} already set`);ut(s.value)&&_m(r.value)?s.value.value=r.value:s.value=r.value}else if(i){const u=this.items.findIndex(h=>i(r,h)<0);u===-1?this.items.push(r):this.items.splice(u,0,r)}else this.items.push(r)}delete(t){const n=Ur(this.items,t);return n?this.items.splice(this.items.indexOf(n),1).length>0:!1}get(t,n){const r=Ur(this.items,t),s=r==null?void 0:r.value;return(!n&&ut(s)?s.value:s)??void 0}has(t){return!!Ur(this.items,t)}set(t,n){this.add(new sn(t,n),!0)}toJSON(t,n,r){const s=r?new r:n!=null&&n.mapAsMap?new Map:{};n!=null&&n.onCreate&&n.onCreate(s);for(const i of this.items)Em(n,s,i);return s}toString(t,n,r){if(!t)return JSON.stringify(this);for(const s of this.items)if(!Ct(s))throw new Error(`Map items must all be pairs; found ${JSON.stringify(s)} instead`);return!t.allNullValues&&this.hasAllNullValues(!1)&&(t=Object.assign({},t,{allNullValues:!0})),Nm(this,t,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:t.indent||"",onChompKeep:r,onComment:n})}}const Fs={collection:"map",default:!0,nodeClass:Nn,tag:"tag:yaml.org,2002:map",resolve(e,t){return Ci(e)||t("Expected a mapping for this tag"),e},createNode:(e,t,n)=>Nn.from(e,t,n)};class Xr extends xm{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(t){super(Ps,t),this.items=[]}add(t){this.items.push(t)}delete(t){const n=_a(t);return typeof n!="number"?!1:this.items.splice(n,1).length>0}get(t,n){const r=_a(t);if(typeof r!="number")return;const s=this.items[r];return!n&&ut(s)?s.value:s}has(t){const n=_a(t);return typeof n=="number"&&n<this.items.length}set(t,n){const r=_a(t);if(typeof r!="number")throw new Error(`Expected a valid index, not ${t}.`);const s=this.items[r];ut(s)&&_m(n)?s.value=n:this.items[r]=n}toJSON(t,n){const r=[];n!=null&&n.onCreate&&n.onCreate(r);let s=0;for(const i of this.items)r.push(Cn(i,String(s++),n));return r}toString(t,n,r){return t?Nm(this,t,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(t.indent||"")+" ",onChompKeep:r,onComment:n}):JSON.stringify(this)}static from(t,n,r){const{replacer:s}=r,i=new this(t);if(n&&Symbol.iterator in Object(n)){let o=0;for(let u of n){if(typeof s=="function"){const h=n instanceof Set?u:String(o++);u=s.call(n,h,u)}i.items.push(vi(u,void 0,r))}}return i}}function _a(e){let t=ut(e)?e.value:e;return t&&typeof t=="string"&&(t=Number(t)),typeof t=="number"&&Number.isInteger(t)&&t>=0?t:null}const Bs={collection:"seq",default:!0,nodeClass:Xr,tag:"tag:yaml.org,2002:seq",resolve(e,t){return Ii(e)||t("Expected a sequence for this tag"),e},createNode:(e,t,n)=>Xr.from(e,t,n)},Io={identify:e=>typeof e=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify(e,t,n,r){return t=Object.assign({actualString:!0},t),Ac(e,t,n,r)}},Mo={identify:e=>e==null,createNode:()=>new qe(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new qe(null),stringify:({source:e},t)=>typeof e=="string"&&Mo.test.test(e)?e:t.options.nullStr},Ec={identify:e=>typeof e=="boolean",default:!0,tag:"tag:yaml.org,
|
|||
|
|
`:" ")}return Ac({comment:e,type:t,value:u},r,s,i)}};function Pm(e,t){if(Ii(e))for(let n=0;n<e.items.length;++n){let r=e.items[n];if(!Ct(r)){if(Ci(r)){r.items.length>1&&t("Each pair must have its own sequence indicator");const s=r.items[0]||new sn(new qe(null));if(r.commentBefore&&(s.key.commentBefore=s.key.commentBefore?`${r.commentBefore}
|
|||
|
|
${s.key.commentBefore}`:r.commentBefore),r.comment){const i=s.value??s.key;i.comment=i.comment?`${r.comment}
|
|||
|
|
${i.comment}`:r.comment}r=s}e.items[n]=Ct(r)?r:new sn(r)}}else t("Expected a sequence for this tag");return e}function $m(e,t,n){const{replacer:r}=n,s=new Xr(e);s.tag="tag:yaml.org,2002:pairs";let i=0;if(t&&Symbol.iterator in Object(t))for(let o of t){typeof r=="function"&&(o=r.call(t,String(i++),o));let u,h;if(Array.isArray(o))if(o.length===2)u=o[0],h=o[1];else throw new TypeError(`Expected [key, value] tuple: ${o}`);else if(o&&o instanceof Object){const d=Object.keys(o);if(d.length===1)u=d[0],h=o[u];else throw new TypeError(`Expected tuple with one key, not ${d.length} keys`)}else u=o;s.items.push(Tc(u,h,n))}return s}const Ic={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:Pm,createNode:$m};class ws extends Xr{constructor(){super(),this.add=Nn.prototype.add.bind(this),this.delete=Nn.prototype.delete.bind(this),this.get=Nn.prototype.get.bind(this),this.has=Nn.prototype.has.bind(this),this.set=Nn.prototype.set.bind(this),this.tag=ws.tag}toJSON(t,n){if(!n)return super.toJSON(t);const r=new Map;n!=null&&n.onCreate&&n.onCreate(r);for(const s of this.items){let i,o;if(Ct(s)?(i=Cn(s.key,"",n),o=Cn(s.value,i,n)):i=Cn(s,"",n),r.has(i))throw new Error("Ordered maps must not include duplicate keys");r.set(i,o)}return r}static from(t,n,r){const s=$m(t,n,r),i=new this;return i.items=s.items,i}}ws.tag="tag:yaml.org,2002:omap";const Mc={collection:"seq",identify:e=>e instanceof Map,nodeClass:ws,default:!1,tag:"tag:yaml.org,2002:omap",resolve(e,t){const n=Pm(e,t),r=[];for(const{key:s}of n.items)ut(s)&&(r.includes(s.value)?t(`Ordered maps must not include duplicate keys: ${s.value}`):r.push(s.value));return Object.assign(new ws,n)},createNode:(e,t,n)=>ws.from(e,t,n)};function Fm({value:e,source:t},n){return t&&(e?Bm:zm).test.test(t)?t:e?n.options.trueStr:n.options.falseStr}const Bm={identify:e=>e===!0,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new qe(!0),stringify:Fm},zm={identify:e=>e===!1,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new qe(!1),stringify:Fm},sb={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()==="nan"?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:Fn},ib={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,"")),stringify(e){const t=Number(e.value);return isFinite(t)?t.toExponential():Fn(e)}},ab={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(e){const t=new qe(parseFloat(e.replace(/_/g,""))),n=e.indexOf(".");if(n!==-1){const r=e.substring(n+1).replace(/_/g,"");r[r.length-1]==="0"&&(t.minFractionDigits=r.length)}return t},stringify:Fn},Mi=e=>typeof e=="bigint"||Number.isInteger(e);function Lo(e,t,n,{intAsBigInt:r}){const s=e[0];if((s==="-"||s==="+")&&(t+=1),e=e.substring(t).replace(/_/g,""),r){switch(n){case 2:e=`0b${e}`;break;case 8:e=`0o${e}`;break;case 16:e=`0x${e}`;break}const o=BigInt(e);return s==="-"?BigInt(-1)*o:o}const i=parseInt(e,n);return s==="-"?-1*i:i}function Oc(e,t,n){const{value:r}=e;if(Mi(r)){const s=r.toString(t);return r<0?"-"+n+s.substr(1):n+s}return Fn(e)}const ob={identify:Mi,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,n)=>Lo(e,2,2,n),stringify:e=>Oc(e,2,"0b")},lb={identify:Mi,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(e,t,n)=>Lo(e,1,8,n),stringify:e=>Oc(e,8,"0")},cb={identify:Mi,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,n)=>Lo(e,0,10,n),stringify:Fn},ub={identify:Mi,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,n)=>Lo(e,2,16,n),stringify:e=>Oc(e,16,"0x")};class vs extends Nn{constructor(t){super(t),this.tag=vs.tag}add(t){let n;Ct(t)?n=t:t&&typeof t=="o
|
|||
|
|
`)?(n.push("..."),n.push(cr(d,""))):n.push(`... ${d}`)}else n.push("...");else{let d=e.comment;d&&o&&(d=d.replace(/^\n+/,"")),d&&((!o||u)&&n[n.length-1]!==""&&n.push(""),n.push(cr(i(d),"")))}return n.join(`
|
|||
|
|
`)+`
|
|||
|
|
`}class Do{constructor(t,n,r){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,In,{value:E0});let s=null;typeof n=="function"||Array.isArray(n)?s=n:r===void 0&&n&&(r=n,n=void 0);const i=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,stringKeys:!1,uniqueKeys:!0,version:"1.2"},r);this.options=i;let{version:o}=i;r!=null&&r._directives?(this.directives=r._directives.atDocument(),this.directives.yaml.explicit&&(o=this.directives.yaml.version)):this.directives=new rn({version:o}),this.setSchema(o,r),this.contents=t===void 0?null:this.createNode(t,s,r)}clone(){const t=Object.create(Do.prototype,{[In]:{value:E0}});return t.commentBefore=this.commentBefore,t.comment=this.comment,t.errors=this.errors.slice(),t.warnings=this.warnings.slice(),t.options=Object.assign({},this.options),this.directives&&(t.directives=this.directives.clone()),t.schema=this.schema.clone(),t.contents=Nt(this.contents)?this.contents.clone(t.schema):this.contents,this.range&&(t.range=this.range.slice()),t}add(t){cs(this.contents)&&this.contents.add(t)}addIn(t,n){cs(this.contents)&&this.contents.addIn(t,n)}createAlias(t,n){if(!t.anchor){const r=wm(this);t.anchor=!n||r.has(n)?vm(n||"a",r):n}return new Sc(t.anchor)}createNode(t,n,r){let s;if(typeof n=="function")t=n.call({"":t},"",t),s=n;else if(Array.isArray(n)){const E=q=>typeof q=="number"||q instanceof String||q instanceof Number,M=n.filter(E).map(String);M.length>0&&(n=n.concat(M)),s=n}else r===void 0&&n&&(r=n,n=void 0);const{aliasDuplicateObjects:i,anchorPrefix:o,flow:u,keepUndefined:h,onTagObj:d,tag:p}=r??{},{onAnchor:b,setAnchors:v,sourceObjects:k}=qy(this,o||"a"),x={aliasDuplicateObjects:i??!0,keepUndefined:h??!1,onAnchor:b,onTagObj:d,replacer:s,schema:this.schema,sourceObjects:k},A=vi(t,p,x);return u&&Et(A)&&(A.flow=!0),v(),A}createPair(t,n,r={}){const s=this.createNode(t,null,r),i=this.createNode(n,null,r);return new sn(s,i)}delete(t){return cs(this.contents)?this.contents.delete(t):!1}deleteIn(t){return ei(t)?this.contents==null?!1:(this.contents=null,!0):cs(this.contents)?this.contents.deleteIn(t):!1}get(t,n){return Et(this.contents)?this.contents.get(t,n):void 0}getIn(t,n){return ei(t)?!n&&ut(this.contents)?this.contents.value:this.contents:Et(this.contents)?this.contents.getIn(t,n):void 0}has(t){return Et(this.contents)?this.contents.has(t):!1}hasIn(t){return ei(t)?this.contents!==void 0:Et(this.contents)?this.contents.hasIn(t):!1}set(t,n){this.contents==null?this.contents=ro(this.schema,[t],n):cs(this.contents)&&this.contents.set(t,n)}setIn(t,n){ei(t)?this.contents=n:this.contents==null?this.contents=ro(this.schema,Array.from(t),n):cs(this.contents)&&this.contents.setIn(t,n)}setSchema(t,n={}){typeof t=="number"&&(t=String(t));let r;switch(t){case"1.1":this.directives?this.directives.yaml.version="1.1":this.directives=new rn({version:"1.1"}),r={resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":this.directives?this.directives.yaml.version=t:this.directives=new rn({version:t}),r={resolveKnownTags:!0,schema:"core"};break;case null:this.directives&&delete this.directives,r=null;break;default:{const s=JSON.stringify(t);throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${s}`)}}if(n.schema instanceof Object)this.schema=n.schema;else if(r)this.schema=new Dc(Object.assign(r,n));else throw new Error("With a null YAML version, the { schema: Schema } option is required")}toJS({json:t,jsonArg:n,mapAsMap:r,maxAliasCount:s,onAnchor:i,reviver:o}={}){const u={anchors:new Map,doc:this,keep:!t,mapAsMap:r===!0,mapKeyWarned:!1,maxAliasCount:typeof s=="number"?s:100},h=Cn(this.contents,n??"",u);if(typeof i=="function")for(const{count:d,res:p}of u.anchors.values())i(p,d);return typeof o=="function"?gs(o,{"":h},"",h):h}toJSON(t,n){return this.toJS({json:!0,jsonArg:t,mapAsMap:!1,onAnchor:n})}toString(t={}){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");if("indent"in t&&(!Number.isInteger(t.indent)||Number(t.indent)<=0)){const n=JSON.stringify(t
|
|||
|
|
`),o=u+o}if(/[^ ]/.test(o)){let u=1;const h=n.linePos[1];(h==null?void 0:h.line)===r&&h.col>s&&(u=Math.max(1,Math.min(h.col-s,80-i)));const d=" ".repeat(i)+"^".repeat(u);n.message+=`:
|
|||
|
|
|
|||
|
|
${o}
|
|||
|
|
${d}
|
|||
|
|
`}};function Ns(e,{flow:t,indicator:n,next:r,offset:s,onError:i,parentIndent:o,startOnNewline:u}){let h=!1,d=u,p=u,b="",v="",k=!1,x=!1,A=null,E=null,M=null,q=null,L=null,O=null,F=null;for(const G of e)switch(x&&(G.type!=="space"&&G.type!=="newline"&&G.type!=="comma"&&i(G.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),x=!1),A&&(d&&G.type!=="comment"&&G.type!=="newline"&&i(A,"TAB_AS_INDENT","Tabs are not allowed as indentation"),A=null),G.type){case"space":!t&&(n!=="doc-start"||(r==null?void 0:r.type)!=="flow-collection")&&G.source.includes(" ")&&(A=G),p=!0;break;case"comment":{p||i(G,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const Q=G.source.substring(1)||" ";b?b+=v+Q:b=Q,v="",d=!1;break}case"newline":d?b?b+=G.source:(!O||n!=="seq-item-ind")&&(h=!0):v+=G.source,d=!0,k=!0,(E||M)&&(q=G),p=!0;break;case"anchor":E&&i(G,"MULTIPLE_ANCHORS","A node can have at most one anchor"),G.source.endsWith(":")&&i(G.offset+G.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),E=G,F??(F=G.offset),d=!1,p=!1,x=!0;break;case"tag":{M&&i(G,"MULTIPLE_TAGS","A node can have at most one tag"),M=G,F??(F=G.offset),d=!1,p=!1,x=!0;break}case n:(E||M)&&i(G,"BAD_PROP_ORDER",`Anchors and tags must be after the ${G.source} indicator`),O&&i(G,"UNEXPECTED_TOKEN",`Unexpected ${G.source} in ${t??"collection"}`),O=G,d=n==="seq-item-ind"||n==="explicit-key-ind",p=!1;break;case"comma":if(t){L&&i(G,"UNEXPECTED_TOKEN",`Unexpected , in ${t}`),L=G,d=!1,p=!1;break}default:i(G,"UNEXPECTED_TOKEN",`Unexpected ${G.type} token`),d=!1,p=!1}const z=e[e.length-1],j=z?z.offset+z.source.length:s;return x&&r&&r.type!=="space"&&r.type!=="newline"&&r.type!=="comma"&&(r.type!=="scalar"||r.source!=="")&&i(r.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),A&&(d&&A.indent<=o||(r==null?void 0:r.type)==="block-map"||(r==null?void 0:r.type)==="block-seq")&&i(A,"TAB_AS_INDENT","Tabs are not allowed as indentation"),{comma:L,found:O,spaceBefore:h,comment:b,hasNewline:k,anchor:E,tag:M,newlineAfterProp:q,end:j,start:F??j}}function _i(e){if(!e)return null;switch(e.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(e.source.includes(`
|
|||
|
|
`))return!0;if(e.end){for(const t of e.end)if(t.type==="newline")return!0}return!1;case"flow-collection":for(const t of e.items){for(const n of t.start)if(n.type==="newline")return!0;if(t.sep){for(const n of t.sep)if(n.type==="newline")return!0}if(_i(t.key)||_i(t.value))return!0}return!1;default:return!0}}function M0(e,t,n){if((t==null?void 0:t.type)==="flow-collection"){const r=t.end[0];r.indent===e&&(r.source==="]"||r.source==="}")&&_i(t)&&n(r,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}function jm(e,t,n){const{uniqueKeys:r}=e.options;if(r===!1)return!1;const s=typeof r=="function"?r:(i,o)=>i===o||ut(i)&&ut(o)&&i.value===o.value;return t.some(i=>s(i.key,n))}const Rh="All mapping items must start at the same column";function pb({composeNode:e,composeEmptyNode:t},n,r,s,i){var p;const o=(i==null?void 0:i.nodeClass)??Nn,u=new o(n.schema);n.atRoot&&(n.atRoot=!1);let h=r.offset,d=null;for(const b of r.items){const{start:v,key:k,sep:x,value:A}=b,E=Ns(v,{indicator:"explicit-key-ind",next:k??(x==null?void 0:x[0]),offset:h,onError:s,parentIndent:r.indent,startOnNewline:!0}),M=!E.found;if(M){if(k&&(k.type==="block-seq"?s(h,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in k&&k.indent!==r.indent&&s(h,"BAD_INDENT",Rh)),!E.anchor&&!E.tag&&!x){d=E.end,E.comment&&(u.comment?u.comment+=`
|
|||
|
|
`+E.comment:u.comment=E.comment);continue}(E.newlineAfterProp||_i(k))&&s(k??v[v.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else((p=E.found)==null?void 0:p.indent)!==r.indent&&s(h,"BAD_INDENT",Rh);n.atKey=!0;const q=E.end,L=k?e(n,k,E,s):t(n,q,v,null,E,s);n.schema.compat&&M0(r.indent,k,s),n.atKey=!1,jm(n,u.items,L)&&s(q,"DUPLICATE_KEY","Map keys must be unique");const O=Ns(x??[],{indicator:"map-value-ind",next:A,offset:L.range[2],onError:s,parentIndent:r.indent,startOnNewline:!k||k.type==="block-scalar"});if(h=O.end,O.found){M&&((A==null?void 0:A.type)==="block-map"&&!O.hasNewline&&s(h,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),n.options.strict&&E.start<O.found.offset-1024&&s(L.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));const F=A?e(n,A,O,s):t(n,h,x,null,O,s);n.schema.compat&&M0(r.indent,A,s),h=F.range[2];const z=new sn(L,F);n.options.keepSourceTokens&&(z.srcToken=b),u.items.push(z)}else{M&&s(L.range,"MISSING_CHAR","Implicit map keys need to be followed by map values"),O.comment&&(L.comment?L.comment+=`
|
|||
|
|
`+O.comment:L.comment=O.comment);const F=new sn(L);n.options.keepSourceTokens&&(F.srcToken=b),u.items.push(F)}}return d&&d<h&&s(d,"IMPOSSIBLE","Map comment with trailing content"),u.range=[r.offset,h,d??h],u}function gb({composeNode:e,composeEmptyNode:t},n,r,s,i){const o=(i==null?void 0:i.nodeClass)??Xr,u=new o(n.schema);n.atRoot&&(n.atRoot=!1),n.atKey&&(n.atKey=!1);let h=r.offset,d=null;for(const{start:p,value:b}of r.items){const v=Ns(p,{indicator:"seq-item-ind",next:b,offset:h,onError:s,parentIndent:r.indent,startOnNewline:!0});if(!v.found)if(v.anchor||v.tag||b)(b==null?void 0:b.type)==="block-seq"?s(v.end,"BAD_INDENT","All sequence items must start at the same column"):s(h,"MISSING_CHAR","Sequence item without - indicator");else{d=v.end,v.comment&&(u.comment=v.comment);continue}const k=b?e(n,b,v,s):t(n,v.end,p,null,v,s);n.schema.compat&&M0(r.indent,b,s),h=k.range[2],u.items.push(k)}return u.range=[r.offset,h,d??h],u}function Oi(e,t,n,r){let s="";if(e){let i=!1,o="";for(const u of e){const{source:h,type:d}=u;switch(d){case"space":i=!0;break;case"comment":{n&&!i&&r(u,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const p=h.substring(1)||" ";s?s+=o+p:s=p,o="";break}case"newline":s&&(o+=h),i=!0;break;default:r(u,"UNEXPECTED_TOKEN",`Unexpected ${d} at node end`)}t+=h.length}}return{comment:s,offset:t}}const Hl="Block collections are not allowed within flow collections",Vl=e=>e&&(e.type==="block-map"||e.type==="block-seq");function yb({composeNode:e,composeEmptyNode:t},n,r,s,i){var E;const o=r.start.source==="{",u=o?"flow map":"flow sequence",h=(i==null?void 0:i.nodeClass)??(o?Nn:Xr),d=new h(n.schema);d.flow=!0;const p=n.atRoot;p&&(n.atRoot=!1),n.atKey&&(n.atKey=!1);let b=r.offset+r.start.source.length;for(let M=0;M<r.items.length;++M){const q=r.items[M],{start:L,key:O,sep:F,value:z}=q,j=Ns(L,{flow:u,indicator:"explicit-key-ind",next:O??(F==null?void 0:F[0]),offset:b,onError:s,parentIndent:r.indent,startOnNewline:!1});if(!j.found){if(!j.anchor&&!j.tag&&!F&&!z){M===0&&j.comma?s(j.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${u}`):M<r.items.length-1&&s(j.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${u}`),j.comment&&(d.comment?d.comment+=`
|
|||
|
|
`+j.comment:d.comment=j.comment),b=j.end;continue}!o&&n.options.strict&&_i(O)&&s(O,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(M===0)j.comma&&s(j.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${u}`);else if(j.comma||s(j.start,"MISSING_CHAR",`Missing , between ${u} items`),j.comment){let G="";e:for(const Q of L)switch(Q.type){case"comma":case"space":break;case"comment":G=Q.source.substring(1);break e;default:break e}if(G){let Q=d.items[d.items.length-1];Ct(Q)&&(Q=Q.value??Q.key),Q.comment?Q.comment+=`
|
|||
|
|
`+G:Q.comment=G,j.comment=j.comment.substring(G.length+1)}}if(!o&&!F&&!j.found){const G=z?e(n,z,j,s):t(n,j.end,F,null,j,s);d.items.push(G),b=G.range[2],Vl(z)&&s(G.range,"BLOCK_IN_FLOW",Hl)}else{n.atKey=!0;const G=j.end,Q=O?e(n,O,j,s):t(n,G,L,null,j,s);Vl(O)&&s(Q.range,"BLOCK_IN_FLOW",Hl),n.atKey=!1;const ye=Ns(F??[],{flow:u,indicator:"map-value-ind",next:z,offset:Q.range[2],onError:s,parentIndent:r.indent,startOnNewline:!1});if(ye.found){if(!o&&!j.found&&n.options.strict){if(F)for(const he of F){if(he===ye.found)break;if(he.type==="newline"){s(he,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}j.start<ye.found.offset-1024&&s(ye.found,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit flow sequence key")}}else z&&("source"in z&&((E=z.source)==null?void 0:E[0])===":"?s(z,"MISSING_CHAR",`Missing space after : in ${u}`):s(ye.start,"MISSING_CHAR",`Missing , or : between ${u} items`));const ce=z?e(n,z,ye,s):ye.found?t(n,ye.end,F,null,ye,s):null;ce?Vl(z)&&s(ce.range,"BLOCK_IN_FLOW",Hl):ye.comment&&(Q.comment?Q.comment+=`
|
|||
|
|
`+ye.comment:Q.comment=ye.comment);const te=new sn(Q,ce);if(n.options.keepSourceTokens&&(te.srcToken=q),o){const he=d;jm(n,he.items,Q)&&s(G,"DUPLICATE_KEY","Map keys must be unique"),he.items.push(te)}else{const he=new Nn(n.schema);he.flow=!0,he.items.push(te);const V=(ce??Q).range;he.range=[Q.range[0],V[1],V[2]],d.items.push(he)}b=ce?ce.range[2]:ye.end}}const v=o?"}":"]",[k,...x]=r.end;let A=b;if((k==null?void 0:k.source)===v)A=k.offset+k.source.length;else{const M=u[0].toUpperCase()+u.substring(1),q=p?`${M} must end with a ${v}`:`${M} in block collection must be sufficiently indented and end with a ${v}`;s(b,p?"MISSING_CHAR":"BAD_INDENT",q),k&&k.source.length!==1&&x.unshift(k)}if(x.length>0){const M=Oi(x,A,n.options.strict,s);M.comment&&(d.comment?d.comment+=`
|
|||
|
|
`+M.comment:d.comment=M.comment),d.range=[r.offset,A,M.offset]}else d.range=[r.offset,A,A];return d}function jl(e,t,n,r,s,i){const o=n.type==="block-map"?pb(e,t,n,r,i):n.type==="block-seq"?gb(e,t,n,r,i):yb(e,t,n,r,i),u=o.constructor;return s==="!"||s===u.tagName?(o.tag=u.tagName,o):(s&&(o.tag=s),o)}function bb(e,t,n,r,s){var v;const i=r.tag,o=i?t.directives.tagName(i.source,k=>s(i,"TAG_RESOLVE_FAILED",k)):null;if(n.type==="block-seq"){const{anchor:k,newlineAfterProp:x}=r,A=k&&i?k.offset>i.offset?k:i:k??i;A&&(!x||x.offset<A.offset)&&s(A,"MISSING_CHAR","Missing newline after block sequence props")}const u=n.type==="block-map"?"map":n.type==="block-seq"?"seq":n.start.source==="{"?"map":"seq";if(!i||!o||o==="!"||o===Nn.tagName&&u==="map"||o===Xr.tagName&&u==="seq")return jl(e,t,n,s,o);let h=t.schema.tags.find(k=>k.tag===o&&k.collection===u);if(!h){const k=t.schema.knownTags[o];if((k==null?void 0:k.collection)===u)t.schema.tags.push(Object.assign({},k,{default:!1})),h=k;else return k?s(i,"BAD_COLLECTION_TYPE",`${k.tag} used for ${u} collection, but expects ${k.collection??"scalar"}`,!0):s(i,"TAG_RESOLVE_FAILED",`Unresolved tag: ${o}`,!0),jl(e,t,n,s,o)}const d=jl(e,t,n,s,o,h),p=((v=h.resolve)==null?void 0:v.call(h,d,k=>s(i,"TAG_RESOLVE_FAILED",k),t.options))??d,b=Nt(p)?p:new qe(p);return b.range=d.range,b.tag=o,h!=null&&h.format&&(b.format=h.format),b}function wb(e,t,n){const r=t.offset,s=vb(t,e.options.strict,n);if(!s)return{value:"",type:null,comment:"",range:[r,r,r]};const i=s.mode===">"?qe.BLOCK_FOLDED:qe.BLOCK_LITERAL,o=t.source?_b(t.source):[];let u=o.length;for(let A=o.length-1;A>=0;--A){const E=o[A][1];if(E===""||E==="\r")u=A;else break}if(u===0){const A=s.chomp==="+"&&o.length>0?`
|
|||
|
|
`.repeat(Math.max(1,o.length-1)):"";let E=r+s.length;return t.source&&(E+=t.source.length),{value:A,type:i,comment:s.comment,range:[r,E,E]}}let h=t.indent+s.indent,d=t.offset+s.length,p=0;for(let A=0;A<u;++A){const[E,M]=o[A];if(M===""||M==="\r")s.indent===0&&E.length>h&&(h=E.length);else{E.length<h&&n(d+E.length,"MISSING_CHAR","Block scalars with more-indented leading empty lines must use an explicit indentation indicator"),s.indent===0&&(h=E.length),p=A,h===0&&!e.atRoot&&n(d,"BAD_INDENT","Block scalar values in collections must be indented");break}d+=E.length+M.length+1}for(let A=o.length-1;A>=u;--A)o[A][0].length>h&&(u=A+1);let b="",v="",k=!1;for(let A=0;A<p;++A)b+=o[A][0].slice(h)+`
|
|||
|
|
`;for(let A=p;A<u;++A){let[E,M]=o[A];d+=E.length+M.length+1;const q=M[M.length-1]==="\r";if(q&&(M=M.slice(0,-1)),M&&E.length<h){const O=`Block scalar lines must not be less indented than their ${s.indent?"explicit indentation indicator":"first line"}`;n(d-M.length-(q?2:1),"BAD_INDENT",O),E=""}i===qe.BLOCK_LITERAL?(b+=v+E.slice(h)+M,v=`
|
|||
|
|
`):E.length>h||M[0]===" "?(v===" "?v=`
|
|||
|
|
`:!k&&v===`
|
|||
|
|
`&&(v=`
|
|||
|
|
|
|||
|
|
`),b+=v+E.slice(h)+M,v=`
|
|||
|
|
`,k=!0):M===""?v===`
|
|||
|
|
`?b+=`
|
|||
|
|
`:v=`
|
|||
|
|
`:(b+=v+M,v=" ",k=!1)}switch(s.chomp){case"-":break;case"+":for(let A=u;A<o.length;++A)b+=`
|
|||
|
|
`+o[A][0].slice(h);b[b.length-1]!==`
|
|||
|
|
`&&(b+=`
|
|||
|
|
`);break;default:b+=`
|
|||
|
|
`}const x=r+s.length+t.source.length;return{value:b,type:i,comment:s.comment,range:[r,x,x]}}function vb({offset:e,props:t},n,r){if(t[0].type!=="block-scalar-header")return r(t[0],"IMPOSSIBLE","Block scalar header not found"),null;const{source:s}=t[0],i=s[0];let o=0,u="",h=-1;for(let v=1;v<s.length;++v){const k=s[v];if(!u&&(k==="-"||k==="+"))u=k;else{const x=Number(k);!o&&x?o=x:h===-1&&(h=e+v)}}h!==-1&&r(h,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${s}`);let d=!1,p="",b=s.length;for(let v=1;v<t.length;++v){const k=t[v];switch(k.type){case"space":d=!0;case"newline":b+=k.source.length;break;case"comment":n&&!d&&r(k,"MISSING_CHAR","Comments must be separated from other tokens by white space characters"),b+=k.source.length,p=k.source.substring(1);break;case"error":r(k,"UNEXPECTED_TOKEN",k.message),b+=k.source.length;break;default:{const x=`Unexpected token in block scalar header: ${k.type}`;r(k,"UNEXPECTED_TOKEN",x);const A=k.source;A&&typeof A=="string"&&(b+=A.length)}}}return{mode:i,indent:o,chomp:u,comment:p,length:b}}function _b(e){const t=e.split(/\n( *)/),n=t[0],r=n.match(/^( *)/),i=[r!=null&&r[1]?[r[1],n.slice(r[1].length)]:["",n]];for(let o=1;o<t.length;o+=2)i.push([t[o],t[o+1]]);return i}function xb(e,t,n){const{offset:r,type:s,source:i,end:o}=e;let u,h;const d=(v,k,x)=>n(r+v,k,x);switch(s){case"scalar":u=qe.PLAIN,h=kb(i,d);break;case"single-quoted-scalar":u=qe.QUOTE_SINGLE,h=Sb(i,d);break;case"double-quoted-scalar":u=qe.QUOTE_DOUBLE,h=Ab(i,d);break;default:return n(e,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${s}`),{value:"",type:null,comment:"",range:[r,r+i.length,r+i.length]}}const p=r+i.length,b=Oi(o,p,t,n);return{value:h,type:u,comment:b.comment,range:[r,p,b.offset]}}function kb(e,t){let n="";switch(e[0]){case" ":n="a tab character";break;case",":n="flow indicator character ,";break;case"%":n="directive indicator character %";break;case"|":case">":{n=`block scalar indicator ${e[0]}`;break}case"@":case"`":{n=`reserved character ${e[0]}`;break}}return n&&t(0,"BAD_SCALAR_START",`Plain value cannot start with ${n}`),Wm(e)}function Sb(e,t){return(e[e.length-1]!=="'"||e.length===1)&&t(e.length,"MISSING_CHAR","Missing closing 'quote"),Wm(e.slice(1,-1)).replace(/''/g,"'")}function Wm(e){let t,n;try{t=new RegExp(`(.*?)(?<![ ])[ ]*\r?
|
|||
|
|
`,"sy"),n=new RegExp(`[ ]*(.*?)(?:(?<![ ])[ ]*)?\r?
|
|||
|
|
`,"sy")}catch{t=/(.*?)[ \t]*\r?\n/sy,n=/[ \t]*(.*?)[ \t]*\r?\n/sy}let r=t.exec(e);if(!r)return e;let s=r[1],i=" ",o=t.lastIndex;for(n.lastIndex=o;r=n.exec(e);)r[1]===""?i===`
|
|||
|
|
`?s+=i:i=`
|
|||
|
|
`:(s+=i+r[1],i=" "),o=n.lastIndex;const u=/[ \t]*(.*)/sy;return u.lastIndex=o,r=u.exec(e),s+i+((r==null?void 0:r[1])??"")}function Ab(e,t){let n="";for(let r=1;r<e.length-1;++r){const s=e[r];if(!(s==="\r"&&e[r+1]===`
|
|||
|
|
`))if(s===`
|
|||
|
|
`){const{fold:i,offset:o}=Tb(e,r);n+=i,r=o}else if(s==="\\"){let i=e[++r];const o=Eb[i];if(o)n+=o;else if(i===`
|
|||
|
|
`)for(i=e[r+1];i===" "||i===" ";)i=e[++r+1];else if(i==="\r"&&e[r+1]===`
|
|||
|
|
`)for(i=e[++r+1];i===" "||i===" ";)i=e[++r+1];else if(i==="x"||i==="u"||i==="U"){const u={x:2,u:4,U:8}[i];n+=Nb(e,r+1,u,t),r+=u}else{const u=e.substr(r-1,2);t(r-1,"BAD_DQ_ESCAPE",`Invalid escape sequence ${u}`),n+=u}}else if(s===" "||s===" "){const i=r;let o=e[r+1];for(;o===" "||o===" ";)o=e[++r+1];o!==`
|
|||
|
|
`&&!(o==="\r"&&e[r+2]===`
|
|||
|
|
`)&&(n+=r>i?e.slice(i,r+1):s)}else n+=s}return(e[e.length-1]!=='"'||e.length===1)&&t(e.length,"MISSING_CHAR",'Missing closing "quote'),n}function Tb(e,t){let n="",r=e[t+1];for(;(r===" "||r===" "||r===`
|
|||
|
|
`||r==="\r")&&!(r==="\r"&&e[t+2]!==`
|
|||
|
|
`);)r===`
|
|||
|
|
`&&(n+=`
|
|||
|
|
`),t+=1,r=e[t+1];return n||(n=" "),{fold:n,offset:t}}const Eb={0:"\0",a:"\x07",b:"\b",e:"\x1B",f:"\f",n:`
|
|||
|
|
`,r:"\r",t:" ",v:"\v",N:"
",_:" ",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\"," ":" "};function Nb(e,t,n,r){const s=e.substr(t,n),o=s.length===n&&/^[0-9a-fA-F]+$/.test(s)?parseInt(s,16):NaN;if(isNaN(o)){const u=e.substr(t-2,n+2);return r(t-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${u}`),u}return String.fromCodePoint(o)}function Gm(e,t,n,r){const{value:s,type:i,comment:o,range:u}=t.type==="block-scalar"?wb(e,t,r):xb(t,e.options.strict,r),h=n?e.directives.tagName(n.source,b=>r(n,"TAG_RESOLVE_FAILED",b)):null;let d;e.options.stringKeys&&e.atKey?d=e.schema[Jn]:h?d=Cb(e.schema,s,h,n,r):t.type==="scalar"?d=Ib(e,s,t,r):d=e.schema[Jn];let p;try{const b=d.resolve(s,v=>r(n??t,"TAG_RESOLVE_FAILED",v),e.options);p=ut(b)?b:new qe(b)}catch(b){const v=b instanceof Error?b.message:String(b);r(n??t,"TAG_RESOLVE_FAILED",v),p=new qe(s)}return p.range=u,p.source=s,i&&(p.type=i),h&&(p.tag=h),d.format&&(p.format=d.format),o&&(p.comment=o),p}function Cb(e,t,n,r,s){var u;if(n==="!")return e[Jn];const i=[];for(const h of e.tags)if(!h.collection&&h.tag===n)if(h.default&&h.test)i.push(h);else return h;for(const h of i)if((u=h.test)!=null&&u.test(t))return h;const o=e.knownTags[n];return o&&!o.collection?(e.tags.push(Object.assign({},o,{default:!1,test:void 0})),o):(s(r,"TAG_RESOLVE_FAILED",`Unresolved tag: ${n}`,n!=="tag:yaml.org,2002:str"),e[Jn])}function Ib({atKey:e,directives:t,schema:n},r,s,i){const o=n.tags.find(u=>{var h;return(u.default===!0||e&&u.default==="key")&&((h=u.test)==null?void 0:h.test(r))})||n[Jn];if(n.compat){const u=n.compat.find(h=>{var d;return h.default&&((d=h.test)==null?void 0:d.test(r))})??n[Jn];if(o.tag!==u.tag){const h=t.tagString(o.tag),d=t.tagString(u.tag),p=`Value may be parsed as either ${h} or ${d}`;i(s,"TAG_RESOLVE_FAILED",p,!0)}}return o}function Mb(e,t,n){if(t){n??(n=t.length);for(let r=n-1;r>=0;--r){let s=t[r];switch(s.type){case"space":case"comment":case"newline":e-=s.source.length;continue}for(s=t[++r];(s==null?void 0:s.type)==="space";)e+=s.source.length,s=t[++r];break}}return e}const Ob={composeNode:Km,composeEmptyNode:Pc};function Km(e,t,n,r){const s=e.atKey,{spaceBefore:i,comment:o,anchor:u,tag:h}=n;let d,p=!0;switch(t.type){case"alias":d=Lb(e,t,r),(u||h)&&r(t,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":d=Gm(e,t,h,r),u&&(d.anchor=u.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":d=bb(Ob,e,t,n,r),u&&(d.anchor=u.source.substring(1));break;default:{const b=t.type==="error"?t.message:`Unsupported token (type: ${t.type})`;r(t,"UNEXPECTED_TOKEN",b),d=Pc(e,t.offset,void 0,null,n,r),p=!1}}return u&&d.anchor===""&&r(u,"BAD_ALIAS","Anchor cannot be an empty string"),s&&e.options.stringKeys&&(!ut(d)||typeof d.value!="string"||d.tag&&d.tag!=="tag:yaml.org,2002:str")&&r(h??t,"NON_STRING_KEY","With stringKeys, all keys must be strings"),i&&(d.spaceBefore=!0),o&&(t.type==="scalar"&&t.source===""?d.comment=o:d.commentBefore=o),e.options.keepSourceTokens&&p&&(d.srcToken=t),d}function Pc(e,t,n,r,{spaceBefore:s,comment:i,anchor:o,tag:u,end:h},d){const p={type:"scalar",offset:Mb(t,n,r),indent:-1,source:""},b=Gm(e,p,u,d);return o&&(b.anchor=o.source.substring(1),b.anchor===""&&d(o,"BAD_ALIAS","Anchor cannot be an empty string")),s&&(b.spaceBefore=!0),i&&(b.comment=i,b.range[2]=h),b}function Lb({options:e},{offset:t,source:n,end:r},s){const i=new Sc(n.substring(1));i.source===""&&s(t,"BAD_ALIAS","Alias cannot be an empty string"),i.source.endsWith(":")&&s(t+n.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);const o=t+n.length,u=Oi(r,o,e.strict,s);return i.range=[t,o,u.offset],u.comment&&(i.comment=u.comment),i}function Rb(e,t,{offset:n,start:r,value:s,end:i},o){const u=Object.assign({_directives:t},e),h=new Do(void 0,u),d={atKey:!1,atRoot:!0,directives:h.directives,options:h.options,schema:h.schema},p=Ns(r,{indicator:"doc-start",next:s??(i==null?void 0:i[0]),offset:n,onError:o,parentIndent:0,startOnNewline:!0});p.found&&(h.directives.docStart=!0,s&&(s.type===
|
|||
|
|
|
|||
|
|
`:`
|
|||
|
|
`)+(o.substring(1)||" "),n=!0,r=!1;break;case"%":((s=e[i+1])==null?void 0:s[0])!=="#"&&(i+=1),n=!1;break;default:n||(r=!0),n=!1}}return{comment:t,afterEmptyLine:r}}class Db{constructor(t={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(n,r,s,i)=>{const o=Ks(n);i?this.warnings.push(new mb(o,r,s)):this.errors.push(new ti(o,r,s))},this.directives=new rn({version:t.version||"1.2"}),this.options=t}decorate(t,n){const{comment:r,afterEmptyLine:s}=Dh(this.prelude);if(r){const i=t.contents;if(n)t.comment=t.comment?`${t.comment}
|
|||
|
|
${r}`:r;else if(s||t.directives.docStart||!i)t.commentBefore=r;else if(Et(i)&&!i.flow&&i.items.length>0){let o=i.items[0];Ct(o)&&(o=o.key);const u=o.commentBefore;o.commentBefore=u?`${r}
|
|||
|
|
${u}`:r}else{const o=i.commentBefore;i.commentBefore=o?`${r}
|
|||
|
|
${o}`:r}}n?(Array.prototype.push.apply(t.errors,this.errors),Array.prototype.push.apply(t.warnings,this.warnings)):(t.errors=this.errors,t.warnings=this.warnings),this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:Dh(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(t,n=!1,r=-1){for(const s of t)yield*this.next(s);yield*this.end(n,r)}*next(t){switch(t.type){case"directive":this.directives.add(t.source,(n,r,s)=>{const i=Ks(t);i[0]+=n,this.onError(i,"BAD_DIRECTIVE",r,s)}),this.prelude.push(t.source),this.atDirectives=!0;break;case"document":{const n=Rb(this.options,this.directives,t,this.onError);this.atDirectives&&!n.directives.docStart&&this.onError(t,"MISSING_CHAR","Missing directives-end/doc-start indicator line"),this.decorate(n,!1),this.doc&&(yield this.doc),this.doc=n,this.atDirectives=!1;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(t.source);break;case"error":{const n=t.source?`${t.message}: ${JSON.stringify(t.source)}`:t.message,r=new ti(Ks(t),"UNEXPECTED_TOKEN",n);this.atDirectives||!this.doc?this.errors.push(r):this.doc.errors.push(r);break}case"doc-end":{if(!this.doc){const r="Unexpected doc-end without preceding document";this.errors.push(new ti(Ks(t),"UNEXPECTED_TOKEN",r));break}this.doc.directives.docEnd=!0;const n=Oi(t.end,t.offset+t.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),n.comment){const r=this.doc.comment;this.doc.comment=r?`${r}
|
|||
|
|
${n.comment}`:n.comment}this.doc.range[2]=n.offset;break}default:this.errors.push(new ti(Ks(t),"UNEXPECTED_TOKEN",`Unsupported token ${t.type}`))}}*end(t=!1,n=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(t){const r=Object.assign({_directives:this.directives},this.options),s=new Do(void 0,r);this.atDirectives&&this.onError(n,"MISSING_CHAR","Missing directives-end indicator line"),s.range=[0,n,n],this.decorate(s,!1),yield s}}}const Xm="\uFEFF",Ym="",Jm="",O0="";function Pb(e){switch(e){case Xm:return"byte-order-mark";case Ym:return"doc-mode";case Jm:return"flow-error-end";case O0:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case`
|
|||
|
|
`:case`\r
|
|||
|
|
`:return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(e[0]){case" ":case" ":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}function Rn(e){switch(e){case void 0:case" ":case`
|
|||
|
|
`:case"\r":case" ":return!0;default:return!1}}const Ph=new Set("0123456789ABCDEFabcdef"),$b=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"),ka=new Set(",[]{}"),Fb=new Set(` ,[]{}
|
|||
|
|
\r `),Wl=e=>!e||Fb.has(e);class Bb{constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer="",this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0}*lex(t,n=!1){if(t){if(typeof t!="string")throw TypeError("source is not a string");this.buffer=this.buffer?this.buffer+t:t,this.lineEndPos=null}this.atEnd=!n;let r=this.next??"stream";for(;r&&(n||this.hasChars(1));)r=yield*this.parseNext(r)}atLineEnd(){let t=this.pos,n=this.buffer[t];for(;n===" "||n===" ";)n=this.buffer[++t];return!n||n==="#"||n===`
|
|||
|
|
`?!0:n==="\r"?this.buffer[t+1]===`
|
|||
|
|
`:!1}charAt(t){return this.buffer[this.pos+t]}continueScalar(t){let n=this.buffer[t];if(this.indentNext>0){let r=0;for(;n===" ";)n=this.buffer[++r+t];if(n==="\r"){const s=this.buffer[r+t+1];if(s===`
|
|||
|
|
`||!s&&!this.atEnd)return t+r+1}return n===`
|
|||
|
|
`||r>=this.indentNext||!n&&!this.atEnd?t+r:-1}if(n==="-"||n==="."){const r=this.buffer.substr(t,3);if((r==="---"||r==="...")&&Rn(this.buffer[t+3]))return-1}return t}getLine(){let t=this.lineEndPos;return(typeof t!="number"||t!==-1&&t<this.pos)&&(t=this.buffer.indexOf(`
|
|||
|
|
`,this.pos),this.lineEndPos=t),t===-1?this.atEnd?this.buffer.substring(this.pos):null:(this.buffer[t-1]==="\r"&&(t-=1),this.buffer.substring(this.pos,t))}hasChars(t){return this.pos+t<=this.buffer.length}setNext(t){return this.buffer=this.buffer.substring(this.pos),this.pos=0,this.lineEndPos=null,this.next=t,null}peek(t){return this.buffer.substr(this.pos,t)}*parseNext(t){switch(t){case"stream":return yield*this.parseStream();case"line-start":return yield*this.parseLineStart();case"block-start":return yield*this.parseBlockStart();case"doc":return yield*this.parseDocument();case"flow":return yield*this.parseFlowCollection();case"quoted-scalar":return yield*this.parseQuotedScalar();case"block-scalar":return yield*this.parseBlockScalar();case"plain-scalar":return yield*this.parsePlainScalar()}}*parseStream(){let t=this.getLine();if(t===null)return this.setNext("stream");if(t[0]===Xm&&(yield*this.pushCount(1),t=t.substring(1)),t[0]==="%"){let n=t.length,r=t.indexOf("#");for(;r!==-1;){const i=t[r-1];if(i===" "||i===" "){n=r-1;break}else r=t.indexOf("#",r+1)}for(;;){const i=t[n-1];if(i===" "||i===" ")n-=1;else break}const s=(yield*this.pushCount(n))+(yield*this.pushSpaces(!0));return yield*this.pushCount(t.length-s),this.pushNewline(),"stream"}if(this.atLineEnd()){const n=yield*this.pushSpaces(!0);return yield*this.pushCount(t.length-n),yield*this.pushNewline(),"stream"}return yield Ym,yield*this.parseLineStart()}*parseLineStart(){const t=this.charAt(0);if(!t&&!this.atEnd)return this.setNext("line-start");if(t==="-"||t==="."){if(!this.atEnd&&!this.hasChars(4))return this.setNext("line-start");const n=this.peek(3);if((n==="---"||n==="...")&&Rn(this.charAt(3)))return yield*this.pushCount(3),this.indentValue=0,this.indentNext=0,n==="---"?"doc":"stream"}return this.indentValue=yield*this.pushSpaces(!1),this.indentNext>this.indentValue&&!Rn(this.charAt(1))&&(this.indentNext=this.indentValue),yield*this.parseBlockStart()}*parseBlockStart(){const[t,n]=this.peek(2);if(!n&&!this.atEnd)return this.setNext("block-start");if((t==="-"||t==="?"||t===":")&&Rn(n)){const r=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=r,yield*this.parseBlockStart()}return"doc"}*parseDocument(){yield*this.pushSpaces(!0);const t=this.getLine();if(t===null)return this.setNext("doc");let n=yield*this.pushIndicators();switch(t[n]){case"#":yield*this.pushCount(t.length-n);case void 0:return yield*this.pushNewline(),yield*this.parseLineStart();case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel=1,"flow";case"}":case"]":return yield*this.pushCount(1),"doc";case"*":return yield*this.pushUntil(Wl),"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":return n+=yield*this.parseBlockScalarHeader(),n+=yield*this.pushSpaces(!0),yield*this.pushCount(t.length-n),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let t,n,r=-1;do t=yield*this.pushNewline(),t>0?(n=yield*this.pushSpaces(!1),this.indentValue=r=n):n=0,n+=yield*this.pushSpaces(!0);while(t+n>0);const s=this.getLine();if(s===null)return this.setNext("flow");if((r!==-1&&r<this.indentNext&&s[0]!=="#"||r===0&&(s.startsWith("---")||s.startsWith("..."))&&Rn(s[3]))&&!(r===this.indentNext-1&&this.flowLevel===1&&(s[0]==="]"||s[0]==="}")))return this.flowLevel=0,yield Jm,yield*this.parseLineStart();let i=0;for(;s[i]===",";)i+=yield*this.pushCount(1),i+=yield*this.pushSpaces(!0),this.flowKey=!1;switch(i+=yield*this.pushIndicators(),s[i]){case void 0:return"flow";case"#":return yield*this.pushCount(s.length-i),"flow";case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel+=1,"flow";case"}":case"]":return yield*this.pushCount(1),this.flowKey=!0,this.flowLevel-=1,this.flowLevel?"flow":"doc";case"*":return yield*this.pushUntil(Wl),"flow";case'"':case"'":return this.flowKey=!0,yield*this.parseQuotedScalar();case":":{const o=this.charAt(1);if(this.flowKey||Rn(o)||o===",")return this.flowKey=!1,yield*this.pushCount(1),yield*th
|
|||
|
|
`,this.pos);if(s!==-1){for(;s!==-1;){const i=this.continueScalar(s+1);if(i===-1)break;s=r.indexOf(`
|
|||
|
|
`,i)}s!==-1&&(n=s-(r[s-1]==="\r"?2:1))}if(n===-1){if(!this.atEnd)return this.setNext("quoted-scalar");n=this.buffer.length}return yield*this.pushToIndex(n+1,!1),this.flowLevel?"flow":"doc"}*parseBlockScalarHeader(){this.blockScalarIndent=-1,this.blockScalarKeep=!1;let t=this.pos;for(;;){const n=this.buffer[++t];if(n==="+")this.blockScalarKeep=!0;else if(n>"0"&&n<="9")this.blockScalarIndent=Number(n)-1;else if(n!=="-")break}return yield*this.pushUntil(n=>Rn(n)||n==="#")}*parseBlockScalar(){let t=this.pos-1,n=0,r;e:for(let i=this.pos;r=this.buffer[i];++i)switch(r){case" ":n+=1;break;case`
|
|||
|
|
`:t=i,n=0;break;case"\r":{const o=this.buffer[i+1];if(!o&&!this.atEnd)return this.setNext("block-scalar");if(o===`
|
|||
|
|
`)break}default:break e}if(!r&&!this.atEnd)return this.setNext("block-scalar");if(n>=this.indentNext){this.blockScalarIndent===-1?this.indentNext=n:this.indentNext=this.blockScalarIndent+(this.indentNext===0?1:this.indentNext);do{const i=this.continueScalar(t+1);if(i===-1)break;t=this.buffer.indexOf(`
|
|||
|
|
`,i)}while(t!==-1);if(t===-1){if(!this.atEnd)return this.setNext("block-scalar");t=this.buffer.length}}let s=t+1;for(r=this.buffer[s];r===" ";)r=this.buffer[++s];if(r===" "){for(;r===" "||r===" "||r==="\r"||r===`
|
|||
|
|
`;)r=this.buffer[++s];t=s-1}else if(!this.blockScalarKeep)do{let i=t-1,o=this.buffer[i];o==="\r"&&(o=this.buffer[--i]);const u=i;for(;o===" ";)o=this.buffer[--i];if(o===`
|
|||
|
|
`&&i>=this.pos&&i+1+n>u)t=i;else break}while(!0);return yield O0,yield*this.pushToIndex(t+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){const t=this.flowLevel>0;let n=this.pos-1,r=this.pos-1,s;for(;s=this.buffer[++r];)if(s===":"){const i=this.buffer[r+1];if(Rn(i)||t&&ka.has(i))break;n=r}else if(Rn(s)){let i=this.buffer[r+1];if(s==="\r"&&(i===`
|
|||
|
|
`?(r+=1,s=`
|
|||
|
|
`,i=this.buffer[r+1]):n=r),i==="#"||t&&ka.has(i))break;if(s===`
|
|||
|
|
`){const o=this.continueScalar(r+1);if(o===-1)break;r=Math.max(r,o-2)}}else{if(t&&ka.has(s))break;n=r}return!s&&!this.atEnd?this.setNext("plain-scalar"):(yield O0,yield*this.pushToIndex(n+1,!0),t?"flow":"doc")}*pushCount(t){return t>0?(yield this.buffer.substr(this.pos,t),this.pos+=t,t):0}*pushToIndex(t,n){const r=this.buffer.slice(this.pos,t);return r?(yield r,this.pos+=r.length,r.length):(n&&(yield""),0)}*pushIndicators(){switch(this.charAt(0)){case"!":return(yield*this.pushTag())+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"&":return(yield*this.pushUntil(Wl))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"-":case"?":case":":{const t=this.flowLevel>0,n=this.charAt(1);if(Rn(n)||t&&ka.has(n))return t?this.flowKey&&(this.flowKey=!1):this.indentNext=this.indentValue+1,(yield*this.pushCount(1))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators())}}return 0}*pushTag(){if(this.charAt(1)==="<"){let t=this.pos+2,n=this.buffer[t];for(;!Rn(n)&&n!==">";)n=this.buffer[++t];return yield*this.pushToIndex(n===">"?t+1:t,!1)}else{let t=this.pos+1,n=this.buffer[t];for(;n;)if($b.has(n))n=this.buffer[++t];else if(n==="%"&&Ph.has(this.buffer[t+1])&&Ph.has(this.buffer[t+2]))n=this.buffer[t+=3];else break;return yield*this.pushToIndex(t,!1)}}*pushNewline(){const t=this.buffer[this.pos];return t===`
|
|||
|
|
`?yield*this.pushCount(1):t==="\r"&&this.charAt(1)===`
|
|||
|
|
`?yield*this.pushCount(2):0}*pushSpaces(t){let n=this.pos-1,r;do r=this.buffer[++n];while(r===" "||t&&r===" ");const s=n-this.pos;return s>0&&(yield this.buffer.substr(this.pos,s),this.pos=n),s}*pushUntil(t){let n=this.pos,r=this.buffer[n];for(;!t(r);)r=this.buffer[++n];return yield*this.pushToIndex(n,!1)}}class zb{constructor(){this.lineStarts=[],this.addNewLine=t=>this.lineStarts.push(t),this.linePos=t=>{let n=0,r=this.lineStarts.length;for(;n<r;){const i=n+r>>1;this.lineStarts[i]<t?n=i+1:r=i}if(this.lineStarts[n]===t)return{line:n+1,col:1};if(n===0)return{line:0,col:t};const s=this.lineStarts[n-1];return{line:n,col:t-s+1}}}}function vr(e,t){for(let n=0;n<e.length;++n)if(e[n].type===t)return!0;return!1}function $h(e){for(let t=0;t<e.length;++t)switch(e[t].type){case"space":case"comment":case"newline":break;default:return t}return-1}function Qm(e){switch(e==null?void 0:e.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"flow-collection":return!0;default:return!1}}function Sa(e){switch(e.type){case"document":return e.start;case"block-map":{const t=e.items[e.items.length-1];return t.sep??t.start}case"block-seq":return e.items[e.items.length-1].start;default:return[]}}function us(e){var n;if(e.length===0)return[];let t=e.length;e:for(;--t>=0;)switch(e[t].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}for(;((n=e[++t])==null?void 0:n.type)==="space";);return e.splice(t,e.length)}function Fh(e){if(e.start.type==="flow-seq-start")for(const t of e.items)t.sep&&!t.value&&!vr(t.start,"explicit-key-ind")&&!vr(t.sep,"map-value-ind")&&(t.key&&(t.value=t.key),delete t.key,Qm(t.value)?t.value.end?Array.prototype.push.apply(t.value.end,t.sep):t.value.end=t.sep:Array.prototype.push.apply(t.start,t.sep),delete t.sep)}class qb{constructor(t){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source="",this.type="",this.lexer=new Bb,this.onNewLine=t}*parse(t,n=!1){this.onNewLine&&this.offset===0&&this.onNewLine(0);for(const r of this.lexer.lex(t,n))yield*this.next(r);n||(yield*this.end())}*next(t){if(this.source=t,this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=t.length;return}const n=Pb(t);if(n)if(n==="scalar")this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else{switch(this.type=n,yield*this.step(),n){case"newline":this.atNewLine=!0,this.indent=0,this.onNewLine&&this.onNewLine(this.offset+t.length);break;case"space":this.atNewLine&&t[0]===" "&&(this.indent+=t.length);break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":this.atNewLine&&(this.indent+=t.length);break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=!1}this.offset+=t.length}else{const r=`Not a YAML token: ${t}`;yield*this.pop({type:"error",offset:this.offset,message:r,source:t}),this.offset+=t.length}}*end(){for(;this.stack.length>0;)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){const t=this.peek(1);if(this.type==="doc-end"&&(t==null?void 0:t.type)!=="doc-end"){for(;this.stack.length>0;)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source});return}if(!t)return yield*this.stream();switch(t.type){case"document":return yield*this.document(t);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(t);case"block-scalar":return yield*this.blockScalar(t);case"block-map":return yield*this.blockMap(t);case"block-seq":return yield*this.blockSequence(t);case"flow-collection":return yield*this.flowCollection(t);case"doc-end":return yield*this.documentEnd(t)}yield*this.pop()}peek(t){return this.stack[this.stack.length-t]}*pop(t){const n=t??this.stack.pop();if(!n)yield{type:"error",offset:this.offset,source:"",message:"Tried to pop an empty stack"};else if(this.stack.length===0)yield n;else{const r=this.peek(1);switch(n.type==="block-scalar"?n.indent="indent"in r?r.indent:0:n.type==="flow-collection"&&r.type==="document"&&(n.indent=0),
|
|||
|
|
`)+1;for(;n!==0;)this.onNewLine(this.offset+n),n=this.source.indexOf(`
|
|||
|
|
`,n)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(t){var r;const n=t.items[t.items.length-1];switch(this.type){case"newline":if(this.onKeyLine=!1,n.value){const s="end"in n.value?n.value.end:void 0,i=Array.isArray(s)?s[s.length-1]:void 0;(i==null?void 0:i.type)==="comment"?s==null||s.push(this.sourceToken):t.items.push({start:[this.sourceToken]})}else n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken);return;case"space":case"comment":if(n.value)t.items.push({start:[this.sourceToken]});else if(n.sep)n.sep.push(this.sourceToken);else{if(this.atIndentedComment(n.start,t.indent)){const s=t.items[t.items.length-2],i=(r=s==null?void 0:s.value)==null?void 0:r.end;if(Array.isArray(i)){Array.prototype.push.apply(i,n.start),i.push(this.sourceToken),t.items.pop();return}}n.start.push(this.sourceToken)}return}if(this.indent>=t.indent){const s=!this.onKeyLine&&this.indent===t.indent,i=s&&(n.sep||n.explicitKey)&&this.type!=="seq-item-ind";let o=[];if(i&&n.sep&&!n.value){const u=[];for(let h=0;h<n.sep.length;++h){const d=n.sep[h];switch(d.type){case"newline":u.push(h);break;case"space":break;case"comment":d.indent>t.indent&&(u.length=0);break;default:u.length=0}}u.length>=2&&(o=n.sep.splice(u[1]))}switch(this.type){case"anchor":case"tag":i||n.value?(o.push(this.sourceToken),t.items.push({start:o}),this.onKeyLine=!0):n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken);return;case"explicit-key-ind":!n.sep&&!n.explicitKey?(n.start.push(this.sourceToken),n.explicitKey=!0):i||n.value?(o.push(this.sourceToken),t.items.push({start:o,explicitKey:!0})):this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:!0}]}),this.onKeyLine=!0;return;case"map-value-ind":if(n.explicitKey)if(n.sep)if(n.value)t.items.push({start:[],key:null,sep:[this.sourceToken]});else if(vr(n.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:o,key:null,sep:[this.sourceToken]}]});else if(Qm(n.key)&&!vr(n.sep,"newline")){const u=us(n.start),h=n.key,d=n.sep;d.push(this.sourceToken),delete n.key,delete n.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:u,key:h,sep:d}]})}else o.length>0?n.sep=n.sep.concat(o,this.sourceToken):n.sep.push(this.sourceToken);else if(vr(n.start,"newline"))Object.assign(n,{key:null,sep:[this.sourceToken]});else{const u=us(n.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:u,key:null,sep:[this.sourceToken]}]})}else n.sep?n.value||i?t.items.push({start:o,key:null,sep:[this.sourceToken]}):vr(n.sep,"map-value-ind")?this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):n.sep.push(this.sourceToken):Object.assign(n,{key:null,sep:[this.sourceToken]});this.onKeyLine=!0;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const u=this.flowScalar(this.type);i||n.value?(t.items.push({start:o,key:u,sep:[]}),this.onKeyLine=!0):n.sep?this.stack.push(u):(Object.assign(n,{key:u,sep:[]}),this.onKeyLine=!0);return}default:{const u=this.startBlockValue(t);if(u){if(u.type==="block-seq"){if(!n.explicitKey&&n.sep&&!vr(n.sep,"newline")){yield*this.pop({type:"error",offset:this.offset,message:"Unexpected block-seq-ind on same line with key",source:this.source});return}}else s&&t.items.push({start:o});this.stack.push(u);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(t){var r;const n=t.items[t.items.length-1];switch(this.type){case"newline":if(n.value){const s="end"in n.value?n.value.end:void 0,i=Array.isArray(s)?s[s.length-1]:void 0;(i==null?void 0:i.type)==="comment"?s==null||s.push(this.sourceToken):t.items.push({start:[this.sourceToken]})}else n.start.push(this.sourceToken);return;case"space":case"comment":if(n.value)t.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(n.start,t.indent)){const s=t.items[t.items.length-2],i=(r=s==null?void 0:s.value)==null?void 0:r.end;if(Array.i
|
|||
|
|
`)+1;for(;n!==0;)this.onNewLine(this.offset+n),n=this.source.indexOf(`
|
|||
|
|
`,n)+1}return{type:t,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(t){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;const n=Sa(t),r=us(n);return r.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,explicitKey:!0}]}}case"map-value-ind":{this.onKeyLine=!0;const n=Sa(t),r=us(n);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(t,n){return this.type!=="comment"||this.indent<=n?!1:t.every(r=>r.type==="newline"||r.type==="space")}*documentEnd(t){this.type!=="doc-mode"&&(t.end?t.end.push(this.sourceToken):t.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop()))}*lineEnd(t){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;case"space":case"comment":default:t.end?t.end.push(this.sourceToken):t.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop())}}}function Ub(e){const t=e.prettyErrors!==!1;return{lineCounter:e.lineCounter||t&&new zb||null,prettyErrors:t}}function Hb(e,t={}){const{lineCounter:n,prettyErrors:r}=Ub(t),s=new qb(n==null?void 0:n.addNewLine),i=new Db(t);let o=null;for(const u of i.compose(s.parse(e),!0,e.length))if(!o)o=u;else if(o.options.logLevel!=="silent"){o.errors.push(new ti(u.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}return r&&n&&(o.errors.forEach(Lh(e,n)),o.warnings.forEach(Lh(e,n))),o}function Vb(e,t,n){let r;const s=Hb(e,n);if(!s)return null;if(s.warnings.forEach(i=>Am(s.options.logLevel,i)),s.errors.length>0){if(s.options.logLevel!=="silent")throw s.errors[0];s.errors=[]}return s.toJS(Object.assign({reviver:r},n))}var Zm={},ep={exports:{}};(function(e,t){(function(r,s){e.exports=s()})(typeof self<"u"?self:i0,function(){return function(){var n={};(function(){n.d=function(l,a){for(var c in a)n.o(a,c)&&!n.o(l,c)&&Object.defineProperty(l,c,{enumerable:!0,get:a[c]})}})(),function(){n.o=function(l,a){return Object.prototype.hasOwnProperty.call(l,a)}}();var r={};n.d(r,{default:function(){return pg}});class s extends Error{constructor(a,c){let f="KaTeX parse error: "+a,m,w;const _=c&&c.loc;if(_&&_.start<=_.end){const T=_.lexer.input;m=_.start,w=_.end,m===T.length?f+=" at end of input: ":f+=" at position "+(m+1)+": ";const I=T.slice(m,w).replace(/[^]/g,"$&̲");let P;m>15?P="…"+T.slice(m-15,m):P=T.slice(0,m);let U;w+15<T.length?U=T.slice(w,w+15)+"…":U=T.slice(w),f+=P+I+U}super(f),this.name="ParseError",Object.setPrototypeOf(this,s.prototype),this.position=m,m!=null&&w!=null&&(this.length=w-m),this.rawMessage=a}}var i=s;const o=/([A-Z])/g,u=l=>l.replace(o,"-$1").toLowerCase(),h={"&":"&",">":">","<":"<",'"':""","'":"'"},d=/[&><"']/g,p=l=>String(l).replace(d,a=>h[a]),b=l=>l.type==="ordgroup"||l.type==="color"?l.body.length===1?b(l.body[0]):l:l.type==="font"?b(l.body):l,v=new Set(["mathord","textord","atom"]),k=l=>v.has(b(l).type),x=l=>{const a=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(l);return a?a[2]!==":"||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(a[1])?null:a[1].toLowerCase():"_relative"},A={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},descrip
|
|||
|
|
c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
|
|||
|
|
c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
|
|||
|
|
c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10
|
|||
|
|
s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429
|
|||
|
|
c69,-144,104.5,-217.7,106.5,-221
|
|||
|
|
l`+l/2.075+" -"+l+`
|
|||
|
|
c5.3,-9.3,12,-14,20,-14
|
|||
|
|
H400000v`+(40+l)+`H845.2724
|
|||
|
|
s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7
|
|||
|
|
c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z
|
|||
|
|
M`+(834+l)+" "+a+"h400000v"+(40+l)+"h-400000z"},Je=function(l,a){return"M263,"+(601+l+a)+`c0.7,0,18,39.7,52,119
|
|||
|
|
c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120
|
|||
|
|
c340,-704.7,510.7,-1060.3,512,-1067
|
|||
|
|
l`+l/2.084+" -"+l+`
|
|||
|
|
c4.7,-7.3,11,-11,19,-11
|
|||
|
|
H40000v`+(40+l)+`H1012.3
|
|||
|
|
s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232
|
|||
|
|
c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1
|
|||
|
|
s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26
|
|||
|
|
c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z
|
|||
|
|
M`+(1001+l)+" "+a+"h400000v"+(40+l)+"h-400000z"},_t=function(l,a){return"M983 "+(10+l+a)+`
|
|||
|
|
l`+l/3.13+" -"+l+`
|
|||
|
|
c4,-6.7,10,-10,18,-10 H400000v`+(40+l)+`
|
|||
|
|
H1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7
|
|||
|
|
s-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744
|
|||
|
|
c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30
|
|||
|
|
c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722
|
|||
|
|
c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5
|
|||
|
|
c53.7,-170.3,84.5,-266.8,92.5,-289.5z
|
|||
|
|
M`+(1001+l)+" "+a+"h400000v"+(40+l)+"h-400000z"},xt=function(l,a){return"M424,"+(2398+l+a)+`
|
|||
|
|
c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514
|
|||
|
|
c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20
|
|||
|
|
s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121
|
|||
|
|
s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081
|
|||
|
|
l`+l/4.223+" -"+l+`c4,-6.7,10,-10,18,-10 H400000
|
|||
|
|
v`+(40+l)+`H1014.6
|
|||
|
|
s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185
|
|||
|
|
c-2,6,-10,9,-24,9
|
|||
|
|
c-8,0,-12,-0.7,-12,-2z M`+(1001+l)+" "+a+`
|
|||
|
|
h400000v`+(40+l)+"h-400000z"},Pt=function(l,a){return"M473,"+(2713+l+a)+`
|
|||
|
|
c339.3,-1799.3,509.3,-2700,510,-2702 l`+l/5.298+" -"+l+`
|
|||
|
|
c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+l)+`H1017.7
|
|||
|
|
s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9
|
|||
|
|
c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200
|
|||
|
|
c0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26
|
|||
|
|
s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,
|
|||
|
|
606zM`+(1001+l)+" "+a+"h400000v"+(40+l)+"H1017.7z"},dn=function(l){const a=l/2;return"M400000 "+l+" H0 L"+a+" 0 l65 45 L145 "+(l-80)+" H400000z"},qn=function(l,a,c){const f=c-54-a-l;return"M702 "+(l+a)+"H400000"+(40+l)+`
|
|||
|
|
H742v`+f+`l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1
|
|||
|
|
h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170
|
|||
|
|
c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667
|
|||
|
|
219 661 l218 661zM702 `+a+"H400000v"+(40+l)+"H742z"},Ne=function(l,a,c){a=1e3*a;let f="";switch(l){case"sqrtMain":f=Ee(a,me);break;case"sqrtSize1":f=Je(a,me);break;case"sqrtSize2":f=_t(a,me);break;case"sqrtSize3":f=xt(a,me);break;case"sqrtSize4":f=Pt(a,me);break;case"sqrtTall":f=qn(a,me,c)}return f},ge=function(l,a){switch(l){case"⎜":return"M291 0 H417 V"+a+" H291z M291 0 H417 V"+a+" H291z";case"∣":return"M145 0 H188 V"+a+" H145z M145 0 H188 V"+a+" H145z";case"∥":return"M145 0 H188 V"+a+" H145z M145 0 H188 V"+a+" H145z"+("M367 0 H410 V"+a+" H367z M367 0 H410 V"+a+" H367z");case"⎟":return"M457 0 H583 V"+a+" H457z M457 0 H583 V"+a+" H457z";case"⎢":return"M319 0 H403 V"+a+" H319z M319 0 H403 V"+a+" H319z";case"⎥":return"M263 0 H347 V"+a+" H263z M263 0 H347 V"+a+" H263z";case"⎪":return"M384 0 H504 V"+a+" H384z M384 0 H504 V"+a+" H384z";case"⏐":return"M312 0 H355 V"+a+" H312z M312 0 H355 V"+a+" H312z";case"‖":return"M257 0 H300 V"+a+" H257z M257 0 H300 V"+a+" H257z"+("M478 0 H521 V"+a+" H478z M478 0 H521 V"+a+" H478z");default:return""}},kt={doubleleftarrow:`M262 157
|
|||
|
|
l10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3
|
|||
|
|
0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28
|
|||
|
|
14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5
|
|||
|
|
c2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5
|
|||
|
|
157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87
|
|||
|
|
-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7
|
|||
|
|
-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z
|
|||
|
|
m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l
|
|||
|
|
-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5
|
|||
|
|
14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88
|
|||
|
|
-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68
|
|||
|
|
-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18
|
|||
|
|
-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782
|
|||
|
|
c-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3
|
|||
|
|
-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120
|
|||
|
|
135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8
|
|||
|
|
-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247
|
|||
|
|
c-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208
|
|||
|
|
490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3
|
|||
|
|
1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202
|
|||
|
|
l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117
|
|||
|
|
-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7
|
|||
|
|
5-6 9-10 13-.7 1-7.3 1-20 1H6z`,leftbraceunder:`M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13
|
|||
|
|
35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688
|
|||
|
|
0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7
|
|||
|
|
-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,leftgroup:`M400000 80
|
|||
|
|
H435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0
|
|||
|
|
435 0h399565z`,leftgroupunder:`M400000 262
|
|||
|
|
H435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219
|
|||
|
|
435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3
|
|||
|
|
-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5
|
|||
|
|
-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7
|
|||
|
|
-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z`,leftharpoonplus:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5
|
|||
|
|
20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3
|
|||
|
|
-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7
|
|||
|
|
-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z
|
|||
|
|
m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333
|
|||
|
|
5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5
|
|||
|
|
1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667
|
|||
|
|
-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z`,leftharpoondownplus:`M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12
|
|||
|
|
10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7
|
|||
|
|
-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0
|
|||
|
|
v40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z`,lefthook:`M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5
|
|||
|
|
-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3
|
|||
|
|
-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21
|
|||
|
|
71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:`M40 281 V428 H0 V94 H40 V241 H400000 v40z
|
|||
|
|
M40 281 V428 H0 V94 H40 V241 H400000 v40z`,leftmapsto:`M40 281 V448H0V74H40V241H400000v40z
|
|||
|
|
M40 281 V448H0V74H40V241H400000v40z`,leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23
|
|||
|
|
-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8
|
|||
|
|
c28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3
|
|||
|
|
68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:`M0 50 h400000 v40H0z m0 194h40000v40H0z
|
|||
|
|
M0 50 h400000 v40H0z m0 194h40000v40H0z`,midbrace:`M200428 334
|
|||
|
|
c-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14
|
|||
|
|
-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7
|
|||
|
|
311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11
|
|||
|
|
12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214
|
|||
|
|
c100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14
|
|||
|
|
53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3
|
|||
|
|
11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0
|
|||
|
|
-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z`,oiintSize1:`M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6
|
|||
|
|
-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z
|
|||
|
|
m368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8
|
|||
|
|
60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z`,oiintSize2:`M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8
|
|||
|
|
-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z
|
|||
|
|
m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2
|
|||
|
|
c0 110 84 276 504 276s502.4-166 502.4-276z`,oiiintSize1:`M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6
|
|||
|
|
-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z
|
|||
|
|
m525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0
|
|||
|
|
85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z`,oiiintSize2:`M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8
|
|||
|
|
-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z
|
|||
|
|
m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1
|
|||
|
|
c0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z`,rightarrow:`M0 241v40h399891c-47.3 35.3-84 78-110 128
|
|||
|
|
-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20
|
|||
|
|
11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7
|
|||
|
|
39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85
|
|||
|
|
-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
|
|||
|
|
-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
|
|||
|
|
151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l
|
|||
|
|
-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5
|
|||
|
|
s-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1
|
|||
|
|
c124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z`,rightbraceunder:`M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3
|
|||
|
|
28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237
|
|||
|
|
-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z`,rightgroup:`M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0
|
|||
|
|
3-1 3-3v-38c-76-158-257-219-435-219H0z`,rightgroupunder:`M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18
|
|||
|
|
0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z`,rightharpoon:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3
|
|||
|
|
-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2
|
|||
|
|
-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58
|
|||
|
|
69.2 92 94.5zm0 0v40h399900v-40z`,rightharpoonplus:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11
|
|||
|
|
-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7
|
|||
|
|
2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z
|
|||
|
|
m0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z`,rightharpoondown:`M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8
|
|||
|
|
8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5
|
|||
|
|
-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95
|
|||
|
|
-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z`,rightharpoondownplus:`M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8
|
|||
|
|
15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3
|
|||
|
|
8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3
|
|||
|
|
-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z
|
|||
|
|
m0-194v40h400000v-40zm0 0v40h400000v-40z`,righthook:`M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3
|
|||
|
|
15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0
|
|||
|
|
-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21
|
|||
|
|
66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:`M399960 241 V94 h40 V428 h-40 V281 H0 v-40z
|
|||
|
|
M399960 241 V94 h40 V428 h-40 V281 H0 v-40z`,rightToFrom:`M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23
|
|||
|
|
1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32
|
|||
|
|
-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142
|
|||
|
|
-167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40
|
|||
|
|
115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69
|
|||
|
|
-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3
|
|||
|
|
-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19
|
|||
|
|
-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101
|
|||
|
|
10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z`,twoheadrightarrow:`M400000 167
|
|||
|
|
c-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3
|
|||
|
|
41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42
|
|||
|
|
18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333
|
|||
|
|
-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70
|
|||
|
|
101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z`,tilde1:`M200 55.538c-77 0-168 73.953-177 73.953-3 0-7
|
|||
|
|
-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0
|
|||
|
|
114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0
|
|||
|
|
4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128
|
|||
|
|
-68.267.847-113-73.952-191-73.952z`,tilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418
|
|||
|
|
-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9
|
|||
|
|
31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114
|
|||
|
|
c1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751
|
|||
|
|
181.476 676 181.476c-149 0-189-126.21-332-126.21z`,tilde3:`M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457
|
|||
|
|
-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0
|
|||
|
|
411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697
|
|||
|
|
16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696
|
|||
|
|
-338 0-409-156.573-744-156.573z`,tilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345
|
|||
|
|
-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409
|
|||
|
|
177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9
|
|||
|
|
14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409
|
|||
|
|
-175.236-744-175.236z`,vec:`M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5
|
|||
|
|
3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11
|
|||
|
|
10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63
|
|||
|
|
-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1
|
|||
|
|
-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59
|
|||
|
|
H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359
|
|||
|
|
c-16-25.333-24-45-24-59z`,widehat1:`M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22
|
|||
|
|
c-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z`,widehat2:`M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10
|
|||
|
|
-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat3:`M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10
|
|||
|
|
-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat4:`M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10
|
|||
|
|
-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widecheck1:`M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1,
|
|||
|
|
-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z`,widecheck2:`M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
|
|||
|
|
-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck3:`M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
|
|||
|
|
-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck4:`M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
|
|||
|
|
-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,baraboveleftarrow:`M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202
|
|||
|
|
c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5
|
|||
|
|
c-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130
|
|||
|
|
s-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47
|
|||
|
|
121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6
|
|||
|
|
s2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11
|
|||
|
|
c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z
|
|||
|
|
M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32
|
|||
|
|
-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0
|
|||
|
|
13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39
|
|||
|
|
-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5
|
|||
|
|
-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
|
|||
|
|
-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
|
|||
|
|
151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
|
|||
|
|
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17
|
|||
|
|
c2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21
|
|||
|
|
c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40
|
|||
|
|
c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z
|
|||
|
|
M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0
|
|||
|
|
c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
|
|||
|
|
-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
|
|||
|
|
c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
|
|||
|
|
M0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z`,shortbaraboveleftharpoon:`M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
|
|||
|
|
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9,
|
|||
|
|
1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7,
|
|||
|
|
-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z
|
|||
|
|
M93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z`,shortrightharpoonabovebar:`M53,241l0,40c398570,0,399437,0,399437,0
|
|||
|
|
c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
|
|||
|
|
-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
|
|||
|
|
c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
|
|||
|
|
M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},ue=function(l,a){switch(l){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+a+` v1759 h347 v-84
|
|||
|
|
H403z M403 1759 V0 H319 V1759 v`+a+" v1759 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+a+` v1759 H0 v84 H347z
|
|||
|
|
M347 1759 V0 H263 V1759 v`+a+" v1759 h84z";case"vert":return"M145 15 v585 v"+a+` v585 c2.667,10,9.667,15,21,15
|
|||
|
|
c10,0,16.667,-5,20,-15 v-585 v`+-a+` v-585 c-2.667,-10,-9.667,-15,-21,-15
|
|||
|
|
c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+a+" v585 h43z";case"doublevert":return"M145 15 v585 v"+a+` v585 c2.667,10,9.667,15,21,15
|
|||
|
|
c10,0,16.667,-5,20,-15 v-585 v`+-a+` v-585 c-2.667,-10,-9.667,-15,-21,-15
|
|||
|
|
c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+a+` v585 h43z
|
|||
|
|
M367 15 v585 v`+a+` v585 c2.667,10,9.667,15,21,15
|
|||
|
|
c10,0,16.667,-5,20,-15 v-585 v`+-a+` v-585 c-2.667,-10,-9.667,-15,-21,-15
|
|||
|
|
c-10,0,-16.667,5,-20,15z M410 15 H367 v585 v`+a+" v585 h43z";case"lfloor":return"M319 602 V0 H403 V602 v"+a+` v1715 h263 v84 H319z
|
|||
|
|
MM319 602 V0 H403 V602 v`+a+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+a+` v1799 H0 v-84 H319z
|
|||
|
|
MM319 602 V0 H403 V602 v`+a+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+a+` v602 h84z
|
|||
|
|
M403 1759 V0 H319 V1759 v`+a+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+a+` v602 h84z
|
|||
|
|
M347 1759 V0 h-84 V1759 v`+a+" v602 h84z";case"lparen":return`M863,9c0,-2,-2,-5,-6,-9c0,0,-17,0,-17,0c-12.7,0,-19.3,0.3,-20,1
|
|||
|
|
c-5.3,5.3,-10.3,11,-15,17c-242.7,294.7,-395.3,682,-458,1162c-21.3,163.3,-33.3,349,
|
|||
|
|
-36,557 l0,`+(a+84)+`c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210,
|
|||
|
|
949.7,470,1265c4.7,6,9.7,11.7,15,17c0.7,0.7,7,1,19,1c0,0,18,0,18,0c4,-4,6,-7,6,-9
|
|||
|
|
c0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5,
|
|||
|
|
-544.7,-112.5,-882c-2,-104,-3,-167,-3,-189
|
|||
|
|
l0,-`+(a+92)+`c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3,
|
|||
|
|
-210,155.3,-396.3,270,-559c6.7,-9.3,10,-15.3,10,-18z`;case"rparen":return`M76,0c-16.7,0,-25,3,-25,9c0,2,2,6.3,6,13c21.3,28.7,42.3,60.3,
|
|||
|
|
63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5
|
|||
|
|
c11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,`+(a+9)+`
|
|||
|
|
c-3,4,-3.3,16.7,-3.3,38c0,162,-5.7,313.7,-17,455c-18.7,248,-55.8,469.3,-111.5,664
|
|||
|
|
c-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6,11
|
|||
|
|
c0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17
|
|||
|
|
c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558
|
|||
|
|
l0,-`+(a+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|||
|
|
-470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw new Error("Unknown stretchy delimiter.")}};class Be{constructor(a){this.children=a,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(a){return this.classes.includes(a)}toNode(){const a=document.createDocumentFragment();for(let c=0;c<this.children.length;c++)a.appendChild(this.children[c].toNode());return a}toMarkup(){let a="";for(let c=0;c<this.children.length;c++)a+=this.children[c].toMarkup();return a}toText(){const a=c=>c.toText();return this.children.map(a).join("")}}const mn={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},Mn={ex:!0,em:!0,mu:!0},vn=function(l){return typeof l!="string"&&(l=l.unit),l in mn||l in Mn||l==="ex"},rt=function(l,a){let c;if(l.unit in mn)c=mn[l.unit]/a.fontMetrics().ptPerEm/a.sizeMultiplier;else if(l.unit==="mu")c=a.fontMetrics().cssEmPerMu;else{let f;if(a.style.isTight()?f=a.havingStyle(a.style.text()):f=a,l.unit==="ex")c=f.fontMetrics().xHeight;else if(l.unit==="em")c=f.fontMetrics().quad;else throw new i("Invalid unit: '"+l.unit+"'");f!==a&&(c*=f.sizeMultiplier/a.sizeMultiplier)}return Math.min(l.number*c,a.maxSize)},C=function(l){return+l.toFixed(4)+"em"},$=function(l){return l.filter(a=>a).join(" ")},Z=function(l,a,c){if(this.classes=l||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=c||{},a){a.style.isTight()&&this.classes.push("mtight");const f=a.getColor();f&&(this.style.color=f)}},_e=function(l){const a=document.createElement(l);a.className=$(this.classes);for(const c of Object.keys(this.style))a.style[c]=this.style[c];for(const c of Object.keys(this.attributes))a.setAttribute(c,this.attributes[c]);for(let c=0;c<this.children.length;c++)a.appendChild(this.children[c].toNode());return a},Xe=/[\s"'>/=\x00-\x1f]/,Pe=function(l){let a="<"+l;this.classes.length&&(a+=' class="'+p($(this.classes))+'"');let c="";for(const f of Object.keys(this.style))c+=u(f)+":"+this.style[f]+";";c&&(a+=' style="'+p(c)+'"');for(const f of Object.keys(this.attributes)){if(Xe.test(f))throw new i("Invalid attribute name '"+f+"'");a+=" "+f+'="'+p(this.attributes[f])+'"'}a+=">";for(let f=0;f<this.children.length;f++)a+=this.children[f].toMarkup();return a+="</"+l+">",a};class J{constructor(a,c,f,m){Z.call(this,a,f,m),this.children=c||[]}setAttribute(a,c){this.attributes[a]=c}hasClass(a){return this.classes.includes(a)}toNode(){return _e.call(this,"span")}toMarkup(){return Pe.call(this,"span")}}class se{constructor(a,c,f,m){Z.call(this,c,m),this.children=f||[],this.setAttribute("href",a)}setAttribute(a,c){this.attributes[a]=c}hasClass(a){return this.classes.includes(a)}toNode(){return _e.call(this,"a")}toMarkup(){return Pe.call(this,"a")}}class st{constructor(a,c,f){this.alt=c,this.src=a,this.classes=["mord"],this.height=0,this.depth=0,this.maxFontSize=0,this.style=f}hasClass(a){return this.classes.includes(a)}toNode(){const a=document.createElement("img");a.src=this.src,a.alt=this.alt,a.className="mord";for(const c of Object.keys(this.style))a.style[c]=this.style[c];return a}toMarkup(){let a='<img src="'+p(this.src)+'"'+(' alt="'+p(this.alt)+'"'),c="";for(const f of Object.keys(this.style))c+=u(f)+":"+this.style[f]+";";return c&&(a+=' style="'+p(c)+'"'),a+="'/>",a}}const gt={î:"ı̂",ï:"ı̈",í:"ı́",ì:"ı̀"};class vt{constructor(a,c,f,m,w,_,T,I){this.text=a,this.height=c||0,this.depth=f||0,this.italic=m||0,this.skew=w||0,this.width=_||0,this.classes=T||[],this.style=I||{},this.maxFontSize=0;const P=Oe(this.text.charCodeAt(0));P&&this.classes.push(P+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=gt[this.text])}hasClass(a){return this.classes.includes(a)}toNode(){const a=document.createTextNode(this.text);let c=null;this.italic>0&&(c=document.createElement("span"),c.style.marginRight=C(this.italic)),this.classes.length>0&&(c=c||document.createElement("span"),c.className=$(this.classes));for(const f of Object.keys(this.style))c=c||document.createElement("span"),c.style[f]=this.
|
|||
|
|
`+de+" children.");for(let $e=0;$e<de;$e++){const We=new Qt(U[$e]),nt=new an([We],{width:"400em",height:C(ne),viewBox:"0 0 "+_+" "+K,preserveAspectRatio:je[$e]+" slice"}),Rt=pr([xe[$e]],[nt],a);if(de===1)return{span:Rt,minWidth:W,height:ne};Rt.style.height=C(ne),I.push(Rt)}return{span:ie(["stretchy"],I,a),minWidth:W,height:ne}}}const{span:f,minWidth:m,height:w}=c();return f.height=w,f.style.height=C(w),m>0&&(f.style.minWidth=C(m)),f},M4=function(l,a,c,f,m){let w;const _=l.height+l.depth+c+f;if(/fbox|color|angl/.test(a)){if(w=ie(["stretchy",a],[],m),a==="fbox"){const T=m.color&&m.getColor();T&&(w.style.borderColor=T)}}else{const T=[];/^[bx]cancel$/.test(a)&&T.push(new qs({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(a)&&T.push(new qs({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));const I=new an(T,{width:"100%",height:C(_)});w=pr([],[I],m)}return w.height=_,w.style.height=C(_),w};function Ue(l,a){if(!l||l.type!==a)throw new Error("Expected node of type "+a+", but got "+(l?"node of type "+l.type:String(l)));return l}function ea(l){const a=ta(l);if(!a)throw new Error("Expected node of symbol group type, but got "+(l?"node of type "+l.type:String(l)));return a}function ta(l){return l&&(l.type==="atom"||u4.hasOwnProperty(l.type))?l:null}const bu=l=>{if(l instanceof vt)return l;if(a4(l)&&l.children.length===1)return bu(l.children[0])},sl=(l,a)=>{let c,f,m;l&&l.type==="supsub"?(f=Ue(l.base,"accent"),c=f.base,l.base=c,m=i4(Ze(l,a)),l.base=f):(f=Ue(l,"accent"),c=f.base);const w=Ze(c,a.havingCrampedStyle()),_=f.isShifty&&k(c);let T=0;if(_){var I,P;T=(I=(P=bu(w))==null?void 0:P.skew)!=null?I:0}const U=f.label==="\\c";let W=U?w.height+w.depth:Math.min(w.height,a.fontMetrics().xHeight),K;if(f.isStretchy)K=Zi(f,a),K=Qe({positionType:"firstBaseline",children:[{type:"elem",elem:w},{type:"elem",elem:K,wrapperClasses:["svg-align"],wrapperStyle:T>0?{width:"calc(100% - "+C(2*T)+")",marginLeft:C(2*T)}:void 0}]});else{let de,xe;f.label==="\\vec"?(de=lu("vec",a),xe=ou.vec[1]):(de=Wi({mode:f.mode,text:f.label},a,"textord"),de=Zc(de),de.italic=0,xe=de.width,U&&(W+=de.depth)),K=ie(["accent-body"],[de]);const je=f.label==="\\textcircled";je&&(K.classes.push("accent-full"),W=w.height);let $e=T;je||($e-=xe/2),K.style.left=C($e),f.label==="\\textcircled"&&(K.style.top=".2em"),K=Qe({positionType:"firstBaseline",children:[{type:"elem",elem:w},{type:"kern",size:-W},{type:"elem",elem:K}]})}const ne=ie(["mord","accent"],[K],a);return m?(m.children[0]=ne,m.height=Math.max(ne.height,m.height),m.classes[0]="mord",m):ne},wu=(l,a)=>{const c=l.isStretchy?Qi(l.label):new le("mo",[_n(l.label,l.mode)]),f=new le("mover",[lt(l.base,a),c]);return f.setAttribute("accent","true"),f},O4=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(l=>"\\"+l).join("|"));we({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:(l,a)=>{const c=Yi(a[0]),f=!O4.test(l.funcName),m=!f||l.funcName==="\\widehat"||l.funcName==="\\widetilde"||l.funcName==="\\widecheck";return{type:"accent",mode:l.parser.mode,label:l.funcName,isStretchy:f,isShifty:m,base:c}},htmlBuilder:sl,mathmlBuilder:wu}),we({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(l,a)=>{const c=a[0];let f=l.parser.mode;return f==="math"&&(l.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+l.funcName+" works only in text mode"),f="text"),{type:"accent",mode:f,label:l.funcName,isStretchy:!1,isShifty:!0,base:c}},htmlBuilder:sl,mathmlBuilder:wu}),we({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\unde
|
|||
|
|
]`,ng="\\\\[a-zA-Z@]+",rg="\\\\[^\uD800-\uDFFF]",sg="("+ng+")"+uf+"*",ig=`\\\\(
|
|||
|
|
|[ \r ]+
|
|||
|
|
?)[ \r ]*`,xl="[̀-ͯ]",ag=new RegExp(xl+"+$"),og="("+uf+"+)|"+(ig+"|")+"([!-\\[\\]-‧-豈-]"+(xl+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(xl+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+sg)+("|"+rg+")");class ff{constructor(a,c){this.input=a,this.settings=c,this.tokenRegex=new RegExp(og,"g"),this.catcodes={"%":14,"~":13}}setCatcode(a,c){this.catcodes[a]=c}lex(){const a=this.input,c=this.tokenRegex.lastIndex;if(c===a.length)return new yn("EOF",new on(this,c,c));const f=this.tokenRegex.exec(a);if(f===null||f.index!==c)throw new i("Unexpected character: '"+a[c]+"'",new yn(a[c],new on(this,c,c+1)));const m=f[6]||f[3]||(f[2]?"\\ ":" ");if(this.catcodes[m]===14){const w=a.indexOf(`
|
|||
|
|
`,this.tokenRegex.lastIndex);return w===-1?(this.tokenRegex.lastIndex=a.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=w+1,this.lex()}return new yn(m,new on(this,c,this.tokenRegex.lastIndex))}}class lg{constructor(a,c){a===void 0&&(a={}),c===void 0&&(c={}),this.current=c,this.builtins=a,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new i("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");const a=this.undefStack.pop();for(const c in a)a.hasOwnProperty(c)&&(a[c]==null?delete this.current[c]:this.current[c]=a[c])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(a){return this.current.hasOwnProperty(a)||this.builtins.hasOwnProperty(a)}get(a){return this.current.hasOwnProperty(a)?this.current[a]:this.builtins[a]}set(a,c,f){if(f===void 0&&(f=!1),f){for(let m=0;m<this.undefStack.length;m++)delete this.undefStack[m][a];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][a]=c)}else{const m=this.undefStack[this.undefStack.length-1];m&&!m.hasOwnProperty(a)&&(m[a]=this.current[a])}c==null?delete this.current[a]:this.current[a]=c}}var cg=Bu;N("\\noexpand",function(l){const a=l.popToken();return l.isExpandable(a.text)&&(a.noexpand=!0,a.treatAsRelax=!0),{tokens:[a],numArgs:0}}),N("\\expandafter",function(l){const a=l.popToken();return l.expandOnce(!0),{tokens:[a],numArgs:0}}),N("\\@firstoftwo",function(l){return{tokens:l.consumeArgs(2)[0],numArgs:0}}),N("\\@secondoftwo",function(l){return{tokens:l.consumeArgs(2)[1],numArgs:0}}),N("\\@ifnextchar",function(l){const a=l.consumeArgs(3);l.consumeSpaces();const c=l.future();return a[0].length===1&&a[0][0].text===c.text?{tokens:a[1],numArgs:0}:{tokens:a[2],numArgs:0}}),N("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),N("\\TextOrMath",function(l){const a=l.consumeArgs(2);return l.mode==="text"?{tokens:a[0],numArgs:0}:{tokens:a[1],numArgs:0}});const hf={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};N("\\char",function(l){let a=l.popToken(),c,f=0;if(a.text==="'")c=8,a=l.popToken();else if(a.text==='"')c=16,a=l.popToken();else if(a.text==="`")if(a=l.popToken(),a.text[0]==="\\")f=a.text.charCodeAt(1);else{if(a.text==="EOF")throw new i("\\char` missing argument");f=a.text.charCodeAt(0)}else c=10;if(c){if(f=hf[a.text],f==null||f>=c)throw new i("Invalid base-"+c+" digit "+a.text);let m;for(;(m=hf[l.future().text])!=null&&m<c;)f*=c,f+=m,l.popToken()}return"\\@char{"+f+"}"});const kl=(l,a,c,f)=>{let m=l.consumeArg().tokens;if(m.length!==1)throw new i("\\newcommand's first argument must be a macro name");const w=m[0].text,_=l.isDefined(w);if(_&&!a)throw new i("\\newcommand{"+w+"} attempting to redefine "+(w+"; use \\renewcommand"));if(!_&&!c)throw new i("\\renewcommand{"+w+"} when command "+w+" does not yet exist; use \\newcommand");let T=0;if(m=l.consumeArg().tokens,m.length===1&&m[0].text==="["){let I="",P=l.expandNextToken();for(;P.text!=="]"&&P.text!=="EOF";)I+=P.text,P=l.expandNextToken();if(!I.match(/^\s*[0-9]+\s*$/))throw new i("Invalid number of arguments: "+I);T=parseInt(I),m=l.consumeArg().tokens}return _&&f||l.macros.set(w,{tokens:m,numArgs:T}),""};N("\\newcommand",l=>kl(l,!1,!0,!1)),N("\\renewcommand",l=>kl(l,!0,!1,!1)),N("\\providecommand",l=>kl(l,!0,!0,!0)),N("\\message",l=>{const a=l.consumeArgs(1)[0];return console.log(a.reverse().map(c=>c.text).join("")),""}),N("\\errmessage",l=>{const a=l.consumeArgs(1)[0];return console.error(a.reverse().map(c=>c.text).join("")),""}),N("\\show",l=>{const a=l.popToken(),c=a.text;return console.log(a,l.macros.get(c),br[c],St.math[c],St.text[c]),""}),N("\\bgroup","{"),N("\\egroup","}"),N("~","\\nobreakspace"),N("\\lq","`"),N("\\rq","'"),N("\\aa","\\r a"),N("\\AA","\\r A"),N("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}"),N("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}"),N("\\textregis
|
|||
|
|
please report what input caused this bug`);return w=w.slice(1,-1),{type:"verb",mode:"text",body:w,star:_}}bf.hasOwnProperty(c[0])&&!St[this.mode][c[0]]&&(this.settings.strict&&this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+c[0]+'" used in math mode',a),c=bf[c[0]]+c.slice(1));const f=ag.exec(c);f&&(c=c.substring(0,f.index),c==="i"?c="ı":c==="j"&&(c="ȷ"));let m;if(St[this.mode][c]){this.settings.strict&&this.mode==="math"&&Go.includes(c)&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+c[0]+'" used in math mode',a);const w=St[this.mode][c].group,_=on.range(a);let T;if(c4.hasOwnProperty(w)){const I=w;T={type:"atom",mode:this.mode,family:I,loc:_,text:c}}else T={type:w,mode:this.mode,loc:_,text:c};m=T}else if(c.charCodeAt(0)>=128)this.settings.strict&&(H(c.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+c[0]+'" used in math mode',a):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+c[0]+'"'+(" ("+c.charCodeAt(0)+")"),a)),m={type:"textord",mode:"text",loc:on.range(a),text:c};else return null;if(this.consume(),f)for(let w=0;w<f[0].length;w++){const _=f[0][w];if(!Al[_])throw new i("Unknown accent ' "+_+"'",a);const T=Al[_][this.mode]||Al[_].text;if(!T)throw new i("Accent "+_+" unsupported in "+this.mode+" mode",a);m={type:"accent",mode:this.mode,loc:on.range(a),label:T,isStretchy:!1,isShifty:!0,base:m}}return m}}la.endOfExpression=new Set(["}","\\endgroup","\\end","\\right","&"]);var Tl=function(l,a){if(!(typeof l=="string"||l instanceof String))throw new TypeError("KaTeX can only parse string typed expression");const c=new la(l,a);delete c.gullet.macros.current["\\df@tag"];let f=c.parse();if(delete c.gullet.macros.current["\\current@color"],delete c.gullet.macros.current["\\color"],c.gullet.macros.get("\\df@tag")){if(!a.displayMode)throw new i("\\tag works only in display equations");f=[{type:"tag",mode:"text",body:f,tag:c.subparse([new yn("\\df@tag")])}]}return f};let wf=function(l,a,c){a.textContent="";const f=El(l,c).toNode();a.appendChild(f)};typeof document<"u"&&document.compatMode!=="CSS1Compat"&&(typeof console<"u"&&console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."),wf=function(){throw new i("KaTeX doesn't work in quirks mode.")});const hg=function(l,a){return El(l,a).toMarkup()},dg=function(l,a){const c=new M(a);return Tl(l,c)},vf=function(l,a,c){if(c.throwOnError||!(l instanceof i))throw l;const f=ie(["katex-error"],[new vt(a)]);return f.setAttribute("title",l.toString()),f.setAttribute("style","color:"+c.errorColor),f},El=function(l,a){const c=new M(a);try{const f=Tl(l,c);return T4(f,l,c)}catch(f){return vf(f,l,c)}};var mg={version:"0.16.38",render:wf,renderToString:hg,ParseError:i,SETTINGS_SCHEMA:A,__parse:dg,__renderToDomTree:El,__renderToHTMLTree:function(l,a){const c=new M(a);try{const f=Tl(l,c);return E4(f,l,c)}catch(f){return vf(f,l,c)}},__setFontMetrics:o4,__defineSymbol:g,__defineFunction:we,__defineMacro:N,__domTree:{Span:J,Anchor:se,SymbolNode:vt,SvgNode:an,PathNode:Qt,LineNode:qs}},pg=mg;return r=r.default,r}()})})(ep);var jb=ep.exports,Wb=i0&&i0.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Zm,"__esModule",{value:!0});const Gb=Wb(jb);function Bh(e,t){const n=e.src[t-1],r=e.src[t],s=e.src[t+1];if(r!=="$")return{can_open:!1,can_close:!1};let i=!1,o=!1;return n!=="$"&&n!=="\\"&&(n===void 0||zh(n)||!qh(n))&&(i=!0),s!=="$"&&(s==null||zh(s)||!qh(s))&&(o=!0),{can_open:i,can_close:o}}function zh(e){return/^\s$/u.test(e)}function qh(e){return/^[\w\d]$/u.test(e)}function Uh(e,t){const n=e.src[t-1],r=e.src[t],s=e.src[t+1],i=e.src[t+2];return r==="$"&&n!=="$"&&n!=="\\"&&s==="$"&&i!=="$"?{can_open:!0,can_close:!0}:{can_open:!1,can_close:!1}}function Kb(e,t){if(e.src[e.pos]!=="$")return!1;const n=e.tokens.at(-1);if((n==null?void 0:n.type)==="html_inline"&&/^<\w+.+[^/]>$/.test(n.content))return!1;let r
|
|||
|
|
`:"")+e.getLines(t+1,p,e.tShift[t],!0)+(d&&d.trim()?d:""),v.map=[t,e.line],v.markup="$$",!0}function Yb(e,t,n,r){const s=e.bMarks[t]+e.tShift[t],i=e.eMarks[t];if(!e.src.slice(s,i).match(/^\s*\\begin\s*\{([^{}]+)\}/))return!1;if(t>0){const k=e.bMarks[t-1]+e.tShift[t-1],x=e.eMarks[t-1],A=e.src.slice(k,x);if(!/^\s*$/.test(A))return!1}if(r)return!0;const h=[];let d=t,p,b=!1;e:for(;!b&&!(d>=n);d++){const k=e.bMarks[d]+e.tShift[d],x=e.eMarks[d];if(k<x&&e.tShift[d]<e.blkIndent)break;const A=e.src.slice(k,x);for(const E of A.matchAll(/(\\begin|\\end)\s*\{([^{}]+)\}/g))if(E[1]==="\\begin")h.push(E[2].trim());else if(E[1]==="\\end"&&(h.pop(),!h.length)){p=e.src.slice(k,x),b=!0;break e}}e.line=d+1;const v=e.push("math_block","math",0);return v.block=!0,v.content=(e.getLines(t,d,e.tShift[t],!0)+(p??"")).trim(),v.map=[t,e.line],v.markup="$$",!0}function Jb(e,t){var n,r,s,i,o;if(e.src.slice(e.pos,e.pos+2)!=="$$")return!1;if(i=Uh(e,e.pos),!i.can_open)return t||(e.pending+="$$"),e.pos+=2,!0;for(n=e.pos+2,r=n;(r=e.src.indexOf("$$",r))!==-1;){for(o=r-1;e.src[o]==="\\";)o-=1;if((r-o)%2==1)break;r+=2}return r===-1?(t||(e.pending+="$$"),e.pos=n,!0):r-n===0?(t||(e.pending+="$$$$"),e.pos=n+2,!0):(i=Uh(e,r),i.can_close?(t||(s=e.push("math_block","math",0),s.block=!0,s.markup="$$",s.content=e.src.slice(n,r)),e.pos=r+2,!0):(t||(e.pending+="$$"),e.pos=n,!0))}function Qb(e,t){const n=e.src.slice(e.pos);if(!/^\n\\begin/.test(n))return!1;if(e.pos+=1,t)return!0;const r=n.split(/\n/g).slice(1);let s;const i=[];e:for(var o=0;o<r.length;++o){const d=r[o];for(const p of d.matchAll(/(\\begin|\\end)\s*\{([^{}]+)\}/g))if(p[1]==="\\begin")i.push(p[2].trim());else if(p[1]==="\\end"&&(i.pop(),!i.length)){s=o;break e}}if(typeof s>"u")return!1;const u=r.slice(0,s+1).reduce((d,p)=>d+p.length,0)+s+1,h=e.push("math_inline_bare_block","math",0);return h.block=!0,h.markup="$$",h.content=n.slice(1,u),e.pos=e.pos+u,!0}function Hh(e,t,n,r){const s=e.tokens;for(let i=s.length-1;i>=0;i--){const o=s[i],u=[];if(o.type!=="html_block")continue;const h=o.content;for(const d of h.matchAll(r)){if(!d.groups)continue;const p=d.groups.html_before_math,b=d.groups.math,v=d.groups.html_after_math;p&&u.push({...o,type:"html_block",map:null,content:p}),b&&u.push({...o,type:t,map:null,content:b,markup:n,block:!0,tag:"math"}),v&&u.push({...o,type:"html_block",map:null,content:v})}u.length>0&&s.splice(i,1,...u)}return!0}function Aa(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function Zb(e,t){const n=(t==null?void 0:t.katex)??Gb.default,r=t==null?void 0:t.enableBareBlocks,s=t==null?void 0:t.enableMathBlockInHtml,i=t==null?void 0:t.enableMathInlineInHtml,o=t==null?void 0:t.enableFencedBlocks;e.inline.ruler.after("escape","math_inline",Kb),e.inline.ruler.after("escape","math_inline_block",Jb),r&&e.inline.ruler.before("text","math_inline_bare_block",Qb),e.block.ruler.after("blockquote","math_block",(k,x,A,E)=>r&&Yb(k,x,A,E)?!0:Xb(k,x,A,E),{alt:["paragraph","reference","blockquote","list"]});const u=/(?<html_before_math>[\s\S]*?)\$\$(?<math>[\s\S]+?)\$\$(?<html_after_math>(?:(?!\$\$[\s\S]+?\$\$)[\s\S])*)/gm,h=/(?<html_before_math>[\s\S]*?)\$(?<math>.*?)\$(?<html_after_math>(?:(?!\$.*?\$)[\s\S])*)/gm;s&&e.core.ruler.push("math_block_in_html_block",k=>Hh(k,"math_block","$$",u)),i&&e.core.ruler.push("math_inline_in_html_block",k=>Hh(k,"math_inline","$",h));const d=k=>{const x=/\\begin\{(align|equation|gather|cd|alignat)\}/ig.test(k);try{return n.renderToString(k,{...t,displayMode:x})}catch(A){return t!=null&&t.throwOnError&&console.log(A),`<span class="katex-error" title="${Aa(k)}">${Aa(A+"")}</span>`}},p=(k,x)=>{const A=k[x].content,M=A.length>2&&A[0]==="`"&&A[A.length-1]==="`"?A.slice(1,-1):A;return d(M)},b=k=>{try{return`<p class="katex-block">${n.renderToString(k,{...t,displayMode:!0})}</p>`}catch(x){return t!=null&&t.throwOnError&&console.log(x),`<p class="katex-block katex-error" title="${Aa(k)}">${Aa(x+"")}</p>`}},v=(k,x)=>b(k[x].content)+`
|
|||
|
|
`;if(e.renderer.rules.math_inline=p,e.renderer.rules.math_inline_block=v,e.renderer.rules.math_inline_bare_block=v,e.renderer.rules.math_block=v,o){const k="math",x=e.renderer.rules.fence;e.renderer.rules.fence=function(A,E,M,q,L){const O=A[E];return O.info.trim().toLowerCase()===k&&o?b(O.content)+`
|
|||
|
|
`:(x==null?void 0:x.call(this,A,E,M,q,L))||""}}}var e9=Zm.default=Zb;function t9(){const e=Va({html:!0,breaks:!0});return e.use(Ey).use(Ny).use(My).use(Ry),e}function n9(e){return{transformer:e,parser:new Qs,beforeParse:new Qs,afterParse:new Qs,retransform:new Qs}}const r9=`<svg width="16" height="16" viewBox="0 -3 24 24"><path d="M19 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2m-9 14-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"/></svg>
|
|||
|
|
`,s9=`<svg width="16" height="16" viewBox="0 -3 24 24"><path fill-rule="evenodd" d="M6 5a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1zM3 6a3 3 0 0 1 3-3h12a3 3 0 0 1 3 3v12a3 3 0 0 1-3 3H6a3 3 0 0 1-3-3v-5z" clip-rule="evenodd"/></svg>
|
|||
|
|
`,i9="checkbox",Vh={" ":s9.trim(),x:r9.trim()},a9={name:i9,transform(e){return e.parser.tap(t=>{t.core.ruler.before("inline","checkbox",n=>{for(let r=2;r<n.tokens.length;r+=1){const s=n.tokens[r];if(s.type==="inline"&&s.content){const i=n.tokens[r-1].type,o=n.tokens[r-2].type;(i==="heading_open"||i==="paragraph_open"&&o==="list_item_open")&&(s.content=s.content.replace(/^\[(.)\] /,(u,h)=>Vh[h]?`${Vh[h]} `:u))}}return!1})}),{}}},o9="frontmatter",l9={name:o9,transform(e){return e.beforeParse.tap((t,n)=>{var r;const{content:s}=n;if(!/^---\r?\n/.test(s))return;const i=/\n---\r?\n/.exec(s);if(!i)return;const o=s.slice(4,i.index).trimEnd();let u;try{u=Vb(o.replace(/\r?\n|\r/g,`
|
|||
|
|
`)),u!=null&&u.markmap&&(u.markmap=c9(u.markmap))}catch{return}n.frontmatter=u,n.parserOptions={...n.parserOptions,...(r=u==null?void 0:u.markmap)==null?void 0:r.htmlParser},n.frontmatterInfo={lines:s.slice(0,i.index).split(`
|
|||
|
|
`).length+1,offset:i.index+i[0].length}}),{}}};function c9(e){if(e)return["color","extraJs","extraCss"].forEach(t=>{e[t]!=null&&(e[t]=u9(e[t]))}),["duration","maxWidth","initialExpandLevel"].forEach(t=>{e[t]!=null&&(e[t]=f9(e[t]))}),e}function u9(e){let t;return typeof e=="string"?t=[e]:Array.isArray(e)&&(t=e.filter(n=>n&&typeof n=="string")),t!=null&&t.length?t:void 0}function f9(e){if(!isNaN(+e))return+e}function $c(e,t){return t.type==="script"&&t.data.src?{...t,data:{...t.data,src:e.getFullUrl(t.data.src)}}:t}function h9(e,t){return t.type==="stylesheet"&&t.data.href?{...t,data:{...t.data,href:e.getFullUrl(t.data.href)}}:t}const jh="hljs",d9=["@highlightjs/cdn-assets@11.11.1/highlight.min.js"].map(e=>ac(e)),m9=["@highlightjs/cdn-assets@11.11.1/styles/default.min.css"].map(e=>S1(e)),p9={versions:{hljs:"11.11.1"},preloadScripts:d9,styles:m9},L0={name:jh,config:p9,transform(e){var t,n,r;let s;const i=((n=(t=L0.config)==null?void 0:t.preloadScripts)==null?void 0:n.map(h=>$c(e.transformer.urlBuilder,h)))||[],o=()=>(s||(s=ic(i)),s);let u=ms;return e.parser.tap(h=>{h.set({highlight:(d,p)=>{u();const{hljs:b}=window;return b?b.highlightAuto(d,p?[p]:void 0).value:(o().then(()=>{e.retransform.call()}),d)}})}),e.beforeParse.tap((h,d)=>{u=()=>{d.features[jh]=!0}}),{styles:(r=L0.config)==null?void 0:r.styles}}};function g9(e,t,n){return e.map(r=>{if(typeof r=="string"&&!r.includes("://")){r.startsWith("npm:")||(r=`npm:${r}`);const s=4+t.length;r.startsWith(`npm:${t}/`)&&(r=`${r.slice(0,s)}@${n}${r.slice(s)}`)}return r})}var y9=["katex@0.16.18/dist/fonts/KaTeX_AMS-Regular.woff2","katex@0.16.18/dist/fonts/KaTeX_Caligraphic-Bold.woff2","katex@0.16.18/dist/fonts/KaTeX_Caligraphic-Regular.woff2","katex@0.16.18/dist/fonts/KaTeX_Fraktur-Bold.woff2","katex@0.16.18/dist/fonts/KaTeX_Fraktur-Regular.woff2","katex@0.16.18/dist/fonts/KaTeX_Main-Bold.woff2","katex@0.16.18/dist/fonts/KaTeX_Main-BoldItalic.woff2","katex@0.16.18/dist/fonts/KaTeX_Main-Italic.woff2","katex@0.16.18/dist/fonts/KaTeX_Main-Regular.woff2","katex@0.16.18/dist/fonts/KaTeX_Math-BoldItalic.woff2","katex@0.16.18/dist/fonts/KaTeX_Math-Italic.woff2","katex@0.16.18/dist/fonts/KaTeX_SansSerif-Bold.woff2","katex@0.16.18/dist/fonts/KaTeX_SansSerif-Italic.woff2","katex@0.16.18/dist/fonts/KaTeX_SansSerif-Regular.woff2","katex@0.16.18/dist/fonts/KaTeX_Script-Regular.woff2","katex@0.16.18/dist/fonts/KaTeX_Size1-Regular.woff2","katex@0.16.18/dist/fonts/KaTeX_Size2-Regular.woff2","katex@0.16.18/dist/fonts/KaTeX_Size3-Regular.woff2","katex@0.16.18/dist/fonts/KaTeX_Size4-Regular.woff2","katex@0.16.18/dist/fonts/KaTeX_Typewriter-Regular.woff2"];const Gl="katex",b9=["katex@0.16.18/dist/katex.min.js"].map(e=>ac(e)),tp=ac("webfontloader@1.6.28/webfontloader.js");tp.data.defer=!0;const w9=["katex@0.16.18/dist/katex.min.css"].map(e=>S1(e)),v9={versions:{katex:"0.16.18",webfontloader:"1.6.28"},preloadScripts:b9,scripts:[{type:"iife",data:{fn:e=>{window.WebFontConfig={custom:{families:["KaTeX_AMS","KaTeX_Caligraphic:n4,n7","KaTeX_Fraktur:n4,n7","KaTeX_Main:n4,n7,i4,i7","KaTeX_Math:i4,i7","KaTeX_Script","KaTeX_SansSerif:n4,n7,i4","KaTeX_Size1","KaTeX_Size2","KaTeX_Size3","KaTeX_Size4","KaTeX_Typewriter"]},active:()=>{e().refreshHook.call()}}},getParams({getMarkmap:e}){return[e]}}},tp],styles:w9,resources:y9};function _9(e){return e.default||e}const x9=_9(e9),ni={name:Gl,config:v9,transform(e){var t,n,r,s;let i;const o=((n=(t=ni.config)==null?void 0:t.preloadScripts)==null?void 0:n.map(p=>$c(e.transformer.urlBuilder,p)))||[],u=()=>(i||(i=ic(o)),i),h=(p,b)=>{const{katex:v}=window;return v?v.renderToString(p,{displayMode:b,throwOnError:!1}):(u().then(()=>{e.retransform.call()}),p)};let d=ms;return e.parser.tap(p=>{p.use(x9),["math_block","math_inline"].forEach(b=>{const v=(k,x)=>(d(),h(k[x].content,!!k[x].block));p.renderer.rules[b]=v})}),e.beforeParse.tap((p,b)=>{d=()=>{b.features[Gl]=!0}}),e.afterParse.tap((p,b)=>{var v;const k=(v=b.frontmatter)==null?void 0:v.markmap;k&&["extraJs","extraCss"].forEach(x=>{var A,E;const M=k[x];M&&(k[x]=g9(M,Gl,((E=(A=ni.config)==null?void 0:A.versions)==null?void 0:
|
|||
|
|
`)(u)}}),r}Op.version=Gx;const Lp=(e,t=0)=>(e.y=t,(e.children||[]).reduce((n,r)=>{const[s,i]=n;Lp(r,e.y+e.ySize);const o=(s===0?r.lExt:r.rExt).bottom;s!==0&&Yx(e,s,i);const u=sk(o,s,i);return[s+1,u]},[0,null]),Xx(e),rk(e),e),Rp=(e,t,n)=>{typeof t>"u"&&(t=-e.relX-e.prelim,n=0);const r=t+e.relX;return e.relX=r+e.prelim-n,e.prelim=0,e.x=n+e.relX,(e.children||[]).forEach(s=>Rp(s,r,e.x)),e},Xx=e=>{(e.children||[]).reduce((t,n)=>{const[r,s]=t,i=r+n.shift,o=s+i+n.change;return n.relX+=o,[i,o]},[0,0])},Yx=(e,t,n)=>{const r=e.children[t-1],s=e.children[t];let i=r,o=r.relX,u=s,h=s.relX,d=!0;for(;i&&u;){i.bottom>n.lowY&&(n=n.next);const p=o+i.prelim-(h+u.prelim)+i.xSize/2+u.xSize/2+i.spacing(u);(p>0||p<0&&d)&&(h+=p,Jx(s,p),Qx(e,t,n.index,p)),d=!1;const b=i.bottom,v=u.bottom;b<=v&&(i=ek(i),i&&(o+=i.relX)),b>=v&&(u=Zx(u),u&&(h+=u.relX))}!i&&u?tk(e,t,u,h):i&&!u&&nk(e,t,i,o)},Jx=(e,t)=>{e.relX+=t,e.lExtRelX+=t,e.rExtRelX+=t},Qx=(e,t,n,r)=>{const s=e.children[t],i=t-n;if(i>1){const o=r/i;e.children[n+1].shift+=o,s.shift-=o,s.change-=r-o}},Zx=e=>e.hasChildren?e.firstChild:e.lThr,ek=e=>e.hasChildren?e.lastChild:e.rThr,tk=(e,t,n,r)=>{const s=e.firstChild,i=s.lExt,o=e.children[t];i.lThr=n;const u=r-n.relX-s.lExtRelX;i.relX+=u,i.prelim-=u,s.lExt=o.lExt,s.lExtRelX=o.lExtRelX},nk=(e,t,n,r)=>{const s=e.children[t],i=s.rExt,o=e.children[t-1];i.rThr=n;const u=r-n.relX-s.rExtRelX;i.relX+=u,i.prelim-=u,s.rExt=o.rExt,s.rExtRelX=o.rExtRelX},rk=e=>{if(e.hasChildren){const t=e.firstChild,n=e.lastChild,r=(t.prelim+t.relX-t.xSize/2+n.relX+n.prelim+n.xSize/2)/2;Object.assign(e,{prelim:r,lExt:t.lExt,lExtRelX:t.lExtRelX,rExt:n.rExt,rExtRelX:n.rExtRelX})}},sk=(e,t,n)=>{for(;n!==null&&e>=n.lowY;)n=n.next;return{lowY:e,index:t,next:n}},ik=".markmap{--markmap-max-width: 9999px;--markmap-a-color: #0097e6;--markmap-a-hover-color: #00a8ff;--markmap-code-bg: #f0f0f0;--markmap-code-color: #555;--markmap-highlight-bg: #ffeaa7;--markmap-table-border: 1px solid currentColor;--markmap-font: 300 16px/20px sans-serif;--markmap-circle-open-bg: #fff;--markmap-text-color: #333;--markmap-highlight-node-bg: #ff02;font:var(--markmap-font);color:var(--markmap-text-color)}.markmap-link{fill:none}.markmap-node>circle{cursor:pointer}.markmap-foreign{display:inline-block}.markmap-foreign p{margin:0}.markmap-foreign a{color:var(--markmap-a-color)}.markmap-foreign a:hover{color:var(--markmap-a-hover-color)}.markmap-foreign code{padding:.25em;font-size:calc(1em - 2px);color:var(--markmap-code-color);background-color:var(--markmap-code-bg);border-radius:2px}.markmap-foreign pre{margin:0}.markmap-foreign pre>code{display:block}.markmap-foreign del{text-decoration:line-through}.markmap-foreign em{font-style:italic}.markmap-foreign strong{font-weight:700}.markmap-foreign mark{background:var(--markmap-highlight-bg)}.markmap-foreign table,.markmap-foreign th,.markmap-foreign td{border-collapse:collapse;border:var(--markmap-table-border)}.markmap-foreign img{display:inline-block}.markmap-foreign svg{fill:currentColor}.markmap-foreign>div{width:var(--markmap-max-width);text-align:left}.markmap-foreign>div>div{display:inline-block}.markmap-highlight rect{fill:var(--markmap-highlight-node-bg)}.markmap-dark .markmap{--markmap-code-bg: #1a1b26;--markmap-code-color: #ddd;--markmap-circle-open-bg: #444;--markmap-text-color: #eee}",Jl="g.markmap-node",ak="path.markmap-link",ok="g.markmap-highlight",Ql=gx();function gd(e,t){const n=L9(e,t);return e[n]}function Zl(e){e.stopPropagation()}const lk=new Qs;class ci{constructor(t,n){this.options={...Tx},this._disposeList=[],this.handleZoom=r=>{const{transform:s}=r;this.g.attr("transform",s)},this.handlePan=r=>{r.preventDefault();const s=hs(this.svg.node()),i=s.translate(-r.deltaX/s.k,-r.deltaY/s.k);this.svg.call(this.zoom.transform,i)},this.handleClick=(r,s)=>{let i=this.options.toggleRecursively;(Ip?r.metaKey:r.ctrlKey)&&(i=!i),this.toggleNode(s,i)},this.ensureView=this.ensureVisible,this.svg=t.datum?t:xr(t),this.styleNode=this.svg.append("style"),this.zoom=kx().filter(r=>this.options.scrollForPan&&r.type==="wheel"?r.ctrlKey&&!r.button:(!r.ctrlKey||r.type
|
|||
|
|
`)}updateStyle(){this.svg.attr("class",v3(this.svg.attr("class"),"markmap",this.state.id));const t=this.getStyleContent();this.styleNode.text(t)}async toggleNode(t,n=!1){var r,s;const i=(r=t.payload)!=null&&r.fold?0:1;n?Zs(t,(o,u)=>{o.payload={...o.payload,fold:i},u()}):t.payload={...t.payload,fold:(s=t.payload)!=null&&s.fold?0:1},await this.renderData(t)}_initializeData(t){let n=0;const{color:r,initialExpandLevel:s}=this.options;let i=0,o=0;return Zs(t,(u,h,d)=>{var p,b,v,k;o+=1,u.children=(p=u.children)==null?void 0:p.map(A=>({...A})),n+=1,u.state={...u.state,depth:o,id:n,rect:{x:0,y:0,width:0,height:0},size:[0,0]},u.state.key=[(b=d==null?void 0:d.state)==null?void 0:b.id,u.state.id].filter(Boolean).join(".")+Ex(u.content),u.state.path=[(v=d==null?void 0:d.state)==null?void 0:v.path,u.state.id].filter(Boolean).join("."),r(u);const x=((k=u.payload)==null?void 0:k.fold)===2;x?i+=1:(i||s>=0&&u.state.depth>=s)&&(u.payload={...u.payload,fold:1}),h(),x&&(i-=1),o-=1}),t}_relayout(){if(!this.state.data)return;this.g.selectAll(bn(Jl)).selectAll(bn("foreignObject")).each(function(h){var d;const p=(d=this.firstChild)==null?void 0:d.firstChild,b=[p.scrollWidth,p.scrollHeight];h.state.size=b});const{lineWidth:t,paddingX:n,spacingHorizontal:r,spacingVertical:s}=this.options,i=Op({}).children(h=>{var d;if(!((d=h.payload)!=null&&d.fold))return h.children}).nodeSize(h=>{const[d,p]=h.data.state.size;return[p,d+(d?n*2:0)+r]}).spacing((h,d)=>(h.parent===d.parent?s:s*2)+t(h.data)),o=i.hierarchy(this.state.data);i(o);const u=o.descendants();u.forEach(h=>{const d=h.data;d.state.rect={x:h.y,y:h.x-h.xSize/2,width:h.ySize-r,height:h.xSize}}),this.state.rect={x1:Xh(u,h=>h.data.state.rect.x)||0,y1:Xh(u,h=>h.data.state.rect.y)||0,x2:Kh(u,h=>h.data.state.rect.x+h.data.state.rect.width)||0,y2:Kh(u,h=>h.data.state.rect.y+h.data.state.rect.height)||0}}setOptions(t){this.options={...this.options,...t},this.options.zoom?this.svg.call(this.zoom):this.svg.on(".zoom",null),this.options.pan?this.svg.on("wheel",this.handlePan):this.svg.on("wheel",null)}async setData(t,n){n&&this.setOptions(n),t&&(this.state.data=this._initializeData(t)),this.state.data&&(this.updateStyle(),await this.renderData())}async setHighlight(t){this.state.highlight=t||void 0,await this.renderData()}_getHighlightRect(t){const n=this.svg.node(),r=4/hs(n).k,s={...t.state.rect};return s.x-=r,s.y-=r,s.width+=2*r,s.height+=2*r,s}async renderData(t){const{paddingX:n,autoFit:r,color:s,maxWidth:i,lineWidth:o}=this.options,u=this.state.data;if(!u)return;const h={},d={},p=[];Zs(u,(H,me,Ee)=>{var Je;(Je=H.payload)!=null&&Je.fold||me(),h[H.state.id]=H,Ee&&(d[H.state.id]=Ee.state.id),p.push(H)});const b={},v={},k=H=>{!H||b[H.state.id]||Zs(H,(me,Ee)=>{b[me.state.id]=H.state.id,Ee()})},x=H=>v[b[H.state.id]]||u.state.rect,A=H=>(h[b[H.state.id]]||u).state.rect;v[u.state.id]=u.state.rect,t&&k(t);let{highlight:E}=this.state;E&&!h[E.state.id]&&(E=void 0);let M=this.g.selectAll(bn(ok)).selectAll(bn("rect")).data(E?[this._getHighlightRect(E)]:[]).join("rect").attr("x",H=>H.x).attr("y",H=>H.y).attr("width",H=>H.width).attr("height",H=>H.height);const q=this.g.selectAll(bn(Jl)).each(H=>{v[H.state.id]=H.state.rect}).data(p,H=>H.state.key),L=q.enter().append("g").attr("data-depth",H=>H.state.depth).attr("data-path",H=>H.state.path).each(H=>{k(h[d[H.state.id]])}),O=q.exit().each(H=>{k(h[d[H.state.id]])}),F=q.merge(L).attr("class",H=>{var me;return["markmap-node",((me=H.payload)==null?void 0:me.fold)&&"markmap-fold"].filter(Boolean).join(" ")}),z=F.selectAll(bn("line")).data(H=>[H],H=>H.state.key),j=z.enter().append("line").attr("stroke",H=>s(H)).attr("stroke-width",0),G=z.merge(j),Q=F.selectAll(bn("circle")).data(H=>{var me;return(me=H.children)!=null&&me.length?[H]:[]},H=>H.state.key),ye=Q.enter().append("circle").attr("stroke-width",0).attr("r",0).on("click",(H,me)=>this.handleClick(H,me)).on("mousedown",Zl).merge(Q).attr("stroke",H=>s(H)).attr("fill",H=>{var me;return(me=H.payload)!=null&&me.fold&&H.children?s(H):"var(--markmap-circle-open-bg)"}),ce=this._observer,te=F.selectAll(bn("foreignObject")).data(H=
|
|||
|
|
`).forEach(function(o){s=o.indexOf(":"),n=o.substring(0,s).trim().toLowerCase(),r=o.substring(s+1).trim(),!(!n||t[n]&&wS[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},xd=Symbol("internals");function Js(e){return e&&String(e).trim().toLowerCase()}function Ua(e){return e===!1||e==null?e:X.isArray(e)?e.map(Ua):String(e)}function _S(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const xS=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function t0(e,t,n,r,s){if(X.isFunction(r))return r.call(this,t,n);if(s&&(t=n),!!X.isString(t)){if(X.isString(r))return t.indexOf(r)!==-1;if(X.isRegExp(r))return r.test(t)}}function kS(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function SS(e,t){const n=X.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(s,i,o){return this[r].call(this,t,s,i,o)},configurable:!0})})}let hn=class{constructor(t){t&&this.set(t)}set(t,n,r){const s=this;function i(u,h,d){const p=Js(h);if(!p)throw new Error("header name must be a non-empty string");const b=X.findKey(s,p);(!b||s[b]===void 0||d===!0||d===void 0&&s[b]!==!1)&&(s[b||h]=Ua(u))}const o=(u,h)=>X.forEach(u,(d,p)=>i(d,p,h));if(X.isPlainObject(t)||t instanceof this.constructor)o(t,n);else if(X.isString(t)&&(t=t.trim())&&!xS(t))o(vS(t),n);else if(X.isObject(t)&&X.isIterable(t)){let u={},h,d;for(const p of t){if(!X.isArray(p))throw TypeError("Object iterator must return a key-value pair");u[d=p[0]]=(h=u[d])?X.isArray(h)?[...h,p[1]]:[h,p[1]]:p[1]}o(u,n)}else t!=null&&i(n,t,r);return this}get(t,n){if(t=Js(t),t){const r=X.findKey(this,t);if(r){const s=this[r];if(!n)return s;if(n===!0)return _S(s);if(X.isFunction(n))return n.call(this,s,r);if(X.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Js(t),t){const r=X.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||t0(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let s=!1;function i(o){if(o=Js(o),o){const u=X.findKey(r,o);u&&(!n||t0(r,r[u],u,n))&&(delete r[u],s=!0)}}return X.isArray(t)?t.forEach(i):i(t),s}clear(t){const n=Object.keys(this);let r=n.length,s=!1;for(;r--;){const i=n[r];(!t||t0(this,this[i],i,t,!0))&&(delete this[i],s=!0)}return s}normalize(t){const n=this,r={};return X.forEach(this,(s,i)=>{const o=X.findKey(r,i);if(o){n[o]=Ua(s),delete n[i];return}const u=t?kS(i):String(i).trim();u!==i&&delete n[i],n[u]=Ua(s),r[u]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return X.forEach(this,(r,s)=>{r!=null&&r!==!1&&(n[s]=t&&X.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
|
|||
|
|
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(s=>r.set(s)),r}static accessor(t){const r=(this[xd]=this[xd]={accessors:{}}).accessors,s=this.prototype;function i(o){const u=Js(o);r[u]||(SS(s,o),r[u]=!0)}return X.isArray(t)?t.forEach(i):i(t),this}};hn.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);X.reduceDescriptors(hn.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});X.freezeMethods(hn);function n0(e,t){const n=this||Fi,r=t||n,s=hn.from(r.headers);let i=r.data;return X.forEach(e,function(u){i=u.call(n,i,s.normalize(),t?t.status:void 0)}),s.normalize(),i}function Kp(e){return!!(e&&e.__CANCEL__)}let Bi=class extends De{constructor(t,n,r){super(t??"canceled",De.ERR_CANCELED,n,r),this.name="CanceledError",this.__CANCEL__=!0}};function Xp(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new De("Request failed with status code "+n.status,[De.ERR_BAD_REQUEST,De.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function AS(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function TS(e,t){e=e||10;const n=new Array(e),r=new Array(e);let s=0,i=0,o;return t=t!==void 0?t:1e3,function(h){const d=Date.now(),p=r[i];o||(o=d),n[s]=h,r[s]=d;let b=i,v=0;for(;b!==s;)v+=n[b++],b=b%e;if(s=(s+1)%e,s===i&&(i=(i+1)%e),d-o<t)return;const k=p&&d-p;return k?Math.round(v*1e3/k):void 0}}function ES(e,t){let n=0,r=1e3/t,s,i;const o=(d,p=Date.now())=>{n=p,s=null,i&&(clearTimeout(i),i=null),e(...d)};return[(...d)=>{const p=Date.now(),b=p-n;b>=r?o(d,p):(s=d,i||(i=setTimeout(()=>{i=null,o(s)},r-b)))},()=>s&&o(s)]}const ho=(e,t,n=3)=>{let r=0;const s=TS(50,250);return ES(i=>{const o=i.loaded,u=i.lengthComputable?i.total:void 0,h=o-r,d=s(h),p=o<=u;r=o;const b={loaded:o,total:u,progress:u?o/u:void 0,bytes:h,rate:d||void 0,estimated:d&&u&&p?(u-o)/d:void 0,event:i,lengthComputable:u!=null,[t?"download":"upload"]:!0};e(b)},n)},kd=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Sd=e=>(...t)=>X.asap(()=>e(...t)),NS=Jt.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Jt.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Jt.origin),Jt.navigator&&/(msie|trident)/i.test(Jt.navigator.userAgent)):()=>!0,CS=Jt.hasStandardBrowserEnv?{write(e,t,n,r,s,i,o){if(typeof document>"u")return;const u=[`${e}=${encodeURIComponent(t)}`];X.isNumber(n)&&u.push(`expires=${new Date(n).toUTCString()}`),X.isString(r)&&u.push(`path=${r}`),X.isString(s)&&u.push(`domain=${s}`),i===!0&&u.push("secure"),X.isString(o)&&u.push(`SameSite=${o}`),document.cookie=u.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function IS(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function MS(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Yp(e,t,n){let r=!IS(t);return e&&(r||n==!1)?MS(e,t):t}const Ad=e=>e instanceof hn?{...e}:e;function Jr(e,t){t=t||{};const n={};function r(d,p,b,v){return X.isPlainObject(d)&&X.isPlainObject(p)?X.merge.call({caseless:v},d,p):X.isPlainObject(p)?X.merge({},p):X.isArray(p)?p.slice():p}function s(d,p,b,v){if(X.isUndefined(p)){if(!X.isUndefined(d))return r(void 0,d,b,v)}else return r(d,p,b,v)}function i(d,p){if(!X.isUndefined(p))return r(void 0,p)}function o(d,p){if(X.isUndefined(p)){if(!X.isUndefined(d))return r(void 0,d)}else return r(void 0,p)}function u(d,p,b){if(b in t)return r(d,p);if(b in e)return r(void 0,d)}const h={url:i,method:i,data:i,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgre
|
|||
|
|
`+o.map(Md).join(`
|
|||
|
|
`):" "+Md(o[0]):"as no adapter specified";throw new De("There is no suitable adapter to dispatch the request "+u,"ERR_NOT_SUPPORT")}return s}const Zp={getAdapter:US,adapters:Yc};function r0(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Bi(null,e)}function Od(e){return r0(e),e.headers=hn.from(e.headers),e.data=n0.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Zp.getAdapter(e.adapter||Fi.adapter,e)(e).then(function(r){return r0(e),r.data=n0.call(e,e.transformResponse,r),r.headers=hn.from(r.headers),r},function(r){return Kp(r)||(r0(e),r&&r.response&&(r.response.data=n0.call(e,e.transformResponse,r.response),r.response.headers=hn.from(r.response.headers))),Promise.reject(r)})}const e4="1.13.6",Vo={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Vo[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Ld={};Vo.transitional=function(t,n,r){function s(i,o){return"[Axios v"+e4+"] Transitional option '"+i+"'"+o+(r?". "+r:"")}return(i,o,u)=>{if(t===!1)throw new De(s(o," has been removed"+(n?" in "+n:"")),De.ERR_DEPRECATED);return n&&!Ld[o]&&(Ld[o]=!0,console.warn(s(o," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,o,u):!0}};Vo.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function HS(e,t,n){if(typeof e!="object")throw new De("options must be an object",De.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let s=r.length;for(;s-- >0;){const i=r[s],o=t[i];if(o){const u=e[i],h=u===void 0||o(u,i,e);if(h!==!0)throw new De("option "+i+" must be "+h,De.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new De("Unknown option "+i,De.ERR_BAD_OPTION)}}const Ha={assertOptions:HS,validators:Vo},An=Ha.validators;let Wr=class{constructor(t){this.defaults=t||{},this.interceptors={request:new _d,response:new _d}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let s={};Error.captureStackTrace?Error.captureStackTrace(s):s=new Error;const i=s.stack?s.stack.replace(/^.+\n/,""):"";try{r.stack?i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(r.stack+=`
|
|||
|
|
`+i):r.stack=i}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Jr(this.defaults,n);const{transitional:r,paramsSerializer:s,headers:i}=n;r!==void 0&&Ha.assertOptions(r,{silentJSONParsing:An.transitional(An.boolean),forcedJSONParsing:An.transitional(An.boolean),clarifyTimeoutError:An.transitional(An.boolean),legacyInterceptorReqResOrdering:An.transitional(An.boolean)},!1),s!=null&&(X.isFunction(s)?n.paramsSerializer={serialize:s}:Ha.assertOptions(s,{encode:An.function,serialize:An.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Ha.assertOptions(n,{baseUrl:An.spelling("baseURL"),withXsrfToken:An.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=i&&X.merge(i.common,i[n.method]);i&&X.forEach(["delete","get","head","post","put","patch","common"],x=>{delete i[x]}),n.headers=hn.concat(o,i);const u=[];let h=!0;this.interceptors.request.forEach(function(A){if(typeof A.runWhen=="function"&&A.runWhen(n)===!1)return;h=h&&A.synchronous;const E=n.transitional||Kc;E&&E.legacyInterceptorReqResOrdering?u.unshift(A.fulfilled,A.rejected):u.push(A.fulfilled,A.rejected)});const d=[];this.interceptors.response.forEach(function(A){d.push(A.fulfilled,A.rejected)});let p,b=0,v;if(!h){const x=[Od.bind(this),void 0];for(x.unshift(...u),x.push(...d),v=x.length,p=Promise.resolve(n);b<v;)p=p.then(x[b++],x[b++]);return p}v=u.length;let k=n;for(;b<v;){const x=u[b++],A=u[b++];try{k=x(k)}catch(E){A.call(this,E);break}}try{p=Od.call(this,k)}catch(x){return Promise.reject(x)}for(b=0,v=d.length;b<v;)p=p.then(d[b++],d[b++]);return p}getUri(t){t=Jr(this.defaults,t);const n=Yp(t.baseURL,t.url,t.allowAbsoluteUrls);return Wp(n,t.params,t.paramsSerializer)}};X.forEach(["delete","get","head","options"],function(t){Wr.prototype[t]=function(n,r){return this.request(Jr(r||{},{method:t,url:n,data:(r||{}).data}))}});X.forEach(["post","put","patch"],function(t){function n(r){return function(i,o,u){return this.request(Jr(u||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:o}))}}Wr.prototype[t]=n(),Wr.prototype[t+"Form"]=n(!0)});let VS=class t4{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const r=this;this.promise.then(s=>{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](s);r._listeners=null}),this.promise.then=s=>{let i;const o=new Promise(u=>{r.subscribe(u),i=u}).then(s);return o.cancel=function(){r.unsubscribe(i)},o},t(function(i,o,u){r.reason||(r.reason=new Bi(i,o,u),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new t4(function(s){t=s}),cancel:t}}};function jS(e){return function(n){return e.apply(null,n)}}function WS(e){return X.isObject(e)&&e.isAxiosError===!0}const K0={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,Unproce
|
|||
|
|
`),n=[];let r=!1,s=0;for(const i of t){const o=i.trim();if(o.startsWith("#")){const u=o.match(/^#+/);u?s=u[0].length:s=0,n.push(i),r=!0;continue}if(!o){n.push(i);continue}if(o.startsWith("![")){n.push(i);continue}if(r&&s>0&&s<6){const u=s+1,h="#".repeat(u);n.push(h+" "+o)}else n.push(i)}return n.join(`
|
|||
|
|
`)}function KS(){const e=Ge([]),t=Ge(!1),n=_g({maxPages:1e3,backend:"hybrid-auto-engine",serverUrl:"http://localhost:30000",tableEnable:!0,formulaEnable:!0,language:"ch",forceOcr:!1}),r=Ge(null),s=Ge(!1),i=Ge(null);return{uploadedFiles:e,config:n,results:r,isUploading:t,isProcessing:s,error:i,backendOptions:[{value:"pipeline",label:"传统管道解析"},{value:"vlm-auto-engine",label:"VLM本地引擎"},{value:"hybrid-auto-engine",label:"混合本地引擎"},{value:"vlm-http-client",label:"VLM远程客户端"},{value:"hybrid-http-client",label:"混合远程客户端"}],languageOptions:[{value:"ch",label:"中文(简体)"},{value:"en",label:"英语"},{value:"korean",label:"韩语"},{value:"japan",label:"日语"},{value:"chinese_cht",label:"中文(繁体)"},{value:"ta",label:"泰米尔语"},{value:"te",label:"泰卢固语"},{value:"ka",label:"卡纳达语"},{value:"th",label:"泰语"},{value:"el",label:"希腊语"},{value:"latin",label:"拉丁语系"},{value:"arabic",label:"阿拉伯语系"},{value:"east_slavic",label:"东斯拉夫语系"},{value:"cyrillic",label:"西里尔语系"},{value:"devanagari",label:"梵文字母语系"}],handleFileUpload:async x=>{if(console.log("handleFileUpload called with files:",x),!x||x.length===0)return;const A=[];for(let E=0;E<x.length;E++){const M=x[E],q=M.type,L=M.name.toLowerCase();console.log("Processing file:",L,"type:",q);const O=q.startsWith("image/"),F=q==="application/pdf",z=L.endsWith(".docx")||L.endsWith(".doc")||q==="application/vnd.openxmlformats-officedocument.wordprocessingml.document";if(console.log("File type checks - isImage:",O,"isPdf:",F,"isWord:",z),!O&&!F&&!z){i.value="不支持的文件类型",console.log("Unsupported file type:",L,q);continue}if(M.size>100*1024*1024){i.value="文件大小超出限制",console.log("File too large:",L,M.size);continue}if(z)try{t.value=!0,i.value="正在将 Word 文档转换为 PDF...",console.log("Converting Word to PDF:",L);const j=await X5(M);console.log("Conversion successful, PDF file:",j.name,j.size),A.push(j),i.value=null}catch(j){i.value="Word 转换为 PDF 失败: "+j.message,console.error("Conversion failed:",j.message);continue}finally{t.value=!1}else A.push(M),console.log("Adding file directly:",L)}e.value=A,console.log("Final uploaded files:",A.map(E=>E.name))},initializeManualResult:()=>{r.value={markdown:"",source:"",mindmap:""},i.value=null},clearAll:()=>{e.value=[],r.value=null,i.value=null},processDocument:async()=>{if(e.value.length===0){i.value="请先上传文件";return}s.value=!0,i.value=null;try{const x={files:e.value,output_dir:"./output",lang_list:[n.language],backend:n.backend,parse_method:n.forceOcr?"ocr":"auto",formula_enable:n.formulaEnable,table_enable:n.tableEnable,start_page_id:0,end_page_id:n.maxPages-1,return_md:!0,return_middle_json:!1,response_format_zip:!1};n.backend.includes("http-client")&&n.serverUrl&&(x.server_url=n.serverUrl);const A=await GS.parseDocument(x);if(A.results){const M=Object.values(A.results)[0].md_content||"",q=r4(M);r.value={markdown:M,source:q,mindmap:q}}}catch(x){i.value=x.message||"转换失败"}finally{s.value=!1}},getFormulaLabel:x=>x.startsWith("vlm")?"启用行间公式识别":x==="pipeline"?"启用公式识别":x.startsWith("hybrid")?"启用行内公式识别":"启用公式识别",getFormulaInfo:x=>x.startsWith("vlm")?"禁用后,行间公式将显示为图片。":x==="pipeline"?"禁用后,行间公式将显示为图片,行内公式将不会被检测或解析。":x.startsWith("hybrid")?"禁用后,行内公式将不会被检测或解析。":""}}const XS=new Va({html:!0,linkify:!0,typographer:!0,breaks:!0});function s4(e){var t;return{type:e.type,tag:e.tag||void 0,nesting:e.nesting,level:e.level,content:e.content||void 0,markup:e.markup||void 0,info:e.info||void 0,block:e.block,hidden:e.hidden,map:e.map||null,attrs:e.attrs?Object.fromEntries(e.attrs):void 0,children:(t=e.children)==null?void 0:t.map(s4)}}function YS(e){if(!e.trim())return"";const n={type:"root",children:XS.parse(e,{}).map(s4)};return JSON.stringify(n,null,2)}function Ma(){return{id:`${Date.now()}_${Ma
|