@vuebro/runtime 2.0.2 → 2.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.vite/manifest.json +1 -1
- package/dist/assets/ajv-6LTVMkJm.js +8 -0
- package/dist/assets/index-hBoKIo1_.js +15 -0
- package/dist/assets/markdown-DmXmAkEm.js +204 -0
- package/dist/assets/unocss-CEUy1_Um.js +427 -0
- package/dist/index.html +6 -5
- package/package.json +11 -9
- package/dist/assets/index-D8BYfI6g.js +0 -421
- package/dist/assets/markdown-DLoCDFOz.js +0 -204
- package/dist/assets/shared-B__Q9CbY.js +0 -17
- /package/dist/assets/{loader-sfc.esm-browser.prod-2.4.5.js → loader-sfc.esm-browser.prod-2.4.7.js} +0 -0
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
import{g as getAugmentedNamespace,b as bufferExports,a as getDefaultExportFromCjs}from"./ajv-6LTVMkJm.js";import{r as renderToString,P as ParseError}from"./katex-UTpUfKgT.js";function commonjsRequire(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}const __viteBrowserExternal={},__viteBrowserExternal$1=Object.freeze(Object.defineProperty({__proto__:null,default:__viteBrowserExternal},Symbol.toStringTag,{value:"Module"})),require$$0=getAugmentedNamespace(__viteBrowserExternal$1),attr_name$1="[a-zA-Z_:@][a-zA-Z0-9:._-]*",attribute$1="(?:\\s+"+attr_name$1+`(?:\\s*=\\s*(?:[^"'=<>\`\\x00-\\x20]+|'[^']*'|"[^"]*"))?)`,open_tag$1="<[A-Za-z][A-Za-z0-9\\-]*"+attribute$1+"*\\s*\\/?>",HTML_TAG_RE$1=new RegExp("^(?:"+open_tag$1+"|<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>|<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->|<[?][\\s\\S]*?[?]>|<![A-Z]+\\s+[^>]*>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>)"),HTML_OPEN_CLOSE_TAG_RE$1=new RegExp("^(?:"+open_tag$1+"|<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>)"),HTML_SELF_CLOSING_TAG_RE=new RegExp("^<[A-Za-z][A-Za-z0-9\\-]*"+attribute$1+"*\\s*\\/>"),HTML_OPEN_AND_CLOSE_TAG_IN_THE_SAME_LINE_RE=new RegExp("^<([A-Za-z][A-Za-z0-9\\-]*)"+attribute$1+"*\\s*>.*<\\/\\1\\s*>"),TAGS_BLOCK=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],TAGS_INLINE=["a","abbr","acronym","audio","b","bdi","bdo","big","br","button","canvas","cite","code","data","datalist","del","dfn","em","embed","i","iframe","img","input","ins","kbd","label","map","mark","meter","noscript","object","output","picture","progress","q","ruby","s","samp","script","select","slot","small","span","strong","sub","sup","svg","template","textarea","time","u","tt","var","video","wbr"],TAGS_VUE_RESERVED=["template","component","transition","transition-group","keep-alive","slot","teleport"],createHtmlSequences=({blockTags:e,inlineTags:t})=>{const n=[...e,...TAGS_BLOCK],r=[...t,...TAGS_INLINE.filter(c=>!TAGS_VUE_RESERVED.includes(c))];return[[/^<(script|pre|style)(?=(\s|>|$))/i,/<\/(script|pre|style)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+n.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp("^</?(?!("+r.join("|")+")(?![\\w-]))[A-Za-z][A-Za-z0-9\\-]*(?=(\\s|/?>|$))"),/^$/,!0],[new RegExp(HTML_OPEN_CLOSE_TAG_RE$1.source+"\\s*$"),/^$/,!1]]},createHtmlBlockRule=e=>{const t=createHtmlSequences(e);return(n,r,o,c)=>{let h,F,Y,V=n.bMarks[r]+n.tShift[r],X=n.eMarks[r];if(n.sCount[r]-n.blkIndent>=4||!n.md.options.html||n.src.charCodeAt(V)!==60)return!1;for(Y=n.src.slice(V,X),h=0;h<t.length&&!t[h][0].test(Y);h++);if(h===t.length)return!1;if(c)return t[h][2];if(h===6){const te=Y.match(HTML_SELF_CLOSING_TAG_RE)??Y.match(HTML_OPEN_AND_CLOSE_TAG_IN_THE_SAME_LINE_RE);if(te){n.line=r+1;let ne=n.push("html_inline","",0);return ne.content=te[0],ne.map=[r,n.line],ne=n.push("inline","",0),ne.content=Y.slice(te[0].length),ne.map=[r,n.line],ne.children=[],!0}}if(F=r+1,!t[h][1].test(Y)){for(;F<o&&!(n.sCount[F]<n.blkIndent);F++)if(V=n.bMarks[F]+n.tShift[F],X=n.eMarks[F],Y=n.src.slice(V,X),t[h][1].test(Y)){Y.length!==0&&F++;break}}n.line=F;const ee=n.push("html_block","",0);return ee.map=[r,F],ee.content=n.getLines(r,F,n.blkIndent,!0),!0}},isLetter$1=e=>{const t=e|32;return t>=97&&t<=122},htmlInlineRule=(e,t)=>{const{pos:n}=e;if(!e.md.options.html)return!1;const r=e.posMax;if(e.src.charCodeAt(n)!==60||n+2>=r)return!1;const o=e.src.charCodeAt(n+1);if(o!==33&&o!==63&&o!==47&&!isLetter$1(o))return!1;const c=e.src.slice(n).match(HTML_TAG_RE$1);if(!c)return!1;if(!t){const h=e.push("html_inline","",0);h.content=e.src.slice(n,n+c[0].length)}return e.pos+=c[0].length,!0},componentPlugin=(e,{blockTags:t=[],inlineTags:n=[]}={})=>{const r=createHtmlBlockRule({blockTags:t,inlineTags:n});e.block.ruler.at("html_block",r,{alt:["paragraph","reference","blockquote"]}),e.inline.ruler.at("html_inline",htmlInlineRule)};var kindOf,hasRequiredKindOf;function requireKindOf(){if(hasRequiredKindOf)return kindOf;hasRequiredKindOf=1;var e=Object.prototype.toString;kindOf=function(ee){if(ee===void 0)return"undefined";if(ee===null)return"null";var te=typeof ee;if(te==="boolean")return"boolean";if(te==="string")return"string";if(te==="number")return"number";if(te==="symbol")return"symbol";if(te==="function")return h(ee)?"generatorfunction":"function";if(n(ee))return"array";if(V(ee))return"buffer";if(Y(ee))return"arguments";if(o(ee))return"date";if(r(ee))return"error";if(c(ee))return"regexp";switch(t(ee)){case"Symbol":return"symbol";case"Promise":return"promise";case"WeakMap":return"weakmap";case"WeakSet":return"weakset";case"Map":return"map";case"Set":return"set";case"Int8Array":return"int8array";case"Uint8Array":return"uint8array";case"Uint8ClampedArray":return"uint8clampedarray";case"Int16Array":return"int16array";case"Uint16Array":return"uint16array";case"Int32Array":return"int32array";case"Uint32Array":return"uint32array";case"Float32Array":return"float32array";case"Float64Array":return"float64array"}if(F(ee))return"generator";switch(te=e.call(ee),te){case"[object Object]":return"object";case"[object Map Iterator]":return"mapiterator";case"[object Set Iterator]":return"setiterator";case"[object String Iterator]":return"stringiterator";case"[object Array Iterator]":return"arrayiterator"}return te.slice(8,-1).toLowerCase().replace(/\s/g,"")};function t(X){return typeof X.constructor=="function"?X.constructor.name:null}function n(X){return Array.isArray?Array.isArray(X):X instanceof Array}function r(X){return X instanceof Error||typeof X.message=="string"&&X.constructor&&typeof X.constructor.stackTraceLimit=="number"}function o(X){return X instanceof Date?!0:typeof X.toDateString=="function"&&typeof X.getDate=="function"&&typeof X.setDate=="function"}function c(X){return X instanceof RegExp?!0:typeof X.flags=="string"&&typeof X.ignoreCase=="boolean"&&typeof X.multiline=="boolean"&&typeof X.global=="boolean"}function h(X,ee){return t(X)==="GeneratorFunction"}function F(X){return typeof X.throw=="function"&&typeof X.return=="function"&&typeof X.next=="function"}function Y(X){try{if(typeof X.length=="number"&&typeof X.callee=="function")return!0}catch(ee){if(ee.message.indexOf("callee")!==-1)return!0}return!1}function V(X){return X.constructor&&typeof X.constructor.isBuffer=="function"?X.constructor.isBuffer(X):!1}return kindOf}var isExtendable,hasRequiredIsExtendable;function requireIsExtendable(){return hasRequiredIsExtendable||(hasRequiredIsExtendable=1,isExtendable=function(t){return typeof t<"u"&&t!==null&&(typeof t=="object"||typeof t=="function")}),isExtendable}var extendShallow,hasRequiredExtendShallow;function requireExtendShallow(){if(hasRequiredExtendShallow)return extendShallow;hasRequiredExtendShallow=1;var e=requireIsExtendable();extendShallow=function(o){e(o)||(o={});for(var c=arguments.length,h=1;h<c;h++){var F=arguments[h];e(F)&&t(o,F)}return o};function t(r,o){for(var c in o)n(o,c)&&(r[c]=o[c])}function n(r,o){return Object.prototype.hasOwnProperty.call(r,o)}return extendShallow}var sectionMatter,hasRequiredSectionMatter;function requireSectionMatter(){if(hasRequiredSectionMatter)return sectionMatter;hasRequiredSectionMatter=1;var e=requireKindOf(),t=requireExtendShallow();sectionMatter=function(Y,V){typeof V=="function"&&(V={parse:V});var X=r(Y),ee={section_delimiter:"---",parse:h},te=t({},ee,V),ne=te.section_delimiter,re=X.content.split(/\r?\n/),ie=null,se=c(),oe=[],ae=[];function le(Te){X.content=Te,ie=[],oe=[]}function de(Te){ae.length&&(se.key=o(ae[0],ne),se.content=Te,te.parse(se,ie),ie.push(se),se=c(),oe=[],ae=[])}for(var he=0;he<re.length;he++){var me=re[he],Se=ae.length,xe=me.trim();if(n(xe,ne)){if(xe.length===3&&he!==0){if(Se===0||Se===2){oe.push(me);continue}ae.push(xe),se.data=oe.join(`
|
|
2
|
+
`),oe=[];continue}ie===null&&le(oe.join(`
|
|
3
|
+
`)),Se===2&&de(oe.join(`
|
|
4
|
+
`)),ae.push(xe);continue}oe.push(me)}return ie===null?le(oe.join(`
|
|
5
|
+
`)):de(oe.join(`
|
|
6
|
+
`)),X.sections=ie,X};function n(Y,V){return!(Y.slice(0,V.length)!==V||Y.charAt(V.length+1)===V.slice(-1))}function r(Y){if(e(Y)!=="object"&&(Y={content:Y}),typeof Y.content!="string"&&!F(Y.content))throw new TypeError("expected a buffer or string");return Y.content=Y.content.toString(),Y.sections=[],Y}function o(Y,V){return Y?Y.slice(V.length).trim():""}function c(){return{key:"",data:"",content:""}}function h(Y){return Y}function F(Y){return Y&&Y.constructor&&typeof Y.constructor.isBuffer=="function"?Y.constructor.isBuffer(Y):!1}return sectionMatter}var engines={exports:{}},jsYaml$1={},loader={},common={},hasRequiredCommon;function requireCommon(){if(hasRequiredCommon)return common;hasRequiredCommon=1;function e(h){return typeof h>"u"||h===null}function t(h){return typeof h=="object"&&h!==null}function n(h){return Array.isArray(h)?h:e(h)?[]:[h]}function r(h,F){var Y,V,X,ee;if(F)for(ee=Object.keys(F),Y=0,V=ee.length;Y<V;Y+=1)X=ee[Y],h[X]=F[X];return h}function o(h,F){var Y="",V;for(V=0;V<F;V+=1)Y+=h;return Y}function c(h){return h===0&&Number.NEGATIVE_INFINITY===1/h}return common.isNothing=e,common.isObject=t,common.toArray=n,common.repeat=o,common.isNegativeZero=c,common.extend=r,common}var exception,hasRequiredException;function requireException(){if(hasRequiredException)return exception;hasRequiredException=1;function e(t,n){Error.call(this),this.name="YAMLException",this.reason=t,this.mark=n,this.message=(this.reason||"(unknown reason)")+(this.mark?" "+this.mark.toString():""),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e.prototype.toString=function(n){var r=this.name+": ";return r+=this.reason||"(unknown reason)",!n&&this.mark&&(r+=" "+this.mark.toString()),r},exception=e,exception}var mark,hasRequiredMark;function requireMark(){if(hasRequiredMark)return mark;hasRequiredMark=1;var e=requireCommon();function t(n,r,o,c,h){this.name=n,this.buffer=r,this.position=o,this.line=c,this.column=h}return t.prototype.getSnippet=function(r,o){var c,h,F,Y,V;if(!this.buffer)return null;for(r=r||4,o=o||75,c="",h=this.position;h>0&&`\0\r
|
|
7
|
+
\u2028\u2029`.indexOf(this.buffer.charAt(h-1))===-1;)if(h-=1,this.position-h>o/2-1){c=" ... ",h+=5;break}for(F="",Y=this.position;Y<this.buffer.length&&`\0\r
|
|
8
|
+
\u2028\u2029`.indexOf(this.buffer.charAt(Y))===-1;)if(Y+=1,Y-this.position>o/2-1){F=" ... ",Y-=5;break}return V=this.buffer.slice(h,Y),e.repeat(" ",r)+c+V+F+`
|
|
9
|
+
`+e.repeat(" ",r+this.position-h+c.length)+"^"},t.prototype.toString=function(r){var o,c="";return this.name&&(c+='in "'+this.name+'" '),c+="at line "+(this.line+1)+", column "+(this.column+1),r||(o=this.getSnippet(),o&&(c+=`:
|
|
10
|
+
`+o)),c},mark=t,mark}var type,hasRequiredType;function requireType(){if(hasRequiredType)return type;hasRequiredType=1;var e=requireException(),t=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],n=["scalar","sequence","mapping"];function r(c){var h={};return c!==null&&Object.keys(c).forEach(function(F){c[F].forEach(function(Y){h[String(Y)]=F})}),h}function o(c,h){if(h=h||{},Object.keys(h).forEach(function(F){if(t.indexOf(F)===-1)throw new e('Unknown option "'+F+'" is met in definition of "'+c+'" YAML type.')}),this.tag=c,this.kind=h.kind||null,this.resolve=h.resolve||function(){return!0},this.construct=h.construct||function(F){return F},this.instanceOf=h.instanceOf||null,this.predicate=h.predicate||null,this.represent=h.represent||null,this.defaultStyle=h.defaultStyle||null,this.styleAliases=r(h.styleAliases||null),n.indexOf(this.kind)===-1)throw new e('Unknown kind "'+this.kind+'" is specified for "'+c+'" YAML type.')}return type=o,type}var schema$3,hasRequiredSchema;function requireSchema(){if(hasRequiredSchema)return schema$3;hasRequiredSchema=1;var e=requireCommon(),t=requireException(),n=requireType();function r(h,F,Y){var V=[];return h.include.forEach(function(X){Y=r(X,F,Y)}),h[F].forEach(function(X){Y.forEach(function(ee,te){ee.tag===X.tag&&ee.kind===X.kind&&V.push(te)}),Y.push(X)}),Y.filter(function(X,ee){return V.indexOf(ee)===-1})}function o(){var h={scalar:{},sequence:{},mapping:{},fallback:{}},F,Y;function V(X){h[X.kind][X.tag]=h.fallback[X.tag]=X}for(F=0,Y=arguments.length;F<Y;F+=1)arguments[F].forEach(V);return h}function c(h){this.include=h.include||[],this.implicit=h.implicit||[],this.explicit=h.explicit||[],this.implicit.forEach(function(F){if(F.loadKind&&F.loadKind!=="scalar")throw new t("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=r(this,"implicit",[]),this.compiledExplicit=r(this,"explicit",[]),this.compiledTypeMap=o(this.compiledImplicit,this.compiledExplicit)}return c.DEFAULT=null,c.create=function(){var F,Y;switch(arguments.length){case 1:F=c.DEFAULT,Y=arguments[0];break;case 2:F=arguments[0],Y=arguments[1];break;default:throw new t("Wrong number of arguments for Schema.create function")}if(F=e.toArray(F),Y=e.toArray(Y),!F.every(function(V){return V instanceof c}))throw new t("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!Y.every(function(V){return V instanceof n}))throw new t("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new c({include:F,explicit:Y})},schema$3=c,schema$3}var str,hasRequiredStr;function requireStr(){if(hasRequiredStr)return str;hasRequiredStr=1;var e=requireType();return str=new e("tag:yaml.org,2002:str",{kind:"scalar",construct:function(t){return t!==null?t:""}}),str}var seq$1,hasRequiredSeq;function requireSeq(){if(hasRequiredSeq)return seq$1;hasRequiredSeq=1;var e=requireType();return seq$1=new e("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(t){return t!==null?t:[]}}),seq$1}var map$2,hasRequiredMap;function requireMap(){if(hasRequiredMap)return map$2;hasRequiredMap=1;var e=requireType();return map$2=new e("tag:yaml.org,2002:map",{kind:"mapping",construct:function(t){return t!==null?t:{}}}),map$2}var failsafe,hasRequiredFailsafe;function requireFailsafe(){if(hasRequiredFailsafe)return failsafe;hasRequiredFailsafe=1;var e=requireSchema();return failsafe=new e({explicit:[requireStr(),requireSeq(),requireMap()]}),failsafe}var _null,hasRequired_null;function require_null(){if(hasRequired_null)return _null;hasRequired_null=1;var e=requireType();function t(o){if(o===null)return!0;var c=o.length;return c===1&&o==="~"||c===4&&(o==="null"||o==="Null"||o==="NULL")}function n(){return null}function r(o){return o===null}return _null=new e("tag:yaml.org,2002:null",{kind:"scalar",resolve:t,construct:n,predicate:r,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"}),_null}var bool,hasRequiredBool;function requireBool(){if(hasRequiredBool)return bool;hasRequiredBool=1;var e=requireType();function t(o){if(o===null)return!1;var c=o.length;return c===4&&(o==="true"||o==="True"||o==="TRUE")||c===5&&(o==="false"||o==="False"||o==="FALSE")}function n(o){return o==="true"||o==="True"||o==="TRUE"}function r(o){return Object.prototype.toString.call(o)==="[object Boolean]"}return bool=new e("tag:yaml.org,2002:bool",{kind:"scalar",resolve:t,construct:n,predicate:r,represent:{lowercase:function(o){return o?"true":"false"},uppercase:function(o){return o?"TRUE":"FALSE"},camelcase:function(o){return o?"True":"False"}},defaultStyle:"lowercase"}),bool}var int$2,hasRequiredInt;function requireInt(){if(hasRequiredInt)return int$2;hasRequiredInt=1;var e=requireCommon(),t=requireType();function n(Y){return 48<=Y&&Y<=57||65<=Y&&Y<=70||97<=Y&&Y<=102}function r(Y){return 48<=Y&&Y<=55}function o(Y){return 48<=Y&&Y<=57}function c(Y){if(Y===null)return!1;var V=Y.length,X=0,ee=!1,te;if(!V)return!1;if(te=Y[X],(te==="-"||te==="+")&&(te=Y[++X]),te==="0"){if(X+1===V)return!0;if(te=Y[++X],te==="b"){for(X++;X<V;X++)if(te=Y[X],te!=="_"){if(te!=="0"&&te!=="1")return!1;ee=!0}return ee&&te!=="_"}if(te==="x"){for(X++;X<V;X++)if(te=Y[X],te!=="_"){if(!n(Y.charCodeAt(X)))return!1;ee=!0}return ee&&te!=="_"}for(;X<V;X++)if(te=Y[X],te!=="_"){if(!r(Y.charCodeAt(X)))return!1;ee=!0}return ee&&te!=="_"}if(te==="_")return!1;for(;X<V;X++)if(te=Y[X],te!=="_"){if(te===":")break;if(!o(Y.charCodeAt(X)))return!1;ee=!0}return!ee||te==="_"?!1:te!==":"?!0:/^(:[0-5]?[0-9])+$/.test(Y.slice(X))}function h(Y){var V=Y,X=1,ee,te,ne=[];return V.indexOf("_")!==-1&&(V=V.replace(/_/g,"")),ee=V[0],(ee==="-"||ee==="+")&&(ee==="-"&&(X=-1),V=V.slice(1),ee=V[0]),V==="0"?0:ee==="0"?V[1]==="b"?X*parseInt(V.slice(2),2):V[1]==="x"?X*parseInt(V,16):X*parseInt(V,8):V.indexOf(":")!==-1?(V.split(":").forEach(function(re){ne.unshift(parseInt(re,10))}),V=0,te=1,ne.forEach(function(re){V+=re*te,te*=60}),X*V):X*parseInt(V,10)}function F(Y){return Object.prototype.toString.call(Y)==="[object Number]"&&Y%1===0&&!e.isNegativeZero(Y)}return int$2=new t("tag:yaml.org,2002:int",{kind:"scalar",resolve:c,construct:h,predicate:F,represent:{binary:function(Y){return Y>=0?"0b"+Y.toString(2):"-0b"+Y.toString(2).slice(1)},octal:function(Y){return Y>=0?"0"+Y.toString(8):"-0"+Y.toString(8).slice(1)},decimal:function(Y){return Y.toString(10)},hexadecimal:function(Y){return Y>=0?"0x"+Y.toString(16).toUpperCase():"-0x"+Y.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),int$2}var float$2,hasRequiredFloat;function requireFloat(){if(hasRequiredFloat)return float$2;hasRequiredFloat=1;var e=requireCommon(),t=requireType(),n=new RegExp("^(?:[-+]?(?:0|[1-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function r(Y){return!(Y===null||!n.test(Y)||Y[Y.length-1]==="_")}function o(Y){var V,X,ee,te;return V=Y.replace(/_/g,"").toLowerCase(),X=V[0]==="-"?-1:1,te=[],"+-".indexOf(V[0])>=0&&(V=V.slice(1)),V===".inf"?X===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:V===".nan"?NaN:V.indexOf(":")>=0?(V.split(":").forEach(function(ne){te.unshift(parseFloat(ne,10))}),V=0,ee=1,te.forEach(function(ne){V+=ne*ee,ee*=60}),X*V):X*parseFloat(V,10)}var c=/^[-+]?[0-9]+e/;function h(Y,V){var X;if(isNaN(Y))switch(V){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===Y)switch(V){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===Y)switch(V){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(e.isNegativeZero(Y))return"-0.0";return X=Y.toString(10),c.test(X)?X.replace("e",".e"):X}function F(Y){return Object.prototype.toString.call(Y)==="[object Number]"&&(Y%1!==0||e.isNegativeZero(Y))}return float$2=new t("tag:yaml.org,2002:float",{kind:"scalar",resolve:r,construct:o,predicate:F,represent:h,defaultStyle:"lowercase"}),float$2}var json,hasRequiredJson;function requireJson(){if(hasRequiredJson)return json;hasRequiredJson=1;var e=requireSchema();return json=new e({include:[requireFailsafe()],implicit:[require_null(),requireBool(),requireInt(),requireFloat()]}),json}var core,hasRequiredCore;function requireCore(){if(hasRequiredCore)return core;hasRequiredCore=1;var e=requireSchema();return core=new e({include:[requireJson()]}),core}var timestamp$1,hasRequiredTimestamp;function requireTimestamp(){if(hasRequiredTimestamp)return timestamp$1;hasRequiredTimestamp=1;var e=requireType(),t=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),n=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function r(h){return h===null?!1:t.exec(h)!==null||n.exec(h)!==null}function o(h){var F,Y,V,X,ee,te,ne,re=0,ie=null,se,oe,ae;if(F=t.exec(h),F===null&&(F=n.exec(h)),F===null)throw new Error("Date resolve error");if(Y=+F[1],V=+F[2]-1,X=+F[3],!F[4])return new Date(Date.UTC(Y,V,X));if(ee=+F[4],te=+F[5],ne=+F[6],F[7]){for(re=F[7].slice(0,3);re.length<3;)re+="0";re=+re}return F[9]&&(se=+F[10],oe=+(F[11]||0),ie=(se*60+oe)*6e4,F[9]==="-"&&(ie=-ie)),ae=new Date(Date.UTC(Y,V,X,ee,te,ne,re)),ie&&ae.setTime(ae.getTime()-ie),ae}function c(h){return h.toISOString()}return timestamp$1=new e("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:r,construct:o,instanceOf:Date,represent:c}),timestamp$1}var merge$1,hasRequiredMerge;function requireMerge(){if(hasRequiredMerge)return merge$1;hasRequiredMerge=1;var e=requireType();function t(n){return n==="<<"||n===null}return merge$1=new e("tag:yaml.org,2002:merge",{kind:"scalar",resolve:t}),merge$1}var binary$1,hasRequiredBinary;function requireBinary(){if(hasRequiredBinary)return binary$1;hasRequiredBinary=1;var e;try{var t=commonjsRequire;e=t("buffer").Buffer}catch{}var n=requireType(),r=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
11
|
+
\r`;function o(Y){if(Y===null)return!1;var V,X,ee=0,te=Y.length,ne=r;for(X=0;X<te;X++)if(V=ne.indexOf(Y.charAt(X)),!(V>64)){if(V<0)return!1;ee+=6}return ee%8===0}function c(Y){var V,X,ee=Y.replace(/[\r\n=]/g,""),te=ee.length,ne=r,re=0,ie=[];for(V=0;V<te;V++)V%4===0&&V&&(ie.push(re>>16&255),ie.push(re>>8&255),ie.push(re&255)),re=re<<6|ne.indexOf(ee.charAt(V));return X=te%4*6,X===0?(ie.push(re>>16&255),ie.push(re>>8&255),ie.push(re&255)):X===18?(ie.push(re>>10&255),ie.push(re>>2&255)):X===12&&ie.push(re>>4&255),e?e.from?e.from(ie):new e(ie):ie}function h(Y){var V="",X=0,ee,te,ne=Y.length,re=r;for(ee=0;ee<ne;ee++)ee%3===0&&ee&&(V+=re[X>>18&63],V+=re[X>>12&63],V+=re[X>>6&63],V+=re[X&63]),X=(X<<8)+Y[ee];return te=ne%3,te===0?(V+=re[X>>18&63],V+=re[X>>12&63],V+=re[X>>6&63],V+=re[X&63]):te===2?(V+=re[X>>10&63],V+=re[X>>4&63],V+=re[X<<2&63],V+=re[64]):te===1&&(V+=re[X>>2&63],V+=re[X<<4&63],V+=re[64],V+=re[64]),V}function F(Y){return e&&e.isBuffer(Y)}return binary$1=new n("tag:yaml.org,2002:binary",{kind:"scalar",resolve:o,construct:c,predicate:F,represent:h}),binary$1}var omap$1,hasRequiredOmap;function requireOmap(){if(hasRequiredOmap)return omap$1;hasRequiredOmap=1;var e=requireType(),t=Object.prototype.hasOwnProperty,n=Object.prototype.toString;function r(c){if(c===null)return!0;var h=[],F,Y,V,X,ee,te=c;for(F=0,Y=te.length;F<Y;F+=1){if(V=te[F],ee=!1,n.call(V)!=="[object Object]")return!1;for(X in V)if(t.call(V,X))if(!ee)ee=!0;else return!1;if(!ee)return!1;if(h.indexOf(X)===-1)h.push(X);else return!1}return!0}function o(c){return c!==null?c:[]}return omap$1=new e("tag:yaml.org,2002:omap",{kind:"sequence",resolve:r,construct:o}),omap$1}var pairs$1,hasRequiredPairs;function requirePairs(){if(hasRequiredPairs)return pairs$1;hasRequiredPairs=1;var e=requireType(),t=Object.prototype.toString;function n(o){if(o===null)return!0;var c,h,F,Y,V,X=o;for(V=new Array(X.length),c=0,h=X.length;c<h;c+=1){if(F=X[c],t.call(F)!=="[object Object]"||(Y=Object.keys(F),Y.length!==1))return!1;V[c]=[Y[0],F[Y[0]]]}return!0}function r(o){if(o===null)return[];var c,h,F,Y,V,X=o;for(V=new Array(X.length),c=0,h=X.length;c<h;c+=1)F=X[c],Y=Object.keys(F),V[c]=[Y[0],F[Y[0]]];return V}return pairs$1=new e("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:n,construct:r}),pairs$1}var set$1,hasRequiredSet;function requireSet(){if(hasRequiredSet)return set$1;hasRequiredSet=1;var e=requireType(),t=Object.prototype.hasOwnProperty;function n(o){if(o===null)return!0;var c,h=o;for(c in h)if(t.call(h,c)&&h[c]!==null)return!1;return!0}function r(o){return o!==null?o:{}}return set$1=new e("tag:yaml.org,2002:set",{kind:"mapping",resolve:n,construct:r}),set$1}var default_safe,hasRequiredDefault_safe;function requireDefault_safe(){if(hasRequiredDefault_safe)return default_safe;hasRequiredDefault_safe=1;var e=requireSchema();return default_safe=new e({include:[requireCore()],implicit:[requireTimestamp(),requireMerge()],explicit:[requireBinary(),requireOmap(),requirePairs(),requireSet()]}),default_safe}var _undefined,hasRequired_undefined;function require_undefined(){if(hasRequired_undefined)return _undefined;hasRequired_undefined=1;var e=requireType();function t(){return!0}function n(){}function r(){return""}function o(c){return typeof c>"u"}return _undefined=new e("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:t,construct:n,predicate:o,represent:r}),_undefined}var regexp,hasRequiredRegexp;function requireRegexp(){if(hasRequiredRegexp)return regexp;hasRequiredRegexp=1;var e=requireType();function t(c){if(c===null||c.length===0)return!1;var h=c,F=/\/([gim]*)$/.exec(c),Y="";return!(h[0]==="/"&&(F&&(Y=F[1]),Y.length>3||h[h.length-Y.length-1]!=="/"))}function n(c){var h=c,F=/\/([gim]*)$/.exec(c),Y="";return h[0]==="/"&&(F&&(Y=F[1]),h=h.slice(1,h.length-Y.length-1)),new RegExp(h,Y)}function r(c){var h="/"+c.source+"/";return c.global&&(h+="g"),c.multiline&&(h+="m"),c.ignoreCase&&(h+="i"),h}function o(c){return Object.prototype.toString.call(c)==="[object RegExp]"}return regexp=new e("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:t,construct:n,predicate:o,represent:r}),regexp}var _function,hasRequired_function;function require_function(){if(hasRequired_function)return _function;hasRequired_function=1;var e;try{var t=commonjsRequire;e=t("esprima")}catch{typeof window<"u"&&(e=window.esprima)}var n=requireType();function r(F){if(F===null)return!1;try{var Y="("+F+")",V=e.parse(Y,{range:!0});return!(V.type!=="Program"||V.body.length!==1||V.body[0].type!=="ExpressionStatement"||V.body[0].expression.type!=="ArrowFunctionExpression"&&V.body[0].expression.type!=="FunctionExpression")}catch{return!1}}function o(F){var Y="("+F+")",V=e.parse(Y,{range:!0}),X=[],ee;if(V.type!=="Program"||V.body.length!==1||V.body[0].type!=="ExpressionStatement"||V.body[0].expression.type!=="ArrowFunctionExpression"&&V.body[0].expression.type!=="FunctionExpression")throw new Error("Failed to resolve function");return V.body[0].expression.params.forEach(function(te){X.push(te.name)}),ee=V.body[0].expression.body.range,V.body[0].expression.body.type==="BlockStatement"?new Function(X,Y.slice(ee[0]+1,ee[1]-1)):new Function(X,"return "+Y.slice(ee[0],ee[1]))}function c(F){return F.toString()}function h(F){return Object.prototype.toString.call(F)==="[object Function]"}return _function=new n("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:r,construct:o,predicate:h,represent:c}),_function}var default_full,hasRequiredDefault_full;function requireDefault_full(){if(hasRequiredDefault_full)return default_full;hasRequiredDefault_full=1;var e=requireSchema();return default_full=e.DEFAULT=new e({include:[requireDefault_safe()],explicit:[require_undefined(),requireRegexp(),require_function()]}),default_full}var hasRequiredLoader;function requireLoader(){if(hasRequiredLoader)return loader;hasRequiredLoader=1;var e=requireCommon(),t=requireException(),n=requireMark(),r=requireDefault_safe(),o=requireDefault_full(),c=Object.prototype.hasOwnProperty,h=1,F=2,Y=3,V=4,X=1,ee=2,te=3,ne=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,re=/[\x85\u2028\u2029]/,ie=/[,\[\]\{\}]/,se=/^(?:!|!!|![a-z\-]+!)$/i,oe=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function ae(Q){return Object.prototype.toString.call(Q)}function le(Q){return Q===10||Q===13}function de(Q){return Q===9||Q===32}function he(Q){return Q===9||Q===32||Q===10||Q===13}function me(Q){return Q===44||Q===91||Q===93||Q===123||Q===125}function Se(Q){var fe;return 48<=Q&&Q<=57?Q-48:(fe=Q|32,97<=fe&&fe<=102?fe-97+10:-1)}function xe(Q){return Q===120?2:Q===117?4:Q===85?8:0}function Te(Q){return 48<=Q&&Q<=57?Q-48:-1}function $e(Q){return Q===48?"\0":Q===97?"\x07":Q===98?"\b":Q===116||Q===9?" ":Q===110?`
|
|
12
|
+
`:Q===118?"\v":Q===102?"\f":Q===114?"\r":Q===101?"\x1B":Q===32?" ":Q===34?'"':Q===47?"/":Q===92?"\\":Q===78?"
":Q===95?" ":Q===76?"\u2028":Q===80?"\u2029":""}function Oe(Q){return Q<=65535?String.fromCharCode(Q):String.fromCharCode((Q-65536>>10)+55296,(Q-65536&1023)+56320)}function Fe(Q,fe,ge){fe==="__proto__"?Object.defineProperty(Q,fe,{configurable:!0,enumerable:!0,writable:!0,value:ge}):Q[fe]=ge}for(var Re=new Array(256),Ne=new Array(256),qe=0;qe<256;qe++)Re[qe]=$e(qe)?1:0,Ne[qe]=$e(qe);function He(Q,fe){this.input=Q,this.filename=fe.filename||null,this.schema=fe.schema||o,this.onWarning=fe.onWarning||null,this.legacy=fe.legacy||!1,this.json=fe.json||!1,this.listener=fe.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=Q.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}function Ke(Q,fe){return new t(fe,new n(Q.filename,Q.input,Q.position,Q.line,Q.position-Q.lineStart))}function De(Q,fe){throw Ke(Q,fe)}function Be(Q,fe){Q.onWarning&&Q.onWarning.call(null,Ke(Q,fe))}var Ue={YAML:function(fe,ge,Ce){var ke,ue,ce;fe.version!==null&&De(fe,"duplication of %YAML directive"),Ce.length!==1&&De(fe,"YAML directive accepts exactly one argument"),ke=/^([0-9]+)\.([0-9]+)$/.exec(Ce[0]),ke===null&&De(fe,"ill-formed argument of the YAML directive"),ue=parseInt(ke[1],10),ce=parseInt(ke[2],10),ue!==1&&De(fe,"unacceptable YAML version of the document"),fe.version=Ce[0],fe.checkLineBreaks=ce<2,ce!==1&&ce!==2&&Be(fe,"unsupported YAML version of the document")},TAG:function(fe,ge,Ce){var ke,ue;Ce.length!==2&&De(fe,"TAG directive accepts exactly two arguments"),ke=Ce[0],ue=Ce[1],se.test(ke)||De(fe,"ill-formed tag handle (first argument) of the TAG directive"),c.call(fe.tagMap,ke)&&De(fe,'there is a previously declared suffix for "'+ke+'" tag handle'),oe.test(ue)||De(fe,"ill-formed tag prefix (second argument) of the TAG directive"),fe.tagMap[ke]=ue}};function ze(Q,fe,ge,Ce){var ke,ue,ce,pe;if(fe<ge){if(pe=Q.input.slice(fe,ge),Ce)for(ke=0,ue=pe.length;ke<ue;ke+=1)ce=pe.charCodeAt(ke),ce===9||32<=ce&&ce<=1114111||De(Q,"expected valid JSON character");else ne.test(pe)&&De(Q,"the stream contains non-printable characters");Q.result+=pe}}function Ge(Q,fe,ge,Ce){var ke,ue,ce,pe;for(e.isObject(ge)||De(Q,"cannot merge mappings; the provided source object is unacceptable"),ke=Object.keys(ge),ce=0,pe=ke.length;ce<pe;ce+=1)ue=ke[ce],c.call(fe,ue)||(Fe(fe,ue,ge[ue]),Ce[ue]=!0)}function je(Q,fe,ge,Ce,ke,ue,ce,pe){var be,_e;if(Array.isArray(ke))for(ke=Array.prototype.slice.call(ke),be=0,_e=ke.length;be<_e;be+=1)Array.isArray(ke[be])&&De(Q,"nested arrays are not supported inside keys"),typeof ke=="object"&&ae(ke[be])==="[object Object]"&&(ke[be]="[object Object]");if(typeof ke=="object"&&ae(ke)==="[object Object]"&&(ke="[object Object]"),ke=String(ke),fe===null&&(fe={}),Ce==="tag:yaml.org,2002:merge")if(Array.isArray(ue))for(be=0,_e=ue.length;be<_e;be+=1)Ge(Q,fe,ue[be],ge);else Ge(Q,fe,ue,ge);else!Q.json&&!c.call(ge,ke)&&c.call(fe,ke)&&(Q.line=ce||Q.line,Q.position=pe||Q.position,De(Q,"duplicated mapping key")),Fe(fe,ke,ue),delete ge[ke];return fe}function Ze(Q){var fe;fe=Q.input.charCodeAt(Q.position),fe===10?Q.position++:fe===13?(Q.position++,Q.input.charCodeAt(Q.position)===10&&Q.position++):De(Q,"a line break is expected"),Q.line+=1,Q.lineStart=Q.position}function Le(Q,fe,ge){for(var Ce=0,ke=Q.input.charCodeAt(Q.position);ke!==0;){for(;de(ke);)ke=Q.input.charCodeAt(++Q.position);if(fe&&ke===35)do ke=Q.input.charCodeAt(++Q.position);while(ke!==10&&ke!==13&&ke!==0);if(le(ke))for(Ze(Q),ke=Q.input.charCodeAt(Q.position),Ce++,Q.lineIndent=0;ke===32;)Q.lineIndent++,ke=Q.input.charCodeAt(++Q.position);else break}return ge!==-1&&Ce!==0&&Q.lineIndent<ge&&Be(Q,"deficient indentation"),Ce}function Ve(Q){var fe=Q.position,ge;return ge=Q.input.charCodeAt(fe),!!((ge===45||ge===46)&&ge===Q.input.charCodeAt(fe+1)&&ge===Q.input.charCodeAt(fe+2)&&(fe+=3,ge=Q.input.charCodeAt(fe),ge===0||he(ge)))}function Je(Q,fe){fe===1?Q.result+=" ":fe>1&&(Q.result+=e.repeat(`
|
|
13
|
+
`,fe-1))}function Qe(Q,fe,ge){var Ce,ke,ue,ce,pe,be,_e,Ee,ye=Q.kind,we=Q.result,Ae;if(Ae=Q.input.charCodeAt(Q.position),he(Ae)||me(Ae)||Ae===35||Ae===38||Ae===42||Ae===33||Ae===124||Ae===62||Ae===39||Ae===34||Ae===37||Ae===64||Ae===96||(Ae===63||Ae===45)&&(ke=Q.input.charCodeAt(Q.position+1),he(ke)||ge&&me(ke)))return!1;for(Q.kind="scalar",Q.result="",ue=ce=Q.position,pe=!1;Ae!==0;){if(Ae===58){if(ke=Q.input.charCodeAt(Q.position+1),he(ke)||ge&&me(ke))break}else if(Ae===35){if(Ce=Q.input.charCodeAt(Q.position-1),he(Ce))break}else{if(Q.position===Q.lineStart&&Ve(Q)||ge&&me(Ae))break;if(le(Ae))if(be=Q.line,_e=Q.lineStart,Ee=Q.lineIndent,Le(Q,!1,-1),Q.lineIndent>=fe){pe=!0,Ae=Q.input.charCodeAt(Q.position);continue}else{Q.position=ce,Q.line=be,Q.lineStart=_e,Q.lineIndent=Ee;break}}pe&&(ze(Q,ue,ce,!1),Je(Q,Q.line-be),ue=ce=Q.position,pe=!1),de(Ae)||(ce=Q.position+1),Ae=Q.input.charCodeAt(++Q.position)}return ze(Q,ue,ce,!1),Q.result?!0:(Q.kind=ye,Q.result=we,!1)}function Xe(Q,fe){var ge,Ce,ke;if(ge=Q.input.charCodeAt(Q.position),ge!==39)return!1;for(Q.kind="scalar",Q.result="",Q.position++,Ce=ke=Q.position;(ge=Q.input.charCodeAt(Q.position))!==0;)if(ge===39)if(ze(Q,Ce,Q.position,!0),ge=Q.input.charCodeAt(++Q.position),ge===39)Ce=Q.position,Q.position++,ke=Q.position;else return!0;else le(ge)?(ze(Q,Ce,ke,!0),Je(Q,Le(Q,!1,fe)),Ce=ke=Q.position):Q.position===Q.lineStart&&Ve(Q)?De(Q,"unexpected end of the document within a single quoted scalar"):(Q.position++,ke=Q.position);De(Q,"unexpected end of the stream within a single quoted scalar")}function et(Q,fe){var ge,Ce,ke,ue,ce,pe;if(pe=Q.input.charCodeAt(Q.position),pe!==34)return!1;for(Q.kind="scalar",Q.result="",Q.position++,ge=Ce=Q.position;(pe=Q.input.charCodeAt(Q.position))!==0;){if(pe===34)return ze(Q,ge,Q.position,!0),Q.position++,!0;if(pe===92){if(ze(Q,ge,Q.position,!0),pe=Q.input.charCodeAt(++Q.position),le(pe))Le(Q,!1,fe);else if(pe<256&&Re[pe])Q.result+=Ne[pe],Q.position++;else if((ce=xe(pe))>0){for(ke=ce,ue=0;ke>0;ke--)pe=Q.input.charCodeAt(++Q.position),(ce=Se(pe))>=0?ue=(ue<<4)+ce:De(Q,"expected hexadecimal character");Q.result+=Oe(ue),Q.position++}else De(Q,"unknown escape sequence");ge=Ce=Q.position}else le(pe)?(ze(Q,ge,Ce,!0),Je(Q,Le(Q,!1,fe)),ge=Ce=Q.position):Q.position===Q.lineStart&&Ve(Q)?De(Q,"unexpected end of the document within a double quoted scalar"):(Q.position++,Ce=Q.position)}De(Q,"unexpected end of the stream within a double quoted scalar")}function tt(Q,fe){var ge=!0,Ce,ke=Q.tag,ue,ce=Q.anchor,pe,be,_e,Ee,ye,we={},Ae,ve,Ie,Me;if(Me=Q.input.charCodeAt(Q.position),Me===91)be=93,ye=!1,ue=[];else if(Me===123)be=125,ye=!0,ue={};else return!1;for(Q.anchor!==null&&(Q.anchorMap[Q.anchor]=ue),Me=Q.input.charCodeAt(++Q.position);Me!==0;){if(Le(Q,!0,fe),Me=Q.input.charCodeAt(Q.position),Me===be)return Q.position++,Q.tag=ke,Q.anchor=ce,Q.kind=ye?"mapping":"sequence",Q.result=ue,!0;ge||De(Q,"missed comma between flow collection entries"),ve=Ae=Ie=null,_e=Ee=!1,Me===63&&(pe=Q.input.charCodeAt(Q.position+1),he(pe)&&(_e=Ee=!0,Q.position++,Le(Q,!0,fe))),Ce=Q.line,Ye(Q,fe,h,!1,!0),ve=Q.tag,Ae=Q.result,Le(Q,!0,fe),Me=Q.input.charCodeAt(Q.position),(Ee||Q.line===Ce)&&Me===58&&(_e=!0,Me=Q.input.charCodeAt(++Q.position),Le(Q,!0,fe),Ye(Q,fe,h,!1,!0),Ie=Q.result),ye?je(Q,ue,we,ve,Ae,Ie):_e?ue.push(je(Q,null,we,ve,Ae,Ie)):ue.push(Ae),Le(Q,!0,fe),Me=Q.input.charCodeAt(Q.position),Me===44?(ge=!0,Me=Q.input.charCodeAt(++Q.position)):ge=!1}De(Q,"unexpected end of the stream within a flow collection")}function We(Q,fe){var ge,Ce,ke=X,ue=!1,ce=!1,pe=fe,be=0,_e=!1,Ee,ye;if(ye=Q.input.charCodeAt(Q.position),ye===124)Ce=!1;else if(ye===62)Ce=!0;else return!1;for(Q.kind="scalar",Q.result="";ye!==0;)if(ye=Q.input.charCodeAt(++Q.position),ye===43||ye===45)X===ke?ke=ye===43?te:ee:De(Q,"repeat of a chomping mode identifier");else if((Ee=Te(ye))>=0)Ee===0?De(Q,"bad explicit indentation width of a block scalar; it cannot be less than one"):ce?De(Q,"repeat of an indentation width identifier"):(pe=fe+Ee-1,ce=!0);else break;if(de(ye)){do ye=Q.input.charCodeAt(++Q.position);while(de(ye));if(ye===35)do ye=Q.input.charCodeAt(++Q.position);while(!le(ye)&&ye!==0)}for(;ye!==0;){for(Ze(Q),Q.lineIndent=0,ye=Q.input.charCodeAt(Q.position);(!ce||Q.lineIndent<pe)&&ye===32;)Q.lineIndent++,ye=Q.input.charCodeAt(++Q.position);if(!ce&&Q.lineIndent>pe&&(pe=Q.lineIndent),le(ye)){be++;continue}if(Q.lineIndent<pe){ke===te?Q.result+=e.repeat(`
|
|
14
|
+
`,ue?1+be:be):ke===X&&ue&&(Q.result+=`
|
|
15
|
+
`);break}for(Ce?de(ye)?(_e=!0,Q.result+=e.repeat(`
|
|
16
|
+
`,ue?1+be:be)):_e?(_e=!1,Q.result+=e.repeat(`
|
|
17
|
+
`,be+1)):be===0?ue&&(Q.result+=" "):Q.result+=e.repeat(`
|
|
18
|
+
`,be):Q.result+=e.repeat(`
|
|
19
|
+
`,ue?1+be:be),ue=!0,ce=!0,be=0,ge=Q.position;!le(ye)&&ye!==0;)ye=Q.input.charCodeAt(++Q.position);ze(Q,ge,Q.position,!1)}return!0}function nt(Q,fe){var ge,Ce=Q.tag,ke=Q.anchor,ue=[],ce,pe=!1,be;for(Q.anchor!==null&&(Q.anchorMap[Q.anchor]=ue),be=Q.input.charCodeAt(Q.position);be!==0&&!(be!==45||(ce=Q.input.charCodeAt(Q.position+1),!he(ce)));){if(pe=!0,Q.position++,Le(Q,!0,-1)&&Q.lineIndent<=fe){ue.push(null),be=Q.input.charCodeAt(Q.position);continue}if(ge=Q.line,Ye(Q,fe,Y,!1,!0),ue.push(Q.result),Le(Q,!0,-1),be=Q.input.charCodeAt(Q.position),(Q.line===ge||Q.lineIndent>fe)&&be!==0)De(Q,"bad indentation of a sequence entry");else if(Q.lineIndent<fe)break}return pe?(Q.tag=Ce,Q.anchor=ke,Q.kind="sequence",Q.result=ue,!0):!1}function at(Q,fe,ge){var Ce,ke,ue,ce,pe=Q.tag,be=Q.anchor,_e={},Ee={},ye=null,we=null,Ae=null,ve=!1,Ie=!1,Me;for(Q.anchor!==null&&(Q.anchorMap[Q.anchor]=_e),Me=Q.input.charCodeAt(Q.position);Me!==0;){if(Ce=Q.input.charCodeAt(Q.position+1),ue=Q.line,ce=Q.position,(Me===63||Me===58)&&he(Ce))Me===63?(ve&&(je(Q,_e,Ee,ye,we,null),ye=we=Ae=null),Ie=!0,ve=!0,ke=!0):ve?(ve=!1,ke=!0):De(Q,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),Q.position+=1,Me=Ce;else if(Ye(Q,ge,F,!1,!0))if(Q.line===ue){for(Me=Q.input.charCodeAt(Q.position);de(Me);)Me=Q.input.charCodeAt(++Q.position);if(Me===58)Me=Q.input.charCodeAt(++Q.position),he(Me)||De(Q,"a whitespace character is expected after the key-value separator within a block mapping"),ve&&(je(Q,_e,Ee,ye,we,null),ye=we=Ae=null),Ie=!0,ve=!1,ke=!1,ye=Q.tag,we=Q.result;else if(Ie)De(Q,"can not read an implicit mapping pair; a colon is missed");else return Q.tag=pe,Q.anchor=be,!0}else if(Ie)De(Q,"can not read a block mapping entry; a multiline key may not be an implicit key");else return Q.tag=pe,Q.anchor=be,!0;else break;if((Q.line===ue||Q.lineIndent>fe)&&(Ye(Q,fe,V,!0,ke)&&(ve?we=Q.result:Ae=Q.result),ve||(je(Q,_e,Ee,ye,we,Ae,ue,ce),ye=we=Ae=null),Le(Q,!0,-1),Me=Q.input.charCodeAt(Q.position)),Q.lineIndent>fe&&Me!==0)De(Q,"bad indentation of a mapping entry");else if(Q.lineIndent<fe)break}return ve&&je(Q,_e,Ee,ye,we,null),Ie&&(Q.tag=pe,Q.anchor=be,Q.kind="mapping",Q.result=_e),Ie}function ut(Q){var fe,ge=!1,Ce=!1,ke,ue,ce;if(ce=Q.input.charCodeAt(Q.position),ce!==33)return!1;if(Q.tag!==null&&De(Q,"duplication of a tag property"),ce=Q.input.charCodeAt(++Q.position),ce===60?(ge=!0,ce=Q.input.charCodeAt(++Q.position)):ce===33?(Ce=!0,ke="!!",ce=Q.input.charCodeAt(++Q.position)):ke="!",fe=Q.position,ge){do ce=Q.input.charCodeAt(++Q.position);while(ce!==0&&ce!==62);Q.position<Q.length?(ue=Q.input.slice(fe,Q.position),ce=Q.input.charCodeAt(++Q.position)):De(Q,"unexpected end of the stream within a verbatim tag")}else{for(;ce!==0&&!he(ce);)ce===33&&(Ce?De(Q,"tag suffix cannot contain exclamation marks"):(ke=Q.input.slice(fe-1,Q.position+1),se.test(ke)||De(Q,"named tag handle cannot contain such characters"),Ce=!0,fe=Q.position+1)),ce=Q.input.charCodeAt(++Q.position);ue=Q.input.slice(fe,Q.position),ie.test(ue)&&De(Q,"tag suffix cannot contain flow indicator characters")}return ue&&!oe.test(ue)&&De(Q,"tag name cannot contain such characters: "+ue),ge?Q.tag=ue:c.call(Q.tagMap,ke)?Q.tag=Q.tagMap[ke]+ue:ke==="!"?Q.tag="!"+ue:ke==="!!"?Q.tag="tag:yaml.org,2002:"+ue:De(Q,'undeclared tag handle "'+ke+'"'),!0}function rt(Q){var fe,ge;if(ge=Q.input.charCodeAt(Q.position),ge!==38)return!1;for(Q.anchor!==null&&De(Q,"duplication of an anchor property"),ge=Q.input.charCodeAt(++Q.position),fe=Q.position;ge!==0&&!he(ge)&&!me(ge);)ge=Q.input.charCodeAt(++Q.position);return Q.position===fe&&De(Q,"name of an anchor node must contain at least one character"),Q.anchor=Q.input.slice(fe,Q.position),!0}function lt(Q){var fe,ge,Ce;if(Ce=Q.input.charCodeAt(Q.position),Ce!==42)return!1;for(Ce=Q.input.charCodeAt(++Q.position),fe=Q.position;Ce!==0&&!he(Ce)&&!me(Ce);)Ce=Q.input.charCodeAt(++Q.position);return Q.position===fe&&De(Q,"name of an alias node must contain at least one character"),ge=Q.input.slice(fe,Q.position),c.call(Q.anchorMap,ge)||De(Q,'unidentified alias "'+ge+'"'),Q.result=Q.anchorMap[ge],Le(Q,!0,-1),!0}function Ye(Q,fe,ge,Ce,ke){var ue,ce,pe,be=1,_e=!1,Ee=!1,ye,we,Ae,ve,Ie;if(Q.listener!==null&&Q.listener("open",Q),Q.tag=null,Q.anchor=null,Q.kind=null,Q.result=null,ue=ce=pe=V===ge||Y===ge,Ce&&Le(Q,!0,-1)&&(_e=!0,Q.lineIndent>fe?be=1:Q.lineIndent===fe?be=0:Q.lineIndent<fe&&(be=-1)),be===1)for(;ut(Q)||rt(Q);)Le(Q,!0,-1)?(_e=!0,pe=ue,Q.lineIndent>fe?be=1:Q.lineIndent===fe?be=0:Q.lineIndent<fe&&(be=-1)):pe=!1;if(pe&&(pe=_e||ke),(be===1||V===ge)&&(h===ge||F===ge?ve=fe:ve=fe+1,Ie=Q.position-Q.lineStart,be===1?pe&&(nt(Q,Ie)||at(Q,Ie,ve))||tt(Q,ve)?Ee=!0:(ce&&We(Q,ve)||Xe(Q,ve)||et(Q,ve)?Ee=!0:lt(Q)?(Ee=!0,(Q.tag!==null||Q.anchor!==null)&&De(Q,"alias node should not have any properties")):Qe(Q,ve,h===ge)&&(Ee=!0,Q.tag===null&&(Q.tag="?")),Q.anchor!==null&&(Q.anchorMap[Q.anchor]=Q.result)):be===0&&(Ee=pe&&nt(Q,Ie))),Q.tag!==null&&Q.tag!=="!")if(Q.tag==="?"){for(Q.result!==null&&Q.kind!=="scalar"&&De(Q,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+Q.kind+'"'),ye=0,we=Q.implicitTypes.length;ye<we;ye+=1)if(Ae=Q.implicitTypes[ye],Ae.resolve(Q.result)){Q.result=Ae.construct(Q.result),Q.tag=Ae.tag,Q.anchor!==null&&(Q.anchorMap[Q.anchor]=Q.result);break}}else c.call(Q.typeMap[Q.kind||"fallback"],Q.tag)?(Ae=Q.typeMap[Q.kind||"fallback"][Q.tag],Q.result!==null&&Ae.kind!==Q.kind&&De(Q,"unacceptable node kind for !<"+Q.tag+'> tag; it should be "'+Ae.kind+'", not "'+Q.kind+'"'),Ae.resolve(Q.result)?(Q.result=Ae.construct(Q.result),Q.anchor!==null&&(Q.anchorMap[Q.anchor]=Q.result)):De(Q,"cannot resolve a node with !<"+Q.tag+"> explicit tag")):De(Q,"unknown tag !<"+Q.tag+">");return Q.listener!==null&&Q.listener("close",Q),Q.tag!==null||Q.anchor!==null||Ee}function ft(Q){var fe=Q.position,ge,Ce,ke,ue=!1,ce;for(Q.version=null,Q.checkLineBreaks=Q.legacy,Q.tagMap={},Q.anchorMap={};(ce=Q.input.charCodeAt(Q.position))!==0&&(Le(Q,!0,-1),ce=Q.input.charCodeAt(Q.position),!(Q.lineIndent>0||ce!==37));){for(ue=!0,ce=Q.input.charCodeAt(++Q.position),ge=Q.position;ce!==0&&!he(ce);)ce=Q.input.charCodeAt(++Q.position);for(Ce=Q.input.slice(ge,Q.position),ke=[],Ce.length<1&&De(Q,"directive name must not be less than one character in length");ce!==0;){for(;de(ce);)ce=Q.input.charCodeAt(++Q.position);if(ce===35){do ce=Q.input.charCodeAt(++Q.position);while(ce!==0&&!le(ce));break}if(le(ce))break;for(ge=Q.position;ce!==0&&!he(ce);)ce=Q.input.charCodeAt(++Q.position);ke.push(Q.input.slice(ge,Q.position))}ce!==0&&Ze(Q),c.call(Ue,Ce)?Ue[Ce](Q,Ce,ke):Be(Q,'unknown document directive "'+Ce+'"')}if(Le(Q,!0,-1),Q.lineIndent===0&&Q.input.charCodeAt(Q.position)===45&&Q.input.charCodeAt(Q.position+1)===45&&Q.input.charCodeAt(Q.position+2)===45?(Q.position+=3,Le(Q,!0,-1)):ue&&De(Q,"directives end mark is expected"),Ye(Q,Q.lineIndent-1,V,!1,!0),Le(Q,!0,-1),Q.checkLineBreaks&&re.test(Q.input.slice(fe,Q.position))&&Be(Q,"non-ASCII line breaks are interpreted as content"),Q.documents.push(Q.result),Q.position===Q.lineStart&&Ve(Q)){Q.input.charCodeAt(Q.position)===46&&(Q.position+=3,Le(Q,!0,-1));return}if(Q.position<Q.length-1)De(Q,"end of the stream or a document separator is expected");else return}function it(Q,fe){Q=String(Q),fe=fe||{},Q.length!==0&&(Q.charCodeAt(Q.length-1)!==10&&Q.charCodeAt(Q.length-1)!==13&&(Q+=`
|
|
20
|
+
`),Q.charCodeAt(0)===65279&&(Q=Q.slice(1)));var ge=new He(Q,fe),Ce=Q.indexOf("\0");for(Ce!==-1&&(ge.position=Ce,De(ge,"null byte is not allowed in input")),ge.input+="\0";ge.input.charCodeAt(ge.position)===32;)ge.lineIndent+=1,ge.position+=1;for(;ge.position<ge.length-1;)ft(ge);return ge.documents}function st(Q,fe,ge){fe!==null&&typeof fe=="object"&&typeof ge>"u"&&(ge=fe,fe=null);var Ce=it(Q,ge);if(typeof fe!="function")return Ce;for(var ke=0,ue=Ce.length;ke<ue;ke+=1)fe(Ce[ke])}function ot(Q,fe){var ge=it(Q,fe);if(ge.length!==0){if(ge.length===1)return ge[0];throw new t("expected a single document in the stream, but found more")}}function dt(Q,fe,ge){return typeof fe=="object"&&fe!==null&&typeof ge>"u"&&(ge=fe,fe=null),st(Q,fe,e.extend({schema:r},ge))}function ct(Q,fe){return ot(Q,e.extend({schema:r},fe))}return loader.loadAll=st,loader.load=ot,loader.safeLoadAll=dt,loader.safeLoad=ct,loader}var dumper={},hasRequiredDumper;function requireDumper(){if(hasRequiredDumper)return dumper;hasRequiredDumper=1;var e=requireCommon(),t=requireException(),n=requireDefault_full(),r=requireDefault_safe(),o=Object.prototype.toString,c=Object.prototype.hasOwnProperty,h=9,F=10,Y=13,V=32,X=33,ee=34,te=35,ne=37,re=38,ie=39,se=42,oe=44,ae=45,le=58,de=61,he=62,me=63,Se=64,xe=91,Te=93,$e=96,Oe=123,Fe=124,Re=125,Ne={};Ne[0]="\\0",Ne[7]="\\a",Ne[8]="\\b",Ne[9]="\\t",Ne[10]="\\n",Ne[11]="\\v",Ne[12]="\\f",Ne[13]="\\r",Ne[27]="\\e",Ne[34]='\\"',Ne[92]="\\\\",Ne[133]="\\N",Ne[160]="\\_",Ne[8232]="\\L",Ne[8233]="\\P";var qe=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function He(ue,ce){var pe,be,_e,Ee,ye,we,Ae;if(ce===null)return{};for(pe={},be=Object.keys(ce),_e=0,Ee=be.length;_e<Ee;_e+=1)ye=be[_e],we=String(ce[ye]),ye.slice(0,2)==="!!"&&(ye="tag:yaml.org,2002:"+ye.slice(2)),Ae=ue.compiledTypeMap.fallback[ye],Ae&&c.call(Ae.styleAliases,we)&&(we=Ae.styleAliases[we]),pe[ye]=we;return pe}function Ke(ue){var ce,pe,be;if(ce=ue.toString(16).toUpperCase(),ue<=255)pe="x",be=2;else if(ue<=65535)pe="u",be=4;else if(ue<=4294967295)pe="U",be=8;else throw new t("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+pe+e.repeat("0",be-ce.length)+ce}function De(ue){this.schema=ue.schema||n,this.indent=Math.max(1,ue.indent||2),this.noArrayIndent=ue.noArrayIndent||!1,this.skipInvalid=ue.skipInvalid||!1,this.flowLevel=e.isNothing(ue.flowLevel)?-1:ue.flowLevel,this.styleMap=He(this.schema,ue.styles||null),this.sortKeys=ue.sortKeys||!1,this.lineWidth=ue.lineWidth||80,this.noRefs=ue.noRefs||!1,this.noCompatMode=ue.noCompatMode||!1,this.condenseFlow=ue.condenseFlow||!1,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function Be(ue,ce){for(var pe=e.repeat(" ",ce),be=0,_e=-1,Ee="",ye,we=ue.length;be<we;)_e=ue.indexOf(`
|
|
21
|
+
`,be),_e===-1?(ye=ue.slice(be),be=we):(ye=ue.slice(be,_e+1),be=_e+1),ye.length&&ye!==`
|
|
22
|
+
`&&(Ee+=pe),Ee+=ye;return Ee}function Ue(ue,ce){return`
|
|
23
|
+
`+e.repeat(" ",ue.indent*ce)}function ze(ue,ce){var pe,be,_e;for(pe=0,be=ue.implicitTypes.length;pe<be;pe+=1)if(_e=ue.implicitTypes[pe],_e.resolve(ce))return!0;return!1}function Ge(ue){return ue===V||ue===h}function je(ue){return 32<=ue&&ue<=126||161<=ue&&ue<=55295&&ue!==8232&&ue!==8233||57344<=ue&&ue<=65533&&ue!==65279||65536<=ue&&ue<=1114111}function Ze(ue){return je(ue)&&!Ge(ue)&&ue!==65279&&ue!==Y&&ue!==F}function Le(ue,ce){return je(ue)&&ue!==65279&&ue!==oe&&ue!==xe&&ue!==Te&&ue!==Oe&&ue!==Re&&ue!==le&&(ue!==te||ce&&Ze(ce))}function Ve(ue){return je(ue)&&ue!==65279&&!Ge(ue)&&ue!==ae&&ue!==me&&ue!==le&&ue!==oe&&ue!==xe&&ue!==Te&&ue!==Oe&&ue!==Re&&ue!==te&&ue!==re&&ue!==se&&ue!==X&&ue!==Fe&&ue!==de&&ue!==he&&ue!==ie&&ue!==ee&&ue!==ne&&ue!==Se&&ue!==$e}function Je(ue){var ce=/^\n* /;return ce.test(ue)}var Qe=1,Xe=2,et=3,tt=4,We=5;function nt(ue,ce,pe,be,_e){var Ee,ye,we,Ae=!1,ve=!1,Ie=be!==-1,Me=-1,Pe=Ve(ue.charCodeAt(0))&&!Ge(ue.charCodeAt(ue.length-1));if(ce)for(Ee=0;Ee<ue.length;Ee++){if(ye=ue.charCodeAt(Ee),!je(ye))return We;we=Ee>0?ue.charCodeAt(Ee-1):null,Pe=Pe&&Le(ye,we)}else{for(Ee=0;Ee<ue.length;Ee++){if(ye=ue.charCodeAt(Ee),ye===F)Ae=!0,Ie&&(ve=ve||Ee-Me-1>be&&ue[Me+1]!==" ",Me=Ee);else if(!je(ye))return We;we=Ee>0?ue.charCodeAt(Ee-1):null,Pe=Pe&&Le(ye,we)}ve=ve||Ie&&Ee-Me-1>be&&ue[Me+1]!==" "}return!Ae&&!ve?Pe&&!_e(ue)?Qe:Xe:pe>9&&Je(ue)?We:ve?tt:et}function at(ue,ce,pe,be){ue.dump=(function(){if(ce.length===0)return"''";if(!ue.noCompatMode&&qe.indexOf(ce)!==-1)return"'"+ce+"'";var _e=ue.indent*Math.max(1,pe),Ee=ue.lineWidth===-1?-1:Math.max(Math.min(ue.lineWidth,40),ue.lineWidth-_e),ye=be||ue.flowLevel>-1&&pe>=ue.flowLevel;function we(Ae){return ze(ue,Ae)}switch(nt(ce,ye,ue.indent,Ee,we)){case Qe:return ce;case Xe:return"'"+ce.replace(/'/g,"''")+"'";case et:return"|"+ut(ce,ue.indent)+rt(Be(ce,_e));case tt:return">"+ut(ce,ue.indent)+rt(Be(lt(ce,Ee),_e));case We:return'"'+ft(ce)+'"';default:throw new t("impossible error: invalid scalar style")}})()}function ut(ue,ce){var pe=Je(ue)?String(ce):"",be=ue[ue.length-1]===`
|
|
24
|
+
`,_e=be&&(ue[ue.length-2]===`
|
|
25
|
+
`||ue===`
|
|
26
|
+
`),Ee=_e?"+":be?"":"-";return pe+Ee+`
|
|
27
|
+
`}function rt(ue){return ue[ue.length-1]===`
|
|
28
|
+
`?ue.slice(0,-1):ue}function lt(ue,ce){for(var pe=/(\n+)([^\n]*)/g,be=(function(){var ve=ue.indexOf(`
|
|
29
|
+
`);return ve=ve!==-1?ve:ue.length,pe.lastIndex=ve,Ye(ue.slice(0,ve),ce)})(),_e=ue[0]===`
|
|
30
|
+
`||ue[0]===" ",Ee,ye;ye=pe.exec(ue);){var we=ye[1],Ae=ye[2];Ee=Ae[0]===" ",be+=we+(!_e&&!Ee&&Ae!==""?`
|
|
31
|
+
`:"")+Ye(Ae,ce),_e=Ee}return be}function Ye(ue,ce){if(ue===""||ue[0]===" ")return ue;for(var pe=/ [^ ]/g,be,_e=0,Ee,ye=0,we=0,Ae="";be=pe.exec(ue);)we=be.index,we-_e>ce&&(Ee=ye>_e?ye:we,Ae+=`
|
|
32
|
+
`+ue.slice(_e,Ee),_e=Ee+1),ye=we;return Ae+=`
|
|
33
|
+
`,ue.length-_e>ce&&ye>_e?Ae+=ue.slice(_e,ye)+`
|
|
34
|
+
`+ue.slice(ye+1):Ae+=ue.slice(_e),Ae.slice(1)}function ft(ue){for(var ce="",pe,be,_e,Ee=0;Ee<ue.length;Ee++){if(pe=ue.charCodeAt(Ee),pe>=55296&&pe<=56319&&(be=ue.charCodeAt(Ee+1),be>=56320&&be<=57343)){ce+=Ke((pe-55296)*1024+be-56320+65536),Ee++;continue}_e=Ne[pe],ce+=!_e&&je(pe)?ue[Ee]:_e||Ke(pe)}return ce}function it(ue,ce,pe){var be="",_e=ue.tag,Ee,ye;for(Ee=0,ye=pe.length;Ee<ye;Ee+=1)Q(ue,ce,pe[Ee],!1,!1)&&(Ee!==0&&(be+=","+(ue.condenseFlow?"":" ")),be+=ue.dump);ue.tag=_e,ue.dump="["+be+"]"}function st(ue,ce,pe,be){var _e="",Ee=ue.tag,ye,we;for(ye=0,we=pe.length;ye<we;ye+=1)Q(ue,ce+1,pe[ye],!0,!0)&&((!be||ye!==0)&&(_e+=Ue(ue,ce)),ue.dump&&F===ue.dump.charCodeAt(0)?_e+="-":_e+="- ",_e+=ue.dump);ue.tag=Ee,ue.dump=_e||"[]"}function ot(ue,ce,pe){var be="",_e=ue.tag,Ee=Object.keys(pe),ye,we,Ae,ve,Ie;for(ye=0,we=Ee.length;ye<we;ye+=1)Ie="",ye!==0&&(Ie+=", "),ue.condenseFlow&&(Ie+='"'),Ae=Ee[ye],ve=pe[Ae],Q(ue,ce,Ae,!1,!1)&&(ue.dump.length>1024&&(Ie+="? "),Ie+=ue.dump+(ue.condenseFlow?'"':"")+":"+(ue.condenseFlow?"":" "),Q(ue,ce,ve,!1,!1)&&(Ie+=ue.dump,be+=Ie));ue.tag=_e,ue.dump="{"+be+"}"}function dt(ue,ce,pe,be){var _e="",Ee=ue.tag,ye=Object.keys(pe),we,Ae,ve,Ie,Me,Pe;if(ue.sortKeys===!0)ye.sort();else if(typeof ue.sortKeys=="function")ye.sort(ue.sortKeys);else if(ue.sortKeys)throw new t("sortKeys must be a boolean or a function");for(we=0,Ae=ye.length;we<Ae;we+=1)Pe="",(!be||we!==0)&&(Pe+=Ue(ue,ce)),ve=ye[we],Ie=pe[ve],Q(ue,ce+1,ve,!0,!0,!0)&&(Me=ue.tag!==null&&ue.tag!=="?"||ue.dump&&ue.dump.length>1024,Me&&(ue.dump&&F===ue.dump.charCodeAt(0)?Pe+="?":Pe+="? "),Pe+=ue.dump,Me&&(Pe+=Ue(ue,ce)),Q(ue,ce+1,Ie,!0,Me)&&(ue.dump&&F===ue.dump.charCodeAt(0)?Pe+=":":Pe+=": ",Pe+=ue.dump,_e+=Pe));ue.tag=Ee,ue.dump=_e||"{}"}function ct(ue,ce,pe){var be,_e,Ee,ye,we,Ae;for(_e=pe?ue.explicitTypes:ue.implicitTypes,Ee=0,ye=_e.length;Ee<ye;Ee+=1)if(we=_e[Ee],(we.instanceOf||we.predicate)&&(!we.instanceOf||typeof ce=="object"&&ce instanceof we.instanceOf)&&(!we.predicate||we.predicate(ce))){if(ue.tag=pe?we.tag:"?",we.represent){if(Ae=ue.styleMap[we.tag]||we.defaultStyle,o.call(we.represent)==="[object Function]")be=we.represent(ce,Ae);else if(c.call(we.represent,Ae))be=we.represent[Ae](ce,Ae);else throw new t("!<"+we.tag+'> tag resolver accepts not "'+Ae+'" style');ue.dump=be}return!0}return!1}function Q(ue,ce,pe,be,_e,Ee){ue.tag=null,ue.dump=pe,ct(ue,pe,!1)||ct(ue,pe,!0);var ye=o.call(ue.dump);be&&(be=ue.flowLevel<0||ue.flowLevel>ce);var we=ye==="[object Object]"||ye==="[object Array]",Ae,ve;if(we&&(Ae=ue.duplicates.indexOf(pe),ve=Ae!==-1),(ue.tag!==null&&ue.tag!=="?"||ve||ue.indent!==2&&ce>0)&&(_e=!1),ve&&ue.usedDuplicates[Ae])ue.dump="*ref_"+Ae;else{if(we&&ve&&!ue.usedDuplicates[Ae]&&(ue.usedDuplicates[Ae]=!0),ye==="[object Object]")be&&Object.keys(ue.dump).length!==0?(dt(ue,ce,ue.dump,_e),ve&&(ue.dump="&ref_"+Ae+ue.dump)):(ot(ue,ce,ue.dump),ve&&(ue.dump="&ref_"+Ae+" "+ue.dump));else if(ye==="[object Array]"){var Ie=ue.noArrayIndent&&ce>0?ce-1:ce;be&&ue.dump.length!==0?(st(ue,Ie,ue.dump,_e),ve&&(ue.dump="&ref_"+Ae+ue.dump)):(it(ue,Ie,ue.dump),ve&&(ue.dump="&ref_"+Ae+" "+ue.dump))}else if(ye==="[object String]")ue.tag!=="?"&&at(ue,ue.dump,ce,Ee);else{if(ue.skipInvalid)return!1;throw new t("unacceptable kind of an object to dump "+ye)}ue.tag!==null&&ue.tag!=="?"&&(ue.dump="!<"+ue.tag+"> "+ue.dump)}return!0}function fe(ue,ce){var pe=[],be=[],_e,Ee;for(ge(ue,pe,be),_e=0,Ee=be.length;_e<Ee;_e+=1)ce.duplicates.push(pe[be[_e]]);ce.usedDuplicates=new Array(Ee)}function ge(ue,ce,pe){var be,_e,Ee;if(ue!==null&&typeof ue=="object")if(_e=ce.indexOf(ue),_e!==-1)pe.indexOf(_e)===-1&&pe.push(_e);else if(ce.push(ue),Array.isArray(ue))for(_e=0,Ee=ue.length;_e<Ee;_e+=1)ge(ue[_e],ce,pe);else for(be=Object.keys(ue),_e=0,Ee=be.length;_e<Ee;_e+=1)ge(ue[be[_e]],ce,pe)}function Ce(ue,ce){ce=ce||{};var pe=new De(ce);return pe.noRefs||fe(ue,pe),Q(pe,0,ue,!0,!0)?pe.dump+`
|
|
35
|
+
`:""}function ke(ue,ce){return Ce(ue,e.extend({schema:r},ce))}return dumper.dump=Ce,dumper.safeDump=ke,dumper}var hasRequiredJsYaml$1;function requireJsYaml$1(){if(hasRequiredJsYaml$1)return jsYaml$1;hasRequiredJsYaml$1=1;var e=requireLoader(),t=requireDumper();function n(r){return function(){throw new Error("Function "+r+" is deprecated and cannot be used.")}}return jsYaml$1.Type=requireType(),jsYaml$1.Schema=requireSchema(),jsYaml$1.FAILSAFE_SCHEMA=requireFailsafe(),jsYaml$1.JSON_SCHEMA=requireJson(),jsYaml$1.CORE_SCHEMA=requireCore(),jsYaml$1.DEFAULT_SAFE_SCHEMA=requireDefault_safe(),jsYaml$1.DEFAULT_FULL_SCHEMA=requireDefault_full(),jsYaml$1.load=e.load,jsYaml$1.loadAll=e.loadAll,jsYaml$1.safeLoad=e.safeLoad,jsYaml$1.safeLoadAll=e.safeLoadAll,jsYaml$1.dump=t.dump,jsYaml$1.safeDump=t.safeDump,jsYaml$1.YAMLException=requireException(),jsYaml$1.MINIMAL_SCHEMA=requireFailsafe(),jsYaml$1.SAFE_SCHEMA=requireDefault_safe(),jsYaml$1.DEFAULT_SCHEMA=requireDefault_full(),jsYaml$1.scan=n("scan"),jsYaml$1.parse=n("parse"),jsYaml$1.compose=n("compose"),jsYaml$1.addConstructor=n("addConstructor"),jsYaml$1}var jsYaml,hasRequiredJsYaml;function requireJsYaml(){if(hasRequiredJsYaml)return jsYaml;hasRequiredJsYaml=1;var e=requireJsYaml$1();return jsYaml=e,jsYaml}var hasRequiredEngines;function requireEngines(){return hasRequiredEngines||(hasRequiredEngines=1,(function(module,exports$1){const yaml=requireJsYaml(),engines=module.exports;engines.yaml={parse:yaml.safeLoad.bind(yaml),stringify:yaml.safeDump.bind(yaml)},engines.json={parse:JSON.parse.bind(JSON),stringify:function(e,t){const n=Object.assign({replacer:null,space:2},t);return JSON.stringify(e,n.replacer,n.space)}},engines.javascript={parse:function parse(str,options,wrap){try{return wrap!==!1&&(str=`(function() {
|
|
36
|
+
return `+str.trim()+`;
|
|
37
|
+
}());`),eval(str)||{}}catch(e){if(wrap!==!1&&/(unexpected|identifier)/i.test(e.message))return parse(str,options,!1);throw new SyntaxError(e)}},stringify:function(){throw new Error("stringifying JavaScript is not supported")}}})(engines)),engines.exports}var utils$1={};var stripBomString,hasRequiredStripBomString;function requireStripBomString(){return hasRequiredStripBomString||(hasRequiredStripBomString=1,stripBomString=function(e){return typeof e=="string"&&e.charAt(0)==="\uFEFF"?e.slice(1):e}),stripBomString}var hasRequiredUtils;function requireUtils(){return hasRequiredUtils||(hasRequiredUtils=1,(function(e){const t=requireStripBomString(),n=requireKindOf();e.define=function(r,o,c){Reflect.defineProperty(r,o,{enumerable:!1,configurable:!0,writable:!0,value:c})},e.isBuffer=function(r){return n(r)==="buffer"},e.isObject=function(r){return n(r)==="object"},e.toBuffer=function(r){return typeof r=="string"?bufferExports.Buffer.from(r):r},e.toString=function(r){if(e.isBuffer(r))return t(String(r));if(typeof r!="string")throw new TypeError("expected input to be a string or buffer");return t(r)},e.arrayify=function(r){return r?Array.isArray(r)?r:[r]:[]},e.startsWith=function(r,o,c){return typeof c!="number"&&(c=o.length),r.slice(0,c)===o}})(utils$1)),utils$1}var defaults,hasRequiredDefaults;function requireDefaults(){if(hasRequiredDefaults)return defaults;hasRequiredDefaults=1;const e=requireEngines(),t=requireUtils();return defaults=function(n){const r=Object.assign({},n);return r.delimiters=t.arrayify(r.delims||r.delimiters||"---"),r.delimiters.length===1&&r.delimiters.push(r.delimiters[0]),r.language=(r.language||r.lang||"yaml").toLowerCase(),r.engines=Object.assign({},e,r.parsers,r.engines),r},defaults}var engine,hasRequiredEngine;function requireEngine(){if(hasRequiredEngine)return engine;hasRequiredEngine=1,engine=function(t,n){let r=n.engines[t]||n.engines[e(t)];if(typeof r>"u")throw new Error('gray-matter engine "'+t+'" is not registered');return typeof r=="function"&&(r={parse:r}),r};function e(t){switch(t.toLowerCase()){case"js":case"javascript":return"javascript";case"coffee":case"coffeescript":case"cson":return"coffee";case"yaml":case"yml":return"yaml";default:return t}}return engine}var stringify$1,hasRequiredStringify;function requireStringify(){if(hasRequiredStringify)return stringify$1;hasRequiredStringify=1;const e=requireKindOf(),t=requireEngine(),n=requireDefaults();stringify$1=function(o,c,h){if(c==null&&h==null)switch(e(o)){case"object":c=o.data,h={};break;case"string":return o;default:throw new TypeError("expected file to be a string or object")}const F=o.content,Y=n(h);if(c==null){if(!Y.data)return o;c=Y.data}const V=o.language||Y.language,X=t(V,Y);if(typeof X.stringify!="function")throw new TypeError('expected "'+V+'.stringify" to be a function');c=Object.assign({},o.data,c);const ee=Y.delimiters[0],te=Y.delimiters[1],ne=X.stringify(c,h).trim();let re="";return ne!=="{}"&&(re=r(ee)+r(ne)+r(te)),typeof o.excerpt=="string"&&o.excerpt!==""&&F.indexOf(o.excerpt.trim())===-1&&(re+=r(o.excerpt)+r(te)),re+r(F)};function r(o){return o.slice(-1)!==`
|
|
38
|
+
`?o+`
|
|
39
|
+
`:o}return stringify$1}var excerpt,hasRequiredExcerpt;function requireExcerpt(){if(hasRequiredExcerpt)return excerpt;hasRequiredExcerpt=1;const e=requireDefaults();return excerpt=function(t,n){const r=e(n);if(t.data==null&&(t.data={}),typeof r.excerpt=="function")return r.excerpt(t,r);const o=t.data.excerpt_separator||r.excerpt_separator;if(o==null&&(r.excerpt===!1||r.excerpt==null))return t;const c=typeof r.excerpt=="string"?r.excerpt:o||r.delimiters[0],h=t.content.indexOf(c);return h!==-1&&(t.excerpt=t.content.slice(0,h)),t},excerpt}var toFile,hasRequiredToFile;function requireToFile(){if(hasRequiredToFile)return toFile;hasRequiredToFile=1;const e=requireKindOf(),t=requireStringify(),n=requireUtils();return toFile=function(r){return e(r)!=="object"&&(r={content:r}),e(r.data)!=="object"&&(r.data={}),r.contents&&r.content==null&&(r.content=r.contents),n.define(r,"orig",n.toBuffer(r.content)),n.define(r,"language",r.language||""),n.define(r,"matter",r.matter||""),n.define(r,"stringify",function(o,c){return c&&c.language&&(r.language=c.language),t(r,o,c)}),r.content=n.toString(r.content),r.isEmpty=!1,r.excerpt="",r},toFile}var parse$1,hasRequiredParse;function requireParse(){if(hasRequiredParse)return parse$1;hasRequiredParse=1;const e=requireEngine(),t=requireDefaults();return parse$1=function(n,r,o){const c=t(o),h=e(n,c);if(typeof h.parse!="function")throw new TypeError('expected "'+n+'.parse" to be a function');return h.parse(r,c)},parse$1}var grayMatter$1,hasRequiredGrayMatter;function requireGrayMatter(){if(hasRequiredGrayMatter)return grayMatter$1;hasRequiredGrayMatter=1;const e=require$$0,t=requireSectionMatter(),n=requireDefaults(),r=requireStringify(),o=requireExcerpt(),c=requireEngines(),h=requireToFile(),F=requireParse(),Y=requireUtils();function V(ee,te){if(ee==="")return{data:{},content:ee,excerpt:"",orig:ee};let ne=h(ee);const re=V.cache[ne.content];if(!te){if(re)return ne=Object.assign({},re),ne.orig=re.orig,ne;V.cache[ne.content]=ne}return X(ne,te)}function X(ee,te){const ne=n(te),re=ne.delimiters[0],ie=`
|
|
40
|
+
`+ne.delimiters[1];let se=ee.content;ne.language&&(ee.language=ne.language);const oe=re.length;if(!Y.startsWith(se,re,oe))return o(ee,ne),ee;if(se.charAt(oe)===re.slice(-1))return ee;se=se.slice(oe);const ae=se.length,le=V.language(se,ne);le.name&&(ee.language=le.name,se=se.slice(le.raw.length));let de=se.indexOf(ie);return de===-1&&(de=ae),ee.matter=se.slice(0,de),ee.matter.replace(/^\s*#[^\n]+/gm,"").trim()===""?(ee.isEmpty=!0,ee.empty=ee.content,ee.data={}):ee.data=F(ee.language,ee.matter,ne),de===ae?ee.content="":(ee.content=se.slice(de+ie.length),ee.content[0]==="\r"&&(ee.content=ee.content.slice(1)),ee.content[0]===`
|
|
41
|
+
`&&(ee.content=ee.content.slice(1))),o(ee,ne),(ne.sections===!0||typeof ne.section=="function")&&t(ee,ne.section),ee}return V.engines=c,V.stringify=function(ee,te,ne){return typeof ee=="string"&&(ee=V(ee,ne)),r(ee,te,ne)},V.read=function(ee,te){const ne=e.readFileSync(ee,"utf8"),re=V(ne,te);return re.path=ee,re},V.test=function(ee,te){return Y.startsWith(ee,n(te).delimiters[0])},V.language=function(ee,te){const re=n(te).delimiters[0];V.test(ee)&&(ee=ee.slice(re.length));const ie=ee.slice(0,ee.search(/\r?\n/));return{raw:ie,name:ie?ie.trim():""}},V.cache={},V.clearCache=function(){V.cache={}},grayMatter$1=V,grayMatter$1}var grayMatterExports=requireGrayMatter();const grayMatter=getDefaultExportFromCjs(grayMatterExports),frontmatterPlugin=(e,{grayMatterOptions:t,renderExcerpt:n=!0}={})=>{const r=e.parse.bind(e);e.parse=(o,c={})=>{const{data:h,content:F,excerpt:Y=""}=grayMatter(o,t);return c.content=F,c.frontmatter={...c.frontmatter,...h},c.excerpt=n&&Y?e.render(Y,{...c}):Y,r(F,c)}},TAG_NAME_SCRIPT="script",TAG_NAME_STYLE="style",TAG_NAME_TEMPLATE="template",SCRIPT_SETUP_TAG_OPEN_REGEXP=/^<script\s+.*?\bsetup\b.*?>$/is,createSfcRegexp=({customBlocks:e})=>{const t=Array.from(new Set([TAG_NAME_SCRIPT,TAG_NAME_STYLE,...e])).join("|");return new RegExp(`^\\s*(?<content>(?<tagOpen><(?<type>${t})\\s?.*?>)(?<contentStripped>.*)(?<tagClose><\\/\\k<type>\\s*>))\\s*$`,"is")},sfcPlugin=(e,{customBlocks:t=[]}={})=>{const n=createSfcRegexp({customBlocks:t}),r=e.render.bind(e);e.render=(c,h={})=>{h.sfcBlocks={template:null,script:null,scriptSetup:null,scripts:[],styles:[],customBlocks:[]};const F=r(c,h);return h.sfcBlocks.template={type:TAG_NAME_TEMPLATE,content:`<${TAG_NAME_TEMPLATE}>${F}</${TAG_NAME_TEMPLATE}>`,contentStripped:F,tagOpen:`<${TAG_NAME_TEMPLATE}>`,tagClose:`</${TAG_NAME_TEMPLATE}>`},F};const o=e.renderer.rules.html_block;e.renderer.rules.html_block=(c,h,F,Y,V)=>{if(!Y.sfcBlocks)return o(c,h,F,Y,V);const te=c[h].content.match(n);if(!te)return o(c,h,F,Y,V);const ne=te.groups;return ne.type===TAG_NAME_SCRIPT?(Y.sfcBlocks.scripts.push(ne),SCRIPT_SETUP_TAG_OPEN_REGEXP.test(ne.tagOpen)?Y.sfcBlocks.scriptSetup=ne:Y.sfcBlocks.script=ne):ne.type===TAG_NAME_STYLE?Y.sfcBlocks.styles.push(ne):Y.sfcBlocks.customBlocks.push(ne),""}},htmlEscapeMap={"&":"&","<":"<",">":">","'":"'",'"':"""},htmlEscapeRegexp=/[&<>'"]/g,htmlEscape=e=>e.replace(htmlEscapeRegexp,t=>htmlEscapeMap[t]),resolveTitleFromToken=(e,{shouldAllowHtml:t,shouldEscapeText:n})=>{const r=e.children??[],o=["text","emoji","code_inline"];return o.push("html_inline"),r.filter(h=>o.includes(h.type)&&!h.meta?.isPermalinkSymbol).reduce((h,F)=>F.type==="code_inline"||F.type==="text"?`${h}${htmlEscape(F.content)}`:`${h}${F.content}`,"").trim()},resolveHeadersFromTokens=(e,{level:t,shouldAllowHtml:n,shouldAllowNested:r,shouldEscapeText:o,slugify:c,format:h})=>{const F=[],Y=[],V=X=>{for(;Y.length!==0&&X.level<=Y[0].level;)Y.shift();Y.length===0?(F.push(X),Y.push(X)):(Y[0].children.push(X),Y.unshift(X))};for(let X=0;X<e.length;X+=1){const ee=e[X];if(ee.type!=="heading_open"||ee.level!==0&&!r)continue;const te=Number.parseInt(ee.tag.slice(1),10);if(!t.includes(te))continue;const ne=e[X+1];if(!ne)continue;const re=resolveTitleFromToken(ne,{shouldAllowHtml:n,shouldEscapeText:o}),ie=ee.attrGet("id")??c(re);V({level:te,title:h?.(re)??re,slug:ie,link:`#${ie}`,children:[]})}return F},rControl=/[\u0000-\u001f]/g,rSpecial=/[\s~`!@#$%^&*()\-_+=[\]{}|\\;:"'“”‘’<>,.?/]+/g,rCombining=/[\u0300-\u036F]/g,slugify=e=>e.normalize("NFKD").replace(rCombining,"").replace(rControl,"").replace(rSpecial,"-").replace(/-{2,}/g,"-").replace(/^-+|-+$/g,"").replace(/^(\d)/,"_$1").toLowerCase(),createRenderHeaders=({listTag:e,listClass:t,itemClass:n,linkTag:r,linkClass:o})=>{const c=htmlEscape(e),h=t?` class="${htmlEscape(t)}"`:"",F="li",Y=n?` class="${htmlEscape(n)}"`:"",V=htmlEscape(r),X=o?` class="${htmlEscape(o)}"`:"",ee=ne=>r==="router-link"?` to="${ne}"`:` href="${ne}"`,te=ne=>`<${c}${h}>${ne.map(re=>`<${F}${Y}><${V}${X}${ee(re.link)}>${re.title}</${V}>${re.children.length>0?te(re.children):""}</${F}>`).join("")}</${c}>`;return te},createTocBlockRule=({pattern:e,containerTag:t,containerClass:n})=>(r,o,c,h)=>{if(r.sCount[o]-r.blkIndent>=4)return!1;const F=r.bMarks[o]+r.tShift[o],Y=r.eMarks[o],V=r.src.slice(F,Y).split(" ")[0];if(!e.test(V))return!1;if(h)return!0;r.line=o+1;const X=r.push("toc_open",t,1);X.markup="",X.map=[o,r.line],n&&X.attrSet("class",n);const ee=r.push("toc_body","",0);ee.markup=V,ee.map=[o,r.line],ee.hidden=!0;const te=r.push("toc_close",t,-1);return te.markup="",ee.map=[o,r.line],!0},tocPlugin=(e,{pattern:t=/^\[\[toc\]\]$/i,slugify:n=slugify,format:r,level:o=[2,3],shouldAllowNested:c=!1,containerTag:h="nav",containerClass:F="table-of-contents",listTag:Y="ul",listClass:V="",itemClass:X="",linkTag:ee="a",linkClass:te=""}={})=>{e.block.ruler.before("heading","toc",createTocBlockRule({pattern:t,containerTag:h,containerClass:F}),{alt:["paragraph","reference","blockquote"]});const ne=createRenderHeaders({listTag:Y,listClass:V,itemClass:X,linkTag:ee,linkClass:te});e.renderer.rules.toc_body=re=>ne(resolveHeadersFromTokens(re,{level:o,shouldAllowHtml:!0,shouldAllowNested:c,shouldEscapeText:!0,slugify:n,format:r}))},j=e=>{const{arrayReplaceAt:t,escapeRE:n,lib:r}=e.utils,o=" \r\n$+<=>^`|~",c=r.ucmicro.P.source,h=r.ucmicro.Z.source,F=`${c}|${h}|[${o.split("").map(n).join("")}]`,Y=(X,ee,te,ne)=>{let re=-1,ie=X.bMarks[ee]+X.tShift[ee];const se=X.eMarks[ee];if(ie+2>=se||X.src.charCodeAt(ie++)!==42||X.src.charCodeAt(ie++)!==91)return!1;const oe=ie;for(;ie<se;){const me=X.src.charCodeAt(ie);if(me===91)return!1;if(me===93){re=ie;break}me===92&&ie++,ie++}if(re<0||X.src.charCodeAt(re+1)!==58)return!1;if(ne)return!0;const ae=X.src.slice(oe,re).replace(/\\(.)/g,"$1");ie=re+2;const le=X.skipSpaces(ie),de=X.skipSpacesBack(se,le),he=X.src.slice(le,de);return!ae.length||!he.length?!1:((X.env.abbreviations??={})["_"+ae]??=he,X.line=ee+1,!0)},V=X=>{const ee=X.tokens,{abbreviations:te}=X.env;if(!te)return;const ne=Object.keys(te).map(se=>se.slice(1)).sort((se,oe)=>oe.length-se.length).map(n).join("|"),re=new RegExp(`(?:${ne})`),ie=new RegExp(`(^|${F})(${ne})($|${F})`,"g");for(const se of ee){if(se.type!=="inline")continue;let oe=se.children;for(let ae=oe.length-1;ae>=0;ae--){const le=oe[ae];if(le.type!=="text")continue;const de=le.content;if(ie.lastIndex=0,!re.test(de))continue;const he=[];let me,Se=0;for(;me=ie.exec(de);){const[,xe,Te,$e]=me;if(me.index>0||xe.length>0){const Ne=new X.Token("text","",0);Ne.content=de.slice(Se,me.index+xe.length),he.push(Ne)}const Oe=new X.Token("abbr_open","abbr",1);Oe.attrPush(["title",te[`_${Te}`]]),he.push(Oe);const Fe=new X.Token("text","",0);Fe.content=Te,he.push(Fe);const Re=new X.Token("abbr_close","abbr",-1);he.push(Re),ie.lastIndex-=$e.length,Se=ie.lastIndex}if(he.length){if(Se<de.length){const xe=new X.Token("text","",0);xe.content=de.slice(Se),he.push(xe)}se.children=oe=t(oe,ae,he)}}}};e.block.ruler.before("reference","abbr_definition",Y,{alt:["paragraph","reference"]}),e.core.ruler.after("linkify","abbr_replace",V)},R$2=(e,t)=>{if(typeof t!="object"||!t.name)throw new Error("[@mdit/plugin-container]: 'name' option is required.");const{name:n,marker:r=":",validate:o=X=>X.trim().split(" ",2)[0]===n,openRender:c=(X,ee,te,ne,re)=>(X[ee].attrJoin("class",n),re.renderToken(X,ee,te)),closeRender:h=(X,ee,te,ne,re)=>re.renderToken(X,ee,te)}=t,F=r[0],Y=r.length,V=(X,ee,te,ne)=>{const re=X.bMarks[ee]+X.tShift[ee],ie=X.eMarks[ee],se=X.sCount[ee];if(F!==X.src[re])return!1;let oe=re+1;for(;oe<=ie&&r[(oe-re)%Y]===X.src[oe];)oe++;const ae=Math.floor((oe-re)/Y);if(ae<3)return!1;oe-=(oe-re)%Y;const le=r.repeat(ae),de=X.src.slice(oe,ie);if(!o(de,le))return!1;if(ne)return!0;let he=ee+1,me=!1;for(;he<te;he++){const Fe=X.bMarks[he]+X.tShift[he],Re=X.eMarks[he];if(Fe<Re&&X.sCount[he]<se)break;if(X.sCount[he]===se&&F===X.src[Fe]){for(oe=Fe+1;oe<=Re&&r[(oe-Fe)%Y]===X.src[oe];oe++);if(Math.floor((oe-Fe)/Y)>=ae&&(oe-=(oe-Fe)%Y,oe=X.skipSpaces(oe),oe>=Re)){me=!0;break}}}const Se=X.parentType,xe=X.lineMax,Te=X.blkIndent;X.parentType="container",X.lineMax=he,X.blkIndent=se;const $e=X.push(`container_${n}_open`,"div",1);$e.markup=le,$e.block=!0,$e.info=de,$e.map=[ee,he],X.md.block.tokenize(X,ee+1,he);const Oe=X.push(`container_${n}_close`,"div",-1);return Oe.markup=le,Oe.block=!0,X.parentType=Se,X.lineMax=xe,X.blkIndent=Te,X.line=he+(me?1:0),!0};e.block.ruler.before("fence",`container_${n}`,V,{alt:["paragraph","reference","blockquote","list"]}),e.renderer.rules[`container_${n}_open`]=c,e.renderer.rules[`container_${n}_close`]=h},i$4=e=>{["left","center","right","justify"].forEach(t=>e.use(n=>R$2(n,{name:t,openRender:()=>`<div style="text-align:${t}">
|
|
42
|
+
`})))},decodeCache={};function getDecodeCache(e){let t=decodeCache[e];if(t)return t;t=decodeCache[e]=[];for(let n=0;n<128;n++){const r=String.fromCharCode(n);t.push(r)}for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);t[r]="%"+("0"+r.toString(16).toUpperCase()).slice(-2)}return t}function decode$1(e,t){typeof t!="string"&&(t=decode$1.defaultChars);const n=getDecodeCache(t);return e.replace(/(%[a-f0-9]{2})+/gi,function(r){let o="";for(let c=0,h=r.length;c<h;c+=3){const F=parseInt(r.slice(c+1,c+3),16);if(F<128){o+=n[F];continue}if((F&224)===192&&c+3<h){const Y=parseInt(r.slice(c+4,c+6),16);if((Y&192)===128){const V=F<<6&1984|Y&63;V<128?o+="��":o+=String.fromCharCode(V),c+=3;continue}}if((F&240)===224&&c+6<h){const Y=parseInt(r.slice(c+4,c+6),16),V=parseInt(r.slice(c+7,c+9),16);if((Y&192)===128&&(V&192)===128){const X=F<<12&61440|Y<<6&4032|V&63;X<2048||X>=55296&&X<=57343?o+="���":o+=String.fromCharCode(X),c+=6;continue}}if((F&248)===240&&c+9<h){const Y=parseInt(r.slice(c+4,c+6),16),V=parseInt(r.slice(c+7,c+9),16),X=parseInt(r.slice(c+10,c+12),16);if((Y&192)===128&&(V&192)===128&&(X&192)===128){let ee=F<<18&1835008|Y<<12&258048|V<<6&4032|X&63;ee<65536||ee>1114111?o+="����":(ee-=65536,o+=String.fromCharCode(55296+(ee>>10),56320+(ee&1023))),c+=9;continue}}o+="�"}return o})}decode$1.defaultChars=";/?:@&=+$,#";decode$1.componentChars="";const encodeCache={};function getEncodeCache(e){let t=encodeCache[e];if(t)return t;t=encodeCache[e]=[];for(let n=0;n<128;n++){const r=String.fromCharCode(n);/^[0-9a-z]$/i.test(r)?t.push(r):t.push("%"+("0"+n.toString(16).toUpperCase()).slice(-2))}for(let n=0;n<e.length;n++)t[e.charCodeAt(n)]=e[n];return t}function encode$1(e,t,n){typeof t!="string"&&(n=t,t=encode$1.defaultChars),typeof n>"u"&&(n=!0);const r=getEncodeCache(t);let o="";for(let c=0,h=e.length;c<h;c++){const F=e.charCodeAt(c);if(n&&F===37&&c+2<h&&/^[0-9a-f]{2}$/i.test(e.slice(c+1,c+3))){o+=e.slice(c,c+3),c+=2;continue}if(F<128){o+=r[F];continue}if(F>=55296&&F<=57343){if(F>=55296&&F<=56319&&c+1<h){const Y=e.charCodeAt(c+1);if(Y>=56320&&Y<=57343){o+=encodeURIComponent(e[c]+e[c+1]),c++;continue}}o+="%EF%BF%BD";continue}o+=encodeURIComponent(e[c])}return o}encode$1.defaultChars=";/?:@&=+$,-_.!~*'()#";encode$1.componentChars="-_.!~*'()";function format(e){let t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&e.hostname.indexOf(":")!==-1?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",t+=e.search||"",t+=e.hash||"",t}function Url(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}const protocolPattern=/^([a-z0-9.+-]+:)/i,portPattern=/:[0-9]*$/,simplePathPattern=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,delims=["<",">",'"',"`"," ","\r",`
|
|
43
|
+
`," "],unwise=["{","}","|","\\","^","`"].concat(delims),autoEscape=["'"].concat(unwise),nonHostChars=["%","/","?",";","#"].concat(autoEscape),hostEndingChars=["/","?","#"],hostnameMaxLen=255,hostnamePartPattern=/^[+a-z0-9A-Z_-]{0,63}$/,hostnamePartStart=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,hostlessProtocol={javascript:!0,"javascript:":!0},slashedProtocol={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function urlParse(e,t){if(e&&e instanceof Url)return e;const n=new Url;return n.parse(e,t),n}Url.prototype.parse=function(e,t){let n,r,o,c=e;if(c=c.trim(),!t&&e.split("#").length===1){const V=simplePathPattern.exec(c);if(V)return this.pathname=V[1],V[2]&&(this.search=V[2]),this}let h=protocolPattern.exec(c);if(h&&(h=h[0],n=h.toLowerCase(),this.protocol=h,c=c.substr(h.length)),(t||h||c.match(/^\/\/[^@\/]+@[^@\/]+/))&&(o=c.substr(0,2)==="//",o&&!(h&&hostlessProtocol[h])&&(c=c.substr(2),this.slashes=!0)),!hostlessProtocol[h]&&(o||h&&!slashedProtocol[h])){let V=-1;for(let re=0;re<hostEndingChars.length;re++)r=c.indexOf(hostEndingChars[re]),r!==-1&&(V===-1||r<V)&&(V=r);let X,ee;V===-1?ee=c.lastIndexOf("@"):ee=c.lastIndexOf("@",V),ee!==-1&&(X=c.slice(0,ee),c=c.slice(ee+1),this.auth=X),V=-1;for(let re=0;re<nonHostChars.length;re++)r=c.indexOf(nonHostChars[re]),r!==-1&&(V===-1||r<V)&&(V=r);V===-1&&(V=c.length),c[V-1]===":"&&V--;const te=c.slice(0,V);c=c.slice(V),this.parseHost(te),this.hostname=this.hostname||"";const ne=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!ne){const re=this.hostname.split(/\./);for(let ie=0,se=re.length;ie<se;ie++){const oe=re[ie];if(oe&&!oe.match(hostnamePartPattern)){let ae="";for(let le=0,de=oe.length;le<de;le++)oe.charCodeAt(le)>127?ae+="x":ae+=oe[le];if(!ae.match(hostnamePartPattern)){const le=re.slice(0,ie),de=re.slice(ie+1),he=oe.match(hostnamePartStart);he&&(le.push(he[1]),de.unshift(he[2])),de.length&&(c=de.join(".")+c),this.hostname=le.join(".");break}}}}this.hostname.length>hostnameMaxLen&&(this.hostname=""),ne&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}const F=c.indexOf("#");F!==-1&&(this.hash=c.substr(F),c=c.slice(0,F));const Y=c.indexOf("?");return Y!==-1&&(this.search=c.substr(Y),c=c.slice(0,Y)),c&&(this.pathname=c),slashedProtocol[n]&&this.hostname&&!this.pathname&&(this.pathname=""),this};Url.prototype.parseHost=function(e){let t=portPattern.exec(e);t&&(t=t[0],t!==":"&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};const mdurl=Object.freeze(Object.defineProperty({__proto__:null,decode:decode$1,encode:encode$1,format,parse:urlParse},Symbol.toStringTag,{value:"Module"})),Any=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Cc=/[\0-\x1F\x7F-\x9F]/,regex$1=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/,P$1=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,regex=/[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/,Z=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,ucmicro=Object.freeze(Object.defineProperty({__proto__:null,Any,Cc,Cf:regex$1,P:P$1,S:regex,Z},Symbol.toStringTag,{value:"Module"})),htmlDecodeTree=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏઑඡ༉༦ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲϏϢϸontourIntegraìȹoɴ\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲy;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱còJTabcdfgorstרׯؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ߂ߐĀiyޱrc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣসে্ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४ĀnrࢃgleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpwਖਛgȀLRlr৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼અઋp;椅y;䐜Ādl੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑඞcy;䐊cute;䅃ƀaeyહાron;䅇dil;䅅;䐝ƀgswે૰ativeƀMTV૨ediumSpace;怋hiĀcn૦ëeryThiîtedĀGLଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷreak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater;EFGLSTஶஷ扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨setĀ;Eೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂෛ෧ขภยา฿ไlig;䅒cute耻Ó䃓Āiyීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲcr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬืde耻Õ䃕es;樷ml耻Ö䃖erĀBP๋Āar๐๓r;怾acĀek๚;揞et;掴arenthesis;揜ҀacfhilorsງຊຏຒດຝະrtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ檻cedesȀ;EST່້扺qual;檯lantEqual;扼ilde;找me;怳Ādpuct;戏ortionĀ;aȥl;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL憒ar;懥eftArrow;懄eiling;按oǵ\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄቕቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHcቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗ĀeiቻDzኀ\0ኇefore;戴a;䎘ĀcnኘkSpace;쀀 Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtèa;䎖r;愨pf;愤cr;쀀𝒵ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒;Eaeiopᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;eᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;eᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰᝃᝈ០៦ᠹᡐᜍ᥈ᥰot;櫭ĀcrᛶkȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀakoᠦᠵĀcn៲ᠣkƀlst֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ;敛;敘;攘;攔;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģbar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;elƀ;bhᥨᥩᥫ䁜;槅sub;柈ŬᥴlĀ;e怢t»pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭒\0᯽\0ᰌƀcprᦲute;䄇̀;abcdsᦿᧀᧄ᧕᧙戩nd;橄rcup;橉Āau᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r;Ecefms᩠ᩢᩫ᪤᪪旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ\0\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»eóɍǧ\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯delprvw᭠᭬᭷ᮂᮬᯔarrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;pᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰻᰿ᱝᱩᱵᲞᲬᲷᴍᵻᶑᶫᶻ᷆᷍ròar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂᳖᳜᳠mƀ;oș᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄĀDoḆᴴoôĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»ṺƀaeiἒἚls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧\0耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₥₰₴⃰℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽ƀ;qsؾٌlanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqrⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0proør;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼ròòΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonóquigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roøurĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨íistĀ;sடr;쀀𝔫ȀEest⩦⩹⩼ƀ;qs⩭ƀ;qs⩴lanôií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast⭕⭚⭟lleìl;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖchimpqu⮽⯍⯙⬄⯤⯯Ȁ;cerല⯆ഷ⯉uå;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭ååഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñĀ;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;cⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācrir;榿;쀀𝔬ͯ\0\0\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕⶥⶨrò᪀Āirⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔǒr;榷rp;榹;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ\0\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ脀¶;l䂶leìЃɩ\0\0m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳ᤈ⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t⾴ïrel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⋢⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔ABHabcdefhilmnoprstuxけさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstwガクシスゼゾダッデナp;極Ā;fゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ìâヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘rrowĀ;tㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowóarpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓ròaòՑ;怏oustĀ;a㈞掱che»mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì耻䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;qኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫwar;椪lig耻ß䃟㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rëƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproøim»ኬsðኞĀas㚺㚮ðrn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈadempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xôheadĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roðtré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜtré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),xmlDecodeTree=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));var _a;const decodeMap=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),fromCodePoint$1=(_a=String.fromCodePoint)!==null&&_a!==void 0?_a:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t};function replaceCodePoint(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=decodeMap.get(e))!==null&&t!==void 0?t:e}var CharCodes;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(CharCodes||(CharCodes={}));const TO_LOWER_BIT=32;var BinTrieFlags;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(BinTrieFlags||(BinTrieFlags={}));function isNumber(e){return e>=CharCodes.ZERO&&e<=CharCodes.NINE}function isHexadecimalCharacter(e){return e>=CharCodes.UPPER_A&&e<=CharCodes.UPPER_F||e>=CharCodes.LOWER_A&&e<=CharCodes.LOWER_F}function isAsciiAlphaNumeric(e){return e>=CharCodes.UPPER_A&&e<=CharCodes.UPPER_Z||e>=CharCodes.LOWER_A&&e<=CharCodes.LOWER_Z||isNumber(e)}function isEntityInAttributeInvalidEnd(e){return e===CharCodes.EQUALS||isAsciiAlphaNumeric(e)}var EntityDecoderState;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(EntityDecoderState||(EntityDecoderState={}));var DecodingMode;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(DecodingMode||(DecodingMode={}));class EntityDecoder{constructor(t,n,r){this.decodeTree=t,this.emitCodePoint=n,this.errors=r,this.state=EntityDecoderState.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=DecodingMode.Strict}startEntity(t){this.decodeMode=t,this.state=EntityDecoderState.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case EntityDecoderState.EntityStart:return t.charCodeAt(n)===CharCodes.NUM?(this.state=EntityDecoderState.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=EntityDecoderState.NamedEntity,this.stateNamedEntity(t,n));case EntityDecoderState.NumericStart:return this.stateNumericStart(t,n);case EntityDecoderState.NumericDecimal:return this.stateNumericDecimal(t,n);case EntityDecoderState.NumericHex:return this.stateNumericHex(t,n);case EntityDecoderState.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|TO_LOWER_BIT)===CharCodes.LOWER_X?(this.state=EntityDecoderState.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=EntityDecoderState.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,r,o){if(n!==r){const c=r-n;this.result=this.result*Math.pow(o,c)+parseInt(t.substr(n,c),o),this.consumed+=c}}stateNumericHex(t,n){const r=n;for(;n<t.length;){const o=t.charCodeAt(n);if(isNumber(o)||isHexadecimalCharacter(o))n+=1;else return this.addToNumericResult(t,r,n,16),this.emitNumericEntity(o,3)}return this.addToNumericResult(t,r,n,16),-1}stateNumericDecimal(t,n){const r=n;for(;n<t.length;){const o=t.charCodeAt(n);if(isNumber(o))n+=1;else return this.addToNumericResult(t,r,n,10),this.emitNumericEntity(o,2)}return this.addToNumericResult(t,r,n,10),-1}emitNumericEntity(t,n){var r;if(this.consumed<=n)return(r=this.errors)===null||r===void 0||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===CharCodes.SEMI)this.consumed+=1;else if(this.decodeMode===DecodingMode.Strict)return 0;return this.emitCodePoint(replaceCodePoint(this.result),this.consumed),this.errors&&(t!==CharCodes.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,n){const{decodeTree:r}=this;let o=r[this.treeIndex],c=(o&BinTrieFlags.VALUE_LENGTH)>>14;for(;n<t.length;n++,this.excess++){const h=t.charCodeAt(n);if(this.treeIndex=determineBranch(r,o,this.treeIndex+Math.max(1,c),h),this.treeIndex<0)return this.result===0||this.decodeMode===DecodingMode.Attribute&&(c===0||isEntityInAttributeInvalidEnd(h))?0:this.emitNotTerminatedNamedEntity();if(o=r[this.treeIndex],c=(o&BinTrieFlags.VALUE_LENGTH)>>14,c!==0){if(h===CharCodes.SEMI)return this.emitNamedEntityData(this.treeIndex,c,this.consumed+this.excess);this.decodeMode!==DecodingMode.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:n,decodeTree:r}=this,o=(r[n]&BinTrieFlags.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,o,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,r){const{decodeTree:o}=this;return this.emitCodePoint(n===1?o[t]&~BinTrieFlags.VALUE_LENGTH:o[t+1],r),n===3&&this.emitCodePoint(o[t+2],r),r}end(){var t;switch(this.state){case EntityDecoderState.NamedEntity:return this.result!==0&&(this.decodeMode!==DecodingMode.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case EntityDecoderState.NumericDecimal:return this.emitNumericEntity(0,2);case EntityDecoderState.NumericHex:return this.emitNumericEntity(0,3);case EntityDecoderState.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case EntityDecoderState.EntityStart:return 0}}}function getDecoder(e){let t="";const n=new EntityDecoder(e,r=>t+=fromCodePoint$1(r));return function(o,c){let h=0,F=0;for(;(F=o.indexOf("&",F))>=0;){t+=o.slice(h,F),n.startEntity(c);const V=n.write(o,F+1);if(V<0){h=F+n.end();break}h=F+V,F=V===0?h+1:h}const Y=t+o.slice(h);return t="",Y}}function determineBranch(e,t,n,r){const o=(t&BinTrieFlags.BRANCH_LENGTH)>>7,c=t&BinTrieFlags.JUMP_TABLE;if(o===0)return c!==0&&r===c?n:-1;if(c){const Y=r-c;return Y<0||Y>=o?-1:e[n+Y]-1}let h=n,F=h+o-1;for(;h<=F;){const Y=h+F>>>1,V=e[Y];if(V<r)h=Y+1;else if(V>r)F=Y-1;else return e[Y+o]}return-1}const htmlDecoder=getDecoder(htmlDecodeTree);getDecoder(xmlDecodeTree);function decodeHTML(e,t=DecodingMode.Legacy){return htmlDecoder(e,t)}function _class$1(e){return Object.prototype.toString.call(e)}function isString$1(e){return _class$1(e)==="[object String]"}const _hasOwnProperty=Object.prototype.hasOwnProperty;function has(e,t){return _hasOwnProperty.call(e,t)}function assign$1(e){return Array.prototype.slice.call(arguments,1).forEach(function(n){if(n){if(typeof n!="object")throw new TypeError(n+"must be object");Object.keys(n).forEach(function(r){e[r]=n[r]})}}),e}function arrayReplaceAt(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))}function isValidEntityCode(e){return!(e>=55296&&e<=57343||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534||e>=0&&e<=8||e===11||e>=14&&e<=31||e>=127&&e<=159||e>1114111)}function fromCodePoint(e){if(e>65535){e-=65536;const t=55296+(e>>10),n=56320+(e&1023);return String.fromCharCode(t,n)}return String.fromCharCode(e)}const UNESCAPE_MD_RE=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,ENTITY_RE=/&([a-z#][a-z0-9]{1,31});/gi,UNESCAPE_ALL_RE=new RegExp(UNESCAPE_MD_RE.source+"|"+ENTITY_RE.source,"gi"),DIGITAL_ENTITY_TEST_RE=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function replaceEntityPattern(e,t){if(t.charCodeAt(0)===35&&DIGITAL_ENTITY_TEST_RE.test(t)){const r=t[1].toLowerCase()==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10);return isValidEntityCode(r)?fromCodePoint(r):e}const n=decodeHTML(e);return n!==e?n:e}function unescapeMd(e){return e.indexOf("\\")<0?e:e.replace(UNESCAPE_MD_RE,"$1")}function unescapeAll(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(UNESCAPE_ALL_RE,function(t,n,r){return n||replaceEntityPattern(t,r)})}const HTML_ESCAPE_TEST_RE=/[&<>"]/,HTML_ESCAPE_REPLACE_RE=/[&<>"]/g,HTML_REPLACEMENTS={"&":"&","<":"<",">":">",'"':"""};function replaceUnsafeChar(e){return HTML_REPLACEMENTS[e]}function escapeHtml(e){return HTML_ESCAPE_TEST_RE.test(e)?e.replace(HTML_ESCAPE_REPLACE_RE,replaceUnsafeChar):e}const REGEXP_ESCAPE_RE=/[.?*+^$[\]\\(){}|-]/g;function escapeRE$1(e){return e.replace(REGEXP_ESCAPE_RE,"\\$&")}function isSpace(e){switch(e){case 9:case 32:return!0}return!1}function isWhiteSpace(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}function isPunctChar(e){return P$1.test(e)||regex.test(e)}function isMdAsciiPunct(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function normalizeReference(e){return e=e.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(e=e.replace(/ẞ/g,"ß")),e.toLowerCase().toUpperCase()}const lib={mdurl,ucmicro},utils=Object.freeze(Object.defineProperty({__proto__:null,arrayReplaceAt,assign:assign$1,escapeHtml,escapeRE:escapeRE$1,fromCodePoint,has,isMdAsciiPunct,isPunctChar,isSpace,isString:isString$1,isValidEntityCode,isWhiteSpace,lib,normalizeReference,unescapeAll,unescapeMd},Symbol.toStringTag,{value:"Module"})),w$2=46,x$2=35,O=32,I$2=61,E=34,T$2=e=>!(e===9||e===10||e===12||e===32||e===47||e===62||e===34||e===39||e===61),K=(e,t,n)=>{let r="",o="",c=!0,h=!1;const F=[];for(let Y=t[0];Y<t[1];Y++){const V=e.charCodeAt(Y);if(V===I$2&&c){c=!1;continue}if(V===w$2&&r===""){e.charCodeAt(Y+1)===w$2?(r="css-module",Y++):r="class",c=!1;continue}if(V===x$2&&r===""){r="id",c=!1;continue}if(V===E&&o===""&&!h){h=!0;continue}if(V===E&&h){h=!1;continue}if(V===O&&!h){if(r==="")continue;F.push([r,o]),r="",o="",c=!0;continue}if(!(c&&!T$2(V))){if(c){r+=String.fromCharCode(V);continue}o+=String.fromCharCode(V)}}return r!==""&&F.push([r,o]),n.length?F.filter(([Y])=>n.some(V=>V instanceof RegExp?V.test(Y):V===Y)):F},y$4=(e,t,n,r)=>{e&&K(t,n,r).forEach(([o,c])=>{switch(o){case"class":e.attrJoin("class",c);break;case"css-module":e.attrJoin("css-module",c);break;default:e.attrPush([o,c])}})},m$3=({left:e,right:t},n)=>{if(!["start","end","only"].includes(n))throw new Error(`Invalid 'where' parameter: ${n}. Expected 'start', 'end', or 'only'.`);const r=e.length,o=t.length,c=r+1+o;return h=>{if(typeof h!="string"||h.length<c)return!1;let F,Y;if(n==="start"){if(!h.startsWith(e)||(F=r,Y=h.indexOf(t,r+1),Y===-1))return!1;const ee=Y+o;if(ee<h.length&&t.includes(h.charAt(ee)))return!1}else if(n==="end"){if(F=h.lastIndexOf(e),F===-1||(Y=h.indexOf(t,F+r+1),F+=r,Y===-1||Y+o!==h.length))return!1}else{if(!h.startsWith(e)||!h.endsWith(t))return!1;F=r,Y=h.length-o}const V=h.charCodeAt(F),X=Y-F;return(V===w$2||V===x$2?X>=2:X>=1)?[F,Y]:!1}},_$1=(e,t)=>{const n=e[t];if(n.type==="softbreak")return null;if(n.nesting===0)return n;const r=n.level,o=n.type.replace("_close","_open");for(;t>=0;){const c=e[t];if(c.type===o&&c.level===r)return c;t--}return null},M$1=(e,t)=>t>=0?e[t]:e[e.length+t],R$1=(e,t,n)=>{const r={match:!1,position:null,range:null},o=n.shift!==void 0,c=o?t+n.shift:n.position;if(o&&c<0)return r;const h=M$1(e,c);if(!h)return r;for(const F of Object.keys(n)){if(F==="shift"||F==="position")continue;if(h[F]==null)return r;if(F==="children"&&Array.isArray(n.children)){if(!h.children?.length)return r;const V=n.children,X=h.children;let ee,te=null;if(V.every(ne=>ne.position!=null)){if(ee=V.every(ne=>{const re=R$1(X,ne.position,ne);return re.match?(re.range&&(te=re.range),!0):!1}),ee){const{position:ne}=V[V.length-1];r.position=ne>=0?ne:X.length+ne,r.range=te}}else for(let ne=0;ne<X.length;ne++)if(ee=V.every(re=>{const ie=R$1(X,ne,re);return ie.match?(ie.range&&(te=ie.range),!0):!1}),ee){r.position=ne,te&&(r.range=te);break}if(ee===!1)return r;continue}const Y=n[F];switch(typeof Y){case"boolean":case"number":case"string":{if(h[F]!==Y)return r;break}case"function":{const V=Y(h[F]);if(!V)return r;Array.isArray(V)&&(r.range=V);break}default:throw new Error(`Unknown type of pattern test (key: ${F}). Test should be of type boolean, number, string or function.`)}}return r.match=!0,r},P=e=>({name:"end of block",tests:[{shift:0,type:"inline",children:[{position:-1,content:m$3(e,"end"),type:t=>t!=="code_inline"&&t!=="math_inline"}]}],transform:(t,n,r,o)=>{const c=o[0]-e.left.length,h=t[n].children[r],{content:F}=h,Y=isSpace(F.charCodeAt(c-1));let V=n+1;for(;t[V+1]?.nesting===-1;)V++;const X=_$1(t,V);y$4(X,F,o,e.allowed),h.content=F.slice(0,Y?c-1:c)}}),W=e=>({name:"code-block",tests:[{shift:0,block:!0,info:m$3(e,"end")}],transform:(t,n,r,o)=>{const c=o[0]-e.left.length,h=t[n],{info:F}=h,Y=isSpace(F.charCodeAt(c-1));y$4(h,F,o,e.allowed),h.info=F.slice(0,Y?c-1:c)}}),B=e=>({name:"end of block",tests:[{shift:-1,type:"heading_open"},{shift:0,type:"inline",children:[{position:-1,content:m$3(e,"end"),type:t=>t!=="code_inline"&&t!=="math_inline"}]}],transform:(t,n,r,o)=>{const c=o[0]-e.left.length,h=t[n].children[r],{content:F}=h,Y=isSpace(F.charCodeAt(c-1)),V=_$1(t,n+1);y$4(V,F,o,e.allowed),h.content=F.slice(0,Y?c-1:c)}}),D=e=>[{name:"inline nesting self-close",tests:[{shift:0,type:"inline",children:[{shift:-1,type:t=>t==="image"||t==="code_inline"},{shift:0,type:"text",content:m$3(e,"start")}]}],transform:(t,n,r,o)=>{const c=t[n].children,h=c[r],F=c[r-1],Y=e.right.length+o[1];y$4(F,h.content,o,e.allowed),h.content.length===Y?c.splice(r,1):h.content=h.content.slice(Y)}},{name:"inline attributes",tests:[{shift:0,type:"inline",children:[{shift:-1,nesting:-1},{shift:0,type:"text",content:m$3(e,"start")}]}],transform:(t,n,r,o)=>{const c=t[n].children,h=c[r],{content:F}=h,Y=e.right.length+o[1],V=_$1(c,r-1);y$4(V,F,o,e.allowed),h.content=F.slice(Y)}}],G=e=>[{name:"list softbreak",tests:[{shift:-2,type:"list_item_open"},{shift:0,type:"inline",children:[{position:-2,type:"softbreak"},{position:-1,type:"text",content:m$3(e,"only")}]}],transform:(t,n,r,o)=>{const c=t[n].children,h=c[r];let F=n-2;for(;t[F-1]?.type!=="ordered_list_open"&&t[F-1].type!=="bullet_list_open";)F--;y$4(t[F-1],h.content,o,e.allowed),t[n].children=c.slice(0,-2)}},{name:"list double softbreak",tests:[{shift:0,type:t=>t==="bullet_list_close"||t==="ordered_list_close"},{shift:1,type:"paragraph_open"},{shift:2,type:"inline",content:m$3(e,"only"),children:t=>t.length===1},{shift:3,type:"paragraph_close"}],transform:(t,n,r,o)=>{const c=t[n+2],h=_$1(t,n);y$4(h,c.content,o,e.allowed),t.splice(n+1,3)}},{name:"list item end",tests:[{shift:-2,type:"list_item_open"},{shift:0,type:"inline",children:[{position:-1,type:"text",content:m$3(e,"end")}]}],transform:(t,n,r,o)=>{const c=t[n].children[r],{content:h}=c,F=o[0]-e.left.length,Y=isSpace(h.charCodeAt(F-1));y$4(t[n-2],h,o,e.allowed),c.content=h.slice(0,Y?F-1:F)}}],H=e=>({name:`
|
|
44
|
+
{.a} softbreak then curly in start`,tests:[{shift:0,type:"inline",children:[{position:-2,type:"softbreak"},{position:-1,type:"text",content:m$3(e,"only")}]}],transform:(t,n,r,o)=>{const c=t[n].children,h=c[r];let F=n+1;for(;t[F+1]?.nesting===-1;)F++;y$4(_$1(t,F),h.content,o,e.allowed),t[n].children=c.slice(0,-2)}}),J=e=>({name:"horizontal rule",tests:[{shift:0,type:"paragraph_open"},{shift:1,type:"inline",children:t=>t.length===1,content:t=>{let n=0,r;const o=t.charCodeAt(n++);if(o!==45&&o!==42&&o!==95)return!1;let c=1;for(;n<t.length&&(r=t.charCodeAt(n++),r===o);)c++;return c<3?!1:(isSpace(t.charCodeAt(n-1))||n--,m$3(e,"end")(t))}},{shift:2,type:"paragraph_close"}],transform:(t,n,r,o)=>{const c=t[n],h=t[n+1],{content:F}=h;c.type="hr",c.tag="hr",c.nesting=0,y$4(c,F,o,e.allowed),c.markup=F,t.splice(n+1,2)}}),L$2=e=>[{name:"table",tests:[{shift:0,type:"table_close"},{shift:1,type:"paragraph_open"},{shift:2,type:"inline",content:m$3(e,"only")}],transform:(t,n,r,o)=>{const c=t[n+2],h=_$1(t,n);y$4(h,c.content,o,e.allowed),t.splice(n+1,3)}},{name:"table cell attributes",tests:[{shift:-1,type:t=>t==="td_open"||t==="th_open"},{shift:0,type:"inline",children:[{shift:0,type:"text",content:m$3(e,"end")}]}],transform:(t,n,r,o)=>{const c=o[0]-e.left.length,h=t[n].children[r],F=t[n-1],{content:Y}=h,V=isSpace(Y.charCodeAt(c-1));y$4(F,Y,o,e.allowed),h.content=Y.slice(0,V?c-1:c)}},{name:"table thead metadata",tests:[{shift:0,type:"tr_close"},{shift:1,type:"thead_close"},{shift:2,type:"tbody_open"}],transform:(t,n)=>{const r=_$1(t,n),o=t[n-1];let c=0,h=n-1;for(;h>0;){const Y=t[h];if(Y===r){const V=t[h-1];V.meta={...V.meta,columnCount:c};break}Y.level===o.level&&Y.type===o.type&&c++,h--}const F=t[n+2];F.meta={...F.meta,columnCount:c}}},{name:"table tbody calculate",tests:[{shift:0,type:"tbody_close",hidden:!1}],transform:(t,n)=>{let r=n-2;for(;r>=0&&t[r].type!=="tbody_open";)r--;const o=t[r].meta?.columnCount??0;if(o<2)return;const c=Array.from({length:o}).fill(0),h=[];let F=r+1;for(;F<n;){const Y=F;let V=Y+1;for(;V<n&&t[V].type!=="tr_close";)V++;const X=[];let ee=Y+1;for(;ee<V;){let re=ee+1;for(;re<V&&t[re].type!=="td_close"&&t[re].type!=="th_close";)re++;X.push([ee,re]),ee=re+1}let te=0,ne=0;for(;ne<o;){if(c[ne]>0){c[ne]--,h.push(X[te]),te++,ne++;continue}const re=t[X[te][0]],ie=Number(re.attrGet("colspan"))||1,se=Number(re.attrGet("rowspan"))||1;te++;let oe=0;for(let le=0;le<ie;le++)if(ne+le<o)if(c[ne+le]===0)oe++;else break;ie>1&&oe<ie&&re.attrSet("colspan",String(oe));for(let le=0;le<oe;le++)ne+le<o&&(c[ne+le]=se-1);const ae=oe-1;if(ae>0)for(let le=0;le<ae;le++)h.push(X[te]),te++;ne+=oe}F=V+1}h.sort((Y,V)=>V[0]-Y[0]);for(const[Y,V]of h)t.splice(Y,V-Y+1)}}],v$2=["fence","inline","table","list","heading","hr","softbreak","block"],N$1=e=>{const t=e.rule===!1?[]:Array.isArray(e.rule)?e.rule.filter(r=>v$2.includes(r)):v$2,n=[];return t.includes("fence")&&n.push(W(e)),t.includes("inline")&&n.push(...D(e)),t.includes("table")&&n.push(...L$2(e)),t.includes("list")&&n.push(...G(e)),t.includes("softbreak")&&n.push(H(e)),t.includes("hr")&&n.push(J(e)),t.includes("block")?n.push(P(e)):t.includes("heading")&&n.push(B(e)),n},U=(e,{left:t="{",right:n="}",allowed:r=[],rule:o="all"}={})=>{const c=N$1({left:t,right:n,allowed:r,rule:o}),h=({tokens:F})=>{for(let Y=0;Y<F.length;Y++)for(let V=0;V<c.length;V++){const X=c[V];let ee=null,te=null;X.tests.every(ne=>{const re=R$1(F,Y,ne);return re.position!==null&&({position:ee}=re),re.range&&(te=re.range),re.match})&&(X.transform(F,Y,ee,te),(X.name==="inline attributes"||X.name==="inline nesting self-close")&&V--)}};e.core.ruler.before("linkify","attrs",h)},z=(e,{name:t="demo",openRender:n=(Y,V)=>`<details><summary>${Y[V].info}</summary>
|
|
45
|
+
`,closeRender:r=()=>`</details>
|
|
46
|
+
`,codeRender:o,contentOpenRender:c,contentCloseRender:h,showCodeFirst:F=!1}={})=>{const Y=(V,X,ee,te)=>{const ne=V.bMarks[X]+V.tShift[X],re=V.eMarks[X],ie=V.sCount[X];if(V.src.charCodeAt(ne)!==58||re-ne<3+t.length)return!1;let se=ne+1;for(;se<=re&&V.src.charCodeAt(se)===58;)se++;const oe=se-ne;if(oe<3)return!1;se=V.skipSpaces(se);for(let De=0;De<t.length;De++){if(V.src.charCodeAt(se)!==t.charCodeAt(De))return!1;se++}const ae=se,le=V.skipSpacesBack(re,se),de=le>ae;let he=-1;if(de&&(he=V.skipSpaces(ae),he===ae))return!1;if(te)return!0;let me=X+1,Se=!1;for(;me<ee;me++){const De=V.bMarks[me]+V.tShift[me],Be=V.eMarks[me];if(De<Be&&V.sCount[me]<ie)break;if(V.sCount[me]===ie&&V.src.charCodeAt(De)===58){for(se=De+1;se<=Be&&V.src.charCodeAt(se)===58;se++);if(se-De>=oe&&(se=V.skipSpaces(se),se>=Be)){Se=!0;break}}}const xe=V.parentType,Te=V.lineMax,$e=V.blkIndent;V.parentType="demo",V.lineMax=me,V.blkIndent=ie;const Oe=":".repeat(oe),Fe=de?V.src.slice(he,le):"Demo",Re=V.push(`${t}_demo_open`,"div",1);Re.markup=Oe,Re.block=!0,Re.info=Fe,Re.map=[X,me];const Ne=()=>{const De=V.push(o?`${t}_demo_code`:"fence","code",0),Be=V.sCount[X];De.content=V.src.split(/\n\r?/).slice(X+1,me).map(Ue=>Ue.slice(Be)).filter(Ue=>!/^<!-- #include-env-(?:start: .*|end) -->$/.test(Ue)).join(`
|
|
47
|
+
`).replace(/^\n+/,"").replace(/\n*$/,`
|
|
48
|
+
`),De.map=[X,V.line],(De.meta??={}).title=Fe,o||(De.info="md")};F&&Ne();const qe=V.push(`${t}_demo_content_open`,"div",1);qe.attrPush(["class","demo-content"]),qe.block=!0,Re.map=[X,me],V.md.block.tokenize(V,X+1,me);const He=V.push(`${t}_demo_content_close`,"div",-1);He.block=!0,F||Ne();const Ke=V.push(`${t}_demo_close`,"div",-1);return Ke.markup=Oe,Ke.block=!0,Ke.info=Fe,V.parentType=xe,V.lineMax=Te,V.blkIndent=$e,V.line=me+(Se?1:0),!0};e.block.ruler.before("fence","demo",Y,{alt:["paragraph","reference","blockquote","list"]}),e.renderer.rules[`${t}_demo_open`]=n,e.renderer.rules[`${t}_demo_close`]=r,o&&(e.renderer.rules[`${t}_demo_code`]=o),c&&(e.renderer.rules[`${t}_demo_content_open`]=c),h&&(e.renderer.rules[`${t}_demo_content_close`]=h)},i$3=(e,t)=>{let n=e.bMarks[t]+e.tShift[t];const r=e.eMarks[t];if(n>=r)return-1;const o=e.src.charCodeAt(n++);if(o!==126&&o!==58)return-1;const c=e.skipSpaces(n);return n===c||c>=r?-1:n},A$2=(e,t)=>{const n=e.level+2;for(let r=t+2,o=e.tokens.length-2;r<o;r++)e.tokens[r].level===n&&e.tokens[r].type==="paragraph_open"&&(e.tokens[r+2].hidden=!0,e.tokens[r].hidden=!0,r+=2)},q=(e,t,n,r)=>{if(r)return e.ddIndent<0?!1:i$3(e,t)>=0&&e.sCount[t]<e.blkIndent;let o=t+1;if(o>=n)return!1;let c=!1;if(e.isEmpty(o)&&(o++,c=!0,o>=n)||e.sCount[o]<e.blkIndent)return!1;let h=i$3(e,o);if(h<0)return!1;const F=e.tokens.length,Y=e.push("dl_open","dl",1),V=[t,0];Y.map=V;let X=t,ee=o,te=!c;e:for(;;){let ne=!1;const re=e.push("dt_open","dt",1);re.map=[X,X];const ie=e.push("inline","",0);for(ie.map=[X,X],ie.content=e.getLines(X,X+1,e.blkIndent,!1).trim(),ie.children=[],e.push("dt_close","dt",-1);;){const se=e.push("dd_open","dd",1),oe=[o,0];se.map=oe;let ae=h;const le=e.eMarks[ee];let de=e.sCount[ee]+h-(e.bMarks[ee]+e.tShift[ee]);for(;ae<le;){const Oe=e.src.charCodeAt(ae);if(Oe===9)de+=4-de%4;else if(Oe===32)de++;else break;ae++}h=ae;const he=e.tight,me=e.ddIndent,Se=e.blkIndent,xe=e.tShift[ee],Te=e.sCount[ee],$e=e.parentType;if(e.blkIndent=e.ddIndent=e.sCount[ee]+2,e.tShift[ee]=h-e.bMarks[ee],e.sCount[ee]=de,e.tight=!0,e.parentType="dl",e.md.block.tokenize(e,ee,n,!0),(!e.tight||ne)&&(te=!1),ne=e.line-ee>1&&e.isEmpty(e.line-1),e.tShift[ee]=xe,e.sCount[ee]=Te,e.tight=he,e.parentType=$e,e.blkIndent=Se,e.ddIndent=me,e.push("dd_close","dd",-1),oe[1]=o=e.line,o>=n||e.sCount[o]<e.blkIndent)break e;if(h=i$3(e,o),h<0)break;ee=o}if(o>=n||(X=o,e.isEmpty(X)||e.sCount[X]<e.blkIndent)||(ee=X+1,ee>=n)||(e.isEmpty(ee)&&ee++,ee>=n||e.sCount[ee]<e.blkIndent)||(h=i$3(e,ee),h<0))break}return e.push("dl_close","dl",-1),V[1]=o,e.line=o,te&&A$2(e,F),!0},w$1=e=>{e.block.ruler.before("paragraph","dl",q,{alt:["paragraph","reference","blockquote"]})},u=(e,t)=>{e.attrs=e.attrs?.filter(([n])=>n!==t)??null},d$4=e=>{const t=e.attrs?.find(([n])=>n==="title")?.[1];return t?(u(e,"title"),t):e.content},k$4=(e,t={})=>{const n=r=>{for(let o=1,{length:c}=r.tokens;o<c-1;o++){const h=r.tokens[o];if(h.type!=="inline"||!h.children||h.children.length!==1&&h.children.length!==3||h.children.length===1&&h.children[0].type!=="image")continue;if(h.children.length===3){const[ee,te,ne]=h.children;if(ee.type!=="link_open"||te.type!=="image"||ne.type!=="link_close")continue}if(r.tokens[o-1].type!=="paragraph_open"||r.tokens[o+1].type!=="paragraph_close")continue;const F=r.tokens[o-1];F.type="figure_open",F.tag="figure",r.tokens[o+1].type="figure_close",r.tokens[o+1].tag="figure";const Y=h.children.length===1?h.children[0]:h.children[1],V=d$4(Y),[X]=e.parseInline(V,r.env);h.children.push(new r.Token("figcaption_open","figcaption",1)),h.children.push(...X.children??[]),h.children.push(new r.Token("figcaption_close","figcaption",-1)),t.focusable!==!1&&Y.attrPush(["tabindex","0"])}};e.core.ruler.before("linkify","figure",n)},d$3=(e,t)=>e[t].meta.subId>0?`:${e[t].meta.subId}`:"",C$1=(e,t,n,r)=>`${typeof r.docId=="string"?`-${r.docId}-`:""}${(e[t].meta.id+1).toString()}`,v$1=(e,t)=>`[${(e[t].meta.id+1).toString()}${d$3(e,t)}]`,g$2=(e,t,n,r,o)=>{const c=o.rules.footnote_anchorName(e,t,n,r,o),h=o.rules.footnote_caption(e,t,n,r,o);return`<sup class="footnote-ref"><a href="#footnote${c}">${h}</a><a class="footnote-anchor" id="footnote-ref${c}${d$3(e,t)}"></a></sup>`},I$1=(e,t,n)=>`<hr class="footnotes-sep"${n.xhtmlOut?" /":""}>
|
|
49
|
+
<section class="footnotes">
|
|
50
|
+
<ol class="footnotes-list">
|
|
51
|
+
`,T$1=()=>`</ol>
|
|
52
|
+
</section>
|
|
53
|
+
`,y$3=(e,t,n,r,o)=>`<li id="footnote${o.rules.footnote_anchorName(e,t,n,r,o)}${d$3(e,t)}" class="footnote-item">`,A$1=()=>`</li>
|
|
54
|
+
`,M=(e,t,n,r,o)=>` <a href="#footnote-ref${o.rules.footnote_anchorName(e,t,n,r,o)}${d$3(e,t)}" class="footnote-backref">↩︎</a>`,w=(e,t,n,r)=>{const o=e.bMarks[t]+e.tShift[t],c=e.eMarks[t];let h;if(o+4>c||e.src.charCodeAt(o)!==91||e.src.charCodeAt(o+1)!==94)return!1;let F=o+2;for(;F<c;){if(h=e.src.charCodeAt(F),h===32)return!1;if(h===93)break;F++}if(F===o+2||F+1>=c||e.src.charCodeAt(++F)!==58)return!1;if(r)return!0;F++,(e.env.footnotes??={}).refs??={};const Y=e.src.slice(o+2,F-2);e.env.footnotes.refs[`:${Y}`]=-1;const V=e.push("footnote_reference_open","",1);V.meta={label:Y},V.level=e.level++;const X=e.bMarks[t],ee=e.tShift[t],te=e.sCount[t],ne=e.parentType,re=F,ie=e.sCount[t]+F-(e.bMarks[t]+e.tShift[t]);let se=ie;for(;F<c;){const ae=e.src.charCodeAt(F);if(ae===9)se+=4-se%4;else if(ae===32)se++;else break;F++}e.tShift[t]=F-re,e.sCount[t]=se-ie,e.bMarks[t]=re,e.blkIndent+=4,e.parentType="footnote",e.sCount[t]<e.blkIndent&&(e.sCount[t]+=e.blkIndent),e.md.block.tokenize(e,t,n),e.parentType=ne,e.blkIndent-=4,e.tShift[t]=ee,e.sCount[t]=te,e.bMarks[t]=X;const oe=e.push("footnote_reference_close","",-1);return oe.level=--e.level,!0},S$2=(e,t)=>{const n=e.posMax,r=e.pos;if(r+2>=n||e.src.charCodeAt(r)!==94||e.src.charCodeAt(r+1)!==91)return!1;const o=e.md.helpers.parseLinkLabel(e,r+1);if(o<0)return!1;const c=r+2;if(!t){const h=((e.env.footnotes??={}).list??=[]).length,F=[];e.md.inline.parse(e.src.slice(c,o),e.md,e.env,F);const Y=e.push("footnote_ref","",0);Y.meta={id:h},e.env.footnotes.list[h]={content:e.src.slice(c,o),tokens:F}}return e.pos=o+1,e.posMax=n,!0},x$1=(e,t)=>{const n=e.pos,r=e.posMax;let o;if(n+3>r||!e.env.footnotes?.refs||e.src.charCodeAt(n)!==91||e.src.charCodeAt(n+1)!==94)return!1;let c=n+2;for(;c<r;){if(o=e.src.charCodeAt(c),o===32||o===10)return!1;if(o===93)break;c++}if(c===n+2||c>=r)return!1;c++;const h=e.src.slice(n+2,c-1);if(typeof e.env.footnotes.refs[`:${h}`]>"u")return!1;if(!t){const F=e.env.footnotes.list??=[],{refs:Y}=e.env.footnotes;let V;Y[`:${h}`]<0?(V=F.length,F[V]={label:h,count:0},Y[`:${h}`]=V):V=Y[`:${h}`];const X=F[V].count;F[V].count=F[V].count+1;const ee=e.push("footnote_ref","",0);ee.meta={id:V,subId:X,label:h}}return e.pos=c,e.posMax=r,!0},N=e=>{const t={};let n,r,o=!1;if(!e.env.footnotes?.list)return e.tokens=e.tokens.filter(F=>F.type==="footnote_reference_open"?(o=!0,!1):F.type==="footnote_reference_close"?(o=!1,!1):!o),!1;const{list:c}=e.env.footnotes;e.tokens=e.tokens.filter(F=>F.type==="footnote_reference_open"?(o=!0,n=[],r=F.meta.label,!1):F.type==="footnote_reference_close"?(o=!1,t[`:${r}`]=n,!1):(o&&n.push(F),!o));const h=new e.Token("footnote_block_open","",1);e.tokens.push(h);for(let F=0,{length:Y}=c;F<Y;F++){const V=new e.Token("footnote_open","",1);V.meta={id:F,label:c[F].label},e.tokens.push(V);let X;if(c[F].tokens){const ee=new e.Token("paragraph_open","p",1);ee.block=!0;const te=new e.Token("inline","",0);te.children=c[F].tokens,te.content=c[F].content;const ne=new e.Token("paragraph_close","p",-1);ne.block=!0,e.tokens.push(ee,te,ne)}else if(c[F].label){const ee=t[`:${c[F].label}`];ee&&e.tokens.push(...ee)}e.tokens[e.tokens.length-1].type==="paragraph_close"?X=e.tokens.pop()??null:X=null;for(let ee=0;ee<(Number(c[F].count)>0?c[F].count:1);ee++){const te=new e.Token("footnote_anchor","",0);te.meta={id:F,subId:ee,label:c[F].label},e.tokens.push(te)}X&&e.tokens.push(X),e.tokens.push(new e.Token("footnote_close","",-1))}return e.tokens.push(new e.Token("footnote_block_close","",-1)),!0},L$1=e=>{e.renderer.rules.footnote_ref=g$2,e.renderer.rules.footnote_block_open=I$1,e.renderer.rules.footnote_block_close=T$1,e.renderer.rules.footnote_open=y$3,e.renderer.rules.footnote_close=A$1,e.renderer.rules.footnote_anchor=M,e.renderer.rules.footnote_caption=v$1,e.renderer.rules.footnote_anchorName=C$1,e.block.ruler.before("reference","footnoteDef",w,{alt:["paragraph","reference"]}),e.inline.ruler.after("image","footnoteInline",S$2),e.inline.ruler.after("footnoteInline","footnote_ref",x$1),e.core.ruler.after("inline","footnoteTail",N)},a$1=e=>e.replace(/&/gu,"&").replace(/</gu,"<").replace(/>/gu,">").replace(/"/gu,""").replace(/'/gu,"'"),s=/\\([ \\!"#$%&'()*+,./:;<=>?@[\]^_`{|}~-])/gu,L=(e,t)=>{let n=!1;const r=e.posMax,o=e.pos;if(e.src.charCodeAt(o)!==58||e.src.charCodeAt(o+1)!==58)return!1;const c=e.src.charCodeAt(o+2);if(c===32||c===58||t||r-o<5)return!1;for(e.pos=o+2;e.pos<r;){if(e.src.charCodeAt(e.pos)===58&&e.src.charCodeAt(e.pos+1)===58){n=!0;break}e.md.inline.skipToken(e)}if(!n||o+2===e.pos||e.src.charCodeAt(e.pos-1)===32)return e.pos=o,!1;const h=e.src.slice(o+2,e.pos);e.posMax=e.pos,e.pos=o+2;const F=e.push("icon","i",0);return F.markup="::",F.content=h,e.pos=e.posMax+2,e.posMax=r,!0},b$2=(e,{render:t=n=>`<i class="${n}"></i>`}={})=>{e.inline.ruler.before("link","icon",L),e.renderer.rules.icon=(n,r,o,c)=>t(n[r].content,c)},d$2=e=>{const t=e.renderer.rules.image;e.renderer.rules.image=(n,r,o,c,h)=>(n[r].attrSet("loading","lazy"),t(n,r,o,c,h))},g$1=(e,{light:t=["light"],dark:n=["dark"]}={})=>{const r=e.renderer.rules.image;e.renderer.rules.image=(o,c,h,F,Y)=>{const V=o[c],X=V.attrGet("src");return X&&(t.some(ee=>X.endsWith(`#${ee}`))?(V.attrSet("data-mode","lightmode-only"),V.attrSet("src",X.replace(/#.*?$/,""))):n.some(ee=>X.endsWith(`#${ee}`))&&(V.attrSet("data-mode","darkmode-only"),V.attrSet("src",X.replace(/#.*?$/,"")))),r(o,c,h,F,Y)}},k$3=e=>e>=48&&e<=57,R=e=>{const t=e.length;let n=e.lastIndexOf("=");if(n===-1||n+3>t||n!==0&&!isSpace(e.charCodeAt(n-1)))return null;const r=e.substring(0,n++).trimEnd();let o=null,c=null;if(k$3(e.charCodeAt(n))){const h=n;for(;n<t&&k$3(e.charCodeAt(n));)n++;if(o=e.substring(h,n),e.charCodeAt(n++)!==120)return null}else if(e.charCodeAt(n++)!==120)return null;if(n<t){const h=n;for(;n<t&&k$3(e.charCodeAt(n));)n++;n>h&&(c=e.substring(h,n))}for(;n<t;){if(!isSpace(e.charCodeAt(n)))return null;n++}return{label:r,width:o,height:c}},v=(e,t)=>{const n=e.env,r=e.pos,o=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91)return!1;const c=e.pos+2,h=e.md.helpers.parseLinkLabel(e,e.pos+1,!1);if(h<0)return!1;const F=e.src.slice(c,h),Y=R(F);if(!Y)return!1;const{label:V,width:X,height:ee}=Y;let te=h+1,ne="",re="";if(te<o&&e.src.charCodeAt(te)===40){for(te++;te<o&&isSpace(e.src.charCodeAt(te));)te++;if(te>=o)return!1;let ie;ie=e.md.helpers.parseLinkDestination(e.src,te,e.posMax),ie.ok&&(ne=e.md.normalizeLink(ie.str),e.md.validateLink(ne)?te=ie.pos:ne="");const se=te;for(;te<o&&isSpace(e.src.charCodeAt(te));te++);if(ie=e.md.helpers.parseLinkTitle(e.src,te,e.posMax),te<o&&se!==te&&ie.ok)for(re=ie.str,te=ie.pos;te<o&&isSpace(e.src.charCodeAt(te));te++);else re="";if(te>=o||e.src.charCodeAt(te)!==41)return e.pos=r,!1;te++}else{let ie="";if(typeof n.references>"u")return!1;for(;te<o&&isSpace(e.src.charCodeAt(te));te++);if(te<o&&e.src.charCodeAt(te)===91){const oe=te+1;te=e.md.helpers.parseLinkLabel(e,te),te>=0?ie=e.src.slice(oe,te++):te=h+1}else te=h+1;ie||(ie=V);const se=n.references[e.md.utils.normalizeReference(ie)];if(!se)return e.pos=r,!1;ne=se.href,re=se.title??""}if(!t){const ie=e.push("image","img",0),se=[["src",ne],["alt",""]];re&&se.push(["title",re]),X&&se.push(["width",X]),ee&&se.push(["height",ee]);const oe=[];e.md.inline.parse(V,e.md,e.env,oe),ie.attrs=se,ie.children=oe,ie.content=V}return e.pos=te,e.posMax=o,!0},y$2=e=>{e.inline.ruler.before("image","img-size",v)},p=(e,t)=>{const n=e.pos,r=e.src.charCodeAt(n);if(t||r!==43)return!1;const o=e.scanDelims(e.pos,!0);let{length:c}=o;if(c<2)return!1;const h=String.fromCharCode(r);if(c%2){const F=e.push("text","",0);F.content=h,c--}for(let F=0;F<c;F+=2){const Y=e.push("text","",0);Y.content=h+h,(o.can_open||o.can_close)&&e.delimiters.push({marker:43,length:0,token:e.tokens.length-1,end:-1,open:o.can_open,close:o.can_close})}return e.pos+=o.length,!0},i$2=(e,t)=>{let n;const r=[],o=t.length;for(let c=0;c<o;c++){const h=t[c];if(h.marker===43&&h.end!==-1){const F=t[h.end];n=e.tokens[h.token],n.type="ins_open",n.tag="ins",n.nesting=1,n.markup="++",n.content="",n=e.tokens[F.token],n.type="ins_close",n.tag="ins",n.nesting=-1,n.markup="++",n.content="",e.tokens[F.token-1].type==="text"&&e.tokens[F.token-1].content==="+"&&r.push(F.token-1)}}for(;r.length;){const c=r.pop();let h=c+1;for(;h<e.tokens.length&&e.tokens[h].type==="ins_close";)h++;h--,c!==h&&(n=e.tokens[h],e.tokens[h]=e.tokens[c],e.tokens[c]=n)}},a=e=>{e.inline.ruler.before("emphasis","ins",p),e.inline.ruler2.before("emphasis","ins",t=>{i$2(t,t.delimiters);for(const n of t.tokens_meta)n?.delimiters&&i$2(t,n.delimiters);return!0})},d$1=(e,t,n=0)=>{let r=0,o=t-1;for(;o>=n&&e.charCodeAt(o)===92;)r++,o--;return r},k$2=(e,t,n)=>{const r=e.src.charCodeAt(t-1),o=e.src.charCodeAt(t+1);return{canOpen:n||!isSpace(o),canClose:!(o>=48&&o<=57)&&(n||!isSpace(r))}},b$1=e=>(t,n)=>{if(t.src[t.pos]!=="$")return!1;let r=k$2(t,t.pos,e);if(!r.canOpen)return n||(t.pending+="$"),t.pos++,!0;const o=t.pos+1;let c=o,h;const F=t.src.lastIndexOf("$");if(F===-1)return!1;for(;(c=t.src.indexOf("$",c))<=F;){for(h=c-1;t.src.charCodeAt(h)===92;)h--;if((c-h)%2===1)break;c++}if(c===-1)return n||(t.pending+="$"),t.pos=o,!0;if(c-o===0)return n||(t.pending+="$$"),t.pos=o+1,!0;if(r=k$2(t,c,e),!r.canClose)return n||(t.pending+="$"),t.pos=o,!0;if(!n){const Y=t.push("math_inline","math",0);Y.markup="$",Y.content=t.src.slice(o,c)}return t.pos=c+1,!0},C=()=>(e,t)=>{const n=e.pos;if(e.src.charCodeAt(n)!==92||e.src.charCodeAt(n+1)!==40)return!1;let r=n+2,o=!1;const c=e.src.length;for(;r<c-1;){if(e.src.charCodeAt(r)===92&&e.src.charCodeAt(r+1)===41){if(d$1(e.src,n)%2===1)return!1;if(d$1(e.src,r,n+2)%2===0){o=!0;break}}r++}if(!o)return!1;if(!t){const h=e.push("math_inline","math",0);h.markup="\\(",h.content=e.src.slice(n+2,r)}return e.pos=r+2,!0},A=(e,t,n,r)=>{const o=e.bMarks[t]+e.tShift[t];let c=e.eMarks[t];if(o+2>c||e.src.charCodeAt(o)!==36||e.src.charCodeAt(o+1)!==36)return!1;if(r)return!0;let h=e.skipSpacesBack(c,o),F=o+2,Y,V=!1;h-F>=2&&e.src.charCodeAt(h-1)===36&&e.src.charCodeAt(h-2)===36?(Y=e.src.slice(F,h-2),V=!0):Y=e.src.slice(F,c);let X=t,ee="";for(;!V&&(X++,!(X>=n||(F=e.bMarks[X]+e.tShift[X],c=e.eMarks[X],F<c&&e.tShift[X]<e.blkIndent)));)h=e.skipSpacesBack(c,F),h-F>=2&&e.src.charCodeAt(h-1)===36&&e.src.charCodeAt(h-2)===36&&(ee=e.src.slice(F,h-2),V=!0);e.line=V?X+1:X;const te=e.push("math_block","math",0);return te.block=!0,te.content=(Y?`${Y}
|
|
55
|
+
`:"")+e.getLines(t+1,X,e.tShift[t],!0)+(ee?`${ee}
|
|
56
|
+
`:""),te.map=[t,e.line],te.markup="$$",!0},$$1=()=>(e,t,n,r)=>{const o=e.bMarks[t]+e.tShift[t];let c=e.eMarks[t];if(o+2>c||e.src.charCodeAt(o)!==92||e.src.charCodeAt(o+1)!==91)return!1;if(r)return!0;let h=e.skipSpacesBack(c,o),F=o+2,Y,V=!1;h-F>=2&&e.src.charCodeAt(h-1)===93&&e.src.charCodeAt(h-2)===92?(Y=e.src.slice(F,h-2),V=!0):Y=e.src.slice(F,c);let X=t,ee="";for(;!V&&(X++,!(X>=n||(F=e.bMarks[X]+e.tShift[X],c=e.eMarks[X],F<c&&e.tShift[X]<e.blkIndent)));)h=e.skipSpacesBack(c,F),h-F>=2&&e.src.charCodeAt(h-1)===93&&e.src.charCodeAt(h-2)===92&&(ee=e.src.slice(F,h-2).trimEnd(),V=!0);if(!V)return!1;e.line=X+1;const te=e.push("math_block","math",0);return te.block=!0,te.content=(Y?`${Y}
|
|
57
|
+
`:"")+e.getLines(t+1,X,e.tShift[t],!0)+(ee?`${ee}
|
|
58
|
+
`:""),te.map=[t,e.line],te.markup="\\[",!0},m$2={alt:["paragraph","reference","blockquote","list"]},S$1=(e,t)=>{if(typeof t?.render!="function")throw new Error('[@mdit/plugin-tex]: "render" option should be a function');const{allowInlineWithSpace:n=!1,mathFence:r=!1,delimiters:o="dollars",render:c}=t;if(r){const h=e.renderer.rules.fence;e.renderer.rules.fence=(...F)=>{const[Y,V,,X]=F,{content:ee,info:te}=Y[V];return te.trim()==="math"?c(ee,!0,X):h(...F)}}(o==="dollars"||o==="all")&&(e.inline.ruler.after("escape","math_inline_dollar",b$1(n)),e.block.ruler.after("blockquote","math_block_dollar",A,m$2)),(o==="brackets"||o==="all")&&(e.inline.ruler.before("escape","math_inline_bracket",C()),e.block.ruler.after("blockquote","math_block_bracket",$$1(),m$2)),e.renderer.rules.math_inline=(h,F,Y,V)=>c(h[F].content,!1,V),e.renderer.rules.math_block=(h,F,Y,V)=>c(h[F].content,!0,V)},y$1=(e,t,n)=>{let r;try{r=renderToString(e,{...t,displayMode:!1})}catch(o){if(o instanceof ParseError)console.error(o),r=`<span class='katex-error' title='${a$1(o.toString())}'>${a$1(e)}</span>`;else throw o}return n?.(r,!1)??r},S=(e,t,n)=>{let r;try{r=`<p class='katex-block'>${renderToString(e,{...t,displayMode:!0})}</p>
|
|
59
|
+
`}catch(o){if(o instanceof ParseError)console.error(o),r=`<p class='katex-block katex-error' title='${a$1(o.toString())}'>${a$1(e)}</p>
|
|
60
|
+
`;else throw o}return n?.(r,!0)??r},$=(e,t={})=>{const{allowInlineWithSpace:n=!1,delimiters:r,mathFence:o,logger:c=V=>V==="newLineInDisplayMode"?"ignore":"warn",macros:h={},transformer:F,...Y}=t;e.use(S$1,{allowInlineWithSpace:n,delimiters:r,mathFence:o,render:(V,X,ee)=>{const te={strict:(ne,re,ie)=>c(ne,re,ie,ee)??"ignore",macros:h,throwOnError:!1,...Y};return X?S(V,te,F):y$1(V,te,F)}})},i$1=(e,t)=>{const n=e.pos,r=e.src.charCodeAt(n);if(t||r!==61)return!1;const o=e.scanDelims(e.pos,!0);let{length:c}=o;if(c<2)return!1;const h=String.fromCharCode(r);if(c%2){const F=e.push("text","",0);F.content=h,c--}for(let F=0;F<c;F+=2){const Y=e.push("text","",0);Y.content=h+h,(o.can_open||o.can_close)&&e.delimiters.push({marker:61,length:0,token:e.tokens.length-1,end:-1,open:o.can_open,close:o.can_close})}return e.pos+=o.length,!0},l$2=(e,t)=>{let n;const r=[],o=t.length;for(let c=0;c<o;c++){const h=t[c];if(h.marker===61&&h.end!==-1){const F=t[h.end];n=e.tokens[h.token],n.type="mark_open",n.tag="mark",n.nesting=1,n.markup="==",n.content="",n=e.tokens[F.token],n.type="mark_close",n.tag="mark",n.nesting=-1,n.markup="==",n.content="",e.tokens[F.token-1].type==="text"&&e.tokens[F.token-1].content==="="&&r.push(F.token-1)}}for(;r.length;){const c=r.pop();let h=c+1;for(;h<e.tokens.length&&e.tokens[h].type==="mark_close";)h++;h--,c!==h&&(n=e.tokens[h],e.tokens[h]=e.tokens[c],e.tokens[c]=n)}},m$1=e=>{e.inline.ruler.before("emphasis","mark",i$1),e.inline.ruler2.before("emphasis","mark",t=>{l$2(t,t.delimiters);for(const n of t.tokens_meta)n?.delimiters&&l$2(t,n.delimiters);return!0})},b=(e,t)=>{let n;const r=e.pos,o=e.posMax;if(t||e.src.charCodeAt(r)!==123||r+4>=o)return!1;e.pos=r+1;let c=0,h=0;for(;e.pos<o;){if(c){if(e.src.charCodeAt(e.pos)===125&&e.src.charCodeAt(e.pos-1)!==92){h=e.pos;break}}else e.src.charCodeAt(e.pos)===58&&e.src.charCodeAt(e.pos-1)!==92&&(c=e.pos);e.pos++}if(!h||r+1===e.pos)return e.pos=r,!1;e.posMax=e.pos,e.pos=r+1;const F=e.push("ruby_open","ruby",1);F.markup="{";const Y=e.src.slice(r+1,c),V=e.src.slice(c+1,h),X=Y.split(""),ee=V.split("|");X.length===ee.length?X.forEach((ne,re)=>{e.md.inline.parse(ne,e.md,e.env,n=[]),e.tokens.push(...n),e.push("rt_open","rt",1),e.md.inline.parse(ee[re],e.md,e.env,n=[]),e.tokens.push(...n),e.push("rt_close","rt",-1)}):(e.md.inline.parse(Y,e.md,e.env,n=[]),e.tokens.push(...n),e.push("rt_open","rt",1),e.md.inline.parse(V,e.md,e.env,n=[]),e.tokens.push(...n),e.push("rt_close","rt",-1));const te=e.push("ruby_close","ruby",-1);return te.markup="}",e.pos=e.posMax+1,e.posMax=o,!0},k$1=e=>{e.inline.ruler.before("text","ruby",b)},k=(e,t)=>{const n=e.pos,r=e.src.charCodeAt(n);if(t||r!==33)return!1;const o=e.scanDelims(e.pos,!0);let{length:c}=o;if(c<2)return!1;const h=String.fromCharCode(r);if(c%2){const F=e.push("text","",0);F.content=h,c--}for(let F=0;F<c;F+=2){const Y=e.push("text","",0);Y.content=h+h,(o.can_open||o.can_close)&&e.delimiters.push({marker:33,length:0,token:e.tokens.length-1,end:-1,open:o.can_open,close:o.can_close})}return e.pos+=o.length,!0},i=(e,t,{tag:n,attrs:r})=>{let o;const c=[],h=t.length;for(let F=0;F<h;F++){const Y=t[F];if(Y.marker===33&&Y.end!==-1){const V=t[Y.end];o=e.tokens[Y.token],o.type="spoiler_open",o.tag=n,o.nesting=1,o.markup="!!",o.attrs=r,o.content="",o=e.tokens[V.token],o.type="spoiler_close",o.tag=n,o.nesting=-1,o.markup="!!",o.content="",e.tokens[V.token-1].type==="text"&&e.tokens[V.token-1].content==="!"&&c.push(V.token-1)}}for(;c.length;){const F=c.pop();let Y=F+1;for(;Y<e.tokens.length&&e.tokens[Y].type==="spoiler_close";)Y++;Y--,F!==Y&&(o=e.tokens[Y],e.tokens[Y]=e.tokens[F],e.tokens[F]=o)}},g=(e,{tag:t="span",attrs:n=[["class","spoiler"],["tabindex","-1"]]}={})=>{e.inline.ruler.before("emphasis","spoiler",k),e.inline.ruler2.before("emphasis","spoiler",r=>{i(r,r.delimiters,{tag:t,attrs:n});for(const o of r.tokens_meta)o?.delimiters&&i(r,o.delimiters,{tag:t,attrs:n});return!0})},l$1=(e,t)=>{const n=e.posMax,r=e.pos;if(e.src.charCodeAt(r)!==126||t||r+2>=n)return!1;e.pos=r+1;let o=!1;for(;e.pos<n;){if(e.src.charCodeAt(e.pos)===126){o=!0;break}e.md.inline.skipToken(e)}if(!o||r+1===e.pos)return e.pos=r,!1;const c=e.src.slice(r+1,e.pos);if(/(^|[^\\])(\\\\)*\s/u.exec(c))return e.pos=r,!1;e.posMax=e.pos,e.pos=r+1;const h=e.push("sub_open","sub",1);h.markup="~";const F=e.push("text","",0);F.content=c.replace(s,"$1");const Y=e.push("sub_close","sub",-1);return Y.markup="~",e.pos=e.posMax+1,e.posMax=n,!0},f$2=e=>{e.inline.ruler.after("emphasis","sub",l$1)},l=(e,t)=>{const n=e.posMax,r=e.pos;if(e.src.charCodeAt(r)!==94||t||r+2>=n)return!1;e.pos=r+1;let o=!1;for(;e.pos<n;){if(e.src.charCodeAt(e.pos)===94){o=!0;break}e.md.inline.skipToken(e)}if(!o||r+1===e.pos)return e.pos=r,!1;const c=e.src.slice(r+1,e.pos);if(/(^|[^\\])(\\\\)*\s/u.exec(c))return e.pos=r,!1;e.posMax=e.pos,e.pos=r+1;const h=e.push("sup_open","sup",1);h.markup="^";const F=e.push("text","",0);F.content=c.replace(s,"$1");const Y=e.push("sup_close","sup",-1);return Y.markup="^",e.pos=e.posMax+1,e.posMax=n,!0},f$1=e=>{e.inline.ruler.after("emphasis","sup",l)},d=(e,t,n)=>{const r=e.attrIndex(t),o=[t,n];r<0?e.attrPush(o):e.attrs[r]=o},f=(e,t)=>{const n=e[t].level-1;for(let r=t-1;r>=0;r--)if(e[r].level===n)return r;return-1},x=e=>e?.type==="inline",T=e=>e?.type==="paragraph_open",m=e=>e?.type==="list_item_open",_=e=>/^\[[xX \u00A0]\][ \u00A0]/.test(e.content),I=(e,t)=>x(e[t])&&T(e[t-1])&&m(e[t-2])&&_(e[t]),y=(e,{disabled:t=!0,label:n=!0,containerClass:r="task-list-container",itemClass:o="task-list-item",checkboxClass:c="task-list-item-checkbox",labelClass:h="task-list-item-label"}={})=>{const F=Y=>{const V=Y.tokens;Y.env.tasklistId||=0;for(let X=2;X<V.length;X++)if(I(V,X)){const ee=V[X];ee.children??=[],ee.children[0].content=ee.children[0].content.slice(3);const te=`task-item-${Y.env.tasklistId++}`;if(n){const re=new Y.Token("label_open","label",1);re.attrs=[["class",h],["for",te]],ee.children.unshift(re),ee.children.push(new Y.Token("label_close","label",-1))}const ne=new Y.Token("checkbox_input","input",0);ne.attrs=[["type","checkbox"],["class",c],["id",te]],/^\[[xX]\][ \u00A0]/.test(ee.content)&&ne.attrs.push(["checked","checked"]),t&&ne.attrs.push(["disabled","disabled"]),ee.children.unshift(ne),d(V[X-2],"class",o),d(V[f(V,X-2)],"class",r)}return!0};e.core.ruler.after("inline","task_list",F)},ElementTransform=(e,t)=>{if(!t||!t.transform)throw new Error("The `transform` option is required");e.core.ruler.push("token_transform",n=>{const r=t.transform===void 0?function(){}:t.transform;return n.tokens.forEach(o=>{o.children&&o.children.length&&o.children.forEach(c=>{r(c,n,n.env)}),r(o,n,n.env)}),!1})};function parseLinkLabel(e,t,n){let r,o,c,h;const F=e.posMax,Y=e.pos;for(e.pos=t+1,r=1;e.pos<F;){if(c=e.src.charCodeAt(e.pos),c===93&&(r--,r===0)){o=!0;break}if(h=e.pos,e.md.inline.skipToken(e),c===91){if(h===e.pos-1)r++;else if(n)return e.pos=Y,-1}}let V=-1;return o&&(V=e.pos),e.pos=Y,V}function parseLinkDestination(e,t,n){let r,o=t;const c={ok:!1,pos:0,str:""};if(e.charCodeAt(o)===60){for(o++;o<n;){if(r=e.charCodeAt(o),r===10||r===60)return c;if(r===62)return c.pos=o+1,c.str=unescapeAll(e.slice(t+1,o)),c.ok=!0,c;if(r===92&&o+1<n){o+=2;continue}o++}return c}let h=0;for(;o<n&&(r=e.charCodeAt(o),!(r===32||r<32||r===127));){if(r===92&&o+1<n){if(e.charCodeAt(o+1)===32)break;o+=2;continue}if(r===40&&(h++,h>32))return c;if(r===41){if(h===0)break;h--}o++}return t===o||h!==0||(c.str=unescapeAll(e.slice(t,o)),c.pos=o,c.ok=!0),c}function parseLinkTitle(e,t,n,r){let o,c=t;const h={ok:!1,can_continue:!1,pos:0,str:"",marker:0};if(r)h.str=r.str,h.marker=r.marker;else{if(c>=n)return h;let F=e.charCodeAt(c);if(F!==34&&F!==39&&F!==40)return h;t++,c++,F===40&&(F=41),h.marker=F}for(;c<n;){if(o=e.charCodeAt(c),o===h.marker)return h.pos=c+1,h.str+=unescapeAll(e.slice(t,c)),h.ok=!0,h;if(o===40&&h.marker===41)return h;o===92&&c+1<n&&c++,c++}return h.can_continue=!0,h.str+=unescapeAll(e.slice(t,c)),h}const helpers=Object.freeze(Object.defineProperty({__proto__:null,parseLinkDestination,parseLinkLabel,parseLinkTitle},Symbol.toStringTag,{value:"Module"})),default_rules={};default_rules.code_inline=function(e,t,n,r,o){const c=e[t];return"<code"+o.renderAttrs(c)+">"+escapeHtml(c.content)+"</code>"};default_rules.code_block=function(e,t,n,r,o){const c=e[t];return"<pre"+o.renderAttrs(c)+"><code>"+escapeHtml(e[t].content)+`</code></pre>
|
|
61
|
+
`};default_rules.fence=function(e,t,n,r,o){const c=e[t],h=c.info?unescapeAll(c.info).trim():"";let F="",Y="";if(h){const X=h.split(/(\s+)/g);F=X[0],Y=X.slice(2).join("")}let V;if(n.highlight?V=n.highlight(c.content,F,Y)||escapeHtml(c.content):V=escapeHtml(c.content),V.indexOf("<pre")===0)return V+`
|
|
62
|
+
`;if(h){const X=c.attrIndex("class"),ee=c.attrs?c.attrs.slice():[];X<0?ee.push(["class",n.langPrefix+F]):(ee[X]=ee[X].slice(),ee[X][1]+=" "+n.langPrefix+F);const te={attrs:ee};return`<pre><code${o.renderAttrs(te)}>${V}</code></pre>
|
|
63
|
+
`}return`<pre><code${o.renderAttrs(c)}>${V}</code></pre>
|
|
64
|
+
`};default_rules.image=function(e,t,n,r,o){const c=e[t];return c.attrs[c.attrIndex("alt")][1]=o.renderInlineAsText(c.children,n,r),o.renderToken(e,t,n)};default_rules.hardbreak=function(e,t,n){return n.xhtmlOut?`<br />
|
|
65
|
+
`:`<br>
|
|
66
|
+
`};default_rules.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?`<br />
|
|
67
|
+
`:`<br>
|
|
68
|
+
`:`
|
|
69
|
+
`};default_rules.text=function(e,t){return escapeHtml(e[t].content)};default_rules.html_block=function(e,t){return e[t].content};default_rules.html_inline=function(e,t){return e[t].content};function Renderer(){this.rules=assign$1({},default_rules)}Renderer.prototype.renderAttrs=function e(t){let n,r,o;if(!t.attrs)return"";for(o="",n=0,r=t.attrs.length;n<r;n++)o+=" "+escapeHtml(t.attrs[n][0])+'="'+escapeHtml(t.attrs[n][1])+'"';return o};Renderer.prototype.renderToken=function e(t,n,r){const o=t[n];let c="";if(o.hidden)return"";o.block&&o.nesting!==-1&&n&&t[n-1].hidden&&(c+=`
|
|
70
|
+
`),c+=(o.nesting===-1?"</":"<")+o.tag,c+=this.renderAttrs(o),o.nesting===0&&r.xhtmlOut&&(c+=" /");let h=!1;if(o.block&&(h=!0,o.nesting===1&&n+1<t.length)){const F=t[n+1];(F.type==="inline"||F.hidden||F.nesting===-1&&F.tag===o.tag)&&(h=!1)}return c+=h?`>
|
|
71
|
+
`:">",c};Renderer.prototype.renderInline=function(e,t,n){let r="";const o=this.rules;for(let c=0,h=e.length;c<h;c++){const F=e[c].type;typeof o[F]<"u"?r+=o[F](e,c,t,n,this):r+=this.renderToken(e,c,t)}return r};Renderer.prototype.renderInlineAsText=function(e,t,n){let r="";for(let o=0,c=e.length;o<c;o++)switch(e[o].type){case"text":r+=e[o].content;break;case"image":r+=this.renderInlineAsText(e[o].children,t,n);break;case"html_inline":case"html_block":r+=e[o].content;break;case"softbreak":case"hardbreak":r+=`
|
|
72
|
+
`;break}return r};Renderer.prototype.render=function(e,t,n){let r="";const o=this.rules;for(let c=0,h=e.length;c<h;c++){const F=e[c].type;F==="inline"?r+=this.renderInline(e[c].children,t,n):typeof o[F]<"u"?r+=o[F](e,c,t,n,this):r+=this.renderToken(e,c,t,n)}return r};function Ruler(){this.__rules__=[],this.__cache__=null}Ruler.prototype.__find__=function(e){for(let t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===e)return t;return-1};Ruler.prototype.__compile__=function(){const e=this,t=[""];e.__rules__.forEach(function(n){n.enabled&&n.alt.forEach(function(r){t.indexOf(r)<0&&t.push(r)})}),e.__cache__={},t.forEach(function(n){e.__cache__[n]=[],e.__rules__.forEach(function(r){r.enabled&&(n&&r.alt.indexOf(n)<0||e.__cache__[n].push(r.fn))})})};Ruler.prototype.at=function(e,t,n){const r=this.__find__(e),o=n||{};if(r===-1)throw new Error("Parser rule not found: "+e);this.__rules__[r].fn=t,this.__rules__[r].alt=o.alt||[],this.__cache__=null};Ruler.prototype.before=function(e,t,n,r){const o=this.__find__(e),c=r||{};if(o===-1)throw new Error("Parser rule not found: "+e);this.__rules__.splice(o,0,{name:t,enabled:!0,fn:n,alt:c.alt||[]}),this.__cache__=null};Ruler.prototype.after=function(e,t,n,r){const o=this.__find__(e),c=r||{};if(o===-1)throw new Error("Parser rule not found: "+e);this.__rules__.splice(o+1,0,{name:t,enabled:!0,fn:n,alt:c.alt||[]}),this.__cache__=null};Ruler.prototype.push=function(e,t,n){const r=n||{};this.__rules__.push({name:e,enabled:!0,fn:t,alt:r.alt||[]}),this.__cache__=null};Ruler.prototype.enable=function(e,t){Array.isArray(e)||(e=[e]);const n=[];return e.forEach(function(r){const o=this.__find__(r);if(o<0){if(t)return;throw new Error("Rules manager: invalid rule name "+r)}this.__rules__[o].enabled=!0,n.push(r)},this),this.__cache__=null,n};Ruler.prototype.enableOnly=function(e,t){Array.isArray(e)||(e=[e]),this.__rules__.forEach(function(n){n.enabled=!1}),this.enable(e,t)};Ruler.prototype.disable=function(e,t){Array.isArray(e)||(e=[e]);const n=[];return e.forEach(function(r){const o=this.__find__(r);if(o<0){if(t)return;throw new Error("Rules manager: invalid rule name "+r)}this.__rules__[o].enabled=!1,n.push(r)},this),this.__cache__=null,n};Ruler.prototype.getRules=function(e){return this.__cache__===null&&this.__compile__(),this.__cache__[e]||[]};function Token(e,t,n){this.type=e,this.tag=t,this.attrs=null,this.map=null,this.nesting=n,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}Token.prototype.attrIndex=function e(t){if(!this.attrs)return-1;const n=this.attrs;for(let r=0,o=n.length;r<o;r++)if(n[r][0]===t)return r;return-1};Token.prototype.attrPush=function e(t){this.attrs?this.attrs.push(t):this.attrs=[t]};Token.prototype.attrSet=function e(t,n){const r=this.attrIndex(t),o=[t,n];r<0?this.attrPush(o):this.attrs[r]=o};Token.prototype.attrGet=function e(t){const n=this.attrIndex(t);let r=null;return n>=0&&(r=this.attrs[n][1]),r};Token.prototype.attrJoin=function e(t,n){const r=this.attrIndex(t);r<0?this.attrPush([t,n]):this.attrs[r][1]=this.attrs[r][1]+" "+n};function StateCore(e,t,n){this.src=e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}StateCore.prototype.Token=Token;const NEWLINES_RE=/\r\n?|\n/g,NULL_RE=/\0/g;function normalize(e){let t;t=e.src.replace(NEWLINES_RE,`
|
|
73
|
+
`),t=t.replace(NULL_RE,"�"),e.src=t}function block(e){let t;e.inlineMode?(t=new e.Token("inline","",0),t.content=e.src,t.map=[0,1],t.children=[],e.tokens.push(t)):e.md.block.parse(e.src,e.md,e.env,e.tokens)}function inline(e){const t=e.tokens;for(let n=0,r=t.length;n<r;n++){const o=t[n];o.type==="inline"&&e.md.inline.parse(o.content,e.md,e.env,o.children)}}function isLinkOpen$1(e){return/^<a[>\s]/i.test(e)}function isLinkClose$1(e){return/^<\/a\s*>/i.test(e)}function linkify$1(e){const t=e.tokens;if(e.md.options.linkify)for(let n=0,r=t.length;n<r;n++){if(t[n].type!=="inline"||!e.md.linkify.pretest(t[n].content))continue;let o=t[n].children,c=0;for(let h=o.length-1;h>=0;h--){const F=o[h];if(F.type==="link_close"){for(h--;o[h].level!==F.level&&o[h].type!=="link_open";)h--;continue}if(F.type==="html_inline"&&(isLinkOpen$1(F.content)&&c>0&&c--,isLinkClose$1(F.content)&&c++),!(c>0)&&F.type==="text"&&e.md.linkify.test(F.content)){const Y=F.content;let V=e.md.linkify.match(Y);const X=[];let ee=F.level,te=0;V.length>0&&V[0].index===0&&h>0&&o[h-1].type==="text_special"&&(V=V.slice(1));for(let ne=0;ne<V.length;ne++){const re=V[ne].url,ie=e.md.normalizeLink(re);if(!e.md.validateLink(ie))continue;let se=V[ne].text;V[ne].schema?V[ne].schema==="mailto:"&&!/^mailto:/i.test(se)?se=e.md.normalizeLinkText("mailto:"+se).replace(/^mailto:/,""):se=e.md.normalizeLinkText(se):se=e.md.normalizeLinkText("http://"+se).replace(/^http:\/\//,"");const oe=V[ne].index;if(oe>te){const he=new e.Token("text","",0);he.content=Y.slice(te,oe),he.level=ee,X.push(he)}const ae=new e.Token("link_open","a",1);ae.attrs=[["href",ie]],ae.level=ee++,ae.markup="linkify",ae.info="auto",X.push(ae);const le=new e.Token("text","",0);le.content=se,le.level=ee,X.push(le);const de=new e.Token("link_close","a",-1);de.level=--ee,de.markup="linkify",de.info="auto",X.push(de),te=V[ne].lastIndex}if(te<Y.length){const ne=new e.Token("text","",0);ne.content=Y.slice(te),ne.level=ee,X.push(ne)}t[n].children=o=arrayReplaceAt(o,h,X)}}}}const RARE_RE=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,SCOPED_ABBR_TEST_RE=/\((c|tm|r)\)/i,SCOPED_ABBR_RE=/\((c|tm|r)\)/ig,SCOPED_ABBR={c:"©",r:"®",tm:"™"};function replaceFn(e,t){return SCOPED_ABBR[t.toLowerCase()]}function replace_scoped(e){let t=0;for(let n=e.length-1;n>=0;n--){const r=e[n];r.type==="text"&&!t&&(r.content=r.content.replace(SCOPED_ABBR_RE,replaceFn)),r.type==="link_open"&&r.info==="auto"&&t--,r.type==="link_close"&&r.info==="auto"&&t++}}function replace_rare(e){let t=0;for(let n=e.length-1;n>=0;n--){const r=e[n];r.type==="text"&&!t&&RARE_RE.test(r.content)&&(r.content=r.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1—").replace(/(^|\s)--(?=\s|$)/mg,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1–")),r.type==="link_open"&&r.info==="auto"&&t--,r.type==="link_close"&&r.info==="auto"&&t++}}function replace(e){let t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)e.tokens[t].type==="inline"&&(SCOPED_ABBR_TEST_RE.test(e.tokens[t].content)&&replace_scoped(e.tokens[t].children),RARE_RE.test(e.tokens[t].content)&&replace_rare(e.tokens[t].children))}const QUOTE_TEST_RE=/['"]/,QUOTE_RE=/['"]/g,APOSTROPHE="’";function replaceAt(e,t,n){return e.slice(0,t)+n+e.slice(t+1)}function process_inlines(e,t){let n;const r=[];for(let o=0;o<e.length;o++){const c=e[o],h=e[o].level;for(n=r.length-1;n>=0&&!(r[n].level<=h);n--);if(r.length=n+1,c.type!=="text")continue;let F=c.content,Y=0,V=F.length;e:for(;Y<V;){QUOTE_RE.lastIndex=Y;const X=QUOTE_RE.exec(F);if(!X)break;let ee=!0,te=!0;Y=X.index+1;const ne=X[0]==="'";let re=32;if(X.index-1>=0)re=F.charCodeAt(X.index-1);else for(n=o-1;n>=0&&!(e[n].type==="softbreak"||e[n].type==="hardbreak");n--)if(e[n].content){re=e[n].content.charCodeAt(e[n].content.length-1);break}let ie=32;if(Y<V)ie=F.charCodeAt(Y);else for(n=o+1;n<e.length&&!(e[n].type==="softbreak"||e[n].type==="hardbreak");n++)if(e[n].content){ie=e[n].content.charCodeAt(0);break}const se=isMdAsciiPunct(re)||isPunctChar(String.fromCharCode(re)),oe=isMdAsciiPunct(ie)||isPunctChar(String.fromCharCode(ie)),ae=isWhiteSpace(re),le=isWhiteSpace(ie);if(le?ee=!1:oe&&(ae||se||(ee=!1)),ae?te=!1:se&&(le||oe||(te=!1)),ie===34&&X[0]==='"'&&re>=48&&re<=57&&(te=ee=!1),ee&&te&&(ee=se,te=oe),!ee&&!te){ne&&(c.content=replaceAt(c.content,X.index,APOSTROPHE));continue}if(te)for(n=r.length-1;n>=0;n--){let de=r[n];if(r[n].level<h)break;if(de.single===ne&&r[n].level===h){de=r[n];let he,me;ne?(he=t.md.options.quotes[2],me=t.md.options.quotes[3]):(he=t.md.options.quotes[0],me=t.md.options.quotes[1]),c.content=replaceAt(c.content,X.index,me),e[de.token].content=replaceAt(e[de.token].content,de.pos,he),Y+=me.length-1,de.token===o&&(Y+=he.length-1),F=c.content,V=F.length,r.length=n;continue e}}ee?r.push({token:o,pos:X.index,single:ne,level:h}):te&&ne&&(c.content=replaceAt(c.content,X.index,APOSTROPHE))}}}function smartquotes(e){if(e.md.options.typographer)for(let t=e.tokens.length-1;t>=0;t--)e.tokens[t].type!=="inline"||!QUOTE_TEST_RE.test(e.tokens[t].content)||process_inlines(e.tokens[t].children,e)}function text_join(e){let t,n;const r=e.tokens,o=r.length;for(let c=0;c<o;c++){if(r[c].type!=="inline")continue;const h=r[c].children,F=h.length;for(t=0;t<F;t++)h[t].type==="text_special"&&(h[t].type="text");for(t=n=0;t<F;t++)h[t].type==="text"&&t+1<F&&h[t+1].type==="text"?h[t+1].content=h[t].content+h[t+1].content:(t!==n&&(h[n]=h[t]),n++);t!==n&&(h.length=n)}}const _rules$2=[["normalize",normalize],["block",block],["inline",inline],["linkify",linkify$1],["replacements",replace],["smartquotes",smartquotes],["text_join",text_join]];function Core(){this.ruler=new Ruler;for(let e=0;e<_rules$2.length;e++)this.ruler.push(_rules$2[e][0],_rules$2[e][1])}Core.prototype.process=function(e){const t=this.ruler.getRules("");for(let n=0,r=t.length;n<r;n++)t[n](e)};Core.prototype.State=StateCore;function StateBlock(e,t,n,r){this.src=e,this.md=t,this.env=n,this.tokens=r,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0;const o=this.src;for(let c=0,h=0,F=0,Y=0,V=o.length,X=!1;h<V;h++){const ee=o.charCodeAt(h);if(!X)if(isSpace(ee)){F++,ee===9?Y+=4-Y%4:Y++;continue}else X=!0;(ee===10||h===V-1)&&(ee!==10&&h++,this.bMarks.push(c),this.eMarks.push(h),this.tShift.push(F),this.sCount.push(Y),this.bsCount.push(0),X=!1,F=0,Y=0,c=h+1)}this.bMarks.push(o.length),this.eMarks.push(o.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}StateBlock.prototype.push=function(e,t,n){const r=new Token(e,t,n);return r.block=!0,n<0&&this.level--,r.level=this.level,n>0&&this.level++,this.tokens.push(r),r};StateBlock.prototype.isEmpty=function e(t){return this.bMarks[t]+this.tShift[t]>=this.eMarks[t]};StateBlock.prototype.skipEmptyLines=function e(t){for(let n=this.lineMax;t<n&&!(this.bMarks[t]+this.tShift[t]<this.eMarks[t]);t++);return t};StateBlock.prototype.skipSpaces=function e(t){for(let n=this.src.length;t<n;t++){const r=this.src.charCodeAt(t);if(!isSpace(r))break}return t};StateBlock.prototype.skipSpacesBack=function e(t,n){if(t<=n)return t;for(;t>n;)if(!isSpace(this.src.charCodeAt(--t)))return t+1;return t};StateBlock.prototype.skipChars=function e(t,n){for(let r=this.src.length;t<r&&this.src.charCodeAt(t)===n;t++);return t};StateBlock.prototype.skipCharsBack=function e(t,n,r){if(t<=r)return t;for(;t>r;)if(n!==this.src.charCodeAt(--t))return t+1;return t};StateBlock.prototype.getLines=function e(t,n,r,o){if(t>=n)return"";const c=new Array(n-t);for(let h=0,F=t;F<n;F++,h++){let Y=0;const V=this.bMarks[F];let X=V,ee;for(F+1<n||o?ee=this.eMarks[F]+1:ee=this.eMarks[F];X<ee&&Y<r;){const te=this.src.charCodeAt(X);if(isSpace(te))te===9?Y+=4-(Y+this.bsCount[F])%4:Y++;else if(X-V<this.tShift[F])Y++;else break;X++}Y>r?c[h]=new Array(Y-r+1).join(" ")+this.src.slice(X,ee):c[h]=this.src.slice(X,ee)}return c.join("")};StateBlock.prototype.Token=Token;const MAX_AUTOCOMPLETED_CELLS=65536;function getLine(e,t){const n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];return e.src.slice(n,r)}function escapedSplit(e){const t=[],n=e.length;let r=0,o=e.charCodeAt(r),c=!1,h=0,F="";for(;r<n;)o===124&&(c?(F+=e.substring(h,r-1),h=r):(t.push(F+e.substring(h,r)),F="",h=r+1)),c=o===92,r++,o=e.charCodeAt(r);return t.push(F+e.substring(h)),t}function table(e,t,n,r){if(t+2>n)return!1;let o=t+1;if(e.sCount[o]<e.blkIndent||e.sCount[o]-e.blkIndent>=4)return!1;let c=e.bMarks[o]+e.tShift[o];if(c>=e.eMarks[o])return!1;const h=e.src.charCodeAt(c++);if(h!==124&&h!==45&&h!==58||c>=e.eMarks[o])return!1;const F=e.src.charCodeAt(c++);if(F!==124&&F!==45&&F!==58&&!isSpace(F)||h===45&&isSpace(F))return!1;for(;c<e.eMarks[o];){const de=e.src.charCodeAt(c);if(de!==124&&de!==45&&de!==58&&!isSpace(de))return!1;c++}let Y=getLine(e,t+1),V=Y.split("|");const X=[];for(let de=0;de<V.length;de++){const he=V[de].trim();if(!he){if(de===0||de===V.length-1)continue;return!1}if(!/^:?-+:?$/.test(he))return!1;he.charCodeAt(he.length-1)===58?X.push(he.charCodeAt(0)===58?"center":"right"):he.charCodeAt(0)===58?X.push("left"):X.push("")}if(Y=getLine(e,t).trim(),Y.indexOf("|")===-1||e.sCount[t]-e.blkIndent>=4)return!1;V=escapedSplit(Y),V.length&&V[0]===""&&V.shift(),V.length&&V[V.length-1]===""&&V.pop();const ee=V.length;if(ee===0||ee!==X.length)return!1;if(r)return!0;const te=e.parentType;e.parentType="table";const ne=e.md.block.ruler.getRules("blockquote"),re=e.push("table_open","table",1),ie=[t,0];re.map=ie;const se=e.push("thead_open","thead",1);se.map=[t,t+1];const oe=e.push("tr_open","tr",1);oe.map=[t,t+1];for(let de=0;de<V.length;de++){const he=e.push("th_open","th",1);X[de]&&(he.attrs=[["style","text-align:"+X[de]]]);const me=e.push("inline","",0);me.content=V[de].trim(),me.children=[],e.push("th_close","th",-1)}e.push("tr_close","tr",-1),e.push("thead_close","thead",-1);let ae,le=0;for(o=t+2;o<n&&!(e.sCount[o]<e.blkIndent);o++){let de=!1;for(let me=0,Se=ne.length;me<Se;me++)if(ne[me](e,o,n,!0)){de=!0;break}if(de||(Y=getLine(e,o).trim(),!Y)||e.sCount[o]-e.blkIndent>=4||(V=escapedSplit(Y),V.length&&V[0]===""&&V.shift(),V.length&&V[V.length-1]===""&&V.pop(),le+=ee-V.length,le>MAX_AUTOCOMPLETED_CELLS))break;if(o===t+2){const me=e.push("tbody_open","tbody",1);me.map=ae=[t+2,0]}const he=e.push("tr_open","tr",1);he.map=[o,o+1];for(let me=0;me<ee;me++){const Se=e.push("td_open","td",1);X[me]&&(Se.attrs=[["style","text-align:"+X[me]]]);const xe=e.push("inline","",0);xe.content=V[me]?V[me].trim():"",xe.children=[],e.push("td_close","td",-1)}e.push("tr_close","tr",-1)}return ae&&(e.push("tbody_close","tbody",-1),ae[1]=o),e.push("table_close","table",-1),ie[1]=o,e.parentType=te,e.line=o,!0}function code(e,t,n){if(e.sCount[t]-e.blkIndent<4)return!1;let r=t+1,o=r;for(;r<n;){if(e.isEmpty(r)){r++;continue}if(e.sCount[r]-e.blkIndent>=4){r++,o=r;continue}break}e.line=o;const c=e.push("code_block","code",0);return c.content=e.getLines(t,o,4+e.blkIndent,!1)+`
|
|
74
|
+
`,c.map=[t,e.line],!0}function fence(e,t,n,r){let o=e.bMarks[t]+e.tShift[t],c=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||o+3>c)return!1;const h=e.src.charCodeAt(o);if(h!==126&&h!==96)return!1;let F=o;o=e.skipChars(o,h);let Y=o-F;if(Y<3)return!1;const V=e.src.slice(F,o),X=e.src.slice(o,c);if(h===96&&X.indexOf(String.fromCharCode(h))>=0)return!1;if(r)return!0;let ee=t,te=!1;for(;ee++,!(ee>=n||(o=F=e.bMarks[ee]+e.tShift[ee],c=e.eMarks[ee],o<c&&e.sCount[ee]<e.blkIndent));)if(e.src.charCodeAt(o)===h&&!(e.sCount[ee]-e.blkIndent>=4)&&(o=e.skipChars(o,h),!(o-F<Y)&&(o=e.skipSpaces(o),!(o<c)))){te=!0;break}Y=e.sCount[t],e.line=ee+(te?1:0);const ne=e.push("fence","code",0);return ne.info=X,ne.content=e.getLines(t+1,ee,Y,!0),ne.markup=V,ne.map=[t,e.line],!0}function blockquote(e,t,n,r){let o=e.bMarks[t]+e.tShift[t],c=e.eMarks[t];const h=e.lineMax;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(o)!==62)return!1;if(r)return!0;const F=[],Y=[],V=[],X=[],ee=e.md.block.ruler.getRules("blockquote"),te=e.parentType;e.parentType="blockquote";let ne=!1,re;for(re=t;re<n;re++){const le=e.sCount[re]<e.blkIndent;if(o=e.bMarks[re]+e.tShift[re],c=e.eMarks[re],o>=c)break;if(e.src.charCodeAt(o++)===62&&!le){let he=e.sCount[re]+1,me,Se;e.src.charCodeAt(o)===32?(o++,he++,Se=!1,me=!0):e.src.charCodeAt(o)===9?(me=!0,(e.bsCount[re]+he)%4===3?(o++,he++,Se=!1):Se=!0):me=!1;let xe=he;for(F.push(e.bMarks[re]),e.bMarks[re]=o;o<c;){const Te=e.src.charCodeAt(o);if(isSpace(Te))Te===9?xe+=4-(xe+e.bsCount[re]+(Se?1:0))%4:xe++;else break;o++}ne=o>=c,Y.push(e.bsCount[re]),e.bsCount[re]=e.sCount[re]+1+(me?1:0),V.push(e.sCount[re]),e.sCount[re]=xe-he,X.push(e.tShift[re]),e.tShift[re]=o-e.bMarks[re];continue}if(ne)break;let de=!1;for(let he=0,me=ee.length;he<me;he++)if(ee[he](e,re,n,!0)){de=!0;break}if(de){e.lineMax=re,e.blkIndent!==0&&(F.push(e.bMarks[re]),Y.push(e.bsCount[re]),X.push(e.tShift[re]),V.push(e.sCount[re]),e.sCount[re]-=e.blkIndent);break}F.push(e.bMarks[re]),Y.push(e.bsCount[re]),X.push(e.tShift[re]),V.push(e.sCount[re]),e.sCount[re]=-1}const ie=e.blkIndent;e.blkIndent=0;const se=e.push("blockquote_open","blockquote",1);se.markup=">";const oe=[t,0];se.map=oe,e.md.block.tokenize(e,t,re);const ae=e.push("blockquote_close","blockquote",-1);ae.markup=">",e.lineMax=h,e.parentType=te,oe[1]=e.line;for(let le=0;le<X.length;le++)e.bMarks[le+t]=F[le],e.tShift[le+t]=X[le],e.sCount[le+t]=V[le],e.bsCount[le+t]=Y[le];return e.blkIndent=ie,!0}function hr(e,t,n,r){const o=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let c=e.bMarks[t]+e.tShift[t];const h=e.src.charCodeAt(c++);if(h!==42&&h!==45&&h!==95)return!1;let F=1;for(;c<o;){const V=e.src.charCodeAt(c++);if(V!==h&&!isSpace(V))return!1;V===h&&F++}if(F<3)return!1;if(r)return!0;e.line=t+1;const Y=e.push("hr","hr",0);return Y.map=[t,e.line],Y.markup=Array(F+1).join(String.fromCharCode(h)),!0}function skipBulletListMarker(e,t){const n=e.eMarks[t];let r=e.bMarks[t]+e.tShift[t];const o=e.src.charCodeAt(r++);if(o!==42&&o!==45&&o!==43)return-1;if(r<n){const c=e.src.charCodeAt(r);if(!isSpace(c))return-1}return r}function skipOrderedListMarker(e,t){const n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];let o=n;if(o+1>=r)return-1;let c=e.src.charCodeAt(o++);if(c<48||c>57)return-1;for(;;){if(o>=r)return-1;if(c=e.src.charCodeAt(o++),c>=48&&c<=57){if(o-n>=10)return-1;continue}if(c===41||c===46)break;return-1}return o<r&&(c=e.src.charCodeAt(o),!isSpace(c))?-1:o}function markTightParagraphs(e,t){const n=e.level+2;for(let r=t+2,o=e.tokens.length-2;r<o;r++)e.tokens[r].level===n&&e.tokens[r].type==="paragraph_open"&&(e.tokens[r+2].hidden=!0,e.tokens[r].hidden=!0,r+=2)}function list(e,t,n,r){let o,c,h,F,Y=t,V=!0;if(e.sCount[Y]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[Y]-e.listIndent>=4&&e.sCount[Y]<e.blkIndent)return!1;let X=!1;r&&e.parentType==="paragraph"&&e.sCount[Y]>=e.blkIndent&&(X=!0);let ee,te,ne;if((ne=skipOrderedListMarker(e,Y))>=0){if(ee=!0,h=e.bMarks[Y]+e.tShift[Y],te=Number(e.src.slice(h,ne-1)),X&&te!==1)return!1}else if((ne=skipBulletListMarker(e,Y))>=0)ee=!1;else return!1;if(X&&e.skipSpaces(ne)>=e.eMarks[Y])return!1;if(r)return!0;const re=e.src.charCodeAt(ne-1),ie=e.tokens.length;ee?(F=e.push("ordered_list_open","ol",1),te!==1&&(F.attrs=[["start",te]])):F=e.push("bullet_list_open","ul",1);const se=[Y,0];F.map=se,F.markup=String.fromCharCode(re);let oe=!1;const ae=e.md.block.ruler.getRules("list"),le=e.parentType;for(e.parentType="list";Y<n;){c=ne,o=e.eMarks[Y];const de=e.sCount[Y]+ne-(e.bMarks[Y]+e.tShift[Y]);let he=de;for(;c<o;){const qe=e.src.charCodeAt(c);if(qe===9)he+=4-(he+e.bsCount[Y])%4;else if(qe===32)he++;else break;c++}const me=c;let Se;me>=o?Se=1:Se=he-de,Se>4&&(Se=1);const xe=de+Se;F=e.push("list_item_open","li",1),F.markup=String.fromCharCode(re);const Te=[Y,0];F.map=Te,ee&&(F.info=e.src.slice(h,ne-1));const $e=e.tight,Oe=e.tShift[Y],Fe=e.sCount[Y],Re=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=xe,e.tight=!0,e.tShift[Y]=me-e.bMarks[Y],e.sCount[Y]=he,me>=o&&e.isEmpty(Y+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,Y,n,!0),(!e.tight||oe)&&(V=!1),oe=e.line-Y>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=Re,e.tShift[Y]=Oe,e.sCount[Y]=Fe,e.tight=$e,F=e.push("list_item_close","li",-1),F.markup=String.fromCharCode(re),Y=e.line,Te[1]=Y,Y>=n||e.sCount[Y]<e.blkIndent||e.sCount[Y]-e.blkIndent>=4)break;let Ne=!1;for(let qe=0,He=ae.length;qe<He;qe++)if(ae[qe](e,Y,n,!0)){Ne=!0;break}if(Ne)break;if(ee){if(ne=skipOrderedListMarker(e,Y),ne<0)break;h=e.bMarks[Y]+e.tShift[Y]}else if(ne=skipBulletListMarker(e,Y),ne<0)break;if(re!==e.src.charCodeAt(ne-1))break}return ee?F=e.push("ordered_list_close","ol",-1):F=e.push("bullet_list_close","ul",-1),F.markup=String.fromCharCode(re),se[1]=Y,e.line=Y,e.parentType=le,V&&markTightParagraphs(e,ie),!0}function reference(e,t,n,r){let o=e.bMarks[t]+e.tShift[t],c=e.eMarks[t],h=t+1;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(o)!==91)return!1;function F(ae){const le=e.lineMax;if(ae>=le||e.isEmpty(ae))return null;let de=!1;if(e.sCount[ae]-e.blkIndent>3&&(de=!0),e.sCount[ae]<0&&(de=!0),!de){const Se=e.md.block.ruler.getRules("reference"),xe=e.parentType;e.parentType="reference";let Te=!1;for(let $e=0,Oe=Se.length;$e<Oe;$e++)if(Se[$e](e,ae,le,!0)){Te=!0;break}if(e.parentType=xe,Te)return null}const he=e.bMarks[ae]+e.tShift[ae],me=e.eMarks[ae];return e.src.slice(he,me+1)}let Y=e.src.slice(o,c+1);c=Y.length;let V=-1;for(o=1;o<c;o++){const ae=Y.charCodeAt(o);if(ae===91)return!1;if(ae===93){V=o;break}else if(ae===10){const le=F(h);le!==null&&(Y+=le,c=Y.length,h++)}else if(ae===92&&(o++,o<c&&Y.charCodeAt(o)===10)){const le=F(h);le!==null&&(Y+=le,c=Y.length,h++)}}if(V<0||Y.charCodeAt(V+1)!==58)return!1;for(o=V+2;o<c;o++){const ae=Y.charCodeAt(o);if(ae===10){const le=F(h);le!==null&&(Y+=le,c=Y.length,h++)}else if(!isSpace(ae))break}const X=e.md.helpers.parseLinkDestination(Y,o,c);if(!X.ok)return!1;const ee=e.md.normalizeLink(X.str);if(!e.md.validateLink(ee))return!1;o=X.pos;const te=o,ne=h,re=o;for(;o<c;o++){const ae=Y.charCodeAt(o);if(ae===10){const le=F(h);le!==null&&(Y+=le,c=Y.length,h++)}else if(!isSpace(ae))break}let ie=e.md.helpers.parseLinkTitle(Y,o,c);for(;ie.can_continue;){const ae=F(h);if(ae===null)break;Y+=ae,o=c,c=Y.length,h++,ie=e.md.helpers.parseLinkTitle(Y,o,c,ie)}let se;for(o<c&&re!==o&&ie.ok?(se=ie.str,o=ie.pos):(se="",o=te,h=ne);o<c;){const ae=Y.charCodeAt(o);if(!isSpace(ae))break;o++}if(o<c&&Y.charCodeAt(o)!==10&&se)for(se="",o=te,h=ne;o<c;){const ae=Y.charCodeAt(o);if(!isSpace(ae))break;o++}if(o<c&&Y.charCodeAt(o)!==10)return!1;const oe=normalizeReference(Y.slice(1,V));return oe?(r||(typeof e.env.references>"u"&&(e.env.references={}),typeof e.env.references[oe]>"u"&&(e.env.references[oe]={title:se,href:ee}),e.line=h),!0):!1}const block_names=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],attr_name="[a-zA-Z_:][a-zA-Z0-9:._-]*",unquoted="[^\"'=<>`\\x00-\\x20]+",single_quoted="'[^']*'",double_quoted='"[^"]*"',attr_value="(?:"+unquoted+"|"+single_quoted+"|"+double_quoted+")",attribute="(?:\\s+"+attr_name+"(?:\\s*=\\s*"+attr_value+")?)",open_tag="<[A-Za-z][A-Za-z0-9\\-]*"+attribute+"*\\s*\\/?>",close_tag="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",comment="<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->",processing="<[?][\\s\\S]*?[?]>",declaration="<![A-Za-z][^>]*>",cdata="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",HTML_TAG_RE=new RegExp("^(?:"+open_tag+"|"+close_tag+"|"+comment+"|"+processing+"|"+declaration+"|"+cdata+")"),HTML_OPEN_CLOSE_TAG_RE=new RegExp("^(?:"+open_tag+"|"+close_tag+")"),HTML_SEQUENCES=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+block_names.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(HTML_OPEN_CLOSE_TAG_RE.source+"\\s*$"),/^$/,!1]];function html_block(e,t,n,r){let o=e.bMarks[t]+e.tShift[t],c=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(o)!==60)return!1;let h=e.src.slice(o,c),F=0;for(;F<HTML_SEQUENCES.length&&!HTML_SEQUENCES[F][0].test(h);F++);if(F===HTML_SEQUENCES.length)return!1;if(r)return HTML_SEQUENCES[F][2];let Y=t+1;if(!HTML_SEQUENCES[F][1].test(h)){for(;Y<n&&!(e.sCount[Y]<e.blkIndent);Y++)if(o=e.bMarks[Y]+e.tShift[Y],c=e.eMarks[Y],h=e.src.slice(o,c),HTML_SEQUENCES[F][1].test(h)){h.length!==0&&Y++;break}}e.line=Y;const V=e.push("html_block","",0);return V.map=[t,Y],V.content=e.getLines(t,Y,e.blkIndent,!0),!0}function heading(e,t,n,r){let o=e.bMarks[t]+e.tShift[t],c=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let h=e.src.charCodeAt(o);if(h!==35||o>=c)return!1;let F=1;for(h=e.src.charCodeAt(++o);h===35&&o<c&&F<=6;)F++,h=e.src.charCodeAt(++o);if(F>6||o<c&&!isSpace(h))return!1;if(r)return!0;c=e.skipSpacesBack(c,o);const Y=e.skipCharsBack(c,35,o);Y>o&&isSpace(e.src.charCodeAt(Y-1))&&(c=Y),e.line=t+1;const V=e.push("heading_open","h"+String(F),1);V.markup="########".slice(0,F),V.map=[t,e.line];const X=e.push("inline","",0);X.content=e.src.slice(o,c).trim(),X.map=[t,e.line],X.children=[];const ee=e.push("heading_close","h"+String(F),-1);return ee.markup="########".slice(0,F),!0}function lheading(e,t,n){const r=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;const o=e.parentType;e.parentType="paragraph";let c=0,h,F=t+1;for(;F<n&&!e.isEmpty(F);F++){if(e.sCount[F]-e.blkIndent>3)continue;if(e.sCount[F]>=e.blkIndent){let ne=e.bMarks[F]+e.tShift[F];const re=e.eMarks[F];if(ne<re&&(h=e.src.charCodeAt(ne),(h===45||h===61)&&(ne=e.skipChars(ne,h),ne=e.skipSpaces(ne),ne>=re))){c=h===61?1:2;break}}if(e.sCount[F]<0)continue;let te=!1;for(let ne=0,re=r.length;ne<re;ne++)if(r[ne](e,F,n,!0)){te=!0;break}if(te)break}if(!c)return!1;const Y=e.getLines(t,F,e.blkIndent,!1).trim();e.line=F+1;const V=e.push("heading_open","h"+String(c),1);V.markup=String.fromCharCode(h),V.map=[t,e.line];const X=e.push("inline","",0);X.content=Y,X.map=[t,e.line-1],X.children=[];const ee=e.push("heading_close","h"+String(c),-1);return ee.markup=String.fromCharCode(h),e.parentType=o,!0}function paragraph(e,t,n){const r=e.md.block.ruler.getRules("paragraph"),o=e.parentType;let c=t+1;for(e.parentType="paragraph";c<n&&!e.isEmpty(c);c++){if(e.sCount[c]-e.blkIndent>3||e.sCount[c]<0)continue;let V=!1;for(let X=0,ee=r.length;X<ee;X++)if(r[X](e,c,n,!0)){V=!0;break}if(V)break}const h=e.getLines(t,c,e.blkIndent,!1).trim();e.line=c;const F=e.push("paragraph_open","p",1);F.map=[t,e.line];const Y=e.push("inline","",0);return Y.content=h,Y.map=[t,e.line],Y.children=[],e.push("paragraph_close","p",-1),e.parentType=o,!0}const _rules$1=[["table",table,["paragraph","reference"]],["code",code],["fence",fence,["paragraph","reference","blockquote","list"]],["blockquote",blockquote,["paragraph","reference","blockquote","list"]],["hr",hr,["paragraph","reference","blockquote","list"]],["list",list,["paragraph","reference","blockquote"]],["reference",reference],["html_block",html_block,["paragraph","reference","blockquote"]],["heading",heading,["paragraph","reference","blockquote"]],["lheading",lheading],["paragraph",paragraph]];function ParserBlock(){this.ruler=new Ruler;for(let e=0;e<_rules$1.length;e++)this.ruler.push(_rules$1[e][0],_rules$1[e][1],{alt:(_rules$1[e][2]||[]).slice()})}ParserBlock.prototype.tokenize=function(e,t,n){const r=this.ruler.getRules(""),o=r.length,c=e.md.options.maxNesting;let h=t,F=!1;for(;h<n&&(e.line=h=e.skipEmptyLines(h),!(h>=n||e.sCount[h]<e.blkIndent));){if(e.level>=c){e.line=n;break}const Y=e.line;let V=!1;for(let X=0;X<o;X++)if(V=r[X](e,h,n,!1),V){if(Y>=e.line)throw new Error("block rule didn't increment state.line");break}if(!V)throw new Error("none of the block rules matched");e.tight=!F,e.isEmpty(e.line-1)&&(F=!0),h=e.line,h<n&&e.isEmpty(h)&&(F=!0,h++,e.line=h)}};ParserBlock.prototype.parse=function(e,t,n,r){if(!e)return;const o=new this.State(e,t,n,r);this.tokenize(o,o.line,o.lineMax)};ParserBlock.prototype.State=StateBlock;function StateInline(e,t,n,r){this.src=e,this.env=n,this.md=t,this.tokens=r,this.tokens_meta=Array(r.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0}StateInline.prototype.pushPending=function(){const e=new Token("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e};StateInline.prototype.push=function(e,t,n){this.pending&&this.pushPending();const r=new Token(e,t,n);let o=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),r.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],o={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(r),this.tokens_meta.push(o),r};StateInline.prototype.scanDelims=function(e,t){const n=this.posMax,r=this.src.charCodeAt(e),o=e>0?this.src.charCodeAt(e-1):32;let c=e;for(;c<n&&this.src.charCodeAt(c)===r;)c++;const h=c-e,F=c<n?this.src.charCodeAt(c):32,Y=isMdAsciiPunct(o)||isPunctChar(String.fromCharCode(o)),V=isMdAsciiPunct(F)||isPunctChar(String.fromCharCode(F)),X=isWhiteSpace(o),ee=isWhiteSpace(F),te=!ee&&(!V||X||Y),ne=!X&&(!Y||ee||V);return{can_open:te&&(t||!ne||Y),can_close:ne&&(t||!te||V),length:h}};StateInline.prototype.Token=Token;function isTerminatorChar(e){switch(e){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}function text(e,t){let n=e.pos;for(;n<e.posMax&&!isTerminatorChar(e.src.charCodeAt(n));)n++;return n===e.pos?!1:(t||(e.pending+=e.src.slice(e.pos,n)),e.pos=n,!0)}const SCHEME_RE=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;function linkify(e,t){if(!e.md.options.linkify||e.linkLevel>0)return!1;const n=e.pos,r=e.posMax;if(n+3>r||e.src.charCodeAt(n)!==58||e.src.charCodeAt(n+1)!==47||e.src.charCodeAt(n+2)!==47)return!1;const o=e.pending.match(SCHEME_RE);if(!o)return!1;const c=o[1],h=e.md.linkify.matchAtStart(e.src.slice(n-c.length));if(!h)return!1;let F=h.url;if(F.length<=c.length)return!1;F=F.replace(/\*+$/,"");const Y=e.md.normalizeLink(F);if(!e.md.validateLink(Y))return!1;if(!t){e.pending=e.pending.slice(0,-c.length);const V=e.push("link_open","a",1);V.attrs=[["href",Y]],V.markup="linkify",V.info="auto";const X=e.push("text","",0);X.content=e.md.normalizeLinkText(F);const ee=e.push("link_close","a",-1);ee.markup="linkify",ee.info="auto"}return e.pos+=F.length-c.length,!0}function newline(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==10)return!1;const r=e.pending.length-1,o=e.posMax;if(!t)if(r>=0&&e.pending.charCodeAt(r)===32)if(r>=1&&e.pending.charCodeAt(r-1)===32){let c=r-1;for(;c>=1&&e.pending.charCodeAt(c-1)===32;)c--;e.pending=e.pending.slice(0,c),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(n++;n<o&&isSpace(e.src.charCodeAt(n));)n++;return e.pos=n,!0}const ESCAPED=[];for(let e=0;e<256;e++)ESCAPED.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(e){ESCAPED[e.charCodeAt(0)]=1});function escape(e,t){let n=e.pos;const r=e.posMax;if(e.src.charCodeAt(n)!==92||(n++,n>=r))return!1;let o=e.src.charCodeAt(n);if(o===10){for(t||e.push("hardbreak","br",0),n++;n<r&&(o=e.src.charCodeAt(n),!!isSpace(o));)n++;return e.pos=n,!0}let c=e.src[n];if(o>=55296&&o<=56319&&n+1<r){const F=e.src.charCodeAt(n+1);F>=56320&&F<=57343&&(c+=e.src[n+1],n++)}const h="\\"+c;if(!t){const F=e.push("text_special","",0);o<256&&ESCAPED[o]!==0?F.content=c:F.content=h,F.markup=h,F.info="escape"}return e.pos=n+1,!0}function backtick(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==96)return!1;const o=n;n++;const c=e.posMax;for(;n<c&&e.src.charCodeAt(n)===96;)n++;const h=e.src.slice(o,n),F=h.length;if(e.backticksScanned&&(e.backticks[F]||0)<=o)return t||(e.pending+=h),e.pos+=F,!0;let Y=n,V;for(;(V=e.src.indexOf("`",Y))!==-1;){for(Y=V+1;Y<c&&e.src.charCodeAt(Y)===96;)Y++;const X=Y-V;if(X===F){if(!t){const ee=e.push("code_inline","code",0);ee.markup=h,ee.content=e.src.slice(n,V).replace(/\n/g," ").replace(/^ (.+) $/,"$1")}return e.pos=Y,!0}e.backticks[X]=V}return e.backticksScanned=!0,t||(e.pending+=h),e.pos+=F,!0}function strikethrough_tokenize(e,t){const n=e.pos,r=e.src.charCodeAt(n);if(t||r!==126)return!1;const o=e.scanDelims(e.pos,!0);let c=o.length;const h=String.fromCharCode(r);if(c<2)return!1;let F;c%2&&(F=e.push("text","",0),F.content=h,c--);for(let Y=0;Y<c;Y+=2)F=e.push("text","",0),F.content=h+h,e.delimiters.push({marker:r,length:0,token:e.tokens.length-1,end:-1,open:o.can_open,close:o.can_close});return e.pos+=o.length,!0}function postProcess$1(e,t){let n;const r=[],o=t.length;for(let c=0;c<o;c++){const h=t[c];if(h.marker!==126||h.end===-1)continue;const F=t[h.end];n=e.tokens[h.token],n.type="s_open",n.tag="s",n.nesting=1,n.markup="~~",n.content="",n=e.tokens[F.token],n.type="s_close",n.tag="s",n.nesting=-1,n.markup="~~",n.content="",e.tokens[F.token-1].type==="text"&&e.tokens[F.token-1].content==="~"&&r.push(F.token-1)}for(;r.length;){const c=r.pop();let h=c+1;for(;h<e.tokens.length&&e.tokens[h].type==="s_close";)h++;h--,c!==h&&(n=e.tokens[h],e.tokens[h]=e.tokens[c],e.tokens[c]=n)}}function strikethrough_postProcess(e){const t=e.tokens_meta,n=e.tokens_meta.length;postProcess$1(e,e.delimiters);for(let r=0;r<n;r++)t[r]&&t[r].delimiters&&postProcess$1(e,t[r].delimiters)}const r_strikethrough={tokenize:strikethrough_tokenize,postProcess:strikethrough_postProcess};function emphasis_tokenize(e,t){const n=e.pos,r=e.src.charCodeAt(n);if(t||r!==95&&r!==42)return!1;const o=e.scanDelims(e.pos,r===42);for(let c=0;c<o.length;c++){const h=e.push("text","",0);h.content=String.fromCharCode(r),e.delimiters.push({marker:r,length:o.length,token:e.tokens.length-1,end:-1,open:o.can_open,close:o.can_close})}return e.pos+=o.length,!0}function postProcess(e,t){const n=t.length;for(let r=n-1;r>=0;r--){const o=t[r];if(o.marker!==95&&o.marker!==42||o.end===-1)continue;const c=t[o.end],h=r>0&&t[r-1].end===o.end+1&&t[r-1].marker===o.marker&&t[r-1].token===o.token-1&&t[o.end+1].token===c.token+1,F=String.fromCharCode(o.marker),Y=e.tokens[o.token];Y.type=h?"strong_open":"em_open",Y.tag=h?"strong":"em",Y.nesting=1,Y.markup=h?F+F:F,Y.content="";const V=e.tokens[c.token];V.type=h?"strong_close":"em_close",V.tag=h?"strong":"em",V.nesting=-1,V.markup=h?F+F:F,V.content="",h&&(e.tokens[t[r-1].token].content="",e.tokens[t[o.end+1].token].content="",r--)}}function emphasis_post_process(e){const t=e.tokens_meta,n=e.tokens_meta.length;postProcess(e,e.delimiters);for(let r=0;r<n;r++)t[r]&&t[r].delimiters&&postProcess(e,t[r].delimiters)}const r_emphasis={tokenize:emphasis_tokenize,postProcess:emphasis_post_process};function link(e,t){let n,r,o,c,h="",F="",Y=e.pos,V=!0;if(e.src.charCodeAt(e.pos)!==91)return!1;const X=e.pos,ee=e.posMax,te=e.pos+1,ne=e.md.helpers.parseLinkLabel(e,e.pos,!0);if(ne<0)return!1;let re=ne+1;if(re<ee&&e.src.charCodeAt(re)===40){for(V=!1,re++;re<ee&&(n=e.src.charCodeAt(re),!(!isSpace(n)&&n!==10));re++);if(re>=ee)return!1;if(Y=re,o=e.md.helpers.parseLinkDestination(e.src,re,e.posMax),o.ok){for(h=e.md.normalizeLink(o.str),e.md.validateLink(h)?re=o.pos:h="",Y=re;re<ee&&(n=e.src.charCodeAt(re),!(!isSpace(n)&&n!==10));re++);if(o=e.md.helpers.parseLinkTitle(e.src,re,e.posMax),re<ee&&Y!==re&&o.ok)for(F=o.str,re=o.pos;re<ee&&(n=e.src.charCodeAt(re),!(!isSpace(n)&&n!==10));re++);}(re>=ee||e.src.charCodeAt(re)!==41)&&(V=!0),re++}if(V){if(typeof e.env.references>"u")return!1;if(re<ee&&e.src.charCodeAt(re)===91?(Y=re+1,re=e.md.helpers.parseLinkLabel(e,re),re>=0?r=e.src.slice(Y,re++):re=ne+1):re=ne+1,r||(r=e.src.slice(te,ne)),c=e.env.references[normalizeReference(r)],!c)return e.pos=X,!1;h=c.href,F=c.title}if(!t){e.pos=te,e.posMax=ne;const ie=e.push("link_open","a",1),se=[["href",h]];ie.attrs=se,F&&se.push(["title",F]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push("link_close","a",-1)}return e.pos=re,e.posMax=ee,!0}function image(e,t){let n,r,o,c,h,F,Y,V,X="";const ee=e.pos,te=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91)return!1;const ne=e.pos+2,re=e.md.helpers.parseLinkLabel(e,e.pos+1,!1);if(re<0)return!1;if(c=re+1,c<te&&e.src.charCodeAt(c)===40){for(c++;c<te&&(n=e.src.charCodeAt(c),!(!isSpace(n)&&n!==10));c++);if(c>=te)return!1;for(V=c,F=e.md.helpers.parseLinkDestination(e.src,c,e.posMax),F.ok&&(X=e.md.normalizeLink(F.str),e.md.validateLink(X)?c=F.pos:X=""),V=c;c<te&&(n=e.src.charCodeAt(c),!(!isSpace(n)&&n!==10));c++);if(F=e.md.helpers.parseLinkTitle(e.src,c,e.posMax),c<te&&V!==c&&F.ok)for(Y=F.str,c=F.pos;c<te&&(n=e.src.charCodeAt(c),!(!isSpace(n)&&n!==10));c++);else Y="";if(c>=te||e.src.charCodeAt(c)!==41)return e.pos=ee,!1;c++}else{if(typeof e.env.references>"u")return!1;if(c<te&&e.src.charCodeAt(c)===91?(V=c+1,c=e.md.helpers.parseLinkLabel(e,c),c>=0?o=e.src.slice(V,c++):c=re+1):c=re+1,o||(o=e.src.slice(ne,re)),h=e.env.references[normalizeReference(o)],!h)return e.pos=ee,!1;X=h.href,Y=h.title}if(!t){r=e.src.slice(ne,re);const ie=[];e.md.inline.parse(r,e.md,e.env,ie);const se=e.push("image","img",0),oe=[["src",X],["alt",""]];se.attrs=oe,se.children=ie,se.content=r,Y&&oe.push(["title",Y])}return e.pos=c,e.posMax=te,!0}const EMAIL_RE=/^([a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,AUTOLINK_RE=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;function autolink(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==60)return!1;const r=e.pos,o=e.posMax;for(;;){if(++n>=o)return!1;const h=e.src.charCodeAt(n);if(h===60)return!1;if(h===62)break}const c=e.src.slice(r+1,n);if(AUTOLINK_RE.test(c)){const h=e.md.normalizeLink(c);if(!e.md.validateLink(h))return!1;if(!t){const F=e.push("link_open","a",1);F.attrs=[["href",h]],F.markup="autolink",F.info="auto";const Y=e.push("text","",0);Y.content=e.md.normalizeLinkText(c);const V=e.push("link_close","a",-1);V.markup="autolink",V.info="auto"}return e.pos+=c.length+2,!0}if(EMAIL_RE.test(c)){const h=e.md.normalizeLink("mailto:"+c);if(!e.md.validateLink(h))return!1;if(!t){const F=e.push("link_open","a",1);F.attrs=[["href",h]],F.markup="autolink",F.info="auto";const Y=e.push("text","",0);Y.content=e.md.normalizeLinkText(c);const V=e.push("link_close","a",-1);V.markup="autolink",V.info="auto"}return e.pos+=c.length+2,!0}return!1}function isLinkOpen(e){return/^<a[>\s]/i.test(e)}function isLinkClose(e){return/^<\/a\s*>/i.test(e)}function isLetter(e){const t=e|32;return t>=97&&t<=122}function html_inline(e,t){if(!e.md.options.html)return!1;const n=e.posMax,r=e.pos;if(e.src.charCodeAt(r)!==60||r+2>=n)return!1;const o=e.src.charCodeAt(r+1);if(o!==33&&o!==63&&o!==47&&!isLetter(o))return!1;const c=e.src.slice(r).match(HTML_TAG_RE);if(!c)return!1;if(!t){const h=e.push("html_inline","",0);h.content=c[0],isLinkOpen(h.content)&&e.linkLevel++,isLinkClose(h.content)&&e.linkLevel--}return e.pos+=c[0].length,!0}const DIGITAL_RE=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,NAMED_RE=/^&([a-z][a-z0-9]{1,31});/i;function entity(e,t){const n=e.pos,r=e.posMax;if(e.src.charCodeAt(n)!==38||n+1>=r)return!1;if(e.src.charCodeAt(n+1)===35){const c=e.src.slice(n).match(DIGITAL_RE);if(c){if(!t){const h=c[1][0].toLowerCase()==="x"?parseInt(c[1].slice(1),16):parseInt(c[1],10),F=e.push("text_special","",0);F.content=isValidEntityCode(h)?fromCodePoint(h):fromCodePoint(65533),F.markup=c[0],F.info="entity"}return e.pos+=c[0].length,!0}}else{const c=e.src.slice(n).match(NAMED_RE);if(c){const h=decodeHTML(c[0]);if(h!==c[0]){if(!t){const F=e.push("text_special","",0);F.content=h,F.markup=c[0],F.info="entity"}return e.pos+=c[0].length,!0}}}return!1}function processDelimiters(e){const t={},n=e.length;if(!n)return;let r=0,o=-2;const c=[];for(let h=0;h<n;h++){const F=e[h];if(c.push(0),(e[r].marker!==F.marker||o!==F.token-1)&&(r=h),o=F.token,F.length=F.length||0,!F.close)continue;t.hasOwnProperty(F.marker)||(t[F.marker]=[-1,-1,-1,-1,-1,-1]);const Y=t[F.marker][(F.open?3:0)+F.length%3];let V=r-c[r]-1,X=V;for(;V>Y;V-=c[V]+1){const ee=e[V];if(ee.marker===F.marker&&ee.open&&ee.end<0){let te=!1;if((ee.close||F.open)&&(ee.length+F.length)%3===0&&(ee.length%3!==0||F.length%3!==0)&&(te=!0),!te){const ne=V>0&&!e[V-1].open?c[V-1]+1:0;c[h]=h-V+ne,c[V]=ne,F.open=!1,ee.end=h,ee.close=!1,X=-1,o=-2;break}}}X!==-1&&(t[F.marker][(F.open?3:0)+(F.length||0)%3]=X)}}function link_pairs(e){const t=e.tokens_meta,n=e.tokens_meta.length;processDelimiters(e.delimiters);for(let r=0;r<n;r++)t[r]&&t[r].delimiters&&processDelimiters(t[r].delimiters)}function fragments_join(e){let t,n,r=0;const o=e.tokens,c=e.tokens.length;for(t=n=0;t<c;t++)o[t].nesting<0&&r--,o[t].level=r,o[t].nesting>0&&r++,o[t].type==="text"&&t+1<c&&o[t+1].type==="text"?o[t+1].content=o[t].content+o[t+1].content:(t!==n&&(o[n]=o[t]),n++);t!==n&&(o.length=n)}const _rules=[["text",text],["linkify",linkify],["newline",newline],["escape",escape],["backticks",backtick],["strikethrough",r_strikethrough.tokenize],["emphasis",r_emphasis.tokenize],["link",link],["image",image],["autolink",autolink],["html_inline",html_inline],["entity",entity]],_rules2=[["balance_pairs",link_pairs],["strikethrough",r_strikethrough.postProcess],["emphasis",r_emphasis.postProcess],["fragments_join",fragments_join]];function ParserInline(){this.ruler=new Ruler;for(let e=0;e<_rules.length;e++)this.ruler.push(_rules[e][0],_rules[e][1]);this.ruler2=new Ruler;for(let e=0;e<_rules2.length;e++)this.ruler2.push(_rules2[e][0],_rules2[e][1])}ParserInline.prototype.skipToken=function(e){const t=e.pos,n=this.ruler.getRules(""),r=n.length,o=e.md.options.maxNesting,c=e.cache;if(typeof c[t]<"u"){e.pos=c[t];return}let h=!1;if(e.level<o){for(let F=0;F<r;F++)if(e.level++,h=n[F](e,!0),e.level--,h){if(t>=e.pos)throw new Error("inline rule didn't increment state.pos");break}}else e.pos=e.posMax;h||e.pos++,c[t]=e.pos};ParserInline.prototype.tokenize=function(e){const t=this.ruler.getRules(""),n=t.length,r=e.posMax,o=e.md.options.maxNesting;for(;e.pos<r;){const c=e.pos;let h=!1;if(e.level<o){for(let F=0;F<n;F++)if(h=t[F](e,!1),h){if(c>=e.pos)throw new Error("inline rule didn't increment state.pos");break}}if(h){if(e.pos>=r)break;continue}e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()};ParserInline.prototype.parse=function(e,t,n,r){const o=new this.State(e,t,n,r);this.tokenize(o);const c=this.ruler2.getRules(""),h=c.length;for(let F=0;F<h;F++)c[F](o)};ParserInline.prototype.State=StateInline;function reFactory(e){const t={};e=e||{},t.src_Any=Any.source,t.src_Cc=Cc.source,t.src_Z=Z.source,t.src_P=P$1.source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");const n="[><|]";return t.src_pseudo_letter="(?:(?!"+n+"|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|"+n+"|"+t.src_ZPCc+")(?!"+(e["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|"+n+`|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!`+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+t.src_ZCc+"|[.]|$)|"+(e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+t.src_ZCc+"|$)|;(?!"+t.src_ZCc+"|$)|\\!+(?!"+t.src_ZCc+"|[!]|$)|\\?(?!"+t.src_ZCc+"|[?]|$))+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy="(^|"+n+'|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}function assign(e){return Array.prototype.slice.call(arguments,1).forEach(function(n){n&&Object.keys(n).forEach(function(r){e[r]=n[r]})}),e}function _class(e){return Object.prototype.toString.call(e)}function isString(e){return _class(e)==="[object String]"}function isObject(e){return _class(e)==="[object Object]"}function isRegExp(e){return _class(e)==="[object RegExp]"}function isFunction(e){return _class(e)==="[object Function]"}function escapeRE(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}const defaultOptions={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function isOptionsObj(e){return Object.keys(e||{}).reduce(function(t,n){return t||defaultOptions.hasOwnProperty(n)},!1)}const defaultSchemas={"http:":{validate:function(e,t,n){const r=e.slice(t);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(r)?r.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,n){const r=e.slice(t);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(r)?t>=3&&e[t-3]===":"||t>=3&&e[t-3]==="/"?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){const r=e.slice(t);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(r)?r.match(n.re.mailto)[0].length:0}}},tlds_2ch_src_re="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",tlds_default="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function resetScanCache(e){e.__index__=-1,e.__text_cache__=""}function createValidator(e){return function(t,n){const r=t.slice(n);return e.test(r)?r.match(e)[0].length:0}}function createNormalizer(){return function(e,t){t.normalize(e)}}function compile(e){const t=e.re=reFactory(e.__opts__),n=e.__tlds__.slice();e.onCompile(),e.__tlds_replaced__||n.push(tlds_2ch_src_re),n.push(t.src_xn),t.src_tlds=n.join("|");function r(F){return F.replace("%TLDS%",t.src_tlds)}t.email_fuzzy=RegExp(r(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(r(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(r(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(r(t.tpl_host_fuzzy_test),"i");const o=[];e.__compiled__={};function c(F,Y){throw new Error('(LinkifyIt) Invalid schema "'+F+'": '+Y)}Object.keys(e.__schemas__).forEach(function(F){const Y=e.__schemas__[F];if(Y===null)return;const V={validate:null,link:null};if(e.__compiled__[F]=V,isObject(Y)){isRegExp(Y.validate)?V.validate=createValidator(Y.validate):isFunction(Y.validate)?V.validate=Y.validate:c(F,Y),isFunction(Y.normalize)?V.normalize=Y.normalize:Y.normalize?c(F,Y):V.normalize=createNormalizer();return}if(isString(Y)){o.push(F);return}c(F,Y)}),o.forEach(function(F){e.__compiled__[e.__schemas__[F]]&&(e.__compiled__[F].validate=e.__compiled__[e.__schemas__[F]].validate,e.__compiled__[F].normalize=e.__compiled__[e.__schemas__[F]].normalize)}),e.__compiled__[""]={validate:null,normalize:createNormalizer()};const h=Object.keys(e.__compiled__).filter(function(F){return F.length>0&&e.__compiled__[F]}).map(escapeRE).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+h+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+h+")","ig"),e.re.schema_at_start=RegExp("^"+e.re.schema_search.source,"i"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),resetScanCache(e)}function Match(e,t){const n=e.__index__,r=e.__last_index__,o=e.__text_cache__.slice(n,r);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=r+t,this.raw=o,this.text=o,this.url=o}function createMatch(e,t){const n=new Match(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function LinkifyIt(e,t){if(!(this instanceof LinkifyIt))return new LinkifyIt(e,t);t||isOptionsObj(e)&&(t=e,e={}),this.__opts__=assign({},defaultOptions,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=assign({},defaultSchemas,e),this.__compiled__={},this.__tlds__=tlds_default,this.__tlds_replaced__=!1,this.re={},compile(this)}LinkifyIt.prototype.add=function e(t,n){return this.__schemas__[t]=n,compile(this),this};LinkifyIt.prototype.set=function e(t){return this.__opts__=assign(this.__opts__,t),this};LinkifyIt.prototype.test=function e(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return!1;let n,r,o,c,h,F,Y,V,X;if(this.re.schema_test.test(t)){for(Y=this.re.schema_search,Y.lastIndex=0;(n=Y.exec(t))!==null;)if(c=this.testSchemaAt(t,n[2],Y.lastIndex),c){this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+c;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(V=t.search(this.re.host_fuzzy_test),V>=0&&(this.__index__<0||V<this.__index__)&&(r=t.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(h=r.index+r[1].length,(this.__index__<0||h<this.__index__)&&(this.__schema__="",this.__index__=h,this.__last_index__=r.index+r[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(X=t.indexOf("@"),X>=0&&(o=t.match(this.re.email_fuzzy))!==null&&(h=o.index+o[1].length,F=o.index+o[0].length,(this.__index__<0||h<this.__index__||h===this.__index__&&F>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=h,this.__last_index__=F))),this.__index__>=0};LinkifyIt.prototype.pretest=function e(t){return this.re.pretest.test(t)};LinkifyIt.prototype.testSchemaAt=function e(t,n,r){return this.__compiled__[n.toLowerCase()]?this.__compiled__[n.toLowerCase()].validate(t,r,this):0};LinkifyIt.prototype.match=function e(t){const n=[];let r=0;this.__index__>=0&&this.__text_cache__===t&&(n.push(createMatch(this,r)),r=this.__last_index__);let o=r?t.slice(r):t;for(;this.test(o);)n.push(createMatch(this,r)),o=o.slice(this.__last_index__),r+=this.__last_index__;return n.length?n:null};LinkifyIt.prototype.matchAtStart=function e(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return null;const n=this.re.schema_at_start.exec(t);if(!n)return null;const r=this.testSchemaAt(t,n[2],n[0].length);return r?(this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+r,createMatch(this,0)):null};LinkifyIt.prototype.tlds=function e(t,n){return t=Array.isArray(t)?t:[t],n?(this.__tlds__=this.__tlds__.concat(t).sort().filter(function(r,o,c){return r!==c[o-1]}).reverse(),compile(this),this):(this.__tlds__=t.slice(),this.__tlds_replaced__=!0,compile(this),this)};LinkifyIt.prototype.normalize=function e(t){t.schema||(t.url="http://"+t.url),t.schema==="mailto:"&&!/^mailto:/i.test(t.url)&&(t.url="mailto:"+t.url)};LinkifyIt.prototype.onCompile=function e(){};const maxInt=2147483647,base=36,tMin=1,tMax=26,skew=38,damp=700,initialBias=72,initialN=128,delimiter="-",regexPunycode=/^xn--/,regexNonASCII=/[^\0-\x7F]/,regexSeparators=/[\x2E\u3002\uFF0E\uFF61]/g,errors={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},baseMinusTMin=base-tMin,floor=Math.floor,stringFromCharCode=String.fromCharCode;function error(e){throw new RangeError(errors[e])}function map$1(e,t){const n=[];let r=e.length;for(;r--;)n[r]=t(e[r]);return n}function mapDomain(e,t){const n=e.split("@");let r="";n.length>1&&(r=n[0]+"@",e=n[1]),e=e.replace(regexSeparators,".");const o=e.split("."),c=map$1(o,t).join(".");return r+c}function ucs2decode(e){const t=[];let n=0;const r=e.length;for(;n<r;){const o=e.charCodeAt(n++);if(o>=55296&&o<=56319&&n<r){const c=e.charCodeAt(n++);(c&64512)==56320?t.push(((o&1023)<<10)+(c&1023)+65536):(t.push(o),n--)}else t.push(o)}return t}const ucs2encode=e=>String.fromCodePoint(...e),basicToDigit=function(e){return e>=48&&e<58?26+(e-48):e>=65&&e<91?e-65:e>=97&&e<123?e-97:base},digitToBasic=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},adapt=function(e,t,n){let r=0;for(e=n?floor(e/damp):e>>1,e+=floor(e/t);e>baseMinusTMin*tMax>>1;r+=base)e=floor(e/baseMinusTMin);return floor(r+(baseMinusTMin+1)*e/(e+skew))},decode=function(e){const t=[],n=e.length;let r=0,o=initialN,c=initialBias,h=e.lastIndexOf(delimiter);h<0&&(h=0);for(let F=0;F<h;++F)e.charCodeAt(F)>=128&&error("not-basic"),t.push(e.charCodeAt(F));for(let F=h>0?h+1:0;F<n;){const Y=r;for(let X=1,ee=base;;ee+=base){F>=n&&error("invalid-input");const te=basicToDigit(e.charCodeAt(F++));te>=base&&error("invalid-input"),te>floor((maxInt-r)/X)&&error("overflow"),r+=te*X;const ne=ee<=c?tMin:ee>=c+tMax?tMax:ee-c;if(te<ne)break;const re=base-ne;X>floor(maxInt/re)&&error("overflow"),X*=re}const V=t.length+1;c=adapt(r-Y,V,Y==0),floor(r/V)>maxInt-o&&error("overflow"),o+=floor(r/V),r%=V,t.splice(r++,0,o)}return String.fromCodePoint(...t)},encode=function(e){const t=[];e=ucs2decode(e);const n=e.length;let r=initialN,o=0,c=initialBias;for(const Y of e)Y<128&&t.push(stringFromCharCode(Y));const h=t.length;let F=h;for(h&&t.push(delimiter);F<n;){let Y=maxInt;for(const X of e)X>=r&&X<Y&&(Y=X);const V=F+1;Y-r>floor((maxInt-o)/V)&&error("overflow"),o+=(Y-r)*V,r=Y;for(const X of e)if(X<r&&++o>maxInt&&error("overflow"),X===r){let ee=o;for(let te=base;;te+=base){const ne=te<=c?tMin:te>=c+tMax?tMax:te-c;if(ee<ne)break;const re=ee-ne,ie=base-ne;t.push(stringFromCharCode(digitToBasic(ne+re%ie,0))),ee=floor(re/ie)}t.push(stringFromCharCode(digitToBasic(ee,0))),c=adapt(o,V,F===h),o=0,++F}++o,++r}return t.join("")},toUnicode=function(e){return mapDomain(e,function(t){return regexPunycode.test(t)?decode(t.slice(4).toLowerCase()):t})},toASCII=function(e){return mapDomain(e,function(t){return regexNonASCII.test(t)?"xn--"+encode(t):t})},punycode={version:"2.3.1",ucs2:{decode:ucs2decode,encode:ucs2encode},decode,encode,toASCII,toUnicode},cfg_default={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},cfg_zero={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}},cfg_commonmark={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","fragments_join"]}}},config={default:cfg_default,zero:cfg_zero,commonmark:cfg_commonmark},BAD_PROTO_RE=/^(vbscript|javascript|file|data):/,GOOD_DATA_RE=/^data:image\/(gif|png|jpeg|webp);/;function validateLink(e){const t=e.trim().toLowerCase();return BAD_PROTO_RE.test(t)?GOOD_DATA_RE.test(t):!0}const RECODE_HOSTNAME_FOR=["http:","https:","mailto:"];function normalizeLink(e){const t=urlParse(e,!0);if(t.hostname&&(!t.protocol||RECODE_HOSTNAME_FOR.indexOf(t.protocol)>=0))try{t.hostname=punycode.toASCII(t.hostname)}catch{}return encode$1(format(t))}function normalizeLinkText(e){const t=urlParse(e,!0);if(t.hostname&&(!t.protocol||RECODE_HOSTNAME_FOR.indexOf(t.protocol)>=0))try{t.hostname=punycode.toUnicode(t.hostname)}catch{}return decode$1(format(t),decode$1.defaultChars+"%")}function MarkdownIt(e,t){if(!(this instanceof MarkdownIt))return new MarkdownIt(e,t);t||isString$1(e)||(t=e||{},e="default"),this.inline=new ParserInline,this.block=new ParserBlock,this.core=new Core,this.renderer=new Renderer,this.linkify=new LinkifyIt,this.validateLink=validateLink,this.normalizeLink=normalizeLink,this.normalizeLinkText=normalizeLinkText,this.utils=utils,this.helpers=assign$1({},helpers),this.options={},this.configure(e),t&&this.set(t)}MarkdownIt.prototype.set=function(e){return assign$1(this.options,e),this};MarkdownIt.prototype.configure=function(e){const t=this;if(isString$1(e)){const n=e;if(e=config[n],!e)throw new Error('Wrong `markdown-it` preset "'+n+'", check name')}if(!e)throw new Error("Wrong `markdown-it` preset, can't be empty");return e.options&&t.set(e.options),e.components&&Object.keys(e.components).forEach(function(n){e.components[n].rules&&t[n].ruler.enableOnly(e.components[n].rules),e.components[n].rules2&&t[n].ruler2.enableOnly(e.components[n].rules2)}),this};MarkdownIt.prototype.enable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(o){n=n.concat(this[o].ruler.enable(e,!0))},this),n=n.concat(this.inline.ruler2.enable(e,!0));const r=e.filter(function(o){return n.indexOf(o)<0});if(r.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+r);return this};MarkdownIt.prototype.disable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(o){n=n.concat(this[o].ruler.disable(e,!0))},this),n=n.concat(this.inline.ruler2.disable(e,!0));const r=e.filter(function(o){return n.indexOf(o)<0});if(r.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+r);return this};MarkdownIt.prototype.use=function(e){const t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this};MarkdownIt.prototype.parse=function(e,t){if(typeof e!="string")throw new Error("Input data should be a String");const n=new this.core.State(e,this,t);return this.core.process(n),n.tokens};MarkdownIt.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)};MarkdownIt.prototype.parseInline=function(e,t){const n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens};MarkdownIt.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)};const ALIAS=Symbol.for("yaml.alias"),DOC=Symbol.for("yaml.document"),MAP=Symbol.for("yaml.map"),PAIR=Symbol.for("yaml.pair"),SCALAR$1=Symbol.for("yaml.scalar"),SEQ=Symbol.for("yaml.seq"),NODE_TYPE=Symbol.for("yaml.node.type"),isAlias=e=>!!e&&typeof e=="object"&&e[NODE_TYPE]===ALIAS,isDocument=e=>!!e&&typeof e=="object"&&e[NODE_TYPE]===DOC,isMap=e=>!!e&&typeof e=="object"&&e[NODE_TYPE]===MAP,isPair=e=>!!e&&typeof e=="object"&&e[NODE_TYPE]===PAIR,isScalar=e=>!!e&&typeof e=="object"&&e[NODE_TYPE]===SCALAR$1,isSeq=e=>!!e&&typeof e=="object"&&e[NODE_TYPE]===SEQ;function isCollection(e){if(e&&typeof e=="object")switch(e[NODE_TYPE]){case MAP:case SEQ:return!0}return!1}function isNode(e){if(e&&typeof e=="object")switch(e[NODE_TYPE]){case ALIAS:case MAP:case SCALAR$1:case SEQ:return!0}return!1}const hasAnchor=e=>(isScalar(e)||isCollection(e))&&!!e.anchor,BREAK=Symbol("break visit"),SKIP=Symbol("skip children"),REMOVE=Symbol("remove node");function visit(e,t){const n=initVisitor(t);isDocument(e)?visit_(null,e.contents,n,Object.freeze([e]))===REMOVE&&(e.contents=null):visit_(null,e,n,Object.freeze([]))}visit.BREAK=BREAK;visit.SKIP=SKIP;visit.REMOVE=REMOVE;function visit_(e,t,n,r){const o=callVisitor(e,t,n,r);if(isNode(o)||isPair(o))return replaceNode(e,r,o),visit_(e,o,n,r);if(typeof o!="symbol"){if(isCollection(t)){r=Object.freeze(r.concat(t));for(let c=0;c<t.items.length;++c){const h=visit_(c,t.items[c],n,r);if(typeof h=="number")c=h-1;else{if(h===BREAK)return BREAK;h===REMOVE&&(t.items.splice(c,1),c-=1)}}}else if(isPair(t)){r=Object.freeze(r.concat(t));const c=visit_("key",t.key,n,r);if(c===BREAK)return BREAK;c===REMOVE&&(t.key=null);const h=visit_("value",t.value,n,r);if(h===BREAK)return BREAK;h===REMOVE&&(t.value=null)}}return o}function initVisitor(e){return typeof e=="object"&&(e.Collection||e.Node||e.Value)?Object.assign({Alias:e.Node,Map:e.Node,Scalar:e.Node,Seq:e.Node},e.Value&&{Map:e.Value,Scalar:e.Value,Seq:e.Value},e.Collection&&{Map:e.Collection,Seq:e.Collection},e):e}function callVisitor(e,t,n,r){if(typeof n=="function")return n(e,t,r);if(isMap(t))return n.Map?.(e,t,r);if(isSeq(t))return n.Seq?.(e,t,r);if(isPair(t))return n.Pair?.(e,t,r);if(isScalar(t))return n.Scalar?.(e,t,r);if(isAlias(t))return n.Alias?.(e,t,r)}function replaceNode(e,t,n){const r=t[t.length-1];if(isCollection(r))r.items[e]=n;else if(isPair(r))e==="key"?r.key=n:r.value=n;else if(isDocument(r))r.contents=n;else{const o=isAlias(r)?"alias":"scalar";throw new Error(`Cannot replace node with ${o} parent`)}}const escapeChars={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},escapeTagName=e=>e.replace(/[!,[\]{}]/g,t=>escapeChars[t]);class Directives{constructor(t,n){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},Directives.defaultYaml,t),this.tags=Object.assign({},Directives.defaultTags,n)}clone(){const t=new Directives(this.yaml,this.tags);return t.docStart=this.docStart,t}atDocument(){const t=new Directives(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:Directives.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},Directives.defaultTags);break}return t}add(t,n){this.atNextDocument&&(this.yaml={explicit:Directives.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},Directives.defaultTags),this.atNextDocument=!1);const r=t.trim().split(/[ \t]+/),o=r.shift();switch(o){case"%TAG":{if(r.length!==2&&(n(0,"%TAG directive should contain exactly two parts"),r.length<2))return!1;const[c,h]=r;return this.tags[c]=h,!0}case"%YAML":{if(this.yaml.explicit=!0,r.length!==1)return n(0,"%YAML directive should contain exactly one part"),!1;const[c]=r;if(c==="1.1"||c==="1.2")return this.yaml.version=c,!0;{const h=/^\d+\.\d+$/.test(c);return n(6,`Unsupported YAML version ${c}`,h),!1}}default:return n(0,`Unknown directive ${o}`,!0),!1}}tagName(t,n){if(t==="!")return"!";if(t[0]!=="!")return n(`Not a valid tag: ${t}`),null;if(t[1]==="<"){const h=t.slice(2,-1);return h==="!"||h==="!!"?(n(`Verbatim tags aren't resolved, so ${t} is invalid.`),null):(t[t.length-1]!==">"&&n("Verbatim tags must end with a >"),h)}const[,r,o]=t.match(/^(.*!)([^!]*)$/s);o||n(`The ${t} tag has no suffix`);const c=this.tags[r];if(c)try{return c+decodeURIComponent(o)}catch(h){return n(String(h)),null}return r==="!"?t:(n(`Could not resolve tag: ${t}`),null)}tagString(t){for(const[n,r]of Object.entries(this.tags))if(t.startsWith(r))return n+escapeTagName(t.substring(r.length));return t[0]==="!"?t:`!<${t}>`}toString(t){const n=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],r=Object.entries(this.tags);let o;if(t&&r.length>0&&isNode(t.contents)){const c={};visit(t.contents,(h,F)=>{isNode(F)&&F.tag&&(c[F.tag]=!0)}),o=Object.keys(c)}else o=[];for(const[c,h]of r)c==="!!"&&h==="tag:yaml.org,2002:"||(!t||o.some(F=>F.startsWith(h)))&&n.push(`%TAG ${c} ${h}`);return n.join(`
|
|
75
|
+
`)}}Directives.defaultYaml={explicit:!1,version:"1.2"};Directives.defaultTags={"!!":"tag:yaml.org,2002:"};function anchorIsValid(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 anchorNames(e){const t=new Set;return visit(e,{Value(n,r){r.anchor&&t.add(r.anchor)}}),t}function findNewAnchor(e,t){for(let n=1;;++n){const r=`${e}${n}`;if(!t.has(r))return r}}function createNodeAnchors(e,t){const n=[],r=new Map;let o=null;return{onAnchor:c=>{n.push(c),o??(o=anchorNames(e));const h=findNewAnchor(t,o);return o.add(h),h},setAnchors:()=>{for(const c of n){const h=r.get(c);if(typeof h=="object"&&h.anchor&&(isScalar(h.node)||isCollection(h.node)))h.node.anchor=h.anchor;else{const F=new Error("Failed to resolve repeated object (this should not happen)");throw F.source=c,F}}},sourceObjects:r}}function applyReviver(e,t,n,r){if(r&&typeof r=="object")if(Array.isArray(r))for(let o=0,c=r.length;o<c;++o){const h=r[o],F=applyReviver(e,r,String(o),h);F===void 0?delete r[o]:F!==h&&(r[o]=F)}else if(r instanceof Map)for(const o of Array.from(r.keys())){const c=r.get(o),h=applyReviver(e,r,o,c);h===void 0?r.delete(o):h!==c&&r.set(o,h)}else if(r instanceof Set)for(const o of Array.from(r)){const c=applyReviver(e,r,o,o);c===void 0?r.delete(o):c!==o&&(r.delete(o),r.add(c))}else for(const[o,c]of Object.entries(r)){const h=applyReviver(e,r,o,c);h===void 0?delete r[o]:h!==c&&(r[o]=h)}return e.call(t,n,r)}function toJS(e,t,n){if(Array.isArray(e))return e.map((r,o)=>toJS(r,String(o),n));if(e&&typeof e.toJSON=="function"){if(!n||!hasAnchor(e))return e.toJSON(t,n);const r={aliasCount:0,count:1,res:void 0};n.anchors.set(e,r),n.onCreate=c=>{r.res=c,delete n.onCreate};const o=e.toJSON(t,n);return n.onCreate&&n.onCreate(o),o}return typeof e=="bigint"&&!n?.keep?Number(e):e}class NodeBase{constructor(t){Object.defineProperty(this,NODE_TYPE,{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:o,reviver:c}={}){if(!isDocument(t))throw new TypeError("A document argument is required");const h={anchors:new Map,doc:t,keep:!0,mapAsMap:n===!0,mapKeyWarned:!1,maxAliasCount:typeof r=="number"?r:100},F=toJS(this,"",h);if(typeof o=="function")for(const{count:Y,res:V}of h.anchors.values())o(V,Y);return typeof c=="function"?applyReviver(c,{"":F},"",F):F}}class Alias extends NodeBase{constructor(t){super(ALIAS),this.source=t,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(t,n){let r;n?.aliasResolveCache?r=n.aliasResolveCache:(r=[],visit(t,{Node:(c,h)=>{(isAlias(h)||hasAnchor(h))&&r.push(h)}}),n&&(n.aliasResolveCache=r));let o;for(const c of r){if(c===this)break;c.anchor===this.source&&(o=c)}return o}toJSON(t,n){if(!n)return{source:this.source};const{anchors:r,doc:o,maxAliasCount:c}=n,h=this.resolve(o,n);if(!h){const Y=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(Y)}let F=r.get(h);if(F||(toJS(h,null,n),F=r.get(h)),F?.res===void 0){const Y="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(Y)}if(c>=0&&(F.count+=1,F.aliasCount===0&&(F.aliasCount=getAliasCount(o,h,r)),F.count*F.aliasCount>c)){const Y="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(Y)}return F.res}toString(t,n,r){const o=`*${this.source}`;if(t){if(anchorIsValid(this.source),t.options.verifyAliasOrder&&!t.anchors.has(this.source)){const c=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(c)}if(t.implicitKey)return`${o} `}return o}}function getAliasCount(e,t,n){if(isAlias(t)){const r=t.resolve(e),o=n&&r&&n.get(r);return o?o.count*o.aliasCount:0}else if(isCollection(t)){let r=0;for(const o of t.items){const c=getAliasCount(e,o,n);c>r&&(r=c)}return r}else if(isPair(t)){const r=getAliasCount(e,t.key,n),o=getAliasCount(e,t.value,n);return Math.max(r,o)}return 1}const isScalarValue=e=>!e||typeof e!="function"&&typeof e!="object";class Scalar extends NodeBase{constructor(t){super(SCALAR$1),this.value=t}toJSON(t,n){return n?.keep?this.value:toJS(this.value,t,n)}toString(){return String(this.value)}}Scalar.BLOCK_FOLDED="BLOCK_FOLDED";Scalar.BLOCK_LITERAL="BLOCK_LITERAL";Scalar.PLAIN="PLAIN";Scalar.QUOTE_DOUBLE="QUOTE_DOUBLE";Scalar.QUOTE_SINGLE="QUOTE_SINGLE";const defaultTagPrefix="tag:yaml.org,2002:";function findTagObject(e,t,n){if(t){const r=n.filter(c=>c.tag===t),o=r.find(c=>!c.format)??r[0];if(!o)throw new Error(`Tag ${t} not found`);return o}return n.find(r=>r.identify?.(e)&&!r.format)}function createNode(e,t,n){if(isDocument(e)&&(e=e.contents),isNode(e))return e;if(isPair(e)){const ee=n.schema[MAP].createNode?.(n.schema,null,n);return ee.items.push(e),ee}(e instanceof String||e instanceof Number||e instanceof Boolean||typeof BigInt<"u"&&e instanceof BigInt)&&(e=e.valueOf());const{aliasDuplicateObjects:r,onAnchor:o,onTagObj:c,schema:h,sourceObjects:F}=n;let Y;if(r&&e&&typeof e=="object"){if(Y=F.get(e),Y)return Y.anchor??(Y.anchor=o(e)),new Alias(Y.anchor);Y={anchor:null,node:null},F.set(e,Y)}t?.startsWith("!!")&&(t=defaultTagPrefix+t.slice(2));let V=findTagObject(e,t,h.tags);if(!V){if(e&&typeof e.toJSON=="function"&&(e=e.toJSON()),!e||typeof e!="object"){const ee=new Scalar(e);return Y&&(Y.node=ee),ee}V=e instanceof Map?h[MAP]:Symbol.iterator in Object(e)?h[SEQ]:h[MAP]}c&&(c(V),delete n.onTagObj);const X=V?.createNode?V.createNode(n.schema,e,n):typeof V?.nodeClass?.from=="function"?V.nodeClass.from(n.schema,e,n):new Scalar(e);return t?X.tag=t:V.default||(X.tag=V.tag),Y&&(Y.node=X),X}function collectionFromPath(e,t,n){let r=n;for(let o=t.length-1;o>=0;--o){const c=t[o];if(typeof c=="number"&&Number.isInteger(c)&&c>=0){const h=[];h[c]=r,r=h}else r=new Map([[c,r]])}return createNode(r,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:e,sourceObjects:new Map})}const isEmptyPath=e=>e==null||typeof e=="object"&&!!e[Symbol.iterator]().next().done;class Collection extends NodeBase{constructor(t,n){super(t),Object.defineProperty(this,"schema",{value:n,configurable:!0,enumerable:!1,writable:!0})}clone(t){const n=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return t&&(n.schema=t),n.items=n.items.map(r=>isNode(r)||isPair(r)?r.clone(t):r),this.range&&(n.range=this.range.slice()),n}addIn(t,n){if(isEmptyPath(t))this.add(n);else{const[r,...o]=t,c=this.get(r,!0);if(isCollection(c))c.addIn(o,n);else if(c===void 0&&this.schema)this.set(r,collectionFromPath(this.schema,o,n));else throw new Error(`Expected YAML collection at ${r}. Remaining path: ${o}`)}}deleteIn(t){const[n,...r]=t;if(r.length===0)return this.delete(n);const o=this.get(n,!0);if(isCollection(o))return o.deleteIn(r);throw new Error(`Expected YAML collection at ${n}. Remaining path: ${r}`)}getIn(t,n){const[r,...o]=t,c=this.get(r,!0);return o.length===0?!n&&isScalar(c)?c.value:c:isCollection(c)?c.getIn(o,n):void 0}hasAllNullValues(t){return this.items.every(n=>{if(!isPair(n))return!1;const r=n.value;return r==null||t&&isScalar(r)&&r.value==null&&!r.commentBefore&&!r.comment&&!r.tag})}hasIn(t){const[n,...r]=t;if(r.length===0)return this.has(n);const o=this.get(n,!0);return isCollection(o)?o.hasIn(r):!1}setIn(t,n){const[r,...o]=t;if(o.length===0)this.set(r,n);else{const c=this.get(r,!0);if(isCollection(c))c.setIn(o,n);else if(c===void 0&&this.schema)this.set(r,collectionFromPath(this.schema,o,n));else throw new Error(`Expected YAML collection at ${r}. Remaining path: ${o}`)}}}const stringifyComment=e=>e.replace(/^(?!$)(?: $)?/gm,"#");function indentComment(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}const lineComment=(e,t,n)=>e.endsWith(`
|
|
76
|
+
`)?indentComment(n,t):n.includes(`
|
|
77
|
+
`)?`
|
|
78
|
+
`+indentComment(n,t):(e.endsWith(" ")?"":" ")+n,FOLD_FLOW="flow",FOLD_BLOCK="block",FOLD_QUOTED="quoted";function foldFlowLines(e,t,n="flow",{indentAtStart:r,lineWidth:o=80,minContentWidth:c=20,onFold:h,onOverflow:F}={}){if(!o||o<0)return e;o<c&&(c=0);const Y=Math.max(1+c,1+o-t.length);if(e.length<=Y)return e;const V=[],X={};let ee=o-t.length;typeof r=="number"&&(r>o-Math.max(2,c)?V.push(0):ee=o-r);let te,ne,re=!1,ie=-1,se=-1,oe=-1;n===FOLD_BLOCK&&(ie=consumeMoreIndentedLines(e,ie,t.length),ie!==-1&&(ee=ie+Y));for(let le;le=e[ie+=1];){if(n===FOLD_QUOTED&&le==="\\"){switch(se=ie,e[ie+1]){case"x":ie+=3;break;case"u":ie+=5;break;case"U":ie+=9;break;default:ie+=1}oe=ie}if(le===`
|
|
79
|
+
`)n===FOLD_BLOCK&&(ie=consumeMoreIndentedLines(e,ie,t.length)),ee=ie+t.length+Y,te=void 0;else{if(le===" "&&ne&&ne!==" "&&ne!==`
|
|
80
|
+
`&&ne!==" "){const de=e[ie+1];de&&de!==" "&&de!==`
|
|
81
|
+
`&&de!==" "&&(te=ie)}if(ie>=ee)if(te)V.push(te),ee=te+Y,te=void 0;else if(n===FOLD_QUOTED){for(;ne===" "||ne===" ";)ne=le,le=e[ie+=1],re=!0;const de=ie>oe+1?ie-2:se-1;if(X[de])return e;V.push(de),X[de]=!0,ee=de+Y,te=void 0}else re=!0}ne=le}if(re&&F&&F(),V.length===0)return e;h&&h();let ae=e.slice(0,V[0]);for(let le=0;le<V.length;++le){const de=V[le],he=V[le+1]||e.length;de===0?ae=`
|
|
82
|
+
${t}${e.slice(0,he)}`:(n===FOLD_QUOTED&&X[de]&&(ae+=`${e[de]}\\`),ae+=`
|
|
83
|
+
${t}${e.slice(de+1,he)}`)}return ae}function consumeMoreIndentedLines(e,t,n){let r=t,o=t+1,c=e[o];for(;c===" "||c===" ";)if(t<o+n)c=e[++t];else{do c=e[++t];while(c&&c!==`
|
|
84
|
+
`);r=t,o=t+1,c=e[o]}return r}const getFoldOptions=(e,t)=>({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth}),containsDocumentMarker=e=>/^(%|---|\.\.\.)/m.test(e);function lineLengthOverLimit(e,t,n){if(!t||t<0)return!1;const r=t-n,o=e.length;if(o<=r)return!1;for(let c=0,h=0;c<o;++c)if(e[c]===`
|
|
85
|
+
`){if(c-h>r)return!0;if(h=c+1,o-h<=r)return!1}return!0}function doubleQuotedString(e,t){const n=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return n;const{implicitKey:r}=t,o=t.options.doubleQuotedMinMultiLineLength,c=t.indent||(containsDocumentMarker(e)?" ":"");let h="",F=0;for(let Y=0,V=n[Y];V;V=n[++Y])if(V===" "&&n[Y+1]==="\\"&&n[Y+2]==="n"&&(h+=n.slice(F,Y)+"\\ ",Y+=1,F=Y,V="\\"),V==="\\")switch(n[Y+1]){case"u":{h+=n.slice(F,Y);const X=n.substr(Y+2,4);switch(X){case"0000":h+="\\0";break;case"0007":h+="\\a";break;case"000b":h+="\\v";break;case"001b":h+="\\e";break;case"0085":h+="\\N";break;case"00a0":h+="\\_";break;case"2028":h+="\\L";break;case"2029":h+="\\P";break;default:X.substr(0,2)==="00"?h+="\\x"+X.substr(2):h+=n.substr(Y,6)}Y+=5,F=Y+1}break;case"n":if(r||n[Y+2]==='"'||n.length<o)Y+=1;else{for(h+=n.slice(F,Y)+`
|
|
86
|
+
|
|
87
|
+
`;n[Y+2]==="\\"&&n[Y+3]==="n"&&n[Y+4]!=='"';)h+=`
|
|
88
|
+
`,Y+=2;h+=c,n[Y+2]===" "&&(h+="\\"),Y+=1,F=Y+1}break;default:Y+=1}return h=F?h+n.slice(F):n,r?h:foldFlowLines(h,c,FOLD_QUOTED,getFoldOptions(t,!1))}function singleQuotedString(e,t){if(t.options.singleQuote===!1||t.implicitKey&&e.includes(`
|
|
89
|
+
`)||/[ \t]\n|\n[ \t]/.test(e))return doubleQuotedString(e,t);const n=t.indent||(containsDocumentMarker(e)?" ":""),r="'"+e.replace(/'/g,"''").replace(/\n+/g,`$&
|
|
90
|
+
${n}`)+"'";return t.implicitKey?r:foldFlowLines(r,n,FOLD_FLOW,getFoldOptions(t,!1))}function quotedString(e,t){const{singleQuote:n}=t.options;let r;if(n===!1)r=doubleQuotedString;else{const o=e.includes('"'),c=e.includes("'");o&&!c?r=singleQuotedString:c&&!o?r=doubleQuotedString:r=n?singleQuotedString:doubleQuotedString}return r(e,t)}let blockEndNewlines;try{blockEndNewlines=new RegExp(`(^|(?<!
|
|
91
|
+
))
|
|
92
|
+
+(?!
|
|
93
|
+
|$)`,"g")}catch{blockEndNewlines=/\n+(?!\n|$)/g}function blockString({comment:e,type:t,value:n},r,o,c){const{blockQuote:h,commentString:F,lineWidth:Y}=r.options;if(!h||/\n[\t ]+$/.test(n))return quotedString(n,r);const V=r.indent||(r.forceBlockIndent||containsDocumentMarker(n)?" ":""),X=h==="literal"?!0:h==="folded"||t===Scalar.BLOCK_FOLDED?!1:t===Scalar.BLOCK_LITERAL?!0:!lineLengthOverLimit(n,Y,V.length);if(!n)return X?`|
|
|
94
|
+
`:`>
|
|
95
|
+
`;let ee,te;for(te=n.length;te>0;--te){const he=n[te-1];if(he!==`
|
|
96
|
+
`&&he!==" "&&he!==" ")break}let ne=n.substring(te);const re=ne.indexOf(`
|
|
97
|
+
`);re===-1?ee="-":n===ne||re!==ne.length-1?(ee="+",c&&c()):ee="",ne&&(n=n.slice(0,-ne.length),ne[ne.length-1]===`
|
|
98
|
+
`&&(ne=ne.slice(0,-1)),ne=ne.replace(blockEndNewlines,`$&${V}`));let ie=!1,se,oe=-1;for(se=0;se<n.length;++se){const he=n[se];if(he===" ")ie=!0;else if(he===`
|
|
99
|
+
`)oe=se;else break}let ae=n.substring(0,oe<se?oe+1:se);ae&&(n=n.substring(ae.length),ae=ae.replace(/\n+/g,`$&${V}`));let de=(ie?V?"2":"1":"")+ee;if(e&&(de+=" "+F(e.replace(/ ?[\r\n]+/g," ")),o&&o()),!X){const he=n.replace(/\n+/g,`
|
|
100
|
+
$&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${V}`);let me=!1;const Se=getFoldOptions(r,!0);h!=="folded"&&t!==Scalar.BLOCK_FOLDED&&(Se.onOverflow=()=>{me=!0});const xe=foldFlowLines(`${ae}${he}${ne}`,V,FOLD_BLOCK,Se);if(!me)return`>${de}
|
|
101
|
+
${V}${xe}`}return n=n.replace(/\n+/g,`$&${V}`),`|${de}
|
|
102
|
+
${V}${ae}${n}${ne}`}function plainString(e,t,n,r){const{type:o,value:c}=e,{actualString:h,implicitKey:F,indent:Y,indentStep:V,inFlow:X}=t;if(F&&c.includes(`
|
|
103
|
+
`)||X&&/[[\]{},]/.test(c))return quotedString(c,t);if(/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(c))return F||X||!c.includes(`
|
|
104
|
+
`)?quotedString(c,t):blockString(e,t,n,r);if(!F&&!X&&o!==Scalar.PLAIN&&c.includes(`
|
|
105
|
+
`))return blockString(e,t,n,r);if(containsDocumentMarker(c)){if(Y==="")return t.forceBlockIndent=!0,blockString(e,t,n,r);if(F&&Y===V)return quotedString(c,t)}const ee=c.replace(/\n+/g,`$&
|
|
106
|
+
${Y}`);if(h){const te=ie=>ie.default&&ie.tag!=="tag:yaml.org,2002:str"&&ie.test?.test(ee),{compat:ne,tags:re}=t.doc.schema;if(re.some(te)||ne?.some(te))return quotedString(c,t)}return F?ee:foldFlowLines(ee,Y,FOLD_FLOW,getFoldOptions(t,!1))}function stringifyString(e,t,n,r){const{implicitKey:o,inFlow:c}=t,h=typeof e.value=="string"?e:Object.assign({},e,{value:String(e.value)});let{type:F}=e;F!==Scalar.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(h.value)&&(F=Scalar.QUOTE_DOUBLE);const Y=X=>{switch(X){case Scalar.BLOCK_FOLDED:case Scalar.BLOCK_LITERAL:return o||c?quotedString(h.value,t):blockString(h,t,n,r);case Scalar.QUOTE_DOUBLE:return doubleQuotedString(h.value,t);case Scalar.QUOTE_SINGLE:return singleQuotedString(h.value,t);case Scalar.PLAIN:return plainString(h,t,n,r);default:return null}};let V=Y(F);if(V===null){const{defaultKeyType:X,defaultStringType:ee}=t.options,te=o&&X||ee;if(V=Y(te),V===null)throw new Error(`Unsupported default string type ${te}`)}return V}function createStringifyContext(e,t){const n=Object.assign({blockQuote:!0,commentString:stringifyComment,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 getTagObject(e,t){if(t.tag){const o=e.filter(c=>c.tag===t.tag);if(o.length>0)return o.find(c=>c.format===t.format)??o[0]}let n,r;if(isScalar(t)){r=t.value;let o=e.filter(c=>c.identify?.(r));if(o.length>1){const c=o.filter(h=>h.test);c.length>0&&(o=c)}n=o.find(c=>c.format===t.format)??o.find(c=>!c.format)}else r=t,n=e.find(o=>o.nodeClass&&r instanceof o.nodeClass);if(!n){const o=r?.constructor?.name??(r===null?"null":typeof r);throw new Error(`Tag not resolved for ${o} value`)}return n}function stringifyProps(e,t,{anchors:n,doc:r}){if(!r.directives)return"";const o=[],c=(isScalar(e)||isCollection(e))&&e.anchor;c&&anchorIsValid(c)&&(n.add(c),o.push(`&${c}`));const h=e.tag??(t.default?null:t.tag);return h&&o.push(r.directives.tagString(h)),o.join(" ")}function stringify(e,t,n,r){if(isPair(e))return e.toString(t,n,r);if(isAlias(e)){if(t.doc.directives)return e.toString(t);if(t.resolvedAliases?.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 o;const c=isNode(e)?e:t.doc.createNode(e,{onTagObj:Y=>o=Y});o??(o=getTagObject(t.doc.schema.tags,c));const h=stringifyProps(c,o,t);h.length>0&&(t.indentAtStart=(t.indentAtStart??0)+h.length+1);const F=typeof o.stringify=="function"?o.stringify(c,t,n,r):isScalar(c)?stringifyString(c,t,n,r):c.toString(t,n,r);return h?isScalar(c)||F[0]==="{"||F[0]==="["?`${h} ${F}`:`${h}
|
|
107
|
+
${t.indent}${F}`:F}function stringifyPair({key:e,value:t},n,r,o){const{allNullValues:c,doc:h,indent:F,indentStep:Y,options:{commentString:V,indentSeq:X,simpleKeys:ee}}=n;let te=isNode(e)&&e.comment||null;if(ee){if(te)throw new Error("With simple keys, key nodes cannot have comments");if(isCollection(e)||!isNode(e)&&typeof e=="object"){const Se="With simple keys, collection cannot be used as a key value";throw new Error(Se)}}let ne=!ee&&(!e||te&&t==null&&!n.inFlow||isCollection(e)||(isScalar(e)?e.type===Scalar.BLOCK_FOLDED||e.type===Scalar.BLOCK_LITERAL:typeof e=="object"));n=Object.assign({},n,{allNullValues:!1,implicitKey:!ne&&(ee||!c),indent:F+Y});let re=!1,ie=!1,se=stringify(e,n,()=>re=!0,()=>ie=!0);if(!ne&&!n.inFlow&&se.length>1024){if(ee)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");ne=!0}if(n.inFlow){if(c||t==null)return re&&r&&r(),se===""?"?":ne?`? ${se}`:se}else if(c&&!ee||t==null&&ne)return se=`? ${se}`,te&&!re?se+=lineComment(se,n.indent,V(te)):ie&&o&&o(),se;re&&(te=null),ne?(te&&(se+=lineComment(se,n.indent,V(te))),se=`? ${se}
|
|
108
|
+
${F}:`):(se=`${se}:`,te&&(se+=lineComment(se,n.indent,V(te))));let oe,ae,le;isNode(t)?(oe=!!t.spaceBefore,ae=t.commentBefore,le=t.comment):(oe=!1,ae=null,le=null,t&&typeof t=="object"&&(t=h.createNode(t))),n.implicitKey=!1,!ne&&!te&&isScalar(t)&&(n.indentAtStart=se.length+1),ie=!1,!X&&Y.length>=2&&!n.inFlow&&!ne&&isSeq(t)&&!t.flow&&!t.tag&&!t.anchor&&(n.indent=n.indent.substring(2));let de=!1;const he=stringify(t,n,()=>de=!0,()=>ie=!0);let me=" ";if(te||oe||ae){if(me=oe?`
|
|
109
|
+
`:"",ae){const Se=V(ae);me+=`
|
|
110
|
+
${indentComment(Se,n.indent)}`}he===""&&!n.inFlow?me===`
|
|
111
|
+
`&&le&&(me=`
|
|
112
|
+
|
|
113
|
+
`):me+=`
|
|
114
|
+
${n.indent}`}else if(!ne&&isCollection(t)){const Se=he[0],xe=he.indexOf(`
|
|
115
|
+
`),Te=xe!==-1,$e=n.inFlow??t.flow??t.items.length===0;if(Te||!$e){let Oe=!1;if(Te&&(Se==="&"||Se==="!")){let Fe=he.indexOf(" ");Se==="&"&&Fe!==-1&&Fe<xe&&he[Fe+1]==="!"&&(Fe=he.indexOf(" ",Fe+1)),(Fe===-1||xe<Fe)&&(Oe=!0)}Oe||(me=`
|
|
116
|
+
${n.indent}`)}}else(he===""||he[0]===`
|
|
117
|
+
`)&&(me="");return se+=me+he,n.inFlow?de&&r&&r():le&&!de?se+=lineComment(se,n.indent,V(le)):ie&&o&&o(),se}function warn(e,t){(e==="debug"||e==="warn")&&console.warn(t)}const MERGE_KEY="<<",merge={identify:e=>e===MERGE_KEY||typeof e=="symbol"&&e.description===MERGE_KEY,default:"key",tag:"tag:yaml.org,2002:merge",test:/^<<$/,resolve:()=>Object.assign(new Scalar(Symbol(MERGE_KEY)),{addToJSMap:addMergeToJSMap}),stringify:()=>MERGE_KEY},isMergeKey=(e,t)=>(merge.identify(t)||isScalar(t)&&(!t.type||t.type===Scalar.PLAIN)&&merge.identify(t.value))&&e?.doc.schema.tags.some(n=>n.tag===merge.tag&&n.default);function addMergeToJSMap(e,t,n){if(n=e&&isAlias(n)?n.resolve(e.doc):n,isSeq(n))for(const r of n.items)mergeValue(e,t,r);else if(Array.isArray(n))for(const r of n)mergeValue(e,t,r);else mergeValue(e,t,n)}function mergeValue(e,t,n){const r=e&&isAlias(n)?n.resolve(e.doc):n;if(!isMap(r))throw new Error("Merge sources must be maps or map aliases");const o=r.toJSON(null,e,Map);for(const[c,h]of o)t instanceof Map?t.has(c)||t.set(c,h):t instanceof Set?t.add(c):Object.prototype.hasOwnProperty.call(t,c)||Object.defineProperty(t,c,{value:h,writable:!0,enumerable:!0,configurable:!0});return t}function addPairToJSMap(e,t,{key:n,value:r}){if(isNode(n)&&n.addToJSMap)n.addToJSMap(e,t,r);else if(isMergeKey(e,n))addMergeToJSMap(e,t,r);else{const o=toJS(n,"",e);if(t instanceof Map)t.set(o,toJS(r,o,e));else if(t instanceof Set)t.add(o);else{const c=stringifyKey(n,o,e),h=toJS(r,c,e);c in t?Object.defineProperty(t,c,{value:h,writable:!0,enumerable:!0,configurable:!0}):t[c]=h}}return t}function stringifyKey(e,t,n){if(t===null)return"";if(typeof t!="object")return String(t);if(isNode(e)&&n?.doc){const r=createStringifyContext(n.doc,{});r.anchors=new Set;for(const c of n.anchors.keys())r.anchors.add(c.anchor);r.inFlow=!0,r.inStringifyKey=!0;const o=e.toString(r);if(!n.mapKeyWarned){let c=JSON.stringify(o);c.length>40&&(c=c.substring(0,36)+'..."'),warn(n.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${c}. Set mapAsMap: true to use object keys.`),n.mapKeyWarned=!0}return o}return JSON.stringify(t)}function createPair(e,t,n){const r=createNode(e,void 0,n),o=createNode(t,void 0,n);return new Pair(r,o)}class Pair{constructor(t,n=null){Object.defineProperty(this,NODE_TYPE,{value:PAIR}),this.key=t,this.value=n}clone(t){let{key:n,value:r}=this;return isNode(n)&&(n=n.clone(t)),isNode(r)&&(r=r.clone(t)),new Pair(n,r)}toJSON(t,n){const r=n?.mapAsMap?new Map:{};return addPairToJSMap(n,r,this)}toString(t,n,r){return t?.doc?stringifyPair(this,t,n,r):JSON.stringify(this)}}function stringifyCollection(e,t,n){return(t.inFlow??e.flow?stringifyFlowCollection:stringifyBlockCollection)(e,t,n)}function stringifyBlockCollection({comment:e,items:t},n,{blockItemPrefix:r,flowChars:o,itemIndent:c,onChompKeep:h,onComment:F}){const{indent:Y,options:{commentString:V}}=n,X=Object.assign({},n,{indent:c,type:null});let ee=!1;const te=[];for(let re=0;re<t.length;++re){const ie=t[re];let se=null;if(isNode(ie))!ee&&ie.spaceBefore&&te.push(""),addCommentBefore(n,te,ie.commentBefore,ee),ie.comment&&(se=ie.comment);else if(isPair(ie)){const ae=isNode(ie.key)?ie.key:null;ae&&(!ee&&ae.spaceBefore&&te.push(""),addCommentBefore(n,te,ae.commentBefore,ee))}ee=!1;let oe=stringify(ie,X,()=>se=null,()=>ee=!0);se&&(oe+=lineComment(oe,c,V(se))),ee&&se&&(ee=!1),te.push(r+oe)}let ne;if(te.length===0)ne=o.start+o.end;else{ne=te[0];for(let re=1;re<te.length;++re){const ie=te[re];ne+=ie?`
|
|
118
|
+
${Y}${ie}`:`
|
|
119
|
+
`}}return e?(ne+=`
|
|
120
|
+
`+indentComment(V(e),Y),F&&F()):ee&&h&&h(),ne}function stringifyFlowCollection({items:e},t,{flowChars:n,itemIndent:r}){const{indent:o,indentStep:c,flowCollectionPadding:h,options:{commentString:F}}=t;r+=c;const Y=Object.assign({},t,{indent:r,inFlow:!0,type:null});let V=!1,X=0;const ee=[];for(let re=0;re<e.length;++re){const ie=e[re];let se=null;if(isNode(ie))ie.spaceBefore&&ee.push(""),addCommentBefore(t,ee,ie.commentBefore,!1),ie.comment&&(se=ie.comment);else if(isPair(ie)){const ae=isNode(ie.key)?ie.key:null;ae&&(ae.spaceBefore&&ee.push(""),addCommentBefore(t,ee,ae.commentBefore,!1),ae.comment&&(V=!0));const le=isNode(ie.value)?ie.value:null;le?(le.comment&&(se=le.comment),le.commentBefore&&(V=!0)):ie.value==null&&ae?.comment&&(se=ae.comment)}se&&(V=!0);let oe=stringify(ie,Y,()=>se=null);re<e.length-1&&(oe+=","),se&&(oe+=lineComment(oe,r,F(se))),!V&&(ee.length>X||oe.includes(`
|
|
121
|
+
`))&&(V=!0),ee.push(oe),X=ee.length}const{start:te,end:ne}=n;if(ee.length===0)return te+ne;if(!V){const re=ee.reduce((ie,se)=>ie+se.length+2,2);V=t.options.lineWidth>0&&re>t.options.lineWidth}if(V){let re=te;for(const ie of ee)re+=ie?`
|
|
122
|
+
${c}${o}${ie}`:`
|
|
123
|
+
`;return`${re}
|
|
124
|
+
${o}${ne}`}else return`${te}${h}${ee.join(" ")}${h}${ne}`}function addCommentBefore({indent:e,options:{commentString:t}},n,r,o){if(r&&o&&(r=r.replace(/^\n+/,"")),r){const c=indentComment(t(r),e);n.push(c.trimStart())}}function findPair(e,t){const n=isScalar(t)?t.value:t;for(const r of e)if(isPair(r)&&(r.key===t||r.key===n||isScalar(r.key)&&r.key.value===n))return r}class YAMLMap extends Collection{static get tagName(){return"tag:yaml.org,2002:map"}constructor(t){super(MAP,t),this.items=[]}static from(t,n,r){const{keepUndefined:o,replacer:c}=r,h=new this(t),F=(Y,V)=>{if(typeof c=="function")V=c.call(n,Y,V);else if(Array.isArray(c)&&!c.includes(Y))return;(V!==void 0||o)&&h.items.push(createPair(Y,V,r))};if(n instanceof Map)for(const[Y,V]of n)F(Y,V);else if(n&&typeof n=="object")for(const Y of Object.keys(n))F(Y,n[Y]);return typeof t.sortMapEntries=="function"&&h.items.sort(t.sortMapEntries),h}add(t,n){let r;isPair(t)?r=t:!t||typeof t!="object"||!("key"in t)?r=new Pair(t,t?.value):r=new Pair(t.key,t.value);const o=findPair(this.items,r.key),c=this.schema?.sortMapEntries;if(o){if(!n)throw new Error(`Key ${r.key} already set`);isScalar(o.value)&&isScalarValue(r.value)?o.value.value=r.value:o.value=r.value}else if(c){const h=this.items.findIndex(F=>c(r,F)<0);h===-1?this.items.push(r):this.items.splice(h,0,r)}else this.items.push(r)}delete(t){const n=findPair(this.items,t);return n?this.items.splice(this.items.indexOf(n),1).length>0:!1}get(t,n){const o=findPair(this.items,t)?.value;return(!n&&isScalar(o)?o.value:o)??void 0}has(t){return!!findPair(this.items,t)}set(t,n){this.add(new Pair(t,n),!0)}toJSON(t,n,r){const o=r?new r:n?.mapAsMap?new Map:{};n?.onCreate&&n.onCreate(o);for(const c of this.items)addPairToJSMap(n,o,c);return o}toString(t,n,r){if(!t)return JSON.stringify(this);for(const o of this.items)if(!isPair(o))throw new Error(`Map items must all be pairs; found ${JSON.stringify(o)} instead`);return!t.allNullValues&&this.hasAllNullValues(!1)&&(t=Object.assign({},t,{allNullValues:!0})),stringifyCollection(this,t,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:t.indent||"",onChompKeep:r,onComment:n})}}const map={collection:"map",default:!0,nodeClass:YAMLMap,tag:"tag:yaml.org,2002:map",resolve(e,t){return isMap(e)||t("Expected a mapping for this tag"),e},createNode:(e,t,n)=>YAMLMap.from(e,t,n)};class YAMLSeq extends Collection{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(t){super(SEQ,t),this.items=[]}add(t){this.items.push(t)}delete(t){const n=asItemIndex(t);return typeof n!="number"?!1:this.items.splice(n,1).length>0}get(t,n){const r=asItemIndex(t);if(typeof r!="number")return;const o=this.items[r];return!n&&isScalar(o)?o.value:o}has(t){const n=asItemIndex(t);return typeof n=="number"&&n<this.items.length}set(t,n){const r=asItemIndex(t);if(typeof r!="number")throw new Error(`Expected a valid index, not ${t}.`);const o=this.items[r];isScalar(o)&&isScalarValue(n)?o.value=n:this.items[r]=n}toJSON(t,n){const r=[];n?.onCreate&&n.onCreate(r);let o=0;for(const c of this.items)r.push(toJS(c,String(o++),n));return r}toString(t,n,r){return t?stringifyCollection(this,t,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(t.indent||"")+" ",onChompKeep:r,onComment:n}):JSON.stringify(this)}static from(t,n,r){const{replacer:o}=r,c=new this(t);if(n&&Symbol.iterator in Object(n)){let h=0;for(let F of n){if(typeof o=="function"){const Y=n instanceof Set?F:String(h++);F=o.call(n,Y,F)}c.items.push(createNode(F,void 0,r))}}return c}}function asItemIndex(e){let t=isScalar(e)?e.value:e;return t&&typeof t=="string"&&(t=Number(t)),typeof t=="number"&&Number.isInteger(t)&&t>=0?t:null}const seq={collection:"seq",default:!0,nodeClass:YAMLSeq,tag:"tag:yaml.org,2002:seq",resolve(e,t){return isSeq(e)||t("Expected a sequence for this tag"),e},createNode:(e,t,n)=>YAMLSeq.from(e,t,n)},string={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),stringifyString(e,t,n,r)}},nullTag={identify:e=>e==null,createNode:()=>new Scalar(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new Scalar(null),stringify:({source:e},t)=>typeof e=="string"&&nullTag.test.test(e)?e:t.options.nullStr},boolTag={identify:e=>typeof e=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new Scalar(e[0]==="t"||e[0]==="T"),stringify({source:e,value:t},n){if(e&&boolTag.test.test(e)){const r=e[0]==="t"||e[0]==="T";if(t===r)return e}return t?n.options.trueStr:n.options.falseStr}};function stringifyNumber({format:e,minFractionDigits:t,tag:n,value:r}){if(typeof r=="bigint")return String(r);const o=typeof r=="number"?r:Number(r);if(!isFinite(o))return isNaN(o)?".nan":o<0?"-.inf":".inf";let c=Object.is(r,-0)?"-0":JSON.stringify(r);if(!e&&t&&(!n||n==="tag:yaml.org,2002:float")&&/^\d/.test(c)){let h=c.indexOf(".");h<0&&(h=c.length,c+=".");let F=t-(c.length-h-1);for(;F-- >0;)c+="0"}return c}const floatNaN$1={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:stringifyNumber},floatExp$1={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),stringify(e){const t=Number(e.value);return isFinite(t)?t.toExponential():stringifyNumber(e)}},float$1={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 Scalar(parseFloat(e)),n=e.indexOf(".");return n!==-1&&e[e.length-1]==="0"&&(t.minFractionDigits=e.length-n-1),t},stringify:stringifyNumber},intIdentify$2=e=>typeof e=="bigint"||Number.isInteger(e),intResolve$1=(e,t,n,{intAsBigInt:r})=>r?BigInt(e):parseInt(e.substring(t),n);function intStringify$1(e,t,n){const{value:r}=e;return intIdentify$2(r)&&r>=0?n+r.toString(t):stringifyNumber(e)}const intOct$1={identify:e=>intIdentify$2(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(e,t,n)=>intResolve$1(e,2,8,n),stringify:e=>intStringify$1(e,8,"0o")},int$1={identify:intIdentify$2,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(e,t,n)=>intResolve$1(e,0,10,n),stringify:stringifyNumber},intHex$1={identify:e=>intIdentify$2(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,n)=>intResolve$1(e,2,16,n),stringify:e=>intStringify$1(e,16,"0x")},schema$2=[map,seq,string,nullTag,boolTag,intOct$1,int$1,intHex$1,floatNaN$1,floatExp$1,float$1];function intIdentify$1(e){return typeof e=="bigint"||Number.isInteger(e)}const stringifyJSON=({value:e})=>JSON.stringify(e),jsonScalars=[{identify:e=>typeof e=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:stringifyJSON},{identify:e=>e==null,createNode:()=>new Scalar(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:stringifyJSON},{identify:e=>typeof e=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true$|^false$/,resolve:e=>e==="true",stringify:stringifyJSON},{identify:intIdentify$1,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(e,t,{intAsBigInt:n})=>n?BigInt(e):parseInt(e,10),stringify:({value:e})=>intIdentify$1(e)?e.toString():JSON.stringify(e)},{identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:stringifyJSON}],jsonError={default:!0,tag:"",test:/^/,resolve(e,t){return t(`Unresolved plain scalar ${JSON.stringify(e)}`),e}},schema$1=[map,seq].concat(jsonScalars,jsonError),binary={identify:e=>e instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(e,t){if(typeof atob=="function"){const n=atob(e.replace(/[\n\r]/g,"")),r=new Uint8Array(n.length);for(let o=0;o<n.length;++o)r[o]=n.charCodeAt(o);return r}else return t("This environment does not support reading binary tags; either Buffer or atob is required"),e},stringify({comment:e,type:t,value:n},r,o,c){if(!n)return"";const h=n;let F;if(typeof btoa=="function"){let Y="";for(let V=0;V<h.length;++V)Y+=String.fromCharCode(h[V]);F=btoa(Y)}else throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");if(t??(t=Scalar.BLOCK_LITERAL),t!==Scalar.QUOTE_DOUBLE){const Y=Math.max(r.options.lineWidth-r.indent.length,r.options.minContentWidth),V=Math.ceil(F.length/Y),X=new Array(V);for(let ee=0,te=0;ee<V;++ee,te+=Y)X[ee]=F.substr(te,Y);F=X.join(t===Scalar.BLOCK_LITERAL?`
|
|
125
|
+
`:" ")}return stringifyString({comment:e,type:t,value:F},r,o,c)}};function resolvePairs(e,t){if(isSeq(e))for(let n=0;n<e.items.length;++n){let r=e.items[n];if(!isPair(r)){if(isMap(r)){r.items.length>1&&t("Each pair must have its own sequence indicator");const o=r.items[0]||new Pair(new Scalar(null));if(r.commentBefore&&(o.key.commentBefore=o.key.commentBefore?`${r.commentBefore}
|
|
126
|
+
${o.key.commentBefore}`:r.commentBefore),r.comment){const c=o.value??o.key;c.comment=c.comment?`${r.comment}
|
|
127
|
+
${c.comment}`:r.comment}r=o}e.items[n]=isPair(r)?r:new Pair(r)}}else t("Expected a sequence for this tag");return e}function createPairs(e,t,n){const{replacer:r}=n,o=new YAMLSeq(e);o.tag="tag:yaml.org,2002:pairs";let c=0;if(t&&Symbol.iterator in Object(t))for(let h of t){typeof r=="function"&&(h=r.call(t,String(c++),h));let F,Y;if(Array.isArray(h))if(h.length===2)F=h[0],Y=h[1];else throw new TypeError(`Expected [key, value] tuple: ${h}`);else if(h&&h instanceof Object){const V=Object.keys(h);if(V.length===1)F=V[0],Y=h[F];else throw new TypeError(`Expected tuple with one key, not ${V.length} keys`)}else F=h;o.items.push(createPair(F,Y,n))}return o}const pairs={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:resolvePairs,createNode:createPairs};class YAMLOMap extends YAMLSeq{constructor(){super(),this.add=YAMLMap.prototype.add.bind(this),this.delete=YAMLMap.prototype.delete.bind(this),this.get=YAMLMap.prototype.get.bind(this),this.has=YAMLMap.prototype.has.bind(this),this.set=YAMLMap.prototype.set.bind(this),this.tag=YAMLOMap.tag}toJSON(t,n){if(!n)return super.toJSON(t);const r=new Map;n?.onCreate&&n.onCreate(r);for(const o of this.items){let c,h;if(isPair(o)?(c=toJS(o.key,"",n),h=toJS(o.value,c,n)):c=toJS(o,"",n),r.has(c))throw new Error("Ordered maps must not include duplicate keys");r.set(c,h)}return r}static from(t,n,r){const o=createPairs(t,n,r),c=new this;return c.items=o.items,c}}YAMLOMap.tag="tag:yaml.org,2002:omap";const omap={collection:"seq",identify:e=>e instanceof Map,nodeClass:YAMLOMap,default:!1,tag:"tag:yaml.org,2002:omap",resolve(e,t){const n=resolvePairs(e,t),r=[];for(const{key:o}of n.items)isScalar(o)&&(r.includes(o.value)?t(`Ordered maps must not include duplicate keys: ${o.value}`):r.push(o.value));return Object.assign(new YAMLOMap,n)},createNode:(e,t,n)=>YAMLOMap.from(e,t,n)};function boolStringify({value:e,source:t},n){return t&&(e?trueTag:falseTag).test.test(t)?t:e?n.options.trueStr:n.options.falseStr}const trueTag={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 Scalar(!0),stringify:boolStringify},falseTag={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 Scalar(!1),stringify:boolStringify},floatNaN={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:stringifyNumber},floatExp={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():stringifyNumber(e)}},float={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 Scalar(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:stringifyNumber},intIdentify=e=>typeof e=="bigint"||Number.isInteger(e);function intResolve(e,t,n,{intAsBigInt:r}){const o=e[0];if((o==="-"||o==="+")&&(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 h=BigInt(e);return o==="-"?BigInt(-1)*h:h}const c=parseInt(e,n);return o==="-"?-1*c:c}function intStringify(e,t,n){const{value:r}=e;if(intIdentify(r)){const o=r.toString(t);return r<0?"-"+n+o.substr(1):n+o}return stringifyNumber(e)}const intBin={identify:intIdentify,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,n)=>intResolve(e,2,2,n),stringify:e=>intStringify(e,2,"0b")},intOct={identify:intIdentify,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(e,t,n)=>intResolve(e,1,8,n),stringify:e=>intStringify(e,8,"0")},int={identify:intIdentify,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,n)=>intResolve(e,0,10,n),stringify:stringifyNumber},intHex={identify:intIdentify,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,n)=>intResolve(e,2,16,n),stringify:e=>intStringify(e,16,"0x")};class YAMLSet extends YAMLMap{constructor(t){super(t),this.tag=YAMLSet.tag}add(t){let n;isPair(t)?n=t:t&&typeof t=="object"&&"key"in t&&"value"in t&&t.value===null?n=new Pair(t.key,null):n=new Pair(t,null),findPair(this.items,n.key)||this.items.push(n)}get(t,n){const r=findPair(this.items,t);return!n&&isPair(r)?isScalar(r.key)?r.key.value:r.key:r}set(t,n){if(typeof n!="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof n}`);const r=findPair(this.items,t);r&&!n?this.items.splice(this.items.indexOf(r),1):!r&&n&&this.items.push(new Pair(t))}toJSON(t,n){return super.toJSON(t,n,Set)}toString(t,n,r){if(!t)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},t,{allNullValues:!0}),n,r);throw new Error("Set items must all have null values")}static from(t,n,r){const{replacer:o}=r,c=new this(t);if(n&&Symbol.iterator in Object(n))for(let h of n)typeof o=="function"&&(h=o.call(n,h,h)),c.items.push(createPair(h,null,r));return c}}YAMLSet.tag="tag:yaml.org,2002:set";const set={collection:"map",identify:e=>e instanceof Set,nodeClass:YAMLSet,default:!1,tag:"tag:yaml.org,2002:set",createNode:(e,t,n)=>YAMLSet.from(e,t,n),resolve(e,t){if(isMap(e)){if(e.hasAllNullValues(!0))return Object.assign(new YAMLSet,e);t("Set items must all have null values")}else t("Expected a mapping for this tag");return e}};function parseSexagesimal(e,t){const n=e[0],r=n==="-"||n==="+"?e.substring(1):e,o=h=>t?BigInt(h):Number(h),c=r.replace(/_/g,"").split(":").reduce((h,F)=>h*o(60)+o(F),o(0));return n==="-"?o(-1)*c:c}function stringifySexagesimal(e){let{value:t}=e,n=h=>h;if(typeof t=="bigint")n=h=>BigInt(h);else if(isNaN(t)||!isFinite(t))return stringifyNumber(e);let r="";t<0&&(r="-",t*=n(-1));const o=n(60),c=[t%o];return t<60?c.unshift(0):(t=(t-c[0])/o,c.unshift(t%o),t>=60&&(t=(t-c[0])/o,c.unshift(t))),r+c.map(h=>String(h).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}const intTime={identify:e=>typeof e=="bigint"||Number.isInteger(e),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(e,t,{intAsBigInt:n})=>parseSexagesimal(e,n),stringify:stringifySexagesimal},floatTime={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:e=>parseSexagesimal(e,!1),stringify:stringifySexagesimal},timestamp={identify:e=>e instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),resolve(e){const t=e.match(timestamp.test);if(!t)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");const[,n,r,o,c,h,F]=t.map(Number),Y=t[7]?Number((t[7]+"00").substr(1,3)):0;let V=Date.UTC(n,r-1,o,c||0,h||0,F||0,Y);const X=t[8];if(X&&X!=="Z"){let ee=parseSexagesimal(X,!1);Math.abs(ee)<30&&(ee*=60),V-=6e4*ee}return new Date(V)},stringify:({value:e})=>e?.toISOString().replace(/(T00:00:00)?\.000Z$/,"")??""},schema=[map,seq,string,nullTag,trueTag,falseTag,intBin,intOct,int,intHex,floatNaN,floatExp,float,binary,merge,omap,pairs,set,intTime,floatTime,timestamp],schemas=new Map([["core",schema$2],["failsafe",[map,seq,string]],["json",schema$1],["yaml11",schema],["yaml-1.1",schema]]),tagsByName={binary,bool:boolTag,float:float$1,floatExp:floatExp$1,floatNaN:floatNaN$1,floatTime,int:int$1,intHex:intHex$1,intOct:intOct$1,intTime,map,merge,null:nullTag,omap,pairs,seq,set,timestamp},coreKnownTags={"tag:yaml.org,2002:binary":binary,"tag:yaml.org,2002:merge":merge,"tag:yaml.org,2002:omap":omap,"tag:yaml.org,2002:pairs":pairs,"tag:yaml.org,2002:set":set,"tag:yaml.org,2002:timestamp":timestamp};function getTags(e,t,n){const r=schemas.get(t);if(r&&!e)return n&&!r.includes(merge)?r.concat(merge):r.slice();let o=r;if(!o)if(Array.isArray(e))o=[];else{const c=Array.from(schemas.keys()).filter(h=>h!=="yaml11").map(h=>JSON.stringify(h)).join(", ");throw new Error(`Unknown schema "${t}"; use one of ${c} or define customTags array`)}if(Array.isArray(e))for(const c of e)o=o.concat(c);else typeof e=="function"&&(o=e(o.slice()));return n&&(o=o.concat(merge)),o.reduce((c,h)=>{const F=typeof h=="string"?tagsByName[h]:h;if(!F){const Y=JSON.stringify(h),V=Object.keys(tagsByName).map(X=>JSON.stringify(X)).join(", ");throw new Error(`Unknown custom tag ${Y}; use one of ${V}`)}return c.includes(F)||c.push(F),c},[])}const sortMapEntriesByKey=(e,t)=>e.key<t.key?-1:e.key>t.key?1:0;class Schema{constructor({compat:t,customTags:n,merge:r,resolveKnownTags:o,schema:c,sortMapEntries:h,toStringDefaults:F}){this.compat=Array.isArray(t)?getTags(t,"compat"):t?getTags(null,t):null,this.name=typeof c=="string"&&c||"core",this.knownTags=o?coreKnownTags:{},this.tags=getTags(n,this.name,r),this.toStringOptions=F??null,Object.defineProperty(this,MAP,{value:map}),Object.defineProperty(this,SCALAR$1,{value:string}),Object.defineProperty(this,SEQ,{value:seq}),this.sortMapEntries=typeof h=="function"?h:h===!0?sortMapEntriesByKey:null}clone(){const t=Object.create(Schema.prototype,Object.getOwnPropertyDescriptors(this));return t.tags=this.tags.slice(),t}}function stringifyDocument(e,t){const n=[];let r=t.directives===!0;if(t.directives!==!1&&e.directives){const Y=e.directives.toString(e);Y?(n.push(Y),r=!0):e.directives.docStart&&(r=!0)}r&&n.push("---");const o=createStringifyContext(e,t),{commentString:c}=o.options;if(e.commentBefore){n.length!==1&&n.unshift("");const Y=c(e.commentBefore);n.unshift(indentComment(Y,""))}let h=!1,F=null;if(e.contents){if(isNode(e.contents)){if(e.contents.spaceBefore&&r&&n.push(""),e.contents.commentBefore){const X=c(e.contents.commentBefore);n.push(indentComment(X,""))}o.forceBlockIndent=!!e.comment,F=e.contents.comment}const Y=F?void 0:()=>h=!0;let V=stringify(e.contents,o,()=>F=null,Y);F&&(V+=lineComment(V,"",c(F))),(V[0]==="|"||V[0]===">")&&n[n.length-1]==="---"?n[n.length-1]=`--- ${V}`:n.push(V)}else n.push(stringify(e.contents,o));if(e.directives?.docEnd)if(e.comment){const Y=c(e.comment);Y.includes(`
|
|
128
|
+
`)?(n.push("..."),n.push(indentComment(Y,""))):n.push(`... ${Y}`)}else n.push("...");else{let Y=e.comment;Y&&h&&(Y=Y.replace(/^\n+/,"")),Y&&((!h||F)&&n[n.length-1]!==""&&n.push(""),n.push(indentComment(c(Y),"")))}return n.join(`
|
|
129
|
+
`)+`
|
|
130
|
+
`}class Document{constructor(t,n,r){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,NODE_TYPE,{value:DOC});let o=null;typeof n=="function"||Array.isArray(n)?o=n:r===void 0&&n&&(r=n,n=void 0);const c=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,stringKeys:!1,uniqueKeys:!0,version:"1.2"},r);this.options=c;let{version:h}=c;r?._directives?(this.directives=r._directives.atDocument(),this.directives.yaml.explicit&&(h=this.directives.yaml.version)):this.directives=new Directives({version:h}),this.setSchema(h,r),this.contents=t===void 0?null:this.createNode(t,o,r)}clone(){const t=Object.create(Document.prototype,{[NODE_TYPE]:{value:DOC}});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=isNode(this.contents)?this.contents.clone(t.schema):this.contents,this.range&&(t.range=this.range.slice()),t}add(t){assertCollection(this.contents)&&this.contents.add(t)}addIn(t,n){assertCollection(this.contents)&&this.contents.addIn(t,n)}createAlias(t,n){if(!t.anchor){const r=anchorNames(this);t.anchor=!n||r.has(n)?findNewAnchor(n||"a",r):n}return new Alias(t.anchor)}createNode(t,n,r){let o;if(typeof n=="function")t=n.call({"":t},"",t),o=n;else if(Array.isArray(n)){const se=ae=>typeof ae=="number"||ae instanceof String||ae instanceof Number,oe=n.filter(se).map(String);oe.length>0&&(n=n.concat(oe)),o=n}else r===void 0&&n&&(r=n,n=void 0);const{aliasDuplicateObjects:c,anchorPrefix:h,flow:F,keepUndefined:Y,onTagObj:V,tag:X}=r??{},{onAnchor:ee,setAnchors:te,sourceObjects:ne}=createNodeAnchors(this,h||"a"),re={aliasDuplicateObjects:c??!0,keepUndefined:Y??!1,onAnchor:ee,onTagObj:V,replacer:o,schema:this.schema,sourceObjects:ne},ie=createNode(t,X,re);return F&&isCollection(ie)&&(ie.flow=!0),te(),ie}createPair(t,n,r={}){const o=this.createNode(t,null,r),c=this.createNode(n,null,r);return new Pair(o,c)}delete(t){return assertCollection(this.contents)?this.contents.delete(t):!1}deleteIn(t){return isEmptyPath(t)?this.contents==null?!1:(this.contents=null,!0):assertCollection(this.contents)?this.contents.deleteIn(t):!1}get(t,n){return isCollection(this.contents)?this.contents.get(t,n):void 0}getIn(t,n){return isEmptyPath(t)?!n&&isScalar(this.contents)?this.contents.value:this.contents:isCollection(this.contents)?this.contents.getIn(t,n):void 0}has(t){return isCollection(this.contents)?this.contents.has(t):!1}hasIn(t){return isEmptyPath(t)?this.contents!==void 0:isCollection(this.contents)?this.contents.hasIn(t):!1}set(t,n){this.contents==null?this.contents=collectionFromPath(this.schema,[t],n):assertCollection(this.contents)&&this.contents.set(t,n)}setIn(t,n){isEmptyPath(t)?this.contents=n:this.contents==null?this.contents=collectionFromPath(this.schema,Array.from(t),n):assertCollection(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 Directives({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 Directives({version:t}),r={resolveKnownTags:!0,schema:"core"};break;case null:this.directives&&delete this.directives,r=null;break;default:{const o=JSON.stringify(t);throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${o}`)}}if(n.schema instanceof Object)this.schema=n.schema;else if(r)this.schema=new Schema(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:o,onAnchor:c,reviver:h}={}){const F={anchors:new Map,doc:this,keep:!t,mapAsMap:r===!0,mapKeyWarned:!1,maxAliasCount:typeof o=="number"?o:100},Y=toJS(this.contents,n??"",F);if(typeof c=="function")for(const{count:V,res:X}of F.anchors.values())c(X,V);return typeof h=="function"?applyReviver(h,{"":Y},"",Y):Y}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.indent);throw new Error(`"indent" option must be a positive integer, not ${n}`)}return stringifyDocument(this,t)}}function assertCollection(e){if(isCollection(e))return!0;throw new Error("Expected a YAML collection as document contents")}class YAMLError extends Error{constructor(t,n,r,o){super(),this.name=t,this.code=r,this.message=o,this.pos=n}}class YAMLParseError extends YAMLError{constructor(t,n,r){super("YAMLParseError",t,n,r)}}class YAMLWarning extends YAMLError{constructor(t,n,r){super("YAMLWarning",t,n,r)}}const prettifyError=(e,t)=>n=>{if(n.pos[0]===-1)return;n.linePos=n.pos.map(F=>t.linePos(F));const{line:r,col:o}=n.linePos[0];n.message+=` at line ${r}, column ${o}`;let c=o-1,h=e.substring(t.lineStarts[r-1],t.lineStarts[r]).replace(/[\n\r]+$/,"");if(c>=60&&h.length>80){const F=Math.min(c-39,h.length-79);h="…"+h.substring(F),c-=F-1}if(h.length>80&&(h=h.substring(0,79)+"…"),r>1&&/^ *$/.test(h.substring(0,c))){let F=e.substring(t.lineStarts[r-2],t.lineStarts[r-1]);F.length>80&&(F=F.substring(0,79)+`…
|
|
131
|
+
`),h=F+h}if(/[^ ]/.test(h)){let F=1;const Y=n.linePos[1];Y?.line===r&&Y.col>o&&(F=Math.max(1,Math.min(Y.col-o,80-c)));const V=" ".repeat(c)+"^".repeat(F);n.message+=`:
|
|
132
|
+
|
|
133
|
+
${h}
|
|
134
|
+
${V}
|
|
135
|
+
`}};function resolveProps(e,{flow:t,indicator:n,next:r,offset:o,onError:c,parentIndent:h,startOnNewline:F}){let Y=!1,V=F,X=F,ee="",te="",ne=!1,re=!1,ie=null,se=null,oe=null,ae=null,le=null,de=null,he=null;for(const xe of e)switch(re&&(xe.type!=="space"&&xe.type!=="newline"&&xe.type!=="comma"&&c(xe.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),re=!1),ie&&(V&&xe.type!=="comment"&&xe.type!=="newline"&&c(ie,"TAB_AS_INDENT","Tabs are not allowed as indentation"),ie=null),xe.type){case"space":!t&&(n!=="doc-start"||r?.type!=="flow-collection")&&xe.source.includes(" ")&&(ie=xe),X=!0;break;case"comment":{X||c(xe,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const Te=xe.source.substring(1)||" ";ee?ee+=te+Te:ee=Te,te="",V=!1;break}case"newline":V?ee?ee+=xe.source:(!de||n!=="seq-item-ind")&&(Y=!0):te+=xe.source,V=!0,ne=!0,(se||oe)&&(ae=xe),X=!0;break;case"anchor":se&&c(xe,"MULTIPLE_ANCHORS","A node can have at most one anchor"),xe.source.endsWith(":")&&c(xe.offset+xe.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),se=xe,he??(he=xe.offset),V=!1,X=!1,re=!0;break;case"tag":{oe&&c(xe,"MULTIPLE_TAGS","A node can have at most one tag"),oe=xe,he??(he=xe.offset),V=!1,X=!1,re=!0;break}case n:(se||oe)&&c(xe,"BAD_PROP_ORDER",`Anchors and tags must be after the ${xe.source} indicator`),de&&c(xe,"UNEXPECTED_TOKEN",`Unexpected ${xe.source} in ${t??"collection"}`),de=xe,V=n==="seq-item-ind"||n==="explicit-key-ind",X=!1;break;case"comma":if(t){le&&c(xe,"UNEXPECTED_TOKEN",`Unexpected , in ${t}`),le=xe,V=!1,X=!1;break}default:c(xe,"UNEXPECTED_TOKEN",`Unexpected ${xe.type} token`),V=!1,X=!1}const me=e[e.length-1],Se=me?me.offset+me.source.length:o;return re&&r&&r.type!=="space"&&r.type!=="newline"&&r.type!=="comma"&&(r.type!=="scalar"||r.source!=="")&&c(r.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),ie&&(V&&ie.indent<=h||r?.type==="block-map"||r?.type==="block-seq")&&c(ie,"TAB_AS_INDENT","Tabs are not allowed as indentation"),{comma:le,found:de,spaceBefore:Y,comment:ee,hasNewline:ne,anchor:se,tag:oe,newlineAfterProp:ae,end:Se,start:he??Se}}function containsNewline(e){if(!e)return null;switch(e.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(e.source.includes(`
|
|
136
|
+
`))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(containsNewline(t.key)||containsNewline(t.value))return!0}return!1;default:return!0}}function flowIndentCheck(e,t,n){if(t?.type==="flow-collection"){const r=t.end[0];r.indent===e&&(r.source==="]"||r.source==="}")&&containsNewline(t)&&n(r,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}function mapIncludes(e,t,n){const{uniqueKeys:r}=e.options;if(r===!1)return!1;const o=typeof r=="function"?r:(c,h)=>c===h||isScalar(c)&&isScalar(h)&&c.value===h.value;return t.some(c=>o(c.key,n))}const startColMsg="All mapping items must start at the same column";function resolveBlockMap({composeNode:e,composeEmptyNode:t},n,r,o,c){const h=c?.nodeClass??YAMLMap,F=new h(n.schema);n.atRoot&&(n.atRoot=!1);let Y=r.offset,V=null;for(const X of r.items){const{start:ee,key:te,sep:ne,value:re}=X,ie=resolveProps(ee,{indicator:"explicit-key-ind",next:te??ne?.[0],offset:Y,onError:o,parentIndent:r.indent,startOnNewline:!0}),se=!ie.found;if(se){if(te&&(te.type==="block-seq"?o(Y,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in te&&te.indent!==r.indent&&o(Y,"BAD_INDENT",startColMsg)),!ie.anchor&&!ie.tag&&!ne){V=ie.end,ie.comment&&(F.comment?F.comment+=`
|
|
137
|
+
`+ie.comment:F.comment=ie.comment);continue}(ie.newlineAfterProp||containsNewline(te))&&o(te??ee[ee.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else ie.found?.indent!==r.indent&&o(Y,"BAD_INDENT",startColMsg);n.atKey=!0;const oe=ie.end,ae=te?e(n,te,ie,o):t(n,oe,ee,null,ie,o);n.schema.compat&&flowIndentCheck(r.indent,te,o),n.atKey=!1,mapIncludes(n,F.items,ae)&&o(oe,"DUPLICATE_KEY","Map keys must be unique");const le=resolveProps(ne??[],{indicator:"map-value-ind",next:re,offset:ae.range[2],onError:o,parentIndent:r.indent,startOnNewline:!te||te.type==="block-scalar"});if(Y=le.end,le.found){se&&(re?.type==="block-map"&&!le.hasNewline&&o(Y,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),n.options.strict&&ie.start<le.found.offset-1024&&o(ae.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));const de=re?e(n,re,le,o):t(n,Y,ne,null,le,o);n.schema.compat&&flowIndentCheck(r.indent,re,o),Y=de.range[2];const he=new Pair(ae,de);n.options.keepSourceTokens&&(he.srcToken=X),F.items.push(he)}else{se&&o(ae.range,"MISSING_CHAR","Implicit map keys need to be followed by map values"),le.comment&&(ae.comment?ae.comment+=`
|
|
138
|
+
`+le.comment:ae.comment=le.comment);const de=new Pair(ae);n.options.keepSourceTokens&&(de.srcToken=X),F.items.push(de)}}return V&&V<Y&&o(V,"IMPOSSIBLE","Map comment with trailing content"),F.range=[r.offset,Y,V??Y],F}function resolveBlockSeq({composeNode:e,composeEmptyNode:t},n,r,o,c){const h=c?.nodeClass??YAMLSeq,F=new h(n.schema);n.atRoot&&(n.atRoot=!1),n.atKey&&(n.atKey=!1);let Y=r.offset,V=null;for(const{start:X,value:ee}of r.items){const te=resolveProps(X,{indicator:"seq-item-ind",next:ee,offset:Y,onError:o,parentIndent:r.indent,startOnNewline:!0});if(!te.found)if(te.anchor||te.tag||ee)ee?.type==="block-seq"?o(te.end,"BAD_INDENT","All sequence items must start at the same column"):o(Y,"MISSING_CHAR","Sequence item without - indicator");else{V=te.end,te.comment&&(F.comment=te.comment);continue}const ne=ee?e(n,ee,te,o):t(n,te.end,X,null,te,o);n.schema.compat&&flowIndentCheck(r.indent,ee,o),Y=ne.range[2],F.items.push(ne)}return F.range=[r.offset,Y,V??Y],F}function resolveEnd(e,t,n,r){let o="";if(e){let c=!1,h="";for(const F of e){const{source:Y,type:V}=F;switch(V){case"space":c=!0;break;case"comment":{n&&!c&&r(F,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const X=Y.substring(1)||" ";o?o+=h+X:o=X,h="";break}case"newline":o&&(h+=Y),c=!0;break;default:r(F,"UNEXPECTED_TOKEN",`Unexpected ${V} at node end`)}t+=Y.length}}return{comment:o,offset:t}}const blockMsg="Block collections are not allowed within flow collections",isBlock=e=>e&&(e.type==="block-map"||e.type==="block-seq");function resolveFlowCollection({composeNode:e,composeEmptyNode:t},n,r,o,c){const h=r.start.source==="{",F=h?"flow map":"flow sequence",Y=c?.nodeClass??(h?YAMLMap:YAMLSeq),V=new Y(n.schema);V.flow=!0;const X=n.atRoot;X&&(n.atRoot=!1),n.atKey&&(n.atKey=!1);let ee=r.offset+r.start.source.length;for(let se=0;se<r.items.length;++se){const oe=r.items[se],{start:ae,key:le,sep:de,value:he}=oe,me=resolveProps(ae,{flow:F,indicator:"explicit-key-ind",next:le??de?.[0],offset:ee,onError:o,parentIndent:r.indent,startOnNewline:!1});if(!me.found){if(!me.anchor&&!me.tag&&!de&&!he){se===0&&me.comma?o(me.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${F}`):se<r.items.length-1&&o(me.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${F}`),me.comment&&(V.comment?V.comment+=`
|
|
139
|
+
`+me.comment:V.comment=me.comment),ee=me.end;continue}!h&&n.options.strict&&containsNewline(le)&&o(le,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(se===0)me.comma&&o(me.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${F}`);else if(me.comma||o(me.start,"MISSING_CHAR",`Missing , between ${F} items`),me.comment){let Se="";e:for(const xe of ae)switch(xe.type){case"comma":case"space":break;case"comment":Se=xe.source.substring(1);break e;default:break e}if(Se){let xe=V.items[V.items.length-1];isPair(xe)&&(xe=xe.value??xe.key),xe.comment?xe.comment+=`
|
|
140
|
+
`+Se:xe.comment=Se,me.comment=me.comment.substring(Se.length+1)}}if(!h&&!de&&!me.found){const Se=he?e(n,he,me,o):t(n,me.end,de,null,me,o);V.items.push(Se),ee=Se.range[2],isBlock(he)&&o(Se.range,"BLOCK_IN_FLOW",blockMsg)}else{n.atKey=!0;const Se=me.end,xe=le?e(n,le,me,o):t(n,Se,ae,null,me,o);isBlock(le)&&o(xe.range,"BLOCK_IN_FLOW",blockMsg),n.atKey=!1;const Te=resolveProps(de??[],{flow:F,indicator:"map-value-ind",next:he,offset:xe.range[2],onError:o,parentIndent:r.indent,startOnNewline:!1});if(Te.found){if(!h&&!me.found&&n.options.strict){if(de)for(const Fe of de){if(Fe===Te.found)break;if(Fe.type==="newline"){o(Fe,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}me.start<Te.found.offset-1024&&o(Te.found,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit flow sequence key")}}else he&&("source"in he&&he.source?.[0]===":"?o(he,"MISSING_CHAR",`Missing space after : in ${F}`):o(Te.start,"MISSING_CHAR",`Missing , or : between ${F} items`));const $e=he?e(n,he,Te,o):Te.found?t(n,Te.end,de,null,Te,o):null;$e?isBlock(he)&&o($e.range,"BLOCK_IN_FLOW",blockMsg):Te.comment&&(xe.comment?xe.comment+=`
|
|
141
|
+
`+Te.comment:xe.comment=Te.comment);const Oe=new Pair(xe,$e);if(n.options.keepSourceTokens&&(Oe.srcToken=oe),h){const Fe=V;mapIncludes(n,Fe.items,xe)&&o(Se,"DUPLICATE_KEY","Map keys must be unique"),Fe.items.push(Oe)}else{const Fe=new YAMLMap(n.schema);Fe.flow=!0,Fe.items.push(Oe);const Re=($e??xe).range;Fe.range=[xe.range[0],Re[1],Re[2]],V.items.push(Fe)}ee=$e?$e.range[2]:Te.end}}const te=h?"}":"]",[ne,...re]=r.end;let ie=ee;if(ne?.source===te)ie=ne.offset+ne.source.length;else{const se=F[0].toUpperCase()+F.substring(1),oe=X?`${se} must end with a ${te}`:`${se} in block collection must be sufficiently indented and end with a ${te}`;o(ee,X?"MISSING_CHAR":"BAD_INDENT",oe),ne&&ne.source.length!==1&&re.unshift(ne)}if(re.length>0){const se=resolveEnd(re,ie,n.options.strict,o);se.comment&&(V.comment?V.comment+=`
|
|
142
|
+
`+se.comment:V.comment=se.comment),V.range=[r.offset,ie,se.offset]}else V.range=[r.offset,ie,ie];return V}function resolveCollection(e,t,n,r,o,c){const h=n.type==="block-map"?resolveBlockMap(e,t,n,r,c):n.type==="block-seq"?resolveBlockSeq(e,t,n,r,c):resolveFlowCollection(e,t,n,r,c),F=h.constructor;return o==="!"||o===F.tagName?(h.tag=F.tagName,h):(o&&(h.tag=o),h)}function composeCollection(e,t,n,r,o){const c=r.tag,h=c?t.directives.tagName(c.source,te=>o(c,"TAG_RESOLVE_FAILED",te)):null;if(n.type==="block-seq"){const{anchor:te,newlineAfterProp:ne}=r,re=te&&c?te.offset>c.offset?te:c:te??c;re&&(!ne||ne.offset<re.offset)&&o(re,"MISSING_CHAR","Missing newline after block sequence props")}const F=n.type==="block-map"?"map":n.type==="block-seq"?"seq":n.start.source==="{"?"map":"seq";if(!c||!h||h==="!"||h===YAMLMap.tagName&&F==="map"||h===YAMLSeq.tagName&&F==="seq")return resolveCollection(e,t,n,o,h);let Y=t.schema.tags.find(te=>te.tag===h&&te.collection===F);if(!Y){const te=t.schema.knownTags[h];if(te?.collection===F)t.schema.tags.push(Object.assign({},te,{default:!1})),Y=te;else return te?o(c,"BAD_COLLECTION_TYPE",`${te.tag} used for ${F} collection, but expects ${te.collection??"scalar"}`,!0):o(c,"TAG_RESOLVE_FAILED",`Unresolved tag: ${h}`,!0),resolveCollection(e,t,n,o,h)}const V=resolveCollection(e,t,n,o,h,Y),X=Y.resolve?.(V,te=>o(c,"TAG_RESOLVE_FAILED",te),t.options)??V,ee=isNode(X)?X:new Scalar(X);return ee.range=V.range,ee.tag=h,Y?.format&&(ee.format=Y.format),ee}function resolveBlockScalar(e,t,n){const r=t.offset,o=parseBlockScalarHeader(t,e.options.strict,n);if(!o)return{value:"",type:null,comment:"",range:[r,r,r]};const c=o.mode===">"?Scalar.BLOCK_FOLDED:Scalar.BLOCK_LITERAL,h=t.source?splitLines(t.source):[];let F=h.length;for(let ie=h.length-1;ie>=0;--ie){const se=h[ie][1];if(se===""||se==="\r")F=ie;else break}if(F===0){const ie=o.chomp==="+"&&h.length>0?`
|
|
143
|
+
`.repeat(Math.max(1,h.length-1)):"";let se=r+o.length;return t.source&&(se+=t.source.length),{value:ie,type:c,comment:o.comment,range:[r,se,se]}}let Y=t.indent+o.indent,V=t.offset+o.length,X=0;for(let ie=0;ie<F;++ie){const[se,oe]=h[ie];if(oe===""||oe==="\r")o.indent===0&&se.length>Y&&(Y=se.length);else{se.length<Y&&n(V+se.length,"MISSING_CHAR","Block scalars with more-indented leading empty lines must use an explicit indentation indicator"),o.indent===0&&(Y=se.length),X=ie,Y===0&&!e.atRoot&&n(V,"BAD_INDENT","Block scalar values in collections must be indented");break}V+=se.length+oe.length+1}for(let ie=h.length-1;ie>=F;--ie)h[ie][0].length>Y&&(F=ie+1);let ee="",te="",ne=!1;for(let ie=0;ie<X;++ie)ee+=h[ie][0].slice(Y)+`
|
|
144
|
+
`;for(let ie=X;ie<F;++ie){let[se,oe]=h[ie];V+=se.length+oe.length+1;const ae=oe[oe.length-1]==="\r";if(ae&&(oe=oe.slice(0,-1)),oe&&se.length<Y){const de=`Block scalar lines must not be less indented than their ${o.indent?"explicit indentation indicator":"first line"}`;n(V-oe.length-(ae?2:1),"BAD_INDENT",de),se=""}c===Scalar.BLOCK_LITERAL?(ee+=te+se.slice(Y)+oe,te=`
|
|
145
|
+
`):se.length>Y||oe[0]===" "?(te===" "?te=`
|
|
146
|
+
`:!ne&&te===`
|
|
147
|
+
`&&(te=`
|
|
148
|
+
|
|
149
|
+
`),ee+=te+se.slice(Y)+oe,te=`
|
|
150
|
+
`,ne=!0):oe===""?te===`
|
|
151
|
+
`?ee+=`
|
|
152
|
+
`:te=`
|
|
153
|
+
`:(ee+=te+oe,te=" ",ne=!1)}switch(o.chomp){case"-":break;case"+":for(let ie=F;ie<h.length;++ie)ee+=`
|
|
154
|
+
`+h[ie][0].slice(Y);ee[ee.length-1]!==`
|
|
155
|
+
`&&(ee+=`
|
|
156
|
+
`);break;default:ee+=`
|
|
157
|
+
`}const re=r+o.length+t.source.length;return{value:ee,type:c,comment:o.comment,range:[r,re,re]}}function parseBlockScalarHeader({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:o}=t[0],c=o[0];let h=0,F="",Y=-1;for(let te=1;te<o.length;++te){const ne=o[te];if(!F&&(ne==="-"||ne==="+"))F=ne;else{const re=Number(ne);!h&&re?h=re:Y===-1&&(Y=e+te)}}Y!==-1&&r(Y,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${o}`);let V=!1,X="",ee=o.length;for(let te=1;te<t.length;++te){const ne=t[te];switch(ne.type){case"space":V=!0;case"newline":ee+=ne.source.length;break;case"comment":n&&!V&&r(ne,"MISSING_CHAR","Comments must be separated from other tokens by white space characters"),ee+=ne.source.length,X=ne.source.substring(1);break;case"error":r(ne,"UNEXPECTED_TOKEN",ne.message),ee+=ne.source.length;break;default:{const re=`Unexpected token in block scalar header: ${ne.type}`;r(ne,"UNEXPECTED_TOKEN",re);const ie=ne.source;ie&&typeof ie=="string"&&(ee+=ie.length)}}}return{mode:c,indent:h,chomp:F,comment:X,length:ee}}function splitLines(e){const t=e.split(/\n( *)/),n=t[0],r=n.match(/^( *)/),c=[r?.[1]?[r[1],n.slice(r[1].length)]:["",n]];for(let h=1;h<t.length;h+=2)c.push([t[h],t[h+1]]);return c}function resolveFlowScalar(e,t,n){const{offset:r,type:o,source:c,end:h}=e;let F,Y;const V=(te,ne,re)=>n(r+te,ne,re);switch(o){case"scalar":F=Scalar.PLAIN,Y=plainValue(c,V);break;case"single-quoted-scalar":F=Scalar.QUOTE_SINGLE,Y=singleQuotedValue(c,V);break;case"double-quoted-scalar":F=Scalar.QUOTE_DOUBLE,Y=doubleQuotedValue(c,V);break;default:return n(e,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${o}`),{value:"",type:null,comment:"",range:[r,r+c.length,r+c.length]}}const X=r+c.length,ee=resolveEnd(h,X,t,n);return{value:Y,type:F,comment:ee.comment,range:[r,X,ee.offset]}}function plainValue(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}`),foldLines(e)}function singleQuotedValue(e,t){return(e[e.length-1]!=="'"||e.length===1)&&t(e.length,"MISSING_CHAR","Missing closing 'quote"),foldLines(e.slice(1,-1)).replace(/''/g,"'")}function foldLines(e){let t,n;try{t=new RegExp(`(.*?)(?<![ ])[ ]*\r?
|
|
158
|
+
`,"sy"),n=new RegExp(`[ ]*(.*?)(?:(?<![ ])[ ]*)?\r?
|
|
159
|
+
`,"sy")}catch{t=/(.*?)[ \t]*\r?\n/sy,n=/[ \t]*(.*?)[ \t]*\r?\n/sy}let r=t.exec(e);if(!r)return e;let o=r[1],c=" ",h=t.lastIndex;for(n.lastIndex=h;r=n.exec(e);)r[1]===""?c===`
|
|
160
|
+
`?o+=c:c=`
|
|
161
|
+
`:(o+=c+r[1],c=" "),h=n.lastIndex;const F=/[ \t]*(.*)/sy;return F.lastIndex=h,r=F.exec(e),o+c+(r?.[1]??"")}function doubleQuotedValue(e,t){let n="";for(let r=1;r<e.length-1;++r){const o=e[r];if(!(o==="\r"&&e[r+1]===`
|
|
162
|
+
`))if(o===`
|
|
163
|
+
`){const{fold:c,offset:h}=foldNewline(e,r);n+=c,r=h}else if(o==="\\"){let c=e[++r];const h=escapeCodes[c];if(h)n+=h;else if(c===`
|
|
164
|
+
`)for(c=e[r+1];c===" "||c===" ";)c=e[++r+1];else if(c==="\r"&&e[r+1]===`
|
|
165
|
+
`)for(c=e[++r+1];c===" "||c===" ";)c=e[++r+1];else if(c==="x"||c==="u"||c==="U"){const F={x:2,u:4,U:8}[c];n+=parseCharCode(e,r+1,F,t),r+=F}else{const F=e.substr(r-1,2);t(r-1,"BAD_DQ_ESCAPE",`Invalid escape sequence ${F}`),n+=F}}else if(o===" "||o===" "){const c=r;let h=e[r+1];for(;h===" "||h===" ";)h=e[++r+1];h!==`
|
|
166
|
+
`&&!(h==="\r"&&e[r+2]===`
|
|
167
|
+
`)&&(n+=r>c?e.slice(c,r+1):o)}else n+=o}return(e[e.length-1]!=='"'||e.length===1)&&t(e.length,"MISSING_CHAR",'Missing closing "quote'),n}function foldNewline(e,t){let n="",r=e[t+1];for(;(r===" "||r===" "||r===`
|
|
168
|
+
`||r==="\r")&&!(r==="\r"&&e[t+2]!==`
|
|
169
|
+
`);)r===`
|
|
170
|
+
`&&(n+=`
|
|
171
|
+
`),t+=1,r=e[t+1];return n||(n=" "),{fold:n,offset:t}}const escapeCodes={0:"\0",a:"\x07",b:"\b",e:"\x1B",f:"\f",n:`
|
|
172
|
+
`,r:"\r",t:" ",v:"\v",N:"
",_:" ",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\"," ":" "};function parseCharCode(e,t,n,r){const o=e.substr(t,n),h=o.length===n&&/^[0-9a-fA-F]+$/.test(o)?parseInt(o,16):NaN;if(isNaN(h)){const F=e.substr(t-2,n+2);return r(t-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${F}`),F}return String.fromCodePoint(h)}function composeScalar(e,t,n,r){const{value:o,type:c,comment:h,range:F}=t.type==="block-scalar"?resolveBlockScalar(e,t,r):resolveFlowScalar(t,e.options.strict,r),Y=n?e.directives.tagName(n.source,ee=>r(n,"TAG_RESOLVE_FAILED",ee)):null;let V;e.options.stringKeys&&e.atKey?V=e.schema[SCALAR$1]:Y?V=findScalarTagByName(e.schema,o,Y,n,r):t.type==="scalar"?V=findScalarTagByTest(e,o,t,r):V=e.schema[SCALAR$1];let X;try{const ee=V.resolve(o,te=>r(n??t,"TAG_RESOLVE_FAILED",te),e.options);X=isScalar(ee)?ee:new Scalar(ee)}catch(ee){const te=ee instanceof Error?ee.message:String(ee);r(n??t,"TAG_RESOLVE_FAILED",te),X=new Scalar(o)}return X.range=F,X.source=o,c&&(X.type=c),Y&&(X.tag=Y),V.format&&(X.format=V.format),h&&(X.comment=h),X}function findScalarTagByName(e,t,n,r,o){if(n==="!")return e[SCALAR$1];const c=[];for(const F of e.tags)if(!F.collection&&F.tag===n)if(F.default&&F.test)c.push(F);else return F;for(const F of c)if(F.test?.test(t))return F;const h=e.knownTags[n];return h&&!h.collection?(e.tags.push(Object.assign({},h,{default:!1,test:void 0})),h):(o(r,"TAG_RESOLVE_FAILED",`Unresolved tag: ${n}`,n!=="tag:yaml.org,2002:str"),e[SCALAR$1])}function findScalarTagByTest({atKey:e,directives:t,schema:n},r,o,c){const h=n.tags.find(F=>(F.default===!0||e&&F.default==="key")&&F.test?.test(r))||n[SCALAR$1];if(n.compat){const F=n.compat.find(Y=>Y.default&&Y.test?.test(r))??n[SCALAR$1];if(h.tag!==F.tag){const Y=t.tagString(h.tag),V=t.tagString(F.tag),X=`Value may be parsed as either ${Y} or ${V}`;c(o,"TAG_RESOLVE_FAILED",X,!0)}}return h}function emptyScalarPosition(e,t,n){if(t){n??(n=t.length);for(let r=n-1;r>=0;--r){let o=t[r];switch(o.type){case"space":case"comment":case"newline":e-=o.source.length;continue}for(o=t[++r];o?.type==="space";)e+=o.source.length,o=t[++r];break}}return e}const CN={composeNode,composeEmptyNode};function composeNode(e,t,n,r){const o=e.atKey,{spaceBefore:c,comment:h,anchor:F,tag:Y}=n;let V,X=!0;switch(t.type){case"alias":V=composeAlias(e,t,r),(F||Y)&&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":V=composeScalar(e,t,Y,r),F&&(V.anchor=F.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":V=composeCollection(CN,e,t,n,r),F&&(V.anchor=F.source.substring(1));break;default:{const ee=t.type==="error"?t.message:`Unsupported token (type: ${t.type})`;r(t,"UNEXPECTED_TOKEN",ee),V=composeEmptyNode(e,t.offset,void 0,null,n,r),X=!1}}return F&&V.anchor===""&&r(F,"BAD_ALIAS","Anchor cannot be an empty string"),o&&e.options.stringKeys&&(!isScalar(V)||typeof V.value!="string"||V.tag&&V.tag!=="tag:yaml.org,2002:str")&&r(Y??t,"NON_STRING_KEY","With stringKeys, all keys must be strings"),c&&(V.spaceBefore=!0),h&&(t.type==="scalar"&&t.source===""?V.comment=h:V.commentBefore=h),e.options.keepSourceTokens&&X&&(V.srcToken=t),V}function composeEmptyNode(e,t,n,r,{spaceBefore:o,comment:c,anchor:h,tag:F,end:Y},V){const X={type:"scalar",offset:emptyScalarPosition(t,n,r),indent:-1,source:""},ee=composeScalar(e,X,F,V);return h&&(ee.anchor=h.source.substring(1),ee.anchor===""&&V(h,"BAD_ALIAS","Anchor cannot be an empty string")),o&&(ee.spaceBefore=!0),c&&(ee.comment=c,ee.range[2]=Y),ee}function composeAlias({options:e},{offset:t,source:n,end:r},o){const c=new Alias(n.substring(1));c.source===""&&o(t,"BAD_ALIAS","Alias cannot be an empty string"),c.source.endsWith(":")&&o(t+n.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);const h=t+n.length,F=resolveEnd(r,h,e.strict,o);return c.range=[t,h,F.offset],F.comment&&(c.comment=F.comment),c}function composeDoc(e,t,{offset:n,start:r,value:o,end:c},h){const F=Object.assign({_directives:t},e),Y=new Document(void 0,F),V={atKey:!1,atRoot:!0,directives:Y.directives,options:Y.options,schema:Y.schema},X=resolveProps(r,{indicator:"doc-start",next:o??c?.[0],offset:n,onError:h,parentIndent:0,startOnNewline:!0});X.found&&(Y.directives.docStart=!0,o&&(o.type==="block-map"||o.type==="block-seq")&&!X.hasNewline&&h(X.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")),Y.contents=o?composeNode(V,o,X,h):composeEmptyNode(V,X.end,r,null,X,h);const ee=Y.contents.range[2],te=resolveEnd(c,ee,!1,h);return te.comment&&(Y.comment=te.comment),Y.range=[n,ee,te.offset],Y}function getErrorPos(e){if(typeof e=="number")return[e,e+1];if(Array.isArray(e))return e.length===2?e:[e[0],e[1]];const{offset:t,source:n}=e;return[t,t+(typeof n=="string"?n.length:1)]}function parsePrelude(e){let t="",n=!1,r=!1;for(let o=0;o<e.length;++o){const c=e[o];switch(c[0]){case"#":t+=(t===""?"":r?`
|
|
173
|
+
|
|
174
|
+
`:`
|
|
175
|
+
`)+(c.substring(1)||" "),n=!0,r=!1;break;case"%":e[o+1]?.[0]!=="#"&&(o+=1),n=!1;break;default:n||(r=!0),n=!1}}return{comment:t,afterEmptyLine:r}}class Composer{constructor(t={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(n,r,o,c)=>{const h=getErrorPos(n);c?this.warnings.push(new YAMLWarning(h,r,o)):this.errors.push(new YAMLParseError(h,r,o))},this.directives=new Directives({version:t.version||"1.2"}),this.options=t}decorate(t,n){const{comment:r,afterEmptyLine:o}=parsePrelude(this.prelude);if(r){const c=t.contents;if(n)t.comment=t.comment?`${t.comment}
|
|
176
|
+
${r}`:r;else if(o||t.directives.docStart||!c)t.commentBefore=r;else if(isCollection(c)&&!c.flow&&c.items.length>0){let h=c.items[0];isPair(h)&&(h=h.key);const F=h.commentBefore;h.commentBefore=F?`${r}
|
|
177
|
+
${F}`:r}else{const h=c.commentBefore;c.commentBefore=h?`${r}
|
|
178
|
+
${h}`: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:parsePrelude(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(t,n=!1,r=-1){for(const o of t)yield*this.next(o);yield*this.end(n,r)}*next(t){switch(t.type){case"directive":this.directives.add(t.source,(n,r,o)=>{const c=getErrorPos(t);c[0]+=n,this.onError(c,"BAD_DIRECTIVE",r,o)}),this.prelude.push(t.source),this.atDirectives=!0;break;case"document":{const n=composeDoc(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 YAMLParseError(getErrorPos(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 YAMLParseError(getErrorPos(t),"UNEXPECTED_TOKEN",r));break}this.doc.directives.docEnd=!0;const n=resolveEnd(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}
|
|
179
|
+
${n.comment}`:n.comment}this.doc.range[2]=n.offset;break}default:this.errors.push(new YAMLParseError(getErrorPos(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),o=new Document(void 0,r);this.atDirectives&&this.onError(n,"MISSING_CHAR","Missing directives-end indicator line"),o.range=[0,n,n],this.decorate(o,!1),yield o}}}const BOM="\uFEFF",DOCUMENT="",FLOW_END="",SCALAR="";function tokenType(e){switch(e){case BOM:return"byte-order-mark";case DOCUMENT:return"doc-mode";case FLOW_END:return"flow-error-end";case SCALAR:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case`
|
|
180
|
+
`:case`\r
|
|
181
|
+
`: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 isEmpty(e){switch(e){case void 0:case" ":case`
|
|
182
|
+
`:case"\r":case" ":return!0;default:return!1}}const hexDigits=new Set("0123456789ABCDEFabcdef"),tagChars=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"),flowIndicatorChars=new Set(",[]{}"),invalidAnchorChars=new Set(` ,[]{}
|
|
183
|
+
\r `),isNotAnchorChar=e=>!e||invalidAnchorChars.has(e);class Lexer{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===`
|
|
184
|
+
`?!0:n==="\r"?this.buffer[t+1]===`
|
|
185
|
+
`:!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 o=this.buffer[r+t+1];if(o===`
|
|
186
|
+
`||!o&&!this.atEnd)return t+r+1}return n===`
|
|
187
|
+
`||r>=this.indentNext||!n&&!this.atEnd?t+r:-1}if(n==="-"||n==="."){const r=this.buffer.substr(t,3);if((r==="---"||r==="...")&&isEmpty(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(`
|
|
188
|
+
`,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]===BOM&&(yield*this.pushCount(1),t=t.substring(1)),t[0]==="%"){let n=t.length,r=t.indexOf("#");for(;r!==-1;){const c=t[r-1];if(c===" "||c===" "){n=r-1;break}else r=t.indexOf("#",r+1)}for(;;){const c=t[n-1];if(c===" "||c===" ")n-=1;else break}const o=(yield*this.pushCount(n))+(yield*this.pushSpaces(!0));return yield*this.pushCount(t.length-o),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 DOCUMENT,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==="...")&&isEmpty(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&&!isEmpty(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===":")&&isEmpty(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(isNotAnchorChar),"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 o=this.getLine();if(o===null)return this.setNext("flow");if((r!==-1&&r<this.indentNext&&o[0]!=="#"||r===0&&(o.startsWith("---")||o.startsWith("..."))&&isEmpty(o[3]))&&!(r===this.indentNext-1&&this.flowLevel===1&&(o[0]==="]"||o[0]==="}")))return this.flowLevel=0,yield FLOW_END,yield*this.parseLineStart();let c=0;for(;o[c]===",";)c+=yield*this.pushCount(1),c+=yield*this.pushSpaces(!0),this.flowKey=!1;switch(c+=yield*this.pushIndicators(),o[c]){case void 0:return"flow";case"#":return yield*this.pushCount(o.length-c),"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(isNotAnchorChar),"flow";case'"':case"'":return this.flowKey=!0,yield*this.parseQuotedScalar();case":":{const h=this.charAt(1);if(this.flowKey||isEmpty(h)||h===",")return this.flowKey=!1,yield*this.pushCount(1),yield*this.pushSpaces(!0),"flow"}default:return this.flowKey=!1,yield*this.parsePlainScalar()}}*parseQuotedScalar(){const t=this.charAt(0);let n=this.buffer.indexOf(t,this.pos+1);if(t==="'")for(;n!==-1&&this.buffer[n+1]==="'";)n=this.buffer.indexOf("'",n+2);else for(;n!==-1;){let c=0;for(;this.buffer[n-1-c]==="\\";)c+=1;if(c%2===0)break;n=this.buffer.indexOf('"',n+1)}const r=this.buffer.substring(0,n);let o=r.indexOf(`
|
|
189
|
+
`,this.pos);if(o!==-1){for(;o!==-1;){const c=this.continueScalar(o+1);if(c===-1)break;o=r.indexOf(`
|
|
190
|
+
`,c)}o!==-1&&(n=o-(r[o-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=>isEmpty(n)||n==="#")}*parseBlockScalar(){let t=this.pos-1,n=0,r;e:for(let c=this.pos;r=this.buffer[c];++c)switch(r){case" ":n+=1;break;case`
|
|
191
|
+
`:t=c,n=0;break;case"\r":{const h=this.buffer[c+1];if(!h&&!this.atEnd)return this.setNext("block-scalar");if(h===`
|
|
192
|
+
`)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 c=this.continueScalar(t+1);if(c===-1)break;t=this.buffer.indexOf(`
|
|
193
|
+
`,c)}while(t!==-1);if(t===-1){if(!this.atEnd)return this.setNext("block-scalar");t=this.buffer.length}}let o=t+1;for(r=this.buffer[o];r===" ";)r=this.buffer[++o];if(r===" "){for(;r===" "||r===" "||r==="\r"||r===`
|
|
194
|
+
`;)r=this.buffer[++o];t=o-1}else if(!this.blockScalarKeep)do{let c=t-1,h=this.buffer[c];h==="\r"&&(h=this.buffer[--c]);const F=c;for(;h===" ";)h=this.buffer[--c];if(h===`
|
|
195
|
+
`&&c>=this.pos&&c+1+n>F)t=c;else break}while(!0);return yield SCALAR,yield*this.pushToIndex(t+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){const t=this.flowLevel>0;let n=this.pos-1,r=this.pos-1,o;for(;o=this.buffer[++r];)if(o===":"){const c=this.buffer[r+1];if(isEmpty(c)||t&&flowIndicatorChars.has(c))break;n=r}else if(isEmpty(o)){let c=this.buffer[r+1];if(o==="\r"&&(c===`
|
|
196
|
+
`?(r+=1,o=`
|
|
197
|
+
`,c=this.buffer[r+1]):n=r),c==="#"||t&&flowIndicatorChars.has(c))break;if(o===`
|
|
198
|
+
`){const h=this.continueScalar(r+1);if(h===-1)break;r=Math.max(r,h-2)}}else{if(t&&flowIndicatorChars.has(o))break;n=r}return!o&&!this.atEnd?this.setNext("plain-scalar"):(yield SCALAR,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(isNotAnchorChar))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"-":case"?":case":":{const t=this.flowLevel>0,n=this.charAt(1);if(isEmpty(n)||t&&flowIndicatorChars.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(;!isEmpty(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(tagChars.has(n))n=this.buffer[++t];else if(n==="%"&&hexDigits.has(this.buffer[t+1])&&hexDigits.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===`
|
|
199
|
+
`?yield*this.pushCount(1):t==="\r"&&this.charAt(1)===`
|
|
200
|
+
`?yield*this.pushCount(2):0}*pushSpaces(t){let n=this.pos-1,r;do r=this.buffer[++n];while(r===" "||t&&r===" ");const o=n-this.pos;return o>0&&(yield this.buffer.substr(this.pos,o),this.pos=n),o}*pushUntil(t){let n=this.pos,r=this.buffer[n];for(;!t(r);)r=this.buffer[++n];return yield*this.pushToIndex(n,!1)}}class LineCounter{constructor(){this.lineStarts=[],this.addNewLine=t=>this.lineStarts.push(t),this.linePos=t=>{let n=0,r=this.lineStarts.length;for(;n<r;){const c=n+r>>1;this.lineStarts[c]<t?n=c+1:r=c}if(this.lineStarts[n]===t)return{line:n+1,col:1};if(n===0)return{line:0,col:t};const o=this.lineStarts[n-1];return{line:n,col:t-o+1}}}}function includesToken(e,t){for(let n=0;n<e.length;++n)if(e[n].type===t)return!0;return!1}function findNonEmptyIndex(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 isFlowToken(e){switch(e?.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"flow-collection":return!0;default:return!1}}function getPrevProps(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 getFirstKeyStartProps(e){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(;e[++t]?.type==="space";);return e.splice(t,e.length)}function fixFlowSeqItems(e){if(e.start.type==="flow-seq-start")for(const t of e.items)t.sep&&!t.value&&!includesToken(t.start,"explicit-key-ind")&&!includesToken(t.sep,"map-value-ind")&&(t.key&&(t.value=t.key),delete t.key,isFlowToken(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 Parser{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 Lexer,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=tokenType(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?.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),n.type==="flow-collection"&&fixFlowSeqItems(n),r.type){case"document":r.value=n;break;case"block-scalar":r.props.push(n);break;case"block-map":{const o=r.items[r.items.length-1];if(o.value){r.items.push({start:[],key:n,sep:[]}),this.onKeyLine=!0;return}else if(o.sep)o.value=n;else{Object.assign(o,{key:n,sep:[]}),this.onKeyLine=!o.explicitKey;return}break}case"block-seq":{const o=r.items[r.items.length-1];o.value?r.items.push({start:[],value:n}):o.value=n;break}case"flow-collection":{const o=r.items[r.items.length-1];!o||o.value?r.items.push({start:[],key:n,sep:[]}):o.sep?o.value=n:Object.assign(o,{key:n,sep:[]});return}default:yield*this.pop(),yield*this.pop(n)}if((r.type==="document"||r.type==="block-map"||r.type==="block-seq")&&(n.type==="block-map"||n.type==="block-seq")){const o=n.items[n.items.length-1];o&&!o.sep&&!o.value&&o.start.length>0&&findNonEmptyIndex(o.start)===-1&&(n.indent===0||o.start.every(c=>c.type!=="comment"||c.indent<n.indent))&&(r.type==="document"?r.end=o.start:r.items.push({start:o.start}),n.items.splice(-1,1))}}}*stream(){switch(this.type){case"directive-line":yield{type:"directive",offset:this.offset,source:this.source};return;case"byte-order-mark":case"space":case"comment":case"newline":yield this.sourceToken;return;case"doc-mode":case"doc-start":{const t={type:"document",offset:this.offset,start:[]};this.type==="doc-start"&&t.start.push(this.sourceToken),this.stack.push(t);return}}yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML stream`,source:this.source}}*document(t){if(t.value)return yield*this.lineEnd(t);switch(this.type){case"doc-start":{findNonEmptyIndex(t.start)!==-1?(yield*this.pop(),yield*this.step()):t.start.push(this.sourceToken);return}case"anchor":case"tag":case"space":case"comment":case"newline":t.start.push(this.sourceToken);return}const n=this.startBlockValue(t);n?this.stack.push(n):yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML document`,source:this.source}}*scalar(t){if(this.type==="map-value-ind"){const n=getPrevProps(this.peek(2)),r=getFirstKeyStartProps(n);let o;t.end?(o=t.end,o.push(this.sourceToken),delete t.end):o=[this.sourceToken];const c={type:"block-map",offset:t.offset,indent:t.indent,items:[{start:r,key:t,sep:o}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=c}else yield*this.lineEnd(t)}*blockScalar(t){switch(this.type){case"space":case"comment":case"newline":t.props.push(this.sourceToken);return;case"scalar":if(t.source=this.source,this.atNewLine=!0,this.indent=0,this.onNewLine){let n=this.source.indexOf(`
|
|
201
|
+
`)+1;for(;n!==0;)this.onNewLine(this.offset+n),n=this.source.indexOf(`
|
|
202
|
+
`,n)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(t){const n=t.items[t.items.length-1];switch(this.type){case"newline":if(this.onKeyLine=!1,n.value){const r="end"in n.value?n.value.end:void 0;(Array.isArray(r)?r[r.length-1]:void 0)?.type==="comment"?r?.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 o=t.items[t.items.length-2]?.value?.end;if(Array.isArray(o)){Array.prototype.push.apply(o,n.start),o.push(this.sourceToken),t.items.pop();return}}n.start.push(this.sourceToken)}return}if(this.indent>=t.indent){const r=!this.onKeyLine&&this.indent===t.indent,o=r&&(n.sep||n.explicitKey)&&this.type!=="seq-item-ind";let c=[];if(o&&n.sep&&!n.value){const h=[];for(let F=0;F<n.sep.length;++F){const Y=n.sep[F];switch(Y.type){case"newline":h.push(F);break;case"space":break;case"comment":Y.indent>t.indent&&(h.length=0);break;default:h.length=0}}h.length>=2&&(c=n.sep.splice(h[1]))}switch(this.type){case"anchor":case"tag":o||n.value?(c.push(this.sourceToken),t.items.push({start:c}),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):o||n.value?(c.push(this.sourceToken),t.items.push({start:c,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(includesToken(n.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:c,key:null,sep:[this.sourceToken]}]});else if(isFlowToken(n.key)&&!includesToken(n.sep,"newline")){const h=getFirstKeyStartProps(n.start),F=n.key,Y=n.sep;Y.push(this.sourceToken),delete n.key,delete n.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:h,key:F,sep:Y}]})}else c.length>0?n.sep=n.sep.concat(c,this.sourceToken):n.sep.push(this.sourceToken);else if(includesToken(n.start,"newline"))Object.assign(n,{key:null,sep:[this.sourceToken]});else{const h=getFirstKeyStartProps(n.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:h,key:null,sep:[this.sourceToken]}]})}else n.sep?n.value||o?t.items.push({start:c,key:null,sep:[this.sourceToken]}):includesToken(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 h=this.flowScalar(this.type);o||n.value?(t.items.push({start:c,key:h,sep:[]}),this.onKeyLine=!0):n.sep?this.stack.push(h):(Object.assign(n,{key:h,sep:[]}),this.onKeyLine=!0);return}default:{const h=this.startBlockValue(t);if(h){if(h.type==="block-seq"){if(!n.explicitKey&&n.sep&&!includesToken(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 r&&t.items.push({start:c});this.stack.push(h);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(t){const n=t.items[t.items.length-1];switch(this.type){case"newline":if(n.value){const r="end"in n.value?n.value.end:void 0;(Array.isArray(r)?r[r.length-1]:void 0)?.type==="comment"?r?.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 o=t.items[t.items.length-2]?.value?.end;if(Array.isArray(o)){Array.prototype.push.apply(o,n.start),o.push(this.sourceToken),t.items.pop();return}}n.start.push(this.sourceToken)}return;case"anchor":case"tag":if(n.value||this.indent<=t.indent)break;n.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==t.indent)break;n.value||includesToken(n.start,"seq-item-ind")?t.items.push({start:[this.sourceToken]}):n.start.push(this.sourceToken);return}if(this.indent>t.indent){const r=this.startBlockValue(t);if(r){this.stack.push(r);return}}yield*this.pop(),yield*this.step()}*flowCollection(t){const n=t.items[t.items.length-1];if(this.type==="flow-error-end"){let r;do yield*this.pop(),r=this.peek(1);while(r?.type==="flow-collection")}else if(t.end.length===0){switch(this.type){case"comma":case"explicit-key-ind":!n||n.sep?t.items.push({start:[this.sourceToken]}):n.start.push(this.sourceToken);return;case"map-value-ind":!n||n.value?t.items.push({start:[],key:null,sep:[this.sourceToken]}):n.sep?n.sep.push(this.sourceToken):Object.assign(n,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":!n||n.value?t.items.push({start:[this.sourceToken]}):n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const o=this.flowScalar(this.type);!n||n.value?t.items.push({start:[],key:o,sep:[]}):n.sep?this.stack.push(o):Object.assign(n,{key:o,sep:[]});return}case"flow-map-end":case"flow-seq-end":t.end.push(this.sourceToken);return}const r=this.startBlockValue(t);r?this.stack.push(r):(yield*this.pop(),yield*this.step())}else{const r=this.peek(2);if(r.type==="block-map"&&(this.type==="map-value-ind"&&r.indent===t.indent||this.type==="newline"&&!r.items[r.items.length-1].sep))yield*this.pop(),yield*this.step();else if(this.type==="map-value-ind"&&r.type!=="flow-collection"){const o=getPrevProps(r),c=getFirstKeyStartProps(o);fixFlowSeqItems(t);const h=t.end.splice(1,t.end.length);h.push(this.sourceToken);const F={type:"block-map",offset:t.offset,indent:t.indent,items:[{start:c,key:t,sep:h}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=F}else yield*this.lineEnd(t)}}flowScalar(t){if(this.onNewLine){let n=this.source.indexOf(`
|
|
203
|
+
`)+1;for(;n!==0;)this.onNewLine(this.offset+n),n=this.source.indexOf(`
|
|
204
|
+
`,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=getPrevProps(t),r=getFirstKeyStartProps(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=getPrevProps(t),r=getFirstKeyStartProps(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;default:t.end?t.end.push(this.sourceToken):t.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop())}}}function parseOptions(e){const t=e.prettyErrors!==!1;return{lineCounter:e.lineCounter||t&&new LineCounter||null,prettyErrors:t}}function parseDocument(e,t={}){const{lineCounter:n,prettyErrors:r}=parseOptions(t),o=new Parser(n?.addNewLine),c=new Composer(t);let h=null;for(const F of c.compose(o.parse(e),!0,e.length))if(!h)h=F;else if(h.options.logLevel!=="silent"){h.errors.push(new YAMLParseError(F.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}return r&&n&&(h.errors.forEach(prettifyError(e,n)),h.warnings.forEach(prettifyError(e,n))),h}function parse(e,t,n){let r;const o=parseDocument(e,n);if(!o)return null;if(o.warnings.forEach(c=>warn(o.options.logLevel,c)),o.errors.length>0){if(o.options.logLevel!=="silent")throw o.errors[0];o.errors=[]}return o.toJS(Object.assign({reviver:r},n))}const bracketPairs={"[":"]","{":"}","(":")"},quotePairs={"'":"'",'"':'"',"`":"`"};function parseProps(e){if(e=e.trim(),!e)return;const t=searchProps(e);if(!t)throw new Error(`Invalid props: \`${e}\``);if(t.index!==e.length)throw new Error(`Invalid props: \`${e}\`, expected end \`}\` but got \`${e.slice(t.index)}\``);return t.props}function searchProps(e,t=0){if(e[t]!=="{")throw new Error(`Invalid props, expected \`{\` but got '${e[t]}'`);const n=[];if(e[t+1]==="{")return;for(t+=1;t<e.length;)if(e[t]==="\\")t+=2;else if(e[t]==="}"){t+=1;break}else if(e[t]===" ")t+=1;else if(e[t]===".")t+=1,n.push(["class",r(" #.}")]);else if(e[t]==="#")t+=1,n.push(["id",r(" #.}")]);else{const F=t;for(;t<e.length&&(t+=1,!" }=".includes(e[t])););const Y=e[t];if(F!==t){const V=e.slice(F,t).trim();Y==="="?(t+=1,n.push([V,o()])):n.push([V,"true"])}}function r(F){const Y=t;for(;t<e.length&&(t+=1,e[t]==="\\"&&(t+=2),!F.includes(e[t])););return e.slice(Y,t)}function o(){const F=t;return e[t]in bracketPairs?(c(bracketPairs[e[t]]),t+=1,e.slice(F,t)):e[t]in quotePairs?(h(quotePairs[e[t]]),t+=1,e.slice(F,t)):r(" }")}function c(F){for(;t<e.length;)if(t++,e[t]in quotePairs)h(quotePairs[e[t]]);else if(e[t]in bracketPairs)c(bracketPairs[e[t]]);else if(e[t]===F)return}function h(F){return r(F)}return n.forEach(F=>{F[1].match(/^(['"`]).*\1$/)&&(F[1]=F[1].slice(1,-1))}),{props:n,index:t}}const RE_BLOCK_NAME=/^[a-z$][$\w.-]*/;function parseBlockParams(e){if(e=e.trim(),!e)return{name:""};const t=e.match(RE_BLOCK_NAME)?.[0];if(!t)throw new Error(`Invalid block params: ${e}`);const n=e.slice(t.length).trim();return{name:t,props:parseProps(n)}}const MarkdownItMdcBlock=e=>{e.block.ruler.before("fence","mdc_block_shorthand",function(c,h,F,Y){const V=c.src.slice(c.bMarks[h]+c.tShift[h],c.eMarks[h]);if(!V.match(/^:\w/))return!1;const{name:X,props:ee}=parseBlockParams(V.slice(1));if(c.lineMax=h+1,!Y){const te=c.push("mdc_block_shorthand",X,0);ee?.forEach(([ne,re])=>{ne==="class"?te.attrJoin(ne,re):te.attrSet(ne,re)})}return c.line=h+1,!0}),e.block.ruler.before("fence","mdc_block",function(c,h,F,Y){let V,X,ee=!1,te=c.bMarks[h]+c.tShift[h],ne=c.eMarks[h];const re=c.sCount[h];if(c.src[te]!==":")return!1;for(V=te+1;V<=ne&&c.src[V]===":";V++);const ie=Math.floor(V-te);if(ie<2)return!1;const se=c.src.slice(te,V),oe=parseBlockParams(c.src.slice(V,ne));if(!oe.name)return!1;if(Y)return!0;for(X=h;X++,!(X>=F||(te=c.bMarks[X]+c.tShift[X],ne=c.eMarks[X],te<ne&&c.sCount[X]<c.blkIndent));)if(c.src.charCodeAt(te)===58){for(V=te+1;V<=ne&&c.src[V]===":";V++);if(V-te===ie&&(V=c.skipSpaces(V),!(V<ne))){ee=!0;break}}const ae=c.parentType,le=c.lineMax;c.parentType="mdc_block",c.lineMax=X;const de=c.push("mdc_block_open",oe.name,1);de.markup=se,de.block=!0,de.info=oe.name,de.map=[h,X],oe.props&&oe.props?.forEach(([Se,xe])=>{Se==="class"?de.attrJoin(Se,xe):de.attrSet(Se,xe)});const he=c.blkIndent;c.blkIndent=re,c.env.mdcBlockTokens||=[],c.env.mdcBlockTokens.unshift(de),c.md.block.tokenize(c,h+1,X),c.blkIndent=he,c.env.mdcBlockTokens.shift(de);const me=c.push("mdc_block_close",oe.name,-1);return me.markup=c.src.slice(te,V),me.block=!0,c.tokens.slice(c.tokens.indexOf(de)+1,c.tokens.indexOf(me)).filter(Se=>Se.level===de.level+1).forEach((Se,xe,Te)=>{Te.length<=2&&Se.tag==="p"&&(Se.hidden=!0)}),c.parentType=ae,c.lineMax=le,c.line=X+(ee?1:0),!0},{alt:["paragraph","reference","blockquote","list"]}),e.block.ruler.after("code","mdc_block_yaml",function(c,h,F,Y){if(!c.env.mdcBlockTokens?.length)return!1;const V=c.bMarks[h]+c.tShift[h],X=c.eMarks[h];if(c.src.slice(V,X)!=="---")return!1;let ee=h+1,te=!1;for(;ee<F;){if(c.src.slice(c.bMarks[ee]+c.tShift[h],c.eMarks[ee])==="---"){te=!0;break}ee+=1}if(!te)return!1;if(!Y){const ne=c.src.slice(c.bMarks[h+1],c.eMarks[ee-1]),re=parse(ne),ie=c.env.mdcBlockTokens[0];Object.entries(re).forEach(([se,oe])=>{se==="class"?ie.attrJoin(se,oe):ie.attrSet(se,typeof oe=="string"?oe:JSON.stringify(oe))})}return c.line=ee+1,c.lineMax=ee+1,!0}),e.block.ruler.after("code","mdc_block_slots",function(c,h,F,Y){if(!c.env.mdcBlockTokens?.length)return!1;const V=c.bMarks[h]+c.tShift[h];if(!(c.src[V]==="#"&&c.src[V+1]!==" "))return!1;const X=c.src.slice(V,c.eMarks[h]),{name:ee,props:te}=parseBlockParams(X.slice(1));let ne=h+1;for(;ne<F;){const ie=c.src.slice(c.bMarks[ne]+c.tShift[h],c.eMarks[ne]);if(ie.match(/^#(\w)+/)||ie.startsWith("::"))break;ne+=1}if(Y)return c.line=ne,c.lineMax=ne,!0;c.lineMax=h+1;const re=c.push("mdc_block_slot","template",1);return re.attrSet(`#${ee}`,""),te?.forEach(([ie,se])=>{ie==="class"?re.attrJoin(ie,se):re.attrSet(ie,se)}),c.line=h+1,c.lineMax=ne,c.md.block.tokenize(c,h+1,ne),c.push("mdc_block_slot","template",-1),c.line=ne,c.lineMax=ne,!0})},MarkdownItInlineComponent=e=>{e.inline.ruler.after("entity","mdc_inline_component",(t,n)=>{const r=t.pos;if(!(t.src[r]===":"&&t.src[r-1]===" "))return!1;let c=r+1,h=-1,F=-1;for(;c<t.src.length;){const Y=t.src[c];if(Y==="["){for(h=c+1;c<t.src.length;)if(c+=1,t.src[c]==="\\"&&(c+=2),t.src[c]==="]"){F=c,c+=1;break}break}if(!/[\w$\-]/.test(Y))break;c+=1}if(c<=r+1)return!1;if(n)return!0;if(F!==h){const Y=t.src.slice(r+1,h-1),V=t.src.slice(h,F);t.push("mdc_inline_component",Y,1);const X=t.push("text","",0);X.content=V,t.push("mdc_inline_component",Y,-1)}else{const Y=t.src.slice(r+1,c);t.push("mdc_inline_component",Y,0)}return t.pos=c,!0})},MarkdownItInlineProps=e=>{e.inline.ruler.after("entity","mdc_inline_props",(r,o)=>{const c=r.pos;if(r.src[c]!=="{"||r.src[c+1]==="{"||r.src[c-1]==="{"||r.src[c-1]==="$")return!1;const F=searchProps(r.src,c);if(!F)return!1;const{props:Y,index:V}=F;if(V===c)return!1;if(o)return!0;const X=r.push("mdc_inline_props","span",0);return X.attrs=Y,X.hidden=!0,r.pos=V,!0}),e.renderer.rules.mdc_inline_props=()=>"";const t=e.parse;e.parse=function(r,o){const c=t.call(this,r,o);return c.forEach((h,F)=>{const Y=c[F-1],V=c[F+1];if(!(!["heading_open","paragraph_open","list_item_open"].includes(Y?.type)||Y.hidden)&&(h.hidden&&V.type==="inline"&&(h=V),h.type==="inline"&&h.children?.length===2&&h.children[0].type==="text"&&h.children[1].type==="mdc_inline_props")){const X=h.children[1].attrs;h.children.splice(1,1),X?.forEach(([ee,te])=>{ee==="class"?Y.attrJoin("class",te):Y.attrSet(ee,te)})}}),c.forEach((h,F)=>{if(h.type!=="bullet_list_open")return;const Y=c[F-1];if(!Y||Y.type!=="mdc_block_open"||Y.tag!=="ul")return;let V=F+1;for(;V<c.length;){const te=c[V];if(te.type==="bullet_list_close"&&te.level===h.level)break;V+=1}const X=c[V];if(X.type!=="bullet_list_close")return;const ee=c[V+1];ee.type==="mdc_block_close"&&ee.tag==="ul"&&(h.hidden=!0,X.hidden=!0)}),c};const n=e.renderer.renderInline;e.renderer.renderInline=function(r,o,c){return r=[...r],r.forEach((h,F)=>{if(h.type==="mdc_inline_props"){let Y=F-1,V=r[Y];for(;Y>=0&&(V.type==="text"&&!V.content.trim());)Y--,V=r[Y];if(!V.tag&&V.type==="text"){V=new Token("mdc_inline_span","span",1),r.splice(F-1,0,V);const X=new Token("mdc_inline_span","span",-1);r.splice(F+2,0,X)}else if(V.nesting===-1){let X=F-1;for(;X>=0;){const ee=r[X];if(ee.nesting===1&&ee.tag===V.tag&&ee.level===V.level){V=ee;break}X--}}if(V.nesting===-1)throw new Error(`No matching opening tag found for ${JSON.stringify(V)}`);h.attrs?.forEach(([X,ee])=>{X==="class"?V.attrJoin("class",ee):V.attrSet(X,ee)})}}),n.call(this,r,o,c)}},MarkdownItInlineSpan=e=>{e.inline.ruler.after("mdc_inline_props","mdc_inline_span",(t,n)=>{const r=t.pos;if(t.src[r]!=="[")return!1;let c=r+1;for(;c<t.src.length&&(t.src[c]==="\\"&&(c+=2),t.src[c]!=="]");)c+=1;if(c===r)return!1;if(n)return!0;t.push("mdc_inline_span","span",1);const h=t.push("text","",0);return h.content=t.src.slice(r+1,c),t.push("mdc_inline_span","span",-1),t.pos=c+1,!0})},MarkdownItMdc=(e,t={})=>{const{blockComponent:n=!0,inlineProps:r=!0,inlineSpan:o=!0,inlineComponent:c=!0}=t.syntax||{};n&&e.use(MarkdownItMdcBlock),r&&e.use(MarkdownItInlineProps),o&&e.use(MarkdownItInlineSpan),c&&e.use(MarkdownItInlineComponent)};export{$,ElementTransform as E,L$1 as L,MarkdownIt as M,U,a,b$2 as b,commonjsRequire as c,d$2 as d,k$1 as e,g as f,g$1 as g,f$2 as h,i$4 as i,j,k$4 as k,f$1 as l,m$1 as m,y as n,MarkdownItMdc as o,frontmatterPlugin as p,componentPlugin as q,require$$0 as r,sfcPlugin as s,tocPlugin as t,w$1 as w,y$2 as y,z};
|