UNPKG

vitepress-plugin-auto-sidebar

Version:
33 lines (32 loc) 43.7 kB
(function($,Q){typeof exports=="object"&&typeof module<"u"?Q(exports,require("fs"),require("path")):typeof define=="function"&&define.amd?define(["exports","fs","path"],Q):($=typeof globalThis<"u"?globalThis:$||self,Q($.AutoSidebar={},$.fs,$.path))})(this,function($,Q,pe){"use strict";function Jr(u){return u&&u.__esModule&&Object.prototype.hasOwnProperty.call(u,"default")?u.default:u}var se={exports:{}},D={},ne={},V={},sr;function ie(){if(sr)return V;sr=1;function u(a){return typeof a>"u"||a===null}function w(a){return typeof a=="object"&&a!==null}function b(a){return Array.isArray(a)?a:u(a)?[]:[a]}function S(a,h){var n,i,t,F;if(h)for(F=Object.keys(h),n=0,i=F.length;n<i;n+=1)t=F[n],a[t]=h[t];return a}function v(a,h){var n="",i;for(i=0;i<h;i+=1)n+=a;return n}function s(a){return a===0&&Number.NEGATIVE_INFINITY===1/a}return V.isNothing=u,V.isObject=w,V.toArray=b,V.repeat=v,V.isNegativeZero=s,V.extend=S,V}var Ie,hr;function ue(){if(hr)return Ie;hr=1;function u(w,b){Error.call(this),this.name="YAMLException",this.reason=w,this.mark=b,this.message=(this.reason||"(unknown reason)")+(this.mark?" "+this.mark.toString():""),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}return u.prototype=Object.create(Error.prototype),u.prototype.constructor=u,u.prototype.toString=function(b){var S=this.name+": ";return S+=this.reason||"(unknown reason)",!b&&this.mark&&(S+=" "+this.mark.toString()),S},Ie=u,Ie}var De,dr;function $r(){if(dr)return De;dr=1;var u=ie();function w(b,S,v,s,a){this.name=b,this.buffer=S,this.position=v,this.line=s,this.column=a}return w.prototype.getSnippet=function(S,v){var s,a,h,n,i;if(!this.buffer)return null;for(S=S||4,v=v||75,s="",a=this.position;a>0&&`\0\r …\u2028\u2029`.indexOf(this.buffer.charAt(a-1))===-1;)if(a-=1,this.position-a>v/2-1){s=" ... ",a+=5;break}for(h="",n=this.position;n<this.buffer.length&&`\0\r …\u2028\u2029`.indexOf(this.buffer.charAt(n))===-1;)if(n+=1,n-this.position>v/2-1){h=" ... ",n-=5;break}return i=this.buffer.slice(a,n),u.repeat(" ",S)+s+i+h+` `+u.repeat(" ",S+this.position-a+s.length)+"^"},w.prototype.toString=function(S){var v,s="";return this.name&&(s+='in "'+this.name+'" '),s+="at line "+(this.line+1)+", column "+(this.column+1),S||(v=this.getSnippet(),v&&(s+=`: `+v)),s},De=w,De}var Me,mr;function q(){if(mr)return Me;mr=1;var u=ue(),w=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],b=["scalar","sequence","mapping"];function S(s){var a={};return s!==null&&Object.keys(s).forEach(function(h){s[h].forEach(function(n){a[String(n)]=h})}),a}function v(s,a){if(a=a||{},Object.keys(a).forEach(function(h){if(w.indexOf(h)===-1)throw new u('Unknown option "'+h+'" is met in definition of "'+s+'" YAML type.')}),this.tag=s,this.kind=a.kind||null,this.resolve=a.resolve||function(){return!0},this.construct=a.construct||function(h){return h},this.instanceOf=a.instanceOf||null,this.predicate=a.predicate||null,this.represent=a.represent||null,this.defaultStyle=a.defaultStyle||null,this.styleAliases=S(a.styleAliases||null),b.indexOf(this.kind)===-1)throw new u('Unknown kind "'+this.kind+'" is specified for "'+s+'" YAML type.')}return Me=v,Me}var Ne,xr;function oe(){if(xr)return Ne;xr=1;var u=ie(),w=ue(),b=q();function S(a,h,n){var i=[];return a.include.forEach(function(t){n=S(t,h,n)}),a[h].forEach(function(t){n.forEach(function(F,E){F.tag===t.tag&&F.kind===t.kind&&i.push(E)}),n.push(t)}),n.filter(function(t,F){return i.indexOf(F)===-1})}function v(){var a={scalar:{},sequence:{},mapping:{},fallback:{}},h,n;function i(t){a[t.kind][t.tag]=a.fallback[t.tag]=t}for(h=0,n=arguments.length;h<n;h+=1)arguments[h].forEach(i);return a}function s(a){this.include=a.include||[],this.implicit=a.implicit||[],this.explicit=a.explicit||[],this.implicit.forEach(function(h){if(h.loadKind&&h.loadKind!=="scalar")throw new w("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=S(this,"implicit",[]),this.compiledExplicit=S(this,"explicit",[]),this.compiledTypeMap=v(this.compiledImplicit,this.compiledExplicit)}return s.DEFAULT=null,s.create=function(){var h,n;switch(arguments.length){case 1:h=s.DEFAULT,n=arguments[0];break;case 2:h=arguments[0],n=arguments[1];break;default:throw new w("Wrong number of arguments for Schema.create function")}if(h=u.toArray(h),n=u.toArray(n),!h.every(function(i){return i instanceof s}))throw new w("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!n.every(function(i){return i instanceof b}))throw new w("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new s({include:h,explicit:n})},Ne=s,Ne}var qe,vr;function Qr(){if(vr)return qe;vr=1;var u=q();return qe=new u("tag:yaml.org,2002:str",{kind:"scalar",construct:function(w){return w!==null?w:""}}),qe}var Be,gr;function Vr(){if(gr)return Be;gr=1;var u=q();return Be=new u("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(w){return w!==null?w:[]}}),Be}var Ye,Ar;function Xr(){if(Ar)return Ye;Ar=1;var u=q();return Ye=new u("tag:yaml.org,2002:map",{kind:"mapping",construct:function(w){return w!==null?w:{}}}),Ye}var Pe,yr;function je(){if(yr)return Pe;yr=1;var u=oe();return Pe=new u({explicit:[Qr(),Vr(),Xr()]}),Pe}var He,Cr;function Zr(){if(Cr)return He;Cr=1;var u=q();function w(v){if(v===null)return!0;var s=v.length;return s===1&&v==="~"||s===4&&(v==="null"||v==="Null"||v==="NULL")}function b(){return null}function S(v){return v===null}return He=new u("tag:yaml.org,2002:null",{kind:"scalar",resolve:w,construct:b,predicate:S,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"}),He}var Ue,wr;function zr(){if(wr)return Ue;wr=1;var u=q();function w(v){if(v===null)return!1;var s=v.length;return s===4&&(v==="true"||v==="True"||v==="TRUE")||s===5&&(v==="false"||v==="False"||v==="FALSE")}function b(v){return v==="true"||v==="True"||v==="TRUE"}function S(v){return Object.prototype.toString.call(v)==="[object Boolean]"}return Ue=new u("tag:yaml.org,2002:bool",{kind:"scalar",resolve:w,construct:b,predicate:S,represent:{lowercase:function(v){return v?"true":"false"},uppercase:function(v){return v?"TRUE":"FALSE"},camelcase:function(v){return v?"True":"False"}},defaultStyle:"lowercase"}),Ue}var Ke,Fr;function en(){if(Fr)return Ke;Fr=1;var u=ie(),w=q();function b(n){return 48<=n&&n<=57||65<=n&&n<=70||97<=n&&n<=102}function S(n){return 48<=n&&n<=55}function v(n){return 48<=n&&n<=57}function s(n){if(n===null)return!1;var i=n.length,t=0,F=!1,E;if(!i)return!1;if(E=n[t],(E==="-"||E==="+")&&(E=n[++t]),E==="0"){if(t+1===i)return!0;if(E=n[++t],E==="b"){for(t++;t<i;t++)if(E=n[t],E!=="_"){if(E!=="0"&&E!=="1")return!1;F=!0}return F&&E!=="_"}if(E==="x"){for(t++;t<i;t++)if(E=n[t],E!=="_"){if(!b(n.charCodeAt(t)))return!1;F=!0}return F&&E!=="_"}for(;t<i;t++)if(E=n[t],E!=="_"){if(!S(n.charCodeAt(t)))return!1;F=!0}return F&&E!=="_"}if(E==="_")return!1;for(;t<i;t++)if(E=n[t],E!=="_"){if(E===":")break;if(!v(n.charCodeAt(t)))return!1;F=!0}return!F||E==="_"?!1:E!==":"?!0:/^(:[0-5]?[0-9])+$/.test(n.slice(t))}function a(n){var i=n,t=1,F,E,L=[];return i.indexOf("_")!==-1&&(i=i.replace(/_/g,"")),F=i[0],(F==="-"||F==="+")&&(F==="-"&&(t=-1),i=i.slice(1),F=i[0]),i==="0"?0:F==="0"?i[1]==="b"?t*parseInt(i.slice(2),2):i[1]==="x"?t*parseInt(i,16):t*parseInt(i,8):i.indexOf(":")!==-1?(i.split(":").forEach(function(O){L.unshift(parseInt(O,10))}),i=0,E=1,L.forEach(function(O){i+=O*E,E*=60}),t*i):t*parseInt(i,10)}function h(n){return Object.prototype.toString.call(n)==="[object Number]"&&n%1===0&&!u.isNegativeZero(n)}return Ke=new w("tag:yaml.org,2002:int",{kind:"scalar",resolve:s,construct:a,predicate:h,represent:{binary:function(n){return n>=0?"0b"+n.toString(2):"-0b"+n.toString(2).slice(1)},octal:function(n){return n>=0?"0"+n.toString(8):"-0"+n.toString(8).slice(1)},decimal:function(n){return n.toString(10)},hexadecimal:function(n){return n>=0?"0x"+n.toString(16).toUpperCase():"-0x"+n.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),Ke}var Ge,Er;function rn(){if(Er)return Ge;Er=1;var u=ie(),w=q(),b=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 S(n){return!(n===null||!b.test(n)||n[n.length-1]==="_")}function v(n){var i,t,F,E;return i=n.replace(/_/g,"").toLowerCase(),t=i[0]==="-"?-1:1,E=[],"+-".indexOf(i[0])>=0&&(i=i.slice(1)),i===".inf"?t===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:i===".nan"?NaN:i.indexOf(":")>=0?(i.split(":").forEach(function(L){E.unshift(parseFloat(L,10))}),i=0,F=1,E.forEach(function(L){i+=L*F,F*=60}),t*i):t*parseFloat(i,10)}var s=/^[-+]?[0-9]+e/;function a(n,i){var t;if(isNaN(n))switch(i){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===n)switch(i){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===n)switch(i){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(u.isNegativeZero(n))return"-0.0";return t=n.toString(10),s.test(t)?t.replace("e",".e"):t}function h(n){return Object.prototype.toString.call(n)==="[object Number]"&&(n%1!==0||u.isNegativeZero(n))}return Ge=new w("tag:yaml.org,2002:float",{kind:"scalar",resolve:S,construct:v,predicate:h,represent:a,defaultStyle:"lowercase"}),Ge}var We,_r;function Sr(){if(_r)return We;_r=1;var u=oe();return We=new u({include:[je()],implicit:[Zr(),zr(),en(),rn()]}),We}var Je,br;function Tr(){if(br)return Je;br=1;var u=oe();return Je=new u({include:[Sr()]}),Je}var $e,kr;function nn(){if(kr)return $e;kr=1;var u=q(),w=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),b=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 S(a){return a===null?!1:w.exec(a)!==null||b.exec(a)!==null}function v(a){var h,n,i,t,F,E,L,O=0,I=null,G,X,W;if(h=w.exec(a),h===null&&(h=b.exec(a)),h===null)throw new Error("Date resolve error");if(n=+h[1],i=+h[2]-1,t=+h[3],!h[4])return new Date(Date.UTC(n,i,t));if(F=+h[4],E=+h[5],L=+h[6],h[7]){for(O=h[7].slice(0,3);O.length<3;)O+="0";O=+O}return h[9]&&(G=+h[10],X=+(h[11]||0),I=(G*60+X)*6e4,h[9]==="-"&&(I=-I)),W=new Date(Date.UTC(n,i,t,F,E,L,O)),I&&W.setTime(W.getTime()-I),W}function s(a){return a.toISOString()}return $e=new u("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:S,construct:v,instanceOf:Date,represent:s}),$e}var Qe,Or;function on(){if(Or)return Qe;Or=1;var u=q();function w(b){return b==="<<"||b===null}return Qe=new u("tag:yaml.org,2002:merge",{kind:"scalar",resolve:w}),Qe}function Rr(u){throw new Error('Could not dynamically require "'+u+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Ve,Lr;function ln(){if(Lr)return Ve;Lr=1;var u;try{var w=Rr;u=w("buffer").Buffer}catch{}var b=q(),S=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/= \r`;function v(n){if(n===null)return!1;var i,t,F=0,E=n.length,L=S;for(t=0;t<E;t++)if(i=L.indexOf(n.charAt(t)),!(i>64)){if(i<0)return!1;F+=6}return F%8===0}function s(n){var i,t,F=n.replace(/[\r\n=]/g,""),E=F.length,L=S,O=0,I=[];for(i=0;i<E;i++)i%4===0&&i&&(I.push(O>>16&255),I.push(O>>8&255),I.push(O&255)),O=O<<6|L.indexOf(F.charAt(i));return t=E%4*6,t===0?(I.push(O>>16&255),I.push(O>>8&255),I.push(O&255)):t===18?(I.push(O>>10&255),I.push(O>>2&255)):t===12&&I.push(O>>4&255),u?u.from?u.from(I):new u(I):I}function a(n){var i="",t=0,F,E,L=n.length,O=S;for(F=0;F<L;F++)F%3===0&&F&&(i+=O[t>>18&63],i+=O[t>>12&63],i+=O[t>>6&63],i+=O[t&63]),t=(t<<8)+n[F];return E=L%3,E===0?(i+=O[t>>18&63],i+=O[t>>12&63],i+=O[t>>6&63],i+=O[t&63]):E===2?(i+=O[t>>10&63],i+=O[t>>4&63],i+=O[t<<2&63],i+=O[64]):E===1&&(i+=O[t>>2&63],i+=O[t<<4&63],i+=O[64],i+=O[64]),i}function h(n){return u&&u.isBuffer(n)}return Ve=new b("tag:yaml.org,2002:binary",{kind:"scalar",resolve:v,construct:s,predicate:h,represent:a}),Ve}var Xe,Ir;function un(){if(Ir)return Xe;Ir=1;var u=q(),w=Object.prototype.hasOwnProperty,b=Object.prototype.toString;function S(s){if(s===null)return!0;var a=[],h,n,i,t,F,E=s;for(h=0,n=E.length;h<n;h+=1){if(i=E[h],F=!1,b.call(i)!=="[object Object]")return!1;for(t in i)if(w.call(i,t))if(!F)F=!0;else return!1;if(!F)return!1;if(a.indexOf(t)===-1)a.push(t);else return!1}return!0}function v(s){return s!==null?s:[]}return Xe=new u("tag:yaml.org,2002:omap",{kind:"sequence",resolve:S,construct:v}),Xe}var Ze,Dr;function tn(){if(Dr)return Ze;Dr=1;var u=q(),w=Object.prototype.toString;function b(v){if(v===null)return!0;var s,a,h,n,i,t=v;for(i=new Array(t.length),s=0,a=t.length;s<a;s+=1){if(h=t[s],w.call(h)!=="[object Object]"||(n=Object.keys(h),n.length!==1))return!1;i[s]=[n[0],h[n[0]]]}return!0}function S(v){if(v===null)return[];var s,a,h,n,i,t=v;for(i=new Array(t.length),s=0,a=t.length;s<a;s+=1)h=t[s],n=Object.keys(h),i[s]=[n[0],h[n[0]]];return i}return Ze=new u("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:b,construct:S}),Ze}var ze,Mr;function fn(){if(Mr)return ze;Mr=1;var u=q(),w=Object.prototype.hasOwnProperty;function b(v){if(v===null)return!0;var s,a=v;for(s in a)if(w.call(a,s)&&a[s]!==null)return!1;return!0}function S(v){return v!==null?v:{}}return ze=new u("tag:yaml.org,2002:set",{kind:"mapping",resolve:b,construct:S}),ze}var er,Nr;function te(){if(Nr)return er;Nr=1;var u=oe();return er=new u({include:[Tr()],implicit:[nn(),on()],explicit:[ln(),un(),tn(),fn()]}),er}var rr,qr;function cn(){if(qr)return rr;qr=1;var u=q();function w(){return!0}function b(){}function S(){return""}function v(s){return typeof s>"u"}return rr=new u("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:w,construct:b,predicate:v,represent:S}),rr}var nr,Br;function an(){if(Br)return nr;Br=1;var u=q();function w(s){if(s===null||s.length===0)return!1;var a=s,h=/\/([gim]*)$/.exec(s),n="";return!(a[0]==="/"&&(h&&(n=h[1]),n.length>3||a[a.length-n.length-1]!=="/"))}function b(s){var a=s,h=/\/([gim]*)$/.exec(s),n="";return a[0]==="/"&&(h&&(n=h[1]),a=a.slice(1,a.length-n.length-1)),new RegExp(a,n)}function S(s){var a="/"+s.source+"/";return s.global&&(a+="g"),s.multiline&&(a+="m"),s.ignoreCase&&(a+="i"),a}function v(s){return Object.prototype.toString.call(s)==="[object RegExp]"}return nr=new u("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:w,construct:b,predicate:v,represent:S}),nr}var ir,Yr;function pn(){if(Yr)return ir;Yr=1;var u;try{var w=Rr;u=w("esprima")}catch{typeof window<"u"&&(u=window.esprima)}var b=q();function S(h){if(h===null)return!1;try{var n="("+h+")",i=u.parse(n,{range:!0});return!(i.type!=="Program"||i.body.length!==1||i.body[0].type!=="ExpressionStatement"||i.body[0].expression.type!=="ArrowFunctionExpression"&&i.body[0].expression.type!=="FunctionExpression")}catch{return!1}}function v(h){var n="("+h+")",i=u.parse(n,{range:!0}),t=[],F;if(i.type!=="Program"||i.body.length!==1||i.body[0].type!=="ExpressionStatement"||i.body[0].expression.type!=="ArrowFunctionExpression"&&i.body[0].expression.type!=="FunctionExpression")throw new Error("Failed to resolve function");return i.body[0].expression.params.forEach(function(E){t.push(E.name)}),F=i.body[0].expression.body.range,i.body[0].expression.body.type==="BlockStatement"?new Function(t,n.slice(F[0]+1,F[1]-1)):new Function(t,"return "+n.slice(F[0],F[1]))}function s(h){return h.toString()}function a(h){return Object.prototype.toString.call(h)==="[object Function]"}return ir=new b("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:S,construct:v,predicate:a,represent:s}),ir}var or,Pr;function he(){if(Pr)return or;Pr=1;var u=oe();return or=u.DEFAULT=new u({include:[te()],explicit:[cn(),an(),pn()]}),or}var jr;function sn(){if(jr)return ne;jr=1;var u=ie(),w=ue(),b=$r(),S=te(),v=he(),s=Object.prototype.hasOwnProperty,a=1,h=2,n=3,i=4,t=1,F=2,E=3,L=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,O=/[\x85\u2028\u2029]/,I=/[,\[\]\{\}]/,G=/^(?:!|!!|![a-z\-]+!)$/i,X=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function W(e){return Object.prototype.toString.call(e)}function P(e){return e===10||e===13}function J(e){return e===9||e===32}function B(e){return e===9||e===32||e===10||e===13}function Z(e){return e===44||e===91||e===93||e===123||e===125}function ur(e){var o;return 48<=e&&e<=57?e-48:(o=e|32,97<=o&&o<=102?o-97+10:-1)}function me(e){return e===120?2:e===117?4:e===85?8:0}function xe(e){return 48<=e&&e<=57?e-48:-1}function ve(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?` `:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"…":e===95?" ":e===76?"\u2028":e===80?"\u2029":""}function ge(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}for(var Ae=new Array(256),fe=new Array(256),M=0;M<256;M++)Ae[M]=ve(M)?1:0,fe[M]=ve(M);function tr(e,o){this.input=e,this.filename=o.filename||null,this.schema=o.schema||v,this.onWarning=o.onWarning||null,this.legacy=o.legacy||!1,this.json=o.json||!1,this.listener=o.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}function ye(e,o){return new w(o,new b(e.filename,e.input,e.position,e.line,e.position-e.lineStart))}function T(e,o){throw ye(e,o)}function le(e,o){e.onWarning&&e.onWarning.call(null,ye(e,o))}var ce={YAML:function(o,p,y){var d,C,r;o.version!==null&&T(o,"duplication of %YAML directive"),y.length!==1&&T(o,"YAML directive accepts exactly one argument"),d=/^([0-9]+)\.([0-9]+)$/.exec(y[0]),d===null&&T(o,"ill-formed argument of the YAML directive"),C=parseInt(d[1],10),r=parseInt(d[2],10),C!==1&&T(o,"unacceptable YAML version of the document"),o.version=y[0],o.checkLineBreaks=r<2,r!==1&&r!==2&&le(o,"unsupported YAML version of the document")},TAG:function(o,p,y){var d,C;y.length!==2&&T(o,"TAG directive accepts exactly two arguments"),d=y[0],C=y[1],G.test(d)||T(o,"ill-formed tag handle (first argument) of the TAG directive"),s.call(o.tagMap,d)&&T(o,'there is a previously declared suffix for "'+d+'" tag handle'),X.test(C)||T(o,"ill-formed tag prefix (second argument) of the TAG directive"),o.tagMap[d]=C}};function j(e,o,p,y){var d,C,r,l;if(o<p){if(l=e.input.slice(o,p),y)for(d=0,C=l.length;d<C;d+=1)r=l.charCodeAt(d),r===9||32<=r&&r<=1114111||T(e,"expected valid JSON character");else L.test(l)&&T(e,"the stream contains non-printable characters");e.result+=l}}function Ce(e,o,p,y){var d,C,r,l;for(u.isObject(p)||T(e,"cannot merge mappings; the provided source object is unacceptable"),d=Object.keys(p),r=0,l=d.length;r<l;r+=1)C=d[r],s.call(o,C)||(o[C]=p[C],y[C]=!0)}function H(e,o,p,y,d,C,r,l){var f,g;if(Array.isArray(d))for(d=Array.prototype.slice.call(d),f=0,g=d.length;f<g;f+=1)Array.isArray(d[f])&&T(e,"nested arrays are not supported inside keys"),typeof d=="object"&&W(d[f])==="[object Object]"&&(d[f]="[object Object]");if(typeof d=="object"&&W(d)==="[object Object]"&&(d="[object Object]"),d=String(d),o===null&&(o={}),y==="tag:yaml.org,2002:merge")if(Array.isArray(C))for(f=0,g=C.length;f<g;f+=1)Ce(e,o,C[f],p);else Ce(e,o,C,p);else!e.json&&!s.call(p,d)&&s.call(o,d)&&(e.line=r||e.line,e.position=l||e.position,T(e,"duplicated mapping key")),o[d]=C,delete p[d];return o}function U(e){var o;o=e.input.charCodeAt(e.position),o===10?e.position++:o===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):T(e,"a line break is expected"),e.line+=1,e.lineStart=e.position}function N(e,o,p){for(var y=0,d=e.input.charCodeAt(e.position);d!==0;){for(;J(d);)d=e.input.charCodeAt(++e.position);if(o&&d===35)do d=e.input.charCodeAt(++e.position);while(d!==10&&d!==13&&d!==0);if(P(d))for(U(e),d=e.input.charCodeAt(e.position),y++,e.lineIndent=0;d===32;)e.lineIndent++,d=e.input.charCodeAt(++e.position);else break}return p!==-1&&y!==0&&e.lineIndent<p&&le(e,"deficient indentation"),y}function ee(e){var o=e.position,p;return p=e.input.charCodeAt(o),!!((p===45||p===46)&&p===e.input.charCodeAt(o+1)&&p===e.input.charCodeAt(o+2)&&(o+=3,p=e.input.charCodeAt(o),p===0||B(p)))}function ae(e,o){o===1?e.result+=" ":o>1&&(e.result+=u.repeat(` `,o-1))}function we(e,o,p){var y,d,C,r,l,f,g,x,c=e.kind,A=e.result,m;if(m=e.input.charCodeAt(e.position),B(m)||Z(m)||m===35||m===38||m===42||m===33||m===124||m===62||m===39||m===34||m===37||m===64||m===96||(m===63||m===45)&&(d=e.input.charCodeAt(e.position+1),B(d)||p&&Z(d)))return!1;for(e.kind="scalar",e.result="",C=r=e.position,l=!1;m!==0;){if(m===58){if(d=e.input.charCodeAt(e.position+1),B(d)||p&&Z(d))break}else if(m===35){if(y=e.input.charCodeAt(e.position-1),B(y))break}else{if(e.position===e.lineStart&&ee(e)||p&&Z(m))break;if(P(m))if(f=e.line,g=e.lineStart,x=e.lineIndent,N(e,!1,-1),e.lineIndent>=o){l=!0,m=e.input.charCodeAt(e.position);continue}else{e.position=r,e.line=f,e.lineStart=g,e.lineIndent=x;break}}l&&(j(e,C,r,!1),ae(e,e.line-f),C=r=e.position,l=!1),J(m)||(r=e.position+1),m=e.input.charCodeAt(++e.position)}return j(e,C,r,!1),e.result?!0:(e.kind=c,e.result=A,!1)}function Fe(e,o){var p,y,d;if(p=e.input.charCodeAt(e.position),p!==39)return!1;for(e.kind="scalar",e.result="",e.position++,y=d=e.position;(p=e.input.charCodeAt(e.position))!==0;)if(p===39)if(j(e,y,e.position,!0),p=e.input.charCodeAt(++e.position),p===39)y=e.position,e.position++,d=e.position;else return!0;else P(p)?(j(e,y,d,!0),ae(e,N(e,!1,o)),y=d=e.position):e.position===e.lineStart&&ee(e)?T(e,"unexpected end of the document within a single quoted scalar"):(e.position++,d=e.position);T(e,"unexpected end of the stream within a single quoted scalar")}function Ee(e,o){var p,y,d,C,r,l;if(l=e.input.charCodeAt(e.position),l!==34)return!1;for(e.kind="scalar",e.result="",e.position++,p=y=e.position;(l=e.input.charCodeAt(e.position))!==0;){if(l===34)return j(e,p,e.position,!0),e.position++,!0;if(l===92){if(j(e,p,e.position,!0),l=e.input.charCodeAt(++e.position),P(l))N(e,!1,o);else if(l<256&&Ae[l])e.result+=fe[l],e.position++;else if((r=me(l))>0){for(d=r,C=0;d>0;d--)l=e.input.charCodeAt(++e.position),(r=ur(l))>=0?C=(C<<4)+r:T(e,"expected hexadecimal character");e.result+=ge(C),e.position++}else T(e,"unknown escape sequence");p=y=e.position}else P(l)?(j(e,p,y,!0),ae(e,N(e,!1,o)),p=y=e.position):e.position===e.lineStart&&ee(e)?T(e,"unexpected end of the document within a double quoted scalar"):(e.position++,y=e.position)}T(e,"unexpected end of the stream within a double quoted scalar")}function _e(e,o){var p=!0,y,d=e.tag,C,r=e.anchor,l,f,g,x,c,A={},m,_,R,k;if(k=e.input.charCodeAt(e.position),k===91)f=93,c=!1,C=[];else if(k===123)f=125,c=!0,C={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=C),k=e.input.charCodeAt(++e.position);k!==0;){if(N(e,!0,o),k=e.input.charCodeAt(e.position),k===f)return e.position++,e.tag=d,e.anchor=r,e.kind=c?"mapping":"sequence",e.result=C,!0;p||T(e,"missed comma between flow collection entries"),_=m=R=null,g=x=!1,k===63&&(l=e.input.charCodeAt(e.position+1),B(l)&&(g=x=!0,e.position++,N(e,!0,o))),y=e.line,z(e,o,a,!1,!0),_=e.tag,m=e.result,N(e,!0,o),k=e.input.charCodeAt(e.position),(x||e.line===y)&&k===58&&(g=!0,k=e.input.charCodeAt(++e.position),N(e,!0,o),z(e,o,a,!1,!0),R=e.result),c?H(e,C,A,_,m,R):g?C.push(H(e,null,A,_,m,R)):C.push(m),N(e,!0,o),k=e.input.charCodeAt(e.position),k===44?(p=!0,k=e.input.charCodeAt(++e.position)):p=!1}T(e,"unexpected end of the stream within a flow collection")}function Se(e,o){var p,y,d=t,C=!1,r=!1,l=o,f=0,g=!1,x,c;if(c=e.input.charCodeAt(e.position),c===124)y=!1;else if(c===62)y=!0;else return!1;for(e.kind="scalar",e.result="";c!==0;)if(c=e.input.charCodeAt(++e.position),c===43||c===45)t===d?d=c===43?E:F:T(e,"repeat of a chomping mode identifier");else if((x=xe(c))>=0)x===0?T(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):r?T(e,"repeat of an indentation width identifier"):(l=o+x-1,r=!0);else break;if(J(c)){do c=e.input.charCodeAt(++e.position);while(J(c));if(c===35)do c=e.input.charCodeAt(++e.position);while(!P(c)&&c!==0)}for(;c!==0;){for(U(e),e.lineIndent=0,c=e.input.charCodeAt(e.position);(!r||e.lineIndent<l)&&c===32;)e.lineIndent++,c=e.input.charCodeAt(++e.position);if(!r&&e.lineIndent>l&&(l=e.lineIndent),P(c)){f++;continue}if(e.lineIndent<l){d===E?e.result+=u.repeat(` `,C?1+f:f):d===t&&C&&(e.result+=` `);break}for(y?J(c)?(g=!0,e.result+=u.repeat(` `,C?1+f:f)):g?(g=!1,e.result+=u.repeat(` `,f+1)):f===0?C&&(e.result+=" "):e.result+=u.repeat(` `,f):e.result+=u.repeat(` `,C?1+f:f),C=!0,r=!0,f=0,p=e.position;!P(c)&&c!==0;)c=e.input.charCodeAt(++e.position);j(e,p,e.position,!1)}return!0}function re(e,o){var p,y=e.tag,d=e.anchor,C=[],r,l=!1,f;for(e.anchor!==null&&(e.anchorMap[e.anchor]=C),f=e.input.charCodeAt(e.position);f!==0&&!(f!==45||(r=e.input.charCodeAt(e.position+1),!B(r)));){if(l=!0,e.position++,N(e,!0,-1)&&e.lineIndent<=o){C.push(null),f=e.input.charCodeAt(e.position);continue}if(p=e.line,z(e,o,n,!1,!0),C.push(e.result),N(e,!0,-1),f=e.input.charCodeAt(e.position),(e.line===p||e.lineIndent>o)&&f!==0)T(e,"bad indentation of a sequence entry");else if(e.lineIndent<o)break}return l?(e.tag=y,e.anchor=d,e.kind="sequence",e.result=C,!0):!1}function fr(e,o,p){var y,d,C,r,l=e.tag,f=e.anchor,g={},x={},c=null,A=null,m=null,_=!1,R=!1,k;for(e.anchor!==null&&(e.anchorMap[e.anchor]=g),k=e.input.charCodeAt(e.position);k!==0;){if(y=e.input.charCodeAt(e.position+1),C=e.line,r=e.position,(k===63||k===58)&&B(y))k===63?(_&&(H(e,g,x,c,A,null),c=A=m=null),R=!0,_=!0,d=!0):_?(_=!1,d=!0):T(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,k=y;else if(z(e,p,h,!1,!0))if(e.line===C){for(k=e.input.charCodeAt(e.position);J(k);)k=e.input.charCodeAt(++e.position);if(k===58)k=e.input.charCodeAt(++e.position),B(k)||T(e,"a whitespace character is expected after the key-value separator within a block mapping"),_&&(H(e,g,x,c,A,null),c=A=m=null),R=!0,_=!1,d=!1,c=e.tag,A=e.result;else if(R)T(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=l,e.anchor=f,!0}else if(R)T(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=l,e.anchor=f,!0;else break;if((e.line===C||e.lineIndent>o)&&(z(e,o,i,!0,d)&&(_?A=e.result:m=e.result),_||(H(e,g,x,c,A,m,C,r),c=A=m=null),N(e,!0,-1),k=e.input.charCodeAt(e.position)),e.lineIndent>o&&k!==0)T(e,"bad indentation of a mapping entry");else if(e.lineIndent<o)break}return _&&H(e,g,x,c,A,null),R&&(e.tag=l,e.anchor=f,e.kind="mapping",e.result=g),R}function cr(e){var o,p=!1,y=!1,d,C,r;if(r=e.input.charCodeAt(e.position),r!==33)return!1;if(e.tag!==null&&T(e,"duplication of a tag property"),r=e.input.charCodeAt(++e.position),r===60?(p=!0,r=e.input.charCodeAt(++e.position)):r===33?(y=!0,d="!!",r=e.input.charCodeAt(++e.position)):d="!",o=e.position,p){do r=e.input.charCodeAt(++e.position);while(r!==0&&r!==62);e.position<e.length?(C=e.input.slice(o,e.position),r=e.input.charCodeAt(++e.position)):T(e,"unexpected end of the stream within a verbatim tag")}else{for(;r!==0&&!B(r);)r===33&&(y?T(e,"tag suffix cannot contain exclamation marks"):(d=e.input.slice(o-1,e.position+1),G.test(d)||T(e,"named tag handle cannot contain such characters"),y=!0,o=e.position+1)),r=e.input.charCodeAt(++e.position);C=e.input.slice(o,e.position),I.test(C)&&T(e,"tag suffix cannot contain flow indicator characters")}return C&&!X.test(C)&&T(e,"tag name cannot contain such characters: "+C),p?e.tag=C:s.call(e.tagMap,d)?e.tag=e.tagMap[d]+C:d==="!"?e.tag="!"+C:d==="!!"?e.tag="tag:yaml.org,2002:"+C:T(e,'undeclared tag handle "'+d+'"'),!0}function be(e){var o,p;if(p=e.input.charCodeAt(e.position),p!==38)return!1;for(e.anchor!==null&&T(e,"duplication of an anchor property"),p=e.input.charCodeAt(++e.position),o=e.position;p!==0&&!B(p)&&!Z(p);)p=e.input.charCodeAt(++e.position);return e.position===o&&T(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(o,e.position),!0}function Te(e){var o,p,y;if(y=e.input.charCodeAt(e.position),y!==42)return!1;for(y=e.input.charCodeAt(++e.position),o=e.position;y!==0&&!B(y)&&!Z(y);)y=e.input.charCodeAt(++e.position);return e.position===o&&T(e,"name of an alias node must contain at least one character"),p=e.input.slice(o,e.position),s.call(e.anchorMap,p)||T(e,'unidentified alias "'+p+'"'),e.result=e.anchorMap[p],N(e,!0,-1),!0}function z(e,o,p,y,d){var C,r,l,f=1,g=!1,x=!1,c,A,m,_,R;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,C=r=l=i===p||n===p,y&&N(e,!0,-1)&&(g=!0,e.lineIndent>o?f=1:e.lineIndent===o?f=0:e.lineIndent<o&&(f=-1)),f===1)for(;cr(e)||be(e);)N(e,!0,-1)?(g=!0,l=C,e.lineIndent>o?f=1:e.lineIndent===o?f=0:e.lineIndent<o&&(f=-1)):l=!1;if(l&&(l=g||d),(f===1||i===p)&&(a===p||h===p?_=o:_=o+1,R=e.position-e.lineStart,f===1?l&&(re(e,R)||fr(e,R,_))||_e(e,_)?x=!0:(r&&Se(e,_)||Fe(e,_)||Ee(e,_)?x=!0:Te(e)?(x=!0,(e.tag!==null||e.anchor!==null)&&T(e,"alias node should not have any properties")):we(e,_,a===p)&&(x=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):f===0&&(x=l&&re(e,R))),e.tag!==null&&e.tag!=="!")if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&T(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),c=0,A=e.implicitTypes.length;c<A;c+=1)if(m=e.implicitTypes[c],m.resolve(e.result)){e.result=m.construct(e.result),e.tag=m.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else s.call(e.typeMap[e.kind||"fallback"],e.tag)?(m=e.typeMap[e.kind||"fallback"][e.tag],e.result!==null&&m.kind!==e.kind&&T(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+m.kind+'", not "'+e.kind+'"'),m.resolve(e.result)?(e.result=m.construct(e.result),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):T(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")):T(e,"unknown tag !<"+e.tag+">");return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||x}function ke(e){var o=e.position,p,y,d,C=!1,r;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap={},e.anchorMap={};(r=e.input.charCodeAt(e.position))!==0&&(N(e,!0,-1),r=e.input.charCodeAt(e.position),!(e.lineIndent>0||r!==37));){for(C=!0,r=e.input.charCodeAt(++e.position),p=e.position;r!==0&&!B(r);)r=e.input.charCodeAt(++e.position);for(y=e.input.slice(p,e.position),d=[],y.length<1&&T(e,"directive name must not be less than one character in length");r!==0;){for(;J(r);)r=e.input.charCodeAt(++e.position);if(r===35){do r=e.input.charCodeAt(++e.position);while(r!==0&&!P(r));break}if(P(r))break;for(p=e.position;r!==0&&!B(r);)r=e.input.charCodeAt(++e.position);d.push(e.input.slice(p,e.position))}r!==0&&U(e),s.call(ce,y)?ce[y](e,y,d):le(e,'unknown document directive "'+y+'"')}if(N(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,N(e,!0,-1)):C&&T(e,"directives end mark is expected"),z(e,e.lineIndent-1,i,!1,!0),N(e,!0,-1),e.checkLineBreaks&&O.test(e.input.slice(o,e.position))&&le(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&ee(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,N(e,!0,-1));return}if(e.position<e.length-1)T(e,"end of the stream or a document separator is expected");else return}function Oe(e,o){e=String(e),o=o||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=` `),e.charCodeAt(0)===65279&&(e=e.slice(1)));var p=new tr(e,o),y=e.indexOf("\0");for(y!==-1&&(p.position=y,T(p,"null byte is not allowed in input")),p.input+="\0";p.input.charCodeAt(p.position)===32;)p.lineIndent+=1,p.position+=1;for(;p.position<p.length-1;)ke(p);return p.documents}function Re(e,o,p){o!==null&&typeof o=="object"&&typeof p>"u"&&(p=o,o=null);var y=Oe(e,p);if(typeof o!="function")return y;for(var d=0,C=y.length;d<C;d+=1)o(y[d])}function Le(e,o){var p=Oe(e,o);if(p.length!==0){if(p.length===1)return p[0];throw new w("expected a single document in the stream, but found more")}}function ar(e,o,p){return typeof o=="object"&&o!==null&&typeof p>"u"&&(p=o,o=null),Re(e,o,u.extend({schema:S},p))}function pr(e,o){return Le(e,u.extend({schema:S},o))}return ne.loadAll=Re,ne.load=Le,ne.safeLoadAll=ar,ne.safeLoad=pr,ne}var de={},Hr;function hn(){if(Hr)return de;Hr=1;var u=ie(),w=ue(),b=he(),S=te(),v=Object.prototype.toString,s=Object.prototype.hasOwnProperty,a=9,h=10,n=13,i=32,t=33,F=34,E=35,L=37,O=38,I=39,G=42,X=44,W=45,P=58,J=61,B=62,Z=63,ur=64,me=91,xe=93,ve=96,ge=123,Ae=124,fe=125,M={};M[0]="\\0",M[7]="\\a",M[8]="\\b",M[9]="\\t",M[10]="\\n",M[11]="\\v",M[12]="\\f",M[13]="\\r",M[27]="\\e",M[34]='\\"',M[92]="\\\\",M[133]="\\N",M[160]="\\_",M[8232]="\\L",M[8233]="\\P";var tr=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function ye(r,l){var f,g,x,c,A,m,_;if(l===null)return{};for(f={},g=Object.keys(l),x=0,c=g.length;x<c;x+=1)A=g[x],m=String(l[A]),A.slice(0,2)==="!!"&&(A="tag:yaml.org,2002:"+A.slice(2)),_=r.compiledTypeMap.fallback[A],_&&s.call(_.styleAliases,m)&&(m=_.styleAliases[m]),f[A]=m;return f}function T(r){var l,f,g;if(l=r.toString(16).toUpperCase(),r<=255)f="x",g=2;else if(r<=65535)f="u",g=4;else if(r<=4294967295)f="U",g=8;else throw new w("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+f+u.repeat("0",g-l.length)+l}function le(r){this.schema=r.schema||b,this.indent=Math.max(1,r.indent||2),this.noArrayIndent=r.noArrayIndent||!1,this.skipInvalid=r.skipInvalid||!1,this.flowLevel=u.isNothing(r.flowLevel)?-1:r.flowLevel,this.styleMap=ye(this.schema,r.styles||null),this.sortKeys=r.sortKeys||!1,this.lineWidth=r.lineWidth||80,this.noRefs=r.noRefs||!1,this.noCompatMode=r.noCompatMode||!1,this.condenseFlow=r.condenseFlow||!1,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function ce(r,l){for(var f=u.repeat(" ",l),g=0,x=-1,c="",A,m=r.length;g<m;)x=r.indexOf(` `,g),x===-1?(A=r.slice(g),g=m):(A=r.slice(g,x+1),g=x+1),A.length&&A!==` `&&(c+=f),c+=A;return c}function j(r,l){return` `+u.repeat(" ",r.indent*l)}function Ce(r,l){var f,g,x;for(f=0,g=r.implicitTypes.length;f<g;f+=1)if(x=r.implicitTypes[f],x.resolve(l))return!0;return!1}function H(r){return r===i||r===a}function U(r){return 32<=r&&r<=126||161<=r&&r<=55295&&r!==8232&&r!==8233||57344<=r&&r<=65533&&r!==65279||65536<=r&&r<=1114111}function N(r){return U(r)&&!H(r)&&r!==65279&&r!==n&&r!==h}function ee(r,l){return U(r)&&r!==65279&&r!==X&&r!==me&&r!==xe&&r!==ge&&r!==fe&&r!==P&&(r!==E||l&&N(l))}function ae(r){return U(r)&&r!==65279&&!H(r)&&r!==W&&r!==Z&&r!==P&&r!==X&&r!==me&&r!==xe&&r!==ge&&r!==fe&&r!==E&&r!==O&&r!==G&&r!==t&&r!==Ae&&r!==J&&r!==B&&r!==I&&r!==F&&r!==L&&r!==ur&&r!==ve}function we(r){var l=/^\n* /;return l.test(r)}var Fe=1,Ee=2,_e=3,Se=4,re=5;function fr(r,l,f,g,x){var c,A,m,_=!1,R=!1,k=g!==-1,K=-1,Y=ae(r.charCodeAt(0))&&!H(r.charCodeAt(r.length-1));if(l)for(c=0;c<r.length;c++){if(A=r.charCodeAt(c),!U(A))return re;m=c>0?r.charCodeAt(c-1):null,Y=Y&&ee(A,m)}else{for(c=0;c<r.length;c++){if(A=r.charCodeAt(c),A===h)_=!0,k&&(R=R||c-K-1>g&&r[K+1]!==" ",K=c);else if(!U(A))return re;m=c>0?r.charCodeAt(c-1):null,Y=Y&&ee(A,m)}R=R||k&&c-K-1>g&&r[K+1]!==" "}return!_&&!R?Y&&!x(r)?Fe:Ee:f>9&&we(r)?re:R?Se:_e}function cr(r,l,f,g){r.dump=function(){if(l.length===0)return"''";if(!r.noCompatMode&&tr.indexOf(l)!==-1)return"'"+l+"'";var x=r.indent*Math.max(1,f),c=r.lineWidth===-1?-1:Math.max(Math.min(r.lineWidth,40),r.lineWidth-x),A=g||r.flowLevel>-1&&f>=r.flowLevel;function m(_){return Ce(r,_)}switch(fr(l,A,r.indent,c,m)){case Fe:return l;case Ee:return"'"+l.replace(/'/g,"''")+"'";case _e:return"|"+be(l,r.indent)+Te(ce(l,x));case Se:return">"+be(l,r.indent)+Te(ce(z(l,c),x));case re:return'"'+Oe(l)+'"';default:throw new w("impossible error: invalid scalar style")}}()}function be(r,l){var f=we(r)?String(l):"",g=r[r.length-1]===` `,x=g&&(r[r.length-2]===` `||r===` `),c=x?"+":g?"":"-";return f+c+` `}function Te(r){return r[r.length-1]===` `?r.slice(0,-1):r}function z(r,l){for(var f=/(\n+)([^\n]*)/g,g=function(){var R=r.indexOf(` `);return R=R!==-1?R:r.length,f.lastIndex=R,ke(r.slice(0,R),l)}(),x=r[0]===` `||r[0]===" ",c,A;A=f.exec(r);){var m=A[1],_=A[2];c=_[0]===" ",g+=m+(!x&&!c&&_!==""?` `:"")+ke(_,l),x=c}return g}function ke(r,l){if(r===""||r[0]===" ")return r;for(var f=/ [^ ]/g,g,x=0,c,A=0,m=0,_="";g=f.exec(r);)m=g.index,m-x>l&&(c=A>x?A:m,_+=` `+r.slice(x,c),x=c+1),A=m;return _+=` `,r.length-x>l&&A>x?_+=r.slice(x,A)+` `+r.slice(A+1):_+=r.slice(x),_.slice(1)}function Oe(r){for(var l="",f,g,x,c=0;c<r.length;c++){if(f=r.charCodeAt(c),f>=55296&&f<=56319&&(g=r.charCodeAt(c+1),g>=56320&&g<=57343)){l+=T((f-55296)*1024+g-56320+65536),c++;continue}x=M[f],l+=!x&&U(f)?r[c]:x||T(f)}return l}function Re(r,l,f){var g="",x=r.tag,c,A;for(c=0,A=f.length;c<A;c+=1)o(r,l,f[c],!1,!1)&&(c!==0&&(g+=","+(r.condenseFlow?"":" ")),g+=r.dump);r.tag=x,r.dump="["+g+"]"}function Le(r,l,f,g){var x="",c=r.tag,A,m;for(A=0,m=f.length;A<m;A+=1)o(r,l+1,f[A],!0,!0)&&((!g||A!==0)&&(x+=j(r,l)),r.dump&&h===r.dump.charCodeAt(0)?x+="-":x+="- ",x+=r.dump);r.tag=c,r.dump=x||"[]"}function ar(r,l,f){var g="",x=r.tag,c=Object.keys(f),A,m,_,R,k;for(A=0,m=c.length;A<m;A+=1)k="",A!==0&&(k+=", "),r.condenseFlow&&(k+='"'),_=c[A],R=f[_],o(r,l,_,!1,!1)&&(r.dump.length>1024&&(k+="? "),k+=r.dump+(r.condenseFlow?'"':"")+":"+(r.condenseFlow?"":" "),o(r,l,R,!1,!1)&&(k+=r.dump,g+=k));r.tag=x,r.dump="{"+g+"}"}function pr(r,l,f,g){var x="",c=r.tag,A=Object.keys(f),m,_,R,k,K,Y;if(r.sortKeys===!0)A.sort();else if(typeof r.sortKeys=="function")A.sort(r.sortKeys);else if(r.sortKeys)throw new w("sortKeys must be a boolean or a function");for(m=0,_=A.length;m<_;m+=1)Y="",(!g||m!==0)&&(Y+=j(r,l)),R=A[m],k=f[R],o(r,l+1,R,!0,!0,!0)&&(K=r.tag!==null&&r.tag!=="?"||r.dump&&r.dump.length>1024,K&&(r.dump&&h===r.dump.charCodeAt(0)?Y+="?":Y+="? "),Y+=r.dump,K&&(Y+=j(r,l)),o(r,l+1,k,!0,K)&&(r.dump&&h===r.dump.charCodeAt(0)?Y+=":":Y+=": ",Y+=r.dump,x+=Y));r.tag=c,r.dump=x||"{}"}function e(r,l,f){var g,x,c,A,m,_;for(x=f?r.explicitTypes:r.implicitTypes,c=0,A=x.length;c<A;c+=1)if(m=x[c],(m.instanceOf||m.predicate)&&(!m.instanceOf||typeof l=="object"&&l instanceof m.instanceOf)&&(!m.predicate||m.predicate(l))){if(r.tag=f?m.tag:"?",m.represent){if(_=r.styleMap[m.tag]||m.defaultStyle,v.call(m.represent)==="[object Function]")g=m.represent(l,_);else if(s.call(m.represent,_))g=m.represent[_](l,_);else throw new w("!<"+m.tag+'> tag resolver accepts not "'+_+'" style');r.dump=g}return!0}return!1}function o(r,l,f,g,x,c){r.tag=null,r.dump=f,e(r,f,!1)||e(r,f,!0);var A=v.call(r.dump);g&&(g=r.flowLevel<0||r.flowLevel>l);var m=A==="[object Object]"||A==="[object Array]",_,R;if(m&&(_=r.duplicates.indexOf(f),R=_!==-1),(r.tag!==null&&r.tag!=="?"||R||r.indent!==2&&l>0)&&(x=!1),R&&r.usedDuplicates[_])r.dump="*ref_"+_;else{if(m&&R&&!r.usedDuplicates[_]&&(r.usedDuplicates[_]=!0),A==="[object Object]")g&&Object.keys(r.dump).length!==0?(pr(r,l,r.dump,x),R&&(r.dump="&ref_"+_+r.dump)):(ar(r,l,r.dump),R&&(r.dump="&ref_"+_+" "+r.dump));else if(A==="[object Array]"){var k=r.noArrayIndent&&l>0?l-1:l;g&&r.dump.length!==0?(Le(r,k,r.dump,x),R&&(r.dump="&ref_"+_+r.dump)):(Re(r,k,r.dump),R&&(r.dump="&ref_"+_+" "+r.dump))}else if(A==="[object String]")r.tag!=="?"&&cr(r,r.dump,l,c);else{if(r.skipInvalid)return!1;throw new w("unacceptable kind of an object to dump "+A)}r.tag!==null&&r.tag!=="?"&&(r.dump="!<"+r.tag+"> "+r.dump)}return!0}function p(r,l){var f=[],g=[],x,c;for(y(r,f,g),x=0,c=g.length;x<c;x+=1)l.duplicates.push(f[g[x]]);l.usedDuplicates=new Array(c)}function y(r,l,f){var g,x,c;if(r!==null&&typeof r=="object")if(x=l.indexOf(r),x!==-1)f.indexOf(x)===-1&&f.push(x);else if(l.push(r),Array.isArray(r))for(x=0,c=r.length;x<c;x+=1)y(r[x],l,f);else for(g=Object.keys(r),x=0,c=g.length;x<c;x+=1)y(r[g[x]],l,f)}function d(r,l){l=l||{};var f=new le(l);return f.noRefs||p(r,f),o(f,0,r,!0,!0)?f.dump+` `:""}function C(r,l){return d(r,u.extend({schema:S},l))}return de.dump=d,de.safeDump=C,de}var Ur;function dn(){if(Ur)return D;Ur=1;var u=sn(),w=hn();function b(S){return function(){throw new Error("Function "+S+" is deprecated and cannot be used.")}}return D.Type=q(),D.Schema=oe(),D.FAILSAFE_SCHEMA=je(),D.JSON_SCHEMA=Sr(),D.CORE_SCHEMA=Tr(),D.DEFAULT_SAFE_SCHEMA=te(),D.DEFAULT_FULL_SCHEMA=he(),D.load=u.load,D.loadAll=u.loadAll,D.safeLoad=u.safeLoad,D.safeLoadAll=u.safeLoadAll,D.dump=w.dump,D.safeDump=w.safeDump,D.YAMLException=ue(),D.MINIMAL_SCHEMA=je(),D.SAFE_SCHEMA=te(),D.DEFAULT_SCHEMA=he(),D.scan=b("scan"),D.parse=b("parse"),D.compose=b("compose"),D.addConstructor=b("addConstructor"),D}var lr,Kr;function mn(){if(Kr)return lr;Kr=1;var u=dn();return lr=u,lr}var Gr;function xn(){if(Gr)return se.exports;Gr=1;var u=mn(),w="\\ufeff?",b=typeof process<"u"?process.platform:"",S="^("+w+"(= yaml =|---)$([\\s\\S]*?)^(?:\\2|\\.\\.\\.)\\s*$"+(b==="win32"?"\\r?":"")+"(?:\\n)?)",v=new RegExp(S,"m");se.exports=s,se.exports.test=n;function s(i,t){i=i||"";var F={allowUnsafe:!1};t=t instanceof Object?{...F,...t}:F,t.allowUnsafe=!!t.allowUnsafe;var E=i.split(/(\r?\n)/);return E[0]&&/= yaml =|---/.test(E[0])?h(i,t.allowUnsafe):{attributes:{},body:i,bodyBegin:1}}function a(i,t){for(var F=1,E=t.indexOf(` `),L=i.index+i[0].length;E!==-1;){if(E>=L)return F;F++,E=t.indexOf(` `,E+1)}return F}function h(i,t){var F=v.exec(i);if(!F)return{attributes:{},body:i,bodyBegin:1};var E=t?u.load:u.safeLoad,L=F[F.length-1].replace(/^\s+|\s+$/g,""),O=E(L)||{},I=i.replace(F[0],""),G=a(F,i);return{attributes:O,body:I,bodyBegin:G,frontmatter:L}}function n(i){return i=i||"",v.test(i)}return se.exports}var vn=xn();const gn=Jr(vn);function Wr(u,w,b,S){return u.filter(v=>{const s=typeof v=="string"?v:v.path;return s.endsWith(".md")||Q.statSync(pe.resolve(w??"/",s)).isDirectory()}).map(v=>{const s=typeof v=="string"?v:v.path,a=pe.resolve(w??"/",s);if(Q.statSync(a).isDirectory()){const h=Wr(Q.readdirSync(a),a,b,S),n=s.split("/").pop()??"";let i;return typeof v!="string"&&v.title?i=v.title:i=(n.charAt(0).toUpperCase()+n.slice(1)).replaceAll("-"," "),h.length?{text:i,collapsible:S.collapsible,collapsed:S.collapsed,items:h}:null}else if(s.endsWith(".md")&&s[0]!=="_"){let h;if(S.useFrontmatter){const n=gn(Q.readFileSync(pe.resolve(w??"/",s),{encoding:"utf-8"}));n&&(h=n.attributes.title)}return{text:h||(s.charAt(0).toUpperCase()+s.slice(1)).slice(0,-3).replaceAll("-"," "),link:a.replace(b??"","")}}return null}).filter(v=>!!v)}function An(u={}){var w;return u.contentRoot=(u==null?void 0:u.contentRoot)??"/",u.contentDirs=(w=u==null?void 0:u.contentDirs)!=null&&w.length?u.contentDirs:["/"],u.collapsible=(u==null?void 0:u.collapsible)??!0,u.collapsed=(u==null?void 0:u.collapsed)??!0,u.useFrontmatter=(u==null?void 0:u.useFrontmatter)??!1,u.contentRoot=pe.join(process.cwd(),u.contentRoot),Wr(u.contentDirs,u.contentRoot,u.contentRoot,u)}$.getSidebar=An,Object.defineProperty($,Symbol.toStringTag,{value:"Module"})});