@vuebro/runtime 2.0.2 → 2.1.0

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.
@@ -1,204 +0,0 @@
1
- import{r as renderToString,P as ParseError}from"./katex-UTpUfKgT.js";function getDefaultExportFromCjs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function getAugmentedNamespace(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var n=function r(){var o=!1;try{o=this instanceof r}catch{}return o?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var buffer={},base64Js={},hasRequiredBase64Js;function requireBase64Js(){if(hasRequiredBase64Js)return base64Js;hasRequiredBase64Js=1,base64Js.byteLength=F,base64Js.toByteArray=V,base64Js.fromByteArray=ie;for(var e=[],t=[],n=typeof Uint8Array<"u"?Uint8Array:Array,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,c=r.length;o<c;++o)e[o]=r[o],t[r.charCodeAt(o)]=o;t[45]=62,t[95]=63;function h(se){var oe=se.length;if(oe%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var ae=se.indexOf("=");ae===-1&&(ae=oe);var fe=ae===oe?0:4-ae%4;return[ae,fe]}function F(se){var oe=h(se),ae=oe[0],fe=oe[1];return(ae+fe)*3/4-fe}function Y(se,oe,ae){return(oe+ae)*3/4-ae}function V(se){var oe,ae=h(se),fe=ae[0],he=ae[1],pe=new n(Y(se,fe,he)),me=0,ge=he>0?fe-4:fe,be;for(be=0;be<ge;be+=4)oe=t[se.charCodeAt(be)]<<18|t[se.charCodeAt(be+1)]<<12|t[se.charCodeAt(be+2)]<<6|t[se.charCodeAt(be+3)],pe[me++]=oe>>16&255,pe[me++]=oe>>8&255,pe[me++]=oe&255;return he===2&&(oe=t[se.charCodeAt(be)]<<2|t[se.charCodeAt(be+1)]>>4,pe[me++]=oe&255),he===1&&(oe=t[se.charCodeAt(be)]<<10|t[se.charCodeAt(be+1)]<<4|t[se.charCodeAt(be+2)]>>2,pe[me++]=oe>>8&255,pe[me++]=oe&255),pe}function te(se){return e[se>>18&63]+e[se>>12&63]+e[se>>6&63]+e[se&63]}function re(se,oe,ae){for(var fe,he=[],pe=oe;pe<ae;pe+=3)fe=(se[pe]<<16&16711680)+(se[pe+1]<<8&65280)+(se[pe+2]&255),he.push(te(fe));return he.join("")}function ie(se){for(var oe,ae=se.length,fe=ae%3,he=[],pe=16383,me=0,ge=ae-fe;me<ge;me+=pe)he.push(re(se,me,me+pe>ge?ge:me+pe));return fe===1?(oe=se[ae-1],he.push(e[oe>>2]+e[oe<<4&63]+"==")):fe===2&&(oe=(se[ae-2]<<8)+se[ae-1],he.push(e[oe>>10]+e[oe>>4&63]+e[oe<<2&63]+"=")),he.join("")}return base64Js}var ieee754={};var hasRequiredIeee754;function requireIeee754(){return hasRequiredIeee754||(hasRequiredIeee754=1,ieee754.read=function(e,t,n,r,o){var c,h,F=o*8-r-1,Y=(1<<F)-1,V=Y>>1,te=-7,re=n?o-1:0,ie=n?-1:1,se=e[t+re];for(re+=ie,c=se&(1<<-te)-1,se>>=-te,te+=F;te>0;c=c*256+e[t+re],re+=ie,te-=8);for(h=c&(1<<-te)-1,c>>=-te,te+=r;te>0;h=h*256+e[t+re],re+=ie,te-=8);if(c===0)c=1-V;else{if(c===Y)return h?NaN:(se?-1:1)*(1/0);h=h+Math.pow(2,r),c=c-V}return(se?-1:1)*h*Math.pow(2,c-r)},ieee754.write=function(e,t,n,r,o,c){var h,F,Y,V=c*8-o-1,te=(1<<V)-1,re=te>>1,ie=o===23?Math.pow(2,-24)-Math.pow(2,-77):0,se=r?0:c-1,oe=r?1:-1,ae=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(F=isNaN(t)?1:0,h=te):(h=Math.floor(Math.log(t)/Math.LN2),t*(Y=Math.pow(2,-h))<1&&(h--,Y*=2),h+re>=1?t+=ie/Y:t+=ie*Math.pow(2,1-re),t*Y>=2&&(h++,Y/=2),h+re>=te?(F=0,h=te):h+re>=1?(F=(t*Y-1)*Math.pow(2,o),h=h+re):(F=t*Math.pow(2,re-1)*Math.pow(2,o),h=0));o>=8;e[n+se]=F&255,se+=oe,F/=256,o-=8);for(h=h<<o|F,V+=o;V>0;e[n+se]=h&255,se+=oe,h/=256,V-=8);e[n+se-oe]|=ae*128}),ieee754}var hasRequiredBuffer;function requireBuffer(){return hasRequiredBuffer||(hasRequiredBuffer=1,(function(e){const t=requireBase64Js(),n=requireIeee754(),r=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=F,e.SlowBuffer=pe,e.INSPECT_MAX_BYTES=50;const o=2147483647;e.kMaxLength=o,F.TYPED_ARRAY_SUPPORT=c(),!F.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function c(){try{const ue=new Uint8Array(1),Q={foo:function(){return 42}};return Object.setPrototypeOf(Q,Uint8Array.prototype),Object.setPrototypeOf(ue,Q),ue.foo()===42}catch{return!1}}Object.defineProperty(F.prototype,"parent",{enumerable:!0,get:function(){if(F.isBuffer(this))return this.buffer}}),Object.defineProperty(F.prototype,"offset",{enumerable:!0,get:function(){if(F.isBuffer(this))return this.byteOffset}});function h(ue){if(ue>o)throw new RangeError('The value "'+ue+'" is invalid for option "size"');const Q=new Uint8Array(ue);return Object.setPrototypeOf(Q,F.prototype),Q}function F(ue,Q,ee){if(typeof ue=="number"){if(typeof Q=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return re(ue)}return Y(ue,Q,ee)}F.poolSize=8192;function Y(ue,Q,ee){if(typeof ue=="string")return ie(ue,Q);if(ArrayBuffer.isView(ue))return oe(ue);if(ue==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof ue);if(Ye(ue,ArrayBuffer)||ue&&Ye(ue.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Ye(ue,SharedArrayBuffer)||ue&&Ye(ue.buffer,SharedArrayBuffer)))return ae(ue,Q,ee);if(typeof ue=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const ne=ue.valueOf&&ue.valueOf();if(ne!=null&&ne!==ue)return F.from(ne,Q,ee);const ce=fe(ue);if(ce)return ce;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof ue[Symbol.toPrimitive]=="function")return F.from(ue[Symbol.toPrimitive]("string"),Q,ee);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof ue)}F.from=function(ue,Q,ee){return Y(ue,Q,ee)},Object.setPrototypeOf(F.prototype,Uint8Array.prototype),Object.setPrototypeOf(F,Uint8Array);function V(ue){if(typeof ue!="number")throw new TypeError('"size" argument must be of type number');if(ue<0)throw new RangeError('The value "'+ue+'" is invalid for option "size"')}function te(ue,Q,ee){return V(ue),ue<=0?h(ue):Q!==void 0?typeof ee=="string"?h(ue).fill(Q,ee):h(ue).fill(Q):h(ue)}F.alloc=function(ue,Q,ee){return te(ue,Q,ee)};function re(ue){return V(ue),h(ue<0?0:he(ue)|0)}F.allocUnsafe=function(ue){return re(ue)},F.allocUnsafeSlow=function(ue){return re(ue)};function ie(ue,Q){if((typeof Q!="string"||Q==="")&&(Q="utf8"),!F.isEncoding(Q))throw new TypeError("Unknown encoding: "+Q);const ee=me(ue,Q)|0;let ne=h(ee);const ce=ne.write(ue,Q);return ce!==ee&&(ne=ne.slice(0,ce)),ne}function se(ue){const Q=ue.length<0?0:he(ue.length)|0,ee=h(Q);for(let ne=0;ne<Q;ne+=1)ee[ne]=ue[ne]&255;return ee}function oe(ue){if(Ye(ue,Uint8Array)){const Q=new Uint8Array(ue);return ae(Q.buffer,Q.byteOffset,Q.byteLength)}return se(ue)}function ae(ue,Q,ee){if(Q<0||ue.byteLength<Q)throw new RangeError('"offset" is outside of buffer bounds');if(ue.byteLength<Q+(ee||0))throw new RangeError('"length" is outside of buffer bounds');let ne;return Q===void 0&&ee===void 0?ne=new Uint8Array(ue):ee===void 0?ne=new Uint8Array(ue,Q):ne=new Uint8Array(ue,Q,ee),Object.setPrototypeOf(ne,F.prototype),ne}function fe(ue){if(F.isBuffer(ue)){const Q=he(ue.length)|0,ee=h(Q);return ee.length===0||ue.copy(ee,0,0,Q),ee}if(ue.length!==void 0)return typeof ue.length!="number"||ot(ue.length)?h(0):se(ue);if(ue.type==="Buffer"&&Array.isArray(ue.data))return se(ue.data)}function he(ue){if(ue>=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return ue|0}function pe(ue){return+ue!=ue&&(ue=0),F.alloc(+ue)}F.isBuffer=function(Q){return Q!=null&&Q._isBuffer===!0&&Q!==F.prototype},F.compare=function(Q,ee){if(Ye(Q,Uint8Array)&&(Q=F.from(Q,Q.offset,Q.byteLength)),Ye(ee,Uint8Array)&&(ee=F.from(ee,ee.offset,ee.byteLength)),!F.isBuffer(Q)||!F.isBuffer(ee))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(Q===ee)return 0;let ne=Q.length,ce=ee.length;for(let le=0,de=Math.min(ne,ce);le<de;++le)if(Q[le]!==ee[le]){ne=Q[le],ce=ee[le];break}return ne<ce?-1:ce<ne?1:0},F.isEncoding=function(Q){switch(String(Q).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},F.concat=function(Q,ee){if(!Array.isArray(Q))throw new TypeError('"list" argument must be an Array of Buffers');if(Q.length===0)return F.alloc(0);let ne;if(ee===void 0)for(ee=0,ne=0;ne<Q.length;++ne)ee+=Q[ne].length;const ce=F.allocUnsafe(ee);let le=0;for(ne=0;ne<Q.length;++ne){let de=Q[ne];if(Ye(de,Uint8Array))le+de.length>ce.length?(F.isBuffer(de)||(de=F.from(de)),de.copy(ce,le)):Uint8Array.prototype.set.call(ce,de,le);else if(F.isBuffer(de))de.copy(ce,le);else throw new TypeError('"list" argument must be an Array of Buffers');le+=de.length}return ce};function me(ue,Q){if(F.isBuffer(ue))return ue.length;if(ArrayBuffer.isView(ue)||Ye(ue,ArrayBuffer))return ue.byteLength;if(typeof ue!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof ue);const ee=ue.length,ne=arguments.length>2&&arguments[2]===!0;if(!ne&&ee===0)return 0;let ce=!1;for(;;)switch(Q){case"ascii":case"latin1":case"binary":return ee;case"utf8":case"utf-8":return it(ue).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ee*2;case"hex":return ee>>>1;case"base64":return st(ue).length;default:if(ce)return ne?-1:it(ue).length;Q=(""+Q).toLowerCase(),ce=!0}}F.byteLength=me;function ge(ue,Q,ee){let ne=!1;if((Q===void 0||Q<0)&&(Q=0),Q>this.length||((ee===void 0||ee>this.length)&&(ee=this.length),ee<=0)||(ee>>>=0,Q>>>=0,ee<=Q))return"";for(ue||(ue="utf8");;)switch(ue){case"hex":return ze(this,Q,ee);case"utf8":case"utf-8":return Ne(this,Q,ee);case"ascii":return He(this,Q,ee);case"latin1":case"binary":return Fe(this,Q,ee);case"base64":return Le(this,Q,ee);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ke(this,Q,ee);default:if(ne)throw new TypeError("Unknown encoding: "+ue);ue=(ue+"").toLowerCase(),ne=!0}}F.prototype._isBuffer=!0;function be(ue,Q,ee){const ne=ue[Q];ue[Q]=ue[ee],ue[ee]=ne}F.prototype.swap16=function(){const Q=this.length;if(Q%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let ee=0;ee<Q;ee+=2)be(this,ee,ee+1);return this},F.prototype.swap32=function(){const Q=this.length;if(Q%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let ee=0;ee<Q;ee+=4)be(this,ee,ee+3),be(this,ee+1,ee+2);return this},F.prototype.swap64=function(){const Q=this.length;if(Q%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let ee=0;ee<Q;ee+=8)be(this,ee,ee+7),be(this,ee+1,ee+6),be(this,ee+2,ee+5),be(this,ee+3,ee+4);return this},F.prototype.toString=function(){const Q=this.length;return Q===0?"":arguments.length===0?Ne(this,0,Q):ge.apply(this,arguments)},F.prototype.toLocaleString=F.prototype.toString,F.prototype.equals=function(Q){if(!F.isBuffer(Q))throw new TypeError("Argument must be a Buffer");return this===Q?!0:F.compare(this,Q)===0},F.prototype.inspect=function(){let Q="";const ee=e.INSPECT_MAX_BYTES;return Q=this.toString("hex",0,ee).replace(/(.{2})/g,"$1 ").trim(),this.length>ee&&(Q+=" ... "),"<Buffer "+Q+">"},r&&(F.prototype[r]=F.prototype.inspect),F.prototype.compare=function(Q,ee,ne,ce,le){if(Ye(Q,Uint8Array)&&(Q=F.from(Q,Q.offset,Q.byteLength)),!F.isBuffer(Q))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof Q);if(ee===void 0&&(ee=0),ne===void 0&&(ne=Q?Q.length:0),ce===void 0&&(ce=0),le===void 0&&(le=this.length),ee<0||ne>Q.length||ce<0||le>this.length)throw new RangeError("out of range index");if(ce>=le&&ee>=ne)return 0;if(ce>=le)return-1;if(ee>=ne)return 1;if(ee>>>=0,ne>>>=0,ce>>>=0,le>>>=0,this===Q)return 0;let de=le-ce,_e=ne-ee;const Ae=Math.min(de,_e),ke=this.slice(ce,le),Ce=Q.slice(ee,ne);for(let Ee=0;Ee<Ae;++Ee)if(ke[Ee]!==Ce[Ee]){de=ke[Ee],_e=Ce[Ee];break}return de<_e?-1:_e<de?1:0};function xe(ue,Q,ee,ne,ce){if(ue.length===0)return-1;if(typeof ee=="string"?(ne=ee,ee=0):ee>2147483647?ee=2147483647:ee<-2147483648&&(ee=-2147483648),ee=+ee,ot(ee)&&(ee=ce?0:ue.length-1),ee<0&&(ee=ue.length+ee),ee>=ue.length){if(ce)return-1;ee=ue.length-1}else if(ee<0)if(ce)ee=0;else return-1;if(typeof Q=="string"&&(Q=F.from(Q,ne)),F.isBuffer(Q))return Q.length===0?-1:Se(ue,Q,ee,ne,ce);if(typeof Q=="number")return Q=Q&255,typeof Uint8Array.prototype.indexOf=="function"?ce?Uint8Array.prototype.indexOf.call(ue,Q,ee):Uint8Array.prototype.lastIndexOf.call(ue,Q,ee):Se(ue,[Q],ee,ne,ce);throw new TypeError("val must be string, number or Buffer")}function Se(ue,Q,ee,ne,ce){let le=1,de=ue.length,_e=Q.length;if(ne!==void 0&&(ne=String(ne).toLowerCase(),ne==="ucs2"||ne==="ucs-2"||ne==="utf16le"||ne==="utf-16le")){if(ue.length<2||Q.length<2)return-1;le=2,de/=2,_e/=2,ee/=2}function Ae(Ce,Ee){return le===1?Ce[Ee]:Ce.readUInt16BE(Ee*le)}let ke;if(ce){let Ce=-1;for(ke=ee;ke<de;ke++)if(Ae(ue,ke)===Ae(Q,Ce===-1?0:ke-Ce)){if(Ce===-1&&(Ce=ke),ke-Ce+1===_e)return Ce*le}else Ce!==-1&&(ke-=ke-Ce),Ce=-1}else for(ee+_e>de&&(ee=de-_e),ke=ee;ke>=0;ke--){let Ce=!0;for(let Ee=0;Ee<_e;Ee++)if(Ae(ue,ke+Ee)!==Ae(Q,Ee)){Ce=!1;break}if(Ce)return ke}return-1}F.prototype.includes=function(Q,ee,ne){return this.indexOf(Q,ee,ne)!==-1},F.prototype.indexOf=function(Q,ee,ne){return xe(this,Q,ee,ne,!0)},F.prototype.lastIndexOf=function(Q,ee,ne){return xe(this,Q,ee,ne,!1)};function we(ue,Q,ee,ne){ee=Number(ee)||0;const ce=ue.length-ee;ne?(ne=Number(ne),ne>ce&&(ne=ce)):ne=ce;const le=Q.length;ne>le/2&&(ne=le/2);let de;for(de=0;de<ne;++de){const _e=parseInt(Q.substr(de*2,2),16);if(ot(_e))return de;ue[ee+de]=_e}return de}function Te(ue,Q,ee,ne){return tt(it(Q,ue.length-ee),ue,ee,ne)}function $e(ue,Q,ee,ne){return tt(Ve(Q),ue,ee,ne)}function Be(ue,Q,ee,ne){return tt(st(Q),ue,ee,ne)}function Ie(ue,Q,ee,ne){return tt(dt(Q,ue.length-ee),ue,ee,ne)}F.prototype.write=function(Q,ee,ne,ce){if(ee===void 0)ce="utf8",ne=this.length,ee=0;else if(ne===void 0&&typeof ee=="string")ce=ee,ne=this.length,ee=0;else if(isFinite(ee))ee=ee>>>0,isFinite(ne)?(ne=ne>>>0,ce===void 0&&(ce="utf8")):(ce=ne,ne=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const le=this.length-ee;if((ne===void 0||ne>le)&&(ne=le),Q.length>0&&(ne<0||ee<0)||ee>this.length)throw new RangeError("Attempt to write outside buffer bounds");ce||(ce="utf8");let de=!1;for(;;)switch(ce){case"hex":return we(this,Q,ee,ne);case"utf8":case"utf-8":return Te(this,Q,ee,ne);case"ascii":case"latin1":case"binary":return $e(this,Q,ee,ne);case"base64":return Be(this,Q,ee,ne);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ie(this,Q,ee,ne);default:if(de)throw new TypeError("Unknown encoding: "+ce);ce=(""+ce).toLowerCase(),de=!0}},F.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Le(ue,Q,ee){return Q===0&&ee===ue.length?t.fromByteArray(ue):t.fromByteArray(ue.slice(Q,ee))}function Ne(ue,Q,ee){ee=Math.min(ue.length,ee);const ne=[];let ce=Q;for(;ce<ee;){const le=ue[ce];let de=null,_e=le>239?4:le>223?3:le>191?2:1;if(ce+_e<=ee){let Ae,ke,Ce,Ee;switch(_e){case 1:le<128&&(de=le);break;case 2:Ae=ue[ce+1],(Ae&192)===128&&(Ee=(le&31)<<6|Ae&63,Ee>127&&(de=Ee));break;case 3:Ae=ue[ce+1],ke=ue[ce+2],(Ae&192)===128&&(ke&192)===128&&(Ee=(le&15)<<12|(Ae&63)<<6|ke&63,Ee>2047&&(Ee<55296||Ee>57343)&&(de=Ee));break;case 4:Ae=ue[ce+1],ke=ue[ce+2],Ce=ue[ce+3],(Ae&192)===128&&(ke&192)===128&&(Ce&192)===128&&(Ee=(le&15)<<18|(Ae&63)<<12|(ke&63)<<6|Ce&63,Ee>65535&&Ee<1114112&&(de=Ee))}}de===null?(de=65533,_e=1):de>65535&&(de-=65536,ne.push(de>>>10&1023|55296),de=56320|de&1023),ne.push(de),ce+=_e}return We(ne)}const qe=4096;function We(ue){const Q=ue.length;if(Q<=qe)return String.fromCharCode.apply(String,ue);let ee="",ne=0;for(;ne<Q;)ee+=String.fromCharCode.apply(String,ue.slice(ne,ne+=qe));return ee}function He(ue,Q,ee){let ne="";ee=Math.min(ue.length,ee);for(let ce=Q;ce<ee;++ce)ne+=String.fromCharCode(ue[ce]&127);return ne}function Fe(ue,Q,ee){let ne="";ee=Math.min(ue.length,ee);for(let ce=Q;ce<ee;++ce)ne+=String.fromCharCode(ue[ce]);return ne}function ze(ue,Q,ee){const ne=ue.length;(!Q||Q<0)&&(Q=0),(!ee||ee<0||ee>ne)&&(ee=ne);let ce="";for(let le=Q;le<ee;++le)ce+=ft[ue[le]];return ce}function Ke(ue,Q,ee){const ne=ue.slice(Q,ee);let ce="";for(let le=0;le<ne.length-1;le+=2)ce+=String.fromCharCode(ne[le]+ne[le+1]*256);return ce}F.prototype.slice=function(Q,ee){const ne=this.length;Q=~~Q,ee=ee===void 0?ne:~~ee,Q<0?(Q+=ne,Q<0&&(Q=0)):Q>ne&&(Q=ne),ee<0?(ee+=ne,ee<0&&(ee=0)):ee>ne&&(ee=ne),ee<Q&&(ee=Q);const ce=this.subarray(Q,ee);return Object.setPrototypeOf(ce,F.prototype),ce};function Oe(ue,Q,ee){if(ue%1!==0||ue<0)throw new RangeError("offset is not uint");if(ue+Q>ee)throw new RangeError("Trying to access beyond buffer length")}F.prototype.readUintLE=F.prototype.readUIntLE=function(Q,ee,ne){Q=Q>>>0,ee=ee>>>0,ne||Oe(Q,ee,this.length);let ce=this[Q],le=1,de=0;for(;++de<ee&&(le*=256);)ce+=this[Q+de]*le;return ce},F.prototype.readUintBE=F.prototype.readUIntBE=function(Q,ee,ne){Q=Q>>>0,ee=ee>>>0,ne||Oe(Q,ee,this.length);let ce=this[Q+--ee],le=1;for(;ee>0&&(le*=256);)ce+=this[Q+--ee]*le;return ce},F.prototype.readUint8=F.prototype.readUInt8=function(Q,ee){return Q=Q>>>0,ee||Oe(Q,1,this.length),this[Q]},F.prototype.readUint16LE=F.prototype.readUInt16LE=function(Q,ee){return Q=Q>>>0,ee||Oe(Q,2,this.length),this[Q]|this[Q+1]<<8},F.prototype.readUint16BE=F.prototype.readUInt16BE=function(Q,ee){return Q=Q>>>0,ee||Oe(Q,2,this.length),this[Q]<<8|this[Q+1]},F.prototype.readUint32LE=F.prototype.readUInt32LE=function(Q,ee){return Q=Q>>>0,ee||Oe(Q,4,this.length),(this[Q]|this[Q+1]<<8|this[Q+2]<<16)+this[Q+3]*16777216},F.prototype.readUint32BE=F.prototype.readUInt32BE=function(Q,ee){return Q=Q>>>0,ee||Oe(Q,4,this.length),this[Q]*16777216+(this[Q+1]<<16|this[Q+2]<<8|this[Q+3])},F.prototype.readBigUInt64LE=X(function(Q){Q=Q>>>0,Je(Q,"offset");const ee=this[Q],ne=this[Q+7];(ee===void 0||ne===void 0)&&et(Q,this.length-8);const ce=ee+this[++Q]*2**8+this[++Q]*2**16+this[++Q]*2**24,le=this[++Q]+this[++Q]*2**8+this[++Q]*2**16+ne*2**24;return BigInt(ce)+(BigInt(le)<<BigInt(32))}),F.prototype.readBigUInt64BE=X(function(Q){Q=Q>>>0,Je(Q,"offset");const ee=this[Q],ne=this[Q+7];(ee===void 0||ne===void 0)&&et(Q,this.length-8);const ce=ee*2**24+this[++Q]*2**16+this[++Q]*2**8+this[++Q],le=this[++Q]*2**24+this[++Q]*2**16+this[++Q]*2**8+ne;return(BigInt(ce)<<BigInt(32))+BigInt(le)}),F.prototype.readIntLE=function(Q,ee,ne){Q=Q>>>0,ee=ee>>>0,ne||Oe(Q,ee,this.length);let ce=this[Q],le=1,de=0;for(;++de<ee&&(le*=256);)ce+=this[Q+de]*le;return le*=128,ce>=le&&(ce-=Math.pow(2,8*ee)),ce},F.prototype.readIntBE=function(Q,ee,ne){Q=Q>>>0,ee=ee>>>0,ne||Oe(Q,ee,this.length);let ce=ee,le=1,de=this[Q+--ce];for(;ce>0&&(le*=256);)de+=this[Q+--ce]*le;return le*=128,de>=le&&(de-=Math.pow(2,8*ee)),de},F.prototype.readInt8=function(Q,ee){return Q=Q>>>0,ee||Oe(Q,1,this.length),this[Q]&128?(255-this[Q]+1)*-1:this[Q]},F.prototype.readInt16LE=function(Q,ee){Q=Q>>>0,ee||Oe(Q,2,this.length);const ne=this[Q]|this[Q+1]<<8;return ne&32768?ne|4294901760:ne},F.prototype.readInt16BE=function(Q,ee){Q=Q>>>0,ee||Oe(Q,2,this.length);const ne=this[Q+1]|this[Q]<<8;return ne&32768?ne|4294901760:ne},F.prototype.readInt32LE=function(Q,ee){return Q=Q>>>0,ee||Oe(Q,4,this.length),this[Q]|this[Q+1]<<8|this[Q+2]<<16|this[Q+3]<<24},F.prototype.readInt32BE=function(Q,ee){return Q=Q>>>0,ee||Oe(Q,4,this.length),this[Q]<<24|this[Q+1]<<16|this[Q+2]<<8|this[Q+3]},F.prototype.readBigInt64LE=X(function(Q){Q=Q>>>0,Je(Q,"offset");const ee=this[Q],ne=this[Q+7];(ee===void 0||ne===void 0)&&et(Q,this.length-8);const ce=this[Q+4]+this[Q+5]*2**8+this[Q+6]*2**16+(ne<<24);return(BigInt(ce)<<BigInt(32))+BigInt(ee+this[++Q]*2**8+this[++Q]*2**16+this[++Q]*2**24)}),F.prototype.readBigInt64BE=X(function(Q){Q=Q>>>0,Je(Q,"offset");const ee=this[Q],ne=this[Q+7];(ee===void 0||ne===void 0)&&et(Q,this.length-8);const ce=(ee<<24)+this[++Q]*2**16+this[++Q]*2**8+this[++Q];return(BigInt(ce)<<BigInt(32))+BigInt(this[++Q]*2**24+this[++Q]*2**16+this[++Q]*2**8+ne)}),F.prototype.readFloatLE=function(Q,ee){return Q=Q>>>0,ee||Oe(Q,4,this.length),n.read(this,Q,!0,23,4)},F.prototype.readFloatBE=function(Q,ee){return Q=Q>>>0,ee||Oe(Q,4,this.length),n.read(this,Q,!1,23,4)},F.prototype.readDoubleLE=function(Q,ee){return Q=Q>>>0,ee||Oe(Q,8,this.length),n.read(this,Q,!0,52,8)},F.prototype.readDoubleBE=function(Q,ee){return Q=Q>>>0,ee||Oe(Q,8,this.length),n.read(this,Q,!1,52,8)};function Pe(ue,Q,ee,ne,ce,le){if(!F.isBuffer(ue))throw new TypeError('"buffer" argument must be a Buffer instance');if(Q>ce||Q<le)throw new RangeError('"value" argument is out of bounds');if(ee+ne>ue.length)throw new RangeError("Index out of range")}F.prototype.writeUintLE=F.prototype.writeUIntLE=function(Q,ee,ne,ce){if(Q=+Q,ee=ee>>>0,ne=ne>>>0,!ce){const _e=Math.pow(2,8*ne)-1;Pe(this,Q,ee,ne,_e,0)}let le=1,de=0;for(this[ee]=Q&255;++de<ne&&(le*=256);)this[ee+de]=Q/le&255;return ee+ne},F.prototype.writeUintBE=F.prototype.writeUIntBE=function(Q,ee,ne,ce){if(Q=+Q,ee=ee>>>0,ne=ne>>>0,!ce){const _e=Math.pow(2,8*ne)-1;Pe(this,Q,ee,ne,_e,0)}let le=ne-1,de=1;for(this[ee+le]=Q&255;--le>=0&&(de*=256);)this[ee+le]=Q/de&255;return ee+ne},F.prototype.writeUint8=F.prototype.writeUInt8=function(Q,ee,ne){return Q=+Q,ee=ee>>>0,ne||Pe(this,Q,ee,1,255,0),this[ee]=Q&255,ee+1},F.prototype.writeUint16LE=F.prototype.writeUInt16LE=function(Q,ee,ne){return Q=+Q,ee=ee>>>0,ne||Pe(this,Q,ee,2,65535,0),this[ee]=Q&255,this[ee+1]=Q>>>8,ee+2},F.prototype.writeUint16BE=F.prototype.writeUInt16BE=function(Q,ee,ne){return Q=+Q,ee=ee>>>0,ne||Pe(this,Q,ee,2,65535,0),this[ee]=Q>>>8,this[ee+1]=Q&255,ee+2},F.prototype.writeUint32LE=F.prototype.writeUInt32LE=function(Q,ee,ne){return Q=+Q,ee=ee>>>0,ne||Pe(this,Q,ee,4,4294967295,0),this[ee+3]=Q>>>24,this[ee+2]=Q>>>16,this[ee+1]=Q>>>8,this[ee]=Q&255,ee+4},F.prototype.writeUint32BE=F.prototype.writeUInt32BE=function(Q,ee,ne){return Q=+Q,ee=ee>>>0,ne||Pe(this,Q,ee,4,4294967295,0),this[ee]=Q>>>24,this[ee+1]=Q>>>16,this[ee+2]=Q>>>8,this[ee+3]=Q&255,ee+4};function je(ue,Q,ee,ne,ce){Xe(Q,ne,ce,ue,ee,7);let le=Number(Q&BigInt(4294967295));ue[ee++]=le,le=le>>8,ue[ee++]=le,le=le>>8,ue[ee++]=le,le=le>>8,ue[ee++]=le;let de=Number(Q>>BigInt(32)&BigInt(4294967295));return ue[ee++]=de,de=de>>8,ue[ee++]=de,de=de>>8,ue[ee++]=de,de=de>>8,ue[ee++]=de,ee}function nt(ue,Q,ee,ne,ce){Xe(Q,ne,ce,ue,ee,7);let le=Number(Q&BigInt(4294967295));ue[ee+7]=le,le=le>>8,ue[ee+6]=le,le=le>>8,ue[ee+5]=le,le=le>>8,ue[ee+4]=le;let de=Number(Q>>BigInt(32)&BigInt(4294967295));return ue[ee+3]=de,de=de>>8,ue[ee+2]=de,de=de>>8,ue[ee+1]=de,de=de>>8,ue[ee]=de,ee+8}F.prototype.writeBigUInt64LE=X(function(Q,ee=0){return je(this,Q,ee,BigInt(0),BigInt("0xffffffffffffffff"))}),F.prototype.writeBigUInt64BE=X(function(Q,ee=0){return nt(this,Q,ee,BigInt(0),BigInt("0xffffffffffffffff"))}),F.prototype.writeIntLE=function(Q,ee,ne,ce){if(Q=+Q,ee=ee>>>0,!ce){const Ae=Math.pow(2,8*ne-1);Pe(this,Q,ee,ne,Ae-1,-Ae)}let le=0,de=1,_e=0;for(this[ee]=Q&255;++le<ne&&(de*=256);)Q<0&&_e===0&&this[ee+le-1]!==0&&(_e=1),this[ee+le]=(Q/de>>0)-_e&255;return ee+ne},F.prototype.writeIntBE=function(Q,ee,ne,ce){if(Q=+Q,ee=ee>>>0,!ce){const Ae=Math.pow(2,8*ne-1);Pe(this,Q,ee,ne,Ae-1,-Ae)}let le=ne-1,de=1,_e=0;for(this[ee+le]=Q&255;--le>=0&&(de*=256);)Q<0&&_e===0&&this[ee+le+1]!==0&&(_e=1),this[ee+le]=(Q/de>>0)-_e&255;return ee+ne},F.prototype.writeInt8=function(Q,ee,ne){return Q=+Q,ee=ee>>>0,ne||Pe(this,Q,ee,1,127,-128),Q<0&&(Q=255+Q+1),this[ee]=Q&255,ee+1},F.prototype.writeInt16LE=function(Q,ee,ne){return Q=+Q,ee=ee>>>0,ne||Pe(this,Q,ee,2,32767,-32768),this[ee]=Q&255,this[ee+1]=Q>>>8,ee+2},F.prototype.writeInt16BE=function(Q,ee,ne){return Q=+Q,ee=ee>>>0,ne||Pe(this,Q,ee,2,32767,-32768),this[ee]=Q>>>8,this[ee+1]=Q&255,ee+2},F.prototype.writeInt32LE=function(Q,ee,ne){return Q=+Q,ee=ee>>>0,ne||Pe(this,Q,ee,4,2147483647,-2147483648),this[ee]=Q&255,this[ee+1]=Q>>>8,this[ee+2]=Q>>>16,this[ee+3]=Q>>>24,ee+4},F.prototype.writeInt32BE=function(Q,ee,ne){return Q=+Q,ee=ee>>>0,ne||Pe(this,Q,ee,4,2147483647,-2147483648),Q<0&&(Q=4294967295+Q+1),this[ee]=Q>>>24,this[ee+1]=Q>>>16,this[ee+2]=Q>>>8,this[ee+3]=Q&255,ee+4},F.prototype.writeBigInt64LE=X(function(Q,ee=0){return je(this,Q,ee,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),F.prototype.writeBigInt64BE=X(function(Q,ee=0){return nt(this,Q,ee,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Re(ue,Q,ee,ne,ce,le){if(ee+ne>ue.length)throw new RangeError("Index out of range");if(ee<0)throw new RangeError("Index out of range")}function Ze(ue,Q,ee,ne,ce){return Q=+Q,ee=ee>>>0,ce||Re(ue,Q,ee,4),n.write(ue,Q,ee,ne,23,4),ee+4}F.prototype.writeFloatLE=function(Q,ee,ne){return Ze(this,Q,ee,!0,ne)},F.prototype.writeFloatBE=function(Q,ee,ne){return Ze(this,Q,ee,!1,ne)};function Qe(ue,Q,ee,ne,ce){return Q=+Q,ee=ee>>>0,ce||Re(ue,Q,ee,8),n.write(ue,Q,ee,ne,52,8),ee+8}F.prototype.writeDoubleLE=function(Q,ee,ne){return Qe(this,Q,ee,!0,ne)},F.prototype.writeDoubleBE=function(Q,ee,ne){return Qe(this,Q,ee,!1,ne)},F.prototype.copy=function(Q,ee,ne,ce){if(!F.isBuffer(Q))throw new TypeError("argument should be a Buffer");if(ne||(ne=0),!ce&&ce!==0&&(ce=this.length),ee>=Q.length&&(ee=Q.length),ee||(ee=0),ce>0&&ce<ne&&(ce=ne),ce===ne||Q.length===0||this.length===0)return 0;if(ee<0)throw new RangeError("targetStart out of bounds");if(ne<0||ne>=this.length)throw new RangeError("Index out of range");if(ce<0)throw new RangeError("sourceEnd out of bounds");ce>this.length&&(ce=this.length),Q.length-ee<ce-ne&&(ce=Q.length-ee+ne);const le=ce-ne;return this===Q&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(ee,ne,ce):Uint8Array.prototype.set.call(Q,this.subarray(ne,ce),ee),le},F.prototype.fill=function(Q,ee,ne,ce){if(typeof Q=="string"){if(typeof ee=="string"?(ce=ee,ee=0,ne=this.length):typeof ne=="string"&&(ce=ne,ne=this.length),ce!==void 0&&typeof ce!="string")throw new TypeError("encoding must be a string");if(typeof ce=="string"&&!F.isEncoding(ce))throw new TypeError("Unknown encoding: "+ce);if(Q.length===1){const de=Q.charCodeAt(0);(ce==="utf8"&&de<128||ce==="latin1")&&(Q=de)}}else typeof Q=="number"?Q=Q&255:typeof Q=="boolean"&&(Q=Number(Q));if(ee<0||this.length<ee||this.length<ne)throw new RangeError("Out of range index");if(ne<=ee)return this;ee=ee>>>0,ne=ne===void 0?this.length:ne>>>0,Q||(Q=0);let le;if(typeof Q=="number")for(le=ee;le<ne;++le)this[le]=Q;else{const de=F.isBuffer(Q)?Q:F.from(Q,ce),_e=de.length;if(_e===0)throw new TypeError('The value "'+Q+'" is invalid for argument "value"');for(le=0;le<ne-ee;++le)this[le+ee]=de[le%_e]}return this};const Ge={};function rt(ue,Q,ee){Ge[ue]=class extends ee{constructor(){super(),Object.defineProperty(this,"message",{value:Q.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${ue}]`,this.stack,delete this.name}get code(){return ue}set code(ce){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:ce,writable:!0})}toString(){return`${this.name} [${ue}]: ${this.message}`}}}rt("ERR_BUFFER_OUT_OF_BOUNDS",function(ue){return ue?`${ue} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),rt("ERR_INVALID_ARG_TYPE",function(ue,Q){return`The "${ue}" argument must be of type number. Received type ${typeof Q}`},TypeError),rt("ERR_OUT_OF_RANGE",function(ue,Q,ee){let ne=`The value of "${ue}" is out of range.`,ce=ee;return Number.isInteger(ee)&&Math.abs(ee)>2**32?ce=ut(String(ee)):typeof ee=="bigint"&&(ce=String(ee),(ee>BigInt(2)**BigInt(32)||ee<-(BigInt(2)**BigInt(32)))&&(ce=ut(ce)),ce+="n"),ne+=` It must be ${Q}. Received ${ce}`,ne},RangeError);function ut(ue){let Q="",ee=ue.length;const ne=ue[0]==="-"?1:0;for(;ee>=ne+4;ee-=3)Q=`_${ue.slice(ee-3,ee)}${Q}`;return`${ue.slice(0,ee)}${Q}`}function ct(ue,Q,ee){Je(Q,"offset"),(ue[Q]===void 0||ue[Q+ee]===void 0)&&et(Q,ue.length-(ee+1))}function Xe(ue,Q,ee,ne,ce,le){if(ue>ee||ue<Q){const de=typeof Q=="bigint"?"n":"";let _e;throw Q===0||Q===BigInt(0)?_e=`>= 0${de} and < 2${de} ** ${(le+1)*8}${de}`:_e=`>= -(2${de} ** ${(le+1)*8-1}${de}) and < 2 ** ${(le+1)*8-1}${de}`,new Ge.ERR_OUT_OF_RANGE("value",_e,ue)}ct(ne,ce,le)}function Je(ue,Q){if(typeof ue!="number")throw new Ge.ERR_INVALID_ARG_TYPE(Q,"number",ue)}function et(ue,Q,ee){throw Math.floor(ue)!==ue?(Je(ue,ee),new Ge.ERR_OUT_OF_RANGE("offset","an integer",ue)):Q<0?new Ge.ERR_BUFFER_OUT_OF_BOUNDS:new Ge.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${Q}`,ue)}const at=/[^+/0-9A-Za-z-_]/g;function lt(ue){if(ue=ue.split("=")[0],ue=ue.trim().replace(at,""),ue.length<2)return"";for(;ue.length%4!==0;)ue=ue+"=";return ue}function it(ue,Q){Q=Q||1/0;let ee;const ne=ue.length;let ce=null;const le=[];for(let de=0;de<ne;++de){if(ee=ue.charCodeAt(de),ee>55295&&ee<57344){if(!ce){if(ee>56319){(Q-=3)>-1&&le.push(239,191,189);continue}else if(de+1===ne){(Q-=3)>-1&&le.push(239,191,189);continue}ce=ee;continue}if(ee<56320){(Q-=3)>-1&&le.push(239,191,189),ce=ee;continue}ee=(ce-55296<<10|ee-56320)+65536}else ce&&(Q-=3)>-1&&le.push(239,191,189);if(ce=null,ee<128){if((Q-=1)<0)break;le.push(ee)}else if(ee<2048){if((Q-=2)<0)break;le.push(ee>>6|192,ee&63|128)}else if(ee<65536){if((Q-=3)<0)break;le.push(ee>>12|224,ee>>6&63|128,ee&63|128)}else if(ee<1114112){if((Q-=4)<0)break;le.push(ee>>18|240,ee>>12&63|128,ee>>6&63|128,ee&63|128)}else throw new Error("Invalid code point")}return le}function Ve(ue){const Q=[];for(let ee=0;ee<ue.length;++ee)Q.push(ue.charCodeAt(ee)&255);return Q}function dt(ue,Q){let ee,ne,ce;const le=[];for(let de=0;de<ue.length&&!((Q-=2)<0);++de)ee=ue.charCodeAt(de),ne=ee>>8,ce=ee%256,le.push(ce),le.push(ne);return le}function st(ue){return t.toByteArray(lt(ue))}function tt(ue,Q,ee,ne){let ce;for(ce=0;ce<ne&&!(ce+ee>=Q.length||ce>=ue.length);++ce)Q[ce+ee]=ue[ce];return ce}function Ye(ue,Q){return ue instanceof Q||ue!=null&&ue.constructor!=null&&ue.constructor.name!=null&&ue.constructor.name===Q.name}function ot(ue){return ue!==ue}const ft=(function(){const ue="0123456789abcdef",Q=new Array(256);for(let ee=0;ee<16;++ee){const ne=ee*16;for(let ce=0;ce<16;++ce)Q[ne+ce]=ue[ee]+ue[ce]}return Q})();function X(ue){return typeof BigInt>"u"?ye:ue}function ye(){throw new Error("BigInt not supported")}})(buffer)),buffer}var bufferExports=requireBuffer();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],te=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,te),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 ie=Y.match(HTML_SELF_CLOSING_TAG_RE)??Y.match(HTML_OPEN_AND_CLOSE_TAG_IN_THE_SAME_LINE_RE);if(ie){n.line=r+1;let se=n.push("html_inline","",0);return se.content=ie[0],se.map=[r,n.line],se=n.push("inline","",0),se.content=Y.slice(ie[0].length),se.map=[r,n.line],se.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],te=n.eMarks[F],Y=n.src.slice(V,te),t[h][1].test(Y)){Y.length!==0&&F++;break}}n.line=F;const re=n.push("html_block","",0);return re.map=[r,F],re.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(re){if(re===void 0)return"undefined";if(re===null)return"null";var ie=typeof re;if(ie==="boolean")return"boolean";if(ie==="string")return"string";if(ie==="number")return"number";if(ie==="symbol")return"symbol";if(ie==="function")return h(re)?"generatorfunction":"function";if(n(re))return"array";if(V(re))return"buffer";if(Y(re))return"arguments";if(o(re))return"date";if(r(re))return"error";if(c(re))return"regexp";switch(t(re)){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(re))return"generator";switch(ie=e.call(re),ie){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 ie.slice(8,-1).toLowerCase().replace(/\s/g,"")};function t(te){return typeof te.constructor=="function"?te.constructor.name:null}function n(te){return Array.isArray?Array.isArray(te):te instanceof Array}function r(te){return te instanceof Error||typeof te.message=="string"&&te.constructor&&typeof te.constructor.stackTraceLimit=="number"}function o(te){return te instanceof Date?!0:typeof te.toDateString=="function"&&typeof te.getDate=="function"&&typeof te.setDate=="function"}function c(te){return te instanceof RegExp?!0:typeof te.flags=="string"&&typeof te.ignoreCase=="boolean"&&typeof te.multiline=="boolean"&&typeof te.global=="boolean"}function h(te,re){return t(te)==="GeneratorFunction"}function F(te){return typeof te.throw=="function"&&typeof te.return=="function"&&typeof te.next=="function"}function Y(te){try{if(typeof te.length=="number"&&typeof te.callee=="function")return!0}catch(re){if(re.message.indexOf("callee")!==-1)return!0}return!1}function V(te){return te.constructor&&typeof te.constructor.isBuffer=="function"?te.constructor.isBuffer(te):!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 te=r(Y),re={section_delimiter:"---",parse:h},ie=t({},re,V),se=ie.section_delimiter,oe=te.content.split(/\r?\n/),ae=null,fe=c(),he=[],pe=[];function me(Te){te.content=Te,ae=[],he=[]}function ge(Te){pe.length&&(fe.key=o(pe[0],se),fe.content=Te,ie.parse(fe,ae),ae.push(fe),fe=c(),he=[],pe=[])}for(var be=0;be<oe.length;be++){var xe=oe[be],Se=pe.length,we=xe.trim();if(n(we,se)){if(we.length===3&&be!==0){if(Se===0||Se===2){he.push(xe);continue}pe.push(we),fe.data=he.join(`
2
- `),he=[];continue}ae===null&&me(he.join(`
3
- `)),Se===2&&ge(he.join(`
4
- `)),pe.push(we);continue}he.push(xe)}return ae===null?me(he.join(`
5
- `)):ge(he.join(`
6
- `)),te.sections=ae,te};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,te,re;if(F)for(re=Object.keys(F),Y=0,V=re.length;Y<V;Y+=1)te=re[Y],h[te]=F[te];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(te){Y=r(te,F,Y)}),h[F].forEach(function(te){Y.forEach(function(re,ie){re.tag===te.tag&&re.kind===te.kind&&V.push(ie)}),Y.push(te)}),Y.filter(function(te,re){return V.indexOf(re)===-1})}function o(){var h={scalar:{},sequence:{},mapping:{},fallback:{}},F,Y;function V(te){h[te.kind][te.tag]=h.fallback[te.tag]=te}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,te=0,re=!1,ie;if(!V)return!1;if(ie=Y[te],(ie==="-"||ie==="+")&&(ie=Y[++te]),ie==="0"){if(te+1===V)return!0;if(ie=Y[++te],ie==="b"){for(te++;te<V;te++)if(ie=Y[te],ie!=="_"){if(ie!=="0"&&ie!=="1")return!1;re=!0}return re&&ie!=="_"}if(ie==="x"){for(te++;te<V;te++)if(ie=Y[te],ie!=="_"){if(!n(Y.charCodeAt(te)))return!1;re=!0}return re&&ie!=="_"}for(;te<V;te++)if(ie=Y[te],ie!=="_"){if(!r(Y.charCodeAt(te)))return!1;re=!0}return re&&ie!=="_"}if(ie==="_")return!1;for(;te<V;te++)if(ie=Y[te],ie!=="_"){if(ie===":")break;if(!o(Y.charCodeAt(te)))return!1;re=!0}return!re||ie==="_"?!1:ie!==":"?!0:/^(:[0-5]?[0-9])+$/.test(Y.slice(te))}function h(Y){var V=Y,te=1,re,ie,se=[];return V.indexOf("_")!==-1&&(V=V.replace(/_/g,"")),re=V[0],(re==="-"||re==="+")&&(re==="-"&&(te=-1),V=V.slice(1),re=V[0]),V==="0"?0:re==="0"?V[1]==="b"?te*parseInt(V.slice(2),2):V[1]==="x"?te*parseInt(V,16):te*parseInt(V,8):V.indexOf(":")!==-1?(V.split(":").forEach(function(oe){se.unshift(parseInt(oe,10))}),V=0,ie=1,se.forEach(function(oe){V+=oe*ie,ie*=60}),te*V):te*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,te,re,ie;return V=Y.replace(/_/g,"").toLowerCase(),te=V[0]==="-"?-1:1,ie=[],"+-".indexOf(V[0])>=0&&(V=V.slice(1)),V===".inf"?te===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:V===".nan"?NaN:V.indexOf(":")>=0?(V.split(":").forEach(function(se){ie.unshift(parseFloat(se,10))}),V=0,re=1,ie.forEach(function(se){V+=se*re,re*=60}),te*V):te*parseFloat(V,10)}var c=/^[-+]?[0-9]+e/;function h(Y,V){var te;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 te=Y.toString(10),c.test(te)?te.replace("e",".e"):te}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,te,re,ie,se,oe=0,ae=null,fe,he,pe;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,te=+F[3],!F[4])return new Date(Date.UTC(Y,V,te));if(re=+F[4],ie=+F[5],se=+F[6],F[7]){for(oe=F[7].slice(0,3);oe.length<3;)oe+="0";oe=+oe}return F[9]&&(fe=+F[10],he=+(F[11]||0),ae=(fe*60+he)*6e4,F[9]==="-"&&(ae=-ae)),pe=new Date(Date.UTC(Y,V,te,re,ie,se,oe)),ae&&pe.setTime(pe.getTime()-ae),pe}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,te,re=0,ie=Y.length,se=r;for(te=0;te<ie;te++)if(V=se.indexOf(Y.charAt(te)),!(V>64)){if(V<0)return!1;re+=6}return re%8===0}function c(Y){var V,te,re=Y.replace(/[\r\n=]/g,""),ie=re.length,se=r,oe=0,ae=[];for(V=0;V<ie;V++)V%4===0&&V&&(ae.push(oe>>16&255),ae.push(oe>>8&255),ae.push(oe&255)),oe=oe<<6|se.indexOf(re.charAt(V));return te=ie%4*6,te===0?(ae.push(oe>>16&255),ae.push(oe>>8&255),ae.push(oe&255)):te===18?(ae.push(oe>>10&255),ae.push(oe>>2&255)):te===12&&ae.push(oe>>4&255),e?e.from?e.from(ae):new e(ae):ae}function h(Y){var V="",te=0,re,ie,se=Y.length,oe=r;for(re=0;re<se;re++)re%3===0&&re&&(V+=oe[te>>18&63],V+=oe[te>>12&63],V+=oe[te>>6&63],V+=oe[te&63]),te=(te<<8)+Y[re];return ie=se%3,ie===0?(V+=oe[te>>18&63],V+=oe[te>>12&63],V+=oe[te>>6&63],V+=oe[te&63]):ie===2?(V+=oe[te>>10&63],V+=oe[te>>4&63],V+=oe[te<<2&63],V+=oe[64]):ie===1&&(V+=oe[te>>2&63],V+=oe[te<<4&63],V+=oe[64],V+=oe[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,te,re,ie=c;for(F=0,Y=ie.length;F<Y;F+=1){if(V=ie[F],re=!1,n.call(V)!=="[object Object]")return!1;for(te in V)if(t.call(V,te))if(!re)re=!0;else return!1;if(!re)return!1;if(h.indexOf(te)===-1)h.push(te);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,te=o;for(V=new Array(te.length),c=0,h=te.length;c<h;c+=1){if(F=te[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,te=o;for(V=new Array(te.length),c=0,h=te.length;c<h;c+=1)F=te[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}),te=[],re;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(ie){te.push(ie.name)}),re=V.body[0].expression.body.range,V.body[0].expression.body.type==="BlockStatement"?new Function(te,Y.slice(re[0]+1,re[1]-1)):new Function(te,"return "+Y.slice(re[0],re[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,te=1,re=2,ie=3,se=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,oe=/[\x85\u2028\u2029]/,ae=/[,\[\]\{\}]/,fe=/^(?:!|!!|![a-z\-]+!)$/i,he=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function pe(X){return Object.prototype.toString.call(X)}function me(X){return X===10||X===13}function ge(X){return X===9||X===32}function be(X){return X===9||X===32||X===10||X===13}function xe(X){return X===44||X===91||X===93||X===123||X===125}function Se(X){var ye;return 48<=X&&X<=57?X-48:(ye=X|32,97<=ye&&ye<=102?ye-97+10:-1)}function we(X){return X===120?2:X===117?4:X===85?8:0}function Te(X){return 48<=X&&X<=57?X-48:-1}function $e(X){return X===48?"\0":X===97?"\x07":X===98?"\b":X===116||X===9?" ":X===110?`
12
- `:X===118?"\v":X===102?"\f":X===114?"\r":X===101?"\x1B":X===32?" ":X===34?'"':X===47?"/":X===92?"\\":X===78?"…":X===95?" ":X===76?"\u2028":X===80?"\u2029":""}function Be(X){return X<=65535?String.fromCharCode(X):String.fromCharCode((X-65536>>10)+55296,(X-65536&1023)+56320)}function Ie(X,ye,ue){ye==="__proto__"?Object.defineProperty(X,ye,{configurable:!0,enumerable:!0,writable:!0,value:ue}):X[ye]=ue}for(var Le=new Array(256),Ne=new Array(256),qe=0;qe<256;qe++)Le[qe]=$e(qe)?1:0,Ne[qe]=$e(qe);function We(X,ye){this.input=X,this.filename=ye.filename||null,this.schema=ye.schema||o,this.onWarning=ye.onWarning||null,this.legacy=ye.legacy||!1,this.json=ye.json||!1,this.listener=ye.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=X.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}function He(X,ye){return new t(ye,new n(X.filename,X.input,X.position,X.line,X.position-X.lineStart))}function Fe(X,ye){throw He(X,ye)}function ze(X,ye){X.onWarning&&X.onWarning.call(null,He(X,ye))}var Ke={YAML:function(ye,ue,Q){var ee,ne,ce;ye.version!==null&&Fe(ye,"duplication of %YAML directive"),Q.length!==1&&Fe(ye,"YAML directive accepts exactly one argument"),ee=/^([0-9]+)\.([0-9]+)$/.exec(Q[0]),ee===null&&Fe(ye,"ill-formed argument of the YAML directive"),ne=parseInt(ee[1],10),ce=parseInt(ee[2],10),ne!==1&&Fe(ye,"unacceptable YAML version of the document"),ye.version=Q[0],ye.checkLineBreaks=ce<2,ce!==1&&ce!==2&&ze(ye,"unsupported YAML version of the document")},TAG:function(ye,ue,Q){var ee,ne;Q.length!==2&&Fe(ye,"TAG directive accepts exactly two arguments"),ee=Q[0],ne=Q[1],fe.test(ee)||Fe(ye,"ill-formed tag handle (first argument) of the TAG directive"),c.call(ye.tagMap,ee)&&Fe(ye,'there is a previously declared suffix for "'+ee+'" tag handle'),he.test(ne)||Fe(ye,"ill-formed tag prefix (second argument) of the TAG directive"),ye.tagMap[ee]=ne}};function Oe(X,ye,ue,Q){var ee,ne,ce,le;if(ye<ue){if(le=X.input.slice(ye,ue),Q)for(ee=0,ne=le.length;ee<ne;ee+=1)ce=le.charCodeAt(ee),ce===9||32<=ce&&ce<=1114111||Fe(X,"expected valid JSON character");else se.test(le)&&Fe(X,"the stream contains non-printable characters");X.result+=le}}function Pe(X,ye,ue,Q){var ee,ne,ce,le;for(e.isObject(ue)||Fe(X,"cannot merge mappings; the provided source object is unacceptable"),ee=Object.keys(ue),ce=0,le=ee.length;ce<le;ce+=1)ne=ee[ce],c.call(ye,ne)||(Ie(ye,ne,ue[ne]),Q[ne]=!0)}function je(X,ye,ue,Q,ee,ne,ce,le){var de,_e;if(Array.isArray(ee))for(ee=Array.prototype.slice.call(ee),de=0,_e=ee.length;de<_e;de+=1)Array.isArray(ee[de])&&Fe(X,"nested arrays are not supported inside keys"),typeof ee=="object"&&pe(ee[de])==="[object Object]"&&(ee[de]="[object Object]");if(typeof ee=="object"&&pe(ee)==="[object Object]"&&(ee="[object Object]"),ee=String(ee),ye===null&&(ye={}),Q==="tag:yaml.org,2002:merge")if(Array.isArray(ne))for(de=0,_e=ne.length;de<_e;de+=1)Pe(X,ye,ne[de],ue);else Pe(X,ye,ne,ue);else!X.json&&!c.call(ue,ee)&&c.call(ye,ee)&&(X.line=ce||X.line,X.position=le||X.position,Fe(X,"duplicated mapping key")),Ie(ye,ee,ne),delete ue[ee];return ye}function nt(X){var ye;ye=X.input.charCodeAt(X.position),ye===10?X.position++:ye===13?(X.position++,X.input.charCodeAt(X.position)===10&&X.position++):Fe(X,"a line break is expected"),X.line+=1,X.lineStart=X.position}function Re(X,ye,ue){for(var Q=0,ee=X.input.charCodeAt(X.position);ee!==0;){for(;ge(ee);)ee=X.input.charCodeAt(++X.position);if(ye&&ee===35)do ee=X.input.charCodeAt(++X.position);while(ee!==10&&ee!==13&&ee!==0);if(me(ee))for(nt(X),ee=X.input.charCodeAt(X.position),Q++,X.lineIndent=0;ee===32;)X.lineIndent++,ee=X.input.charCodeAt(++X.position);else break}return ue!==-1&&Q!==0&&X.lineIndent<ue&&ze(X,"deficient indentation"),Q}function Ze(X){var ye=X.position,ue;return ue=X.input.charCodeAt(ye),!!((ue===45||ue===46)&&ue===X.input.charCodeAt(ye+1)&&ue===X.input.charCodeAt(ye+2)&&(ye+=3,ue=X.input.charCodeAt(ye),ue===0||be(ue)))}function Qe(X,ye){ye===1?X.result+=" ":ye>1&&(X.result+=e.repeat(`
13
- `,ye-1))}function Ge(X,ye,ue){var Q,ee,ne,ce,le,de,_e,Ae,ke=X.kind,Ce=X.result,Ee;if(Ee=X.input.charCodeAt(X.position),be(Ee)||xe(Ee)||Ee===35||Ee===38||Ee===42||Ee===33||Ee===124||Ee===62||Ee===39||Ee===34||Ee===37||Ee===64||Ee===96||(Ee===63||Ee===45)&&(ee=X.input.charCodeAt(X.position+1),be(ee)||ue&&xe(ee)))return!1;for(X.kind="scalar",X.result="",ne=ce=X.position,le=!1;Ee!==0;){if(Ee===58){if(ee=X.input.charCodeAt(X.position+1),be(ee)||ue&&xe(ee))break}else if(Ee===35){if(Q=X.input.charCodeAt(X.position-1),be(Q))break}else{if(X.position===X.lineStart&&Ze(X)||ue&&xe(Ee))break;if(me(Ee))if(de=X.line,_e=X.lineStart,Ae=X.lineIndent,Re(X,!1,-1),X.lineIndent>=ye){le=!0,Ee=X.input.charCodeAt(X.position);continue}else{X.position=ce,X.line=de,X.lineStart=_e,X.lineIndent=Ae;break}}le&&(Oe(X,ne,ce,!1),Qe(X,X.line-de),ne=ce=X.position,le=!1),ge(Ee)||(ce=X.position+1),Ee=X.input.charCodeAt(++X.position)}return Oe(X,ne,ce,!1),X.result?!0:(X.kind=ke,X.result=Ce,!1)}function rt(X,ye){var ue,Q,ee;if(ue=X.input.charCodeAt(X.position),ue!==39)return!1;for(X.kind="scalar",X.result="",X.position++,Q=ee=X.position;(ue=X.input.charCodeAt(X.position))!==0;)if(ue===39)if(Oe(X,Q,X.position,!0),ue=X.input.charCodeAt(++X.position),ue===39)Q=X.position,X.position++,ee=X.position;else return!0;else me(ue)?(Oe(X,Q,ee,!0),Qe(X,Re(X,!1,ye)),Q=ee=X.position):X.position===X.lineStart&&Ze(X)?Fe(X,"unexpected end of the document within a single quoted scalar"):(X.position++,ee=X.position);Fe(X,"unexpected end of the stream within a single quoted scalar")}function ut(X,ye){var ue,Q,ee,ne,ce,le;if(le=X.input.charCodeAt(X.position),le!==34)return!1;for(X.kind="scalar",X.result="",X.position++,ue=Q=X.position;(le=X.input.charCodeAt(X.position))!==0;){if(le===34)return Oe(X,ue,X.position,!0),X.position++,!0;if(le===92){if(Oe(X,ue,X.position,!0),le=X.input.charCodeAt(++X.position),me(le))Re(X,!1,ye);else if(le<256&&Le[le])X.result+=Ne[le],X.position++;else if((ce=we(le))>0){for(ee=ce,ne=0;ee>0;ee--)le=X.input.charCodeAt(++X.position),(ce=Se(le))>=0?ne=(ne<<4)+ce:Fe(X,"expected hexadecimal character");X.result+=Be(ne),X.position++}else Fe(X,"unknown escape sequence");ue=Q=X.position}else me(le)?(Oe(X,ue,Q,!0),Qe(X,Re(X,!1,ye)),ue=Q=X.position):X.position===X.lineStart&&Ze(X)?Fe(X,"unexpected end of the document within a double quoted scalar"):(X.position++,Q=X.position)}Fe(X,"unexpected end of the stream within a double quoted scalar")}function ct(X,ye){var ue=!0,Q,ee=X.tag,ne,ce=X.anchor,le,de,_e,Ae,ke,Ce={},Ee,De,Me,ve;if(ve=X.input.charCodeAt(X.position),ve===91)de=93,ke=!1,ne=[];else if(ve===123)de=125,ke=!0,ne={};else return!1;for(X.anchor!==null&&(X.anchorMap[X.anchor]=ne),ve=X.input.charCodeAt(++X.position);ve!==0;){if(Re(X,!0,ye),ve=X.input.charCodeAt(X.position),ve===de)return X.position++,X.tag=ee,X.anchor=ce,X.kind=ke?"mapping":"sequence",X.result=ne,!0;ue||Fe(X,"missed comma between flow collection entries"),De=Ee=Me=null,_e=Ae=!1,ve===63&&(le=X.input.charCodeAt(X.position+1),be(le)&&(_e=Ae=!0,X.position++,Re(X,!0,ye))),Q=X.line,Ve(X,ye,h,!1,!0),De=X.tag,Ee=X.result,Re(X,!0,ye),ve=X.input.charCodeAt(X.position),(Ae||X.line===Q)&&ve===58&&(_e=!0,ve=X.input.charCodeAt(++X.position),Re(X,!0,ye),Ve(X,ye,h,!1,!0),Me=X.result),ke?je(X,ne,Ce,De,Ee,Me):_e?ne.push(je(X,null,Ce,De,Ee,Me)):ne.push(Ee),Re(X,!0,ye),ve=X.input.charCodeAt(X.position),ve===44?(ue=!0,ve=X.input.charCodeAt(++X.position)):ue=!1}Fe(X,"unexpected end of the stream within a flow collection")}function Xe(X,ye){var ue,Q,ee=te,ne=!1,ce=!1,le=ye,de=0,_e=!1,Ae,ke;if(ke=X.input.charCodeAt(X.position),ke===124)Q=!1;else if(ke===62)Q=!0;else return!1;for(X.kind="scalar",X.result="";ke!==0;)if(ke=X.input.charCodeAt(++X.position),ke===43||ke===45)te===ee?ee=ke===43?ie:re:Fe(X,"repeat of a chomping mode identifier");else if((Ae=Te(ke))>=0)Ae===0?Fe(X,"bad explicit indentation width of a block scalar; it cannot be less than one"):ce?Fe(X,"repeat of an indentation width identifier"):(le=ye+Ae-1,ce=!0);else break;if(ge(ke)){do ke=X.input.charCodeAt(++X.position);while(ge(ke));if(ke===35)do ke=X.input.charCodeAt(++X.position);while(!me(ke)&&ke!==0)}for(;ke!==0;){for(nt(X),X.lineIndent=0,ke=X.input.charCodeAt(X.position);(!ce||X.lineIndent<le)&&ke===32;)X.lineIndent++,ke=X.input.charCodeAt(++X.position);if(!ce&&X.lineIndent>le&&(le=X.lineIndent),me(ke)){de++;continue}if(X.lineIndent<le){ee===ie?X.result+=e.repeat(`
14
- `,ne?1+de:de):ee===te&&ne&&(X.result+=`
15
- `);break}for(Q?ge(ke)?(_e=!0,X.result+=e.repeat(`
16
- `,ne?1+de:de)):_e?(_e=!1,X.result+=e.repeat(`
17
- `,de+1)):de===0?ne&&(X.result+=" "):X.result+=e.repeat(`
18
- `,de):X.result+=e.repeat(`
19
- `,ne?1+de:de),ne=!0,ce=!0,de=0,ue=X.position;!me(ke)&&ke!==0;)ke=X.input.charCodeAt(++X.position);Oe(X,ue,X.position,!1)}return!0}function Je(X,ye){var ue,Q=X.tag,ee=X.anchor,ne=[],ce,le=!1,de;for(X.anchor!==null&&(X.anchorMap[X.anchor]=ne),de=X.input.charCodeAt(X.position);de!==0&&!(de!==45||(ce=X.input.charCodeAt(X.position+1),!be(ce)));){if(le=!0,X.position++,Re(X,!0,-1)&&X.lineIndent<=ye){ne.push(null),de=X.input.charCodeAt(X.position);continue}if(ue=X.line,Ve(X,ye,Y,!1,!0),ne.push(X.result),Re(X,!0,-1),de=X.input.charCodeAt(X.position),(X.line===ue||X.lineIndent>ye)&&de!==0)Fe(X,"bad indentation of a sequence entry");else if(X.lineIndent<ye)break}return le?(X.tag=Q,X.anchor=ee,X.kind="sequence",X.result=ne,!0):!1}function et(X,ye,ue){var Q,ee,ne,ce,le=X.tag,de=X.anchor,_e={},Ae={},ke=null,Ce=null,Ee=null,De=!1,Me=!1,ve;for(X.anchor!==null&&(X.anchorMap[X.anchor]=_e),ve=X.input.charCodeAt(X.position);ve!==0;){if(Q=X.input.charCodeAt(X.position+1),ne=X.line,ce=X.position,(ve===63||ve===58)&&be(Q))ve===63?(De&&(je(X,_e,Ae,ke,Ce,null),ke=Ce=Ee=null),Me=!0,De=!0,ee=!0):De?(De=!1,ee=!0):Fe(X,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),X.position+=1,ve=Q;else if(Ve(X,ue,F,!1,!0))if(X.line===ne){for(ve=X.input.charCodeAt(X.position);ge(ve);)ve=X.input.charCodeAt(++X.position);if(ve===58)ve=X.input.charCodeAt(++X.position),be(ve)||Fe(X,"a whitespace character is expected after the key-value separator within a block mapping"),De&&(je(X,_e,Ae,ke,Ce,null),ke=Ce=Ee=null),Me=!0,De=!1,ee=!1,ke=X.tag,Ce=X.result;else if(Me)Fe(X,"can not read an implicit mapping pair; a colon is missed");else return X.tag=le,X.anchor=de,!0}else if(Me)Fe(X,"can not read a block mapping entry; a multiline key may not be an implicit key");else return X.tag=le,X.anchor=de,!0;else break;if((X.line===ne||X.lineIndent>ye)&&(Ve(X,ye,V,!0,ee)&&(De?Ce=X.result:Ee=X.result),De||(je(X,_e,Ae,ke,Ce,Ee,ne,ce),ke=Ce=Ee=null),Re(X,!0,-1),ve=X.input.charCodeAt(X.position)),X.lineIndent>ye&&ve!==0)Fe(X,"bad indentation of a mapping entry");else if(X.lineIndent<ye)break}return De&&je(X,_e,Ae,ke,Ce,null),Me&&(X.tag=le,X.anchor=de,X.kind="mapping",X.result=_e),Me}function at(X){var ye,ue=!1,Q=!1,ee,ne,ce;if(ce=X.input.charCodeAt(X.position),ce!==33)return!1;if(X.tag!==null&&Fe(X,"duplication of a tag property"),ce=X.input.charCodeAt(++X.position),ce===60?(ue=!0,ce=X.input.charCodeAt(++X.position)):ce===33?(Q=!0,ee="!!",ce=X.input.charCodeAt(++X.position)):ee="!",ye=X.position,ue){do ce=X.input.charCodeAt(++X.position);while(ce!==0&&ce!==62);X.position<X.length?(ne=X.input.slice(ye,X.position),ce=X.input.charCodeAt(++X.position)):Fe(X,"unexpected end of the stream within a verbatim tag")}else{for(;ce!==0&&!be(ce);)ce===33&&(Q?Fe(X,"tag suffix cannot contain exclamation marks"):(ee=X.input.slice(ye-1,X.position+1),fe.test(ee)||Fe(X,"named tag handle cannot contain such characters"),Q=!0,ye=X.position+1)),ce=X.input.charCodeAt(++X.position);ne=X.input.slice(ye,X.position),ae.test(ne)&&Fe(X,"tag suffix cannot contain flow indicator characters")}return ne&&!he.test(ne)&&Fe(X,"tag name cannot contain such characters: "+ne),ue?X.tag=ne:c.call(X.tagMap,ee)?X.tag=X.tagMap[ee]+ne:ee==="!"?X.tag="!"+ne:ee==="!!"?X.tag="tag:yaml.org,2002:"+ne:Fe(X,'undeclared tag handle "'+ee+'"'),!0}function lt(X){var ye,ue;if(ue=X.input.charCodeAt(X.position),ue!==38)return!1;for(X.anchor!==null&&Fe(X,"duplication of an anchor property"),ue=X.input.charCodeAt(++X.position),ye=X.position;ue!==0&&!be(ue)&&!xe(ue);)ue=X.input.charCodeAt(++X.position);return X.position===ye&&Fe(X,"name of an anchor node must contain at least one character"),X.anchor=X.input.slice(ye,X.position),!0}function it(X){var ye,ue,Q;if(Q=X.input.charCodeAt(X.position),Q!==42)return!1;for(Q=X.input.charCodeAt(++X.position),ye=X.position;Q!==0&&!be(Q)&&!xe(Q);)Q=X.input.charCodeAt(++X.position);return X.position===ye&&Fe(X,"name of an alias node must contain at least one character"),ue=X.input.slice(ye,X.position),c.call(X.anchorMap,ue)||Fe(X,'unidentified alias "'+ue+'"'),X.result=X.anchorMap[ue],Re(X,!0,-1),!0}function Ve(X,ye,ue,Q,ee){var ne,ce,le,de=1,_e=!1,Ae=!1,ke,Ce,Ee,De,Me;if(X.listener!==null&&X.listener("open",X),X.tag=null,X.anchor=null,X.kind=null,X.result=null,ne=ce=le=V===ue||Y===ue,Q&&Re(X,!0,-1)&&(_e=!0,X.lineIndent>ye?de=1:X.lineIndent===ye?de=0:X.lineIndent<ye&&(de=-1)),de===1)for(;at(X)||lt(X);)Re(X,!0,-1)?(_e=!0,le=ne,X.lineIndent>ye?de=1:X.lineIndent===ye?de=0:X.lineIndent<ye&&(de=-1)):le=!1;if(le&&(le=_e||ee),(de===1||V===ue)&&(h===ue||F===ue?De=ye:De=ye+1,Me=X.position-X.lineStart,de===1?le&&(Je(X,Me)||et(X,Me,De))||ct(X,De)?Ae=!0:(ce&&Xe(X,De)||rt(X,De)||ut(X,De)?Ae=!0:it(X)?(Ae=!0,(X.tag!==null||X.anchor!==null)&&Fe(X,"alias node should not have any properties")):Ge(X,De,h===ue)&&(Ae=!0,X.tag===null&&(X.tag="?")),X.anchor!==null&&(X.anchorMap[X.anchor]=X.result)):de===0&&(Ae=le&&Je(X,Me))),X.tag!==null&&X.tag!=="!")if(X.tag==="?"){for(X.result!==null&&X.kind!=="scalar"&&Fe(X,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+X.kind+'"'),ke=0,Ce=X.implicitTypes.length;ke<Ce;ke+=1)if(Ee=X.implicitTypes[ke],Ee.resolve(X.result)){X.result=Ee.construct(X.result),X.tag=Ee.tag,X.anchor!==null&&(X.anchorMap[X.anchor]=X.result);break}}else c.call(X.typeMap[X.kind||"fallback"],X.tag)?(Ee=X.typeMap[X.kind||"fallback"][X.tag],X.result!==null&&Ee.kind!==X.kind&&Fe(X,"unacceptable node kind for !<"+X.tag+'> tag; it should be "'+Ee.kind+'", not "'+X.kind+'"'),Ee.resolve(X.result)?(X.result=Ee.construct(X.result),X.anchor!==null&&(X.anchorMap[X.anchor]=X.result)):Fe(X,"cannot resolve a node with !<"+X.tag+"> explicit tag")):Fe(X,"unknown tag !<"+X.tag+">");return X.listener!==null&&X.listener("close",X),X.tag!==null||X.anchor!==null||Ae}function dt(X){var ye=X.position,ue,Q,ee,ne=!1,ce;for(X.version=null,X.checkLineBreaks=X.legacy,X.tagMap={},X.anchorMap={};(ce=X.input.charCodeAt(X.position))!==0&&(Re(X,!0,-1),ce=X.input.charCodeAt(X.position),!(X.lineIndent>0||ce!==37));){for(ne=!0,ce=X.input.charCodeAt(++X.position),ue=X.position;ce!==0&&!be(ce);)ce=X.input.charCodeAt(++X.position);for(Q=X.input.slice(ue,X.position),ee=[],Q.length<1&&Fe(X,"directive name must not be less than one character in length");ce!==0;){for(;ge(ce);)ce=X.input.charCodeAt(++X.position);if(ce===35){do ce=X.input.charCodeAt(++X.position);while(ce!==0&&!me(ce));break}if(me(ce))break;for(ue=X.position;ce!==0&&!be(ce);)ce=X.input.charCodeAt(++X.position);ee.push(X.input.slice(ue,X.position))}ce!==0&&nt(X),c.call(Ke,Q)?Ke[Q](X,Q,ee):ze(X,'unknown document directive "'+Q+'"')}if(Re(X,!0,-1),X.lineIndent===0&&X.input.charCodeAt(X.position)===45&&X.input.charCodeAt(X.position+1)===45&&X.input.charCodeAt(X.position+2)===45?(X.position+=3,Re(X,!0,-1)):ne&&Fe(X,"directives end mark is expected"),Ve(X,X.lineIndent-1,V,!1,!0),Re(X,!0,-1),X.checkLineBreaks&&oe.test(X.input.slice(ye,X.position))&&ze(X,"non-ASCII line breaks are interpreted as content"),X.documents.push(X.result),X.position===X.lineStart&&Ze(X)){X.input.charCodeAt(X.position)===46&&(X.position+=3,Re(X,!0,-1));return}if(X.position<X.length-1)Fe(X,"end of the stream or a document separator is expected");else return}function st(X,ye){X=String(X),ye=ye||{},X.length!==0&&(X.charCodeAt(X.length-1)!==10&&X.charCodeAt(X.length-1)!==13&&(X+=`
20
- `),X.charCodeAt(0)===65279&&(X=X.slice(1)));var ue=new We(X,ye),Q=X.indexOf("\0");for(Q!==-1&&(ue.position=Q,Fe(ue,"null byte is not allowed in input")),ue.input+="\0";ue.input.charCodeAt(ue.position)===32;)ue.lineIndent+=1,ue.position+=1;for(;ue.position<ue.length-1;)dt(ue);return ue.documents}function tt(X,ye,ue){ye!==null&&typeof ye=="object"&&typeof ue>"u"&&(ue=ye,ye=null);var Q=st(X,ue);if(typeof ye!="function")return Q;for(var ee=0,ne=Q.length;ee<ne;ee+=1)ye(Q[ee])}function Ye(X,ye){var ue=st(X,ye);if(ue.length!==0){if(ue.length===1)return ue[0];throw new t("expected a single document in the stream, but found more")}}function ot(X,ye,ue){return typeof ye=="object"&&ye!==null&&typeof ue>"u"&&(ue=ye,ye=null),tt(X,ye,e.extend({schema:r},ue))}function ft(X,ye){return Ye(X,e.extend({schema:r},ye))}return loader.loadAll=tt,loader.load=Ye,loader.safeLoadAll=ot,loader.safeLoad=ft,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,te=33,re=34,ie=35,se=37,oe=38,ae=39,fe=42,he=44,pe=45,me=58,ge=61,be=62,xe=63,Se=64,we=91,Te=93,$e=96,Be=123,Ie=124,Le=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 We(ne,ce){var le,de,_e,Ae,ke,Ce,Ee;if(ce===null)return{};for(le={},de=Object.keys(ce),_e=0,Ae=de.length;_e<Ae;_e+=1)ke=de[_e],Ce=String(ce[ke]),ke.slice(0,2)==="!!"&&(ke="tag:yaml.org,2002:"+ke.slice(2)),Ee=ne.compiledTypeMap.fallback[ke],Ee&&c.call(Ee.styleAliases,Ce)&&(Ce=Ee.styleAliases[Ce]),le[ke]=Ce;return le}function He(ne){var ce,le,de;if(ce=ne.toString(16).toUpperCase(),ne<=255)le="x",de=2;else if(ne<=65535)le="u",de=4;else if(ne<=4294967295)le="U",de=8;else throw new t("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+le+e.repeat("0",de-ce.length)+ce}function Fe(ne){this.schema=ne.schema||n,this.indent=Math.max(1,ne.indent||2),this.noArrayIndent=ne.noArrayIndent||!1,this.skipInvalid=ne.skipInvalid||!1,this.flowLevel=e.isNothing(ne.flowLevel)?-1:ne.flowLevel,this.styleMap=We(this.schema,ne.styles||null),this.sortKeys=ne.sortKeys||!1,this.lineWidth=ne.lineWidth||80,this.noRefs=ne.noRefs||!1,this.noCompatMode=ne.noCompatMode||!1,this.condenseFlow=ne.condenseFlow||!1,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function ze(ne,ce){for(var le=e.repeat(" ",ce),de=0,_e=-1,Ae="",ke,Ce=ne.length;de<Ce;)_e=ne.indexOf(`
21
- `,de),_e===-1?(ke=ne.slice(de),de=Ce):(ke=ne.slice(de,_e+1),de=_e+1),ke.length&&ke!==`
22
- `&&(Ae+=le),Ae+=ke;return Ae}function Ke(ne,ce){return`
23
- `+e.repeat(" ",ne.indent*ce)}function Oe(ne,ce){var le,de,_e;for(le=0,de=ne.implicitTypes.length;le<de;le+=1)if(_e=ne.implicitTypes[le],_e.resolve(ce))return!0;return!1}function Pe(ne){return ne===V||ne===h}function je(ne){return 32<=ne&&ne<=126||161<=ne&&ne<=55295&&ne!==8232&&ne!==8233||57344<=ne&&ne<=65533&&ne!==65279||65536<=ne&&ne<=1114111}function nt(ne){return je(ne)&&!Pe(ne)&&ne!==65279&&ne!==Y&&ne!==F}function Re(ne,ce){return je(ne)&&ne!==65279&&ne!==he&&ne!==we&&ne!==Te&&ne!==Be&&ne!==Le&&ne!==me&&(ne!==ie||ce&&nt(ce))}function Ze(ne){return je(ne)&&ne!==65279&&!Pe(ne)&&ne!==pe&&ne!==xe&&ne!==me&&ne!==he&&ne!==we&&ne!==Te&&ne!==Be&&ne!==Le&&ne!==ie&&ne!==oe&&ne!==fe&&ne!==te&&ne!==Ie&&ne!==ge&&ne!==be&&ne!==ae&&ne!==re&&ne!==se&&ne!==Se&&ne!==$e}function Qe(ne){var ce=/^\n* /;return ce.test(ne)}var Ge=1,rt=2,ut=3,ct=4,Xe=5;function Je(ne,ce,le,de,_e){var Ae,ke,Ce,Ee=!1,De=!1,Me=de!==-1,ve=-1,Ue=Ze(ne.charCodeAt(0))&&!Pe(ne.charCodeAt(ne.length-1));if(ce)for(Ae=0;Ae<ne.length;Ae++){if(ke=ne.charCodeAt(Ae),!je(ke))return Xe;Ce=Ae>0?ne.charCodeAt(Ae-1):null,Ue=Ue&&Re(ke,Ce)}else{for(Ae=0;Ae<ne.length;Ae++){if(ke=ne.charCodeAt(Ae),ke===F)Ee=!0,Me&&(De=De||Ae-ve-1>de&&ne[ve+1]!==" ",ve=Ae);else if(!je(ke))return Xe;Ce=Ae>0?ne.charCodeAt(Ae-1):null,Ue=Ue&&Re(ke,Ce)}De=De||Me&&Ae-ve-1>de&&ne[ve+1]!==" "}return!Ee&&!De?Ue&&!_e(ne)?Ge:rt:le>9&&Qe(ne)?Xe:De?ct:ut}function et(ne,ce,le,de){ne.dump=(function(){if(ce.length===0)return"''";if(!ne.noCompatMode&&qe.indexOf(ce)!==-1)return"'"+ce+"'";var _e=ne.indent*Math.max(1,le),Ae=ne.lineWidth===-1?-1:Math.max(Math.min(ne.lineWidth,40),ne.lineWidth-_e),ke=de||ne.flowLevel>-1&&le>=ne.flowLevel;function Ce(Ee){return Oe(ne,Ee)}switch(Je(ce,ke,ne.indent,Ae,Ce)){case Ge:return ce;case rt:return"'"+ce.replace(/'/g,"''")+"'";case ut:return"|"+at(ce,ne.indent)+lt(ze(ce,_e));case ct:return">"+at(ce,ne.indent)+lt(ze(it(ce,Ae),_e));case Xe:return'"'+dt(ce)+'"';default:throw new t("impossible error: invalid scalar style")}})()}function at(ne,ce){var le=Qe(ne)?String(ce):"",de=ne[ne.length-1]===`
24
- `,_e=de&&(ne[ne.length-2]===`
25
- `||ne===`
26
- `),Ae=_e?"+":de?"":"-";return le+Ae+`
27
- `}function lt(ne){return ne[ne.length-1]===`
28
- `?ne.slice(0,-1):ne}function it(ne,ce){for(var le=/(\n+)([^\n]*)/g,de=(function(){var De=ne.indexOf(`
29
- `);return De=De!==-1?De:ne.length,le.lastIndex=De,Ve(ne.slice(0,De),ce)})(),_e=ne[0]===`
30
- `||ne[0]===" ",Ae,ke;ke=le.exec(ne);){var Ce=ke[1],Ee=ke[2];Ae=Ee[0]===" ",de+=Ce+(!_e&&!Ae&&Ee!==""?`
31
- `:"")+Ve(Ee,ce),_e=Ae}return de}function Ve(ne,ce){if(ne===""||ne[0]===" ")return ne;for(var le=/ [^ ]/g,de,_e=0,Ae,ke=0,Ce=0,Ee="";de=le.exec(ne);)Ce=de.index,Ce-_e>ce&&(Ae=ke>_e?ke:Ce,Ee+=`
32
- `+ne.slice(_e,Ae),_e=Ae+1),ke=Ce;return Ee+=`
33
- `,ne.length-_e>ce&&ke>_e?Ee+=ne.slice(_e,ke)+`
34
- `+ne.slice(ke+1):Ee+=ne.slice(_e),Ee.slice(1)}function dt(ne){for(var ce="",le,de,_e,Ae=0;Ae<ne.length;Ae++){if(le=ne.charCodeAt(Ae),le>=55296&&le<=56319&&(de=ne.charCodeAt(Ae+1),de>=56320&&de<=57343)){ce+=He((le-55296)*1024+de-56320+65536),Ae++;continue}_e=Ne[le],ce+=!_e&&je(le)?ne[Ae]:_e||He(le)}return ce}function st(ne,ce,le){var de="",_e=ne.tag,Ae,ke;for(Ae=0,ke=le.length;Ae<ke;Ae+=1)X(ne,ce,le[Ae],!1,!1)&&(Ae!==0&&(de+=","+(ne.condenseFlow?"":" ")),de+=ne.dump);ne.tag=_e,ne.dump="["+de+"]"}function tt(ne,ce,le,de){var _e="",Ae=ne.tag,ke,Ce;for(ke=0,Ce=le.length;ke<Ce;ke+=1)X(ne,ce+1,le[ke],!0,!0)&&((!de||ke!==0)&&(_e+=Ke(ne,ce)),ne.dump&&F===ne.dump.charCodeAt(0)?_e+="-":_e+="- ",_e+=ne.dump);ne.tag=Ae,ne.dump=_e||"[]"}function Ye(ne,ce,le){var de="",_e=ne.tag,Ae=Object.keys(le),ke,Ce,Ee,De,Me;for(ke=0,Ce=Ae.length;ke<Ce;ke+=1)Me="",ke!==0&&(Me+=", "),ne.condenseFlow&&(Me+='"'),Ee=Ae[ke],De=le[Ee],X(ne,ce,Ee,!1,!1)&&(ne.dump.length>1024&&(Me+="? "),Me+=ne.dump+(ne.condenseFlow?'"':"")+":"+(ne.condenseFlow?"":" "),X(ne,ce,De,!1,!1)&&(Me+=ne.dump,de+=Me));ne.tag=_e,ne.dump="{"+de+"}"}function ot(ne,ce,le,de){var _e="",Ae=ne.tag,ke=Object.keys(le),Ce,Ee,De,Me,ve,Ue;if(ne.sortKeys===!0)ke.sort();else if(typeof ne.sortKeys=="function")ke.sort(ne.sortKeys);else if(ne.sortKeys)throw new t("sortKeys must be a boolean or a function");for(Ce=0,Ee=ke.length;Ce<Ee;Ce+=1)Ue="",(!de||Ce!==0)&&(Ue+=Ke(ne,ce)),De=ke[Ce],Me=le[De],X(ne,ce+1,De,!0,!0,!0)&&(ve=ne.tag!==null&&ne.tag!=="?"||ne.dump&&ne.dump.length>1024,ve&&(ne.dump&&F===ne.dump.charCodeAt(0)?Ue+="?":Ue+="? "),Ue+=ne.dump,ve&&(Ue+=Ke(ne,ce)),X(ne,ce+1,Me,!0,ve)&&(ne.dump&&F===ne.dump.charCodeAt(0)?Ue+=":":Ue+=": ",Ue+=ne.dump,_e+=Ue));ne.tag=Ae,ne.dump=_e||"{}"}function ft(ne,ce,le){var de,_e,Ae,ke,Ce,Ee;for(_e=le?ne.explicitTypes:ne.implicitTypes,Ae=0,ke=_e.length;Ae<ke;Ae+=1)if(Ce=_e[Ae],(Ce.instanceOf||Ce.predicate)&&(!Ce.instanceOf||typeof ce=="object"&&ce instanceof Ce.instanceOf)&&(!Ce.predicate||Ce.predicate(ce))){if(ne.tag=le?Ce.tag:"?",Ce.represent){if(Ee=ne.styleMap[Ce.tag]||Ce.defaultStyle,o.call(Ce.represent)==="[object Function]")de=Ce.represent(ce,Ee);else if(c.call(Ce.represent,Ee))de=Ce.represent[Ee](ce,Ee);else throw new t("!<"+Ce.tag+'> tag resolver accepts not "'+Ee+'" style');ne.dump=de}return!0}return!1}function X(ne,ce,le,de,_e,Ae){ne.tag=null,ne.dump=le,ft(ne,le,!1)||ft(ne,le,!0);var ke=o.call(ne.dump);de&&(de=ne.flowLevel<0||ne.flowLevel>ce);var Ce=ke==="[object Object]"||ke==="[object Array]",Ee,De;if(Ce&&(Ee=ne.duplicates.indexOf(le),De=Ee!==-1),(ne.tag!==null&&ne.tag!=="?"||De||ne.indent!==2&&ce>0)&&(_e=!1),De&&ne.usedDuplicates[Ee])ne.dump="*ref_"+Ee;else{if(Ce&&De&&!ne.usedDuplicates[Ee]&&(ne.usedDuplicates[Ee]=!0),ke==="[object Object]")de&&Object.keys(ne.dump).length!==0?(ot(ne,ce,ne.dump,_e),De&&(ne.dump="&ref_"+Ee+ne.dump)):(Ye(ne,ce,ne.dump),De&&(ne.dump="&ref_"+Ee+" "+ne.dump));else if(ke==="[object Array]"){var Me=ne.noArrayIndent&&ce>0?ce-1:ce;de&&ne.dump.length!==0?(tt(ne,Me,ne.dump,_e),De&&(ne.dump="&ref_"+Ee+ne.dump)):(st(ne,Me,ne.dump),De&&(ne.dump="&ref_"+Ee+" "+ne.dump))}else if(ke==="[object String]")ne.tag!=="?"&&et(ne,ne.dump,ce,Ae);else{if(ne.skipInvalid)return!1;throw new t("unacceptable kind of an object to dump "+ke)}ne.tag!==null&&ne.tag!=="?"&&(ne.dump="!<"+ne.tag+"> "+ne.dump)}return!0}function ye(ne,ce){var le=[],de=[],_e,Ae;for(ue(ne,le,de),_e=0,Ae=de.length;_e<Ae;_e+=1)ce.duplicates.push(le[de[_e]]);ce.usedDuplicates=new Array(Ae)}function ue(ne,ce,le){var de,_e,Ae;if(ne!==null&&typeof ne=="object")if(_e=ce.indexOf(ne),_e!==-1)le.indexOf(_e)===-1&&le.push(_e);else if(ce.push(ne),Array.isArray(ne))for(_e=0,Ae=ne.length;_e<Ae;_e+=1)ue(ne[_e],ce,le);else for(de=Object.keys(ne),_e=0,Ae=de.length;_e<Ae;_e+=1)ue(ne[de[_e]],ce,le)}function Q(ne,ce){ce=ce||{};var le=new Fe(ce);return le.noRefs||ye(ne,le),X(le,0,ne,!0,!0)?le.dump+`
35
- `:""}function ee(ne,ce){return Q(ne,e.extend({schema:r},ce))}return dumper.dump=Q,dumper.safeDump=ee,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,te=t(V,Y);if(typeof te.stringify!="function")throw new TypeError('expected "'+V+'.stringify" to be a function');c=Object.assign({},o.data,c);const re=Y.delimiters[0],ie=Y.delimiters[1],se=te.stringify(c,h).trim();let oe="";return se!=="{}"&&(oe=r(re)+r(se)+r(ie)),typeof o.excerpt=="string"&&o.excerpt!==""&&F.indexOf(o.excerpt.trim())===-1&&(oe+=r(o.excerpt)+r(ie)),oe+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(re,ie){if(re==="")return{data:{},content:re,excerpt:"",orig:re};let se=h(re);const oe=V.cache[se.content];if(!ie){if(oe)return se=Object.assign({},oe),se.orig=oe.orig,se;V.cache[se.content]=se}return te(se,ie)}function te(re,ie){const se=n(ie),oe=se.delimiters[0],ae=`
40
- `+se.delimiters[1];let fe=re.content;se.language&&(re.language=se.language);const he=oe.length;if(!Y.startsWith(fe,oe,he))return o(re,se),re;if(fe.charAt(he)===oe.slice(-1))return re;fe=fe.slice(he);const pe=fe.length,me=V.language(fe,se);me.name&&(re.language=me.name,fe=fe.slice(me.raw.length));let ge=fe.indexOf(ae);return ge===-1&&(ge=pe),re.matter=fe.slice(0,ge),re.matter.replace(/^\s*#[^\n]+/gm,"").trim()===""?(re.isEmpty=!0,re.empty=re.content,re.data={}):re.data=F(re.language,re.matter,se),ge===pe?re.content="":(re.content=fe.slice(ge+ae.length),re.content[0]==="\r"&&(re.content=re.content.slice(1)),re.content[0]===`
41
- `&&(re.content=re.content.slice(1))),o(re,se),(se.sections===!0||typeof se.section=="function")&&t(re,se.section),re}return V.engines=c,V.stringify=function(re,ie,se){return typeof re=="string"&&(re=V(re,se)),r(re,ie,se)},V.read=function(re,ie){const se=e.readFileSync(re,"utf8"),oe=V(se,ie);return oe.path=re,oe},V.test=function(re,ie){return Y.startsWith(re,n(ie).delimiters[0])},V.language=function(re,ie){const oe=n(ie).delimiters[0];V.test(re)&&(re=re.slice(oe.length));const ae=re.slice(0,re.search(/\r?\n/));return{raw:ae,name:ae?ae.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 ie=c[h].content.match(n);if(!ie)return o(c,h,F,Y,V);const se=ie.groups;return se.type===TAG_NAME_SCRIPT?(Y.sfcBlocks.scripts.push(se),SCRIPT_SETUP_TAG_OPEN_REGEXP.test(se.tagOpen)?Y.sfcBlocks.scriptSetup=se:Y.sfcBlocks.script=se):se.type===TAG_NAME_STYLE?Y.sfcBlocks.styles.push(se):Y.sfcBlocks.customBlocks.push(se),""}},htmlEscapeMap={"&":"&amp;","<":"&lt;",">":"&gt;","'":"&#39;",'"':"&quot;"},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=te=>{for(;Y.length!==0&&te.level<=Y[0].level;)Y.shift();Y.length===0?(F.push(te),Y.push(te)):(Y[0].children.push(te),Y.unshift(te))};for(let te=0;te<e.length;te+=1){const re=e[te];if(re.type!=="heading_open"||re.level!==0&&!r)continue;const ie=Number.parseInt(re.tag.slice(1),10);if(!t.includes(ie))continue;const se=e[te+1];if(!se)continue;const oe=resolveTitleFromToken(se,{shouldAllowHtml:n,shouldEscapeText:o}),ae=re.attrGet("id")??c(oe);V({level:ie,title:h?.(oe)??oe,slug:ae,link:`#${ae}`,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),te=o?` class="${htmlEscape(o)}"`:"",re=se=>r==="router-link"?` to="${se}"`:` href="${se}"`,ie=se=>`<${c}${h}>${se.map(oe=>`<${F}${Y}><${V}${te}${re(oe.link)}>${oe.title}</${V}>${oe.children.length>0?ie(oe.children):""}</${F}>`).join("")}</${c}>`;return ie},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 te=r.push("toc_open",t,1);te.markup="",te.map=[o,r.line],n&&te.attrSet("class",n);const re=r.push("toc_body","",0);re.markup=V,re.map=[o,r.line],re.hidden=!0;const ie=r.push("toc_close",t,-1);return ie.markup="",re.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:te="",linkTag:re="a",linkClass:ie=""}={})=>{e.block.ruler.before("heading","toc",createTocBlockRule({pattern:t,containerTag:h,containerClass:F}),{alt:["paragraph","reference","blockquote"]});const se=createRenderHeaders({listTag:Y,listClass:V,itemClass:te,linkTag:re,linkClass:ie});e.renderer.rules.toc_body=oe=>se(resolveHeadersFromTokens(oe,{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=(te,re,ie,se)=>{let oe=-1,ae=te.bMarks[re]+te.tShift[re];const fe=te.eMarks[re];if(ae+2>=fe||te.src.charCodeAt(ae++)!==42||te.src.charCodeAt(ae++)!==91)return!1;const he=ae;for(;ae<fe;){const xe=te.src.charCodeAt(ae);if(xe===91)return!1;if(xe===93){oe=ae;break}xe===92&&ae++,ae++}if(oe<0||te.src.charCodeAt(oe+1)!==58)return!1;if(se)return!0;const pe=te.src.slice(he,oe).replace(/\\(.)/g,"$1");ae=oe+2;const me=te.skipSpaces(ae),ge=te.skipSpacesBack(fe,me),be=te.src.slice(me,ge);return!pe.length||!be.length?!1:((te.env.abbreviations??={})["_"+pe]??=be,te.line=re+1,!0)},V=te=>{const re=te.tokens,{abbreviations:ie}=te.env;if(!ie)return;const se=Object.keys(ie).map(fe=>fe.slice(1)).sort((fe,he)=>he.length-fe.length).map(n).join("|"),oe=new RegExp(`(?:${se})`),ae=new RegExp(`(^|${F})(${se})($|${F})`,"g");for(const fe of re){if(fe.type!=="inline")continue;let he=fe.children;for(let pe=he.length-1;pe>=0;pe--){const me=he[pe];if(me.type!=="text")continue;const ge=me.content;if(ae.lastIndex=0,!oe.test(ge))continue;const be=[];let xe,Se=0;for(;xe=ae.exec(ge);){const[,we,Te,$e]=xe;if(xe.index>0||we.length>0){const Ne=new te.Token("text","",0);Ne.content=ge.slice(Se,xe.index+we.length),be.push(Ne)}const Be=new te.Token("abbr_open","abbr",1);Be.attrPush(["title",ie[`_${Te}`]]),be.push(Be);const Ie=new te.Token("text","",0);Ie.content=Te,be.push(Ie);const Le=new te.Token("abbr_close","abbr",-1);be.push(Le),ae.lastIndex-=$e.length,Se=ae.lastIndex}if(be.length){if(Se<ge.length){const we=new te.Token("text","",0);we.content=ge.slice(Se),be.push(we)}fe.children=he=t(he,pe,be)}}}};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=te=>te.trim().split(" ",2)[0]===n,openRender:c=(te,re,ie,se,oe)=>(te[re].attrJoin("class",n),oe.renderToken(te,re,ie)),closeRender:h=(te,re,ie,se,oe)=>oe.renderToken(te,re,ie)}=t,F=r[0],Y=r.length,V=(te,re,ie,se)=>{const oe=te.bMarks[re]+te.tShift[re],ae=te.eMarks[re],fe=te.sCount[re];if(F!==te.src[oe])return!1;let he=oe+1;for(;he<=ae&&r[(he-oe)%Y]===te.src[he];)he++;const pe=Math.floor((he-oe)/Y);if(pe<3)return!1;he-=(he-oe)%Y;const me=r.repeat(pe),ge=te.src.slice(he,ae);if(!o(ge,me))return!1;if(se)return!0;let be=re+1,xe=!1;for(;be<ie;be++){const Ie=te.bMarks[be]+te.tShift[be],Le=te.eMarks[be];if(Ie<Le&&te.sCount[be]<fe)break;if(te.sCount[be]===fe&&F===te.src[Ie]){for(he=Ie+1;he<=Le&&r[(he-Ie)%Y]===te.src[he];he++);if(Math.floor((he-Ie)/Y)>=pe&&(he-=(he-Ie)%Y,he=te.skipSpaces(he),he>=Le)){xe=!0;break}}}const Se=te.parentType,we=te.lineMax,Te=te.blkIndent;te.parentType="container",te.lineMax=be,te.blkIndent=fe;const $e=te.push(`container_${n}_open`,"div",1);$e.markup=me,$e.block=!0,$e.info=ge,$e.map=[re,be],te.md.block.tokenize(te,re+1,be);const Be=te.push(`container_${n}_close`,"div",-1);return Be.markup=me,Be.block=!0,te.parentType=Se,te.lineMax=we,te.blkIndent=Te,te.line=be+(xe?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 te=F<<12&61440|Y<<6&4032|V&63;te<2048||te>=55296&&te<=57343?o+="���":o+=String.fromCharCode(te),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),te=parseInt(r.slice(c+10,c+12),16);if((Y&192)===128&&(V&192)===128&&(te&192)===128){let re=F<<18&1835008|Y<<12&258048|V<<6&4032|te&63;re<65536||re>1114111?o+="����":(re-=65536,o+=String.fromCharCode(55296+(re>>10),56320+(re&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 oe=0;oe<hostEndingChars.length;oe++)r=c.indexOf(hostEndingChars[oe]),r!==-1&&(V===-1||r<V)&&(V=r);let te,re;V===-1?re=c.lastIndexOf("@"):re=c.lastIndexOf("@",V),re!==-1&&(te=c.slice(0,re),c=c.slice(re+1),this.auth=te),V=-1;for(let oe=0;oe<nonHostChars.length;oe++)r=c.indexOf(nonHostChars[oe]),r!==-1&&(V===-1||r<V)&&(V=r);V===-1&&(V=c.length),c[V-1]===":"&&V--;const ie=c.slice(0,V);c=c.slice(V),this.parseHost(ie),this.hostname=this.hostname||"";const se=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!se){const oe=this.hostname.split(/\./);for(let ae=0,fe=oe.length;ae<fe;ae++){const he=oe[ae];if(he&&!he.match(hostnamePartPattern)){let pe="";for(let me=0,ge=he.length;me<ge;me++)he.charCodeAt(me)>127?pe+="x":pe+=he[me];if(!pe.match(hostnamePartPattern)){const me=oe.slice(0,ae),ge=oe.slice(ae+1),be=he.match(hostnamePartStart);be&&(me.push(be[1]),ge.unshift(be[2])),ge.length&&(c=ge.join(".")+c),this.hostname=me.join(".");break}}}}this.hostname.length>hostnameMaxLen&&(this.hostname=""),se&&(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୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢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;怳Ādp໩໮uct;戏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ǣጓ\0጖y;䐎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Ā;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀ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Ā;e᜚᜜lƀ;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\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩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ↄⅪ←ٖ↛ǰ↉\0↎proø₞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;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\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\0⹻m;櫳;櫽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={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};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 re=Y+o;if(re<h.length&&t.includes(h.charAt(re)))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),te=Y-F;return(V===w$2||V===x$2?te>=2:te>=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,te=h.children;let re,ie=null;if(V.every(se=>se.position!=null)){if(re=V.every(se=>{const oe=R$1(te,se.position,se);return oe.match?(oe.range&&(ie=oe.range),!0):!1}),re){const{position:se}=V[V.length-1];r.position=se>=0?se:te.length+se,r.range=ie}}else for(let se=0;se<te.length;se++)if(re=V.every(oe=>{const ae=R$1(te,se,oe);return ae.match?(ae.range&&(ie=ae.range),!0):!1}),re){r.position=se,ie&&(r.range=ie);break}if(re===!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 te=_$1(t,V);y$4(te,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 te=[];let re=Y+1;for(;re<V;){let oe=re+1;for(;oe<V&&t[oe].type!=="td_close"&&t[oe].type!=="th_close";)oe++;te.push([re,oe]),re=oe+1}let ie=0,se=0;for(;se<o;){if(c[se]>0){c[se]--,h.push(te[ie]),ie++,se++;continue}const oe=t[te[ie][0]],ae=Number(oe.attrGet("colspan"))||1,fe=Number(oe.attrGet("rowspan"))||1;ie++;let he=0;for(let me=0;me<ae;me++)if(se+me<o)if(c[se+me]===0)he++;else break;ae>1&&he<ae&&oe.attrSet("colspan",String(he));for(let me=0;me<he;me++)se+me<o&&(c[se+me]=fe-1);const pe=he-1;if(pe>0)for(let me=0;me<pe;me++)h.push(te[ie]),ie++;se+=he}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 te=c[V];let re=null,ie=null;te.tests.every(se=>{const oe=R$1(F,Y,se);return oe.position!==null&&({position:re}=oe),oe.range&&(ie=oe.range),oe.match})&&(te.transform(F,Y,re,ie),(te.name==="inline attributes"||te.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,te,re,ie)=>{const se=V.bMarks[te]+V.tShift[te],oe=V.eMarks[te],ae=V.sCount[te];if(V.src.charCodeAt(se)!==58||oe-se<3+t.length)return!1;let fe=se+1;for(;fe<=oe&&V.src.charCodeAt(fe)===58;)fe++;const he=fe-se;if(he<3)return!1;fe=V.skipSpaces(fe);for(let Fe=0;Fe<t.length;Fe++){if(V.src.charCodeAt(fe)!==t.charCodeAt(Fe))return!1;fe++}const pe=fe,me=V.skipSpacesBack(oe,fe),ge=me>pe;let be=-1;if(ge&&(be=V.skipSpaces(pe),be===pe))return!1;if(ie)return!0;let xe=te+1,Se=!1;for(;xe<re;xe++){const Fe=V.bMarks[xe]+V.tShift[xe],ze=V.eMarks[xe];if(Fe<ze&&V.sCount[xe]<ae)break;if(V.sCount[xe]===ae&&V.src.charCodeAt(Fe)===58){for(fe=Fe+1;fe<=ze&&V.src.charCodeAt(fe)===58;fe++);if(fe-Fe>=he&&(fe=V.skipSpaces(fe),fe>=ze)){Se=!0;break}}}const we=V.parentType,Te=V.lineMax,$e=V.blkIndent;V.parentType="demo",V.lineMax=xe,V.blkIndent=ae;const Be=":".repeat(he),Ie=ge?V.src.slice(be,me):"Demo",Le=V.push(`${t}_demo_open`,"div",1);Le.markup=Be,Le.block=!0,Le.info=Ie,Le.map=[te,xe];const Ne=()=>{const Fe=V.push(o?`${t}_demo_code`:"fence","code",0),ze=V.sCount[te];Fe.content=V.src.split(/\n\r?/).slice(te+1,xe).map(Ke=>Ke.slice(ze)).filter(Ke=>!/^<!-- #include-env-(?:start: .*|end) -->$/.test(Ke)).join(`
47
- `).replace(/^\n+/,"").replace(/\n*$/,`
48
- `),Fe.map=[te,V.line],(Fe.meta??={}).title=Ie,o||(Fe.info="md")};F&&Ne();const qe=V.push(`${t}_demo_content_open`,"div",1);qe.attrPush(["class","demo-content"]),qe.block=!0,Le.map=[te,xe],V.md.block.tokenize(V,te+1,xe);const We=V.push(`${t}_demo_content_close`,"div",-1);We.block=!0,F||Ne();const He=V.push(`${t}_demo_close`,"div",-1);return He.markup=Be,He.block=!0,He.info=Ie,V.parentType=we,V.lineMax=Te,V.blkIndent=$e,V.line=xe+(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 te=t,re=o,ie=!c;e:for(;;){let se=!1;const oe=e.push("dt_open","dt",1);oe.map=[te,te];const ae=e.push("inline","",0);for(ae.map=[te,te],ae.content=e.getLines(te,te+1,e.blkIndent,!1).trim(),ae.children=[],e.push("dt_close","dt",-1);;){const fe=e.push("dd_open","dd",1),he=[o,0];fe.map=he;let pe=h;const me=e.eMarks[re];let ge=e.sCount[re]+h-(e.bMarks[re]+e.tShift[re]);for(;pe<me;){const Be=e.src.charCodeAt(pe);if(Be===9)ge+=4-ge%4;else if(Be===32)ge++;else break;pe++}h=pe;const be=e.tight,xe=e.ddIndent,Se=e.blkIndent,we=e.tShift[re],Te=e.sCount[re],$e=e.parentType;if(e.blkIndent=e.ddIndent=e.sCount[re]+2,e.tShift[re]=h-e.bMarks[re],e.sCount[re]=ge,e.tight=!0,e.parentType="dl",e.md.block.tokenize(e,re,n,!0),(!e.tight||se)&&(ie=!1),se=e.line-re>1&&e.isEmpty(e.line-1),e.tShift[re]=we,e.sCount[re]=Te,e.tight=be,e.parentType=$e,e.blkIndent=Se,e.ddIndent=xe,e.push("dd_close","dd",-1),he[1]=o=e.line,o>=n||e.sCount[o]<e.blkIndent)break e;if(h=i$3(e,o),h<0)break;re=o}if(o>=n||(te=o,e.isEmpty(te)||e.sCount[te]<e.blkIndent)||(re=te+1,re>=n)||(e.isEmpty(re)&&re++,re>=n||e.sCount[re]<e.blkIndent)||(h=i$3(e,re),h<0))break}return e.push("dl_close","dl",-1),V[1]=o,e.line=o,ie&&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[re,ie,se]=h.children;if(re.type!=="link_open"||ie.type!=="image"||se.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),[te]=e.parseInline(V,r.env);h.children.push(new r.Token("figcaption_open","figcaption",1)),h.children.push(...te.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 te=e.bMarks[t],re=e.tShift[t],ie=e.sCount[t],se=e.parentType,oe=F,ae=e.sCount[t]+F-(e.bMarks[t]+e.tShift[t]);let fe=ae;for(;F<c;){const pe=e.src.charCodeAt(F);if(pe===9)fe+=4-fe%4;else if(pe===32)fe++;else break;F++}e.tShift[t]=F-oe,e.sCount[t]=fe-ae,e.bMarks[t]=oe,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=se,e.blkIndent-=4,e.tShift[t]=re,e.sCount[t]=ie,e.bMarks[t]=te;const he=e.push("footnote_reference_close","",-1);return he.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 te=F[V].count;F[V].count=F[V].count+1;const re=e.push("footnote_ref","",0);re.meta={id:V,subId:te,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 te;if(c[F].tokens){const re=new e.Token("paragraph_open","p",1);re.block=!0;const ie=new e.Token("inline","",0);ie.children=c[F].tokens,ie.content=c[F].content;const se=new e.Token("paragraph_close","p",-1);se.block=!0,e.tokens.push(re,ie,se)}else if(c[F].label){const re=t[`:${c[F].label}`];re&&e.tokens.push(...re)}e.tokens[e.tokens.length-1].type==="paragraph_close"?te=e.tokens.pop()??null:te=null;for(let re=0;re<(Number(c[F].count)>0?c[F].count:1);re++){const ie=new e.Token("footnote_anchor","",0);ie.meta={id:F,subId:re,label:c[F].label},e.tokens.push(ie)}te&&e.tokens.push(te),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,"&amp;").replace(/</gu,"&lt;").replace(/>/gu,"&gt;").replace(/"/gu,"&quot;").replace(/'/gu,"&#39;"),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],te=V.attrGet("src");return te&&(t.some(re=>te.endsWith(`#${re}`))?(V.attrSet("data-mode","lightmode-only"),V.attrSet("src",te.replace(/#.*?$/,""))):n.some(re=>te.endsWith(`#${re}`))&&(V.attrSet("data-mode","darkmode-only"),V.attrSet("src",te.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:te,height:re}=Y;let ie=h+1,se="",oe="";if(ie<o&&e.src.charCodeAt(ie)===40){for(ie++;ie<o&&isSpace(e.src.charCodeAt(ie));)ie++;if(ie>=o)return!1;let ae;ae=e.md.helpers.parseLinkDestination(e.src,ie,e.posMax),ae.ok&&(se=e.md.normalizeLink(ae.str),e.md.validateLink(se)?ie=ae.pos:se="");const fe=ie;for(;ie<o&&isSpace(e.src.charCodeAt(ie));ie++);if(ae=e.md.helpers.parseLinkTitle(e.src,ie,e.posMax),ie<o&&fe!==ie&&ae.ok)for(oe=ae.str,ie=ae.pos;ie<o&&isSpace(e.src.charCodeAt(ie));ie++);else oe="";if(ie>=o||e.src.charCodeAt(ie)!==41)return e.pos=r,!1;ie++}else{let ae="";if(typeof n.references>"u")return!1;for(;ie<o&&isSpace(e.src.charCodeAt(ie));ie++);if(ie<o&&e.src.charCodeAt(ie)===91){const he=ie+1;ie=e.md.helpers.parseLinkLabel(e,ie),ie>=0?ae=e.src.slice(he,ie++):ie=h+1}else ie=h+1;ae||(ae=V);const fe=n.references[e.md.utils.normalizeReference(ae)];if(!fe)return e.pos=r,!1;se=fe.href,oe=fe.title??""}if(!t){const ae=e.push("image","img",0),fe=[["src",se],["alt",""]];oe&&fe.push(["title",oe]),te&&fe.push(["width",te]),re&&fe.push(["height",re]);const he=[];e.md.inline.parse(V,e.md,e.env,he),ae.attrs=fe,ae.children=he,ae.content=V}return e.pos=ie,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 te=t,re="";for(;!V&&(te++,!(te>=n||(F=e.bMarks[te]+e.tShift[te],c=e.eMarks[te],F<c&&e.tShift[te]<e.blkIndent)));)h=e.skipSpacesBack(c,F),h-F>=2&&e.src.charCodeAt(h-1)===36&&e.src.charCodeAt(h-2)===36&&(re=e.src.slice(F,h-2),V=!0);e.line=V?te+1:te;const ie=e.push("math_block","math",0);return ie.block=!0,ie.content=(Y?`${Y}
55
- `:"")+e.getLines(t+1,te,e.tShift[t],!0)+(re?`${re}
56
- `:""),ie.map=[t,e.line],ie.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 te=t,re="";for(;!V&&(te++,!(te>=n||(F=e.bMarks[te]+e.tShift[te],c=e.eMarks[te],F<c&&e.tShift[te]<e.blkIndent)));)h=e.skipSpacesBack(c,F),h-F>=2&&e.src.charCodeAt(h-1)===93&&e.src.charCodeAt(h-2)===92&&(re=e.src.slice(F,h-2).trimEnd(),V=!0);if(!V)return!1;e.line=te+1;const ie=e.push("math_block","math",0);return ie.block=!0,ie.content=(Y?`${Y}
57
- `:"")+e.getLines(t+1,te,e.tShift[t],!0)+(re?`${re}
58
- `:""),ie.map=[t,e.line],ie.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,,te]=F,{content:re,info:ie}=Y[V];return ie.trim()==="math"?c(re,!0,te):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,te,re)=>{const ie={strict:(se,oe,ae)=>c(se,oe,ae,re)??"ignore",macros:h,throwOnError:!1,...Y};return te?S(V,ie,F):y$1(V,ie,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),te=Y.split(""),re=V.split("|");te.length===re.length?te.forEach((se,oe)=>{e.md.inline.parse(se,e.md,e.env,n=[]),e.tokens.push(...n),e.push("rt_open","rt",1),e.md.inline.parse(re[oe],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 ie=e.push("ruby_close","ruby",-1);return ie.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 te=2;te<V.length;te++)if(I(V,te)){const re=V[te];re.children??=[],re.children[0].content=re.children[0].content.slice(3);const ie=`task-item-${Y.env.tasklistId++}`;if(n){const oe=new Y.Token("label_open","label",1);oe.attrs=[["class",h],["for",ie]],re.children.unshift(oe),re.children.push(new Y.Token("label_close","label",-1))}const se=new Y.Token("checkbox_input","input",0);se.attrs=[["type","checkbox"],["class",c],["id",ie]],/^\[[xX]\][ \u00A0]/.test(re.content)&&se.attrs.push(["checked","checked"]),t&&se.attrs.push(["disabled","disabled"]),re.children.unshift(se),d(V[te-2],"class",o),d(V[f(V,te-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 te=h.split(/(\s+)/g);F=te[0],Y=te.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 te=c.attrIndex("class"),re=c.attrs?c.attrs.slice():[];te<0?re.push(["class",n.langPrefix+F]):(re[te]=re[te].slice(),re[te][1]+=" "+n.langPrefix+F);const ie={attrs:re};return`<pre><code${o.renderAttrs(ie)}>${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 te=[];let re=F.level,ie=0;V.length>0&&V[0].index===0&&h>0&&o[h-1].type==="text_special"&&(V=V.slice(1));for(let se=0;se<V.length;se++){const oe=V[se].url,ae=e.md.normalizeLink(oe);if(!e.md.validateLink(ae))continue;let fe=V[se].text;V[se].schema?V[se].schema==="mailto:"&&!/^mailto:/i.test(fe)?fe=e.md.normalizeLinkText("mailto:"+fe).replace(/^mailto:/,""):fe=e.md.normalizeLinkText(fe):fe=e.md.normalizeLinkText("http://"+fe).replace(/^http:\/\//,"");const he=V[se].index;if(he>ie){const be=new e.Token("text","",0);be.content=Y.slice(ie,he),be.level=re,te.push(be)}const pe=new e.Token("link_open","a",1);pe.attrs=[["href",ae]],pe.level=re++,pe.markup="linkify",pe.info="auto",te.push(pe);const me=new e.Token("text","",0);me.content=fe,me.level=re,te.push(me);const ge=new e.Token("link_close","a",-1);ge.level=--re,ge.markup="linkify",ge.info="auto",te.push(ge),ie=V[se].lastIndex}if(ie<Y.length){const se=new e.Token("text","",0);se.content=Y.slice(ie),se.level=re,te.push(se)}t[n].children=o=arrayReplaceAt(o,h,te)}}}}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 te=QUOTE_RE.exec(F);if(!te)break;let re=!0,ie=!0;Y=te.index+1;const se=te[0]==="'";let oe=32;if(te.index-1>=0)oe=F.charCodeAt(te.index-1);else for(n=o-1;n>=0&&!(e[n].type==="softbreak"||e[n].type==="hardbreak");n--)if(e[n].content){oe=e[n].content.charCodeAt(e[n].content.length-1);break}let ae=32;if(Y<V)ae=F.charCodeAt(Y);else for(n=o+1;n<e.length&&!(e[n].type==="softbreak"||e[n].type==="hardbreak");n++)if(e[n].content){ae=e[n].content.charCodeAt(0);break}const fe=isMdAsciiPunct(oe)||isPunctChar(String.fromCharCode(oe)),he=isMdAsciiPunct(ae)||isPunctChar(String.fromCharCode(ae)),pe=isWhiteSpace(oe),me=isWhiteSpace(ae);if(me?re=!1:he&&(pe||fe||(re=!1)),pe?ie=!1:fe&&(me||he||(ie=!1)),ae===34&&te[0]==='"'&&oe>=48&&oe<=57&&(ie=re=!1),re&&ie&&(re=fe,ie=he),!re&&!ie){se&&(c.content=replaceAt(c.content,te.index,APOSTROPHE));continue}if(ie)for(n=r.length-1;n>=0;n--){let ge=r[n];if(r[n].level<h)break;if(ge.single===se&&r[n].level===h){ge=r[n];let be,xe;se?(be=t.md.options.quotes[2],xe=t.md.options.quotes[3]):(be=t.md.options.quotes[0],xe=t.md.options.quotes[1]),c.content=replaceAt(c.content,te.index,xe),e[ge.token].content=replaceAt(e[ge.token].content,ge.pos,be),Y+=xe.length-1,ge.token===o&&(Y+=be.length-1),F=c.content,V=F.length,r.length=n;continue e}}re?r.push({token:o,pos:te.index,single:se,level:h}):ie&&se&&(c.content=replaceAt(c.content,te.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,te=!1;h<V;h++){const re=o.charCodeAt(h);if(!te)if(isSpace(re)){F++,re===9?Y+=4-Y%4:Y++;continue}else te=!0;(re===10||h===V-1)&&(re!==10&&h++,this.bMarks.push(c),this.eMarks.push(h),this.tShift.push(F),this.sCount.push(Y),this.bsCount.push(0),te=!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 te=V,re;for(F+1<n||o?re=this.eMarks[F]+1:re=this.eMarks[F];te<re&&Y<r;){const ie=this.src.charCodeAt(te);if(isSpace(ie))ie===9?Y+=4-(Y+this.bsCount[F])%4:Y++;else if(te-V<this.tShift[F])Y++;else break;te++}Y>r?c[h]=new Array(Y-r+1).join(" ")+this.src.slice(te,re):c[h]=this.src.slice(te,re)}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 ge=e.src.charCodeAt(c);if(ge!==124&&ge!==45&&ge!==58&&!isSpace(ge))return!1;c++}let Y=getLine(e,t+1),V=Y.split("|");const te=[];for(let ge=0;ge<V.length;ge++){const be=V[ge].trim();if(!be){if(ge===0||ge===V.length-1)continue;return!1}if(!/^:?-+:?$/.test(be))return!1;be.charCodeAt(be.length-1)===58?te.push(be.charCodeAt(0)===58?"center":"right"):be.charCodeAt(0)===58?te.push("left"):te.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 re=V.length;if(re===0||re!==te.length)return!1;if(r)return!0;const ie=e.parentType;e.parentType="table";const se=e.md.block.ruler.getRules("blockquote"),oe=e.push("table_open","table",1),ae=[t,0];oe.map=ae;const fe=e.push("thead_open","thead",1);fe.map=[t,t+1];const he=e.push("tr_open","tr",1);he.map=[t,t+1];for(let ge=0;ge<V.length;ge++){const be=e.push("th_open","th",1);te[ge]&&(be.attrs=[["style","text-align:"+te[ge]]]);const xe=e.push("inline","",0);xe.content=V[ge].trim(),xe.children=[],e.push("th_close","th",-1)}e.push("tr_close","tr",-1),e.push("thead_close","thead",-1);let pe,me=0;for(o=t+2;o<n&&!(e.sCount[o]<e.blkIndent);o++){let ge=!1;for(let xe=0,Se=se.length;xe<Se;xe++)if(se[xe](e,o,n,!0)){ge=!0;break}if(ge||(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(),me+=re-V.length,me>MAX_AUTOCOMPLETED_CELLS))break;if(o===t+2){const xe=e.push("tbody_open","tbody",1);xe.map=pe=[t+2,0]}const be=e.push("tr_open","tr",1);be.map=[o,o+1];for(let xe=0;xe<re;xe++){const Se=e.push("td_open","td",1);te[xe]&&(Se.attrs=[["style","text-align:"+te[xe]]]);const we=e.push("inline","",0);we.content=V[xe]?V[xe].trim():"",we.children=[],e.push("td_close","td",-1)}e.push("tr_close","tr",-1)}return pe&&(e.push("tbody_close","tbody",-1),pe[1]=o),e.push("table_close","table",-1),ae[1]=o,e.parentType=ie,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),te=e.src.slice(o,c);if(h===96&&te.indexOf(String.fromCharCode(h))>=0)return!1;if(r)return!0;let re=t,ie=!1;for(;re++,!(re>=n||(o=F=e.bMarks[re]+e.tShift[re],c=e.eMarks[re],o<c&&e.sCount[re]<e.blkIndent));)if(e.src.charCodeAt(o)===h&&!(e.sCount[re]-e.blkIndent>=4)&&(o=e.skipChars(o,h),!(o-F<Y)&&(o=e.skipSpaces(o),!(o<c)))){ie=!0;break}Y=e.sCount[t],e.line=re+(ie?1:0);const se=e.push("fence","code",0);return se.info=te,se.content=e.getLines(t+1,re,Y,!0),se.markup=V,se.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=[],te=[],re=e.md.block.ruler.getRules("blockquote"),ie=e.parentType;e.parentType="blockquote";let se=!1,oe;for(oe=t;oe<n;oe++){const me=e.sCount[oe]<e.blkIndent;if(o=e.bMarks[oe]+e.tShift[oe],c=e.eMarks[oe],o>=c)break;if(e.src.charCodeAt(o++)===62&&!me){let be=e.sCount[oe]+1,xe,Se;e.src.charCodeAt(o)===32?(o++,be++,Se=!1,xe=!0):e.src.charCodeAt(o)===9?(xe=!0,(e.bsCount[oe]+be)%4===3?(o++,be++,Se=!1):Se=!0):xe=!1;let we=be;for(F.push(e.bMarks[oe]),e.bMarks[oe]=o;o<c;){const Te=e.src.charCodeAt(o);if(isSpace(Te))Te===9?we+=4-(we+e.bsCount[oe]+(Se?1:0))%4:we++;else break;o++}se=o>=c,Y.push(e.bsCount[oe]),e.bsCount[oe]=e.sCount[oe]+1+(xe?1:0),V.push(e.sCount[oe]),e.sCount[oe]=we-be,te.push(e.tShift[oe]),e.tShift[oe]=o-e.bMarks[oe];continue}if(se)break;let ge=!1;for(let be=0,xe=re.length;be<xe;be++)if(re[be](e,oe,n,!0)){ge=!0;break}if(ge){e.lineMax=oe,e.blkIndent!==0&&(F.push(e.bMarks[oe]),Y.push(e.bsCount[oe]),te.push(e.tShift[oe]),V.push(e.sCount[oe]),e.sCount[oe]-=e.blkIndent);break}F.push(e.bMarks[oe]),Y.push(e.bsCount[oe]),te.push(e.tShift[oe]),V.push(e.sCount[oe]),e.sCount[oe]=-1}const ae=e.blkIndent;e.blkIndent=0;const fe=e.push("blockquote_open","blockquote",1);fe.markup=">";const he=[t,0];fe.map=he,e.md.block.tokenize(e,t,oe);const pe=e.push("blockquote_close","blockquote",-1);pe.markup=">",e.lineMax=h,e.parentType=ie,he[1]=e.line;for(let me=0;me<te.length;me++)e.bMarks[me+t]=F[me],e.tShift[me+t]=te[me],e.sCount[me+t]=V[me],e.bsCount[me+t]=Y[me];return e.blkIndent=ae,!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 te=!1;r&&e.parentType==="paragraph"&&e.sCount[Y]>=e.blkIndent&&(te=!0);let re,ie,se;if((se=skipOrderedListMarker(e,Y))>=0){if(re=!0,h=e.bMarks[Y]+e.tShift[Y],ie=Number(e.src.slice(h,se-1)),te&&ie!==1)return!1}else if((se=skipBulletListMarker(e,Y))>=0)re=!1;else return!1;if(te&&e.skipSpaces(se)>=e.eMarks[Y])return!1;if(r)return!0;const oe=e.src.charCodeAt(se-1),ae=e.tokens.length;re?(F=e.push("ordered_list_open","ol",1),ie!==1&&(F.attrs=[["start",ie]])):F=e.push("bullet_list_open","ul",1);const fe=[Y,0];F.map=fe,F.markup=String.fromCharCode(oe);let he=!1;const pe=e.md.block.ruler.getRules("list"),me=e.parentType;for(e.parentType="list";Y<n;){c=se,o=e.eMarks[Y];const ge=e.sCount[Y]+se-(e.bMarks[Y]+e.tShift[Y]);let be=ge;for(;c<o;){const qe=e.src.charCodeAt(c);if(qe===9)be+=4-(be+e.bsCount[Y])%4;else if(qe===32)be++;else break;c++}const xe=c;let Se;xe>=o?Se=1:Se=be-ge,Se>4&&(Se=1);const we=ge+Se;F=e.push("list_item_open","li",1),F.markup=String.fromCharCode(oe);const Te=[Y,0];F.map=Te,re&&(F.info=e.src.slice(h,se-1));const $e=e.tight,Be=e.tShift[Y],Ie=e.sCount[Y],Le=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=we,e.tight=!0,e.tShift[Y]=xe-e.bMarks[Y],e.sCount[Y]=be,xe>=o&&e.isEmpty(Y+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,Y,n,!0),(!e.tight||he)&&(V=!1),he=e.line-Y>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=Le,e.tShift[Y]=Be,e.sCount[Y]=Ie,e.tight=$e,F=e.push("list_item_close","li",-1),F.markup=String.fromCharCode(oe),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,We=pe.length;qe<We;qe++)if(pe[qe](e,Y,n,!0)){Ne=!0;break}if(Ne)break;if(re){if(se=skipOrderedListMarker(e,Y),se<0)break;h=e.bMarks[Y]+e.tShift[Y]}else if(se=skipBulletListMarker(e,Y),se<0)break;if(oe!==e.src.charCodeAt(se-1))break}return re?F=e.push("ordered_list_close","ol",-1):F=e.push("bullet_list_close","ul",-1),F.markup=String.fromCharCode(oe),fe[1]=Y,e.line=Y,e.parentType=me,V&&markTightParagraphs(e,ae),!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(pe){const me=e.lineMax;if(pe>=me||e.isEmpty(pe))return null;let ge=!1;if(e.sCount[pe]-e.blkIndent>3&&(ge=!0),e.sCount[pe]<0&&(ge=!0),!ge){const Se=e.md.block.ruler.getRules("reference"),we=e.parentType;e.parentType="reference";let Te=!1;for(let $e=0,Be=Se.length;$e<Be;$e++)if(Se[$e](e,pe,me,!0)){Te=!0;break}if(e.parentType=we,Te)return null}const be=e.bMarks[pe]+e.tShift[pe],xe=e.eMarks[pe];return e.src.slice(be,xe+1)}let Y=e.src.slice(o,c+1);c=Y.length;let V=-1;for(o=1;o<c;o++){const pe=Y.charCodeAt(o);if(pe===91)return!1;if(pe===93){V=o;break}else if(pe===10){const me=F(h);me!==null&&(Y+=me,c=Y.length,h++)}else if(pe===92&&(o++,o<c&&Y.charCodeAt(o)===10)){const me=F(h);me!==null&&(Y+=me,c=Y.length,h++)}}if(V<0||Y.charCodeAt(V+1)!==58)return!1;for(o=V+2;o<c;o++){const pe=Y.charCodeAt(o);if(pe===10){const me=F(h);me!==null&&(Y+=me,c=Y.length,h++)}else if(!isSpace(pe))break}const te=e.md.helpers.parseLinkDestination(Y,o,c);if(!te.ok)return!1;const re=e.md.normalizeLink(te.str);if(!e.md.validateLink(re))return!1;o=te.pos;const ie=o,se=h,oe=o;for(;o<c;o++){const pe=Y.charCodeAt(o);if(pe===10){const me=F(h);me!==null&&(Y+=me,c=Y.length,h++)}else if(!isSpace(pe))break}let ae=e.md.helpers.parseLinkTitle(Y,o,c);for(;ae.can_continue;){const pe=F(h);if(pe===null)break;Y+=pe,o=c,c=Y.length,h++,ae=e.md.helpers.parseLinkTitle(Y,o,c,ae)}let fe;for(o<c&&oe!==o&&ae.ok?(fe=ae.str,o=ae.pos):(fe="",o=ie,h=se);o<c;){const pe=Y.charCodeAt(o);if(!isSpace(pe))break;o++}if(o<c&&Y.charCodeAt(o)!==10&&fe)for(fe="",o=ie,h=se;o<c;){const pe=Y.charCodeAt(o);if(!isSpace(pe))break;o++}if(o<c&&Y.charCodeAt(o)!==10)return!1;const he=normalizeReference(Y.slice(1,V));return he?(r||(typeof e.env.references>"u"&&(e.env.references={}),typeof e.env.references[he]>"u"&&(e.env.references[he]={title:fe,href:re}),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 te=e.push("inline","",0);te.content=e.src.slice(o,c).trim(),te.map=[t,e.line],te.children=[];const re=e.push("heading_close","h"+String(F),-1);return re.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 se=e.bMarks[F]+e.tShift[F];const oe=e.eMarks[F];if(se<oe&&(h=e.src.charCodeAt(se),(h===45||h===61)&&(se=e.skipChars(se,h),se=e.skipSpaces(se),se>=oe))){c=h===61?1:2;break}}if(e.sCount[F]<0)continue;let ie=!1;for(let se=0,oe=r.length;se<oe;se++)if(r[se](e,F,n,!0)){ie=!0;break}if(ie)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 te=e.push("inline","",0);te.content=Y,te.map=[t,e.line-1],te.children=[];const re=e.push("heading_close","h"+String(c),-1);return re.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 te=0,re=r.length;te<re;te++)if(r[te](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 te=0;te<o;te++)if(V=r[te](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)),te=isWhiteSpace(o),re=isWhiteSpace(F),ie=!re&&(!V||te||Y),se=!te&&(!Y||re||V);return{can_open:ie&&(t||!se||Y),can_close:se&&(t||!ie||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 te=e.push("text","",0);te.content=e.md.normalizeLinkText(F);const re=e.push("link_close","a",-1);re.markup="linkify",re.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 te=Y-V;if(te===F){if(!t){const re=e.push("code_inline","code",0);re.markup=h,re.content=e.src.slice(n,V).replace(/\n/g," ").replace(/^ (.+) $/,"$1")}return e.pos=Y,!0}e.backticks[te]=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 te=e.pos,re=e.posMax,ie=e.pos+1,se=e.md.helpers.parseLinkLabel(e,e.pos,!0);if(se<0)return!1;let oe=se+1;if(oe<re&&e.src.charCodeAt(oe)===40){for(V=!1,oe++;oe<re&&(n=e.src.charCodeAt(oe),!(!isSpace(n)&&n!==10));oe++);if(oe>=re)return!1;if(Y=oe,o=e.md.helpers.parseLinkDestination(e.src,oe,e.posMax),o.ok){for(h=e.md.normalizeLink(o.str),e.md.validateLink(h)?oe=o.pos:h="",Y=oe;oe<re&&(n=e.src.charCodeAt(oe),!(!isSpace(n)&&n!==10));oe++);if(o=e.md.helpers.parseLinkTitle(e.src,oe,e.posMax),oe<re&&Y!==oe&&o.ok)for(F=o.str,oe=o.pos;oe<re&&(n=e.src.charCodeAt(oe),!(!isSpace(n)&&n!==10));oe++);}(oe>=re||e.src.charCodeAt(oe)!==41)&&(V=!0),oe++}if(V){if(typeof e.env.references>"u")return!1;if(oe<re&&e.src.charCodeAt(oe)===91?(Y=oe+1,oe=e.md.helpers.parseLinkLabel(e,oe),oe>=0?r=e.src.slice(Y,oe++):oe=se+1):oe=se+1,r||(r=e.src.slice(ie,se)),c=e.env.references[normalizeReference(r)],!c)return e.pos=te,!1;h=c.href,F=c.title}if(!t){e.pos=ie,e.posMax=se;const ae=e.push("link_open","a",1),fe=[["href",h]];ae.attrs=fe,F&&fe.push(["title",F]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push("link_close","a",-1)}return e.pos=oe,e.posMax=re,!0}function image(e,t){let n,r,o,c,h,F,Y,V,te="";const re=e.pos,ie=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91)return!1;const se=e.pos+2,oe=e.md.helpers.parseLinkLabel(e,e.pos+1,!1);if(oe<0)return!1;if(c=oe+1,c<ie&&e.src.charCodeAt(c)===40){for(c++;c<ie&&(n=e.src.charCodeAt(c),!(!isSpace(n)&&n!==10));c++);if(c>=ie)return!1;for(V=c,F=e.md.helpers.parseLinkDestination(e.src,c,e.posMax),F.ok&&(te=e.md.normalizeLink(F.str),e.md.validateLink(te)?c=F.pos:te=""),V=c;c<ie&&(n=e.src.charCodeAt(c),!(!isSpace(n)&&n!==10));c++);if(F=e.md.helpers.parseLinkTitle(e.src,c,e.posMax),c<ie&&V!==c&&F.ok)for(Y=F.str,c=F.pos;c<ie&&(n=e.src.charCodeAt(c),!(!isSpace(n)&&n!==10));c++);else Y="";if(c>=ie||e.src.charCodeAt(c)!==41)return e.pos=re,!1;c++}else{if(typeof e.env.references>"u")return!1;if(c<ie&&e.src.charCodeAt(c)===91?(V=c+1,c=e.md.helpers.parseLinkLabel(e,c),c>=0?o=e.src.slice(V,c++):c=oe+1):c=oe+1,o||(o=e.src.slice(se,oe)),h=e.env.references[normalizeReference(o)],!h)return e.pos=re,!1;te=h.href,Y=h.title}if(!t){r=e.src.slice(se,oe);const ae=[];e.md.inline.parse(r,e.md,e.env,ae);const fe=e.push("image","img",0),he=[["src",te],["alt",""]];fe.attrs=he,fe.children=ae,fe.content=r,Y&&he.push(["title",Y])}return e.pos=c,e.posMax=ie,!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,te=V;for(;V>Y;V-=c[V]+1){const re=e[V];if(re.marker===F.marker&&re.open&&re.end<0){let ie=!1;if((re.close||F.open)&&(re.length+F.length)%3===0&&(re.length%3!==0||F.length%3!==0)&&(ie=!0),!ie){const se=V>0&&!e[V-1].open?c[V-1]+1:0;c[h]=h-V+se,c[V]=se,F.open=!1,re.end=h,re.close=!1,te=-1,o=-2;break}}}te!==-1&&(t[F.marker][(F.open?3:0)+(F.length||0)%3]=te)}}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,te;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:"]&&(te=t.indexOf("@"),te>=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 te=1,re=base;;re+=base){F>=n&&error("invalid-input");const ie=basicToDigit(e.charCodeAt(F++));ie>=base&&error("invalid-input"),ie>floor((maxInt-r)/te)&&error("overflow"),r+=ie*te;const se=re<=c?tMin:re>=c+tMax?tMax:re-c;if(ie<se)break;const oe=base-se;te>floor(maxInt/oe)&&error("overflow"),te*=oe}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 te of e)te>=r&&te<Y&&(Y=te);const V=F+1;Y-r>floor((maxInt-o)/V)&&error("overflow"),o+=(Y-r)*V,r=Y;for(const te of e)if(te<r&&++o>maxInt&&error("overflow"),te===r){let re=o;for(let ie=base;;ie+=base){const se=ie<=c?tMin:ie>=c+tMax?tMax:ie-c;if(re<se)break;const oe=re-se,ae=base-se;t.push(stringFromCharCode(digitToBasic(se+oe%ae,0))),re=floor(oe/ae)}t.push(stringFromCharCode(digitToBasic(re,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 re=n.schema[MAP].createNode?.(n.schema,null,n);return re.items.push(e),re}(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 re=new Scalar(e);return Y&&(Y.node=re),re}V=e instanceof Map?h[MAP]:Symbol.iterator in Object(e)?h[SEQ]:h[MAP]}c&&(c(V),delete n.onTagObj);const te=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?te.tag=t:V.default||(te.tag=V.tag),Y&&(Y.node=te),te}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=[],te={};let re=o-t.length;typeof r=="number"&&(r>o-Math.max(2,c)?V.push(0):re=o-r);let ie,se,oe=!1,ae=-1,fe=-1,he=-1;n===FOLD_BLOCK&&(ae=consumeMoreIndentedLines(e,ae,t.length),ae!==-1&&(re=ae+Y));for(let me;me=e[ae+=1];){if(n===FOLD_QUOTED&&me==="\\"){switch(fe=ae,e[ae+1]){case"x":ae+=3;break;case"u":ae+=5;break;case"U":ae+=9;break;default:ae+=1}he=ae}if(me===`
79
- `)n===FOLD_BLOCK&&(ae=consumeMoreIndentedLines(e,ae,t.length)),re=ae+t.length+Y,ie=void 0;else{if(me===" "&&se&&se!==" "&&se!==`
80
- `&&se!==" "){const ge=e[ae+1];ge&&ge!==" "&&ge!==`
81
- `&&ge!==" "&&(ie=ae)}if(ae>=re)if(ie)V.push(ie),re=ie+Y,ie=void 0;else if(n===FOLD_QUOTED){for(;se===" "||se===" ";)se=me,me=e[ae+=1],oe=!0;const ge=ae>he+1?ae-2:fe-1;if(te[ge])return e;V.push(ge),te[ge]=!0,re=ge+Y,ie=void 0}else oe=!0}se=me}if(oe&&F&&F(),V.length===0)return e;h&&h();let pe=e.slice(0,V[0]);for(let me=0;me<V.length;++me){const ge=V[me],be=V[me+1]||e.length;ge===0?pe=`
82
- ${t}${e.slice(0,be)}`:(n===FOLD_QUOTED&&te[ge]&&(pe+=`${e[ge]}\\`),pe+=`
83
- ${t}${e.slice(ge+1,be)}`)}return pe}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 te=n.substr(Y+2,4);switch(te){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:te.substr(0,2)==="00"?h+="\\x"+te.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)?" ":""),te=h==="literal"?!0:h==="folded"||t===Scalar.BLOCK_FOLDED?!1:t===Scalar.BLOCK_LITERAL?!0:!lineLengthOverLimit(n,Y,V.length);if(!n)return te?`|
94
- `:`>
95
- `;let re,ie;for(ie=n.length;ie>0;--ie){const be=n[ie-1];if(be!==`
96
- `&&be!==" "&&be!==" ")break}let se=n.substring(ie);const oe=se.indexOf(`
97
- `);oe===-1?re="-":n===se||oe!==se.length-1?(re="+",c&&c()):re="",se&&(n=n.slice(0,-se.length),se[se.length-1]===`
98
- `&&(se=se.slice(0,-1)),se=se.replace(blockEndNewlines,`$&${V}`));let ae=!1,fe,he=-1;for(fe=0;fe<n.length;++fe){const be=n[fe];if(be===" ")ae=!0;else if(be===`
99
- `)he=fe;else break}let pe=n.substring(0,he<fe?he+1:fe);pe&&(n=n.substring(pe.length),pe=pe.replace(/\n+/g,`$&${V}`));let ge=(ae?V?"2":"1":"")+re;if(e&&(ge+=" "+F(e.replace(/ ?[\r\n]+/g," ")),o&&o()),!te){const be=n.replace(/\n+/g,`
100
- $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${V}`);let xe=!1;const Se=getFoldOptions(r,!0);h!=="folded"&&t!==Scalar.BLOCK_FOLDED&&(Se.onOverflow=()=>{xe=!0});const we=foldFlowLines(`${pe}${be}${se}`,V,FOLD_BLOCK,Se);if(!xe)return`>${ge}
101
- ${V}${we}`}return n=n.replace(/\n+/g,`$&${V}`),`|${ge}
102
- ${V}${pe}${n}${se}`}function plainString(e,t,n,r){const{type:o,value:c}=e,{actualString:h,implicitKey:F,indent:Y,indentStep:V,inFlow:te}=t;if(F&&c.includes(`
103
- `)||te&&/[[\]{},]/.test(c))return quotedString(c,t);if(/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(c))return F||te||!c.includes(`
104
- `)?quotedString(c,t):blockString(e,t,n,r);if(!F&&!te&&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 re=c.replace(/\n+/g,`$&
106
- ${Y}`);if(h){const ie=ae=>ae.default&&ae.tag!=="tag:yaml.org,2002:str"&&ae.test?.test(re),{compat:se,tags:oe}=t.doc.schema;if(oe.some(ie)||se?.some(ie))return quotedString(c,t)}return F?re:foldFlowLines(re,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=te=>{switch(te){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:te,defaultStringType:re}=t.options,ie=o&&te||re;if(V=Y(ie),V===null)throw new Error(`Unsupported default string type ${ie}`)}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:te,simpleKeys:re}}=n;let ie=isNode(e)&&e.comment||null;if(re){if(ie)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 se=!re&&(!e||ie&&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:!se&&(re||!c),indent:F+Y});let oe=!1,ae=!1,fe=stringify(e,n,()=>oe=!0,()=>ae=!0);if(!se&&!n.inFlow&&fe.length>1024){if(re)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");se=!0}if(n.inFlow){if(c||t==null)return oe&&r&&r(),fe===""?"?":se?`? ${fe}`:fe}else if(c&&!re||t==null&&se)return fe=`? ${fe}`,ie&&!oe?fe+=lineComment(fe,n.indent,V(ie)):ae&&o&&o(),fe;oe&&(ie=null),se?(ie&&(fe+=lineComment(fe,n.indent,V(ie))),fe=`? ${fe}
108
- ${F}:`):(fe=`${fe}:`,ie&&(fe+=lineComment(fe,n.indent,V(ie))));let he,pe,me;isNode(t)?(he=!!t.spaceBefore,pe=t.commentBefore,me=t.comment):(he=!1,pe=null,me=null,t&&typeof t=="object"&&(t=h.createNode(t))),n.implicitKey=!1,!se&&!ie&&isScalar(t)&&(n.indentAtStart=fe.length+1),ae=!1,!te&&Y.length>=2&&!n.inFlow&&!se&&isSeq(t)&&!t.flow&&!t.tag&&!t.anchor&&(n.indent=n.indent.substring(2));let ge=!1;const be=stringify(t,n,()=>ge=!0,()=>ae=!0);let xe=" ";if(ie||he||pe){if(xe=he?`
109
- `:"",pe){const Se=V(pe);xe+=`
110
- ${indentComment(Se,n.indent)}`}be===""&&!n.inFlow?xe===`
111
- `&&me&&(xe=`
112
-
113
- `):xe+=`
114
- ${n.indent}`}else if(!se&&isCollection(t)){const Se=be[0],we=be.indexOf(`
115
- `),Te=we!==-1,$e=n.inFlow??t.flow??t.items.length===0;if(Te||!$e){let Be=!1;if(Te&&(Se==="&"||Se==="!")){let Ie=be.indexOf(" ");Se==="&"&&Ie!==-1&&Ie<we&&be[Ie+1]==="!"&&(Ie=be.indexOf(" ",Ie+1)),(Ie===-1||we<Ie)&&(Be=!0)}Be||(xe=`
116
- ${n.indent}`)}}else(be===""||be[0]===`
117
- `)&&(xe="");return fe+=xe+be,n.inFlow?ge&&r&&r():me&&!ge?fe+=lineComment(fe,n.indent,V(me)):ae&&o&&o(),fe}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,te=Object.assign({},n,{indent:c,type:null});let re=!1;const ie=[];for(let oe=0;oe<t.length;++oe){const ae=t[oe];let fe=null;if(isNode(ae))!re&&ae.spaceBefore&&ie.push(""),addCommentBefore(n,ie,ae.commentBefore,re),ae.comment&&(fe=ae.comment);else if(isPair(ae)){const pe=isNode(ae.key)?ae.key:null;pe&&(!re&&pe.spaceBefore&&ie.push(""),addCommentBefore(n,ie,pe.commentBefore,re))}re=!1;let he=stringify(ae,te,()=>fe=null,()=>re=!0);fe&&(he+=lineComment(he,c,V(fe))),re&&fe&&(re=!1),ie.push(r+he)}let se;if(ie.length===0)se=o.start+o.end;else{se=ie[0];for(let oe=1;oe<ie.length;++oe){const ae=ie[oe];se+=ae?`
118
- ${Y}${ae}`:`
119
- `}}return e?(se+=`
120
- `+indentComment(V(e),Y),F&&F()):re&&h&&h(),se}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,te=0;const re=[];for(let oe=0;oe<e.length;++oe){const ae=e[oe];let fe=null;if(isNode(ae))ae.spaceBefore&&re.push(""),addCommentBefore(t,re,ae.commentBefore,!1),ae.comment&&(fe=ae.comment);else if(isPair(ae)){const pe=isNode(ae.key)?ae.key:null;pe&&(pe.spaceBefore&&re.push(""),addCommentBefore(t,re,pe.commentBefore,!1),pe.comment&&(V=!0));const me=isNode(ae.value)?ae.value:null;me?(me.comment&&(fe=me.comment),me.commentBefore&&(V=!0)):ae.value==null&&pe?.comment&&(fe=pe.comment)}fe&&(V=!0);let he=stringify(ae,Y,()=>fe=null);oe<e.length-1&&(he+=","),fe&&(he+=lineComment(he,r,F(fe))),!V&&(re.length>te||he.includes(`
121
- `))&&(V=!0),re.push(he),te=re.length}const{start:ie,end:se}=n;if(re.length===0)return ie+se;if(!V){const oe=re.reduce((ae,fe)=>ae+fe.length+2,2);V=t.options.lineWidth>0&&oe>t.options.lineWidth}if(V){let oe=ie;for(const ae of re)oe+=ae?`
122
- ${c}${o}${ae}`:`
123
- `;return`${oe}
124
- ${o}${se}`}else return`${ie}${h}${re.join(" ")}${h}${se}`}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),te=new Array(V);for(let re=0,ie=0;re<V;++re,ie+=Y)te[re]=F.substr(ie,Y);F=te.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 te=t[8];if(te&&te!=="Z"){let re=parseSexagesimal(te,!1);Math.abs(re)<30&&(re*=60),V-=6e4*re}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(te=>JSON.stringify(te)).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 te=c(e.contents.commentBefore);n.push(indentComment(te,""))}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 fe=pe=>typeof pe=="number"||pe instanceof String||pe instanceof Number,he=n.filter(fe).map(String);he.length>0&&(n=n.concat(he)),o=n}else r===void 0&&n&&(r=n,n=void 0);const{aliasDuplicateObjects:c,anchorPrefix:h,flow:F,keepUndefined:Y,onTagObj:V,tag:te}=r??{},{onAnchor:re,setAnchors:ie,sourceObjects:se}=createNodeAnchors(this,h||"a"),oe={aliasDuplicateObjects:c??!0,keepUndefined:Y??!1,onAnchor:re,onTagObj:V,replacer:o,schema:this.schema,sourceObjects:se},ae=createNode(t,te,oe);return F&&isCollection(ae)&&(ae.flow=!0),ie(),ae}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:te}of F.anchors.values())c(te,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,te=F,re="",ie="",se=!1,oe=!1,ae=null,fe=null,he=null,pe=null,me=null,ge=null,be=null;for(const we of e)switch(oe&&(we.type!=="space"&&we.type!=="newline"&&we.type!=="comma"&&c(we.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),oe=!1),ae&&(V&&we.type!=="comment"&&we.type!=="newline"&&c(ae,"TAB_AS_INDENT","Tabs are not allowed as indentation"),ae=null),we.type){case"space":!t&&(n!=="doc-start"||r?.type!=="flow-collection")&&we.source.includes(" ")&&(ae=we),te=!0;break;case"comment":{te||c(we,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const Te=we.source.substring(1)||" ";re?re+=ie+Te:re=Te,ie="",V=!1;break}case"newline":V?re?re+=we.source:(!ge||n!=="seq-item-ind")&&(Y=!0):ie+=we.source,V=!0,se=!0,(fe||he)&&(pe=we),te=!0;break;case"anchor":fe&&c(we,"MULTIPLE_ANCHORS","A node can have at most one anchor"),we.source.endsWith(":")&&c(we.offset+we.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),fe=we,be??(be=we.offset),V=!1,te=!1,oe=!0;break;case"tag":{he&&c(we,"MULTIPLE_TAGS","A node can have at most one tag"),he=we,be??(be=we.offset),V=!1,te=!1,oe=!0;break}case n:(fe||he)&&c(we,"BAD_PROP_ORDER",`Anchors and tags must be after the ${we.source} indicator`),ge&&c(we,"UNEXPECTED_TOKEN",`Unexpected ${we.source} in ${t??"collection"}`),ge=we,V=n==="seq-item-ind"||n==="explicit-key-ind",te=!1;break;case"comma":if(t){me&&c(we,"UNEXPECTED_TOKEN",`Unexpected , in ${t}`),me=we,V=!1,te=!1;break}default:c(we,"UNEXPECTED_TOKEN",`Unexpected ${we.type} token`),V=!1,te=!1}const xe=e[e.length-1],Se=xe?xe.offset+xe.source.length:o;return oe&&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"),ae&&(V&&ae.indent<=h||r?.type==="block-map"||r?.type==="block-seq")&&c(ae,"TAB_AS_INDENT","Tabs are not allowed as indentation"),{comma:me,found:ge,spaceBefore:Y,comment:re,hasNewline:se,anchor:fe,tag:he,newlineAfterProp:pe,end:Se,start:be??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 te of r.items){const{start:re,key:ie,sep:se,value:oe}=te,ae=resolveProps(re,{indicator:"explicit-key-ind",next:ie??se?.[0],offset:Y,onError:o,parentIndent:r.indent,startOnNewline:!0}),fe=!ae.found;if(fe){if(ie&&(ie.type==="block-seq"?o(Y,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in ie&&ie.indent!==r.indent&&o(Y,"BAD_INDENT",startColMsg)),!ae.anchor&&!ae.tag&&!se){V=ae.end,ae.comment&&(F.comment?F.comment+=`
137
- `+ae.comment:F.comment=ae.comment);continue}(ae.newlineAfterProp||containsNewline(ie))&&o(ie??re[re.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else ae.found?.indent!==r.indent&&o(Y,"BAD_INDENT",startColMsg);n.atKey=!0;const he=ae.end,pe=ie?e(n,ie,ae,o):t(n,he,re,null,ae,o);n.schema.compat&&flowIndentCheck(r.indent,ie,o),n.atKey=!1,mapIncludes(n,F.items,pe)&&o(he,"DUPLICATE_KEY","Map keys must be unique");const me=resolveProps(se??[],{indicator:"map-value-ind",next:oe,offset:pe.range[2],onError:o,parentIndent:r.indent,startOnNewline:!ie||ie.type==="block-scalar"});if(Y=me.end,me.found){fe&&(oe?.type==="block-map"&&!me.hasNewline&&o(Y,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),n.options.strict&&ae.start<me.found.offset-1024&&o(pe.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));const ge=oe?e(n,oe,me,o):t(n,Y,se,null,me,o);n.schema.compat&&flowIndentCheck(r.indent,oe,o),Y=ge.range[2];const be=new Pair(pe,ge);n.options.keepSourceTokens&&(be.srcToken=te),F.items.push(be)}else{fe&&o(pe.range,"MISSING_CHAR","Implicit map keys need to be followed by map values"),me.comment&&(pe.comment?pe.comment+=`
138
- `+me.comment:pe.comment=me.comment);const ge=new Pair(pe);n.options.keepSourceTokens&&(ge.srcToken=te),F.items.push(ge)}}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:te,value:re}of r.items){const ie=resolveProps(te,{indicator:"seq-item-ind",next:re,offset:Y,onError:o,parentIndent:r.indent,startOnNewline:!0});if(!ie.found)if(ie.anchor||ie.tag||re)re?.type==="block-seq"?o(ie.end,"BAD_INDENT","All sequence items must start at the same column"):o(Y,"MISSING_CHAR","Sequence item without - indicator");else{V=ie.end,ie.comment&&(F.comment=ie.comment);continue}const se=re?e(n,re,ie,o):t(n,ie.end,te,null,ie,o);n.schema.compat&&flowIndentCheck(r.indent,re,o),Y=se.range[2],F.items.push(se)}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 te=Y.substring(1)||" ";o?o+=h+te:o=te,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 te=n.atRoot;te&&(n.atRoot=!1),n.atKey&&(n.atKey=!1);let re=r.offset+r.start.source.length;for(let fe=0;fe<r.items.length;++fe){const he=r.items[fe],{start:pe,key:me,sep:ge,value:be}=he,xe=resolveProps(pe,{flow:F,indicator:"explicit-key-ind",next:me??ge?.[0],offset:re,onError:o,parentIndent:r.indent,startOnNewline:!1});if(!xe.found){if(!xe.anchor&&!xe.tag&&!ge&&!be){fe===0&&xe.comma?o(xe.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${F}`):fe<r.items.length-1&&o(xe.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${F}`),xe.comment&&(V.comment?V.comment+=`
139
- `+xe.comment:V.comment=xe.comment),re=xe.end;continue}!h&&n.options.strict&&containsNewline(me)&&o(me,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(fe===0)xe.comma&&o(xe.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${F}`);else if(xe.comma||o(xe.start,"MISSING_CHAR",`Missing , between ${F} items`),xe.comment){let Se="";e:for(const we of pe)switch(we.type){case"comma":case"space":break;case"comment":Se=we.source.substring(1);break e;default:break e}if(Se){let we=V.items[V.items.length-1];isPair(we)&&(we=we.value??we.key),we.comment?we.comment+=`
140
- `+Se:we.comment=Se,xe.comment=xe.comment.substring(Se.length+1)}}if(!h&&!ge&&!xe.found){const Se=be?e(n,be,xe,o):t(n,xe.end,ge,null,xe,o);V.items.push(Se),re=Se.range[2],isBlock(be)&&o(Se.range,"BLOCK_IN_FLOW",blockMsg)}else{n.atKey=!0;const Se=xe.end,we=me?e(n,me,xe,o):t(n,Se,pe,null,xe,o);isBlock(me)&&o(we.range,"BLOCK_IN_FLOW",blockMsg),n.atKey=!1;const Te=resolveProps(ge??[],{flow:F,indicator:"map-value-ind",next:be,offset:we.range[2],onError:o,parentIndent:r.indent,startOnNewline:!1});if(Te.found){if(!h&&!xe.found&&n.options.strict){if(ge)for(const Ie of ge){if(Ie===Te.found)break;if(Ie.type==="newline"){o(Ie,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}xe.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 be&&("source"in be&&be.source?.[0]===":"?o(be,"MISSING_CHAR",`Missing space after : in ${F}`):o(Te.start,"MISSING_CHAR",`Missing , or : between ${F} items`));const $e=be?e(n,be,Te,o):Te.found?t(n,Te.end,ge,null,Te,o):null;$e?isBlock(be)&&o($e.range,"BLOCK_IN_FLOW",blockMsg):Te.comment&&(we.comment?we.comment+=`
141
- `+Te.comment:we.comment=Te.comment);const Be=new Pair(we,$e);if(n.options.keepSourceTokens&&(Be.srcToken=he),h){const Ie=V;mapIncludes(n,Ie.items,we)&&o(Se,"DUPLICATE_KEY","Map keys must be unique"),Ie.items.push(Be)}else{const Ie=new YAMLMap(n.schema);Ie.flow=!0,Ie.items.push(Be);const Le=($e??we).range;Ie.range=[we.range[0],Le[1],Le[2]],V.items.push(Ie)}re=$e?$e.range[2]:Te.end}}const ie=h?"}":"]",[se,...oe]=r.end;let ae=re;if(se?.source===ie)ae=se.offset+se.source.length;else{const fe=F[0].toUpperCase()+F.substring(1),he=te?`${fe} must end with a ${ie}`:`${fe} in block collection must be sufficiently indented and end with a ${ie}`;o(re,te?"MISSING_CHAR":"BAD_INDENT",he),se&&se.source.length!==1&&oe.unshift(se)}if(oe.length>0){const fe=resolveEnd(oe,ae,n.options.strict,o);fe.comment&&(V.comment?V.comment+=`
142
- `+fe.comment:V.comment=fe.comment),V.range=[r.offset,ae,fe.offset]}else V.range=[r.offset,ae,ae];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,ie=>o(c,"TAG_RESOLVE_FAILED",ie)):null;if(n.type==="block-seq"){const{anchor:ie,newlineAfterProp:se}=r,oe=ie&&c?ie.offset>c.offset?ie:c:ie??c;oe&&(!se||se.offset<oe.offset)&&o(oe,"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(ie=>ie.tag===h&&ie.collection===F);if(!Y){const ie=t.schema.knownTags[h];if(ie?.collection===F)t.schema.tags.push(Object.assign({},ie,{default:!1})),Y=ie;else return ie?o(c,"BAD_COLLECTION_TYPE",`${ie.tag} used for ${F} collection, but expects ${ie.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),te=Y.resolve?.(V,ie=>o(c,"TAG_RESOLVE_FAILED",ie),t.options)??V,re=isNode(te)?te:new Scalar(te);return re.range=V.range,re.tag=h,Y?.format&&(re.format=Y.format),re}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 ae=h.length-1;ae>=0;--ae){const fe=h[ae][1];if(fe===""||fe==="\r")F=ae;else break}if(F===0){const ae=o.chomp==="+"&&h.length>0?`
143
- `.repeat(Math.max(1,h.length-1)):"";let fe=r+o.length;return t.source&&(fe+=t.source.length),{value:ae,type:c,comment:o.comment,range:[r,fe,fe]}}let Y=t.indent+o.indent,V=t.offset+o.length,te=0;for(let ae=0;ae<F;++ae){const[fe,he]=h[ae];if(he===""||he==="\r")o.indent===0&&fe.length>Y&&(Y=fe.length);else{fe.length<Y&&n(V+fe.length,"MISSING_CHAR","Block scalars with more-indented leading empty lines must use an explicit indentation indicator"),o.indent===0&&(Y=fe.length),te=ae,Y===0&&!e.atRoot&&n(V,"BAD_INDENT","Block scalar values in collections must be indented");break}V+=fe.length+he.length+1}for(let ae=h.length-1;ae>=F;--ae)h[ae][0].length>Y&&(F=ae+1);let re="",ie="",se=!1;for(let ae=0;ae<te;++ae)re+=h[ae][0].slice(Y)+`
144
- `;for(let ae=te;ae<F;++ae){let[fe,he]=h[ae];V+=fe.length+he.length+1;const pe=he[he.length-1]==="\r";if(pe&&(he=he.slice(0,-1)),he&&fe.length<Y){const ge=`Block scalar lines must not be less indented than their ${o.indent?"explicit indentation indicator":"first line"}`;n(V-he.length-(pe?2:1),"BAD_INDENT",ge),fe=""}c===Scalar.BLOCK_LITERAL?(re+=ie+fe.slice(Y)+he,ie=`
145
- `):fe.length>Y||he[0]===" "?(ie===" "?ie=`
146
- `:!se&&ie===`
147
- `&&(ie=`
148
-
149
- `),re+=ie+fe.slice(Y)+he,ie=`
150
- `,se=!0):he===""?ie===`
151
- `?re+=`
152
- `:ie=`
153
- `:(re+=ie+he,ie=" ",se=!1)}switch(o.chomp){case"-":break;case"+":for(let ae=F;ae<h.length;++ae)re+=`
154
- `+h[ae][0].slice(Y);re[re.length-1]!==`
155
- `&&(re+=`
156
- `);break;default:re+=`
157
- `}const oe=r+o.length+t.source.length;return{value:re,type:c,comment:o.comment,range:[r,oe,oe]}}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 ie=1;ie<o.length;++ie){const se=o[ie];if(!F&&(se==="-"||se==="+"))F=se;else{const oe=Number(se);!h&&oe?h=oe:Y===-1&&(Y=e+ie)}}Y!==-1&&r(Y,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${o}`);let V=!1,te="",re=o.length;for(let ie=1;ie<t.length;++ie){const se=t[ie];switch(se.type){case"space":V=!0;case"newline":re+=se.source.length;break;case"comment":n&&!V&&r(se,"MISSING_CHAR","Comments must be separated from other tokens by white space characters"),re+=se.source.length,te=se.source.substring(1);break;case"error":r(se,"UNEXPECTED_TOKEN",se.message),re+=se.source.length;break;default:{const oe=`Unexpected token in block scalar header: ${se.type}`;r(se,"UNEXPECTED_TOKEN",oe);const ae=se.source;ae&&typeof ae=="string"&&(re+=ae.length)}}}return{mode:c,indent:h,chomp:F,comment:te,length:re}}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=(ie,se,oe)=>n(r+ie,se,oe);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 te=r+c.length,re=resolveEnd(h,te,t,n);return{value:Y,type:F,comment:re.comment,range:[r,te,re.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,re=>r(n,"TAG_RESOLVE_FAILED",re)):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 te;try{const re=V.resolve(o,ie=>r(n??t,"TAG_RESOLVE_FAILED",ie),e.options);te=isScalar(re)?re:new Scalar(re)}catch(re){const ie=re instanceof Error?re.message:String(re);r(n??t,"TAG_RESOLVE_FAILED",ie),te=new Scalar(o)}return te.range=F,te.source=o,c&&(te.type=c),Y&&(te.tag=Y),V.format&&(te.format=V.format),h&&(te.comment=h),te}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),te=`Value may be parsed as either ${Y} or ${V}`;c(o,"TAG_RESOLVE_FAILED",te,!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,te=!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 re=t.type==="error"?t.message:`Unsupported token (type: ${t.type})`;r(t,"UNEXPECTED_TOKEN",re),V=composeEmptyNode(e,t.offset,void 0,null,n,r),te=!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&&te&&(V.srcToken=t),V}function composeEmptyNode(e,t,n,r,{spaceBefore:o,comment:c,anchor:h,tag:F,end:Y},V){const te={type:"scalar",offset:emptyScalarPosition(t,n,r),indent:-1,source:""},re=composeScalar(e,te,F,V);return h&&(re.anchor=h.source.substring(1),re.anchor===""&&V(h,"BAD_ALIAS","Anchor cannot be an empty string")),o&&(re.spaceBefore=!0),c&&(re.comment=c,re.range[2]=Y),re}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},te=resolveProps(r,{indicator:"doc-start",next:o??c?.[0],offset:n,onError:h,parentIndent:0,startOnNewline:!0});te.found&&(Y.directives.docStart=!0,o&&(o.type==="block-map"||o.type==="block-seq")&&!te.hasNewline&&h(te.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")),Y.contents=o?composeNode(V,o,te,h):composeEmptyNode(V,te.end,r,null,te,h);const re=Y.contents.range[2],ie=resolveEnd(c,re,!1,h);return ie.comment&&(Y.comment=ie.comment),Y.range=[n,re,ie.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:te,props:re}=parseBlockParams(V.slice(1));if(c.lineMax=h+1,!Y){const ie=c.push("mdc_block_shorthand",te,0);re?.forEach(([se,oe])=>{se==="class"?ie.attrJoin(se,oe):ie.attrSet(se,oe)})}return c.line=h+1,!0}),e.block.ruler.before("fence","mdc_block",function(c,h,F,Y){let V,te,re=!1,ie=c.bMarks[h]+c.tShift[h],se=c.eMarks[h];const oe=c.sCount[h];if(c.src[ie]!==":")return!1;for(V=ie+1;V<=se&&c.src[V]===":";V++);const ae=Math.floor(V-ie);if(ae<2)return!1;const fe=c.src.slice(ie,V),he=parseBlockParams(c.src.slice(V,se));if(!he.name)return!1;if(Y)return!0;for(te=h;te++,!(te>=F||(ie=c.bMarks[te]+c.tShift[te],se=c.eMarks[te],ie<se&&c.sCount[te]<c.blkIndent));)if(c.src.charCodeAt(ie)===58){for(V=ie+1;V<=se&&c.src[V]===":";V++);if(V-ie===ae&&(V=c.skipSpaces(V),!(V<se))){re=!0;break}}const pe=c.parentType,me=c.lineMax;c.parentType="mdc_block",c.lineMax=te;const ge=c.push("mdc_block_open",he.name,1);ge.markup=fe,ge.block=!0,ge.info=he.name,ge.map=[h,te],he.props&&he.props?.forEach(([Se,we])=>{Se==="class"?ge.attrJoin(Se,we):ge.attrSet(Se,we)});const be=c.blkIndent;c.blkIndent=oe,c.env.mdcBlockTokens||=[],c.env.mdcBlockTokens.unshift(ge),c.md.block.tokenize(c,h+1,te),c.blkIndent=be,c.env.mdcBlockTokens.shift(ge);const xe=c.push("mdc_block_close",he.name,-1);return xe.markup=c.src.slice(ie,V),xe.block=!0,c.tokens.slice(c.tokens.indexOf(ge)+1,c.tokens.indexOf(xe)).filter(Se=>Se.level===ge.level+1).forEach((Se,we,Te)=>{Te.length<=2&&Se.tag==="p"&&(Se.hidden=!0)}),c.parentType=pe,c.lineMax=me,c.line=te+(re?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],te=c.eMarks[h];if(c.src.slice(V,te)!=="---")return!1;let re=h+1,ie=!1;for(;re<F;){if(c.src.slice(c.bMarks[re]+c.tShift[h],c.eMarks[re])==="---"){ie=!0;break}re+=1}if(!ie)return!1;if(!Y){const se=c.src.slice(c.bMarks[h+1],c.eMarks[re-1]),oe=parse(se),ae=c.env.mdcBlockTokens[0];Object.entries(oe).forEach(([fe,he])=>{fe==="class"?ae.attrJoin(fe,he):ae.attrSet(fe,typeof he=="string"?he:JSON.stringify(he))})}return c.line=re+1,c.lineMax=re+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 te=c.src.slice(V,c.eMarks[h]),{name:re,props:ie}=parseBlockParams(te.slice(1));let se=h+1;for(;se<F;){const ae=c.src.slice(c.bMarks[se]+c.tShift[h],c.eMarks[se]);if(ae.match(/^#(\w)+/)||ae.startsWith("::"))break;se+=1}if(Y)return c.line=se,c.lineMax=se,!0;c.lineMax=h+1;const oe=c.push("mdc_block_slot","template",1);return oe.attrSet(`#${re}`,""),ie?.forEach(([ae,fe])=>{ae==="class"?oe.attrJoin(ae,fe):oe.attrSet(ae,fe)}),c.line=h+1,c.lineMax=se,c.md.block.tokenize(c,h+1,se),c.push("mdc_block_slot","template",-1),c.line=se,c.lineMax=se,!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 te=t.push("text","",0);te.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 te=r.push("mdc_inline_props","span",0);return te.attrs=Y,te.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 te=h.children[1].attrs;h.children.splice(1,1),te?.forEach(([re,ie])=>{re==="class"?Y.attrJoin("class",ie):Y.attrSet(re,ie)})}}),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 ie=c[V];if(ie.type==="bullet_list_close"&&ie.level===h.level)break;V+=1}const te=c[V];if(te.type!=="bullet_list_close")return;const re=c[V+1];re.type==="mdc_block_close"&&re.tag==="ul"&&(h.hidden=!0,te.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 te=new Token("mdc_inline_span","span",-1);r.splice(F+2,0,te)}else if(V.nesting===-1){let te=F-1;for(;te>=0;){const re=r[te];if(re.nesting===1&&re.tag===V.tag&&re.level===V.level){V=re;break}te--}}if(V.nesting===-1)throw new Error(`No matching opening tag found for ${JSON.stringify(V)}`);h.attrs?.forEach(([te,re])=>{te==="class"?V.attrJoin("class",re):V.attrSet(te,re)})}}),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,b$2 as a,bufferExports as b,commonjsRequire as c,d$2 as d,g$1 as e,a as f,getDefaultExportFromCjs as g,k$1 as h,i$4 as i,j,k$4 as k,g as l,m$1 as m,f$2 as n,f$1 as o,y as p,MarkdownItMdc as q,require$$0 as r,frontmatterPlugin as s,tocPlugin as t,componentPlugin as u,sfcPlugin as v,w$1 as w,y$2 as y,z};